@opencrvs/toolkit 2.1.0-rc.d13869e → 2.1.0-rc.d24aa5e

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 +1591 -1574
  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 +59 -62
  48. package/dist/migrations/v2.0/migrate-application-config-url.js +3 -4
  49. package/dist/notification/index.js +58 -48
  50. package/dist/scopes/index.d.ts +146 -146
  51. package/opencrvs-toolkit-2.1.0-rc.d24aa5e.tgz +0 -0
  52. package/package.json +5 -5
  53. package/tsconfig.tsbuildinfo +1 -1
  54. package/opencrvs-toolkit-2.1.0-rc.d13869e.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,11 @@ 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
+ /** @deprecated Edit-action should no longer contain content. This is kept for old 2.0 edits. */
6420
+ content: z38.object({
6421
+ comment: z38.string().describe("Comment for the edit action.").optional()
6422
+ }).optional()
6425
6423
  }).shape
6426
6424
  );
6427
6425
  var PrintCertificateActionInput = BaseActionInput.extend(
@@ -9966,6 +9964,7 @@ function eventPayloadGenerator(rng, configuration = tennisClubMembershipEvent) {
9966
9964
  },
9967
9965
  edit: (eventId, input = {}) => ({
9968
9966
  type: ActionType.EDIT,
9967
+ content: { comment: "Test comment" },
9969
9968
  transactionId: input.transactionId ?? getUUID(),
9970
9969
  declaration: input.declaration ?? generateActionDeclarationInput(configuration, ActionType.EDIT, rng),
9971
9970
  annotation: input.annotation ?? generateActionAnnotationInput(configuration, ActionType.EDIT, rng),
@@ -10471,53 +10470,21 @@ var LocationTypeV1 = z43.enum([
10471
10470
  "CRVS_OFFICE",
10472
10471
  "HEALTH_FACILITY"
10473
10472
  ]);
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
10473
  var AdministrativeArea = z43.object({
10483
10474
  id: UUID,
10484
10475
  name: z43.string(),
10485
10476
  externalId: z43.string().nullish(),
10486
10477
  parentId: UUID.nullable(),
10487
- status: LocationStatus,
10488
- versions: z43.array(LocationVersion)
10478
+ validUntil: z43.iso.datetime().nullable()
10489
10479
  });
10490
10480
  var Location = z43.object({
10491
10481
  id: UUID,
10492
10482
  name: z43.string(),
10493
10483
  externalId: z43.string().nullish(),
10494
10484
  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(),
10485
+ validUntil: z43.iso.datetime().nullable(),
10504
10486
  locationType: z43.string().nullable()
10505
10487
  });
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
10488
  function matchesJurisdictionFilter(locationIds, filter, user2) {
10522
10489
  if (!locationIds) {
10523
10490
  return false;
@@ -10997,80 +10964,75 @@ function getFilePathsFromEvent(event2) {
10997
10964
  }
10998
10965
 
10999
10966
  // ../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 = [
10967
+ var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = [
11016
10968
  {
11017
10969
  id: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11018
10970
  name: "Central",
11019
10971
  parentId: null,
10972
+ validUntil: null,
11020
10973
  externalId: "ydyJb1RAy4U1"
11021
10974
  },
11022
10975
  {
11023
10976
  id: "c599b691-fd2d-45e1-abf4-d185de727fb5",
11024
10977
  name: "Sulaka",
11025
10978
  parentId: null,
10979
+ validUntil: null,
11026
10980
  externalId: "pQ8nGxWmZ2Q3"
11027
10981
  },
11028
10982
  {
11029
10983
  id: "7ef2b9c7-5e6d-49f6-ae05-656207d0fc64",
11030
10984
  name: "Pualula",
11031
10985
  parentId: null,
10986
+ validUntil: null,
11032
10987
  externalId: "Aq91DweLmT8k"
11033
10988
  },
11034
10989
  {
11035
10990
  id: "6d1a59df-988c-4021-a846-ccbc021931a7",
11036
10991
  name: "Chuminga",
11037
10992
  parentId: null,
10993
+ validUntil: null,
11038
10994
  externalId: "Rw0fYNh2Xk9a"
11039
10995
  },
11040
10996
  {
11041
10997
  id: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11042
10998
  name: "Ibombo",
11043
10999
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11000
+ validUntil: null,
11044
11001
  externalId: "k7DsP4vbN1Qe"
11045
11002
  },
11046
11003
  {
11047
11004
  id: "27160bbd-32d1-4625-812f-860226bfb92a",
11048
11005
  name: "Isango",
11049
11006
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11007
+ validUntil: null,
11050
11008
  externalId: "Gm3Z9eQpHw4L"
11051
11009
  },
11052
11010
  {
11053
11011
  id: "967032fd-3f81-478a-826c-30cb8fe121bd",
11054
11012
  name: "Isamba",
11055
11013
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11014
+ validUntil: null,
11056
11015
  externalId: "sT0xVu1KqJ7r"
11057
11016
  },
11058
11017
  {
11059
11018
  id: "89a33893-b17d-481d-a26d-6461e7ac1651",
11060
11019
  name: "Itambo",
11061
11020
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11021
+ validUntil: null,
11062
11022
  externalId: "Nq6Bv2HpL9Te"
11063
11023
  },
11064
11024
  {
11065
11025
  id: "d42ab2fe-e7ed-470e-8b31-4fb27f9b8250",
11066
11026
  name: "Ezhi",
11067
11027
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11028
+ validUntil: null,
11068
11029
  externalId: "xK8cQ0ZRy5Wd"
11069
11030
  },
11070
11031
  {
11071
11032
  id: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
11072
11033
  name: "Ilanga",
11073
11034
  parentId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
11035
+ validUntil: null,
11074
11036
  externalId: "Cq4Jm1XvN8Ls"
11075
11037
  },
11076
11038
  // Villages under Ibombo (62a0ccb4-880d-4f30-8882-f256007dfff9)
@@ -11078,42 +11040,49 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
11078
11040
  id: "1d4e5f6a-7b8c-4912-8efa-345678901234",
11079
11041
  name: "Klow",
11080
11042
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11043
+ validUntil: null,
11081
11044
  externalId: "IkYcYBUcyY2"
11082
11045
  },
11083
11046
  {
11084
11047
  id: "2e5f6a7b-8c9d-4a23-8fab-456789012345",
11085
11048
  name: "Mbondo",
11086
11049
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11050
+ validUntil: null,
11087
11051
  externalId: "Qhvv5hvo3mY"
11088
11052
  },
11089
11053
  {
11090
11054
  id: "3f6a7b8c-9d0e-4b34-8abc-567890123456",
11091
11055
  name: "Ndara",
11092
11056
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11057
+ validUntil: null,
11093
11058
  externalId: "crXh068O9TR"
11094
11059
  },
11095
11060
  {
11096
11061
  id: "4a7b8c9d-0e1f-4c45-abcd-678901234567",
11097
11062
  name: "Olani",
11098
11063
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11064
+ validUntil: null,
11099
11065
  externalId: "r00It8Tvvp7"
11100
11066
  },
11101
11067
  {
11102
11068
  id: "5b8c9d0e-1f2a-4d56-bcde-789012345678",
11103
11069
  name: "Pemba",
11104
11070
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11071
+ validUntil: null,
11105
11072
  externalId: "ZnUWsbONIaH"
11106
11073
  },
11107
11074
  {
11108
11075
  id: "6c9d0e1f-2a3b-4e67-8def-890123456789",
11109
11076
  name: "Quanza",
11110
11077
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11078
+ validUntil: null,
11111
11079
  externalId: "fDZycvQTa7l"
11112
11080
  },
11113
11081
  {
11114
11082
  id: "7d0e1f2a-3b4c-4f78-8efa-901234567890",
11115
11083
  name: "Rivka",
11116
11084
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11085
+ validUntil: null,
11117
11086
  externalId: "KqswxCGTELa"
11118
11087
  },
11119
11088
  // Villages under Isamba (967032fd-3f81-478a-826c-30cb8fe121bd)
@@ -11121,30 +11090,35 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
11121
11090
  id: "8e1f2a3b-4c5d-4089-8fab-012345678901",
11122
11091
  name: "Mbula",
11123
11092
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11093
+ validUntil: null,
11124
11094
  externalId: "osEbKjRc9Kg"
11125
11095
  },
11126
11096
  {
11127
11097
  id: "9f2a3b4c-5d6e-4190-8abf-123456789012",
11128
11098
  name: "Ndoki",
11129
11099
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11100
+ validUntil: null,
11130
11101
  externalId: "aq4daBUAGr3"
11131
11102
  },
11132
11103
  {
11133
11104
  id: "0a3b4c5d-6e7f-4201-abcd-234567890123",
11134
11105
  name: "Tsanga",
11135
11106
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11107
+ validUntil: null,
11136
11108
  externalId: "cqis6Y8trbJ"
11137
11109
  },
11138
11110
  {
11139
11111
  id: "1b4c5d6e-7f8a-4312-bcde-345678901234",
11140
11112
  name: "Waziri",
11141
11113
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11114
+ validUntil: null,
11142
11115
  externalId: "LMijHPyyx6d"
11143
11116
  },
11144
11117
  {
11145
11118
  id: "2c5d6e7f-8a9b-4423-8def-456789012345",
11146
11119
  name: "Zimbi",
11147
11120
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11121
+ validUntil: null,
11148
11122
  externalId: "pcQYbPuKGZ7"
11149
11123
  },
11150
11124
  // Villages under Itambo (89a33893-b17d-481d-a26d-6461e7ac1651)
@@ -11152,59 +11126,67 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
11152
11126
  id: "3d6e7f8a-9b0c-4534-8efa-567890123456",
11153
11127
  name: "Felani",
11154
11128
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11129
+ validUntil: null,
11155
11130
  externalId: "gSqpoCGdMXp"
11156
11131
  },
11157
11132
  {
11158
11133
  id: "4e7f8a9b-0c1d-4645-8fab-678901234567",
11159
11134
  name: "Goroma",
11160
11135
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11136
+ validUntil: null,
11161
11137
  externalId: "KvAAIaNqVrp"
11162
11138
  },
11163
11139
  {
11164
11140
  id: "5f8a9b0c-1d2e-4756-8abc-789012345678",
11165
11141
  name: "Halifu",
11166
11142
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11143
+ validUntil: null,
11167
11144
  externalId: "qe4UnEVt1hv"
11168
11145
  },
11169
11146
  {
11170
11147
  id: "6a9b0c1d-2e3f-4867-abcd-890123456789",
11171
11148
  name: "Jabari",
11172
11149
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11150
+ validUntil: null,
11173
11151
  externalId: "yHH9Nz4rLOt"
11174
11152
  },
11175
11153
  {
11176
11154
  id: "7b0c1d2e-3f4a-4978-bcde-901234567890",
11177
11155
  name: "Kifani",
11178
11156
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11157
+ validUntil: null,
11179
11158
  externalId: "eSWmXIGeu1I"
11180
11159
  },
11181
11160
  {
11182
11161
  id: "8c1d2e3f-4a5b-4089-8def-012345678901",
11183
11162
  name: "Lumela",
11184
11163
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
11164
+ validUntil: null,
11185
11165
  externalId: "bh0b3aI1uP3"
11186
11166
  }
11187
11167
  ];
11188
- var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = MOCK_ADMINISTRATIVE_AREAS_BASE.map(withVersionFields);
11189
- var MOCK_LOCATIONS_BASE = [
11168
+ var V2_DEFAULT_MOCK_LOCATIONS = [
11190
11169
  {
11191
11170
  id: "6f6186ce-cd5f-4a5f-810a-2d99e7c4ba12",
11192
11171
  name: "Central Provincial Office",
11193
11172
  locationType: "CRVS_OFFICE",
11194
11173
  administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11174
+ validUntil: null,
11195
11175
  externalId: "Xr3Df8WpK6Ys"
11196
11176
  },
11197
11177
  {
11198
11178
  id: "b1c2d3e4-f5a6-7890-bcde-f12345678901",
11199
11179
  name: "Central Health Post",
11200
11180
  locationType: "HEALTH_FACILITY",
11201
- administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c"
11181
+ administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
11182
+ validUntil: null
11202
11183
  },
11203
11184
  {
11204
11185
  id: "028d2c85-ca31-426d-b5d1-2cef545a4902",
11205
11186
  name: "Ibombo District Office",
11206
11187
  locationType: "CRVS_OFFICE",
11207
11188
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11189
+ validUntil: null,
11208
11190
  externalId: "Sm4Nw7GrD2Vy"
11209
11191
  },
11210
11192
  {
@@ -11212,6 +11194,7 @@ var MOCK_LOCATIONS_BASE = [
11212
11194
  name: "Isamba District Office",
11213
11195
  locationType: "CRVS_OFFICE",
11214
11196
  administrativeAreaId: "967032fd-3f81-478a-826c-30cb8fe121bd",
11197
+ validUntil: null,
11215
11198
  externalId: "Vg1Bq5XeH9Lt"
11216
11199
  },
11217
11200
  {
@@ -11219,6 +11202,7 @@ var MOCK_LOCATIONS_BASE = [
11219
11202
  name: "Isango District Office",
11220
11203
  locationType: "CRVS_OFFICE",
11221
11204
  administrativeAreaId: "27160bbd-32d1-4625-812f-860226bfb92a",
11205
+ validUntil: null,
11222
11206
  externalId: "Je7Lm2XqN9Vz"
11223
11207
  },
11224
11208
  {
@@ -11226,6 +11210,7 @@ var MOCK_LOCATIONS_BASE = [
11226
11210
  name: "Sulaka Provincial Office",
11227
11211
  locationType: "CRVS_OFFICE",
11228
11212
  administrativeAreaId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
11213
+ validUntil: null,
11229
11214
  externalId: "Ht2Wp9KcX5Qv"
11230
11215
  },
11231
11216
  {
@@ -11233,6 +11218,7 @@ var MOCK_LOCATIONS_BASE = [
11233
11218
  name: "Ilanga District Office",
11234
11219
  locationType: "CRVS_OFFICE",
11235
11220
  administrativeAreaId: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
11221
+ validUntil: null,
11236
11222
  externalId: "Yp6Ds1WqN3Xz"
11237
11223
  },
11238
11224
  {
@@ -11240,6 +11226,7 @@ var MOCK_LOCATIONS_BASE = [
11240
11226
  name: "Chamakubi Health Post",
11241
11227
  locationType: "HEALTH_FACILITY",
11242
11228
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11229
+ validUntil: null,
11243
11230
  externalId: "M1nFr8LbC2Qy"
11244
11231
  },
11245
11232
  {
@@ -11247,6 +11234,7 @@ var MOCK_LOCATIONS_BASE = [
11247
11234
  name: "Ibombo Rural Health Centre",
11248
11235
  locationType: "HEALTH_FACILITY",
11249
11236
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11237
+ validUntil: null,
11250
11238
  externalId: "bT7pV6YrW0Xc"
11251
11239
  },
11252
11240
  {
@@ -11254,6 +11242,7 @@ var MOCK_LOCATIONS_BASE = [
11254
11242
  name: "Chikobo Rural Health Centre",
11255
11243
  locationType: "HEALTH_FACILITY",
11256
11244
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11245
+ validUntil: null,
11257
11246
  externalId: "zE4qPn2SgJ5d"
11258
11247
  },
11259
11248
  {
@@ -11261,6 +11250,7 @@ var MOCK_LOCATIONS_BASE = [
11261
11250
  name: "Chilochabalenje Health Post",
11262
11251
  locationType: "HEALTH_FACILITY",
11263
11252
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11253
+ validUntil: null,
11264
11254
  externalId: "H8vDs1MqR4Uf"
11265
11255
  },
11266
11256
  {
@@ -11268,6 +11258,7 @@ var MOCK_LOCATIONS_BASE = [
11268
11258
  name: "Chipeso Rural Health Centre",
11269
11259
  locationType: "HEALTH_FACILITY",
11270
11260
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11261
+ validUntil: null,
11271
11262
  externalId: "Qw3uZ9KfX6Lm"
11272
11263
  },
11273
11264
  {
@@ -11275,6 +11266,7 @@ var MOCK_LOCATIONS_BASE = [
11275
11266
  name: "Chisamba Rural Health Centre",
11276
11267
  locationType: "HEALTH_FACILITY",
11277
11268
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11269
+ validUntil: null,
11278
11270
  externalId: "Yr0pCg8LdM2s"
11279
11271
  },
11280
11272
  {
@@ -11282,6 +11274,7 @@ var MOCK_LOCATIONS_BASE = [
11282
11274
  name: "Chitanda Rural Health Centre",
11283
11275
  locationType: "HEALTH_FACILITY",
11284
11276
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11277
+ validUntil: null,
11285
11278
  externalId: "tS9gJ4PwB1Qx"
11286
11279
  },
11287
11280
  {
@@ -11289,6 +11282,7 @@ var MOCK_LOCATIONS_BASE = [
11289
11282
  name: "Golden Valley Rural Health Centre",
11290
11283
  locationType: "HEALTH_FACILITY",
11291
11284
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11285
+ validUntil: null,
11292
11286
  externalId: "Ld7Qm3XsA8Vr"
11293
11287
  },
11294
11288
  {
@@ -11296,6 +11290,7 @@ var MOCK_LOCATIONS_BASE = [
11296
11290
  name: "Ipongo Rural Health Centre",
11297
11291
  locationType: "HEALTH_FACILITY",
11298
11292
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11293
+ validUntil: null,
11299
11294
  externalId: "kF2sW9DmH0Bt"
11300
11295
  },
11301
11296
  {
@@ -11303,6 +11298,7 @@ var MOCK_LOCATIONS_BASE = [
11303
11298
  name: "Itumbwe Health Post",
11304
11299
  locationType: "HEALTH_FACILITY",
11305
11300
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11301
+ validUntil: null,
11306
11302
  externalId: "Ue5Xb3VaC7Pq"
11307
11303
  },
11308
11304
  {
@@ -11310,6 +11306,7 @@ var MOCK_LOCATIONS_BASE = [
11310
11306
  name: "Kabangalala Rural Health Centre",
11311
11307
  locationType: "HEALTH_FACILITY",
11312
11308
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
11309
+ validUntil: null,
11313
11310
  externalId: "Pz8Kc1TqH6Jn"
11314
11311
  },
11315
11312
  // Village offices
@@ -11318,10 +11315,10 @@ var MOCK_LOCATIONS_BASE = [
11318
11315
  name: "Klow Village Office",
11319
11316
  locationType: "CRVS_OFFICE",
11320
11317
  administrativeAreaId: "1d4e5f6a-7b8c-4912-8efa-345678901234",
11318
+ validUntil: null,
11321
11319
  externalId: "PmAyxAJkxiJ"
11322
11320
  }
11323
11321
  ];
11324
- var V2_DEFAULT_MOCK_LOCATIONS = MOCK_LOCATIONS_BASE.map(withVersionFields);
11325
11322
  var V2_DEFAULT_MOCK_LOCATIONS_MAP = new Map(
11326
11323
  V2_DEFAULT_MOCK_LOCATIONS.map((l) => [l.id, l])
11327
11324
  );
@@ -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
  }