@ricado/api-client 2.5.6 → 2.5.7
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 +2 -2
- package/lib/Models/Packhouse/Site/PackingLineModel.js +32 -12
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +12 -12
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/PackingLineController.js +2 -2
- package/src/Models/Packhouse/Site/PackingLineModel.js +37 -12
- package/src/PackageVersion.js +1 -1
|
@@ -650,7 +650,7 @@ var _default = PackingLineController;
|
|
|
650
650
|
* A **FreshPackIntegration** Type
|
|
651
651
|
*
|
|
652
652
|
* @typedef {Object} PackingLineController.FreshPackIntegration
|
|
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
|
|
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
654
|
* @property {boolean} enabled Whether the FreshPack Integration is Enabled on this Packing Line
|
|
655
655
|
* @property {number[]} graderIds An Array of FreshPack Grader IDs that relate to this Packing Line
|
|
656
656
|
* @property {string} apiBaseUrl Base URL of the FreshPack Web Portal API
|
|
@@ -665,7 +665,7 @@ var _default = PackingLineController;
|
|
|
665
665
|
* A **FreshQualityIntegration** Type
|
|
666
666
|
*
|
|
667
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
|
|
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
|
|
669
669
|
* @property {boolean} enabled Whether the FreshQuality Integration is Enabled on this Packing Line
|
|
670
670
|
* @property {string} username Username for Authenticating with the FreshQuality API
|
|
671
671
|
* @property {string} password Password for Authenticating with the FreshQuality API
|
|
@@ -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, 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[]}}
|
|
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, currentPackrunRejectAnalysisSamples: number, sampleTypes: number}, enabled: boolean, username: string, password: string, apiBaseUrl: string, sampleTypeIds: number[], rejectAnalysisSampleTypeIds: 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
|
|
|
@@ -4139,6 +4139,10 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4139
4139
|
|
|
4140
4140
|
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'apiVersion' in jsonObject['freshPackIntegration'].points) {
|
|
4141
4141
|
pointsObject.apiVersion = function () {
|
|
4142
|
+
if (jsonObject['freshPackIntegration'].points.apiVersion === null) {
|
|
4143
|
+
return null;
|
|
4144
|
+
}
|
|
4145
|
+
|
|
4142
4146
|
if (typeof jsonObject['freshPackIntegration'].points.apiVersion !== 'number') {
|
|
4143
4147
|
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.apiVersion)) ? Number(jsonObject['freshPackIntegration'].points.apiVersion) : Math.floor(Number(jsonObject['freshPackIntegration'].points.apiVersion));
|
|
4144
4148
|
}
|
|
@@ -4146,11 +4150,15 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4146
4150
|
return Number.isInteger(jsonObject['freshPackIntegration'].points.apiVersion) ? jsonObject['freshPackIntegration'].points.apiVersion : Math.floor(jsonObject['freshPackIntegration'].points.apiVersion);
|
|
4147
4151
|
}();
|
|
4148
4152
|
} else {
|
|
4149
|
-
pointsObject.apiVersion =
|
|
4153
|
+
pointsObject.apiVersion = null;
|
|
4150
4154
|
}
|
|
4151
4155
|
|
|
4152
4156
|
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'activePackrunName' in jsonObject['freshPackIntegration'].points) {
|
|
4153
4157
|
pointsObject.activePackrunName = function () {
|
|
4158
|
+
if (jsonObject['freshPackIntegration'].points.activePackrunName === null) {
|
|
4159
|
+
return null;
|
|
4160
|
+
}
|
|
4161
|
+
|
|
4154
4162
|
if (typeof jsonObject['freshPackIntegration'].points.activePackrunName !== 'number') {
|
|
4155
4163
|
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.activePackrunName)) ? Number(jsonObject['freshPackIntegration'].points.activePackrunName) : Math.floor(Number(jsonObject['freshPackIntegration'].points.activePackrunName));
|
|
4156
4164
|
}
|
|
@@ -4158,11 +4166,15 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4158
4166
|
return Number.isInteger(jsonObject['freshPackIntegration'].points.activePackrunName) ? jsonObject['freshPackIntegration'].points.activePackrunName : Math.floor(jsonObject['freshPackIntegration'].points.activePackrunName);
|
|
4159
4167
|
}();
|
|
4160
4168
|
} else {
|
|
4161
|
-
pointsObject.activePackrunName =
|
|
4169
|
+
pointsObject.activePackrunName = null;
|
|
4162
4170
|
}
|
|
4163
4171
|
|
|
4164
4172
|
if (_typeof(jsonObject['freshPackIntegration'].points) === 'object' && 'activeTimeBatch' in jsonObject['freshPackIntegration'].points) {
|
|
4165
4173
|
pointsObject.activeTimeBatch = function () {
|
|
4174
|
+
if (jsonObject['freshPackIntegration'].points.activeTimeBatch === null) {
|
|
4175
|
+
return null;
|
|
4176
|
+
}
|
|
4177
|
+
|
|
4166
4178
|
if (typeof jsonObject['freshPackIntegration'].points.activeTimeBatch !== 'number') {
|
|
4167
4179
|
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.activeTimeBatch)) ? Number(jsonObject['freshPackIntegration'].points.activeTimeBatch) : Math.floor(Number(jsonObject['freshPackIntegration'].points.activeTimeBatch));
|
|
4168
4180
|
}
|
|
@@ -4170,7 +4182,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4170
4182
|
return Number.isInteger(jsonObject['freshPackIntegration'].points.activeTimeBatch) ? jsonObject['freshPackIntegration'].points.activeTimeBatch : Math.floor(jsonObject['freshPackIntegration'].points.activeTimeBatch);
|
|
4171
4183
|
}();
|
|
4172
4184
|
} else {
|
|
4173
|
-
pointsObject.activeTimeBatch =
|
|
4185
|
+
pointsObject.activeTimeBatch = null;
|
|
4174
4186
|
}
|
|
4175
4187
|
|
|
4176
4188
|
return pointsObject;
|
|
@@ -4190,9 +4202,9 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4190
4202
|
pointsDefaultValue.nextPackrunClearanceSummary = 0;
|
|
4191
4203
|
pointsDefaultValue.currentPackrunMarketHolds = null;
|
|
4192
4204
|
pointsDefaultValue.nextPackrunMarketHolds = null;
|
|
4193
|
-
pointsDefaultValue.apiVersion =
|
|
4194
|
-
pointsDefaultValue.activePackrunName =
|
|
4195
|
-
pointsDefaultValue.activeTimeBatch =
|
|
4205
|
+
pointsDefaultValue.apiVersion = null;
|
|
4206
|
+
pointsDefaultValue.activePackrunName = null;
|
|
4207
|
+
pointsDefaultValue.activeTimeBatch = null;
|
|
4196
4208
|
return pointsDefaultValue;
|
|
4197
4209
|
}();
|
|
4198
4210
|
}
|
|
@@ -4469,6 +4481,10 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4469
4481
|
|
|
4470
4482
|
if (_typeof(jsonObject['freshQualityIntegration'].points) === 'object' && 'currentPackrunRejectAnalysisSamples' in jsonObject['freshQualityIntegration'].points) {
|
|
4471
4483
|
pointsObject.currentPackrunRejectAnalysisSamples = function () {
|
|
4484
|
+
if (jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples === null) {
|
|
4485
|
+
return null;
|
|
4486
|
+
}
|
|
4487
|
+
|
|
4472
4488
|
if (typeof jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples !== 'number') {
|
|
4473
4489
|
return Number.isInteger(Number(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples)) ? Number(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples) : Math.floor(Number(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples));
|
|
4474
4490
|
}
|
|
@@ -4476,11 +4492,15 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4476
4492
|
return Number.isInteger(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples) ? jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples : Math.floor(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples);
|
|
4477
4493
|
}();
|
|
4478
4494
|
} else {
|
|
4479
|
-
pointsObject.currentPackrunRejectAnalysisSamples =
|
|
4495
|
+
pointsObject.currentPackrunRejectAnalysisSamples = null;
|
|
4480
4496
|
}
|
|
4481
4497
|
|
|
4482
4498
|
if (_typeof(jsonObject['freshQualityIntegration'].points) === 'object' && 'sampleTypes' in jsonObject['freshQualityIntegration'].points) {
|
|
4483
4499
|
pointsObject.sampleTypes = function () {
|
|
4500
|
+
if (jsonObject['freshQualityIntegration'].points.sampleTypes === null) {
|
|
4501
|
+
return null;
|
|
4502
|
+
}
|
|
4503
|
+
|
|
4484
4504
|
if (typeof jsonObject['freshQualityIntegration'].points.sampleTypes !== 'number') {
|
|
4485
4505
|
return Number.isInteger(Number(jsonObject['freshQualityIntegration'].points.sampleTypes)) ? Number(jsonObject['freshQualityIntegration'].points.sampleTypes) : Math.floor(Number(jsonObject['freshQualityIntegration'].points.sampleTypes));
|
|
4486
4506
|
}
|
|
@@ -4488,7 +4508,7 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4488
4508
|
return Number.isInteger(jsonObject['freshQualityIntegration'].points.sampleTypes) ? jsonObject['freshQualityIntegration'].points.sampleTypes : Math.floor(jsonObject['freshQualityIntegration'].points.sampleTypes);
|
|
4489
4509
|
}();
|
|
4490
4510
|
} else {
|
|
4491
|
-
pointsObject.sampleTypes =
|
|
4511
|
+
pointsObject.sampleTypes = null;
|
|
4492
4512
|
}
|
|
4493
4513
|
|
|
4494
4514
|
return pointsObject;
|
|
@@ -4506,8 +4526,8 @@ var PackingLineModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
4506
4526
|
pointsDefaultValue.currentPackrunMinorPackingDefectsCount = 0;
|
|
4507
4527
|
pointsDefaultValue.currentPackrunTotalPackingDefectsCount = 0;
|
|
4508
4528
|
pointsDefaultValue.currentPackrunFutureStorageDefectsCount = 0;
|
|
4509
|
-
pointsDefaultValue.currentPackrunRejectAnalysisSamples =
|
|
4510
|
-
pointsDefaultValue.sampleTypes =
|
|
4529
|
+
pointsDefaultValue.currentPackrunRejectAnalysisSamples = null;
|
|
4530
|
+
pointsDefaultValue.sampleTypes = null;
|
|
4511
4531
|
return pointsDefaultValue;
|
|
4512
4532
|
}();
|
|
4513
4533
|
}
|
package/lib/PackageVersion.js
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -16656,9 +16656,9 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
|
|
|
16656
16656
|
nextPackrunClearanceSummary: number;
|
|
16657
16657
|
currentPackrunMarketHolds: number | null;
|
|
16658
16658
|
nextPackrunMarketHolds: number | null;
|
|
16659
|
-
apiVersion: number;
|
|
16660
|
-
activePackrunName: number;
|
|
16661
|
-
activeTimeBatch: number;
|
|
16659
|
+
apiVersion: number | null;
|
|
16660
|
+
activePackrunName: number | null;
|
|
16661
|
+
activeTimeBatch: number | null;
|
|
16662
16662
|
};
|
|
16663
16663
|
/**
|
|
16664
16664
|
* Whether the FreshPack Integration is Enabled on this Packing Line
|
|
@@ -16707,8 +16707,8 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/PackingLineControl
|
|
|
16707
16707
|
currentPackrunMinorPackingDefectsCount: number;
|
|
16708
16708
|
currentPackrunTotalPackingDefectsCount: number;
|
|
16709
16709
|
currentPackrunFutureStorageDefectsCount: number;
|
|
16710
|
-
currentPackrunRejectAnalysisSamples: number;
|
|
16711
|
-
sampleTypes: number;
|
|
16710
|
+
currentPackrunRejectAnalysisSamples: number | null;
|
|
16711
|
+
sampleTypes: number | null;
|
|
16712
16712
|
};
|
|
16713
16713
|
/**
|
|
16714
16714
|
* Whether the FreshQuality Integration is Enabled on this Packing Line
|
|
@@ -26877,7 +26877,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
26877
26877
|
/**
|
|
26878
26878
|
* The FreshPack Integration Configuration for this Packing Line
|
|
26879
26879
|
*
|
|
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[]}}
|
|
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[]}}
|
|
26881
26881
|
* @public
|
|
26882
26882
|
*/
|
|
26883
26883
|
freshPackIntegration: {
|
|
@@ -26894,9 +26894,9 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
26894
26894
|
nextPackrunClearanceSummary: number;
|
|
26895
26895
|
currentPackrunMarketHolds: number | null;
|
|
26896
26896
|
nextPackrunMarketHolds: number | null;
|
|
26897
|
-
apiVersion: number;
|
|
26898
|
-
activePackrunName: number;
|
|
26899
|
-
activeTimeBatch: number;
|
|
26897
|
+
apiVersion: number | null;
|
|
26898
|
+
activePackrunName: number | null;
|
|
26899
|
+
activeTimeBatch: number | null;
|
|
26900
26900
|
};
|
|
26901
26901
|
enabled: boolean;
|
|
26902
26902
|
graderIds: number[];
|
|
@@ -26912,7 +26912,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
26912
26912
|
/**
|
|
26913
26913
|
* The FreshQuality Integration Configuration for this Packing Line
|
|
26914
26914
|
*
|
|
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[]}}
|
|
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[]}}
|
|
26916
26916
|
* @public
|
|
26917
26917
|
*/
|
|
26918
26918
|
freshQualityIntegration: {
|
|
@@ -26927,8 +26927,8 @@ declare module '@ricado/api-client/Models/Packhouse/Site/PackingLineModel' {
|
|
|
26927
26927
|
currentPackrunMinorPackingDefectsCount: number;
|
|
26928
26928
|
currentPackrunTotalPackingDefectsCount: number;
|
|
26929
26929
|
currentPackrunFutureStorageDefectsCount: number;
|
|
26930
|
-
currentPackrunRejectAnalysisSamples: number;
|
|
26931
|
-
sampleTypes: number;
|
|
26930
|
+
currentPackrunRejectAnalysisSamples: number | null;
|
|
26931
|
+
sampleTypes: number | null;
|
|
26932
26932
|
};
|
|
26933
26933
|
enabled: boolean;
|
|
26934
26934
|
username: string;
|
package/package.json
CHANGED
|
@@ -629,7 +629,7 @@ export default PackingLineController;
|
|
|
629
629
|
* A **FreshPackIntegration** Type
|
|
630
630
|
*
|
|
631
631
|
* @typedef {Object} PackingLineController.FreshPackIntegration
|
|
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
|
|
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
633
|
* @property {boolean} enabled Whether the FreshPack Integration is Enabled on this Packing Line
|
|
634
634
|
* @property {number[]} graderIds An Array of FreshPack Grader IDs that relate to this Packing Line
|
|
635
635
|
* @property {string} apiBaseUrl Base URL of the FreshPack Web Portal API
|
|
@@ -644,7 +644,7 @@ export default PackingLineController;
|
|
|
644
644
|
* A **FreshQualityIntegration** Type
|
|
645
645
|
*
|
|
646
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
|
|
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
|
|
648
648
|
* @property {boolean} enabled Whether the FreshQuality Integration is Enabled on this Packing Line
|
|
649
649
|
* @property {string} username Username for Authenticating with the FreshQuality API
|
|
650
650
|
* @property {string} password Password for Authenticating with the FreshQuality API
|
|
@@ -214,7 +214,7 @@ class PackingLineModel extends BaseModel
|
|
|
214
214
|
/**
|
|
215
215
|
* The FreshPack Integration Configuration for this Packing Line
|
|
216
216
|
*
|
|
217
|
-
* @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
|
+
* @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[]}}
|
|
218
218
|
* @public
|
|
219
219
|
*/
|
|
220
220
|
this.freshPackIntegration = null;
|
|
@@ -222,7 +222,7 @@ class PackingLineModel extends BaseModel
|
|
|
222
222
|
/**
|
|
223
223
|
* The FreshQuality Integration Configuration for this Packing Line
|
|
224
224
|
*
|
|
225
|
-
* @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
|
+
* @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[]}}
|
|
226
226
|
* @public
|
|
227
227
|
*/
|
|
228
228
|
this.freshQualityIntegration = null;
|
|
@@ -5396,6 +5396,11 @@ class PackingLineModel extends BaseModel
|
|
|
5396
5396
|
if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'apiVersion' in jsonObject['freshPackIntegration'].points)
|
|
5397
5397
|
{
|
|
5398
5398
|
pointsObject.apiVersion = (function(){
|
|
5399
|
+
if(jsonObject['freshPackIntegration'].points.apiVersion === null)
|
|
5400
|
+
{
|
|
5401
|
+
return null;
|
|
5402
|
+
}
|
|
5403
|
+
|
|
5399
5404
|
if(typeof jsonObject['freshPackIntegration'].points.apiVersion !== 'number')
|
|
5400
5405
|
{
|
|
5401
5406
|
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.apiVersion)) ? Number(jsonObject['freshPackIntegration'].points.apiVersion) : Math.floor(Number(jsonObject['freshPackIntegration'].points.apiVersion));
|
|
@@ -5406,12 +5411,17 @@ class PackingLineModel extends BaseModel
|
|
|
5406
5411
|
}
|
|
5407
5412
|
else
|
|
5408
5413
|
{
|
|
5409
|
-
pointsObject.apiVersion =
|
|
5414
|
+
pointsObject.apiVersion = null;
|
|
5410
5415
|
}
|
|
5411
5416
|
|
|
5412
5417
|
if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'activePackrunName' in jsonObject['freshPackIntegration'].points)
|
|
5413
5418
|
{
|
|
5414
5419
|
pointsObject.activePackrunName = (function(){
|
|
5420
|
+
if(jsonObject['freshPackIntegration'].points.activePackrunName === null)
|
|
5421
|
+
{
|
|
5422
|
+
return null;
|
|
5423
|
+
}
|
|
5424
|
+
|
|
5415
5425
|
if(typeof jsonObject['freshPackIntegration'].points.activePackrunName !== 'number')
|
|
5416
5426
|
{
|
|
5417
5427
|
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.activePackrunName)) ? Number(jsonObject['freshPackIntegration'].points.activePackrunName) : Math.floor(Number(jsonObject['freshPackIntegration'].points.activePackrunName));
|
|
@@ -5422,12 +5432,17 @@ class PackingLineModel extends BaseModel
|
|
|
5422
5432
|
}
|
|
5423
5433
|
else
|
|
5424
5434
|
{
|
|
5425
|
-
pointsObject.activePackrunName =
|
|
5435
|
+
pointsObject.activePackrunName = null;
|
|
5426
5436
|
}
|
|
5427
5437
|
|
|
5428
5438
|
if(typeof jsonObject['freshPackIntegration'].points === 'object' && 'activeTimeBatch' in jsonObject['freshPackIntegration'].points)
|
|
5429
5439
|
{
|
|
5430
5440
|
pointsObject.activeTimeBatch = (function(){
|
|
5441
|
+
if(jsonObject['freshPackIntegration'].points.activeTimeBatch === null)
|
|
5442
|
+
{
|
|
5443
|
+
return null;
|
|
5444
|
+
}
|
|
5445
|
+
|
|
5431
5446
|
if(typeof jsonObject['freshPackIntegration'].points.activeTimeBatch !== 'number')
|
|
5432
5447
|
{
|
|
5433
5448
|
return Number.isInteger(Number(jsonObject['freshPackIntegration'].points.activeTimeBatch)) ? Number(jsonObject['freshPackIntegration'].points.activeTimeBatch) : Math.floor(Number(jsonObject['freshPackIntegration'].points.activeTimeBatch));
|
|
@@ -5438,7 +5453,7 @@ class PackingLineModel extends BaseModel
|
|
|
5438
5453
|
}
|
|
5439
5454
|
else
|
|
5440
5455
|
{
|
|
5441
|
-
pointsObject.activeTimeBatch =
|
|
5456
|
+
pointsObject.activeTimeBatch = null;
|
|
5442
5457
|
}
|
|
5443
5458
|
|
|
5444
5459
|
return pointsObject;
|
|
@@ -5473,11 +5488,11 @@ class PackingLineModel extends BaseModel
|
|
|
5473
5488
|
|
|
5474
5489
|
pointsDefaultValue.nextPackrunMarketHolds = null;
|
|
5475
5490
|
|
|
5476
|
-
pointsDefaultValue.apiVersion =
|
|
5491
|
+
pointsDefaultValue.apiVersion = null;
|
|
5477
5492
|
|
|
5478
|
-
pointsDefaultValue.activePackrunName =
|
|
5493
|
+
pointsDefaultValue.activePackrunName = null;
|
|
5479
5494
|
|
|
5480
|
-
pointsDefaultValue.activeTimeBatch =
|
|
5495
|
+
pointsDefaultValue.activeTimeBatch = null;
|
|
5481
5496
|
|
|
5482
5497
|
return pointsDefaultValue;
|
|
5483
5498
|
}());
|
|
@@ -5838,6 +5853,11 @@ class PackingLineModel extends BaseModel
|
|
|
5838
5853
|
if(typeof jsonObject['freshQualityIntegration'].points === 'object' && 'currentPackrunRejectAnalysisSamples' in jsonObject['freshQualityIntegration'].points)
|
|
5839
5854
|
{
|
|
5840
5855
|
pointsObject.currentPackrunRejectAnalysisSamples = (function(){
|
|
5856
|
+
if(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples === null)
|
|
5857
|
+
{
|
|
5858
|
+
return null;
|
|
5859
|
+
}
|
|
5860
|
+
|
|
5841
5861
|
if(typeof jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples !== 'number')
|
|
5842
5862
|
{
|
|
5843
5863
|
return Number.isInteger(Number(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples)) ? Number(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples) : Math.floor(Number(jsonObject['freshQualityIntegration'].points.currentPackrunRejectAnalysisSamples));
|
|
@@ -5848,12 +5868,17 @@ class PackingLineModel extends BaseModel
|
|
|
5848
5868
|
}
|
|
5849
5869
|
else
|
|
5850
5870
|
{
|
|
5851
|
-
pointsObject.currentPackrunRejectAnalysisSamples =
|
|
5871
|
+
pointsObject.currentPackrunRejectAnalysisSamples = null;
|
|
5852
5872
|
}
|
|
5853
5873
|
|
|
5854
5874
|
if(typeof jsonObject['freshQualityIntegration'].points === 'object' && 'sampleTypes' in jsonObject['freshQualityIntegration'].points)
|
|
5855
5875
|
{
|
|
5856
5876
|
pointsObject.sampleTypes = (function(){
|
|
5877
|
+
if(jsonObject['freshQualityIntegration'].points.sampleTypes === null)
|
|
5878
|
+
{
|
|
5879
|
+
return null;
|
|
5880
|
+
}
|
|
5881
|
+
|
|
5857
5882
|
if(typeof jsonObject['freshQualityIntegration'].points.sampleTypes !== 'number')
|
|
5858
5883
|
{
|
|
5859
5884
|
return Number.isInteger(Number(jsonObject['freshQualityIntegration'].points.sampleTypes)) ? Number(jsonObject['freshQualityIntegration'].points.sampleTypes) : Math.floor(Number(jsonObject['freshQualityIntegration'].points.sampleTypes));
|
|
@@ -5864,7 +5889,7 @@ class PackingLineModel extends BaseModel
|
|
|
5864
5889
|
}
|
|
5865
5890
|
else
|
|
5866
5891
|
{
|
|
5867
|
-
pointsObject.sampleTypes =
|
|
5892
|
+
pointsObject.sampleTypes = null;
|
|
5868
5893
|
}
|
|
5869
5894
|
|
|
5870
5895
|
return pointsObject;
|
|
@@ -5895,9 +5920,9 @@ class PackingLineModel extends BaseModel
|
|
|
5895
5920
|
|
|
5896
5921
|
pointsDefaultValue.currentPackrunFutureStorageDefectsCount = 0;
|
|
5897
5922
|
|
|
5898
|
-
pointsDefaultValue.currentPackrunRejectAnalysisSamples =
|
|
5923
|
+
pointsDefaultValue.currentPackrunRejectAnalysisSamples = null;
|
|
5899
5924
|
|
|
5900
|
-
pointsDefaultValue.sampleTypes =
|
|
5925
|
+
pointsDefaultValue.sampleTypes = null;
|
|
5901
5926
|
|
|
5902
5927
|
return pointsDefaultValue;
|
|
5903
5928
|
}());
|
package/src/PackageVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '2.5.
|
|
2
|
+
export const version = '2.5.7';
|