@opencrvs/toolkit 2.1.0-rc.f383722 → 2.1.0-rc.f85d99c

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.
Files changed (34) hide show
  1. package/dist/application-config/index.js +200 -190
  2. package/dist/commons/api/router.d.ts +7 -111
  3. package/dist/commons/conditionals/conditionals.d.ts +6 -6
  4. package/dist/commons/conditionals/validate.d.ts +2 -1
  5. package/dist/commons/events/ActionConfig.d.ts +21 -0
  6. package/dist/commons/events/ActionDocument.d.ts +1 -7
  7. package/dist/commons/events/ActionStatus.d.ts +14 -0
  8. package/dist/commons/events/AdvancedSearchConfig.d.ts +6 -6
  9. package/dist/commons/events/AuditLog.d.ts +0 -37
  10. package/dist/commons/events/CountryConfigQueryInput.d.ts +18 -0
  11. package/dist/commons/events/EventIndex.d.ts +7 -26
  12. package/dist/commons/events/EventMetadata.d.ts +1 -0
  13. package/dist/commons/events/FieldConfig.d.ts +6 -6
  14. package/dist/commons/events/FieldTypeMapping.d.ts +19 -19
  15. package/dist/commons/events/Flag.d.ts +48 -0
  16. package/dist/commons/events/WorkqueueConfig.d.ts +27 -12
  17. package/dist/commons/events/index.d.ts +0 -1
  18. package/dist/commons/events/locations.d.ts +3 -100
  19. package/dist/commons/events/mocks.test.utils.d.ts +2 -16
  20. package/dist/commons/events/test.utils.d.ts +5 -5
  21. package/dist/conditionals/index.js +303 -56
  22. package/dist/environment/logger.d.ts +3 -12
  23. package/dist/environment/logger.d.ts.map +1 -1
  24. package/dist/events/index.js +3278 -3333
  25. package/dist/notification/index.js +1492 -996
  26. package/dist/scopes/index.d.ts +276 -28
  27. package/dist/scopes/index.js +304 -56
  28. package/opencrvs-toolkit-2.1.0-rc.f85d99c.tgz +0 -0
  29. package/package.json +3 -4
  30. package/tsconfig.tsbuildinfo +1 -1
  31. package/.nx/cache/file-map.json +0 -360
  32. package/.nx/cache/project-graph.json +0 -6
  33. package/dist/commons/events/locationPayloads.d.ts +0 -95
  34. package/opencrvs-toolkit-2.1.0-rc.f383722.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?: number | undefined;
7838
- skip?: number | undefined;
7837
+ count: number;
7838
+ skip: number;
7839
7839
  sortBy?: "createdAt" | "email" | "firstname" | "role" | "status" | "surname" | "username" | undefined;
7840
7840
  sortOrder: "asc" | "desc";
7841
7841
  };
@@ -8242,37 +8242,6 @@ 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
- };
8276
8245
  } | {
8277
8246
  id: string;
8278
8247
  clientId: string;
@@ -8382,15 +8351,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8382
8351
  name: string;
8383
8352
  externalId?: string | null | undefined;
8384
8353
  administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8354
+ validUntil: string | null;
8385
8355
  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
- }[];
8394
8356
  }[];
8395
8357
  meta: object;
8396
8358
  }>;
@@ -8400,39 +8362,12 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8400
8362
  name: string;
8401
8363
  externalId?: string | null | undefined;
8402
8364
  administrativeAreaId: string | null;
8365
+ validUntil: string | null;
8403
8366
  locationType: string | null;
8404
8367
  }[];
8405
8368
  output: void;
8406
8369
  meta: object;
8407
8370
  }>;
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
- }>;
8436
8371
  get: import("@trpc/server").TRPCQueryProcedure<{
8437
8372
  input: {
8438
8373
  id: string;
@@ -8442,15 +8377,8 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8442
8377
  name: string;
8443
8378
  externalId?: string | null | undefined;
8444
8379
  administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8380
+ validUntil: string | null;
8445
8381
  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
- }[];
8454
8382
  };
8455
8383
  meta: import("trpc-to-openapi").OpenApiMeta;
8456
8384
  }>;
@@ -8858,14 +8786,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8858
8786
  name: string;
8859
8787
  externalId?: string | null | undefined;
8860
8788
  parentId: (string & import("zod").$brand<"UUID">) | null;
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
- }[];
8789
+ validUntil: string | null;
8869
8790
  }[];
