@opencrvs/toolkit 1.9.12-rc.e767cdd → 1.9.12-rc.eae3bc3

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 (70) hide show
  1. package/build.sh +5 -0
  2. package/dist/api/index.d.ts.map +1 -1
  3. package/dist/application-config/index.d.ts +2 -0
  4. package/dist/application-config/index.d.ts.map +1 -0
  5. package/dist/application-config/index.js +124 -0
  6. package/dist/commons/api/router.d.ts +3163 -2251
  7. package/dist/commons/application-config/index.d.ts +87 -0
  8. package/dist/commons/conditionals/conditionals.d.ts +27 -3
  9. package/dist/commons/conditionals/validate.d.ts +13 -2
  10. package/dist/commons/events/ActionConfig.d.ts +415 -1555
  11. package/dist/commons/events/ActionDocument.d.ts +888 -1941
  12. package/dist/commons/events/ActionInput.d.ts +277 -1073
  13. package/dist/commons/events/ActionType.d.ts +91 -11
  14. package/dist/commons/events/AdvancedSearchConfig.d.ts +288 -1496
  15. package/dist/commons/events/AuditLog.d.ts +223 -0
  16. package/dist/commons/events/CompositeFieldValue.d.ts +30 -190
  17. package/dist/commons/events/Conditional.d.ts +26 -38
  18. package/dist/commons/events/Constants.d.ts +1 -1
  19. package/dist/commons/events/CountryConfigQueryInput.d.ts +1345 -4495
  20. package/dist/commons/events/DeduplicationConfig.d.ts +15 -171
  21. package/dist/commons/events/Draft.d.ts +72 -107
  22. package/dist/commons/events/DynamicFieldValue.d.ts +7 -91
  23. package/dist/commons/events/EventConfig.d.ts +35 -2420
  24. package/dist/commons/events/EventConfigInput.d.ts +0 -3
  25. package/dist/commons/events/EventDocument.d.ts +354 -1366
  26. package/dist/commons/events/EventIndex.d.ts +208 -1014
  27. package/dist/commons/events/EventInput.d.ts +3 -8
  28. package/dist/commons/events/EventMetadata.d.ts +130 -357
  29. package/dist/commons/events/FieldConfig.d.ts +2674 -12470
  30. package/dist/commons/events/FieldType.d.ts +25 -4
  31. package/dist/commons/events/FieldTypeMapping.d.ts +289 -907
  32. package/dist/commons/events/FieldValue.d.ts +121 -527
  33. package/dist/commons/events/FileUtils.d.ts +2 -2
  34. package/dist/commons/events/Flag.d.ts +67 -0
  35. package/dist/commons/events/FormConfig.d.ts +54 -721
  36. package/dist/commons/events/PageConfig.d.ts +58 -320
  37. package/dist/commons/events/PlainDate.d.ts +1 -1
  38. package/dist/commons/events/SummaryConfig.d.ts +14 -161
  39. package/dist/commons/events/TemplateConfig.d.ts +2 -3
  40. package/dist/commons/events/TranslationConfig.d.ts +2 -2
  41. package/dist/commons/events/WorkqueueColumnConfig.d.ts +74 -37
  42. package/dist/commons/events/WorkqueueConfig.d.ts +2008 -7597
  43. package/dist/commons/events/deduplication.d.ts +3 -3
  44. package/dist/commons/events/defineConfig.d.ts +2 -243
  45. package/dist/commons/events/eventConfigValidation.d.ts +8 -0
  46. package/dist/commons/events/index.d.ts +3 -0
  47. package/dist/commons/events/locations.d.ts +57 -20
  48. package/dist/commons/events/scopes.d.ts +33 -33
  49. package/dist/commons/events/state/availableActions.d.ts +7 -2
  50. package/dist/commons/events/state/flags.d.ts +21 -3
  51. package/dist/commons/events/state/index.d.ts +30 -27
  52. package/dist/commons/events/state/utils.d.ts +190 -172
  53. package/dist/commons/events/test.utils.d.ts +52 -11
  54. package/dist/commons/events/transactions.d.ts +1 -1
  55. package/dist/commons/events/utils.d.ts +413 -310
  56. package/dist/commons/notification/UserNotifications.d.ts +55 -636
  57. package/dist/conditionals/index.d.ts.map +1 -1
  58. package/dist/conditionals/index.js +587 -14
  59. package/dist/events/deduplication.d.ts +3 -3
  60. package/dist/events/index.js +2704 -1891
  61. package/dist/notification/index.d.ts.map +1 -1
  62. package/dist/notification/index.js +2002 -1553
  63. package/dist/scopes/index.d.ts +352 -302
  64. package/dist/scopes/index.d.ts.map +1 -1
  65. package/dist/scopes/index.js +444 -210
  66. package/opencrvs-toolkit-1.9.12-rc.eae3bc3.tgz +0 -0
  67. package/package.json +11 -5
  68. package/tsconfig.json +9 -2
  69. package/tsconfig.tsbuildinfo +1 -1
  70. package/dist/commons/events/CreatedAtLocation.d.ts +0 -2
