@opencrvs/toolkit 1.8.0-rc.fcd89ec → 1.8.0-rc.fcf7cb3
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 +8046 -8610
- package/dist/commons/conditionals/conditionals.d.ts +8 -15
- package/dist/commons/conditionals/validate.d.ts +14 -0
- package/dist/commons/events/ActionConfig.d.ts +68541 -36072
- package/dist/commons/events/ActionDocument.d.ts +3961 -1227
- package/dist/commons/events/ActionInput.d.ts +3138 -966
- package/dist/commons/events/ActionType.d.ts +4 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +414 -71
- package/dist/commons/events/CompositeFieldValue.d.ts +37 -9
- package/dist/commons/events/Constants.d.ts +3 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +4132 -0
- package/dist/commons/events/CreatedAtLocation.d.ts +1 -2
- package/dist/commons/events/Draft.d.ts +271 -93
- package/dist/commons/events/EventConfig.d.ts +33783 -18386
- package/dist/commons/events/EventDocument.d.ts +2522 -816
- package/dist/commons/events/EventIndex.d.ts +1411 -313
- package/dist/commons/events/EventInput.d.ts +0 -13
- package/dist/commons/events/EventMetadata.d.ts +113 -76
- package/dist/commons/events/FieldConfig.d.ts +4017 -1558
- package/dist/commons/events/FieldType.d.ts +10 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +149 -75
- package/dist/commons/events/FieldValue.d.ts +87 -20
- package/dist/commons/events/FormConfig.d.ts +18663 -8055
- package/dist/commons/events/PageConfig.d.ts +4601 -1945
- package/dist/commons/events/SummaryConfig.d.ts +0 -5
- package/dist/commons/events/User.d.ts +34 -7
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +53 -0
- package/dist/commons/events/WorkqueueConfig.d.ts +7802 -308
- package/dist/commons/events/defineConfig.d.ts +3535 -860
- package/dist/commons/events/event.d.ts +21 -21
- package/dist/commons/events/field.d.ts +36 -10
- package/dist/commons/events/index.d.ts +5 -0
- package/dist/commons/events/scopes.d.ts +1 -2
- package/dist/commons/events/serializer.d.ts +2 -0
- package/dist/commons/events/test.utils.d.ts +206 -52
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +14324 -1570
- package/dist/commons/events/workqueueDefaultColumns.d.ts +3 -0
- package/dist/conditionals/index.js +70 -62
- package/dist/events/index.js +3527 -1656
- package/dist/scopes/index.d.ts +96 -7
- package/dist/scopes/index.js +105 -26
- package/package.json +3 -3
- package/tsconfig.json +1 -1
- package/dist/commons/conditionals/conditionals.test.d.ts +0 -2
- package/dist/commons/conditionals/validate-address.test.d.ts +0 -2
- package/dist/commons/conditionals/validate.test.d.ts +0 -2
- package/dist/commons/events/utils.test.d.ts +0 -2
@@ -29,11 +29,6 @@ export declare const SummaryConfig: z.ZodObject<{
|
|
29
29
|
description: string;
|
30
30
|
defaultMessage: string;
|
31
31
|
}>;
|
32
|
-
emptyValueMessage: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
33
|
-
id: string;
|
34
|
-
description: string;
|
35
|
-
defaultMessage: string;
|
36
|
-
}>>;
|
37
32
|
}>, "strip", z.ZodTypeAny, {
|
38
33
|
id: string;
|
39
34
|
value: TranslationConfig;
|
@@ -1,4 +1,33 @@
|
|
1
|
-
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const User: z.ZodObject<{
|
3
|
+
id: z.ZodString;
|
4
|
+
name: z.ZodArray<z.ZodObject<{
|
5
|
+
use: z.ZodString;
|
6
|
+
given: z.ZodArray<z.ZodString, "many">;
|
7
|
+
family: z.ZodString;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
use: string;
|
10
|
+
given: string[];
|
11
|
+
family: string;
|
12
|
+
}, {
|
13
|
+
use: string;
|
14
|
+
given: string[];
|
15
|
+
family: string;
|
16
|
+
}>, "many">;
|
17
|
+
role: z.ZodString;
|
18
|
+
avatar: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
19
|
+
signature: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
21
|
+
id: string;
|
22
|
+
name: {
|
23
|
+
use: string;
|
24
|
+
given: string[];
|
25
|
+
family: string;
|
26
|
+
}[];
|
27
|
+
role: string;
|
28
|
+
signature?: string | undefined;
|
29
|
+
avatar?: string | undefined;
|
30
|
+
}, {
|
2
31
|
id: string;
|
3
32
|
name: {
|
4
33
|
use: string;
|
@@ -6,10 +35,8 @@ export type User = {
|
|
6
35
|
family: string;
|
7
36
|
}[];
|
8
37
|
role: string;
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
signatureFilename?: string;
|
14
|
-
};
|
38
|
+
signature?: string | undefined;
|
39
|
+
avatar?: string | undefined;
|
40
|
+
}>;
|
41
|
+
export type User = z.infer<typeof User>;
|
15
42
|
//# sourceMappingURL=User.d.ts.map
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
import { TranslationConfig } from './TranslationConfig';
|
3
|
+
export declare const WorkqueueColumnKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"];
|
4
|
+
export declare const WorkqueueColumnKeys: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
|
5
|
+
export type WorkqueueColumnKeys = z.infer<typeof WorkqueueColumnKeys>;
|
6
|
+
export declare const WorkqueueColumnValue: z.ZodObject<{
|
7
|
+
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
10
|
+
}, {
|
11
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
12
|
+
}>;
|
13
|
+
export type WorkqueueColumnValue = z.infer<typeof WorkqueueColumnValue>;
|
14
|
+
/**
|
15
|
+
* Configuration for column header and value of cell of workqueue.
|
16
|
+
*/
|
17
|
+
export declare const WorkqueueColumn: z.ZodObject<{
|
18
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, "strip", z.ZodTypeAny, TranslationConfig, {
|
19
|
+
id: string;
|
20
|
+
description: string;
|
21
|
+
defaultMessage: string;
|
22
|
+
}>;
|
23
|
+
value: z.ZodObject<{
|
24
|
+
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
26
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
27
|
+
}, {
|
28
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
29
|
+
}>;
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
31
|
+
value: {
|
32
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
33
|
+
};
|
34
|
+
label: TranslationConfig;
|
35
|
+
}, {
|
36
|
+
value: {
|
37
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
38
|
+
};
|
39
|
+
label: {
|
40
|
+
id: string;
|
41
|
+
description: string;
|
42
|
+
defaultMessage: string;
|
43
|
+
};
|
44
|
+
}>;
|
45
|
+
export type WorkqueueColumn = z.infer<typeof WorkqueueColumn>;
|
46
|
+
export type WorkqueueColumnInput = z.infer<typeof WorkqueueColumn>;
|
47
|
+
export declare function defineWorkqueuesColumns(workqueueColumns: WorkqueueColumnInput[]): {
|
48
|
+
value: {
|
49
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
50
|
+
};
|
51
|
+
label: TranslationConfig;
|
52
|
+
}[];
|
53
|
+
//# sourceMappingURL=WorkqueueColumnConfig.d.ts.map
|