@livechat/developer-studio-api 3.0.0 → 3.0.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/dist/index.d.mts CHANGED
@@ -866,6 +866,7 @@ type AppManifest = AppBaseData & {
866
866
  widgets?: AppWidgetsData;
867
867
  };
868
868
  display?: AppDisplayData;
869
+ stage?: "labs";
869
870
  };
870
871
 
871
872
  type PushAppSagaBaseStep = SagaStep<{
@@ -2702,6 +2703,7 @@ declare const api: {
2702
2703
  data: never[];
2703
2704
  }>;
2704
2705
  deleteLicenseWebhook(id: string, authorization?: LiveChatClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<undefined, any>>;
2706
+ getWebhookNamesList(version: string, authorization?: LiveChatClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any, any>>;
2705
2707
  };
2706
2708
  };
2707
2709
  };
package/dist/index.d.ts CHANGED
@@ -866,6 +866,7 @@ type AppManifest = AppBaseData & {
866
866
  widgets?: AppWidgetsData;
867
867
  };
868
868
  display?: AppDisplayData;
869
+ stage?: "labs";
869
870
  };
870
871
 
871
872
  type PushAppSagaBaseStep = SagaStep<{
@@ -2702,6 +2703,7 @@ declare const api: {
2702
2703
  data: never[];
2703
2704
  }>;
2704
2705
  deleteLicenseWebhook(id: string, authorization?: LiveChatClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<undefined, any>>;
2706
+ getWebhookNamesList(version: string, authorization?: LiveChatClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any, any>>;
2705
2707
  };
2706
2708
  };
2707
2709
  };
package/dist/index.js CHANGED
@@ -2800,6 +2800,26 @@ var livechatWebhookApi = {
2800
2800
  }
2801
2801
  }
2802
2802
  });
2803
+ },
2804
+ getWebhookNamesList(version, authorization) {
2805
+ return __async(this, null, function* () {
2806
+ try {
2807
+ const response = yield livechatClientInstance.post(
2808
+ `/v3.5/configuration/action/list_webhook_names`,
2809
+ { version },
2810
+ getLiveChatClientConfig(authorization)
2811
+ );
2812
+ return response;
2813
+ } catch (error) {
2814
+ if (error instanceof Error) {
2815
+ throw new Error(
2816
+ `Webhook names list couldn't be fetched. [${error.message}]`
2817
+ );
2818
+ } else {
2819
+ throw error;
2820
+ }
2821
+ }
2822
+ });
2803
2823
  }
2804
2824
  };
2805
2825
 
package/dist/index.mjs CHANGED
@@ -2699,6 +2699,26 @@ var livechatWebhookApi = {
2699
2699
  }
2700
2700
  }
2701
2701
  });
2702
+ },
2703
+ getWebhookNamesList(version, authorization) {
2704
+ return __async(this, null, function* () {
2705
+ try {
2706
+ const response = yield livechatClientInstance.post(
2707
+ `/v3.5/configuration/action/list_webhook_names`,
2708
+ { version },
2709
+ getLiveChatClientConfig(authorization)
2710
+ );
2711
+ return response;
2712
+ } catch (error) {
2713
+ if (error instanceof Error) {
2714
+ throw new Error(
2715
+ `Webhook names list couldn't be fetched. [${error.message}]`
2716
+ );
2717
+ } else {
2718
+ throw error;
2719
+ }
2720
+ }
2721
+ });
2702
2722
  }
2703
2723
  };
2704
2724
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",