@livechat/developer-studio-api 3.2.9 → 3.3.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.
package/dist/index.d.mts CHANGED
@@ -5518,6 +5518,7 @@ interface AgentDto {
5518
5518
  instances: [];
5519
5519
  api_key: string;
5520
5520
  license_id: number;
5521
+ license: number;
5521
5522
  bot: number;
5522
5523
  account_id: string;
5523
5524
  }
@@ -6290,6 +6291,7 @@ declare const api: {
6290
6291
  install(appId: string, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
6291
6292
  uninstall(appId: string, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
6292
6293
  updateDirectInstallationUrl(appId: string, payload: UpdateApplicationDirectInstallUrlPayload, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
6294
+ getInstalledApplication(appId: string, license: string, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<ApplicationDto, any>>;
6293
6295
  };
6294
6296
  infrastructure: {
6295
6297
  blocks: {
package/dist/index.d.ts CHANGED
@@ -5518,6 +5518,7 @@ interface AgentDto {
5518
5518
  instances: [];
5519
5519
  api_key: string;
5520
5520
  license_id: number;
5521
+ license: number;
5521
5522
  bot: number;
5522
5523
  account_id: string;
5523
5524
  }
@@ -6290,6 +6291,7 @@ declare const api: {
6290
6291
  install(appId: string, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
6291
6292
  uninstall(appId: string, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
6292
6293
  updateDirectInstallationUrl(appId: string, payload: UpdateApplicationDirectInstallUrlPayload, authorization?: PlatformClientAuthorization | undefined): Promise<void>;
6294
+ getInstalledApplication(appId: string, license: string, authorization?: PlatformClientAuthorization | undefined): Promise<axios.AxiosResponse<ApplicationDto, any>>;
6293
6295
  };
6294
6296
  infrastructure: {
6295
6297
  blocks: {
package/dist/index.js CHANGED
@@ -6331,6 +6331,20 @@ var platformDpsApplicationInstallApi = {
6331
6331
  );
6332
6332
  });
6333
6333
  });
6334
+ },
6335
+ getInstalledApplication(appId, license, authorization) {
6336
+ return __async(this, null, function* () {
6337
+ return platformDpsClientInstance.get(
6338
+ `/v1/applications/${encodeURIComponent(appId)}/installed`,
6339
+ {
6340
+ headers: __spreadProps(__spreadValues({}, getPlatformDpsClientConfig(authorization).headers), {
6341
+ "X-License": license
6342
+ })
6343
+ }
6344
+ ).catch((error) => {
6345
+ throw error.withCustomMessage(`Couldn't get app. [${error.message}]`);
6346
+ });
6347
+ });
6334
6348
  }
6335
6349
  };
6336
6350
 
package/dist/index.mjs CHANGED
@@ -6178,6 +6178,20 @@ var platformDpsApplicationInstallApi = {
6178
6178
  );
6179
6179
  });
6180
6180
  });
6181
+ },
6182
+ getInstalledApplication(appId, license, authorization) {
6183
+ return __async(this, null, function* () {
6184
+ return platformDpsClientInstance.get(
6185
+ `/v1/applications/${encodeURIComponent(appId)}/installed`,
6186
+ {
6187
+ headers: __spreadProps(__spreadValues({}, getPlatformDpsClientConfig(authorization).headers), {
6188
+ "X-License": license
6189
+ })
6190
+ }
6191
+ ).catch((error) => {
6192
+ throw error.withCustomMessage(`Couldn't get app. [${error.message}]`);
6193
+ });
6194
+ });
6181
6195
  }
6182
6196
  };
6183
6197
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.2.9",
3
+ "version": "3.3.0",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",