@ricado/api-client 2.6.0 → 2.7.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/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +2 -1
- package/lib/Controllers/Packhouse/Site/ReemoonSizerBatchController.js +915 -0
- package/lib/Controllers/Packhouse/Site/ReemoonSizerController.js +300 -0
- package/lib/Controllers/Packhouse/Site/ReemoonSizerOutletProductChangeController.js +885 -0
- package/lib/Controllers/Packhouse/Site/ReemoonSizerPackrunSummaryController.js +914 -0
- package/lib/Controllers/Packhouse/Site/index.js +12 -0
- package/lib/Models/Packhouse/Site/PackingLineModel.js +38 -1
- package/lib/Models/Packhouse/Site/ReemoonSizerBatchModel.js +547 -0
- package/lib/Models/Packhouse/Site/ReemoonSizerModel.js +1272 -0
- package/lib/Models/Packhouse/Site/ReemoonSizerOutletProductChangeModel.js +293 -0
- package/lib/Models/Packhouse/Site/ReemoonSizerPackrunSummaryModel.js +461 -0
- package/lib/Models/Packhouse/Site/index.js +12 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +7128 -5158
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/PackingLineController.js +2 -1
- package/src/Controllers/Packhouse/Site/ReemoonSizerBatchController.js +1046 -0
- package/src/Controllers/Packhouse/Site/ReemoonSizerController.js +277 -0
- package/src/Controllers/Packhouse/Site/ReemoonSizerOutletProductChangeController.js +1016 -0
- package/src/Controllers/Packhouse/Site/ReemoonSizerPackrunSummaryController.js +1045 -0
- package/src/Controllers/Packhouse/Site/index.js +8 -0
- package/src/Models/Packhouse/Site/PackingLineModel.js +49 -1
- package/src/Models/Packhouse/Site/ReemoonSizerBatchModel.js +596 -0
- package/src/Models/Packhouse/Site/ReemoonSizerModel.js +1576 -0
- package/src/Models/Packhouse/Site/ReemoonSizerOutletProductChangeModel.js +280 -0
- package/src/Models/Packhouse/Site/ReemoonSizerPackrunSummaryModel.js +501 -0
- package/src/Models/Packhouse/Site/index.js +8 -0
- package/src/PackageVersion.js +1 -1
|
@@ -0,0 +1,501 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File Auto-Generated by the RICADO Gen 4 PHP API Project
|
|
3
|
+
*
|
|
4
|
+
* Do Not Edit this File Manually!
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import BaseModel from '../../../Models/BaseModel';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Model Class for a Reemoon Sizer Packrun Summary
|
|
11
|
+
*
|
|
12
|
+
* @class
|
|
13
|
+
* @hideconstructor
|
|
14
|
+
* @extends BaseModel
|
|
15
|
+
*/
|
|
16
|
+
class ReemoonSizerPackrunSummaryModel extends BaseModel
|
|
17
|
+
{
|
|
18
|
+
/**
|
|
19
|
+
* ReemoonSizerPackrunSummaryModel Constructor
|
|
20
|
+
*
|
|
21
|
+
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Reemoon Sizer Packrun Summary
|
|
23
|
+
*/
|
|
24
|
+
constructor(siteId)
|
|
25
|
+
{
|
|
26
|
+
super();
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The Reemoon Sizer Packrun Summary ID
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
this.id = "";
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The Reemoon Sizer ID this Summary is associated with
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
this.reemoonSizerId = "";
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The Packrun ID this Summary is associated with
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
this.packrunId = "";
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* When this Summary was Created
|
|
54
|
+
*
|
|
55
|
+
* @type {Date}
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
this.createdTimestamp = new Date();
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The Time Batch this Summary is associated with
|
|
62
|
+
*
|
|
63
|
+
* @type {?string}
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
this.timeBatchId = null;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* An Array of Packrun Summary Data Objects for each Outlet
|
|
70
|
+
*
|
|
71
|
+
* @type {Array<{name: string, type: string, number: number, totals: Array<{classType: ?string, fruitSize: string, packType: ?string, weight: number, fruitCount: number, packCount: ?number}>}>}
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
this.outletSummaries = [];
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* An Array that contains the Products initially Assigned to each Outlet
|
|
78
|
+
*
|
|
79
|
+
* @type {Array<{outletNumber: number, productId: ?number, productName: string}>}
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
this.initialOutletProducts = [];
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Whether the Reemoon Sizer Packrun Summary has been deleted
|
|
86
|
+
*
|
|
87
|
+
* @type {boolean}
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
this.deleted = false;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* When the Reemoon Sizer Packrun Summary was last updated
|
|
94
|
+
*
|
|
95
|
+
* @type {Date}
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
this.updateTimestamp = new Date();
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The Site ID associated with this Reemoon Sizer Packrun Summary
|
|
102
|
+
*
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
this.siteId = siteId;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* Create a new **ReemoonSizerPackrunSummaryModel** from a JSON Object or JSON String
|
|
111
|
+
*
|
|
112
|
+
* @static
|
|
113
|
+
* @public
|
|
114
|
+
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
115
|
+
* @param {number} siteId The Site ID associated with this Reemoon Sizer Packrun Summary
|
|
116
|
+
* @return {ReemoonSizerPackrunSummaryModel}
|
|
117
|
+
*/
|
|
118
|
+
static fromJSON(json, siteId)
|
|
119
|
+
{
|
|
120
|
+
let model = new ReemoonSizerPackrunSummaryModel(siteId);
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* The JSON Object
|
|
124
|
+
*
|
|
125
|
+
* @type {Object<string, any>}
|
|
126
|
+
*/
|
|
127
|
+
let jsonObject = {};
|
|
128
|
+
|
|
129
|
+
if(typeof json === 'string')
|
|
130
|
+
{
|
|
131
|
+
jsonObject = JSON.parse(json);
|
|
132
|
+
}
|
|
133
|
+
else if(typeof json === 'object')
|
|
134
|
+
{
|
|
135
|
+
jsonObject = json;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
if('id' in jsonObject)
|
|
139
|
+
{
|
|
140
|
+
model.id = (function(){
|
|
141
|
+
if(typeof jsonObject['id'] !== 'string')
|
|
142
|
+
{
|
|
143
|
+
return String(jsonObject['id']);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
return jsonObject['id'];
|
|
147
|
+
}());
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
if('reemoonSizerId' in jsonObject)
|
|
151
|
+
{
|
|
152
|
+
model.reemoonSizerId = (function(){
|
|
153
|
+
if(typeof jsonObject['reemoonSizerId'] !== 'string')
|
|
154
|
+
{
|
|
155
|
+
return String(jsonObject['reemoonSizerId']);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
return jsonObject['reemoonSizerId'];
|
|
159
|
+
}());
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
if('packrunId' in jsonObject)
|
|
163
|
+
{
|
|
164
|
+
model.packrunId = (function(){
|
|
165
|
+
if(typeof jsonObject['packrunId'] !== 'string')
|
|
166
|
+
{
|
|
167
|
+
return String(jsonObject['packrunId']);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
return jsonObject['packrunId'];
|
|
171
|
+
}());
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
if('createdTimestamp' in jsonObject)
|
|
175
|
+
{
|
|
176
|
+
model.createdTimestamp = (function(){
|
|
177
|
+
if(typeof jsonObject['createdTimestamp'] !== 'string')
|
|
178
|
+
{
|
|
179
|
+
return new Date(String(jsonObject['createdTimestamp']));
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
return new Date(jsonObject['createdTimestamp']);
|
|
183
|
+
}());
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
if('timeBatchId' in jsonObject)
|
|
187
|
+
{
|
|
188
|
+
model.timeBatchId = (function(){
|
|
189
|
+
if(jsonObject['timeBatchId'] === null)
|
|
190
|
+
{
|
|
191
|
+
return null;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if(typeof jsonObject['timeBatchId'] !== 'string')
|
|
195
|
+
{
|
|
196
|
+
return String(jsonObject['timeBatchId']);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
return jsonObject['timeBatchId'];
|
|
200
|
+
}());
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if('outletSummaries' in jsonObject)
|
|
204
|
+
{
|
|
205
|
+
model.outletSummaries = (function(){
|
|
206
|
+
if(Array.isArray(jsonObject['outletSummaries']) !== true)
|
|
207
|
+
{
|
|
208
|
+
return [];
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
return jsonObject['outletSummaries'].map((outletSummariesItem) => {
|
|
212
|
+
return (function(){
|
|
213
|
+
let outletSummariesItemObject = {};
|
|
214
|
+
|
|
215
|
+
if(typeof outletSummariesItem === 'object' && 'name' in outletSummariesItem)
|
|
216
|
+
{
|
|
217
|
+
outletSummariesItemObject.name = (function(){
|
|
218
|
+
if(typeof outletSummariesItem.name !== 'string')
|
|
219
|
+
{
|
|
220
|
+
return String(outletSummariesItem.name);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
return outletSummariesItem.name;
|
|
224
|
+
}());
|
|
225
|
+
}
|
|
226
|
+
else
|
|
227
|
+
{
|
|
228
|
+
outletSummariesItemObject.name = "";
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if(typeof outletSummariesItem === 'object' && 'type' in outletSummariesItem)
|
|
232
|
+
{
|
|
233
|
+
outletSummariesItemObject.type = (function(){
|
|
234
|
+
if(typeof outletSummariesItem.type !== 'string')
|
|
235
|
+
{
|
|
236
|
+
return String(outletSummariesItem.type);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
return outletSummariesItem.type;
|
|
240
|
+
}());
|
|
241
|
+
}
|
|
242
|
+
else
|
|
243
|
+
{
|
|
244
|
+
outletSummariesItemObject.type = "";
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
if(typeof outletSummariesItem === 'object' && 'number' in outletSummariesItem)
|
|
248
|
+
{
|
|
249
|
+
outletSummariesItemObject.number = (function(){
|
|
250
|
+
if(typeof outletSummariesItem.number !== 'number')
|
|
251
|
+
{
|
|
252
|
+
return Number.isInteger(Number(outletSummariesItem.number)) ? Number(outletSummariesItem.number) : Math.floor(Number(outletSummariesItem.number));
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
return Number.isInteger(outletSummariesItem.number) ? outletSummariesItem.number : Math.floor(outletSummariesItem.number);
|
|
256
|
+
}());
|
|
257
|
+
}
|
|
258
|
+
else
|
|
259
|
+
{
|
|
260
|
+
outletSummariesItemObject.number = 0;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
if(typeof outletSummariesItem === 'object' && 'totals' in outletSummariesItem)
|
|
264
|
+
{
|
|
265
|
+
outletSummariesItemObject.totals = (function(){
|
|
266
|
+
if(Array.isArray(outletSummariesItem.totals) !== true)
|
|
267
|
+
{
|
|
268
|
+
return [];
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
return outletSummariesItem.totals.map((totalsItem) => {
|
|
272
|
+
return (function(){
|
|
273
|
+
let totalsItemObject = {};
|
|
274
|
+
|
|
275
|
+
if(typeof totalsItem === 'object' && 'classType' in totalsItem)
|
|
276
|
+
{
|
|
277
|
+
totalsItemObject.classType = (function(){
|
|
278
|
+
if(totalsItem.classType === null)
|
|
279
|
+
{
|
|
280
|
+
return null;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
if(typeof totalsItem.classType !== 'string')
|
|
284
|
+
{
|
|
285
|
+
return String(totalsItem.classType);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
return totalsItem.classType;
|
|
289
|
+
}());
|
|
290
|
+
}
|
|
291
|
+
else
|
|
292
|
+
{
|
|
293
|
+
totalsItemObject.classType = null;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
if(typeof totalsItem === 'object' && 'fruitSize' in totalsItem)
|
|
297
|
+
{
|
|
298
|
+
totalsItemObject.fruitSize = (function(){
|
|
299
|
+
if(typeof totalsItem.fruitSize !== 'string')
|
|
300
|
+
{
|
|
301
|
+
return String(totalsItem.fruitSize);
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
return totalsItem.fruitSize;
|
|
305
|
+
}());
|
|
306
|
+
}
|
|
307
|
+
else
|
|
308
|
+
{
|
|
309
|
+
totalsItemObject.fruitSize = "";
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
if(typeof totalsItem === 'object' && 'packType' in totalsItem)
|
|
313
|
+
{
|
|
314
|
+
totalsItemObject.packType = (function(){
|
|
315
|
+
if(totalsItem.packType === null)
|
|
316
|
+
{
|
|
317
|
+
return null;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
if(typeof totalsItem.packType !== 'string')
|
|
321
|
+
{
|
|
322
|
+
return String(totalsItem.packType);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
return totalsItem.packType;
|
|
326
|
+
}());
|
|
327
|
+
}
|
|
328
|
+
else
|
|
329
|
+
{
|
|
330
|
+
totalsItemObject.packType = null;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
if(typeof totalsItem === 'object' && 'weight' in totalsItem)
|
|
334
|
+
{
|
|
335
|
+
totalsItemObject.weight = (function(){
|
|
336
|
+
if(typeof totalsItem.weight !== 'number')
|
|
337
|
+
{
|
|
338
|
+
return Number(totalsItem.weight);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
return totalsItem.weight;
|
|
342
|
+
}());
|
|
343
|
+
}
|
|
344
|
+
else
|
|
345
|
+
{
|
|
346
|
+
totalsItemObject.weight = 0;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
if(typeof totalsItem === 'object' && 'fruitCount' in totalsItem)
|
|
350
|
+
{
|
|
351
|
+
totalsItemObject.fruitCount = (function(){
|
|
352
|
+
if(typeof totalsItem.fruitCount !== 'number')
|
|
353
|
+
{
|
|
354
|
+
return Number.isInteger(Number(totalsItem.fruitCount)) ? Number(totalsItem.fruitCount) : Math.floor(Number(totalsItem.fruitCount));
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
return Number.isInteger(totalsItem.fruitCount) ? totalsItem.fruitCount : Math.floor(totalsItem.fruitCount);
|
|
358
|
+
}());
|
|
359
|
+
}
|
|
360
|
+
else
|
|
361
|
+
{
|
|
362
|
+
totalsItemObject.fruitCount = 0;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
if(typeof totalsItem === 'object' && 'packCount' in totalsItem)
|
|
366
|
+
{
|
|
367
|
+
totalsItemObject.packCount = (function(){
|
|
368
|
+
if(totalsItem.packCount === null)
|
|
369
|
+
{
|
|
370
|
+
return null;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
if(typeof totalsItem.packCount !== 'number')
|
|
374
|
+
{
|
|
375
|
+
return Number(totalsItem.packCount);
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
return totalsItem.packCount;
|
|
379
|
+
}());
|
|
380
|
+
}
|
|
381
|
+
else
|
|
382
|
+
{
|
|
383
|
+
totalsItemObject.packCount = null;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
return totalsItemObject;
|
|
387
|
+
}());
|
|
388
|
+
});
|
|
389
|
+
}());
|
|
390
|
+
}
|
|
391
|
+
else
|
|
392
|
+
{
|
|
393
|
+
outletSummariesItemObject.totals = [];
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
return outletSummariesItemObject;
|
|
397
|
+
}());
|
|
398
|
+
});
|
|
399
|
+
}());
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
if('initialOutletProducts' in jsonObject)
|
|
403
|
+
{
|
|
404
|
+
model.initialOutletProducts = (function(){
|
|
405
|
+
if(Array.isArray(jsonObject['initialOutletProducts']) !== true)
|
|
406
|
+
{
|
|
407
|
+
return [];
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
return jsonObject['initialOutletProducts'].map((initialOutletProductsItem) => {
|
|
411
|
+
return (function(){
|
|
412
|
+
let initialOutletProductsItemObject = {};
|
|
413
|
+
|
|
414
|
+
if(typeof initialOutletProductsItem === 'object' && 'outletNumber' in initialOutletProductsItem)
|
|
415
|
+
{
|
|
416
|
+
initialOutletProductsItemObject.outletNumber = (function(){
|
|
417
|
+
if(typeof initialOutletProductsItem.outletNumber !== 'number')
|
|
418
|
+
{
|
|
419
|
+
return Number.isInteger(Number(initialOutletProductsItem.outletNumber)) ? Number(initialOutletProductsItem.outletNumber) : Math.floor(Number(initialOutletProductsItem.outletNumber));
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
return Number.isInteger(initialOutletProductsItem.outletNumber) ? initialOutletProductsItem.outletNumber : Math.floor(initialOutletProductsItem.outletNumber);
|
|
423
|
+
}());
|
|
424
|
+
}
|
|
425
|
+
else
|
|
426
|
+
{
|
|
427
|
+
initialOutletProductsItemObject.outletNumber = 0;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
if(typeof initialOutletProductsItem === 'object' && 'productId' in initialOutletProductsItem)
|
|
431
|
+
{
|
|
432
|
+
initialOutletProductsItemObject.productId = (function(){
|
|
433
|
+
if(initialOutletProductsItem.productId === null)
|
|
434
|
+
{
|
|
435
|
+
return null;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
if(typeof initialOutletProductsItem.productId !== 'number')
|
|
439
|
+
{
|
|
440
|
+
return Number.isInteger(Number(initialOutletProductsItem.productId)) ? Number(initialOutletProductsItem.productId) : Math.floor(Number(initialOutletProductsItem.productId));
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
return Number.isInteger(initialOutletProductsItem.productId) ? initialOutletProductsItem.productId : Math.floor(initialOutletProductsItem.productId);
|
|
444
|
+
}());
|
|
445
|
+
}
|
|
446
|
+
else
|
|
447
|
+
{
|
|
448
|
+
initialOutletProductsItemObject.productId = null;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
if(typeof initialOutletProductsItem === 'object' && 'productName' in initialOutletProductsItem)
|
|
452
|
+
{
|
|
453
|
+
initialOutletProductsItemObject.productName = (function(){
|
|
454
|
+
if(typeof initialOutletProductsItem.productName !== 'string')
|
|
455
|
+
{
|
|
456
|
+
return String(initialOutletProductsItem.productName);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
return initialOutletProductsItem.productName;
|
|
460
|
+
}());
|
|
461
|
+
}
|
|
462
|
+
else
|
|
463
|
+
{
|
|
464
|
+
initialOutletProductsItemObject.productName = "";
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
return initialOutletProductsItemObject;
|
|
468
|
+
}());
|
|
469
|
+
});
|
|
470
|
+
}());
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
if('deleted' in jsonObject)
|
|
474
|
+
{
|
|
475
|
+
model.deleted = (function(){
|
|
476
|
+
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
477
|
+
{
|
|
478
|
+
return Boolean(jsonObject['deleted']);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
return jsonObject['deleted'];
|
|
482
|
+
}());
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
if('updateTimestamp' in jsonObject)
|
|
486
|
+
{
|
|
487
|
+
model.updateTimestamp = (function(){
|
|
488
|
+
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
489
|
+
{
|
|
490
|
+
return new Date(String(jsonObject['updateTimestamp']));
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
return new Date(jsonObject['updateTimestamp']);
|
|
494
|
+
}());
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
return model;
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export default ReemoonSizerPackrunSummaryModel;
|
|
@@ -33,6 +33,10 @@ import PackTypeModel from './PackTypeModel';
|
|
|
33
33
|
import PackingLineModel from './PackingLineModel';
|
|
34
34
|
import PackrunModel from './PackrunModel';
|
|
35
35
|
import PrePackSampleModel from './PrePackSampleModel';
|
|
36
|
+
import ReemoonSizerBatchModel from './ReemoonSizerBatchModel';
|
|
37
|
+
import ReemoonSizerModel from './ReemoonSizerModel';
|
|
38
|
+
import ReemoonSizerOutletProductChangeModel from './ReemoonSizerOutletProductChangeModel';
|
|
39
|
+
import ReemoonSizerPackrunSummaryModel from './ReemoonSizerPackrunSummaryModel';
|
|
36
40
|
import RejectBinModel from './RejectBinModel';
|
|
37
41
|
import RejectBinScaleModel from './RejectBinScaleModel';
|
|
38
42
|
import RejectBinWeightModel from './RejectBinWeightModel';
|
|
@@ -74,6 +78,10 @@ const Site = {
|
|
|
74
78
|
PackingLineModel,
|
|
75
79
|
PackrunModel,
|
|
76
80
|
PrePackSampleModel,
|
|
81
|
+
ReemoonSizerBatchModel,
|
|
82
|
+
ReemoonSizerModel,
|
|
83
|
+
ReemoonSizerOutletProductChangeModel,
|
|
84
|
+
ReemoonSizerPackrunSummaryModel,
|
|
77
85
|
RejectBinModel,
|
|
78
86
|
RejectBinScaleModel,
|
|
79
87
|
RejectBinWeightModel,
|
package/src/PackageVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '2.
|
|
2
|
+
export const version = '2.7.0';
|