diff --git a/api/src/dtos/script-runner/community-type.dto.ts b/api/src/dtos/script-runner/community-type.dto.ts index d808dde2aa..e9f7c0f7d2 100644 --- a/api/src/dtos/script-runner/community-type.dto.ts +++ b/api/src/dtos/script-runner/community-type.dto.ts @@ -8,16 +8,25 @@ export class CommunityTypeDTO { @IsString({ groups: [ValidationsGroupsEnum.default] }) @IsUUID(4, { groups: [ValidationsGroupsEnum.default] }) @IsDefined({ groups: [ValidationsGroupsEnum.default] }) - @ApiProperty() + @ApiProperty({ + type: String, + example: 'jurisdiction id', + }) id: string; @Expose() @IsString({ groups: [ValidationsGroupsEnum.default] }) - @ApiProperty() + @ApiProperty({ + type: String, + example: 'newReservedCommunityName', + }) name: string; @Expose() @IsString({ groups: [ValidationsGroupsEnum.default] }) - @ApiPropertyOptional() + @ApiPropertyOptional({ + type: String, + example: 'Description of reserved community type', + }) description?: string; } diff --git a/shared-helpers/src/locales/es.json b/shared-helpers/src/locales/es.json index c7e8d5f635..ec4747758b 100644 --- a/shared-helpers/src/locales/es.json +++ b/shared-helpers/src/locales/es.json @@ -662,14 +662,16 @@ "listings.reservedCommunityTitleDefault": "Edificio Reservado", "listings.reservedCommunityType": "Tipo de comunidad reservada", "listings.reservedCommunityTypeDescriptions.developmentalDisability": "Personas con discapacidades del desarrollo", - "listings.reservedCommunityTypeDescriptions.housingVoucher": "el titular del vale de HCV / Sección 8", + "listings.reservedCommunityTypeDescriptions.farmworkerHousing": "Trabajadores agrícolas y sus familias", + "listings.reservedCommunityTypeDescriptions.housingVoucher": "Titulares de vales HCV / Sección 8", "listings.reservedCommunityTypeDescriptions.senior": "Personas mayores", "listings.reservedCommunityTypeDescriptions.senior55": "Personas mayores de 55 años", "listings.reservedCommunityTypeDescriptions.senior62": "Personas mayores de 62 años", "listings.reservedCommunityTypeDescriptions.specialNeeds": "Necesidades especiales", - "listings.reservedCommunityTypeDescriptions.veteran": "Veterano", - "listings.reservedCommunityTypeDescriptions.schoolEmployee": "Empleado de la escuela", + "listings.reservedCommunityTypeDescriptions.veteran": "Veteranos", + "listings.reservedCommunityTypeDescriptions.schoolEmployee": "Empleados de la escuela", "listings.reservedCommunityTypes.developmentalDisability": "La discapacidad del desarrollo", + "listings.reservedCommunityTypes.farmworkerHousing": "Vivienda para trabajadores agrícolas", "listings.reservedCommunityTypes.housingVoucher": "Vale HCV/Sección 8", "listings.reservedCommunityTypes.senior": "Personas mayores", "listings.reservedCommunityTypes.senior55": "Personas mayores de 55 años", diff --git a/shared-helpers/src/locales/general.json b/shared-helpers/src/locales/general.json index 7916a1df50..839a114163 100644 --- a/shared-helpers/src/locales/general.json +++ b/shared-helpers/src/locales/general.json @@ -653,14 +653,16 @@ "listings.reservedCommunityTitleDefault": "Reserved Building", "listings.reservedCommunityType": "Reserved Community Type", "listings.reservedCommunityTypeDescriptions.developmentalDisability": "People with Developmental Disabilities", - "listings.reservedCommunityTypeDescriptions.housingVoucher": "HCV/Section 8 Voucher Holder", + "listings.reservedCommunityTypeDescriptions.farmworkerHousing": "Farmworkers and Their Families", + "listings.reservedCommunityTypeDescriptions.housingVoucher": "HCV/Section 8 Voucher Holders", "listings.reservedCommunityTypeDescriptions.senior": "Seniors", "listings.reservedCommunityTypeDescriptions.senior55": "Seniors 55+", "listings.reservedCommunityTypeDescriptions.senior62": "Seniors 62+", "listings.reservedCommunityTypeDescriptions.specialNeeds": "Special Needs", - "listings.reservedCommunityTypeDescriptions.veteran": "Veteran", - "listings.reservedCommunityTypeDescriptions.schoolEmployee": "School Employee", + "listings.reservedCommunityTypeDescriptions.veteran": "Veterans", + "listings.reservedCommunityTypeDescriptions.schoolEmployee": "School Employees", "listings.reservedCommunityTypes.developmentalDisability": "Developmental Disability", + "listings.reservedCommunityTypes.farmworkerHousing": "Farmworker Housing", "listings.reservedCommunityTypes.housingVoucher": "HCV/Section 8 Voucher", "listings.reservedCommunityTypes.senior": "Seniors", "listings.reservedCommunityTypes.senior55": "Seniors 55+", diff --git a/shared-helpers/src/locales/tl.json b/shared-helpers/src/locales/tl.json index ece45126e6..1959e11a0c 100644 --- a/shared-helpers/src/locales/tl.json +++ b/shared-helpers/src/locales/tl.json @@ -662,14 +662,16 @@ "listings.reservedCommunityTitleDefault": "Nakareserbang Gusali", "listings.reservedCommunityType": "Nakareserbang Uri ng Komunidad", "listings.reservedCommunityTypeDescriptions.developmentalDisability": "Mga taong may Kapansanan sa Pag-unlad", - "listings.reservedCommunityTypeDescriptions.housingVoucher": "May-hawak ng Voucher ng HCV/Seksyon 8", + "listings.reservedCommunityTypeDescriptions.farmworkerHousing": "Mga Manggagawa sa Bukid at Kanilang Pamilya", + "listings.reservedCommunityTypeDescriptions.housingVoucher": "Mga May hawak ng Voucher ng HCV/Seksyon 8", "listings.reservedCommunityTypeDescriptions.senior": "Mga nakatatanda", "listings.reservedCommunityTypeDescriptions.senior55": "Mga nakatatanda 55+", "listings.reservedCommunityTypeDescriptions.senior62": "Mga nakatatanda 62+", "listings.reservedCommunityTypeDescriptions.specialNeeds": "Espesyal na pangangailangan", - "listings.reservedCommunityTypeDescriptions.veteran": "Beterano", - "listings.reservedCommunityTypeDescriptions.schoolEmployee": "Empleyado ng Paaralan", + "listings.reservedCommunityTypeDescriptions.veteran": "Mga beterano", + "listings.reservedCommunityTypeDescriptions.schoolEmployee": "Mga empleyado ng paaralan", "listings.reservedCommunityTypes.developmentalDisability": "Kapansanan sa Pag-unlad", + "listings.reservedCommunityTypes.farmworkerHousing": "Pabahay ng Magsasaka", "listings.reservedCommunityTypes.housingVoucher": "Voucher ng HCV/Seksyon 8", "listings.reservedCommunityTypes.senior": "Mga nakatatanda", "listings.reservedCommunityTypes.senior55": "Mga nakatatanda 55+", diff --git a/shared-helpers/src/locales/vi.json b/shared-helpers/src/locales/vi.json index 465c019b42..98986ee95b 100644 --- a/shared-helpers/src/locales/vi.json +++ b/shared-helpers/src/locales/vi.json @@ -662,14 +662,16 @@ "listings.reservedCommunityTitleDefault": "Tòa nhà dành riêng", "listings.reservedCommunityType": "Loại cộng đồng dành riêng", "listings.reservedCommunityTypeDescriptions.developmentalDisability": "Người khuyết tật phát triển", - "listings.reservedCommunityTypeDescriptions.housingVoucher": "Người giữ phiếu HCV/Phần 8", + "listings.reservedCommunityTypeDescriptions.farmworkerHousing": "Công nhân nông trại và gia đình của họ", + "listings.reservedCommunityTypeDescriptions.housingVoucher": "Người sở hữu Phiếu giảm giá HCV/Mục 8", "listings.reservedCommunityTypeDescriptions.senior": "Người lớn tuổi", "listings.reservedCommunityTypeDescriptions.senior55": "Người cao tuổi 55+", "listings.reservedCommunityTypeDescriptions.senior62": "Người cao tuổi 62+", "listings.reservedCommunityTypeDescriptions.specialNeeds": "Nhu cầu đặc biệt", "listings.reservedCommunityTypeDescriptions.veteran": "Cựu chiến binh", - "listings.reservedCommunityTypeDescriptions.schoolEmployee": "Nhân viên trường học", + "listings.reservedCommunityTypeDescriptions.schoolEmployee": "Nhân viên nhà trường", "listings.reservedCommunityTypes.developmentalDisability": "Khuyết tật phát triển", + "listings.reservedCommunityTypes.farmworkerHousing": "Nhà ở cho công nhân nông trại", "listings.reservedCommunityTypes.housingVoucher": "Phiếu HCV/Phần 8", "listings.reservedCommunityTypes.senior": "Người lớn tuổi", "listings.reservedCommunityTypes.senior55": "Người cao tuổi 55+", diff --git a/shared-helpers/src/locales/zh.json b/shared-helpers/src/locales/zh.json index 44e62c043f..12cdd02940 100644 --- a/shared-helpers/src/locales/zh.json +++ b/shared-helpers/src/locales/zh.json @@ -662,21 +662,23 @@ "listings.reservedCommunityTitleDefault": "预留楼", "listings.reservedCommunityType": "保留社区类型", "listings.reservedCommunityTypeDescriptions.developmentalDisability": "发育障碍人士", - "listings.reservedCommunityTypeDescriptions.housingVoucher": "HCV/第 8 节凭证持有者", + "listings.reservedCommunityTypeDescriptions.farmworkerHousing": "農場工人及其家人", + "listings.reservedCommunityTypeDescriptions.housingVoucher": "HCV/第 8 節優惠券持有者", "listings.reservedCommunityTypeDescriptions.senior": "老年人", "listings.reservedCommunityTypeDescriptions.senior55": "55 岁以上的老年人", "listings.reservedCommunityTypeDescriptions.senior62": "62 岁以上的老年人", "listings.reservedCommunityTypeDescriptions.specialNeeds": "特殊需求", - "listings.reservedCommunityTypeDescriptions.veteran": "老将", - "listings.reservedCommunityTypeDescriptions.schoolEmployee": "学校员工", + "listings.reservedCommunityTypeDescriptions.veteran": "退伍軍人", + "listings.reservedCommunityTypeDescriptions.schoolEmployee": "學校員工", "listings.reservedCommunityTypes.developmentalDisability": "发育障碍", + "listings.reservedCommunityTypes.farmworkerHousing": "移工住房", "listings.reservedCommunityTypes.housingVoucher": "HCV/第 8 节优惠券", "listings.reservedCommunityTypes.senior": "老年人", "listings.reservedCommunityTypes.senior55": "55 岁以上的老年人", "listings.reservedCommunityTypes.senior62": "62 岁以上的老年人", "listings.reservedCommunityTypes.specialNeeds": "特殊需求", - "listings.reservedCommunityTypes.veteran": "老将", - "listings.reservedCommunityTypes.schoolEmployee": "学校员工", + "listings.reservedCommunityTypes.veteran": "老將", + "listings.reservedCommunityTypes.schoolEmployee": "學校員工", "listings.reservedFor": "保留給 %{type}", "listings.reservedTypePlural.developmentalDisability": "发育障碍", "listings.reservedTypePlural.family": "家庭", diff --git a/shared-helpers/src/types/backend-swagger.ts b/shared-helpers/src/types/backend-swagger.ts index 30fa8d073e..0e8426f901 100644 --- a/shared-helpers/src/types/backend-swagger.ts +++ b/shared-helpers/src/types/backend-swagger.ts @@ -2234,6 +2234,44 @@ export class ScriptRunnerService { configs.data = data + axios(configs, resolve, reject) + }) + } + /** + * A script that creates a new reserved community type + */ + createNewReservedCommunityType( + params: { + /** requestBody */ + body?: CommunityTypeDTO + } = {} as any, + options: IRequestOptions = {} + ): Promise { + return new Promise((resolve, reject) => { + let url = basePath + "/scriptRunner/createNewReservedCommunityType" + + const configs: IRequestConfig = getConfigs("put", "application/json", url, options) + + let data = params.body + + configs.data = data + + axios(configs, resolve, reject) + }) + } + /** + * A script that updates single use code translations to show extended expiration time + */ + updateCodeExpirationTranslations(options: IRequestOptions = {}): Promise { + return new Promise((resolve, reject) => { + let url = basePath + "/scriptRunner/updateCodeExpirationTranslations" + + const configs: IRequestConfig = getConfigs("put", "application/json", url, options) + + let data = null + + configs.data = data + axios(configs, resolve, reject) }) } @@ -5838,6 +5876,17 @@ export interface AmiChartImportDTO { jurisdictionId: string } +export interface CommunityTypeDTO { + /** */ + id: string + + /** */ + name: string + + /** */ + description?: string +} + export interface ApplicationCsvQueryParams { /** */ id: string