@opencrvs/toolkit 2.0.1-rc.848e85d → 2.0.1-rc.86bd821

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,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
  );
@@ -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<{
@@ -8261,6 +8284,10 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8261
8284
  input: {
8262
8285
  name: string;
8263
8286
  scopes: string[];
8287
+ credentials?: {
8288
+ clientId: string;
8289
+ clientSecret: string;
8290
+ } | undefined;
8264
8291
  };
8265
8292
  output: {
8266
8293
  clientId: string;
@@ -8291,7 +8318,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8291
8318
  scopes: string[];
8292
8319
  status: string;
8293
8320
  createdAt: string;
8294
- createdBy: string & import("zod").$brand<"UUID">;
8321
+ createdBy: (string & import("zod").$brand<"UUID">) | null;
8295
8322
  }[];
8296
8323
  meta: import("trpc-to-openapi").OpenApiMeta;
8297
8324
  }>;
@@ -8306,7 +8333,7 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8306
8333
  status: string;
8307
8334
  shaSecret: string | null;
8308
8335
  createdAt: string;
8309
- createdBy: string & import("zod").$brand<"UUID">;
8336
+ createdBy: (string & import("zod").$brand<"UUID">) | null;
8310
8337
  };
8311
8338
  meta: import("trpc-to-openapi").OpenApiMeta;
8312
8339
  }>;
@@ -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
  };
@@ -214,6 +214,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
214
214
  id: z.ZodString;
215
215
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
216
216
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
217
+ showClearButton: z.ZodOptional<z.ZodBoolean>;
217
218
  fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
218
219
  conditional: z.ZodOptional<z.ZodAny>;
219
220
  type: z.ZodDefault<z.ZodLiteral<"FORM">>;
@@ -221,6 +222,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
221
222
  id: z.ZodString;
222
223
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
223
224
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
225
+ showClearButton: z.ZodOptional<z.ZodBoolean>;
224
226
  fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
225
227
  conditional: z.ZodOptional<z.ZodAny>;
226
228
  type: z.ZodLiteral<"VERIFICATION">;
@@ -270,6 +272,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
270
272
  id: z.ZodString;
271
273
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
272
274
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
275
+ showClearButton: z.ZodOptional<z.ZodBoolean>;
273
276
  fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
274
277
  conditional: z.ZodOptional<z.ZodAny>;
275
278
  type: z.ZodDefault<z.ZodLiteral<"FORM">>;
@@ -277,6 +280,7 @@ export declare const ActionConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
277
280
  id: z.ZodString;
278
281
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
279
282
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
283
+ showClearButton: z.ZodOptional<z.ZodBoolean>;
280
284
  fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
281
285
  conditional: z.ZodOptional<z.ZodAny>;
282
286
  type: z.ZodLiteral<"VERIFICATION">;