@@ -0,0 +1,223 @@
1
+ import * as z from 'zod/v4';
2
+ import { TokenUserType } from '../authentication';
3
+ /**
4
+ * Shared response summary shape for operations that return an event document.
5
+ */
6
+ type EventResponseSummary = {
7
+ eventId: string;
8
+ eventType: string;
9
+ trackingId: string;
10
+ };
11
+ export type EventCreateAuditLog = {
12
+ operation: 'event.create';
13
+ requestData: {
14
+ transactionId: string;
15
+ type: string;
16
+ createdAtLocation: string | null;
17
+ };
18
+ responseSummary: EventResponseSummary;
19
+ };
20
+ export type EventGetAuditLog = {
21
+ operation: 'event.get';
22
+ requestData: {
23
+ eventId: string;
24
+ };
25
+ responseSummary: EventResponseSummary;
26
+ };
27
+ export type EventSearchAuditLog = {
28
+ operation: 'event.search';
29
+ requestData: {
30
+ query: Record<string, unknown> | null;
31
+ limit: number | null;
32
+ offset: number | null;
33
+ };
34
+ responseSummary: {
35
+ total: number;
36
+ eventIds: string[];
37
+ };
38
+ };
39
+ type ActionAuditLogRequestData = {
40
+ eventId: string;
41
+ actionType: string;
42
+ transactionId: string;
43
+ };
44
+ export type EventActionAuditLog = {
45
+ operation: 'event.actions.notify.request' | 'event.actions.declare.request' | 'event.actions.register.request' | 'event.actions.reject.request' | 'event.actions.validate.request' | 'event.actions.edit.request' | 'event.actions.assign.request' | 'event.actions.unassign.request' | 'event.actions.read.request' | 'event.actions.archive.request' | 'event.actions.reinstate.request' | 'event.actions.print_certificate.request' | 'event.actions.correction.request.request' | 'event.actions.correction.approve.request' | 'event.actions.correction.reject.request' | 'event.actions.mark_as_duplicate.request' | 'event.actions.mark_as_not_duplicate.request';
46
+ requestData: ActionAuditLogRequestData;
47
+ responseSummary: EventResponseSummary;
48
+ };
49
+ export type IntegrationCreateAuditLog = {
50
+ operation: 'integrations.create';
51
+ requestData: {
52
+ name: string;
53
+ scopes: string[];
54
+ };
55
+ responseSummary: {
56
+ clientId: string;
57
+ };
58
+ };
59
+ export type IntegrationRefreshTokenAuditLog = {
60
+ operation: 'integrations.refreshToken';
61
+ requestData: {
62
+ clientId: string;
63
+ };
64
+ responseSummary: {
65
+ clientId: string;
66
+ };
67
+ };
68
+ export type IntegrationDeactivateAuditLog = {
69
+ operation: 'integrations.deactivate';
70
+ requestData: {
71
+ id: string;
72
+ };
73
+ responseSummary: {
74
+ id: string;
75
+ status: string;
76
+ };
77
+ };
78
+ export type IntegrationActivateAuditLog = {
79
+ operation: 'integrations.activate';
80
+ requestData: {
81
+ id: string;
82
+ };
83
+ responseSummary: {
84
+ id: string;
85
+ status: string;
86
+ };
87
+ };
88
+ export type IntegrationDeleteAuditLog = {
89
+ operation: 'integrations.delete';
90
+ requestData: {
91
+ id: string;
92
+ };
93
+ responseSummary: {
94
+ id: string;
95
+ name: string;
96
+ };
97
+ };
98
+ export type IntegrationRefreshSecretAuditLog = {
99
+ operation: 'integrations.refreshSecret';
100
+ requestData: {
101
+ id: string;
102
+ };
103
+ responseSummary: {
104
+ clientId: string;
105
+ };
106
+ };
107
+ export type AttachmentUploadAuditLog = {
108
+ operation: 'attachments.upload';
109
+ requestData: {
110
+ transactionId: string;
111
+ path: string | null;
112
+ };
113
+ responseSummary: {
114
+ fileUrl: string;
115
+ };
116
+ };
117
+ export declare const UserAuditRecordInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
118
+ operation: z.ZodLiteral<"user.create_user">;
119
+ requestData: z.ZodObject<{
120
+ subjectId: z.ZodString;
121
+ role: z.ZodString;
122
+ primaryOfficeId: z.ZodString;
123
+ }, z.core.$strip>;
124
+ responseSummary: z.ZodObject<{}, z.core.$strip>;
125
+ }, z.core.$strip>, z.ZodObject<{
126
+ operation: z.ZodLiteral<"user.deactivate">;
127
+ requestData: z.ZodObject<{
128
+ subjectId: z.ZodString;
129
+ reason: z.ZodString;
130
+ comment: z.ZodOptional<z.ZodString>;
131
+ }, z.core.$strip>;
132
+ responseSummary: z.ZodObject<{}, z.core.$strip>;
133
+ }, z.core.$strip>, z.ZodObject<{
134
+ operation: z.ZodLiteral<"user.reactivate">;
135
+ requestData: z.ZodObject<{
136
+ subjectId: z.ZodString;
137
+ reason: z.ZodString;
138
+ comment: z.ZodOptional<z.ZodString>;
139
+ }, z.core.$strip>;
140
+ responseSummary: z.ZodObject<{}, z.core.$strip>;
141
+ }, z.core.$strip>, z.ZodObject<{
142
+ operation: z.ZodLiteral<"user.edit_user">;
143
+ requestData: z.ZodObject<{
144
+ subjectId: z.ZodString;
145
+ }, z.core.$strip>;
146
+ responseSummary: z.ZodObject<{}, z.core.$strip>;
147
+ }, z.core.$strip>, z.ZodObject<{
148
+ operation: z.ZodLiteral<"user.email_address_changed">;
149
+ requestData: z.ZodObject<{
150
+ subjectId: z.ZodString;
151
+ }, z.core.$strip>;
152
+ responseSummary: z.ZodObject<{
153
+ email: z.ZodString;
154
+ }, z.core.$strip>;
155
+ }, z.core.$strip>, z.ZodObject<{
156
+ operation: z.ZodLiteral<"user.logged_in">;
157
+ requestData: z.ZodObject<{
158
+ subjectId: z.ZodString;
159
+ }, z.core.$strip>;
160
+ responseSummary: z.ZodObject<{}, z.core.$strip>;
161
+ }, z.core.$strip>, z.ZodObject<{
162
+ operation: z.ZodLiteral<"user.logged_out">;
163
+ requestData: z.ZodObject<{
164
+ subjectId: z.ZodString;
165
+ }, z.core.$strip>;
166
+ responseSummary: z.ZodObject<{}, z.core.$strip>;
167
+ }, z.core.$strip>, z.ZodObject<{
168
+ operation: z.ZodLiteral<"user.password_changed">;
169
+ requestData: z.ZodObject<{
170
+ subjectId: z.ZodString;
171
+ }, z.core.$strip>;
172
+ responseSummary: z.ZodObject<{}, z.core.$strip>;
173
+ }, z.core.$strip>, z.ZodObject<{
174
+ operation: z.ZodLiteral<"user.password_reset">;
175
+ requestData: z.ZodObject<{
176
+ subjectId: z.ZodString;
177
+ }, z.core.$strip>;
178
+ responseSummary: z.ZodObject<{}, z.core.$strip>;
179
+ }, z.core.$strip>, z.ZodObject<{
180
+ operation: z.ZodLiteral<"user.password_reset_by_admin">;
181
+ requestData: z.ZodObject<{
182
+ subjectId: z.ZodString;
183
+ }, z.core.$strip>;
184
+ responseSummary: z.ZodObject<{}, z.core.$strip>;
185
+ }, z.core.$strip>, z.ZodObject<{
186
+ operation: z.ZodLiteral<"user.phone_number_changed">;
187
+ requestData: z.ZodObject<{
188
+ subjectId: z.ZodString;
189
+ }, z.core.$strip>;
190
+ responseSummary: z.ZodObject<{
191
+ phoneNumber: z.ZodString;
192
+ }, z.core.$strip>;
193
+ }, z.core.$strip>, z.ZodObject<{
194
+ operation: z.ZodLiteral<"user.username_reminder">;
195
+ requestData: z.ZodObject<{
196
+ subjectId: z.ZodString;
197
+ }, z.core.$strip>;
198
+ responseSummary: z.ZodObject<{}, z.core.$strip>;
199
+ }, z.core.$strip>, z.ZodObject<{
200
+ operation: z.ZodLiteral<"user.username_reminder_by_admin">;
201
+ requestData: z.ZodObject<{
202
+ subjectId: z.ZodString;
203
+ }, z.core.$strip>;
204
+ responseSummary: z.ZodObject<{}, z.core.$strip>;
205
+ }, z.core.$strip>], "operation">;
206
+ export type UserAuditLog = z.infer<typeof UserAuditRecordInput>;
207
+ /**
208
+ * Union of all audit log entry variants.
209
+ * Each variant narrows the `operation`, `requestData`, and `responseSummary` fields together.
210
+ * Event action operations are grouped into a single `EventActionAuditLog` type since they
211
+ * share identical requestData and responseSummary shapes.
212
+ */
213
+ export type AuditLogOperation = EventCreateAuditLog | EventGetAuditLog | EventSearchAuditLog | EventActionAuditLog | IntegrationCreateAuditLog | IntegrationDeactivateAuditLog | IntegrationActivateAuditLog | IntegrationDeleteAuditLog | IntegrationRefreshSecretAuditLog | AttachmentUploadAuditLog | UserAuditLog | IntegrationCreateAuditLog | IntegrationRefreshTokenAuditLog | IntegrationDeactivateAuditLog | IntegrationActivateAuditLog | IntegrationDeleteAuditLog;
214
+ /**
215
+ * Parameters for writing an audit log entry.
216
+ * All fields must be supplied explicitly by the caller — do not pass JWT or context objects.
217
+ */
218
+ export type AuditLogParams = AuditLogOperation & {
219
+ clientId: string;
220
+ clientType: TokenUserType;
221
+ };
222
+ export {};
223
+ //# sourceMappingURL=AuditLog.d.ts.map
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import * as z from 'zod/v4';
2
2
  /**
3
3
  * Composite field value consists of multiple field values.
4
4
  */
