@ricado/api-client 2.3.7 → 2.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/Packhouse/Site/BinTipBinController.js +4 -0
  3. package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +2 -0
  4. package/lib/Controllers/Packhouse/Site/MAFSizerBatchController.js +926 -0
  5. package/lib/Controllers/Packhouse/Site/MAFSizerController.js +217 -0
  6. package/lib/Controllers/Packhouse/Site/MAFSizerOutletArticleChangeController.js +879 -0
  7. package/lib/Controllers/Packhouse/Site/MAFSizerPackrunSummaryController.js +922 -0
  8. package/lib/Controllers/Packhouse/Site/PackrunController.js +54 -33
  9. package/lib/Controllers/Packhouse/Site/ShiftController.js +23 -0
  10. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +13 -7
  11. package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +1 -0
  12. package/lib/Controllers/Packhouse/Site/index.js +12 -0
  13. package/lib/Models/Packhouse/Site/BinTipBinModel.js +22 -0
  14. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +26 -0
  15. package/lib/Models/Packhouse/Site/MAFSizerBatchModel.js +555 -0
  16. package/lib/Models/Packhouse/Site/MAFSizerModel.js +445 -0
  17. package/lib/Models/Packhouse/Site/MAFSizerOutletArticleChangeModel.js +253 -0
  18. package/lib/Models/Packhouse/Site/MAFSizerPackrunSummaryModel.js +473 -0
  19. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +75 -5
  20. package/lib/Models/Packhouse/Site/index.js +12 -0
  21. package/lib/PackageVersion.js +1 -1
  22. package/lib/index.d.ts +4937 -3152
  23. package/package.json +1 -1
  24. package/src/Controllers/Packhouse/Site/BinTipBinController.js +4 -0
  25. package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +2 -0
  26. package/src/Controllers/Packhouse/Site/MAFSizerBatchController.js +1057 -0
  27. package/src/Controllers/Packhouse/Site/MAFSizerController.js +194 -0
  28. package/src/Controllers/Packhouse/Site/MAFSizerOutletArticleChangeController.js +1010 -0
  29. package/src/Controllers/Packhouse/Site/MAFSizerPackrunSummaryController.js +1053 -0
  30. package/src/Controllers/Packhouse/Site/PackrunController.js +59 -33
  31. package/src/Controllers/Packhouse/Site/ShiftController.js +22 -0
  32. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +13 -7
  33. package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +1 -0
  34. package/src/Controllers/Packhouse/Site/index.js +8 -0
  35. package/src/Models/Packhouse/Site/BinTipBinModel.js +25 -0
  36. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +29 -0
  37. package/src/Models/Packhouse/Site/MAFSizerBatchModel.js +598 -0
  38. package/src/Models/Packhouse/Site/MAFSizerModel.js +450 -0
  39. package/src/Models/Packhouse/Site/MAFSizerOutletArticleChangeModel.js +235 -0
  40. package/src/Models/Packhouse/Site/MAFSizerPackrunSummaryModel.js +511 -0
  41. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +85 -5
  42. package/src/Models/Packhouse/Site/index.js +8 -0
  43. package/src/PackageVersion.js +1 -1
