@ricado/api-client 2.3.6 → 2.3.9

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.
@@ -824,6 +824,8 @@ var _default = BinTipBinController;
824
824
  * @typedef {Object} BinTipBinController.GetAllQueryParameters
825
825
  * @property {string} [binTipId] The Bin Tip ID associated with this Bin
826
826
  * @property {string} [packrunId] The Packrun ID associated with this Bin
827
+ * @property {?string} [binNumber] A 10-Digit Bin Number made up of a Bin Lot (4-Digits) and a Unique Number (6-Digits)
828
+ * @property {?string} [binNumberSource] The Source of the Bin Number
827
829
  * @property {?string} [fullBinWeightId] The `BinTipWeight` ID as the Source for the Full Weight of this Bin
828
830
  * @property {?string} [emptyBinWeightId] The `BinTipWeight` ID as the Source for the Empty Weight of this Bin
829
831
  * @property {Date} [createdTimestampBegin] Filter by the Timestamp when this Bin was Created. Results Greater than or Equal to Timestamp
@@ -839,6 +841,7 @@ var _default = BinTipBinController;
839
841
  * @property {string} [packrunId] The Packrun ID associated with this Bin
840
842
  * @property {Date} [createdTimestamp] When this Bin was Created
841
843
  * @property {?string} [binNumber] A 10-Digit Bin Number made up of a Bin Lot (4-Digits) and a Unique Number (6-Digits)
844
+ * @property {?string} [binNumberSource] The Source of the Bin Number
842
845
  * @property {?string} [timeBatchId] The Time Batch ID associated with this Bin
843
846
  * @property {?number} [fullWeight] The Full Weight for this Bin
844
847
  * @property {?number} [emptyWeight] The Empty Weight for this Bin
@@ -855,6 +858,7 @@ var _default = BinTipBinController;
855
858
  * @property {string} [binTipId] The Bin Tip ID associated with this Bin
856
859
  * @property {Date} [createdTimestamp] When this Bin was Created
857
860
  * @property {?string} [binNumber] A 10-Digit Bin Number made up of a Bin Lot (4-Digits) and a Unique Number (6-Digits)
861
+ * @property {?string} [binNumberSource] The Source of the Bin Number
858
862
  * @property {?string} [timeBatchId] The Time Batch ID associated with this Bin
859
863
  * @property {?number} [fullWeight] The Full Weight for this Bin
860
864
  * @property {?number} [emptyWeight] The Empty Weight for this Bin
@@ -839,6 +839,7 @@ var _default = FreshPackPackrunSummaryController;
839
839
  * @property {Date} [createdTimestamp] When this Summary was Created
840
840
  * @property {?string} [timeBatchId] The Time Batch this Summary is associated with
841
841
  * @property {Object[]} [traySummaries] An Array of Tray Summary Data Objects for all Sizes and Class Types
842
+ * @property {Object[]} [clearanceSummaries] An Array of Clearance Summary Data Objects for all Sizes
842
843
  * @memberof Controllers.Packhouse.Site
843
844
  */
844
845
 
@@ -850,6 +851,7 @@ var _default = FreshPackPackrunSummaryController;
850
851
  * @property {Date} [createdTimestamp] When this Summary was Created
851
852
  * @property {?string} [timeBatchId] The Time Batch this Summary is associated with
852
853
  * @property {Object[]} [traySummaries] An Array of Tray Summary Data Objects for all Sizes and Class Types
854
+ * @property {Object[]} [clearanceSummaries] An Array of Clearance Summary Data Objects for all Sizes
853
855
  * @memberof Controllers.Packhouse.Site
854
856
  */
855
857
 
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ var _BinTipBinCardController = _interopRequireDefault(require("./BinTipBinCardController"));
9
+
8
10
  var _BinTipBinController = _interopRequireDefault(require("./BinTipBinController"));
9
11
 
10
12
  var _BinTipWeightController = _interopRequireDefault(require("./BinTipWeightController"));
@@ -69,6 +71,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
69
71
  * @namespace Controllers.Packhouse.Site
70
72
  */
