@opencrvs/toolkit 2.0.0-rc.0b195b6 → 2.0.0-rc.0e32460
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/create-countryconfig/index.js +73 -0
- package/create-countryconfig/package.json +11 -0
- package/dist/application-config/index.js +5 -3
- package/dist/cli.js +5 -3
- package/dist/commons/api/router.d.ts +356 -20
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/events/FieldConfig.d.ts +5 -0
- package/dist/conditionals/index.js +5 -3
- package/dist/events/index.js +5 -3
- package/dist/migrations/v2.0/index.js +5 -3
- package/dist/notification/index.js +5 -3
- package/dist/scopes/index.d.ts +6 -1
- package/dist/scopes/index.js +5 -3
- package/opencrvs-toolkit-2.0.0-rc.0e32460.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-2.0.0-rc.0b195b6.tgz +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
5
|
+
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
6
|
+
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
7
|
+
*
|
|
8
|
+
* OpenCRVS is also distributed under the terms of the Civil Registration
|
|
9
|
+
* & Healthcare Disclaimer located at http://opencrvs.org/license.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
const { execSync } = require('child_process')
|
|
15
|
+
const path = require('path')
|
|
16
|
+
const fs = require('fs')
|
|
17
|
+
|
|
18
|
+
const REPO_URL = 'https://github.com/opencrvs/opencrvs-countryconfig.git'
|
|
19
|
+
|
|
20
|
+
const projectName = process.argv[2]
|
|
21
|
+
|
|
22
|
+
if (!projectName) {
|
|
23
|
+
console.error(
|
|
24
|
+
'Please specify a project name:\n\n npm create @opencrvs/countryconfig <project-name>\n'
|
|
25
|
+
)
|
|
26
|
+
process.exit(1)
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const targetDir = path.resolve(process.cwd(), projectName)
|
|
30
|
+
|
|
31
|
+
if (fs.existsSync(targetDir)) {
|
|
32
|
+
console.error(`Error: Directory "${projectName}" already exists.`)
|
|
33
|
+
process.exit(1)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
console.log(`\nScaffolding OpenCRVS country config in ./${projectName}...\n`)
|
|
37
|
+
|
|
38
|
+
try {
|
|
39
|
+
execSync(`git clone --depth 1 ${REPO_URL} ${projectName}`, {
|
|
40
|
+
stdio: 'inherit'
|
|
41
|
+
})
|
|
42
|
+
} catch (err) {
|
|
43
|
+
console.error('Failed to clone the repository:', err.message)
|
|
44
|
+
process.exit(1)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
try {
|
|
48
|
+
fs.rmSync(path.join(targetDir, '.git'), { recursive: true, force: true })
|
|
49
|
+
} catch (err) {
|
|
50
|
+
console.error('Failed to remove .git directory:', err.message)
|
|
51
|
+
process.exit(1)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const pkgPath = path.join(targetDir, 'package.json')
|
|
55
|
+
if (fs.existsSync(pkgPath)) {
|
|
56
|
+
try {
|
|
57
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'))
|
|
58
|
+
pkg.name = projectName
|
|
59
|
+
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n')
|
|
60
|
+
} catch (err) {
|
|
61
|
+
console.error('Failed to update package.json:', err.message)
|
|
62
|
+
process.exit(1)
|
|
63
|
+
}
|
|
64
|
+
} else {
|
|
65
|
+
console.warn(
|
|
66
|
+
`Warning: No package.json found in the cloned repository. Project name was not updated.`
|
|
67
|
+
)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
console.log(`\nDone! To get started:\n`)
|
|
71
|
+
console.log(` cd ${projectName}`)
|
|
72
|
+
console.log(` git init`)
|
|
73
|
+
console.log(` npm install\n`)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@opencrvs/create-countryconfig",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Scaffold a new OpenCRVS country configuration",
|
|
5
|
+
"bin": {
|
|
6
|
+
"create-countryconfig": "./index.js"
|
|
7
|
+
},
|
|
8
|
+
"files": ["index.js"],
|
|
9
|
+
"keywords": ["opencrvs", "countryconfig", "create"],
|
|
10
|
+
"license": "MPL-2.0"
|
|
11
|
+
}
|
|
@@ -772,12 +772,14 @@ var SystemScopeType = z11.enum([
|
|
|
772
772
|
"organisation.read-locations",
|
|
773
773
|
"user.read",
|
|
774
774
|
"user.create",
|
|
775
|
-
"user.edit"
|
|
775
|
+
"user.edit",
|
|
776
|
+
"user.search"
|
|
776
777
|
]);
|
|
777
778
|
var UserScopeType = SystemScopeType.extract([
|
|
778
779
|
"user.read",
|
|
779
780
|
"user.create",
|
|
780
|
-
"user.edit"
|
|
781
|
+
"user.edit",
|
|
782
|
+
"user.search"
|
|
781
783
|
]);
|
|
782
784
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
783
785
|
var UserScopeV2 = z11.discriminatedUnion("type", [
|
|
@@ -786,7 +788,7 @@ var UserScopeV2 = z11.discriminatedUnion("type", [
|
|
|
786
788
|
options: AllUserScopeOptions.optional()
|
|
787
789
|
}),
|
|
788
790
|
z11.object({
|
|
789
|
-
type: UserScopeType.extract(["user.read"]),
|
|
791
|
+
type: UserScopeType.extract(["user.read", "user.search"]),
|
|
790
792
|
options: AccessLevelOptions.optional()
|
|
791
793
|
})
|
|
792
794
|
]);
|
package/dist/cli.js
CHANGED
|
@@ -2296,12 +2296,14 @@ var SystemScopeType = z3.enum([
|
|
|
2296
2296
|
"organisation.read-locations",
|
|
2297
2297
|
"user.read",
|
|
2298
2298
|
"user.create",
|
|
2299
|
-
"user.edit"
|
|
2299
|
+
"user.edit",
|
|
2300
|
+
"user.search"
|
|
2300
2301
|
]);
|
|
2301
2302
|
var UserScopeType = SystemScopeType.extract([
|
|
2302
2303
|
"user.read",
|
|
2303
2304
|
"user.create",
|
|
2304
|
-
"user.edit"
|
|
2305
|
+
"user.edit",
|
|
2306
|
+
"user.search"
|
|
2305
2307
|
]);
|
|
2306
2308
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
2307
2309
|
var UserScopeV2 = z3.discriminatedUnion("type", [
|
|
@@ -2310,7 +2312,7 @@ var UserScopeV2 = z3.discriminatedUnion("type", [
|
|
|
2310
2312
|
options: AllUserScopeOptions.optional()
|
|
2311
2313
|
}),
|
|
2312
2314
|
z3.object({
|
|
2313
|
-
type: UserScopeType.extract(["user.read"]),
|
|
2315
|
+
type: UserScopeType.extract(["user.read", "user.search"]),
|
|
2314
2316
|
options: AccessLevelOptions.optional()
|
|
2315
2317
|
})
|
|
2316
2318
|
]);
|
|
@@ -1195,6 +1195,342 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1195
1195
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1196
1196
|
}>;
|
|
1197
1197
|
}>>;
|
|
1198
|
+
createAndNotify: import("@trpc/server").TRPCBuiltRouter<{
|
|
1199
|
+
ctx: Partial<{
|
|
1200
|
+
token: `Bearer ${string}`;
|
|
1201
|
+
user: {
|
|
1202
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1203
|
+
type: "system";
|
|
1204
|
+
signature?: undefined;
|
|
1205
|
+
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1206
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
1207
|
+
} | {
|
|
1208
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1209
|
+
type: "user";
|
|
1210
|
+
role: string;
|
|
1211
|
+
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
1212
|
+
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1213
|
+
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1214
|
+
};
|
|
1215
|
+
}>;
|
|
1216
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1217
|
+
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
1218
|
+
transformer: true;
|
|
1219
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1220
|
+
request: import("@trpc/server").TRPCMutationProcedure<{
|
|
1221
|
+
input: {
|
|
1222
|
+
transactionId: string;
|
|
1223
|
+
eventType: string;
|
|
1224
|
+
createdAtLocation: string;
|
|
1225
|
+
declaration?: Record<string, unknown> | undefined;
|
|
1226
|
+
annotation?: Record<string, unknown> | undefined;
|
|
1227
|
+
originalActionId?: string | undefined;
|
|
1228
|
+
keepAssignment?: boolean | undefined;
|
|
1229
|
+
};
|
|
1230
|
+
output: {
|
|
1231
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1232
|
+
type: string;
|
|
1233
|
+
createdAt: string;
|
|
1234
|
+
updatedAt: string;
|
|
1235
|
+
actions: ({
|
|
1236
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1237
|
+
transactionId: string;
|
|
1238
|
+
createdByUserType: "system" | "user";
|
|
1239
|
+
createdAt: string;
|
|
1240
|
+
createdBy: string;
|
|
1241
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1242
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1243
|
+
type: "CREATE";
|
|
1244
|
+
createdByRole?: string | undefined;
|
|
1245
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1246
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1247
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1248
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1249
|
+
} | {
|
|
1250
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1251
|
+
transactionId: string;
|
|
1252
|
+
createdByUserType: "system" | "user";
|
|
1253
|
+
createdAt: string;
|
|
1254
|
+
createdBy: string;
|
|
1255
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1256
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1257
|
+
type: "REJECT";
|
|
1258
|
+
content: {
|
|
1259
|
+
reason: string;
|
|
1260
|
+
};
|
|
1261
|
+
createdByRole?: string | undefined;
|
|
1262
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1263
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1264
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1265
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1266
|
+
} | {
|
|
1267
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1268
|
+
transactionId: string;
|
|
1269
|
+
createdByUserType: "system" | "user";
|
|
1270
|
+
createdAt: string;
|
|
1271
|
+
createdBy: string;
|
|
1272
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1273
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1274
|
+
type: "DUPLICATE_DETECTED";
|
|
1275
|
+
content: {
|
|
1276
|
+
duplicates: {
|
|
1277
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1278
|
+
trackingId: string;
|
|
1279
|
+
}[];
|
|
1280
|
+
};
|
|
1281
|
+
createdByRole?: string | undefined;
|
|
1282
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1283
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1284
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1285
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1286
|
+
} | {
|
|
1287
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1288
|
+
transactionId: string;
|
|
1289
|
+
createdByUserType: "system" | "user";
|
|
1290
|
+
createdAt: string;
|
|
1291
|
+
createdBy: string;
|
|
1292
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1293
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1294
|
+
type: "MARK_AS_NOT_DUPLICATE";
|
|
1295
|
+
createdByRole?: string | undefined;
|
|
1296
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1297
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1298
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1299
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1300
|
+
} | {
|
|
1301
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1302
|
+
transactionId: string;
|
|
1303
|
+
createdByUserType: "system" | "user";
|
|
1304
|
+
createdAt: string;
|
|
1305
|
+
createdBy: string;
|
|
1306
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1307
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1308
|
+
type: "MARK_AS_DUPLICATE";
|
|
1309
|
+
createdByRole?: string | undefined;
|
|
1310
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1311
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1312
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1313
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1314
|
+
content?: {
|
|
1315
|
+
duplicateOf: string & import("zod").$brand<"UUID">;
|
|
1316
|
+
} | undefined;
|
|
1317
|
+
} | {
|
|
1318
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1319
|
+
transactionId: string;
|
|
1320
|
+
createdByUserType: "system" | "user";
|
|
1321
|
+
createdAt: string;
|
|
1322
|
+
createdBy: string;
|
|
1323
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1324
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1325
|
+
type: "ARCHIVE";
|
|
1326
|
+
content: {
|
|
1327
|
+
reason: string;
|
|
1328
|
+
};
|
|
1329
|
+
createdByRole?: string | undefined;
|
|
1330
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1331
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1332
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1333
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1334
|
+
} | {
|
|
1335
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1336
|
+
transactionId: string;
|
|
1337
|
+
createdByUserType: "system" | "user";
|
|
1338
|
+
createdAt: string;
|
|
1339
|
+
createdBy: string;
|
|
1340
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1341
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1342
|
+
type: "NOTIFY";
|
|
1343
|
+
createdByRole?: string | undefined;
|
|
1344
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1345
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1346
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1347
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1348
|
+
} | {
|
|
1349
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1350
|
+
transactionId: string;
|
|
1351
|
+
createdByUserType: "system" | "user";
|
|
1352
|
+
createdAt: string;
|
|
1353
|
+
createdBy: string;
|
|
1354
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1355
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1356
|
+
type: "REGISTER";
|
|
1357
|
+
createdByRole?: string | undefined;
|
|
1358
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1359
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1360
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1361
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1362
|
+
registrationNumber?: string | undefined;
|
|
1363
|
+
} | {
|
|
1364
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1365
|
+
transactionId: string;
|
|
1366
|
+
createdByUserType: "system" | "user";
|
|
1367
|
+
createdAt: string;
|
|
1368
|
+
createdBy: string;
|
|
1369
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1370
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1371
|
+
type: "DECLARE";
|
|
1372
|
+
createdByRole?: string | undefined;
|
|
1373
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1374
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1375
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1376
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1377
|
+
} | {
|
|
1378
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1379
|
+
transactionId: string;
|
|
1380
|
+
createdByUserType: "system" | "user";
|
|
1381
|
+
createdAt: string;
|
|
1382
|
+
createdBy: string;
|
|
1383
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1384
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1385
|
+
type: "ASSIGN";
|
|
1386
|
+
assignedTo: string;
|
|
1387
|
+
createdByRole?: string | undefined;
|
|
1388
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1389
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1390
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1391
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1392
|
+
} | {
|
|
1393
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1394
|
+
transactionId: string;
|
|
1395
|
+
createdByUserType: "system" | "user";
|
|
1396
|
+
createdAt: string;
|
|
1397
|
+
createdBy: string;
|
|
1398
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1399
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1400
|
+
type: "REQUEST_CORRECTION";
|
|
1401
|
+
createdByRole?: string | undefined;
|
|
1402
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1403
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1404
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1405
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1406
|
+
} | {
|
|
1407
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1408
|
+
transactionId: string;
|
|
1409
|
+
createdByUserType: "system" | "user";
|
|
1410
|
+
createdAt: string;
|
|
1411
|
+
createdBy: string;
|
|
1412
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1413
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1414
|
+
type: "APPROVE_CORRECTION";
|
|
1415
|
+
requestId: string;
|
|
1416
|
+
createdByRole?: string | undefined;
|
|
1417
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1418
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1419
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1420
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1421
|
+
} | {
|
|
1422
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1423
|
+
transactionId: string;
|
|
1424
|
+
createdByUserType: "system" | "user";
|
|
1425
|
+
createdAt: string;
|
|
1426
|
+
createdBy: string;
|
|
1427
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1428
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1429
|
+
type: "REJECT_CORRECTION";
|
|
1430
|
+
requestId: string;
|
|
1431
|
+
content: {
|
|
1432
|
+
reason: string;
|
|
1433
|
+
};
|
|
1434
|
+
createdByRole?: string | undefined;
|
|
1435
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1436
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1437
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1438
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1439
|
+
} | {
|
|
1440
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1441
|
+
transactionId: string;
|
|
1442
|
+
createdByUserType: "system" | "user";
|
|
1443
|
+
createdAt: string;
|
|
1444
|
+
createdBy: string;
|
|
1445
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1446
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1447
|
+
type: "UNASSIGN";
|
|
1448
|
+
createdByRole?: string | undefined;
|
|
1449
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1450
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1451
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1452
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1453
|
+
} | {
|
|
1454
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1455
|
+
transactionId: string;
|
|
1456
|
+
createdByUserType: "system" | "user";
|
|
1457
|
+
createdAt: string;
|
|
1458
|
+
createdBy: string;
|
|
1459
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1460
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1461
|
+
type: "PRINT_CERTIFICATE";
|
|
1462
|
+
createdByRole?: string | undefined;
|
|
1463
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1464
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1465
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1466
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1467
|
+
content?: {
|
|
1468
|
+
templateId?: string | undefined;
|
|
1469
|
+
} | null | undefined;
|
|
1470
|
+
} | {
|
|
1471
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1472
|
+
transactionId: string;
|
|
1473
|
+
createdByUserType: "system" | "user";
|
|
1474
|
+
createdAt: string;
|
|
1475
|
+
createdBy: string;
|
|
1476
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1477
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1478
|
+
type: "READ";
|
|
1479
|
+
createdByRole?: string | undefined;
|
|
1480
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1481
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1482
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1483
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1484
|
+
} | {
|
|
1485
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1486
|
+
transactionId: string;
|
|
1487
|
+
createdByUserType: "system" | "user";
|
|
1488
|
+
createdAt: string;
|
|
1489
|
+
createdBy: string;
|
|
1490
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1491
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1492
|
+
type: "EDIT";
|
|
1493
|
+
content: {
|
|
1494
|
+
comment?: string | undefined;
|
|
1495
|
+
};
|
|
1496
|
+
createdByRole?: string | undefined;
|
|
1497
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1498
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1499
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1500
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1501
|
+
} | {
|
|
1502
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1503
|
+
transactionId: string;
|
|
1504
|
+
createdByUserType: "system" | "user";
|
|
1505
|
+
createdAt: string;
|
|
1506
|
+
createdBy: string;
|
|
1507
|
+
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1508
|
+
status: "Requested" | "Accepted" | "Rejected";
|
|
1509
|
+
type: "CUSTOM";
|
|
1510
|
+
customActionType: string;
|
|
1511
|
+
createdByRole?: string | undefined;
|
|
1512
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1513
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1514
|
+
annotation?: Record<string, import("../commons").FieldUpdateValue> | null | undefined;
|
|
1515
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1516
|
+
} | {
|
|
1517
|
+
id: string & import("zod").$brand<"UUID">;
|
|
1518
|
+
transactionId: string;
|
|
1519
|
+
createdByUserType: "system" | "user";
|
|
1520
|
+
createdAt: string;
|
|
1521
|
+
createdBy: string;
|
|
1522
|
+
type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
|
|
1523
|
+
status: "Rejected";
|
|
1524
|
+
createdByRole?: string | undefined;
|
|
1525
|
+
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
1526
|
+
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1527
|
+
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1528
|
+
})[];
|
|
1529
|
+
trackingId: string;
|
|
1530
|
+
};
|
|
1531
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
1532
|
+
}>;
|
|
1533
|
+
}>>;
|
|
1198
1534
|
declare: import("@trpc/server").TRPCBuiltRouter<{
|
|
1199
1535
|
ctx: Partial<{
|
|
1200
1536
|
token: `Bearer ${string}`;
|
|
@@ -4774,7 +5110,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4774
5110
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4775
5111
|
type: "within";
|
|
4776
5112
|
location: string | {
|
|
4777
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5113
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4778
5114
|
$location?: string | undefined;
|
|
4779
5115
|
};
|
|
4780
5116
|
} | undefined;
|
|
@@ -4796,7 +5132,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4796
5132
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4797
5133
|
type: "within";
|
|
4798
5134
|
location: string | {
|
|
4799
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5135
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4800
5136
|
$location?: string | undefined;
|
|
4801
5137
|
};
|
|
4802
5138
|
} | undefined;
|
|
@@ -4811,47 +5147,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4811
5147
|
createdAtLocation?: {
|
|
4812
5148
|
type: "within";
|
|
4813
5149
|
location: string | {
|
|
4814
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5150
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4815
5151
|
$location?: string | undefined;
|
|
4816
5152
|
};
|
|
4817
5153
|
} | {
|
|
4818
5154
|
type: "exact";
|
|
4819
5155
|
term: string | {
|
|
4820
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5156
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4821
5157
|
$location?: string | undefined;
|
|
4822
5158
|
};
|
|
4823
5159
|
} | undefined;
|
|
4824
5160
|
updatedAtLocation?: {
|
|
4825
5161
|
type: "within";
|
|
4826
5162
|
location: string | {
|
|
4827
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5163
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4828
5164
|
$location?: string | undefined;
|
|
4829
5165
|
};
|
|
4830
5166
|
} | {
|
|
4831
5167
|
type: "exact";
|
|
4832
5168
|
term: string | {
|
|
4833
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5169
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4834
5170
|
$location?: string | undefined;
|
|
4835
5171
|
};
|
|
4836
5172
|
} | undefined;
|
|
4837
5173
|
updatedByUserRole?: {
|
|
4838
5174
|
type: "exact";
|
|
4839
5175
|
term: string | {
|
|
4840
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5176
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4841
5177
|
$location?: string | undefined;
|
|
4842
5178
|
};
|
|
4843
5179
|
} | undefined;
|
|
4844
5180
|
assignedTo?: {
|
|
4845
5181
|
type: "exact";
|
|
4846
5182
|
term: string | {
|
|
4847
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5183
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4848
5184
|
$location?: string | undefined;
|
|
4849
5185
|
};
|
|
4850
5186
|
} | undefined;
|
|
4851
5187
|
createdBy?: {
|
|
4852
5188
|
type: "exact";
|
|
4853
5189
|
term: string | {
|
|
4854
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5190
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4855
5191
|
$location?: string | undefined;
|
|
4856
5192
|
};
|
|
4857
5193
|
} | undefined;
|
|
@@ -4862,7 +5198,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4862
5198
|
updatedBy?: {
|
|
4863
5199
|
type: "exact";
|
|
4864
5200
|
term: string | {
|
|
4865
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5201
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4866
5202
|
$location?: string | undefined;
|
|
4867
5203
|
};
|
|
4868
5204
|
} | undefined;
|
|
@@ -4912,7 +5248,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4912
5248
|
'legalStatuses.DECLARED.createdAtLocation'?: {
|
|
4913
5249
|
type: "within";
|
|
4914
5250
|
location: string | {
|
|
4915
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5251
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4916
5252
|
$location?: string | undefined;
|
|
4917
5253
|
};
|
|
4918
5254
|
} | undefined;
|
|
@@ -4934,7 +5270,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4934
5270
|
'legalStatuses.REGISTERED.createdAtLocation'?: {
|
|
4935
5271
|
type: "within";
|
|
4936
5272
|
location: string | {
|
|
4937
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5273
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4938
5274
|
$location?: string | undefined;
|
|
4939
5275
|
};
|
|
4940
5276
|
} | undefined;
|
|
@@ -4949,47 +5285,47 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4949
5285
|
createdAtLocation?: {
|
|
4950
5286
|
type: "within";
|
|
4951
5287
|
location: string | {
|
|
4952
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5288
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4953
5289
|
$location?: string | undefined;
|
|
4954
5290
|
};
|
|
4955
5291
|
} | {
|
|
4956
5292
|
type: "exact";
|
|
4957
5293
|
term: string | {
|
|
4958
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5294
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4959
5295
|
$location?: string | undefined;
|
|
4960
5296
|
};
|
|
4961
5297
|
} | undefined;
|
|
4962
5298
|
updatedAtLocation?: {
|
|
4963
5299
|
type: "within";
|
|
4964
5300
|
location: string | {
|
|
4965
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5301
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4966
5302
|
$location?: string | undefined;
|
|
4967
5303
|
};
|
|
4968
5304
|
} | {
|
|
4969
5305
|
type: "exact";
|
|
4970
5306
|
term: string | {
|
|
4971
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5307
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4972
5308
|
$location?: string | undefined;
|
|
4973
5309
|
};
|
|
4974
5310
|
} | undefined;
|
|
4975
5311
|
updatedByUserRole?: {
|
|
4976
5312
|
type: "exact";
|
|
4977
5313
|
term: string | {
|
|
4978
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5314
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4979
5315
|
$location?: string | undefined;
|
|
4980
5316
|
};
|
|
4981
5317
|
} | undefined;
|
|
4982
5318
|
assignedTo?: {
|
|
4983
5319
|
type: "exact";
|
|
4984
5320
|
term: string | {
|
|
4985
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5321
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4986
5322
|
$location?: string | undefined;
|
|
4987
5323
|
};
|
|
4988
5324
|
} | undefined;
|
|
4989
5325
|
createdBy?: {
|
|
4990
5326
|
type: "exact";
|
|
4991
5327
|
term: string | {
|
|
4992
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5328
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
4993
5329
|
$location?: string | undefined;
|
|
4994
5330
|
};
|
|
4995
5331
|
} | undefined;
|
|
@@ -5000,7 +5336,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5000
5336
|
updatedBy?: {
|
|
5001
5337
|
type: "exact";
|
|
5002
5338
|
term: string | {
|
|
5003
|
-
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "
|
|
5339
|
+
$userField: "id" | "name" | "administrativeAreaId" | "firstname" | "surname" | "fullHonorificName" | "role" | "device" | "primaryOfficeId" | "middlename" | "signature" | "avatar";
|
|
5004
5340
|
$location?: string | undefined;
|
|
5005
5341
|
};
|
|
5006
5342
|
} | undefined;
|
|
@@ -86,16 +86,16 @@ export declare const user: typeof userSerializer & {
|
|
|
86
86
|
};
|
|
87
87
|
scope: (scope: import("../scopes").ScopeType) => {
|
|
88
88
|
attribute: (option: import("../scopes").ScopeOptionKey) => {
|
|
89
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue" | "dashboard.view";
|
|
89
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
90
90
|
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
93
|
jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
|
|
94
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue" | "dashboard.view";
|
|
94
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
95
95
|
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
96
96
|
}) => {
|
|
97
97
|
$jurisdiction: "administrativeArea" | "location" | "all" | {
|
|
98
|
-
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "workqueue" | "dashboard.view";
|
|
98
|
+
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
99
99
|
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
100
100
|
};
|
|
101
101
|
};
|
|
@@ -1723,6 +1723,7 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1723
1723
|
"user.read": "user.read";
|
|
1724
1724
|
"user.create": "user.create";
|
|
1725
1725
|
"user.edit": "user.edit";
|
|
1726
|
+
"user.search": "user.search";
|
|
1726
1727
|
workqueue: "workqueue";
|
|
1727
1728
|
"dashboard.view": "dashboard.view";
|
|
1728
1729
|
}>;
|
|
@@ -1842,6 +1843,7 @@ declare const LocationInput: z.ZodObject<{
|
|
|
1842
1843
|
"user.read": "user.read";
|
|
1843
1844
|
"user.create": "user.create";
|
|
1844
1845
|
"user.edit": "user.edit";
|
|
1846
|
+
"user.search": "user.search";
|
|
1845
1847
|
workqueue: "workqueue";
|
|
1846
1848
|
"dashboard.view": "dashboard.view";
|
|
1847
1849
|
}>;
|
|
@@ -2026,6 +2028,7 @@ declare const Facility: z.ZodObject<{
|
|
|
2026
2028
|
"user.read": "user.read";
|
|
2027
2029
|
"user.create": "user.create";
|
|
2028
2030
|
"user.edit": "user.edit";
|
|
2031
|
+
"user.search": "user.search";
|
|
2029
2032
|
workqueue: "workqueue";
|
|
2030
2033
|
"dashboard.view": "dashboard.view";
|
|
2031
2034
|
}>;
|
|
@@ -2131,6 +2134,7 @@ declare const Office: z.ZodObject<{
|
|
|
2131
2134
|
"user.read": "user.read";
|
|
2132
2135
|
"user.create": "user.create";
|
|
2133
2136
|
"user.edit": "user.edit";
|
|
2137
|
+
"user.search": "user.search";
|
|
2134
2138
|
workqueue: "workqueue";
|
|
2135
2139
|
"dashboard.view": "dashboard.view";
|
|
2136
2140
|
}>;
|
|
@@ -2323,6 +2327,7 @@ declare const Address: z.ZodObject<{
|
|
|
2323
2327
|
"user.read": "user.read";
|
|
2324
2328
|
"user.create": "user.create";
|
|
2325
2329
|
"user.edit": "user.edit";
|
|
2330
|
+
"user.search": "user.search";
|
|
2326
2331
|
workqueue: "workqueue";
|
|
2327
2332
|
"dashboard.view": "dashboard.view";
|
|
2328
2333
|
}>;
|
|
@@ -298,12 +298,14 @@ var SystemScopeType = z6.enum([
|
|
|
298
298
|
"organisation.read-locations",
|
|
299
299
|
"user.read",
|
|
300
300
|
"user.create",
|
|
301
|
-
"user.edit"
|
|
301
|
+
"user.edit",
|
|
302
|
+
"user.search"
|
|
302
303
|
]);
|
|
303
304
|
var UserScopeType = SystemScopeType.extract([
|
|
304
305
|
"user.read",
|
|
305
306
|
"user.create",
|
|
306
|
-
"user.edit"
|
|
307
|
+
"user.edit",
|
|
308
|
+
"user.search"
|
|
307
309
|
]);
|
|
308
310
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
309
311
|
var UserScopeV2 = z6.discriminatedUnion("type", [
|
|
@@ -312,7 +314,7 @@ var UserScopeV2 = z6.discriminatedUnion("type", [
|
|
|
312
314
|
options: AllUserScopeOptions.optional()
|
|
313
315
|
}),
|
|
314
316
|
z6.object({
|
|
315
|
-
type: UserScopeType.extract(["user.read"]),
|
|
317
|
+
type: UserScopeType.extract(["user.read", "user.search"]),
|
|
316
318
|
options: AccessLevelOptions.optional()
|
|
317
319
|
})
|
|
318
320
|
]);
|
package/dist/events/index.js
CHANGED
|
@@ -610,12 +610,14 @@ var SystemScopeType = z2.enum([
|
|
|
610
610
|
"organisation.read-locations",
|
|
611
611
|
"user.read",
|
|
612
612
|
"user.create",
|
|
613
|
-
"user.edit"
|
|
613
|
+
"user.edit",
|
|
614
|
+
"user.search"
|
|
614
615
|
]);
|
|
615
616
|
var UserScopeType = SystemScopeType.extract([
|
|
616
617
|
"user.read",
|
|
617
618
|
"user.create",
|
|
618
|
-
"user.edit"
|
|
619
|
+
"user.edit",
|
|
620
|
+
"user.search"
|
|
619
621
|
]);
|
|
620
622
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
621
623
|
var UserScopeV2 = z2.discriminatedUnion("type", [
|
|
@@ -624,7 +626,7 @@ var UserScopeV2 = z2.discriminatedUnion("type", [
|
|
|
624
626
|
options: AllUserScopeOptions.optional()
|
|
625
627
|
}),
|
|
626
628
|
z2.object({
|
|
627
|
-
type: UserScopeType.extract(["user.read"]),
|
|
629
|
+
type: UserScopeType.extract(["user.read", "user.search"]),
|
|
628
630
|
options: AccessLevelOptions.optional()
|
|
629
631
|
})
|
|
630
632
|
]);
|
|
@@ -2308,12 +2308,14 @@ var SystemScopeType = z3.enum([
|
|
|
2308
2308
|
"organisation.read-locations",
|
|
2309
2309
|
"user.read",
|
|
2310
2310
|
"user.create",
|
|
2311
|
-
"user.edit"
|
|
2311
|
+
"user.edit",
|
|
2312
|
+
"user.search"
|
|
2312
2313
|
]);
|
|
2313
2314
|
var UserScopeType = SystemScopeType.extract([
|
|
2314
2315
|
"user.read",
|
|
2315
2316
|
"user.create",
|
|
2316
|
-
"user.edit"
|
|
2317
|
+
"user.edit",
|
|
2318
|
+
"user.search"
|
|
2317
2319
|
]);
|
|
2318
2320
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
2319
2321
|
var UserScopeV2 = z3.discriminatedUnion("type", [
|
|
@@ -2322,7 +2324,7 @@ var UserScopeV2 = z3.discriminatedUnion("type", [
|
|
|
2322
2324
|
options: AllUserScopeOptions.optional()
|
|
2323
2325
|
}),
|
|
2324
2326
|
z3.object({
|
|
2325
|
-
type: UserScopeType.extract(["user.read"]),
|
|
2327
|
+
type: UserScopeType.extract(["user.read", "user.search"]),
|
|
2326
2328
|
options: AccessLevelOptions.optional()
|
|
2327
2329
|
})
|
|
2328
2330
|
]);
|
|
@@ -226,12 +226,14 @@ var SystemScopeType = z2.enum([
|
|
|
226
226
|
"organisation.read-locations",
|
|
227
227
|
"user.read",
|
|
228
228
|
"user.create",
|
|
229
|
-
"user.edit"
|
|
229
|
+
"user.edit",
|
|
230
|
+
"user.search"
|
|
230
231
|
]);
|
|
231
232
|
var UserScopeType = SystemScopeType.extract([
|
|
232
233
|
"user.read",
|
|
233
234
|
"user.create",
|
|
234
|
-
"user.edit"
|
|
235
|
+
"user.edit",
|
|
236
|
+
"user.search"
|
|
235
237
|
]);
|
|
236
238
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
237
239
|
var UserScopeV2 = z2.discriminatedUnion("type", [
|
|
@@ -240,7 +242,7 @@ var UserScopeV2 = z2.discriminatedUnion("type", [
|
|
|
240
242
|
options: AllUserScopeOptions.optional()
|
|
241
243
|
}),
|
|
242
244
|
z2.object({
|
|
243
|
-
type: UserScopeType.extract(["user.read"]),
|
|
245
|
+
type: UserScopeType.extract(["user.read", "user.search"]),
|
|
244
246
|
options: AccessLevelOptions.optional()
|
|
245
247
|
})
|
|
246
248
|
]);
|
package/dist/scopes/index.d.ts
CHANGED
|
@@ -227,12 +227,14 @@ declare const SystemScopeType: z.ZodEnum<{
|
|
|
227
227
|
"user.read": "user.read";
|
|
228
228
|
"user.create": "user.create";
|
|
229
229
|
"user.edit": "user.edit";
|
|
230
|
+
"user.search": "user.search";
|
|
230
231
|
}>;
|
|
231
232
|
export type SystemScopeType = z.infer<typeof SystemScopeType>;
|
|
232
233
|
declare const UserScopeType: z.ZodEnum<{
|
|
233
234
|
"user.read": "user.read";
|
|
234
235
|
"user.create": "user.create";
|
|
235
236
|
"user.edit": "user.edit";
|
|
237
|
+
"user.search": "user.search";
|
|
236
238
|
}>;
|
|
237
239
|
export type UserScopeType = z.infer<typeof UserScopeType>;
|
|
238
240
|
declare const ScopesWithRoleOption: z.ZodEnum<{
|
|
@@ -256,6 +258,7 @@ export declare const UserScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
256
258
|
}, z.core.$strip>, z.ZodObject<{
|
|
257
259
|
type: z.ZodEnum<{
|
|
258
260
|
"user.read": "user.read";
|
|
261
|
+
"user.search": "user.search";
|
|
259
262
|
}>;
|
|
260
263
|
options: z.ZodOptional<z.ZodObject<{
|
|
261
264
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
@@ -493,6 +496,7 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
493
496
|
}, z.core.$strip>, z.ZodObject<{
|
|
494
497
|
type: z.ZodEnum<{
|
|
495
498
|
"user.read": "user.read";
|
|
499
|
+
"user.search": "user.search";
|
|
496
500
|
}>;
|
|
497
501
|
options: z.ZodOptional<z.ZodObject<{
|
|
498
502
|
accessLevel: z.ZodOptional<z.ZodEnum<{
|
|
@@ -556,6 +560,7 @@ export declare const ScopeType: z.ZodEnum<{
|
|
|
556
560
|
"user.read": "user.read";
|
|
557
561
|
"user.create": "user.create";
|
|
558
562
|
"user.edit": "user.edit";
|
|
563
|
+
"user.search": "user.search";
|
|
559
564
|
workqueue: "workqueue";
|
|
560
565
|
"dashboard.view": "dashboard.view";
|
|
561
566
|
}>;
|
|
@@ -635,7 +640,7 @@ export declare const decodeScope: (query: EncodedScope) => {
|
|
|
635
640
|
role?: string[] | undefined;
|
|
636
641
|
} | undefined;
|
|
637
642
|
} | {
|
|
638
|
-
type: "user.read";
|
|
643
|
+
type: "user.read" | "user.search";
|
|
639
644
|
options?: {
|
|
640
645
|
accessLevel?: "administrativeArea" | "location" | "all" | undefined;
|
|
641
646
|
} | undefined;
|
package/dist/scopes/index.js
CHANGED
|
@@ -257,12 +257,14 @@ var SystemScopeType = z3.enum([
|
|
|
257
257
|
"organisation.read-locations",
|
|
258
258
|
"user.read",
|
|
259
259
|
"user.create",
|
|
260
|
-
"user.edit"
|
|
260
|
+
"user.edit",
|
|
261
|
+
"user.search"
|
|
261
262
|
]);
|
|
262
263
|
var UserScopeType = SystemScopeType.extract([
|
|
263
264
|
"user.read",
|
|
264
265
|
"user.create",
|
|
265
|
-
"user.edit"
|
|
266
|
+
"user.edit",
|
|
267
|
+
"user.search"
|
|
266
268
|
]);
|
|
267
269
|
var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
|
|
268
270
|
var UserScopeV2 = z3.discriminatedUnion("type", [
|
|
@@ -271,7 +273,7 @@ var UserScopeV2 = z3.discriminatedUnion("type", [
|
|
|
271
273
|
options: AllUserScopeOptions.optional()
|
|
272
274
|
}),
|
|
273
275
|
z3.object({
|
|
274
|
-
type: UserScopeType.extract(["user.read"]),
|
|
276
|
+
type: UserScopeType.extract(["user.read", "user.search"]),
|
|
275
277
|
options: AccessLevelOptions.optional()
|
|
276
278
|
})
|
|
277
279
|
]);
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|