contentful-management 11.44.0 → 11.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contentful-management.browser.js +493 -302
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +473 -297
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/adapters/REST/endpoints/asset.js +2 -2
- package/dist/es-modules/adapters/REST/endpoints/comment.js +2 -2
- package/dist/es-modules/adapters/REST/endpoints/environment-template-installation.js +2 -2
- package/dist/es-modules/adapters/REST/endpoints/function-log.js +22 -0
- package/dist/es-modules/adapters/REST/endpoints/function.js +6 -2
- package/dist/es-modules/adapters/REST/endpoints/index.js +2 -0
- package/dist/es-modules/adapters/REST/endpoints/tag.js +2 -2
- package/dist/es-modules/adapters/REST/endpoints/task.js +2 -2
- package/dist/es-modules/adapters/REST/endpoints/utils.js +2 -2
- package/dist/es-modules/adapters/REST/endpoints/workflow-definition.js +2 -2
- package/dist/es-modules/adapters/REST/endpoints/workflow.js +2 -2
- package/dist/es-modules/common-types.js +4 -0
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/create-contentful-api.js +2 -2
- package/dist/es-modules/create-environment-api.js +121 -2
- package/dist/es-modules/create-environment-template-api.js +2 -2
- package/dist/es-modules/create-organization-api.js +54 -0
- package/dist/es-modules/entities/function-log.js +21 -0
- package/dist/es-modules/entities/function.js +45 -8
- package/dist/es-modules/entities/index.js +2 -0
- package/dist/es-modules/entities/scheduled-action.js +2 -2
- package/dist/es-modules/methods/content-type.js +2 -2
- package/dist/es-modules/plain/entities/function-log.js +1 -0
- package/dist/es-modules/plain/plain-client.js +4 -0
- package/dist/typings/adapters/REST/endpoints/function-log.d.ts +3 -0
- package/dist/typings/adapters/REST/endpoints/index.d.ts +2 -0
- package/dist/typings/common-types.d.ts +50 -2
- package/dist/typings/create-environment-api.d.ts +78 -1
- package/dist/typings/create-organization-api.d.ts +29 -1
- package/dist/typings/entities/function-log.d.ts +46 -0
- package/dist/typings/entities/function.d.ts +2 -10
- package/dist/typings/entities/index.d.ts +2 -0
- package/dist/typings/plain/common-types.d.ts +2 -0
- package/dist/typings/plain/entities/function-log.d.ts +39 -0
- package/dist/typings/plain/entities/function.d.ts +5 -3
- package/package.json +1 -1
- package/dist/es-modules/create-function-api.js +0 -115
- package/dist/typings/create-function-api.d.ts +0 -78
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const _excluded = ["asset", "locale", "options"],
|
|
2
2
|
_excluded2 = ["asset", "options"];
|
|
3
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const _excluded = ["version"];
|
|
2
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
2
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -5,8 +5,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
5
5
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
6
6
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
7
7
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
9
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
8
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
10
10
|
import * as raw from './raw';
|
|
11
11
|
const apiPath = (organizationId, ...pathSegments) => `/organizations/${organizationId}/environment_templates/` + pathSegments.join('/');
|
|
12
12
|
export const getMany = (http, _ref, headers) => {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
import * as raw from './raw';
|
|
7
|
+
const FunctionLogAlphaHeaders = {
|
|
8
|
+
'x-contentful-enable-alpha-feature': 'function-logs'
|
|
9
|
+
};
|
|
10
|
+
const baseURL = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs`;
|
|
11
|
+
const getURL = params => `/spaces/${params.spaceId}/environments/${params.environmentId}/app_installations/${params.appInstallationId}/functions/${params.functionId}/logs/${params.logId}`;
|
|
12
|
+
export const get = (http, params) => {
|
|
13
|
+
return raw.get(http, getURL(params), {
|
|
14
|
+
headers: _objectSpread({}, FunctionLogAlphaHeaders)
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
export const getMany = (http, params) => {
|
|
18
|
+
return raw.get(http, baseURL(params), {
|
|
19
|
+
params: params.query,
|
|
20
|
+
headers: _objectSpread({}, FunctionLogAlphaHeaders)
|
|
21
|
+
});
|
|
22
|
+
};
|
|
@@ -9,8 +9,12 @@ export const get = (http, params) => {
|
|
|
9
9
|
return raw.get(http, getFunctionUrl(params));
|
|
10
10
|
};
|
|
11
11
|
export const getMany = (http, params) => {
|
|
12
|
-
return raw.get(http, getManyUrl(params)
|
|
12
|
+
return raw.get(http, getManyUrl(params), {
|
|
13
|
+
params: params.query
|
|
14
|
+
});
|
|
13
15
|
};
|
|
14
16
|
export const getManyForEnvironment = (http, params) => {
|
|
15
|
-
return raw.get(http, getFunctionsEnvURL(params)
|
|
17
|
+
return raw.get(http, getFunctionsEnvURL(params), {
|
|
18
|
+
params: params.query
|
|
19
|
+
});
|
|
16
20
|
};
|
|
@@ -27,6 +27,7 @@ import * as EnvironmentTemplate from './environment-template';
|
|
|
27
27
|
import * as EnvironmentTemplateInstallation from './environment-template-installation';
|
|
28
28
|
import * as Extension from './extension';
|
|
29
29
|
import * as Function from './function';
|
|
30
|
+
import * as FunctionLog from './function-log';
|
|
30
31
|
import * as Http from './http';
|
|
31
32
|
import * as Locale from './locale';
|
|
32
33
|
import * as Organization from './organization';
|
|
@@ -89,6 +90,7 @@ export default {
|
|
|
89
90
|
EnvironmentTemplateInstallation,
|
|
90
91
|
Extension,
|
|
91
92
|
Function,
|
|
93
|
+
FunctionLog,
|
|
92
94
|
Http,
|
|
93
95
|
Locale,
|
|
94
96
|
Organization,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const _excluded = ["version"];
|
|
2
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
2
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const _excluded = ["version"];
|
|
2
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
2
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const _excluded = ["spaceId"];
|
|
2
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
2
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const _excluded = ["version"];
|
|
2
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
2
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const _excluded = ["version"],
|
|
2
2
|
_excluded2 = ["version"];
|
|
3
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
3
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
@@ -46,7 +46,7 @@ function createClient(params, opts = {}) {
|
|
|
46
46
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
47
47
|
const userAgent = getUserAgentHeader(
|
|
48
48
|
// @ts-expect-error
|
|
49
|
-
`${sdkMain}/${"11.
|
|
49
|
+
`${sdkMain}/${"11.45.0"}`, params.application, params.integration, params.feature);
|
|
50
50
|
const adapter = createAdapter(_objectSpread(_objectSpread({}, params), {}, {
|
|
51
51
|
userAgent
|
|
52
52
|
}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const _excluded = ["url"];
|
|
2
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
2
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import { createRequestConfig } from 'contentful-sdk-core';
|
|
5
5
|
import entities from './entities';
|
|
6
6
|
/**
|
|
@@ -4,8 +4,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
8
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
7
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
9
9
|
import { createRequestConfig } from 'contentful-sdk-core';
|
|
10
10
|
import entities from './entities';
|
|
11
11
|
import { wrapReleaseAction, wrapReleaseActionCollection } from './entities/release-action';
|
|
@@ -14,6 +14,8 @@ import { wrapTag, wrapTagCollection } from './entities/tag';
|
|
|
14
14
|
import { wrapUIConfig } from './entities/ui-config';
|
|
15
15
|
import { wrapUserUIConfig } from './entities/user-ui-config';
|
|
16
16
|
import { wrapEnvironmentTemplateInstallationCollection } from './entities/environment-template-installation';
|
|
17
|
+
import { wrapFunctionCollection } from './entities/function';
|
|
18
|
+
import { wrapFunctionLog, wrapFunctionLogCollection } from './entities/function-log';
|
|
17
19
|
|
|
18
20
|
/**
|
|
19
21
|
* @private
|
|
@@ -1658,6 +1660,123 @@ export default function createEnvironmentApi(makeRequest) {
|
|
|
1658
1660
|
payload: data
|
|
1659
1661
|
}).then(payload => wrapAppAccessToken(makeRequest, payload));
|
|
1660
1662
|
},
|
|
1663
|
+
/**
|
|
1664
|
+
* Gets a collection of Functions for a given environment
|
|
1665
|
+
* @param appInstallationId
|
|
1666
|
+
* @param {import('../common-types').AcceptsQueryOptions} query - optional query parameter for filtering functions by action
|
|
1667
|
+
* @return Promise containing wrapped collection of Functions in an environment
|
|
1668
|
+
* @example ```javascript
|
|
1669
|
+
* const contentful = require('contentful-management')
|
|
1670
|
+
*
|
|
1671
|
+
* const client = contentful.createClient({
|
|
1672
|
+
* accessToken: '<content_management_api_key>'
|
|
1673
|
+
* })
|
|
1674
|
+
*
|
|
1675
|
+
* client
|
|
1676
|
+
* .getSpace('<space-id>')
|
|
1677
|
+
* .then((space) => space.getEnvironment('<environment-id>'))
|
|
1678
|
+
* .then((environment) => environment.getFunctionsForEnvironment('<app-installation-id>', { 'accepts[all]': '<action>' }))
|
|
1679
|
+
* .then((functions) => console.log(functions.items))
|
|
1680
|
+
* .catch(console.error)
|
|
1681
|
+
* ```
|
|
1682
|
+
*/
|
|
1683
|
+
getFunctionsForEnvironment(appInstallationId, query) {
|
|
1684
|
+
const raw = this.toPlainObject();
|
|
1685
|
+
return makeRequest({
|
|
1686
|
+
entityType: 'Function',
|
|
1687
|
+
action: 'getManyForEnvironment',
|
|
1688
|
+
params: {
|
|
1689
|
+
spaceId: raw.sys.space.sys.id,
|
|
1690
|
+
environmentId: raw.sys.id,
|
|
1691
|
+
appInstallationId,
|
|
1692
|
+
query
|
|
1693
|
+
}
|
|
1694
|
+
}).then(data => wrapFunctionCollection(makeRequest, data));
|
|
1695
|
+
},
|
|
1696
|
+
/**
|
|
1697
|
+
* Gets a collection of FunctionLogs for a given app installation id and FunctionId
|
|
1698
|
+
* @param appInstallationId
|
|
1699
|
+
* @param functionId
|
|
1700
|
+
* @param {import('../common-types').CursorBasedParams} query - optional query parameter for pagination (limit, nextPage, prevPage)
|
|
1701
|
+
* @return Promise containing wrapped collection of FunctionLogs
|
|
1702
|
+
* * @example ```javascript
|
|
1703
|
+
* const contentful = require('contentful-management')
|
|
1704
|
+
*
|
|
1705
|
+
* const client = contentful.createClient({
|
|
1706
|
+
* accessToken: '<content_management_api_key>'
|
|
1707
|
+
* })
|
|
1708
|
+
*
|
|
1709
|
+
* client
|
|
1710
|
+
* .getSpace('<space-id>')
|
|
1711
|
+
* .then((space) => space.getEnvironment('<environment-id>'))
|
|
1712
|
+
* .then((environment) =>
|
|
1713
|
+
* environment.getFunctionLogs(
|
|
1714
|
+
* '<app-installation-id>',
|
|
1715
|
+
* '<function-id>',
|
|
1716
|
+
* { limit: 10 },
|
|
1717
|
+
* )
|
|
1718
|
+
* )
|
|
1719
|
+
* .then((functionLogs) => console.log(functionLog.items))
|
|
1720
|
+
* .catch(console.error)
|
|
1721
|
+
* ```
|
|
1722
|
+
*/
|
|
1723
|
+
getFunctionLogs(appInstallationId, functionId, query) {
|
|
1724
|
+
const raw = this.toPlainObject();
|
|
1725
|
+
return makeRequest({
|
|
1726
|
+
entityType: 'FunctionLog',
|
|
1727
|
+
action: 'getMany',
|
|
1728
|
+
params: {
|
|
1729
|
+
spaceId: raw.sys.space.sys.id,
|
|
1730
|
+
environmentId: raw.sys.id,
|
|
1731
|
+
appInstallationId,
|
|
1732
|
+
functionId,
|
|
1733
|
+
query: query ? createRequestConfig({
|
|
1734
|
+
query
|
|
1735
|
+
}).params : undefined
|
|
1736
|
+
}
|
|
1737
|
+
}).then(data => wrapFunctionLogCollection(makeRequest, data));
|
|
1738
|
+
},
|
|
1739
|
+
/**
|
|
1740
|
+
* Gets a FunctionLog by appInstallationId, functionId and logId
|
|
1741
|
+
* @param appInstallationId
|
|
1742
|
+
* @param functionId
|
|
1743
|
+
* @param logId
|
|
1744
|
+
* @return Promise containing a wrapped FunctionLog
|
|
1745
|
+
* @example ```javascript
|
|
1746
|
+
* const contentful = require('contentful-management')
|
|
1747
|
+
*
|
|
1748
|
+
* const client = contentful.createClient({
|
|
1749
|
+
* accessToken: '<content_management_api_key>'
|
|
1750
|
+
* })
|
|
1751
|
+
*
|
|
1752
|
+
* client
|
|
1753
|
+
* .getSpace(<space-id>)
|
|
1754
|
+
* .then((space) => space.getEnvironment('<environment-id>'))
|
|
1755
|
+
* .then((environment) =>
|
|
1756
|
+
* environment.getFunctionLog(
|
|
1757
|
+
* '<app-installation-id>',
|
|
1758
|
+
* '<function-id>',
|
|
1759
|
+
* '<log-id>'
|
|
1760
|
+
* )
|
|
1761
|
+
* )
|
|
1762
|
+
* .then((functionLog) => console.log(functionLog))
|
|
1763
|
+
* .catch(console.error)
|
|
1764
|
+
* ```
|
|
1765
|
+
*/
|
|
1766
|
+
getFunctionLog(appInstallationId, functionId, logId) {
|
|
1767
|
+
const raw = this.toPlainObject();
|
|
1768
|
+
return makeRequest({
|
|
1769
|
+
entityType: 'FunctionLog',
|
|
1770
|
+
action: 'get',
|
|
1771
|
+
params: {
|
|
1772
|
+
spaceId: raw.sys.space.sys.id,
|
|
1773
|
+
environmentId: raw.sys.id,
|
|
1774
|
+
appInstallationId,
|
|
1775
|
+
functionId,
|
|
1776
|
+
logId
|
|
1777
|
+
}
|
|
1778
|
+
}).then(data => wrapFunctionLog(makeRequest, data));
|
|
1779
|
+
},
|
|
1661
1780
|
/**
|
|
1662
1781
|
* Gets all snapshots of an entry
|
|
1663
1782
|
* @func getEntrySnapshots
|
|
@@ -4,8 +4,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
8
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
7
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
8
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
9
9
|
import { createRequestConfig } from 'contentful-sdk-core';
|
|
10
10
|
import entities from './entities';
|
|
11
11
|
export function createEnvironmentTemplateApi(makeRequest, organizationId) {
|
|
@@ -68,6 +68,10 @@ export default function createOrganizationApi(makeRequest) {
|
|
|
68
68
|
wrapAppAction,
|
|
69
69
|
wrapAppActionCollection
|
|
70
70
|
} = entities.appAction;
|
|
71
|
+
const {
|
|
72
|
+
wrapFunction,
|
|
73
|
+
wrapFunctionCollection
|
|
74
|
+
} = entities.func;
|
|
71
75
|
const {
|
|
72
76
|
wrapRoleCollection
|
|
73
77
|
} = entities.role;
|
|
@@ -1247,6 +1251,56 @@ export default function createOrganizationApi(makeRequest) {
|
|
|
1247
1251
|
appDefinitionId
|
|
1248
1252
|
}
|
|
1249
1253
|
}).then(payload => wrapAppActionCollection(makeRequest, payload));
|
|
1254
|
+
},
|
|
1255
|
+
/**
|
|
1256
|
+
* Gets an app function
|
|
1257
|
+
* @param appDefinitionId
|
|
1258
|
+
* @param functionId
|
|
1259
|
+
* @returns Promise for a Function
|
|
1260
|
+
* @example ```javascript
|
|
1261
|
+
* const contentful = require('contentful-management')
|
|
1262
|
+
* const client = contentful.createClient({
|
|
1263
|
+
* accessToken: '<content_management_api_key>'
|
|
1264
|
+
* })
|
|
1265
|
+
* const org = await client.getOrganization('<org_id>')
|
|
1266
|
+
* const functions = await org.getFunction('<app_definition_id>', '<function_id>')
|
|
1267
|
+
*/
|
|
1268
|
+
getFunction(appDefinitionId, functionId) {
|
|
1269
|
+
const raw = this.toPlainObject();
|
|
1270
|
+
return makeRequest({
|
|
1271
|
+
entityType: 'Function',
|
|
1272
|
+
action: 'get',
|
|
1273
|
+
params: {
|
|
1274
|
+
organizationId: raw.sys.id,
|
|
1275
|
+
appDefinitionId,
|
|
1276
|
+
functionId
|
|
1277
|
+
}
|
|
1278
|
+
}).then(payload => wrapFunction(makeRequest, payload));
|
|
1279
|
+
},
|
|
1280
|
+
/**
|
|
1281
|
+
* Gets a collection of app functions.
|
|
1282
|
+
* @param appDefinitionId
|
|
1283
|
+
* @param {import('../common-types').AcceptsQueryOptions} query - optional query parameter for filtering functions by action
|
|
1284
|
+
* @returns Promise for a Function
|
|
1285
|
+
* @example ```javascript
|
|
1286
|
+
* const contentful = require('contentful-management')
|
|
1287
|
+
* const client = contentful.createClient({
|
|
1288
|
+
* accessToken: '<content_management_api_key>'
|
|
1289
|
+
* })
|
|
1290
|
+
* const org = await client.getOrganization('<org_id>')
|
|
1291
|
+
* const functions = await org.getFunctions('<app_definition_id>', { 'accepts[all]': '<action>' })
|
|
1292
|
+
*/
|
|
1293
|
+
getFunctions(appDefinitionId, query) {
|
|
1294
|
+
const raw = this.toPlainObject();
|
|
1295
|
+
return makeRequest({
|
|
1296
|
+
entityType: 'Function',
|
|
1297
|
+
action: 'getMany',
|
|
1298
|
+
params: {
|
|
1299
|
+
organizationId: raw.sys.id,
|
|
1300
|
+
appDefinitionId,
|
|
1301
|
+
query
|
|
1302
|
+
}
|
|
1303
|
+
}).then(payload => wrapFunctionCollection(makeRequest, payload));
|
|
1250
1304
|
}
|
|
1251
1305
|
};
|
|
1252
1306
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { freezeSys, toPlainObject } from 'contentful-sdk-core';
|
|
2
|
+
import copy from 'fast-copy';
|
|
3
|
+
import { wrapCollection } from '../common-utils';
|
|
4
|
+
/**
|
|
5
|
+
* @private
|
|
6
|
+
* @param makeRequest - function to make requests via an adapter
|
|
7
|
+
* @param data - raw contentful-Function data
|
|
8
|
+
* @return Wrapped Function data
|
|
9
|
+
*/
|
|
10
|
+
export function wrapFunctionLog(makeRequest, data) {
|
|
11
|
+
const functionLog = toPlainObject(copy(data));
|
|
12
|
+
return freezeSys(functionLog);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @private
|
|
17
|
+
* @param makeRequest - function to make requests via an adapter
|
|
18
|
+
* @param data - raw contentful-function data
|
|
19
|
+
* @return Wrapped App Function collection data
|
|
20
|
+
*/
|
|
21
|
+
export const wrapFunctionLogCollection = wrapCollection(wrapFunctionLog);
|
|
@@ -2,7 +2,48 @@ import { freezeSys, toPlainObject } from 'contentful-sdk-core';
|
|
|
2
2
|
import copy from 'fast-copy';
|
|
3
3
|
import { wrapCollection } from '../common-utils';
|
|
4
4
|
import enhanceWithMethods from '../enhance-with-methods';
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* @private
|
|
7
|
+
*/
|
|
8
|
+
function createFunctionApi(makeRequest) {
|
|
9
|
+
return {
|
|
10
|
+
getFunction: function getFunction() {
|
|
11
|
+
const raw = this.toPlainObject();
|
|
12
|
+
return makeRequest({
|
|
13
|
+
entityType: 'Function',
|
|
14
|
+
action: 'get',
|
|
15
|
+
params: {
|
|
16
|
+
organizationId: raw.sys.organization.sys.id,
|
|
17
|
+
appDefinitionId: raw.sys.appDefinition.sys.id,
|
|
18
|
+
functionId: raw.sys.id
|
|
19
|
+
}
|
|
20
|
+
}).then(data => wrapFunction(makeRequest, data));
|
|
21
|
+
},
|
|
22
|
+
getManyFunctions: function getManyFunctions() {
|
|
23
|
+
const raw = this.toPlainObject();
|
|
24
|
+
return makeRequest({
|
|
25
|
+
entityType: 'Function',
|
|
26
|
+
action: 'getMany',
|
|
27
|
+
params: {
|
|
28
|
+
appDefinitionId: raw.sys.appDefinition.sys.id,
|
|
29
|
+
organizationId: raw.sys.organization.sys.id
|
|
30
|
+
}
|
|
31
|
+
}).then(data => wrapFunctionCollection(makeRequest, data));
|
|
32
|
+
},
|
|
33
|
+
getManyFunctionsForEnvironment(spaceId, environmentId, appInstallationId) {
|
|
34
|
+
return makeRequest({
|
|
35
|
+
entityType: 'Function',
|
|
36
|
+
action: 'getManyForEnvironment',
|
|
37
|
+
params: {
|
|
38
|
+
spaceId: spaceId,
|
|
39
|
+
environmentId: environmentId,
|
|
40
|
+
appInstallationId: appInstallationId
|
|
41
|
+
}
|
|
42
|
+
}).then(data => wrapFunctionCollection(makeRequest, data));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
|
|
6
47
|
/**
|
|
7
48
|
* @private
|
|
8
49
|
* @param makeRequest - (real) function to make requests via an adapter
|
|
@@ -10,15 +51,11 @@ import createFunctionApi from '../create-function-api';
|
|
|
10
51
|
* @return Wrapped Function data
|
|
11
52
|
*/
|
|
12
53
|
export function wrapFunction(makeRequest, data) {
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
return freezeSys(
|
|
54
|
+
const func = toPlainObject(copy(data));
|
|
55
|
+
const funcWithMethods = enhanceWithMethods(func, createFunctionApi(makeRequest));
|
|
56
|
+
return freezeSys(funcWithMethods);
|
|
16
57
|
}
|
|
17
|
-
|
|
18
58
|
/**
|
|
19
59
|
* @private
|
|
20
|
-
* @param makeRequest - real) function to make requests via an adapter
|
|
21
|
-
* @param data - raw contentful-function data
|
|
22
|
-
* @return Wrapped App Function collection data
|
|
23
60
|
*/
|
|
24
61
|
export const wrapFunctionCollection = wrapCollection(wrapFunction);
|
|
@@ -24,6 +24,7 @@ import * as environmentTemplate from './environment-template';
|
|
|
24
24
|
import * as environmentTemplateInstallation from './environment-template-installation';
|
|
25
25
|
import * as extension from './extension';
|
|
26
26
|
import * as func from './function';
|
|
27
|
+
import * as functionLog from './function-log';
|
|
27
28
|
import * as locale from './locale';
|
|
28
29
|
import * as organization from './organization';
|
|
29
30
|
import * as organizationInvitation from './organization-invitation';
|
|
@@ -86,6 +87,7 @@ export default {
|
|
|
86
87
|
environmentTemplateInstallation,
|
|
87
88
|
extension,
|
|
88
89
|
func,
|
|
90
|
+
functionLog,
|
|
89
91
|
locale,
|
|
90
92
|
organization,
|
|
91
93
|
organizationInvitation,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const _excluded = ["sys"];
|
|
2
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
2
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
import { freezeSys, toPlainObject } from 'contentful-sdk-core';
|
|
5
5
|
import copy from 'fast-copy';
|
|
6
6
|
import { wrapCollection } from '../common-utils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const _excluded = ["fieldId"];
|
|
2
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var
|
|
3
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.
|
|
2
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
3
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
4
4
|
/**
|
|
5
5
|
* @private
|
|
6
6
|
* @param id - unique ID of the field
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -143,6 +143,10 @@ export const createPlainClient = (makeRequest, defaults) => {
|
|
|
143
143
|
getMany: wrap(wrapParams, 'Function', 'getMany'),
|
|
144
144
|
getManyForEnvironment: wrap(wrapParams, 'Function', 'getManyForEnvironment')
|
|
145
145
|
},
|
|
146
|
+
functionLog: {
|
|
147
|
+
get: wrap(wrapParams, 'FunctionLog', 'get'),
|
|
148
|
+
getMany: wrap(wrapParams, 'FunctionLog', 'getMany')
|
|
149
|
+
},
|
|
146
150
|
editorInterface: {
|
|
147
151
|
get: wrap(wrapParams, 'EditorInterface', 'get'),
|
|
148
152
|
getMany: wrap(wrapParams, 'EditorInterface', 'getMany'),
|
|
@@ -27,6 +27,7 @@ import * as EnvironmentTemplate from './environment-template';
|
|
|
27
27
|
import * as EnvironmentTemplateInstallation from './environment-template-installation';
|
|
28
28
|
import * as Extension from './extension';
|
|
29
29
|
import * as Function from './function';
|
|
30
|
+
import * as FunctionLog from './function-log';
|
|
30
31
|
import * as Http from './http';
|
|
31
32
|
import * as Locale from './locale';
|
|
32
33
|
import * as Organization from './organization';
|
|
@@ -89,6 +90,7 @@ declare const _default: {
|
|
|
89
90
|
EnvironmentTemplateInstallation: typeof EnvironmentTemplateInstallation;
|
|
90
91
|
Extension: typeof Extension;
|
|
91
92
|
Function: typeof Function;
|
|
93
|
+
FunctionLog: typeof FunctionLog;
|
|
92
94
|
Http: typeof Http;
|
|
93
95
|
Locale: typeof Locale;
|
|
94
96
|
Organization: typeof Organization;
|