@opencrvs/toolkit 1.8.0-rc.fe87a15 → 1.8.0-rc.fe8c092
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 +6884 -614
- package/dist/commons/conditionals/conditionals.d.ts +4 -0
- package/dist/commons/conditionals/validate.d.ts +6 -0
- package/dist/commons/events/ActionConfig.d.ts +18678 -6326
- package/dist/commons/events/ActionDocument.d.ts +1923 -414
- package/dist/commons/events/ActionInput.d.ts +1504 -304
- package/dist/commons/events/ActionType.d.ts +6 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +75 -3
- package/dist/commons/events/CompositeFieldValue.d.ts +28 -0
- package/dist/commons/events/Constants.d.ts +1 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +254 -168
- package/dist/commons/events/CreatedAtLocation.d.ts +2 -1
- package/dist/commons/events/Draft.d.ts +134 -33
- package/dist/commons/events/EventConfig.d.ts +8242 -2365
- package/dist/commons/events/EventDocument.d.ts +1242 -298
- package/dist/commons/events/EventIndex.d.ts +798 -123
- package/dist/commons/events/EventMetadata.d.ts +62 -59
- package/dist/commons/events/FieldConfig.d.ts +1572 -746
- package/dist/commons/events/FieldType.d.ts +4 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +89 -50
- package/dist/commons/events/FieldValue.d.ts +41 -5
- package/dist/commons/events/FormConfig.d.ts +7640 -2444
- package/dist/commons/events/PageConfig.d.ts +2816 -1540
- package/dist/commons/events/SummaryConfig.d.ts +0 -5
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
- package/dist/commons/events/WorkqueueConfig.d.ts +3277 -1512
- package/dist/commons/events/defineConfig.d.ts +959 -13
- package/dist/commons/events/field.d.ts +4 -0
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/commons/events/scopes.d.ts +1 -2
- package/dist/commons/events/test.utils.d.ts +138 -40
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +9666 -16
- package/dist/conditionals/index.js +18 -1
- package/dist/events/index.js +1592 -1011
- package/dist/scopes/index.d.ts +4 -1
- package/dist/scopes/index.js +67 -17
- package/package.json +1 -1
@@ -237,7 +237,7 @@ function createFieldConditionals(fieldId) {
|
|
237
237
|
properties: {
|
238
238
|
[fieldId]: {
|
239
239
|
type: ["string", "boolean"],
|
240
|
-
const: { $data:
|
240
|
+
const: { $data: `/$form/${comparedFieldId}` }
|
241
241
|
},
|
242
242
|
[comparedFieldId]: { type: ["string", "boolean"] }
|
243
243
|
},
|
@@ -347,6 +347,23 @@ function createFieldConditionals(fieldId) {
|
|
347
347
|
}
|
348
348
|
},
|
349
349
|
required: [fieldId]
|
350
|
+
}),
|
351
|
+
getId: () => ({ fieldId }),
|
352
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
353
|
+
object: (options) => defineFormConditional({
|
354
|
+
type: "object",
|
355
|
+
properties: {
|
356
|
+
[fieldId]: {
|
357
|
+
type: "object",
|
358
|
+
properties: Object.fromEntries(
|
359
|
+
Object.entries(options).map(([key, value]) => {
|
360
|
+
return [key, value.properties.$form.properties[key]];
|
361
|
+
})
|
362
|
+
),
|
363
|
+
required: Object.keys(options)
|
364
|
+
}
|
365
|
+
},
|
366
|
+
required: [fieldId]
|
350
367
|
})
|
351
368
|
};
|
352
369
|
}
|