@opencrvs/toolkit 1.9.15-rc.fc1c0fb → 2.0.0-rc.004e65c

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.
Files changed (161) hide show
  1. package/build.sh +13 -0
  2. package/create-countryconfig/index.js +103 -0
  3. package/create-countryconfig/package.json +21 -0
  4. package/dist/api/index.d.ts.map +1 -1
  5. package/dist/application-config/index.d.ts +2 -0
  6. package/dist/application-config/index.d.ts.map +1 -0
  7. package/dist/application-config/index.js +2304 -0
  8. package/dist/cli.d.ts +2 -0
  9. package/dist/cli.d.ts.map +1 -0
  10. package/dist/cli.js +5244 -0
  11. package/dist/commons/api/router.d.ts +5630 -3673
  12. package/dist/commons/application-config/index.d.ts +97 -0
  13. package/dist/commons/conditionals/conditionals.d.ts +33 -3
  14. package/dist/commons/conditionals/validate.d.ts +20 -1
  15. package/dist/commons/events/ActionConfig.d.ts +415 -1555
  16. package/dist/commons/events/ActionDocument.d.ts +894 -1941
  17. package/dist/commons/events/ActionInput.d.ts +326 -1212
  18. package/dist/commons/events/ActionType.d.ts +91 -11
  19. package/dist/commons/events/AdvancedSearchConfig.d.ts +636 -1496
  20. package/dist/commons/events/AuditLog.d.ts +407 -0
  21. package/dist/commons/events/CompositeFieldValue.d.ts +30 -190
  22. package/dist/commons/events/Conditional.d.ts +26 -38
  23. package/dist/commons/events/Constants.d.ts +1 -1
  24. package/dist/commons/events/CountryConfigQueryInput.d.ts +1592 -4471
  25. package/dist/commons/events/DeduplicationConfig.d.ts +15 -171
  26. package/dist/commons/events/Draft.d.ts +72 -111
  27. package/dist/commons/events/DynamicFieldValue.d.ts +12 -78
  28. package/dist/commons/events/EventConfig.d.ts +37 -2427
  29. package/dist/commons/events/EventConfigInput.d.ts +0 -3
  30. package/dist/commons/events/EventDocument.d.ts +357 -1366
  31. package/dist/commons/events/EventIndex.d.ts +211 -1012
  32. package/dist/commons/events/EventInput.d.ts +3 -8
  33. package/dist/commons/events/EventMetadata.d.ts +129 -363
  34. package/dist/commons/events/FieldConfig.d.ts +3147 -14211
  35. package/dist/commons/events/FieldType.d.ts +26 -4
  36. package/dist/commons/events/FieldTypeMapping.d.ts +314 -906
  37. package/dist/commons/events/FieldValue.d.ts +154 -526
  38. package/dist/commons/events/FileUtils.d.ts +2 -2
  39. package/dist/commons/events/Flag.d.ts +67 -0
  40. package/dist/commons/events/FormConfig.d.ts +54 -721
  41. package/dist/commons/events/PageConfig.d.ts +58 -320
  42. package/dist/commons/events/PlainDate.d.ts +1 -1
  43. package/dist/commons/events/SummaryConfig.d.ts +14 -161
  44. package/dist/commons/events/TemplateConfig.d.ts +2 -3
  45. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  46. package/dist/commons/events/WorkqueueColumnConfig.d.ts +74 -37
  47. package/dist/commons/events/WorkqueueConfig.d.ts +2232 -7577
  48. package/dist/commons/events/deduplication.d.ts +3 -3
  49. package/dist/commons/events/defineConfig.d.ts +2 -248
  50. package/dist/commons/events/eventConfigValidation.d.ts +8 -0
  51. package/dist/commons/events/field.d.ts +6 -0
  52. package/dist/commons/events/index.d.ts +5 -0
  53. package/dist/commons/events/locations.d.ts +93 -19
  54. package/dist/commons/events/mocks.test.utils.d.ts +19 -0
  55. package/dist/commons/events/scopes.d.ts +56 -32
  56. package/dist/commons/events/state/availableActions.d.ts +7 -2
  57. package/dist/commons/events/state/flags.d.ts +37 -3
  58. package/dist/commons/events/state/index.d.ts +29 -30
  59. package/dist/commons/events/state/utils.d.ts +25 -284
  60. package/dist/commons/events/test.utils.d.ts +52 -11
  61. package/dist/commons/events/transactions.d.ts +1 -1
  62. package/dist/commons/events/utils.d.ts +383 -273
  63. package/dist/commons/notification/UserNotifications.d.ts +76 -637
  64. package/dist/conditionals/index.d.ts.map +1 -1
  65. package/dist/conditionals/index.js +338 -14
  66. package/dist/events/deduplication.d.ts +3 -3
  67. package/dist/events/index.js +3700 -2236
  68. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +3 -0
  69. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -0
  70. package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +429 -0
  71. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts +3 -0
  72. package/dist/migrations/v2.0/add-resend-invite-notification.d.ts.map +1 -0
  73. package/dist/migrations/v2.0/add-resend-invite-notification.js +373 -0
  74. package/dist/migrations/v2.0/checkout-upstream-files.d.ts +22 -0
  75. package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -0
  76. package/dist/migrations/v2.0/checkout-upstream-files.js +146 -0
  77. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +2 -0
  78. package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -0
  79. package/dist/migrations/v2.0/convert-config-files-to-ts.js +828 -0
  80. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +3 -0
  81. package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -0
  82. package/dist/migrations/v2.0/convert-paragraph-to-heading.js +158 -0
  83. package/dist/migrations/v2.0/create-events-index.d.ts +3 -0
  84. package/dist/migrations/v2.0/create-events-index.d.ts.map +1 -0
  85. package/dist/migrations/v2.0/create-events-index.js +325 -0
  86. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts +11 -0
  87. package/dist/migrations/v2.0/delete-infrastructure-directory.d.ts.map +1 -0
  88. package/dist/migrations/v2.0/delete-infrastructure-directory.js +123 -0
  89. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts +3 -0
  90. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.d.ts.map +1 -0
  91. package/dist/migrations/v2.0/fix-accept-requested-registration-function-type.js +110 -0
  92. package/dist/migrations/v2.0/index.d.ts +13 -0
  93. package/dist/migrations/v2.0/index.d.ts.map +1 -0
  94. package/dist/migrations/v2.0/index.js +5154 -0
  95. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +3 -0
  96. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -0
  97. package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +432 -0
  98. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts +13 -0
  99. package/dist/migrations/v2.0/merge-infrastructure-directory.d.ts.map +1 -0
  100. package/dist/migrations/v2.0/merge-infrastructure-directory.js +222 -0
  101. package/dist/migrations/v2.0/migrate-application-config-url.d.ts +3 -0
  102. package/dist/migrations/v2.0/migrate-application-config-url.d.ts.map +1 -0
  103. package/dist/migrations/v2.0/migrate-application-config-url.js +342 -0
  104. package/dist/migrations/v2.0/migrate-scopes.d.ts +3 -0
  105. package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -0
  106. package/dist/migrations/v2.0/migrate-scopes.js +305 -0
  107. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +3 -0
  108. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -0
  109. package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +267 -0
  110. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts +3 -0
  111. package/dist/migrations/v2.0/migrate-workqueue-configs.d.ts.map +1 -0
  112. package/dist/migrations/v2.0/migrate-workqueue-configs.js +317 -0
  113. package/dist/migrations/v2.0/remove-delete-actions.d.ts +3 -0
  114. package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -0
  115. package/dist/migrations/v2.0/remove-delete-actions.js +156 -0
  116. package/dist/migrations/v2.0/remove-demo-scope.d.ts +3 -0
  117. package/dist/migrations/v2.0/remove-demo-scope.d.ts.map +1 -0
  118. package/dist/migrations/v2.0/remove-demo-scope.js +74 -0
  119. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +3 -0
  120. package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -0
  121. package/dist/migrations/v2.0/remove-deprecated-imports.js +96 -0
  122. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts +3 -0
  123. package/dist/migrations/v2.0/remove-fhir-url-helpers.d.ts.map +1 -0
  124. package/dist/migrations/v2.0/remove-fhir-url-helpers.js +163 -0
  125. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts +3 -0
  126. package/dist/migrations/v2.0/remove-hearth-migrations.d.ts.map +1 -0
  127. package/dist/migrations/v2.0/remove-hearth-migrations.js +77 -0
  128. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts +3 -0
  129. package/dist/migrations/v2.0/remove-old-statistics-service.d.ts.map +1 -0
  130. package/dist/migrations/v2.0/remove-old-statistics-service.js +356 -0
  131. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +3 -0
  132. package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -0
  133. package/dist/migrations/v2.0/remove-pending-certification-flag.js +109 -0
  134. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +3 -0
  135. package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -0
  136. package/dist/migrations/v2.0/remove-review-from-register-action.js +163 -0
  137. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts +3 -0
  138. package/dist/migrations/v2.0/remove-unused-environment-variables.d.ts.map +1 -0
  139. package/dist/migrations/v2.0/remove-unused-environment-variables.js +186 -0
  140. package/dist/migrations/v2.0/rename-api-paths.d.ts +3 -0
  141. package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -0
  142. package/dist/migrations/v2.0/rename-api-paths.js +187 -0
  143. package/dist/migrations/v2.0/rename-location-parent-id.d.ts +3 -0
  144. package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -0
  145. package/dist/migrations/v2.0/rename-location-parent-id.js +180 -0
  146. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts +3 -0
  147. package/dist/migrations/v2.0/simplify-analytics-precalculations.d.ts.map +1 -0
  148. package/dist/migrations/v2.0/simplify-analytics-precalculations.js +195 -0
  149. package/dist/migrations/v2.0/update-package-json.d.ts +3 -0
  150. package/dist/migrations/v2.0/update-package-json.d.ts.map +1 -0
  151. package/dist/migrations/v2.0/update-package-json.js +105 -0
  152. package/dist/notification/index.d.ts.map +1 -1
  153. package/dist/notification/index.js +2731 -1849
  154. package/dist/scopes/index.d.ts +714 -352
  155. package/dist/scopes/index.d.ts.map +1 -1
  156. package/dist/scopes/index.js +381 -298
  157. package/opencrvs-toolkit-2.0.0-rc.004e65c.tgz +0 -0
  158. package/package.json +14 -4
  159. package/tsconfig.json +12 -2
  160. package/tsconfig.tsbuildinfo +1 -1
  161. package/dist/commons/events/CreatedAtLocation.d.ts +0 -2