@@ -11,270 +11,110 @@ export declare const AddressType: {
11
11
  readonly INTERNATIONAL: "INTERNATIONAL";
12
12
  };
13
13
  export declare const FileFieldValue: z.ZodObject<{
14
- path: z.ZodEffects<z.ZodString, string, string>;
14
+ path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
15
15
  originalFilename: z.ZodString;
16
16
  type: z.ZodString;
17
- }, "strip", z.ZodTypeAny, {
18
- type: string;
19
- path: string;
20
- originalFilename: string;
21
- }, {
22
- type: string;
23
- path: string;
24
- originalFilename: string;
25
- }>;
17
+ }, z.core.$strip>;
26
18
  export type FileFieldValue = z.infer<typeof FileFieldValue>;
27
19
  export declare const NameFieldValue: z.ZodObject<{
28
20
  firstname: z.ZodString;
29
21
  surname: z.ZodString;
30
22
  middlename: z.ZodOptional<z.ZodString>;
31
- }, "strip", z.ZodTypeAny, {
32
- firstname: string;
33
- surname: string;
34
- middlename?: string | undefined;
35
- }, {
36
- firstname: string;
37
- surname: string;
38
- middlename?: string | undefined;
39
- }>;
23
+ }, z.core.$strip>;
40
24
  export declare const NameFieldUpdateValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