71
73
  var Site = {
74
+ BinTipBinCardController: _BinTipBinCardController.default,
72
75
  BinTipBinController: _BinTipBinController.default,
73
76
  BinTipWeightController: _BinTipWeightController.default,
74
77
  CompacSizerBatchController: _CompacSizerBatchController.default,
@@ -0,0 +1,235 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+
8
+ var _BaseModel2 = _interopRequireDefault(require("../../../Models/BaseModel"));
9
+
10
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
+
12
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
13
+
14
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
15
+
16
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
17
+
18
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
19
+
20
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
21
+
22
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
23
+
24
+ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
25
+
26
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
27
+
28
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
29
+
30
+ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
31
+
32
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
33
+
34
+ /**
35
+ * Model Class for a Bin Tip Bin Card
36
+ *
37
+ * @class
38
+ * @hideconstructor
39
+ * @extends BaseModel
40
+ */
41
+ var BinTipBinCardModel = /*#__PURE__*/function (_BaseModel) {
42
+ _inherits(BinTipBinCardModel, _BaseModel);
43
+
44
+ var _super = _createSuper(BinTipBinCardModel);
45
+
46
+ /**
47
+ * BinTipBinCardModel Constructor
48
+ *
49
+ * @protected
50
+ * @param {number} siteId The Site ID associated with this Bin Tip Bin Card
51
+ */
52
+ function BinTipBinCardModel(siteId) {
53
+ var _this;
54
+
55
+ _classCallCheck(this, BinTipBinCardModel);
56
+
57
+ _this = _super.call(this);
58
+ /**
59
+ * The Bin Tip Bin Card ID
60
+ *
61
+ * @type {string}
62
+ * @public
63
+ */
64
+
65
+ _this.id = "";
66
+ /**
67
+ * The Bin Tip ID associated with this Bin Card
68
+ *
69
+ * @type {string}
70
+ * @public
71
+ */
72
+
73
+ _this.binTipId = "";
74
+ /**
75
+ * The Bin ID associated with this Bin Card
76
+ *
77
+ * @type {string}
78
+ * @public
79
+ */
80
+
81
+ _this.binTipBinId = "";
82
+ /**
83
+ * When this Bin Card was Created
84
+ *
85
+ * @type {Date}
86
+ * @public
87
+ */
88
+
89
+ _this.createdTimestamp = new Date();
90
+ /**
91
+ * A Base64 Encoded Image of the Bin Card
92
+ *
93
+ * @type {?string}
94
+ * @public
95
+ */
96
+
97
+ _this.image = null;
98
+ /**
99
+ * Whether the Bin Tip Bin Card has been deleted
100
+ *
101
+ * @type {boolean}
102
+ * @public
103
+ */
104
+
105
+ _this.deleted = false;
106
+ /**
107
+ * When the Bin Tip Bin Card was last updated
108
+ *
109
+ * @type {Date}
110
+ * @public
111
+ */
112
+
113
+ _this.updateTimestamp = new Date();
114
+ /**
115
+ * The Site ID associated with this Bin Tip Bin Card
116
+ *
117
+ * @type {number}
118
+ * @public
119
+ */
120
+
121
+ _this.siteId = siteId;
122
+ return _this;
123
+ }
124
+ /**
125
+ * Create a new **BinTipBinCardModel** from a JSON Object or JSON String
126
+ *
127
+ * @static
128
+ * @public
129
+ * @param {Object<string, any>|string} json A JSON Object or JSON String
130
+ * @param {number} siteId The Site ID associated with this Bin Tip Bin Card
131
+ * @return {BinTipBinCardModel}
132
+ */
133
+
134
+
135
+ _createClass(BinTipBinCardModel, null, [{
136
+ key: "fromJSON",
137
+ value: function fromJSON(json, siteId) {
138
+ var model = new BinTipBinCardModel(siteId);
139
+ /**
140
+ * The JSON Object
141
+ *
142
+ * @type {Object<string, any>}
143
+ */
144
+
145
+ var jsonObject = {};
146
+
147
+ if (typeof json === 'string') {
148
+ jsonObject = JSON.parse(json);
149
+ } else if (_typeof(json) === 'object') {
150
+ jsonObject = json;
151
+ }
152
+
153
+ if ('id' in jsonObject) {
154
+ model.id = function () {
155
+ if (typeof jsonObject['id'] !== 'string') {
156
+ return String(jsonObject['id']);
157
+ }
158
+
159
+ return jsonObject['id'];
160
+ }();
161
+ }
162
+
163
+ if ('binTipId' in jsonObject) {
164
+ model.binTipId = function () {
165
+ if (typeof jsonObject['binTipId'] !== 'string') {
166
+ return String(jsonObject['binTipId']);
167
+ }
168
+
169
+ return jsonObject['binTipId'];
170
+ }();
171
+ }
172
+
173
+ if ('binTipBinId' in jsonObject) {
174
+ model.binTipBinId = function () {
175
+ if (typeof jsonObject['binTipBinId'] !== 'string') {
176
+ return String(jsonObject['binTipBinId']);
177
+ }
178
+
179
+ return jsonObject['binTipBinId'];
180
+ }();
181
+ }
182
+
183
+ if ('createdTimestamp' in jsonObject) {
184
+ model.createdTimestamp = function () {
185
+ if (typeof jsonObject['createdTimestamp'] !== 'string') {
186
+ return new Date(String(jsonObject['createdTimestamp']));
187
+ }
188
+
189
+ return new Date(jsonObject['createdTimestamp']);
190
+ }();
191
+ }
192
+
193
+ if ('image' in jsonObject) {
194
+ model.image = function () {
195
+ if (jsonObject['image'] === null) {
196
+ return null;
197
+ }
198
+
199
+ if (typeof jsonObject['image'] !== 'string') {
200
+ return String(jsonObject['image']);
201
+ }
202
+
203
+ return jsonObject['image'];
204
+ }();
205
+ }
206
+
207
+ if ('deleted' in jsonObject) {
208
+ model.deleted = function () {
209
+ if (typeof jsonObject['deleted'] !== 'boolean') {
210
+ return Boolean(jsonObject['deleted']);
211
+ }
212
+
213
+ return jsonObject['deleted'];
214
+ }();
215
+ }
216
+
217
+ if ('updateTimestamp' in jsonObject) {
218
+ model.updateTimestamp = function () {
219
+ if (typeof jsonObject['updateTimestamp'] !== 'string') {
220
+ return new Date(String(jsonObject['updateTimestamp']));
221
+ }
222
+
223
+ return new Date(jsonObject['updateTimestamp']);
224
+ }();
225
+ }
226
+
227
+ return model;
228
+ }
229
+ }]);
230
+
231
+ return BinTipBinCardModel;
232
+ }(_BaseModel2.default);
233
+
234
+ var _default = BinTipBinCardModel;
235
+ exports.default = _default;
@@ -95,6 +95,14 @@ var BinTipBinModel = /*#__PURE__*/function (_BaseModel) {
95
95
  */
96
96
 
97
97
  _this.binNumber = null;
98
+ /**
99
+ * The Source of the Bin Number
100
+ *
101
+ * @type {?string}
102
+ * @public
103
+ */
104
+
105
+ _this.binNumberSource = null;
98
106
  /**
99
107
  * The Time Batch ID associated with this Bin
100
108
  *
@@ -252,6 +260,20 @@ var BinTipBinModel = /*#__PURE__*/function (_BaseModel) {
252
260
  }();
253
261
  }
254
262
 
263
+ if ('binNumberSource' in jsonObject) {
264
+ model.binNumberSource = function () {
265
+ if (jsonObject['binNumberSource'] === null) {
266
+ return null;
267
+ }
268
+
269
+ if (typeof jsonObject['binNumberSource'] !== 'string') {
270
+ return String(jsonObject['binNumberSource']);
271
+ }
272
+
273
+ return jsonObject['binNumberSource'];
274
+ }();
275
+ }
276
+
255
277
  if ('timeBatchId' in jsonObject) {
256
278
  model.timeBatchId = function () {
257
279
  if (jsonObject['timeBatchId'] === null) {
@@ -103,6 +103,14 @@ var FreshPackPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
103
103
  */
104
104
 
105
105
  _this.traySummaries = [];
106
+ /**
107
+ * An Array of Clearance Summary Data Objects for all Sizes
108
+ *
109
+ * @type {Object[]}
110
+ * @public
111
+ */
112
+
113
+ _this.clearanceSummaries = [];
106
114
  /**
107
115
  * Whether the FreshPack Packrun Summary has been deleted
108
116
  *
@@ -230,6 +238,24 @@ var FreshPackPackrunSummaryModel = /*#__PURE__*/function (_BaseModel) {
230
238
  }();
231
239
  }
232
240
 
241
+ if ('clearanceSummaries' in jsonObject) {
242
+ model.clearanceSummaries = function () {
243
+ if (Array.isArray(jsonObject['clearanceSummaries']) !== true) {
244
+ return [];
245
+ }
246
+
247
+ return jsonObject['clearanceSummaries'].map(function (clearanceSummariesItem) {
248
+ return function () {
249
+ if (_typeof(clearanceSummariesItem) !== 'object') {
250
+ return Object(clearanceSummariesItem);
251
+ }
252
+
253
+ return clearanceSummariesItem;
254
+ }();
255
+ });
256
+ }();
257
+ }
258
+
233
259
  if ('deleted' in jsonObject) {
234
260
  model.deleted = function () {
235
261
  if (typeof jsonObject['deleted'] !== 'boolean') {
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
 
8
+ var _BinTipBinCardModel = _interopRequireDefault(require("./BinTipBinCardModel"));
9
+
8
10
  var _BinTipBinModel = _interopRequireDefault(require("./BinTipBinModel"));
9
11
 
10
12
  var _BinTipWeightModel = _interopRequireDefault(require("./BinTipWeightModel"));
@@ -69,6 +71,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
69
71
  * @namespace Models.Packhouse.Site
70
72
  */
71
73
  var Site = {
74
+ BinTipBinCardModel: _BinTipBinCardModel.default,
72
75
  BinTipBinModel: _BinTipBinModel.default,
73
76
  BinTipWeightModel: _BinTipWeightModel.default,
74
77
  CompacSizerBatchModel: _CompacSizerBatchModel.default,
@@ -5,5 +5,5 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = void 0;
7
7
  // generated by genversion
8
- var version = '2.3.6';
8
+ var version = '2.3.9';
9
9
  exports.version = version;