@@ -1,381 +1,158 @@
1
- import { z, ZodType } from 'zod';
2
- export declare const EventIndex: z.ZodObject<z.objectUtil.extendShape<{
3
- id: z.ZodBranded<z.ZodString, "UUID">;
1
+ import { z, ZodType } from 'zod/v4';
2
+ export declare const EventIndex: z.ZodObject<{
3
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
4
4
  type: z.ZodString;
5
- status: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
5
+ status: z.ZodEnum<{
6
+ CREATED: "CREATED";
7
+ NOTIFIED: "NOTIFIED";
8
+ DECLARED: "DECLARED";
9
+ REGISTERED: "REGISTERED";
10
+ ARCHIVED: "ARCHIVED";
11
+ }>;
6
12
  legalStatuses: z.ZodObject<{
7
13
  DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
8
- createdAt: z.ZodString;
14
+ createdAt: z.ZodISODateTime;
9
15
  createdBy: z.ZodString;
10
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
11
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
12
- acceptedAt: z.ZodString;
13
- createdByRole: z.ZodString;
14
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
- }, "strip", z.ZodTypeAny, {
16
- createdAt: string;
17
- createdBy: string;
18
- createdByRole: string;
19
- acceptedAt: string;
20
- createdByUserType?: "system" | "user" | null | undefined;
21
- createdBySignature?: string | null | undefined;
22
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
23
- }, {
24
- createdAt: string;
25
- createdBy: string;
26
- createdByRole: string;
27
- acceptedAt: string;
28
- createdByUserType?: "system" | "user" | null | undefined;
29
- createdBySignature?: string | null | undefined;
30
- createdAtLocation?: string | null | undefined;
31
- }>>>;
32
- REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
33
- createdAt: z.ZodString;
16
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
17
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
18
+ user: "user";
19
+ system: "system";
20
+ }>>>;
21
+ acceptedAt: z.ZodISODateTime;
22
+ createdByRole: z.ZodOptional<z.ZodString>;
23
+ }, z.core.$strip>>>;
24
+ REGISTERED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
25
+ createdAt: z.ZodISODateTime;
34
26
  createdBy: z.ZodString;
35
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
36
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
37
- acceptedAt: z.ZodString;
38
- createdByRole: z.ZodString;
39
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
- }, {
27
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
28
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
29
+ user: "user";
30
+ system: "system";
31
+ }>>>;
32
+ acceptedAt: z.ZodISODateTime;
33
+ createdByRole: z.ZodOptional<z.ZodString>;
41
34
  registrationNumber: z.ZodString;
