@livechat/developer-studio-api 2.3.52 → 2.3.54

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
@@ -1867,6 +1867,7 @@ interface ApplicationPropertyDto {
1867
1867
  }
1868
1868
 
1869
1869
  interface AppResourceDto {
1870
+ items: unknown[];
1870
1871
  }
1871
1872
 
1872
1873
  interface UpsertAppResourcePayload {
@@ -2451,7 +2452,8 @@ declare const api: {
2451
2452
  };
2452
2453
  getApp(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<ApplicationDto>;
2453
2454
  createApp(payload: CreateApplicationPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2454
- fork(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any>>;
2455
+ fork(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<ApplicationDto>>;
2456
+ publish(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any>>;
2455
2457
  updateQL(appId: string): Promise<void>;
2456
2458
  deleteApp(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2457
2459
  createAiContent(appId: string, appName: string, appSummary: string): Promise<axios.AxiosResponse<any>>;
package/dist/index.d.ts CHANGED
@@ -1867,6 +1867,7 @@ interface ApplicationPropertyDto {
1867
1867
  }
1868
1868
 
1869
1869
  interface AppResourceDto {
1870
+ items: unknown[];
1870
1871
  }
1871
1872
 
1872
1873
  interface UpsertAppResourcePayload {
@@ -2451,7 +2452,8 @@ declare const api: {
2451
2452
  };
2452
2453
  getApp(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<ApplicationDto>;
2453
2454
  createApp(payload: CreateApplicationPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
2454
- fork(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any>>;
2455
+ fork(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<ApplicationDto>>;
2456
+ publish(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any>>;
2455
2457
  updateQL(appId: string): Promise<void>;
2456
2458
  deleteApp(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2457
2459
  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.54",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",