@opencrvs/toolkit 2.1.0-rc.5617d8e → 2.1.0-rc.57bc3ac

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.
@@ -647,6 +647,7 @@ var PlainScopeType = z11.enum([
647
647
  "integration.create",
648
648
  "record.import",
649
649
  "config.update-all",
650
+ "location.edit",
650
651
  "attachment.upload",
651
652
  "profile.electronic-signature",
652
653
  "user.read-only-my-audit",
@@ -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;
7838
- skip: number;
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,23 @@ 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: "administrativeAreas.create" | "locations.create";
8251
+ requestData: {
8252
+ id: string;
8253
+ versionId: string;
8254
+ name: string;
8255
+ externalId?: string | null | undefined;
8256
+ administrativeAreaId?: string | null | undefined;
8257
+ parentId?: string | null | undefined;
8258
+ locationType?: string | null | undefined;
8259
+ effectiveFrom: string;
8260
+ status: string;
8261
+ };
8245
8262
  } | {
8246
8263
  id: string;
8247
8264
  clientId: string;
@@ -8353,7 +8370,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8353
8370
  administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8354
8371
  locationType: string | null;
8355
8372
  status: "active" | "inactive";
8356
- effectiveFrom: string;
8357
8373
  versions: {
8358
8374
  versionId: string & import("zod").$brand<"UUID">;
8359
8375
  effectiveFrom: string;
@@ -8375,6 +8391,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8375
8391
  output: void;
8376
8392
  meta: object;
8377
8393
  }>;
8394
+ create: import("@trpc/server").TRPCMutationProcedure<{
8395
+ input: {
8396
+ id?: string | undefined;
8397
+ versionId?: string | undefined;
8398
+ name: string;
8399
+ externalId?: string | null | undefined;
8400
+ administrativeAreaId: string | null;
8401
+ locationType: string | null;
8402
+ effectiveFrom?: string | undefined;
8403
+ status?: "active" | "inactive" | undefined;
8404
+ };
8405
+ output: {
8406
+ id: string & import("zod").$brand<"UUID">;
8407
+ name: string;
8408
+ externalId?: string | null | undefined;
8409
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8410
+ locationType: string | null;
8411
+ status: "active" | "inactive";
8412
+ versions: {
8413
+ versionId: string & import("zod").$brand<"UUID">;
8414
+ effectiveFrom: string;
8415
+ name: string;
8416
+ externalId?: string | null | undefined;
8417
+ status: "active" | "inactive";
8418
+ }[];
8419
+ };
8420
+ meta: import("trpc-to-openapi").OpenApiMeta;
8421
+ }>;
8378
8422
  get: import("@trpc/server").TRPCQueryProcedure<{
8379
8423
  input: {
8380
8424
  id: string;
@@ -8386,7 +8430,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8386
8430
  administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8387
8431
  locationType: string | null;
8388
8432
  status: "active" | "inactive";
8389
- effectiveFrom: string;
8390
8433
  versions: {
8391
8434
  versionId: string & import("zod").$brand<"UUID">;
8392
8435
  effectiveFrom: string;
@@ -8802,7 +8845,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8802
8845
  externalId?: string | null | undefined;
8803
8846
  parentId: (string & import("zod").$brand<"UUID">) | null;
8804
8847
  status: "active" | "inactive";
8805
- effectiveFrom: string;
8806
8848
  versions: {
8807
8849
  versionId: string & import("zod").$brand<"UUID">;
8808
8850
  effectiveFrom: string;
@@ -8823,6 +8865,32 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8823
8865
  output: void;
8824
8866
  meta: object;
8825
8867
  }>;
8868
+ create: import("@trpc/server").TRPCMutationProcedure<{
8869
+ input: {
8870
+ id?: string | undefined;
8871
+ versionId?: string | undefined;
8872
+ name: string;
8873
+ externalId?: string | null | undefined;
8874
+ parentId: string | null;
8875
+ effectiveFrom?: string | undefined;
8876
+ status?: "active" | "inactive" | undefined;
8877
+ };
8878
+ output: {
8879
+ id: string & import("zod").$brand<"UUID">;
8880
+ name: string;
8881
+ externalId?: string | null | undefined;
8882
+ parentId: (string & import("zod").$brand<"UUID">) | null;
8883
+ status: "active" | "inactive";
8884
+ versions: {
8885
+ versionId: string & import("zod").$brand<"UUID">;
8886
+ effectiveFrom: string;
8887
+ name: string;
8888
+ externalId?: string | null | undefined;
8889
+ status: "active" | "inactive";
8890
+ }[];
8891
+ };
8892
+ meta: import("trpc-to-openapi").OpenApiMeta;
8893
+ }>;
8826
8894
  }>>;
8827
8895
  integrations: import("@trpc/server").TRPCBuiltRouter<{
8828
8896
  ctx: Partial<{
@@ -85,16 +85,16 @@ 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";
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
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";
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
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";
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
98
  $option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
99
99
  };
100
100
  };
@@ -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";
@@ -283,6 +284,7 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
283
284
  "config.update-all": "config.update-all";
284
285
  "dashboard.view": "dashboard.view";
285
286
  "integration.create": "integration.create";
287
+ "location.edit": "location.edit";
286
288
  "organisation.read-locations": "organisation.read-locations";
287
289
  "performance.read": "performance.read";
288
290
  "performance.read-dashboards": "performance.read-dashboards";
@@ -439,6 +441,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
439
441
  "config.update-all": "config.update-all";
440
442
  "dashboard.view": "dashboard.view";
441
443
  "integration.create": "integration.create";
444
+ "location.edit": "location.edit";
442
445
  "organisation.read-locations": "organisation.read-locations";
443
446
  "performance.read": "performance.read";
444
447
  "performance.read-dashboards": "performance.read-dashboards";
@@ -587,6 +590,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
587
590
  "config.update-all": "config.update-all";
588
591
  "dashboard.view": "dashboard.view";
589
592
  "integration.create": "integration.create";
593
+ "location.edit": "location.edit";
590
594
  "organisation.read-locations": "organisation.read-locations";
591
595
  "performance.read": "performance.read";
592
596
  "performance.read-dashboards": "performance.read-dashboards";
@@ -746,6 +750,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
746
750
  "config.update-all": "config.update-all";
747
751
  "dashboard.view": "dashboard.view";
748
752
  "integration.create": "integration.create";
753
+ "location.edit": "location.edit";
749
754
  "organisation.read-locations": "organisation.read-locations";
750
755
  "performance.read": "performance.read";
751
756
  "performance.read-dashboards": "performance.read-dashboards";
@@ -894,6 +899,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
894
899
  "config.update-all": "config.update-all";
895
900
  "dashboard.view": "dashboard.view";
896
901
  "integration.create": "integration.create";
902
+ "location.edit": "location.edit";
897
903
  "organisation.read-locations": "organisation.read-locations";
898
904
  "performance.read": "performance.read";
899
905
  "performance.read-dashboards": "performance.read-dashboards";
@@ -281,6 +281,29 @@ 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.ZodEnum<{
293
+ "administrativeAreas.create": "administrativeAreas.create";
294
+ "locations.create": "locations.create";
295
+ }>;
296
+ requestData: z.ZodObject<{
297
+ id: z.ZodString;
298
+ versionId: z.ZodString;
299
+ name: z.ZodString;
300
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
+ administrativeAreaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
302
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
303
+ locationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
+ effectiveFrom: z.ZodString;
305
+ status: z.ZodString;
306
+ }, z.core.$strip>;
284
307
  }, z.core.$strip>, z.ZodObject<{
285
308
  id: z.ZodString;
286
309
  clientId: z.ZodString;
@@ -1883,6 +1883,7 @@ declare const AdministrativeAreaField: z.ZodObject<{
1883
1883
  "config.update-all": "config.update-all";
1884
1884
  "dashboard.view": "dashboard.view";
1885
1885
  "integration.create": "integration.create";
1886
+ "location.edit": "location.edit";
1886
1887
  "organisation.read-locations": "organisation.read-locations";
1887
1888
  "performance.read": "performance.read";
1888
1889
  "performance.read-dashboards": "performance.read-dashboards";
@@ -2012,6 +2013,7 @@ declare const LocationInput: z.ZodObject<{
2012
2013
  "config.update-all": "config.update-all";
2013
2014
  "dashboard.view": "dashboard.view";
2014
2015
  "integration.create": "integration.create";
2016
+ "location.edit": "location.edit";
2015
2017
  "organisation.read-locations": "organisation.read-locations";
2016
2018
  "performance.read": "performance.read";
2017
2019
  "performance.read-dashboards": "performance.read-dashboards";
@@ -2212,6 +2214,7 @@ declare const Facility: z.ZodObject<{
2212
2214
  "config.update-all": "config.update-all";
2213
2215
  "dashboard.view": "dashboard.view";
2214
2216
  "integration.create": "integration.create";
2217
+ "location.edit": "location.edit";
2215
2218
  "organisation.read-locations": "organisation.read-locations";
2216
2219
  "performance.read": "performance.read";
2217
2220
  "performance.read-dashboards": "performance.read-dashboards";
@@ -2327,6 +2330,7 @@ declare const Office: z.ZodObject<{
2327
2330
  "config.update-all": "config.update-all";
2328
2331
  "dashboard.view": "dashboard.view";
2329
2332
  "integration.create": "integration.create";
2333
+ "location.edit": "location.edit";
2330
2334
  "organisation.read-locations": "organisation.read-locations";
2331
2335
  "performance.read": "performance.read";
2332
2336
  "performance.read-dashboards": "performance.read-dashboards";
@@ -2528,6 +2532,7 @@ declare const Address: z.ZodObject<{
2528
2532
  "config.update-all": "config.update-all";
2529
2533
  "dashboard.view": "dashboard.view";
2530
2534
  "integration.create": "integration.create";
2535
+ "location.edit": "location.edit";
2531
2536
  "organisation.read-locations": "organisation.read-locations";
2532
2537
  "performance.read": "performance.read";
2533
2538
  "performance.read-dashboards": "performance.read-dashboards";
@@ -45,6 +45,7 @@ export * from './field';
45
45
  export * from './Flag';
46
46
  export * from './event';
47
47
  export * from './locations';
48
+ export * from './locationPayloads';
48
49
  export { UUID } from '../uuid';
49
50
  export { DocumentPath } from '../documents';
50
51
  //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,95 @@
1
+ import * as z from 'zod/v4';
2
+ /**
3
+ * Input payload for creating a location: the identity fields (parent and
4
+ * locationType are set once, immutable thereafter) plus the first version.
5
+ * `id` and `versionId` may be supplied by the caller for idempotent retries.
6
+ * `effectiveFrom` defaults to the beginning-of-time sentinel on the server.
7
+ */
8
+ export declare const CreateLocationPayload: z.ZodObject<{
9
+ id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
10
+ versionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
11
+ name: z.ZodString;
12
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ administrativeAreaId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
14
+ locationType: z.ZodNullable<z.ZodString>;
15
+ effectiveFrom: z.ZodOptional<z.ZodISODate>;
16
+ status: z.ZodDefault<z.ZodEnum<{
17
+ active: "active";
18
+ inactive: "inactive";
19
+ }>>;
20
+ }, z.core.$strip>;
21
+ export type CreateLocationPayload = z.infer<typeof CreateLocationPayload>;
22
+ /**
23
+ * Input payload for appending a new version to a location. A full snapshot of
24
+ * every versioned field is required — omitted does not mean unchanged. The
25
+ * schema is strict: identity fields (`administrativeAreaId`, `locationType`)
26
+ * are rejected rather than ignored, as they cannot change. `lastVersionId`
27
+ * is the optimistic-concurrency check: it must be the id of the last element
28
+ * the caller observed. `effectiveFrom` defaults to today on the server;
29
+ * supply it explicitly for idempotent retries.
30
+ */
31
+ export declare const UpdateLocationPayload: z.ZodObject<{
32
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
33
+ versionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
34
+ name: z.ZodString;
35
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ status: z.ZodEnum<{
37
+ active: "active";
38
+ inactive: "inactive";
39
+ }>;
40
+ effectiveFrom: z.ZodOptional<z.ZodISODate>;
41
+ lastVersionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
42
+ }, z.core.$strict>;
43
+ export type UpdateLocationPayload = z.infer<typeof UpdateLocationPayload>;
44
+ /**
45
+ * Input payload for withdrawing a pending (future-dated) version element.
46
+ * Only elements whose `effectiveFrom` has not yet passed can be withdrawn.
47
+ */
48
+ export declare const WithdrawLocationVersionPayload: z.ZodObject<{
49
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
50
+ versionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
51
+ }, z.core.$strip>;
52
+ export type WithdrawLocationVersionPayload = z.infer<typeof WithdrawLocationVersionPayload>;
53
+ /**
54
+ * Administrative-area twin of {@link CreateLocationPayload}: `parentId`
55
+ * instead of `administrativeAreaId`, no `locationType`.
56
+ */
57
+ export declare const CreateAdministrativeAreaPayload: z.ZodObject<{
58
+ id: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
59
+ versionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
60
+ name: z.ZodString;
61
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
62
+ parentId: z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
63
+ effectiveFrom: z.ZodOptional<z.ZodISODate>;
64
+ status: z.ZodDefault<z.ZodEnum<{
65
+ active: "active";
66
+ inactive: "inactive";
67
+ }>>;
68
+ }, z.core.$strip>;
69
+ export type CreateAdministrativeAreaPayload = z.infer<typeof CreateAdministrativeAreaPayload>;
70
+ /**
71
+ * Administrative-area twin of {@link UpdateLocationPayload} — strict for the
72
+ * same reason: the identity field (`parentId`) is rejected, not ignored.
73
+ */
74
+ export declare const UpdateAdministrativeAreaPayload: z.ZodObject<{
75
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
76
+ versionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
77
+ name: z.ZodString;
78
+ externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ status: z.ZodEnum<{
80
+ active: "active";
81
+ inactive: "inactive";
82
+ }>;
83
+ effectiveFrom: z.ZodOptional<z.ZodISODate>;
84
+ lastVersionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
85
+ }, z.core.$strict>;
86
+ export type UpdateAdministrativeAreaPayload = z.infer<typeof UpdateAdministrativeAreaPayload>;
87
+ /**
88
+ * Administrative-area twin of {@link WithdrawLocationVersionPayload}.
89
+ */
90
+ export declare const WithdrawAdministrativeAreaVersionPayload: z.ZodObject<{
91
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
92
+ versionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
93
+ }, z.core.$strip>;
94
+ export type WithdrawAdministrativeAreaVersionPayload = z.infer<typeof WithdrawAdministrativeAreaVersionPayload>;
95
+ //# sourceMappingURL=locationPayloads.d.ts.map
@@ -41,7 +41,6 @@ export declare const AdministrativeArea: z.ZodObject<{
41
41
  active: "active";
42
42
  inactive: "inactive";
43
43
  }>;
44
- effectiveFrom: z.ZodISODate;
45
44
  versions: z.ZodArray<z.ZodObject<{
46
45
  versionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
47
46
  effectiveFrom: z.ZodISODate;
@@ -64,7 +63,6 @@ export declare const Location: z.ZodObject<{
64
63
  active: "active";
65
64
  inactive: "inactive";
66
65
  }>;
67
- effectiveFrom: z.ZodISODate;
68
66
  versions: z.ZodArray<z.ZodObject<{
69
67
  versionId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
70
68
  effectiveFrom: z.ZodISODate;
@@ -113,6 +111,13 @@ export type SetAdministrativeAreaPayload = z.infer<typeof SetAdministrativeAreaP
113
111
  export declare function resolveVersion<T extends {
114
112
  effectiveFrom: string;
115
113
  }>(versions: T[], anchor: string): T;
114
+ /**
115
+ * Whether the entity holds the given externalId with active status at the
116
+ * anchor date or at any point after it. Used for point-in-time uniqueness of
117
+ * external codes: a new holder starting at `anchor` collides when an existing
118
+ * holder is (or is scheduled to be) active with the code from then on.
119
+ */
120
+ export declare function hasActiveExternalIdOnOrAfter(versions: LocationVersion[], externalId: string, anchor: string): boolean;
116
121
  type WrapArrayPreserveNullish<V> = V extends readonly any[] ? V : NonNullable<V>[] | Extract<V, null | undefined>;
117
122
  /**
118
123
  * For type T, convert fields K to arrays. If field is string, convert to string[].
@@ -165,7 +170,6 @@ export declare function getAdministrativeAreaHierarchy(administrativeAreaId: str
165
170
  externalId?: string | null | undefined;
166
171
  parentId: (string & z.$brand<"UUID">) | null;
167
172
  status: "active" | "inactive";
168
- effectiveFrom: string;
169
173
  versions: {
170
174
  versionId: string & z.$brand<"UUID">;
171
175
  effectiveFrom: string;
@@ -8,7 +8,6 @@ export declare const V2_DEFAULT_MOCK_LOCATIONS_MAP: Map<string & import("zod").$
8
8
  administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
9
9
  locationType: string | null;
10
10
  status: "active" | "inactive";
11
- effectiveFrom: string;
12
11
  versions: {
13
12
  versionId: string & import("zod").$brand<"UUID">;
14
13
  effectiveFrom: string;
@@ -23,7 +22,6 @@ export declare const V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP: Map<string & impo
23
22
  externalId?: string | null | undefined;
24
23
  parentId: (string & import("zod").$brand<"UUID">) | null;
25
24
  status: "active" | "inactive";
26
- effectiveFrom: string;
27
25
  versions: {
28
26
  versionId: string & import("zod").$brand<"UUID">;
29
27
  effectiveFrom: string;
@@ -169,6 +169,7 @@ var PlainScopeType = z6.enum([
169
169
  "integration.create",
170
170
  "record.import",
171
171
  "config.update-all",
172
+ "location.edit",
172
173
  "attachment.upload",
173
174
  "profile.electronic-signature",
174
175
  "user.read-only-my-audit",
@@ -80,6 +80,8 @@ __export(events_exports, {
80
80
  ConditionalType: () => ConditionalType,
81
81
  ConfirmableActions: () => ConfirmableActions,
82
82
  ContainsFlags: () => ContainsFlags,
83
+ CreateAdministrativeAreaPayload: () => CreateAdministrativeAreaPayload,
84
+ CreateLocationPayload: () => CreateLocationPayload,
83
85
  CustomActionInput: () => CustomActionInput,
84
86
  CustomFieldValue: () => CustomFieldValue,
85
87
  CustomFlag: () => CustomFlag,
@@ -220,6 +222,8 @@ __export(events_exports, {
220
222
  UUID: () => UUID,
221
223
  UnarchiveActionInput: () => UnarchiveActionInput,
222
224
  UnassignActionInput: () => UnassignActionInput,
225
+ UpdateAdministrativeAreaPayload: () => UpdateAdministrativeAreaPayload,
226
+ UpdateLocationPayload: () => UpdateLocationPayload,
223
227
  UserAuditRecordInput: () => UserAuditRecordInput,
224
228
  V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS: () => V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS,
225
229
  V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP: () => V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP,
@@ -229,6 +233,8 @@ __export(events_exports, {
229
233
  VerificationActionConfig: () => VerificationActionConfig,
230
234
  VerificationPageConfig: () => VerificationPageConfig,
231
235
  VerificationStatusValue: () => VerificationStatusValue,
236
+ WithdrawAdministrativeAreaVersionPayload: () => WithdrawAdministrativeAreaVersionPayload,
237
+ WithdrawLocationVersionPayload: () => WithdrawLocationVersionPayload,
232
238
  Within: () => Within,
233
239
  WorkqueueActionType: () => WorkqueueActionType,
234
240
  WorkqueueColumn: () => WorkqueueColumn,
@@ -347,6 +353,7 @@ __export(events_exports, {
347
353
  getStatusFromActions: () => getStatusFromActions,
348
354
  getValidatorsForField: () => getValidatorsForField,
349
355
  getVisibleVerificationPageIds: () => getVisibleVerificationPageIds,
356
+ hasActiveExternalIdOnOrAfter: () => hasActiveExternalIdOnOrAfter,
350
357
  hasAnyOfScopes: () => hasAnyOfScopes,
351
358
  isActionAvailable: () => isActionAvailable,
352
359
  isActionConfigType: () => isActionConfigType,
@@ -505,6 +512,7 @@ var PlainScopeType = z2.enum([
505
512
  "integration.create",
506
513
  "record.import",
507
514
  "config.update-all",
515
+ "location.edit",
508
516
  "attachment.upload",
509
517
  "profile.electronic-signature",
510
518
  "user.read-only-my-audit",
@@ -987,6 +995,23 @@ var IntegrationRefreshSecretEntrySchema = AuditLogEntryBase.extend({
987
995
  requestData: z5.object({ id: z5.string() }),
988
996
  responseSummary: z5.object({ clientId: z5.string() })
989
997
  });
998
+ var LocationCreateEntrySchema = AuditLogEntryBase.extend({
999
+ operation: z5.enum(["locations.create", "administrativeAreas.create"]),
1000
+ requestData: z5.object({
1001
+ id: z5.string(),
1002
+ versionId: z5.string(),
1003
+ name: z5.string(),
1004
+ externalId: z5.string().nullish(),
1005
+ administrativeAreaId: z5.string().nullish(),
1006
+ // locations only
1007
+ parentId: z5.string().nullish(),
1008
+ // administrative areas only
1009
+ locationType: z5.string().nullish(),
1010
+ // locations only
1011
+ effectiveFrom: z5.string(),
1012
+ status: z5.string()
1013
+ })
1014
+ });
990
1015
  var AttachmentUploadEntrySchema = AuditLogEntryBase.extend({
991
1016
  operation: z5.literal("attachments.upload"),
992
1017
  requestData: z5.object({
@@ -1062,6 +1087,7 @@ var AuditLogEntrySchema = z5.discriminatedUnion("operation", [
1062
1087
  IntegrationActivateEntrySchema,
1063
1088
  IntegrationDeleteEntrySchema,
1064
1089
  IntegrationRefreshSecretEntrySchema,
1090
+ LocationCreateEntrySchema,
1065
1091
  AttachmentUploadEntrySchema,
1066
1092
  UserCreateEntrySchema,
1067
1093
  UserReasonEntrySchema,
@@ -10485,7 +10511,6 @@ var AdministrativeArea = z43.object({
10485
10511
  externalId: z43.string().nullish(),
10486
10512
  parentId: UUID.nullable(),
10487
10513
  status: LocationStatus,
10488
- effectiveFrom: z43.iso.date(),
10489
10514
  versions: z43.array(LocationVersion)
10490
10515
  });
10491
10516
  var Location = z43.object({
@@ -10495,7 +10520,6 @@ var Location = z43.object({
10495
10520
  administrativeAreaId: UUID.nullable(),
10496
10521
  locationType: z43.string().nullable(),
10497
10522
  status: LocationStatus,
10498
- effectiveFrom: z43.iso.date(),
10499
10523
  versions: z43.array(LocationVersion)
10500
10524
  });
10501
10525
  var SetLocationPayload = z43.object({
@@ -10520,6 +10544,13 @@ function resolveVersion(versions, anchor) {
10520
10544
  }
10521
10545
  return resolved;
10522
10546
  }
10547
+ function hasActiveExternalIdOnOrAfter(versions, externalId, anchor) {
10548
+ const inEffectAtAnchor = resolveVersion(versions, anchor);
10549
+ const laterVersions = versions.filter((v) => v.effectiveFrom > anchor);
10550
+ return [inEffectAtAnchor, ...laterVersions].some(
10551
+ (v) => v.externalId === externalId && v.status === "active"
10552
+ );
10553
+ }
10523
10554
  function matchesJurisdictionFilter(locationIds, filter, user2) {
10524
10555
  if (!locationIds) {
10525
10556
  return false;
@@ -11003,7 +11034,6 @@ function withVersionFields(entity) {
11003
11034
  return {
11004
11035
  ...entity,
11005
11036
  status: "active",
11006
- effectiveFrom: "0001-01-01",
11007
11037
  versions: [
11008
11038
  {
11009
11039
  versionId: entity.id,
@@ -11331,3 +11361,51 @@ var V2_DEFAULT_MOCK_LOCATIONS_MAP = new Map(
11331
11361
  var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP = new Map(
11332
11362
  V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS.map((a) => [a.id, a])
11333
11363
  );
11364
+
11365
+ // ../commons/src/events/locationPayloads.ts
11366
+ var z44 = __toESM(require("zod/v4"));
11367
+ var CreateLocationPayload = z44.object({
11368
+ id: UUID.optional(),
11369
+ versionId: UUID.optional(),
11370
+ name: z44.string(),
11371
+ externalId: z44.string().nullish(),
11372
+ administrativeAreaId: UUID.nullable(),
11373
+ locationType: z44.string().nullable(),
11374
+ effectiveFrom: z44.iso.date().optional(),
11375
+ status: LocationStatus.default("active")
11376
+ });
11377
+ var UpdateLocationPayload = z44.strictObject({
11378
+ id: UUID,
11379
+ versionId: UUID.optional(),
11380
+ name: z44.string(),
11381
+ externalId: z44.string().nullish(),
11382
+ status: LocationStatus,
11383
+ effectiveFrom: z44.iso.date().optional(),
11384
+ lastVersionId: UUID
11385
+ });
11386
+ var WithdrawLocationVersionPayload = z44.object({
11387
+ id: UUID,
11388
+ versionId: UUID
11389
+ });
11390
+ var CreateAdministrativeAreaPayload = z44.object({
11391
+ id: UUID.optional(),
11392
+ versionId: UUID.optional(),
11393
+ name: z44.string(),
11394
+ externalId: z44.string().nullish(),
11395
+ parentId: UUID.nullable(),
11396
+ effectiveFrom: z44.iso.date().optional(),
11397
+ status: LocationStatus.default("active")
11398
+ });
11399
+ var UpdateAdministrativeAreaPayload = z44.strictObject({
11400
+ id: UUID,
11401
+ versionId: UUID.optional(),
11402
+ name: z44.string(),
11403
+ externalId: z44.string().nullish(),
11404
+ status: LocationStatus,
11405
+ effectiveFrom: z44.iso.date().optional(),
11406
+ lastVersionId: UUID
11407
+ });
11408
+ var WithdrawAdministrativeAreaVersionPayload = z44.object({
11409
+ id: UUID,
11410
+ versionId: UUID
11411
+ });
@@ -38,7 +38,7 @@ __export(notification_exports, {
38
38
  triggerUserEventNotification: () => triggerUserEventNotification
39
39
  });
40
40
  module.exports = __toCommonJS(notification_exports);
41
- var z45 = __toESM(require("zod/v4"));
41
+ var z46 = __toESM(require("zod/v4"));
42
42
 
43
43
  // ../commons/src/url.ts
44
44
  function joinUrl(base, path) {
@@ -96,6 +96,7 @@ var PlainScopeType = z2.enum([
96
96
  "integration.create",
97
97
  "record.import",
98
98
  "config.update-all",
99
+ "location.edit",
99
100
  "attachment.upload",
100
101
  "profile.electronic-signature",
101
102
  "user.read-only-my-audit",
@@ -530,6 +531,23 @@ var IntegrationRefreshSecretEntrySchema = AuditLogEntryBase.extend({
530
531
  requestData: z5.object({ id: z5.string() }),
531
532
  responseSummary: z5.object({ clientId: z5.string() })
532
533
  });
534
+ var LocationCreateEntrySchema = AuditLogEntryBase.extend({
535
+ operation: z5.enum(["locations.create", "administrativeAreas.create"]),
536
+ requestData: z5.object({
537
+ id: z5.string(),
538
+ versionId: z5.string(),
539
+ name: z5.string(),
540
+ externalId: z5.string().nullish(),
541
+ administrativeAreaId: z5.string().nullish(),
542
+ // locations only
543
+ parentId: z5.string().nullish(),
544
+ // administrative areas only
545
+ locationType: z5.string().nullish(),
546
+ // locations only
547
+ effectiveFrom: z5.string(),
548
+ status: z5.string()
549
+ })
550
+ });
533
551
  var AttachmentUploadEntrySchema = AuditLogEntryBase.extend({
534
552
  operation: z5.literal("attachments.upload"),
535
553
  requestData: z5.object({
@@ -605,6 +623,7 @@ var AuditLogEntrySchema = z5.discriminatedUnion("operation", [
605
623
  IntegrationActivateEntrySchema,
606
624
  IntegrationDeleteEntrySchema,
607
625
  IntegrationRefreshSecretEntrySchema,
626
+ LocationCreateEntrySchema,
608
627
  AttachmentUploadEntrySchema,
609
628
  UserCreateEntrySchema,
610
629
  UserReasonEntrySchema,
@@ -7373,7 +7392,6 @@ var AdministrativeArea = z43.object({
7373
7392
  externalId: z43.string().nullish(),
7374
7393
  parentId: UUID.nullable(),
7375
7394
  status: LocationStatus,
7376
- effectiveFrom: z43.iso.date(),
7377
7395
  versions: z43.array(LocationVersion)
7378
7396
  });
7379
7397
  var Location = z43.object({
@@ -7383,7 +7401,6 @@ var Location = z43.object({
7383
7401
  administrativeAreaId: UUID.nullable(),
7384
7402
  locationType: z43.string().nullable(),
7385
7403
  status: LocationStatus,
7386
- effectiveFrom: z43.iso.date(),
7387
7404
  versions: z43.array(LocationVersion)
7388
7405
  });
7389
7406
  var SetLocationPayload = z43.object({
@@ -7501,7 +7518,6 @@ function withVersionFields(entity) {
7501
7518
  return {
7502
7519
  ...entity,
7503
7520
  status: "active",
7504
- effectiveFrom: "0001-01-01",
7505
7521
  versions: [
7506
7522
  {
7507
7523
  versionId: entity.id,
@@ -7830,8 +7846,56 @@ var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP = new Map(
7830
7846
  V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS.map((a) => [a.id, a])
7831
7847
  );
7832
7848
 
7833
- // ../commons/src/notification/UserNotifications.ts
7849
+ // ../commons/src/events/locationPayloads.ts
7834
7850
  var z44 = __toESM(require("zod/v4"));
7851
+ var CreateLocationPayload = z44.object({
7852
+ id: UUID.optional(),
7853
+ versionId: UUID.optional(),
7854
+ name: z44.string(),
7855
+ externalId: z44.string().nullish(),
7856
+ administrativeAreaId: UUID.nullable(),
7857
+ locationType: z44.string().nullable(),
7858
+ effectiveFrom: z44.iso.date().optional(),
7859
+ status: LocationStatus.default("active")
7860
+ });
7861
+ var UpdateLocationPayload = z44.strictObject({
7862
+ id: UUID,
7863
+ versionId: UUID.optional(),
7864
+ name: z44.string(),
7865
+ externalId: z44.string().nullish(),
7866
+ status: LocationStatus,
7867
+ effectiveFrom: z44.iso.date().optional(),
7868
+ lastVersionId: UUID
7869
+ });
7870
+ var WithdrawLocationVersionPayload = z44.object({
7871
+ id: UUID,
7872
+ versionId: UUID
7873
+ });
7874
+ var CreateAdministrativeAreaPayload = z44.object({
7875
+ id: UUID.optional(),
7876
+ versionId: UUID.optional(),
7877
+ name: z44.string(),
7878
+ externalId: z44.string().nullish(),
7879
+ parentId: UUID.nullable(),
7880
+ effectiveFrom: z44.iso.date().optional(),
7881
+ status: LocationStatus.default("active")
7882
+ });
7883
+ var UpdateAdministrativeAreaPayload = z44.strictObject({
7884
+ id: UUID,
7885
+ versionId: UUID.optional(),
7886
+ name: z44.string(),
7887
+ externalId: z44.string().nullish(),
7888
+ status: LocationStatus,
7889
+ effectiveFrom: z44.iso.date().optional(),
7890
+ lastVersionId: UUID
7891
+ });
7892
+ var WithdrawAdministrativeAreaVersionPayload = z44.object({
7893
+ id: UUID,
7894
+ versionId: UUID
7895
+ });
7896
+
7897
+ // ../commons/src/notification/UserNotifications.ts
7898
+ var z45 = __toESM(require("zod/v4"));
7835
7899
  var TriggerEvent = {
7836
7900
  USER_CREATED: "user-created",
7837
7901
  USER_UPDATED: "user-updated",
@@ -7844,54 +7908,54 @@ var TriggerEvent = {
7844
7908
  CHANGE_PHONE_NUMBER: "change-phone-number",
7845
7909
  CHANGE_EMAIL_ADDRESS: "change-email-address"
7846
7910
  };
7847
- var Recipient = z44.object({
7911
+ var Recipient = z45.object({
7848
7912
  name: NameFieldValue.optional(),
7849
- mobile: z44.string().optional(),
7850
- email: z44.string().optional(),
7851
- bcc: z44.array(z44.string()).optional()
7913
+ mobile: z45.string().optional(),
7914
+ email: z45.string().optional(),
7915
+ bcc: z45.array(z45.string()).optional()
7852
7916
  });
7853
- var BasePayload = z44.object({
7917
+ var BasePayload = z45.object({
7854
7918
  recipient: Recipient
7855
7919
  });
7856
7920
  var TriggerPayload = {
7857
7921
  [TriggerEvent.USER_CREATED]: BasePayload.extend({
7858
- username: z44.string(),
7859
- temporaryPassword: z44.string()
7922
+ username: z45.string(),
7923
+ temporaryPassword: z45.string()
7860
7924
  }),
7861
7925
  [TriggerEvent.USER_UPDATED]: BasePayload.extend({
7862
- oldUsername: z44.string(),
7863
- newUsername: z44.string()
7926
+ oldUsername: z45.string(),
7927
+ newUsername: z45.string()
7864
7928
  }),
7865
7929
  [TriggerEvent.USERNAME_REMINDER]: BasePayload.extend({
7866
- username: z44.string()
7930
+ username: z45.string()
7867
7931
  }),
7868
7932
  [TriggerEvent.RESET_PASSWORD]: BasePayload.extend({
7869
- code: z44.string()
7933
+ code: z45.string()
7870
7934
  }),
7871
7935
  [TriggerEvent.RESET_PASSWORD_BY_ADMIN]: BasePayload.extend({
7872
- temporaryPassword: z44.string(),
7873
- admin: z44.object({
7874
- id: z44.string(),
7936
+ temporaryPassword: z45.string(),
7937
+ admin: z45.object({
7938
+ id: z45.string(),
7875
7939
  name: NameFieldValue,
7876
- role: z44.string()
7940
+ role: z45.string()
7877
7941
  })
7878
7942
  }),
7879
7943
  [TriggerEvent.RESEND_INVITE]: BasePayload.extend({
7880
- username: z44.string(),
7881
- temporaryPassword: z44.string()
7944
+ username: z45.string(),
7945
+ temporaryPassword: z45.string()
7882
7946
  }),
7883
7947
  [TriggerEvent.TWO_FA]: BasePayload.extend({
7884
- code: z44.string()
7948
+ code: z45.string()
7885
7949
  }),
7886
7950
  [TriggerEvent.ALL_USER_NOTIFICATION]: BasePayload.extend({
7887
- subject: z44.string(),
7888
- body: z44.string()
7951
+ subject: z45.string(),
7952
+ body: z45.string()
7889
7953
  }),
7890
7954
  [TriggerEvent.CHANGE_PHONE_NUMBER]: BasePayload.extend({
7891
- code: z44.string()
7955
+ code: z45.string()
7892
7956
  }),
7893
7957
  [TriggerEvent.CHANGE_EMAIL_ADDRESS]: BasePayload.extend({
7894
- code: z44.string()
7958
+ code: z45.string()
7895
7959
  })
7896
7960
  };
7897
7961
  async function triggerUserEventNotification({
@@ -7915,4 +7979,4 @@ function parseUserEventTrigger(event2, body) {
7915
7979
  }
7916
7980
 
7917
7981
  // src/notification/index.ts
7918
- z45.globalRegistry.clear();
7982
+ z46.globalRegistry.clear();
@@ -397,6 +397,7 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
397
397
  bypassratelimit: "bypassratelimit";
398
398
  "config.update-all": "config.update-all";
399
399
  "integration.create": "integration.create";
400
+ "location.edit": "location.edit";
400
401
  "performance.read": "performance.read";
401
402
  "performance.read-dashboards": "performance.read-dashboards";
402
403
  "performance.vital-statistics-export": "performance.vital-statistics-export";
@@ -617,6 +618,7 @@ export declare const ScopeType: z.ZodEnum<{
617
618
  "config.update-all": "config.update-all";
618
619
  "dashboard.view": "dashboard.view";
619
620
  "integration.create": "integration.create";
621
+ "location.edit": "location.edit";
620
622
  "organisation.read-locations": "organisation.read-locations";
621
623
  "performance.read": "performance.read";
622
624
  "performance.read-dashboards": "performance.read-dashboards";
@@ -737,7 +739,7 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
737
739
  accessLevel?: "administrativeArea" | "all" | "location" | undefined;
738
740
  } | undefined;
739
741
  } | {
740
- type: "attachment.upload" | "bypassratelimit" | "config.update-all" | "integration.create" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.confirm-registration" | "record.import" | "record.reindex" | "record.reject-registration" | "user.data-seeding" | "user.read-only-my-audit";
742
+ type: "attachment.upload" | "bypassratelimit" | "config.update-all" | "integration.create" | "location.edit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.confirm-registration" | "record.import" | "record.reindex" | "record.reject-registration" | "user.data-seeding" | "user.read-only-my-audit";
741
743
  } | {
742
744
  type: "organisation.read-locations";
743
745
  options?: {
@@ -127,6 +127,7 @@ var PlainScopeType = z3.enum([
127
127
  "integration.create",
128
128
  "record.import",
129
129
  "config.update-all",
130
+ "location.edit",
130
131
  "attachment.upload",
131
132
  "profile.electronic-signature",
132
133
  "user.read-only-my-audit",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.1.0-rc.5617d8e",
3
+ "version": "2.1.0-rc.57bc3ac",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {