@opencrvs/toolkit 2.1.0-rc.6d019e4 → 2.1.0-rc.7051d1e

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.
Files changed (54) hide show
  1. package/dist/application-config/index.js +1 -2
  2. package/dist/commons/api/router.d.ts +1590 -1573
  3. package/dist/commons/application-config/index.d.ts +6 -6
  4. package/dist/commons/conditionals/conditionals.d.ts +2102 -259
  5. package/dist/commons/events/ActionConfig.d.ts +105 -105
  6. package/dist/commons/events/ActionDocument.d.ts +119 -119
  7. package/dist/commons/events/ActionInput.d.ts +6 -0
  8. package/dist/commons/events/ActionType.d.ts +62 -62
  9. package/dist/commons/events/AdvancedSearchConfig.d.ts +507 -507
  10. package/dist/commons/events/AuditLog.d.ts +43 -43
  11. package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
  12. package/dist/commons/events/Conditional.d.ts +3 -3
  13. package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
  14. package/dist/commons/events/Draft.d.ts +37 -37
  15. package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
  16. package/dist/commons/events/EventConfig.d.ts +5 -5
  17. package/dist/commons/events/EventDocument.d.ts +48 -48
  18. package/dist/commons/events/EventIndex.d.ts +62 -62
  19. package/dist/commons/events/EventMetadata.d.ts +40 -40
  20. package/dist/commons/events/FieldConfig.d.ts +337 -337
  21. package/dist/commons/events/FieldType.d.ts +51 -51
  22. package/dist/commons/events/FieldTypeMapping.d.ts +100 -100
  23. package/dist/commons/events/FieldValue.d.ts +12 -12
  24. package/dist/commons/events/Flag.d.ts +15 -15
  25. package/dist/commons/events/TemplateConfig.d.ts +1 -1
  26. package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
  27. package/dist/commons/events/WorkqueueConfig.d.ts +820 -820
  28. package/dist/commons/events/deduplication.d.ts +1 -1
  29. package/dist/commons/events/event.d.ts +2 -2
  30. package/dist/commons/events/field.d.ts +895 -78
  31. package/dist/commons/events/locations.d.ts +6 -96
  32. package/dist/commons/events/mocks.test.utils.d.ts +4 -18
  33. package/dist/commons/events/scopes.d.ts +4 -4
  34. package/dist/commons/events/state/index.d.ts +17 -17
  35. package/dist/commons/events/state/utils.d.ts +7 -7
  36. package/dist/commons/events/test.utils.d.ts +43 -40
  37. package/dist/commons/events/utils.d.ts +114 -114
  38. package/dist/commons/notification/UserNotifications.d.ts +10 -10
  39. package/dist/environment/derived-variables.d.ts +119 -119
  40. package/dist/environment/derived-variables.d.ts.map +1 -1
  41. package/dist/environment/logger.d.ts.map +1 -1
  42. package/dist/environment/questions.d.ts +74 -75
  43. package/dist/environment/questions.d.ts.map +1 -1
  44. package/dist/environment/setup-environment.js +14 -8
  45. package/dist/environment/utils.d.ts +1 -1
  46. package/dist/events/deduplication.d.ts +1 -1
  47. package/dist/events/index.js +58 -62
  48. package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
  49. package/dist/notification/index.js +57 -48
  50. package/dist/scopes/index.d.ts +146 -146
  51. package/opencrvs-toolkit-2.1.0-rc.7051d1e.tgz +0 -0
  52. package/package.json +5 -5
  53. package/tsconfig.tsbuildinfo +1 -1
  54. package/opencrvs-toolkit-2.1.0-rc.6d019e4.tgz +0 -0
