contentful-management 11.63.0 → 11.63.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -13
- package/dist/contentful-management.browser.js +32 -43
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +32 -43
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/common-utils.js +0 -12
- package/dist/es-modules/contentful-management.js +3 -1
- package/dist/es-modules/create-environment-api.js +10 -11
- package/dist/typings/common-types.d.ts +0 -23
- package/dist/typings/common-utils.d.ts +1 -8
- package/dist/typings/contentful-management.d.ts +2 -0
- package/dist/typings/create-environment-api.d.ts +5 -5
- package/dist/typings/export-types.d.ts +1 -1
- package/dist/typings/plain/common-types.d.ts +1 -15
- package/package.json +1 -1
|
@@ -12,18 +12,6 @@ export const wrapCollection = fn => (makeRequest, data, ...rest) => {
|
|
|
12
12
|
// @ts-expect-error
|
|
13
13
|
return collectionData;
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* @private
|
|
18
|
-
* Function for endpoints allowing `?cursor=true` wrapping the call
|
|
19
|
-
* to ensure the correct return type for cursor based pagination
|
|
20
|
-
* when `cursor: true`.
|
|
21
|
-
*/
|
|
22
|
-
export const withOptionalCursorApi = fn => {
|
|
23
|
-
return function (args) {
|
|
24
|
-
return fn.call(this, args);
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
15
|
export const wrapCursorPaginatedCollection = fn => (makeRequest, data, ...rest) => {
|
|
28
16
|
const collectionData = toPlainObject(copy(data));
|
|
29
17
|
// @ts-expect-error
|
|
@@ -14,6 +14,7 @@ import { createAdapter } from './create-adapter';
|
|
|
14
14
|
import createContentfulApi from './create-contentful-api';
|
|
15
15
|
import { createPlainClient } from './plain/plain-client';
|
|
16
16
|
import * as editorInterfaceDefaults from './constants/editor-interface-defaults';
|
|
17
|
+
import { ScheduledActionStatus } from './entities/scheduled-action';
|
|
17
18
|
export { asIterator } from './plain/as-iterator';
|
|
18
19
|
export { fetchAll } from './plain/pagination-helper';
|
|
19
20
|
export { isDraft, isPublished, isUpdated } from './plain/checks';
|
|
@@ -22,6 +23,7 @@ export { RestAdapter } from './adapters/REST/rest-adapter';
|
|
|
22
23
|
export { makeRequest } from './adapters/REST/make-request';
|
|
23
24
|
export { editorInterfaceDefaults };
|
|
24
25
|
export * from './export-types';
|
|
26
|
+
export { ScheduledActionStatus };
|
|
25
27
|
|
|
26
28
|
/**
|
|
27
29
|
* @deprecated
|
|
@@ -47,7 +49,7 @@ function createClient(params, opts = {}) {
|
|
|
47
49
|
const sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
48
50
|
const userAgent = getUserAgentHeader(
|
|
49
51
|
// @ts-expect-error
|
|
50
|
-
`${sdkMain}/${"11.63.
|
|
52
|
+
`${sdkMain}/${"11.63.1"}`, params.application, params.integration, params.feature);
|
|
51
53
|
const adapter = createAdapter(_objectSpread(_objectSpread({}, params), {}, {
|
|
52
54
|
userAgent
|
|
53
55
|
}));
|
|
@@ -17,7 +17,6 @@ import { wrapEnvironmentTemplateInstallationCollection } from './entities/enviro
|
|
|
17
17
|
import { wrapFunctionCollection } from './entities/function';
|
|
18
18
|
import { wrapFunctionLog, wrapFunctionLogCollection } from './entities/function-log';
|
|
19
19
|
import { wrapAiActionInvocation } from './entities/ai-action-invocation';
|
|
20
|
-
import { withOptionalCursorApi } from './common-utils';
|
|
21
20
|
|
|
22
21
|
/**
|
|
23
22
|
* @private
|
|
@@ -469,7 +468,7 @@ export default function createEnvironmentApi(makeRequest) {
|
|
|
469
468
|
* .catch(console.error)
|
|
470
469
|
* ```
|
|
471
470
|
*/
|
|
472
|
-
getContentTypes
|
|
471
|
+
getContentTypes(query = {}) {
|
|
473
472
|
const raw = this.toPlainObject();
|
|
474
473
|
return makeRequest({
|
|
475
474
|
entityType: 'ContentType',
|
|
@@ -482,7 +481,7 @@ export default function createEnvironmentApi(makeRequest) {
|
|
|
482
481
|
}).params
|
|
483
482
|
}
|
|
484
483
|
}).then(data => wrapContentTypeCollection(makeRequest, data));
|
|
485
|
-
}
|
|
484
|
+
},
|
|
486
485
|
/**
|
|
487
486
|
* Creates a Content Type
|
|
488
487
|
* @param data - Object representation of the Content Type to be created
|
|
@@ -713,7 +712,7 @@ export default function createEnvironmentApi(makeRequest) {
|
|
|
713
712
|
* .catch(console.error)
|
|
714
713
|
* ```
|
|
715
714
|
*/
|
|
716
|
-
getEntries
|
|
715
|
+
getEntries(query = {}) {
|
|
717
716
|
const raw = this.toPlainObject();
|
|
718
717
|
return makeRequest({
|
|
719
718
|
entityType: 'Entry',
|
|
@@ -726,7 +725,7 @@ export default function createEnvironmentApi(makeRequest) {
|
|
|
726
725
|
}).params
|
|
727
726
|
}
|
|
728
727
|
}).then(data => wrapEntryCollection(makeRequest, data));
|
|
729
|
-
}
|
|
728
|
+
},
|
|
730
729
|
/**
|
|
731
730
|
* Gets a collection of published Entries
|
|
732
731
|
* @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.
|
|
@@ -745,7 +744,7 @@ export default function createEnvironmentApi(makeRequest) {
|
|
|
745
744
|
* .catch(console.error)
|
|
746
745
|
* ```
|
|
747
746
|
*/
|
|
748
|
-
getPublishedEntries
|
|
747
|
+
getPublishedEntries(query = {}) {
|
|
749
748
|
const raw = this.toPlainObject();
|
|
750
749
|
return makeRequest({
|
|
751
750
|
entityType: 'Entry',
|
|
@@ -758,7 +757,7 @@ export default function createEnvironmentApi(makeRequest) {
|
|
|
758
757
|
}).params
|
|
759
758
|
}
|
|
760
759
|
}).then(data => wrapEntryCollection(makeRequest, data));
|
|
761
|
-
}
|
|
760
|
+
},
|
|
762
761
|
/**
|
|
763
762
|
* Creates a Entry
|
|
764
763
|
* @param contentTypeId - The Content Type ID of the newly created Entry
|
|
@@ -929,7 +928,7 @@ export default function createEnvironmentApi(makeRequest) {
|
|
|
929
928
|
* .catch(console.error)
|
|
930
929
|
* ```
|
|
931
930
|
*/
|
|
932
|
-
getAssets
|
|
931
|
+
getAssets(query = {}) {
|
|
933
932
|
const raw = this.toPlainObject();
|
|
934
933
|
return makeRequest({
|
|
935
934
|
entityType: 'Asset',
|
|
@@ -942,7 +941,7 @@ export default function createEnvironmentApi(makeRequest) {
|
|
|
942
941
|
}).params
|
|
943
942
|
}
|
|
944
943
|
}).then(data => wrapAssetCollection(makeRequest, data));
|
|
945
|
-
}
|
|
944
|
+
},
|
|
946
945
|
/**
|
|
947
946
|
* Gets a collection of published Assets
|
|
948
947
|
* @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.
|
|
@@ -961,7 +960,7 @@ export default function createEnvironmentApi(makeRequest) {
|
|
|
961
960
|
* .catch(console.error)
|
|
962
961
|
* ```
|
|
963
962
|
*/
|
|
964
|
-
getPublishedAssets
|
|
963
|
+
getPublishedAssets(query = {}) {
|
|
965
964
|
const raw = this.toPlainObject();
|
|
966
965
|
return makeRequest({
|
|
967
966
|
entityType: 'Asset',
|
|
@@ -974,7 +973,7 @@ export default function createEnvironmentApi(makeRequest) {
|
|
|
974
973
|
}).params
|
|
975
974
|
}
|
|
976
975
|
}).then(data => wrapAssetCollection(makeRequest, data));
|
|
977
|
-
}
|
|
976
|
+
},
|
|
978
977
|
/**
|
|
979
978
|
* Creates a Asset. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing.
|
|
980
979
|
* @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished.
|
|
@@ -213,23 +213,6 @@ export interface BasicCursorPaginationOptions extends Omit<BasicQueryOptions, 's
|
|
|
213
213
|
interface CursorPaginationBase {
|
|
214
214
|
limit?: number;
|
|
215
215
|
}
|
|
216
|
-
export type OptionalCursorApi<P, T, TPlain> = {
|
|
217
|
-
(query: P & CursorBasedParams['query'] & {
|
|
218
|
-
cursor: true;
|
|
219
|
-
skip?: never;
|
|
220
|
-
}): Promise<CursorPaginatedCollection<T, TPlain>>;
|
|
221
|
-
(query?: P & {
|
|
222
|
-
cursor?: false | undefined | never;
|
|
223
|
-
}): Promise<Collection<T, TPlain>>;
|
|
224
|
-
(query?: P): Promise<Collection<T, TPlain>>;
|
|
225
|
-
};
|
|
226
|
-
type WithCursorPagination<O> = O & {
|
|
227
|
-
params: {
|
|
228
|
-
query: {
|
|
229
|
-
cursor: true;
|
|
230
|
-
};
|
|
231
|
-
};
|
|
232
|
-
};
|
|
233
216
|
interface CursorPaginationPageNext extends CursorPaginationBase {
|
|
234
217
|
pageNext: string;
|
|
235
218
|
pagePrev?: never;
|
|
@@ -310,9 +293,7 @@ type MRInternal<UA extends boolean> = {
|
|
|
310
293
|
(opts: MROpts<'AppInstallation', 'upsert', UA>): MRReturn<'AppInstallation', 'upsert'>;
|
|
311
294
|
(opts: MROpts<'AppInstallation', 'delete', UA>): MRReturn<'AppInstallation', 'delete'>;
|
|
312
295
|
(opts: MROpts<'AppInstallation', 'getForOrganization', UA>): MRReturn<'AppInstallation', 'getForOrganization'>;
|
|
313
|
-
(opts: WithCursorPagination<MROpts<'Asset', 'getMany', UA>>): Promise<CursorPaginatedCollectionProp<AssetProps>>;
|
|
314
296
|
(opts: MROpts<'Asset', 'getMany', UA>): MRReturn<'Asset', 'getMany'>;
|
|
315
|
-
(opts: WithCursorPagination<MROpts<'Asset', 'getPublished', UA>>): Promise<CursorPaginatedCollectionProp<AssetProps>>;
|
|
316
297
|
(opts: MROpts<'Asset', 'getPublished', UA>): MRReturn<'Asset', 'getPublished'>;
|
|
317
298
|
(opts: MROpts<'Asset', 'get', UA>): MRReturn<'Asset', 'get'>;
|
|
318
299
|
(opts: MROpts<'Asset', 'update', UA>): MRReturn<'Asset', 'update'>;
|
|
@@ -379,7 +360,6 @@ type MRInternal<UA extends boolean> = {
|
|
|
379
360
|
(opts: MROpts<'ConceptScheme', 'updatePut', UA>): MRReturn<'ConceptScheme', 'updatePut'>;
|
|
380
361
|
(opts: MROpts<'ConceptScheme', 'delete', UA>): MRReturn<'ConceptScheme', 'delete'>;
|
|
381
362
|
(opts: MROpts<'ContentType', 'get', UA>): MRReturn<'ContentType', 'get'>;
|
|
382
|
-
(opts: WithCursorPagination<MROpts<'ContentType', 'getMany', UA>>): Promise<CursorPaginatedCollectionProp<ConceptProps>>;
|
|
383
363
|
(opts: MROpts<'ContentType', 'getMany', UA>): MRReturn<'ContentType', 'getMany'>;
|
|
384
364
|
(opts: MROpts<'ContentType', 'update', UA>): MRReturn<'ContentType', 'update'>;
|
|
385
365
|
(opts: MROpts<'ContentType', 'create', UA>): MRReturn<'ContentType', 'create'>;
|
|
@@ -388,7 +368,6 @@ type MRInternal<UA extends boolean> = {
|
|
|
388
368
|
(opts: MROpts<'ContentType', 'publish', UA>): MRReturn<'ContentType', 'publish'>;
|
|
389
369
|
(opts: MROpts<'ContentType', 'unpublish', UA>): MRReturn<'ContentType', 'unpublish'>;
|
|
390
370
|
(opts: MROpts<'EditorInterface', 'get', UA>): MRReturn<'EditorInterface', 'get'>;
|
|
391
|
-
(opts: WithCursorPagination<MROpts<'EditorInterface', 'getMany', UA>>): Promise<CursorPaginatedCollectionProp<EditorInterfaceProps>>;
|
|
392
371
|
(opts: MROpts<'EditorInterface', 'getMany', UA>): MRReturn<'EditorInterface', 'getMany'>;
|
|
393
372
|
(opts: MROpts<'EditorInterface', 'update', UA>): MRReturn<'EditorInterface', 'update'>;
|
|
394
373
|
(opts: MROpts<'Environment', 'get', UA>): MRReturn<'Environment', 'get'>;
|
|
@@ -414,9 +393,7 @@ type MRInternal<UA extends boolean> = {
|
|
|
414
393
|
(opts: MROpts<'EnvironmentTemplate', 'disconnect', UA>): MRReturn<'EnvironmentTemplate', 'disconnect'>;
|
|
415
394
|
(opts: MROpts<'EnvironmentTemplateInstallation', 'getMany', UA>): MRReturn<'EnvironmentTemplateInstallation', 'getMany'>;
|
|
416
395
|
(opts: MROpts<'EnvironmentTemplateInstallation', 'getForEnvironment', UA>): MRReturn<'EnvironmentTemplateInstallation', 'getForEnvironment'>;
|
|
417
|
-
(opts: WithCursorPagination<MROpts<'Entry', 'getMany', UA>>): Promise<CursorPaginatedCollectionProp<EntryProps>>;
|
|
418
396
|
(opts: MROpts<'Entry', 'getMany', UA>): MRReturn<'Entry', 'getMany'>;
|
|
419
|
-
(opts: WithCursorPagination<MROpts<'Entry', 'getPublished', UA>>): Promise<CursorPaginatedCollectionProp<EntryProps>>;
|
|
420
397
|
(opts: MROpts<'Entry', 'getPublished', UA>): MRReturn<'Entry', 'getPublished'>;
|
|
421
398
|
(opts: MROpts<'Entry', 'get', UA>): MRReturn<'Entry', 'get'>;
|
|
422
399
|
(opts: MROpts<'Entry', 'patch', UA>): MRReturn<'Entry', 'patch'>;
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import type { Collection, CollectionProp, CursorPaginatedCollection, CursorPaginatedCollectionProp, MakeRequest
|
|
1
|
+
import type { Collection, CollectionProp, CursorPaginatedCollection, CursorPaginatedCollectionProp, MakeRequest } from './common-types';
|
|
2
2
|
/**
|
|
3
3
|
* @private
|
|
4
4
|
*/
|
|
5
5
|
export declare const wrapCollection: <R, T, Rest extends any[]>(fn: (makeRequest: MakeRequest, entity: T, ...rest: Rest) => R) => (makeRequest: MakeRequest, data: CollectionProp<T>, ...rest: Rest) => Collection<R, T>;
|
|
6
|
-
/**
|
|
7
|
-
* @private
|
|
8
|
-
* Function for endpoints allowing `?cursor=true` wrapping the call
|
|
9
|
-
* to ensure the correct return type for cursor based pagination
|
|
10
|
-
* when `cursor: true`.
|
|
11
|
-
*/
|
|
12
|
-
export declare const withOptionalCursorApi: <P, T, TPlain>(fn: OptionalCursorApi<P, T, TPlain>) => OptionalCursorApi<P, T, TPlain>;
|
|
13
6
|
export declare const wrapCursorPaginatedCollection: <R, T, Rest extends any[]>(fn: (makeRequest: MakeRequest, entity: T, ...rest: Rest) => R) => (makeRequest: MakeRequest, data: CursorPaginatedCollectionProp<T>, ...rest: Rest) => CursorPaginatedCollection<R, T>;
|
|
14
7
|
export declare function isSuccessful(statusCode: number): boolean;
|
|
15
8
|
export declare function shouldRePoll(statusCode: number): boolean;
|
|
@@ -10,6 +10,7 @@ import type { ClientAPI } from './create-contentful-api';
|
|
|
10
10
|
import type { PlainClientAPI } from './plain/common-types';
|
|
11
11
|
import type { DefaultParams } from './plain/plain-client';
|
|
12
12
|
import * as editorInterfaceDefaults from './constants/editor-interface-defaults';
|
|
13
|
+
import { ScheduledActionStatus } from './entities/scheduled-action';
|
|
13
14
|
export type { ClientAPI } from './create-contentful-api';
|
|
14
15
|
export { asIterator } from './plain/as-iterator';
|
|
15
16
|
export { fetchAll } from './plain/pagination-helper';
|
|
@@ -22,6 +23,7 @@ export { makeRequest } from './adapters/REST/make-request';
|
|
|
22
23
|
export { editorInterfaceDefaults };
|
|
23
24
|
export type PlainClientDefaultParams = DefaultParams;
|
|
24
25
|
export * from './export-types';
|
|
26
|
+
export { ScheduledActionStatus };
|
|
25
27
|
interface UserAgentParams {
|
|
26
28
|
/**
|
|
27
29
|
* Application name and version e.g myApp/version
|
|
@@ -326,7 +326,7 @@ export default function createEnvironmentApi(makeRequest: MakeRequest): {
|
|
|
326
326
|
* .catch(console.error)
|
|
327
327
|
* ```
|
|
328
328
|
*/
|
|
329
|
-
getContentTypes: import("./common-types").
|
|
329
|
+
getContentTypes(query?: QueryOptions): Promise<import("./common-types").Collection<import("./entities/content-type").ContentType, ContentTypeProps>>;
|
|
330
330
|
/**
|
|
331
331
|
* Creates a Content Type
|
|
332
332
|
* @param data - Object representation of the Content Type to be created
|
|
@@ -486,7 +486,7 @@ export default function createEnvironmentApi(makeRequest: MakeRequest): {
|
|
|
486
486
|
* .catch(console.error)
|
|
487
487
|
* ```
|
|
488
488
|
*/
|
|
489
|
-
getEntries: import("./common-types").
|
|
489
|
+
getEntries(query?: QueryOptions): Promise<import("./common-types").Collection<import("./entities/entry").Entry, EntryProps<import("./common-types").KeyValueMap, unknown>>>;
|
|
490
490
|
/**
|
|
491
491
|
* Gets a collection of published Entries
|
|
492
492
|
* @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.
|
|
@@ -505,7 +505,7 @@ export default function createEnvironmentApi(makeRequest: MakeRequest): {
|
|
|
505
505
|
* .catch(console.error)
|
|
506
506
|
* ```
|
|
507
507
|
*/
|
|
508
|
-
getPublishedEntries: import("./common-types").
|
|
508
|
+
getPublishedEntries(query?: QueryOptions): Promise<import("./common-types").Collection<import("./entities/entry").Entry, EntryProps<import("./common-types").KeyValueMap, unknown>>>;
|
|
509
509
|
/**
|
|
510
510
|
* Creates a Entry
|
|
511
511
|
* @param contentTypeId - The Content Type ID of the newly created Entry
|
|
@@ -625,7 +625,7 @@ export default function createEnvironmentApi(makeRequest: MakeRequest): {
|
|
|
625
625
|
* .catch(console.error)
|
|
626
626
|
* ```
|
|
627
627
|
*/
|
|
628
|
-
getAssets: import("./common-types").
|
|
628
|
+
getAssets(query?: QueryOptions): Promise<import("./common-types").Collection<import("./entities/asset").Asset, AssetProps<{}>>>;
|
|
629
629
|
/**
|
|
630
630
|
* Gets a collection of published Assets
|
|
631
631
|
* @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.
|
|
@@ -644,7 +644,7 @@ export default function createEnvironmentApi(makeRequest: MakeRequest): {
|
|
|
644
644
|
* .catch(console.error)
|
|
645
645
|
* ```
|
|
646
646
|
*/
|
|
647
|
-
getPublishedAssets: import("./common-types").
|
|
647
|
+
getPublishedAssets(query?: QueryOptions): Promise<import("./common-types").Collection<import("./entities/asset").Asset, AssetProps<{}>>>;
|
|
648
648
|
/**
|
|
649
649
|
* Creates a Asset. After creation, call asset.processForLocale or asset.processForAllLocales to start asset processing.
|
|
650
650
|
* @param data - Object representation of the Asset to be created. Note that the field object should have an upload property on asset creation, which will be removed and replaced with an url property when processing is finished.
|
|
@@ -40,7 +40,7 @@ export type { PreviewApiKey, PreviewApiKeyProps } from './entities/preview-api-k
|
|
|
40
40
|
export type { Release, ReleaseMetadata, ReleasePayload, ReleasePayloadV2, ReleaseProps, ReleaseQueryOptions, ReleaseReferenceFilters, ReleaseSysProps, ReleaseValidateOptions, } from './entities/release';
|
|
41
41
|
export type { ReleaseAction, ReleaseActionProps, ReleaseActionQueryOptions, ReleaseActionSysProps, ReleaseActionTypes, } from './entities/release-action';
|
|
42
42
|
export type { CreateRoleProps, Role, RoleProps } from './entities/role';
|
|
43
|
-
export type { ScheduledAction, ScheduledActionProps, ScheduledActionSysProps,
|
|
43
|
+
export type { ScheduledAction, ScheduledActionProps, ScheduledActionSysProps, } from './entities/scheduled-action';
|
|
44
44
|
export type { Snapshot, SnapshotProps } from './entities/snapshot';
|
|
45
45
|
export type { Space, SpaceProps } from './entities/space';
|
|
46
46
|
export type { SpaceMember, SpaceMemberProps } from './entities/space-member';
|
|
@@ -67,11 +67,6 @@ import type { OAuthApplicationPlainClientAPI } from './entities/oauth-applicatio
|
|
|
67
67
|
import type { FunctionLogPlainClientAPI } from './entities/function-log';
|
|
68
68
|
import type { AiActionPlainClientAPI } from './entities/ai-action';
|
|
69
69
|
import type { AiActionInvocationPlainClientAPI } from './entities/ai-action-invocation';
|
|
70
|
-
type WithCursorBasedPagination<T> = T & {
|
|
71
|
-
query: {
|
|
72
|
-
cursor: true;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
70
|
export type PlainClientAPI = {
|
|
76
71
|
raw: {
|
|
77
72
|
getDefaultParams(): DefaultParams | undefined;
|
|
@@ -139,6 +134,7 @@ export type PlainClientAPI = {
|
|
|
139
134
|
environmentTemplateId: string;
|
|
140
135
|
organizationId: string;
|
|
141
136
|
spaceId?: string;
|
|
137
|
+
latestOnly?: boolean;
|
|
142
138
|
}, headers?: RawAxiosRequestHeaders): Promise<CursorPaginatedCollectionProp<EnvironmentTemplateInstallationProps>>;
|
|
143
139
|
getForEnvironment(params: BasicCursorPaginationOptions & EnvironmentTemplateParams & {
|
|
144
140
|
installationId?: string;
|
|
@@ -159,7 +155,6 @@ export type PlainClientAPI = {
|
|
|
159
155
|
conceptScheme: ConceptSchemePlainClientAPI;
|
|
160
156
|
contentType: {
|
|
161
157
|
get(params: OptionalDefaults<GetContentTypeParams & QueryParams>): Promise<ContentTypeProps>;
|
|
162
|
-
getMany(params: WithCursorBasedPagination<OptionalDefaults<GetSpaceEnvironmentParams & QueryParams>>): Promise<CursorPaginatedCollectionProp<ContentTypeProps>>;
|
|
163
158
|
getMany(params: OptionalDefaults<GetSpaceEnvironmentParams & QueryParams>): Promise<CollectionProp<ContentTypeProps>>;
|
|
164
159
|
update(params: OptionalDefaults<GetContentTypeParams>, rawData: ContentTypeProps, headers?: RawAxiosRequestHeaders): Promise<ContentTypeProps>;
|
|
165
160
|
delete(params: OptionalDefaults<GetContentTypeParams>): Promise<any>;
|
|
@@ -173,11 +168,7 @@ export type PlainClientAPI = {
|
|
|
173
168
|
};
|
|
174
169
|
user: UserPlainClientAPI;
|
|
175
170
|
entry: {
|
|
176
|
-
getPublished<T extends KeyValueMap = KeyValueMap>(params: WithCursorBasedPagination<OptionalDefaults<GetSpaceEnvironmentParams & QueryParams>>, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise<CursorPaginatedCollectionProp<EntryProps<T>>>;
|
|
177
171
|
getPublished<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSpaceEnvironmentParams & QueryParams>, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise<CollectionProp<EntryProps<T>>>;
|
|
178
|
-
getMany<T extends KeyValueMap = KeyValueMap>(params: WithCursorBasedPagination<OptionalDefaults<GetSpaceEnvironmentParams & QueryParams & {
|
|
179
|
-
releaseId?: string;
|
|
180
|
-
}>>, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise<CursorPaginatedCollectionProp<EntryProps<T>>>;
|
|
181
172
|
getMany<T extends KeyValueMap = KeyValueMap>(params: OptionalDefaults<GetSpaceEnvironmentParams & QueryParams & {
|
|
182
173
|
releaseId?: string;
|
|
183
174
|
}>, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise<CollectionProp<EntryProps<T>>>;
|
|
@@ -226,11 +217,7 @@ export type PlainClientAPI = {
|
|
|
226
217
|
}>): Promise<EntryReferenceProps>;
|
|
227
218
|
};
|
|
228
219
|
asset: {
|
|
229
|
-
getPublished(params: WithCursorBasedPagination<OptionalDefaults<GetSpaceEnvironmentParams & QueryParams>>, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise<CursorPaginatedCollectionProp<AssetProps>>;
|
|
230
220
|
getPublished(params: OptionalDefaults<GetSpaceEnvironmentParams & QueryParams>, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise<CollectionProp<AssetProps>>;
|
|
231
|
-
getMany(params: WithCursorBasedPagination<OptionalDefaults<GetSpaceEnvironmentParams & QueryParams & {
|
|
232
|
-
releaseId?: string;
|
|
233
|
-
}>>, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise<CursorPaginatedCollectionProp<AssetProps>>;
|
|
234
221
|
getMany(params: OptionalDefaults<GetSpaceEnvironmentParams & QueryParams & {
|
|
235
222
|
releaseId?: string;
|
|
236
223
|
}>, rawData?: unknown, headers?: RawAxiosRequestHeaders): Promise<CollectionProp<AssetProps>>;
|
|
@@ -475,4 +462,3 @@ export type PlainClientAPI = {
|
|
|
475
462
|
workflowsChangelog: WorkflowsChangelogPlainClientAPI;
|
|
476
463
|
oauthApplication: OAuthApplicationPlainClientAPI;
|
|
477
464
|
};
|
|
478
|
-
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-management",
|
|
3
|
-
"version": "11.63.
|
|
3
|
+
"version": "11.63.1",
|
|
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",
|