@opencrvs/toolkit 2.1.0-rc.271c769 → 2.1.0-rc.28fe5a3
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 +190 -202
- package/dist/commons/api/router.d.ts +58 -22
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/conditionals/validate.d.ts +1 -2
- package/dist/commons/events/ActionConfig.d.ts +0 -21
- package/dist/commons/events/ActionDocument.d.ts +13 -7
- package/dist/commons/events/ActionInput.d.ts +6 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +0 -6
- package/dist/commons/events/CountryConfigQueryInput.d.ts +0 -18
- package/dist/commons/events/EventDocument.d.ts +2 -2
- package/dist/commons/events/EventIndex.d.ts +24 -5
- package/dist/commons/events/EventMetadata.d.ts +0 -1
- package/dist/commons/events/FieldConfig.d.ts +0 -5
- package/dist/commons/events/FieldTypeMapping.d.ts +19 -19
- package/dist/commons/events/Flag.d.ts +0 -48
- package/dist/commons/events/WorkqueueConfig.d.ts +12 -27
- package/dist/commons/events/test.utils.d.ts +3 -0
- package/dist/commons/events/utils.d.ts +2 -2
- package/dist/conditionals/index.js +55 -303
- package/dist/events/index.js +2698 -2735
- package/dist/notification/index.js +967 -1528
- package/dist/scopes/index.d.ts +0 -250
- package/dist/scopes/index.js +55 -304
- package/opencrvs-toolkit-2.1.0-rc.28fe5a3.tgz +0 -0
- package/package.json +2 -2
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/commons/events/ActionStatus.d.ts +0 -14
- package/opencrvs-toolkit-2.1.0-rc.271c769.tgz +0 -0
|
@@ -407,9 +407,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
407
407
|
status: "Accepted" | "Rejected" | "Requested";
|
|
408
408
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
409
409
|
type: "EDIT";
|
|
410
|
-
content
|
|
410
|
+
content: {
|
|
411
411
|
comment?: string | undefined;
|
|
412
|
-
}
|
|
412
|
+
};
|
|
413
413
|
} | {
|
|
414
414
|
id: string & import("zod").$brand<"UUID">;
|
|
415
415
|
transactionId: string;
|
|
@@ -733,9 +733,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
733
733
|
status: "Accepted" | "Rejected" | "Requested";
|
|
734
734
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
735
735
|
type: "EDIT";
|
|
736
|
-
content
|
|
736
|
+
content: {
|
|
737
737
|
comment?: string | undefined;
|
|
738
|
-
}
|
|
738
|
+
};
|
|
739
739
|
} | {
|
|
740
740
|
id: string & import("zod").$brand<"UUID">;
|
|
741
741
|
transactionId: string;
|
|
@@ -1058,9 +1058,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1058
1058
|
status: "Accepted" | "Rejected" | "Requested";
|
|
1059
1059
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1060
1060
|
type: "EDIT";
|
|
1061
|
-
content
|
|
1061
|
+
content: {
|
|
1062
1062
|
comment?: string | undefined;
|
|
1063
|
-
}
|
|
1063
|
+
};
|
|
1064
1064
|
} | {
|
|
1065
1065
|
id: string & import("zod").$brand<"UUID">;
|
|
1066
1066
|
transactionId: string;
|
|
@@ -1491,6 +1491,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1491
1491
|
waitFor?: boolean | undefined;
|
|
1492
1492
|
createdAtLocation?: string | null | undefined;
|
|
1493
1493
|
type?: "EDIT" | undefined;
|
|
1494
|
+
content: {
|
|
1495
|
+
comment?: string | undefined;
|
|
1496
|
+
};
|
|
1494
1497
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
1495
1498
|
actionId: string;
|
|
1496
1499
|
};
|
|
@@ -1829,9 +1832,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1829
1832
|
status: "Accepted" | "Rejected" | "Requested";
|
|
1830
1833
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1831
1834
|
type: "EDIT";
|
|
1832
|
-
content
|
|
1835
|
+
content: {
|
|
1833
1836
|
comment?: string | undefined;
|
|
1834
|
-
}
|
|
1837
|
+
};
|
|
1835
1838
|
} | {
|
|
1836
1839
|
id: string & import("zod").$brand<"UUID">;
|
|
1837
1840
|
transactionId: string;
|
|
@@ -2146,6 +2149,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2146
2149
|
waitFor?: boolean | undefined;
|
|
2147
2150
|
createdAtLocation?: string | null | undefined;
|
|
2148
2151
|
type?: "EDIT" | undefined;
|
|
2152
|
+
content: {
|
|
2153
|
+
comment?: string | undefined;
|
|
2154
|
+
};
|
|
2149
2155
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
2150
2156
|
actionId: string;
|
|
2151
2157
|
};
|
|
@@ -2462,9 +2468,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2462
2468
|
status: "Accepted" | "Rejected" | "Requested";
|
|
2463
2469
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
2464
2470
|
type: "EDIT";
|
|
2465
|
-
content
|
|
2471
|
+
content: {
|
|
2466
2472
|
comment?: string | undefined;
|
|
2467
|
-
}
|
|
2473
|
+
};
|
|
2468
2474
|
} | {
|
|
2469
2475
|
id: string & import("zod").$brand<"UUID">;
|
|
2470
2476
|
transactionId: string;
|
|
@@ -2784,6 +2790,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2784
2790
|
waitFor?: boolean | undefined;
|
|
2785
2791
|
createdAtLocation?: string | null | undefined;
|
|
2786
2792
|
type?: "EDIT" | undefined;
|
|
2793
|
+
content: {
|
|
2794
|
+
comment?: string | undefined;
|
|
2795
|
+
};
|
|
2787
2796
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
2788
2797
|
actionId: string;
|
|
2789
2798
|
};
|
|
@@ -3088,6 +3097,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3088
3097
|
waitFor?: boolean | undefined;
|
|
3089
3098
|
createdAtLocation?: string | null | undefined;
|
|
3090
3099
|
type?: "EDIT" | undefined;
|
|
3100
|
+
content: {
|
|
3101
|
+
comment?: string | undefined;
|
|
3102
|
+
};
|
|
3091
3103
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
3092
3104
|
actionId: string;
|
|
3093
3105
|
};
|
|
@@ -3392,6 +3404,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3392
3404
|
waitFor?: boolean | undefined;
|
|
3393
3405
|
createdAtLocation?: string | null | undefined;
|
|
3394
3406
|
type?: "EDIT" | undefined;
|
|
3407
|
+
content: {
|
|
3408
|
+
comment?: string | undefined;
|
|
3409
|
+
};
|
|
3395
3410
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
3396
3411
|
actionId: string;
|
|
3397
3412
|
};
|
|
@@ -3696,6 +3711,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3696
3711
|
waitFor?: boolean | undefined;
|
|
3697
3712
|
createdAtLocation?: string | null | undefined;
|
|
3698
3713
|
type?: "EDIT" | undefined;
|
|
3714
|
+
content: {
|
|
3715
|
+
comment?: string | undefined;
|
|
3716
|
+
};
|
|
3699
3717
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
3700
3718
|
actionId: string;
|
|
3701
3719
|
};
|
|
@@ -4000,6 +4018,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4000
4018
|
waitFor?: boolean | undefined;
|
|
4001
4019
|
createdAtLocation?: string | null | undefined;
|
|
4002
4020
|
type?: "EDIT" | undefined;
|
|
4021
|
+
content: {
|
|
4022
|
+
comment?: string | undefined;
|
|
4023
|
+
};
|
|
4003
4024
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
4004
4025
|
actionId: string;
|
|
4005
4026
|
};
|
|
@@ -4304,6 +4325,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4304
4325
|
waitFor?: boolean | undefined;
|
|
4305
4326
|
createdAtLocation?: string | null | undefined;
|
|
4306
4327
|
type?: "EDIT" | undefined;
|
|
4328
|
+
content: {
|
|
4329
|
+
comment?: string | undefined;
|
|
4330
|
+
};
|
|
4307
4331
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
4308
4332
|
actionId: string;
|
|
4309
4333
|
};
|
|
@@ -4603,6 +4627,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4603
4627
|
waitFor?: boolean | undefined;
|
|
4604
4628
|
createdAtLocation?: string | null | undefined;
|
|
4605
4629
|
type?: "EDIT" | undefined;
|
|
4630
|
+
content: {
|
|
4631
|
+
comment?: string | undefined;
|
|
4632
|
+
};
|
|
4606
4633
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
4607
4634
|
actionId: string;
|
|
4608
4635
|
};
|
|
@@ -4920,9 +4947,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4920
4947
|
status: "Accepted" | "Rejected" | "Requested";
|
|
4921
4948
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4922
4949
|
type: "EDIT";
|
|
4923
|
-
content
|
|
4950
|
+
content: {
|
|
4924
4951
|
comment?: string | undefined;
|
|
4925
|
-
}
|
|
4952
|
+
};
|
|
4926
4953
|
} | {
|
|
4927
4954
|
id: string & import("zod").$brand<"UUID">;
|
|
4928
4955
|
transactionId: string;
|
|
@@ -5278,9 +5305,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5278
5305
|
status: "Accepted" | "Rejected" | "Requested";
|
|
5279
5306
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
5280
5307
|
type: "EDIT";
|
|
5281
|
-
content
|
|
5308
|
+
content: {
|
|
5282
5309
|
comment?: string | undefined;
|
|
5283
|
-
}
|
|
5310
|
+
};
|
|
5284
5311
|
} | {
|
|
5285
5312
|
id: string & import("zod").$brand<"UUID">;
|
|
5286
5313
|
transactionId: string;
|
|
@@ -5613,9 +5640,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5613
5640
|
status: "Accepted" | "Rejected" | "Requested";
|
|
5614
5641
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
5615
5642
|
type: "EDIT";
|
|
5616
|
-
content
|
|
5643
|
+
content: {
|
|
5617
5644
|
comment?: string | undefined;
|
|
5618
|
-
}
|
|
5645
|
+
};
|
|
5619
5646
|
} | {
|
|
5620
5647
|
id: string & import("zod").$brand<"UUID">;
|
|
5621
5648
|
transactionId: string;
|
|
@@ -5957,6 +5984,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5957
5984
|
waitFor?: boolean | undefined;
|
|
5958
5985
|
createdAtLocation?: string | null | undefined;
|
|
5959
5986
|
type?: "EDIT" | undefined;
|
|
5987
|
+
content: {
|
|
5988
|
+
comment?: string | undefined;
|
|
5989
|
+
};
|
|
5960
5990
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
5961
5991
|
actionId: string;
|
|
5962
5992
|
};
|
|
@@ -6261,6 +6291,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6261
6291
|
waitFor?: boolean | undefined;
|
|
6262
6292
|
createdAtLocation?: string | null | undefined;
|
|
6263
6293
|
type?: "EDIT" | undefined;
|
|
6294
|
+
content: {
|
|
6295
|
+
comment?: string | undefined;
|
|
6296
|
+
};
|
|
6264
6297
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
6265
6298
|
actionId: string;
|
|
6266
6299
|
};
|
|
@@ -6565,6 +6598,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6565
6598
|
waitFor?: boolean | undefined;
|
|
6566
6599
|
createdAtLocation?: string | null | undefined;
|
|
6567
6600
|
type?: "EDIT" | undefined;
|
|
6601
|
+
content: {
|
|
6602
|
+
comment?: string | undefined;
|
|
6603
|
+
};
|
|
6568
6604
|
}, "keepAssignmentIfAccepted" | "keepAssignmentIfRejected">) & {
|
|
6569
6605
|
actionId: string;
|
|
6570
6606
|
};
|
|
@@ -6908,9 +6944,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6908
6944
|
status: "Accepted" | "Rejected" | "Requested";
|
|
6909
6945
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6910
6946
|
type: "EDIT";
|
|
6911
|
-
content
|
|
6947
|
+
content: {
|
|
6912
6948
|
comment?: string | undefined;
|
|
6913
|
-
}
|
|
6949
|
+
};
|
|
6914
6950
|
} | {
|
|
6915
6951
|
id: string & import("zod").$brand<"UUID">;
|
|
6916
6952
|
transactionId: string;
|
|
@@ -7242,9 +7278,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7242
7278
|
status: "Accepted" | "Rejected" | "Requested";
|
|
7243
7279
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
7244
7280
|
type: "EDIT";
|
|
7245
|
-
content
|
|
7281
|
+
content: {
|
|
7246
7282
|
comment?: string | undefined;
|
|
7247
|
-
}
|
|
7283
|
+
};
|
|
7248
7284
|
} | {
|
|
7249
7285
|
id: string & import("zod").$brand<"UUID">;
|
|
7250
7286
|
transactionId: string;
|
|
@@ -7627,9 +7663,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7627
7663
|
status: "Accepted" | "Rejected" | "Requested";
|
|
7628
7664
|
originalActionId?: string | null | undefined;
|
|
7629
7665
|
type: "EDIT";
|
|
7630
|
-
content
|
|
7666
|
+
content: {
|
|
7631
7667
|
comment?: string | undefined;
|
|
7632
|
-
}
|
|
7668
|
+
};
|
|
7633
7669
|
} | {
|
|
7634
7670
|
id: string;
|
|
7635
7671
|
transactionId: string;
|
|
@@ -86,16 +86,16 @@ export declare const user: typeof userSerializer & {
|
|
|
86
86
|
scope: (scope: import("../scopes").ScopeType) => {
|
|
87
87
|
attribute: (option: import("../scopes").ScopeOptionKey) => {
|
|
88
88
|
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
89
|
-
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "
|
|
89
|
+
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
|
|
93
93
|
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
94
|
-
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "
|
|
94
|
+
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
|
|
95
95
|
}) => {
|
|
96
96
|
$jurisdiction: "administrativeArea" | "all" | "location" | {
|
|
97
97
|
$scope: "attachment.upload" | "bypassratelimit" | "config.update-all" | "dashboard.view" | "integration.create" | "organisation.read-locations" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "profile.electronic-signature" | "record.archive" | "record.confirm-registration" | "record.correct" | "record.create" | "record.custom-action" | "record.declare" | "record.edit" | "record.import" | "record.notify" | "record.print-certified-copies" | "record.read" | "record.register" | "record.reindex" | "record.reject" | "record.reject-registration" | "record.request-correction" | "record.review-duplicates" | "record.search" | "record.unarchive" | "record.unassign-others" | "user.create" | "user.data-seeding" | "user.edit" | "user.read" | "user.read-only-my-audit" | "user.search" | "workqueue";
|
|
98
|
-
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "
|
|
98
|
+
$option: "accessLevel" | "declaredBy" | "declaredIn" | "event" | "ids" | "notifiedBy" | "notifiedIn" | "placeOfEvent" | "registeredBy" | "registeredIn" | "role";
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
hasScope: (scope: string) => JSONSchema;
|
|
@@ -69,14 +69,13 @@ export declare function validate(schema: JSONSchema, data: ConditionalParameters
|
|
|
69
69
|
export declare function validateValue(schema: JSONSchema, data: unknown): boolean;
|
|
70
70
|
export declare function isOnline(): boolean;
|
|
71
71
|
export declare function isConditionMet(conditional: JSONSchema, values: EventState | ActionUpdate, context: ValidatorContext): boolean;
|
|
72
|
-
export declare function areConditionsMet(conditions: FieldConditional[], values: Record<string, FieldValue>, context: ValidatorContext,
|
|
72
|
+
export declare function areConditionsMet(conditions: FieldConditional[], values: Record<string, FieldValue>, context: ValidatorContext, _event: EventIndex): boolean;
|
|
73
73
|
export type ValidatorContext = {
|
|
74
74
|
user?: ITokenPayload;
|
|
75
75
|
leafAdminStructureLocationIds?: Array<{
|
|
76
76
|
id: UUID;
|
|
77
77
|
}>;
|
|
78
78
|
event?: EventDocument;
|
|
79
|
-
eventConfig?: EventConfig;
|
|
80
79
|
baseFormState?: EventState;
|
|
81
80
|
};
|
|
82
81
|
export declare function isFieldVisible(field: FieldConfig, form: Partial<ActionUpdate | EventState>, context: ValidatorContext): boolean;
|
|
@@ -13,7 +13,6 @@ export declare const ActionConfigBase: z.ZodObject<{
|
|
|
13
13
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
14
14
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
15
15
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
16
|
-
readonly SEALED: 'sealed';
|
|
17
16
|
}>]>, z.ZodString]>;
|
|
18
17
|
operation: z.ZodEnum<{
|
|
19
18
|
add: "add";
|
|
@@ -40,7 +39,6 @@ declare const CustomActionConfig: z.ZodObject<{
|
|
|
40
39
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
41
40
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
42
41
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
43
|
-
readonly SEALED: 'sealed';
|
|
44
42
|
}>]>, z.ZodString]>;
|
|
45
43
|
operation: z.ZodEnum<{
|
|
46
44
|
add: "add";
|
|
@@ -72,7 +70,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
72
70
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
73
71
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
74
72
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
75
|
-
readonly SEALED: 'sealed';
|
|
76
73
|
}>]>, z.ZodString]>;
|
|
77
74
|
operation: z.ZodEnum<{
|
|
78
75
|
add: "add";
|
|
@@ -123,7 +120,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
123
120
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
124
121
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
125
122
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
126
|
-
readonly SEALED: 'sealed';
|
|
127
123
|
}>]>, z.ZodString]>;
|
|
128
124
|
operation: z.ZodEnum<{
|
|
129
125
|
add: "add";
|
|
@@ -150,7 +146,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
150
146
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
151
147
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
152
148
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
153
|
-
readonly SEALED: 'sealed';
|
|
154
149
|
}>]>, z.ZodString]>;
|
|
155
150
|
operation: z.ZodEnum<{
|
|
156
151
|
add: "add";
|
|
@@ -178,7 +173,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
178
173
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
179
174
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
180
175
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
181
|
-
readonly SEALED: 'sealed';
|
|
182
176
|
}>]>, z.ZodString]>;
|
|
183
177
|
operation: z.ZodEnum<{
|
|
184
178
|
add: "add";
|
|
@@ -219,7 +213,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
219
213
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
220
214
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
221
215
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
222
|
-
readonly SEALED: 'sealed';
|
|
223
216
|
}>]>, z.ZodString]>;
|
|
224
217
|
operation: z.ZodEnum<{
|
|
225
218
|
add: "add";
|
|
@@ -241,7 +234,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
241
234
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
242
235
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
243
236
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
244
|
-
readonly SEALED: 'sealed';
|
|
245
237
|
}>]>, z.ZodString]>;
|
|
246
238
|
operation: z.ZodEnum<{
|
|
247
239
|
add: "add";
|
|
@@ -268,7 +260,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
268
260
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
269
261
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
270
262
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
271
|
-
readonly SEALED: 'sealed';
|
|
272
263
|
}>]>, z.ZodString]>;
|
|
273
264
|
operation: z.ZodEnum<{
|
|
274
265
|
add: "add";
|
|
@@ -295,7 +286,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
295
286
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
296
287
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
297
288
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
298
|
-
readonly SEALED: 'sealed';
|
|
299
289
|
}>]>, z.ZodString]>;
|
|
300
290
|
operation: z.ZodEnum<{
|
|
301
291
|
add: "add";
|
|
@@ -323,7 +313,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
323
313
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
324
314
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
325
315
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
326
|
-
readonly SEALED: 'sealed';
|
|
327
316
|
}>]>, z.ZodString]>;
|
|
328
317
|
operation: z.ZodEnum<{
|
|
329
318
|
add: "add";
|
|
@@ -356,7 +345,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
356
345
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
357
346
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
358
347
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
359
|
-
readonly SEALED: 'sealed';
|
|
360
348
|
}>]>, z.ZodString]>;
|
|
361
349
|
operation: z.ZodEnum<{
|
|
362
350
|
add: "add";
|
|
@@ -413,7 +401,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
413
401
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
414
402
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
415
403
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
416
|
-
readonly SEALED: 'sealed';
|
|
417
404
|
}>]>, z.ZodString]>;
|
|
418
405
|
operation: z.ZodEnum<{
|
|
419
406
|
add: "add";
|
|
@@ -470,7 +457,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
470
457
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
471
458
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
472
459
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
473
|
-
readonly SEALED: 'sealed';
|
|
474
460
|
}>]>, z.ZodString]>;
|
|
475
461
|
operation: z.ZodEnum<{
|
|
476
462
|
add: "add";
|
|
@@ -497,7 +483,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
497
483
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
498
484
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
499
485
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
500
|
-
readonly SEALED: 'sealed';
|
|
501
486
|
}>]>, z.ZodString]>;
|
|
502
487
|
operation: z.ZodEnum<{
|
|
503
488
|
add: "add";
|
|
@@ -524,7 +509,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
524
509
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
525
510
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
526
511
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
527
|
-
readonly SEALED: 'sealed';
|
|
528
512
|
}>]>, z.ZodString]>;
|
|
529
513
|
operation: z.ZodEnum<{
|
|
530
514
|
add: "add";
|
|
@@ -556,7 +540,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
556
540
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
557
541
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
558
542
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
559
|
-
readonly SEALED: 'sealed';
|
|
560
543
|
}>]>, z.ZodString]>;
|
|
561
544
|
operation: z.ZodEnum<{
|
|
562
545
|
add: "add";
|
|
@@ -584,7 +567,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
584
567
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
585
568
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
586
569
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
587
|
-
readonly SEALED: 'sealed';
|
|
588
570
|
}>]>, z.ZodString]>;
|
|
589
571
|
operation: z.ZodEnum<{
|
|
590
572
|
add: "add";
|
|
@@ -611,7 +593,6 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
611
593
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
612
594
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
613
595
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
614
|
-
readonly SEALED: 'sealed';
|
|
615
596
|
}>]>, z.ZodString]>;
|
|
616
597
|
operation: z.ZodEnum<{
|
|
617
598
|
add: "add";
|
|
@@ -653,7 +634,6 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
653
634
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
654
635
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
655
636
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
656
|
-
readonly SEALED: 'sealed';
|
|
657
637
|
}>]>, z.ZodString]>;
|
|
658
638
|
operation: z.ZodEnum<{
|
|
659
639
|
add: "add";
|
|
@@ -695,7 +675,6 @@ export declare const DeclarationActionConfig: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
695
675
|
readonly CORRECTION_REQUESTED: 'correction-requested';
|
|
696
676
|
readonly POTENTIAL_DUPLICATE: 'potential-duplicate';
|
|
697
677
|
readonly EDIT_IN_PROGRESS: 'edit-in-progress';
|
|
698
|
-
readonly SEALED: 'sealed';
|
|
699
678
|
}>]>, z.ZodString]>;
|
|
700
679
|
operation: z.ZodEnum<{
|
|
701
680
|
add: "add";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as z from 'zod/v4';
|
|
2
2
|
import { FieldValue, FieldUpdateValue } from './FieldValue';
|
|
3
|
-
export { ActionStatus } from './ActionStatus';
|
|
4
3
|
/**
|
|
5
4
|
* ActionUpdate is a record of a specific action that updated data fields.
|
|
6
5
|
*/
|
|
@@ -11,6 +10,12 @@ export type ActionUpdate = z.infer<typeof ActionUpdate>;
|
|
|
11
10
|
*/
|
|
12
11
|
export declare const EventState: z.ZodRecord<z.ZodString, z.ZodType<FieldValue, unknown, z.core.$ZodTypeInternals<FieldValue, unknown>>>;
|
|
13
12
|
export type EventState = z.infer<typeof EventState>;
|
|
13
|
+
export declare const ActionStatus: {
|
|
14
|
+
readonly Requested: 'Requested';
|
|
15
|
+
readonly Accepted: 'Accepted';
|
|
16
|
+
readonly Rejected: 'Rejected';
|
|
17
|
+
};
|
|
18
|
+
export type ActionStatus = keyof typeof ActionStatus;
|
|
14
19
|
export declare const ActionBase: z.ZodObject<{
|
|
15
20
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
16
21
|
transactionId: z.ZodString;
|
|
@@ -160,9 +165,9 @@ declare const EditAction: z.ZodObject<{
|
|
|
160
165
|
}>;
|
|
161
166
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
162
167
|
type: z.ZodLiteral<"EDIT">;
|
|
163
|
-
content: z.
|
|
168
|
+
content: z.ZodObject<{
|
|
164
169
|
comment: z.ZodOptional<z.ZodString>;
|
|
165
|
-
}, z.core.$strip
|
|
170
|
+
}, z.core.$strip>;
|
|
166
171
|
}, z.core.$strip>;
|
|
167
172
|
export type EditAction = z.infer<typeof EditAction>;
|
|
168
173
|
export declare const PrintContent: z.ZodObject<{
|
|
@@ -648,9 +653,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
648
653
|
}>;
|
|
649
654
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
650
655
|
type: z.ZodLiteral<"EDIT">;
|
|
651
|
-
content: z.
|
|
656
|
+
content: z.ZodObject<{
|
|
652
657
|
comment: z.ZodOptional<z.ZodString>;
|
|
653
|
-
}, z.core.$strip
|
|
658
|
+
}, z.core.$strip>;
|
|
654
659
|
}, z.core.$strip>, z.ZodObject<{
|
|
655
660
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
656
661
|
transactionId: z.ZodString;
|
|
@@ -1111,9 +1116,9 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1111
1116
|
}>;
|
|
1112
1117
|
originalActionId: z.ZodNullable<z.ZodOptional<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
1113
1118
|
type: z.ZodLiteral<"EDIT">;
|
|
1114
|
-
content: z.
|
|
1119
|
+
content: z.ZodObject<{
|
|
1115
1120
|
comment: z.ZodOptional<z.ZodString>;
|
|
1116
|
-
}, z.core.$strip
|
|
1121
|
+
}, z.core.$strip>;
|
|
1117
1122
|
}, z.core.$strip>, z.ZodObject<{
|
|
1118
1123
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
1119
1124
|
transactionId: z.ZodString;
|
|
@@ -1168,4 +1173,5 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1168
1173
|
export type Action = z.infer<typeof Action>;
|
|
1169
1174
|
export type CreatedAction = z.infer<typeof CreatedAction>;
|
|
1170
1175
|
export type AssignedAction = z.infer<typeof AssignedAction>;
|
|
1176
|
+
export {};
|
|
1171
1177
|
//# sourceMappingURL=ActionDocument.d.ts.map
|
|
@@ -65,6 +65,9 @@ export declare const EditActionInput: z.ZodObject<{
|
|
|
65
65
|
waitFor: z.ZodDefault<z.ZodBoolean>;
|
|
66
66
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
67
67
|
type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
|
|
68
|
+
content: z.ZodObject<{
|
|
69
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>;
|
|
68
71
|
}, z.core.$strip>;
|
|
69
72
|
export type EditActionInput = z.infer<typeof EditActionInput>;
|
|
70
73
|
export declare const PrintCertificateActionInput: z.ZodObject<{
|
|
@@ -561,6 +564,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
561
564
|
waitFor: z.ZodDefault<z.ZodBoolean>;
|
|
562
565
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
563
566
|
type: z.ZodDefault<z.ZodLiteral<"EDIT">>;
|
|
567
|
+
content: z.ZodObject<{
|
|
568
|
+
comment: z.ZodOptional<z.ZodString>;
|
|
569
|
+
}, z.core.$strip>;
|
|
564
570
|
}, z.core.$strip>], "type">;
|
|
565
571
|
export type ActionInput = z.input<typeof ActionInput>;
|
|
566
572
|
export type ActionInputWithType = z.infer<typeof ActionInput>;
|
|
@@ -141,7 +141,6 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
141
141
|
declaredBy: "declaredBy";
|
|
142
142
|
declaredIn: "declaredIn";
|
|
143
143
|
event: "event";
|
|
144
|
-
flags: "flags";
|
|
145
144
|
ids: "ids";
|
|
146
145
|
notifiedBy: "notifiedBy";
|
|
147
146
|
notifiedIn: "notifiedIn";
|
|
@@ -322,7 +321,6 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
322
321
|
declaredBy: "declaredBy";
|
|
323
322
|
declaredIn: "declaredIn";
|
|
324
323
|
event: "event";
|
|
325
|
-
flags: "flags";
|
|
326
324
|
ids: "ids";
|
|
327
325
|
notifiedBy: "notifiedBy";
|
|
328
326
|
notifiedIn: "notifiedIn";
|
|
@@ -479,7 +477,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
479
477
|
declaredBy: "declaredBy";
|
|
480
478
|
declaredIn: "declaredIn";
|
|
481
479
|
event: "event";
|
|
482
|
-
flags: "flags";
|
|
483
480
|
ids: "ids";
|
|
484
481
|
notifiedBy: "notifiedBy";
|
|
485
482
|
notifiedIn: "notifiedIn";
|
|
@@ -628,7 +625,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
628
625
|
declaredBy: "declaredBy";
|
|
629
626
|
declaredIn: "declaredIn";
|
|
630
627
|
event: "event";
|
|
631
|
-
flags: "flags";
|
|
632
628
|
ids: "ids";
|
|
633
629
|
notifiedBy: "notifiedBy";
|
|
634
630
|
notifiedIn: "notifiedIn";
|
|
@@ -788,7 +784,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
788
784
|
declaredBy: "declaredBy";
|
|
789
785
|
declaredIn: "declaredIn";
|
|
790
786
|
event: "event";
|
|
791
|
-
flags: "flags";
|
|
792
787
|
ids: "ids";
|
|
793
788
|
notifiedBy: "notifiedBy";
|
|
794
789
|
notifiedIn: "notifiedIn";
|
|
@@ -937,7 +932,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
937
932
|
declaredBy: "declaredBy";
|
|
938
933
|
declaredIn: "declaredIn";
|
|
939
934
|
event: "event";
|
|
940
|
-
flags: "flags";
|
|
941
935
|
ids: "ids";
|
|
942
936
|
notifiedBy: "notifiedBy";
|
|
943
937
|
notifiedIn: "notifiedIn";
|