contentful-management 11.33.0 → 11.35.0
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 +929 -191
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +841 -147
- 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/index.js +4 -0
- package/dist/es-modules/adapters/REST/endpoints/resource-type.js +23 -0
- package/dist/es-modules/adapters/REST/endpoints/resource.js +5 -0
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/create-environment-api.js +78 -0
- package/dist/es-modules/entities/index.js +4 -0
- package/dist/es-modules/entities/resource-provider.js +41 -0
- package/dist/es-modules/entities/resource-type.js +93 -0
- package/dist/es-modules/entities/resource.js +7 -0
- package/dist/es-modules/plain/entities/resource-type.js +1 -0
- package/dist/es-modules/plain/entities/resource.js +1 -0
- package/dist/es-modules/plain/plain-client.js +10 -0
- package/dist/typings/adapters/REST/endpoints/index.d.ts +4 -0
- package/dist/typings/adapters/REST/endpoints/resource-type.d.ts +6 -0
- package/dist/typings/adapters/REST/endpoints/resource.d.ts +2 -0
- package/dist/typings/common-types.d.ts +49 -0
- package/dist/typings/constants/editor-interface-defaults/controls-defaults.d.ts +1 -1
- package/dist/typings/create-environment-api.d.ts +50 -0
- package/dist/typings/entities/index.d.ts +4 -0
- package/dist/typings/entities/resource-provider.d.ts +5 -1
- package/dist/typings/entities/resource-type.d.ts +52 -0
- package/dist/typings/entities/resource.d.ts +36 -0
- package/dist/typings/export-types.d.ts +2 -0
- package/dist/typings/plain/common-types.d.ts +5 -1
- package/dist/typings/plain/entities/resource-type.d.ts +14 -0
- package/dist/typings/plain/entities/resource.d.ts +38 -0
- package/package.json +1 -1
|
@@ -2263,27 +2263,31 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2263
2263
|
/* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./preview-api-key */ "./adapters/REST/endpoints/preview-api-key.ts");
|
|
2264
2264
|
/* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./release */ "./adapters/REST/endpoints/release.ts");
|
|
2265
2265
|
/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./release-action */ "./adapters/REST/endpoints/release-action.ts");
|
|
2266
|
-
/* harmony import */ var
|
|
2267
|
-
/* harmony import */ var
|
|
2268
|
-
/* harmony import */ var
|
|
2269
|
-
/* harmony import */ var
|
|
2270
|
-
/* harmony import */ var
|
|
2271
|
-
/* harmony import */ var
|
|
2272
|
-
/* harmony import */ var
|
|
2273
|
-
/* harmony import */ var
|
|
2274
|
-
/* harmony import */ var
|
|
2275
|
-
/* harmony import */ var
|
|
2276
|
-
/* harmony import */ var
|
|
2277
|
-
/* harmony import */ var
|
|
2278
|
-
/* harmony import */ var
|
|
2279
|
-
/* harmony import */ var
|
|
2280
|
-
/* harmony import */ var
|
|
2281
|
-
/* harmony import */ var
|
|
2282
|
-
/* harmony import */ var
|
|
2283
|
-
/* harmony import */ var
|
|
2284
|
-
/* harmony import */ var
|
|
2285
|
-
/* harmony import */ var
|
|
2286
|
-
/* harmony import */ var
|
|
2266
|
+
/* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./resource */ "./adapters/REST/endpoints/resource.ts");
|
|
2267
|
+
/* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./resource-provider */ "./adapters/REST/endpoints/resource-provider.ts");
|
|
2268
|
+
/* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./resource-type */ "./adapters/REST/endpoints/resource-type.ts");
|
|
2269
|
+
/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./role */ "./adapters/REST/endpoints/role.ts");
|
|
2270
|
+
/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./scheduled-action */ "./adapters/REST/endpoints/scheduled-action.ts");
|
|
2271
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./snapshot */ "./adapters/REST/endpoints/snapshot.ts");
|
|
2272
|
+
/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./space */ "./adapters/REST/endpoints/space.ts");
|
|
2273
|
+
/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./space-member */ "./adapters/REST/endpoints/space-member.ts");
|
|
2274
|
+
/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./space-membership */ "./adapters/REST/endpoints/space-membership.ts");
|
|
2275
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./tag */ "./adapters/REST/endpoints/tag.ts");
|
|
2276
|
+
/* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./task */ "./adapters/REST/endpoints/task.ts");
|
|
2277
|
+
/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./team */ "./adapters/REST/endpoints/team.ts");
|
|
2278
|
+
/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./team-membership */ "./adapters/REST/endpoints/team-membership.ts");
|
|
2279
|
+
/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./team-space-membership */ "./adapters/REST/endpoints/team-space-membership.ts");
|
|
2280
|
+
/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./ui-config */ "./adapters/REST/endpoints/ui-config.ts");
|
|
2281
|
+
/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts");
|
|
2282
|
+
/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./usage */ "./adapters/REST/endpoints/usage.ts");
|
|
2283
|
+
/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./user */ "./adapters/REST/endpoints/user.ts");
|
|
2284
|
+
/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./user-ui-config */ "./adapters/REST/endpoints/user-ui-config.ts");
|
|
2285
|
+
/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./webhook */ "./adapters/REST/endpoints/webhook.ts");
|
|
2286
|
+
/* harmony import */ var _workflow__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./workflow */ "./adapters/REST/endpoints/workflow.ts");
|
|
2287
|
+
/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./workflow-definition */ "./adapters/REST/endpoints/workflow-definition.ts");
|
|
2288
|
+
/* harmony import */ var _workflows_changelog__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./workflows-changelog */ "./adapters/REST/endpoints/workflows-changelog.ts");
|
|
2289
|
+
|
|
2290
|
+
|
|
2287
2291
|
|
|
2288
2292
|
|
|
2289
2293
|
|
|
@@ -2380,27 +2384,29 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2380
2384
|
PreviewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_34__,
|
|
2381
2385
|
Release: _release__WEBPACK_IMPORTED_MODULE_35__,
|
|
2382
2386
|
ReleaseAction: _release_action__WEBPACK_IMPORTED_MODULE_36__,
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2387
|
+
Resource: _resource__WEBPACK_IMPORTED_MODULE_37__,
|
|
2388
|
+
ResourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_38__,
|
|
2389
|
+
ResourceType: _resource_type__WEBPACK_IMPORTED_MODULE_39__,
|
|
2390
|
+
Role: _role__WEBPACK_IMPORTED_MODULE_40__,
|
|
2391
|
+
ScheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_41__,
|
|
2392
|
+
Snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_42__,
|
|
2393
|
+
Space: _space__WEBPACK_IMPORTED_MODULE_43__,
|
|
2394
|
+
SpaceMember: _space_member__WEBPACK_IMPORTED_MODULE_44__,
|
|
2395
|
+
SpaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_45__,
|
|
2396
|
+
Tag: _tag__WEBPACK_IMPORTED_MODULE_46__,
|
|
2397
|
+
Task: _task__WEBPACK_IMPORTED_MODULE_47__,
|
|
2398
|
+
Team: _team__WEBPACK_IMPORTED_MODULE_48__,
|
|
2399
|
+
TeamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_49__,
|
|
2400
|
+
TeamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_50__,
|
|
2401
|
+
UIConfig: _ui_config__WEBPACK_IMPORTED_MODULE_51__,
|
|
2402
|
+
Upload: _upload__WEBPACK_IMPORTED_MODULE_52__,
|
|
2403
|
+
Usage: _usage__WEBPACK_IMPORTED_MODULE_53__,
|
|
2404
|
+
User: _user__WEBPACK_IMPORTED_MODULE_54__,
|
|
2405
|
+
UserUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_55__,
|
|
2406
|
+
Webhook: _webhook__WEBPACK_IMPORTED_MODULE_56__,
|
|
2407
|
+
WorkflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_58__,
|
|
2408
|
+
Workflow: _workflow__WEBPACK_IMPORTED_MODULE_57__,
|
|
2409
|
+
WorkflowsChangelog: _workflows_changelog__WEBPACK_IMPORTED_MODULE_59__
|
|
2404
2410
|
});
|
|
2405
2411
|
|
|
2406
2412
|
/***/ }),
|
|
@@ -2909,6 +2915,79 @@ var del = function del(http, params) {
|
|
|
2909
2915
|
|
|
2910
2916
|
/***/ }),
|
|
2911
2917
|
|
|
2918
|
+
/***/ "./adapters/REST/endpoints/resource-type.ts":
|
|
2919
|
+
/*!**************************************************!*\
|
|
2920
|
+
!*** ./adapters/REST/endpoints/resource-type.ts ***!
|
|
2921
|
+
\**************************************************/
|
|
2922
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2923
|
+
|
|
2924
|
+
"use strict";
|
|
2925
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2926
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2927
|
+
/* harmony export */ del: function() { return /* binding */ del; },
|
|
2928
|
+
/* harmony export */ get: function() { return /* binding */ get; },
|
|
2929
|
+
/* harmony export */ getForEnvironment: function() { return /* binding */ getForEnvironment; },
|
|
2930
|
+
/* harmony export */ getMany: function() { return /* binding */ getMany; },
|
|
2931
|
+
/* harmony export */ upsert: function() { return /* binding */ upsert; }
|
|
2932
|
+
/* harmony export */ });
|
|
2933
|
+
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
2934
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
|
|
2935
|
+
|
|
2936
|
+
|
|
2937
|
+
var getBaseUrl = function getBaseUrl(params) {
|
|
2938
|
+
return "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/resource_provider/resource_types");
|
|
2939
|
+
};
|
|
2940
|
+
var getEntityUrl = function getEntityUrl(params) {
|
|
2941
|
+
return "".concat(getBaseUrl(params), "/").concat(params.resourceTypeId);
|
|
2942
|
+
};
|
|
2943
|
+
var getSpaceEnvUrl = function getSpaceEnvUrl(params) {
|
|
2944
|
+
return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/resource_types");
|
|
2945
|
+
};
|
|
2946
|
+
var get = function get(http, params) {
|
|
2947
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getEntityUrl(params));
|
|
2948
|
+
};
|
|
2949
|
+
var upsert = function upsert(http, params, rawData, headers) {
|
|
2950
|
+
var data = (0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(rawData);
|
|
2951
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.put(http, getEntityUrl(params), data, {
|
|
2952
|
+
headers: headers
|
|
2953
|
+
});
|
|
2954
|
+
};
|
|
2955
|
+
var del = function del(http, params) {
|
|
2956
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.del(http, getEntityUrl(params));
|
|
2957
|
+
};
|
|
2958
|
+
var getMany = function getMany(http, params) {
|
|
2959
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseUrl(params));
|
|
2960
|
+
};
|
|
2961
|
+
var getForEnvironment = function getForEnvironment(http, params) {
|
|
2962
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getSpaceEnvUrl(params));
|
|
2963
|
+
};
|
|
2964
|
+
|
|
2965
|
+
/***/ }),
|
|
2966
|
+
|
|
2967
|
+
/***/ "./adapters/REST/endpoints/resource.ts":
|
|
2968
|
+
/*!*********************************************!*\
|
|
2969
|
+
!*** ./adapters/REST/endpoints/resource.ts ***!
|
|
2970
|
+
\*********************************************/
|
|
2971
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2972
|
+
|
|
2973
|
+
"use strict";
|
|
2974
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2975
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2976
|
+
/* harmony export */ getMany: function() { return /* binding */ getMany; }
|
|
2977
|
+
/* harmony export */ });
|
|
2978
|
+
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
2979
|
+
|
|
2980
|
+
var getBaseUrl = function getBaseUrl(params) {
|
|
2981
|
+
return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/resource_types/").concat(params.resourceTypeId, "/resources");
|
|
2982
|
+
};
|
|
2983
|
+
var getMany = function getMany(http, params) {
|
|
2984
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getBaseUrl(params), {
|
|
2985
|
+
params: params.query
|
|
2986
|
+
});
|
|
2987
|
+
};
|
|
2988
|
+
|
|
2989
|
+
/***/ }),
|
|
2990
|
+
|
|
2912
2991
|
/***/ "./adapters/REST/endpoints/role.ts":
|
|
2913
2992
|
/*!*****************************************!*\
|
|
2914
2993
|
!*** ./adapters/REST/endpoints/role.ts ***!
|
|
@@ -6545,6 +6624,8 @@ function createEnvironmentApi(makeRequest) {
|
|
|
6545
6624
|
var wrapAppActionCall = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appActionCall.wrapAppActionCall;
|
|
6546
6625
|
var wrapBulkAction = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].bulkAction.wrapBulkAction;
|
|
6547
6626
|
var wrapAppAccessToken = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].appAccessToken.wrapAppAccessToken;
|
|
6627
|
+
var wrapResourceTypesForEnvironmentCollection = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].resourceType.wrapResourceTypesForEnvironmentCollection;
|
|
6628
|
+
var wrapResourceCollection = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].resource.wrapResourceCollection;
|
|
6548
6629
|
return {
|
|
6549
6630
|
/**
|
|
6550
6631
|
* Deletes the environment
|
|
@@ -8871,6 +8952,106 @@ function createEnvironmentApi(makeRequest) {
|
|
|
8871
8952
|
}
|
|
8872
8953
|
}, _callee3);
|
|
8873
8954
|
}))();
|
|
8955
|
+
},
|
|
8956
|
+
/**
|
|
8957
|
+
* Gets a collection of all resource types based on native external references app installations in the environment
|
|
8958
|
+
* @param query - BasicCursorPaginationOptions
|
|
8959
|
+
* @return Promise for a collection of ResourceTypes
|
|
8960
|
+
* ```javascript
|
|
8961
|
+
* const contentful = require('contentful-management')
|
|
8962
|
+
*
|
|
8963
|
+
* const client = contentful.createClient({
|
|
8964
|
+
* accessToken: '<content_management_api_key>'
|
|
8965
|
+
* })
|
|
8966
|
+
*
|
|
8967
|
+
* client.getSpace('<space_id>')
|
|
8968
|
+
* .then((space) => space.getEnvironment('<environment_id>'))
|
|
8969
|
+
* .then((environment) => environment.getResourceTypes({limit: 10}))
|
|
8970
|
+
* .then((installations) => console.log(installations.items))
|
|
8971
|
+
* .catch(console.error)
|
|
8972
|
+
* ```
|
|
8973
|
+
*/
|
|
8974
|
+
getResourceTypes: function getResourceTypes(query) {
|
|
8975
|
+
var _this4 = this;
|
|
8976
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
8977
|
+
var raw;
|
|
8978
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
8979
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
8980
|
+
case 0:
|
|
8981
|
+
raw = _this4.toPlainObject();
|
|
8982
|
+
return _context4.abrupt("return", makeRequest({
|
|
8983
|
+
entityType: 'ResourceType',
|
|
8984
|
+
action: 'getForEnvironment',
|
|
8985
|
+
params: {
|
|
8986
|
+
query: query,
|
|
8987
|
+
spaceId: raw.sys.space.sys.id,
|
|
8988
|
+
environmentId: raw.sys.id
|
|
8989
|
+
}
|
|
8990
|
+
}).then(function (data) {
|
|
8991
|
+
return wrapResourceTypesForEnvironmentCollection(makeRequest, data);
|
|
8992
|
+
}));
|
|
8993
|
+
case 2:
|
|
8994
|
+
case "end":
|
|
8995
|
+
return _context4.stop();
|
|
8996
|
+
}
|
|
8997
|
+
}, _callee4);
|
|
8998
|
+
}))();
|
|
8999
|
+
},
|
|
9000
|
+
/**
|
|
9001
|
+
* Gets a collection of all resources for a given resource type based on native external references app installations in the environment
|
|
9002
|
+
* @param resourceTypeId - Id of the resourceType to get its resources
|
|
9003
|
+
* @param query - Either LookupQuery options with 'sys.urn[in]' param or a Search query with 'query' param, in both cases you can add pagination options
|
|
9004
|
+
* @return Promise for a collection of Resources for a given resourceTypeId
|
|
9005
|
+
* ```javascript
|
|
9006
|
+
* const contentful = require('contentful-management')
|
|
9007
|
+
*
|
|
9008
|
+
* const client = contentful.createClient({
|
|
9009
|
+
* accessToken: '<content_management_api_key>'
|
|
9010
|
+
* })
|
|
9011
|
+
*
|
|
9012
|
+
* // Search Query
|
|
9013
|
+
* client.getSpace('<space_id>')
|
|
9014
|
+
* .then((space) => space.getEnvironment('<environment_id>'))
|
|
9015
|
+
* // <search_query> is a string you want to search for in the external resources
|
|
9016
|
+
* .then((environment) => environment.getResourcesForResourceType('<resource_type_id>', {query: '<search_query>', limit: 10}))
|
|
9017
|
+
* .then((installations) => console.log(installations.items))
|
|
9018
|
+
* .catch(console.error)
|
|
9019
|
+
*
|
|
9020
|
+
* // Lookup query
|
|
9021
|
+
*
|
|
9022
|
+
* client.getSpace('<space_id>')
|
|
9023
|
+
* .then((space) => space.getEnvironment('<environment_id>'))
|
|
9024
|
+
* .then((environment) => environment.getResourcesForResourceType('<resource_type_id>', {'sys.urn[in]': '<resource_urn1>,<resource_urn2>', limit: 10}))
|
|
9025
|
+
* .then((installations) => console.log(installations.items))
|
|
9026
|
+
* .catch(console.error)
|
|
9027
|
+
* ```
|
|
9028
|
+
*/
|
|
9029
|
+
getResourcesForResourceType: function getResourcesForResourceType(resourceTypeId, query) {
|
|
9030
|
+
var _this5 = this;
|
|
9031
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
9032
|
+
var raw;
|
|
9033
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
9034
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
9035
|
+
case 0:
|
|
9036
|
+
raw = _this5.toPlainObject();
|
|
9037
|
+
return _context5.abrupt("return", makeRequest({
|
|
9038
|
+
entityType: 'Resource',
|
|
9039
|
+
action: 'getMany',
|
|
9040
|
+
params: {
|
|
9041
|
+
query: query,
|
|
9042
|
+
spaceId: raw.sys.space.sys.id,
|
|
9043
|
+
environmentId: raw.sys.id,
|
|
9044
|
+
resourceTypeId: resourceTypeId
|
|
9045
|
+
}
|
|
9046
|
+
}).then(function (data) {
|
|
9047
|
+
return wrapResourceCollection(makeRequest, data);
|
|
9048
|
+
}));
|
|
9049
|
+
case 2:
|
|
9050
|
+
case "end":
|
|
9051
|
+
return _context5.stop();
|
|
9052
|
+
}
|
|
9053
|
+
}, _callee5);
|
|
9054
|
+
}))();
|
|
8874
9055
|
}
|
|
8875
9056
|
};
|
|
8876
9057
|
}
|
|
@@ -14299,6 +14480,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14299
14480
|
/* harmony import */ var _concept__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./concept */ "./entities/concept.ts");
|
|
14300
14481
|
/* harmony import */ var _concept_scheme__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./concept-scheme */ "./entities/concept-scheme.ts");
|
|
14301
14482
|
/* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./resource-provider */ "./entities/resource-provider.ts");
|
|
14483
|
+
/* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./resource-type */ "./entities/resource-type.ts");
|
|
14484
|
+
/* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./resource */ "./entities/resource.ts");
|
|
14485
|
+
|
|
14486
|
+
|
|
14302
14487
|
|
|
14303
14488
|
|
|
14304
14489
|
|
|
@@ -14392,6 +14577,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14392
14577
|
release: _release__WEBPACK_IMPORTED_MODULE_32__,
|
|
14393
14578
|
releaseAction: _release_action__WEBPACK_IMPORTED_MODULE_33__,
|
|
14394
14579
|
resourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_54__,
|
|
14580
|
+
resourceType: _resource_type__WEBPACK_IMPORTED_MODULE_55__,
|
|
14581
|
+
resource: _resource__WEBPACK_IMPORTED_MODULE_56__,
|
|
14395
14582
|
role: _role__WEBPACK_IMPORTED_MODULE_34__,
|
|
14396
14583
|
scheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_35__,
|
|
14397
14584
|
snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_36__,
|
|
@@ -15096,6 +15283,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15096
15283
|
/* 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");
|
|
15097
15284
|
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
|
|
15098
15285
|
/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts");
|
|
15286
|
+
/* harmony import */ var ___WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! . */ "./entities/index.ts");
|
|
15287
|
+
|
|
15099
15288
|
|
|
15100
15289
|
|
|
15101
15290
|
|
|
@@ -15103,6 +15292,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15103
15292
|
* @private
|
|
15104
15293
|
*/
|
|
15105
15294
|
function createResourceProviderApi(makeRequest) {
|
|
15295
|
+
var wrapResourceType = ___WEBPACK_IMPORTED_MODULE_3__["default"].resourceType.wrapResourceType;
|
|
15106
15296
|
return {
|
|
15107
15297
|
/**
|
|
15108
15298
|
* Sends an update to the server with any changes made to the object's properties
|
|
@@ -15160,6 +15350,49 @@ function createResourceProviderApi(makeRequest) {
|
|
|
15160
15350
|
action: 'delete',
|
|
15161
15351
|
params: getParams(data)
|
|
15162
15352
|
});
|
|
15353
|
+
},
|
|
15354
|
+
getResourceType: function getResourceType(id) {
|
|
15355
|
+
return makeRequest({
|
|
15356
|
+
entityType: 'ResourceType',
|
|
15357
|
+
action: 'get',
|
|
15358
|
+
params: {
|
|
15359
|
+
organizationId: this.sys.organization.sys.id,
|
|
15360
|
+
appDefinitionId: this.sys.appDefinition.sys.id,
|
|
15361
|
+
resourceTypeId: id
|
|
15362
|
+
}
|
|
15363
|
+
}).then(function (data) {
|
|
15364
|
+
return wrapResourceType(makeRequest, data);
|
|
15365
|
+
});
|
|
15366
|
+
},
|
|
15367
|
+
upsertResourceType: function upsertResourceType(id, data) {
|
|
15368
|
+
return makeRequest({
|
|
15369
|
+
entityType: 'ResourceType',
|
|
15370
|
+
action: 'upsert',
|
|
15371
|
+
params: {
|
|
15372
|
+
organizationId: this.sys.organization.sys.id,
|
|
15373
|
+
appDefinitionId: this.sys.appDefinition.sys.id,
|
|
15374
|
+
resourceTypeId: id
|
|
15375
|
+
},
|
|
15376
|
+
headers: {},
|
|
15377
|
+
payload: data
|
|
15378
|
+
}).then(function (data) {
|
|
15379
|
+
return wrapResourceType(makeRequest, data);
|
|
15380
|
+
});
|
|
15381
|
+
},
|
|
15382
|
+
getResourceTypes: function getResourceTypes() {
|
|
15383
|
+
return makeRequest({
|
|
15384
|
+
entityType: 'ResourceType',
|
|
15385
|
+
action: 'getMany',
|
|
15386
|
+
params: {
|
|
15387
|
+
organizationId: this.sys.organization.sys.id,
|
|
15388
|
+
appDefinitionId: this.sys.appDefinition.sys.id
|
|
15389
|
+
}
|
|
15390
|
+
}).then(function (data) {
|
|
15391
|
+
data.items = data.items.map(function (item) {
|
|
15392
|
+
return wrapResourceType(makeRequest, item);
|
|
15393
|
+
});
|
|
15394
|
+
return data;
|
|
15395
|
+
});
|
|
15163
15396
|
}
|
|
15164
15397
|
};
|
|
15165
15398
|
}
|
|
@@ -15203,97 +15436,240 @@ function wrapResourceProvider(makeRequest, data) {
|
|
|
15203
15436
|
|
|
15204
15437
|
/***/ }),
|
|
15205
15438
|
|
|
15206
|
-
/***/ "./entities/
|
|
15207
|
-
|
|
15208
|
-
!*** ./entities/
|
|
15209
|
-
|
|
15439
|
+
/***/ "./entities/resource-type.ts":
|
|
15440
|
+
/*!***********************************!*\
|
|
15441
|
+
!*** ./entities/resource-type.ts ***!
|
|
15442
|
+
\***********************************/
|
|
15210
15443
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
15211
15444
|
|
|
15212
15445
|
"use strict";
|
|
15213
15446
|
__webpack_require__.r(__webpack_exports__);
|
|
15214
15447
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15215
|
-
/* harmony export */
|
|
15216
|
-
/* harmony export */
|
|
15448
|
+
/* harmony export */ wrapResourceType: function() { return /* binding */ wrapResourceType; },
|
|
15449
|
+
/* harmony export */ wrapResourceTypeforEnvironment: function() { return /* binding */ wrapResourceTypeforEnvironment; },
|
|
15450
|
+
/* harmony export */ wrapResourceTypesForEnvironmentCollection: function() { return /* binding */ wrapResourceTypesForEnvironmentCollection; }
|
|
15217
15451
|
/* harmony export */ });
|
|
15218
|
-
/* harmony import */ var
|
|
15219
|
-
/* harmony import */ var
|
|
15452
|
+
/* 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");
|
|
15453
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
|
|
15220
15454
|
/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts");
|
|
15221
15455
|
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
|
|
15222
15456
|
|
|
15223
15457
|
|
|
15224
15458
|
|
|
15225
15459
|
|
|
15460
|
+
var publicResourceTypeFields = ['name'];
|
|
15226
15461
|
/**
|
|
15227
15462
|
* @private
|
|
15228
15463
|
*/
|
|
15229
|
-
function
|
|
15230
|
-
var getParams = function getParams(data) {
|
|
15231
|
-
return {
|
|
15232
|
-
spaceId: data.sys.space.sys.id,
|
|
15233
|
-
roleId: data.sys.id
|
|
15234
|
-
};
|
|
15235
|
-
};
|
|
15464
|
+
function createResourceTypeApi(makeRequest) {
|
|
15236
15465
|
return {
|
|
15237
|
-
|
|
15466
|
+
/**
|
|
15467
|
+
* Sends an update to the server with any changes made to the object's properties
|
|
15468
|
+
* @return Object returned from the server with updated changes.
|
|
15469
|
+
* @example ```javascript
|
|
15470
|
+
* const contentful = require('contentful-management')
|
|
15471
|
+
*
|
|
15472
|
+
* const client = contentful.createClient({
|
|
15473
|
+
* accessToken: '<content_management_api_key>'
|
|
15474
|
+
* })
|
|
15475
|
+
*
|
|
15476
|
+
* client.getOrganization('<org_id>')
|
|
15477
|
+
* .then((org) => org.getAppDefinition('<app_def_id>'))
|
|
15478
|
+
* .then((appDefinition) => appDefinition.getResourceType())
|
|
15479
|
+
* .then((resourceType) => {
|
|
15480
|
+
* resourceType.name = '<new_name>'
|
|
15481
|
+
* return resourceType.upsert()
|
|
15482
|
+
* })
|
|
15483
|
+
* .catch(console.error)
|
|
15484
|
+
* ```
|
|
15485
|
+
*/
|
|
15486
|
+
upsert: function upsert() {
|
|
15238
15487
|
var data = this.toPlainObject();
|
|
15239
15488
|
return makeRequest({
|
|
15240
|
-
entityType: '
|
|
15241
|
-
action: '
|
|
15489
|
+
entityType: 'ResourceType',
|
|
15490
|
+
action: 'upsert',
|
|
15242
15491
|
params: getParams(data),
|
|
15243
|
-
|
|
15492
|
+
headers: {},
|
|
15493
|
+
payload: getUpsertParams(data)
|
|
15244
15494
|
}).then(function (data) {
|
|
15245
|
-
return
|
|
15495
|
+
return wrapResourceType(makeRequest, data);
|
|
15246
15496
|
});
|
|
15247
15497
|
},
|
|
15498
|
+
/**
|
|
15499
|
+
* Deletes this object on the server.
|
|
15500
|
+
* @return Promise for the deletion. It contains no data, but the Promise error case should be handled.
|
|
15501
|
+
* @example ```javascript
|
|
15502
|
+
* const contentful = require('contentful-management')
|
|
15503
|
+
*
|
|
15504
|
+
* const client = contentful.createClient({
|
|
15505
|
+
* accessToken: '<content_management_api_key>'
|
|
15506
|
+
* })
|
|
15507
|
+
*
|
|
15508
|
+
* client.getOrganization('<org_id>')
|
|
15509
|
+
* .then((org) => org.getAppDefinition('<app_def_id>'))
|
|
15510
|
+
* .then((appDefinition) => appDefinition.getResourceType())
|
|
15511
|
+
* .then((resourceType) => resourceType.delete())
|
|
15512
|
+
* .catch(console.error)
|
|
15513
|
+
* ```
|
|
15514
|
+
*/
|
|
15248
15515
|
delete: function del() {
|
|
15249
15516
|
var data = this.toPlainObject();
|
|
15250
15517
|
return makeRequest({
|
|
15251
|
-
entityType: '
|
|
15518
|
+
entityType: 'ResourceType',
|
|
15252
15519
|
action: 'delete',
|
|
15253
15520
|
params: getParams(data)
|
|
15254
15521
|
});
|
|
15255
15522
|
}
|
|
15256
15523
|
};
|
|
15257
15524
|
}
|
|
15525
|
+
var getParams = function getParams(data) {
|
|
15526
|
+
return {
|
|
15527
|
+
organizationId: data.sys.organization.sys.id,
|
|
15528
|
+
appDefinitionId: data.sys.appDefinition.sys.id,
|
|
15529
|
+
resourceTypeId: data.sys.id
|
|
15530
|
+
};
|
|
15531
|
+
};
|
|
15532
|
+
var getUpsertParams = function getUpsertParams(data) {
|
|
15533
|
+
return {
|
|
15534
|
+
name: data.name,
|
|
15535
|
+
defaultFieldMapping: data.defaultFieldMapping
|
|
15536
|
+
};
|
|
15537
|
+
};
|
|
15258
15538
|
|
|
15259
15539
|
/**
|
|
15260
15540
|
* @private
|
|
15261
15541
|
* @param makeRequest - function to make requests via an adapter
|
|
15262
|
-
* @param data - Raw
|
|
15263
|
-
* @return Wrapped
|
|
15542
|
+
* @param data - Raw Resource Type data
|
|
15543
|
+
* @return Wrapped Resource Type data
|
|
15264
15544
|
*/
|
|
15265
|
-
function
|
|
15266
|
-
var
|
|
15267
|
-
var
|
|
15268
|
-
return (0,
|
|
15545
|
+
function wrapResourceType(makeRequest, data) {
|
|
15546
|
+
var resourceType = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data));
|
|
15547
|
+
var ResourceTypeWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(resourceType, createResourceTypeApi(makeRequest));
|
|
15548
|
+
return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(ResourceTypeWithMethods);
|
|
15269
15549
|
}
|
|
15270
|
-
|
|
15271
|
-
|
|
15272
|
-
|
|
15273
|
-
|
|
15274
|
-
var
|
|
15550
|
+
function wrapResourceTypeforEnvironment(makeRequest, data) {
|
|
15551
|
+
var resourceType = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)(data);
|
|
15552
|
+
return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(resourceType);
|
|
15553
|
+
}
|
|
15554
|
+
var wrapResourceTypesForEnvironmentCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCursorPaginatedCollection)(wrapResourceTypeforEnvironment);
|
|
15275
15555
|
|
|
15276
15556
|
/***/ }),
|
|
15277
15557
|
|
|
15278
|
-
/***/ "./entities/
|
|
15279
|
-
|
|
15280
|
-
!*** ./entities/
|
|
15281
|
-
|
|
15558
|
+
/***/ "./entities/resource.ts":
|
|
15559
|
+
/*!******************************!*\
|
|
15560
|
+
!*** ./entities/resource.ts ***!
|
|
15561
|
+
\******************************/
|
|
15282
15562
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
15283
15563
|
|
|
15284
15564
|
"use strict";
|
|
15285
15565
|
__webpack_require__.r(__webpack_exports__);
|
|
15286
15566
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15287
|
-
/* harmony export */
|
|
15288
|
-
/* harmony export */
|
|
15289
|
-
/* harmony export */ wrapScheduledActionCollection: function() { return /* binding */ wrapScheduledActionCollection; }
|
|
15567
|
+
/* harmony export */ wrapResource: function() { return /* binding */ wrapResource; },
|
|
15568
|
+
/* harmony export */ wrapResourceCollection: function() { return /* binding */ wrapResourceCollection; }
|
|
15290
15569
|
/* harmony export */ });
|
|
15291
|
-
/* harmony import */ var
|
|
15292
|
-
/* harmony import */ var
|
|
15293
|
-
|
|
15294
|
-
|
|
15295
|
-
function
|
|
15296
|
-
var
|
|
15570
|
+
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
|
|
15571
|
+
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js");
|
|
15572
|
+
|
|
15573
|
+
|
|
15574
|
+
function wrapResource(makeRequest, data) {
|
|
15575
|
+
var resource = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)(data);
|
|
15576
|
+
return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(resource);
|
|
15577
|
+
}
|
|
15578
|
+
var wrapResourceCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_0__.wrapCursorPaginatedCollection)(wrapResource);
|
|
15579
|
+
|
|
15580
|
+
/***/ }),
|
|
15581
|
+
|
|
15582
|
+
/***/ "./entities/role.ts":
|
|
15583
|
+
/*!**************************!*\
|
|
15584
|
+
!*** ./entities/role.ts ***!
|
|
15585
|
+
\**************************/
|
|
15586
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
15587
|
+
|
|
15588
|
+
"use strict";
|
|
15589
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15590
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15591
|
+
/* harmony export */ wrapRole: function() { return /* binding */ wrapRole; },
|
|
15592
|
+
/* harmony export */ wrapRoleCollection: function() { return /* binding */ wrapRoleCollection; }
|
|
15593
|
+
/* harmony export */ });
|
|
15594
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
|
|
15595
|
+
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js");
|
|
15596
|
+
/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts");
|
|
15597
|
+
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
|
|
15598
|
+
|
|
15599
|
+
|
|
15600
|
+
|
|
15601
|
+
|
|
15602
|
+
/**
|
|
15603
|
+
* @private
|
|
15604
|
+
*/
|
|
15605
|
+
function createRoleApi(makeRequest) {
|
|
15606
|
+
var getParams = function getParams(data) {
|
|
15607
|
+
return {
|
|
15608
|
+
spaceId: data.sys.space.sys.id,
|
|
15609
|
+
roleId: data.sys.id
|
|
15610
|
+
};
|
|
15611
|
+
};
|
|
15612
|
+
return {
|
|
15613
|
+
update: function update() {
|
|
15614
|
+
var data = this.toPlainObject();
|
|
15615
|
+
return makeRequest({
|
|
15616
|
+
entityType: 'Role',
|
|
15617
|
+
action: 'update',
|
|
15618
|
+
params: getParams(data),
|
|
15619
|
+
payload: data
|
|
15620
|
+
}).then(function (data) {
|
|
15621
|
+
return wrapRole(makeRequest, data);
|
|
15622
|
+
});
|
|
15623
|
+
},
|
|
15624
|
+
delete: function del() {
|
|
15625
|
+
var data = this.toPlainObject();
|
|
15626
|
+
return makeRequest({
|
|
15627
|
+
entityType: 'Role',
|
|
15628
|
+
action: 'delete',
|
|
15629
|
+
params: getParams(data)
|
|
15630
|
+
});
|
|
15631
|
+
}
|
|
15632
|
+
};
|
|
15633
|
+
}
|
|
15634
|
+
|
|
15635
|
+
/**
|
|
15636
|
+
* @private
|
|
15637
|
+
* @param makeRequest - function to make requests via an adapter
|
|
15638
|
+
* @param data - Raw role data
|
|
15639
|
+
* @return Wrapped role data
|
|
15640
|
+
*/
|
|
15641
|
+
function wrapRole(makeRequest, data) {
|
|
15642
|
+
var role = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_0__["default"])(data));
|
|
15643
|
+
var roleWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_2__["default"])(role, createRoleApi(makeRequest));
|
|
15644
|
+
return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__.freezeSys)(roleWithMethods);
|
|
15645
|
+
}
|
|
15646
|
+
|
|
15647
|
+
/**
|
|
15648
|
+
* @private
|
|
15649
|
+
*/
|
|
15650
|
+
var wrapRoleCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrapCollection)(wrapRole);
|
|
15651
|
+
|
|
15652
|
+
/***/ }),
|
|
15653
|
+
|
|
15654
|
+
/***/ "./entities/scheduled-action.ts":
|
|
15655
|
+
/*!**************************************!*\
|
|
15656
|
+
!*** ./entities/scheduled-action.ts ***!
|
|
15657
|
+
\**************************************/
|
|
15658
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
15659
|
+
|
|
15660
|
+
"use strict";
|
|
15661
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15662
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15663
|
+
/* harmony export */ "default": function() { return /* binding */ getInstanceMethods; },
|
|
15664
|
+
/* harmony export */ wrapScheduledAction: function() { return /* binding */ wrapScheduledAction; },
|
|
15665
|
+
/* harmony export */ wrapScheduledActionCollection: function() { return /* binding */ wrapScheduledActionCollection; }
|
|
15666
|
+
/* harmony export */ });
|
|
15667
|
+
/* 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");
|
|
15668
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
|
|
15669
|
+
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
|
|
15670
|
+
/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts");
|
|
15671
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
15672
|
+
var _excluded = ["sys"];
|
|
15297
15673
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
15298
15674
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
|
|
15299
15675
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
@@ -17417,11 +17793,21 @@ var createPlainClient = function createPlainClient(makeRequest, defaults) {
|
|
|
17417
17793
|
upsert: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppInstallation', 'upsert'),
|
|
17418
17794
|
delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'AppInstallation', 'delete')
|
|
17419
17795
|
},
|
|
17796
|
+
resource: {
|
|
17797
|
+
getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Resource', 'getMany')
|
|
17798
|
+
},
|
|
17420
17799
|
resourceProvider: {
|
|
17421
17800
|
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ResourceProvider', 'get'),
|
|
17422
17801
|
upsert: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ResourceProvider', 'upsert'),
|
|
17423
17802
|
delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ResourceProvider', 'delete')
|
|
17424
17803
|
},
|
|
17804
|
+
resourceType: {
|
|
17805
|
+
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ResourceType', 'get'),
|
|
17806
|
+
getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ResourceType', 'getMany'),
|
|
17807
|
+
upsert: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ResourceType', 'upsert'),
|
|
17808
|
+
delete: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ResourceType', 'delete'),
|
|
17809
|
+
getForEnvironment: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ResourceType', 'getForEnvironment')
|
|
17810
|
+
},
|
|
17425
17811
|
extension: {
|
|
17426
17812
|
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Extension', 'get'),
|
|
17427
17813
|
getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Extension', 'getMany'),
|
|
@@ -17668,38 +18054,26 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
17668
18054
|
|
|
17669
18055
|
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
17670
18056
|
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
18057
|
+
var setFunctionLength = __webpack_require__(/*! set-function-length */ "../node_modules/set-function-length/index.js");
|
|
17671
18058
|
|
|
18059
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
17672
18060
|
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
17673
18061
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
17674
18062
|
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
17675
18063
|
|
|
17676
|
-
var $
|
|
17677
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
18064
|
+
var $defineProperty = __webpack_require__(/*! es-define-property */ "../node_modules/es-define-property/index.js");
|
|
17678
18065
|
var $max = GetIntrinsic('%Math.max%');
|
|
17679
18066
|
|
|
17680
|
-
if ($defineProperty) {
|
|
17681
|
-
try {
|
|
17682
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
17683
|
-
} catch (e) {
|
|
17684
|
-
// IE 8 has a broken defineProperty
|
|
17685
|
-
$defineProperty = null;
|
|
17686
|
-
}
|
|
17687
|
-
}
|
|
17688
|
-
|
|
17689
18067
|
module.exports = function callBind(originalFunction) {
|
|
17690
|
-
|
|
17691
|
-
|
|
17692
|
-
var desc = $gOPD(func, 'length');
|
|
17693
|
-
if (desc.configurable) {
|
|
17694
|
-
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
17695
|
-
$defineProperty(
|
|
17696
|
-
func,
|
|
17697
|
-
'length',
|
|
17698
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
17699
|
-
);
|
|
17700
|
-
}
|
|
18068
|
+
if (typeof originalFunction !== 'function') {
|
|
18069
|
+
throw new $TypeError('a function is required');
|
|
17701
18070
|
}
|
|
17702
|
-
|
|
18071
|
+
var func = $reflectApply(bind, $call, arguments);
|
|
18072
|
+
return setFunctionLength(
|
|
18073
|
+
func,
|
|
18074
|
+
1 + $max(0, originalFunction.length - (arguments.length - 1)),
|
|
18075
|
+
true
|
|
18076
|
+
);
|
|
17703
18077
|
};
|
|
17704
18078
|
|
|
17705
18079
|
var applyBind = function applyBind() {
|
|
@@ -18386,7 +18760,7 @@ function rateLimit(instance) {
|
|
|
18386
18760
|
}
|
|
18387
18761
|
}
|
|
18388
18762
|
if (!retryErrorType) {
|
|
18389
|
-
_context.next =
|
|
18763
|
+
_context.next = 19;
|
|
18390
18764
|
break;
|
|
18391
18765
|
}
|
|
18392
18766
|
// convert to ms and add jitter
|
|
@@ -18401,20 +18775,12 @@ function rateLimit(instance) {
|
|
|
18401
18775
|
requests still use the original http/httpsAgent property */
|
|
18402
18776
|
delete config.httpAgent;
|
|
18403
18777
|
delete config.httpsAgent;
|
|
18404
|
-
|
|
18405
|
-
/**
|
|
18406
|
-
* Hack to mitigate (likely) bug introduced in axios v1.7.0 where `url`,
|
|
18407
|
-
* when using the default `xhr` adapter, is a fully qualified URL (instead of a path),
|
|
18408
|
-
* which somehow causes the request params to be repeatedly appended
|
|
18409
|
-
* to the final request URL upon each retry.
|
|
18410
|
-
*/
|
|
18411
|
-
config.url = config.url.split('?')[0];
|
|
18412
18778
|
return _context.abrupt("return", delay(wait).then(function () {
|
|
18413
18779
|
return instance(config);
|
|
18414
18780
|
}));
|
|
18415
|
-
case
|
|
18781
|
+
case 19:
|
|
18416
18782
|
return _context.abrupt("return", Promise.reject(error));
|
|
18417
|
-
case
|
|
18783
|
+
case 20:
|
|
18418
18784
|
case "end":
|
|
18419
18785
|
return _context.stop();
|
|
18420
18786
|
}
|
|
@@ -20126,6 +20492,205 @@ module.exports = {
|
|
|
20126
20492
|
};
|
|
20127
20493
|
|
|
20128
20494
|
|
|
20495
|
+
/***/ }),
|
|
20496
|
+
|
|
20497
|
+
/***/ "../node_modules/define-data-property/index.js":
|
|
20498
|
+
/*!*****************************************************!*\
|
|
20499
|
+
!*** ../node_modules/define-data-property/index.js ***!
|
|
20500
|
+
\*****************************************************/
|
|
20501
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20502
|
+
|
|
20503
|
+
"use strict";
|
|
20504
|
+
|
|
20505
|
+
|
|
20506
|
+
var $defineProperty = __webpack_require__(/*! es-define-property */ "../node_modules/es-define-property/index.js");
|
|
20507
|
+
|
|
20508
|
+
var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "../node_modules/es-errors/syntax.js");
|
|
20509
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
20510
|
+
|
|
20511
|
+
var gopd = __webpack_require__(/*! gopd */ "../node_modules/gopd/index.js");
|
|
20512
|
+
|
|
20513
|
+
/** @type {import('.')} */
|
|
20514
|
+
module.exports = function defineDataProperty(
|
|
20515
|
+
obj,
|
|
20516
|
+
property,
|
|
20517
|
+
value
|
|
20518
|
+
) {
|
|
20519
|
+
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
20520
|
+
throw new $TypeError('`obj` must be an object or a function`');
|
|
20521
|
+
}
|
|
20522
|
+
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
20523
|
+
throw new $TypeError('`property` must be a string or a symbol`');
|
|
20524
|
+
}
|
|
20525
|
+
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
20526
|
+
throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
|
|
20527
|
+
}
|
|
20528
|
+
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
20529
|
+
throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
|
|
20530
|
+
}
|
|
20531
|
+
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
20532
|
+
throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
|
|
20533
|
+
}
|
|
20534
|
+
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
20535
|
+
throw new $TypeError('`loose`, if provided, must be a boolean');
|
|
20536
|
+
}
|
|
20537
|
+
|
|
20538
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
20539
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
20540
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
20541
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
20542
|
+
|
|
20543
|
+
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
|
20544
|
+
var desc = !!gopd && gopd(obj, property);
|
|
20545
|
+
|
|
20546
|
+
if ($defineProperty) {
|
|
20547
|
+
$defineProperty(obj, property, {
|
|
20548
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
20549
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
20550
|
+
value: value,
|
|
20551
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
20552
|
+
});
|
|
20553
|
+
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
20554
|
+
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
20555
|
+
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
20556
|
+
} else {
|
|
20557
|
+
throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
20558
|
+
}
|
|
20559
|
+
};
|
|
20560
|
+
|
|
20561
|
+
|
|
20562
|
+
/***/ }),
|
|
20563
|
+
|
|
20564
|
+
/***/ "../node_modules/es-define-property/index.js":
|
|
20565
|
+
/*!***************************************************!*\
|
|
20566
|
+
!*** ../node_modules/es-define-property/index.js ***!
|
|
20567
|
+
\***************************************************/
|
|
20568
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20569
|
+
|
|
20570
|
+
"use strict";
|
|
20571
|
+
|
|
20572
|
+
|
|
20573
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
20574
|
+
|
|
20575
|
+
/** @type {import('.')} */
|
|
20576
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false;
|
|
20577
|
+
if ($defineProperty) {
|
|
20578
|
+
try {
|
|
20579
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
20580
|
+
} catch (e) {
|
|
20581
|
+
// IE 8 has a broken defineProperty
|
|
20582
|
+
$defineProperty = false;
|
|
20583
|
+
}
|
|
20584
|
+
}
|
|
20585
|
+
|
|
20586
|
+
module.exports = $defineProperty;
|
|
20587
|
+
|
|
20588
|
+
|
|
20589
|
+
/***/ }),
|
|
20590
|
+
|
|
20591
|
+
/***/ "../node_modules/es-errors/eval.js":
|
|
20592
|
+
/*!*****************************************!*\
|
|
20593
|
+
!*** ../node_modules/es-errors/eval.js ***!
|
|
20594
|
+
\*****************************************/
|
|
20595
|
+
/***/ (function(module) {
|
|
20596
|
+
|
|
20597
|
+
"use strict";
|
|
20598
|
+
|
|
20599
|
+
|
|
20600
|
+
/** @type {import('./eval')} */
|
|
20601
|
+
module.exports = EvalError;
|
|
20602
|
+
|
|
20603
|
+
|
|
20604
|
+
/***/ }),
|
|
20605
|
+
|
|
20606
|
+
/***/ "../node_modules/es-errors/index.js":
|
|
20607
|
+
/*!******************************************!*\
|
|
20608
|
+
!*** ../node_modules/es-errors/index.js ***!
|
|
20609
|
+
\******************************************/
|
|
20610
|
+
/***/ (function(module) {
|
|
20611
|
+
|
|
20612
|
+
"use strict";
|
|
20613
|
+
|
|
20614
|
+
|
|
20615
|
+
/** @type {import('.')} */
|
|
20616
|
+
module.exports = Error;
|
|
20617
|
+
|
|
20618
|
+
|
|
20619
|
+
/***/ }),
|
|
20620
|
+
|
|
20621
|
+
/***/ "../node_modules/es-errors/range.js":
|
|
20622
|
+
/*!******************************************!*\
|
|
20623
|
+
!*** ../node_modules/es-errors/range.js ***!
|
|
20624
|
+
\******************************************/
|
|
20625
|
+
/***/ (function(module) {
|
|
20626
|
+
|
|
20627
|
+
"use strict";
|
|
20628
|
+
|
|
20629
|
+
|
|
20630
|
+
/** @type {import('./range')} */
|
|
20631
|
+
module.exports = RangeError;
|
|
20632
|
+
|
|
20633
|
+
|
|
20634
|
+
/***/ }),
|
|
20635
|
+
|
|
20636
|
+
/***/ "../node_modules/es-errors/ref.js":
|
|
20637
|
+
/*!****************************************!*\
|
|
20638
|
+
!*** ../node_modules/es-errors/ref.js ***!
|
|
20639
|
+
\****************************************/
|
|
20640
|
+
/***/ (function(module) {
|
|
20641
|
+
|
|
20642
|
+
"use strict";
|
|
20643
|
+
|
|
20644
|
+
|
|
20645
|
+
/** @type {import('./ref')} */
|
|
20646
|
+
module.exports = ReferenceError;
|
|
20647
|
+
|
|
20648
|
+
|
|
20649
|
+
/***/ }),
|
|
20650
|
+
|
|
20651
|
+
/***/ "../node_modules/es-errors/syntax.js":
|
|
20652
|
+
/*!*******************************************!*\
|
|
20653
|
+
!*** ../node_modules/es-errors/syntax.js ***!
|
|
20654
|
+
\*******************************************/
|
|
20655
|
+
/***/ (function(module) {
|
|
20656
|
+
|
|
20657
|
+
"use strict";
|
|
20658
|
+
|
|
20659
|
+
|
|
20660
|
+
/** @type {import('./syntax')} */
|
|
20661
|
+
module.exports = SyntaxError;
|
|
20662
|
+
|
|
20663
|
+
|
|
20664
|
+
/***/ }),
|
|
20665
|
+
|
|
20666
|
+
/***/ "../node_modules/es-errors/type.js":
|
|
20667
|
+
/*!*****************************************!*\
|
|
20668
|
+
!*** ../node_modules/es-errors/type.js ***!
|
|
20669
|
+
\*****************************************/
|
|
20670
|
+
/***/ (function(module) {
|
|
20671
|
+
|
|
20672
|
+
"use strict";
|
|
20673
|
+
|
|
20674
|
+
|
|
20675
|
+
/** @type {import('./type')} */
|
|
20676
|
+
module.exports = TypeError;
|
|
20677
|
+
|
|
20678
|
+
|
|
20679
|
+
/***/ }),
|
|
20680
|
+
|
|
20681
|
+
/***/ "../node_modules/es-errors/uri.js":
|
|
20682
|
+
/*!****************************************!*\
|
|
20683
|
+
!*** ../node_modules/es-errors/uri.js ***!
|
|
20684
|
+
\****************************************/
|
|
20685
|
+
/***/ (function(module) {
|
|
20686
|
+
|
|
20687
|
+
"use strict";
|
|
20688
|
+
|
|
20689
|
+
|
|
20690
|
+
/** @type {import('./uri')} */
|
|
20691
|
+
module.exports = URIError;
|
|
20692
|
+
|
|
20693
|
+
|
|
20129
20694
|
/***/ }),
|
|
20130
20695
|
|
|
20131
20696
|
/***/ "../node_modules/function-bind/implementation.js":
|
|
@@ -20250,9 +20815,15 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
20250
20815
|
|
|
20251
20816
|
var undefined;
|
|
20252
20817
|
|
|
20253
|
-
var $
|
|
20818
|
+
var $Error = __webpack_require__(/*! es-errors */ "../node_modules/es-errors/index.js");
|
|
20819
|
+
var $EvalError = __webpack_require__(/*! es-errors/eval */ "../node_modules/es-errors/eval.js");
|
|
20820
|
+
var $RangeError = __webpack_require__(/*! es-errors/range */ "../node_modules/es-errors/range.js");
|
|
20821
|
+
var $ReferenceError = __webpack_require__(/*! es-errors/ref */ "../node_modules/es-errors/ref.js");
|
|
20822
|
+
var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "../node_modules/es-errors/syntax.js");
|
|
20823
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
20824
|
+
var $URIError = __webpack_require__(/*! es-errors/uri */ "../node_modules/es-errors/uri.js");
|
|
20825
|
+
|
|
20254
20826
|
var $Function = Function;
|
|
20255
|
-
var $TypeError = TypeError;
|
|
20256
20827
|
|
|
20257
20828
|
// eslint-disable-next-line consistent-return
|
|
20258
20829
|
var getEvalledConstructor = function (expressionSyntax) {
|
|
@@ -20304,6 +20875,7 @@ var needsEval = {};
|
|
|
20304
20875
|
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
|
20305
20876
|
|
|
20306
20877
|
var INTRINSICS = {
|
|
20878
|
+
__proto__: null,
|
|
20307
20879
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
20308
20880
|
'%Array%': Array,
|
|
20309
20881
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
@@ -20324,9 +20896,9 @@ var INTRINSICS = {
|
|
|
20324
20896
|
'%decodeURIComponent%': decodeURIComponent,
|
|
20325
20897
|
'%encodeURI%': encodeURI,
|
|
20326
20898
|
'%encodeURIComponent%': encodeURIComponent,
|
|
20327
|
-
'%Error%': Error,
|
|
20899
|
+
'%Error%': $Error,
|
|
20328
20900
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
20329
|
-
'%EvalError%': EvalError,
|
|
20901
|
+
'%EvalError%': $EvalError,
|
|
20330
20902
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
20331
20903
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
20332
20904
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
@@ -20348,8 +20920,8 @@ var INTRINSICS = {
|
|
|
20348
20920
|
'%parseInt%': parseInt,
|
|
20349
20921
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
20350
20922
|
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
20351
|
-
'%RangeError%': RangeError,
|
|
20352
|
-
'%ReferenceError%': ReferenceError,
|
|
20923
|
+
'%RangeError%': $RangeError,
|
|
20924
|
+
'%ReferenceError%': $ReferenceError,
|
|
20353
20925
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
20354
20926
|
'%RegExp%': RegExp,
|
|
20355
20927
|
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
@@ -20366,7 +20938,7 @@ var INTRINSICS = {
|
|
|
20366
20938
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
20367
20939
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
20368
20940
|
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
20369
|
-
'%URIError%': URIError,
|
|
20941
|
+
'%URIError%': $URIError,
|
|
20370
20942
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
20371
20943
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
20372
20944
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
@@ -20408,6 +20980,7 @@ var doEval = function doEval(name) {
|
|
|
20408
20980
|
};
|
|
20409
20981
|
|
|
20410
20982
|
var LEGACY_ALIASES = {
|
|
20983
|
+
__proto__: null,
|
|
20411
20984
|
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
20412
20985
|
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
20413
20986
|
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
@@ -20462,7 +21035,7 @@ var LEGACY_ALIASES = {
|
|
|
20462
21035
|
};
|
|
20463
21036
|
|
|
20464
21037
|
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
20465
|
-
var hasOwn = __webpack_require__(/*!
|
|
21038
|
+
var hasOwn = __webpack_require__(/*! hasown */ "../node_modules/hasown/index.js");
|
|
20466
21039
|
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
20467
21040
|
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
20468
21041
|
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
@@ -20599,6 +21172,66 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
20599
21172
|
};
|
|
20600
21173
|
|
|
20601
21174
|
|
|
21175
|
+
/***/ }),
|
|
21176
|
+
|
|
21177
|
+
/***/ "../node_modules/gopd/index.js":
|
|
21178
|
+
/*!*************************************!*\
|
|
21179
|
+
!*** ../node_modules/gopd/index.js ***!
|
|
21180
|
+
\*************************************/
|
|
21181
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21182
|
+
|
|
21183
|
+
"use strict";
|
|
21184
|
+
|
|
21185
|
+
|
|
21186
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
21187
|
+
|
|
21188
|
+
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
21189
|
+
|
|
21190
|
+
if ($gOPD) {
|
|
21191
|
+
try {
|
|
21192
|
+
$gOPD([], 'length');
|
|
21193
|
+
} catch (e) {
|
|
21194
|
+
// IE 8 has a broken gOPD
|
|
21195
|
+
$gOPD = null;
|
|
21196
|
+
}
|
|
21197
|
+
}
|
|
21198
|
+
|
|
21199
|
+
module.exports = $gOPD;
|
|
21200
|
+
|
|
21201
|
+
|
|
21202
|
+
/***/ }),
|
|
21203
|
+
|
|
21204
|
+
/***/ "../node_modules/has-property-descriptors/index.js":
|
|
21205
|
+
/*!*********************************************************!*\
|
|
21206
|
+
!*** ../node_modules/has-property-descriptors/index.js ***!
|
|
21207
|
+
\*********************************************************/
|
|
21208
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21209
|
+
|
|
21210
|
+
"use strict";
|
|
21211
|
+
|
|
21212
|
+
|
|
21213
|
+
var $defineProperty = __webpack_require__(/*! es-define-property */ "../node_modules/es-define-property/index.js");
|
|
21214
|
+
|
|
21215
|
+
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
21216
|
+
return !!$defineProperty;
|
|
21217
|
+
};
|
|
21218
|
+
|
|
21219
|
+
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
21220
|
+
// node v0.6 has a bug where array lengths can be Set but not Defined
|
|
21221
|
+
if (!$defineProperty) {
|
|
21222
|
+
return null;
|
|
21223
|
+
}
|
|
21224
|
+
try {
|
|
21225
|
+
return $defineProperty([], 'length', { value: 1 }).length !== 1;
|
|
21226
|
+
} catch (e) {
|
|
21227
|
+
// In Firefox 4-22, defining length on an array throws an exception.
|
|
21228
|
+
return true;
|
|
21229
|
+
}
|
|
21230
|
+
};
|
|
21231
|
+
|
|
21232
|
+
module.exports = hasPropertyDescriptors;
|
|
21233
|
+
|
|
21234
|
+
|
|
20602
21235
|
/***/ }),
|
|
20603
21236
|
|
|
20604
21237
|
/***/ "../node_modules/has-proto/index.js":
|
|
@@ -20611,13 +21244,17 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
20611
21244
|
|
|
20612
21245
|
|
|
20613
21246
|
var test = {
|
|
21247
|
+
__proto__: null,
|
|
20614
21248
|
foo: {}
|
|
20615
21249
|
};
|
|
20616
21250
|
|
|
20617
21251
|
var $Object = Object;
|
|
20618
21252
|
|
|
21253
|
+
/** @type {import('.')} */
|
|
20619
21254
|
module.exports = function hasProto() {
|
|
20620
|
-
|
|
21255
|
+
// @ts-expect-error: TS errors on an inherited property for some reason
|
|
21256
|
+
return { __proto__: test }.foo === test.foo
|
|
21257
|
+
&& !(test instanceof $Object);
|
|
20621
21258
|
};
|
|
20622
21259
|
|
|
20623
21260
|
|
|
@@ -20700,18 +21337,21 @@ module.exports = function hasSymbols() {
|
|
|
20700
21337
|
|
|
20701
21338
|
/***/ }),
|
|
20702
21339
|
|
|
20703
|
-
/***/ "../node_modules/
|
|
20704
|
-
|
|
20705
|
-
!*** ../node_modules/
|
|
20706
|
-
|
|
21340
|
+
/***/ "../node_modules/hasown/index.js":
|
|
21341
|
+
/*!***************************************!*\
|
|
21342
|
+
!*** ../node_modules/hasown/index.js ***!
|
|
21343
|
+
\***************************************/
|
|
20707
21344
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20708
21345
|
|
|
20709
21346
|
"use strict";
|
|
20710
21347
|
|
|
20711
21348
|
|
|
21349
|
+
var call = Function.prototype.call;
|
|
21350
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
20712
21351
|
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
20713
21352
|
|
|
20714
|
-
|
|
21353
|
+
/** @type {import('.')} */
|
|
21354
|
+
module.exports = bind.call(call, $hasOwn);
|
|
20715
21355
|
|
|
20716
21356
|
|
|
20717
21357
|
/***/ }),
|
|
@@ -21217,6 +21857,17 @@ module.exports = function inspect_(obj, options, depth, seen) {
|
|
|
21217
21857
|
if (isString(obj)) {
|
|
21218
21858
|
return markBoxed(inspect(String(obj)));
|
|
21219
21859
|
}
|
|
21860
|
+
// note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
|
|
21861
|
+
/* eslint-env browser */
|
|
21862
|
+
if (typeof window !== 'undefined' && obj === window) {
|
|
21863
|
+
return '{ [object Window] }';
|
|
21864
|
+
}
|
|
21865
|
+
if (
|
|
21866
|
+
(typeof globalThis !== 'undefined' && obj === globalThis)
|
|
21867
|
+
|| (typeof __webpack_require__.g !== 'undefined' && obj === __webpack_require__.g)
|
|
21868
|
+
) {
|
|
21869
|
+
return '{ [object globalThis] }';
|
|
21870
|
+
}
|
|
21220
21871
|
if (!isDate(obj) && !isRegExp(obj)) {
|
|
21221
21872
|
var ys = arrObjKeys(obj, inspect);
|
|
21222
21873
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
@@ -21607,6 +22258,59 @@ module.exports = pThrottle;
|
|
|
21607
22258
|
module.exports.AbortError = AbortError;
|
|
21608
22259
|
|
|
21609
22260
|
|
|
22261
|
+
/***/ }),
|
|
22262
|
+
|
|
22263
|
+
/***/ "../node_modules/set-function-length/index.js":
|
|
22264
|
+
/*!****************************************************!*\
|
|
22265
|
+
!*** ../node_modules/set-function-length/index.js ***!
|
|
22266
|
+
\****************************************************/
|
|
22267
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
22268
|
+
|
|
22269
|
+
"use strict";
|
|
22270
|
+
|
|
22271
|
+
|
|
22272
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
22273
|
+
var define = __webpack_require__(/*! define-data-property */ "../node_modules/define-data-property/index.js");
|
|
22274
|
+
var hasDescriptors = __webpack_require__(/*! has-property-descriptors */ "../node_modules/has-property-descriptors/index.js")();
|
|
22275
|
+
var gOPD = __webpack_require__(/*! gopd */ "../node_modules/gopd/index.js");
|
|
22276
|
+
|
|
22277
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
22278
|
+
var $floor = GetIntrinsic('%Math.floor%');
|
|
22279
|
+
|
|
22280
|
+
/** @type {import('.')} */
|
|
22281
|
+
module.exports = function setFunctionLength(fn, length) {
|
|
22282
|
+
if (typeof fn !== 'function') {
|
|
22283
|
+
throw new $TypeError('`fn` is not a function');
|
|
22284
|
+
}
|
|
22285
|
+
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
|
|
22286
|
+
throw new $TypeError('`length` must be a positive 32-bit integer');
|
|
22287
|
+
}
|
|
22288
|
+
|
|
22289
|
+
var loose = arguments.length > 2 && !!arguments[2];
|
|
22290
|
+
|
|
22291
|
+
var functionLengthIsConfigurable = true;
|
|
22292
|
+
var functionLengthIsWritable = true;
|
|
22293
|
+
if ('length' in fn && gOPD) {
|
|
22294
|
+
var desc = gOPD(fn, 'length');
|
|
22295
|
+
if (desc && !desc.configurable) {
|
|
22296
|
+
functionLengthIsConfigurable = false;
|
|
22297
|
+
}
|
|
22298
|
+
if (desc && !desc.writable) {
|
|
22299
|
+
functionLengthIsWritable = false;
|
|
22300
|
+
}
|
|
22301
|
+
}
|
|
22302
|
+
|
|
22303
|
+
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
22304
|
+
if (hasDescriptors) {
|
|
22305
|
+
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
|
|
22306
|
+
} else {
|
|
22307
|
+
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
|
|
22308
|
+
}
|
|
22309
|
+
}
|
|
22310
|
+
return fn;
|
|
22311
|
+
};
|
|
22312
|
+
|
|
22313
|
+
|
|
21610
22314
|
/***/ }),
|
|
21611
22315
|
|
|
21612
22316
|
/***/ "../node_modules/side-channel/index.js":
|
|
@@ -21938,7 +22642,11 @@ const getBodyLength = async (body) => {
|
|
|
21938
22642
|
}
|
|
21939
22643
|
|
|
21940
22644
|
if(_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isSpecCompliantForm(body)) {
|
|
21941
|
-
|
|
22645
|
+
const _request = new Request(_platform_index_js__WEBPACK_IMPORTED_MODULE_0__["default"].origin, {
|
|
22646
|
+
method: 'POST',
|
|
22647
|
+
body,
|
|
22648
|
+
});
|
|
22649
|
+
return (await _request.arrayBuffer()).byteLength;
|
|
21942
22650
|
}
|
|
21943
22651
|
|
|
21944
22652
|
if(_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isArrayBufferView(body) || _utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].isArrayBuffer(body)) {
|
|
@@ -21978,18 +22686,13 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
21978
22686
|
|
|
21979
22687
|
responseType = responseType ? (responseType + '').toLowerCase() : 'text';
|
|
21980
22688
|
|
|
21981
|
-
let
|
|
21982
|
-
(0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__["default"])([signal, cancelToken], timeout) : [];
|
|
22689
|
+
let composedSignal = (0,_helpers_composeSignals_js__WEBPACK_IMPORTED_MODULE_4__["default"])([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
|
|
21983
22690
|
|
|
21984
|
-
let
|
|
22691
|
+
let request;
|
|
21985
22692
|
|
|
21986
|
-
const
|
|
21987
|
-
|
|
21988
|
-
|
|
21989
|
-
});
|
|
21990
|
-
|
|
21991
|
-
finished = true;
|
|
21992
|
-
}
|
|
22693
|
+
const unsubscribe = composedSignal && composedSignal.unsubscribe && (() => {
|
|
22694
|
+
composedSignal.unsubscribe();
|
|
22695
|
+
});
|
|
21993
22696
|
|
|
21994
22697
|
let requestContentLength;
|
|
21995
22698
|
|
|
@@ -22016,7 +22719,7 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
22016
22719
|
(0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.progressEventReducer)((0,_helpers_progressEventReducer_js__WEBPACK_IMPORTED_MODULE_5__.asyncDecorator)(onUploadProgress))
|
|
22017
22720
|
);
|
|
22018
22721
|
|
|
22019
|
-
data = (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_6__.trackStream)(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush
|
|
22722
|
+
data = (0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_6__.trackStream)(_request.body, DEFAULT_CHUNK_SIZE, onProgress, flush);
|
|
22020
22723
|
}
|
|
22021
22724
|
}
|
|
22022
22725
|
|
|
@@ -22026,7 +22729,7 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
22026
22729
|
|
|
22027
22730
|
// Cloudflare Workers throws when credentials are defined
|
|
22028
22731
|
// see https://github.com/cloudflare/workerd/issues/902
|
|
22029
|
-
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
22732
|
+
const isCredentialsSupported = "credentials" in Request.prototype;
|
|
22030
22733
|
request = new Request(url, {
|
|
22031
22734
|
...fetchOptions,
|
|
22032
22735
|
signal: composedSignal,
|
|
@@ -22041,7 +22744,7 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
22041
22744
|
|
|
22042
22745
|
const isStreamResponse = supportsResponseStream && (responseType === 'stream' || responseType === 'response');
|
|
22043
22746
|
|
|
22044
|
-
if (supportsResponseStream && (onDownloadProgress || isStreamResponse)) {
|
|
22747
|
+
if (supportsResponseStream && (onDownloadProgress || (isStreamResponse && unsubscribe))) {
|
|
22045
22748
|
const options = {};
|
|
22046
22749
|
|
|
22047
22750
|
['status', 'statusText', 'headers'].forEach(prop => {
|
|
@@ -22058,8 +22761,8 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
22058
22761
|
response = new Response(
|
|
22059
22762
|
(0,_helpers_trackStream_js__WEBPACK_IMPORTED_MODULE_6__.trackStream)(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
|
|
22060
22763
|
flush && flush();
|
|
22061
|
-
|
|
22062
|
-
}
|
|
22764
|
+
unsubscribe && unsubscribe();
|
|
22765
|
+
}),
|
|
22063
22766
|
options
|
|
22064
22767
|
);
|
|
22065
22768
|
}
|
|
@@ -22068,9 +22771,7 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
22068
22771
|
|
|
22069
22772
|
let responseData = await resolvers[_utils_js__WEBPACK_IMPORTED_MODULE_1__["default"].findKey(resolvers, responseType) || 'text'](response, config);
|
|
22070
22773
|
|
|
22071
|
-
!isStreamResponse &&
|
|
22072
|
-
|
|
22073
|
-
stopTimeout && stopTimeout();
|
|
22774
|
+
!isStreamResponse && unsubscribe && unsubscribe();
|
|
22074
22775
|
|
|
22075
22776
|
return await new Promise((resolve, reject) => {
|
|
22076
22777
|
(0,_core_settle_js__WEBPACK_IMPORTED_MODULE_7__["default"])(resolve, reject, {
|
|
@@ -22083,7 +22784,7 @@ const resolveBodyLength = async (headers, body) => {
|
|
|
22083
22784
|
})
|
|
22084
22785
|
})
|
|
22085
22786
|
} catch (err) {
|
|
22086
|
-
|
|
22787
|
+
unsubscribe && unsubscribe();
|
|
22087
22788
|
|
|
22088
22789
|
if (err && err.name === 'TypeError' && /fetch/i.test(err.message)) {
|
|
22089
22790
|
throw Object.assign(
|
|
@@ -22553,6 +23254,20 @@ class CancelToken {
|
|
|
22553
23254
|
}
|
|
22554
23255
|
}
|
|
22555
23256
|
|
|
23257
|
+
toAbortSignal() {
|
|
23258
|
+
const controller = new AbortController();
|
|
23259
|
+
|
|
23260
|
+
const abort = (err) => {
|
|
23261
|
+
controller.abort(err);
|
|
23262
|
+
};
|
|
23263
|
+
|
|
23264
|
+
this.subscribe(abort);
|
|
23265
|
+
|
|
23266
|
+
controller.signal.unsubscribe = () => this.unsubscribe(abort);
|
|
23267
|
+
|
|
23268
|
+
return controller.signal;
|
|
23269
|
+
}
|
|
23270
|
+
|
|
22556
23271
|
/**
|
|
22557
23272
|
* Returns an object that contains a new `CancelToken` and a function that, when called,
|
|
22558
23273
|
* cancels the `CancelToken`.
|
|
@@ -23959,7 +24674,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23959
24674
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
23960
24675
|
/* harmony export */ VERSION: function() { return /* binding */ VERSION; }
|
|
23961
24676
|
/* harmony export */ });
|
|
23962
|
-
const VERSION = "1.7.
|
|
24677
|
+
const VERSION = "1.7.7";
|
|
23963
24678
|
|
|
23964
24679
|
/***/ }),
|
|
23965
24680
|
|
|
@@ -24259,49 +24974,52 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
24259
24974
|
__webpack_require__.r(__webpack_exports__);
|
|
24260
24975
|
/* harmony import */ var _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../cancel/CanceledError.js */ "../node_modules/axios/lib/cancel/CanceledError.js");
|
|
24261
24976
|
/* harmony import */ var _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../core/AxiosError.js */ "../node_modules/axios/lib/core/AxiosError.js");
|
|
24977
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils.js */ "../node_modules/axios/lib/utils.js");
|
|
24978
|
+
|
|
24262
24979
|
|
|
24263
24980
|
|
|
24264
24981
|
|
|
24265
24982
|
const composeSignals = (signals, timeout) => {
|
|
24266
|
-
|
|
24983
|
+
const {length} = (signals = signals ? signals.filter(Boolean) : []);
|
|
24267
24984
|
|
|
24268
|
-
|
|
24985
|
+
if (timeout || length) {
|
|
24986
|
+
let controller = new AbortController();
|
|
24269
24987
|
|
|
24270
|
-
|
|
24271
|
-
if (!aborted) {
|
|
24272
|
-
aborted = true;
|
|
24273
|
-
unsubscribe();
|
|
24274
|
-
const err = cancel instanceof Error ? cancel : this.reason;
|
|
24275
|
-
controller.abort(err instanceof _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"] ? err : new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_1__["default"](err instanceof Error ? err.message : err));
|
|
24276
|
-
}
|
|
24277
|
-
}
|
|
24988
|
+
let aborted;
|
|
24278
24989
|
|
|
24279
|
-
|
|
24280
|
-
|
|
24281
|
-
|
|
24990
|
+
const onabort = function (reason) {
|
|
24991
|
+
if (!aborted) {
|
|
24992
|
+
aborted = true;
|
|
24993
|
+
unsubscribe();
|
|
24994
|
+
const err = reason instanceof Error ? reason : this.reason;
|
|
24995
|
+
controller.abort(err instanceof _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"] ? err : new _cancel_CanceledError_js__WEBPACK_IMPORTED_MODULE_1__["default"](err instanceof Error ? err.message : err));
|
|
24996
|
+
}
|
|
24997
|
+
}
|
|
24282
24998
|
|
|
24283
|
-
|
|
24284
|
-
if (signals) {
|
|
24285
|
-
timer && clearTimeout(timer);
|
|
24999
|
+
let timer = timeout && setTimeout(() => {
|
|
24286
25000
|
timer = null;
|
|
24287
|
-
|
|
24288
|
-
|
|
24289
|
-
|
|
24290
|
-
|
|
24291
|
-
signals
|
|
25001
|
+
onabort(new _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"](`timeout ${timeout} of ms exceeded`, _core_AxiosError_js__WEBPACK_IMPORTED_MODULE_0__["default"].ETIMEDOUT))
|
|
25002
|
+
}, timeout)
|
|
25003
|
+
|
|
25004
|
+
const unsubscribe = () => {
|
|
25005
|
+
if (signals) {
|
|
25006
|
+
timer && clearTimeout(timer);
|
|
25007
|
+
timer = null;
|
|
25008
|
+
signals.forEach(signal => {
|
|
25009
|
+
signal.unsubscribe ? signal.unsubscribe(onabort) : signal.removeEventListener('abort', onabort);
|
|
25010
|
+
});
|
|
25011
|
+
signals = null;
|
|
25012
|
+
}
|
|
24292
25013
|
}
|
|
24293
|
-
}
|
|
24294
25014
|
|
|
24295
|
-
|
|
25015
|
+
signals.forEach((signal) => signal.addEventListener('abort', onabort));
|
|
24296
25016
|
|
|
24297
|
-
|
|
25017
|
+
const {signal} = controller;
|
|
24298
25018
|
|
|
24299
|
-
|
|
25019
|
+
signal.unsubscribe = () => _utils_js__WEBPACK_IMPORTED_MODULE_2__["default"].asap(unsubscribe);
|
|
24300
25020
|
|
|
24301
|
-
|
|
24302
|
-
|
|
24303
|
-
timer = null;
|
|
24304
|
-
}];
|
|
25021
|
+
return signal;
|
|
25022
|
+
}
|
|
24305
25023
|
}
|
|
24306
25024
|
|
|
24307
25025
|
/* harmony default export */ __webpack_exports__["default"] = (composeSignals);
|
|
@@ -25326,14 +26044,34 @@ const streamChunk = function* (chunk, chunkSize) {
|
|
|
25326
26044
|
}
|
|
25327
26045
|
}
|
|
25328
26046
|
|
|
25329
|
-
const readBytes = async function* (iterable, chunkSize
|
|
25330
|
-
for await (const chunk of iterable) {
|
|
25331
|
-
yield* streamChunk(
|
|
26047
|
+
const readBytes = async function* (iterable, chunkSize) {
|
|
26048
|
+
for await (const chunk of readStream(iterable)) {
|
|
26049
|
+
yield* streamChunk(chunk, chunkSize);
|
|
26050
|
+
}
|
|
26051
|
+
}
|
|
26052
|
+
|
|
26053
|
+
const readStream = async function* (stream) {
|
|
26054
|
+
if (stream[Symbol.asyncIterator]) {
|
|
26055
|
+
yield* stream;
|
|
26056
|
+
return;
|
|
26057
|
+
}
|
|
26058
|
+
|
|
26059
|
+
const reader = stream.getReader();
|
|
26060
|
+
try {
|
|
26061
|
+
for (;;) {
|
|
26062
|
+
const {done, value} = await reader.read();
|
|
26063
|
+
if (done) {
|
|
26064
|
+
break;
|
|
26065
|
+
}
|
|
26066
|
+
yield value;
|
|
26067
|
+
}
|
|
26068
|
+
} finally {
|
|
26069
|
+
await reader.cancel();
|
|
25332
26070
|
}
|
|
25333
26071
|
}
|
|
25334
26072
|
|
|
25335
|
-
const trackStream = (stream, chunkSize, onProgress, onFinish
|
|
25336
|
-
const iterator = readBytes(stream, chunkSize
|
|
26073
|
+
const trackStream = (stream, chunkSize, onProgress, onFinish) => {
|
|
26074
|
+
const iterator = readBytes(stream, chunkSize);
|
|
25337
26075
|
|
|
25338
26076
|
let bytes = 0;
|
|
25339
26077
|
let done;
|
|
@@ -26994,7 +27732,7 @@ function createClient(params) {
|
|
|
26994
27732
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
26995
27733
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
26996
27734
|
var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)( // @ts-expect-error
|
|
26997
|
-
"".concat(sdkMain, "/").concat("11.
|
|
27735
|
+
"".concat(sdkMain, "/").concat("11.35.0"), params.application, params.integration, params.feature);
|
|
26998
27736
|
var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
26999
27737
|
userAgent: userAgent
|
|
27000
27738
|
}));
|