42
- }>, "strip", z.ZodTypeAny, {
43
- createdAt: string;
44
- createdBy: string;
45
- createdByRole: string;
46
- registrationNumber: string;
47
- acceptedAt: string;
48
- createdByUserType?: "system" | "user" | null | undefined;
49
- createdBySignature?: string | null | undefined;
50
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
51
- }, {
52
- createdAt: string;
53
- createdBy: string;
54
- createdByRole: string;
55
- registrationNumber: string;
56
- acceptedAt: string;
57
- createdByUserType?: "system" | "user" | null | undefined;
58
- createdBySignature?: string | null | undefined;
59
- createdAtLocation?: string | null | undefined;
60
- }>>>;
61
- }, "strip", z.ZodTypeAny, {
62
- DECLARED?: {
63
- createdAt: string;
64
- createdBy: string;
65
- createdByRole: string;
66
- acceptedAt: string;
67
- createdByUserType?: "system" | "user" | null | undefined;
68
- createdBySignature?: string | null | undefined;
69
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
70
- } | null | undefined;
71
- REGISTERED?: {
72
- createdAt: string;
73
- createdBy: string;
74
- createdByRole: string;
75
- registrationNumber: string;
76
- acceptedAt: string;
77
- createdByUserType?: "system" | "user" | null | undefined;
78
- createdBySignature?: string | null | undefined;
79
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
80
- } | null | undefined;
81
- }, {
82
- DECLARED?: {
83
- createdAt: string;
84
- createdBy: string;
85
- createdByRole: string;
86
- acceptedAt: string;
87
- createdByUserType?: "system" | "user" | null | undefined;
88
- createdBySignature?: string | null | undefined;
89
- createdAtLocation?: string | null | undefined;
90
- } | null | undefined;
91
- REGISTERED?: {
92
- createdAt: string;
93
- createdBy: string;
94
- createdByRole: string;
95
- registrationNumber: string;
96
- acceptedAt: string;
97
- createdByUserType?: "system" | "user" | null | undefined;
98
- createdBySignature?: string | null | undefined;
99
- createdAtLocation?: string | null | undefined;
100
- } | null | undefined;
101
- }>;
102
- createdAt: z.ZodString;
103
- dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ }, z.core.$strip>>>;
36
+ }, z.core.$strip>;
37
+ createdAt: z.ZodISODateTime;
38
+ dateOfEvent: z.ZodOptional<z.ZodNullable<z.ZodISODate>>;
39
+ placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
104
40
  createdBy: z.ZodString;
105
- createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["user", "system"]>>>;
106
- updatedByUserRole: z.ZodString;
107
- createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
108
- createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
- updatedAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
110
- updatedAt: z.ZodString;
41
+ createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
42
+ user: "user";
43
+ system: "system";
44
+ }>>>;
45
+ updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
47
+ updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
48
+ updatedAt: z.ZodISODateTime;
111
49
  assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
112
50
  updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
51
  trackingId: z.ZodString;
114
52
  potentialDuplicates: z.ZodArray<z.ZodObject<{
115
- id: z.ZodBranded<z.ZodString, "UUID">;
53
+ id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
116
54
  trackingId: z.ZodString;
117
- }, "strip", z.ZodTypeAny, {
118
- id: string & z.BRAND<"UUID">;
119
- trackingId: string;
120
- }, {
121
- id: string;
122
- trackingId: string;
123
- }>, "many">;
124
- flags: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
125
- readonly PENDING_CERTIFICATION: "pending-certification";
55
+ }, z.core.$strip>>;
56
+ flags: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
126
57
  readonly INCOMPLETE: "incomplete";
127
58
  readonly REJECTED: "rejected";
128
59
  readonly CORRECTION_REQUESTED: "correction-requested";
129
60
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
130
- }>]>, "many">;
131
- }, {
132
- declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldValue, z.ZodTypeDef, import("./FieldValue").FieldValue>>;
133
- }>, "strip", z.ZodTypeAny, {
134
- type: string;
135
- id: string & z.BRAND<"UUID">;
136
- status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
137
- createdAt: string;
138
- createdBy: string;
139
- declaration: Record<string, import("./FieldValue").FieldValue>;
140
- trackingId: string;
141
- updatedAt: string;
142
- legalStatuses: {
143
- DECLARED?: {
144
- createdAt: string;
145
- createdBy: string;
146
- createdByRole: string;
147
- acceptedAt: string;
148
- createdByUserType?: "system" | "user" | null | undefined;
149
- createdBySignature?: string | null | undefined;
150
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
151
- } | null | undefined;
152
- REGISTERED?: {
153
- createdAt: string;
154
- createdBy: string;
155
- createdByRole: string;
156
- registrationNumber: string;
157
- acceptedAt: string;
158
- createdByUserType?: "system" | "user" | null | undefined;
159
- createdBySignature?: string | null | undefined;
160
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
161
- } | null | undefined;
162
- };
163
- updatedByUserRole: string;
164
- potentialDuplicates: {
165
- id: string & z.BRAND<"UUID">;
166
- trackingId: string;
167
- }[];
168
- flags: string[];
169
- createdByUserType?: "system" | "user" | null | undefined;
170
- createdBySignature?: string | null | undefined;
171
- createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
172
- assignedTo?: string | null | undefined;
173
- dateOfEvent?: string | null | undefined;
174
- updatedAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
175
- updatedBy?: string | null | undefined;
176
- }, {
177
- type: string;
178
- id: string;
179
- status: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
180
- createdAt: string;
181
- createdBy: string;
182
- declaration: Record<string, import("./FieldValue").FieldValue>;
183
- trackingId: string;
184
- updatedAt: string;
185
- legalStatuses: {
186
- DECLARED?: {
187
- createdAt: string;
188
- createdBy: string;
189
- createdByRole: string;
190
- acceptedAt: string;
191
- createdByUserType?: "system" | "user" | null | undefined;
192
- createdBySignature?: string | null | undefined;
193
- createdAtLocation?: string | null | undefined;
194
- } | null | undefined;
195
- REGISTERED?: {
196
- createdAt: string;
197
- createdBy: string;
198
- createdByRole: string;
199
- registrationNumber: string;
200
- acceptedAt: string;
201
- createdByUserType?: "system" | "user" | null | undefined;
202
- createdBySignature?: string | null | undefined;
203
- createdAtLocation?: string | null | undefined;
204
- } | null | undefined;
205
- };
206
- updatedByUserRole: string;
207
- potentialDuplicates: {
208
- id: string;
209
- trackingId: string;
210
- }[];
211
- flags: string[];
212
- createdByUserType?: "system" | "user" | null | undefined;
213
- createdBySignature?: string | null | undefined;
214
- createdAtLocation?: string | null | undefined;
215
- assignedTo?: string | null | undefined;
216
- dateOfEvent?: string | null | undefined;
217
- updatedAtLocation?: string | null | undefined;
218
- updatedBy?: string | null | undefined;
219
- }>;
61
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
62
+ }>]>, z.ZodString]>>;
63
+ declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldValue, unknown>>>;
64
+ }, z.core.$strip>;
220
65
  export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
221
66
  type: z.ZodString;
222
- }, "strip", z.ZodTypeAny, {
223
- type: string;
224
- }, {
225
- type: string;
226
- }>>;
67
+ }, z.core.$strip>>;
227
68
  export type EventSearchIndex = z.infer<typeof EventSearchIndex>;
228
69
  export type EventIndex = z.infer<typeof EventIndex>;
