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