@ricado/api-client 1.4.1 → 2.0.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/Packhouse/Site/BinTipWeightController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerBatchController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletProductChangeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeChangeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerOutletTypeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/CompacSizerPackrunSummaryController.js +4 -4
- package/lib/Controllers/Packhouse/Site/DowntimeEventController.js +4 -4
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +4 -4
- package/lib/Controllers/Packhouse/Site/GrowingMethodController.js +4 -4
- package/lib/Controllers/Packhouse/Site/PackTypeController.js +4 -4
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +4 -4
- package/lib/Controllers/Packhouse/Site/PackrunController.js +4 -4
- package/lib/Controllers/Packhouse/Site/RejectBinController.js +4 -4
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -4
- package/lib/Controllers/Packhouse/Site/RejectBinWeightController.js +4 -4
- package/lib/Controllers/Packhouse/Site/ShiftController.js +4 -4
- package/lib/Controllers/Packhouse/Site/ShiftFocusMeetingController.js +4 -4
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +4 -4
- package/lib/Controllers/Packhouse/Site/VarietyController.js +4 -4
- package/lib/Controllers/Site/AlarmController.js +4 -4
- package/lib/Controllers/Site/AlarmGroupController.js +4 -4
- package/lib/Controllers/Site/DefinitionController.js +4 -4
- package/lib/Controllers/Site/PermanentObjectController.js +4 -4
- package/lib/Controllers/Site/PermanentObjectDataController.js +4 -4
- package/lib/Controllers/Site/PointController.js +4 -4
- package/lib/Controllers/Site/TemporaryObjectController.js +4 -4
- package/lib/Models/AccountPolicyModel.js +26 -130
- package/lib/Models/ApiAccountModel.js +26 -130
- package/lib/Models/CompanyModel.js +20 -98
- package/lib/Models/FirebaseTokenModel.js +29 -146
- package/lib/Models/Packhouse/Site/BinTipWeightModel.js +40 -192
- package/lib/Models/Packhouse/Site/CompacSizerBatchModel.js +37 -176
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +55 -272
- package/lib/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +43 -208
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +37 -176
- package/lib/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +31 -144
- package/lib/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +49 -240
- package/lib/Models/Packhouse/Site/DowntimeEventModel.js +55 -272
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +37 -176
- package/lib/Models/Packhouse/Site/GrowingMethodModel.js +31 -144
- package/lib/Models/Packhouse/Site/PackTypeModel.js +37 -176
- package/lib/Models/Packhouse/Site/PackingLineModel.js +58 -288
- package/lib/Models/Packhouse/Site/PackrunModel.js +58 -288
- package/lib/Models/Packhouse/Site/RejectBinModel.js +40 -192
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +49 -240
- package/lib/Models/Packhouse/Site/RejectBinWeightModel.js +43 -208
- package/lib/Models/Packhouse/Site/ShiftFocusMeetingModel.js +49 -240
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +124 -640
- package/lib/Models/Packhouse/Site/ShiftModel.js +70 -352
- package/lib/Models/Packhouse/Site/VarietyModel.js +37 -176
- package/lib/Models/RTUModel.js +23 -114
- package/lib/Models/RTUPluginModel.js +20 -98
- package/lib/Models/Site/AlarmGroupModel.js +34 -160
- package/lib/Models/Site/AlarmModel.js +64 -320
- package/lib/Models/Site/DefinitionModel.js +31 -144
- package/lib/Models/Site/PermanentObjectDataModel.js +37 -176
- package/lib/Models/Site/PermanentObjectModel.js +34 -160
- package/lib/Models/Site/PointModel.js +46 -224
- package/lib/Models/Site/TemporaryObjectModel.js +31 -144
- package/lib/Models/Site/index.js +0 -3
- package/lib/Models/SiteModel.js +23 -114
- package/lib/Models/TokenModel.js +35 -178
- package/lib/Models/UserAccountActionTokenModel.js +38 -194
- package/lib/Models/UserAccountModel.js +35 -178
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +834 -1589
- package/package.json +1 -1
- 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 +4 -4
- package/src/Controllers/Packhouse/Site/RejectBinController.js +4 -4
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +4 -4
- 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/VarietyController.js +4 -4
- 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/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 +33 -174
- package/src/Models/Packhouse/Site/CompacSizerBatchModel.js +30 -159
- package/src/Models/Packhouse/Site/CompacSizerModel.js +48 -249
- package/src/Models/Packhouse/Site/CompacSizerOutletProductChangeModel.js +36 -189
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeChangeModel.js +30 -159
- package/src/Models/Packhouse/Site/CompacSizerOutletTypeModel.js +24 -129
- package/src/Models/Packhouse/Site/CompacSizerPackrunSummaryModel.js +42 -219
- package/src/Models/Packhouse/Site/DowntimeEventModel.js +48 -249
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +30 -159
- package/src/Models/Packhouse/Site/GrowingMethodModel.js +24 -129
- package/src/Models/Packhouse/Site/PackTypeModel.js +30 -159
- package/src/Models/Packhouse/Site/PackingLineModel.js +51 -264
- package/src/Models/Packhouse/Site/PackrunModel.js +51 -264
- package/src/Models/Packhouse/Site/RejectBinModel.js +33 -174
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +42 -219
- package/src/Models/Packhouse/Site/RejectBinWeightModel.js +36 -189
- package/src/Models/Packhouse/Site/ShiftFocusMeetingModel.js +42 -219
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +117 -594
- package/src/Models/Packhouse/Site/ShiftModel.js +63 -324
- package/src/Models/Packhouse/Site/VarietyModel.js +30 -159
- package/src/Models/RTUModel.js +18 -102
- package/src/Models/RTUPluginModel.js +15 -87
- package/src/Models/Site/AlarmGroupModel.js +27 -144
- package/src/Models/Site/AlarmModel.js +57 -294
- package/src/Models/Site/DefinitionModel.js +24 -129
- package/src/Models/Site/PermanentObjectDataModel.js +30 -159
- package/src/Models/Site/PermanentObjectModel.js +27 -144
- package/src/Models/Site/PointModel.js +39 -204
- package/src/Models/Site/TemporaryObjectModel.js +24 -129
- 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
|
@@ -29,7 +29,7 @@ class ShiftHourlyEntryController
|
|
|
29
29
|
RequestHelper.getRequest(`/packhouse/sites/${siteId}/shift-hourly-entries/${id}`)
|
|
30
30
|
.then((result) => {
|
|
31
31
|
let resolveValue = (function(){
|
|
32
|
-
return ShiftHourlyEntryModel.fromJSON(result
|
|
32
|
+
return ShiftHourlyEntryModel.fromJSON(result);
|
|
33
33
|
}());
|
|
34
34
|
|
|
35
35
|
resolve(resolveValue);
|
|
@@ -54,7 +54,7 @@ class ShiftHourlyEntryController
|
|
|
54
54
|
RequestHelper.patchRequest(`/packhouse/sites/${siteId}/shift-hourly-entries/${id}`, updateData)
|
|
55
55
|
.then((result) => {
|
|
56
56
|
let resolveValue = (function(){
|
|
57
|
-
return ShiftHourlyEntryModel.fromJSON(result
|
|
57
|
+
return ShiftHourlyEntryModel.fromJSON(result);
|
|
58
58
|
}());
|
|
59
59
|
|
|
60
60
|
resolve(resolveValue);
|
|
@@ -569,7 +569,7 @@ class ShiftHourlyEntryController
|
|
|
569
569
|
|
|
570
570
|
return result.map((resultItem) => {
|
|
571
571
|
return (function(){
|
|
572
|
-
return ShiftHourlyEntryModel.fromJSON(resultItem
|
|
572
|
+
return ShiftHourlyEntryModel.fromJSON(resultItem);
|
|
573
573
|
}());
|
|
574
574
|
});
|
|
575
575
|
}());
|
|
@@ -595,7 +595,7 @@ class ShiftHourlyEntryController
|
|
|
595
595
|
RequestHelper.postRequest(`/packhouse/sites/${siteId}/shift-hourly-entries`, createData)
|
|
596
596
|
.then((result) => {
|
|
597
597
|
let resolveValue = (function(){
|
|
598
|
-
return ShiftHourlyEntryModel.fromJSON(result
|
|
598
|
+
return ShiftHourlyEntryModel.fromJSON(result);
|
|
599
599
|
}());
|
|
600
600
|
|
|
601
601
|
resolve(resolveValue);
|
|
@@ -29,7 +29,7 @@ class VarietyController
|
|
|
29
29
|
RequestHelper.getRequest(`/packhouse/sites/${siteId}/varieties/${id}`)
|
|
30
30
|
.then((result) => {
|
|
31
31
|
let resolveValue = (function(){
|
|
32
|
-
return VarietyModel.fromJSON(result
|
|
32
|
+
return VarietyModel.fromJSON(result);
|
|
33
33
|
}());
|
|
34
34
|
|
|
35
35
|
resolve(resolveValue);
|
|
@@ -54,7 +54,7 @@ class VarietyController
|
|
|
54
54
|
RequestHelper.patchRequest(`/packhouse/sites/${siteId}/varieties/${id}`, updateData)
|
|
55
55
|
.then((result) => {
|
|
56
56
|
let resolveValue = (function(){
|
|
57
|
-
return VarietyModel.fromJSON(result
|
|
57
|
+
return VarietyModel.fromJSON(result);
|
|
58
58
|
}());
|
|
59
59
|
|
|
60
60
|
resolve(resolveValue);
|
|
@@ -105,7 +105,7 @@ class VarietyController
|
|
|
105
105
|
|
|
106
106
|
return result.map((resultItem) => {
|
|
107
107
|
return (function(){
|
|
108
|
-
return VarietyModel.fromJSON(resultItem
|
|
108
|
+
return VarietyModel.fromJSON(resultItem);
|
|
109
109
|
}());
|
|
110
110
|
});
|
|
111
111
|
}());
|
|
@@ -131,7 +131,7 @@ class VarietyController
|
|
|
131
131
|
RequestHelper.postRequest(`/packhouse/sites/${siteId}/varieties`, createData)
|
|
132
132
|
.then((result) => {
|
|
133
133
|
let resolveValue = (function(){
|
|
134
|
-
return VarietyModel.fromJSON(result
|
|
134
|
+
return VarietyModel.fromJSON(result);
|
|
135
135
|
}());
|
|
136
136
|
|
|
137
137
|
resolve(resolveValue);
|
|
@@ -29,7 +29,7 @@ class AlarmController
|
|
|
29
29
|
RequestHelper.getRequest(`/sites/${siteId}/alarms/${id}`)
|
|
30
30
|
.then((result) => {
|
|
31
31
|
let resolveValue = (function(){
|
|
32
|
-
return AlarmModel.fromJSON(result
|
|
32
|
+
return AlarmModel.fromJSON(result);
|
|
33
33
|
}());
|
|
34
34
|
|
|
35
35
|
resolve(resolveValue);
|
|
@@ -54,7 +54,7 @@ class AlarmController
|
|
|
54
54
|
RequestHelper.patchRequest(`/sites/${siteId}/alarms/${id}`, updateData)
|
|
55
55
|
.then((result) => {
|
|
56
56
|
let resolveValue = (function(){
|
|
57
|
-
return AlarmModel.fromJSON(result
|
|
57
|
+
return AlarmModel.fromJSON(result);
|
|
58
58
|
}());
|
|
59
59
|
|
|
60
60
|
resolve(resolveValue);
|
|
@@ -212,7 +212,7 @@ class AlarmController
|
|
|
212
212
|
|
|
213
213
|
return result.map((resultItem) => {
|
|
214
214
|
return (function(){
|
|
215
|
-
return AlarmModel.fromJSON(resultItem
|
|
215
|
+
return AlarmModel.fromJSON(resultItem);
|
|
216
216
|
}());
|
|
217
217
|
});
|
|
218
218
|
}());
|
|
@@ -238,7 +238,7 @@ class AlarmController
|
|
|
238
238
|
RequestHelper.postRequest(`/sites/${siteId}/alarms`, createData)
|
|
239
239
|
.then((result) => {
|
|
240
240
|
let resolveValue = (function(){
|
|
241
|
-
return AlarmModel.fromJSON(result
|
|
241
|
+
return AlarmModel.fromJSON(result);
|
|
242
242
|
}());
|
|
243
243
|
|
|
244
244
|
resolve(resolveValue);
|
|
@@ -29,7 +29,7 @@ class AlarmGroupController
|
|
|
29
29
|
RequestHelper.getRequest(`/sites/${siteId}/alarm-groups/${id}`)
|
|
30
30
|
.then((result) => {
|
|
31
31
|
let resolveValue = (function(){
|
|
32
|
-
return AlarmGroupModel.fromJSON(result
|
|
32
|
+
return AlarmGroupModel.fromJSON(result);
|
|
33
33
|
}());
|
|
34
34
|
|
|
35
35
|
resolve(resolveValue);
|
|
@@ -54,7 +54,7 @@ class AlarmGroupController
|
|
|
54
54
|
RequestHelper.patchRequest(`/sites/${siteId}/alarm-groups/${id}`, updateData)
|
|
55
55
|
.then((result) => {
|
|
56
56
|
let resolveValue = (function(){
|
|
57
|
-
return AlarmGroupModel.fromJSON(result
|
|
57
|
+
return AlarmGroupModel.fromJSON(result);
|
|
58
58
|
}());
|
|
59
59
|
|
|
60
60
|
resolve(resolveValue);
|
|
@@ -105,7 +105,7 @@ class AlarmGroupController
|
|
|
105
105
|
|
|
106
106
|
return result.map((resultItem) => {
|
|
107
107
|
return (function(){
|
|
108
|
-
return AlarmGroupModel.fromJSON(resultItem
|
|
108
|
+
return AlarmGroupModel.fromJSON(resultItem);
|
|
109
109
|
}());
|
|
110
110
|
});
|
|
111
111
|
}());
|
|
@@ -131,7 +131,7 @@ class AlarmGroupController
|
|
|
131
131
|
RequestHelper.postRequest(`/sites/${siteId}/alarm-groups`, createData)
|
|
132
132
|
.then((result) => {
|
|
133
133
|
let resolveValue = (function(){
|
|
134
|
-
return AlarmGroupModel.fromJSON(result
|
|
134
|
+
return AlarmGroupModel.fromJSON(result);
|
|
135
135
|
}());
|
|
136
136
|
|
|
137
137
|
resolve(resolveValue);
|
|
@@ -29,7 +29,7 @@ class DefinitionController
|
|
|
29
29
|
RequestHelper.getRequest(`/sites/${siteId}/definitions/${id}`)
|
|
30
30
|
.then((result) => {
|
|
31
31
|
let resolveValue = (function(){
|
|
32
|
-
return DefinitionModel.fromJSON(result
|
|
32
|
+
return DefinitionModel.fromJSON(result);
|
|
33
33
|
}());
|
|
34
34
|
|
|
35
35
|
resolve(resolveValue);
|
|
@@ -54,7 +54,7 @@ class DefinitionController
|
|
|
54
54
|
RequestHelper.patchRequest(`/sites/${siteId}/definitions/${id}`, updateData)
|
|
55
55
|
.then((result) => {
|
|
56
56
|
let resolveValue = (function(){
|
|
57
|
-
return DefinitionModel.fromJSON(result
|
|
57
|
+
return DefinitionModel.fromJSON(result);
|
|
58
58
|
}());
|
|
59
59
|
|
|
60
60
|
resolve(resolveValue);
|
|
@@ -105,7 +105,7 @@ class DefinitionController
|
|
|
105
105
|
|
|
106
106
|
return result.map((resultItem) => {
|
|
107
107
|
return (function(){
|
|
108
|
-
return DefinitionModel.fromJSON(resultItem
|
|
108
|
+
return DefinitionModel.fromJSON(resultItem);
|
|
109
109
|
}());
|
|
110
110
|
});
|
|
111
111
|
}());
|
|
@@ -131,7 +131,7 @@ class DefinitionController
|
|
|
131
131
|
RequestHelper.postRequest(`/sites/${siteId}/definitions`, createData)
|
|
132
132
|
.then((result) => {
|
|
133
133
|
let resolveValue = (function(){
|
|
134
|
-
return DefinitionModel.fromJSON(result
|
|
134
|
+
return DefinitionModel.fromJSON(result);
|
|
135
135
|
}());
|
|
136
136
|
|
|
137
137
|
resolve(resolveValue);
|
|
@@ -29,7 +29,7 @@ class PermanentObjectController
|
|
|
29
29
|
RequestHelper.getRequest(`/sites/${siteId}/permanent-objects/${id}`)
|
|
30
30
|
.then((result) => {
|
|
31
31
|
let resolveValue = (function(){
|
|
32
|
-
return PermanentObjectModel.fromJSON(result
|
|
32
|
+
return PermanentObjectModel.fromJSON(result);
|
|
33
33
|
}());
|
|
34
34
|
|
|
35
35
|
resolve(resolveValue);
|
|
@@ -54,7 +54,7 @@ class PermanentObjectController
|
|
|
54
54
|
RequestHelper.patchRequest(`/sites/${siteId}/permanent-objects/${id}`, updateData)
|
|
55
55
|
.then((result) => {
|
|
56
56
|
let resolveValue = (function(){
|
|
57
|
-
return PermanentObjectModel.fromJSON(result
|
|
57
|
+
return PermanentObjectModel.fromJSON(result);
|
|
58
58
|
}());
|
|
59
59
|
|
|
60
60
|
resolve(resolveValue);
|
|
@@ -105,7 +105,7 @@ class PermanentObjectController
|
|
|
105
105
|
|
|
106
106
|
return result.map((resultItem) => {
|
|
107
107
|
return (function(){
|
|
108
|
-
return PermanentObjectModel.fromJSON(resultItem
|
|
108
|
+
return PermanentObjectModel.fromJSON(resultItem);
|
|
109
109
|
}());
|
|
110
110
|
});
|
|
111
111
|
}());
|
|
@@ -131,7 +131,7 @@ class PermanentObjectController
|
|
|
131
131
|
RequestHelper.postRequest(`/sites/${siteId}/permanent-objects`, createData)
|
|
132
132
|
.then((result) => {
|
|
133
133
|
let resolveValue = (function(){
|
|
134
|
-
return PermanentObjectModel.fromJSON(result
|
|
134
|
+
return PermanentObjectModel.fromJSON(result);
|
|
135
135
|
}());
|
|
136
136
|
|
|
137
137
|
resolve(resolveValue);
|
|
@@ -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);
|
|
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);
|
|
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);
|
|
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);
|
|
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);
|
|
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);
|
|
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);
|
|
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);
|
|
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);
|
|
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);
|
|
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);
|
|
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);
|
|
135
135
|
}());
|
|
136
136
|
|
|
137
137
|
resolve(resolveValue);
|
|
@@ -28,153 +28,57 @@ class AccountPolicyModel extends BaseModel
|
|
|
28
28
|
* The Account Policy ID
|
|
29
29
|
*
|
|
30
30
|
* @type {string}
|
|
31
|
-
* @
|
|
31
|
+
* @public
|
|
32
32
|
*/
|
|
33
|
-
this.
|
|
33
|
+
this.id = undefined;
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* The Policy Name
|
|
37
37
|
*
|
|
38
38
|
* @type {string}
|
|
39
|
-
* @
|
|
39
|
+
* @public
|
|
40
40
|
*/
|
|
41
|
-
this.
|
|
41
|
+
this.name = undefined;
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
44
|
* The Company this Policy belongs to
|
|
45
45
|
*
|
|
46
46
|
* @type {string}
|
|
47
|
-
* @
|
|
47
|
+
* @public
|
|
48
48
|
*/
|
|
49
|
-
this.
|
|
49
|
+
this.companyId = undefined;
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* The Resources this Policy provides
|
|
53
53
|
*
|
|
54
54
|
* @type {Array<{id: any, type: string, actions: string[], permission: string}>}
|
|
55
|
-
* @
|
|
55
|
+
* @public
|
|
56
56
|
*/
|
|
57
|
-
this.
|
|
57
|
+
this.resources = undefined;
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* The Rules this Policy provides
|
|
61
61
|
*
|
|
62
62
|
* @type {Object[]}
|
|
63
|
-
* @
|
|
63
|
+
* @public
|
|
64
64
|
*/
|
|
65
|
-
this.
|
|
65
|
+
this.rules = undefined;
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* Whether the Account Policy has been deleted
|
|
69
69
|
*
|
|
70
70
|
* @type {boolean}
|
|
71
|
-
* @
|
|
71
|
+
* @public
|
|
72
72
|
*/
|
|
73
|
-
this.
|
|
73
|
+
this.deleted = undefined;
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
76
|
* When the Account Policy was last updated
|
|
77
77
|
*
|
|
78
78
|
* @type {Date}
|
|
79
|
-
* @
|
|
79
|
+
* @public
|
|
80
80
|
*/
|
|
81
|
-
this.
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* The Account Policy ID
|
|
86
|
-
*
|
|
87
|
-
* @public
|
|
88
|
-
* @type {string}
|
|
89
|
-
*/
|
|
90
|
-
get id()
|
|
91
|
-
{
|
|
92
|
-
return this._id;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* The Policy Name
|
|
97
|
-
*
|
|
98
|
-
* @public
|
|
99
|
-
* @type {string}
|
|
100
|
-
*/
|
|
101
|
-
get name()
|
|
102
|
-
{
|
|
103
|
-
return this._name;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* The Company this Policy belongs to
|
|
108
|
-
*
|
|
109
|
-
* @public
|
|
110
|
-
* @type {string}
|
|
111
|
-
*/
|
|
112
|
-
get companyId()
|
|
113
|
-
{
|
|
114
|
-
return this._companyId;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* The Resources this Policy provides
|
|
119
|
-
*
|
|
120
|
-
* @public
|
|
121
|
-
* @type {Array<{id: any, type: string, actions: string[], permission: string}>}
|
|
122
|
-
*/
|
|
123
|
-
get resources()
|
|
124
|
-
{
|
|
125
|
-
return this._resources;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* The Rules this Policy provides
|
|
130
|
-
*
|
|
131
|
-
* @public
|
|
132
|
-
* @type {Object[]}
|
|
133
|
-
*/
|
|
134
|
-
get rules()
|
|
135
|
-
{
|
|
136
|
-
return this._rules;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Whether the Account Policy has been deleted
|
|
141
|
-
*
|
|
142
|
-
* @public
|
|
143
|
-
* @type {boolean}
|
|
144
|
-
*/
|
|
145
|
-
get deleted()
|
|
146
|
-
{
|
|
147
|
-
return this._deleted;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* When the Account Policy was last updated
|
|
152
|
-
*
|
|
153
|
-
* @public
|
|
154
|
-
* @type {Date}
|
|
155
|
-
*/
|
|
156
|
-
get updateTimestamp()
|
|
157
|
-
{
|
|
158
|
-
return this._updateTimestamp;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Convert this **AccountPolicyModel** to a JSON Object
|
|
163
|
-
*
|
|
164
|
-
* @public
|
|
165
|
-
* @return {Object<string, any>}
|
|
166
|
-
*/
|
|
167
|
-
toJSON()
|
|
168
|
-
{
|
|
169
|
-
return {
|
|
170
|
-
id: this._id,
|
|
171
|
-
name: this._name,
|
|
172
|
-
companyId: this._companyId,
|
|
173
|
-
resources: this._resources,
|
|
174
|
-
rules: this._rules,
|
|
175
|
-
deleted: this._deleted,
|
|
176
|
-
updateTimestamp: this._updateTimestamp
|
|
177
|
-
};
|
|
81
|
+
this.updateTimestamp = undefined;
|
|
178
82
|
}
|
|
179
83
|
|
|
180
84
|
/**
|
|
@@ -207,7 +111,7 @@ class AccountPolicyModel extends BaseModel
|
|
|
207
111
|
|
|
208
112
|
if('id' in jsonObject)
|
|
209
113
|
{
|
|
210
|
-
model.
|
|
114
|
+
model.id = (function(){
|
|
211
115
|
if(typeof jsonObject['id'] !== 'string')
|
|
212
116
|
{
|
|
213
117
|
return String(jsonObject['id']);
|
|
@@ -219,7 +123,7 @@ class AccountPolicyModel extends BaseModel
|
|
|
219
123
|
|
|
220
124
|
if('name' in jsonObject)
|
|
221
125
|
{
|
|
222
|
-
model.
|
|
126
|
+
model.name = (function(){
|
|
223
127
|
if(typeof jsonObject['name'] !== 'string')
|
|
224
128
|
{
|
|
225
129
|
return String(jsonObject['name']);
|
|
@@ -231,7 +135,7 @@ class AccountPolicyModel extends BaseModel
|
|
|
231
135
|
|
|
232
136
|
if('companyId' in jsonObject)
|
|
233
137
|
{
|
|
234
|
-
model.
|
|
138
|
+
model.companyId = (function(){
|
|
235
139
|
if(typeof jsonObject['companyId'] !== 'string')
|
|
236
140
|
{
|
|
237
141
|
return String(jsonObject['companyId']);
|
|
@@ -243,7 +147,7 @@ class AccountPolicyModel extends BaseModel
|
|
|
243
147
|
|
|
244
148
|
if('resources' in jsonObject)
|
|
245
149
|
{
|
|
246
|
-
model.
|
|
150
|
+
model.resources = (function(){
|
|
247
151
|
if(Array.isArray(jsonObject['resources']) !== true)
|
|
248
152
|
{
|
|
249
153
|
return [];
|
|
@@ -329,7 +233,7 @@ class AccountPolicyModel extends BaseModel
|
|
|
329
233
|
|
|
330
234
|
if('rules' in jsonObject)
|
|
331
235
|
{
|
|
332
|
-
model.
|
|
236
|
+
model.rules = (function(){
|
|
333
237
|
if(Array.isArray(jsonObject['rules']) !== true)
|
|
334
238
|
{
|
|
335
239
|
return [];
|
|
@@ -350,7 +254,7 @@ class AccountPolicyModel extends BaseModel
|
|
|
350
254
|
|
|
351
255
|
if('deleted' in jsonObject)
|
|
352
256
|
{
|
|
353
|
-
model.
|
|
257
|
+
model.deleted = (function(){
|
|
354
258
|
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
355
259
|
{
|
|
356
260
|
return Boolean(jsonObject['deleted']);
|
|
@@ -362,7 +266,7 @@ class AccountPolicyModel extends BaseModel
|
|
|
362
266
|
|
|
363
267
|
if('updateTimestamp' in jsonObject)
|
|
364
268
|
{
|
|
365
|
-
model.
|
|
269
|
+
model.updateTimestamp = (function(){
|
|
366
270
|
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
367
271
|
{
|
|
368
272
|
return new Date(String(jsonObject['updateTimestamp']));
|