contentful-management 11.36.1-beta.1 → 11.36.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.
@@ -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-beta.1"}`, params.application, params.integration, params.feature);
49
+ `${sdkMain}/${"11.36.2"}`, 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
@@ -126,6 +126,11 @@ export interface BasicMetaSysProps {
126
126
  }
127
127
  export interface MetaSysProps extends BasicMetaSysProps {
128
128
  space?: SysLink;
129
+ /**
130
+ * @deprecated `status` only exists on entities. Please refactor to use a
131
+ * type guard to get the correct `EntityMetaSysProps` type with this property.
132
+ */
133
+ status?: SysLink;
129
134
  publishedVersion?: number;
130
135
  archivedVersion?: number;
131
136
  archivedBy?: SysLink;
@@ -135,6 +140,11 @@ export interface MetaSysProps extends BasicMetaSysProps {
135
140
  deletedAt?: string;
136
141
  }
137
142
  export interface EntityMetaSysProps extends MetaSysProps {
143
+ /**
144
+ * @deprecated `contentType` only exists on entries. Please refactor to use a
145
+ * type guard to get the correct `EntryMetaSysProps` type with this property.
146
+ */
147
+ contentType: SysLink;
138
148
  space: SysLink;
139
149
  status?: SysLink;
140
150
  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, PersonalAccessTokenProps as PersonalAccessTokenProp, } from './entities/personal-access-token';
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-beta.1",
3
+ "version": "11.36.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",