@opencrvs/toolkit 2.0.1 → 2.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -12
- package/build.sh +14 -5
- package/create-countryconfig/index.js +313 -129
- package/create-countryconfig/node_modules/.bin/degit +21 -0
- package/create-countryconfig/package.json +5 -2
- package/dist/application-config/index.js +367 -278
- package/dist/authentication/index.d.ts +67 -0
- package/dist/authentication/index.d.ts.map +1 -0
- package/dist/authentication/index.js +754 -0
- package/dist/cli.js +4320 -4790
- package/dist/commons/api/router.d.ts +4120 -2982
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +32 -323
- package/dist/commons/conditionals/validate.d.ts +16 -5
- package/dist/commons/events/ActionConfig.d.ts +302 -67
- package/dist/commons/events/ActionDocument.d.ts +159 -121
- package/dist/commons/events/ActionInput.d.ts +30 -10
- package/dist/commons/events/ActionStatus.d.ts +14 -0
- package/dist/commons/events/ActionType.d.ts +63 -58
- package/dist/commons/events/AdvancedSearchConfig.d.ts +537 -495
- package/dist/commons/events/AuditLog.d.ts +189 -40
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/Conditional.d.ts +3 -3
- package/dist/commons/events/CountryConfigQueryInput.d.ts +603 -561
- package/dist/commons/events/Draft.d.ts +38 -36
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +8 -3
- package/dist/commons/events/EventDocument.d.ts +537 -47
- package/dist/commons/events/EventIndex.d.ts +61 -59
- package/dist/commons/events/EventMetadata.d.ts +59 -43
- package/dist/commons/events/EventStatus.d.ts +19 -0
- package/dist/commons/events/FieldConfig.d.ts +431 -380
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +86 -86
- package/dist/commons/events/FieldValue.d.ts +14 -14
- package/dist/commons/events/Flag.d.ts +57 -15
- package/dist/commons/events/PlainDate.d.ts +8 -0
- package/dist/commons/events/SummaryConfig.d.ts +249 -0
- package/dist/commons/events/TemplateConfig.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
- package/dist/commons/events/WorkqueueConfig.d.ts +835 -790
- package/dist/commons/events/deduplication.d.ts +1 -1
- package/dist/commons/events/event.d.ts +14 -2
- package/dist/commons/events/field.d.ts +69 -198
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/locationPayloads.d.ts +95 -0
- package/dist/commons/events/locations.d.ts +248 -14
- package/dist/commons/events/mocks.test.utils.d.ts +48 -4
- package/dist/commons/events/scopes.d.ts +5 -4
- package/dist/commons/events/state/index.d.ts +23 -15
- package/dist/commons/events/state/utils.d.ts +15 -6
- package/dist/commons/events/test.utils.d.ts +68 -42
- package/dist/commons/events/utils.d.ts +143 -110
- package/dist/commons/notification/UserNotifications.d.ts +38 -18
- package/dist/commons/notification/dispatch.d.ts +10 -0
- package/dist/commons/notification/index.d.ts +1 -0
- package/dist/conditionals/index.js +340 -63
- package/dist/csv.d.ts +25 -0
- package/dist/csv.d.ts.map +1 -0
- package/dist/csv.js +120 -0
- package/dist/environment/custom-types.d.ts +33 -0
- package/dist/environment/custom-types.d.ts.map +1 -0
- package/dist/environment/custom-types.js +12 -0
- package/dist/environment/derived-variables.d.ts +122 -0
- package/dist/environment/derived-variables.d.ts.map +1 -0
- package/dist/environment/derived-variables.js +155 -0
- package/dist/environment/editor-questions.d.ts +4 -0
- package/dist/environment/editor-questions.d.ts.map +1 -0
- package/dist/environment/editor-questions.js +67 -0
- package/dist/environment/git.d.ts +5 -0
- package/dist/environment/git.d.ts.map +1 -0
- package/dist/environment/git.js +38 -0
- package/dist/environment/github.d.ts +26 -0
- package/dist/environment/github.d.ts.map +1 -0
- package/dist/environment/github.js +247 -0
- package/dist/environment/index.d.ts +6 -0
- package/dist/environment/index.d.ts.map +1 -0
- package/dist/environment/index.js +81 -0
- package/dist/environment/logger.d.ts +18 -0
- package/dist/environment/logger.d.ts.map +1 -0
- package/dist/environment/logger.js +25 -0
- package/dist/environment/manage-users.d.ts +11 -0
- package/dist/environment/manage-users.d.ts.map +1 -0
- package/dist/environment/manage-users.js +507 -0
- package/dist/environment/paths.d.ts +7 -0
- package/dist/environment/paths.d.ts.map +1 -0
- package/dist/environment/paths.js +72 -0
- package/dist/environment/questions-helper.d.ts +15 -0
- package/dist/environment/questions-helper.d.ts.map +1 -0
- package/dist/environment/questions-helper.js +70 -0
- package/dist/environment/questions.d.ts +200 -0
- package/dist/environment/questions.d.ts.map +1 -0
- package/dist/environment/questions.js +418 -0
- package/dist/environment/setup-environment.d.ts +2 -0
- package/dist/environment/setup-environment.d.ts.map +1 -0
- package/dist/environment/setup-environment.js +793 -0
- package/dist/environment/ssh-keygen.d.ts +5 -0
- package/dist/environment/ssh-keygen.d.ts.map +1 -0
- package/dist/environment/ssh-keygen.js +21 -0
- package/dist/environment/swarm-to-k8s.d.ts +2 -0
- package/dist/environment/swarm-to-k8s.d.ts.map +1 -0
- package/dist/environment/swarm-to-k8s.js +183 -0
- package/dist/environment/templates.d.ts +26 -0
- package/dist/environment/templates.d.ts.map +1 -0
- package/dist/environment/templates.js +159 -0
- package/dist/environment/update-workflows.d.ts +2 -0
- package/dist/environment/update-workflows.d.ts.map +1 -0
- package/dist/environment/update-workflows.js +195 -0
- package/dist/environment/upgrade.d.ts +2 -0
- package/dist/environment/upgrade.d.ts.map +1 -0
- package/dist/environment/upgrade.js +82 -0
- package/dist/environment/users.d.ts +2 -0
- package/dist/environment/users.d.ts.map +1 -0
- package/dist/environment/users.js +120 -0
- package/dist/environment/utils.d.ts +6 -0
- package/dist/environment/utils.d.ts.map +1 -0
- package/dist/environment/utils.js +83 -0
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +8107 -7388
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +2 -2
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.js +2 -2
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +17 -7
- package/dist/migrations/v2.0/index.js +88 -5143
- package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
- package/dist/migrations/v2.0/remove-hearth-migrations.js +17 -7
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts +3 -0
- package/dist/migrations/v2.1/add-explicit-correction-flags.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-explicit-correction-flags.js +234 -0
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts +3 -0
- package/dist/migrations/v2.1/add-recovery-link-notifications.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-recovery-link-notifications.js +511 -0
- package/dist/migrations/v2.1/add-translations.d.ts +9 -0
- package/dist/migrations/v2.1/add-translations.d.ts.map +1 -0
- package/dist/migrations/v2.1/add-translations.js +213 -0
- package/dist/migrations/v2.1/enable-telemetry.d.ts +3 -0
- package/dist/migrations/v2.1/enable-telemetry.d.ts.map +1 -0
- package/dist/migrations/v2.1/enable-telemetry.js +438 -0
- package/dist/migrations/v2.1/index.d.ts +6 -0
- package/dist/migrations/v2.1/index.d.ts.map +1 -0
- package/dist/migrations/v2.1/index.js +1276 -0
- package/dist/notification/index.js +2011 -1446
- package/dist/scopes/index.d.ts +550 -161
- package/dist/scopes/index.js +341 -63
- package/dist/telemetry/index.d.ts +45 -0
- package/dist/telemetry/index.d.ts.map +1 -0
- package/dist/telemetry/index.js +39 -0
- package/dist/templates/charts-values/dependencies/values.override.yaml +4 -0
- package/dist/templates/charts-values/dependencies/values.yaml +82 -0
- package/dist/templates/charts-values/opencrvs-services/values.override.yaml +4 -0
- package/dist/templates/charts-values/opencrvs-services/values.yaml +78 -0
- package/dist/templates/charts-values/opentelemetry/values.yaml +95 -0
- package/dist/templates/charts-values/traefik/values.override.yaml +4 -0
- package/dist/templates/charts-values/traefik/values.yaml +129 -0
- package/dist/templates/inventory/inventory.template.yml +98 -0
- package/dist/translations/check.d.ts +21 -0
- package/dist/translations/check.d.ts.map +1 -0
- package/dist/translations/check.js +132 -0
- package/dist/verify/endpoints.d.ts.map +1 -1
- package/dist/verify/endpoints.js +26 -26
- package/opencrvs-toolkit-2.1.0-beta.2.tgz +0 -0
- package/package.json +25 -6
- package/tsconfig.build.json +11 -0
- package/tsconfig.build.tsbuildinfo +1 -0
- package/tsconfig.json +3 -0
- package/opencrvs-toolkit-2.0.1.tgz +0 -0
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1,22 +1,34 @@
|
|
|
1
1
|
import { z, ZodType } from 'zod/v4';
|
|
2
|
+
export { ContainsFlags } from './Flag';
|
|
2
3
|
export declare const EventIndex: z.ZodObject<{
|
|
3
4
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
4
5
|
type: z.ZodString;
|
|
5
6
|
status: z.ZodEnum<{
|
|
7
|
+
ARCHIVED: "ARCHIVED";
|
|
6
8
|
CREATED: "CREATED";
|
|
7
|
-
NOTIFIED: "NOTIFIED";
|
|
8
9
|
DECLARED: "DECLARED";
|
|
10
|
+
NOTIFIED: "NOTIFIED";
|
|
9
11
|
REGISTERED: "REGISTERED";
|
|
10
|
-
ARCHIVED: "ARCHIVED";
|
|
11
12
|
}>;
|
|
12
13
|
legalStatuses: z.ZodObject<{
|
|
13
|
-
|
|
14
|
+
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
14
15
|
createdAt: z.ZodISODateTime;
|
|
15
16
|
createdBy: z.ZodString;
|
|
16
17
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
17
18
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
19
|
+
system: "system";
|
|
18
20
|
user: "user";
|
|
21
|
+
}>>>;
|
|
22
|
+
acceptedAt: z.ZodISODateTime;
|
|
23
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>>>;
|
|
25
|
+
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
|
+
createdAt: z.ZodISODateTime;
|
|
27
|
+
createdBy: z.ZodString;
|
|
28
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
29
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
19
30
|
system: "system";
|
|
31
|
+
user: "user";
|
|
20
32
|
}>>>;
|
|
21
33
|
acceptedAt: z.ZodISODateTime;
|
|
22
34
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
@@ -26,8 +38,8 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
26
38
|
createdBy: z.ZodString;
|
|
27
39
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
28
40
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
29
|
-
user: "user";
|
|
30
41
|
system: "system";
|
|
42
|
+
user: "user";
|
|
31
43
|
}>>>;
|
|
32
44
|
acceptedAt: z.ZodISODateTime;
|
|
33
45
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
@@ -39,8 +51,8 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
39
51
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
40
52
|
createdBy: z.ZodString;
|
|
41
53
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
42
|
-
user: "user";
|
|
43
54
|
system: "system";
|
|
55
|
+
user: "user";
|
|
44
56
|
}>>>;
|
|
45
57
|
updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
58
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
@@ -54,13 +66,13 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
54
66
|
trackingId: z.ZodString;
|
|
55
67
|
}, z.core.$strip>>;
|
|
56
68
|
flags: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
57
|
-
readonly INCOMPLETE:
|
|
58
|
-
readonly REJECTED:
|
|
59
|
-
readonly CORRECTION_REQUESTED:
|
|
60
|
-
readonly POTENTIAL_DUPLICATE:
|
|
61
|
-
readonly EDIT_IN_PROGRESS:
|
|
69
|
+
readonly INCOMPLETE: 'incomplete';
|
|
70
|
+
readonly REJECTED: 'rejected';
|
|
71
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
72
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
73
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
62
74
|
}>]>, z.ZodString]>>;
|
|
63
|
-
declaration: z.ZodRecord<z.ZodString,
|
|
75
|
+
declaration: z.ZodRecord<z.ZodString, ZodType<import("./FieldValue").FieldValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldValue, unknown>>>;
|
|
64
76
|
}, z.core.$strip>;
|
|
65
77
|
export declare const EventSearchIndex: z.ZodIntersection<z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodObject<{
|
|
66
78
|
type: z.ZodString;
|
|
@@ -79,18 +91,18 @@ export type Exact = z.infer<typeof Exact>;
|
|
|
79
91
|
export declare const ExactStatus: z.ZodObject<{
|
|
80
92
|
type: z.ZodLiteral<"exact">;
|
|
81
93
|
term: z.ZodEnum<{
|
|
94
|
+
ARCHIVED: "ARCHIVED";
|
|
82
95
|
CREATED: "CREATED";
|
|
83
|
-
NOTIFIED: "NOTIFIED";
|
|
84
96
|
DECLARED: "DECLARED";
|
|
97
|
+
NOTIFIED: "NOTIFIED";
|
|
85
98
|
REGISTERED: "REGISTERED";
|
|
86
|
-
ARCHIVED: "ARCHIVED";
|
|
87
99
|
}>;
|
|
88
100
|
}, z.core.$strip>;
|
|
89
101
|
export declare const ExactUserType: z.ZodObject<{
|
|
90
102
|
type: z.ZodLiteral<"exact">;
|
|
91
103
|
term: z.ZodEnum<{
|
|
92
|
-
user: "user";
|
|
93
104
|
system: "system";
|
|
105
|
+
user: "user";
|
|
94
106
|
}>;
|
|
95
107
|
}, z.core.$strip>;
|
|
96
108
|
export declare const AnyOf: z.ZodObject<{
|
|
@@ -100,11 +112,11 @@ export declare const AnyOf: z.ZodObject<{
|
|
|
100
112
|
export declare const AnyOfStatus: z.ZodObject<{
|
|
101
113
|
type: z.ZodLiteral<"anyOf">;
|
|
102
114
|
terms: z.ZodArray<z.ZodEnum<{
|
|
115
|
+
ARCHIVED: "ARCHIVED";
|
|
103
116
|
CREATED: "CREATED";
|
|
104
|
-
NOTIFIED: "NOTIFIED";
|
|
105
117
|
DECLARED: "DECLARED";
|
|
118
|
+
NOTIFIED: "NOTIFIED";
|
|
106
119
|
REGISTERED: "REGISTERED";
|
|
107
|
-
ARCHIVED: "ARCHIVED";
|
|
108
120
|
}>>;
|
|
109
121
|
}, z.core.$strip>;
|
|
110
122
|
export declare const Range: z.ZodObject<{
|
|
@@ -112,22 +124,6 @@ export declare const Range: z.ZodObject<{
|
|
|
112
124
|
gte: z.ZodString;
|
|
113
125
|
lte: z.ZodString;
|
|
114
126
|
}, z.core.$strip>;
|
|
115
|
-
export declare const ContainsFlags: z.ZodObject<{
|
|
116
|
-
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
117
|
-
readonly INCOMPLETE: "incomplete";
|
|
118
|
-
readonly REJECTED: "rejected";
|
|
119
|
-
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
120
|
-
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
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<{
|
|
124
|
-
readonly INCOMPLETE: "incomplete";
|
|
125
|
-
readonly REJECTED: "rejected";
|
|
126
|
-
readonly CORRECTION_REQUESTED: "correction-requested";
|
|
127
|
-
readonly POTENTIAL_DUPLICATE: "potential-duplicate";
|
|
128
|
-
readonly EDIT_IN_PROGRESS: "edit-in-progress";
|
|
129
|
-
}>]>, z.ZodString]>>>;
|
|
130
|
-
}, z.core.$strip>;
|
|
131
127
|
export declare const Within: z.ZodObject<{
|
|
132
128
|
type: z.ZodLiteral<"within">;
|
|
133
129
|
location: z.ZodString;
|
|
@@ -147,10 +143,10 @@ export declare const DateCondition: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
147
143
|
}, z.core.$strip>, z.ZodObject<{
|
|
148
144
|
type: z.ZodLiteral<"timePeriod">;
|
|
149
145
|
term: z.ZodEnum<{
|
|
150
|
-
last7Days: "last7Days";
|
|
151
146
|
last30Days: "last30Days";
|
|
152
|
-
last90Days: "last90Days";
|
|
153
147
|
last365Days: "last365Days";
|
|
148
|
+
last7Days: "last7Days";
|
|
149
|
+
last90Days: "last90Days";
|
|
154
150
|
}>;
|
|
155
151
|
}, z.core.$strip>]>;
|
|
156
152
|
export type DateCondition = z.infer<typeof DateCondition>;
|
|
@@ -166,20 +162,20 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
166
162
|
status: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
167
163
|
type: z.ZodLiteral<"anyOf">;
|
|
168
164
|
terms: z.ZodArray<z.ZodEnum<{
|
|
165
|
+
ARCHIVED: "ARCHIVED";
|
|
169
166
|
CREATED: "CREATED";
|
|
170
|
-
NOTIFIED: "NOTIFIED";
|
|
171
167
|
DECLARED: "DECLARED";
|
|
168
|
+
NOTIFIED: "NOTIFIED";
|
|
172
169
|
REGISTERED: "REGISTERED";
|
|
173
|
-
ARCHIVED: "ARCHIVED";
|
|
174
170
|
}>>;
|
|
175
171
|
}, z.core.$strip>, z.ZodObject<{
|
|
176
172
|
type: z.ZodLiteral<"exact">;
|
|
177
173
|
term: z.ZodEnum<{
|
|
174
|
+
ARCHIVED: "ARCHIVED";
|
|
178
175
|
CREATED: "CREATED";
|
|
179
|
-
NOTIFIED: "NOTIFIED";
|
|
180
176
|
DECLARED: "DECLARED";
|
|
177
|
+
NOTIFIED: "NOTIFIED";
|
|
181
178
|
REGISTERED: "REGISTERED";
|
|
182
|
-
ARCHIVED: "ARCHIVED";
|
|
183
179
|
}>;
|
|
184
180
|
}, z.core.$strip>]>>>;
|
|
185
181
|
createdAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -192,10 +188,10 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
192
188
|
}, z.core.$strip>, z.ZodObject<{
|
|
193
189
|
type: z.ZodLiteral<"timePeriod">;
|
|
194
190
|
term: z.ZodEnum<{
|
|
195
|
-
last7Days: "last7Days";
|
|
196
191
|
last30Days: "last30Days";
|
|
197
|
-
last90Days: "last90Days";
|
|
198
192
|
last365Days: "last365Days";
|
|
193
|
+
last7Days: "last7Days";
|
|
194
|
+
last90Days: "last90Days";
|
|
199
195
|
}>;
|
|
200
196
|
}, z.core.$strip>]>>>;
|
|
201
197
|
updatedAt: z.ZodOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -208,10 +204,10 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
208
204
|
}, z.core.$strip>, z.ZodObject<{
|
|
209
205
|
type: z.ZodLiteral<"timePeriod">;
|
|
210
206
|
term: z.ZodEnum<{
|
|
211
|
-
last7Days: "last7Days";
|
|
212
207
|
last30Days: "last30Days";
|
|
213
|
-
last90Days: "last90Days";
|
|
214
208
|
last365Days: "last365Days";
|
|
209
|
+
last7Days: "last7Days";
|
|
210
|
+
last90Days: "last90Days";
|
|
215
211
|
}>;
|
|
216
212
|
}, z.core.$strip>]>>>;
|
|
217
213
|
'legalStatuses.DECLARED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -232,10 +228,10 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
232
228
|
}, z.core.$strip>, z.ZodObject<{
|
|
233
229
|
type: z.ZodLiteral<"timePeriod">;
|
|
234
230
|
term: z.ZodEnum<{
|
|
235
|
-
last7Days: "last7Days";
|
|
236
231
|
last30Days: "last30Days";
|
|
237
|
-
last90Days: "last90Days";
|
|
238
232
|
last365Days: "last365Days";
|
|
233
|
+
last7Days: "last7Days";
|
|
234
|
+
last90Days: "last90Days";
|
|
239
235
|
}>;
|
|
240
236
|
}, z.core.$strip>]>>>;
|
|
241
237
|
'legalStatuses.REGISTERED.createdAtLocation': z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
@@ -271,8 +267,8 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
271
267
|
createdByUserType: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
272
268
|
type: z.ZodLiteral<"exact">;
|
|
273
269
|
term: z.ZodEnum<{
|
|
274
|
-
user: "user";
|
|
275
270
|
system: "system";
|
|
271
|
+
user: "user";
|
|
276
272
|
}>;
|
|
277
273
|
}, z.core.$strip>>>;
|
|
278
274
|
updatedByUserRole: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
@@ -293,21 +289,28 @@ export declare const QueryExpression: z.ZodObject<{
|
|
|
293
289
|
}, z.core.$strip>>>;
|
|
294
290
|
flags: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
295
291
|
anyOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
296
|
-
readonly INCOMPLETE:
|
|
297
|
-
readonly REJECTED:
|
|
298
|
-
readonly CORRECTION_REQUESTED:
|
|
299
|
-
readonly POTENTIAL_DUPLICATE:
|
|
300
|
-
readonly EDIT_IN_PROGRESS:
|
|
292
|
+
readonly INCOMPLETE: 'incomplete';
|
|
293
|
+
readonly REJECTED: 'rejected';
|
|
294
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
295
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
296
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
301
297
|
}>]>, z.ZodString]>>>;
|
|
302
298
|
noneOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
303
|
-
readonly INCOMPLETE:
|
|
304
|
-
readonly REJECTED:
|
|
305
|
-
readonly CORRECTION_REQUESTED:
|
|
306
|
-
readonly POTENTIAL_DUPLICATE:
|
|
307
|
-
readonly EDIT_IN_PROGRESS:
|
|
299
|
+
readonly INCOMPLETE: 'incomplete';
|
|
300
|
+
readonly REJECTED: 'rejected';
|
|
301
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
302
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
303
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
304
|
+
}>]>, z.ZodString]>>>;
|
|
305
|
+
allOf: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
306
|
+
readonly INCOMPLETE: 'incomplete';
|
|
307
|
+
readonly REJECTED: 'rejected';
|
|
308
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
309
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
310
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
308
311
|
}>]>, z.ZodString]>>>;
|
|
309
312
|
}, z.core.$strip>>>;
|
|
310
|
-
data: z.ZodOptional<
|
|
313
|
+
data: z.ZodOptional<ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
311
314
|
}, z.core.$strip>;
|
|
312
315
|
export type QueryTypeShape = {
|
|
313
316
|
type: 'and' | 'or';
|
|
@@ -315,10 +318,10 @@ export type QueryTypeShape = {
|
|
|
315
318
|
};
|
|
316
319
|
export declare const QueryType: z.ZodType<QueryTypeShape>;
|
|
317
320
|
export declare const SearchQuery: z.ZodObject<{
|
|
318
|
-
query: z.
|
|
321
|
+
query: z.ZodPreprocess<ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>>;
|
|
319
322
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
320
323
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
321
|
-
sort: z.ZodOptional<z.
|
|
324
|
+
sort: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodObject<{
|
|
322
325
|
field: z.ZodString;
|
|
323
326
|
direction: z.ZodDefault<z.ZodEnum<{
|
|
324
327
|
asc: "asc";
|
|
@@ -329,5 +332,4 @@ export declare const SearchQuery: z.ZodObject<{
|
|
|
329
332
|
export type SearchQuery = z.infer<typeof SearchQuery>;
|
|
330
333
|
export type QueryType = z.infer<typeof QueryType>;
|
|
331
334
|
export type QueryExpression = z.infer<typeof QueryExpression>;
|
|
332
|
-
export {};
|
|
333
335
|
//# sourceMappingURL=EventIndex.d.ts.map
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
import { TranslationConfig } from './TranslationConfig';
|
|
3
|
-
|
|
4
|
-
* Event statuses recognized by the system
|
|
5
|
-
*/
|
|
6
|
-
export declare const EventStatus: z.ZodEnum<{
|
|
7
|
-
CREATED: "CREATED";
|
|
8
|
-
NOTIFIED: "NOTIFIED";
|
|
9
|
-
DECLARED: "DECLARED";
|
|
10
|
-
REGISTERED: "REGISTERED";
|
|
11
|
-
ARCHIVED: "ARCHIVED";
|
|
12
|
-
}>;
|
|
13
|
-
export type EventStatus = z.infer<typeof EventStatus>;
|
|
3
|
+
export { EventStatus } from './EventStatus';
|
|
14
4
|
export declare const ZodDate: z.ZodISODate;
|
|
15
5
|
export declare const ZodDateTime: z.ZodString;
|
|
16
6
|
export declare const ActionCreationMetadata: z.ZodObject<{
|
|
@@ -18,8 +8,8 @@ export declare const ActionCreationMetadata: z.ZodObject<{
|
|
|
18
8
|
createdBy: z.ZodString;
|
|
19
9
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
20
10
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
21
|
-
user: "user";
|
|
22
11
|
system: "system";
|
|
12
|
+
user: "user";
|
|
23
13
|
}>>>;
|
|
24
14
|
acceptedAt: z.ZodISODateTime;
|
|
25
15
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
@@ -30,8 +20,8 @@ export declare const RegistrationCreationMetadata: z.ZodObject<{
|
|
|
30
20
|
createdBy: z.ZodString;
|
|
31
21
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
32
22
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
33
|
-
user: "user";
|
|
34
23
|
system: "system";
|
|
24
|
+
user: "user";
|
|
35
25
|
}>>>;
|
|
36
26
|
acceptedAt: z.ZodISODateTime;
|
|
37
27
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
@@ -39,13 +29,24 @@ export declare const RegistrationCreationMetadata: z.ZodObject<{
|
|
|
39
29
|
}, z.core.$strip>;
|
|
40
30
|
export type RegistrationCreationMetadata = z.infer<typeof RegistrationCreationMetadata>;
|
|
41
31
|
export declare const LegalStatuses: z.ZodObject<{
|
|
42
|
-
|
|
32
|
+
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
43
33
|
createdAt: z.ZodISODateTime;
|
|
44
34
|
createdBy: z.ZodString;
|
|
45
35
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
46
36
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
37
|
+
system: "system";
|
|
47
38
|
user: "user";
|
|
39
|
+
}>>>;
|
|
40
|
+
acceptedAt: z.ZodISODateTime;
|
|
41
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>>>;
|
|
43
|
+
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
44
|
+
createdAt: z.ZodISODateTime;
|
|
45
|
+
createdBy: z.ZodString;
|
|
46
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
47
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
48
48
|
system: "system";
|
|
49
|
+
user: "user";
|
|
49
50
|
}>>>;
|
|
50
51
|
acceptedAt: z.ZodISODateTime;
|
|
51
52
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
@@ -55,8 +56,8 @@ export declare const LegalStatuses: z.ZodObject<{
|
|
|
55
56
|
createdBy: z.ZodString;
|
|
56
57
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
57
58
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
58
|
-
user: "user";
|
|
59
59
|
system: "system";
|
|
60
|
+
user: "user";
|
|
60
61
|
}>>>;
|
|
61
62
|
acceptedAt: z.ZodISODateTime;
|
|
62
63
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
@@ -72,20 +73,31 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
72
73
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
73
74
|
type: z.ZodString;
|
|
74
75
|
status: z.ZodEnum<{
|
|
76
|
+
ARCHIVED: "ARCHIVED";
|
|
75
77
|
CREATED: "CREATED";
|
|
76
|
-
NOTIFIED: "NOTIFIED";
|
|
77
78
|
DECLARED: "DECLARED";
|
|
79
|
+
NOTIFIED: "NOTIFIED";
|
|
78
80
|
REGISTERED: "REGISTERED";
|
|
79
|
-
ARCHIVED: "ARCHIVED";
|
|
80
81
|
}>;
|
|
81
82
|
legalStatuses: z.ZodObject<{
|
|
82
|
-
|
|
83
|
+
NOTIFIED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
83
84
|
createdAt: z.ZodISODateTime;
|
|
84
85
|
createdBy: z.ZodString;
|
|
85
86
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
86
87
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
88
|
+
system: "system";
|
|
87
89
|
user: "user";
|
|
90
|
+
}>>>;
|
|
91
|
+
acceptedAt: z.ZodISODateTime;
|
|
92
|
+
createdByRole: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, z.core.$strip>>>;
|
|
94
|
+
DECLARED: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
95
|
+
createdAt: z.ZodISODateTime;
|
|
96
|
+
createdBy: z.ZodString;
|
|
97
|
+
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
98
|
+
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
88
99
|
system: "system";
|
|
100
|
+
user: "user";
|
|
89
101
|
}>>>;
|
|
90
102
|
acceptedAt: z.ZodISODateTime;
|
|
91
103
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
@@ -95,8 +107,8 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
95
107
|
createdBy: z.ZodString;
|
|
96
108
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
97
109
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
98
|
-
user: "user";
|
|
99
110
|
system: "system";
|
|
111
|
+
user: "user";
|
|
100
112
|
}>>>;
|
|
101
113
|
acceptedAt: z.ZodISODateTime;
|
|
102
114
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
@@ -108,8 +120,8 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
108
120
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
109
121
|
createdBy: z.ZodString;
|
|
110
122
|
createdByUserType: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
111
|
-
user: "user";
|
|
112
123
|
system: "system";
|
|
124
|
+
user: "user";
|
|
113
125
|
}>>>;
|
|
114
126
|
updatedByUserRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
127
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
@@ -123,33 +135,33 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
123
135
|
trackingId: z.ZodString;
|
|
124
136
|
}, z.core.$strip>>;
|
|
125
137
|
flags: z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodString, z.ZodEnum<{
|
|
126
|
-
readonly INCOMPLETE:
|
|
127
|
-
readonly REJECTED:
|
|
128
|
-
readonly CORRECTION_REQUESTED:
|
|
129
|
-
readonly POTENTIAL_DUPLICATE:
|
|
130
|
-
readonly EDIT_IN_PROGRESS:
|
|
138
|
+
readonly INCOMPLETE: 'incomplete';
|
|
139
|
+
readonly REJECTED: 'rejected';
|
|
140
|
+
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
141
|
+
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
142
|
+
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
131
143
|
}>]>, z.ZodString]>>;
|
|
132
144
|
}, z.core.$strip>;
|
|
133
145
|
export type EventMetadata = z.infer<typeof EventMetadata>;
|
|
134
|
-
export declare const EventMetadataKeysArray: readonly [
|
|
146
|
+
export declare const EventMetadataKeysArray: readonly ['id', 'type', 'status', 'createdAt', 'dateOfEvent', 'placeOfEvent', 'createdBy', 'createdByUserType', 'updatedByUserRole', 'createdAtLocation', 'updatedAtLocation', 'updatedAt', 'assignedTo', 'updatedBy', 'trackingId', 'legalStatuses', 'flags'];
|
|
135
147
|
export declare const EventMetadataKeys: z.ZodEnum<{
|
|
136
|
-
|
|
137
|
-
type: "type";
|
|
138
|
-
updatedAt: "updatedAt";
|
|
139
|
-
placeOfEvent: "placeOfEvent";
|
|
140
|
-
createdBy: "createdBy";
|
|
141
|
-
createdByUserType: "createdByUserType";
|
|
148
|
+
assignedTo: "assignedTo";
|
|
142
149
|
createdAt: "createdAt";
|
|
143
150
|
createdAtLocation: "createdAtLocation";
|
|
151
|
+
createdBy: "createdBy";
|
|
152
|
+
createdByUserType: "createdByUserType";
|
|
153
|
+
dateOfEvent: "dateOfEvent";
|
|
154
|
+
flags: "flags";
|
|
155
|
+
id: "id";
|
|
156
|
+
legalStatuses: "legalStatuses";
|
|
157
|
+
placeOfEvent: "placeOfEvent";
|
|
144
158
|
status: "status";
|
|
145
|
-
assignedTo: "assignedTo";
|
|
146
159
|
trackingId: "trackingId";
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
updatedByUserRole: "updatedByUserRole";
|
|
160
|
+
type: "type";
|
|
161
|
+
updatedAt: "updatedAt";
|
|
150
162
|
updatedAtLocation: "updatedAtLocation";
|
|
151
163
|
updatedBy: "updatedBy";
|
|
152
|
-
|
|
164
|
+
updatedByUserRole: "updatedByUserRole";
|
|
153
165
|
}>;
|
|
154
166
|
export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
|
|
155
167
|
/**
|
|
@@ -159,21 +171,25 @@ export type EventMetadataKeys = z.infer<typeof EventMetadataKeys>;
|
|
|
159
171
|
*/
|
|
160
172
|
export declare const eventMetadataLabelMap: Record<Exclude<`event.${EventMetadataKeys}`, 'event.legalStatuses'>, TranslationConfig>;
|
|
161
173
|
export declare const EventMetadataDateFieldIdInput: z.ZodEnum<{
|
|
162
|
-
updatedAt: "updatedAt";
|
|
163
174
|
createdAt: "createdAt";
|
|
164
|
-
"legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
|
|
165
175
|
"legalStatuses.DECLARED.acceptedAt": "legalStatuses.DECLARED.acceptedAt";
|
|
166
|
-
"legalStatuses.
|
|
176
|
+
"legalStatuses.DECLARED.createdAt": "legalStatuses.DECLARED.createdAt";
|
|
177
|
+
"legalStatuses.NOTIFIED.acceptedAt": "legalStatuses.NOTIFIED.acceptedAt";
|
|
178
|
+
"legalStatuses.NOTIFIED.createdAt": "legalStatuses.NOTIFIED.createdAt";
|
|
167
179
|
"legalStatuses.REGISTERED.acceptedAt": "legalStatuses.REGISTERED.acceptedAt";
|
|
180
|
+
"legalStatuses.REGISTERED.createdAt": "legalStatuses.REGISTERED.createdAt";
|
|
181
|
+
updatedAt: "updatedAt";
|
|
168
182
|
}>;
|
|
169
183
|
export type EventMetadataDateFieldIdInput = z.infer<typeof EventMetadataDateFieldIdInput>;
|
|
170
184
|
export declare const EventMetadataDateFieldId: z.ZodEnum<{
|
|
171
|
-
"event.updatedAt": "event.updatedAt";
|
|
172
185
|
"event.createdAt": "event.createdAt";
|
|
173
|
-
"event.legalStatuses.DECLARED.createdAt": "event.legalStatuses.DECLARED.createdAt";
|
|
174
186
|
"event.legalStatuses.DECLARED.acceptedAt": "event.legalStatuses.DECLARED.acceptedAt";
|
|
175
|
-
"event.legalStatuses.
|
|
187
|
+
"event.legalStatuses.DECLARED.createdAt": "event.legalStatuses.DECLARED.createdAt";
|
|
188
|
+
"event.legalStatuses.NOTIFIED.acceptedAt": "event.legalStatuses.NOTIFIED.acceptedAt";
|
|
189
|
+
"event.legalStatuses.NOTIFIED.createdAt": "event.legalStatuses.NOTIFIED.createdAt";
|
|
176
190
|
"event.legalStatuses.REGISTERED.acceptedAt": "event.legalStatuses.REGISTERED.acceptedAt";
|
|
191
|
+
"event.legalStatuses.REGISTERED.createdAt": "event.legalStatuses.REGISTERED.createdAt";
|
|
192
|
+
"event.updatedAt": "event.updatedAt";
|
|
177
193
|
}>;
|
|
178
194
|
export type EventMetadataDateFieldId = z.infer<typeof EventMetadataDateFieldId>;
|
|
179
195
|
//# sourceMappingURL=EventMetadata.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
/**
|
|
3
|
+
* Event statuses recognized by the system
|
|
4
|
+
*
|
|
5
|
+
* Deliberately kept in its own dependency-free module: `EventMetadata.ts`
|
|
6
|
+
* pulls in `ActionDocument.ts`, which imports back from `../authentication`.
|
|
7
|
+
* `../scopes` needs `EventStatus` and is itself imported by
|
|
8
|
+
* `../authentication`, so importing it from `EventMetadata.ts` there would
|
|
9
|
+
* complete that cycle and break module initialization order.
|
|
10
|
+
*/
|
|
11
|
+
export declare const EventStatus: z.ZodEnum<{
|
|
12
|
+
ARCHIVED: "ARCHIVED";
|
|
13
|
+
CREATED: "CREATED";
|
|
14
|
+
DECLARED: "DECLARED";
|
|
15
|
+
NOTIFIED: "NOTIFIED";
|
|
16
|
+
REGISTERED: "REGISTERED";
|
|
17
|
+
}>;
|
|
18
|
+
export type EventStatus = z.infer<typeof EventStatus>;
|
|
19
|
+
//# sourceMappingURL=EventStatus.d.ts.map
|