contentful-management 9.1.1 → 9.2.1
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/contentful-management.browser.js +538 -400
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.legacy.js +538 -400
- package/dist/contentful-management.legacy.js.map +1 -1
- package/dist/contentful-management.legacy.min.js +1 -1
- package/dist/contentful-management.node.js +482 -371
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/adapters/REST/endpoints/release.js +14 -1
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/create-environment-api.js +80 -6
- package/dist/es-modules/entities/app-action.js +6 -4
- package/dist/es-modules/entities/release.js +81 -29
- package/dist/es-modules/plain/plain-client.js +2 -0
- package/dist/typings/adapters/REST/endpoints/release.d.ts +2 -0
- package/dist/typings/common-types.d.ts +14 -0
- package/dist/typings/create-environment-api.d.ts +46 -0
- package/dist/typings/entities/app-action-call.d.ts +1 -5
- package/dist/typings/entities/app-action.d.ts +11 -14
- package/dist/typings/entities/release.d.ts +14 -0
- package/dist/typings/export-types.d.ts +1 -1
- package/dist/typings/plain/common-types.d.ts +6 -0
- package/package.json +1 -1
|
@@ -3255,365 +3255,358 @@ function errorHandler(errorResponse) {
|
|
|
3255
3255
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3256
3256
|
|
|
3257
3257
|
/* WEBPACK VAR INJECTION */(function(global) {(function (global, factory) {
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
}(this, (function () { 'use strict';
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
flags += 'm';
|
|
3431
|
-
}
|
|
3432
|
-
if (regExp.unicode) {
|
|
3433
|
-
flags += 'u';
|
|
3434
|
-
}
|
|
3435
|
-
if (regExp.sticky) {
|
|
3436
|
-
flags += 'y';
|
|
3437
|
-
}
|
|
3438
|
-
return flags;
|
|
3439
|
-
};
|
|
3258
|
+
true ? module.exports = factory() :
|
|
3259
|
+
undefined;
|
|
3260
|
+
})(this, (function () { 'use strict';
|
|
3261
|
+
|
|
3262
|
+
var toStringFunction = Function.prototype.toString;
|
|
3263
|
+
var create = Object.create, defineProperty = Object.defineProperty, getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor, getOwnPropertyNames = Object.getOwnPropertyNames, getOwnPropertySymbols = Object.getOwnPropertySymbols, getPrototypeOf$1 = Object.getPrototypeOf;
|
|
3264
|
+
var _a = Object.prototype, hasOwnProperty = _a.hasOwnProperty, propertyIsEnumerable = _a.propertyIsEnumerable;
|
|
3265
|
+
var SYMBOL_PROPERTIES = typeof getOwnPropertySymbols === 'function';
|
|
3266
|
+
var WEAK_MAP = typeof WeakMap === 'function';
|
|
3267
|
+
/**
|
|
3268
|
+
* @function createCache
|
|
3269
|
+
*
|
|
3270
|
+
* @description
|
|
3271
|
+
* get a new cache object to prevent circular references
|
|
3272
|
+
*
|
|
3273
|
+
* @returns the new cache object
|
|
3274
|
+
*/
|
|
3275
|
+
var createCache = (function () {
|
|
3276
|
+
if (WEAK_MAP) {
|
|
3277
|
+
return function () { return new WeakMap(); };
|
|
3278
|
+
}
|
|
3279
|
+
var Cache = /** @class */ (function () {
|
|
3280
|
+
function Cache() {
|
|
3281
|
+
this._keys = [];
|
|
3282
|
+
this._values = [];
|
|
3283
|
+
}
|
|
3284
|
+
Cache.prototype.has = function (key) {
|
|
3285
|
+
return !!~this._keys.indexOf(key);
|
|
3286
|
+
};
|
|
3287
|
+
Cache.prototype.get = function (key) {
|
|
3288
|
+
return this._values[this._keys.indexOf(key)];
|
|
3289
|
+
};
|
|
3290
|
+
Cache.prototype.set = function (key, value) {
|
|
3291
|
+
this._keys.push(key);
|
|
3292
|
+
this._values.push(value);
|
|
3293
|
+
};
|
|
3294
|
+
return Cache;
|
|
3295
|
+
}());
|
|
3296
|
+
return function () { return new Cache(); };
|
|
3297
|
+
})();
|
|
3298
|
+
/**
|
|
3299
|
+
* @function getCleanClone
|
|
3300
|
+
*
|
|
3301
|
+
* @description
|
|
3302
|
+
* get an empty version of the object with the same prototype it has
|
|
3303
|
+
*
|
|
3304
|
+
* @param object the object to build a clean clone from
|
|
3305
|
+
* @param realm the realm the object resides in
|
|
3306
|
+
* @returns the empty cloned object
|
|
3307
|
+
*/
|
|
3308
|
+
var getCleanClone = function (object, realm) {
|
|
3309
|
+
var prototype = object.__proto__ || getPrototypeOf$1(object);
|
|
3310
|
+
if (!prototype) {
|
|
3311
|
+
return create(null);
|
|
3312
|
+
}
|
|
3313
|
+
var Constructor = prototype.constructor;
|
|
3314
|
+
if (Constructor === realm.Object) {
|
|
3315
|
+
return prototype === realm.Object.prototype ? {} : create(prototype);
|
|
3316
|
+
}
|
|
3317
|
+
if (~toStringFunction.call(Constructor).indexOf('[native code]')) {
|
|
3318
|
+
try {
|
|
3319
|
+
return new Constructor();
|
|
3320
|
+
}
|
|
3321
|
+
catch (_a) { }
|
|
3322
|
+
}
|
|
3323
|
+
return create(prototype);
|
|
3324
|
+
};
|
|
3325
|
+
/**
|
|
3326
|
+
* @function getObjectCloneLoose
|
|
3327
|
+
*
|
|
3328
|
+
* @description
|
|
3329
|
+
* get a copy of the object based on loose rules, meaning all enumerable keys
|
|
3330
|
+
* and symbols are copied, but property descriptors are not considered
|
|
3331
|
+
*
|
|
3332
|
+
* @param object the object to clone
|
|
3333
|
+
* @param realm the realm the object resides in
|
|
3334
|
+
* @param handleCopy the function that handles copying the object
|
|
3335
|
+
* @returns the copied object
|
|
3336
|
+
*/
|
|
3337
|
+
var getObjectCloneLoose = function (object, realm, handleCopy, cache) {
|
|
3338
|
+
var clone = getCleanClone(object, realm);
|
|
3339
|
+
// set in the cache immediately to be able to reuse the object recursively
|
|
3340
|
+
cache.set(object, clone);
|
|
3341
|
+
for (var key in object) {
|
|
3342
|
+
if (hasOwnProperty.call(object, key)) {
|
|
3343
|
+
clone[key] = handleCopy(object[key], cache);
|
|
3344
|
+
}
|
|
3345
|
+
}
|
|
3346
|
+
if (SYMBOL_PROPERTIES) {
|
|
3347
|
+
var symbols = getOwnPropertySymbols(object);
|
|
3348
|
+
for (var index = 0, length_1 = symbols.length, symbol = void 0; index < length_1; ++index) {
|
|
3349
|
+
symbol = symbols[index];
|
|
3350
|
+
if (propertyIsEnumerable.call(object, symbol)) {
|
|
3351
|
+
clone[symbol] = handleCopy(object[symbol], cache);
|
|
3352
|
+
}
|
|
3353
|
+
}
|
|
3354
|
+
}
|
|
3355
|
+
return clone;
|
|
3356
|
+
};
|
|
3357
|
+
/**
|
|
3358
|
+
* @function getObjectCloneStrict
|
|
3359
|
+
*
|
|
3360
|
+
* @description
|
|
3361
|
+
* get a copy of the object based on strict rules, meaning all keys and symbols
|
|
3362
|
+
* are copied based on the original property descriptors
|
|
3363
|
+
*
|
|
3364
|
+
* @param object the object to clone
|
|
3365
|
+
* @param realm the realm the object resides in
|
|
3366
|
+
* @param handleCopy the function that handles copying the object
|
|
3367
|
+
* @returns the copied object
|
|
3368
|
+
*/
|
|
3369
|
+
var getObjectCloneStrict = function (object, realm, handleCopy, cache) {
|
|
3370
|
+
var clone = getCleanClone(object, realm);
|
|
3371
|
+
// set in the cache immediately to be able to reuse the object recursively
|
|
3372
|
+
cache.set(object, clone);
|
|
3373
|
+
var properties = SYMBOL_PROPERTIES
|
|
3374
|
+
? getOwnPropertyNames(object).concat(getOwnPropertySymbols(object))
|
|
3375
|
+
: getOwnPropertyNames(object);
|
|
3376
|
+
for (var index = 0, length_2 = properties.length, property = void 0, descriptor = void 0; index < length_2; ++index) {
|
|
3377
|
+
property = properties[index];
|
|
3378
|
+
if (property !== 'callee' && property !== 'caller') {
|
|
3379
|
+
descriptor = getOwnPropertyDescriptor(object, property);
|
|
3380
|
+
if (descriptor) {
|
|
3381
|
+
// Only clone the value if actually a value, not a getter / setter.
|
|
3382
|
+
if (!descriptor.get && !descriptor.set) {
|
|
3383
|
+
descriptor.value = handleCopy(object[property], cache);
|
|
3384
|
+
}
|
|
3385
|
+
try {
|
|
3386
|
+
defineProperty(clone, property, descriptor);
|
|
3387
|
+
}
|
|
3388
|
+
catch (error) {
|
|
3389
|
+
// Tee above can fail on node in edge cases, so fall back to the loose assignment.
|
|
3390
|
+
clone[property] = descriptor.value;
|
|
3391
|
+
}
|
|
3392
|
+
}
|
|
3393
|
+
else {
|
|
3394
|
+
// In extra edge cases where the property descriptor cannot be retrived, fall back to
|
|
3395
|
+
// the loose assignment.
|
|
3396
|
+
clone[property] = handleCopy(object[property], cache);
|
|
3397
|
+
}
|
|
3398
|
+
}
|
|
3399
|
+
}
|
|
3400
|
+
return clone;
|
|
3401
|
+
};
|
|
3402
|
+
/**
|
|
3403
|
+
* @function getRegExpFlags
|
|
3404
|
+
*
|
|
3405
|
+
* @description
|
|
3406
|
+
* get the flags to apply to the copied regexp
|
|
3407
|
+
*
|
|
3408
|
+
* @param regExp the regexp to get the flags of
|
|
3409
|
+
* @returns the flags for the regexp
|
|
3410
|
+
*/
|
|
3411
|
+
var getRegExpFlags = function (regExp) {
|
|
3412
|
+
var flags = '';
|
|
3413
|
+
if (regExp.global) {
|
|
3414
|
+
flags += 'g';
|
|
3415
|
+
}
|
|
3416
|
+
if (regExp.ignoreCase) {
|
|
3417
|
+
flags += 'i';
|
|
3418
|
+
}
|
|
3419
|
+
if (regExp.multiline) {
|
|
3420
|
+
flags += 'm';
|
|
3421
|
+
}
|
|
3422
|
+
if (regExp.unicode) {
|
|
3423
|
+
flags += 'u';
|
|
3424
|
+
}
|
|
3425
|
+
if (regExp.sticky) {
|
|
3426
|
+
flags += 'y';
|
|
3427
|
+
}
|
|
3428
|
+
return flags;
|
|
3429
|
+
};
|
|
3440
3430
|
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3431
|
+
// utils
|
|
3432
|
+
var isArray = Array.isArray;
|
|
3433
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
3434
|
+
var GLOBAL_THIS = (function () {
|
|
3435
|
+
if (typeof globalThis !== 'undefined') {
|
|
3436
|
+
return globalThis;
|
|
3437
|
+
}
|
|
3438
|
+
if (typeof self !== 'undefined') {
|
|
3439
|
+
return self;
|
|
3440
|
+
}
|
|
3441
|
+
if (typeof window !== 'undefined') {
|
|
3442
|
+
return window;
|
|
3443
|
+
}
|
|
3444
|
+
if (typeof global !== 'undefined') {
|
|
3445
|
+
return global;
|
|
3446
|
+
}
|
|
3447
|
+
if (console && console.error) {
|
|
3448
|
+
console.error('Unable to locate global object, returning "this".');
|
|
3449
|
+
}
|
|
3450
|
+
return this;
|
|
3451
|
+
})();
|
|
3452
|
+
/**
|
|
3453
|
+
* @function copy
|
|
3454
|
+
*
|
|
3455
|
+
* @description
|
|
3456
|
+
* copy an value deeply as much as possible
|
|
3457
|
+
*
|
|
3458
|
+
* If `strict` is applied, then all properties (including non-enumerable ones)
|
|
3459
|
+
* are copied with their original property descriptors on both objects and arrays.
|
|
3460
|
+
*
|
|
3461
|
+
* The value is compared to the global constructors in the `realm` provided,
|
|
3462
|
+
* and the native constructor is always used to ensure that extensions of native
|
|
3463
|
+
* objects (allows in ES2015+) are maintained.
|
|
3464
|
+
*
|
|
3465
|
+
* @param value the value to copy
|
|
3466
|
+
* @param [options] the options for copying with
|
|
3467
|
+
* @param [options.isStrict] should the copy be strict
|
|
3468
|
+
* @param [options.realm] the realm (this) value the value is copied from
|
|
3469
|
+
* @returns the copied value
|
|
3470
|
+
*/
|
|
3471
|
+
function copy(value, options) {
|
|
3472
|
+
// manually coalesced instead of default parameters for performance
|
|
3473
|
+
var isStrict = !!(options && options.isStrict);
|
|
3474
|
+
var realm = (options && options.realm) || GLOBAL_THIS;
|
|
3475
|
+
var getObjectClone = isStrict ? getObjectCloneStrict : getObjectCloneLoose;
|
|
3476
|
+
/**
|
|
3477
|
+
* @function handleCopy
|
|
3478
|
+
*
|
|
3479
|
+
* @description
|
|
3480
|
+
* copy the value recursively based on its type
|
|
3481
|
+
*
|
|
3482
|
+
* @param value the value to copy
|
|
3483
|
+
* @returns the copied value
|
|
3484
|
+
*/
|
|
3485
|
+
var handleCopy = function (value, cache) {
|
|
3486
|
+
if (!value || typeof value !== 'object') {
|
|
3487
|
+
return value;
|
|
3488
|
+
}
|
|
3489
|
+
if (cache.has(value)) {
|
|
3490
|
+
return cache.get(value);
|
|
3491
|
+
}
|
|
3492
|
+
var prototype = value.__proto__ || getPrototypeOf(value);
|
|
3493
|
+
var Constructor = prototype && prototype.constructor;
|
|
3494
|
+
// plain objects
|
|
3495
|
+
if (!Constructor || Constructor === realm.Object) {
|
|
3496
|
+
return getObjectClone(value, realm, handleCopy, cache);
|
|
3497
|
+
}
|
|
3498
|
+
var clone;
|
|
3499
|
+
// arrays
|
|
3500
|
+
if (isArray(value)) {
|
|
3501
|
+
// if strict, include non-standard properties
|
|
3502
|
+
if (isStrict) {
|
|
3503
|
+
return getObjectCloneStrict(value, realm, handleCopy, cache);
|
|
3504
|
+
}
|
|
3505
|
+
clone = new Constructor();
|
|
3506
|
+
cache.set(value, clone);
|
|
3507
|
+
for (var index = 0, length_1 = value.length; index < length_1; ++index) {
|
|
3508
|
+
clone[index] = handleCopy(value[index], cache);
|
|
3509
|
+
}
|
|
3510
|
+
return clone;
|
|
3511
|
+
}
|
|
3512
|
+
// dates
|
|
3513
|
+
if (value instanceof realm.Date) {
|
|
3514
|
+
return new Constructor(value.getTime());
|
|
3515
|
+
}
|
|
3516
|
+
// regexps
|
|
3517
|
+
if (value instanceof realm.RegExp) {
|
|
3518
|
+
clone = new Constructor(value.source, value.flags || getRegExpFlags(value));
|
|
3519
|
+
clone.lastIndex = value.lastIndex;
|
|
3520
|
+
return clone;
|
|
3521
|
+
}
|
|
3522
|
+
// maps
|
|
3523
|
+
if (realm.Map && value instanceof realm.Map) {
|
|
3524
|
+
clone = new Constructor();
|
|
3525
|
+
cache.set(value, clone);
|
|
3526
|
+
value.forEach(function (value, key) {
|
|
3527
|
+
clone.set(key, handleCopy(value, cache));
|
|
3528
|
+
});
|
|
3529
|
+
return clone;
|
|
3530
|
+
}
|
|
3531
|
+
// sets
|
|
3532
|
+
if (realm.Set && value instanceof realm.Set) {
|
|
3533
|
+
clone = new Constructor();
|
|
3534
|
+
cache.set(value, clone);
|
|
3535
|
+
value.forEach(function (value) {
|
|
3536
|
+
clone.add(handleCopy(value, cache));
|
|
3537
|
+
});
|
|
3538
|
+
return clone;
|
|
3539
|
+
}
|
|
3540
|
+
// blobs
|
|
3541
|
+
if (realm.Blob && value instanceof realm.Blob) {
|
|
3542
|
+
return value.slice(0, value.size, value.type);
|
|
3543
|
+
}
|
|
3544
|
+
// buffers (node-only)
|
|
3545
|
+
if (realm.Buffer && realm.Buffer.isBuffer(value)) {
|
|
3546
|
+
clone = realm.Buffer.allocUnsafe
|
|
3547
|
+
? realm.Buffer.allocUnsafe(value.length)
|
|
3548
|
+
: new Constructor(value.length);
|
|
3549
|
+
cache.set(value, clone);
|
|
3550
|
+
value.copy(clone);
|
|
3551
|
+
return clone;
|
|
3552
|
+
}
|
|
3553
|
+
// arraybuffers / dataviews
|
|
3554
|
+
if (realm.ArrayBuffer) {
|
|
3555
|
+
// dataviews
|
|
3556
|
+
if (realm.ArrayBuffer.isView(value)) {
|
|
3557
|
+
clone = new Constructor(value.buffer.slice(0));
|
|
3558
|
+
cache.set(value, clone);
|
|
3559
|
+
return clone;
|
|
3560
|
+
}
|
|
3561
|
+
// arraybuffers
|
|
3562
|
+
if (value instanceof realm.ArrayBuffer) {
|
|
3563
|
+
clone = value.slice(0);
|
|
3564
|
+
cache.set(value, clone);
|
|
3565
|
+
return clone;
|
|
3566
|
+
}
|
|
3567
|
+
}
|
|
3568
|
+
// if the value cannot / should not be cloned, don't
|
|
3569
|
+
if (
|
|
3570
|
+
// promise-like
|
|
3571
|
+
typeof value.then === 'function' ||
|
|
3572
|
+
// errors
|
|
3573
|
+
value instanceof Error ||
|
|
3574
|
+
// weakmaps
|
|
3575
|
+
(realm.WeakMap && value instanceof realm.WeakMap) ||
|
|
3576
|
+
// weaksets
|
|
3577
|
+
(realm.WeakSet && value instanceof realm.WeakSet)) {
|
|
3578
|
+
return value;
|
|
3579
|
+
}
|
|
3580
|
+
// assume anything left is a custom constructor
|
|
3581
|
+
return getObjectClone(value, realm, handleCopy, cache);
|
|
3582
|
+
};
|
|
3583
|
+
return handleCopy(value, createCache());
|
|
3584
|
+
}
|
|
3585
|
+
// Adding reference to allow usage in CommonJS libraries compiled using TSC, which
|
|
3586
|
+
// expects there to be a default property on the exported value. See
|
|
3587
|
+
// [#37](https://github.com/planttheidea/fast-copy/issues/37) for details.
|
|
3588
|
+
copy.default = copy;
|
|
3589
|
+
/**
|
|
3590
|
+
* @function strictCopy
|
|
3591
|
+
*
|
|
3592
|
+
* @description
|
|
3593
|
+
* copy the value with `strict` option pre-applied
|
|
3594
|
+
*
|
|
3595
|
+
* @param value the value to copy
|
|
3596
|
+
* @param [options] the options for copying with
|
|
3597
|
+
* @param [options.realm] the realm (this) value the value is copied from
|
|
3598
|
+
* @returns the copied value
|
|
3599
|
+
*/
|
|
3600
|
+
copy.strict = function strictCopy(value, options) {
|
|
3601
|
+
return copy(value, {
|
|
3602
|
+
isStrict: true,
|
|
3603
|
+
realm: options ? options.realm : void 0,
|
|
3604
|
+
});
|
|
3605
|
+
};
|
|
3613
3606
|
|
|
3614
|
-
|
|
3607
|
+
return copy;
|
|
3615
3608
|
|
|
3616
|
-
}))
|
|
3609
|
+
}));
|
|
3617
3610
|
//# sourceMappingURL=fast-copy.js.map
|
|
3618
3611
|
|
|
3619
3612
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../../webpack/buildin/global.js */ "../node_modules/webpack/buildin/global.js")))
|
|
@@ -8225,7 +8218,7 @@ var queryForRelease = function queryForRelease(http, params) {
|
|
|
8225
8218
|
/*!********************************************!*\
|
|
8226
8219
|
!*** ./adapters/REST/endpoints/release.ts ***!
|
|
8227
8220
|
\********************************************/
|
|
8228
|
-
/*! exports provided: get, query, create, update, del, publish, unpublish, validate */
|
|
8221
|
+
/*! exports provided: get, query, create, update, del, publish, unpublish, validate, archive, unarchive */
|
|
8229
8222
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
8230
8223
|
|
|
8231
8224
|
"use strict";
|
|
@@ -8238,6 +8231,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8238
8231
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "publish", function() { return publish; });
|
|
8239
8232
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unpublish", function() { return unpublish; });
|
|
8240
8233
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "validate", function() { return validate; });
|
|
8234
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "archive", function() { return archive; });
|
|
8235
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "unarchive", function() { return unarchive; });
|
|
8241
8236
|
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
8242
8237
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8243
8238
|
|
|
@@ -8245,7 +8240,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
8245
8240
|
|
|
8246
8241
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8247
8242
|
|
|
8248
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
8249
8243
|
|
|
8250
8244
|
var get = function get(http, params) {
|
|
8251
8245
|
return _raw__WEBPACK_IMPORTED_MODULE_0__["get"](http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/releases/").concat(params.releaseId));
|
|
@@ -8285,6 +8279,20 @@ var unpublish = function unpublish(http, params, headers) {
|
|
|
8285
8279
|
var validate = function validate(http, params, payload) {
|
|
8286
8280
|
return _raw__WEBPACK_IMPORTED_MODULE_0__["post"](http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/releases/").concat(params.releaseId, "/validate"), payload);
|
|
8287
8281
|
};
|
|
8282
|
+
var archive = function archive(http, params) {
|
|
8283
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__["put"](http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/releases/").concat(params.releaseId, "/archived"), null, {
|
|
8284
|
+
headers: {
|
|
8285
|
+
'X-Contentful-Version': params.version
|
|
8286
|
+
}
|
|
8287
|
+
});
|
|
8288
|
+
};
|
|
8289
|
+
var unarchive = function unarchive(http, params) {
|
|
8290
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__["del"](http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/releases/").concat(params.releaseId, "/archived"), {
|
|
8291
|
+
headers: {
|
|
8292
|
+
'X-Contentful-Version': params.version
|
|
8293
|
+
}
|
|
8294
|
+
});
|
|
8295
|
+
};
|
|
8288
8296
|
|
|
8289
8297
|
/***/ }),
|
|
8290
8298
|
|
|
@@ -10174,7 +10182,7 @@ function createClient(params) {
|
|
|
10174
10182
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
10175
10183
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
10176
10184
|
var userAgent = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__["getUserAgentHeader"])( // @ts-expect-error
|
|
10177
|
-
"".concat(sdkMain, "/").concat("9.
|
|
10185
|
+
"".concat(sdkMain, "/").concat("9.2.1"), params.application, params.integration, params.feature);
|
|
10178
10186
|
var adapter = Object(_create_adapter__WEBPACK_IMPORTED_MODULE_1__["createAdapter"])(params); // Parameters<?> and ReturnType<?> only return the types of the last overload
|
|
10179
10187
|
// https://github.com/microsoft/TypeScript/issues/26591
|
|
10180
10188
|
// @ts-expect-error
|
|
@@ -13506,6 +13514,80 @@ function createEnvironmentApi(makeRequest) {
|
|
|
13506
13514
|
});
|
|
13507
13515
|
},
|
|
13508
13516
|
|
|
13517
|
+
/**
|
|
13518
|
+
* Archives a Release and prevents new operations (publishing, unpublishing adding new entities etc).
|
|
13519
|
+
* @param options.releaseId the ID of the release
|
|
13520
|
+
* @param options.version the version of the release that is to be archived
|
|
13521
|
+
* @returns Promise containing a wrapped Release, that has helper methods within.
|
|
13522
|
+
*
|
|
13523
|
+
* @example ```javascript
|
|
13524
|
+
* const contentful = require('contentful-management')
|
|
13525
|
+
*
|
|
13526
|
+
* const client = contentful.createClient({
|
|
13527
|
+
* accessToken: '<content_management_api_key>'
|
|
13528
|
+
* })
|
|
13529
|
+
*
|
|
13530
|
+
* client.getSpace('<space_id>')
|
|
13531
|
+
* .then((space) => space.getEnvironment('<environment-id>'))
|
|
13532
|
+
* .then((environment) => environment.archiveRelease({ releaseId: '<release_id>', version: 1 }))
|
|
13533
|
+
* .catch(console.error)
|
|
13534
|
+
* ```
|
|
13535
|
+
*/
|
|
13536
|
+
archiveRelease: function archiveRelease(_ref6) {
|
|
13537
|
+
var releaseId = _ref6.releaseId,
|
|
13538
|
+
version = _ref6.version;
|
|
13539
|
+
var raw = this.toPlainObject();
|
|
13540
|
+
return makeRequest({
|
|
13541
|
+
entityType: 'Release',
|
|
13542
|
+
action: 'archive',
|
|
13543
|
+
params: {
|
|
13544
|
+
spaceId: raw.sys.space.sys.id,
|
|
13545
|
+
environmentId: raw.sys.id,
|
|
13546
|
+
releaseId: releaseId,
|
|
13547
|
+
version: version
|
|
13548
|
+
}
|
|
13549
|
+
}).then(function (data) {
|
|
13550
|
+
return Object(_entities_release__WEBPACK_IMPORTED_MODULE_3__["wrapRelease"])(makeRequest, data);
|
|
13551
|
+
});
|
|
13552
|
+
},
|
|
13553
|
+
|
|
13554
|
+
/**
|
|
13555
|
+
* Unarchives a previously archived Release - this enables the release to be published, unpublished etc.
|
|
13556
|
+
* @param options.releaseId the ID of the release
|
|
13557
|
+
* @param options.version the version of the release that is to be unarchived
|
|
13558
|
+
* @returns Promise containing a wrapped Release, that has helper methods within.
|
|
13559
|
+
*
|
|
13560
|
+
* @example ```javascript
|
|
13561
|
+
* const contentful = require('contentful-management')
|
|
13562
|
+
*
|
|
13563
|
+
* const client = contentful.createClient({
|
|
13564
|
+
* accessToken: '<content_management_api_key>'
|
|
13565
|
+
* })
|
|
13566
|
+
*
|
|
13567
|
+
* client.getSpace('<space_id>')
|
|
13568
|
+
* .then((space) => space.getEnvironment('<environment-id>'))
|
|
13569
|
+
* .then((environment) => environment.unarchiveRelease({ releaseId: '<release_id>', version: 1 }))
|
|
13570
|
+
* .catch(console.error)
|
|
13571
|
+
* ```
|
|
13572
|
+
*/
|
|
13573
|
+
unarchiveRelease: function unarchiveRelease(_ref7) {
|
|
13574
|
+
var releaseId = _ref7.releaseId,
|
|
13575
|
+
version = _ref7.version;
|
|
13576
|
+
var raw = this.toPlainObject();
|
|
13577
|
+
return makeRequest({
|
|
13578
|
+
entityType: 'Release',
|
|
13579
|
+
action: 'unarchive',
|
|
13580
|
+
params: {
|
|
13581
|
+
spaceId: raw.sys.space.sys.id,
|
|
13582
|
+
environmentId: raw.sys.id,
|
|
13583
|
+
releaseId: releaseId,
|
|
13584
|
+
version: version
|
|
13585
|
+
}
|
|
13586
|
+
}).then(function (data) {
|
|
13587
|
+
return Object(_entities_release__WEBPACK_IMPORTED_MODULE_3__["wrapRelease"])(makeRequest, data);
|
|
13588
|
+
});
|
|
13589
|
+
},
|
|
13590
|
+
|
|
13509
13591
|
/**
|
|
13510
13592
|
* Retrieves a ReleaseAction by ID
|
|
13511
13593
|
* @param params.releaseId The ID of a Release
|
|
@@ -13525,9 +13607,9 @@ function createEnvironmentApi(makeRequest) {
|
|
|
13525
13607
|
* .catch(console.error)
|
|
13526
13608
|
* ```
|
|
13527
13609
|
*/
|
|
13528
|
-
getReleaseAction: function getReleaseAction(
|
|
13529
|
-
var actionId =
|
|
13530
|
-
releaseId =
|
|
13610
|
+
getReleaseAction: function getReleaseAction(_ref8) {
|
|
13611
|
+
var actionId = _ref8.actionId,
|
|
13612
|
+
releaseId = _ref8.releaseId;
|
|
13531
13613
|
var raw = this.toPlainObject();
|
|
13532
13614
|
return makeRequest({
|
|
13533
13615
|
entityType: 'ReleaseAction',
|
|
@@ -13563,9 +13645,9 @@ function createEnvironmentApi(makeRequest) {
|
|
|
13563
13645
|
* .catch(console.error)
|
|
13564
13646
|
* ```
|
|
13565
13647
|
*/
|
|
13566
|
-
getReleaseActions: function getReleaseActions(
|
|
13567
|
-
var releaseId =
|
|
13568
|
-
query =
|
|
13648
|
+
getReleaseActions: function getReleaseActions(_ref9) {
|
|
13649
|
+
var releaseId = _ref9.releaseId,
|
|
13650
|
+
query = _ref9.query;
|
|
13569
13651
|
var raw = this.toPlainObject();
|
|
13570
13652
|
return makeRequest({
|
|
13571
13653
|
entityType: 'ReleaseAction',
|
|
@@ -16317,12 +16399,12 @@ function wrapAppActionCall(_makeRequest, data) {
|
|
|
16317
16399
|
/*!********************************!*\
|
|
16318
16400
|
!*** ./entities/app-action.ts ***!
|
|
16319
16401
|
\********************************/
|
|
16320
|
-
/*! exports provided:
|
|
16402
|
+
/*! exports provided: AppActionCategory, wrapAppAction, wrapAppActionCollection */
|
|
16321
16403
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16322
16404
|
|
|
16323
16405
|
"use strict";
|
|
16324
16406
|
__webpack_require__.r(__webpack_exports__);
|
|
16325
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
16407
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppActionCategory", function() { return AppActionCategory; });
|
|
16326
16408
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapAppAction", function() { return wrapAppAction; });
|
|
16327
16409
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapAppActionCollection", function() { return wrapAppActionCollection; });
|
|
16328
16410
|
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js");
|
|
@@ -16334,11 +16416,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16334
16416
|
|
|
16335
16417
|
|
|
16336
16418
|
|
|
16337
|
-
var
|
|
16419
|
+
var AppActionCategory;
|
|
16338
16420
|
|
|
16339
|
-
(function (
|
|
16340
|
-
|
|
16341
|
-
|
|
16421
|
+
(function (AppActionCategory) {
|
|
16422
|
+
AppActionCategory["EntryListV1Beta"] = "EntryList.v1.0-beta";
|
|
16423
|
+
AppActionCategory["NotificationV1Beta"] = "Notification.v1.0-beta";
|
|
16424
|
+
AppActionCategory["Custom"] = "Custom";
|
|
16425
|
+
})(AppActionCategory || (AppActionCategory = {}));
|
|
16342
16426
|
|
|
16343
16427
|
/**
|
|
16344
16428
|
* @private
|
|
@@ -18348,7 +18432,7 @@ function createReleaseApi(makeRequest) {
|
|
|
18348
18432
|
};
|
|
18349
18433
|
|
|
18350
18434
|
return {
|
|
18351
|
-
|
|
18435
|
+
archive: function archive() {
|
|
18352
18436
|
var _this = this;
|
|
18353
18437
|
|
|
18354
18438
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
@@ -18360,9 +18444,8 @@ function createReleaseApi(makeRequest) {
|
|
|
18360
18444
|
params = getParams(_this);
|
|
18361
18445
|
return _context.abrupt("return", makeRequest({
|
|
18362
18446
|
entityType: 'Release',
|
|
18363
|
-
action: '
|
|
18364
|
-
params: params
|
|
18365
|
-
payload: payload
|
|
18447
|
+
action: 'archive',
|
|
18448
|
+
params: params
|
|
18366
18449
|
}).then(function (release) {
|
|
18367
18450
|
return wrapRelease(makeRequest, release);
|
|
18368
18451
|
}));
|
|
@@ -18375,7 +18458,7 @@ function createReleaseApi(makeRequest) {
|
|
|
18375
18458
|
}, _callee);
|
|
18376
18459
|
}))();
|
|
18377
18460
|
},
|
|
18378
|
-
|
|
18461
|
+
unarchive: function unarchive() {
|
|
18379
18462
|
var _this2 = this;
|
|
18380
18463
|
|
|
18381
18464
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
@@ -18385,14 +18468,15 @@ function createReleaseApi(makeRequest) {
|
|
|
18385
18468
|
switch (_context2.prev = _context2.next) {
|
|
18386
18469
|
case 0:
|
|
18387
18470
|
params = getParams(_this2);
|
|
18388
|
-
_context2.
|
|
18389
|
-
return makeRequest({
|
|
18471
|
+
return _context2.abrupt("return", makeRequest({
|
|
18390
18472
|
entityType: 'Release',
|
|
18391
|
-
action: '
|
|
18473
|
+
action: 'unarchive',
|
|
18392
18474
|
params: params
|
|
18393
|
-
})
|
|
18475
|
+
}).then(function (release) {
|
|
18476
|
+
return wrapRelease(makeRequest, release);
|
|
18477
|
+
}));
|
|
18394
18478
|
|
|
18395
|
-
case
|
|
18479
|
+
case 2:
|
|
18396
18480
|
case "end":
|
|
18397
18481
|
return _context2.stop();
|
|
18398
18482
|
}
|
|
@@ -18400,7 +18484,7 @@ function createReleaseApi(makeRequest) {
|
|
|
18400
18484
|
}, _callee2);
|
|
18401
18485
|
}))();
|
|
18402
18486
|
},
|
|
18403
|
-
|
|
18487
|
+
update: function update(payload) {
|
|
18404
18488
|
var _this3 = this;
|
|
18405
18489
|
|
|
18406
18490
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
@@ -18412,12 +18496,11 @@ function createReleaseApi(makeRequest) {
|
|
|
18412
18496
|
params = getParams(_this3);
|
|
18413
18497
|
return _context3.abrupt("return", makeRequest({
|
|
18414
18498
|
entityType: 'Release',
|
|
18415
|
-
action: '
|
|
18416
|
-
params: params
|
|
18417
|
-
|
|
18418
|
-
|
|
18419
|
-
|
|
18420
|
-
return action.waitProcessing(options);
|
|
18499
|
+
action: 'update',
|
|
18500
|
+
params: params,
|
|
18501
|
+
payload: payload
|
|
18502
|
+
}).then(function (release) {
|
|
18503
|
+
return wrapRelease(makeRequest, release);
|
|
18421
18504
|
}));
|
|
18422
18505
|
|
|
18423
18506
|
case 2:
|
|
@@ -18428,7 +18511,7 @@ function createReleaseApi(makeRequest) {
|
|
|
18428
18511
|
}, _callee3);
|
|
18429
18512
|
}))();
|
|
18430
18513
|
},
|
|
18431
|
-
|
|
18514
|
+
delete: function _delete() {
|
|
18432
18515
|
var _this4 = this;
|
|
18433
18516
|
|
|
18434
18517
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
@@ -18438,17 +18521,14 @@ function createReleaseApi(makeRequest) {
|
|
|
18438
18521
|
switch (_context4.prev = _context4.next) {
|
|
18439
18522
|
case 0:
|
|
18440
18523
|
params = getParams(_this4);
|
|
18441
|
-
|
|
18524
|
+
_context4.next = 3;
|
|
18525
|
+
return makeRequest({
|
|
18442
18526
|
entityType: 'Release',
|
|
18443
|
-
action: '
|
|
18527
|
+
action: 'delete',
|
|
18444
18528
|
params: params
|
|
18445
|
-
})
|
|
18446
|
-
return Object(_release_action__WEBPACK_IMPORTED_MODULE_4__["wrapReleaseAction"])(makeRequest, data);
|
|
18447
|
-
}).then(function (action) {
|
|
18448
|
-
return action.waitProcessing(options);
|
|
18449
|
-
}));
|
|
18529
|
+
});
|
|
18450
18530
|
|
|
18451
|
-
case
|
|
18531
|
+
case 3:
|
|
18452
18532
|
case "end":
|
|
18453
18533
|
return _context4.stop();
|
|
18454
18534
|
}
|
|
@@ -18456,7 +18536,7 @@ function createReleaseApi(makeRequest) {
|
|
|
18456
18536
|
}, _callee4);
|
|
18457
18537
|
}))();
|
|
18458
18538
|
},
|
|
18459
|
-
|
|
18539
|
+
publish: function publish(options) {
|
|
18460
18540
|
var _this5 = this;
|
|
18461
18541
|
|
|
18462
18542
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee5() {
|
|
@@ -18467,6 +18547,62 @@ function createReleaseApi(makeRequest) {
|
|
|
18467
18547
|
case 0:
|
|
18468
18548
|
params = getParams(_this5);
|
|
18469
18549
|
return _context5.abrupt("return", makeRequest({
|
|
18550
|
+
entityType: 'Release',
|
|
18551
|
+
action: 'publish',
|
|
18552
|
+
params: params
|
|
18553
|
+
}).then(function (data) {
|
|
18554
|
+
return Object(_release_action__WEBPACK_IMPORTED_MODULE_4__["wrapReleaseAction"])(makeRequest, data);
|
|
18555
|
+
}).then(function (action) {
|
|
18556
|
+
return action.waitProcessing(options);
|
|
18557
|
+
}));
|
|
18558
|
+
|
|
18559
|
+
case 2:
|
|
18560
|
+
case "end":
|
|
18561
|
+
return _context5.stop();
|
|
18562
|
+
}
|
|
18563
|
+
}
|
|
18564
|
+
}, _callee5);
|
|
18565
|
+
}))();
|
|
18566
|
+
},
|
|
18567
|
+
unpublish: function unpublish(options) {
|
|
18568
|
+
var _this6 = this;
|
|
18569
|
+
|
|
18570
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
18571
|
+
var params;
|
|
18572
|
+
return regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
18573
|
+
while (1) {
|
|
18574
|
+
switch (_context6.prev = _context6.next) {
|
|
18575
|
+
case 0:
|
|
18576
|
+
params = getParams(_this6);
|
|
18577
|
+
return _context6.abrupt("return", makeRequest({
|
|
18578
|
+
entityType: 'Release',
|
|
18579
|
+
action: 'unpublish',
|
|
18580
|
+
params: params
|
|
18581
|
+
}).then(function (data) {
|
|
18582
|
+
return Object(_release_action__WEBPACK_IMPORTED_MODULE_4__["wrapReleaseAction"])(makeRequest, data);
|
|
18583
|
+
}).then(function (action) {
|
|
18584
|
+
return action.waitProcessing(options);
|
|
18585
|
+
}));
|
|
18586
|
+
|
|
18587
|
+
case 2:
|
|
18588
|
+
case "end":
|
|
18589
|
+
return _context6.stop();
|
|
18590
|
+
}
|
|
18591
|
+
}
|
|
18592
|
+
}, _callee6);
|
|
18593
|
+
}))();
|
|
18594
|
+
},
|
|
18595
|
+
validate: function validate(options) {
|
|
18596
|
+
var _this7 = this;
|
|
18597
|
+
|
|
18598
|
+
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee7() {
|
|
18599
|
+
var params;
|
|
18600
|
+
return regeneratorRuntime.wrap(function _callee7$(_context7) {
|
|
18601
|
+
while (1) {
|
|
18602
|
+
switch (_context7.prev = _context7.next) {
|
|
18603
|
+
case 0:
|
|
18604
|
+
params = getParams(_this7);
|
|
18605
|
+
return _context7.abrupt("return", makeRequest({
|
|
18470
18606
|
entityType: 'Release',
|
|
18471
18607
|
action: 'validate',
|
|
18472
18608
|
params: params,
|
|
@@ -18479,10 +18615,10 @@ function createReleaseApi(makeRequest) {
|
|
|
18479
18615
|
|
|
18480
18616
|
case 2:
|
|
18481
18617
|
case "end":
|
|
18482
|
-
return
|
|
18618
|
+
return _context7.stop();
|
|
18483
18619
|
}
|
|
18484
18620
|
}
|
|
18485
|
-
},
|
|
18621
|
+
}, _callee7);
|
|
18486
18622
|
}))();
|
|
18487
18623
|
}
|
|
18488
18624
|
};
|
|
@@ -20445,12 +20581,14 @@ var createPlainClient = function createPlainClient(makeRequest, defaults, alphaF
|
|
|
20445
20581
|
getManyForOrganization: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'Usage', 'getManyForOrganization')
|
|
20446
20582
|
},
|
|
20447
20583
|
release: {
|
|
20584
|
+
archive: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'Release', 'archive'),
|
|
20448
20585
|
get: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'Release', 'get'),
|
|
20449
20586
|
query: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'Release', 'query'),
|
|
20450
20587
|
create: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'Release', 'create'),
|
|
20451
20588
|
update: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'Release', 'update'),
|
|
20452
20589
|
delete: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'Release', 'delete'),
|
|
20453
20590
|
publish: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'Release', 'publish'),
|
|
20591
|
+
unarchive: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'Release', 'unarchive'),
|
|
20454
20592
|
unpublish: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'Release', 'unpublish'),
|
|
20455
20593
|
validate: Object(_wrappers_wrap__WEBPACK_IMPORTED_MODULE_2__["wrap"])(wrapParams, 'Release', 'validate')
|
|
20456
20594
|
},
|