@livechat/developer-studio-api 2.0.37 → 2.0.38

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
@@ -2314,16 +2314,18 @@ declare const api: {
2314
2314
  getUptimeReports(appId: string, payload: GetAppMonitoringUptimeReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
2315
2315
  };
2316
2316
  events: {
2317
- getEvent(appId: string, key: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
2317
+ getEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
2318
2318
  getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
2319
2319
  getEventReports(appId: string, payload: GetAppMonitoringEventsReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2320
2320
  getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsLogDto>;
2321
2321
  upsertEvent(appId: string, event: AppMonitoringEvent, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2322
+ deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2322
2323
  };
2323
2324
  reports: {
2324
2325
  getReport(appId: string, reportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringReport>;
2325
2326
  getReports(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringReport[]>;
2326
2327
  upsertReport(appId: string, report: AppMonitoringReport, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2328
+ deleteReport(appId: string, reportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2327
2329
  };
2328
2330
  };
2329
2331
  };
package/dist/index.d.ts CHANGED
@@ -2314,16 +2314,18 @@ declare const api: {
2314
2314
  getUptimeReports(appId: string, payload: GetAppMonitoringUptimeReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
2315
2315
  };
2316
2316
  events: {
2317
- getEvent(appId: string, key: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
2317
+ getEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
2318
2318
  getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
2319
2319
  getEventReports(appId: string, payload: GetAppMonitoringEventsReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2320
2320
  getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsLogDto>;
2321
2321
  upsertEvent(appId: string, event: AppMonitoringEvent, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2322
+ deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2322
2323
  };
2323
2324
  reports: {
2324
2325
  getReport(appId: string, reportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringReport>;
2325
2326
  getReports(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringReport[]>;
2326
2327
  upsertReport(appId: string, report: AppMonitoringReport, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2328
+ deleteReport(appId: string, reportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2327
2329
  };
2328
2330
  };
2329
2331
  };
package/dist/index.js CHANGED
@@ -1737,11 +1737,11 @@ function initTextClientInstance(baseUrl, token) {
1737
1737
 
1738
1738
  // src/apis/integrations/text/app/monitoring/events/api.ts
1739
1739
  var textAppMonitoringEventsApi = {
1740
- getEvent(appId, key, authorization) {
1740
+ getEvent(appId, eventKey, authorization) {
1741
1741
  return __async(this, null, function* () {
1742
1742
  try {
1743
1743
  const response = yield textClientInstance.get(
1744
- `/app_monitoring/${appId}/events/${key}`,
1744
+ `/app_monitoring/${appId}/events/${eventKey}`,
1745
1745
  getTextClientConfig(authorization)
1746
1746
  );
1747
1747
  return response.data;
@@ -1817,6 +1817,22 @@ var textAppMonitoringEventsApi = {
1817
1817
  throw error;
1818
1818
  }
1819
1819
  });
1820
+ },
1821
+ deleteEvent(appId, eventKey, authorization) {
1822
+ return __async(this, null, function* () {
1823
+ try {
1824
+ const response = yield textClientInstance.delete(
1825
+ `/app_monitoring/${appId}/events/${eventKey}`,
1826
+ getTextClientConfig(authorization)
1827
+ );
1828
+ return response.data;
1829
+ } catch (error) {
1830
+ if (error instanceof Error) {
1831
+ throw new Error(`Couldn't delete event. [${error.message}]`);
1832
+ }
1833
+ throw error;
1834
+ }
1835
+ });
1820
1836
  }
1821
1837
  };
1822
1838
 
@@ -1870,6 +1886,22 @@ var textAppMonitoringReportsApi = {
1870
1886
  throw error;
1871
1887
  }
1872
1888
  });
1889
+ },
1890
+ deleteReport(appId, reportId, authorization) {
1891
+ return __async(this, null, function* () {
1892
+ try {
1893
+ const response = yield textClientInstance.delete(
1894
+ `/app_monitoring/${appId}/report/${reportId}`,
1895
+ getTextClientConfig(authorization)
1896
+ );
1897
+ return response.data;
1898
+ } catch (error) {
1899
+ if (error instanceof Error) {
1900
+ throw new Error(`Couldn't delete report. [${error.message}]`);
1901
+ }
1902
+ throw error;
1903
+ }
1904
+ });
1873
1905
  }
1874
1906
  };
1875
1907
 
package/dist/index.mjs CHANGED
@@ -1649,11 +1649,11 @@ function initTextClientInstance(baseUrl, token) {
1649
1649
 
1650
1650
  // src/apis/integrations/text/app/monitoring/events/api.ts
1651
1651
  var textAppMonitoringEventsApi = {
1652
- getEvent(appId, key, authorization) {
1652
+ getEvent(appId, eventKey, authorization) {
1653
1653
  return __async(this, null, function* () {
1654
1654
  try {
1655
1655
  const response = yield textClientInstance.get(
1656
- `/app_monitoring/${appId}/events/${key}`,
1656
+ `/app_monitoring/${appId}/events/${eventKey}`,
1657
1657
  getTextClientConfig(authorization)
1658
1658
  );
1659
1659
  return response.data;
@@ -1729,6 +1729,22 @@ var textAppMonitoringEventsApi = {
1729
1729
  throw error;
1730
1730
  }
1731
1731
  });
1732
+ },
1733
+ deleteEvent(appId, eventKey, authorization) {
1734
+ return __async(this, null, function* () {
1735
+ try {
1736
+ const response = yield textClientInstance.delete(
1737
+ `/app_monitoring/${appId}/events/${eventKey}`,
1738
+ getTextClientConfig(authorization)
1739
+ );
1740
+ return response.data;
1741
+ } catch (error) {
1742
+ if (error instanceof Error) {
1743
+ throw new Error(`Couldn't delete event. [${error.message}]`);
1744
+ }
1745
+ throw error;
1746
+ }
1747
+ });
1732
1748
  }
1733
1749
  };
1734
1750
 
@@ -1782,6 +1798,22 @@ var textAppMonitoringReportsApi = {
1782
1798
  throw error;
1783
1799
  }
1784
1800
  });
1801
+ },
1802
+ deleteReport(appId, reportId, authorization) {
1803
+ return __async(this, null, function* () {
1804
+ try {
1805
+ const response = yield textClientInstance.delete(
1806
+ `/app_monitoring/${appId}/report/${reportId}`,
1807
+ getTextClientConfig(authorization)
1808
+ );
1809
+ return response.data;
1810
+ } catch (error) {
1811
+ if (error instanceof Error) {
1812
+ throw new Error(`Couldn't delete report. [${error.message}]`);
1813
+ }
1814
+ throw error;
1815
+ }
1816
+ });
1785
1817
  }
1786
1818
  };
1787
1819
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.0.37",
3
+ "version": "2.0.38",
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,9 +18,9 @@
18
18
  "tsup": "^7.1.0",
19
19
  "typescript": "^5.1.6",
20
20
  "config": "0.0.0",
21
- "eslint-config-custom-lib": "0.0.1",
21
+ "types": "0.0.1",
22
22
  "tsconfig": "0.0.0",
23
- "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",