@opencrvs/toolkit 2.1.0-rc.bebba5a → 2.1.0-rc.c0094df

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 (52) hide show
  1. package/dist/commons/api/router.d.ts +1518 -1540
  2. package/dist/commons/application-config/index.d.ts +6 -6
  3. package/dist/commons/conditionals/conditionals.d.ts +2102 -259
  4. package/dist/commons/events/ActionConfig.d.ts +105 -105
  5. package/dist/commons/events/ActionDocument.d.ts +113 -113
  6. package/dist/commons/events/ActionType.d.ts +62 -62
  7. package/dist/commons/events/AdvancedSearchConfig.d.ts +507 -507
  8. package/dist/commons/events/AuditLog.d.ts +43 -43
  9. package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
  10. package/dist/commons/events/Conditional.d.ts +3 -3
  11. package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
  12. package/dist/commons/events/Draft.d.ts +37 -37
  13. package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
  14. package/dist/commons/events/EventConfig.d.ts +5 -5
  15. package/dist/commons/events/EventDocument.d.ts +46 -46
  16. package/dist/commons/events/EventIndex.d.ts +62 -62
  17. package/dist/commons/events/EventMetadata.d.ts +40 -40
  18. package/dist/commons/events/FieldConfig.d.ts +337 -337
  19. package/dist/commons/events/FieldType.d.ts +51 -51
  20. package/dist/commons/events/FieldTypeMapping.d.ts +100 -100
  21. package/dist/commons/events/FieldValue.d.ts +12 -12
  22. package/dist/commons/events/Flag.d.ts +15 -15
  23. package/dist/commons/events/TemplateConfig.d.ts +1 -1
  24. package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
  25. package/dist/commons/events/WorkqueueConfig.d.ts +820 -820
  26. package/dist/commons/events/deduplication.d.ts +1 -1
  27. package/dist/commons/events/event.d.ts +2 -2
  28. package/dist/commons/events/field.d.ts +895 -78
  29. package/dist/commons/events/locations.d.ts +6 -99
  30. package/dist/commons/events/mocks.test.utils.d.ts +4 -20
  31. package/dist/commons/events/scopes.d.ts +4 -4
  32. package/dist/commons/events/state/index.d.ts +17 -17
  33. package/dist/commons/events/state/utils.d.ts +7 -7
  34. package/dist/commons/events/test.utils.d.ts +40 -40
  35. package/dist/commons/events/utils.d.ts +114 -114
  36. package/dist/commons/notification/UserNotifications.d.ts +10 -10
  37. package/dist/environment/derived-variables.d.ts +119 -119
  38. package/dist/environment/derived-variables.d.ts.map +1 -1
  39. package/dist/environment/logger.d.ts.map +1 -1
  40. package/dist/environment/questions.d.ts +74 -75
  41. package/dist/environment/questions.d.ts.map +1 -1
  42. package/dist/environment/setup-environment.js +14 -8
  43. package/dist/environment/utils.d.ts +1 -1
  44. package/dist/events/deduplication.d.ts +1 -1
  45. package/dist/events/index.js +52 -62
  46. package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
  47. package/dist/notification/index.js +52 -48
  48. package/dist/scopes/index.d.ts +146 -146
  49. package/opencrvs-toolkit-2.1.0-rc.c0094df.tgz +0 -0
  50. package/package.json +3 -2
  51. package/tsconfig.tsbuildinfo +1 -1
  52. package/opencrvs-toolkit-2.1.0-rc.bebba5a.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,
@@ -10471,55 +10466,21 @@ var LocationTypeV1 = z43.enum([
10471
10466
  "CRVS_OFFICE",
10472
10467
  "HEALTH_FACILITY"
10473
10468
  ]);
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
10469
  var AdministrativeArea = z43.object({
10483
10470
  id: UUID,
10484
10471
  name: z43.string(),
10485
10472
  externalId: z43.string().nullish(),
10486
10473
  parentId: UUID.nullable(),
10487
- status: LocationStatus,
10488
- effectiveFrom: z43.iso.date(),
10489
- versions: z43.array(LocationVersion)
10474
+ validUntil: z43.iso.datetime().nullable()
10490
10475
  });
10491
10476
  var Location = z43.object({
10492
10477
  id: UUID,
10493
10478
  name: z43.string(),
10494
10479
  externalId: z43.string().nullish(),
10495
10480
  administrativeAreaId: UUID.nullable(),
10496
- locationType: z43.string().nullable(),
10497
- status: LocationStatus,
10498
- effectiveFrom: z43.iso.date(),
10499
- versions: z43.array(LocationVersion)
10500
- });
10501
- var SetLocationPayload = z43.object({
10502
- id: UUID,
10503
- name: z43.string(),
10504
- externalId: z43.string().nullish(),
10505
- administrativeAreaId: UUID.nullable(),
10481
+ validUntil: z43.iso.datetime().nullable(),
10506
10482
  locationType: z43.string().nullable()
10507
10483
  });