41
25
  firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
26
  surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
27
  middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
- }, "strip", z.ZodTypeAny, {
45
- firstname?: string | null | undefined;
46
- surname?: string | null | undefined;
47
- middlename?: string | null | undefined;
48
- }, {
49
- firstname?: string | null | undefined;
50
- surname?: string | null | undefined;
51
- middlename?: string | null | undefined;
52
- }>, z.ZodNull]>, z.ZodUndefined]>;
28
+ }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>;
53
29
  export type NameFieldValue = z.infer<typeof NameFieldValue>;
54
30
  export type NameFieldUpdateValue = z.infer<typeof NameFieldUpdateValue>;
55
31
  export declare const StreetLevelDetailsUpdateValue: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
56
- export declare const DomesticAddressFieldValue: z.ZodObject<z.objectUtil.extendShape<{
32
+ export declare const DomesticAddressFieldValue: z.ZodObject<{
57
33
  country: z.ZodString;
58
34
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
59
- }, {
60
35
  addressType: z.ZodLiteral<"DOMESTIC">;
61
36
  administrativeArea: z.ZodString;
62
- }>, "strip", z.ZodTypeAny, {
63
- country: string;
64
- addressType: "DOMESTIC";
65
- administrativeArea: string;
66
- streetLevelDetails?: Record<string, string> | undefined;
67
- }, {
68
- country: string;
69
- addressType: "DOMESTIC";
70
- administrativeArea: string;
71
- streetLevelDetails?: Record<string, string> | undefined;
72
- }>;
37
+ }, z.core.$strip>;
73
38
  export type DomesticAddressFieldValue = z.infer<typeof DomesticAddressFieldValue>;
