@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
@@ -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 RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
47
47
  * RejectBinScaleModel Constructor
48
48
  *
49
49
  * @protected
50
+ * @param {number} siteId The Site ID associated with this Reject Bin Scale
50
51
  */
51
- function RejectBinScaleModel() {
52
+ function RejectBinScaleModel(siteId) {
52
53
  var _this;
53
54
 
54
55
  _classCallCheck(this, RejectBinScaleModel);
@@ -150,6 +151,14 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
150
151
  */
151
152
 
152
153
  _this.updateTimestamp = undefined;
154
+ /**
155
+ * The Site ID associated with this Reject Bin Scale
156
+ *
157
+ * @type {number}
158
+ * @public
159
+ */
160
+
161
+ _this.siteId = siteId;
153
162
  return _this;
154
163
  }
155
164
  /**
@@ -158,14 +167,15 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
158
167
  * @static
159
168
  * @public
160
169
  * @param {Object<string, any>|string} json A JSON Object or JSON String
170
+ * @param {number} siteId The Site ID associated with this Reject Bin Scale
161
171
  * @return {RejectBinScaleModel}
162
172
  */
163
173
 
164
174
 
165
175
  _createClass(RejectBinScaleModel, null, [{
166
176
  key: "fromJSON",
167
- value: function fromJSON(json) {
168
- var model = new RejectBinScaleModel();
177
+ value: function fromJSON(json, siteId) {
178
+ var model = new RejectBinScaleModel(siteId);
169
179
  /**
170
180
  * The JSON Object
171
181
  *
@@ -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 RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
47
47
  * RejectBinWeightModel Constructor
48
48
  *
49
49
  * @protected
50
+ * @param {number} siteId The Site ID associated with this Reject Bin Weight
50
51
  */
51
- function RejectBinWeightModel() {
52
+ function RejectBinWeightModel(siteId) {
52
53
  var _this;
53
54
 
54
55
  _classCallCheck(this, RejectBinWeightModel);
@@ -134,6 +135,14 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
134
135
  */
135
136
 
136
137
  _this.updateTimestamp = undefined;
138
+ /**
139
+ * The Site ID associated with this Reject Bin Weight
140
+ *
141
+ * @type {number}
142
+ * @public
143
+ */
144
+
145
+ _this.siteId = siteId;
137
146
  return _this;
138
147
  }
139
148
  /**
@@ -142,14 +151,15 @@ var RejectBinWeightModel = /*#__PURE__*/function (_BaseModel) {
142
151
  * @static
143
152
  * @public
144
153
  * @param {Object<string, any>|string} json A JSON Object or JSON String
154
+ * @param {number} siteId The Site ID associated with this Reject Bin Weight
145
155
  * @return {RejectBinWeightModel}
146
156
  */
147
157
 
148
158
 
149
159
  _createClass(RejectBinWeightModel, null, [{
150
160
  key: "fromJSON",
151
- value: function fromJSON(json) {
152
- var model = new RejectBinWeightModel();
161
+ value: function fromJSON(json, siteId) {
162
+ var model = new RejectBinWeightModel(siteId);
153
163
  /**
154
164
  * The JSON Object
155
165
  *
@@ -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 ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
47
47
  * ShiftFocusMeetingModel Constructor
48
48
  *
49
49
  * @protected
50
+ * @param {number} siteId The Site ID associated with this Shift Focus Meeting
50
51
  */
51
- function ShiftFocusMeetingModel() {
52
+ function ShiftFocusMeetingModel(siteId) {
52
53
  var _this;
53
54
 
54
55
  _classCallCheck(this, ShiftFocusMeetingModel);
@@ -150,6 +151,14 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
150
151
  */
151
152
 
152
153
  _this.updateTimestamp = undefined;
154
+ /**
155
+ * The Site ID associated with this Shift Focus Meeting
156
+ *
157
+ * @type {number}
158
+ * @public
159
+ */
160
+
161
+ _this.siteId = siteId;
153
162
  return _this;
154
163
  }
155
164
  /**
@@ -158,14 +167,15 @@ var ShiftFocusMeetingModel = /*#__PURE__*/function (_BaseModel) {
158
167
  * @static
159
168
  * @public
160
169
  * @param {Object<string, any>|string} json A JSON Object or JSON String
170
+ * @param {number} siteId The Site ID associated with this Shift Focus Meeting
161
171
  * @return {ShiftFocusMeetingModel}
162
172
  */
163
173
 
164
174
 
165
175
  _createClass(ShiftFocusMeetingModel, null, [{
166
176
  key: "fromJSON",
167
- value: function fromJSON(json) {
168
- var model = new ShiftFocusMeetingModel();
177
+ value: function fromJSON(json, siteId) {
178
+ var model = new ShiftFocusMeetingModel(siteId);
169
179
  /**
170
180
  * The JSON Object
171
181
  *
@@ -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 ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
47
47
  * ShiftHourlyEntryModel Constructor
48
48
  *
49
49
  * @protected
50
+ * @param {number} siteId The Site ID associated with this Shift Hourly Entry
50
51
  */
51
- function ShiftHourlyEntryModel() {
52
+ function ShiftHourlyEntryModel(siteId) {
52
53
  var _this;
53
54
 
54
55
  _classCallCheck(this, ShiftHourlyEntryModel);
@@ -350,6 +351,14 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
350
351
  */
351
352
 
352
353
  _this.updateTimestamp = undefined;
354
+ /**
355
+ * The Site ID associated with this Shift Hourly Entry
356
+ *
357
+ * @type {number}
358
+ * @public
359
+ */
360
+
361
+ _this.siteId = siteId;
353
362
  return _this;
354
363
  }
355
364
  /**
@@ -358,14 +367,15 @@ var ShiftHourlyEntryModel = /*#__PURE__*/function (_BaseModel) {
358
367
  * @static
359
368
  * @public
360
369
  * @param {Object<string, any>|string} json A JSON Object or JSON String
370
+ * @param {number} siteId The Site ID associated with this Shift Hourly Entry
361
371
  * @return {ShiftHourlyEntryModel}
362
372
  */
363
373
 
364
374
 
365
375
  _createClass(ShiftHourlyEntryModel, null, [{
366
376
  key: "fromJSON",
367
- value: function fromJSON(json) {
368
- var model = new ShiftHourlyEntryModel();
377
+ value: function fromJSON(json, siteId) {
378
+ var model = new ShiftHourlyEntryModel(siteId);
369
379
  /**
370
380
  * The JSON Object
371
381
  *
@@ -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 ShiftModel = /*#__PURE__*/function (_BaseModel) {
47
47
  * ShiftModel Constructor
48
48
  *
49
49
  * @protected
50
+ * @param {number} siteId The Site ID associated with this Shift
50
51
  */
51
- function ShiftModel() {
52
+ function ShiftModel(siteId) {
52
53
  var _this;
53
54
 
54
55
  _classCallCheck(this, ShiftModel);
@@ -206,6 +207,14 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
206
207
  */
207
208
 
208
209
  _this.updateTimestamp = undefined;
210
+ /**
211
+ * The Site ID associated with this Shift
212
+ *
213
+ * @type {number}
214
+ * @public
215
+ */
216
+
217
+ _this.siteId = siteId;
209
218
  return _this;
210
219
  }
211
220
  /**
@@ -214,14 +223,15 @@ var ShiftModel = /*#__PURE__*/function (_BaseModel) {
214
223
  * @static
215
224
  * @public
216
225
  * @param {Object<string, any>|string} json A JSON Object or JSON String
226
+ * @param {number} siteId The Site ID associated with this Shift
217
227
  * @return {ShiftModel}
218
228
  */
219
229
 
220
230
 
221
231
  _createClass(ShiftModel, null, [{
222
232
  key: "fromJSON",
223
- value: function fromJSON(json) {
224
- var model = new ShiftModel();
233
+ value: function fromJSON(json, siteId) {
234
+ var model = new ShiftModel(siteId);
225
235
  /**
226
236
  * The JSON Object
227
237
  *
@@ -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 VarietyModel = /*#__PURE__*/function (_BaseModel) {
47
47
  * VarietyModel Constructor
48
48
  *
49
49
  * @protected
50
+ * @param {number} siteId The Site ID associated with this Variety
50
51
  */
51
- function VarietyModel() {
52
+ function VarietyModel(siteId) {
52
53
  var _this;
53
54
 
54
55
  _classCallCheck(this, VarietyModel);
@@ -118,6 +119,14 @@ var VarietyModel = /*#__PURE__*/function (_BaseModel) {
118
119
  */
119
120
 
120
121
  _this.updateTimestamp = undefined;
122
+ /**
123
+ * The Site ID associated with this Variety
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 VarietyModel = /*#__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 Variety
129
139
  * @return {VarietyModel}
130
140
  */
131
141
 
132
142
 
133
143
  _createClass(VarietyModel, null, [{
134
144
  key: "fromJSON",
135
- value: function fromJSON(json) {
136
- var model = new VarietyModel();
145
+ value: function fromJSON(json, siteId) {
146
+ var model = new VarietyModel(siteId);
137
147
  /**
138
148
  * The JSON Object
139
149
  *
@@ -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 AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
47
47
  * AlarmGroupModel Constructor
48
48
  *
49
49
  * @protected
50
+ * @param {number} siteId The Site ID associated with this Alarm Group
50
51
  */
51
- function AlarmGroupModel() {
52
+ function AlarmGroupModel(siteId) {
52
53
  var _this;
53
54
 
54
55
  _classCallCheck(this, AlarmGroupModel);
@@ -110,6 +111,14 @@ var AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
110
111
  */
111
112
 
112
113
  _this.updateTimestamp = undefined;
114
+ /**
115
+ * The Site ID associated with this Alarm Group
116
+ *
117
+ * @type {number}
118
+ * @public
119
+ */
120
+
121
+ _this.siteId = siteId;
113
122
  return _this;
114
123
  }
115
124
  /**
@@ -118,14 +127,15 @@ var AlarmGroupModel = /*#__PURE__*/function (_BaseModel) {
118
127
  * @static
119
128
  * @public
120
129
  * @param {Object<string, any>|string} json A JSON Object or JSON String
130
+ * @param {number} siteId The Site ID associated with this Alarm Group
121
131
  * @return {AlarmGroupModel}
122
132
  */
123
133
 
124
134
 
125
135
  _createClass(AlarmGroupModel, null, [{
126
136
  key: "fromJSON",
127
- value: function fromJSON(json) {
128
- var model = new AlarmGroupModel();
137
+ value: function fromJSON(json, siteId) {
138
+ var model = new AlarmGroupModel(siteId);
129
139
  /**
130
140
  * The JSON Object
131
141
  *
@@ -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 AlarmModel = /*#__PURE__*/function (_BaseModel) {
47
47
  * AlarmModel Constructor
48
48
  *
49
49
  * @protected
50
+ * @param {number} siteId The Site ID associated with this Alarm
50
51
  */
51
- function AlarmModel() {
52
+ function AlarmModel(siteId) {
52
53
  var _this;
53
54
 
54
55
  _classCallCheck(this, AlarmModel);
@@ -190,6 +191,14 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
190
191
  */
191
192
 
192
193
  _this.updateTimestamp = undefined;
194
+ /**
195
+ * The Site ID associated with this Alarm
196
+ *
197
+ * @type {number}
198
+ * @public
199
+ */
200
+
201
+ _this.siteId = siteId;
193
202
  return _this;
194
203
  }
195
204
  /**
@@ -198,14 +207,15 @@ var AlarmModel = /*#__PURE__*/function (_BaseModel) {
198
207
  * @static
199
208
  * @public
200
209
  * @param {Object<string, any>|string} json A JSON Object or JSON String
210
+ * @param {number} siteId The Site ID associated with this Alarm
201
211
  * @return {AlarmModel}
202
212
  */
203
213
 
204
214
 
205
215
  _createClass(AlarmModel, null, [{
206
216
  key: "fromJSON",
207
- value: function fromJSON(json) {
208
- var model = new AlarmModel();
217
+ value: function fromJSON(json, siteId) {
218
+ var model = new AlarmModel(siteId);
209
219
  /**
210
220
  * The JSON Object
211
221
  *
@@ -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 DefinitionModel = /*#__PURE__*/function (_BaseModel) {
47
47
  * DefinitionModel Constructor
48
48
  *
49
49
  * @protected
50
+ * @param {number} siteId The Site ID associated with this Definition
50
51
  */
51
- function DefinitionModel() {
52
+ function DefinitionModel(siteId) {
52
53
  var _this;
53
54
 
54
55
  _classCallCheck(this, DefinitionModel);
@@ -102,6 +103,14 @@ var DefinitionModel = /*#__PURE__*/function (_BaseModel) {
102
103
  */
103
104
 
104
105
  _this.updateTimestamp = undefined;
106
+ /**
107
+ * The Site ID associated with this Definition
108
+ *
109
+ * @type {number}
110
+ * @public
111
+ */
112
+
113
+ _this.siteId = siteId;
105
114
  return _this;
106
115
  }
107
116
  /**
@@ -110,14 +119,15 @@ var DefinitionModel = /*#__PURE__*/function (_BaseModel) {
110
119
  * @static
111
120
  * @public
112
121
  * @param {Object<string, any>|string} json A JSON Object or JSON String
122
+ * @param {number} siteId The Site ID associated with this Definition
113
123
  * @return {DefinitionModel}
114
124
  */
115
125
 
116
126
 
117
127
  _createClass(DefinitionModel, null, [{
118
128
  key: "fromJSON",
119
- value: function fromJSON(json) {
120
- var model = new DefinitionModel();
129
+ value: function fromJSON(json, siteId) {
130
+ var model = new DefinitionModel(siteId);
121
131
  /**
122
132
  * The JSON Object
123
133
  *
@@ -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 PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
47
47
  * PermanentObjectDataModel Constructor
48
48
  *
49
49
  * @protected
50
+ * @param {number} siteId The Site ID associated with this Permanent Object Data
50
51
  */
51
- function PermanentObjectDataModel() {
52
+ function PermanentObjectDataModel(siteId) {
52
53
  var _this;
53
54
 
54
55
  _classCallCheck(this, PermanentObjectDataModel);
@@ -118,6 +119,14 @@ var PermanentObjectDataModel = /*#__PURE__*/function (_BaseModel) {
118
119
  */
119
120
 
120
121
  _this.updateTimestamp = undefined;
122
+ /**
123
+ * The Site ID associated with this Permanent Object Data
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 PermanentObjectDataModel = /*#__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 Permanent Object Data
129
139
  * @return {PermanentObjectDataModel}
130
140
  */
131
141
 
132
142
 
133
143
  _createClass(PermanentObjectDataModel, null, [{
134
144
  key: "fromJSON",
135
- value: function fromJSON(json) {
136
- var model = new PermanentObjectDataModel();
145
+ value: function fromJSON(json, siteId) {
146
+ var model = new PermanentObjectDataModel(siteId);
137
147
  /**
138
148
  * The JSON Object
139
149
  *
@@ -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 PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
47
47
  * PermanentObjectModel Constructor
48
48
  *
49
49
  * @protected
50
+ * @param {number} siteId The Site ID associated with this Permanent Object
50
51
  */
51
- function PermanentObjectModel() {
52
+ function PermanentObjectModel(siteId) {
52
53
  var _this;
53
54
 
54
55
  _classCallCheck(this, PermanentObjectModel);
@@ -110,6 +111,14 @@ var PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
110
111
  */
111
112
 
112
113
  _this.updateTimestamp = undefined;
114
+ /**
115
+ * The Site ID associated with this Permanent Object
116
+ *
117
+ * @type {number}
118
+ * @public
119
+ */
120
+
121
+ _this.siteId = siteId;
113
122
  return _this;
114
123
  }
115
124
  /**
@@ -118,14 +127,15 @@ var PermanentObjectModel = /*#__PURE__*/function (_BaseModel) {
118
127
  * @static
119
128
  * @public
120
129
  * @param {Object<string, any>|string} json A JSON Object or JSON String
130
+ * @param {number} siteId The Site ID associated with this Permanent Object
121
131
  * @return {PermanentObjectModel}
122
132
  */
123
133
 
124
134
 
125
135
  _createClass(PermanentObjectModel, null, [{
126
136
  key: "fromJSON",
127
- value: function fromJSON(json) {
128
- var model = new PermanentObjectModel();
137
+ value: function fromJSON(json, siteId) {
138
+ var model = new PermanentObjectModel(siteId);
129
139
  /**
130
140
  * The JSON Object
131
141
  *