@thunkier/thunkmetrc-client 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3323 -0
- package/dist/index.js +1783 -0
- package/package.json +40 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,1783 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.MetrcClient = void 0;
|
|
7
|
+
const axios_1 = __importDefault(require("axios"));
|
|
8
|
+
class MetrcClient {
|
|
9
|
+
constructor(baseUrl, vendorKey, userKey) {
|
|
10
|
+
this.client = axios_1.default.create({
|
|
11
|
+
baseURL: baseUrl,
|
|
12
|
+
auth: {
|
|
13
|
+
username: vendorKey,
|
|
14
|
+
password: userKey
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
async unitsOfMeasureGetactiveV1(body) {
|
|
19
|
+
const { data } = await this.client.get(`/unitsofmeasure/v1/active`, body);
|
|
20
|
+
return data;
|
|
21
|
+
}
|
|
22
|
+
async unitsOfMeasureGetactiveV2(body) {
|
|
23
|
+
const { data } = await this.client.get(`/unitsofmeasure/v2/active`, body);
|
|
24
|
+
return data;
|
|
25
|
+
}
|
|
26
|
+
async unitsOfMeasureGetinactiveV2(body) {
|
|
27
|
+
const { data } = await this.client.get(`/unitsofmeasure/v2/inactive`, body);
|
|
28
|
+
return data;
|
|
29
|
+
}
|
|
30
|
+
async additivesTemplatesCreateV2(body) {
|
|
31
|
+
const { data } = await this.client.post(`/additivestemplates/v2`, body);
|
|
32
|
+
return data;
|
|
33
|
+
}
|
|
34
|
+
async additivesTemplatesGetV2(id, body) {
|
|
35
|
+
const { data } = await this.client.get(`/additivestemplates/v2/${id}`, body);
|
|
36
|
+
return data;
|
|
37
|
+
}
|
|
38
|
+
async additivesTemplatesGetactiveV2(body) {
|
|
39
|
+
const { data } = await this.client.get(`/additivestemplates/v2/active`, body);
|
|
40
|
+
return data;
|
|
41
|
+
}
|
|
42
|
+
async additivesTemplatesGetinactiveV2(body) {
|
|
43
|
+
const { data } = await this.client.get(`/additivestemplates/v2/inactive`, body);
|
|
44
|
+
return data;
|
|
45
|
+
}
|
|
46
|
+
async additivesTemplatesUpdateV2(body) {
|
|
47
|
+
const { data } = await this.client.put(`/additivestemplates/v2`, body);
|
|
48
|
+
return data;
|
|
49
|
+
}
|
|
50
|
+
async patientsStatusGetstatusesbypatientlicensenumberV1(patientLicenseNumber, body) {
|
|
51
|
+
const { data } = await this.client.get(`/patients/v1/statuses/${patientLicenseNumber}`, body);
|
|
52
|
+
return data;
|
|
53
|
+
}
|
|
54
|
+
async patientsStatusGetstatusesbypatientlicensenumberV2(patientLicenseNumber, body) {
|
|
55
|
+
const { data } = await this.client.get(`/patients/v2/statuses/${patientLicenseNumber}`, body);
|
|
56
|
+
return data;
|
|
57
|
+
}
|
|
58
|
+
async strainsCreateV1(body) {
|
|
59
|
+
const { data } = await this.client.post(`/strains/v1/create`, body);
|
|
60
|
+
return data;
|
|
61
|
+
}
|
|
62
|
+
async strainsCreateV2(body) {
|
|
63
|
+
const { data } = await this.client.post(`/strains/v2`, body);
|
|
64
|
+
return data;
|
|
65
|
+
}
|
|
66
|
+
async strainsCreateupdateV1(body) {
|
|
67
|
+
const { data } = await this.client.post(`/strains/v1/update`, body);
|
|
68
|
+
return data;
|
|
69
|
+
}
|
|
70
|
+
async strainsDeleteV1(id, body) {
|
|
71
|
+
const { data } = await this.client.delete(`/strains/v1/${id}`, body);
|
|
72
|
+
return data;
|
|
73
|
+
}
|
|
74
|
+
async strainsDeleteV2(id, body) {
|
|
75
|
+
const { data } = await this.client.delete(`/strains/v2/${id}`, body);
|
|
76
|
+
return data;
|
|
77
|
+
}
|
|
78
|
+
async strainsGetV1(id, body) {
|
|
79
|
+
const { data } = await this.client.get(`/strains/v1/${id}`, body);
|
|
80
|
+
return data;
|
|
81
|
+
}
|
|
82
|
+
async strainsGetV2(id, body) {
|
|
83
|
+
const { data } = await this.client.get(`/strains/v2/${id}`, body);
|
|
84
|
+
return data;
|
|
85
|
+
}
|
|
86
|
+
async strainsGetactiveV1(body) {
|
|
87
|
+
const { data } = await this.client.get(`/strains/v1/active`, body);
|
|
88
|
+
return data;
|
|
89
|
+
}
|
|
90
|
+
async strainsGetactiveV2(body) {
|
|
91
|
+
const { data } = await this.client.get(`/strains/v2/active`, body);
|
|
92
|
+
return data;
|
|
93
|
+
}
|
|
94
|
+
async strainsGetinactiveV2(body) {
|
|
95
|
+
const { data } = await this.client.get(`/strains/v2/inactive`, body);
|
|
96
|
+
return data;
|
|
97
|
+
}
|
|
98
|
+
async strainsUpdateV2(body) {
|
|
99
|
+
const { data } = await this.client.put(`/strains/v2`, body);
|
|
100
|
+
return data;
|
|
101
|
+
}
|
|
102
|
+
async transfersCreateexternalincomingV1(body) {
|
|
103
|
+
const { data } = await this.client.post(`/transfers/v1/external/incoming`, body);
|
|
104
|
+
return data;
|
|
105
|
+
}
|
|
106
|
+
async transfersCreateexternalincomingV2(body) {
|
|
107
|
+
const { data } = await this.client.post(`/transfers/v2/external/incoming`, body);
|
|
108
|
+
return data;
|
|
109
|
+
}
|
|
110
|
+
async transfersCreatetemplatesV1(body) {
|
|
111
|
+
const { data } = await this.client.post(`/transfers/v1/templates`, body);
|
|
112
|
+
return data;
|
|
113
|
+
}
|
|
114
|
+
async transfersCreatetemplatesoutgoingV2(body) {
|
|
115
|
+
const { data } = await this.client.post(`/transfers/v2/templates/outgoing`, body);
|
|
116
|
+
return data;
|
|
117
|
+
}
|
|
118
|
+
async transfersDeleteexternalincomingV1(id, body) {
|
|
119
|
+
const { data } = await this.client.delete(`/transfers/v1/external/incoming/${id}`, body);
|
|
120
|
+
return data;
|
|
121
|
+
}
|
|
122
|
+
async transfersDeleteexternalincomingV2(id, body) {
|
|
123
|
+
const { data } = await this.client.delete(`/transfers/v2/external/incoming/${id}`, body);
|
|
124
|
+
return data;
|
|
125
|
+
}
|
|
126
|
+
async transfersDeletetemplatesV1(id, body) {
|
|
127
|
+
const { data } = await this.client.delete(`/transfers/v1/templates/${id}`, body);
|
|
128
|
+
return data;
|
|
129
|
+
}
|
|
130
|
+
async transfersDeletetemplatesoutgoingV2(id, body) {
|
|
131
|
+
const { data } = await this.client.delete(`/transfers/v2/templates/outgoing/${id}`, body);
|
|
132
|
+
return data;
|
|
133
|
+
}
|
|
134
|
+
async transfersGetdeliveriespackagesstatesV1(body) {
|
|
135
|
+
const { data } = await this.client.get(`/transfers/v1/deliveries/packages/states`, body);
|
|
136
|
+
return data;
|
|
137
|
+
}
|
|
138
|
+
async transfersGetdeliveriespackagesstatesV2(body) {
|
|
139
|
+
const { data } = await this.client.get(`/transfers/v2/deliveries/packages/states`, body);
|
|
140
|
+
return data;
|
|
141
|
+
}
|
|
142
|
+
async transfersGetdeliveryV1(id, body) {
|
|
143
|
+
const { data } = await this.client.get(`/transfers/v1/${id}/deliveries`, body);
|
|
144
|
+
return data;
|
|
145
|
+
}
|
|
146
|
+
async transfersGetdeliveryV2(id, body) {
|
|
147
|
+
const { data } = await this.client.get(`/transfers/v2/${id}/deliveries`, body);
|
|
148
|
+
return data;
|
|
149
|
+
}
|
|
150
|
+
async transfersGetdeliverypackageV1(id, body) {
|
|
151
|
+
const { data } = await this.client.get(`/transfers/v1/deliveries/${id}/packages`, body);
|
|
152
|
+
return data;
|
|
153
|
+
}
|
|
154
|
+
async transfersGetdeliverypackageV2(id, body) {
|
|
155
|
+
const { data } = await this.client.get(`/transfers/v2/deliveries/${id}/packages`, body);
|
|
156
|
+
return data;
|
|
157
|
+
}
|
|
158
|
+
async transfersGetdeliverypackagerequiredlabtestbatchesV1(id, body) {
|
|
159
|
+
const { data } = await this.client.get(`/transfers/v1/deliveries/package/${id}/requiredlabtestbatches`, body);
|
|
160
|
+
return data;
|
|
161
|
+
}
|
|
162
|
+
async transfersGetdeliverypackagerequiredlabtestbatchesV2(id, body) {
|
|
163
|
+
const { data } = await this.client.get(`/transfers/v2/deliveries/package/${id}/requiredlabtestbatches`, body);
|
|
164
|
+
return data;
|
|
165
|
+
}
|
|
166
|
+
async transfersGetdeliverypackagewholesaleV1(id, body) {
|
|
167
|
+
const { data } = await this.client.get(`/transfers/v1/deliveries/${id}/packages/wholesale`, body);
|
|
168
|
+
return data;
|
|
169
|
+
}
|
|
170
|
+
async transfersGetdeliverypackagewholesaleV2(id, body) {
|
|
171
|
+
const { data } = await this.client.get(`/transfers/v2/deliveries/${id}/packages/wholesale`, body);
|
|
172
|
+
return data;
|
|
173
|
+
}
|
|
174
|
+
async transfersGetdeliverytransportersV1(id, body) {
|
|
175
|
+
const { data } = await this.client.get(`/transfers/v1/deliveries/${id}/transporters`, body);
|
|
176
|
+
return data;
|
|
177
|
+
}
|
|
178
|
+
async transfersGetdeliverytransportersV2(id, body) {
|
|
179
|
+
const { data } = await this.client.get(`/transfers/v2/deliveries/${id}/transporters`, body);
|
|
180
|
+
return data;
|
|
181
|
+
}
|
|
182
|
+
async transfersGetdeliverytransportersdetailsV1(id, body) {
|
|
183
|
+
const { data } = await this.client.get(`/transfers/v1/deliveries/${id}/transporters/details`, body);
|
|
184
|
+
return data;
|
|
185
|
+
}
|
|
186
|
+
async transfersGetdeliverytransportersdetailsV2(id, body) {
|
|
187
|
+
const { data } = await this.client.get(`/transfers/v2/deliveries/${id}/transporters/details`, body);
|
|
188
|
+
return data;
|
|
189
|
+
}
|
|
190
|
+
async transfersGethubV2(body) {
|
|
191
|
+
const { data } = await this.client.get(`/transfers/v2/hub`, body);
|
|
192
|
+
return data;
|
|
193
|
+
}
|
|
194
|
+
async transfersGetincomingV1(body) {
|
|
195
|
+
const { data } = await this.client.get(`/transfers/v1/incoming`, body);
|
|
196
|
+
return data;
|
|
197
|
+
}
|
|
198
|
+
async transfersGetincomingV2(body) {
|
|
199
|
+
const { data } = await this.client.get(`/transfers/v2/incoming`, body);
|
|
200
|
+
return data;
|
|
201
|
+
}
|
|
202
|
+
async transfersGetoutgoingV1(body) {
|
|
203
|
+
const { data } = await this.client.get(`/transfers/v1/outgoing`, body);
|
|
204
|
+
return data;
|
|
205
|
+
}
|
|
206
|
+
async transfersGetoutgoingV2(body) {
|
|
207
|
+
const { data } = await this.client.get(`/transfers/v2/outgoing`, body);
|
|
208
|
+
return data;
|
|
209
|
+
}
|
|
210
|
+
async transfersGetrejectedV1(body) {
|
|
211
|
+
const { data } = await this.client.get(`/transfers/v1/rejected`, body);
|
|
212
|
+
return data;
|
|
213
|
+
}
|
|
214
|
+
async transfersGetrejectedV2(body) {
|
|
215
|
+
const { data } = await this.client.get(`/transfers/v2/rejected`, body);
|
|
216
|
+
return data;
|
|
217
|
+
}
|
|
218
|
+
async transfersGettemplatesV1(body) {
|
|
219
|
+
const { data } = await this.client.get(`/transfers/v1/templates`, body);
|
|
220
|
+
return data;
|
|
221
|
+
}
|
|
222
|
+
async transfersGettemplatesdeliveryV1(id, body) {
|
|
223
|
+
const { data } = await this.client.get(`/transfers/v1/templates/${id}/deliveries`, body);
|
|
224
|
+
return data;
|
|
225
|
+
}
|
|
226
|
+
async transfersGettemplatesdeliverypackageV1(id, body) {
|
|
227
|
+
const { data } = await this.client.get(`/transfers/v1/templates/deliveries/${id}/packages`, body);
|
|
228
|
+
return data;
|
|
229
|
+
}
|
|
230
|
+
async transfersGettemplatesdeliverytransportersV1(id, body) {
|
|
231
|
+
const { data } = await this.client.get(`/transfers/v1/templates/deliveries/${id}/transporters`, body);
|
|
232
|
+
return data;
|
|
233
|
+
}
|
|
234
|
+
async transfersGettemplatesdeliverytransportersdetailsV1(id, body) {
|
|
235
|
+
const { data } = await this.client.get(`/transfers/v1/templates/deliveries/${id}/transporters/details`, body);
|
|
236
|
+
return data;
|
|
237
|
+
}
|
|
238
|
+
async transfersGettemplatesoutgoingV2(body) {
|
|
239
|
+
const { data } = await this.client.get(`/transfers/v2/templates/outgoing`, body);
|
|
240
|
+
return data;
|
|
241
|
+
}
|
|
242
|
+
async transfersGettemplatesoutgoingdeliveryV2(id, body) {
|
|
243
|
+
const { data } = await this.client.get(`/transfers/v2/templates/outgoing/${id}/deliveries`, body);
|
|
244
|
+
return data;
|
|
245
|
+
}
|
|
246
|
+
async transfersGettemplatesoutgoingdeliverypackageV2(id, body) {
|
|
247
|
+
const { data } = await this.client.get(`/transfers/v2/templates/outgoing/deliveries/${id}/packages`, body);
|
|
248
|
+
return data;
|
|
249
|
+
}
|
|
250
|
+
async transfersGettemplatesoutgoingdeliverytransportersV2(id, body) {
|
|
251
|
+
const { data } = await this.client.get(`/transfers/v2/templates/outgoing/deliveries/${id}/transporters`, body);
|
|
252
|
+
return data;
|
|
253
|
+
}
|
|
254
|
+
async transfersGettemplatesoutgoingdeliverytransportersdetailsV2(id, body) {
|
|
255
|
+
const { data } = await this.client.get(`/transfers/v2/templates/outgoing/deliveries/${id}/transporters/details`, body);
|
|
256
|
+
return data;
|
|
257
|
+
}
|
|
258
|
+
async transfersGettypesV1(body) {
|
|
259
|
+
const { data } = await this.client.get(`/transfers/v1/types`, body);
|
|
260
|
+
return data;
|
|
261
|
+
}
|
|
262
|
+
async transfersGettypesV2(body) {
|
|
263
|
+
const { data } = await this.client.get(`/transfers/v2/types`, body);
|
|
264
|
+
return data;
|
|
265
|
+
}
|
|
266
|
+
async transfersUpdateexternalincomingV1(body) {
|
|
267
|
+
const { data } = await this.client.put(`/transfers/v1/external/incoming`, body);
|
|
268
|
+
return data;
|
|
269
|
+
}
|
|
270
|
+
async transfersUpdateexternalincomingV2(body) {
|
|
271
|
+
const { data } = await this.client.put(`/transfers/v2/external/incoming`, body);
|
|
272
|
+
return data;
|
|
273
|
+
}
|
|
274
|
+
async transfersUpdatetemplatesV1(body) {
|
|
275
|
+
const { data } = await this.client.put(`/transfers/v1/templates`, body);
|
|
276
|
+
return data;
|
|
277
|
+
}
|
|
278
|
+
async transfersUpdatetemplatesoutgoingV2(body) {
|
|
279
|
+
const { data } = await this.client.put(`/transfers/v2/templates/outgoing`, body);
|
|
280
|
+
return data;
|
|
281
|
+
}
|
|
282
|
+
async wasteMethodsGetallV2(body) {
|
|
283
|
+
const { data } = await this.client.get(`/wastemethods/v2`, body);
|
|
284
|
+
return data;
|
|
285
|
+
}
|
|
286
|
+
async facilitiesGetallV1(body) {
|
|
287
|
+
const { data } = await this.client.get(`/facilities/v1`, body);
|
|
288
|
+
return data;
|
|
289
|
+
}
|
|
290
|
+
async facilitiesGetallV2(body) {
|
|
291
|
+
const { data } = await this.client.get(`/facilities/v2`, body);
|
|
292
|
+
return data;
|
|
293
|
+
}
|
|
294
|
+
async harvestsCreatefinishV1(body) {
|
|
295
|
+
const { data } = await this.client.post(`/harvests/v1/finish`, body);
|
|
296
|
+
return data;
|
|
297
|
+
}
|
|
298
|
+
async harvestsCreatepackageV1(body) {
|
|
299
|
+
const { data } = await this.client.post(`/harvests/v1/create/packages`, body);
|
|
300
|
+
return data;
|
|
301
|
+
}
|
|
302
|
+
async harvestsCreatepackageV2(body) {
|
|
303
|
+
const { data } = await this.client.post(`/harvests/v2/packages`, body);
|
|
304
|
+
return data;
|
|
305
|
+
}
|
|
306
|
+
async harvestsCreatepackagetestingV1(body) {
|
|
307
|
+
const { data } = await this.client.post(`/harvests/v1/create/packages/testing`, body);
|
|
308
|
+
return data;
|
|
309
|
+
}
|
|
310
|
+
async harvestsCreatepackagetestingV2(body) {
|
|
311
|
+
const { data } = await this.client.post(`/harvests/v2/packages/testing`, body);
|
|
312
|
+
return data;
|
|
313
|
+
}
|
|
314
|
+
async harvestsCreateremovewasteV1(body) {
|
|
315
|
+
const { data } = await this.client.post(`/harvests/v1/removewaste`, body);
|
|
316
|
+
return data;
|
|
317
|
+
}
|
|
318
|
+
async harvestsCreateunfinishV1(body) {
|
|
319
|
+
const { data } = await this.client.post(`/harvests/v1/unfinish`, body);
|
|
320
|
+
return data;
|
|
321
|
+
}
|
|
322
|
+
async harvestsCreatewasteV2(body) {
|
|
323
|
+
const { data } = await this.client.post(`/harvests/v2/waste`, body);
|
|
324
|
+
return data;
|
|
325
|
+
}
|
|
326
|
+
async harvestsDeletewasteV2(id, body) {
|
|
327
|
+
const { data } = await this.client.delete(`/harvests/v2/waste/${id}`, body);
|
|
328
|
+
return data;
|
|
329
|
+
}
|
|
330
|
+
async harvestsGetV1(id, body) {
|
|
331
|
+
const { data } = await this.client.get(`/harvests/v1/${id}`, body);
|
|
332
|
+
return data;
|
|
333
|
+
}
|
|
334
|
+
async harvestsGetV2(id, body) {
|
|
335
|
+
const { data } = await this.client.get(`/harvests/v2/${id}`, body);
|
|
336
|
+
return data;
|
|
337
|
+
}
|
|
338
|
+
async harvestsGetactiveV1(body) {
|
|
339
|
+
const { data } = await this.client.get(`/harvests/v1/active`, body);
|
|
340
|
+
return data;
|
|
341
|
+
}
|
|
342
|
+
async harvestsGetactiveV2(body) {
|
|
343
|
+
const { data } = await this.client.get(`/harvests/v2/active`, body);
|
|
344
|
+
return data;
|
|
345
|
+
}
|
|
346
|
+
async harvestsGetinactiveV1(body) {
|
|
347
|
+
const { data } = await this.client.get(`/harvests/v1/inactive`, body);
|
|
348
|
+
return data;
|
|
349
|
+
}
|
|
350
|
+
async harvestsGetinactiveV2(body) {
|
|
351
|
+
const { data } = await this.client.get(`/harvests/v2/inactive`, body);
|
|
352
|
+
return data;
|
|
353
|
+
}
|
|
354
|
+
async harvestsGetonholdV1(body) {
|
|
355
|
+
const { data } = await this.client.get(`/harvests/v1/onhold`, body);
|
|
356
|
+
return data;
|
|
357
|
+
}
|
|
358
|
+
async harvestsGetonholdV2(body) {
|
|
359
|
+
const { data } = await this.client.get(`/harvests/v2/onhold`, body);
|
|
360
|
+
return data;
|
|
361
|
+
}
|
|
362
|
+
async harvestsGetwasteV2(body) {
|
|
363
|
+
const { data } = await this.client.get(`/harvests/v2/waste`, body);
|
|
364
|
+
return data;
|
|
365
|
+
}
|
|
366
|
+
async harvestsGetwastetypesV1(body) {
|
|
367
|
+
const { data } = await this.client.get(`/harvests/v1/waste/types`, body);
|
|
368
|
+
return data;
|
|
369
|
+
}
|
|
370
|
+
async harvestsGetwastetypesV2(body) {
|
|
371
|
+
const { data } = await this.client.get(`/harvests/v2/waste/types`, body);
|
|
372
|
+
return data;
|
|
373
|
+
}
|
|
374
|
+
async harvestsUpdatefinishV2(body) {
|
|
375
|
+
const { data } = await this.client.put(`/harvests/v2/finish`, body);
|
|
376
|
+
return data;
|
|
377
|
+
}
|
|
378
|
+
async harvestsUpdatelocationV2(body) {
|
|
379
|
+
const { data } = await this.client.put(`/harvests/v2/location`, body);
|
|
380
|
+
return data;
|
|
381
|
+
}
|
|
382
|
+
async harvestsUpdatemoveV1(body) {
|
|
383
|
+
const { data } = await this.client.put(`/harvests/v1/move`, body);
|
|
384
|
+
return data;
|
|
385
|
+
}
|
|
386
|
+
async harvestsUpdaterenameV1(body) {
|
|
387
|
+
const { data } = await this.client.put(`/harvests/v1/rename`, body);
|
|
388
|
+
return data;
|
|
389
|
+
}
|
|
390
|
+
async harvestsUpdaterenameV2(body) {
|
|
391
|
+
const { data } = await this.client.put(`/harvests/v2/rename`, body);
|
|
392
|
+
return data;
|
|
393
|
+
}
|
|
394
|
+
async harvestsUpdaterestoreharvestedplantsV2(body) {
|
|
395
|
+
const { data } = await this.client.put(`/harvests/v2/restore/harvestedplants`, body);
|
|
396
|
+
return data;
|
|
397
|
+
}
|
|
398
|
+
async harvestsUpdateunfinishV2(body) {
|
|
399
|
+
const { data } = await this.client.put(`/harvests/v2/unfinish`, body);
|
|
400
|
+
return data;
|
|
401
|
+
}
|
|
402
|
+
async itemsCreateV1(body) {
|
|
403
|
+
const { data } = await this.client.post(`/items/v1/create`, body);
|
|
404
|
+
return data;
|
|
405
|
+
}
|
|
406
|
+
async itemsCreateV2(body) {
|
|
407
|
+
const { data } = await this.client.post(`/items/v2`, body);
|
|
408
|
+
return data;
|
|
409
|
+
}
|
|
410
|
+
async itemsCreatebrandV2(body) {
|
|
411
|
+
const { data } = await this.client.post(`/items/v2/brand`, body);
|
|
412
|
+
return data;
|
|
413
|
+
}
|
|
414
|
+
async itemsCreatefileV2(body) {
|
|
415
|
+
const { data } = await this.client.post(`/items/v2/file`, body);
|
|
416
|
+
return data;
|
|
417
|
+
}
|
|
418
|
+
async itemsCreatephotoV1(body) {
|
|
419
|
+
const { data } = await this.client.post(`/items/v1/photo`, body);
|
|
420
|
+
return data;
|
|
421
|
+
}
|
|
422
|
+
async itemsCreatephotoV2(body) {
|
|
423
|
+
const { data } = await this.client.post(`/items/v2/photo`, body);
|
|
424
|
+
return data;
|
|
425
|
+
}
|
|
426
|
+
async itemsCreateupdateV1(body) {
|
|
427
|
+
const { data } = await this.client.post(`/items/v1/update`, body);
|
|
428
|
+
return data;
|
|
429
|
+
}
|
|
430
|
+
async itemsDeleteV1(id, body) {
|
|
431
|
+
const { data } = await this.client.delete(`/items/v1/${id}`, body);
|
|
432
|
+
return data;
|
|
433
|
+
}
|
|
434
|
+
async itemsDeleteV2(id, body) {
|
|
435
|
+
const { data } = await this.client.delete(`/items/v2/${id}`, body);
|
|
436
|
+
return data;
|
|
437
|
+
}
|
|
438
|
+
async itemsDeletebrandV2(id, body) {
|
|
439
|
+
const { data } = await this.client.delete(`/items/v2/brand/${id}`, body);
|
|
440
|
+
return data;
|
|
441
|
+
}
|
|
442
|
+
async itemsGetV1(id, body) {
|
|
443
|
+
const { data } = await this.client.get(`/items/v1/${id}`, body);
|
|
444
|
+
return data;
|
|
445
|
+
}
|
|
446
|
+
async itemsGetV2(id, body) {
|
|
447
|
+
const { data } = await this.client.get(`/items/v2/${id}`, body);
|
|
448
|
+
return data;
|
|
449
|
+
}
|
|
450
|
+
async itemsGetactiveV1(body) {
|
|
451
|
+
const { data } = await this.client.get(`/items/v1/active`, body);
|
|
452
|
+
return data;
|
|
453
|
+
}
|
|
454
|
+
async itemsGetactiveV2(body) {
|
|
455
|
+
const { data } = await this.client.get(`/items/v2/active`, body);
|
|
456
|
+
return data;
|
|
457
|
+
}
|
|
458
|
+
async itemsGetbrandsV1(body) {
|
|
459
|
+
const { data } = await this.client.get(`/items/v1/brands`, body);
|
|
460
|
+
return data;
|
|
461
|
+
}
|
|
462
|
+
async itemsGetbrandsV2(body) {
|
|
463
|
+
const { data } = await this.client.get(`/items/v2/brands`, body);
|
|
464
|
+
return data;
|
|
465
|
+
}
|
|
466
|
+
async itemsGetcategoriesV1(body) {
|
|
467
|
+
const { data } = await this.client.get(`/items/v1/categories`, body);
|
|
468
|
+
return data;
|
|
469
|
+
}
|
|
470
|
+
async itemsGetcategoriesV2(body) {
|
|
471
|
+
const { data } = await this.client.get(`/items/v2/categories`, body);
|
|
472
|
+
return data;
|
|
473
|
+
}
|
|
474
|
+
async itemsGetfileV2(id, body) {
|
|
475
|
+
const { data } = await this.client.get(`/items/v2/file/${id}`, body);
|
|
476
|
+
return data;
|
|
477
|
+
}
|
|
478
|
+
async itemsGetinactiveV1(body) {
|
|
479
|
+
const { data } = await this.client.get(`/items/v1/inactive`, body);
|
|
480
|
+
return data;
|
|
481
|
+
}
|
|
482
|
+
async itemsGetinactiveV2(body) {
|
|
483
|
+
const { data } = await this.client.get(`/items/v2/inactive`, body);
|
|
484
|
+
return data;
|
|
485
|
+
}
|
|
486
|
+
async itemsGetphotoV1(id, body) {
|
|
487
|
+
const { data } = await this.client.get(`/items/v1/photo/${id}`, body);
|
|
488
|
+
return data;
|
|
489
|
+
}
|
|
490
|
+
async itemsGetphotoV2(id, body) {
|
|
491
|
+
const { data } = await this.client.get(`/items/v2/photo/${id}`, body);
|
|
492
|
+
return data;
|
|
493
|
+
}
|
|
494
|
+
async itemsUpdateV2(body) {
|
|
495
|
+
const { data } = await this.client.put(`/items/v2`, body);
|
|
496
|
+
return data;
|
|
497
|
+
}
|
|
498
|
+
async itemsUpdatebrandV2(body) {
|
|
499
|
+
const { data } = await this.client.put(`/items/v2/brand`, body);
|
|
500
|
+
return data;
|
|
501
|
+
}
|
|
502
|
+
async labTestsCreaterecordV1(body) {
|
|
503
|
+
const { data } = await this.client.post(`/labtests/v1/record`, body);
|
|
504
|
+
return data;
|
|
505
|
+
}
|
|
506
|
+
async labTestsCreaterecordV2(body) {
|
|
507
|
+
const { data } = await this.client.post(`/labtests/v2/record`, body);
|
|
508
|
+
return data;
|
|
509
|
+
}
|
|
510
|
+
async labTestsGetbatchesV2(body) {
|
|
511
|
+
const { data } = await this.client.get(`/labtests/v2/batches`, body);
|
|
512
|
+
return data;
|
|
513
|
+
}
|
|
514
|
+
async labTestsGetlabtestdocumentV1(id, body) {
|
|
515
|
+
const { data } = await this.client.get(`/labtests/v1/labtestdocument/${id}`, body);
|
|
516
|
+
return data;
|
|
517
|
+
}
|
|
518
|
+
async labTestsGetlabtestdocumentV2(id, body) {
|
|
519
|
+
const { data } = await this.client.get(`/labtests/v2/labtestdocument/${id}`, body);
|
|
520
|
+
return data;
|
|
521
|
+
}
|
|
522
|
+
async labTestsGetresultsV1(body) {
|
|
523
|
+
const { data } = await this.client.get(`/labtests/v1/results`, body);
|
|
524
|
+
return data;
|
|
525
|
+
}
|
|
526
|
+
async labTestsGetresultsV2(body) {
|
|
527
|
+
const { data } = await this.client.get(`/labtests/v2/results`, body);
|
|
528
|
+
return data;
|
|
529
|
+
}
|
|
530
|
+
async labTestsGetstatesV1(body) {
|
|
531
|
+
const { data } = await this.client.get(`/labtests/v1/states`, body);
|
|
532
|
+
return data;
|
|
533
|
+
}
|
|
534
|
+
async labTestsGetstatesV2(body) {
|
|
535
|
+
const { data } = await this.client.get(`/labtests/v2/states`, body);
|
|
536
|
+
return data;
|
|
537
|
+
}
|
|
538
|
+
async labTestsGettypesV1(body) {
|
|
539
|
+
const { data } = await this.client.get(`/labtests/v1/types`, body);
|
|
540
|
+
return data;
|
|
541
|
+
}
|
|
542
|
+
async labTestsGettypesV2(body) {
|
|
543
|
+
const { data } = await this.client.get(`/labtests/v2/types`, body);
|
|
544
|
+
return data;
|
|
545
|
+
}
|
|
546
|
+
async labTestsUpdatelabtestdocumentV1(body) {
|
|
547
|
+
const { data } = await this.client.put(`/labtests/v1/labtestdocument`, body);
|
|
548
|
+
return data;
|
|
549
|
+
}
|
|
550
|
+
async labTestsUpdatelabtestdocumentV2(body) {
|
|
551
|
+
const { data } = await this.client.put(`/labtests/v2/labtestdocument`, body);
|
|
552
|
+
return data;
|
|
553
|
+
}
|
|
554
|
+
async labTestsUpdateresultreleaseV1(body) {
|
|
555
|
+
const { data } = await this.client.put(`/labtests/v1/results/release`, body);
|
|
556
|
+
return data;
|
|
557
|
+
}
|
|
558
|
+
async labTestsUpdateresultreleaseV2(body) {
|
|
559
|
+
const { data } = await this.client.put(`/labtests/v2/results/release`, body);
|
|
560
|
+
return data;
|
|
561
|
+
}
|
|
562
|
+
async locationsCreateV1(body) {
|
|
563
|
+
const { data } = await this.client.post(`/locations/v1/create`, body);
|
|
564
|
+
return data;
|
|
565
|
+
}
|
|
566
|
+
async locationsCreateV2(body) {
|
|
567
|
+
const { data } = await this.client.post(`/locations/v2`, body);
|
|
568
|
+
return data;
|
|
569
|
+
}
|
|
570
|
+
async locationsCreateupdateV1(body) {
|
|
571
|
+
const { data } = await this.client.post(`/locations/v1/update`, body);
|
|
572
|
+
return data;
|
|
573
|
+
}
|
|
574
|
+
async locationsDeleteV1(id, body) {
|
|
575
|
+
const { data } = await this.client.delete(`/locations/v1/${id}`, body);
|
|
576
|
+
return data;
|
|
577
|
+
}
|
|
578
|
+
async locationsDeleteV2(id, body) {
|
|
579
|
+
const { data } = await this.client.delete(`/locations/v2/${id}`, body);
|
|
580
|
+
return data;
|
|
581
|
+
}
|
|
582
|
+
async locationsGetV1(id, body) {
|
|
583
|
+
const { data } = await this.client.get(`/locations/v1/${id}`, body);
|
|
584
|
+
return data;
|
|
585
|
+
}
|
|
586
|
+
async locationsGetV2(id, body) {
|
|
587
|
+
const { data } = await this.client.get(`/locations/v2/${id}`, body);
|
|
588
|
+
return data;
|
|
589
|
+
}
|
|
590
|
+
async locationsGetactiveV1(body) {
|
|
591
|
+
const { data } = await this.client.get(`/locations/v1/active`, body);
|
|
592
|
+
return data;
|
|
593
|
+
}
|
|
594
|
+
async locationsGetactiveV2(body) {
|
|
595
|
+
const { data } = await this.client.get(`/locations/v2/active`, body);
|
|
596
|
+
return data;
|
|
597
|
+
}
|
|
598
|
+
async locationsGetinactiveV2(body) {
|
|
599
|
+
const { data } = await this.client.get(`/locations/v2/inactive`, body);
|
|
600
|
+
return data;
|
|
601
|
+
}
|
|
602
|
+
async locationsGettypesV1(body) {
|
|
603
|
+
const { data } = await this.client.get(`/locations/v1/types`, body);
|
|
604
|
+
return data;
|
|
605
|
+
}
|
|
606
|
+
async locationsGettypesV2(body) {
|
|
607
|
+
const { data } = await this.client.get(`/locations/v2/types`, body);
|
|
608
|
+
return data;
|
|
609
|
+
}
|
|
610
|
+
async locationsUpdateV2(body) {
|
|
611
|
+
const { data } = await this.client.put(`/locations/v2`, body);
|
|
612
|
+
return data;
|
|
613
|
+
}
|
|
614
|
+
async packagesCreateV1(body) {
|
|
615
|
+
const { data } = await this.client.post(`/packages/v1/create`, body);
|
|
616
|
+
return data;
|
|
617
|
+
}
|
|
618
|
+
async packagesCreateV2(body) {
|
|
619
|
+
const { data } = await this.client.post(`/packages/v2`, body);
|
|
620
|
+
return data;
|
|
621
|
+
}
|
|
622
|
+
async packagesCreateadjustV1(body) {
|
|
623
|
+
const { data } = await this.client.post(`/packages/v1/adjust`, body);
|
|
624
|
+
return data;
|
|
625
|
+
}
|
|
626
|
+
async packagesCreateadjustV2(body) {
|
|
627
|
+
const { data } = await this.client.post(`/packages/v2/adjust`, body);
|
|
628
|
+
return data;
|
|
629
|
+
}
|
|
630
|
+
async packagesCreatechangeitemV1(body) {
|
|
631
|
+
const { data } = await this.client.post(`/packages/v1/change/item`, body);
|
|
632
|
+
return data;
|
|
633
|
+
}
|
|
634
|
+
async packagesCreatechangelocationV1(body) {
|
|
635
|
+
const { data } = await this.client.post(`/packages/v1/change/locations`, body);
|
|
636
|
+
return data;
|
|
637
|
+
}
|
|
638
|
+
async packagesCreatefinishV1(body) {
|
|
639
|
+
const { data } = await this.client.post(`/packages/v1/finish`, body);
|
|
640
|
+
return data;
|
|
641
|
+
}
|
|
642
|
+
async packagesCreateplantingsV1(body) {
|
|
643
|
+
const { data } = await this.client.post(`/packages/v1/create/plantings`, body);
|
|
644
|
+
return data;
|
|
645
|
+
}
|
|
646
|
+
async packagesCreateplantingsV2(body) {
|
|
647
|
+
const { data } = await this.client.post(`/packages/v2/plantings`, body);
|
|
648
|
+
return data;
|
|
649
|
+
}
|
|
650
|
+
async packagesCreateremediateV1(body) {
|
|
651
|
+
const { data } = await this.client.post(`/packages/v1/remediate`, body);
|
|
652
|
+
return data;
|
|
653
|
+
}
|
|
654
|
+
async packagesCreatetestingV1(body) {
|
|
655
|
+
const { data } = await this.client.post(`/packages/v1/create/testing`, body);
|
|
656
|
+
return data;
|
|
657
|
+
}
|
|
658
|
+
async packagesCreatetestingV2(body) {
|
|
659
|
+
const { data } = await this.client.post(`/packages/v2/testing`, body);
|
|
660
|
+
return data;
|
|
661
|
+
}
|
|
662
|
+
async packagesCreateunfinishV1(body) {
|
|
663
|
+
const { data } = await this.client.post(`/packages/v1/unfinish`, body);
|
|
664
|
+
return data;
|
|
665
|
+
}
|
|
666
|
+
async packagesDeleteV2(id, body) {
|
|
667
|
+
const { data } = await this.client.delete(`/packages/v2/${id}`, body);
|
|
668
|
+
return data;
|
|
669
|
+
}
|
|
670
|
+
async packagesGetV1(id, body) {
|
|
671
|
+
const { data } = await this.client.get(`/packages/v1/${id}`, body);
|
|
672
|
+
return data;
|
|
673
|
+
}
|
|
674
|
+
async packagesGetV2(id, body) {
|
|
675
|
+
const { data } = await this.client.get(`/packages/v2/${id}`, body);
|
|
676
|
+
return data;
|
|
677
|
+
}
|
|
678
|
+
async packagesGetactiveV1(body) {
|
|
679
|
+
const { data } = await this.client.get(`/packages/v1/active`, body);
|
|
680
|
+
return data;
|
|
681
|
+
}
|
|
682
|
+
async packagesGetactiveV2(body) {
|
|
683
|
+
const { data } = await this.client.get(`/packages/v2/active`, body);
|
|
684
|
+
return data;
|
|
685
|
+
}
|
|
686
|
+
async packagesGetadjustreasonsV1(body) {
|
|
687
|
+
const { data } = await this.client.get(`/packages/v1/adjust/reasons`, body);
|
|
688
|
+
return data;
|
|
689
|
+
}
|
|
690
|
+
async packagesGetadjustreasonsV2(body) {
|
|
691
|
+
const { data } = await this.client.get(`/packages/v2/adjust/reasons`, body);
|
|
692
|
+
return data;
|
|
693
|
+
}
|
|
694
|
+
async packagesGetbylabelV1(label, body) {
|
|
695
|
+
const { data } = await this.client.get(`/packages/v1/${label}`, body);
|
|
696
|
+
return data;
|
|
697
|
+
}
|
|
698
|
+
async packagesGetbylabelV2(label, body) {
|
|
699
|
+
const { data } = await this.client.get(`/packages/v2/${label}`, body);
|
|
700
|
+
return data;
|
|
701
|
+
}
|
|
702
|
+
async packagesGetinactiveV1(body) {
|
|
703
|
+
const { data } = await this.client.get(`/packages/v1/inactive`, body);
|
|
704
|
+
return data;
|
|
705
|
+
}
|
|
706
|
+
async packagesGetinactiveV2(body) {
|
|
707
|
+
const { data } = await this.client.get(`/packages/v2/inactive`, body);
|
|
708
|
+
return data;
|
|
709
|
+
}
|
|
710
|
+
async packagesGetintransitV2(body) {
|
|
711
|
+
const { data } = await this.client.get(`/packages/v2/intransit`, body);
|
|
712
|
+
return data;
|
|
713
|
+
}
|
|
714
|
+
async packagesGetlabsamplesV2(body) {
|
|
715
|
+
const { data } = await this.client.get(`/packages/v2/labsamples`, body);
|
|
716
|
+
return data;
|
|
717
|
+
}
|
|
718
|
+
async packagesGetonholdV1(body) {
|
|
719
|
+
const { data } = await this.client.get(`/packages/v1/onhold`, body);
|
|
720
|
+
return data;
|
|
721
|
+
}
|
|
722
|
+
async packagesGetonholdV2(body) {
|
|
723
|
+
const { data } = await this.client.get(`/packages/v2/onhold`, body);
|
|
724
|
+
return data;
|
|
725
|
+
}
|
|
726
|
+
async packagesGetsourceharvestV2(id, body) {
|
|
727
|
+
const { data } = await this.client.get(`/packages/v2/${id}/source/harvests`, body);
|
|
728
|
+
return data;
|
|
729
|
+
}
|
|
730
|
+
async packagesGettransferredV2(body) {
|
|
731
|
+
const { data } = await this.client.get(`/packages/v2/transferred`, body);
|
|
732
|
+
return data;
|
|
733
|
+
}
|
|
734
|
+
async packagesGettypesV1(body) {
|
|
735
|
+
const { data } = await this.client.get(`/packages/v1/types`, body);
|
|
736
|
+
return data;
|
|
737
|
+
}
|
|
738
|
+
async packagesGettypesV2(body) {
|
|
739
|
+
const { data } = await this.client.get(`/packages/v2/types`, body);
|
|
740
|
+
return data;
|
|
741
|
+
}
|
|
742
|
+
async packagesUpdateadjustV2(body) {
|
|
743
|
+
const { data } = await this.client.put(`/packages/v2/adjust`, body);
|
|
744
|
+
return data;
|
|
745
|
+
}
|
|
746
|
+
async packagesUpdatechangenoteV1(body) {
|
|
747
|
+
const { data } = await this.client.put(`/packages/v1/change/note`, body);
|
|
748
|
+
return data;
|
|
749
|
+
}
|
|
750
|
+
async packagesUpdatedecontaminateV2(body) {
|
|
751
|
+
const { data } = await this.client.put(`/packages/v2/decontaminate`, body);
|
|
752
|
+
return data;
|
|
753
|
+
}
|
|
754
|
+
async packagesUpdatedonationflagV2(body) {
|
|
755
|
+
const { data } = await this.client.put(`/packages/v2/donation/flag`, body);
|
|
756
|
+
return data;
|
|
757
|
+
}
|
|
758
|
+
async packagesUpdatedonationunflagV2(body) {
|
|
759
|
+
const { data } = await this.client.put(`/packages/v2/donation/unflag`, body);
|
|
760
|
+
return data;
|
|
761
|
+
}
|
|
762
|
+
async packagesUpdateexternalidV2(body) {
|
|
763
|
+
const { data } = await this.client.put(`/packages/v2/externalid`, body);
|
|
764
|
+
return data;
|
|
765
|
+
}
|
|
766
|
+
async packagesUpdatefinishV2(body) {
|
|
767
|
+
const { data } = await this.client.put(`/packages/v2/finish`, body);
|
|
768
|
+
return data;
|
|
769
|
+
}
|
|
770
|
+
async packagesUpdateitemV2(body) {
|
|
771
|
+
const { data } = await this.client.put(`/packages/v2/item`, body);
|
|
772
|
+
return data;
|
|
773
|
+
}
|
|
774
|
+
async packagesUpdatelabtestrequiredV2(body) {
|
|
775
|
+
const { data } = await this.client.put(`/packages/v2/labtests/required`, body);
|
|
776
|
+
return data;
|
|
777
|
+
}
|
|
778
|
+
async packagesUpdatelocationV2(body) {
|
|
779
|
+
const { data } = await this.client.put(`/packages/v2/location`, body);
|
|
780
|
+
return data;
|
|
781
|
+
}
|
|
782
|
+
async packagesUpdatenoteV2(body) {
|
|
783
|
+
const { data } = await this.client.put(`/packages/v2/note`, body);
|
|
784
|
+
return data;
|
|
785
|
+
}
|
|
786
|
+
async packagesUpdateremediateV2(body) {
|
|
787
|
+
const { data } = await this.client.put(`/packages/v2/remediate`, body);
|
|
788
|
+
return data;
|
|
789
|
+
}
|
|
790
|
+
async packagesUpdatetradesampleflagV2(body) {
|
|
791
|
+
const { data } = await this.client.put(`/packages/v2/tradesample/flag`, body);
|
|
792
|
+
return data;
|
|
793
|
+
}
|
|
794
|
+
async packagesUpdatetradesampleunflagV2(body) {
|
|
795
|
+
const { data } = await this.client.put(`/packages/v2/tradesample/unflag`, body);
|
|
796
|
+
return data;
|
|
797
|
+
}
|
|
798
|
+
async packagesUpdateunfinishV2(body) {
|
|
799
|
+
const { data } = await this.client.put(`/packages/v2/unfinish`, body);
|
|
800
|
+
return data;
|
|
801
|
+
}
|
|
802
|
+
async packagesUpdateusebydateV2(body) {
|
|
803
|
+
const { data } = await this.client.put(`/packages/v2/usebydate`, body);
|
|
804
|
+
return data;
|
|
805
|
+
}
|
|
806
|
+
async sandboxCreateintegratorsetupV2(body) {
|
|
807
|
+
const { data } = await this.client.post(`/sandbox/v2/integrator/setup`, body);
|
|
808
|
+
return data;
|
|
809
|
+
}
|
|
810
|
+
async transportersCreatedriverV2(body) {
|
|
811
|
+
const { data } = await this.client.post(`/transporters/v2/drivers`, body);
|
|
812
|
+
return data;
|
|
813
|
+
}
|
|
814
|
+
async transportersCreatevehicleV2(body) {
|
|
815
|
+
const { data } = await this.client.post(`/transporters/v2/vehicles`, body);
|
|
816
|
+
return data;
|
|
817
|
+
}
|
|
818
|
+
async transportersDeletedriverV2(id, body) {
|
|
819
|
+
const { data } = await this.client.delete(`/transporters/v2/drivers/${id}`, body);
|
|
820
|
+
return data;
|
|
821
|
+
}
|
|
822
|
+
async transportersDeletevehicleV2(id, body) {
|
|
823
|
+
const { data } = await this.client.delete(`/transporters/v2/vehicles/${id}`, body);
|
|
824
|
+
return data;
|
|
825
|
+
}
|
|
826
|
+
async transportersGetdriverV2(id, body) {
|
|
827
|
+
const { data } = await this.client.get(`/transporters/v2/drivers/${id}`, body);
|
|
828
|
+
return data;
|
|
829
|
+
}
|
|
830
|
+
async transportersGetdriversV2(body) {
|
|
831
|
+
const { data } = await this.client.get(`/transporters/v2/drivers`, body);
|
|
832
|
+
return data;
|
|
833
|
+
}
|
|
834
|
+
async transportersGetvehicleV2(id, body) {
|
|
835
|
+
const { data } = await this.client.get(`/transporters/v2/vehicles/${id}`, body);
|
|
836
|
+
return data;
|
|
837
|
+
}
|
|
838
|
+
async transportersGetvehiclesV2(body) {
|
|
839
|
+
const { data } = await this.client.get(`/transporters/v2/vehicles`, body);
|
|
840
|
+
return data;
|
|
841
|
+
}
|
|
842
|
+
async transportersUpdatedriverV2(body) {
|
|
843
|
+
const { data } = await this.client.put(`/transporters/v2/drivers`, body);
|
|
844
|
+
return data;
|
|
845
|
+
}
|
|
846
|
+
async transportersUpdatevehicleV2(body) {
|
|
847
|
+
const { data } = await this.client.put(`/transporters/v2/vehicles`, body);
|
|
848
|
+
return data;
|
|
849
|
+
}
|
|
850
|
+
async patientsCreateV2(body) {
|
|
851
|
+
const { data } = await this.client.post(`/patients/v2`, body);
|
|
852
|
+
return data;
|
|
853
|
+
}
|
|
854
|
+
async patientsCreateaddV1(body) {
|
|
855
|
+
const { data } = await this.client.post(`/patients/v1/add`, body);
|
|
856
|
+
return data;
|
|
857
|
+
}
|
|
858
|
+
async patientsCreateupdateV1(body) {
|
|
859
|
+
const { data } = await this.client.post(`/patients/v1/update`, body);
|
|
860
|
+
return data;
|
|
861
|
+
}
|
|
862
|
+
async patientsDeleteV1(id, body) {
|
|
863
|
+
const { data } = await this.client.delete(`/patients/v1/${id}`, body);
|
|
864
|
+
return data;
|
|
865
|
+
}
|
|
866
|
+
async patientsDeleteV2(id, body) {
|
|
867
|
+
const { data } = await this.client.delete(`/patients/v2/${id}`, body);
|
|
868
|
+
return data;
|
|
869
|
+
}
|
|
870
|
+
async patientsGetV1(id, body) {
|
|
871
|
+
const { data } = await this.client.get(`/patients/v1/${id}`, body);
|
|
872
|
+
return data;
|
|
873
|
+
}
|
|
874
|
+
async patientsGetV2(id, body) {
|
|
875
|
+
const { data } = await this.client.get(`/patients/v2/${id}`, body);
|
|
876
|
+
return data;
|
|
877
|
+
}
|
|
878
|
+
async patientsGetactiveV1(body) {
|
|
879
|
+
const { data } = await this.client.get(`/patients/v1/active`, body);
|
|
880
|
+
return data;
|
|
881
|
+
}
|
|
882
|
+
async patientsGetactiveV2(body) {
|
|
883
|
+
const { data } = await this.client.get(`/patients/v2/active`, body);
|
|
884
|
+
return data;
|
|
885
|
+
}
|
|
886
|
+
async patientsUpdateV2(body) {
|
|
887
|
+
const { data } = await this.client.put(`/patients/v2`, body);
|
|
888
|
+
return data;
|
|
889
|
+
}
|
|
890
|
+
async processingJobsCreateadjustV1(body) {
|
|
891
|
+
const { data } = await this.client.post(`/processing/v1/adjust`, body);
|
|
892
|
+
return data;
|
|
893
|
+
}
|
|
894
|
+
async processingJobsCreateadjustV2(body) {
|
|
895
|
+
const { data } = await this.client.post(`/processing/v2/adjust`, body);
|
|
896
|
+
return data;
|
|
897
|
+
}
|
|
898
|
+
async processingJobsCreatejobtypesV1(body) {
|
|
899
|
+
const { data } = await this.client.post(`/processing/v1/jobtypes`, body);
|
|
900
|
+
return data;
|
|
901
|
+
}
|
|
902
|
+
async processingJobsCreatejobtypesV2(body) {
|
|
903
|
+
const { data } = await this.client.post(`/processing/v2/jobtypes`, body);
|
|
904
|
+
return data;
|
|
905
|
+
}
|
|
906
|
+
async processingJobsCreatestartV1(body) {
|
|
907
|
+
const { data } = await this.client.post(`/processing/v1/start`, body);
|
|
908
|
+
return data;
|
|
909
|
+
}
|
|
910
|
+
async processingJobsCreatestartV2(body) {
|
|
911
|
+
const { data } = await this.client.post(`/processing/v2/start`, body);
|
|
912
|
+
return data;
|
|
913
|
+
}
|
|
914
|
+
async processingJobsCreatepackagesV1(body) {
|
|
915
|
+
const { data } = await this.client.post(`/processing/v1/createpackages`, body);
|
|
916
|
+
return data;
|
|
917
|
+
}
|
|
918
|
+
async processingJobsCreatepackagesV2(body) {
|
|
919
|
+
const { data } = await this.client.post(`/processing/v2/createpackages`, body);
|
|
920
|
+
return data;
|
|
921
|
+
}
|
|
922
|
+
async processingJobsDeleteV1(id, body) {
|
|
923
|
+
const { data } = await this.client.delete(`/processing/v1/${id}`, body);
|
|
924
|
+
return data;
|
|
925
|
+
}
|
|
926
|
+
async processingJobsDeleteV2(id, body) {
|
|
927
|
+
const { data } = await this.client.delete(`/processing/v2/${id}`, body);
|
|
928
|
+
return data;
|
|
929
|
+
}
|
|
930
|
+
async processingJobsDeletejobtypesV1(id, body) {
|
|
931
|
+
const { data } = await this.client.delete(`/processing/v1/jobtypes/${id}`, body);
|
|
932
|
+
return data;
|
|
933
|
+
}
|
|
934
|
+
async processingJobsDeletejobtypesV2(id, body) {
|
|
935
|
+
const { data } = await this.client.delete(`/processing/v2/jobtypes/${id}`, body);
|
|
936
|
+
return data;
|
|
937
|
+
}
|
|
938
|
+
async processingJobsGetV1(id, body) {
|
|
939
|
+
const { data } = await this.client.get(`/processing/v1/${id}`, body);
|
|
940
|
+
return data;
|
|
941
|
+
}
|
|
942
|
+
async processingJobsGetV2(id, body) {
|
|
943
|
+
const { data } = await this.client.get(`/processing/v2/${id}`, body);
|
|
944
|
+
return data;
|
|
945
|
+
}
|
|
946
|
+
async processingJobsGetactiveV1(body) {
|
|
947
|
+
const { data } = await this.client.get(`/processing/v1/active`, body);
|
|
948
|
+
return data;
|
|
949
|
+
}
|
|
950
|
+
async processingJobsGetactiveV2(body) {
|
|
951
|
+
const { data } = await this.client.get(`/processing/v2/active`, body);
|
|
952
|
+
return data;
|
|
953
|
+
}
|
|
954
|
+
async processingJobsGetinactiveV1(body) {
|
|
955
|
+
const { data } = await this.client.get(`/processing/v1/inactive`, body);
|
|
956
|
+
return data;
|
|
957
|
+
}
|
|
958
|
+
async processingJobsGetinactiveV2(body) {
|
|
959
|
+
const { data } = await this.client.get(`/processing/v2/inactive`, body);
|
|
960
|
+
return data;
|
|
961
|
+
}
|
|
962
|
+
async processingJobsGetjobtypesactiveV1(body) {
|
|
963
|
+
const { data } = await this.client.get(`/processing/v1/jobtypes/active`, body);
|
|
964
|
+
return data;
|
|
965
|
+
}
|
|
966
|
+
async processingJobsGetjobtypesactiveV2(body) {
|
|
967
|
+
const { data } = await this.client.get(`/processing/v2/jobtypes/active`, body);
|
|
968
|
+
return data;
|
|
969
|
+
}
|
|
970
|
+
async processingJobsGetjobtypesattributesV1(body) {
|
|
971
|
+
const { data } = await this.client.get(`/processing/v1/jobtypes/attributes`, body);
|
|
972
|
+
return data;
|
|
973
|
+
}
|
|
974
|
+
async processingJobsGetjobtypesattributesV2(body) {
|
|
975
|
+
const { data } = await this.client.get(`/processing/v2/jobtypes/attributes`, body);
|
|
976
|
+
return data;
|
|
977
|
+
}
|
|
978
|
+
async processingJobsGetjobtypescategoriesV1(body) {
|
|
979
|
+
const { data } = await this.client.get(`/processing/v1/jobtypes/categories`, body);
|
|
980
|
+
return data;
|
|
981
|
+
}
|
|
982
|
+
async processingJobsGetjobtypescategoriesV2(body) {
|
|
983
|
+
const { data } = await this.client.get(`/processing/v2/jobtypes/categories`, body);
|
|
984
|
+
return data;
|
|
985
|
+
}
|
|
986
|
+
async processingJobsGetjobtypesinactiveV1(body) {
|
|
987
|
+
const { data } = await this.client.get(`/processing/v1/jobtypes/inactive`, body);
|
|
988
|
+
return data;
|
|
989
|
+
}
|
|
990
|
+
async processingJobsGetjobtypesinactiveV2(body) {
|
|
991
|
+
const { data } = await this.client.get(`/processing/v2/jobtypes/inactive`, body);
|
|
992
|
+
return data;
|
|
993
|
+
}
|
|
994
|
+
async processingJobsUpdatefinishV1(body) {
|
|
995
|
+
const { data } = await this.client.put(`/processing/v1/finish`, body);
|
|
996
|
+
return data;
|
|
997
|
+
}
|
|
998
|
+
async processingJobsUpdatefinishV2(body) {
|
|
999
|
+
const { data } = await this.client.put(`/processing/v2/finish`, body);
|
|
1000
|
+
return data;
|
|
1001
|
+
}
|
|
1002
|
+
async processingJobsUpdatejobtypesV1(body) {
|
|
1003
|
+
const { data } = await this.client.put(`/processing/v1/jobtypes`, body);
|
|
1004
|
+
return data;
|
|
1005
|
+
}
|
|
1006
|
+
async processingJobsUpdatejobtypesV2(body) {
|
|
1007
|
+
const { data } = await this.client.put(`/processing/v2/jobtypes`, body);
|
|
1008
|
+
return data;
|
|
1009
|
+
}
|
|
1010
|
+
async processingJobsUpdateunfinishV1(body) {
|
|
1011
|
+
const { data } = await this.client.put(`/processing/v1/unfinish`, body);
|
|
1012
|
+
return data;
|
|
1013
|
+
}
|
|
1014
|
+
async processingJobsUpdateunfinishV2(body) {
|
|
1015
|
+
const { data } = await this.client.put(`/processing/v2/unfinish`, body);
|
|
1016
|
+
return data;
|
|
1017
|
+
}
|
|
1018
|
+
async retailIdCreateassociateV2(body) {
|
|
1019
|
+
const { data } = await this.client.post(`/retailid/v2/associate`, body);
|
|
1020
|
+
return data;
|
|
1021
|
+
}
|
|
1022
|
+
async retailIdCreategenerateV2(body) {
|
|
1023
|
+
const { data } = await this.client.post(`/retailid/v2/generate`, body);
|
|
1024
|
+
return data;
|
|
1025
|
+
}
|
|
1026
|
+
async retailIdCreatemergeV2(body) {
|
|
1027
|
+
const { data } = await this.client.post(`/retailid/v2/merge`, body);
|
|
1028
|
+
return data;
|
|
1029
|
+
}
|
|
1030
|
+
async retailIdCreatepackageinfoV2(body) {
|
|
1031
|
+
const { data } = await this.client.post(`/retailid/v2/packages/info`, body);
|
|
1032
|
+
return data;
|
|
1033
|
+
}
|
|
1034
|
+
async retailIdGetreceivebylabelV2(label, body) {
|
|
1035
|
+
const { data } = await this.client.get(`/retailid/v2/receive/${label}`, body);
|
|
1036
|
+
return data;
|
|
1037
|
+
}
|
|
1038
|
+
async retailIdGetreceiveqrbyshortcodeV2(shortCode, body) {
|
|
1039
|
+
const { data } = await this.client.get(`/retailid/v2/receive/qr/${shortCode}`, body);
|
|
1040
|
+
return data;
|
|
1041
|
+
}
|
|
1042
|
+
async salesCreatedeliveryV1(body) {
|
|
1043
|
+
const { data } = await this.client.post(`/sales/v1/deliveries`, body);
|
|
1044
|
+
return data;
|
|
1045
|
+
}
|
|
1046
|
+
async salesCreatedeliveryV2(body) {
|
|
1047
|
+
const { data } = await this.client.post(`/sales/v2/deliveries`, body);
|
|
1048
|
+
return data;
|
|
1049
|
+
}
|
|
1050
|
+
async salesCreatedeliveryretailerV1(body) {
|
|
1051
|
+
const { data } = await this.client.post(`/sales/v1/deliveries/retailer`, body);
|
|
1052
|
+
return data;
|
|
1053
|
+
}
|
|
1054
|
+
async salesCreatedeliveryretailerV2(body) {
|
|
1055
|
+
const { data } = await this.client.post(`/sales/v2/deliveries/retailer`, body);
|
|
1056
|
+
return data;
|
|
1057
|
+
}
|
|
1058
|
+
async salesCreatedeliveryretailerdepartV1(body) {
|
|
1059
|
+
const { data } = await this.client.post(`/sales/v1/deliveries/retailer/depart`, body);
|
|
1060
|
+
return data;
|
|
1061
|
+
}
|
|
1062
|
+
async salesCreatedeliveryretailerdepartV2(body) {
|
|
1063
|
+
const { data } = await this.client.post(`/sales/v2/deliveries/retailer/depart`, body);
|
|
1064
|
+
return data;
|
|
1065
|
+
}
|
|
1066
|
+
async salesCreatedeliveryretailerendV1(body) {
|
|
1067
|
+
const { data } = await this.client.post(`/sales/v1/deliveries/retailer/end`, body);
|
|
1068
|
+
return data;
|
|
1069
|
+
}
|
|
1070
|
+
async salesCreatedeliveryretailerendV2(body) {
|
|
1071
|
+
const { data } = await this.client.post(`/sales/v2/deliveries/retailer/end`, body);
|
|
1072
|
+
return data;
|
|
1073
|
+
}
|
|
1074
|
+
async salesCreatedeliveryretailerrestockV1(body) {
|
|
1075
|
+
const { data } = await this.client.post(`/sales/v1/deliveries/retailer/restock`, body);
|
|
1076
|
+
return data;
|
|
1077
|
+
}
|
|
1078
|
+
async salesCreatedeliveryretailerrestockV2(body) {
|
|
1079
|
+
const { data } = await this.client.post(`/sales/v2/deliveries/retailer/restock`, body);
|
|
1080
|
+
return data;
|
|
1081
|
+
}
|
|
1082
|
+
async salesCreatedeliveryretailersaleV1(body) {
|
|
1083
|
+
const { data } = await this.client.post(`/sales/v1/deliveries/retailer/sale`, body);
|
|
1084
|
+
return data;
|
|
1085
|
+
}
|
|
1086
|
+
async salesCreatedeliveryretailersaleV2(body) {
|
|
1087
|
+
const { data } = await this.client.post(`/sales/v2/deliveries/retailer/sale`, body);
|
|
1088
|
+
return data;
|
|
1089
|
+
}
|
|
1090
|
+
async salesCreatereceiptV1(body) {
|
|
1091
|
+
const { data } = await this.client.post(`/sales/v1/receipts`, body);
|
|
1092
|
+
return data;
|
|
1093
|
+
}
|
|
1094
|
+
async salesCreatereceiptV2(body) {
|
|
1095
|
+
const { data } = await this.client.post(`/sales/v2/receipts`, body);
|
|
1096
|
+
return data;
|
|
1097
|
+
}
|
|
1098
|
+
async salesCreatetransactionbydateV1(date, body) {
|
|
1099
|
+
const { data } = await this.client.post(`/sales/v1/transactions/${date}`, body);
|
|
1100
|
+
return data;
|
|
1101
|
+
}
|
|
1102
|
+
async salesDeletedeliveryV1(id, body) {
|
|
1103
|
+
const { data } = await this.client.delete(`/sales/v1/deliveries/${id}`, body);
|
|
1104
|
+
return data;
|
|
1105
|
+
}
|
|
1106
|
+
async salesDeletedeliveryV2(id, body) {
|
|
1107
|
+
const { data } = await this.client.delete(`/sales/v2/deliveries/${id}`, body);
|
|
1108
|
+
return data;
|
|
1109
|
+
}
|
|
1110
|
+
async salesDeletedeliveryretailerV1(id, body) {
|
|
1111
|
+
const { data } = await this.client.delete(`/sales/v1/deliveries/retailer/${id}`, body);
|
|
1112
|
+
return data;
|
|
1113
|
+
}
|
|
1114
|
+
async salesDeletedeliveryretailerV2(id, body) {
|
|
1115
|
+
const { data } = await this.client.delete(`/sales/v2/deliveries/retailer/${id}`, body);
|
|
1116
|
+
return data;
|
|
1117
|
+
}
|
|
1118
|
+
async salesDeletereceiptV1(id, body) {
|
|
1119
|
+
const { data } = await this.client.delete(`/sales/v1/receipts/${id}`, body);
|
|
1120
|
+
return data;
|
|
1121
|
+
}
|
|
1122
|
+
async salesDeletereceiptV2(id, body) {
|
|
1123
|
+
const { data } = await this.client.delete(`/sales/v2/receipts/${id}`, body);
|
|
1124
|
+
return data;
|
|
1125
|
+
}
|
|
1126
|
+
async salesGetcountiesV1(body) {
|
|
1127
|
+
const { data } = await this.client.get(`/sales/v1/counties`, body);
|
|
1128
|
+
return data;
|
|
1129
|
+
}
|
|
1130
|
+
async salesGetcountiesV2(body) {
|
|
1131
|
+
const { data } = await this.client.get(`/sales/v2/counties`, body);
|
|
1132
|
+
return data;
|
|
1133
|
+
}
|
|
1134
|
+
async salesGetcustomertypesV1(body) {
|
|
1135
|
+
const { data } = await this.client.get(`/sales/v1/customertypes`, body);
|
|
1136
|
+
return data;
|
|
1137
|
+
}
|
|
1138
|
+
async salesGetcustomertypesV2(body) {
|
|
1139
|
+
const { data } = await this.client.get(`/sales/v2/customertypes`, body);
|
|
1140
|
+
return data;
|
|
1141
|
+
}
|
|
1142
|
+
async salesGetdeliveriesactiveV1(body) {
|
|
1143
|
+
const { data } = await this.client.get(`/sales/v1/deliveries/active`, body);
|
|
1144
|
+
return data;
|
|
1145
|
+
}
|
|
1146
|
+
async salesGetdeliveriesactiveV2(body) {
|
|
1147
|
+
const { data } = await this.client.get(`/sales/v2/deliveries/active`, body);
|
|
1148
|
+
return data;
|
|
1149
|
+
}
|
|
1150
|
+
async salesGetdeliveriesinactiveV1(body) {
|
|
1151
|
+
const { data } = await this.client.get(`/sales/v1/deliveries/inactive`, body);
|
|
1152
|
+
return data;
|
|
1153
|
+
}
|
|
1154
|
+
async salesGetdeliveriesinactiveV2(body) {
|
|
1155
|
+
const { data } = await this.client.get(`/sales/v2/deliveries/inactive`, body);
|
|
1156
|
+
return data;
|
|
1157
|
+
}
|
|
1158
|
+
async salesGetdeliveriesretaileractiveV1(body) {
|
|
1159
|
+
const { data } = await this.client.get(`/sales/v1/deliveries/retailer/active`, body);
|
|
1160
|
+
return data;
|
|
1161
|
+
}
|
|
1162
|
+
async salesGetdeliveriesretaileractiveV2(body) {
|
|
1163
|
+
const { data } = await this.client.get(`/sales/v2/deliveries/retailer/active`, body);
|
|
1164
|
+
return data;
|
|
1165
|
+
}
|
|
1166
|
+
async salesGetdeliveriesretailerinactiveV1(body) {
|
|
1167
|
+
const { data } = await this.client.get(`/sales/v1/deliveries/retailer/inactive`, body);
|
|
1168
|
+
return data;
|
|
1169
|
+
}
|
|
1170
|
+
async salesGetdeliveriesretailerinactiveV2(body) {
|
|
1171
|
+
const { data } = await this.client.get(`/sales/v2/deliveries/retailer/inactive`, body);
|
|
1172
|
+
return data;
|
|
1173
|
+
}
|
|
1174
|
+
async salesGetdeliveriesreturnreasonsV1(body) {
|
|
1175
|
+
const { data } = await this.client.get(`/sales/v1/deliveries/returnreasons`, body);
|
|
1176
|
+
return data;
|
|
1177
|
+
}
|
|
1178
|
+
async salesGetdeliveriesreturnreasonsV2(body) {
|
|
1179
|
+
const { data } = await this.client.get(`/sales/v2/deliveries/returnreasons`, body);
|
|
1180
|
+
return data;
|
|
1181
|
+
}
|
|
1182
|
+
async salesGetdeliveryV1(id, body) {
|
|
1183
|
+
const { data } = await this.client.get(`/sales/v1/deliveries/${id}`, body);
|
|
1184
|
+
return data;
|
|
1185
|
+
}
|
|
1186
|
+
async salesGetdeliveryV2(id, body) {
|
|
1187
|
+
const { data } = await this.client.get(`/sales/v2/deliveries/${id}`, body);
|
|
1188
|
+
return data;
|
|
1189
|
+
}
|
|
1190
|
+
async salesGetdeliveryretailerV1(id, body) {
|
|
1191
|
+
const { data } = await this.client.get(`/sales/v1/deliveries/retailer/${id}`, body);
|
|
1192
|
+
return data;
|
|
1193
|
+
}
|
|
1194
|
+
async salesGetdeliveryretailerV2(id, body) {
|
|
1195
|
+
const { data } = await this.client.get(`/sales/v2/deliveries/retailer/${id}`, body);
|
|
1196
|
+
return data;
|
|
1197
|
+
}
|
|
1198
|
+
async salesGetpatientregistrationslocationsV1(body) {
|
|
1199
|
+
const { data } = await this.client.get(`/sales/v1/patientregistration/locations`, body);
|
|
1200
|
+
return data;
|
|
1201
|
+
}
|
|
1202
|
+
async salesGetpatientregistrationslocationsV2(body) {
|
|
1203
|
+
const { data } = await this.client.get(`/sales/v2/patientregistration/locations`, body);
|
|
1204
|
+
return data;
|
|
1205
|
+
}
|
|
1206
|
+
async salesGetpaymenttypesV1(body) {
|
|
1207
|
+
const { data } = await this.client.get(`/sales/v1/paymenttypes`, body);
|
|
1208
|
+
return data;
|
|
1209
|
+
}
|
|
1210
|
+
async salesGetpaymenttypesV2(body) {
|
|
1211
|
+
const { data } = await this.client.get(`/sales/v2/paymenttypes`, body);
|
|
1212
|
+
return data;
|
|
1213
|
+
}
|
|
1214
|
+
async salesGetreceiptV1(id, body) {
|
|
1215
|
+
const { data } = await this.client.get(`/sales/v1/receipts/${id}`, body);
|
|
1216
|
+
return data;
|
|
1217
|
+
}
|
|
1218
|
+
async salesGetreceiptV2(id, body) {
|
|
1219
|
+
const { data } = await this.client.get(`/sales/v2/receipts/${id}`, body);
|
|
1220
|
+
return data;
|
|
1221
|
+
}
|
|
1222
|
+
async salesGetreceiptsactiveV1(body) {
|
|
1223
|
+
const { data } = await this.client.get(`/sales/v1/receipts/active`, body);
|
|
1224
|
+
return data;
|
|
1225
|
+
}
|
|
1226
|
+
async salesGetreceiptsactiveV2(body) {
|
|
1227
|
+
const { data } = await this.client.get(`/sales/v2/receipts/active`, body);
|
|
1228
|
+
return data;
|
|
1229
|
+
}
|
|
1230
|
+
async salesGetreceiptsexternalbyexternalnumberV2(externalNumber, body) {
|
|
1231
|
+
const { data } = await this.client.get(`/sales/v2/receipts/external/${externalNumber}`, body);
|
|
1232
|
+
return data;
|
|
1233
|
+
}
|
|
1234
|
+
async salesGetreceiptsinactiveV1(body) {
|
|
1235
|
+
const { data } = await this.client.get(`/sales/v1/receipts/inactive`, body);
|
|
1236
|
+
return data;
|
|
1237
|
+
}
|
|
1238
|
+
async salesGetreceiptsinactiveV2(body) {
|
|
1239
|
+
const { data } = await this.client.get(`/sales/v2/receipts/inactive`, body);
|
|
1240
|
+
return data;
|
|
1241
|
+
}
|
|
1242
|
+
async salesGettransactionsV1(body) {
|
|
1243
|
+
const { data } = await this.client.get(`/sales/v1/transactions`, body);
|
|
1244
|
+
return data;
|
|
1245
|
+
}
|
|
1246
|
+
async salesGettransactionsbysalesdatestartandsalesdateendV1(salesDateStart, salesDateEnd, body) {
|
|
1247
|
+
const { data } = await this.client.get(`/sales/v1/transactions/${salesDateStart}/${salesDateEnd}`, body);
|
|
1248
|
+
return data;
|
|
1249
|
+
}
|
|
1250
|
+
async salesUpdatedeliveryV1(body) {
|
|
1251
|
+
const { data } = await this.client.put(`/sales/v1/deliveries`, body);
|
|
1252
|
+
return data;
|
|
1253
|
+
}
|
|
1254
|
+
async salesUpdatedeliveryV2(body) {
|
|
1255
|
+
const { data } = await this.client.put(`/sales/v2/deliveries`, body);
|
|
1256
|
+
return data;
|
|
1257
|
+
}
|
|
1258
|
+
async salesUpdatedeliverycompleteV1(body) {
|
|
1259
|
+
const { data } = await this.client.put(`/sales/v1/deliveries/complete`, body);
|
|
1260
|
+
return data;
|
|
1261
|
+
}
|
|
1262
|
+
async salesUpdatedeliverycompleteV2(body) {
|
|
1263
|
+
const { data } = await this.client.put(`/sales/v2/deliveries/complete`, body);
|
|
1264
|
+
return data;
|
|
1265
|
+
}
|
|
1266
|
+
async salesUpdatedeliveryhubV1(body) {
|
|
1267
|
+
const { data } = await this.client.put(`/sales/v1/deliveries/hub`, body);
|
|
1268
|
+
return data;
|
|
1269
|
+
}
|
|
1270
|
+
async salesUpdatedeliveryhubV2(body) {
|
|
1271
|
+
const { data } = await this.client.put(`/sales/v2/deliveries/hub`, body);
|
|
1272
|
+
return data;
|
|
1273
|
+
}
|
|
1274
|
+
async salesUpdatedeliveryhubacceptV1(body) {
|
|
1275
|
+
const { data } = await this.client.put(`/sales/v1/deliveries/hub/accept`, body);
|
|
1276
|
+
return data;
|
|
1277
|
+
}
|
|
1278
|
+
async salesUpdatedeliveryhubacceptV2(body) {
|
|
1279
|
+
const { data } = await this.client.put(`/sales/v2/deliveries/hub/accept`, body);
|
|
1280
|
+
return data;
|
|
1281
|
+
}
|
|
1282
|
+
async salesUpdatedeliveryhubdepartV1(body) {
|
|
1283
|
+
const { data } = await this.client.put(`/sales/v1/deliveries/hub/depart`, body);
|
|
1284
|
+
return data;
|
|
1285
|
+
}
|
|
1286
|
+
async salesUpdatedeliveryhubdepartV2(body) {
|
|
1287
|
+
const { data } = await this.client.put(`/sales/v2/deliveries/hub/depart`, body);
|
|
1288
|
+
return data;
|
|
1289
|
+
}
|
|
1290
|
+
async salesUpdatedeliveryhubverifyidV1(body) {
|
|
1291
|
+
const { data } = await this.client.put(`/sales/v1/deliveries/hub/verifyID`, body);
|
|
1292
|
+
return data;
|
|
1293
|
+
}
|
|
1294
|
+
async salesUpdatedeliveryhubverifyidV2(body) {
|
|
1295
|
+
const { data } = await this.client.put(`/sales/v2/deliveries/hub/verifyID`, body);
|
|
1296
|
+
return data;
|
|
1297
|
+
}
|
|
1298
|
+
async salesUpdatedeliveryretailerV1(body) {
|
|
1299
|
+
const { data } = await this.client.put(`/sales/v1/deliveries/retailer`, body);
|
|
1300
|
+
return data;
|
|
1301
|
+
}
|
|
1302
|
+
async salesUpdatedeliveryretailerV2(body) {
|
|
1303
|
+
const { data } = await this.client.put(`/sales/v2/deliveries/retailer`, body);
|
|
1304
|
+
return data;
|
|
1305
|
+
}
|
|
1306
|
+
async salesUpdatereceiptV1(body) {
|
|
1307
|
+
const { data } = await this.client.put(`/sales/v1/receipts`, body);
|
|
1308
|
+
return data;
|
|
1309
|
+
}
|
|
1310
|
+
async salesUpdatereceiptV2(body) {
|
|
1311
|
+
const { data } = await this.client.put(`/sales/v2/receipts`, body);
|
|
1312
|
+
return data;
|
|
1313
|
+
}
|
|
1314
|
+
async salesUpdatereceiptfinalizeV2(body) {
|
|
1315
|
+
const { data } = await this.client.put(`/sales/v2/receipts/finalize`, body);
|
|
1316
|
+
return data;
|
|
1317
|
+
}
|
|
1318
|
+
async salesUpdatereceiptunfinalizeV2(body) {
|
|
1319
|
+
const { data } = await this.client.put(`/sales/v2/receipts/unfinalize`, body);
|
|
1320
|
+
return data;
|
|
1321
|
+
}
|
|
1322
|
+
async salesUpdatetransactionbydateV1(date, body) {
|
|
1323
|
+
const { data } = await this.client.put(`/sales/v1/transactions/${date}`, body);
|
|
1324
|
+
return data;
|
|
1325
|
+
}
|
|
1326
|
+
async tagsGetpackageavailableV2(body) {
|
|
1327
|
+
const { data } = await this.client.get(`/tags/v2/package/available`, body);
|
|
1328
|
+
return data;
|
|
1329
|
+
}
|
|
1330
|
+
async tagsGetplantavailableV2(body) {
|
|
1331
|
+
const { data } = await this.client.get(`/tags/v2/plant/available`, body);
|
|
1332
|
+
return data;
|
|
1333
|
+
}
|
|
1334
|
+
async tagsGetstagedV2(body) {
|
|
1335
|
+
const { data } = await this.client.get(`/tags/v2/staged`, body);
|
|
1336
|
+
return data;
|
|
1337
|
+
}
|
|
1338
|
+
async caregiversStatusGetbycaregiverlicensenumberV1(caregiverLicenseNumber, body) {
|
|
1339
|
+
const { data } = await this.client.get(`/caregivers/v1/status/${caregiverLicenseNumber}`, body);
|
|
1340
|
+
return data;
|
|
1341
|
+
}
|
|
1342
|
+
async caregiversStatusGetbycaregiverlicensenumberV2(caregiverLicenseNumber, body) {
|
|
1343
|
+
const { data } = await this.client.get(`/caregivers/v2/status/${caregiverLicenseNumber}`, body);
|
|
1344
|
+
return data;
|
|
1345
|
+
}
|
|
1346
|
+
async employeesGetallV1(body) {
|
|
1347
|
+
const { data } = await this.client.get(`/employees/v1`, body);
|
|
1348
|
+
return data;
|
|
1349
|
+
}
|
|
1350
|
+
async employeesGetallV2(body) {
|
|
1351
|
+
const { data } = await this.client.get(`/employees/v2`, body);
|
|
1352
|
+
return data;
|
|
1353
|
+
}
|
|
1354
|
+
async employeesGetpermissionsV2(body) {
|
|
1355
|
+
const { data } = await this.client.get(`/employees/v2/permissions`, body);
|
|
1356
|
+
return data;
|
|
1357
|
+
}
|
|
1358
|
+
async patientCheckInsCreateV1(body) {
|
|
1359
|
+
const { data } = await this.client.post(`/patient-checkins/v1`, body);
|
|
1360
|
+
return data;
|
|
1361
|
+
}
|
|
1362
|
+
async patientCheckInsCreateV2(body) {
|
|
1363
|
+
const { data } = await this.client.post(`/patient-checkins/v2`, body);
|
|
1364
|
+
return data;
|
|
1365
|
+
}
|
|
1366
|
+
async patientCheckInsDeleteV1(id, body) {
|
|
1367
|
+
const { data } = await this.client.delete(`/patient-checkins/v1/${id}`, body);
|
|
1368
|
+
return data;
|
|
1369
|
+
}
|
|
1370
|
+
async patientCheckInsDeleteV2(id, body) {
|
|
1371
|
+
const { data } = await this.client.delete(`/patient-checkins/v2/${id}`, body);
|
|
1372
|
+
return data;
|
|
1373
|
+
}
|
|
1374
|
+
async patientCheckInsGetallV1(body) {
|
|
1375
|
+
const { data } = await this.client.get(`/patient-checkins/v1`, body);
|
|
1376
|
+
return data;
|
|
1377
|
+
}
|
|
1378
|
+
async patientCheckInsGetallV2(body) {
|
|
1379
|
+
const { data } = await this.client.get(`/patient-checkins/v2`, body);
|
|
1380
|
+
return data;
|
|
1381
|
+
}
|
|
1382
|
+
async patientCheckInsGetlocationsV1(body) {
|
|
1383
|
+
const { data } = await this.client.get(`/patient-checkins/v1/locations`, body);
|
|
1384
|
+
return data;
|
|
1385
|
+
}
|
|
1386
|
+
async patientCheckInsGetlocationsV2(body) {
|
|
1387
|
+
const { data } = await this.client.get(`/patient-checkins/v2/locations`, body);
|
|
1388
|
+
return data;
|
|
1389
|
+
}
|
|
1390
|
+
async patientCheckInsUpdateV1(body) {
|
|
1391
|
+
const { data } = await this.client.put(`/patient-checkins/v1`, body);
|
|
1392
|
+
return data;
|
|
1393
|
+
}
|
|
1394
|
+
async patientCheckInsUpdateV2(body) {
|
|
1395
|
+
const { data } = await this.client.put(`/patient-checkins/v2`, body);
|
|
1396
|
+
return data;
|
|
1397
|
+
}
|
|
1398
|
+
async plantBatchesCreateadditivesV1(body) {
|
|
1399
|
+
const { data } = await this.client.post(`/plantbatches/v1/additives`, body);
|
|
1400
|
+
return data;
|
|
1401
|
+
}
|
|
1402
|
+
async plantBatchesCreateadditivesV2(body) {
|
|
1403
|
+
const { data } = await this.client.post(`/plantbatches/v2/additives`, body);
|
|
1404
|
+
return data;
|
|
1405
|
+
}
|
|
1406
|
+
async plantBatchesCreateadditivesusingtemplateV2(body) {
|
|
1407
|
+
const { data } = await this.client.post(`/plantbatches/v2/additives/usingtemplate`, body);
|
|
1408
|
+
return data;
|
|
1409
|
+
}
|
|
1410
|
+
async plantBatchesCreateadjustV1(body) {
|
|
1411
|
+
const { data } = await this.client.post(`/plantbatches/v1/adjust`, body);
|
|
1412
|
+
return data;
|
|
1413
|
+
}
|
|
1414
|
+
async plantBatchesCreateadjustV2(body) {
|
|
1415
|
+
const { data } = await this.client.post(`/plantbatches/v2/adjust`, body);
|
|
1416
|
+
return data;
|
|
1417
|
+
}
|
|
1418
|
+
async plantBatchesCreatechangegrowthphaseV1(body) {
|
|
1419
|
+
const { data } = await this.client.post(`/plantbatches/v1/changegrowthphase`, body);
|
|
1420
|
+
return data;
|
|
1421
|
+
}
|
|
1422
|
+
async plantBatchesCreategrowthphaseV2(body) {
|
|
1423
|
+
const { data } = await this.client.post(`/plantbatches/v2/growthphase`, body);
|
|
1424
|
+
return data;
|
|
1425
|
+
}
|
|
1426
|
+
async plantBatchesCreatepackageV2(body) {
|
|
1427
|
+
const { data } = await this.client.post(`/plantbatches/v2/packages`, body);
|
|
1428
|
+
return data;
|
|
1429
|
+
}
|
|
1430
|
+
async plantBatchesCreatepackagefrommotherplantV1(body) {
|
|
1431
|
+
const { data } = await this.client.post(`/plantbatches/v1/create/packages/frommotherplant`, body);
|
|
1432
|
+
return data;
|
|
1433
|
+
}
|
|
1434
|
+
async plantBatchesCreatepackagefrommotherplantV2(body) {
|
|
1435
|
+
const { data } = await this.client.post(`/plantbatches/v2/packages/frommotherplant`, body);
|
|
1436
|
+
return data;
|
|
1437
|
+
}
|
|
1438
|
+
async plantBatchesCreateplantingsV2(body) {
|
|
1439
|
+
const { data } = await this.client.post(`/plantbatches/v2/plantings`, body);
|
|
1440
|
+
return data;
|
|
1441
|
+
}
|
|
1442
|
+
async plantBatchesCreatesplitV1(body) {
|
|
1443
|
+
const { data } = await this.client.post(`/plantbatches/v1/split`, body);
|
|
1444
|
+
return data;
|
|
1445
|
+
}
|
|
1446
|
+
async plantBatchesCreatesplitV2(body) {
|
|
1447
|
+
const { data } = await this.client.post(`/plantbatches/v2/split`, body);
|
|
1448
|
+
return data;
|
|
1449
|
+
}
|
|
1450
|
+
async plantBatchesCreatewasteV1(body) {
|
|
1451
|
+
const { data } = await this.client.post(`/plantbatches/v1/waste`, body);
|
|
1452
|
+
return data;
|
|
1453
|
+
}
|
|
1454
|
+
async plantBatchesCreatewasteV2(body) {
|
|
1455
|
+
const { data } = await this.client.post(`/plantbatches/v2/waste`, body);
|
|
1456
|
+
return data;
|
|
1457
|
+
}
|
|
1458
|
+
async plantBatchesCreatepackagesV1(body) {
|
|
1459
|
+
const { data } = await this.client.post(`/plantbatches/v1/createpackages`, body);
|
|
1460
|
+
return data;
|
|
1461
|
+
}
|
|
1462
|
+
async plantBatchesCreateplantingsV1(body) {
|
|
1463
|
+
const { data } = await this.client.post(`/plantbatches/v1/createplantings`, body);
|
|
1464
|
+
return data;
|
|
1465
|
+
}
|
|
1466
|
+
async plantBatchesDeleteV1(body) {
|
|
1467
|
+
const { data } = await this.client.delete(`/plantbatches/v1`, body);
|
|
1468
|
+
return data;
|
|
1469
|
+
}
|
|
1470
|
+
async plantBatchesDeleteV2(body) {
|
|
1471
|
+
const { data } = await this.client.delete(`/plantbatches/v2`, body);
|
|
1472
|
+
return data;
|
|
1473
|
+
}
|
|
1474
|
+
async plantBatchesGetV1(id, body) {
|
|
1475
|
+
const { data } = await this.client.get(`/plantbatches/v1/${id}`, body);
|
|
1476
|
+
return data;
|
|
1477
|
+
}
|
|
1478
|
+
async plantBatchesGetV2(id, body) {
|
|
1479
|
+
const { data } = await this.client.get(`/plantbatches/v2/${id}`, body);
|
|
1480
|
+
return data;
|
|
1481
|
+
}
|
|
1482
|
+
async plantBatchesGetactiveV1(body) {
|
|
1483
|
+
const { data } = await this.client.get(`/plantbatches/v1/active`, body);
|
|
1484
|
+
return data;
|
|
1485
|
+
}
|
|
1486
|
+
async plantBatchesGetactiveV2(body) {
|
|
1487
|
+
const { data } = await this.client.get(`/plantbatches/v2/active`, body);
|
|
1488
|
+
return data;
|
|
1489
|
+
}
|
|
1490
|
+
async plantBatchesGetinactiveV1(body) {
|
|
1491
|
+
const { data } = await this.client.get(`/plantbatches/v1/inactive`, body);
|
|
1492
|
+
return data;
|
|
1493
|
+
}
|
|
1494
|
+
async plantBatchesGetinactiveV2(body) {
|
|
1495
|
+
const { data } = await this.client.get(`/plantbatches/v2/inactive`, body);
|
|
1496
|
+
return data;
|
|
1497
|
+
}
|
|
1498
|
+
async plantBatchesGettypesV1(body) {
|
|
1499
|
+
const { data } = await this.client.get(`/plantbatches/v1/types`, body);
|
|
1500
|
+
return data;
|
|
1501
|
+
}
|
|
1502
|
+
async plantBatchesGettypesV2(body) {
|
|
1503
|
+
const { data } = await this.client.get(`/plantbatches/v2/types`, body);
|
|
1504
|
+
return data;
|
|
1505
|
+
}
|
|
1506
|
+
async plantBatchesGetwasteV2(body) {
|
|
1507
|
+
const { data } = await this.client.get(`/plantbatches/v2/waste`, body);
|
|
1508
|
+
return data;
|
|
1509
|
+
}
|
|
1510
|
+
async plantBatchesGetwastereasonsV1(body) {
|
|
1511
|
+
const { data } = await this.client.get(`/plantbatches/v1/waste/reasons`, body);
|
|
1512
|
+
return data;
|
|
1513
|
+
}
|
|
1514
|
+
async plantBatchesGetwastereasonsV2(body) {
|
|
1515
|
+
const { data } = await this.client.get(`/plantbatches/v2/waste/reasons`, body);
|
|
1516
|
+
return data;
|
|
1517
|
+
}
|
|
1518
|
+
async plantBatchesUpdatelocationV2(body) {
|
|
1519
|
+
const { data } = await this.client.put(`/plantbatches/v2/location`, body);
|
|
1520
|
+
return data;
|
|
1521
|
+
}
|
|
1522
|
+
async plantBatchesUpdatemoveplantbatchesV1(body) {
|
|
1523
|
+
const { data } = await this.client.put(`/plantbatches/v1/moveplantbatches`, body);
|
|
1524
|
+
return data;
|
|
1525
|
+
}
|
|
1526
|
+
async plantBatchesUpdatenameV2(body) {
|
|
1527
|
+
const { data } = await this.client.put(`/plantbatches/v2/name`, body);
|
|
1528
|
+
return data;
|
|
1529
|
+
}
|
|
1530
|
+
async plantBatchesUpdatestrainV2(body) {
|
|
1531
|
+
const { data } = await this.client.put(`/plantbatches/v2/strain`, body);
|
|
1532
|
+
return data;
|
|
1533
|
+
}
|
|
1534
|
+
async plantBatchesUpdatetagV2(body) {
|
|
1535
|
+
const { data } = await this.client.put(`/plantbatches/v2/tag`, body);
|
|
1536
|
+
return data;
|
|
1537
|
+
}
|
|
1538
|
+
async plantsCreateadditivesV1(body) {
|
|
1539
|
+
const { data } = await this.client.post(`/plants/v1/additives`, body);
|
|
1540
|
+
return data;
|
|
1541
|
+
}
|
|
1542
|
+
async plantsCreateadditivesV2(body) {
|
|
1543
|
+
const { data } = await this.client.post(`/plants/v2/additives`, body);
|
|
1544
|
+
return data;
|
|
1545
|
+
}
|
|
1546
|
+
async plantsCreateadditivesbylocationV1(body) {
|
|
1547
|
+
const { data } = await this.client.post(`/plants/v1/additives/bylocation`, body);
|
|
1548
|
+
return data;
|
|
1549
|
+
}
|
|
1550
|
+
async plantsCreateadditivesbylocationV2(body) {
|
|
1551
|
+
const { data } = await this.client.post(`/plants/v2/additives/bylocation`, body);
|
|
1552
|
+
return data;
|
|
1553
|
+
}
|
|
1554
|
+
async plantsCreateadditivesbylocationusingtemplateV2(body) {
|
|
1555
|
+
const { data } = await this.client.post(`/plants/v2/additives/bylocation/usingtemplate`, body);
|
|
1556
|
+
return data;
|
|
1557
|
+
}
|
|
1558
|
+
async plantsCreateadditivesusingtemplateV2(body) {
|
|
1559
|
+
const { data } = await this.client.post(`/plants/v2/additives/usingtemplate`, body);
|
|
1560
|
+
return data;
|
|
1561
|
+
}
|
|
1562
|
+
async plantsCreatechangegrowthphasesV1(body) {
|
|
1563
|
+
const { data } = await this.client.post(`/plants/v1/changegrowthphases`, body);
|
|
1564
|
+
return data;
|
|
1565
|
+
}
|
|
1566
|
+
async plantsCreateharvestplantsV1(body) {
|
|
1567
|
+
const { data } = await this.client.post(`/plants/v1/harvestplants`, body);
|
|
1568
|
+
return data;
|
|
1569
|
+
}
|
|
1570
|
+
async plantsCreatemanicureV2(body) {
|
|
1571
|
+
const { data } = await this.client.post(`/plants/v2/manicure`, body);
|
|
1572
|
+
return data;
|
|
1573
|
+
}
|
|
1574
|
+
async plantsCreatemanicureplantsV1(body) {
|
|
1575
|
+
const { data } = await this.client.post(`/plants/v1/manicureplants`, body);
|
|
1576
|
+
return data;
|
|
1577
|
+
}
|
|
1578
|
+
async plantsCreatemoveplantsV1(body) {
|
|
1579
|
+
const { data } = await this.client.post(`/plants/v1/moveplants`, body);
|
|
1580
|
+
return data;
|
|
1581
|
+
}
|
|
1582
|
+
async plantsCreateplantbatchpackageV1(body) {
|
|
1583
|
+
const { data } = await this.client.post(`/plants/v1/create/plantbatch/packages`, body);
|
|
1584
|
+
return data;
|
|
1585
|
+
}
|
|
1586
|
+
async plantsCreateplantbatchpackageV2(body) {
|
|
1587
|
+
const { data } = await this.client.post(`/plants/v2/plantbatch/packages`, body);
|
|
1588
|
+
return data;
|
|
1589
|
+
}
|
|
1590
|
+
async plantsCreateplantingsV1(body) {
|
|
1591
|
+
const { data } = await this.client.post(`/plants/v1/create/plantings`, body);
|
|
1592
|
+
return data;
|
|
1593
|
+
}
|
|
1594
|
+
async plantsCreateplantingsV2(body) {
|
|
1595
|
+
const { data } = await this.client.post(`/plants/v2/plantings`, body);
|
|
1596
|
+
return data;
|
|
1597
|
+
}
|
|
1598
|
+
async plantsCreatewasteV1(body) {
|
|
1599
|
+
const { data } = await this.client.post(`/plants/v1/waste`, body);
|
|
1600
|
+
return data;
|
|
1601
|
+
}
|
|
1602
|
+
async plantsCreatewasteV2(body) {
|
|
1603
|
+
const { data } = await this.client.post(`/plants/v2/waste`, body);
|
|
1604
|
+
return data;
|
|
1605
|
+
}
|
|
1606
|
+
async plantsDeleteV1(body) {
|
|
1607
|
+
const { data } = await this.client.delete(`/plants/v1`, body);
|
|
1608
|
+
return data;
|
|
1609
|
+
}
|
|
1610
|
+
async plantsDeleteV2(body) {
|
|
1611
|
+
const { data } = await this.client.delete(`/plants/v2`, body);
|
|
1612
|
+
return data;
|
|
1613
|
+
}
|
|
1614
|
+
async plantsGetV1(id, body) {
|
|
1615
|
+
const { data } = await this.client.get(`/plants/v1/${id}`, body);
|
|
1616
|
+
return data;
|
|
1617
|
+
}
|
|
1618
|
+
async plantsGetV2(id, body) {
|
|
1619
|
+
const { data } = await this.client.get(`/plants/v2/${id}`, body);
|
|
1620
|
+
return data;
|
|
1621
|
+
}
|
|
1622
|
+
async plantsGetadditivesV1(body) {
|
|
1623
|
+
const { data } = await this.client.get(`/plants/v1/additives`, body);
|
|
1624
|
+
return data;
|
|
1625
|
+
}
|
|
1626
|
+
async plantsGetadditivesV2(body) {
|
|
1627
|
+
const { data } = await this.client.get(`/plants/v2/additives`, body);
|
|
1628
|
+
return data;
|
|
1629
|
+
}
|
|
1630
|
+
async plantsGetadditivestypesV1(body) {
|
|
1631
|
+
const { data } = await this.client.get(`/plants/v1/additives/types`, body);
|
|
1632
|
+
return data;
|
|
1633
|
+
}
|
|
1634
|
+
async plantsGetadditivestypesV2(body) {
|
|
1635
|
+
const { data } = await this.client.get(`/plants/v2/additives/types`, body);
|
|
1636
|
+
return data;
|
|
1637
|
+
}
|
|
1638
|
+
async plantsGetbylabelV1(label, body) {
|
|
1639
|
+
const { data } = await this.client.get(`/plants/v1/${label}`, body);
|
|
1640
|
+
return data;
|
|
1641
|
+
}
|
|
1642
|
+
async plantsGetbylabelV2(label, body) {
|
|
1643
|
+
const { data } = await this.client.get(`/plants/v2/${label}`, body);
|
|
1644
|
+
return data;
|
|
1645
|
+
}
|
|
1646
|
+
async plantsGetfloweringV1(body) {
|
|
1647
|
+
const { data } = await this.client.get(`/plants/v1/flowering`, body);
|
|
1648
|
+
return data;
|
|
1649
|
+
}
|
|
1650
|
+
async plantsGetfloweringV2(body) {
|
|
1651
|
+
const { data } = await this.client.get(`/plants/v2/flowering`, body);
|
|
1652
|
+
return data;
|
|
1653
|
+
}
|
|
1654
|
+
async plantsGetgrowthphasesV1(body) {
|
|
1655
|
+
const { data } = await this.client.get(`/plants/v1/growthphases`, body);
|
|
1656
|
+
return data;
|
|
1657
|
+
}
|
|
1658
|
+
async plantsGetgrowthphasesV2(body) {
|
|
1659
|
+
const { data } = await this.client.get(`/plants/v2/growthphases`, body);
|
|
1660
|
+
return data;
|
|
1661
|
+
}
|
|
1662
|
+
async plantsGetinactiveV1(body) {
|
|
1663
|
+
const { data } = await this.client.get(`/plants/v1/inactive`, body);
|
|
1664
|
+
return data;
|
|
1665
|
+
}
|
|
1666
|
+
async plantsGetinactiveV2(body) {
|
|
1667
|
+
const { data } = await this.client.get(`/plants/v2/inactive`, body);
|
|
1668
|
+
return data;
|
|
1669
|
+
}
|
|
1670
|
+
async plantsGetmotherV2(body) {
|
|
1671
|
+
const { data } = await this.client.get(`/plants/v2/mother`, body);
|
|
1672
|
+
return data;
|
|
1673
|
+
}
|
|
1674
|
+
async plantsGetmotherinactiveV2(body) {
|
|
1675
|
+
const { data } = await this.client.get(`/plants/v2/mother/inactive`, body);
|
|
1676
|
+
return data;
|
|
1677
|
+
}
|
|
1678
|
+
async plantsGetmotheronholdV2(body) {
|
|
1679
|
+
const { data } = await this.client.get(`/plants/v2/mother/onhold`, body);
|
|
1680
|
+
return data;
|
|
1681
|
+
}
|
|
1682
|
+
async plantsGetonholdV1(body) {
|
|
1683
|
+
const { data } = await this.client.get(`/plants/v1/onhold`, body);
|
|
1684
|
+
return data;
|
|
1685
|
+
}
|
|
1686
|
+
async plantsGetonholdV2(body) {
|
|
1687
|
+
const { data } = await this.client.get(`/plants/v2/onhold`, body);
|
|
1688
|
+
return data;
|
|
1689
|
+
}
|
|
1690
|
+
async plantsGetvegetativeV1(body) {
|
|
1691
|
+
const { data } = await this.client.get(`/plants/v1/vegetative`, body);
|
|
1692
|
+
return data;
|
|
1693
|
+
}
|
|
1694
|
+
async plantsGetvegetativeV2(body) {
|
|
1695
|
+
const { data } = await this.client.get(`/plants/v2/vegetative`, body);
|
|
1696
|
+
return data;
|
|
1697
|
+
}
|
|
1698
|
+
async plantsGetwasteV2(body) {
|
|
1699
|
+
const { data } = await this.client.get(`/plants/v2/waste`, body);
|
|
1700
|
+
return data;
|
|
1701
|
+
}
|
|
1702
|
+
async plantsGetwastemethodsallV1(body) {
|
|
1703
|
+
const { data } = await this.client.get(`/plants/v1/waste/methods/all`, body);
|
|
1704
|
+
return data;
|
|
1705
|
+
}
|
|
1706
|
+
async plantsGetwastemethodsallV2(body) {
|
|
1707
|
+
const { data } = await this.client.get(`/plants/v2/waste/methods/all`, body);
|
|
1708
|
+
return data;
|
|
1709
|
+
}
|
|
1710
|
+
async plantsGetwastepackageV2(id, body) {
|
|
1711
|
+
const { data } = await this.client.get(`/plants/v2/waste/${id}/package`, body);
|
|
1712
|
+
return data;
|
|
1713
|
+
}
|
|
1714
|
+
async plantsGetwasteplantV2(id, body) {
|
|
1715
|
+
const { data } = await this.client.get(`/plants/v2/waste/${id}/plant`, body);
|
|
1716
|
+
return data;
|
|
1717
|
+
}
|
|
1718
|
+
async plantsGetwastereasonsV1(body) {
|
|
1719
|
+
const { data } = await this.client.get(`/plants/v1/waste/reasons`, body);
|
|
1720
|
+
return data;
|
|
1721
|
+
}
|
|
1722
|
+
async plantsGetwastereasonsV2(body) {
|
|
1723
|
+
const { data } = await this.client.get(`/plants/v2/waste/reasons`, body);
|
|
1724
|
+
return data;
|
|
1725
|
+
}
|
|
1726
|
+
async plantsUpdateadjustV2(body) {
|
|
1727
|
+
const { data } = await this.client.put(`/plants/v2/adjust`, body);
|
|
1728
|
+
return data;
|
|
1729
|
+
}
|
|
1730
|
+
async plantsUpdategrowthphaseV2(body) {
|
|
1731
|
+
const { data } = await this.client.put(`/plants/v2/growthphase`, body);
|
|
1732
|
+
return data;
|
|
1733
|
+
}
|
|
1734
|
+
async plantsUpdateharvestV2(body) {
|
|
1735
|
+
const { data } = await this.client.put(`/plants/v2/harvest`, body);
|
|
1736
|
+
return data;
|
|
1737
|
+
}
|
|
1738
|
+
async plantsUpdatelocationV2(body) {
|
|
1739
|
+
const { data } = await this.client.put(`/plants/v2/location`, body);
|
|
1740
|
+
return data;
|
|
1741
|
+
}
|
|
1742
|
+
async plantsUpdatemergeV2(body) {
|
|
1743
|
+
const { data } = await this.client.put(`/plants/v2/merge`, body);
|
|
1744
|
+
return data;
|
|
1745
|
+
}
|
|
1746
|
+
async plantsUpdatesplitV2(body) {
|
|
1747
|
+
const { data } = await this.client.put(`/plants/v2/split`, body);
|
|
1748
|
+
return data;
|
|
1749
|
+
}
|
|
1750
|
+
async plantsUpdatestrainV2(body) {
|
|
1751
|
+
const { data } = await this.client.put(`/plants/v2/strain`, body);
|
|
1752
|
+
return data;
|
|
1753
|
+
}
|
|
1754
|
+
async plantsUpdatetagV2(body) {
|
|
1755
|
+
const { data } = await this.client.put(`/plants/v2/tag`, body);
|
|
1756
|
+
return data;
|
|
1757
|
+
}
|
|
1758
|
+
async sublocationsCreateV2(body) {
|
|
1759
|
+
const { data } = await this.client.post(`/sublocations/v2`, body);
|
|
1760
|
+
return data;
|
|
1761
|
+
}
|
|
1762
|
+
async sublocationsDeleteV2(id, body) {
|
|
1763
|
+
const { data } = await this.client.delete(`/sublocations/v2/${id}`, body);
|
|
1764
|
+
return data;
|
|
1765
|
+
}
|
|
1766
|
+
async sublocationsGetV2(id, body) {
|
|
1767
|
+
const { data } = await this.client.get(`/sublocations/v2/${id}`, body);
|
|
1768
|
+
return data;
|
|
1769
|
+
}
|
|
1770
|
+
async sublocationsGetactiveV2(body) {
|
|
1771
|
+
const { data } = await this.client.get(`/sublocations/v2/active`, body);
|
|
1772
|
+
return data;
|
|
1773
|
+
}
|
|
1774
|
+
async sublocationsGetinactiveV2(body) {
|
|
1775
|
+
const { data } = await this.client.get(`/sublocations/v2/inactive`, body);
|
|
1776
|
+
return data;
|
|
1777
|
+
}
|
|
1778
|
+
async sublocationsUpdateV2(body) {
|
|
1779
|
+
const { data } = await this.client.put(`/sublocations/v2`, body);
|
|
1780
|
+
return data;
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1783
|
+
exports.MetrcClient = MetrcClient;
|