74
- export declare const AddressFieldValue: z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
39
+ export declare const AddressFieldValue: z.ZodDiscriminatedUnion<[z.ZodObject<{
75
40
  country: z.ZodString;
76
41
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
77
- }, {
78
42
  addressType: z.ZodLiteral<"DOMESTIC">;
79
43
  administrativeArea: z.ZodString;
80
- }>, "strip", z.ZodTypeAny, {
81
- country: string;
82
- addressType: "DOMESTIC";
83
- administrativeArea: string;
84
- streetLevelDetails?: Record<string, string> | undefined;
85
- }, {
86
- country: string;
87
- addressType: "DOMESTIC";
88
- administrativeArea: string;
89
- streetLevelDetails?: Record<string, string> | undefined;
90
- }>, z.ZodObject<z.objectUtil.extendShape<{
44
+ }, z.core.$strip>, z.ZodObject<{
91
45
  country: z.ZodString;
92
46
  streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
93
- }, {
94
47
  addressType: z.ZodLiteral<"INTERNATIONAL">;
95
- }>, "strip", z.ZodTypeAny, {
96
- country: string;
97
- addressType: "INTERNATIONAL";
98
- streetLevelDetails?: Record<string, string> | undefined;
99
- }, {
100
- country: string;
101
- addressType: "INTERNATIONAL";
102
- streetLevelDetails?: Record<string, string> | undefined;
103
- }>]>;
48
+ }, z.core.$strip>], "addressType">;
104
49
  export type AddressFieldValue = z.infer<typeof AddressFieldValue>;
