@opencrvs/toolkit 2.0.1-rc.fdc95ee → 2.0.1-rc.fe1e64e

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.
@@ -663,8 +663,7 @@ 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(),
667
- createdBy: UserFilter.optional()
666
+ placeOfEvent: JurisdictionFilter.optional()
668
667
  }).describe("Options applicable to all record scopes.");
669
668
  var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
670
669
  declaredIn: JurisdictionFilter.optional(),
@@ -703,8 +702,7 @@ var AllScopeOptions = z11.object({
703
702
  var ScopeOptionKey = AllScopeOptions.keyof();
704
703
  var ResolvedScopeOptionsPlaceEvent = z11.object({
705
704
  event: scopeByEvent,
706
- placeOfEvent: UUID.nullish(),
707
- createdBy: z11.string().optional()
705
+ placeOfEvent: UUID.nullish()
708
706
  }).describe(
709
707
  "Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
710
708
  );
package/dist/cli.js CHANGED
@@ -2190,8 +2190,7 @@ 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(),
2194
- createdBy: UserFilter.optional()
2193
+ placeOfEvent: JurisdictionFilter.optional()
2195
2194
  }).describe("Options applicable to all record scopes.");
2196
2195
  var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
2197
2196
  declaredIn: JurisdictionFilter.optional(),