@@ -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";
@@ -5,6 +5,7 @@ export declare const DeclarationFormConfig: z.ZodObject<{
5
5
  id: z.ZodString;
6
6
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
7
7
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
8
+ showClearButton: z.ZodOptional<z.ZodBoolean>;
8
9
  fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
9
10
  conditional: z.ZodOptional<z.ZodAny>;
10
11
  type: z.ZodDefault<z.ZodLiteral<"FORM">>;
@@ -18,6 +19,7 @@ export declare const ActionFormConfig: z.ZodObject<{
18
19
  id: z.ZodString;
19
20
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
20
21
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
22
+ showClearButton: z.ZodOptional<z.ZodBoolean>;
21
23
  fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
22
24
  conditional: z.ZodOptional<z.ZodAny>;
23
25
  type: z.ZodDefault<z.ZodLiteral<"FORM">>;
@@ -25,6 +27,7 @@ export declare const ActionFormConfig: z.ZodObject<{
25
27
  id: z.ZodString;
26
28
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
27
29
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
30
+ showClearButton: z.ZodOptional<z.ZodBoolean>;
28
31
  fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
29
32
  conditional: z.ZodOptional<z.ZodAny>;
30
33
  type: z.ZodLiteral<"VERIFICATION">;
@@ -50,6 +53,7 @@ export declare const FormConfig: z.ZodUnion<readonly [z.ZodObject<{
50
53
  id: z.ZodString;
51
54
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
52
55
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
56
+ showClearButton: z.ZodOptional<z.ZodBoolean>;
53
57
  fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
54
58
  conditional: z.ZodOptional<z.ZodAny>;
55
59
  type: z.ZodDefault<z.ZodLiteral<"FORM">>;
@@ -60,6 +64,7 @@ export declare const FormConfig: z.ZodUnion<readonly [z.ZodObject<{
60
64
  id: z.ZodString;
61
65
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
62
66
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
67
+ showClearButton: z.ZodOptional<z.ZodBoolean>;
63
68
  fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
64
69
  conditional: z.ZodOptional<z.ZodAny>;
65
70
  type: z.ZodDefault<z.ZodLiteral<"FORM">>;
@@ -67,6 +72,7 @@ export declare const FormConfig: z.ZodUnion<readonly [z.ZodObject<{
67
72
  id: z.ZodString;
68
73
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
69
74
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
75
+ showClearButton: z.ZodOptional<z.ZodBoolean>;
70
76
  fields: z.ZodArray<z.ZodType<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<import("./FieldConfig").FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
71
77
  conditional: z.ZodOptional<z.ZodAny>;
72
78
  type: z.ZodLiteral<"VERIFICATION">;
@@ -9,6 +9,7 @@ export declare const FormPageConfig: z.ZodObject<{
9
9
  id: z.ZodString;
10
10
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
11
11
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
12
+ showClearButton: z.ZodOptional<z.ZodBoolean>;
12
13
  fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
13
14
  conditional: z.ZodOptional<z.ZodAny>;
14
15
  type: z.ZodDefault<z.ZodLiteral<"FORM">>;
@@ -31,6 +32,7 @@ export declare const VerificationPageConfig: z.ZodObject<{
31
32
  id: z.ZodString;
32
33
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
33
34
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
35
+ showClearButton: z.ZodOptional<z.ZodBoolean>;
34
36
  fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
35
37
  conditional: z.ZodOptional<z.ZodAny>;
36
38
  type: z.ZodLiteral<"VERIFICATION">;
@@ -52,6 +54,7 @@ export declare const PageConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
52
54
  id: z.ZodString;
53
55
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
54
56
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
57
+ showClearButton: z.ZodOptional<z.ZodBoolean>;
55
58
  fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
56
59
  conditional: z.ZodOptional<z.ZodAny>;
57
60
  type: z.ZodDefault<z.ZodLiteral<"FORM">>;
@@ -59,6 +62,7 @@ export declare const PageConfig: z.ZodDiscriminatedUnion<[z.ZodObject<{
59
62
  id: z.ZodString;
60
63
  title: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
61
64
  requireCompletionToContinue: z.ZodDefault<z.ZodBoolean>;
65
+ showClearButton: z.ZodOptional<z.ZodBoolean>;
62
66
  fields: z.ZodArray<z.ZodType<FieldConfig, import("./FieldConfig").FieldConfigInput, z.core.$ZodTypeInternals<FieldConfig, import("./FieldConfig").FieldConfigInput>>>;
63
67
  conditional: z.ZodOptional<z.ZodAny>;
64
68
  type: z.ZodLiteral<"VERIFICATION">;
@@ -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" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
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" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
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" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
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" | "createdByUserType" | "createdAt" | "createdBy" | "createdAtLocation" | "status" | "assignedTo" | "trackingId" | "legalStatuses" | "dateOfEvent" | "updatedByUserRole" | "updatedAtLocation" | "updatedBy" | "flags" | "outbox";
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
- }, "createdByUserType" | "createdAt" | "createdBy" | "createdByRole" | "createdAtLocation">;
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.
@@ -22,6 +22,7 @@ export declare function getDeclarationPages(configuration: EventConfig): {
22
22
  requireCompletionToContinue: boolean;
23
23
  fields: FieldConfig[];
24
24
  type: "FORM";
25
+ showClearButton?: boolean | undefined;
25
26
  conditional?: any;
26
27
  }[];
27
28
  export declare function getDeclaration(configuration: EventConfig): {
@@ -40,6 +41,7 @@ export declare function getDeclaration(configuration: EventConfig): {
40
41
  requireCompletionToContinue: boolean;
41
42
  fields: FieldConfig[];
42
43
  type: "FORM";
44
+ showClearButton?: boolean | undefined;
43
45
  conditional?: any;
44
46
  }[];
45
47
  };
@@ -60,6 +62,7 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
60
62
  requireCompletionToContinue: boolean;
61
63
  fields: FieldConfig[];
62
64
  type: "FORM";
65
+ showClearButton?: boolean | undefined;
63
66
  conditional?: any;
64
67
  } | {
65
68
  id: string;
@@ -99,6 +102,7 @@ export declare function getPrintCertificatePages(configuration: EventConfig): ({
99
102
  };
100
103
  };
101
104
  };
105
+ showClearButton?: boolean | undefined;
102
106
  conditional?: any;
103
107
  })[];
104
108
  export declare const getActionAnnotationFields: (actionConfig: ActionConfig) => FieldConfig[];
@@ -437,10 +441,10 @@ export declare function findLastAssignmentAction(actions: Action[]): {
437
441
  originalActionId?: (string & import("zod").$brand<"UUID">) | null | undefined;
438
442
  } | {
439
443
  id: string & import("zod").$brand<"UUID">;
444
+ createdBy: string;
440
445
  transactionId: string;
441
446
  createdByUserType: "user" | "system";
442
447
  createdAt: string;
443
- createdBy: string;
444
448
  type: "CUSTOM" | "NOTIFY" | "DECLARE" | "REGISTER" | "EDIT" | "REJECT" | "ARCHIVE" | "PRINT_CERTIFICATE" | "REQUEST_CORRECTION" | "REJECT_CORRECTION" | "APPROVE_CORRECTION";
445
449
  status: "Rejected";
446
450
  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
  );
@@ -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
  );
@@ -3042,6 +3046,9 @@ var PageConfigBase = z21.object({
3042
3046
  requireCompletionToContinue: z21.boolean().default(false).describe(
3043
3047
  "If true, all required fields must be filled before continuing to the next page"
3044
3048
  ),
3049
+ showClearButton: z21.boolean().optional().describe(
3050
+ 'If true, a "Clear" button is shown at the top of the page allowing the user to reset all fields on the page to their default state'
3051
+ ),
3045
3052
  fields: z21.array(FieldConfig).describe("Fields to be rendered on the page"),
3046
3053
  conditional: Conditional.optional().describe(
3047
3054
  "Page will be shown if condition is met. If conditional is not defined, the page will be always shown."
@@ -7758,6 +7765,7 @@ var TENNIS_CLUB_DECLARATION_FORM = defineDeclarationForm({
7758
7765
  defaultMessage: "Who is applying for the membership?",
7759
7766
  description: "This is the title of the section"
7760
7767
  },
7768
+ showClearButton: true,
7761
7769
  fields: [
7762
7770
  {
7763
7771
  id: "applicant.name",
@@ -10309,6 +10317,23 @@ function canAccessEventWithScope(event2, scope, user2, customActionType) {
10309
10317
  )) {
10310
10318
  return false;
10311
10319
  }
10320
+ if (opts?.createdBy === UserFilter.enum.user && event2.createdBy !== user2.id) {
10321
+ return false;
10322
+ }
10323
+ if (opts?.createdIn === JurisdictionFilter.enum.location && !matchesJurisdictionFilter(
10324
+ event2.createdAtLocation,
10325
+ JurisdictionFilter.enum.location,
10326
+ user2
10327
+ )) {
10328
+ return false;
10329
+ }
10330
+ if (opts?.createdIn === JurisdictionFilter.enum.administrativeArea && !matchesJurisdictionFilter(
10331
+ event2.createdAtLocation,
10332
+ JurisdictionFilter.enum.administrativeArea,
10333
+ user2
10334
+ )) {
10335
+ return false;
10336
+ }
10312
10337
  if (scopeUsesDeclaredOptions(scope)) {
10313
10338
  const { options } = scope;
10314
10339
  if (options?.declaredBy === UserFilter.enum.user) {
@@ -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
  );
@@ -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
  );
@@ -2499,6 +2503,9 @@ var PageConfigBase = z21.object({
2499
2503
  requireCompletionToContinue: z21.boolean().default(false).describe(
2500
2504
  "If true, all required fields must be filled before continuing to the next page"
2501
2505
  ),
2506
+ showClearButton: z21.boolean().optional().describe(
2507
+ 'If true, a "Clear" button is shown at the top of the page allowing the user to reset all fields on the page to their default state'
2508
+ ),
2502
2509
  fields: z21.array(FieldConfig).describe("Fields to be rendered on the page"),
2503
2510
  conditional: Conditional.optional().describe(
2504
2511
  "Page will be shown if condition is met. If conditional is not defined, the page will be always shown."
@@ -5530,6 +5537,7 @@ var TENNIS_CLUB_DECLARATION_FORM = defineDeclarationForm({
5530
5537
  defaultMessage: "Who is applying for the membership?",
5531
5538
  description: "This is the title of the section"
5532
5539
  },
5540
+ showClearButton: true,
5533
5541
  fields: [
5534
5542
  {
5535
5543
  id: "applicant.name",
@@ -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;
@@ -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
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "2.0.1-rc.848e85d",
3
+ "version": "2.0.1-rc.86bd821",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "bin": {