@opencrvs/toolkit 2.0.1-rc.16bf10a → 2.0.1-rc.17a198c
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 +6 -2
- package/dist/cli.js +8 -4
- package/dist/commons/api/router.d.ts +36 -13
- package/dist/commons/conditionals/conditionals.d.ts +3 -3
- package/dist/commons/events/ActionDocument.d.ts +2 -2
- package/dist/commons/events/AdvancedSearchConfig.d.ts +12 -0
- package/dist/commons/events/Draft.d.ts +1 -1
- package/dist/commons/events/EventDocument.d.ts +1 -1
- package/dist/commons/events/EventMetadata.d.ts +1 -1
- package/dist/commons/events/FieldConfig.d.ts +10 -0
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +4 -4
- package/dist/commons/events/WorkqueueConfig.d.ts +5 -5
- package/dist/commons/events/state/utils.d.ts +1 -1
- package/dist/commons/events/utils.d.ts +1 -1
- package/dist/conditionals/index.js +6 -2
- package/dist/events/index.js +23 -2
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.d.ts.map +1 -1
- package/dist/migrations/v2.0/checkout-upstream-files.js +1 -1
- package/dist/migrations/v2.0/index.js +8 -4
- package/dist/migrations/v2.0/merge-infrastructure-directory.js +3 -3
- package/dist/notification/index.js +6 -2
- package/dist/scopes/index.d.ts +108 -0
- package/dist/scopes/index.js +6 -2
- package/opencrvs-toolkit-2.0.1-rc.17a198c.tgz +0 -0
- package/package.json +1 -1
- package/opencrvs-toolkit-2.0.1-rc.16bf10a.tgz +0 -0
|
@@ -663,7 +663,9 @@ var userRole = z11.preprocess(
|
|
|
663
663
|
).describe("User role, e.g. admin, field agent");
|
|
664
664
|
var scopeOptionsPlaceEvent = z11.object({
|
|
665
665
|
event: scopeByEvent,
|
|
666
|
-
placeOfEvent: JurisdictionFilter.optional()
|
|
666
|
+
placeOfEvent: JurisdictionFilter.optional(),
|
|
667
|
+
createdBy: UserFilter.optional(),
|
|
668
|
+
createdIn: JurisdictionFilter.optional()
|
|
667
669
|
}).describe("Options applicable to all record scopes.");
|
|
668
670
|
var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
|
|
669
671
|
declaredIn: JurisdictionFilter.optional(),
|
|
@@ -702,7 +704,9 @@ var AllScopeOptions = z11.object({
|
|
|
702
704
|
var ScopeOptionKey = AllScopeOptions.keyof();
|
|
703
705
|
var ResolvedScopeOptionsPlaceEvent = z11.object({
|
|
704
706
|
event: scopeByEvent,
|
|
705
|
-
placeOfEvent: UUID.nullish()
|
|
707
|
+
placeOfEvent: UUID.nullish(),
|
|
708
|
+
createdBy: z11.string().optional(),
|
|
709
|
+
createdIn: UUID.nullish()
|
|
706
710
|
}).describe(
|
|
707
711
|
"Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
|
|
708
712
|
);
|
package/dist/cli.js
CHANGED
|
@@ -2190,7 +2190,9 @@ var userRole = z3.preprocess(
|
|
|
2190
2190
|
).describe("User role, e.g. admin, field agent");
|
|
2191
2191
|
var scopeOptionsPlaceEvent = z3.object({
|
|
2192
2192
|
event: scopeByEvent,
|
|
2193
|
-
placeOfEvent: JurisdictionFilter.optional()
|
|
2193
|
+
placeOfEvent: JurisdictionFilter.optional(),
|
|
2194
|
+
createdBy: UserFilter.optional(),
|
|
2195
|
+
createdIn: JurisdictionFilter.optional()
|
|
2194
2196
|
}).describe("Options applicable to all record scopes.");
|
|
2195
2197
|
var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
|
|
2196
2198
|
declaredIn: JurisdictionFilter.optional(),
|
|
@@ -2229,7 +2231,9 @@ var AllScopeOptions = z3.object({
|
|
|
2229
2231
|
var ScopeOptionKey = AllScopeOptions.keyof();
|
|
2230
2232
|
var ResolvedScopeOptionsPlaceEvent = z3.object({
|
|
2231
2233
|
event: scopeByEvent,
|
|
2232
|
-
placeOfEvent: UUID.nullish()
|
|
2234
|
+
placeOfEvent: UUID.nullish(),
|
|
2235
|
+
createdBy: z3.string().optional(),
|
|
2236
|
+
createdIn: UUID.nullish()
|
|
2233
2237
|
}).describe(
|
|
2234
2238
|
"Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
|
|
2235
2239
|
);
|
|
@@ -4300,7 +4304,7 @@ Saved ${handlerRelPath}.`);
|
|
|
4300
4304
|
// src/migrations/v2.0/checkout-upstream-files.ts
|
|
4301
4305
|
var import_child_process = require("child_process");
|
|
4302
4306
|
var UPSTREAM_URL = "https://github.com/opencrvs/opencrvs-countryconfig.git";
|
|
4303
|
-
var UPSTREAM_BRANCH = "release
|
|
4307
|
+
var UPSTREAM_BRANCH = "release/2.0.0";
|
|
4304
4308
|
var TEMP_REMOTE = "opencrvs-upgrade-v19-v20-codemod";
|
|
4305
4309
|
var FILES_TO_CHECKOUT = [
|
|
4306
4310
|
"src/analytics/analytics.ts",
|
|
@@ -4838,7 +4842,7 @@ var import_os = require("os");
|
|
|
4838
4842
|
var import_path24 = require("path");
|
|
4839
4843
|
var TEMP_REMOTE2 = "opencrvs-upgrade-v19-v20-codemod-merge-infra";
|
|
4840
4844
|
var INFRASTRUCTURE_DIR = "infrastructure";
|
|
4841
|
-
var BASE_BRANCH = "release
|
|
4845
|
+
var BASE_BRANCH = "release/1.9.15";
|
|
4842
4846
|
function gitShowBytes(ref, path24) {
|
|
4843
4847
|
try {
|
|
4844
4848
|
const buf = (0, import_child_process2.execFileSync)("git", ["show", `${ref}:${path24}`], {
|
|
@@ -413,10 +413,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
413
413
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
414
414
|
} | {
|
|
415
415
|
id: string & import("zod").$brand<"UUID">;
|
|
416
|
+
createdBy: string;
|
|
416
417
|
transactionId: string;
|
|
417
418
|
createdByUserType: "system" | "user";
|
|
418
419
|
createdAt: string;
|
|
419
|
-
createdBy: string;
|
|
420
420
|
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
421
421
|
status: "Rejected";
|
|
422
422
|
createdByRole?: string | undefined;
|
|
@@ -725,10 +725,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
725
725
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
726
726
|
} | {
|
|
727
727
|
id: string & import("zod").$brand<"UUID">;
|
|
728
|
+
createdBy: string;
|
|
728
729
|
transactionId: string;
|
|
729
730
|
createdByUserType: "system" | "user";
|
|
730
731
|
createdAt: string;
|
|
731
|
-
createdBy: string;
|
|
732
732
|
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
733
733
|
status: "Rejected";
|
|
734
734
|
createdByRole?: string | undefined;
|
|
@@ -1036,10 +1036,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1036
1036
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1037
1037
|
} | {
|
|
1038
1038
|
id: string & import("zod").$brand<"UUID">;
|
|
1039
|
+
createdBy: string;
|
|
1039
1040
|
transactionId: string;
|
|
1040
1041
|
createdByUserType: "system" | "user";
|
|
1041
1042
|
createdAt: string;
|
|
1042
|
-
createdBy: string;
|
|
1043
1043
|
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
1044
1044
|
status: "Rejected";
|
|
1045
1045
|
createdByRole?: string | undefined;
|
|
@@ -1091,10 +1091,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1091
1091
|
createdAt: string;
|
|
1092
1092
|
action: {
|
|
1093
1093
|
type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
|
|
1094
|
+
createdBy: string;
|
|
1094
1095
|
transactionId: string;
|
|
1095
1096
|
createdByUserType: "system" | "user";
|
|
1096
1097
|
createdAt: string;
|
|
1097
|
-
createdBy: string;
|
|
1098
1098
|
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1099
1099
|
status: "Requested" | "Accepted" | "Rejected";
|
|
1100
1100
|
createdByRole?: string | undefined;
|
|
@@ -1126,10 +1126,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1126
1126
|
createdAt: string;
|
|
1127
1127
|
action: {
|
|
1128
1128
|
type: "CREATE" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "DUPLICATE_DETECTED" | "REJECT" | "MARK_AS_DUPLICATE" | "MARK_AS_NOT_DUPLICATE" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "READ" | "ASSIGN" | "UNASSIGN" | "CUSTOM";
|
|
1129
|
+
createdBy: string;
|
|
1129
1130
|
transactionId: string;
|
|
1130
1131
|
createdByUserType: "system" | "user";
|
|
1131
1132
|
createdAt: string;
|
|
1132
|
-
createdBy: string;
|
|
1133
1133
|
declaration: Record<string, import("../commons").FieldUpdateValue>;
|
|
1134
1134
|
status: "Requested" | "Accepted" | "Rejected";
|
|
1135
1135
|
createdByRole?: string | undefined;
|
|
@@ -1784,10 +1784,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1784
1784
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
1785
1785
|
} | {
|
|
1786
1786
|
id: string & import("zod").$brand<"UUID">;
|
|
1787
|
+
createdBy: string;
|
|
1787
1788
|
transactionId: string;
|
|
1788
1789
|
createdByUserType: "system" | "user";
|
|
1789
1790
|
createdAt: string;
|
|
1790
|
-
createdBy: string;
|
|
1791
1791
|
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
1792
1792
|
status: "Rejected";
|
|
1793
1793
|
createdByRole?: string | undefined;
|
|
@@ -2127,10 +2127,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2127
2127
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
2128
2128
|
} | {
|
|
2129
2129
|
id: string & import("zod").$brand<"UUID">;
|
|
2130
|
+
createdBy: string;
|
|
2130
2131
|
transactionId: string;
|
|
2131
2132
|
createdByUserType: "system" | "user";
|
|
2132
2133
|
createdAt: string;
|
|
2133
|
-
createdBy: string;
|
|
2134
2134
|
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
2135
2135
|
status: "Rejected";
|
|
2136
2136
|
createdByRole?: string | undefined;
|
|
@@ -4213,10 +4213,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4213
4213
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4214
4214
|
} | {
|
|
4215
4215
|
id: string & import("zod").$brand<"UUID">;
|
|
4216
|
+
createdBy: string;
|
|
4216
4217
|
transactionId: string;
|
|
4217
4218
|
createdByUserType: "system" | "user";
|
|
4218
4219
|
createdAt: string;
|
|
4219
|
-
createdBy: string;
|
|
4220
4220
|
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
4221
4221
|
status: "Rejected";
|
|
4222
4222
|
createdByRole?: string | undefined;
|
|
@@ -4824,10 +4824,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4824
4824
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
4825
4825
|
} | {
|
|
4826
4826
|
id: string & import("zod").$brand<"UUID">;
|
|
4827
|
+
createdBy: string;
|
|
4827
4828
|
transactionId: string;
|
|
4828
4829
|
createdByUserType: "system" | "user";
|
|
4829
4830
|
createdAt: string;
|
|
4830
|
-
createdBy: string;
|
|
4831
4831
|
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
4832
4832
|
status: "Rejected";
|
|
4833
4833
|
createdByRole?: string | undefined;
|
|
@@ -5145,10 +5145,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5145
5145
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
5146
5146
|
} | {
|
|
5147
5147
|
id: string & import("zod").$brand<"UUID">;
|
|
5148
|
+
createdBy: string;
|
|
5148
5149
|
transactionId: string;
|
|
5149
5150
|
createdByUserType: "system" | "user";
|
|
5150
5151
|
createdAt: string;
|
|
5151
|
-
createdBy: string;
|
|
5152
5152
|
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
5153
5153
|
status: "Rejected";
|
|
5154
5154
|
createdByRole?: string | undefined;
|
|
@@ -6399,10 +6399,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6399
6399
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6400
6400
|
} | {
|
|
6401
6401
|
id: string & import("zod").$brand<"UUID">;
|
|
6402
|
+
createdBy: string;
|
|
6402
6403
|
transactionId: string;
|
|
6403
6404
|
createdByUserType: "system" | "user";
|
|
6404
6405
|
createdAt: string;
|
|
6405
|
-
createdBy: string;
|
|
6406
6406
|
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
6407
6407
|
status: "Rejected";
|
|
6408
6408
|
createdByRole?: string | undefined;
|
|
@@ -6719,10 +6719,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6719
6719
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
6720
6720
|
} | {
|
|
6721
6721
|
id: string & import("zod").$brand<"UUID">;
|
|
6722
|
+
createdBy: string;
|
|
6722
6723
|
transactionId: string;
|
|
6723
6724
|
createdByUserType: "system" | "user";
|
|
6724
6725
|
createdAt: string;
|
|
6725
|
-
createdBy: string;
|
|
6726
6726
|
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
6727
6727
|
status: "Rejected";
|
|
6728
6728
|
createdByRole?: string | undefined;
|
|
@@ -7082,10 +7082,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7082
7082
|
originalActionId?: string | null | undefined;
|
|
7083
7083
|
} | {
|
|
7084
7084
|
id: string;
|
|
7085
|
+
createdBy: string;
|
|
7085
7086
|
transactionId: string;
|
|
7086
7087
|
createdByUserType: "system" | "user";
|
|
7087
7088
|
createdAt: string;
|
|
7088
|
-
createdBy: string;
|
|
7089
7089
|
type: "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION" | "CUSTOM";
|
|
7090
7090
|
status: "Rejected";
|
|
7091
7091
|
createdByRole?: string | undefined;
|
|
@@ -7803,6 +7803,18 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7803
7803
|
output: void;
|
|
7804
7804
|
meta: object;
|
|
7805
7805
|
}>;
|
|
7806
|
+
upsert: import("@trpc/server").TRPCMutationProcedure<{
|
|
7807
|
+
input: {
|
|
7808
|
+
id: string;
|
|
7809
|
+
name: string;
|
|
7810
|
+
administrativeAreaId: string | null;
|
|
7811
|
+
validUntil: string | null;
|
|
7812
|
+
locationType: string | null;
|
|
7813
|
+
externalId?: string | null | undefined;
|
|
7814
|
+
};
|
|
7815
|
+
output: void;
|
|
7816
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
7817
|
+
}>;
|
|
7806
7818
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
7807
7819
|
input: {
|
|
7808
7820
|
id: string;
|
|
@@ -8234,6 +8246,17 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
8234
8246
|
output: void;
|
|
8235
8247
|
meta: object;
|
|
8236
8248
|
}>;
|
|
8249
|
+
upsert: import("@trpc/server").TRPCMutationProcedure<{
|
|
8250
|
+
input: {
|
|
8251
|
+
id: string;
|
|
8252
|
+
name: string;
|
|
8253
|
+
parentId: string | null;
|
|
8254
|
+
validUntil: string | null;
|
|
8255
|
+
externalId?: string | null | undefined;
|
|
8256
|
+
};
|
|
8257
|
+
output: void;
|
|
8258
|
+
meta: import("trpc-to-openapi").OpenApiMeta;
|
|
8259
|
+
}>;
|
|
8237
8260
|
}>>;
|
|
8238
8261
|
integrations: import("@trpc/server").TRPCBuiltRouter<{
|
|
8239
8262
|
ctx: Partial<{
|
|
@@ -94,16 +94,16 @@ export declare const user: typeof userSerializer & {
|
|
|
94
94
|
scope: (scope: import("../scopes").ScopeType) => {
|
|
95
95
|
attribute: (option: import("../scopes").ScopeOptionKey) => {
|
|
96
96
|
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
97
|
-
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
97
|
+
$option: "role" | "event" | "placeOfEvent" | "createdBy" | "createdIn" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
100
|
jurisdiction: (jurisdiction: import("../scopes").JurisdictionFilter | {
|
|
101
101
|
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
102
|
-
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
102
|
+
$option: "role" | "event" | "placeOfEvent" | "createdBy" | "createdIn" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
103
103
|
}) => {
|
|
104
104
|
$jurisdiction: "administrativeArea" | "location" | "all" | {
|
|
105
105
|
$scope: "record.search" | "record.create" | "record.read" | "record.declare" | "record.notify" | "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register" | "record.print-certified-copies" | "record.request-correction" | "record.correct" | "record.unassign-others" | "record.custom-action" | "bypassratelimit" | "record.reindex" | "user.data-seeding" | "integration.create" | "record.import" | "config.update-all" | "attachment.upload" | "profile.electronic-signature" | "user.read-only-my-audit" | "performance.read" | "performance.read-dashboards" | "performance.vital-statistics-export" | "record.confirm-registration" | "record.reject-registration" | "organisation.read-locations" | "user.read" | "user.create" | "user.edit" | "user.search" | "workqueue" | "dashboard.view";
|
|
106
|
-
$option: "role" | "event" | "placeOfEvent" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
106
|
+
$option: "role" | "event" | "placeOfEvent" | "createdBy" | "createdIn" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
|
|
107
107
|
};
|
|
108
108
|
};
|
|
109
109
|
};
|
|
@@ -661,13 +661,13 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
661
661
|
export type ActionDocument = z.infer<typeof ActionDocument>;
|
|
662
662
|
export declare const AsyncRejectActionDocument: z.ZodObject<{
|
|
663
663
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
664
|
+
createdBy: z.ZodString;
|
|
664
665
|
transactionId: z.ZodString;
|
|
665
666
|
createdByUserType: z.ZodEnum<{
|
|
666
667
|
user: "user";
|
|
667
668
|
system: "system";
|
|
668
669
|
}>;
|
|
669
670
|
createdAt: z.ZodString;
|
|
670
|
-
createdBy: z.ZodString;
|
|
671
671
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
672
672
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
673
673
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
@@ -1100,13 +1100,13 @@ export declare const Action: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1100
1100
|
customActionType: z.ZodString;
|
|
1101
1101
|
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
1102
1102
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
1103
|
+
createdBy: z.ZodString;
|
|
1103
1104
|
transactionId: z.ZodString;
|
|
1104
1105
|
createdByUserType: z.ZodEnum<{
|
|
1105
1106
|
user: "user";
|
|
1106
1107
|
system: "system";
|
|
1107
1108
|
}>;
|
|
1108
1109
|
createdAt: z.ZodString;
|
|
1109
|
-
createdBy: z.ZodString;
|
|
1110
1110
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
1111
1111
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
1112
1112
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
@@ -139,6 +139,8 @@ export declare const FieldConfigSchema: z.ZodObject<{
|
|
|
139
139
|
role: "role";
|
|
140
140
|
event: "event";
|
|
141
141
|
placeOfEvent: "placeOfEvent";
|
|
142
|
+
createdBy: "createdBy";
|
|
143
|
+
createdIn: "createdIn";
|
|
142
144
|
declaredIn: "declaredIn";
|
|
143
145
|
declaredBy: "declaredBy";
|
|
144
146
|
registeredIn: "registeredIn";
|
|
@@ -316,6 +318,8 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
|
|
|
316
318
|
role: "role";
|
|
317
319
|
event: "event";
|
|
318
320
|
placeOfEvent: "placeOfEvent";
|
|
321
|
+
createdBy: "createdBy";
|
|
322
|
+
createdIn: "createdIn";
|
|
319
323
|
declaredIn: "declaredIn";
|
|
320
324
|
declaredBy: "declaredBy";
|
|
321
325
|
registeredIn: "registeredIn";
|
|
@@ -469,6 +473,8 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
469
473
|
role: "role";
|
|
470
474
|
event: "event";
|
|
471
475
|
placeOfEvent: "placeOfEvent";
|
|
476
|
+
createdBy: "createdBy";
|
|
477
|
+
createdIn: "createdIn";
|
|
472
478
|
declaredIn: "declaredIn";
|
|
473
479
|
declaredBy: "declaredBy";
|
|
474
480
|
registeredIn: "registeredIn";
|
|
@@ -614,6 +620,8 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
614
620
|
role: "role";
|
|
615
621
|
event: "event";
|
|
616
622
|
placeOfEvent: "placeOfEvent";
|
|
623
|
+
createdBy: "createdBy";
|
|
624
|
+
createdIn: "createdIn";
|
|
617
625
|
declaredIn: "declaredIn";
|
|
618
626
|
declaredBy: "declaredBy";
|
|
619
627
|
registeredIn: "registeredIn";
|
|
@@ -770,6 +778,8 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
770
778
|
role: "role";
|
|
771
779
|
event: "event";
|
|
772
780
|
placeOfEvent: "placeOfEvent";
|
|
781
|
+
createdBy: "createdBy";
|
|
782
|
+
createdIn: "createdIn";
|
|
773
783
|
declaredIn: "declaredIn";
|
|
774
784
|
declaredBy: "declaredBy";
|
|
775
785
|
registeredIn: "registeredIn";
|
|
@@ -915,6 +925,8 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
|
|
|
915
925
|
role: "role";
|
|
916
926
|
event: "event";
|
|
917
927
|
placeOfEvent: "placeOfEvent";
|
|
928
|
+
createdBy: "createdBy";
|
|
929
|
+
createdIn: "createdIn";
|
|
918
930
|
declaredIn: "declaredIn";
|
|
919
931
|
declaredBy: "declaredBy";
|
|
920
932
|
registeredIn: "registeredIn";
|
|
@@ -25,13 +25,13 @@ export declare const Draft: z.ZodObject<{
|
|
|
25
25
|
ASSIGN: "ASSIGN";
|
|
26
26
|
UNASSIGN: "UNASSIGN";
|
|
27
27
|
}>;
|
|
28
|
+
createdBy: z.ZodString;
|
|
28
29
|
transactionId: z.ZodString;
|
|
29
30
|
createdByUserType: z.ZodEnum<{
|
|
30
31
|
user: "user";
|
|
31
32
|
system: "system";
|
|
32
33
|
}>;
|
|
33
34
|
createdAt: z.ZodString;
|
|
34
|
-
createdBy: z.ZodString;
|
|
35
35
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
36
36
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
37
37
|
declaration: z.ZodRecord<z.ZodString, z.ZodType<import("./FieldValue").FieldUpdateValue, unknown, z.core.$ZodTypeInternals<import("./FieldValue").FieldUpdateValue, unknown>>>;
|
|
@@ -416,13 +416,13 @@ export declare const EventDocument: z.ZodObject<{
|
|
|
416
416
|
customActionType: z.ZodString;
|
|
417
417
|
}, z.core.$strip>], "type">, z.ZodObject<{
|
|
418
418
|
id: z.core.$ZodBranded<z.ZodUUID, "UUID", "out">;
|
|
419
|
+
createdBy: z.ZodString;
|
|
419
420
|
transactionId: z.ZodString;
|
|
420
421
|
createdByUserType: z.ZodEnum<{
|
|
421
422
|
user: "user";
|
|
422
423
|
system: "system";
|
|
423
424
|
}>;
|
|
424
425
|
createdAt: z.ZodString;
|
|
425
|
-
createdBy: z.ZodString;
|
|
426
426
|
createdByRole: z.ZodOptional<z.ZodString>;
|
|
427
427
|
createdBySignature: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">>>;
|
|
428
428
|
createdAtLocation: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
@@ -137,9 +137,9 @@ export declare const EventMetadataKeys: z.ZodEnum<{
|
|
|
137
137
|
type: "type";
|
|
138
138
|
updatedAt: "updatedAt";
|
|
139
139
|
placeOfEvent: "placeOfEvent";
|
|
140
|
+
createdBy: "createdBy";
|
|
140
141
|
createdByUserType: "createdByUserType";
|
|
141
142
|
createdAt: "createdAt";
|
|
142
|
-
createdBy: "createdBy";
|
|
143
143
|
createdAtLocation: "createdAtLocation";
|
|
144
144
|
status: "status";
|
|
145
145
|
assignedTo: "assignedTo";
|
|
@@ -1919,6 +1919,8 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1919
1919
|
role: "role";
|
|
1920
1920
|
event: "event";
|
|
1921
1921
|
placeOfEvent: "placeOfEvent";
|
|
1922
|
+
createdBy: "createdBy";
|
|
1923
|
+
createdIn: "createdIn";
|
|
1922
1924
|
declaredIn: "declaredIn";
|
|
1923
1925
|
declaredBy: "declaredBy";
|
|
1924
1926
|
registeredIn: "registeredIn";
|
|
@@ -2045,6 +2047,8 @@ declare const LocationInput: z.ZodObject<{
|
|
|
2045
2047
|
role: "role";
|
|
2046
2048
|
event: "event";
|
|
2047
2049
|
placeOfEvent: "placeOfEvent";
|
|
2050
|
+
createdBy: "createdBy";
|
|
2051
|
+
createdIn: "createdIn";
|
|
2048
2052
|
declaredIn: "declaredIn";
|
|
2049
2053
|
declaredBy: "declaredBy";
|
|
2050
2054
|
registeredIn: "registeredIn";
|
|
@@ -2242,6 +2246,8 @@ declare const Facility: z.ZodObject<{
|
|
|
2242
2246
|
role: "role";
|
|
2243
2247
|
event: "event";
|
|
2244
2248
|
placeOfEvent: "placeOfEvent";
|
|
2249
|
+
createdBy: "createdBy";
|
|
2250
|
+
createdIn: "createdIn";
|
|
2245
2251
|
declaredIn: "declaredIn";
|
|
2246
2252
|
declaredBy: "declaredBy";
|
|
2247
2253
|
registeredIn: "registeredIn";
|
|
@@ -2354,6 +2360,8 @@ declare const Office: z.ZodObject<{
|
|
|
2354
2360
|
role: "role";
|
|
2355
2361
|
event: "event";
|
|
2356
2362
|
placeOfEvent: "placeOfEvent";
|
|
2363
|
+
createdBy: "createdBy";
|
|
2364
|
+
createdIn: "createdIn";
|
|
2357
2365
|
declaredIn: "declaredIn";
|
|
2358
2366
|
declaredBy: "declaredBy";
|
|
2359
2367
|
registeredIn: "registeredIn";
|
|
@@ -2552,6 +2560,8 @@ declare const Address: z.ZodObject<{
|
|
|
2552
2560
|
role: "role";
|
|
2553
2561
|
event: "event";
|
|
2554
2562
|
placeOfEvent: "placeOfEvent";
|
|
2563
|
+
createdBy: "createdBy";
|
|
2564
|
+
createdIn: "createdIn";
|
|
2555
2565
|
declaredIn: "declaredIn";
|
|
2556
2566
|
declaredBy: "declaredBy";
|
|
2557
2567
|
registeredIn: "registeredIn";
|
|
@@ -6,9 +6,9 @@ export declare const WorkqueueColumnKeys: z.ZodEnum<{
|
|
|
6
6
|
type: "type";
|
|
7
7
|
updatedAt: "updatedAt";
|
|
8
8
|
placeOfEvent: "placeOfEvent";
|
|
9
|
+
createdBy: "createdBy";
|
|
9
10
|
createdByUserType: "createdByUserType";
|
|
10
11
|
createdAt: "createdAt";
|
|
11
|
-
createdBy: "createdBy";
|
|
12
12
|
createdAtLocation: "createdAtLocation";
|
|
13
13
|
status: "status";
|
|
14
14
|
assignedTo: "assignedTo";
|
|
@@ -29,9 +29,9 @@ export declare const WorkqueueColumnValue: z.ZodObject<{
|
|
|
29
29
|
type: "type";
|
|
30
30
|
updatedAt: "updatedAt";
|
|
31
31
|
placeOfEvent: "placeOfEvent";
|
|
32
|
+
createdBy: "createdBy";
|
|
32
33
|
createdByUserType: "createdByUserType";
|
|
33
34
|
createdAt: "createdAt";
|
|
34
|
-
createdBy: "createdBy";
|
|
35
35
|
createdAtLocation: "createdAtLocation";
|
|
36
36
|
status: "status";
|
|
37
37
|
assignedTo: "assignedTo";
|
|
@@ -58,9 +58,9 @@ export declare const WorkqueueColumn: z.ZodObject<{
|
|
|
58
58
|
type: "type";
|
|
59
59
|
updatedAt: "updatedAt";
|
|
60
60
|
placeOfEvent: "placeOfEvent";
|
|
61
|
+
createdBy: "createdBy";
|
|
61
62
|
createdByUserType: "createdByUserType";
|
|
62
63
|
createdAt: "createdAt";
|
|
63
|
-
createdBy: "createdBy";
|
|
64
64
|
createdAtLocation: "createdAtLocation";
|
|
65
65
|
status: "status";
|
|
66
66
|
assignedTo: "assignedTo";
|
|
@@ -84,7 +84,7 @@ export declare function defineWorkqueuesColumns(workqueueColumns: WorkqueueColum
|
|
|
84
84
|
description: string;
|
|
85
85
|
};
|
|
86
86
|
value: {
|
|
87
|
-
$event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "
|
|
87
|
+
$event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "createdBy" | "createdByUserType" | "createdAt" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
|
88
88
|
};
|
|
89
89
|
}[];
|
|
90
90
|
//# sourceMappingURL=WorkqueueColumnConfig.d.ts.map
|
|
@@ -6,7 +6,7 @@ export declare const mandatoryColumns: {
|
|
|
6
6
|
description: string;
|
|
7
7
|
};
|
|
8
8
|
value: {
|
|
9
|
-
$event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "
|
|
9
|
+
$event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "createdBy" | "createdByUserType" | "createdAt" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
|
10
10
|
};
|
|
11
11
|
}[];
|
|
12
12
|
/**
|
|
@@ -659,9 +659,9 @@ export declare const WorkqueueConfig: z.ZodObject<{
|
|
|
659
659
|
type: "type";
|
|
660
660
|
updatedAt: "updatedAt";
|
|
661
661
|
placeOfEvent: "placeOfEvent";
|
|
662
|
+
createdBy: "createdBy";
|
|
662
663
|
createdByUserType: "createdByUserType";
|
|
663
664
|
createdAt: "createdAt";
|
|
664
|
-
createdBy: "createdBy";
|
|
665
665
|
createdAtLocation: "createdAtLocation";
|
|
666
666
|
status: "status";
|
|
667
667
|
assignedTo: "assignedTo";
|
|
@@ -933,9 +933,9 @@ export declare const WorkqueueConfigInput: z.ZodObject<{
|
|
|
933
933
|
type: "type";
|
|
934
934
|
updatedAt: "updatedAt";
|
|
935
935
|
placeOfEvent: "placeOfEvent";
|
|
936
|
+
createdBy: "createdBy";
|
|
936
937
|
createdByUserType: "createdByUserType";
|
|
937
938
|
createdAt: "createdAt";
|
|
938
|
-
createdBy: "createdBy";
|
|
939
939
|
createdAtLocation: "createdAtLocation";
|
|
940
940
|
status: "status";
|
|
941
941
|
assignedTo: "assignedTo";
|
|
@@ -2279,7 +2279,7 @@ export declare function defineWorkqueue(workqueueInput: WorkqueueConfigInput): {
|
|
|
2279
2279
|
description: string;
|
|
2280
2280
|
};
|
|
2281
2281
|
value: {
|
|
2282
|
-
$event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "
|
|
2282
|
+
$event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "createdBy" | "createdByUserType" | "createdAt" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
|
2283
2283
|
};
|
|
2284
2284
|
}[];
|
|
2285
2285
|
icon: "File" | "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
|
|
@@ -2588,7 +2588,7 @@ export declare function defineWorkqueues(workqueues: WorkqueueConfigInputWithV19
|
|
|
2588
2588
|
description: string;
|
|
2589
2589
|
};
|
|
2590
2590
|
value: {
|
|
2591
|
-
$event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "
|
|
2591
|
+
$event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "createdBy" | "createdByUserType" | "createdAt" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
|
|
2592
2592
|
};
|
|
2593
2593
|
}[];
|
|
2594
2594
|
icon: "File" | "Archived" | "Assigned" | "Briefcase" | "Certified" | "Close" | "Collapse" | "Draft" | "DuplicateYellow" | "Expand" | "ExternalValidate" | "FilledCheck" | "InReview" | "Offline" | "Registered" | "RequiresUpdates" | "Sent" | "Validated" | "WaitingApproval" | "ChartActivity" | "Activity" | "Archive" | "ArchiveTray" | "ArrowLeft" | "ArrowRight" | "Buildings" | "Circle" | "CaretDown" | "CaretLeft" | "CaretRight" | "ChartBar" | "ChartLine" | "ChatCircle" | "CheckSquare" | "Compass" | "Check" | "Copy" | "Database" | "DotsThreeVertical" | "ArrowCounterClockwise" | "MagnifyingGlassMinus" | "MagnifyingGlassPlus" | "Export" | "Eye" | "EyeSlash" | "Envelope" | "FileSearch" | "FileMinus" | "FilePlus" | "FileText" | "FileX" | "Handshake" | "Gear" | "GitBranch" | "IdentificationCard" | "List" | "ListBullets" | "Lock" | "MagnifyingGlass" | "MapPin" | "Medal" | "NotePencil" | "Paperclip" | "PaperPlaneTilt" | "Pen" | "PenNib" | "Pencil" | "PencilSimpleLine" | "Phone" | "Plus" | "Printer" | "SignOut" | "Stamp" | "Star" | "Target" | "TextT" | "Trash" | "UploadSimple" | "User" | "UserPlus" | "Users" | "WarningCircle" | "X" | "ChatText" | "CircleWavyCheck" | "CircleWavyQuestion" | "ArchiveBox" | "ArrowCircleDown" | "FileArrowUp" | "FileDotted" | "Files" | "PencilLine" | "PencilCircle" | "UserCircle" | "Clock" | "QrCode" | "Webcam" | "Sun" | "DeviceTabletCamera" | "Globe" | "Fingerprint" | "PushPin" | "Timer";
|
|
@@ -24,7 +24,7 @@ export declare function getActionUpdateMetadata(actions: Action[]): Pick<{
|
|
|
24
24
|
createdAtLocation?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
25
25
|
annotation?: Record<string, import("..").FieldUpdateValue> | null | undefined;
|
|
26
26
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
27
|
-
}, "
|
|
27
|
+
}, "createdBy" | "createdByUserType" | "createdAt" | "createdByRole" | "createdAtLocation">;
|
|
28
28
|
/**
|
|
29
29
|
* @returns the legal statuses of the event. Event is considered legal if it has been accepted.
|
|
30
30
|
* @see EventIndex for the description of the returned object.
|
|
@@ -437,10 +437,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
|
|
|
437
437
|
originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
|
|
438
438
|
} | {
|
|
439
439
|
id: string & import("zod").$brand<"UUID">;
|
|
440
|
+
createdBy: string;
|
|
440
441
|
transactionId: string;
|
|
441
442
|
createdByUserType: "user" | "system";
|
|
442
443
|
createdAt: string;
|
|
443
|
-
createdBy: string;
|
|
444
444
|
type: "CUSTOM" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
|
|
445
445
|
status: "Rejected";
|
|
446
446
|
createdByRole?: string | undefined;
|
|
@@ -189,7 +189,9 @@ var userRole = z6.preprocess(
|
|
|
189
189
|
).describe("User role, e.g. admin, field agent");
|
|
190
190
|
var scopeOptionsPlaceEvent = z6.object({
|
|
191
191
|
event: scopeByEvent,
|
|
192
|
-
placeOfEvent: JurisdictionFilter.optional()
|
|
192
|
+
placeOfEvent: JurisdictionFilter.optional(),
|
|
193
|
+
createdBy: UserFilter.optional(),
|
|
194
|
+
createdIn: JurisdictionFilter.optional()
|
|
193
195
|
}).describe("Options applicable to all record scopes.");
|
|
194
196
|
var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
|
|
195
197
|
declaredIn: JurisdictionFilter.optional(),
|
|
@@ -228,7 +230,9 @@ var AllScopeOptions = z6.object({
|
|
|
228
230
|
var ScopeOptionKey = AllScopeOptions.keyof();
|
|
229
231
|
var ResolvedScopeOptionsPlaceEvent = z6.object({
|
|
230
232
|
event: scopeByEvent,
|
|
231
|
-
placeOfEvent: UUID.nullish()
|
|
233
|
+
placeOfEvent: UUID.nullish(),
|
|
234
|
+
createdBy: z6.string().optional(),
|
|
235
|
+
createdIn: UUID.nullish()
|
|
232
236
|
}).describe(
|
|
233
237
|
"Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
|
|
234
238
|
);
|
package/dist/events/index.js
CHANGED
|
@@ -518,7 +518,9 @@ var userRole = z2.preprocess(
|
|
|
518
518
|
).describe("User role, e.g. admin, field agent");
|
|
519
519
|
var scopeOptionsPlaceEvent = z2.object({
|
|
520
520
|
event: scopeByEvent,
|
|
521
|
-
placeOfEvent: JurisdictionFilter.optional()
|
|
521
|
+
placeOfEvent: JurisdictionFilter.optional(),
|
|
522
|
+
createdBy: UserFilter.optional(),
|
|
523
|
+
createdIn: JurisdictionFilter.optional()
|
|
522
524
|
}).describe("Options applicable to all record scopes.");
|
|
523
525
|
var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
|
|
524
526
|
declaredIn: JurisdictionFilter.optional(),
|
|
@@ -557,7 +559,9 @@ var AllScopeOptions = z2.object({
|
|
|
557
559
|
var ScopeOptionKey = AllScopeOptions.keyof();
|
|
558
560
|
var ResolvedScopeOptionsPlaceEvent = z2.object({
|
|
559
561
|
event: scopeByEvent,
|
|
560
|
-
placeOfEvent: UUID.nullish()
|
|
562
|
+
placeOfEvent: UUID.nullish(),
|
|
563
|
+
createdBy: z2.string().optional(),
|
|
564
|
+
createdIn: UUID.nullish()
|
|
561
565
|
}).describe(
|
|
562
566
|
"Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
|
|
563
567
|
);
|
|
@@ -10309,6 +10313,23 @@ function canAccessEventWithScope(event2, scope, user2, customActionType) {
|
|
|
10309
10313
|
)) {
|
|
10310
10314
|
return false;
|
|
10311
10315
|
}
|
|
10316
|
+
if (opts?.createdBy === UserFilter.enum.user && event2.createdBy !== user2.id) {
|
|
10317
|
+
return false;
|
|
10318
|
+
}
|
|
10319
|
+
if (opts?.createdIn === JurisdictionFilter.enum.location && !matchesJurisdictionFilter(
|
|
10320
|
+
event2.createdAtLocation,
|
|
10321
|
+
JurisdictionFilter.enum.location,
|
|
10322
|
+
user2
|
|
10323
|
+
)) {
|
|
10324
|
+
return false;
|
|
10325
|
+
}
|
|
10326
|
+
if (opts?.createdIn === JurisdictionFilter.enum.administrativeArea && !matchesJurisdictionFilter(
|
|
10327
|
+
event2.createdAtLocation,
|
|
10328
|
+
JurisdictionFilter.enum.administrativeArea,
|
|
10329
|
+
user2
|
|
10330
|
+
)) {
|
|
10331
|
+
return false;
|
|
10332
|
+
}
|
|
10312
10333
|
if (scopeUsesDeclaredOptions(scope)) {
|
|
10313
10334
|
const { options } = scope;
|
|
10314
10335
|
if (options?.declaredBy === UserFilter.enum.user) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const UPSTREAM_URL = "https://github.com/opencrvs/opencrvs-countryconfig.git";
|
|
2
|
-
export declare const UPSTREAM_BRANCH = "release
|
|
2
|
+
export declare const UPSTREAM_BRANCH = "release/2.0.0";
|
|
3
3
|
/**
|
|
4
4
|
* Runs a git command in the country config working directory.
|
|
5
5
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkout-upstream-files.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/checkout-upstream-files.ts"],"names":[],"mappings":"AA8CA,eAAO,MAAM,YAAY,2DACiC,CAAA;AAE1D,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"checkout-upstream-files.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/checkout-upstream-files.ts"],"names":[],"mappings":"AA8CA,eAAO,MAAM,YAAY,2DACiC,CAAA;AAE1D,eAAO,MAAM,eAAe,kBAAkB,CAAA;AAc9C;;;;;;GAMG;AACH,wBAAgB,MAAM,CACpB,IAAI,EAAE,MAAM,EAAE,EACd,EAAE,MAAc,EAAE,GAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAA;CAAO,GAC5C,MAAM,CAMR;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAO9C;AAED,wBAAgB,eAAe,IAAI,IAAI,CAMtC;AAID,iBAAe,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAuDnC;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
|
|
@@ -59,7 +59,7 @@ exports.main = main;
|
|
|
59
59
|
*/
|
|
60
60
|
const child_process_1 = require("child_process");
|
|
61
61
|
exports.UPSTREAM_URL = 'https://github.com/opencrvs/opencrvs-countryconfig.git';
|
|
62
|
-
exports.UPSTREAM_BRANCH = 'release
|
|
62
|
+
exports.UPSTREAM_BRANCH = 'release/2.0.0';
|
|
63
63
|
// Remote name used only for the duration of this codemod. Prefixed to avoid
|
|
64
64
|
// clashing with remotes the user may have (origin, upstream, etc.).
|
|
65
65
|
const TEMP_REMOTE = 'opencrvs-upgrade-v19-v20-codemod';
|
|
@@ -2202,7 +2202,9 @@ var userRole = z3.preprocess(
|
|
|
2202
2202
|
).describe("User role, e.g. admin, field agent");
|
|
2203
2203
|
var scopeOptionsPlaceEvent = z3.object({
|
|
2204
2204
|
event: scopeByEvent,
|
|
2205
|
-
placeOfEvent: JurisdictionFilter.optional()
|
|
2205
|
+
placeOfEvent: JurisdictionFilter.optional(),
|
|
2206
|
+
createdBy: UserFilter.optional(),
|
|
2207
|
+
createdIn: JurisdictionFilter.optional()
|
|
2206
2208
|
}).describe("Options applicable to all record scopes.");
|
|
2207
2209
|
var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
|
|
2208
2210
|
declaredIn: JurisdictionFilter.optional(),
|
|
@@ -2241,7 +2243,9 @@ var AllScopeOptions = z3.object({
|
|
|
2241
2243
|
var ScopeOptionKey = AllScopeOptions.keyof();
|
|
2242
2244
|
var ResolvedScopeOptionsPlaceEvent = z3.object({
|
|
2243
2245
|
event: scopeByEvent,
|
|
2244
|
-
placeOfEvent: UUID.nullish()
|
|
2246
|
+
placeOfEvent: UUID.nullish(),
|
|
2247
|
+
createdBy: z3.string().optional(),
|
|
2248
|
+
createdIn: UUID.nullish()
|
|
2245
2249
|
}).describe(
|
|
2246
2250
|
"Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
|
|
2247
2251
|
);
|
|
@@ -4312,7 +4316,7 @@ Saved ${handlerRelPath}.`);
|
|
|
4312
4316
|
// src/migrations/v2.0/checkout-upstream-files.ts
|
|
4313
4317
|
var import_child_process = require("child_process");
|
|
4314
4318
|
var UPSTREAM_URL = "https://github.com/opencrvs/opencrvs-countryconfig.git";
|
|
4315
|
-
var UPSTREAM_BRANCH = "release
|
|
4319
|
+
var UPSTREAM_BRANCH = "release/2.0.0";
|
|
4316
4320
|
var TEMP_REMOTE = "opencrvs-upgrade-v19-v20-codemod";
|
|
4317
4321
|
var FILES_TO_CHECKOUT = [
|
|
4318
4322
|
"src/analytics/analytics.ts",
|
|
@@ -4850,7 +4854,7 @@ var import_os = require("os");
|
|
|
4850
4854
|
var import_path24 = require("path");
|
|
4851
4855
|
var TEMP_REMOTE2 = "opencrvs-upgrade-v19-v20-codemod-merge-infra";
|
|
4852
4856
|
var INFRASTRUCTURE_DIR = "infrastructure";
|
|
4853
|
-
var BASE_BRANCH = "release
|
|
4857
|
+
var BASE_BRANCH = "release/1.9.15";
|
|
4854
4858
|
function gitShowBytes(ref, path24) {
|
|
4855
4859
|
try {
|
|
4856
4860
|
const buf = (0, import_child_process2.execFileSync)("git", ["show", `${ref}:${path24}`], {
|
|
@@ -56,7 +56,7 @@ exports.main = main;
|
|
|
56
56
|
* so `git merge-base HEAD upstream/develop` typically returns nothing.
|
|
57
57
|
* - With no merge-base, a 3-way merge degenerates to a 2-way diff against
|
|
58
58
|
* an empty file — every line that differs becomes a conflict.
|
|
59
|
-
* - `release
|
|
59
|
+
* - `release/1.9.15` is the latest 1.9.x release on upstream and is a
|
|
60
60
|
* near-perfect representation of "what `infrastructure/` looked like
|
|
61
61
|
* before v2.0", regardless of whether the fork's git history reaches it.
|
|
62
62
|
* - For files the country config never modified relative to that baseline,
|
|
@@ -81,7 +81,7 @@ exports.main = main;
|
|
|
81
81
|
* sides changed a binary file, the result will be invalid and a warning
|
|
82
82
|
* is printed.
|
|
83
83
|
* - Forks that are on a much older 1.9.x and never merged later 1.9 patches
|
|
84
|
-
* may see a few extra conflicts on files where 1.9.x → release
|
|
84
|
+
* may see a few extra conflicts on files where 1.9.x → release/1.9.15
|
|
85
85
|
* patches and v1.9 → v2.0 changes textually overlap.
|
|
86
86
|
*/
|
|
87
87
|
const child_process_1 = require("child_process");
|
|
@@ -97,7 +97,7 @@ const INFRASTRUCTURE_DIR = 'infrastructure';
|
|
|
97
97
|
// Synthetic merge-base: the tip of upstream's latest 1.9.x release line.
|
|
98
98
|
// We use this branch's content as the "common ancestor" for every file,
|
|
99
99
|
// since most country forks don't share git history with upstream.
|
|
100
|
-
const BASE_BRANCH = 'release
|
|
100
|
+
const BASE_BRANCH = 'release/1.9.15';
|
|
101
101
|
/**
|
|
102
102
|
* Reads `git show <ref>:<path>` as a Uint8Array (binary-safe).
|
|
103
103
|
* Returns `null` if the path doesn't exist at that ref.
|
|
@@ -116,7 +116,9 @@ var userRole = z2.preprocess(
|
|
|
116
116
|
).describe("User role, e.g. admin, field agent");
|
|
117
117
|
var scopeOptionsPlaceEvent = z2.object({
|
|
118
118
|
event: scopeByEvent,
|
|
119
|
-
placeOfEvent: JurisdictionFilter.optional()
|
|
119
|
+
placeOfEvent: JurisdictionFilter.optional(),
|
|
120
|
+
createdBy: UserFilter.optional(),
|
|
121
|
+
createdIn: JurisdictionFilter.optional()
|
|
120
122
|
}).describe("Options applicable to all record scopes.");
|
|
121
123
|
var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
|
|
122
124
|
declaredIn: JurisdictionFilter.optional(),
|
|
@@ -155,7 +157,9 @@ var AllScopeOptions = z2.object({
|
|
|
155
157
|
var ScopeOptionKey = AllScopeOptions.keyof();
|
|
156
158
|
var ResolvedScopeOptionsPlaceEvent = z2.object({
|
|
157
159
|
event: scopeByEvent,
|
|
158
|
-
placeOfEvent: UUID.nullish()
|
|
160
|
+
placeOfEvent: UUID.nullish(),
|
|
161
|
+
createdBy: z2.string().optional(),
|
|
162
|
+
createdIn: UUID.nullish()
|
|
159
163
|
}).describe(
|
|
160
164
|
"Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
|
|
161
165
|
);
|
package/dist/scopes/index.d.ts
CHANGED
|
@@ -48,6 +48,14 @@ declare const AllScopeOptions: z.ZodObject<{
|
|
|
48
48
|
location: "location";
|
|
49
49
|
all: "all";
|
|
50
50
|
}>>;
|
|
51
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
user: "user";
|
|
53
|
+
}>>;
|
|
54
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
55
|
+
administrativeArea: "administrativeArea";
|
|
56
|
+
location: "location";
|
|
57
|
+
all: "all";
|
|
58
|
+
}>>;
|
|
51
59
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
52
60
|
administrativeArea: "administrativeArea";
|
|
53
61
|
location: "location";
|
|
@@ -70,6 +78,8 @@ export declare const ScopeOptionKey: z.ZodEnum<{
|
|
|
70
78
|
role: "role";
|
|
71
79
|
event: "event";
|
|
72
80
|
placeOfEvent: "placeOfEvent";
|
|
81
|
+
createdBy: "createdBy";
|
|
82
|
+
createdIn: "createdIn";
|
|
73
83
|
declaredIn: "declaredIn";
|
|
74
84
|
declaredBy: "declaredBy";
|
|
75
85
|
registeredIn: "registeredIn";
|
|
@@ -110,6 +120,14 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
110
120
|
location: "location";
|
|
111
121
|
all: "all";
|
|
112
122
|
}>>;
|
|
123
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
124
|
+
user: "user";
|
|
125
|
+
}>>;
|
|
126
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
127
|
+
administrativeArea: "administrativeArea";
|
|
128
|
+
location: "location";
|
|
129
|
+
all: "all";
|
|
130
|
+
}>>;
|
|
113
131
|
}, z.core.$strip>>;
|
|
114
132
|
}, z.core.$strip>, z.ZodObject<{
|
|
115
133
|
type: z.ZodEnum<{
|
|
@@ -126,6 +144,14 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
126
144
|
location: "location";
|
|
127
145
|
all: "all";
|
|
128
146
|
}>>;
|
|
147
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
148
|
+
user: "user";
|
|
149
|
+
}>>;
|
|
150
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
151
|
+
administrativeArea: "administrativeArea";
|
|
152
|
+
location: "location";
|
|
153
|
+
all: "all";
|
|
154
|
+
}>>;
|
|
129
155
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
130
156
|
administrativeArea: "administrativeArea";
|
|
131
157
|
location: "location";
|
|
@@ -150,6 +176,14 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
150
176
|
location: "location";
|
|
151
177
|
all: "all";
|
|
152
178
|
}>>;
|
|
179
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
180
|
+
user: "user";
|
|
181
|
+
}>>;
|
|
182
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
183
|
+
administrativeArea: "administrativeArea";
|
|
184
|
+
location: "location";
|
|
185
|
+
all: "all";
|
|
186
|
+
}>>;
|
|
153
187
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
154
188
|
administrativeArea: "administrativeArea";
|
|
155
189
|
location: "location";
|
|
@@ -176,6 +210,14 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
176
210
|
location: "location";
|
|
177
211
|
all: "all";
|
|
178
212
|
}>>;
|
|
213
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
214
|
+
user: "user";
|
|
215
|
+
}>>;
|
|
216
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
217
|
+
administrativeArea: "administrativeArea";
|
|
218
|
+
location: "location";
|
|
219
|
+
all: "all";
|
|
220
|
+
}>>;
|
|
179
221
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
180
222
|
administrativeArea: "administrativeArea";
|
|
181
223
|
location: "location";
|
|
@@ -203,6 +245,14 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
203
245
|
location: "location";
|
|
204
246
|
all: "all";
|
|
205
247
|
}>>;
|
|
248
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
249
|
+
user: "user";
|
|
250
|
+
}>>;
|
|
251
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
252
|
+
administrativeArea: "administrativeArea";
|
|
253
|
+
location: "location";
|
|
254
|
+
all: "all";
|
|
255
|
+
}>>;
|
|
206
256
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
207
257
|
administrativeArea: "administrativeArea";
|
|
208
258
|
location: "location";
|
|
@@ -293,6 +343,8 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
293
343
|
options: z.ZodOptional<z.ZodObject<{
|
|
294
344
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
295
345
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
346
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
347
|
+
createdIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
296
348
|
}, z.core.$strip>>;
|
|
297
349
|
}, z.core.$strip>, z.ZodObject<{
|
|
298
350
|
type: z.ZodEnum<{
|
|
@@ -305,6 +357,8 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
305
357
|
options: z.ZodOptional<z.ZodObject<{
|
|
306
358
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
307
359
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
360
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
361
|
+
createdIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
308
362
|
declaredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
309
363
|
declaredBy: z.ZodOptional<z.ZodString>;
|
|
310
364
|
}, z.core.$strip>>;
|
|
@@ -319,6 +373,8 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
319
373
|
options: z.ZodOptional<z.ZodObject<{
|
|
320
374
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
321
375
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
376
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
377
|
+
createdIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
322
378
|
declaredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
323
379
|
declaredBy: z.ZodOptional<z.ZodString>;
|
|
324
380
|
registeredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
@@ -329,6 +385,8 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
329
385
|
options: z.ZodOptional<z.ZodObject<{
|
|
330
386
|
event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
331
387
|
placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
388
|
+
createdBy: z.ZodOptional<z.ZodString>;
|
|
389
|
+
createdIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
332
390
|
declaredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
333
391
|
declaredBy: z.ZodOptional<z.ZodString>;
|
|
334
392
|
registeredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
|
|
@@ -369,6 +427,14 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
369
427
|
location: "location";
|
|
370
428
|
all: "all";
|
|
371
429
|
}>>;
|
|
430
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
431
|
+
user: "user";
|
|
432
|
+
}>>;
|
|
433
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
434
|
+
administrativeArea: "administrativeArea";
|
|
435
|
+
location: "location";
|
|
436
|
+
all: "all";
|
|
437
|
+
}>>;
|
|
372
438
|
}, z.core.$strip>>;
|
|
373
439
|
}, z.core.$strip>, z.ZodObject<{
|
|
374
440
|
type: z.ZodEnum<{
|
|
@@ -385,6 +451,14 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
385
451
|
location: "location";
|
|
386
452
|
all: "all";
|
|
387
453
|
}>>;
|
|
454
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
455
|
+
user: "user";
|
|
456
|
+
}>>;
|
|
457
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
458
|
+
administrativeArea: "administrativeArea";
|
|
459
|
+
location: "location";
|
|
460
|
+
all: "all";
|
|
461
|
+
}>>;
|
|
388
462
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
389
463
|
administrativeArea: "administrativeArea";
|
|
390
464
|
location: "location";
|
|
@@ -409,6 +483,14 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
409
483
|
location: "location";
|
|
410
484
|
all: "all";
|
|
411
485
|
}>>;
|
|
486
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
487
|
+
user: "user";
|
|
488
|
+
}>>;
|
|
489
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
490
|
+
administrativeArea: "administrativeArea";
|
|
491
|
+
location: "location";
|
|
492
|
+
all: "all";
|
|
493
|
+
}>>;
|
|
412
494
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
413
495
|
administrativeArea: "administrativeArea";
|
|
414
496
|
location: "location";
|
|
@@ -435,6 +517,14 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
435
517
|
location: "location";
|
|
436
518
|
all: "all";
|
|
437
519
|
}>>;
|
|
520
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
521
|
+
user: "user";
|
|
522
|
+
}>>;
|
|
523
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
524
|
+
administrativeArea: "administrativeArea";
|
|
525
|
+
location: "location";
|
|
526
|
+
all: "all";
|
|
527
|
+
}>>;
|
|
438
528
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
439
529
|
administrativeArea: "administrativeArea";
|
|
440
530
|
location: "location";
|
|
@@ -462,6 +552,14 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
462
552
|
location: "location";
|
|
463
553
|
all: "all";
|
|
464
554
|
}>>;
|
|
555
|
+
createdBy: z.ZodOptional<z.ZodEnum<{
|
|
556
|
+
user: "user";
|
|
557
|
+
}>>;
|
|
558
|
+
createdIn: z.ZodOptional<z.ZodEnum<{
|
|
559
|
+
administrativeArea: "administrativeArea";
|
|
560
|
+
location: "location";
|
|
561
|
+
all: "all";
|
|
562
|
+
}>>;
|
|
465
563
|
declaredIn: z.ZodOptional<z.ZodEnum<{
|
|
466
564
|
administrativeArea: "administrativeArea";
|
|
467
565
|
location: "location";
|
|
@@ -590,12 +688,16 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
590
688
|
options?: {
|
|
591
689
|
event?: string[] | undefined;
|
|
592
690
|
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
691
|
+
createdBy?: "user" | undefined;
|
|
692
|
+
createdIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
593
693
|
} | undefined;
|
|
594
694
|
} | {
|
|
595
695
|
type: "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register";
|
|
596
696
|
options?: {
|
|
597
697
|
event?: string[] | undefined;
|
|
598
698
|
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
699
|
+
createdBy?: "user" | undefined;
|
|
700
|
+
createdIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
599
701
|
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
600
702
|
declaredBy?: "user" | undefined;
|
|
601
703
|
} | undefined;
|
|
@@ -604,6 +706,8 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
604
706
|
options?: {
|
|
605
707
|
event?: string[] | undefined;
|
|
606
708
|
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
709
|
+
createdBy?: "user" | undefined;
|
|
710
|
+
createdIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
607
711
|
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
608
712
|
declaredBy?: "user" | undefined;
|
|
609
713
|
registeredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
@@ -614,6 +718,8 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
614
718
|
options?: {
|
|
615
719
|
event?: string[] | undefined;
|
|
616
720
|
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
721
|
+
createdBy?: "user" | undefined;
|
|
722
|
+
createdIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
617
723
|
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
618
724
|
declaredBy?: "user" | undefined;
|
|
619
725
|
registeredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
@@ -625,6 +731,8 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
|
|
|
625
731
|
options?: {
|
|
626
732
|
event?: string[] | undefined;
|
|
627
733
|
placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
|
|
734
|
+
createdBy?: "user" | undefined;
|
|
735
|
+
createdIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
628
736
|
declaredIn?: "administrativeArea" | "location" | "all" | undefined;
|
|
629
737
|
declaredBy?: "user" | undefined;
|
|
630
738
|
registeredIn?: "administrativeArea" | "location" | "all" | undefined;
|
package/dist/scopes/index.js
CHANGED
|
@@ -147,7 +147,9 @@ var userRole = z3.preprocess(
|
|
|
147
147
|
).describe("User role, e.g. admin, field agent");
|
|
148
148
|
var scopeOptionsPlaceEvent = z3.object({
|
|
149
149
|
event: scopeByEvent,
|
|
150
|
-
placeOfEvent: JurisdictionFilter.optional()
|
|
150
|
+
placeOfEvent: JurisdictionFilter.optional(),
|
|
151
|
+
createdBy: UserFilter.optional(),
|
|
152
|
+
createdIn: JurisdictionFilter.optional()
|
|
151
153
|
}).describe("Options applicable to all record scopes.");
|
|
152
154
|
var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
|
|
153
155
|
declaredIn: JurisdictionFilter.optional(),
|
|
@@ -186,7 +188,9 @@ var AllScopeOptions = z3.object({
|
|
|
186
188
|
var ScopeOptionKey = AllScopeOptions.keyof();
|
|
187
189
|
var ResolvedScopeOptionsPlaceEvent = z3.object({
|
|
188
190
|
event: scopeByEvent,
|
|
189
|
-
placeOfEvent: UUID.nullish()
|
|
191
|
+
placeOfEvent: UUID.nullish(),
|
|
192
|
+
createdBy: z3.string().optional(),
|
|
193
|
+
createdIn: UUID.nullish()
|
|
190
194
|
}).describe(
|
|
191
195
|
"Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
|
|
192
196
|
);
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|