229
70
  export declare const Fuzzy: z.ZodObject<{
230
71
  type: z.ZodLiteral<"fuzzy">;
231
72
  term: z.ZodString;
232
- }, "strip", z.ZodTypeAny, {
233
- type: "fuzzy";
234
- term: string;
235
- }, {
236
- type: "fuzzy";
237
- term: string;
238
- }>;
73
+ }, z.core.$strip>;
239
74
  export declare const Exact: z.ZodObject<{
240
75
  type: z.ZodLiteral<"exact">;
241
76
  term: z.ZodString;
242
- }, "strip", z.ZodTypeAny, {
243
- type: "exact";
244
- term: string;
245
- }, {
246
- type: "exact";
247
- term: string;
248
- }>;
77
+ }, z.core.$strip>;
78
+ export type Exact = z.infer<typeof Exact>;
249
79
  export declare const ExactStatus: z.ZodObject<{
250
80
  type: z.ZodLiteral<"exact">;
251
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
252
- }, "strip", z.ZodTypeAny, {
253
- type: "exact";
254
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
255
- }, {
256
- type: "exact";
257
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
258
- }>;
81
+ term: z.ZodEnum<{
82
+ CREATED: "CREATED";
83
+ NOTIFIED: "NOTIFIED";
84
+ DECLARED: "DECLARED";
85
+ REGISTERED: "REGISTERED";
86
+ ARCHIVED: "ARCHIVED";
87
+ }>;
88
+ }, z.core.$strip>;
259
89
  export declare const ExactUserType: z.ZodObject<{
260
90
  type: z.ZodLiteral<"exact">;
261
- term: z.ZodEnum<["user", "system"]>;
262
- }, "strip", z.ZodTypeAny, {
263
- type: "exact";
264
- term: "system" | "user";
265
- }, {
266
- type: "exact";
267
- term: "system" | "user";
268
- }>;
91
+ term: z.ZodEnum<{
92
+ user: "user";
93
+ system: "system";
94
+ }>;
95
+ }, z.core.$strip>;
269
96
  export declare const AnyOf: z.ZodObject<{
270
97
  type: z.ZodLiteral<"anyOf">;
271
- terms: z.ZodArray<z.ZodString, "many">;
272
- }, "strip", z.ZodTypeAny, {
273
- type: "anyOf";
274
- terms: string[];
275
- }, {
276
- type: "anyOf";
277
- terms: string[];
278
- }>;
98
+ terms: z.ZodArray<z.ZodString>;
99
+ }, z.core.$strip>;
279
100
  export declare const AnyOfStatus: z.ZodObject<{
280
101
  type: z.ZodLiteral<"anyOf">;
281
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
282
- }, "strip", z.ZodTypeAny, {
283
- type: "anyOf";
284
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
285
- }, {
286
- type: "anyOf";
287
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
288
- }>;
102
+ terms: z.ZodArray<z.ZodEnum<{
103
+ CREATED: "CREATED";
104
+ NOTIFIED: "NOTIFIED";
105
+ DECLARED: "DECLARED";
106
+ REGISTERED: "REGISTERED";
107
+ ARCHIVED: "ARCHIVED";
108
+ }>>;
109
+ }, z.core.$strip>;
289
110
  export declare const Range: z.ZodObject<{
290
111
  type: z.ZodLiteral<"range">;
291
112
  gte: z.ZodString;
292
113
  lte: z.ZodString;
293
- }, "strip", z.ZodTypeAny, {
294
- type: "range";
295
- gte: string;
296
- lte: string;
297
- }, {
298
- type: "range";
299
- gte: string;
300
- lte: string;
301
- }>;
114
+ }, z.core.$strip>;
302
115
  export declare const ContainsFlags: z.ZodObject<{
303
- anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
304
- readonly PENDING_CERTIFICATION: "pending-certification";
116
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
305
117
  readonly INCOMPLETE: "incomplete";
306
118
  readonly REJECTED: "rejected";
307
119
  readonly CORRECTION_REQUESTED: "correction-requested";
308
120
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
309
- }>]>, "many">>;
310
- noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
311
- readonly PENDING_CERTIFICATION: "pending-certification";
121
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
122
+ }>]>, z.ZodString]>>>;
123
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
312
124
  readonly INCOMPLETE: "incomplete";
313
125
  readonly REJECTED: "rejected";
314
126
  readonly CORRECTION_REQUESTED: "correction-requested";
315
127
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
316
- }>]>, "many">>;
317
- }, "strip", z.ZodTypeAny, {
318
- anyOf?: string[] | undefined;
319
- noneOf?: string[] | undefined;
320
- }, {
321
- anyOf?: string[] | undefined;
322
- noneOf?: string[] | undefined;
323
- }>;
128
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
129
+ }>]>, z.ZodString]>>>;
130
+ }, z.core.$strip>;
324
131
  export declare const Within: z.ZodObject<{
325
132
  type: z.ZodLiteral<"within">;
326
133
  location: z.ZodString;
327
- }, "strip", z.ZodTypeAny, {
328
- type: "within";
329
- location: string;
330
- }, {
331
- type: "within";
332
- location: string;
333
- }>;
334
- export declare const ExactDate: z.ZodObject<z.objectUtil.extendShape<{
134
+ }, z.core.$strip>;
135
+ export type Within = z.infer<typeof Within>;
136
+ export declare const ExactDate: z.ZodObject<{
335
137
  type: z.ZodLiteral<"exact">;
336
- term: z.ZodString;
337
- }, {
338
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
339
- }>, "strip", z.ZodTypeAny, {
340
- type: "exact";
341
- term: string;
342
- }, {
343
- type: "exact";
344
- term: string;
345
- }>;
346
- export declare const DateCondition: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
138
+ term: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
139
+ }, z.core.$strip>;
140
+ export declare const DateCondition: z.ZodUnion<readonly [z.ZodObject<{
347
141
  type: z.ZodLiteral<"exact">;
348
- term: z.ZodString;
349
- }, {
350
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
351
- }>, "strip", z.ZodTypeAny, {
352
- type: "exact";
353
- term: string;
354
- }, {
355
- type: "exact";
356
- term: string;
357
- }>, z.ZodObject<{
142
+ term: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
143
+ }, z.core.$strip>, z.ZodObject<{
358
144
  type: z.ZodLiteral<"range">;
359
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
360
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
361
- }, "strip", z.ZodTypeAny, {
362
- type: "range";
363
- gte: string;
364
- lte: string;
365
- }, {
366
- type: "range";
367
- gte: string;
368
- lte: string;
369
- }>, z.ZodObject<{
145
+ gte: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
146
+ lte: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
147
+ }, z.core.$strip>, z.ZodObject<{
370
148
  type: z.ZodLiteral<"timePeriod">;
371
- term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
372
- }, "strip", z.ZodTypeAny, {
373
- type: "timePeriod";
374
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
375
- }, {
376
- type: "timePeriod";
377
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
378
- }>]>;
149
+ term: z.ZodEnum<{
150
+ last7Days: "last7Days";
151
+ last30Days: "last30Days";
152
+ last90Days: "last90Days";
153
+ last365Days: "last365Days";
154
+ }>;
155
+ }, z.core.$strip>]>;
379
156
  export type DateCondition = z.infer<typeof DateCondition>;
380
157
  export declare const QueryInput: ZodType;
381
158
  export type BaseInput = z.infer<typeof Fuzzy> | z.infer<typeof Exact> | z.infer<typeof Range> | z.infer<typeof Within> | z.infer<typeof AnyOf>;
