@opencrvs/toolkit 2.0.0-rc.65195ed → 2.0.0-rc.654a81d

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.
@@ -15,7 +15,10 @@ const { execSync } = require('child_process')
15
15
  const path = require('path')
16
16
  const fs = require('fs')
17
17
 
18
- const REPO_URL = 'https://github.com/opencrvs/opencrvs-countryconfig.git'
18
+ const COUNTRYCONFIG_REPO_URL =
19
+ 'https://github.com/opencrvs/opencrvs-countryconfig.git'
20
+ const INFRASTRUCTURE_REPO_URL =
21
+ 'https://github.com/opencrvs/infrastructure.git'
19
22
 
20
23
  const projectName = process.argv[2]
21
24
 
@@ -26,48 +29,75 @@ if (!projectName) {
26
29
  process.exit(1)
27
30
  }
28
31
 
29
- const targetDir = path.resolve(process.cwd(), projectName)
32
+ const countryconfigDirName = projectName + '-countryconfig'
33
+ const infrastructureDirName = projectName + '-infrastructure'
30
34
 
31
- if (fs.existsSync(targetDir)) {
32
- console.error(`Error: Directory "${projectName}" already exists.`)
35
+ const countryconfigTargetDir = path.resolve(process.cwd(), countryconfigDirName)
36
+ const infrastructureTargetDir = path.resolve(process.cwd(), infrastructureDirName)
37
+
38
+ if (fs.existsSync(countryconfigTargetDir)) {
39
+ console.error('Error: Directory "' + countryconfigDirName + '" already exists.')
40
+ process.exit(1)
41
+ }
42
+
43
+ if (fs.existsSync(infrastructureTargetDir)) {
44
+ console.error('Error: Directory "' + infrastructureDirName + '" already exists.')
33
45
  process.exit(1)
34
46
  }
35
47
 
36
- console.log(`\nScaffolding OpenCRVS country config in ./${projectName}...\n`)
48
+ console.log('\nScaffolding OpenCRVS country config in ./' + countryconfigDirName + '...\n')
37
49
 
38
50
  try {
39
- execSync(`git clone --depth 1 ${REPO_URL} ${projectName}`, {
40
- stdio: 'inherit'
41
- })
51
+ execSync('git clone --depth 1 ' + COUNTRYCONFIG_REPO_URL + ' ' + countryconfigDirName, { stdio: 'inherit' })
42
52
  } catch (err) {
43
- console.error('Failed to clone the repository:', err.message)
53
+ console.error('Failed to clone the country config repository:', err.message)
44
54
  process.exit(1)
45
55
  }
46
56
 
47
57
  try {
48
- fs.rmSync(path.join(targetDir, '.git'), { recursive: true, force: true })
58
+ fs.rmSync(path.join(countryconfigTargetDir, '.git'), { recursive: true, force: true })
49
59
  } catch (err) {
50
- console.error('Failed to remove .git directory:', err.message)
60
+ console.error('Failed to remove .git directory from country config:', err.message)
51
61
  process.exit(1)
52
62
  }
53
63
 
54
- const pkgPath = path.join(targetDir, 'package.json')
64
+ const pkgPath = path.join(countryconfigTargetDir, 'package.json')
55
65
  if (fs.existsSync(pkgPath)) {
56
66
  try {
57
67
  const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'))
58
- pkg.name = projectName
68
+ pkg.name = countryconfigDirName
59
69
  fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n')
60
70
  } catch (err) {
61
71
  console.error('Failed to update package.json:', err.message)
62
72
  process.exit(1)
63
73
  }
64
74
  } else {
65
- console.warn(
66
- `Warning: No package.json found in the cloned repository. Project name was not updated.`
67
- )
75
+ console.warn('Warning: No package.json found in the cloned country config repository. Project name was not updated.')
76
+ }
77
+
78
+ console.log('\nScaffolding OpenCRVS infrastructure in ./' + infrastructureDirName + '...\n')
79
+
80
+ try {
81
+ execSync('git clone --depth 1 ' + INFRASTRUCTURE_REPO_URL + ' ' + infrastructureDirName, { stdio: 'inherit' })
82
+ } catch (err) {
83
+ console.error('Failed to clone the infrastructure repository:', err.message)
84
+ process.exit(1)
85
+ }
86
+
87
+ try {
88
+ fs.rmSync(path.join(infrastructureTargetDir, '.git'), { recursive: true, force: true })
89
+ } catch (err) {
90
+ console.error('Failed to remove .git directory from infrastructure:', err.message)
91
+ process.exit(1)
68
92
  }
69
93
 
70
- console.log(`\nDone! To get started:\n`)
71
- console.log(` cd ${projectName}`)
72
- console.log(` git init`)
73
- console.log(` npm install\n`)
94
+ console.log('\nDone! Your project has been set up in two directories:\n')
95
+ console.log(' ./' + countryconfigDirName + ' -- country configuration')
96
+ console.log(' ./' + infrastructureDirName + ' -- server infrastructure\n')
97
+ console.log('To get started with the country config:\n')
98
+ console.log(' cd ' + countryconfigDirName)
99
+ console.log(' git init')
100
+ console.log(' npm install\n')
101
+ console.log('To get started with the infrastructure:\n')
102
+ console.log(' cd ' + infrastructureDirName)
103
+ console.log(' git init\n')
@@ -417,7 +417,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
417
417
  createdByUserType: "system" | "user";
418
418
  createdAt: string;
419
419
  createdBy: string;
420
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
420
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
421
421
  status: "Rejected";
422
422
  createdByRole?: string | undefined;
423
423
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -432,6 +432,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
432
432
  input: {
433
433
  eventId: string;
434
434
  customActionType?: string | undefined;
435
+ waitFor?: boolean | undefined;
435
436
  };
436
437
  output: {
437
438
  id: string & import("zod").$brand<"UUID">;
@@ -728,7 +729,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
728
729
  createdByUserType: "system" | "user";
729
730
  createdAt: string;
730
731
  createdBy: string;
731
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
732
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
732
733
  status: "Rejected";
733
734
  createdByRole?: string | undefined;
734
735
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -1039,7 +1040,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1039
1040
  createdByUserType: "system" | "user";
1040
1041
  createdAt: string;
1041
1042
  createdBy: string;
1042
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
1043
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
1043
1044
  status: "Rejected";
1044
1045
  createdByRole?: string | undefined;
1045
1046
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -1089,7 +1090,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1089
1090
  transactionId: string;
1090
1091
  createdAt: string;
1091
1092
  action: {
1092
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
1093
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "NOTIFY" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "ASSIGN" | "UNASSIGN";
1093
1094
  transactionId: string;
1094
1095
  createdByUserType: "system" | "user";
1095
1096
  createdAt: string;
@@ -1106,18 +1107,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1106
1107
  }>;
1107
1108
  create: import("@trpc/server").TRPCMutationProcedure<{
1108
1109
  input: {
1109
- eventId: string;
1110
1110
  transactionId: string;
1111
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
1111
+ eventId: string;
1112
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "NOTIFY" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "ASSIGN" | "UNASSIGN";
1112
1113
  status: "Requested" | "Accepted" | "Rejected";
1114
+ createdAtLocation?: string | null | undefined;
1113
1115
  declaration?: Record<string, unknown> | undefined;
1114
1116
  annotation?: Record<string, unknown> | undefined;
1115
1117
  originalActionId?: string | undefined;
1116
1118
  keepAssignment?: boolean | undefined;
1117
1119
  keepAssignmentIfAccepted?: boolean | undefined;
1118
1120
  keepAssignmentIfRejected?: boolean | undefined;
1119
- waitFor?: boolean | undefined;
1120
- createdAtLocation?: string | null | undefined;
1121
1121
  };
1122
1122
  output: {
1123
1123
  id: string & import("zod").$brand<"UUID">;
@@ -1125,7 +1125,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1125
1125
  transactionId: string;
1126
1126
  createdAt: string;
1127
1127
  action: {
1128
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN";
1128
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "NOTIFY" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "ASSIGN" | "UNASSIGN";
1129
1129
  transactionId: string;
1130
1130
  createdByUserType: "system" | "user";
1131
1131
  createdAt: string;
@@ -1451,6 +1451,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1451
1451
  transactionId: import("zod").ZodString;
1452
1452
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1453
1453
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
1454
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
1454
1455
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1455
1456
  }, import("zod/v4/core").$strip>>;
1456
1457
  output: import("../commons").EventDocument;
@@ -1787,7 +1788,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1787
1788
  createdByUserType: "system" | "user";
1788
1789
  createdAt: string;
1789
1790
  createdBy: string;
1790
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
1791
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
1791
1792
  status: "Rejected";
1792
1793
  createdByRole?: string | undefined;
1793
1794
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -2130,7 +2131,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2130
2131
  createdByUserType: "system" | "user";
2131
2132
  createdAt: string;
2132
2133
  createdBy: string;
2133
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
2134
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
2134
2135
  status: "Rejected";
2135
2136
  createdByRole?: string | undefined;
2136
2137
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -2402,6 +2403,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2402
2403
  transactionId: import("zod").ZodString;
2403
2404
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2404
2405
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2406
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2405
2407
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2406
2408
  }, import("zod/v4/core").$strip>>;
2407
2409
  output: import("../commons").EventDocument;
@@ -2696,6 +2698,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2696
2698
  transactionId: import("zod").ZodString;
2697
2699
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2698
2700
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2701
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2699
2702
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2700
2703
  }, import("zod/v4/core").$strip>>;
2701
2704
  output: import("../commons").EventDocument;
@@ -2990,6 +2993,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2990
2993
  transactionId: import("zod").ZodString;
2991
2994
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2992
2995
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2996
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2993
2997
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2994
2998
  }, import("zod/v4/core").$strip>>;
2995
2999
  output: import("../commons").EventDocument;
@@ -3284,6 +3288,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3284
3288
  transactionId: import("zod").ZodString;
3285
3289
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3286
3290
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3291
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3287
3292
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3288
3293
  }, import("zod/v4/core").$strip>>;
