@livechat/developer-studio-api 3.0.33 → 3.0.35

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
@@ -2754,6 +2754,10 @@ declare const api: {
2754
2754
  getApps({ filter }?: {
2755
2755
  filter?: string | undefined;
2756
2756
  }): Promise<ApplicationDto[] | null>;
2757
+ getAppsInstallations(): Promise<{
2758
+ id: string;
2759
+ installations: number;
2760
+ }[] | null>;
2757
2761
  };
2758
2762
  user: {
2759
2763
  getUser(authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<UserDto>;
package/dist/index.d.ts CHANGED
@@ -2754,6 +2754,10 @@ declare const api: {
2754
2754
  getApps({ filter }?: {
2755
2755
  filter?: string | undefined;
2756
2756
  }): Promise<ApplicationDto[] | null>;
2757
+ getAppsInstallations(): Promise<{
2758
+ id: string;
2759
+ installations: number;
2760
+ }[] | null>;
2757
2761
  };
2758
2762
  user: {
2759
2763
  getUser(authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<UserDto>;
package/dist/index.js CHANGED
@@ -4498,6 +4498,15 @@ var platformDpsApplicationsApi = {
4498
4498
  );
4499
4499
  });
4500
4500
  });
4501
+ },
4502
+ getAppsInstallations() {
4503
+ return __async(this, null, function* () {
4504
+ return platformDpsClientInstance.get(`/v2/applications/installations/counters/my`).then(({ data }) => data).catch((error) => {
4505
+ throw error.withCustomMessage(
4506
+ `Apps installations couldn't be fetched. [${error.message}]`
4507
+ );
4508
+ });
4509
+ });
4501
4510
  }
4502
4511
  };
4503
4512
 
package/dist/index.mjs CHANGED
@@ -4396,6 +4396,15 @@ var platformDpsApplicationsApi = {
4396
4396
  );
4397
4397
  });
4398
4398
  });
4399
+ },
4400
+ getAppsInstallations() {
4401
+ return __async(this, null, function* () {
4402
+ return platformDpsClientInstance.get(`/v2/applications/installations/counters/my`).then(({ data }) => data).catch((error) => {
4403
+ throw error.withCustomMessage(
4404
+ `Apps installations couldn't be fetched. [${error.message}]`
4405
+ );
4406
+ });
4407
+ });
4399
4408
  }
4400
4409
  };
4401
4410
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "3.0.33",
3
+ "version": "3.0.35",
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
  "eslint-config-custom": "0.0.7",
21
- "utils": "0.0.3",
22
- "tsconfig": "0.0.1"
21
+ "tsconfig": "0.0.1",
22
+ "utils": "0.0.3"
23
23
  },
24
24
  "scripts": {
25
25
  "build": "tsup",