contentful-management 11.36.1-beta.1 → 11.36.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/dist/contentful-management.browser.js +16 -1
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +16 -1
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/entities/access-token.js +5 -0
- package/dist/es-modules/entities/organization.js +5 -0
- package/dist/es-modules/entities/personal-access-token.js +5 -0
- package/dist/typings/common-types.d.ts +5 -0
- package/dist/typings/entities/access-token.d.ts +4 -0
- package/dist/typings/entities/organization.d.ts +4 -0
- package/dist/typings/entities/personal-access-token.d.ts +4 -0
- package/dist/typings/export-types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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.36.1
|
|
49
|
+
`${sdkMain}/${"11.36.1"}`, params.application, params.integration, params.feature);
|
|
50
50
|
const adapter = createAdapter(_objectSpread(_objectSpread({}, params), {}, {
|
|
51
51
|
userAgent
|
|
52
52
|
}));
|
|
@@ -2,6 +2,11 @@ import copy from 'fast-copy';
|
|
|
2
2
|
import { freezeSys, toPlainObject } from 'contentful-sdk-core';
|
|
3
3
|
import enhanceWithMethods from '../enhance-with-methods';
|
|
4
4
|
import { wrapCollection } from '../common-utils';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use `AccessTokenProps` instead.
|
|
8
|
+
*/
|
|
9
|
+
|
|
5
10
|
/**
|
|
6
11
|
* @private
|
|
7
12
|
* @param makeRequest - function to make requests via an adapter
|
|
@@ -3,6 +3,11 @@ import { freezeSys, toPlainObject } from 'contentful-sdk-core';
|
|
|
3
3
|
import enhanceWithMethods from '../enhance-with-methods';
|
|
4
4
|
import createOrganizationApi from '../create-organization-api';
|
|
5
5
|
import { wrapCollection } from '../common-utils';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Use `OrganizationProps` instead.
|
|
9
|
+
*/
|
|
10
|
+
|
|
6
11
|
/**
|
|
7
12
|
* This method creates the API for the given organization with all the methods for
|
|
8
13
|
* reading and creating other entities. It also passes down a clone of the
|
|
@@ -2,6 +2,11 @@ import copy from 'fast-copy';
|
|
|
2
2
|
import { freezeSys, toPlainObject } from 'contentful-sdk-core';
|
|
3
3
|
import enhanceWithMethods from '../enhance-with-methods';
|
|
4
4
|
import { wrapCollection } from '../common-utils';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use `PersonalAccessTokenProps` instead.
|
|
8
|
+
*/
|
|
9
|
+
|
|
5
10
|
/**
|
|
6
11
|
* @private
|
|
7
12
|
* @param makeRequest - function to make requests via an adapter
|
|
@@ -135,6 +135,11 @@ export interface MetaSysProps extends BasicMetaSysProps {
|
|
|
135
135
|
deletedAt?: string;
|
|
136
136
|
}
|
|
137
137
|
export interface EntityMetaSysProps extends MetaSysProps {
|
|
138
|
+
/**
|
|
139
|
+
* @deprecated `contentType` only exists on entries. Please refactor to use a
|
|
140
|
+
* type guard to get the correct `EntryMetaSysProps` type with this property.
|
|
141
|
+
*/
|
|
142
|
+
contentType: SysLink;
|
|
138
143
|
space: SysLink;
|
|
139
144
|
status?: SysLink;
|
|
140
145
|
environment: SysLink;
|
|
@@ -17,6 +17,10 @@ export type AccessTokenProps = {
|
|
|
17
17
|
revokedAt: null | string;
|
|
18
18
|
token?: string;
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* @deprecated Use `AccessTokenProps` instead.
|
|
22
|
+
*/
|
|
23
|
+
export type AccessTokenProp = AccessTokenProps;
|
|
20
24
|
export type CreatePersonalAccessTokenProps = Pick<AccessToken, 'name' | 'scopes'> & {
|
|
21
25
|
expiresIn: number;
|
|
22
26
|
};
|
|
@@ -11,6 +11,10 @@ export type OrganizationProps = {
|
|
|
11
11
|
*/
|
|
12
12
|
name: string;
|
|
13
13
|
};
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use `OrganizationProps` instead.
|
|
16
|
+
*/
|
|
17
|
+
export type OrganizationProp = OrganizationProps;
|
|
14
18
|
/**
|
|
15
19
|
* This method creates the API for the given organization with all the methods for
|
|
16
20
|
* reading and creating other entities. It also passes down a clone of the
|
|
@@ -8,6 +8,10 @@ export type PersonalAccessTokenProps = {
|
|
|
8
8
|
revokedAt: null | string;
|
|
9
9
|
token?: string;
|
|
10
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Use `PersonalAccessTokenProps` instead.
|
|
13
|
+
*/
|
|
14
|
+
export type PersonalAccessTokenProp = PersonalAccessTokenProps;
|
|
11
15
|
export type CreatePersonalAccessTokenProps = Pick<PersonalAccessToken, 'name' | 'scopes'> & {
|
|
12
16
|
expiresIn?: number;
|
|
13
17
|
};
|
|
@@ -29,10 +29,10 @@ export type { CreateEnvironmentTemplateInstallationProps, EnvironmentTemplateIns
|
|
|
29
29
|
export type { CreateExtensionProps as CreateUIExtensionProps, Extension as UIExtension, ExtensionProps as UIExtensionProps, } from './entities/extension';
|
|
30
30
|
export type { FieldType } from './entities/field-type';
|
|
31
31
|
export type { CreateLocaleProps, Locale, LocaleProps } from './entities/locale';
|
|
32
|
-
export type { Organization, OrganizationProps } from './entities/organization';
|
|
32
|
+
export type { Organization, OrganizationProp, OrganizationProps } from './entities/organization';
|
|
33
33
|
export type { CreateOrganizationInvitationProps, OrganizationInvitation, OrganizationInvitationProps, } from './entities/organization-invitation';
|
|
34
34
|
export type { OrganizationMembership, OrganizationMembershipProps, } from './entities/organization-membership';
|
|
35
|
-
export type { CreatePersonalAccessTokenProps, PersonalAccessToken,
|
|
35
|
+
export type { CreatePersonalAccessTokenProps, PersonalAccessToken, PersonalAccessTokenProp, PersonalAccessTokenProps, } from './entities/personal-access-token';
|
|
36
36
|
export type { CreatePersonalAccessTokenProps as CreatePATProps, AccessToken, AccessTokenProps as AccessTokenProp, } from './entities/access-token';
|
|
37
37
|
export type { PreviewApiKey, PreviewApiKeyProps } from './entities/preview-api-key';
|
|
38
38
|
export type { Release, ReleasePayload, ReleaseProps, ReleaseQueryOptions, ReleaseSysProps, ReleaseValidateOptions, ReleaseMetadata, ReleaseReferenceFilters, } from './entities/release';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-management",
|
|
3
|
-
"version": "11.36.1
|
|
3
|
+
"version": "11.36.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",
|