vineanova-redux-artifacts 1.34.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.
Files changed (196) hide show
  1. package/.babelrc +3 -0
  2. package/CHANGELOG.md +182 -0
  3. package/dist/actions/commonActions.js +4092 -0
  4. package/dist/actions/index.js +15 -0
  5. package/dist/index.js +62 -0
  6. package/dist/reducers/createNamedReducer.js +108 -0
  7. package/dist/reducers/index.js +102 -0
  8. package/dist/sagas/index.js +15 -0
  9. package/dist/sagas/vineaNovaApi.sagas.js +7731 -0
  10. package/dist/selectors/assignSampleHeadersSelector.js +70 -0
  11. package/dist/selectors/blockVintageSelector.js +70 -0
  12. package/dist/selectors/contactMethodSelector.js +70 -0
  13. package/dist/selectors/cropBlockPhenologySelector.js +70 -0
  14. package/dist/selectors/cropBlockSettingSelector.js +70 -0
  15. package/dist/selectors/cropBlockVintageSelector.js +70 -0
  16. package/dist/selectors/deAssignSampleHeadersSelector.js +70 -0
  17. package/dist/selectors/getLookUpSelector.js +70 -0
  18. package/dist/selectors/gridVineyardBlocksSelector.js +70 -0
  19. package/dist/selectors/healthcheckSelector.js +70 -0
  20. package/dist/selectors/identityClassificationSelector.js +70 -0
  21. package/dist/selectors/identityContactMethodAddressSelector.js +70 -0
  22. package/dist/selectors/identityContactMethodSelector.js +70 -0
  23. package/dist/selectors/identityDataConnectorSelector.js +70 -0
  24. package/dist/selectors/identityDetailsSelector.js +70 -0
  25. package/dist/selectors/identityNoteImageSelector.js +70 -0
  26. package/dist/selectors/identityNoteSelector.js +70 -0
  27. package/dist/selectors/identityNotesSelector.js +70 -0
  28. package/dist/selectors/identityOrganisationSelector.js +70 -0
  29. package/dist/selectors/identityPersonSelector.js +70 -0
  30. package/dist/selectors/identityReferenceSelector.js +70 -0
  31. package/dist/selectors/identityRelationshipSelector.js +70 -0
  32. package/dist/selectors/identityRelationshipTypeSelector.js +70 -0
  33. package/dist/selectors/identityRoleSelector.js +70 -0
  34. package/dist/selectors/identitySelector.js +70 -0
  35. package/dist/selectors/identityServiceProviderSelector.js +70 -0
  36. package/dist/selectors/identityVineyardBlockRowSelector.js +70 -0
  37. package/dist/selectors/identityVineyardBlockRowsSelector.js +70 -0
  38. package/dist/selectors/identityVineyardBlockSelector.js +70 -0
  39. package/dist/selectors/identityVineyardBlocksSelector.js +70 -0
  40. package/dist/selectors/identityVineyardSelector.js +70 -0
  41. package/dist/selectors/index.js +1097 -0
  42. package/dist/selectors/lookupBlockVintageStatusSelector.js +70 -0
  43. package/dist/selectors/lookupBusinessUnitSelector.js +70 -0
  44. package/dist/selectors/lookupClassificationGroupIdentityTypeSelector.js +70 -0
  45. package/dist/selectors/lookupClassificationGroupSelector.js +70 -0
  46. package/dist/selectors/lookupClassificationSelector.js +70 -0
  47. package/dist/selectors/lookupContactMethodSelector.js +70 -0
  48. package/dist/selectors/lookupCountrySelector.js +70 -0
  49. package/dist/selectors/lookupDataProviderSelector.js +70 -0
  50. package/dist/selectors/lookupDataProviderTypeSelector.js +70 -0
  51. package/dist/selectors/lookupEthnicitySelector.js +70 -0
  52. package/dist/selectors/lookupGenderSelector.js +70 -0
  53. package/dist/selectors/lookupGrowingRegionSelector.js +70 -0
  54. package/dist/selectors/lookupGrowingSubRegionSelector.js +70 -0
  55. package/dist/selectors/lookupIdentityTypeSelector.js +70 -0
  56. package/dist/selectors/lookupKeywordSelector.js +70 -0
  57. package/dist/selectors/lookupLanguageSelector.js +70 -0
  58. package/dist/selectors/lookupMeasureGroupSelector.js +70 -0
  59. package/dist/selectors/lookupMeasureInstanceSelector.js +70 -0
  60. package/dist/selectors/lookupMeasureSelector.js +70 -0
  61. package/dist/selectors/lookupNationalitySelector.js +70 -0
  62. package/dist/selectors/lookupNoteStatusSelector.js +70 -0
  63. package/dist/selectors/lookupPayrollSystemSelector.js +70 -0
  64. package/dist/selectors/lookupPhenologyMeasureOptionSelector.js +70 -0
  65. package/dist/selectors/lookupPhenologyMeasureSelector.js +70 -0
  66. package/dist/selectors/lookupPhenologyMeasureSetSelector.js +70 -0
  67. package/dist/selectors/lookupPhenologyMeasureTypeSelector.js +70 -0
  68. package/dist/selectors/lookupReferenceTypeIdentityTypeSelector.js +70 -0
  69. package/dist/selectors/lookupReferenceTypeSelector.js +70 -0
  70. package/dist/selectors/lookupRelationshipSubTypeSelector.js +70 -0
  71. package/dist/selectors/lookupRelationshipTypeSelector.js +70 -0
  72. package/dist/selectors/lookupRoleTypeIdentityTypeSelector.js +70 -0
  73. package/dist/selectors/lookupRoleTypeSelector.js +70 -0
  74. package/dist/selectors/lookupRootStockSelector.js +70 -0
  75. package/dist/selectors/lookupRowSpecialAttributeSelector.js +70 -0
  76. package/dist/selectors/lookupSalutationSelector.js +70 -0
  77. package/dist/selectors/lookupSampleRequestStatusSelector.js +70 -0
  78. package/dist/selectors/lookupStatusSelector.js +263 -0
  79. package/dist/selectors/lookupTownSelector.js +70 -0
  80. package/dist/selectors/lookupTrellisSelector.js +70 -0
  81. package/dist/selectors/lookupVarietyCloneSelector.js +70 -0
  82. package/dist/selectors/lookupVarietySelector.js +70 -0
  83. package/dist/selectors/lookupVintageSelector.js +70 -0
  84. package/dist/selectors/processblocksamplingSelector.js +70 -0
  85. package/dist/selectors/queueMessageSelector.js +70 -0
  86. package/dist/selectors/sampleBlockVintagesSelector.js +70 -0
  87. package/dist/selectors/sampleHeaderSelector.js +70 -0
  88. package/dist/selectors/sampleHeaderStatusSelector.js +70 -0
  89. package/dist/selectors/sampleHeadersSelector.js +70 -0
  90. package/dist/selectors/sampleIdentitySelector.js +70 -0
  91. package/dist/selectors/sampleSetSelector.js +70 -0
  92. package/dist/selectors/sampleSetsSelector.js +70 -0
  93. package/dist/selectors/samplingUsersSelector.js +70 -0
  94. package/dist/selectors/searchIdentitySelector.js +70 -0
  95. package/dist/services/apiServices.js +7008 -0
  96. package/dist/services/config/serviceConfig.js +137 -0
  97. package/dist/services/index.js +32 -0
  98. package/dist/utils/winstonLogger.js +31 -0
  99. package/index.js +1 -0
  100. package/package.json +46 -0
  101. package/src/actions/commonActions.js +960 -0
  102. package/src/actions/index.js +1 -0
  103. package/src/index.js +13 -0
  104. package/src/reducers/createNamedReducer.js +76 -0
  105. package/src/reducers/index.js +92 -0
  106. package/src/sagas/index.js +4 -0
  107. package/src/sagas/vineaNovaApi.sagas.js +4312 -0
  108. package/src/selectors/assignSampleHeadersSelector.js +61 -0
  109. package/src/selectors/blockVintageSelector.js +61 -0
  110. package/src/selectors/contactMethodSelector.js +61 -0
  111. package/src/selectors/cropBlockPhenologySelector.js +61 -0
  112. package/src/selectors/cropBlockSettingSelector.js +61 -0
  113. package/src/selectors/cropBlockVintageSelector.js +61 -0
  114. package/src/selectors/deAssignSampleHeadersSelector.js +61 -0
  115. package/src/selectors/getLookUpSelector.js +61 -0
  116. package/src/selectors/gridVineyardBlocksSelector.js +61 -0
  117. package/src/selectors/healthcheckSelector.js +61 -0
  118. package/src/selectors/identityClassificationSelector.js +61 -0
  119. package/src/selectors/identityContactMethodAddressSelector.js +61 -0
  120. package/src/selectors/identityContactMethodSelector.js +61 -0
  121. package/src/selectors/identityDataConnectorSelector.js +61 -0
  122. package/src/selectors/identityDetailsSelector.js +61 -0
  123. package/src/selectors/identityNoteImageSelector.js +61 -0
  124. package/src/selectors/identityNoteSelector.js +61 -0
  125. package/src/selectors/identityNotesSelector.js +61 -0
  126. package/src/selectors/identityOrganisationSelector.js +61 -0
  127. package/src/selectors/identityPersonSelector.js +61 -0
  128. package/src/selectors/identityReferenceSelector.js +61 -0
  129. package/src/selectors/identityRelationshipSelector.js +61 -0
  130. package/src/selectors/identityRelationshipTypeSelector.js +61 -0
  131. package/src/selectors/identityRoleSelector.js +61 -0
  132. package/src/selectors/identitySelector.js +61 -0
  133. package/src/selectors/identityServiceProviderSelector.js +61 -0
  134. package/src/selectors/identityVineyardBlockRowSelector.js +61 -0
  135. package/src/selectors/identityVineyardBlockRowsSelector.js +61 -0
  136. package/src/selectors/identityVineyardBlockSelector.js +61 -0
  137. package/src/selectors/identityVineyardBlocksSelector.js +61 -0
  138. package/src/selectors/identityVineyardSelector.js +61 -0
  139. package/src/selectors/index.js +85 -0
  140. package/src/selectors/lookupBlockVintageStatusSelector.js +61 -0
  141. package/src/selectors/lookupBusinessUnitSelector.js +61 -0
  142. package/src/selectors/lookupClassificationGroupIdentityTypeSelector.js +61 -0
  143. package/src/selectors/lookupClassificationGroupSelector.js +61 -0
  144. package/src/selectors/lookupClassificationSelector.js +61 -0
  145. package/src/selectors/lookupContactMethodSelector.js +61 -0
  146. package/src/selectors/lookupCountrySelector.js +61 -0
  147. package/src/selectors/lookupDataProviderSelector.js +61 -0
  148. package/src/selectors/lookupDataProviderTypeSelector.js +61 -0
  149. package/src/selectors/lookupEthnicitySelector.js +61 -0
  150. package/src/selectors/lookupGenderSelector.js +61 -0
  151. package/src/selectors/lookupGrowingRegionSelector.js +61 -0
  152. package/src/selectors/lookupGrowingSubRegionSelector.js +61 -0
  153. package/src/selectors/lookupIdentityTypeSelector.js +61 -0
  154. package/src/selectors/lookupKeywordSelector.js +61 -0
  155. package/src/selectors/lookupLanguageSelector.js +61 -0
  156. package/src/selectors/lookupMeasureGroupSelector.js +61 -0
  157. package/src/selectors/lookupMeasureInstanceSelector.js +61 -0
  158. package/src/selectors/lookupMeasureSelector.js +61 -0
  159. package/src/selectors/lookupNationalitySelector.js +61 -0
  160. package/src/selectors/lookupNoteStatusSelector.js +61 -0
  161. package/src/selectors/lookupPayrollSystemSelector.js +61 -0
  162. package/src/selectors/lookupPhenologyMeasureOptionSelector.js +61 -0
  163. package/src/selectors/lookupPhenologyMeasureSelector.js +61 -0
  164. package/src/selectors/lookupPhenologyMeasureSetSelector.js +61 -0
  165. package/src/selectors/lookupPhenologyMeasureTypeSelector.js +61 -0
  166. package/src/selectors/lookupReferenceTypeIdentityTypeSelector.js +61 -0
  167. package/src/selectors/lookupReferenceTypeSelector.js +61 -0
  168. package/src/selectors/lookupRelationshipSubTypeSelector.js +61 -0
  169. package/src/selectors/lookupRelationshipTypeSelector.js +61 -0
  170. package/src/selectors/lookupRoleTypeIdentityTypeSelector.js +61 -0
  171. package/src/selectors/lookupRoleTypeSelector.js +61 -0
  172. package/src/selectors/lookupRootStockSelector.js +61 -0
  173. package/src/selectors/lookupRowSpecialAttributeSelector.js +61 -0
  174. package/src/selectors/lookupSalutationSelector.js +61 -0
  175. package/src/selectors/lookupSampleRequestStatusSelector.js +61 -0
  176. package/src/selectors/lookupStatusSelector.js +396 -0
  177. package/src/selectors/lookupTownSelector.js +61 -0
  178. package/src/selectors/lookupTrellisSelector.js +61 -0
  179. package/src/selectors/lookupVarietyCloneSelector.js +61 -0
  180. package/src/selectors/lookupVarietySelector.js +61 -0
  181. package/src/selectors/lookupVintageSelector.js +61 -0
  182. package/src/selectors/processblocksamplingSelector.js +61 -0
  183. package/src/selectors/queueMessageSelector.js +61 -0
  184. package/src/selectors/sampleBlockVintagesSelector.js +61 -0
  185. package/src/selectors/sampleHeaderSelector.js +61 -0
  186. package/src/selectors/sampleHeaderStatusSelector.js +61 -0
  187. package/src/selectors/sampleHeadersSelector.js +61 -0
  188. package/src/selectors/sampleIdentitySelector.js +61 -0
  189. package/src/selectors/sampleSetSelector.js +61 -0
  190. package/src/selectors/sampleSetsSelector.js +61 -0
  191. package/src/selectors/samplingUsersSelector.js +61 -0
  192. package/src/selectors/searchIdentitySelector.js +61 -0
  193. package/src/services/apiServices.js +3559 -0
  194. package/src/services/config/serviceConfig.js +92 -0
  195. package/src/services/index.js +4 -0
  196. package/src/utils/winstonLogger.js +20 -0
