vineanova-redux-artifacts 1.60.0 → 1.63.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 +2 -1
- package/dist/actions/commonActions.js +347 -0
- package/dist/reducers/index.js +8 -1
- package/dist/sagas/vineaNovaApi.sagas.js +863 -334
- package/dist/selectors/index.js +91 -0
- package/dist/selectors/lookupConsumableTypeSelector.js +71 -0
- package/dist/selectors/lookupSensorStatusSelector.js +71 -0
- package/dist/selectors/lookupSensorTypeMeasureUnitSelector.js +71 -0
- package/dist/selectors/lookupSensorTypeSelector.js +71 -0
- package/dist/selectors/lookupStatusSelector.js +28 -4
- package/dist/selectors/sensorBlocksSelector.js +71 -0
- package/dist/selectors/sensorsSelector.js +71 -0
- package/dist/selectors/sitesSelector.js +71 -0
- package/dist/services/apiServices.js +718 -235
- package/package.json +1 -1
- package/src/actions/commonActions.js +77 -0
- package/src/reducers/index.js +7 -0
- package/src/sagas/vineaNovaApi.sagas.js +298 -0
- package/src/selectors/index.js +7 -0
- package/src/selectors/lookupConsumableTypeSelector.js +64 -0
- package/src/selectors/lookupSensorStatusSelector.js +64 -0
- package/src/selectors/lookupSensorTypeMeasureUnitSelector.js +64 -0
- package/src/selectors/lookupSensorTypeSelector.js +64 -0
- package/src/selectors/lookupStatusSelector.js +36 -0
- package/src/selectors/sensorBlocksSelector.js +64 -0
- package/src/selectors/sensorsSelector.js +64 -0
- package/src/selectors/sitesSelector.js +64 -0
- package/src/services/apiServices.js +247 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
## 1.
|
|
5
|
+
## 1.63.0 (2022-07-25)
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
### Features
|
|
@@ -158,6 +158,7 @@ All notable changes to this project will be documented in this file. See [standa
|
|
|
158
158
|
* **logout:** added logout page ([570db63](https://infopowernz.visualstudio.com///commit/570db63d92df94188d5b084cb362866b6500a7b9))
|
|
159
159
|
* merge conflicts ([f88683a](https://infopowernz.visualstudio.com///commit/f88683a780be4863f99a91ec2894a2e5e88eb645))
|
|
160
160
|
* **modules:** added modules ([34ca394](https://infopowernz.visualstudio.com///commit/34ca3949d90d8821f791af46612adead63a52f08))
|
|
161
|
+
* **mui:** upgrade v5 fixes ([34f0650](https://infopowernz.visualstudio.com///commit/34f0650613c53888580c24ee9af05547fac8dec6))
|
|
161
162
|
* **noteimage:** fixed note image for existing records ([4791326](https://infopowernz.visualstudio.com///commit/4791326e9116b051db02c6f1a895b61c59045659))
|
|
162
163
|
* **notes:** delete notes image updated ([ecd6e3d](https://infopowernz.visualstudio.com///commit/ecd6e3dd71a240181134056db52428c399a9fde6))
|
|
163
164
|
* **organisation:** updated createidentity details ([1088499](https://infopowernz.visualstudio.com///commit/10884998d854222f81ae68b37fc6d3e650a519e9))
|
|
@@ -4823,6 +4823,197 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
4823
4823
|
}]
|
|
4824
4824
|
}
|
|
4825
4825
|
},
|
|
4826
|
+
sites: {
|
|
4827
|
+
get: {
|
|
4828
|
+
REQUEST: [function (payload) {
|
|
4829
|
+
return payload;
|
|
4830
|
+
}, function () {
|
|
4831
|
+
return {
|
|
4832
|
+
reducerName: 'sites'
|
|
4833
|
+
};
|
|
4834
|
+
}],
|
|
4835
|
+
RECEIVE: [function (payload) {
|
|
4836
|
+
return payload;
|
|
4837
|
+
}, function () {
|
|
4838
|
+
return {
|
|
4839
|
+
reducerName: 'sites'
|
|
4840
|
+
};
|
|
4841
|
+
}],
|
|
4842
|
+
ERROR: [function (payload) {
|
|
4843
|
+
return payload;
|
|
4844
|
+
}, function () {
|
|
4845
|
+
return {
|
|
4846
|
+
reducerName: 'sites'
|
|
4847
|
+
};
|
|
4848
|
+
}],
|
|
4849
|
+
CLEARDATA: [function (payload) {
|
|
4850
|
+
return payload;
|
|
4851
|
+
}, function () {
|
|
4852
|
+
return {
|
|
4853
|
+
reducerName: 'sites'
|
|
4854
|
+
};
|
|
4855
|
+
}],
|
|
4856
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
4857
|
+
return payload;
|
|
4858
|
+
}, function () {
|
|
4859
|
+
return {
|
|
4860
|
+
reducerName: 'sites'
|
|
4861
|
+
};
|
|
4862
|
+
}]
|
|
4863
|
+
},
|
|
4864
|
+
put: {
|
|
4865
|
+
REQUEST: [function (payload) {
|
|
4866
|
+
return payload;
|
|
4867
|
+
}, function () {
|
|
4868
|
+
return {
|
|
4869
|
+
reducerName: 'sites'
|
|
4870
|
+
};
|
|
4871
|
+
}],
|
|
4872
|
+
RECEIVE: [function (payload) {
|
|
4873
|
+
return payload;
|
|
4874
|
+
}, function () {
|
|
4875
|
+
return {
|
|
4876
|
+
reducerName: 'sites'
|
|
4877
|
+
};
|
|
4878
|
+
}],
|
|
4879
|
+
ERROR: [function (payload) {
|
|
4880
|
+
return payload;
|
|
4881
|
+
}, function () {
|
|
4882
|
+
return {
|
|
4883
|
+
reducerName: 'sites'
|
|
4884
|
+
};
|
|
4885
|
+
}],
|
|
4886
|
+
CLEARDATA: [function (payload) {
|
|
4887
|
+
return payload;
|
|
4888
|
+
}, function () {
|
|
4889
|
+
return {
|
|
4890
|
+
reducerName: 'sites'
|
|
4891
|
+
};
|
|
4892
|
+
}],
|
|
4893
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
4894
|
+
return payload;
|
|
4895
|
+
}, function () {
|
|
4896
|
+
return {
|
|
4897
|
+
reducerName: 'sites'
|
|
4898
|
+
};
|
|
4899
|
+
}]
|
|
4900
|
+
}
|
|
4901
|
+
},
|
|
4902
|
+
sensors: {
|
|
4903
|
+
get: {
|
|
4904
|
+
REQUEST: [function (payload) {
|
|
4905
|
+
return payload;
|
|
4906
|
+
}, function () {
|
|
4907
|
+
return {
|
|
4908
|
+
reducerName: 'sensors'
|
|
4909
|
+
};
|
|
4910
|
+
}],
|
|
4911
|
+
RECEIVE: [function (payload) {
|
|
4912
|
+
return payload;
|
|
4913
|
+
}, function () {
|
|
4914
|
+
return {
|
|
4915
|
+
reducerName: 'sensors'
|
|
4916
|
+
};
|
|
4917
|
+
}],
|
|
4918
|
+
ERROR: [function (payload) {
|
|
4919
|
+
return payload;
|
|
4920
|
+
}, function () {
|
|
4921
|
+
return {
|
|
4922
|
+
reducerName: 'sensors'
|
|
4923
|
+
};
|
|
4924
|
+
}],
|
|
4925
|
+
CLEARDATA: [function (payload) {
|
|
4926
|
+
return payload;
|
|
4927
|
+
}, function () {
|
|
4928
|
+
return {
|
|
4929
|
+
reducerName: 'sensors'
|
|
4930
|
+
};
|
|
4931
|
+
}],
|
|
4932
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
4933
|
+
return payload;
|
|
4934
|
+
}, function () {
|
|
4935
|
+
return {
|
|
4936
|
+
reducerName: 'sensors'
|
|
4937
|
+
};
|
|
4938
|
+
}]
|
|
4939
|
+
},
|
|
4940
|
+
put: {
|
|
4941
|
+
REQUEST: [function (payload) {
|
|
4942
|
+
return payload;
|
|
4943
|
+
}, function () {
|
|
4944
|
+
return {
|
|
4945
|
+
reducerName: 'sensors'
|
|
4946
|
+
};
|
|
4947
|
+
}],
|
|
4948
|
+
RECEIVE: [function (payload) {
|
|
4949
|
+
return payload;
|
|
4950
|
+
}, function () {
|
|
4951
|
+
return {
|
|
4952
|
+
reducerName: 'sensors'
|
|
4953
|
+
};
|
|
4954
|
+
}],
|
|
4955
|
+
ERROR: [function (payload) {
|
|
4956
|
+
return payload;
|
|
4957
|
+
}, function () {
|
|
4958
|
+
return {
|
|
4959
|
+
reducerName: 'sensors'
|
|
4960
|
+
};
|
|
4961
|
+
}],
|
|
4962
|
+
CLEARDATA: [function (payload) {
|
|
4963
|
+
return payload;
|
|
4964
|
+
}, function () {
|
|
4965
|
+
return {
|
|
4966
|
+
reducerName: 'sensors'
|
|
4967
|
+
};
|
|
4968
|
+
}],
|
|
4969
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
4970
|
+
return payload;
|
|
4971
|
+
}, function () {
|
|
4972
|
+
return {
|
|
4973
|
+
reducerName: 'sensors'
|
|
4974
|
+
};
|
|
4975
|
+
}]
|
|
4976
|
+
}
|
|
4977
|
+
},
|
|
4978
|
+
sensorBlocks: {
|
|
4979
|
+
get: {
|
|
4980
|
+
REQUEST: [function (payload) {
|
|
4981
|
+
return payload;
|
|
4982
|
+
}, function () {
|
|
4983
|
+
return {
|
|
4984
|
+
reducerName: 'sensorBlocks'
|
|
4985
|
+
};
|
|
4986
|
+
}],
|
|
4987
|
+
RECEIVE: [function (payload) {
|
|
4988
|
+
return payload;
|
|
4989
|
+
}, function () {
|
|
4990
|
+
return {
|
|
4991
|
+
reducerName: 'sensorBlocks'
|
|
4992
|
+
};
|
|
4993
|
+
}],
|
|
4994
|
+
ERROR: [function (payload) {
|
|
4995
|
+
return payload;
|
|
4996
|
+
}, function () {
|
|
4997
|
+
return {
|
|
4998
|
+
reducerName: 'sensorBlocks'
|
|
4999
|
+
};
|
|
5000
|
+
}],
|
|
5001
|
+
CLEARDATA: [function (payload) {
|
|
5002
|
+
return payload;
|
|
5003
|
+
}, function () {
|
|
5004
|
+
return {
|
|
5005
|
+
reducerName: 'sensorBlocks'
|
|
5006
|
+
};
|
|
5007
|
+
}],
|
|
5008
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
5009
|
+
return payload;
|
|
5010
|
+
}, function () {
|
|
5011
|
+
return {
|
|
5012
|
+
reducerName: 'sensorBlocks'
|
|
5013
|
+
};
|
|
5014
|
+
}]
|
|
5015
|
+
}
|
|
5016
|
+
},
|
|
4826
5017
|
identityVineyard: {
|
|
4827
5018
|
get: {
|
|
4828
5019
|
REQUEST: [function (payload) {
|
|
@@ -6923,6 +7114,162 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
6923
7114
|
}]
|
|
6924
7115
|
}
|
|
6925
7116
|
},
|
|
7117
|
+
lookupConsumableType: {
|
|
7118
|
+
get: {
|
|
7119
|
+
REQUEST: [function (payload) {
|
|
7120
|
+
return payload;
|
|
7121
|
+
}, function () {
|
|
7122
|
+
return {
|
|
7123
|
+
reducerName: 'lookupConsumableType'
|
|
7124
|
+
};
|
|
7125
|
+
}],
|
|
7126
|
+
RECEIVE: [function (payload) {
|
|
7127
|
+
return payload;
|
|
7128
|
+
}, function () {
|
|
7129
|
+
return {
|
|
7130
|
+
reducerName: 'lookupConsumableType'
|
|
7131
|
+
};
|
|
7132
|
+
}],
|
|
7133
|
+
ERROR: [function (payload) {
|
|
7134
|
+
return payload;
|
|
7135
|
+
}, function () {
|
|
7136
|
+
return {
|
|
7137
|
+
reducerName: 'lookupConsumableType'
|
|
7138
|
+
};
|
|
7139
|
+
}],
|
|
7140
|
+
CLEARDATA: [function (payload) {
|
|
7141
|
+
return payload;
|
|
7142
|
+
}, function () {
|
|
7143
|
+
return {
|
|
7144
|
+
reducerName: 'lookupConsumableType'
|
|
7145
|
+
};
|
|
7146
|
+
}],
|
|
7147
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
7148
|
+
return payload;
|
|
7149
|
+
}, function () {
|
|
7150
|
+
return {
|
|
7151
|
+
reducerName: 'lookupConsumableType'
|
|
7152
|
+
};
|
|
7153
|
+
}]
|
|
7154
|
+
}
|
|
7155
|
+
},
|
|
7156
|
+
lookupSensorStatus: {
|
|
7157
|
+
get: {
|
|
7158
|
+
REQUEST: [function (payload) {
|
|
7159
|
+
return payload;
|
|
7160
|
+
}, function () {
|
|
7161
|
+
return {
|
|
7162
|
+
reducerName: 'lookupSensorStatus'
|
|
7163
|
+
};
|
|
7164
|
+
}],
|
|
7165
|
+
RECEIVE: [function (payload) {
|
|
7166
|
+
return payload;
|
|
7167
|
+
}, function () {
|
|
7168
|
+
return {
|
|
7169
|
+
reducerName: 'lookupSensorStatus'
|
|
7170
|
+
};
|
|
7171
|
+
}],
|
|
7172
|
+
ERROR: [function (payload) {
|
|
7173
|
+
return payload;
|
|
7174
|
+
}, function () {
|
|
7175
|
+
return {
|
|
7176
|
+
reducerName: 'lookupSensorStatus'
|
|
7177
|
+
};
|
|
7178
|
+
}],
|
|
7179
|
+
CLEARDATA: [function (payload) {
|
|
7180
|
+
return payload;
|
|
7181
|
+
}, function () {
|
|
7182
|
+
return {
|
|
7183
|
+
reducerName: 'lookupSensorStatus'
|
|
7184
|
+
};
|
|
7185
|
+
}],
|
|
7186
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
7187
|
+
return payload;
|
|
7188
|
+
}, function () {
|
|
7189
|
+
return {
|
|
7190
|
+
reducerName: 'lookupSensorStatus'
|
|
7191
|
+
};
|
|
7192
|
+
}]
|
|
7193
|
+
}
|
|
7194
|
+
},
|
|
7195
|
+
lookupSensorType: {
|
|
7196
|
+
get: {
|
|
7197
|
+
REQUEST: [function (payload) {
|
|
7198
|
+
return payload;
|
|
7199
|
+
}, function () {
|
|
7200
|
+
return {
|
|
7201
|
+
reducerName: 'lookupSensorType'
|
|
7202
|
+
};
|
|
7203
|
+
}],
|
|
7204
|
+
RECEIVE: [function (payload) {
|
|
7205
|
+
return payload;
|
|
7206
|
+
}, function () {
|
|
7207
|
+
return {
|
|
7208
|
+
reducerName: 'lookupSensorType'
|
|
7209
|
+
};
|
|
7210
|
+
}],
|
|
7211
|
+
ERROR: [function (payload) {
|
|
7212
|
+
return payload;
|
|
7213
|
+
}, function () {
|
|
7214
|
+
return {
|
|
7215
|
+
reducerName: 'lookupSensorType'
|
|
7216
|
+
};
|
|
7217
|
+
}],
|
|
7218
|
+
CLEARDATA: [function (payload) {
|
|
7219
|
+
return payload;
|
|
7220
|
+
}, function () {
|
|
7221
|
+
return {
|
|
7222
|
+
reducerName: 'lookupSensorType'
|
|
7223
|
+
};
|
|
7224
|
+
}],
|
|
7225
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
7226
|
+
return payload;
|
|
7227
|
+
}, function () {
|
|
7228
|
+
return {
|
|
7229
|
+
reducerName: 'lookupSensorType'
|
|
7230
|
+
};
|
|
7231
|
+
}]
|
|
7232
|
+
}
|
|
7233
|
+
},
|
|
7234
|
+
lookupSensorTypeMeasureUnit: {
|
|
7235
|
+
get: {
|
|
7236
|
+
REQUEST: [function (payload) {
|
|
7237
|
+
return payload;
|
|
7238
|
+
}, function () {
|
|
7239
|
+
return {
|
|
7240
|
+
reducerName: 'lookupSensorTypeMeasureUnit'
|
|
7241
|
+
};
|
|
7242
|
+
}],
|
|
7243
|
+
RECEIVE: [function (payload) {
|
|
7244
|
+
return payload;
|
|
7245
|
+
}, function () {
|
|
7246
|
+
return {
|
|
7247
|
+
reducerName: 'lookupSensorTypeMeasureUnit'
|
|
7248
|
+
};
|
|
7249
|
+
}],
|
|
7250
|
+
ERROR: [function (payload) {
|
|
7251
|
+
return payload;
|
|
7252
|
+
}, function () {
|
|
7253
|
+
return {
|
|
7254
|
+
reducerName: 'lookupSensorTypeMeasureUnit'
|
|
7255
|
+
};
|
|
7256
|
+
}],
|
|
7257
|
+
CLEARDATA: [function (payload) {
|
|
7258
|
+
return payload;
|
|
7259
|
+
}, function () {
|
|
7260
|
+
return {
|
|
7261
|
+
reducerName: 'lookupSensorTypeMeasureUnit'
|
|
7262
|
+
};
|
|
7263
|
+
}],
|
|
7264
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
7265
|
+
return payload;
|
|
7266
|
+
}, function () {
|
|
7267
|
+
return {
|
|
7268
|
+
reducerName: 'lookupSensorTypeMeasureUnit'
|
|
7269
|
+
};
|
|
7270
|
+
}]
|
|
7271
|
+
}
|
|
7272
|
+
},
|
|
6926
7273
|
fetchAllLookups: {
|
|
6927
7274
|
REQUEST: [function (payload) {
|
|
6928
7275
|
return payload;
|
package/dist/reducers/index.js
CHANGED
|
@@ -70,6 +70,9 @@ var rootReducer = {
|
|
|
70
70
|
searchIdentity: (0, _createNamedReducer["default"])('searchIdentity'),
|
|
71
71
|
searchTrackingVineyards: (0, _createNamedReducer["default"])('searchTrackingVineyards'),
|
|
72
72
|
searchTrackingBlockVintages: (0, _createNamedReducer["default"])('searchTrackingBlockVintages'),
|
|
73
|
+
sites: (0, _createNamedReducer["default"])('sites'),
|
|
74
|
+
sensors: (0, _createNamedReducer["default"])('sensors'),
|
|
75
|
+
sensorBlocks: (0, _createNamedReducer["default"])('sensorBlocks'),
|
|
73
76
|
identityVineyard: (0, _createNamedReducer["default"])('identityVineyard'),
|
|
74
77
|
lookupClassification: (0, _createNamedReducer["default"])('lookupClassification'),
|
|
75
78
|
lookupClassificationGroup: (0, _createNamedReducer["default"])('lookupClassificationGroup'),
|
|
@@ -120,7 +123,11 @@ var rootReducer = {
|
|
|
120
123
|
lookupDashboardPageFilters: (0, _createNamedReducer["default"])('lookupDashboardPageFilters'),
|
|
121
124
|
lookupChartFilters: (0, _createNamedReducer["default"])('lookupChartFilters'),
|
|
122
125
|
lookupVehicleType: (0, _createNamedReducer["default"])('lookupVehicleType'),
|
|
123
|
-
lookupVehicleMake: (0, _createNamedReducer["default"])('lookupVehicleMake')
|
|
126
|
+
lookupVehicleMake: (0, _createNamedReducer["default"])('lookupVehicleMake'),
|
|
127
|
+
lookupConsumableType: (0, _createNamedReducer["default"])('lookupConsumableType'),
|
|
128
|
+
lookupSensorStatus: (0, _createNamedReducer["default"])('lookupSensorStatus'),
|
|
129
|
+
lookupSensorType: (0, _createNamedReducer["default"])('lookupSensorType'),
|
|
130
|
+
lookupSensorTypeMeasureUnit: (0, _createNamedReducer["default"])('lookupSensorTypeMeasureUnit')
|
|
124
131
|
})
|
|
125
132
|
};
|
|
126
133
|
var _default = rootReducer;
|