10508
- var SetAdministrativeAreaPayload = z43.object({
10509
- id: UUID,
10510
- name: z43.string(),
10511
- externalId: z43.string().nullish(),
10512
- parentId: UUID.nullable()
10513
- });
10514
- function resolveVersion(versions, anchor) {
10515
- let resolved = versions[0];
10516
- for (const version of versions) {
10517
- if (version.effectiveFrom <= anchor) {
10518
- resolved = version;
10519
- }
10520
- }
10521
- return resolved;
10522
- }
10523
10484
  function matchesJurisdictionFilter(locationIds, filter, user2) {
10524
10485
  if (!locationIds) {
10525
10486
  return false;
@@ -10999,81 +10960,75 @@ function getFilePathsFromEvent(event2) {
10999
10960
  }
11000
10961
 
11001
10962
  // ../commons/src/events/mocks.test.utils.ts
11002
- function withVersionFields(entity) {
11003
- return {
11004
- ...entity,
11005
- status: "active",
11006
- effectiveFrom: "0001-01-01",
11007
- versions: [
11008
- {
11009
- versionId: entity.id,
11010
- effectiveFrom: "0001-01-01",
11011
- name: entity.name,
11012
- externalId: entity.externalId ?? null,
11013
- status: "active"
11014
- }
11015
- ]
11016
- };
11017
- }
11018
- var MOCK_ADMINISTRATIVE_AREAS_BASE = [
10963
+ var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = [
11019
10964
  {
11020
10965
  id: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11021
10966
  name: "Central",
11022
10967
  parentId: null,
10968
+ validUntil: null,
11023
10969
  externalId: "ydyJb1RAy4U1"
11024
10970
  },
11025
10971
  {
11026
10972
  id: "c599b691-fd2d-45e1-abf4-d185de727fb5",
11027
10973
  name: "Sulaka",
11028
10974
  parentId: null,
10975
+ validUntil: null,
11029
10976
  externalId: "pQ8nGxWmZ2Q3"
11030
10977
  },
11031
10978
  {
11032
10979
  id: "7ef2b9c7-5e6d-49f6-ae05-656207d0fc64",
11033
10980
  name: "Pualula",
11034
10981
  parentId: null,
10982
+ validUntil: null,
11035
10983
  externalId: "Aq91DweLmT8k"
11036
10984
  },
11037
10985
  {
11038
10986
  id: "6d1a59df-988c-4021-a846-ccbc021931a7",
11039
10987
  name: "Chuminga",
11040
10988
  parentId: null,
10989
+ validUntil: null,
11041
10990
  externalId: "Rw0fYNh2Xk9a"
11042
10991
  },
11043
10992
  {
11044
10993
  id: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11045
10994
  name: "Ibombo",
11046
10995
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
10996
+ validUntil: null,
11047
10997
  externalId: "k7DsP4vbN1Qe"
11048
10998
  },
11049
10999
  {
11050
11000
  id: "27160bbd-32d1-4625-812f-860226bfb92a",
11051
11001
  name: "Isango",
11052
11002
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11003
+ validUntil: null,
11053
11004
  externalId: "Gm3Z9eQpHw4L"
11054
11005
  },
11055
11006
  {
11056
11007
  id: "967032fd-3f81-478a-826c-30cb8fe121bd",
11057
11008
  name: "Isamba",
11058
11009
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11010
+ validUntil: null,
11059
11011
  externalId: "sT0xVu1KqJ7r"
11060
11012
  },
11061
11013
  {
11062
11014
  id: "89a33893-b17d-481d-a26d-6461e7ac1651",
11063
11015
  name: "Itambo",
11064
11016
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11017
+ validUntil: null,
11065
11018
  externalId: "Nq6Bv2HpL9Te"
11066
11019
  },
11067
11020
  {
11068
11021
  id: "d42ab2fe-e7ed-470e-8b31-4fb27f9b8250",
11069
11022
  name: "Ezhi",
11070
11023
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11024
+ validUntil: null,
11071
11025
  externalId: "xK8cQ0ZRy5Wd"
11072
11026
  },
11073
11027
  {
11074
11028
  id: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
11075
11029
  name: "Ilanga",
11076
11030
  parentId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
11031
+ validUntil: null,
11077
11032
  externalId: "Cq4Jm1XvN8Ls"
11078
11033
  },
11079
11034
  // Villages under Ibombo (62a0ccb4-880d-4f30-8882-f256007dfff9)
@@ -11081,42 +11036,49 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
11081
11036
  id: "1d4e5f6a-7b8c-4912-8efa-345678901234",
11082
11037
  name: "Klow",
11083
11038
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11039
+ validUntil: null,
11084
11040
  externalId: "IkYcYBUcyY2"
11085
11041
  },
11086
11042
  {
11087
11043
  id: "2e5f6a7b-8c9d-4a23-8fab-456789012345",
11088
11044
  name: "Mbondo",
11089
11045
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11046
+ validUntil: null,
11090
11047
  externalId: "Qhvv5hvo3mY"
11091
11048
  },
11092
11049
  {
11093
11050
  id: "3f6a7b8c-9d0e-4b34-8abc-567890123456",
11094
11051
  name: "Ndara",
11095
11052
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11053
+ validUntil: null,
11096
11054
  externalId: "crXh068O9TR"
11097
11055
  },
11098
11056
  {
11099
11057
  id: "4a7b8c9d-0e1f-4c45-abcd-678901234567",
11100
11058
  name: "Olani",
11101
11059
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11060
+ validUntil: null,
11102
11061
  externalId: "r00It8Tvvp7"
11103
11062
  },
11104
11063
  {
11105
11064
  id: "5b8c9d0e-1f2a-4d56-bcde-789012345678",
11106
11065
  name: "Pemba",
11107
11066
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11067
+ validUntil: null,
11108
11068
  externalId: "ZnUWsbONIaH"
11109
11069
  },
11110
11070
  {
11111
11071
  id: "6c9d0e1f-2a3b-4e67-8def-890123456789",
11112
11072
  name: "Quanza",
11113
11073
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11074
+ validUntil: null,
11114
11075
  externalId: "fDZycvQTa7l"
11115
11076
  },
11116
11077
  {
11117
11078
  id: "7d0e1f2a-3b4c-4f78-8efa-901234567890",
11118
11079
  name: "Rivka",
11119
11080
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11081
+ validUntil: null,
11120
11082
  externalId: "KqswxCGTELa"
11121
11083
  },
11122
11084
  // Villages under Isamba (967032fd-3f81-478a-826c-30cb8fe121bd)
@@ -11124,30 +11086,35 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
11124
11086
  id: "8e1f2a3b-4c5d-4089-8fab-012345678901",
11125
11087
  name: "Mbula",
11126
11088
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11089
+ validUntil: null,
11127
11090
  externalId: "osEbKjRc9Kg"
11128
11091
  },
11129
11092
  {
11130
11093
  id: "9f2a3b4c-5d6e-4190-8abf-123456789012",
11131
11094
  name: "Ndoki",
11132
11095
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11096
+ validUntil: null,
11133
11097
  externalId: "aq4daBUAGr3"
11134
11098
  },
11135
11099
  {
11136
11100
  id: "0a3b4c5d-6e7f-4201-abcd-234567890123",
11137
11101
  name: "Tsanga",
11138
11102
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11103
+ validUntil: null,
11139
11104
  externalId: "cqis6Y8trbJ"
11140
11105
  },
11141
11106
  {
11142
11107
  id: "1b4c5d6e-7f8a-4312-bcde-345678901234",
11143
11108
  name: "Waziri",
11144
11109
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11110
+ validUntil: null,
11145
11111
  externalId: "LMijHPyyx6d"
11146
11112
  },
11147
11113
  {
11148
11114
  id: "2c5d6e7f-8a9b-4423-8def-456789012345",
11149
11115
  name: "Zimbi",
11150
11116
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11117
+ validUntil: null,
11151
11118
  externalId: "pcQYbPuKGZ7"
11152
11119
  },
11153
11120
  // Villages under Itambo (89a33893-b17d-481d-a26d-6461e7ac1651)
@@ -11155,59 +11122,67 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
11155
11122
  id: "3d6e7f8a-9b0c-4534-8efa-567890123456",
11156
11123
  name: "Felani",
11157
11124
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11125
+ validUntil: null,
11158
11126
  externalId: "gSqpoCGdMXp"
11159
11127
  },
11160
11128
  {
11161
11129
  id: "4e7f8a9b-0c1d-4645-8fab-678901234567",
11162
11130
  name: "Goroma",
11163
11131
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11132
+ validUntil: null,
11164
11133
  externalId: "KvAAIaNqVrp"
11165
11134
  },
11166
11135
  {
11167
11136
  id: "5f8a9b0c-1d2e-4756-8abc-789012345678",
11168
11137
  name: "Halifu",
11169
11138
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11139
+ validUntil: null,
11170
11140
  externalId: "qe4UnEVt1hv"
11171
11141
  },
11172
11142
  {
11173
11143
  id: "6a9b0c1d-2e3f-4867-abcd-890123456789",
11174
11144
  name: "Jabari",
11175
11145
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11146
+ validUntil: null,
11176
11147
  externalId: "yHH9Nz4rLOt"
11177
11148
  },
11178
11149
  {
11179
11150
  id: "7b0c1d2e-3f4a-4978-bcde-901234567890",
11180
11151
  name: "Kifani",
11181
11152
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11153
+ validUntil: null,
11182
11154
  externalId: "eSWmXIGeu1I"
11183
11155
  },
11184
11156
  {
11185
11157
  id: "8c1d2e3f-4a5b-4089-8def-012345678901",
11186
11158
  name: "Lumela",
11187
11159
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11160
+ validUntil: null,
11188
11161
  externalId: "bh0b3aI1uP3"
11189
11162
  }
11190
11163
  ];
