@opencrvs/toolkit 1.8.0-rc.ffe24c3 → 1.8.1-rc.1e3e9b5
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 +1742 -14918
- package/dist/commons/conditionals/conditionals.d.ts +0 -12
- package/dist/commons/conditionals/validate.d.ts +5 -0
- package/dist/commons/events/ActionConfig.d.ts +37041 -35133
- package/dist/commons/events/ActionDocument.d.ts +3159 -1626
- package/dist/commons/events/ActionInput.d.ts +2280 -1380
- package/dist/commons/events/ActionType.d.ts +7 -4
- package/dist/commons/events/AdvancedSearchConfig.d.ts +100 -51
- package/dist/commons/events/CompositeFieldValue.d.ts +15 -15
- package/dist/commons/events/CountryConfigQueryInput.d.ts +1162 -760
- package/dist/commons/events/Draft.d.ts +190 -118
- package/dist/commons/events/EventConfig.d.ts +20824 -22965
- package/dist/commons/events/EventDocument.d.ts +1669 -1021
- package/dist/commons/events/EventIndex.d.ts +394 -175
- package/dist/commons/events/EventMetadata.d.ts +6 -4
- package/dist/commons/events/FieldConfig.d.ts +1528 -449
- package/dist/commons/events/FieldType.d.ts +3 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +80 -41
- package/dist/commons/events/FieldValue.d.ts +58 -28
- package/dist/commons/events/FormConfig.d.ts +9263 -2657
- package/dist/commons/events/PageConfig.d.ts +3642 -2028
- package/dist/commons/events/SummaryConfig.d.ts +10 -10
- package/dist/commons/events/User.d.ts +6 -3
- package/dist/commons/events/WorkqueueConfig.d.ts +2153 -1337
- package/dist/commons/events/defineConfig.d.ts +2759 -3250
- package/dist/commons/events/event.d.ts +10 -18
- package/dist/commons/events/field.d.ts +13 -1
- package/dist/commons/events/scopes.d.ts +2 -1
- package/dist/commons/events/test.utils.d.ts +58 -34
- package/dist/commons/events/utils.d.ts +8848 -6794
- package/dist/conditionals/index.js +23 -53
- package/dist/events/index.js +1594 -1341
- package/dist/scopes/index.d.ts +92 -6
- package/dist/scopes/index.js +38 -9
- package/package.json +3 -3
@@ -1,7 +1,6 @@
|
|
1
1
|
import { EventDocument } from '../events/EventDocument';
|
2
2
|
import { EventState } from '../events/ActionDocument';
|
3
3
|
import { ITokenPayload as TokenPayload, Scope } from '../authentication';
|
4
|
-
import { ActionType } from '../events/ActionType';
|
5
4
|
import { PartialSchema as AjvJSONSchemaType } from 'ajv/dist/types/json-schema';
|
6
5
|
import { userSerializer } from '../events/serializers/user/serializer';
|
7
6
|
/** @knipignore */
|
@@ -62,17 +61,6 @@ export declare function never(): JSONSchema;
|
|
62
61
|
export declare const user: typeof userSerializer & {
|
63
62
|
hasScope: (scope: Scope) => JSONSchema;
|
64
63
|
};
|
65
|
-
/**
|
66
|
-
*
|
67
|
-
* Generate conditional rules for event.
|
68
|
-
*/
|
69
|
-
export declare function createEventConditionals(): {
|
70
|
-
/**
|
71
|
-
* Checks if the event contains a specific action type.
|
72
|
-
* @param action - The action type to check for.
|
73
|
-
*/
|
74
|
-
hasAction: (action: ActionType) => JSONSchema;
|
75
|
-
};
|
76
64
|
type FieldReference = {
|
77
65
|
$$field: string;
|
78
66
|
};
|
@@ -41,6 +41,11 @@ export declare const errorMessages: {
|
|
41
41
|
description: string;
|
42
42
|
id: string;
|
43
43
|
};
|
44
|
+
correctionNotAllowed: {
|
45
|
+
defaultMessage: string;
|
46
|
+
description: string;
|
47
|
+
id: string;
|
48
|
+
};
|
44
49
|
};
|
45
50
|
/**
|
46
51
|
* Custom error map for Zod to override the default error messages in intl-formik format.
|