@livechat/developer-studio-api 3.0.24 → 3.0.25

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
@@ -2637,6 +2637,7 @@ declare const api: {
2637
2637
  getEvents(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<AppEventDto[]>;
2638
2638
  };
2639
2639
  install: {
2640
+ getInstallations(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2640
2641
  install(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2641
2642
  uninstall(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2642
2643
  updateDirectInstallationUrl(appId: string, payload: UpdateApplicationDirectInstallUrlPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
package/dist/index.d.ts CHANGED
@@ -2637,6 +2637,7 @@ declare const api: {
2637
2637
  getEvents(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<AppEventDto[]>;
2638
2638
  };
2639
2639
  install: {
2640
+ getInstallations(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2640
2641
  install(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2641
2642
  uninstall(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2642
2643
  updateDirectInstallationUrl(appId: string, payload: UpdateApplicationDirectInstallUrlPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
package/dist/index.js CHANGED
@@ -3900,6 +3900,18 @@ var platformDpsApplicationInfrastructureApi = {
3900
3900
 
3901
3901
  // src/apis/platform/dps/applications/application/install/api.ts
3902
3902
  var platformDpsApplicationInstallApi = {
3903
+ getInstallations(appId, authorization) {
3904
+ return __async(this, null, function* () {
3905
+ yield platformDpsClientInstance.get(
3906
+ `/v2/applications/${appId}/installations`,
3907
+ getPlatformDpsClientConfig(authorization)
3908
+ ).catch((error) => {
3909
+ throw error.withCustomMessage(
3910
+ `Couldn't get app installations. [${error.message}]`
3911
+ );
3912
+ });
3913
+ });
3914
+ },
3903
3915
  install(appId, authorization) {
3904
3916
  return __async(this, null, function* () {
3905
3917
  yield platformDpsClientInstance.put(
package/dist/index.mjs CHANGED
@@ -3798,6 +3798,18 @@ var platformDpsApplicationInfrastructureApi = {
3798
3798
 
3799
3799
  // src/apis/platform/dps/applications/application/install/api.ts
3800
3800
  var platformDpsApplicationInstallApi = {
3801
+ getInstallations(appId, authorization) {
3802
+ return __async(this, null, function* () {
3803
+ yield platformDpsClientInstance.get(
3804
+ `/v2/applications/${appId}/installations`,
3805
+ getPlatformDpsClientConfig(authorization)
3806
+ ).catch((error) => {
3807
+ throw error.withCustomMessage(
3808
+ `Couldn't get app installations. [${error.message}]`
3809
+ );
3810
+ });
3811
+ });
3812
+ },
3801
3813
  install(appId, authorization) {
3802
3814
  return __async(this, null, function* () {
3803
3815
  yield platformDpsClientInstance.put(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.0.24",
3
+ "version": "3.0.25",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -17,9 +17,9 @@
17
17
  "@types/node": "^17.0.12",
18
18
  "tsup": "^7.1.0",
19
19
  "typescript": "^5.1.6",
20
- "tsconfig": "0.0.1",
21
20
  "eslint-config-custom": "0.0.7",
22
- "utils": "0.0.3"
21
+ "utils": "0.0.3",
22
+ "tsconfig": "0.0.1"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsup",