@ricado/api-client 2.5.4 → 2.5.6
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/PackingLineController.js +19 -3
- package/lib/Models/Packhouse/Site/PackingLineModel.js +134 -2
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +72 -4
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/PackingLineController.js +19 -3
- package/src/Models/Packhouse/Site/PackingLineModel.js +181 -2
- package/src/PackageVersion.js +1 -1
|
@@ -192,7 +192,7 @@ var _default = PackingLineController;
|
|
|
192
192
|
* @property {?PackingLineController.AdvancedPackrunManagement} [advancedPackrunManagement] The Advanced Packrun Management Configuration for this Packing Line
|
|
193
193
|
* @property {?PackingLineController.MafIntegration} [mafIntegration] The MAF Integration Configuration for this Packing Line
|
|
194
194
|
* @property {?PackingLineController.FreshPackIntegration} [freshPackIntegration] The FreshPack Integration Configuration for this Packing Line
|
|
195
|
-
* @property {?PackingLineController.
|
|
195
|
+
* @property {?PackingLineController.FreshQualityIntegration} [freshQualityIntegration] The FreshQuality Integration Configuration for this Packing Line
|
|
196
196
|
* @memberof Controllers.Packhouse.Site
|
|
197
197
|
*/
|
|
198
198
|
|
|
@@ -214,7 +214,7 @@ var _default = PackingLineController;
|
|
|
214
214
|
* @property {?PackingLineController.AdvancedPackrunManagement} [advancedPackrunManagement] The Advanced Packrun Management Configuration for this Packing Line
|
|
215
215
|
* @property {?PackingLineController.MafIntegration} [mafIntegration] The MAF Integration Configuration for this Packing Line
|
|
216
216
|
* @property {?PackingLineController.FreshPackIntegration} [freshPackIntegration] The FreshPack Integration Configuration for this Packing Line
|
|
217
|
-
* @property {?PackingLineController.
|
|
217
|
+
* @property {?PackingLineController.FreshQualityIntegration} [freshQualityIntegration] The FreshQuality Integration Configuration for this Packing Line
|
|
218
218
|
* @memberof Controllers.Packhouse.Site
|
|
219
219
|
*/
|
|
220
220
|
|
|
@@ -650,12 +650,28 @@ var _default = PackingLineController;
|
|
|
650
650
|
* A **FreshPackIntegration** Type
|
|
651
651
|
*
|
|
652
652
|
* @typedef {Object} PackingLineController.FreshPackIntegration
|
|
653
|
-
* @property {{
|
|
653
|
+
* @property {{graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, marketHolds: number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number, currentPackrunMarketHolds: ?number, nextPackrunMarketHolds: ?number, apiVersion: number, activePackrunName: number, activeTimeBatch: number}} points The Points used for this FreshPack Integration
|
|
654
|
+
* @property {boolean} enabled Whether the FreshPack Integration is Enabled on this Packing Line
|
|
655
|
+
* @property {number[]} graderIds An Array of FreshPack Grader IDs that relate to this Packing Line
|
|
656
|
+
* @property {string} apiBaseUrl Base URL of the FreshPack Web Portal API
|
|
657
|
+
* @property {string} computerName A Computer Name to use when Performing Actions on the FreshPack API
|
|
658
|
+
* @property {number} productionFacilityId FreshPack Production Facility ID this Packing Line is associated with
|
|
659
|
+
* @property {Array<PackingLineController.ClassTypeRejectCategory>} classTypeRejectCategoryIds An Array of FreshPack Reject Category IDs that relate to Class Types on this Packing Line
|
|
660
|
+
* @property {?string[]} [packrunSourceTrayClassTypes] An Optional Array of Class Types that should be collected from FreshPack Tray Totals on this Packing Line
|
|
661
|
+
* @memberof Controllers.Packhouse.Site
|
|
662
|
+
*/
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* A **FreshQualityIntegration** Type
|
|
666
|
+
*
|
|
667
|
+
* @typedef {Object} PackingLineController.FreshQualityIntegration
|
|
668
|
+
* @property {{currentPackrunSamples: number, apiCommunicationStatus: number, currentPackrunMajorPackingDefects: number, currentPackrunMinorPackingDefects: number, currentPackrunTotalPackingDefects: number, currentPackrunFutureStorageDefects: number, currentPackrunMajorPackingDefectsCount: number, currentPackrunMinorPackingDefectsCount: number, currentPackrunTotalPackingDefectsCount: number, currentPackrunFutureStorageDefectsCount: number, currentPackrunRejectAnalysisSamples: number, sampleTypes: number}} points The Points used for this FreshQuality Integration
|
|
654
669
|
* @property {boolean} enabled Whether the FreshQuality Integration is Enabled on this Packing Line
|
|
655
670
|
* @property {string} username Username for Authenticating with the FreshQuality API
|
|
656
671
|
* @property {string} password Password for Authenticating with the FreshQuality API
|
|
657
672
|
* @property {string} apiBaseUrl Base URL of the FreshQuality API
|
|
658
673
|
* @property {number[]} sampleTypeIds An Array of FreshQuality Sample Type IDs that are used for Class 1 R600 on this Packing Line
|
|
674
|
+
* @property {number[]} rejectAnalysisSampleTypeIds An Array of FreshQuality Sample Type IDs that are used for Reject Analysis on this Packing Line
|
|
659
675
|
* @memberof Controllers.Packhouse.Site
|
|
660
676
|
*/
|
|
661
677
|
|
|
@@ -213,7 +213,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
213
213
|
/**
|
|
214
214
|
* The FreshPack Integration Configuration for this Packing Line
|
|
215
215
|
*
|
|
216
|
-
* @type {?{points: {graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number}, enabled: boolean, graderIds: number[], apiBaseUrl: string, computerName: string, productionFacilityId: number, classTypeRejectCategoryIds: Array<{classType: string, rejectCategoryId: number}>, packrunSourceTrayClassTypes: ?string[]}}
|
|
216
|
+
* @type {?{points: {graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, marketHolds: number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number, currentPackrunMarketHolds: ?number, nextPackrunMarketHolds: ?number, apiVersion: number, activePackrunName: number, activeTimeBatch: number}, enabled: boolean, graderIds: number[], apiBaseUrl: string, computerName: string, productionFacilityId: number, classTypeRejectCategoryIds: Array<{classType: string, rejectCategoryId: number}>, packrunSourceTrayClassTypes: ?string[]}}
|
|
217
217
|
* @public
|
|
218
218
|
*/
|
|
219
219
|
|
|
@@ -221,7 +221,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
221
221
|
/**
|
|
222
222
|
* The FreshQuality Integration Configuration for this Packing Line
|
|
223
223
|
*
|
|
224
|
-
* @type {?{points: {currentPackrunSamples: number, apiCommunicationStatus: number, currentPackrunMajorPackingDefects: number, currentPackrunMinorPackingDefects: number, currentPackrunTotalPackingDefects: number, currentPackrunFutureStorageDefects: number, currentPackrunMajorPackingDefectsCount: number, currentPackrunMinorPackingDefectsCount: number, currentPackrunTotalPackingDefectsCount: number, currentPackrunFutureStorageDefectsCount: number}, enabled: boolean, username: string, password: string, apiBaseUrl: string, sampleTypeIds: number[]}}
|
|
224
|
+
* @type {?{points: {currentPackrunSamples: number, apiCommunicationStatus: number, currentPackrunMajorPackingDefects: number, currentPackrunMinorPackingDefects: number, currentPackrunTotalPackingDefects: number, currentPackrunFutureStorageDefects: number, currentPackrunMajorPackingDefectsCount: number, currentPackrunMinorPackingDefectsCount: number, currentPackrunTotalPackingDefectsCount: number, currentPackrunFutureStorageDefectsCount: number, currentPackrunRejectAnalysisSamples: number, sampleTypes: number}, enabled: boolean, username: string, password: string, apiBaseUrl: string, sampleTypeIds: number[], rejectAnalysisSampleTypeIds: number[]}}
|
|
225
225
|
* @public
|
|
226
226
|
*/
|
|
227
227
|
|
|
@@ -4057,6 +4057,18 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4057
4057
|
pointsObject.productionFacilities = 0;
|
|
4058
4058
|
}
|
|
4059
4059
|
|
|
4060
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'marketHolds' in jsonObject['freshPackIntegration'].points) {
|
|
4061
|
+
pointsObject.marketHolds = function () {
|
|
4062
|
+
if (typeof jsonObject['freshPackIntegration'].points.marketHolds !== 'number') {
|
|
4063
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.marketHolds)) ? Number(jsonObject['freshPackIntegration'].points.marketHolds) : Math.floor(Number(jsonObject['freshPackIntegration'].points.marketHolds));
|
|
4064
|
+
}
|
|
4065
|
+
|
|
4066
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.marketHolds) ? jsonObject['freshPackIntegration'].points.marketHolds : Math.floor(jsonObject['freshPackIntegration'].points.marketHolds);
|
|
4067
|
+
}();
|
|
4068
|
+
} else {
|
|
4069
|
+
pointsObject.marketHolds = 0;
|
|
4070
|
+
}
|
|
4071
|
+
|
|
4060
4072
|
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'apiCommunicationStatus' in jsonObject['freshPackIntegration'].points) {
|
|
4061
4073
|
pointsObject.apiCommunicationStatus = function () {
|
|
4062
4074
|
if (typeof jsonObject['freshPackIntegration'].points.apiCommunicationStatus !== 'number') {
|
|
@@ -4093,6 +4105,74 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4093
4105
|
pointsObject.nextPackrunClearanceSummary = 0;
|
|
4094
4106
|
}
|
|
4095
4107
|
|
|
4108
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'currentPackrunMarketHolds' in jsonObject['freshPackIntegration'].points) {
|
|
4109
|
+
pointsObject.currentPackrunMarketHolds = function () {
|
|
4110
|
+
if (jsonObject['freshPackIntegration'].points.currentPackrunMarketHolds === null) {
|
|
4111
|
+
return null;
|
|
4112
|
+
}
|
|
4113
|
+
|
|
4114
|
+
if (typeof jsonObject['freshPackIntegration'].points.currentPackrunMarketHolds !== 'number') {
|
|
4115
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.currentPackrunMarketHolds)) ? Number(jsonObject['freshPackIntegration'].points.currentPackrunMarketHolds) : Math.floor(Number(jsonObject['freshPackIntegration'].points.currentPackrunMarketHolds));
|
|
4116
|
+
}
|
|
4117
|
+
|
|
4118
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.currentPackrunMarketHolds) ? jsonObject['freshPackIntegration'].points.currentPackrunMarketHolds : Math.floor(jsonObject['freshPackIntegration'].points.currentPackrunMarketHolds);
|
|
4119
|
+
}();
|
|
4120
|
+
} else {
|
|
4121
|
+
pointsObject.currentPackrunMarketHolds = null;
|
|
4122
|
+
}
|
|
4123
|
+
|
|
4124
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'nextPackrunMarketHolds' in jsonObject['freshPackIntegration'].points) {
|
|
4125
|
+
pointsObject.nextPackrunMarketHolds = function () {
|
|
4126
|
+
if (jsonObject['freshPackIntegration'].points.nextPackrunMarketHolds === null) {
|
|
4127
|
+
return null;
|
|
4128
|
+
}
|
|
4129
|
+
|
|
4130
|
+
if (typeof jsonObject['freshPackIntegration'].points.nextPackrunMarketHolds !== 'number') {
|
|
4131
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.nextPackrunMarketHolds)) ? Number(jsonObject['freshPackIntegration'].points.nextPackrunMarketHolds) : Math.floor(Number(jsonObject['freshPackIntegration'].points.nextPackrunMarketHolds));
|
|
4132
|
+
}
|
|
4133
|
+
|
|
4134
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.nextPackrunMarketHolds) ? jsonObject['freshPackIntegration'].points.nextPackrunMarketHolds : Math.floor(jsonObject['freshPackIntegration'].points.nextPackrunMarketHolds);
|
|
4135
|
+
}();
|
|
4136
|
+
} else {
|
|
4137
|
+
pointsObject.nextPackrunMarketHolds = null;
|
|
4138
|
+
}
|
|
4139
|
+
|
|
4140
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'apiVersion' in jsonObject['freshPackIntegration'].points) {
|
|
4141
|
+
pointsObject.apiVersion = function () {
|
|
4142
|
+
if (typeof jsonObject['freshPackIntegration'].points.apiVersion !== 'number') {
|
|
4143
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.apiVersion)) ? Number(jsonObject['freshPackIntegration'].points.apiVersion) : Math.floor(Number(jsonObject['freshPackIntegration'].points.apiVersion));
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4146
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.apiVersion) ? jsonObject['freshPackIntegration'].points.apiVersion : Math.floor(jsonObject['freshPackIntegration'].points.apiVersion);
|
|
4147
|
+
}();
|
|
4148
|
+
} else {
|
|
4149
|
+
pointsObject.apiVersion = 0;
|
|
4150
|
+
}
|
|
4151
|
+
|
|
4152
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'activePackrunName' in jsonObject['freshPackIntegration'].points) {
|
|
4153
|
+
pointsObject.activePackrunName = function () {
|
|
4154
|
+
if (typeof jsonObject['freshPackIntegration'].points.activePackrunName !== 'number') {
|
|
4155
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.activePackrunName)) ? Number(jsonObject['freshPackIntegration'].points.activePackrunName) : Math.floor(Number(jsonObject['freshPackIntegration'].points.activePackrunName));
|
|
4156
|
+
}
|
|
4157
|
+
|
|
4158
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.activePackrunName) ? jsonObject['freshPackIntegration'].points.activePackrunName : Math.floor(jsonObject['freshPackIntegration'].points.activePackrunName);
|
|
4159
|
+
}();
|
|
4160
|
+
} else {
|
|
4161
|
+
pointsObject.activePackrunName = 0;
|
|
4162
|
+
}
|
|
4163
|
+
|
|
4164
|
+
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'activeTimeBatch' in jsonObject['freshPackIntegration'].points) {
|
|
4165
|
+
pointsObject.activeTimeBatch = function () {
|
|
4166
|
+
if (typeof jsonObject['freshPackIntegration'].points.activeTimeBatch !== 'number') {
|
|
4167
|
+
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.activeTimeBatch)) ? Number(jsonObject['freshPackIntegration'].points.activeTimeBatch) : Math.floor(Number(jsonObject['freshPackIntegration'].points.activeTimeBatch));
|
|
4168
|
+
}
|
|
4169
|
+
|
|
4170
|
+
return Number.isInteger(jsonObject['freshPackIntegration'].points.activeTimeBatch) ? jsonObject['freshPackIntegration'].points.activeTimeBatch : Math.floor(jsonObject['freshPackIntegration'].points.activeTimeBatch);
|
|
4171
|
+
}();
|
|
4172
|
+
} else {
|
|
4173
|
+
pointsObject.activeTimeBatch = 0;
|
|
4174
|
+
}
|
|
4175
|
+
|
|
4096
4176
|
return pointsObject;
|
|
4097
4177
|
}();
|
|
4098
4178
|
} else {
|
|
@@ -4104,9 +4184,15 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4104
4184
|
pointsDefaultValue.materialGroups = 0;
|
|
4105
4185
|
pointsDefaultValue.rejectCategories = 0;
|
|
4106
4186
|
pointsDefaultValue.productionFacilities = 0;
|
|
4187
|
+
pointsDefaultValue.marketHolds = 0;
|
|
4107
4188
|
pointsDefaultValue.apiCommunicationStatus = 0;
|
|
4108
4189
|
pointsDefaultValue.currentPackrunClearanceSummary = 0;
|
|
4109
4190
|
pointsDefaultValue.nextPackrunClearanceSummary = 0;
|
|
4191
|
+
pointsDefaultValue.currentPackrunMarketHolds = null;
|
|
4192
|
+
pointsDefaultValue.nextPackrunMarketHolds = null;
|
|
4193
|
+
pointsDefaultValue.apiVersion = 0;
|
|
4194
|
+
pointsDefaultValue.activePackrunName = 0;
|
|
4195
|
+
pointsDefaultValue.activeTimeBatch = 0;
|
|
4110
4196
|
return pointsDefaultValue;
|
|
4111
4197
|
}();
|
|
4112
4198
|
}
|
|
@@ -4381,6 +4467,30 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4381
4467
|
pointsObject.currentPackrunFutureStorageDefectsCount = 0;
|
|
4382
4468
|
}
|
|
4383
4469
|
|
|
4470
|
+
if (_typeof(jsonObject['freshQualityIntegration'].points) === 'object' && 'currentPackrunRejectAnalysisSamples' in jsonObject['freshQualityIntegration'].points) {
|
|
4471
|
+
pointsObject.currentPackrunRejectAnalysisSamples = function () {
|
|
4472
|
+
if (typeof jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples !== 'number') {
|
|
4473
|
+
return Number.isInteger(Number(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples)) ? Number(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples) : Math.floor(Number(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples));
|
|
4474
|
+
}
|
|
4475
|
+
|
|
4476
|
+
return Number.isInteger(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples) ? jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples : Math.floor(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples);
|
|
4477
|
+
}();
|
|
4478
|
+
} else {
|
|
4479
|
+
pointsObject.currentPackrunRejectAnalysisSamples = 0;
|
|
4480
|
+
}
|
|
4481
|
+
|
|
4482
|
+
if (_typeof(jsonObject['freshQualityIntegration'].points) === 'object' && 'sampleTypes' in jsonObject['freshQualityIntegration'].points) {
|
|
4483
|
+
pointsObject.sampleTypes = function () {
|
|
4484
|
+
if (typeof jsonObject['freshQualityIntegration'].points.sampleTypes !== 'number') {
|
|
4485
|
+
return Number.isInteger(Number(jsonObject['freshQualityIntegration'].points.sampleTypes)) ? Number(jsonObject['freshQualityIntegration'].points.sampleTypes) : Math.floor(Number(jsonObject['freshQualityIntegration'].points.sampleTypes));
|
|
4486
|
+
}
|
|
4487
|
+
|
|
4488
|
+
return Number.isInteger(jsonObject['freshQualityIntegration'].points.sampleTypes) ? jsonObject['freshQualityIntegration'].points.sampleTypes : Math.floor(jsonObject['freshQualityIntegration'].points.sampleTypes);
|
|
4489
|
+
}();
|
|
4490
|
+
} else {
|
|
4491
|
+
pointsObject.sampleTypes = 0;
|
|
4492
|
+
}
|
|
4493
|
+
|
|
4384
4494
|
return pointsObject;
|
|
4385
4495
|
}();
|
|
4386
4496
|
} else {
|
|
@@ -4396,6 +4506,8 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4396
4506
|
pointsDefaultValue.currentPackrunMinorPackingDefectsCount = 0;
|
|
4397
4507
|
pointsDefaultValue.currentPackrunTotalPackingDefectsCount = 0;
|
|
4398
4508
|
pointsDefaultValue.currentPackrunFutureStorageDefectsCount = 0;
|
|
4509
|
+
pointsDefaultValue.currentPackrunRejectAnalysisSamples = 0;
|
|
4510
|
+
pointsDefaultValue.sampleTypes = 0;
|
|
4399
4511
|
return pointsDefaultValue;
|
|
4400
4512
|
}();
|
|
4401
4513
|
}
|
|
@@ -4468,6 +4580,26 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4468
4580
|
freshQualityIntegrationObject.sampleTypeIds = [];
|
|
4469
4581
|
}
|
|
4470
4582
|
|
|
4583
|
+
if (_typeof(jsonObject['freshQualityIntegration']) === 'object' && 'rejectAnalysisSampleTypeIds' in jsonObject['freshQualityIntegration']) {
|
|
4584
|
+
freshQualityIntegrationObject.rejectAnalysisSampleTypeIds = function () {
|
|
4585
|
+
if (Array.isArray(jsonObject['freshQualityIntegration'].rejectAnalysisSampleTypeIds) !== true) {
|
|
4586
|
+
return [];
|
|
4587
|
+
}
|
|
4588
|
+
|
|
4589
|
+
return jsonObject['freshQualityIntegration'].rejectAnalysisSampleTypeIds.map(function (rejectAnalysisSampleTypeIdsItem) {
|
|
4590
|
+
return function () {
|
|
4591
|
+
if (typeof rejectAnalysisSampleTypeIdsItem !== 'number') {
|
|
4592
|
+
return Number.isInteger(Number(rejectAnalysisSampleTypeIdsItem)) ? Number(rejectAnalysisSampleTypeIdsItem) : Math.floor(Number(rejectAnalysisSampleTypeIdsItem));
|
|
4593
|
+
}
|
|
4594
|
+
|
|
4595
|
+
return Number.isInteger(rejectAnalysisSampleTypeIdsItem) ? rejectAnalysisSampleTypeIdsItem : Math.floor(rejectAnalysisSampleTypeIdsItem);
|
|
4596
|
+
}();
|
|
4597
|
+
});
|
|
4598
|
+
}();
|
|
4599
|
+
} else {
|
|
4600
|
+
freshQualityIntegrationObject.rejectAnalysisSampleTypeIds = [];
|
|
4601
|
+
}
|
|
4602
|
+
|
|
4471
4603
|
return freshQualityIntegrationObject;
|
|
4472
4604
|
}();
|
|
4473
4605
|
}
|
package/lib/PackageVersion.js
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -15575,7 +15575,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
|
|
|
15575
15575
|
/**
|
|
15576
15576
|
* The FreshQuality Integration Configuration for this Packing Line
|
|
15577
15577
|
*/
|
|
15578
|
-
freshQualityIntegration?:
|
|
15578
|
+
freshQualityIntegration?: FreshQualityIntegration | null;
|
|
15579
15579
|
};
|
|
15580
15580
|
/**
|
|
15581
15581
|
* The Update Data for a Packing Line
|
|
@@ -15672,7 +15672,7 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
|
|
|
15672
15672
|
/**
|
|
15673
15673
|
* The FreshQuality Integration Configuration for this Packing Line
|
|
15674
15674
|
*/
|
|
15675
|
-
freshQualityIntegration?:
|
|
15675
|
+
freshQualityIntegration?: FreshQualityIntegration | null;
|
|
15676
15676
|
};
|
|
15677
15677
|
/**
|
|
15678
15678
|
* A **SizerReference** Type
|
|
@@ -16640,6 +16640,59 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
|
|
|
16640
16640
|
* A **FreshPackIntegration** Type
|
|
16641
16641
|
*/
|
|
16642
16642
|
export type FreshPackIntegration = {
|
|
16643
|
+
/**
|
|
16644
|
+
* The Points used for this FreshPack Integration
|
|
16645
|
+
*/
|
|
16646
|
+
points: {
|
|
16647
|
+
graders: number;
|
|
16648
|
+
binTypes: number;
|
|
16649
|
+
printerGroups: number;
|
|
16650
|
+
materialGroups: number;
|
|
16651
|
+
rejectCategories: number;
|
|
16652
|
+
productionFacilities: number;
|
|
16653
|
+
marketHolds: number;
|
|
16654
|
+
apiCommunicationStatus: number;
|
|
16655
|
+
currentPackrunClearanceSummary: number;
|
|
16656
|
+
nextPackrunClearanceSummary: number;
|
|
16657
|
+
currentPackrunMarketHolds: number | null;
|
|
16658
|
+
nextPackrunMarketHolds: number | null;
|
|
16659
|
+
apiVersion: number;
|
|
16660
|
+
activePackrunName: number;
|
|
16661
|
+
activeTimeBatch: number;
|
|
16662
|
+
};
|
|
16663
|
+
/**
|
|
16664
|
+
* Whether the FreshPack Integration is Enabled on this Packing Line
|
|
16665
|
+
*/
|
|
16666
|
+
enabled: boolean;
|
|
16667
|
+
/**
|
|
16668
|
+
* An Array of FreshPack Grader IDs that relate to this Packing Line
|
|
16669
|
+
*/
|
|
16670
|
+
graderIds: number[];
|
|
16671
|
+
/**
|
|
16672
|
+
* Base URL of the FreshPack Web Portal API
|
|
16673
|
+
*/
|
|
16674
|
+
apiBaseUrl: string;
|
|
16675
|
+
/**
|
|
16676
|
+
* A Computer Name to use when Performing Actions on the FreshPack API
|
|
16677
|
+
*/
|
|
16678
|
+
computerName: string;
|
|
16679
|
+
/**
|
|
16680
|
+
* FreshPack Production Facility ID this Packing Line is associated with
|
|
16681
|
+
*/
|
|
16682
|
+
productionFacilityId: number;
|
|
16683
|
+
/**
|
|
16684
|
+
* An Array of FreshPack Reject Category IDs that relate to Class Types on this Packing Line
|
|
16685
|
+
*/
|
|
16686
|
+
classTypeRejectCategoryIds: ClassTypeRejectCategory[];
|
|
16687
|
+
/**
|
|
16688
|
+
* An Optional Array of Class Types that should be collected from FreshPack Tray Totals on this Packing Line
|
|
16689
|
+
*/
|
|
16690
|
+
packrunSourceTrayClassTypes?: string[] | null;
|
|
16691
|
+
};
|
|
16692
|
+
/**
|
|
16693
|
+
* A **FreshQualityIntegration** Type
|
|
16694
|
+
*/
|
|
16695
|
+
export type FreshQualityIntegration = {
|
|
16643
16696
|
/**
|
|
16644
16697
|
* The Points used for this FreshQuality Integration
|
|
16645
16698
|
*/
|
|
@@ -16654,6 +16707,8 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
|
|
|
16654
16707
|
currentPackrunMinorPackingDefectsCount: number;
|
|
16655
16708
|
currentPackrunTotalPackingDefectsCount: number;
|
|
16656
16709
|
currentPackrunFutureStorageDefectsCount: number;
|
|
16710
|
+
currentPackrunRejectAnalysisSamples: number;
|
|
16711
|
+
sampleTypes: number;
|
|
16657
16712
|
};
|
|
16658
16713
|
/**
|
|
16659
16714
|
* Whether the FreshQuality Integration is Enabled on this Packing Line
|
|
@@ -16675,6 +16730,10 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
|
|
|
16675
16730
|
* An Array of FreshQuality Sample Type IDs that are used for Class 1 R600 on this Packing Line
|
|
16676
16731
|
*/
|
|
16677
16732
|
sampleTypeIds: number[];
|
|
16733
|
+
/**
|
|
16734
|
+
* An Array of FreshQuality Sample Type IDs that are used for Reject Analysis on this Packing Line
|
|
16735
|
+
*/
|
|
16736
|
+
rejectAnalysisSampleTypeIds: number[];
|
|
16678
16737
|
};
|
|
16679
16738
|
}
|
|
16680
16739
|
import PackingLineModel from "@ricado/api-client/Models/Packhouse/Site/PackingLineModel";
|
|
@@ -26818,7 +26877,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
26818
26877
|
/**
|
|
26819
26878
|
* The FreshPack Integration Configuration for this Packing Line
|
|
26820
26879
|
*
|
|
26821
|
-
* @type {?{points: {graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number}, enabled: boolean, graderIds: number[], apiBaseUrl: string, computerName: string, productionFacilityId: number, classTypeRejectCategoryIds: Array<{classType: string, rejectCategoryId: number}>, packrunSourceTrayClassTypes: ?string[]}}
|
|
26880
|
+
* @type {?{points: {graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, marketHolds: number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number, currentPackrunMarketHolds: ?number, nextPackrunMarketHolds: ?number, apiVersion: number, activePackrunName: number, activeTimeBatch: number}, enabled: boolean, graderIds: number[], apiBaseUrl: string, computerName: string, productionFacilityId: number, classTypeRejectCategoryIds: Array<{classType: string, rejectCategoryId: number}>, packrunSourceTrayClassTypes: ?string[]}}
|
|
26822
26881
|
* @public
|
|
26823
26882
|
*/
|
|
26824
26883
|
freshPackIntegration: {
|
|
@@ -26829,9 +26888,15 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
26829
26888
|
materialGroups: number;
|
|
26830
26889
|
rejectCategories: number;
|
|
26831
26890
|
productionFacilities: number;
|
|
26891
|
+
marketHolds: number;
|
|
26832
26892
|
apiCommunicationStatus: number;
|
|
26833
26893
|
currentPackrunClearanceSummary: number;
|
|
26834
26894
|
nextPackrunClearanceSummary: number;
|
|
26895
|
+
currentPackrunMarketHolds: number | null;
|
|
26896
|
+
nextPackrunMarketHolds: number | null;
|
|
26897
|
+
apiVersion: number;
|
|
26898
|
+
activePackrunName: number;
|
|
26899
|
+
activeTimeBatch: number;
|
|
26835
26900
|
};
|
|
26836
26901
|
enabled: boolean;
|
|
26837
26902
|
graderIds: number[];
|
|
@@ -26847,7 +26912,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
26847
26912
|
/**
|
|
26848
26913
|
* The FreshQuality Integration Configuration for this Packing Line
|
|
26849
26914
|
*
|
|
26850
|
-
* @type {?{points: {currentPackrunSamples: number, apiCommunicationStatus: number, currentPackrunMajorPackingDefects: number, currentPackrunMinorPackingDefects: number, currentPackrunTotalPackingDefects: number, currentPackrunFutureStorageDefects: number, currentPackrunMajorPackingDefectsCount: number, currentPackrunMinorPackingDefectsCount: number, currentPackrunTotalPackingDefectsCount: number, currentPackrunFutureStorageDefectsCount: number}, enabled: boolean, username: string, password: string, apiBaseUrl: string, sampleTypeIds: number[]}}
|
|
26915
|
+
* @type {?{points: {currentPackrunSamples: number, apiCommunicationStatus: number, currentPackrunMajorPackingDefects: number, currentPackrunMinorPackingDefects: number, currentPackrunTotalPackingDefects: number, currentPackrunFutureStorageDefects: number, currentPackrunMajorPackingDefectsCount: number, currentPackrunMinorPackingDefectsCount: number, currentPackrunTotalPackingDefectsCount: number, currentPackrunFutureStorageDefectsCount: number, currentPackrunRejectAnalysisSamples: number, sampleTypes: number}, enabled: boolean, username: string, password: string, apiBaseUrl: string, sampleTypeIds: number[], rejectAnalysisSampleTypeIds: number[]}}
|
|
26851
26916
|
* @public
|
|
26852
26917
|
*/
|
|
26853
26918
|
freshQualityIntegration: {
|
|
@@ -26862,12 +26927,15 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
26862
26927
|
currentPackrunMinorPackingDefectsCount: number;
|
|
26863
26928
|
currentPackrunTotalPackingDefectsCount: number;
|
|
26864
26929
|
currentPackrunFutureStorageDefectsCount: number;
|
|
26930
|
+
currentPackrunRejectAnalysisSamples: number;
|
|
26931
|
+
sampleTypes: number;
|
|
26865
26932
|
};
|
|
26866
26933
|
enabled: boolean;
|
|
26867
26934
|
username: string;
|
|
26868
26935
|
password: string;
|
|
26869
26936
|
apiBaseUrl: string;
|
|
26870
26937
|
sampleTypeIds: number[];
|
|
26938
|
+
rejectAnalysisSampleTypeIds: number[];
|
|
26871
26939
|
} | null;
|
|
26872
26940
|
/**
|
|
26873
26941
|
* Whether the Packing Line has been deleted
|
package/package.json
CHANGED
|
@@ -171,7 +171,7 @@ export default PackingLineController;
|
|
|
171
171
|
* @property {?PackingLineController.AdvancedPackrunManagement} [advancedPackrunManagement] The Advanced Packrun Management Configuration for this Packing Line
|
|
172
172
|
* @property {?PackingLineController.MafIntegration} [mafIntegration] The MAF Integration Configuration for this Packing Line
|
|
173
173
|
* @property {?PackingLineController.FreshPackIntegration} [freshPackIntegration] The FreshPack Integration Configuration for this Packing Line
|
|
174
|
-
* @property {?PackingLineController.
|
|
174
|
+
* @property {?PackingLineController.FreshQualityIntegration} [freshQualityIntegration] The FreshQuality Integration Configuration for this Packing Line
|
|
175
175
|
* @memberof Controllers.Packhouse.Site
|
|
176
176
|
*/
|
|
177
177
|
|
|
@@ -193,7 +193,7 @@ export default PackingLineController;
|
|
|
193
193
|
* @property {?PackingLineController.AdvancedPackrunManagement} [advancedPackrunManagement] The Advanced Packrun Management Configuration for this Packing Line
|
|
194
194
|
* @property {?PackingLineController.MafIntegration} [mafIntegration] The MAF Integration Configuration for this Packing Line
|
|
195
195
|
* @property {?PackingLineController.FreshPackIntegration} [freshPackIntegration] The FreshPack Integration Configuration for this Packing Line
|
|
196
|
-
* @property {?PackingLineController.
|
|
196
|
+
* @property {?PackingLineController.FreshQualityIntegration} [freshQualityIntegration] The FreshQuality Integration Configuration for this Packing Line
|
|
197
197
|
* @memberof Controllers.Packhouse.Site
|
|
198
198
|
*/
|
|
199
199
|
|
|
@@ -629,11 +629,27 @@ export default PackingLineController;
|
|
|
629
629
|
* A **FreshPackIntegration** Type
|
|
630
630
|
*
|
|
631
631
|
* @typedef {Object} PackingLineController.FreshPackIntegration
|
|
632
|
-
* @property {{
|
|
632
|
+
* @property {{graders: number, binTypes: number, printerGroups: number, materialGroups: number, rejectCategories: number, productionFacilities: number, marketHolds: number, apiCommunicationStatus: number, currentPackrunClearanceSummary: number, nextPackrunClearanceSummary: number, currentPackrunMarketHolds: ?number, nextPackrunMarketHolds: ?number, apiVersion: number, activePackrunName: number, activeTimeBatch: number}} points The Points used for this FreshPack Integration
|
|
633
|
+
* @property {boolean} enabled Whether the FreshPack Integration is Enabled on this Packing Line
|
|
634
|
+
* @property {number[]} graderIds An Array of FreshPack Grader IDs that relate to this Packing Line
|
|
635
|
+
* @property {string} apiBaseUrl Base URL of the FreshPack Web Portal API
|
|
636
|
+
* @property {string} computerName A Computer Name to use when Performing Actions on the FreshPack API
|
|
637
|
+
* @property {number} productionFacilityId FreshPack Production Facility ID this Packing Line is associated with
|
|
638
|
+
* @property {Array<PackingLineController.ClassTypeRejectCategory>} classTypeRejectCategoryIds An Array of FreshPack Reject Category IDs that relate to Class Types on this Packing Line
|
|
639
|
+
* @property {?string[]} [packrunSourceTrayClassTypes] An Optional Array of Class Types that should be collected from FreshPack Tray Totals on this Packing Line
|
|
640
|
+
* @memberof Controllers.Packhouse.Site
|
|
641
|
+
*/
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* A **FreshQualityIntegration** Type
|
|
645
|
+
*
|
|
646
|
+
* @typedef {Object} PackingLineController.FreshQualityIntegration
|
|
647
|
+
* @property {{currentPackrunSamples: number, apiCommunicationStatus: number, currentPackrunMajorPackingDefects: number, currentPackrunMinorPackingDefects: number, currentPackrunTotalPackingDefects: number, currentPackrunFutureStorageDefects: number, currentPackrunMajorPackingDefectsCount: number, currentPackrunMinorPackingDefectsCount: number, currentPackrunTotalPackingDefectsCount: number, currentPackrunFutureStorageDefectsCount: number, currentPackrunRejectAnalysisSamples: number, sampleTypes: number}} points The Points used for this FreshQuality Integration
|
|
633
648
|
* @property {boolean} enabled Whether the FreshQuality Integration is Enabled on this Packing Line
|
|
634
649
|
* @property {string} username Username for Authenticating with the FreshQuality API
|
|
635
650
|
* @property {string} password Password for Authenticating with the FreshQuality API
|
|
636
651
|
* @property {string} apiBaseUrl Base URL of the FreshQuality API
|
|
637
652
|
* @property {number[]} sampleTypeIds An Array of FreshQuality Sample Type IDs that are used for Class 1 R600 on this Packing Line
|
|
653
|
+
* @property {number[]} rejectAnalysisSampleTypeIds An Array of FreshQuality Sample Type IDs that are used for Reject Analysis on this Packing Line
|
|
638
654
|
* @memberof Controllers.Packhouse.Site
|
|
639
655
|
*/
|