@opencrvs/toolkit 2.1.0-rc.ecb508d → 2.1.0-rc.f383722
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nx/cache/file-map.json +360 -0
- package/.nx/cache/project-graph.json +6 -0
- package/dist/application-config/index.js +1 -0
- package/dist/commons/api/router.d.ts +85 -0
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +6 -0
- package/dist/commons/events/AuditLog.d.ts +37 -0
- package/dist/commons/events/EventIndex.d.ts +2 -2
- package/dist/commons/events/FieldConfig.d.ts +6 -1
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/locationPayloads.d.ts +95 -0
- package/dist/commons/events/locations.d.ts +7 -0
- package/dist/conditionals/index.js +1 -0
- package/dist/environment/logger.d.ts +12 -3
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/events/index.js +88 -0
- package/dist/notification/index.js +99 -25
- package/dist/scopes/index.d.ts +28 -26
- package/dist/scopes/index.js +1 -0
- package/opencrvs-toolkit-2.1.0-rc.f383722.tgz +0 -0
- package/package.json +4 -4
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.ecb508d.tgz +0 -0
|
@@ -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
|
+
}
|
|
@@ -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;
|
|
@@ -8374,6 +8405,34 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8374
8405
|
output: void;
|
|
8375
8406
|
meta: object;
|
|
8376
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
|
+
}>;
|
|
8377
8436
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
8378
8437
|
input: {
|
|
8379
8438
|
id: string;
|
|
@@ -8820,6 +8879,32 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8820
8879
|
output: void;
|
|
8821
8880
|
meta: object;
|
|
8822
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
|
+
}>;
|
|
8823
8908
|
}>>;
|
|
8824
8909
|
integrations: import("@trpc/server").TRPCBuiltRouter<{
|
|
8825
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";
|
|
@@ -281,6 +281,43 @@ export declare const AuditLogEntrySchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
281
281
|
responseSummary: z.ZodObject<{
|
|
282
282
|
clientId: z.ZodString;
|
|
283
283
|
}, z.core.$strip>;
|
|
284
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
285
|
+
id: z.ZodString;
|
|
286
|
+
clientId: z.ZodString;
|
|
287
|
+
clientType: z.ZodEnum<{
|
|
288
|
+
system: "system";
|
|
289
|
+
user: "user";
|
|
290
|
+
}>;
|
|
291
|
+
createdAt: z.ZodString;
|
|
292
|
+
operation: z.ZodLiteral<"locations.create">;
|
|
293
|
+
requestData: z.ZodObject<{
|
|
294
|
+
id: z.ZodString;
|
|
295
|
+
versionId: z.ZodString;
|
|
296
|
+
name: z.ZodString;
|
|
297
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
298
|
+
effectiveFrom: z.ZodString;
|
|
299
|
+
status: z.ZodString;
|
|
300
|
+
administrativeAreaId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
301
|
+
locationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
302
|
+
}, z.core.$strip>;
|
|
303
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
304
|
+
id: z.ZodString;
|
|
305
|
+
clientId: z.ZodString;
|
|
306
|
+
clientType: z.ZodEnum<{
|
|
307
|
+
system: "system";
|
|
308
|
+
user: "user";
|
|
309
|
+
}>;
|
|
310
|
+
createdAt: z.ZodString;
|
|
311
|
+
operation: z.ZodLiteral<"administrativeAreas.create">;
|
|
312
|
+
requestData: z.ZodObject<{
|
|
313
|
+
id: z.ZodString;
|
|
314
|
+
versionId: z.ZodString;
|
|
315
|
+
name: z.ZodString;
|
|
316
|
+
externalId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
317
|
+
effectiveFrom: z.ZodString;
|
|
318
|
+
status: z.ZodString;
|
|
319
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
320
|
+
}, z.core.$strip>;
|
|
284
321
|
}, z.core.$strip>, z.ZodObject<{
|
|
285
322
|
id: z.ZodString;
|
|
286
323
|
clientId: z.ZodString;
|
|
@@ -340,10 +340,10 @@ export type QueryTypeShape = {
|
|
|
340
340
|
};
|
|
341
341
|
export declare const QueryType: z.ZodType<QueryTypeShape>;
|
|
342
342
|
export declare const SearchQuery: z.ZodObject<{
|
|
343
|
-
query: z.
|
|
343
|
+
query: z.ZodPreprocess<ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>>;
|
|
344
344
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
345
345
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
346
|
-
sort: z.ZodOptional<z.
|
|
346
|
+
sort: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodObject<{
|
|
347
347
|
field: z.ZodString;
|
|
348
348
|
direction: z.ZodDefault<z.ZodEnum<{
|
|
349
349
|
asc: "asc";
|
|
@@ -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";
|
|
@@ -3045,7 +3050,7 @@ declare const SearchField: z.ZodObject<{
|
|
|
3045
3050
|
}, z.core.$strip>]>>;
|
|
3046
3051
|
type: z.ZodLiteral<"SEARCH">;
|
|
3047
3052
|
configuration: z.ZodObject<{
|
|
3048
|
-
query: z.
|
|
3053
|
+
query: z.ZodPreprocess<z.ZodType<import("./EventIndex").QueryTypeShape, unknown, z.core.$ZodTypeInternals<import("./EventIndex").QueryTypeShape, unknown>>>;
|
|
3049
3054
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3050
3055
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3051
3056
|
validation: z.ZodObject<{
|