vineanova-redux-artifacts 1.60.0 → 1.61.0
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/CHANGELOG.md +1 -1
- package/dist/actions/commonActions.js +39 -0
- package/dist/reducers/index.js +2 -1
- package/dist/sagas/vineaNovaApi.sagas.js +159 -98
- package/dist/selectors/index.js +13 -0
- package/dist/selectors/lookupConsumableTypeSelector.js +71 -0
- package/dist/selectors/lookupStatusSelector.js +10 -4
- package/dist/services/apiServices.js +57 -3
- package/package.json +1 -1
- package/src/actions/commonActions.js +9 -0
- package/src/reducers/index.js +1 -0
- package/src/sagas/vineaNovaApi.sagas.js +35 -0
- package/src/selectors/index.js +1 -0
- package/src/selectors/lookupConsumableTypeSelector.js +64 -0
- package/src/selectors/lookupStatusSelector.js +9 -0
- package/src/services/apiServices.js +28 -0
package/CHANGELOG.md
CHANGED
|
@@ -6923,6 +6923,45 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
6923
6923
|
}]
|
|
6924
6924
|
}
|
|
6925
6925
|
},
|
|
6926
|
+
lookupConsumableType: {
|
|
6927
|
+
get: {
|
|
6928
|
+
REQUEST: [function (payload) {
|
|
6929
|
+
return payload;
|
|
6930
|
+
}, function () {
|
|
6931
|
+
return {
|
|
6932
|
+
reducerName: 'lookupConsumableType'
|
|
6933
|
+
};
|
|
6934
|
+
}],
|
|
6935
|
+
RECEIVE: [function (payload) {
|
|
6936
|
+
return payload;
|
|
6937
|
+
}, function () {
|
|
6938
|
+
return {
|
|
6939
|
+
reducerName: 'lookupConsumableType'
|
|
6940
|
+
};
|
|
6941
|
+
}],
|
|
6942
|
+
ERROR: [function (payload) {
|
|
6943
|
+
return payload;
|
|
6944
|
+
}, function () {
|
|
6945
|
+
return {
|
|
6946
|
+
reducerName: 'lookupConsumableType'
|
|
6947
|
+
};
|
|
6948
|
+
}],
|
|
6949
|
+
CLEARDATA: [function (payload) {
|
|
6950
|
+
return payload;
|
|
6951
|
+
}, function () {
|
|
6952
|
+
return {
|
|
6953
|
+
reducerName: 'lookupConsumableType'
|
|
6954
|
+
};
|
|
6955
|
+
}],
|
|
6956
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6957
|
+
return payload;
|
|
6958
|
+
}, function () {
|
|
6959
|
+
return {
|
|
6960
|
+
reducerName: 'lookupConsumableType'
|
|
6961
|
+
};
|
|
6962
|
+
}]
|
|
6963
|
+
}
|
|
6964
|
+
},
|
|
6926
6965
|
fetchAllLookups: {
|
|
6927
6966
|
REQUEST: [function (payload) {
|
|
6928
6967
|
return payload;
|
package/dist/reducers/index.js
CHANGED
|
@@ -120,7 +120,8 @@ var rootReducer = {
|
|
|
120
120
|
lookupDashboardPageFilters: (0, _createNamedReducer["default"])('lookupDashboardPageFilters'),
|
|
121
121
|
lookupChartFilters: (0, _createNamedReducer["default"])('lookupChartFilters'),
|
|
122
122
|
lookupVehicleType: (0, _createNamedReducer["default"])('lookupVehicleType'),
|
|
123
|
-
lookupVehicleMake: (0, _createNamedReducer["default"])('lookupVehicleMake')
|
|
123
|
+
lookupVehicleMake: (0, _createNamedReducer["default"])('lookupVehicleMake'),
|
|
124
|
+
lookupConsumableType: (0, _createNamedReducer["default"])('lookupConsumableType')
|
|
124
125
|
})
|
|
125
126
|
};
|
|
126
127
|
var _default = rootReducer;
|
|
@@ -76,6 +76,7 @@ exports.getlookupChartFiltersSagas = getlookupChartFiltersSagas;
|
|
|
76
76
|
exports.getlookupClassificationGroupIdentityTypeSagas = getlookupClassificationGroupIdentityTypeSagas;
|
|
77
77
|
exports.getlookupClassificationGroupSagas = getlookupClassificationGroupSagas;
|
|
78
78
|
exports.getlookupClassificationSagas = getlookupClassificationSagas;
|
|
79
|
+
exports.getlookupConsumableTypeSagas = getlookupConsumableTypeSagas;
|
|
79
80
|
exports.getlookupContactMethodSagas = getlookupContactMethodSagas;
|
|
80
81
|
exports.getlookupCountrySagas = getlookupCountrySagas;
|
|
81
82
|
exports.getlookupCropSettingInstanceSagas = getlookupCropSettingInstanceSagas;
|
|
@@ -388,10 +389,11 @@ var _marked = /*#__PURE__*/_regeneratorRuntime().mark(getBlockVintageSagas),
|
|
|
388
389
|
_marked179 = /*#__PURE__*/_regeneratorRuntime().mark(getlookupChartFiltersSagas),
|
|
389
390
|
_marked180 = /*#__PURE__*/_regeneratorRuntime().mark(getlookupVehicleTypeSagas),
|
|
390
391
|
_marked181 = /*#__PURE__*/_regeneratorRuntime().mark(getlookupVehicleMakeSagas),
|
|
391
|
-
_marked182 = /*#__PURE__*/_regeneratorRuntime().mark(
|
|
392
|
-
_marked183 = /*#__PURE__*/_regeneratorRuntime().mark(
|
|
393
|
-
_marked184 = /*#__PURE__*/_regeneratorRuntime().mark(
|
|
394
|
-
_marked185 = /*#__PURE__*/_regeneratorRuntime().mark(
|
|
392
|
+
_marked182 = /*#__PURE__*/_regeneratorRuntime().mark(getlookupConsumableTypeSagas),
|
|
393
|
+
_marked183 = /*#__PURE__*/_regeneratorRuntime().mark(fetchAllLookupsSagas),
|
|
394
|
+
_marked184 = /*#__PURE__*/_regeneratorRuntime().mark(clearReducerData),
|
|
395
|
+
_marked185 = /*#__PURE__*/_regeneratorRuntime().mark(commonEntityPartialUpdateActionCreator),
|
|
396
|
+
_marked186 = /*#__PURE__*/_regeneratorRuntime().mark(root);
|
|
395
397
|
|
|
396
398
|
/**
|
|
397
399
|
* commonActionCreator
|
|
@@ -10392,286 +10394,345 @@ function getlookupVehicleMakeSagas(action) {
|
|
|
10392
10394
|
}
|
|
10393
10395
|
}, _marked181, null, [[1, 11]]);
|
|
10394
10396
|
}
|
|
10397
|
+
|
|
10398
|
+
function getlookupConsumableTypeSagas(action) {
|
|
10399
|
+
var _action$payload182, payload, reducerName, response;
|
|
10400
|
+
|
|
10401
|
+
return _regeneratorRuntime().wrap(function getlookupConsumableTypeSagas$(_context182) {
|
|
10402
|
+
while (1) {
|
|
10403
|
+
switch (_context182.prev = _context182.next) {
|
|
10404
|
+
case 0:
|
|
10405
|
+
_action$payload182 = action.payload, payload = _action$payload182 === void 0 ? {} : _action$payload182, reducerName = action.meta.reducerName;
|
|
10406
|
+
_context182.prev = 1;
|
|
10407
|
+
_context182.next = 4;
|
|
10408
|
+
return (0, _effects.put)({
|
|
10409
|
+
type: "FETCHING",
|
|
10410
|
+
name: reducerName
|
|
10411
|
+
});
|
|
10412
|
+
|
|
10413
|
+
case 4:
|
|
10414
|
+
_context182.next = 6;
|
|
10415
|
+
return (0, _effects.call)(APIServices.getlookupConsumableType, payload);
|
|
10416
|
+
|
|
10417
|
+
case 6:
|
|
10418
|
+
response = _context182.sent;
|
|
10419
|
+
_context182.next = 9;
|
|
10420
|
+
return (0, _effects.put)({
|
|
10421
|
+
type: "SUCCESS",
|
|
10422
|
+
payload: response,
|
|
10423
|
+
name: reducerName
|
|
10424
|
+
});
|
|
10425
|
+
|
|
10426
|
+
case 9:
|
|
10427
|
+
_context182.next = 16;
|
|
10428
|
+
break;
|
|
10429
|
+
|
|
10430
|
+
case 11:
|
|
10431
|
+
_context182.prev = 11;
|
|
10432
|
+
_context182.t0 = _context182["catch"](1);
|
|
10433
|
+
|
|
10434
|
+
_winstonLogger["default"].error(_context182.t0);
|
|
10435
|
+
/* istanbul ignore next */
|
|
10436
|
+
|
|
10437
|
+
|
|
10438
|
+
_context182.next = 16;
|
|
10439
|
+
return (0, _effects.put)({
|
|
10440
|
+
type: "ERROR",
|
|
10441
|
+
payload: _context182.t0,
|
|
10442
|
+
name: reducerName
|
|
10443
|
+
});
|
|
10444
|
+
|
|
10445
|
+
case 16:
|
|
10446
|
+
case "end":
|
|
10447
|
+
return _context182.stop();
|
|
10448
|
+
}
|
|
10449
|
+
}
|
|
10450
|
+
}, _marked182, null, [[1, 11]]);
|
|
10451
|
+
}
|
|
10395
10452
|
/** run all lookups requests **/
|
|
10396
10453
|
|
|
10397
10454
|
|
|
10398
10455
|
function fetchAllLookupsSagas(action) {
|
|
10399
|
-
return _regeneratorRuntime().wrap(function fetchAllLookupsSagas$(
|
|
10456
|
+
return _regeneratorRuntime().wrap(function fetchAllLookupsSagas$(_context183) {
|
|
10400
10457
|
while (1) {
|
|
10401
|
-
switch (
|
|
10458
|
+
switch (_context183.prev = _context183.next) {
|
|
10402
10459
|
case 0:
|
|
10403
|
-
|
|
10404
|
-
|
|
10460
|
+
_context183.prev = 0;
|
|
10461
|
+
_context183.next = 3;
|
|
10405
10462
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupClassification.get.request());
|
|
10406
10463
|
|
|
10407
10464
|
case 3:
|
|
10408
|
-
|
|
10465
|
+
_context183.next = 5;
|
|
10409
10466
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupClassificationGroup.get.request());
|
|
10410
10467
|
|
|
10411
10468
|
case 5:
|
|
10412
|
-
|
|
10469
|
+
_context183.next = 7;
|
|
10413
10470
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupClassificationGroupIdentityType.get.request());
|
|
10414
10471
|
|
|
10415
10472
|
case 7:
|
|
10416
|
-
|
|
10473
|
+
_context183.next = 9;
|
|
10417
10474
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupReferenceType.get.request());
|
|
10418
10475
|
|
|
10419
10476
|
case 9:
|
|
10420
|
-
|
|
10477
|
+
_context183.next = 11;
|
|
10421
10478
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupIdentityType.get.request());
|
|
10422
10479
|
|
|
10423
10480
|
case 11:
|
|
10424
|
-
|
|
10481
|
+
_context183.next = 13;
|
|
10425
10482
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupRoleType.get.request());
|
|
10426
10483
|
|
|
10427
10484
|
case 13:
|
|
10428
|
-
|
|
10485
|
+
_context183.next = 15;
|
|
10429
10486
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupRoleTypeIdentityType.get.request());
|
|
10430
10487
|
|
|
10431
10488
|
case 15:
|
|
10432
|
-
|
|
10489
|
+
_context183.next = 17;
|
|
10433
10490
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupBusinessUnit.get.request());
|
|
10434
10491
|
|
|
10435
10492
|
case 17:
|
|
10436
|
-
|
|
10493
|
+
_context183.next = 19;
|
|
10437
10494
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupReferenceTypeIdentityType.get.request());
|
|
10438
10495
|
|
|
10439
10496
|
case 19:
|
|
10440
|
-
|
|
10497
|
+
_context183.next = 21;
|
|
10441
10498
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupRelationshipType.get.request());
|
|
10442
10499
|
|
|
10443
10500
|
case 21:
|
|
10444
|
-
|
|
10501
|
+
_context183.next = 23;
|
|
10445
10502
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupRelationshipSubType.get.request());
|
|
10446
10503
|
|
|
10447
10504
|
case 23:
|
|
10448
|
-
|
|
10505
|
+
_context183.next = 25;
|
|
10449
10506
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupContactMethod.get.request());
|
|
10450
10507
|
|
|
10451
10508
|
case 25:
|
|
10452
|
-
|
|
10509
|
+
_context183.next = 27;
|
|
10453
10510
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupGender.get.request());
|
|
10454
10511
|
|
|
10455
10512
|
case 27:
|
|
10456
|
-
|
|
10513
|
+
_context183.next = 29;
|
|
10457
10514
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupNationality.get.request());
|
|
10458
10515
|
|
|
10459
10516
|
case 29:
|
|
10460
|
-
|
|
10517
|
+
_context183.next = 31;
|
|
10461
10518
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupEthnicity.get.request());
|
|
10462
10519
|
|
|
10463
10520
|
case 31:
|
|
10464
|
-
|
|
10521
|
+
_context183.next = 33;
|
|
10465
10522
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupLanguage.get.request());
|
|
10466
10523
|
|
|
10467
10524
|
case 33:
|
|
10468
|
-
|
|
10525
|
+
_context183.next = 35;
|
|
10469
10526
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupCountry.get.request());
|
|
10470
10527
|
|
|
10471
10528
|
case 35:
|
|
10472
|
-
|
|
10529
|
+
_context183.next = 37;
|
|
10473
10530
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupSalutation.get.request());
|
|
10474
10531
|
|
|
10475
10532
|
case 37:
|
|
10476
|
-
|
|
10533
|
+
_context183.next = 39;
|
|
10477
10534
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupGrowingRegion.get.request());
|
|
10478
10535
|
|
|
10479
10536
|
case 39:
|
|
10480
|
-
|
|
10537
|
+
_context183.next = 41;
|
|
10481
10538
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupGrowingSubRegion.get.request());
|
|
10482
10539
|
|
|
10483
10540
|
case 41:
|
|
10484
|
-
|
|
10541
|
+
_context183.next = 43;
|
|
10485
10542
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupTown.get.request());
|
|
10486
10543
|
|
|
10487
10544
|
case 43:
|
|
10488
|
-
|
|
10545
|
+
_context183.next = 45;
|
|
10489
10546
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupVariety.get.request());
|
|
10490
10547
|
|
|
10491
10548
|
case 45:
|
|
10492
|
-
|
|
10549
|
+
_context183.next = 47;
|
|
10493
10550
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupBlockVintageStatus.get.request());
|
|
10494
10551
|
|
|
10495
10552
|
case 47:
|
|
10496
|
-
|
|
10553
|
+
_context183.next = 49;
|
|
10497
10554
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupTrellis.get.request());
|
|
10498
10555
|
|
|
10499
10556
|
case 49:
|
|
10500
|
-
|
|
10557
|
+
_context183.next = 51;
|
|
10501
10558
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupRootStock.get.request());
|
|
10502
10559
|
|
|
10503
10560
|
case 51:
|
|
10504
|
-
|
|
10561
|
+
_context183.next = 53;
|
|
10505
10562
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupVarietyClone.get.request());
|
|
10506
10563
|
|
|
10507
10564
|
case 53:
|
|
10508
|
-
|
|
10565
|
+
_context183.next = 55;
|
|
10509
10566
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupVintage.get.request());
|
|
10510
10567
|
|
|
10511
10568
|
case 55:
|
|
10512
|
-
|
|
10569
|
+
_context183.next = 57;
|
|
10513
10570
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupRowSpecialAttribute.get.request());
|
|
10514
10571
|
|
|
10515
10572
|
case 57:
|
|
10516
|
-
|
|
10573
|
+
_context183.next = 59;
|
|
10517
10574
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupNoteStatus.get.request());
|
|
10518
10575
|
|
|
10519
10576
|
case 59:
|
|
10520
|
-
|
|
10577
|
+
_context183.next = 61;
|
|
10521
10578
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupMeasure.get.request());
|
|
10522
10579
|
|
|
10523
10580
|
case 61:
|
|
10524
|
-
|
|
10581
|
+
_context183.next = 63;
|
|
10525
10582
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupMeasureGroup.get.request());
|
|
10526
10583
|
|
|
10527
10584
|
case 63:
|
|
10528
|
-
|
|
10585
|
+
_context183.next = 65;
|
|
10529
10586
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupMeasureInstance.get.request());
|
|
10530
10587
|
|
|
10531
10588
|
case 65:
|
|
10532
|
-
|
|
10589
|
+
_context183.next = 67;
|
|
10533
10590
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupKeyword.get.request());
|
|
10534
10591
|
|
|
10535
10592
|
case 67:
|
|
10536
|
-
|
|
10593
|
+
_context183.next = 69;
|
|
10537
10594
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupSampleRequestStatus.get.request());
|
|
10538
10595
|
|
|
10539
10596
|
case 69:
|
|
10540
|
-
|
|
10597
|
+
_context183.next = 71;
|
|
10541
10598
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupPayrollSystem.get.request());
|
|
10542
10599
|
|
|
10543
10600
|
case 71:
|
|
10544
|
-
|
|
10601
|
+
_context183.next = 73;
|
|
10545
10602
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupDataProvider.get.request());
|
|
10546
10603
|
|
|
10547
10604
|
case 73:
|
|
10548
|
-
|
|
10605
|
+
_context183.next = 75;
|
|
10549
10606
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupDataProviderType.get.request());
|
|
10550
10607
|
|
|
10551
10608
|
case 75:
|
|
10552
|
-
|
|
10609
|
+
_context183.next = 77;
|
|
10553
10610
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupPhenologyMeasure.get.request());
|
|
10554
10611
|
|
|
10555
10612
|
case 77:
|
|
10556
|
-
|
|
10613
|
+
_context183.next = 79;
|
|
10557
10614
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupPhenologyMeasureOption.get.request());
|
|
10558
10615
|
|
|
10559
10616
|
case 79:
|
|
10560
|
-
|
|
10617
|
+
_context183.next = 81;
|
|
10561
10618
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupPhenologyMeasureSet.get.request());
|
|
10562
10619
|
|
|
10563
10620
|
case 81:
|
|
10564
|
-
|
|
10621
|
+
_context183.next = 83;
|
|
10565
10622
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupPhenologyMeasureType.get.request());
|
|
10566
10623
|
|
|
10567
10624
|
case 83:
|
|
10568
|
-
|
|
10625
|
+
_context183.next = 85;
|
|
10569
10626
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupCropSettingInstance.get.request());
|
|
10570
10627
|
|
|
10571
10628
|
case 85:
|
|
10572
|
-
|
|
10629
|
+
_context183.next = 87;
|
|
10573
10630
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupCropSettingOption.get.request());
|
|
10574
10631
|
|
|
10575
10632
|
case 87:
|
|
10576
|
-
|
|
10633
|
+
_context183.next = 89;
|
|
10577
10634
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupInactiveReason.get.request());
|
|
10578
10635
|
|
|
10579
10636
|
case 89:
|
|
10580
|
-
|
|
10637
|
+
_context183.next = 91;
|
|
10581
10638
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupDocumentType.get.request());
|
|
10582
10639
|
|
|
10583
10640
|
case 91:
|
|
10584
|
-
|
|
10641
|
+
_context183.next = 93;
|
|
10585
10642
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupDocumentStatus.get.request());
|
|
10586
10643
|
|
|
10587
10644
|
case 93:
|
|
10588
|
-
|
|
10645
|
+
_context183.next = 95;
|
|
10589
10646
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupDashboardPageFilters.get.request());
|
|
10590
10647
|
|
|
10591
10648
|
case 95:
|
|
10592
|
-
|
|
10649
|
+
_context183.next = 97;
|
|
10593
10650
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupChartFilters.get.request());
|
|
10594
10651
|
|
|
10595
10652
|
case 97:
|
|
10596
|
-
|
|
10653
|
+
_context183.next = 99;
|
|
10597
10654
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupVehicleType.get.request());
|
|
10598
10655
|
|
|
10599
10656
|
case 99:
|
|
10600
|
-
|
|
10657
|
+
_context183.next = 101;
|
|
10601
10658
|
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupVehicleMake.get.request());
|
|
10602
10659
|
|
|
10603
10660
|
case 101:
|
|
10604
|
-
|
|
10605
|
-
|
|
10661
|
+
_context183.next = 103;
|
|
10662
|
+
return (0, _effects.put)(_actions.VineaNovaActions.api.v1.lookupConsumableType.get.request());
|
|
10606
10663
|
|
|
10607
10664
|
case 103:
|
|
10608
|
-
|
|
10609
|
-
|
|
10665
|
+
_context183.next = 108;
|
|
10666
|
+
break;
|
|
10610
10667
|
|
|
10611
|
-
|
|
10668
|
+
case 105:
|
|
10669
|
+
_context183.prev = 105;
|
|
10670
|
+
_context183.t0 = _context183["catch"](0);
|
|
10671
|
+
|
|
10672
|
+
_winstonLogger["default"].error(_context183.t0);
|
|
10612
10673
|
|
|
10613
|
-
case
|
|
10674
|
+
case 108:
|
|
10614
10675
|
case "end":
|
|
10615
|
-
return
|
|
10676
|
+
return _context183.stop();
|
|
10616
10677
|
}
|
|
10617
10678
|
}
|
|
10618
|
-
},
|
|
10679
|
+
}, _marked183, null, [[0, 105]]);
|
|
10619
10680
|
}
|
|
10620
10681
|
/** run clear reducer state **/
|
|
10621
10682
|
|
|
10622
10683
|
|
|
10623
10684
|
function clearReducerData(action) {
|
|
10624
|
-
var _action$
|
|
10685
|
+
var _action$payload183, payload, reducerName;
|
|
10625
10686
|
|
|
10626
|
-
return _regeneratorRuntime().wrap(function clearReducerData$(
|
|
10687
|
+
return _regeneratorRuntime().wrap(function clearReducerData$(_context184) {
|
|
10627
10688
|
while (1) {
|
|
10628
|
-
switch (
|
|
10689
|
+
switch (_context184.prev = _context184.next) {
|
|
10629
10690
|
case 0:
|
|
10630
|
-
_action$
|
|
10631
|
-
|
|
10632
|
-
|
|
10691
|
+
_action$payload183 = action.payload, payload = _action$payload183 === void 0 ? {} : _action$payload183, reducerName = action.meta.reducerName;
|
|
10692
|
+
_context184.prev = 1;
|
|
10693
|
+
_context184.next = 4;
|
|
10633
10694
|
return (0, _effects.put)({
|
|
10634
10695
|
type: "CLEAR_DATA",
|
|
10635
10696
|
name: reducerName
|
|
10636
10697
|
});
|
|
10637
10698
|
|
|
10638
10699
|
case 4:
|
|
10639
|
-
|
|
10700
|
+
_context184.next = 11;
|
|
10640
10701
|
break;
|
|
10641
10702
|
|
|
10642
10703
|
case 6:
|
|
10643
|
-
|
|
10644
|
-
|
|
10704
|
+
_context184.prev = 6;
|
|
10705
|
+
_context184.t0 = _context184["catch"](1);
|
|
10645
10706
|
|
|
10646
|
-
_winstonLogger["default"].error(
|
|
10707
|
+
_winstonLogger["default"].error(_context184.t0);
|
|
10647
10708
|
/* istanbul ignore next */
|
|
10648
10709
|
|
|
10649
10710
|
|
|
10650
|
-
|
|
10711
|
+
_context184.next = 11;
|
|
10651
10712
|
return (0, _effects.put)({
|
|
10652
10713
|
type: "ERROR",
|
|
10653
|
-
payload:
|
|
10714
|
+
payload: _context184.t0,
|
|
10654
10715
|
name: reducerName
|
|
10655
10716
|
});
|
|
10656
10717
|
|
|
10657
10718
|
case 11:
|
|
10658
10719
|
case "end":
|
|
10659
|
-
return
|
|
10720
|
+
return _context184.stop();
|
|
10660
10721
|
}
|
|
10661
10722
|
}
|
|
10662
|
-
},
|
|
10723
|
+
}, _marked184, null, [[1, 6]]);
|
|
10663
10724
|
}
|
|
10664
10725
|
|
|
10665
10726
|
function commonEntityPartialUpdateActionCreator(action) {
|
|
10666
|
-
var _action$
|
|
10727
|
+
var _action$payload184, payload, reducerName;
|
|
10667
10728
|
|
|
10668
|
-
return _regeneratorRuntime().wrap(function commonEntityPartialUpdateActionCreator$(
|
|
10729
|
+
return _regeneratorRuntime().wrap(function commonEntityPartialUpdateActionCreator$(_context185) {
|
|
10669
10730
|
while (1) {
|
|
10670
|
-
switch (
|
|
10731
|
+
switch (_context185.prev = _context185.next) {
|
|
10671
10732
|
case 0:
|
|
10672
|
-
_action$
|
|
10673
|
-
|
|
10674
|
-
|
|
10733
|
+
_action$payload184 = action.payload, payload = _action$payload184 === void 0 ? {} : _action$payload184, reducerName = action.meta.reducerName;
|
|
10734
|
+
_context185.prev = 1;
|
|
10735
|
+
_context185.next = 4;
|
|
10675
10736
|
return (0, _effects.put)({
|
|
10676
10737
|
type: 'UPDATE_PARTIAL_ENTITY',
|
|
10677
10738
|
payload: payload,
|
|
@@ -10679,34 +10740,34 @@ function commonEntityPartialUpdateActionCreator(action) {
|
|
|
10679
10740
|
});
|
|
10680
10741
|
|
|
10681
10742
|
case 4:
|
|
10682
|
-
|
|
10743
|
+
_context185.next = 10;
|
|
10683
10744
|
break;
|
|
10684
10745
|
|
|
10685
10746
|
case 6:
|
|
10686
|
-
|
|
10687
|
-
|
|
10688
|
-
|
|
10747
|
+
_context185.prev = 6;
|
|
10748
|
+
_context185.t0 = _context185["catch"](1);
|
|
10749
|
+
_context185.next = 10;
|
|
10689
10750
|
return (0, _effects.put)({
|
|
10690
10751
|
type: 'ERROR',
|
|
10691
|
-
payload:
|
|
10752
|
+
payload: _context185.t0,
|
|
10692
10753
|
name: reducerName
|
|
10693
10754
|
});
|
|
10694
10755
|
|
|
10695
10756
|
case 10:
|
|
10696
10757
|
case "end":
|
|
10697
|
-
return
|
|
10758
|
+
return _context185.stop();
|
|
10698
10759
|
}
|
|
10699
10760
|
}
|
|
10700
|
-
},
|
|
10761
|
+
}, _marked185, null, [[1, 6]]);
|
|
10701
10762
|
}
|
|
10702
10763
|
|
|
10703
10764
|
function root() {
|
|
10704
|
-
return _regeneratorRuntime().wrap(function root$(
|
|
10765
|
+
return _regeneratorRuntime().wrap(function root$(_context186) {
|
|
10705
10766
|
while (1) {
|
|
10706
|
-
switch (
|
|
10767
|
+
switch (_context186.prev = _context186.next) {
|
|
10707
10768
|
case 0:
|
|
10708
|
-
|
|
10709
|
-
return (0, _effects.all)([(0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.blockVintage.get.request().type, getBlockVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.blockVintage.post.request().type, postBlockVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.blockVintage.put.request().type, putBlockVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.blockVintage["delete"].request().type, deleteBlockVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.charts.get.request().type, getChartsSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.charts.post.request().type, postChartsSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.chartFilters.get.request().type, getChartFiltersSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.dashboardPages.get.request().type, getDashboardPagesSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.dashboardPageFilters.get.request().type, getDashboardPageFiltersSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cLearCache.get.request().type, getCLearCacheSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockNotes.get.request().type, getCropBlockNotesSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockNotes.post.request().type, postCropBlockNotesSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockNotes.put.request().type, putCropBlockNotesSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockNotes["delete"].request().type, deleteCropBlockNotesSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockPhenology.get.request().type, getCropBlockPhenologySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockPhenology.post.request().type, postCropBlockPhenologySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockPhenology.put.request().type, putCropBlockPhenologySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockPhenology["delete"].request().type, deleteCropBlockPhenologySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockSetting.get.request().type, getCropBlockSettingSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockSetting.post.request().type, postCropBlockSettingSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockSetting.put.request().type, putCropBlockSettingSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockVintage.get.request().type, getCropBlockVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockVintage.post.request().type, postCropBlockVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockVintage.put.request().type, putCropBlockVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockVintage["delete"].request().type, deleteCropBlockVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.healthcheck.get.request().type, gethealthcheckSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.healthcheck.post.request().type, posthealthcheckSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identity.get.request().type, getIdentitySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityDetails.get.request().type, getIdentityDetailsSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityStatus.post.request().type, postIdentityStatusSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityAccommodation.post.request().type, postIdentityAccommodationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityAccommodation.put.request().type, putIdentityAccommodationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityAccommodation.get.request().type, getIdentityAccommodationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityAccommodation["delete"].request().type, deleteIdentityAccommodationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityClassification.get.request().type, getIdentityClassificationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityClassification.post.request().type, postIdentityClassificationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityClassification.put.request().type, putIdentityClassificationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityClassification["delete"].request().type, deleteIdentityClassificationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityConsumable.post.request().type, postIdentityConsumableSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityConsumable.put.request().type, putIdentityConsumableSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityConsumable.get.request().type, getIdentityConsumableSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityConsumable["delete"].request().type, deleteIdentityConsumableSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityContactMethod.get.request().type, getIdentityContactMethodSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.contactMethod.post.request().type, postContactMethodSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.contactMethod.put.request().type, putContactMethodSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.contactMethod["delete"].request().type, deleteContactMethodSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityContactMethodAddress.get.request().type, getIdentityContactMethodAddressSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityContactMethodAddress.post.request().type, postIdentityContactMethodAddressSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityContactMethodAddress.put.request().type, putIdentityContactMethodAddressSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityCourse.post.request().type, postIdentityCourseSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityCourse.put.request().type, putIdentityCourseSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityCourse.get.request().type, getIdentityCourseSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityCourse["delete"].request().type, deleteIdentityCourseSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityDataConnector.get.request().type, getIdentityDataConnectorSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityDataConnector.post.request().type, postIdentityDataConnectorSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityDataConnector.put.request().type, putIdentityDataConnectorSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityDataConnector["delete"].request().type, deleteIdentityDataConnectorSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityNotes.get.request().type, getIdentityNotesSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityNote.put.request().type, putIdentityNoteSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityNote.post.request().type, postIdentityNoteSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityNote.get.request().type, getIdentityNoteSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityNoteImage.put.request().type, putIdentityNoteImageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityNoteImage["delete"].request().type, deleteIdentityNoteImageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityOrganisation.post.request().type, postIdentityOrganisationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityOrganisation.put.request().type, putIdentityOrganisationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityOrganisation.get.request().type, getIdentityOrganisationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityOrganisation["delete"].request().type, deleteIdentityOrganisationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityPerson.post.request().type, postIdentityPersonSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityPerson.put.request().type, putIdentityPersonSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityPerson.get.request().type, getIdentityPersonSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityPerson["delete"].request().type, deleteIdentityPersonSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityReference.get.request().type, getIdentityReferenceSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityReference.post.request().type, postIdentityReferenceSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityReference.put.request().type, putIdentityReferenceSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityReference["delete"].request().type, deleteIdentityReferenceSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityRelationship.get.request().type, getIdentityRelationshipSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityRelationship.post.request().type, postIdentityRelationshipSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityRelationship.put.request().type, putIdentityRelationshipSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityRelationshipType.get.request().type, getIdentityRelationshipTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityRole.post.request().type, postIdentityRoleSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityRole.put.request().type, putIdentityRoleSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityRole.get.request().type, getIdentityRoleSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityRole["delete"].request().type, deleteIdentityRoleSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityServiceProvider.get.request().type, getIdentityServiceProviderSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityServiceProvider.post.request().type, postIdentityServiceProviderSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityServiceProvider.put.request().type, putIdentityServiceProviderSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityServiceProvider["delete"].request().type, deleteIdentityServiceProviderSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVehicle.post.request().type, postIdentityVehicleSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVehicle.put.request().type, putIdentityVehicleSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVehicle.get.request().type, getIdentityVehicleSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVehicle["delete"].request().type, deleteIdentityVehicleSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.gridVineyardBlocks.get.request().type, getGridVineyardBlocksSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyardBlocks.get.request().type, getIdentityVineyardBlocksSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyardBlock.post.request().type, postIdentityVineyardBlockSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyardBlock.put.request().type, putIdentityVineyardBlockSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyardBlock["delete"].request().type, deleteIdentityVineyardBlockSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyardBlockRows.get.request().type, getIdentityVineyardBlockRowsSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyardBlockRow.post.request().type, postIdentityVineyardBlockRowSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyardBlockRow.put.request().type, putIdentityVineyardBlockRowSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyardBlockRow["delete"].request().type, deleteIdentityVineyardBlockRowSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.linkedDocument.post.request().type, postLinkedDocumentSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.linkedDocument.get.request().type, getLinkedDocumentSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.linkedDocument.put.request().type, putLinkedDocumentSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.linkedDocuments.get.request().type, getLinkedDocumentsSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.getLookUp.get.request().type, getGetLookUpSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.queueMessage.post.request().type, postQueueMessageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.objectLogo.post.request().type, postObjectLogoSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.objectLogo.get.request().type, getObjectLogoSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.objectLogo.put.request().type, putObjectLogoSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.objectLogo["delete"].request().type, deleteObjectLogoSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.processblocksampling.get.request().type, getprocessblocksamplingSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.processblocksampling.post.request().type, postprocessblocksamplingSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleHeaders.get.request().type, getSampleHeadersSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleHeaderStatus.put.request().type, putSampleHeaderStatusSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleHeader["delete"].request().type, deleteSampleHeaderSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleHeader.post.request().type, postSampleHeaderSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleIdentity.get.request().type, getSampleIdentitySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleIdentity.post.request().type, postSampleIdentitySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.assignSampleHeaders.post.request().type, postAssignSampleHeadersSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.samplingUsers.post.request().type, postSamplingUsersSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.deAssignSampleHeaders.post.request().type, postDeAssignSampleHeadersSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleSets.post.request().type, postSampleSetsSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleBlockVintages.get.request().type, getSampleBlockVintagesSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleSet.post.request().type, postSampleSetSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.searchIdentity.post.request().type, postSearchIdentitySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.searchTrackingVineyards.post.request().type, postSearchTrackingVineyardsSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.searchTrackingBlockVintages.post.request().type, postSearchTrackingBlockVintagesSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyard.get.request().type, getIdentityVineyardSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyard.post.request().type, postIdentityVineyardSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyard.put.request().type, putIdentityVineyardSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyard["delete"].request().type, deleteIdentityVineyardSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupClassification.get.request().type, getlookupClassificationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupClassificationGroup.get.request().type, getlookupClassificationGroupSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupClassificationGroupIdentityType.get.request().type, getlookupClassificationGroupIdentityTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupReferenceType.get.request().type, getlookupReferenceTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupIdentityType.get.request().type, getlookupIdentityTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupRoleType.get.request().type, getlookupRoleTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupRoleTypeIdentityType.get.request().type, getlookupRoleTypeIdentityTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupBusinessUnit.get.request().type, getlookupBusinessUnitSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupReferenceTypeIdentityType.get.request().type, getlookupReferenceTypeIdentityTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupRelationshipType.get.request().type, getlookupRelationshipTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupRelationshipSubType.get.request().type, getlookupRelationshipSubTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupContactMethod.get.request().type, getlookupContactMethodSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupGender.get.request().type, getlookupGenderSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupNationality.get.request().type, getlookupNationalitySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupEthnicity.get.request().type, getlookupEthnicitySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupLanguage.get.request().type, getlookupLanguageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupCountry.get.request().type, getlookupCountrySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupSalutation.get.request().type, getlookupSalutationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupGrowingRegion.get.request().type, getlookupGrowingRegionSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupGrowingSubRegion.get.request().type, getlookupGrowingSubRegionSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupTown.get.request().type, getlookupTownSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupVariety.get.request().type, getlookupVarietySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupBlockVintageStatus.get.request().type, getlookupBlockVintageStatusSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupTrellis.get.request().type, getlookupTrellisSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupRootStock.get.request().type, getlookupRootStockSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupVarietyClone.get.request().type, getlookupVarietyCloneSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupVintage.get.request().type, getlookupVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupRowSpecialAttribute.get.request().type, getlookupRowSpecialAttributeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupNoteStatus.get.request().type, getlookupNoteStatusSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupMeasure.get.request().type, getlookupMeasureSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupMeasureGroup.get.request().type, getlookupMeasureGroupSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupMeasureInstance.get.request().type, getlookupMeasureInstanceSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupKeyword.get.request().type, getlookupKeywordSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupSampleRequestStatus.get.request().type, getlookupSampleRequestStatusSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupPayrollSystem.get.request().type, getlookupPayrollSystemSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupDataProvider.get.request().type, getlookupDataProviderSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupDataProviderType.get.request().type, getlookupDataProviderTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupPhenologyMeasure.get.request().type, getlookupPhenologyMeasureSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupPhenologyMeasureOption.get.request().type, getlookupPhenologyMeasureOptionSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupPhenologyMeasureSet.get.request().type, getlookupPhenologyMeasureSetSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupPhenologyMeasureType.get.request().type, getlookupPhenologyMeasureTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupCropSettingInstance.get.request().type, getlookupCropSettingInstanceSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupCropSettingOption.get.request().type, getlookupCropSettingOptionSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupInactiveReason.get.request().type, getlookupInactiveReasonSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupDocumentType.get.request().type, getlookupDocumentTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupDocumentStatus.get.request().type, getlookupDocumentStatusSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupDashboardPageFilters.get.request().type, getlookupDashboardPageFiltersSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupChartFilters.get.request().type, getlookupChartFiltersSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupVehicleType.get.request().type, getlookupVehicleTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupVehicleMake.get.request().type, getlookupVehicleMakeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.fetchAllLookups.request().type, fetchAllLookupsSagas), (0, _effects.takeLatest)(function (action) {
|
|
10769
|
+
_context186.next = 2;
|
|
10770
|
+
return (0, _effects.all)([(0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.blockVintage.get.request().type, getBlockVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.blockVintage.post.request().type, postBlockVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.blockVintage.put.request().type, putBlockVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.blockVintage["delete"].request().type, deleteBlockVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.charts.get.request().type, getChartsSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.charts.post.request().type, postChartsSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.chartFilters.get.request().type, getChartFiltersSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.dashboardPages.get.request().type, getDashboardPagesSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.dashboardPageFilters.get.request().type, getDashboardPageFiltersSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cLearCache.get.request().type, getCLearCacheSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockNotes.get.request().type, getCropBlockNotesSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockNotes.post.request().type, postCropBlockNotesSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockNotes.put.request().type, putCropBlockNotesSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockNotes["delete"].request().type, deleteCropBlockNotesSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockPhenology.get.request().type, getCropBlockPhenologySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockPhenology.post.request().type, postCropBlockPhenologySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockPhenology.put.request().type, putCropBlockPhenologySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockPhenology["delete"].request().type, deleteCropBlockPhenologySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockSetting.get.request().type, getCropBlockSettingSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockSetting.post.request().type, postCropBlockSettingSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockSetting.put.request().type, putCropBlockSettingSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockVintage.get.request().type, getCropBlockVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockVintage.post.request().type, postCropBlockVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockVintage.put.request().type, putCropBlockVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.cropBlockVintage["delete"].request().type, deleteCropBlockVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.healthcheck.get.request().type, gethealthcheckSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.healthcheck.post.request().type, posthealthcheckSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identity.get.request().type, getIdentitySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityDetails.get.request().type, getIdentityDetailsSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityStatus.post.request().type, postIdentityStatusSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityAccommodation.post.request().type, postIdentityAccommodationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityAccommodation.put.request().type, putIdentityAccommodationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityAccommodation.get.request().type, getIdentityAccommodationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityAccommodation["delete"].request().type, deleteIdentityAccommodationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityClassification.get.request().type, getIdentityClassificationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityClassification.post.request().type, postIdentityClassificationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityClassification.put.request().type, putIdentityClassificationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityClassification["delete"].request().type, deleteIdentityClassificationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityConsumable.post.request().type, postIdentityConsumableSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityConsumable.put.request().type, putIdentityConsumableSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityConsumable.get.request().type, getIdentityConsumableSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityConsumable["delete"].request().type, deleteIdentityConsumableSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityContactMethod.get.request().type, getIdentityContactMethodSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.contactMethod.post.request().type, postContactMethodSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.contactMethod.put.request().type, putContactMethodSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.contactMethod["delete"].request().type, deleteContactMethodSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityContactMethodAddress.get.request().type, getIdentityContactMethodAddressSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityContactMethodAddress.post.request().type, postIdentityContactMethodAddressSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityContactMethodAddress.put.request().type, putIdentityContactMethodAddressSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityCourse.post.request().type, postIdentityCourseSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityCourse.put.request().type, putIdentityCourseSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityCourse.get.request().type, getIdentityCourseSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityCourse["delete"].request().type, deleteIdentityCourseSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityDataConnector.get.request().type, getIdentityDataConnectorSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityDataConnector.post.request().type, postIdentityDataConnectorSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityDataConnector.put.request().type, putIdentityDataConnectorSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityDataConnector["delete"].request().type, deleteIdentityDataConnectorSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityNotes.get.request().type, getIdentityNotesSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityNote.put.request().type, putIdentityNoteSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityNote.post.request().type, postIdentityNoteSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityNote.get.request().type, getIdentityNoteSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityNoteImage.put.request().type, putIdentityNoteImageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityNoteImage["delete"].request().type, deleteIdentityNoteImageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityOrganisation.post.request().type, postIdentityOrganisationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityOrganisation.put.request().type, putIdentityOrganisationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityOrganisation.get.request().type, getIdentityOrganisationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityOrganisation["delete"].request().type, deleteIdentityOrganisationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityPerson.post.request().type, postIdentityPersonSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityPerson.put.request().type, putIdentityPersonSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityPerson.get.request().type, getIdentityPersonSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityPerson["delete"].request().type, deleteIdentityPersonSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityReference.get.request().type, getIdentityReferenceSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityReference.post.request().type, postIdentityReferenceSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityReference.put.request().type, putIdentityReferenceSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityReference["delete"].request().type, deleteIdentityReferenceSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityRelationship.get.request().type, getIdentityRelationshipSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityRelationship.post.request().type, postIdentityRelationshipSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityRelationship.put.request().type, putIdentityRelationshipSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityRelationshipType.get.request().type, getIdentityRelationshipTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityRole.post.request().type, postIdentityRoleSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityRole.put.request().type, putIdentityRoleSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityRole.get.request().type, getIdentityRoleSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityRole["delete"].request().type, deleteIdentityRoleSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityServiceProvider.get.request().type, getIdentityServiceProviderSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityServiceProvider.post.request().type, postIdentityServiceProviderSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityServiceProvider.put.request().type, putIdentityServiceProviderSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityServiceProvider["delete"].request().type, deleteIdentityServiceProviderSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVehicle.post.request().type, postIdentityVehicleSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVehicle.put.request().type, putIdentityVehicleSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVehicle.get.request().type, getIdentityVehicleSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVehicle["delete"].request().type, deleteIdentityVehicleSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.gridVineyardBlocks.get.request().type, getGridVineyardBlocksSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyardBlocks.get.request().type, getIdentityVineyardBlocksSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyardBlock.post.request().type, postIdentityVineyardBlockSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyardBlock.put.request().type, putIdentityVineyardBlockSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyardBlock["delete"].request().type, deleteIdentityVineyardBlockSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyardBlockRows.get.request().type, getIdentityVineyardBlockRowsSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyardBlockRow.post.request().type, postIdentityVineyardBlockRowSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyardBlockRow.put.request().type, putIdentityVineyardBlockRowSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyardBlockRow["delete"].request().type, deleteIdentityVineyardBlockRowSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.linkedDocument.post.request().type, postLinkedDocumentSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.linkedDocument.get.request().type, getLinkedDocumentSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.linkedDocument.put.request().type, putLinkedDocumentSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.linkedDocuments.get.request().type, getLinkedDocumentsSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.getLookUp.get.request().type, getGetLookUpSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.queueMessage.post.request().type, postQueueMessageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.objectLogo.post.request().type, postObjectLogoSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.objectLogo.get.request().type, getObjectLogoSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.objectLogo.put.request().type, putObjectLogoSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.objectLogo["delete"].request().type, deleteObjectLogoSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.processblocksampling.get.request().type, getprocessblocksamplingSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.processblocksampling.post.request().type, postprocessblocksamplingSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleHeaders.get.request().type, getSampleHeadersSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleHeaderStatus.put.request().type, putSampleHeaderStatusSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleHeader["delete"].request().type, deleteSampleHeaderSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleHeader.post.request().type, postSampleHeaderSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleIdentity.get.request().type, getSampleIdentitySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleIdentity.post.request().type, postSampleIdentitySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.assignSampleHeaders.post.request().type, postAssignSampleHeadersSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.samplingUsers.post.request().type, postSamplingUsersSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.deAssignSampleHeaders.post.request().type, postDeAssignSampleHeadersSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleSets.post.request().type, postSampleSetsSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleBlockVintages.get.request().type, getSampleBlockVintagesSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.sampleSet.post.request().type, postSampleSetSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.searchIdentity.post.request().type, postSearchIdentitySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.searchTrackingVineyards.post.request().type, postSearchTrackingVineyardsSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.searchTrackingBlockVintages.post.request().type, postSearchTrackingBlockVintagesSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyard.get.request().type, getIdentityVineyardSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyard.post.request().type, postIdentityVineyardSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyard.put.request().type, putIdentityVineyardSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.identityVineyard["delete"].request().type, deleteIdentityVineyardSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupClassification.get.request().type, getlookupClassificationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupClassificationGroup.get.request().type, getlookupClassificationGroupSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupClassificationGroupIdentityType.get.request().type, getlookupClassificationGroupIdentityTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupReferenceType.get.request().type, getlookupReferenceTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupIdentityType.get.request().type, getlookupIdentityTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupRoleType.get.request().type, getlookupRoleTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupRoleTypeIdentityType.get.request().type, getlookupRoleTypeIdentityTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupBusinessUnit.get.request().type, getlookupBusinessUnitSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupReferenceTypeIdentityType.get.request().type, getlookupReferenceTypeIdentityTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupRelationshipType.get.request().type, getlookupRelationshipTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupRelationshipSubType.get.request().type, getlookupRelationshipSubTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupContactMethod.get.request().type, getlookupContactMethodSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupGender.get.request().type, getlookupGenderSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupNationality.get.request().type, getlookupNationalitySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupEthnicity.get.request().type, getlookupEthnicitySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupLanguage.get.request().type, getlookupLanguageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupCountry.get.request().type, getlookupCountrySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupSalutation.get.request().type, getlookupSalutationSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupGrowingRegion.get.request().type, getlookupGrowingRegionSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupGrowingSubRegion.get.request().type, getlookupGrowingSubRegionSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupTown.get.request().type, getlookupTownSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupVariety.get.request().type, getlookupVarietySagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupBlockVintageStatus.get.request().type, getlookupBlockVintageStatusSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupTrellis.get.request().type, getlookupTrellisSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupRootStock.get.request().type, getlookupRootStockSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupVarietyClone.get.request().type, getlookupVarietyCloneSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupVintage.get.request().type, getlookupVintageSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupRowSpecialAttribute.get.request().type, getlookupRowSpecialAttributeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupNoteStatus.get.request().type, getlookupNoteStatusSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupMeasure.get.request().type, getlookupMeasureSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupMeasureGroup.get.request().type, getlookupMeasureGroupSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupMeasureInstance.get.request().type, getlookupMeasureInstanceSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupKeyword.get.request().type, getlookupKeywordSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupSampleRequestStatus.get.request().type, getlookupSampleRequestStatusSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupPayrollSystem.get.request().type, getlookupPayrollSystemSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupDataProvider.get.request().type, getlookupDataProviderSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupDataProviderType.get.request().type, getlookupDataProviderTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupPhenologyMeasure.get.request().type, getlookupPhenologyMeasureSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupPhenologyMeasureOption.get.request().type, getlookupPhenologyMeasureOptionSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupPhenologyMeasureSet.get.request().type, getlookupPhenologyMeasureSetSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupPhenologyMeasureType.get.request().type, getlookupPhenologyMeasureTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupCropSettingInstance.get.request().type, getlookupCropSettingInstanceSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupCropSettingOption.get.request().type, getlookupCropSettingOptionSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupInactiveReason.get.request().type, getlookupInactiveReasonSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupDocumentType.get.request().type, getlookupDocumentTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupDocumentStatus.get.request().type, getlookupDocumentStatusSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupDashboardPageFilters.get.request().type, getlookupDashboardPageFiltersSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupChartFilters.get.request().type, getlookupChartFiltersSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupVehicleType.get.request().type, getlookupVehicleTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupVehicleMake.get.request().type, getlookupVehicleMakeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.lookupConsumableType.get.request().type, getlookupConsumableTypeSagas), (0, _effects.takeLatest)(_actions.VineaNovaActions.api.v1.fetchAllLookups.request().type, fetchAllLookupsSagas), (0, _effects.takeLatest)(function (action) {
|
|
10710
10771
|
return /CLEARDATA/.test(action.type);
|
|
10711
10772
|
}, clearReducerData), (0, _effects.takeLatest)(function (action) {
|
|
10712
10773
|
return /UPDATEPARTIALENTITY/.test(action.type);
|
|
@@ -10714,8 +10775,8 @@ function root() {
|
|
|
10714
10775
|
|
|
10715
10776
|
case 2:
|
|
10716
10777
|
case "end":
|
|
10717
|
-
return
|
|
10778
|
+
return _context186.stop();
|
|
10718
10779
|
}
|
|
10719
10780
|
}
|
|
10720
|
-
},
|
|
10781
|
+
}, _marked186);
|
|
10721
10782
|
}
|
package/dist/selectors/index.js
CHANGED
|
@@ -1408,6 +1408,19 @@ Object.keys(_lookupVehicleMakeSelector).forEach(function (key) {
|
|
|
1408
1408
|
});
|
|
1409
1409
|
});
|
|
1410
1410
|
|
|
1411
|
+
var _lookupConsumableTypeSelector = require("./lookupConsumableTypeSelector");
|
|
1412
|
+
|
|
1413
|
+
Object.keys(_lookupConsumableTypeSelector).forEach(function (key) {
|
|
1414
|
+
if (key === "default" || key === "__esModule") return;
|
|
1415
|
+
if (key in exports && exports[key] === _lookupConsumableTypeSelector[key]) return;
|
|
1416
|
+
Object.defineProperty(exports, key, {
|
|
1417
|
+
enumerable: true,
|
|
1418
|
+
get: function get() {
|
|
1419
|
+
return _lookupConsumableTypeSelector[key];
|
|
1420
|
+
}
|
|
1421
|
+
});
|
|
1422
|
+
});
|
|
1423
|
+
|
|
1411
1424
|
var _lookupStatusSelector = require("./lookupStatusSelector");
|
|
1412
1425
|
|
|
1413
1426
|
Object.keys(_lookupStatusSelector).forEach(function (key) {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getlookupConsumableTypeEntityMeta = exports.getlookupConsumableTypeEntityData = exports.getlookupConsumableTypeEntity = void 0;
|
|
7
|
+
|
|
8
|
+
var _reselect = require("reselect");
|
|
9
|
+
|
|
10
|
+
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
11
|
+
|
|
12
|
+
var _dateFns = require("date-fns");
|
|
13
|
+
|
|
14
|
+
var _isNil = _interopRequireDefault(require("lodash/isNil"));
|
|
15
|
+
|
|
16
|
+
var _has = _interopRequireDefault(require("lodash/has"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
21
|
+
|
|
22
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
23
|
+
|
|
24
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
25
|
+
|
|
26
|
+
var getlookupConsumableTypeEntity = function getlookupConsumableTypeEntity(state) {
|
|
27
|
+
return state.entities.lookupConsumableType;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
exports.getlookupConsumableTypeEntity = getlookupConsumableTypeEntity;
|
|
31
|
+
var getlookupConsumableTypeEntityMeta = (0, _reselect.createSelector)([getlookupConsumableTypeEntity], function (reference) {
|
|
32
|
+
var isLoading = reference.isLoading,
|
|
33
|
+
isLoaded = reference.isLoaded,
|
|
34
|
+
hasError = reference.hasError,
|
|
35
|
+
error = reference.error;
|
|
36
|
+
return {
|
|
37
|
+
isLoading: isLoading,
|
|
38
|
+
isLoaded: isLoaded,
|
|
39
|
+
hasError: hasError,
|
|
40
|
+
error: error
|
|
41
|
+
};
|
|
42
|
+
});
|
|
43
|
+
exports.getlookupConsumableTypeEntityMeta = getlookupConsumableTypeEntityMeta;
|
|
44
|
+
var getlookupConsumableTypeEntityData = (0, _reselect.createSelector)([getlookupConsumableTypeEntity], function (reference) {
|
|
45
|
+
var _reference$data = reference.data,
|
|
46
|
+
data = _reference$data === void 0 ? [] : _reference$data;
|
|
47
|
+
var refData = (0, _isEmpty["default"])(data) ? [] : data;
|
|
48
|
+
if (!Array.isArray(refData) || (0, _isNil["default"])(refData)) return [];
|
|
49
|
+
var formattedData = refData.map(function (d) {
|
|
50
|
+
var hasDates = false;
|
|
51
|
+
var fromDate = '';
|
|
52
|
+
var toDate = '';
|
|
53
|
+
var fromTo = '';
|
|
54
|
+
|
|
55
|
+
if ((0, _has["default"])(d, 'effectiveToDate') && (0, _has["default"])(d, 'effectiveFromDate')) {
|
|
56
|
+
hasDates = true;
|
|
57
|
+
toDate = !(0, _isEmpty["default"])(d.effectiveToDate) && (0, _dateFns.isValid)(new Date(d.effectiveToDate)) ? (0, _dateFns.format)(new Date(d.effectiveToDate), viewDateFormat) : '';
|
|
58
|
+
fromDate = !(0, _isEmpty["default"])(d.effectiveFromDate) && (0, _dateFns.isValid)(new Date(d.effectiveFromDate)) ? (0, _dateFns.format)(new Date(d.effectiveFromDate), viewDateFormat) : '';
|
|
59
|
+
var seperator = toDate ? '-' : '';
|
|
60
|
+
fromToDate = "".concat(fromDate, " ").concat(seperator, " ").concat(toDate);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return _objectSpread(_objectSpread({}, d), hasDates && {
|
|
64
|
+
fromDate: fromDate,
|
|
65
|
+
toDate: toDate,
|
|
66
|
+
fromTo: fromTo
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
return formattedData;
|
|
70
|
+
});
|
|
71
|
+
exports.getlookupConsumableTypeEntityData = getlookupConsumableTypeEntityData;
|
|
@@ -207,7 +207,11 @@ var getLkplookupVehicleMake = function getLkplookupVehicleMake(state) {
|
|
|
207
207
|
return state.entities.lookupVehicleMake;
|
|
208
208
|
};
|
|
209
209
|
|
|
210
|
-
var
|
|
210
|
+
var getLkplookupConsumableType = function getLkplookupConsumableType(state) {
|
|
211
|
+
return state.entities.lookupConsumableType;
|
|
212
|
+
};
|
|
213
|
+
|
|
214
|
+
var areLookupsLoading = (0, _reselect.createSelector)([getLkplookupClassification, getLkplookupClassificationGroup, getLkplookupClassificationGroupIdentityType, getLkplookupReferenceType, getLkplookupIdentityType, getLkplookupRoleType, getLkplookupRoleTypeIdentityType, getLkplookupBusinessUnit, getLkplookupReferenceTypeIdentityType, getLkplookupRelationshipType, getLkplookupRelationshipSubType, getLkplookupContactMethod, getLkplookupGender, getLkplookupNationality, getLkplookupEthnicity, getLkplookupLanguage, getLkplookupCountry, getLkplookupSalutation, getLkplookupGrowingRegion, getLkplookupGrowingSubRegion, getLkplookupTown, getLkplookupVariety, getLkplookupBlockVintageStatus, getLkplookupTrellis, getLkplookupRootStock, getLkplookupVarietyClone, getLkplookupVintage, getLkplookupRowSpecialAttribute, getLkplookupNoteStatus, getLkplookupMeasure, getLkplookupMeasureGroup, getLkplookupMeasureInstance, getLkplookupKeyword, getLkplookupSampleRequestStatus, getLkplookupPayrollSystem, getLkplookupDataProvider, getLkplookupDataProviderType, getLkplookupPhenologyMeasure, getLkplookupPhenologyMeasureOption, getLkplookupPhenologyMeasureSet, getLkplookupPhenologyMeasureType, getLkplookupCropSettingInstance, getLkplookupCropSettingOption, getLkplookupInactiveReason, getLkplookupDocumentType, getLkplookupDocumentStatus, getLkplookupDashboardPageFilters, getLkplookupChartFilters, getLkplookupVehicleType, getLkplookupVehicleMake, getLkplookupConsumableType], function (lkplookupClassification, lkplookupClassificationGroup, lkplookupClassificationGroupIdentityType, lkplookupReferenceType, lkplookupIdentityType, lkplookupRoleType, lkplookupRoleTypeIdentityType, lkplookupBusinessUnit, lkplookupReferenceTypeIdentityType, lkplookupRelationshipType, lkplookupRelationshipSubType, lkplookupContactMethod, lkplookupGender, lkplookupNationality, lkplookupEthnicity, lkplookupLanguage, lkplookupCountry, lkplookupSalutation, lkplookupGrowingRegion, lkplookupGrowingSubRegion, lkplookupTown, lkplookupVariety, lkplookupBlockVintageStatus, lkplookupTrellis, lkplookupRootStock, lkplookupVarietyClone, lkplookupVintage, lkplookupRowSpecialAttribute, lkplookupNoteStatus, lkplookupMeasure, lkplookupMeasureGroup, lkplookupMeasureInstance, lkplookupKeyword, lkplookupSampleRequestStatus, lkplookupPayrollSystem, lkplookupDataProvider, lkplookupDataProviderType, lkplookupPhenologyMeasure, lkplookupPhenologyMeasureOption, lkplookupPhenologyMeasureSet, lkplookupPhenologyMeasureType, lkplookupCropSettingInstance, lkplookupCropSettingOption, lkplookupInactiveReason, lkplookupDocumentType, lkplookupDocumentStatus, lkplookupDashboardPageFilters, lkplookupChartFilters, lkplookupVehicleType, lkplookupVehicleMake, lkplookupConsumableType) {
|
|
211
215
|
var lookupClassificationIsLoading = lkplookupClassification.isLoading;
|
|
212
216
|
var lookupClassificationGroupIsLoading = lkplookupClassificationGroup.isLoading;
|
|
213
217
|
var lookupClassificationGroupIdentityTypeIsLoading = lkplookupClassificationGroupIdentityType.isLoading;
|
|
@@ -258,10 +262,11 @@ var areLookupsLoading = (0, _reselect.createSelector)([getLkplookupClassificatio
|
|
|
258
262
|
var lookupChartFiltersIsLoading = lkplookupChartFilters.isLoading;
|
|
259
263
|
var lookupVehicleTypeIsLoading = lkplookupVehicleType.isLoading;
|
|
260
264
|
var lookupVehicleMakeIsLoading = lkplookupVehicleMake.isLoading;
|
|
261
|
-
|
|
265
|
+
var lookupConsumableTypeIsLoading = lkplookupConsumableType.isLoading;
|
|
266
|
+
return lookupClassificationIsLoading || lookupClassificationGroupIsLoading || lookupClassificationGroupIdentityTypeIsLoading || lookupReferenceTypeIsLoading || lookupIdentityTypeIsLoading || lookupRoleTypeIsLoading || lookupRoleTypeIdentityTypeIsLoading || lookupBusinessUnitIsLoading || lookupReferenceTypeIdentityTypeIsLoading || lookupRelationshipTypeIsLoading || lookupRelationshipSubTypeIsLoading || lookupContactMethodIsLoading || lookupGenderIsLoading || lookupNationalityIsLoading || lookupEthnicityIsLoading || lookupLanguageIsLoading || lookupCountryIsLoading || lookupSalutationIsLoading || lookupGrowingRegionIsLoading || lookupGrowingSubRegionIsLoading || lookupTownIsLoading || lookupVarietyIsLoading || lookupBlockVintageStatusIsLoading || lookupTrellisIsLoading || lookupRootStockIsLoading || lookupVarietyCloneIsLoading || lookupVintageIsLoading || lookupRowSpecialAttributeIsLoading || lookupNoteStatusIsLoading || lookupMeasureIsLoading || lookupMeasureGroupIsLoading || lookupMeasureInstanceIsLoading || lookupKeywordIsLoading || lookupSampleRequestStatusIsLoading || lookupPayrollSystemIsLoading || lookupDataProviderIsLoading || lookupDataProviderTypeIsLoading || lookupPhenologyMeasureIsLoading || lookupPhenologyMeasureOptionIsLoading || lookupPhenologyMeasureSetIsLoading || lookupPhenologyMeasureTypeIsLoading || lookupCropSettingInstanceIsLoading || lookupCropSettingOptionIsLoading || lookupInactiveReasonIsLoading || lookupDocumentTypeIsLoading || lookupDocumentStatusIsLoading || lookupDashboardPageFiltersIsLoading || lookupChartFiltersIsLoading || lookupVehicleTypeIsLoading || lookupVehicleMakeIsLoading || lookupConsumableTypeIsLoading || false;
|
|
262
267
|
});
|
|
263
268
|
exports.areLookupsLoading = areLookupsLoading;
|
|
264
|
-
var areLookupsLoaded = (0, _reselect.createSelector)([getLkplookupClassification, getLkplookupClassificationGroup, getLkplookupClassificationGroupIdentityType, getLkplookupReferenceType, getLkplookupIdentityType, getLkplookupRoleType, getLkplookupRoleTypeIdentityType, getLkplookupBusinessUnit, getLkplookupReferenceTypeIdentityType, getLkplookupRelationshipType, getLkplookupRelationshipSubType, getLkplookupContactMethod, getLkplookupGender, getLkplookupNationality, getLkplookupEthnicity, getLkplookupLanguage, getLkplookupCountry, getLkplookupSalutation, getLkplookupGrowingRegion, getLkplookupGrowingSubRegion, getLkplookupTown, getLkplookupVariety, getLkplookupBlockVintageStatus, getLkplookupTrellis, getLkplookupRootStock, getLkplookupVarietyClone, getLkplookupVintage, getLkplookupRowSpecialAttribute, getLkplookupNoteStatus, getLkplookupMeasure, getLkplookupMeasureGroup, getLkplookupMeasureInstance, getLkplookupKeyword, getLkplookupSampleRequestStatus, getLkplookupPayrollSystem, getLkplookupDataProvider, getLkplookupDataProviderType, getLkplookupPhenologyMeasure, getLkplookupPhenologyMeasureOption, getLkplookupPhenologyMeasureSet, getLkplookupPhenologyMeasureType, getLkplookupCropSettingInstance, getLkplookupCropSettingOption, getLkplookupInactiveReason, getLkplookupDocumentType, getLkplookupDocumentStatus, getLkplookupDashboardPageFilters, getLkplookupChartFilters, getLkplookupVehicleType, getLkplookupVehicleMake], function (lkplookupClassification, lkplookupClassificationGroup, lkplookupClassificationGroupIdentityType, lkplookupReferenceType, lkplookupIdentityType, lkplookupRoleType, lkplookupRoleTypeIdentityType, lkplookupBusinessUnit, lkplookupReferenceTypeIdentityType, lkplookupRelationshipType, lkplookupRelationshipSubType, lkplookupContactMethod, lkplookupGender, lkplookupNationality, lkplookupEthnicity, lkplookupLanguage, lkplookupCountry, lkplookupSalutation, lkplookupGrowingRegion, lkplookupGrowingSubRegion, lkplookupTown, lkplookupVariety, lkplookupBlockVintageStatus, lkplookupTrellis, lkplookupRootStock, lkplookupVarietyClone, lkplookupVintage, lkplookupRowSpecialAttribute, lkplookupNoteStatus, lkplookupMeasure, lkplookupMeasureGroup, lkplookupMeasureInstance, lkplookupKeyword, lkplookupSampleRequestStatus, lkplookupPayrollSystem, lkplookupDataProvider, lkplookupDataProviderType, lkplookupPhenologyMeasure, lkplookupPhenologyMeasureOption, lkplookupPhenologyMeasureSet, lkplookupPhenologyMeasureType, lkplookupCropSettingInstance, lkplookupCropSettingOption, lkplookupInactiveReason, lkplookupDocumentType, lkplookupDocumentStatus, lkplookupDashboardPageFilters, lkplookupChartFilters, lkplookupVehicleType, lkplookupVehicleMake) {
|
|
269
|
+
var areLookupsLoaded = (0, _reselect.createSelector)([getLkplookupClassification, getLkplookupClassificationGroup, getLkplookupClassificationGroupIdentityType, getLkplookupReferenceType, getLkplookupIdentityType, getLkplookupRoleType, getLkplookupRoleTypeIdentityType, getLkplookupBusinessUnit, getLkplookupReferenceTypeIdentityType, getLkplookupRelationshipType, getLkplookupRelationshipSubType, getLkplookupContactMethod, getLkplookupGender, getLkplookupNationality, getLkplookupEthnicity, getLkplookupLanguage, getLkplookupCountry, getLkplookupSalutation, getLkplookupGrowingRegion, getLkplookupGrowingSubRegion, getLkplookupTown, getLkplookupVariety, getLkplookupBlockVintageStatus, getLkplookupTrellis, getLkplookupRootStock, getLkplookupVarietyClone, getLkplookupVintage, getLkplookupRowSpecialAttribute, getLkplookupNoteStatus, getLkplookupMeasure, getLkplookupMeasureGroup, getLkplookupMeasureInstance, getLkplookupKeyword, getLkplookupSampleRequestStatus, getLkplookupPayrollSystem, getLkplookupDataProvider, getLkplookupDataProviderType, getLkplookupPhenologyMeasure, getLkplookupPhenologyMeasureOption, getLkplookupPhenologyMeasureSet, getLkplookupPhenologyMeasureType, getLkplookupCropSettingInstance, getLkplookupCropSettingOption, getLkplookupInactiveReason, getLkplookupDocumentType, getLkplookupDocumentStatus, getLkplookupDashboardPageFilters, getLkplookupChartFilters, getLkplookupVehicleType, getLkplookupVehicleMake, getLkplookupConsumableType], function (lkplookupClassification, lkplookupClassificationGroup, lkplookupClassificationGroupIdentityType, lkplookupReferenceType, lkplookupIdentityType, lkplookupRoleType, lkplookupRoleTypeIdentityType, lkplookupBusinessUnit, lkplookupReferenceTypeIdentityType, lkplookupRelationshipType, lkplookupRelationshipSubType, lkplookupContactMethod, lkplookupGender, lkplookupNationality, lkplookupEthnicity, lkplookupLanguage, lkplookupCountry, lkplookupSalutation, lkplookupGrowingRegion, lkplookupGrowingSubRegion, lkplookupTown, lkplookupVariety, lkplookupBlockVintageStatus, lkplookupTrellis, lkplookupRootStock, lkplookupVarietyClone, lkplookupVintage, lkplookupRowSpecialAttribute, lkplookupNoteStatus, lkplookupMeasure, lkplookupMeasureGroup, lkplookupMeasureInstance, lkplookupKeyword, lkplookupSampleRequestStatus, lkplookupPayrollSystem, lkplookupDataProvider, lkplookupDataProviderType, lkplookupPhenologyMeasure, lkplookupPhenologyMeasureOption, lkplookupPhenologyMeasureSet, lkplookupPhenologyMeasureType, lkplookupCropSettingInstance, lkplookupCropSettingOption, lkplookupInactiveReason, lkplookupDocumentType, lkplookupDocumentStatus, lkplookupDashboardPageFilters, lkplookupChartFilters, lkplookupVehicleType, lkplookupVehicleMake, lkplookupConsumableType) {
|
|
265
270
|
var lookupClassificationIsLoaded = lkplookupClassification.isLoaded;
|
|
266
271
|
var lookupClassificationGroupIsLoaded = lkplookupClassificationGroup.isLoaded;
|
|
267
272
|
var lookupClassificationGroupIdentityTypeIsLoaded = lkplookupClassificationGroupIdentityType.isLoaded;
|
|
@@ -312,6 +317,7 @@ var areLookupsLoaded = (0, _reselect.createSelector)([getLkplookupClassification
|
|
|
312
317
|
var lookupChartFiltersIsLoaded = lkplookupChartFilters.isLoaded;
|
|
313
318
|
var lookupVehicleTypeIsLoaded = lkplookupVehicleType.isLoaded;
|
|
314
319
|
var lookupVehicleMakeIsLoaded = lkplookupVehicleMake.isLoaded;
|
|
315
|
-
|
|
320
|
+
var lookupConsumableTypeIsLoaded = lkplookupConsumableType.isLoaded;
|
|
321
|
+
return lookupClassificationIsLoaded || lookupClassificationGroupIsLoaded || lookupClassificationGroupIdentityTypeIsLoaded || lookupReferenceTypeIsLoaded || lookupIdentityTypeIsLoaded || lookupRoleTypeIsLoaded || lookupRoleTypeIdentityTypeIsLoaded || lookupBusinessUnitIsLoaded || lookupReferenceTypeIdentityTypeIsLoaded || lookupRelationshipTypeIsLoaded || lookupRelationshipSubTypeIsLoaded || lookupContactMethodIsLoaded || lookupGenderIsLoaded || lookupNationalityIsLoaded || lookupEthnicityIsLoaded || lookupLanguageIsLoaded || lookupCountryIsLoaded || lookupSalutationIsLoaded || lookupGrowingRegionIsLoaded || lookupGrowingSubRegionIsLoaded || lookupTownIsLoaded || lookupVarietyIsLoaded || lookupBlockVintageStatusIsLoaded || lookupTrellisIsLoaded || lookupRootStockIsLoaded || lookupVarietyCloneIsLoaded || lookupVintageIsLoaded || lookupRowSpecialAttributeIsLoaded || lookupNoteStatusIsLoaded || lookupMeasureIsLoaded || lookupMeasureGroupIsLoaded || lookupMeasureInstanceIsLoaded || lookupKeywordIsLoaded || lookupSampleRequestStatusIsLoaded || lookupPayrollSystemIsLoaded || lookupDataProviderIsLoaded || lookupDataProviderTypeIsLoaded || lookupPhenologyMeasureIsLoaded || lookupPhenologyMeasureOptionIsLoaded || lookupPhenologyMeasureSetIsLoaded || lookupPhenologyMeasureTypeIsLoaded || lookupCropSettingInstanceIsLoaded || lookupCropSettingOptionIsLoaded || lookupInactiveReasonIsLoaded || lookupDocumentTypeIsLoaded || lookupDocumentStatusIsLoaded || lookupDashboardPageFiltersIsLoaded || lookupChartFiltersIsLoaded || lookupVehicleTypeIsLoaded || lookupVehicleMakeIsLoaded || lookupConsumableTypeIsLoaded || false;
|
|
316
322
|
});
|
|
317
323
|
exports.areLookupsLoaded = areLookupsLoaded;
|
|
@@ -5,8 +5,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
9
|
-
exports.putSampleHeaderStatus = exports.putObjectLogo = exports.putLinkedDocument = exports.putIdentityVineyardBlockRow = exports.putIdentityVineyardBlock = exports.putIdentityVineyard = exports.putIdentityVehicle = exports.putIdentityServiceProvider = exports.putIdentityRole = exports.putIdentityRelationship = exports.putIdentityReference = exports.putIdentityPerson = exports.putIdentityOrganisation = exports.putIdentityNoteImage = exports.putIdentityNote = exports.putIdentityDataConnector = exports.putIdentityCourse = exports.putIdentityContactMethodAddress = exports.putIdentityConsumable = exports.putIdentityClassification = exports.putIdentityAccommodation = exports.putCropBlockVintage = exports.putCropBlockSetting = exports.putCropBlockPhenology = exports.putCropBlockNotes = exports.putContactMethod = exports.putBlockVintage = exports.postprocessblocksampling = exports.posthealthcheck = exports.postSearchTrackingVineyards = exports.postSearchTrackingBlockVintages = exports.postSearchIdentity = exports.postSamplingUsers = exports.postSampleSets = exports.postSampleSet = exports.postSampleIdentity = exports.postSampleHeader = exports.postQueueMessage = exports.postObjectLogo = exports.postLinkedDocument = exports.postIdentityVineyardBlockRow = exports.postIdentityVineyardBlock = exports.postIdentityVineyard = exports.postIdentityVehicle = exports.postIdentityStatus = exports.postIdentityServiceProvider = exports.postIdentityRole = exports.postIdentityRelationship = exports.postIdentityReference = exports.postIdentityPerson = exports.postIdentityOrganisation = exports.postIdentityNote = exports.postIdentityDataConnector = exports.postIdentityCourse = exports.postIdentityContactMethodAddress = exports.postIdentityConsumable = exports.postIdentityClassification = exports.postIdentityAccommodation = exports.postDeAssignSampleHeaders = exports.postCropBlockVintage = exports.postCropBlockSetting = exports.postCropBlockPhenology = exports.postCropBlockNotes = exports.postContactMethod = exports.postCharts = exports.postBlockVintage = exports.postAssignSampleHeaders = exports.getprocessblocksampling = exports.getlookupVintage = exports.getlookupVehicleType = exports.getlookupVehicleMake = exports.getlookupVarietyClone = exports.getlookupVariety = exports.getlookupTrellis = exports.getlookupTown = exports.getlookupSampleRequestStatus = exports.getlookupSalutation = exports.getlookupRowSpecialAttribute = exports.getlookupRootStock = exports.getlookupRoleTypeIdentityType = exports.getlookupRoleType = void 0;
|
|
8
|
+
exports.getlookupRelationshipSubType = exports.getlookupReferenceTypeIdentityType = exports.getlookupReferenceType = exports.getlookupPhenologyMeasureType = exports.getlookupPhenologyMeasureSet = exports.getlookupPhenologyMeasureOption = exports.getlookupPhenologyMeasure = exports.getlookupPayrollSystem = exports.getlookupNoteStatus = exports.getlookupNationality = exports.getlookupMeasureInstance = exports.getlookupMeasureGroup = exports.getlookupMeasure = exports.getlookupLanguage = exports.getlookupKeyword = exports.getlookupInactiveReason = exports.getlookupIdentityType = exports.getlookupGrowingSubRegion = exports.getlookupGrowingRegion = exports.getlookupGender = exports.getlookupEthnicity = exports.getlookupDocumentType = exports.getlookupDocumentStatus = exports.getlookupDataProviderType = exports.getlookupDataProvider = exports.getlookupDashboardPageFilters = exports.getlookupCropSettingOption = exports.getlookupCropSettingInstance = exports.getlookupCountry = exports.getlookupContactMethod = exports.getlookupConsumableType = exports.getlookupClassificationGroupIdentityType = exports.getlookupClassificationGroup = exports.getlookupClassification = exports.getlookupChartFilters = exports.getlookupBusinessUnit = exports.getlookupBlockVintageStatus = exports.gethealthcheck = exports.getSampleIdentity = exports.getSampleHeaders = exports.getSampleBlockVintages = exports.getObjectLogo = exports.getLinkedDocuments = exports.getLinkedDocument = exports.getIdentityVineyardBlocks = exports.getIdentityVineyardBlockRows = exports.getIdentityVineyard = exports.getIdentityVehicle = exports.getIdentityServiceProvider = exports.getIdentityRole = exports.getIdentityRelationshipType = exports.getIdentityRelationship = exports.getIdentityReference = exports.getIdentityPerson = exports.getIdentityOrganisation = exports.getIdentityNotes = exports.getIdentityNote = exports.getIdentityDetails = exports.getIdentityDataConnector = exports.getIdentityCourse = exports.getIdentityContactMethodAddress = exports.getIdentityContactMethod = exports.getIdentityConsumable = exports.getIdentityClassification = exports.getIdentityAccommodation = exports.getIdentity = exports.getGridVineyardBlocks = exports.getGetLookUp = exports.getDashboardPages = exports.getDashboardPageFilters = exports.getCropBlockVintage = exports.getCropBlockSetting = exports.getCropBlockPhenology = exports.getCropBlockNotes = exports.getCharts = exports.getChartFilters = exports.getCLearCache = exports.getBlockVintage = exports.deleteSampleHeader = exports.deleteObjectLogo = exports.deleteIdentityVineyardBlockRow = exports.deleteIdentityVineyardBlock = exports.deleteIdentityVineyard = exports.deleteIdentityVehicle = exports.deleteIdentityServiceProvider = exports.deleteIdentityRole = exports.deleteIdentityReference = exports.deleteIdentityPerson = exports.deleteIdentityOrganisation = exports.deleteIdentityNoteImage = exports.deleteIdentityDataConnector = exports.deleteIdentityCourse = exports.deleteIdentityConsumable = exports.deleteIdentityClassification = exports.deleteIdentityAccommodation = exports.deleteCropBlockVintage = exports.deleteCropBlockPhenology = exports.deleteCropBlockNotes = exports.deleteContactMethod = exports.deleteBlockVintage = void 0;
|
|
9
|
+
exports.putSampleHeaderStatus = exports.putObjectLogo = exports.putLinkedDocument = exports.putIdentityVineyardBlockRow = exports.putIdentityVineyardBlock = exports.putIdentityVineyard = exports.putIdentityVehicle = exports.putIdentityServiceProvider = exports.putIdentityRole = exports.putIdentityRelationship = exports.putIdentityReference = exports.putIdentityPerson = exports.putIdentityOrganisation = exports.putIdentityNoteImage = exports.putIdentityNote = exports.putIdentityDataConnector = exports.putIdentityCourse = exports.putIdentityContactMethodAddress = exports.putIdentityConsumable = exports.putIdentityClassification = exports.putIdentityAccommodation = exports.putCropBlockVintage = exports.putCropBlockSetting = exports.putCropBlockPhenology = exports.putCropBlockNotes = exports.putContactMethod = exports.putBlockVintage = exports.postprocessblocksampling = exports.posthealthcheck = exports.postSearchTrackingVineyards = exports.postSearchTrackingBlockVintages = exports.postSearchIdentity = exports.postSamplingUsers = exports.postSampleSets = exports.postSampleSet = exports.postSampleIdentity = exports.postSampleHeader = exports.postQueueMessage = exports.postObjectLogo = exports.postLinkedDocument = exports.postIdentityVineyardBlockRow = exports.postIdentityVineyardBlock = exports.postIdentityVineyard = exports.postIdentityVehicle = exports.postIdentityStatus = exports.postIdentityServiceProvider = exports.postIdentityRole = exports.postIdentityRelationship = exports.postIdentityReference = exports.postIdentityPerson = exports.postIdentityOrganisation = exports.postIdentityNote = exports.postIdentityDataConnector = exports.postIdentityCourse = exports.postIdentityContactMethodAddress = exports.postIdentityConsumable = exports.postIdentityClassification = exports.postIdentityAccommodation = exports.postDeAssignSampleHeaders = exports.postCropBlockVintage = exports.postCropBlockSetting = exports.postCropBlockPhenology = exports.postCropBlockNotes = exports.postContactMethod = exports.postCharts = exports.postBlockVintage = exports.postAssignSampleHeaders = exports.getprocessblocksampling = exports.getlookupVintage = exports.getlookupVehicleType = exports.getlookupVehicleMake = exports.getlookupVarietyClone = exports.getlookupVariety = exports.getlookupTrellis = exports.getlookupTown = exports.getlookupSampleRequestStatus = exports.getlookupSalutation = exports.getlookupRowSpecialAttribute = exports.getlookupRootStock = exports.getlookupRoleTypeIdentityType = exports.getlookupRoleType = exports.getlookupRelationshipType = void 0;
|
|
10
10
|
|
|
11
11
|
var _winstonLogger = _interopRequireDefault(require("../utils/winstonLogger"));
|
|
12
12
|
|
|
@@ -9750,4 +9750,58 @@ var getlookupVehicleMake = /*#__PURE__*/function () {
|
|
|
9750
9750
|
};
|
|
9751
9751
|
}();
|
|
9752
9752
|
|
|
9753
|
-
exports.getlookupVehicleMake = getlookupVehicleMake;
|
|
9753
|
+
exports.getlookupVehicleMake = getlookupVehicleMake;
|
|
9754
|
+
|
|
9755
|
+
var getlookupConsumableType = /*#__PURE__*/function () {
|
|
9756
|
+
var _ref544 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee182(payload) {
|
|
9757
|
+
var _ref545, queryParams, postBody, options, _ref546, _ref546$code, code, API_FUNCTION_CODE, apiUrl, response;
|
|
9758
|
+
|
|
9759
|
+
return _regeneratorRuntime().wrap(function _callee182$(_context182) {
|
|
9760
|
+
while (1) {
|
|
9761
|
+
switch (_context182.prev = _context182.next) {
|
|
9762
|
+
case 0:
|
|
9763
|
+
_context182.prev = 0;
|
|
9764
|
+
_ref545 = payload || {}, queryParams = _ref545.queryParams, postBody = _ref545.postBody, options = _ref545.options;
|
|
9765
|
+
_ref546 = queryParams || {}, _ref546$code = _ref546.code, code = _ref546$code === void 0 ? '' : _ref546$code;
|
|
9766
|
+
API_FUNCTION_CODE = process.env.REACT_APP_FUNCTION_CODE || code;
|
|
9767
|
+
apiUrl = '/GetLookUp';
|
|
9768
|
+
_context182.next = 7;
|
|
9769
|
+
return _serviceConfig["default"].request(_objectSpread({
|
|
9770
|
+
url: apiUrl,
|
|
9771
|
+
method: "get",
|
|
9772
|
+
params: _objectSpread(_objectSpread({}, queryParams), {}, {
|
|
9773
|
+
code: API_FUNCTION_CODE,
|
|
9774
|
+
LookUpName: 'lookupConsumableType'.replace('lookup', '')
|
|
9775
|
+
}),
|
|
9776
|
+
headers: {
|
|
9777
|
+
"Content-Type": "application/json",
|
|
9778
|
+
Accept: "application/json"
|
|
9779
|
+
}
|
|
9780
|
+
}, options));
|
|
9781
|
+
|
|
9782
|
+
case 7:
|
|
9783
|
+
response = _context182.sent;
|
|
9784
|
+
return _context182.abrupt("return", response);
|
|
9785
|
+
|
|
9786
|
+
case 11:
|
|
9787
|
+
_context182.prev = 11;
|
|
9788
|
+
_context182.t0 = _context182["catch"](0);
|
|
9789
|
+
|
|
9790
|
+
_winstonLogger["default"].error(_context182.t0);
|
|
9791
|
+
|
|
9792
|
+
throw _context182.t0;
|
|
9793
|
+
|
|
9794
|
+
case 15:
|
|
9795
|
+
case "end":
|
|
9796
|
+
return _context182.stop();
|
|
9797
|
+
}
|
|
9798
|
+
}
|
|
9799
|
+
}, _callee182, null, [[0, 11]]);
|
|
9800
|
+
}));
|
|
9801
|
+
|
|
9802
|
+
return function getlookupConsumableType(_x182) {
|
|
9803
|
+
return _ref544.apply(this, arguments);
|
|
9804
|
+
};
|
|
9805
|
+
}();
|
|
9806
|
+
|
|
9807
|
+
exports.getlookupConsumableType = getlookupConsumableType;
|
package/package.json
CHANGED
|
@@ -1486,6 +1486,15 @@ const ducksActions = createActions({
|
|
|
1486
1486
|
UPDATEPARTIALENTITY:[(payload) => payload, ()=> ({ reducerName: 'lookupVehicleMake' })],
|
|
1487
1487
|
},
|
|
1488
1488
|
},
|
|
1489
|
+
lookupConsumableType: {
|
|
1490
|
+
get: {
|
|
1491
|
+
REQUEST: [(payload) => payload, ()=> ({ reducerName: 'lookupConsumableType' })],
|
|
1492
|
+
RECEIVE: [(payload) => payload, ()=> ({ reducerName: 'lookupConsumableType' })],
|
|
1493
|
+
ERROR: [(payload) => payload, ()=> ({ reducerName: 'lookupConsumableType' })],
|
|
1494
|
+
CLEARDATA: [(payload) => payload, ()=> ({ reducerName: 'lookupConsumableType' })],
|
|
1495
|
+
UPDATEPARTIALENTITY:[(payload) => payload, ()=> ({ reducerName: 'lookupConsumableType' })],
|
|
1496
|
+
},
|
|
1497
|
+
},
|
|
1489
1498
|
fetchAllLookups: {
|
|
1490
1499
|
REQUEST: [(payload) => payload, ()=> ({ reducerName: 'allLookups' })],
|
|
1491
1500
|
},
|
package/src/reducers/index.js
CHANGED
|
@@ -111,6 +111,7 @@ const rootReducer = {
|
|
|
111
111
|
lookupChartFilters: createNamedReducer('lookupChartFilters'),
|
|
112
112
|
lookupVehicleType: createNamedReducer('lookupVehicleType'),
|
|
113
113
|
lookupVehicleMake: createNamedReducer('lookupVehicleMake'),
|
|
114
|
+
lookupConsumableType: createNamedReducer('lookupConsumableType'),
|
|
114
115
|
}),
|
|
115
116
|
};
|
|
116
117
|
|
|
@@ -5574,6 +5574,37 @@ import { VineaNovaActions } from '../actions'
|
|
|
5574
5574
|
}
|
|
5575
5575
|
|
|
5576
5576
|
|
|
5577
|
+
export function* getlookupConsumableTypeSagas(action) {
|
|
5578
|
+
const {
|
|
5579
|
+
payload = {},
|
|
5580
|
+
meta: { reducerName },
|
|
5581
|
+
} = action;
|
|
5582
|
+
try {
|
|
5583
|
+
yield put({
|
|
5584
|
+
type: "FETCHING",
|
|
5585
|
+
name: reducerName,
|
|
5586
|
+
});
|
|
5587
|
+
|
|
5588
|
+
const response = yield call(APIServices.getlookupConsumableType, payload);
|
|
5589
|
+
yield put({
|
|
5590
|
+
type: "SUCCESS",
|
|
5591
|
+
payload: response,
|
|
5592
|
+
name: reducerName,
|
|
5593
|
+
});
|
|
5594
|
+
|
|
5595
|
+
|
|
5596
|
+
} catch (err) {
|
|
5597
|
+
logger.error(err);
|
|
5598
|
+
/* istanbul ignore next */
|
|
5599
|
+
yield put({
|
|
5600
|
+
type: "ERROR",
|
|
5601
|
+
payload: err,
|
|
5602
|
+
name: reducerName,
|
|
5603
|
+
});
|
|
5604
|
+
}
|
|
5605
|
+
}
|
|
5606
|
+
|
|
5607
|
+
|
|
5577
5608
|
|
|
5578
5609
|
/** run all lookups requests **/
|
|
5579
5610
|
export function* fetchAllLookupsSagas(action) {
|
|
@@ -5728,6 +5759,9 @@ export function* fetchAllLookupsSagas(action) {
|
|
|
5728
5759
|
yield put(
|
|
5729
5760
|
VineaNovaActions.api.v1.lookupVehicleMake.get.request(),
|
|
5730
5761
|
);
|
|
5762
|
+
yield put(
|
|
5763
|
+
VineaNovaActions.api.v1.lookupConsumableType.get.request(),
|
|
5764
|
+
);
|
|
5731
5765
|
} catch (err) {
|
|
5732
5766
|
logger.error(err);
|
|
5733
5767
|
}
|
|
@@ -5959,6 +5993,7 @@ export default function* root() {
|
|
|
5959
5993
|
takeLatest(VineaNovaActions.api.v1.lookupChartFilters.get.request().type, getlookupChartFiltersSagas),
|
|
5960
5994
|
takeLatest(VineaNovaActions.api.v1.lookupVehicleType.get.request().type, getlookupVehicleTypeSagas),
|
|
5961
5995
|
takeLatest(VineaNovaActions.api.v1.lookupVehicleMake.get.request().type, getlookupVehicleMakeSagas),
|
|
5996
|
+
takeLatest(VineaNovaActions.api.v1.lookupConsumableType.get.request().type, getlookupConsumableTypeSagas),
|
|
5962
5997
|
takeLatest(VineaNovaActions.api.v1.fetchAllLookups.request().type, fetchAllLookupsSagas),
|
|
5963
5998
|
takeLatest((action)=> /CLEARDATA/.test(action.type), clearReducerData),
|
|
5964
5999
|
takeLatest((action)=> /UPDATEPARTIALENTITY/.test(action.type), commonEntityPartialUpdateActionCreator),
|
package/src/selectors/index.js
CHANGED
|
@@ -107,4 +107,5 @@ export * from "./lookupDashboardPageFiltersSelector";
|
|
|
107
107
|
export * from "./lookupChartFiltersSelector";
|
|
108
108
|
export * from "./lookupVehicleTypeSelector";
|
|
109
109
|
export * from "./lookupVehicleMakeSelector";
|
|
110
|
+
export * from "./lookupConsumableTypeSelector";
|
|
110
111
|
export * from './lookupStatusSelector';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { createSelector } from 'reselect';
|
|
2
|
+
import isEmpty from 'lodash/isEmpty';
|
|
3
|
+
import {isValid, format} from 'date-fns';
|
|
4
|
+
import isNil from 'lodash/isNil';
|
|
5
|
+
import has from 'lodash/has';
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export const getlookupConsumableTypeEntity = state => state.entities.lookupConsumableType;
|
|
9
|
+
|
|
10
|
+
export const getlookupConsumableTypeEntityMeta = createSelector(
|
|
11
|
+
[getlookupConsumableTypeEntity],
|
|
12
|
+
reference => {
|
|
13
|
+
const { isLoading, isLoaded, hasError, error } = reference;
|
|
14
|
+
return {
|
|
15
|
+
isLoading,
|
|
16
|
+
isLoaded,
|
|
17
|
+
hasError,
|
|
18
|
+
error,
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
export const getlookupConsumableTypeEntityData = createSelector(
|
|
24
|
+
[getlookupConsumableTypeEntity],
|
|
25
|
+
reference => {
|
|
26
|
+
const { data = [] } = reference;
|
|
27
|
+
const refData = isEmpty(data) ? [] : data;
|
|
28
|
+
if (!Array.isArray(refData) || isNil(refData)) return [];
|
|
29
|
+
|
|
30
|
+
const formattedData = refData.map(d => {
|
|
31
|
+
let hasDates = false;
|
|
32
|
+
let fromDate = '';
|
|
33
|
+
let toDate = '';
|
|
34
|
+
let fromTo = '';
|
|
35
|
+
|
|
36
|
+
if(has(d, 'effectiveToDate') && has(d, 'effectiveFromDate')){
|
|
37
|
+
hasDates = true;
|
|
38
|
+
toDate =
|
|
39
|
+
!isEmpty(d.effectiveToDate) && isValid(new Date(d.effectiveToDate))
|
|
40
|
+
? format(new Date(d.effectiveToDate), viewDateFormat)
|
|
41
|
+
: '';
|
|
42
|
+
fromDate =
|
|
43
|
+
!isEmpty(d.effectiveFromDate) &&
|
|
44
|
+
isValid(new Date(d.effectiveFromDate))
|
|
45
|
+
? format(new Date(d.effectiveFromDate), viewDateFormat)
|
|
46
|
+
: '';
|
|
47
|
+
const seperator = toDate ? '-' : '';
|
|
48
|
+
fromToDate = `${fromDate} ${seperator} ${toDate}`;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return {
|
|
52
|
+
...d,
|
|
53
|
+
...(hasDates && {
|
|
54
|
+
fromDate,
|
|
55
|
+
toDate,
|
|
56
|
+
fromTo,
|
|
57
|
+
})
|
|
58
|
+
};
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
return formattedData;
|
|
62
|
+
},
|
|
63
|
+
);
|
|
64
|
+
|
|
@@ -50,6 +50,7 @@ const getLkplookupDashboardPageFilters = state => state.entities.lookupDashboard
|
|
|
50
50
|
const getLkplookupChartFilters = state => state.entities.lookupChartFilters;
|
|
51
51
|
const getLkplookupVehicleType = state => state.entities.lookupVehicleType;
|
|
52
52
|
const getLkplookupVehicleMake = state => state.entities.lookupVehicleMake;
|
|
53
|
+
const getLkplookupConsumableType = state => state.entities.lookupConsumableType;
|
|
53
54
|
|
|
54
55
|
export const areLookupsLoading = createSelector(
|
|
55
56
|
[
|
|
@@ -103,6 +104,7 @@ export const areLookupsLoading = createSelector(
|
|
|
103
104
|
getLkplookupChartFilters,
|
|
104
105
|
getLkplookupVehicleType,
|
|
105
106
|
getLkplookupVehicleMake,
|
|
107
|
+
getLkplookupConsumableType,
|
|
106
108
|
],
|
|
107
109
|
(
|
|
108
110
|
lkplookupClassification,
|
|
@@ -155,6 +157,7 @@ export const areLookupsLoading = createSelector(
|
|
|
155
157
|
lkplookupChartFilters,
|
|
156
158
|
lkplookupVehicleType,
|
|
157
159
|
lkplookupVehicleMake,
|
|
160
|
+
lkplookupConsumableType,
|
|
158
161
|
) => {
|
|
159
162
|
const { isLoading: lookupClassificationIsLoading } = lkplookupClassification;
|
|
160
163
|
const { isLoading: lookupClassificationGroupIsLoading } = lkplookupClassificationGroup;
|
|
@@ -206,6 +209,7 @@ export const areLookupsLoading = createSelector(
|
|
|
206
209
|
const { isLoading: lookupChartFiltersIsLoading } = lkplookupChartFilters;
|
|
207
210
|
const { isLoading: lookupVehicleTypeIsLoading } = lkplookupVehicleType;
|
|
208
211
|
const { isLoading: lookupVehicleMakeIsLoading } = lkplookupVehicleMake;
|
|
212
|
+
const { isLoading: lookupConsumableTypeIsLoading } = lkplookupConsumableType;
|
|
209
213
|
|
|
210
214
|
return (
|
|
211
215
|
lookupClassificationIsLoading ||
|
|
@@ -258,6 +262,7 @@ export const areLookupsLoading = createSelector(
|
|
|
258
262
|
lookupChartFiltersIsLoading ||
|
|
259
263
|
lookupVehicleTypeIsLoading ||
|
|
260
264
|
lookupVehicleMakeIsLoading ||
|
|
265
|
+
lookupConsumableTypeIsLoading ||
|
|
261
266
|
false
|
|
262
267
|
);
|
|
263
268
|
},
|
|
@@ -316,6 +321,7 @@ export const areLookupsLoaded = createSelector(
|
|
|
316
321
|
getLkplookupChartFilters,
|
|
317
322
|
getLkplookupVehicleType,
|
|
318
323
|
getLkplookupVehicleMake,
|
|
324
|
+
getLkplookupConsumableType,
|
|
319
325
|
],
|
|
320
326
|
(
|
|
321
327
|
lkplookupClassification,
|
|
@@ -368,6 +374,7 @@ export const areLookupsLoaded = createSelector(
|
|
|
368
374
|
lkplookupChartFilters,
|
|
369
375
|
lkplookupVehicleType,
|
|
370
376
|
lkplookupVehicleMake,
|
|
377
|
+
lkplookupConsumableType,
|
|
371
378
|
) => {
|
|
372
379
|
const { isLoaded: lookupClassificationIsLoaded } = lkplookupClassification;
|
|
373
380
|
const { isLoaded: lookupClassificationGroupIsLoaded } = lkplookupClassificationGroup;
|
|
@@ -419,6 +426,7 @@ export const areLookupsLoaded = createSelector(
|
|
|
419
426
|
const { isLoaded: lookupChartFiltersIsLoaded } = lkplookupChartFilters;
|
|
420
427
|
const { isLoaded: lookupVehicleTypeIsLoaded } = lkplookupVehicleType;
|
|
421
428
|
const { isLoaded: lookupVehicleMakeIsLoaded } = lkplookupVehicleMake;
|
|
429
|
+
const { isLoaded: lookupConsumableTypeIsLoaded } = lkplookupConsumableType;
|
|
422
430
|
|
|
423
431
|
return (
|
|
424
432
|
lookupClassificationIsLoaded ||
|
|
@@ -471,6 +479,7 @@ export const areLookupsLoaded = createSelector(
|
|
|
471
479
|
lookupChartFiltersIsLoaded ||
|
|
472
480
|
lookupVehicleTypeIsLoaded ||
|
|
473
481
|
lookupVehicleMakeIsLoaded ||
|
|
482
|
+
lookupConsumableTypeIsLoaded ||
|
|
474
483
|
false
|
|
475
484
|
);
|
|
476
485
|
},
|
|
@@ -4946,3 +4946,31 @@ import serviceConfig from "./config/serviceConfig";
|
|
|
4946
4946
|
};
|
|
4947
4947
|
|
|
4948
4948
|
|
|
4949
|
+
export const getlookupConsumableType = async (payload) => {
|
|
4950
|
+
try {
|
|
4951
|
+
const { queryParams, postBody, options } = payload || {};
|
|
4952
|
+
const { code = '' } = queryParams || {};
|
|
4953
|
+
const API_FUNCTION_CODE = process.env.REACT_APP_FUNCTION_CODE || code;
|
|
4954
|
+
let apiUrl = '/GetLookUp';
|
|
4955
|
+
const response = await serviceConfig.request({
|
|
4956
|
+
url: apiUrl,
|
|
4957
|
+
method: "get",
|
|
4958
|
+
params: {
|
|
4959
|
+
...queryParams,
|
|
4960
|
+
code: API_FUNCTION_CODE,
|
|
4961
|
+
LookUpName: 'lookupConsumableType'.replace('lookup',''),
|
|
4962
|
+
},
|
|
4963
|
+
headers: {
|
|
4964
|
+
"Content-Type": "application/json",
|
|
4965
|
+
Accept: "application/json",
|
|
4966
|
+
},
|
|
4967
|
+
...options,
|
|
4968
|
+
});
|
|
4969
|
+
return response;
|
|
4970
|
+
} catch (err) {
|
|
4971
|
+
logger.error(err);
|
|
4972
|
+
throw err;
|
|
4973
|
+
}
|
|
4974
|
+
};
|
|
4975
|
+
|
|
4976
|
+
|