3289
3294
  output: import("../commons").EventDocument;
@@ -3578,6 +3583,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3578
3583
  transactionId: import("zod").ZodString;
3579
3584
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3580
3585
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3586
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3581
3587
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3582
3588
  }, import("zod/v4/core").$strip>>;
3583
3589
  output: import("../commons").EventDocument;
@@ -3872,6 +3878,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3872
3878
  transactionId: import("zod").ZodString;
3873
3879
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3874
3880
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3881
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3875
3882
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3876
3883
  }, import("zod/v4/core").$strip>>;
3877
3884
  output: import("../commons").EventDocument;
@@ -4210,7 +4217,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4210
4217
  createdByUserType: "system" | "user";
4211
4218
  createdAt: string;
4212
4219
  createdBy: string;
4213
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
4220
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
4214
4221
  status: "Rejected";
4215
4222
  createdByRole?: string | undefined;
4216
4223
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -4482,6 +4489,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4482
4489
  transactionId: import("zod").ZodString;
4483
4490
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4484
4491
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
4492
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
4485
4493
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4486
4494
  }, import("zod/v4/core").$strip>>;
4487
4495
  output: import("../commons").EventDocument;
@@ -4820,7 +4828,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4820
4828
  createdByUserType: "system" | "user";
4821
4829
  createdAt: string;
