@livechat/developer-studio-api 2.3.52 → 2.3.53

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
@@ -2452,6 +2452,7 @@ declare const api: {
2452
2452
  getApp(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<ApplicationDto>;
2453
2453
  createApp(payload: CreateApplicationPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2454
2454
  fork(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any>>;
2455
+ publish(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any>>;
2455
2456
  updateQL(appId: string): Promise<void>;
2456
2457
  deleteApp(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2457
2458
  createAiContent(appId: string, appName: string, appSummary: string): Promise<axios.AxiosResponse<any>>;
package/dist/index.d.ts CHANGED
@@ -2452,6 +2452,7 @@ declare const api: {
2452
2452
  getApp(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<ApplicationDto>;
2453
2453
  createApp(payload: CreateApplicationPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2454
2454
  fork(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any>>;
2455
+ publish(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any>>;
2455
2456
  updateQL(appId: string): Promise<void>;
2456
2457
  deleteApp(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2457
2458
  createAiContent(appId: string, appName: string, appSummary: string): Promise<axios.AxiosResponse<any>>;
package/dist/index.js CHANGED
@@ -4974,6 +4974,21 @@ var platformDpsApplicationApi = {
4974
4974
  }
4975
4975
  });
4976
4976
  },
4977
+ publish(appId, authorization) {
4978
+ return __async(this, null, function* () {
4979
+ try {
4980
+ return yield platformDpsClientInstance.post(
4981
+ `/v2/applications/${appId}/publish`,
4982
+ getPlatformDpsClientConfig(authorization)
4983
+ );
4984
+ } catch (error) {
4985
+ if (error instanceof Error) {
4986
+ throw new Error(`App couldn't be published. [${error.message}]`);
4987
+ }
4988
+ throw error;
4989
+ }
4990
+ });
4991
+ },
4977
4992
  updateQL(appId) {
4978
4993
  return __async(this, null, function* () {
4979
4994
  try {
package/dist/index.mjs CHANGED
@@ -4878,6 +4878,21 @@ var platformDpsApplicationApi = {
4878
4878
  }
4879
4879
  });
4880
4880
  },
4881
+ publish(appId, authorization) {
4882
+ return __async(this, null, function* () {
4883
+ try {
4884
+ return yield platformDpsClientInstance.post(
4885
+ `/v2/applications/${appId}/publish`,
4886
+ getPlatformDpsClientConfig(authorization)
4887
+ );
4888
+ } catch (error) {
4889
+ if (error instanceof Error) {
4890
+ throw new Error(`App couldn't be published. [${error.message}]`);
4891
+ }
4892
+ throw error;
4893
+ }
4894
+ });
4895
+ },
4881
4896
  updateQL(appId) {
4882
4897
  return __async(this, null, function* () {
4883
4898
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.3.52",
3
+ "version": "2.3.53",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -18,8 +18,8 @@
18
18
  "tsup": "^7.1.0",
19
19
  "typescript": "^5.1.6",
20
20
  "config": "0.0.1",
21
- "tsconfig": "0.0.1",
22
- "eslint-config-custom": "0.0.2"
21
+ "eslint-config-custom": "0.0.2",
22
+ "tsconfig": "0.0.1"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsup src/index.ts --format esm,cjs --dts",