8870
8791
  meta: import("trpc-to-openapi").OpenApiMeta;
8871
8792
  }>;
@@ -8875,36 +8796,11 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8875
8796
  name: string;
8876
8797
  externalId?: string | null | undefined;
8877
8798
  parentId: string | null;
8799
+ validUntil: string | null;
8878
8800
  }[];
8879
8801
  output: void;
8880
8802
  meta: object;
8881
8803
  }>;
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
- }>;
8908
8804
  }>>;
8909
8805
  integrations: import("@trpc/server").TRPCBuiltRouter<{
8910
8806
  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" | "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";
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" | "flags" | "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" | "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";
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" | "flags" | "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" | "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";
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" | "flags" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
99
99
  };
100
100
  };
101
101
  hasScope: (scope: string) => JSONSchema;
@@ -69,13 +69,14 @@ 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, _event: EventIndex): boolean;
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;
79
80
  baseFormState?: EventState;
80
81
  };
81
82
  export declare function isFieldVisible(field: FieldConfig, form: Partial<ActionUpdate | EventState>, context: ValidatorContext): boolean;
@@ -13,6 +13,7 @@ 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';
16
17
  }>]>, z.ZodString]>;
17
18
  operation: z.ZodEnum<{
18
19
  add: "add";
@@ -39,6 +40,7 @@ declare const CustomActionConfig: z.ZodObject<{
39
40
  readonly CORRECTION_REQUESTED: 'correction-requested';
40
41
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
41
42
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
43
+ readonly SEALED: 'sealed';
42
44
  }>]>, z.ZodString]>;
43
45
  operation: z.ZodEnum<{
44
46
  add: "add";
@@ -70,6 +72,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
70
72
  readonly CORRECTION_REQUESTED: 'correction-requested';
71
73
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
72
74
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
75
+ readonly SEALED: 'sealed';
73
76
  }>]>, z.ZodString]>;
74
77
  operation: z.ZodEnum<{
75
78
  add: "add";
@@ -120,6 +123,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
120
123
  readonly CORRECTION_REQUESTED: 'correction-requested';
121
124
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
122
125
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
126
+ readonly SEALED: 'sealed';
123
127
  }>]>, z.ZodString]>;
124
128
  operation: z.ZodEnum<{
125
129
  add: "add";
@@ -146,6 +150,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
146
150
  readonly CORRECTION_REQUESTED: 'correction-requested';
147
151
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
148
152
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
153
+ readonly SEALED: 'sealed';
149
154
  }>]>, z.ZodString]>;
150
155
  operation: z.ZodEnum<{
151
156
  add: "add";
@@ -173,6 +178,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
173
178
  readonly CORRECTION_REQUESTED: 'correction-requested';
174
179
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
175
180
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
181
+ readonly SEALED: 'sealed';
176
182
  }>]>, z.ZodString]>;
177
183
  operation: z.ZodEnum<{
178
184
  add: "add";
@@ -213,6 +219,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
213
219
  readonly CORRECTION_REQUESTED: 'correction-requested';
214
220
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
215
221
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
222
+ readonly SEALED: 'sealed';
216
223
  }>]>, z.ZodString]>;
217
224
  operation: z.ZodEnum<{
218
225
  add: "add";
@@ -234,6 +241,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
234
241
  readonly CORRECTION_REQUESTED: 'correction-requested';
235
242
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
236
243
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
244
+ readonly SEALED: 'sealed';
237
245
  }>]>, z.ZodString]>;
238
246
  operation: z.ZodEnum<{
239
247
  add: "add";
@@ -260,6 +268,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
260
268
  readonly CORRECTION_REQUESTED: 'correction-requested';
261
269
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
262
270
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
271
+ readonly SEALED: 'sealed';
263
272
  }>]>, z.ZodString]>;
264
273
  operation: z.ZodEnum<{
265
274
  add: "add";
@@ -286,6 +295,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
286
295
  readonly CORRECTION_REQUESTED: 'correction-requested';
287
296
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
288
297
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
298
+ readonly SEALED: 'sealed';
289
299
  }>]>, z.ZodString]>;
290
300
  operation: z.ZodEnum<{
291
301
  add: "add";
@@ -313,6 +323,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
313
323
  readonly CORRECTION_REQUESTED: 'correction-requested';
314
324
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
315
325
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
326
+ readonly SEALED: 'sealed';
316
327
  }>]>, z.ZodString]>;
