@opencrvs/toolkit 1.8.0-rc.fb5b9fe → 1.8.0-rc.fb5f1af
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 +7226 -9201
- package/dist/commons/conditionals/conditionals.d.ts +4 -12
- package/dist/commons/conditionals/validate.d.ts +6 -0
- package/dist/commons/events/ActionConfig.d.ts +42985 -22929
- package/dist/commons/events/ActionDocument.d.ts +3599 -1052
- package/dist/commons/events/ActionInput.d.ts +2942 -842
- package/dist/commons/events/ActionType.d.ts +4 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +339 -36
- package/dist/commons/events/CompositeFieldValue.d.ts +37 -9
- package/dist/commons/events/Constants.d.ts +1 -0
- package/dist/commons/events/CountryConfigQueryInput.d.ts +1891 -741
- package/dist/commons/events/Draft.d.ts +248 -75
- package/dist/commons/events/EventConfig.d.ts +17983 -8266
- package/dist/commons/events/EventDocument.d.ts +2260 -673
- package/dist/commons/events/EventIndex.d.ts +1069 -196
- package/dist/commons/events/EventMetadata.d.ts +52 -40
- package/dist/commons/events/FieldConfig.d.ts +2303 -926
- package/dist/commons/events/FieldType.d.ts +5 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +144 -73
- package/dist/commons/events/FieldValue.d.ts +85 -20
- package/dist/commons/events/FormConfig.d.ts +23361 -14925
- package/dist/commons/events/PageConfig.d.ts +3730 -1662
- package/dist/commons/events/SummaryConfig.d.ts +0 -5
- package/dist/commons/events/User.d.ts +6 -3
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +11 -11
- package/dist/commons/events/WorkqueueConfig.d.ts +5509 -1918
- package/dist/commons/events/defineConfig.d.ts +1762 -126
- package/dist/commons/events/event.d.ts +10 -18
- package/dist/commons/events/field.d.ts +9 -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 +181 -49
- package/dist/commons/events/utils.d.ts +13653 -1222
- package/dist/conditionals/index.js +40 -52
- package/dist/events/index.js +2274 -1491
- package/dist/scopes/index.d.ts +96 -7
- package/dist/scopes/index.js +105 -26
- package/package.json +3 -3
@@ -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;
|
@@ -15,7 +15,8 @@ export declare const User: z.ZodObject<{
|
|
15
15
|
family: string;
|
16
16
|
}>, "many">;
|
17
17
|
role: z.ZodString;
|
18
|
-
|
18
|
+
avatar: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
19
|
+
signature: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
19
20
|
}, "strip", z.ZodTypeAny, {
|
20
21
|
id: string;
|
21
22
|
name: {
|
@@ -24,7 +25,8 @@ export declare const User: z.ZodObject<{
|
|
24
25
|
family: string;
|
25
26
|
}[];
|
26
27
|
role: string;
|
27
|
-
|
28
|
+
signature?: string | undefined;
|
29
|
+
avatar?: string | undefined;
|
28
30
|
}, {
|
29
31
|
id: string;
|
30
32
|
name: {
|
@@ -33,7 +35,8 @@ export declare const User: z.ZodObject<{
|
|
33
35
|
family: string;
|
34
36
|
}[];
|
35
37
|
role: string;
|
36
|
-
|
38
|
+
signature?: string | undefined;
|
39
|
+
avatar?: string | undefined;
|
37
40
|
}>;
|
38
41
|
export type User = z.infer<typeof User>;
|
39
42
|
//# sourceMappingURL=User.d.ts.map
|
@@ -1,14 +1,14 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
import { TranslationConfig } from './TranslationConfig';
|
3
|
-
export declare const WorkqueueColumnKeysArray: readonly ["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"];
|
4
|
-
export declare const WorkqueueColumnKeys: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
|
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
5
|
export type WorkqueueColumnKeys = z.infer<typeof WorkqueueColumnKeys>;
|
6
6
|
export declare const WorkqueueColumnValue: z.ZodObject<{
|
7
|
-
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
|
7
|
+
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
9
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
9
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
10
10
|
}, {
|
11
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
11
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
12
12
|
}>;
|
13
13
|
export type WorkqueueColumnValue = z.infer<typeof WorkqueueColumnValue>;
|
14
14
|
/**
|
@@ -21,20 +21,20 @@ export declare const WorkqueueColumn: z.ZodObject<{
|
|
21
21
|
defaultMessage: string;
|
22
22
|
}>;
|
23
23
|
value: z.ZodObject<{
|
24
|
-
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title"]>;
|
24
|
+
$event: z.ZodEnum<["id", "type", "status", "createdAt", "dateOfEvent", "createdBy", "createdByUserType", "updatedByUserRole", "createdAtLocation", "updatedAtLocation", "updatedAt", "assignedTo", "updatedBy", "trackingId", "legalStatuses", "flags", "title", "outbox"]>;
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
26
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
26
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
27
27
|
}, {
|
28
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
28
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
29
29
|
}>;
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
31
31
|
value: {
|
32
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
32
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
33
33
|
};
|
34
34
|
label: TranslationConfig;
|
35
35
|
}, {
|
36
36
|
value: {
|
37
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
37
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
38
38
|
};
|
39
39
|
label: {
|
40
40
|
id: string;
|
@@ -46,7 +46,7 @@ export type WorkqueueColumn = z.infer<typeof WorkqueueColumn>;
|
|
46
46
|
export type WorkqueueColumnInput = z.infer<typeof WorkqueueColumn>;
|
47
47
|
export declare function defineWorkqueuesColumns(workqueueColumns: WorkqueueColumnInput[]): {
|
48
48
|
value: {
|
49
|
-
$event: "type" | "id" | "status" | "title" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags";
|
49
|
+
$event: "type" | "id" | "status" | "title" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "assignedTo" | "updatedAt" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
50
50
|
};
|
51
51
|
label: TranslationConfig;
|
52
52
|
}[];
|