@opencrvs/toolkit 1.8.0-rc.fd8a78f → 1.8.0-rc.fde35f6
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 +3117 -11206
- package/dist/commons/conditionals/conditionals.d.ts +0 -12
- package/dist/commons/events/ActionConfig.d.ts +12032 -3972
- package/dist/commons/events/ActionDocument.d.ts +3029 -1886
- package/dist/commons/events/ActionInput.d.ts +2406 -1506
- package/dist/commons/events/AdvancedSearchConfig.d.ts +304 -51
- package/dist/commons/events/CompositeFieldValue.d.ts +15 -15
- package/dist/commons/events/CountryConfigQueryInput.d.ts +1891 -741
- package/dist/commons/events/CreatedAtLocation.d.ts +1 -2
- package/dist/commons/events/Draft.d.ts +213 -136
- package/dist/commons/events/EventConfig.d.ts +4770 -755
- package/dist/commons/events/EventDocument.d.ts +1942 -1219
- package/dist/commons/events/EventIndex.d.ts +897 -263
- package/dist/commons/events/EventMetadata.d.ts +73 -31
- package/dist/commons/events/FieldConfig.d.ts +607 -30
- package/dist/commons/events/FieldType.d.ts +2 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +73 -41
- package/dist/commons/events/FieldValue.d.ts +57 -28
- package/dist/commons/events/FormConfig.d.ts +4685 -1295
- package/dist/commons/events/PageConfig.d.ts +868 -38
- 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 +4490 -1177
- package/dist/commons/events/defineConfig.d.ts +759 -34
- package/dist/commons/events/event.d.ts +15 -10
- package/dist/commons/events/field.d.ts +17 -0
- package/dist/commons/events/scopes.d.ts +1 -2
- package/dist/commons/events/test.utils.d.ts +83 -36
- package/dist/commons/events/transactions.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +2926 -88
- package/dist/conditionals/index.js +22 -51
- package/dist/events/index.js +1550 -1048
- package/dist/scopes/index.d.ts +96 -7
- package/dist/scopes/index.js +105 -26
- package/package.json +3 -3
@@ -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
|
}[];
|