@ricado/api-client 2.7.7 → 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/PackingLineController.js +14 -3
- package/lib/Controllers/Packhouse/Site/PackrunGrowerNotificationController.js +940 -0
- package/lib/Controllers/Packhouse/Site/RejectBinScaleController.js +2 -0
- package/lib/Controllers/Packhouse/Site/index.js +3 -0
- package/lib/Controllers/UserAccountActionTokenController.js +15 -0
- package/lib/Models/Packhouse/Site/PackingLineModel.js +283 -2
- package/lib/Models/Packhouse/Site/PackrunGrowerNotificationModel.js +669 -0
- package/lib/Models/Packhouse/Site/RejectBinScaleModel.js +33 -1
- package/lib/Models/Packhouse/Site/index.js +3 -0
- 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 +707 -3
- package/package.json +1 -1
- package/src/Controllers/Packhouse/Site/PackingLineController.js +14 -3
- package/src/Controllers/Packhouse/Site/PackrunGrowerNotificationController.js +1071 -0
- package/src/Controllers/Packhouse/Site/RejectBinScaleController.js +2 -0
- package/src/Controllers/Packhouse/Site/index.js +2 -0
- package/src/Controllers/UserAccountActionTokenController.js +15 -0
- package/src/Models/Packhouse/Site/PackingLineModel.js +380 -2
- package/src/Models/Packhouse/Site/PackrunGrowerNotificationModel.js +763 -0
- package/src/Models/Packhouse/Site/RejectBinScaleModel.js +43 -1
- package/src/Models/Packhouse/Site/index.js +2 -0
- package/src/Models/TokenModel.js +136 -0
- package/src/Models/UserAccountActionTokenModel.js +272 -0
- package/src/PackageVersion.js +1 -1
|
@@ -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
|
}
|
|
@@ -53,6 +53,8 @@ var _PackTypeModel = _interopRequireDefault(require("./PackTypeModel"));
|
|
|
53
53
|
|
|
54
54
|
var _PackingLineModel = _interopRequireDefault(require("./PackingLineModel"));
|
|
55
55
|
|
|
56
|
+
var _PackrunGrowerNotificationModel = _interopRequireDefault(require("./PackrunGrowerNotificationModel"));
|
|
57
|
+
|
|
56
58
|
var _PackrunModel = _interopRequireDefault(require("./PackrunModel"));
|
|
57
59
|
|
|
58
60
|
var _PrePackSampleModel = _interopRequireDefault(require("./PrePackSampleModel"));
|
|
@@ -127,6 +129,7 @@ var Site = {
|
|
|
127
129
|
MAFSizerPackrunSummaryModel: _MAFSizerPackrunSummaryModel.default,
|
|
128
130
|
PackTypeModel: _PackTypeModel.default,
|
|
129
131
|
PackingLineModel: _PackingLineModel.default,
|
|
132
|
+
PackrunGrowerNotificationModel: _PackrunGrowerNotificationModel.default,
|
|
130
133
|
PackrunModel: _PackrunModel.default,
|
|
131
134
|
PrePackSampleModel: _PrePackSampleModel.default,
|
|
132
135
|
ReemoonSizerBatchModel: _ReemoonSizerBatchModel.default,
|
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