@ricado/api-client 2.0.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -7
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/AccountPolicyController.js +1 -1
- package/lib/Controllers/ApiAccountController.js +2 -2
- package/lib/Controllers/CompanyController.js +1 -1
- package/lib/Controllers/FirebaseTokenController.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipWeightController.js +6 -6
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +6 -6
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +5 -5
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +6 -6
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +6 -6
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +5 -5
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +6 -6
- package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +6 -6
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +6 -6
- package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +5 -5
- package/lib/Controllers/Packhouse/Site/PackTypeController.js +5 -5
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +5 -5
- package/lib/Controllers/Packhouse/Site/PackrunController.js +292 -6
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +6 -6
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +29 -7
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +6 -6
- package/lib/Controllers/Packhouse/Site/ShiftController.js +6 -6
- package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +6 -6
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +6 -6
- package/lib/Controllers/Packhouse/Site/SoftSortBeltController.js +453 -0
- package/lib/Controllers/Packhouse/Site/VarietyController.js +5 -5
- package/lib/Controllers/Packhouse/Site/index.js +3 -0
- package/lib/Controllers/RTU/GlobalSettingsController.js +2 -2
- package/lib/Controllers/RTU/PluginSettingsController.js +2 -2
- package/lib/Controllers/RTUController.js +1 -1
- package/lib/Controllers/RTUPluginController.js +1 -1
- package/lib/Controllers/Site/AlarmController.js +6 -6
- package/lib/Controllers/Site/AlarmGroupController.js +5 -5
- package/lib/Controllers/Site/DefinitionController.js +5 -5
- package/lib/Controllers/Site/PermanentObjectController.js +5 -5
- package/lib/Controllers/Site/PermanentObjectDataController.js +6 -6
- package/lib/Controllers/Site/PointController.js +6 -6
- package/lib/Controllers/Site/TemporaryObjectController.js +5 -5
- package/lib/Controllers/SiteController.js +1 -1
- package/lib/Controllers/TokenController.js +2 -2
- package/lib/Controllers/ToolsController.js +1 -1
- package/lib/Controllers/UserAccountActionTokenController.js +2 -2
- package/lib/Controllers/UserAccountController.js +2 -2
- package/lib/DataItems/PointValueItem.js +2 -2
- package/lib/Errors/BadRequestError.js +7 -3
- package/lib/Errors/ForbiddenError.js +7 -3
- package/lib/Errors/NetworkError.js +7 -3
- package/lib/Errors/NotAllowedError.js +7 -3
- package/lib/Errors/NotFoundError.js +7 -3
- package/lib/Errors/ServerError.js +7 -3
- package/lib/Errors/UnauthorizedError.js +7 -3
- package/lib/Models/AccountPolicyModel.js +3 -3
- package/lib/Models/ApiAccountModel.js +3 -3
- package/lib/Models/BaseModel.js +6 -2
- package/lib/Models/CompanyModel.js +3 -3
- package/lib/Models/FirebaseTokenModel.js +3 -3
- package/lib/Models/Packhouse/Site/BinTipWeightModel.js +16 -6
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +16 -6
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +16 -6
- package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +16 -6
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +16 -6
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +16 -6
- package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +16 -6
- package/lib/Models/Packhouse/Site/DowntimeEventModel.js +16 -6
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +16 -6
- package/lib/Models/Packhouse/Site/GrowingMethodModel.js +16 -6
- package/lib/Models/Packhouse/Site/PackTypeModel.js +16 -6
- package/lib/Models/Packhouse/Site/PackingLineModel.js +16 -6
- package/lib/Models/Packhouse/Site/PackrunModel.js +16 -6
- package/lib/Models/Packhouse/Site/RejectBinModel.js +16 -6
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +276 -10
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +16 -6
- package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +16 -6
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +16 -6
- package/lib/Models/Packhouse/Site/ShiftModel.js +16 -6
- package/lib/Models/Packhouse/Site/SoftSortBeltModel.js +235 -0
- package/lib/Models/Packhouse/Site/VarietyModel.js +16 -6
- package/lib/Models/Packhouse/Site/index.js +3 -0
- package/lib/Models/RTUModel.js +3 -3
- package/lib/Models/RTUPluginModel.js +3 -3
- package/lib/Models/Site/AlarmGroupModel.js +16 -6
- package/lib/Models/Site/AlarmModel.js +16 -6
- package/lib/Models/Site/DefinitionModel.js +16 -6
- package/lib/Models/Site/PermanentObjectDataModel.js +16 -6
- package/lib/Models/Site/PermanentObjectModel.js +16 -6
- package/lib/Models/Site/PointModel.js +16 -6
- package/lib/Models/Site/TemporaryObjectModel.js +16 -6
- package/lib/Models/SiteModel.js +3 -3
- package/lib/Models/TokenModel.js +3 -3
- package/lib/Models/UserAccountActionTokenModel.js +3 -3
- package/lib/Models/UserAccountModel.js +3 -3
- package/lib/PackageVersion.js +1 -1
- package/lib/Points.js +1 -1
- package/lib/RequestHelper.js +2 -2
- package/lib/WebSocketHelper.js +1 -1
- package/lib/index.d.ts +1038 -76
- package/package.json +3 -3
- package/src/Controllers/Packhouse/Site/BinTipWeightController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
- package/src/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
- package/src/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
- package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
- package/src/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
- package/src/Controllers/Packhouse/Site/PackTypeController.js +4 -4
- package/src/Controllers/Packhouse/Site/PackingLineController.js +4 -4
- package/src/Controllers/Packhouse/Site/PackrunController.js +365 -4
- package/src/Controllers/Packhouse/Site/RejectBinController.js +4 -4
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +28 -6
- package/src/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +4 -4
- package/src/Controllers/Packhouse/Site/SoftSortBeltController.js +474 -0
- package/src/Controllers/Packhouse/Site/VarietyController.js +4 -4
- package/src/Controllers/Packhouse/Site/index.js +2 -0
- package/src/Controllers/Site/AlarmController.js +4 -4
- package/src/Controllers/Site/AlarmGroupController.js +4 -4
- package/src/Controllers/Site/DefinitionController.js +4 -4
- package/src/Controllers/Site/PermanentObjectController.js +4 -4
- package/src/Controllers/Site/PermanentObjectDataController.js +4 -4
- package/src/Controllers/Site/PointController.js +4 -4
- package/src/Controllers/Site/TemporaryObjectController.js +4 -4
- package/src/Models/Packhouse/Site/BinTipWeightModel.js +13 -3
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +13 -3
- package/src/Models/Packhouse/Site/CompacSizerModel.js +13 -3
- package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +13 -3
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +13 -3
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +13 -3
- package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +13 -3
- package/src/Models/Packhouse/Site/DowntimeEventModel.js +13 -3
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +13 -3
- package/src/Models/Packhouse/Site/GrowingMethodModel.js +13 -3
- package/src/Models/Packhouse/Site/PackTypeModel.js +13 -3
- package/src/Models/Packhouse/Site/PackingLineModel.js +13 -3
- package/src/Models/Packhouse/Site/PackrunModel.js +13 -3
- package/src/Models/Packhouse/Site/RejectBinModel.js +13 -3
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +310 -7
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +13 -3
- package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +13 -3
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +13 -3
- package/src/Models/Packhouse/Site/ShiftModel.js +13 -3
- package/src/Models/Packhouse/Site/SoftSortBeltModel.js +215 -0
- package/src/Models/Packhouse/Site/VarietyModel.js +13 -3
- package/src/Models/Packhouse/Site/index.js +2 -0
- package/src/Models/Site/AlarmGroupModel.js +13 -3
- package/src/Models/Site/AlarmModel.js +13 -3
- package/src/Models/Site/DefinitionModel.js +13 -3
- package/src/Models/Site/PermanentObjectDataModel.js +13 -3
- package/src/Models/Site/PermanentObjectModel.js +13 -3
- package/src/Models/Site/PointModel.js +13 -3
- package/src/Models/Site/TemporaryObjectModel.js +13 -3
- package/src/PackageVersion.js +1 -1
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _BaseModel2 = _interopRequireDefault(require("../../../Models/BaseModel"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
13
|
+
|
|
14
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
+
|
|
16
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
|
+
|
|
18
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
19
|
+
|
|
20
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
21
|
+
|
|
22
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
23
|
+
|
|
24
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
25
|
+
|
|
26
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
27
|
+
|
|
28
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
29
|
+
|
|
30
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
31
|
+
|
|
32
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Model Class for a Soft Sort Belt
|
|
36
|
+
*
|
|
37
|
+
* @class
|
|
38
|
+
* @hideconstructor
|
|
39
|
+
* @extends BaseModel
|
|
40
|
+
*/
|
|
41
|
+
var SoftSortBeltModel = /*#__PURE__*/function (_BaseModel) {
|
|
42
|
+
_inherits(SoftSortBeltModel, _BaseModel);
|
|
43
|
+
|
|
44
|
+
var _super = _createSuper(SoftSortBeltModel);
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* SoftSortBeltModel Constructor
|
|
48
|
+
*
|
|
49
|
+
* @protected
|
|
50
|
+
* @param {number} siteId The Site ID associated with this Soft Sort Belt
|
|
51
|
+
*/
|
|
52
|
+
function SoftSortBeltModel(siteId) {
|
|
53
|
+
var _this;
|
|
54
|
+
|
|
55
|
+
_classCallCheck(this, SoftSortBeltModel);
|
|
56
|
+
|
|
57
|
+
_this = _super.call(this);
|
|
58
|
+
/**
|
|
59
|
+
* The Soft Sort Belt ID
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @public
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
_this.id = undefined;
|
|
66
|
+
/**
|
|
67
|
+
* The RTU this Soft Sort Belt belongs to
|
|
68
|
+
*
|
|
69
|
+
* @type {?number}
|
|
70
|
+
* @public
|
|
71
|
+
*/
|
|
72
|
+
|
|
73
|
+
_this.rtuId = undefined;
|
|
74
|
+
/**
|
|
75
|
+
* The Name of this Soft Sort Belt
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @public
|
|
79
|
+
*/
|
|
80
|
+
|
|
81
|
+
_this.name = undefined;
|
|
82
|
+
/**
|
|
83
|
+
* The Points used by this Soft Sort Belt
|
|
84
|
+
*
|
|
85
|
+
* @type {Object}
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
_this.points = undefined;
|
|
90
|
+
/**
|
|
91
|
+
* The Packing Line that owns this Soft Sort Belt
|
|
92
|
+
*
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
|
|
97
|
+
_this.packingLineId = undefined;
|
|
98
|
+
/**
|
|
99
|
+
* Whether the Soft Sort Belt has been deleted
|
|
100
|
+
*
|
|
101
|
+
* @type {boolean}
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
_this.deleted = undefined;
|
|
106
|
+
/**
|
|
107
|
+
* When the Soft Sort Belt was last updated
|
|
108
|
+
*
|
|
109
|
+
* @type {Date}
|
|
110
|
+
* @public
|
|
111
|
+
*/
|
|
112
|
+
|
|
113
|
+
_this.updateTimestamp = undefined;
|
|
114
|
+
/**
|
|
115
|
+
* The Site ID associated with this Soft Sort Belt
|
|
116
|
+
*
|
|
117
|
+
* @type {number}
|
|
118
|
+
* @public
|
|
119
|
+
*/
|
|
120
|
+
|
|
121
|
+
_this.siteId = siteId;
|
|
122
|
+
return _this;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Create a new **SoftSortBeltModel** from a JSON Object or JSON String
|
|
126
|
+
*
|
|
127
|
+
* @static
|
|
128
|
+
* @public
|
|
129
|
+
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
130
|
+
* @param {number} siteId The Site ID associated with this Soft Sort Belt
|
|
131
|
+
* @return {SoftSortBeltModel}
|
|
132
|
+
*/
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
_createClass(SoftSortBeltModel, null, [{
|
|
136
|
+
key: "fromJSON",
|
|
137
|
+
value: function fromJSON(json, siteId) {
|
|
138
|
+
var model = new SoftSortBeltModel(siteId);
|
|
139
|
+
/**
|
|
140
|
+
* The JSON Object
|
|
141
|
+
*
|
|
142
|
+
* @type {Object<string, any>}
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
var jsonObject = {};
|
|
146
|
+
|
|
147
|
+
if (typeof json === 'string') {
|
|
148
|
+
jsonObject = JSON.parse(json);
|
|
149
|
+
} else if (_typeof(json) === 'object') {
|
|
150
|
+
jsonObject = json;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if ('id' in jsonObject) {
|
|
154
|
+
model.id = function () {
|
|
155
|
+
if (typeof jsonObject['id'] !== 'string') {
|
|
156
|
+
return String(jsonObject['id']);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
return jsonObject['id'];
|
|
160
|
+
}();
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
if ('rtuId' in jsonObject) {
|
|
164
|
+
model.rtuId = function () {
|
|
165
|
+
if (jsonObject['rtuId'] === null) {
|
|
166
|
+
return null;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if (typeof jsonObject['rtuId'] !== 'number') {
|
|
170
|
+
return Number.isInteger(Number(jsonObject['rtuId'])) ? Number(jsonObject['rtuId']) : Math.floor(Number(jsonObject['rtuId']));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
return Number.isInteger(jsonObject['rtuId']) ? jsonObject['rtuId'] : Math.floor(jsonObject['rtuId']);
|
|
174
|
+
}();
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if ('name' in jsonObject) {
|
|
178
|
+
model.name = function () {
|
|
179
|
+
if (typeof jsonObject['name'] !== 'string') {
|
|
180
|
+
return String(jsonObject['name']);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return jsonObject['name'];
|
|
184
|
+
}();
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if ('points' in jsonObject) {
|
|
188
|
+
model.points = function () {
|
|
189
|
+
if (_typeof(jsonObject['points']) !== 'object') {
|
|
190
|
+
return Object(jsonObject['points']);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
return jsonObject['points'];
|
|
194
|
+
}();
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
if ('packingLineId' in jsonObject) {
|
|
198
|
+
model.packingLineId = function () {
|
|
199
|
+
if (typeof jsonObject['packingLineId'] !== 'string') {
|
|
200
|
+
return String(jsonObject['packingLineId']);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
return jsonObject['packingLineId'];
|
|
204
|
+
}();
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
if ('deleted' in jsonObject) {
|
|
208
|
+
model.deleted = function () {
|
|
209
|
+
if (typeof jsonObject['deleted'] !== 'boolean') {
|
|
210
|
+
return Boolean(jsonObject['deleted']);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
return jsonObject['deleted'];
|
|
214
|
+
}();
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
if ('updateTimestamp' in jsonObject) {
|
|
218
|
+
model.updateTimestamp = function () {
|
|
219
|
+
if (typeof jsonObject['updateTimestamp'] !== 'string') {
|
|
220
|
+
return new Date(String(jsonObject['updateTimestamp']));
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
return new Date(jsonObject['updateTimestamp']);
|
|
224
|
+
}();
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
return model;
|
|
228
|
+
}
|
|
229
|
+
}]);
|
|
230
|
+
|
|
231
|
+
return SoftSortBeltModel;
|
|
232
|
+
}(_BaseModel2.default);
|
|
233
|
+
|
|
234
|
+
var _default = SoftSortBeltModel;
|
|
235
|
+
exports.default = _default;
|
|
@@ -9,15 +9,15 @@ var _BaseModel2 = _interopRequireDefault(require("../../../Models/BaseModel"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
12
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
13
13
|
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
15
|
|
|
16
16
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
17
|
|
|
18
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); 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
|
*
|
|
@@ -43,6 +43,8 @@ var _ShiftHourlyEntryModel = _interopRequireDefault(require("./ShiftHourlyEntryM
|
|
|
43
43
|
|
|
44
44
|
var _ShiftModel = _interopRequireDefault(require("./ShiftModel"));
|
|
45
45
|
|
|
46
|
+
var _SoftSortBeltModel = _interopRequireDefault(require("./SoftSortBeltModel"));
|
|
47
|
+
|
|
46
48
|
var _VarietyModel = _interopRequireDefault(require("./VarietyModel"));
|
|
47
49
|
|
|
48
50
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -76,6 +78,7 @@ var Site = {
|
|
|
76
78
|
ShiftFocusMeetingModel: _ShiftFocusMeetingModel.default,
|
|
77
79
|
ShiftHourlyEntryModel: _ShiftHourlyEntryModel.default,
|
|
78
80
|
ShiftModel: _ShiftModel.default,
|
|
81
|
+
SoftSortBeltModel: _SoftSortBeltModel.default,
|
|
79
82
|
VarietyModel: _VarietyModel.default
|
|
80
83
|
};
|
|
81
84
|
var _default = Site;
|
package/lib/Models/RTUModel.js
CHANGED
|
@@ -9,15 +9,15 @@ var _BaseModel2 = _interopRequireDefault(require("../Models/BaseModel"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
12
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
13
13
|
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
15
|
|
|
16
16
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
17
|
|
|
18
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); 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
|
|
|
@@ -9,15 +9,15 @@ var _BaseModel2 = _interopRequireDefault(require("../Models/BaseModel"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
12
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
13
13
|
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
15
|
|
|
16
16
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
17
|
|
|
18
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); 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
|
|
|
@@ -9,15 +9,15 @@ var _BaseModel2 = _interopRequireDefault(require("../../Models/BaseModel"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
12
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
13
13
|
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
15
|
|
|
16
16
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
17
|
|
|
18
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); 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
|
*
|
|
@@ -9,15 +9,15 @@ var _BaseModel2 = _interopRequireDefault(require("../../Models/BaseModel"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
12
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
13
13
|
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
15
|
|
|
16
16
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
17
|
|
|
18
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); 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
|
*
|
|
@@ -9,15 +9,15 @@ var _BaseModel2 = _interopRequireDefault(require("../../Models/BaseModel"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
12
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
13
13
|
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
15
|
|
|
16
16
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
17
|
|
|
18
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); 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
|
*
|
|
@@ -9,15 +9,15 @@ var _BaseModel2 = _interopRequireDefault(require("../../Models/BaseModel"));
|
|
|
9
9
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
|
|
12
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
12
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
13
13
|
|
|
14
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
15
|
|
|
16
16
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
17
17
|
|
|
18
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
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"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); 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
|
*
|