@@ -383,752 +160,174 @@ type QueryMap = {
383
160
  [key: string]: BaseInput | QueryMap;
384
161
  };
385
162
  export type QueryInputType = BaseInput | QueryMap;
386
- export declare const QueryExpression: z.ZodEffects<z.ZodObject<{
163
+ export declare const QueryExpression: z.ZodObject<{
387
164
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
388
165
  eventType: z.ZodOptional<z.ZodString>;
389
- status: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
166
+ status: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
390
167
  type: z.ZodLiteral<"anyOf">;
391
- terms: z.ZodArray<z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>, "many">;
392
- }, "strip", z.ZodTypeAny, {
393
- type: "anyOf";
394
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
395
- }, {
396
- type: "anyOf";
397
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
398
- }>, z.ZodObject<{
168
+ terms: z.ZodArray<z.ZodEnum<{
169
+ CREATED: "CREATED";
170
+ NOTIFIED: "NOTIFIED";
171
+ DECLARED: "DECLARED";
172
+ REGISTERED: "REGISTERED";
173
+ ARCHIVED: "ARCHIVED";
174
+ }>>;
175
+ }, z.core.$strip>, z.ZodObject<{
399
176
  type: z.ZodLiteral<"exact">;
400
- term: z.ZodEnum<["CREATED", "NOTIFIED", "DECLARED", "VALIDATED", "REGISTERED", "ARCHIVED"]>;
401
- }, "strip", z.ZodTypeAny, {
402
- type: "exact";
403
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
404
- }, {
405
- type: "exact";
406
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
407
- }>]>>>;
408
- createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
177
+ term: z.ZodEnum<{
178
+ CREATED: "CREATED";
179
+ NOTIFIED: "NOTIFIED";
180
+ DECLARED: "DECLARED";
181
+ REGISTERED: "REGISTERED";
182
+ ARCHIVED: "ARCHIVED";
183
+ }>;
184
+ }, z.core.$strip>]>>>;
185
+ createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
409
186
  type: z.ZodLiteral<"exact">;
410
- term: z.ZodString;
411
- }, {
412
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
413
- }>, "strip", z.ZodTypeAny, {
414
- type: "exact";
415
- term: string;
416
- }, {
417
- type: "exact";
418
- term: string;
419
- }>, z.ZodObject<{
420
- type: z.ZodLiteral<"range">;
421
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
422
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
423
- }, "strip", z.ZodTypeAny, {
424
- type: "range";
425
- gte: string;
426
- lte: string;
427
- }, {
428
- type: "range";
429
- gte: string;
430
- lte: string;
431
- }>, z.ZodObject<{
432
- type: z.ZodLiteral<"timePeriod">;
433
- term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
434
- }, "strip", z.ZodTypeAny, {
435
- type: "timePeriod";
436
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
437
- }, {
438
- type: "timePeriod";
439
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
440
- }>]>>>;
441
- updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
442
- type: z.ZodLiteral<"exact">;
443
- term: z.ZodString;
444
- }, {
445
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
446
- }>, "strip", z.ZodTypeAny, {
447
- type: "exact";
448
- term: string;
449
- }, {
450
- type: "exact";
451
- term: string;
452
- }>, z.ZodObject<{
187
+ term: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
188
+ }, z.core.$strip>, z.ZodObject<{
453
189
  type: z.ZodLiteral<"range">;
454
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
455
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
456
- }, "strip", z.ZodTypeAny, {
457
- type: "range";
458
- gte: string;
459
- lte: string;
460
- }, {
461
- type: "range";
462
- gte: string;
463
- lte: string;
464
- }>, z.ZodObject<{
190
+ gte: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
191
+ lte: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
192
+ }, z.core.$strip>, z.ZodObject<{
465
193
  type: z.ZodLiteral<"timePeriod">;
466
- term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
467
- }, "strip", z.ZodTypeAny, {
468
- type: "timePeriod";
469
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
470
- }, {
471
- type: "timePeriod";
472
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
473
- }>]>>>;
474
- 'legalStatuses.REGISTERED.acceptedAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
194
+ term: z.ZodEnum<{
195
+ last7Days: "last7Days";
196
+ last30Days: "last30Days";
197
+ last90Days: "last90Days";
198
+ last365Days: "last365Days";
199
+ }>;
200
+ }, z.core.$strip>]>>>;
201
+ updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
475
202
  type: z.ZodLiteral<"exact">;
476
- term: z.ZodString;
477
- }, {
478
- term: z.ZodUnion<[z.ZodString, z.ZodString]>;
479
- }>, "strip", z.ZodTypeAny, {
480
- type: "exact";
481
- term: string;
482
- }, {
483
- type: "exact";
484
- term: string;
485
- }>, z.ZodObject<{
203
+ term: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
204
+ }, z.core.$strip>, z.ZodObject<{
486
205
  type: z.ZodLiteral<"range">;
487
- gte: z.ZodUnion<[z.ZodString, z.ZodString]>;
488
- lte: z.ZodUnion<[z.ZodString, z.ZodString]>;
489
- }, "strip", z.ZodTypeAny, {
490
- type: "range";
491
- gte: string;
492
- lte: string;
493
- }, {
494
- type: "range";
495
- gte: string;
496
- lte: string;
497
- }>, z.ZodObject<{
206
+ gte: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
207
+ lte: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
208
+ }, z.core.$strip>, z.ZodObject<{
498
209
  type: z.ZodLiteral<"timePeriod">;
499
- term: z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>;
500
- }, "strip", z.ZodTypeAny, {
501
- type: "timePeriod";
502
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
503
- }, {
504
- type: "timePeriod";
505
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
506
- }>]>>>;
507
- 'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
210
+ term: z.ZodEnum<{
211
+ last7Days: "last7Days";
212
+ last30Days: "last30Days";
213
+ last90Days: "last90Days";
214
+ last365Days: "last365Days";
215
+ }>;
216
+ }, z.core.$strip>]>>>;
217
+ 'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
508
218
  type: z.ZodLiteral<"within">;
509
219
  location: z.ZodString;
510
- }, "strip", z.ZodTypeAny, {
511
- type: "within";
512
- location: string;
513
- }, {
514
- type: "within";
515
- location: string;
516
- }>, z.ZodObject<{
220
+ }, z.core.$strip>>>>;
221
+ 'legalStatuses.DECLARED.createdByRole': z.ZodOptional<z.ZodOptional<z.ZodObject<{
222
+ type: z.ZodLiteral<"anyOf">;
223
+ terms: z.ZodArray<z.ZodString>;
224
+ }, z.core.$strip>>>;
225
+ 'legalStatuses.REGISTERED.acceptedAt': z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
517
226
  type: z.ZodLiteral<"exact">;