4822
4830
  createdBy: string;
4823
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
4831
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
4824
4832
  status: "Rejected";
4825
4833
  createdByRole?: string | undefined;
4826
4834
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -5141,7 +5149,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5141
5149
  createdByUserType: "system" | "user";
5142
5150
  createdAt: string;
5143
5151
  createdBy: string;
5144
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
5152
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
5145
5153
  status: "Rejected";
5146
5154
  createdByRole?: string | undefined;
5147
5155
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -5463,6 +5471,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5463
5471
  transactionId: import("zod").ZodString;
5464
5472
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5465
5473
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5474
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
5466
5475
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5467
5476
  }, import("zod/v4/core").$strip>>;
5468
5477
  output: import("../commons").EventDocument;
@@ -5757,6 +5766,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5757
5766
  transactionId: import("zod").ZodString;
5758
5767
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5759
5768
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5769
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
5760
5770
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5761
5771
  }, import("zod/v4/core").$strip>>;
5762
5772
  output: import("../commons").EventDocument;
@@ -6051,6 +6061,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6051
6061
  transactionId: import("zod").ZodString;
6052
6062
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
6053
6063
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
6064
+ waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
6054
6065
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
6055
6066
  }, import("zod/v4/core").$strip>>;
6056
6067
  output: import("../commons").EventDocument;
@@ -6392,7 +6403,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6392
6403
  createdByUserType: "system" | "user";
6393
6404
  createdAt: string;
6394
6405
  createdBy: string;
6395
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
6406
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
6396
6407
  status: "Rejected";
6397
6408
  createdByRole?: string | undefined;
6398
6409
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -6712,7 +6723,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6712
6723
  createdByUserType: "system" | "user";
6713
6724
  createdAt: string;
6714
6725
  createdBy: string;
6715
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
6726
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
6716
6727
  status: "Rejected";
6717
6728
  createdByRole?: string | undefined;
6718
6729
  createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
@@ -7075,7 +7086,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7075
7086
  createdByUserType: "system" | "user";
7076
7087
  createdAt: string;
7077
7088
  createdBy: string;
7078
- type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "APPROVE_CORRECTION" | "REJECT_CORRECTION";
7089
+ type: "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "CUSTOM" | "NOTIFY" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
7079
7090
  status: "Rejected";
7080
7091
  createdByRole?: string | undefined;
7081
7092
  createdBySignature?: string | null | undefined;
@@ -7293,7 +7304,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7293
7304
  count?: number | undefined;
7294
7305
  timeStart?: string | undefined;
7295
7306
  timeEnd?: string | undefined;
7296
- actionTypes?: ("DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "NOTIFY" | "ASSIGN" | "APPROVE_CORRECTION" | "REJECT_CORRECTION" | "UNASSIGN")[] | undefined;
7307
+ actionTypes?: ("DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "MARK_AS_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "READ" | "CUSTOM" | "CREATE" | "NOTIFY" | "DUPLICATE_DETECTED" | "MARK_AS_NOT_DUPLICATE" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "ASSIGN" | "UNASSIGN")[] | undefined;
7297
7308
  };
7298
7309
  output: {
7299
7310
  results: {
@@ -67,6 +67,12 @@ export declare function not(condition: AjvJSONSchema): JSONSchema;
67
67
  * @returns {JSONSchema} An schema object that always evaluates to false.
68
68
  */
69
69
  export declare function never(): JSONSchema;
70
+ /**
71
+ * Returns an JSON Schema object, which is treated as always valid.
72
+ *
73
+ * @returns {JSONSchema} An schema object that always evaluates to true.
74
+ */
75
+ export declare function always(): JSONSchema;
70
76
  /**
71
77
  * Generate conditional rules for current date
72
78
  */