contentful-management 11.43.0 → 11.43.2
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 +732 -317
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +831 -397
- 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/bulk-action.js +0 -2
- package/dist/es-modules/adapters/REST/endpoints/release-action.js +0 -2
- package/dist/es-modules/common-types.js +0 -1
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/entities/bulk-action.js +4 -0
- package/dist/es-modules/entities/scheduled-action.js +5 -0
- package/dist/typings/common-types.d.ts +1 -1
- package/package.json +8 -19
|
@@ -3,8 +3,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
3
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
4
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
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
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
7
|
-
|
|
8
6
|
import * as raw from './raw';
|
|
9
7
|
export const get = (http, params) => {
|
|
10
8
|
return raw.get(http, `/spaces/${params.spaceId}/environments/${params.environmentId}/releases/${params.releaseId}/actions/${params.actionId}`);
|
|
@@ -43,7 +43,6 @@
|
|
|
43
43
|
*/
|
|
44
44
|
|
|
45
45
|
/** Base interface for all Payload interfaces. Used as part of the MakeRequestOptions to simplify payload definitions. */
|
|
46
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
47
46
|
|
|
48
47
|
export let ScheduledActionReferenceFilters = /*#__PURE__*/function (ScheduledActionReferenceFilters) {
|
|
49
48
|
ScheduledActionReferenceFilters["contentTypeAnnotationNotIn"] = "sys.contentType.metadata.annotations.ContentType[nin]";
|
|
@@ -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.43.
|
|
49
|
+
`${sdkMain}/${"11.43.2"}`, params.application, params.integration, params.feature);
|
|
50
50
|
const adapter = createAdapter(_objectSpread(_objectSpread({}, params), {}, {
|
|
51
51
|
userAgent
|
|
52
52
|
}));
|
|
@@ -8,9 +8,13 @@ import { pollAsyncActionStatus } from '../methods/action';
|
|
|
8
8
|
|
|
9
9
|
/** Represents the state of the BulkAction */
|
|
10
10
|
export let BulkActionStatus = /*#__PURE__*/function (BulkActionStatus) {
|
|
11
|
+
/** BulkAction is pending execution */
|
|
11
12
|
BulkActionStatus["created"] = "created";
|
|
13
|
+
/** BulkAction has been started and pending completion */
|
|
12
14
|
BulkActionStatus["inProgress"] = "inProgress";
|
|
15
|
+
/** BulkAction was completed successfully (terminal state) */
|
|
13
16
|
BulkActionStatus["succeeded"] = "succeeded";
|
|
17
|
+
/** BulkAction failed to complete (terminal state) */
|
|
14
18
|
BulkActionStatus["failed"] = "failed";
|
|
15
19
|
return BulkActionStatus;
|
|
16
20
|
}({});
|
|
@@ -10,10 +10,15 @@ import enhanceWithMethods from '../enhance-with-methods';
|
|
|
10
10
|
* Represents that state of the scheduled action
|
|
11
11
|
*/
|
|
12
12
|
export let ScheduledActionStatus = /*#__PURE__*/function (ScheduledActionStatus) {
|
|
13
|
+
/** action is pending execution */
|
|
13
14
|
ScheduledActionStatus["scheduled"] = "scheduled";
|
|
15
|
+
/** action has been started and pending completion */
|
|
14
16
|
ScheduledActionStatus["inProgress"] = "inProgress";
|
|
17
|
+
/** action was completed successfully (terminal state) */
|
|
15
18
|
ScheduledActionStatus["succeeded"] = "succeeded";
|
|
19
|
+
/** action failed to complete (terminal state) */
|
|
16
20
|
ScheduledActionStatus["failed"] = "failed";
|
|
21
|
+
/** action was canceled by a user (terminal state) */
|
|
17
22
|
ScheduledActionStatus["canceled"] = "canceled";
|
|
18
23
|
return ScheduledActionStatus;
|
|
19
24
|
}({});
|
|
@@ -152,7 +152,7 @@ export interface EntityMetaSysProps extends MetaSysProps {
|
|
|
152
152
|
firstPublishedAt?: string;
|
|
153
153
|
publishedCounter?: number;
|
|
154
154
|
locale?: string;
|
|
155
|
-
fieldStatus
|
|
155
|
+
fieldStatus?: {
|
|
156
156
|
'*': Record<string, 'draft' | 'changed' | 'published'>;
|
|
157
157
|
};
|
|
158
158
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-management",
|
|
3
|
-
"version": "11.43.
|
|
3
|
+
"version": "11.43.2",
|
|
4
4
|
"description": "Client for Contentful's Content Management API",
|
|
5
5
|
"homepage": "https://www.contentful.com/developers/documentation/content-management-api/",
|
|
6
6
|
"main": "./dist/contentful-management.node.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"docs:watch": "nodemon --exec npm run docs:dev -w lib typings",
|
|
36
36
|
"docs:publish": "npm run build:docs && ./node_modules/contentful-sdk-jsdoc/bin/publish-docs.sh contentful-management.js contentful-management",
|
|
37
37
|
"check-types": "tsc",
|
|
38
|
-
"lint": "eslint lib test
|
|
38
|
+
"lint": "eslint lib test",
|
|
39
39
|
"pretest": "rimraf coverage && npm run lint",
|
|
40
40
|
"test": "npm run test:cover-unit && npm run test:types && npm run test:cover-integration && npm run test:size",
|
|
41
41
|
"test:cover-unit": "npm run test:unit -- --coverage",
|
|
@@ -70,7 +70,6 @@
|
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@babel/cli": "^7.24.6",
|
|
72
72
|
"@babel/core": "^7.24.6",
|
|
73
|
-
"@babel/eslint-parser": "^7.24.6",
|
|
74
73
|
"@babel/node": "^7.13.13",
|
|
75
74
|
"@babel/plugin-proposal-class-properties": "^7.12.1",
|
|
76
75
|
"@babel/plugin-proposal-export-namespace-from": "^7.12.1",
|
|
@@ -80,13 +79,12 @@
|
|
|
80
79
|
"@babel/preset-env": "^7.24.6",
|
|
81
80
|
"@babel/preset-typescript": "^7.24.7",
|
|
82
81
|
"@contentful/integration-test-utils": "^2.0.1",
|
|
82
|
+
"@eslint/js": "^9.15.0",
|
|
83
83
|
"@semantic-release/changelog": "^6.0.0",
|
|
84
84
|
"@size-limit/file": "^11.1.6",
|
|
85
85
|
"@types/json-patch": "0.0.30",
|
|
86
86
|
"@types/lodash": "^4.14.168",
|
|
87
87
|
"@types/node": "^20.12.13",
|
|
88
|
-
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
89
|
-
"@typescript-eslint/parser": "^7.14.1",
|
|
90
88
|
"@vitest/browser": "^2.1.5",
|
|
91
89
|
"@vitest/coverage-v8": "^2.1.5",
|
|
92
90
|
"babel-loader": "^8.2.1",
|
|
@@ -94,14 +92,9 @@
|
|
|
94
92
|
"babel-plugin-lodash": "^3.3.4",
|
|
95
93
|
"contentful-sdk-jsdoc": "3.1.0",
|
|
96
94
|
"cz-conventional-changelog": "^3.3.0",
|
|
97
|
-
"eslint": "^
|
|
98
|
-
"eslint-config-prettier": "^9.0.0",
|
|
99
|
-
"eslint-plugin-import": "^2.22.1",
|
|
100
|
-
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
101
|
-
"eslint-plugin-node": "^11.1.0",
|
|
102
|
-
"eslint-plugin-promise": "^6.2.0",
|
|
95
|
+
"eslint": "^9.15.0",
|
|
103
96
|
"express": "^4.21.1",
|
|
104
|
-
"husky": "^
|
|
97
|
+
"husky": "^9.1.7",
|
|
105
98
|
"in-publish": "^2.0.1",
|
|
106
99
|
"json-patch": "^0.7.0",
|
|
107
100
|
"jsonwebtoken": "^9.0.2",
|
|
@@ -116,7 +109,8 @@
|
|
|
116
109
|
"size-limit": "^11.1.6",
|
|
117
110
|
"type-fest": "^4.18.3",
|
|
118
111
|
"typedoc": "^0.26.2",
|
|
119
|
-
"typescript": "^5.
|
|
112
|
+
"typescript": "^5.6.3",
|
|
113
|
+
"typescript-eslint": "^8.16.0",
|
|
120
114
|
"vitest": "^2.1.5",
|
|
121
115
|
"webpack": "^5.91.0",
|
|
122
116
|
"webpack-bundle-analyzer": "^4.9.0",
|
|
@@ -128,7 +122,7 @@
|
|
|
128
122
|
}
|
|
129
123
|
},
|
|
130
124
|
"lint-staged": {
|
|
131
|
-
"*.{js,
|
|
125
|
+
"*.{js,ts}": [
|
|
132
126
|
"prettier --write",
|
|
133
127
|
"eslint"
|
|
134
128
|
],
|
|
@@ -136,11 +130,6 @@
|
|
|
136
130
|
"prettier --write"
|
|
137
131
|
]
|
|
138
132
|
},
|
|
139
|
-
"husky": {
|
|
140
|
-
"hooks": {
|
|
141
|
-
"pre-commit": "lint-staged"
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
133
|
"release": {
|
|
145
134
|
"branches": [
|
|
146
135
|
"master",
|