518
- term: z.ZodString;
519
- }, "strip", z.ZodTypeAny, {
520
- type: "exact";
521
- term: string;
522
- }, {
523
- type: "exact";
524
- term: string;
525
- }>]>>>;
526
- 'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
227
+ term: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
228
+ }, z.core.$strip>, z.ZodObject<{
229
+ type: z.ZodLiteral<"range">;
230
+ gte: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
231
+ lte: z.ZodUnion<[z.ZodISODate, z.ZodISODateTime]>;
232
+ }, z.core.$strip>, z.ZodObject<{
233
+ type: z.ZodLiteral<"timePeriod">;
234
+ term: z.ZodEnum<{
235
+ last7Days: "last7Days";
236
+ last30Days: "last30Days";
237
+ last90Days: "last90Days";
238
+ last365Days: "last365Days";
239
+ }>;
240
+ }, z.core.$strip>]>>>;
241
+ 'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
527
242
  type: z.ZodLiteral<"within">;
528
243
  location: z.ZodString;
529
- }, "strip", z.ZodTypeAny, {
530
- type: "within";
531
- location: string;
532
- }, {
533
- type: "within";
534
- location: string;
535
- }>, z.ZodObject<{
536
- type: z.ZodLiteral<"exact">;
537
- term: z.ZodString;
538
- }, "strip", z.ZodTypeAny, {
539
- type: "exact";
540
- term: string;
541
- }, {
542
- type: "exact";
543
- term: string;
544
- }>]>>>;
244
+ }, z.core.$strip>>>>;
245
+ 'legalStatuses.REGISTERED.createdByRole': z.ZodOptional<z.ZodOptional<z.ZodObject<{
246
+ type: z.ZodLiteral<"anyOf">;
247
+ terms: z.ZodArray<z.ZodString>;
248
+ }, z.core.$strip>>>;
545
249
  'legalStatuses.REGISTERED.registrationNumber': z.ZodOptional<z.ZodOptional<z.ZodObject<{
546
250
  type: z.ZodLiteral<"exact">;
547
251
  term: z.ZodString;
548
- }, "strip", z.ZodTypeAny, {
549
- type: "exact";
550
- term: string;
551
- }, {
552
- type: "exact";
553
- term: string;
554
- }>>>;
555
- createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
252
+ }, z.core.$strip>>>;
253
+ createdAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
556
254
  type: z.ZodLiteral<"within">;
557
255
  location: z.ZodString;
558
- }, "strip", z.ZodTypeAny, {
559
- type: "within";
560
- location: string;
561
- }, {
562
- type: "within";
563
- location: string;
564
- }>, z.ZodObject<{
256
+ }, z.core.$strip>, z.ZodObject<{
565
257
  type: z.ZodLiteral<"exact">;
566
258
  term: z.ZodString;
567
- }, "strip", z.ZodTypeAny, {
568
- type: "exact";
569
- term: string;
570
- }, {
571
- type: "exact";
572
- term: string;
573
- }>]>>>;
574
- updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodObject<{
259
+ }, z.core.$strip>]>>>;
260
+ updatedAtLocation: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
575
261
  type: z.ZodLiteral<"within">;
576
262
  location: z.ZodString;
577
- }, "strip", z.ZodTypeAny, {
578
- type: "within";
579
- location: string;
580
- }, {
581
- type: "within";
582
- location: string;
583
- }>, z.ZodObject<{
263
+ }, z.core.$strip>, z.ZodObject<{
584
264
  type: z.ZodLiteral<"exact">;
585
265
  term: z.ZodString;
586
- }, "strip", z.ZodTypeAny, {
587
- type: "exact";
588
- term: string;
589
- }, {
590
- type: "exact";
591
- term: string;
592
- }>]>>>;
266
+ }, z.core.$strip>]>>>;
593
267
  assignedTo: z.ZodOptional<z.ZodOptional<z.ZodObject<{
594
268
  type: z.ZodLiteral<"exact">;
595
269
  term: z.ZodString;
596
- }, "strip", z.ZodTypeAny, {
597
- type: "exact";
598
- term: string;
599
- }, {
600
- type: "exact";
601
- term: string;
602
- }>>>;
270
+ }, z.core.$strip>>>;
603
271
  createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
604
272
  type: z.ZodLiteral<"exact">;
605
- term: z.ZodEnum<["user", "system"]>;
606
- }, "strip", z.ZodTypeAny, {
607
- type: "exact";
608
- term: "system" | "user";
609
- }, {
610
- type: "exact";
611
- term: "system" | "user";
612
- }>>>;
273
+ term: z.ZodEnum<{
274
+ user: "user";
275
+ system: "system";
276
+ }>;
277
+ }, z.core.$strip>>>;
613
278
  updatedByUserRole: z.ZodOptional<z.ZodOptional<z.ZodObject<{
614
279
  type: z.ZodLiteral<"exact">;
615
280
  term: z.ZodString;
616
- }, "strip", z.ZodTypeAny, {
617
- type: "exact";
618
- term: string;
619
- }, {
620
- type: "exact";
621
- term: string;
622
- }>>>;
281
+ }, z.core.$strip>>>;
623
282
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
624
283
  type: z.ZodLiteral<"exact">;
625
284
  term: z.ZodString;
626
- }, "strip", z.ZodTypeAny, {
627
- type: "exact";
628
- term: string;
629
- }, {
630
- type: "exact";
631
- term: string;
632
- }>>>;
285
+ }, z.core.$strip>>>;
633
286
  updatedBy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
634
287
  type: z.ZodLiteral<"exact">;
635
288
  term: z.ZodString;
636
- }, "strip", z.ZodTypeAny, {
637
- type: "exact";
638
- term: string;
639
- }, {
640
- type: "exact";
641
- term: string;
642
- }>>>;
289
+ }, z.core.$strip>>>;
643
290
  trackingId: z.ZodOptional<z.ZodOptional<z.ZodObject<{
644
291
  type: z.ZodLiteral<"exact">;
645
292
  term: z.ZodString;
646
- }, "strip", z.ZodTypeAny, {
647
- type: "exact";
648
- term: string;
649
- }, {
650
- type: "exact";
651
- term: string;
652
- }>>>;
293
+ }, z.core.$strip>>>;
653
294
  flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
654
- anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
655
- readonly PENDING_CERTIFICATION: "pending-certification";
295
+ anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
656
296
  readonly INCOMPLETE: "incomplete";
657
297
  readonly REJECTED: "rejected";
658
298
  readonly CORRECTION_REQUESTED: "correction-requested";
659
299
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
660
- }>]>, "many">>;
661
- noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNativeEnum<{
662
- readonly PENDING_CERTIFICATION: "pending-certification";
300
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
301
+ }>]>, z.ZodString]>>>;
302
+ noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
663
303
  readonly INCOMPLETE: "incomplete";
664
304
  readonly REJECTED: "rejected";
665
305
  readonly CORRECTION_REQUESTED: "correction-requested";
666
306
  readonly POTENTIAL_DUPLICATE: "potential-duplicate";
