@opencrvs/toolkit 1.8.0-rc.fc4c805 → 1.8.0-rc.fcb9386
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 +6983 -4338
- package/dist/commons/conditionals/conditionals.d.ts +2 -1
- package/dist/commons/events/ActionConfig.d.ts +40400 -36948
- package/dist/commons/events/ActionDocument.d.ts +292 -105
- package/dist/commons/events/ActionInput.d.ts +75 -3
- package/dist/commons/events/AdvancedSearchConfig.d.ts +603 -12
- package/dist/commons/events/Constants.d.ts +2 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +2982 -0
- package/dist/commons/events/CreatedAtLocation.d.ts +3 -0
- package/dist/commons/events/Draft.d.ts +10 -5
- package/dist/commons/events/EventConfig.d.ts +14558 -14829
- package/dist/commons/events/EventDocument.d.ts +212 -93
- package/dist/commons/events/EventIndex.d.ts +298 -319
- package/dist/commons/events/EventInput.d.ts +0 -13
- package/dist/commons/events/EventMetadata.d.ts +38 -44
- package/dist/commons/events/FieldConfig.d.ts +517 -0
- package/dist/commons/events/FormConfig.d.ts +3641 -467
- package/dist/commons/events/PageConfig.d.ts +782 -0
- package/dist/commons/events/User.d.ts +31 -7
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +4033 -644
- package/dist/commons/events/defineConfig.d.ts +3050 -3519
- package/dist/commons/events/event.d.ts +37 -10
- package/dist/commons/events/field.d.ts +21 -7
- package/dist/commons/events/index.d.ts +4 -0
- package/dist/commons/events/scopes.d.ts +21 -2
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +26 -6
- package/dist/commons/events/utils.d.ts +117 -1
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +19 -2
- package/dist/events/index.js +2382 -988
- package/dist/scopes/index.d.ts +158 -1
- package/dist/scopes/index.js +152 -1
- package/package.json +1 -1
@@ -33,6 +33,23 @@ __export(conditionals_exports, {
|
|
33
33
|
});
|
34
34
|
module.exports = __toCommonJS(conditionals_exports);
|
35
35
|
|
36
|
+
// ../commons/src/events/serializers/user/serializer.ts
|
37
|
+
var import_zod = require("zod");
|
38
|
+
var SerializedUserField = import_zod.z.object({
|
39
|
+
$userField: import_zod.z.enum([
|
40
|
+
"id",
|
41
|
+
"name",
|
42
|
+
"role",
|
43
|
+
"signatureFilename",
|
44
|
+
"primaryOfficeId"
|
45
|
+
])
|
46
|
+
});
|
47
|
+
function userSerializer(userField) {
|
48
|
+
return {
|
49
|
+
$userField: userField
|
50
|
+
};
|
51
|
+
}
|
52
|
+
|
36
53
|
// ../commons/src/conditionals/conditionals.ts
|
37
54
|
function defineConditional(schema) {
|
38
55
|
return schema;
|
@@ -74,7 +91,7 @@ function not(condition) {
|
|
74
91
|
function never() {
|
75
92
|
return not(alwaysTrue());
|
76
93
|
}
|
77
|
-
var user = {
|
94
|
+
var user = Object.assign(userSerializer, {
|
78
95
|
hasScope: (scope) => defineConditional({
|
79
96
|
type: "object",
|
80
97
|
properties: {
|
@@ -94,7 +111,7 @@ var user = {
|
|
94
111
|
},
|
95
112
|
required: ["$user"]
|
96
113
|
})
|
97
|
-
};
|
114
|
+
});
|
98
115
|
function createEventConditionals() {
|
99
116
|
return {
|
100
117
|
/**
|