@livechat/developer-studio-api 2.0.39 → 2.0.41
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 +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +19 -2
- package/dist/index.mjs +19 -2
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -431,8 +431,8 @@ interface GetAppMonitoringUptimeReportPayload {
|
|
|
431
431
|
interface GetAppMonitoringEventsReportPayload {
|
|
432
432
|
from: string;
|
|
433
433
|
to: string;
|
|
434
|
-
type: string;
|
|
435
434
|
resolution: "hourly" | "daily" | "monthly";
|
|
435
|
+
type: string | undefined;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
interface AppMonitoringEvent {
|
|
@@ -2337,7 +2337,8 @@ declare const api: {
|
|
|
2337
2337
|
getCustomReport(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport>;
|
|
2338
2338
|
getCustomReportData(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReportDataDto>;
|
|
2339
2339
|
getCustomReports(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport[]>;
|
|
2340
|
-
|
|
2340
|
+
createCustomReport(appId: string, customReport: Omit<AppMonitoringCustomReport, "id">, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2341
|
+
updateCustomReport(appId: string, customReport: AppMonitoringCustomReport, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2341
2342
|
deleteCustomReport(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2342
2343
|
};
|
|
2343
2344
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -431,8 +431,8 @@ interface GetAppMonitoringUptimeReportPayload {
|
|
|
431
431
|
interface GetAppMonitoringEventsReportPayload {
|
|
432
432
|
from: string;
|
|
433
433
|
to: string;
|
|
434
|
-
type: string;
|
|
435
434
|
resolution: "hourly" | "daily" | "monthly";
|
|
435
|
+
type: string | undefined;
|
|
436
436
|
}
|
|
437
437
|
|
|
438
438
|
interface AppMonitoringEvent {
|
|
@@ -2337,7 +2337,8 @@ declare const api: {
|
|
|
2337
2337
|
getCustomReport(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport>;
|
|
2338
2338
|
getCustomReportData(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReportDataDto>;
|
|
2339
2339
|
getCustomReports(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport[]>;
|
|
2340
|
-
|
|
2340
|
+
createCustomReport(appId: string, customReport: Omit<AppMonitoringCustomReport, "id">, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2341
|
+
updateCustomReport(appId: string, customReport: AppMonitoringCustomReport, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2341
2342
|
deleteCustomReport(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
|
|
2342
2343
|
};
|
|
2343
2344
|
};
|
package/dist/index.js
CHANGED
|
@@ -1902,7 +1902,24 @@ var textAppMonitoringReportsApi = {
|
|
|
1902
1902
|
}
|
|
1903
1903
|
});
|
|
1904
1904
|
},
|
|
1905
|
-
|
|
1905
|
+
createCustomReport(appId, customReport, authorization) {
|
|
1906
|
+
return __async(this, null, function* () {
|
|
1907
|
+
try {
|
|
1908
|
+
const response = yield textClientInstance.post(
|
|
1909
|
+
`/app_monitoring/${appId}/reports/custom`,
|
|
1910
|
+
customReport,
|
|
1911
|
+
getTextClientConfig(authorization)
|
|
1912
|
+
);
|
|
1913
|
+
return response.data;
|
|
1914
|
+
} catch (error) {
|
|
1915
|
+
if (error instanceof Error) {
|
|
1916
|
+
throw new Error(`Couldn't create custom report. [${error.message}]`);
|
|
1917
|
+
}
|
|
1918
|
+
throw error;
|
|
1919
|
+
}
|
|
1920
|
+
});
|
|
1921
|
+
},
|
|
1922
|
+
updateCustomReport(appId, customReport, authorization) {
|
|
1906
1923
|
return __async(this, null, function* () {
|
|
1907
1924
|
try {
|
|
1908
1925
|
const response = yield textClientInstance.post(
|
|
@@ -1913,7 +1930,7 @@ var textAppMonitoringReportsApi = {
|
|
|
1913
1930
|
return response.data;
|
|
1914
1931
|
} catch (error) {
|
|
1915
1932
|
if (error instanceof Error) {
|
|
1916
|
-
throw new Error(`Couldn't
|
|
1933
|
+
throw new Error(`Couldn't update custom report. [${error.message}]`);
|
|
1917
1934
|
}
|
|
1918
1935
|
throw error;
|
|
1919
1936
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -1814,7 +1814,24 @@ var textAppMonitoringReportsApi = {
|
|
|
1814
1814
|
}
|
|
1815
1815
|
});
|
|
1816
1816
|
},
|
|
1817
|
-
|
|
1817
|
+
createCustomReport(appId, customReport, authorization) {
|
|
1818
|
+
return __async(this, null, function* () {
|
|
1819
|
+
try {
|
|
1820
|
+
const response = yield textClientInstance.post(
|
|
1821
|
+
`/app_monitoring/${appId}/reports/custom`,
|
|
1822
|
+
customReport,
|
|
1823
|
+
getTextClientConfig(authorization)
|
|
1824
|
+
);
|
|
1825
|
+
return response.data;
|
|
1826
|
+
} catch (error) {
|
|
1827
|
+
if (error instanceof Error) {
|
|
1828
|
+
throw new Error(`Couldn't create custom report. [${error.message}]`);
|
|
1829
|
+
}
|
|
1830
|
+
throw error;
|
|
1831
|
+
}
|
|
1832
|
+
});
|
|
1833
|
+
},
|
|
1834
|
+
updateCustomReport(appId, customReport, authorization) {
|
|
1818
1835
|
return __async(this, null, function* () {
|
|
1819
1836
|
try {
|
|
1820
1837
|
const response = yield textClientInstance.post(
|
|
@@ -1825,7 +1842,7 @@ var textAppMonitoringReportsApi = {
|
|
|
1825
1842
|
return response.data;
|
|
1826
1843
|
} catch (error) {
|
|
1827
1844
|
if (error instanceof Error) {
|
|
1828
|
-
throw new Error(`Couldn't
|
|
1845
|
+
throw new Error(`Couldn't update custom report. [${error.message}]`);
|
|
1829
1846
|
}
|
|
1830
1847
|
throw error;
|
|
1831
1848
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.41",
|
|
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,8 +18,8 @@
|
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
20
|
"config": "0.0.0",
|
|
21
|
-
"types": "0.0.1",
|
|
22
21
|
"tsconfig": "0.0.0",
|
|
22
|
+
"types": "0.0.1",
|
|
23
23
|
"eslint-config-custom-lib": "0.0.1"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|