@livechat/developer-studio-api 3.0.34 → 3.0.36

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