@opencrvs/toolkit 2.1.0-rc.36dcafa → 2.1.0-rc.3e7e77b

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.
@@ -0,0 +1,360 @@
1
+ {
2
+ "version": "6.0",
3
+ "nxVersion": "19.0.5",
4
+ "deps": {
5
+ "@inquirer/prompts": "^8.3.0",
6
+ "@octokit/core": "4.2.1",
7
+ "@trpc/client": "11.4.3",
8
+ "@trpc/server": "^11.8.0",
9
+ "ajv": "^8.17.1",
10
+ "ajv-formats": "^3.0.1",
11
+ "date-fns": "^2.28.0",
12
+ "dotenv": "^16.4.5",
13
+ "glob": "11.1.0",
14
+ "handlebars": "^4.7.8",
15
+ "js-yaml": "4.1.0",
16
+ "jwt-decode": "^3.0.0",
17
+ "kleur": "^4.1.5",
18
+ "libsodium-wrappers": "^0.7.13",
19
+ "lodash": "^4.17.10",
20
+ "object-hash": "^3.0.0",
21
+ "prompts": "^2.4.2",
22
+ "qs": "6.15.2",
23
+ "ssh2": "^1.17.0",
24
+ "superjson": "1.9.0-0",
25
+ "ts-morph": "^27.0.2",
26
+ "uuid": "^9.0.0",
27
+ "zod": "^4.2.1",
28
+ "zod-openapi": "^5.4.6",
29
+ "@opencrvs/commons": "workspace:*",
30
+ "@opencrvs/events": "workspace:*",
31
+ "@types/js-yaml": "4.0.9",
32
+ "@types/libsodium-wrappers": "^0.7.10",
33
+ "@types/object-hash": "^3.0.6",
34
+ "@types/prompts": "^2.4.9",
35
+ "@types/ssh2": "^1.15.5",
36
+ "@types/uuid": "^9.0.3",
37
+ "esbuild": "^0.24.0"
38
+ },
39
+ "pathMappings": {
40
+ "@opencrvs/commons/conditionals": [
41
+ "../commons/src/conditionals/conditionals.ts"
42
+ ],
43
+ "@opencrvs/commons/scopes": [
44
+ "../commons/src/scopes.ts"
45
+ ],
46
+ "@opencrvs/commons/events": [
47
+ "../commons/src/events/index.ts"
48
+ ],
49
+ "@opencrvs/commons/events/deduplication": [
50
+ "../commons/src/events/deduplication.ts"
51
+ ],
52
+ "@opencrvs/commons/scopes.deprecated.do-not-use": [
53
+ "../commons/src/scopes.deprecated.do-not-use.ts"
54
+ ],
55
+ "@opencrvs/commons/notification": [
56
+ "../commons/src/notification/index.ts"
57
+ ],
58
+ "@opencrvs/commons/application-config": [
59
+ "../commons/src/application-config.ts"
60
+ ]
61
+ },
62
+ "nxJsonPlugins": [],
63
+ "fileMap": {
64
+ "projectFileMap": {},
65
+ "nonProjectFiles": [
66
+ {
67
+ "file": ".gitignore",
68
+ "hash": "4260677082380814170"
69
+ },
70
+ {
71
+ "file": ".npmignore",
72
+ "hash": "12832730719613839175"
73
+ },
74
+ {
75
+ "file": "README.md",
76
+ "hash": "14092001858603156563"
77
+ },
78
+ {
79
+ "file": "build.sh",
80
+ "hash": "15780724691269793619"
81
+ },
82
+ {
83
+ "file": "create-countryconfig/index.js",
84
+ "hash": "17112587822512848204"
85
+ },
86
+ {
87
+ "file": "create-countryconfig/package.json",
88
+ "hash": "6131245058766577665"
89
+ },
90
+ {
91
+ "file": "package.json",
92
+ "hash": "4627463057630871223"
93
+ },
94
+ {
95
+ "file": "src/api/index.ts",
96
+ "hash": "9250633353700132106"
97
+ },
98
+ {
99
+ "file": "src/application-config/index.ts",
100
+ "hash": "14262579350312952255"
101
+ },
102
+ {
103
+ "file": "src/cli.ts",
104
+ "hash": "17807700134069364674"
105
+ },
106
+ {
107
+ "file": "src/conditionals/index.ts",
108
+ "hash": "12050094194733590958"
109
+ },
110
+ {
111
+ "file": "src/environment/custom-types.ts",
112
+ "hash": "8283978980561373118"
113
+ },
114
+ {
115
+ "file": "src/environment/derived-variables.ts",
116
+ "hash": "13418642052384087936"
117
+ },
118
+ {
119
+ "file": "src/environment/editor-questions.ts",
120
+ "hash": "2757795338545172185"
121
+ },
122
+ {
123
+ "file": "src/environment/git.ts",
124
+ "hash": "10994523728189369949"
125
+ },
126
+ {
127
+ "file": "src/environment/github.ts",
128
+ "hash": "6748588899509711430"
129
+ },
130
+ {
131
+ "file": "src/environment/index.ts",
132
+ "hash": "11249542791255780673"
133
+ },
134
+ {
135
+ "file": "src/environment/logger.ts",
136
+ "hash": "303629100936840947"
137
+ },
138
+ {
139
+ "file": "src/environment/manage-users.ts",
140
+ "hash": "409953780340935818"
141
+ },
142
+ {
143
+ "file": "src/environment/questions-helper.ts",
144
+ "hash": "8692150800469264592"
145
+ },
146
+ {
147
+ "file": "src/environment/questions.ts",
148
+ "hash": "12367645619403672140"
149
+ },
150
+ {
151
+ "file": "src/environment/setup-environment.ts",
152
+ "hash": "4001755522705135732"
153
+ },
154
+ {
155
+ "file": "src/environment/ssh-keygen.ts",
156
+ "hash": "4554571093516563675"
157
+ },
158
+ {
159
+ "file": "src/environment/swarm-to-k8s.ts",
160
+ "hash": "13307361329984567975"
161
+ },
162
+ {
163
+ "file": "src/environment/templates.ts",
164
+ "hash": "10528587605318281182"
165
+ },
166
+ {
167
+ "file": "src/environment/templates/charts-values/dependencies/values.override.yaml",
168
+ "hash": "6151516679238135449"
169
+ },
170
+ {
171
+ "file": "src/environment/templates/charts-values/dependencies/values.yaml",
172
+ "hash": "7658167078423853755"
173
+ },
174
+ {
175
+ "file": "src/environment/templates/charts-values/opencrvs-services/values.override.yaml",
176
+ "hash": "6151516679238135449"
177
+ },
178
+ {
179
+ "file": "src/environment/templates/charts-values/opencrvs-services/values.yaml",
180
+ "hash": "15254625742271577288"
181
+ },
182
+ {
183
+ "file": "src/environment/templates/charts-values/traefik/values.override.yaml",
184
+ "hash": "6151516679238135449"
185
+ },
186
+ {
187
+ "file": "src/environment/templates/charts-values/traefik/values.yaml",
188
+ "hash": "11445549870872958042"
189
+ },
190
+ {
191
+ "file": "src/environment/templates/inventory/inventory.template.yml",
192
+ "hash": "11564989184118757660"
193
+ },
194
+ {
195
+ "file": "src/environment/templates/inventory/production.example.yml",
196
+ "hash": "6245109817422776009"
197
+ },
198
+ {
199
+ "file": "src/environment/templates/inventory/qa.example.yml",
200
+ "hash": "6922256648325275243"
201
+ },
202
+ {
203
+ "file": "src/environment/update-workflows.ts",
204
+ "hash": "8516887857946651794"
205
+ },
206
+ {
207
+ "file": "src/environment/users.ts",
208
+ "hash": "2654867673549472977"
209
+ },
210
+ {
211
+ "file": "src/environment/utils.ts",
212
+ "hash": "15291520754390292547"
213
+ },
214
+ {
215
+ "file": "src/events/deduplication.ts",
216
+ "hash": "6318370583661699505"
217
+ },
218
+ {
219
+ "file": "src/events/index.ts",
220
+ "hash": "7725304064684977215"
221
+ },
222
+ {
223
+ "file": "src/migrations/README.md",
224
+ "hash": "10993552210122829296"
225
+ },
226
+ {
227
+ "file": "src/migrations/v2.0/add-birth-certificate-issuance-flag.ts",
228
+ "hash": "2059346541356614309"
229
+ },
230
+ {
231
+ "file": "src/migrations/v2.0/add-resend-invite-notification.ts",
232
+ "hash": "5928623370161482421"
233
+ },
234
+ {
235
+ "file": "src/migrations/v2.0/checkout-upstream-files.ts",
236
+ "hash": "120225970239016975"
237
+ },
238
+ {
239
+ "file": "src/migrations/v2.0/convert-config-files-to-ts.ts",
240
+ "hash": "4304774805083093644"
241
+ },
242
+ {
243
+ "file": "src/migrations/v2.0/convert-paragraph-to-heading.ts",
244
+ "hash": "8808084287307453029"
245
+ },
246
+ {
247
+ "file": "src/migrations/v2.0/create-events-index.ts",
248
+ "hash": "4550664566210375106"
249
+ },
250
+ {
251
+ "file": "src/migrations/v2.0/delete-infrastructure-directory.ts",
252
+ "hash": "1049916274023282143"
253
+ },
254
+ {
255
+ "file": "src/migrations/v2.0/fix-accept-requested-registration-function-type.ts",
256
+ "hash": "817113089406879482"
257
+ },
258
+ {
259
+ "file": "src/migrations/v2.0/index.ts",
260
+ "hash": "7664549090849658785"
261
+ },
262
+ {
263
+ "file": "src/migrations/v2.0/make-built-in-validate-actions-custom.ts",
264
+ "hash": "12632153957919643761"
265
+ },
266
+ {
267
+ "file": "src/migrations/v2.0/merge-infrastructure-directory.ts",
268
+ "hash": "512657920826510003"
269
+ },
270
+ {
271
+ "file": "src/migrations/v2.0/migrate-application-config-url.ts",
272
+ "hash": "5358770707889222016"
273
+ },
274
+ {
275
+ "file": "src/migrations/v2.0/migrate-scopes.ts",
276
+ "hash": "15504413883809244864"
277
+ },
278
+ {
279
+ "file": "src/migrations/v2.0/migrate-validated-workqueue-status-to-flag.ts",
280
+ "hash": "13723584019173818009"
281
+ },
282
+ {
283
+ "file": "src/migrations/v2.0/migrate-workqueue-configs.ts",
284
+ "hash": "4861206089117548470"
285
+ },
286
+ {
287
+ "file": "src/migrations/v2.0/remove-delete-actions.ts",
288
+ "hash": "14980939150618411511"
289
+ },
290
+ {
291
+ "file": "src/migrations/v2.0/remove-demo-scope.ts",
292
+ "hash": "4788598795692783720"
293
+ },
294
+ {
295
+ "file": "src/migrations/v2.0/remove-deprecated-imports.ts",
296
+ "hash": "11242561237569984033"
297
+ },
298
+ {
299
+ "file": "src/migrations/v2.0/remove-fhir-url-helpers.ts",
300
+ "hash": "5505168322096335863"
301
+ },
302
+ {
303
+ "file": "src/migrations/v2.0/remove-hearth-migrations.ts",
304
+ "hash": "10536330101490660691"
305
+ },
306
+ {
307
+ "file": "src/migrations/v2.0/remove-old-statistics-service.ts",
308
+ "hash": "5021289915489031049"
309
+ },
310
+ {
311
+ "file": "src/migrations/v2.0/remove-pending-certification-flag.ts",
312
+ "hash": "15271063562958232459"
313
+ },
314
+ {
315
+ "file": "src/migrations/v2.0/remove-review-from-register-action.ts",
316
+ "hash": "13536772297138514825"
317
+ },
318
+ {
319
+ "file": "src/migrations/v2.0/remove-unused-environment-variables.ts",
320
+ "hash": "7926886468929060227"
321
+ },
322
+ {
323
+ "file": "src/migrations/v2.0/rename-api-paths.ts",
324
+ "hash": "12083963722499273133"
325
+ },
326
+ {
327
+ "file": "src/migrations/v2.0/rename-location-parent-id.ts",
328
+ "hash": "17758682033760919165"
329
+ },
330
+ {
331
+ "file": "src/migrations/v2.0/simplify-analytics-precalculations.ts",
332
+ "hash": "13941316371450411352"
333
+ },
334
+ {
335
+ "file": "src/migrations/v2.0/update-package-json.ts",
336
+ "hash": "12462304470286864895"
337
+ },
338
+ {
339
+ "file": "src/migrations/v2.1/add-explicit-correction-flags.ts",
340
+ "hash": "6097016485165163724"
341
+ },
342
+ {
343
+ "file": "src/migrations/v2.1/index.ts",
344
+ "hash": "17065243163023061579"
345
+ },
346
+ {
347
+ "file": "src/notification/index.ts",
348
+ "hash": "9716899518301358088"
349
+ },
350
+ {
351
+ "file": "src/scopes/index.ts",
352
+ "hash": "5872365967531826164"
353
+ },
354
+ {
355
+ "file": "tsconfig.json",
356
+ "hash": "5646351926612501895"
357
+ }
358
+ ]
359
+ }
360
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "nodes": {},
3
+ "externalNodes": {},
4
+ "dependencies": {},
5
+ "version": "6.0"
6
+ }
@@ -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,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
- validUntil: string | 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
+ }[];
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,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";