@opencrvs/toolkit 1.9.16-rc.a94059f → 1.9.16-rc.c18e3d3
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/commons/api/router.d.ts +198 -193
- package/dist/commons/events/ActionConfig.d.ts +28 -0
- package/dist/commons/events/ActionDocument.d.ts +129 -129
- package/dist/commons/events/Draft.d.ts +5 -5
- package/dist/commons/events/EventConfig.d.ts +25 -0
- package/dist/commons/events/EventDocument.d.ts +90 -90
- package/dist/commons/events/EventIndex.d.ts +17 -17
- package/dist/commons/events/EventMetadata.d.ts +33 -33
- package/dist/commons/events/FormConfig.d.ts +30 -0
- package/dist/commons/events/PageConfig.d.ts +6 -0
- package/dist/commons/events/defineConfig.d.ts +5 -0
- package/dist/commons/events/state/index.d.ts +3 -3
- package/dist/commons/events/state/utils.d.ts +20 -20
- package/dist/commons/events/utils.d.ts +9 -0
- package/dist/events/index.js +7 -3
- package/dist/notification/index.js +7 -3
- package/package.json +1 -1
|
@@ -998,7 +998,7 @@ var ActionBase = import_zod13.z.object({
|
|
|
998
998
|
),
|
|
999
999
|
createdAt: import_zod13.z.string().datetime().describe("Timestamp indicating when the action was created."),
|
|
1000
1000
|
createdBy: import_zod13.z.string().describe("Identifier of the user who created the action."),
|
|
1001
|
-
createdByRole: import_zod13.z.string().describe("Role of the user who created the action."),
|
|
1001
|
+
createdByRole: import_zod13.z.string().optional().describe("Role of the user who created the action."),
|
|
1002
1002
|
createdBySignature: import_zod13.z.string().nullish().describe("Reference to the signature of the user who created the action."),
|
|
1003
1003
|
createdAtLocation: CreatedAtLocation.describe(
|
|
1004
1004
|
"Reference to the location of the user who created the action."
|
|
@@ -1202,7 +1202,7 @@ var ActionCreationMetadata = import_zod14.z.object({
|
|
|
1202
1202
|
),
|
|
1203
1203
|
createdByUserType: import_zod14.z.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
|
|
1204
1204
|
acceptedAt: import_zod14.z.string().datetime().describe("Timestamp when the action request was accepted."),
|
|
1205
|
-
createdByRole: import_zod14.z.string().describe("Role of the user at the time of action request creation."),
|
|
1205
|
+
createdByRole: import_zod14.z.string().optional().describe("Role of the user at the time of action request creation."),
|
|
1206
1206
|
createdBySignature: import_zod14.z.string().nullish().describe("Signature of the user who created the action request.")
|
|
1207
1207
|
});
|
|
1208
1208
|
var RegistrationCreationMetadata = ActionCreationMetadata.extend({
|
|
@@ -1225,7 +1225,7 @@ var EventMetadata = import_zod14.z.object({
|
|
|
1225
1225
|
dateOfEvent: ZodDate.nullish(),
|
|
1226
1226
|
createdBy: import_zod14.z.string().describe("ID of the user who created the event."),
|
|
1227
1227
|
createdByUserType: import_zod14.z.enum(["user", "system"]).nullish().describe("Whether the user is a normal user or a system."),
|
|
1228
|
-
updatedByUserRole: import_zod14.z.string().describe("Role of the user who last changed the status."),
|
|
1228
|
+
updatedByUserRole: import_zod14.z.string().optional().describe("Role of the user who last changed the status."),
|
|
1229
1229
|
createdAtLocation: CreatedAtLocation.describe(
|
|
1230
1230
|
"Location of the user who created the event."
|
|
1231
1231
|
),
|
|
@@ -2090,6 +2090,9 @@ var PageConfigBase = import_zod18.z.object({
|
|
|
2090
2090
|
requireCompletionToContinue: import_zod18.z.boolean().default(false).describe(
|
|
2091
2091
|
"If true, all required fields must be filled before continuing to the next page"
|
|
2092
2092
|
),
|
|
2093
|
+
showClearButton: import_zod18.z.boolean().optional().describe(
|
|
2094
|
+
'If true, a "Clear" button is shown at the top of the page allowing the user to reset all fields on the page to their default state'
|
|
2095
|
+
),
|
|
2093
2096
|
fields: import_zod18.z.array(FieldConfig).describe("Fields to be rendered on the page"),
|
|
2094
2097
|
conditional: Conditional.optional().describe(
|
|
2095
2098
|
"Page will be shown if condition is met. If conditional is not defined, the page will be always shown."
|
|
@@ -4876,6 +4879,7 @@ var TENNIS_CLUB_DECLARATION_FORM = defineDeclarationForm({
|
|
|
4876
4879
|
defaultMessage: "Who is applying for the membership?",
|
|
4877
4880
|
description: "This is the title of the section"
|
|
4878
4881
|
},
|
|
4882
|
+
showClearButton: true,
|
|
4879
4883
|
fields: [
|
|
4880
4884
|
{
|
|
4881
4885
|
id: "applicant.name",
|