@ricado/api-client 2.0.2 → 2.2.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 (155) hide show
  1. package/README.md +5 -7
  2. package/dist/ricado.api.client.js +1 -1
  3. package/lib/Controllers/Packhouse/Site/BinTipBinController.js +622 -0
  4. package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
  5. package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
  6. package/lib/Controllers/Packhouse/Site/CompacSizerController.js +7 -7
  7. package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
  8. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
  9. package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
  10. package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
  11. package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
  12. package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
  13. package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
  14. package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
  15. package/lib/Controllers/Packhouse/Site/PackTypeController.js +4 -4
  16. package/lib/Controllers/Packhouse/Site/PackingLineController.js +29 -5
  17. package/lib/Controllers/Packhouse/Site/PackrunController.js +46 -4
  18. package/lib/Controllers/Packhouse/Site/RejectBinController.js +4 -4
  19. package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +28 -6
  20. package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
  21. package/lib/Controllers/Packhouse/Site/ShiftController.js +4 -4
  22. package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
  23. package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +19 -4
  24. package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
  25. package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
  26. package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +453 -0
  27. package/lib/Controllers/Packhouse/Site/VarietyController.js +4 -4
  28. package/lib/Controllers/Packhouse/Site/index.js +15 -0
  29. package/lib/Controllers/Site/AlarmController.js +4 -4
  30. package/lib/Controllers/Site/AlarmGroupController.js +4 -4
  31. package/lib/Controllers/Site/DefinitionController.js +4 -4
  32. package/lib/Controllers/Site/PermanentObjectController.js +4 -4
  33. package/lib/Controllers/Site/PermanentObjectDataController.js +4 -4
  34. package/lib/Controllers/Site/PointController.js +4 -4
  35. package/lib/Controllers/Site/TemporaryObjectController.js +4 -4
  36. package/lib/Errors/BadRequestError.js +1 -1
  37. package/lib/Errors/ForbiddenError.js +1 -1
  38. package/lib/Errors/NetworkError.js +1 -1
  39. package/lib/Errors/NotAllowedError.js +1 -1
  40. package/lib/Errors/NotFoundError.js +1 -1
  41. package/lib/Errors/ServerError.js +1 -1
  42. package/lib/Errors/UnauthorizedError.js +1 -1
  43. package/lib/Models/AccountPolicyModel.js +1 -1
  44. package/lib/Models/ApiAccountModel.js +1 -1
  45. package/lib/Models/CompanyModel.js +1 -1
  46. package/lib/Models/FirebaseTokenModel.js +1 -1
  47. package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
  48. package/lib/Models/Packhouse/Site/BinTipWeightModel.js +14 -4
  49. package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +14 -4
  50. package/lib/Models/Packhouse/Site/CompacSizerModel.js +15 -5
  51. package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +14 -4
  52. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +14 -4
  53. package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +14 -4
  54. package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +14 -4
  55. package/lib/Models/Packhouse/Site/DowntimeEventModel.js +14 -4
  56. package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +14 -4
  57. package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
  58. package/lib/Models/Packhouse/Site/GrowingMethodModel.js +14 -4
  59. package/lib/Models/Packhouse/Site/PackTypeModel.js +14 -4
  60. package/lib/Models/Packhouse/Site/PackingLineModel.js +538 -5
  61. package/lib/Models/Packhouse/Site/PackrunModel.js +80 -4
  62. package/lib/Models/Packhouse/Site/RejectBinModel.js +14 -4
  63. package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +274 -8
  64. package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +14 -4
  65. package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +14 -4
  66. package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +181 -5
  67. package/lib/Models/Packhouse/Site/ShiftModel.js +14 -4
  68. package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
  69. package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
  70. package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +235 -0
  71. package/lib/Models/Packhouse/Site/VarietyModel.js +14 -4
  72. package/lib/Models/Packhouse/Site/index.js +15 -0
  73. package/lib/Models/RTUModel.js +1 -1
  74. package/lib/Models/RTUPluginModel.js +1 -1
  75. package/lib/Models/Site/AlarmGroupModel.js +14 -4
  76. package/lib/Models/Site/AlarmModel.js +14 -4
  77. package/lib/Models/Site/DefinitionModel.js +14 -4
  78. package/lib/Models/Site/PermanentObjectDataModel.js +14 -4
  79. package/lib/Models/Site/PermanentObjectModel.js +14 -4
  80. package/lib/Models/Site/PointModel.js +14 -4
  81. package/lib/Models/Site/TemporaryObjectModel.js +14 -4
  82. package/lib/Models/SiteModel.js +1 -1
  83. package/lib/Models/TokenModel.js +1 -1
  84. package/lib/Models/UserAccountActionTokenModel.js +1 -1
  85. package/lib/Models/UserAccountModel.js +1 -1
  86. package/lib/PackageVersion.js +1 -1
  87. package/lib/index.d.ts +4039 -1071
  88. package/package.json +1 -1
  89. package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
  90. package/src/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
  91. package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
  92. package/src/Controllers/Packhouse/Site/CompacSizerController.js +7 -7
  93. package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
  94. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
  95. package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
  96. package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
  97. package/src/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
  98. package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
  99. package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
  100. package/src/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
  101. package/src/Controllers/Packhouse/Site/PackTypeController.js +4 -4
  102. package/src/Controllers/Packhouse/Site/PackingLineController.js +29 -5
  103. package/src/Controllers/Packhouse/Site/PackrunController.js +56 -4
  104. package/src/Controllers/Packhouse/Site/RejectBinController.js +4 -4
  105. package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +28 -6
  106. package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
  107. package/src/Controllers/Packhouse/Site/ShiftController.js +4 -4
  108. package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
  109. package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +19 -4
  110. package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
  111. package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
  112. package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +474 -0
  113. package/src/Controllers/Packhouse/Site/VarietyController.js +4 -4
  114. package/src/Controllers/Packhouse/Site/index.js +10 -0
  115. package/src/Controllers/Site/AlarmController.js +4 -4
  116. package/src/Controllers/Site/AlarmGroupController.js +4 -4
  117. package/src/Controllers/Site/DefinitionController.js +4 -4
  118. package/src/Controllers/Site/PermanentObjectController.js +4 -4
  119. package/src/Controllers/Site/PermanentObjectDataController.js +4 -4
  120. package/src/Controllers/Site/PointController.js +4 -4
  121. package/src/Controllers/Site/TemporaryObjectController.js +4 -4
  122. package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
  123. package/src/Models/Packhouse/Site/BinTipWeightModel.js +13 -3
  124. package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +13 -3
  125. package/src/Models/Packhouse/Site/CompacSizerModel.js +14 -4
  126. package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +13 -3
  127. package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +13 -3
  128. package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +13 -3
  129. package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +13 -3
  130. package/src/Models/Packhouse/Site/DowntimeEventModel.js +13 -3
  131. package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +13 -3
  132. package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
  133. package/src/Models/Packhouse/Site/GrowingMethodModel.js +13 -3
  134. package/src/Models/Packhouse/Site/PackTypeModel.js +13 -3
  135. package/src/Models/Packhouse/Site/PackingLineModel.js +718 -4
  136. package/src/Models/Packhouse/Site/PackrunModel.js +88 -3
  137. package/src/Models/Packhouse/Site/RejectBinModel.js +13 -3
  138. package/src/Models/Packhouse/Site/RejectBinScaleModel.js +310 -7
  139. package/src/Models/Packhouse/Site/RejectBinWeightModel.js +13 -3
  140. package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +13 -3
  141. package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +205 -4
  142. package/src/Models/Packhouse/Site/ShiftModel.js +13 -3
  143. package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
  144. package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
  145. package/src/Models/Packhouse/Site/SoftSortBeltModel.js +215 -0
  146. package/src/Models/Packhouse/Site/VarietyModel.js +13 -3
  147. package/src/Models/Packhouse/Site/index.js +10 -0
  148. package/src/Models/Site/AlarmGroupModel.js +13 -3
  149. package/src/Models/Site/AlarmModel.js +13 -3
  150. package/src/Models/Site/DefinitionModel.js +13 -3
  151. package/src/Models/Site/PermanentObjectDataModel.js +13 -3
  152. package/src/Models/Site/PermanentObjectModel.js +13 -3
  153. package/src/Models/Site/PointModel.js +13 -3
  154. package/src/Models/Site/TemporaryObjectModel.js +13 -3
  155. package/src/PackageVersion.js +1 -1
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ var _BinTipBinModel = _interopRequireDefault(require("./BinTipBinModel"));
9
+
8
10
  var _BinTipWeightModel = _interopRequireDefault(require("./BinTipWeightModel"));
