@opencrvs/toolkit 1.9.2-rc.c76ff3e → 1.9.2-rc.f6dcfa6
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 +1620 -26666
- package/dist/commons/conditionals/conditionals.d.ts +1 -10
- package/dist/commons/conditionals/validate.d.ts +4 -11
- package/dist/commons/events/ActionConfig.d.ts +1525 -21293
- package/dist/commons/events/ActionDocument.d.ts +1849 -764
- package/dist/commons/events/ActionInput.d.ts +1066 -264
- package/dist/commons/events/ActionType.d.ts +8 -85
- package/dist/commons/events/AdvancedSearchConfig.d.ts +1238 -211
- package/dist/commons/events/CompositeFieldValue.d.ts +176 -25
- package/dist/commons/events/Conditional.d.ts +38 -26
- package/dist/commons/events/Constants.d.ts +1 -1
- package/dist/commons/events/CountryConfigQueryInput.d.ts +4169 -919
- package/dist/commons/events/CreatedAtLocation.d.ts +1 -1
- package/dist/commons/events/DeduplicationConfig.d.ts +150 -15
- package/dist/commons/events/Draft.d.ts +105 -70
- package/dist/commons/events/DynamicFieldValue.d.ts +91 -7
- package/dist/commons/events/EventConfig.d.ts +2096 -17110
- package/dist/commons/events/EventConfigInput.d.ts +1 -1
- package/dist/commons/events/EventDocument.d.ts +1326 -311
- package/dist/commons/events/EventIndex.d.ts +967 -191
- package/dist/commons/events/EventInput.d.ts +8 -2
- package/dist/commons/events/EventMetadata.d.ts +345 -102
- package/dist/commons/events/FieldConfig.d.ts +11775 -4088
- package/dist/commons/events/FieldType.d.ts +2 -6
- package/dist/commons/events/FieldTypeMapping.d.ts +810 -164
- package/dist/commons/events/FieldValue.d.ts +354 -80
- package/dist/commons/events/FormConfig.d.ts +697 -12636
- package/dist/commons/events/PageConfig.d.ts +314 -8441
- package/dist/commons/events/SummaryConfig.d.ts +161 -14
- package/dist/commons/events/TranslationConfig.d.ts +2 -2
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +36 -70
- package/dist/commons/events/WorkqueueConfig.d.ts +7080 -1597
- package/dist/commons/events/deduplication.d.ts +3 -3
- package/dist/commons/events/defineConfig.d.ts +155 -24703
- package/dist/commons/events/index.d.ts +0 -1
- package/dist/commons/events/locations.d.ts +19 -15
- package/dist/commons/events/scopes.d.ts +0 -1
- package/dist/commons/events/state/availableActions.d.ts +1 -2
- package/dist/commons/events/state/flags.d.ts +3 -21
- package/dist/commons/events/state/index.d.ts +19 -17
- package/dist/commons/events/state/utils.d.ts +112 -127
- package/dist/commons/events/test.utils.d.ts +5 -11
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +359 -49444
- package/dist/commons/notification/UserNotifications.d.ts +636 -55
- package/dist/conditionals/index.d.ts.map +1 -1
- package/dist/conditionals/index.js +5 -38
- package/dist/events/deduplication.d.ts +3 -3
- package/dist/events/index.js +1360 -1502
- package/dist/notification/index.d.ts.map +1 -1
- package/dist/notification/index.js +1279 -1276
- package/dist/scopes/index.d.ts +136 -106
- package/dist/scopes/index.d.ts.map +1 -1
- package/dist/scopes/index.js +93 -116
- package/package.json +5 -5
- package/dist/commons/events/Flag.d.ts +0 -43
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conditionals/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/conditionals/index.ts"],"names":[],"mappings":"AAUA,cAAc,gCAAgC,CAAA"}
|
|
@@ -35,24 +35,21 @@ __export(conditionals_exports, {
|
|
|
35
35
|
createFieldConditionals: () => createFieldConditionals,
|
|
36
36
|
defineConditional: () => defineConditional,
|
|
37
37
|
defineFormConditional: () => defineFormConditional,
|
|
38
|
-
flag: () => flag,
|
|
39
38
|
isFieldReference: () => isFieldReference,
|
|
40
39
|
never: () => never,
|
|
41
40
|
not: () => not,
|
|
42
41
|
or: () => or,
|
|
43
|
-
status: () => status,
|
|
44
42
|
user: () => user
|
|
45
43
|
});
|
|
46
44
|
module.exports = __toCommonJS(conditionals_exports);
|
|
47
|
-
var z3 = __toESM(require("zod/v4"));
|
|
48
45
|
|
|
49
46
|
// ../commons/src/conditionals/conditionals.ts
|
|
50
47
|
var objectHash = __toESM(require("object-hash"));
|
|
51
48
|
|
|
52
49
|
// ../commons/src/events/serializers/user/serializer.ts
|
|
53
|
-
var
|
|
54
|
-
var SerializedUserField = z.object({
|
|
55
|
-
$userField: z.enum([
|
|
50
|
+
var import_zod = require("zod");
|
|
51
|
+
var SerializedUserField = import_zod.z.object({
|
|
52
|
+
$userField: import_zod.z.enum([
|
|
56
53
|
"id",
|
|
57
54
|
"name",
|
|
58
55
|
"role",
|
|
@@ -60,7 +57,7 @@ var SerializedUserField = z.object({
|
|
|
60
57
|
"avatar",
|
|
61
58
|
"primaryOfficeId"
|
|
62
59
|
]),
|
|
63
|
-
$location: z.string().optional()
|
|
60
|
+
$location: import_zod.z.string().optional()
|
|
64
61
|
});
|
|
65
62
|
function userSerializer(userField) {
|
|
66
63
|
return {
|
|
@@ -80,7 +77,7 @@ function userSerializer(userField) {
|
|
|
80
77
|
}
|
|
81
78
|
|
|
82
79
|
// ../commons/src/utils.ts
|
|
83
|
-
var z2 = __toESM(require("zod
|
|
80
|
+
var z2 = __toESM(require("zod"));
|
|
84
81
|
var FullNameV1 = z2.array(
|
|
85
82
|
z2.object({
|
|
86
83
|
use: z2.string(),
|
|
@@ -288,33 +285,6 @@ function defineComparison(field, value, keyword) {
|
|
|
288
285
|
required: [field.$$field]
|
|
289
286
|
});
|
|
290
287
|
}
|
|
291
|
-
function flag(flagvalue) {
|
|
292
|
-
return defineConditional({
|
|
293
|
-
type: "object",
|
|
294
|
-
properties: {
|
|
295
|
-
$flags: {
|
|
296
|
-
type: "array",
|
|
297
|
-
contains: {
|
|
298
|
-
type: "string",
|
|
299
|
-
const: flagvalue
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
required: ["$flags"]
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
function status(statusValue) {
|
|
307
|
-
return defineConditional({
|
|
308
|
-
type: "object",
|
|
309
|
-
properties: {
|
|
310
|
-
$status: {
|
|
311
|
-
type: "string",
|
|
312
|
-
const: statusValue
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
required: ["$status"]
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
288
|
function createFieldConditionals(fieldId) {
|
|
319
289
|
const getDayRange = (field, days, clause) => ({
|
|
320
290
|
type: "object",
|
|
@@ -636,6 +606,3 @@ function createFieldConditionals(fieldId) {
|
|
|
636
606
|
})
|
|
637
607
|
};
|
|
638
608
|
}
|
|
639
|
-
|
|
640
|
-
// src/conditionals/index.ts
|
|
641
|
-
z3.globalRegistry.clear();
|
|
@@ -7,16 +7,16 @@ export declare function field(fieldId: string): {
|
|
|
7
7
|
fieldId: string;
|
|
8
8
|
type: "fuzzy";
|
|
9
9
|
options: {
|
|
10
|
-
fuzziness?: string | number | undefined;
|
|
11
10
|
boost?: number | undefined;
|
|
11
|
+
fuzziness?: string | number | undefined;
|
|
12
12
|
} | undefined;
|
|
13
13
|
};
|
|
14
14
|
strictMatches: (options?: StrictMatcherOptions) => {
|
|
15
15
|
fieldId: string;
|
|
16
16
|
type: "strict";
|
|
17
17
|
options: {
|
|
18
|
-
boost?: number | undefined;
|
|
19
18
|
value?: string | undefined;
|
|
19
|
+
boost?: number | undefined;
|
|
20
20
|
} | undefined;
|
|
21
21
|
};
|
|
22
22
|
dateRangeMatches: (options: DateRangeMatcherOptions) => {
|
|
@@ -24,8 +24,8 @@ export declare function field(fieldId: string): {
|
|
|
24
24
|
type: "dateRange";
|
|
25
25
|
options: {
|
|
26
26
|
days: number;
|
|
27
|
-
pivot?: number | undefined;
|
|
28
27
|
boost?: number | undefined;
|
|
28
|
+
pivot?: number | undefined;
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
};
|