@opencrvs/toolkit 2.0.0-rc.1ddd150 → 2.0.0-rc.1f0a972

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,10 +15,7 @@ const { execSync } = require('child_process')
15
15
  const path = require('path')
16
16
  const fs = require('fs')
17
17
 
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'
18
+ const REPO_URL = 'https://github.com/opencrvs/opencrvs-countryconfig.git'
22
19
 
23
20
  const projectName = process.argv[2]
24
21
 
@@ -29,75 +26,48 @@ if (!projectName) {
29
26
  process.exit(1)
30
27
  }
31
28
 
32
- const countryconfigDirName = projectName + '-countryconfig'
33
- const infrastructureDirName = projectName + '-infrastructure'
29
+ const targetDir = path.resolve(process.cwd(), projectName)
34
30
 
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.')
31
+ if (fs.existsSync(targetDir)) {
32
+ console.error(`Error: Directory "${projectName}" already exists.`)
45
33
  process.exit(1)
46
34
  }
47
35
 
48
- console.log('\nScaffolding OpenCRVS country config in ./' + countryconfigDirName + '...\n')
36
+ console.log(`\nScaffolding OpenCRVS country config in ./${projectName}...\n`)
49
37
 
50
38
  try {
51
- execSync('git clone --depth 1 ' + COUNTRYCONFIG_REPO_URL + ' ' + countryconfigDirName, { stdio: 'inherit' })
39
+ execSync(`git clone --depth 1 ${REPO_URL} ${projectName}`, {
40
+ stdio: 'inherit'
41
+ })
52
42
  } catch (err) {
53
- console.error('Failed to clone the country config repository:', err.message)
43
+ console.error('Failed to clone the repository:', err.message)
54
44
  process.exit(1)
55
45
  }
56
46
 
57
47
  try {
58
- fs.rmSync(path.join(countryconfigTargetDir, '.git'), { recursive: true, force: true })
48
+ fs.rmSync(path.join(targetDir, '.git'), { recursive: true, force: true })
59
49
  } catch (err) {
60
- console.error('Failed to remove .git directory from country config:', err.message)
50
+ console.error('Failed to remove .git directory:', err.message)
61
51
  process.exit(1)
62
52
  }
63
53
 
64
- const pkgPath = path.join(countryconfigTargetDir, 'package.json')
54
+ const pkgPath = path.join(targetDir, 'package.json')
65
55
  if (fs.existsSync(pkgPath)) {
66
56
  try {
67
57
  const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'))
68
- pkg.name = countryconfigDirName
58
+ pkg.name = projectName
69
59
  fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + '\n')
70
60
  } catch (err) {
71
61
  console.error('Failed to update package.json:', err.message)
72
62
  process.exit(1)
73
63
  }
74
64
  } else {
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)
65
+ console.warn(
66
+ `Warning: No package.json found in the cloned repository. Project name was not updated.`
67
+ )
92
68
  }
93
69
 
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')
70
+ console.log(`\nDone! To get started:\n`)
71
+ console.log(` cd ${projectName}`)
72
+ console.log(` git init`)
73
+ console.log(` npm install\n`)
@@ -429,7 +429,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
429
429
  input: {
430
430
  eventId: string;
431
431
  customActionType?: string | undefined;
432
- waitFor?: boolean | undefined;
433
432
  };
434
433
  output: {
435
434
  id: string & import("zod").$brand<"UUID">;
@@ -1098,17 +1097,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1098
1097
  }>;
