contentful-management 11.31.8 → 11.32.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.
@@ -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.31.8"}`, params.application, params.integration, params.feature);
49
+ `${sdkMain}/${"11.32.0"}`, params.application, params.integration, params.feature);
50
50
  const adapter = createAdapter(_objectSpread(_objectSpread({}, params), {}, {
51
51
  userAgent
52
52
  }));
@@ -680,7 +680,7 @@ export default function createOrganizationApi(makeRequest: MakeRequest): {
680
680
  url: string;
681
681
  name: string;
682
682
  description?: string;
683
- type?: "endpoint" | "function";
683
+ type?: import("./entities/app-action").AppActionType;
684
684
  } & import("./common-types").DefaultElements<import("./entities/app-action").AppActionProps> & {
685
685
  delete(): Promise<void>;
686
686
  }) | ({
@@ -701,7 +701,7 @@ export default function createOrganizationApi(makeRequest: MakeRequest): {
701
701
  url: string;
702
702
  name: string;
703
703
  description?: string;
704
- type?: "endpoint" | "function";
704
+ type?: import("./entities/app-action").AppActionType;
705
705
  } & import("./common-types").DefaultElements<import("./entities/app-action").AppActionProps> & {
706
706
  delete(): Promise<void>;
707
707
  })>;
@@ -741,7 +741,7 @@ export default function createOrganizationApi(makeRequest: MakeRequest): {
741
741
  url: string;
742
742
  name: string;
743
743
  description?: string;
744
- type?: "endpoint" | "function";
744
+ type?: import("./entities/app-action").AppActionType;
745
745
  } & import("./common-types").DefaultElements<import("./entities/app-action").AppActionProps> & {
746
746
  delete(): Promise<void>;
747
747
  }) | ({
@@ -762,7 +762,7 @@ export default function createOrganizationApi(makeRequest: MakeRequest): {
762
762
  url: string;
763
763
  name: string;
764
764
  description?: string;
765
- type?: "endpoint" | "function";
765
+ type?: import("./entities/app-action").AppActionType;
766
766
  } & import("./common-types").DefaultElements<import("./entities/app-action").AppActionProps> & {
767
767
  delete(): Promise<void>;
768
768
  })>;
@@ -814,7 +814,7 @@ export default function createOrganizationApi(makeRequest: MakeRequest): {
814
814
  url: string;
815
815
  name: string;
816
816
  description?: string;
817
- type?: "endpoint" | "function";
817
+ type?: import("./entities/app-action").AppActionType;
818
818
  } & import("./common-types").DefaultElements<import("./entities/app-action").AppActionProps> & {
819
819
  delete(): Promise<void>;
820
820
  }) | ({
@@ -835,7 +835,7 @@ export default function createOrganizationApi(makeRequest: MakeRequest): {
835
835
  url: string;
836
836
  name: string;
837
837
  description?: string;
838
- type?: "endpoint" | "function";
838
+ type?: import("./entities/app-action").AppActionType;
839
839
  } & import("./common-types").DefaultElements<import("./entities/app-action").AppActionProps> & {
840
840
  delete(): Promise<void>;
841
841
  })>;
@@ -31,10 +31,12 @@ type CustomAppActionProps = {
31
31
  };
32
32
  type AppActionCategory = BuiltInCategoriesProps | CustomAppActionProps;
33
33
  export type AppActionCategoryType = AppActionCategory['category'];
34
+ export type AppActionType = 'endpoint' | 'function' | 'function-invocation';
34
35
  export type CreateAppActionProps = AppActionCategory & {
35
36
  url: string;
36
37
  name: string;
37
38
  description?: string;
39
+ type?: AppActionType;
38
40
  };
39
41
  export type AppActionProps = AppActionCategory & {
40
42
  /**
@@ -53,7 +55,13 @@ export type AppActionProps = AppActionCategory & {
53
55
  * Human readable description of the action
54
56
  */
55
57
  description?: string;
56
- type?: 'endpoint' | 'function';
58
+ /**
59
+ * Type of the action, defaults to endpoint if not provided
60
+ * endpoint: action is sent to specified URL
61
+ * function: deprecated, use function-invocation instead
62
+ * function-invocation: action invokes a contentful function
63
+ */
64
+ type?: AppActionType;
57
65
  };
58
66
  export type AppAction = AppActionProps & DefaultElements<AppActionProps> & {
59
67
  /**
@@ -1,7 +1,7 @@
1
1
  export * from './common-types';
2
2
  export * from './plain/common-types';
3
3
  export type { ApiKey, ApiKeyProps, CreateApiKeyProps } from './entities/api-key';
4
- export type { AppAction, AppActionCategoryProps, AppActionCategoryType, AppActionParameterDefinition, AppActionProps, CreateAppActionProps, } from './entities/app-action';
4
+ export type { AppAction, AppActionCategoryProps, AppActionCategoryType, AppActionParameterDefinition, AppActionProps, AppActionType, CreateAppActionProps, } from './entities/app-action';
5
5
  export type { AppActionCall, AppActionCallProps, CreateAppActionCallProps, } from './entities/app-action-call';
6
6
  export type { AppBundle, AppBundleFile, AppBundleProps, CreateAppBundleProps, } from './entities/app-bundle';
7
7
  export type { AppDefinition, AppDefinitionProps, AppLocation, CreateAppDefinitionProps, EntryFieldLocation, NavigationItem, PageLocation, SimpleLocation, } from './entities/app-definition';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contentful-management",
3
- "version": "11.31.8",
3
+ "version": "11.32.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",