105
- export declare const AddressFieldUpdateValue: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<"addressType", [z.ZodObject<z.objectUtil.extendShape<{
50
+ export declare const AddressFieldUpdateValue: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
106
51
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
52
  streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
108
- }, {
109
53
  addressType: z.ZodLiteral<"DOMESTIC">;
110
54
  administrativeArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
- }>, "strip", z.ZodTypeAny, {
112
- addressType: "DOMESTIC";
113
- country?: string | null | undefined;
114
- streetLevelDetails?: Record<string, string | null> | null | undefined;
115
- administrativeArea?: string | null | undefined;
116
- }, {
117
- addressType: "DOMESTIC";
118
- country?: string | null | undefined;
119
- streetLevelDetails?: Record<string, string | null> | null | undefined;
120
- administrativeArea?: string | null | undefined;
121
- }>, z.ZodObject<z.objectUtil.extendShape<{
55
+ }, z.core.$strip>, z.ZodObject<{
122
56
  country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
123
57
  streetLevelDetails: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodString>>>>;
124
- }, {
125
58
  addressType: z.ZodLiteral<"INTERNATIONAL">;
126
- }>, "strip", z.ZodTypeAny, {
127
- addressType: "INTERNATIONAL";
128
- country?: string | null | undefined;
129
- streetLevelDetails?: Record<string, string | null> | null | undefined;
130
- }, {
131
- addressType: "INTERNATIONAL";
132
- country?: string | null | undefined;
133
- streetLevelDetails?: Record<string, string | null> | null | undefined;
134
- }>]>>>;
59
+ }, z.core.$strip>], "addressType">>>;
135
60
  export type AddressFieldUpdateValue = z.infer<typeof AddressFieldUpdateValue>;
136
61
  export declare const FileFieldValueWithOption: z.ZodObject<{
137
- path: z.ZodEffects<z.ZodString, string, string>;
62
+ path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
138
63
  originalFilename: z.ZodString;
139
64
  type: z.ZodString;
140
65
  option: z.ZodString;
141
- }, "strip", z.ZodTypeAny, {
142
- type: string;
143
- option: string;
144
- path: string;
145
- originalFilename: string;
146
- }, {
147
- type: string;
148
- option: string;
149
- path: string;
150
- originalFilename: string;
151
- }>;
66
+ }, z.core.$strip>;
152
67
  export type FileFieldValueWithOption = z.infer<typeof FileFieldValueWithOption>;
153
68
  export declare const FileFieldWithOptionValue: z.ZodArray<z.ZodObject<{
154
- path: z.ZodEffects<z.ZodString, string, string>;
69
+ path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
155
70
  originalFilename: z.ZodString;
156
71
  type: z.ZodString;
157
72
  option: z.ZodString;
158
- }, "strip", z.ZodTypeAny, {
159
- type: string;
160
- option: string;
161
- path: string;
162
- originalFilename: string;
163
- }, {
164
- type: string;
165
- option: string;
166
- path: string;
167
- originalFilename: string;
168
- }>, "many">;
73
+ }, z.core.$strip>>;
169
74
  export type FileFieldWithOptionValue = z.infer<typeof FileFieldWithOptionValue>;
170
75
  export declare const HttpFieldValue: z.ZodObject<{
171
76
  loading: z.ZodBoolean;
172
77
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
173
78
  statusCode: z.ZodNumber;
174
79
  message: z.ZodString;
175
- }, "strip", z.ZodTypeAny, {
176
- message: string;
177
- statusCode: number;
178
- }, {
179
- message: string;
180
- statusCode: number;
181
- }>>>;
80
+ }, z.core.$strip>>>;
182
81
  data: z.ZodAny;
183
- }, "strip", z.ZodTypeAny, {
184
- loading: boolean;
185
- data?: any;
186
- error?: {
187
- message: string;
188
- statusCode: number;
189
- } | null | undefined;
190
- }, {
191
- loading: boolean;
192
- data?: any;
193
- error?: {
194
- message: string;
195
- statusCode: number;
196
- } | null | undefined;
197
- }>;
82
+ }, z.core.$strip>;
198
83
  export type HttpFieldValue = z.infer<typeof HttpFieldValue>;
199
84
  export declare const HttpFieldUpdateValue: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
200
85
  loading: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
201
86
  error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
202
87
  statusCode: z.ZodNumber;
203
88
  message: z.ZodString;
204
- }, "strip", z.ZodTypeAny, {
205
- message: string;
206
- statusCode: number;
207
- }, {
208
- message: string;
209
- statusCode: number;
210
- }>>>;
89
+ }, z.core.$strip>>>;
211
90
  data: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
