@ricado/api-client 2.3.15 → 2.3.17
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/Integrations/ExternalShiftManagementController.js +76 -0
- package/lib/Controllers/Packhouse/Integrations/index.js +25 -0
- package/lib/Controllers/Packhouse/ProductionDataExportController.js +132 -0
- package/lib/Controllers/Packhouse/index.js +5 -2
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +100 -0
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Integrations/ExternalShiftManagementController.js +58 -0
- package/src/Controllers/Packhouse/Integrations/index.js +16 -0
- package/src/Controllers/Packhouse/ProductionDataExportController.js +171 -0
- package/src/Controllers/Packhouse/index.js +2 -0
- package/src/PackageVersion.js +1 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _RequestHelper = _interopRequireDefault(require("../../../RequestHelper"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
|
+
|
|
14
|
+
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); } }
|
|
15
|
+
|
|
16
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The External Shift Management Controller Class
|
|
20
|
+
*
|
|
21
|
+
* @class
|
|
22
|
+
*/
|
|
23
|
+
var ExternalShiftManagementController = /*#__PURE__*/function () {
|
|
24
|
+
function ExternalShiftManagementController() {
|
|
25
|
+
_classCallCheck(this, ExternalShiftManagementController);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
_createClass(ExternalShiftManagementController, null, [{
|
|
29
|
+
key: "updateTeamsHeadCount",
|
|
30
|
+
value:
|
|
31
|
+
/**
|
|
32
|
+
* Update Teams Head Count [POST /integrations/packhouse/external-shift-management/update-teams-headcount]
|
|
33
|
+
*
|
|
34
|
+
* Update the Current Shift Manning Head Count by Team for a given Packing Line
|
|
35
|
+
*
|
|
36
|
+
* @static
|
|
37
|
+
* @public
|
|
38
|
+
* @param {ExternalShiftManagementController.PackingLineTeamsHeadCount} objectData The Object Properties
|
|
39
|
+
* @return {Promise<boolean>}
|
|
40
|
+
*/
|
|
41
|
+
function updateTeamsHeadCount(objectData) {
|
|
42
|
+
return new Promise(function (resolve, reject) {
|
|
43
|
+
_RequestHelper.default.postRequest("/integrations/packhouse/external-shift-management/update-teams-headcount", objectData).then(function (result) {
|
|
44
|
+
resolve(result !== null && result !== void 0 ? result : true);
|
|
45
|
+
}).catch(function (error) {
|
|
46
|
+
return reject(error);
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}]);
|
|
51
|
+
|
|
52
|
+
return ExternalShiftManagementController;
|
|
53
|
+
}();
|
|
54
|
+
|
|
55
|
+
var _default = ExternalShiftManagementController;
|
|
56
|
+
/**
|
|
57
|
+
* A **TeamHeadCount** Type
|
|
58
|
+
*
|
|
59
|
+
* @typedef {Object} ExternalShiftManagementController.TeamHeadCount
|
|
60
|
+
* @property {string} team Name of the Team
|
|
61
|
+
* @property {number} count Number of People Present in the Team
|
|
62
|
+
* @memberof Controllers.Packhouse.Integrations
|
|
63
|
+
*/
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* A **PackingLineTeamsHeadCount** Type
|
|
67
|
+
*
|
|
68
|
+
* @typedef {Object} ExternalShiftManagementController.PackingLineTeamsHeadCount
|
|
69
|
+
* @property {number} siteId Numeric ID of the RICADO Site
|
|
70
|
+
* @property {string} packingLineId UUID of the Packing Line
|
|
71
|
+
* @property {Array<ExternalShiftManagementController.TeamHeadCount>} headCounts An Array of Head Counts by Team
|
|
72
|
+
* @property {Date} validAfterTimestamp Timestamp of when this Head Count Data should be Applied
|
|
73
|
+
* @memberof Controllers.Packhouse.Integrations
|
|
74
|
+
*/
|
|
75
|
+
|
|
76
|
+
exports.default = _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _ExternalShiftManagementController = _interopRequireDefault(require("./ExternalShiftManagementController"));
|
|
9
|
+
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* File Auto-Generated by the RICADO Gen 4 PHP API Project
|
|
14
|
+
*
|
|
15
|
+
* Do Not Edit this File Manually!
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @namespace Controllers.Packhouse.Integrations
|
|
20
|
+
*/
|
|
21
|
+
var Integrations = {
|
|
22
|
+
ExternalShiftManagementController: _ExternalShiftManagementController.default
|
|
23
|
+
};
|
|
24
|
+
var _default = Integrations;
|
|
25
|
+
exports.default = _default;
|
|
@@ -318,6 +318,18 @@ var ProductionDataExportController = /*#__PURE__*/function () {
|
|
|
318
318
|
packrunsItemObject.averageBinsTippedPerHour = 0;
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
+
if (_typeof(packrunsItem) === 'object' && 'averageBinsTippedPerHourExcludingDowntime' in packrunsItem) {
|
|
322
|
+
packrunsItemObject.averageBinsTippedPerHourExcludingDowntime = function () {
|
|
323
|
+
if (typeof packrunsItem.averageBinsTippedPerHourExcludingDowntime !== 'number') {
|
|
324
|
+
return Number(packrunsItem.averageBinsTippedPerHourExcludingDowntime);
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
return packrunsItem.averageBinsTippedPerHourExcludingDowntime;
|
|
328
|
+
}();
|
|
329
|
+
} else {
|
|
330
|
+
packrunsItemObject.averageBinsTippedPerHourExcludingDowntime = 0;
|
|
331
|
+
}
|
|
332
|
+
|
|
321
333
|
if (_typeof(packrunsItem) === 'object' && 'averageTimePerTippedBin' in packrunsItem) {
|
|
322
334
|
packrunsItemObject.averageTimePerTippedBin = function () {
|
|
323
335
|
if (typeof packrunsItem.averageTimePerTippedBin !== 'number') {
|
|
@@ -3374,6 +3386,118 @@ var ProductionDataExportController = /*#__PURE__*/function () {
|
|
|
3374
3386
|
shiftHourlyEntriesItemObject.qualityR600IdealSamplesActual = null;
|
|
3375
3387
|
}
|
|
3376
3388
|
|
|
3389
|
+
if (_typeof(shiftHourlyEntriesItem) === 'object' && 'primaryIssueCategory' in shiftHourlyEntriesItem) {
|
|
3390
|
+
shiftHourlyEntriesItemObject.primaryIssueCategory = function () {
|
|
3391
|
+
if (shiftHourlyEntriesItem.primaryIssueCategory === null) {
|
|
3392
|
+
return null;
|
|
3393
|
+
}
|
|
3394
|
+
|
|
3395
|
+
if (typeof shiftHourlyEntriesItem.primaryIssueCategory !== 'string') {
|
|
3396
|
+
return String(shiftHourlyEntriesItem.primaryIssueCategory);
|
|
3397
|
+
}
|
|
3398
|
+
|
|
3399
|
+
return shiftHourlyEntriesItem.primaryIssueCategory;
|
|
3400
|
+
}();
|
|
3401
|
+
} else {
|
|
3402
|
+
shiftHourlyEntriesItemObject.primaryIssueCategory = null;
|
|
3403
|
+
}
|
|
3404
|
+
|
|
3405
|
+
if (_typeof(shiftHourlyEntriesItem) === 'object' && 'primaryIssueTag' in shiftHourlyEntriesItem) {
|
|
3406
|
+
shiftHourlyEntriesItemObject.primaryIssueTag = function () {
|
|
3407
|
+
if (shiftHourlyEntriesItem.primaryIssueTag === null) {
|
|
3408
|
+
return null;
|
|
3409
|
+
}
|
|
3410
|
+
|
|
3411
|
+
if (typeof shiftHourlyEntriesItem.primaryIssueTag !== 'string') {
|
|
3412
|
+
return String(shiftHourlyEntriesItem.primaryIssueTag);
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
return shiftHourlyEntriesItem.primaryIssueTag;
|
|
3416
|
+
}();
|
|
3417
|
+
} else {
|
|
3418
|
+
shiftHourlyEntriesItemObject.primaryIssueTag = null;
|
|
3419
|
+
}
|
|
3420
|
+
|
|
3421
|
+
if (_typeof(shiftHourlyEntriesItem) === 'object' && 'primaryIssuePercentage' in shiftHourlyEntriesItem) {
|
|
3422
|
+
shiftHourlyEntriesItemObject.primaryIssuePercentage = function () {
|
|
3423
|
+
if (shiftHourlyEntriesItem.primaryIssuePercentage === null) {
|
|
3424
|
+
return null;
|
|
3425
|
+
}
|
|
3426
|
+
|
|
3427
|
+
if (typeof shiftHourlyEntriesItem.primaryIssuePercentage !== 'number') {
|
|
3428
|
+
return Number(shiftHourlyEntriesItem.primaryIssuePercentage);
|
|
3429
|
+
}
|
|
3430
|
+
|
|
3431
|
+
return shiftHourlyEntriesItem.primaryIssuePercentage;
|
|
3432
|
+
}();
|
|
3433
|
+
} else {
|
|
3434
|
+
shiftHourlyEntriesItemObject.primaryIssuePercentage = null;
|
|
3435
|
+
}
|
|
3436
|
+
|
|
3437
|
+
if (_typeof(shiftHourlyEntriesItem) === 'object' && 'secondaryIssueCategory' in shiftHourlyEntriesItem) {
|
|
3438
|
+
shiftHourlyEntriesItemObject.secondaryIssueCategory = function () {
|
|
3439
|
+
if (shiftHourlyEntriesItem.secondaryIssueCategory === null) {
|
|
3440
|
+
return null;
|
|
3441
|
+
}
|
|
3442
|
+
|
|
3443
|
+
if (typeof shiftHourlyEntriesItem.secondaryIssueCategory !== 'string') {
|
|
3444
|
+
return String(shiftHourlyEntriesItem.secondaryIssueCategory);
|
|
3445
|
+
}
|
|
3446
|
+
|
|
3447
|
+
return shiftHourlyEntriesItem.secondaryIssueCategory;
|
|
3448
|
+
}();
|
|
3449
|
+
} else {
|
|
3450
|
+
shiftHourlyEntriesItemObject.secondaryIssueCategory = null;
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
if (_typeof(shiftHourlyEntriesItem) === 'object' && 'secondaryIssueTag' in shiftHourlyEntriesItem) {
|
|
3454
|
+
shiftHourlyEntriesItemObject.secondaryIssueTag = function () {
|
|
3455
|
+
if (shiftHourlyEntriesItem.secondaryIssueTag === null) {
|
|
3456
|
+
return null;
|
|
3457
|
+
}
|
|
3458
|
+
|
|
3459
|
+
if (typeof shiftHourlyEntriesItem.secondaryIssueTag !== 'string') {
|
|
3460
|
+
return String(shiftHourlyEntriesItem.secondaryIssueTag);
|
|
3461
|
+
}
|
|
3462
|
+
|
|
3463
|
+
return shiftHourlyEntriesItem.secondaryIssueTag;
|
|
3464
|
+
}();
|
|
3465
|
+
} else {
|
|
3466
|
+
shiftHourlyEntriesItemObject.secondaryIssueTag = null;
|
|
3467
|
+
}
|
|
3468
|
+
|
|
3469
|
+
if (_typeof(shiftHourlyEntriesItem) === 'object' && 'secondaryIssuePercentage' in shiftHourlyEntriesItem) {
|
|
3470
|
+
shiftHourlyEntriesItemObject.secondaryIssuePercentage = function () {
|
|
3471
|
+
if (shiftHourlyEntriesItem.secondaryIssuePercentage === null) {
|
|
3472
|
+
return null;
|
|
3473
|
+
}
|
|
3474
|
+
|
|
3475
|
+
if (typeof shiftHourlyEntriesItem.secondaryIssuePercentage !== 'number') {
|
|
3476
|
+
return Number(shiftHourlyEntriesItem.secondaryIssuePercentage);
|
|
3477
|
+
}
|
|
3478
|
+
|
|
3479
|
+
return shiftHourlyEntriesItem.secondaryIssuePercentage;
|
|
3480
|
+
}();
|
|
3481
|
+
} else {
|
|
3482
|
+
shiftHourlyEntriesItemObject.secondaryIssuePercentage = null;
|
|
3483
|
+
}
|
|
3484
|
+
|
|
3485
|
+
if (_typeof(shiftHourlyEntriesItem) === 'object' && 'nextHourFocus' in shiftHourlyEntriesItem) {
|
|
3486
|
+
shiftHourlyEntriesItemObject.nextHourFocus = function () {
|
|
3487
|
+
if (shiftHourlyEntriesItem.nextHourFocus === null) {
|
|
3488
|
+
return null;
|
|
3489
|
+
}
|
|
3490
|
+
|
|
3491
|
+
if (typeof shiftHourlyEntriesItem.nextHourFocus !== 'string') {
|
|
3492
|
+
return String(shiftHourlyEntriesItem.nextHourFocus);
|
|
3493
|
+
}
|
|
3494
|
+
|
|
3495
|
+
return shiftHourlyEntriesItem.nextHourFocus;
|
|
3496
|
+
}();
|
|
3497
|
+
} else {
|
|
3498
|
+
shiftHourlyEntriesItemObject.nextHourFocus = null;
|
|
3499
|
+
}
|
|
3500
|
+
|
|
3377
3501
|
return shiftHourlyEntriesItemObject;
|
|
3378
3502
|
}();
|
|
3379
3503
|
});
|
|
@@ -3829,6 +3953,7 @@ var _default = ProductionDataExportController;
|
|
|
3829
3953
|
* @property {number} totalNetWeightTipped Total Net Fruit Weight Tipped during this Packrun
|
|
3830
3954
|
* @property {number} averageNetWeightPerBin Average Net Fruit Weight per Bin for this Packrun
|
|
3831
3955
|
* @property {number} averageBinsTippedPerHour Average Bins Tipped per Hour during this Packrun
|
|
3956
|
+
* @property {number} averageBinsTippedPerHourExcludingDowntime Average Bins Tipped per Hour excluding Downtime during this Packrun
|
|
3832
3957
|
* @property {number} averageTimePerTippedBin Average Time Taken in Seconds to Tip a Bin during this Packrun
|
|
3833
3958
|
* @property {number} averageBinTipWeightThroughput Average Throughput in Kilograms per Hour for the Bin Tip during this Packrun
|
|
3834
3959
|
* @property {number} softSortEventsPerBin Number of Soft-Sort Events per Bin Tipped during this Packrun
|
|
@@ -4053,6 +4178,13 @@ var _default = ProductionDataExportController;
|
|
|
4053
4178
|
* @property {?number} averageClass1Percentage Average Class 1 Packout Percentage during this Hour
|
|
4054
4179
|
* @property {?number} qualityR600IdealSamplesTarget Target Percentage of R600 Samples that should be in the Ideal Range for this Hour
|
|
4055
4180
|
* @property {?number} qualityR600IdealSamplesActual Actual Percentage of R600 Samples that were in the Ideal Range during this Hour
|
|
4181
|
+
* @property {?string} primaryIssueCategory Category of the Primary Issue that constrained throughput during this Hour
|
|
4182
|
+
* @property {?string} primaryIssueTag Tag of the Primary Issue that constrained throughput during this Hour
|
|
4183
|
+
* @property {?number} primaryIssuePercentage Percentage representing how much the Primary Issue constrained throughput during this Hour
|
|
4184
|
+
* @property {?string} secondaryIssueCategory Category of the Secondary Issue that constrained throughput during this Hour
|
|
4185
|
+
* @property {?string} secondaryIssueTag Tag of the Secondary Issue that constrained throughput during this Hour
|
|
4186
|
+
* @property {?number} secondaryIssuePercentage Percentage representing how much the Secondary Issue constrained throughput during this Hour
|
|
4187
|
+
* @property {?string} nextHourFocus An Optional Focus for the Next Hour based on experiences and review during this Hour
|
|
4056
4188
|
* @memberof Controllers.Packhouse
|
|
4057
4189
|
*/
|
|
4058
4190
|
|
|
@@ -7,7 +7,9 @@ exports.default = void 0;
|
|
|
7
7
|
|
|
8
8
|
var _ProductionDataExportController = _interopRequireDefault(require("./ProductionDataExportController"));
|
|
9
9
|
|
|
10
|
-
var _index = _interopRequireDefault(require("./
|
|
10
|
+
var _index = _interopRequireDefault(require("./Integrations/index"));
|
|
11
|
+
|
|
12
|
+
var _index2 = _interopRequireDefault(require("./Site/index"));
|
|
11
13
|
|
|
12
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
15
|
|
|
@@ -22,7 +24,8 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
22
24
|
*/
|
|
23
25
|
var Packhouse = {
|
|
24
26
|
ProductionDataExportController: _ProductionDataExportController.default,
|
|
25
|
-
|
|
27
|
+
Integrations: _index.default,
|
|
28
|
+
Site: _index2.default
|
|
26
29
|
};
|
|
27
30
|
var _default = Packhouse;
|
|
28
31
|
exports.default = _default;
|
package/lib/PackageVersion.js
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -2168,9 +2168,11 @@ declare module '@ricado/api-client/Controllers/Packhouse' {
|
|
|
2168
2168
|
export default Packhouse;
|
|
2169
2169
|
namespace Packhouse {
|
|
2170
2170
|
export { ProductionDataExportController };
|
|
2171
|
+
export { Integrations };
|
|
2171
2172
|
export { Site };
|
|
2172
2173
|
}
|
|
2173
2174
|
import ProductionDataExportController from "@ricado/api-client/Controllers/Packhouse/ProductionDataExportController";
|
|
2175
|
+
import Integrations from "@ricado/api-client/Controllers/Packhouse/Integrations";
|
|
2174
2176
|
import Site from "@ricado/api-client/Controllers/Packhouse/Site";
|
|
2175
2177
|
}
|
|
2176
2178
|
|
|
@@ -3274,6 +3276,10 @@ declare module '@ricado/api-client/Controllers/Packhouse/ProductionDataExportCon
|
|
|
3274
3276
|
* Average Bins Tipped per Hour during this Packrun
|
|
3275
3277
|
*/
|
|
3276
3278
|
averageBinsTippedPerHour: number;
|
|
3279
|
+
/**
|
|
3280
|
+
* Average Bins Tipped per Hour excluding Downtime during this Packrun
|
|
3281
|
+
*/
|
|
3282
|
+
averageBinsTippedPerHourExcludingDowntime: number;
|
|
3277
3283
|
/**
|
|
3278
3284
|
* Average Time Taken in Seconds to Tip a Bin during this Packrun
|
|
3279
3285
|
*/
|
|
@@ -4124,6 +4130,34 @@ declare module '@ricado/api-client/Controllers/Packhouse/ProductionDataExportCon
|
|
|
4124
4130
|
* Actual Percentage of R600 Samples that were in the Ideal Range during this Hour
|
|
4125
4131
|
*/
|
|
4126
4132
|
qualityR600IdealSamplesActual: number | null;
|
|
4133
|
+
/**
|
|
4134
|
+
* Category of the Primary Issue that constrained throughput during this Hour
|
|
4135
|
+
*/
|
|
4136
|
+
primaryIssueCategory: string | null;
|
|
4137
|
+
/**
|
|
4138
|
+
* Tag of the Primary Issue that constrained throughput during this Hour
|
|
4139
|
+
*/
|
|
4140
|
+
primaryIssueTag: string | null;
|
|
4141
|
+
/**
|
|
4142
|
+
* Percentage representing how much the Primary Issue constrained throughput during this Hour
|
|
4143
|
+
*/
|
|
4144
|
+
primaryIssuePercentage: number | null;
|
|
4145
|
+
/**
|
|
4146
|
+
* Category of the Secondary Issue that constrained throughput during this Hour
|
|
4147
|
+
*/
|
|
4148
|
+
secondaryIssueCategory: string | null;
|
|
4149
|
+
/**
|
|
4150
|
+
* Tag of the Secondary Issue that constrained throughput during this Hour
|
|
4151
|
+
*/
|
|
4152
|
+
secondaryIssueTag: string | null;
|
|
4153
|
+
/**
|
|
4154
|
+
* Percentage representing how much the Secondary Issue constrained throughput during this Hour
|
|
4155
|
+
*/
|
|
4156
|
+
secondaryIssuePercentage: number | null;
|
|
4157
|
+
/**
|
|
4158
|
+
* An Optional Focus for the Next Hour based on experiences and review during this Hour
|
|
4159
|
+
*/
|
|
4160
|
+
nextHourFocus: string | null;
|
|
4127
4161
|
};
|
|
4128
4162
|
/**
|
|
4129
4163
|
* A **DowntimeData** Type
|
|
@@ -4263,6 +4297,14 @@ declare module '@ricado/api-client/Controllers/Packhouse/ProductionDataExportCon
|
|
|
4263
4297
|
}
|
|
4264
4298
|
}
|
|
4265
4299
|
|
|
4300
|
+
declare module '@ricado/api-client/Controllers/Packhouse/Integrations' {
|
|
4301
|
+
export default Integrations;
|
|
4302
|
+
namespace Integrations {
|
|
4303
|
+
export { ExternalShiftManagementController };
|
|
4304
|
+
}
|
|
4305
|
+
import ExternalShiftManagementController from "@ricado/api-client/Controllers/Packhouse/Integrations/ExternalShiftManagementController";
|
|
4306
|
+
}
|
|
4307
|
+
|
|
4266
4308
|
declare module '@ricado/api-client/Controllers/Packhouse/Site' {
|
|
4267
4309
|
export default Site;
|
|
4268
4310
|
namespace Site {
|
|
@@ -6538,6 +6580,64 @@ declare module '@ricado/api-client/Models/Site/TemporaryObjectModel' {
|
|
|
6538
6580
|
import BaseModel from "@ricado/api-client/Models/BaseModel";
|
|
6539
6581
|
}
|
|
6540
6582
|
|
|
6583
|
+
declare module '@ricado/api-client/Controllers/Packhouse/Integrations/ExternalShiftManagementController' {
|
|
6584
|
+
export default ExternalShiftManagementController;
|
|
6585
|
+
/**
|
|
6586
|
+
* The External Shift Management Controller Class
|
|
6587
|
+
*
|
|
6588
|
+
* @class
|
|
6589
|
+
*/
|
|
6590
|
+
class ExternalShiftManagementController {
|
|
6591
|
+
/**
|
|
6592
|
+
* Update Teams Head Count [POST /integrations/packhouse/external-shift-management/update-teams-headcount]
|
|
6593
|
+
*
|
|
6594
|
+
* Update the Current Shift Manning Head Count by Team for a given Packing Line
|
|
6595
|
+
*
|
|
6596
|
+
* @static
|
|
6597
|
+
* @public
|
|
6598
|
+
* @param {ExternalShiftManagementController.PackingLineTeamsHeadCount} objectData The Object Properties
|
|
6599
|
+
* @return {Promise<boolean>}
|
|
6600
|
+
*/
|
|
6601
|
+
static updateTeamsHeadCount(objectData: ExternalShiftManagementController.PackingLineTeamsHeadCount): Promise<boolean>;
|
|
6602
|
+
}
|
|
6603
|
+
namespace ExternalShiftManagementController {
|
|
6604
|
+
/**
|
|
6605
|
+
* A **TeamHeadCount** Type
|
|
6606
|
+
*/
|
|
6607
|
+
export type TeamHeadCount = {
|
|
6608
|
+
/**
|
|
6609
|
+
* Name of the Team
|
|
6610
|
+
*/
|
|
6611
|
+
team: string;
|
|
6612
|
+
/**
|
|
6613
|
+
* Number of People Present in the Team
|
|
6614
|
+
*/
|
|
6615
|
+
count: number;
|
|
6616
|
+
};
|
|
6617
|
+
/**
|
|
6618
|
+
* A **PackingLineTeamsHeadCount** Type
|
|
6619
|
+
*/
|
|
6620
|
+
export type PackingLineTeamsHeadCount = {
|
|
6621
|
+
/**
|
|
6622
|
+
* Numeric ID of the RICADO Site
|
|
6623
|
+
*/
|
|
6624
|
+
siteId: number;
|
|
6625
|
+
/**
|
|
6626
|
+
* UUID of the Packing Line
|
|
6627
|
+
*/
|
|
6628
|
+
packingLineId: string;
|
|
6629
|
+
/**
|
|
6630
|
+
* An Array of Head Counts by Team
|
|
6631
|
+
*/
|
|
6632
|
+
headCounts: TeamHeadCount[];
|
|
6633
|
+
/**
|
|
6634
|
+
* Timestamp of when this Head Count Data should be Applied
|
|
6635
|
+
*/
|
|
6636
|
+
validAfterTimestamp: Date;
|
|
6637
|
+
};
|
|
6638
|
+
}
|
|
6639
|
+
}
|
|
6640
|
+
|
|
6541
6641
|
declare module '@ricado/api-client/Controllers/Packhouse/Site/BinTipBinCardController' {
|
|
6542
6642
|
export default BinTipBinCardController;
|
|
6543
6643
|
/**
|
package/package.json
CHANGED
|
@@ -0,0 +1,58 @@
|
|
|
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 RequestHelper from '../../../RequestHelper';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The External Shift Management Controller Class
|
|
11
|
+
*
|
|
12
|
+
* @class
|
|
13
|
+
*/
|
|
14
|
+
class ExternalShiftManagementController
|
|
15
|
+
{
|
|
16
|
+
/**
|
|
17
|
+
* Update Teams Head Count [POST /integrations/packhouse/external-shift-management/update-teams-headcount]
|
|
18
|
+
*
|
|
19
|
+
* Update the Current Shift Manning Head Count by Team for a given Packing Line
|
|
20
|
+
*
|
|
21
|
+
* @static
|
|
22
|
+
* @public
|
|
23
|
+
* @param {ExternalShiftManagementController.PackingLineTeamsHeadCount} objectData The Object Properties
|
|
24
|
+
* @return {Promise<boolean>}
|
|
25
|
+
*/
|
|
26
|
+
static updateTeamsHeadCount(objectData)
|
|
27
|
+
{
|
|
28
|
+
return new Promise((resolve, reject) => {
|
|
29
|
+
RequestHelper.postRequest(`/integrations/packhouse/external-shift-management/update-teams-headcount`, objectData)
|
|
30
|
+
.then((result) => {
|
|
31
|
+
resolve(result ?? true);
|
|
32
|
+
})
|
|
33
|
+
.catch(error => reject(error));
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export default ExternalShiftManagementController;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* A **TeamHeadCount** Type
|
|
42
|
+
*
|
|
43
|
+
* @typedef {Object} ExternalShiftManagementController.TeamHeadCount
|
|
44
|
+
* @property {string} team Name of the Team
|
|
45
|
+
* @property {number} count Number of People Present in the Team
|
|
46
|
+
* @memberof Controllers.Packhouse.Integrations
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* A **PackingLineTeamsHeadCount** Type
|
|
51
|
+
*
|
|
52
|
+
* @typedef {Object} ExternalShiftManagementController.PackingLineTeamsHeadCount
|
|
53
|
+
* @property {number} siteId Numeric ID of the RICADO Site
|
|
54
|
+
* @property {string} packingLineId UUID of the Packing Line
|
|
55
|
+
* @property {Array<ExternalShiftManagementController.TeamHeadCount>} headCounts An Array of Head Counts by Team
|
|
56
|
+
* @property {Date} validAfterTimestamp Timestamp of when this Head Count Data should be Applied
|
|
57
|
+
* @memberof Controllers.Packhouse.Integrations
|
|
58
|
+
*/
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File Auto-Generated by the RICADO Gen 4 PHP API Project
|
|
3
|
+
*
|
|
4
|
+
* Do Not Edit this File Manually!
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @namespace Controllers.Packhouse.Integrations
|
|
9
|
+
*/
|
|
10
|
+
import ExternalShiftManagementController from './ExternalShiftManagementController';
|
|
11
|
+
|
|
12
|
+
const Integrations = {
|
|
13
|
+
ExternalShiftManagementController,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default Integrations;
|