@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.
- package/dist/ricado.api.client.js +1 -1
- package/lib/Controllers/Packhouse/Site/BinTipBinCardController.js +875 -0
- package/lib/Controllers/Packhouse/Site/BinTipBinController.js +4 -0
- package/lib/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +2 -0
- package/lib/Controllers/Packhouse/Site/index.js +3 -0
- package/lib/Models/Packhouse/Site/BinTipBinCardModel.js +235 -0
- package/lib/Models/Packhouse/Site/BinTipBinModel.js +22 -0
- package/lib/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +26 -0
- package/lib/Models/Packhouse/Site/index.js +3 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +359 -0
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/BinTipBinCardController.js +1006 -0
- package/src/Controllers/Packhouse/Site/BinTipBinController.js +4 -0
- package/src/Controllers/Packhouse/Site/FreshPackPackrunSummaryController.js +2 -0
- package/src/Controllers/Packhouse/Site/index.js +2 -0
- package/src/Models/Packhouse/Site/BinTipBinCardModel.js +215 -0
- package/src/Models/Packhouse/Site/BinTipBinModel.js +25 -0
- package/src/Models/Packhouse/Site/FreshPackPackrunSummaryModel.js +29 -0
- package/src/Models/Packhouse/Site/index.js +2 -0
- package/src/PackageVersion.js +1 -1
|
@@ -957,6 +957,8 @@ export default BinTipBinController;
|
|
|
957
957
|
* @typedef {Object} BinTipBinController.GetAllQueryParameters
|
|
958
958
|
* @property {string} [binTipId] The Bin Tip ID associated with this Bin
|
|
959
959
|
* @property {string} [packrunId] The Packrun ID associated with this Bin
|
|
960
|
+
* @property {?string} [binNumber] A 10-Digit Bin Number made up of a Bin Lot (4-Digits) and a Unique Number (6-Digits)
|
|
961
|
+
* @property {?string} [binNumberSource] The Source of the Bin Number
|
|
960
962
|
* @property {?string} [fullBinWeightId] The `BinTipWeight` ID as the Source for the Full Weight of this Bin
|
|
961
963
|
* @property {?string} [emptyBinWeightId] The `BinTipWeight` ID as the Source for the Empty Weight of this Bin
|
|
962
964
|
* @property {Date} [createdTimestampBegin] Filter by the Timestamp when this Bin was Created. Results Greater than or Equal to Timestamp
|
|
@@ -972,6 +974,7 @@ export default BinTipBinController;
|
|
|
972
974
|
* @property {string} [packrunId] The Packrun ID associated with this Bin
|
|
973
975
|
* @property {Date} [createdTimestamp] When this Bin was Created
|
|
974
976
|
* @property {?string} [binNumber] A 10-Digit Bin Number made up of a Bin Lot (4-Digits) and a Unique Number (6-Digits)
|
|
977
|
+
* @property {?string} [binNumberSource] The Source of the Bin Number
|
|
975
978
|
* @property {?string} [timeBatchId] The Time Batch ID associated with this Bin
|
|
976
979
|
* @property {?number} [fullWeight] The Full Weight for this Bin
|
|
977
980
|
* @property {?number} [emptyWeight] The Empty Weight for this Bin
|
|
@@ -988,6 +991,7 @@ export default BinTipBinController;
|
|
|
988
991
|
* @property {string} [binTipId] The Bin Tip ID associated with this Bin
|
|
989
992
|
* @property {Date} [createdTimestamp] When this Bin was Created
|
|
990
993
|
* @property {?string} [binNumber] A 10-Digit Bin Number made up of a Bin Lot (4-Digits) and a Unique Number (6-Digits)
|
|
994
|
+
* @property {?string} [binNumberSource] The Source of the Bin Number
|
|
991
995
|
* @property {?string} [timeBatchId] The Time Batch ID associated with this Bin
|
|
992
996
|
* @property {?number} [fullWeight] The Full Weight for this Bin
|
|
993
997
|
* @property {?number} [emptyWeight] The Empty Weight for this Bin
|
|
@@ -972,6 +972,7 @@ export default FreshPackPackrunSummaryController;
|
|
|
972
972
|
* @property {Date} [createdTimestamp] When this Summary was Created
|
|
973
973
|
* @property {?string} [timeBatchId] The Time Batch this Summary is associated with
|
|
974
974
|
* @property {Object[]} [traySummaries] An Array of Tray Summary Data Objects for all Sizes and Class Types
|
|
975
|
+
* @property {Object[]} [clearanceSummaries] An Array of Clearance Summary Data Objects for all Sizes
|
|
975
976
|
* @memberof Controllers.Packhouse.Site
|
|
976
977
|
*/
|
|
977
978
|
|
|
@@ -983,6 +984,7 @@ export default FreshPackPackrunSummaryController;
|
|
|
983
984
|
* @property {Date} [createdTimestamp] When this Summary was Created
|
|
984
985
|
* @property {?string} [timeBatchId] The Time Batch this Summary is associated with
|
|
985
986
|
* @property {Object[]} [traySummaries] An Array of Tray Summary Data Objects for all Sizes and Class Types
|
|
987
|
+
* @property {Object[]} [clearanceSummaries] An Array of Clearance Summary Data Objects for all Sizes
|
|
986
988
|
* @memberof Controllers.Packhouse.Site
|
|
987
989
|
*/
|
|
988
990
|
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* @namespace Controllers.Packhouse.Site
|
|
9
9
|
*/
|
|
10
|
+
import BinTipBinCardController from './BinTipBinCardController';
|
|
10
11
|
import BinTipBinController from './BinTipBinController';
|
|
11
12
|
import BinTipWeightController from './BinTipWeightController';
|
|
12
13
|
import CompacSizerBatchController from './CompacSizerBatchController';
|
|
@@ -35,6 +36,7 @@ import SoftSortPackrunSummaryController from './SoftSortPackrunSummaryController
|
|
|
35
36
|
import VarietyController from './VarietyController';
|
|
36
37
|
|
|
37
38
|
const Site = {
|
|
39
|
+
BinTipBinCardController,
|
|
38
40
|
BinTipBinController,
|
|
39
41
|
BinTipWeightController,
|
|
40
42
|
CompacSizerBatchController,
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File Auto-Generated by the RICADO Gen 4 PHP API Project
|
|
3
|
+
*
|
|
4
|
+
* Do Not Edit this File Manually!
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import BaseModel from '../../../Models/BaseModel';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Model Class for a Bin Tip Bin Card
|
|
11
|
+
*
|
|
12
|
+
* @class
|
|
13
|
+
* @hideconstructor
|
|
14
|
+
* @extends BaseModel
|
|
15
|
+
*/
|
|
16
|
+
class BinTipBinCardModel extends BaseModel
|
|
17
|
+
{
|
|
18
|
+
/**
|
|
19
|
+
* BinTipBinCardModel Constructor
|
|
20
|
+
*
|
|
21
|
+
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Bin Tip Bin Card
|
|
23
|
+
*/
|
|
24
|
+
constructor(siteId)
|
|
25
|
+
{
|
|
26
|
+
super();
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The Bin Tip Bin Card ID
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
this.id = "";
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The Bin Tip ID associated with this Bin Card
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
this.binTipId = "";
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The Bin ID associated with this Bin Card
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
this.binTipBinId = "";
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* When this Bin Card was Created
|
|
54
|
+
*
|
|
55
|
+
* @type {Date}
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
this.createdTimestamp = new Date();
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* A Base64 Encoded Image of the Bin Card
|
|
62
|
+
*
|
|
63
|
+
* @type {?string}
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
this.image = null;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Whether the Bin Tip Bin Card has been deleted
|
|
70
|
+
*
|
|
71
|
+
* @type {boolean}
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
this.deleted = false;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* When the Bin Tip Bin Card was last updated
|
|
78
|
+
*
|
|
79
|
+
* @type {Date}
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
this.updateTimestamp = new Date();
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The Site ID associated with this Bin Tip Bin Card
|
|
86
|
+
*
|
|
87
|
+
* @type {number}
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
this.siteId = siteId;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Create a new **BinTipBinCardModel** from a JSON Object or JSON String
|
|
95
|
+
*
|
|
96
|
+
* @static
|
|
97
|
+
* @public
|
|
98
|
+
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
99
|
+
* @param {number} siteId The Site ID associated with this Bin Tip Bin Card
|
|
100
|
+
* @return {BinTipBinCardModel}
|
|
101
|
+
*/
|
|
102
|
+
static fromJSON(json, siteId)
|
|
103
|
+
{
|
|
104
|
+
let model = new BinTipBinCardModel(siteId);
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The JSON Object
|
|
108
|
+
*
|
|
109
|
+
* @type {Object<string, any>}
|
|
110
|
+
*/
|
|
111
|
+
let jsonObject = {};
|
|
112
|
+
|
|
113
|
+
if(typeof json === 'string')
|
|
114
|
+
{
|
|
115
|
+
jsonObject = JSON.parse(json);
|
|
116
|
+
}
|
|
117
|
+
else if(typeof json === 'object')
|
|
118
|
+
{
|
|
119
|
+
jsonObject = json;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if('id' in jsonObject)
|
|
123
|
+
{
|
|
124
|
+
model.id = (function(){
|
|
125
|
+
if(typeof jsonObject['id'] !== 'string')
|
|
126
|
+
{
|
|
127
|
+
return String(jsonObject['id']);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return jsonObject['id'];
|
|
131
|
+
}());
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
if('binTipId' in jsonObject)
|
|
135
|
+
{
|
|
136
|
+
model.binTipId = (function(){
|
|
137
|
+
if(typeof jsonObject['binTipId'] !== 'string')
|
|
138
|
+
{
|
|
139
|
+
return String(jsonObject['binTipId']);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
return jsonObject['binTipId'];
|
|
143
|
+
}());
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if('binTipBinId' in jsonObject)
|
|
147
|
+
{
|
|
148
|
+
model.binTipBinId = (function(){
|
|
149
|
+
if(typeof jsonObject['binTipBinId'] !== 'string')
|
|
150
|
+
{
|
|
151
|
+
return String(jsonObject['binTipBinId']);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return jsonObject['binTipBinId'];
|
|
155
|
+
}());
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if('createdTimestamp' in jsonObject)
|
|
159
|
+
{
|
|
160
|
+
model.createdTimestamp = (function(){
|
|
161
|
+
if(typeof jsonObject['createdTimestamp'] !== 'string')
|
|
162
|
+
{
|
|
163
|
+
return new Date(String(jsonObject['createdTimestamp']));
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
return new Date(jsonObject['createdTimestamp']);
|
|
167
|
+
}());
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if('image' in jsonObject)
|
|
171
|
+
{
|
|
172
|
+
model.image = (function(){
|
|
173
|
+
if(jsonObject['image'] === null)
|
|
174
|
+
{
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if(typeof jsonObject['image'] !== 'string')
|
|
179
|
+
{
|
|
180
|
+
return String(jsonObject['image']);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
return jsonObject['image'];
|
|
184
|
+
}());
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if('deleted' in jsonObject)
|
|
188
|
+
{
|
|
189
|
+
model.deleted = (function(){
|
|
190
|
+
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
191
|
+
{
|
|
192
|
+
return Boolean(jsonObject['deleted']);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
return jsonObject['deleted'];
|
|
196
|
+
}());
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if('updateTimestamp' in jsonObject)
|
|
200
|
+
{
|
|
201
|
+
model.updateTimestamp = (function(){
|
|
202
|
+
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
203
|
+
{
|
|
204
|
+
return new Date(String(jsonObject['updateTimestamp']));
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
return new Date(jsonObject['updateTimestamp']);
|
|
208
|
+
}());
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
return model;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export default BinTipBinCardModel;
|
|
@@ -65,6 +65,14 @@ class BinTipBinModel extends BaseModel
|
|
|
65
65
|
*/
|
|
66
66
|
this.binNumber = null;
|
|
67
67
|
|
|
68
|
+
/**
|
|
69
|
+
* The Source of the Bin Number
|
|
70
|
+
*
|
|
71
|
+
* @type {?string}
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
this.binNumberSource = null;
|
|
75
|
+
|
|
68
76
|
/**
|
|
69
77
|
* The Time Batch ID associated with this Bin
|
|
70
78
|
*
|
|
@@ -232,6 +240,23 @@ class BinTipBinModel extends BaseModel
|
|
|
232
240
|
}());
|
|
233
241
|
}
|
|
234
242
|
|
|
243
|
+
if('binNumberSource' in jsonObject)
|
|
244
|
+
{
|
|
245
|
+
model.binNumberSource = (function(){
|
|
246
|
+
if(jsonObject['binNumberSource'] === null)
|
|
247
|
+
{
|
|
248
|
+
return null;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
if(typeof jsonObject['binNumberSource'] !== 'string')
|
|
252
|
+
{
|
|
253
|
+
return String(jsonObject['binNumberSource']);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
return jsonObject['binNumberSource'];
|
|
257
|
+
}());
|
|
258
|
+
}
|
|
259
|
+
|
|
235
260
|
if('timeBatchId' in jsonObject)
|
|
236
261
|
{
|
|
237
262
|
model.timeBatchId = (function(){
|
|
@@ -73,6 +73,14 @@ class FreshPackPackrunSummaryModel extends BaseModel
|
|
|
73
73
|
*/
|
|
74
74
|
this.traySummaries = [];
|
|
75
75
|
|
|
76
|
+
/**
|
|
77
|
+
* An Array of Clearance Summary Data Objects for all Sizes
|
|
78
|
+
*
|
|
79
|
+
* @type {Object[]}
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
this.clearanceSummaries = [];
|
|
83
|
+
|
|
76
84
|
/**
|
|
77
85
|
* Whether the FreshPack Packrun Summary has been deleted
|
|
78
86
|
*
|
|
@@ -213,6 +221,27 @@ class FreshPackPackrunSummaryModel extends BaseModel
|
|
|
213
221
|
}());
|
|
214
222
|
}
|
|
215
223
|
|
|
224
|
+
if('clearanceSummaries' in jsonObject)
|
|
225
|
+
{
|
|
226
|
+
model.clearanceSummaries = (function(){
|
|
227
|
+
if(Array.isArray(jsonObject['clearanceSummaries']) !== true)
|
|
228
|
+
{
|
|
229
|
+
return [];
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
return jsonObject['clearanceSummaries'].map((clearanceSummariesItem) => {
|
|
233
|
+
return (function(){
|
|
234
|
+
if(typeof clearanceSummariesItem !== 'object')
|
|
235
|
+
{
|
|
236
|
+
return Object(clearanceSummariesItem);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
return clearanceSummariesItem;
|
|
240
|
+
}());
|
|
241
|
+
});
|
|
242
|
+
}());
|
|
243
|
+
}
|
|
244
|
+
|
|
216
245
|
if('deleted' in jsonObject)
|
|
217
246
|
{
|
|
218
247
|
model.deleted = (function(){
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* @namespace Models.Packhouse.Site
|
|
9
9
|
*/
|
|
10
|
+
import BinTipBinCardModel from './BinTipBinCardModel';
|
|
10
11
|
import BinTipBinModel from './BinTipBinModel';
|
|
11
12
|
import BinTipWeightModel from './BinTipWeightModel';
|
|
12
13
|
import CompacSizerBatchModel from './CompacSizerBatchModel';
|
|
@@ -35,6 +36,7 @@ import SoftSortPackrunSummaryModel from './SoftSortPackrunSummaryModel';
|
|
|
35
36
|
import VarietyModel from './VarietyModel';
|
|
36
37
|
|
|
37
38
|
const Site = {
|
|
39
|
+
BinTipBinCardModel,
|
|
38
40
|
BinTipBinModel,
|
|
39
41
|
BinTipWeightModel,
|
|
40
42
|
CompacSizerBatchModel,
|
package/src/PackageVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export const version = '2.3.
|
|
2
|
+
export const version = '2.3.9';
|