contentful-management 11.41.0 → 11.43.0-beta.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 +410 -139
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +401 -139
- 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/asset.js +27 -4
- package/dist/es-modules/adapters/REST/endpoints/entry.js +27 -3
- package/dist/es-modules/adapters/REST/endpoints/function.js +16 -0
- package/dist/es-modules/adapters/REST/endpoints/index.js +2 -0
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/create-function-api.js +115 -0
- package/dist/es-modules/entities/function.js +24 -1
- package/dist/es-modules/entities/index.js +2 -0
- package/dist/es-modules/plain/entities/function.js +1 -0
- package/dist/es-modules/plain/plain-client.js +3 -1
- package/dist/typings/adapters/REST/endpoints/function.d.ts +4 -0
- package/dist/typings/adapters/REST/endpoints/index.d.ts +2 -0
- package/dist/typings/common-types.d.ts +27 -6
- package/dist/typings/create-function-api.d.ts +78 -0
- package/dist/typings/entities/function.d.ts +23 -1
- package/dist/typings/entities/index.d.ts +2 -0
- package/dist/typings/plain/common-types.d.ts +7 -5
- package/dist/typings/plain/entities/function.d.ts +49 -0
- package/package.json +1 -1
|
@@ -993,15 +993,38 @@ var del = function del(http, params) {
|
|
|
993
993
|
return _raw__WEBPACK_IMPORTED_MODULE_3__.del(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/assets/").concat(params.assetId));
|
|
994
994
|
};
|
|
995
995
|
var publish = function publish(http, params, rawData) {
|
|
996
|
-
var _rawData$sys$version2;
|
|
997
|
-
|
|
996
|
+
var _params$locales, _rawData$sys$version2;
|
|
997
|
+
var payload = (_params$locales = params.locales) !== null && _params$locales !== void 0 && _params$locales.length ? {
|
|
998
|
+
add: {
|
|
999
|
+
fields: {
|
|
1000
|
+
'*': params.locales
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
} : null;
|
|
1004
|
+
return _raw__WEBPACK_IMPORTED_MODULE_3__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/assets/").concat(params.assetId, "/published"), payload, {
|
|
998
1005
|
headers: {
|
|
999
1006
|
'X-Contentful-Version': (_rawData$sys$version2 = rawData.sys.version) !== null && _rawData$sys$version2 !== void 0 ? _rawData$sys$version2 : 0
|
|
1000
1007
|
}
|
|
1001
1008
|
});
|
|
1002
1009
|
};
|
|
1003
|
-
var unpublish = function unpublish(http, params) {
|
|
1004
|
-
|
|
1010
|
+
var unpublish = function unpublish(http, params, rawData) {
|
|
1011
|
+
var _params$locales2;
|
|
1012
|
+
if ((_params$locales2 = params.locales) !== null && _params$locales2 !== void 0 && _params$locales2.length) {
|
|
1013
|
+
var payload = {
|
|
1014
|
+
remove: {
|
|
1015
|
+
fields: {
|
|
1016
|
+
'*': params.locales
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
};
|
|
1020
|
+
return _raw__WEBPACK_IMPORTED_MODULE_3__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/assets/").concat(params.assetId, "/published"), payload, {
|
|
1021
|
+
headers: {
|
|
1022
|
+
'X-Contentful-Version': rawData === null || rawData === void 0 ? void 0 : rawData.sys.version
|
|
1023
|
+
}
|
|
1024
|
+
});
|
|
1025
|
+
} else {
|
|
1026
|
+
return _raw__WEBPACK_IMPORTED_MODULE_3__.del(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/assets/").concat(params.assetId, "/published"));
|
|
1027
|
+
}
|
|
1005
1028
|
};
|
|
1006
1029
|
var archive = function archive(http, params) {
|
|
1007
1030
|
return _raw__WEBPACK_IMPORTED_MODULE_3__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/assets/").concat(params.assetId, "/archived"));
|
|
@@ -1749,14 +1772,38 @@ var del = function del(http, params) {
|
|
|
1749
1772
|
return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries/").concat(params.entryId));
|
|
1750
1773
|
};
|
|
1751
1774
|
var publish = function publish(http, params, rawData) {
|
|
1752
|
-
|
|
1775
|
+
var _params$locales;
|
|
1776
|
+
var payload = (_params$locales = params.locales) !== null && _params$locales !== void 0 && _params$locales.length ? {
|
|
1777
|
+
add: {
|
|
1778
|
+
fields: {
|
|
1779
|
+
'*': params.locales
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
} : null;
|
|
1783
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries/").concat(params.entryId, "/published"), payload, {
|
|
1753
1784
|
headers: {
|
|
1754
1785
|
'X-Contentful-Version': rawData.sys.version
|
|
1755
1786
|
}
|
|
1756
1787
|
});
|
|
1757
1788
|
};
|
|
1758
|
-
var unpublish = function unpublish(http, params) {
|
|
1759
|
-
|
|
1789
|
+
var unpublish = function unpublish(http, params, rawData) {
|
|
1790
|
+
var _params$locales2;
|
|
1791
|
+
if ((_params$locales2 = params.locales) !== null && _params$locales2 !== void 0 && _params$locales2.length) {
|
|
1792
|
+
var payload = {
|
|
1793
|
+
remove: {
|
|
1794
|
+
fields: {
|
|
1795
|
+
'*': params.locales
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
};
|
|
1799
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries/").concat(params.entryId, "/published"), payload, {
|
|
1800
|
+
headers: {
|
|
1801
|
+
'X-Contentful-Version': rawData === null || rawData === void 0 ? void 0 : rawData.sys.version
|
|
1802
|
+
}
|
|
1803
|
+
});
|
|
1804
|
+
} else {
|
|
1805
|
+
return _raw__WEBPACK_IMPORTED_MODULE_1__.del(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries/").concat(params.entryId, "/published"));
|
|
1806
|
+
}
|
|
1760
1807
|
};
|
|
1761
1808
|
var archive = function archive(http, params) {
|
|
1762
1809
|
return _raw__WEBPACK_IMPORTED_MODULE_1__.put(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/entries/").concat(params.entryId, "/archived"));
|
|
@@ -2206,6 +2253,43 @@ var del = function del(http, params) {
|
|
|
2206
2253
|
|
|
2207
2254
|
/***/ }),
|
|
2208
2255
|
|
|
2256
|
+
/***/ "./adapters/REST/endpoints/function.ts":
|
|
2257
|
+
/*!*********************************************!*\
|
|
2258
|
+
!*** ./adapters/REST/endpoints/function.ts ***!
|
|
2259
|
+
\*********************************************/
|
|
2260
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2261
|
+
|
|
2262
|
+
"use strict";
|
|
2263
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2264
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2265
|
+
/* harmony export */ get: function() { return /* binding */ get; },
|
|
2266
|
+
/* harmony export */ getMany: function() { return /* binding */ getMany; },
|
|
2267
|
+
/* harmony export */ getManyForEnvironment: function() { return /* binding */ getManyForEnvironment; }
|
|
2268
|
+
/* harmony export */ });
|
|
2269
|
+
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
2270
|
+
|
|
2271
|
+
// Base URL
|
|
2272
|
+
var getManyUrl = function getManyUrl(params) {
|
|
2273
|
+
return "/organizations/".concat(params.organizationId, "/app_definitions/").concat(params.appDefinitionId, "/functions");
|
|
2274
|
+
};
|
|
2275
|
+
var getFunctionUrl = function getFunctionUrl(params) {
|
|
2276
|
+
return "".concat(getManyUrl(params), "/").concat(params.functionId);
|
|
2277
|
+
};
|
|
2278
|
+
var getFunctionsEnvURL = function getFunctionsEnvURL(params) {
|
|
2279
|
+
return "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/app_installations/").concat(params.appInstallationId, "/functions");
|
|
2280
|
+
};
|
|
2281
|
+
var get = function get(http, params) {
|
|
2282
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getFunctionUrl(params));
|
|
2283
|
+
};
|
|
2284
|
+
var getMany = function getMany(http, params) {
|
|
2285
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getManyUrl(params));
|
|
2286
|
+
};
|
|
2287
|
+
var getManyForEnvironment = function getManyForEnvironment(http, params) {
|
|
2288
|
+
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, getFunctionsEnvURL(params));
|
|
2289
|
+
};
|
|
2290
|
+
|
|
2291
|
+
/***/ }),
|
|
2292
|
+
|
|
2209
2293
|
/***/ "./adapters/REST/endpoints/http.ts":
|
|
2210
2294
|
/*!*****************************************!*\
|
|
2211
2295
|
!*** ./adapters/REST/endpoints/http.ts ***!
|
|
@@ -2295,39 +2379,41 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2295
2379
|
/* harmony import */ var _environment_template__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./environment-template */ "./adapters/REST/endpoints/environment-template.ts");
|
|
2296
2380
|
/* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./environment-template-installation */ "./adapters/REST/endpoints/environment-template-installation.ts");
|
|
2297
2381
|
/* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./extension */ "./adapters/REST/endpoints/extension.ts");
|
|
2298
|
-
/* harmony import */ var
|
|
2299
|
-
/* harmony import */ var
|
|
2300
|
-
/* harmony import */ var
|
|
2301
|
-
/* harmony import */ var
|
|
2302
|
-
/* harmony import */ var
|
|
2303
|
-
/* harmony import */ var
|
|
2304
|
-
/* harmony import */ var
|
|
2305
|
-
/* harmony import */ var
|
|
2306
|
-
/* harmony import */ var
|
|
2307
|
-
/* harmony import */ var
|
|
2308
|
-
/* harmony import */ var
|
|
2309
|
-
/* harmony import */ var
|
|
2310
|
-
/* harmony import */ var
|
|
2311
|
-
/* harmony import */ var
|
|
2312
|
-
/* harmony import */ var
|
|
2313
|
-
/* harmony import */ var
|
|
2314
|
-
/* harmony import */ var
|
|
2315
|
-
/* harmony import */ var
|
|
2316
|
-
/* harmony import */ var
|
|
2317
|
-
/* harmony import */ var
|
|
2318
|
-
/* harmony import */ var
|
|
2319
|
-
/* harmony import */ var
|
|
2320
|
-
/* harmony import */ var
|
|
2321
|
-
/* harmony import */ var
|
|
2322
|
-
/* harmony import */ var
|
|
2323
|
-
/* harmony import */ var
|
|
2324
|
-
/* harmony import */ var
|
|
2325
|
-
/* harmony import */ var
|
|
2326
|
-
/* harmony import */ var
|
|
2327
|
-
/* harmony import */ var
|
|
2328
|
-
/* harmony import */ var
|
|
2329
|
-
/* harmony import */ var
|
|
2330
|
-
/* harmony import */ var
|
|
2382
|
+
/* harmony import */ var _function__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./function */ "./adapters/REST/endpoints/function.ts");
|
|
2383
|
+
/* harmony import */ var _http__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./http */ "./adapters/REST/endpoints/http.ts");
|
|
2384
|
+
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./locale */ "./adapters/REST/endpoints/locale.ts");
|
|
2385
|
+
/* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./organization */ "./adapters/REST/endpoints/organization.ts");
|
|
2386
|
+
/* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./organization-invitation */ "./adapters/REST/endpoints/organization-invitation.ts");
|
|
2387
|
+
/* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./organization-membership */ "./adapters/REST/endpoints/organization-membership.ts");
|
|
2388
|
+
/* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./personal-access-token */ "./adapters/REST/endpoints/personal-access-token.ts");
|
|
2389
|
+
/* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./preview-api-key */ "./adapters/REST/endpoints/preview-api-key.ts");
|
|
2390
|
+
/* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./release */ "./adapters/REST/endpoints/release.ts");
|
|
2391
|
+
/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./release-action */ "./adapters/REST/endpoints/release-action.ts");
|
|
2392
|
+
/* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./resource */ "./adapters/REST/endpoints/resource.ts");
|
|
2393
|
+
/* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./resource-provider */ "./adapters/REST/endpoints/resource-provider.ts");
|
|
2394
|
+
/* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./resource-type */ "./adapters/REST/endpoints/resource-type.ts");
|
|
2395
|
+
/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./role */ "./adapters/REST/endpoints/role.ts");
|
|
2396
|
+
/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./scheduled-action */ "./adapters/REST/endpoints/scheduled-action.ts");
|
|
2397
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./snapshot */ "./adapters/REST/endpoints/snapshot.ts");
|
|
2398
|
+
/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./space */ "./adapters/REST/endpoints/space.ts");
|
|
2399
|
+
/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./space-member */ "./adapters/REST/endpoints/space-member.ts");
|
|
2400
|
+
/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./space-membership */ "./adapters/REST/endpoints/space-membership.ts");
|
|
2401
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./tag */ "./adapters/REST/endpoints/tag.ts");
|
|
2402
|
+
/* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./task */ "./adapters/REST/endpoints/task.ts");
|
|
2403
|
+
/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./team */ "./adapters/REST/endpoints/team.ts");
|
|
2404
|
+
/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./team-membership */ "./adapters/REST/endpoints/team-membership.ts");
|
|
2405
|
+
/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./team-space-membership */ "./adapters/REST/endpoints/team-space-membership.ts");
|
|
2406
|
+
/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./ui-config */ "./adapters/REST/endpoints/ui-config.ts");
|
|
2407
|
+
/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./upload */ "./adapters/REST/endpoints/upload.ts");
|
|
2408
|
+
/* harmony import */ var _upload_credentials__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./upload-credentials */ "./adapters/REST/endpoints/upload-credentials.ts");
|
|
2409
|
+
/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./usage */ "./adapters/REST/endpoints/usage.ts");
|
|
2410
|
+
/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./user */ "./adapters/REST/endpoints/user.ts");
|
|
2411
|
+
/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./user-ui-config */ "./adapters/REST/endpoints/user-ui-config.ts");
|
|
2412
|
+
/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ./webhook */ "./adapters/REST/endpoints/webhook.ts");
|
|
2413
|
+
/* harmony import */ var _workflow__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ./workflow */ "./adapters/REST/endpoints/workflow.ts");
|
|
2414
|
+
/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ./workflow-definition */ "./adapters/REST/endpoints/workflow-definition.ts");
|
|
2415
|
+
/* harmony import */ var _workflows_changelog__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ./workflows-changelog */ "./adapters/REST/endpoints/workflows-changelog.ts");
|
|
2416
|
+
|
|
2331
2417
|
|
|
2332
2418
|
|
|
2333
2419
|
|
|
@@ -2417,40 +2503,41 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2417
2503
|
EnvironmentTemplate: _environment_template__WEBPACK_IMPORTED_MODULE_25__,
|
|
2418
2504
|
EnvironmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_26__,
|
|
2419
2505
|
Extension: _extension__WEBPACK_IMPORTED_MODULE_27__,
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2506
|
+
Function: _function__WEBPACK_IMPORTED_MODULE_28__,
|
|
2507
|
+
Http: _http__WEBPACK_IMPORTED_MODULE_29__,
|
|
2508
|
+
Locale: _locale__WEBPACK_IMPORTED_MODULE_30__,
|
|
2509
|
+
Organization: _organization__WEBPACK_IMPORTED_MODULE_31__,
|
|
2510
|
+
OrganizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_32__,
|
|
2511
|
+
OrganizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_33__,
|
|
2512
|
+
PersonalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_34__,
|
|
2426
2513
|
AccessToken: _access_token__WEBPACK_IMPORTED_MODULE_0__,
|
|
2427
|
-
PreviewApiKey:
|
|
2428
|
-
Release:
|
|
2429
|
-
ReleaseAction:
|
|
2430
|
-
Resource:
|
|
2431
|
-
ResourceProvider:
|
|
2432
|
-
ResourceType:
|
|
2433
|
-
Role:
|
|
2434
|
-
ScheduledAction:
|
|
2435
|
-
Snapshot:
|
|
2436
|
-
Space:
|
|
2437
|
-
SpaceMember:
|
|
2438
|
-
SpaceMembership:
|
|
2439
|
-
Tag:
|
|
2440
|
-
Task:
|
|
2441
|
-
Team:
|
|
2442
|
-
TeamMembership:
|
|
2443
|
-
TeamSpaceMembership:
|
|
2444
|
-
UIConfig:
|
|
2445
|
-
Upload:
|
|
2446
|
-
UploadCredential:
|
|
2447
|
-
Usage:
|
|
2448
|
-
User:
|
|
2449
|
-
UserUIConfig:
|
|
2450
|
-
Webhook:
|
|
2451
|
-
WorkflowDefinition:
|
|
2452
|
-
Workflow:
|
|
2453
|
-
WorkflowsChangelog:
|
|
2514
|
+
PreviewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_35__,
|
|
2515
|
+
Release: _release__WEBPACK_IMPORTED_MODULE_36__,
|
|
2516
|
+
ReleaseAction: _release_action__WEBPACK_IMPORTED_MODULE_37__,
|
|
2517
|
+
Resource: _resource__WEBPACK_IMPORTED_MODULE_38__,
|
|
2518
|
+
ResourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_39__,
|
|
2519
|
+
ResourceType: _resource_type__WEBPACK_IMPORTED_MODULE_40__,
|
|
2520
|
+
Role: _role__WEBPACK_IMPORTED_MODULE_41__,
|
|
2521
|
+
ScheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_42__,
|
|
2522
|
+
Snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_43__,
|
|
2523
|
+
Space: _space__WEBPACK_IMPORTED_MODULE_44__,
|
|
2524
|
+
SpaceMember: _space_member__WEBPACK_IMPORTED_MODULE_45__,
|
|
2525
|
+
SpaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_46__,
|
|
2526
|
+
Tag: _tag__WEBPACK_IMPORTED_MODULE_47__,
|
|
2527
|
+
Task: _task__WEBPACK_IMPORTED_MODULE_48__,
|
|
2528
|
+
Team: _team__WEBPACK_IMPORTED_MODULE_49__,
|
|
2529
|
+
TeamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_50__,
|
|
2530
|
+
TeamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_51__,
|
|
2531
|
+
UIConfig: _ui_config__WEBPACK_IMPORTED_MODULE_52__,
|
|
2532
|
+
Upload: _upload__WEBPACK_IMPORTED_MODULE_53__,
|
|
2533
|
+
UploadCredential: _upload_credentials__WEBPACK_IMPORTED_MODULE_54__,
|
|
2534
|
+
Usage: _usage__WEBPACK_IMPORTED_MODULE_55__,
|
|
2535
|
+
User: _user__WEBPACK_IMPORTED_MODULE_56__,
|
|
2536
|
+
UserUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_57__,
|
|
2537
|
+
Webhook: _webhook__WEBPACK_IMPORTED_MODULE_58__,
|
|
2538
|
+
WorkflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_60__,
|
|
2539
|
+
Workflow: _workflow__WEBPACK_IMPORTED_MODULE_59__,
|
|
2540
|
+
WorkflowsChangelog: _workflows_changelog__WEBPACK_IMPORTED_MODULE_61__
|
|
2454
2541
|
});
|
|
2455
2542
|
|
|
2456
2543
|
/***/ }),
|
|
@@ -9476,6 +9563,141 @@ function createEnvironmentTemplateApi(makeRequest, organizationId) {
|
|
|
9476
9563
|
|
|
9477
9564
|
/***/ }),
|
|
9478
9565
|
|
|
9566
|
+
/***/ "./create-function-api.ts":
|
|
9567
|
+
/*!********************************!*\
|
|
9568
|
+
!*** ./create-function-api.ts ***!
|
|
9569
|
+
\********************************/
|
|
9570
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9571
|
+
|
|
9572
|
+
"use strict";
|
|
9573
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9574
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9575
|
+
/* harmony export */ "default": function() { return /* binding */ createFunctionApi; }
|
|
9576
|
+
/* harmony export */ });
|
|
9577
|
+
/* harmony import */ var _entities__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./entities */ "./entities/index.ts");
|
|
9578
|
+
|
|
9579
|
+
|
|
9580
|
+
/**
|
|
9581
|
+
* @private
|
|
9582
|
+
*/
|
|
9583
|
+
|
|
9584
|
+
/**
|
|
9585
|
+
* @private
|
|
9586
|
+
*/
|
|
9587
|
+
function createFunctionApi(makeRequest) {
|
|
9588
|
+
var _entities$func = _entities__WEBPACK_IMPORTED_MODULE_0__["default"].func,
|
|
9589
|
+
wrapFunction = _entities$func.wrapFunction,
|
|
9590
|
+
wrapFunctionCollection = _entities$func.wrapFunctionCollection;
|
|
9591
|
+
return {
|
|
9592
|
+
/**
|
|
9593
|
+
* Gets all Functions for an App Definition
|
|
9594
|
+
* @Param organizationId - Organization ID
|
|
9595
|
+
* @Param appDefinitionId - App Definition ID
|
|
9596
|
+
* @returns a collection of Functions
|
|
9597
|
+
* ```javascript
|
|
9598
|
+
* const contentful = require('contentful-management')
|
|
9599
|
+
*
|
|
9600
|
+
* const client = contentful.createClient({
|
|
9601
|
+
* accessToken: '<content_management_api_key>'
|
|
9602
|
+
* })
|
|
9603
|
+
*
|
|
9604
|
+
* client.function.getMany({
|
|
9605
|
+
* organizationId: <organizationId>,
|
|
9606
|
+
* appDefinitionId: <appDefinitionId>
|
|
9607
|
+
* })
|
|
9608
|
+
* .then((response) => console.log(response.items))
|
|
9609
|
+
* .catch(console.error)
|
|
9610
|
+
* ```
|
|
9611
|
+
*/
|
|
9612
|
+
getManyFunctions: function getManyFunctions() {
|
|
9613
|
+
var raw = this.toPlainObject();
|
|
9614
|
+
return makeRequest({
|
|
9615
|
+
entityType: 'Function',
|
|
9616
|
+
action: 'getMany',
|
|
9617
|
+
params: {
|
|
9618
|
+
appDefinitionId: raw.sys.appDefinition.sys.id,
|
|
9619
|
+
organizationId: raw.sys.organization.sys.id
|
|
9620
|
+
}
|
|
9621
|
+
}).then(function (data) {
|
|
9622
|
+
return wrapFunctionCollection(makeRequest, data);
|
|
9623
|
+
});
|
|
9624
|
+
},
|
|
9625
|
+
/**
|
|
9626
|
+
* Gets a Function by ID
|
|
9627
|
+
* @Param organizationId - Organization ID
|
|
9628
|
+
* @Param appDefinitionId - App Definition ID
|
|
9629
|
+
* @Param functionId - Function ID
|
|
9630
|
+
* @returns a collection of Functions
|
|
9631
|
+
* ```javascript
|
|
9632
|
+
* const contentful = require('contentful-management')
|
|
9633
|
+
*
|
|
9634
|
+
* const client = contentful.createClient({
|
|
9635
|
+
* accessToken: '<content_management_api_key>'
|
|
9636
|
+
* })
|
|
9637
|
+
*
|
|
9638
|
+
* client.function.get({
|
|
9639
|
+
* organizationId: <organizationId>,
|
|
9640
|
+
* appDefinitionId: <appDefinitionId>,
|
|
9641
|
+
* functionId: <functionId>
|
|
9642
|
+
* })
|
|
9643
|
+
* .then((response) => console.log(response.items))
|
|
9644
|
+
* .catch(console.error)
|
|
9645
|
+
* ```
|
|
9646
|
+
*/
|
|
9647
|
+
getFunction: function getFunction(functionId) {
|
|
9648
|
+
var raw = this.toPlainObject();
|
|
9649
|
+
return makeRequest({
|
|
9650
|
+
entityType: 'Function',
|
|
9651
|
+
action: 'get',
|
|
9652
|
+
params: {
|
|
9653
|
+
appDefinitionId: raw.sys.appDefinition.sys.id,
|
|
9654
|
+
organizationId: raw.sys.organization.sys.id,
|
|
9655
|
+
functionId: functionId
|
|
9656
|
+
}
|
|
9657
|
+
}).then(function (data) {
|
|
9658
|
+
return wrapFunction(makeRequest, data);
|
|
9659
|
+
});
|
|
9660
|
+
},
|
|
9661
|
+
/**
|
|
9662
|
+
* Gets all Functions for an Environment
|
|
9663
|
+
* @Param organizationId - Organization ID
|
|
9664
|
+
* @Param appDefinitionId - App Definition ID
|
|
9665
|
+
* @Param functionId - Function ID
|
|
9666
|
+
* @returns a collection of Functions
|
|
9667
|
+
* ```javascript
|
|
9668
|
+
* const contentful = require('contentful-management')
|
|
9669
|
+
*
|
|
9670
|
+
* const client = contentful.createClient({
|
|
9671
|
+
* accessToken: '<content_management_api_key>'
|
|
9672
|
+
* })
|
|
9673
|
+
*
|
|
9674
|
+
* client.function.get({
|
|
9675
|
+
* environmentId: <environmentId>,
|
|
9676
|
+
* spaceId: <spaceId>,
|
|
9677
|
+
* appInstallationId: <appInstallationId>
|
|
9678
|
+
* })
|
|
9679
|
+
* .then((response) => console.log(response.items))
|
|
9680
|
+
* .catch(console.error)
|
|
9681
|
+
* ```
|
|
9682
|
+
*/
|
|
9683
|
+
getManyFunctionsForEnvironment: function getManyFunctionsForEnvironment(spaceId, environmentId, appInstallationId) {
|
|
9684
|
+
return makeRequest({
|
|
9685
|
+
entityType: 'Function',
|
|
9686
|
+
action: 'getManyForEnvironment',
|
|
9687
|
+
params: {
|
|
9688
|
+
spaceId: spaceId,
|
|
9689
|
+
environmentId: environmentId,
|
|
9690
|
+
appInstallationId: appInstallationId
|
|
9691
|
+
}
|
|
9692
|
+
}).then(function (data) {
|
|
9693
|
+
return wrapFunctionCollection(makeRequest, data);
|
|
9694
|
+
});
|
|
9695
|
+
}
|
|
9696
|
+
};
|
|
9697
|
+
}
|
|
9698
|
+
|
|
9699
|
+
/***/ }),
|
|
9700
|
+
|
|
9479
9701
|
/***/ "./create-organization-api.ts":
|
|
9480
9702
|
/*!************************************!*\
|
|
9481
9703
|
!*** ./create-organization-api.ts ***!
|
|
@@ -14506,6 +14728,50 @@ var wrapExtensionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_3__.wrap
|
|
|
14506
14728
|
|
|
14507
14729
|
/***/ }),
|
|
14508
14730
|
|
|
14731
|
+
/***/ "./entities/function.ts":
|
|
14732
|
+
/*!******************************!*\
|
|
14733
|
+
!*** ./entities/function.ts ***!
|
|
14734
|
+
\******************************/
|
|
14735
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
14736
|
+
|
|
14737
|
+
"use strict";
|
|
14738
|
+
__webpack_require__.r(__webpack_exports__);
|
|
14739
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14740
|
+
/* harmony export */ wrapFunction: function() { return /* binding */ wrapFunction; },
|
|
14741
|
+
/* harmony export */ wrapFunctionCollection: function() { return /* binding */ wrapFunctionCollection; }
|
|
14742
|
+
/* harmony export */ });
|
|
14743
|
+
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.js");
|
|
14744
|
+
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! fast-copy */ "../node_modules/fast-copy/dist/esm/index.mjs");
|
|
14745
|
+
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common-utils */ "./common-utils.ts");
|
|
14746
|
+
/* harmony import */ var _enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../enhance-with-methods */ "./enhance-with-methods.ts");
|
|
14747
|
+
/* harmony import */ var _create_function_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../create-function-api */ "./create-function-api.ts");
|
|
14748
|
+
|
|
14749
|
+
|
|
14750
|
+
|
|
14751
|
+
|
|
14752
|
+
|
|
14753
|
+
/**
|
|
14754
|
+
* @private
|
|
14755
|
+
* @param makeRequest - (real) function to make requests via an adapter
|
|
14756
|
+
* @param data - raw contentful-Function data
|
|
14757
|
+
* @return Wrapped Function data
|
|
14758
|
+
*/
|
|
14759
|
+
function wrapFunction(makeRequest, data) {
|
|
14760
|
+
var appAction = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.toPlainObject)((0,fast_copy__WEBPACK_IMPORTED_MODULE_1__["default"])(data));
|
|
14761
|
+
var appActionWithMethods = (0,_enhance_with_methods__WEBPACK_IMPORTED_MODULE_3__["default"])(appAction, (0,_create_function_api__WEBPACK_IMPORTED_MODULE_4__["default"])(makeRequest));
|
|
14762
|
+
return (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.freezeSys)(appActionWithMethods);
|
|
14763
|
+
}
|
|
14764
|
+
|
|
14765
|
+
/**
|
|
14766
|
+
* @private
|
|
14767
|
+
* @param makeRequest - real) function to make requests via an adapter
|
|
14768
|
+
* @param data - raw contentful-function data
|
|
14769
|
+
* @return Wrapped App Function collection data
|
|
14770
|
+
*/
|
|
14771
|
+
var wrapFunctionCollection = (0,_common_utils__WEBPACK_IMPORTED_MODULE_2__.wrapCollection)(wrapFunction);
|
|
14772
|
+
|
|
14773
|
+
/***/ }),
|
|
14774
|
+
|
|
14509
14775
|
/***/ "./entities/index.ts":
|
|
14510
14776
|
/*!***************************!*\
|
|
14511
14777
|
!*** ./entities/index.ts ***!
|
|
@@ -14539,38 +14805,40 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14539
14805
|
/* harmony import */ var _environment_template__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./environment-template */ "./entities/environment-template.ts");
|
|
14540
14806
|
/* harmony import */ var _environment_template_installation__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./environment-template-installation */ "./entities/environment-template-installation.ts");
|
|
14541
14807
|
/* harmony import */ var _extension__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./extension */ "./entities/extension.ts");
|
|
14542
|
-
/* harmony import */ var
|
|
14543
|
-
/* harmony import */ var
|
|
14544
|
-
/* harmony import */ var
|
|
14545
|
-
/* harmony import */ var
|
|
14546
|
-
/* harmony import */ var
|
|
14547
|
-
/* harmony import */ var
|
|
14548
|
-
/* harmony import */ var
|
|
14549
|
-
/* harmony import */ var
|
|
14550
|
-
/* harmony import */ var
|
|
14551
|
-
/* harmony import */ var
|
|
14552
|
-
/* harmony import */ var
|
|
14553
|
-
/* harmony import */ var
|
|
14554
|
-
/* harmony import */ var
|
|
14555
|
-
/* harmony import */ var
|
|
14556
|
-
/* harmony import */ var
|
|
14557
|
-
/* harmony import */ var
|
|
14558
|
-
/* harmony import */ var
|
|
14559
|
-
/* harmony import */ var
|
|
14560
|
-
/* harmony import */ var
|
|
14561
|
-
/* harmony import */ var
|
|
14562
|
-
/* harmony import */ var
|
|
14563
|
-
/* harmony import */ var
|
|
14564
|
-
/* harmony import */ var
|
|
14565
|
-
/* harmony import */ var
|
|
14566
|
-
/* harmony import */ var
|
|
14567
|
-
/* harmony import */ var
|
|
14568
|
-
/* harmony import */ var
|
|
14569
|
-
/* harmony import */ var
|
|
14570
|
-
/* harmony import */ var
|
|
14571
|
-
/* harmony import */ var
|
|
14572
|
-
/* harmony import */ var
|
|
14573
|
-
/* harmony import */ var
|
|
14808
|
+
/* harmony import */ var _function__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./function */ "./entities/function.ts");
|
|
14809
|
+
/* harmony import */ var _locale__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./locale */ "./entities/locale.ts");
|
|
14810
|
+
/* harmony import */ var _organization__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./organization */ "./entities/organization.ts");
|
|
14811
|
+
/* harmony import */ var _organization_invitation__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./organization-invitation */ "./entities/organization-invitation.ts");
|
|
14812
|
+
/* harmony import */ var _organization_membership__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./organization-membership */ "./entities/organization-membership.ts");
|
|
14813
|
+
/* harmony import */ var _personal_access_token__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./personal-access-token */ "./entities/personal-access-token.ts");
|
|
14814
|
+
/* harmony import */ var _access_token__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./access-token */ "./entities/access-token.ts");
|
|
14815
|
+
/* harmony import */ var _preview_api_key__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ./preview-api-key */ "./entities/preview-api-key.ts");
|
|
14816
|
+
/* harmony import */ var _release__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./release */ "./entities/release.ts");
|
|
14817
|
+
/* harmony import */ var _release_action__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./release-action */ "./entities/release-action.ts");
|
|
14818
|
+
/* harmony import */ var _role__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./role */ "./entities/role.ts");
|
|
14819
|
+
/* harmony import */ var _scheduled_action__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./scheduled-action */ "./entities/scheduled-action.ts");
|
|
14820
|
+
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ./snapshot */ "./entities/snapshot.ts");
|
|
14821
|
+
/* harmony import */ var _space__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ./space */ "./entities/space.ts");
|
|
14822
|
+
/* harmony import */ var _space_member__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ./space-member */ "./entities/space-member.ts");
|
|
14823
|
+
/* harmony import */ var _space_membership__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ./space-membership */ "./entities/space-membership.ts");
|
|
14824
|
+
/* harmony import */ var _tag__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ./tag */ "./entities/tag.ts");
|
|
14825
|
+
/* harmony import */ var _task__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ./task */ "./entities/task.ts");
|
|
14826
|
+
/* harmony import */ var _team__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ./team */ "./entities/team.ts");
|
|
14827
|
+
/* harmony import */ var _team_membership__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ./team-membership */ "./entities/team-membership.ts");
|
|
14828
|
+
/* harmony import */ var _team_space_membership__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ./team-space-membership */ "./entities/team-space-membership.ts");
|
|
14829
|
+
/* harmony import */ var _ui_config__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ./ui-config */ "./entities/ui-config.ts");
|
|
14830
|
+
/* harmony import */ var _upload__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ./upload */ "./entities/upload.ts");
|
|
14831
|
+
/* harmony import */ var _usage__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ./usage */ "./entities/usage.ts");
|
|
14832
|
+
/* harmony import */ var _user__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ./user */ "./entities/user.ts");
|
|
14833
|
+
/* harmony import */ var _user_ui_config__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ./user-ui-config */ "./entities/user-ui-config.ts");
|
|
14834
|
+
/* harmony import */ var _webhook__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ./webhook */ "./entities/webhook.ts");
|
|
14835
|
+
/* harmony import */ var _workflow_definition__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ./workflow-definition */ "./entities/workflow-definition.ts");
|
|
14836
|
+
/* harmony import */ var _concept__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ./concept */ "./entities/concept.ts");
|
|
14837
|
+
/* harmony import */ var _concept_scheme__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ./concept-scheme */ "./entities/concept-scheme.ts");
|
|
14838
|
+
/* harmony import */ var _resource_provider__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ./resource-provider */ "./entities/resource-provider.ts");
|
|
14839
|
+
/* harmony import */ var _resource_type__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ./resource-type */ "./entities/resource-type.ts");
|
|
14840
|
+
/* harmony import */ var _resource__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ./resource */ "./entities/resource.ts");
|
|
14841
|
+
|
|
14574
14842
|
|
|
14575
14843
|
|
|
14576
14844
|
|
|
@@ -14629,7 +14897,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14629
14897
|
|
|
14630
14898
|
|
|
14631
14899
|
/* harmony default export */ __webpack_exports__["default"] = ({
|
|
14632
|
-
accessToken:
|
|
14900
|
+
accessToken: _access_token__WEBPACK_IMPORTED_MODULE_31__,
|
|
14633
14901
|
appAction: _app_action__WEBPACK_IMPORTED_MODULE_1__,
|
|
14634
14902
|
appActionCall: _app_action_call__WEBPACK_IMPORTED_MODULE_2__,
|
|
14635
14903
|
appBundle: _app_bundle__WEBPACK_IMPORTED_MODULE_3__,
|
|
@@ -14647,8 +14915,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14647
14915
|
assetKey: _asset_key__WEBPACK_IMPORTED_MODULE_14__,
|
|
14648
14916
|
bulkAction: _bulk_action__WEBPACK_IMPORTED_MODULE_15__,
|
|
14649
14917
|
comment: _comment__WEBPACK_IMPORTED_MODULE_16__,
|
|
14650
|
-
concept:
|
|
14651
|
-
conceptScheme:
|
|
14918
|
+
concept: _concept__WEBPACK_IMPORTED_MODULE_53__,
|
|
14919
|
+
conceptScheme: _concept_scheme__WEBPACK_IMPORTED_MODULE_54__,
|
|
14652
14920
|
contentType: _content_type__WEBPACK_IMPORTED_MODULE_17__,
|
|
14653
14921
|
editorInterface: _editor_interface__WEBPACK_IMPORTED_MODULE_18__,
|
|
14654
14922
|
entry: _entry__WEBPACK_IMPORTED_MODULE_19__,
|
|
@@ -14657,35 +14925,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14657
14925
|
environmentTemplate: _environment_template__WEBPACK_IMPORTED_MODULE_22__,
|
|
14658
14926
|
environmentTemplateInstallation: _environment_template_installation__WEBPACK_IMPORTED_MODULE_23__,
|
|
14659
14927
|
extension: _extension__WEBPACK_IMPORTED_MODULE_24__,
|
|
14660
|
-
|
|
14661
|
-
|
|
14662
|
-
|
|
14663
|
-
|
|
14664
|
-
|
|
14665
|
-
|
|
14666
|
-
|
|
14667
|
-
|
|
14668
|
-
|
|
14669
|
-
|
|
14670
|
-
|
|
14671
|
-
|
|
14672
|
-
|
|
14673
|
-
|
|
14674
|
-
|
|
14675
|
-
|
|
14676
|
-
|
|
14677
|
-
|
|
14678
|
-
|
|
14679
|
-
|
|
14680
|
-
|
|
14681
|
-
|
|
14682
|
-
|
|
14683
|
-
|
|
14684
|
-
|
|
14685
|
-
|
|
14686
|
-
|
|
14687
|
-
|
|
14688
|
-
|
|
14928
|
+
func: _function__WEBPACK_IMPORTED_MODULE_25__,
|
|
14929
|
+
locale: _locale__WEBPACK_IMPORTED_MODULE_26__,
|
|
14930
|
+
organization: _organization__WEBPACK_IMPORTED_MODULE_27__,
|
|
14931
|
+
organizationInvitation: _organization_invitation__WEBPACK_IMPORTED_MODULE_28__,
|
|
14932
|
+
organizationMembership: _organization_membership__WEBPACK_IMPORTED_MODULE_29__,
|
|
14933
|
+
personalAccessToken: _personal_access_token__WEBPACK_IMPORTED_MODULE_30__,
|
|
14934
|
+
previewApiKey: _preview_api_key__WEBPACK_IMPORTED_MODULE_32__,
|
|
14935
|
+
release: _release__WEBPACK_IMPORTED_MODULE_33__,
|
|
14936
|
+
releaseAction: _release_action__WEBPACK_IMPORTED_MODULE_34__,
|
|
14937
|
+
resourceProvider: _resource_provider__WEBPACK_IMPORTED_MODULE_55__,
|
|
14938
|
+
resourceType: _resource_type__WEBPACK_IMPORTED_MODULE_56__,
|
|
14939
|
+
resource: _resource__WEBPACK_IMPORTED_MODULE_57__,
|
|
14940
|
+
role: _role__WEBPACK_IMPORTED_MODULE_35__,
|
|
14941
|
+
scheduledAction: _scheduled_action__WEBPACK_IMPORTED_MODULE_36__,
|
|
14942
|
+
snapshot: _snapshot__WEBPACK_IMPORTED_MODULE_37__,
|
|
14943
|
+
space: _space__WEBPACK_IMPORTED_MODULE_38__,
|
|
14944
|
+
spaceMember: _space_member__WEBPACK_IMPORTED_MODULE_39__,
|
|
14945
|
+
spaceMembership: _space_membership__WEBPACK_IMPORTED_MODULE_40__,
|
|
14946
|
+
tag: _tag__WEBPACK_IMPORTED_MODULE_41__,
|
|
14947
|
+
task: _task__WEBPACK_IMPORTED_MODULE_42__,
|
|
14948
|
+
team: _team__WEBPACK_IMPORTED_MODULE_43__,
|
|
14949
|
+
teamMembership: _team_membership__WEBPACK_IMPORTED_MODULE_44__,
|
|
14950
|
+
teamSpaceMembership: _team_space_membership__WEBPACK_IMPORTED_MODULE_45__,
|
|
14951
|
+
uiConfig: _ui_config__WEBPACK_IMPORTED_MODULE_46__,
|
|
14952
|
+
upload: _upload__WEBPACK_IMPORTED_MODULE_47__,
|
|
14953
|
+
usage: _usage__WEBPACK_IMPORTED_MODULE_48__,
|
|
14954
|
+
user: _user__WEBPACK_IMPORTED_MODULE_49__,
|
|
14955
|
+
userUIConfig: _user_ui_config__WEBPACK_IMPORTED_MODULE_50__,
|
|
14956
|
+
webhook: _webhook__WEBPACK_IMPORTED_MODULE_51__,
|
|
14957
|
+
workflowDefinition: _workflow_definition__WEBPACK_IMPORTED_MODULE_52__
|
|
14689
14958
|
});
|
|
14690
14959
|
|
|
14691
14960
|
/***/ }),
|
|
@@ -17648,7 +17917,9 @@ var createPlainClient = function createPlainClient(makeRequest, defaults) {
|
|
|
17648
17917
|
updatePut: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'ConceptScheme', 'updatePut')
|
|
17649
17918
|
},
|
|
17650
17919
|
function: {
|
|
17651
|
-
|
|
17920
|
+
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Function', 'get'),
|
|
17921
|
+
getMany: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Function', 'getMany'),
|
|
17922
|
+
getManyForEnvironment: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'Function', 'getManyForEnvironment')
|
|
17652
17923
|
},
|
|
17653
17924
|
editorInterface: {
|
|
17654
17925
|
get: (0,_wrappers_wrap__WEBPACK_IMPORTED_MODULE_1__.wrap)(wrapParams, 'EditorInterface', 'get'),
|
|
@@ -27353,7 +27624,7 @@ function createClient(params) {
|
|
|
27353
27624
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
27354
27625
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
27355
27626
|
var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(// @ts-expect-error
|
|
27356
|
-
"".concat(sdkMain, "/").concat("11.
|
|
27627
|
+
"".concat(sdkMain, "/").concat("11.43.0-beta.1"), params.application, params.integration, params.feature);
|
|
27357
27628
|
var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
27358
27629
|
userAgent: userAgent
|
|
27359
27630
|
}));
|