@@ -0,0 +1,4312 @@
1
+ /**
2
+ * @module Sagas/vineaNovaApi.sagas
3
+ * @desc common sagas for vinea nova api actions
4
+ */
5
+
6
+ import { put, call, takeLatest, all, takeLeading } from "redux-saga/effects";
7
+ import { normalize, schema } from "normalizr";
8
+ import * as APIServices from "../services";
9
+ import logger from "../utils/winstonLogger";
10
+ import { VineaNovaActions } from '../actions'
11
+
12
+ /**
13
+ * commonActionCreator
14
+ */
15
+ export function* getBlockVintageSagas(action) {
16
+ const {
17
+ payload = {},
18
+ meta: { reducerName },
19
+ } = action;
20
+ try {
21
+ yield put({
22
+ type: "FETCHING",
23
+ name: reducerName,
24
+ });
25
+
26
+ const response = yield call(APIServices.getBlockVintage, payload);
27
+ yield put({
28
+ type: "SUCCESS",
29
+ payload: response,
30
+ name: reducerName,
31
+ });
32
+
33
+
34
+ } catch (err) {
35
+ logger.error(err);
36
+ /* istanbul ignore next */
37
+ yield put({
38
+ type: "ERROR",
39
+ payload: err,
40
+ name: reducerName,
41
+ });
42
+ }
43
+ }
44
+
45
+ export function* postBlockVintageSagas(action) {
46
+ const {
47
+ payload = {},
48
+ meta: { reducerName },
49
+ } = action;
50
+ try {
51
+ yield put({
52
+ type: "FETCHING",
53
+ name: reducerName,
54
+ });
55
+
56
+ const response = yield call(APIServices.postBlockVintage, payload);
57
+ yield put({
58
+ type: "SUCCESS",
59
+ payload: response,
60
+ name: reducerName,
61
+ });
62
+
63
+
64
+ } catch (err) {
65
+ logger.error(err);
66
+ /* istanbul ignore next */
67
+ yield put({
68
+ type: "ERROR",
69
+ payload: err,
70
+ name: reducerName,
71
+ });
72
+ }
73
+ }
74
+
75
+ export function* putBlockVintageSagas(action) {
76
+ const {
77
+ payload = {},
78
+ meta: { reducerName },
79
+ } = action;
80
+ try {
81
+ yield put({
82
+ type: "FETCHING",
83
+ name: reducerName,
84
+ });
85
+
86
+ const response = yield call(APIServices.putBlockVintage, payload);
87
+ yield put({
88
+ type: "SUCCESS",
89
+ payload: response,
90
+ name: reducerName,
91
+ });
92
+
93
+
94
+ } catch (err) {
95
+ logger.error(err);
96
+ /* istanbul ignore next */
97
+ yield put({
98
+ type: "ERROR",
99
+ payload: err,
100
+ name: reducerName,
101
+ });
102
+ }
103
+ }
104
+
105
+ export function* deleteBlockVintageSagas(action) {
106
+ const {
107
+ payload = {},
108
+ meta: { reducerName },
109
+ } = action;
110
+ try {
111
+ yield put({
112
+ type: "FETCHING",
113
+ name: reducerName,
114
+ });
115
+
116
+ const response = yield call(APIServices.deleteBlockVintage, payload);
117
+ yield put({
118
+ type: "SUCCESS",
119
+ payload: response,
120
+ name: reducerName,
121
+ });
122
+
123
+
124
+ } catch (err) {
125
+ logger.error(err);
126
+ /* istanbul ignore next */
127
+ yield put({
128
+ type: "ERROR",
129
+ payload: err,
130
+ name: reducerName,
131
+ });
132
+ }
133
+ }
134
+
135
+
136
+ export function* getCropBlockPhenologySagas(action) {
137
+ const {
138
+ payload = {},
139
+ meta: { reducerName },
140
+ } = action;
141
+ try {
142
+ yield put({
143
+ type: "FETCHING",
144
+ name: reducerName,
145
+ });
146
+
147
+ const response = yield call(APIServices.getCropBlockPhenology, payload);
148
+ yield put({
149
+ type: "SUCCESS",
150
+ payload: response,
151
+ name: reducerName,
152
+ });
153
+
154
+ const CropBlockPhenologySchema = new schema.Entity("byId");
155
+ const CropBlockPhenologyListSchema = new schema.Array(CropBlockPhenologySchema);
156
+ const {entities: {byId}, result: allIds} = normalize(response, CropBlockPhenologyListSchema);
157
+ yield put({
158
+ type: "MERGE_ALL_IDS",
159
+ payload: {byId, allIds},
160
+ name: reducerName,
161
+ });
162
+
163
+ } catch (err) {
164
+ logger.error(err);
165
+ /* istanbul ignore next */
166
+ yield put({
167
+ type: "ERROR",
168
+ payload: err,
169
+ name: reducerName,
170
+ });
171
+ }
172
+ }
173
+
174
+ export function* postCropBlockPhenologySagas(action) {
175
+ const {
176
+ payload = {},
177
+ meta: { reducerName },
178
+ } = action;
179
+ try {
180
+ yield put({
181
+ type: "FETCHING",
182
+ name: reducerName,
183
+ });
184
+
185
+ const response = yield call(APIServices.postCropBlockPhenology, payload);
186
+ yield put({
187
+ type: "SUCCESS",
188
+ payload: response,
189
+ name: reducerName,
190
+ });
191
+
192
+
193
+ } catch (err) {
194
+ logger.error(err);
195
+ /* istanbul ignore next */
196
+ yield put({
197
+ type: "ERROR",
198
+ payload: err,
199
+ name: reducerName,
200
+ });
201
+ }
202
+ }
203
+
204
+ export function* putCropBlockPhenologySagas(action) {
205
+ const {
206
+ payload = {},
207
+ meta: { reducerName },
208
+ } = action;
209
+ try {
210
+ yield put({
211
+ type: "FETCHING",
212
+ name: reducerName,
213
+ });
214
+
215
+ const response = yield call(APIServices.putCropBlockPhenology, payload);
216
+ yield put({
217
+ type: "SUCCESS",
218
+ payload: response,
219
+ name: reducerName,
220
+ });
221
+
222
+
223
+ } catch (err) {
224
+ logger.error(err);
225
+ /* istanbul ignore next */
226
+ yield put({
227
+ type: "ERROR",
228
+ payload: err,
229
+ name: reducerName,
230
+ });
231
+ }
232
+ }
233
+
234
+ export function* deleteCropBlockPhenologySagas(action) {
235
+ const {
236
+ payload = {},
237
+ meta: { reducerName },
238
+ } = action;
239
+ try {
240
+ yield put({
241
+ type: "FETCHING",
242
+ name: reducerName,
243
+ });
244
+
245
+ const response = yield call(APIServices.deleteCropBlockPhenology, payload);
246
+ yield put({
247
+ type: "SUCCESS",
248
+ payload: response,
249
+ name: reducerName,
250
+ });
251
+
252
+
253
+ } catch (err) {
254
+ logger.error(err);
255
+ /* istanbul ignore next */
256
+ yield put({
257
+ type: "ERROR",
258
+ payload: err,
259
+ name: reducerName,
260
+ });
261
+ }
262
+ }
263
+
264
+
265
+ export function* getCropBlockSettingSagas(action) {
266
+ const {
267
+ payload = {},
268
+ meta: { reducerName },
269
+ } = action;
270
+ try {
271
+ yield put({
272
+ type: "FETCHING",
273
+ name: reducerName,
274
+ });
275
+
276
+ const response = yield call(APIServices.getCropBlockSetting, payload);
277
+ yield put({
278
+ type: "SUCCESS",
279
+ payload: response,
280
+ name: reducerName,
281
+ });
282
+
283
+
284
+ } catch (err) {
285
+ logger.error(err);
286
+ /* istanbul ignore next */
287
+ yield put({
288
+ type: "ERROR",
289
+ payload: err,
290
+ name: reducerName,
291
+ });
292
+ }
293
+ }
294
+
295
+ export function* postCropBlockSettingSagas(action) {
296
+ const {
297
+ payload = {},
298
+ meta: { reducerName },
299
+ } = action;
300
+ try {
301
+ yield put({
302
+ type: "FETCHING",
303
+ name: reducerName,
304
+ });
305
+
306
+ const response = yield call(APIServices.postCropBlockSetting, payload);
307
+ yield put({
308
+ type: "SUCCESS",
309
+ payload: response,
310
+ name: reducerName,
311
+ });
312
+
313
+
314
+ } catch (err) {
315
+ logger.error(err);
316
+ /* istanbul ignore next */
317
+ yield put({
318
+ type: "ERROR",
319
+ payload: err,
320
+ name: reducerName,
321
+ });
322
+ }
323
+ }
324
+
325
+ export function* putCropBlockSettingSagas(action) {
326
+ const {
327
+ payload = {},
328
+ meta: { reducerName },
329
+ } = action;
330
+ try {
331
+ yield put({
332
+ type: "FETCHING",
333
+ name: reducerName,
334
+ });
335
+
336
+ const response = yield call(APIServices.putCropBlockSetting, payload);
337
+ yield put({
338
+ type: "SUCCESS",
339
+ payload: response,
340
+ name: reducerName,
341
+ });
342
+
343
+
344
+ } catch (err) {
345
+ logger.error(err);
346
+ /* istanbul ignore next */
347
+ yield put({
348
+ type: "ERROR",
349
+ payload: err,
350
+ name: reducerName,
351
+ });
352
+ }
353
+ }
354
+
355
+
356
+ export function* getCropBlockVintageSagas(action) {
357
+ const {
358
+ payload = {},
359
+ meta: { reducerName },
360
+ } = action;
361
+ try {
362
+ yield put({
363
+ type: "FETCHING",
364
+ name: reducerName,
365
+ });
366
+
367
+ const response = yield call(APIServices.getCropBlockVintage, payload);
368
+ yield put({
369
+ type: "SUCCESS",
370
+ payload: response,
371
+ name: reducerName,
372
+ });
373
+
374
+ const CropBlockVintageSchema = new schema.Entity("byId");
375
+ const CropBlockVintageListSchema = new schema.Array(CropBlockVintageSchema);
376
+ const {entities: {byId}, result: allIds} = normalize(response, CropBlockVintageListSchema);
377
+ yield put({
378
+ type: "MERGE_ALL_IDS",
379
+ payload: {byId, allIds},
380
+ name: reducerName,
381
+ });
382
+
383
+ } catch (err) {
384
+ logger.error(err);
385
+ /* istanbul ignore next */
386
+ yield put({
387
+ type: "ERROR",
388
+ payload: err,
389
+ name: reducerName,
390
+ });
391
+ }
392
+ }
393
+
394
+ export function* postCropBlockVintageSagas(action) {
395
+ const {
396
+ payload = {},
397
+ meta: { reducerName },
398
+ } = action;
399
+ try {
400
+ yield put({
401
+ type: "FETCHING",
402
+ name: reducerName,
403
+ });
404
+
405
+ const response = yield call(APIServices.postCropBlockVintage, payload);
406
+ yield put({
407
+ type: "SUCCESS",
408
+ payload: response,
409
+ name: reducerName,
410
+ });
411
+
412
+
413
+ } catch (err) {
414
+ logger.error(err);
415
+ /* istanbul ignore next */
416
+ yield put({
417
+ type: "ERROR",
418
+ payload: err,
419
+ name: reducerName,
420
+ });
421
+ }
422
+ }
423
+
424
+ export function* putCropBlockVintageSagas(action) {
425
+ const {
426
+ payload = {},
427
+ meta: { reducerName },
428
+ } = action;
429
+ try {
430
+ yield put({
431
+ type: "FETCHING",
432
+ name: reducerName,
433
+ });
434
+
435
+ const response = yield call(APIServices.putCropBlockVintage, payload);
436
+ yield put({
437
+ type: "SUCCESS",
438
+ payload: response,
439
+ name: reducerName,
440
+ });
441
+
442
+
443
+ } catch (err) {
444
+ logger.error(err);
445
+ /* istanbul ignore next */
446
+ yield put({
447
+ type: "ERROR",
448
+ payload: err,
449
+ name: reducerName,
450
+ });
451
+ }
452
+ }
453
+
454
+ export function* deleteCropBlockVintageSagas(action) {
455
+ const {
456
+ payload = {},
457
+ meta: { reducerName },
458
+ } = action;
459
+ try {
460
+ yield put({
461
+ type: "FETCHING",
462
+ name: reducerName,
463
+ });
464
+
465
+ const response = yield call(APIServices.deleteCropBlockVintage, payload);
466
+ yield put({
467
+ type: "SUCCESS",
468
+ payload: response,
469
+ name: reducerName,
470
+ });
471
+
472
+
473
+ } catch (err) {
474
+ logger.error(err);
475
+ /* istanbul ignore next */
476
+ yield put({
477
+ type: "ERROR",
478
+ payload: err,
479
+ name: reducerName,
480
+ });
481
+ }
482
+ }
483
+
484
+
485
+ export function* gethealthcheckSagas(action) {
486
+ const {
487
+ payload = {},
488
+ meta: { reducerName },
489
+ } = action;
490
+ try {
491
+ yield put({
492
+ type: "FETCHING",
493
+ name: reducerName,
494
+ });
495
+
496
+ const response = yield call(APIServices.gethealthcheck, payload);
497
+ yield put({
498
+ type: "SUCCESS",
499
+ payload: response,
500
+ name: reducerName,
501
+ });
502
+
503
+
504
+ } catch (err) {
505
+ logger.error(err);
506
+ /* istanbul ignore next */
507
+ yield put({
508
+ type: "ERROR",
509
+ payload: err,
510
+ name: reducerName,
511
+ });
512
+ }
513
+ }
514
+
515
+ export function* posthealthcheckSagas(action) {
516
+ const {
517
+ payload = {},
518
+ meta: { reducerName },
519
+ } = action;
520
+ try {
521
+ yield put({
522
+ type: "FETCHING",
523
+ name: reducerName,
524
+ });
525
+
526
+ const response = yield call(APIServices.posthealthcheck, payload);
527
+ yield put({
528
+ type: "SUCCESS",
529
+ payload: response,
530
+ name: reducerName,
531
+ });
532
+
533
+
534
+ } catch (err) {
535
+ logger.error(err);
536
+ /* istanbul ignore next */
537
+ yield put({
538
+ type: "ERROR",
539
+ payload: err,
540
+ name: reducerName,
541
+ });
542
+ }
543
+ }
544
+
545
+
546
+ export function* getIdentitySagas(action) {
547
+ const {
548
+ payload = {},
549
+ meta: { reducerName },
550
+ } = action;
551
+ try {
552
+ yield put({
553
+ type: "FETCHING",
554
+ name: reducerName,
555
+ });
556
+
557
+ const response = yield call(APIServices.getIdentity, payload);
558
+ yield put({
559
+ type: "SUCCESS",
560
+ payload: response,
561
+ name: reducerName,
562
+ });
563
+
564
+
565
+ } catch (err) {
566
+ logger.error(err);
567
+ /* istanbul ignore next */
568
+ yield put({
569
+ type: "ERROR",
570
+ payload: err,
571
+ name: reducerName,
572
+ });
573
+ }
574
+ }
575
+
576
+
577
+ export function* getIdentityDetailsSagas(action) {
578
+ const {
579
+ payload = {},
580
+ meta: { reducerName },
581
+ } = action;
582
+ try {
583
+ yield put({
584
+ type: "FETCHING",
585
+ name: reducerName,
586
+ });
587
+
588
+ const response = yield call(APIServices.getIdentityDetails, payload);
589
+ yield put({
590
+ type: "SUCCESS",
591
+ payload: response,
592
+ name: reducerName,
593
+ });
594
+
595
+
596
+ } catch (err) {
597
+ logger.error(err);
598
+ /* istanbul ignore next */
599
+ yield put({
600
+ type: "ERROR",
601
+ payload: err,
602
+ name: reducerName,
603
+ });
604
+ }
605
+ }
606
+
607
+
608
+ export function* getIdentityClassificationSagas(action) {
609
+ const {
610
+ payload = {},
611
+ meta: { reducerName },
612
+ } = action;
613
+ try {
614
+ yield put({
615
+ type: "FETCHING",
616
+ name: reducerName,
617
+ });
618
+
619
+ const response = yield call(APIServices.getIdentityClassification, payload);
620
+ yield put({
621
+ type: "SUCCESS",
622
+ payload: response,
623
+ name: reducerName,
624
+ });
625
+
626
+
627
+ } catch (err) {
628
+ logger.error(err);
629
+ /* istanbul ignore next */
630
+ yield put({
631
+ type: "ERROR",
632
+ payload: err,
633
+ name: reducerName,
634
+ });
635
+ }
636
+ }
637
+
638
+ export function* postIdentityClassificationSagas(action) {
639
+ const {
640
+ payload = {},
641
+ meta: { reducerName },
642
+ } = action;
643
+ try {
644
+ yield put({
645
+ type: "FETCHING",
646
+ name: reducerName,
647
+ });
648
+
649
+ const response = yield call(APIServices.postIdentityClassification, payload);
650
+ yield put({
651
+ type: "SUCCESS",
652
+ payload: response,
653
+ name: reducerName,
654
+ });
655
+
656
+
657
+ } catch (err) {
658
+ logger.error(err);
659
+ /* istanbul ignore next */
660
+ yield put({
661
+ type: "ERROR",
662
+ payload: err,
663
+ name: reducerName,
664
+ });
665
+ }
666
+ }
667
+
668
+ export function* putIdentityClassificationSagas(action) {
669
+ const {
670
+ payload = {},
671
+ meta: { reducerName },
672
+ } = action;
673
+ try {
674
+ yield put({
675
+ type: "FETCHING",
676
+ name: reducerName,
677
+ });
678
+
679
+ const response = yield call(APIServices.putIdentityClassification, payload);
680
+ yield put({
681
+ type: "SUCCESS",
682
+ payload: response,
683
+ name: reducerName,
684
+ });
685
+
686
+
687
+ } catch (err) {
688
+ logger.error(err);
689
+ /* istanbul ignore next */
690
+ yield put({
691
+ type: "ERROR",
692
+ payload: err,
693
+ name: reducerName,
694
+ });
695
+ }
696
+ }
697
+
698
+ export function* deleteIdentityClassificationSagas(action) {
699
+ const {
700
+ payload = {},
701
+ meta: { reducerName },
702
+ } = action;
703
+ try {
704
+ yield put({
705
+ type: "FETCHING",
706
+ name: reducerName,
707
+ });
708
+
709
+ const response = yield call(APIServices.deleteIdentityClassification, payload);
710
+ yield put({
711
+ type: "SUCCESS",
712
+ payload: response,
713
+ name: reducerName,
714
+ });
715
+
716
+
717
+ } catch (err) {
718
+ logger.error(err);
719
+ /* istanbul ignore next */
720
+ yield put({
721
+ type: "ERROR",
722
+ payload: err,
723
+ name: reducerName,
724
+ });
725
+ }
726
+ }
727
+
728
+
729
+ export function* getIdentityContactMethodSagas(action) {
730
+ const {
731
+ payload = {},
732
+ meta: { reducerName },
733
+ } = action;
734
+ try {
735
+ yield put({
736
+ type: "FETCHING",
737
+ name: reducerName,
738
+ });
739
+
740
+ const response = yield call(APIServices.getIdentityContactMethod, payload);
741
+ yield put({
742
+ type: "SUCCESS",
743
+ payload: response,
744
+ name: reducerName,
745
+ });
746
+
747
+
748
+ } catch (err) {
749
+ logger.error(err);
750
+ /* istanbul ignore next */
751
+ yield put({
752
+ type: "ERROR",
753
+ payload: err,
754
+ name: reducerName,
755
+ });
756
+ }
757
+ }
758
+
759
+
760
+ export function* postContactMethodSagas(action) {
761
+ const {
762
+ payload = {},
763
+ meta: { reducerName },
764
+ } = action;
765
+ try {
766
+ yield put({
767
+ type: "FETCHING",
768
+ name: reducerName,
769
+ });
770
+
771
+ const response = yield call(APIServices.postContactMethod, payload);
772
+ yield put({
773
+ type: "SUCCESS",
774
+ payload: response,
775
+ name: reducerName,
776
+ });
777
+
778
+
779
+ } catch (err) {
780
+ logger.error(err);
781
+ /* istanbul ignore next */
782
+ yield put({
783
+ type: "ERROR",
784
+ payload: err,
785
+ name: reducerName,
786
+ });
787
+ }
788
+ }
789
+
790
+ export function* putContactMethodSagas(action) {
791
+ const {
792
+ payload = {},
793
+ meta: { reducerName },
794
+ } = action;
795
+ try {
796
+ yield put({
797
+ type: "FETCHING",
798
+ name: reducerName,
799
+ });
800
+
801
+ const response = yield call(APIServices.putContactMethod, payload);
802
+ yield put({
803
+ type: "SUCCESS",
804
+ payload: response,
805
+ name: reducerName,
806
+ });
807
+
808
+
809
+ } catch (err) {
810
+ logger.error(err);
811
+ /* istanbul ignore next */
812
+ yield put({
813
+ type: "ERROR",
814
+ payload: err,
815
+ name: reducerName,
816
+ });
817
+ }
818
+ }
819
+
820
+ export function* deleteContactMethodSagas(action) {
821
+ const {
822
+ payload = {},
823
+ meta: { reducerName },
824
+ } = action;
825
+ try {
826
+ yield put({
827
+ type: "FETCHING",
828
+ name: reducerName,
829
+ });
830
+
831
+ const response = yield call(APIServices.deleteContactMethod, payload);
832
+ yield put({
833
+ type: "SUCCESS",
834
+ payload: response,
835
+ name: reducerName,
836
+ });
837
+
838
+
839
+ } catch (err) {
840
+ logger.error(err);
841
+ /* istanbul ignore next */
842
+ yield put({
843
+ type: "ERROR",
844
+ payload: err,
845
+ name: reducerName,
846
+ });
847
+ }
848
+ }
849
+
850
+
851
+ export function* getIdentityContactMethodAddressSagas(action) {
852
+ const {
853
+ payload = {},
854
+ meta: { reducerName },
855
+ } = action;
856
+ try {
857
+ yield put({
858
+ type: "FETCHING",
859
+ name: reducerName,
860
+ });
861
+
862
+ const response = yield call(APIServices.getIdentityContactMethodAddress, payload);
863
+ yield put({
864
+ type: "SUCCESS",
865
+ payload: response,
866
+ name: reducerName,
867
+ });
868
+
869
+
870
+ } catch (err) {
871
+ logger.error(err);
872
+ /* istanbul ignore next */
873
+ yield put({
874
+ type: "ERROR",
875
+ payload: err,
876
+ name: reducerName,
877
+ });
878
+ }
879
+ }
880
+
881
+ export function* postIdentityContactMethodAddressSagas(action) {
882
+ const {
883
+ payload = {},
884
+ meta: { reducerName },
885
+ } = action;
886
+ try {
887
+ yield put({
888
+ type: "FETCHING",
889
+ name: reducerName,
890
+ });
891
+
892
+ const response = yield call(APIServices.postIdentityContactMethodAddress, payload);
893
+ yield put({
894
+ type: "SUCCESS",
895
+ payload: response,
896
+ name: reducerName,
897
+ });
898
+
899
+
900
+ } catch (err) {
901
+ logger.error(err);
902
+ /* istanbul ignore next */
903
+ yield put({
904
+ type: "ERROR",
905
+ payload: err,
906
+ name: reducerName,
907
+ });
908
+ }
909
+ }
910
+
911
+ export function* putIdentityContactMethodAddressSagas(action) {
912
+ const {
913
+ payload = {},
914
+ meta: { reducerName },
915
+ } = action;
916
+ try {
917
+ yield put({
918
+ type: "FETCHING",
919
+ name: reducerName,
920
+ });
921
+
922
+ const response = yield call(APIServices.putIdentityContactMethodAddress, payload);
923
+ yield put({
924
+ type: "SUCCESS",
925
+ payload: response,
926
+ name: reducerName,
927
+ });
928
+
929
+
930
+ } catch (err) {
931
+ logger.error(err);
932
+ /* istanbul ignore next */
933
+ yield put({
934
+ type: "ERROR",
935
+ payload: err,
936
+ name: reducerName,
937
+ });
938
+ }
939
+ }
940
+
941
+
942
+ export function* getIdentityDataConnectorSagas(action) {
943
+ const {
944
+ payload = {},
945
+ meta: { reducerName },
946
+ } = action;
947
+ try {
948
+ yield put({
949
+ type: "FETCHING",
950
+ name: reducerName,
951
+ });
952
+
953
+ const response = yield call(APIServices.getIdentityDataConnector, payload);
954
+ yield put({
955
+ type: "SUCCESS",
956
+ payload: response,
957
+ name: reducerName,
958
+ });
959
+
960
+
961
+ } catch (err) {
962
+ logger.error(err);
963
+ /* istanbul ignore next */
964
+ yield put({
965
+ type: "ERROR",
966
+ payload: err,
967
+ name: reducerName,
968
+ });
969
+ }
970
+ }
971
+
972
+ export function* postIdentityDataConnectorSagas(action) {
973
+ const {
974
+ payload = {},
975
+ meta: { reducerName },
976
+ } = action;
977
+ try {
978
+ yield put({
979
+ type: "FETCHING",
980
+ name: reducerName,
981
+ });
982
+
983
+ const response = yield call(APIServices.postIdentityDataConnector, payload);
984
+ yield put({
985
+ type: "SUCCESS",
986
+ payload: response,
987
+ name: reducerName,
988
+ });
989
+
990
+
991
+ } catch (err) {
992
+ logger.error(err);
993
+ /* istanbul ignore next */
994
+ yield put({
995
+ type: "ERROR",
996
+ payload: err,
997
+ name: reducerName,
998
+ });
999
+ }
1000
+ }
1001
+
1002
+ export function* putIdentityDataConnectorSagas(action) {
1003
+ const {
1004
+ payload = {},
1005
+ meta: { reducerName },
1006
+ } = action;
1007
+ try {
1008
+ yield put({
1009
+ type: "FETCHING",
1010
+ name: reducerName,
1011
+ });
1012
+
1013
+ const response = yield call(APIServices.putIdentityDataConnector, payload);
1014
+ yield put({
1015
+ type: "SUCCESS",
1016
+ payload: response,
1017
+ name: reducerName,
1018
+ });
1019
+
1020
+
1021
+ } catch (err) {
1022
+ logger.error(err);
1023
+ /* istanbul ignore next */
1024
+ yield put({
1025
+ type: "ERROR",
1026
+ payload: err,
1027
+ name: reducerName,
1028
+ });
1029
+ }
1030
+ }
1031
+
1032
+
1033
+ export function* getIdentityNotesSagas(action) {
1034
+ const {
1035
+ payload = {},
1036
+ meta: { reducerName },
1037
+ } = action;
1038
+ try {
1039
+ yield put({
1040
+ type: "FETCHING",
1041
+ name: reducerName,
1042
+ });
1043
+
1044
+ const response = yield call(APIServices.getIdentityNotes, payload);
1045
+ yield put({
1046
+ type: "SUCCESS",
1047
+ payload: response,
1048
+ name: reducerName,
1049
+ });
1050
+
1051
+
1052
+ } catch (err) {
1053
+ logger.error(err);
1054
+ /* istanbul ignore next */
1055
+ yield put({
1056
+ type: "ERROR",
1057
+ payload: err,
1058
+ name: reducerName,
1059
+ });
1060
+ }
1061
+ }
1062
+
1063
+
1064
+ export function* putIdentityNoteSagas(action) {
1065
+ const {
1066
+ payload = {},
1067
+ meta: { reducerName },
1068
+ } = action;
1069
+ try {
1070
+ yield put({
1071
+ type: "FETCHING",
1072
+ name: reducerName,
1073
+ });
1074
+
1075
+ const response = yield call(APIServices.putIdentityNote, payload);
1076
+ yield put({
1077
+ type: "SUCCESS",
1078
+ payload: response,
1079
+ name: reducerName,
1080
+ });
1081
+
1082
+
1083
+ } catch (err) {
1084
+ logger.error(err);
1085
+ /* istanbul ignore next */
1086
+ yield put({
1087
+ type: "ERROR",
1088
+ payload: err,
1089
+ name: reducerName,
1090
+ });
1091
+ }
1092
+ }
1093
+
1094
+ export function* postIdentityNoteSagas(action) {
1095
+ const {
1096
+ payload = {},
1097
+ meta: { reducerName },
1098
+ } = action;
1099
+ try {
1100
+ yield put({
1101
+ type: "FETCHING",
1102
+ name: reducerName,
1103
+ });
1104
+
1105
+ const response = yield call(APIServices.postIdentityNote, payload);
1106
+ yield put({
1107
+ type: "SUCCESS",
1108
+ payload: response,
1109
+ name: reducerName,
1110
+ });
1111
+
1112
+
1113
+ } catch (err) {
1114
+ logger.error(err);
1115
+ /* istanbul ignore next */
1116
+ yield put({
1117
+ type: "ERROR",
1118
+ payload: err,
1119
+ name: reducerName,
1120
+ });
1121
+ }
1122
+ }
1123
+
1124
+ export function* getIdentityNoteSagas(action) {
1125
+ const {
1126
+ payload = {},
1127
+ meta: { reducerName },
1128
+ } = action;
1129
+ try {
1130
+ yield put({
1131
+ type: "FETCHING",
1132
+ name: reducerName,
1133
+ });
1134
+
1135
+ const response = yield call(APIServices.getIdentityNote, payload);
1136
+ yield put({
1137
+ type: "SUCCESS",
1138
+ payload: response,
1139
+ name: reducerName,
1140
+ });
1141
+
1142
+
1143
+ } catch (err) {
1144
+ logger.error(err);
1145
+ /* istanbul ignore next */
1146
+ yield put({
1147
+ type: "ERROR",
1148
+ payload: err,
1149
+ name: reducerName,
1150
+ });
1151
+ }
1152
+ }
1153
+
1154
+
1155
+ export function* putIdentityNoteImageSagas(action) {
1156
+ const {
1157
+ payload = {},
1158
+ meta: { reducerName },
1159
+ } = action;
1160
+ try {
1161
+ yield put({
1162
+ type: "FETCHING",
1163
+ name: reducerName,
1164
+ });
1165
+
1166
+ const response = yield call(APIServices.putIdentityNoteImage, payload);
1167
+ yield put({
1168
+ type: "SUCCESS",
1169
+ payload: response,
1170
+ name: reducerName,
1171
+ });
1172
+
1173
+
1174
+ } catch (err) {
1175
+ logger.error(err);
1176
+ /* istanbul ignore next */
1177
+ yield put({
1178
+ type: "ERROR",
1179
+ payload: err,
1180
+ name: reducerName,
1181
+ });
1182
+ }
1183
+ }
1184
+
1185
+ export function* deleteIdentityNoteImageSagas(action) {
1186
+ const {
1187
+ payload = {},
1188
+ meta: { reducerName },
1189
+ } = action;
1190
+ try {
1191
+ yield put({
1192
+ type: "FETCHING",
1193
+ name: reducerName,
1194
+ });
1195
+
1196
+ const response = yield call(APIServices.deleteIdentityNoteImage, payload);
1197
+ yield put({
1198
+ type: "SUCCESS",
1199
+ payload: response,
1200
+ name: reducerName,
1201
+ });
1202
+
1203
+
1204
+ } catch (err) {
1205
+ logger.error(err);
1206
+ /* istanbul ignore next */
1207
+ yield put({
1208
+ type: "ERROR",
1209
+ payload: err,
1210
+ name: reducerName,
1211
+ });
1212
+ }
1213
+ }
1214
+
1215
+
1216
+ export function* postIdentityOrganisationSagas(action) {
1217
+ const {
1218
+ payload = {},
1219
+ meta: { reducerName },
1220
+ } = action;
1221
+ try {
1222
+ yield put({
1223
+ type: "FETCHING",
1224
+ name: reducerName,
1225
+ });
1226
+
1227
+ const response = yield call(APIServices.postIdentityOrganisation, payload);
1228
+ yield put({
1229
+ type: "SUCCESS",
1230
+ payload: response,
1231
+ name: reducerName,
1232
+ });
1233
+
1234
+
1235
+ } catch (err) {
1236
+ logger.error(err);
1237
+ /* istanbul ignore next */
1238
+ yield put({
1239
+ type: "ERROR",
1240
+ payload: err,
1241
+ name: reducerName,
1242
+ });
1243
+ }
1244
+ }
1245
+
1246
+ export function* putIdentityOrganisationSagas(action) {
1247
+ const {
1248
+ payload = {},
1249
+ meta: { reducerName },
1250
+ } = action;
1251
+ try {
1252
+ yield put({
1253
+ type: "FETCHING",
1254
+ name: reducerName,
1255
+ });
1256
+
1257
+ const response = yield call(APIServices.putIdentityOrganisation, payload);
1258
+ yield put({
1259
+ type: "SUCCESS",
1260
+ payload: response,
1261
+ name: reducerName,
1262
+ });
1263
+
1264
+
1265
+ } catch (err) {
1266
+ logger.error(err);
1267
+ /* istanbul ignore next */
1268
+ yield put({
1269
+ type: "ERROR",
1270
+ payload: err,
1271
+ name: reducerName,
1272
+ });
1273
+ }
1274
+ }
1275
+
1276
+ export function* getIdentityOrganisationSagas(action) {
1277
+ const {
1278
+ payload = {},
1279
+ meta: { reducerName },
1280
+ } = action;
1281
+ try {
1282
+ yield put({
1283
+ type: "FETCHING",
1284
+ name: reducerName,
1285
+ });
1286
+
1287
+ const response = yield call(APIServices.getIdentityOrganisation, payload);
1288
+ yield put({
1289
+ type: "SUCCESS",
1290
+ payload: response,
1291
+ name: reducerName,
1292
+ });
1293
+
1294
+
1295
+ } catch (err) {
1296
+ logger.error(err);
1297
+ /* istanbul ignore next */
1298
+ yield put({
1299
+ type: "ERROR",
1300
+ payload: err,
1301
+ name: reducerName,
1302
+ });
1303
+ }
1304
+ }
1305
+
1306
+
1307
+ export function* postIdentityPersonSagas(action) {
1308
+ const {
1309
+ payload = {},
1310
+ meta: { reducerName },
1311
+ } = action;
1312
+ try {
1313
+ yield put({
1314
+ type: "FETCHING",
1315
+ name: reducerName,
1316
+ });
1317
+
1318
+ const response = yield call(APIServices.postIdentityPerson, payload);
1319
+ yield put({
1320
+ type: "SUCCESS",
1321
+ payload: response,
1322
+ name: reducerName,
1323
+ });
1324
+
1325
+
1326
+ } catch (err) {
1327
+ logger.error(err);
1328
+ /* istanbul ignore next */
1329
+ yield put({
1330
+ type: "ERROR",
1331
+ payload: err,
1332
+ name: reducerName,
1333
+ });
1334
+ }
1335
+ }
1336
+
1337
+ export function* putIdentityPersonSagas(action) {
1338
+ const {
1339
+ payload = {},
1340
+ meta: { reducerName },
1341
+ } = action;
1342
+ try {
1343
+ yield put({
1344
+ type: "FETCHING",
1345
+ name: reducerName,
1346
+ });
1347
+
1348
+ const response = yield call(APIServices.putIdentityPerson, payload);
1349
+ yield put({
1350
+ type: "SUCCESS",
1351
+ payload: response,
1352
+ name: reducerName,
1353
+ });
1354
+
1355
+
1356
+ } catch (err) {
1357
+ logger.error(err);
1358
+ /* istanbul ignore next */
1359
+ yield put({
1360
+ type: "ERROR",
1361
+ payload: err,
1362
+ name: reducerName,
1363
+ });
1364
+ }
1365
+ }
1366
+
1367
+ export function* getIdentityPersonSagas(action) {
1368
+ const {
1369
+ payload = {},
1370
+ meta: { reducerName },
1371
+ } = action;
1372
+ try {
1373
+ yield put({
1374
+ type: "FETCHING",
1375
+ name: reducerName,
1376
+ });
1377
+
1378
+ const response = yield call(APIServices.getIdentityPerson, payload);
1379
+ yield put({
1380
+ type: "SUCCESS",
1381
+ payload: response,
1382
+ name: reducerName,
1383
+ });
1384
+
1385
+
1386
+ } catch (err) {
1387
+ logger.error(err);
1388
+ /* istanbul ignore next */
1389
+ yield put({
1390
+ type: "ERROR",
1391
+ payload: err,
1392
+ name: reducerName,
1393
+ });
1394
+ }
1395
+ }
1396
+
1397
+
1398
+ export function* getIdentityReferenceSagas(action) {
1399
+ const {
1400
+ payload = {},
1401
+ meta: { reducerName },
1402
+ } = action;
1403
+ try {
1404
+ yield put({
1405
+ type: "FETCHING",
1406
+ name: reducerName,
1407
+ });
1408
+
1409
+ const response = yield call(APIServices.getIdentityReference, payload);
1410
+ yield put({
1411
+ type: "SUCCESS",
1412
+ payload: response,
1413
+ name: reducerName,
1414
+ });
1415
+
1416
+
1417
+ } catch (err) {
1418
+ logger.error(err);
1419
+ /* istanbul ignore next */
1420
+ yield put({
1421
+ type: "ERROR",
1422
+ payload: err,
1423
+ name: reducerName,
1424
+ });
1425
+ }
1426
+ }
1427
+
1428
+ export function* postIdentityReferenceSagas(action) {
1429
+ const {
1430
+ payload = {},
1431
+ meta: { reducerName },
1432
+ } = action;
1433
+ try {
1434
+ yield put({
1435
+ type: "FETCHING",
1436
+ name: reducerName,
1437
+ });
1438
+
1439
+ const response = yield call(APIServices.postIdentityReference, payload);
1440
+ yield put({
1441
+ type: "SUCCESS",
1442
+ payload: response,
1443
+ name: reducerName,
1444
+ });
1445
+
1446
+
1447
+ } catch (err) {
1448
+ logger.error(err);
1449
+ /* istanbul ignore next */
1450
+ yield put({
1451
+ type: "ERROR",
1452
+ payload: err,
1453
+ name: reducerName,
1454
+ });
1455
+ }
1456
+ }
1457
+
1458
+ export function* putIdentityReferenceSagas(action) {
1459
+ const {
1460
+ payload = {},
1461
+ meta: { reducerName },
1462
+ } = action;
1463
+ try {
1464
+ yield put({
1465
+ type: "FETCHING",
1466
+ name: reducerName,
1467
+ });
1468
+
1469
+ const response = yield call(APIServices.putIdentityReference, payload);
1470
+ yield put({
1471
+ type: "SUCCESS",
1472
+ payload: response,
1473
+ name: reducerName,
1474
+ });
1475
+
1476
+
1477
+ } catch (err) {
1478
+ logger.error(err);
1479
+ /* istanbul ignore next */
1480
+ yield put({
1481
+ type: "ERROR",
1482
+ payload: err,
1483
+ name: reducerName,
1484
+ });
1485
+ }
1486
+ }
1487
+
1488
+ export function* deleteIdentityReferenceSagas(action) {
1489
+ const {
1490
+ payload = {},
1491
+ meta: { reducerName },
1492
+ } = action;
1493
+ try {
1494
+ yield put({
1495
+ type: "FETCHING",
1496
+ name: reducerName,
1497
+ });
1498
+
1499
+ const response = yield call(APIServices.deleteIdentityReference, payload);
1500
+ yield put({
1501
+ type: "SUCCESS",
1502
+ payload: response,
1503
+ name: reducerName,
1504
+ });
1505
+
1506
+
1507
+ } catch (err) {
1508
+ logger.error(err);
1509
+ /* istanbul ignore next */
1510
+ yield put({
1511
+ type: "ERROR",
1512
+ payload: err,
1513
+ name: reducerName,
1514
+ });
1515
+ }
1516
+ }
1517
+
1518
+
1519
+ export function* getIdentityRelationshipSagas(action) {
1520
+ const {
1521
+ payload = {},
1522
+ meta: { reducerName },
1523
+ } = action;
1524
+ try {
1525
+ yield put({
1526
+ type: "FETCHING",
1527
+ name: reducerName,
1528
+ });
1529
+
1530
+ const response = yield call(APIServices.getIdentityRelationship, payload);
1531
+ yield put({
1532
+ type: "SUCCESS",
1533
+ payload: response,
1534
+ name: reducerName,
1535
+ });
1536
+
1537
+
1538
+ } catch (err) {
1539
+ logger.error(err);
1540
+ /* istanbul ignore next */
1541
+ yield put({
1542
+ type: "ERROR",
1543
+ payload: err,
1544
+ name: reducerName,
1545
+ });
1546
+ }
1547
+ }
1548
+
1549
+ export function* postIdentityRelationshipSagas(action) {
1550
+ const {
1551
+ payload = {},
1552
+ meta: { reducerName },
1553
+ } = action;
1554
+ try {
1555
+ yield put({
1556
+ type: "FETCHING",
1557
+ name: reducerName,
1558
+ });
1559
+
1560
+ const response = yield call(APIServices.postIdentityRelationship, payload);
1561
+ yield put({
1562
+ type: "SUCCESS",
1563
+ payload: response,
1564
+ name: reducerName,
1565
+ });
1566
+
1567
+
1568
+ } catch (err) {
1569
+ logger.error(err);
1570
+ /* istanbul ignore next */
1571
+ yield put({
1572
+ type: "ERROR",
1573
+ payload: err,
1574
+ name: reducerName,
1575
+ });
1576
+ }
1577
+ }
1578
+
1579
+ export function* putIdentityRelationshipSagas(action) {
1580
+ const {
1581
+ payload = {},
1582
+ meta: { reducerName },
1583
+ } = action;
1584
+ try {
1585
+ yield put({
1586
+ type: "FETCHING",
1587
+ name: reducerName,
1588
+ });
1589
+
1590
+ const response = yield call(APIServices.putIdentityRelationship, payload);
1591
+ yield put({
1592
+ type: "SUCCESS",
1593
+ payload: response,
1594
+ name: reducerName,
1595
+ });
1596
+
1597
+
1598
+ } catch (err) {
1599
+ logger.error(err);
1600
+ /* istanbul ignore next */
1601
+ yield put({
1602
+ type: "ERROR",
1603
+ payload: err,
1604
+ name: reducerName,
1605
+ });
1606
+ }
1607
+ }
1608
+
1609
+
1610
+ export function* getIdentityRelationshipTypeSagas(action) {
1611
+ const {
1612
+ payload = {},
1613
+ meta: { reducerName },
1614
+ } = action;
1615
+ try {
1616
+ yield put({
1617
+ type: "FETCHING",
1618
+ name: reducerName,
1619
+ });
1620
+
1621
+ const response = yield call(APIServices.getIdentityRelationshipType, payload);
1622
+ yield put({
1623
+ type: "SUCCESS",
1624
+ payload: response,
1625
+ name: reducerName,
1626
+ });
1627
+
1628
+
1629
+ } catch (err) {
1630
+ logger.error(err);
1631
+ /* istanbul ignore next */
1632
+ yield put({
1633
+ type: "ERROR",
1634
+ payload: err,
1635
+ name: reducerName,
1636
+ });
1637
+ }
1638
+ }
1639
+
1640
+
1641
+ export function* postIdentityRoleSagas(action) {
1642
+ const {
1643
+ payload = {},
1644
+ meta: { reducerName },
1645
+ } = action;
1646
+ try {
1647
+ yield put({
1648
+ type: "FETCHING",
1649
+ name: reducerName,
1650
+ });
1651
+
1652
+ const response = yield call(APIServices.postIdentityRole, payload);
1653
+ yield put({
1654
+ type: "SUCCESS",
1655
+ payload: response,
1656
+ name: reducerName,
1657
+ });
1658
+
1659
+
1660
+ } catch (err) {
1661
+ logger.error(err);
1662
+ /* istanbul ignore next */
1663
+ yield put({
1664
+ type: "ERROR",
1665
+ payload: err,
1666
+ name: reducerName,
1667
+ });
1668
+ }
1669
+ }
1670
+
1671
+ export function* putIdentityRoleSagas(action) {
1672
+ const {
1673
+ payload = {},
1674
+ meta: { reducerName },
1675
+ } = action;
1676
+ try {
1677
+ yield put({
1678
+ type: "FETCHING",
1679
+ name: reducerName,
1680
+ });
1681
+
1682
+ const response = yield call(APIServices.putIdentityRole, payload);
1683
+ yield put({
1684
+ type: "SUCCESS",
1685
+ payload: response,
1686
+ name: reducerName,
1687
+ });
1688
+
1689
+
1690
+ } catch (err) {
1691
+ logger.error(err);
1692
+ /* istanbul ignore next */
1693
+ yield put({
1694
+ type: "ERROR",
1695
+ payload: err,
1696
+ name: reducerName,
1697
+ });
1698
+ }
1699
+ }
1700
+
1701
+ export function* getIdentityRoleSagas(action) {
1702
+ const {
1703
+ payload = {},
1704
+ meta: { reducerName },
1705
+ } = action;
1706
+ try {
1707
+ yield put({
1708
+ type: "FETCHING",
1709
+ name: reducerName,
1710
+ });
1711
+
1712
+ const response = yield call(APIServices.getIdentityRole, payload);
1713
+ yield put({
1714
+ type: "SUCCESS",
1715
+ payload: response,
1716
+ name: reducerName,
1717
+ });
1718
+
1719
+
1720
+ } catch (err) {
1721
+ logger.error(err);
1722
+ /* istanbul ignore next */
1723
+ yield put({
1724
+ type: "ERROR",
1725
+ payload: err,
1726
+ name: reducerName,
1727
+ });
1728
+ }
1729
+ }
1730
+
1731
+ export function* deleteIdentityRoleSagas(action) {
1732
+ const {
1733
+ payload = {},
1734
+ meta: { reducerName },
1735
+ } = action;
1736
+ try {
1737
+ yield put({
1738
+ type: "FETCHING",
1739
+ name: reducerName,
1740
+ });
1741
+
1742
+ const response = yield call(APIServices.deleteIdentityRole, payload);
1743
+ yield put({
1744
+ type: "SUCCESS",
1745
+ payload: response,
1746
+ name: reducerName,
1747
+ });
1748
+
1749
+
1750
+ } catch (err) {
1751
+ logger.error(err);
1752
+ /* istanbul ignore next */
1753
+ yield put({
1754
+ type: "ERROR",
1755
+ payload: err,
1756
+ name: reducerName,
1757
+ });
1758
+ }
1759
+ }
1760
+
1761
+
1762
+ export function* getIdentityServiceProviderSagas(action) {
1763
+ const {
1764
+ payload = {},
1765
+ meta: { reducerName },
1766
+ } = action;
1767
+ try {
1768
+ yield put({
1769
+ type: "FETCHING",
1770
+ name: reducerName,
1771
+ });
1772
+
1773
+ const response = yield call(APIServices.getIdentityServiceProvider, payload);
1774
+ yield put({
1775
+ type: "SUCCESS",
1776
+ payload: response,
1777
+ name: reducerName,
1778
+ });
1779
+
1780
+
1781
+ } catch (err) {
1782
+ logger.error(err);
1783
+ /* istanbul ignore next */
1784
+ yield put({
1785
+ type: "ERROR",
1786
+ payload: err,
1787
+ name: reducerName,
1788
+ });
1789
+ }
1790
+ }
1791
+
1792
+ export function* postIdentityServiceProviderSagas(action) {
1793
+ const {
1794
+ payload = {},
1795
+ meta: { reducerName },
1796
+ } = action;
1797
+ try {
1798
+ yield put({
1799
+ type: "FETCHING",
1800
+ name: reducerName,
1801
+ });
1802
+
1803
+ const response = yield call(APIServices.postIdentityServiceProvider, payload);
1804
+ yield put({
1805
+ type: "SUCCESS",
1806
+ payload: response,
1807
+ name: reducerName,
1808
+ });
1809
+
1810
+
1811
+ } catch (err) {
1812
+ logger.error(err);
1813
+ /* istanbul ignore next */
1814
+ yield put({
1815
+ type: "ERROR",
1816
+ payload: err,
1817
+ name: reducerName,
1818
+ });
1819
+ }
1820
+ }
1821
+
1822
+ export function* putIdentityServiceProviderSagas(action) {
1823
+ const {
1824
+ payload = {},
1825
+ meta: { reducerName },
1826
+ } = action;
1827
+ try {
1828
+ yield put({
1829
+ type: "FETCHING",
1830
+ name: reducerName,
1831
+ });
1832
+
1833
+ const response = yield call(APIServices.putIdentityServiceProvider, payload);
1834
+ yield put({
1835
+ type: "SUCCESS",
1836
+ payload: response,
1837
+ name: reducerName,
1838
+ });
1839
+
1840
+
1841
+ } catch (err) {
1842
+ logger.error(err);
1843
+ /* istanbul ignore next */
1844
+ yield put({
1845
+ type: "ERROR",
1846
+ payload: err,
1847
+ name: reducerName,
1848
+ });
1849
+ }
1850
+ }
1851
+
1852
+
1853
+ export function* getGridVineyardBlocksSagas(action) {
1854
+ const {
1855
+ payload = {},
1856
+ meta: { reducerName },
1857
+ } = action;
1858
+ try {
1859
+ yield put({
1860
+ type: "FETCHING",
1861
+ name: reducerName,
1862
+ });
1863
+
1864
+ const response = yield call(APIServices.getGridVineyardBlocks, payload);
1865
+ yield put({
1866
+ type: "SUCCESS",
1867
+ payload: response,
1868
+ name: reducerName,
1869
+ });
1870
+
1871
+
1872
+ } catch (err) {
1873
+ logger.error(err);
1874
+ /* istanbul ignore next */
1875
+ yield put({
1876
+ type: "ERROR",
1877
+ payload: err,
1878
+ name: reducerName,
1879
+ });
1880
+ }
1881
+ }
1882
+
1883
+
1884
+ export function* getIdentityVineyardBlocksSagas(action) {
1885
+ const {
1886
+ payload = {},
1887
+ meta: { reducerName },
1888
+ } = action;
1889
+ try {
1890
+ yield put({
1891
+ type: "FETCHING",
1892
+ name: reducerName,
1893
+ });
1894
+
1895
+ const response = yield call(APIServices.getIdentityVineyardBlocks, payload);
1896
+ yield put({
1897
+ type: "SUCCESS",
1898
+ payload: response,
1899
+ name: reducerName,
1900
+ });
1901
+
1902
+ const IdentityVineyardBlocksSchema = new schema.Entity("byId");
1903
+ const IdentityVineyardBlocksListSchema = new schema.Array(IdentityVineyardBlocksSchema);
1904
+ const {entities: {byId}, result: allIds} = normalize(response, IdentityVineyardBlocksListSchema);
1905
+ yield put({
1906
+ type: "MERGE_ALL_IDS",
1907
+ payload: {byId, allIds},
1908
+ name: reducerName,
1909
+ });
1910
+
1911
+ } catch (err) {
1912
+ logger.error(err);
1913
+ /* istanbul ignore next */
1914
+ yield put({
1915
+ type: "ERROR",
1916
+ payload: err,
1917
+ name: reducerName,
1918
+ });
1919
+ }
1920
+ }
1921
+
1922
+
1923
+ export function* postIdentityVineyardBlockSagas(action) {
1924
+ const {
1925
+ payload = {},
1926
+ meta: { reducerName },
1927
+ } = action;
1928
+ try {
1929
+ yield put({
1930
+ type: "FETCHING",
1931
+ name: reducerName,
1932
+ });
1933
+
1934
+ const response = yield call(APIServices.postIdentityVineyardBlock, payload);
1935
+ yield put({
1936
+ type: "SUCCESS",
1937
+ payload: response,
1938
+ name: reducerName,
1939
+ });
1940
+
1941
+
1942
+ } catch (err) {
1943
+ logger.error(err);
1944
+ /* istanbul ignore next */
1945
+ yield put({
1946
+ type: "ERROR",
1947
+ payload: err,
1948
+ name: reducerName,
1949
+ });
1950
+ }
1951
+ }
1952
+
1953
+ export function* putIdentityVineyardBlockSagas(action) {
1954
+ const {
1955
+ payload = {},
1956
+ meta: { reducerName },
1957
+ } = action;
1958
+ try {
1959
+ yield put({
1960
+ type: "FETCHING",
1961
+ name: reducerName,
1962
+ });
1963
+
1964
+ const response = yield call(APIServices.putIdentityVineyardBlock, payload);
1965
+ yield put({
1966
+ type: "SUCCESS",
1967
+ payload: response,
1968
+ name: reducerName,
1969
+ });
1970
+
1971
+
1972
+ } catch (err) {
1973
+ logger.error(err);
1974
+ /* istanbul ignore next */
1975
+ yield put({
1976
+ type: "ERROR",
1977
+ payload: err,
1978
+ name: reducerName,
1979
+ });
1980
+ }
1981
+ }
1982
+
1983
+ export function* deleteIdentityVineyardBlockSagas(action) {
1984
+ const {
1985
+ payload = {},
1986
+ meta: { reducerName },
1987
+ } = action;
1988
+ try {
1989
+ yield put({
1990
+ type: "FETCHING",
1991
+ name: reducerName,
1992
+ });
1993
+
1994
+ const response = yield call(APIServices.deleteIdentityVineyardBlock, payload);
1995
+ yield put({
1996
+ type: "SUCCESS",
1997
+ payload: response,
1998
+ name: reducerName,
1999
+ });
2000
+
2001
+
2002
+ } catch (err) {
2003
+ logger.error(err);
2004
+ /* istanbul ignore next */
2005
+ yield put({
2006
+ type: "ERROR",
2007
+ payload: err,
2008
+ name: reducerName,
2009
+ });
2010
+ }
2011
+ }
2012
+
2013
+
2014
+ export function* getIdentityVineyardBlockRowsSagas(action) {
2015
+ const {
2016
+ payload = {},
2017
+ meta: { reducerName },
2018
+ } = action;
2019
+ try {
2020
+ yield put({
2021
+ type: "FETCHING",
2022
+ name: reducerName,
2023
+ });
2024
+
2025
+ const response = yield call(APIServices.getIdentityVineyardBlockRows, payload);
2026
+ yield put({
2027
+ type: "SUCCESS",
2028
+ payload: response,
2029
+ name: reducerName,
2030
+ });
2031
+
2032
+
2033
+ } catch (err) {
2034
+ logger.error(err);
2035
+ /* istanbul ignore next */
2036
+ yield put({
2037
+ type: "ERROR",
2038
+ payload: err,
2039
+ name: reducerName,
2040
+ });
2041
+ }
2042
+ }
2043
+
2044
+
2045
+ export function* postIdentityVineyardBlockRowSagas(action) {
2046
+ const {
2047
+ payload = {},
2048
+ meta: { reducerName },
2049
+ } = action;
2050
+ try {
2051
+ yield put({
2052
+ type: "FETCHING",
2053
+ name: reducerName,
2054
+ });
2055
+
2056
+ const response = yield call(APIServices.postIdentityVineyardBlockRow, payload);
2057
+ yield put({
2058
+ type: "SUCCESS",
2059
+ payload: response,
2060
+ name: reducerName,
2061
+ });
2062
+
2063
+
2064
+ } catch (err) {
2065
+ logger.error(err);
2066
+ /* istanbul ignore next */
2067
+ yield put({
2068
+ type: "ERROR",
2069
+ payload: err,
2070
+ name: reducerName,
2071
+ });
2072
+ }
2073
+ }
2074
+
2075
+ export function* putIdentityVineyardBlockRowSagas(action) {
2076
+ const {
2077
+ payload = {},
2078
+ meta: { reducerName },
2079
+ } = action;
2080
+ try {
2081
+ yield put({
2082
+ type: "FETCHING",
2083
+ name: reducerName,
2084
+ });
2085
+
2086
+ const response = yield call(APIServices.putIdentityVineyardBlockRow, payload);
2087
+ yield put({
2088
+ type: "SUCCESS",
2089
+ payload: response,
2090
+ name: reducerName,
2091
+ });
2092
+
2093
+
2094
+ } catch (err) {
2095
+ logger.error(err);
2096
+ /* istanbul ignore next */
2097
+ yield put({
2098
+ type: "ERROR",
2099
+ payload: err,
2100
+ name: reducerName,
2101
+ });
2102
+ }
2103
+ }
2104
+
2105
+ export function* deleteIdentityVineyardBlockRowSagas(action) {
2106
+ const {
2107
+ payload = {},
2108
+ meta: { reducerName },
2109
+ } = action;
2110
+ try {
2111
+ yield put({
2112
+ type: "FETCHING",
2113
+ name: reducerName,
2114
+ });
2115
+
2116
+ const response = yield call(APIServices.deleteIdentityVineyardBlockRow, payload);
2117
+ yield put({
2118
+ type: "SUCCESS",
2119
+ payload: response,
2120
+ name: reducerName,
2121
+ });
2122
+
2123
+
2124
+ } catch (err) {
2125
+ logger.error(err);
2126
+ /* istanbul ignore next */
2127
+ yield put({
2128
+ type: "ERROR",
2129
+ payload: err,
2130
+ name: reducerName,
2131
+ });
2132
+ }
2133
+ }
2134
+
2135
+
2136
+ export function* getGetLookUpSagas(action) {
2137
+ const {
2138
+ payload = {},
2139
+ meta: { reducerName },
2140
+ } = action;
2141
+ try {
2142
+ yield put({
2143
+ type: "FETCHING",
2144
+ name: reducerName,
2145
+ });
2146
+
2147
+ const response = yield call(APIServices.getGetLookUp, payload);
2148
+ yield put({
2149
+ type: "SUCCESS",
2150
+ payload: response,
2151
+ name: reducerName,
2152
+ });
2153
+
2154
+
2155
+ } catch (err) {
2156
+ logger.error(err);
2157
+ /* istanbul ignore next */
2158
+ yield put({
2159
+ type: "ERROR",
2160
+ payload: err,
2161
+ name: reducerName,
2162
+ });
2163
+ }
2164
+ }
2165
+
2166
+
2167
+ export function* postQueueMessageSagas(action) {
2168
+ const {
2169
+ payload = {},
2170
+ meta: { reducerName },
2171
+ } = action;
2172
+ try {
2173
+ yield put({
2174
+ type: "FETCHING",
2175
+ name: reducerName,
2176
+ });
2177
+
2178
+ const response = yield call(APIServices.postQueueMessage, payload);
2179
+ yield put({
2180
+ type: "SUCCESS",
2181
+ payload: response,
2182
+ name: reducerName,
2183
+ });
2184
+
2185
+
2186
+ } catch (err) {
2187
+ logger.error(err);
2188
+ /* istanbul ignore next */
2189
+ yield put({
2190
+ type: "ERROR",
2191
+ payload: err,
2192
+ name: reducerName,
2193
+ });
2194
+ }
2195
+ }
2196
+
2197
+
2198
+ export function* getprocessblocksamplingSagas(action) {
2199
+ const {
2200
+ payload = {},
2201
+ meta: { reducerName },
2202
+ } = action;
2203
+ try {
2204
+ yield put({
2205
+ type: "FETCHING",
2206
+ name: reducerName,
2207
+ });
2208
+
2209
+ const response = yield call(APIServices.getprocessblocksampling, payload);
2210
+ yield put({
2211
+ type: "SUCCESS",
2212
+ payload: response,
2213
+ name: reducerName,
2214
+ });
2215
+
2216
+
2217
+ } catch (err) {
2218
+ logger.error(err);
2219
+ /* istanbul ignore next */
2220
+ yield put({
2221
+ type: "ERROR",
2222
+ payload: err,
2223
+ name: reducerName,
2224
+ });
2225
+ }
2226
+ }
2227
+
2228
+ export function* postprocessblocksamplingSagas(action) {
2229
+ const {
2230
+ payload = {},
2231
+ meta: { reducerName },
2232
+ } = action;
2233
+ try {
2234
+ yield put({
2235
+ type: "FETCHING",
2236
+ name: reducerName,
2237
+ });
2238
+
2239
+ const response = yield call(APIServices.postprocessblocksampling, payload);
2240
+ yield put({
2241
+ type: "SUCCESS",
2242
+ payload: response,
2243
+ name: reducerName,
2244
+ });
2245
+
2246
+
2247
+ } catch (err) {
2248
+ logger.error(err);
2249
+ /* istanbul ignore next */
2250
+ yield put({
2251
+ type: "ERROR",
2252
+ payload: err,
2253
+ name: reducerName,
2254
+ });
2255
+ }
2256
+ }
2257
+
2258
+
2259
+ export function* getSampleHeadersSagas(action) {
2260
+ const {
2261
+ payload = {},
2262
+ meta: { reducerName },
2263
+ } = action;
2264
+ try {
2265
+ yield put({
2266
+ type: "FETCHING",
2267
+ name: reducerName,
2268
+ });
2269
+
2270
+ const response = yield call(APIServices.getSampleHeaders, payload);
2271
+ yield put({
2272
+ type: "SUCCESS",
2273
+ payload: response,
2274
+ name: reducerName,
2275
+ });
2276
+
2277
+
2278
+ } catch (err) {
2279
+ logger.error(err);
2280
+ /* istanbul ignore next */
2281
+ yield put({
2282
+ type: "ERROR",
2283
+ payload: err,
2284
+ name: reducerName,
2285
+ });
2286
+ }
2287
+ }
2288
+
2289
+
2290
+ export function* putSampleHeaderStatusSagas(action) {
2291
+ const {
2292
+ payload = {},
2293
+ meta: { reducerName },
2294
+ } = action;
2295
+ try {
2296
+ yield put({
2297
+ type: "FETCHING",
2298
+ name: reducerName,
2299
+ });
2300
+
2301
+ const response = yield call(APIServices.putSampleHeaderStatus, payload);
2302
+ yield put({
2303
+ type: "SUCCESS",
2304
+ payload: response,
2305
+ name: reducerName,
2306
+ });
2307
+
2308
+
2309
+ } catch (err) {
2310
+ logger.error(err);
2311
+ /* istanbul ignore next */
2312
+ yield put({
2313
+ type: "ERROR",
2314
+ payload: err,
2315
+ name: reducerName,
2316
+ });
2317
+ }
2318
+ }
2319
+
2320
+
2321
+ export function* deleteSampleHeaderSagas(action) {
2322
+ const {
2323
+ payload = {},
2324
+ meta: { reducerName },
2325
+ } = action;
2326
+ try {
2327
+ yield put({
2328
+ type: "FETCHING",
2329
+ name: reducerName,
2330
+ });
2331
+
2332
+ const response = yield call(APIServices.deleteSampleHeader, payload);
2333
+ yield put({
2334
+ type: "SUCCESS",
2335
+ payload: response,
2336
+ name: reducerName,
2337
+ });
2338
+
2339
+
2340
+ } catch (err) {
2341
+ logger.error(err);
2342
+ /* istanbul ignore next */
2343
+ yield put({
2344
+ type: "ERROR",
2345
+ payload: err,
2346
+ name: reducerName,
2347
+ });
2348
+ }
2349
+ }
2350
+
2351
+ export function* postSampleHeaderSagas(action) {
2352
+ const {
2353
+ payload = {},
2354
+ meta: { reducerName },
2355
+ } = action;
2356
+ try {
2357
+ yield put({
2358
+ type: "FETCHING",
2359
+ name: reducerName,
2360
+ });
2361
+
2362
+ const response = yield call(APIServices.postSampleHeader, payload);
2363
+ yield put({
2364
+ type: "SUCCESS",
2365
+ payload: response,
2366
+ name: reducerName,
2367
+ });
2368
+
2369
+
2370
+ } catch (err) {
2371
+ logger.error(err);
2372
+ /* istanbul ignore next */
2373
+ yield put({
2374
+ type: "ERROR",
2375
+ payload: err,
2376
+ name: reducerName,
2377
+ });
2378
+ }
2379
+ }
2380
+
2381
+
2382
+ export function* getSampleIdentitySagas(action) {
2383
+ const {
2384
+ payload = {},
2385
+ meta: { reducerName },
2386
+ } = action;
2387
+ try {
2388
+ yield put({
2389
+ type: "FETCHING",
2390
+ name: reducerName,
2391
+ });
2392
+
2393
+ const response = yield call(APIServices.getSampleIdentity, payload);
2394
+ yield put({
2395
+ type: "SUCCESS",
2396
+ payload: response,
2397
+ name: reducerName,
2398
+ });
2399
+
2400
+
2401
+ } catch (err) {
2402
+ logger.error(err);
2403
+ /* istanbul ignore next */
2404
+ yield put({
2405
+ type: "ERROR",
2406
+ payload: err,
2407
+ name: reducerName,
2408
+ });
2409
+ }
2410
+ }
2411
+
2412
+ export function* postSampleIdentitySagas(action) {
2413
+ const {
2414
+ payload = {},
2415
+ meta: { reducerName },
2416
+ } = action;
2417
+ try {
2418
+ yield put({
2419
+ type: "FETCHING",
2420
+ name: reducerName,
2421
+ });
2422
+
2423
+ const response = yield call(APIServices.postSampleIdentity, payload);
2424
+ yield put({
2425
+ type: "SUCCESS",
2426
+ payload: response,
2427
+ name: reducerName,
2428
+ });
2429
+
2430
+
2431
+ } catch (err) {
2432
+ logger.error(err);
2433
+ /* istanbul ignore next */
2434
+ yield put({
2435
+ type: "ERROR",
2436
+ payload: err,
2437
+ name: reducerName,
2438
+ });
2439
+ }
2440
+ }
2441
+
2442
+
2443
+ export function* postAssignSampleHeadersSagas(action) {
2444
+ const {
2445
+ payload = {},
2446
+ meta: { reducerName },
2447
+ } = action;
2448
+ try {
2449
+ yield put({
2450
+ type: "FETCHING",
2451
+ name: reducerName,
2452
+ });
2453
+
2454
+ const response = yield call(APIServices.postAssignSampleHeaders, payload);
2455
+ yield put({
2456
+ type: "SUCCESS",
2457
+ payload: response,
2458
+ name: reducerName,
2459
+ });
2460
+
2461
+
2462
+ } catch (err) {
2463
+ logger.error(err);
2464
+ /* istanbul ignore next */
2465
+ yield put({
2466
+ type: "ERROR",
2467
+ payload: err,
2468
+ name: reducerName,
2469
+ });
2470
+ }
2471
+ }
2472
+
2473
+
2474
+ export function* postSamplingUsersSagas(action) {
2475
+ const {
2476
+ payload = {},
2477
+ meta: { reducerName },
2478
+ } = action;
2479
+ try {
2480
+ yield put({
2481
+ type: "FETCHING",
2482
+ name: reducerName,
2483
+ });
2484
+
2485
+ const response = yield call(APIServices.postSamplingUsers, payload);
2486
+ yield put({
2487
+ type: "SUCCESS",
2488
+ payload: response,
2489
+ name: reducerName,
2490
+ });
2491
+
2492
+
2493
+ } catch (err) {
2494
+ logger.error(err);
2495
+ /* istanbul ignore next */
2496
+ yield put({
2497
+ type: "ERROR",
2498
+ payload: err,
2499
+ name: reducerName,
2500
+ });
2501
+ }
2502
+ }
2503
+
2504
+
2505
+ export function* postDeAssignSampleHeadersSagas(action) {
2506
+ const {
2507
+ payload = {},
2508
+ meta: { reducerName },
2509
+ } = action;
2510
+ try {
2511
+ yield put({
2512
+ type: "FETCHING",
2513
+ name: reducerName,
2514
+ });
2515
+
2516
+ const response = yield call(APIServices.postDeAssignSampleHeaders, payload);
2517
+ yield put({
2518
+ type: "SUCCESS",
2519
+ payload: response,
2520
+ name: reducerName,
2521
+ });
2522
+
2523
+
2524
+ } catch (err) {
2525
+ logger.error(err);
2526
+ /* istanbul ignore next */
2527
+ yield put({
2528
+ type: "ERROR",
2529
+ payload: err,
2530
+ name: reducerName,
2531
+ });
2532
+ }
2533
+ }
2534
+
2535
+
2536
+ export function* postSampleSetsSagas(action) {
2537
+ const {
2538
+ payload = {},
2539
+ meta: { reducerName },
2540
+ } = action;
2541
+ try {
2542
+ yield put({
2543
+ type: "FETCHING",
2544
+ name: reducerName,
2545
+ });
2546
+
2547
+ const response = yield call(APIServices.postSampleSets, payload);
2548
+ yield put({
2549
+ type: "SUCCESS",
2550
+ payload: response,
2551
+ name: reducerName,
2552
+ });
2553
+
2554
+
2555
+ } catch (err) {
2556
+ logger.error(err);
2557
+ /* istanbul ignore next */
2558
+ yield put({
2559
+ type: "ERROR",
2560
+ payload: err,
2561
+ name: reducerName,
2562
+ });
2563
+ }
2564
+ }
2565
+
2566
+
2567
+ export function* getSampleBlockVintagesSagas(action) {
2568
+ const {
2569
+ payload = {},
2570
+ meta: { reducerName },
2571
+ } = action;
2572
+ try {
2573
+ yield put({
2574
+ type: "FETCHING",
2575
+ name: reducerName,
2576
+ });
2577
+
2578
+ const response = yield call(APIServices.getSampleBlockVintages, payload);
2579
+ yield put({
2580
+ type: "SUCCESS",
2581
+ payload: response,
2582
+ name: reducerName,
2583
+ });
2584
+
2585
+
2586
+ } catch (err) {
2587
+ logger.error(err);
2588
+ /* istanbul ignore next */
2589
+ yield put({
2590
+ type: "ERROR",
2591
+ payload: err,
2592
+ name: reducerName,
2593
+ });
2594
+ }
2595
+ }
2596
+
2597
+
2598
+ export function* postSampleSetSagas(action) {
2599
+ const {
2600
+ payload = {},
2601
+ meta: { reducerName },
2602
+ } = action;
2603
+ try {
2604
+ yield put({
2605
+ type: "FETCHING",
2606
+ name: reducerName,
2607
+ });
2608
+
2609
+ const response = yield call(APIServices.postSampleSet, payload);
2610
+ yield put({
2611
+ type: "SUCCESS",
2612
+ payload: response,
2613
+ name: reducerName,
2614
+ });
2615
+
2616
+
2617
+ } catch (err) {
2618
+ logger.error(err);
2619
+ /* istanbul ignore next */
2620
+ yield put({
2621
+ type: "ERROR",
2622
+ payload: err,
2623
+ name: reducerName,
2624
+ });
2625
+ }
2626
+ }
2627
+
2628
+
2629
+ export function* postSearchIdentitySagas(action) {
2630
+ const {
2631
+ payload = {},
2632
+ meta: { reducerName },
2633
+ } = action;
2634
+ try {
2635
+ yield put({
2636
+ type: "FETCHING",
2637
+ name: reducerName,
2638
+ });
2639
+
2640
+ const response = yield call(APIServices.postSearchIdentity, payload);
2641
+ yield put({
2642
+ type: "SUCCESS",
2643
+ payload: response,
2644
+ name: reducerName,
2645
+ });
2646
+
2647
+
2648
+ } catch (err) {
2649
+ logger.error(err);
2650
+ /* istanbul ignore next */
2651
+ yield put({
2652
+ type: "ERROR",
2653
+ payload: err,
2654
+ name: reducerName,
2655
+ });
2656
+ }
2657
+ }
2658
+
2659
+
2660
+ export function* getIdentityVineyardSagas(action) {
2661
+ const {
2662
+ payload = {},
2663
+ meta: { reducerName },
2664
+ } = action;
2665
+ try {
2666
+ yield put({
2667
+ type: "FETCHING",
2668
+ name: reducerName,
2669
+ });
2670
+
2671
+ const response = yield call(APIServices.getIdentityVineyard, payload);
2672
+ yield put({
2673
+ type: "SUCCESS",
2674
+ payload: response,
2675
+ name: reducerName,
2676
+ });
2677
+
2678
+
2679
+ } catch (err) {
2680
+ logger.error(err);
2681
+ /* istanbul ignore next */
2682
+ yield put({
2683
+ type: "ERROR",
2684
+ payload: err,
2685
+ name: reducerName,
2686
+ });
2687
+ }
2688
+ }
2689
+
2690
+ export function* postIdentityVineyardSagas(action) {
2691
+ const {
2692
+ payload = {},
2693
+ meta: { reducerName },
2694
+ } = action;
2695
+ try {
2696
+ yield put({
2697
+ type: "FETCHING",
2698
+ name: reducerName,
2699
+ });
2700
+
2701
+ const response = yield call(APIServices.postIdentityVineyard, payload);
2702
+ yield put({
2703
+ type: "SUCCESS",
2704
+ payload: response,
2705
+ name: reducerName,
2706
+ });
2707
+
2708
+
2709
+ } catch (err) {
2710
+ logger.error(err);
2711
+ /* istanbul ignore next */
2712
+ yield put({
2713
+ type: "ERROR",
2714
+ payload: err,
2715
+ name: reducerName,
2716
+ });
2717
+ }
2718
+ }
2719
+
2720
+ export function* putIdentityVineyardSagas(action) {
2721
+ const {
2722
+ payload = {},
2723
+ meta: { reducerName },
2724
+ } = action;
2725
+ try {
2726
+ yield put({
2727
+ type: "FETCHING",
2728
+ name: reducerName,
2729
+ });
2730
+
2731
+ const response = yield call(APIServices.putIdentityVineyard, payload);
2732
+ yield put({
2733
+ type: "SUCCESS",
2734
+ payload: response,
2735
+ name: reducerName,
2736
+ });
2737
+
2738
+
2739
+ } catch (err) {
2740
+ logger.error(err);
2741
+ /* istanbul ignore next */
2742
+ yield put({
2743
+ type: "ERROR",
2744
+ payload: err,
2745
+ name: reducerName,
2746
+ });
2747
+ }
2748
+ }
2749
+
2750
+
2751
+ export function* getlookupClassificationSagas(action) {
2752
+ const {
2753
+ payload = {},
2754
+ meta: { reducerName },
2755
+ } = action;
2756
+ try {
2757
+ yield put({
2758
+ type: "FETCHING",
2759
+ name: reducerName,
2760
+ });
2761
+
2762
+ const response = yield call(APIServices.getlookupClassification, payload);
2763
+ yield put({
2764
+ type: "SUCCESS",
2765
+ payload: response,
2766
+ name: reducerName,
2767
+ });
2768
+
2769
+
2770
+ } catch (err) {
2771
+ logger.error(err);
2772
+ /* istanbul ignore next */
2773
+ yield put({
2774
+ type: "ERROR",
2775
+ payload: err,
2776
+ name: reducerName,
2777
+ });
2778
+ }
2779
+ }
2780
+
2781
+
2782
+ export function* getlookupClassificationGroupSagas(action) {
2783
+ const {
2784
+ payload = {},
2785
+ meta: { reducerName },
2786
+ } = action;
2787
+ try {
2788
+ yield put({
2789
+ type: "FETCHING",
2790
+ name: reducerName,
2791
+ });
2792
+
2793
+ const response = yield call(APIServices.getlookupClassificationGroup, payload);
2794
+ yield put({
2795
+ type: "SUCCESS",
2796
+ payload: response,
2797
+ name: reducerName,
2798
+ });
2799
+
2800
+
2801
+ } catch (err) {
2802
+ logger.error(err);
2803
+ /* istanbul ignore next */
2804
+ yield put({
2805
+ type: "ERROR",
2806
+ payload: err,
2807
+ name: reducerName,
2808
+ });
2809
+ }
2810
+ }
2811
+
2812
+
2813
+ export function* getlookupClassificationGroupIdentityTypeSagas(action) {
2814
+ const {
2815
+ payload = {},
2816
+ meta: { reducerName },
2817
+ } = action;
2818
+ try {
2819
+ yield put({
2820
+ type: "FETCHING",
2821
+ name: reducerName,
2822
+ });
2823
+
2824
+ const response = yield call(APIServices.getlookupClassificationGroupIdentityType, payload);
2825
+ yield put({
2826
+ type: "SUCCESS",
2827
+ payload: response,
2828
+ name: reducerName,
2829
+ });
2830
+
2831
+
2832
+ } catch (err) {
2833
+ logger.error(err);
2834
+ /* istanbul ignore next */
2835
+ yield put({
2836
+ type: "ERROR",
2837
+ payload: err,
2838
+ name: reducerName,
2839
+ });
2840
+ }
2841
+ }
2842
+
2843
+
2844
+ export function* getlookupReferenceTypeSagas(action) {
2845
+ const {
2846
+ payload = {},
2847
+ meta: { reducerName },
2848
+ } = action;
2849
+ try {
2850
+ yield put({
2851
+ type: "FETCHING",
2852
+ name: reducerName,
2853
+ });
2854
+
2855
+ const response = yield call(APIServices.getlookupReferenceType, payload);
2856
+ yield put({
2857
+ type: "SUCCESS",
2858
+ payload: response,
2859
+ name: reducerName,
2860
+ });
2861
+
2862
+
2863
+ } catch (err) {
2864
+ logger.error(err);
2865
+ /* istanbul ignore next */
2866
+ yield put({
2867
+ type: "ERROR",
2868
+ payload: err,
2869
+ name: reducerName,
2870
+ });
2871
+ }
2872
+ }
2873
+
2874
+
2875
+ export function* getlookupIdentityTypeSagas(action) {
2876
+ const {
2877
+ payload = {},
2878
+ meta: { reducerName },
2879
+ } = action;
2880
+ try {
2881
+ yield put({
2882
+ type: "FETCHING",
2883
+ name: reducerName,
2884
+ });
2885
+
2886
+ const response = yield call(APIServices.getlookupIdentityType, payload);
2887
+ yield put({
2888
+ type: "SUCCESS",
2889
+ payload: response,
2890
+ name: reducerName,
2891
+ });
2892
+
2893
+
2894
+ } catch (err) {
2895
+ logger.error(err);
2896
+ /* istanbul ignore next */
2897
+ yield put({
2898
+ type: "ERROR",
2899
+ payload: err,
2900
+ name: reducerName,
2901
+ });
2902
+ }
2903
+ }
2904
+
2905
+
2906
+ export function* getlookupRoleTypeSagas(action) {
2907
+ const {
2908
+ payload = {},
2909
+ meta: { reducerName },
2910
+ } = action;
2911
+ try {
2912
+ yield put({
2913
+ type: "FETCHING",
2914
+ name: reducerName,
2915
+ });
2916
+
2917
+ const response = yield call(APIServices.getlookupRoleType, payload);
2918
+ yield put({
2919
+ type: "SUCCESS",
2920
+ payload: response,
2921
+ name: reducerName,
2922
+ });
2923
+
2924
+
2925
+ } catch (err) {
2926
+ logger.error(err);
2927
+ /* istanbul ignore next */
2928
+ yield put({
2929
+ type: "ERROR",
2930
+ payload: err,
2931
+ name: reducerName,
2932
+ });
2933
+ }
2934
+ }
2935
+
2936
+
2937
+ export function* getlookupRoleTypeIdentityTypeSagas(action) {
2938
+ const {
2939
+ payload = {},
2940
+ meta: { reducerName },
2941
+ } = action;
2942
+ try {
2943
+ yield put({
2944
+ type: "FETCHING",
2945
+ name: reducerName,
2946
+ });
2947
+
2948
+ const response = yield call(APIServices.getlookupRoleTypeIdentityType, payload);
2949
+ yield put({
2950
+ type: "SUCCESS",
2951
+ payload: response,
2952
+ name: reducerName,
2953
+ });
2954
+
2955
+
2956
+ } catch (err) {
2957
+ logger.error(err);
2958
+ /* istanbul ignore next */
2959
+ yield put({
2960
+ type: "ERROR",
2961
+ payload: err,
2962
+ name: reducerName,
2963
+ });
2964
+ }
2965
+ }
2966
+
2967
+
2968
+ export function* getlookupBusinessUnitSagas(action) {
2969
+ const {
2970
+ payload = {},
2971
+ meta: { reducerName },
2972
+ } = action;
2973
+ try {
2974
+ yield put({
2975
+ type: "FETCHING",
2976
+ name: reducerName,
2977
+ });
2978
+
2979
+ const response = yield call(APIServices.getlookupBusinessUnit, payload);
2980
+ yield put({
2981
+ type: "SUCCESS",
2982
+ payload: response,
2983
+ name: reducerName,
2984
+ });
2985
+
2986
+
2987
+ } catch (err) {
2988
+ logger.error(err);
2989
+ /* istanbul ignore next */
2990
+ yield put({
2991
+ type: "ERROR",
2992
+ payload: err,
2993
+ name: reducerName,
2994
+ });
2995
+ }
2996
+ }
2997
+
2998
+
2999
+ export function* getlookupReferenceTypeIdentityTypeSagas(action) {
3000
+ const {
3001
+ payload = {},
3002
+ meta: { reducerName },
3003
+ } = action;
3004
+ try {
3005
+ yield put({
3006
+ type: "FETCHING",
3007
+ name: reducerName,
3008
+ });
3009
+
3010
+ const response = yield call(APIServices.getlookupReferenceTypeIdentityType, payload);
3011
+ yield put({
3012
+ type: "SUCCESS",
3013
+ payload: response,
3014
+ name: reducerName,
3015
+ });
3016
+
3017
+
3018
+ } catch (err) {
3019
+ logger.error(err);
3020
+ /* istanbul ignore next */
3021
+ yield put({
3022
+ type: "ERROR",
3023
+ payload: err,
3024
+ name: reducerName,
3025
+ });
3026
+ }
3027
+ }
3028
+
3029
+
3030
+ export function* getlookupRelationshipTypeSagas(action) {
3031
+ const {
3032
+ payload = {},
3033
+ meta: { reducerName },
3034
+ } = action;
3035
+ try {
3036
+ yield put({
3037
+ type: "FETCHING",
3038
+ name: reducerName,
3039
+ });
3040
+
3041
+ const response = yield call(APIServices.getlookupRelationshipType, payload);
3042
+ yield put({
3043
+ type: "SUCCESS",
3044
+ payload: response,
3045
+ name: reducerName,
3046
+ });
3047
+
3048
+
3049
+ } catch (err) {
3050
+ logger.error(err);
3051
+ /* istanbul ignore next */
3052
+ yield put({
3053
+ type: "ERROR",
3054
+ payload: err,
3055
+ name: reducerName,
3056
+ });
3057
+ }
3058
+ }
3059
+
3060
+
3061
+ export function* getlookupRelationshipSubTypeSagas(action) {
3062
+ const {
3063
+ payload = {},
3064
+ meta: { reducerName },
3065
+ } = action;
3066
+ try {
3067
+ yield put({
3068
+ type: "FETCHING",
3069
+ name: reducerName,
3070
+ });
3071
+
3072
+ const response = yield call(APIServices.getlookupRelationshipSubType, payload);
3073
+ yield put({
3074
+ type: "SUCCESS",
3075
+ payload: response,
3076
+ name: reducerName,
3077
+ });
3078
+
3079
+
3080
+ } catch (err) {
3081
+ logger.error(err);
3082
+ /* istanbul ignore next */
3083
+ yield put({
3084
+ type: "ERROR",
3085
+ payload: err,
3086
+ name: reducerName,
3087
+ });
3088
+ }
3089
+ }
3090
+
3091
+
3092
+ export function* getlookupContactMethodSagas(action) {
3093
+ const {
3094
+ payload = {},
3095
+ meta: { reducerName },
3096
+ } = action;
3097
+ try {
3098
+ yield put({
3099
+ type: "FETCHING",
3100
+ name: reducerName,
3101
+ });
3102
+
3103
+ const response = yield call(APIServices.getlookupContactMethod, payload);
3104
+ yield put({
3105
+ type: "SUCCESS",
3106
+ payload: response,
3107
+ name: reducerName,
3108
+ });
3109
+
3110
+
3111
+ } catch (err) {
3112
+ logger.error(err);
3113
+ /* istanbul ignore next */
3114
+ yield put({
3115
+ type: "ERROR",
3116
+ payload: err,
3117
+ name: reducerName,
3118
+ });
3119
+ }
3120
+ }
3121
+
3122
+
3123
+ export function* getlookupGenderSagas(action) {
3124
+ const {
3125
+ payload = {},
3126
+ meta: { reducerName },
3127
+ } = action;
3128
+ try {
3129
+ yield put({
3130
+ type: "FETCHING",
3131
+ name: reducerName,
3132
+ });
3133
+
3134
+ const response = yield call(APIServices.getlookupGender, payload);
3135
+ yield put({
3136
+ type: "SUCCESS",
3137
+ payload: response,
3138
+ name: reducerName,
3139
+ });
3140
+
3141
+
3142
+ } catch (err) {
3143
+ logger.error(err);
3144
+ /* istanbul ignore next */
3145
+ yield put({
3146
+ type: "ERROR",
3147
+ payload: err,
3148
+ name: reducerName,
3149
+ });
3150
+ }
3151
+ }
3152
+
3153
+
3154
+ export function* getlookupNationalitySagas(action) {
3155
+ const {
3156
+ payload = {},
3157
+ meta: { reducerName },
3158
+ } = action;
3159
+ try {
3160
+ yield put({
3161
+ type: "FETCHING",
3162
+ name: reducerName,
3163
+ });
3164
+
3165
+ const response = yield call(APIServices.getlookupNationality, payload);
3166
+ yield put({
3167
+ type: "SUCCESS",
3168
+ payload: response,
3169
+ name: reducerName,
3170
+ });
3171
+
3172
+
3173
+ } catch (err) {
3174
+ logger.error(err);
3175
+ /* istanbul ignore next */
3176
+ yield put({
3177
+ type: "ERROR",
3178
+ payload: err,
3179
+ name: reducerName,
3180
+ });
3181
+ }
3182
+ }
3183
+
3184
+
3185
+ export function* getlookupEthnicitySagas(action) {
3186
+ const {
3187
+ payload = {},
3188
+ meta: { reducerName },
3189
+ } = action;
3190
+ try {
3191
+ yield put({
3192
+ type: "FETCHING",
3193
+ name: reducerName,
3194
+ });
3195
+
3196
+ const response = yield call(APIServices.getlookupEthnicity, payload);
3197
+ yield put({
3198
+ type: "SUCCESS",
3199
+ payload: response,
3200
+ name: reducerName,
3201
+ });
3202
+
3203
+
3204
+ } catch (err) {
3205
+ logger.error(err);
3206
+ /* istanbul ignore next */
3207
+ yield put({
3208
+ type: "ERROR",
3209
+ payload: err,
3210
+ name: reducerName,
3211
+ });
3212
+ }
3213
+ }
3214
+
3215
+
3216
+ export function* getlookupLanguageSagas(action) {
3217
+ const {
3218
+ payload = {},
3219
+ meta: { reducerName },
3220
+ } = action;
3221
+ try {
3222
+ yield put({
3223
+ type: "FETCHING",
3224
+ name: reducerName,
3225
+ });
3226
+
3227
+ const response = yield call(APIServices.getlookupLanguage, payload);
3228
+ yield put({
3229
+ type: "SUCCESS",
3230
+ payload: response,
3231
+ name: reducerName,
3232
+ });
3233
+
3234
+
3235
+ } catch (err) {
3236
+ logger.error(err);
3237
+ /* istanbul ignore next */
3238
+ yield put({
3239
+ type: "ERROR",
3240
+ payload: err,
3241
+ name: reducerName,
3242
+ });
3243
+ }
3244
+ }
3245
+
3246
+
3247
+ export function* getlookupCountrySagas(action) {
3248
+ const {
3249
+ payload = {},
3250
+ meta: { reducerName },
3251
+ } = action;
3252
+ try {
3253
+ yield put({
3254
+ type: "FETCHING",
3255
+ name: reducerName,
3256
+ });
3257
+
3258
+ const response = yield call(APIServices.getlookupCountry, payload);
3259
+ yield put({
3260
+ type: "SUCCESS",
3261
+ payload: response,
3262
+ name: reducerName,
3263
+ });
3264
+
3265
+
3266
+ } catch (err) {
3267
+ logger.error(err);
3268
+ /* istanbul ignore next */
3269
+ yield put({
3270
+ type: "ERROR",
3271
+ payload: err,
3272
+ name: reducerName,
3273
+ });
3274
+ }
3275
+ }
3276
+
3277
+
3278
+ export function* getlookupSalutationSagas(action) {
3279
+ const {
3280
+ payload = {},
3281
+ meta: { reducerName },
3282
+ } = action;
3283
+ try {
3284
+ yield put({
3285
+ type: "FETCHING",
3286
+ name: reducerName,
3287
+ });
3288
+
3289
+ const response = yield call(APIServices.getlookupSalutation, payload);
3290
+ yield put({
3291
+ type: "SUCCESS",
3292
+ payload: response,
3293
+ name: reducerName,
3294
+ });
3295
+
3296
+
3297
+ } catch (err) {
3298
+ logger.error(err);
3299
+ /* istanbul ignore next */
3300
+ yield put({
3301
+ type: "ERROR",
3302
+ payload: err,
3303
+ name: reducerName,
3304
+ });
3305
+ }
3306
+ }
3307
+
3308
+
3309
+ export function* getlookupGrowingRegionSagas(action) {
3310
+ const {
3311
+ payload = {},
3312
+ meta: { reducerName },
3313
+ } = action;
3314
+ try {
3315
+ yield put({
3316
+ type: "FETCHING",
3317
+ name: reducerName,
3318
+ });
3319
+
3320
+ const response = yield call(APIServices.getlookupGrowingRegion, payload);
3321
+ yield put({
3322
+ type: "SUCCESS",
3323
+ payload: response,
3324
+ name: reducerName,
3325
+ });
3326
+
3327
+
3328
+ } catch (err) {
3329
+ logger.error(err);
3330
+ /* istanbul ignore next */
3331
+ yield put({
3332
+ type: "ERROR",
3333
+ payload: err,
3334
+ name: reducerName,
3335
+ });
3336
+ }
3337
+ }
3338
+
3339
+
3340
+ export function* getlookupGrowingSubRegionSagas(action) {
3341
+ const {
3342
+ payload = {},
3343
+ meta: { reducerName },
3344
+ } = action;
3345
+ try {
3346
+ yield put({
3347
+ type: "FETCHING",
3348
+ name: reducerName,
3349
+ });
3350
+
3351
+ const response = yield call(APIServices.getlookupGrowingSubRegion, payload);
3352
+ yield put({
3353
+ type: "SUCCESS",
3354
+ payload: response,
3355
+ name: reducerName,
3356
+ });
3357
+
3358
+
3359
+ } catch (err) {
3360
+ logger.error(err);
3361
+ /* istanbul ignore next */
3362
+ yield put({
3363
+ type: "ERROR",
3364
+ payload: err,
3365
+ name: reducerName,
3366
+ });
3367
+ }
3368
+ }
3369
+
3370
+
3371
+ export function* getlookupTownSagas(action) {
3372
+ const {
3373
+ payload = {},
3374
+ meta: { reducerName },
3375
+ } = action;
3376
+ try {
3377
+ yield put({
3378
+ type: "FETCHING",
3379
+ name: reducerName,
3380
+ });
3381
+
3382
+ const response = yield call(APIServices.getlookupTown, payload);
3383
+ yield put({
3384
+ type: "SUCCESS",
3385
+ payload: response,
3386
+ name: reducerName,
3387
+ });
3388
+
3389
+
3390
+ } catch (err) {
3391
+ logger.error(err);
3392
+ /* istanbul ignore next */
3393
+ yield put({
3394
+ type: "ERROR",
3395
+ payload: err,
3396
+ name: reducerName,
3397
+ });
3398
+ }
3399
+ }
3400
+
3401
+
3402
+ export function* getlookupVarietySagas(action) {
3403
+ const {
3404
+ payload = {},
3405
+ meta: { reducerName },
3406
+ } = action;
3407
+ try {
3408
+ yield put({
3409
+ type: "FETCHING",
3410
+ name: reducerName,
3411
+ });
3412
+
3413
+ const response = yield call(APIServices.getlookupVariety, payload);
3414
+ yield put({
3415
+ type: "SUCCESS",
3416
+ payload: response,
3417
+ name: reducerName,
3418
+ });
3419
+
3420
+
3421
+ } catch (err) {
3422
+ logger.error(err);
3423
+ /* istanbul ignore next */
3424
+ yield put({
3425
+ type: "ERROR",
3426
+ payload: err,
3427
+ name: reducerName,
3428
+ });
3429
+ }
3430
+ }
3431
+
3432
+
3433
+ export function* getlookupBlockVintageStatusSagas(action) {
3434
+ const {
3435
+ payload = {},
3436
+ meta: { reducerName },
3437
+ } = action;
3438
+ try {
3439
+ yield put({
3440
+ type: "FETCHING",
3441
+ name: reducerName,
3442
+ });
3443
+
3444
+ const response = yield call(APIServices.getlookupBlockVintageStatus, payload);
3445
+ yield put({
3446
+ type: "SUCCESS",
3447
+ payload: response,
3448
+ name: reducerName,
3449
+ });
3450
+
3451
+
3452
+ } catch (err) {
3453
+ logger.error(err);
3454
+ /* istanbul ignore next */
3455
+ yield put({
3456
+ type: "ERROR",
3457
+ payload: err,
3458
+ name: reducerName,
3459
+ });
3460
+ }
3461
+ }
3462
+
3463
+
3464
+ export function* getlookupTrellisSagas(action) {
3465
+ const {
3466
+ payload = {},
3467
+ meta: { reducerName },
3468
+ } = action;
3469
+ try {
3470
+ yield put({
3471
+ type: "FETCHING",
3472
+ name: reducerName,
3473
+ });
3474
+
3475
+ const response = yield call(APIServices.getlookupTrellis, payload);
3476
+ yield put({
3477
+ type: "SUCCESS",
3478
+ payload: response,
3479
+ name: reducerName,
3480
+ });
3481
+
3482
+
3483
+ } catch (err) {
3484
+ logger.error(err);
3485
+ /* istanbul ignore next */
3486
+ yield put({
3487
+ type: "ERROR",
3488
+ payload: err,
3489
+ name: reducerName,
3490
+ });
3491
+ }
3492
+ }
3493
+
3494
+
3495
+ export function* getlookupRootStockSagas(action) {
3496
+ const {
3497
+ payload = {},
3498
+ meta: { reducerName },
3499
+ } = action;
3500
+ try {
3501
+ yield put({
3502
+ type: "FETCHING",
3503
+ name: reducerName,
3504
+ });
3505
+
3506
+ const response = yield call(APIServices.getlookupRootStock, payload);
3507
+ yield put({
3508
+ type: "SUCCESS",
3509
+ payload: response,
3510
+ name: reducerName,
3511
+ });
3512
+
3513
+
3514
+ } catch (err) {
3515
+ logger.error(err);
3516
+ /* istanbul ignore next */
3517
+ yield put({
3518
+ type: "ERROR",
3519
+ payload: err,
3520
+ name: reducerName,
3521
+ });
3522
+ }
3523
+ }
3524
+
3525
+
3526
+ export function* getlookupVarietyCloneSagas(action) {
3527
+ const {
3528
+ payload = {},
3529
+ meta: { reducerName },
3530
+ } = action;
3531
+ try {
3532
+ yield put({
3533
+ type: "FETCHING",
3534
+ name: reducerName,
3535
+ });
3536
+
3537
+ const response = yield call(APIServices.getlookupVarietyClone, payload);
3538
+ yield put({
3539
+ type: "SUCCESS",
3540
+ payload: response,
3541
+ name: reducerName,
3542
+ });
3543
+
3544
+
3545
+ } catch (err) {
3546
+ logger.error(err);
3547
+ /* istanbul ignore next */
3548
+ yield put({
3549
+ type: "ERROR",
3550
+ payload: err,
3551
+ name: reducerName,
3552
+ });
3553
+ }
3554
+ }
3555
+
3556
+
3557
+ export function* getlookupVintageSagas(action) {
3558
+ const {
3559
+ payload = {},
3560
+ meta: { reducerName },
3561
+ } = action;
3562
+ try {
3563
+ yield put({
3564
+ type: "FETCHING",
3565
+ name: reducerName,
3566
+ });
3567
+
3568
+ const response = yield call(APIServices.getlookupVintage, payload);
3569
+ yield put({
3570
+ type: "SUCCESS",
3571
+ payload: response,
3572
+ name: reducerName,
3573
+ });
3574
+
3575
+
3576
+ } catch (err) {
3577
+ logger.error(err);
3578
+ /* istanbul ignore next */
3579
+ yield put({
3580
+ type: "ERROR",
3581
+ payload: err,
3582
+ name: reducerName,
3583
+ });
3584
+ }
3585
+ }
3586
+
3587
+
3588
+ export function* getlookupRowSpecialAttributeSagas(action) {
3589
+ const {
3590
+ payload = {},
3591
+ meta: { reducerName },
3592
+ } = action;
3593
+ try {
3594
+ yield put({
3595
+ type: "FETCHING",
3596
+ name: reducerName,
3597
+ });
3598
+
3599
+ const response = yield call(APIServices.getlookupRowSpecialAttribute, payload);
3600
+ yield put({
3601
+ type: "SUCCESS",
3602
+ payload: response,
3603
+ name: reducerName,
3604
+ });
3605
+
3606
+
3607
+ } catch (err) {
3608
+ logger.error(err);
3609
+ /* istanbul ignore next */
3610
+ yield put({
3611
+ type: "ERROR",
3612
+ payload: err,
3613
+ name: reducerName,
3614
+ });
3615
+ }
3616
+ }
3617
+
3618
+
3619
+ export function* getlookupNoteStatusSagas(action) {
3620
+ const {
3621
+ payload = {},
3622
+ meta: { reducerName },
3623
+ } = action;
3624
+ try {
3625
+ yield put({
3626
+ type: "FETCHING",
3627
+ name: reducerName,
3628
+ });
3629
+
3630
+ const response = yield call(APIServices.getlookupNoteStatus, payload);
3631
+ yield put({
3632
+ type: "SUCCESS",
3633
+ payload: response,
3634
+ name: reducerName,
3635
+ });
3636
+
3637
+
3638
+ } catch (err) {
3639
+ logger.error(err);
3640
+ /* istanbul ignore next */
3641
+ yield put({
3642
+ type: "ERROR",
3643
+ payload: err,
3644
+ name: reducerName,
3645
+ });
3646
+ }
3647
+ }
3648
+
3649
+
3650
+ export function* getlookupMeasureSagas(action) {
3651
+ const {
3652
+ payload = {},
3653
+ meta: { reducerName },
3654
+ } = action;
3655
+ try {
3656
+ yield put({
3657
+ type: "FETCHING",
3658
+ name: reducerName,
3659
+ });
3660
+
3661
+ const response = yield call(APIServices.getlookupMeasure, payload);
3662
+ yield put({
3663
+ type: "SUCCESS",
3664
+ payload: response,
3665
+ name: reducerName,
3666
+ });
3667
+
3668
+
3669
+ } catch (err) {
3670
+ logger.error(err);
3671
+ /* istanbul ignore next */
3672
+ yield put({
3673
+ type: "ERROR",
3674
+ payload: err,
3675
+ name: reducerName,
3676
+ });
3677
+ }
3678
+ }
3679
+
3680
+
3681
+ export function* getlookupMeasureGroupSagas(action) {
3682
+ const {
3683
+ payload = {},
3684
+ meta: { reducerName },
3685
+ } = action;
3686
+ try {
3687
+ yield put({
3688
+ type: "FETCHING",
3689
+ name: reducerName,
3690
+ });
3691
+
3692
+ const response = yield call(APIServices.getlookupMeasureGroup, payload);
3693
+ yield put({
3694
+ type: "SUCCESS",
3695
+ payload: response,
3696
+ name: reducerName,
3697
+ });
3698
+
3699
+
3700
+ } catch (err) {
3701
+ logger.error(err);
3702
+ /* istanbul ignore next */
3703
+ yield put({
3704
+ type: "ERROR",
3705
+ payload: err,
3706
+ name: reducerName,
3707
+ });
3708
+ }
3709
+ }
3710
+
3711
+
3712
+ export function* getlookupMeasureInstanceSagas(action) {
3713
+ const {
3714
+ payload = {},
3715
+ meta: { reducerName },
3716
+ } = action;
3717
+ try {
3718
+ yield put({
3719
+ type: "FETCHING",
3720
+ name: reducerName,
3721
+ });
3722
+
3723
+ const response = yield call(APIServices.getlookupMeasureInstance, payload);
3724
+ yield put({
3725
+ type: "SUCCESS",
3726
+ payload: response,
3727
+ name: reducerName,
3728
+ });
3729
+
3730
+
3731
+ } catch (err) {
3732
+ logger.error(err);
3733
+ /* istanbul ignore next */
3734
+ yield put({
3735
+ type: "ERROR",
3736
+ payload: err,
3737
+ name: reducerName,
3738
+ });
3739
+ }
3740
+ }
3741
+
3742
+
3743
+ export function* getlookupKeywordSagas(action) {
3744
+ const {
3745
+ payload = {},
3746
+ meta: { reducerName },
3747
+ } = action;
3748
+ try {
3749
+ yield put({
3750
+ type: "FETCHING",
3751
+ name: reducerName,
3752
+ });
3753
+
3754
+ const response = yield call(APIServices.getlookupKeyword, payload);
3755
+ yield put({
3756
+ type: "SUCCESS",
3757
+ payload: response,
3758
+ name: reducerName,
3759
+ });
3760
+
3761
+
3762
+ } catch (err) {
3763
+ logger.error(err);
3764
+ /* istanbul ignore next */
3765
+ yield put({
3766
+ type: "ERROR",
3767
+ payload: err,
3768
+ name: reducerName,
3769
+ });
3770
+ }
3771
+ }
3772
+
3773
+
3774
+ export function* getlookupSampleRequestStatusSagas(action) {
3775
+ const {
3776
+ payload = {},
3777
+ meta: { reducerName },
3778
+ } = action;
3779
+ try {
3780
+ yield put({
3781
+ type: "FETCHING",
3782
+ name: reducerName,
3783
+ });
3784
+
3785
+ const response = yield call(APIServices.getlookupSampleRequestStatus, payload);
3786
+ yield put({
3787
+ type: "SUCCESS",
3788
+ payload: response,
3789
+ name: reducerName,
3790
+ });
3791
+
3792
+
3793
+ } catch (err) {
3794
+ logger.error(err);
3795
+ /* istanbul ignore next */
3796
+ yield put({
3797
+ type: "ERROR",
3798
+ payload: err,
3799
+ name: reducerName,
3800
+ });
3801
+ }
3802
+ }
3803
+
3804
+
3805
+ export function* getlookupPayrollSystemSagas(action) {
3806
+ const {
3807
+ payload = {},
3808
+ meta: { reducerName },
3809
+ } = action;
3810
+ try {
3811
+ yield put({
3812
+ type: "FETCHING",
3813
+ name: reducerName,
3814
+ });
3815
+
3816
+ const response = yield call(APIServices.getlookupPayrollSystem, payload);
3817
+ yield put({
3818
+ type: "SUCCESS",
3819
+ payload: response,
3820
+ name: reducerName,
3821
+ });
3822
+
3823
+
3824
+ } catch (err) {
3825
+ logger.error(err);
3826
+ /* istanbul ignore next */
3827
+ yield put({
3828
+ type: "ERROR",
3829
+ payload: err,
3830
+ name: reducerName,
3831
+ });
3832
+ }
3833
+ }
3834
+
3835
+
3836
+ export function* getlookupDataProviderSagas(action) {
3837
+ const {
3838
+ payload = {},
3839
+ meta: { reducerName },
3840
+ } = action;
3841
+ try {
3842
+ yield put({
3843
+ type: "FETCHING",
3844
+ name: reducerName,
3845
+ });
3846
+
3847
+ const response = yield call(APIServices.getlookupDataProvider, payload);
3848
+ yield put({
3849
+ type: "SUCCESS",
3850
+ payload: response,
3851
+ name: reducerName,
3852
+ });
3853
+
3854
+
3855
+ } catch (err) {
3856
+ logger.error(err);
3857
+ /* istanbul ignore next */
3858
+ yield put({
3859
+ type: "ERROR",
3860
+ payload: err,
3861
+ name: reducerName,
3862
+ });
3863
+ }
3864
+ }
3865
+
3866
+
3867
+ export function* getlookupDataProviderTypeSagas(action) {
3868
+ const {
3869
+ payload = {},
3870
+ meta: { reducerName },
3871
+ } = action;
3872
+ try {
3873
+ yield put({
3874
+ type: "FETCHING",
3875
+ name: reducerName,
3876
+ });
3877
+
3878
+ const response = yield call(APIServices.getlookupDataProviderType, payload);
3879
+ yield put({
3880
+ type: "SUCCESS",
3881
+ payload: response,
3882
+ name: reducerName,
3883
+ });
3884
+
3885
+
3886
+ } catch (err) {
3887
+ logger.error(err);
3888
+ /* istanbul ignore next */
3889
+ yield put({
3890
+ type: "ERROR",
3891
+ payload: err,
3892
+ name: reducerName,
3893
+ });
3894
+ }
3895
+ }
3896
+
3897
+
3898
+ export function* getlookupPhenologyMeasureSagas(action) {
3899
+ const {
3900
+ payload = {},
3901
+ meta: { reducerName },
3902
+ } = action;
3903
+ try {
3904
+ yield put({
3905
+ type: "FETCHING",
3906
+ name: reducerName,
3907
+ });
3908
+
3909
+ const response = yield call(APIServices.getlookupPhenologyMeasure, payload);
3910
+ yield put({
3911
+ type: "SUCCESS",
3912
+ payload: response,
3913
+ name: reducerName,
3914
+ });
3915
+
3916
+
3917
+ } catch (err) {
3918
+ logger.error(err);
3919
+ /* istanbul ignore next */
3920
+ yield put({
3921
+ type: "ERROR",
3922
+ payload: err,
3923
+ name: reducerName,
3924
+ });
3925
+ }
3926
+ }
3927
+
3928
+
3929
+ export function* getlookupPhenologyMeasureOptionSagas(action) {
3930
+ const {
3931
+ payload = {},
3932
+ meta: { reducerName },
3933
+ } = action;
3934
+ try {
3935
+ yield put({
3936
+ type: "FETCHING",
3937
+ name: reducerName,
3938
+ });
3939
+
3940
+ const response = yield call(APIServices.getlookupPhenologyMeasureOption, payload);
3941
+ yield put({
3942
+ type: "SUCCESS",
3943
+ payload: response,
3944
+ name: reducerName,
3945
+ });
3946
+
3947
+
3948
+ } catch (err) {
3949
+ logger.error(err);
3950
+ /* istanbul ignore next */
3951
+ yield put({
3952
+ type: "ERROR",
3953
+ payload: err,
3954
+ name: reducerName,
3955
+ });
3956
+ }
3957
+ }
3958
+
3959
+
3960
+ export function* getlookupPhenologyMeasureSetSagas(action) {
3961
+ const {
3962
+ payload = {},
3963
+ meta: { reducerName },
3964
+ } = action;
3965
+ try {
3966
+ yield put({
3967
+ type: "FETCHING",
3968
+ name: reducerName,
3969
+ });
3970
+
3971
+ const response = yield call(APIServices.getlookupPhenologyMeasureSet, payload);
3972
+ yield put({
3973
+ type: "SUCCESS",
3974
+ payload: response,
3975
+ name: reducerName,
3976
+ });
3977
+
3978
+
3979
+ } catch (err) {
3980
+ logger.error(err);
3981
+ /* istanbul ignore next */
3982
+ yield put({
3983
+ type: "ERROR",
3984
+ payload: err,
3985
+ name: reducerName,
3986
+ });
3987
+ }
3988
+ }
3989
+
3990
+
3991
+ export function* getlookupPhenologyMeasureTypeSagas(action) {
3992
+ const {
3993
+ payload = {},
3994
+ meta: { reducerName },
3995
+ } = action;
3996
+ try {
3997
+ yield put({
3998
+ type: "FETCHING",
3999
+ name: reducerName,
4000
+ });
4001
+
4002
+ const response = yield call(APIServices.getlookupPhenologyMeasureType, payload);
4003
+ yield put({
4004
+ type: "SUCCESS",
4005
+ payload: response,
4006
+ name: reducerName,
4007
+ });
4008
+
4009
+
4010
+ } catch (err) {
4011
+ logger.error(err);
4012
+ /* istanbul ignore next */
4013
+ yield put({
4014
+ type: "ERROR",
4015
+ payload: err,
4016
+ name: reducerName,
4017
+ });
4018
+ }
4019
+ }
4020
+
4021
+
4022
+
4023
+
4024
+ export function* fetchAllLookupsSagas(action) {
4025
+ try {
4026
+ yield put(
4027
+ VineaNovaActions.api.v1.lookupClassification.get.request(),
4028
+ );
4029
+ yield put(
4030
+ VineaNovaActions.api.v1.lookupClassificationGroup.get.request(),
4031
+ );
4032
+ yield put(
4033
+ VineaNovaActions.api.v1.lookupClassificationGroupIdentityType.get.request(),
4034
+ );
4035
+ yield put(
4036
+ VineaNovaActions.api.v1.lookupReferenceType.get.request(),
4037
+ );
4038
+ yield put(
4039
+ VineaNovaActions.api.v1.lookupIdentityType.get.request(),
4040
+ );
4041
+ yield put(
4042
+ VineaNovaActions.api.v1.lookupRoleType.get.request(),
4043
+ );
4044
+ yield put(
4045
+ VineaNovaActions.api.v1.lookupRoleTypeIdentityType.get.request(),
4046
+ );
4047
+ yield put(
4048
+ VineaNovaActions.api.v1.lookupBusinessUnit.get.request(),
4049
+ );
4050
+ yield put(
4051
+ VineaNovaActions.api.v1.lookupReferenceTypeIdentityType.get.request(),
4052
+ );
4053
+ yield put(
4054
+ VineaNovaActions.api.v1.lookupRelationshipType.get.request(),
4055
+ );
4056
+ yield put(
4057
+ VineaNovaActions.api.v1.lookupRelationshipSubType.get.request(),
4058
+ );
4059
+ yield put(
4060
+ VineaNovaActions.api.v1.lookupContactMethod.get.request(),
4061
+ );
4062
+ yield put(
4063
+ VineaNovaActions.api.v1.lookupGender.get.request(),
4064
+ );
4065
+ yield put(
4066
+ VineaNovaActions.api.v1.lookupNationality.get.request(),
4067
+ );
4068
+ yield put(
4069
+ VineaNovaActions.api.v1.lookupEthnicity.get.request(),
4070
+ );
4071
+ yield put(
4072
+ VineaNovaActions.api.v1.lookupLanguage.get.request(),
4073
+ );
4074
+ yield put(
4075
+ VineaNovaActions.api.v1.lookupCountry.get.request(),
4076
+ );
4077
+ yield put(
4078
+ VineaNovaActions.api.v1.lookupSalutation.get.request(),
4079
+ );
4080
+ yield put(
4081
+ VineaNovaActions.api.v1.lookupGrowingRegion.get.request(),
4082
+ );
4083
+ yield put(
4084
+ VineaNovaActions.api.v1.lookupGrowingSubRegion.get.request(),
4085
+ );
4086
+ yield put(
4087
+ VineaNovaActions.api.v1.lookupTown.get.request(),
4088
+ );
4089
+ yield put(
4090
+ VineaNovaActions.api.v1.lookupVariety.get.request(),
4091
+ );
4092
+ yield put(
4093
+ VineaNovaActions.api.v1.lookupBlockVintageStatus.get.request(),
4094
+ );
4095
+ yield put(
4096
+ VineaNovaActions.api.v1.lookupTrellis.get.request(),
4097
+ );
4098
+ yield put(
4099
+ VineaNovaActions.api.v1.lookupRootStock.get.request(),
4100
+ );
4101
+ yield put(
4102
+ VineaNovaActions.api.v1.lookupVarietyClone.get.request(),
4103
+ );
4104
+ yield put(
4105
+ VineaNovaActions.api.v1.lookupVintage.get.request(),
4106
+ );
4107
+ yield put(
4108
+ VineaNovaActions.api.v1.lookupRowSpecialAttribute.get.request(),
4109
+ );
4110
+ yield put(
4111
+ VineaNovaActions.api.v1.lookupNoteStatus.get.request(),
4112
+ );
4113
+ yield put(
4114
+ VineaNovaActions.api.v1.lookupMeasure.get.request(),
4115
+ );
4116
+ yield put(
4117
+ VineaNovaActions.api.v1.lookupMeasureGroup.get.request(),
4118
+ );
4119
+ yield put(
4120
+ VineaNovaActions.api.v1.lookupMeasureInstance.get.request(),
4121
+ );
4122
+ yield put(
4123
+ VineaNovaActions.api.v1.lookupKeyword.get.request(),
4124
+ );
4125
+ yield put(
4126
+ VineaNovaActions.api.v1.lookupSampleRequestStatus.get.request(),
4127
+ );
4128
+ yield put(
4129
+ VineaNovaActions.api.v1.lookupPayrollSystem.get.request(),
4130
+ );
4131
+ yield put(
4132
+ VineaNovaActions.api.v1.lookupDataProvider.get.request(),
4133
+ );
4134
+ yield put(
4135
+ VineaNovaActions.api.v1.lookupDataProviderType.get.request(),
4136
+ );
4137
+ yield put(
4138
+ VineaNovaActions.api.v1.lookupPhenologyMeasure.get.request(),
4139
+ );
4140
+ yield put(
4141
+ VineaNovaActions.api.v1.lookupPhenologyMeasureOption.get.request(),
4142
+ );
4143
+ yield put(
4144
+ VineaNovaActions.api.v1.lookupPhenologyMeasureSet.get.request(),
4145
+ );
4146
+ yield put(
4147
+ VineaNovaActions.api.v1.lookupPhenologyMeasureType.get.request(),
4148
+ );
4149
+ } catch (err) {
4150
+ logger.error(err);
4151
+ }
4152
+ }
4153
+
4154
+
4155
+ function* clearReducerData(action) {
4156
+ const {
4157
+ payload = {},
4158
+ meta: { reducerName },
4159
+ } = action;
4160
+ try {
4161
+ yield put({
4162
+ type: "CLEAR_DATA",
4163
+ name: reducerName,
4164
+ });
4165
+ } catch (err) {
4166
+ logger.error(err);
4167
+ /* istanbul ignore next */
4168
+ yield put({
4169
+ type: "ERROR",
4170
+ payload: err,
4171
+ name: reducerName,
4172
+ });
4173
+ }
4174
+ }
4175
+
4176
+
4177
+ export default function* root() {
4178
+ yield all([
4179
+ takeLatest(VineaNovaActions.api.v1.blockVintage.get.request().type, getBlockVintageSagas),
4180
+ takeLatest(VineaNovaActions.api.v1.blockVintage.post.request().type, postBlockVintageSagas),
4181
+ takeLatest(VineaNovaActions.api.v1.blockVintage.put.request().type, putBlockVintageSagas),
4182
+ takeLatest(VineaNovaActions.api.v1.blockVintage.delete.request().type, deleteBlockVintageSagas),
4183
+ takeLatest(VineaNovaActions.api.v1.cropBlockPhenology.get.request().type, getCropBlockPhenologySagas),
4184
+ takeLatest(VineaNovaActions.api.v1.cropBlockPhenology.post.request().type, postCropBlockPhenologySagas),
4185
+ takeLatest(VineaNovaActions.api.v1.cropBlockPhenology.put.request().type, putCropBlockPhenologySagas),
4186
+ takeLatest(VineaNovaActions.api.v1.cropBlockPhenology.delete.request().type, deleteCropBlockPhenologySagas),
4187
+ takeLatest(VineaNovaActions.api.v1.cropBlockSetting.get.request().type, getCropBlockSettingSagas),
4188
+ takeLatest(VineaNovaActions.api.v1.cropBlockSetting.post.request().type, postCropBlockSettingSagas),
4189
+ takeLatest(VineaNovaActions.api.v1.cropBlockSetting.put.request().type, putCropBlockSettingSagas),
4190
+ takeLatest(VineaNovaActions.api.v1.cropBlockVintage.get.request().type, getCropBlockVintageSagas),
4191
+ takeLatest(VineaNovaActions.api.v1.cropBlockVintage.post.request().type, postCropBlockVintageSagas),
4192
+ takeLatest(VineaNovaActions.api.v1.cropBlockVintage.put.request().type, putCropBlockVintageSagas),
4193
+ takeLatest(VineaNovaActions.api.v1.cropBlockVintage.delete.request().type, deleteCropBlockVintageSagas),
4194
+ takeLatest(VineaNovaActions.api.v1.healthcheck.get.request().type, gethealthcheckSagas),
4195
+ takeLatest(VineaNovaActions.api.v1.healthcheck.post.request().type, posthealthcheckSagas),
4196
+ takeLatest(VineaNovaActions.api.v1.identity.get.request().type, getIdentitySagas),
4197
+ takeLatest(VineaNovaActions.api.v1.identityDetails.get.request().type, getIdentityDetailsSagas),
4198
+ takeLatest(VineaNovaActions.api.v1.identityClassification.get.request().type, getIdentityClassificationSagas),
4199
+ takeLatest(VineaNovaActions.api.v1.identityClassification.post.request().type, postIdentityClassificationSagas),
4200
+ takeLatest(VineaNovaActions.api.v1.identityClassification.put.request().type, putIdentityClassificationSagas),
4201
+ takeLatest(VineaNovaActions.api.v1.identityClassification.delete.request().type, deleteIdentityClassificationSagas),
4202
+ takeLatest(VineaNovaActions.api.v1.identityContactMethod.get.request().type, getIdentityContactMethodSagas),
4203
+ takeLatest(VineaNovaActions.api.v1.contactMethod.post.request().type, postContactMethodSagas),
4204
+ takeLatest(VineaNovaActions.api.v1.contactMethod.put.request().type, putContactMethodSagas),
4205
+ takeLatest(VineaNovaActions.api.v1.contactMethod.delete.request().type, deleteContactMethodSagas),
4206
+ takeLatest(VineaNovaActions.api.v1.identityContactMethodAddress.get.request().type, getIdentityContactMethodAddressSagas),
4207
+ takeLatest(VineaNovaActions.api.v1.identityContactMethodAddress.post.request().type, postIdentityContactMethodAddressSagas),
4208
+ takeLatest(VineaNovaActions.api.v1.identityContactMethodAddress.put.request().type, putIdentityContactMethodAddressSagas),
4209
+ takeLatest(VineaNovaActions.api.v1.identityDataConnector.get.request().type, getIdentityDataConnectorSagas),
4210
+ takeLatest(VineaNovaActions.api.v1.identityDataConnector.post.request().type, postIdentityDataConnectorSagas),
4211
+ takeLatest(VineaNovaActions.api.v1.identityDataConnector.put.request().type, putIdentityDataConnectorSagas),
4212
+ takeLatest(VineaNovaActions.api.v1.identityNotes.get.request().type, getIdentityNotesSagas),
4213
+ takeLatest(VineaNovaActions.api.v1.identityNote.put.request().type, putIdentityNoteSagas),
4214
+ takeLatest(VineaNovaActions.api.v1.identityNote.post.request().type, postIdentityNoteSagas),
4215
+ takeLatest(VineaNovaActions.api.v1.identityNote.get.request().type, getIdentityNoteSagas),
4216
+ takeLatest(VineaNovaActions.api.v1.identityNoteImage.put.request().type, putIdentityNoteImageSagas),
4217
+ takeLatest(VineaNovaActions.api.v1.identityNoteImage.delete.request().type, deleteIdentityNoteImageSagas),
4218
+ takeLatest(VineaNovaActions.api.v1.identityOrganisation.post.request().type, postIdentityOrganisationSagas),
4219
+ takeLatest(VineaNovaActions.api.v1.identityOrganisation.put.request().type, putIdentityOrganisationSagas),
4220
+ takeLatest(VineaNovaActions.api.v1.identityOrganisation.get.request().type, getIdentityOrganisationSagas),
4221
+ takeLatest(VineaNovaActions.api.v1.identityPerson.post.request().type, postIdentityPersonSagas),
4222
+ takeLatest(VineaNovaActions.api.v1.identityPerson.put.request().type, putIdentityPersonSagas),
4223
+ takeLatest(VineaNovaActions.api.v1.identityPerson.get.request().type, getIdentityPersonSagas),
4224
+ takeLatest(VineaNovaActions.api.v1.identityReference.get.request().type, getIdentityReferenceSagas),
4225
+ takeLatest(VineaNovaActions.api.v1.identityReference.post.request().type, postIdentityReferenceSagas),
4226
+ takeLatest(VineaNovaActions.api.v1.identityReference.put.request().type, putIdentityReferenceSagas),
4227
+ takeLatest(VineaNovaActions.api.v1.identityReference.delete.request().type, deleteIdentityReferenceSagas),
4228
+ takeLatest(VineaNovaActions.api.v1.identityRelationship.get.request().type, getIdentityRelationshipSagas),
4229
+ takeLatest(VineaNovaActions.api.v1.identityRelationship.post.request().type, postIdentityRelationshipSagas),
4230
+ takeLatest(VineaNovaActions.api.v1.identityRelationship.put.request().type, putIdentityRelationshipSagas),
4231
+ takeLatest(VineaNovaActions.api.v1.identityRelationshipType.get.request().type, getIdentityRelationshipTypeSagas),
4232
+ takeLatest(VineaNovaActions.api.v1.identityRole.post.request().type, postIdentityRoleSagas),
4233
+ takeLatest(VineaNovaActions.api.v1.identityRole.put.request().type, putIdentityRoleSagas),
4234
+ takeLatest(VineaNovaActions.api.v1.identityRole.get.request().type, getIdentityRoleSagas),
4235
+ takeLatest(VineaNovaActions.api.v1.identityRole.delete.request().type, deleteIdentityRoleSagas),
4236
+ takeLatest(VineaNovaActions.api.v1.identityServiceProvider.get.request().type, getIdentityServiceProviderSagas),
4237
+ takeLatest(VineaNovaActions.api.v1.identityServiceProvider.post.request().type, postIdentityServiceProviderSagas),
4238
+ takeLatest(VineaNovaActions.api.v1.identityServiceProvider.put.request().type, putIdentityServiceProviderSagas),
4239
+ takeLatest(VineaNovaActions.api.v1.gridVineyardBlocks.get.request().type, getGridVineyardBlocksSagas),
4240
+ takeLatest(VineaNovaActions.api.v1.identityVineyardBlocks.get.request().type, getIdentityVineyardBlocksSagas),
4241
+ takeLatest(VineaNovaActions.api.v1.identityVineyardBlock.post.request().type, postIdentityVineyardBlockSagas),
4242
+ takeLatest(VineaNovaActions.api.v1.identityVineyardBlock.put.request().type, putIdentityVineyardBlockSagas),
4243
+ takeLatest(VineaNovaActions.api.v1.identityVineyardBlock.delete.request().type, deleteIdentityVineyardBlockSagas),
4244
+ takeLatest(VineaNovaActions.api.v1.identityVineyardBlockRows.get.request().type, getIdentityVineyardBlockRowsSagas),
4245
+ takeLatest(VineaNovaActions.api.v1.identityVineyardBlockRow.post.request().type, postIdentityVineyardBlockRowSagas),
4246
+ takeLatest(VineaNovaActions.api.v1.identityVineyardBlockRow.put.request().type, putIdentityVineyardBlockRowSagas),
4247
+ takeLatest(VineaNovaActions.api.v1.identityVineyardBlockRow.delete.request().type, deleteIdentityVineyardBlockRowSagas),
4248
+ takeLatest(VineaNovaActions.api.v1.getLookUp.get.request().type, getGetLookUpSagas),
4249
+ takeLatest(VineaNovaActions.api.v1.queueMessage.post.request().type, postQueueMessageSagas),
4250
+ takeLatest(VineaNovaActions.api.v1.processblocksampling.get.request().type, getprocessblocksamplingSagas),
4251
+ takeLatest(VineaNovaActions.api.v1.processblocksampling.post.request().type, postprocessblocksamplingSagas),
4252
+ takeLatest(VineaNovaActions.api.v1.sampleHeaders.get.request().type, getSampleHeadersSagas),
4253
+ takeLatest(VineaNovaActions.api.v1.sampleHeaderStatus.put.request().type, putSampleHeaderStatusSagas),
4254
+ takeLatest(VineaNovaActions.api.v1.sampleHeader.delete.request().type, deleteSampleHeaderSagas),
4255
+ takeLatest(VineaNovaActions.api.v1.sampleHeader.post.request().type, postSampleHeaderSagas),
4256
+ takeLatest(VineaNovaActions.api.v1.sampleIdentity.get.request().type, getSampleIdentitySagas),
4257
+ takeLatest(VineaNovaActions.api.v1.sampleIdentity.post.request().type, postSampleIdentitySagas),
4258
+ takeLatest(VineaNovaActions.api.v1.assignSampleHeaders.post.request().type, postAssignSampleHeadersSagas),
4259
+ takeLatest(VineaNovaActions.api.v1.samplingUsers.post.request().type, postSamplingUsersSagas),
4260
+ takeLatest(VineaNovaActions.api.v1.deAssignSampleHeaders.post.request().type, postDeAssignSampleHeadersSagas),
4261
+ takeLatest(VineaNovaActions.api.v1.sampleSets.post.request().type, postSampleSetsSagas),
4262
+ takeLatest(VineaNovaActions.api.v1.sampleBlockVintages.get.request().type, getSampleBlockVintagesSagas),
4263
+ takeLatest(VineaNovaActions.api.v1.sampleSet.post.request().type, postSampleSetSagas),
4264
+ takeLatest(VineaNovaActions.api.v1.searchIdentity.post.request().type, postSearchIdentitySagas),
4265
+ takeLatest(VineaNovaActions.api.v1.identityVineyard.get.request().type, getIdentityVineyardSagas),
4266
+ takeLatest(VineaNovaActions.api.v1.identityVineyard.post.request().type, postIdentityVineyardSagas),
4267
+ takeLatest(VineaNovaActions.api.v1.identityVineyard.put.request().type, putIdentityVineyardSagas),
4268
+ takeLatest(VineaNovaActions.api.v1.lookupClassification.get.request().type, getlookupClassificationSagas),
4269
+ takeLatest(VineaNovaActions.api.v1.lookupClassificationGroup.get.request().type, getlookupClassificationGroupSagas),
4270
+ takeLatest(VineaNovaActions.api.v1.lookupClassificationGroupIdentityType.get.request().type, getlookupClassificationGroupIdentityTypeSagas),
4271
+ takeLatest(VineaNovaActions.api.v1.lookupReferenceType.get.request().type, getlookupReferenceTypeSagas),
4272
+ takeLatest(VineaNovaActions.api.v1.lookupIdentityType.get.request().type, getlookupIdentityTypeSagas),
4273
+ takeLatest(VineaNovaActions.api.v1.lookupRoleType.get.request().type, getlookupRoleTypeSagas),
4274
+ takeLatest(VineaNovaActions.api.v1.lookupRoleTypeIdentityType.get.request().type, getlookupRoleTypeIdentityTypeSagas),
4275
+ takeLatest(VineaNovaActions.api.v1.lookupBusinessUnit.get.request().type, getlookupBusinessUnitSagas),
4276
+ takeLatest(VineaNovaActions.api.v1.lookupReferenceTypeIdentityType.get.request().type, getlookupReferenceTypeIdentityTypeSagas),
4277
+ takeLatest(VineaNovaActions.api.v1.lookupRelationshipType.get.request().type, getlookupRelationshipTypeSagas),
4278
+ takeLatest(VineaNovaActions.api.v1.lookupRelationshipSubType.get.request().type, getlookupRelationshipSubTypeSagas),
4279
+ takeLatest(VineaNovaActions.api.v1.lookupContactMethod.get.request().type, getlookupContactMethodSagas),
4280
+ takeLatest(VineaNovaActions.api.v1.lookupGender.get.request().type, getlookupGenderSagas),
4281
+ takeLatest(VineaNovaActions.api.v1.lookupNationality.get.request().type, getlookupNationalitySagas),
4282
+ takeLatest(VineaNovaActions.api.v1.lookupEthnicity.get.request().type, getlookupEthnicitySagas),
4283
+ takeLatest(VineaNovaActions.api.v1.lookupLanguage.get.request().type, getlookupLanguageSagas),
4284
+ takeLatest(VineaNovaActions.api.v1.lookupCountry.get.request().type, getlookupCountrySagas),
4285
+ takeLatest(VineaNovaActions.api.v1.lookupSalutation.get.request().type, getlookupSalutationSagas),
4286
+ takeLatest(VineaNovaActions.api.v1.lookupGrowingRegion.get.request().type, getlookupGrowingRegionSagas),
4287
+ takeLatest(VineaNovaActions.api.v1.lookupGrowingSubRegion.get.request().type, getlookupGrowingSubRegionSagas),
4288
+ takeLatest(VineaNovaActions.api.v1.lookupTown.get.request().type, getlookupTownSagas),
4289
+ takeLatest(VineaNovaActions.api.v1.lookupVariety.get.request().type, getlookupVarietySagas),
4290
+ takeLatest(VineaNovaActions.api.v1.lookupBlockVintageStatus.get.request().type, getlookupBlockVintageStatusSagas),
4291
+ takeLatest(VineaNovaActions.api.v1.lookupTrellis.get.request().type, getlookupTrellisSagas),
4292
+ takeLatest(VineaNovaActions.api.v1.lookupRootStock.get.request().type, getlookupRootStockSagas),
4293
+ takeLatest(VineaNovaActions.api.v1.lookupVarietyClone.get.request().type, getlookupVarietyCloneSagas),
4294
+ takeLatest(VineaNovaActions.api.v1.lookupVintage.get.request().type, getlookupVintageSagas),
4295
+ takeLatest(VineaNovaActions.api.v1.lookupRowSpecialAttribute.get.request().type, getlookupRowSpecialAttributeSagas),
4296
+ takeLatest(VineaNovaActions.api.v1.lookupNoteStatus.get.request().type, getlookupNoteStatusSagas),
4297
+ takeLatest(VineaNovaActions.api.v1.lookupMeasure.get.request().type, getlookupMeasureSagas),
4298
+ takeLatest(VineaNovaActions.api.v1.lookupMeasureGroup.get.request().type, getlookupMeasureGroupSagas),
4299
+ takeLatest(VineaNovaActions.api.v1.lookupMeasureInstance.get.request().type, getlookupMeasureInstanceSagas),
4300
+ takeLatest(VineaNovaActions.api.v1.lookupKeyword.get.request().type, getlookupKeywordSagas),
4301
+ takeLatest(VineaNovaActions.api.v1.lookupSampleRequestStatus.get.request().type, getlookupSampleRequestStatusSagas),
4302
+ takeLatest(VineaNovaActions.api.v1.lookupPayrollSystem.get.request().type, getlookupPayrollSystemSagas),
4303
+ takeLatest(VineaNovaActions.api.v1.lookupDataProvider.get.request().type, getlookupDataProviderSagas),
4304
+ takeLatest(VineaNovaActions.api.v1.lookupDataProviderType.get.request().type, getlookupDataProviderTypeSagas),
4305
+ takeLatest(VineaNovaActions.api.v1.lookupPhenologyMeasure.get.request().type, getlookupPhenologyMeasureSagas),
4306
+ takeLatest(VineaNovaActions.api.v1.lookupPhenologyMeasureOption.get.request().type, getlookupPhenologyMeasureOptionSagas),
4307
+ takeLatest(VineaNovaActions.api.v1.lookupPhenologyMeasureSet.get.request().type, getlookupPhenologyMeasureSetSagas),
4308
+ takeLatest(VineaNovaActions.api.v1.lookupPhenologyMeasureType.get.request().type, getlookupPhenologyMeasureTypeSagas),
4309
+ takeLatest(VineaNovaActions.api.v1.fetchAllLookups.request().type, fetchAllLookupsSagas),
4310
+ takeLatest((action)=> /CLEARDATA/.test(action.type), clearReducerData),
4311
+ ]);
4312
+ }