@ricado/api-client 2.7.8 → 2.7.9
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/RejectBinScaleController.js +2 -0
- package/lib/Controllers/UserAccountActionTokenController.js +15 -0
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +33 -1
- package/lib/Models/TokenModel.js +105 -0
- package/lib/Models/UserAccountActionTokenModel.js +210 -0
- package/lib/PackageVersion.js +1 -1
- package/lib/index.d.ts +87 -1
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +2 -0
- package/src/Controllers/UserAccountActionTokenController.js +15 -0
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +43 -1
- package/src/Models/TokenModel.js +136 -0
- package/src/Models/UserAccountActionTokenModel.js +272 -0
- package/src/PackageVersion.js +1 -1
|
@@ -274,6 +274,8 @@ var _default = RejectBinScaleController;
|
|
|
274
274
|
* @property {?number} printerGroupId The FreshPack Printer Group ID to be used when Printing Multi-Grower Bin Cards for this Reject Bin Scale
|
|
275
275
|
* @property {boolean} binCardPrintingEnabled Whether Bin Card Printing is Enabled
|
|
276
276
|
* @property {boolean} [useWindowsDriverApi] Whether Bin Card Printing should use the Specialized FreshPack Windows Driver API
|
|
277
|
+
* @property {?boolean} [forceSingleClassType] Whether the Net Weight should be used as a single Forced Class Type when creating Multi-Grower Bins and Weights
|
|
278
|
+
* @property {?string} [forcedClassType] The Forced Class Type of Net Weights when Enabled
|
|
277
279
|
* @memberof Controllers.Packhouse.Site
|
|
278
280
|
*/
|
|
279
281
|
|
|
@@ -433,6 +433,8 @@ var _default = UserAccountActionTokenController;
|
|
|
433
433
|
* @property {?Date} [activityTimestamp] When the last API call using this Action Token was made
|
|
434
434
|
* @property {?Date} [completedTimestamp] When the Action was Completed
|
|
435
435
|
* @property {?Date} [emailTimestamp] When the Action Email was Sent
|
|
436
|
+
* @property {UserAccountActionTokenController.RequestMetadata} [issueMetadata] Metadata from the Request that generated this Action Token
|
|
437
|
+
* @property {UserAccountActionTokenController.RequestMetadata} [consumeMetadata] Metadata from the Request that consumed this Action Token
|
|
436
438
|
* @memberof Controllers
|
|
437
439
|
*/
|
|
438
440
|
|
|
@@ -443,6 +445,19 @@ var _default = UserAccountActionTokenController;
|
|
|
443
445
|
* @property {?Date} [activityTimestamp] When the last API call using this Action Token was made
|
|
444
446
|
* @property {?Date} [completedTimestamp] When the Action was Completed
|
|
445
447
|
* @property {?Date} [emailTimestamp] When the Action Email was Sent
|
|
448
|
+
* @property {UserAccountActionTokenController.RequestMetadata} [consumeMetadata] Metadata from the Request that consumed this Action Token
|
|
449
|
+
* @memberof Controllers
|
|
450
|
+
*/
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* A **RequestMetadata** Type
|
|
454
|
+
*
|
|
455
|
+
* @typedef {Object} UserAccountActionTokenController.RequestMetadata
|
|
456
|
+
* @property {?string} ipAddress The IP Address of the Requester
|
|
457
|
+
* @property {?string} userAgent The User-Agent of the Requester
|
|
458
|
+
* @property {?string} cloudflareRayId The Cloudflare Ray ID from the Request
|
|
459
|
+
* @property {?string} host The Host header from the Request
|
|
460
|
+
* @property {?string} referrer The Referrer header from the Request
|
|
446
461
|
* @memberof Controllers
|
|
447
462
|
*/
|
|
448
463
|
|
|
@@ -264,7 +264,7 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
264
264
|
/**
|
|
265
265
|
* The FreshPack Integration Configuration for this Reject Bin Scale
|
|
266
266
|
*
|
|
267
|
-
* @type {?{points: Object, enabled: boolean, materialGroupId: ?number, binTypeId: number, printerGroupId: ?number, binCardPrintingEnabled: boolean, useWindowsDriverApi: boolean}}
|
|
267
|
+
* @type {?{points: Object, enabled: boolean, materialGroupId: ?number, binTypeId: number, printerGroupId: ?number, binCardPrintingEnabled: boolean, useWindowsDriverApi: boolean, forceSingleClassType: ?boolean, forcedClassType: ?string}}
|
|
268
268
|
* @public
|
|
269
269
|
*/
|
|
270
270
|
|
|
@@ -1226,6 +1226,38 @@ var RejectBinScaleModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
1226
1226
|
freshPackIntegrationObject.useWindowsDriverApi = false;
|
|
1227
1227
|
}
|
|
1228
1228
|
|
|
1229
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'forceSingleClassType' in jsonObject['freshPackIntegration']) {
|
|
1230
|
+
freshPackIntegrationObject.forceSingleClassType = function () {
|
|
1231
|
+
if (jsonObject['freshPackIntegration'].forceSingleClassType === null) {
|
|
1232
|
+
return null;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
if (typeof jsonObject['freshPackIntegration'].forceSingleClassType !== 'boolean') {
|
|
1236
|
+
return Boolean(jsonObject['freshPackIntegration'].forceSingleClassType);
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
return jsonObject['freshPackIntegration'].forceSingleClassType;
|
|
1240
|
+
}();
|
|
1241
|
+
} else {
|
|
1242
|
+
freshPackIntegrationObject.forceSingleClassType = null;
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
if (_typeof(jsonObject['freshPackIntegration']) === 'object' && 'forcedClassType' in jsonObject['freshPackIntegration']) {
|
|
1246
|
+
freshPackIntegrationObject.forcedClassType = function () {
|
|
1247
|
+
if (jsonObject['freshPackIntegration'].forcedClassType === null) {
|
|
1248
|
+
return null;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
if (typeof jsonObject['freshPackIntegration'].forcedClassType !== 'string') {
|
|
1252
|
+
return String(jsonObject['freshPackIntegration'].forcedClassType);
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
return jsonObject['freshPackIntegration'].forcedClassType;
|
|
1256
|
+
}();
|
|
1257
|
+
} else {
|
|
1258
|
+
freshPackIntegrationObject.forcedClassType = null;
|
|
1259
|
+
}
|
|
1260
|
+
|
|
1229
1261
|
return freshPackIntegrationObject;
|
|
1230
1262
|
}();
|
|
1231
1263
|
}
|
package/lib/Models/TokenModel.js
CHANGED
|
@@ -118,6 +118,22 @@ var TokenModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
118
118
|
*/
|
|
119
119
|
|
|
120
120
|
_this.lockTimestamp = null;
|
|
121
|
+
/**
|
|
122
|
+
* Metadata from the Request that generated this Token
|
|
123
|
+
*
|
|
124
|
+
* @type {{ipAddress: ?string, userAgent: ?string, cloudflareRayId: ?string, host: ?string, referrer: ?string}}
|
|
125
|
+
* @public
|
|
126
|
+
*/
|
|
127
|
+
|
|
128
|
+
_this.issueMetadata = function () {
|
|
129
|
+
var issueMetadataDefaultValue = {};
|
|
130
|
+
issueMetadataDefaultValue.ipAddress = null;
|
|
131
|
+
issueMetadataDefaultValue.userAgent = null;
|
|
132
|
+
issueMetadataDefaultValue.cloudflareRayId = null;
|
|
133
|
+
issueMetadataDefaultValue.host = null;
|
|
134
|
+
issueMetadataDefaultValue.referrer = null;
|
|
135
|
+
return issueMetadataDefaultValue;
|
|
136
|
+
}();
|
|
121
137
|
/**
|
|
122
138
|
* Whether the Token has been deleted
|
|
123
139
|
*
|
|
@@ -125,6 +141,7 @@ var TokenModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
125
141
|
* @public
|
|
126
142
|
*/
|
|
127
143
|
|
|
144
|
+
|
|
128
145
|
_this.deleted = false;
|
|
129
146
|
/**
|
|
130
147
|
* When the Token was last updated
|
|
@@ -256,6 +273,94 @@ var TokenModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
256
273
|
}();
|
|
257
274
|
}
|
|
258
275
|
|
|
276
|
+
if ('issueMetadata' in jsonObject) {
|
|
277
|
+
model.issueMetadata = function () {
|
|
278
|
+
var issueMetadataObject = {};
|
|
279
|
+
|
|
280
|
+
if (_typeof(jsonObject['issueMetadata']) === 'object' && 'ipAddress' in jsonObject['issueMetadata']) {
|
|
281
|
+
issueMetadataObject.ipAddress = function () {
|
|
282
|
+
if (jsonObject['issueMetadata'].ipAddress === null) {
|
|
283
|
+
return null;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
if (typeof jsonObject['issueMetadata'].ipAddress !== 'string') {
|
|
287
|
+
return String(jsonObject['issueMetadata'].ipAddress);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
return jsonObject['issueMetadata'].ipAddress;
|
|
291
|
+
}();
|
|
292
|
+
} else {
|
|
293
|
+
issueMetadataObject.ipAddress = null;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
if (_typeof(jsonObject['issueMetadata']) === 'object' && 'userAgent' in jsonObject['issueMetadata']) {
|
|
297
|
+
issueMetadataObject.userAgent = function () {
|
|
298
|
+
if (jsonObject['issueMetadata'].userAgent === null) {
|
|
299
|
+
return null;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
if (typeof jsonObject['issueMetadata'].userAgent !== 'string') {
|
|
303
|
+
return String(jsonObject['issueMetadata'].userAgent);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
return jsonObject['issueMetadata'].userAgent;
|
|
307
|
+
}();
|
|
308
|
+
} else {
|
|
309
|
+
issueMetadataObject.userAgent = null;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
if (_typeof(jsonObject['issueMetadata']) === 'object' && 'cloudflareRayId' in jsonObject['issueMetadata']) {
|
|
313
|
+
issueMetadataObject.cloudflareRayId = function () {
|
|
314
|
+
if (jsonObject['issueMetadata'].cloudflareRayId === null) {
|
|
315
|
+
return null;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
if (typeof jsonObject['issueMetadata'].cloudflareRayId !== 'string') {
|
|
319
|
+
return String(jsonObject['issueMetadata'].cloudflareRayId);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
return jsonObject['issueMetadata'].cloudflareRayId;
|
|
323
|
+
}();
|
|
324
|
+
} else {
|
|
325
|
+
issueMetadataObject.cloudflareRayId = null;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
if (_typeof(jsonObject['issueMetadata']) === 'object' && 'host' in jsonObject['issueMetadata']) {
|
|
329
|
+
issueMetadataObject.host = function () {
|
|
330
|
+
if (jsonObject['issueMetadata'].host === null) {
|
|
331
|
+
return null;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
if (typeof jsonObject['issueMetadata'].host !== 'string') {
|
|
335
|
+
return String(jsonObject['issueMetadata'].host);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
return jsonObject['issueMetadata'].host;
|
|
339
|
+
}();
|
|
340
|
+
} else {
|
|
341
|
+
issueMetadataObject.host = null;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
if (_typeof(jsonObject['issueMetadata']) === 'object' && 'referrer' in jsonObject['issueMetadata']) {
|
|
345
|
+
issueMetadataObject.referrer = function () {
|
|
346
|
+
if (jsonObject['issueMetadata'].referrer === null) {
|
|
347
|
+
return null;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
if (typeof jsonObject['issueMetadata'].referrer !== 'string') {
|
|
351
|
+
return String(jsonObject['issueMetadata'].referrer);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
return jsonObject['issueMetadata'].referrer;
|
|
355
|
+
}();
|
|
356
|
+
} else {
|
|
357
|
+
issueMetadataObject.referrer = null;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
return issueMetadataObject;
|
|
361
|
+
}();
|
|
362
|
+
}
|
|
363
|
+
|
|
259
364
|
if ('deleted' in jsonObject) {
|
|
260
365
|
model.deleted = function () {
|
|
261
366
|
if (typeof jsonObject['deleted'] !== 'boolean') {
|
|
@@ -126,6 +126,39 @@ var UserAccountActionTokenModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
126
126
|
*/
|
|
127
127
|
|
|
128
128
|
_this.emailTimestamp = null;
|
|
129
|
+
/**
|
|
130
|
+
* Metadata from the Request that generated this Action Token
|
|
131
|
+
*
|
|
132
|
+
* @type {{ipAddress: ?string, userAgent: ?string, cloudflareRayId: ?string, host: ?string, referrer: ?string}}
|
|
133
|
+
* @public
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
_this.issueMetadata = function () {
|
|
137
|
+
var issueMetadataDefaultValue = {};
|
|
138
|
+
issueMetadataDefaultValue.ipAddress = null;
|
|
139
|
+
issueMetadataDefaultValue.userAgent = null;
|
|
140
|
+
issueMetadataDefaultValue.cloudflareRayId = null;
|
|
141
|
+
issueMetadataDefaultValue.host = null;
|
|
142
|
+
issueMetadataDefaultValue.referrer = null;
|
|
143
|
+
return issueMetadataDefaultValue;
|
|
144
|
+
}();
|
|
145
|
+
/**
|
|
146
|
+
* Metadata from the Request that consumed this Action Token
|
|
147
|
+
*
|
|
148
|
+
* @type {{ipAddress: ?string, userAgent: ?string, cloudflareRayId: ?string, host: ?string, referrer: ?string}}
|
|
149
|
+
* @public
|
|
150
|
+
*/
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
_this.consumeMetadata = function () {
|
|
154
|
+
var consumeMetadataDefaultValue = {};
|
|
155
|
+
consumeMetadataDefaultValue.ipAddress = null;
|
|
156
|
+
consumeMetadataDefaultValue.userAgent = null;
|
|
157
|
+
consumeMetadataDefaultValue.cloudflareRayId = null;
|
|
158
|
+
consumeMetadataDefaultValue.host = null;
|
|
159
|
+
consumeMetadataDefaultValue.referrer = null;
|
|
160
|
+
return consumeMetadataDefaultValue;
|
|
161
|
+
}();
|
|
129
162
|
/**
|
|
130
163
|
* Whether the User Account Action Token has been deleted
|
|
131
164
|
*
|
|
@@ -133,6 +166,7 @@ var UserAccountActionTokenModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
133
166
|
* @public
|
|
134
167
|
*/
|
|
135
168
|
|
|
169
|
+
|
|
136
170
|
_this.deleted = false;
|
|
137
171
|
/**
|
|
138
172
|
* When the User Account Action Token was last updated
|
|
@@ -274,6 +308,182 @@ var UserAccountActionTokenModel = /*#__PURE__*/function (_BaseModel) {
|
|
|
274
308
|
}();
|
|
275
309
|
}
|
|
276
310
|
|
|
311
|
+
if ('issueMetadata' in jsonObject) {
|
|
312
|
+
model.issueMetadata = function () {
|
|
313
|
+
var issueMetadataObject = {};
|
|
314
|
+
|
|
315
|
+
if (_typeof(jsonObject['issueMetadata']) === 'object' && 'ipAddress' in jsonObject['issueMetadata']) {
|
|
316
|
+
issueMetadataObject.ipAddress = function () {
|
|
317
|
+
if (jsonObject['issueMetadata'].ipAddress === null) {
|
|
318
|
+
return null;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
if (typeof jsonObject['issueMetadata'].ipAddress !== 'string') {
|
|
322
|
+
return String(jsonObject['issueMetadata'].ipAddress);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
return jsonObject['issueMetadata'].ipAddress;
|
|
326
|
+
}();
|
|
327
|
+
} else {
|
|
328
|
+
issueMetadataObject.ipAddress = null;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
if (_typeof(jsonObject['issueMetadata']) === 'object' && 'userAgent' in jsonObject['issueMetadata']) {
|
|
332
|
+
issueMetadataObject.userAgent = function () {
|
|
333
|
+
if (jsonObject['issueMetadata'].userAgent === null) {
|
|
334
|
+
return null;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
if (typeof jsonObject['issueMetadata'].userAgent !== 'string') {
|
|
338
|
+
return String(jsonObject['issueMetadata'].userAgent);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
return jsonObject['issueMetadata'].userAgent;
|
|
342
|
+
}();
|
|
343
|
+
} else {
|
|
344
|
+
issueMetadataObject.userAgent = null;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
if (_typeof(jsonObject['issueMetadata']) === 'object' && 'cloudflareRayId' in jsonObject['issueMetadata']) {
|
|
348
|
+
issueMetadataObject.cloudflareRayId = function () {
|
|
349
|
+
if (jsonObject['issueMetadata'].cloudflareRayId === null) {
|
|
350
|
+
return null;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
if (typeof jsonObject['issueMetadata'].cloudflareRayId !== 'string') {
|
|
354
|
+
return String(jsonObject['issueMetadata'].cloudflareRayId);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
return jsonObject['issueMetadata'].cloudflareRayId;
|
|
358
|
+
}();
|
|
359
|
+
} else {
|
|
360
|
+
issueMetadataObject.cloudflareRayId = null;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
if (_typeof(jsonObject['issueMetadata']) === 'object' && 'host' in jsonObject['issueMetadata']) {
|
|
364
|
+
issueMetadataObject.host = function () {
|
|
365
|
+
if (jsonObject['issueMetadata'].host === null) {
|
|
366
|
+
return null;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
if (typeof jsonObject['issueMetadata'].host !== 'string') {
|
|
370
|
+
return String(jsonObject['issueMetadata'].host);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
return jsonObject['issueMetadata'].host;
|
|
374
|
+
}();
|
|
375
|
+
} else {
|
|
376
|
+
issueMetadataObject.host = null;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
if (_typeof(jsonObject['issueMetadata']) === 'object' && 'referrer' in jsonObject['issueMetadata']) {
|
|
380
|
+
issueMetadataObject.referrer = function () {
|
|
381
|
+
if (jsonObject['issueMetadata'].referrer === null) {
|
|
382
|
+
return null;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
if (typeof jsonObject['issueMetadata'].referrer !== 'string') {
|
|
386
|
+
return String(jsonObject['issueMetadata'].referrer);
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
return jsonObject['issueMetadata'].referrer;
|
|
390
|
+
}();
|
|
391
|
+
} else {
|
|
392
|
+
issueMetadataObject.referrer = null;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
return issueMetadataObject;
|
|
396
|
+
}();
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
if ('consumeMetadata' in jsonObject) {
|
|
400
|
+
model.consumeMetadata = function () {
|
|
401
|
+
var consumeMetadataObject = {};
|
|
402
|
+
|
|
403
|
+
if (_typeof(jsonObject['consumeMetadata']) === 'object' && 'ipAddress' in jsonObject['consumeMetadata']) {
|
|
404
|
+
consumeMetadataObject.ipAddress = function () {
|
|
405
|
+
if (jsonObject['consumeMetadata'].ipAddress === null) {
|
|
406
|
+
return null;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
if (typeof jsonObject['consumeMetadata'].ipAddress !== 'string') {
|
|
410
|
+
return String(jsonObject['consumeMetadata'].ipAddress);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
return jsonObject['consumeMetadata'].ipAddress;
|
|
414
|
+
}();
|
|
415
|
+
} else {
|
|
416
|
+
consumeMetadataObject.ipAddress = null;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
if (_typeof(jsonObject['consumeMetadata']) === 'object' && 'userAgent' in jsonObject['consumeMetadata']) {
|
|
420
|
+
consumeMetadataObject.userAgent = function () {
|
|
421
|
+
if (jsonObject['consumeMetadata'].userAgent === null) {
|
|
422
|
+
return null;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
if (typeof jsonObject['consumeMetadata'].userAgent !== 'string') {
|
|
426
|
+
return String(jsonObject['consumeMetadata'].userAgent);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
return jsonObject['consumeMetadata'].userAgent;
|
|
430
|
+
}();
|
|
431
|
+
} else {
|
|
432
|
+
consumeMetadataObject.userAgent = null;
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
if (_typeof(jsonObject['consumeMetadata']) === 'object' && 'cloudflareRayId' in jsonObject['consumeMetadata']) {
|
|
436
|
+
consumeMetadataObject.cloudflareRayId = function () {
|
|
437
|
+
if (jsonObject['consumeMetadata'].cloudflareRayId === null) {
|
|
438
|
+
return null;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
if (typeof jsonObject['consumeMetadata'].cloudflareRayId !== 'string') {
|
|
442
|
+
return String(jsonObject['consumeMetadata'].cloudflareRayId);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
return jsonObject['consumeMetadata'].cloudflareRayId;
|
|
446
|
+
}();
|
|
447
|
+
} else {
|
|
448
|
+
consumeMetadataObject.cloudflareRayId = null;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
if (_typeof(jsonObject['consumeMetadata']) === 'object' && 'host' in jsonObject['consumeMetadata']) {
|
|
452
|
+
consumeMetadataObject.host = function () {
|
|
453
|
+
if (jsonObject['consumeMetadata'].host === null) {
|
|
454
|
+
return null;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
if (typeof jsonObject['consumeMetadata'].host !== 'string') {
|
|
458
|
+
return String(jsonObject['consumeMetadata'].host);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
return jsonObject['consumeMetadata'].host;
|
|
462
|
+
}();
|
|
463
|
+
} else {
|
|
464
|
+
consumeMetadataObject.host = null;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
if (_typeof(jsonObject['consumeMetadata']) === 'object' && 'referrer' in jsonObject['consumeMetadata']) {
|
|
468
|
+
consumeMetadataObject.referrer = function () {
|
|
469
|
+
if (jsonObject['consumeMetadata'].referrer === null) {
|
|
470
|
+
return null;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
if (typeof jsonObject['consumeMetadata'].referrer !== 'string') {
|
|
474
|
+
return String(jsonObject['consumeMetadata'].referrer);
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
return jsonObject['consumeMetadata'].referrer;
|
|
478
|
+
}();
|
|
479
|
+
} else {
|
|
480
|
+
consumeMetadataObject.referrer = null;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
return consumeMetadataObject;
|
|
484
|
+
}();
|
|
485
|
+
}
|
|
486
|
+
|
|
277
487
|
if ('deleted' in jsonObject) {
|
|
278
488
|
model.deleted = function () {
|
|
279
489
|
if (typeof jsonObject['deleted'] !== 'boolean') {
|
package/lib/PackageVersion.js
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -1992,6 +1992,14 @@ declare module '@ricado/api-client/Controllers/UserAccountActionTokenController'
|
|
|
1992
1992
|
* When the Action Email was Sent
|
|
1993
1993
|
*/
|
|
1994
1994
|
emailTimestamp?: Date | null | undefined;
|
|
1995
|
+
/**
|
|
1996
|
+
* Metadata from the Request that generated this Action Token
|
|
1997
|
+
*/
|
|
1998
|
+
issueMetadata?: RequestMetadata | undefined;
|
|
1999
|
+
/**
|
|
2000
|
+
* Metadata from the Request that consumed this Action Token
|
|
2001
|
+
*/
|
|
2002
|
+
consumeMetadata?: RequestMetadata | undefined;
|
|
1995
2003
|
};
|
|
1996
2004
|
/**
|
|
1997
2005
|
* The Update Data for a User Account Action Token
|
|
@@ -2009,6 +2017,35 @@ declare module '@ricado/api-client/Controllers/UserAccountActionTokenController'
|
|
|
2009
2017
|
* When the Action Email was Sent
|
|
2010
2018
|
*/
|
|
2011
2019
|
emailTimestamp?: Date | null | undefined;
|
|
2020
|
+
/**
|
|
2021
|
+
* Metadata from the Request that consumed this Action Token
|
|
2022
|
+
*/
|
|
2023
|
+
consumeMetadata?: RequestMetadata | undefined;
|
|
2024
|
+
};
|
|
2025
|
+
/**
|
|
2026
|
+
* A **RequestMetadata** Type
|
|
2027
|
+
*/
|
|
2028
|
+
type RequestMetadata = {
|
|
2029
|
+
/**
|
|
2030
|
+
* The IP Address of the Requester
|
|
2031
|
+
*/
|
|
2032
|
+
ipAddress: string | null;
|
|
2033
|
+
/**
|
|
2034
|
+
* The User-Agent of the Requester
|
|
2035
|
+
*/
|
|
2036
|
+
userAgent: string | null;
|
|
2037
|
+
/**
|
|
2038
|
+
* The Cloudflare Ray ID from the Request
|
|
2039
|
+
*/
|
|
2040
|
+
cloudflareRayId: string | null;
|
|
2041
|
+
/**
|
|
2042
|
+
* The Host header from the Request
|
|
2043
|
+
*/
|
|
2044
|
+
host: string | null;
|
|
2045
|
+
/**
|
|
2046
|
+
* The Referrer header from the Request
|
|
2047
|
+
*/
|
|
2048
|
+
referrer: string | null;
|
|
2012
2049
|
};
|
|
2013
2050
|
}
|
|
2014
2051
|
import UserAccountActionTokenModel from "@ricado/api-client/Models/UserAccountActionTokenModel";
|
|
@@ -2955,6 +2992,19 @@ declare module '@ricado/api-client/Models/TokenModel' {
|
|
|
2955
2992
|
* @public
|
|
2956
2993
|
*/
|
|
2957
2994
|
lockTimestamp: Date | null;
|
|
2995
|
+
/**
|
|
2996
|
+
* Metadata from the Request that generated this Token
|
|
2997
|
+
*
|
|
2998
|
+
* @type {{ipAddress: ?string, userAgent: ?string, cloudflareRayId: ?string, host: ?string, referrer: ?string}}
|
|
2999
|
+
* @public
|
|
3000
|
+
*/
|
|
3001
|
+
issueMetadata: {
|
|
3002
|
+
ipAddress: string | null;
|
|
3003
|
+
userAgent: string | null;
|
|
3004
|
+
cloudflareRayId: string | null;
|
|
3005
|
+
host: string | null;
|
|
3006
|
+
referrer: string | null;
|
|
3007
|
+
};
|
|
2958
3008
|
/**
|
|
2959
3009
|
* Whether the Token has been deleted
|
|
2960
3010
|
*
|
|
@@ -3057,6 +3107,32 @@ declare module '@ricado/api-client/Models/UserAccountActionTokenModel' {
|
|
|
3057
3107
|
* @public
|
|
3058
3108
|
*/
|
|
3059
3109
|
emailTimestamp: Date | null;
|
|
3110
|
+
/**
|
|
3111
|
+
* Metadata from the Request that generated this Action Token
|
|
3112
|
+
*
|
|
3113
|
+
* @type {{ipAddress: ?string, userAgent: ?string, cloudflareRayId: ?string, host: ?string, referrer: ?string}}
|
|
3114
|
+
* @public
|
|
3115
|
+
*/
|
|
3116
|
+
issueMetadata: {
|
|
3117
|
+
ipAddress: string | null;
|
|
3118
|
+
userAgent: string | null;
|
|
3119
|
+
cloudflareRayId: string | null;
|
|
3120
|
+
host: string | null;
|
|
3121
|
+
referrer: string | null;
|
|
3122
|
+
};
|
|
3123
|
+
/**
|
|
3124
|
+
* Metadata from the Request that consumed this Action Token
|
|
3125
|
+
*
|
|
3126
|
+
* @type {{ipAddress: ?string, userAgent: ?string, cloudflareRayId: ?string, host: ?string, referrer: ?string}}
|
|
3127
|
+
* @public
|
|
3128
|
+
*/
|
|
3129
|
+
consumeMetadata: {
|
|
3130
|
+
ipAddress: string | null;
|
|
3131
|
+
userAgent: string | null;
|
|
3132
|
+
cloudflareRayId: string | null;
|
|
3133
|
+
host: string | null;
|
|
3134
|
+
referrer: string | null;
|
|
3135
|
+
};
|
|
3060
3136
|
/**
|
|
3061
3137
|
* Whether the User Account Action Token has been deleted
|
|
3062
3138
|
*
|
|
@@ -21028,6 +21104,14 @@ declare module '@ricado/api-client/Controllers/Packhouse/Site/RejectBinScaleCont
|
|
|
21028
21104
|
* Whether Bin Card Printing should use the Specialized FreshPack Windows Driver API
|
|
21029
21105
|
*/
|
|
21030
21106
|
useWindowsDriverApi?: boolean | undefined;
|
|
21107
|
+
/**
|
|
21108
|
+
* Whether the Net Weight should be used as a single Forced Class Type when creating Multi-Grower Bins and Weights
|
|
21109
|
+
*/
|
|
21110
|
+
forceSingleClassType?: boolean | null | undefined;
|
|
21111
|
+
/**
|
|
21112
|
+
* The Forced Class Type of Net Weights when Enabled
|
|
21113
|
+
*/
|
|
21114
|
+
forcedClassType?: string | null | undefined;
|
|
21031
21115
|
};
|
|
21032
21116
|
}
|
|
21033
21117
|
import RejectBinScaleModel from "@ricado/api-client/Models/Packhouse/Site/RejectBinScaleModel";
|
|
@@ -31596,7 +31680,7 @@ declare module '@ricado/api-client/Models/Packhouse/Site/RejectBinScaleModel' {
|
|
|
31596
31680
|
/**
|
|
31597
31681
|
* The FreshPack Integration Configuration for this Reject Bin Scale
|
|
31598
31682
|
*
|
|
31599
|
-
* @type {?{points: Object, enabled: boolean, materialGroupId: ?number, binTypeId: number, printerGroupId: ?number, binCardPrintingEnabled: boolean, useWindowsDriverApi: boolean}}
|
|
31683
|
+
* @type {?{points: Object, enabled: boolean, materialGroupId: ?number, binTypeId: number, printerGroupId: ?number, binCardPrintingEnabled: boolean, useWindowsDriverApi: boolean, forceSingleClassType: ?boolean, forcedClassType: ?string}}
|
|
31600
31684
|
* @public
|
|
31601
31685
|
*/
|
|
31602
31686
|
freshPackIntegration: {
|
|
@@ -31607,6 +31691,8 @@ declare module '@ricado/api-client/Models/Packhouse/Site/RejectBinScaleModel' {
|
|
|
31607
31691
|
printerGroupId: number | null;
|
|
31608
31692
|
binCardPrintingEnabled: boolean;
|
|
31609
31693
|
useWindowsDriverApi: boolean;
|
|
31694
|
+
forceSingleClassType: boolean | null;
|
|
31695
|
+
forcedClassType: string | null;
|
|
31610
31696
|
} | null;
|
|
31611
31697
|
/**
|
|
31612
31698
|
* Whether the Reject Bin Scale has been deleted
|
package/package.json
CHANGED
|
@@ -253,5 +253,7 @@ export default RejectBinScaleController;
|
|
|
253
253
|
* @property {?number} printerGroupId The FreshPack Printer Group ID to be used when Printing Multi-Grower Bin Cards for this Reject Bin Scale
|
|
254
254
|
* @property {boolean} binCardPrintingEnabled Whether Bin Card Printing is Enabled
|
|
255
255
|
* @property {boolean} [useWindowsDriverApi] Whether Bin Card Printing should use the Specialized FreshPack Windows Driver API
|
|
256
|
+
* @property {?boolean} [forceSingleClassType] Whether the Net Weight should be used as a single Forced Class Type when creating Multi-Grower Bins and Weights
|
|
257
|
+
* @property {?string} [forcedClassType] The Forced Class Type of Net Weights when Enabled
|
|
256
258
|
* @memberof Controllers.Packhouse.Site
|
|
257
259
|
*/
|
|
@@ -407,6 +407,8 @@ export default UserAccountActionTokenController;
|
|
|
407
407
|
* @property {?Date} [activityTimestamp] When the last API call using this Action Token was made
|
|
408
408
|
* @property {?Date} [completedTimestamp] When the Action was Completed
|
|
409
409
|
* @property {?Date} [emailTimestamp] When the Action Email was Sent
|
|
410
|
+
* @property {UserAccountActionTokenController.RequestMetadata} [issueMetadata] Metadata from the Request that generated this Action Token
|
|
411
|
+
* @property {UserAccountActionTokenController.RequestMetadata} [consumeMetadata] Metadata from the Request that consumed this Action Token
|
|
410
412
|
* @memberof Controllers
|
|
411
413
|
*/
|
|
412
414
|
|
|
@@ -417,5 +419,18 @@ export default UserAccountActionTokenController;
|
|
|
417
419
|
* @property {?Date} [activityTimestamp] When the last API call using this Action Token was made
|
|
418
420
|
* @property {?Date} [completedTimestamp] When the Action was Completed
|
|
419
421
|
* @property {?Date} [emailTimestamp] When the Action Email was Sent
|
|
422
|
+
* @property {UserAccountActionTokenController.RequestMetadata} [consumeMetadata] Metadata from the Request that consumed this Action Token
|
|
423
|
+
* @memberof Controllers
|
|
424
|
+
*/
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* A **RequestMetadata** Type
|
|
428
|
+
*
|
|
429
|
+
* @typedef {Object} UserAccountActionTokenController.RequestMetadata
|
|
430
|
+
* @property {?string} ipAddress The IP Address of the Requester
|
|
431
|
+
* @property {?string} userAgent The User-Agent of the Requester
|
|
432
|
+
* @property {?string} cloudflareRayId The Cloudflare Ray ID from the Request
|
|
433
|
+
* @property {?string} host The Host header from the Request
|
|
434
|
+
* @property {?string} referrer The Referrer header from the Request
|
|
420
435
|
* @memberof Controllers
|
|
421
436
|
*/
|