212
- }, "strip", z.ZodTypeAny, {
213
- data?: any;
214
- error?: {
215
- message: string;
216
- statusCode: number;
217
- } | null | undefined;
218
- loading?: boolean | null | undefined;
219
- }, {
220
- data?: any;
221
- error?: {
222
- message: string;
223
- statusCode: number;
224
- } | null | undefined;
225
- loading?: boolean | null | undefined;
226
- }>, z.ZodNull]>, z.ZodUndefined]>;
91
+ }, z.core.$strip>, z.ZodNull]>, z.ZodUndefined]>;
227
92
  export declare const QueryParamReaderFieldValue: z.ZodOptional<z.ZodNullable<z.ZodObject<{
228
93
  data: z.ZodRecord<z.ZodString, z.ZodString>;
229
- }, "strip", z.ZodTypeAny, {
230
- data: Record<string, string>;
231
- }, {
232
- data: Record<string, string>;
233
- }>>>;
94
+ updatedAt: z.ZodISODateTime;
95
+ }, z.core.$strip>>>;
234
96
  export type QueryParamReaderFieldValue = z.infer<typeof QueryParamReaderFieldValue>;
235
97
  export declare const QueryParamReaderFieldUpdateValue: z.ZodObject<{
236
98
  data: z.ZodRecord<z.ZodString, z.ZodString>;
237
- }, "strip", z.ZodTypeAny, {
238
- data: Record<string, string>;
239
- }, {
240
- data: Record<string, string>;
241
- }>;
99
+ }, z.core.$strip>;
242
100
  export declare const QrReaderFieldValue: z.ZodObject<{
243
101
  data: z.ZodAny;
244
- }, "strip", z.ZodTypeAny, {
245
- data?: any;
246
- }, {
247
- data?: any;
248
- }>;
102
+ }, z.core.$strip>;
249
103
  export type QrReaderFieldValue = z.infer<typeof QrReaderFieldValue>;
250
104
  export declare const IdReaderFieldValue: z.ZodObject<{
251
105
  data: z.ZodAny;
252
- }, "strip", z.ZodTypeAny, {
253
- data?: any;
254
- }, {
255
- data?: any;
256
- }>;
106
+ }, z.core.$strip>;
257
107
  export type IdReaderFieldValue = z.infer<typeof IdReaderFieldValue>;
258
108
  export declare const NumberWithUnitFieldValue: z.ZodObject<{
259
109
  numericValue: z.ZodNumber;
260
110
  unit: z.ZodString;
261
- }, "strip", z.ZodTypeAny, {
262
- numericValue: number;
263
- unit: string;
264
- }, {
265
- numericValue: number;
266
- unit: string;
267
- }>;
111
+ }, z.core.$strip>;
268
112
  export declare const NumberWithUnitFieldUpdateValue: z.ZodObject<{
269
113
  numericValue: z.ZodOptional<z.ZodNumber>;
270
114
  unit: z.ZodOptional<z.ZodString>;
271
- }, "strip", z.ZodTypeAny, {
272
- numericValue?: number | undefined;
273
- unit?: string | undefined;
274
- }, {
275
- numericValue?: number | undefined;
276
- unit?: string | undefined;
277
- }>;
115
+ }, z.core.$strip>;
278
116
  export type NumberWithUnitFieldValue = z.infer<typeof NumberWithUnitFieldValue>;
279
117
  export type NumberWithUnitFieldUpdateValue = z.infer<typeof NumberWithUnitFieldUpdateValue>;
118
+ export declare const CustomFieldValue: z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">;
119
+ export type CustomFieldValue = z.infer<typeof CustomFieldValue>;
280
120
  //# sourceMappingURL=CompositeFieldValue.d.ts.map
@@ -1,6 +1,5 @@
1
- import { JSONSchema } from '../conditionals/conditionals';
2
- import { z } from 'zod';
3
- export declare const Conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
1
+ import * as z from 'zod/v4';
2
+ export declare const Conditional: z.ZodAny;
4
3
  /**
5
4
  * By default, when conditionals are undefined, action is visible and enabled to everyone.
6
5
  */