@@ -0,0 +1,555 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _BaseModel2 = _interopRequireDefault(require("../../../Models/BaseModel"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
13
+
14
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
+
16
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
17
+
18
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
+
20
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
21
+
22
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
+
24
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
25
+
26
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
27
+
28
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
29
+
30
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
+
32
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
33
+
34
+ /**
35
+ * Model Class for a MAF Sizer Batch
36
+ *
37
+ * @class
38
+ * @hideconstructor
39
+ * @extends BaseModel
40
+ */
41
+ var MAFSizerBatchModel = /*#__PURE__*/function (_BaseModel) {
42
+ _inherits(MAFSizerBatchModel, _BaseModel);
43
+
44
+ var _super = _createSuper(MAFSizerBatchModel);
45
+
46
+ /**
47
+ * MAFSizerBatchModel Constructor
48
+ *
49
+ * @protected
50
+ * @param {number} siteId The Site ID associated with this MAF Sizer Batch
51
+ */
52
+ function MAFSizerBatchModel(siteId) {
53
+ var _this;
54
+
55
+ _classCallCheck(this, MAFSizerBatchModel);
56
+
57
+ _this = _super.call(this);
58
+ /**
59
+ * The MAF Sizer Batch ID
60
+ *
61
+ * @type {string}
62
+ * @public
63
+ */
64
+
65
+ _this.id = "";
66
+ /**
67
+ * The MAF Sizer ID this Batch is associated with
68
+ *
69
+ * @type {string}
70
+ * @public
71
+ */
72
+
73
+ _this.mafSizerId = "";
74
+ /**
75
+ * The Numeric MAF Batch ID
76
+ *
77
+ * @type {string}
78
+ * @public
79
+ */
80
+
81
+ _this.batchId = "";
82
+ /**
83
+ * When this Batch was Created
84
+ *
85
+ * @type {Date}
86
+ * @public
87
+ */
88
+
89
+ _this.createdTimestamp = new Date();
90
+ /**
91
+ * The Batch Name
92
+ *
93
+ * @type {?string}
94
+ * @public
95
+ */
96
+
97
+ _this.batchName = null;
98
+ /**
99
+ * The Grower Code
100
+ *
101
+ * @type {?string}
102
+ * @public
103
+ */
104
+
105
+ _this.growerCode = null;
106
+ /**
107
+ * The Grower Name
108
+ *
109
+ * @type {?string}
110
+ * @public
111
+ */
112
+
113
+ _this.growerName = null;
114
+ /**
115
+ * The Variety Code
116
+ *
117
+ * @type {?string}
118
+ * @public
119
+ */
120
+
121
+ _this.varietyCode = null;
122
+ /**
123
+ * The Variety Name
124
+ *
125
+ * @type {?string}
126
+ * @public
127
+ */
128
+
129
+ _this.varietyName = null;
130
+ /**
131
+ * The Total Weight Processed for this Batch
132
+ *
133
+ * @type {number}
134
+ * @public
135
+ */
136
+
137
+ _this.totalWeight = 0;
138
+ /**
139
+ * The Packrun ID associated with this Batch
140
+ *
141
+ * @type {?string}
142
+ * @public
143
+ */
144
+
145
+ _this.packrunId = null;
146
+ /**
147
+ * An Array of Summary Data Objects for each Article
148
+ *
149
+ * @type {Array<{name: string, fruitCount: number, fruitWeight: number}>}
150
+ * @public
151
+ */
152
+
153
+ _this.articleSummaries = [];
154
+ /**
155
+ * An Array of Summary Data Objects for each Outlet
156
+ *
157
+ * @type {Array<{number: number, fruitCount: number, fruitWeight: number}>}
158
+ * @public
159
+ */
160
+
161
+ _this.outletSummaries = [];
162
+ /**
163
+ * An Array of Summary Data Objects for each Fruit Size and Article
164
+ *
165
+ * @type {Array<{articleName: string, fruitSize: string, fruitCount: number, fruitWeight: number}>}
166
+ * @public
167
+ */
168
+
169
+ _this.fruitSummaries = [];
170
+ /**
171
+ * Whether the MAF Sizer Batch has been deleted
172
+ *
173
+ * @type {boolean}
174
+ * @public
175
+ */
176
+
177
+ _this.deleted = false;
178
+ /**
179
+ * When the MAF Sizer Batch was last updated
180
+ *
181
+ * @type {Date}
182
+ * @public
183
+ */
184
+
185
+ _this.updateTimestamp = new Date();
186
+ /**
187
+ * The Site ID associated with this MAF Sizer Batch
188
+ *
189
+ * @type {number}
190
+ * @public
191
+ */
192
+
193
+ _this.siteId = siteId;
194
+ return _this;
195
+ }
196
+ /**
197
+ * Create a new **MAFSizerBatchModel** from a JSON Object or JSON String
198
+ *
199
+ * @static
200
+ * @public
201
+ * @param {Object<string, any>|string} json A JSON Object or JSON String
202
+ * @param {number} siteId The Site ID associated with this MAF Sizer Batch
203
+ * @return {MAFSizerBatchModel}
204
+ */
205
+
206
+
207
+ _createClass(MAFSizerBatchModel, null, [{
208
+ key: "fromJSON",
209
+ value: function fromJSON(json, siteId) {
210
+ var model = new MAFSizerBatchModel(siteId);
211
+ /**
212
+ * The JSON Object
213
+ *
214
+ * @type {Object<string, any>}
215
+ */
216
+
217
+ var jsonObject = {};
218
+
219
+ if (typeof json === 'string') {
220
+ jsonObject = JSON.parse(json);
221
+ } else if (_typeof(json) === 'object') {
222
+ jsonObject = json;
223
+ }
224
+
225
+ if ('id' in jsonObject) {
226
+ model.id = function () {
227
+ if (typeof jsonObject['id'] !== 'string') {
228
+ return String(jsonObject['id']);
229
+ }
230
+
231
+ return jsonObject['id'];
232
+ }();
233
+ }
234
+
235
+ if ('mafSizerId' in jsonObject) {
236
+ model.mafSizerId = function () {
237
+ if (typeof jsonObject['mafSizerId'] !== 'string') {
238
+ return String(jsonObject['mafSizerId']);
239
+ }
240
+
241
+ return jsonObject['mafSizerId'];
242
+ }();
243
+ }
244
+
245
+ if ('batchId' in jsonObject) {
246
+ model.batchId = function () {
247
+ if (typeof jsonObject['batchId'] !== 'string') {
248
+ return String(jsonObject['batchId']);
249
+ }
250
+
251
+ return jsonObject['batchId'];
252
+ }();
253
+ }
254
+
255
+ if ('createdTimestamp' in jsonObject) {
256
+ model.createdTimestamp = function () {
257
+ if (typeof jsonObject['createdTimestamp'] !== 'string') {
258
+ return new Date(String(jsonObject['createdTimestamp']));
259
+ }
260
+
261
+ return new Date(jsonObject['createdTimestamp']);
262
+ }();
263
+ }
264
+
265
+ if ('batchName' in jsonObject) {
266
+ model.batchName = function () {
267
+ if (jsonObject['batchName'] === null) {
268
+ return null;
269
+ }
270
+
271
+ if (typeof jsonObject['batchName'] !== 'string') {
272
+ return String(jsonObject['batchName']);
273
+ }
274
+
275
+ return jsonObject['batchName'];
276
+ }();
277
+ }
278
+
279
+ if ('growerCode' in jsonObject) {
280
+ model.growerCode = function () {
281
+ if (jsonObject['growerCode'] === null) {
282
+ return null;
283
+ }
284
+
285
+ if (typeof jsonObject['growerCode'] !== 'string') {
286
+ return String(jsonObject['growerCode']);
287
+ }
288
+
289
+ return jsonObject['growerCode'];
290
+ }();
291
+ }
292
+
293
+ if ('growerName' in jsonObject) {
294
+ model.growerName = function () {
295
+ if (jsonObject['growerName'] === null) {
296
+ return null;
297
+ }
298
+
299
+ if (typeof jsonObject['growerName'] !== 'string') {
300
+ return String(jsonObject['growerName']);
301
+ }
302
+
303
+ return jsonObject['growerName'];
304
+ }();
305
+ }
306
+
307
+ if ('varietyCode' in jsonObject) {
308
+ model.varietyCode = function () {
309
+ if (jsonObject['varietyCode'] === null) {
310
+ return null;
311
+ }
312
+
313
+ if (typeof jsonObject['varietyCode'] !== 'string') {
314
+ return String(jsonObject['varietyCode']);
315
+ }
316
+
317
+ return jsonObject['varietyCode'];
318
+ }();
319
+ }
320
+
321
+ if ('varietyName' in jsonObject) {
322
+ model.varietyName = function () {
323
+ if (jsonObject['varietyName'] === null) {
324
+ return null;
325
+ }
326
+
327
+ if (typeof jsonObject['varietyName'] !== 'string') {
328
+ return String(jsonObject['varietyName']);
329
+ }
330
+
331
+ return jsonObject['varietyName'];
332
+ }();
333
+ }
334
+
335
+ if ('totalWeight' in jsonObject) {
336
+ model.totalWeight = function () {
337
+ if (typeof jsonObject['totalWeight'] !== 'number') {
338
+ return Number(jsonObject['totalWeight']);
339
+ }
340
+
341
+ return jsonObject['totalWeight'];
342
+ }();
343
+ }
344
+
345
+ if ('packrunId' in jsonObject) {
346
+ model.packrunId = function () {
347
+ if (jsonObject['packrunId'] === null) {
348
+ return null;
349
+ }
350
+
351
+ if (typeof jsonObject['packrunId'] !== 'string') {
352
+ return String(jsonObject['packrunId']);
353
+ }
354
+
355
+ return jsonObject['packrunId'];
356
+ }();
357
+ }
358
+
359
+ if ('articleSummaries' in jsonObject) {
360
+ model.articleSummaries = function () {
361
+ if (Array.isArray(jsonObject['articleSummaries']) !== true) {
362
+ return [];
363
+ }
364
+
365
+ return jsonObject['articleSummaries'].map(function (articleSummariesItem) {
366
+ return function () {
367
+ var articleSummariesItemObject = {};
368
+
369
+ if (_typeof(articleSummariesItem) === 'object' && 'name' in articleSummariesItem) {
370
+ articleSummariesItemObject.name = function () {
371
+ if (typeof articleSummariesItem.name !== 'string') {
372
+ return String(articleSummariesItem.name);
373
+ }
374
+
375
+ return articleSummariesItem.name;
376
+ }();
377
+ } else {
378
+ articleSummariesItemObject.name = "";
379
+ }
380
+
381
+ if (_typeof(articleSummariesItem) === 'object' && 'fruitCount' in articleSummariesItem) {
382
+ articleSummariesItemObject.fruitCount = function () {
383
+ if (typeof articleSummariesItem.fruitCount !== 'number') {
384
+ return Number.isInteger(Number(articleSummariesItem.fruitCount)) ? Number(articleSummariesItem.fruitCount) : Math.floor(Number(articleSummariesItem.fruitCount));
385
+ }
386
+
387
+ return Number.isInteger(articleSummariesItem.fruitCount) ? articleSummariesItem.fruitCount : Math.floor(articleSummariesItem.fruitCount);
388
+ }();
389
+ } else {
390
+ articleSummariesItemObject.fruitCount = 0;
391
+ }
392
+
393
+ if (_typeof(articleSummariesItem) === 'object' && 'fruitWeight' in articleSummariesItem) {
394
+ articleSummariesItemObject.fruitWeight = function () {
395
+ if (typeof articleSummariesItem.fruitWeight !== 'number') {
396
+ return Number(articleSummariesItem.fruitWeight);
397
+ }
398
+
399
+ return articleSummariesItem.fruitWeight;
400
+ }();
401
+ } else {
402
+ articleSummariesItemObject.fruitWeight = 0;
403
+ }
404
+
405
+ return articleSummariesItemObject;
406
+ }();
407
+ });
408
+ }();
409
+ }
410
+
411
+ if ('outletSummaries' in jsonObject) {
412
+ model.outletSummaries = function () {
413
+ if (Array.isArray(jsonObject['outletSummaries']) !== true) {
414
+ return [];
415
+ }
416
+
417
+ return jsonObject['outletSummaries'].map(function (outletSummariesItem) {
418
+ return function () {
419
+ var outletSummariesItemObject = {};
420
+
421
+ if (_typeof(outletSummariesItem) === 'object' && 'number' in outletSummariesItem) {
422
+ outletSummariesItemObject.number = function () {
423
+ if (typeof outletSummariesItem.number !== 'number') {
424
+ return Number.isInteger(Number(outletSummariesItem.number)) ? Number(outletSummariesItem.number) : Math.floor(Number(outletSummariesItem.number));
425
+ }
426
+
427
+ return Number.isInteger(outletSummariesItem.number) ? outletSummariesItem.number : Math.floor(outletSummariesItem.number);
428
+ }();
429
+ } else {
430
+ outletSummariesItemObject.number = 0;
431
+ }
432
+
433
+ if (_typeof(outletSummariesItem) === 'object' && 'fruitCount' in outletSummariesItem) {
434
+ outletSummariesItemObject.fruitCount = function () {
435
+ if (typeof outletSummariesItem.fruitCount !== 'number') {
436
+ return Number.isInteger(Number(outletSummariesItem.fruitCount)) ? Number(outletSummariesItem.fruitCount) : Math.floor(Number(outletSummariesItem.fruitCount));
437
+ }
438
+
439
+ return Number.isInteger(outletSummariesItem.fruitCount) ? outletSummariesItem.fruitCount : Math.floor(outletSummariesItem.fruitCount);
440
+ }();
441
+ } else {
442
+ outletSummariesItemObject.fruitCount = 0;
443
+ }
444
+
445
+ if (_typeof(outletSummariesItem) === 'object' && 'fruitWeight' in outletSummariesItem) {
446
+ outletSummariesItemObject.fruitWeight = function () {
447
+ if (typeof outletSummariesItem.fruitWeight !== 'number') {
448
+ return Number(outletSummariesItem.fruitWeight);
449
+ }
450
+
451
+ return outletSummariesItem.fruitWeight;
452
+ }();
453
+ } else {
454
+ outletSummariesItemObject.fruitWeight = 0;
455
+ }
456
+
457
+ return outletSummariesItemObject;
458
+ }();
459
+ });
460
+ }();
461
+ }
462
+
463
+ if ('fruitSummaries' in jsonObject) {
464
+ model.fruitSummaries = function () {
465
+ if (Array.isArray(jsonObject['fruitSummaries']) !== true) {
466
+ return [];
467
+ }
468
+
469
+ return jsonObject['fruitSummaries'].map(function (fruitSummariesItem) {
470
+ return function () {
471
+ var fruitSummariesItemObject = {};
472
+
473
+ if (_typeof(fruitSummariesItem) === 'object' && 'articleName' in fruitSummariesItem) {
474
+ fruitSummariesItemObject.articleName = function () {
475
+ if (typeof fruitSummariesItem.articleName !== 'string') {
476
+ return String(fruitSummariesItem.articleName);
477
+ }
478
+
479
+ return fruitSummariesItem.articleName;
480
+ }();
481
+ } else {
482
+ fruitSummariesItemObject.articleName = "";
483
+ }
484
+
485
+ if (_typeof(fruitSummariesItem) === 'object' && 'fruitSize' in fruitSummariesItem) {
486
+ fruitSummariesItemObject.fruitSize = function () {
487
+ if (typeof fruitSummariesItem.fruitSize !== 'string') {
488
+ return String(fruitSummariesItem.fruitSize);
489
+ }
490
+
491
+ return fruitSummariesItem.fruitSize;
492
+ }();
493
+ } else {
494
+ fruitSummariesItemObject.fruitSize = "";
495
+ }
496
+
497
+ if (_typeof(fruitSummariesItem) === 'object' && 'fruitCount' in fruitSummariesItem) {
498
+ fruitSummariesItemObject.fruitCount = function () {
499
+ if (typeof fruitSummariesItem.fruitCount !== 'number') {
500
+ return Number.isInteger(Number(fruitSummariesItem.fruitCount)) ? Number(fruitSummariesItem.fruitCount) : Math.floor(Number(fruitSummariesItem.fruitCount));
501
+ }
502
+
503
+ return Number.isInteger(fruitSummariesItem.fruitCount) ? fruitSummariesItem.fruitCount : Math.floor(fruitSummariesItem.fruitCount);
504
+ }();
505
+ } else {
506
+ fruitSummariesItemObject.fruitCount = 0;
507
+ }
508
+
509
+ if (_typeof(fruitSummariesItem) === 'object' && 'fruitWeight' in fruitSummariesItem) {
510
+ fruitSummariesItemObject.fruitWeight = function () {
511
+ if (typeof fruitSummariesItem.fruitWeight !== 'number') {
512
+ return Number(fruitSummariesItem.fruitWeight);
513
+ }
514
+
515
+ return fruitSummariesItem.fruitWeight;
516
+ }();
517
+ } else {
518
+ fruitSummariesItemObject.fruitWeight = 0;
519
+ }
520
+
521
+ return fruitSummariesItemObject;
522
+ }();
523
+ });
524
+ }();
525
+ }
526
+
527
+ if ('deleted' in jsonObject) {
528
+ model.deleted = function () {
529
+ if (typeof jsonObject['deleted'] !== 'boolean') {
530
+ return Boolean(jsonObject['deleted']);
531
+ }
532
+
533
+ return jsonObject['deleted'];
534
+ }();
535
+ }
536
+
537
+ if ('updateTimestamp' in jsonObject) {
538
+ model.updateTimestamp = function () {
539
+ if (typeof jsonObject['updateTimestamp'] !== 'string') {
540
+ return new Date(String(jsonObject['updateTimestamp']));
541
+ }
542
+
543
+ return new Date(jsonObject['updateTimestamp']);
544
+ }();
545
+ }
546
+
547
+ return model;
548
+ }
549
+ }]);
550
+
551
+ return MAFSizerBatchModel;
552
+ }(_BaseModel2.default);
553
+
554
+ var _default = MAFSizerBatchModel;
555
+ exports.default = _default;