@ricado/api-client 2.0.2 → 2.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.
Files changed (130) hide show
  1. package/dist/ricado.api.client.js +1 -1
  2. package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
  3. package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
  4. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +4 -4
  5. package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
  6. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
  7. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
  8. package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
  9. package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
  10. package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
  11. package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
  12. package/lib/Controllers/Packhouse/Site/PackTypeController.js +4 -4
  13. package/lib/Controllers/Packhouse/Site/PackingLineController.js +4 -4
  14. package/lib/Controllers/Packhouse/Site/PackrunController.js +4 -4
  15. package/lib/Controllers/Packhouse/Site/RejectBinController.js +4 -4
  16. package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -4
  17. package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
  18. package/lib/Controllers/Packhouse/Site/ShiftController.js +4 -4
  19. package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
  20. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +4 -4
  21. package/lib/Controllers/Packhouse/Site/VarietyController.js +4 -4
  22. package/lib/Controllers/Site/AlarmController.js +4 -4
  23. package/lib/Controllers/Site/AlarmGroupController.js +4 -4
  24. package/lib/Controllers/Site/DefinitionController.js +4 -4
  25. package/lib/Controllers/Site/PermanentObjectController.js +4 -4
  26. package/lib/Controllers/Site/PermanentObjectDataController.js +4 -4
  27. package/lib/Controllers/Site/PointController.js +4 -4
  28. package/lib/Controllers/Site/TemporaryObjectController.js +4 -4
  29. package/lib/Errors/BadRequestError.js +1 -1
  30. package/lib/Errors/ForbiddenError.js +1 -1
  31. package/lib/Errors/NetworkError.js +1 -1
  32. package/lib/Errors/NotAllowedError.js +1 -1
  33. package/lib/Errors/NotFoundError.js +1 -1
  34. package/lib/Errors/ServerError.js +1 -1
  35. package/lib/Errors/UnauthorizedError.js +1 -1
  36. package/lib/Models/AccountPolicyModel.js +1 -1
  37. package/lib/Models/ApiAccountModel.js +1 -1
  38. package/lib/Models/CompanyModel.js +1 -1
  39. package/lib/Models/FirebaseTokenModel.js +1 -1
  40. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +14 -4
  41. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +14 -4
  42. package/lib/Models/Packhouse/Site/CompacSizerModel.js +14 -4
  43. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +14 -4
  44. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +14 -4
  45. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +14 -4
  46. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +14 -4
  47. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -4
  48. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +14 -4
  49. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +14 -4
  50. package/lib/Models/Packhouse/Site/PackTypeModel.js +14 -4
  51. package/lib/Models/Packhouse/Site/PackingLineModel.js +14 -4
  52. package/lib/Models/Packhouse/Site/PackrunModel.js +14 -4
  53. package/lib/Models/Packhouse/Site/RejectBinModel.js +14 -4
  54. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +14 -4
  55. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +14 -4
  56. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +14 -4
  57. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +14 -4
  58. package/lib/Models/Packhouse/Site/ShiftModel.js +14 -4
  59. package/lib/Models/Packhouse/Site/VarietyModel.js +14 -4
  60. package/lib/Models/RTUModel.js +1 -1
  61. package/lib/Models/RTUPluginModel.js +1 -1
  62. package/lib/Models/Site/AlarmGroupModel.js +14 -4
  63. package/lib/Models/Site/AlarmModel.js +14 -4
  64. package/lib/Models/Site/DefinitionModel.js +14 -4
  65. package/lib/Models/Site/PermanentObjectDataModel.js +14 -4
  66. package/lib/Models/Site/PermanentObjectModel.js +14 -4
  67. package/lib/Models/Site/PointModel.js +14 -4
  68. package/lib/Models/Site/TemporaryObjectModel.js +14 -4
  69. package/lib/Models/SiteModel.js +1 -1
  70. package/lib/Models/TokenModel.js +1 -1
  71. package/lib/Models/UserAccountActionTokenModel.js +1 -1
  72. package/lib/Models/UserAccountModel.js +1 -1
  73. package/lib/PackageVersion.js +1 -1
  74. package/lib/index.d.ts +432 -27
  75. package/package.json +1 -1
  76. package/src/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
  77. package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
  78. package/src/Controllers/Packhouse/Site/CompacSizerController.js +4 -4
  79. package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
  80. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
  81. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
  82. package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
  83. package/src/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
  84. package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
  85. package/src/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
  86. package/src/Controllers/Packhouse/Site/PackTypeController.js +4 -4
  87. package/src/Controllers/Packhouse/Site/PackingLineController.js +4 -4
  88. package/src/Controllers/Packhouse/Site/PackrunController.js +4 -4
  89. package/src/Controllers/Packhouse/Site/RejectBinController.js +4 -4
  90. package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -4
  91. package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
  92. package/src/Controllers/Packhouse/Site/ShiftController.js +4 -4
  93. package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
  94. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +4 -4
  95. package/src/Controllers/Packhouse/Site/VarietyController.js +4 -4
  96. package/src/Controllers/Site/AlarmController.js +4 -4
  97. package/src/Controllers/Site/AlarmGroupController.js +4 -4
  98. package/src/Controllers/Site/DefinitionController.js +4 -4
  99. package/src/Controllers/Site/PermanentObjectController.js +4 -4
  100. package/src/Controllers/Site/PermanentObjectDataController.js +4 -4
  101. package/src/Controllers/Site/PointController.js +4 -4
  102. package/src/Controllers/Site/TemporaryObjectController.js +4 -4
  103. package/src/Models/Packhouse/Site/BinTipWeightModel.js +13 -3
  104. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +13 -3
  105. package/src/Models/Packhouse/Site/CompacSizerModel.js +13 -3
  106. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +13 -3
  107. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +13 -3
  108. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +13 -3
  109. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +13 -3
  110. package/src/Models/Packhouse/Site/DowntimeEventModel.js +13 -3
  111. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +13 -3
  112. package/src/Models/Packhouse/Site/GrowingMethodModel.js +13 -3
  113. package/src/Models/Packhouse/Site/PackTypeModel.js +13 -3
  114. package/src/Models/Packhouse/Site/PackingLineModel.js +13 -3
  115. package/src/Models/Packhouse/Site/PackrunModel.js +13 -3
  116. package/src/Models/Packhouse/Site/RejectBinModel.js +13 -3
  117. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +13 -3
  118. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +13 -3
  119. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +13 -3
  120. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +13 -3
  121. package/src/Models/Packhouse/Site/ShiftModel.js +13 -3
  122. package/src/Models/Packhouse/Site/VarietyModel.js +13 -3
  123. package/src/Models/Site/AlarmGroupModel.js +13 -3
  124. package/src/Models/Site/AlarmModel.js +13 -3
  125. package/src/Models/Site/DefinitionModel.js +13 -3
  126. package/src/Models/Site/PermanentObjectDataModel.js +13 -3
  127. package/src/Models/Site/PermanentObjectModel.js +13 -3
  128. package/src/Models/Site/PointModel.js +13 -3
  129. package/src/Models/Site/TemporaryObjectModel.js +13 -3
  130. package/src/PackageVersion.js +1 -1
