@opencrvs/toolkit 2.0.0-rc.e1f588f → 2.0.0-rc.e4ffdc6

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.
@@ -1723,10 +1723,12 @@ declare const AdministrativeAreaField: z.ZodObject<{
1723
1723
  "user.read": "user.read";
1724
1724
  "user.create": "user.create";
1725
1725
  "user.edit": "user.edit";
1726
+ "user.search": "user.search";
1726
1727
  workqueue: "workqueue";
1727
1728
  "dashboard.view": "dashboard.view";
1728
1729
  }>;
1729
1730
  $option: z.ZodEnum<{
1731
+ role: "role";
1730
1732
  event: "event";
1731
1733
  placeOfEvent: "placeOfEvent";
1732
1734
  declaredIn: "declaredIn";
@@ -1841,10 +1843,12 @@ declare const LocationInput: z.ZodObject<{
1841
1843
  "user.read": "user.read";
1842
1844
  "user.create": "user.create";
1843
1845
  "user.edit": "user.edit";
1846
+ "user.search": "user.search";
1844
1847
  workqueue: "workqueue";
1845
1848
  "dashboard.view": "dashboard.view";
1846
1849
  }>;
1847
1850
  $option: z.ZodEnum<{
1851
+ role: "role";
1848
1852
  event: "event";
1849
1853
  placeOfEvent: "placeOfEvent";
1850
1854
  declaredIn: "declaredIn";
@@ -2024,10 +2028,12 @@ declare const Facility: z.ZodObject<{
2024
2028
  "user.read": "user.read";
2025
2029
  "user.create": "user.create";
2026
2030
  "user.edit": "user.edit";
2031
+ "user.search": "user.search";
2027
2032
  workqueue: "workqueue";
2028
2033
  "dashboard.view": "dashboard.view";
2029
2034
  }>;
2030
2035
  $option: z.ZodEnum<{
2036
+ role: "role";
2031
2037
  event: "event";
2032
2038
  placeOfEvent: "placeOfEvent";
2033
2039
  declaredIn: "declaredIn";
@@ -2128,10 +2134,12 @@ declare const Office: z.ZodObject<{
2128
2134
  "user.read": "user.read";
2129
2135
  "user.create": "user.create";
2130
2136
  "user.edit": "user.edit";
2137
+ "user.search": "user.search";
2131
2138
  workqueue: "workqueue";
2132
2139
  "dashboard.view": "dashboard.view";
2133
2140
  }>;
2134
2141
  $option: z.ZodEnum<{
2142
+ role: "role";
2135
2143
  event: "event";
2136
2144
  placeOfEvent: "placeOfEvent";
2137
2145
  declaredIn: "declaredIn";
@@ -2319,10 +2327,12 @@ declare const Address: z.ZodObject<{
2319
2327
  "user.read": "user.read";
2320
2328
  "user.create": "user.create";
2321
2329
  "user.edit": "user.edit";
2330
+ "user.search": "user.search";
2322
2331
  workqueue: "workqueue";
2323
2332
  "dashboard.view": "dashboard.view";
2324
2333
  }>;
2325
2334
  $option: z.ZodEnum<{
2335
+ role: "role";
2326
2336
  event: "event";
2327
2337
  placeOfEvent: "placeOfEvent";
2328
2338
  declaredIn: "declaredIn";
@@ -1,7 +1,8 @@
1
+ import { UUID } from '../uuid';
1
2
  import * as z from 'zod/v4';
2
3
  import { EventIndex } from './EventIndex';
3
4
  import { ActionCreationMetadata, RegistrationCreationMetadata } from './EventMetadata';
4
- import { RecordScopeV2 } from '../scopes';
5
+ import { RecordScopeV2, UserScopeV2 } from '../scopes';
5
6
  import { SystemContext, UserContext } from '../users/User';
6
7
  /** @deprecated Moving on, location types are arbitrary and defined by the country config. */
7
8
  export declare const LocationTypeV1: z.ZodEnum<{
@@ -51,11 +52,47 @@ export type EventIndexWithAdministrativeHierarchy = Omit<ToArrayFields<EventInde
51
52
  *
52
53
  */
53
54
  export declare function canAccessEventWithScope(event: Partial<EventIndexWithAdministrativeHierarchy>, scope: RecordScopeV2, user: UserContext | SystemContext, customActionType?: string): boolean;
55
+ export type UserWithResolvedHierarchy = {
56
+ role: string;
57
+ administrativeHierarchy: UUID[];
58
+ primaryOfficeId: UUID;
59
+ };
60
+ export declare function canAccessUserWithScope({ userToAccess, scope, user }: {
61
+ userToAccess: UserWithResolvedHierarchy;
62
+ scope: UserScopeV2;
63
+ user: UserContext | SystemContext;
64
+ }): boolean;
65
+ export declare function canAccessOtherUserWithScopes({ scopes, userToAccess, user }: {
66
+ scopes: UserScopeV2[];
67
+ userToAccess: UserWithResolvedHierarchy;
68
+ user: UserContext | SystemContext;
69
+ }): boolean;
54
70
  /**
55
71
  * Given indexed event and list of resolved scopes, determine if any of the scopes allow access to the event.
56
72
  *
57
73
  * One of the scopes must allow access for the event to be accessible.
58
74
  */
59
75
  export declare function userCanAccessEventWithScopes(event: Partial<EventIndexWithAdministrativeHierarchy>, scopes: RecordScopeV2[], user: UserContext | SystemContext, customActionType?: string): boolean;
76
+ export declare function getAdministrativeAreaHierarchy(administrativeAreaId: string | undefined | null, administrativeAreas: Map<UUID, AdministrativeArea>): {
77
+ id: string & z.core.$brand<"UUID">;
78
+ name: string;
79
+ parentId: (string & z.core.$brand<"UUID">) | null;
80
+ validUntil: string | null;
81
+ externalId?: string | null | undefined;
82
+ }[];
83
+ /**
84
+ * Resolves a location or administrative area UUID into a root-first hierarchy of UUIDs.
85
+ *
86
+ * If the ID refers to a `Location` (e.g. CRVS office), the hierarchy includes
87
+ * the administrative area ancestors followed by the location itself.
88
+ * If the ID refers to an `AdministrativeArea`, returns the area's ancestor chain (root-first).
89
+ *
90
+ * Uses `getAdministrativeAreaHierarchy` which returns leaf-first order,
91
+ * so the result is reversed to match the root-first convention used by the server.
92
+ */
93
+ export declare function getLocationHierarchy(selectedId: UUID, context: {
94
+ administrativeAreas: Map<UUID, AdministrativeArea>;
95
+ locations: Map<UUID, Location>;
96
+ }): UUID[];
60
97
  export {};
61
98
  //# sourceMappingURL=locations.d.ts.map
@@ -0,0 +1,19 @@
1
+ import { AdministrativeArea, Location } from './locations';
2
+ export declare const V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS: AdministrativeArea[];
3
+ export declare const V2_DEFAULT_MOCK_LOCATIONS: Location[];
4
+ export declare const V2_DEFAULT_MOCK_LOCATIONS_MAP: Map<string & import("zod").$brand<"UUID">, {
5
+ id: string & import("zod").$brand<"UUID">;
6
+ name: string;
7
+ administrativeAreaId: (string & import("zod").$brand<"UUID">) | null;
8
+ validUntil: string | null;
9
+ locationType: string | null;
10
+ externalId?: string | null | undefined;
11
+ }>;
12
+ export declare const V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP: Map<string & import("zod").$brand<"UUID">, {
13
+ id: string & import("zod").$brand<"UUID">;
14
+ name: string;
15
+ parentId: (string & import("zod").$brand<"UUID">) | null;
16
+ validUntil: string | null;
17
+ externalId?: string | null | undefined;
18
+ }>;
19
+ //# sourceMappingURL=mocks.test.utils.d.ts.map
@@ -1,8 +1,9 @@
1
1
  import { DisplayableAction } from './ActionType';
2
- import { EncodedScope } from '../scopes';
2
+ import { EncodedScope, UserScopeV2 } from '../scopes';
3
3
  import { EventIndexWithAdministrativeHierarchy } from './locations';
4
4
  import { UserContext } from '../users/User';
5
5
  import { EventIndex } from './EventIndex';
6
+ import { UUID } from 'src/uuid';
6
7
  export declare const ACTION_SCOPE_MAP: {
7
8
  READ: "record.read"[];
8
9
  CREATE: "record.create"[];
@@ -53,4 +54,26 @@ export declare function isActionInScope({ scopes, action, event, currentUser }:
53
54
  event: EventIndexWithAdministrativeHierarchy;
54
55
  currentUser: UserContext;
55
56
  }): boolean;
57
+ /**
58
+ *
59
+ *
60
+ * @param allRoles - All possible roles in the system
61
+ * @param userLocation - The location and role information of the user whose role options are being determined
62
+ * @param acceptedScopes - The scopes of the user requesting the role update, used to determine which roles they can assign.
63
+ * @param userRequesting - The user context of the user requesting the role update, used to check location-based access to the target user's location.
64
+ *
65
+ * @returns An array of roles that the requesting user is allowed to assign to the target user based on their scopes and location
66
+ *
67
+ * 1) Used to determine which roles should be available in the dropdown when a user is editing another user's role in the user management interface.
68
+ * 2) Used to check if payload includes valid role.
69
+ */
70
+ export declare function getAvailableRolesForUserUpdatePayload({ allRoles, userLocation, acceptedScopes, userRequesting }: {
71
+ allRoles: string[];
72
+ userRequesting: UserContext;
73
+ acceptedScopes: UserScopeV2[];
74
+ userLocation: {
75
+ administrativeHierarchy: UUID[];
76
+ primaryOfficeId: UUID;
77
+ };
78
+ }): string[];
56
79
  //# sourceMappingURL=scopes.d.ts.map
@@ -182,6 +182,10 @@ var scopeByEvent = z6.preprocess(
182
182
  (val) => val === void 0 ? void 0 : [val].flat(),
183
183
  z6.array(z6.string()).optional()
184
184
  ).describe("Event type, e.g. birth, death");
185
+ var userRole = z6.preprocess(
186
+ (val) => val === void 0 ? void 0 : [val].flat(),
187
+ z6.array(z6.string()).optional()
188
+ ).describe("User role, e.g. admin, field agent");
185
189
  var scopeOptionsPlaceEvent = z6.object({
186
190
  event: scopeByEvent,
187
191
  placeOfEvent: JurisdictionFilter.optional()
@@ -205,6 +209,9 @@ var CustomActionScopeOptions = AllRecordScopeOptions.extend({
205
209
  var AccessLevelOptions = z6.object({
206
210
  accessLevel: JurisdictionFilter.optional()
207
211
  });
212
+ var AllUserScopeOptions = AccessLevelOptions.extend({
213
+ role: userRole.optional()
214
+ });
208
215
  var WorkqueueOrDashboardOptions = z6.object({
209
216
  ids: z6.preprocess(
210
217
  (val) => val === void 0 ? void 0 : [val].flat(),
@@ -214,6 +221,7 @@ var WorkqueueOrDashboardOptions = z6.object({
214
221
  var AllScopeOptions = z6.object({
215
222
  ...AllRecordScopeOptions.shape,
216
223
  ...AccessLevelOptions.shape,
224
+ ...AllUserScopeOptions.shape,
217
225
  ...WorkqueueOrDashboardOptions.shape
218
226
  });
219
227
  var ScopeOptionKey = AllScopeOptions.keyof();
@@ -286,6 +294,30 @@ var RecordScopeV2 = z6.discriminatedUnion("type", [
286
294
  ]).describe(
287
295
  "Scopes used to check user's permission to perform actions on a record."
288
296
  );
297
+ var SystemScopeType = z6.enum([
298
+ "organisation.read-locations",
299
+ "user.read",
300
+ "user.create",
301
+ "user.edit",
302
+ "user.search"
303
+ ]);
304
+ var UserScopeType = SystemScopeType.extract([
305
+ "user.read",
306
+ "user.create",
307
+ "user.edit",
308
+ "user.search"
309
+ ]);
310
+ var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
311
+ var UserScopeV2 = z6.discriminatedUnion("type", [
312
+ z6.object({
313
+ type: ScopesWithRoleOption,
314
+ options: AllUserScopeOptions.optional()
315
+ }),
316
+ z6.object({
317
+ type: UserScopeType.extract(["user.read", "user.search"]),
318
+ options: AccessLevelOptions.optional()
319
+ })
320
+ ]);
289
321
  var ResolvedRecordScopeV2 = z6.discriminatedUnion("type", [
290
322
  z6.object({
291
323
  type: ScopesWithPlaceEventOptions,
@@ -306,16 +338,14 @@ var ResolvedRecordScopeV2 = z6.discriminatedUnion("type", [
306
338
  }).optional()
307
339
  })
308
340
  ]).describe("Resolved scope with location/user IDs instead of filters.");
309
- var SystemScopeType = z6.enum([
310
- "organisation.read-locations",
311
- "user.read",
312
- "user.create",
313
- "user.edit"
314
- ]);
315
341
  var Scope2 = z6.discriminatedUnion("type", [
316
342
  z6.object({ type: PlainScopeType }),
317
343
  ...RecordScopeV2.options,
318
- z6.object({ type: SystemScopeType, options: AccessLevelOptions.optional() }),
344
+ ...UserScopeV2.options,
345
+ z6.object({
346
+ type: z6.literal("organisation.read-locations"),
347
+ options: AccessLevelOptions.optional()
348
+ }),
319
349
  z6.object({
320
350
  type: z6.literal("workqueue"),
321
351
  options: WorkqueueOrDashboardOptions
@@ -243,6 +243,8 @@ __export(events_exports, {
243
243
  areConditionsMet: () => areConditionsMet,
244
244
  buildFormState: () => buildFormState,
245
245
  canAccessEventWithScope: () => canAccessEventWithScope,
246
+ canAccessOtherUserWithScopes: () => canAccessOtherUserWithScopes,
247
+ canAccessUserWithScope: () => canAccessUserWithScope,
246
248
  compositeFieldTypes: () => compositeFieldTypes,
247
249
  createEmptyDraft: () => createEmptyDraft,
248
250
  createFieldConditionals: () => createFieldConditionals,
@@ -300,12 +302,14 @@ __export(events_exports, {
300
302
  getActionConfig: () => getActionConfig,
301
303
  getActionReview: () => getActionReview,
302
304
  getActionReviewFields: () => getActionReviewFields,
305
+ getAdministrativeAreaHierarchy: () => getAdministrativeAreaHierarchy,
303
306
  getAllUniqueFields: () => getAllUniqueFields,
304
307
  getAnnotationFromDrafts: () => getAnnotationFromDrafts,
305
308
  getAssignedUserFromActions: () => getAssignedUserFromActions,
306
309
  getAssignedUserSignatureFromActions: () => getAssignedUserSignatureFromActions,
307
310
  getAssignmentStatus: () => getAssignmentStatus,
308
311
  getAvailableActionsForEvent: () => getAvailableActionsForEvent,
312
+ getAvailableRolesForUserUpdatePayload: () => getAvailableRolesForUserUpdatePayload,
309
313
  getCompleteActionAnnotation: () => getCompleteActionAnnotation,
310
314
  getCompleteActionDeclaration: () => getCompleteActionDeclaration,
311
315
  getCurrentEventState: () => getCurrentEventState,
@@ -316,6 +320,7 @@ __export(events_exports, {
316
320
  getDeclarationPages: () => getDeclarationPages,
317
321
  getEventConfigById: () => getEventConfigById,
318
322
  getFilePathsFromEvent: () => getFilePathsFromEvent,
323
+ getLocationHierarchy: () => getLocationHierarchy,
319
324
  getMixedPath: () => getMixedPath,
320
325
  getPendingAction: () => getPendingAction,
321
326
  getPrintCertificatePages: () => getPrintCertificatePages,
@@ -489,6 +494,10 @@ var scopeByEvent = z2.preprocess(
489
494
  (val) => val === void 0 ? void 0 : [val].flat(),
490
495
  z2.array(z2.string()).optional()
491
496
  ).describe("Event type, e.g. birth, death");
497
+ var userRole = z2.preprocess(
498
+ (val) => val === void 0 ? void 0 : [val].flat(),
499
+ z2.array(z2.string()).optional()
500
+ ).describe("User role, e.g. admin, field agent");
492
501
  var scopeOptionsPlaceEvent = z2.object({
493
502
  event: scopeByEvent,
494
503
  placeOfEvent: JurisdictionFilter.optional()
@@ -512,6 +521,9 @@ var CustomActionScopeOptions = AllRecordScopeOptions.extend({
512
521
  var AccessLevelOptions = z2.object({
513
522
  accessLevel: JurisdictionFilter.optional()
514
523
  });
524
+ var AllUserScopeOptions = AccessLevelOptions.extend({
525
+ role: userRole.optional()
526
+ });
515
527
  var WorkqueueOrDashboardOptions = z2.object({
516
528
  ids: z2.preprocess(
517
529
  (val) => val === void 0 ? void 0 : [val].flat(),
@@ -521,6 +533,7 @@ var WorkqueueOrDashboardOptions = z2.object({
521
533
  var AllScopeOptions = z2.object({
522
534
  ...AllRecordScopeOptions.shape,
523
535
  ...AccessLevelOptions.shape,
536
+ ...AllUserScopeOptions.shape,
524
537
  ...WorkqueueOrDashboardOptions.shape
525
538
  });
526
539
  var ScopeOptionKey = AllScopeOptions.keyof();
@@ -593,6 +606,33 @@ var RecordScopeV2 = z2.discriminatedUnion("type", [
593
606
  ]).describe(
594
607
  "Scopes used to check user's permission to perform actions on a record."
595
608
  );
609
+ var SystemScopeType = z2.enum([
610
+ "organisation.read-locations",
611
+ "user.read",
612
+ "user.create",
613
+ "user.edit",
614
+ "user.search"
615
+ ]);
616
+ var UserScopeType = SystemScopeType.extract([
617
+ "user.read",
618
+ "user.create",
619
+ "user.edit",
620
+ "user.search"
621
+ ]);
622
+ var ScopesWithRoleOption = UserScopeType.extract(["user.edit", "user.create"]);
623
+ var UserScopeV2 = z2.discriminatedUnion("type", [
624
+ z2.object({
625
+ type: ScopesWithRoleOption,
626
+ options: AllUserScopeOptions.optional()
627
+ }),
628
+ z2.object({
629
+ type: UserScopeType.extract(["user.read", "user.search"]),
630
+ options: AccessLevelOptions.optional()
631
+ })
632
+ ]);
633
+ function scopeUsesRoleOptions(scope) {
634
+ return ScopesWithRoleOption?.options.some((opt) => opt === scope.type);
635
+ }
596
636
  function scopeUsesDeclaredOptions(scope) {
597
637
  return !ScopesWithPlaceEventOptions.options.some((opt) => opt === scope.type);
598
638
  }
@@ -625,16 +665,14 @@ var ResolvedRecordScopeV2 = z2.discriminatedUnion("type", [
625
665
  }).optional()
626
666
  })
627
667
  ]).describe("Resolved scope with location/user IDs instead of filters.");
628
- var SystemScopeType = z2.enum([
629
- "organisation.read-locations",
630
- "user.read",
631
- "user.create",
632
- "user.edit"
633
- ]);
634
668
  var Scope = z2.discriminatedUnion("type", [
635
669
  z2.object({ type: PlainScopeType }),
636
670
  ...RecordScopeV2.options,
637
- z2.object({ type: SystemScopeType, options: AccessLevelOptions.optional() }),
671
+ ...UserScopeV2.options,
672
+ z2.object({
673
+ type: z2.literal("organisation.read-locations"),
674
+ options: AccessLevelOptions.optional()
675
+ }),
638
676
  z2.object({
639
677
  type: z2.literal("workqueue"),
640
678
  options: WorkqueueOrDashboardOptions
@@ -9930,11 +9968,77 @@ function canAccessEventWithScope(event2, scope, user2, customActionType) {
9930
9968
  }
9931
9969
  return true;
9932
9970
  }
9971
+ function canAccessUserWithScope({
9972
+ userToAccess,
9973
+ scope,
9974
+ user: user2
9975
+ }) {
9976
+ const opts = scope.options;
9977
+ const hasSameOffice = user2.primaryOfficeId === userToAccess.primaryOfficeId;
9978
+ if (opts?.accessLevel === JurisdictionFilter.enum.location && !hasSameOffice) {
9979
+ return false;
9980
+ }
9981
+ const hasAdministrativeAreaInHierarchy = userToAccess.administrativeHierarchy.some(
9982
+ (id) => user2.administrativeAreaId === id
9983
+ ) || user2.administrativeAreaId === null;
9984
+ if (opts?.accessLevel === JurisdictionFilter.enum.administrativeArea && !hasAdministrativeAreaInHierarchy) {
9985
+ return false;
9986
+ }
9987
+ if (scopeUsesRoleOptions(scope)) {
9988
+ const { options } = scope;
9989
+ if (options?.role && !options.role.includes(userToAccess.role)) {
9990
+ return false;
9991
+ }
9992
+ }
9993
+ return true;
9994
+ }
9995
+ function canAccessOtherUserWithScopes({
9996
+ scopes,
9997
+ userToAccess,
9998
+ user: user2
9999
+ }) {
10000
+ return scopes.some(
10001
+ (scope) => canAccessUserWithScope({ userToAccess, scope, user: user2 })
10002
+ );
10003
+ }
9933
10004
  function userCanAccessEventWithScopes(event2, scopes, user2, customActionType) {
9934
10005
  return scopes.some(
9935
10006
  (scope) => canAccessEventWithScope(event2, scope, user2, customActionType)
9936
10007
  );
9937
10008
  }
10009
+ function getAdministrativeAreaHierarchy(administrativeAreaId, administrativeAreas) {
10010
+ const collectedLocations = [];
10011
+ const parsedAdministrativeAreaId = administrativeAreaId && UUID.safeParse(administrativeAreaId).data;
10012
+ let current = parsedAdministrativeAreaId ? administrativeAreas.get(parsedAdministrativeAreaId) : null;
10013
+ while (current) {
10014
+ collectedLocations.push(current);
10015
+ if (!current.parentId) {
10016
+ break;
10017
+ }
10018
+ const parentId = current.parentId;
10019
+ current = administrativeAreas.get(parentId);
10020
+ }
10021
+ return collectedLocations;
10022
+ }
10023
+ function getLocationHierarchy(selectedId, context) {
10024
+ const { administrativeAreas, locations } = context;
10025
+ const loc = locations.get(selectedId);
10026
+ if (loc) {
10027
+ if (loc.administrativeAreaId) {
10028
+ const hierarchy2 = getAdministrativeAreaHierarchy(
10029
+ loc.administrativeAreaId,
10030
+ administrativeAreas
10031
+ );
10032
+ return [...hierarchy2.reverse().map((area) => area.id), loc.id];
10033
+ }
10034
+ return [loc.id];
10035
+ }
10036
+ const hierarchy = getAdministrativeAreaHierarchy(
10037
+ selectedId,
10038
+ administrativeAreas
10039
+ );
10040
+ return hierarchy.reverse().map((area) => area.id);
10041
+ }
9938
10042
 
9939
10043
  // ../commons/src/events/scopes.ts
9940
10044
  var ACTION_SCOPE_MAP = {
@@ -10009,6 +10113,25 @@ function isActionInScope({
10009
10113
  );
10010
10114
  return canAccess;
10011
10115
  }
10116
+ function getAvailableRolesForUserUpdatePayload({
10117
+ allRoles,
10118
+ userLocation,
10119
+ acceptedScopes,
10120
+ userRequesting
10121
+ }) {
10122
+ const availableRoles = allRoles.filter((role) => {
10123
+ const canAccess = canAccessOtherUserWithScopes({
10124
+ userToAccess: {
10125
+ ...userLocation,
10126
+ role
10127
+ },
10128
+ user: userRequesting,
10129
+ scopes: acceptedScopes
10130
+ });
10131
+ return canAccess;
10132
+ });
10133
+ return availableRoles;
10134
+ }
10012
10135
 
10013
10136
  // ../commons/src/events/serializers/user/deserializer.ts
10014
10137
  function userDeserializer(serializedUserField, user2) {
@@ -1 +1 @@
1
- {"version":3,"file":"add-birth-certificate-issuance-flag.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/add-birth-certificate-issuance-flag.ts"],"names":[],"mappings":"AA2aA,iBAAe,IAAI,kBAiDlB;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}
1
+ {"version":3,"file":"add-birth-certificate-issuance-flag.d.ts","sourceRoot":"","sources":["../../../src/migrations/v2.0/add-birth-certificate-issuance-flag.ts"],"names":[],"mappings":"AAycA,iBAAe,IAAI,kBAiDlB;AAED,OAAO,EAAE,IAAI,EAAE,CAAA"}