@ricado/api-client 1.4.1 → 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.
- 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 +2 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +2 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +1 -1
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +2 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +2 -2
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +1 -1
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +2 -2
- package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +2 -2
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +2 -2
- package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +1 -1
- package/lib/Controllers/Packhouse/Site/PackTypeController.js +1 -1
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +1 -1
- package/lib/Controllers/Packhouse/Site/PackrunController.js +288 -2
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +2 -2
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +1 -1
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +2 -2
- package/lib/Controllers/Packhouse/Site/ShiftController.js +2 -2
- package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +2 -2
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +2 -2
- package/lib/Controllers/Packhouse/Site/VarietyController.js +1 -1
- 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 +2 -2
- package/lib/Controllers/Site/AlarmGroupController.js +1 -1
- package/lib/Controllers/Site/DefinitionController.js +1 -1
- package/lib/Controllers/Site/PermanentObjectController.js +1 -1
- package/lib/Controllers/Site/PermanentObjectDataController.js +2 -2
- package/lib/Controllers/Site/PointController.js +2 -2
- package/lib/Controllers/Site/TemporaryObjectController.js +1 -1
- 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 +29 -133
- package/lib/Models/ApiAccountModel.js +29 -133
- package/lib/Models/BaseModel.js +6 -2
- package/lib/Models/CompanyModel.js +23 -101
- package/lib/Models/FirebaseTokenModel.js +32 -149
- package/lib/Models/Packhouse/Site/BinTipWeightModel.js +43 -185
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +40 -169
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +58 -265
- package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +46 -201
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +40 -169
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +34 -137
- package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +52 -233
- package/lib/Models/Packhouse/Site/DowntimeEventModel.js +58 -265
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +40 -169
- package/lib/Models/Packhouse/Site/GrowingMethodModel.js +34 -137
- package/lib/Models/Packhouse/Site/PackTypeModel.js +40 -169
- package/lib/Models/Packhouse/Site/PackingLineModel.js +61 -281
- package/lib/Models/Packhouse/Site/PackrunModel.js +61 -281
- package/lib/Models/Packhouse/Site/RejectBinModel.js +43 -185
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +52 -233
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +46 -201
- package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +52 -233
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +127 -633
- package/lib/Models/Packhouse/Site/ShiftModel.js +73 -345
- package/lib/Models/Packhouse/Site/VarietyModel.js +40 -169
- package/lib/Models/RTUModel.js +26 -117
- package/lib/Models/RTUPluginModel.js +23 -101
- package/lib/Models/Site/AlarmGroupModel.js +37 -153
- package/lib/Models/Site/AlarmModel.js +67 -313
- package/lib/Models/Site/DefinitionModel.js +34 -137
- package/lib/Models/Site/PermanentObjectDataModel.js +40 -169
- package/lib/Models/Site/PermanentObjectModel.js +37 -153
- package/lib/Models/Site/PointModel.js +49 -217
- package/lib/Models/Site/TemporaryObjectModel.js +34 -137
- package/lib/Models/Site/index.js +0 -3
- package/lib/Models/SiteModel.js +26 -117
- package/lib/Models/TokenModel.js +38 -181
- package/lib/Models/UserAccountActionTokenModel.js +41 -197
- package/lib/Models/UserAccountModel.js +38 -181
- 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 +945 -1206
- package/package.json +3 -3
- package/src/Controllers/Packhouse/Site/PackrunController.js +361 -0
- package/src/Models/AccountPolicyModel.js +21 -117
- package/src/Models/ApiAccountModel.js +21 -117
- package/src/Models/CompanyModel.js +15 -87
- package/src/Models/FirebaseTokenModel.js +24 -132
- package/src/Models/Packhouse/Site/BinTipWeightModel.js +32 -163
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +29 -148
- package/src/Models/Packhouse/Site/CompacSizerModel.js +47 -238
- package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +35 -178
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +29 -148
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +23 -118
- package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +41 -208
- package/src/Models/Packhouse/Site/DowntimeEventModel.js +47 -238
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +29 -148
- package/src/Models/Packhouse/Site/GrowingMethodModel.js +23 -118
- package/src/Models/Packhouse/Site/PackTypeModel.js +29 -148
- package/src/Models/Packhouse/Site/PackingLineModel.js +50 -253
- package/src/Models/Packhouse/Site/PackrunModel.js +50 -253
- package/src/Models/Packhouse/Site/RejectBinModel.js +32 -163
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +41 -208
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +35 -178
- package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +41 -208
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +116 -583
- package/src/Models/Packhouse/Site/ShiftModel.js +62 -313
- package/src/Models/Packhouse/Site/VarietyModel.js +29 -148
- package/src/Models/RTUModel.js +18 -102
- package/src/Models/RTUPluginModel.js +15 -87
- package/src/Models/Site/AlarmGroupModel.js +26 -133
- package/src/Models/Site/AlarmModel.js +56 -283
- package/src/Models/Site/DefinitionModel.js +23 -118
- package/src/Models/Site/PermanentObjectDataModel.js +29 -148
- package/src/Models/Site/PermanentObjectModel.js +26 -133
- package/src/Models/Site/PointModel.js +38 -193
- package/src/Models/Site/TemporaryObjectModel.js +23 -118
- package/src/Models/Site/index.js +0 -2
- package/src/Models/SiteModel.js +18 -102
- package/src/Models/TokenModel.js +30 -162
- package/src/Models/UserAccountActionTokenModel.js +33 -177
- package/src/Models/UserAccountModel.js +30 -162
- package/src/PackageVersion.js +1 -1
- package/lib/Models/Site/BaseSiteModel.js +0 -58
- package/src/Models/Site/BaseSiteModel.js +0 -30
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
* Do Not Edit this File Manually!
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import BaseModel from '../../../Models/BaseModel';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Model Class for a Compac Sizer Outlet Product Change
|
|
11
11
|
*
|
|
12
12
|
* @class
|
|
13
13
|
* @hideconstructor
|
|
14
|
-
* @extends
|
|
14
|
+
* @extends BaseModel
|
|
15
15
|
*/
|
|
16
|
-
class CompacSizerOutletProductChangeModel extends
|
|
16
|
+
class CompacSizerOutletProductChangeModel extends BaseModel
|
|
17
17
|
{
|
|
18
18
|
/**
|
|
19
19
|
* CompacSizerOutletProductChangeModel Constructor
|
|
@@ -29,232 +29,89 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
|
|
|
29
29
|
* The Compac Sizer Outlet Product Change ID
|
|
30
30
|
*
|
|
31
31
|
* @type {string}
|
|
32
|
-
* @
|
|
32
|
+
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.
|
|
34
|
+
this.id = undefined;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Compac Sizer ID this Outlet Change is associated with
|
|
38
38
|
*
|
|
39
39
|
* @type {string}
|
|
40
|
-
* @
|
|
40
|
+
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.
|
|
42
|
+
this.compacSizerId = undefined;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Sizer Outlet Number this Outlet Change is associated with
|
|
46
46
|
*
|
|
47
47
|
* @type {string}
|
|
48
|
-
* @
|
|
48
|
+
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.
|
|
50
|
+
this.outletNumber = undefined;
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* When this Outlet Change occurred
|
|
54
54
|
*
|
|
55
55
|
* @type {Date}
|
|
56
|
-
* @
|
|
56
|
+
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.
|
|
58
|
+
this.createdTimestamp = undefined;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The ID of the Previous Product that was active on the Outlet
|
|
62
62
|
*
|
|
63
63
|
* @type {?string}
|
|
64
|
-
* @
|
|
64
|
+
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.
|
|
66
|
+
this.previousProductId = undefined;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The Name of the Previous Product that was active on the Outlet
|
|
70
70
|
*
|
|
71
71
|
* @type {?string}
|
|
72
|
-
* @
|
|
72
|
+
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.
|
|
74
|
+
this.previousProductName = undefined;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* The ID of the New Product that is now active on the Outlet
|
|
78
78
|
*
|
|
79
79
|
* @type {string}
|
|
80
|
-
* @
|
|
80
|
+
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.
|
|
82
|
+
this.newProductId = undefined;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* The Name of the New Product that is now active on the Outlet
|
|
86
86
|
*
|
|
87
87
|
* @type {string}
|
|
88
|
-
* @
|
|
88
|
+
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.
|
|
90
|
+
this.newProductName = undefined;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* Whether the Compac Sizer Outlet Product Change has been deleted
|
|
94
94
|
*
|
|
95
95
|
* @type {boolean}
|
|
96
|
-
* @
|
|
96
|
+
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.
|
|
98
|
+
this.deleted = undefined;
|
|
99
99
|
|
|
100
100
|
/**
|
|
101
101
|
* When the Compac Sizer Outlet Product Change was last updated
|
|
102
102
|
*
|
|
103
103
|
* @type {Date}
|
|
104
|
-
* @
|
|
104
|
+
* @public
|
|
105
105
|
*/
|
|
106
|
-
this.
|
|
106
|
+
this.updateTimestamp = undefined;
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
109
|
* The Site ID associated with this Compac Sizer Outlet Product Change
|
|
110
110
|
*
|
|
111
111
|
* @type {number}
|
|
112
|
-
* @
|
|
112
|
+
* @public
|
|
113
113
|
*/
|
|
114
|
-
this.
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* The Compac Sizer Outlet Product Change ID
|
|
119
|
-
*
|
|
120
|
-
* @public
|
|
121
|
-
* @type {string}
|
|
122
|
-
*/
|
|
123
|
-
get id()
|
|
124
|
-
{
|
|
125
|
-
return this._id;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* The Compac Sizer ID this Outlet Change is associated with
|
|
130
|
-
*
|
|
131
|
-
* @public
|
|
132
|
-
* @type {string}
|
|
133
|
-
*/
|
|
134
|
-
get compacSizerId()
|
|
135
|
-
{
|
|
136
|
-
return this._compacSizerId;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* The Sizer Outlet Number this Outlet Change is associated with
|
|
141
|
-
*
|
|
142
|
-
* @public
|
|
143
|
-
* @type {string}
|
|
144
|
-
*/
|
|
145
|
-
get outletNumber()
|
|
146
|
-
{
|
|
147
|
-
return this._outletNumber;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* When this Outlet Change occurred
|
|
152
|
-
*
|
|
153
|
-
* @public
|
|
154
|
-
* @type {Date}
|
|
155
|
-
*/
|
|
156
|
-
get createdTimestamp()
|
|
157
|
-
{
|
|
158
|
-
return this._createdTimestamp;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* The ID of the Previous Product that was active on the Outlet
|
|
163
|
-
*
|
|
164
|
-
* @public
|
|
165
|
-
* @type {?string}
|
|
166
|
-
*/
|
|
167
|
-
get previousProductId()
|
|
168
|
-
{
|
|
169
|
-
return this._previousProductId;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* The Name of the Previous Product that was active on the Outlet
|
|
174
|
-
*
|
|
175
|
-
* @public
|
|
176
|
-
* @type {?string}
|
|
177
|
-
*/
|
|
178
|
-
get previousProductName()
|
|
179
|
-
{
|
|
180
|
-
return this._previousProductName;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* The ID of the New Product that is now active on the Outlet
|
|
185
|
-
*
|
|
186
|
-
* @public
|
|
187
|
-
* @type {string}
|
|
188
|
-
*/
|
|
189
|
-
get newProductId()
|
|
190
|
-
{
|
|
191
|
-
return this._newProductId;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* The Name of the New Product that is now active on the Outlet
|
|
196
|
-
*
|
|
197
|
-
* @public
|
|
198
|
-
* @type {string}
|
|
199
|
-
*/
|
|
200
|
-
get newProductName()
|
|
201
|
-
{
|
|
202
|
-
return this._newProductName;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Whether the Compac Sizer Outlet Product Change has been deleted
|
|
207
|
-
*
|
|
208
|
-
* @public
|
|
209
|
-
* @type {boolean}
|
|
210
|
-
*/
|
|
211
|
-
get deleted()
|
|
212
|
-
{
|
|
213
|
-
return this._deleted;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* When the Compac Sizer Outlet Product Change was last updated
|
|
218
|
-
*
|
|
219
|
-
* @public
|
|
220
|
-
* @type {Date}
|
|
221
|
-
*/
|
|
222
|
-
get updateTimestamp()
|
|
223
|
-
{
|
|
224
|
-
return this._updateTimestamp;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* The Site ID associated with this Compac Sizer Outlet Product Change
|
|
229
|
-
*
|
|
230
|
-
* @public
|
|
231
|
-
* @type {number}
|
|
232
|
-
*/
|
|
233
|
-
get siteId()
|
|
234
|
-
{
|
|
235
|
-
return this._siteId;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* Convert this **CompacSizerOutletProductChangeModel** to a JSON Object
|
|
240
|
-
*
|
|
241
|
-
* @public
|
|
242
|
-
* @return {Object<string, any>}
|
|
243
|
-
*/
|
|
244
|
-
toJSON()
|
|
245
|
-
{
|
|
246
|
-
return {
|
|
247
|
-
id: this._id,
|
|
248
|
-
compacSizerId: this._compacSizerId,
|
|
249
|
-
outletNumber: this._outletNumber,
|
|
250
|
-
createdTimestamp: this._createdTimestamp,
|
|
251
|
-
previousProductId: this._previousProductId,
|
|
252
|
-
previousProductName: this._previousProductName,
|
|
253
|
-
newProductId: this._newProductId,
|
|
254
|
-
newProductName: this._newProductName,
|
|
255
|
-
deleted: this._deleted,
|
|
256
|
-
updateTimestamp: this._updateTimestamp
|
|
257
|
-
};
|
|
114
|
+
this.siteId = siteId;
|
|
258
115
|
}
|
|
259
116
|
|
|
260
117
|
/**
|
|
@@ -288,7 +145,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
|
|
|
288
145
|
|
|
289
146
|
if('id' in jsonObject)
|
|
290
147
|
{
|
|
291
|
-
model.
|
|
148
|
+
model.id = (function(){
|
|
292
149
|
if(typeof jsonObject['id'] !== 'string')
|
|
293
150
|
{
|
|
294
151
|
return String(jsonObject['id']);
|
|
@@ -300,7 +157,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
|
|
|
300
157
|
|
|
301
158
|
if('compacSizerId' in jsonObject)
|
|
302
159
|
{
|
|
303
|
-
model.
|
|
160
|
+
model.compacSizerId = (function(){
|
|
304
161
|
if(typeof jsonObject['compacSizerId'] !== 'string')
|
|
305
162
|
{
|
|
306
163
|
return String(jsonObject['compacSizerId']);
|
|
@@ -312,7 +169,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
|
|
|
312
169
|
|
|
313
170
|
if('outletNumber' in jsonObject)
|
|
314
171
|
{
|
|
315
|
-
model.
|
|
172
|
+
model.outletNumber = (function(){
|
|
316
173
|
if(typeof jsonObject['outletNumber'] !== 'string')
|
|
317
174
|
{
|
|
318
175
|
return String(jsonObject['outletNumber']);
|
|
@@ -324,7 +181,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
|
|
|
324
181
|
|
|
325
182
|
if('createdTimestamp' in jsonObject)
|
|
326
183
|
{
|
|
327
|
-
model.
|
|
184
|
+
model.createdTimestamp = (function(){
|
|
328
185
|
if(typeof jsonObject['createdTimestamp'] !== 'string')
|
|
329
186
|
{
|
|
330
187
|
return new Date(String(jsonObject['createdTimestamp']));
|
|
@@ -336,7 +193,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
|
|
|
336
193
|
|
|
337
194
|
if('previousProductId' in jsonObject)
|
|
338
195
|
{
|
|
339
|
-
model.
|
|
196
|
+
model.previousProductId = (function(){
|
|
340
197
|
if(jsonObject['previousProductId'] === null)
|
|
341
198
|
{
|
|
342
199
|
return null;
|
|
@@ -353,7 +210,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
|
|
|
353
210
|
|
|
354
211
|
if('previousProductName' in jsonObject)
|
|
355
212
|
{
|
|
356
|
-
model.
|
|
213
|
+
model.previousProductName = (function(){
|
|
357
214
|
if(jsonObject['previousProductName'] === null)
|
|
358
215
|
{
|
|
359
216
|
return null;
|
|
@@ -370,7 +227,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
|
|
|
370
227
|
|
|
371
228
|
if('newProductId' in jsonObject)
|
|
372
229
|
{
|
|
373
|
-
model.
|
|
230
|
+
model.newProductId = (function(){
|
|
374
231
|
if(typeof jsonObject['newProductId'] !== 'string')
|
|
375
232
|
{
|
|
376
233
|
return String(jsonObject['newProductId']);
|
|
@@ -382,7 +239,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
|
|
|
382
239
|
|
|
383
240
|
if('newProductName' in jsonObject)
|
|
384
241
|
{
|
|
385
|
-
model.
|
|
242
|
+
model.newProductName = (function(){
|
|
386
243
|
if(typeof jsonObject['newProductName'] !== 'string')
|
|
387
244
|
{
|
|
388
245
|
return String(jsonObject['newProductName']);
|
|
@@ -394,7 +251,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
|
|
|
394
251
|
|
|
395
252
|
if('deleted' in jsonObject)
|
|
396
253
|
{
|
|
397
|
-
model.
|
|
254
|
+
model.deleted = (function(){
|
|
398
255
|
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
399
256
|
{
|
|
400
257
|
return Boolean(jsonObject['deleted']);
|
|
@@ -406,7 +263,7 @@ class CompacSizerOutletProductChangeModel extends BaseSiteModel
|
|
|
406
263
|
|
|
407
264
|
if('updateTimestamp' in jsonObject)
|
|
408
265
|
{
|
|
409
|
-
model.
|
|
266
|
+
model.updateTimestamp = (function(){
|
|
410
267
|
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
411
268
|
{
|
|
412
269
|
return new Date(String(jsonObject['updateTimestamp']));
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
* Do Not Edit this File Manually!
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import
|
|
7
|
+
import BaseModel from '../../../Models/BaseModel';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Model Class for a Compac Sizer Outlet Type Change
|
|
11
11
|
*
|
|
12
12
|
* @class
|
|
13
13
|
* @hideconstructor
|
|
14
|
-
* @extends
|
|
14
|
+
* @extends BaseModel
|
|
15
15
|
*/
|
|
16
|
-
class CompacSizerOutletTypeChangeModel extends
|
|
16
|
+
class CompacSizerOutletTypeChangeModel extends BaseModel
|
|
17
17
|
{
|
|
18
18
|
/**
|
|
19
19
|
* CompacSizerOutletTypeChangeModel Constructor
|
|
@@ -29,192 +29,73 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
|
|
|
29
29
|
* The Compac Sizer Outlet Type Change ID
|
|
30
30
|
*
|
|
31
31
|
* @type {string}
|
|
32
|
-
* @
|
|
32
|
+
* @public
|
|
33
33
|
*/
|
|
34
|
-
this.
|
|
34
|
+
this.id = undefined;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* The Compac Sizer ID this Outlet Type Change is associated with
|
|
38
38
|
*
|
|
39
39
|
* @type {string}
|
|
40
|
-
* @
|
|
40
|
+
* @public
|
|
41
41
|
*/
|
|
42
|
-
this.
|
|
42
|
+
this.compacSizerId = undefined;
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* The Sizer Outlet Number this Outlet Type Change is associated with
|
|
46
46
|
*
|
|
47
47
|
* @type {string}
|
|
48
|
-
* @
|
|
48
|
+
* @public
|
|
49
49
|
*/
|
|
50
|
-
this.
|
|
50
|
+
this.outletNumber = undefined;
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* When this Outlet Type Change occurred
|
|
54
54
|
*
|
|
55
55
|
* @type {Date}
|
|
56
|
-
* @
|
|
56
|
+
* @public
|
|
57
57
|
*/
|
|
58
|
-
this.
|
|
58
|
+
this.createdTimestamp = undefined;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* The ID of the Previous Type that was active on the Outlet
|
|
62
62
|
*
|
|
63
63
|
* @type {?string}
|
|
64
|
-
* @
|
|
64
|
+
* @public
|
|
65
65
|
*/
|
|
66
|
-
this.
|
|
66
|
+
this.previousTypeId = undefined;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
69
|
* The ID of the New Type that is now active on the Outlet
|
|
70
70
|
*
|
|
71
71
|
* @type {string}
|
|
72
|
-
* @
|
|
72
|
+
* @public
|
|
73
73
|
*/
|
|
74
|
-
this.
|
|
74
|
+
this.newTypeId = undefined;
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* Whether the Compac Sizer Outlet Type Change has been deleted
|
|
78
78
|
*
|
|
79
79
|
* @type {boolean}
|
|
80
|
-
* @
|
|
80
|
+
* @public
|
|
81
81
|
*/
|
|
82
|
-
this.
|
|
82
|
+
this.deleted = undefined;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
85
|
* When the Compac Sizer Outlet Type Change was last updated
|
|
86
86
|
*
|
|
87
87
|
* @type {Date}
|
|
88
|
-
* @
|
|
88
|
+
* @public
|
|
89
89
|
*/
|
|
90
|
-
this.
|
|
90
|
+
this.updateTimestamp = undefined;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* The Site ID associated with this Compac Sizer Outlet Type Change
|
|
94
94
|
*
|
|
95
95
|
* @type {number}
|
|
96
|
-
* @
|
|
96
|
+
* @public
|
|
97
97
|
*/
|
|
98
|
-
this.
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* The Compac Sizer Outlet Type Change ID
|
|
103
|
-
*
|
|
104
|
-
* @public
|
|
105
|
-
* @type {string}
|
|
106
|
-
*/
|
|
107
|
-
get id()
|
|
108
|
-
{
|
|
109
|
-
return this._id;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
/**
|
|
113
|
-
* The Compac Sizer ID this Outlet Type Change is associated with
|
|
114
|
-
*
|
|
115
|
-
* @public
|
|
116
|
-
* @type {string}
|
|
117
|
-
*/
|
|
118
|
-
get compacSizerId()
|
|
119
|
-
{
|
|
120
|
-
return this._compacSizerId;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* The Sizer Outlet Number this Outlet Type Change is associated with
|
|
125
|
-
*
|
|
126
|
-
* @public
|
|
127
|
-
* @type {string}
|
|
128
|
-
*/
|
|
129
|
-
get outletNumber()
|
|
130
|
-
{
|
|
131
|
-
return this._outletNumber;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* When this Outlet Type Change occurred
|
|
136
|
-
*
|
|
137
|
-
* @public
|
|
138
|
-
* @type {Date}
|
|
139
|
-
*/
|
|
140
|
-
get createdTimestamp()
|
|
141
|
-
{
|
|
142
|
-
return this._createdTimestamp;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* The ID of the Previous Type that was active on the Outlet
|
|
147
|
-
*
|
|
148
|
-
* @public
|
|
149
|
-
* @type {?string}
|
|
150
|
-
*/
|
|
151
|
-
get previousTypeId()
|
|
152
|
-
{
|
|
153
|
-
return this._previousTypeId;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* The ID of the New Type that is now active on the Outlet
|
|
158
|
-
*
|
|
159
|
-
* @public
|
|
160
|
-
* @type {string}
|
|
161
|
-
*/
|
|
162
|
-
get newTypeId()
|
|
163
|
-
{
|
|
164
|
-
return this._newTypeId;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* Whether the Compac Sizer Outlet Type Change has been deleted
|
|
169
|
-
*
|
|
170
|
-
* @public
|
|
171
|
-
* @type {boolean}
|
|
172
|
-
*/
|
|
173
|
-
get deleted()
|
|
174
|
-
{
|
|
175
|
-
return this._deleted;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* When the Compac Sizer Outlet Type Change was last updated
|
|
180
|
-
*
|
|
181
|
-
* @public
|
|
182
|
-
* @type {Date}
|
|
183
|
-
*/
|
|
184
|
-
get updateTimestamp()
|
|
185
|
-
{
|
|
186
|
-
return this._updateTimestamp;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* The Site ID associated with this Compac Sizer Outlet Type Change
|
|
191
|
-
*
|
|
192
|
-
* @public
|
|
193
|
-
* @type {number}
|
|
194
|
-
*/
|
|
195
|
-
get siteId()
|
|
196
|
-
{
|
|
197
|
-
return this._siteId;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Convert this **CompacSizerOutletTypeChangeModel** to a JSON Object
|
|
202
|
-
*
|
|
203
|
-
* @public
|
|
204
|
-
* @return {Object<string, any>}
|
|
205
|
-
*/
|
|
206
|
-
toJSON()
|
|
207
|
-
{
|
|
208
|
-
return {
|
|
209
|
-
id: this._id,
|
|
210
|
-
compacSizerId: this._compacSizerId,
|
|
211
|
-
outletNumber: this._outletNumber,
|
|
212
|
-
createdTimestamp: this._createdTimestamp,
|
|
213
|
-
previousTypeId: this._previousTypeId,
|
|
214
|
-
newTypeId: this._newTypeId,
|
|
215
|
-
deleted: this._deleted,
|
|
216
|
-
updateTimestamp: this._updateTimestamp
|
|
217
|
-
};
|
|
98
|
+
this.siteId = siteId;
|
|
218
99
|
}
|
|
219
100
|
|
|
220
101
|
/**
|
|
@@ -248,7 +129,7 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
|
|
|
248
129
|
|
|
249
130
|
if('id' in jsonObject)
|
|
250
131
|
{
|
|
251
|
-
model.
|
|
132
|
+
model.id = (function(){
|
|
252
133
|
if(typeof jsonObject['id'] !== 'string')
|
|
253
134
|
{
|
|
254
135
|
return String(jsonObject['id']);
|
|
@@ -260,7 +141,7 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
|
|
|
260
141
|
|
|
261
142
|
if('compacSizerId' in jsonObject)
|
|
262
143
|
{
|
|
263
|
-
model.
|
|
144
|
+
model.compacSizerId = (function(){
|
|
264
145
|
if(typeof jsonObject['compacSizerId'] !== 'string')
|
|
265
146
|
{
|
|
266
147
|
return String(jsonObject['compacSizerId']);
|
|
@@ -272,7 +153,7 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
|
|
|
272
153
|
|
|
273
154
|
if('outletNumber' in jsonObject)
|
|
274
155
|
{
|
|
275
|
-
model.
|
|
156
|
+
model.outletNumber = (function(){
|
|
276
157
|
if(typeof jsonObject['outletNumber'] !== 'string')
|
|
277
158
|
{
|
|
278
159
|
return String(jsonObject['outletNumber']);
|
|
@@ -284,7 +165,7 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
|
|
|
284
165
|
|
|
285
166
|
if('createdTimestamp' in jsonObject)
|
|
286
167
|
{
|
|
287
|
-
model.
|
|
168
|
+
model.createdTimestamp = (function(){
|
|
288
169
|
if(typeof jsonObject['createdTimestamp'] !== 'string')
|
|
289
170
|
{
|
|
290
171
|
return new Date(String(jsonObject['createdTimestamp']));
|
|
@@ -296,7 +177,7 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
|
|
|
296
177
|
|
|
297
178
|
if('previousTypeId' in jsonObject)
|
|
298
179
|
{
|
|
299
|
-
model.
|
|
180
|
+
model.previousTypeId = (function(){
|
|
300
181
|
if(jsonObject['previousTypeId'] === null)
|
|
301
182
|
{
|
|
302
183
|
return null;
|
|
@@ -313,7 +194,7 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
|
|
|
313
194
|
|
|
314
195
|
if('newTypeId' in jsonObject)
|
|
315
196
|
{
|
|
316
|
-
model.
|
|
197
|
+
model.newTypeId = (function(){
|
|
317
198
|
if(typeof jsonObject['newTypeId'] !== 'string')
|
|
318
199
|
{
|
|
319
200
|
return String(jsonObject['newTypeId']);
|
|
@@ -325,7 +206,7 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
|
|
|
325
206
|
|
|
326
207
|
if('deleted' in jsonObject)
|
|
327
208
|
{
|
|
328
|
-
model.
|
|
209
|
+
model.deleted = (function(){
|
|
329
210
|
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
330
211
|
{
|
|
331
212
|
return Boolean(jsonObject['deleted']);
|
|
@@ -337,7 +218,7 @@ class CompacSizerOutletTypeChangeModel extends BaseSiteModel
|
|
|
337
218
|
|
|
338
219
|
if('updateTimestamp' in jsonObject)
|
|
339
220
|
{
|
|
340
|
-
model.
|
|
221
|
+
model.updateTimestamp = (function(){
|
|
341
222
|
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
342
223
|
{
|
|
343
224
|
return new Date(String(jsonObject['updateTimestamp']));
|