@@ -45,7 +45,7 @@ var ShiftFocusMeetingController = /*#__PURE__*/function () {
45
45
  return new Promise(function (resolve, reject) {
46
46
  _RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/shift-focus-meetings/").concat(id)).then(function (result) {
47
47
  var resolveValue = function () {
48
- return _ShiftFocusMeetingModel.default.fromJSON(result);
48
+ return _ShiftFocusMeetingModel.default.fromJSON(result, siteId);
49
49
  }();
50
50
 
51
51
  resolve(resolveValue);
@@ -71,7 +71,7 @@ var ShiftFocusMeetingController = /*#__PURE__*/function () {
71
71
  return new Promise(function (resolve, reject) {
72
72
  _RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/shift-focus-meetings/").concat(id), updateData).then(function (result) {
73
73
  var resolveValue = function () {
74
- return _ShiftFocusMeetingModel.default.fromJSON(result);
74
+ return _ShiftFocusMeetingModel.default.fromJSON(result, siteId);
75
75
  }();
76
76
 
77
77
  resolve(resolveValue);
@@ -520,7 +520,7 @@ var ShiftFocusMeetingController = /*#__PURE__*/function () {
520
520
 
521
521
  return result.map(function (resultItem) {
522
522
  return function () {
523
- return _ShiftFocusMeetingModel.default.fromJSON(resultItem);
523
+ return _ShiftFocusMeetingModel.default.fromJSON(resultItem, siteId);
524
524
  }();
525
525
  });
526
526
  }();
@@ -547,7 +547,7 @@ var ShiftFocusMeetingController = /*#__PURE__*/function () {
547
547
  return new Promise(function (resolve, reject) {
548
548
  _RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/shift-focus-meetings"), createData).then(function (result) {
549
549
  var resolveValue = function () {
550
- return _ShiftFocusMeetingModel.default.fromJSON(result);
550
+ return _ShiftFocusMeetingModel.default.fromJSON(result, siteId);
551
551
  }();
552
552
 
553
553
  resolve(resolveValue);
@@ -45,7 +45,7 @@ var ShiftHourlyEntryController = /*#__PURE__*/function () {
45
45
  return new Promise(function (resolve, reject) {
46
46
  _RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/shift-hourly-entries/").concat(id)).then(function (result) {
47
47
  var resolveValue = function () {
48
- return _ShiftHourlyEntryModel.default.fromJSON(result);
48
+ return _ShiftHourlyEntryModel.default.fromJSON(result, siteId);
49
49
  }();
50
50
 
51
51
  resolve(resolveValue);
@@ -71,7 +71,7 @@ var ShiftHourlyEntryController = /*#__PURE__*/function () {
71
71
  return new Promise(function (resolve, reject) {
72
72
  _RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/shift-hourly-entries/").concat(id), updateData).then(function (result) {
73
73
  var resolveValue = function () {
74
- return _ShiftHourlyEntryModel.default.fromJSON(result);
74
+ return _ShiftHourlyEntryModel.default.fromJSON(result, siteId);
75
75
  }();
76
76
 
77
77
  resolve(resolveValue);
@@ -520,7 +520,7 @@ var ShiftHourlyEntryController = /*#__PURE__*/function () {
520
520
 
521
521
  return result.map(function (resultItem) {
522
522
  return function () {
523
- return _ShiftHourlyEntryModel.default.fromJSON(resultItem);
523
+ return _ShiftHourlyEntryModel.default.fromJSON(resultItem, siteId);
524
524
  }();
525
525
  });
526
526
  }();
@@ -547,7 +547,7 @@ var ShiftHourlyEntryController = /*#__PURE__*/function () {
547
547
  return new Promise(function (resolve, reject) {
548
548
  _RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/shift-hourly-entries"), createData).then(function (result) {
549
549
  var resolveValue = function () {
550
- return _ShiftHourlyEntryModel.default.fromJSON(result);
550
+ return _ShiftHourlyEntryModel.default.fromJSON(result, siteId);
551
551
  }();
552
552
 
553
553
  resolve(resolveValue);
@@ -43,7 +43,7 @@ var VarietyController = /*#__PURE__*/function () {
43
43
  return new Promise(function (resolve, reject) {
44
44
  _RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/varieties/").concat(id)).then(function (result) {
45
45
  var resolveValue = function () {
46
- return _VarietyModel.default.fromJSON(result);
46
+ return _VarietyModel.default.fromJSON(result, siteId);
47
47
  }();
48
48
 
49
49
  resolve(resolveValue);
@@ -69,7 +69,7 @@ var VarietyController = /*#__PURE__*/function () {
69
69
  return new Promise(function (resolve, reject) {
70
70
  _RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/varieties/").concat(id), updateData).then(function (result) {
71
71
  var resolveValue = function () {
72
- return _VarietyModel.default.fromJSON(result);
72
+ return _VarietyModel.default.fromJSON(result, siteId);
73
73
  }();
74
74
 
75
75
  resolve(resolveValue);
@@ -122,7 +122,7 @@ var VarietyController = /*#__PURE__*/function () {
122
122
 
123
123
  return result.map(function (resultItem) {
124
124
  return function () {
125
- return _VarietyModel.default.fromJSON(resultItem);
125
+ return _VarietyModel.default.fromJSON(resultItem, siteId);
126
126
  }();
127
127
  });
128
128
  }();
@@ -149,7 +149,7 @@ var VarietyController = /*#__PURE__*/function () {
149
149
  return new Promise(function (resolve, reject) {
150
150
  _RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/varieties"), createData).then(function (result) {
151
151
  var resolveValue = function () {
152
- return _VarietyModel.default.fromJSON(result);
152
+ return _VarietyModel.default.fromJSON(result, siteId);
153
153
  }();
154
154
 
155
155
  resolve(resolveValue);
@@ -45,7 +45,7 @@ var AlarmController = /*#__PURE__*/function () {
45
45
  return new Promise(function (resolve, reject) {
46
46
  _RequestHelper.default.getRequest("/sites/".concat(siteId, "/alarms/").concat(id)).then(function (result) {
47
47
  var resolveValue = function () {
48
- return _AlarmModel.default.fromJSON(result);
48
+ return _AlarmModel.default.fromJSON(result, siteId);
49
49
  }();
50
50
 
51
51
  resolve(resolveValue);
@@ -71,7 +71,7 @@ var AlarmController = /*#__PURE__*/function () {
71
71
  return new Promise(function (resolve, reject) {
72
72
  _RequestHelper.default.patchRequest("/sites/".concat(siteId, "/alarms/").concat(id), updateData).then(function (result) {
73
73
  var resolveValue = function () {
74
- return _AlarmModel.default.fromJSON(result);
74
+ return _AlarmModel.default.fromJSON(result, siteId);
75
75
  }();
76
76
 
77
77
  resolve(resolveValue);
@@ -215,7 +215,7 @@ var AlarmController = /*#__PURE__*/function () {
215
215
 
216
216
  return result.map(function (resultItem) {
217
217
  return function () {
218
- return _AlarmModel.default.fromJSON(resultItem);
218
+ return _AlarmModel.default.fromJSON(resultItem, siteId);
219
219
  }();
220
220
  });
221
221
  }();
@@ -242,7 +242,7 @@ var AlarmController = /*#__PURE__*/function () {
242
242
  return new Promise(function (resolve, reject) {
243
243
  _RequestHelper.default.postRequest("/sites/".concat(siteId, "/alarms"), createData).then(function (result) {
244
244
  var resolveValue = function () {
245
- return _AlarmModel.default.fromJSON(result);
245
+ return _AlarmModel.default.fromJSON(result, siteId);
246
246
  }();
247
247
 
248
248
  resolve(resolveValue);
@@ -43,7 +43,7 @@ var AlarmGroupController = /*#__PURE__*/function () {
43
43
  return new Promise(function (resolve, reject) {
44
44
  _RequestHelper.default.getRequest("/sites/".concat(siteId, "/alarm-groups/").concat(id)).then(function (result) {
45
45
  var resolveValue = function () {
46
- return _AlarmGroupModel.default.fromJSON(result);
46
+ return _AlarmGroupModel.default.fromJSON(result, siteId);
47
47
  }();
48
48
 
49
49
  resolve(resolveValue);
@@ -69,7 +69,7 @@ var AlarmGroupController = /*#__PURE__*/function () {
69
69
  return new Promise(function (resolve, reject) {
70
70
  _RequestHelper.default.patchRequest("/sites/".concat(siteId, "/alarm-groups/").concat(id), updateData).then(function (result) {
71
71
  var resolveValue = function () {
72
- return _AlarmGroupModel.default.fromJSON(result);
72
+ return _AlarmGroupModel.default.fromJSON(result, siteId);
73
73
  }();
74
74
 
75
75
  resolve(resolveValue);
@@ -122,7 +122,7 @@ var AlarmGroupController = /*#__PURE__*/function () {
122
122
 
123
123
  return result.map(function (resultItem) {
124
124
  return function () {
125
- return _AlarmGroupModel.default.fromJSON(resultItem);
125
+ return _AlarmGroupModel.default.fromJSON(resultItem, siteId);
126
126
  }();
127
127
  });
128
128
  }();
@@ -149,7 +149,7 @@ var AlarmGroupController = /*#__PURE__*/function () {
149
149
  return new Promise(function (resolve, reject) {
150
150
  _RequestHelper.default.postRequest("/sites/".concat(siteId, "/alarm-groups"), createData).then(function (result) {
151
151
  var resolveValue = function () {
152
- return _AlarmGroupModel.default.fromJSON(result);
152
+ return _AlarmGroupModel.default.fromJSON(result, siteId);
153
153
  }();
154
154
 
155
155
  resolve(resolveValue);
@@ -43,7 +43,7 @@ var DefinitionController = /*#__PURE__*/function () {
43
43
  return new Promise(function (resolve, reject) {
44
44
  _RequestHelper.default.getRequest("/sites/".concat(siteId, "/definitions/").concat(id)).then(function (result) {
45
45
  var resolveValue = function () {
46
- return _DefinitionModel.default.fromJSON(result);
46
+ return _DefinitionModel.default.fromJSON(result, siteId);
47
47
  }();
48
48
 
49
49
  resolve(resolveValue);
@@ -69,7 +69,7 @@ var DefinitionController = /*#__PURE__*/function () {
69
69
  return new Promise(function (resolve, reject) {
70
70
  _RequestHelper.default.patchRequest("/sites/".concat(siteId, "/definitions/").concat(id), updateData).then(function (result) {
71
71
  var resolveValue = function () {
72
- return _DefinitionModel.default.fromJSON(result);
72
+ return _DefinitionModel.default.fromJSON(result, siteId);
73
73
  }();
74
74
 
75
75
  resolve(resolveValue);
@@ -122,7 +122,7 @@ var DefinitionController = /*#__PURE__*/function () {
122
122
 
123
123
  return result.map(function (resultItem) {
124
124
  return function () {
125
- return _DefinitionModel.default.fromJSON(resultItem);
125
+ return _DefinitionModel.default.fromJSON(resultItem, siteId);
126
126
  }();
127
127
  });
128
128
  }();
@@ -149,7 +149,7 @@ var DefinitionController = /*#__PURE__*/function () {
149
149
  return new Promise(function (resolve, reject) {
150
150
  _RequestHelper.default.postRequest("/sites/".concat(siteId, "/definitions"), createData).then(function (result) {
151
151
  var resolveValue = function () {
152
- return _DefinitionModel.default.fromJSON(result);
152
+ return _DefinitionModel.default.fromJSON(result, siteId);
153
153
  }();
154
154
 
155
155
  resolve(resolveValue);
@@ -43,7 +43,7 @@ var PermanentObjectController = /*#__PURE__*/function () {
43
43
  return new Promise(function (resolve, reject) {
44
44
  _RequestHelper.default.getRequest("/sites/".concat(siteId, "/permanent-objects/").concat(id)).then(function (result) {
45
45
  var resolveValue = function () {
46
- return _PermanentObjectModel.default.fromJSON(result);
46
+ return _PermanentObjectModel.default.fromJSON(result, siteId);
47
47
  }();
48
48
 
49
49
  resolve(resolveValue);
@@ -69,7 +69,7 @@ var PermanentObjectController = /*#__PURE__*/function () {
69
69
  return new Promise(function (resolve, reject) {
70
70
  _RequestHelper.default.patchRequest("/sites/".concat(siteId, "/permanent-objects/").concat(id), updateData).then(function (result) {
71
71
  var resolveValue = function () {
72
- return _PermanentObjectModel.default.fromJSON(result);
72
+ return _PermanentObjectModel.default.fromJSON(result, siteId);
73
73
  }();
74
74
 
75
75
  resolve(resolveValue);
@@ -122,7 +122,7 @@ var PermanentObjectController = /*#__PURE__*/function () {
122
122
 
123
123
  return result.map(function (resultItem) {
124
124
  return function () {
125
- return _PermanentObjectModel.default.fromJSON(resultItem);
125
+ return _PermanentObjectModel.default.fromJSON(resultItem, siteId);
126
126
  }();
127
127
  });
128
128
  }();
@@ -149,7 +149,7 @@ var PermanentObjectController = /*#__PURE__*/function () {
149
149
  return new Promise(function (resolve, reject) {
150
150
  _RequestHelper.default.postRequest("/sites/".concat(siteId, "/permanent-objects"), createData).then(function (result) {
151
151
  var resolveValue = function () {
152
- return _PermanentObjectModel.default.fromJSON(result);
152
+ return _PermanentObjectModel.default.fromJSON(result, siteId);
153
153
  }();
154
154
 
155
155
  resolve(resolveValue);
@@ -45,7 +45,7 @@ var PermanentObjectDataController = /*#__PURE__*/function () {
45
45
  return new Promise(function (resolve, reject) {
46
46
  _RequestHelper.default.getRequest("/sites/".concat(siteId, "/permanent-object-data/").concat(id)).then(function (result) {
47
47
  var resolveValue = function () {
48
- return _PermanentObjectDataModel.default.fromJSON(result);
48
+ return _PermanentObjectDataModel.default.fromJSON(result, siteId);
49
49
  }();
50
50
 
51
51
  resolve(resolveValue);
@@ -71,7 +71,7 @@ var PermanentObjectDataController = /*#__PURE__*/function () {
71
71
  return new Promise(function (resolve, reject) {
72
72
  _RequestHelper.default.patchRequest("/sites/".concat(siteId, "/permanent-object-data/").concat(id), updateData).then(function (result) {
73
73
  var resolveValue = function () {
74
- return _PermanentObjectDataModel.default.fromJSON(result);
74
+ return _PermanentObjectDataModel.default.fromJSON(result, siteId);
75
75
  }();
76
76
 
77
77
  resolve(resolveValue);
@@ -520,7 +520,7 @@ var PermanentObjectDataController = /*#__PURE__*/function () {
520
520
 
521
521
  return result.map(function (resultItem) {
522
522
  return function () {
523
- return _PermanentObjectDataModel.default.fromJSON(resultItem);
523
+ return _PermanentObjectDataModel.default.fromJSON(resultItem, siteId);
524
524
  }();
525
525
  });
526
526
  }();
@@ -547,7 +547,7 @@ var PermanentObjectDataController = /*#__PURE__*/function () {
547
547
  return new Promise(function (resolve, reject) {
548
548
  _RequestHelper.default.postRequest("/sites/".concat(siteId, "/permanent-object-data"), createData).then(function (result) {
549
549
  var resolveValue = function () {
550
- return _PermanentObjectDataModel.default.fromJSON(result);
550
+ return _PermanentObjectDataModel.default.fromJSON(result, siteId);
551
551
  }();
552
552
 
553
553
  resolve(resolveValue);
@@ -338,7 +338,7 @@ var PointController = /*#__PURE__*/function () {
338
338
  return new Promise(function (resolve, reject) {
339
339
  _RequestHelper.default.getRequest("/sites/".concat(siteId, "/points/").concat(id)).then(function (result) {
340
340
  var resolveValue = function () {
341
- return _PointModel.default.fromJSON(result);
341
+ return _PointModel.default.fromJSON(result, siteId);
342
342
  }();
343
343
 
344
344
  resolve(resolveValue);
@@ -364,7 +364,7 @@ var PointController = /*#__PURE__*/function () {
364
364
  return new Promise(function (resolve, reject) {
365
365
  _RequestHelper.default.patchRequest("/sites/".concat(siteId, "/points/").concat(id), updateData).then(function (result) {
366
366
  var resolveValue = function () {
367
- return _PointModel.default.fromJSON(result);
367
+ return _PointModel.default.fromJSON(result, siteId);
368
368
  }();
369
369
 
370
370
  resolve(resolveValue);
@@ -417,7 +417,7 @@ var PointController = /*#__PURE__*/function () {
417
417
 
418
418
  return result.map(function (resultItem) {
419
419
  return function () {
420
- return _PointModel.default.fromJSON(resultItem);
420
+ return _PointModel.default.fromJSON(resultItem, siteId);
421
421
  }();
422
422
  });
423
423
  }();
@@ -444,7 +444,7 @@ var PointController = /*#__PURE__*/function () {
444
444
  return new Promise(function (resolve, reject) {
445
445
  _RequestHelper.default.postRequest("/sites/".concat(siteId, "/points"), createData).then(function (result) {
446
446
  var resolveValue = function () {
447
- return _PointModel.default.fromJSON(result);
447
+ return _PointModel.default.fromJSON(result, siteId);
448
448
  }();
449
449
 
450
450
  resolve(resolveValue);
@@ -43,7 +43,7 @@ var TemporaryObjectController = /*#__PURE__*/function () {
43
43
  return new Promise(function (resolve, reject) {
44
44
  _RequestHelper.default.getRequest("/sites/".concat(siteId, "/temporary-objects/").concat(id)).then(function (result) {
45
45
  var resolveValue = function () {
46
- return _TemporaryObjectModel.default.fromJSON(result);
46
+ return _TemporaryObjectModel.default.fromJSON(result, siteId);
47
47
  }();
48
48
 
49
49
  resolve(resolveValue);
@@ -69,7 +69,7 @@ var TemporaryObjectController = /*#__PURE__*/function () {
69
69
  return new Promise(function (resolve, reject) {
70
70
  _RequestHelper.default.patchRequest("/sites/".concat(siteId, "/temporary-objects/").concat(id), updateData).then(function (result) {
71
71
  var resolveValue = function () {
72
- return _TemporaryObjectModel.default.fromJSON(result);
72
+ return _TemporaryObjectModel.default.fromJSON(result, siteId);
73
73
  }();
74
74
 
75
75
  resolve(resolveValue);
@@ -122,7 +122,7 @@ var TemporaryObjectController = /*#__PURE__*/function () {
122
122
 
123
123
  return result.map(function (resultItem) {
124
124
  return function () {
125
- return _TemporaryObjectModel.default.fromJSON(resultItem);
125
+ return _TemporaryObjectModel.default.fromJSON(resultItem, siteId);
126
126
  }();
127
127
  });
128
128
  }();
@@ -149,7 +149,7 @@ var TemporaryObjectController = /*#__PURE__*/function () {
149
149
  return new Promise(function (resolve, reject) {
150
150
  _RequestHelper.default.postRequest("/sites/".concat(siteId, "/temporary-objects"), createData).then(function (result) {
151
151
  var resolveValue = function () {
152
- return _TemporaryObjectModel.default.fromJSON(result);
152
+ return _TemporaryObjectModel.default.fromJSON(result, siteId);
153
153
  }();
154
154
 
155
155
  resolve(resolveValue);
@@ -13,7 +13,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
13
13
 
14
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
15
 
16
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
16
+ 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); }
17
17
 
18
18
  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); }; }
19
19
 
@@ -13,7 +13,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
13
13
 
14
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
15
 
16
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
16
+ 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); }
17
17
 
18
18
  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); }; }
19
19
 
@@ -13,7 +13,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
13
13
 
14
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
15
 
16
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
16
+ 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); }
17
17
 
18
18
  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); }; }
19
19
 
@@ -13,7 +13,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
13
13
 
14
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
15
 
16
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
16
+ 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); }
17
17
 
18
18
  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); }; }
19
19
 
@@ -13,7 +13,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
13
13
 
14
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
15
 
16
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
16
+ 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); }
17
17
 
18
18
  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); }; }
19
19
 
@@ -13,7 +13,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
13
13
 
14
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
15
 
16
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
16
+ 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); }
17
17
 
18
18
  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); }; }
19
19
 
@@ -13,7 +13,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
13
13
 
14
14
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
15
 
16
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
16
+ 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); }
17
17
 
18
18
  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); }; }
19
19
 
@@ -17,7 +17,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
17
17
 
18
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
19
 
20
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
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
21
 
22
22
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
23
 
@@ -17,7 +17,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
17
17
 
18
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
19
 
20
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
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
21
 
22
22
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
23
 
@@ -17,7 +17,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
17
17
 
18
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
19
 
20
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
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
21
 
22
22
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
23
 
@@ -17,7 +17,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
17
17
 
18
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
19
 
20
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
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
21
 
22
22
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
23
 
@@ -17,7 +17,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
17
17
 
18
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
19
 
20
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
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
21
 
22
22
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
23
 
@@ -47,8 +47,9 @@ var BinTipWeightModel = /*#__PURE__*/function (_BaseModel) {
47
47
  * BinTipWeightModel Constructor
48
48
  *
49
49
  * @protected
50
+ * @param {number} siteId The Site ID associated with this Bin Tip Weight
50
51
  */
51
- function BinTipWeightModel() {
52
+ function BinTipWeightModel(siteId) {
52
53
  var _this;
53
54
 
54
55
  _classCallCheck(this, BinTipWeightModel);
@@ -126,6 +127,14 @@ var BinTipWeightModel = /*#__PURE__*/function (_BaseModel) {
126
127
  */
127
128
 
128
129
  _this.updateTimestamp = undefined;
130
+ /**
131
+ * The Site ID associated with this Bin Tip Weight
132
+ *
133
+ * @type {number}
134
+ * @public
135
+ */
136
+
137
+ _this.siteId = siteId;
129
138
  return _this;
130
139
  }
131
140
  /**
@@ -134,14 +143,15 @@ var BinTipWeightModel = /*#__PURE__*/function (_BaseModel) {
134
143
  * @static
135
144
  * @public
136
145
  * @param {Object<string, any>|string} json A JSON Object or JSON String
146
+ * @param {number} siteId The Site ID associated with this Bin Tip Weight
137
147
  * @return {BinTipWeightModel}
138
148
  */
139
149
 
140
150
 
141
151
  _createClass(BinTipWeightModel, null, [{
142
152
  key: "fromJSON",
143
- value: function fromJSON(json) {
144
- var model = new BinTipWeightModel();
153
+ value: function fromJSON(json, siteId) {
154
+ var model = new BinTipWeightModel(siteId);
145
155
  /**
146
156
  * The JSON Object
147
157
  *
@@ -17,7 +17,7 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
17
17
 
18
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
19
 
20
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
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
21
 
22
22
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
23
 
@@ -47,8 +47,9 @@ var CompacSizerBatchModel = /*#__PURE__*/function (_BaseModel) {
47
47
  * CompacSizerBatchModel Constructor
48
48
  *
49
49
  * @protected
50
+ * @param {number} siteId The Site ID associated with this Compac Sizer Batch
50
51
  */
51
- function CompacSizerBatchModel() {
52
+ function CompacSizerBatchModel(siteId) {
52
53
  var _this;
53
54
 
54
55
  _classCallCheck(this, CompacSizerBatchModel);
@@ -118,6 +119,14 @@ var CompacSizerBatchModel = /*#__PURE__*/function (_BaseModel) {
118
119
  */
119
120
 
120
121
  _this.updateTimestamp = undefined;
122
+ /**
123
+ * The Site ID associated with this Compac Sizer Batch
124
+ *
125
+ * @type {number}
126
+ * @public
127
+ */
128
+
129
+ _this.siteId = siteId;
121
130
  return _this;
122
131
  }
123
132
  /**
@@ -126,14 +135,15 @@ var CompacSizerBatchModel = /*#__PURE__*/function (_BaseModel) {
126
135
  * @static
127
136
  * @public
128
137
  * @param {Object<string, any>|string} json A JSON Object or JSON String
138
+ * @param {number} siteId The Site ID associated with this Compac Sizer Batch
129
139
  * @return {CompacSizerBatchModel}
130
140
  */
131
141
 
132
142
 
133
143
  _createClass(CompacSizerBatchModel, null, [{
134
144
  key: "fromJSON",
135
- value: function fromJSON(json) {
136
- var model = new CompacSizerBatchModel();
145
+ value: function fromJSON(json, siteId) {
146
+ var model = new CompacSizerBatchModel(siteId);
137
147
  /**
138
148
  * The JSON Object
139
149
  *