@opencrvs/toolkit 2.0.0-rc.55654d5 → 2.0.0-rc.566dec8
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/application-config/index.js +3 -0
- package/dist/commons/api/router.d.ts +8 -27
- package/dist/commons/events/EventIndex.d.ts +1 -0
- package/dist/commons/events/EventMetadata.d.ts +1 -0
- package/dist/commons/events/state/index.d.ts +2 -1
- package/dist/events/index.js +3 -0
- package/dist/notification/index.js +3 -0
- package/opencrvs-toolkit-2.0.0-rc.566dec8.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-2.0.0-rc.55654d5.tgz +0 -0
|
@@ -1144,6 +1144,9 @@ var EventMetadata = z15.object({
|
|
|
1144
1144
|
"Timestamp of the most recent *accepted* status change. Possibly 3rd party update, if action is validation asynchronously."
|
|
1145
1145
|
),
|
|
1146
1146
|
assignedTo: z15.string().nullish().describe("ID of the user currently assigned to the event."),
|
|
1147
|
+
assignedToSignature: DocumentPath.nullish().describe(
|
|
1148
|
+
"Signature of the user who is currently assigned to the event."
|
|
1149
|
+
),
|
|
1147
1150
|
updatedBy: z15.string().nullish().describe("ID of the user who last changed the status."),
|
|
1148
1151
|
trackingId: z15.string().describe(
|
|
1149
1152
|
"System-generated tracking ID used by informants or registrars to look up the event."
|
|
@@ -3643,6 +3643,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3643
3643
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
3644
3644
|
updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
3645
3645
|
assignedTo?: string | null | undefined;
|
|
3646
|
+
assignedToSignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
3646
3647
|
updatedBy?: string | null | undefined;
|
|
3647
3648
|
}[];
|
|
3648
3649
|
total: number;
|
|
@@ -4099,33 +4100,22 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4099
4100
|
input: string[];
|
|
4100
4101
|
output: ({
|
|
4101
4102
|
id: string & import("zod").$brand<"UUID">;
|
|
4103
|
+
type: "user";
|
|
4102
4104
|
name: {
|
|
4103
4105
|
firstname: string;
|
|
4104
4106
|
surname: string;
|
|
4105
4107
|
};
|
|
4106
4108
|
role: string;
|
|
4107
4109
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4108
|
-
|
|
4109
|
-
status: "active" | "pending" | "deactivated";
|
|
4110
|
+
fullHonorificName?: string | undefined;
|
|
4110
4111
|
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4111
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
4112
4112
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4113
|
-
device?: string | undefined;
|
|
4114
|
-
fullHonorificName?: string | undefined;
|
|
4115
|
-
mobile?: string | undefined;
|
|
4116
|
-
email?: string | undefined;
|
|
4117
|
-
data?: Record<string, import("../commons").FieldValue> | undefined;
|
|
4118
4113
|
} | {
|
|
4119
4114
|
id: string & import("zod").$brand<"UUID">;
|
|
4120
|
-
name: string;
|
|
4121
4115
|
type: "system";
|
|
4116
|
+
name: string;
|
|
4122
4117
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4123
4118
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4124
|
-
signature?: undefined;
|
|
4125
|
-
avatar?: undefined;
|
|
4126
|
-
fullHonorificName?: string | undefined;
|
|
4127
|
-
legacyId?: string | undefined;
|
|
4128
|
-
status?: undefined;
|
|
4129
4119
|
})[];
|
|
4130
4120
|
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
4131
4121
|
}>;
|
|
@@ -4143,33 +4133,24 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4143
4133
|
};
|
|
4144
4134
|
output: ({
|
|
4145
4135
|
id: string & import("zod").$brand<"UUID">;
|
|
4136
|
+
type: "user";
|
|
4146
4137
|
name: {
|
|
4147
4138
|
firstname: string;
|
|
4148
4139
|
surname: string;
|
|
4149
4140
|
};
|
|
4150
4141
|
role: string;
|
|
4151
4142
|
primaryOfficeId: string & import("zod").$brand<"UUID">;
|
|
4152
|
-
type: "user";
|
|
4153
4143
|
status: "active" | "pending" | "deactivated";
|
|
4144
|
+
fullHonorificName?: string | undefined;
|
|
4154
4145
|
avatar?: (string & import("zod").$brand<"DocumentPath">) | undefined;
|
|
4155
|
-
signature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
4156
4146
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4157
|
-
device?: string | undefined;
|
|
4158
|
-
fullHonorificName?: string | undefined;
|
|
4159
|
-
mobile?: string | undefined;
|
|
4160
|
-
email?: string | undefined;
|
|
4161
|
-
data?: Record<string, import("../commons").FieldValue> | undefined;
|
|
4162
4147
|
} | {
|
|
4163
4148
|
id: string & import("zod").$brand<"UUID">;
|
|
4164
|
-
name: string;
|
|
4165
4149
|
type: "system";
|
|
4150
|
+
name: string;
|
|
4166
4151
|
primaryOfficeId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4167
4152
|
administrativeAreaId?: (string & import("zod").$brand<"UUID">) | undefined;
|
|
4168
|
-
|
|
4169
|
-
avatar?: undefined;
|
|
4170
|
-
fullHonorificName?: string | undefined;
|
|
4171
|
-
legacyId?: string | undefined;
|
|
4172
|
-
status?: undefined;
|
|
4153
|
+
status?: "active" | "pending" | "deactivated" | undefined;
|
|
4173
4154
|
})[];
|
|
4174
4155
|
meta: object;
|
|
4175
4156
|
}>;
|
|
@@ -50,6 +50,7 @@ export declare const EventIndex: z.ZodObject<{
|
|
|
50
50
|
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
51
51
|
updatedAt: z.ZodISODateTime;
|
|
52
52
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
53
|
+
assignedToSignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
53
54
|
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
54
55
|
trackingId: z.ZodString;
|
|
55
56
|
potentialDuplicates: z.ZodArray<z.ZodObject<{
|
|
@@ -123,6 +123,7 @@ export declare const EventMetadata: z.ZodObject<{
|
|
|
123
123
|
updatedAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
124
124
|
updatedAt: z.ZodISODateTime;
|
|
125
125
|
assignedTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
|
+
assignedToSignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
126
127
|
updatedBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
128
|
trackingId: z.ZodString;
|
|
128
129
|
potentialDuplicates: z.ZodArray<z.ZodObject<{
|
|
@@ -9,7 +9,7 @@ import { UUID } from '../../uuid';
|
|
|
9
9
|
import { DocumentPath } from '../../documents';
|
|
10
10
|
export declare function getStatusFromActions(actions: Array<Action>): "CREATED" | "NOTIFIED" | "DECLARED" | "REGISTERED" | "ARCHIVED";
|
|
11
11
|
export declare function getAssignedUserFromActions(actions: Array<ActionDocument>): string | null;
|
|
12
|
-
export declare function getAssignedUserSignatureFromActions(actions: Array<ActionDocument>): string | null;
|
|
12
|
+
export declare function getAssignedUserSignatureFromActions(actions: Array<ActionDocument>): (string & import("zod").$brand<"DocumentPath">) | null;
|
|
13
13
|
type NonNullableDeep<T> = T extends [unknown, ...unknown[]] ? {
|
|
14
14
|
[K in keyof T]: NonNullableDeep<NonNullable<T[K]>>;
|
|
15
15
|
} : T extends UUID ? T : T extends DocumentPath ? T : T extends string ? NonNullable<T> : T extends (infer U)[] ? NonNullableDeep<U>[] : T extends object ? {
|
|
@@ -104,6 +104,7 @@ export declare function applyDraftToEventIndex(eventIndex: EventIndex, draft: Dr
|
|
|
104
104
|
createdBySignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
105
105
|
updatedAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
106
106
|
assignedTo?: string | null | undefined;
|
|
107
|
+
assignedToSignature?: (string & import("zod").$brand<"DocumentPath">) | null | undefined;
|
|
107
108
|
updatedBy?: string | null | undefined;
|
|
108
109
|
};
|
|
109
110
|
/**
|
package/dist/events/index.js
CHANGED
|
@@ -1804,6 +1804,9 @@ var EventMetadata = z16.object({
|
|
|
1804
1804
|
"Timestamp of the most recent *accepted* status change. Possibly 3rd party update, if action is validation asynchronously."
|
|
1805
1805
|
),
|
|
1806
1806
|
assignedTo: z16.string().nullish().describe("ID of the user currently assigned to the event."),
|
|
1807
|
+
assignedToSignature: DocumentPath.nullish().describe(
|
|
1808
|
+
"Signature of the user who is currently assigned to the event."
|
|
1809
|
+
),
|
|
1807
1810
|
updatedBy: z16.string().nullish().describe("ID of the user who last changed the status."),
|
|
1808
1811
|
trackingId: z16.string().describe(
|
|
1809
1812
|
"System-generated tracking ID used by informants or registrars to look up the event."
|
|
@@ -1370,6 +1370,9 @@ var EventMetadata = z16.object({
|
|
|
1370
1370
|
"Timestamp of the most recent *accepted* status change. Possibly 3rd party update, if action is validation asynchronously."
|
|
1371
1371
|
),
|
|
1372
1372
|
assignedTo: z16.string().nullish().describe("ID of the user currently assigned to the event."),
|
|
1373
|
+
assignedToSignature: DocumentPath.nullish().describe(
|
|
1374
|
+
"Signature of the user who is currently assigned to the event."
|
|
1375
|
+
),
|
|
1373
1376
|
updatedBy: z16.string().nullish().describe("ID of the user who last changed the status."),
|
|
1374
1377
|
trackingId: z16.string().describe(
|
|
1375
1378
|
"System-generated tracking ID used by informants or registrars to look up the event."
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|