@opencrvs/toolkit 2.1.0-rc.05eb1de → 2.1.0-rc.06707c1
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/dist/application-config/index.js +2 -1
- package/dist/cli.js +0 -48
- package/dist/commons/api/router.d.ts +3293 -3310
- package/dist/commons/application-config/index.d.ts +6 -6
- package/dist/commons/conditionals/conditionals.d.ts +259 -2102
- package/dist/commons/events/ActionConfig.d.ts +112 -105
- package/dist/commons/events/ActionDocument.d.ts +119 -119
- package/dist/commons/events/ActionInput.d.ts +0 -6
- package/dist/commons/events/ActionType.d.ts +62 -62
- package/dist/commons/events/AdvancedSearchConfig.d.ts +507 -507
- package/dist/commons/events/AuditLog.d.ts +43 -43
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/Conditional.d.ts +3 -3
- package/dist/commons/events/CountryConfigQueryInput.d.ts +590 -590
- package/dist/commons/events/Draft.d.ts +37 -37
- package/dist/commons/events/DynamicFieldValue.d.ts +9 -9
- package/dist/commons/events/EventConfig.d.ts +5 -5
- package/dist/commons/events/EventDocument.d.ts +48 -48
- package/dist/commons/events/EventIndex.d.ts +62 -62
- package/dist/commons/events/EventMetadata.d.ts +40 -40
- package/dist/commons/events/FieldConfig.d.ts +336 -336
- package/dist/commons/events/FieldType.d.ts +51 -51
- package/dist/commons/events/FieldTypeMapping.d.ts +100 -100
- package/dist/commons/events/FieldValue.d.ts +12 -12
- package/dist/commons/events/Flag.d.ts +15 -15
- package/dist/commons/events/TemplateConfig.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +40 -40
- package/dist/commons/events/WorkqueueConfig.d.ts +826 -826
- package/dist/commons/events/deduplication.d.ts +1 -1
- package/dist/commons/events/event.d.ts +2 -2
- package/dist/commons/events/field.d.ts +78 -895
- package/dist/commons/events/locations.d.ts +96 -6
- package/dist/commons/events/mocks.test.utils.d.ts +18 -4
- package/dist/commons/events/scopes.d.ts +4 -4
- package/dist/commons/events/state/index.d.ts +17 -17
- package/dist/commons/events/state/utils.d.ts +7 -7
- package/dist/commons/events/test.utils.d.ts +40 -43
- package/dist/commons/events/utils.d.ts +122 -114
- package/dist/commons/notification/UserNotifications.d.ts +10 -10
- package/dist/environment/derived-variables.d.ts +119 -131
- package/dist/environment/derived-variables.d.ts.map +1 -1
- package/dist/environment/derived-variables.js +0 -14
- package/dist/environment/logger.d.ts.map +1 -1
- package/dist/environment/questions.d.ts +75 -74
- package/dist/environment/questions.d.ts.map +1 -1
- package/dist/environment/setup-environment.js +8 -28
- package/dist/environment/utils.d.ts +1 -1
- package/dist/events/deduplication.d.ts +1 -1
- package/dist/events/index.js +91 -70
- package/dist/migrations/v2.0/migrate-application-config-url.js +4 -3
- package/dist/notification/index.js +63 -68
- package/dist/scopes/index.d.ts +146 -146
- package/dist/templates/charts-values/dependencies/values.yaml +0 -3
- package/dist/templates/charts-values/opencrvs-services/values.yaml +0 -4
- package/opencrvs-toolkit-2.1.0-rc.06707c1.tgz +0 -0
- package/package.json +5 -5
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-2.1.0-rc.05eb1de.tgz +0 -0
|
@@ -1216,9 +1216,10 @@ 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. */
|
|
1219
1220
|
content: z14.object({
|
|
1220
1221
|
comment: z14.string().describe("Comment for the edit action.").optional()
|
|
1221
|
-
})
|
|
1222
|
+
}).optional()
|
|
1222
1223
|
}).shape
|
|
1223
1224
|
);
|
|
1224
1225
|
var PrintContent = z14.object({
|
|
@@ -2694,6 +2695,9 @@ var ActionConfigBase = z24.object({
|
|
|
2694
2695
|
var DeclarationActionBase = ActionConfigBase.extend({
|
|
2695
2696
|
deduplication: DeduplicationConfig.optional()
|
|
2696
2697
|
});
|
|
2698
|
+
var actionConfirmationForm = z24.array(FieldConfig).optional().describe(
|
|
2699
|
+
"Fields rendered on the action confirmation dialog. Submitted values are stored in the action annotation and shown in the audit history."
|
|
2700
|
+
);
|
|
2697
2701
|
var ReadActionConfig = ActionConfigBase.extend(
|
|
2698
2702
|
z24.object({
|
|
2699
2703
|
type: z24.literal(ActionType.READ),
|
|
@@ -2705,7 +2709,8 @@ var ReadActionConfig = ActionConfigBase.extend(
|
|
|
2705
2709
|
);
|
|
2706
2710
|
var NotifyConfig = ActionConfigBase.extend(
|
|
2707
2711
|
z24.object({
|
|
2708
|
-
type: z24.literal(ActionType.NOTIFY)
|
|
2712
|
+
type: z24.literal(ActionType.NOTIFY),
|
|
2713
|
+
form: actionConfirmationForm
|
|
2709
2714
|
}).shape
|
|
2710
2715
|
);
|
|
2711
2716
|
var DuplicateDetectedConfig = ActionConfigBase.extend(
|
|
@@ -2760,6 +2765,7 @@ var DeclareConfig = DeclarationActionBase.extend(
|
|
|
2760
2765
|
review: DeclarationReviewConfig.describe(
|
|
2761
2766
|
"Configuration of the review page fields."
|
|
2762
2767
|
),
|
|
2768
|
+
form: actionConfirmationForm,
|
|
2763
2769
|
dialogCopy: z24.object({
|
|
2764
2770
|
notify: TranslationConfig.describe(
|
|
2765
2771
|
"Confirmation text for the notify action"
|
|
@@ -2775,7 +2781,8 @@ var DeclareConfig = DeclarationActionBase.extend(
|
|
|
2775
2781
|
);
|
|
2776
2782
|
var ArchiveConfig = ActionConfigBase.extend(
|
|
2777
2783
|
z24.object({
|
|
2778
|
-
type: z24.literal(ActionType.ARCHIVE)
|
|
2784
|
+
type: z24.literal(ActionType.ARCHIVE),
|
|
2785
|
+
form: actionConfirmationForm
|
|
2779
2786
|
}).shape
|
|
2780
2787
|
);
|
|
2781
2788
|
var UnarchiveConfig = ActionConfigBase.extend(
|
|
@@ -2801,12 +2808,14 @@ var EditActionConfig = ActionConfigBase.extend(
|
|
|
2801
2808
|
);
|
|
2802
2809
|
var RejectConfig = ActionConfigBase.extend(
|
|
2803
2810
|
z24.object({
|
|
2804
|
-
type: z24.literal(ActionType.REJECT)
|
|
2811
|
+
type: z24.literal(ActionType.REJECT),
|
|
2812
|
+
form: actionConfirmationForm
|
|
2805
2813
|
}).shape
|
|
2806
2814
|
);
|
|
2807
2815
|
var RegisterConfig = DeclarationActionBase.extend(
|
|
2808
2816
|
z24.object({
|
|
2809
|
-
type: z24.literal(ActionType.REGISTER)
|
|
2817
|
+
type: z24.literal(ActionType.REGISTER),
|
|
2818
|
+
form: actionConfirmationForm
|
|
2810
2819
|
}).shape
|
|
2811
2820
|
);
|
|
2812
2821
|
var PrintCertificateActionConfig = ActionConfigBase.extend(
|
|
@@ -3326,13 +3335,9 @@ var getActionAnnotationFields = (actionConfig) => {
|
|
|
3326
3335
|
if (actionConfig.type === ActionType.PRINT_CERTIFICATE) {
|
|
3327
3336
|
return actionConfig.printForm.pages.flatMap(({ fields }) => fields);
|
|
3328
3337
|
}
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
if ("review" in actionConfig && actionConfig.review != null) {
|
|
3333
|
-
return actionConfig.review.fields;
|
|
3334
|
-
}
|
|
3335
|
-
return [];
|
|
3338
|
+
const reviewFields = "review" in actionConfig && actionConfig.review != null ? actionConfig.review.fields : [];
|
|
3339
|
+
const formFields = "form" in actionConfig && actionConfig.form != null ? actionConfig.form : [];
|
|
3340
|
+
return [...reviewFields, ...formFields];
|
|
3336
3341
|
};
|
|
3337
3342
|
function getAllAnnotationFields(config) {
|
|
3338
3343
|
return (0, import_lodash.flattenDeep)(config.actions.map(getActionAnnotationFields));
|
|
@@ -4648,10 +4653,7 @@ var DeclareActionInput = BaseActionInput.extend(
|
|
|
4648
4653
|
);
|
|
4649
4654
|
var EditActionInput = BaseActionInput.extend(
|
|
4650
4655
|
z38.object({
|
|
4651
|
-
type: z38.literal(ActionType.EDIT).default(ActionType.EDIT)
|
|
4652
|
-
content: z38.object({
|
|
4653
|
-
comment: z38.string().describe("Comment for the edit action.").optional()
|
|
4654
|
-
})
|
|
4656
|
+
type: z38.literal(ActionType.EDIT).default(ActionType.EDIT)
|
|
4655
4657
|
}).shape
|
|
4656
4658
|
);
|
|
4657
4659
|
var PrintCertificateActionInput = BaseActionInput.extend(
|
|
@@ -7357,21 +7359,44 @@ var LocationTypeV1 = z43.enum([
|
|
|
7357
7359
|
"CRVS_OFFICE",
|
|
7358
7360
|
"HEALTH_FACILITY"
|
|
7359
7361
|
]);
|
|
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
|
+
});
|
|
7360
7370
|
var AdministrativeArea = z43.object({
|
|
7361
7371
|
id: UUID,
|
|
7362
7372
|
name: z43.string(),
|
|
7363
7373
|
externalId: z43.string().nullish(),
|
|
7364
7374
|
parentId: UUID.nullable(),
|
|
7365
|
-
|
|
7375
|
+
status: LocationStatus,
|
|
7376
|
+
versions: z43.array(LocationVersion)
|
|
7366
7377
|
});
|
|
7367
7378
|
var Location = z43.object({
|
|
7368
7379
|
id: UUID,
|
|
7369
7380
|
name: z43.string(),
|
|
7370
7381
|
externalId: z43.string().nullish(),
|
|
7371
7382
|
administrativeAreaId: UUID.nullable(),
|
|
7372
|
-
|
|
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(),
|
|
7373
7392
|
locationType: z43.string().nullable()
|
|
7374
7393
|
});
|
|
7394
|
+
var SetAdministrativeAreaPayload = z43.object({
|
|
7395
|
+
id: UUID,
|
|
7396
|
+
name: z43.string(),
|
|
7397
|
+
externalId: z43.string().nullish(),
|
|
7398
|
+
parentId: UUID.nullable()
|
|
7399
|
+
});
|
|
7375
7400
|
|
|
7376
7401
|
// ../commons/src/events/scopes.ts
|
|
7377
7402
|
var ACTION_SCOPE_MAP = {
|
|
@@ -7470,75 +7495,80 @@ var REJECTED_ACTIONS = [
|
|
|
7470
7495
|
var import_lodash7 = require("lodash");
|
|
7471
7496
|
|
|
7472
7497
|
// ../commons/src/events/mocks.test.utils.ts
|
|
7473
|
-
|
|
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 = [
|
|
7474
7514
|
{
|
|
7475
7515
|
id: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7476
7516
|
name: "Central",
|
|
7477
7517
|
parentId: null,
|
|
7478
|
-
validUntil: null,
|
|
7479
7518
|
externalId: "ydyJb1RAy4U1"
|
|
7480
7519
|
},
|
|
7481
7520
|
{
|
|
7482
7521
|
id: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
7483
7522
|
name: "Sulaka",
|
|
7484
7523
|
parentId: null,
|
|
7485
|
-
validUntil: null,
|
|
7486
7524
|
externalId: "pQ8nGxWmZ2Q3"
|
|
7487
7525
|
},
|
|
7488
7526
|
{
|
|
7489
7527
|
id: "7ef2b9c7-5e6d-49f6-ae05-656207d0fc64",
|
|
7490
7528
|
name: "Pualula",
|
|
7491
7529
|
parentId: null,
|
|
7492
|
-
validUntil: null,
|
|
7493
7530
|
externalId: "Aq91DweLmT8k"
|
|
7494
7531
|
},
|
|
7495
7532
|
{
|
|
7496
7533
|
id: "6d1a59df-988c-4021-a846-ccbc021931a7",
|
|
7497
7534
|
name: "Chuminga",
|
|
7498
7535
|
parentId: null,
|
|
7499
|
-
validUntil: null,
|
|
7500
7536
|
externalId: "Rw0fYNh2Xk9a"
|
|
7501
7537
|
},
|
|
7502
7538
|
{
|
|
7503
7539
|
id: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7504
7540
|
name: "Ibombo",
|
|
7505
7541
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7506
|
-
validUntil: null,
|
|
7507
7542
|
externalId: "k7DsP4vbN1Qe"
|
|
7508
7543
|
},
|
|
7509
7544
|
{
|
|
7510
7545
|
id: "27160bbd-32d1-4625-812f-860226bfb92a",
|
|
7511
7546
|
name: "Isango",
|
|
7512
7547
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7513
|
-
validUntil: null,
|
|
7514
7548
|
externalId: "Gm3Z9eQpHw4L"
|
|
7515
7549
|
},
|
|
7516
7550
|
{
|
|
7517
7551
|
id: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7518
7552
|
name: "Isamba",
|
|
7519
7553
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7520
|
-
validUntil: null,
|
|
7521
7554
|
externalId: "sT0xVu1KqJ7r"
|
|
7522
7555
|
},
|
|
7523
7556
|
{
|
|
7524
7557
|
id: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7525
7558
|
name: "Itambo",
|
|
7526
7559
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7527
|
-
validUntil: null,
|
|
7528
7560
|
externalId: "Nq6Bv2HpL9Te"
|
|
7529
7561
|
},
|
|
7530
7562
|
{
|
|
7531
7563
|
id: "d42ab2fe-e7ed-470e-8b31-4fb27f9b8250",
|
|
7532
7564
|
name: "Ezhi",
|
|
7533
7565
|
parentId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7534
|
-
validUntil: null,
|
|
7535
7566
|
externalId: "xK8cQ0ZRy5Wd"
|
|
7536
7567
|
},
|
|
7537
7568
|
{
|
|
7538
7569
|
id: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
|
|
7539
7570
|
name: "Ilanga",
|
|
7540
7571
|
parentId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
7541
|
-
validUntil: null,
|
|
7542
7572
|
externalId: "Cq4Jm1XvN8Ls"
|
|
7543
7573
|
},
|
|
7544
7574
|
// Villages under Ibombo (62a0ccb4-880d-4f30-8882-f256007dfff9)
|
|
@@ -7546,49 +7576,42 @@ var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = [
|
|
|
7546
7576
|
id: "1d4e5f6a-7b8c-4912-8efa-345678901234",
|
|
7547
7577
|
name: "Klow",
|
|
7548
7578
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7549
|
-
validUntil: null,
|
|
7550
7579
|
externalId: "IkYcYBUcyY2"
|
|
7551
7580
|
},
|
|
7552
7581
|
{
|
|
7553
7582
|
id: "2e5f6a7b-8c9d-4a23-8fab-456789012345",
|
|
7554
7583
|
name: "Mbondo",
|
|
7555
7584
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7556
|
-
validUntil: null,
|
|
7557
7585
|
externalId: "Qhvv5hvo3mY"
|
|
7558
7586
|
},
|
|
7559
7587
|
{
|
|
7560
7588
|
id: "3f6a7b8c-9d0e-4b34-8abc-567890123456",
|
|
7561
7589
|
name: "Ndara",
|
|
7562
7590
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7563
|
-
validUntil: null,
|
|
7564
7591
|
externalId: "crXh068O9TR"
|
|
7565
7592
|
},
|
|
7566
7593
|
{
|
|
7567
7594
|
id: "4a7b8c9d-0e1f-4c45-abcd-678901234567",
|
|
7568
7595
|
name: "Olani",
|
|
7569
7596
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7570
|
-
validUntil: null,
|
|
7571
7597
|
externalId: "r00It8Tvvp7"
|
|
7572
7598
|
},
|
|
7573
7599
|
{
|
|
7574
7600
|
id: "5b8c9d0e-1f2a-4d56-bcde-789012345678",
|
|
7575
7601
|
name: "Pemba",
|
|
7576
7602
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7577
|
-
validUntil: null,
|
|
7578
7603
|
externalId: "ZnUWsbONIaH"
|
|
7579
7604
|
},
|
|
7580
7605
|
{
|
|
7581
7606
|
id: "6c9d0e1f-2a3b-4e67-8def-890123456789",
|
|
7582
7607
|
name: "Quanza",
|
|
7583
7608
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7584
|
-
validUntil: null,
|
|
7585
7609
|
externalId: "fDZycvQTa7l"
|
|
7586
7610
|
},
|
|
7587
7611
|
{
|
|
7588
7612
|
id: "7d0e1f2a-3b4c-4f78-8efa-901234567890",
|
|
7589
7613
|
name: "Rivka",
|
|
7590
7614
|
parentId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7591
|
-
validUntil: null,
|
|
7592
7615
|
externalId: "KqswxCGTELa"
|
|
7593
7616
|
},
|
|
7594
7617
|
// Villages under Isamba (967032fd-3f81-478a-826c-30cb8fe121bd)
|
|
@@ -7596,35 +7619,30 @@ var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = [
|
|
|
7596
7619
|
id: "8e1f2a3b-4c5d-4089-8fab-012345678901",
|
|
7597
7620
|
name: "Mbula",
|
|
7598
7621
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7599
|
-
validUntil: null,
|
|
7600
7622
|
externalId: "osEbKjRc9Kg"
|
|
7601
7623
|
},
|
|
7602
7624
|
{
|
|
7603
7625
|
id: "9f2a3b4c-5d6e-4190-8abf-123456789012",
|
|
7604
7626
|
name: "Ndoki",
|
|
7605
7627
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7606
|
-
validUntil: null,
|
|
7607
7628
|
externalId: "aq4daBUAGr3"
|
|
7608
7629
|
},
|
|
7609
7630
|
{
|
|
7610
7631
|
id: "0a3b4c5d-6e7f-4201-abcd-234567890123",
|
|
7611
7632
|
name: "Tsanga",
|
|
7612
7633
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7613
|
-
validUntil: null,
|
|
7614
7634
|
externalId: "cqis6Y8trbJ"
|
|
7615
7635
|
},
|
|
7616
7636
|
{
|
|
7617
7637
|
id: "1b4c5d6e-7f8a-4312-bcde-345678901234",
|
|
7618
7638
|
name: "Waziri",
|
|
7619
7639
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7620
|
-
validUntil: null,
|
|
7621
7640
|
externalId: "LMijHPyyx6d"
|
|
7622
7641
|
},
|
|
7623
7642
|
{
|
|
7624
7643
|
id: "2c5d6e7f-8a9b-4423-8def-456789012345",
|
|
7625
7644
|
name: "Zimbi",
|
|
7626
7645
|
parentId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7627
|
-
validUntil: null,
|
|
7628
7646
|
externalId: "pcQYbPuKGZ7"
|
|
7629
7647
|
},
|
|
7630
7648
|
// Villages under Itambo (89a33893-b17d-481d-a26d-6461e7ac1651)
|
|
@@ -7632,67 +7650,59 @@ var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = [
|
|
|
7632
7650
|
id: "3d6e7f8a-9b0c-4534-8efa-567890123456",
|
|
7633
7651
|
name: "Felani",
|
|
7634
7652
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7635
|
-
validUntil: null,
|
|
7636
7653
|
externalId: "gSqpoCGdMXp"
|
|
7637
7654
|
},
|
|
7638
7655
|
{
|
|
7639
7656
|
id: "4e7f8a9b-0c1d-4645-8fab-678901234567",
|
|
7640
7657
|
name: "Goroma",
|
|
7641
7658
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7642
|
-
validUntil: null,
|
|
7643
7659
|
externalId: "KvAAIaNqVrp"
|
|
7644
7660
|
},
|
|
7645
7661
|
{
|
|
7646
7662
|
id: "5f8a9b0c-1d2e-4756-8abc-789012345678",
|
|
7647
7663
|
name: "Halifu",
|
|
7648
7664
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7649
|
-
validUntil: null,
|
|
7650
7665
|
externalId: "qe4UnEVt1hv"
|
|
7651
7666
|
},
|
|
7652
7667
|
{
|
|
7653
7668
|
id: "6a9b0c1d-2e3f-4867-abcd-890123456789",
|
|
7654
7669
|
name: "Jabari",
|
|
7655
7670
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7656
|
-
validUntil: null,
|
|
7657
7671
|
externalId: "yHH9Nz4rLOt"
|
|
7658
7672
|
},
|
|
7659
7673
|
{
|
|
7660
7674
|
id: "7b0c1d2e-3f4a-4978-bcde-901234567890",
|
|
7661
7675
|
name: "Kifani",
|
|
7662
7676
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7663
|
-
validUntil: null,
|
|
7664
7677
|
externalId: "eSWmXIGeu1I"
|
|
7665
7678
|
},
|
|
7666
7679
|
{
|
|
7667
7680
|
id: "8c1d2e3f-4a5b-4089-8def-012345678901",
|
|
7668
7681
|
name: "Lumela",
|
|
7669
7682
|
parentId: "89a33893-b17d-481d-a26d-6461e7ac1651",
|
|
7670
|
-
validUntil: null,
|
|
7671
7683
|
externalId: "bh0b3aI1uP3"
|
|
7672
7684
|
}
|
|
7673
7685
|
];
|
|
7674
|
-
var
|
|
7686
|
+
var V2_DEFAULT_MOCK_ADMINISTRATIVE_AREAS = MOCK_ADMINISTRATIVE_AREAS_BASE.map(withVersionFields);
|
|
7687
|
+
var MOCK_LOCATIONS_BASE = [
|
|
7675
7688
|
{
|
|
7676
7689
|
id: "6f6186ce-cd5f-4a5f-810a-2d99e7c4ba12",
|
|
7677
7690
|
name: "Central Provincial Office",
|
|
7678
7691
|
locationType: "CRVS_OFFICE",
|
|
7679
7692
|
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c",
|
|
7680
|
-
validUntil: null,
|
|
7681
7693
|
externalId: "Xr3Df8WpK6Ys"
|
|
7682
7694
|
},
|
|
7683
7695
|
{
|
|
7684
7696
|
id: "b1c2d3e4-f5a6-7890-bcde-f12345678901",
|
|
7685
7697
|
name: "Central Health Post",
|
|
7686
7698
|
locationType: "HEALTH_FACILITY",
|
|
7687
|
-
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c"
|
|
7688
|
-
validUntil: null
|
|
7699
|
+
administrativeAreaId: "a45b982a-5c7b-4bd9-8fd8-a42d0994054c"
|
|
7689
7700
|
},
|
|
7690
7701
|
{
|
|
7691
7702
|
id: "028d2c85-ca31-426d-b5d1-2cef545a4902",
|
|
7692
7703
|
name: "Ibombo District Office",
|
|
7693
7704
|
locationType: "CRVS_OFFICE",
|
|
7694
7705
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7695
|
-
validUntil: null,
|
|
7696
7706
|
externalId: "Sm4Nw7GrD2Vy"
|
|
7697
7707
|
},
|
|
7698
7708
|
{
|
|
@@ -7700,7 +7710,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7700
7710
|
name: "Isamba District Office",
|
|
7701
7711
|
locationType: "CRVS_OFFICE",
|
|
7702
7712
|
administrativeAreaId: "967032fd-3f81-478a-826c-30cb8fe121bd",
|
|
7703
|
-
validUntil: null,
|
|
7704
7713
|
externalId: "Vg1Bq5XeH9Lt"
|
|
7705
7714
|
},
|
|
7706
7715
|
{
|
|
@@ -7708,7 +7717,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7708
7717
|
name: "Isango District Office",
|
|
7709
7718
|
locationType: "CRVS_OFFICE",
|
|
7710
7719
|
administrativeAreaId: "27160bbd-32d1-4625-812f-860226bfb92a",
|
|
7711
|
-
validUntil: null,
|
|
7712
7720
|
externalId: "Je7Lm2XqN9Vz"
|
|
7713
7721
|
},
|
|
7714
7722
|
{
|
|
@@ -7716,7 +7724,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7716
7724
|
name: "Sulaka Provincial Office",
|
|
7717
7725
|
locationType: "CRVS_OFFICE",
|
|
7718
7726
|
administrativeAreaId: "c599b691-fd2d-45e1-abf4-d185de727fb5",
|
|
7719
|
-
validUntil: null,
|
|
7720
7727
|
externalId: "Ht2Wp9KcX5Qv"
|
|
7721
7728
|
},
|
|
7722
7729
|
{
|
|
@@ -7724,7 +7731,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7724
7731
|
name: "Ilanga District Office",
|
|
7725
7732
|
locationType: "CRVS_OFFICE",
|
|
7726
7733
|
administrativeAreaId: "8fbd09d2-212b-47f4-beb3-5e1694931d9f",
|
|
7727
|
-
validUntil: null,
|
|
7728
7734
|
externalId: "Yp6Ds1WqN3Xz"
|
|
7729
7735
|
},
|
|
7730
7736
|
{
|
|
@@ -7732,7 +7738,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7732
7738
|
name: "Chamakubi Health Post",
|
|
7733
7739
|
locationType: "HEALTH_FACILITY",
|
|
7734
7740
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7735
|
-
validUntil: null,
|
|
7736
7741
|
externalId: "M1nFr8LbC2Qy"
|
|
7737
7742
|
},
|
|
7738
7743
|
{
|
|
@@ -7740,7 +7745,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7740
7745
|
name: "Ibombo Rural Health Centre",
|
|
7741
7746
|
locationType: "HEALTH_FACILITY",
|
|
7742
7747
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7743
|
-
validUntil: null,
|
|
7744
7748
|
externalId: "bT7pV6YrW0Xc"
|
|
7745
7749
|
},
|
|
7746
7750
|
{
|
|
@@ -7748,7 +7752,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7748
7752
|
name: "Chikobo Rural Health Centre",
|
|
7749
7753
|
locationType: "HEALTH_FACILITY",
|
|
7750
7754
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7751
|
-
validUntil: null,
|
|
7752
7755
|
externalId: "zE4qPn2SgJ5d"
|
|
7753
7756
|
},
|
|
7754
7757
|
{
|
|
@@ -7756,7 +7759,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7756
7759
|
name: "Chilochabalenje Health Post",
|
|
7757
7760
|
locationType: "HEALTH_FACILITY",
|
|
7758
7761
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7759
|
-
validUntil: null,
|
|
7760
7762
|
externalId: "H8vDs1MqR4Uf"
|
|
7761
7763
|
},
|
|
7762
7764
|
{
|
|
@@ -7764,7 +7766,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7764
7766
|
name: "Chipeso Rural Health Centre",
|
|
7765
7767
|
locationType: "HEALTH_FACILITY",
|
|
7766
7768
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7767
|
-
validUntil: null,
|
|
7768
7769
|
externalId: "Qw3uZ9KfX6Lm"
|
|
7769
7770
|
},
|
|
7770
7771
|
{
|
|
@@ -7772,7 +7773,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7772
7773
|
name: "Chisamba Rural Health Centre",
|
|
7773
7774
|
locationType: "HEALTH_FACILITY",
|
|
7774
7775
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7775
|
-
validUntil: null,
|
|
7776
7776
|
externalId: "Yr0pCg8LdM2s"
|
|
7777
7777
|
},
|
|
7778
7778
|
{
|
|
@@ -7780,7 +7780,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7780
7780
|
name: "Chitanda Rural Health Centre",
|
|
7781
7781
|
locationType: "HEALTH_FACILITY",
|
|
7782
7782
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7783
|
-
validUntil: null,
|
|
7784
7783
|
externalId: "tS9gJ4PwB1Qx"
|
|
7785
7784
|
},
|
|
7786
7785
|
{
|
|
@@ -7788,7 +7787,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7788
7787
|
name: "Golden Valley Rural Health Centre",
|
|
7789
7788
|
locationType: "HEALTH_FACILITY",
|
|
7790
7789
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7791
|
-
validUntil: null,
|
|
7792
7790
|
externalId: "Ld7Qm3XsA8Vr"
|
|
7793
7791
|
},
|
|
7794
7792
|
{
|
|
@@ -7796,7 +7794,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7796
7794
|
name: "Ipongo Rural Health Centre",
|
|
7797
7795
|
locationType: "HEALTH_FACILITY",
|
|
7798
7796
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7799
|
-
validUntil: null,
|
|
7800
7797
|
externalId: "kF2sW9DmH0Bt"
|
|
7801
7798
|
},
|
|
7802
7799
|
{
|
|
@@ -7804,7 +7801,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7804
7801
|
name: "Itumbwe Health Post",
|
|
7805
7802
|
locationType: "HEALTH_FACILITY",
|
|
7806
7803
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7807
|
-
validUntil: null,
|
|
7808
7804
|
externalId: "Ue5Xb3VaC7Pq"
|
|
7809
7805
|
},
|
|
7810
7806
|
{
|
|
@@ -7812,7 +7808,6 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7812
7808
|
name: "Kabangalala Rural Health Centre",
|
|
7813
7809
|
locationType: "HEALTH_FACILITY",
|
|
7814
7810
|
administrativeAreaId: "62a0ccb4-880d-4f30-8882-f256007dfff9",
|
|
7815
|
-
validUntil: null,
|
|
7816
7811
|
externalId: "Pz8Kc1TqH6Jn"
|
|
7817
7812
|
},
|
|
7818
7813
|
// Village offices
|
|
@@ -7821,10 +7816,10 @@ var V2_DEFAULT_MOCK_LOCATIONS = [
|
|
|
7821
7816
|
name: "Klow Village Office",
|
|
7822
7817
|
locationType: "CRVS_OFFICE",
|
|
7823
7818
|
administrativeAreaId: "1d4e5f6a-7b8c-4912-8efa-345678901234",
|
|
7824
|
-
validUntil: null,
|
|
7825
7819
|
externalId: "PmAyxAJkxiJ"
|
|
7826
7820
|
}
|
|
7827
7821
|
];
|
|
7822
|
+
var V2_DEFAULT_MOCK_LOCATIONS = MOCK_LOCATIONS_BASE.map(withVersionFields);
|
|
7828
7823
|
var V2_DEFAULT_MOCK_LOCATIONS_MAP = new Map(
|
|
7829
7824
|
V2_DEFAULT_MOCK_LOCATIONS.map((l) => [l.id, l])
|
|
7830
7825
|
);
|