@@ -2230,8 +2229,7 @@ var AllScopeOptions = z3.object({
2230
2229
  var ScopeOptionKey = AllScopeOptions.keyof();
2231
2230
  var ResolvedScopeOptionsPlaceEvent = z3.object({
2232
2231
  event: scopeByEvent,
2233
- placeOfEvent: UUID.nullish(),
2234
- createdBy: z3.string().optional()
2232
+ placeOfEvent: UUID.nullish()
2235
2233
  }).describe(
2236
2234
  "Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
2237
2235
  );
@@ -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;
417
416
  transactionId: string;
418
417
  createdByUserType: "system" | "user";
419
418
  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;
729
728
  transactionId: string;
730
729
  createdByUserType: "system" | "user";
731
730
  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;
1040
1039
  transactionId: string;
1041
1040
  createdByUserType: "system" | "user";
1042
1041
  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;
1095
1094
  transactionId: string;
1096
1095
  createdByUserType: "system" | "user";
1097
1096
  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;
1130
1129
  transactionId: string;
1131
1130
  createdByUserType: "system" | "user";
1132
1131
  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;
1788
1787
  transactionId: string;
1789
1788
  createdByUserType: "system" | "user";
1790
1789
  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;
2131
2130
  transactionId: string;
2132
2131
  createdByUserType: "system" | "user";
2133
2132
  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;
4217
4216
  transactionId: string;
4218
4217
  createdByUserType: "system" | "user";
4219
4218
  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;
4828
4827
  transactionId: string;
4829
4828
  createdByUserType: "system" | "user";
4830
4829
  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;
5149
5148
  transactionId: string;
5150
5149
  createdByUserType: "system" | "user";
5151
5150
  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;
6403
6402
  transactionId: string;
6404
6403
  createdByUserType: "system" | "user";
6405
6404
  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;
6723
6722
  transactionId: string;
6724
6723
  createdByUserType: "system" | "user";
6725
6724
  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;
7086
7085
  transactionId: string;
7087
7086
  createdByUserType: "system" | "user";
7088
7087
  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;
@@ -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" | "createdBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
97
+ $option: "role" | "event" | "placeOfEvent" | "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" | "createdBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
102
+ $option: "role" | "event" | "placeOfEvent" | "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" | "createdBy" | "declaredIn" | "declaredBy" | "registeredIn" | "registeredBy" | "accessLevel" | "ids";
106
+ $option: "role" | "event" | "placeOfEvent" | "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;
665
664
  transactionId: z.ZodString;
666
665
  createdByUserType: z.ZodEnum<{
667
666
  user: "user";
668
667
  system: "system";
669
668
  }>;
670
669
  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;
1104
1103
  transactionId: z.ZodString;
1105
1104
  createdByUserType: z.ZodEnum<{
1106
1105
  user: "user";
1107
1106
  system: "system";
1108
1107
  }>;
1109
1108
  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,7 +139,6 @@ export declare const FieldConfigSchema: z.ZodObject<{
139
139
  role: "role";
140
140
  event: "event";
141
141
  placeOfEvent: "placeOfEvent";
142
- createdBy: "createdBy";
143
142
  declaredIn: "declaredIn";
144
143
  declaredBy: "declaredBy";
145
144
  registeredIn: "registeredIn";
@@ -317,7 +316,6 @@ export declare const EventFieldConfigSchema: z.ZodObject<{
317
316
  role: "role";
318
317
  event: "event";
319
318
  placeOfEvent: "placeOfEvent";
320
- createdBy: "createdBy";
321
319
  declaredIn: "declaredIn";
322
320
  declaredBy: "declaredBy";
323
321
  registeredIn: "registeredIn";
@@ -471,7 +469,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
471
469
  role: "role";
472
470
  event: "event";
473
471
  placeOfEvent: "placeOfEvent";
474
- createdBy: "createdBy";
475
472
  declaredIn: "declaredIn";
476
473
  declaredBy: "declaredBy";
477
474
  registeredIn: "registeredIn";
@@ -617,7 +614,6 @@ export declare const AdvancedSearchField: z.ZodDiscriminatedUnion<[z.ZodObject<{
617
614
  role: "role";
618
615
  event: "event";
619
616
  placeOfEvent: "placeOfEvent";
620
- createdBy: "createdBy";
621
617
  declaredIn: "declaredIn";
622
618
  declaredBy: "declaredBy";
623
619
  registeredIn: "registeredIn";
@@ -774,7 +770,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
774
770
  role: "role";
775
771
  event: "event";
776
772
  placeOfEvent: "placeOfEvent";
777
- createdBy: "createdBy";
778
773
  declaredIn: "declaredIn";
779
774
  declaredBy: "declaredBy";
780
775
  registeredIn: "registeredIn";
@@ -920,7 +915,6 @@ export declare const AdvancedSearchConfig: z.ZodObject<{
920
915
  role: "role";
921
916
  event: "event";
922
917
  placeOfEvent: "placeOfEvent";
923
- createdBy: "createdBy";
924
918
  declaredIn: "declaredIn";
925
919
  declaredBy: "declaredBy";
926
920
  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;
29
28
  transactionId: z.ZodString;
30
29
  createdByUserType: z.ZodEnum<{
31
30
  user: "user";
32
31
  system: "system";
33
32
  }>;
34
33
  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;
420
419
  transactionId: z.ZodString;
421
420
  createdByUserType: z.ZodEnum<{
422
421
  user: "user";
423
422
  system: "system";
424
423
  }>;
425
424
  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";
141
140
  createdByUserType: "createdByUserType";
142
141
  createdAt: "createdAt";
142
+ createdBy: "createdBy";
143
143
  createdAtLocation: "createdAtLocation";
144
144
  status: "status";
145
145
  assignedTo: "assignedTo";
@@ -1919,7 +1919,6 @@ declare const AdministrativeAreaField: z.ZodObject<{
1919
1919
  role: "role";
1920
1920
  event: "event";
1921
1921
  placeOfEvent: "placeOfEvent";
1922
- createdBy: "createdBy";
1923
1922
  declaredIn: "declaredIn";
1924
1923
  declaredBy: "declaredBy";
1925
1924
  registeredIn: "registeredIn";
@@ -2046,7 +2045,6 @@ declare const LocationInput: z.ZodObject<{
2046
2045
  role: "role";
2047
2046
  event: "event";
2048
2047
  placeOfEvent: "placeOfEvent";
2049
- createdBy: "createdBy";
2050
2048
  declaredIn: "declaredIn";
2051
2049
  declaredBy: "declaredBy";
2052
2050
  registeredIn: "registeredIn";
@@ -2244,7 +2242,6 @@ declare const Facility: z.ZodObject<{
2244
2242
  role: "role";
2245
2243
  event: "event";
2246
2244
  placeOfEvent: "placeOfEvent";
2247
- createdBy: "createdBy";
2248
2245
  declaredIn: "declaredIn";
2249
2246
  declaredBy: "declaredBy";
2250
2247
  registeredIn: "registeredIn";
@@ -2357,7 +2354,6 @@ declare const Office: z.ZodObject<{
2357
2354
  role: "role";
2358
2355
  event: "event";
2359
2356
  placeOfEvent: "placeOfEvent";
2360
- createdBy: "createdBy";
2361
2357
  declaredIn: "declaredIn";
2362
2358
  declaredBy: "declaredBy";
2363
2359
  registeredIn: "registeredIn";
@@ -2556,7 +2552,6 @@ declare const Address: z.ZodObject<{
2556
2552
  role: "role";
2557
2553
  event: "event";
2558
2554
  placeOfEvent: "placeOfEvent";
2559
- createdBy: "createdBy";
2560
2555
  declaredIn: "declaredIn";
2561
2556
  declaredBy: "declaredBy";
2562
2557
  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";
10
9
  createdByUserType: "createdByUserType";
11
10
  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";
33
32
  createdByUserType: "createdByUserType";
34
33
  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";
62
61
  createdByUserType: "createdByUserType";
63
62
  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" | "createdBy" | "createdByUserType" | "createdAt" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
87
+ $event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "createdByUserType" | "createdAt" | "createdBy" | "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" | "createdBy" | "createdByUserType" | "createdAt" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
9
+ $event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "createdByUserType" | "createdAt" | "createdBy" | "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";
663
662
  createdByUserType: "createdByUserType";
664
663
  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";
937
936
  createdByUserType: "createdByUserType";
938
937
  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" | "createdBy" | "createdByUserType" | "createdAt" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
2282
+ $event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "createdByUserType" | "createdAt" | "createdBy" | "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" | "createdBy" | "createdByUserType" | "createdAt" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
2591
+ $event: "id" | "title" | "type" | "updatedAt" | "placeOfEvent" | "createdByUserType" | "createdAt" | "createdBy" | "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
- }, "createdBy" | "createdByUserType" | "createdAt" | "createdByRole" | "createdAtLocation">;
27
+ }, "createdByUserType" | "createdAt" | "createdBy" | "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;
441
440
  transactionId: string;
442
441
  createdByUserType: "user" | "system";
443
442
  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,8 +189,7 @@ 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(),
193
- createdBy: UserFilter.optional()
192
+ placeOfEvent: JurisdictionFilter.optional()
194
193
  }).describe("Options applicable to all record scopes.");
195
194
  var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
196
195
  declaredIn: JurisdictionFilter.optional(),
@@ -229,8 +228,7 @@ var AllScopeOptions = z6.object({
229
228
  var ScopeOptionKey = AllScopeOptions.keyof();
230
229
  var ResolvedScopeOptionsPlaceEvent = z6.object({
231
230
  event: scopeByEvent,
232
- placeOfEvent: UUID.nullish(),
233
- createdBy: z6.string().optional()
231
+ placeOfEvent: UUID.nullish()
234
232
  }).describe(
235
233
  "Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
236
234
  );
@@ -518,8 +518,7 @@ 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(),
522
- createdBy: UserFilter.optional()
521
+ placeOfEvent: JurisdictionFilter.optional()
523
522
  }).describe("Options applicable to all record scopes.");
524
523
  var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
525
524
  declaredIn: JurisdictionFilter.optional(),
@@ -558,8 +557,7 @@ var AllScopeOptions = z2.object({
558
557
  var ScopeOptionKey = AllScopeOptions.keyof();
559
558
  var ResolvedScopeOptionsPlaceEvent = z2.object({
560
559
  event: scopeByEvent,
561
- placeOfEvent: UUID.nullish(),
562
- createdBy: z2.string().optional()
560
+ placeOfEvent: UUID.nullish()
563
561
  }).describe(
564
562
  "Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
565
563
  );
@@ -10311,9 +10309,6 @@ function canAccessEventWithScope(event2, scope, user2, customActionType) {
10311
10309
  )) {
10312
10310
  return false;
10313
10311
  }
10314
- if (opts?.createdBy === UserFilter.enum.user && event2.createdBy !== user2.id) {
10315
- return false;
10316
- }
10317
10312
  if (scopeUsesDeclaredOptions(scope)) {
10318
10313
  const { options } = scope;
10319
10314
  if (options?.declaredBy === UserFilter.enum.user) {
@@ -2202,8 +2202,7 @@ 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(),
2206
- createdBy: UserFilter.optional()
2205
+ placeOfEvent: JurisdictionFilter.optional()
2207
2206
  }).describe("Options applicable to all record scopes.");
2208
2207
  var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
2209
2208
  declaredIn: JurisdictionFilter.optional(),
@@ -2242,8 +2241,7 @@ var AllScopeOptions = z3.object({
2242
2241
  var ScopeOptionKey = AllScopeOptions.keyof();
2243
2242
  var ResolvedScopeOptionsPlaceEvent = z3.object({
2244
2243
  event: scopeByEvent,
2245
- placeOfEvent: UUID.nullish(),
2246
- createdBy: z3.string().optional()
2244
+ placeOfEvent: UUID.nullish()
2247
2245
  }).describe(
2248
2246
  "Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
2249
2247
  );
@@ -116,8 +116,7 @@ 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(),
120
- createdBy: UserFilter.optional()
119
+ placeOfEvent: JurisdictionFilter.optional()
121
120
  }).describe("Options applicable to all record scopes.");
122
121
  var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
123
122
  declaredIn: JurisdictionFilter.optional(),
@@ -156,8 +155,7 @@ var AllScopeOptions = z2.object({
156
155
  var ScopeOptionKey = AllScopeOptions.keyof();
157
156
  var ResolvedScopeOptionsPlaceEvent = z2.object({
158
157
  event: scopeByEvent,
159
- placeOfEvent: UUID.nullish(),
160
- createdBy: z2.string().optional()
158
+ placeOfEvent: UUID.nullish()
161
159
  }).describe(
162
160
  "Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
163
161
  );
@@ -48,9 +48,6 @@ 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
51
  declaredIn: z.ZodOptional<z.ZodEnum<{
55
52
  administrativeArea: "administrativeArea";
56
53
  location: "location";
@@ -73,7 +70,6 @@ export declare const ScopeOptionKey: z.ZodEnum<{
73
70
  role: "role";
74
71
  event: "event";
75
72
  placeOfEvent: "placeOfEvent";
76
- createdBy: "createdBy";
77
73
  declaredIn: "declaredIn";
78
74
  declaredBy: "declaredBy";
79
75
  registeredIn: "registeredIn";
@@ -114,9 +110,6 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
114
110
  location: "location";
115
111
  all: "all";
116
112
  }>>;
117
- createdBy: z.ZodOptional<z.ZodEnum<{
118
- user: "user";
119
- }>>;
120
113
  }, z.core.$strip>>;
121
114
  }, z.core.$strip>, z.ZodObject<{
122
115
  type: z.ZodEnum<{
@@ -133,9 +126,6 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
133
126
  location: "location";
134
127
  all: "all";
135
128
  }>>;
136
- createdBy: z.ZodOptional<z.ZodEnum<{
137
- user: "user";
138
- }>>;
139
129
  declaredIn: z.ZodOptional<z.ZodEnum<{
140
130
  administrativeArea: "administrativeArea";
141
131
  location: "location";
@@ -160,9 +150,6 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
160
150
  location: "location";
161
151
  all: "all";
162
152
  }>>;
163
- createdBy: z.ZodOptional<z.ZodEnum<{
164
- user: "user";
165
- }>>;
166
153
  declaredIn: z.ZodOptional<z.ZodEnum<{
167
154
  administrativeArea: "administrativeArea";
168
155
  location: "location";
@@ -189,9 +176,6 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
189
176
  location: "location";
190
177
  all: "all";
191
178
  }>>;
192
- createdBy: z.ZodOptional<z.ZodEnum<{
193
- user: "user";
194
- }>>;
195
179
  declaredIn: z.ZodOptional<z.ZodEnum<{
196
180
  administrativeArea: "administrativeArea";
197
181
  location: "location";
@@ -219,9 +203,6 @@ export declare const RecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject<{
219
203
  location: "location";
220
204
  all: "all";
221
205
  }>>;
222
- createdBy: z.ZodOptional<z.ZodEnum<{
223
- user: "user";
224
- }>>;
225
206
  declaredIn: z.ZodOptional<z.ZodEnum<{
226
207
  administrativeArea: "administrativeArea";
227
208
  location: "location";
@@ -312,7 +293,6 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
312
293
  options: z.ZodOptional<z.ZodObject<{
313
294
  event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
314
295
  placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
315
- createdBy: z.ZodOptional<z.ZodString>;
316
296
  }, z.core.$strip>>;
317
297
  }, z.core.$strip>, z.ZodObject<{
318
298
  type: z.ZodEnum<{
@@ -325,7 +305,6 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
325
305
  options: z.ZodOptional<z.ZodObject<{
326
306
  event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
327
307
  placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
328
- createdBy: z.ZodOptional<z.ZodString>;
329
308
  declaredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
330
309
  declaredBy: z.ZodOptional<z.ZodString>;
331
310
  }, z.core.$strip>>;
@@ -340,7 +319,6 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
340
319
  options: z.ZodOptional<z.ZodObject<{
341
320
  event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
342
321
  placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
343
- createdBy: z.ZodOptional<z.ZodString>;
344
322
  declaredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
345
323
  declaredBy: z.ZodOptional<z.ZodString>;
346
324
  registeredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
@@ -351,7 +329,6 @@ export declare const ResolvedRecordScopeV2: z.ZodDiscriminatedUnion<[z.ZodObject
351
329
  options: z.ZodOptional<z.ZodObject<{
352
330
  event: z.ZodPipe<z.ZodTransform<({} | null)[] | undefined, unknown>, z.ZodOptional<z.ZodArray<z.ZodString>>>;
353
331
  placeOfEvent: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
354
- createdBy: z.ZodOptional<z.ZodString>;
355
332
  declaredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
356
333
  declaredBy: z.ZodOptional<z.ZodString>;
357
334
  registeredIn: z.ZodOptional<z.ZodNullable<z.core.$ZodBranded<z.ZodUUID, "UUID", "out">>>;
@@ -392,9 +369,6 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
392
369
  location: "location";
393
370
  all: "all";
394
371
  }>>;
395
- createdBy: z.ZodOptional<z.ZodEnum<{
396
- user: "user";
397
- }>>;
398
372
  }, z.core.$strip>>;
399
373
  }, z.core.$strip>, z.ZodObject<{
400
374
  type: z.ZodEnum<{
@@ -411,9 +385,6 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
411
385
  location: "location";
412
386
  all: "all";
413
387
  }>>;
414
- createdBy: z.ZodOptional<z.ZodEnum<{
415
- user: "user";
416
- }>>;
417
388
  declaredIn: z.ZodOptional<z.ZodEnum<{
418
389
  administrativeArea: "administrativeArea";
419
390
  location: "location";
@@ -438,9 +409,6 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
438
409
  location: "location";
439
410
  all: "all";
440
411
  }>>;
441
- createdBy: z.ZodOptional<z.ZodEnum<{
442
- user: "user";
443
- }>>;
444
412
  declaredIn: z.ZodOptional<z.ZodEnum<{
445
413
  administrativeArea: "administrativeArea";
446
414
  location: "location";
@@ -467,9 +435,6 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
467
435
  location: "location";
468
436
  all: "all";
469
437
  }>>;
470
- createdBy: z.ZodOptional<z.ZodEnum<{
471
- user: "user";
472
- }>>;
473
438
  declaredIn: z.ZodOptional<z.ZodEnum<{
474
439
  administrativeArea: "administrativeArea";
475
440
  location: "location";
@@ -497,9 +462,6 @@ export declare const Scope: z.ZodDiscriminatedUnion<[z.ZodObject<{
497
462
  location: "location";
498
463
  all: "all";
499
464
  }>>;
500
- createdBy: z.ZodOptional<z.ZodEnum<{
501
- user: "user";
502
- }>>;
503
465
  declaredIn: z.ZodOptional<z.ZodEnum<{
504
466
  administrativeArea: "administrativeArea";
505
467
  location: "location";
@@ -628,14 +590,12 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
628
590
  options?: {
629
591
  event?: string[] | undefined;
630
592
  placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
631
- createdBy?: "user" | undefined;
632
593
  } | undefined;
633
594
  } | {
634
595
  type: "record.edit" | "record.reject" | "record.archive" | "record.review-duplicates" | "record.register";
635
596
  options?: {
636
597
  event?: string[] | undefined;
637
598
  placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
638
- createdBy?: "user" | undefined;
639
599
  declaredIn?: "administrativeArea" | "location" | "all" | undefined;
640
600
  declaredBy?: "user" | undefined;
641
601
  } | undefined;
@@ -644,7 +604,6 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
644
604
  options?: {
645
605
  event?: string[] | undefined;
646
606
  placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
647
- createdBy?: "user" | undefined;
648
607
  declaredIn?: "administrativeArea" | "location" | "all" | undefined;
649
608
  declaredBy?: "user" | undefined;
650
609
  registeredIn?: "administrativeArea" | "location" | "all" | undefined;
@@ -655,7 +614,6 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
655
614
  options?: {
656
615
  event?: string[] | undefined;
657
616
  placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
658
- createdBy?: "user" | undefined;
659
617
  declaredIn?: "administrativeArea" | "location" | "all" | undefined;
660
618
  declaredBy?: "user" | undefined;
661
619
  registeredIn?: "administrativeArea" | "location" | "all" | undefined;
@@ -667,7 +625,6 @@ export declare const decodeScope: (encodedScope: EncodedScope) => {
667
625
  options?: {
668
626
  event?: string[] | undefined;
669
627
  placeOfEvent?: "administrativeArea" | "location" | "all" | undefined;
670
- createdBy?: "user" | undefined;
671
628
  declaredIn?: "administrativeArea" | "location" | "all" | undefined;
672
629
  declaredBy?: "user" | undefined;
673
630
  registeredIn?: "administrativeArea" | "location" | "all" | undefined;
@@ -147,8 +147,7 @@ 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(),
151
- createdBy: UserFilter.optional()
150
+ placeOfEvent: JurisdictionFilter.optional()
152
151
  }).describe("Options applicable to all record scopes.");
153
152
  var scopeOptionsDeclared = scopeOptionsPlaceEvent.extend({
154
153
  declaredIn: JurisdictionFilter.optional(),
@@ -187,8 +186,7 @@ var AllScopeOptions = z3.object({
187
186
  var ScopeOptionKey = AllScopeOptions.keyof();
188
187
  var ResolvedScopeOptionsPlaceEvent = z3.object({
189
188
  event: scopeByEvent,
190
- placeOfEvent: UUID.nullish(),
191
- createdBy: z3.string().optional()
189
+ placeOfEvent: UUID.nullish()
192
190
  }).describe(
193
191
  "Resolved options applicable to all record scopes, with location ID instead of jurisdiction filter."
194
192
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.0.1-rc.fdc95ee",
3
+ "version": "2.0.1-rc.fe1e64e",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {