@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
@@ -1216,10 +1216,9 @@ var NotifiedAction = ActionBase.extend(
1216
1216
  var EditAction = ActionBase.extend(
1217
1217
  z14.object({
1218
1218
  type: z14.literal(ActionType.EDIT),
1219
- /** @deprecated New Edit-actions should no longer contain content. This is kept for old 2.0 edits. */
1220
1219
  content: z14.object({
1221
1220
  comment: z14.string().describe("Comment for the edit action.").optional()
1222
- }).optional()
1221
+ })
1223
1222
  }).shape
1224
1223
  );
1225
1224
  var PrintContent = z14.object({
@@ -4653,7 +4652,11 @@ var DeclareActionInput = BaseActionInput.extend(
4653
4652
  );
4654
4653
  var EditActionInput = BaseActionInput.extend(
4655
4654
  z38.object({
4656
- type: z38.literal(ActionType.EDIT).default(ActionType.EDIT)
4655
+ type: z38.literal(ActionType.EDIT).default(ActionType.EDIT),
4656
+ /** @deprecated Edit-action should no longer contain content. This is kept for old 2.0 edits. */
4657
+ content: z38.object({
4658
+ comment: z38.string().describe("Comment for the edit action.").optional()
4659
+ }).optional()
4657
4660
  }).shape
4658
4661
  );
4659
4662
  var PrintCertificateActionInput = BaseActionInput.extend(
@@ -7359,44 +7362,21 @@ var LocationTypeV1 = z43.enum([
7359
7362
  "CRVS_OFFICE",
7360
7363
  "HEALTH_FACILITY"
7361
7364
  ]);
7362
- var LocationStatus = z43.enum(["active", "inactive"]);
7363
- var LocationVersion = z43.object({
7364
- versionId: UUID,
7365
- effectiveFrom: z43.iso.date(),
7366
- name: z43.string(),
7367
- externalId: z43.string().nullish(),
7368
- status: LocationStatus
7369
- });
7370
7365
  var AdministrativeArea = z43.object({
7371
7366
  id: UUID,
7372
7367
  name: z43.string(),
7373
7368
  externalId: z43.string().nullish(),
7374
7369
  parentId: UUID.nullable(),
7375
- status: LocationStatus,
7376
- versions: z43.array(LocationVersion)
7370
+ validUntil: z43.iso.datetime().nullable()
7377
7371
  });
7378
7372
  var Location = z43.object({
7379
7373
  id: UUID,
7380
7374
  name: z43.string(),
7381
7375
  externalId: z43.string().nullish(),
7382
7376
  administrativeAreaId: UUID.nullable(),
7383
- locationType: z43.string().nullable(),
7384
- status: LocationStatus,
7385
- versions: z43.array(LocationVersion)
7386
- });
7387
- var SetLocationPayload = z43.object({
7388
- id: UUID,
7389
- name: z43.string(),
7390
- externalId: z43.string().nullish(),
7391
- administrativeAreaId: UUID.nullable(),
7377
+ validUntil: z43.iso.datetime().nullable(),
7392
7378
  locationType: z43.string().nullable()
7393
7379
  });
7394
- var SetAdministrativeAreaPayload = z43.object({
7395
- id: UUID,
7396
- name: z43.string(),
7397
- externalId: z43.string().nullish(),
7398
- parentId: UUID.nullable()
7399
- });
7400
7380
 
7401
7381
  // ../commons/src/events/scopes.ts
7402
7382
  var ACTION_SCOPE_MAP = {
@@ -7495,80 +7475,75 @@ var REJECTED_ACTIONS = [
7495
7475
  var import_lodash7 = require("lodash");
7496
7476
 
7497
7477
  // ../commons/src/events/mocks.test.utils.ts
7498
- function withVersionFields(entity) {
7499
- return {
7500
- ...entity,
7501
- status: "active",
7502
- versions: [
7503
- {
7504
- versionId: entity.id,
7505
- effectiveFrom: "0001-01-01",
7506
- name: entity.name,
7507
- externalId: entity.externalId ?? null,
7508
- status: "active"
7509
- }
7510
- ]
7511
- };
7512
- }
7513
- var MOCK_ADMINISTRATIVE_AREAS_BASE = [
7478
+ var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = [
7514
7479
  {
7515
7480
  id: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
7516
7481
  name: "Central",
7517
7482
  parentId: null,
7483
+ validUntil: null,
7518
7484
  externalId: "ydyJb1RAy4U1"
7519
7485
  },
7520
7486
  {
7521
7487
  id: "c599b691-fd2d-45e1-abf4-d185de727fb5",
7522
7488
  name: "Sulaka",
7523
7489
  parentId: null,
7490
+ validUntil: null,
7524
7491
  externalId: "pQ8nGxWmZ2Q3"
7525
7492
  },
7526
7493
  {
7527
7494
  id: "7ef2b9c7-5e6d-49f6-ae05-656207d0fc64",
7528
7495
  name: "Pualula",
7529
7496
  parentId: null,
7497
+ validUntil: null,
7530
7498
  externalId: "Aq91DweLmT8k"
7531
7499
  },
7532
7500
  {
7533
7501
  id: "6d1a59df-988c-4021-a846-ccbc021931a7",
7534
7502
  name: "Chuminga",
7535
7503
  parentId: null,
7504
+ validUntil: null,
7536
7505
  externalId: "Rw0fYNh2Xk9a"
7537
7506
  },
7538
7507
  {
7539
7508
  id: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7540
7509
  name: "Ibombo",
7541
7510
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
7511
+ validUntil: null,
7542
7512
  externalId: "k7DsP4vbN1Qe"
7543
7513
  },
7544
7514
  {
7545
7515
  id: "27160bbd-32d1-4625-812f-860226bfb92a",
7546
7516
  name: "Isango",
7547
7517
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
7518
+ validUntil: null,
7548
7519
  externalId: "Gm3Z9eQpHw4L"
7549
7520
  },
7550
7521
  {
7551
7522
  id: "967032fd-3f81-478a-826c-30cb8fe121bd",
7552
7523
  name: "Isamba",
7553
7524
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
7525
+ validUntil: null,
7554
7526
  externalId: "sT0xVu1KqJ7r"
7555
7527
  },
7556
7528
  {
7557
7529
  id: "89a33893-b17d-481d-a26d-6461e7ac1651",
7558
7530
  name: "Itambo",
7559
7531
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
7532
+ validUntil: null,
7560
7533
  externalId: "Nq6Bv2HpL9Te"
7561
7534
  },
7562
7535
  {
7563
7536
  id: "d42ab2fe-e7ed-470e-8b31-4fb27f9b8250",
7564
7537
  name: "Ezhi",
7565
7538
  parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
7539
+ validUntil: null,
7566
7540
  externalId: "xK8cQ0ZRy5Wd"
7567
7541
  },
7568
7542
  {
7569
7543
  id: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
7570
7544
  name: "Ilanga",
7571
7545
  parentId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
7546
+ validUntil: null,
7572
7547
  externalId: "Cq4Jm1XvN8Ls"
7573
7548
  },
7574
7549
  // Villages under Ibombo (62a0ccb4-880d-4f30-8882-f256007dfff9)
@@ -7576,42 +7551,49 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
7576
7551
  id: "1d4e5f6a-7b8c-4912-8efa-345678901234",
7577
7552
  name: "Klow",
7578
7553
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7554
+ validUntil: null,
7579
7555
  externalId: "IkYcYBUcyY2"
7580
7556
  },
7581
7557
  {
7582
7558
  id: "2e5f6a7b-8c9d-4a23-8fab-456789012345",
7583
7559
  name: "Mbondo",
7584
7560
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7561
+ validUntil: null,
7585
7562
  externalId: "Qhvv5hvo3mY"
7586
7563
  },
7587
7564
  {
7588
7565
  id: "3f6a7b8c-9d0e-4b34-8abc-567890123456",
7589
7566
  name: "Ndara",
7590
7567
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7568
+ validUntil: null,
7591
7569
  externalId: "crXh068O9TR"
7592
7570
  },
7593
7571
  {
7594
7572
  id: "4a7b8c9d-0e1f-4c45-abcd-678901234567",
7595
7573
  name: "Olani",
7596
7574
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7575
+ validUntil: null,
7597
7576
  externalId: "r00It8Tvvp7"
7598
7577
  },
7599
7578
  {
7600
7579
  id: "5b8c9d0e-1f2a-4d56-bcde-789012345678",
7601
7580
  name: "Pemba",
7602
7581
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7582
+ validUntil: null,
7603
7583
  externalId: "ZnUWsbONIaH"
7604
7584
  },
7605
7585
  {
7606
7586
  id: "6c9d0e1f-2a3b-4e67-8def-890123456789",
7607
7587
  name: "Quanza",
7608
7588
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7589
+ validUntil: null,
7609
7590
  externalId: "fDZycvQTa7l"
7610
7591
  },
7611
7592
  {
7612
7593
  id: "7d0e1f2a-3b4c-4f78-8efa-901234567890",
7613
7594
  name: "Rivka",
7614
7595
  parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7596
+ validUntil: null,
7615
7597
  externalId: "KqswxCGTELa"
7616
7598
  },
7617
7599
  // Villages under Isamba (967032fd-3f81-478a-826c-30cb8fe121bd)
@@ -7619,30 +7601,35 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
7619
7601
  id: "8e1f2a3b-4c5d-4089-8fab-012345678901",
7620
7602
  name: "Mbula",
7621
7603
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
7604
+ validUntil: null,
7622
7605
  externalId: "osEbKjRc9Kg"
7623
7606
  },
7624
7607
  {
7625
7608
  id: "9f2a3b4c-5d6e-4190-8abf-123456789012",
7626
7609
  name: "Ndoki",
7627
7610
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
7611
+ validUntil: null,
7628
7612
  externalId: "aq4daBUAGr3"
7629
7613
  },
7630
7614
  {
7631
7615
  id: "0a3b4c5d-6e7f-4201-abcd-234567890123",
7632
7616
  name: "Tsanga",
7633
7617
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
7618
+ validUntil: null,
7634
7619
  externalId: "cqis6Y8trbJ"
7635
7620
  },
7636
7621
  {
7637
7622
  id: "1b4c5d6e-7f8a-4312-bcde-345678901234",
7638
7623
  name: "Waziri",
7639
7624
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
7625
+ validUntil: null,
7640
7626
  externalId: "LMijHPyyx6d"
7641
7627
  },
7642
7628
  {
7643
7629
  id: "2c5d6e7f-8a9b-4423-8def-456789012345",
7644
7630
  name: "Zimbi",
7645
7631
  parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
7632
+ validUntil: null,
7646
7633
  externalId: "pcQYbPuKGZ7"
7647
7634
  },
7648
7635
  // Villages under Itambo (89a33893-b17d-481d-a26d-6461e7ac1651)
@@ -7650,59 +7637,67 @@ var MOCK_ADMINISTRATIVE_AREAS_BASE = [
7650
7637
  id: "3d6e7f8a-9b0c-4534-8efa-567890123456",
7651
7638
  name: "Felani",
7652
7639
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
7640
+ validUntil: null,
7653
7641
  externalId: "gSqpoCGdMXp"
7654
7642
  },
7655
7643
  {
7656
7644
  id: "4e7f8a9b-0c1d-4645-8fab-678901234567",
7657
7645
  name: "Goroma",
7658
7646
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
7647
+ validUntil: null,
7659
7648
  externalId: "KvAAIaNqVrp"
7660
7649
  },
7661
7650
  {
7662
7651
  id: "5f8a9b0c-1d2e-4756-8abc-789012345678",
7663
7652
  name: "Halifu",
7664
7653
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
7654
+ validUntil: null,
7665
7655
  externalId: "qe4UnEVt1hv"
7666
7656
  },
7667
7657
  {
7668
7658
  id: "6a9b0c1d-2e3f-4867-abcd-890123456789",
7669
7659
  name: "Jabari",
7670
7660
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
7661
+ validUntil: null,
7671
7662
  externalId: "yHH9Nz4rLOt"
7672
7663
  },
7673
7664
  {
7674
7665
  id: "7b0c1d2e-3f4a-4978-bcde-901234567890",
7675
7666
  name: "Kifani",
7676
7667
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
7668
+ validUntil: null,
7677
7669
  externalId: "eSWmXIGeu1I"
7678
7670
  },
7679
7671
  {
7680
7672
  id: "8c1d2e3f-4a5b-4089-8def-012345678901",
7681
7673
  name: "Lumela",
7682
7674
  parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
7675
+ validUntil: null,
7683
7676
  externalId: "bh0b3aI1uP3"
7684
7677
  }
7685
7678
  ];
7686
- var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = MOCK_ADMINISTRATIVE_AREAS_BASE.map(withVersionFields);
7687
- var MOCK_LOCATIONS_BASE = [
7679
+ var V2_DEFAULT_MOCK_LOCATIONS = [
7688
7680
  {
7689
7681
  id: "6f6186ce-cd5f-4a5f-810a-2d99e7c4ba12",
7690
7682
  name: "Central Provincial Office",
7691
7683
  locationType: "CRVS_OFFICE",
7692
7684
  administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
7685
+ validUntil: null,
7693
7686
  externalId: "Xr3Df8WpK6Ys"
7694
7687
  },
7695
7688
  {
7696
7689
  id: "b1c2d3e4-f5a6-7890-bcde-f12345678901",
7697
7690
  name: "Central Health Post",
7698
7691
  locationType: "HEALTH_FACILITY",
7699
- administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c"
7692
+ administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
7693
+ validUntil: null
7700
7694
  },
7701
7695
  {
7702
7696
  id: "028d2c85-ca31-426d-b5d1-2cef545a4902",
7703
7697
  name: "Ibombo District Office",
7704
7698
  locationType: "CRVS_OFFICE",
7705
7699
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7700
+ validUntil: null,
7706
7701
  externalId: "Sm4Nw7GrD2Vy"
7707
7702
  },
7708
7703
  {
@@ -7710,6 +7705,7 @@ var MOCK_LOCATIONS_BASE = [
7710
7705
  name: "Isamba District Office",
7711
7706
  locationType: "CRVS_OFFICE",
7712
7707
  administrativeAreaId: "967032fd-3f81-478a-826c-30cb8fe121bd",
7708
+ validUntil: null,
7713
7709
  externalId: "Vg1Bq5XeH9Lt"
7714
7710
  },
7715
7711
  {
@@ -7717,6 +7713,7 @@ var MOCK_LOCATIONS_BASE = [
7717
7713
  name: "Isango District Office",
7718
7714
  locationType: "CRVS_OFFICE",
7719
7715
  administrativeAreaId: "27160bbd-32d1-4625-812f-860226bfb92a",
7716
+ validUntil: null,
7720
7717
  externalId: "Je7Lm2XqN9Vz"
7721
7718
  },
7722
7719
  {
@@ -7724,6 +7721,7 @@ var MOCK_LOCATIONS_BASE = [
7724
7721
  name: "Sulaka Provincial Office",
7725
7722
  locationType: "CRVS_OFFICE",
7726
7723
  administrativeAreaId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
7724
+ validUntil: null,
7727
7725
  externalId: "Ht2Wp9KcX5Qv"
7728
7726
  },
7729
7727
  {
@@ -7731,6 +7729,7 @@ var MOCK_LOCATIONS_BASE = [
7731
7729
  name: "Ilanga District Office",
7732
7730
  locationType: "CRVS_OFFICE",
7733
7731
  administrativeAreaId: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
7732
+ validUntil: null,
7734
7733
  externalId: "Yp6Ds1WqN3Xz"
7735
7734
  },
7736
7735
  {
@@ -7738,6 +7737,7 @@ var MOCK_LOCATIONS_BASE = [
7738
7737
  name: "Chamakubi Health Post",
7739
7738
  locationType: "HEALTH_FACILITY",
7740
7739
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7740
+ validUntil: null,
7741
7741
  externalId: "M1nFr8LbC2Qy"
7742
7742
  },
7743
7743
  {
@@ -7745,6 +7745,7 @@ var MOCK_LOCATIONS_BASE = [
7745
7745
  name: "Ibombo Rural Health Centre",
7746
7746
  locationType: "HEALTH_FACILITY",
7747
7747
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7748
+ validUntil: null,
7748
7749
  externalId: "bT7pV6YrW0Xc"
7749
7750
  },
7750
7751
  {
@@ -7752,6 +7753,7 @@ var MOCK_LOCATIONS_BASE = [
7752
7753
  name: "Chikobo Rural Health Centre",
7753
7754
  locationType: "HEALTH_FACILITY",
7754
7755
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7756
+ validUntil: null,
7755
7757
  externalId: "zE4qPn2SgJ5d"
7756
7758
  },
7757
7759
  {
@@ -7759,6 +7761,7 @@ var MOCK_LOCATIONS_BASE = [
7759
7761
  name: "Chilochabalenje Health Post",
7760
7762
  locationType: "HEALTH_FACILITY",
7761
7763
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7764
+ validUntil: null,
7762
7765
  externalId: "H8vDs1MqR4Uf"
7763
7766
  },
7764
7767
  {
@@ -7766,6 +7769,7 @@ var MOCK_LOCATIONS_BASE = [
7766
7769
  name: "Chipeso Rural Health Centre",
7767
7770
  locationType: "HEALTH_FACILITY",
7768
7771
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7772
+ validUntil: null,
7769
7773
  externalId: "Qw3uZ9KfX6Lm"
7770
7774
  },
7771
7775
  {
@@ -7773,6 +7777,7 @@ var MOCK_LOCATIONS_BASE = [
7773
7777
  name: "Chisamba Rural Health Centre",
7774
7778
  locationType: "HEALTH_FACILITY",
7775
7779
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7780
+ validUntil: null,
7776
7781
  externalId: "Yr0pCg8LdM2s"
7777
7782
  },
7778
7783
  {
@@ -7780,6 +7785,7 @@ var MOCK_LOCATIONS_BASE = [
7780
7785
  name: "Chitanda Rural Health Centre",
7781
7786
  locationType: "HEALTH_FACILITY",
7782
7787
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7788
+ validUntil: null,
7783
7789
  externalId: "tS9gJ4PwB1Qx"
7784
7790
  },
7785
7791
  {
@@ -7787,6 +7793,7 @@ var MOCK_LOCATIONS_BASE = [
7787
7793
  name: "Golden Valley Rural Health Centre",
7788
7794
  locationType: "HEALTH_FACILITY",
7789
7795
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7796
+ validUntil: null,
7790
7797
  externalId: "Ld7Qm3XsA8Vr"
7791
7798
  },
7792
7799
  {
@@ -7794,6 +7801,7 @@ var MOCK_LOCATIONS_BASE = [
7794
7801
  name: "Ipongo Rural Health Centre",
7795
7802
  locationType: "HEALTH_FACILITY",
7796
7803
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7804
+ validUntil: null,
7797
7805
  externalId: "kF2sW9DmH0Bt"
7798
7806
  },
7799
7807
  {
@@ -7801,6 +7809,7 @@ var MOCK_LOCATIONS_BASE = [
7801
7809
  name: "Itumbwe Health Post",
7802
7810
  locationType: "HEALTH_FACILITY",
7803
7811
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7812
+ validUntil: null,
7804
7813
  externalId: "Ue5Xb3VaC7Pq"
7805
7814
  },
7806
7815
  {
@@ -7808,6 +7817,7 @@ var MOCK_LOCATIONS_BASE = [
7808
7817
  name: "Kabangalala Rural Health Centre",
7809
7818
  locationType: "HEALTH_FACILITY",
7810
7819
  administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
7820
+ validUntil: null,
7811
7821
  externalId: "Pz8Kc1TqH6Jn"
7812
7822
  },
7813
7823
  // Village offices
@@ -7816,10 +7826,10 @@ var MOCK_LOCATIONS_BASE = [
7816
7826
  name: "Klow Village Office",
7817
7827
  locationType: "CRVS_OFFICE",
7818
7828
  administrativeAreaId: "1d4e5f6a-7b8c-4912-8efa-345678901234",
7829
+ validUntil: null,
7819
7830
  externalId: "PmAyxAJkxiJ"
7820
7831
  }
7821
7832
  ];
7822
- var V2_DEFAULT_MOCK_LOCATIONS = MOCK_LOCATIONS_BASE.map(withVersionFields);
7823
7833
  var V2_DEFAULT_MOCK_LOCATIONS_MAP = new Map(
7824
7834
  V2_DEFAULT_MOCK_LOCATIONS.map((l) => [l.id, l])
7825
7835
  );