@@ -161,9 +161,7 @@ __export(events_exports, {
161
161
  LanguageConfig: () => LanguageConfig,
162
162
  LegalStatuses: () => LegalStatuses,
163
163
  Location: () => Location,
164
- LocationStatus: () => LocationStatus,
165
164
  LocationTypeV1: () => LocationTypeV1,
166
- LocationVersion: () => LocationVersion,
167
165
  METADATA_FIELD_PREFIX: () => METADATA_FIELD_PREFIX,
168
166
  MarkAsDuplicateActionInput: () => MarkAsDuplicateActionInput,
169
167
  MarkNotDuplicateActionInput: () => MarkNotDuplicateActionInput,
@@ -203,8 +201,6 @@ __export(events_exports, {
203
201
  SelectDateRangeOption: () => SelectDateRangeOption,
204
202
  SelectDateRangeValue: () => SelectDateRangeValue,
205
203
  SelectOption: () => SelectOption,
206
- SetAdministrativeAreaPayload: () => SetAdministrativeAreaPayload,
207
- SetLocationPayload: () => SetLocationPayload,
208
204
  ShowConditional: () => ShowConditional,
209
205
  SignatureFieldValue: () => SignatureFieldValue,
210
206
  StaticDataEntry: () => StaticDataEntry,
@@ -437,7 +433,6 @@ __export(events_exports, {
437
433
  resolveDateOfEvent: () => resolveDateOfEvent,
438
434
  resolveEventCustomFlags: () => resolveEventCustomFlags,
439
435
  resolvePlaceOfEvent: () => resolvePlaceOfEvent,
440
- resolveVersion: () => resolveVersion,
441
436
  runClientFunction: () => runClientFunction,
442
437
  runFieldValidations: () => runFieldValidations,
443
438
  runStructuralValidations: () => runStructuralValidations,
@@ -1681,10 +1676,9 @@ var NotifiedAction = ActionBase.extend(
1681
1676
  var EditAction = ActionBase.extend(
1682
1677
  z14.object({
1683
1678
  type: z14.literal(ActionType.EDIT),
1684
- /** @deprecated New Edit-actions should no longer contain content. This is kept for old 2.0 edits. */
1685
1679
  content: z14.object({
1686
1680
  comment: z14.string().describe("Comment for the edit action.").optional()
1687
- }).optional()
1681
+ })
1688
1682
  }).shape
1689
1683
  );
1690
1684
  var PrintContent = z14.object({
@@ -6421,7 +6415,10 @@ var DeclareActionInput = BaseActionInput.extend(
6421
6415
  );
6422
6416
  var EditActionInput = BaseActionInput.extend(
6423
6417
  z38.object({
6424
- type: z38.literal(ActionType.EDIT).default(ActionType.EDIT)
6418
+ type: z38.literal(ActionType.EDIT).default(ActionType.EDIT),
6419
+ content: z38.object({
6420
+ comment: z38.string().describe("Comment for the edit action.").optional()
6421
+ })
6425
6422
  }).shape
6426
6423
  );
6427
6424
  var PrintCertificateActionInput = BaseActionInput.extend(
@@ -9966,6 +9963,7 @@ function eventPayloadGenerator(rng, configuration = tennisClubMembershipEvent) {
9966
9963
  },
9967
9964
  edit: (eventId, input = {}) => ({
9968
9965
  type: ActionType.EDIT,
9966
+ content: { comment: "Test comment" },
9969
9967
  transactionId: input.transactionId ?? getUUID(),
9970
9968
  declaration: input.declaration ?? generateActionDeclarationInput(configuration, ActionType.EDIT, rng),
9971
9969
  annotation: input.annotation ?? generateActionAnnotationInput(configuration, ActionType.EDIT, rng),
@@ -10471,53 +10469,21 @@ var LocationTypeV1 = z43.enum([
10471
10469
  "CRVS_OFFICE",
10472
10470
  "HEALTH_FACILITY"
10473
10471
  ]);
10474
- var LocationStatus = z43.enum(["active", "inactive"]);
10475
- var LocationVersion = z43.object({
10476
- versionId: UUID,
10477
- effectiveFrom: z43.iso.date(),
10478
- name: z43.string(),
10479
- externalId: z43.string().nullish(),
10480
- status: LocationStatus
10481
- });
10482
10472
  var AdministrativeArea = z43.object({
10483
10473
  id: UUID,
10484
10474
  name: z43.string(),
10485
10475
  externalId: z43.string().nullish(),
10486
10476
  parentId: UUID.nullable(),
10487
- status: LocationStatus,
10488
- versions: z43.array(LocationVersion)
10477
+ validUntil: z43.iso.datetime().nullable()
10489
10478
  });
10490
10479
  var Location = z43.object({
10491
10480
  id: UUID,
10492
10481
  name: z43.string(),
10493
10482
  externalId: z43.string().nullish(),
10494
10483
  administrativeAreaId: UUID.nullable(),
10495
- locationType: z43.string().nullable(),
10496
- status: LocationStatus,
10497
- versions: z43.array(LocationVersion)
10498
- });
10499
- var SetLocationPayload = z43.object({
10500
- id: UUID,
10501
- name: z43.string(),
10502
- externalId: z43.string().nullish(),
10503
- administrativeAreaId: UUID.nullable(),
10484
+ validUntil: z43.iso.datetime().nullable(),
10504
10485
  locationType: z43.string().nullable()
10505
10486
  });
10506
- var SetAdministrativeAreaPayload = z43.object({
10507
- id: UUID,
10508
- name: z43.string(),
10509
- externalId: z43.string().nullish(),
10510
- parentId: UUID.nullable()
10511
- });
10512
- function resolveVersion(versions, anchor) {
10513
- let resolved = versions[0];
10514
- for (const version of versions) {
10515
- if (version.effectiveFrom <= anchor) {
10516
- resolved = version;
10517
- }
10518
- }
10519
- return resolved;
10520
- }
10521
10487
  function matchesJurisdictionFilter(locationIds, filter, user2) {
10522
10488
  if (!locationIds) {
10523
10489
  return false;
@@ -10997,80 +10963,75 @@ function getFilePathsFromEvent(event2) {
10997
10963
  }
10998
10964
 
10999
10965
  // ../commons/src/events/mocks.test.utils.ts
11000
- function withVersionFields(entity) {
11001
- return {
11002
- ...entity,
11003
- status: "active",
11004
- versions: [
11005
- {
11006
- versionId: entity.id,
11007
- effectiveFrom: "0001-01-01",
11008
- name: entity.name,
11009
- externalId: entity.externalId ?? null,
11010
- status: "active"
11011
- }
11012
- ]
11013
- };
11014
- }
11015
- var MOCK_ADMINISTRATIVE_AREAS_BASE = [
10966
+ var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = [
11016
10967
  {
11017
10968
  id: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11018
10969
  name: "Central",
11019
10970
  parentId: null,
10971
+ validUntil: null,
11020
10972
  externalId: "ydyJb1RAy4U1"
11021
10973
  },
11022
10974
  {
11023
10975
  id: "c599b691-fd2d-45e1-abf4-d185de727fb5",
11024
10976
  name: "Sulaka",
11025
10977
  parentId: null,
10978
+ validUntil: null,
11026
10979
  externalId: "pQ8nGxWmZ2Q3"
11027
10980
  },
11028
10981
  {
11029
10982
  id: "7ef2b9c7-5e6d-49f6-ae05-656207d0fc64",
11030
10983
  name: "Pualula",
11031
10984
  parentId: null,
10985
+ validUntil: null,
11032
10986
  externalId: "Aq91DweLmT8k"
11033
10987
  },
11034
10988
  {
11035
10989
  id: "6d1a59df-988c-4021-a846-ccbc021931a7",
11036
10990
  name: "Chuminga",
11037
10991
  parentId: null,
10992
+ validUntil: null,
11038
10993
  externalId: "Rw0fYNh2Xk9a"
11039
10994
  },
11040
10995
  {
11041
10996
  id: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11042
10997
  name: "Ibombo",
11043
10998
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
10999
+ validUntil: null,
11044
11000
  externalId: "k7DsP4vbN1Qe"
11045
11001
  },
11046
11002
  {
11047
11003
  id: "27160bbd-32d1-4625-812f-860226bfb92a",
11048
11004
  name: "Isango",
11049
11005
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11006
+ validUntil: null,
11050
11007
  externalId: "Gm3Z9eQpHw4L"
11051
11008
  },
11052
11009
  {
11053
11010
  id: "967032fd-3f81-478a-826c-30cb8fe121bd",
11054
11011
  name: "Isamba",
11055
11012
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11013
+ validUntil: null,
11056
11014
  externalId: "sT0xVu1KqJ7r"
11057
11015
  },
11058
11016
  {
11059
11017
  id: "89a33893-b17d-481d-a26d-6461e7ac1651",
11060
11018
  name: "Itambo",
11061
11019
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11020
+ validUntil: null,
11062
11021
  externalId: "Nq6Bv2HpL9Te"
11063
11022
  },
11064
11023
  {
11065
11024
  id: "d42ab2fe-e7ed-470e-8b31-4fb27f9b8250",
11066
11025
  name: "Ezhi",
11067
11026
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11027
+ validUntil: null,
11068
11028
  externalId: "xK8cQ0ZRy5Wd"
11069
11029
  },
11070
11030
  {
11071
11031
  id: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
11072
11032
  name: "Ilanga",
11073
11033
  parentId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
11034
+ validUntil: null,
11074
11035
  externalId: "Cq4Jm1XvN8Ls"
11075
11036
  },
11076
11037
  // Villages under Ibombo (62a0ccb4-880d-4f30-8882-f256007dfff9)
@@ -11078,42 +11039,49 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
11078
11039
  id: "1d4e5f6a-7b8c-4912-8efa-345678901234",
11079
11040
  name: "Klow",
11080
11041
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11042
+ validUntil: null,
11081
11043
  externalId: "IkYcYBUcyY2"
11082
11044
  },
11083
11045
  {
11084
11046
  id: "2e5f6a7b-8c9d-4a23-8fab-456789012345",
11085
11047
  name: "Mbondo",
11086
11048
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11049
+ validUntil: null,
11087
11050
  externalId: "Qhvv5hvo3mY"
11088
11051
  },
11089
11052
  {
11090
11053
  id: "3f6a7b8c-9d0e-4b34-8abc-567890123456",
11091
11054
  name: "Ndara",
11092
11055
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11056
+ validUntil: null,
11093
11057
  externalId: "crXh068O9TR"
11094
11058
  },
11095
11059
  {
11096
11060
  id: "4a7b8c9d-0e1f-4c45-abcd-678901234567",
11097
11061
  name: "Olani",
11098
11062
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11063
+ validUntil: null,
11099
11064
  externalId: "r00It8Tvvp7"
11100
11065
  },
11101
11066
  {
11102
11067
  id: "5b8c9d0e-1f2a-4d56-bcde-789012345678",
11103
11068
  name: "Pemba",
11104
11069
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11070
+ validUntil: null,
11105
11071
  externalId: "ZnUWsbONIaH"
11106
11072
  },
11107
11073
  {
11108
11074
  id: "6c9d0e1f-2a3b-4e67-8def-890123456789",
11109
11075
  name: "Quanza",
11110
11076
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11077
+ validUntil: null,
11111
11078
  externalId: "fDZycvQTa7l"
11112
11079
  },
11113
11080
  {
11114
11081
  id: "7d0e1f2a-3b4c-4f78-8efa-901234567890",
11115
11082
  name: "Rivka",
11116
11083
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11084
+ validUntil: null,
11117
11085
  externalId: "KqswxCGTELa"
11118
11086
  },
11119
11087
  // Villages under Isamba (967032fd-3f81-478a-826c-30cb8fe121bd)
@@ -11121,30 +11089,35 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
11121
11089
  id: "8e1f2a3b-4c5d-4089-8fab-012345678901",
11122
11090
  name: "Mbula",
11123
11091
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11092
+ validUntil: null,
11124
11093
  externalId: "osEbKjRc9Kg"
11125
11094
  },
11126
11095
  {
11127
11096
  id: "9f2a3b4c-5d6e-4190-8abf-123456789012",
11128
11097
  name: "Ndoki",
11129
11098
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11099
+ validUntil: null,
11130
11100
  externalId: "aq4daBUAGr3"
11131
11101
  },
11132
11102
  {
11133
11103
  id: "0a3b4c5d-6e7f-4201-abcd-234567890123",
11134
11104
  name: "Tsanga",
11135
11105
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11106
+ validUntil: null,
11136
11107
  externalId: "cqis6Y8trbJ"
11137
11108
  },
11138
11109
  {
11139
11110
  id: "1b4c5d6e-7f8a-4312-bcde-345678901234",
11140
11111
  name: "Waziri",
11141
11112
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11113
+ validUntil: null,
11142
11114
  externalId: "LMijHPyyx6d"
11143
11115
  },
11144
11116
  {
11145
11117
  id: "2c5d6e7f-8a9b-4423-8def-456789012345",
11146
11118
  name: "Zimbi",
11147
11119
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11120
+ validUntil: null,
11148
11121
  externalId: "pcQYbPuKGZ7"
11149
11122
  },
11150
11123
  // Villages under Itambo (89a33893-b17d-481d-a26d-6461e7ac1651)
@@ -11152,59 +11125,67 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
11152
11125
  id: "3d6e7f8a-9b0c-4534-8efa-567890123456",
11153
11126
  name: "Felani",
11154
11127
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11128
+ validUntil: null,
11155
11129
  externalId: "gSqpoCGdMXp"
11156
11130
  },
11157
11131
  {
11158
11132
  id: "4e7f8a9b-0c1d-4645-8fab-678901234567",
11159
11133
  name: "Goroma",
11160
11134
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11135
+ validUntil: null,
11161
11136
  externalId: "KvAAIaNqVrp"
11162
11137
  },
11163
11138
  {
11164
11139
  id: "5f8a9b0c-1d2e-4756-8abc-789012345678",
11165
11140
  name: "Halifu",
11166
11141
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11142
+ validUntil: null,
11167
11143
  externalId: "qe4UnEVt1hv"
11168
11144
  },
11169
11145
  {
11170
11146
  id: "6a9b0c1d-2e3f-4867-abcd-890123456789",
11171
11147
  name: "Jabari",
11172
11148
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11149
+ validUntil: null,
11173
11150
  externalId: "yHH9Nz4rLOt"
11174
11151
  },
11175
11152
  {
11176
11153
  id: "7b0c1d2e-3f4a-4978-bcde-901234567890",
11177
11154
  name: "Kifani",
11178
11155
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11156
+ validUntil: null,
11179
11157
  externalId: "eSWmXIGeu1I"
11180
11158
  },
11181
11159
  {
11182
11160
  id: "8c1d2e3f-4a5b-4089-8def-012345678901",
11183
11161
  name: "Lumela",
11184
11162
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11163
+ validUntil: null,
11185
11164
  externalId: "bh0b3aI1uP3"
11186
11165
  }
11187
11166
  ];
11188
- var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = MOCK_ADMINISTRATIVE_AREAS_BASE.map(withVersionFields);
11189
- var MOCK_LOCATIONS_BASE = [
11167
+ var V2_DEFAULT_MOCK_LOCATIONS = [
11190
11168
  {
11191
11169
  id: "6f6186ce-cd5f-4a5f-810a-2d99e7c4ba12",
11192
11170
  name: "Central Provincial Office",
11193
11171
  locationType: "CRVS_OFFICE",
11194
11172
  administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11173
+ validUntil: null,
11195
11174
  externalId: "Xr3Df8WpK6Ys"
11196
11175
  },
11197
11176
  {
11198
11177
  id: "b1c2d3e4-f5a6-7890-bcde-f12345678901",
11199
11178
  name: "Central Health Post",
11200
11179
  locationType: "HEALTH_FACILITY",
11201
- administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c"
11180
+ administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11181
+ validUntil: null
11202
11182
  },
11203
11183
  {
11204
11184
  id: "028d2c85-ca31-426d-b5d1-2cef545a4902",
11205
11185
  name: "Ibombo District Office",
11206
11186
  locationType: "CRVS_OFFICE",
11207
11187
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11188
+ validUntil: null,
11208
11189
  externalId: "Sm4Nw7GrD2Vy"
11209
11190
  },
11210
11191
  {
@@ -11212,6 +11193,7 @@ var MOCK_LOCATIONS_BASE = [
11212
11193
  name: "Isamba District Office",
11213
11194
  locationType: "CRVS_OFFICE",
11214
11195
  administrativeAreaId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11196
+ validUntil: null,
11215
11197
  externalId: "Vg1Bq5XeH9Lt"
11216
11198
  },
11217
11199
  {
@@ -11219,6 +11201,7 @@ var MOCK_LOCATIONS_BASE = [
11219
11201
  name: "Isango District Office",
11220
11202
  locationType: "CRVS_OFFICE",
11221
11203
  administrativeAreaId: "27160bbd-32d1-4625-812f-860226bfb92a",
11204
+ validUntil: null,
11222
11205
  externalId: "Je7Lm2XqN9Vz"
11223
11206
  },
11224
11207
  {
@@ -11226,6 +11209,7 @@ var MOCK_LOCATIONS_BASE = [
11226
11209
  name: "Sulaka Provincial Office",
11227
11210
  locationType: "CRVS_OFFICE",
11228
11211
  administrativeAreaId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
11212
+ validUntil: null,
11229
11213
  externalId: "Ht2Wp9KcX5Qv"
11230
11214
  },
11231
11215
  {
@@ -11233,6 +11217,7 @@ var MOCK_LOCATIONS_BASE = [
11233
11217
  name: "Ilanga District Office",
11234
11218
  locationType: "CRVS_OFFICE",
11235
11219
  administrativeAreaId: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
11220
+ validUntil: null,
11236
11221
  externalId: "Yp6Ds1WqN3Xz"
11237
11222
  },
11238
11223
  {
@@ -11240,6 +11225,7 @@ var MOCK_LOCATIONS_BASE = [
11240
11225
  name: "Chamakubi Health Post",
11241
11226
  locationType: "HEALTH_FACILITY",
11242
11227
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11228
+ validUntil: null,
11243
11229
  externalId: "M1nFr8LbC2Qy"
11244
11230
  },
11245
11231
  {
@@ -11247,6 +11233,7 @@ var MOCK_LOCATIONS_BASE = [
11247
11233
  name: "Ibombo Rural Health Centre",
11248
11234
  locationType: "HEALTH_FACILITY",
11249
11235
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11236
+ validUntil: null,
11250
11237
  externalId: "bT7pV6YrW0Xc"
11251
11238
  },
11252
11239
  {
@@ -11254,6 +11241,7 @@ var MOCK_LOCATIONS_BASE = [
11254
11241
  name: "Chikobo Rural Health Centre",
11255
11242
  locationType: "HEALTH_FACILITY",
11256
11243
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11244
+ validUntil: null,
11257
11245
  externalId: "zE4qPn2SgJ5d"
11258
11246
  },
11259
11247
  {
@@ -11261,6 +11249,7 @@ var MOCK_LOCATIONS_BASE = [
11261
11249
  name: "Chilochabalenje Health Post",
11262
11250
  locationType: "HEALTH_FACILITY",
11263
11251
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11252
+ validUntil: null,
11264
11253
  externalId: "H8vDs1MqR4Uf"
11265
11254
  },
11266
11255
  {
@@ -11268,6 +11257,7 @@ var MOCK_LOCATIONS_BASE = [
11268
11257
  name: "Chipeso Rural Health Centre",
11269
11258
  locationType: "HEALTH_FACILITY",
11270
11259
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11260
+ validUntil: null,
11271
11261
  externalId: "Qw3uZ9KfX6Lm"
11272
11262
  },
11273
11263
  {
@@ -11275,6 +11265,7 @@ var MOCK_LOCATIONS_BASE = [
11275
11265
  name: "Chisamba Rural Health Centre",
11276
11266
  locationType: "HEALTH_FACILITY",
11277
11267
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11268
+ validUntil: null,
11278
11269
  externalId: "Yr0pCg8LdM2s"
11279
11270
  },
11280
11271
  {
@@ -11282,6 +11273,7 @@ var MOCK_LOCATIONS_BASE = [
11282
11273
  name: "Chitanda Rural Health Centre",
11283
11274
  locationType: "HEALTH_FACILITY",
11284
11275
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11276
+ validUntil: null,
11285
11277
  externalId: "tS9gJ4PwB1Qx"
11286
11278
  },
11287
11279
  {
@@ -11289,6 +11281,7 @@ var MOCK_LOCATIONS_BASE = [
11289
11281
  name: "Golden Valley Rural Health Centre",
11290
11282
  locationType: "HEALTH_FACILITY",
11291
11283
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11284
+ validUntil: null,
11292
11285
  externalId: "Ld7Qm3XsA8Vr"
11293
11286
  },
11294
11287
  {
@@ -11296,6 +11289,7 @@ var MOCK_LOCATIONS_BASE = [
11296
11289
  name: "Ipongo Rural Health Centre",
11297
11290
  locationType: "HEALTH_FACILITY",
11298
11291
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11292
+ validUntil: null,
11299
11293
  externalId: "kF2sW9DmH0Bt"
11300
11294
  },
11301
11295
  {
@@ -11303,6 +11297,7 @@ var MOCK_LOCATIONS_BASE = [
11303
11297
  name: "Itumbwe Health Post",
11304
11298
  locationType: "HEALTH_FACILITY",
11305
11299
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11300
+ validUntil: null,
11306
11301
  externalId: "Ue5Xb3VaC7Pq"
11307
11302
  },
11308
11303
  {
@@ -11310,6 +11305,7 @@ var MOCK_LOCATIONS_BASE = [
11310
11305
  name: "Kabangalala Rural Health Centre",
11311
11306
  locationType: "HEALTH_FACILITY",
11312
11307
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11308
+ validUntil: null,
11313
11309
  externalId: "Pz8Kc1TqH6Jn"
11314
11310
  },
11315
11311
  // Village offices
@@ -11318,10 +11314,10 @@ var MOCK_LOCATIONS_BASE = [
11318
11314
  name: "Klow Village Office",
11319
11315
  locationType: "CRVS_OFFICE",
11320
11316
  administrativeAreaId: "1d4e5f6a-7b8c-4912-8efa-345678901234",
11317
+ validUntil: null,
11321
11318
  externalId: "PmAyxAJkxiJ"
11322
11319
  }
11323
11320
  ];
11324
- var V2_DEFAULT_MOCK_LOCATIONS = MOCK_LOCATIONS_BASE.map(withVersionFields);
11325
11321
  var V2_DEFAULT_MOCK_LOCATIONS_MAP = new Map(
11326
11322
  V2_DEFAULT_MOCK_LOCATIONS.map((l) => [l.id, l])
11327
11323
  );
@@ -92,10 +92,9 @@ const FUNCTION_LIKE_KINDS = [
92
92
  * Falls back to `<anonymous>` when nothing useful can be derived.
93
93
  */
94
94
  function describeFunction(node) {
95
- var _a;
96
- var _b, _c;
95
+ var _a, _b, _c;
97
96
  if (ts_morph_1.Node.isFunctionDeclaration(node) || ts_morph_1.Node.isMethodDeclaration(node)) {
98
- return (_b = node.getName()) !== null && _b !== void 0 ? _b : '<anonymous>';
97
+ return (_a = node.getName()) !== null && _a !== void 0 ? _a : '<anonymous>';
99
98
  }
100
99
  // FunctionExpression / ArrowFunction: try to pick up the assignment target.
101
100
  const parent = node.getParent();
@@ -107,7 +106,7 @@ function describeFunction(node) {
107
106
  }
108
107
  if (ts_morph_1.Node.isFunctionExpression(node) &&
109
108
  node.getNameNode() !== undefined) {
110
- return (_c = (_a = node.getNameNode()) === null || _a === void 0 ? void 0 : _a.getText()) !== null && _c !== void 0 ? _c : '<anonymous>';
109
+ return (_c = (_b = node.getNameNode()) === null || _b === void 0 ? void 0 : _b.getText()) !== null && _c !== void 0 ? _c : '<anonymous>';
111
110
  }
112
111
  return '<anonymous>';
113
112
  }