@opencrvs/toolkit 2.1.0-rc.462d2a9 → 2.1.0-rc.468b2be
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/application-config/index.js +190 -200
- package/dist/commons/api/router.d.ts +111 -7
- package/dist/commons/conditionals/conditionals.d.ts +6 -6
- package/dist/commons/conditionals/validate.d.ts +4 -5
- package/dist/commons/events/ActionConfig.d.ts +0 -21
- package/dist/commons/events/ActionDocument.d.ts +7 -1
- package/dist/commons/events/AdvancedSearchConfig.d.ts +6 -6
- package/dist/commons/events/AuditLog.d.ts +37 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +0 -18
- package/dist/commons/events/EventIndex.d.ts +24 -5
- package/dist/commons/events/EventMetadata.d.ts +0 -1
- package/dist/commons/events/FieldConfig.d.ts +5 -5
- package/dist/commons/events/FieldTypeMapping.d.ts +19 -19
- package/dist/commons/events/FieldValue.d.ts +2 -2
- package/dist/commons/events/Flag.d.ts +0 -48
- package/dist/commons/events/PlainDate.d.ts +8 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +12 -27
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/locationPayloads.d.ts +95 -0
- package/dist/commons/events/locations.d.ts +191 -11
- package/dist/commons/events/mocks.test.utils.d.ts +46 -2
- package/dist/commons/events/test.utils.d.ts +5 -5
- package/dist/conditionals/index.js +56 -303
- package/dist/events/index.js +3617 -3507
- package/dist/notification/index.js +1067 -1529
- package/dist/scopes/index.d.ts +3 -251
- package/dist/scopes/index.js +56 -304
- package/opencrvs-toolkit-2.1.0-rc.468b2be.tgz +0 -0
- package/package.json +3 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/commons/events/ActionStatus.d.ts +0 -14
- package/opencrvs-toolkit-2.1.0-rc.462d2a9.tgz +0 -0
|
@@ -7834,8 +7834,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7834
7834
|
email?: string | undefined;
|
|
7835
7835
|
status?: string | undefined;
|
|
7836
7836
|
primaryOfficeId?: string | undefined;
|
|
7837
|
-
count
|
|
7838
|
-
skip
|
|
7837
|
+
count?: number | undefined;
|
|
7838
|
+
skip?: number | undefined;
|
|
7839
7839
|
sortBy?: "createdAt" | "email" | "firstname" | "role" | "status" | "surname" | "username" | undefined;
|
|
7840
7840
|
sortOrder: "asc" | "desc";
|
|
7841
7841
|
};
|
|
@@ -8242,6 +8242,37 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8242
8242
|
responseSummary: {
|
|
8243
8243
|
clientId: string;
|
|
8244
8244
|
};
|
|
8245
|
+
} | {
|
|
8246
|
+
id: string;
|
|
8247
|
+
clientId: string;
|
|
8248
|
+
clientType: "system" | "user";
|
|
8249
|
+
createdAt: string;
|
|
8250
|
+
operation: "locations.create";
|
|
8251
|
+
requestData: {
|
|
8252
|
+
id: string;
|
|
8253
|
+
versionId: string;
|
|
8254
|
+
name: string;
|
|
8255
|
+
externalId?: string | null | undefined;
|
|
8256
|
+
effectiveFrom: string;
|
|
8257
|
+
status: string;
|
|
8258
|
+
administrativeAreaId?: string | null | undefined;
|
|
8259
|
+
locationType?: string | null | undefined;
|
|
8260
|
+
};
|
|
8261
|
+
} | {
|
|
8262
|
+
id: string;
|
|
8263
|
+
clientId: string;
|
|
8264
|
+
clientType: "system" | "user";
|
|
8265
|
+
createdAt: string;
|
|
8266
|
+
operation: "administrativeAreas.create";
|
|
8267
|
+
requestData: {
|
|
8268
|
+
id: string;
|
|
8269
|
+
versionId: string;
|
|
8270
|
+
name: string;
|
|
8271
|
+
externalId?: string | null | undefined;
|
|
8272
|
+
effectiveFrom: string;
|
|
8273
|
+
status: string;
|
|
8274
|
+
parentId?: string | null | undefined;
|
|
8275
|
+
};
|
|
8245
8276
|
} | {
|
|
8246
8277
|
id: string;
|
|
8247
8278
|
clientId: string;
|
|
@@ -8351,8 +8382,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8351
8382
|
name: string;
|
|
8352
8383
|
externalId?: string | null | undefined;
|
|
8353
8384
|
administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
|
|
8354
|
-
validUntil: string | null;
|
|
8355
8385
|
locationType: string | null;
|
|
8386
|
+
status: "active" | "inactive";
|
|
8387
|
+
versions: {
|
|
8388
|
+
versionId: string & import("zod").$brand<"UUID">;
|
|
8389
|
+
effectiveFrom: string;
|
|
8390
|
+
name: string;
|
|
8391
|
+
externalId?: string | null | undefined;
|
|
8392
|
+
status: "active" | "inactive";
|
|
8393
|
+
}[];
|
|
8356
8394
|
}[];
|
|
8357
8395
|
meta: object;
|
|
8358
8396
|
}>;
|
|
@@ -8362,12 +8400,39 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8362
8400
|
name: string;
|
|
8363
8401
|
externalId?: string | null | undefined;
|
|
8364
8402
|
administrativeAreaId: string | null;
|
|
8365
|
-
validUntil: string | null;
|
|
8366
8403
|
locationType: string | null;
|
|
8367
8404
|
}[];
|
|
8368
8405
|
output: void;
|
|
8369
8406
|
meta: object;
|
|
8370
8407
|
}>;
|
|
8408
|
+
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
8409
|
+
input: {
|
|
8410
|
+
id?: string | undefined;
|
|
8411
|
+
versionId?: string | undefined;
|
|
8412
|
+
name: string;
|
|
8413
|
+
externalId?: string | null | undefined;
|
|
8414
|
+
administrativeAreaId: string | null;
|
|
8415
|
+
locationType: string | null;
|
|
8416
|
+
effectiveFrom?: string | undefined;
|
|
8417
|
+
status?: "active" | "inactive" | undefined;
|
|
8418
|
+
};
|
|
8419
|
+
output: {
|
|
8420
|
+
id: string & import("zod").$brand<"UUID">;
|
|
8421
|
+
name: string;
|
|
8422
|
+
externalId?: string | null | undefined;
|
|
8423
|
+
administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
|
|
8424
|
+
locationType: string | null;
|
|
8425
|
+
status: "active" | "inactive";
|
|
8426
|
+
versions: {
|
|
8427
|
+
versionId: string & import("zod").$brand<"UUID">;
|
|
8428
|
+
effectiveFrom: string;
|
|
8429
|
+
name: string;
|
|
8430
|
+
externalId?: string | null | undefined;
|
|
8431
|
+
status: "active" | "inactive";
|
|
8432
|
+
}[];
|
|
8433
|
+
};
|
|
8434
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
8435
|
+
}>;
|
|
8371
8436
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
8372
8437
|
input: {
|
|
8373
8438
|
id: string;
|
|
@@ -8377,8 +8442,15 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8377
8442
|
name: string;
|
|
8378
8443
|
externalId?: string | null | undefined;
|
|
8379
8444
|
administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
|
|
8380
|
-
validUntil: string | null;
|
|
8381
8445
|
locationType: string | null;
|
|
8446
|
+
status: "active" | "inactive";
|
|
8447
|
+
versions: {
|
|
8448
|
+
versionId: string & import("zod").$brand<"UUID">;
|
|
8449
|
+
effectiveFrom: string;
|
|
8450
|
+
name: string;
|
|
8451
|
+
externalId?: string | null | undefined;
|
|
8452
|
+
status: "active" | "inactive";
|
|
8453
|
+
}[];
|
|
8382
8454
|
};
|
|
8383
8455
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
8384
8456
|
}>;
|
|
@@ -8786,7 +8858,14 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8786
8858
|
name: string;
|
|
8787
8859
|
externalId?: string | null | undefined;
|
|
8788
8860
|
parentId: (string & import("zod").$brand<"UUID">) | null;
|
|
8789
|
-
|
|
8861
|
+
status: "active" | "inactive";
|
|
8862
|
+
versions: {
|
|
8863
|
+
versionId: string & import("zod").$brand<"UUID">;
|
|
8864
|
+
effectiveFrom: string;
|
|
8865
|
+
name: string;
|
|
8866
|
+
externalId?: string | null | undefined;
|
|
8867
|
+
status: "active" | "inactive";
|
|
8868
|
+
}[];
|
|
8790
8869
|
}[];
|
|
8791
8870
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
8792
8871
|
}>;
|
|
@@ -8796,11 +8875,36 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8796
8875
|
name: string;
|
|
8797
8876
|
externalId?: string | null | undefined;
|
|
8798
8877
|
parentId: string | null;
|
|
8799
|
-
validUntil: string | null;
|
|
8800
8878
|
}[];
|
|
8801
8879
|
output: void;
|
|
8802
8880
|
meta: object;
|
|
8803
8881
|
}>;
|
|
8882
|
+
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
8883
|
+
input: {
|
|
8884
|
+
id?: string | undefined;
|
|
8885
|
+
versionId?: string | undefined;
|
|
8886
|
+
name: string;
|
|
8887
|
+
externalId?: string | null | undefined;
|
|
8888
|
+
parentId: string | null;
|
|
8889
|
+
effectiveFrom?: string | undefined;
|
|
8890
|
+
status?: "active" | "inactive" | undefined;
|
|
8891
|
+
};
|
|
8892
|
+
output: {
|
|
8893
|
+
id: string & import("zod").$brand<"UUID">;
|
|
8894
|
+
name: string;
|
|
8895
|
+
externalId?: string | null | undefined;
|
|
8896
|
+
parentId: (string & import("zod").$brand<"UUID">) | null;
|
|
8897
|
+
status: "active" | "inactive";
|
|
8898
|
+
versions: {
|
|
8899
|
+
versionId: string & import("zod").$brand<"UUID">;
|
|
8900
|
+
effectiveFrom: string;
|
|
8901
|
+
name: string;
|
|
8902
|
+
externalId?: string | null | undefined;
|
|
8903
|
+
status: "active" | "inactive";
|
|
8904
|
+
}[];
|
|
8905
|
+
};
|
|
8906
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
8907
|
+
}>;
|
|
8804
8908
|
}>>;
|
|
8805
8909
|
integrations: import("@trpc/server").TRPCBuiltRouter<{
|
|
8806
8910
|
ctx: Partial<{
|
|
@@ -85,17 +85,17 @@ export declare const now: typeof todayDateTimeValueSerializer;
|
|
|
85
85
|
export declare const user: typeof userSerializer & {
|
|
86
86
|
scope: (scope: import("../scopes").ScopeType) => {
|
|
87
87
|
attribute: (option: import("../scopes").ScopeOptionKey) => {
|
|
88
|
-
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
89
|
-
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "
|
|
88
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
89
|
+
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
|
|
93
|
-
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
94
|
-
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "
|
|
93
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
94
|
+
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
|
|
95
95
|
}) => {
|
|
96
96
|
$jurisdiction: "administrativeArea" | "all" | "location" | {
|
|
97
|
-
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
98
|
-
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "
|
|
97
|
+
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "location.edit" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
98
|
+
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
hasScope: (scope: string) => JSONSchema;
|
|
@@ -2,7 +2,7 @@ import { ConditionalParameters, JSONSchema } from './conditionals';
|
|
|
2
2
|
import { ActionUpdate, EventState } from '../events/ActionDocument';
|
|
3
3
|
import { FieldConditional } from '../events/Conditional';
|
|
4
4
|
import { FieldConfig } from '../events/FieldConfig';
|
|
5
|
-
import { FieldUpdateValue, FieldValue } from '../events/FieldValue';
|
|
5
|
+
import { PlainDate, FieldUpdateValue, FieldValue } from '../events/FieldValue';
|
|
6
6
|
import { TranslationConfig } from '../events/TranslationConfig';
|
|
7
7
|
import { ITokenPayload } from '../authentication';
|
|
8
8
|
import { UUID } from '../uuid';
|
|
@@ -14,8 +14,8 @@ import { EventDocument } from '../events/EventDocument';
|
|
|
14
14
|
import { EventIndex } from '../events/EventIndex';
|
|
15
15
|
import { Location } from '../events/locations';
|
|
16
16
|
import { SystemVariables } from '../events/TemplateConfig';
|
|
17
|
-
/** Returns today's date as
|
|
18
|
-
export declare function todayISO():
|
|
17
|
+
/** Returns today's date as a {@link PlainDate} (YYYY-MM-DD), device-local. */
|
|
18
|
+
export declare function todayISO(): PlainDate;
|
|
19
19
|
/**
|
|
20
20
|
* Context passed to every serialised client-side function ({@link runClientFunction}).
|
|
21
21
|
*
|
|
@@ -69,14 +69,13 @@ export declare function validate(schema: JSONSchema, data: ConditionalParameters
|
|
|
69
69
|
export declare function validateValue(schema: JSONSchema, data: unknown): boolean;
|
|
70
70
|
export declare function isOnline(): boolean;
|
|
71
71
|
export declare function isConditionMet(conditional: JSONSchema, values: EventState | ActionUpdate, context: ValidatorContext): boolean;
|
|
72
|
-
export declare function areConditionsMet(conditions: FieldConditional[], values: Record<string, FieldValue>, context: ValidatorContext,
|
|
72
|
+
export declare function areConditionsMet(conditions: FieldConditional[], values: Record<string, FieldValue>, context: ValidatorContext, _event: EventIndex): boolean;
|
|
73
73
|
export type ValidatorContext = {
|
|
74
74
|
user?: ITokenPayload;
|
|
75
75
|
leafAdminStructureLocationIds?: Array<{
|
|
76
76
|
id: UUID;
|
|
77
77
|
}>;
|
|
78
78
|
event?: EventDocument;
|
|
79
|
-
eventConfig?: EventConfig;
|
|
80
79
|
baseFormState?: EventState;
|
|
81
80
|
};
|
|
82
81
|
export declare function isFieldVisible(field: FieldConfig, form: Partial<ActionUpdate | EventState>, context: ValidatorContext): boolean;
|
|
@@ -13,7 +13,6 @@ export declare const ActionConfigBase: z.ZodObject<{
|
|
|
13
13
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
14
14
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
15
15
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
16
|
-
readonly SEALED: 'sealed';
|
|
17
16
|
}>]>, z.ZodString]>;
|
|
18
17
|
operation: z.ZodEnum<{
|
|
19
18
|
add: "add";
|
|
@@ -40,7 +39,6 @@ declare const CustomActionConfig: z.ZodObject<{
|
|
|
40
39
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
41
40
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
42
41
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
43
|
-
readonly SEALED: 'sealed';
|
|
44
42
|
}>]>, z.ZodString]>;
|
|
45
43
|
operation: z.ZodEnum<{
|
|
46
44
|
add: "add";
|
|
@@ -72,7 +70,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
72
70
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
73
71
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
74
72
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
75
|
-
readonly SEALED: 'sealed';
|
|
76
73
|
}>]>, z.ZodString]>;
|
|
77
74
|
operation: z.ZodEnum<{
|
|
78
75
|
add: "add";
|
|
@@ -123,7 +120,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
123
120
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
124
121
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
125
122
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
126
|
-
readonly SEALED: 'sealed';
|
|
127
123
|
}>]>, z.ZodString]>;
|
|
128
124
|
operation: z.ZodEnum<{
|
|
129
125
|
add: "add";
|
|
@@ -150,7 +146,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
150
146
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
151
147
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
152
148
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
153
|
-
readonly SEALED: 'sealed';
|
|
154
149
|
}>]>, z.ZodString]>;
|
|
155
150
|
operation: z.ZodEnum<{
|
|
156
151
|
add: "add";
|
|
@@ -178,7 +173,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
178
173
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
179
174
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
180
175
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
181
|
-
readonly SEALED: 'sealed';
|
|
182
176
|
}>]>, z.ZodString]>;
|
|
183
177
|
operation: z.ZodEnum<{
|
|
184
178
|
add: "add";
|
|
@@ -219,7 +213,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
219
213
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
220
214
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
221
215
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
222
|
-
readonly SEALED: 'sealed';
|
|
223
216
|
}>]>, z.ZodString]>;
|
|
224
217
|
operation: z.ZodEnum<{
|
|
225
218
|
add: "add";
|
|
@@ -241,7 +234,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
241
234
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
242
235
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
243
236
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
244
|
-
readonly SEALED: 'sealed';
|
|
245
237
|
}>]>, z.ZodString]>;
|
|
246
238
|
operation: z.ZodEnum<{
|
|
247
239
|
add: "add";
|
|
@@ -268,7 +260,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
268
260
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
269
261
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
270
262
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
271
|
-
readonly SEALED: 'sealed';
|
|
272
263
|
}>]>, z.ZodString]>;
|
|
273
264
|
operation: z.ZodEnum<{
|
|
274
265
|
add: "add";
|
|
@@ -295,7 +286,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
295
286
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
296
287
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
297
288
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
298
|
-
readonly SEALED: 'sealed';
|
|
299
289
|
}>]>, z.ZodString]>;
|
|
300
290
|
operation: z.ZodEnum<{
|
|
301
291
|
add: "add";
|
|
@@ -323,7 +313,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
323
313
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
324
314
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
325
315
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
326
|
-
readonly SEALED: 'sealed';
|
|
327
316
|
}>]>, z.ZodString]>;
|
|
328
317
|
operation: z.ZodEnum<{
|
|
329
318
|
add: "add";
|
|
@@ -356,7 +345,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
356
345
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
357
346
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
358
347
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
359
|
-
readonly SEALED: 'sealed';
|
|
360
348
|
}>]>, z.ZodString]>;
|
|
361
349
|
operation: z.ZodEnum<{
|
|
362
350
|
add: "add";
|
|
@@ -413,7 +401,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
413
401
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
414
402
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
415
403
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
416
|
-
readonly SEALED: 'sealed';
|
|
417
404
|
}>]>, z.ZodString]>;
|
|
418
405
|
operation: z.ZodEnum<{
|
|
419
406
|
add: "add";
|
|
@@ -470,7 +457,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
470
457
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
471
458
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
472
459
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
473
|
-
readonly SEALED: 'sealed';
|
|
474
460
|
}>]>, z.ZodString]>;
|
|
475
461
|
operation: z.ZodEnum<{
|
|
476
462
|
add: "add";
|
|
@@ -497,7 +483,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
497
483
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
498
484
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
499
485
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
500
|
-
readonly SEALED: 'sealed';
|
|
501
486
|
}>]>, z.ZodString]>;
|
|
502
487
|
operation: z.ZodEnum<{
|
|
503
488
|
add: "add";
|
|
@@ -524,7 +509,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
524
509
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
525
510
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
526
511
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
527
|
-
readonly SEALED: 'sealed';
|
|
528
512
|
}>]>, z.ZodString]>;
|
|
529
513
|
operation: z.ZodEnum<{
|
|
530
514
|
add: "add";
|
|
@@ -556,7 +540,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
556
540
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
557
541
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
558
542
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
559
|
-
readonly SEALED: 'sealed';
|
|
560
543
|
}>]>, z.ZodString]>;
|
|
561
544
|
operation: z.ZodEnum<{
|
|
562
545
|
add: "add";
|
|
@@ -584,7 +567,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
584
567
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
585
568
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
586
569
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
587
|
-
readonly SEALED: 'sealed';
|
|
588
570
|
}>]>, z.ZodString]>;
|
|
589
571
|
operation: z.ZodEnum<{
|
|
590
572
|
add: "add";
|
|
@@ -611,7 +593,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
611
593
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
612
594
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
613
595
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
614
|
-
readonly SEALED: 'sealed';
|
|
615
596
|
}>]>, z.ZodString]>;
|
|
616
597
|
operation: z.ZodEnum<{
|
|
617
598
|
add: "add";
|
|
@@ -653,7 +634,6 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
653
634
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
654
635
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
655
636
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
656
|
-
readonly SEALED: 'sealed';
|
|
657
637
|
}>]>, z.ZodString]>;
|
|
658
638
|
operation: z.ZodEnum<{
|
|
659
639
|
add: "add";
|
|
@@ -695,7 +675,6 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
695
675
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
696
676
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
697
677
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
698
|
-
readonly SEALED: 'sealed';
|
|
699
678
|
}>]>, z.ZodString]>;
|
|
700
679
|
operation: z.ZodEnum<{
|
|
701
680
|
add: "add";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
import { FieldValue, FieldUpdateValue } from './FieldValue';
|
|
3
|
-
export { ActionStatus } from './ActionStatus';
|
|
4
3
|
/**
|
|
5
4
|
* ActionUpdate is a record of a specific action that updated data fields.
|
|
6
5
|
*/
|
|
@@ -11,6 +10,12 @@ export type ActionUpdate = z.infer<typeof ActionUpdate>;
|
|
|
11
10
|
*/
|
|
12
11
|
export declare const EventState: z.ZodRecord<z.ZodString, z.ZodType<FieldValue, unknown, z.core.$ZodTypeInternals<FieldValue, unknown>>>;
|
|
13
12
|
export type EventState = z.infer<typeof EventState>;
|
|
13
|
+
export declare const ActionStatus: {
|
|
14
|
+
readonly Requested: 'Requested';
|
|
15
|
+
readonly Accepted: 'Accepted';
|
|
16
|
+
readonly Rejected: 'Rejected';
|
|
17
|
+
};
|
|
18
|
+
export type ActionStatus = keyof typeof ActionStatus;
|
|
14
19
|
export declare const ActionBase: z.ZodObject<{
|
|
15
20
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
16
21
|
transactionId: z.ZodString;
|
|
@@ -1168,4 +1173,5 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1168
1173
|
export type Action = z.infer<typeof Action>;
|
|
1169
1174
|
export type CreatedAction = z.infer<typeof CreatedAction>;
|
|
1170
1175
|
export type AssignedAction = z.infer<typeof AssignedAction>;
|
|
1176
|
+
export {};
|
|
1171
1177
|
//# sourceMappingURL=ActionDocument.d.ts.map
|
|
@@ -103,6 +103,7 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
103
103
|
"config.update-all": "config.update-all";
|
|
104
104
|
"dashboard.view": "dashboard.view";
|
|
105
105
|
"integration.create": "integration.create";
|
|
106
|
+
"location.edit": "location.edit";
|
|
106
107
|
"organisation.read-locations": "organisation.read-locations";
|
|
107
108
|
"performance.read": "performance.read";
|
|
108
109
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -141,7 +142,6 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
141
142
|
declaredBy: "declaredBy";
|
|
142
143
|
declaredIn: "declaredIn";
|
|
143
144
|
event: "event";
|
|
144
|
-
flags: "flags";
|
|
145
145
|
ids: "ids";
|
|
146
146
|
notifiedBy: "notifiedBy";
|
|
147
147
|
notifiedIn: "notifiedIn";
|
|
@@ -284,6 +284,7 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
284
284
|
"config.update-all": "config.update-all";
|
|
285
285
|
"dashboard.view": "dashboard.view";
|
|
286
286
|
"integration.create": "integration.create";
|
|
287
|
+
"location.edit": "location.edit";
|
|
287
288
|
"organisation.read-locations": "organisation.read-locations";
|
|
288
289
|
"performance.read": "performance.read";
|
|
289
290
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -322,7 +323,6 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
322
323
|
declaredBy: "declaredBy";
|
|
323
324
|
declaredIn: "declaredIn";
|
|
324
325
|
event: "event";
|
|
325
|
-
flags: "flags";
|
|
326
326
|
ids: "ids";
|
|
327
327
|
notifiedBy: "notifiedBy";
|
|
328
328
|
notifiedIn: "notifiedIn";
|
|
@@ -441,6 +441,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
441
441
|
"config.update-all": "config.update-all";
|
|
442
442
|
"dashboard.view": "dashboard.view";
|
|
443
443
|
"integration.create": "integration.create";
|
|
444
|
+
"location.edit": "location.edit";
|
|
444
445
|
"organisation.read-locations": "organisation.read-locations";
|
|
445
446
|
"performance.read": "performance.read";
|
|
446
447
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -479,7 +480,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
479
480
|
declaredBy: "declaredBy";
|
|
480
481
|
declaredIn: "declaredIn";
|
|
481
482
|
event: "event";
|
|
482
|
-
flags: "flags";
|
|
483
483
|
ids: "ids";
|
|
484
484
|
notifiedBy: "notifiedBy";
|
|
485
485
|
notifiedIn: "notifiedIn";
|
|
@@ -590,6 +590,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
590
590
|
"config.update-all": "config.update-all";
|
|
591
591
|
"dashboard.view": "dashboard.view";
|
|
592
592
|
"integration.create": "integration.create";
|
|
593
|
+
"location.edit": "location.edit";
|
|
593
594
|
"organisation.read-locations": "organisation.read-locations";
|
|
594
595
|
"performance.read": "performance.read";
|
|
595
596
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -628,7 +629,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
628
629
|
declaredBy: "declaredBy";
|
|
629
630
|
declaredIn: "declaredIn";
|
|
630
631
|
event: "event";
|
|
631
|
-
flags: "flags";
|
|
632
632
|
ids: "ids";
|
|
633
633
|
notifiedBy: "notifiedBy";
|
|
634
634
|
notifiedIn: "notifiedIn";
|
|
@@ -750,6 +750,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
750
750
|
"config.update-all": "config.update-all";
|
|
751
751
|
"dashboard.view": "dashboard.view";
|
|
752
752
|
"integration.create": "integration.create";
|
|
753
|
+
"location.edit": "location.edit";
|
|
753
754
|
"organisation.read-locations": "organisation.read-locations";
|
|
754
755
|
"performance.read": "performance.read";
|
|
755
756
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -788,7 +789,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
788
789
|
declaredBy: "declaredBy";
|
|
789
790
|
declaredIn: "declaredIn";
|
|
790
791
|
event: "event";
|
|
791
|
-
flags: "flags";
|
|
792
792
|
ids: "ids";
|
|
793
793
|
notifiedBy: "notifiedBy";
|
|
794
794
|
notifiedIn: "notifiedIn";
|
|
@@ -899,6 +899,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
899
899
|
"config.update-all": "config.update-all";
|
|
900
900
|
"dashboard.view": "dashboard.view";
|
|
901
901
|
"integration.create": "integration.create";
|
|
902
|
+
"location.edit": "location.edit";
|
|
902
903
|
"organisation.read-locations": "organisation.read-locations";
|
|
903
904
|
"performance.read": "performance.read";
|
|
904
905
|
"performance.read-dashboards": "performance.read-dashboards";
|
|
@@ -937,7 +938,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
937
938
|
declaredBy: "declaredBy";
|
|
938
939
|
declaredIn: "declaredIn";
|
|
939
940
|
event: "event";
|
|
940
|
-
flags: "flags";
|
|
941
941
|
ids: "ids";
|
|
942
942
|
notifiedBy: "notifiedBy";
|
|
943
943
|
notifiedIn: "notifiedIn";
|
|
@@ -281,6 +281,43 @@ export declare const AuditLogEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
281
281
|
responseSummary: z.ZodObject<{
|
|
282
282
|
clientId: z.ZodString;
|
|
283
283
|
}, z.core.$strip>;
|
|
284
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
285
|
+
id: z.ZodString;
|
|
286
|
+
clientId: z.ZodString;
|
|
287
|
+
clientType: z.ZodEnum<{
|
|
288
|
+
system: "system";
|
|
289
|
+
user: "user";
|
|
290
|
+
}>;
|
|
291
|
+
createdAt: z.ZodString;
|
|
292
|
+
operation: z.ZodLiteral<"locations.create">;
|
|
293
|
+
requestData: z.ZodObject<{
|
|
294
|
+
id: z.ZodString;
|
|
295
|
+
versionId: z.ZodString;
|
|
296
|
+
name: z.ZodString;
|
|
297
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
+
effectiveFrom: z.ZodString;
|
|
299
|
+
status: z.ZodString;
|
|
300
|
+
administrativeAreaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
+
locationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
302
|
+
}, z.core.$strip>;
|
|
303
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
304
|
+
id: z.ZodString;
|
|
305
|
+
clientId: z.ZodString;
|
|
306
|
+
clientType: z.ZodEnum<{
|
|
307
|
+
system: "system";
|
|
308
|
+
user: "user";
|
|
309
|
+
}>;
|
|
310
|
+
createdAt: z.ZodString;
|
|
311
|
+
operation: z.ZodLiteral<"administrativeAreas.create">;
|
|
312
|
+
requestData: z.ZodObject<{
|
|
313
|
+
id: z.ZodString;
|
|
314
|
+
versionId: z.ZodString;
|
|
315
|
+
name: z.ZodString;
|
|
316
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
317
|
+
effectiveFrom: z.ZodString;
|
|
318
|
+
status: z.ZodString;
|
|
319
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
320
|
+
}, z.core.$strip>;
|
|
284
321
|
}, z.core.$strip>, z.ZodObject<{
|
|
285
322
|
id: z.ZodString;
|
|
286
323
|
clientId: z.ZodString;
|