my-translation-resources 1.0.393 → 1.0.395
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/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LogFilesResponse, axiosAuthClient, Response } from "../../index";
|
|
1
|
+
import { LogFilesResponse, axiosAuthClient, Response, BaseResponse } from "../../index";
|
|
2
2
|
export const getLogFilesForService = async (
|
|
3
3
|
serviceName: string,
|
|
4
4
|
page: number,
|
|
@@ -20,3 +20,11 @@ export const getPagesAmountForService = async (
|
|
|
20
20
|
|
|
21
21
|
return response;
|
|
22
22
|
};
|
|
23
|
+
|
|
24
|
+
export const deleteLogFile = async (
|
|
25
|
+
serviceName: string,
|
|
26
|
+
logFileName: string) : Promise<Response<BaseResponse>> =>{
|
|
27
|
+
var response = (await axiosAuthClient.delete("/Logs/" + serviceName + "/" + logFileName)).data;
|
|
28
|
+
|
|
29
|
+
return response;
|
|
30
|
+
}
|