1099
1098
  create: import("@trpc/server").TRPCMutationProcedure<{
1100
1099
  input: {
1101
- transactionId: string;
1102
1100
  eventId: string;
1101
+ transactionId: string;
1103
1102
  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";
1104
1103
  status: "Requested" | "Accepted" | "Rejected";
1105
- createdAtLocation?: string | null | undefined;
1106
1104
  declaration?: Record<string, unknown> | undefined;
1107
1105
  annotation?: Record<string, unknown> | undefined;
1108
1106
  originalActionId?: string | undefined;
1109
1107
  keepAssignment?: boolean | undefined;
1110
1108
  keepAssignmentIfAccepted?: boolean | undefined;
1111
1109
  keepAssignmentIfRejected?: boolean | undefined;
1110
+ waitFor?: boolean | undefined;
1111
+ createdAtLocation?: string | null | undefined;
1112
1112
  };
1113
1113
  output: {
1114
1114
  id: string & import("zod").$brand<"UUID">;
@@ -1439,7 +1439,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1439
1439
  transactionId: import("zod").ZodString;
1440
1440
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1441
1441
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
1442
- waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
1443
1442
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
1444
1443
  }, import("zod/v4/core").$strip>>;
1445
1444
  output: import("../commons").EventDocument;
@@ -2382,7 +2381,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2382
2381
  transactionId: import("zod").ZodString;
2383
2382
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2384
2383
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2385
- waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2386
2384
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2387
2385
  }, import("zod/v4/core").$strip>>;
2388
2386
  output: import("../commons").EventDocument;
@@ -2674,7 +2672,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2674
2672
  transactionId: import("zod").ZodString;
2675
2673
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2676
2674
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2677
- waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2678
2675
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2679
2676
  }, import("zod/v4/core").$strip>>;
2680
2677
  output: import("../commons").EventDocument;
@@ -2966,7 +2963,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2966
2963
  transactionId: import("zod").ZodString;
2967
2964
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2968
2965
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
2969
- waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
2970
2966
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
2971
2967
  }, import("zod/v4/core").$strip>>;
2972
2968
  output: import("../commons").EventDocument;
@@ -3258,7 +3254,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3258
3254
  transactionId: import("zod").ZodString;
3259
3255
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3260
3256
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3261
- waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3262
3257
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3263
3258
  }, import("zod/v4/core").$strip>>;
3264
3259
  output: import("../commons").EventDocument;
@@ -3550,7 +3545,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3550
3545
  transactionId: import("zod").ZodString;
3551
3546
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3552
3547
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3553
- waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3554
3548
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3555
3549
  }, import("zod/v4/core").$strip>>;
3556
3550
  output: import("../commons").EventDocument;
@@ -3842,7 +3836,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
3842
3836
  transactionId: import("zod").ZodString;
3843
3837
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3844
3838
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
3845
- waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
3846
3839
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
3847
3840
  }, import("zod/v4/core").$strip>>;
3848
3841
  output: import("../commons").EventDocument;
@@ -4447,7 +4440,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
4447
4440
  transactionId: import("zod").ZodString;
4448
4441
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4449
4442
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
4450
- waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
4451
4443
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
4452
4444
  }, import("zod/v4/core").$strip>>;
4453
4445
  output: import("../commons").EventDocument;
@@ -5420,7 +5412,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5420
5412
  transactionId: import("zod").ZodString;
5421
5413
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5422
5414
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5423
- waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
5424
5415
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5425
5416
  }, import("zod/v4/core").$strip>>;
5426
5417
  output: import("../commons").EventDocument;
@@ -5712,7 +5703,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5712
5703
  transactionId: import("zod").ZodString;
5713
5704
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5714
5705
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
5715
- waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
5716
5706
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
5717
5707
  }, import("zod/v4/core").$strip>>;
5718
5708
  output: import("../commons").EventDocument;
@@ -6004,7 +5994,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6004
5994
  transactionId: import("zod").ZodString;
6005
5995
  eventId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
6006
5996
  keepAssignment: import("zod").ZodOptional<import("zod").ZodBoolean>;
6007
- waitFor: import("zod").ZodDefault<import("zod").ZodBoolean>;
6008
5997
  actionId: import("zod/v4/core").$ZodBranded<import("zod").ZodUUID, "UUID", "out">;
6009
5998
  }, import("zod/v4/core").$strip>>;
6010
5999
  output: import("../commons").EventDocument;
@@ -8,7 +8,7 @@ export declare const BaseActionInput: z.ZodObject<{
8
8
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
9
9
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
10
10
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
11
- waitFor: z.ZodDefault<z.ZodBoolean>;
11
+ waitFor: z.ZodOptional<z.ZodBoolean>;
12
12
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
13
13
  }, z.core.$strip>;
