@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
|
@@ -29,7 +29,7 @@ class PermanentObjectDataController
|
|
|
29
29
|
RequestHelper.getRequest(`/sites/${siteId}/permanent-object-data/${id}`)
|
|
30
30
|
.then((result) => {
|
|
31
31
|
let resolveValue = (function(){
|
|
32
|
-
return PermanentObjectDataModel.fromJSON(result);
|
|
32
|
+
return PermanentObjectDataModel.fromJSON(result, siteId);
|
|
33
33
|
}());
|
|
34
34
|
|
|
35
35
|
resolve(resolveValue);
|
|
@@ -54,7 +54,7 @@ class PermanentObjectDataController
|
|
|
54
54
|
RequestHelper.patchRequest(`/sites/${siteId}/permanent-object-data/${id}`, updateData)
|
|
55
55
|
.then((result) => {
|
|
56
56
|
let resolveValue = (function(){
|
|
57
|
-
return PermanentObjectDataModel.fromJSON(result);
|
|
57
|
+
return PermanentObjectDataModel.fromJSON(result, siteId);
|
|
58
58
|
}());
|
|
59
59
|
|
|
60
60
|
resolve(resolveValue);
|
|
@@ -569,7 +569,7 @@ class PermanentObjectDataController
|
|
|
569
569
|
|
|
570
570
|
return result.map((resultItem) => {
|
|
571
571
|
return (function(){
|
|
572
|
-
return PermanentObjectDataModel.fromJSON(resultItem);
|
|
572
|
+
return PermanentObjectDataModel.fromJSON(resultItem, siteId);
|
|
573
573
|
}());
|
|
574
574
|
});
|
|
575
575
|
}());
|
|
@@ -595,7 +595,7 @@ class PermanentObjectDataController
|
|
|
595
595
|
RequestHelper.postRequest(`/sites/${siteId}/permanent-object-data`, createData)
|
|
596
596
|
.then((result) => {
|
|
597
597
|
let resolveValue = (function(){
|
|
598
|
-
return PermanentObjectDataModel.fromJSON(result);
|
|
598
|
+
return PermanentObjectDataModel.fromJSON(result, siteId);
|
|
599
599
|
}());
|
|
600
600
|
|
|
601
601
|
resolve(resolveValue);
|
|
@@ -348,7 +348,7 @@ class PointController
|
|
|
348
348
|
RequestHelper.getRequest(`/sites/${siteId}/points/${id}`)
|
|
349
349
|
.then((result) => {
|
|
350
350
|
let resolveValue = (function(){
|
|
351
|
-
return PointModel.fromJSON(result);
|
|
351
|
+
return PointModel.fromJSON(result, siteId);
|
|
352
352
|
}());
|
|
353
353
|
|
|
354
354
|
resolve(resolveValue);
|
|
@@ -373,7 +373,7 @@ class PointController
|
|
|
373
373
|
RequestHelper.patchRequest(`/sites/${siteId}/points/${id}`, updateData)
|
|
374
374
|
.then((result) => {
|
|
375
375
|
let resolveValue = (function(){
|
|
376
|
-
return PointModel.fromJSON(result);
|
|
376
|
+
return PointModel.fromJSON(result, siteId);
|
|
377
377
|
}());
|
|
378
378
|
|
|
379
379
|
resolve(resolveValue);
|
|
@@ -424,7 +424,7 @@ class PointController
|
|
|
424
424
|
|
|
425
425
|
return result.map((resultItem) => {
|
|
426
426
|
return (function(){
|
|
427
|
-
return PointModel.fromJSON(resultItem);
|
|
427
|
+
return PointModel.fromJSON(resultItem, siteId);
|
|
428
428
|
}());
|
|
429
429
|
});
|
|
430
430
|
}());
|
|
@@ -450,7 +450,7 @@ class PointController
|
|
|
450
450
|
RequestHelper.postRequest(`/sites/${siteId}/points`, createData)
|
|
451
451
|
.then((result) => {
|
|
452
452
|
let resolveValue = (function(){
|
|
453
|
-
return PointModel.fromJSON(result);
|
|
453
|
+
return PointModel.fromJSON(result, siteId);
|
|
454
454
|
}());
|
|
455
455
|
|
|
456
456
|
resolve(resolveValue);
|
|
@@ -29,7 +29,7 @@ class TemporaryObjectController
|
|
|
29
29
|
RequestHelper.getRequest(`/sites/${siteId}/temporary-objects/${id}`)
|
|
30
30
|
.then((result) => {
|
|
31
31
|
let resolveValue = (function(){
|
|
32
|
-
return TemporaryObjectModel.fromJSON(result);
|
|
32
|
+
return TemporaryObjectModel.fromJSON(result, siteId);
|
|
33
33
|
}());
|
|
34
34
|
|
|
35
35
|
resolve(resolveValue);
|
|
@@ -54,7 +54,7 @@ class TemporaryObjectController
|
|
|
54
54
|
RequestHelper.patchRequest(`/sites/${siteId}/temporary-objects/${id}`, updateData)
|
|
55
55
|
.then((result) => {
|
|
56
56
|
let resolveValue = (function(){
|
|
57
|
-
return TemporaryObjectModel.fromJSON(result);
|
|
57
|
+
return TemporaryObjectModel.fromJSON(result, siteId);
|
|
58
58
|
}());
|
|
59
59
|
|
|
60
60
|
resolve(resolveValue);
|
|
@@ -105,7 +105,7 @@ class TemporaryObjectController
|
|
|
105
105
|
|
|
106
106
|
return result.map((resultItem) => {
|
|
107
107
|
return (function(){
|
|
108
|
-
return TemporaryObjectModel.fromJSON(resultItem);
|
|
108
|
+
return TemporaryObjectModel.fromJSON(resultItem, siteId);
|
|
109
109
|
}());
|
|
110
110
|
});
|
|
111
111
|
}());
|
|
@@ -131,7 +131,7 @@ class TemporaryObjectController
|
|
|
131
131
|
RequestHelper.postRequest(`/sites/${siteId}/temporary-objects`, createData)
|
|
132
132
|
.then((result) => {
|
|
133
133
|
let resolveValue = (function(){
|
|
134
|
-
return TemporaryObjectModel.fromJSON(result);
|
|
134
|
+
return TemporaryObjectModel.fromJSON(result, siteId);
|
|
135
135
|
}());
|
|
136
136
|
|
|
137
137
|
resolve(resolveValue);
|
|
@@ -19,8 +19,9 @@ class BinTipWeightModel extends BaseModel
|
|
|
19
19
|
* BinTipWeightModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Bin Tip Weight
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -95,6 +96,14 @@ class BinTipWeightModel extends BaseModel
|
|
|
95
96
|
* @public
|
|
96
97
|
*/
|
|
97
98
|
this.updateTimestamp = undefined;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The Site ID associated with this Bin Tip Weight
|
|
102
|
+
*
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
this.siteId = siteId;
|
|
98
107
|
}
|
|
99
108
|
|
|
100
109
|
/**
|
|
@@ -103,11 +112,12 @@ class BinTipWeightModel extends BaseModel
|
|
|
103
112
|
* @static
|
|
104
113
|
* @public
|
|
105
114
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
115
|
+
* @param {number} siteId The Site ID associated with this Bin Tip Weight
|
|
106
116
|
* @return {BinTipWeightModel}
|
|
107
117
|
*/
|
|
108
|
-
static fromJSON(json)
|
|
118
|
+
static fromJSON(json, siteId)
|
|
109
119
|
{
|
|
110
|
-
let model = new BinTipWeightModel();
|
|
120
|
+
let model = new BinTipWeightModel(siteId);
|
|
111
121
|
|
|
112
122
|
/**
|
|
113
123
|
* The JSON Object
|
|
@@ -19,8 +19,9 @@ class CompacSizerBatchModel extends BaseModel
|
|
|
19
19
|
* CompacSizerBatchModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer Batch
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -87,6 +88,14 @@ class CompacSizerBatchModel extends BaseModel
|
|
|
87
88
|
* @public
|
|
88
89
|
*/
|
|
89
90
|
this.updateTimestamp = undefined;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The Site ID associated with this Compac Sizer Batch
|
|
94
|
+
*
|
|
95
|
+
* @type {number}
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
this.siteId = siteId;
|
|
90
99
|
}
|
|
91
100
|
|
|
92
101
|
/**
|
|
@@ -95,11 +104,12 @@ class CompacSizerBatchModel extends BaseModel
|
|
|
95
104
|
* @static
|
|
96
105
|
* @public
|
|
97
106
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
107
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer Batch
|
|
98
108
|
* @return {CompacSizerBatchModel}
|
|
99
109
|
*/
|
|
100
|
-
static fromJSON(json)
|
|
110
|
+
static fromJSON(json, siteId)
|
|
101
111
|
{
|
|
102
|
-
let model = new CompacSizerBatchModel();
|
|
112
|
+
let model = new CompacSizerBatchModel(siteId);
|
|
103
113
|
|
|
104
114
|
/**
|
|
105
115
|
* The JSON Object
|
|
@@ -19,8 +19,9 @@ class CompacSizerModel extends BaseModel
|
|
|
19
19
|
* CompacSizerModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -135,6 +136,14 @@ class CompacSizerModel extends BaseModel
|
|
|
135
136
|
* @public
|
|
136
137
|
*/
|
|
137
138
|
this.updateTimestamp = undefined;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The Site ID associated with this Compac Sizer
|
|
142
|
+
*
|
|
143
|
+
* @type {number}
|
|
144
|
+
* @public
|
|
145
|
+
*/
|
|
146
|
+
this.siteId = siteId;
|
|
138
147
|
}
|
|
139
148
|
|
|
140
149
|
/**
|
|
@@ -143,11 +152,12 @@ class CompacSizerModel extends BaseModel
|
|
|
143
152
|
* @static
|
|
144
153
|
* @public
|
|
145
154
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
155
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer
|
|
146
156
|
* @return {CompacSizerModel}
|
|
147
157
|
*/
|
|
148
|
-
static fromJSON(json)
|
|
158
|
+
static fromJSON(json, siteId)
|
|
149
159
|
{
|
|
150
|
-
let model = new CompacSizerModel();
|
|
160
|
+
let model = new CompacSizerModel(siteId);
|
|
151
161
|
|
|
152
162
|
/**
|
|
153
163
|
* The JSON Object
|
|
@@ -19,8 +19,9 @@ class CompacSizerOutletProductChangeModel extends BaseModel
|
|
|
19
19
|
* CompacSizerOutletProductChangeModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer Outlet Product Change
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -103,6 +104,14 @@ class CompacSizerOutletProductChangeModel extends BaseModel
|
|
|
103
104
|
* @public
|
|
104
105
|
*/
|
|
105
106
|
this.updateTimestamp = undefined;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The Site ID associated with this Compac Sizer Outlet Product Change
|
|
110
|
+
*
|
|
111
|
+
* @type {number}
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
this.siteId = siteId;
|
|
106
115
|
}
|
|
107
116
|
|
|
108
117
|
/**
|
|
@@ -111,11 +120,12 @@ class CompacSizerOutletProductChangeModel extends BaseModel
|
|
|
111
120
|
* @static
|
|
112
121
|
* @public
|
|
113
122
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
123
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer Outlet Product Change
|
|
114
124
|
* @return {CompacSizerOutletProductChangeModel}
|
|
115
125
|
*/
|
|
116
|
-
static fromJSON(json)
|
|
126
|
+
static fromJSON(json, siteId)
|
|
117
127
|
{
|
|
118
|
-
let model = new CompacSizerOutletProductChangeModel();
|
|
128
|
+
let model = new CompacSizerOutletProductChangeModel(siteId);
|
|
119
129
|
|
|
120
130
|
/**
|
|
121
131
|
* The JSON Object
|
|
@@ -19,8 +19,9 @@ class CompacSizerOutletTypeChangeModel extends BaseModel
|
|
|
19
19
|
* CompacSizerOutletTypeChangeModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer Outlet Type Change
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -87,6 +88,14 @@ class CompacSizerOutletTypeChangeModel extends BaseModel
|
|
|
87
88
|
* @public
|
|
88
89
|
*/
|
|
89
90
|
this.updateTimestamp = undefined;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The Site ID associated with this Compac Sizer Outlet Type Change
|
|
94
|
+
*
|
|
95
|
+
* @type {number}
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
this.siteId = siteId;
|
|
90
99
|
}
|
|
91
100
|
|
|
92
101
|
/**
|
|
@@ -95,11 +104,12 @@ class CompacSizerOutletTypeChangeModel extends BaseModel
|
|
|
95
104
|
* @static
|
|
96
105
|
* @public
|
|
97
106
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
107
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer Outlet Type Change
|
|
98
108
|
* @return {CompacSizerOutletTypeChangeModel}
|
|
99
109
|
*/
|
|
100
|
-
static fromJSON(json)
|
|
110
|
+
static fromJSON(json, siteId)
|
|
101
111
|
{
|
|
102
|
-
let model = new CompacSizerOutletTypeChangeModel();
|
|
112
|
+
let model = new CompacSizerOutletTypeChangeModel(siteId);
|
|
103
113
|
|
|
104
114
|
/**
|
|
105
115
|
* The JSON Object
|
|
@@ -19,8 +19,9 @@ class CompacSizerOutletTypeModel extends BaseModel
|
|
|
19
19
|
* CompacSizerOutletTypeModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer Outlet Type
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -71,6 +72,14 @@ class CompacSizerOutletTypeModel extends BaseModel
|
|
|
71
72
|
* @public
|
|
72
73
|
*/
|
|
73
74
|
this.updateTimestamp = undefined;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The Site ID associated with this Compac Sizer Outlet Type
|
|
78
|
+
*
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
this.siteId = siteId;
|
|
74
83
|
}
|
|
75
84
|
|
|
76
85
|
/**
|
|
@@ -79,11 +88,12 @@ class CompacSizerOutletTypeModel extends BaseModel
|
|
|
79
88
|
* @static
|
|
80
89
|
* @public
|
|
81
90
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
91
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer Outlet Type
|
|
82
92
|
* @return {CompacSizerOutletTypeModel}
|
|
83
93
|
*/
|
|
84
|
-
static fromJSON(json)
|
|
94
|
+
static fromJSON(json, siteId)
|
|
85
95
|
{
|
|
86
|
-
let model = new CompacSizerOutletTypeModel();
|
|
96
|
+
let model = new CompacSizerOutletTypeModel(siteId);
|
|
87
97
|
|
|
88
98
|
/**
|
|
89
99
|
* The JSON Object
|
|
@@ -19,8 +19,9 @@ class CompacSizerPackrunSummaryModel extends BaseModel
|
|
|
19
19
|
* CompacSizerPackrunSummaryModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer Packrun Summary
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -119,6 +120,14 @@ class CompacSizerPackrunSummaryModel extends BaseModel
|
|
|
119
120
|
* @public
|
|
120
121
|
*/
|
|
121
122
|
this.updateTimestamp = undefined;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* The Site ID associated with this Compac Sizer Packrun Summary
|
|
126
|
+
*
|
|
127
|
+
* @type {number}
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
this.siteId = siteId;
|
|
122
131
|
}
|
|
123
132
|
|
|
124
133
|
/**
|
|
@@ -127,11 +136,12 @@ class CompacSizerPackrunSummaryModel extends BaseModel
|
|
|
127
136
|
* @static
|
|
128
137
|
* @public
|
|
129
138
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
139
|
+
* @param {number} siteId The Site ID associated with this Compac Sizer Packrun Summary
|
|
130
140
|
* @return {CompacSizerPackrunSummaryModel}
|
|
131
141
|
*/
|
|
132
|
-
static fromJSON(json)
|
|
142
|
+
static fromJSON(json, siteId)
|
|
133
143
|
{
|
|
134
|
-
let model = new CompacSizerPackrunSummaryModel();
|
|
144
|
+
let model = new CompacSizerPackrunSummaryModel(siteId);
|
|
135
145
|
|
|
136
146
|
/**
|
|
137
147
|
* The JSON Object
|
|
@@ -19,8 +19,9 @@ class DowntimeEventModel extends BaseModel
|
|
|
19
19
|
* DowntimeEventModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Downtime Event
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -135,6 +136,14 @@ class DowntimeEventModel extends BaseModel
|
|
|
135
136
|
* @public
|
|
136
137
|
*/
|
|
137
138
|
this.updateTimestamp = undefined;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The Site ID associated with this Downtime Event
|
|
142
|
+
*
|
|
143
|
+
* @type {number}
|
|
144
|
+
* @public
|
|
145
|
+
*/
|
|
146
|
+
this.siteId = siteId;
|
|
138
147
|
}
|
|
139
148
|
|
|
140
149
|
/**
|
|
@@ -143,11 +152,12 @@ class DowntimeEventModel extends BaseModel
|
|
|
143
152
|
* @static
|
|
144
153
|
* @public
|
|
145
154
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
155
|
+
* @param {number} siteId The Site ID associated with this Downtime Event
|
|
146
156
|
* @return {DowntimeEventModel}
|
|
147
157
|
*/
|
|
148
|
-
static fromJSON(json)
|
|
158
|
+
static fromJSON(json, siteId)
|
|
149
159
|
{
|
|
150
|
-
let model = new DowntimeEventModel();
|
|
160
|
+
let model = new DowntimeEventModel(siteId);
|
|
151
161
|
|
|
152
162
|
/**
|
|
153
163
|
* The JSON Object
|
|
@@ -19,8 +19,9 @@ class FreshPackPackrunSummaryModel extends BaseModel
|
|
|
19
19
|
* FreshPackPackrunSummaryModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this FreshPack Packrun Summary
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -87,6 +88,14 @@ class FreshPackPackrunSummaryModel extends BaseModel
|
|
|
87
88
|
* @public
|
|
88
89
|
*/
|
|
89
90
|
this.updateTimestamp = undefined;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The Site ID associated with this FreshPack Packrun Summary
|
|
94
|
+
*
|
|
95
|
+
* @type {number}
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
this.siteId = siteId;
|
|
90
99
|
}
|
|
91
100
|
|
|
92
101
|
/**
|
|
@@ -95,11 +104,12 @@ class FreshPackPackrunSummaryModel extends BaseModel
|
|
|
95
104
|
* @static
|
|
96
105
|
* @public
|
|
97
106
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
107
|
+
* @param {number} siteId The Site ID associated with this FreshPack Packrun Summary
|
|
98
108
|
* @return {FreshPackPackrunSummaryModel}
|
|
99
109
|
*/
|
|
100
|
-
static fromJSON(json)
|
|
110
|
+
static fromJSON(json, siteId)
|
|
101
111
|
{
|
|
102
|
-
let model = new FreshPackPackrunSummaryModel();
|
|
112
|
+
let model = new FreshPackPackrunSummaryModel(siteId);
|
|
103
113
|
|
|
104
114
|
/**
|
|
105
115
|
* The JSON Object
|
|
@@ -19,8 +19,9 @@ class GrowingMethodModel extends BaseModel
|
|
|
19
19
|
* GrowingMethodModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Growing Method
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -71,6 +72,14 @@ class GrowingMethodModel extends BaseModel
|
|
|
71
72
|
* @public
|
|
72
73
|
*/
|
|
73
74
|
this.updateTimestamp = undefined;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The Site ID associated with this Growing Method
|
|
78
|
+
*
|
|
79
|
+
* @type {number}
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
this.siteId = siteId;
|
|
74
83
|
}
|
|
75
84
|
|
|
76
85
|
/**
|
|
@@ -79,11 +88,12 @@ class GrowingMethodModel extends BaseModel
|
|
|
79
88
|
* @static
|
|
80
89
|
* @public
|
|
81
90
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
91
|
+
* @param {number} siteId The Site ID associated with this Growing Method
|
|
82
92
|
* @return {GrowingMethodModel}
|
|
83
93
|
*/
|
|
84
|
-
static fromJSON(json)
|
|
94
|
+
static fromJSON(json, siteId)
|
|
85
95
|
{
|
|
86
|
-
let model = new GrowingMethodModel();
|
|
96
|
+
let model = new GrowingMethodModel(siteId);
|
|
87
97
|
|
|
88
98
|
/**
|
|
89
99
|
* The JSON Object
|
|
@@ -19,8 +19,9 @@ class PackTypeModel extends BaseModel
|
|
|
19
19
|
* PackTypeModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Pack Type
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -87,6 +88,14 @@ class PackTypeModel extends BaseModel
|
|
|
87
88
|
* @public
|
|
88
89
|
*/
|
|
89
90
|
this.updateTimestamp = undefined;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The Site ID associated with this Pack Type
|
|
94
|
+
*
|
|
95
|
+
* @type {number}
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
this.siteId = siteId;
|
|
90
99
|
}
|
|
91
100
|
|
|
92
101
|
/**
|
|
@@ -95,11 +104,12 @@ class PackTypeModel extends BaseModel
|
|
|
95
104
|
* @static
|
|
96
105
|
* @public
|
|
97
106
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
107
|
+
* @param {number} siteId The Site ID associated with this Pack Type
|
|
98
108
|
* @return {PackTypeModel}
|
|
99
109
|
*/
|
|
100
|
-
static fromJSON(json)
|
|
110
|
+
static fromJSON(json, siteId)
|
|
101
111
|
{
|
|
102
|
-
let model = new PackTypeModel();
|
|
112
|
+
let model = new PackTypeModel(siteId);
|
|
103
113
|
|
|
104
114
|
/**
|
|
105
115
|
* The JSON Object
|
|
@@ -19,8 +19,9 @@ class PackingLineModel extends BaseModel
|
|
|
19
19
|
* PackingLineModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Packing Line
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -143,6 +144,14 @@ class PackingLineModel extends BaseModel
|
|
|
143
144
|
* @public
|
|
144
145
|
*/
|
|
145
146
|
this.updateTimestamp = undefined;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* The Site ID associated with this Packing Line
|
|
150
|
+
*
|
|
151
|
+
* @type {number}
|
|
152
|
+
* @public
|
|
153
|
+
*/
|
|
154
|
+
this.siteId = siteId;
|
|
146
155
|
}
|
|
147
156
|
|
|
148
157
|
/**
|
|
@@ -151,11 +160,12 @@ class PackingLineModel extends BaseModel
|
|
|
151
160
|
* @static
|
|
152
161
|
* @public
|
|
153
162
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
163
|
+
* @param {number} siteId The Site ID associated with this Packing Line
|
|
154
164
|
* @return {PackingLineModel}
|
|
155
165
|
*/
|
|
156
|
-
static fromJSON(json)
|
|
166
|
+
static fromJSON(json, siteId)
|
|
157
167
|
{
|
|
158
|
-
let model = new PackingLineModel();
|
|
168
|
+
let model = new PackingLineModel(siteId);
|
|
159
169
|
|
|
160
170
|
/**
|
|
161
171
|
* The JSON Object
|
|
@@ -19,8 +19,9 @@ class PackrunModel extends BaseModel
|
|
|
19
19
|
* PackrunModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Packrun
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -143,6 +144,14 @@ class PackrunModel extends BaseModel
|
|
|
143
144
|
* @public
|
|
144
145
|
*/
|
|
145
146
|
this.updateTimestamp = undefined;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* The Site ID associated with this Packrun
|
|
150
|
+
*
|
|
151
|
+
* @type {number}
|
|
152
|
+
* @public
|
|
153
|
+
*/
|
|
154
|
+
this.siteId = siteId;
|
|
146
155
|
}
|
|
147
156
|
|
|
148
157
|
/**
|
|
@@ -151,11 +160,12 @@ class PackrunModel extends BaseModel
|
|
|
151
160
|
* @static
|
|
152
161
|
* @public
|
|
153
162
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
163
|
+
* @param {number} siteId The Site ID associated with this Packrun
|
|
154
164
|
* @return {PackrunModel}
|
|
155
165
|
*/
|
|
156
|
-
static fromJSON(json)
|
|
166
|
+
static fromJSON(json, siteId)
|
|
157
167
|
{
|
|
158
|
-
let model = new PackrunModel();
|
|
168
|
+
let model = new PackrunModel(siteId);
|
|
159
169
|
|
|
160
170
|
/**
|
|
161
171
|
* The JSON Object
|
|
@@ -19,8 +19,9 @@ class RejectBinModel extends BaseModel
|
|
|
19
19
|
* RejectBinModel Constructor
|
|
20
20
|
*
|
|
21
21
|
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Reject Bin
|
|
22
23
|
*/
|
|
23
|
-
constructor()
|
|
24
|
+
constructor(siteId)
|
|
24
25
|
{
|
|
25
26
|
super();
|
|
26
27
|
|
|
@@ -95,6 +96,14 @@ class RejectBinModel extends BaseModel
|
|
|
95
96
|
* @public
|
|
96
97
|
*/
|
|
97
98
|
this.updateTimestamp = undefined;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The Site ID associated with this Reject Bin
|
|
102
|
+
*
|
|
103
|
+
* @type {number}
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
this.siteId = siteId;
|
|
98
107
|
}
|
|
99
108
|
|
|
100
109
|
/**
|
|
@@ -103,11 +112,12 @@ class RejectBinModel extends BaseModel
|
|
|
103
112
|
* @static
|
|
104
113
|
* @public
|
|
105
114
|
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
115
|
+
* @param {number} siteId The Site ID associated with this Reject Bin
|
|
106
116
|
* @return {RejectBinModel}
|
|
107
117
|
*/
|
|
108
|
-
static fromJSON(json)
|
|
118
|
+
static fromJSON(json, siteId)
|
|
109
119
|
{
|
|
110
|
-
let model = new RejectBinModel();
|
|
120
|
+
let model = new RejectBinModel(siteId);
|
|
111
121
|
|
|
112
122
|
/**
|
|
113
123
|
* The JSON Object
|