@opencrvs/toolkit 2.0.0-rc.7f1934c → 2.0.0-rc.7f97781
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.
- package/create-countryconfig/index.js +50 -20
- package/dist/commons/api/router.d.ts +14 -3
- package/dist/commons/conditionals/conditionals.d.ts +6 -0
- package/dist/commons/events/ActionInput.d.ts +36 -36
- package/dist/commons/events/Draft.d.ts +2 -3
- package/dist/commons/events/index.d.ts +1 -0
- package/dist/conditionals/index.js +4 -0
- package/dist/events/index.js +375 -2
- package/dist/notification/index.js +367 -2
- package/opencrvs-toolkit-2.0.0-rc.7f97781.tgz +0 -0
- package/package.json +2 -2
- package/opencrvs-toolkit-2.0.0-rc.7f1934c.tgz +0 -0
package/dist/events/index.js
CHANGED
|
@@ -213,6 +213,10 @@ __export(events_exports, {
|
|
|
213
213
|
UUID: () => UUID,
|
|
214
214
|
UnassignActionInput: () => UnassignActionInput,
|
|
215
215
|
UserAuditRecordInput: () => UserAuditRecordInput,
|
|
216
|
+
V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS: () => V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS,
|
|
217
|
+
V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP: () => V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP,
|
|
218
|
+
V2_DEFAULT_MOCK_LOCATIONS: () => V2_DEFAULT_MOCK_LOCATIONS,
|
|
219
|
+
V2_DEFAULT_MOCK_LOCATIONS_MAP: () => V2_DEFAULT_MOCK_LOCATIONS_MAP,
|
|
216
220
|
ValidationConfig: () => ValidationConfig,
|
|
217
221
|
VerificationActionConfig: () => VerificationActionConfig,
|
|
218
222
|
VerificationPageConfig: () => VerificationPageConfig,
|
|
@@ -234,6 +238,7 @@ __export(events_exports, {
|
|
|
234
238
|
ageToDate: () => ageToDate,
|
|
235
239
|
aggregateActionAnnotations: () => aggregateActionAnnotations,
|
|
236
240
|
aggregateActionDeclarations: () => aggregateActionDeclarations,
|
|
241
|
+
always: () => always,
|
|
237
242
|
alwaysTrue: () => alwaysTrue,
|
|
238
243
|
and: () => and,
|
|
239
244
|
annotationActions: () => annotationActions,
|
|
@@ -4850,6 +4855,9 @@ function not(condition) {
|
|
|
4850
4855
|
function never2() {
|
|
4851
4856
|
return not(alwaysTrue());
|
|
4852
4857
|
}
|
|
4858
|
+
function always() {
|
|
4859
|
+
return defineConditional(alwaysTrue());
|
|
4860
|
+
}
|
|
4853
4861
|
function jsonFieldPath(field3) {
|
|
4854
4862
|
return [field3.$$field, ...field3.$$subfield].join("/");
|
|
4855
4863
|
}
|
|
@@ -6067,7 +6075,9 @@ var BaseActionInput = z38.object({
|
|
|
6067
6075
|
keepAssignment: z38.boolean().optional(),
|
|
6068
6076
|
keepAssignmentIfAccepted: z38.boolean().optional(),
|
|
6069
6077
|
keepAssignmentIfRejected: z38.boolean().optional(),
|
|
6070
|
-
waitFor: z38.boolean().
|
|
6078
|
+
waitFor: z38.boolean().default(true).describe(
|
|
6079
|
+
"Whether action waits for the indexing before returning. Defaults to true. Setting this to to false completes faster but might lead to stale data in the client if the client tries to read the event immediately after performing the action. Use with care."
|
|
6080
|
+
),
|
|
6071
6081
|
// For normal users, the createdAtLocation is resolved on the backend from the user's primaryOfficeId.
|
|
6072
6082
|
// @TODO: createdAtLocation should be limited to actions that system users can perform. For normal users, it should not be part of the base action.
|
|
6073
6083
|
createdAtLocation: UUID.nullish().describe(
|
|
@@ -6247,7 +6257,7 @@ var Draft = z39.object({
|
|
|
6247
6257
|
}).describe(
|
|
6248
6258
|
"A temporary storage for an action. Stored with details of the event, creator and creation time."
|
|
6249
6259
|
);
|
|
6250
|
-
var DraftInput = BaseActionInput.extend({
|
|
6260
|
+
var DraftInput = BaseActionInput.omit({ waitFor: true }).extend({
|
|
6251
6261
|
type: ActionTypes.exclude([ActionTypes.enum.DELETE]),
|
|
6252
6262
|
status: z39.enum([
|
|
6253
6263
|
ActionStatus.Requested,
|
|
@@ -10487,3 +10497,366 @@ function getFilePathsFromEvent(event2) {
|
|
|
10487
10497
|
});
|
|
10488
10498
|
return (0, import_lodash7.uniq)(filepaths);
|
|
10489
10499
|
}
|
|
10500
|
+
|
|
10501
|
+
// ../commons/src/events/mocks.test.utils.ts
|
|
10502
|
+
var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = [
|
|
10503
|
+
{
|
|
10504
|
+
id: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
10505
|
+
name: "Central",
|
|
10506
|
+
parentId: null,
|
|
10507
|
+
validUntil: null,
|
|
10508
|
+
externalId: "ydyJb1RAy4U1"
|
|
10509
|
+
},
|
|
10510
|
+
{
|
|
10511
|
+
id: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
10512
|
+
name: "Sulaka",
|
|
10513
|
+
parentId: null,
|
|
10514
|
+
validUntil: null,
|
|
10515
|
+
externalId: "pQ8nGxWmZ2Q3"
|
|
10516
|
+
},
|
|
10517
|
+
{
|
|
10518
|
+
id: "7ef2b9c7-5e6d-49f6-ae05-656207d0fc64",
|
|
10519
|
+
name: "Pualula",
|
|
10520
|
+
parentId: null,
|
|
10521
|
+
validUntil: null,
|
|
10522
|
+
externalId: "Aq91DweLmT8k"
|
|
10523
|
+
},
|
|
10524
|
+
{
|
|
10525
|
+
id: "6d1a59df-988c-4021-a846-ccbc021931a7",
|
|
10526
|
+
name: "Chuminga",
|
|
10527
|
+
parentId: null,
|
|
10528
|
+
validUntil: null,
|
|
10529
|
+
externalId: "Rw0fYNh2Xk9a"
|
|
10530
|
+
},
|
|
10531
|
+
{
|
|
10532
|
+
id: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10533
|
+
name: "Ibombo",
|
|
10534
|
+
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
10535
|
+
validUntil: null,
|
|
10536
|
+
externalId: "k7DsP4vbN1Qe"
|
|
10537
|
+
},
|
|
10538
|
+
{
|
|
10539
|
+
id: "27160bbd-32d1-4625-812f-860226bfb92a",
|
|
10540
|
+
name: "Isango",
|
|
10541
|
+
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
10542
|
+
validUntil: null,
|
|
10543
|
+
externalId: "Gm3Z9eQpHw4L"
|
|
10544
|
+
},
|
|
10545
|
+
{
|
|
10546
|
+
id: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
10547
|
+
name: "Isamba",
|
|
10548
|
+
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
10549
|
+
validUntil: null,
|
|
10550
|
+
externalId: "sT0xVu1KqJ7r"
|
|
10551
|
+
},
|
|
10552
|
+
{
|
|
10553
|
+
id: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
10554
|
+
name: "Itambo",
|
|
10555
|
+
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
10556
|
+
validUntil: null,
|
|
10557
|
+
externalId: "Nq6Bv2HpL9Te"
|
|
10558
|
+
},
|
|
10559
|
+
{
|
|
10560
|
+
id: "d42ab2fe-e7ed-470e-8b31-4fb27f9b8250",
|
|
10561
|
+
name: "Ezhi",
|
|
10562
|
+
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
10563
|
+
validUntil: null,
|
|
10564
|
+
externalId: "xK8cQ0ZRy5Wd"
|
|
10565
|
+
},
|
|
10566
|
+
{
|
|
10567
|
+
id: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
|
|
10568
|
+
name: "Ilanga",
|
|
10569
|
+
parentId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
10570
|
+
validUntil: null,
|
|
10571
|
+
externalId: "Cq4Jm1XvN8Ls"
|
|
10572
|
+
},
|
|
10573
|
+
// Villages under Ibombo (62a0ccb4-880d-4f30-8882-f256007dfff9)
|
|
10574
|
+
{
|
|
10575
|
+
id: "1d4e5f6a-7b8c-4912-8efa-345678901234",
|
|
10576
|
+
name: "Klow",
|
|
10577
|
+
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10578
|
+
validUntil: null,
|
|
10579
|
+
externalId: "IkYcYBUcyY2"
|
|
10580
|
+
},
|
|
10581
|
+
{
|
|
10582
|
+
id: "2e5f6a7b-8c9d-4a23-8fab-456789012345",
|
|
10583
|
+
name: "Mbondo",
|
|
10584
|
+
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10585
|
+
validUntil: null,
|
|
10586
|
+
externalId: "Qhvv5hvo3mY"
|
|
10587
|
+
},
|
|
10588
|
+
{
|
|
10589
|
+
id: "3f6a7b8c-9d0e-4b34-8abc-567890123456",
|
|
10590
|
+
name: "Ndara",
|
|
10591
|
+
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10592
|
+
validUntil: null,
|
|
10593
|
+
externalId: "crXh068O9TR"
|
|
10594
|
+
},
|
|
10595
|
+
{
|
|
10596
|
+
id: "4a7b8c9d-0e1f-4c45-abcd-678901234567",
|
|
10597
|
+
name: "Olani",
|
|
10598
|
+
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10599
|
+
validUntil: null,
|
|
10600
|
+
externalId: "r00It8Tvvp7"
|
|
10601
|
+
},
|
|
10602
|
+
{
|
|
10603
|
+
id: "5b8c9d0e-1f2a-4d56-bcde-789012345678",
|
|
10604
|
+
name: "Pemba",
|
|
10605
|
+
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10606
|
+
validUntil: null,
|
|
10607
|
+
externalId: "ZnUWsbONIaH"
|
|
10608
|
+
},
|
|
10609
|
+
{
|
|
10610
|
+
id: "6c9d0e1f-2a3b-4e67-8def-890123456789",
|
|
10611
|
+
name: "Quanza",
|
|
10612
|
+
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10613
|
+
validUntil: null,
|
|
10614
|
+
externalId: "fDZycvQTa7l"
|
|
10615
|
+
},
|
|
10616
|
+
{
|
|
10617
|
+
id: "7d0e1f2a-3b4c-4f78-8efa-901234567890",
|
|
10618
|
+
name: "Rivka",
|
|
10619
|
+
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10620
|
+
validUntil: null,
|
|
10621
|
+
externalId: "KqswxCGTELa"
|
|
10622
|
+
},
|
|
10623
|
+
// Villages under Isamba (967032fd-3f81-478a-826c-30cb8fe121bd)
|
|
10624
|
+
{
|
|
10625
|
+
id: "8e1f2a3b-4c5d-4089-8fab-012345678901",
|
|
10626
|
+
name: "Mbula",
|
|
10627
|
+
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
10628
|
+
validUntil: null,
|
|
10629
|
+
externalId: "osEbKjRc9Kg"
|
|
10630
|
+
},
|
|
10631
|
+
{
|
|
10632
|
+
id: "9f2a3b4c-5d6e-4190-8abf-123456789012",
|
|
10633
|
+
name: "Ndoki",
|
|
10634
|
+
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
10635
|
+
validUntil: null,
|
|
10636
|
+
externalId: "aq4daBUAGr3"
|
|
10637
|
+
},
|
|
10638
|
+
{
|
|
10639
|
+
id: "0a3b4c5d-6e7f-4201-abcd-234567890123",
|
|
10640
|
+
name: "Tsanga",
|
|
10641
|
+
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
10642
|
+
validUntil: null,
|
|
10643
|
+
externalId: "cqis6Y8trbJ"
|
|
10644
|
+
},
|
|
10645
|
+
{
|
|
10646
|
+
id: "1b4c5d6e-7f8a-4312-bcde-345678901234",
|
|
10647
|
+
name: "Waziri",
|
|
10648
|
+
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
10649
|
+
validUntil: null,
|
|
10650
|
+
externalId: "LMijHPyyx6d"
|
|
10651
|
+
},
|
|
10652
|
+
{
|
|
10653
|
+
id: "2c5d6e7f-8a9b-4423-8def-456789012345",
|
|
10654
|
+
name: "Zimbi",
|
|
10655
|
+
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
10656
|
+
validUntil: null,
|
|
10657
|
+
externalId: "pcQYbPuKGZ7"
|
|
10658
|
+
},
|
|
10659
|
+
// Villages under Itambo (89a33893-b17d-481d-a26d-6461e7ac1651)
|
|
10660
|
+
{
|
|
10661
|
+
id: "3d6e7f8a-9b0c-4534-8efa-567890123456",
|
|
10662
|
+
name: "Felani",
|
|
10663
|
+
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
10664
|
+
validUntil: null,
|
|
10665
|
+
externalId: "gSqpoCGdMXp"
|
|
10666
|
+
},
|
|
10667
|
+
{
|
|
10668
|
+
id: "4e7f8a9b-0c1d-4645-8fab-678901234567",
|
|
10669
|
+
name: "Goroma",
|
|
10670
|
+
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
10671
|
+
validUntil: null,
|
|
10672
|
+
externalId: "KvAAIaNqVrp"
|
|
10673
|
+
},
|
|
10674
|
+
{
|
|
10675
|
+
id: "5f8a9b0c-1d2e-4756-8abc-789012345678",
|
|
10676
|
+
name: "Halifu",
|
|
10677
|
+
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
10678
|
+
validUntil: null,
|
|
10679
|
+
externalId: "qe4UnEVt1hv"
|
|
10680
|
+
},
|
|
10681
|
+
{
|
|
10682
|
+
id: "6a9b0c1d-2e3f-4867-abcd-890123456789",
|
|
10683
|
+
name: "Jabari",
|
|
10684
|
+
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
10685
|
+
validUntil: null,
|
|
10686
|
+
externalId: "yHH9Nz4rLOt"
|
|
10687
|
+
},
|
|
10688
|
+
{
|
|
10689
|
+
id: "7b0c1d2e-3f4a-4978-bcde-901234567890",
|
|
10690
|
+
name: "Kifani",
|
|
10691
|
+
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
10692
|
+
validUntil: null,
|
|
10693
|
+
externalId: "eSWmXIGeu1I"
|
|
10694
|
+
},
|
|
10695
|
+
{
|
|
10696
|
+
id: "8c1d2e3f-4a5b-4089-8def-012345678901",
|
|
10697
|
+
name: "Lumela",
|
|
10698
|
+
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
10699
|
+
validUntil: null,
|
|
10700
|
+
externalId: "bh0b3aI1uP3"
|
|
10701
|
+
}
|
|
10702
|
+
];
|
|
10703
|
+
var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
10704
|
+
{
|
|
10705
|
+
id: "6f6186ce-cd5f-4a5f-810a-2d99e7c4ba12",
|
|
10706
|
+
name: "Central Provincial Office",
|
|
10707
|
+
locationType: "CRVS_OFFICE",
|
|
10708
|
+
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
10709
|
+
validUntil: null,
|
|
10710
|
+
externalId: "Xr3Df8WpK6Ys"
|
|
10711
|
+
},
|
|
10712
|
+
{
|
|
10713
|
+
id: "b1c2d3e4-f5a6-7890-bcde-f12345678901",
|
|
10714
|
+
name: "Central Health Post",
|
|
10715
|
+
locationType: "HEALTH_FACILITY",
|
|
10716
|
+
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
10717
|
+
validUntil: null
|
|
10718
|
+
},
|
|
10719
|
+
{
|
|
10720
|
+
id: "028d2c85-ca31-426d-b5d1-2cef545a4902",
|
|
10721
|
+
name: "Ibombo District Office",
|
|
10722
|
+
locationType: "CRVS_OFFICE",
|
|
10723
|
+
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10724
|
+
validUntil: null,
|
|
10725
|
+
externalId: "Sm4Nw7GrD2Vy"
|
|
10726
|
+
},
|
|
10727
|
+
{
|
|
10728
|
+
id: "62a0ccb4-4f30-4f30-8882-f256007dff9f",
|
|
10729
|
+
name: "Isamba District Office",
|
|
10730
|
+
locationType: "CRVS_OFFICE",
|
|
10731
|
+
administrativeAreaId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
10732
|
+
validUntil: null,
|
|
10733
|
+
externalId: "Vg1Bq5XeH9Lt"
|
|
10734
|
+
},
|
|
10735
|
+
{
|
|
10736
|
+
id: "954c93e1-13f7-4435-bb82-35e0e215e07d",
|
|
10737
|
+
name: "Isango District Office",
|
|
10738
|
+
locationType: "CRVS_OFFICE",
|
|
10739
|
+
administrativeAreaId: "27160bbd-32d1-4625-812f-860226bfb92a",
|
|
10740
|
+
validUntil: null,
|
|
10741
|
+
externalId: "Je7Lm2XqN9Vz"
|
|
10742
|
+
},
|
|
10743
|
+
{
|
|
10744
|
+
id: "2884f5b9-17b4-49ce-bf4d-f538228935df",
|
|
10745
|
+
name: "Sulaka Provincial Office",
|
|
10746
|
+
locationType: "CRVS_OFFICE",
|
|
10747
|
+
administrativeAreaId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
10748
|
+
validUntil: null,
|
|
10749
|
+
externalId: "Ht2Wp9KcX5Qv"
|
|
10750
|
+
},
|
|
10751
|
+
{
|
|
10752
|
+
id: "030358c6-54af-44be-821b-8e4af963a49c",
|
|
10753
|
+
name: "Ilanga District Office",
|
|
10754
|
+
locationType: "CRVS_OFFICE",
|
|
10755
|
+
administrativeAreaId: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
|
|
10756
|
+
validUntil: null,
|
|
10757
|
+
externalId: "Yp6Ds1WqN3Xz"
|
|
10758
|
+
},
|
|
10759
|
+
{
|
|
10760
|
+
id: "423d000f-101b-47c0-8b86-21a908067cee",
|
|
10761
|
+
name: "Chamakubi Health Post",
|
|
10762
|
+
locationType: "HEALTH_FACILITY",
|
|
10763
|
+
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10764
|
+
validUntil: null,
|
|
10765
|
+
externalId: "M1nFr8LbC2Qy"
|
|
10766
|
+
},
|
|
10767
|
+
{
|
|
10768
|
+
id: "4d3279be-d026-420c-88f7-f0a4ae986973",
|
|
10769
|
+
name: "Ibombo Rural Health Centre",
|
|
10770
|
+
locationType: "HEALTH_FACILITY",
|
|
10771
|
+
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10772
|
+
validUntil: null,
|
|
10773
|
+
externalId: "bT7pV6YrW0Xc"
|
|
10774
|
+
},
|
|
10775
|
+
{
|
|
10776
|
+
id: "190902f4-1d77-476a-8947-41145af1db7d",
|
|
10777
|
+
name: "Chikobo Rural Health Centre",
|
|
10778
|
+
locationType: "HEALTH_FACILITY",
|
|
10779
|
+
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10780
|
+
validUntil: null,
|
|
10781
|
+
externalId: "zE4qPn2SgJ5d"
|
|
10782
|
+
},
|
|
10783
|
+
{
|
|
10784
|
+
id: "f5ecbd9b-a01e-4a65-910e-70e86ab41b71",
|
|
10785
|
+
name: "Chilochabalenje Health Post",
|
|
10786
|
+
locationType: "HEALTH_FACILITY",
|
|
10787
|
+
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10788
|
+
validUntil: null,
|
|
10789
|
+
externalId: "H8vDs1MqR4Uf"
|
|
10790
|
+
},
|
|
10791
|
+
{
|
|
10792
|
+
id: "dbfc178f-7295-4b90-b28d-111c95b03127",
|
|
10793
|
+
name: "Chipeso Rural Health Centre",
|
|
10794
|
+
locationType: "HEALTH_FACILITY",
|
|
10795
|
+
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10796
|
+
validUntil: null,
|
|
10797
|
+
externalId: "Qw3uZ9KfX6Lm"
|
|
10798
|
+
},
|
|
10799
|
+
{
|
|
10800
|
+
id: "09862bfe-c7ac-46cd-987b-668681533c80",
|
|
10801
|
+
name: "Chisamba Rural Health Centre",
|
|
10802
|
+
locationType: "HEALTH_FACILITY",
|
|
10803
|
+
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10804
|
+
validUntil: null,
|
|
10805
|
+
externalId: "Yr0pCg8LdM2s"
|
|
10806
|
+
},
|
|
10807
|
+
{
|
|
10808
|
+
id: "834ce389-e95b-4fb0-96a0-33e9ab323059",
|
|
10809
|
+
name: "Chitanda Rural Health Centre",
|
|
10810
|
+
locationType: "HEALTH_FACILITY",
|
|
10811
|
+
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10812
|
+
validUntil: null,
|
|
10813
|
+
externalId: "tS9gJ4PwB1Qx"
|
|
10814
|
+
},
|
|
10815
|
+
{
|
|
10816
|
+
id: "0431c433-6062-4a4c-aee9-25271aec61ee",
|
|
10817
|
+
name: "Golden Valley Rural Health Centre",
|
|
10818
|
+
locationType: "HEALTH_FACILITY",
|
|
10819
|
+
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10820
|
+
validUntil: null,
|
|
10821
|
+
externalId: "Ld7Qm3XsA8Vr"
|
|
10822
|
+
},
|
|
10823
|
+
{
|
|
10824
|
+
id: "bc84d0b6-7ba7-480d-a339-5d9920d90eb2",
|
|
10825
|
+
name: "Ipongo Rural Health Centre",
|
|
10826
|
+
locationType: "HEALTH_FACILITY",
|
|
10827
|
+
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10828
|
+
validUntil: null,
|
|
10829
|
+
externalId: "kF2sW9DmH0Bt"
|
|
10830
|
+
},
|
|
10831
|
+
{
|
|
10832
|
+
id: "4cf1f53b-b730-41d2-8649-dff7eeed970d",
|
|
10833
|
+
name: "Itumbwe Health Post",
|
|
10834
|
+
locationType: "HEALTH_FACILITY",
|
|
10835
|
+
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10836
|
+
validUntil: null,
|
|
10837
|
+
externalId: "Ue5Xb3VaC7Pq"
|
|
10838
|
+
},
|
|
10839
|
+
{
|
|
10840
|
+
id: "4b3676cb-9355-4942-9eb9-2ce46acaf0e0",
|
|
10841
|
+
name: "Kabangalala Rural Health Centre",
|
|
10842
|
+
locationType: "HEALTH_FACILITY",
|
|
10843
|
+
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
10844
|
+
validUntil: null,
|
|
10845
|
+
externalId: "Pz8Kc1TqH6Jn"
|
|
10846
|
+
},
|
|
10847
|
+
// Village offices
|
|
10848
|
+
{
|
|
10849
|
+
id: "1f4a5b6c-7d8e-4312-8abc-345678901234",
|
|
10850
|
+
name: "Klow Village Office",
|
|
10851
|
+
locationType: "CRVS_OFFICE",
|
|
10852
|
+
administrativeAreaId: "1d4e5f6a-7b8c-4912-8efa-345678901234",
|
|
10853
|
+
validUntil: null,
|
|
10854
|
+
externalId: "PmAyxAJkxiJ"
|
|
10855
|
+
}
|
|
10856
|
+
];
|
|
10857
|
+
var V2_DEFAULT_MOCK_LOCATIONS_MAP = new Map(
|
|
10858
|
+
V2_DEFAULT_MOCK_LOCATIONS.map((l) => [l.id, l])
|
|
10859
|
+
);
|
|
10860
|
+
var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS_MAP = new Map(
|
|
10861
|
+
V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS.map((a) => [a.id, a])
|
|
10862
|
+
);
|