@@ -12,44 +11,33 @@ export declare const ConditionalType: {
12
11
  export type ConditionalType = (typeof ConditionalType)[keyof typeof ConditionalType];
13
12
  export declare const ShowConditional: z.ZodObject<{
14
13
  type: z.ZodLiteral<"SHOW">;
15
- conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
16
- }, "strip", z.ZodTypeAny, {
17
- type: "SHOW";
18
- conditional: JSONSchema;
19
- }, {
20
- type: "SHOW";
21
- conditional: JSONSchema;
22
- }>;
14
+ conditional: z.ZodAny;
15
+ }, z.core.$strip>;
23
16
  export declare const EnableConditional: z.ZodObject<{
24
17
  type: z.ZodLiteral<"ENABLE">;
25
- conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
26
- }, "strip", z.ZodTypeAny, {
27
- type: "ENABLE";
28
- conditional: JSONSchema;
29
- }, {
30
- type: "ENABLE";
31
- conditional: JSONSchema;
32
- }>;
33
- /** @knipignore */
34
- export type ActionConditionalType = typeof ShowConditional | typeof EnableConditional;
35
- /** @knipignore */
36
- export type InferredActionConditional = z.infer<typeof ShowConditional> | z.infer<typeof EnableConditional>;
37
- export declare const ActionConditional: z.ZodDiscriminatedUnion<"type", ActionConditionalType[]>;
38
- export type ActionConditional = InferredActionConditional;
18
+ conditional: z.ZodAny;
19
+ }, z.core.$strip>;
20
+ export declare const ActionConditional: z.ZodDiscriminatedUnion<[z.ZodObject<{
21
+ type: z.ZodLiteral<"SHOW">;
22
+ conditional: z.ZodAny;
23
+ }, z.core.$strip>, z.ZodObject<{
24
+ type: z.ZodLiteral<"ENABLE">;
25
+ conditional: z.ZodAny;
26
+ }, z.core.$strip>], "type">;
27
+ export type ActionConditional = z.infer<typeof ActionConditional>;
39
28
  export declare const DisplayOnReviewConditional: z.ZodObject<{
40
29
  type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
41
- conditional: z.ZodType<JSONSchema, z.ZodTypeDef, JSONSchema>;
42
- }, "strip", z.ZodTypeAny, {
43
- type: "DISPLAY_ON_REVIEW";
44
- conditional: JSONSchema;
45
- }, {
46
- type: "DISPLAY_ON_REVIEW";
47
- conditional: JSONSchema;
48
- }>;
49
- /** @knipignore */
50
- export type FieldConditionalType = typeof ShowConditional | typeof EnableConditional | typeof DisplayOnReviewConditional;
51
- /** @knipignore */
52
- export type InferredFieldConditional = z.infer<typeof ShowConditional> | z.infer<typeof EnableConditional> | z.infer<typeof DisplayOnReviewConditional>;
53
- export declare const FieldConditional: z.ZodDiscriminatedUnion<"type", FieldConditionalType[]>;
30
+ conditional: z.ZodAny;
31
+ }, z.core.$strip>;
32
+ export declare const FieldConditional: z.ZodDiscriminatedUnion<[z.ZodObject<{
33
+ type: z.ZodLiteral<"SHOW">;
34
+ conditional: z.ZodAny;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ type: z.ZodLiteral<"ENABLE">;
37
+ conditional: z.ZodAny;
38
+ }, z.core.$strip>, z.ZodObject<{
39
+ type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
40
+ conditional: z.ZodAny;
41
+ }, z.core.$strip>], "type">;
54
42
  export type FieldConditional = z.infer<typeof FieldConditional>;
55
43
  //# sourceMappingURL=Conditional.d.ts.map
@@ -1,3 +1,3 @@
1
1
  export declare const TENNIS_CLUB_MEMBERSHIP = "tennis-club-membership";
2
- export declare const BIRTH_EVENT = "birth";
2
+ export declare const CHILD_ONBOARDING_EVENT = "child-onboarding";
3
3
  //# sourceMappingURL=Constants.d.ts.map