9
11
 
10
12
  var _CompacSizerBatchModel = _interopRequireDefault(require("./CompacSizerBatchModel"));
@@ -23,6 +25,8 @@ var _DowntimeEventModel = _interopRequireDefault(require("./DowntimeEventModel")
23
25
 
24
26
  var _FreshPackPackrunSummaryModel = _interopRequireDefault(require("./FreshPackPackrunSummaryModel"));
25
27
 
28
+ var _FreshQualityPackrunSummaryModel = _interopRequireDefault(require("./FreshQualityPackrunSummaryModel"));
29
+
26
30
  var _GrowingMethodModel = _interopRequireDefault(require("./GrowingMethodModel"));
27
31
 
28
32
  var _PackTypeModel = _interopRequireDefault(require("./PackTypeModel"));
@@ -43,6 +47,12 @@ var _ShiftHourlyEntryModel = _interopRequireDefault(require("./ShiftHourlyEntryM
43
47
 
44
48
  var _ShiftModel = _interopRequireDefault(require("./ShiftModel"));
45
49
 
50
+ var _ShiftQualitySummaryModel = _interopRequireDefault(require("./ShiftQualitySummaryModel"));
51
+
52
+ var _ShiftTaskModel = _interopRequireDefault(require("./ShiftTaskModel"));
53
+
54
+ var _SoftSortBeltModel = _interopRequireDefault(require("./SoftSortBeltModel"));
55
+
46
56
  var _VarietyModel = _interopRequireDefault(require("./VarietyModel"));
47
57
 
48
58
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -57,6 +67,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
57
67
  * @namespace Models.Packhouse.Site
58
68
  */
59
69
  var Site = {
70
+ BinTipBinModel: _BinTipBinModel.default,
60
71
  BinTipWeightModel: _BinTipWeightModel.default,
61
72
  CompacSizerBatchModel: _CompacSizerBatchModel.default,
62
73
  CompacSizerModel: _CompacSizerModel.default,
@@ -66,6 +77,7 @@ var Site = {
66
77
  CompacSizerPackrunSummaryModel: _CompacSizerPackrunSummaryModel.default,
67
78
  DowntimeEventModel: _DowntimeEventModel.default,
68
79
  FreshPackPackrunSummaryModel: _FreshPackPackrunSummaryModel.default,
80
+ FreshQualityPackrunSummaryModel: _FreshQualityPackrunSummaryModel.default,
69
81
  GrowingMethodModel: _GrowingMethodModel.default,
70
82
  PackTypeModel: _PackTypeModel.default,
71
83
  PackingLineModel: _PackingLineModel.default,
@@ -76,6 +88,9 @@ var Site = {
76
88
  ShiftFocusMeetingModel: _ShiftFocusMeetingModel.default,
77
89
  ShiftHourlyEntryModel: _ShiftHourlyEntryModel.default,
78
90
  ShiftModel: _ShiftModel.default,
91
+ ShiftQualitySummaryModel: _ShiftQualitySummaryModel.default,
92
+ ShiftTaskModel: _ShiftTaskModel.default,
93
+ SoftSortBeltModel: _SoftSortBeltModel.default,
79
94
  VarietyModel: _VarietyModel.default
80
95
  };
81
96
  var _default = Site;
@@ -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
  *
@@ -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 PointModel = /*#__PURE__*/function (_BaseModel) {
47
47
  * PointModel Constructor
48
48
  *
49
49
  * @protected
50
+ * @param {number} siteId The Site ID associated with this Point
50
51
  */
51
- function PointModel() {
52
+ function PointModel(siteId) {
52
53
  var _this;
53
54
 
54
55
  _classCallCheck(this, PointModel);
@@ -142,6 +143,14 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
142
143
  */
143
144
 
144
145
  _this.updateTimestamp = undefined;
146
+ /**
147
+ * The Site ID associated with this Point
148
+ *
149
+ * @type {number}
150
+ * @public
151
+ */
152
+
153
+ _this.siteId = siteId;
145
154
  return _this;
146
155
  }
147
156
  /**
@@ -150,14 +159,15 @@ var PointModel = /*#__PURE__*/function (_BaseModel) {
150
159
  * @static
151
160
  * @public
152
161
  * @param {Object<string, any>|string} json A JSON Object or JSON String
162
+ * @param {number} siteId The Site ID associated with this Point
153
163
  * @return {PointModel}
154
164
  */
155
165
 
156
166
 
157
167
  _createClass(PointModel, null, [{
158
168
  key: "fromJSON",
159
- value: function fromJSON(json) {
160
- var model = new PointModel();
169
+ value: function fromJSON(json, siteId) {
170
+ var model = new PointModel(siteId);
161
171
  /**
162
172
  * The JSON Object
163
173
  *
@@ -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 TemporaryObjectModel = /*#__PURE__*/function (_BaseModel) {
47
47
  * TemporaryObjectModel Constructor
48
48
  *
49
49
  * @protected
50
+ * @param {number} siteId The Site ID associated with this Temporary Object
50
51
  */
51
- function TemporaryObjectModel() {
52
+ function TemporaryObjectModel(siteId) {
52
53
  var _this;
53
54
 
54
55
  _classCallCheck(this, TemporaryObjectModel);
@@ -102,6 +103,14 @@ var TemporaryObjectModel = /*#__PURE__*/function (_BaseModel) {
102
103
  */
103
104
 
104
105
  _this.updateTimestamp = undefined;
106
+ /**
107
+ * The Site ID associated with this Temporary Object
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 TemporaryObjectModel = /*#__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 Temporary Object
113
123
  * @return {TemporaryObjectModel}
114
124
  */
115
125
 
116
126
 
117
127
  _createClass(TemporaryObjectModel, null, [{
118
128
  key: "fromJSON",
119
- value: function fromJSON(json) {
120
- var model = new TemporaryObjectModel();
129
+ value: function fromJSON(json, siteId) {
130
+ var model = new TemporaryObjectModel(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
 
@@ -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
 
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // generated by genversion
8
- var version = '2.0.2';
8
+ var version = '2.2.0';
9
9
  exports.version = version;