diff --git a/frontend/app/shared/services/app-languages.service.ts b/frontend/app/shared/services/app-languages.service.ts index 7ba3fc609..2f469b4bf 100644 --- a/frontend/app/shared/services/app-languages.service.ts +++ b/frontend/app/shared/services/app-languages.service.ts @@ -36,13 +36,13 @@ export type AppLanguagesDto = Versioned; export type AppLanguagesPayload = - Readonly<{ items: readonly AppLanguageDto[], canCreate: boolean } & Resource>; + Readonly<{ items: ReadonlyArray, canCreate: boolean } & Resource>; export type AddAppLanguageDto = Readonly<{ language: string }>; export type UpdateAppLanguageDto = - Readonly<{ isMaster?: boolean, isOptional?: boolean, falback?: readonly string[] }>; + Readonly<{ isMaster?: boolean, isOptional?: boolean, falback?: ReadonlyArray }>; @Injectable() export class AppLanguagesService { diff --git a/frontend/app/shared/services/apps.service.ts b/frontend/app/shared/services/apps.service.ts index eb6ebc9c5..b08c7a80a 100644 --- a/frontend/app/shared/services/apps.service.ts +++ b/frontend/app/shared/services/apps.service.ts @@ -108,14 +108,8 @@ export class EditorDto { } } -export type UpdatePatternDto = - Readonly<{ name: string, regex: string, message?: string }>; - -export type UpdateEditorDto = - Readonly<{ name: string, regex: string, message?: string }>; - export type UpdateAppSettingsDto = - Readonly<{ patterns: readonly UpdatePatternDto[], editors: readonly UpdateEditorDto[], hideScheduler?: boolean }>; + Readonly<{ patterns: ReadonlyArray, editors: ReadonlyArray, hideScheduler?: boolean }>; export type CreateAppDto = Readonly<{ name: string; template?: string; }>; diff --git a/frontend/app/shared/services/clients.service.ts b/frontend/app/shared/services/clients.service.ts index 2a26aaf96..a60c97183 100644 --- a/frontend/app/shared/services/clients.service.ts +++ b/frontend/app/shared/services/clients.service.ts @@ -46,7 +46,7 @@ export type ClientsDto = Versioned; export type ClientsPayload = - Readonly<{ items: readonly ClientDto[], canCreate: boolean } & Resource>; + Readonly<{ items: ReadonlyArray, canCreate: boolean } & Resource>; export type CreateClientDto = Readonly<{ id: string }>; diff --git a/frontend/app/shared/services/contents.service.ts b/frontend/app/shared/services/contents.service.ts index ec0131142..2faedc5cc 100644 --- a/frontend/app/shared/services/contents.service.ts +++ b/frontend/app/shared/services/contents.service.ts @@ -123,7 +123,7 @@ export type ContentData = Readonly<{ [fieldName: string ]: ContentFieldData }>; export type BulkUpdateDto = - Readonly<{ jobs: readonly BulkUpdateJobDto[], doNotScript?: boolean, checkReferrers?: boolean }>; + Readonly<{ jobs: ReadonlyArray, doNotScript?: boolean, checkReferrers?: boolean }>; export type BulkUpdateJobDto = Readonly<{ id: string; type: BulkUpdateType; status?: string; schema?: string; dueTime?: string | null; expectedVersion?: number }>; diff --git a/frontend/app/shared/services/roles.service.ts b/frontend/app/shared/services/roles.service.ts index 0c5619bef..a51ec94e1 100644 --- a/frontend/app/shared/services/roles.service.ts +++ b/frontend/app/shared/services/roles.service.ts @@ -39,7 +39,7 @@ export type RolesDto = Versioned; export type RolesPayload = - Readonly<{ items: readonly RoleDto[]; canCreate: boolean; } & Resource>; + Readonly<{ items: ReadonlyArray; canCreate: boolean; } & Resource>; export type CreateRoleDto = Readonly<{ name: string; }>; diff --git a/frontend/app/shared/services/schemas.service.ts b/frontend/app/shared/services/schemas.service.ts index 7d6b0f0d3..653101b59 100644 --- a/frontend/app/shared/services/schemas.service.ts +++ b/frontend/app/shared/services/schemas.service.ts @@ -328,10 +328,10 @@ export type FieldRule = { field: string, action: FieldRuleAction, condition: str export type SchemaCompletions = ReadonlyArray<{ name: string, description: string }>; export type SchemasDto = - Readonly<{ items: readonly SchemaDto[]; canCreate: boolean } & Resource>; + Readonly<{ items: ReadonlyArray; canCreate: boolean } & Resource>; export type AddFieldDto = - Readonly<{ name: string; partitioning?: string; properties: FieldPropertiesDto }>; + Readonly<{ name: string; partitioning?: string; properties: FieldPropertiesDto }>; export type UpdateUIFields = Readonly<{ fieldsInLists?: Tags; fieldsInReferences?: Tags; }>;