317
328
  operation: z.ZodEnum<{
318
329
  add: "add";
@@ -345,6 +356,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
345
356
  readonly CORRECTION_REQUESTED: 'correction-requested';
346
357
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
347
358
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
359
+ readonly SEALED: 'sealed';
348
360
  }>]>, z.ZodString]>;
349
361
  operation: z.ZodEnum<{
350
362
  add: "add";
@@ -401,6 +413,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
401
413
  readonly CORRECTION_REQUESTED: 'correction-requested';
402
414
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
403
415
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
416
+ readonly SEALED: 'sealed';
404
417
  }>]>, z.ZodString]>;
405
418
  operation: z.ZodEnum<{
406
419
  add: "add";
@@ -457,6 +470,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
457
470
  readonly CORRECTION_REQUESTED: 'correction-requested';
458
471
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
459
472
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
473
+ readonly SEALED: 'sealed';
460
474
  }>]>, z.ZodString]>;
461
475
  operation: z.ZodEnum<{
462
476
  add: "add";
@@ -483,6 +497,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
483
497
  readonly CORRECTION_REQUESTED: 'correction-requested';
484
498
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
485
499
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
500
+ readonly SEALED: 'sealed';
486
501
  }>]>, z.ZodString]>;
487
502
  operation: z.ZodEnum<{
488
503
  add: "add";
@@ -509,6 +524,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
509
524
  readonly CORRECTION_REQUESTED: 'correction-requested';
510
525
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
511
526
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
527
+ readonly SEALED: 'sealed';
512
528
  }>]>, z.ZodString]>;
513
529
  operation: z.ZodEnum<{
514
530
  add: "add";
@@ -540,6 +556,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
540
556
  readonly CORRECTION_REQUESTED: 'correction-requested';
541
557
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
542
558
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
559
+ readonly SEALED: 'sealed';
543
560
  }>]>, z.ZodString]>;
544
561
  operation: z.ZodEnum<{
545
562
  add: "add";
@@ -567,6 +584,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
567
584
  readonly CORRECTION_REQUESTED: 'correction-requested';
568
585
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
569
586
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
587
+ readonly SEALED: 'sealed';
570
588
  }>]>, z.ZodString]>;
571
589
  operation: z.ZodEnum<{
572
590
  add: "add";
@@ -593,6 +611,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
593
611
  readonly CORRECTION_REQUESTED: 'correction-requested';
594
612
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
595
613
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
614
+ readonly SEALED: 'sealed';
596
615
  }>]>, z.ZodString]>;
597
616
  operation: z.ZodEnum<{
598
617
  add: "add";
@@ -634,6 +653,7 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
634
653
  readonly CORRECTION_REQUESTED: 'correction-requested';
635
654
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
636
655
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
656
+ readonly SEALED: 'sealed';
637
657
  }>]>, z.ZodString]>;
638
658
  operation: z.ZodEnum<{
639
659
  add: "add";
@@ -675,6 +695,7 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
675
695
  readonly CORRECTION_REQUESTED: 'correction-requested';
676
696
  readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
677
697
  readonly EDIT_IN_PROGRESS: 'edit-in-progress';
698
+ readonly SEALED: 'sealed';
678
699
  }>]>, z.ZodString]>;