667
- }>]>, "many">>;
668
- }, "strip", z.ZodTypeAny, {
669
- anyOf?: string[] | undefined;
670
- noneOf?: string[] | undefined;
671
- }, {
672
- anyOf?: string[] | undefined;
673
- noneOf?: string[] | undefined;
674
- }>>>;
675
- data: z.ZodOptional<z.ZodType<any, z.ZodTypeDef, any>>;
676
- }, "strip", z.ZodTypeAny, {
677
- id?: string | undefined;
678
- status?: {
679
- type: "exact";
680
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
681
- } | {
682
- type: "anyOf";
683
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
684
- } | undefined;
685
- data?: any;
686
- createdByUserType?: {
687
- type: "exact";
688
- term: "system" | "user";
689
- } | undefined;
690
- createdAt?: {
691
- type: "range";
692
- gte: string;
693
- lte: string;
694
- } | {
695
- type: "exact";
696
- term: string;
697
- } | {
698
- type: "timePeriod";
699
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
700
- } | undefined;
701
- createdBy?: {
702
- type: "exact";
703
- term: string;
704
- } | undefined;
705
- createdAtLocation?: {
706
- type: "exact";
707
- term: string;
708
- } | {
709
- type: "within";
710
- location: string;
711
- } | undefined;
712
- assignedTo?: {
713
- type: "exact";
714
- term: string;
715
- } | undefined;
716
- trackingId?: {
717
- type: "exact";
718
- term: string;
719
- } | undefined;
720
- updatedAt?: {
721
- type: "range";
722
- gte: string;
723
- lte: string;
724
- } | {
725
- type: "exact";
726
- term: string;
727
- } | {
728
- type: "timePeriod";
729
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
730
- } | undefined;
731
- eventType?: string | undefined;
732
- 'legalStatuses.REGISTERED.acceptedAt'?: {
733
- type: "range";
734
- gte: string;
735
- lte: string;
736
- } | {
737
- type: "exact";
738
- term: string;
739
- } | {
740
- type: "timePeriod";
741
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
742
- } | undefined;
743
- 'legalStatuses.REGISTERED.createdAtLocation'?: {
744
- type: "exact";
745
- term: string;
746
- } | {
747
- type: "within";
748
- location: string;
749
- } | undefined;
750
- 'legalStatuses.REGISTERED.registrationNumber'?: {
751
- type: "exact";
752
- term: string;
753
- } | undefined;
754
- updatedByUserRole?: {
755
- type: "exact";
756
- term: string;
757
- } | undefined;
758
- updatedAtLocation?: {
759
- type: "exact";
760
- term: string;
761
- } | {
762
- type: "within";
763
- location: string;
764
- } | undefined;
765
- updatedBy?: {
766
- type: "exact";
767
- term: string;
768
- } | undefined;
769
- flags?: {
770
- anyOf?: string[] | undefined;
771
- noneOf?: string[] | undefined;
772
- } | undefined;
773
- 'legalStatuses.DECLARED.createdAtLocation'?: {
774
- type: "exact";
775
- term: string;
776
- } | {
777
- type: "within";
778
- location: string;
779
- } | undefined;
780
- }, {
781
- id?: string | undefined;
782
- status?: {
783
- type: "exact";
784
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
785
- } | {
786
- type: "anyOf";
787
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
788
- } | undefined;
789
- data?: any;
790
- createdByUserType?: {
791
- type: "exact";
792
- term: "system" | "user";
793
- } | undefined;
794
- createdAt?: {
795
- type: "range";
796
- gte: string;
797
- lte: string;
798
- } | {
799
- type: "exact";
800
- term: string;
801
- } | {
802
- type: "timePeriod";
803
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
804
- } | undefined;
805
- createdBy?: {
806
- type: "exact";
807
- term: string;
808
- } | undefined;
809
- createdAtLocation?: {
810
- type: "exact";
811
- term: string;
812
- } | {
813
- type: "within";
814
- location: string;
815
- } | undefined;
816
- assignedTo?: {
817
- type: "exact";
818
- term: string;
819
- } | undefined;
820
- trackingId?: {
821
- type: "exact";
822
- term: string;
823
- } | undefined;
824
- updatedAt?: {
825
- type: "range";
826
- gte: string;
827
- lte: string;
828
- } | {
829
- type: "exact";
830
- term: string;
831
- } | {
832
- type: "timePeriod";
833
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
834
- } | undefined;
835
- eventType?: string | undefined;
836
- 'legalStatuses.REGISTERED.acceptedAt'?: {
837
- type: "range";
838
- gte: string;
839
- lte: string;
840
- } | {
841
- type: "exact";
842
- term: string;
843
- } | {
844
- type: "timePeriod";
845
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
846
- } | undefined;
847
- 'legalStatuses.REGISTERED.createdAtLocation'?: {
848
- type: "exact";
849
- term: string;
850
- } | {
851
- type: "within";
852
- location: string;
853
- } | undefined;
854
- 'legalStatuses.REGISTERED.registrationNumber'?: {
855
- type: "exact";
856
- term: string;
857
- } | undefined;
858
- updatedByUserRole?: {
859
- type: "exact";
860
- term: string;
861
- } | undefined;
862
- updatedAtLocation?: {
863
- type: "exact";
864
- term: string;
865
- } | {
866
- type: "within";
867
- location: string;
868
- } | undefined;
869
- updatedBy?: {
870
- type: "exact";
871
- term: string;
872
- } | undefined;
873
- flags?: {
874
- anyOf?: string[] | undefined;
875
- noneOf?: string[] | undefined;
876
- } | undefined;
877
- 'legalStatuses.DECLARED.createdAtLocation'?: {
878
- type: "exact";
879
- term: string;
880
- } | {
881
- type: "within";
882
- location: string;
883
- } | undefined;
884
- }>, {
885
- id?: string | undefined;
886
- status?: {
887
- type: "exact";
888
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
889
- } | {
890
- type: "anyOf";
891
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
892
- } | undefined;
893
- data?: any;
894
- createdByUserType?: {
895
- type: "exact";
896
- term: "system" | "user";
897
- } | undefined;
898
- createdAt?: {
899
- type: "range";
900
- gte: string;
901
- lte: string;
902
- } | {
903
- type: "exact";
904
- term: string;
905
- } | {
906
- type: "timePeriod";
907
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
908
- } | undefined;
909
- createdBy?: {
910
- type: "exact";
911
- term: string;
912
- } | undefined;
913
- createdAtLocation?: {
914
- type: "exact";
915
- term: string;
916
- } | {
917
- type: "within";
918
- location: string;
919
- } | undefined;
920
- assignedTo?: {
921
- type: "exact";
922
- term: string;
923
- } | undefined;
924
- trackingId?: {
925
- type: "exact";
926
- term: string;
927
- } | undefined;
928
- updatedAt?: {
929
- type: "range";
930
- gte: string;
931
- lte: string;
932
- } | {
933
- type: "exact";
934
- term: string;
935
- } | {
936
- type: "timePeriod";
937
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
938
- } | undefined;
939
- eventType?: string | undefined;
940
- 'legalStatuses.REGISTERED.acceptedAt'?: {
941
- type: "range";
942
- gte: string;
943
- lte: string;
944
- } | {
945
- type: "exact";
946
- term: string;
947
- } | {
948
- type: "timePeriod";
949
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
950
- } | undefined;
951
- 'legalStatuses.REGISTERED.createdAtLocation'?: {
952
- type: "exact";
953
- term: string;
954
- } | {
955
- type: "within";
956
- location: string;
957
- } | undefined;
958
- 'legalStatuses.REGISTERED.registrationNumber'?: {
959
- type: "exact";
960
- term: string;
961
- } | undefined;
962
- updatedByUserRole?: {
963
- type: "exact";
964
- term: string;
965
- } | undefined;
966
- updatedAtLocation?: {
967
- type: "exact";
968
- term: string;
969
- } | {
970
- type: "within";
971
- location: string;
972
- } | undefined;
973
- updatedBy?: {
974
- type: "exact";
975
- term: string;
976
- } | undefined;
977
- flags?: {
978
- anyOf?: string[] | undefined;
979
- noneOf?: string[] | undefined;
980
- } | undefined;
981
- 'legalStatuses.DECLARED.createdAtLocation'?: {
982
- type: "exact";
983
- term: string;
984
- } | {
985
- type: "within";
986
- location: string;
987
- } | undefined;
988
- }, {
989
- id?: string | undefined;
990
- status?: {
991
- type: "exact";
992
- term: "ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED";
993
- } | {
994
- type: "anyOf";
995
- terms: ("ARCHIVED" | "DECLARED" | "REGISTERED" | "VALIDATED" | "CREATED" | "NOTIFIED")[];
996
- } | undefined;
997
- data?: any;
998
- createdByUserType?: {
999
- type: "exact";
1000
- term: "system" | "user";
1001
- } | undefined;
1002
- createdAt?: {
1003
- type: "range";
1004
- gte: string;
1005
- lte: string;
1006
- } | {
1007
- type: "exact";
1008
- term: string;
1009
- } | {
1010
- type: "timePeriod";
1011
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1012
- } | undefined;
1013
- createdBy?: {
1014
- type: "exact";
1015
- term: string;
1016
- } | undefined;
1017
- createdAtLocation?: {
1018
- type: "exact";
1019
- term: string;
1020
- } | {
1021
- type: "within";
1022
- location: string;
1023
- } | undefined;
1024
- assignedTo?: {
1025
- type: "exact";
1026
- term: string;
1027
- } | undefined;
1028
- trackingId?: {
1029
- type: "exact";
1030
- term: string;
1031
- } | undefined;
1032
- updatedAt?: {
1033
- type: "range";
1034
- gte: string;
1035
- lte: string;
1036
- } | {
1037
- type: "exact";
1038
- term: string;
1039
- } | {
1040
- type: "timePeriod";
1041
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1042
- } | undefined;
1043
- eventType?: string | undefined;
1044
- 'legalStatuses.REGISTERED.acceptedAt'?: {
1045
- type: "range";
1046
- gte: string;
1047
- lte: string;
1048
- } | {
1049
- type: "exact";
1050
- term: string;
1051
- } | {
1052
- type: "timePeriod";
1053
- term: "last7Days" | "last30Days" | "last90Days" | "last365Days";
1054
- } | undefined;
1055
- 'legalStatuses.REGISTERED.createdAtLocation'?: {
1056
- type: "exact";
1057
- term: string;
1058
- } | {
1059
- type: "within";
1060
- location: string;
1061
- } | undefined;
1062
- 'legalStatuses.REGISTERED.registrationNumber'?: {
1063
- type: "exact";
1064
- term: string;
1065
- } | undefined;
1066
- updatedByUserRole?: {
1067
- type: "exact";
1068
- term: string;
1069
- } | undefined;
1070
- updatedAtLocation?: {
1071
- type: "exact";
1072
- term: string;
1073
- } | {
1074
- type: "within";
1075
- location: string;
1076
- } | undefined;
1077
- updatedBy?: {
1078
- type: "exact";
1079
- term: string;
1080
- } | undefined;
1081
- flags?: {
1082
- anyOf?: string[] | undefined;
1083
- noneOf?: string[] | undefined;
1084
- } | undefined;
1085
- 'legalStatuses.DECLARED.createdAtLocation'?: {
1086
- type: "exact";
1087
- term: string;
1088
- } | {
1089
- type: "within";
1090
- location: string;
1091
- } | undefined;
1092
- }>;
1093
- export declare const QueryType: ZodType;
307
+ readonly EDIT_IN_PROGRESS: "edit-in-progress";
308
+ }>]>, z.ZodString]>>>;
309
+ }, z.core.$strip>>>;
310
+ data: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
311
+ }, z.core.$strip>;
312
+ export type QueryTypeShape = {
313
+ type: 'and' | 'or';
314
+ clauses: Array<z.infer<typeof QueryExpression> | QueryTypeShape>;
315
+ };
316
+ export declare const QueryType: z.ZodType<QueryTypeShape>;
1094
317
  export declare const SearchQuery: z.ZodObject<{
1095
- query: z.ZodEffects<z.ZodType<any, z.ZodTypeDef, any>, any, unknown>;
318
+ query: z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>>;
1096
319
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1097
320
  offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1098
- sort: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
321
+ sort: z.ZodOptional<z.ZodPipe<z.ZodTransform<any, unknown>, z.ZodArray<z.ZodObject<{
1099
322
  field: z.ZodString;
1100
- direction: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
1101
- }, "strip", z.ZodTypeAny, {
1102
- field: string;
1103
- direction: "asc" | "desc";
1104
- }, {
1105
- field: string;
1106
- direction?: "asc" | "desc" | undefined;
1107
- }>, "many">, {
1108
- field: string;
1109
- direction: "asc" | "desc";
1110
- }[], unknown>>;
1111
- }, "strip", z.ZodTypeAny, {
1112
- limit: number;
1113
- offset: number;
1114
- sort?: {
1115
- field: string;
1116
- direction: "asc" | "desc";
1117
- }[] | undefined;
1118
- query?: any;
1119
- }, {
1120
- sort?: unknown;
1121
- query?: unknown;
1122
- limit?: number | undefined;
1123
- offset?: number | undefined;
1124
- }>;
323
+ direction: z.ZodDefault<z.ZodEnum<{
324
+ asc: "asc";
325
+ desc: "desc";
326
+ }>>;
327
+ }, z.core.$strip>>>>;
328
+ }, z.core.$strip>;
1125
329
  export type SearchQuery = z.infer<typeof SearchQuery>;
1126
330
  export type QueryType = z.infer<typeof QueryType>;
1127
331
  export type QueryExpression = z.infer<typeof QueryExpression>;
1128
- export declare const SearchScopeAccessLevels: {
1129
- readonly MY_JURISDICTION: "my-jurisdiction";
1130
- readonly ALL: "all";
1131
- };
1132
- export type SearchScopeAccessLevels = (typeof SearchScopeAccessLevels)[keyof typeof SearchScopeAccessLevels];
1133
332
  export {};
1134
333
  //# sourceMappingURL=EventIndex.d.ts.map