vineanova-redux-artifacts 1.119.11 → 1.119.13
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 +150 -33
- package/dist/reducers/index.js +4 -1
- package/dist/sagas/vineaNovaApi.sagas.js +730 -595
- package/dist/selectors/index.js +44 -11
- package/dist/selectors/planActivityBlocksSelector.js +59 -0
- package/dist/selectors/workerPayPeriodsSelector.js +59 -0
- package/dist/selectors/workerWorkRecordsSelector.js +59 -0
- package/dist/services/apiServices.js +519 -408
- package/package.json +1 -1
- package/src/actions/commonActions.js +36 -9
- package/src/reducers/index.js +4 -1
- package/src/sagas/vineaNovaApi.sagas.js +112 -16
- package/src/selectors/index.js +4 -1
- package/src/selectors/planActivityBlocksSelector.js +65 -0
- package/src/selectors/workerPayPeriodsSelector.js +65 -0
- package/src/selectors/workerWorkRecordsSelector.js +65 -0
- package/src/services/apiServices.js +92 -20
package/CHANGELOG.md
CHANGED
|
@@ -5456,45 +5456,86 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
5456
5456
|
}]
|
|
5457
5457
|
}
|
|
5458
5458
|
},
|
|
5459
|
-
|
|
5459
|
+
updatePlanActivityBlocks: {
|
|
5460
|
+
put: {
|
|
5461
|
+
REQUEST: [function (payload) {
|
|
5462
|
+
return payload;
|
|
5463
|
+
}, function () {
|
|
5464
|
+
return {
|
|
5465
|
+
reducerName: 'updatePlanActivityBlocks'
|
|
5466
|
+
};
|
|
5467
|
+
}],
|
|
5468
|
+
RECEIVE: [function (payload) {
|
|
5469
|
+
return payload;
|
|
5470
|
+
}, function () {
|
|
5471
|
+
return {
|
|
5472
|
+
reducerName: 'updatePlanActivityBlocks'
|
|
5473
|
+
};
|
|
5474
|
+
}],
|
|
5475
|
+
ERROR: [function (payload) {
|
|
5476
|
+
return payload;
|
|
5477
|
+
}, function () {
|
|
5478
|
+
return {
|
|
5479
|
+
reducerName: 'updatePlanActivityBlocks'
|
|
5480
|
+
};
|
|
5481
|
+
}],
|
|
5482
|
+
CLEARDATA: [function (payload) {
|
|
5483
|
+
return payload;
|
|
5484
|
+
}, function () {
|
|
5485
|
+
return {
|
|
5486
|
+
reducerName: 'updatePlanActivityBlocks'
|
|
5487
|
+
};
|
|
5488
|
+
}],
|
|
5489
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
5490
|
+
return payload;
|
|
5491
|
+
}, function () {
|
|
5492
|
+
return {
|
|
5493
|
+
reducerName: 'updatePlanActivityBlocks'
|
|
5494
|
+
};
|
|
5495
|
+
}]
|
|
5496
|
+
}
|
|
5497
|
+
},
|
|
5498
|
+
planActivityBlocks: {
|
|
5460
5499
|
get: {
|
|
5461
5500
|
REQUEST: [function (payload) {
|
|
5462
5501
|
return payload;
|
|
5463
5502
|
}, function () {
|
|
5464
5503
|
return {
|
|
5465
|
-
reducerName: '
|
|
5504
|
+
reducerName: 'planActivityBlocks'
|
|
5466
5505
|
};
|
|
5467
5506
|
}],
|
|
5468
5507
|
RECEIVE: [function (payload) {
|
|
5469
5508
|
return payload;
|
|
5470
5509
|
}, function () {
|
|
5471
5510
|
return {
|
|
5472
|
-
reducerName: '
|
|
5511
|
+
reducerName: 'planActivityBlocks'
|
|
5473
5512
|
};
|
|
5474
5513
|
}],
|
|
5475
5514
|
ERROR: [function (payload) {
|
|
5476
5515
|
return payload;
|
|
5477
5516
|
}, function () {
|
|
5478
5517
|
return {
|
|
5479
|
-
reducerName: '
|
|
5518
|
+
reducerName: 'planActivityBlocks'
|
|
5480
5519
|
};
|
|
5481
5520
|
}],
|
|
5482
5521
|
CLEARDATA: [function (payload) {
|
|
5483
5522
|
return payload;
|
|
5484
5523
|
}, function () {
|
|
5485
5524
|
return {
|
|
5486
|
-
reducerName: '
|
|
5525
|
+
reducerName: 'planActivityBlocks'
|
|
5487
5526
|
};
|
|
5488
5527
|
}],
|
|
5489
5528
|
UPDATEPARTIALENTITY: [function (payload) {
|
|
5490
5529
|
return payload;
|
|
5491
5530
|
}, function () {
|
|
5492
5531
|
return {
|
|
5493
|
-
reducerName: '
|
|
5532
|
+
reducerName: 'planActivityBlocks'
|
|
5494
5533
|
};
|
|
5495
5534
|
}]
|
|
5496
|
-
}
|
|
5497
|
-
|
|
5535
|
+
}
|
|
5536
|
+
},
|
|
5537
|
+
planBlocks: {
|
|
5538
|
+
get: {
|
|
5498
5539
|
REQUEST: [function (payload) {
|
|
5499
5540
|
return payload;
|
|
5500
5541
|
}, function () {
|
|
@@ -5531,7 +5572,7 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
5531
5572
|
};
|
|
5532
5573
|
}]
|
|
5533
5574
|
},
|
|
5534
|
-
|
|
5575
|
+
post: {
|
|
5535
5576
|
REQUEST: [function (payload) {
|
|
5536
5577
|
return payload;
|
|
5537
5578
|
}, function () {
|
|
@@ -5568,7 +5609,7 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
5568
5609
|
};
|
|
5569
5610
|
}]
|
|
5570
5611
|
},
|
|
5571
|
-
|
|
5612
|
+
put: {
|
|
5572
5613
|
REQUEST: [function (payload) {
|
|
5573
5614
|
return payload;
|
|
5574
5615
|
}, function () {
|
|
@@ -5604,121 +5645,119 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
5604
5645
|
reducerName: 'planBlocks'
|
|
5605
5646
|
};
|
|
5606
5647
|
}]
|
|
5607
|
-
}
|
|
5608
|
-
|
|
5609
|
-
getAvailablePlanBlocks: {
|
|
5610
|
-
get: {
|
|
5648
|
+
},
|
|
5649
|
+
"delete": {
|
|
5611
5650
|
REQUEST: [function (payload) {
|
|
5612
5651
|
return payload;
|
|
5613
5652
|
}, function () {
|
|
5614
5653
|
return {
|
|
5615
|
-
reducerName: '
|
|
5654
|
+
reducerName: 'planBlocks'
|
|
5616
5655
|
};
|
|
5617
5656
|
}],
|
|
5618
5657
|
RECEIVE: [function (payload) {
|
|
5619
5658
|
return payload;
|
|
5620
5659
|
}, function () {
|
|
5621
5660
|
return {
|
|
5622
|
-
reducerName: '
|
|
5661
|
+
reducerName: 'planBlocks'
|
|
5623
5662
|
};
|
|
5624
5663
|
}],
|
|
5625
5664
|
ERROR: [function (payload) {
|
|
5626
5665
|
return payload;
|
|
5627
5666
|
}, function () {
|
|
5628
5667
|
return {
|
|
5629
|
-
reducerName: '
|
|
5668
|
+
reducerName: 'planBlocks'
|
|
5630
5669
|
};
|
|
5631
5670
|
}],
|
|
5632
5671
|
CLEARDATA: [function (payload) {
|
|
5633
5672
|
return payload;
|
|
5634
5673
|
}, function () {
|
|
5635
5674
|
return {
|
|
5636
|
-
reducerName: '
|
|
5675
|
+
reducerName: 'planBlocks'
|
|
5637
5676
|
};
|
|
5638
5677
|
}],
|
|
5639
5678
|
UPDATEPARTIALENTITY: [function (payload) {
|
|
5640
5679
|
return payload;
|
|
5641
5680
|
}, function () {
|
|
5642
5681
|
return {
|
|
5643
|
-
reducerName: '
|
|
5682
|
+
reducerName: 'planBlocks'
|
|
5644
5683
|
};
|
|
5645
5684
|
}]
|
|
5646
5685
|
}
|
|
5647
5686
|
},
|
|
5648
|
-
|
|
5649
|
-
|
|
5687
|
+
getAvailablePlanBlocks: {
|
|
5688
|
+
get: {
|
|
5650
5689
|
REQUEST: [function (payload) {
|
|
5651
5690
|
return payload;
|
|
5652
5691
|
}, function () {
|
|
5653
5692
|
return {
|
|
5654
|
-
reducerName: '
|
|
5693
|
+
reducerName: 'getAvailablePlanBlocks'
|
|
5655
5694
|
};
|
|
5656
5695
|
}],
|
|
5657
5696
|
RECEIVE: [function (payload) {
|
|
5658
5697
|
return payload;
|
|
5659
5698
|
}, function () {
|
|
5660
5699
|
return {
|
|
5661
|
-
reducerName: '
|
|
5700
|
+
reducerName: 'getAvailablePlanBlocks'
|
|
5662
5701
|
};
|
|
5663
5702
|
}],
|
|
5664
5703
|
ERROR: [function (payload) {
|
|
5665
5704
|
return payload;
|
|
5666
5705
|
}, function () {
|
|
5667
5706
|
return {
|
|
5668
|
-
reducerName: '
|
|
5707
|
+
reducerName: 'getAvailablePlanBlocks'
|
|
5669
5708
|
};
|
|
5670
5709
|
}],
|
|
5671
5710
|
CLEARDATA: [function (payload) {
|
|
5672
5711
|
return payload;
|
|
5673
5712
|
}, function () {
|
|
5674
5713
|
return {
|
|
5675
|
-
reducerName: '
|
|
5714
|
+
reducerName: 'getAvailablePlanBlocks'
|
|
5676
5715
|
};
|
|
5677
5716
|
}],
|
|
5678
5717
|
UPDATEPARTIALENTITY: [function (payload) {
|
|
5679
5718
|
return payload;
|
|
5680
5719
|
}, function () {
|
|
5681
5720
|
return {
|
|
5682
|
-
reducerName: '
|
|
5721
|
+
reducerName: 'getAvailablePlanBlocks'
|
|
5683
5722
|
};
|
|
5684
5723
|
}]
|
|
5685
5724
|
}
|
|
5686
5725
|
},
|
|
5687
|
-
|
|
5688
|
-
|
|
5726
|
+
bulkPlanBlocks: {
|
|
5727
|
+
"delete": {
|
|
5689
5728
|
REQUEST: [function (payload) {
|
|
5690
5729
|
return payload;
|
|
5691
5730
|
}, function () {
|
|
5692
5731
|
return {
|
|
5693
|
-
reducerName: '
|
|
5732
|
+
reducerName: 'bulkPlanBlocks'
|
|
5694
5733
|
};
|
|
5695
5734
|
}],
|
|
5696
5735
|
RECEIVE: [function (payload) {
|
|
5697
5736
|
return payload;
|
|
5698
5737
|
}, function () {
|
|
5699
5738
|
return {
|
|
5700
|
-
reducerName: '
|
|
5739
|
+
reducerName: 'bulkPlanBlocks'
|
|
5701
5740
|
};
|
|
5702
5741
|
}],
|
|
5703
5742
|
ERROR: [function (payload) {
|
|
5704
5743
|
return payload;
|
|
5705
5744
|
}, function () {
|
|
5706
5745
|
return {
|
|
5707
|
-
reducerName: '
|
|
5746
|
+
reducerName: 'bulkPlanBlocks'
|
|
5708
5747
|
};
|
|
5709
5748
|
}],
|
|
5710
5749
|
CLEARDATA: [function (payload) {
|
|
5711
5750
|
return payload;
|
|
5712
5751
|
}, function () {
|
|
5713
5752
|
return {
|
|
5714
|
-
reducerName: '
|
|
5753
|
+
reducerName: 'bulkPlanBlocks'
|
|
5715
5754
|
};
|
|
5716
5755
|
}],
|
|
5717
5756
|
UPDATEPARTIALENTITY: [function (payload) {
|
|
5718
5757
|
return payload;
|
|
5719
5758
|
}, function () {
|
|
5720
5759
|
return {
|
|
5721
|
-
reducerName: '
|
|
5760
|
+
reducerName: 'bulkPlanBlocks'
|
|
5722
5761
|
};
|
|
5723
5762
|
}]
|
|
5724
5763
|
}
|
|
@@ -7604,6 +7643,84 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
7604
7643
|
}]
|
|
7605
7644
|
}
|
|
7606
7645
|
},
|
|
7646
|
+
workerPayPeriods: {
|
|
7647
|
+
get: {
|
|
7648
|
+
REQUEST: [function (payload) {
|
|
7649
|
+
return payload;
|
|
7650
|
+
}, function () {
|
|
7651
|
+
return {
|
|
7652
|
+
reducerName: 'workerPayPeriods'
|
|
7653
|
+
};
|
|
7654
|
+
}],
|
|
7655
|
+
RECEIVE: [function (payload) {
|
|
7656
|
+
return payload;
|
|
7657
|
+
}, function () {
|
|
7658
|
+
return {
|
|
7659
|
+
reducerName: 'workerPayPeriods'
|
|
7660
|
+
};
|
|
7661
|
+
}],
|
|
7662
|
+
ERROR: [function (payload) {
|
|
7663
|
+
return payload;
|
|
7664
|
+
}, function () {
|
|
7665
|
+
return {
|
|
7666
|
+
reducerName: 'workerPayPeriods'
|
|
7667
|
+
};
|
|
7668
|
+
}],
|
|
7669
|
+
CLEARDATA: [function (payload) {
|
|
7670
|
+
return payload;
|
|
7671
|
+
}, function () {
|
|
7672
|
+
return {
|
|
7673
|
+
reducerName: 'workerPayPeriods'
|
|
7674
|
+
};
|
|
7675
|
+
}],
|
|
7676
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
7677
|
+
return payload;
|
|
7678
|
+
}, function () {
|
|
7679
|
+
return {
|
|
7680
|
+
reducerName: 'workerPayPeriods'
|
|
7681
|
+
};
|
|
7682
|
+
}]
|
|
7683
|
+
}
|
|
7684
|
+
},
|
|
7685
|
+
workerWorkRecords: {
|
|
7686
|
+
get: {
|
|
7687
|
+
REQUEST: [function (payload) {
|
|
7688
|
+
return payload;
|
|
7689
|
+
}, function () {
|
|
7690
|
+
return {
|
|
7691
|
+
reducerName: 'workerWorkRecords'
|
|
7692
|
+
};
|
|
7693
|
+
}],
|
|
7694
|
+
RECEIVE: [function (payload) {
|
|
7695
|
+
return payload;
|
|
7696
|
+
}, function () {
|
|
7697
|
+
return {
|
|
7698
|
+
reducerName: 'workerWorkRecords'
|
|
7699
|
+
};
|
|
7700
|
+
}],
|
|
7701
|
+
ERROR: [function (payload) {
|
|
7702
|
+
return payload;
|
|
7703
|
+
}, function () {
|
|
7704
|
+
return {
|
|
7705
|
+
reducerName: 'workerWorkRecords'
|
|
7706
|
+
};
|
|
7707
|
+
}],
|
|
7708
|
+
CLEARDATA: [function (payload) {
|
|
7709
|
+
return payload;
|
|
7710
|
+
}, function () {
|
|
7711
|
+
return {
|
|
7712
|
+
reducerName: 'workerWorkRecords'
|
|
7713
|
+
};
|
|
7714
|
+
}],
|
|
7715
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
7716
|
+
return payload;
|
|
7717
|
+
}, function () {
|
|
7718
|
+
return {
|
|
7719
|
+
reducerName: 'workerWorkRecords'
|
|
7720
|
+
};
|
|
7721
|
+
}]
|
|
7722
|
+
}
|
|
7723
|
+
},
|
|
7607
7724
|
lookupClassification: {
|
|
7608
7725
|
get: {
|
|
7609
7726
|
REQUEST: [function (payload) {
|
package/dist/reducers/index.js
CHANGED
|
@@ -69,10 +69,11 @@ var rootReducer = {
|
|
|
69
69
|
planActivities: (0, _createNamedReducer["default"])('planActivities'),
|
|
70
70
|
planActivitiesByPlan: (0, _createNamedReducer["default"])('planActivitiesByPlan'),
|
|
71
71
|
planActivityTotalWorkUnits: (0, _createNamedReducer["default"])('planActivityTotalWorkUnits'),
|
|
72
|
+
updatePlanActivityBlocks: (0, _createNamedReducer["default"])('updatePlanActivityBlocks'),
|
|
73
|
+
planActivityBlocks: (0, _createNamedReducer["default"])('planActivityBlocks'),
|
|
72
74
|
planBlocks: (0, _createNamedReducer["default"])('planBlocks'),
|
|
73
75
|
getAvailablePlanBlocks: (0, _createNamedReducer["default"])('getAvailablePlanBlocks'),
|
|
74
76
|
bulkPlanBlocks: (0, _createNamedReducer["default"])('bulkPlanBlocks'),
|
|
75
|
-
updatePlanActivityBlocks: (0, _createNamedReducer["default"])('updatePlanActivityBlocks'),
|
|
76
77
|
plans: (0, _createNamedReducer["default"])('plans'),
|
|
77
78
|
processblocksampling: (0, _createNamedReducer["default"])('processblocksampling'),
|
|
78
79
|
reports: (0, _createNamedReducer["default"])('reports'),
|
|
@@ -107,6 +108,8 @@ var rootReducer = {
|
|
|
107
108
|
blocksForSupplyContract: (0, _createNamedReducer["default"])('blocksForSupplyContract'),
|
|
108
109
|
identityVineyard: (0, _createNamedReducer["default"])('identityVineyard'),
|
|
109
110
|
triggerVintraceMetricDataSync: (0, _createNamedReducer["default"])('triggerVintraceMetricDataSync'),
|
|
111
|
+
workerPayPeriods: (0, _createNamedReducer["default"])('workerPayPeriods'),
|
|
112
|
+
workerWorkRecords: (0, _createNamedReducer["default"])('workerWorkRecords'),
|
|
110
113
|
lookupClassification: (0, _createNamedReducer["default"])('lookupClassification'),
|
|
111
114
|
lookupClassificationGroup: (0, _createNamedReducer["default"])('lookupClassificationGroup'),
|
|
112
115
|
lookupClassificationGroupIdentityType: (0, _createNamedReducer["default"])('lookupClassificationGroupIdentityType'),
|