@livechat/developer-studio-api 2.0.44 → 2.0.45

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
@@ -422,24 +422,11 @@ interface AppMonitoringReportParams {
422
422
  resolution: "hourly" | "daily" | "monthly";
423
423
  }
424
424
 
425
- interface GetAppMonitoringCustomReportDataPayload {
426
- from: string;
427
- to: string;
428
- resolution: "hourly" | "daily" | "monthly";
429
- }
425
+ type GetAppMonitoringCustomReportDataPayload = AppMonitoringReportParams;
430
426
 
431
- interface GetAppMonitoringUptimeReportPayload {
432
- from: string;
433
- to: string;
434
- resolution: "hourly" | "daily" | "monthly";
435
- }
427
+ type GetAppMonitoringUptimeReportPayload = AppMonitoringReportParams;
436
428
 
437
- interface GetAppMonitoringEventsReportPayload {
438
- from: string;
439
- to: string;
440
- resolution: "hourly" | "daily" | "monthly";
441
- type: string | undefined;
442
- }
429
+ type GetAppMonitoringEventsReportPayload = AppMonitoringReportParams;
443
430
 
444
431
  interface AppMonitoringEvent {
445
432
  key: string;
@@ -2338,8 +2325,8 @@ declare const api: {
2338
2325
  deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2339
2326
  };
2340
2327
  reports: {
2341
- getUptimeReports(appId: string, payload: GetAppMonitoringUptimeReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
2342
- getEventReports(appId: string, payload: GetAppMonitoringEventsReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2328
+ getUptimeReports(appId: string, payload: AppMonitoringReportParams, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
2329
+ getEventReports(appId: string, payload: AppMonitoringReportParams, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2343
2330
  getCustomReport(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport>;
2344
2331
  getCustomReportData(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReportDataDto>;
2345
2332
  getCustomReports(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport[]>;
package/dist/index.d.ts CHANGED
@@ -422,24 +422,11 @@ interface AppMonitoringReportParams {
422
422
  resolution: "hourly" | "daily" | "monthly";
423
423
  }
424
424
 
425
- interface GetAppMonitoringCustomReportDataPayload {
426
- from: string;
427
- to: string;
428
- resolution: "hourly" | "daily" | "monthly";
429
- }
425
+ type GetAppMonitoringCustomReportDataPayload = AppMonitoringReportParams;
430
426
 
431
- interface GetAppMonitoringUptimeReportPayload {
432
- from: string;
433
- to: string;
434
- resolution: "hourly" | "daily" | "monthly";
435
- }
427
+ type GetAppMonitoringUptimeReportPayload = AppMonitoringReportParams;
436
428
 
437
- interface GetAppMonitoringEventsReportPayload {
438
- from: string;
439
- to: string;
440
- resolution: "hourly" | "daily" | "monthly";
441
- type: string | undefined;
442
- }
429
+ type GetAppMonitoringEventsReportPayload = AppMonitoringReportParams;
443
430
 
444
431
  interface AppMonitoringEvent {
445
432
  key: string;
@@ -2338,8 +2325,8 @@ declare const api: {
2338
2325
  deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2339
2326
  };
2340
2327
  reports: {
2341
- getUptimeReports(appId: string, payload: GetAppMonitoringUptimeReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
2342
- getEventReports(appId: string, payload: GetAppMonitoringEventsReportPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2328
+ getUptimeReports(appId: string, payload: AppMonitoringReportParams, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
2329
+ getEventReports(appId: string, payload: AppMonitoringReportParams, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2343
2330
  getCustomReport(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport>;
2344
2331
  getCustomReportData(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReportDataDto>;
2345
2332
  getCustomReports(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport[]>;
package/dist/index.js CHANGED
@@ -1842,7 +1842,7 @@ var textAppMonitoringReportsApi = {
1842
1842
  return __async(this, null, function* () {
1843
1843
  try {
1844
1844
  const response = yield textClientInstance.get(
1845
- `/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}&type=${payload.type}`,
1845
+ `/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
1846
1846
  getTextClientConfig(authorization)
1847
1847
  );
1848
1848
  return response.data;
package/dist/index.mjs CHANGED
@@ -1754,7 +1754,7 @@ var textAppMonitoringReportsApi = {
1754
1754
  return __async(this, null, function* () {
1755
1755
  try {
1756
1756
  const response = yield textClientInstance.get(
1757
- `/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}&type=${payload.type}`,
1757
+ `/app_monitoring/${appId}/reports/events?from=${payload.from}&to=${payload.to}&resolution=${payload.resolution}`,
1758
1758
  getTextClientConfig(authorization)
1759
1759
  );
1760
1760
  return response.data;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livechat/developer-studio-api",
3
- "version": "2.0.44",
3
+ "version": "2.0.45",
4
4
  "description": "This project is API for LiveChat Developer Studio.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -19,8 +19,8 @@
19
19
  "typescript": "^5.1.6",
20
20
  "config": "0.0.0",
21
21
  "tsconfig": "0.0.0",
22
- "eslint-config-custom-lib": "0.0.1",
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",