@ricado/api-client 2.1.1 → 2.2.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/BinTipBinController.js +622 -0
- package/lib/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
- package/lib/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +657 -0
- package/lib/Controllers/Packhouse/Site/PackingLineController.js +25 -1
- package/lib/Controllers/Packhouse/Site/PackrunController.js +42 -0
- package/lib/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
- package/lib/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +661 -0
- package/lib/Controllers/Packhouse/Site/ShiftTaskController.js +628 -0
- package/lib/Controllers/Packhouse/Site/index.js +12 -0
- package/lib/Models/Packhouse/Site/BinTipBinModel.js +367 -0
- package/lib/Models/Packhouse/Site/CompacSizerModel.js +1 -1
- package/lib/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +481 -0
- package/lib/Models/Packhouse/Site/PackingLineModel.js +524 -1
- package/lib/Models/Packhouse/Site/PackrunModel.js +66 -0
- package/lib/Models/Packhouse/Site/ShiftHourlyEntryModel.js +167 -1
- package/lib/Models/Packhouse/Site/ShiftQualitySummaryModel.js +599 -0
- package/lib/Models/Packhouse/Site/ShiftTaskModel.js +373 -0
- package/lib/Models/Packhouse/Site/index.js +12 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +2241 -146
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/BinTipBinController.js +665 -0
- package/src/Controllers/Packhouse/Site/CompacSizerController.js +3 -3
- package/src/Controllers/Packhouse/Site/FreshQualityPackrunSummaryController.js +700 -0
- package/src/Controllers/Packhouse/Site/PackingLineController.js +25 -1
- package/src/Controllers/Packhouse/Site/PackrunController.js +52 -0
- package/src/Controllers/Packhouse/Site/ShiftHourlyEntryController.js +15 -0
- package/src/Controllers/Packhouse/Site/ShiftQualitySummaryController.js +704 -0
- package/src/Controllers/Packhouse/Site/ShiftTaskController.js +671 -0
- package/src/Controllers/Packhouse/Site/index.js +8 -0
- package/src/Models/Packhouse/Site/BinTipBinModel.js +365 -0
- package/src/Models/Packhouse/Site/CompacSizerModel.js +1 -1
- package/src/Models/Packhouse/Site/FreshQualityPackrunSummaryModel.js +523 -0
- package/src/Models/Packhouse/Site/PackingLineModel.js +705 -1
- package/src/Models/Packhouse/Site/PackrunModel.js +75 -0
- package/src/Models/Packhouse/Site/ShiftHourlyEntryModel.js +192 -1
- package/src/Models/Packhouse/Site/ShiftQualitySummaryModel.js +664 -0
- package/src/Models/Packhouse/Site/ShiftTaskModel.js +369 -0
- package/src/Models/Packhouse/Site/index.js +8 -0
- package/src/PackageVersion.js +1 -1
|
@@ -0,0 +1,369 @@
|
|
|
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 Shift Task
|
|
11
|
+
*
|
|
12
|
+
* @class
|
|
13
|
+
* @hideconstructor
|
|
14
|
+
* @extends BaseModel
|
|
15
|
+
*/
|
|
16
|
+
class ShiftTaskModel extends BaseModel
|
|
17
|
+
{
|
|
18
|
+
/**
|
|
19
|
+
* ShiftTaskModel Constructor
|
|
20
|
+
*
|
|
21
|
+
* @protected
|
|
22
|
+
* @param {number} siteId The Site ID associated with this Shift Task
|
|
23
|
+
*/
|
|
24
|
+
constructor(siteId)
|
|
25
|
+
{
|
|
26
|
+
super();
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* The Shift Task ID
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
34
|
+
this.id = undefined;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* The Packing Line ID this Task is associated with
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
42
|
+
this.packingLineId = undefined;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The Shift ID this Task is asssociated with
|
|
46
|
+
*
|
|
47
|
+
* @type {string}
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
50
|
+
this.shiftId = undefined;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* When this Task was Created
|
|
54
|
+
*
|
|
55
|
+
* @type {Date}
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
this.createdTimestamp = undefined;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* When this Task was Completed
|
|
62
|
+
*
|
|
63
|
+
* @type {?Date}
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
this.completedTimestamp = undefined;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The User ID of the Author for this Task
|
|
70
|
+
*
|
|
71
|
+
* @type {?string}
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
this.authorUserId = undefined;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* The Name of the Author for this Task
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @public
|
|
81
|
+
*/
|
|
82
|
+
this.authorName = undefined;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The Task Type
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
this.type = undefined;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* An Array of Tag IDs for this Task
|
|
94
|
+
*
|
|
95
|
+
* @type {string[]}
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
this.tags = undefined;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The Title of this Task
|
|
102
|
+
*
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @public
|
|
105
|
+
*/
|
|
106
|
+
this.title = undefined;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The Content of this Task
|
|
110
|
+
*
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @public
|
|
113
|
+
*/
|
|
114
|
+
this.content = undefined;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* The Status of this Task
|
|
118
|
+
*
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
this.status = undefined;
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* Whether the Shift Task has been deleted
|
|
126
|
+
*
|
|
127
|
+
* @type {boolean}
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
this.deleted = undefined;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* When the Shift Task was last updated
|
|
134
|
+
*
|
|
135
|
+
* @type {Date}
|
|
136
|
+
* @public
|
|
137
|
+
*/
|
|
138
|
+
this.updateTimestamp = undefined;
|
|
139
|
+
|
|
140
|
+
/**
|
|
141
|
+
* The Site ID associated with this Shift Task
|
|
142
|
+
*
|
|
143
|
+
* @type {number}
|
|
144
|
+
* @public
|
|
145
|
+
*/
|
|
146
|
+
this.siteId = siteId;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Create a new **ShiftTaskModel** from a JSON Object or JSON String
|
|
151
|
+
*
|
|
152
|
+
* @static
|
|
153
|
+
* @public
|
|
154
|
+
* @param {Object<string, any>|string} json A JSON Object or JSON String
|
|
155
|
+
* @param {number} siteId The Site ID associated with this Shift Task
|
|
156
|
+
* @return {ShiftTaskModel}
|
|
157
|
+
*/
|
|
158
|
+
static fromJSON(json, siteId)
|
|
159
|
+
{
|
|
160
|
+
let model = new ShiftTaskModel(siteId);
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The JSON Object
|
|
164
|
+
*
|
|
165
|
+
* @type {Object<string, any>}
|
|
166
|
+
*/
|
|
167
|
+
let jsonObject = {};
|
|
168
|
+
|
|
169
|
+
if(typeof json === 'string')
|
|
170
|
+
{
|
|
171
|
+
jsonObject = JSON.parse(json);
|
|
172
|
+
}
|
|
173
|
+
else if(typeof json === 'object')
|
|
174
|
+
{
|
|
175
|
+
jsonObject = json;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
if('id' in jsonObject)
|
|
179
|
+
{
|
|
180
|
+
model.id = (function(){
|
|
181
|
+
if(typeof jsonObject['id'] !== 'string')
|
|
182
|
+
{
|
|
183
|
+
return String(jsonObject['id']);
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
return jsonObject['id'];
|
|
187
|
+
}());
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
if('packingLineId' in jsonObject)
|
|
191
|
+
{
|
|
192
|
+
model.packingLineId = (function(){
|
|
193
|
+
if(typeof jsonObject['packingLineId'] !== 'string')
|
|
194
|
+
{
|
|
195
|
+
return String(jsonObject['packingLineId']);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
return jsonObject['packingLineId'];
|
|
199
|
+
}());
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
if('shiftId' in jsonObject)
|
|
203
|
+
{
|
|
204
|
+
model.shiftId = (function(){
|
|
205
|
+
if(typeof jsonObject['shiftId'] !== 'string')
|
|
206
|
+
{
|
|
207
|
+
return String(jsonObject['shiftId']);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
return jsonObject['shiftId'];
|
|
211
|
+
}());
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
if('createdTimestamp' in jsonObject)
|
|
215
|
+
{
|
|
216
|
+
model.createdTimestamp = (function(){
|
|
217
|
+
if(typeof jsonObject['createdTimestamp'] !== 'string')
|
|
218
|
+
{
|
|
219
|
+
return new Date(String(jsonObject['createdTimestamp']));
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
return new Date(jsonObject['createdTimestamp']);
|
|
223
|
+
}());
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if('completedTimestamp' in jsonObject)
|
|
227
|
+
{
|
|
228
|
+
model.completedTimestamp = (function(){
|
|
229
|
+
if(jsonObject['completedTimestamp'] === null)
|
|
230
|
+
{
|
|
231
|
+
return null;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
if(typeof jsonObject['completedTimestamp'] !== 'string')
|
|
235
|
+
{
|
|
236
|
+
return new Date(String(jsonObject['completedTimestamp']));
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
return new Date(jsonObject['completedTimestamp']);
|
|
240
|
+
}());
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if('authorUserId' in jsonObject)
|
|
244
|
+
{
|
|
245
|
+
model.authorUserId = (function(){
|
|
246
|
+
if(jsonObject['authorUserId'] === null)
|
|
247
|
+
{
|
|
248
|
+
return null;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
if(typeof jsonObject['authorUserId'] !== 'string')
|
|
252
|
+
{
|
|
253
|
+
return String(jsonObject['authorUserId']);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
return jsonObject['authorUserId'];
|
|
257
|
+
}());
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
if('authorName' in jsonObject)
|
|
261
|
+
{
|
|
262
|
+
model.authorName = (function(){
|
|
263
|
+
if(typeof jsonObject['authorName'] !== 'string')
|
|
264
|
+
{
|
|
265
|
+
return String(jsonObject['authorName']);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
return jsonObject['authorName'];
|
|
269
|
+
}());
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if('type' in jsonObject)
|
|
273
|
+
{
|
|
274
|
+
model.type = (function(){
|
|
275
|
+
if(typeof jsonObject['type'] !== 'string')
|
|
276
|
+
{
|
|
277
|
+
return String(jsonObject['type']);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
return jsonObject['type'];
|
|
281
|
+
}());
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
if('tags' in jsonObject)
|
|
285
|
+
{
|
|
286
|
+
model.tags = (function(){
|
|
287
|
+
if(Array.isArray(jsonObject['tags']) !== true)
|
|
288
|
+
{
|
|
289
|
+
return [];
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
return jsonObject['tags'].map((tagsItem) => {
|
|
293
|
+
return (function(){
|
|
294
|
+
if(typeof tagsItem !== 'string')
|
|
295
|
+
{
|
|
296
|
+
return String(tagsItem);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
return tagsItem;
|
|
300
|
+
}());
|
|
301
|
+
});
|
|
302
|
+
}());
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
if('title' in jsonObject)
|
|
306
|
+
{
|
|
307
|
+
model.title = (function(){
|
|
308
|
+
if(typeof jsonObject['title'] !== 'string')
|
|
309
|
+
{
|
|
310
|
+
return String(jsonObject['title']);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
return jsonObject['title'];
|
|
314
|
+
}());
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
if('content' in jsonObject)
|
|
318
|
+
{
|
|
319
|
+
model.content = (function(){
|
|
320
|
+
if(typeof jsonObject['content'] !== 'string')
|
|
321
|
+
{
|
|
322
|
+
return String(jsonObject['content']);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
return jsonObject['content'];
|
|
326
|
+
}());
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
if('status' in jsonObject)
|
|
330
|
+
{
|
|
331
|
+
model.status = (function(){
|
|
332
|
+
if(typeof jsonObject['status'] !== 'string')
|
|
333
|
+
{
|
|
334
|
+
return String(jsonObject['status']);
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
return jsonObject['status'];
|
|
338
|
+
}());
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
if('deleted' in jsonObject)
|
|
342
|
+
{
|
|
343
|
+
model.deleted = (function(){
|
|
344
|
+
if(typeof jsonObject['deleted'] !== 'boolean')
|
|
345
|
+
{
|
|
346
|
+
return Boolean(jsonObject['deleted']);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
return jsonObject['deleted'];
|
|
350
|
+
}());
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
if('updateTimestamp' in jsonObject)
|
|
354
|
+
{
|
|
355
|
+
model.updateTimestamp = (function(){
|
|
356
|
+
if(typeof jsonObject['updateTimestamp'] !== 'string')
|
|
357
|
+
{
|
|
358
|
+
return new Date(String(jsonObject['updateTimestamp']));
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
return new Date(jsonObject['updateTimestamp']);
|
|
362
|
+
}());
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
return model;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
export default ShiftTaskModel;
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
/**
|
|
8
8
|
* @namespace Models.Packhouse.Site
|
|
9
9
|
*/
|
|
10
|
+
import BinTipBinModel from './BinTipBinModel';
|
|
10
11
|
import BinTipWeightModel from './BinTipWeightModel';
|
|
11
12
|
import CompacSizerBatchModel from './CompacSizerBatchModel';
|
|
12
13
|
import CompacSizerModel from './CompacSizerModel';
|
|
@@ -16,6 +17,7 @@ import CompacSizerOutletTypeModel from './CompacSizerOutletTypeModel';
|
|
|
16
17
|
import CompacSizerPackrunSummaryModel from './CompacSizerPackrunSummaryModel';
|
|
17
18
|
import DowntimeEventModel from './DowntimeEventModel';
|
|
18
19
|
import FreshPackPackrunSummaryModel from './FreshPackPackrunSummaryModel';
|
|
20
|
+
import FreshQualityPackrunSummaryModel from './FreshQualityPackrunSummaryModel';
|
|
19
21
|
import GrowingMethodModel from './GrowingMethodModel';
|
|
20
22
|
import PackTypeModel from './PackTypeModel';
|
|
21
23
|
import PackingLineModel from './PackingLineModel';
|
|
@@ -26,10 +28,13 @@ import RejectBinWeightModel from './RejectBinWeightModel';
|
|
|
26
28
|
import ShiftFocusMeetingModel from './ShiftFocusMeetingModel';
|
|
27
29
|
import ShiftHourlyEntryModel from './ShiftHourlyEntryModel';
|
|
28
30
|
import ShiftModel from './ShiftModel';
|
|
31
|
+
import ShiftQualitySummaryModel from './ShiftQualitySummaryModel';
|
|
32
|
+
import ShiftTaskModel from './ShiftTaskModel';
|
|
29
33
|
import SoftSortBeltModel from './SoftSortBeltModel';
|
|
30
34
|
import VarietyModel from './VarietyModel';
|
|
31
35
|
|
|
32
36
|
const Site = {
|
|
37
|
+
BinTipBinModel,
|
|
33
38
|
BinTipWeightModel,
|
|
34
39
|
CompacSizerBatchModel,
|
|
35
40
|
CompacSizerModel,
|
|
@@ -39,6 +44,7 @@ const Site = {
|
|
|
39
44
|
CompacSizerPackrunSummaryModel,
|
|
40
45
|
DowntimeEventModel,
|
|
41
46
|
FreshPackPackrunSummaryModel,
|
|
47
|
+
FreshQualityPackrunSummaryModel,
|
|
42
48
|
GrowingMethodModel,
|
|
43
49
|
PackTypeModel,
|
|
44
50
|
PackingLineModel,
|
|
@@ -49,6 +55,8 @@ const Site = {
|
|
|
49
55
|
ShiftFocusMeetingModel,
|
|
50
56
|
ShiftHourlyEntryModel,
|
|
51
57
|
ShiftModel,
|
|
58
|
+
ShiftQualitySummaryModel,
|
|
59
|
+
ShiftTaskModel,
|
|
52
60
|
SoftSortBeltModel,
|
|
53
61
|
VarietyModel,
|
|
54
62
|
};
|
package/src/PackageVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export const version = '2.
|
|
2
|
+
export const version = '2.2.0';
|