contentful-management 7.3.3 → 7.5.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/CHANGELOG.md +2 -2
- package/dist/contentful-management.browser.js +840 -3576
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.legacy.js +833 -3569
- package/dist/contentful-management.legacy.js.map +1 -1
- package/dist/contentful-management.legacy.min.js +1 -1
- package/dist/contentful-management.node.js +784 -3579
- 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 +2 -2
- package/dist/es-modules/create-cma-http-client.js +4 -4
- package/dist/es-modules/entities/api-key.js +2 -2
- package/dist/es-modules/entities/app-definition.js +2 -2
- package/dist/es-modules/entities/app-installation.js +2 -2
- package/dist/es-modules/entities/asset.js +2 -2
- package/dist/es-modules/entities/content-type.js +2 -2
- package/dist/es-modules/entities/editor-interface.js +2 -2
- package/dist/es-modules/entities/entry.js +2 -2
- package/dist/es-modules/entities/environment-alias.js +2 -2
- package/dist/es-modules/entities/environment.js +2 -2
- package/dist/es-modules/entities/locale.js +2 -2
- package/dist/es-modules/entities/organization-invitation.js +2 -2
- package/dist/es-modules/entities/organization-membership.js +2 -2
- package/dist/es-modules/entities/organization.js +2 -2
- package/dist/es-modules/entities/personal-access-token.js +2 -2
- package/dist/es-modules/entities/preview-api-key.js +2 -2
- package/dist/es-modules/entities/role.js +2 -2
- package/dist/es-modules/entities/scheduled-action.js +2 -2
- package/dist/es-modules/entities/snapshot.js +2 -2
- package/dist/es-modules/entities/space-member.js +2 -2
- package/dist/es-modules/entities/space-membership.js +2 -2
- package/dist/es-modules/entities/space.js +2 -2
- package/dist/es-modules/entities/tag.js +2 -2
- package/dist/es-modules/entities/team-membership.js +2 -2
- package/dist/es-modules/entities/team-space-membership.js +2 -2
- package/dist/es-modules/entities/team.js +2 -2
- package/dist/es-modules/entities/ui-extension.js +2 -2
- package/dist/es-modules/entities/upload.js +2 -2
- package/dist/es-modules/entities/usage.js +2 -2
- package/dist/es-modules/entities/user.js +2 -2
- package/dist/es-modules/entities/webhook.js +2 -2
- package/dist/es-modules/error-handler.js +5 -4
- package/dist/es-modules/plain/as-iterator.js +10 -7
- package/dist/es-modules/plain/endpoints/api-key.js +2 -2
- package/dist/es-modules/plain/endpoints/app-definition.js +3 -3
- package/dist/es-modules/plain/endpoints/app-installation.js +2 -4
- package/dist/es-modules/plain/endpoints/asset.js +4 -4
- package/dist/es-modules/plain/endpoints/content-type.js +4 -4
- package/dist/es-modules/plain/endpoints/editor-interface.js +2 -2
- package/dist/es-modules/plain/endpoints/entry.js +4 -4
- package/dist/es-modules/plain/endpoints/environment-alias.js +3 -3
- package/dist/es-modules/plain/endpoints/environment.js +4 -4
- package/dist/es-modules/plain/endpoints/locale.js +2 -2
- package/dist/es-modules/plain/endpoints/organization-membership.js +2 -2
- package/dist/es-modules/plain/endpoints/role.js +2 -2
- package/dist/es-modules/plain/endpoints/space-membership.js +2 -2
- package/dist/es-modules/plain/endpoints/space.js +2 -2
- package/dist/es-modules/plain/endpoints/tag.js +3 -3
- package/dist/es-modules/plain/endpoints/team-membership.js +2 -2
- package/dist/es-modules/plain/endpoints/team-space-membership.js +2 -2
- package/dist/es-modules/plain/endpoints/team.js +2 -2
- package/dist/es-modules/plain/endpoints/ui-extension.js +3 -5
- package/dist/es-modules/plain/endpoints/webhook.js +4 -7
- package/dist/es-modules/upload-http-client.js +4 -5
- package/dist/typings/common-utils.d.ts +1 -1
- package/dist/typings/create-cma-http-client.d.ts +4 -67
- package/dist/typings/create-contentful-api.d.ts +2 -1
- package/dist/typings/create-environment-api.d.ts +1 -1
- package/dist/typings/create-organization-api.d.ts +1 -1
- package/dist/typings/create-space-api.d.ts +1 -1
- package/dist/typings/entities/api-key.d.ts +1 -1
- package/dist/typings/entities/app-definition.d.ts +1 -1
- package/dist/typings/entities/app-installation.d.ts +1 -1
- package/dist/typings/entities/asset.d.ts +1 -1
- package/dist/typings/entities/content-type.d.ts +1 -1
- package/dist/typings/entities/editor-interface.d.ts +1 -1
- package/dist/typings/entities/entry.d.ts +1 -1
- package/dist/typings/entities/environment-alias.d.ts +1 -1
- package/dist/typings/entities/environment.d.ts +1 -1
- package/dist/typings/entities/locale.d.ts +1 -1
- package/dist/typings/entities/organization-invitation.d.ts +1 -1
- package/dist/typings/entities/organization-membership.d.ts +1 -1
- package/dist/typings/entities/organization.d.ts +1 -1
- package/dist/typings/entities/personal-access-token.d.ts +1 -1
- package/dist/typings/entities/preview-api-key.d.ts +1 -1
- package/dist/typings/entities/role.d.ts +1 -1
- package/dist/typings/entities/scheduled-action.d.ts +1 -1
- package/dist/typings/entities/snapshot.d.ts +1 -1
- package/dist/typings/entities/space-member.d.ts +1 -1
- package/dist/typings/entities/space-membership.d.ts +1 -1
- package/dist/typings/entities/space.d.ts +1 -1
- package/dist/typings/entities/tag.d.ts +1 -1
- package/dist/typings/entities/team-membership.d.ts +1 -1
- package/dist/typings/entities/team-space-membership.d.ts +1 -1
- package/dist/typings/entities/team.d.ts +1 -1
- package/dist/typings/entities/ui-extension.d.ts +1 -1
- package/dist/typings/entities/upload.d.ts +1 -1
- package/dist/typings/entities/usage.d.ts +1 -1
- package/dist/typings/entities/user.d.ts +1 -1
- package/dist/typings/entities/webhook.d.ts +1 -1
- package/dist/typings/plain/endpoints/api-key.d.ts +1 -1
- package/dist/typings/plain/endpoints/app-definition.d.ts +1 -1
- package/dist/typings/plain/endpoints/app-installation.d.ts +1 -1
- package/dist/typings/plain/endpoints/asset.d.ts +1 -1
- package/dist/typings/plain/endpoints/content-type.d.ts +1 -1
- package/dist/typings/plain/endpoints/editor-interface.d.ts +1 -1
- package/dist/typings/plain/endpoints/entry.d.ts +1 -1
- package/dist/typings/plain/endpoints/environment-alias.d.ts +1 -1
- package/dist/typings/plain/endpoints/environment.d.ts +1 -1
- package/dist/typings/plain/endpoints/locale.d.ts +1 -1
- package/dist/typings/plain/endpoints/organization-invitation.d.ts +1 -1
- package/dist/typings/plain/endpoints/organization-membership.d.ts +1 -1
- package/dist/typings/plain/endpoints/organization.d.ts +1 -1
- package/dist/typings/plain/endpoints/personal-access-token.d.ts +1 -1
- package/dist/typings/plain/endpoints/preview-api-keys.d.ts +1 -1
- package/dist/typings/plain/endpoints/role.d.ts +1 -1
- package/dist/typings/plain/endpoints/scheduled-action.d.ts +1 -1
- package/dist/typings/plain/endpoints/snapshot.d.ts +1 -1
- package/dist/typings/plain/endpoints/space-member.d.ts +1 -1
- package/dist/typings/plain/endpoints/space-membership.d.ts +1 -1
- package/dist/typings/plain/endpoints/space.d.ts +1 -1
- package/dist/typings/plain/endpoints/tag.d.ts +1 -1
- package/dist/typings/plain/endpoints/team-membership.d.ts +1 -1
- package/dist/typings/plain/endpoints/team-space-membership.d.ts +1 -1
- package/dist/typings/plain/endpoints/team.d.ts +1 -1
- package/dist/typings/plain/endpoints/ui-extension.d.ts +1 -1
- package/dist/typings/plain/endpoints/upload.d.ts +1 -1
- package/dist/typings/plain/endpoints/usage.d.ts +1 -1
- package/dist/typings/plain/endpoints/user.d.ts +1 -1
- package/dist/typings/plain/endpoints/webhook.d.ts +1 -1
- package/dist/typings/plain/plain-client.d.ts +2 -2
- package/dist/typings/plain/wrappers/wrap.d.ts +1 -1
- package/dist/typings/upload-http-client.d.ts +1 -1
- package/package.json +8 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultElements, BasicMetaSysProps, SysLink } from '../common-types';
|
|
2
|
-
import { AxiosInstance } from '
|
|
2
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
3
3
|
import { SetOptional, Except } from 'type-fest';
|
|
4
4
|
import { FieldType } from './field-type';
|
|
5
5
|
import { ParameterDefinition } from './widget-parameters';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { DefaultElements, BasicMetaSysProps, SysLink } from '../common-types';
|
|
3
3
|
import { Except } from 'type-fest';
|
|
4
4
|
import { FreeFormParameters } from './widget-parameters';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Stream } from 'stream';
|
|
3
|
-
import { AxiosInstance } from '
|
|
3
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
4
4
|
import { MetaSysProps, DefaultElements, EntityMetaSysProps, MetadataProps } from '../common-types';
|
|
5
5
|
export declare type AssetProps = {
|
|
6
6
|
sys: EntityMetaSysProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { SnapshotProps, Snapshot } from './snapshot';
|
|
3
3
|
import { DefaultElements, Collection, KeyValueMap, EntityMetaSysProps, MetadataProps } from '../common-types';
|
|
4
4
|
export declare type EntryProps<T = KeyValueMap> = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContentfulEnvironmentAPI } from '../create-environment-api';
|
|
2
2
|
import { DefaultElements, SysLink, BasicMetaSysProps } from '../common-types';
|
|
3
|
-
import { AxiosInstance } from '
|
|
3
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
4
4
|
declare type EnvironmentMetaSys = BasicMetaSysProps & {
|
|
5
5
|
status: SysLink;
|
|
6
6
|
space: SysLink;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { ContentfulOrganizationAPI } from '../create-organization-api';
|
|
3
3
|
import { MetaSysProps, DefaultElements } from '../common-types';
|
|
4
4
|
export declare type Organization = DefaultElements<OrganizationProp> & OrganizationProp & ContentfulOrganizationAPI;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { DefaultElements, BasicMetaSysProps, SysLink } from '../common-types';
|
|
3
3
|
export declare type ActionType = 'read' | 'create' | 'update' | 'delete' | 'publish' | 'unpublish' | 'archive' | 'unarchive';
|
|
4
4
|
declare type ConditionType = 'and' | 'or' | 'not' | 'equals';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { DefaultElements, ISO8601Timestamp, BasicCursorPaginationOptions, MetaLinkProps, Link } from '../common-types';
|
|
3
3
|
/**
|
|
4
4
|
* Represents that state of the scheduled action
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { DefaultElements, MetaSysProps, SysLink } from '../common-types';
|
|
3
3
|
export declare type TagSysProps = Pick<MetaSysProps, 'id' | 'version' | 'createdAt' | 'createdBy' | 'updatedAt' | 'updatedBy'> & {
|
|
4
4
|
type: 'Tag';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { FieldType } from './field-type';
|
|
3
3
|
import { DefinedParameters, ParameterDefinition } from './widget-parameters';
|
|
4
4
|
import { DefaultElements, BasicMetaSysProps, SysLink } from '../common-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { DefaultElements, MetaLinkProps, MetaSysProps, QueryOptions } from '../common-types';
|
|
3
3
|
export declare type UsageMetricEnum = 'cda' | 'cma' | 'cpa' | 'gql';
|
|
4
4
|
export interface UsageQuery extends QueryOptions {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { JsonValue, Except, SetOptional } from 'type-fest';
|
|
3
3
|
import { DefaultElements, BasicMetaSysProps, MetaLinkProps, SysLink, CollectionProp } from '../common-types';
|
|
4
4
|
interface EqualityConstraint {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { ApiKeyProps, CreateApiKeyProps } from '../../entities/api-key';
|
|
3
3
|
import { CollectionProp, QueryParams, GetSpaceParams } from './common-types';
|
|
4
4
|
export declare const get: (http: AxiosInstance, params: GetSpaceParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { GetOrganizationParams, QueryParams } from './common-types';
|
|
3
3
|
import { AppDefinitionProps, CreateAppDefinitionProps } from '../../entities/app-definition';
|
|
4
4
|
import { CollectionProp } from '../../common-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { GetSpaceEnvironmentParams, CollectionProp, PaginationQueryParams } from './common-types';
|
|
3
3
|
import { AppInstallationProps, CreateAppInstallationProps } from '../../entities/app-installation';
|
|
4
4
|
declare type GetAppInstallationParams = GetSpaceEnvironmentParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { CreateAssetProps, AssetProps, AssetFileProp, AssetProcessingForLocale } from '../../entities/asset';
|
|
3
3
|
import { QueryParams, CollectionProp, GetSpaceEnvironmentParams } from './common-types';
|
|
4
4
|
export declare const get: (http: AxiosInstance, params: GetSpaceEnvironmentParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { ContentTypeProps, CreateContentTypeProps } from '../../entities/content-type';
|
|
3
3
|
import { CollectionProp, QueryParams, GetSpaceEnvironmentParams } from './common-types';
|
|
4
4
|
declare type GetContentTypeParams = GetSpaceEnvironmentParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { EditorInterfaceProps } from '../../entities/editor-interface';
|
|
3
3
|
import { CollectionProp, GetSpaceEnvironmentParams, QueryParams } from './common-types';
|
|
4
4
|
declare type GetEditorInterfaceParams = GetSpaceEnvironmentParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { CreateEntryProps, EntryProps } from '../../entities/entry';
|
|
3
3
|
import { QueryParams, CollectionProp, GetSpaceEnvironmentParams } from './common-types';
|
|
4
4
|
export declare const get: <T extends Record<string, any> = Record<string, any>>(http: AxiosInstance, params: GetSpaceEnvironmentParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { EnvironmentAliasProps, CreateEnvironmentAliasProps } from '../../entities/environment-alias';
|
|
3
3
|
import { CollectionProp, PaginationQueryParams, GetSpaceParams } from './common-types';
|
|
4
4
|
declare type GetSpaceEnvAliasParams = GetSpaceParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { EnvironmentProps, CreateEnvironmentProps } from '../../entities/environment';
|
|
3
3
|
import { CollectionProp, PaginationQueryParams, GetSpaceParams, GetSpaceEnvironmentParams } from './common-types';
|
|
4
4
|
export declare const get: (http: AxiosInstance, params: GetSpaceEnvironmentParams) => Promise<EnvironmentProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { CollectionProp } from '../../common-types';
|
|
3
3
|
import { LocaleProps, CreateLocaleProps } from '../../entities/locale';
|
|
4
4
|
import { QueryParams, GetSpaceEnvironmentParams } from './common-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { OrganizationInvitationProps, CreateOrganizationInvitationProps } from '../../entities/organization-invitation';
|
|
3
3
|
export declare const create: (http: AxiosInstance, params: {
|
|
4
4
|
organizationId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { CollectionProp, GetOrganizationParams, QueryParams } from './common-types';
|
|
3
3
|
import { OrganizationMembershipProps } from '../../entities/organization-membership';
|
|
4
4
|
declare type GetOrganizationMembershipProps = GetOrganizationParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { CollectionProp, GetOrganizationParams } from './common-types';
|
|
3
3
|
import { OrganizationProp } from '../../entities/organization';
|
|
4
4
|
export declare const getAll: (http: AxiosInstance) => Promise<CollectionProp<OrganizationProp>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { CollectionProp, QueryParams } from './common-types';
|
|
3
3
|
import { PersonalAccessTokenProp, CreatePersonalAccessTokenProps } from '../../entities/personal-access-token';
|
|
4
4
|
export declare const get: (http: AxiosInstance, params: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { PreviewApiKeyProps } from '../../entities/preview-api-key';
|
|
3
3
|
import { CollectionProp, QueryParams, GetSpaceParams } from './common-types';
|
|
4
4
|
export declare const get: (http: AxiosInstance, params: GetSpaceParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { RoleProps, CreateRoleProps } from '../../entities/role';
|
|
3
3
|
import { CollectionProp, QueryParams, GetSpaceParams } from './common-types';
|
|
4
4
|
export declare const get: (http: AxiosInstance, params: GetSpaceParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { ScheduledActionProps } from '../../entities/scheduled-action';
|
|
3
3
|
import { QueryParams, GetSpaceParams } from './common-types';
|
|
4
4
|
import { CollectionProp } from '../../common-types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { CollectionProp, GetSpaceEnvironmentParams, QueryParams } from './common-types';
|
|
3
3
|
import { EntryProps } from '../../entities/entry';
|
|
4
4
|
import { SnapshotProps } from '../../entities/snapshot';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { SpaceMemberProps } from '../../entities/space-member';
|
|
3
3
|
import { CollectionProp, QueryParams, GetSpaceParams } from './common-types';
|
|
4
4
|
export declare const get: (http: AxiosInstance, params: GetSpaceParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { SpaceMembershipProps, CreateSpaceMembershipProps } from '../../entities/space-membership';
|
|
3
3
|
import { CollectionProp, QueryParams, GetSpaceParams, GetOrganizationParams } from './common-types';
|
|
4
4
|
declare type GetSpaceMembershipProps = GetSpaceParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { SpaceProps } from '../../entities/space';
|
|
3
3
|
import { CollectionProp, QueryParams, GetSpaceParams } from './common-types';
|
|
4
4
|
export declare const get: (http: AxiosInstance, params: GetSpaceParams) => Promise<SpaceProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { CreateTagProps, TagProps } from '../../entities/tag';
|
|
3
3
|
import type { CollectionProp, QueryParams, GetSpaceEnvironmentParams } from './common-types';
|
|
4
4
|
declare type GetTagParams = GetSpaceEnvironmentParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { CollectionProp, QueryParams, GetOrganizationParams, GetTeamParams } from './common-types';
|
|
3
3
|
import { CreateTeamMembershipProps, TeamMembershipProps } from '../../entities/team-membership';
|
|
4
4
|
declare type GetTeamMembershipParams = GetTeamParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { GetSpaceParams, QueryParams, CollectionProp, GetOrganizationParams } from './common-types';
|
|
3
3
|
import { TeamSpaceMembershipProps, CreateTeamSpaceMembershipProps } from '../../entities/team-space-membership';
|
|
4
4
|
declare type GetTeamSpaceMembershipParams = GetSpaceParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { CollectionProp, QueryParams, GetOrganizationParams, GetTeamParams } from './common-types';
|
|
3
3
|
import { CreateTeamProps, TeamProps } from '../../entities/team';
|
|
4
4
|
export declare const get: (http: AxiosInstance, params: GetTeamParams) => Promise<TeamProps>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { QueryParams, GetSpaceEnvironmentParams, CollectionProp } from './common-types';
|
|
3
3
|
import { UIExtensionProps, CreateUIExtensionProps } from '../../entities/ui-extension';
|
|
4
4
|
declare type GetUiExtensionParams = GetSpaceEnvironmentParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { UsageProps } from '../../entities/usage';
|
|
3
3
|
import { CollectionProp, QueryParams } from './common-types';
|
|
4
4
|
export declare const getManyForSpace: (http: AxiosInstance, params: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { CollectionProp, QueryParams, GetSpaceParams, GetOrganizationParams } from './common-types';
|
|
3
3
|
import { UserProps } from '../../entities/user';
|
|
4
4
|
export declare const getForSpace: (http: AxiosInstance, params: GetSpaceParams & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
import { QueryParams, GetSpaceParams, CollectionProp } from './common-types';
|
|
3
3
|
import { WebhookProps, CreateWebhooksProps, WebhookHealthProps, WebhookCallDetailsProps } from '../../entities/webhook';
|
|
4
4
|
declare type GetWebhookParams = GetSpaceParams & {
|
|
@@ -626,7 +626,7 @@ export declare const createPlainClient: (params: ClientParams, defaults?: Defaul
|
|
|
626
626
|
teamMembershipId: string;
|
|
627
627
|
}, "organizationId">>) => Promise<import("../export-types").TeamMembershipProps>;
|
|
628
628
|
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").TeamMembershipProps>>;
|
|
629
|
-
getManyForTeam: (params: Pick<import("./endpoints/common-types").GetTeamParams & import("./endpoints/common-types").QueryParams, "
|
|
629
|
+
getManyForTeam: (params: Pick<import("./endpoints/common-types").GetTeamParams & import("./endpoints/common-types").QueryParams, "query" | "teamId"> & Partial<Pick<import("./endpoints/common-types").GetTeamParams & import("./endpoints/common-types").QueryParams, "organizationId">>) => Promise<import("../common-types").CollectionProp<import("../export-types").TeamMembershipProps>>;
|
|
630
630
|
create: (params: Pick<import("./endpoints/common-types").GetTeamParams, "teamId"> & Partial<Pick<import("./endpoints/common-types").GetTeamParams, "organizationId">>, rawData: Pick<import("../export-types").TeamMembershipProps, "admin" | "organizationMembershipId">, headers?: Record<string, unknown> | undefined) => Promise<import("../export-types").TeamMembershipProps>;
|
|
631
631
|
update: (params: Pick<import("./endpoints/common-types").GetTeamParams & {
|
|
632
632
|
teamMembershipId: string;
|
|
@@ -653,7 +653,7 @@ export declare const createPlainClient: (params: ClientParams, defaults?: Defaul
|
|
|
653
653
|
}, "organizationId">>) => Promise<import("../export-types").TeamSpaceMembershipProps>;
|
|
654
654
|
getManyForOrganization: (params: Pick<import("./endpoints/common-types").GetOrganizationParams & import("./endpoints/common-types").QueryParams & {
|
|
655
655
|
teamId?: string | undefined;
|
|
656
|
-
}, "
|
|
656
|
+
}, "query" | "teamId"> & Partial<Pick<import("./endpoints/common-types").GetOrganizationParams & import("./endpoints/common-types").QueryParams & {
|
|
657
657
|
teamId?: string | undefined;
|
|
658
658
|
}, "organizationId">>) => Promise<import("../common-types").CollectionProp<import("../export-types").TeamSpaceMembershipProps>>;
|
|
659
659
|
create: (params: Pick<import("./endpoints/common-types").GetSpaceParams & {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AxiosInstance } from '
|
|
1
|
+
import type { AxiosInstance } from 'contentful-sdk-core';
|
|
2
2
|
export declare function getUploadHttpClient(http: AxiosInstance): AxiosInstance;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-management",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.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",
|
|
@@ -55,10 +55,11 @@
|
|
|
55
55
|
"tonic-example.js"
|
|
56
56
|
],
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"contentful-sdk-core": "^6.
|
|
58
|
+
"contentful-sdk-core": "^6.7.0",
|
|
59
59
|
"axios": "^0.21.0",
|
|
60
|
-
"lodash": "^4.
|
|
61
|
-
"
|
|
60
|
+
"lodash.isplainobject": "^4.0.6",
|
|
61
|
+
"fast-copy": "^2.1.0",
|
|
62
|
+
"type-fest": "0.20.2"
|
|
62
63
|
},
|
|
63
64
|
"devDependencies": {
|
|
64
65
|
"@babel/cli": "^7.12.7",
|
|
@@ -73,6 +74,7 @@
|
|
|
73
74
|
"@babel/preset-typescript": "^7.12.7",
|
|
74
75
|
"@semantic-release/changelog": "^5.0.1",
|
|
75
76
|
"@types/lodash": "^4.14.165",
|
|
77
|
+
"@types/lodash.isplainobject": "^4.0.6",
|
|
76
78
|
"@types/chai": "^4.2.12",
|
|
77
79
|
"@typescript-eslint/eslint-plugin": "2.34.0",
|
|
78
80
|
"@typescript-eslint/parser": "2.34.0",
|
|
@@ -108,6 +110,7 @@
|
|
|
108
110
|
"karma-sourcemap-loader": "^0.3.7",
|
|
109
111
|
"karma-webpack": "^4.0.2",
|
|
110
112
|
"lint-staged": "^10.5.1",
|
|
113
|
+
"lodash": "^4.17.20",
|
|
111
114
|
"lodash-webpack-plugin": "^0.11.5",
|
|
112
115
|
"nodemon": "^2.0.6",
|
|
113
116
|
"mocha": "^8.1.1",
|
|
@@ -120,7 +123,7 @@
|
|
|
120
123
|
"typedoc": "^0.18.0",
|
|
121
124
|
"typescript": "^3.9.3",
|
|
122
125
|
"webpack": "^4.23.1",
|
|
123
|
-
"webpack-bundle-analyzer": "^
|
|
126
|
+
"webpack-bundle-analyzer": "^4.2.0",
|
|
124
127
|
"webpack-cli": "^3.1.2"
|
|
125
128
|
},
|
|
126
129
|
"config": {
|