contentful-management 7.5.2 → 7.7.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/CHANGELOG.md +3 -3
- package/dist/contentful-management.browser.js +59 -10
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.legacy.js +59 -10
- package/dist/contentful-management.legacy.js.map +1 -1
- package/dist/contentful-management.legacy.min.js +1 -1
- package/dist/contentful-management.node.js +92 -27
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/create-cma-http-client.js +1 -1
- package/dist/es-modules/create-contentful-api.js +2 -2
- package/dist/es-modules/plain/endpoints/user.js +4 -2
- package/dist/es-modules/plain/plain-client.js +21 -3
- package/dist/typings/create-contentful-api.d.ts +5 -1
- package/dist/typings/create-organization-api.d.ts +6 -2
- package/dist/typings/create-space-api.d.ts +6 -2
- package/dist/typings/entities/user.d.ts +6 -2
- package/dist/typings/plain/endpoints/raw.d.ts +1 -1
- package/dist/typings/plain/endpoints/user.d.ts +1 -1
- package/dist/typings/plain/plain-client.d.ts +27 -27
- package/package.json +2 -2
|
@@ -23,7 +23,7 @@ export function createCMAHttpClient(params) {
|
|
|
23
23
|
var plainClient = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
24
24
|
var sdkMain = plainClient ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
25
25
|
var userAgentHeader = getUserAgentHeader( // @ts-expect-error
|
|
26
|
-
"".concat(sdkMain, "/").concat("7.
|
|
26
|
+
"".concat(sdkMain, "/").concat("7.7.0"), params.application, params.integration, params.feature);
|
|
27
27
|
var requiredHeaders = {
|
|
28
28
|
'Content-Type': 'application/vnd.contentful.management.v1+json',
|
|
29
29
|
'X-Contentful-User-Agent': userAgentHeader
|
|
@@ -153,8 +153,8 @@ export default function createClientApi(_ref) {
|
|
|
153
153
|
* .catch(console.error)
|
|
154
154
|
* ```
|
|
155
155
|
*/
|
|
156
|
-
getCurrentUser: function getCurrentUser() {
|
|
157
|
-
return endpoints.user.getCurrent(http).then(function (data) {
|
|
156
|
+
getCurrentUser: function getCurrentUser(params) {
|
|
157
|
+
return endpoints.user.getCurrent(http, params).then(function (data) {
|
|
158
158
|
return wrapUser(http, data);
|
|
159
159
|
});
|
|
160
160
|
},
|
|
@@ -2,8 +2,10 @@ import * as raw from './raw';
|
|
|
2
2
|
export var getForSpace = function getForSpace(http, params) {
|
|
3
3
|
return raw.get(http, "/spaces/".concat(params.spaceId, "/users/").concat(params.userId));
|
|
4
4
|
};
|
|
5
|
-
export var getCurrent = function getCurrent(http) {
|
|
6
|
-
return raw.get(http, "/users/me"
|
|
5
|
+
export var getCurrent = function getCurrent(http, params) {
|
|
6
|
+
return raw.get(http, "/users/me", {
|
|
7
|
+
params: params === null || params === void 0 ? void 0 : params.query
|
|
8
|
+
});
|
|
7
9
|
};
|
|
8
10
|
export var getManyForSpace = function getManyForSpace(http, params) {
|
|
9
11
|
return raw.get(http, "/spaces/".concat(params.spaceId, "/users"), {
|
|
@@ -128,7 +128,25 @@ export var createPlainClient = function createPlainClient(params, defaults) {
|
|
|
128
128
|
user: {
|
|
129
129
|
getManyForSpace: wrap(wrapParams, endpoints.user.getManyForSpace),
|
|
130
130
|
getForSpace: wrap(wrapParams, endpoints.user.getForSpace),
|
|
131
|
-
getCurrent:
|
|
131
|
+
getCurrent: function (_getCurrent) {
|
|
132
|
+
function getCurrent() {
|
|
133
|
+
return _getCurrent.apply(this, arguments);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
getCurrent.toString = function () {
|
|
137
|
+
return _getCurrent.toString();
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
return getCurrent;
|
|
141
|
+
}(function () {
|
|
142
|
+
var _endpoints$user;
|
|
143
|
+
|
|
144
|
+
for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
|
145
|
+
args[_key6] = arguments[_key6];
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
return (_endpoints$user = endpoints.user).getCurrent.apply(_endpoints$user, [_http].concat(args));
|
|
149
|
+
}),
|
|
132
150
|
getForOrganization: wrap(wrapParams, endpoints.user.getForOrganization),
|
|
133
151
|
getManyForOrganization: wrap(wrapParams, endpoints.user.getManyForOrganization)
|
|
134
152
|
},
|
|
@@ -187,8 +205,8 @@ export var createPlainClient = function createPlainClient(params, defaults) {
|
|
|
187
205
|
}(function () {
|
|
188
206
|
var _endpoints$personalAc;
|
|
189
207
|
|
|
190
|
-
for (var
|
|
191
|
-
args[
|
|
208
|
+
for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
|
|
209
|
+
args[_key7] = arguments[_key7];
|
|
192
210
|
}
|
|
193
211
|
|
|
194
212
|
return (_endpoints$personalAc = endpoints.personalAccessToken).create.apply(_endpoints$personalAc, [_http].concat(args));
|
|
@@ -4,7 +4,9 @@ import { Collection, QueryOptions } from './common-types';
|
|
|
4
4
|
import { OrganizationProp, Organization } from './entities/organization';
|
|
5
5
|
import { SpaceProps, Space } from './entities/space';
|
|
6
6
|
import { CreatePersonalAccessTokenProps } from './entities/personal-access-token';
|
|
7
|
+
import { QueryParams } from './plain/endpoints/common-types';
|
|
7
8
|
import { UsageQuery } from './entities/usage';
|
|
9
|
+
import { UserProps } from './entities/user';
|
|
8
10
|
export declare type ClientAPI = ReturnType<typeof createClientApi>;
|
|
9
11
|
export default function createClientApi({ http }: {
|
|
10
12
|
http: AxiosInstance;
|
|
@@ -110,7 +112,9 @@ export default function createClientApi({ http }: {
|
|
|
110
112
|
* .catch(console.error)
|
|
111
113
|
* ```
|
|
112
114
|
*/
|
|
113
|
-
getCurrentUser: () => Promise<
|
|
115
|
+
getCurrentUser: <T = UserProps>(params?: QueryParams | undefined) => Promise<T & {
|
|
116
|
+
toPlainObject(): T;
|
|
117
|
+
}>;
|
|
114
118
|
/**
|
|
115
119
|
* Creates a personal access token
|
|
116
120
|
* @param data - personal access token config
|
|
@@ -26,7 +26,9 @@ export default function createOrganizationApi({ http }: {
|
|
|
26
26
|
* .catch(console.error)
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
getUser(id: string): Promise<import("./export-types").
|
|
29
|
+
getUser(id: string): Promise<import("./export-types").UserProps & {
|
|
30
|
+
toPlainObject(): import("./export-types").UserProps;
|
|
31
|
+
}>;
|
|
30
32
|
/**
|
|
31
33
|
* Gets a collection of Users in organization
|
|
32
34
|
* @param query - Object with search parameters. Check the <a href="https://www.contentful.com/developers/docs/javascript/tutorials/using-js-cda-sdk/#retrieving-entries-with-search-parameters">JS SDK tutorial</a> and the <a href="https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters">REST API reference</a> for more details.
|
|
@@ -43,7 +45,9 @@ export default function createOrganizationApi({ http }: {
|
|
|
43
45
|
* .catch(console.error)
|
|
44
46
|
* ```
|
|
45
47
|
*/
|
|
46
|
-
getUsers(query?: QueryOptions): Promise<import("./common-types").Collection<import("./export-types").
|
|
48
|
+
getUsers(query?: QueryOptions): Promise<import("./common-types").Collection<import("./export-types").UserProps & {
|
|
49
|
+
toPlainObject(): import("./export-types").UserProps;
|
|
50
|
+
}, import("./export-types").UserProps>>;
|
|
47
51
|
/**
|
|
48
52
|
* Gets an Organization Membership
|
|
49
53
|
* @param id - Organization Membership ID
|
|
@@ -364,7 +364,9 @@ export default function createSpaceApi({ http }: {
|
|
|
364
364
|
* .catch(console.error)
|
|
365
365
|
* ```
|
|
366
366
|
*/
|
|
367
|
-
getSpaceUser(userId: string): Promise<import("./export-types").
|
|
367
|
+
getSpaceUser(userId: string): Promise<import("./export-types").UserProps & {
|
|
368
|
+
toPlainObject(): import("./export-types").UserProps;
|
|
369
|
+
}>;
|
|
368
370
|
/**
|
|
369
371
|
* Gets a collection of Users in a space
|
|
370
372
|
* @param query - Object with search parameters. Check the <a href="https://www.contentful.com/developers/docs/javascript/tutorials/using-js-cda-sdk/#retrieving-entries-with-search-parameters">JS SDK tutorial</a> and the <a href="https://www.contentful.com/developers/docs/references/content-delivery-api/#/reference/search-parameters">REST API reference</a> for more details.
|
|
@@ -378,7 +380,9 @@ export default function createSpaceApi({ http }: {
|
|
|
378
380
|
* .catch(console.error)
|
|
379
381
|
* ```
|
|
380
382
|
*/
|
|
381
|
-
getSpaceUsers(query?: QueryOptions): Promise<import("./common-types").Collection<import("./export-types").
|
|
383
|
+
getSpaceUsers(query?: QueryOptions): Promise<import("./common-types").Collection<import("./export-types").UserProps & {
|
|
384
|
+
toPlainObject(): import("./export-types").UserProps;
|
|
385
|
+
}, import("./export-types").UserProps>>;
|
|
382
386
|
/**
|
|
383
387
|
* Gets a Space Member
|
|
384
388
|
* @param id Get Space Member by user_id
|
|
@@ -44,11 +44,15 @@ export interface User extends UserProps, DefaultElements<UserProps> {
|
|
|
44
44
|
* @param data - Raw data
|
|
45
45
|
* @return Normalized user
|
|
46
46
|
*/
|
|
47
|
-
export declare function wrapUser(http: AxiosInstance, data:
|
|
47
|
+
export declare function wrapUser<T = UserProps>(http: AxiosInstance, data: T): T & {
|
|
48
|
+
toPlainObject(): T;
|
|
49
|
+
};
|
|
48
50
|
/**
|
|
49
51
|
* @private
|
|
50
52
|
* @param http - HTTP client instance
|
|
51
53
|
* @param data - Raw data collection
|
|
52
54
|
* @return Normalized user collection
|
|
53
55
|
*/
|
|
54
|
-
export declare const wrapUserCollection: (http: AxiosInstance, data: import("../common-types").CollectionProp<
|
|
56
|
+
export declare const wrapUserCollection: <T = UserProps>(http: AxiosInstance, data: import("../common-types").CollectionProp<T>) => import("../common-types").Collection<T & {
|
|
57
|
+
toPlainObject(): T;
|
|
58
|
+
}, T>;
|
|
@@ -3,4 +3,4 @@ export declare function get<T = any>(http: AxiosInstance, url: string, config?:
|
|
|
3
3
|
export declare function post<T = any>(http: AxiosInstance, url: string, payload?: any, config?: AxiosRequestConfig): Promise<T>;
|
|
4
4
|
export declare function put<T = any>(http: AxiosInstance, url: string, payload?: any, config?: AxiosRequestConfig): Promise<T>;
|
|
5
5
|
export declare function del<T = any>(http: AxiosInstance, url: string, config?: AxiosRequestConfig): Promise<T>;
|
|
6
|
-
export declare function http<T = any>(http: AxiosInstance, url: string, config?: AxiosRequestConfig): Promise<
|
|
6
|
+
export declare function http<T = any>(http: AxiosInstance, url: string, config?: AxiosRequestConfig): Promise<T>;
|
|
@@ -4,7 +4,7 @@ import { UserProps } from '../../entities/user';
|
|
|
4
4
|
export declare const getForSpace: (http: AxiosInstance, params: GetSpaceParams & {
|
|
5
5
|
userId: string;
|
|
6
6
|
}) => Promise<UserProps>;
|
|
7
|
-
export declare const getCurrent: (http: AxiosInstance) => Promise<
|
|
7
|
+
export declare const getCurrent: <T = UserProps>(http: AxiosInstance, params?: QueryParams | undefined) => Promise<T>;
|
|
8
8
|
export declare const getManyForSpace: (http: AxiosInstance, params: GetSpaceParams & QueryParams) => Promise<CollectionProp<UserProps>>;
|
|
9
9
|
export declare const getForOrganization: (http: AxiosInstance, params: GetOrganizationParams & {
|
|
10
10
|
userId: string;
|
|
@@ -6,11 +6,11 @@ export declare type PlainClientAPI = ReturnType<typeof createPlainClient>;
|
|
|
6
6
|
export declare const createPlainClient: (params: ClientParams, defaults?: DefaultParams | undefined) => {
|
|
7
7
|
raw: {
|
|
8
8
|
getDefaultParams: () => DefaultParams | undefined;
|
|
9
|
-
get: (url: string, config?: import("axios").AxiosRequestConfig | undefined) => Promise<
|
|
10
|
-
post: (url: string, payload?: any, config?: import("axios").AxiosRequestConfig | undefined) => Promise<
|
|
11
|
-
put: (url: string, payload?: any, config?: import("axios").AxiosRequestConfig | undefined) => Promise<
|
|
12
|
-
delete: (url: string, config?: import("axios").AxiosRequestConfig | undefined) => Promise<
|
|
13
|
-
http: (url: string, config?: import("axios").AxiosRequestConfig | undefined) => Promise<
|
|
9
|
+
get: <T = unknown>(url: string, config?: import("axios").AxiosRequestConfig | undefined) => Promise<T>;
|
|
10
|
+
post: <T_1 = unknown>(url: string, payload?: any, config?: import("axios").AxiosRequestConfig | undefined) => Promise<T_1>;
|
|
11
|
+
put: <T_2 = unknown>(url: string, payload?: any, config?: import("axios").AxiosRequestConfig | undefined) => Promise<T_2>;
|
|
12
|
+
delete: <T_3 = unknown>(url: string, config?: import("axios").AxiosRequestConfig | undefined) => Promise<T_3>;
|
|
13
|
+
http: <T_4 = unknown>(url: string, config?: import("axios").AxiosRequestConfig | undefined) => Promise<T_4>;
|
|
14
14
|
};
|
|
15
15
|
editorInterface: {
|
|
16
16
|
get: (params: Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
@@ -111,7 +111,7 @@ export declare const createPlainClient: (params: ClientParams, defaults?: Defaul
|
|
|
111
111
|
}, "userId"> & Partial<Pick<import("./endpoints/common-types").GetSpaceParams & {
|
|
112
112
|
userId: string;
|
|
113
113
|
}, "spaceId">>) => Promise<import("../export-types").UserProps>;
|
|
114
|
-
getCurrent: () => Promise<import("../export-types").UserProps>;
|
|
114
|
+
getCurrent: (params?: import("./endpoints/common-types").QueryParams | undefined) => Promise<import("../export-types").UserProps>;
|
|
115
115
|
getForOrganization: (params: Pick<import("./endpoints/common-types").GetOrganizationParams & {
|
|
116
116
|
userId: string;
|
|
117
117
|
}, "userId"> & Partial<Pick<import("./endpoints/common-types").GetOrganizationParams & {
|
|
@@ -120,54 +120,54 @@ export declare const createPlainClient: (params: ClientParams, defaults?: Defaul
|
|
|
120
120
|
getManyForOrganization: (params: Pick<import("./endpoints/common-types").GetOrganizationParams & import("./endpoints/common-types").QueryParams, "query"> & Partial<Pick<import("./endpoints/common-types").GetOrganizationParams & import("./endpoints/common-types").QueryParams, "organizationId">>) => Promise<import("../common-types").CollectionProp<import("../export-types").UserProps>>;
|
|
121
121
|
};
|
|
122
122
|
entry: {
|
|
123
|
-
getMany: <
|
|
124
|
-
get: <
|
|
123
|
+
getMany: <T_5 extends Record<string, any> = Record<string, any>>(params: Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & import("./endpoints/common-types").QueryParams, "query"> & Partial<Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & import("./endpoints/common-types").QueryParams, "spaceId" | "environmentId">>) => Promise<import("../common-types").CollectionProp<import("../export-types").EntryProps<T_5>>>;
|
|
124
|
+
get: <T_6 extends Record<string, any> = Record<string, any>>(params: Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
125
125
|
entryId: string;
|
|
126
126
|
} & import("./endpoints/common-types").QueryParams, "query" | "entryId"> & Partial<Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
127
127
|
entryId: string;
|
|
128
|
-
} & import("./endpoints/common-types").QueryParams, "spaceId" | "environmentId">>) => Promise<import("../export-types").EntryProps<
|
|
129
|
-
update: <
|
|
128
|
+
} & import("./endpoints/common-types").QueryParams, "spaceId" | "environmentId">>) => Promise<import("../export-types").EntryProps<T_6>>;
|
|
129
|
+
update: <T_7 extends Record<string, any> = Record<string, any>>(params: Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
130
130
|
entryId: string;
|
|
131
131
|
}, "entryId"> & Partial<Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
132
132
|
entryId: string;
|
|
133
|
-
}, "spaceId" | "environmentId">>, rawData: import("../export-types").EntryProps<
|
|
133
|
+
}, "spaceId" | "environmentId">>, rawData: import("../export-types").EntryProps<T_7>, headers?: Record<string, unknown> | undefined) => Promise<import("../export-types").EntryProps<T_7>>;
|
|
134
134
|
delete: (params: Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
135
135
|
entryId: string;
|
|
136
136
|
}, "entryId"> & Partial<Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
137
137
|
entryId: string;
|
|
138
138
|
}, "spaceId" | "environmentId">>) => Promise<any>;
|
|
139
|
-
publish: <
|
|
139
|
+
publish: <T_8 extends Record<string, any> = Record<string, any>>(params: Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
140
140
|
entryId: string;
|
|
141
141
|
}, "entryId"> & Partial<Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
142
142
|
entryId: string;
|
|
143
|
-
}, "spaceId" | "environmentId">>, rawData: import("../export-types").EntryProps<
|
|
144
|
-
unpublish: <
|
|
143
|
+
}, "spaceId" | "environmentId">>, rawData: import("../export-types").EntryProps<T_8>) => Promise<import("../export-types").EntryProps<T_8>>;
|
|
144
|
+
unpublish: <T_9 extends Record<string, any> = Record<string, any>>(params: Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
145
145
|
entryId: string;
|
|
146
146
|
}, "entryId"> & Partial<Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
147
147
|
entryId: string;
|
|
148
|
-
}, "spaceId" | "environmentId">>) => Promise<import("../export-types").EntryProps<
|
|
149
|
-
archive: <
|
|
148
|
+
}, "spaceId" | "environmentId">>) => Promise<import("../export-types").EntryProps<T_9>>;
|
|
149
|
+
archive: <T_10 extends Record<string, any> = Record<string, any>>(params: Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
150
150
|
entryId: string;
|
|
151
151
|
}, "entryId"> & Partial<Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
152
152
|
entryId: string;
|
|
153
|
-
}, "spaceId" | "environmentId">>) => Promise<import("../export-types").EntryProps<
|
|
154
|
-
unarchive: <
|
|
153
|
+
}, "spaceId" | "environmentId">>) => Promise<import("../export-types").EntryProps<T_10>>;
|
|
154
|
+
unarchive: <T_11 extends Record<string, any> = Record<string, any>>(params: Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
155
155
|
entryId: string;
|
|
156
156
|
}, "entryId"> & Partial<Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
157
157
|
entryId: string;
|
|
158
|
-
}, "spaceId" | "environmentId">>) => Promise<import("../export-types").EntryProps<
|
|
159
|
-
create: <
|
|
158
|
+
}, "spaceId" | "environmentId">>) => Promise<import("../export-types").EntryProps<T_11>>;
|
|
159
|
+
create: <T_12 extends Record<string, any> = Record<string, any>>(params: Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
160
160
|
contentTypeId: string;
|
|
161
161
|
}, "contentTypeId"> & Partial<Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
162
162
|
contentTypeId: string;
|
|
163
|
-
}, "spaceId" | "environmentId">>, rawData: Pick<import("../export-types").EntryProps<
|
|
164
|
-
createWithId: <
|
|
163
|
+
}, "spaceId" | "environmentId">>, rawData: Pick<import("../export-types").EntryProps<T_12>, "metadata" | "fields">) => Promise<import("../export-types").EntryProps<T_12>>;
|
|
164
|
+
createWithId: <T_13 extends Record<string, any> = Record<string, any>>(params: Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
165
165
|
entryId: string;
|
|
166
166
|
contentTypeId: string;
|
|
167
167
|
}, "contentTypeId" | "entryId"> & Partial<Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
168
168
|
entryId: string;
|
|
169
169
|
contentTypeId: string;
|
|
170
|
-
}, "spaceId" | "environmentId">>, rawData: Pick<import("../export-types").EntryProps<
|
|
170
|
+
}, "spaceId" | "environmentId">>, rawData: Pick<import("../export-types").EntryProps<T_13>, "metadata" | "fields">) => Promise<import("../export-types").EntryProps<T_13>>;
|
|
171
171
|
};
|
|
172
172
|
asset: {
|
|
173
173
|
getMany: (params: Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & import("./endpoints/common-types").QueryParams, "query"> & Partial<Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & import("./endpoints/common-types").QueryParams, "spaceId" | "environmentId">>) => Promise<import("../common-types").CollectionProp<import("../export-types").AssetProps>>;
|
|
@@ -486,12 +486,12 @@ export declare const createPlainClient: (params: ClientParams, defaults?: Defaul
|
|
|
486
486
|
}, "spaceId">>) => Promise<any>;
|
|
487
487
|
};
|
|
488
488
|
snapshot: {
|
|
489
|
-
getManyForEntry: <
|
|
489
|
+
getManyForEntry: <T_14 extends Record<string, any> = Record<string, any>>(params: Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
490
490
|
entryId: string;
|
|
491
491
|
} & import("./endpoints/common-types").QueryParams, "query" | "entryId"> & Partial<Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
492
492
|
entryId: string;
|
|
493
|
-
} & import("./endpoints/common-types").QueryParams, "spaceId" | "environmentId">>) => Promise<import("../common-types").CollectionProp<import("../export-types").SnapshotProps<import("../export-types").EntryProps<
|
|
494
|
-
getForEntry: <
|
|
493
|
+
} & import("./endpoints/common-types").QueryParams, "spaceId" | "environmentId">>) => Promise<import("../common-types").CollectionProp<import("../export-types").SnapshotProps<import("../export-types").EntryProps<T_14>>>>;
|
|
494
|
+
getForEntry: <T_15 extends Record<string, any> = Record<string, any>>(params: Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
495
495
|
entryId: string;
|
|
496
496
|
} & {
|
|
497
497
|
snapshotId: string;
|
|
@@ -499,7 +499,7 @@ export declare const createPlainClient: (params: ClientParams, defaults?: Defaul
|
|
|
499
499
|
entryId: string;
|
|
500
500
|
} & {
|
|
501
501
|
snapshotId: string;
|
|
502
|
-
}, "spaceId" | "environmentId">>) => Promise<import("../export-types").SnapshotProps<import("../export-types").EntryProps<
|
|
502
|
+
}, "spaceId" | "environmentId">>) => Promise<import("../export-types").SnapshotProps<import("../export-types").EntryProps<T_15>>>;
|
|
503
503
|
getManyForContentType: (params: Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
|
504
504
|
contentTypeId: string;
|
|
505
505
|
} & import("./endpoints/common-types").QueryParams, "query" | "contentTypeId"> & Partial<Pick<import("./endpoints/common-types").GetSpaceEnvironmentParams & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-management",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.7.0",
|
|
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",
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
"rimraf": "^3.0.2",
|
|
121
121
|
"semantic-release": "^17.0.4",
|
|
122
122
|
"sinon": "^9.0.1",
|
|
123
|
-
"typedoc": "
|
|
123
|
+
"typedoc": "0.19.2",
|
|
124
124
|
"typescript": "^3.9.3",
|
|
125
125
|
"webpack": "^4.23.1",
|
|
126
126
|
"webpack-bundle-analyzer": "^4.2.0",
|