@ricado/api-client 2.3.16 → 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.
@@ -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;
@@ -7,7 +7,9 @@ exports.default = void 0;
7
7
 
8
8
  var _ProductionDataExportController = _interopRequireDefault(require("./ProductionDataExportController"));
9
9
 
10
- var _index = _interopRequireDefault(require("./Site/index"));
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
- Site: _index.default
27
+ Integrations: _index.default,
28
+ Site: _index2.default
26
29
  };
27
30
  var _default = Packhouse;
28
31
  exports.default = _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.16';
8
+ var version = '2.3.17';
9
9
  exports.version = version;
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
 
@@ -4295,6 +4297,14 @@ declare module '@ricado/api-client/Controllers/Packhouse/ProductionDataExportCon
4295
4297
  }
4296
4298
  }
4297
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
+
4298
4308
  declare module '@ricado/api-client/Controllers/Packhouse/Site' {
4299
4309
  export default Site;
4300
4310
  namespace Site {
@@ -6570,6 +6580,64 @@ declare module '@ricado/api-client/Models/Site/TemporaryObjectModel' {
6570
6580
  import BaseModel from "@ricado/api-client/Models/BaseModel";
6571
6581
  }
6572
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
+
6573
6641
  declare module '@ricado/api-client/Controllers/Packhouse/Site/BinTipBinCardController' {
6574
6642
  export default BinTipBinCardController;
6575
6643
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ricado/api-client",
3
- "version": "2.3.16",
3
+ "version": "2.3.17",
4
4
  "description": "RICADO Gen 4 API Client Library for NodeJS and Browsers",
5
5
  "author": {
6
6
  "name": "Ash Neilson"
@@ -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;
@@ -8,10 +8,12 @@
8
8
  * @namespace Controllers.Packhouse
9
9
  */
10
10
  import ProductionDataExportController from './ProductionDataExportController';
11
+ import Integrations from './Integrations/index';
11
12
  import Site from './Site/index';
12
13
 
13
14
  const Packhouse = {
14
15
  ProductionDataExportController,
16
+ Integrations,
15
17
  Site,
16
18
  };
17
19
 
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '2.3.16';
2
+ export const version = '2.3.17';