@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
|
@@ -45,7 +45,7 @@ var ShiftFocusMeetingController = /*#__PURE__*/function () {
|
|
|
45
45
|
return new Promise(function (resolve, reject) {
|
|
46
46
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/shift-focus-meetings/").concat(id)).then(function (result) {
|
|
47
47
|
var resolveValue = function () {
|
|
48
|
-
return _ShiftFocusMeetingModel.default.fromJSON(result
|
|
48
|
+
return _ShiftFocusMeetingModel.default.fromJSON(result);
|
|
49
49
|
}();
|
|
50
50
|
|
|
51
51
|
resolve(resolveValue);
|
|
@@ -71,7 +71,7 @@ var ShiftFocusMeetingController = /*#__PURE__*/function () {
|
|
|
71
71
|
return new Promise(function (resolve, reject) {
|
|
72
72
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/shift-focus-meetings/").concat(id), updateData).then(function (result) {
|
|
73
73
|
var resolveValue = function () {
|
|
74
|
-
return _ShiftFocusMeetingModel.default.fromJSON(result
|
|
74
|
+
return _ShiftFocusMeetingModel.default.fromJSON(result);
|
|
75
75
|
}();
|
|
76
76
|
|
|
77
77
|
resolve(resolveValue);
|
|
@@ -520,7 +520,7 @@ var ShiftFocusMeetingController = /*#__PURE__*/function () {
|
|
|
520
520
|
|
|
521
521
|
return result.map(function (resultItem) {
|
|
522
522
|
return function () {
|
|
523
|
-
return _ShiftFocusMeetingModel.default.fromJSON(resultItem
|
|
523
|
+
return _ShiftFocusMeetingModel.default.fromJSON(resultItem);
|
|
524
524
|
}();
|
|
525
525
|
});
|
|
526
526
|
}();
|
|
@@ -547,7 +547,7 @@ var ShiftFocusMeetingController = /*#__PURE__*/function () {
|
|
|
547
547
|
return new Promise(function (resolve, reject) {
|
|
548
548
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/shift-focus-meetings"), createData).then(function (result) {
|
|
549
549
|
var resolveValue = function () {
|
|
550
|
-
return _ShiftFocusMeetingModel.default.fromJSON(result
|
|
550
|
+
return _ShiftFocusMeetingModel.default.fromJSON(result);
|
|
551
551
|
}();
|
|
552
552
|
|
|
553
553
|
resolve(resolveValue);
|
|
@@ -45,7 +45,7 @@ var ShiftHourlyEntryController = /*#__PURE__*/function () {
|
|
|
45
45
|
return new Promise(function (resolve, reject) {
|
|
46
46
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/shift-hourly-entries/").concat(id)).then(function (result) {
|
|
47
47
|
var resolveValue = function () {
|
|
48
|
-
return _ShiftHourlyEntryModel.default.fromJSON(result
|
|
48
|
+
return _ShiftHourlyEntryModel.default.fromJSON(result);
|
|
49
49
|
}();
|
|
50
50
|
|
|
51
51
|
resolve(resolveValue);
|
|
@@ -71,7 +71,7 @@ var ShiftHourlyEntryController = /*#__PURE__*/function () {
|
|
|
71
71
|
return new Promise(function (resolve, reject) {
|
|
72
72
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/shift-hourly-entries/").concat(id), updateData).then(function (result) {
|
|
73
73
|
var resolveValue = function () {
|
|
74
|
-
return _ShiftHourlyEntryModel.default.fromJSON(result
|
|
74
|
+
return _ShiftHourlyEntryModel.default.fromJSON(result);
|
|
75
75
|
}();
|
|
76
76
|
|
|
77
77
|
resolve(resolveValue);
|
|
@@ -520,7 +520,7 @@ var ShiftHourlyEntryController = /*#__PURE__*/function () {
|
|
|
520
520
|
|
|
521
521
|
return result.map(function (resultItem) {
|
|
522
522
|
return function () {
|
|
523
|
-
return _ShiftHourlyEntryModel.default.fromJSON(resultItem
|
|
523
|
+
return _ShiftHourlyEntryModel.default.fromJSON(resultItem);
|
|
524
524
|
}();
|
|
525
525
|
});
|
|
526
526
|
}();
|
|
@@ -547,7 +547,7 @@ var ShiftHourlyEntryController = /*#__PURE__*/function () {
|
|
|
547
547
|
return new Promise(function (resolve, reject) {
|
|
548
548
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/shift-hourly-entries"), createData).then(function (result) {
|
|
549
549
|
var resolveValue = function () {
|
|
550
|
-
return _ShiftHourlyEntryModel.default.fromJSON(result
|
|
550
|
+
return _ShiftHourlyEntryModel.default.fromJSON(result);
|
|
551
551
|
}();
|
|
552
552
|
|
|
553
553
|
resolve(resolveValue);
|
|
@@ -43,7 +43,7 @@ var VarietyController = /*#__PURE__*/function () {
|
|
|
43
43
|
return new Promise(function (resolve, reject) {
|
|
44
44
|
_RequestHelper.default.getRequest("/packhouse/sites/".concat(siteId, "/varieties/").concat(id)).then(function (result) {
|
|
45
45
|
var resolveValue = function () {
|
|
46
|
-
return _VarietyModel.default.fromJSON(result
|
|
46
|
+
return _VarietyModel.default.fromJSON(result);
|
|
47
47
|
}();
|
|
48
48
|
|
|
49
49
|
resolve(resolveValue);
|
|
@@ -69,7 +69,7 @@ var VarietyController = /*#__PURE__*/function () {
|
|
|
69
69
|
return new Promise(function (resolve, reject) {
|
|
70
70
|
_RequestHelper.default.patchRequest("/packhouse/sites/".concat(siteId, "/varieties/").concat(id), updateData).then(function (result) {
|
|
71
71
|
var resolveValue = function () {
|
|
72
|
-
return _VarietyModel.default.fromJSON(result
|
|
72
|
+
return _VarietyModel.default.fromJSON(result);
|
|
73
73
|
}();
|
|
74
74
|
|
|
75
75
|
resolve(resolveValue);
|
|
@@ -122,7 +122,7 @@ var VarietyController = /*#__PURE__*/function () {
|
|
|
122
122
|
|
|
123
123
|
return result.map(function (resultItem) {
|
|
124
124
|
return function () {
|
|
125
|
-
return _VarietyModel.default.fromJSON(resultItem
|
|
125
|
+
return _VarietyModel.default.fromJSON(resultItem);
|
|
126
126
|
}();
|
|
127
127
|
});
|
|
128
128
|
}();
|
|
@@ -149,7 +149,7 @@ var VarietyController = /*#__PURE__*/function () {
|
|
|
149
149
|
return new Promise(function (resolve, reject) {
|
|
150
150
|
_RequestHelper.default.postRequest("/packhouse/sites/".concat(siteId, "/varieties"), createData).then(function (result) {
|
|
151
151
|
var resolveValue = function () {
|
|
152
|
-
return _VarietyModel.default.fromJSON(result
|
|
152
|
+
return _VarietyModel.default.fromJSON(result);
|
|
153
153
|
}();
|
|
154
154
|
|
|
155
155
|
resolve(resolveValue);
|
|
@@ -45,7 +45,7 @@ var AlarmController = /*#__PURE__*/function () {
|
|
|
45
45
|
return new Promise(function (resolve, reject) {
|
|
46
46
|
_RequestHelper.default.getRequest("/sites/".concat(siteId, "/alarms/").concat(id)).then(function (result) {
|
|
47
47
|
var resolveValue = function () {
|
|
48
|
-
return _AlarmModel.default.fromJSON(result
|
|
48
|
+
return _AlarmModel.default.fromJSON(result);
|
|
49
49
|
}();
|
|
50
50
|
|
|
51
51
|
resolve(resolveValue);
|
|
@@ -71,7 +71,7 @@ var AlarmController = /*#__PURE__*/function () {
|
|
|
71
71
|
return new Promise(function (resolve, reject) {
|
|
72
72
|
_RequestHelper.default.patchRequest("/sites/".concat(siteId, "/alarms/").concat(id), updateData).then(function (result) {
|
|
73
73
|
var resolveValue = function () {
|
|
74
|
-
return _AlarmModel.default.fromJSON(result
|
|
74
|
+
return _AlarmModel.default.fromJSON(result);
|
|
75
75
|
}();
|
|
76
76
|
|
|
77
77
|
resolve(resolveValue);
|
|
@@ -215,7 +215,7 @@ var AlarmController = /*#__PURE__*/function () {
|
|
|
215
215
|
|
|
216
216
|
return result.map(function (resultItem) {
|
|
217
217
|
return function () {
|
|
218
|
-
return _AlarmModel.default.fromJSON(resultItem
|
|
218
|
+
return _AlarmModel.default.fromJSON(resultItem);
|
|
219
219
|
}();
|
|
220
220
|
});
|
|
221
221
|
}();
|
|
@@ -242,7 +242,7 @@ var AlarmController = /*#__PURE__*/function () {
|
|
|
242
242
|
return new Promise(function (resolve, reject) {
|
|
243
243
|
_RequestHelper.default.postRequest("/sites/".concat(siteId, "/alarms"), createData).then(function (result) {
|
|
244
244
|
var resolveValue = function () {
|
|
245
|
-
return _AlarmModel.default.fromJSON(result
|
|
245
|
+
return _AlarmModel.default.fromJSON(result);
|
|
246
246
|
}();
|
|
247
247
|
|
|
248
248
|
resolve(resolveValue);
|
|
@@ -43,7 +43,7 @@ var AlarmGroupController = /*#__PURE__*/function () {
|
|
|
43
43
|
return new Promise(function (resolve, reject) {
|
|
44
44
|
_RequestHelper.default.getRequest("/sites/".concat(siteId, "/alarm-groups/").concat(id)).then(function (result) {
|
|
45
45
|
var resolveValue = function () {
|
|
46
|
-
return _AlarmGroupModel.default.fromJSON(result
|
|
46
|
+
return _AlarmGroupModel.default.fromJSON(result);
|
|
47
47
|
}();
|
|
48
48
|
|
|
49
49
|
resolve(resolveValue);
|
|
@@ -69,7 +69,7 @@ var AlarmGroupController = /*#__PURE__*/function () {
|
|
|
69
69
|
return new Promise(function (resolve, reject) {
|
|
70
70
|
_RequestHelper.default.patchRequest("/sites/".concat(siteId, "/alarm-groups/").concat(id), updateData).then(function (result) {
|
|
71
71
|
var resolveValue = function () {
|
|
72
|
-
return _AlarmGroupModel.default.fromJSON(result
|
|
72
|
+
return _AlarmGroupModel.default.fromJSON(result);
|
|
73
73
|
}();
|
|
74
74
|
|
|
75
75
|
resolve(resolveValue);
|
|
@@ -122,7 +122,7 @@ var AlarmGroupController = /*#__PURE__*/function () {
|
|
|
122
122
|
|
|
123
123
|
return result.map(function (resultItem) {
|
|
124
124
|
return function () {
|
|
125
|
-
return _AlarmGroupModel.default.fromJSON(resultItem
|
|
125
|
+
return _AlarmGroupModel.default.fromJSON(resultItem);
|
|
126
126
|
}();
|
|
127
127
|
});
|
|
128
128
|
}();
|
|
@@ -149,7 +149,7 @@ var AlarmGroupController = /*#__PURE__*/function () {
|
|
|
149
149
|
return new Promise(function (resolve, reject) {
|
|
150
150
|
_RequestHelper.default.postRequest("/sites/".concat(siteId, "/alarm-groups"), createData).then(function (result) {
|
|
151
151
|
var resolveValue = function () {
|
|
152
|
-
return _AlarmGroupModel.default.fromJSON(result
|
|
152
|
+
return _AlarmGroupModel.default.fromJSON(result);
|
|
153
153
|
}();
|
|
154
154
|
|
|
155
155
|
resolve(resolveValue);
|
|
@@ -43,7 +43,7 @@ var DefinitionController = /*#__PURE__*/function () {
|
|
|
43
43
|
return new Promise(function (resolve, reject) {
|
|
44
44
|
_RequestHelper.default.getRequest("/sites/".concat(siteId, "/definitions/").concat(id)).then(function (result) {
|
|
45
45
|
var resolveValue = function () {
|
|
46
|
-
return _DefinitionModel.default.fromJSON(result
|
|
46
|
+
return _DefinitionModel.default.fromJSON(result);
|
|
47
47
|
}();
|
|
48
48
|
|
|
49
49
|
resolve(resolveValue);
|
|
@@ -69,7 +69,7 @@ var DefinitionController = /*#__PURE__*/function () {
|
|
|
69
69
|
return new Promise(function (resolve, reject) {
|
|
70
70
|
_RequestHelper.default.patchRequest("/sites/".concat(siteId, "/definitions/").concat(id), updateData).then(function (result) {
|
|
71
71
|
var resolveValue = function () {
|
|
72
|
-
return _DefinitionModel.default.fromJSON(result
|
|
72
|
+
return _DefinitionModel.default.fromJSON(result);
|
|
73
73
|
}();
|
|
74
74
|
|
|
75
75
|
resolve(resolveValue);
|
|
@@ -122,7 +122,7 @@ var DefinitionController = /*#__PURE__*/function () {
|
|
|
122
122
|
|
|
123
123
|
return result.map(function (resultItem) {
|
|
124
124
|
return function () {
|
|
125
|
-
return _DefinitionModel.default.fromJSON(resultItem
|
|
125
|
+
return _DefinitionModel.default.fromJSON(resultItem);
|
|
126
126
|
}();
|
|
127
127
|
});
|
|
128
128
|
}();
|
|
@@ -149,7 +149,7 @@ var DefinitionController = /*#__PURE__*/function () {
|
|
|
149
149
|
return new Promise(function (resolve, reject) {
|
|
150
150
|
_RequestHelper.default.postRequest("/sites/".concat(siteId, "/definitions"), createData).then(function (result) {
|
|
151
151
|
var resolveValue = function () {
|
|
152
|
-
return _DefinitionModel.default.fromJSON(result
|
|
152
|
+
return _DefinitionModel.default.fromJSON(result);
|
|
153
153
|
}();
|
|
154
154
|
|
|
155
155
|
resolve(resolveValue);
|
|
@@ -43,7 +43,7 @@ var PermanentObjectController = /*#__PURE__*/function () {
|
|
|
43
43
|
return new Promise(function (resolve, reject) {
|
|
44
44
|
_RequestHelper.default.getRequest("/sites/".concat(siteId, "/permanent-objects/").concat(id)).then(function (result) {
|
|
45
45
|
var resolveValue = function () {
|
|
46
|
-
return _PermanentObjectModel.default.fromJSON(result
|
|
46
|
+
return _PermanentObjectModel.default.fromJSON(result);
|
|
47
47
|
}();
|
|
48
48
|
|
|
49
49
|
resolve(resolveValue);
|
|
@@ -69,7 +69,7 @@ var PermanentObjectController = /*#__PURE__*/function () {
|
|
|
69
69
|
return new Promise(function (resolve, reject) {
|
|
70
70
|
_RequestHelper.default.patchRequest("/sites/".concat(siteId, "/permanent-objects/").concat(id), updateData).then(function (result) {
|
|
71
71
|
var resolveValue = function () {
|
|
72
|
-
return _PermanentObjectModel.default.fromJSON(result
|
|
72
|
+
return _PermanentObjectModel.default.fromJSON(result);
|
|
73
73
|
}();
|
|
74
74
|
|
|
75
75
|
resolve(resolveValue);
|
|
@@ -122,7 +122,7 @@ var PermanentObjectController = /*#__PURE__*/function () {
|
|
|
122
122
|
|
|
123
123
|
return result.map(function (resultItem) {
|
|
124
124
|
return function () {
|
|
125
|
-
return _PermanentObjectModel.default.fromJSON(resultItem
|
|
125
|
+
return _PermanentObjectModel.default.fromJSON(resultItem);
|
|
126
126
|
}();
|
|
127
127
|
});
|
|
128
128
|
}();
|
|
@@ -149,7 +149,7 @@ var PermanentObjectController = /*#__PURE__*/function () {
|
|
|
149
149
|
return new Promise(function (resolve, reject) {
|
|
150
150
|
_RequestHelper.default.postRequest("/sites/".concat(siteId, "/permanent-objects"), createData).then(function (result) {
|
|
151
151
|
var resolveValue = function () {
|
|
152
|
-
return _PermanentObjectModel.default.fromJSON(result
|
|
152
|
+
return _PermanentObjectModel.default.fromJSON(result);
|
|
153
153
|
}();
|
|
154
154
|
|
|
155
155
|
resolve(resolveValue);
|
|
@@ -45,7 +45,7 @@ var PermanentObjectDataController = /*#__PURE__*/function () {
|
|
|
45
45
|
return new Promise(function (resolve, reject) {
|
|
46
46
|
_RequestHelper.default.getRequest("/sites/".concat(siteId, "/permanent-object-data/").concat(id)).then(function (result) {
|
|
47
47
|
var resolveValue = function () {
|
|
48
|
-
return _PermanentObjectDataModel.default.fromJSON(result
|
|
48
|
+
return _PermanentObjectDataModel.default.fromJSON(result);
|
|
49
49
|
}();
|
|
50
50
|
|
|
51
51
|
resolve(resolveValue);
|
|
@@ -71,7 +71,7 @@ var PermanentObjectDataController = /*#__PURE__*/function () {
|
|
|
71
71
|
return new Promise(function (resolve, reject) {
|
|
72
72
|
_RequestHelper.default.patchRequest("/sites/".concat(siteId, "/permanent-object-data/").concat(id), updateData).then(function (result) {
|
|
73
73
|
var resolveValue = function () {
|
|
74
|
-
return _PermanentObjectDataModel.default.fromJSON(result
|
|
74
|
+
return _PermanentObjectDataModel.default.fromJSON(result);
|
|
75
75
|
}();
|
|
76
76
|
|
|
77
77
|
resolve(resolveValue);
|
|
@@ -520,7 +520,7 @@ var PermanentObjectDataController = /*#__PURE__*/function () {
|
|
|
520
520
|
|
|
521
521
|
return result.map(function (resultItem) {
|
|
522
522
|
return function () {
|
|
523
|
-
return _PermanentObjectDataModel.default.fromJSON(resultItem
|
|
523
|
+
return _PermanentObjectDataModel.default.fromJSON(resultItem);
|
|
524
524
|
}();
|
|
525
525
|
});
|
|
526
526
|
}();
|
|
@@ -547,7 +547,7 @@ var PermanentObjectDataController = /*#__PURE__*/function () {
|
|
|
547
547
|
return new Promise(function (resolve, reject) {
|
|
548
548
|
_RequestHelper.default.postRequest("/sites/".concat(siteId, "/permanent-object-data"), createData).then(function (result) {
|
|
549
549
|
var resolveValue = function () {
|
|
550
|
-
return _PermanentObjectDataModel.default.fromJSON(result
|
|
550
|
+
return _PermanentObjectDataModel.default.fromJSON(result);
|
|
551
551
|
}();
|
|
552
552
|
|
|
553
553
|
resolve(resolveValue);
|
|
@@ -338,7 +338,7 @@ var PointController = /*#__PURE__*/function () {
|
|
|
338
338
|
return new Promise(function (resolve, reject) {
|
|
339
339
|
_RequestHelper.default.getRequest("/sites/".concat(siteId, "/points/").concat(id)).then(function (result) {
|
|
340
340
|
var resolveValue = function () {
|
|
341
|
-
return _PointModel.default.fromJSON(result
|
|
341
|
+
return _PointModel.default.fromJSON(result);
|
|
342
342
|
}();
|
|
343
343
|
|
|
344
344
|
resolve(resolveValue);
|
|
@@ -364,7 +364,7 @@ var PointController = /*#__PURE__*/function () {
|
|
|
364
364
|
return new Promise(function (resolve, reject) {
|
|
365
365
|
_RequestHelper.default.patchRequest("/sites/".concat(siteId, "/points/").concat(id), updateData).then(function (result) {
|
|
366
366
|
var resolveValue = function () {
|
|
367
|
-
return _PointModel.default.fromJSON(result
|
|
367
|
+
return _PointModel.default.fromJSON(result);
|
|
368
368
|
}();
|
|
369
369
|
|
|
370
370
|
resolve(resolveValue);
|
|
@@ -417,7 +417,7 @@ var PointController = /*#__PURE__*/function () {
|
|
|
417
417
|
|
|
418
418
|
return result.map(function (resultItem) {
|
|
419
419
|
return function () {
|
|
420
|
-
return _PointModel.default.fromJSON(resultItem
|
|
420
|
+
return _PointModel.default.fromJSON(resultItem);
|
|
421
421
|
}();
|
|
422
422
|
});
|
|
423
423
|
}();
|
|
@@ -444,7 +444,7 @@ var PointController = /*#__PURE__*/function () {
|
|
|
444
444
|
return new Promise(function (resolve, reject) {
|
|
445
445
|
_RequestHelper.default.postRequest("/sites/".concat(siteId, "/points"), createData).then(function (result) {
|
|
446
446
|
var resolveValue = function () {
|
|
447
|
-
return _PointModel.default.fromJSON(result
|
|
447
|
+
return _PointModel.default.fromJSON(result);
|
|
448
448
|
}();
|
|
449
449
|
|
|
450
450
|
resolve(resolveValue);
|
|
@@ -43,7 +43,7 @@ var TemporaryObjectController = /*#__PURE__*/function () {
|
|
|
43
43
|
return new Promise(function (resolve, reject) {
|
|
44
44
|
_RequestHelper.default.getRequest("/sites/".concat(siteId, "/temporary-objects/").concat(id)).then(function (result) {
|
|
45
45
|
var resolveValue = function () {
|
|
46
|
-
return _TemporaryObjectModel.default.fromJSON(result
|
|
46
|
+
return _TemporaryObjectModel.default.fromJSON(result);
|
|
47
47
|
}();
|
|
48
48
|
|
|
49
49
|
resolve(resolveValue);
|
|
@@ -69,7 +69,7 @@ var TemporaryObjectController = /*#__PURE__*/function () {
|
|
|
69
69
|
return new Promise(function (resolve, reject) {
|
|
70
70
|
_RequestHelper.default.patchRequest("/sites/".concat(siteId, "/temporary-objects/").concat(id), updateData).then(function (result) {
|
|
71
71
|
var resolveValue = function () {
|
|
72
|
-
return _TemporaryObjectModel.default.fromJSON(result
|
|
72
|
+
return _TemporaryObjectModel.default.fromJSON(result);
|
|
73
73
|
}();
|
|
74
74
|
|
|
75
75
|
resolve(resolveValue);
|
|
@@ -122,7 +122,7 @@ var TemporaryObjectController = /*#__PURE__*/function () {
|
|
|
122
122
|
|
|
123
123
|
return result.map(function (resultItem) {
|
|
124
124
|
return function () {
|
|
125
|
-
return _TemporaryObjectModel.default.fromJSON(resultItem
|
|
125
|
+
return _TemporaryObjectModel.default.fromJSON(resultItem);
|
|
126
126
|
}();
|
|
127
127
|
});
|
|
128
128
|
}();
|
|
@@ -149,7 +149,7 @@ var TemporaryObjectController = /*#__PURE__*/function () {
|
|
|
149
149
|
return new Promise(function (resolve, reject) {
|
|
150
150
|
_RequestHelper.default.postRequest("/sites/".concat(siteId, "/temporary-objects"), createData).then(function (result) {
|
|
151
151
|
var resolveValue = function () {
|
|
152
|
-
return _TemporaryObjectModel.default.fromJSON(result
|
|
152
|
+
return _TemporaryObjectModel.default.fromJSON(result);
|
|
153
153
|
}();
|
|
154
154
|
|
|
155
155
|
resolve(resolveValue);
|
|
@@ -58,175 +58,71 @@ var AccountPolicyModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
58
58
|
* The Account Policy ID
|
|
59
59
|
*
|
|
60
60
|
* @type {string}
|
|
61
|
-
* @
|
|
61
|
+
* @public
|
|
62
62
|
*/
|
|
63
63
|
|
|
64
|
-
_this.
|
|
64
|
+
_this.id = undefined;
|
|
65
65
|
/**
|
|
66
66
|
* The Policy Name
|
|
67
67
|
*
|
|
68
68
|
* @type {string}
|
|
69
|
-
* @
|
|
69
|
+
* @public
|
|
70
70
|
*/
|
|
71
71
|
|
|
72
|
-
_this.
|
|
72
|
+
_this.name = undefined;
|
|
73
73
|
/**
|
|
74
74
|
* The Company this Policy belongs to
|
|
75
75
|
*
|
|
76
76
|
* @type {string}
|
|
77
|
-
* @
|
|
77
|
+
* @public
|
|
78
78
|
*/
|
|
79
79
|
|
|
80
|
-
_this.
|
|
80
|
+
_this.companyId = undefined;
|
|
81
81
|
/**
|
|
82
82
|
* The Resources this Policy provides
|
|
83
83
|
*
|
|
84
84
|
* @type {Array<{id: any, type: string, actions: string[], permission: string}>}
|
|
85
|
-
* @
|
|
85
|
+
* @public
|
|
86
86
|
*/
|
|
87
87
|
|
|
88
|
-
_this.
|
|
88
|
+
_this.resources = undefined;
|
|
89
89
|
/**
|
|
90
90
|
* The Rules this Policy provides
|
|
91
91
|
*
|
|
92
92
|
* @type {Object[]}
|
|
93
|
-
* @
|
|
93
|
+
* @public
|
|
94
94
|
*/
|
|
95
95
|
|
|
96
|
-
_this.
|
|
96
|
+
_this.rules = undefined;
|
|
97
97
|
/**
|
|
98
98
|
* Whether the Account Policy has been deleted
|
|
99
99
|
*
|
|
100
100
|
* @type {boolean}
|
|
101
|
-
* @
|
|
101
|
+
* @public
|
|
102
102
|
*/
|
|
103
103
|
|
|
104
|
-
_this.
|
|
104
|
+
_this.deleted = undefined;
|
|
105
105
|
/**
|
|
106
106
|
* When the Account Policy was last updated
|
|
107
107
|
*
|
|
108
108
|
* @type {Date}
|
|
109
|
-
* @
|
|
109
|
+
* @public
|
|
110
110
|
*/
|
|
111
111
|
|
|
112
|
-
_this.
|
|
112
|
+
_this.updateTimestamp = undefined;
|
|
113
113
|
return _this;
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
|
-
*
|
|
116
|
+
* Create a new **AccountPolicyModel** from a JSON Object or JSON String
|
|
117
117
|
*
|
|
118
|
+
* @static
|
|
118
119
|
* @public
|
|
119
|
-
* @
|
|
120
|
+
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
121
|
+
* @return {AccountPolicyModel}
|
|
120
122
|
*/
|
|
121
123
|
|
|
122
124
|
|
|
123
|
-
_createClass(AccountPolicyModel, [{
|
|
124
|
-
key: "id",
|
|
125
|
-
get: function get() {
|
|
126
|
-
return this._id;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* The Policy Name
|
|
130
|
-
*
|
|
131
|
-
* @public
|
|
132
|
-
* @type {string}
|
|
133
|
-
*/
|
|
134
|
-
|
|
135
|
-
}, {
|
|
136
|
-
key: "name",
|
|
137
|
-
get: function get() {
|
|
138
|
-
return this._name;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* The Company this Policy belongs to
|
|
142
|
-
*
|
|
143
|
-
* @public
|
|
144
|
-
* @type {string}
|
|
145
|
-
*/
|
|
146
|
-
|
|
147
|
-
}, {
|
|
148
|
-
key: "companyId",
|
|
149
|
-
get: function get() {
|
|
150
|
-
return this._companyId;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* The Resources this Policy provides
|
|
154
|
-
*
|
|
155
|
-
* @public
|
|
156
|
-
* @type {Array<{id: any, type: string, actions: string[], permission: string}>}
|
|
157
|
-
*/
|
|
158
|
-
|
|
159
|
-
}, {
|
|
160
|
-
key: "resources",
|
|
161
|
-
get: function get() {
|
|
162
|
-
return this._resources;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* The Rules this Policy provides
|
|
166
|
-
*
|
|
167
|
-
* @public
|
|
168
|
-
* @type {Object[]}
|
|
169
|
-
*/
|
|
170
|
-
|
|
171
|
-
}, {
|
|
172
|
-
key: "rules",
|
|
173
|
-
get: function get() {
|
|
174
|
-
return this._rules;
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Whether the Account Policy has been deleted
|
|
178
|
-
*
|
|
179
|
-
* @public
|
|
180
|
-
* @type {boolean}
|
|
181
|
-
*/
|
|
182
|
-
|
|
183
|
-
}, {
|
|
184
|
-
key: "deleted",
|
|
185
|
-
get: function get() {
|
|
186
|
-
return this._deleted;
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* When the Account Policy was last updated
|
|
190
|
-
*
|
|
191
|
-
* @public
|
|
192
|
-
* @type {Date}
|
|
193
|
-
*/
|
|
194
|
-
|
|
195
|
-
}, {
|
|
196
|
-
key: "updateTimestamp",
|
|
197
|
-
get: function get() {
|
|
198
|
-
return this._updateTimestamp;
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Convert this **AccountPolicyModel** to a JSON Object
|
|
202
|
-
*
|
|
203
|
-
* @public
|
|
204
|
-
* @return {Object<string, any>}
|
|
205
|
-
*/
|
|
206
|
-
|
|
207
|
-
}, {
|
|
208
|
-
key: "toJSON",
|
|
209
|
-
value: function toJSON() {
|
|
210
|
-
return {
|
|
211
|
-
id: this._id,
|
|
212
|
-
name: this._name,
|
|
213
|
-
companyId: this._companyId,
|
|
214
|
-
resources: this._resources,
|
|
215
|
-
rules: this._rules,
|
|
216
|
-
deleted: this._deleted,
|
|
217
|
-
updateTimestamp: this._updateTimestamp
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
/**
|
|
221
|
-
* Create a new **AccountPolicyModel** from a JSON Object or JSON String
|
|
222
|
-
*
|
|
223
|
-
* @static
|
|
224
|
-
* @public
|
|
225
|
-
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
226
|
-
* @return {AccountPolicyModel}
|
|
227
|
-
*/
|
|
228
|
-
|
|
229
|
-
}], [{
|
|
125
|
+
_createClass(AccountPolicyModel, null, [{
|
|
230
126
|
key: "fromJSON",
|
|
231
127
|
value: function fromJSON(json) {
|
|
232
128
|
var model = new AccountPolicyModel();
|
|
@@ -245,7 +141,7 @@ var AccountPolicyModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
245
141
|
}
|
|
246
142
|
|
|
247
143
|
if ('id' in jsonObject) {
|
|
248
|
-
model.
|
|
144
|
+
model.id = function () {
|
|
249
145
|
if (typeof jsonObject['id'] !== 'string') {
|
|
250
146
|
return String(jsonObject['id']);
|
|
251
147
|
}
|
|
@@ -255,7 +151,7 @@ var AccountPolicyModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
255
151
|
}
|
|
256
152
|
|
|
257
153
|
if ('name' in jsonObject) {
|
|
258
|
-
model.
|
|
154
|
+
model.name = function () {
|
|
259
155
|
if (typeof jsonObject['name'] !== 'string') {
|
|
260
156
|
return String(jsonObject['name']);
|
|
261
157
|
}
|
|
@@ -265,7 +161,7 @@ var AccountPolicyModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
265
161
|
}
|
|
266
162
|
|
|
267
163
|
if ('companyId' in jsonObject) {
|
|
268
|
-
model.
|
|
164
|
+
model.companyId = function () {
|
|
269
165
|
if (typeof jsonObject['companyId'] !== 'string') {
|
|
270
166
|
return String(jsonObject['companyId']);
|
|
271
167
|
}
|
|
@@ -275,7 +171,7 @@ var AccountPolicyModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
275
171
|
}
|
|
276
172
|
|
|
277
173
|
if ('resources' in jsonObject) {
|
|
278
|
-
model.
|
|
174
|
+
model.resources = function () {
|
|
279
175
|
if (Array.isArray(jsonObject['resources']) !== true) {
|
|
280
176
|
return [];
|
|
281
177
|
}
|
|
@@ -343,7 +239,7 @@ var AccountPolicyModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
343
239
|
}
|
|
344
240
|
|
|
345
241
|
if ('rules' in jsonObject) {
|
|
346
|
-
model.
|
|
242
|
+
model.rules = function () {
|
|
347
243
|
if (Array.isArray(jsonObject['rules']) !== true) {
|
|
348
244
|
return [];
|
|
349
245
|
}
|
|
@@ -361,7 +257,7 @@ var AccountPolicyModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
361
257
|
}
|
|
362
258
|
|
|
363
259
|
if ('deleted' in jsonObject) {
|
|
364
|
-
model.
|
|
260
|
+
model.deleted = function () {
|
|
365
261
|
if (typeof jsonObject['deleted'] !== 'boolean') {
|
|
366
262
|
return Boolean(jsonObject['deleted']);
|
|
367
263
|
}
|
|
@@ -371,7 +267,7 @@ var AccountPolicyModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
371
267
|
}
|
|
372
268
|
|
|
373
269
|
if ('updateTimestamp' in jsonObject) {
|
|
374
|
-
model.
|
|
270
|
+
model.updateTimestamp = function () {
|
|
375
271
|
if (typeof jsonObject['updateTimestamp'] !== 'string') {
|
|
376
272
|
return new Date(String(jsonObject['updateTimestamp']));
|
|
377
273
|
}
|