679
700
  operation: z.ZodEnum<{
680
701
  add: "add";
@@ -1,5 +1,6 @@
1
1
  import * as z from 'zod/v4';
2
2
  import { FieldValue, FieldUpdateValue } from './FieldValue';
3
+ export { ActionStatus } from './ActionStatus';
3
4
  /**
4
5
  * ActionUpdate is a record of a specific action that updated data fields.
5
6
  */
@@ -10,12 +11,6 @@ export type ActionUpdate = z.infer<typeof ActionUpdate>;
10
11
  */
11
12
  export declare const EventState: z.ZodRecord<z.ZodString, z.ZodType<FieldValue, unknown, z.core.$ZodTypeInternals<FieldValue, unknown>>>;
12
13
  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;
19
14
  export declare const ActionBase: z.ZodObject<{
20
15
  id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
21
16
  transactionId: z.ZodString;
@@ -1173,5 +1168,4 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
1173
1168
  export type Action = z.infer<typeof Action>;
1174
1169
  export type CreatedAction = z.infer<typeof CreatedAction>;
1175
1170
  export type AssignedAction = z.infer<typeof AssignedAction>;
1176
- export {};
1177
1171
  //# sourceMappingURL=ActionDocument.d.ts.map
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Deliberately dependency-free (aside from language builtins) so that files
3
+ * like Flag.ts can depend on ActionStatus without being pulled into the
4
+ * commons/scopes.ts <-> commons/authentication.ts import cycle that
5
+ * ActionDocument.ts participates in (it imports TokenUserType from
6
+ * '../authentication').
7
+ */
8
+ export declare const ActionStatus: {
9
+ readonly Requested: 'Requested';
10
+ readonly Accepted: 'Accepted';
11
+ readonly Rejected: 'Rejected';
12
+ };
13
+ export type ActionStatus = keyof typeof ActionStatus;
14
+ //# sourceMappingURL=ActionStatus.d.ts.map
@@ -103,7 +103,6 @@ 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";
107
106
  "organisation.read-locations": "organisation.read-locations";
108
107
  "performance.read": "performance.read";
109
108
  "performance.read-dashboards": "performance.read-dashboards";
@@ -142,6 +141,7 @@ export declare const FieldConfigSchema: z.ZodObject<{
142
141
  declaredBy: "declaredBy";
143
142
  declaredIn: "declaredIn";
144
143
  event: "event";
144
+ flags: "flags";
145
145
  ids: "ids";
146
146
  notifiedBy: "notifiedBy";
147
147
  notifiedIn: "notifiedIn";
@@ -284,7 +284,6 @@ 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";
288
287
  "organisation.read-locations": "organisation.read-locations";
289
288
  "performance.read": "performance.read";
290
289
  "performance.read-dashboards": "performance.read-dashboards";
@@ -323,6 +322,7 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
323
322
  declaredBy: "declaredBy";
324
323
  declaredIn: "declaredIn";
325
324
  event: "event";
325
+ flags: "flags";
326
326
  ids: "ids";
327
327
  notifiedBy: "notifiedBy";
328
328
  notifiedIn: "notifiedIn";
@@ -441,7 +441,6 @@ 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";
445
444
  "organisation.read-locations": "organisation.read-locations";
446
445
  "performance.read": "performance.read";
447
446
  "performance.read-dashboards": "performance.read-dashboards";
@@ -480,6 +479,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
480
479
  declaredBy: "declaredBy";
481
480
  declaredIn: "declaredIn";
482
481
  event: "event";
482
+ flags: "flags";
483
483
  ids: "ids";
484
484
  notifiedBy: "notifiedBy";
485
485
  notifiedIn: "notifiedIn";
@@ -590,7 +590,6 @@ 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";
594
593
  "organisation.read-locations": "organisation.read-locations";
595
594
  "performance.read": "performance.read";
596
595
  "performance.read-dashboards": "performance.read-dashboards";
@@ -629,6 +628,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
629
628
  declaredBy: "declaredBy";
630
629
  declaredIn: "declaredIn";
631
630
  event: "event";
631
+ flags: "flags";
632
632
  ids: "ids";
633
633
  notifiedBy: "notifiedBy";
634
634
  notifiedIn: "notifiedIn";
@@ -750,7 +750,6 @@ 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";
754
753
  "organisation.read-locations": "organisation.read-locations";
755
754
  "performance.read": "performance.read";
756
755
  "performance.read-dashboards": "performance.read-dashboards";
@@ -789,6 +788,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
789
788
  declaredBy: "declaredBy";
790
789
  declaredIn: "declaredIn";
791
790
  event: "event";
791
+ flags: "flags";
792
792
  ids: "ids";
793
793
  notifiedBy: "notifiedBy";
794
794
  notifiedIn: "notifiedIn";
@@ -899,7 +899,6 @@ 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";
903
902
  "organisation.read-locations": "organisation.read-locations";
904
903
  "performance.read": "performance.read";
905
904
  "performance.read-dashboards": "performance.read-dashboards";
@@ -938,6 +937,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
938
937
  declaredBy: "declaredBy";
939
938
  declaredIn: "declaredIn";
940
939
  event: "event";
940
+ flags: "flags";
941
941
  ids: "ids";
942
942
  notifiedBy: "notifiedBy";
943
943
  notifiedIn: "notifiedIn";
@@ -281,43 +281,6 @@ 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>;
321
284
  }, z.core.$strip>, z.ZodObject<{
322
285
  id: z.ZodString;
323
286
  clientId: z.ZodString;