@opencrvs/toolkit 2.2.0-rc.3af310b → 2.2.0-rc.3de6f63
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/dist/application-config/index.js +5 -5
- package/dist/authentication/index.d.ts +1 -0
- package/dist/authentication/index.js +16 -4
- package/dist/cli.js +586 -303
- package/dist/commons/api/router.d.ts +246 -246
- package/dist/commons/application-config/index.d.ts +2 -2
- package/dist/commons/conditionals/index.d.ts +1 -0
- package/dist/commons/conditionals/validate.d.ts +5 -0
- package/dist/commons/events/ActionConfig.d.ts +2 -2
- package/dist/commons/events/ActionDocument.d.ts +1 -0
- package/dist/commons/events/ActionInput.d.ts +4 -4
- package/dist/commons/events/AdvancedSearchConfig.d.ts +3 -0
- package/dist/commons/events/CompositeFieldValue.d.ts +5 -1
- package/dist/commons/events/EventConfig.d.ts +1 -10
- package/dist/commons/events/EventIndex.d.ts +2 -2
- package/dist/commons/events/FieldConfig.d.ts +1 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +6 -6
- package/dist/commons/events/Flag.d.ts +1 -1
- package/dist/commons/events/PlainDate.d.ts +1 -0
- package/dist/commons/events/eventConfigValidation.d.ts +1 -1
- package/dist/commons/events/field.d.ts +5 -0
- package/dist/commons/events/index.d.ts +3 -0
- package/dist/commons/events/test.utils.d.ts +2 -3
- package/dist/commons/events/toNotificationForm.d.ts +17 -0
- package/dist/commons/events/utils.d.ts +26 -5
- package/dist/conditionals/index.js +2 -2
- package/dist/environment/custom-types.d.ts +1 -0
- package/dist/environment/custom-types.d.ts.map +1 -1
- package/dist/environment/derived-variables.d.ts +6 -4
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/derived-variables.js +6 -4
- package/dist/environment/questions.d.ts +14 -2
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/questions.js +39 -18
- package/dist/environment/registry.d.ts +15 -0
- package/dist/environment/registry.d.ts.map +1 -0
- package/dist/environment/registry.js +112 -0
- package/dist/environment/setup-environment.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +76 -28
- package/dist/events/index.js +197 -143
- package/dist/migrations/add-notify-config.d.ts +40 -0
- package/dist/migrations/add-notify-config.d.ts.map +1 -0
- package/dist/migrations/add-notify-config.js +249 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/index.js +345 -143
- package/dist/migrations/move-declaration-to-declare-action.d.ts.map +1 -1
- package/dist/migrations/move-declaration-to-declare-action.js +27 -144
- package/dist/migrations/read-declaration-through-helper.d.ts.map +1 -1
- package/dist/migrations/read-declaration-through-helper.js +3 -61
- package/dist/migrations/utils.d.ts +61 -0
- package/dist/migrations/utils.d.ts.map +1 -0
- package/dist/migrations/utils.js +218 -0
- package/dist/notification/index.js +267 -81
- package/dist/scopes/index.d.ts +54 -51
- package/dist/scopes/index.js +12 -4
- package/dist/templates/charts-values/opencrvs-services/values.yaml +3 -4
- package/opencrvs-toolkit-2.2.0-rc.3de6f63.tgz +0 -0
- package/package.json +3 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/dist/commons/events/notificationFormFallback.d.ts +0 -10
- package/dist/environment/dockerhub.d.ts +0 -15
- package/dist/environment/dockerhub.d.ts.map +0 -1
- package/dist/environment/dockerhub.js +0 -104
- package/opencrvs-toolkit-2.2.0-rc.3af310b.tgz +0 -0
|
@@ -23,7 +23,7 @@ export declare const ApplicationConfig: z.ZodObject<{
|
|
|
23
23
|
id: z.ZodString;
|
|
24
24
|
label: z.ZodObject<import("./events/TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
25
25
|
}, z.core.$strip>>;
|
|
26
|
-
PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.
|
|
26
|
+
PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.ZodInstanceOf<RegExp>]>;
|
|
27
27
|
USER_NOTIFICATION_DELIVERY_METHOD: z.ZodEnum<{
|
|
28
28
|
email: "email";
|
|
29
29
|
sms: "sms";
|
|
@@ -60,7 +60,7 @@ export declare const LoginConfig: z.ZodObject<{
|
|
|
60
60
|
email: "email";
|
|
61
61
|
sms: "sms";
|
|
62
62
|
}>;
|
|
63
|
-
PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.
|
|
63
|
+
PHONE_NUMBER_PATTERN: z.ZodUnion<[z.ZodString, z.ZodInstanceOf<RegExp>]>;
|
|
64
64
|
LOGIN_BACKGROUND: z.ZodObject<{
|
|
65
65
|
backgroundColor: z.ZodOptional<z.ZodString>;
|
|
66
66
|
backgroundImage: z.ZodOptional<z.ZodString>;
|
|
@@ -141,6 +141,11 @@ export declare const errorMessages: {
|
|
|
141
141
|
description: string;
|
|
142
142
|
id: string;
|
|
143
143
|
};
|
|
144
|
+
notInNotifyForm: {
|
|
145
|
+
defaultMessage: string;
|
|
146
|
+
description: string;
|
|
147
|
+
id: string;
|
|
148
|
+
};
|
|
144
149
|
correctionNotAllowed: {
|
|
145
150
|
defaultMessage: string;
|
|
146
151
|
description: string;
|
|
@@ -199,7 +199,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
199
199
|
conditional: z.ZodAny;
|
|
200
200
|
}, z.core.$strip>], "type">>>;
|
|
201
201
|
type: z.ZodLiteral<"NOTIFY">;
|
|
202
|
-
notificationForm: z.
|
|
202
|
+
notificationForm: z.ZodObject<{
|
|
203
203
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
204
204
|
pages: z.ZodArray<z.ZodObject<{
|
|
205
205
|
id: z.ZodString;
|
|
@@ -210,7 +210,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
210
210
|
conditional: z.ZodOptional<z.ZodAny>;
|
|
211
211
|
type: z.ZodDefault<z.ZodLiteral<"FORM">>;
|
|
212
212
|
}, z.core.$strip>>;
|
|
213
|
-
}, z.core.$strip
|
|
213
|
+
}, z.core.$strip>;
|
|
214
214
|
review: z.ZodObject<{
|
|
215
215
|
title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
216
216
|
fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
|
|
@@ -743,6 +743,7 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
743
743
|
customActionType: z.ZodString;
|
|
744
744
|
}, z.core.$strip>], "type">;
|
|
745
745
|
export type ActionDocument = z.infer<typeof ActionDocument>;
|
|
746
|
+
export declare const isActionDocument: (a: unknown) => a is ActionDocument;
|
|
746
747
|
export declare const AsyncRejectActionDocument: z.ZodObject<{
|
|
747
748
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
748
749
|
transactionId: z.ZodString;
|
|
@@ -29,14 +29,14 @@ export type RegisterActionInput = z.infer<typeof RegisterActionInput>;
|
|
|
29
29
|
export declare const NotifyActionInput: z.ZodObject<{
|
|
30
30
|
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
31
31
|
transactionId: z.ZodString;
|
|
32
|
-
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
33
|
-
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
34
32
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
35
33
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
36
34
|
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
37
35
|
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
38
36
|
waitFor: z.ZodDefault<z.ZodBoolean>;
|
|
39
37
|
type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
|
|
38
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
39
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
40
40
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
41
41
|
}, z.core.$strip>;
|
|
42
42
|
export type NotifyActionInput = z.infer<typeof NotifyActionInput>;
|
|
@@ -359,14 +359,14 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
359
359
|
}, z.core.$strip>, z.ZodObject<{
|
|
360
360
|
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
361
361
|
transactionId: z.ZodString;
|
|
362
|
-
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
363
|
-
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
364
362
|
originalActionId: z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>;
|
|
365
363
|
keepAssignment: z.ZodOptional<z.ZodBoolean>;
|
|
366
364
|
keepAssignmentIfAccepted: z.ZodOptional<z.ZodBoolean>;
|
|
367
365
|
keepAssignmentIfRejected: z.ZodOptional<z.ZodBoolean>;
|
|
368
366
|
waitFor: z.ZodDefault<z.ZodBoolean>;
|
|
369
367
|
type: z.ZodDefault<z.ZodLiteral<"NOTIFY">>;
|
|
368
|
+
declaration: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
369
|
+
annotation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>>;
|
|
370
370
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
371
371
|
}, z.core.$strip>, z.ZodObject<{
|
|
372
372
|
eventId: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
@@ -161,6 +161,7 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
161
161
|
}, z.core.$strip>>;
|
|
162
162
|
fieldId: z.ZodString;
|
|
163
163
|
fieldType: z.ZodLiteral<"field">;
|
|
164
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber]>>;
|
|
164
165
|
}, z.core.$strip>;
|
|
165
166
|
/**
|
|
166
167
|
* The event fields that are available for advanced search, date of event, summary. These are the values
|
|
@@ -513,6 +514,7 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
513
514
|
}, z.core.$strip>>;
|
|
514
515
|
fieldId: z.ZodString;
|
|
515
516
|
fieldType: z.ZodLiteral<"field">;
|
|
517
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber]>>;
|
|
516
518
|
}, z.core.$strip>, z.ZodObject<{
|
|
517
519
|
config: z.ZodObject<{
|
|
518
520
|
type: z.ZodEnum<{
|
|
@@ -836,6 +838,7 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
836
838
|
}, z.core.$strip>>;
|
|
837
839
|
fieldId: z.ZodString;
|
|
838
840
|
fieldType: z.ZodLiteral<"field">;
|
|
841
|
+
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodString, z.ZodNumber]>>;
|
|
839
842
|
}, z.core.$strip>, z.ZodObject<{
|
|
840
843
|
config: z.ZodObject<{
|
|
841
844
|
type: z.ZodEnum<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from 'zod
|
|
1
|
+
import * as z from 'zod';
|
|
2
2
|
/**
|
|
3
3
|
* Composite field value consists of multiple field values.
|
|
4
4
|
*/
|
|
@@ -16,6 +16,7 @@ export declare const FileFieldValue: z.ZodObject<{
|
|
|
16
16
|
type: z.ZodString;
|
|
17
17
|
}, z.core.$strip>;
|
|
18
18
|
export type FileFieldValue = z.infer<typeof FileFieldValue>;
|
|
19
|
+
export declare function isFileFieldValue(value: unknown): value is FileFieldValue;
|
|
19
20
|
export declare const NameFieldValue: z.ZodObject<{
|
|
20
21
|
firstname: z.ZodString;
|
|
21
22
|
surname: z.ZodString;
|
|
@@ -36,6 +37,7 @@ export declare const DomesticAddressFieldValue: z.ZodObject<{
|
|
|
36
37
|
administrativeArea: z.ZodString;
|
|
37
38
|
}, z.core.$strip>;
|
|
38
39
|
export type DomesticAddressFieldValue = z.infer<typeof DomesticAddressFieldValue>;
|
|
40
|
+
export declare function isDomesticAddressFieldValue(value: unknown): value is DomesticAddressFieldValue;
|
|
39
41
|
export declare const AddressFieldValue: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
40
42
|
country: z.ZodString;
|
|
41
43
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -46,6 +48,7 @@ export declare const AddressFieldValue: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
46
48
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
47
49
|
addressType: z.ZodLiteral<"INTERNATIONAL">;
|
|
48
50
|
}, z.core.$strip>], "addressType">;
|
|
51
|
+
export declare function isAddressFieldValue(value: unknown): value is AddressFieldValue;
|
|
49
52
|
export type AddressFieldValue = z.infer<typeof AddressFieldValue>;
|
|
50
53
|
export declare const AddressFieldUpdateValue: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
51
54
|
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -72,6 +75,7 @@ export declare const FileFieldWithOptionValue: z.ZodArray<z.ZodObject<{
|
|
|
72
75
|
option: z.ZodString;
|
|
73
76
|
}, z.core.$strip>>;
|
|
74
77
|
export type FileFieldWithOptionValue = z.infer<typeof FileFieldWithOptionValue>;
|
|
78
|
+
export declare function isFileFieldWithOptionValue(value: unknown): value is FileFieldWithOptionValue;
|
|
75
79
|
export declare const HttpFieldValue: z.ZodObject<{
|
|
76
80
|
loading: z.ZodBoolean;
|
|
77
81
|
error: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -40,9 +40,6 @@ type ActionConfigInput = z.input<typeof ActionConfig>;
|
|
|
40
40
|
type DeclareActionConfigInput = Extract<ActionConfigInput, {
|
|
41
41
|
type: typeof ActionType.DECLARE;
|
|
42
42
|
}>;
|
|
43
|
-
type NotifyActionConfigInput = Extract<ActionConfigInput, {
|
|
44
|
-
type: typeof ActionType.NOTIFY;
|
|
45
|
-
}>;
|
|
46
43
|
/**
|
|
47
44
|
* Input accepted by `EventConfig.parse`. `declaration` lives only on the DECLARE action,
|
|
48
45
|
* and NOTIFY carries its `notificationForm` and `review`.
|
|
@@ -60,18 +57,12 @@ type EventConfigSchemaInput = Omit<EventConfig, 'advancedSearch' | 'flags' | 'ac
|
|
|
60
57
|
* `declaration` may be given at the top level (kept for backwards compatibility)
|
|
61
58
|
* or on the DECLARE action.
|
|
62
59
|
* `defineConfig` checks at runtime that it is given in exactly one of these places.
|
|
63
|
-
*
|
|
64
|
-
* The NOTIFY action, and its `notificationForm` and `review`, are optional.
|
|
65
|
-
* `defineConfig` generates whatever is missing from the DECLARE action.
|
|
66
60
|
*/
|
|
67
61
|
export type EventConfigInput = Omit<EventConfigSchemaInput, 'actions'> & {
|
|
68
62
|
/** @deprecated Define `declaration` on the DECLARE action instead. */
|
|
69
63
|
declaration?: DeclarationFormConfigInput;
|
|
70
|
-
actions: Array<Exclude<ActionConfigInput, DeclareActionConfigInput
|
|
64
|
+
actions: Array<Exclude<ActionConfigInput, DeclareActionConfigInput> | (Omit<DeclareActionConfigInput, 'declaration'> & {
|
|
71
65
|
declaration?: DeclarationFormConfigInput;
|
|
72
|
-
}) | (Omit<NotifyActionConfigInput, 'notificationForm' | 'review'> & {
|
|
73
|
-
notificationForm?: NotifyActionConfigInput['notificationForm'];
|
|
74
|
-
review?: NotifyActionConfigInput['review'];
|
|
75
66
|
})>;
|
|
76
67
|
};
|
|
77
68
|
export declare const EventConfig: z.ZodType<EventConfig, EventConfigSchemaInput>;
|
|
@@ -355,7 +355,7 @@ export type QueryTypeShape = {
|
|
|
355
355
|
};
|
|
356
356
|
export declare const QueryType: z.ZodType<QueryTypeShape>;
|
|
357
357
|
export declare const SearchQuery: z.ZodObject<{
|
|
358
|
-
query: z.ZodPreprocess<ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown
|
|
358
|
+
query: z.ZodPreprocess<ZodType<QueryTypeShape, unknown, z.core.$ZodTypeInternals<QueryTypeShape, unknown>>, unknown>;
|
|
359
359
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
360
360
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
361
361
|
sort: z.ZodOptional<z.ZodPreprocess<z.ZodArray<z.ZodObject<{
|
|
@@ -364,7 +364,7 @@ export declare const SearchQuery: z.ZodObject<{
|
|
|
364
364
|
asc: "asc";
|
|
365
365
|
desc: "desc";
|
|
366
366
|
}>>;
|
|
367
|
-
}, z.core.$strip
|
|
367
|
+
}, z.core.$strip>>, unknown>>;
|
|
368
368
|
}, z.core.$strip>;
|
|
369
369
|
export type SearchQuery = z.infer<typeof SearchQuery>;
|
|
370
370
|
export type QueryType = z.infer<typeof QueryType>;
|
|
@@ -3101,7 +3101,7 @@ declare const SearchField: z.ZodObject<{
|
|
|
3101
3101
|
}, z.core.$strip>]>>;
|
|
3102
3102
|
type: z.ZodLiteral<"SEARCH">;
|
|
3103
3103
|
configuration: z.ZodObject<{
|
|
3104
|
-
query: z.ZodPreprocess<z.ZodType<import("./EventIndex").QueryTypeShape, unknown, z.core.$ZodTypeInternals<import("./EventIndex").QueryTypeShape, unknown
|
|
3104
|
+
query: z.ZodPreprocess<z.ZodType<import("./EventIndex").QueryTypeShape, unknown, z.core.$ZodTypeInternals<import("./EventIndex").QueryTypeShape, unknown>>, unknown>;
|
|
3105
3105
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3106
3106
|
offset: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3107
3107
|
validation: z.ZodObject<{
|
|
@@ -31,6 +31,9 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
31
31
|
}>, z.core.$strip> | z.ZodObject<{
|
|
32
32
|
age: z.ZodNumber;
|
|
33
33
|
asOfDateRef: z.ZodString;
|
|
34
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
35
|
+
label: z.ZodString;
|
|
36
|
+
value: z.ZodString;
|
|
34
37
|
}, z.core.$strip> | z.ZodObject<{
|
|
35
38
|
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
36
39
|
originalFilename: z.ZodString;
|
|
@@ -43,9 +46,6 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
43
46
|
}, z.core.$strip> | z.ZodObject<{
|
|
44
47
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
45
48
|
unit: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, z.core.$strip> | z.ZodObject<{
|
|
47
|
-
label: z.ZodString;
|
|
48
|
-
value: z.ZodString;
|
|
49
49
|
}, z.core.$strip> | z.ZodObject<{
|
|
50
50
|
data: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
51
51
|
}, z.core.$strip> | z.ZodObject<{
|
|
@@ -67,6 +67,9 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
67
67
|
}>, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
68
68
|
age: z.ZodNumber;
|
|
69
69
|
asOfDateRef: z.ZodString;
|
|
70
|
+
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
71
|
+
label: z.ZodString;
|
|
72
|
+
value: z.ZodString;
|
|
70
73
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
71
74
|
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
72
75
|
originalFilename: z.ZodString;
|
|
@@ -79,9 +82,6 @@ export declare function mapFieldTypeToZod(field: FieldConfig, actionType?: Actio
|
|
|
79
82
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
80
83
|
numericValue: z.ZodOptional<z.ZodNumber>;
|
|
81
84
|
unit: z.ZodOptional<z.ZodString>;
|
|
82
|
-
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
83
|
-
label: z.ZodString;
|
|
84
|
-
value: z.ZodString;
|
|
85
85
|
}, z.core.$strip>>> | z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
86
86
|
data: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
87
87
|
country: z.ZodString;
|
|
@@ -9,6 +9,7 @@ import { z } from 'zod';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare const PlainDate: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
11
11
|
export type PlainDate = z.infer<typeof PlainDate>;
|
|
12
|
+
export declare const isPlainDate: (date: unknown) => date is PlainDate;
|
|
12
13
|
/**
|
|
13
14
|
* Extracts the plain calendar date from an ISO 8601 datetime (or passes an
|
|
14
15
|
* already-plain YYYY-MM-DD through) as a {@link PlainDate}. This is the single
|
|
@@ -22,7 +22,7 @@ export declare function validateExactlyOneDeclareAction<T extends {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare function validateDeclarationGivenExactlyOnce(config: EventConfigInput, ctx: z.RefinementCtx<EventConfigInput>): void;
|
|
24
24
|
/**
|
|
25
|
-
* Validation which ensures that
|
|
25
|
+
* Validation which ensures that a NOTIFY notificationForm:
|
|
26
26
|
* - only includes fields with ids that are also in the declaration form
|
|
27
27
|
* - the field types match the ones on the declaration form
|
|
28
28
|
*
|
|
@@ -37,6 +37,7 @@ export declare function field(fieldId: string, options?: {
|
|
|
37
37
|
validations?: ValidationConfig[];
|
|
38
38
|
searchCriteriaLabelPrefix?: TranslationConfig;
|
|
39
39
|
allowedLocations?: JurisdictionReference;
|
|
40
|
+
defaultValue?: boolean | string | number;
|
|
40
41
|
}): {
|
|
41
42
|
$$field: string;
|
|
42
43
|
$$subfield: string[];
|
|
@@ -387,6 +388,7 @@ export declare function field(fieldId: string, options?: {
|
|
|
387
388
|
validations?: ValidationConfig[];
|
|
388
389
|
searchCriteriaLabelPrefix?: TranslationConfig;
|
|
389
390
|
allowedLocations?: JurisdictionReference;
|
|
391
|
+
defaultValue?: boolean | string | number;
|
|
390
392
|
fieldId: string;
|
|
391
393
|
fieldType: 'field';
|
|
392
394
|
} & {
|
|
@@ -400,6 +402,7 @@ export declare function field(fieldId: string, options?: {
|
|
|
400
402
|
validations?: ValidationConfig[];
|
|
401
403
|
searchCriteriaLabelPrefix?: TranslationConfig;
|
|
402
404
|
allowedLocations?: JurisdictionReference;
|
|
405
|
+
defaultValue?: boolean | string | number;
|
|
403
406
|
fieldId: string;
|
|
404
407
|
fieldType: 'field';
|
|
405
408
|
} & {
|
|
@@ -413,6 +416,7 @@ export declare function field(fieldId: string, options?: {
|
|
|
413
416
|
validations?: ValidationConfig[];
|
|
414
417
|
searchCriteriaLabelPrefix?: TranslationConfig;
|
|
415
418
|
allowedLocations?: JurisdictionReference;
|
|
419
|
+
defaultValue?: boolean | string | number;
|
|
416
420
|
fieldId: string;
|
|
417
421
|
fieldType: 'field';
|
|
418
422
|
} & {
|
|
@@ -426,6 +430,7 @@ export declare function field(fieldId: string, options?: {
|
|
|
426
430
|
validations?: ValidationConfig[];
|
|
427
431
|
searchCriteriaLabelPrefix?: TranslationConfig;
|
|
428
432
|
allowedLocations?: JurisdictionReference;
|
|
433
|
+
defaultValue?: boolean | string | number;
|
|
429
434
|
fieldId: string;
|
|
430
435
|
fieldType: 'field';
|
|
431
436
|
} & {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import 'zod/compile';
|
|
1
2
|
export * from './AuditLog';
|
|
2
3
|
export * from './Constants';
|
|
3
4
|
export * from './ActionConfig';
|
|
@@ -25,6 +26,7 @@ export * from './state';
|
|
|
25
26
|
export * from './state/flags';
|
|
26
27
|
export * from './utils';
|
|
27
28
|
export * from './defineConfig';
|
|
29
|
+
export * from './toNotificationForm';
|
|
28
30
|
export * from './DeduplicationConfig';
|
|
29
31
|
export * from './transactions';
|
|
30
32
|
export * from './FieldType';
|
|
@@ -46,6 +48,7 @@ export * from './Flag';
|
|
|
46
48
|
export * from './event';
|
|
47
49
|
export * from './locations';
|
|
48
50
|
export * from './locationPayloads';
|
|
51
|
+
export * from './PlainDate';
|
|
49
52
|
export { UUID } from '../uuid';
|
|
50
53
|
export { DocumentPath } from '../documents';
|
|
51
54
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -352,10 +352,9 @@ export declare const generateEventConfig: ({ id, fields, placeOfEventId, dateOfE
|
|
|
352
352
|
actions?: EventConfigInput['actions'];
|
|
353
353
|
}) => EventConfig;
|
|
354
354
|
/**
|
|
355
|
-
* The notification form is
|
|
356
|
-
* `getNotificationForm` then derives it from the new declaration.
|
|
355
|
+
* The notification form is replaced too, since it may refer to fields of the replaced declaration.
|
|
357
356
|
*
|
|
358
|
-
* @returns a copy of the configuration with the DECLARE action's declaration replaced.
|
|
357
|
+
* @returns a copy of the configuration with the DECLARE action's declaration replaced, and the NOTIFY action's notification form made from it.
|
|
359
358
|
*/
|
|
360
359
|
export declare function withDeclaration(configuration: EventConfig, declaration: DeclarationFormConfig): EventConfig;
|
|
361
360
|
/**
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as z from 'zod/v4';
|
|
2
|
+
import { DeclarationFormConfig, DeclarationFormConfigInput } from './FormConfig';
|
|
3
|
+
import { DeclarationReviewConfig } from './ActionConfig';
|
|
4
|
+
type DeclarationReviewConfigInput = z.input<typeof DeclarationReviewConfig>;
|
|
5
|
+
type DeclarationReviewConfigOutput = z.infer<typeof DeclarationReviewConfig>;
|
|
6
|
+
/**
|
|
7
|
+
* NOTIFY submits incomplete records, and its notification form is validated like any form.
|
|
8
|
+
*
|
|
9
|
+
* @returns a copy of the declaration form with every field optional and without validations, to use as the NOTIFY `notificationForm`.
|
|
10
|
+
*/
|
|
11
|
+
export declare function toNotificationForm<F extends DeclarationFormConfig | DeclarationFormConfigInput>(declaration: F): F;
|
|
12
|
+
/**
|
|
13
|
+
* @returns a copy of the DECLARE review with every field optional and without validations, to use as the NOTIFY `review`.
|
|
14
|
+
*/
|
|
15
|
+
export declare function toNotificationReview<R extends DeclarationReviewConfigOutput | DeclarationReviewConfigInput>(review: R): R;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=toNotificationForm.d.ts.map
|
|
@@ -47,14 +47,35 @@ export declare function getDeclarationPages(configuration: EventConfig): {
|
|
|
47
47
|
}[];
|
|
48
48
|
export declare function getDeclarationFields(configuration: EventConfig): FieldConfig[];
|
|
49
49
|
/**
|
|
50
|
-
* @returns the notification form
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* The fallback is derived here rather than in `defineConfig`, so that it is not part of the
|
|
54
|
-
* served event configuration.
|
|
50
|
+
* @returns the notification form configured on the NOTIFY action.
|
|
51
|
+
* @throws when the event has no NOTIFY action.
|
|
55
52
|
*/
|
|
56
53
|
export declare function getNotificationForm(configuration: EventConfig): DeclarationFormConfig;
|
|
57
54
|
export declare function getNotificationFields(configuration: EventConfig): FieldConfig[];
|
|
55
|
+
/**
|
|
56
|
+
* Form a user fills in to submit the given action:
|
|
57
|
+
* the notification form for NOTIFY, the declaration form for DECLARE.
|
|
58
|
+
*/
|
|
59
|
+
export declare function getActionForm(configuration: EventConfig, actionType: typeof ActionType.NOTIFY | typeof ActionType.DECLARE): {
|
|
60
|
+
label: {
|
|
61
|
+
id: string;
|
|
62
|
+
defaultMessage: string;
|
|
63
|
+
description: string;
|
|
64
|
+
};
|
|
65
|
+
pages: {
|
|
66
|
+
id: string;
|
|
67
|
+
title: {
|
|
68
|
+
id: string;
|
|
69
|
+
defaultMessage: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
requireCompletionToContinue: boolean;
|
|
73
|
+
showClearButton?: boolean | undefined;
|
|
74
|
+
fields: FieldConfig[];
|
|
75
|
+
conditional?: any;
|
|
76
|
+
type: "FORM";
|
|
77
|
+
}[];
|
|
78
|
+
};
|
|
58
79
|
export declare function isActionConfigType(type: ActionType): type is ActionConfigTypes;
|
|
59
80
|
export declare function getActionConfig({ eventConfiguration, actionType, customActionType }: {
|
|
60
81
|
eventConfiguration: EventConfig;
|
|
@@ -262,7 +262,7 @@ var ActionStatus = {
|
|
|
262
262
|
};
|
|
263
263
|
|
|
264
264
|
// ../commons/src/events/Flag.ts
|
|
265
|
-
var z9 = __toESM(require("zod
|
|
265
|
+
var z9 = __toESM(require("zod"));
|
|
266
266
|
|
|
267
267
|
// ../commons/src/events/TranslationConfig.ts
|
|
268
268
|
var z7 = __toESM(require("zod/v4"));
|
|
@@ -358,7 +358,7 @@ var CustomFlag = z9.string().refine((val) => !Object.values(InherentFlags).inclu
|
|
|
358
358
|
message: `Custom flag cannot be one of the inherent flags: ${Object.values(
|
|
359
359
|
InherentFlags
|
|
360
360
|
).join(", ")}`
|
|
361
|
-
}).refine((val) => !ActionFlag.
|
|
361
|
+
}).refine((val) => !ActionFlag.validate(val), {
|
|
362
362
|
message: "Custom flag cannot match the ActionFlag pattern (ActionType:ActionStatus)."
|
|
363
363
|
}).describe("Custom flag identifier defined by the country config.");
|
|
364
364
|
var Flag = ActionFlag.or(z9.enum(InherentFlags)).or(CustomFlag);
|
|
@@ -5,6 +5,7 @@ export type Question<T extends string> = PromptObject<T> & {
|
|
|
5
5
|
valueType?: 'SECRET' | 'VARIABLE';
|
|
6
6
|
scope: 'ENVIRONMENT' | 'REPOSITORY';
|
|
7
7
|
valueLabel?: string;
|
|
8
|
+
legacyValueLabel?: string;
|
|
8
9
|
};
|
|
9
10
|
export type QuestionDescriptor<T extends string> = Omit<Question<T>, 'type'> & {
|
|
10
11
|
type: 'disabled' | PromptObject<T>['type'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-types.d.ts","sourceRoot":"","sources":["../../src/environment/custom-types.ts"],"names":[],"mappings":"AAWA,OAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAE3C,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC,GAAG;IACzD,IAAI,EAAE,CAAC,CAAA;IACP,SAAS,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAA;IACjC,KAAK,EAAE,aAAa,GAAG,YAAY,CAAA;IACnC,UAAU,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"custom-types.d.ts","sourceRoot":"","sources":["../../src/environment/custom-types.ts"],"names":[],"mappings":"AAWA,OAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC/C,OAAO,EAAE,MA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,CAAC,GACF,CAAC,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG;IAC/B,KAAK,EAAE,cAAc,CAAC,OAAO,CAAC,GAAG,IAAI,CAAA;CACtC,CAAC,CAAA"}
|
|
@@ -47,14 +47,16 @@ export declare const derivedVariables: readonly [{
|
|
|
47
47
|
readonly type: 'disabled';
|
|
48
48
|
readonly scope: 'ENVIRONMENT';
|
|
49
49
|
}, {
|
|
50
|
-
readonly name: '
|
|
51
|
-
readonly valueLabel: '
|
|
50
|
+
readonly name: 'S3_ADMIN_ACCESS_KEY';
|
|
51
|
+
readonly valueLabel: 'S3_ADMIN_ACCESS_KEY';
|
|
52
|
+
readonly legacyValueLabel: 'MINIO_ROOT_USER';
|
|
52
53
|
readonly valueType: 'SECRET';
|
|
53
54
|
readonly type: 'disabled';
|
|
54
55
|
readonly scope: 'ENVIRONMENT';
|
|
55
56
|
}, {
|
|
56
|
-
readonly name: '
|
|
57
|
-
readonly valueLabel: '
|
|
57
|
+
readonly name: 'S3_ADMIN_SECRET_KEY';
|
|
58
|
+
readonly valueLabel: 'S3_ADMIN_SECRET_KEY';
|
|
59
|
+
readonly legacyValueLabel: 'MINIO_ROOT_PASSWORD';
|
|
58
60
|
readonly valueType: 'SECRET';
|
|
59
61
|
readonly type: 'disabled';
|
|
60
62
|
readonly scope: 'ENVIRONMENT';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derived-variables.d.ts","sourceRoot":"","sources":["../../src/environment/derived-variables.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB;aAEzB,IAAI,EAAE,gBAAgB;aACtB,UAAU,EAAE,gBAAgB;aAC5B,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,qBAAqB;aAC3B,UAAU,EAAE,qBAAqB;aACjC,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,cAAc;aACpB,UAAU,EAAE,cAAc;aAC1B,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,kCAAkC;aACxC,UAAU,EAAE,kCAAkC;aAC9C,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,gBAAgB;aACtB,UAAU,EAAE,gBAAgB;aAC5B,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,WAAW;aACjB,UAAU,EAAE,WAAW;aACvB,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,kCAAkC;aACxC,UAAU,EAAE,kCAAkC;aAC9C,SAAS,EAAE,QAAQ;aACnB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,wBAAwB;aAC9B,UAAU,EAAE,wBAAwB;aACpC,SAAS,EAAE,QAAQ;aACnB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"derived-variables.d.ts","sourceRoot":"","sources":["../../src/environment/derived-variables.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB;aAEzB,IAAI,EAAE,gBAAgB;aACtB,UAAU,EAAE,gBAAgB;aAC5B,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,qBAAqB;aAC3B,UAAU,EAAE,qBAAqB;aACjC,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,cAAc;aACpB,UAAU,EAAE,cAAc;aAC1B,SAAS,EAAE,UAAU;aAC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,wBAAwB;aACpC,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,gBAAgB;aACtB,UAAU,EAAE,gBAAgB;aAC5B,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;;aAGpB,IAAI,EAAE,oBAAoB;aAC1B,UAAU,EAAE,oBAAoB;aAChC,SAAS,EAAE,UAAU;aACrB,IAAI,EAAE,UAAU;aAChB,KAAK,EAAE,aAAa;EAEd,CAAA"}
|
|
@@ -69,15 +69,17 @@ exports.derivedVariables = [
|
|
|
69
69
|
scope: 'ENVIRONMENT'
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
|
-
name: '
|
|
73
|
-
valueLabel: '
|
|
72
|
+
name: 'S3_ADMIN_ACCESS_KEY',
|
|
73
|
+
valueLabel: 'S3_ADMIN_ACCESS_KEY',
|
|
74
|
+
legacyValueLabel: 'MINIO_ROOT_USER',
|
|
74
75
|
valueType: 'SECRET',
|
|
75
76
|
type: 'disabled',
|
|
76
77
|
scope: 'ENVIRONMENT'
|
|
77
78
|
},
|
|
78
79
|
{
|
|
79
|
-
name: '
|
|
80
|
-
valueLabel: '
|
|
80
|
+
name: 'S3_ADMIN_SECRET_KEY',
|
|
81
|
+
valueLabel: 'S3_ADMIN_SECRET_KEY',
|
|
82
|
+
legacyValueLabel: 'MINIO_ROOT_PASSWORD',
|
|
81
83
|
valueType: 'SECRET',
|
|
82
84
|
type: 'disabled',
|
|
83
85
|
scope: 'ENVIRONMENT'
|
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
declare const notEmpty: (value: string | number) => "Please enter a value" | true;
|
|
2
2
|
declare function validateCIDRs(input: string): true | string;
|
|
3
|
-
|
|
3
|
+
declare function validateRegistryHost(input: string): true | string;
|
|
4
|
+
export declare const registryQuestions: ({
|
|
5
|
+
name: string;
|
|
6
|
+
type: 'text';
|
|
7
|
+
message: string;
|
|
8
|
+
valueType: 'VARIABLE';
|
|
9
|
+
valueLabel: string;
|
|
10
|
+
validate: typeof validateRegistryHost;
|
|
11
|
+
initial: string;
|
|
12
|
+
scope: 'REPOSITORY';
|
|
13
|
+
legacyValueLabel?: undefined;
|
|
14
|
+
} | {
|
|
4
15
|
name: string;
|
|
5
16
|
type: 'text';
|
|
6
17
|
message: string;
|
|
7
18
|
valueType: 'SECRET';
|
|
8
19
|
valueLabel: string;
|
|
20
|
+
legacyValueLabel: string;
|
|
9
21
|
validate: typeof notEmpty;
|
|
10
22
|
initial: string | undefined;
|
|
11
23
|
scope: 'REPOSITORY';
|
|
12
|
-
}[];
|
|
24
|
+
})[];
|
|
13
25
|
export declare const githubQuestions: {
|
|
14
26
|
name: string;
|
|
15
27
|
type: 'text';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../src/environment/questions.ts"],"names":[],"mappings":"AAeA,QAAA,MAAM,QAAQ,UAAW,MAAM,GAAG,MAAM,kCAC4B,CAAA;AAepE,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAgBnD;
|
|
1
|
+
{"version":3,"file":"questions.d.ts","sourceRoot":"","sources":["../../src/environment/questions.ts"],"names":[],"mappings":"AAeA,QAAA,MAAM,QAAQ,UAAW,MAAM,GAAG,MAAM,kCAC4B,CAAA;AAepE,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAgBnD;AAGD,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAI1D;AAGD,eAAO,MAAM,iBAAiB;;UAGpB,MAAM;;eAGD,UAAU;;;;WAId,YAAY;;;;UAIb,MAAM;;eAGD,QAAQ;;;;;WAKZ,YAAY;IAoCtB,CAAA;AAED,eAAO,MAAM,eAAe;;UAGlB,MAAM;;;;WAIL,YAAY;GAUtB,CAAA;AACD,eAAO,M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