vineanova-redux-artifacts 1.119.395 → 1.119.397
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/commonActions.js +347 -0
- package/dist/hooks/index.js +77 -0
- package/dist/hooks/useFetchidentityNotesWithDocuments.js +49 -0
- package/dist/hooks/useFetchincident.js +49 -0
- package/dist/hooks/useFetchincidentClose.js +49 -0
- package/dist/hooks/useFetchincidentLookups.js +49 -0
- package/dist/hooks/useFetchincidentReview.js +49 -0
- package/dist/hooks/useFetchincidentSearch.js +49 -0
- package/dist/hooks/useFetchplantsForBlockMap.js +49 -0
- package/dist/reducers/index.js +7 -0
- package/dist/sagas/vineaNovaApi.sagas.js +2067 -1671
- package/dist/selectors/identityNotesWithDocumentsSelector.js +57 -0
- package/dist/selectors/incidentCloseSelector.js +57 -0
- package/dist/selectors/incidentLookupsSelector.js +57 -0
- package/dist/selectors/incidentReviewSelector.js +57 -0
- package/dist/selectors/incidentSearchSelector.js +57 -0
- package/dist/selectors/incidentSelector.js +57 -0
- package/dist/selectors/index.js +77 -0
- package/dist/selectors/plantsForBlockMapSelector.js +57 -0
- package/dist/services/apiServices.js +2178 -1864
- package/package.json +1 -1
- package/src/actions/commonActions.js +77 -0
- package/src/hooks/index.js +7 -0
- package/src/hooks/useFetchidentityNotesWithDocuments.js +53 -0
- package/src/hooks/useFetchincident.js +53 -0
- package/src/hooks/useFetchincidentClose.js +53 -0
- package/src/hooks/useFetchincidentLookups.js +53 -0
- package/src/hooks/useFetchincidentReview.js +53 -0
- package/src/hooks/useFetchincidentSearch.js +53 -0
- package/src/hooks/useFetchplantsForBlockMap.js +53 -0
- package/src/reducers/index.js +7 -0
- package/src/sagas/vineaNovaApi.sagas.js +286 -0
- package/src/selectors/identityNotesWithDocumentsSelector.js +62 -0
- package/src/selectors/incidentCloseSelector.js +62 -0
- package/src/selectors/incidentLookupsSelector.js +62 -0
- package/src/selectors/incidentReviewSelector.js +62 -0
- package/src/selectors/incidentSearchSelector.js +62 -0
- package/src/selectors/incidentSelector.js +62 -0
- package/src/selectors/index.js +7 -0
- package/src/selectors/plantsForBlockMapSelector.js +62 -0
- package/src/services/apiServices.js +194 -0
|
@@ -347,6 +347,45 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
347
347
|
}]
|
|
348
348
|
}
|
|
349
349
|
},
|
|
350
|
+
plantsForBlockMap: {
|
|
351
|
+
get: {
|
|
352
|
+
REQUEST: [function (payload) {
|
|
353
|
+
return payload;
|
|
354
|
+
}, function () {
|
|
355
|
+
return {
|
|
356
|
+
reducerName: 'plantsForBlockMap'
|
|
357
|
+
};
|
|
358
|
+
}],
|
|
359
|
+
RECEIVE: [function (payload) {
|
|
360
|
+
return payload;
|
|
361
|
+
}, function () {
|
|
362
|
+
return {
|
|
363
|
+
reducerName: 'plantsForBlockMap'
|
|
364
|
+
};
|
|
365
|
+
}],
|
|
366
|
+
ERROR: [function (payload) {
|
|
367
|
+
return payload;
|
|
368
|
+
}, function () {
|
|
369
|
+
return {
|
|
370
|
+
reducerName: 'plantsForBlockMap'
|
|
371
|
+
};
|
|
372
|
+
}],
|
|
373
|
+
CLEARDATA: [function (payload) {
|
|
374
|
+
return payload;
|
|
375
|
+
}, function () {
|
|
376
|
+
return {
|
|
377
|
+
reducerName: 'plantsForBlockMap'
|
|
378
|
+
};
|
|
379
|
+
}],
|
|
380
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
381
|
+
return payload;
|
|
382
|
+
}, function () {
|
|
383
|
+
return {
|
|
384
|
+
reducerName: 'plantsForBlockMap'
|
|
385
|
+
};
|
|
386
|
+
}]
|
|
387
|
+
}
|
|
388
|
+
},
|
|
350
389
|
blockVintage: {
|
|
351
390
|
get: {
|
|
352
391
|
REQUEST: [function (payload) {
|
|
@@ -6039,6 +6078,314 @@ var ducksActions = (0, _reduxActions.createActions)({
|
|
|
6039
6078
|
}]
|
|
6040
6079
|
}
|
|
6041
6080
|
},
|
|
6081
|
+
incidentSearch: {
|
|
6082
|
+
get: {
|
|
6083
|
+
REQUEST: [function (payload) {
|
|
6084
|
+
return payload;
|
|
6085
|
+
}, function () {
|
|
6086
|
+
return {
|
|
6087
|
+
reducerName: 'incidentSearch'
|
|
6088
|
+
};
|
|
6089
|
+
}],
|
|
6090
|
+
RECEIVE: [function (payload) {
|
|
6091
|
+
return payload;
|
|
6092
|
+
}, function () {
|
|
6093
|
+
return {
|
|
6094
|
+
reducerName: 'incidentSearch'
|
|
6095
|
+
};
|
|
6096
|
+
}],
|
|
6097
|
+
ERROR: [function (payload) {
|
|
6098
|
+
return payload;
|
|
6099
|
+
}, function () {
|
|
6100
|
+
return {
|
|
6101
|
+
reducerName: 'incidentSearch'
|
|
6102
|
+
};
|
|
6103
|
+
}],
|
|
6104
|
+
CLEARDATA: [function (payload) {
|
|
6105
|
+
return payload;
|
|
6106
|
+
}, function () {
|
|
6107
|
+
return {
|
|
6108
|
+
reducerName: 'incidentSearch'
|
|
6109
|
+
};
|
|
6110
|
+
}],
|
|
6111
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6112
|
+
return payload;
|
|
6113
|
+
}, function () {
|
|
6114
|
+
return {
|
|
6115
|
+
reducerName: 'incidentSearch'
|
|
6116
|
+
};
|
|
6117
|
+
}]
|
|
6118
|
+
}
|
|
6119
|
+
},
|
|
6120
|
+
incident: {
|
|
6121
|
+
get: {
|
|
6122
|
+
REQUEST: [function (payload) {
|
|
6123
|
+
return payload;
|
|
6124
|
+
}, function () {
|
|
6125
|
+
return {
|
|
6126
|
+
reducerName: 'incident'
|
|
6127
|
+
};
|
|
6128
|
+
}],
|
|
6129
|
+
RECEIVE: [function (payload) {
|
|
6130
|
+
return payload;
|
|
6131
|
+
}, function () {
|
|
6132
|
+
return {
|
|
6133
|
+
reducerName: 'incident'
|
|
6134
|
+
};
|
|
6135
|
+
}],
|
|
6136
|
+
ERROR: [function (payload) {
|
|
6137
|
+
return payload;
|
|
6138
|
+
}, function () {
|
|
6139
|
+
return {
|
|
6140
|
+
reducerName: 'incident'
|
|
6141
|
+
};
|
|
6142
|
+
}],
|
|
6143
|
+
CLEARDATA: [function (payload) {
|
|
6144
|
+
return payload;
|
|
6145
|
+
}, function () {
|
|
6146
|
+
return {
|
|
6147
|
+
reducerName: 'incident'
|
|
6148
|
+
};
|
|
6149
|
+
}],
|
|
6150
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6151
|
+
return payload;
|
|
6152
|
+
}, function () {
|
|
6153
|
+
return {
|
|
6154
|
+
reducerName: 'incident'
|
|
6155
|
+
};
|
|
6156
|
+
}]
|
|
6157
|
+
},
|
|
6158
|
+
post: {
|
|
6159
|
+
REQUEST: [function (payload) {
|
|
6160
|
+
return payload;
|
|
6161
|
+
}, function () {
|
|
6162
|
+
return {
|
|
6163
|
+
reducerName: 'incident'
|
|
6164
|
+
};
|
|
6165
|
+
}],
|
|
6166
|
+
RECEIVE: [function (payload) {
|
|
6167
|
+
return payload;
|
|
6168
|
+
}, function () {
|
|
6169
|
+
return {
|
|
6170
|
+
reducerName: 'incident'
|
|
6171
|
+
};
|
|
6172
|
+
}],
|
|
6173
|
+
ERROR: [function (payload) {
|
|
6174
|
+
return payload;
|
|
6175
|
+
}, function () {
|
|
6176
|
+
return {
|
|
6177
|
+
reducerName: 'incident'
|
|
6178
|
+
};
|
|
6179
|
+
}],
|
|
6180
|
+
CLEARDATA: [function (payload) {
|
|
6181
|
+
return payload;
|
|
6182
|
+
}, function () {
|
|
6183
|
+
return {
|
|
6184
|
+
reducerName: 'incident'
|
|
6185
|
+
};
|
|
6186
|
+
}],
|
|
6187
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6188
|
+
return payload;
|
|
6189
|
+
}, function () {
|
|
6190
|
+
return {
|
|
6191
|
+
reducerName: 'incident'
|
|
6192
|
+
};
|
|
6193
|
+
}]
|
|
6194
|
+
},
|
|
6195
|
+
put: {
|
|
6196
|
+
REQUEST: [function (payload) {
|
|
6197
|
+
return payload;
|
|
6198
|
+
}, function () {
|
|
6199
|
+
return {
|
|
6200
|
+
reducerName: 'incident'
|
|
6201
|
+
};
|
|
6202
|
+
}],
|
|
6203
|
+
RECEIVE: [function (payload) {
|
|
6204
|
+
return payload;
|
|
6205
|
+
}, function () {
|
|
6206
|
+
return {
|
|
6207
|
+
reducerName: 'incident'
|
|
6208
|
+
};
|
|
6209
|
+
}],
|
|
6210
|
+
ERROR: [function (payload) {
|
|
6211
|
+
return payload;
|
|
6212
|
+
}, function () {
|
|
6213
|
+
return {
|
|
6214
|
+
reducerName: 'incident'
|
|
6215
|
+
};
|
|
6216
|
+
}],
|
|
6217
|
+
CLEARDATA: [function (payload) {
|
|
6218
|
+
return payload;
|
|
6219
|
+
}, function () {
|
|
6220
|
+
return {
|
|
6221
|
+
reducerName: 'incident'
|
|
6222
|
+
};
|
|
6223
|
+
}],
|
|
6224
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6225
|
+
return payload;
|
|
6226
|
+
}, function () {
|
|
6227
|
+
return {
|
|
6228
|
+
reducerName: 'incident'
|
|
6229
|
+
};
|
|
6230
|
+
}]
|
|
6231
|
+
}
|
|
6232
|
+
},
|
|
6233
|
+
incidentReview: {
|
|
6234
|
+
post: {
|
|
6235
|
+
REQUEST: [function (payload) {
|
|
6236
|
+
return payload;
|
|
6237
|
+
}, function () {
|
|
6238
|
+
return {
|
|
6239
|
+
reducerName: 'incidentReview'
|
|
6240
|
+
};
|
|
6241
|
+
}],
|
|
6242
|
+
RECEIVE: [function (payload) {
|
|
6243
|
+
return payload;
|
|
6244
|
+
}, function () {
|
|
6245
|
+
return {
|
|
6246
|
+
reducerName: 'incidentReview'
|
|
6247
|
+
};
|
|
6248
|
+
}],
|
|
6249
|
+
ERROR: [function (payload) {
|
|
6250
|
+
return payload;
|
|
6251
|
+
}, function () {
|
|
6252
|
+
return {
|
|
6253
|
+
reducerName: 'incidentReview'
|
|
6254
|
+
};
|
|
6255
|
+
}],
|
|
6256
|
+
CLEARDATA: [function (payload) {
|
|
6257
|
+
return payload;
|
|
6258
|
+
}, function () {
|
|
6259
|
+
return {
|
|
6260
|
+
reducerName: 'incidentReview'
|
|
6261
|
+
};
|
|
6262
|
+
}],
|
|
6263
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6264
|
+
return payload;
|
|
6265
|
+
}, function () {
|
|
6266
|
+
return {
|
|
6267
|
+
reducerName: 'incidentReview'
|
|
6268
|
+
};
|
|
6269
|
+
}]
|
|
6270
|
+
}
|
|
6271
|
+
},
|
|
6272
|
+
incidentClose: {
|
|
6273
|
+
post: {
|
|
6274
|
+
REQUEST: [function (payload) {
|
|
6275
|
+
return payload;
|
|
6276
|
+
}, function () {
|
|
6277
|
+
return {
|
|
6278
|
+
reducerName: 'incidentClose'
|
|
6279
|
+
};
|
|
6280
|
+
}],
|
|
6281
|
+
RECEIVE: [function (payload) {
|
|
6282
|
+
return payload;
|
|
6283
|
+
}, function () {
|
|
6284
|
+
return {
|
|
6285
|
+
reducerName: 'incidentClose'
|
|
6286
|
+
};
|
|
6287
|
+
}],
|
|
6288
|
+
ERROR: [function (payload) {
|
|
6289
|
+
return payload;
|
|
6290
|
+
}, function () {
|
|
6291
|
+
return {
|
|
6292
|
+
reducerName: 'incidentClose'
|
|
6293
|
+
};
|
|
6294
|
+
}],
|
|
6295
|
+
CLEARDATA: [function (payload) {
|
|
6296
|
+
return payload;
|
|
6297
|
+
}, function () {
|
|
6298
|
+
return {
|
|
6299
|
+
reducerName: 'incidentClose'
|
|
6300
|
+
};
|
|
6301
|
+
}],
|
|
6302
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6303
|
+
return payload;
|
|
6304
|
+
}, function () {
|
|
6305
|
+
return {
|
|
6306
|
+
reducerName: 'incidentClose'
|
|
6307
|
+
};
|
|
6308
|
+
}]
|
|
6309
|
+
}
|
|
6310
|
+
},
|
|
6311
|
+
incidentLookups: {
|
|
6312
|
+
get: {
|
|
6313
|
+
REQUEST: [function (payload) {
|
|
6314
|
+
return payload;
|
|
6315
|
+
}, function () {
|
|
6316
|
+
return {
|
|
6317
|
+
reducerName: 'incidentLookups'
|
|
6318
|
+
};
|
|
6319
|
+
}],
|
|
6320
|
+
RECEIVE: [function (payload) {
|
|
6321
|
+
return payload;
|
|
6322
|
+
}, function () {
|
|
6323
|
+
return {
|
|
6324
|
+
reducerName: 'incidentLookups'
|
|
6325
|
+
};
|
|
6326
|
+
}],
|
|
6327
|
+
ERROR: [function (payload) {
|
|
6328
|
+
return payload;
|
|
6329
|
+
}, function () {
|
|
6330
|
+
return {
|
|
6331
|
+
reducerName: 'incidentLookups'
|
|
6332
|
+
};
|
|
6333
|
+
}],
|
|
6334
|
+
CLEARDATA: [function (payload) {
|
|
6335
|
+
return payload;
|
|
6336
|
+
}, function () {
|
|
6337
|
+
return {
|
|
6338
|
+
reducerName: 'incidentLookups'
|
|
6339
|
+
};
|
|
6340
|
+
}],
|
|
6341
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6342
|
+
return payload;
|
|
6343
|
+
}, function () {
|
|
6344
|
+
return {
|
|
6345
|
+
reducerName: 'incidentLookups'
|
|
6346
|
+
};
|
|
6347
|
+
}]
|
|
6348
|
+
}
|
|
6349
|
+
},
|
|
6350
|
+
identityNotesWithDocuments: {
|
|
6351
|
+
get: {
|
|
6352
|
+
REQUEST: [function (payload) {
|
|
6353
|
+
return payload;
|
|
6354
|
+
}, function () {
|
|
6355
|
+
return {
|
|
6356
|
+
reducerName: 'identityNotesWithDocuments'
|
|
6357
|
+
};
|
|
6358
|
+
}],
|
|
6359
|
+
RECEIVE: [function (payload) {
|
|
6360
|
+
return payload;
|
|
6361
|
+
}, function () {
|
|
6362
|
+
return {
|
|
6363
|
+
reducerName: 'identityNotesWithDocuments'
|
|
6364
|
+
};
|
|
6365
|
+
}],
|
|
6366
|
+
ERROR: [function (payload) {
|
|
6367
|
+
return payload;
|
|
6368
|
+
}, function () {
|
|
6369
|
+
return {
|
|
6370
|
+
reducerName: 'identityNotesWithDocuments'
|
|
6371
|
+
};
|
|
6372
|
+
}],
|
|
6373
|
+
CLEARDATA: [function (payload) {
|
|
6374
|
+
return payload;
|
|
6375
|
+
}, function () {
|
|
6376
|
+
return {
|
|
6377
|
+
reducerName: 'identityNotesWithDocuments'
|
|
6378
|
+
};
|
|
6379
|
+
}],
|
|
6380
|
+
UPDATEPARTIALENTITY: [function (payload) {
|
|
6381
|
+
return payload;
|
|
6382
|
+
}, function () {
|
|
6383
|
+
return {
|
|
6384
|
+
reducerName: 'identityNotesWithDocuments'
|
|
6385
|
+
};
|
|
6386
|
+
}]
|
|
6387
|
+
}
|
|
6388
|
+
},
|
|
6042
6389
|
jobActivity: {
|
|
6043
6390
|
get: {
|
|
6044
6391
|
REQUEST: [function (payload) {
|
package/dist/hooks/index.js
CHANGED
|
@@ -36,6 +36,17 @@ Object.keys(_useFetchplantsForBlock).forEach(function (key) {
|
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
+
var _useFetchplantsForBlockMap = require("./useFetchplantsForBlockMap");
|
|
40
|
+
Object.keys(_useFetchplantsForBlockMap).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _useFetchplantsForBlockMap[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _useFetchplantsForBlockMap[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
39
50
|
var _useFetchblockVintage = require("./useFetchblockVintage");
|
|
40
51
|
Object.keys(_useFetchblockVintage).forEach(function (key) {
|
|
41
52
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -817,6 +828,72 @@ Object.keys(_useFetchimportSheets).forEach(function (key) {
|
|
|
817
828
|
}
|
|
818
829
|
});
|
|
819
830
|
});
|
|
831
|
+
var _useFetchincidentSearch = require("./useFetchincidentSearch");
|
|
832
|
+
Object.keys(_useFetchincidentSearch).forEach(function (key) {
|
|
833
|
+
if (key === "default" || key === "__esModule") return;
|
|
834
|
+
if (key in exports && exports[key] === _useFetchincidentSearch[key]) return;
|
|
835
|
+
Object.defineProperty(exports, key, {
|
|
836
|
+
enumerable: true,
|
|
837
|
+
get: function get() {
|
|
838
|
+
return _useFetchincidentSearch[key];
|
|
839
|
+
}
|
|
840
|
+
});
|
|
841
|
+
});
|
|
842
|
+
var _useFetchincident = require("./useFetchincident");
|
|
843
|
+
Object.keys(_useFetchincident).forEach(function (key) {
|
|
844
|
+
if (key === "default" || key === "__esModule") return;
|
|
845
|
+
if (key in exports && exports[key] === _useFetchincident[key]) return;
|
|
846
|
+
Object.defineProperty(exports, key, {
|
|
847
|
+
enumerable: true,
|
|
848
|
+
get: function get() {
|
|
849
|
+
return _useFetchincident[key];
|
|
850
|
+
}
|
|
851
|
+
});
|
|
852
|
+
});
|
|
853
|
+
var _useFetchincidentReview = require("./useFetchincidentReview");
|
|
854
|
+
Object.keys(_useFetchincidentReview).forEach(function (key) {
|
|
855
|
+
if (key === "default" || key === "__esModule") return;
|
|
856
|
+
if (key in exports && exports[key] === _useFetchincidentReview[key]) return;
|
|
857
|
+
Object.defineProperty(exports, key, {
|
|
858
|
+
enumerable: true,
|
|
859
|
+
get: function get() {
|
|
860
|
+
return _useFetchincidentReview[key];
|
|
861
|
+
}
|
|
862
|
+
});
|
|
863
|
+
});
|
|
864
|
+
var _useFetchincidentClose = require("./useFetchincidentClose");
|
|
865
|
+
Object.keys(_useFetchincidentClose).forEach(function (key) {
|
|
866
|
+
if (key === "default" || key === "__esModule") return;
|
|
867
|
+
if (key in exports && exports[key] === _useFetchincidentClose[key]) return;
|
|
868
|
+
Object.defineProperty(exports, key, {
|
|
869
|
+
enumerable: true,
|
|
870
|
+
get: function get() {
|
|
871
|
+
return _useFetchincidentClose[key];
|
|
872
|
+
}
|
|
873
|
+
});
|
|
874
|
+
});
|
|
875
|
+
var _useFetchincidentLookups = require("./useFetchincidentLookups");
|
|
876
|
+
Object.keys(_useFetchincidentLookups).forEach(function (key) {
|
|
877
|
+
if (key === "default" || key === "__esModule") return;
|
|
878
|
+
if (key in exports && exports[key] === _useFetchincidentLookups[key]) return;
|
|
879
|
+
Object.defineProperty(exports, key, {
|
|
880
|
+
enumerable: true,
|
|
881
|
+
get: function get() {
|
|
882
|
+
return _useFetchincidentLookups[key];
|
|
883
|
+
}
|
|
884
|
+
});
|
|
885
|
+
});
|
|
886
|
+
var _useFetchidentityNotesWithDocuments = require("./useFetchidentityNotesWithDocuments");
|
|
887
|
+
Object.keys(_useFetchidentityNotesWithDocuments).forEach(function (key) {
|
|
888
|
+
if (key === "default" || key === "__esModule") return;
|
|
889
|
+
if (key in exports && exports[key] === _useFetchidentityNotesWithDocuments[key]) return;
|
|
890
|
+
Object.defineProperty(exports, key, {
|
|
891
|
+
enumerable: true,
|
|
892
|
+
get: function get() {
|
|
893
|
+
return _useFetchidentityNotesWithDocuments[key];
|
|
894
|
+
}
|
|
895
|
+
});
|
|
896
|
+
});
|
|
820
897
|
var _useFetchjobActivity = require("./useFetchjobActivity");
|
|
821
898
|
Object.keys(_useFetchjobActivity).forEach(function (key) {
|
|
822
899
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchIdentityNotesWithDocuments = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactRedux = require("react-redux");
|
|
9
|
+
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
10
|
+
var _actions = require("../actions");
|
|
11
|
+
var VineaNovaSelectors = _interopRequireWildcard(require("../selectors"));
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
|
+
var useFetchIdentityNotesWithDocuments = exports.useFetchIdentityNotesWithDocuments = function useFetchIdentityNotesWithDocuments(props) {
|
|
21
|
+
// selectors
|
|
22
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getIdentityNotesWithDocumentsEntityData);
|
|
23
|
+
var entity = (0, _reactRedux.useSelector)(VineaNovaSelectors.getIdentityNotesWithDocumentsEntityMeta);
|
|
24
|
+
var dispatchAPI = (0, _reactRedux.useDispatch)();
|
|
25
|
+
var _props$queryParams = props.queryParams,
|
|
26
|
+
queryParams = _props$queryParams === void 0 ? {} : _props$queryParams;
|
|
27
|
+
|
|
28
|
+
// Determine if we need to fetch: not loaded, has error, or empty data
|
|
29
|
+
var shouldFetch = !(entity !== null && entity !== void 0 && entity.isLoaded) || (entity === null || entity === void 0 ? void 0 : entity.hasError) || (0, _isEmpty["default"])(entity.data);
|
|
30
|
+
(0, _react.useEffect)(function () {
|
|
31
|
+
if (shouldFetch) {
|
|
32
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.identityNotesWithDocuments.get.request({
|
|
33
|
+
queryParams: _objectSpread({}, queryParams)
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
}, [shouldFetch, JSON.stringify(queryParams)]);
|
|
37
|
+
var useQuery = function useQuery(queryParams) {
|
|
38
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.identityNotesWithDocuments.get.request({
|
|
39
|
+
queryParams: _objectSpread({}, queryParams)
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
data: data,
|
|
44
|
+
useQuery: useQuery,
|
|
45
|
+
isLoading: entity === null || entity === void 0 ? void 0 : entity.isLoading,
|
|
46
|
+
hasError: entity === null || entity === void 0 ? void 0 : entity.hasError,
|
|
47
|
+
error: entity === null || entity === void 0 ? void 0 : entity.error
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchIncident = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactRedux = require("react-redux");
|
|
9
|
+
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
10
|
+
var _actions = require("../actions");
|
|
11
|
+
var VineaNovaSelectors = _interopRequireWildcard(require("../selectors"));
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
|
+
var useFetchIncident = exports.useFetchIncident = function useFetchIncident(props) {
|
|
21
|
+
// selectors
|
|
22
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getIncidentEntityData);
|
|
23
|
+
var entity = (0, _reactRedux.useSelector)(VineaNovaSelectors.getIncidentEntityMeta);
|
|
24
|
+
var dispatchAPI = (0, _reactRedux.useDispatch)();
|
|
25
|
+
var _props$queryParams = props.queryParams,
|
|
26
|
+
queryParams = _props$queryParams === void 0 ? {} : _props$queryParams;
|
|
27
|
+
|
|
28
|
+
// Determine if we need to fetch: not loaded, has error, or empty data
|
|
29
|
+
var shouldFetch = !(entity !== null && entity !== void 0 && entity.isLoaded) || (entity === null || entity === void 0 ? void 0 : entity.hasError) || (0, _isEmpty["default"])(entity.data);
|
|
30
|
+
(0, _react.useEffect)(function () {
|
|
31
|
+
if (shouldFetch) {
|
|
32
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.incident.get.request({
|
|
33
|
+
queryParams: _objectSpread({}, queryParams)
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
}, [shouldFetch, JSON.stringify(queryParams)]);
|
|
37
|
+
var useQuery = function useQuery(queryParams) {
|
|
38
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.incident.get.request({
|
|
39
|
+
queryParams: _objectSpread({}, queryParams)
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
data: data,
|
|
44
|
+
useQuery: useQuery,
|
|
45
|
+
isLoading: entity === null || entity === void 0 ? void 0 : entity.isLoading,
|
|
46
|
+
hasError: entity === null || entity === void 0 ? void 0 : entity.hasError,
|
|
47
|
+
error: entity === null || entity === void 0 ? void 0 : entity.error
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchIncidentClose = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactRedux = require("react-redux");
|
|
9
|
+
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
10
|
+
var _actions = require("../actions");
|
|
11
|
+
var VineaNovaSelectors = _interopRequireWildcard(require("../selectors"));
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
|
+
var useFetchIncidentClose = exports.useFetchIncidentClose = function useFetchIncidentClose(props) {
|
|
21
|
+
// selectors
|
|
22
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getIncidentCloseEntityData);
|
|
23
|
+
var entity = (0, _reactRedux.useSelector)(VineaNovaSelectors.getIncidentCloseEntityMeta);
|
|
24
|
+
var dispatchAPI = (0, _reactRedux.useDispatch)();
|
|
25
|
+
var _props$queryParams = props.queryParams,
|
|
26
|
+
queryParams = _props$queryParams === void 0 ? {} : _props$queryParams;
|
|
27
|
+
|
|
28
|
+
// Determine if we need to fetch: not loaded, has error, or empty data
|
|
29
|
+
var shouldFetch = !(entity !== null && entity !== void 0 && entity.isLoaded) || (entity === null || entity === void 0 ? void 0 : entity.hasError) || (0, _isEmpty["default"])(entity.data);
|
|
30
|
+
(0, _react.useEffect)(function () {
|
|
31
|
+
if (shouldFetch) {
|
|
32
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.incidentClose.get.request({
|
|
33
|
+
queryParams: _objectSpread({}, queryParams)
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
}, [shouldFetch, JSON.stringify(queryParams)]);
|
|
37
|
+
var useQuery = function useQuery(queryParams) {
|
|
38
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.incidentClose.get.request({
|
|
39
|
+
queryParams: _objectSpread({}, queryParams)
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
data: data,
|
|
44
|
+
useQuery: useQuery,
|
|
45
|
+
isLoading: entity === null || entity === void 0 ? void 0 : entity.isLoading,
|
|
46
|
+
hasError: entity === null || entity === void 0 ? void 0 : entity.hasError,
|
|
47
|
+
error: entity === null || entity === void 0 ? void 0 : entity.error
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.useFetchIncidentLookups = void 0;
|
|
7
|
+
var _react = require("react");
|
|
8
|
+
var _reactRedux = require("react-redux");
|
|
9
|
+
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
10
|
+
var _actions = require("../actions");
|
|
11
|
+
var VineaNovaSelectors = _interopRequireWildcard(require("../selectors"));
|
|
12
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
15
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
|
+
var useFetchIncidentLookups = exports.useFetchIncidentLookups = function useFetchIncidentLookups(props) {
|
|
21
|
+
// selectors
|
|
22
|
+
var data = (0, _reactRedux.useSelector)(VineaNovaSelectors.getIncidentLookupsEntityData);
|
|
23
|
+
var entity = (0, _reactRedux.useSelector)(VineaNovaSelectors.getIncidentLookupsEntityMeta);
|
|
24
|
+
var dispatchAPI = (0, _reactRedux.useDispatch)();
|
|
25
|
+
var _props$queryParams = props.queryParams,
|
|
26
|
+
queryParams = _props$queryParams === void 0 ? {} : _props$queryParams;
|
|
27
|
+
|
|
28
|
+
// Determine if we need to fetch: not loaded, has error, or empty data
|
|
29
|
+
var shouldFetch = !(entity !== null && entity !== void 0 && entity.isLoaded) || (entity === null || entity === void 0 ? void 0 : entity.hasError) || (0, _isEmpty["default"])(entity.data);
|
|
30
|
+
(0, _react.useEffect)(function () {
|
|
31
|
+
if (shouldFetch) {
|
|
32
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.incidentLookups.get.request({
|
|
33
|
+
queryParams: _objectSpread({}, queryParams)
|
|
34
|
+
}));
|
|
35
|
+
}
|
|
36
|
+
}, [shouldFetch, JSON.stringify(queryParams)]);
|
|
37
|
+
var useQuery = function useQuery(queryParams) {
|
|
38
|
+
dispatchAPI(_actions.VineaNovaActions.api.v1.incidentLookups.get.request({
|
|
39
|
+
queryParams: _objectSpread({}, queryParams)
|
|
40
|
+
}));
|
|
41
|
+
};
|
|
42
|
+
return {
|
|
43
|
+
data: data,
|
|
44
|
+
useQuery: useQuery,
|
|
45
|
+
isLoading: entity === null || entity === void 0 ? void 0 : entity.isLoading,
|
|
46
|
+
hasError: entity === null || entity === void 0 ? void 0 : entity.hasError,
|
|
47
|
+
error: entity === null || entity === void 0 ? void 0 : entity.error
|
|
48
|
+
};
|
|
49
|
+
};
|