@livechat/developer-studio-api 2.0.28 → 2.0.30

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
@@ -2278,6 +2278,7 @@ declare const api: {
2278
2278
  monitoring: {
2279
2279
  getUptimeReports(appId: string, payload: GetAppMonitoringReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
2280
2280
  getEventReports(appId: string, payload: GetAppMonitoringReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2281
+ getEvents(appId: string, payload: GetAppMonitoringReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2281
2282
  };
2282
2283
  };
2283
2284
  };
package/dist/index.d.ts CHANGED
@@ -2278,6 +2278,7 @@ declare const api: {
2278
2278
  monitoring: {
2279
2279
  getUptimeReports(appId: string, payload: GetAppMonitoringReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
2280
2280
  getEventReports(appId: string, payload: GetAppMonitoringReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2281
+ getEvents(appId: string, payload: GetAppMonitoringReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2281
2282
  };
2282
2283
  };
2283
2284
  };
package/dist/index.js CHANGED
@@ -1768,6 +1768,22 @@ var textAppMonitoringApi = {
1768
1768
  throw error;
1769
1769
  }
1770
1770
  });
1771
+ },
1772
+ getEvents(appId, payload, authorization) {
1773
+ return __async(this, null, function* () {
1774
+ try {
1775
+ const response = yield textClientInstance.get(
1776
+ `/app_monitoring/${appId}/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
1777
+ getTextClientConfig(authorization)
1778
+ );
1779
+ return response.data;
1780
+ } catch (error) {
1781
+ if (error instanceof Error) {
1782
+ throw new Error(`Couldn't load events. [${error.message}]`);
1783
+ }
1784
+ throw error;
1785
+ }
1786
+ });
1771
1787
  }
1772
1788
  };
1773
1789
 
package/dist/index.mjs CHANGED
@@ -1680,6 +1680,22 @@ var textAppMonitoringApi = {
1680
1680
  throw error;
1681
1681
  }
1682
1682
  });
1683
+ },
1684
+ getEvents(appId, payload, authorization) {
1685
+ return __async(this, null, function* () {
1686
+ try {
1687
+ const response = yield textClientInstance.get(
1688
+ `/app_monitoring/${appId}/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
1689
+ getTextClientConfig(authorization)
1690
+ );
1691
+ return response.data;
1692
+ } catch (error) {
1693
+ if (error instanceof Error) {
1694
+ throw new Error(`Couldn't load events. [${error.message}]`);
1695
+ }
1696
+ throw error;
1697
+ }
1698
+ });
1683
1699
  }
1684
1700
  };
1685
1701
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.0.28",
3
+ "version": "2.0.30",
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,10 +17,10 @@
17
17
  "@types/node": "^17.0.12",
18
18
  "tsup": "^7.1.0",
19
19
  "typescript": "^5.1.6",
20
- "eslint-config-custom-lib": "0.0.1",
21
20
  "config": "0.0.0",
22
21
  "tsconfig": "0.0.0",
23
- "types": "0.0.1"
22
+ "types": "0.0.1",
23
+ "eslint-config-custom-lib": "0.0.1"
24
24
  },
25
25
  "scripts": {
26
26
  "build": "tsup src/index.ts --format esm,cjs --dts",