contentful-management 12.6.0-dev.3 → 12.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/browser/index.js +752 -1055
- 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 +744 -1047
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/adapters/REST/endpoints/asset.mjs +12 -1
- package/dist/esm/adapters/REST/endpoints/asset.mjs.map +1 -1
- package/dist/esm/adapters/REST/endpoints/component-type.mjs +3 -43
- package/dist/esm/adapters/REST/endpoints/component-type.mjs.map +1 -1
- package/dist/esm/adapters/REST/endpoints/content-type.mjs +9 -1
- package/dist/esm/adapters/REST/endpoints/content-type.mjs.map +1 -1
- package/dist/esm/adapters/REST/endpoints/entry.mjs +12 -1
- package/dist/esm/adapters/REST/endpoints/entry.mjs.map +1 -1
- package/dist/esm/adapters/REST/endpoints/index.mjs +0 -8
- package/dist/esm/adapters/REST/endpoints/index.mjs.map +1 -1
- package/dist/esm/common-types.mjs.map +1 -1
- package/dist/esm/entities/ai-action-invocation.mjs.map +1 -1
- package/dist/esm/entities/ai-action.mjs.map +1 -1
- package/dist/esm/plain/plain-client.mjs +0 -44
- package/dist/esm/plain/plain-client.mjs.map +1 -1
- package/dist/types/adapters/REST/endpoints/asset.d.ts +1 -0
- package/dist/types/adapters/REST/endpoints/asset.js +12 -1
- package/dist/types/adapters/REST/endpoints/asset.js.map +1 -1
- package/dist/types/adapters/REST/endpoints/component-type.d.ts +0 -6
- package/dist/types/adapters/REST/endpoints/component-type.js +3 -43
- package/dist/types/adapters/REST/endpoints/component-type.js.map +1 -1
- package/dist/types/adapters/REST/endpoints/content-type.d.ts +1 -0
- package/dist/types/adapters/REST/endpoints/content-type.js +9 -1
- package/dist/types/adapters/REST/endpoints/content-type.js.map +1 -1
- package/dist/types/adapters/REST/endpoints/entry.d.ts +1 -0
- package/dist/types/adapters/REST/endpoints/entry.js +12 -1
- package/dist/types/adapters/REST/endpoints/entry.js.map +1 -1
- package/dist/types/adapters/REST/endpoints/index.d.ts +0 -8
- package/dist/types/adapters/REST/endpoints/index.js +0 -8
- package/dist/types/adapters/REST/endpoints/index.js.map +1 -1
- package/dist/types/common-types.d.ts +5 -384
- package/dist/types/common-types.js.map +1 -1
- package/dist/types/entities/ai-action-invocation.d.ts +37 -18
- package/dist/types/entities/ai-action-invocation.js.map +1 -1
- package/dist/types/entities/ai-action.d.ts +4 -1
- package/dist/types/entities/ai-action.js.map +1 -1
- package/dist/types/entities/component-type.d.ts +56 -88
- package/dist/types/export-types.d.ts +1 -6
- package/dist/types/plain/entities/component-type.d.ts +7 -118
- package/dist/types/plain/plain-client-types.d.ts +0 -8
- package/dist/types/plain/plain-client.js +0 -44
- package/dist/types/plain/plain-client.js.map +1 -1
- package/package.json +1 -1
- package/dist/esm/adapters/REST/endpoints/data-assembly.mjs +0 -62
- package/dist/esm/adapters/REST/endpoints/data-assembly.mjs.map +0 -1
- package/dist/esm/adapters/REST/endpoints/experience.mjs +0 -52
- package/dist/esm/adapters/REST/endpoints/experience.mjs.map +0 -1
- package/dist/esm/adapters/REST/endpoints/fragment.mjs +0 -50
- package/dist/esm/adapters/REST/endpoints/fragment.mjs.map +0 -1
- package/dist/esm/adapters/REST/endpoints/template.mjs +0 -50
- package/dist/esm/adapters/REST/endpoints/template.mjs.map +0 -1
- package/dist/types/adapters/REST/endpoints/data-assembly.d.ts +0 -10
- package/dist/types/adapters/REST/endpoints/data-assembly.js +0 -62
- package/dist/types/adapters/REST/endpoints/data-assembly.js.map +0 -1
- package/dist/types/adapters/REST/endpoints/experience.d.ts +0 -8
- package/dist/types/adapters/REST/endpoints/experience.js +0 -52
- package/dist/types/adapters/REST/endpoints/experience.js.map +0 -1
- package/dist/types/adapters/REST/endpoints/fragment.d.ts +0 -8
- package/dist/types/adapters/REST/endpoints/fragment.js +0 -50
- package/dist/types/adapters/REST/endpoints/fragment.js.map +0 -1
- package/dist/types/adapters/REST/endpoints/template.d.ts +0 -8
- package/dist/types/adapters/REST/endpoints/template.js +0 -50
- package/dist/types/adapters/REST/endpoints/template.js.map +0 -1
- package/dist/types/entities/data-assembly.d.ts +0 -94
- package/dist/types/entities/experience.d.ts +0 -78
- package/dist/types/entities/fragment.d.ts +0 -52
- package/dist/types/entities/template.d.ts +0 -47
- package/dist/types/plain/entities/data-assembly.d.ts +0 -178
- package/dist/types/plain/entities/experience.d.ts +0 -164
- package/dist/types/plain/entities/fragment.d.ts +0 -133
- package/dist/types/plain/entities/template.d.ts +0 -138
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$G = 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$G(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$G(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$G(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$15;
|
|
3143
3143
|
var hasRequiredGet;
|
|
3144
3144
|
|
|
3145
3145
|
function requireGet () {
|
|
3146
|
-
if (hasRequiredGet) return get$
|
|
3146
|
+
if (hasRequiredGet) return get$15;
|
|
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$15 = 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$15;
|
|
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$t(http) {
|
|
9753
9753
|
return http.defaults.baseURL?.split('/spaces')[0];
|
|
9754
9754
|
}
|
|
9755
|
-
function get$
|
|
9755
|
+
function get$14(http, url, config) {
|
|
9756
9756
|
return http
|
|
9757
9757
|
.get(url, {
|
|
9758
|
-
baseURL: getBaseUrl$
|
|
9758
|
+
baseURL: getBaseUrl$t(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$t(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$t(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$t(http),
|
|
9783
9783
|
...config,
|
|
9784
9784
|
})
|
|
9785
9785
|
.then((response) => response.data, errorHandler);
|
|
9786
9786
|
}
|
|
9787
|
-
function del$
|
|
9787
|
+
function del$H(http, url, config) {
|
|
9788
9788
|
return http
|
|
9789
9789
|
.delete(url, {
|
|
9790
|
-
baseURL: getBaseUrl$
|
|
9790
|
+
baseURL: getBaseUrl$t(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$t(http),
|
|
9798
9798
|
...config,
|
|
9799
9799
|
}).then((response) => response.data, errorHandler);
|
|
9800
9800
|
}
|
|
9801
9801
|
|
|
9802
|
-
const get$
|
|
9803
|
-
return get$
|
|
9802
|
+
const get$13 = (http, params, headers) => {
|
|
9803
|
+
return get$14(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, {
|
|
9804
9804
|
headers,
|
|
9805
9805
|
});
|
|
9806
9806
|
};
|
|
9807
|
-
const getMany$
|
|
9808
|
-
return get$
|
|
9807
|
+
const getMany$R = (http, params, headers) => {
|
|
9808
|
+
return get$14(http, `/spaces/${params.spaceId}/ai/actions`, {
|
|
9809
9809
|
params: params.query,
|
|
9810
9810
|
headers,
|
|
9811
9811
|
});
|
|
9812
9812
|
};
|
|
9813
|
-
const create$
|
|
9813
|
+
const create$F = (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$z = (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$G = (http, params, headers) => {
|
|
9827
|
+
return del$H(http, `/spaces/${params.spaceId}/ai/actions/${params.aiActionId}`, { headers });
|
|
9828
9828
|
};
|
|
9829
|
-
const publish$
|
|
9829
|
+
const publish$5 = (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$5 = (http, params, headers) => {
|
|
9838
|
+
return del$H(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$F,
|
|
9849
|
+
del: del$G,
|
|
9850
|
+
get: get$13,
|
|
9851
|
+
getMany: getMany$R,
|
|
9852
9852
|
invoke: invoke,
|
|
9853
|
-
publish: publish$
|
|
9854
|
-
unpublish: unpublish$
|
|
9855
|
-
update: update$
|
|
9853
|
+
publish: publish$5,
|
|
9854
|
+
unpublish: unpublish$5,
|
|
9855
|
+
update: update$z
|
|
9856
9856
|
});
|
|
9857
9857
|
|
|
9858
|
-
const get$
|
|
9859
|
-
return get$
|
|
9858
|
+
const get$12 = (http, params, headers) => {
|
|
9859
|
+
return get$14(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$12
|
|
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$11 = (http, params, headers) => {
|
|
9871
|
+
return get$14(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$Q = (http, params, headers) => {
|
|
9879
|
+
return get$14(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$11,
|
|
9899
|
+
getMany: getMany$Q
|
|
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$10 = (http, params, headers) => {
|
|
9906
|
+
return get$14(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$P = (http, params, headers) => {
|
|
9914
|
+
return get$14(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$10,
|
|
9934
|
+
getMany: getMany$P,
|
|
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$$ = (http, params) => {
|
|
9960
|
+
return get$14(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$O = (http, params) => {
|
|
9983
|
+
return get$14(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$14(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$$,
|
|
10069
|
+
getMany: getMany$O,
|
|
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$s = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_definitions`;
|
|
10075
|
+
const getAutomationDefinitionUrl = (params) => `${getBaseUrl$s(params)}/${params.automationDefinitionId}`;
|
|
10076
|
+
const get$_ = (http, params, headers) => get$14(http, getAutomationDefinitionUrl(params), {
|
|
10077
10077
|
headers,
|
|
10078
10078
|
});
|
|
10079
|
-
const getMany$
|
|
10079
|
+
const getMany$N = (http, params, headers) => get$14(http, getBaseUrl$s(params), {
|
|
10080
10080
|
headers,
|
|
10081
10081
|
params: params.query,
|
|
10082
10082
|
});
|
|
10083
|
-
const create$
|
|
10083
|
+
const create$E = (http, params, rawData, headers) => {
|
|
10084
10084
|
const data = index$2(rawData);
|
|
10085
|
-
return post$1(http, getBaseUrl$
|
|
10085
|
+
return post$1(http, getBaseUrl$s(params), data, {
|
|
10086
10086
|
headers,
|
|
10087
10087
|
});
|
|
10088
10088
|
};
|
|
10089
|
-
const update$
|
|
10089
|
+
const update$y = (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$F = (http, params, headers) => {
|
|
10100
|
+
return del$H(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$E,
|
|
10108
|
+
del: del$F,
|
|
10109
|
+
get: get$_,
|
|
10110
|
+
getMany: getMany$N,
|
|
10111
|
+
update: update$y
|
|
10112
10112
|
});
|
|
10113
10113
|
|
|
10114
|
-
const getBaseUrl$
|
|
10115
|
-
const getAutomationExecutionUrl = (params) => `${getBaseUrl$
|
|
10114
|
+
const getBaseUrl$r = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/automation_executions`;
|
|
10115
|
+
const getAutomationExecutionUrl = (params) => `${getBaseUrl$r(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$Z = (http, params, headers) => get$14(http, getAutomationExecutionUrl(params), {
|
|
10118
10118
|
headers,
|
|
10119
10119
|
});
|
|
10120
|
-
const getMany$
|
|
10120
|
+
const getMany$M = (http, params, headers) => get$14(http, getBaseUrl$r(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$14(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$Z,
|
|
10132
10132
|
getForAutomationDefinition: getForAutomationDefinition,
|
|
10133
|
-
getMany: getMany$
|
|
10133
|
+
getMany: getMany$M
|
|
10134
10134
|
});
|
|
10135
10135
|
|
|
10136
|
-
const get$
|
|
10137
|
-
return get$
|
|
10136
|
+
const get$Y = (http, params) => {
|
|
10137
|
+
return get$14(http, `/spaces/${params.spaceId}/api_keys/${params.apiKeyId}`);
|
|
10138
10138
|
};
|
|
10139
|
-
const getMany$
|
|
10140
|
-
return get$
|
|
10139
|
+
const getMany$L = (http, params) => {
|
|
10140
|
+
return get$14(http, `/spaces/${params.spaceId}/api_keys`, {
|
|
10141
10141
|
params: params.query,
|
|
10142
10142
|
});
|
|
10143
10143
|
};
|
|
10144
|
-
const create$
|
|
10144
|
+
const create$D = (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$x = (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$E = (http, params) => {
|
|
10172
|
+
return del$H(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$D,
|
|
10178
10178
|
createWithId: createWithId$e,
|
|
10179
|
-
del: del$
|
|
10180
|
-
get: get$
|
|
10181
|
-
getMany: getMany$
|
|
10182
|
-
update: update$
|
|
10179
|
+
del: del$E,
|
|
10180
|
+
get: get$Y,
|
|
10181
|
+
getMany: getMany$L,
|
|
10182
|
+
update: update$x
|
|
10183
10183
|
});
|
|
10184
10184
|
|
|
10185
|
-
const create$
|
|
10185
|
+
const create$C = (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$C
|
|
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$q = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/actions`;
|
|
10215
|
+
const getAppActionUrl = (params) => `${getBaseUrl$q(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$X = (http, params) => {
|
|
10223
|
+
return get$14(http, getAppActionUrl(params));
|
|
10224
10224
|
};
|
|
10225
|
-
const getMany$
|
|
10226
|
-
return get$
|
|
10225
|
+
const getMany$K = (http, params) => {
|
|
10226
|
+
return get$14(http, getBaseUrl$q(params), {
|
|
10227
10227
|
params: normalizeSelect(params.query),
|
|
10228
10228
|
});
|
|
10229
10229
|
};
|
|
10230
10230
|
const getManyForEnvironment$2 = (http, params) => {
|
|
10231
|
-
return get$
|
|
10231
|
+
return get$14(http, getAppActionsEnvUrl(params), {
|
|
10232
10232
|
params: normalizeSelect(params.query),
|
|
10233
10233
|
});
|
|
10234
10234
|
};
|
|
10235
|
-
const del$
|
|
10236
|
-
return del$
|
|
10235
|
+
const del$D = (http, params) => {
|
|
10236
|
+
return del$H(http, getAppActionUrl(params));
|
|
10237
10237
|
};
|
|
10238
|
-
const create$
|
|
10239
|
-
return post$1(http, getBaseUrl$
|
|
10238
|
+
const create$B = (http, params, data) => {
|
|
10239
|
+
return post$1(http, getBaseUrl$q(params), data);
|
|
10240
10240
|
};
|
|
10241
|
-
const update$
|
|
10241
|
+
const update$w = (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$B,
|
|
10248
|
+
del: del$D,
|
|
10249
|
+
get: get$X,
|
|
10250
|
+
getMany: getMany$K,
|
|
10251
10251
|
getManyForEnvironment: getManyForEnvironment$2,
|
|
10252
|
-
update: update$
|
|
10252
|
+
update: update$w
|
|
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$A = (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$14(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$W = (http, params) => {
|
|
10375
|
+
return get$14(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$14(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$W(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$A,
|
|
10428
10428
|
createWithResponse: createWithResponse,
|
|
10429
10429
|
createWithResult: createWithResult,
|
|
10430
|
-
get: get
|
|
10430
|
+
get: get$W,
|
|
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$p = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/app_bundles`;
|
|
10436
|
+
const getAppBundleUrl = (params) => `${getBaseUrl$p(params)}/${params.appBundleId}`;
|
|
10437
|
+
const get$V = (http, params) => {
|
|
10438
|
+
return get$14(http, getAppBundleUrl(params));
|
|
10439
10439
|
};
|
|
10440
|
-
const getMany$
|
|
10441
|
-
return get$
|
|
10440
|
+
const getMany$J = (http, params) => {
|
|
10441
|
+
return get$14(http, getBaseUrl$p(params), {
|
|
10442
10442
|
params: normalizeSelect(params.query),
|
|
10443
10443
|
});
|
|
10444
10444
|
};
|
|
10445
|
-
const del$
|
|
10446
|
-
return del$
|
|
10445
|
+
const del$C = (http, params) => {
|
|
10446
|
+
return del$H(http, getAppBundleUrl(params));
|
|
10447
10447
|
};
|
|
10448
|
-
const create$
|
|
10448
|
+
const create$z = (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$p(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$z,
|
|
10468
|
+
del: del$C,
|
|
10469
|
+
get: get$V,
|
|
10470
|
+
getMany: getMany$J
|
|
10471
10471
|
});
|
|
10472
10472
|
|
|
10473
|
-
const getBaseUrl$
|
|
10474
|
-
const getAppDefinitionUrl = (params) => getBaseUrl$
|
|
10473
|
+
const getBaseUrl$o = (params) => `/organizations/${params.organizationId}/app_definitions`;
|
|
10474
|
+
const getAppDefinitionUrl = (params) => getBaseUrl$o(params) + `/${params.appDefinitionId}`;
|
|
10475
10475
|
const getBaseUrlForOrgInstallations$1 = (params) => `/app_definitions/${params.appDefinitionId}/app_installations`;
|
|
10476
|
-
const get$
|
|
10477
|
-
return get$
|
|
10476
|
+
const get$U = (http, params) => {
|
|
10477
|
+
return get$14(http, getAppDefinitionUrl(params), {
|
|
10478
10478
|
params: normalizeSelect(params.query),
|
|
10479
10479
|
});
|
|
10480
10480
|
};
|
|
10481
|
-
const getMany$
|
|
10482
|
-
return get$
|
|
10481
|
+
const getMany$I = (http, params) => {
|
|
10482
|
+
return get$14(http, getBaseUrl$o(params), {
|
|
10483
10483
|
params: params.query,
|
|
10484
10484
|
});
|
|
10485
10485
|
};
|
|
10486
|
-
const create$
|
|
10486
|
+
const create$y = (http, params, rawData) => {
|
|
10487
10487
|
const data = index$2(rawData);
|
|
10488
|
-
return post$1(http, getBaseUrl$
|
|
10488
|
+
return post$1(http, getBaseUrl$o(params), data);
|
|
10489
10489
|
};
|
|
10490
|
-
const update$
|
|
10490
|
+
const update$v = (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$B = (http, params) => {
|
|
10501
|
+
return del$H(http, getAppDefinitionUrl(params));
|
|
10502
10502
|
};
|
|
10503
10503
|
const getInstallationsForOrg = (http, params) => {
|
|
10504
|
-
return get$
|
|
10504
|
+
return get$14(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$y,
|
|
10515
|
+
del: del$B,
|
|
10516
|
+
get: get$U,
|
|
10517
10517
|
getAppDefinitionUrl: getAppDefinitionUrl,
|
|
10518
10518
|
getInstallationsForOrg: getInstallationsForOrg,
|
|
10519
|
-
getMany: getMany$
|
|
10520
|
-
update: update$
|
|
10519
|
+
getMany: getMany$I,
|
|
10520
|
+
update: update$v
|
|
10521
10521
|
});
|
|
10522
10522
|
|
|
10523
|
-
const get$
|
|
10524
|
-
return get$
|
|
10523
|
+
const get$T = (http, params) => {
|
|
10524
|
+
return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/details`);
|
|
10525
10525
|
};
|
|
10526
|
-
const upsert$
|
|
10526
|
+
const upsert$5 = (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$A = (http, params) => {
|
|
10530
|
+
return del$H(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$A,
|
|
10536
|
+
get: get$T,
|
|
10537
|
+
upsert: upsert$5
|
|
10538
10538
|
});
|
|
10539
10539
|
|
|
10540
|
-
const get$
|
|
10541
|
-
return get$
|
|
10540
|
+
const get$S = (http, params) => {
|
|
10541
|
+
return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/event_subscription`);
|
|
10542
10542
|
};
|
|
10543
|
-
const upsert$
|
|
10543
|
+
const upsert$4 = (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$z = (http, params) => {
|
|
10547
|
+
return del$H(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$z,
|
|
10553
|
+
get: get$S,
|
|
10554
|
+
upsert: upsert$4
|
|
10555
10555
|
});
|
|
10556
10556
|
|
|
10557
|
-
const getBaseUrl$
|
|
10557
|
+
const getBaseUrl$n = (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$n(params) + `/${params.appDefinitionId}`;
|
|
10560
|
+
const get$R = (http, params) => {
|
|
10561
|
+
return get$14(http, getAppInstallationUrl(params), {
|
|
10562
10562
|
params: normalizeSelect(params.query),
|
|
10563
10563
|
});
|
|
10564
10564
|
};
|
|
10565
|
-
const getMany$
|
|
10566
|
-
return get$
|
|
10565
|
+
const getMany$H = (http, params) => {
|
|
10566
|
+
return get$14(http, getBaseUrl$n(params), {
|
|
10567
10567
|
params: normalizeSelect(params.query),
|
|
10568
10568
|
});
|
|
10569
10569
|
};
|
|
10570
|
-
const upsert$
|
|
10570
|
+
const upsert$3 = (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$y = (http, params) => {
|
|
10582
|
+
return del$H(http, getAppInstallationUrl(params));
|
|
10583
10583
|
};
|
|
10584
10584
|
const getForOrganization$3 = (http, params) => {
|
|
10585
|
-
return get$
|
|
10585
|
+
return get$14(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$y,
|
|
10596
|
+
get: get$R,
|
|
10597
10597
|
getAppInstallationUrl: getAppInstallationUrl,
|
|
10598
10598
|
getForOrganization: getForOrganization$3,
|
|
10599
|
-
getMany: getMany$
|
|
10600
|
-
upsert: upsert$
|
|
10599
|
+
getMany: getMany$H,
|
|
10600
|
+
upsert: upsert$3
|
|
10601
10601
|
});
|
|
10602
10602
|
|
|
10603
|
-
const get$
|
|
10604
|
-
return get$
|
|
10603
|
+
const get$Q = (http, params) => {
|
|
10604
|
+
return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys/${params.fingerprint}`);
|
|
10605
10605
|
};
|
|
10606
|
-
const getMany$
|
|
10607
|
-
return get$
|
|
10606
|
+
const getMany$G = (http, params) => {
|
|
10607
|
+
return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/keys`);
|
|
10608
10608
|
};
|
|
10609
|
-
const create$
|
|
10609
|
+
const create$x = (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$x = (http, params) => {
|
|
10613
|
+
return del$H(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$x,
|
|
10619
|
+
del: del$x,
|
|
10620
|
+
get: get$Q,
|
|
10621
|
+
getMany: getMany$G
|
|
10622
10622
|
});
|
|
10623
10623
|
|
|
10624
|
-
const create$
|
|
10624
|
+
const create$w = (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$w
|
|
10631
10631
|
});
|
|
10632
10632
|
|
|
10633
|
-
const get$
|
|
10634
|
-
return get$
|
|
10633
|
+
const get$P = (http, params) => {
|
|
10634
|
+
return get$14(http, `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/signing_secret`);
|
|
10635
10635
|
};
|
|
10636
|
-
const upsert$
|
|
10636
|
+
const upsert$2 = (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$w = (http, params) => {
|
|
10640
|
+
return del$H(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$w,
|
|
10646
|
+
get: get$P,
|
|
10647
|
+
upsert: upsert$2
|
|
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$m = (params) => `/organizations/${params.organizationId}/app_uploads`;
|
|
10664
|
+
const getAppUploadUrl = (params) => `${getBaseUrl$m(params)}/${params.appUploadId}`;
|
|
10665
|
+
const get$O = (http, params) => {
|
|
10666
10666
|
const httpUpload = getUploadHttpClient(http);
|
|
10667
|
-
return get$
|
|
10667
|
+
return get$14(httpUpload, getAppUploadUrl(params));
|
|
10668
10668
|
};
|
|
10669
|
-
const del$
|
|
10669
|
+
const del$v = (http, params) => {
|
|
10670
10670
|
const httpUpload = getUploadHttpClient(http);
|
|
10671
|
-
return del$
|
|
10671
|
+
return del$H(httpUpload, getAppUploadUrl(params));
|
|
10672
10672
|
};
|
|
10673
|
-
const create$
|
|
10673
|
+
const create$v = (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$m(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$v,
|
|
10686
|
+
del: del$v,
|
|
10687
|
+
get: get$O
|
|
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$u = (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$u = (http, params) => {
|
|
10714
10714
|
const httpUpload = getUploadHttpClient(http);
|
|
10715
10715
|
const path = getEntityUploadUrl(params);
|
|
10716
|
-
return del$
|
|
10716
|
+
return del$H(httpUpload, path);
|
|
10717
10717
|
};
|
|
10718
|
-
const get$
|
|
10718
|
+
const get$N = (http, params) => {
|
|
10719
10719
|
const httpUpload = getUploadHttpClient(http);
|
|
10720
10720
|
const path = getEntityUploadUrl(params);
|
|
10721
|
-
return get$
|
|
10721
|
+
return get$14(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$u,
|
|
10727
|
+
del: del$u,
|
|
10728
|
+
get: get$N
|
|
10729
10729
|
});
|
|
10730
10730
|
|
|
10731
|
-
const get$
|
|
10732
|
-
return get$
|
|
10731
|
+
const get$M = (http, params, rawData, headers) => {
|
|
10732
|
+
return get$14(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$F = (http, params, rawData, headers) => {
|
|
10738
|
+
return get$14(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$u = (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$t = (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$u(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$t(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$M(http, params).then((asset) => {
|
|
10806
10806
|
if (asset.fields.file[locale].url) {
|
|
10807
10807
|
resolve(asset);
|
|
10808
10808
|
}
|
|
@@ -10864,43 +10864,53 @@ var contentfulManagement = (function (exports) {
|
|
|
10864
10864
|
|
|
10865
10865
|
var ReleaseAsset = /*#__PURE__*/Object.freeze({
|
|
10866
10866
|
__proto__: null,
|
|
10867
|
-
create: create$
|
|
10867
|
+
create: create$t,
|
|
10868
10868
|
createFromFiles: createFromFiles$1,
|
|
10869
10869
|
createWithId: createWithId$d,
|
|
10870
|
-
get: get$
|
|
10871
|
-
getMany: getMany$
|
|
10870
|
+
get: get$M,
|
|
10871
|
+
getMany: getMany$F,
|
|
10872
10872
|
processForAllLocales: processForAllLocales$1,
|
|
10873
10873
|
processForLocale: processForLocale$1,
|
|
10874
|
-
update: update$
|
|
10874
|
+
update: update$u
|
|
10875
10875
|
});
|
|
10876
10876
|
|
|
10877
|
-
const get$
|
|
10877
|
+
const get$L = (http, params, rawData, headers) => {
|
|
10878
10878
|
if (params.releaseId) {
|
|
10879
|
-
return get$
|
|
10879
|
+
return get$M(http, params);
|
|
10880
10880
|
}
|
|
10881
|
-
return get$
|
|
10881
|
+
return get$14(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$1 = (http, params, rawData, headers) => {
|
|
10887
|
+
return get$14(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$E = (http, params, rawData, headers) => {
|
|
10893
10893
|
if (params.releaseId) {
|
|
10894
|
-
return getMany$
|
|
10894
|
+
return getMany$F(http, params);
|
|
10895
10895
|
}
|
|
10896
|
-
return get$
|
|
10896
|
+
return get$14(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
|
|
10901
|
+
const getManyWithCursor$2 = (http, params, rawData, headers) => {
|
|
10902
10902
|
if (params.releaseId) {
|
|
10903
|
-
|
|
10903
|
+
throw new Error('getManyWithCursor is not supported for release-scoped assets');
|
|
10904
|
+
}
|
|
10905
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, {
|
|
10906
|
+
params: { cursor: true, ...(params.query ?? {}) },
|
|
10907
|
+
headers: headers ? { ...headers } : undefined,
|
|
10908
|
+
})
|
|
10909
|
+
.then(normalizeCursorPaginationResponse);
|
|
10910
|
+
};
|
|
10911
|
+
const update$t = (http, params, rawData, headers) => {
|
|
10912
|
+
if (params.releaseId) {
|
|
10913
|
+
return update$u(http, params, rawData, headers ?? {});
|
|
10904
10914
|
}
|
|
10905
10915
|
const data = index$2(rawData);
|
|
10906
10916
|
delete data.sys;
|
|
@@ -10911,10 +10921,10 @@ var contentfulManagement = (function (exports) {
|
|
|
10911
10921
|
},
|
|
10912
10922
|
});
|
|
10913
10923
|
};
|
|
10914
|
-
const del$
|
|
10915
|
-
return del$
|
|
10924
|
+
const del$t = (http, params) => {
|
|
10925
|
+
return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}`);
|
|
10916
10926
|
};
|
|
10917
|
-
const publish$
|
|
10927
|
+
const publish$4 = (http, params, rawData) => {
|
|
10918
10928
|
const payload = params.locales?.length ? { add: { fields: { '*': params.locales } } } : null;
|
|
10919
10929
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`, payload, {
|
|
10920
10930
|
headers: {
|
|
@@ -10922,7 +10932,7 @@ var contentfulManagement = (function (exports) {
|
|
|
10922
10932
|
},
|
|
10923
10933
|
});
|
|
10924
10934
|
};
|
|
10925
|
-
const unpublish$
|
|
10935
|
+
const unpublish$4 = (http, params, rawData) => {
|
|
10926
10936
|
if (params.locales?.length) {
|
|
10927
10937
|
const payload = { remove: { fields: { '*': params.locales } } };
|
|
10928
10938
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`, payload, {
|
|
@@ -10932,18 +10942,18 @@ var contentfulManagement = (function (exports) {
|
|
|
10932
10942
|
});
|
|
10933
10943
|
}
|
|
10934
10944
|
else {
|
|
10935
|
-
return del$
|
|
10945
|
+
return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/published`);
|
|
10936
10946
|
}
|
|
10937
10947
|
};
|
|
10938
10948
|
const archive$2 = (http, params) => {
|
|
10939
10949
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`);
|
|
10940
10950
|
};
|
|
10941
10951
|
const unarchive$3 = (http, params) => {
|
|
10942
|
-
return del$
|
|
10952
|
+
return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets/${params.assetId}/archived`);
|
|
10943
10953
|
};
|
|
10944
|
-
const create$
|
|
10954
|
+
const create$s = (http, params, rawData) => {
|
|
10945
10955
|
if (params.releaseId) {
|
|
10946
|
-
return create$
|
|
10956
|
+
return create$t(http, params, rawData, {});
|
|
10947
10957
|
}
|
|
10948
10958
|
const data = index$2(rawData);
|
|
10949
10959
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/assets`, data);
|
|
@@ -10963,7 +10973,7 @@ var contentfulManagement = (function (exports) {
|
|
|
10963
10973
|
const { file } = data.fields;
|
|
10964
10974
|
return Promise.all(Object.keys(file).map(async (locale) => {
|
|
10965
10975
|
const { contentType, fileName } = file[locale];
|
|
10966
|
-
return create$
|
|
10976
|
+
return create$u(httpUpload, params, file[locale]).then((upload) => {
|
|
10967
10977
|
return {
|
|
10968
10978
|
[locale]: {
|
|
10969
10979
|
contentType,
|
|
@@ -10988,7 +10998,7 @@ var contentfulManagement = (function (exports) {
|
|
|
10988
10998
|
file,
|
|
10989
10999
|
},
|
|
10990
11000
|
};
|
|
10991
|
-
return create$
|
|
11001
|
+
return create$s(http, params, asset);
|
|
10992
11002
|
})
|
|
10993
11003
|
.catch(errorHandler);
|
|
10994
11004
|
};
|
|
@@ -10998,7 +11008,7 @@ var contentfulManagement = (function (exports) {
|
|
|
10998
11008
|
const ASSET_PROCESSING_CHECK_WAIT = 3000;
|
|
10999
11009
|
const ASSET_PROCESSING_CHECK_RETRIES = 10;
|
|
11000
11010
|
async function checkIfAssetHasUrl(http, params, { resolve, reject, locale, processingCheckWait = ASSET_PROCESSING_CHECK_WAIT, processingCheckRetries = ASSET_PROCESSING_CHECK_RETRIES, checkCount = 0, }) {
|
|
11001
|
-
return get$
|
|
11011
|
+
return get$L(http, params).then((asset) => {
|
|
11002
11012
|
if (asset.fields.file[locale].url) {
|
|
11003
11013
|
resolve(asset);
|
|
11004
11014
|
}
|
|
@@ -11075,19 +11085,20 @@ var contentfulManagement = (function (exports) {
|
|
|
11075
11085
|
var Asset = /*#__PURE__*/Object.freeze({
|
|
11076
11086
|
__proto__: null,
|
|
11077
11087
|
archive: archive$2,
|
|
11078
|
-
create: create$
|
|
11088
|
+
create: create$s,
|
|
11079
11089
|
createFromFiles: createFromFiles,
|
|
11080
11090
|
createWithId: createWithId$c,
|
|
11081
|
-
del: del$
|
|
11082
|
-
get: get$
|
|
11083
|
-
getMany: getMany$
|
|
11084
|
-
|
|
11091
|
+
del: del$t,
|
|
11092
|
+
get: get$L,
|
|
11093
|
+
getMany: getMany$E,
|
|
11094
|
+
getManyWithCursor: getManyWithCursor$2,
|
|
11095
|
+
getPublished: getPublished$1,
|
|
11085
11096
|
processForAllLocales: processForAllLocales,
|
|
11086
11097
|
processForLocale: processForLocale,
|
|
11087
|
-
publish: publish$
|
|
11098
|
+
publish: publish$4,
|
|
11088
11099
|
unarchive: unarchive$3,
|
|
11089
|
-
unpublish: unpublish$
|
|
11090
|
-
update: update$
|
|
11100
|
+
unpublish: unpublish$4,
|
|
11101
|
+
update: update$t
|
|
11091
11102
|
});
|
|
11092
11103
|
|
|
11093
11104
|
const ASSET_KEY_MAX_LIFETIME = 48 * 60 * 60;
|
|
@@ -11109,7 +11120,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11109
11120
|
throw new ValidationError(name, `value (${timestamp}) cannot be in the past, current time was ${options.now}`);
|
|
11110
11121
|
}
|
|
11111
11122
|
};
|
|
11112
|
-
const create$
|
|
11123
|
+
const create$r = (http, params, data) => {
|
|
11113
11124
|
const expiresAt = data.expiresAt;
|
|
11114
11125
|
const now = Math.floor(Date.now() / 1000);
|
|
11115
11126
|
const currentMaxLifetime = now + ASSET_KEY_MAX_LIFETIME;
|
|
@@ -11121,35 +11132,35 @@ var contentfulManagement = (function (exports) {
|
|
|
11121
11132
|
var AssetKey = /*#__PURE__*/Object.freeze({
|
|
11122
11133
|
__proto__: null,
|
|
11123
11134
|
ValidationError: ValidationError,
|
|
11124
|
-
create: create$
|
|
11135
|
+
create: create$r
|
|
11125
11136
|
});
|
|
11126
11137
|
|
|
11127
|
-
const getBaseUrl$
|
|
11128
|
-
const getMany$
|
|
11129
|
-
return get$
|
|
11138
|
+
const getBaseUrl$l = (params) => `/organizations/${params.organizationId}/available_licenses`;
|
|
11139
|
+
const getMany$D = (http, params) => {
|
|
11140
|
+
return get$14(http, getBaseUrl$l(params), {
|
|
11130
11141
|
params: params.query,
|
|
11131
11142
|
});
|
|
11132
11143
|
};
|
|
11133
11144
|
|
|
11134
11145
|
var AvailableLicense = /*#__PURE__*/Object.freeze({
|
|
11135
11146
|
__proto__: null,
|
|
11136
|
-
getMany: getMany$
|
|
11147
|
+
getMany: getMany$D
|
|
11137
11148
|
});
|
|
11138
11149
|
|
|
11139
|
-
const get$
|
|
11140
|
-
return get$
|
|
11150
|
+
const get$K = (http, params) => {
|
|
11151
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/actions/${params.bulkActionId}`);
|
|
11141
11152
|
};
|
|
11142
|
-
const publish$
|
|
11153
|
+
const publish$3 = (http, params, payload) => {
|
|
11143
11154
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/publish`, payload);
|
|
11144
11155
|
};
|
|
11145
|
-
const unpublish$
|
|
11156
|
+
const unpublish$3 = (http, params, payload) => {
|
|
11146
11157
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/unpublish`, payload);
|
|
11147
11158
|
};
|
|
11148
11159
|
const validate$2 = (http, params, payload) => {
|
|
11149
11160
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/validate`, payload);
|
|
11150
11161
|
};
|
|
11151
11162
|
const getV2 = (http, params) => {
|
|
11152
|
-
return get$
|
|
11163
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions/${params.bulkActionId}`);
|
|
11153
11164
|
};
|
|
11154
11165
|
const publishV2 = (http, params, payload) => {
|
|
11155
11166
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/bulk_actions`, payload);
|
|
@@ -11163,11 +11174,11 @@ var contentfulManagement = (function (exports) {
|
|
|
11163
11174
|
|
|
11164
11175
|
var BulkAction = /*#__PURE__*/Object.freeze({
|
|
11165
11176
|
__proto__: null,
|
|
11166
|
-
get: get$
|
|
11177
|
+
get: get$K,
|
|
11167
11178
|
getV2: getV2,
|
|
11168
|
-
publish: publish$
|
|
11179
|
+
publish: publish$3,
|
|
11169
11180
|
publishV2: publishV2,
|
|
11170
|
-
unpublish: unpublish$
|
|
11181
|
+
unpublish: unpublish$3,
|
|
11171
11182
|
unpublishV2: unpublishV2,
|
|
11172
11183
|
validate: validate$2,
|
|
11173
11184
|
validateV2: validateV2
|
|
@@ -11209,14 +11220,14 @@ var contentfulManagement = (function (exports) {
|
|
|
11209
11220
|
const versionPath = 'parentEntityVersion' in params ? `/versions/${params.parentEntityVersion}` : '';
|
|
11210
11221
|
return `${getSpaceEnvBaseUrl(params)}/${parentPlural}/${parentEntityId}${versionPath}/comments`;
|
|
11211
11222
|
};
|
|
11212
|
-
const get$
|
|
11223
|
+
const get$J = (http, params) => get$14(http, getEntityCommentUrl(params), {
|
|
11213
11224
|
headers: params.bodyFormat === 'rich-text'
|
|
11214
11225
|
? {
|
|
11215
11226
|
[BODY_FORMAT_HEADER]: params.bodyFormat,
|
|
11216
11227
|
}
|
|
11217
11228
|
: {},
|
|
11218
11229
|
});
|
|
11219
|
-
const getMany$
|
|
11230
|
+
const getMany$C = (http, params) => get$14(http, getEntityBaseUrl(params), {
|
|
11220
11231
|
params: normalizeSelect(params.query),
|
|
11221
11232
|
headers: params.bodyFormat === 'rich-text'
|
|
11222
11233
|
? {
|
|
@@ -11224,7 +11235,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11224
11235
|
}
|
|
11225
11236
|
: {},
|
|
11226
11237
|
});
|
|
11227
|
-
const create$
|
|
11238
|
+
const create$q = (http, params, rawData) => {
|
|
11228
11239
|
const data = index$2(rawData);
|
|
11229
11240
|
return post$1(http, getEntityBaseUrl(params), data, {
|
|
11230
11241
|
headers: {
|
|
@@ -11236,7 +11247,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11236
11247
|
},
|
|
11237
11248
|
});
|
|
11238
11249
|
};
|
|
11239
|
-
const update$
|
|
11250
|
+
const update$s = (http, params, rawData, headers) => {
|
|
11240
11251
|
const data = index$2(rawData);
|
|
11241
11252
|
delete data.sys;
|
|
11242
11253
|
return put$1(http, getEntityCommentUrl(params), data, {
|
|
@@ -11247,8 +11258,8 @@ var contentfulManagement = (function (exports) {
|
|
|
11247
11258
|
},
|
|
11248
11259
|
});
|
|
11249
11260
|
};
|
|
11250
|
-
const del$
|
|
11251
|
-
return del$
|
|
11261
|
+
const del$s = (http, { version, ...params }) => {
|
|
11262
|
+
return del$H(http, getEntityCommentUrl(params), {
|
|
11252
11263
|
headers: { [VERSION_HEADER]: version },
|
|
11253
11264
|
});
|
|
11254
11265
|
};
|
|
@@ -11256,80 +11267,35 @@ var contentfulManagement = (function (exports) {
|
|
|
11256
11267
|
/**
|
|
11257
11268
|
* @deprecated use `getMany` instead.
|
|
11258
11269
|
*/
|
|
11259
|
-
const getAll$1 = getMany$
|
|
11270
|
+
const getAll$1 = getMany$C;
|
|
11260
11271
|
|
|
11261
11272
|
var Comment = /*#__PURE__*/Object.freeze({
|
|
11262
11273
|
__proto__: null,
|
|
11263
|
-
create: create$
|
|
11264
|
-
del: del$
|
|
11265
|
-
get: get$
|
|
11274
|
+
create: create$q,
|
|
11275
|
+
del: del$s,
|
|
11276
|
+
get: get$J,
|
|
11266
11277
|
getAll: getAll$1,
|
|
11267
|
-
getMany: getMany$
|
|
11268
|
-
update: update$
|
|
11278
|
+
getMany: getMany$C,
|
|
11279
|
+
update: update$s
|
|
11269
11280
|
});
|
|
11270
11281
|
|
|
11271
|
-
const getBaseUrl$
|
|
11272
|
-
const getMany$
|
|
11273
|
-
return get$
|
|
11282
|
+
const getBaseUrl$k = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/component_types`;
|
|
11283
|
+
const getMany$B = (http, params, headers) => {
|
|
11284
|
+
return get$14(http, getBaseUrl$k(params), {
|
|
11274
11285
|
params: params.query,
|
|
11275
11286
|
headers,
|
|
11276
11287
|
});
|
|
11277
11288
|
};
|
|
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$5 = (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
|
-
};
|
|
11317
11289
|
|
|
11318
11290
|
var ComponentType = /*#__PURE__*/Object.freeze({
|
|
11319
11291
|
__proto__: null,
|
|
11320
|
-
|
|
11321
|
-
del: del$w,
|
|
11322
|
-
get: get$N,
|
|
11323
|
-
getMany: getMany$F,
|
|
11324
|
-
publish: publish$7,
|
|
11325
|
-
unpublish: unpublish$7,
|
|
11326
|
-
upsert: upsert$5
|
|
11292
|
+
getMany: getMany$B
|
|
11327
11293
|
});
|
|
11328
11294
|
|
|
11329
11295
|
function basePath$1(organizationId) {
|
|
11330
11296
|
return `/organizations/${organizationId}/taxonomy/concepts`;
|
|
11331
11297
|
}
|
|
11332
|
-
const create$
|
|
11298
|
+
const create$p = (http, params, data) => {
|
|
11333
11299
|
return post$1(http, basePath$1(params.organizationId), data);
|
|
11334
11300
|
};
|
|
11335
11301
|
const createWithId$b = (http, params, data) => {
|
|
@@ -11344,7 +11310,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11344
11310
|
},
|
|
11345
11311
|
});
|
|
11346
11312
|
};
|
|
11347
|
-
const update$
|
|
11313
|
+
const update$r = (http, params, data, headers) => {
|
|
11348
11314
|
return put$1(http, `${basePath$1(params.organizationId)}/${params.conceptId}`, data, {
|
|
11349
11315
|
headers: {
|
|
11350
11316
|
'X-Contentful-Version': params.version,
|
|
@@ -11352,28 +11318,28 @@ var contentfulManagement = (function (exports) {
|
|
|
11352
11318
|
},
|
|
11353
11319
|
});
|
|
11354
11320
|
};
|
|
11355
|
-
const get$
|
|
11356
|
-
const del$
|
|
11321
|
+
const get$I = (http, params) => get$14(http, `${basePath$1(params.organizationId)}/${params.conceptId}`);
|
|
11322
|
+
const del$r = (http, params, headers) => del$H(http, `${basePath$1(params.organizationId)}/${params.conceptId}`, {
|
|
11357
11323
|
headers: {
|
|
11358
11324
|
'X-Contentful-Version': params.version ?? 0,
|
|
11359
11325
|
...headers,
|
|
11360
11326
|
},
|
|
11361
11327
|
});
|
|
11362
|
-
const getMany$
|
|
11328
|
+
const getMany$A = (http, params) => {
|
|
11363
11329
|
const { url, queryParams } = cursorBasedCollection('', params);
|
|
11364
|
-
return get$
|
|
11330
|
+
return get$14(http, url, {
|
|
11365
11331
|
params: queryParams,
|
|
11366
11332
|
});
|
|
11367
11333
|
};
|
|
11368
11334
|
const getDescendants = (http, params) => {
|
|
11369
11335
|
const { url, queryParams } = cursorBasedCollection(`/${params.conceptId}/descendants`, params);
|
|
11370
|
-
return get$
|
|
11336
|
+
return get$14(http, url, { params: queryParams });
|
|
11371
11337
|
};
|
|
11372
11338
|
const getAncestors = (http, params) => {
|
|
11373
11339
|
const { url, queryParams } = cursorBasedCollection(`/${params.conceptId}/ancestors`, params);
|
|
11374
|
-
return get$
|
|
11340
|
+
return get$14(http, url, { params: queryParams });
|
|
11375
11341
|
};
|
|
11376
|
-
const getTotal$1 = (http, params) => get$
|
|
11342
|
+
const getTotal$1 = (http, params) => get$14(http, `${basePath$1(params.organizationId)}/total`);
|
|
11377
11343
|
function cursorBasedCollection(path, params) {
|
|
11378
11344
|
return params.query?.pageUrl
|
|
11379
11345
|
? { url: params.query?.pageUrl }
|
|
@@ -11385,36 +11351,36 @@ var contentfulManagement = (function (exports) {
|
|
|
11385
11351
|
|
|
11386
11352
|
var Concept = /*#__PURE__*/Object.freeze({
|
|
11387
11353
|
__proto__: null,
|
|
11388
|
-
create: create$
|
|
11354
|
+
create: create$p,
|
|
11389
11355
|
createWithId: createWithId$b,
|
|
11390
|
-
del: del$
|
|
11391
|
-
get: get$
|
|
11356
|
+
del: del$r,
|
|
11357
|
+
get: get$I,
|
|
11392
11358
|
getAncestors: getAncestors,
|
|
11393
11359
|
getDescendants: getDescendants,
|
|
11394
|
-
getMany: getMany$
|
|
11360
|
+
getMany: getMany$A,
|
|
11395
11361
|
getTotal: getTotal$1,
|
|
11396
11362
|
patch: patch$4,
|
|
11397
|
-
update: update$
|
|
11363
|
+
update: update$r
|
|
11398
11364
|
});
|
|
11399
11365
|
|
|
11400
11366
|
function basePath(orgId) {
|
|
11401
11367
|
return `/organizations/${orgId}/taxonomy/concept-schemes`;
|
|
11402
11368
|
}
|
|
11403
|
-
const get$
|
|
11404
|
-
const del$
|
|
11369
|
+
const get$H = (http, params) => get$14(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`);
|
|
11370
|
+
const del$q = (http, params, headers) => del$H(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`, {
|
|
11405
11371
|
headers: {
|
|
11406
11372
|
'X-Contentful-Version': params.version,
|
|
11407
11373
|
...headers,
|
|
11408
11374
|
},
|
|
11409
11375
|
});
|
|
11410
|
-
const getMany$
|
|
11376
|
+
const getMany$z = (http, params) => {
|
|
11411
11377
|
const url = params.query?.pageUrl ?? basePath(params.organizationId);
|
|
11412
|
-
return get$
|
|
11378
|
+
return get$14(http, url, {
|
|
11413
11379
|
params: params.query?.pageUrl ? undefined : params.query,
|
|
11414
11380
|
});
|
|
11415
11381
|
};
|
|
11416
|
-
const getTotal = (http, params) => get$
|
|
11417
|
-
const create$
|
|
11382
|
+
const getTotal = (http, params) => get$14(http, `${basePath(params.organizationId)}/total`);
|
|
11383
|
+
const create$o = (http, params, data) => {
|
|
11418
11384
|
return post$1(http, basePath(params.organizationId), data);
|
|
11419
11385
|
};
|
|
11420
11386
|
const createWithId$a = (http, params, data) => {
|
|
@@ -11429,7 +11395,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11429
11395
|
},
|
|
11430
11396
|
});
|
|
11431
11397
|
};
|
|
11432
|
-
const update$
|
|
11398
|
+
const update$q = (http, params, data, headers) => {
|
|
11433
11399
|
return put$1(http, `${basePath(params.organizationId)}/${params.conceptSchemeId}`, data, {
|
|
11434
11400
|
headers: {
|
|
11435
11401
|
'X-Contentful-Version': params.version,
|
|
@@ -11440,39 +11406,46 @@ var contentfulManagement = (function (exports) {
|
|
|
11440
11406
|
|
|
11441
11407
|
var ConceptScheme = /*#__PURE__*/Object.freeze({
|
|
11442
11408
|
__proto__: null,
|
|
11443
|
-
create: create$
|
|
11409
|
+
create: create$o,
|
|
11444
11410
|
createWithId: createWithId$a,
|
|
11445
|
-
del: del$
|
|
11446
|
-
get: get$
|
|
11447
|
-
getMany: getMany$
|
|
11411
|
+
del: del$q,
|
|
11412
|
+
get: get$H,
|
|
11413
|
+
getMany: getMany$z,
|
|
11448
11414
|
getTotal: getTotal,
|
|
11449
11415
|
patch: patch$3,
|
|
11450
|
-
update: update$
|
|
11416
|
+
update: update$q
|
|
11451
11417
|
});
|
|
11452
11418
|
|
|
11453
|
-
const getBaseUrl$
|
|
11454
|
-
const getContentTypeUrl$1 = (params) => getBaseUrl$
|
|
11455
|
-
const get$
|
|
11456
|
-
return get$
|
|
11419
|
+
const getBaseUrl$j = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types`;
|
|
11420
|
+
const getContentTypeUrl$1 = (params) => getBaseUrl$j(params) + `/${params.contentTypeId}`;
|
|
11421
|
+
const get$G = (http, params, headers) => {
|
|
11422
|
+
return get$14(http, getContentTypeUrl$1(params), {
|
|
11457
11423
|
params: normalizeSelect(params.query),
|
|
11458
11424
|
headers,
|
|
11459
11425
|
});
|
|
11460
11426
|
};
|
|
11461
|
-
const getMany$
|
|
11462
|
-
return get$
|
|
11427
|
+
const getMany$y = (http, params, headers) => {
|
|
11428
|
+
return get$14(http, getBaseUrl$j(params), {
|
|
11463
11429
|
params: params.query,
|
|
11464
11430
|
headers,
|
|
11465
11431
|
});
|
|
11466
11432
|
};
|
|
11467
|
-
const
|
|
11433
|
+
const getManyWithCursor$1 = (http, params, headers) => {
|
|
11434
|
+
return get$14(http, getBaseUrl$j(params), {
|
|
11435
|
+
params: { cursor: true, ...(params.query ?? {}) },
|
|
11436
|
+
headers,
|
|
11437
|
+
})
|
|
11438
|
+
.then(normalizeCursorPaginationResponse);
|
|
11439
|
+
};
|
|
11440
|
+
const create$n = (http, params, rawData, headers) => {
|
|
11468
11441
|
const data = index$2(rawData);
|
|
11469
|
-
return post$1(http, getBaseUrl$
|
|
11442
|
+
return post$1(http, getBaseUrl$j(params), data, { headers });
|
|
11470
11443
|
};
|
|
11471
11444
|
const createWithId$9 = (http, params, rawData, headers) => {
|
|
11472
11445
|
const data = index$2(rawData);
|
|
11473
11446
|
return put$1(http, getContentTypeUrl$1(params), data, { headers });
|
|
11474
11447
|
};
|
|
11475
|
-
const update$
|
|
11448
|
+
const update$p = (http, params, rawData, headers) => {
|
|
11476
11449
|
const data = index$2(rawData);
|
|
11477
11450
|
delete data.sys;
|
|
11478
11451
|
return put$1(http, getContentTypeUrl$1(params), data, {
|
|
@@ -11482,10 +11455,10 @@ var contentfulManagement = (function (exports) {
|
|
|
11482
11455
|
},
|
|
11483
11456
|
});
|
|
11484
11457
|
};
|
|
11485
|
-
const del$
|
|
11486
|
-
return del$
|
|
11458
|
+
const del$p = (http, params, headers) => {
|
|
11459
|
+
return del$H(http, getContentTypeUrl$1(params), { headers });
|
|
11487
11460
|
};
|
|
11488
|
-
const publish$
|
|
11461
|
+
const publish$2 = (http, params, rawData, headers) => {
|
|
11489
11462
|
return put$1(http, getContentTypeUrl$1(params) + '/published', null, {
|
|
11490
11463
|
headers: {
|
|
11491
11464
|
'X-Contentful-Version': rawData.sys.version,
|
|
@@ -11493,103 +11466,34 @@ var contentfulManagement = (function (exports) {
|
|
|
11493
11466
|
},
|
|
11494
11467
|
});
|
|
11495
11468
|
};
|
|
11496
|
-
const unpublish$
|
|
11497
|
-
return del$
|
|
11469
|
+
const unpublish$2 = (http, params, headers) => {
|
|
11470
|
+
return del$H(http, getContentTypeUrl$1(params) + '/published', { headers });
|
|
11498
11471
|
};
|
|
11499
11472
|
|
|
11500
11473
|
var ContentType = /*#__PURE__*/Object.freeze({
|
|
11501
11474
|
__proto__: null,
|
|
11502
|
-
create: create$
|
|
11475
|
+
create: create$n,
|
|
11503
11476
|
createWithId: createWithId$9,
|
|
11504
|
-
del: del$
|
|
11505
|
-
get: get$
|
|
11506
|
-
getMany: getMany$
|
|
11507
|
-
|
|
11508
|
-
|
|
11509
|
-
|
|
11510
|
-
});
|
|
11511
|
-
|
|
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
|
-
});
|
|
11524
|
-
};
|
|
11525
|
-
const create$q = (http, params, rawData, headers) => {
|
|
11526
|
-
const data = index$2(rawData);
|
|
11527
|
-
return post$1(http, getBaseUrl$m(params), data, { headers });
|
|
11528
|
-
};
|
|
11529
|
-
const update$p = (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,
|
|
11477
|
+
del: del$p,
|
|
11478
|
+
get: get$G,
|
|
11479
|
+
getMany: getMany$y,
|
|
11480
|
+
getManyWithCursor: getManyWithCursor$1,
|
|
11481
|
+
publish: publish$2,
|
|
11482
|
+
unpublish: unpublish$2,
|
|
11579
11483
|
update: update$p
|
|
11580
11484
|
});
|
|
11581
11485
|
|
|
11582
|
-
const getBaseUrl$
|
|
11583
|
-
const get$
|
|
11584
|
-
return get$
|
|
11486
|
+
const getBaseUrl$i = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/editor_interface`;
|
|
11487
|
+
const get$F = (http, params) => {
|
|
11488
|
+
return get$14(http, getBaseUrl$i(params));
|
|
11585
11489
|
};
|
|
11586
|
-
const getMany$
|
|
11587
|
-
return get$
|
|
11490
|
+
const getMany$x = (http, params) => {
|
|
11491
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/editor_interfaces`);
|
|
11588
11492
|
};
|
|
11589
11493
|
const update$o = (http, params, rawData, headers) => {
|
|
11590
11494
|
const data = index$2(rawData);
|
|
11591
11495
|
delete data.sys;
|
|
11592
|
-
return put$1(http, getBaseUrl$
|
|
11496
|
+
return put$1(http, getBaseUrl$i(params), data, {
|
|
11593
11497
|
headers: {
|
|
11594
11498
|
'X-Contentful-Version': rawData.sys.version ?? 0,
|
|
11595
11499
|
...headers,
|
|
@@ -11599,31 +11503,31 @@ var contentfulManagement = (function (exports) {
|
|
|
11599
11503
|
|
|
11600
11504
|
var EditorInterface = /*#__PURE__*/Object.freeze({
|
|
11601
11505
|
__proto__: null,
|
|
11602
|
-
get: get$
|
|
11603
|
-
getMany: getMany$
|
|
11506
|
+
get: get$F,
|
|
11507
|
+
getMany: getMany$x,
|
|
11604
11508
|
update: update$o
|
|
11605
11509
|
});
|
|
11606
11510
|
|
|
11607
|
-
const getBaseUrl$
|
|
11608
|
-
const getMany$
|
|
11609
|
-
return get$
|
|
11511
|
+
const getBaseUrl$h = (params) => `/spaces/${params.spaceId}/eligible_licenses`;
|
|
11512
|
+
const getMany$w = (http, params) => {
|
|
11513
|
+
return get$14(http, getBaseUrl$h(params), {
|
|
11610
11514
|
params: params.query,
|
|
11611
11515
|
});
|
|
11612
11516
|
};
|
|
11613
11517
|
|
|
11614
11518
|
var EligibleLicense = /*#__PURE__*/Object.freeze({
|
|
11615
11519
|
__proto__: null,
|
|
11616
|
-
getMany: getMany$
|
|
11520
|
+
getMany: getMany$w
|
|
11617
11521
|
});
|
|
11618
11522
|
|
|
11619
|
-
const get$
|
|
11620
|
-
return get$
|
|
11523
|
+
const get$E = (http, params, rawData, headers) => {
|
|
11524
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries/${params.entryId}`, {
|
|
11621
11525
|
params: normalizeSelect(params.query),
|
|
11622
11526
|
headers: { ...headers },
|
|
11623
11527
|
});
|
|
11624
11528
|
};
|
|
11625
|
-
const getMany$
|
|
11626
|
-
return get$
|
|
11529
|
+
const getMany$v = (http, params, rawData, headers) => {
|
|
11530
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, {
|
|
11627
11531
|
params: normalizeSelect(params.query),
|
|
11628
11532
|
headers: { ...headers },
|
|
11629
11533
|
});
|
|
@@ -11647,7 +11551,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11647
11551
|
},
|
|
11648
11552
|
});
|
|
11649
11553
|
};
|
|
11650
|
-
const create$
|
|
11554
|
+
const create$m = (http, params, rawData, headers) => {
|
|
11651
11555
|
const data = index$2(rawData);
|
|
11652
11556
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/entries`, data, {
|
|
11653
11557
|
headers: {
|
|
@@ -11668,38 +11572,48 @@ var contentfulManagement = (function (exports) {
|
|
|
11668
11572
|
|
|
11669
11573
|
var ReleaseEntry = /*#__PURE__*/Object.freeze({
|
|
11670
11574
|
__proto__: null,
|
|
11671
|
-
create: create$
|
|
11575
|
+
create: create$m,
|
|
11672
11576
|
createWithId: createWithId$8,
|
|
11673
|
-
get: get$
|
|
11674
|
-
getMany: getMany$
|
|
11577
|
+
get: get$E,
|
|
11578
|
+
getMany: getMany$v,
|
|
11675
11579
|
patch: patch$2,
|
|
11676
11580
|
update: update$n
|
|
11677
11581
|
});
|
|
11678
11582
|
|
|
11679
|
-
const get$
|
|
11583
|
+
const get$D = (http, params, rawData, headers) => {
|
|
11680
11584
|
if (params.releaseId) {
|
|
11681
|
-
return get$
|
|
11585
|
+
return get$E(http, params);
|
|
11682
11586
|
}
|
|
11683
|
-
return get$
|
|
11587
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`, {
|
|
11684
11588
|
params: normalizeSelect(params.query),
|
|
11685
11589
|
headers: { ...headers },
|
|
11686
11590
|
});
|
|
11687
11591
|
};
|
|
11688
11592
|
const getPublished = (http, params, rawData, headers) => {
|
|
11689
|
-
return get$
|
|
11593
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/public/entries`, {
|
|
11690
11594
|
params: normalizeSelect(params.query),
|
|
11691
11595
|
headers: { ...headers },
|
|
11692
11596
|
});
|
|
11693
11597
|
};
|
|
11694
|
-
const getMany$
|
|
11598
|
+
const getMany$u = (http, params, rawData, headers) => {
|
|
11695
11599
|
if (params.releaseId) {
|
|
11696
|
-
return getMany$
|
|
11600
|
+
return getMany$v(http, params);
|
|
11697
11601
|
}
|
|
11698
|
-
return get$
|
|
11602
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, {
|
|
11699
11603
|
params: normalizeSelect(params.query),
|
|
11700
11604
|
headers: { ...headers },
|
|
11701
11605
|
});
|
|
11702
11606
|
};
|
|
11607
|
+
const getManyWithCursor = (http, params, rawData, headers) => {
|
|
11608
|
+
if (params.releaseId) {
|
|
11609
|
+
throw new Error('getManyWithCursor is not supported for release-scoped entries');
|
|
11610
|
+
}
|
|
11611
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, {
|
|
11612
|
+
params: { cursor: true, ...(params.query ?? {}) },
|
|
11613
|
+
headers: { ...headers },
|
|
11614
|
+
})
|
|
11615
|
+
.then(normalizeCursorPaginationResponse);
|
|
11616
|
+
};
|
|
11703
11617
|
const patch$1 = (http, params, data, headers) => {
|
|
11704
11618
|
if (params.releaseId) {
|
|
11705
11619
|
return patch$2(http, params, data, headers ?? {});
|
|
@@ -11725,10 +11639,10 @@ var contentfulManagement = (function (exports) {
|
|
|
11725
11639
|
},
|
|
11726
11640
|
});
|
|
11727
11641
|
};
|
|
11728
|
-
const del$
|
|
11729
|
-
return del$
|
|
11642
|
+
const del$o = (http, params) => {
|
|
11643
|
+
return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}`);
|
|
11730
11644
|
};
|
|
11731
|
-
const publish$
|
|
11645
|
+
const publish$1 = (http, params, rawData) => {
|
|
11732
11646
|
const payload = params.locales?.length ? { add: { fields: { '*': params.locales } } } : null;
|
|
11733
11647
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`, payload, {
|
|
11734
11648
|
headers: {
|
|
@@ -11736,7 +11650,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11736
11650
|
},
|
|
11737
11651
|
});
|
|
11738
11652
|
};
|
|
11739
|
-
const unpublish$
|
|
11653
|
+
const unpublish$1 = (http, params, rawData) => {
|
|
11740
11654
|
if (params.locales?.length) {
|
|
11741
11655
|
const payload = { remove: { fields: { '*': params.locales } } };
|
|
11742
11656
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`, payload, {
|
|
@@ -11746,18 +11660,18 @@ var contentfulManagement = (function (exports) {
|
|
|
11746
11660
|
});
|
|
11747
11661
|
}
|
|
11748
11662
|
else {
|
|
11749
|
-
return del$
|
|
11663
|
+
return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/published`);
|
|
11750
11664
|
}
|
|
11751
11665
|
};
|
|
11752
11666
|
const archive$1 = (http, params) => {
|
|
11753
11667
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
|
|
11754
11668
|
};
|
|
11755
11669
|
const unarchive$2 = (http, params) => {
|
|
11756
|
-
return del$
|
|
11670
|
+
return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/archived`);
|
|
11757
11671
|
};
|
|
11758
|
-
const create$
|
|
11672
|
+
const create$l = (http, params, rawData) => {
|
|
11759
11673
|
if (params.releaseId) {
|
|
11760
|
-
return create$
|
|
11674
|
+
return create$m(http, params, rawData, {});
|
|
11761
11675
|
}
|
|
11762
11676
|
const data = index$2(rawData);
|
|
11763
11677
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/entries`, data, {
|
|
@@ -11780,31 +11694,32 @@ var contentfulManagement = (function (exports) {
|
|
|
11780
11694
|
const references = (http, params) => {
|
|
11781
11695
|
const { spaceId, environmentId, entryId, include } = params;
|
|
11782
11696
|
const level = include || 2;
|
|
11783
|
-
return get$
|
|
11697
|
+
return get$14(http, `/spaces/${spaceId}/environments/${environmentId}/entries/${entryId}/references?include=${level}`);
|
|
11784
11698
|
};
|
|
11785
11699
|
|
|
11786
11700
|
var Entry = /*#__PURE__*/Object.freeze({
|
|
11787
11701
|
__proto__: null,
|
|
11788
11702
|
archive: archive$1,
|
|
11789
|
-
create: create$
|
|
11703
|
+
create: create$l,
|
|
11790
11704
|
createWithId: createWithId$7,
|
|
11791
|
-
del: del$
|
|
11792
|
-
get: get$
|
|
11793
|
-
getMany: getMany$
|
|
11705
|
+
del: del$o,
|
|
11706
|
+
get: get$D,
|
|
11707
|
+
getMany: getMany$u,
|
|
11708
|
+
getManyWithCursor: getManyWithCursor,
|
|
11794
11709
|
getPublished: getPublished,
|
|
11795
11710
|
patch: patch$1,
|
|
11796
|
-
publish: publish$
|
|
11711
|
+
publish: publish$1,
|
|
11797
11712
|
references: references,
|
|
11798
11713
|
unarchive: unarchive$2,
|
|
11799
|
-
unpublish: unpublish$
|
|
11714
|
+
unpublish: unpublish$1,
|
|
11800
11715
|
update: update$m
|
|
11801
11716
|
});
|
|
11802
11717
|
|
|
11803
|
-
const get$
|
|
11804
|
-
return get$
|
|
11718
|
+
const get$C = (http, params) => {
|
|
11719
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
|
|
11805
11720
|
};
|
|
11806
|
-
const getMany$
|
|
11807
|
-
return get$
|
|
11721
|
+
const getMany$t = (http, params) => {
|
|
11722
|
+
return get$14(http, `/spaces/${params.spaceId}/environments`, {
|
|
11808
11723
|
params: params.query,
|
|
11809
11724
|
});
|
|
11810
11725
|
};
|
|
@@ -11818,10 +11733,10 @@ var contentfulManagement = (function (exports) {
|
|
|
11818
11733
|
},
|
|
11819
11734
|
});
|
|
11820
11735
|
};
|
|
11821
|
-
const del$
|
|
11822
|
-
return del$
|
|
11736
|
+
const del$n = (http, params) => {
|
|
11737
|
+
return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}`);
|
|
11823
11738
|
};
|
|
11824
|
-
const create$
|
|
11739
|
+
const create$k = (http, params, rawData, headers) => {
|
|
11825
11740
|
const data = index$2(rawData);
|
|
11826
11741
|
return post$1(http, `/spaces/${params.spaceId}/environments`, data, {
|
|
11827
11742
|
headers,
|
|
@@ -11843,27 +11758,27 @@ var contentfulManagement = (function (exports) {
|
|
|
11843
11758
|
|
|
11844
11759
|
var Environment = /*#__PURE__*/Object.freeze({
|
|
11845
11760
|
__proto__: null,
|
|
11846
|
-
create: create$
|
|
11761
|
+
create: create$k,
|
|
11847
11762
|
createWithId: createWithId$6,
|
|
11848
|
-
del: del$
|
|
11849
|
-
get: get$
|
|
11850
|
-
getMany: getMany$
|
|
11763
|
+
del: del$n,
|
|
11764
|
+
get: get$C,
|
|
11765
|
+
getMany: getMany$t,
|
|
11851
11766
|
update: update$l
|
|
11852
11767
|
});
|
|
11853
11768
|
|
|
11854
11769
|
/**
|
|
11855
11770
|
* Urls
|
|
11856
11771
|
*/
|
|
11857
|
-
const getBaseUrl$
|
|
11858
|
-
const getEnvironmentAliasUrl = (params) => getBaseUrl$
|
|
11772
|
+
const getBaseUrl$g = (params) => `/spaces/${params.spaceId}/environment_aliases`;
|
|
11773
|
+
const getEnvironmentAliasUrl = (params) => getBaseUrl$g(params) + `/${params.environmentAliasId}`;
|
|
11859
11774
|
/**
|
|
11860
11775
|
* Endpoints
|
|
11861
11776
|
*/
|
|
11862
|
-
const get$
|
|
11863
|
-
return get$
|
|
11777
|
+
const get$B = (http, params) => {
|
|
11778
|
+
return get$14(http, getEnvironmentAliasUrl(params));
|
|
11864
11779
|
};
|
|
11865
|
-
const getMany$
|
|
11866
|
-
return get$
|
|
11780
|
+
const getMany$s = (http, params) => {
|
|
11781
|
+
return get$14(http, getBaseUrl$g(params), {
|
|
11867
11782
|
params: params.query,
|
|
11868
11783
|
});
|
|
11869
11784
|
};
|
|
@@ -11883,31 +11798,31 @@ var contentfulManagement = (function (exports) {
|
|
|
11883
11798
|
},
|
|
11884
11799
|
});
|
|
11885
11800
|
};
|
|
11886
|
-
const del$
|
|
11887
|
-
return del$
|
|
11801
|
+
const del$m = (http, params) => {
|
|
11802
|
+
return del$H(http, getEnvironmentAliasUrl(params));
|
|
11888
11803
|
};
|
|
11889
11804
|
|
|
11890
11805
|
var EnvironmentAlias = /*#__PURE__*/Object.freeze({
|
|
11891
11806
|
__proto__: null,
|
|
11892
11807
|
createWithId: createWithId$5,
|
|
11893
|
-
del: del$
|
|
11894
|
-
get: get$
|
|
11895
|
-
getMany: getMany$
|
|
11808
|
+
del: del$m,
|
|
11809
|
+
get: get$B,
|
|
11810
|
+
getMany: getMany$s,
|
|
11896
11811
|
update: update$k
|
|
11897
11812
|
});
|
|
11898
11813
|
|
|
11899
11814
|
const apiPath$1 = (organizationId, ...pathSegments) => `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/');
|
|
11900
|
-
const get$
|
|
11901
|
-
? get$
|
|
11815
|
+
const get$A = (http, { organizationId, environmentTemplateId, version, query = {} }, headers) => version
|
|
11816
|
+
? get$14(http, apiPath$1(organizationId, environmentTemplateId, 'versions', version), {
|
|
11902
11817
|
params: query,
|
|
11903
11818
|
headers,
|
|
11904
11819
|
})
|
|
11905
|
-
: get$
|
|
11820
|
+
: get$14(http, apiPath$1(organizationId, environmentTemplateId), {
|
|
11906
11821
|
params: query,
|
|
11907
11822
|
headers,
|
|
11908
11823
|
});
|
|
11909
|
-
const getMany$
|
|
11910
|
-
const create$
|
|
11824
|
+
const getMany$r = (http, { organizationId, query = {} }, headers) => get$14(http, apiPath$1(organizationId), { params: query, headers });
|
|
11825
|
+
const create$j = (http, { organizationId }, payload, headers) => post$1(http, apiPath$1(organizationId), payload, { headers });
|
|
11911
11826
|
const update$j = (http, { organizationId, environmentTemplateId }, payload, headers) => {
|
|
11912
11827
|
const data = index$2(payload);
|
|
11913
11828
|
delete data.sys;
|
|
@@ -11921,8 +11836,8 @@ var contentfulManagement = (function (exports) {
|
|
|
11921
11836
|
const versionUpdate = (http, { organizationId, version, environmentTemplateId }, payload, headers) => patch$5(http, apiPath$1(organizationId, environmentTemplateId, 'versions', version), payload, {
|
|
11922
11837
|
headers,
|
|
11923
11838
|
});
|
|
11924
|
-
const del$
|
|
11925
|
-
const versions = (http, { organizationId, environmentTemplateId, query = {} }, headers) => get$
|
|
11839
|
+
const del$l = (http, { organizationId, environmentTemplateId }, headers) => del$H(http, apiPath$1(organizationId, environmentTemplateId), { headers });
|
|
11840
|
+
const versions = (http, { organizationId, environmentTemplateId, query = {} }, headers) => get$14(http, apiPath$1(organizationId, environmentTemplateId, 'versions'), {
|
|
11926
11841
|
params: query,
|
|
11927
11842
|
headers,
|
|
11928
11843
|
});
|
|
@@ -11930,15 +11845,15 @@ var contentfulManagement = (function (exports) {
|
|
|
11930
11845
|
? `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions/${version}/validated`
|
|
11931
11846
|
: `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/validated`, payload, { headers });
|
|
11932
11847
|
const install = (http, { spaceId, environmentId, environmentTemplateId }, payload, headers) => post$1(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}/versions`, payload, { headers });
|
|
11933
|
-
const disconnect = (http, { spaceId, environmentId, environmentTemplateId }, headers) => del$
|
|
11848
|
+
const disconnect = (http, { spaceId, environmentId, environmentTemplateId }, headers) => del$H(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, { headers });
|
|
11934
11849
|
|
|
11935
11850
|
var EnvironmentTemplate = /*#__PURE__*/Object.freeze({
|
|
11936
11851
|
__proto__: null,
|
|
11937
|
-
create: create$
|
|
11938
|
-
del: del$
|
|
11852
|
+
create: create$j,
|
|
11853
|
+
del: del$l,
|
|
11939
11854
|
disconnect: disconnect,
|
|
11940
|
-
get: get$
|
|
11941
|
-
getMany: getMany$
|
|
11855
|
+
get: get$A,
|
|
11856
|
+
getMany: getMany$r,
|
|
11942
11857
|
install: install,
|
|
11943
11858
|
update: update$j,
|
|
11944
11859
|
validate: validate$1,
|
|
@@ -11947,7 +11862,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11947
11862
|
});
|
|
11948
11863
|
|
|
11949
11864
|
const apiPath = (organizationId, ...pathSegments) => `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/');
|
|
11950
|
-
const getMany$
|
|
11865
|
+
const getMany$q = (http, { organizationId, environmentTemplateId, spaceId, environmentId, ...otherProps }, headers) => get$14(http, apiPath(organizationId, environmentTemplateId, 'template_installations'), {
|
|
11951
11866
|
params: {
|
|
11952
11867
|
...otherProps,
|
|
11953
11868
|
...(environmentId && { 'environment.sys.id': environmentId }),
|
|
@@ -11955,7 +11870,7 @@ var contentfulManagement = (function (exports) {
|
|
|
11955
11870
|
},
|
|
11956
11871
|
headers,
|
|
11957
11872
|
});
|
|
11958
|
-
const getForEnvironment$1 = (http, { spaceId, environmentId, environmentTemplateId, installationId, ...paginationProps }, headers) => get$
|
|
11873
|
+
const getForEnvironment$1 = (http, { spaceId, environmentId, environmentTemplateId, installationId, ...paginationProps }, headers) => get$14(http, `/spaces/${spaceId}/environments/${environmentId}/template_installations/${environmentTemplateId}`, {
|
|
11959
11874
|
params: {
|
|
11960
11875
|
...(installationId && { 'sys.id': installationId }),
|
|
11961
11876
|
...paginationProps,
|
|
@@ -11966,23 +11881,23 @@ var contentfulManagement = (function (exports) {
|
|
|
11966
11881
|
var EnvironmentTemplateInstallation = /*#__PURE__*/Object.freeze({
|
|
11967
11882
|
__proto__: null,
|
|
11968
11883
|
getForEnvironment: getForEnvironment$1,
|
|
11969
|
-
getMany: getMany$
|
|
11884
|
+
getMany: getMany$q
|
|
11970
11885
|
});
|
|
11971
11886
|
|
|
11972
|
-
const getBaseUrl$
|
|
11973
|
-
const getExtensionUrl = (params) => getBaseUrl$
|
|
11974
|
-
const get$
|
|
11975
|
-
return get$
|
|
11887
|
+
const getBaseUrl$f = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/extensions`;
|
|
11888
|
+
const getExtensionUrl = (params) => getBaseUrl$f(params) + `/${params.extensionId}`;
|
|
11889
|
+
const get$z = (http, params) => {
|
|
11890
|
+
return get$14(http, getExtensionUrl(params), {
|
|
11976
11891
|
params: normalizeSelect(params.query),
|
|
11977
11892
|
});
|
|
11978
11893
|
};
|
|
11979
|
-
const getMany$
|
|
11980
|
-
return get$
|
|
11894
|
+
const getMany$p = (http, params) => {
|
|
11895
|
+
return get$14(http, getBaseUrl$f(params), {
|
|
11981
11896
|
params: normalizeSelect(params.query),
|
|
11982
11897
|
});
|
|
11983
11898
|
};
|
|
11984
|
-
const create$
|
|
11985
|
-
return post$1(http, getBaseUrl$
|
|
11899
|
+
const create$i = (http, params, rawData, headers) => {
|
|
11900
|
+
return post$1(http, getBaseUrl$f(params), rawData, { headers });
|
|
11986
11901
|
};
|
|
11987
11902
|
const createWithId$4 = (http, params, rawData, headers) => {
|
|
11988
11903
|
const data = index$2(rawData);
|
|
@@ -11998,99 +11913,43 @@ var contentfulManagement = (function (exports) {
|
|
|
11998
11913
|
},
|
|
11999
11914
|
});
|
|
12000
11915
|
};
|
|
12001
|
-
const del$
|
|
12002
|
-
return del$
|
|
11916
|
+
const del$k = (http, params) => {
|
|
11917
|
+
return del$H(http, getExtensionUrl(params));
|
|
12003
11918
|
};
|
|
12004
11919
|
|
|
12005
11920
|
var Extension = /*#__PURE__*/Object.freeze({
|
|
12006
11921
|
__proto__: null,
|
|
12007
|
-
create: create$
|
|
11922
|
+
create: create$i,
|
|
12008
11923
|
createWithId: createWithId$4,
|
|
12009
|
-
del: del$
|
|
12010
|
-
get: get$
|
|
11924
|
+
del: del$k,
|
|
11925
|
+
get: get$z,
|
|
12011
11926
|
getExtensionUrl: getExtensionUrl,
|
|
12012
|
-
getMany: getMany$
|
|
11927
|
+
getMany: getMany$p,
|
|
12013
11928
|
update: update$i
|
|
12014
11929
|
});
|
|
12015
11930
|
|
|
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 upsert$4 = (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,
|
|
12069
|
-
upsert: upsert$4
|
|
12070
|
-
});
|
|
12071
|
-
|
|
12072
11931
|
// Base URL
|
|
12073
11932
|
const getManyUrl = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/functions`;
|
|
12074
11933
|
const getFunctionUrl = (params) => `${getManyUrl(params)}/${params.functionId}`;
|
|
12075
11934
|
const getFunctionsEnvURL = (params) => {
|
|
12076
11935
|
return `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions`;
|
|
12077
11936
|
};
|
|
12078
|
-
const get$
|
|
12079
|
-
return get$
|
|
11937
|
+
const get$y = (http, params) => {
|
|
11938
|
+
return get$14(http, getFunctionUrl(params));
|
|
12080
11939
|
};
|
|
12081
|
-
const getMany$
|
|
12082
|
-
return get$
|
|
11940
|
+
const getMany$o = (http, params) => {
|
|
11941
|
+
return get$14(http, getManyUrl(params), { params: params.query });
|
|
12083
11942
|
};
|
|
12084
11943
|
const getManyForEnvironment$1 = (http, params) => {
|
|
12085
|
-
return get$
|
|
11944
|
+
return get$14(http, getFunctionsEnvURL(params), {
|
|
12086
11945
|
params: params.query,
|
|
12087
11946
|
});
|
|
12088
11947
|
};
|
|
12089
11948
|
|
|
12090
11949
|
var Function$1 = /*#__PURE__*/Object.freeze({
|
|
12091
11950
|
__proto__: null,
|
|
12092
|
-
get: get$
|
|
12093
|
-
getMany: getMany$
|
|
11951
|
+
get: get$y,
|
|
11952
|
+
getMany: getMany$o,
|
|
12094
11953
|
getManyForEnvironment: getManyForEnvironment$1
|
|
12095
11954
|
});
|
|
12096
11955
|
|
|
@@ -12099,15 +11958,15 @@ var contentfulManagement = (function (exports) {
|
|
|
12099
11958
|
};
|
|
12100
11959
|
const baseURL = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs`;
|
|
12101
11960
|
const getURL = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs/${params.logId}`;
|
|
12102
|
-
const get$
|
|
12103
|
-
return get$
|
|
11961
|
+
const get$x = (http, params) => {
|
|
11962
|
+
return get$14(http, getURL(params), {
|
|
12104
11963
|
headers: {
|
|
12105
11964
|
...FunctionLogAlphaHeaders,
|
|
12106
11965
|
},
|
|
12107
11966
|
});
|
|
12108
11967
|
};
|
|
12109
|
-
const getMany$
|
|
12110
|
-
return get$
|
|
11968
|
+
const getMany$n = (http, params) => {
|
|
11969
|
+
return get$14(http, baseURL(params), {
|
|
12111
11970
|
params: params.query,
|
|
12112
11971
|
headers: {
|
|
12113
11972
|
...FunctionLogAlphaHeaders,
|
|
@@ -12117,12 +11976,12 @@ var contentfulManagement = (function (exports) {
|
|
|
12117
11976
|
|
|
12118
11977
|
var FunctionLog = /*#__PURE__*/Object.freeze({
|
|
12119
11978
|
__proto__: null,
|
|
12120
|
-
get: get$
|
|
12121
|
-
getMany: getMany$
|
|
11979
|
+
get: get$x,
|
|
11980
|
+
getMany: getMany$n
|
|
12122
11981
|
});
|
|
12123
11982
|
|
|
12124
|
-
const get$
|
|
12125
|
-
return get$
|
|
11983
|
+
const get$w = (http, { url, config }) => {
|
|
11984
|
+
return get$14(http, url, config);
|
|
12126
11985
|
};
|
|
12127
11986
|
const post = (http, { url, config }, payload) => {
|
|
12128
11987
|
return post$1(http, url, payload, config);
|
|
@@ -12133,8 +11992,8 @@ var contentfulManagement = (function (exports) {
|
|
|
12133
11992
|
const patch = (http, { url, config }, payload) => {
|
|
12134
11993
|
return patch$5(http, url, payload, config);
|
|
12135
11994
|
};
|
|
12136
|
-
const del$
|
|
12137
|
-
return del$
|
|
11995
|
+
const del$j = (http, { url, config }) => {
|
|
11996
|
+
return del$H(http, url, config);
|
|
12138
11997
|
};
|
|
12139
11998
|
const request = (http$1, { url, config }) => {
|
|
12140
11999
|
return http(http$1, url, config);
|
|
@@ -12142,23 +12001,23 @@ var contentfulManagement = (function (exports) {
|
|
|
12142
12001
|
|
|
12143
12002
|
var Http = /*#__PURE__*/Object.freeze({
|
|
12144
12003
|
__proto__: null,
|
|
12145
|
-
del: del$
|
|
12146
|
-
get: get$
|
|
12004
|
+
del: del$j,
|
|
12005
|
+
get: get$w,
|
|
12147
12006
|
patch: patch,
|
|
12148
12007
|
post: post,
|
|
12149
12008
|
put: put,
|
|
12150
12009
|
request: request
|
|
12151
12010
|
});
|
|
12152
12011
|
|
|
12153
|
-
const get$
|
|
12154
|
-
return get$
|
|
12012
|
+
const get$v = (http, params) => {
|
|
12013
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
|
|
12155
12014
|
};
|
|
12156
|
-
const getMany$
|
|
12157
|
-
return get$
|
|
12015
|
+
const getMany$m = (http, params) => {
|
|
12016
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, {
|
|
12158
12017
|
params: normalizeSelect(params.query),
|
|
12159
12018
|
});
|
|
12160
12019
|
};
|
|
12161
|
-
const create$
|
|
12020
|
+
const create$h = (http, params, data, headers) => {
|
|
12162
12021
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales`, data, {
|
|
12163
12022
|
headers,
|
|
12164
12023
|
});
|
|
@@ -12174,26 +12033,26 @@ var contentfulManagement = (function (exports) {
|
|
|
12174
12033
|
},
|
|
12175
12034
|
});
|
|
12176
12035
|
};
|
|
12177
|
-
const del$
|
|
12178
|
-
return del$
|
|
12036
|
+
const del$i = (http, params) => {
|
|
12037
|
+
return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/locales/${params.localeId}`);
|
|
12179
12038
|
};
|
|
12180
12039
|
|
|
12181
12040
|
var Locale = /*#__PURE__*/Object.freeze({
|
|
12182
12041
|
__proto__: null,
|
|
12183
|
-
create: create$
|
|
12184
|
-
del: del$
|
|
12185
|
-
get: get$
|
|
12186
|
-
getMany: getMany$
|
|
12042
|
+
create: create$h,
|
|
12043
|
+
del: del$i,
|
|
12044
|
+
get: get$v,
|
|
12045
|
+
getMany: getMany$m,
|
|
12187
12046
|
update: update$h
|
|
12188
12047
|
});
|
|
12189
12048
|
|
|
12190
|
-
const getMany$
|
|
12191
|
-
return get$
|
|
12049
|
+
const getMany$l = (http, params) => {
|
|
12050
|
+
return get$14(http, `/organizations`, {
|
|
12192
12051
|
params: params?.query,
|
|
12193
12052
|
});
|
|
12194
12053
|
};
|
|
12195
|
-
const get$
|
|
12196
|
-
return getMany$
|
|
12054
|
+
const get$u = (http, params) => {
|
|
12055
|
+
return getMany$l(http, { query: { limit: 100 } }).then((data) => {
|
|
12197
12056
|
const org = data.items.find((org) => org.sys.id === params.organizationId);
|
|
12198
12057
|
if (!org) {
|
|
12199
12058
|
const error = new Error(`No organization was found with the ID ${params.organizationId} instead got ${JSON.stringify(data)}`);
|
|
@@ -12211,8 +12070,8 @@ var contentfulManagement = (function (exports) {
|
|
|
12211
12070
|
|
|
12212
12071
|
var Organization = /*#__PURE__*/Object.freeze({
|
|
12213
12072
|
__proto__: null,
|
|
12214
|
-
get: get$
|
|
12215
|
-
getMany: getMany$
|
|
12073
|
+
get: get$u,
|
|
12074
|
+
getMany: getMany$l
|
|
12216
12075
|
});
|
|
12217
12076
|
|
|
12218
12077
|
const OrganizationUserManagementAlphaHeaders = {
|
|
@@ -12221,7 +12080,7 @@ var contentfulManagement = (function (exports) {
|
|
|
12221
12080
|
const InvitationAlphaHeaders = {
|
|
12222
12081
|
'x-contentful-enable-alpha-feature': 'pending-org-membership',
|
|
12223
12082
|
};
|
|
12224
|
-
const create$
|
|
12083
|
+
const create$g = (http, params, data, headers) => {
|
|
12225
12084
|
return post$1(http, `/organizations/${params.organizationId}/invitations`, data, {
|
|
12226
12085
|
headers: {
|
|
12227
12086
|
...InvitationAlphaHeaders,
|
|
@@ -12229,8 +12088,8 @@ var contentfulManagement = (function (exports) {
|
|
|
12229
12088
|
},
|
|
12230
12089
|
});
|
|
12231
12090
|
};
|
|
12232
|
-
const get$
|
|
12233
|
-
return get$
|
|
12091
|
+
const get$t = (http, params, headers) => {
|
|
12092
|
+
return get$14(http, `/organizations/${params.organizationId}/invitations/${params.invitationId}`, {
|
|
12234
12093
|
headers: {
|
|
12235
12094
|
...OrganizationUserManagementAlphaHeaders,
|
|
12236
12095
|
...headers,
|
|
@@ -12240,17 +12099,17 @@ var contentfulManagement = (function (exports) {
|
|
|
12240
12099
|
|
|
12241
12100
|
var OrganizationInvitation = /*#__PURE__*/Object.freeze({
|
|
12242
12101
|
__proto__: null,
|
|
12243
|
-
create: create$
|
|
12244
|
-
get: get$
|
|
12102
|
+
create: create$g,
|
|
12103
|
+
get: get$t
|
|
12245
12104
|
});
|
|
12246
12105
|
|
|
12247
|
-
const getBaseUrl$
|
|
12248
|
-
const getEntityUrl$5 = (params) => `${getBaseUrl$
|
|
12249
|
-
const get$
|
|
12250
|
-
return get$
|
|
12106
|
+
const getBaseUrl$e = (params) => `/organizations/${params.organizationId}/organization_memberships`;
|
|
12107
|
+
const getEntityUrl$5 = (params) => `${getBaseUrl$e(params)}/${params.organizationMembershipId}`;
|
|
12108
|
+
const get$s = (http, params) => {
|
|
12109
|
+
return get$14(http, getEntityUrl$5(params));
|
|
12251
12110
|
};
|
|
12252
|
-
const getMany$
|
|
12253
|
-
return get$
|
|
12111
|
+
const getMany$k = (http, params) => {
|
|
12112
|
+
return get$14(http, getBaseUrl$e(params), {
|
|
12254
12113
|
params: params.query,
|
|
12255
12114
|
});
|
|
12256
12115
|
};
|
|
@@ -12265,15 +12124,15 @@ var contentfulManagement = (function (exports) {
|
|
|
12265
12124
|
},
|
|
12266
12125
|
});
|
|
12267
12126
|
};
|
|
12268
|
-
const del$
|
|
12269
|
-
return del$
|
|
12127
|
+
const del$h = (http, params) => {
|
|
12128
|
+
return del$H(http, getEntityUrl$5(params));
|
|
12270
12129
|
};
|
|
12271
12130
|
|
|
12272
12131
|
var OrganizationMembership = /*#__PURE__*/Object.freeze({
|
|
12273
12132
|
__proto__: null,
|
|
12274
|
-
del: del$
|
|
12275
|
-
get: get$
|
|
12276
|
-
getMany: getMany$
|
|
12133
|
+
del: del$h,
|
|
12134
|
+
get: get$s,
|
|
12135
|
+
getMany: getMany$k,
|
|
12277
12136
|
update: update$g
|
|
12278
12137
|
});
|
|
12279
12138
|
|
|
@@ -12299,8 +12158,8 @@ var contentfulManagement = (function (exports) {
|
|
|
12299
12158
|
* .catch(console.error)
|
|
12300
12159
|
* ```
|
|
12301
12160
|
*/
|
|
12302
|
-
const get$
|
|
12303
|
-
return get$
|
|
12161
|
+
const get$r = (http, params) => {
|
|
12162
|
+
return get$14(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
|
|
12304
12163
|
};
|
|
12305
12164
|
/**
|
|
12306
12165
|
* Retrieves a list of OAuth applications associated with the current user.
|
|
@@ -12325,7 +12184,7 @@ var contentfulManagement = (function (exports) {
|
|
|
12325
12184
|
* ```
|
|
12326
12185
|
*/
|
|
12327
12186
|
const getManyForUser = (http, params) => {
|
|
12328
|
-
return get$
|
|
12187
|
+
return get$14(http, `/users/${params.userId}/oauth_applications`, {
|
|
12329
12188
|
params: params.query,
|
|
12330
12189
|
});
|
|
12331
12190
|
};
|
|
@@ -12354,7 +12213,7 @@ var contentfulManagement = (function (exports) {
|
|
|
12354
12213
|
* .catch(console.error)
|
|
12355
12214
|
* ```
|
|
12356
12215
|
*/
|
|
12357
|
-
const create$
|
|
12216
|
+
const create$f = (http, params, rawData, headers) => {
|
|
12358
12217
|
return post$1(http, `/users/${params.userId}/oauth_applications`, rawData, {
|
|
12359
12218
|
headers,
|
|
12360
12219
|
});
|
|
@@ -12411,15 +12270,15 @@ var contentfulManagement = (function (exports) {
|
|
|
12411
12270
|
* .catch(console.error)
|
|
12412
12271
|
* ```
|
|
12413
12272
|
*/
|
|
12414
|
-
const del$
|
|
12415
|
-
return del$
|
|
12273
|
+
const del$g = (http, params) => {
|
|
12274
|
+
return del$H(http, `/users/${params.userId}/oauth_applications/${params.oauthApplicationId}`);
|
|
12416
12275
|
};
|
|
12417
12276
|
|
|
12418
12277
|
var OAuthApplication = /*#__PURE__*/Object.freeze({
|
|
12419
12278
|
__proto__: null,
|
|
12420
|
-
create: create$
|
|
12421
|
-
del: del$
|
|
12422
|
-
get: get$
|
|
12279
|
+
create: create$f,
|
|
12280
|
+
del: del$g,
|
|
12281
|
+
get: get$r,
|
|
12423
12282
|
getManyForUser: getManyForUser,
|
|
12424
12283
|
update: update$f
|
|
12425
12284
|
});
|
|
@@ -12427,21 +12286,21 @@ var contentfulManagement = (function (exports) {
|
|
|
12427
12286
|
/**
|
|
12428
12287
|
* @deprecated use `access-token.get` instead `personal-access-token.get`
|
|
12429
12288
|
*/
|
|
12430
|
-
const get$
|
|
12431
|
-
return get$
|
|
12289
|
+
const get$q = (http, params) => {
|
|
12290
|
+
return get$14(http, `/users/me/access_tokens/${params.tokenId}`);
|
|
12432
12291
|
};
|
|
12433
12292
|
/**
|
|
12434
12293
|
* @deprecated use `access-token.getMany` instead `personal-access-token.getMany`
|
|
12435
12294
|
*/
|
|
12436
|
-
const getMany$
|
|
12437
|
-
return get$
|
|
12295
|
+
const getMany$j = (http, params) => {
|
|
12296
|
+
return get$14(http, '/users/me/access_tokens', {
|
|
12438
12297
|
params: params.query,
|
|
12439
12298
|
});
|
|
12440
12299
|
};
|
|
12441
12300
|
/**
|
|
12442
12301
|
* @deprecated use `access-token.createPersonalAccessToken` instead. `personal-access-token.create`
|
|
12443
12302
|
*/
|
|
12444
|
-
const create$
|
|
12303
|
+
const create$e = (http, _params, rawData, headers) => {
|
|
12445
12304
|
return post$1(http, '/users/me/access_tokens', rawData, {
|
|
12446
12305
|
headers,
|
|
12447
12306
|
});
|
|
@@ -12455,29 +12314,29 @@ var contentfulManagement = (function (exports) {
|
|
|
12455
12314
|
|
|
12456
12315
|
var PersonalAccessToken = /*#__PURE__*/Object.freeze({
|
|
12457
12316
|
__proto__: null,
|
|
12458
|
-
create: create$
|
|
12459
|
-
get: get$
|
|
12460
|
-
getMany: getMany$
|
|
12317
|
+
create: create$e,
|
|
12318
|
+
get: get$q,
|
|
12319
|
+
getMany: getMany$j,
|
|
12461
12320
|
revoke: revoke
|
|
12462
12321
|
});
|
|
12463
12322
|
|
|
12464
|
-
const get$
|
|
12465
|
-
return get$
|
|
12323
|
+
const get$p = (http, params) => {
|
|
12324
|
+
return get$14(http, `/spaces/${params.spaceId}/preview_api_keys/${params.previewApiKeyId}`);
|
|
12466
12325
|
};
|
|
12467
|
-
const getMany$
|
|
12468
|
-
return get$
|
|
12326
|
+
const getMany$i = (http, params) => {
|
|
12327
|
+
return get$14(http, `/spaces/${params.spaceId}/preview_api_keys`, {
|
|
12469
12328
|
params: params.query,
|
|
12470
12329
|
});
|
|
12471
12330
|
};
|
|
12472
12331
|
|
|
12473
12332
|
var PreviewApiKey = /*#__PURE__*/Object.freeze({
|
|
12474
12333
|
__proto__: null,
|
|
12475
|
-
get: get$
|
|
12476
|
-
getMany: getMany$
|
|
12334
|
+
get: get$p,
|
|
12335
|
+
getMany: getMany$i
|
|
12477
12336
|
});
|
|
12478
12337
|
|
|
12479
|
-
const get$
|
|
12480
|
-
return get$
|
|
12338
|
+
const get$o = (http, params) => {
|
|
12339
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
|
|
12481
12340
|
};
|
|
12482
12341
|
const query = (http, params) => {
|
|
12483
12342
|
// Set the schema version in the query if provided in params or query options
|
|
@@ -12485,11 +12344,11 @@ var contentfulManagement = (function (exports) {
|
|
|
12485
12344
|
if (releaseSchemaVersion !== undefined) {
|
|
12486
12345
|
params.query = { ...params.query, 'sys.schemaVersion': releaseSchemaVersion };
|
|
12487
12346
|
}
|
|
12488
|
-
return get$
|
|
12347
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases`, {
|
|
12489
12348
|
params: params.query,
|
|
12490
12349
|
});
|
|
12491
12350
|
};
|
|
12492
|
-
const create$
|
|
12351
|
+
const create$d = (http, params, payload) => {
|
|
12493
12352
|
const releaseSchemaVersion = payload.sys?.schemaVersion ?? params.releaseSchemaVersion;
|
|
12494
12353
|
if (releaseSchemaVersion === 'Release.v2') {
|
|
12495
12354
|
payload.sys = { ...payload.sys, type: 'Release', schemaVersion: 'Release.v2' };
|
|
@@ -12508,10 +12367,10 @@ var contentfulManagement = (function (exports) {
|
|
|
12508
12367
|
},
|
|
12509
12368
|
});
|
|
12510
12369
|
};
|
|
12511
|
-
const del$
|
|
12512
|
-
return del$
|
|
12370
|
+
const del$f = (http, params) => {
|
|
12371
|
+
return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}`);
|
|
12513
12372
|
};
|
|
12514
|
-
const publish
|
|
12373
|
+
const publish = (http, params, headers) => {
|
|
12515
12374
|
return put$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, null, {
|
|
12516
12375
|
headers: {
|
|
12517
12376
|
'X-Contentful-Version': params.version,
|
|
@@ -12519,8 +12378,8 @@ var contentfulManagement = (function (exports) {
|
|
|
12519
12378
|
},
|
|
12520
12379
|
});
|
|
12521
12380
|
};
|
|
12522
|
-
const unpublish
|
|
12523
|
-
return del$
|
|
12381
|
+
const unpublish = (http, params, headers) => {
|
|
12382
|
+
return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/published`, {
|
|
12524
12383
|
headers: {
|
|
12525
12384
|
'X-Contentful-Version': params.version,
|
|
12526
12385
|
...headers,
|
|
@@ -12538,7 +12397,7 @@ var contentfulManagement = (function (exports) {
|
|
|
12538
12397
|
});
|
|
12539
12398
|
};
|
|
12540
12399
|
const unarchive$1 = (http, params) => {
|
|
12541
|
-
return del$
|
|
12400
|
+
return del$H(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/archived`, {
|
|
12542
12401
|
headers: {
|
|
12543
12402
|
'X-Contentful-Version': params.version,
|
|
12544
12403
|
},
|
|
@@ -12548,27 +12407,27 @@ var contentfulManagement = (function (exports) {
|
|
|
12548
12407
|
var Release = /*#__PURE__*/Object.freeze({
|
|
12549
12408
|
__proto__: null,
|
|
12550
12409
|
archive: archive,
|
|
12551
|
-
create: create$
|
|
12552
|
-
del: del$
|
|
12553
|
-
get: get$
|
|
12554
|
-
publish: publish
|
|
12410
|
+
create: create$d,
|
|
12411
|
+
del: del$f,
|
|
12412
|
+
get: get$o,
|
|
12413
|
+
publish: publish,
|
|
12555
12414
|
query: query,
|
|
12556
12415
|
unarchive: unarchive$1,
|
|
12557
|
-
unpublish: unpublish
|
|
12416
|
+
unpublish: unpublish,
|
|
12558
12417
|
update: update$e,
|
|
12559
12418
|
validate: validate
|
|
12560
12419
|
});
|
|
12561
12420
|
|
|
12562
|
-
const get$
|
|
12563
|
-
return get$
|
|
12421
|
+
const get$n = (http, params) => {
|
|
12422
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/actions/${params.actionId}`);
|
|
12564
12423
|
};
|
|
12565
|
-
const getMany$
|
|
12566
|
-
return get$
|
|
12424
|
+
const getMany$h = (http, params) => {
|
|
12425
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
|
|
12567
12426
|
params: params.query,
|
|
12568
12427
|
});
|
|
12569
12428
|
};
|
|
12570
12429
|
const queryForRelease = (http, params) => {
|
|
12571
|
-
return get$
|
|
12430
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/release_actions`, {
|
|
12572
12431
|
params: {
|
|
12573
12432
|
'sys.release.sys.id[in]': params.releaseId,
|
|
12574
12433
|
...params.query,
|
|
@@ -12578,82 +12437,82 @@ var contentfulManagement = (function (exports) {
|
|
|
12578
12437
|
|
|
12579
12438
|
var ReleaseAction = /*#__PURE__*/Object.freeze({
|
|
12580
12439
|
__proto__: null,
|
|
12581
|
-
get: get$
|
|
12582
|
-
getMany: getMany$
|
|
12440
|
+
get: get$n,
|
|
12441
|
+
getMany: getMany$h,
|
|
12583
12442
|
queryForRelease: queryForRelease
|
|
12584
12443
|
});
|
|
12585
12444
|
|
|
12586
|
-
const getBaseUrl$
|
|
12587
|
-
const getMany$
|
|
12445
|
+
const getBaseUrl$d = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/resource_types/${params.resourceTypeId}/resources`;
|
|
12446
|
+
const getMany$g = (http, params) => get$14(http, getBaseUrl$d(params), {
|
|
12588
12447
|
params: params.query,
|
|
12589
12448
|
});
|
|
12590
12449
|
|
|
12591
12450
|
var Resource = /*#__PURE__*/Object.freeze({
|
|
12592
12451
|
__proto__: null,
|
|
12593
|
-
getMany: getMany$
|
|
12452
|
+
getMany: getMany$g
|
|
12594
12453
|
});
|
|
12595
12454
|
|
|
12596
|
-
const getBaseUrl$
|
|
12597
|
-
const get$
|
|
12598
|
-
return get$
|
|
12455
|
+
const getBaseUrl$c = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider`;
|
|
12456
|
+
const get$m = (http, params) => {
|
|
12457
|
+
return get$14(http, getBaseUrl$c(params));
|
|
12599
12458
|
};
|
|
12600
|
-
const upsert$
|
|
12601
|
-
return put$1(http, getBaseUrl$
|
|
12459
|
+
const upsert$1 = (http, params, rawData, headers) => {
|
|
12460
|
+
return put$1(http, getBaseUrl$c(params), rawData, { headers });
|
|
12602
12461
|
};
|
|
12603
|
-
const del$
|
|
12604
|
-
return del$
|
|
12462
|
+
const del$e = (http, params) => {
|
|
12463
|
+
return del$H(http, getBaseUrl$c(params));
|
|
12605
12464
|
};
|
|
12606
12465
|
|
|
12607
12466
|
var ResourceProvider = /*#__PURE__*/Object.freeze({
|
|
12608
12467
|
__proto__: null,
|
|
12609
|
-
del: del$
|
|
12610
|
-
get: get$
|
|
12611
|
-
upsert: upsert$
|
|
12468
|
+
del: del$e,
|
|
12469
|
+
get: get$m,
|
|
12470
|
+
upsert: upsert$1
|
|
12612
12471
|
});
|
|
12613
12472
|
|
|
12614
|
-
const getBaseUrl$
|
|
12615
|
-
const getEntityUrl$4 = (params) => `${getBaseUrl$
|
|
12473
|
+
const getBaseUrl$b = (params) => `/organizations/${params.organizationId}/app_definitions/${params.appDefinitionId}/resource_provider/resource_types`;
|
|
12474
|
+
const getEntityUrl$4 = (params) => `${getBaseUrl$b(params)}/${params.resourceTypeId}`;
|
|
12616
12475
|
const getSpaceEnvUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/resource_types`;
|
|
12617
|
-
const get$
|
|
12618
|
-
return get$
|
|
12476
|
+
const get$l = (http, params) => {
|
|
12477
|
+
return get$14(http, getEntityUrl$4(params));
|
|
12619
12478
|
};
|
|
12620
|
-
const upsert
|
|
12479
|
+
const upsert = (http, params, rawData, headers) => {
|
|
12621
12480
|
const data = index$2(rawData);
|
|
12622
12481
|
return put$1(http, getEntityUrl$4(params), data, { headers });
|
|
12623
12482
|
};
|
|
12624
|
-
const del$
|
|
12625
|
-
return del$
|
|
12483
|
+
const del$d = (http, params) => {
|
|
12484
|
+
return del$H(http, getEntityUrl$4(params));
|
|
12626
12485
|
};
|
|
12627
|
-
const getMany$
|
|
12628
|
-
return get$
|
|
12486
|
+
const getMany$f = (http, params) => {
|
|
12487
|
+
return get$14(http, getBaseUrl$b(params));
|
|
12629
12488
|
};
|
|
12630
12489
|
const getForEnvironment = (http, params) => {
|
|
12631
|
-
return get$
|
|
12490
|
+
return get$14(http, getSpaceEnvUrl(params));
|
|
12632
12491
|
};
|
|
12633
12492
|
|
|
12634
12493
|
var ResourceType = /*#__PURE__*/Object.freeze({
|
|
12635
12494
|
__proto__: null,
|
|
12636
|
-
del: del$
|
|
12637
|
-
get: get$
|
|
12495
|
+
del: del$d,
|
|
12496
|
+
get: get$l,
|
|
12638
12497
|
getForEnvironment: getForEnvironment,
|
|
12639
|
-
getMany: getMany$
|
|
12640
|
-
upsert: upsert
|
|
12498
|
+
getMany: getMany$f,
|
|
12499
|
+
upsert: upsert
|
|
12641
12500
|
});
|
|
12642
12501
|
|
|
12643
|
-
const get$
|
|
12644
|
-
return get$
|
|
12502
|
+
const get$k = (http, params) => {
|
|
12503
|
+
return get$14(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
|
|
12645
12504
|
};
|
|
12646
|
-
const getMany$
|
|
12647
|
-
return get$
|
|
12505
|
+
const getMany$e = (http, params) => {
|
|
12506
|
+
return get$14(http, `/spaces/${params.spaceId}/roles`, {
|
|
12648
12507
|
params: normalizeSelect(params.query),
|
|
12649
12508
|
});
|
|
12650
12509
|
};
|
|
12651
12510
|
const getManyForOrganization$6 = (http, params) => {
|
|
12652
|
-
return get$
|
|
12511
|
+
return get$14(http, `/organizations/${params.organizationId}/roles`, {
|
|
12653
12512
|
params: normalizeSelect(params.query),
|
|
12654
12513
|
});
|
|
12655
12514
|
};
|
|
12656
|
-
const create$
|
|
12515
|
+
const create$c = (http, params, data, headers) => {
|
|
12657
12516
|
return post$1(http, `/spaces/${params.spaceId}/roles`, data, {
|
|
12658
12517
|
headers,
|
|
12659
12518
|
});
|
|
@@ -12673,38 +12532,38 @@ var contentfulManagement = (function (exports) {
|
|
|
12673
12532
|
},
|
|
12674
12533
|
});
|
|
12675
12534
|
};
|
|
12676
|
-
const del$
|
|
12677
|
-
return del$
|
|
12535
|
+
const del$c = (http, params) => {
|
|
12536
|
+
return del$H(http, `/spaces/${params.spaceId}/roles/${params.roleId}`);
|
|
12678
12537
|
};
|
|
12679
12538
|
|
|
12680
12539
|
var Role = /*#__PURE__*/Object.freeze({
|
|
12681
12540
|
__proto__: null,
|
|
12682
|
-
create: create$
|
|
12541
|
+
create: create$c,
|
|
12683
12542
|
createWithId: createWithId$3,
|
|
12684
|
-
del: del$
|
|
12685
|
-
get: get$
|
|
12686
|
-
getMany: getMany$
|
|
12543
|
+
del: del$c,
|
|
12544
|
+
get: get$k,
|
|
12545
|
+
getMany: getMany$e,
|
|
12687
12546
|
getManyForOrganization: getManyForOrganization$6,
|
|
12688
12547
|
update: update$d
|
|
12689
12548
|
});
|
|
12690
12549
|
|
|
12691
|
-
const get$
|
|
12692
|
-
return get$
|
|
12550
|
+
const get$j = (http, params) => {
|
|
12551
|
+
return get$14(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
|
|
12693
12552
|
params: {
|
|
12694
12553
|
'environment.sys.id': params.environmentId,
|
|
12695
12554
|
},
|
|
12696
12555
|
});
|
|
12697
12556
|
};
|
|
12698
|
-
const getMany$
|
|
12699
|
-
return get$
|
|
12557
|
+
const getMany$d = (http, params) => {
|
|
12558
|
+
return get$14(http, `/spaces/${params.spaceId}/scheduled_actions`, {
|
|
12700
12559
|
params: normalizeSelect(params.query),
|
|
12701
12560
|
});
|
|
12702
12561
|
};
|
|
12703
|
-
const create$
|
|
12562
|
+
const create$b = (http, params, data) => {
|
|
12704
12563
|
return post$1(http, `/spaces/${params.spaceId}/scheduled_actions`, data);
|
|
12705
12564
|
};
|
|
12706
|
-
const del$
|
|
12707
|
-
return del$
|
|
12565
|
+
const del$b = (http, params) => {
|
|
12566
|
+
return del$H(http, `/spaces/${params.spaceId}/scheduled_actions/${params.scheduledActionId}`, {
|
|
12708
12567
|
params: {
|
|
12709
12568
|
'environment.sys.id': params.environmentId,
|
|
12710
12569
|
},
|
|
@@ -12723,102 +12582,102 @@ var contentfulManagement = (function (exports) {
|
|
|
12723
12582
|
|
|
12724
12583
|
var ScheduledAction = /*#__PURE__*/Object.freeze({
|
|
12725
12584
|
__proto__: null,
|
|
12726
|
-
create: create$
|
|
12727
|
-
del: del$
|
|
12728
|
-
get: get$
|
|
12729
|
-
getMany: getMany$
|
|
12585
|
+
create: create$b,
|
|
12586
|
+
del: del$b,
|
|
12587
|
+
get: get$j,
|
|
12588
|
+
getMany: getMany$d,
|
|
12730
12589
|
update: update$c
|
|
12731
12590
|
});
|
|
12732
12591
|
|
|
12733
|
-
const get$
|
|
12734
|
-
return get$
|
|
12592
|
+
const get$i = (http, params) => {
|
|
12593
|
+
return get$14(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
|
|
12735
12594
|
};
|
|
12736
|
-
const getMany$
|
|
12737
|
-
return get$
|
|
12595
|
+
const getMany$c = (http, params) => {
|
|
12596
|
+
return get$14(http, `/organizations/${params.organizationId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
|
|
12738
12597
|
};
|
|
12739
12598
|
const getManyForEnvironment = (http, params) => {
|
|
12740
|
-
return get$
|
|
12599
|
+
return get$14(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/search-index`, { params: params.status ? { status: params.status } : undefined });
|
|
12741
12600
|
};
|
|
12742
|
-
const create$
|
|
12601
|
+
const create$a = (http, params, data) => {
|
|
12743
12602
|
return post$1(http, `/organizations/${params.organizationId}/semantic/search-index`, data);
|
|
12744
12603
|
};
|
|
12745
|
-
const del$
|
|
12746
|
-
return del$
|
|
12604
|
+
const del$a = (http, params) => {
|
|
12605
|
+
return del$H(http, `/organizations/${params.organizationId}/semantic/search-index/${params.indexId}`);
|
|
12747
12606
|
};
|
|
12748
12607
|
|
|
12749
12608
|
var ContentSemanticsIndex = /*#__PURE__*/Object.freeze({
|
|
12750
12609
|
__proto__: null,
|
|
12751
|
-
create: create$
|
|
12752
|
-
del: del$
|
|
12753
|
-
get: get$
|
|
12754
|
-
getMany: getMany$
|
|
12610
|
+
create: create$a,
|
|
12611
|
+
del: del$a,
|
|
12612
|
+
get: get$i,
|
|
12613
|
+
getMany: getMany$c,
|
|
12755
12614
|
getManyForEnvironment: getManyForEnvironment
|
|
12756
12615
|
});
|
|
12757
12616
|
|
|
12758
|
-
const get$
|
|
12617
|
+
const get$h = (http, params, data, headers) => {
|
|
12759
12618
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/duplicates`, data, { headers });
|
|
12760
12619
|
};
|
|
12761
12620
|
|
|
12762
12621
|
var SemanticDuplicates = /*#__PURE__*/Object.freeze({
|
|
12763
12622
|
__proto__: null,
|
|
12764
|
-
get: get$
|
|
12623
|
+
get: get$h
|
|
12765
12624
|
});
|
|
12766
12625
|
|
|
12767
|
-
const get$
|
|
12626
|
+
const get$g = (http, params, data, headers) => {
|
|
12768
12627
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/recommendations`, data, { headers });
|
|
12769
12628
|
};
|
|
12770
12629
|
|
|
12771
12630
|
var SemanticRecommendations = /*#__PURE__*/Object.freeze({
|
|
12772
12631
|
__proto__: null,
|
|
12773
|
-
get: get$
|
|
12632
|
+
get: get$g
|
|
12774
12633
|
});
|
|
12775
12634
|
|
|
12776
|
-
const get$
|
|
12635
|
+
const get$f = (http, params, data, headers) => {
|
|
12777
12636
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/reference-suggestions`, data, { headers });
|
|
12778
12637
|
};
|
|
12779
12638
|
|
|
12780
12639
|
var SemanticReferenceSuggestions = /*#__PURE__*/Object.freeze({
|
|
12781
12640
|
__proto__: null,
|
|
12782
|
-
get: get$
|
|
12641
|
+
get: get$f
|
|
12783
12642
|
});
|
|
12784
12643
|
|
|
12785
|
-
const get$
|
|
12644
|
+
const get$e = (http, params, data, headers) => {
|
|
12786
12645
|
return post$1(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/semantic/search`, data, { headers });
|
|
12787
12646
|
};
|
|
12788
12647
|
|
|
12789
12648
|
var SemanticSearch = /*#__PURE__*/Object.freeze({
|
|
12790
12649
|
__proto__: null,
|
|
12791
|
-
get: get$
|
|
12650
|
+
get: get$e
|
|
12792
12651
|
});
|
|
12793
12652
|
|
|
12794
|
-
const get$
|
|
12795
|
-
return get$
|
|
12653
|
+
const get$d = (http, params) => {
|
|
12654
|
+
return get$14(http, `/organizations/${params.organizationId}/semantic/settings`);
|
|
12796
12655
|
};
|
|
12797
12656
|
|
|
12798
12657
|
var SemanticSettings = /*#__PURE__*/Object.freeze({
|
|
12799
12658
|
__proto__: null,
|
|
12800
|
-
get: get$
|
|
12659
|
+
get: get$d
|
|
12801
12660
|
});
|
|
12802
12661
|
|
|
12803
12662
|
const getBaseEntryUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/snapshots`;
|
|
12804
12663
|
const getEntryUrl = (params) => getBaseEntryUrl(params) + `/${params.snapshotId}`;
|
|
12805
12664
|
const getManyForEntry = (http, params) => {
|
|
12806
|
-
return get$
|
|
12665
|
+
return get$14(http, getBaseEntryUrl(params), {
|
|
12807
12666
|
params: normalizeSelect(params.query),
|
|
12808
12667
|
});
|
|
12809
12668
|
};
|
|
12810
12669
|
const getForEntry = (http, params) => {
|
|
12811
|
-
return get$
|
|
12670
|
+
return get$14(http, getEntryUrl(params));
|
|
12812
12671
|
};
|
|
12813
12672
|
const getBaseContentTypeUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/content_types/${params.contentTypeId}/snapshots`;
|
|
12814
12673
|
const getContentTypeUrl = (params) => getBaseContentTypeUrl(params) + `/${params.snapshotId}`;
|
|
12815
12674
|
const getManyForContentType = (http, params) => {
|
|
12816
|
-
return get$
|
|
12675
|
+
return get$14(http, getBaseContentTypeUrl(params), {
|
|
12817
12676
|
params: normalizeSelect(params.query),
|
|
12818
12677
|
});
|
|
12819
12678
|
};
|
|
12820
12679
|
const getForContentType = (http, params) => {
|
|
12821
|
-
return get$
|
|
12680
|
+
return get$14(http, getContentTypeUrl(params));
|
|
12822
12681
|
};
|
|
12823
12682
|
|
|
12824
12683
|
var Snapshot = /*#__PURE__*/Object.freeze({
|
|
@@ -12829,19 +12688,19 @@ var contentfulManagement = (function (exports) {
|
|
|
12829
12688
|
getManyForEntry: getManyForEntry
|
|
12830
12689
|
});
|
|
12831
12690
|
|
|
12832
|
-
const get$
|
|
12691
|
+
const get$c = (http, params) => get$14(http, `/spaces/${params.spaceId}`, {
|
|
12833
12692
|
params: params.include ? { include: params.include } : undefined,
|
|
12834
12693
|
});
|
|
12835
|
-
const getMany$
|
|
12694
|
+
const getMany$b = (http, params) => get$14(http, `/spaces`, {
|
|
12836
12695
|
params: { ...params.query, ...(params.include ? { include: params.include } : {}) },
|
|
12837
12696
|
headers: params.organizationId
|
|
12838
12697
|
? { 'X-Contentful-Organization': params.organizationId }
|
|
12839
12698
|
: undefined,
|
|
12840
12699
|
});
|
|
12841
|
-
const getManyForOrganization$5 = (http, params) => get$
|
|
12700
|
+
const getManyForOrganization$5 = (http, params) => get$14(http, `/organizations/${params.organizationId}/spaces`, {
|
|
12842
12701
|
params: params.query,
|
|
12843
12702
|
});
|
|
12844
|
-
const create$
|
|
12703
|
+
const create$9 = (http, params, payload, headers) => {
|
|
12845
12704
|
return post$1(http, `/spaces`, payload, {
|
|
12846
12705
|
headers: params.organizationId
|
|
12847
12706
|
? { ...headers, 'X-Contentful-Organization': params.organizationId }
|
|
@@ -12863,21 +12722,21 @@ var contentfulManagement = (function (exports) {
|
|
|
12863
12722
|
headers,
|
|
12864
12723
|
});
|
|
12865
12724
|
};
|
|
12866
|
-
const del$
|
|
12725
|
+
const del$9 = (http, params) => del$H(http, `/spaces/${params.spaceId}`);
|
|
12867
12726
|
|
|
12868
12727
|
var Space = /*#__PURE__*/Object.freeze({
|
|
12869
12728
|
__proto__: null,
|
|
12870
|
-
create: create$
|
|
12871
|
-
del: del$
|
|
12872
|
-
get: get$
|
|
12873
|
-
getMany: getMany$
|
|
12729
|
+
create: create$9,
|
|
12730
|
+
del: del$9,
|
|
12731
|
+
get: get$c,
|
|
12732
|
+
getMany: getMany$b,
|
|
12874
12733
|
getManyForOrganization: getManyForOrganization$5,
|
|
12875
12734
|
unarchive: unarchive,
|
|
12876
12735
|
update: update$b
|
|
12877
12736
|
});
|
|
12878
12737
|
|
|
12879
|
-
const getMany$
|
|
12880
|
-
return get$
|
|
12738
|
+
const getMany$a = (http, params) => {
|
|
12739
|
+
return get$14(http, `/spaces/${params.spaceId}/space_add_ons`, {
|
|
12881
12740
|
params: normalizeSelect(params.query),
|
|
12882
12741
|
});
|
|
12883
12742
|
};
|
|
@@ -12889,47 +12748,47 @@ var contentfulManagement = (function (exports) {
|
|
|
12889
12748
|
|
|
12890
12749
|
var SpaceAddOn = /*#__PURE__*/Object.freeze({
|
|
12891
12750
|
__proto__: null,
|
|
12892
|
-
getMany: getMany$
|
|
12751
|
+
getMany: getMany$a,
|
|
12893
12752
|
updateAllocations: updateAllocations
|
|
12894
12753
|
});
|
|
12895
12754
|
|
|
12896
|
-
const get$
|
|
12897
|
-
const getMany$
|
|
12755
|
+
const get$b = (http, params) => get$14(http, `/spaces/${params.spaceId}/space_members/${params.spaceMemberId}`);
|
|
12756
|
+
const getMany$9 = (http, params) => get$14(http, `/spaces/${params.spaceId}/space_members`, {
|
|
12898
12757
|
params: params.query,
|
|
12899
12758
|
});
|
|
12900
12759
|
|
|
12901
12760
|
var SpaceMember = /*#__PURE__*/Object.freeze({
|
|
12902
12761
|
__proto__: null,
|
|
12903
|
-
get: get$
|
|
12904
|
-
getMany: getMany$
|
|
12762
|
+
get: get$b,
|
|
12763
|
+
getMany: getMany$9
|
|
12905
12764
|
});
|
|
12906
12765
|
|
|
12907
12766
|
function spaceMembershipDeprecationWarning() {
|
|
12908
12767
|
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)');
|
|
12909
12768
|
}
|
|
12910
|
-
const getBaseUrl$
|
|
12911
|
-
const getEntityUrl$3 = (params) => `${getBaseUrl$
|
|
12912
|
-
const get$
|
|
12769
|
+
const getBaseUrl$a = (params) => `/spaces/${params.spaceId}/space_memberships`;
|
|
12770
|
+
const getEntityUrl$3 = (params) => `${getBaseUrl$a(params)}/${params.spaceMembershipId}`;
|
|
12771
|
+
const get$a = (http, params) => {
|
|
12913
12772
|
spaceMembershipDeprecationWarning();
|
|
12914
|
-
return get$
|
|
12773
|
+
return get$14(http, getEntityUrl$3(params));
|
|
12915
12774
|
};
|
|
12916
|
-
const getMany$
|
|
12775
|
+
const getMany$8 = (http, params) => {
|
|
12917
12776
|
spaceMembershipDeprecationWarning();
|
|
12918
|
-
return get$
|
|
12777
|
+
return get$14(http, getBaseUrl$a(params), {
|
|
12919
12778
|
params: params.query,
|
|
12920
12779
|
});
|
|
12921
12780
|
};
|
|
12922
12781
|
const getForOrganization$2 = (http, params) => {
|
|
12923
|
-
return get$
|
|
12782
|
+
return get$14(http, `/organizations/${params.organizationId}/space_memberships/${params.spaceMembershipId}`);
|
|
12924
12783
|
};
|
|
12925
12784
|
const getManyForOrganization$4 = (http, params) => {
|
|
12926
|
-
return get$
|
|
12785
|
+
return get$14(http, `/organizations/${params.organizationId}/space_memberships`, {
|
|
12927
12786
|
params: params.query,
|
|
12928
12787
|
});
|
|
12929
12788
|
};
|
|
12930
|
-
const create$
|
|
12789
|
+
const create$8 = (http, params, data, headers) => {
|
|
12931
12790
|
spaceMembershipDeprecationWarning();
|
|
12932
|
-
return post$1(http, getBaseUrl$
|
|
12791
|
+
return post$1(http, getBaseUrl$a(params), data, {
|
|
12933
12792
|
headers,
|
|
12934
12793
|
});
|
|
12935
12794
|
};
|
|
@@ -12949,26 +12808,26 @@ var contentfulManagement = (function (exports) {
|
|
|
12949
12808
|
},
|
|
12950
12809
|
});
|
|
12951
12810
|
};
|
|
12952
|
-
const del$
|
|
12953
|
-
return del$
|
|
12811
|
+
const del$8 = (http, params) => {
|
|
12812
|
+
return del$H(http, getEntityUrl$3(params));
|
|
12954
12813
|
};
|
|
12955
12814
|
|
|
12956
12815
|
var SpaceMembership = /*#__PURE__*/Object.freeze({
|
|
12957
12816
|
__proto__: null,
|
|
12958
|
-
create: create$
|
|
12817
|
+
create: create$8,
|
|
12959
12818
|
createWithId: createWithId$2,
|
|
12960
|
-
del: del$
|
|
12961
|
-
get: get$
|
|
12819
|
+
del: del$8,
|
|
12820
|
+
get: get$a,
|
|
12962
12821
|
getForOrganization: getForOrganization$2,
|
|
12963
|
-
getMany: getMany$
|
|
12822
|
+
getMany: getMany$8,
|
|
12964
12823
|
getManyForOrganization: getManyForOrganization$4,
|
|
12965
12824
|
update: update$a
|
|
12966
12825
|
});
|
|
12967
12826
|
|
|
12968
|
-
const getBaseUrl$
|
|
12969
|
-
const getTagUrl = (params) => getBaseUrl$
|
|
12970
|
-
const get$
|
|
12971
|
-
const getMany$
|
|
12827
|
+
const getBaseUrl$9 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/tags`;
|
|
12828
|
+
const getTagUrl = (params) => getBaseUrl$9(params) + `/${params.tagId}`;
|
|
12829
|
+
const get$9 = (http, params) => get$14(http, getTagUrl(params));
|
|
12830
|
+
const getMany$7 = (http, params) => get$14(http, getBaseUrl$9(params), {
|
|
12972
12831
|
params: params.query,
|
|
12973
12832
|
});
|
|
12974
12833
|
const createWithId$1 = (http, params, rawData) => {
|
|
@@ -12987,32 +12846,32 @@ var contentfulManagement = (function (exports) {
|
|
|
12987
12846
|
},
|
|
12988
12847
|
});
|
|
12989
12848
|
};
|
|
12990
|
-
const del$
|
|
12991
|
-
return del$
|
|
12849
|
+
const del$7 = (http, { version, ...params }) => {
|
|
12850
|
+
return del$H(http, getTagUrl(params), { headers: { 'X-Contentful-Version': version } });
|
|
12992
12851
|
};
|
|
12993
12852
|
|
|
12994
12853
|
var Tag = /*#__PURE__*/Object.freeze({
|
|
12995
12854
|
__proto__: null,
|
|
12996
12855
|
createWithId: createWithId$1,
|
|
12997
|
-
del: del$
|
|
12998
|
-
get: get$
|
|
12999
|
-
getMany: getMany$
|
|
12856
|
+
del: del$7,
|
|
12857
|
+
get: get$9,
|
|
12858
|
+
getMany: getMany$7,
|
|
13000
12859
|
update: update$9
|
|
13001
12860
|
});
|
|
13002
12861
|
|
|
13003
|
-
const getBaseUrl$
|
|
13004
|
-
const getTaskUrl = (params) => `${getBaseUrl$
|
|
13005
|
-
const get$
|
|
13006
|
-
const getMany$
|
|
12862
|
+
const getBaseUrl$8 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/entries/${params.entryId}/tasks`;
|
|
12863
|
+
const getTaskUrl = (params) => `${getBaseUrl$8(params)}/${params.taskId}`;
|
|
12864
|
+
const get$8 = (http, params) => get$14(http, getTaskUrl(params));
|
|
12865
|
+
const getMany$6 = (http, params) => get$14(http, getBaseUrl$8(params), {
|
|
13007
12866
|
params: normalizeSelect(params.query),
|
|
13008
12867
|
});
|
|
13009
12868
|
/**
|
|
13010
12869
|
* @deprecated use `getMany` instead. `getAll` may never be removed for app compatibility reasons.
|
|
13011
12870
|
*/
|
|
13012
|
-
const getAll = getMany$
|
|
13013
|
-
const create$
|
|
12871
|
+
const getAll = getMany$6;
|
|
12872
|
+
const create$7 = (http, params, rawData) => {
|
|
13014
12873
|
const data = index$2(rawData);
|
|
13015
|
-
return post$1(http, getBaseUrl$
|
|
12874
|
+
return post$1(http, getBaseUrl$8(params), data);
|
|
13016
12875
|
};
|
|
13017
12876
|
const update$8 = (http, params, rawData, headers) => {
|
|
13018
12877
|
const data = index$2(rawData);
|
|
@@ -13024,33 +12883,33 @@ var contentfulManagement = (function (exports) {
|
|
|
13024
12883
|
},
|
|
13025
12884
|
});
|
|
13026
12885
|
};
|
|
13027
|
-
const del$
|
|
13028
|
-
return del$
|
|
12886
|
+
const del$6 = (http, { version, ...params }) => {
|
|
12887
|
+
return del$H(http, getTaskUrl(params), { headers: { 'X-Contentful-Version': version } });
|
|
13029
12888
|
};
|
|
13030
12889
|
|
|
13031
12890
|
var Task = /*#__PURE__*/Object.freeze({
|
|
13032
12891
|
__proto__: null,
|
|
13033
|
-
create: create$
|
|
13034
|
-
del: del$
|
|
13035
|
-
get: get$
|
|
12892
|
+
create: create$7,
|
|
12893
|
+
del: del$6,
|
|
12894
|
+
get: get$8,
|
|
13036
12895
|
getAll: getAll,
|
|
13037
|
-
getMany: getMany$
|
|
12896
|
+
getMany: getMany$6,
|
|
13038
12897
|
update: update$8
|
|
13039
12898
|
});
|
|
13040
12899
|
|
|
13041
|
-
const getBaseUrl$
|
|
13042
|
-
const getEntityUrl$2 = (params) => `${getBaseUrl$
|
|
13043
|
-
const get$
|
|
13044
|
-
const getMany$
|
|
12900
|
+
const getBaseUrl$7 = (params) => `/organizations/${params.organizationId}/teams`;
|
|
12901
|
+
const getEntityUrl$2 = (params) => `${getBaseUrl$7(params)}/${params.teamId}`;
|
|
12902
|
+
const get$7 = (http, params) => get$14(http, getEntityUrl$2(params));
|
|
12903
|
+
const getMany$5 = (http, params) => get$14(http, getBaseUrl$7(params), {
|
|
13045
12904
|
params: normalizeSelect(params.query),
|
|
13046
12905
|
});
|
|
13047
12906
|
const getManyForSpace$2 = (http, params) => {
|
|
13048
|
-
return get$
|
|
12907
|
+
return get$14(http, `/spaces/${params.spaceId}/teams`, {
|
|
13049
12908
|
params: normalizeSelect(params.query),
|
|
13050
12909
|
});
|
|
13051
12910
|
};
|
|
13052
|
-
const create$
|
|
13053
|
-
return post$1(http, getBaseUrl$
|
|
12911
|
+
const create$6 = (http, params, rawData, headers) => {
|
|
12912
|
+
return post$1(http, getBaseUrl$7(params), rawData, { headers });
|
|
13054
12913
|
};
|
|
13055
12914
|
const update$7 = (http, params, rawData, headers) => {
|
|
13056
12915
|
const data = index$2(rawData);
|
|
@@ -13062,31 +12921,31 @@ var contentfulManagement = (function (exports) {
|
|
|
13062
12921
|
},
|
|
13063
12922
|
});
|
|
13064
12923
|
};
|
|
13065
|
-
const del$
|
|
12924
|
+
const del$5 = (http, params) => del$H(http, getEntityUrl$2(params));
|
|
13066
12925
|
|
|
13067
12926
|
var Team = /*#__PURE__*/Object.freeze({
|
|
13068
12927
|
__proto__: null,
|
|
13069
|
-
create: create$
|
|
13070
|
-
del: del$
|
|
13071
|
-
get: get$
|
|
13072
|
-
getMany: getMany$
|
|
12928
|
+
create: create$6,
|
|
12929
|
+
del: del$5,
|
|
12930
|
+
get: get$7,
|
|
12931
|
+
getMany: getMany$5,
|
|
13073
12932
|
getManyForSpace: getManyForSpace$2,
|
|
13074
12933
|
update: update$7
|
|
13075
12934
|
});
|
|
13076
12935
|
|
|
13077
|
-
const getBaseUrl$
|
|
12936
|
+
const getBaseUrl$6 = (params) => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships`;
|
|
13078
12937
|
const getEntityUrl$1 = (params) => `/organizations/${params.organizationId}/teams/${params.teamId}/team_memberships/${params.teamMembershipId}`;
|
|
13079
|
-
const get$
|
|
13080
|
-
const getManyForOrganization$3 = (http, params) => get$
|
|
12938
|
+
const get$6 = (http, params) => get$14(http, getEntityUrl$1(params));
|
|
12939
|
+
const getManyForOrganization$3 = (http, params) => get$14(http, `/organizations/${params.organizationId}/team_memberships`, {
|
|
13081
12940
|
params: normalizeSelect(params.query),
|
|
13082
12941
|
});
|
|
13083
12942
|
const getManyForTeam = (http, params) => {
|
|
13084
|
-
return get$
|
|
12943
|
+
return get$14(http, getBaseUrl$6(params), {
|
|
13085
12944
|
params: normalizeSelect(params.query),
|
|
13086
12945
|
});
|
|
13087
12946
|
};
|
|
13088
|
-
const create$
|
|
13089
|
-
return post$1(http, getBaseUrl$
|
|
12947
|
+
const create$5 = (http, params, rawData, headers) => {
|
|
12948
|
+
return post$1(http, getBaseUrl$6(params), rawData, { headers });
|
|
13090
12949
|
};
|
|
13091
12950
|
const update$6 = (http, params, rawData, headers) => {
|
|
13092
12951
|
const data = index$2(rawData);
|
|
@@ -13098,38 +12957,38 @@ var contentfulManagement = (function (exports) {
|
|
|
13098
12957
|
},
|
|
13099
12958
|
});
|
|
13100
12959
|
};
|
|
13101
|
-
const del$
|
|
12960
|
+
const del$4 = (http, params) => del$H(http, getEntityUrl$1(params));
|
|
13102
12961
|
|
|
13103
12962
|
var TeamMembership = /*#__PURE__*/Object.freeze({
|
|
13104
12963
|
__proto__: null,
|
|
13105
|
-
create: create$
|
|
13106
|
-
del: del$
|
|
13107
|
-
get: get$
|
|
12964
|
+
create: create$5,
|
|
12965
|
+
del: del$4,
|
|
12966
|
+
get: get$6,
|
|
13108
12967
|
getManyForOrganization: getManyForOrganization$3,
|
|
13109
12968
|
getManyForTeam: getManyForTeam,
|
|
13110
12969
|
update: update$6
|
|
13111
12970
|
});
|
|
13112
12971
|
|
|
13113
|
-
const getBaseUrl$
|
|
13114
|
-
const getEntityUrl = (params) => `${getBaseUrl$
|
|
13115
|
-
const get$
|
|
13116
|
-
const getMany$
|
|
12972
|
+
const getBaseUrl$5 = (params) => `/spaces/${params.spaceId}/team_space_memberships`;
|
|
12973
|
+
const getEntityUrl = (params) => `${getBaseUrl$5(params)}/${params.teamSpaceMembershipId}`;
|
|
12974
|
+
const get$5 = (http, params) => get$14(http, getEntityUrl(params));
|
|
12975
|
+
const getMany$4 = (http, params) => get$14(http, getBaseUrl$5(params), {
|
|
13117
12976
|
params: params.query,
|
|
13118
12977
|
});
|
|
13119
12978
|
const getForOrganization$1 = (http, params) => {
|
|
13120
|
-
return get$
|
|
12979
|
+
return get$14(http, `/organizations/${params.organizationId}/team_space_memberships/${params.teamSpaceMembershipId}`);
|
|
13121
12980
|
};
|
|
13122
12981
|
const getManyForOrganization$2 = (http, params) => {
|
|
13123
12982
|
const query = params.query || {};
|
|
13124
12983
|
if (params.teamId) {
|
|
13125
12984
|
query['sys.team.sys.id'] = params.teamId;
|
|
13126
12985
|
}
|
|
13127
|
-
return get$
|
|
12986
|
+
return get$14(http, `/organizations/${params.organizationId}/team_space_memberships`, {
|
|
13128
12987
|
params: params.query,
|
|
13129
12988
|
});
|
|
13130
12989
|
};
|
|
13131
|
-
const create$
|
|
13132
|
-
return post$1(http, getBaseUrl$
|
|
12990
|
+
const create$4 = (http, params, rawData, headers) => {
|
|
12991
|
+
return post$1(http, getBaseUrl$5(params), rawData, {
|
|
13133
12992
|
headers: {
|
|
13134
12993
|
'x-contentful-team': params.teamId,
|
|
13135
12994
|
...headers,
|
|
@@ -13147,80 +13006,24 @@ var contentfulManagement = (function (exports) {
|
|
|
13147
13006
|
},
|
|
13148
13007
|
});
|
|
13149
13008
|
};
|
|
13150
|
-
const del$
|
|
13151
|
-
return del$
|
|
13009
|
+
const del$3 = (http, params) => {
|
|
13010
|
+
return del$H(http, getEntityUrl(params));
|
|
13152
13011
|
};
|
|
13153
13012
|
|
|
13154
13013
|
var TeamSpaceMembership = /*#__PURE__*/Object.freeze({
|
|
13155
13014
|
__proto__: null,
|
|
13156
|
-
create: create$
|
|
13157
|
-
del: del$
|
|
13158
|
-
get: get$
|
|
13015
|
+
create: create$4,
|
|
13016
|
+
del: del$3,
|
|
13017
|
+
get: get$5,
|
|
13159
13018
|
getForOrganization: getForOrganization$1,
|
|
13160
|
-
getMany: getMany$
|
|
13019
|
+
getMany: getMany$4,
|
|
13161
13020
|
getManyForOrganization: getManyForOrganization$2,
|
|
13162
13021
|
update: update$5
|
|
13163
13022
|
});
|
|
13164
13023
|
|
|
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
|
-
|
|
13221
13024
|
const getUrl$1 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config`;
|
|
13222
|
-
const get$
|
|
13223
|
-
return get$
|
|
13025
|
+
const get$4 = (http, params) => {
|
|
13026
|
+
return get$14(http, getUrl$1(params));
|
|
13224
13027
|
};
|
|
13225
13028
|
const update$4 = (http, params, rawData) => {
|
|
13226
13029
|
const data = index$2(rawData);
|
|
@@ -13234,66 +13037,8 @@ var contentfulManagement = (function (exports) {
|
|
|
13234
13037
|
|
|
13235
13038
|
var UIConfig = /*#__PURE__*/Object.freeze({
|
|
13236
13039
|
__proto__: null,
|
|
13237
|
-
get: get$5,
|
|
13238
|
-
update: update$4
|
|
13239
|
-
});
|
|
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
13040
|
get: get$4,
|
|
13293
|
-
|
|
13294
|
-
publish: publish,
|
|
13295
|
-
unpublish: unpublish,
|
|
13296
|
-
upsert: upsert
|
|
13041
|
+
update: update$4
|
|
13297
13042
|
});
|
|
13298
13043
|
|
|
13299
13044
|
const getBaseUrl$4 = (params) => {
|
|
@@ -13311,12 +13056,12 @@ var contentfulManagement = (function (exports) {
|
|
|
13311
13056
|
});
|
|
13312
13057
|
|
|
13313
13058
|
const getManyForSpace$1 = (http, params) => {
|
|
13314
|
-
return get$
|
|
13059
|
+
return get$14(http, `/organizations/${params.organizationId}/space_periodic_usages`, {
|
|
13315
13060
|
params: params.query,
|
|
13316
13061
|
});
|
|
13317
13062
|
};
|
|
13318
13063
|
const getManyForOrganization$1 = (http, params) => {
|
|
13319
|
-
return get$
|
|
13064
|
+
return get$14(http, `/organizations/${params.organizationId}/organization_periodic_usages`, {
|
|
13320
13065
|
params: params.query,
|
|
13321
13066
|
});
|
|
13322
13067
|
};
|
|
@@ -13328,19 +13073,19 @@ var contentfulManagement = (function (exports) {
|
|
|
13328
13073
|
});
|
|
13329
13074
|
|
|
13330
13075
|
const getForSpace = (http, params) => {
|
|
13331
|
-
return get$
|
|
13076
|
+
return get$14(http, `/spaces/${params.spaceId}/users/${params.userId}`);
|
|
13332
13077
|
};
|
|
13333
|
-
const getCurrent = (http, params) => get$
|
|
13078
|
+
const getCurrent = (http, params) => get$14(http, `/users/me`, { params: params?.query });
|
|
13334
13079
|
const getManyForSpace = (http, params) => {
|
|
13335
|
-
return get$
|
|
13080
|
+
return get$14(http, `/spaces/${params.spaceId}/users`, {
|
|
13336
13081
|
params: params.query,
|
|
13337
13082
|
});
|
|
13338
13083
|
};
|
|
13339
13084
|
const getForOrganization = (http, params) => {
|
|
13340
|
-
return get$
|
|
13085
|
+
return get$14(http, `/organizations/${params.organizationId}/users/${params.userId}`);
|
|
13341
13086
|
};
|
|
13342
13087
|
const getManyForOrganization = (http, params) => {
|
|
13343
|
-
return get$
|
|
13088
|
+
return get$14(http, `/organizations/${params.organizationId}/users`, {
|
|
13344
13089
|
params: params.query,
|
|
13345
13090
|
});
|
|
13346
13091
|
};
|
|
@@ -13356,7 +13101,7 @@ var contentfulManagement = (function (exports) {
|
|
|
13356
13101
|
|
|
13357
13102
|
const getUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/ui_config/me`;
|
|
13358
13103
|
const get$3 = (http, params) => {
|
|
13359
|
-
return get$
|
|
13104
|
+
return get$14(http, getUrl(params));
|
|
13360
13105
|
};
|
|
13361
13106
|
const update$3 = (http, params, rawData) => {
|
|
13362
13107
|
const data = index$2(rawData);
|
|
@@ -13384,32 +13129,32 @@ var contentfulManagement = (function (exports) {
|
|
|
13384
13129
|
const getWebhookSigningSecretUrl = (params) => `${getWebhookSettingsUrl(params)}/signing_secret`;
|
|
13385
13130
|
const getWebhookRetryPolicyUrl = (params) => `${getWebhookSettingsUrl(params)}/retry_policy`;
|
|
13386
13131
|
const get$2 = (http, params) => {
|
|
13387
|
-
return get$
|
|
13132
|
+
return get$14(http, getWebhookUrl(params));
|
|
13388
13133
|
};
|
|
13389
13134
|
const getManyCallDetails = (http, params) => {
|
|
13390
|
-
return get$
|
|
13135
|
+
return get$14(http, getWebhookCallUrl(params), {
|
|
13391
13136
|
params: normalizeSelect(params.query),
|
|
13392
13137
|
});
|
|
13393
13138
|
};
|
|
13394
13139
|
const getCallDetails = (http, params) => {
|
|
13395
|
-
return get$
|
|
13140
|
+
return get$14(http, getWebhookCallDetailsUrl(params));
|
|
13396
13141
|
};
|
|
13397
13142
|
const getHealthStatus = (http, params) => {
|
|
13398
|
-
return get$
|
|
13143
|
+
return get$14(http, getWebhookHealthUrl(params));
|
|
13399
13144
|
};
|
|
13400
13145
|
const getMany$3 = (http, params) => {
|
|
13401
|
-
return get$
|
|
13146
|
+
return get$14(http, getBaseUrl$3(params), {
|
|
13402
13147
|
params: normalizeSelect(params.query),
|
|
13403
13148
|
});
|
|
13404
13149
|
};
|
|
13405
13150
|
const getSigningSecret = (http, params) => {
|
|
13406
|
-
return get$
|
|
13151
|
+
return get$14(http, getWebhookSigningSecretUrl(params));
|
|
13407
13152
|
};
|
|
13408
13153
|
/**
|
|
13409
13154
|
* @deprecated The EAP for this feature has ended. This method will be removed in the next major version.
|
|
13410
13155
|
*/
|
|
13411
13156
|
const getRetryPolicy = (http, params) => {
|
|
13412
|
-
return get$
|
|
13157
|
+
return get$14(http, getWebhookRetryPolicyUrl(params));
|
|
13413
13158
|
};
|
|
13414
13159
|
const create$2 = (http, params, rawData, headers) => {
|
|
13415
13160
|
const data = index$2(rawData);
|
|
@@ -13441,16 +13186,16 @@ var contentfulManagement = (function (exports) {
|
|
|
13441
13186
|
return put$1(http, getWebhookRetryPolicyUrl(params), data);
|
|
13442
13187
|
};
|
|
13443
13188
|
const del$2 = (http, params) => {
|
|
13444
|
-
return del$
|
|
13189
|
+
return del$H(http, getWebhookUrl(params));
|
|
13445
13190
|
};
|
|
13446
13191
|
const deleteSigningSecret = async (http, params) => {
|
|
13447
|
-
return del$
|
|
13192
|
+
return del$H(http, getWebhookSigningSecretUrl(params));
|
|
13448
13193
|
};
|
|
13449
13194
|
/**
|
|
13450
13195
|
* @deprecated The EAP for this feature has ended. This method will be removed in the next major version.
|
|
13451
13196
|
*/
|
|
13452
13197
|
const deleteRetryPolicy = async (http, params) => {
|
|
13453
|
-
return del$
|
|
13198
|
+
return del$H(http, getWebhookRetryPolicyUrl(params));
|
|
13454
13199
|
};
|
|
13455
13200
|
|
|
13456
13201
|
var Webhook = /*#__PURE__*/Object.freeze({
|
|
@@ -13475,11 +13220,11 @@ var contentfulManagement = (function (exports) {
|
|
|
13475
13220
|
const getBaseUrl$2 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows`;
|
|
13476
13221
|
const getWorkflowUrl = (params) => `${getBaseUrl$2(params)}/${params.workflowId}`;
|
|
13477
13222
|
const completeWorkflowUrl = (params) => `${getWorkflowUrl(params)}/complete`;
|
|
13478
|
-
const getMany$2 = (http, params, headers) => get$
|
|
13223
|
+
const getMany$2 = (http, params, headers) => get$14(http, getBaseUrl$2(params), {
|
|
13479
13224
|
headers,
|
|
13480
13225
|
params: params.query,
|
|
13481
13226
|
});
|
|
13482
|
-
const get$1 = (http, params, headers) => get$
|
|
13227
|
+
const get$1 = (http, params, headers) => get$14(http, getWorkflowUrl(params), {
|
|
13483
13228
|
headers,
|
|
13484
13229
|
});
|
|
13485
13230
|
const create$1 = (http, params, rawData, headers) => {
|
|
@@ -13499,7 +13244,7 @@ var contentfulManagement = (function (exports) {
|
|
|
13499
13244
|
});
|
|
13500
13245
|
};
|
|
13501
13246
|
const del$1 = (http, { version, ...params }, headers) => {
|
|
13502
|
-
return del$
|
|
13247
|
+
return del$H(http, getWorkflowUrl(params), {
|
|
13503
13248
|
headers: { 'X-Contentful-Version': version, ...headers },
|
|
13504
13249
|
});
|
|
13505
13250
|
};
|
|
@@ -13521,10 +13266,10 @@ var contentfulManagement = (function (exports) {
|
|
|
13521
13266
|
|
|
13522
13267
|
const getBaseUrl$1 = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflow_definitions`;
|
|
13523
13268
|
const getWorkflowDefinitionUrl = (params) => `${getBaseUrl$1(params)}/${params.workflowDefinitionId}`;
|
|
13524
|
-
const get = (http, params, headers) => get$
|
|
13269
|
+
const get = (http, params, headers) => get$14(http, getWorkflowDefinitionUrl(params), {
|
|
13525
13270
|
headers,
|
|
13526
13271
|
});
|
|
13527
|
-
const getMany$1 = (http, params, headers) => get$
|
|
13272
|
+
const getMany$1 = (http, params, headers) => get$14(http, getBaseUrl$1(params), {
|
|
13528
13273
|
headers,
|
|
13529
13274
|
params: params.query,
|
|
13530
13275
|
});
|
|
@@ -13545,7 +13290,7 @@ var contentfulManagement = (function (exports) {
|
|
|
13545
13290
|
});
|
|
13546
13291
|
};
|
|
13547
13292
|
const del = (http, { version, ...params }, headers) => {
|
|
13548
|
-
return del$
|
|
13293
|
+
return del$H(http, getWorkflowDefinitionUrl(params), {
|
|
13549
13294
|
headers: { 'X-Contentful-Version': version, ...headers },
|
|
13550
13295
|
});
|
|
13551
13296
|
};
|
|
@@ -13560,7 +13305,7 @@ var contentfulManagement = (function (exports) {
|
|
|
13560
13305
|
});
|
|
13561
13306
|
|
|
13562
13307
|
const getBaseUrl = (params) => `/spaces/${params.spaceId}/environments/${params.environmentId}/workflows_changelog`;
|
|
13563
|
-
const getMany = (http, params, headers) => get$
|
|
13308
|
+
const getMany = (http, params, headers) => get$14(http, getBaseUrl(params), {
|
|
13564
13309
|
headers,
|
|
13565
13310
|
params: params.query,
|
|
13566
13311
|
});
|
|
@@ -13599,7 +13344,6 @@ var contentfulManagement = (function (exports) {
|
|
|
13599
13344
|
Concept,
|
|
13600
13345
|
ConceptScheme,
|
|
13601
13346
|
ContentType,
|
|
13602
|
-
DataAssembly,
|
|
13603
13347
|
EditorInterface,
|
|
13604
13348
|
EligibleLicense,
|
|
13605
13349
|
Entry,
|
|
@@ -13608,7 +13352,6 @@ var contentfulManagement = (function (exports) {
|
|
|
13608
13352
|
EnvironmentTemplate,
|
|
13609
13353
|
EnvironmentTemplateInstallation,
|
|
13610
13354
|
Extension,
|
|
13611
|
-
Fragment,
|
|
13612
13355
|
Function: Function$1,
|
|
13613
13356
|
FunctionLog,
|
|
13614
13357
|
Http,
|
|
@@ -13645,11 +13388,9 @@ var contentfulManagement = (function (exports) {
|
|
|
13645
13388
|
Team,
|
|
13646
13389
|
TeamMembership,
|
|
13647
13390
|
TeamSpaceMembership,
|
|
13648
|
-
Template,
|
|
13649
13391
|
UIConfig,
|
|
13650
13392
|
Upload,
|
|
13651
13393
|
UploadCredential,
|
|
13652
|
-
Experience,
|
|
13653
13394
|
Usage,
|
|
13654
13395
|
User,
|
|
13655
13396
|
UserUIConfig,
|
|
@@ -24115,12 +23856,6 @@ var contentfulManagement = (function (exports) {
|
|
|
24115
23856
|
},
|
|
24116
23857
|
componentType: {
|
|
24117
23858
|
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'),
|
|
24124
23859
|
},
|
|
24125
23860
|
contentType: {
|
|
24126
23861
|
get: wrap(wrapParams, 'ContentType', 'get'),
|
|
@@ -24134,17 +23869,6 @@ var contentfulManagement = (function (exports) {
|
|
|
24134
23869
|
createWithId: wrap(wrapParams, 'ContentType', 'createWithId'),
|
|
24135
23870
|
omitAndDeleteField: (params, contentType, fieldId) => omitAndDeleteField(makeRequest, { ...{ ...defaults, ...params }, fieldId }, contentType),
|
|
24136
23871
|
},
|
|
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
|
-
},
|
|
24148
23872
|
user: {
|
|
24149
23873
|
getManyForSpace: wrap(wrapParams, 'User', 'getManyForSpace'),
|
|
24150
23874
|
getForSpace: wrap(wrapParams, 'User', 'getForSpace'),
|
|
@@ -24492,24 +24216,6 @@ var contentfulManagement = (function (exports) {
|
|
|
24492
24216
|
update: wrap(wrapParams, 'TeamSpaceMembership', 'update'),
|
|
24493
24217
|
delete: wrap(wrapParams, 'TeamSpaceMembership', 'delete'),
|
|
24494
24218
|
},
|
|
24495
|
-
fragment: {
|
|
24496
|
-
getMany: wrap(wrapParams, 'Fragment', 'getMany'),
|
|
24497
|
-
get: wrap(wrapParams, 'Fragment', 'get'),
|
|
24498
|
-
create: wrap(wrapParams, 'Fragment', 'create'),
|
|
24499
|
-
upsert: wrap(wrapParams, 'Fragment', 'upsert'),
|
|
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
|
-
},
|
|
24513
24219
|
uiConfig: {
|
|
24514
24220
|
get: wrap(wrapParams, 'UIConfig', 'get'),
|
|
24515
24221
|
update: wrap(wrapParams, 'UIConfig', 'update'),
|
|
@@ -24518,15 +24224,6 @@ var contentfulManagement = (function (exports) {
|
|
|
24518
24224
|
get: wrap(wrapParams, 'UserUIConfig', 'get'),
|
|
24519
24225
|
update: wrap(wrapParams, 'UserUIConfig', 'update'),
|
|
24520
24226
|
},
|
|
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
|
-
},
|
|
24530
24227
|
workflowDefinition: {
|
|
24531
24228
|
get: wrap(wrapParams, 'WorkflowDefinition', 'get'),
|
|
24532
24229
|
getMany: wrap(wrapParams, 'WorkflowDefinition', 'getMany'),
|