contentful-management 12.5.0 → 12.6.0-dev.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/README.md +3 -3
- package/dist/browser/index.js +1070 -737
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.min.js +1 -1
- package/dist/browser/index.min.js.map +1 -1
- package/dist/cjs/index.cjs +1062 -729
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/adapters/REST/endpoints/component-type.mjs +43 -3
- package/dist/esm/adapters/REST/endpoints/component-type.mjs.map +1 -1
- package/dist/esm/adapters/REST/endpoints/data-assembly.mjs +62 -0
- package/dist/esm/adapters/REST/endpoints/data-assembly.mjs.map +1 -0
- package/dist/esm/adapters/REST/endpoints/experience.mjs +52 -0
- package/dist/esm/adapters/REST/endpoints/experience.mjs.map +1 -0
- package/dist/esm/adapters/REST/endpoints/fragment.mjs +50 -0
- package/dist/esm/adapters/REST/endpoints/fragment.mjs.map +1 -0
- package/dist/esm/adapters/REST/endpoints/index.mjs +8 -0
- package/dist/esm/adapters/REST/endpoints/index.mjs.map +1 -1
- package/dist/esm/adapters/REST/endpoints/template.mjs +50 -0
- package/dist/esm/adapters/REST/endpoints/template.mjs.map +1 -0
- package/dist/esm/common-types.mjs.map +1 -1
- package/dist/esm/plain/plain-client.mjs +44 -0
- package/dist/esm/plain/plain-client.mjs.map +1 -1
- package/dist/types/adapters/REST/endpoints/component-type.d.ts +6 -0
- package/dist/types/adapters/REST/endpoints/component-type.js +43 -3
- package/dist/types/adapters/REST/endpoints/component-type.js.map +1 -1
- package/dist/types/adapters/REST/endpoints/data-assembly.d.ts +10 -0
- package/dist/types/adapters/REST/endpoints/data-assembly.js +62 -0
- package/dist/types/adapters/REST/endpoints/data-assembly.js.map +1 -0
- package/dist/types/adapters/REST/endpoints/experience.d.ts +8 -0
- package/dist/types/adapters/REST/endpoints/experience.js +52 -0
- package/dist/types/adapters/REST/endpoints/experience.js.map +1 -0
- package/dist/types/adapters/REST/endpoints/fragment.d.ts +8 -0
- package/dist/types/adapters/REST/endpoints/fragment.js +50 -0
- package/dist/types/adapters/REST/endpoints/fragment.js.map +1 -0
- package/dist/types/adapters/REST/endpoints/index.d.ts +8 -0
- package/dist/types/adapters/REST/endpoints/index.js +8 -0
- package/dist/types/adapters/REST/endpoints/index.js.map +1 -1
- package/dist/types/adapters/REST/endpoints/template.d.ts +8 -0
- package/dist/types/adapters/REST/endpoints/template.js +50 -0
- package/dist/types/adapters/REST/endpoints/template.js.map +1 -0
- package/dist/types/common-types.d.ts +330 -5
- package/dist/types/common-types.js.map +1 -1
- package/dist/types/entities/component-type.d.ts +89 -45
- package/dist/types/entities/data-assembly.d.ts +119 -0
- package/dist/types/entities/experience.d.ts +89 -0
- package/dist/types/entities/fragment.d.ts +52 -0
- package/dist/types/entities/template.d.ts +48 -0
- package/dist/types/export-types.d.ts +5 -0
- package/dist/types/plain/entities/component-type.d.ts +119 -7
- package/dist/types/plain/entities/data-assembly.d.ts +178 -0
- package/dist/types/plain/entities/experience.d.ts +165 -0
- package/dist/types/plain/entities/fragment.d.ts +134 -0
- package/dist/types/plain/entities/template.d.ts +139 -0
- package/dist/types/plain/plain-client-types.d.ts +8 -0
- package/dist/types/plain/plain-client.js +44 -0
- package/dist/types/plain/plain-client.js.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -2,7 +2,7 @@ var contentfulManagement = (function (exports) {
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var toStringFunction = Function.prototype.toString;
|
|
5
|
-
var create$
|
|
5
|
+
var create$L = Object.create;
|
|
6
6
|
var toStringObject = Object.prototype.toString;
|
|
7
7
|
/**
|
|
8
8
|
* @classdesc Fallback cache for when WeakMap is not natively supported
|
|
@@ -39,11 +39,11 @@ var contentfulManagement = (function (exports) {
|
|
|
39
39
|
*/
|
|
40
40
|
function getCleanClone(prototype) {
|
|
41
41
|
if (!prototype) {
|
|
42
|
-
return create$
|
|
42
|
+
return create$L(null);
|
|
43
43
|
}
|
|
44
44
|
var Constructor = prototype.constructor;
|
|
45
45
|
if (Constructor === Object) {
|
|
46
|
-
return prototype === Object.prototype ? {} : create$
|
|
46
|
+
return prototype === Object.prototype ? {} : create$L(prototype);
|
|
47
47
|
}
|
|
48
48
|
if (Constructor &&
|
|
49
49
|
~toStringFunction.call(Constructor).indexOf('[native code]')) {
|
|
@@ -52,7 +52,7 @@ var contentfulManagement = (function (exports) {
|
|
|
52
52
|
}
|
|
53
53
|
catch (_a) { }
|
|
54
54
|
}
|
|
55
|
-
return create$
|
|
55
|
+
return create$L(prototype);
|
|
56
56
|
}
|
|
57
57
|
function getRegExpFlagsLegacy(regExp) {
|
|
58
58
|
var flags = '';
|
|
@@ -3139,11 +3139,11 @@ var contentfulManagement = (function (exports) {
|
|
|
3139
3139
|
return callBindApplyHelpers;
|
|
3140
3140
|
}
|
|
3141
3141
|
|
|
3142
|
-
var get$
|
|
3142
|
+
var get$1a;
|
|
3143
3143
|
var hasRequiredGet;
|
|
3144
3144
|
|
|
3145
3145
|
function requireGet () {
|
|
3146
|
-
if (hasRequiredGet) return get$
|
|
3146
|
+
if (hasRequiredGet) return get$1a;
|
|
3147
3147
|
hasRequiredGet = 1;
|
|
3148
3148
|
|
|
3149
3149
|
var callBind = requireCallBindApplyHelpers();
|
|
@@ -3166,7 +3166,7 @@ var contentfulManagement = (function (exports) {
|
|
|
3166
3166
|
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
3167
3167
|
|
|
3168
3168
|
/** @type {import('./get')} */
|
|
3169
|
-
get$
|
|
3169
|
+
get$1a = desc && typeof desc.get === 'function'
|
|
3170
3170
|
? callBind([desc.get])
|
|
3171
3171
|
: typeof $getPrototypeOf === 'function'
|
|
3172
3172
|
? /** @type {import('./get')} */ function getDunder(value) {
|
|
@@ -3174,7 +3174,7 @@ var contentfulManagement = (function (exports) {
|
|
|
3174
3174
|
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
3175
3175
|
}
|
|
3176
3176
|
: false;
|
|
3177
|
-
return get$
|
|
3177
|
+
return get$1a;
|
|
3178
3178
|
}
|
|
3179
3179
|
|
|
3180
3180
|
var getProto;
|
|
@@ -9749,13 +9749,13 @@ var contentfulManagement = (function (exports) {
|
|
|
9749
9749
|
var axios = /*@__PURE__*/getDefaultExportFromCjs(axiosExports);
|
|
9750
9750
|
|
|
9751
9751
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
9752
|
-
function getBaseUrl$
|
|
9752
|
+
function getBaseUrl$x(http) {
|
|
9753
9753
|
return http.defaults.baseURL?.split('/spaces')[0];
|
|
9754
9754
|
}
|
|
9755
|
-
function get$
|
|
9755
|
+
function get$19(http, url, config) {
|
|
9756
9756
|
return http
|
|
9757
9757
|
.get(url, {
|
|
9758
|
-
baseURL: getBaseUrl$
|
|
9758
|
+
baseURL: getBaseUrl$x(http),
|
|
9759
9759
|
...config,
|
|
9760
9760
|
})
|
|
9761
9761
|
.then((response) => response.data, errorHandler);
|
|
@@ -9763,7 +9763,7 @@ var contentfulManagement = (function (exports) {
|
|
|
9763
9763
|
function patch$5(http, url, payload, config) {
|
|
9764
9764
|
return http
|
|
9765
9765
|
.patch(url, payload, {
|
|
9766
|
-
baseURL: getBaseUrl$
|
|
9766
|
+
baseURL: getBaseUrl$x(http),
|
|
9767
9767
|
...config,
|
|
9768
9768
|
})
|
|
9769
9769
|
.then((response) => response.data, errorHandler);
|
|
@@ -9771,7 +9771,7 @@ var contentfulManagement = (function (exports) {
|
|
|
9771
9771
|
function post$1(http, url, payload, config) {
|
|
9772
9772
|
return http
|
|
9773
9773
|
.post(url, payload, {
|
|
9774
|
-
baseURL: getBaseUrl$
|
|
9774
|
+
baseURL: getBaseUrl$x(http),
|
|
9775
9775
|
...config,
|
|
9776
9776
|
})
|
|
9777
9777
|
.then((response) => response.data, errorHandler);
|
|
@@ -9779,41 +9779,41 @@ var contentfulManagement = (function (exports) {
|
|
|
9779
9779
|
function put$1(http, url, payload, config) {
|
|
9780
9780
|
return http
|
|
9781
9781
|
.put(url, payload, {
|
|
9782
|
-
baseURL: getBaseUrl$
|
|
9782
|
+
baseURL: getBaseUrl$x(http),
|
|
9783
9783
|
...config,
|
|
9784
9784
|
})
|
|
9785
9785
|
.then((response) => response.data, errorHandler);
|
|
9786
9786
|
}
|
|
9787
|
-
function del$
|
|
9787
|
+
function del$M(http, url, config) {
|
|
9788
9788
|
return http
|
|
9789
9789
|
.delete(url, {
|
|
9790
|
-
baseURL: getBaseUrl$
|
|
9790
|
+
baseURL: getBaseUrl$x(http),
|
|
9791
9791
|
...config,
|
|
9792
9792
|
})
|
|
9793
9793
|
.then((response) => response.data, errorHandler);
|
|
9794
9794
|
}
|
|
9795
9795
|
function http(http, url, config) {
|
|
9796
9796
|
return http(url, {
|
|
9797
|
-
baseURL: getBaseUrl$
|
|
9797
|
+
baseURL: getBaseUrl$x(http),
|
|
9798
9798
|
...config,
|
|
9799
9799
|
}).then((response) => response.data, errorHandler);
|
|
9800
9800
|
}
|
|
9801
9801
|
|
|
9802
|
-
const get$
|
|
9803
|
-
return get$
|
|
9802
|
+
const get$18 = (http, params, headers) => {
|
|
9803
|
+
return get$19(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, {
|
|
9804
9804
|
headers,
|
|
9805
9805
|
});
|
|
9806
9806
|
};
|
|
9807
|
-
const getMany$
|
|
9808
|
-
return get$
|
|
9807
|
+
const getMany$V = (http, params, headers) => {
|
|
9808
|
+
return get$19(http, `/spaces/${params.spaceId}/ai/actions`, {
|
|
9809
9809
|
params: params.query,
|
|
9810
9810
|
headers,
|
|
9811
9811
|
});
|
|
9812
9812
|
};
|
|
9813
|
-
const create$
|
|
9813
|
+
const create$K = (http, params, data, headers) => {
|
|
9814
9814
|
return post$1(http, `/spaces/${params.spaceId}/ai/actions`, data, { headers });
|
|
9815
9815
|
};
|
|
9816
|
-
const update$
|
|
9816
|
+
const update$B = (http, params, rawData, headers) => {
|
|
9817
9817
|
const data = index$2(rawData);
|
|
9818
9818
|
const { sys, ...payload } = data;
|
|
9819
9819
|
return put$1(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, payload, {
|
|
@@ -9823,10 +9823,10 @@ var contentfulManagement = (function (exports) {
|
|
|
9823
9823
|
},
|
|
9824
9824
|
});
|
|
9825
9825
|
};
|
|
9826
|
-
const del$
|
|
9827
|
-
return del$
|
|
9826
|
+
const del$L = (http, params, headers) => {
|
|
9827
|
+
return del$M(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, { headers });
|
|
9828
9828
|
};
|
|
9829
|
-
const publish$
|
|
9829
|
+
const publish$a = (http, params, rawData, headers) => {
|
|
9830
9830
|
return put$1(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}/published`, null, {
|
|
9831
9831
|
headers: {
|
|
9832
9832
|
'X-Contentful-Version': params.version,
|
|
@@ -9834,8 +9834,8 @@ var contentfulManagement = (function (exports) {
|
|
|
9834
9834
|
},
|
|
9835
9835
|
});
|
|
9836
9836
|
};
|
|
9837
|
-
const unpublish$
|
|
9838
|
-
return del$
|
|
9837
|
+
const unpublish$a = (http, params, headers) => {
|
|
9838
|
+
return del$M(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}/published`, {
|
|
9839
9839
|
headers,
|
|
9840
9840
|
});
|
|
9841
9841
|
};
|
|
@@ -9845,38 +9845,38 @@ var contentfulManagement = (function (exports) {
|
|
|
9845
9845
|
|
|
9846
9846
|
var AiAction = /*#__PURE__*/Object.freeze({
|
|
9847
9847
|
__proto__: null,
|
|
9848
|
-
create: create$
|
|
9849
|
-
del: del$
|
|
9850
|
-
get: get$
|
|
9851
|
-
getMany: getMany$
|
|
9848
|
+
create: create$K,
|
|
9849
|
+
del: del$L,
|
|
9850
|
+
get: get$18,
|
|
9851
|
+
getMany: getMany$V,
|
|
9852
9852
|
invoke: invoke,
|
|
9853
|
-
publish: publish$
|
|
9854
|
-
unpublish: unpublish$
|
|
9855
|
-
update: update$
|
|
9853
|
+
publish: publish$a,
|
|
9854
|
+
unpublish: unpublish$a,
|
|
9855
|
+
update: update$B
|
|
9856
9856
|
});
|
|
9857
9857
|
|
|
9858
|
-
const get$
|
|
9859
|
-
return get$
|
|
9858
|
+
const get$17 = (http, params, headers) => {
|
|
9859
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/actions/${params.aiActionId}/invocations/${params.invocationId}`, { headers });
|
|
9860
9860
|
};
|
|
9861
9861
|
|
|
9862
9862
|
var AiActionInvocation = /*#__PURE__*/Object.freeze({
|
|
9863
9863
|
__proto__: null,
|
|
9864
|
-
get: get$
|
|
9864
|
+
get: get$17
|
|
9865
9865
|
});
|
|
9866
9866
|
|
|
9867
9867
|
const AgentAlphaHeaders = {
|
|
9868
9868
|
'x-contentful-enable-alpha-feature': 'agents-api',
|
|
9869
9869
|
};
|
|
9870
|
-
const get$
|
|
9871
|
-
return get$
|
|
9870
|
+
const get$16 = (http, params, headers) => {
|
|
9871
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/${params.agentId}`, {
|
|
9872
9872
|
headers: {
|
|
9873
9873
|
...AgentAlphaHeaders,
|
|
9874
9874
|
...headers,
|
|
9875
9875
|
},
|
|
9876
9876
|
});
|
|
9877
9877
|
};
|
|
9878
|
-
const getMany$
|
|
9879
|
-
return get$
|
|
9878
|
+
const getMany$U = (http, params, headers) => {
|
|
9879
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents`, {
|
|
9880
9880
|
headers: {
|
|
9881
9881
|
...AgentAlphaHeaders,
|
|
9882
9882
|
...headers,
|
|
@@ -9895,23 +9895,23 @@ var contentfulManagement = (function (exports) {
|
|
|
9895
9895
|
var Agent = /*#__PURE__*/Object.freeze({
|
|
9896
9896
|
__proto__: null,
|
|
9897
9897
|
generate: generate,
|
|
9898
|
-
get: get$
|
|
9899
|
-
getMany: getMany$
|
|
9898
|
+
get: get$16,
|
|
9899
|
+
getMany: getMany$U
|
|
9900
9900
|
});
|
|
9901
9901
|
|
|
9902
9902
|
const AgentRunAlphaHeaders = {
|
|
9903
9903
|
'x-contentful-enable-alpha-feature': 'agents-api',
|
|
9904
9904
|
};
|
|
9905
|
-
const get$
|
|
9906
|
-
return get$
|
|
9905
|
+
const get$15 = (http, params, headers) => {
|
|
9906
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/runs/${params.runId}`, {
|
|
9907
9907
|
headers: {
|
|
9908
9908
|
...AgentRunAlphaHeaders,
|
|
9909
9909
|
...headers,
|
|
9910
9910
|
},
|
|
9911
9911
|
});
|
|
9912
9912
|
};
|
|
9913
|
-
const getMany$
|
|
9914
|
-
return get$
|
|
9913
|
+
const getMany$T = (http, params, headers) => {
|
|
9914
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/ai/agents/runs`, {
|
|
9915
9915
|
params: params.query,
|
|
9916
9916
|
headers: {
|
|
9917
9917
|
...AgentRunAlphaHeaders,
|
|
@@ -9930,8 +9930,8 @@ var contentfulManagement = (function (exports) {
|
|
|
9930
9930
|
|
|
9931
9931
|
var AgentRun = /*#__PURE__*/Object.freeze({
|
|
9932
9932
|
__proto__: null,
|
|
9933
|
-
get: get$
|
|
9934
|
-
getMany: getMany$
|
|
9933
|
+
get: get$15,
|
|
9934
|
+
getMany: getMany$T,
|
|
9935
9935
|
resumeRun: resumeRun
|
|
9936
9936
|
});
|
|
9937
9937
|
|
|
@@ -9956,8 +9956,8 @@ var contentfulManagement = (function (exports) {
|
|
|
9956
9956
|
* .catch(console.error)
|
|
9957
9957
|
* ```
|
|
9958
9958
|
*/
|
|
9959
|
-
const get
|
|
9960
|
-
return get$
|
|
9959
|
+
const get$14 = (http, params) => {
|
|
9960
|
+
return get$19(http, `/users/me/access_tokens/${params.tokenId}`);
|
|
9961
9961
|
};
|
|
9962
9962
|
/**
|
|
9963
9963
|
* Retrieves multiple access tokens associated with the currently authenticated user.
|
|
@@ -9979,8 +9979,8 @@ var contentfulManagement = (function (exports) {
|
|
|
9979
9979
|
* .catch(console.error)
|
|
9980
9980
|
* ```
|
|
9981
9981
|
*/
|
|
9982
|
-
const getMany$
|
|
9983
|
-
return get$
|
|
9982
|
+
const getMany$S = (http, params) => {
|
|
9983
|
+
return get$19(http, '/users/me/access_tokens', {
|
|
9984
9984
|
params: params.query,
|
|
9985
9985
|
});
|
|
9986
9986
|
};
|
|
@@ -10057,7 +10057,7 @@ var contentfulManagement = (function (exports) {
|
|
|
10057
10057
|
* ```
|
|
10058
10058
|
*/
|
|
10059
10059
|
const getManyForOrganization$7 = (http, params) => {
|
|
10060
|
-
return get$
|
|
10060
|
+
return get$19(http, `/organizations/${params.organizationId}/access_tokens`, {
|
|
10061
10061
|
params: params.query,
|
|
10062
10062
|
});
|
|
10063
10063
|
};
|
|
@@ -10065,28 +10065,28 @@ var contentfulManagement = (function (exports) {
|
|
|
10065
10065
|
var AccessToken = /*#__PURE__*/Object.freeze({
|
|
10066
10066
|
__proto__: null,
|
|
10067
10067
|
createPersonalAccessToken: createPersonalAccessToken,
|
|
10068
|
-
get: get
|
|
10069
|
-
getMany: getMany$
|
|
10068
|
+
get: get$14,
|
|
10069
|
+
getMany: getMany$S,
|
|
10070
10070
|
getManyForOrganization: getManyForOrganization$7,
|
|
10071
10071
|
revoke: revoke$1
|
|
10072
10072
|
});
|
|
10073
10073
|
|
|
10074
|
-
const getBaseUrl$
|
|
10075
|
-
const getAutomationDefinitionUrl = (params) => `${getBaseUrl$
|
|
10076
|
-
const get$
|
|
10074
|
+
const getBaseUrl$w = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_definitions`;
|
|
10075
|
+
const getAutomationDefinitionUrl = (params) => `${getBaseUrl$w(params)}/${params.automationDefinitionId}`;
|
|
10076
|
+
const get$13 = (http, params, headers) => get$19(http, getAutomationDefinitionUrl(params), {
|
|
10077
10077
|
headers,
|
|
10078
10078
|
});
|
|
10079
|
-
const getMany$
|
|
10079
|
+
const getMany$R = (http, params, headers) => get$19(http, getBaseUrl$w(params), {
|
|
10080
10080
|
headers,
|
|
10081
10081
|
params: params.query,
|
|
10082
10082
|
});
|
|
10083
|
-
const create$
|
|
10083
|
+
const create$J = (http, params, rawData, headers) => {
|
|
10084
10084
|
const data = index$2(rawData);
|
|
10085
|
-
return post$1(http, getBaseUrl$
|
|
10085
|
+
return post$1(http, getBaseUrl$w(params), data, {
|
|
10086
10086
|
headers,
|
|
10087
10087
|
});
|
|
10088
10088
|
};
|
|
10089
|
-
const update$
|
|
10089
|
+
const update$A = (http, params, rawData, headers) => {
|
|
10090
10090
|
const data = index$2(rawData);
|
|
10091
10091
|
delete data.sys;
|
|
10092
10092
|
return put$1(http, getAutomationDefinitionUrl(params), data, {
|
|
@@ -10096,52 +10096,52 @@ var contentfulManagement = (function (exports) {
|
|
|
10096
10096
|
},
|
|
10097
10097
|
});
|
|
10098
10098
|
};
|
|
10099
|
-
const del$
|
|
10100
|
-
return del$
|
|
10099
|
+
const del$K = (http, params, headers) => {
|
|
10100
|
+
return del$M(http, getAutomationDefinitionUrl(params), {
|
|
10101
10101
|
headers: { 'X-Contentful-Version': params.version, ...headers },
|
|
10102
10102
|
});
|
|
10103
10103
|
};
|
|
10104
10104
|
|
|
10105
10105
|
var AutomationDefinition = /*#__PURE__*/Object.freeze({
|
|
10106
10106
|
__proto__: null,
|
|
10107
|
-
create: create$
|
|
10108
|
-
del: del$
|
|
10109
|
-
get: get$
|
|
10110
|
-
getMany: getMany$
|
|
10111
|
-
update: update$
|
|
10107
|
+
create: create$J,
|
|
10108
|
+
del: del$K,
|
|
10109
|
+
get: get$13,
|
|
10110
|
+
getMany: getMany$R,
|
|
10111
|
+
update: update$A
|
|
10112
10112
|
});
|
|
10113
10113
|
|
|
10114
|
-
const getBaseUrl$
|
|
10115
|
-
const getAutomationExecutionUrl = (params) => `${getBaseUrl$
|
|
10114
|
+
const getBaseUrl$v = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_executions`;
|
|
10115
|
+
const getAutomationExecutionUrl = (params) => `${getBaseUrl$v(params)}/${params.automationExecutionId}`;
|
|
10116
10116
|
const getExecutionsByDefinitionUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_definitions/${params.automationDefinitionId}/automation_executions`;
|
|
10117
|
-
const get$
|
|
10117
|
+
const get$12 = (http, params, headers) => get$19(http, getAutomationExecutionUrl(params), {
|
|
10118
10118
|
headers,
|
|
10119
10119
|
});
|
|
10120
|
-
const getMany$
|
|
10120
|
+
const getMany$Q = (http, params, headers) => get$19(http, getBaseUrl$v(params), {
|
|
10121
10121
|
headers,
|
|
10122
10122
|
params: params.query,
|
|
10123
10123
|
});
|
|
10124
|
-
const getForAutomationDefinition = (http, params, headers) => get$
|
|
10124
|
+
const getForAutomationDefinition = (http, params, headers) => get$19(http, getExecutionsByDefinitionUrl(params), {
|
|
10125
10125
|
headers,
|
|
10126
10126
|
params: params.query,
|
|
10127
10127
|
});
|
|
10128
10128
|
|
|
10129
10129
|
var AutomationExecution = /*#__PURE__*/Object.freeze({
|
|
10130
10130
|
__proto__: null,
|
|
10131
|
-
get: get$
|
|
10131
|
+
get: get$12,
|
|
10132
10132
|
getForAutomationDefinition: getForAutomationDefinition,
|
|
10133
|
-
getMany: getMany$
|
|
10133
|
+
getMany: getMany$Q
|
|
10134
10134
|
});
|
|
10135
10135
|
|
|
10136
|
-
const get$
|
|
10137
|
-
return get$
|
|
10136
|
+
const get$11 = (http, params) => {
|
|
10137
|
+
return get$19(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
|
|
10138
10138
|
};
|
|
10139
|
-
const getMany$
|
|
10140
|
-
return get$
|
|
10139
|
+
const getMany$P = (http, params) => {
|
|
10140
|
+
return get$19(http, `/spaces/${params.spaceId}/api_keys`, {
|
|
10141
10141
|
params: params.query,
|
|
10142
10142
|
});
|
|
10143
10143
|
};
|
|
10144
|
-
const create$
|
|
10144
|
+
const create$I = (http, params, data, headers) => {
|
|
10145
10145
|
return post$1(http, `/spaces/${params.spaceId}/api_keys`, data, { headers });
|
|
10146
10146
|
};
|
|
10147
10147
|
const createWithId$e = (http, params, data, headers) => {
|
|
@@ -10149,7 +10149,7 @@ var contentfulManagement = (function (exports) {
|
|
|
10149
10149
|
headers,
|
|
10150
10150
|
});
|
|
10151
10151
|
};
|
|
10152
|
-
const update$
|
|
10152
|
+
const update$z = (http, params, rawData, headers) => {
|
|
10153
10153
|
const data = index$2(rawData);
|
|
10154
10154
|
if ('accessToken' in data) {
|
|
10155
10155
|
delete data.accessToken;
|
|
@@ -10168,27 +10168,27 @@ var contentfulManagement = (function (exports) {
|
|
|
10168
10168
|
},
|
|
10169
10169
|
});
|
|
10170
10170
|
};
|
|
10171
|
-
const del$
|
|
10172
|
-
return del$
|
|
10171
|
+
const del$J = (http, params) => {
|
|
10172
|
+
return del$M(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
|
|
10173
10173
|
};
|
|
10174
10174
|
|
|
10175
10175
|
var ApiKey = /*#__PURE__*/Object.freeze({
|
|
10176
10176
|
__proto__: null,
|
|
10177
|
-
create: create$
|
|
10177
|
+
create: create$I,
|
|
10178
10178
|
createWithId: createWithId$e,
|
|
10179
|
-
del: del$
|
|
10180
|
-
get: get$
|
|
10181
|
-
getMany: getMany$
|
|
10182
|
-
update: update$
|
|
10179
|
+
del: del$J,
|
|
10180
|
+
get: get$11,
|
|
10181
|
+
getMany: getMany$P,
|
|
10182
|
+
update: update$z
|
|
10183
10183
|
});
|
|
10184
10184
|
|
|
10185
|
-
const create$
|
|
10185
|
+
const create$H = (http, params, data) => {
|
|
10186
10186
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/access_tokens`, undefined, { headers: { Authorization: `Bearer ${data.jwt}` } });
|
|
10187
10187
|
};
|
|
10188
10188
|
|
|
10189
10189
|
var AppAccessToken = /*#__PURE__*/Object.freeze({
|
|
10190
10190
|
__proto__: null,
|
|
10191
|
-
create: create$
|
|
10191
|
+
create: create$H
|
|
10192
10192
|
});
|
|
10193
10193
|
|
|
10194
10194
|
function normalizeSelect(query) {
|
|
@@ -10211,45 +10211,45 @@ var contentfulManagement = (function (exports) {
|
|
|
10211
10211
|
return query;
|
|
10212
10212
|
}
|
|
10213
10213
|
|
|
10214
|
-
const getBaseUrl$
|
|
10215
|
-
const getAppActionUrl = (params) => `${getBaseUrl$
|
|
10214
|
+
const getBaseUrl$u = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/actions`;
|
|
10215
|
+
const getAppActionUrl = (params) => `${getBaseUrl$u(params)}/${params.appActionId}`;
|
|
10216
10216
|
const getAppActionsEnvUrl = (params) => {
|
|
10217
10217
|
if (params.environmentId) {
|
|
10218
10218
|
return `/spaces/${params.spaceId}/environments/${params.environmentId}/actions`;
|
|
10219
10219
|
}
|
|
10220
10220
|
return `/spaces/${params.spaceId}/actions`;
|
|
10221
10221
|
};
|
|
10222
|
-
const get$
|
|
10223
|
-
return get$
|
|
10222
|
+
const get$10 = (http, params) => {
|
|
10223
|
+
return get$19(http, getAppActionUrl(params));
|
|
10224
10224
|
};
|
|
10225
|
-
const getMany$
|
|
10226
|
-
return get$
|
|
10225
|
+
const getMany$O = (http, params) => {
|
|
10226
|
+
return get$19(http, getBaseUrl$u(params), {
|
|
10227
10227
|
params: normalizeSelect(params.query),
|
|
10228
10228
|
});
|
|
10229
10229
|
};
|
|
10230
10230
|
const getManyForEnvironment$2 = (http, params) => {
|
|
10231
|
-
return get$
|
|
10231
|
+
return get$19(http, getAppActionsEnvUrl(params), {
|
|
10232
10232
|
params: normalizeSelect(params.query),
|
|
10233
10233
|
});
|
|
10234
10234
|
};
|
|
10235
|
-
const del$
|
|
10236
|
-
return del$
|
|
10235
|
+
const del$I = (http, params) => {
|
|
10236
|
+
return del$M(http, getAppActionUrl(params));
|
|
10237
10237
|
};
|
|
10238
|
-
const create$
|
|
10239
|
-
return post$1(http, getBaseUrl$
|
|
10238
|
+
const create$G = (http, params, data) => {
|
|
10239
|
+
return post$1(http, getBaseUrl$u(params), data);
|
|
10240
10240
|
};
|
|
10241
|
-
const update$
|
|
10241
|
+
const update$y = (http, params, data) => {
|
|
10242
10242
|
return put$1(http, getAppActionUrl(params), data);
|
|
10243
10243
|
};
|
|
10244
10244
|
|
|
10245
10245
|
var AppAction = /*#__PURE__*/Object.freeze({
|
|
10246
10246
|
__proto__: null,
|
|
10247
|
-
create: create$
|
|
10248
|
-
del: del$
|
|
10249
|
-
get: get$
|
|
10250
|
-
getMany: getMany$
|
|
10247
|
+
create: create$G,
|
|
10248
|
+
del: del$I,
|
|
10249
|
+
get: get$10,
|
|
10250
|
+
getMany: getMany$O,
|
|
10251
10251
|
getManyForEnvironment: getManyForEnvironment$2,
|
|
10252
|
-
update: update$
|
|
10252
|
+
update: update$y
|
|
10253
10253
|
});
|
|
10254
10254
|
|
|
10255
10255
|
/**
|
|
@@ -10315,11 +10315,11 @@ var contentfulManagement = (function (exports) {
|
|
|
10315
10315
|
};
|
|
10316
10316
|
}
|
|
10317
10317
|
|
|
10318
|
-
const create$
|
|
10318
|
+
const create$F = (http, params, data) => {
|
|
10319
10319
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls`, data);
|
|
10320
10320
|
};
|
|
10321
10321
|
const getCallDetails$1 = (http, params) => {
|
|
10322
|
-
return get$
|
|
10322
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/actions/${params.appActionId}/calls/${params.callId}`);
|
|
10323
10323
|
};
|
|
10324
10324
|
const APP_ACTION_CALL_RETRY_INTERVAL = 2000;
|
|
10325
10325
|
const APP_ACTION_CALL_RETRIES = 15;
|
|
@@ -10371,12 +10371,12 @@ var contentfulManagement = (function (exports) {
|
|
|
10371
10371
|
return callAppActionResult(http, params, { callId });
|
|
10372
10372
|
};
|
|
10373
10373
|
// Get structured AppActionCall (status/result/error) via new route that includes app installation context
|
|
10374
|
-
const get
|
|
10375
|
-
return get$
|
|
10374
|
+
const get$$ = (http, params) => {
|
|
10375
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls/${params.callId}`);
|
|
10376
10376
|
};
|
|
10377
10377
|
// Get raw AppActionCall response (headers/body) for a completed call
|
|
10378
10378
|
const getResponse = (http, params) => {
|
|
10379
|
-
return get$
|
|
10379
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/actions/${params.appActionId}/calls/${params.callId}/response`);
|
|
10380
10380
|
};
|
|
10381
10381
|
async function pollStructuredAppActionCall(http, params, { callId }) {
|
|
10382
10382
|
let checkCount = 1;
|
|
@@ -10385,7 +10385,7 @@ var contentfulManagement = (function (exports) {
|
|
|
10385
10385
|
return new Promise((resolve, reject) => {
|
|
10386
10386
|
const poll = async () => {
|
|
10387
10387
|
try {
|
|
10388
|
-
const result = await get
|
|
10388
|
+
const result = await get$$(http, { ...params, callId });
|
|
10389
10389
|
// If backend has not yet written the record, keep polling up to retries
|
|
10390
10390
|
// Otherwise, resolve when status is terminal
|
|
10391
10391
|
if (result?.sys.status === 'succeeded' || result?.sys.status === 'failed') {
|
|
@@ -10424,28 +10424,28 @@ var contentfulManagement = (function (exports) {
|
|
|
10424
10424
|
|
|
10425
10425
|
var AppActionCall = /*#__PURE__*/Object.freeze({
|
|
10426
10426
|
__proto__: null,
|
|
10427
|
-
create: create$
|
|
10427
|
+
create: create$F,
|
|
10428
10428
|
createWithResponse: createWithResponse,
|
|
10429
10429
|
createWithResult: createWithResult,
|
|
10430
|
-
get: get
|
|
10430
|
+
get: get$$,
|
|
10431
10431
|
getCallDetails: getCallDetails$1,
|
|
10432
10432
|
getResponse: getResponse
|
|
10433
10433
|
});
|
|
10434
10434
|
|
|
10435
|
-
const getBaseUrl$
|
|
10436
|
-
const getAppBundleUrl = (params) => `${getBaseUrl$
|
|
10437
|
-
const get$
|
|
10438
|
-
return get$
|
|
10435
|
+
const getBaseUrl$t = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/app_bundles`;
|
|
10436
|
+
const getAppBundleUrl = (params) => `${getBaseUrl$t(params)}/${params.appBundleId}`;
|
|
10437
|
+
const get$_ = (http, params) => {
|
|
10438
|
+
return get$19(http, getAppBundleUrl(params));
|
|
10439
10439
|
};
|
|
10440
|
-
const getMany$
|
|
10441
|
-
return get$
|
|
10440
|
+
const getMany$N = (http, params) => {
|
|
10441
|
+
return get$19(http, getBaseUrl$t(params), {
|
|
10442
10442
|
params: normalizeSelect(params.query),
|
|
10443
10443
|
});
|
|
10444
10444
|
};
|
|
10445
|
-
const del$
|
|
10446
|
-
return del$
|
|
10445
|
+
const del$H = (http, params) => {
|
|
10446
|
+
return del$M(http, getAppBundleUrl(params));
|
|
10447
10447
|
};
|
|
10448
|
-
const create$
|
|
10448
|
+
const create$E = (http, params, payload) => {
|
|
10449
10449
|
const { appUploadId, comment, actions, functions } = payload;
|
|
10450
10450
|
const data = {
|
|
10451
10451
|
upload: {
|
|
@@ -10459,35 +10459,35 @@ var contentfulManagement = (function (exports) {
|
|
|
10459
10459
|
actions,
|
|
10460
10460
|
functions,
|
|
10461
10461
|
};
|
|
10462
|
-
return post$1(http, getBaseUrl$
|
|
10462
|
+
return post$1(http, getBaseUrl$t(params), data);
|
|
10463
10463
|
};
|
|
10464
10464
|
|
|
10465
10465
|
var AppBundle = /*#__PURE__*/Object.freeze({
|
|
10466
10466
|
__proto__: null,
|
|
10467
|
-
create: create$
|
|
10468
|
-
del: del$
|
|
10469
|
-
get: get$
|
|
10470
|
-
getMany: getMany$
|
|
10467
|
+
create: create$E,
|
|
10468
|
+
del: del$H,
|
|
10469
|
+
get: get$_,
|
|
10470
|
+
getMany: getMany$N
|
|
10471
10471
|
});
|
|
10472
10472
|
|
|
10473
|
-
const getBaseUrl$
|
|
10474
|
-
const getAppDefinitionUrl = (params) => getBaseUrl$
|
|
10473
|
+
const getBaseUrl$s = (params) => `/organizations/${params.organizationId}/app_definitions`;
|
|
10474
|
+
const getAppDefinitionUrl = (params) => getBaseUrl$s(params) + `/${params.appDefinitionId}`;
|
|
10475
10475
|
const getBaseUrlForOrgInstallations$1 = (params) => `/app_definitions/${params.appDefinitionId}/app_installations`;
|
|
10476
|
-
const get$
|
|
10477
|
-
return get$
|
|
10476
|
+
const get$Z = (http, params) => {
|
|
10477
|
+
return get$19(http, getAppDefinitionUrl(params), {
|
|
10478
10478
|
params: normalizeSelect(params.query),
|
|
10479
10479
|
});
|
|
10480
10480
|
};
|
|
10481
|
-
const getMany$
|
|
10482
|
-
return get$
|
|
10481
|
+
const getMany$M = (http, params) => {
|
|
10482
|
+
return get$19(http, getBaseUrl$s(params), {
|
|
10483
10483
|
params: params.query,
|
|
10484
10484
|
});
|
|
10485
10485
|
};
|
|
10486
|
-
const create$
|
|
10486
|
+
const create$D = (http, params, rawData) => {
|
|
10487
10487
|
const data = index$2(rawData);
|
|
10488
|
-
return post$1(http, getBaseUrl$
|
|
10488
|
+
return post$1(http, getBaseUrl$s(params), data);
|
|
10489
10489
|
};
|
|
10490
|
-
const update$
|
|
10490
|
+
const update$x = (http, params, rawData, headers) => {
|
|
10491
10491
|
const data = index$2(rawData);
|
|
10492
10492
|
delete data.sys;
|
|
10493
10493
|
return put$1(http, getAppDefinitionUrl(params), data, {
|
|
@@ -10497,11 +10497,11 @@ var contentfulManagement = (function (exports) {
|
|
|
10497
10497
|
},
|
|
10498
10498
|
});
|
|
10499
10499
|
};
|
|
10500
|
-
const del$
|
|
10501
|
-
return del$
|
|
10500
|
+
const del$G = (http, params) => {
|
|
10501
|
+
return del$M(http, getAppDefinitionUrl(params));
|
|
10502
10502
|
};
|
|
10503
10503
|
const getInstallationsForOrg = (http, params) => {
|
|
10504
|
-
return get$
|
|
10504
|
+
return get$19(http, getBaseUrlForOrgInstallations$1(params), {
|
|
10505
10505
|
params: {
|
|
10506
10506
|
...normalizeSpaceId(normalizeSelect(params.query)),
|
|
10507
10507
|
'sys.organization.sys.id[in]': params.organizationId,
|
|
@@ -10511,63 +10511,63 @@ var contentfulManagement = (function (exports) {
|
|
|
10511
10511
|
|
|
10512
10512
|
var AppDefinition = /*#__PURE__*/Object.freeze({
|
|
10513
10513
|
__proto__: null,
|
|
10514
|
-
create: create$
|
|
10515
|
-
del: del$
|
|
10516
|
-
get: get$
|
|
10514
|
+
create: create$D,
|
|
10515
|
+
del: del$G,
|
|
10516
|
+
get: get$Z,
|
|
10517
10517
|
getAppDefinitionUrl: getAppDefinitionUrl,
|
|
10518
10518
|
getInstallationsForOrg: getInstallationsForOrg,
|
|
10519
|
-
getMany: getMany$
|
|
10520
|
-
update: update$
|
|
10519
|
+
getMany: getMany$M,
|
|
10520
|
+
update: update$x
|
|
10521
10521
|
});
|
|
10522
10522
|
|
|
10523
|
-
const get$
|
|
10524
|
-
return get$
|
|
10523
|
+
const get$Y = (http, params) => {
|
|
10524
|
+
return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`);
|
|
10525
10525
|
};
|
|
10526
|
-
const upsert$
|
|
10526
|
+
const upsert$8 = (http, params, data) => {
|
|
10527
10527
|
return put$1(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`, data);
|
|
10528
10528
|
};
|
|
10529
|
-
const del$
|
|
10530
|
-
return del$
|
|
10529
|
+
const del$F = (http, params) => {
|
|
10530
|
+
return del$M(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`);
|
|
10531
10531
|
};
|
|
10532
10532
|
|
|
10533
10533
|
var AppDetails = /*#__PURE__*/Object.freeze({
|
|
10534
10534
|
__proto__: null,
|
|
10535
|
-
del: del$
|
|
10536
|
-
get: get$
|
|
10537
|
-
upsert: upsert$
|
|
10535
|
+
del: del$F,
|
|
10536
|
+
get: get$Y,
|
|
10537
|
+
upsert: upsert$8
|
|
10538
10538
|
});
|
|
10539
10539
|
|
|
10540
|
-
const get$
|
|
10541
|
-
return get$
|
|
10540
|
+
const get$X = (http, params) => {
|
|
10541
|
+
return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`);
|
|
10542
10542
|
};
|
|
10543
|
-
const upsert$
|
|
10543
|
+
const upsert$7 = (http, params, data) => {
|
|
10544
10544
|
return put$1(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`, data);
|
|
10545
10545
|
};
|
|
10546
|
-
const del$
|
|
10547
|
-
return del$
|
|
10546
|
+
const del$E = (http, params) => {
|
|
10547
|
+
return del$M(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`);
|
|
10548
10548
|
};
|
|
10549
10549
|
|
|
10550
10550
|
var AppEventSubscription = /*#__PURE__*/Object.freeze({
|
|
10551
10551
|
__proto__: null,
|
|
10552
|
-
del: del$
|
|
10553
|
-
get: get$
|
|
10554
|
-
upsert: upsert$
|
|
10552
|
+
del: del$E,
|
|
10553
|
+
get: get$X,
|
|
10554
|
+
upsert: upsert$7
|
|
10555
10555
|
});
|
|
10556
10556
|
|
|
10557
|
-
const getBaseUrl$
|
|
10557
|
+
const getBaseUrl$r = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations`;
|
|
10558
10558
|
const getBaseUrlForOrgInstallations = (params) => `/app_definitions/${params.appDefinitionId}/app_installations`;
|
|
10559
|
-
const getAppInstallationUrl = (params) => getBaseUrl$
|
|
10560
|
-
const get$
|
|
10561
|
-
return get$
|
|
10559
|
+
const getAppInstallationUrl = (params) => getBaseUrl$r(params) + `/${params.appDefinitionId}`;
|
|
10560
|
+
const get$W = (http, params) => {
|
|
10561
|
+
return get$19(http, getAppInstallationUrl(params), {
|
|
10562
10562
|
params: normalizeSelect(params.query),
|
|
10563
10563
|
});
|
|
10564
10564
|
};
|
|
10565
|
-
const getMany$
|
|
10566
|
-
return get$
|
|
10565
|
+
const getMany$L = (http, params) => {
|
|
10566
|
+
return get$19(http, getBaseUrl$r(params), {
|
|
10567
10567
|
params: normalizeSelect(params.query),
|
|
10568
10568
|
});
|
|
10569
10569
|
};
|
|
10570
|
-
const upsert$
|
|
10570
|
+
const upsert$6 = (http, params, rawData, headers) => {
|
|
10571
10571
|
const data = index$2(rawData);
|
|
10572
10572
|
return put$1(http, getAppInstallationUrl(params), data, {
|
|
10573
10573
|
headers: {
|
|
@@ -10578,11 +10578,11 @@ var contentfulManagement = (function (exports) {
|
|
|
10578
10578
|
},
|
|
10579
10579
|
});
|
|
10580
10580
|
};
|
|
10581
|
-
const del$
|
|
10582
|
-
return del$
|
|
10581
|
+
const del$D = (http, params) => {
|
|
10582
|
+
return del$M(http, getAppInstallationUrl(params));
|
|
10583
10583
|
};
|
|
10584
10584
|
const getForOrganization$3 = (http, params) => {
|
|
10585
|
-
return get$
|
|
10585
|
+
return get$19(http, getBaseUrlForOrgInstallations(params), {
|
|
10586
10586
|
params: {
|
|
10587
10587
|
...normalizeSpaceId(normalizeSelect(params.query)),
|
|
10588
10588
|
'sys.organization.sys.id[in]': params.organizationId,
|
|
@@ -10592,59 +10592,59 @@ var contentfulManagement = (function (exports) {
|
|
|
10592
10592
|
|
|
10593
10593
|
var AppInstallation = /*#__PURE__*/Object.freeze({
|
|
10594
10594
|
__proto__: null,
|
|
10595
|
-
del: del$
|
|
10596
|
-
get: get$
|
|
10595
|
+
del: del$D,
|
|
10596
|
+
get: get$W,
|
|
10597
10597
|
getAppInstallationUrl: getAppInstallationUrl,
|
|
10598
10598
|
getForOrganization: getForOrganization$3,
|
|
10599
|
-
getMany: getMany$
|
|
10600
|
-
upsert: upsert$
|
|
10599
|
+
getMany: getMany$L,
|
|
10600
|
+
upsert: upsert$6
|
|
10601
10601
|
});
|
|
10602
10602
|
|
|
10603
|
-
const get$
|
|
10604
|
-
return get$
|
|
10603
|
+
const get$V = (http, params) => {
|
|
10604
|
+
return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`);
|
|
10605
10605
|
};
|
|
10606
|
-
const getMany$
|
|
10607
|
-
return get$
|
|
10606
|
+
const getMany$K = (http, params) => {
|
|
10607
|
+
return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`);
|
|
10608
10608
|
};
|
|
10609
|
-
const create$
|
|
10609
|
+
const create$C = (http, params, data) => {
|
|
10610
10610
|
return post$1(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`, data);
|
|
10611
10611
|
};
|
|
10612
|
-
const del$
|
|
10613
|
-
return del$
|
|
10612
|
+
const del$C = (http, params) => {
|
|
10613
|
+
return del$M(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`);
|
|
10614
10614
|
};
|
|
10615
10615
|
|
|
10616
10616
|
var AppKey = /*#__PURE__*/Object.freeze({
|
|
10617
10617
|
__proto__: null,
|
|
10618
|
-
create: create$
|
|
10619
|
-
del: del$
|
|
10620
|
-
get: get$
|
|
10621
|
-
getMany: getMany$
|
|
10618
|
+
create: create$C,
|
|
10619
|
+
del: del$C,
|
|
10620
|
+
get: get$V,
|
|
10621
|
+
getMany: getMany$K
|
|
10622
10622
|
});
|
|
10623
10623
|
|
|
10624
|
-
const create$
|
|
10624
|
+
const create$B = (http, params, data) => {
|
|
10625
10625
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appDefinitionId}/signed_requests`, data);
|
|
10626
10626
|
};
|
|
10627
10627
|
|
|
10628
10628
|
var AppSignedRequest = /*#__PURE__*/Object.freeze({
|
|
10629
10629
|
__proto__: null,
|
|
10630
|
-
create: create$
|
|
10630
|
+
create: create$B
|
|
10631
10631
|
});
|
|
10632
10632
|
|
|
10633
|
-
const get$
|
|
10634
|
-
return get$
|
|
10633
|
+
const get$U = (http, params) => {
|
|
10634
|
+
return get$19(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`);
|
|
10635
10635
|
};
|
|
10636
|
-
const upsert$
|
|
10636
|
+
const upsert$5 = (http, params, data) => {
|
|
10637
10637
|
return put$1(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`, data);
|
|
10638
10638
|
};
|
|
10639
|
-
const del$
|
|
10640
|
-
return del$
|
|
10639
|
+
const del$B = (http, params) => {
|
|
10640
|
+
return del$M(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`);
|
|
10641
10641
|
};
|
|
10642
10642
|
|
|
10643
10643
|
var AppSigningSecret = /*#__PURE__*/Object.freeze({
|
|
10644
10644
|
__proto__: null,
|
|
10645
|
-
del: del$
|
|
10646
|
-
get: get$
|
|
10647
|
-
upsert: upsert$
|
|
10645
|
+
del: del$B,
|
|
10646
|
+
get: get$U,
|
|
10647
|
+
upsert: upsert$5
|
|
10648
10648
|
});
|
|
10649
10649
|
|
|
10650
10650
|
/**
|
|
@@ -10660,20 +10660,20 @@ var contentfulManagement = (function (exports) {
|
|
|
10660
10660
|
return uploadHttp;
|
|
10661
10661
|
}
|
|
10662
10662
|
|
|
10663
|
-
const getBaseUrl$
|
|
10664
|
-
const getAppUploadUrl = (params) => `${getBaseUrl$
|
|
10665
|
-
const get$
|
|
10663
|
+
const getBaseUrl$q = (params) => `/organizations/${params.organizationId}/app_uploads`;
|
|
10664
|
+
const getAppUploadUrl = (params) => `${getBaseUrl$q(params)}/${params.appUploadId}`;
|
|
10665
|
+
const get$T = (http, params) => {
|
|
10666
10666
|
const httpUpload = getUploadHttpClient(http);
|
|
10667
|
-
return get$
|
|
10667
|
+
return get$19(httpUpload, getAppUploadUrl(params));
|
|
10668
10668
|
};
|
|
10669
|
-
const del$
|
|
10669
|
+
const del$A = (http, params) => {
|
|
10670
10670
|
const httpUpload = getUploadHttpClient(http);
|
|
10671
|
-
return del$
|
|
10671
|
+
return del$M(httpUpload, getAppUploadUrl(params));
|
|
10672
10672
|
};
|
|
10673
|
-
const create$
|
|
10673
|
+
const create$A = (http, params, payload) => {
|
|
10674
10674
|
const httpUpload = getUploadHttpClient(http);
|
|
10675
10675
|
const { file } = payload;
|
|
10676
|
-
return post$1(httpUpload, getBaseUrl$
|
|
10676
|
+
return post$1(httpUpload, getBaseUrl$q(params), file, {
|
|
10677
10677
|
headers: {
|
|
10678
10678
|
'Content-Type': 'application/octet-stream',
|
|
10679
10679
|
},
|
|
@@ -10682,9 +10682,9 @@ var contentfulManagement = (function (exports) {
|
|
|
10682
10682
|
|
|
10683
10683
|
var AppUpload = /*#__PURE__*/Object.freeze({
|
|
10684
10684
|
__proto__: null,
|
|
10685
|
-
create: create$
|
|
10686
|
-
del: del$
|
|
10687
|
-
get: get$
|
|
10685
|
+
create: create$A,
|
|
10686
|
+
del: del$A,
|
|
10687
|
+
get: get$T
|
|
10688
10688
|
});
|
|
10689
10689
|
|
|
10690
10690
|
const getBaseUploadUrl = (params) => {
|
|
@@ -10697,7 +10697,7 @@ var contentfulManagement = (function (exports) {
|
|
|
10697
10697
|
const path = getBaseUploadUrl(params);
|
|
10698
10698
|
return path + `/${params.uploadId}`;
|
|
10699
10699
|
};
|
|
10700
|
-
const create$
|
|
10700
|
+
const create$z = (http, params, data) => {
|
|
10701
10701
|
const httpUpload = getUploadHttpClient(http);
|
|
10702
10702
|
const { file } = data;
|
|
10703
10703
|
if (!file) {
|
|
@@ -10710,37 +10710,37 @@ var contentfulManagement = (function (exports) {
|
|
|
10710
10710
|
},
|
|
10711
10711
|
});
|
|
10712
10712
|
};
|
|
10713
|
-
const del$
|
|
10713
|
+
const del$z = (http, params) => {
|
|
10714
10714
|
const httpUpload = getUploadHttpClient(http);
|
|
10715
10715
|
const path = getEntityUploadUrl(params);
|
|
10716
|
-
return del$
|
|
10716
|
+
return del$M(httpUpload, path);
|
|
10717
10717
|
};
|
|
10718
|
-
const get$
|
|
10718
|
+
const get$S = (http, params) => {
|
|
10719
10719
|
const httpUpload = getUploadHttpClient(http);
|
|
10720
10720
|
const path = getEntityUploadUrl(params);
|
|
10721
|
-
return get$
|
|
10721
|
+
return get$19(httpUpload, path);
|
|
10722
10722
|
};
|
|
10723
10723
|
|
|
10724
10724
|
var Upload = /*#__PURE__*/Object.freeze({
|
|
10725
10725
|
__proto__: null,
|
|
10726
|
-
create: create$
|
|
10727
|
-
del: del$
|
|
10728
|
-
get: get$
|
|
10726
|
+
create: create$z,
|
|
10727
|
+
del: del$z,
|
|
10728
|
+
get: get$S
|
|
10729
10729
|
});
|
|
10730
10730
|
|
|
10731
|
-
const get$
|
|
10732
|
-
return get$
|
|
10731
|
+
const get$R = (http, params, rawData, headers) => {
|
|
10732
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets/${params.assetId}`, {
|
|
10733
10733
|
params: normalizeSelect(params.query),
|
|
10734
10734
|
headers: headers ? { ...headers } : undefined,
|
|
10735
10735
|
});
|
|
10736
10736
|
};
|
|
10737
|
-
const getMany$
|
|
10738
|
-
return get$
|
|
10737
|
+
const getMany$J = (http, params, rawData, headers) => {
|
|
10738
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets`, {
|
|
10739
10739
|
params: normalizeSelect(params.query),
|
|
10740
10740
|
headers: headers ? { ...headers } : undefined,
|
|
10741
10741
|
});
|
|
10742
10742
|
};
|
|
10743
|
-
const update$
|
|
10743
|
+
const update$w = (http, params, rawData, headers) => {
|
|
10744
10744
|
const data = index$2(rawData);
|
|
10745
10745
|
delete data.sys;
|
|
10746
10746
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets/${params.assetId}`, data, {
|
|
@@ -10750,7 +10750,7 @@ var contentfulManagement = (function (exports) {
|
|
|
10750
10750
|
},
|
|
10751
10751
|
});
|
|
10752
10752
|
};
|
|
10753
|
-
const create$
|
|
10753
|
+
const create$y = (http, params, rawData, headers) => {
|
|
10754
10754
|
const data = index$2(rawData);
|
|
10755
10755
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/assets`, data, {
|
|
10756
10756
|
headers,
|
|
@@ -10767,7 +10767,7 @@ var contentfulManagement = (function (exports) {
|
|
|
10767
10767
|
const { file } = data.fields;
|
|
10768
10768
|
return Promise.all(Object.keys(file).map(async (locale) => {
|
|
10769
10769
|
const { contentType, fileName } = file[locale];
|
|
10770
|
-
return create$
|
|
10770
|
+
return create$z(httpUpload, params, file[locale]).then((upload) => {
|
|
10771
10771
|
return {
|
|
10772
10772
|
[locale]: {
|
|
10773
10773
|
contentType,
|
|
@@ -10792,7 +10792,7 @@ var contentfulManagement = (function (exports) {
|
|
|
10792
10792
|
file,
|
|
10793
10793
|
},
|
|
10794
10794
|
};
|
|
10795
|
-
return create$
|
|
10795
|
+
return create$y(http, params, asset, {});
|
|
10796
10796
|
})
|
|
10797
10797
|
.catch(errorHandler);
|
|
10798
10798
|
};
|
|
@@ -10802,7 +10802,7 @@ var contentfulManagement = (function (exports) {
|
|
|
10802
10802
|
const ASSET_PROCESSING_CHECK_WAIT$1 = 3000;
|
|
10803
10803
|
const ASSET_PROCESSING_CHECK_RETRIES$1 = 10;
|
|
10804
10804
|
async function checkIfAssetHasUrl$1(http, params, { resolve, reject, locale, processingCheckWait = ASSET_PROCESSING_CHECK_WAIT$1, processingCheckRetries = ASSET_PROCESSING_CHECK_RETRIES$1, checkCount = 0, }) {
|
|
10805
|
-
return get$
|
|
10805
|
+
return get$R(http, params).then((asset) => {
|
|
10806
10806
|
if (asset.fields.file[locale].url) {
|
|
10807
10807
|
resolve(asset);
|
|
10808
10808
|
}
|
|
@@ -10864,43 +10864,43 @@ var contentfulManagement = (function (exports) {
|
|
|
10864
10864
|
|
|
10865
10865
|
var ReleaseAsset = /*#__PURE__*/Object.freeze({
|
|
10866
10866
|
__proto__: null,
|
|
10867
|
-
create: create$
|
|
10867
|
+
create: create$y,
|
|
10868
10868
|
createFromFiles: createFromFiles$1,
|
|
10869
10869
|
createWithId: createWithId$d,
|
|
10870
|
-
get: get$
|
|
10871
|
-
getMany: getMany$
|
|
10870
|
+
get: get$R,
|
|
10871
|
+
getMany: getMany$J,
|
|
10872
10872
|
processForAllLocales: processForAllLocales$1,
|
|
10873
10873
|
processForLocale: processForLocale$1,
|
|
10874
|
-
update: update$
|
|
10874
|
+
update: update$w
|
|
10875
10875
|
});
|
|
10876
10876
|
|
|
10877
|
-
const get$
|
|
10877
|
+
const get$Q = (http, params, rawData, headers) => {
|
|
10878
10878
|
if (params.releaseId) {
|
|
10879
|
-
return get$
|
|
10879
|
+
return get$R(http, params);
|
|
10880
10880
|
}
|
|
10881
|
-
return get$
|
|
10881
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`, {
|
|
10882
10882
|
params: normalizeSelect(params.query),
|
|
10883
10883
|
headers: headers ? { ...headers } : undefined,
|
|
10884
10884
|
});
|
|
10885
10885
|
};
|
|
10886
|
-
const getPublished$
|
|
10887
|
-
return get$
|
|
10886
|
+
const getPublished$2 = (http, params, rawData, headers) => {
|
|
10887
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/assets`, {
|
|
10888
10888
|
params: normalizeSelect(params.query),
|
|
10889
10889
|
headers: headers ? { ...headers } : undefined,
|
|
10890
10890
|
});
|
|
10891
10891
|
};
|
|
10892
|
-
const getMany$
|
|
10892
|
+
const getMany$I = (http, params, rawData, headers) => {
|
|
10893
10893
|
if (params.releaseId) {
|
|
10894
|
-
return getMany$
|
|
10894
|
+
return getMany$J(http, params);
|
|
10895
10895
|
}
|
|
10896
|
-
return get$
|
|
10896
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, {
|
|
10897
10897
|
params: normalizeSelect(params.query),
|
|
10898
10898
|
headers: headers ? { ...headers } : undefined,
|
|
10899
10899
|
});
|
|
10900
10900
|
};
|
|
10901
|
-
const update$
|
|
10901
|
+
const update$v = (http, params, rawData, headers) => {
|
|
10902
10902
|
if (params.releaseId) {
|
|
10903
|
-
return update$
|
|
10903
|
+
return update$w(http, params, rawData, headers ?? {});
|
|
10904
10904
|
}
|
|
10905
10905
|
const data = index$2(rawData);
|
|
10906
10906
|
delete data.sys;
|
|
@@ -10911,10 +10911,10 @@ var contentfulManagement = (function (exports) {
|
|
|
10911
10911
|
},
|
|
10912
10912
|
});
|
|
10913
10913
|
};
|
|
10914
|
-
const del$
|
|
10915
|
-
return del$
|
|
10914
|
+
const del$y = (http, params) => {
|
|
10915
|
+
return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`);
|
|
10916
10916
|
};
|
|
10917
|
-
const publish$
|
|
10917
|
+
const publish$9 = (http, params, rawData) => {
|
|
10918
10918
|
const payload = params.locales?.length ? { add: { fields: { '*': params.locales } } } : null;
|
|
10919
10919
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`, payload, {
|
|
10920
10920
|
headers: {
|
|
@@ -10922,7 +10922,7 @@ var contentfulManagement = (function (exports) {
|
|
|
10922
10922
|
},
|
|
10923
10923
|
});
|
|
10924
10924
|
};
|
|
10925
|
-
const unpublish$
|
|
10925
|
+
const unpublish$9 = (http, params, rawData) => {
|
|
10926
10926
|
if (params.locales?.length) {
|
|
10927
10927
|
const payload = { remove: { fields: { '*': params.locales } } };
|
|
10928
10928
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`, payload, {
|
|
@@ -10932,18 +10932,18 @@ var contentfulManagement = (function (exports) {
|
|
|
10932
10932
|
});
|
|
10933
10933
|
}
|
|
10934
10934
|
else {
|
|
10935
|
-
return del$
|
|
10935
|
+
return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`);
|
|
10936
10936
|
}
|
|
10937
10937
|
};
|
|
10938
10938
|
const archive$2 = (http, params) => {
|
|
10939
10939
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`);
|
|
10940
10940
|
};
|
|
10941
10941
|
const unarchive$3 = (http, params) => {
|
|
10942
|
-
return del$
|
|
10942
|
+
return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`);
|
|
10943
10943
|
};
|
|
10944
|
-
const create$
|
|
10944
|
+
const create$x = (http, params, rawData) => {
|
|
10945
10945
|
if (params.releaseId) {
|
|
10946
|
-
return create$
|
|
10946
|
+
return create$y(http, params, rawData, {});
|
|
10947
10947
|
}
|
|
10948
10948
|
const data = index$2(rawData);
|
|
10949
10949
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, data);
|
|
@@ -10963,7 +10963,7 @@ var contentfulManagement = (function (exports) {
|
|
|
10963
10963
|
const { file } = data.fields;
|
|
10964
10964
|
return Promise.all(Object.keys(file).map(async (locale) => {
|
|
10965
10965
|
const { contentType, fileName } = file[locale];
|
|
10966
|
-
return create$
|
|
10966
|
+
return create$z(httpUpload, params, file[locale]).then((upload) => {
|
|
10967
10967
|
return {
|
|
10968
10968
|
[locale]: {
|
|
10969
10969
|
contentType,
|
|
@@ -10988,7 +10988,7 @@ var contentfulManagement = (function (exports) {
|
|
|
10988
10988
|
file,
|
|
10989
10989
|
},
|
|
10990
10990
|
};
|
|
10991
|
-
return create$
|
|
10991
|
+
return create$x(http, params, asset);
|
|
10992
10992
|
})
|
|
10993
10993
|
.catch(errorHandler);
|
|
10994
10994
|
};
|
|
@@ -10998,7 +10998,7 @@ var contentfulManagement = (function (exports) {
|
|
|
10998
10998
|
const ASSET_PROCESSING_CHECK_WAIT = 3000;
|
|
10999
10999
|
const ASSET_PROCESSING_CHECK_RETRIES = 10;
|
|
11000
11000
|
async function checkIfAssetHasUrl(http, params, { resolve, reject, locale, processingCheckWait = ASSET_PROCESSING_CHECK_WAIT, processingCheckRetries = ASSET_PROCESSING_CHECK_RETRIES, checkCount = 0, }) {
|
|
11001
|
-
return get$
|
|
11001
|
+
return get$Q(http, params).then((asset) => {
|
|
11002
11002
|
if (asset.fields.file[locale].url) {
|
|
11003
11003
|
resolve(asset);
|
|
11004
11004
|
}
|
|
@@ -11075,19 +11075,19 @@ var contentfulManagement = (function (exports) {
|
|
|
11075
11075
|
var Asset = /*#__PURE__*/Object.freeze({
|
|
11076
11076
|
__proto__: null,
|
|
11077
11077
|
archive: archive$2,
|
|
11078
|
-
create: create$
|
|
11078
|
+
create: create$x,
|
|
11079
11079
|
createFromFiles: createFromFiles,
|
|
11080
11080
|
createWithId: createWithId$c,
|
|
11081
|
-
del: del$
|
|
11082
|
-
get: get$
|
|
11083
|
-
getMany: getMany$
|
|
11084
|
-
getPublished: getPublished$
|
|
11081
|
+
del: del$y,
|
|
11082
|
+
get: get$Q,
|
|
11083
|
+
getMany: getMany$I,
|
|
11084
|
+
getPublished: getPublished$2,
|
|
11085
11085
|
processForAllLocales: processForAllLocales,
|
|
11086
11086
|
processForLocale: processForLocale,
|
|
11087
|
-
publish: publish$
|
|
11087
|
+
publish: publish$9,
|
|
11088
11088
|
unarchive: unarchive$3,
|
|
11089
|
-
unpublish: unpublish$
|
|
11090
|
-
update: update$
|
|
11089
|
+
unpublish: unpublish$9,
|
|
11090
|
+
update: update$v
|
|
11091
11091
|
});
|
|
11092
11092
|
|
|
11093
11093
|
const ASSET_KEY_MAX_LIFETIME = 48 * 60 * 60;
|
|
@@ -11109,7 +11109,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11109
11109
|
throw new ValidationError(name, `value (${timestamp}) cannot be in the past, current time was ${options.now}`);
|
|
11110
11110
|
}
|
|
11111
11111
|
};
|
|
11112
|
-
const create$
|
|
11112
|
+
const create$w = (http, params, data) => {
|
|
11113
11113
|
const expiresAt = data.expiresAt;
|
|
11114
11114
|
const now = Math.floor(Date.now() / 1000);
|
|
11115
11115
|
const currentMaxLifetime = now + ASSET_KEY_MAX_LIFETIME;
|
|
@@ -11121,35 +11121,35 @@ var contentfulManagement = (function (exports) {
|
|
|
11121
11121
|
var AssetKey = /*#__PURE__*/Object.freeze({
|
|
11122
11122
|
__proto__: null,
|
|
11123
11123
|
ValidationError: ValidationError,
|
|
11124
|
-
create: create$
|
|
11124
|
+
create: create$w
|
|
11125
11125
|
});
|
|
11126
11126
|
|
|
11127
|
-
const getBaseUrl$
|
|
11128
|
-
const getMany$
|
|
11129
|
-
return get$
|
|
11127
|
+
const getBaseUrl$p = (params) => `/organizations/${params.organizationId}/available_licenses`;
|
|
11128
|
+
const getMany$H = (http, params) => {
|
|
11129
|
+
return get$19(http, getBaseUrl$p(params), {
|
|
11130
11130
|
params: params.query,
|
|
11131
11131
|
});
|
|
11132
11132
|
};
|
|
11133
11133
|
|
|
11134
11134
|
var AvailableLicense = /*#__PURE__*/Object.freeze({
|
|
11135
11135
|
__proto__: null,
|
|
11136
|
-
getMany: getMany$
|
|
11136
|
+
getMany: getMany$H
|
|
11137
11137
|
});
|
|
11138
11138
|
|
|
11139
|
-
const get$
|
|
11140
|
-
return get$
|
|
11139
|
+
const get$P = (http, params) => {
|
|
11140
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/actions/${params.bulkActionId}`);
|
|
11141
11141
|
};
|
|
11142
|
-
const publish$
|
|
11142
|
+
const publish$8 = (http, params, payload) => {
|
|
11143
11143
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/publish`, payload);
|
|
11144
11144
|
};
|
|
11145
|
-
const unpublish$
|
|
11145
|
+
const unpublish$8 = (http, params, payload) => {
|
|
11146
11146
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/unpublish`, payload);
|
|
11147
11147
|
};
|
|
11148
11148
|
const validate$2 = (http, params, payload) => {
|
|
11149
11149
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/validate`, payload);
|
|
11150
11150
|
};
|
|
11151
11151
|
const getV2 = (http, params) => {
|
|
11152
|
-
return get$
|
|
11152
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/${params.bulkActionId}`);
|
|
11153
11153
|
};
|
|
11154
11154
|
const publishV2 = (http, params, payload) => {
|
|
11155
11155
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions`, payload);
|
|
@@ -11163,11 +11163,11 @@ var contentfulManagement = (function (exports) {
|
|
|
11163
11163
|
|
|
11164
11164
|
var BulkAction = /*#__PURE__*/Object.freeze({
|
|
11165
11165
|
__proto__: null,
|
|
11166
|
-
get: get$
|
|
11166
|
+
get: get$P,
|
|
11167
11167
|
getV2: getV2,
|
|
11168
|
-
publish: publish$
|
|
11168
|
+
publish: publish$8,
|
|
11169
11169
|
publishV2: publishV2,
|
|
11170
|
-
unpublish: unpublish$
|
|
11170
|
+
unpublish: unpublish$8,
|
|
11171
11171
|
unpublishV2: unpublishV2,
|
|
11172
11172
|
validate: validate$2,
|
|
11173
11173
|
validateV2: validateV2
|
|
@@ -11209,14 +11209,14 @@ var contentfulManagement = (function (exports) {
|
|
|
11209
11209
|
const versionPath = 'parentEntityVersion' in params ? `/versions/${params.parentEntityVersion}` : '';
|
|
11210
11210
|
return `${getSpaceEnvBaseUrl(params)}/${parentPlural}/${parentEntityId}${versionPath}/comments`;
|
|
11211
11211
|
};
|
|
11212
|
-
const get$
|
|
11212
|
+
const get$O = (http, params) => get$19(http, getEntityCommentUrl(params), {
|
|
11213
11213
|
headers: params.bodyFormat === 'rich-text'
|
|
11214
11214
|
? {
|
|
11215
11215
|
[BODY_FORMAT_HEADER]: params.bodyFormat,
|
|
11216
11216
|
}
|
|
11217
11217
|
: {},
|
|
11218
11218
|
});
|
|
11219
|
-
const getMany$
|
|
11219
|
+
const getMany$G = (http, params) => get$19(http, getEntityBaseUrl(params), {
|
|
11220
11220
|
params: normalizeSelect(params.query),
|
|
11221
11221
|
headers: params.bodyFormat === 'rich-text'
|
|
11222
11222
|
? {
|
|
@@ -11224,7 +11224,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11224
11224
|
}
|
|
11225
11225
|
: {},
|
|
11226
11226
|
});
|
|
11227
|
-
const create$
|
|
11227
|
+
const create$v = (http, params, rawData) => {
|
|
11228
11228
|
const data = index$2(rawData);
|
|
11229
11229
|
return post$1(http, getEntityBaseUrl(params), data, {
|
|
11230
11230
|
headers: {
|
|
@@ -11236,7 +11236,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11236
11236
|
},
|
|
11237
11237
|
});
|
|
11238
11238
|
};
|
|
11239
|
-
const update$
|
|
11239
|
+
const update$u = (http, params, rawData, headers) => {
|
|
11240
11240
|
const data = index$2(rawData);
|
|
11241
11241
|
delete data.sys;
|
|
11242
11242
|
return put$1(http, getEntityCommentUrl(params), data, {
|
|
@@ -11247,8 +11247,8 @@ var contentfulManagement = (function (exports) {
|
|
|
11247
11247
|
},
|
|
11248
11248
|
});
|
|
11249
11249
|
};
|
|
11250
|
-
const del$
|
|
11251
|
-
return del$
|
|
11250
|
+
const del$x = (http, { version, ...params }) => {
|
|
11251
|
+
return del$M(http, getEntityCommentUrl(params), {
|
|
11252
11252
|
headers: { [VERSION_HEADER]: version },
|
|
11253
11253
|
});
|
|
11254
11254
|
};
|
|
@@ -11256,35 +11256,80 @@ var contentfulManagement = (function (exports) {
|
|
|
11256
11256
|
/**
|
|
11257
11257
|
* @deprecated use `getMany` instead.
|
|
11258
11258
|
*/
|
|
11259
|
-
const getAll$1 = getMany$
|
|
11259
|
+
const getAll$1 = getMany$G;
|
|
11260
11260
|
|
|
11261
11261
|
var Comment = /*#__PURE__*/Object.freeze({
|
|
11262
11262
|
__proto__: null,
|
|
11263
|
-
create: create$
|
|
11264
|
-
del: del$
|
|
11265
|
-
get: get$
|
|
11263
|
+
create: create$v,
|
|
11264
|
+
del: del$x,
|
|
11265
|
+
get: get$O,
|
|
11266
11266
|
getAll: getAll$1,
|
|
11267
|
-
getMany: getMany$
|
|
11268
|
-
update: update$
|
|
11267
|
+
getMany: getMany$G,
|
|
11268
|
+
update: update$u
|
|
11269
11269
|
});
|
|
11270
11270
|
|
|
11271
|
-
const getBaseUrl$
|
|
11272
|
-
const getMany$
|
|
11273
|
-
return get$
|
|
11271
|
+
const getBaseUrl$o = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/component_types`;
|
|
11272
|
+
const getMany$F = (http, params, headers) => {
|
|
11273
|
+
return get$19(http, getBaseUrl$o(params), {
|
|
11274
11274
|
params: params.query,
|
|
11275
11275
|
headers,
|
|
11276
11276
|
});
|
|
11277
11277
|
};
|
|
11278
|
+
const get$N = (http, params, headers) => {
|
|
11279
|
+
return get$19(http, getBaseUrl$o(params) + `/${params.componentTypeId}`, {
|
|
11280
|
+
headers,
|
|
11281
|
+
});
|
|
11282
|
+
};
|
|
11283
|
+
const create$u = (http, params, rawData, headers) => {
|
|
11284
|
+
const data = index$2(rawData);
|
|
11285
|
+
return post$1(http, getBaseUrl$o(params), data, { headers });
|
|
11286
|
+
};
|
|
11287
|
+
const upsert$4 = (http, params, rawData, headers) => {
|
|
11288
|
+
const { sys, ...body } = index$2(rawData);
|
|
11289
|
+
return put$1(http, getBaseUrl$o(params) + `/${params.componentTypeId}`, body, {
|
|
11290
|
+
headers: {
|
|
11291
|
+
...(sys.version !== undefined && {
|
|
11292
|
+
'X-Contentful-Version': sys.version,
|
|
11293
|
+
}),
|
|
11294
|
+
...headers,
|
|
11295
|
+
},
|
|
11296
|
+
});
|
|
11297
|
+
};
|
|
11298
|
+
const del$w = (http, params) => {
|
|
11299
|
+
return del$M(http, getBaseUrl$o(params) + `/${params.componentTypeId}`);
|
|
11300
|
+
};
|
|
11301
|
+
const publish$7 = (http, params, headers) => {
|
|
11302
|
+
return put$1(http, `${getBaseUrl$o(params)}/${params.componentTypeId}/published`, null, {
|
|
11303
|
+
headers: {
|
|
11304
|
+
'X-Contentful-Version': params.version,
|
|
11305
|
+
...headers,
|
|
11306
|
+
},
|
|
11307
|
+
});
|
|
11308
|
+
};
|
|
11309
|
+
const unpublish$7 = (http, params, headers) => {
|
|
11310
|
+
return del$M(http, `${getBaseUrl$o(params)}/${params.componentTypeId}/published`, {
|
|
11311
|
+
headers: {
|
|
11312
|
+
'X-Contentful-Version': params.version,
|
|
11313
|
+
...headers,
|
|
11314
|
+
},
|
|
11315
|
+
});
|
|
11316
|
+
};
|
|
11278
11317
|
|
|
11279
11318
|
var ComponentType = /*#__PURE__*/Object.freeze({
|
|
11280
11319
|
__proto__: null,
|
|
11281
|
-
|
|
11320
|
+
create: create$u,
|
|
11321
|
+
del: del$w,
|
|
11322
|
+
get: get$N,
|
|
11323
|
+
getMany: getMany$F,
|
|
11324
|
+
publish: publish$7,
|
|
11325
|
+
unpublish: unpublish$7,
|
|
11326
|
+
upsert: upsert$4
|
|
11282
11327
|
});
|
|
11283
11328
|
|
|
11284
11329
|
function basePath$1(organizationId) {
|
|
11285
11330
|
return `/organizations/${organizationId}/taxonomy/concepts`;
|
|
11286
11331
|
}
|
|
11287
|
-
const create$
|
|
11332
|
+
const create$t = (http, params, data) => {
|
|
11288
11333
|
return post$1(http, basePath$1(params.organizationId), data);
|
|
11289
11334
|
};
|
|
11290
11335
|
const createWithId$b = (http, params, data) => {
|
|
@@ -11299,7 +11344,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11299
11344
|
},
|
|
11300
11345
|
});
|
|
11301
11346
|
};
|
|
11302
|
-
const update$
|
|
11347
|
+
const update$t = (http, params, data, headers) => {
|
|
11303
11348
|
return put$1(http, `${basePath$1(params.organizationId)}/${params.conceptId}`, data, {
|
|
11304
11349
|
headers: {
|
|
11305
11350
|
'X-Contentful-Version': params.version,
|
|
@@ -11307,28 +11352,28 @@ var contentfulManagement = (function (exports) {
|
|
|
11307
11352
|
},
|
|
11308
11353
|
});
|
|
11309
11354
|
};
|
|
11310
|
-
const get$
|
|
11311
|
-
const del$
|
|
11355
|
+
const get$M = (http, params) => get$19(http, `${basePath$1(params.organizationId)}/${params.conceptId}`);
|
|
11356
|
+
const del$v = (http, params, headers) => del$M(http, `${basePath$1(params.organizationId)}/${params.conceptId}`, {
|
|
11312
11357
|
headers: {
|
|
11313
11358
|
'X-Contentful-Version': params.version ?? 0,
|
|
11314
11359
|
...headers,
|
|
11315
11360
|
},
|
|
11316
11361
|
});
|
|
11317
|
-
const getMany$
|
|
11362
|
+
const getMany$E = (http, params) => {
|
|
11318
11363
|
const { url, queryParams } = cursorBasedCollection('', params);
|
|
11319
|
-
return get$
|
|
11364
|
+
return get$19(http, url, {
|
|
11320
11365
|
params: queryParams,
|
|
11321
11366
|
});
|
|
11322
11367
|
};
|
|
11323
11368
|
const getDescendants = (http, params) => {
|
|
11324
11369
|
const { url, queryParams } = cursorBasedCollection(`/${params.conceptId}/descendants`, params);
|
|
11325
|
-
return get$
|
|
11370
|
+
return get$19(http, url, { params: queryParams });
|
|
11326
11371
|
};
|
|
11327
11372
|
const getAncestors = (http, params) => {
|
|
11328
11373
|
const { url, queryParams } = cursorBasedCollection(`/${params.conceptId}/ancestors`, params);
|
|
11329
|
-
return get$
|
|
11374
|
+
return get$19(http, url, { params: queryParams });
|
|
11330
11375
|
};
|
|
11331
|
-
const getTotal$1 = (http, params) => get$
|
|
11376
|
+
const getTotal$1 = (http, params) => get$19(http, `${basePath$1(params.organizationId)}/total`);
|
|
11332
11377
|
function cursorBasedCollection(path, params) {
|
|
11333
11378
|
return params.query?.pageUrl
|
|
11334
11379
|
? { url: params.query?.pageUrl }
|
|
@@ -11340,36 +11385,36 @@ var contentfulManagement = (function (exports) {
|
|
|
11340
11385
|
|
|
11341
11386
|
var Concept = /*#__PURE__*/Object.freeze({
|
|
11342
11387
|
__proto__: null,
|
|
11343
|
-
create: create$
|
|
11388
|
+
create: create$t,
|
|
11344
11389
|
createWithId: createWithId$b,
|
|
11345
|
-
del: del$
|
|
11346
|
-
get: get$
|
|
11390
|
+
del: del$v,
|
|
11391
|
+
get: get$M,
|
|
11347
11392
|
getAncestors: getAncestors,
|
|
11348
11393
|
getDescendants: getDescendants,
|
|
11349
|
-
getMany: getMany$
|
|
11394
|
+
getMany: getMany$E,
|
|
11350
11395
|
getTotal: getTotal$1,
|
|
11351
11396
|
patch: patch$4,
|
|
11352
|
-
update: update$
|
|
11397
|
+
update: update$t
|
|
11353
11398
|
});
|
|
11354
11399
|
|
|
11355
11400
|
function basePath(orgId) {
|
|
11356
11401
|
return `/organizations/${orgId}/taxonomy/concept-schemes`;
|
|
11357
11402
|
}
|
|
11358
|
-
const get$
|
|
11359
|
-
const del$
|
|
11403
|
+
const get$L = (http, params) => get$19(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`);
|
|
11404
|
+
const del$u = (http, params, headers) => del$M(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`, {
|
|
11360
11405
|
headers: {
|
|
11361
11406
|
'X-Contentful-Version': params.version,
|
|
11362
11407
|
...headers,
|
|
11363
11408
|
},
|
|
11364
11409
|
});
|
|
11365
|
-
const getMany$
|
|
11410
|
+
const getMany$D = (http, params) => {
|
|
11366
11411
|
const url = params.query?.pageUrl ?? basePath(params.organizationId);
|
|
11367
|
-
return get$
|
|
11412
|
+
return get$19(http, url, {
|
|
11368
11413
|
params: params.query?.pageUrl ? undefined : params.query,
|
|
11369
11414
|
});
|
|
11370
11415
|
};
|
|
11371
|
-
const getTotal = (http, params) => get$
|
|
11372
|
-
const create$
|
|
11416
|
+
const getTotal = (http, params) => get$19(http, `${basePath(params.organizationId)}/total`);
|
|
11417
|
+
const create$s = (http, params, data) => {
|
|
11373
11418
|
return post$1(http, basePath(params.organizationId), data);
|
|
11374
11419
|
};
|
|
11375
11420
|
const createWithId$a = (http, params, data) => {
|
|
@@ -11384,7 +11429,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11384
11429
|
},
|
|
11385
11430
|
});
|
|
11386
11431
|
};
|
|
11387
|
-
const update$
|
|
11432
|
+
const update$s = (http, params, data, headers) => {
|
|
11388
11433
|
return put$1(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`, data, {
|
|
11389
11434
|
headers: {
|
|
11390
11435
|
'X-Contentful-Version': params.version,
|
|
@@ -11395,39 +11440,39 @@ var contentfulManagement = (function (exports) {
|
|
|
11395
11440
|
|
|
11396
11441
|
var ConceptScheme = /*#__PURE__*/Object.freeze({
|
|
11397
11442
|
__proto__: null,
|
|
11398
|
-
create: create$
|
|
11443
|
+
create: create$s,
|
|
11399
11444
|
createWithId: createWithId$a,
|
|
11400
|
-
del: del$
|
|
11401
|
-
get: get$
|
|
11402
|
-
getMany: getMany$
|
|
11445
|
+
del: del$u,
|
|
11446
|
+
get: get$L,
|
|
11447
|
+
getMany: getMany$D,
|
|
11403
11448
|
getTotal: getTotal,
|
|
11404
11449
|
patch: patch$3,
|
|
11405
|
-
update: update$
|
|
11450
|
+
update: update$s
|
|
11406
11451
|
});
|
|
11407
11452
|
|
|
11408
|
-
const getBaseUrl$
|
|
11409
|
-
const getContentTypeUrl$1 = (params) => getBaseUrl$
|
|
11410
|
-
const get$
|
|
11411
|
-
return get$
|
|
11453
|
+
const getBaseUrl$n = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types`;
|
|
11454
|
+
const getContentTypeUrl$1 = (params) => getBaseUrl$n(params) + `/${params.contentTypeId}`;
|
|
11455
|
+
const get$K = (http, params, headers) => {
|
|
11456
|
+
return get$19(http, getContentTypeUrl$1(params), {
|
|
11412
11457
|
params: normalizeSelect(params.query),
|
|
11413
11458
|
headers,
|
|
11414
11459
|
});
|
|
11415
11460
|
};
|
|
11416
|
-
const getMany$
|
|
11417
|
-
return get$
|
|
11461
|
+
const getMany$C = (http, params, headers) => {
|
|
11462
|
+
return get$19(http, getBaseUrl$n(params), {
|
|
11418
11463
|
params: params.query,
|
|
11419
11464
|
headers,
|
|
11420
11465
|
});
|
|
11421
11466
|
};
|
|
11422
|
-
const create$
|
|
11467
|
+
const create$r = (http, params, rawData, headers) => {
|
|
11423
11468
|
const data = index$2(rawData);
|
|
11424
|
-
return post$1(http, getBaseUrl$
|
|
11469
|
+
return post$1(http, getBaseUrl$n(params), data, { headers });
|
|
11425
11470
|
};
|
|
11426
11471
|
const createWithId$9 = (http, params, rawData, headers) => {
|
|
11427
11472
|
const data = index$2(rawData);
|
|
11428
11473
|
return put$1(http, getContentTypeUrl$1(params), data, { headers });
|
|
11429
11474
|
};
|
|
11430
|
-
const update$
|
|
11475
|
+
const update$r = (http, params, rawData, headers) => {
|
|
11431
11476
|
const data = index$2(rawData);
|
|
11432
11477
|
delete data.sys;
|
|
11433
11478
|
return put$1(http, getContentTypeUrl$1(params), data, {
|
|
@@ -11437,10 +11482,10 @@ var contentfulManagement = (function (exports) {
|
|
|
11437
11482
|
},
|
|
11438
11483
|
});
|
|
11439
11484
|
};
|
|
11440
|
-
const del$
|
|
11441
|
-
return del$
|
|
11485
|
+
const del$t = (http, params, headers) => {
|
|
11486
|
+
return del$M(http, getContentTypeUrl$1(params), { headers });
|
|
11442
11487
|
};
|
|
11443
|
-
const publish$
|
|
11488
|
+
const publish$6 = (http, params, rawData, headers) => {
|
|
11444
11489
|
return put$1(http, getContentTypeUrl$1(params) + '/published', null, {
|
|
11445
11490
|
headers: {
|
|
11446
11491
|
'X-Contentful-Version': rawData.sys.version,
|
|
@@ -11448,33 +11493,103 @@ var contentfulManagement = (function (exports) {
|
|
|
11448
11493
|
},
|
|
11449
11494
|
});
|
|
11450
11495
|
};
|
|
11451
|
-
const unpublish$
|
|
11452
|
-
return del$
|
|
11496
|
+
const unpublish$6 = (http, params, headers) => {
|
|
11497
|
+
return del$M(http, getContentTypeUrl$1(params) + '/published', { headers });
|
|
11453
11498
|
};
|
|
11454
11499
|
|
|
11455
11500
|
var ContentType = /*#__PURE__*/Object.freeze({
|
|
11456
11501
|
__proto__: null,
|
|
11457
|
-
create: create$
|
|
11502
|
+
create: create$r,
|
|
11458
11503
|
createWithId: createWithId$9,
|
|
11459
|
-
del: del$
|
|
11460
|
-
get: get$
|
|
11461
|
-
getMany: getMany$
|
|
11462
|
-
publish: publish$
|
|
11463
|
-
unpublish: unpublish$
|
|
11464
|
-
update: update$
|
|
11504
|
+
del: del$t,
|
|
11505
|
+
get: get$K,
|
|
11506
|
+
getMany: getMany$C,
|
|
11507
|
+
publish: publish$6,
|
|
11508
|
+
unpublish: unpublish$6,
|
|
11509
|
+
update: update$r
|
|
11465
11510
|
});
|
|
11466
11511
|
|
|
11467
|
-
const getBaseUrl$
|
|
11468
|
-
const
|
|
11469
|
-
|
|
11512
|
+
const getBaseUrl$m = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/data_assemblies`;
|
|
11513
|
+
const getPublicUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/public/data_assemblies`;
|
|
11514
|
+
const getMany$B = (http, params, headers) => {
|
|
11515
|
+
return get$19(http, getBaseUrl$m(params), {
|
|
11516
|
+
params: params.query,
|
|
11517
|
+
headers,
|
|
11518
|
+
});
|
|
11519
|
+
};
|
|
11520
|
+
const get$J = (http, params, headers) => {
|
|
11521
|
+
return get$19(http, getBaseUrl$m(params) + `/${params.dataAssemblyId}`, {
|
|
11522
|
+
headers,
|
|
11523
|
+
});
|
|
11470
11524
|
};
|
|
11471
|
-
const
|
|
11472
|
-
|
|
11525
|
+
const create$q = (http, params, rawData, headers) => {
|
|
11526
|
+
const data = index$2(rawData);
|
|
11527
|
+
return post$1(http, getBaseUrl$m(params), data, { headers });
|
|
11473
11528
|
};
|
|
11474
|
-
const update$
|
|
11529
|
+
const update$q = (http, params, rawData, headers) => {
|
|
11530
|
+
const data = index$2(rawData);
|
|
11531
|
+
return put$1(http, getBaseUrl$m(params) + `/${params.dataAssemblyId}`, data, {
|
|
11532
|
+
headers: {
|
|
11533
|
+
'X-Contentful-Version': rawData.sys.version ?? 0,
|
|
11534
|
+
...headers,
|
|
11535
|
+
},
|
|
11536
|
+
});
|
|
11537
|
+
};
|
|
11538
|
+
const del$s = (http, params) => {
|
|
11539
|
+
return del$M(http, getBaseUrl$m(params) + `/${params.dataAssemblyId}`);
|
|
11540
|
+
};
|
|
11541
|
+
const publish$5 = (http, params, headers) => {
|
|
11542
|
+
return put$1(http, `${getBaseUrl$m(params)}/${params.dataAssemblyId}/published`, null, {
|
|
11543
|
+
headers: {
|
|
11544
|
+
'X-Contentful-Version': params.version,
|
|
11545
|
+
...headers,
|
|
11546
|
+
},
|
|
11547
|
+
});
|
|
11548
|
+
};
|
|
11549
|
+
const getPublished$1 = (http, params, headers) => {
|
|
11550
|
+
return get$19(http, getPublicUrl(params) + `/${params.dataAssemblyId}`, {
|
|
11551
|
+
headers,
|
|
11552
|
+
});
|
|
11553
|
+
};
|
|
11554
|
+
const getManyPublished = (http, params, headers) => {
|
|
11555
|
+
return get$19(http, getPublicUrl(params), {
|
|
11556
|
+
params: params.query,
|
|
11557
|
+
headers,
|
|
11558
|
+
});
|
|
11559
|
+
};
|
|
11560
|
+
const unpublish$5 = (http, params, headers) => {
|
|
11561
|
+
return del$M(http, `${getBaseUrl$m(params)}/${params.dataAssemblyId}/published`, {
|
|
11562
|
+
headers: {
|
|
11563
|
+
'X-Contentful-Version': params.version,
|
|
11564
|
+
...headers,
|
|
11565
|
+
},
|
|
11566
|
+
});
|
|
11567
|
+
};
|
|
11568
|
+
|
|
11569
|
+
var DataAssembly = /*#__PURE__*/Object.freeze({
|
|
11570
|
+
__proto__: null,
|
|
11571
|
+
create: create$q,
|
|
11572
|
+
del: del$s,
|
|
11573
|
+
get: get$J,
|
|
11574
|
+
getMany: getMany$B,
|
|
11575
|
+
getManyPublished: getManyPublished,
|
|
11576
|
+
getPublished: getPublished$1,
|
|
11577
|
+
publish: publish$5,
|
|
11578
|
+
unpublish: unpublish$5,
|
|
11579
|
+
update: update$q
|
|
11580
|
+
});
|
|
11581
|
+
|
|
11582
|
+
const getBaseUrl$l = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/editor_interface`;
|
|
11583
|
+
const get$I = (http, params) => {
|
|
11584
|
+
return get$19(http, getBaseUrl$l(params));
|
|
11585
|
+
};
|
|
11586
|
+
const getMany$A = (http, params) => {
|
|
11587
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/editor_interfaces`);
|
|
11588
|
+
};
|
|
11589
|
+
const update$p = (http, params, rawData, headers) => {
|
|
11475
11590
|
const data = index$2(rawData);
|
|
11476
11591
|
delete data.sys;
|
|
11477
|
-
return put$1(http, getBaseUrl$
|
|
11592
|
+
return put$1(http, getBaseUrl$l(params), data, {
|
|
11478
11593
|
headers: {
|
|
11479
11594
|
'X-Contentful-Version': rawData.sys.version ?? 0,
|
|
11480
11595
|
...headers,
|
|
@@ -11484,36 +11599,36 @@ var contentfulManagement = (function (exports) {
|
|
|
11484
11599
|
|
|
11485
11600
|
var EditorInterface = /*#__PURE__*/Object.freeze({
|
|
11486
11601
|
__proto__: null,
|
|
11487
|
-
get: get$
|
|
11488
|
-
getMany: getMany$
|
|
11489
|
-
update: update$
|
|
11602
|
+
get: get$I,
|
|
11603
|
+
getMany: getMany$A,
|
|
11604
|
+
update: update$p
|
|
11490
11605
|
});
|
|
11491
11606
|
|
|
11492
|
-
const getBaseUrl$
|
|
11493
|
-
const getMany$
|
|
11494
|
-
return get$
|
|
11607
|
+
const getBaseUrl$k = (params) => `/spaces/${params.spaceId}/eligible_licenses`;
|
|
11608
|
+
const getMany$z = (http, params) => {
|
|
11609
|
+
return get$19(http, getBaseUrl$k(params), {
|
|
11495
11610
|
params: params.query,
|
|
11496
11611
|
});
|
|
11497
11612
|
};
|
|
11498
11613
|
|
|
11499
11614
|
var EligibleLicense = /*#__PURE__*/Object.freeze({
|
|
11500
11615
|
__proto__: null,
|
|
11501
|
-
getMany: getMany$
|
|
11616
|
+
getMany: getMany$z
|
|
11502
11617
|
});
|
|
11503
11618
|
|
|
11504
|
-
const get$
|
|
11505
|
-
return get$
|
|
11619
|
+
const get$H = (http, params, rawData, headers) => {
|
|
11620
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries/${params.entryId}`, {
|
|
11506
11621
|
params: normalizeSelect(params.query),
|
|
11507
11622
|
headers: { ...headers },
|
|
11508
11623
|
});
|
|
11509
11624
|
};
|
|
11510
|
-
const getMany$
|
|
11511
|
-
return get$
|
|
11625
|
+
const getMany$y = (http, params, rawData, headers) => {
|
|
11626
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, {
|
|
11512
11627
|
params: normalizeSelect(params.query),
|
|
11513
11628
|
headers: { ...headers },
|
|
11514
11629
|
});
|
|
11515
11630
|
};
|
|
11516
|
-
const update$
|
|
11631
|
+
const update$o = (http, params, rawData, headers) => {
|
|
11517
11632
|
const data = index$2(rawData);
|
|
11518
11633
|
delete data.sys;
|
|
11519
11634
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries/${params.entryId}`, data, {
|
|
@@ -11532,7 +11647,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11532
11647
|
},
|
|
11533
11648
|
});
|
|
11534
11649
|
};
|
|
11535
|
-
const create$
|
|
11650
|
+
const create$p = (http, params, rawData, headers) => {
|
|
11536
11651
|
const data = index$2(rawData);
|
|
11537
11652
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, data, {
|
|
11538
11653
|
headers: {
|
|
@@ -11553,34 +11668,34 @@ var contentfulManagement = (function (exports) {
|
|
|
11553
11668
|
|
|
11554
11669
|
var ReleaseEntry = /*#__PURE__*/Object.freeze({
|
|
11555
11670
|
__proto__: null,
|
|
11556
|
-
create: create$
|
|
11671
|
+
create: create$p,
|
|
11557
11672
|
createWithId: createWithId$8,
|
|
11558
|
-
get: get$
|
|
11559
|
-
getMany: getMany$
|
|
11673
|
+
get: get$H,
|
|
11674
|
+
getMany: getMany$y,
|
|
11560
11675
|
patch: patch$2,
|
|
11561
|
-
update: update$
|
|
11676
|
+
update: update$o
|
|
11562
11677
|
});
|
|
11563
11678
|
|
|
11564
|
-
const get$
|
|
11679
|
+
const get$G = (http, params, rawData, headers) => {
|
|
11565
11680
|
if (params.releaseId) {
|
|
11566
|
-
return get$
|
|
11681
|
+
return get$H(http, params);
|
|
11567
11682
|
}
|
|
11568
|
-
return get$
|
|
11683
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, {
|
|
11569
11684
|
params: normalizeSelect(params.query),
|
|
11570
11685
|
headers: { ...headers },
|
|
11571
11686
|
});
|
|
11572
11687
|
};
|
|
11573
11688
|
const getPublished = (http, params, rawData, headers) => {
|
|
11574
|
-
return get$
|
|
11689
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/entries`, {
|
|
11575
11690
|
params: normalizeSelect(params.query),
|
|
11576
11691
|
headers: { ...headers },
|
|
11577
11692
|
});
|
|
11578
11693
|
};
|
|
11579
|
-
const getMany$
|
|
11694
|
+
const getMany$x = (http, params, rawData, headers) => {
|
|
11580
11695
|
if (params.releaseId) {
|
|
11581
|
-
return getMany$
|
|
11696
|
+
return getMany$y(http, params);
|
|
11582
11697
|
}
|
|
11583
|
-
return get$
|
|
11698
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, {
|
|
11584
11699
|
params: normalizeSelect(params.query),
|
|
11585
11700
|
headers: { ...headers },
|
|
11586
11701
|
});
|
|
@@ -11597,9 +11712,9 @@ var contentfulManagement = (function (exports) {
|
|
|
11597
11712
|
},
|
|
11598
11713
|
});
|
|
11599
11714
|
};
|
|
11600
|
-
const update$
|
|
11715
|
+
const update$n = (http, params, rawData, headers) => {
|
|
11601
11716
|
if (params.releaseId) {
|
|
11602
|
-
return update$
|
|
11717
|
+
return update$o(http, params, rawData, headers ?? {});
|
|
11603
11718
|
}
|
|
11604
11719
|
const data = index$2(rawData);
|
|
11605
11720
|
delete data.sys;
|
|
@@ -11610,10 +11725,10 @@ var contentfulManagement = (function (exports) {
|
|
|
11610
11725
|
},
|
|
11611
11726
|
});
|
|
11612
11727
|
};
|
|
11613
|
-
const del$
|
|
11614
|
-
return del$
|
|
11728
|
+
const del$r = (http, params) => {
|
|
11729
|
+
return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`);
|
|
11615
11730
|
};
|
|
11616
|
-
const publish$
|
|
11731
|
+
const publish$4 = (http, params, rawData) => {
|
|
11617
11732
|
const payload = params.locales?.length ? { add: { fields: { '*': params.locales } } } : null;
|
|
11618
11733
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`, payload, {
|
|
11619
11734
|
headers: {
|
|
@@ -11621,7 +11736,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11621
11736
|
},
|
|
11622
11737
|
});
|
|
11623
11738
|
};
|
|
11624
|
-
const unpublish$
|
|
11739
|
+
const unpublish$4 = (http, params, rawData) => {
|
|
11625
11740
|
if (params.locales?.length) {
|
|
11626
11741
|
const payload = { remove: { fields: { '*': params.locales } } };
|
|
11627
11742
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`, payload, {
|
|
@@ -11631,18 +11746,18 @@ var contentfulManagement = (function (exports) {
|
|
|
11631
11746
|
});
|
|
11632
11747
|
}
|
|
11633
11748
|
else {
|
|
11634
|
-
return del$
|
|
11749
|
+
return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`);
|
|
11635
11750
|
}
|
|
11636
11751
|
};
|
|
11637
11752
|
const archive$1 = (http, params) => {
|
|
11638
11753
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
|
|
11639
11754
|
};
|
|
11640
11755
|
const unarchive$2 = (http, params) => {
|
|
11641
|
-
return del$
|
|
11756
|
+
return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
|
|
11642
11757
|
};
|
|
11643
|
-
const create$
|
|
11758
|
+
const create$o = (http, params, rawData) => {
|
|
11644
11759
|
if (params.releaseId) {
|
|
11645
|
-
return create$
|
|
11760
|
+
return create$p(http, params, rawData, {});
|
|
11646
11761
|
}
|
|
11647
11762
|
const data = index$2(rawData);
|
|
11648
11763
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, data, {
|
|
@@ -11665,35 +11780,35 @@ var contentfulManagement = (function (exports) {
|
|
|
11665
11780
|
const references = (http, params) => {
|
|
11666
11781
|
const { spaceId, environmentId, entryId, include } = params;
|
|
11667
11782
|
const level = include || 2;
|
|
11668
|
-
return get$
|
|
11783
|
+
return get$19(http, `/spaces/${spaceId}/environments/${environmentId}/entries/${entryId}/references?include=${level}`);
|
|
11669
11784
|
};
|
|
11670
11785
|
|
|
11671
11786
|
var Entry = /*#__PURE__*/Object.freeze({
|
|
11672
11787
|
__proto__: null,
|
|
11673
11788
|
archive: archive$1,
|
|
11674
|
-
create: create$
|
|
11789
|
+
create: create$o,
|
|
11675
11790
|
createWithId: createWithId$7,
|
|
11676
|
-
del: del$
|
|
11677
|
-
get: get$
|
|
11678
|
-
getMany: getMany$
|
|
11791
|
+
del: del$r,
|
|
11792
|
+
get: get$G,
|
|
11793
|
+
getMany: getMany$x,
|
|
11679
11794
|
getPublished: getPublished,
|
|
11680
11795
|
patch: patch$1,
|
|
11681
|
-
publish: publish$
|
|
11796
|
+
publish: publish$4,
|
|
11682
11797
|
references: references,
|
|
11683
11798
|
unarchive: unarchive$2,
|
|
11684
|
-
unpublish: unpublish$
|
|
11685
|
-
update: update$
|
|
11799
|
+
unpublish: unpublish$4,
|
|
11800
|
+
update: update$n
|
|
11686
11801
|
});
|
|
11687
11802
|
|
|
11688
|
-
const get$
|
|
11689
|
-
return get$
|
|
11803
|
+
const get$F = (http, params) => {
|
|
11804
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
|
|
11690
11805
|
};
|
|
11691
|
-
const getMany$
|
|
11692
|
-
return get$
|
|
11806
|
+
const getMany$w = (http, params) => {
|
|
11807
|
+
return get$19(http, `/spaces/${params.spaceId}/environments`, {
|
|
11693
11808
|
params: params.query,
|
|
11694
11809
|
});
|
|
11695
11810
|
};
|
|
11696
|
-
const update$
|
|
11811
|
+
const update$m = (http, params, rawData, headers) => {
|
|
11697
11812
|
const data = index$2(rawData);
|
|
11698
11813
|
delete data.sys;
|
|
11699
11814
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`, data, {
|
|
@@ -11703,10 +11818,10 @@ var contentfulManagement = (function (exports) {
|
|
|
11703
11818
|
},
|
|
11704
11819
|
});
|
|
11705
11820
|
};
|
|
11706
|
-
const del$
|
|
11707
|
-
return del$
|
|
11821
|
+
const del$q = (http, params) => {
|
|
11822
|
+
return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
|
|
11708
11823
|
};
|
|
11709
|
-
const create$
|
|
11824
|
+
const create$n = (http, params, rawData, headers) => {
|
|
11710
11825
|
const data = index$2(rawData);
|
|
11711
11826
|
return post$1(http, `/spaces/${params.spaceId}/environments`, data, {
|
|
11712
11827
|
headers,
|
|
@@ -11728,27 +11843,27 @@ var contentfulManagement = (function (exports) {
|
|
|
11728
11843
|
|
|
11729
11844
|
var Environment = /*#__PURE__*/Object.freeze({
|
|
11730
11845
|
__proto__: null,
|
|
11731
|
-
create: create$
|
|
11846
|
+
create: create$n,
|
|
11732
11847
|
createWithId: createWithId$6,
|
|
11733
|
-
del: del$
|
|
11734
|
-
get: get$
|
|
11735
|
-
getMany: getMany$
|
|
11736
|
-
update: update$
|
|
11848
|
+
del: del$q,
|
|
11849
|
+
get: get$F,
|
|
11850
|
+
getMany: getMany$w,
|
|
11851
|
+
update: update$m
|
|
11737
11852
|
});
|
|
11738
11853
|
|
|
11739
11854
|
/**
|
|
11740
11855
|
* Urls
|
|
11741
11856
|
*/
|
|
11742
|
-
const getBaseUrl$
|
|
11743
|
-
const getEnvironmentAliasUrl = (params) => getBaseUrl$
|
|
11857
|
+
const getBaseUrl$j = (params) => `/spaces/${params.spaceId}/environment_aliases`;
|
|
11858
|
+
const getEnvironmentAliasUrl = (params) => getBaseUrl$j(params) + `/${params.environmentAliasId}`;
|
|
11744
11859
|
/**
|
|
11745
11860
|
* Endpoints
|
|
11746
11861
|
*/
|
|
11747
|
-
const get$
|
|
11748
|
-
return get$
|
|
11862
|
+
const get$E = (http, params) => {
|
|
11863
|
+
return get$19(http, getEnvironmentAliasUrl(params));
|
|
11749
11864
|
};
|
|
11750
|
-
const getMany$
|
|
11751
|
-
return get$
|
|
11865
|
+
const getMany$v = (http, params) => {
|
|
11866
|
+
return get$19(http, getBaseUrl$j(params), {
|
|
11752
11867
|
params: params.query,
|
|
11753
11868
|
});
|
|
11754
11869
|
};
|
|
@@ -11758,7 +11873,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11758
11873
|
headers: headers,
|
|
11759
11874
|
});
|
|
11760
11875
|
};
|
|
11761
|
-
const update$
|
|
11876
|
+
const update$l = (http, params, rawData, headers) => {
|
|
11762
11877
|
const data = index$2(rawData);
|
|
11763
11878
|
delete data.sys;
|
|
11764
11879
|
return put$1(http, getEnvironmentAliasUrl(params), data, {
|
|
@@ -11768,32 +11883,32 @@ var contentfulManagement = (function (exports) {
|
|
|
11768
11883
|
},
|
|
11769
11884
|
});
|
|
11770
11885
|
};
|
|
11771
|
-
const del$
|
|
11772
|
-
return del$
|
|
11886
|
+
const del$p = (http, params) => {
|
|
11887
|
+
return del$M(http, getEnvironmentAliasUrl(params));
|
|
11773
11888
|
};
|
|
11774
11889
|
|
|
11775
11890
|
var EnvironmentAlias = /*#__PURE__*/Object.freeze({
|
|
11776
11891
|
__proto__: null,
|
|
11777
11892
|
createWithId: createWithId$5,
|
|
11778
|
-
del: del$
|
|
11779
|
-
get: get$
|
|
11780
|
-
getMany: getMany$
|
|
11781
|
-
update: update$
|
|
11893
|
+
del: del$p,
|
|
11894
|
+
get: get$E,
|
|
11895
|
+
getMany: getMany$v,
|
|
11896
|
+
update: update$l
|
|
11782
11897
|
});
|
|
11783
11898
|
|
|
11784
11899
|
const apiPath$1 = (organizationId, ...pathSegments) => `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/');
|
|
11785
|
-
const get$
|
|
11786
|
-
? get$
|
|
11900
|
+
const get$D = (http, { organizationId, environmentTemplateId, version, query = {} }, headers) => version
|
|
11901
|
+
? get$19(http, apiPath$1(organizationId, environmentTemplateId, 'versions', version), {
|
|
11787
11902
|
params: query,
|
|
11788
11903
|
headers,
|
|
11789
11904
|
})
|
|
11790
|
-
: get$
|
|
11905
|
+
: get$19(http, apiPath$1(organizationId, environmentTemplateId), {
|
|
11791
11906
|
params: query,
|
|
11792
11907
|
headers,
|
|
11793
11908
|
});
|
|
11794
|
-
const getMany$
|
|
11795
|
-
const create$
|
|
11796
|
-
const update$
|
|
11909
|
+
const getMany$u = (http, { organizationId, query = {} }, headers) => get$19(http, apiPath$1(organizationId), { params: query, headers });
|
|
11910
|
+
const create$m = (http, { organizationId }, payload, headers) => post$1(http, apiPath$1(organizationId), payload, { headers });
|
|
11911
|
+
const update$k = (http, { organizationId, environmentTemplateId }, payload, headers) => {
|
|
11797
11912
|
const data = index$2(payload);
|
|
11798
11913
|
delete data.sys;
|
|
11799
11914
|
return put$1(http, apiPath$1(organizationId, environmentTemplateId), data, {
|
|
@@ -11806,8 +11921,8 @@ var contentfulManagement = (function (exports) {
|
|
|
11806
11921
|
const versionUpdate = (http, { organizationId, version, environmentTemplateId }, payload, headers) => patch$5(http, apiPath$1(organizationId, environmentTemplateId, 'versions', version), payload, {
|
|
11807
11922
|
headers,
|
|
11808
11923
|
});
|
|
11809
|
-
const del$
|
|
11810
|
-
const versions = (http, { organizationId, environmentTemplateId, query = {} }, headers) => get$
|
|
11924
|
+
const del$o = (http, { organizationId, environmentTemplateId }, headers) => del$M(http, apiPath$1(organizationId, environmentTemplateId), { headers });
|
|
11925
|
+
const versions = (http, { organizationId, environmentTemplateId, query = {} }, headers) => get$19(http, apiPath$1(organizationId, environmentTemplateId, 'versions'), {
|
|
11811
11926
|
params: query,
|
|
11812
11927
|
headers,
|
|
11813
11928
|
});
|
|
@@ -11815,24 +11930,24 @@ var contentfulManagement = (function (exports) {
|
|
|
11815
11930
|
? `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions/${version}/validated`
|
|
11816
11931
|
: `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/validated`, payload, { headers });
|
|
11817
11932
|
const install = (http, { spaceId, environmentId, environmentTemplateId }, payload, headers) => post$1(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions`, payload, { headers });
|
|
11818
|
-
const disconnect = (http, { spaceId, environmentId, environmentTemplateId }, headers) => del$
|
|
11933
|
+
const disconnect = (http, { spaceId, environmentId, environmentTemplateId }, headers) => del$M(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, { headers });
|
|
11819
11934
|
|
|
11820
11935
|
var EnvironmentTemplate = /*#__PURE__*/Object.freeze({
|
|
11821
11936
|
__proto__: null,
|
|
11822
|
-
create: create$
|
|
11823
|
-
del: del$
|
|
11937
|
+
create: create$m,
|
|
11938
|
+
del: del$o,
|
|
11824
11939
|
disconnect: disconnect,
|
|
11825
|
-
get: get$
|
|
11826
|
-
getMany: getMany$
|
|
11940
|
+
get: get$D,
|
|
11941
|
+
getMany: getMany$u,
|
|
11827
11942
|
install: install,
|
|
11828
|
-
update: update$
|
|
11943
|
+
update: update$k,
|
|
11829
11944
|
validate: validate$1,
|
|
11830
11945
|
versionUpdate: versionUpdate,
|
|
11831
11946
|
versions: versions
|
|
11832
11947
|
});
|
|
11833
11948
|
|
|
11834
11949
|
const apiPath = (organizationId, ...pathSegments) => `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/');
|
|
11835
|
-
const getMany$
|
|
11950
|
+
const getMany$t = (http, { organizationId, environmentTemplateId, spaceId, environmentId, ...otherProps }, headers) => get$19(http, apiPath(organizationId, environmentTemplateId, 'template_installations'), {
|
|
11836
11951
|
params: {
|
|
11837
11952
|
...otherProps,
|
|
11838
11953
|
...(environmentId && { 'environment.sys.id': environmentId }),
|
|
@@ -11840,7 +11955,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11840
11955
|
},
|
|
11841
11956
|
headers,
|
|
11842
11957
|
});
|
|
11843
|
-
const getForEnvironment$1 = (http, { spaceId, environmentId, environmentTemplateId, installationId, ...paginationProps }, headers) => get$
|
|
11958
|
+
const getForEnvironment$1 = (http, { spaceId, environmentId, environmentTemplateId, installationId, ...paginationProps }, headers) => get$19(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, {
|
|
11844
11959
|
params: {
|
|
11845
11960
|
...(installationId && { 'sys.id': installationId }),
|
|
11846
11961
|
...paginationProps,
|
|
@@ -11851,29 +11966,29 @@ var contentfulManagement = (function (exports) {
|
|
|
11851
11966
|
var EnvironmentTemplateInstallation = /*#__PURE__*/Object.freeze({
|
|
11852
11967
|
__proto__: null,
|
|
11853
11968
|
getForEnvironment: getForEnvironment$1,
|
|
11854
|
-
getMany: getMany$
|
|
11969
|
+
getMany: getMany$t
|
|
11855
11970
|
});
|
|
11856
11971
|
|
|
11857
|
-
const getBaseUrl$
|
|
11858
|
-
const getExtensionUrl = (params) => getBaseUrl$
|
|
11859
|
-
const get$
|
|
11860
|
-
return get$
|
|
11972
|
+
const getBaseUrl$i = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/extensions`;
|
|
11973
|
+
const getExtensionUrl = (params) => getBaseUrl$i(params) + `/${params.extensionId}`;
|
|
11974
|
+
const get$C = (http, params) => {
|
|
11975
|
+
return get$19(http, getExtensionUrl(params), {
|
|
11861
11976
|
params: normalizeSelect(params.query),
|
|
11862
11977
|
});
|
|
11863
11978
|
};
|
|
11864
|
-
const getMany$
|
|
11865
|
-
return get$
|
|
11979
|
+
const getMany$s = (http, params) => {
|
|
11980
|
+
return get$19(http, getBaseUrl$i(params), {
|
|
11866
11981
|
params: normalizeSelect(params.query),
|
|
11867
11982
|
});
|
|
11868
11983
|
};
|
|
11869
|
-
const create$
|
|
11870
|
-
return post$1(http, getBaseUrl$
|
|
11984
|
+
const create$l = (http, params, rawData, headers) => {
|
|
11985
|
+
return post$1(http, getBaseUrl$i(params), rawData, { headers });
|
|
11871
11986
|
};
|
|
11872
11987
|
const createWithId$4 = (http, params, rawData, headers) => {
|
|
11873
11988
|
const data = index$2(rawData);
|
|
11874
11989
|
return put$1(http, getExtensionUrl(params), data, { headers });
|
|
11875
11990
|
};
|
|
11876
|
-
const update$
|
|
11991
|
+
const update$j = async (http, params, rawData, headers) => {
|
|
11877
11992
|
const data = index$2(rawData);
|
|
11878
11993
|
delete data.sys;
|
|
11879
11994
|
return put$1(http, getExtensionUrl(params), data, {
|
|
@@ -11883,18 +11998,74 @@ var contentfulManagement = (function (exports) {
|
|
|
11883
11998
|
},
|
|
11884
11999
|
});
|
|
11885
12000
|
};
|
|
11886
|
-
const del$
|
|
11887
|
-
return del$
|
|
12001
|
+
const del$n = (http, params) => {
|
|
12002
|
+
return del$M(http, getExtensionUrl(params));
|
|
11888
12003
|
};
|
|
11889
12004
|
|
|
11890
12005
|
var Extension = /*#__PURE__*/Object.freeze({
|
|
11891
12006
|
__proto__: null,
|
|
11892
|
-
create: create$
|
|
12007
|
+
create: create$l,
|
|
11893
12008
|
createWithId: createWithId$4,
|
|
11894
|
-
del: del$
|
|
11895
|
-
get: get$
|
|
12009
|
+
del: del$n,
|
|
12010
|
+
get: get$C,
|
|
11896
12011
|
getExtensionUrl: getExtensionUrl,
|
|
11897
|
-
getMany: getMany$
|
|
12012
|
+
getMany: getMany$s,
|
|
12013
|
+
update: update$j
|
|
12014
|
+
});
|
|
12015
|
+
|
|
12016
|
+
const getBaseUrl$h = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/fragments`;
|
|
12017
|
+
const getMany$r = (http, params, headers) => {
|
|
12018
|
+
return get$19(http, getBaseUrl$h(params), {
|
|
12019
|
+
params: params.query,
|
|
12020
|
+
headers,
|
|
12021
|
+
});
|
|
12022
|
+
};
|
|
12023
|
+
const get$B = (http, params, headers) => {
|
|
12024
|
+
return get$19(http, getBaseUrl$h(params) + `/${params.fragmentId}`, { headers });
|
|
12025
|
+
};
|
|
12026
|
+
const create$k = (http, params, rawData, headers) => {
|
|
12027
|
+
const data = index$2(rawData);
|
|
12028
|
+
return post$1(http, getBaseUrl$h(params), data, { headers });
|
|
12029
|
+
};
|
|
12030
|
+
const update$i = (http, params, rawData, headers) => {
|
|
12031
|
+
const { sys, ...body } = index$2(rawData);
|
|
12032
|
+
return put$1(http, getBaseUrl$h(params) + `/${params.fragmentId}`, body, {
|
|
12033
|
+
headers: {
|
|
12034
|
+
...(sys?.version !== undefined && {
|
|
12035
|
+
'X-Contentful-Version': sys.version,
|
|
12036
|
+
}),
|
|
12037
|
+
...headers,
|
|
12038
|
+
},
|
|
12039
|
+
});
|
|
12040
|
+
};
|
|
12041
|
+
const del$m = (http, params) => {
|
|
12042
|
+
return del$M(http, getBaseUrl$h(params) + `/${params.fragmentId}`);
|
|
12043
|
+
};
|
|
12044
|
+
const publish$3 = (http, params, headers) => {
|
|
12045
|
+
return put$1(http, getBaseUrl$h(params) + `/${params.fragmentId}/published`, null, {
|
|
12046
|
+
headers: {
|
|
12047
|
+
'X-Contentful-Version': params.version,
|
|
12048
|
+
...headers,
|
|
12049
|
+
},
|
|
12050
|
+
});
|
|
12051
|
+
};
|
|
12052
|
+
const unpublish$3 = (http, params, headers) => {
|
|
12053
|
+
return del$M(http, getBaseUrl$h(params) + `/${params.fragmentId}/published`, {
|
|
12054
|
+
headers: {
|
|
12055
|
+
'X-Contentful-Version': params.version,
|
|
12056
|
+
...headers,
|
|
12057
|
+
},
|
|
12058
|
+
});
|
|
12059
|
+
};
|
|
12060
|
+
|
|
12061
|
+
var Fragment = /*#__PURE__*/Object.freeze({
|
|
12062
|
+
__proto__: null,
|
|
12063
|
+
create: create$k,
|
|
12064
|
+
del: del$m,
|
|
12065
|
+
get: get$B,
|
|
12066
|
+
getMany: getMany$r,
|
|
12067
|
+
publish: publish$3,
|
|
12068
|
+
unpublish: unpublish$3,
|
|
11898
12069
|
update: update$i
|
|
11899
12070
|
});
|
|
11900
12071
|
|
|
@@ -11904,22 +12075,22 @@ var contentfulManagement = (function (exports) {
|
|
|
11904
12075
|
const getFunctionsEnvURL = (params) => {
|
|
11905
12076
|
return `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions`;
|
|
11906
12077
|
};
|
|
11907
|
-
const get$
|
|
11908
|
-
return get$
|
|
12078
|
+
const get$A = (http, params) => {
|
|
12079
|
+
return get$19(http, getFunctionUrl(params));
|
|
11909
12080
|
};
|
|
11910
|
-
const getMany$
|
|
11911
|
-
return get$
|
|
12081
|
+
const getMany$q = (http, params) => {
|
|
12082
|
+
return get$19(http, getManyUrl(params), { params: params.query });
|
|
11912
12083
|
};
|
|
11913
12084
|
const getManyForEnvironment$1 = (http, params) => {
|
|
11914
|
-
return get$
|
|
12085
|
+
return get$19(http, getFunctionsEnvURL(params), {
|
|
11915
12086
|
params: params.query,
|
|
11916
12087
|
});
|
|
11917
12088
|
};
|
|
11918
12089
|
|
|
11919
12090
|
var Function$1 = /*#__PURE__*/Object.freeze({
|
|
11920
12091
|
__proto__: null,
|
|
11921
|
-
get: get$
|
|
11922
|
-
getMany: getMany$
|
|
12092
|
+
get: get$A,
|
|
12093
|
+
getMany: getMany$q,
|
|
11923
12094
|
getManyForEnvironment: getManyForEnvironment$1
|
|
11924
12095
|
});
|
|
11925
12096
|
|
|
@@ -11928,15 +12099,15 @@ var contentfulManagement = (function (exports) {
|
|
|
11928
12099
|
};
|
|
11929
12100
|
const baseURL = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs`;
|
|
11930
12101
|
const getURL = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs/${params.logId}`;
|
|
11931
|
-
const get$
|
|
11932
|
-
return get$
|
|
12102
|
+
const get$z = (http, params) => {
|
|
12103
|
+
return get$19(http, getURL(params), {
|
|
11933
12104
|
headers: {
|
|
11934
12105
|
...FunctionLogAlphaHeaders,
|
|
11935
12106
|
},
|
|
11936
12107
|
});
|
|
11937
12108
|
};
|
|
11938
|
-
const getMany$
|
|
11939
|
-
return get$
|
|
12109
|
+
const getMany$p = (http, params) => {
|
|
12110
|
+
return get$19(http, baseURL(params), {
|
|
11940
12111
|
params: params.query,
|
|
11941
12112
|
headers: {
|
|
11942
12113
|
...FunctionLogAlphaHeaders,
|
|
@@ -11946,12 +12117,12 @@ var contentfulManagement = (function (exports) {
|
|
|
11946
12117
|
|
|
11947
12118
|
var FunctionLog = /*#__PURE__*/Object.freeze({
|
|
11948
12119
|
__proto__: null,
|
|
11949
|
-
get: get$
|
|
11950
|
-
getMany: getMany$
|
|
12120
|
+
get: get$z,
|
|
12121
|
+
getMany: getMany$p
|
|
11951
12122
|
});
|
|
11952
12123
|
|
|
11953
|
-
const get$
|
|
11954
|
-
return get$
|
|
12124
|
+
const get$y = (http, { url, config }) => {
|
|
12125
|
+
return get$19(http, url, config);
|
|
11955
12126
|
};
|
|
11956
12127
|
const post = (http, { url, config }, payload) => {
|
|
11957
12128
|
return post$1(http, url, payload, config);
|
|
@@ -11962,8 +12133,8 @@ var contentfulManagement = (function (exports) {
|
|
|
11962
12133
|
const patch = (http, { url, config }, payload) => {
|
|
11963
12134
|
return patch$5(http, url, payload, config);
|
|
11964
12135
|
};
|
|
11965
|
-
const del$
|
|
11966
|
-
return del$
|
|
12136
|
+
const del$l = (http, { url, config }) => {
|
|
12137
|
+
return del$M(http, url, config);
|
|
11967
12138
|
};
|
|
11968
12139
|
const request = (http$1, { url, config }) => {
|
|
11969
12140
|
return http(http$1, url, config);
|
|
@@ -11971,23 +12142,23 @@ var contentfulManagement = (function (exports) {
|
|
|
11971
12142
|
|
|
11972
12143
|
var Http = /*#__PURE__*/Object.freeze({
|
|
11973
12144
|
__proto__: null,
|
|
11974
|
-
del: del$
|
|
11975
|
-
get: get$
|
|
12145
|
+
del: del$l,
|
|
12146
|
+
get: get$y,
|
|
11976
12147
|
patch: patch,
|
|
11977
12148
|
post: post,
|
|
11978
12149
|
put: put,
|
|
11979
12150
|
request: request
|
|
11980
12151
|
});
|
|
11981
12152
|
|
|
11982
|
-
const get$
|
|
11983
|
-
return get$
|
|
12153
|
+
const get$x = (http, params) => {
|
|
12154
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
|
|
11984
12155
|
};
|
|
11985
|
-
const getMany$
|
|
11986
|
-
return get$
|
|
12156
|
+
const getMany$o = (http, params) => {
|
|
12157
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, {
|
|
11987
12158
|
params: normalizeSelect(params.query),
|
|
11988
12159
|
});
|
|
11989
12160
|
};
|
|
11990
|
-
const create$
|
|
12161
|
+
const create$j = (http, params, data, headers) => {
|
|
11991
12162
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, data, {
|
|
11992
12163
|
headers,
|
|
11993
12164
|
});
|
|
@@ -12003,26 +12174,26 @@ var contentfulManagement = (function (exports) {
|
|
|
12003
12174
|
},
|
|
12004
12175
|
});
|
|
12005
12176
|
};
|
|
12006
|
-
const del$
|
|
12007
|
-
return del$
|
|
12177
|
+
const del$k = (http, params) => {
|
|
12178
|
+
return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
|
|
12008
12179
|
};
|
|
12009
12180
|
|
|
12010
12181
|
var Locale = /*#__PURE__*/Object.freeze({
|
|
12011
12182
|
__proto__: null,
|
|
12012
|
-
create: create$
|
|
12013
|
-
del: del$
|
|
12014
|
-
get: get$
|
|
12015
|
-
getMany: getMany$
|
|
12183
|
+
create: create$j,
|
|
12184
|
+
del: del$k,
|
|
12185
|
+
get: get$x,
|
|
12186
|
+
getMany: getMany$o,
|
|
12016
12187
|
update: update$h
|
|
12017
12188
|
});
|
|
12018
12189
|
|
|
12019
|
-
const getMany$
|
|
12020
|
-
return get$
|
|
12190
|
+
const getMany$n = (http, params) => {
|
|
12191
|
+
return get$19(http, `/organizations`, {
|
|
12021
12192
|
params: params?.query,
|
|
12022
12193
|
});
|
|
12023
12194
|
};
|
|
12024
|
-
const get$
|
|
12025
|
-
return getMany$
|
|
12195
|
+
const get$w = (http, params) => {
|
|
12196
|
+
return getMany$n(http, { query: { limit: 100 } }).then((data) => {
|
|
12026
12197
|
const org = data.items.find((org) => org.sys.id === params.organizationId);
|
|
12027
12198
|
if (!org) {
|
|
12028
12199
|
const error = new Error(`No organization was found with the ID ${params.organizationId} instead got ${JSON.stringify(data)}`);
|
|
@@ -12040,8 +12211,8 @@ var contentfulManagement = (function (exports) {
|
|
|
12040
12211
|
|
|
12041
12212
|
var Organization = /*#__PURE__*/Object.freeze({
|
|
12042
12213
|
__proto__: null,
|
|
12043
|
-
get: get$
|
|
12044
|
-
getMany: getMany$
|
|
12214
|
+
get: get$w,
|
|
12215
|
+
getMany: getMany$n
|
|
12045
12216
|
});
|
|
12046
12217
|
|
|
12047
12218
|
const OrganizationUserManagementAlphaHeaders = {
|
|
@@ -12050,7 +12221,7 @@ var contentfulManagement = (function (exports) {
|
|
|
12050
12221
|
const InvitationAlphaHeaders = {
|
|
12051
12222
|
'x-contentful-enable-alpha-feature': 'pending-org-membership',
|
|
12052
12223
|
};
|
|
12053
|
-
const create$
|
|
12224
|
+
const create$i = (http, params, data, headers) => {
|
|
12054
12225
|
return post$1(http, `/organizations/${params.organizationId}/invitations`, data, {
|
|
12055
12226
|
headers: {
|
|
12056
12227
|
...InvitationAlphaHeaders,
|
|
@@ -12058,8 +12229,8 @@ var contentfulManagement = (function (exports) {
|
|
|
12058
12229
|
},
|
|
12059
12230
|
});
|
|
12060
12231
|
};
|
|
12061
|
-
const get$
|
|
12062
|
-
return get$
|
|
12232
|
+
const get$v = (http, params, headers) => {
|
|
12233
|
+
return get$19(http, `/organizations/${params.organizationId}/invitations/${params.invitationId}`, {
|
|
12063
12234
|
headers: {
|
|
12064
12235
|
...OrganizationUserManagementAlphaHeaders,
|
|
12065
12236
|
...headers,
|
|
@@ -12069,17 +12240,17 @@ var contentfulManagement = (function (exports) {
|
|
|
12069
12240
|
|
|
12070
12241
|
var OrganizationInvitation = /*#__PURE__*/Object.freeze({
|
|
12071
12242
|
__proto__: null,
|
|
12072
|
-
create: create$
|
|
12073
|
-
get: get$
|
|
12243
|
+
create: create$i,
|
|
12244
|
+
get: get$v
|
|
12074
12245
|
});
|
|
12075
12246
|
|
|
12076
|
-
const getBaseUrl$
|
|
12077
|
-
const getEntityUrl$5 = (params) => `${getBaseUrl$
|
|
12078
|
-
const get$
|
|
12079
|
-
return get$
|
|
12247
|
+
const getBaseUrl$g = (params) => `/organizations/${params.organizationId}/organization_memberships`;
|
|
12248
|
+
const getEntityUrl$5 = (params) => `${getBaseUrl$g(params)}/${params.organizationMembershipId}`;
|
|
12249
|
+
const get$u = (http, params) => {
|
|
12250
|
+
return get$19(http, getEntityUrl$5(params));
|
|
12080
12251
|
};
|
|
12081
|
-
const getMany$
|
|
12082
|
-
return get$
|
|
12252
|
+
const getMany$m = (http, params) => {
|
|
12253
|
+
return get$19(http, getBaseUrl$g(params), {
|
|
12083
12254
|
params: params.query,
|
|
12084
12255
|
});
|
|
12085
12256
|
};
|
|
@@ -12094,15 +12265,15 @@ var contentfulManagement = (function (exports) {
|
|
|
12094
12265
|
},
|
|
12095
12266
|
});
|
|
12096
12267
|
};
|
|
12097
|
-
const del$
|
|
12098
|
-
return del$
|
|
12268
|
+
const del$j = (http, params) => {
|
|
12269
|
+
return del$M(http, getEntityUrl$5(params));
|
|
12099
12270
|
};
|
|
12100
12271
|
|
|
12101
12272
|
var OrganizationMembership = /*#__PURE__*/Object.freeze({
|
|
12102
12273
|
__proto__: null,
|
|
12103
|
-
del: del$
|
|
12104
|
-
get: get$
|
|
12105
|
-
getMany: getMany$
|
|
12274
|
+
del: del$j,
|
|
12275
|
+
get: get$u,
|
|
12276
|
+
getMany: getMany$m,
|
|
12106
12277
|
update: update$g
|
|
12107
12278
|
});
|
|
12108
12279
|
|
|
@@ -12128,8 +12299,8 @@ var contentfulManagement = (function (exports) {
|
|
|
12128
12299
|
* .catch(console.error)
|
|
12129
12300
|
* ```
|
|
12130
12301
|
*/
|
|
12131
|
-
const get$
|
|
12132
|
-
return get$
|
|
12302
|
+
const get$t = (http, params) => {
|
|
12303
|
+
return get$19(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
|
|
12133
12304
|
};
|
|
12134
12305
|
/**
|
|
12135
12306
|
* Retrieves a list of OAuth applications associated with the current user.
|
|
@@ -12154,7 +12325,7 @@ var contentfulManagement = (function (exports) {
|
|
|
12154
12325
|
* ```
|
|
12155
12326
|
*/
|
|
12156
12327
|
const getManyForUser = (http, params) => {
|
|
12157
|
-
return get$
|
|
12328
|
+
return get$19(http, `/users/${params.userId}/oauth_applications`, {
|
|
12158
12329
|
params: params.query,
|
|
12159
12330
|
});
|
|
12160
12331
|
};
|
|
@@ -12183,7 +12354,7 @@ var contentfulManagement = (function (exports) {
|
|
|
12183
12354
|
* .catch(console.error)
|
|
12184
12355
|
* ```
|
|
12185
12356
|
*/
|
|
12186
|
-
const create$
|
|
12357
|
+
const create$h = (http, params, rawData, headers) => {
|
|
12187
12358
|
return post$1(http, `/users/${params.userId}/oauth_applications`, rawData, {
|
|
12188
12359
|
headers,
|
|
12189
12360
|
});
|
|
@@ -12240,15 +12411,15 @@ var contentfulManagement = (function (exports) {
|
|
|
12240
12411
|
* .catch(console.error)
|
|
12241
12412
|
* ```
|
|
12242
12413
|
*/
|
|
12243
|
-
const del$
|
|
12244
|
-
return del$
|
|
12414
|
+
const del$i = (http, params) => {
|
|
12415
|
+
return del$M(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
|
|
12245
12416
|
};
|
|
12246
12417
|
|
|
12247
12418
|
var OAuthApplication = /*#__PURE__*/Object.freeze({
|
|
12248
12419
|
__proto__: null,
|
|
12249
|
-
create: create$
|
|
12250
|
-
del: del$
|
|
12251
|
-
get: get$
|
|
12420
|
+
create: create$h,
|
|
12421
|
+
del: del$i,
|
|
12422
|
+
get: get$t,
|
|
12252
12423
|
getManyForUser: getManyForUser,
|
|
12253
12424
|
update: update$f
|
|
12254
12425
|
});
|
|
@@ -12256,21 +12427,21 @@ var contentfulManagement = (function (exports) {
|
|
|
12256
12427
|
/**
|
|
12257
12428
|
* @deprecated use `access-token.get` instead `personal-access-token.get`
|
|
12258
12429
|
*/
|
|
12259
|
-
const get$
|
|
12260
|
-
return get$
|
|
12430
|
+
const get$s = (http, params) => {
|
|
12431
|
+
return get$19(http, `/users/me/access_tokens/${params.tokenId}`);
|
|
12261
12432
|
};
|
|
12262
12433
|
/**
|
|
12263
12434
|
* @deprecated use `access-token.getMany` instead `personal-access-token.getMany`
|
|
12264
12435
|
*/
|
|
12265
|
-
const getMany$
|
|
12266
|
-
return get$
|
|
12436
|
+
const getMany$l = (http, params) => {
|
|
12437
|
+
return get$19(http, '/users/me/access_tokens', {
|
|
12267
12438
|
params: params.query,
|
|
12268
12439
|
});
|
|
12269
12440
|
};
|
|
12270
12441
|
/**
|
|
12271
12442
|
* @deprecated use `access-token.createPersonalAccessToken` instead. `personal-access-token.create`
|
|
12272
12443
|
*/
|
|
12273
|
-
const create$
|
|
12444
|
+
const create$g = (http, _params, rawData, headers) => {
|
|
12274
12445
|
return post$1(http, '/users/me/access_tokens', rawData, {
|
|
12275
12446
|
headers,
|
|
12276
12447
|
});
|
|
@@ -12284,29 +12455,29 @@ var contentfulManagement = (function (exports) {
|
|
|
12284
12455
|
|
|
12285
12456
|
var PersonalAccessToken = /*#__PURE__*/Object.freeze({
|
|
12286
12457
|
__proto__: null,
|
|
12287
|
-
create: create$
|
|
12288
|
-
get: get$
|
|
12289
|
-
getMany: getMany$
|
|
12458
|
+
create: create$g,
|
|
12459
|
+
get: get$s,
|
|
12460
|
+
getMany: getMany$l,
|
|
12290
12461
|
revoke: revoke
|
|
12291
12462
|
});
|
|
12292
12463
|
|
|
12293
|
-
const get$
|
|
12294
|
-
return get$
|
|
12464
|
+
const get$r = (http, params) => {
|
|
12465
|
+
return get$19(http, `/spaces/${params.spaceId}/preview_api_keys/${params.previewApiKeyId}`);
|
|
12295
12466
|
};
|
|
12296
|
-
const getMany$
|
|
12297
|
-
return get$
|
|
12467
|
+
const getMany$k = (http, params) => {
|
|
12468
|
+
return get$19(http, `/spaces/${params.spaceId}/preview_api_keys`, {
|
|
12298
12469
|
params: params.query,
|
|
12299
12470
|
});
|
|
12300
12471
|
};
|
|
12301
12472
|
|
|
12302
12473
|
var PreviewApiKey = /*#__PURE__*/Object.freeze({
|
|
12303
12474
|
__proto__: null,
|
|
12304
|
-
get: get$
|
|
12305
|
-
getMany: getMany$
|
|
12475
|
+
get: get$r,
|
|
12476
|
+
getMany: getMany$k
|
|
12306
12477
|
});
|
|
12307
12478
|
|
|
12308
|
-
const get$
|
|
12309
|
-
return get$
|
|
12479
|
+
const get$q = (http, params) => {
|
|
12480
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
|
|
12310
12481
|
};
|
|
12311
12482
|
const query = (http, params) => {
|
|
12312
12483
|
// Set the schema version in the query if provided in params or query options
|
|
@@ -12314,11 +12485,11 @@ var contentfulManagement = (function (exports) {
|
|
|
12314
12485
|
if (releaseSchemaVersion !== undefined) {
|
|
12315
12486
|
params.query = { ...params.query, 'sys.schemaVersion': releaseSchemaVersion };
|
|
12316
12487
|
}
|
|
12317
|
-
return get$
|
|
12488
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, {
|
|
12318
12489
|
params: params.query,
|
|
12319
12490
|
});
|
|
12320
12491
|
};
|
|
12321
|
-
const create$
|
|
12492
|
+
const create$f = (http, params, payload) => {
|
|
12322
12493
|
const releaseSchemaVersion = payload.sys?.schemaVersion ?? params.releaseSchemaVersion;
|
|
12323
12494
|
if (releaseSchemaVersion === 'Release.v2') {
|
|
12324
12495
|
payload.sys = { ...payload.sys, type: 'Release', schemaVersion: 'Release.v2' };
|
|
@@ -12337,10 +12508,10 @@ var contentfulManagement = (function (exports) {
|
|
|
12337
12508
|
},
|
|
12338
12509
|
});
|
|
12339
12510
|
};
|
|
12340
|
-
const del$
|
|
12341
|
-
return del$
|
|
12511
|
+
const del$h = (http, params) => {
|
|
12512
|
+
return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
|
|
12342
12513
|
};
|
|
12343
|
-
const publish = (http, params, headers) => {
|
|
12514
|
+
const publish$2 = (http, params, headers) => {
|
|
12344
12515
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, null, {
|
|
12345
12516
|
headers: {
|
|
12346
12517
|
'X-Contentful-Version': params.version,
|
|
@@ -12348,8 +12519,8 @@ var contentfulManagement = (function (exports) {
|
|
|
12348
12519
|
},
|
|
12349
12520
|
});
|
|
12350
12521
|
};
|
|
12351
|
-
const unpublish = (http, params, headers) => {
|
|
12352
|
-
return del$
|
|
12522
|
+
const unpublish$2 = (http, params, headers) => {
|
|
12523
|
+
return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, {
|
|
12353
12524
|
headers: {
|
|
12354
12525
|
'X-Contentful-Version': params.version,
|
|
12355
12526
|
...headers,
|
|
@@ -12367,7 +12538,7 @@ var contentfulManagement = (function (exports) {
|
|
|
12367
12538
|
});
|
|
12368
12539
|
};
|
|
12369
12540
|
const unarchive$1 = (http, params) => {
|
|
12370
|
-
return del$
|
|
12541
|
+
return del$M(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`, {
|
|
12371
12542
|
headers: {
|
|
12372
12543
|
'X-Contentful-Version': params.version,
|
|
12373
12544
|
},
|
|
@@ -12377,27 +12548,27 @@ var contentfulManagement = (function (exports) {
|
|
|
12377
12548
|
var Release = /*#__PURE__*/Object.freeze({
|
|
12378
12549
|
__proto__: null,
|
|
12379
12550
|
archive: archive,
|
|
12380
|
-
create: create$
|
|
12381
|
-
del: del$
|
|
12382
|
-
get: get$
|
|
12383
|
-
publish: publish,
|
|
12551
|
+
create: create$f,
|
|
12552
|
+
del: del$h,
|
|
12553
|
+
get: get$q,
|
|
12554
|
+
publish: publish$2,
|
|
12384
12555
|
query: query,
|
|
12385
12556
|
unarchive: unarchive$1,
|
|
12386
|
-
unpublish: unpublish,
|
|
12557
|
+
unpublish: unpublish$2,
|
|
12387
12558
|
update: update$e,
|
|
12388
12559
|
validate: validate
|
|
12389
12560
|
});
|
|
12390
12561
|
|
|
12391
|
-
const get$
|
|
12392
|
-
return get$
|
|
12562
|
+
const get$p = (http, params) => {
|
|
12563
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/actions/${params.actionId}`);
|
|
12393
12564
|
};
|
|
12394
|
-
const getMany$
|
|
12395
|
-
return get$
|
|
12565
|
+
const getMany$j = (http, params) => {
|
|
12566
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
|
|
12396
12567
|
params: params.query,
|
|
12397
12568
|
});
|
|
12398
12569
|
};
|
|
12399
12570
|
const queryForRelease = (http, params) => {
|
|
12400
|
-
return get$
|
|
12571
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
|
|
12401
12572
|
params: {
|
|
12402
12573
|
'sys.release.sys.id[in]': params.releaseId,
|
|
12403
12574
|
...params.query,
|
|
@@ -12407,82 +12578,82 @@ var contentfulManagement = (function (exports) {
|
|
|
12407
12578
|
|
|
12408
12579
|
var ReleaseAction = /*#__PURE__*/Object.freeze({
|
|
12409
12580
|
__proto__: null,
|
|
12410
|
-
get: get$
|
|
12411
|
-
getMany: getMany$
|
|
12581
|
+
get: get$p,
|
|
12582
|
+
getMany: getMany$j,
|
|
12412
12583
|
queryForRelease: queryForRelease
|
|
12413
12584
|
});
|
|
12414
12585
|
|
|
12415
|
-
const getBaseUrl$
|
|
12416
|
-
const getMany$
|
|
12586
|
+
const getBaseUrl$f = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/resource_types/${params.resourceTypeId}/resources`;
|
|
12587
|
+
const getMany$i = (http, params) => get$19(http, getBaseUrl$f(params), {
|
|
12417
12588
|
params: params.query,
|
|
12418
12589
|
});
|
|
12419
12590
|
|
|
12420
12591
|
var Resource = /*#__PURE__*/Object.freeze({
|
|
12421
12592
|
__proto__: null,
|
|
12422
|
-
getMany: getMany$
|
|
12593
|
+
getMany: getMany$i
|
|
12423
12594
|
});
|
|
12424
12595
|
|
|
12425
|
-
const getBaseUrl$
|
|
12426
|
-
const get$
|
|
12427
|
-
return get$
|
|
12596
|
+
const getBaseUrl$e = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider`;
|
|
12597
|
+
const get$o = (http, params) => {
|
|
12598
|
+
return get$19(http, getBaseUrl$e(params));
|
|
12428
12599
|
};
|
|
12429
|
-
const upsert$
|
|
12430
|
-
return put$1(http, getBaseUrl$
|
|
12600
|
+
const upsert$3 = (http, params, rawData, headers) => {
|
|
12601
|
+
return put$1(http, getBaseUrl$e(params), rawData, { headers });
|
|
12431
12602
|
};
|
|
12432
|
-
const del$
|
|
12433
|
-
return del$
|
|
12603
|
+
const del$g = (http, params) => {
|
|
12604
|
+
return del$M(http, getBaseUrl$e(params));
|
|
12434
12605
|
};
|
|
12435
12606
|
|
|
12436
12607
|
var ResourceProvider = /*#__PURE__*/Object.freeze({
|
|
12437
12608
|
__proto__: null,
|
|
12438
|
-
del: del$
|
|
12439
|
-
get: get$
|
|
12440
|
-
upsert: upsert$
|
|
12609
|
+
del: del$g,
|
|
12610
|
+
get: get$o,
|
|
12611
|
+
upsert: upsert$3
|
|
12441
12612
|
});
|
|
12442
12613
|
|
|
12443
|
-
const getBaseUrl$
|
|
12444
|
-
const getEntityUrl$4 = (params) => `${getBaseUrl$
|
|
12614
|
+
const getBaseUrl$d = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider/resource_types`;
|
|
12615
|
+
const getEntityUrl$4 = (params) => `${getBaseUrl$d(params)}/${params.resourceTypeId}`;
|
|
12445
12616
|
const getSpaceEnvUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/resource_types`;
|
|
12446
|
-
const get$
|
|
12447
|
-
return get$
|
|
12617
|
+
const get$n = (http, params) => {
|
|
12618
|
+
return get$19(http, getEntityUrl$4(params));
|
|
12448
12619
|
};
|
|
12449
|
-
const upsert = (http, params, rawData, headers) => {
|
|
12620
|
+
const upsert$2 = (http, params, rawData, headers) => {
|
|
12450
12621
|
const data = index$2(rawData);
|
|
12451
12622
|
return put$1(http, getEntityUrl$4(params), data, { headers });
|
|
12452
12623
|
};
|
|
12453
|
-
const del$
|
|
12454
|
-
return del$
|
|
12624
|
+
const del$f = (http, params) => {
|
|
12625
|
+
return del$M(http, getEntityUrl$4(params));
|
|
12455
12626
|
};
|
|
12456
|
-
const getMany$
|
|
12457
|
-
return get$
|
|
12627
|
+
const getMany$h = (http, params) => {
|
|
12628
|
+
return get$19(http, getBaseUrl$d(params));
|
|
12458
12629
|
};
|
|
12459
12630
|
const getForEnvironment = (http, params) => {
|
|
12460
|
-
return get$
|
|
12631
|
+
return get$19(http, getSpaceEnvUrl(params));
|
|
12461
12632
|
};
|
|
12462
12633
|
|
|
12463
12634
|
var ResourceType = /*#__PURE__*/Object.freeze({
|
|
12464
12635
|
__proto__: null,
|
|
12465
|
-
del: del$
|
|
12466
|
-
get: get$
|
|
12636
|
+
del: del$f,
|
|
12637
|
+
get: get$n,
|
|
12467
12638
|
getForEnvironment: getForEnvironment,
|
|
12468
|
-
getMany: getMany$
|
|
12469
|
-
upsert: upsert
|
|
12639
|
+
getMany: getMany$h,
|
|
12640
|
+
upsert: upsert$2
|
|
12470
12641
|
});
|
|
12471
12642
|
|
|
12472
|
-
const get$
|
|
12473
|
-
return get$
|
|
12643
|
+
const get$m = (http, params) => {
|
|
12644
|
+
return get$19(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
|
|
12474
12645
|
};
|
|
12475
|
-
const getMany$
|
|
12476
|
-
return get$
|
|
12646
|
+
const getMany$g = (http, params) => {
|
|
12647
|
+
return get$19(http, `/spaces/${params.spaceId}/roles`, {
|
|
12477
12648
|
params: normalizeSelect(params.query),
|
|
12478
12649
|
});
|
|
12479
12650
|
};
|
|
12480
12651
|
const getManyForOrganization$6 = (http, params) => {
|
|
12481
|
-
return get$
|
|
12652
|
+
return get$19(http, `/organizations/${params.organizationId}/roles`, {
|
|
12482
12653
|
params: normalizeSelect(params.query),
|
|
12483
12654
|
});
|
|
12484
12655
|
};
|
|
12485
|
-
const create$
|
|
12656
|
+
const create$e = (http, params, data, headers) => {
|
|
12486
12657
|
return post$1(http, `/spaces/${params.spaceId}/roles`, data, {
|
|
12487
12658
|
headers,
|
|
12488
12659
|
});
|
|
@@ -12502,38 +12673,38 @@ var contentfulManagement = (function (exports) {
|
|
|
12502
12673
|
},
|
|
12503
12674
|
});
|
|
12504
12675
|
};
|
|
12505
|
-
const del$
|
|
12506
|
-
return del$
|
|
12676
|
+
const del$e = (http, params) => {
|
|
12677
|
+
return del$M(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
|
|
12507
12678
|
};
|
|
12508
12679
|
|
|
12509
12680
|
var Role = /*#__PURE__*/Object.freeze({
|
|
12510
12681
|
__proto__: null,
|
|
12511
|
-
create: create$
|
|
12682
|
+
create: create$e,
|
|
12512
12683
|
createWithId: createWithId$3,
|
|
12513
|
-
del: del$
|
|
12514
|
-
get: get$
|
|
12515
|
-
getMany: getMany$
|
|
12684
|
+
del: del$e,
|
|
12685
|
+
get: get$m,
|
|
12686
|
+
getMany: getMany$g,
|
|
12516
12687
|
getManyForOrganization: getManyForOrganization$6,
|
|
12517
12688
|
update: update$d
|
|
12518
12689
|
});
|
|
12519
12690
|
|
|
12520
|
-
const get$
|
|
12521
|
-
return get$
|
|
12691
|
+
const get$l = (http, params) => {
|
|
12692
|
+
return get$19(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
|
|
12522
12693
|
params: {
|
|
12523
12694
|
'environment.sys.id': params.environmentId,
|
|
12524
12695
|
},
|
|
12525
12696
|
});
|
|
12526
12697
|
};
|
|
12527
|
-
const getMany$
|
|
12528
|
-
return get$
|
|
12698
|
+
const getMany$f = (http, params) => {
|
|
12699
|
+
return get$19(http, `/spaces/${params.spaceId}/scheduled_actions`, {
|
|
12529
12700
|
params: normalizeSelect(params.query),
|
|
12530
12701
|
});
|
|
12531
12702
|
};
|
|
12532
|
-
const create$
|
|
12703
|
+
const create$d = (http, params, data) => {
|
|
12533
12704
|
return post$1(http, `/spaces/${params.spaceId}/scheduled_actions`, data);
|
|
12534
12705
|
};
|
|
12535
|
-
const del$
|
|
12536
|
-
return del$
|
|
12706
|
+
const del$d = (http, params) => {
|
|
12707
|
+
return del$M(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
|
|
12537
12708
|
params: {
|
|
12538
12709
|
'environment.sys.id': params.environmentId,
|
|
12539
12710
|
},
|
|
@@ -12552,102 +12723,102 @@ var contentfulManagement = (function (exports) {
|
|
|
12552
12723
|
|
|
12553
12724
|
var ScheduledAction = /*#__PURE__*/Object.freeze({
|
|
12554
12725
|
__proto__: null,
|
|
12555
|
-
create: create$
|
|
12556
|
-
del: del$
|
|
12557
|
-
get: get$
|
|
12558
|
-
getMany: getMany$
|
|
12726
|
+
create: create$d,
|
|
12727
|
+
del: del$d,
|
|
12728
|
+
get: get$l,
|
|
12729
|
+
getMany: getMany$f,
|
|
12559
12730
|
update: update$c
|
|
12560
12731
|
});
|
|
12561
12732
|
|
|
12562
|
-
const get$
|
|
12563
|
-
return get$
|
|
12733
|
+
const get$k = (http, params) => {
|
|
12734
|
+
return get$19(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
|
|
12564
12735
|
};
|
|
12565
|
-
const getMany$
|
|
12566
|
-
return get$
|
|
12736
|
+
const getMany$e = (http, params) => {
|
|
12737
|
+
return get$19(http, `/organizations/${params.organizationId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
|
|
12567
12738
|
};
|
|
12568
12739
|
const getManyForEnvironment = (http, params) => {
|
|
12569
|
-
return get$
|
|
12740
|
+
return get$19(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
|
|
12570
12741
|
};
|
|
12571
|
-
const create$
|
|
12742
|
+
const create$c = (http, params, data) => {
|
|
12572
12743
|
return post$1(http, `/organizations/${params.organizationId}/semantic/search-index`, data);
|
|
12573
12744
|
};
|
|
12574
|
-
const del$
|
|
12575
|
-
return del$
|
|
12745
|
+
const del$c = (http, params) => {
|
|
12746
|
+
return del$M(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
|
|
12576
12747
|
};
|
|
12577
12748
|
|
|
12578
12749
|
var ContentSemanticsIndex = /*#__PURE__*/Object.freeze({
|
|
12579
12750
|
__proto__: null,
|
|
12580
|
-
create: create$
|
|
12581
|
-
del: del$
|
|
12582
|
-
get: get$
|
|
12583
|
-
getMany: getMany$
|
|
12751
|
+
create: create$c,
|
|
12752
|
+
del: del$c,
|
|
12753
|
+
get: get$k,
|
|
12754
|
+
getMany: getMany$e,
|
|
12584
12755
|
getManyForEnvironment: getManyForEnvironment
|
|
12585
12756
|
});
|
|
12586
12757
|
|
|
12587
|
-
const get$
|
|
12758
|
+
const get$j = (http, params, data, headers) => {
|
|
12588
12759
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/duplicates`, data, { headers });
|
|
12589
12760
|
};
|
|
12590
12761
|
|
|
12591
12762
|
var SemanticDuplicates = /*#__PURE__*/Object.freeze({
|
|
12592
12763
|
__proto__: null,
|
|
12593
|
-
get: get$
|
|
12764
|
+
get: get$j
|
|
12594
12765
|
});
|
|
12595
12766
|
|
|
12596
|
-
const get$
|
|
12767
|
+
const get$i = (http, params, data, headers) => {
|
|
12597
12768
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/recommendations`, data, { headers });
|
|
12598
12769
|
};
|
|
12599
12770
|
|
|
12600
12771
|
var SemanticRecommendations = /*#__PURE__*/Object.freeze({
|
|
12601
12772
|
__proto__: null,
|
|
12602
|
-
get: get$
|
|
12773
|
+
get: get$i
|
|
12603
12774
|
});
|
|
12604
12775
|
|
|
12605
|
-
const get$
|
|
12776
|
+
const get$h = (http, params, data, headers) => {
|
|
12606
12777
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/reference-suggestions`, data, { headers });
|
|
12607
12778
|
};
|
|
12608
12779
|
|
|
12609
12780
|
var SemanticReferenceSuggestions = /*#__PURE__*/Object.freeze({
|
|
12610
12781
|
__proto__: null,
|
|
12611
|
-
get: get$
|
|
12782
|
+
get: get$h
|
|
12612
12783
|
});
|
|
12613
12784
|
|
|
12614
|
-
const get$
|
|
12785
|
+
const get$g = (http, params, data, headers) => {
|
|
12615
12786
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/search`, data, { headers });
|
|
12616
12787
|
};
|
|
12617
12788
|
|
|
12618
12789
|
var SemanticSearch = /*#__PURE__*/Object.freeze({
|
|
12619
12790
|
__proto__: null,
|
|
12620
|
-
get: get$
|
|
12791
|
+
get: get$g
|
|
12621
12792
|
});
|
|
12622
12793
|
|
|
12623
|
-
const get$
|
|
12624
|
-
return get$
|
|
12794
|
+
const get$f = (http, params) => {
|
|
12795
|
+
return get$19(http, `/organizations/${params.organizationId}/semantic/settings`);
|
|
12625
12796
|
};
|
|
12626
12797
|
|
|
12627
12798
|
var SemanticSettings = /*#__PURE__*/Object.freeze({
|
|
12628
12799
|
__proto__: null,
|
|
12629
|
-
get: get$
|
|
12800
|
+
get: get$f
|
|
12630
12801
|
});
|
|
12631
12802
|
|
|
12632
12803
|
const getBaseEntryUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/snapshots`;
|
|
12633
12804
|
const getEntryUrl = (params) => getBaseEntryUrl(params) + `/${params.snapshotId}`;
|
|
12634
12805
|
const getManyForEntry = (http, params) => {
|
|
12635
|
-
return get$
|
|
12806
|
+
return get$19(http, getBaseEntryUrl(params), {
|
|
12636
12807
|
params: normalizeSelect(params.query),
|
|
12637
12808
|
});
|
|
12638
12809
|
};
|
|
12639
12810
|
const getForEntry = (http, params) => {
|
|
12640
|
-
return get$
|
|
12811
|
+
return get$19(http, getEntryUrl(params));
|
|
12641
12812
|
};
|
|
12642
12813
|
const getBaseContentTypeUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/snapshots`;
|
|
12643
12814
|
const getContentTypeUrl = (params) => getBaseContentTypeUrl(params) + `/${params.snapshotId}`;
|
|
12644
12815
|
const getManyForContentType = (http, params) => {
|
|
12645
|
-
return get$
|
|
12816
|
+
return get$19(http, getBaseContentTypeUrl(params), {
|
|
12646
12817
|
params: normalizeSelect(params.query),
|
|
12647
12818
|
});
|
|
12648
12819
|
};
|
|
12649
12820
|
const getForContentType = (http, params) => {
|
|
12650
|
-
return get$
|
|
12821
|
+
return get$19(http, getContentTypeUrl(params));
|
|
12651
12822
|
};
|
|
12652
12823
|
|
|
12653
12824
|
var Snapshot = /*#__PURE__*/Object.freeze({
|
|
@@ -12658,19 +12829,19 @@ var contentfulManagement = (function (exports) {
|
|
|
12658
12829
|
getManyForEntry: getManyForEntry
|
|
12659
12830
|
});
|
|
12660
12831
|
|
|
12661
|
-
const get$
|
|
12832
|
+
const get$e = (http, params) => get$19(http, `/spaces/${params.spaceId}`, {
|
|
12662
12833
|
params: params.include ? { include: params.include } : undefined,
|
|
12663
12834
|
});
|
|
12664
|
-
const getMany$
|
|
12835
|
+
const getMany$d = (http, params) => get$19(http, `/spaces`, {
|
|
12665
12836
|
params: { ...params.query, ...(params.include ? { include: params.include } : {}) },
|
|
12666
12837
|
headers: params.organizationId
|
|
12667
12838
|
? { 'X-Contentful-Organization': params.organizationId }
|
|
12668
12839
|
: undefined,
|
|
12669
12840
|
});
|
|
12670
|
-
const getManyForOrganization$5 = (http, params) => get$
|
|
12841
|
+
const getManyForOrganization$5 = (http, params) => get$19(http, `/organizations/${params.organizationId}/spaces`, {
|
|
12671
12842
|
params: params.query,
|
|
12672
12843
|
});
|
|
12673
|
-
const create$
|
|
12844
|
+
const create$b = (http, params, payload, headers) => {
|
|
12674
12845
|
return post$1(http, `/spaces`, payload, {
|
|
12675
12846
|
headers: params.organizationId
|
|
12676
12847
|
? { ...headers, 'X-Contentful-Organization': params.organizationId }
|
|
@@ -12692,21 +12863,21 @@ var contentfulManagement = (function (exports) {
|
|
|
12692
12863
|
headers,
|
|
12693
12864
|
});
|
|
12694
12865
|
};
|
|
12695
|
-
const del$
|
|
12866
|
+
const del$b = (http, params) => del$M(http, `/spaces/${params.spaceId}`);
|
|
12696
12867
|
|
|
12697
12868
|
var Space = /*#__PURE__*/Object.freeze({
|
|
12698
12869
|
__proto__: null,
|
|
12699
|
-
create: create$
|
|
12700
|
-
del: del$
|
|
12701
|
-
get: get$
|
|
12702
|
-
getMany: getMany$
|
|
12870
|
+
create: create$b,
|
|
12871
|
+
del: del$b,
|
|
12872
|
+
get: get$e,
|
|
12873
|
+
getMany: getMany$d,
|
|
12703
12874
|
getManyForOrganization: getManyForOrganization$5,
|
|
12704
12875
|
unarchive: unarchive,
|
|
12705
12876
|
update: update$b
|
|
12706
12877
|
});
|
|
12707
12878
|
|
|
12708
|
-
const getMany$
|
|
12709
|
-
return get$
|
|
12879
|
+
const getMany$c = (http, params) => {
|
|
12880
|
+
return get$19(http, `/spaces/${params.spaceId}/space_add_ons`, {
|
|
12710
12881
|
params: normalizeSelect(params.query),
|
|
12711
12882
|
});
|
|
12712
12883
|
};
|
|
@@ -12718,47 +12889,47 @@ var contentfulManagement = (function (exports) {
|
|
|
12718
12889
|
|
|
12719
12890
|
var SpaceAddOn = /*#__PURE__*/Object.freeze({
|
|
12720
12891
|
__proto__: null,
|
|
12721
|
-
getMany: getMany$
|
|
12892
|
+
getMany: getMany$c,
|
|
12722
12893
|
updateAllocations: updateAllocations
|
|
12723
12894
|
});
|
|
12724
12895
|
|
|
12725
|
-
const get$
|
|
12726
|
-
const getMany$
|
|
12896
|
+
const get$d = (http, params) => get$19(http, `/spaces/${params.spaceId}/space_members/${params.spaceMemberId}`);
|
|
12897
|
+
const getMany$b = (http, params) => get$19(http, `/spaces/${params.spaceId}/space_members`, {
|
|
12727
12898
|
params: params.query,
|
|
12728
12899
|
});
|
|
12729
12900
|
|
|
12730
12901
|
var SpaceMember = /*#__PURE__*/Object.freeze({
|
|
12731
12902
|
__proto__: null,
|
|
12732
|
-
get: get$
|
|
12733
|
-
getMany: getMany$
|
|
12903
|
+
get: get$d,
|
|
12904
|
+
getMany: getMany$b
|
|
12734
12905
|
});
|
|
12735
12906
|
|
|
12736
12907
|
function spaceMembershipDeprecationWarning() {
|
|
12737
12908
|
console.warn('The user attribute in the space membership root is deprecated. The attribute has been moved inside the sys object (i.e. sys.user)');
|
|
12738
12909
|
}
|
|
12739
|
-
const getBaseUrl$
|
|
12740
|
-
const getEntityUrl$3 = (params) => `${getBaseUrl$
|
|
12741
|
-
const get$
|
|
12910
|
+
const getBaseUrl$c = (params) => `/spaces/${params.spaceId}/space_memberships`;
|
|
12911
|
+
const getEntityUrl$3 = (params) => `${getBaseUrl$c(params)}/${params.spaceMembershipId}`;
|
|
12912
|
+
const get$c = (http, params) => {
|
|
12742
12913
|
spaceMembershipDeprecationWarning();
|
|
12743
|
-
return get$
|
|
12914
|
+
return get$19(http, getEntityUrl$3(params));
|
|
12744
12915
|
};
|
|
12745
|
-
const getMany$
|
|
12916
|
+
const getMany$a = (http, params) => {
|
|
12746
12917
|
spaceMembershipDeprecationWarning();
|
|
12747
|
-
return get$
|
|
12918
|
+
return get$19(http, getBaseUrl$c(params), {
|
|
12748
12919
|
params: params.query,
|
|
12749
12920
|
});
|
|
12750
12921
|
};
|
|
12751
12922
|
const getForOrganization$2 = (http, params) => {
|
|
12752
|
-
return get$
|
|
12923
|
+
return get$19(http, `/organizations/${params.organizationId}/space_memberships/${params.spaceMembershipId}`);
|
|
12753
12924
|
};
|
|
12754
12925
|
const getManyForOrganization$4 = (http, params) => {
|
|
12755
|
-
return get$
|
|
12926
|
+
return get$19(http, `/organizations/${params.organizationId}/space_memberships`, {
|
|
12756
12927
|
params: params.query,
|
|
12757
12928
|
});
|
|
12758
12929
|
};
|
|
12759
|
-
const create$
|
|
12930
|
+
const create$a = (http, params, data, headers) => {
|
|
12760
12931
|
spaceMembershipDeprecationWarning();
|
|
12761
|
-
return post$1(http, getBaseUrl$
|
|
12932
|
+
return post$1(http, getBaseUrl$c(params), data, {
|
|
12762
12933
|
headers,
|
|
12763
12934
|
});
|
|
12764
12935
|
};
|
|
@@ -12778,26 +12949,26 @@ var contentfulManagement = (function (exports) {
|
|
|
12778
12949
|
},
|
|
12779
12950
|
});
|
|
12780
12951
|
};
|
|
12781
|
-
const del$
|
|
12782
|
-
return del$
|
|
12952
|
+
const del$a = (http, params) => {
|
|
12953
|
+
return del$M(http, getEntityUrl$3(params));
|
|
12783
12954
|
};
|
|
12784
12955
|
|
|
12785
12956
|
var SpaceMembership = /*#__PURE__*/Object.freeze({
|
|
12786
12957
|
__proto__: null,
|
|
12787
|
-
create: create$
|
|
12958
|
+
create: create$a,
|
|
12788
12959
|
createWithId: createWithId$2,
|
|
12789
|
-
del: del$
|
|
12790
|
-
get: get$
|
|
12960
|
+
del: del$a,
|
|
12961
|
+
get: get$c,
|
|
12791
12962
|
getForOrganization: getForOrganization$2,
|
|
12792
|
-
getMany: getMany$
|
|
12963
|
+
getMany: getMany$a,
|
|
12793
12964
|
getManyForOrganization: getManyForOrganization$4,
|
|
12794
12965
|
update: update$a
|
|
12795
12966
|
});
|
|
12796
12967
|
|
|
12797
|
-
const getBaseUrl$
|
|
12798
|
-
const getTagUrl = (params) => getBaseUrl$
|
|
12799
|
-
const get$
|
|
12800
|
-
const getMany$
|
|
12968
|
+
const getBaseUrl$b = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/tags`;
|
|
12969
|
+
const getTagUrl = (params) => getBaseUrl$b(params) + `/${params.tagId}`;
|
|
12970
|
+
const get$b = (http, params) => get$19(http, getTagUrl(params));
|
|
12971
|
+
const getMany$9 = (http, params) => get$19(http, getBaseUrl$b(params), {
|
|
12801
12972
|
params: params.query,
|
|
12802
12973
|
});
|
|
12803
12974
|
const createWithId$1 = (http, params, rawData) => {
|
|
@@ -12816,32 +12987,32 @@ var contentfulManagement = (function (exports) {
|
|
|
12816
12987
|
},
|
|
12817
12988
|
});
|
|
12818
12989
|
};
|
|
12819
|
-
const del$
|
|
12820
|
-
return del$
|
|
12990
|
+
const del$9 = (http, { version, ...params }) => {
|
|
12991
|
+
return del$M(http, getTagUrl(params), { headers: { 'X-Contentful-Version': version } });
|
|
12821
12992
|
};
|
|
12822
12993
|
|
|
12823
12994
|
var Tag = /*#__PURE__*/Object.freeze({
|
|
12824
12995
|
__proto__: null,
|
|
12825
12996
|
createWithId: createWithId$1,
|
|
12826
|
-
del: del$
|
|
12827
|
-
get: get$
|
|
12828
|
-
getMany: getMany$
|
|
12997
|
+
del: del$9,
|
|
12998
|
+
get: get$b,
|
|
12999
|
+
getMany: getMany$9,
|
|
12829
13000
|
update: update$9
|
|
12830
13001
|
});
|
|
12831
13002
|
|
|
12832
|
-
const getBaseUrl$
|
|
12833
|
-
const getTaskUrl = (params) => `${getBaseUrl$
|
|
12834
|
-
const get$
|
|
12835
|
-
const getMany$
|
|
13003
|
+
const getBaseUrl$a = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/tasks`;
|
|
13004
|
+
const getTaskUrl = (params) => `${getBaseUrl$a(params)}/${params.taskId}`;
|
|
13005
|
+
const get$a = (http, params) => get$19(http, getTaskUrl(params));
|
|
13006
|
+
const getMany$8 = (http, params) => get$19(http, getBaseUrl$a(params), {
|
|
12836
13007
|
params: normalizeSelect(params.query),
|
|
12837
13008
|
});
|
|
12838
13009
|
/**
|
|
12839
13010
|
* @deprecated use `getMany` instead. `getAll` may never be removed for app compatibility reasons.
|
|
12840
13011
|
*/
|
|
12841
|
-
const getAll = getMany$
|
|
12842
|
-
const create$
|
|
13012
|
+
const getAll = getMany$8;
|
|
13013
|
+
const create$9 = (http, params, rawData) => {
|
|
12843
13014
|
const data = index$2(rawData);
|
|
12844
|
-
return post$1(http, getBaseUrl$
|
|
13015
|
+
return post$1(http, getBaseUrl$a(params), data);
|
|
12845
13016
|
};
|
|
12846
13017
|
const update$8 = (http, params, rawData, headers) => {
|
|
12847
13018
|
const data = index$2(rawData);
|
|
@@ -12853,33 +13024,33 @@ var contentfulManagement = (function (exports) {
|
|
|
12853
13024
|
},
|
|
12854
13025
|
});
|
|
12855
13026
|
};
|
|
12856
|
-
const del$
|
|
12857
|
-
return del$
|
|
13027
|
+
const del$8 = (http, { version, ...params }) => {
|
|
13028
|
+
return del$M(http, getTaskUrl(params), { headers: { 'X-Contentful-Version': version } });
|
|
12858
13029
|
};
|
|
12859
13030
|
|
|
12860
13031
|
var Task = /*#__PURE__*/Object.freeze({
|
|
12861
13032
|
__proto__: null,
|
|
12862
|
-
create: create$
|
|
12863
|
-
del: del$
|
|
12864
|
-
get: get$
|
|
13033
|
+
create: create$9,
|
|
13034
|
+
del: del$8,
|
|
13035
|
+
get: get$a,
|
|
12865
13036
|
getAll: getAll,
|
|
12866
|
-
getMany: getMany$
|
|
13037
|
+
getMany: getMany$8,
|
|
12867
13038
|
update: update$8
|
|
12868
13039
|
});
|
|
12869
13040
|
|
|
12870
|
-
const getBaseUrl$
|
|
12871
|
-
const getEntityUrl$2 = (params) => `${getBaseUrl$
|
|
12872
|
-
const get$
|
|
12873
|
-
const getMany$
|
|
13041
|
+
const getBaseUrl$9 = (params) => `/organizations/${params.organizationId}/teams`;
|
|
13042
|
+
const getEntityUrl$2 = (params) => `${getBaseUrl$9(params)}/${params.teamId}`;
|
|
13043
|
+
const get$9 = (http, params) => get$19(http, getEntityUrl$2(params));
|
|
13044
|
+
const getMany$7 = (http, params) => get$19(http, getBaseUrl$9(params), {
|
|
12874
13045
|
params: normalizeSelect(params.query),
|
|
12875
13046
|
});
|
|
12876
13047
|
const getManyForSpace$2 = (http, params) => {
|
|
12877
|
-
return get$
|
|
13048
|
+
return get$19(http, `/spaces/${params.spaceId}/teams`, {
|
|
12878
13049
|
params: normalizeSelect(params.query),
|
|
12879
13050
|
});
|
|
12880
13051
|
};
|
|
12881
|
-
const create$
|
|
12882
|
-
return post$1(http, getBaseUrl$
|
|
13052
|
+
const create$8 = (http, params, rawData, headers) => {
|
|
13053
|
+
return post$1(http, getBaseUrl$9(params), rawData, { headers });
|
|
12883
13054
|
};
|
|
12884
13055
|
const update$7 = (http, params, rawData, headers) => {
|
|
12885
13056
|
const data = index$2(rawData);
|
|
@@ -12891,31 +13062,31 @@ var contentfulManagement = (function (exports) {
|
|
|
12891
13062
|
},
|
|
12892
13063
|
});
|
|
12893
13064
|
};
|
|
12894
|
-
const del$
|
|
13065
|
+
const del$7 = (http, params) => del$M(http, getEntityUrl$2(params));
|
|
12895
13066
|
|
|
12896
13067
|
var Team = /*#__PURE__*/Object.freeze({
|
|
12897
13068
|
__proto__: null,
|
|
12898
|
-
create: create$
|
|
12899
|
-
del: del$
|
|
12900
|
-
get: get$
|
|
12901
|
-
getMany: getMany$
|
|
13069
|
+
create: create$8,
|
|
13070
|
+
del: del$7,
|
|
13071
|
+
get: get$9,
|
|
13072
|
+
getMany: getMany$7,
|
|
12902
13073
|
getManyForSpace: getManyForSpace$2,
|
|
12903
13074
|
update: update$7
|
|
12904
13075
|
});
|
|
12905
13076
|
|
|
12906
|
-
const getBaseUrl$
|
|
13077
|
+
const getBaseUrl$8 = (params) => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships`;
|
|
12907
13078
|
const getEntityUrl$1 = (params) => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships/${params.teamMembershipId}`;
|
|
12908
|
-
const get$
|
|
12909
|
-
const getManyForOrganization$3 = (http, params) => get$
|
|
13079
|
+
const get$8 = (http, params) => get$19(http, getEntityUrl$1(params));
|
|
13080
|
+
const getManyForOrganization$3 = (http, params) => get$19(http, `/organizations/${params.organizationId}/team_memberships`, {
|
|
12910
13081
|
params: normalizeSelect(params.query),
|
|
12911
13082
|
});
|
|
12912
13083
|
const getManyForTeam = (http, params) => {
|
|
12913
|
-
return get$
|
|
13084
|
+
return get$19(http, getBaseUrl$8(params), {
|
|
12914
13085
|
params: normalizeSelect(params.query),
|
|
12915
13086
|
});
|
|
12916
13087
|
};
|
|
12917
|
-
const create$
|
|
12918
|
-
return post$1(http, getBaseUrl$
|
|
13088
|
+
const create$7 = (http, params, rawData, headers) => {
|
|
13089
|
+
return post$1(http, getBaseUrl$8(params), rawData, { headers });
|
|
12919
13090
|
};
|
|
12920
13091
|
const update$6 = (http, params, rawData, headers) => {
|
|
12921
13092
|
const data = index$2(rawData);
|
|
@@ -12927,38 +13098,38 @@ var contentfulManagement = (function (exports) {
|
|
|
12927
13098
|
},
|
|
12928
13099
|
});
|
|
12929
13100
|
};
|
|
12930
|
-
const del$
|
|
13101
|
+
const del$6 = (http, params) => del$M(http, getEntityUrl$1(params));
|
|
12931
13102
|
|
|
12932
13103
|
var TeamMembership = /*#__PURE__*/Object.freeze({
|
|
12933
13104
|
__proto__: null,
|
|
12934
|
-
create: create$
|
|
12935
|
-
del: del$
|
|
12936
|
-
get: get$
|
|
13105
|
+
create: create$7,
|
|
13106
|
+
del: del$6,
|
|
13107
|
+
get: get$8,
|
|
12937
13108
|
getManyForOrganization: getManyForOrganization$3,
|
|
12938
13109
|
getManyForTeam: getManyForTeam,
|
|
12939
13110
|
update: update$6
|
|
12940
13111
|
});
|
|
12941
13112
|
|
|
12942
|
-
const getBaseUrl$
|
|
12943
|
-
const getEntityUrl = (params) => `${getBaseUrl$
|
|
12944
|
-
const get$
|
|
12945
|
-
const getMany$
|
|
13113
|
+
const getBaseUrl$7 = (params) => `/spaces/${params.spaceId}/team_space_memberships`;
|
|
13114
|
+
const getEntityUrl = (params) => `${getBaseUrl$7(params)}/${params.teamSpaceMembershipId}`;
|
|
13115
|
+
const get$7 = (http, params) => get$19(http, getEntityUrl(params));
|
|
13116
|
+
const getMany$6 = (http, params) => get$19(http, getBaseUrl$7(params), {
|
|
12946
13117
|
params: params.query,
|
|
12947
13118
|
});
|
|
12948
13119
|
const getForOrganization$1 = (http, params) => {
|
|
12949
|
-
return get$
|
|
13120
|
+
return get$19(http, `/organizations/${params.organizationId}/team_space_memberships/${params.teamSpaceMembershipId}`);
|
|
12950
13121
|
};
|
|
12951
13122
|
const getManyForOrganization$2 = (http, params) => {
|
|
12952
13123
|
const query = params.query || {};
|
|
12953
13124
|
if (params.teamId) {
|
|
12954
13125
|
query['sys.team.sys.id'] = params.teamId;
|
|
12955
13126
|
}
|
|
12956
|
-
return get$
|
|
13127
|
+
return get$19(http, `/organizations/${params.organizationId}/team_space_memberships`, {
|
|
12957
13128
|
params: params.query,
|
|
12958
13129
|
});
|
|
12959
13130
|
};
|
|
12960
|
-
const create$
|
|
12961
|
-
return post$1(http, getBaseUrl$
|
|
13131
|
+
const create$6 = (http, params, rawData, headers) => {
|
|
13132
|
+
return post$1(http, getBaseUrl$7(params), rawData, {
|
|
12962
13133
|
headers: {
|
|
12963
13134
|
'x-contentful-team': params.teamId,
|
|
12964
13135
|
...headers,
|
|
@@ -12976,24 +13147,80 @@ var contentfulManagement = (function (exports) {
|
|
|
12976
13147
|
},
|
|
12977
13148
|
});
|
|
12978
13149
|
};
|
|
12979
|
-
const del$
|
|
12980
|
-
return del$
|
|
13150
|
+
const del$5 = (http, params) => {
|
|
13151
|
+
return del$M(http, getEntityUrl(params));
|
|
12981
13152
|
};
|
|
12982
13153
|
|
|
12983
13154
|
var TeamSpaceMembership = /*#__PURE__*/Object.freeze({
|
|
12984
13155
|
__proto__: null,
|
|
12985
|
-
create: create$
|
|
12986
|
-
del: del$
|
|
12987
|
-
get: get$
|
|
13156
|
+
create: create$6,
|
|
13157
|
+
del: del$5,
|
|
13158
|
+
get: get$7,
|
|
12988
13159
|
getForOrganization: getForOrganization$1,
|
|
12989
|
-
getMany: getMany$
|
|
13160
|
+
getMany: getMany$6,
|
|
12990
13161
|
getManyForOrganization: getManyForOrganization$2,
|
|
12991
13162
|
update: update$5
|
|
12992
13163
|
});
|
|
12993
13164
|
|
|
13165
|
+
const getBaseUrl$6 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/templates`;
|
|
13166
|
+
const getMany$5 = (http, params, headers) => {
|
|
13167
|
+
return get$19(http, getBaseUrl$6(params), {
|
|
13168
|
+
params: params.query,
|
|
13169
|
+
headers,
|
|
13170
|
+
});
|
|
13171
|
+
};
|
|
13172
|
+
const get$6 = (http, params, headers) => {
|
|
13173
|
+
return get$19(http, getBaseUrl$6(params) + `/${params.templateId}`, { headers });
|
|
13174
|
+
};
|
|
13175
|
+
const create$5 = (http, params, rawData, headers) => {
|
|
13176
|
+
const data = index$2(rawData);
|
|
13177
|
+
return post$1(http, getBaseUrl$6(params), data, { headers });
|
|
13178
|
+
};
|
|
13179
|
+
const upsert$1 = (http, params, rawData, headers) => {
|
|
13180
|
+
const { sys, ...body } = index$2(rawData);
|
|
13181
|
+
return put$1(http, getBaseUrl$6(params) + `/${params.templateId}`, body, {
|
|
13182
|
+
headers: {
|
|
13183
|
+
...(sys.version !== undefined && {
|
|
13184
|
+
'X-Contentful-Version': sys.version,
|
|
13185
|
+
}),
|
|
13186
|
+
...headers,
|
|
13187
|
+
},
|
|
13188
|
+
});
|
|
13189
|
+
};
|
|
13190
|
+
const del$4 = (http, params) => {
|
|
13191
|
+
return del$M(http, getBaseUrl$6(params) + `/${params.templateId}`);
|
|
13192
|
+
};
|
|
13193
|
+
const publish$1 = (http, params, headers) => {
|
|
13194
|
+
return put$1(http, getBaseUrl$6(params) + `/${params.templateId}/published`, null, {
|
|
13195
|
+
headers: {
|
|
13196
|
+
'X-Contentful-Version': params.version,
|
|
13197
|
+
...headers,
|
|
13198
|
+
},
|
|
13199
|
+
});
|
|
13200
|
+
};
|
|
13201
|
+
const unpublish$1 = (http, params, headers) => {
|
|
13202
|
+
return del$M(http, getBaseUrl$6(params) + `/${params.templateId}/published`, {
|
|
13203
|
+
headers: {
|
|
13204
|
+
'X-Contentful-Version': params.version,
|
|
13205
|
+
...headers,
|
|
13206
|
+
},
|
|
13207
|
+
});
|
|
13208
|
+
};
|
|
13209
|
+
|
|
13210
|
+
var Template = /*#__PURE__*/Object.freeze({
|
|
13211
|
+
__proto__: null,
|
|
13212
|
+
create: create$5,
|
|
13213
|
+
del: del$4,
|
|
13214
|
+
get: get$6,
|
|
13215
|
+
getMany: getMany$5,
|
|
13216
|
+
publish: publish$1,
|
|
13217
|
+
unpublish: unpublish$1,
|
|
13218
|
+
upsert: upsert$1
|
|
13219
|
+
});
|
|
13220
|
+
|
|
12994
13221
|
const getUrl$1 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config`;
|
|
12995
|
-
const get$
|
|
12996
|
-
return get$
|
|
13222
|
+
const get$5 = (http, params) => {
|
|
13223
|
+
return get$19(http, getUrl$1(params));
|
|
12997
13224
|
};
|
|
12998
13225
|
const update$4 = (http, params, rawData) => {
|
|
12999
13226
|
const data = index$2(rawData);
|
|
@@ -13007,10 +13234,68 @@ var contentfulManagement = (function (exports) {
|
|
|
13007
13234
|
|
|
13008
13235
|
var UIConfig = /*#__PURE__*/Object.freeze({
|
|
13009
13236
|
__proto__: null,
|
|
13010
|
-
get: get$
|
|
13237
|
+
get: get$5,
|
|
13011
13238
|
update: update$4
|
|
13012
13239
|
});
|
|
13013
13240
|
|
|
13241
|
+
const getBaseUrl$5 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/experiences`;
|
|
13242
|
+
const getMany$4 = (http, params, headers) => {
|
|
13243
|
+
return get$19(http, getBaseUrl$5(params), {
|
|
13244
|
+
params: params.query,
|
|
13245
|
+
headers,
|
|
13246
|
+
});
|
|
13247
|
+
};
|
|
13248
|
+
const get$4 = (http, params, headers) => {
|
|
13249
|
+
return get$19(http, getBaseUrl$5(params) + `/${params.experienceId}`, {
|
|
13250
|
+
headers,
|
|
13251
|
+
});
|
|
13252
|
+
};
|
|
13253
|
+
const create$4 = (http, params, rawData, headers) => {
|
|
13254
|
+
const data = index$2(rawData);
|
|
13255
|
+
return post$1(http, getBaseUrl$5(params), data, { headers });
|
|
13256
|
+
};
|
|
13257
|
+
const upsert = (http, params, rawData, headers) => {
|
|
13258
|
+
const { sys, ...body } = index$2(rawData);
|
|
13259
|
+
return put$1(http, getBaseUrl$5(params) + `/${params.experienceId}`, body, {
|
|
13260
|
+
headers: {
|
|
13261
|
+
...(sys.version !== undefined && {
|
|
13262
|
+
'X-Contentful-Version': sys.version,
|
|
13263
|
+
}),
|
|
13264
|
+
...headers,
|
|
13265
|
+
},
|
|
13266
|
+
});
|
|
13267
|
+
};
|
|
13268
|
+
const del$3 = (http, params) => {
|
|
13269
|
+
return del$M(http, getBaseUrl$5(params) + `/${params.experienceId}`);
|
|
13270
|
+
};
|
|
13271
|
+
const publish = (http, params, payload, headers) => {
|
|
13272
|
+
return put$1(http, getBaseUrl$5(params) + `/${params.experienceId}/published`, payload ?? null, {
|
|
13273
|
+
headers: {
|
|
13274
|
+
'X-Contentful-Version': params.version,
|
|
13275
|
+
...headers,
|
|
13276
|
+
},
|
|
13277
|
+
});
|
|
13278
|
+
};
|
|
13279
|
+
const unpublish = (http, params, headers) => {
|
|
13280
|
+
return del$M(http, getBaseUrl$5(params) + `/${params.experienceId}/published`, {
|
|
13281
|
+
headers: {
|
|
13282
|
+
'X-Contentful-Version': params.version,
|
|
13283
|
+
...headers,
|
|
13284
|
+
},
|
|
13285
|
+
});
|
|
13286
|
+
};
|
|
13287
|
+
|
|
13288
|
+
var Experience = /*#__PURE__*/Object.freeze({
|
|
13289
|
+
__proto__: null,
|
|
13290
|
+
create: create$4,
|
|
13291
|
+
del: del$3,
|
|
13292
|
+
get: get$4,
|
|
13293
|
+
getMany: getMany$4,
|
|
13294
|
+
publish: publish,
|
|
13295
|
+
unpublish: unpublish,
|
|
13296
|
+
upsert: upsert
|
|
13297
|
+
});
|
|
13298
|
+
|
|
13014
13299
|
const getBaseUrl$4 = (params) => {
|
|
13015
13300
|
return `/spaces/${params.spaceId}/environments/${params.environmentId ?? 'master'}/upload_credentials`;
|
|
13016
13301
|
};
|
|
@@ -13026,12 +13311,12 @@ var contentfulManagement = (function (exports) {
|
|
|
13026
13311
|
});
|
|
13027
13312
|
|
|
13028
13313
|
const getManyForSpace$1 = (http, params) => {
|
|
13029
|
-
return get$
|
|
13314
|
+
return get$19(http, `/organizations/${params.organizationId}/space_periodic_usages`, {
|
|
13030
13315
|
params: params.query,
|
|
13031
13316
|
});
|
|
13032
13317
|
};
|
|
13033
13318
|
const getManyForOrganization$1 = (http, params) => {
|
|
13034
|
-
return get$
|
|
13319
|
+
return get$19(http, `/organizations/${params.organizationId}/organization_periodic_usages`, {
|
|
13035
13320
|
params: params.query,
|
|
13036
13321
|
});
|
|
13037
13322
|
};
|
|
@@ -13043,19 +13328,19 @@ var contentfulManagement = (function (exports) {
|
|
|
13043
13328
|
});
|
|
13044
13329
|
|
|
13045
13330
|
const getForSpace = (http, params) => {
|
|
13046
|
-
return get$
|
|
13331
|
+
return get$19(http, `/spaces/${params.spaceId}/users/${params.userId}`);
|
|
13047
13332
|
};
|
|
13048
|
-
const getCurrent = (http, params) => get$
|
|
13333
|
+
const getCurrent = (http, params) => get$19(http, `/users/me`, { params: params?.query });
|
|
13049
13334
|
const getManyForSpace = (http, params) => {
|
|
13050
|
-
return get$
|
|
13335
|
+
return get$19(http, `/spaces/${params.spaceId}/users`, {
|
|
13051
13336
|
params: params.query,
|
|
13052
13337
|
});
|
|
13053
13338
|
};
|
|
13054
13339
|
const getForOrganization = (http, params) => {
|
|
13055
|
-
return get$
|
|
13340
|
+
return get$19(http, `/organizations/${params.organizationId}/users/${params.userId}`);
|
|
13056
13341
|
};
|
|
13057
13342
|
const getManyForOrganization = (http, params) => {
|
|
13058
|
-
return get$
|
|
13343
|
+
return get$19(http, `/organizations/${params.organizationId}/users`, {
|
|
13059
13344
|
params: params.query,
|
|
13060
13345
|
});
|
|
13061
13346
|
};
|
|
@@ -13071,7 +13356,7 @@ var contentfulManagement = (function (exports) {
|
|
|
13071
13356
|
|
|
13072
13357
|
const getUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config/me`;
|
|
13073
13358
|
const get$3 = (http, params) => {
|
|
13074
|
-
return get$
|
|
13359
|
+
return get$19(http, getUrl(params));
|
|
13075
13360
|
};
|
|
13076
13361
|
const update$3 = (http, params, rawData) => {
|
|
13077
13362
|
const data = index$2(rawData);
|
|
@@ -13099,32 +13384,32 @@ var contentfulManagement = (function (exports) {
|
|
|
13099
13384
|
const getWebhookSigningSecretUrl = (params) => `${getWebhookSettingsUrl(params)}/signing_secret`;
|
|
13100
13385
|
const getWebhookRetryPolicyUrl = (params) => `${getWebhookSettingsUrl(params)}/retry_policy`;
|
|
13101
13386
|
const get$2 = (http, params) => {
|
|
13102
|
-
return get$
|
|
13387
|
+
return get$19(http, getWebhookUrl(params));
|
|
13103
13388
|
};
|
|
13104
13389
|
const getManyCallDetails = (http, params) => {
|
|
13105
|
-
return get$
|
|
13390
|
+
return get$19(http, getWebhookCallUrl(params), {
|
|
13106
13391
|
params: normalizeSelect(params.query),
|
|
13107
13392
|
});
|
|
13108
13393
|
};
|
|
13109
13394
|
const getCallDetails = (http, params) => {
|
|
13110
|
-
return get$
|
|
13395
|
+
return get$19(http, getWebhookCallDetailsUrl(params));
|
|
13111
13396
|
};
|
|
13112
13397
|
const getHealthStatus = (http, params) => {
|
|
13113
|
-
return get$
|
|
13398
|
+
return get$19(http, getWebhookHealthUrl(params));
|
|
13114
13399
|
};
|
|
13115
13400
|
const getMany$3 = (http, params) => {
|
|
13116
|
-
return get$
|
|
13401
|
+
return get$19(http, getBaseUrl$3(params), {
|
|
13117
13402
|
params: normalizeSelect(params.query),
|
|
13118
13403
|
});
|
|
13119
13404
|
};
|
|
13120
13405
|
const getSigningSecret = (http, params) => {
|
|
13121
|
-
return get$
|
|
13406
|
+
return get$19(http, getWebhookSigningSecretUrl(params));
|
|
13122
13407
|
};
|
|
13123
13408
|
/**
|
|
13124
13409
|
* @deprecated The EAP for this feature has ended. This method will be removed in the next major version.
|
|
13125
13410
|
*/
|
|
13126
13411
|
const getRetryPolicy = (http, params) => {
|
|
13127
|
-
return get$
|
|
13412
|
+
return get$19(http, getWebhookRetryPolicyUrl(params));
|
|
13128
13413
|
};
|
|
13129
13414
|
const create$2 = (http, params, rawData, headers) => {
|
|
13130
13415
|
const data = index$2(rawData);
|
|
@@ -13156,16 +13441,16 @@ var contentfulManagement = (function (exports) {
|
|
|
13156
13441
|
return put$1(http, getWebhookRetryPolicyUrl(params), data);
|
|
13157
13442
|
};
|
|
13158
13443
|
const del$2 = (http, params) => {
|
|
13159
|
-
return del$
|
|
13444
|
+
return del$M(http, getWebhookUrl(params));
|
|
13160
13445
|
};
|
|
13161
13446
|
const deleteSigningSecret = async (http, params) => {
|
|
13162
|
-
return del$
|
|
13447
|
+
return del$M(http, getWebhookSigningSecretUrl(params));
|
|
13163
13448
|
};
|
|
13164
13449
|
/**
|
|
13165
13450
|
* @deprecated The EAP for this feature has ended. This method will be removed in the next major version.
|
|
13166
13451
|
*/
|
|
13167
13452
|
const deleteRetryPolicy = async (http, params) => {
|
|
13168
|
-
return del$
|
|
13453
|
+
return del$M(http, getWebhookRetryPolicyUrl(params));
|
|
13169
13454
|
};
|
|
13170
13455
|
|
|
13171
13456
|
var Webhook = /*#__PURE__*/Object.freeze({
|
|
@@ -13190,11 +13475,11 @@ var contentfulManagement = (function (exports) {
|
|
|
13190
13475
|
const getBaseUrl$2 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows`;
|
|
13191
13476
|
const getWorkflowUrl = (params) => `${getBaseUrl$2(params)}/${params.workflowId}`;
|
|
13192
13477
|
const completeWorkflowUrl = (params) => `${getWorkflowUrl(params)}/complete`;
|
|
13193
|
-
const getMany$2 = (http, params, headers) => get$
|
|
13478
|
+
const getMany$2 = (http, params, headers) => get$19(http, getBaseUrl$2(params), {
|
|
13194
13479
|
headers,
|
|
13195
13480
|
params: params.query,
|
|
13196
13481
|
});
|
|
13197
|
-
const get$1 = (http, params, headers) => get$
|
|
13482
|
+
const get$1 = (http, params, headers) => get$19(http, getWorkflowUrl(params), {
|
|
13198
13483
|
headers,
|
|
13199
13484
|
});
|
|
13200
13485
|
const create$1 = (http, params, rawData, headers) => {
|
|
@@ -13214,7 +13499,7 @@ var contentfulManagement = (function (exports) {
|
|
|
13214
13499
|
});
|
|
13215
13500
|
};
|
|
13216
13501
|
const del$1 = (http, { version, ...params }, headers) => {
|
|
13217
|
-
return del$
|
|
13502
|
+
return del$M(http, getWorkflowUrl(params), {
|
|
13218
13503
|
headers: { 'X-Contentful-Version': version, ...headers },
|
|
13219
13504
|
});
|
|
13220
13505
|
};
|
|
@@ -13236,10 +13521,10 @@ var contentfulManagement = (function (exports) {
|
|
|
13236
13521
|
|
|
13237
13522
|
const getBaseUrl$1 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflow_definitions`;
|
|
13238
13523
|
const getWorkflowDefinitionUrl = (params) => `${getBaseUrl$1(params)}/${params.workflowDefinitionId}`;
|
|
13239
|
-
const get = (http, params, headers) => get$
|
|
13524
|
+
const get = (http, params, headers) => get$19(http, getWorkflowDefinitionUrl(params), {
|
|
13240
13525
|
headers,
|
|
13241
13526
|
});
|
|
13242
|
-
const getMany$1 = (http, params, headers) => get$
|
|
13527
|
+
const getMany$1 = (http, params, headers) => get$19(http, getBaseUrl$1(params), {
|
|
13243
13528
|
headers,
|
|
13244
13529
|
params: params.query,
|
|
13245
13530
|
});
|
|
@@ -13260,7 +13545,7 @@ var contentfulManagement = (function (exports) {
|
|
|
13260
13545
|
});
|
|
13261
13546
|
};
|
|
13262
13547
|
const del = (http, { version, ...params }, headers) => {
|
|
13263
|
-
return del$
|
|
13548
|
+
return del$M(http, getWorkflowDefinitionUrl(params), {
|
|
13264
13549
|
headers: { 'X-Contentful-Version': version, ...headers },
|
|
13265
13550
|
});
|
|
13266
13551
|
};
|
|
@@ -13275,7 +13560,7 @@ var contentfulManagement = (function (exports) {
|
|
|
13275
13560
|
});
|
|
13276
13561
|
|
|
13277
13562
|
const getBaseUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows_changelog`;
|
|
13278
|
-
const getMany = (http, params, headers) => get$
|
|
13563
|
+
const getMany = (http, params, headers) => get$19(http, getBaseUrl(params), {
|
|
13279
13564
|
headers,
|
|
13280
13565
|
params: params.query,
|
|
13281
13566
|
});
|
|
@@ -13314,6 +13599,7 @@ var contentfulManagement = (function (exports) {
|
|
|
13314
13599
|
Concept,
|
|
13315
13600
|
ConceptScheme,
|
|
13316
13601
|
ContentType,
|
|
13602
|
+
DataAssembly,
|
|
13317
13603
|
EditorInterface,
|
|
13318
13604
|
EligibleLicense,
|
|
13319
13605
|
Entry,
|
|
@@ -13322,6 +13608,7 @@ var contentfulManagement = (function (exports) {
|
|
|
13322
13608
|
EnvironmentTemplate,
|
|
13323
13609
|
EnvironmentTemplateInstallation,
|
|
13324
13610
|
Extension,
|
|
13611
|
+
Fragment,
|
|
13325
13612
|
Function: Function$1,
|
|
13326
13613
|
FunctionLog,
|
|
13327
13614
|
Http,
|
|
@@ -13358,9 +13645,11 @@ var contentfulManagement = (function (exports) {
|
|
|
13358
13645
|
Team,
|
|
13359
13646
|
TeamMembership,
|
|
13360
13647
|
TeamSpaceMembership,
|
|
13648
|
+
Template,
|
|
13361
13649
|
UIConfig,
|
|
13362
13650
|
Upload,
|
|
13363
13651
|
UploadCredential,
|
|
13652
|
+
Experience,
|
|
13364
13653
|
Usage,
|
|
13365
13654
|
User,
|
|
13366
13655
|
UserUIConfig,
|
|
@@ -23826,6 +24115,12 @@ var contentfulManagement = (function (exports) {
|
|
|
23826
24115
|
},
|
|
23827
24116
|
componentType: {
|
|
23828
24117
|
getMany: wrap(wrapParams, 'ComponentType', 'getMany'),
|
|
24118
|
+
get: wrap(wrapParams, 'ComponentType', 'get'),
|
|
24119
|
+
create: wrap(wrapParams, 'ComponentType', 'create'),
|
|
24120
|
+
upsert: wrap(wrapParams, 'ComponentType', 'upsert'),
|
|
24121
|
+
delete: wrap(wrapParams, 'ComponentType', 'delete'),
|
|
24122
|
+
publish: wrap(wrapParams, 'ComponentType', 'publish'),
|
|
24123
|
+
unpublish: wrap(wrapParams, 'ComponentType', 'unpublish'),
|
|
23829
24124
|
},
|
|
23830
24125
|
contentType: {
|
|
23831
24126
|
get: wrap(wrapParams, 'ContentType', 'get'),
|
|
@@ -23839,6 +24134,17 @@ var contentfulManagement = (function (exports) {
|
|
|
23839
24134
|
createWithId: wrap(wrapParams, 'ContentType', 'createWithId'),
|
|
23840
24135
|
omitAndDeleteField: (params, contentType, fieldId) => omitAndDeleteField(makeRequest, { ...{ ...defaults, ...params }, fieldId }, contentType),
|
|
23841
24136
|
},
|
|
24137
|
+
dataAssembly: {
|
|
24138
|
+
getMany: wrap(wrapParams, 'DataAssembly', 'getMany'),
|
|
24139
|
+
getManyPublished: wrap(wrapParams, 'DataAssembly', 'getManyPublished'),
|
|
24140
|
+
getPublished: wrap(wrapParams, 'DataAssembly', 'getPublished'),
|
|
24141
|
+
get: wrap(wrapParams, 'DataAssembly', 'get'),
|
|
24142
|
+
create: wrap(wrapParams, 'DataAssembly', 'create'),
|
|
24143
|
+
update: wrap(wrapParams, 'DataAssembly', 'update'),
|
|
24144
|
+
delete: wrap(wrapParams, 'DataAssembly', 'delete'),
|
|
24145
|
+
publish: wrap(wrapParams, 'DataAssembly', 'publish'),
|
|
24146
|
+
unpublish: wrap(wrapParams, 'DataAssembly', 'unpublish'),
|
|
24147
|
+
},
|
|
23842
24148
|
user: {
|
|
23843
24149
|
getManyForSpace: wrap(wrapParams, 'User', 'getManyForSpace'),
|
|
23844
24150
|
getForSpace: wrap(wrapParams, 'User', 'getForSpace'),
|
|
@@ -24186,6 +24492,24 @@ var contentfulManagement = (function (exports) {
|
|
|
24186
24492
|
update: wrap(wrapParams, 'TeamSpaceMembership', 'update'),
|
|
24187
24493
|
delete: wrap(wrapParams, 'TeamSpaceMembership', 'delete'),
|
|
24188
24494
|
},
|
|
24495
|
+
fragment: {
|
|
24496
|
+
getMany: wrap(wrapParams, 'Fragment', 'getMany'),
|
|
24497
|
+
get: wrap(wrapParams, 'Fragment', 'get'),
|
|
24498
|
+
create: wrap(wrapParams, 'Fragment', 'create'),
|
|
24499
|
+
update: wrap(wrapParams, 'Fragment', 'update'),
|
|
24500
|
+
delete: wrap(wrapParams, 'Fragment', 'delete'),
|
|
24501
|
+
publish: wrap(wrapParams, 'Fragment', 'publish'),
|
|
24502
|
+
unpublish: wrap(wrapParams, 'Fragment', 'unpublish'),
|
|
24503
|
+
},
|
|
24504
|
+
template: {
|
|
24505
|
+
getMany: wrap(wrapParams, 'Template', 'getMany'),
|
|
24506
|
+
get: wrap(wrapParams, 'Template', 'get'),
|
|
24507
|
+
create: wrap(wrapParams, 'Template', 'create'),
|
|
24508
|
+
upsert: wrap(wrapParams, 'Template', 'upsert'),
|
|
24509
|
+
delete: wrap(wrapParams, 'Template', 'delete'),
|
|
24510
|
+
publish: wrap(wrapParams, 'Template', 'publish'),
|
|
24511
|
+
unpublish: wrap(wrapParams, 'Template', 'unpublish'),
|
|
24512
|
+
},
|
|
24189
24513
|
uiConfig: {
|
|
24190
24514
|
get: wrap(wrapParams, 'UIConfig', 'get'),
|
|
24191
24515
|
update: wrap(wrapParams, 'UIConfig', 'update'),
|
|
@@ -24194,6 +24518,15 @@ var contentfulManagement = (function (exports) {
|
|
|
24194
24518
|
get: wrap(wrapParams, 'UserUIConfig', 'get'),
|
|
24195
24519
|
update: wrap(wrapParams, 'UserUIConfig', 'update'),
|
|
24196
24520
|
},
|
|
24521
|
+
experience: {
|
|
24522
|
+
getMany: wrap(wrapParams, 'Experience', 'getMany'),
|
|
24523
|
+
get: wrap(wrapParams, 'Experience', 'get'),
|
|
24524
|
+
create: wrap(wrapParams, 'Experience', 'create'),
|
|
24525
|
+
upsert: wrap(wrapParams, 'Experience', 'upsert'),
|
|
24526
|
+
delete: wrap(wrapParams, 'Experience', 'delete'),
|
|
24527
|
+
publish: wrap(wrapParams, 'Experience', 'publish'),
|
|
24528
|
+
unpublish: wrap(wrapParams, 'Experience', 'unpublish'),
|
|
24529
|
+
},
|
|
24197
24530
|
workflowDefinition: {
|
|
24198
24531
|
get: wrap(wrapParams, 'WorkflowDefinition', 'get'),
|
|
24199
24532
|
getMany: wrap(wrapParams, 'WorkflowDefinition', 'getMany'),
|