11191
- var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = MOCK_ADMINISTRATIVE_AREAS_BASE.map(withVersionFields);
11192
- var MOCK_LOCATIONS_BASE = [
11164
+ var V2_DEFAULT_MOCK_LOCATIONS = [
11193
11165
  {
11194
11166
  id: "6f6186ce-cd5f-4a5f-810a-2d99e7c4ba12",
11195
11167
  name: "Central Provincial Office",
11196
11168
  locationType: "CRVS_OFFICE",
11197
11169
  administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11170
+ validUntil: null,
11198
11171
  externalId: "Xr3Df8WpK6Ys"
11199
11172
  },
11200
11173
  {
11201
11174
  id: "b1c2d3e4-f5a6-7890-bcde-f12345678901",
11202
11175
  name: "Central Health Post",
11203
11176
  locationType: "HEALTH_FACILITY",
11204
- administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c"
11177
+ administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11178
+ validUntil: null
11205
11179
  },
11206
11180
  {
11207
11181
  id: "028d2c85-ca31-426d-b5d1-2cef545a4902",
11208
11182
  name: "Ibombo District Office",
11209
11183
  locationType: "CRVS_OFFICE",
11210
11184
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11185
+ validUntil: null,
11211
11186
  externalId: "Sm4Nw7GrD2Vy"
11212
11187
  },
11213
11188
  {
@@ -11215,6 +11190,7 @@ var MOCK_LOCATIONS_BASE = [
11215
11190
  name: "Isamba District Office",
11216
11191
  locationType: "CRVS_OFFICE",
11217
11192
  administrativeAreaId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11193
+ validUntil: null,
11218
11194
  externalId: "Vg1Bq5XeH9Lt"
11219
11195
  },
11220
11196
  {
@@ -11222,6 +11198,7 @@ var MOCK_LOCATIONS_BASE = [
11222
11198
  name: "Isango District Office",
11223
11199
  locationType: "CRVS_OFFICE",
11224
11200
  administrativeAreaId: "27160bbd-32d1-4625-812f-860226bfb92a",
11201
+ validUntil: null,
11225
11202
  externalId: "Je7Lm2XqN9Vz"
11226
11203
  },
11227
11204
  {
@@ -11229,6 +11206,7 @@ var MOCK_LOCATIONS_BASE = [
11229
11206
  name: "Sulaka Provincial Office",
11230
11207
  locationType: "CRVS_OFFICE",
11231
11208
  administrativeAreaId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
11209
+ validUntil: null,
11232
11210
  externalId: "Ht2Wp9KcX5Qv"
11233
11211
  },
11234
11212
  {
@@ -11236,6 +11214,7 @@ var MOCK_LOCATIONS_BASE = [
11236
11214
  name: "Ilanga District Office",
11237
11215
  locationType: "CRVS_OFFICE",
11238
11216
  administrativeAreaId: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
11217
+ validUntil: null,
11239
11218
  externalId: "Yp6Ds1WqN3Xz"
11240
11219
  },
11241
11220
  {
@@ -11243,6 +11222,7 @@ var MOCK_LOCATIONS_BASE = [
11243
11222
  name: "Chamakubi Health Post",
11244
11223
  locationType: "HEALTH_FACILITY",
11245
11224
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11225
+ validUntil: null,
11246
11226
  externalId: "M1nFr8LbC2Qy"
11247
11227
  },
11248
11228
  {
@@ -11250,6 +11230,7 @@ var MOCK_LOCATIONS_BASE = [
11250
11230
  name: "Ibombo Rural Health Centre",
11251
11231
  locationType: "HEALTH_FACILITY",
11252
11232
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11233
+ validUntil: null,
11253
11234
  externalId: "bT7pV6YrW0Xc"
11254
11235
  },
11255
11236
  {
@@ -11257,6 +11238,7 @@ var MOCK_LOCATIONS_BASE = [
11257
11238
  name: "Chikobo Rural Health Centre",
11258
11239
  locationType: "HEALTH_FACILITY",
11259
11240
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11241
+ validUntil: null,
11260
11242
  externalId: "zE4qPn2SgJ5d"
11261
11243
  },
11262
11244
  {
@@ -11264,6 +11246,7 @@ var MOCK_LOCATIONS_BASE = [
11264
11246
  name: "Chilochabalenje Health Post",
11265
11247
  locationType: "HEALTH_FACILITY",
11266
11248
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11249
+ validUntil: null,
11267
11250
  externalId: "H8vDs1MqR4Uf"
11268
11251
  },
11269
11252
  {
@@ -11271,6 +11254,7 @@ var MOCK_LOCATIONS_BASE = [
11271
11254
  name: "Chipeso Rural Health Centre",
11272
11255
  locationType: "HEALTH_FACILITY",
11273
11256
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11257
+ validUntil: null,
11274
11258
  externalId: "Qw3uZ9KfX6Lm"
11275
11259
  },
11276
11260
  {
@@ -11278,6 +11262,7 @@ var MOCK_LOCATIONS_BASE = [
11278
11262
  name: "Chisamba Rural Health Centre",
11279
11263
  locationType: "HEALTH_FACILITY",
11280
11264
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11265
+ validUntil: null,
11281
11266
  externalId: "Yr0pCg8LdM2s"
11282
11267
  },
11283
11268
  {
@@ -11285,6 +11270,7 @@ var MOCK_LOCATIONS_BASE = [
11285
11270
  name: "Chitanda Rural Health Centre",
11286
11271
  locationType: "HEALTH_FACILITY",
11287
11272
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11273
+ validUntil: null,
11288
11274
  externalId: "tS9gJ4PwB1Qx"
11289
11275
  },
11290
11276
  {
@@ -11292,6 +11278,7 @@ var MOCK_LOCATIONS_BASE = [
11292
11278
  name: "Golden Valley Rural Health Centre",
11293
11279
  locationType: "HEALTH_FACILITY",
11294
11280
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11281
+ validUntil: null,
11295
11282
  externalId: "Ld7Qm3XsA8Vr"
11296
11283
  },
11297
11284
  {
@@ -11299,6 +11286,7 @@ var MOCK_LOCATIONS_BASE = [
11299
11286
  name: "Ipongo Rural Health Centre",
11300
11287
  locationType: "HEALTH_FACILITY",
11301
11288
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11289
+ validUntil: null,
11302
11290
  externalId: "kF2sW9DmH0Bt"
11303
11291
  },
11304
11292
  {
@@ -11306,6 +11294,7 @@ var MOCK_LOCATIONS_BASE = [
11306
11294
  name: "Itumbwe Health Post",
11307
11295
  locationType: "HEALTH_FACILITY",
11308
11296
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11297
+ validUntil: null,
11309
11298
  externalId: "Ue5Xb3VaC7Pq"
11310
11299
  },
11311
11300
  {
@@ -11313,6 +11302,7 @@ var MOCK_LOCATIONS_BASE = [
11313
11302
  name: "Kabangalala Rural Health Centre",
11314
11303
  locationType: "HEALTH_FACILITY",
11315
11304
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11305
+ validUntil: null,
11316
11306
  externalId: "Pz8Kc1TqH6Jn"
11317
11307
  },
11318
11308
  // Village offices
@@ -11321,10 +11311,10 @@ var MOCK_LOCATIONS_BASE = [
11321
11311
  name: "Klow Village Office",
11322
11312
  locationType: "CRVS_OFFICE",
11323
11313
  administrativeAreaId: "1d4e5f6a-7b8c-4912-8efa-345678901234",
11314
+ validUntil: null,
11324
11315
  externalId: "PmAyxAJkxiJ"
11325
11316
  }
11326
11317
  ];
11327
- var V2_DEFAULT_MOCK_LOCATIONS = MOCK_LOCATIONS_BASE.map(withVersionFields);
11328
11318
  var V2_DEFAULT_MOCK_LOCATIONS_MAP = new Map(
11329
11319
  V2_DEFAULT_MOCK_LOCATIONS.map((l) => [l.id, l])
11330
11320
  );
@@ -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
  }