14
14
  export declare const RegisterActionInput: z.ZodObject<{
@@ -20,7 +20,7 @@ export declare const RegisterActionInput: z.ZodObject<{
20
20
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
21
21
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
22
22
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
23
- waitFor: z.ZodDefault<z.ZodBoolean>;
23
+ waitFor: z.ZodOptional<z.ZodBoolean>;
24
24
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
25
25
  type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
26
26
  registrationNumber: z.ZodOptional<z.ZodString>;
@@ -35,7 +35,7 @@ export declare const NotifyActionInput: z.ZodObject<{
35
35
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
36
36
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
37
37
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
38
- waitFor: z.ZodDefault<z.ZodBoolean>;
38
+ waitFor: z.ZodOptional<z.ZodBoolean>;
39
39
  type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
40
40
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
41
41
  }, z.core.$strip>;
@@ -49,7 +49,7 @@ export declare const DeclareActionInput: z.ZodObject<{
49
49
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
50
50
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
51
51
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
52
- waitFor: z.ZodDefault<z.ZodBoolean>;
52
+ waitFor: z.ZodOptional<z.ZodBoolean>;
53
53
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
54
54
  type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
55
55
  }, z.core.$strip>;
@@ -62,7 +62,7 @@ export declare const EditActionInput: z.ZodObject<{
62
62
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
63
63
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
64
64
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
65
- waitFor: z.ZodDefault<z.ZodBoolean>;
65
+ waitFor: z.ZodOptional<z.ZodBoolean>;
66
66
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
67
67
  type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
68
68
  content: z.ZodObject<{
@@ -79,7 +79,7 @@ export declare const PrintCertificateActionInput: z.ZodObject<{
79
79
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
80
80
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
81
81
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
82
- waitFor: z.ZodDefault<z.ZodBoolean>;
82
+ waitFor: z.ZodOptional<z.ZodBoolean>;
83
83
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
84
84
  type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
85
85
  content: z.ZodOptional<z.ZodObject<{
@@ -96,7 +96,7 @@ export declare const RejectDeclarationActionInput: z.ZodObject<{
96
96
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
97
97
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
98
98
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
99
- waitFor: z.ZodDefault<z.ZodBoolean>;
99
+ waitFor: z.ZodOptional<z.ZodBoolean>;
100
100
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
101
101
  type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
102
102
  content: z.ZodObject<{
@@ -113,7 +113,7 @@ export declare const DuplicateDetectedActionInput: z.ZodObject<{
113
113
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
114
114
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
115
115
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
116
- waitFor: z.ZodDefault<z.ZodBoolean>;
116
+ waitFor: z.ZodOptional<z.ZodBoolean>;
117
117
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
118
118
  type: z.ZodDefault<z.ZodLiteral<"DUPLICATE_DETECTED">>;
119
119
  content: z.ZodObject<{
@@ -132,7 +132,7 @@ export declare const MarkAsDuplicateActionInput: z.ZodObject<{
132
132
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
133
133
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
134
134
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
135
- waitFor: z.ZodDefault<z.ZodBoolean>;
135
+ waitFor: z.ZodOptional<z.ZodBoolean>;
136
136
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
137
137
  type: z.ZodDefault<z.ZodLiteral<"MARK_AS_DUPLICATE">>;
138
138
  content: z.ZodOptional<z.ZodObject<{
@@ -149,7 +149,7 @@ export declare const MarkNotDuplicateActionInput: z.ZodObject<{
149
149
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
150
150
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
151
151
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
152
- waitFor: z.ZodDefault<z.ZodBoolean>;
152
+ waitFor: z.ZodOptional<z.ZodBoolean>;
153
153
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
154
154
  type: z.ZodDefault<z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">>;
155
155
  }, z.core.$strip>;
@@ -163,7 +163,7 @@ export declare const ArchiveActionInput: z.ZodObject<{
163
163
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
164
164
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
165
165
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
166
- waitFor: z.ZodDefault<z.ZodBoolean>;
166
+ waitFor: z.ZodOptional<z.ZodBoolean>;
167
167
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
168
168
  type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
169
169
  content: z.ZodObject<{
@@ -180,7 +180,7 @@ export declare const AssignActionInput: z.ZodObject<{
180
180
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
181
181
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
182
182
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
183
- waitFor: z.ZodDefault<z.ZodBoolean>;
183
+ waitFor: z.ZodOptional<z.ZodBoolean>;
184
184
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
185
185
  type: z.ZodLiteral<"ASSIGN">;
186
186
  assignedTo: z.ZodString;
@@ -195,7 +195,7 @@ export declare const UnassignActionInput: z.ZodObject<{
195
195
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
196
196
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
197
197
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
198
- waitFor: z.ZodDefault<z.ZodBoolean>;
198
+ waitFor: z.ZodOptional<z.ZodBoolean>;
199
199
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
200
200
  type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
201
201
  assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
@@ -210,7 +210,7 @@ export declare const RequestCorrectionActionInput: z.ZodObject<{
210
210
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
211
211
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
212
212
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
213
- waitFor: z.ZodDefault<z.ZodBoolean>;
213
+ waitFor: z.ZodOptional<z.ZodBoolean>;
214
214
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
215
215
  type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
216
216
  }, z.core.$strip>;
@@ -224,7 +224,7 @@ export declare const RejectCorrectionActionInput: z.ZodObject<{
224
224
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
225
225
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
226
226
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
227
- waitFor: z.ZodDefault<z.ZodBoolean>;
227
+ waitFor: z.ZodOptional<z.ZodBoolean>;
228
228
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
229
229
  requestId: z.ZodString;
230
230
  type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
@@ -242,7 +242,7 @@ export declare const ApproveCorrectionActionInput: z.ZodObject<{
242
242
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
243
243
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
244
244
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
245
- waitFor: z.ZodDefault<z.ZodBoolean>;
245
+ waitFor: z.ZodOptional<z.ZodBoolean>;
246
246
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
247
247
  requestId: z.ZodString;
248
248
  type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
@@ -257,7 +257,7 @@ export declare const ReadActionInput: z.ZodObject<{
257
257
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
258
258
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
259
259
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
260
- waitFor: z.ZodDefault<z.ZodBoolean>;
260
+ waitFor: z.ZodOptional<z.ZodBoolean>;
261
261
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
262
262
  type: z.ZodDefault<z.ZodLiteral<"READ">>;
263
263
  }, z.core.$strip>;
@@ -275,7 +275,7 @@ export declare const CustomActionInput: z.ZodObject<{
275
275
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
276
276
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
277
277
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
278
- waitFor: z.ZodDefault<z.ZodBoolean>;
278
+ waitFor: z.ZodOptional<z.ZodBoolean>;
279
279
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
280
280
  type: z.ZodDefault<z.ZodLiteral<"CUSTOM">>;
281
281
  customActionType: z.ZodString;
@@ -298,7 +298,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
298
298
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
299
299
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
300
300
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
301
- waitFor: z.ZodDefault<z.ZodBoolean>;
301
+ waitFor: z.ZodOptional<z.ZodBoolean>;
302
302
  type: z.ZodDefault<z.ZodLiteral<"CREATE">>;
303
303
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
304
304
  }, z.core.$strip>, z.ZodObject<{
@@ -310,7 +310,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
310
310
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
311
311
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
312
312
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
313
- waitFor: z.ZodDefault<z.ZodBoolean>;
313
+ waitFor: z.ZodOptional<z.ZodBoolean>;
314
314
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
315
315
  type: z.ZodDefault<z.ZodLiteral<"REGISTER">>;
316
316
  registrationNumber: z.ZodOptional<z.ZodString>;
@@ -323,7 +323,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
323
323
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
324
324
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
325
325
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
326
- waitFor: z.ZodDefault<z.ZodBoolean>;
326
+ waitFor: z.ZodOptional<z.ZodBoolean>;
327
327
  type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
328
328
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
329
329
  }, z.core.$strip>, z.ZodObject<{
@@ -335,7 +335,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
335
335
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
336
336
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
337
337
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
338
- waitFor: z.ZodDefault<z.ZodBoolean>;
338
+ waitFor: z.ZodOptional<z.ZodBoolean>;
339
339
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
340
340
  type: z.ZodDefault<z.ZodLiteral<"DECLARE">>;
341
341
  }, z.core.$strip>, z.ZodObject<{
@@ -347,7 +347,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
347
347
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
348
348
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
349
349
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
350
- waitFor: z.ZodDefault<z.ZodBoolean>;
350
+ waitFor: z.ZodOptional<z.ZodBoolean>;
351
351
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
352
352
  type: z.ZodDefault<z.ZodLiteral<"REJECT">>;
353
353
  content: z.ZodObject<{
@@ -362,7 +362,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
362
362
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
363
363
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
364
364
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
365
- waitFor: z.ZodDefault<z.ZodBoolean>;
365
+ waitFor: z.ZodOptional<z.ZodBoolean>;
366
366
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
367
367
  type: z.ZodDefault<z.ZodLiteral<"DUPLICATE_DETECTED">>;
368
368
  content: z.ZodObject<{
@@ -380,7 +380,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
380
380
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
381
381
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
382
382
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
383
- waitFor: z.ZodDefault<z.ZodBoolean>;
383
+ waitFor: z.ZodOptional<z.ZodBoolean>;
384
384
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
385
385
  type: z.ZodDefault<z.ZodLiteral<"MARK_AS_DUPLICATE">>;
386
386
  content: z.ZodOptional<z.ZodObject<{
@@ -395,7 +395,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
395
395
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
396
396
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
397
397
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
398
- waitFor: z.ZodDefault<z.ZodBoolean>;
398
+ waitFor: z.ZodOptional<z.ZodBoolean>;
399
399
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
400
400
  type: z.ZodDefault<z.ZodLiteral<"MARK_AS_NOT_DUPLICATE">>;
401
401
  }, z.core.$strip>, z.ZodObject<{
@@ -407,7 +407,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
407
407
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
408
408
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
409
409
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
410
- waitFor: z.ZodDefault<z.ZodBoolean>;
410
+ waitFor: z.ZodOptional<z.ZodBoolean>;
411
411
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
412
412
  type: z.ZodDefault<z.ZodLiteral<"ARCHIVE">>;
413
413
  content: z.ZodObject<{
@@ -422,7 +422,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
422
422
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
423
423
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
424
424
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
425
- waitFor: z.ZodDefault<z.ZodBoolean>;
425
+ waitFor: z.ZodOptional<z.ZodBoolean>;
426
426
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
427
427
  type: z.ZodLiteral<"ASSIGN">;
428
428
  assignedTo: z.ZodString;
@@ -435,7 +435,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
435
435
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
436
436
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
437
437
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
438
- waitFor: z.ZodDefault<z.ZodBoolean>;
438
+ waitFor: z.ZodOptional<z.ZodBoolean>;
439
439
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
440
440
  type: z.ZodDefault<z.ZodLiteral<"UNASSIGN">>;
441
441
  assignedTo: z.ZodDefault<z.ZodLiteral<null>>;
@@ -448,7 +448,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
448
448
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
449
449
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
450
450
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
451
- waitFor: z.ZodDefault<z.ZodBoolean>;
451
+ waitFor: z.ZodOptional<z.ZodBoolean>;
452
452
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
453
453
  type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
454
454
  content: z.ZodOptional<z.ZodObject<{
@@ -463,7 +463,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
463
463
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
464
464
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
465
465
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
466
- waitFor: z.ZodDefault<z.ZodBoolean>;
466
+ waitFor: z.ZodOptional<z.ZodBoolean>;
467
467
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
468
468
  type: z.ZodDefault<z.ZodLiteral<"REQUEST_CORRECTION">>;
469
469
  }, z.core.$strip>, z.ZodObject<{
@@ -475,7 +475,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
475
475
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
476
476
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
477
477
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
478
- waitFor: z.ZodDefault<z.ZodBoolean>;
478
+ waitFor: z.ZodOptional<z.ZodBoolean>;
479
479
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
480
480
  requestId: z.ZodString;
481
481
  type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
@@ -491,7 +491,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
491
491
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
492
492
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
493
493
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
494
- waitFor: z.ZodDefault<z.ZodBoolean>;
494
+ waitFor: z.ZodOptional<z.ZodBoolean>;
495
495
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
496
496
  requestId: z.ZodString;
497
497
  type: z.ZodDefault<z.ZodLiteral<"APPROVE_CORRECTION">>;
@@ -504,7 +504,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
504
504
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
505
505
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
506
506
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
507
- waitFor: z.ZodDefault<z.ZodBoolean>;
507
+ waitFor: z.ZodOptional<z.ZodBoolean>;
508
508
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
509
509
  type: z.ZodDefault<z.ZodLiteral<"READ">>;
510
510
  }, z.core.$strip>, z.ZodObject<{
@@ -516,7 +516,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
516
516
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
517
517
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
518
518
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
519
- waitFor: z.ZodDefault<z.ZodBoolean>;
519
+ waitFor: z.ZodOptional<z.ZodBoolean>;
520
520
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
521
521
  type: z.ZodDefault<z.ZodLiteral<"CUSTOM">>;
522
522
  customActionType: z.ZodString;
@@ -529,7 +529,7 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
529
529
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
530
530
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
531
531
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
532
- waitFor: z.ZodDefault<z.ZodBoolean>;
532
+ waitFor: z.ZodOptional<z.ZodBoolean>;
533
533
  createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
534
534
  type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
535
535
  content: z.ZodObject<{
@@ -45,15 +45,16 @@ export declare const Draft: z.ZodObject<{
45
45
  }, z.core.$strip>;
46
46
  }, z.core.$strip>;
47
47
  export declare const DraftInput: z.ZodObject<{
48
+ eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
48
49
  transactionId: z.ZodString;
49
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
50
50
  declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
51
51
  annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
52
52
  originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
53
- eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
54
53
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
55
54
  keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
56
55
  keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
56
+ waitFor: z.ZodOptional<z.ZodBoolean>;
57
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
57
58
  type: z.ZodEnum<{
58
59
  CUSTOM: "CUSTOM";
59
60
  CREATE: "CREATE";
@@ -3136,9 +3136,6 @@ var DeduplicationConfig = z23.object({
3136
3136
  id: z23.string(),
3137
3137
  label: TranslationConfig,
3138
3138
  query: Clause
3139
- }).meta({
3140
- id: "DeduplicationConfig",
3141
- description: "Configuration for duplicate detection on a declare or register action. The query is built from fuzzy / strict / date-range matchers combined with and/or/not."
3142
3139
  });
3143
3140
 
3144
3141
  // ../commons/src/events/ActionConfig.ts
@@ -3367,10 +3364,7 @@ var Field = BaseField2.extend({
3367
3364
  }).describe("Custom field defined for the summary view.");
3368
3365
  var SummaryConfig = z27.object({
3369
3366
  fields: z27.array(z27.union([Field, ReferenceField])).describe("Fields displayed in the event summary view.")
3370
- }).meta({
3371
- id: "SummaryConfig",
3372
- description: "Configuration of the event overview page. Defines which declaration fields appear in the record summary, optionally with custom labels, empty-value messages, and templated values."
3373
- });
3367
+ }).describe("Configuration of the event summary section.");
3374
3368
 
3375
3369
  // ../commons/src/events/AdvancedSearchConfig.ts
3376
3370
  var z28 = __toESM(require("zod/v4"));
@@ -3494,9 +3488,6 @@ var AdvancedSearchField = z28.discriminatedUnion("fieldType", [FieldConfigSchema
3494
3488
  var AdvancedSearchConfig = z28.object({
3495
3489
  title: TranslationConfig.describe("Advanced search tab title"),
3496
3490
  fields: z28.array(AdvancedSearchField).describe("Advanced search fields within the tab.")
3497
- }).meta({
3498
- id: "AdvancedSearchConfig",
3499
- description: "Configuration of one advanced search tab. Each tab has a title and a list of searchable fields \u2014 either declaration fields (via `field()`) or event metadata (via `event()`)."
3500
3491
  });
3501
3492
 
3502
3493
  // ../commons/src/events/utils.ts
@@ -5795,9 +5786,6 @@ var WorkqueueColumnValue = z34.object({
5795
5786
  var WorkqueueColumn = z34.object({
5796
5787
  label: TranslationConfig,
5797
5788
  value: WorkqueueColumnValue
5798
- }).meta({
5799
- id: "WorkqueueColumn",
5800
- description: "Configuration for a single workqueue column. The value references an event metadata key (e.g. `dateOfEvent`, `status`, `trackingId`)."
5801
5789
  });
5802
5790
  function defineWorkqueuesColumns(workqueueColumns) {
5803
5791
  return workqueueColumns.map(
@@ -6003,8 +5991,8 @@ var WorkqueueConfigWithoutQuery = WorkqueueConfig.omit({
6003
5991
  var WorkqueueConfigInput = WorkqueueConfig.extend({
6004
5992
  query: CountryConfigQueryInputType
6005
5993
  }).meta({
6006
- id: "WorkqueueConfig",
6007
- description: "Configuration for a single workqueue. Defines the filter applied to the event index, the quick-action button, the columns shown on each row, and the message rendered when the queue is empty."
5994
+ description: "Workqueue configuration",
5995
+ id: "WorkqueueConfig"
6008
5996
  });
6009
5997
  function defineWorkqueue(workqueueInput) {
6010
5998
  const queryInput = workqueueInput.query;
@@ -6067,9 +6055,7 @@ var BaseActionInput = z38.object({
6067
6055
  keepAssignment: z38.boolean().optional(),
6068
6056
  keepAssignmentIfAccepted: z38.boolean().optional(),
6069
6057
  keepAssignmentIfRejected: z38.boolean().optional(),
6070
- waitFor: z38.boolean().default(true).describe(
6071
- "Whether action waits for the indexing before returning. Defaults to true. Setting this to to false completes faster but might lead to stale data in the client if the client tries to read the event immediately after performing the action. Use with care."
6072
- ),
6058
+ waitFor: z38.boolean().optional(),
6073
6059
  // For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
6074
6060
  // @TODO: createdAtLocation should be limited to actions that system users can perform. For normal users, it should not be part of the base action.
6075
6061
  createdAtLocation: UUID.nullish().describe(
@@ -6249,7 +6235,7 @@ var Draft = z39.object({
6249
6235
  }).describe(
6250
6236
  "A temporary storage for an action. Stored with details of the event, creator and creation time."
6251
6237
  );
6252
- var DraftInput = BaseActionInput.omit({ waitFor: true }).extend({
6238
+ var DraftInput = BaseActionInput.extend({
6253
6239
  type: ActionTypes.exclude([ActionTypes.enum.DELETE]),
6254
6240
  status: z39.enum([
6255
6241
  ActionStatus.Requested,
@@ -2621,9 +2621,6 @@ var DeduplicationConfig = z23.object({
2621
2621
  id: z23.string(),
2622
2622
  label: TranslationConfig,
2623
2623
  query: Clause
2624
- }).meta({
2625
- id: "DeduplicationConfig",
2626
- description: "Configuration for duplicate detection on a declare or register action. The query is built from fuzzy / strict / date-range matchers combined with and/or/not."
2627
2624
  });
2628
2625
 
2629
2626
  // ../commons/src/events/ActionConfig.ts
@@ -2852,10 +2849,7 @@ var Field = BaseField2.extend({
2852
2849
  }).describe("Custom field defined for the summary view.");
2853
2850
  var SummaryConfig = z27.object({
2854
2851
  fields: z27.array(z27.union([Field, ReferenceField])).describe("Fields displayed in the event summary view.")
2855
- }).meta({
2856
- id: "SummaryConfig",
2857
- description: "Configuration of the event overview page. Defines which declaration fields appear in the record summary, optionally with custom labels, empty-value messages, and templated values."
2858
- });
2852
+ }).describe("Configuration of the event summary section.");
2859
2853
 
2860
2854
  // ../commons/src/events/AdvancedSearchConfig.ts
2861
2855
  var z28 = __toESM(require("zod/v4"));
@@ -2979,9 +2973,6 @@ var AdvancedSearchField = z28.discriminatedUnion("fieldType", [FieldConfigSchema
2979
2973
  var AdvancedSearchConfig = z28.object({
2980
2974
  title: TranslationConfig.describe("Advanced search tab title"),
2981
2975
  fields: z28.array(AdvancedSearchField).describe("Advanced search fields within the tab.")
2982
- }).meta({
2983
- id: "AdvancedSearchConfig",
2984
- description: "Configuration of one advanced search tab. Each tab has a title and a list of searchable fields \u2014 either declaration fields (via `field()`) or event metadata (via `event()`)."
2985
2976
  });
2986
2977
 
2987
2978
  // ../commons/src/events/utils.ts
@@ -4098,9 +4089,6 @@ var WorkqueueColumnValue = z34.object({
4098
4089
  var WorkqueueColumn = z34.object({
4099
4090
  label: TranslationConfig,
4100
4091
  value: WorkqueueColumnValue
4101
- }).meta({
4102
- id: "WorkqueueColumn",
4103
- description: "Configuration for a single workqueue column. The value references an event metadata key (e.g. `dateOfEvent`, `status`, `trackingId`)."
4104
4092
  });
4105
4093
  function defineWorkqueuesColumns(workqueueColumns) {
4106
4094
  return workqueueColumns.map(
@@ -4306,8 +4294,8 @@ var WorkqueueConfigWithoutQuery = WorkqueueConfig.omit({
4306
4294
  var WorkqueueConfigInput = WorkqueueConfig.extend({
4307
4295
  query: CountryConfigQueryInputType
4308
4296
  }).meta({
4309
- id: "WorkqueueConfig",
4310
- description: "Configuration for a single workqueue. Defines the filter applied to the event index, the quick-action button, the columns shown on each row, and the message rendered when the queue is empty."
4297
+ description: "Workqueue configuration",
4298
+ id: "WorkqueueConfig"
4311
4299
  });
4312
4300
  var WorkqueueCountInput = z37.array(
4313
4301
  z37.object({ slug: z37.string(), query: QueryType })
@@ -4349,9 +4337,7 @@ var BaseActionInput = z38.object({
4349
4337
  keepAssignment: z38.boolean().optional(),
4350
4338
  keepAssignmentIfAccepted: z38.boolean().optional(),
4351
4339
  keepAssignmentIfRejected: z38.boolean().optional(),
4352
- waitFor: z38.boolean().default(true).describe(
4353
- "Whether action waits for the indexing before returning. Defaults to true. Setting this to to false completes faster but might lead to stale data in the client if the client tries to read the event immediately after performing the action. Use with care."
4354
- ),
4340
+ waitFor: z38.boolean().optional(),
4355
4341
  // For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
4356
4342
  // @TODO: createdAtLocation should be limited to actions that system users can perform. For normal users, it should not be part of the base action.
4357
4343
  createdAtLocation: UUID.nullish().describe(
@@ -4531,7 +4517,7 @@ var Draft = z39.object({
4531
4517
  }).describe(
4532
4518
  "A temporary storage for an action. Stored with details of the event, creator and creation time."
4533
4519
  );
4534
- var DraftInput = BaseActionInput.omit({ waitFor: true }).extend({
4520
+ var DraftInput = BaseActionInput.extend({
4535
4521
  type: ActionTypes.exclude([ActionTypes.enum.DELETE]),
4536
4522
  status: z39.enum([
4537
4523
  ActionStatus.Requested,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.0.0-rc.1ddd150",
3
+ "version": "2.0.0-rc.1f0a972",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {