@tagsamurai/fats-api-services 1.0.3-alpha.55 → 1.0.3-alpha.57
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/api-services.es.js
CHANGED
|
@@ -2726,8 +2726,8 @@ const RiskRegisterServices = {
|
|
|
2726
2726
|
postRisk: (data) => {
|
|
2727
2727
|
return API$2.post("", data);
|
|
2728
2728
|
},
|
|
2729
|
-
editRisk: (data) => {
|
|
2730
|
-
return API$2.put(
|
|
2729
|
+
editRisk: (id, data) => {
|
|
2730
|
+
return API$2.put(`/${id}`, data);
|
|
2731
2731
|
},
|
|
2732
2732
|
cancelRisk: (id, data) => {
|
|
2733
2733
|
return API$2.put(`/${id}/cancel`, data);
|
package/api-services.system.js
CHANGED
|
@@ -2734,8 +2734,8 @@ System.register(["axios"], function(exports, module) {
|
|
|
2734
2734
|
postRisk: (data) => {
|
|
2735
2735
|
return API$2.post("", data);
|
|
2736
2736
|
},
|
|
2737
|
-
editRisk: (data) => {
|
|
2738
|
-
return API$2.put(
|
|
2737
|
+
editRisk: (id, data) => {
|
|
2738
|
+
return API$2.put(`/${id}`, data);
|
|
2739
2739
|
},
|
|
2740
2740
|
cancelRisk: (id, data) => {
|
|
2741
2741
|
return API$2.put(`/${id}/cancel`, data);
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { DocumentOptions, GetDocumentOptionsParams, GetDocumentParams } from '..
|
|
|
4
4
|
import { FetchDetailResponse, FetchListResponse } from '../types/fetchResponse.type';
|
|
5
5
|
declare const DocumentServices: {
|
|
6
6
|
getAllDocuments: (params: GetDocumentParams) => Promise<AxiosResponse<FetchListResponse<DocumentItem>>>;
|
|
7
|
-
getDocumentOptions: (params: GetDocumentOptionsParams) => Promise<AxiosResponse<
|
|
7
|
+
getDocumentOptions: (params: GetDocumentOptionsParams) => Promise<AxiosResponse<FetchDetailResponse<DocumentOptions>>>;
|
|
8
8
|
addDocument: (data: DocumentPayload) => Promise<AxiosResponse>;
|
|
9
9
|
editDocument: (id: string, data: DocumentPayload) => Promise<AxiosResponse>;
|
|
10
10
|
deleteDocument: (id: string[]) => Promise<AxiosResponse>;
|
|
@@ -8,7 +8,7 @@ declare const RiskRegisterServices: {
|
|
|
8
8
|
getRiskOptions: (params: GetRiskOptionsQuery) => Promise<AxiosResponse<FetchDetailResponse<RiskOptions>>>;
|
|
9
9
|
getRiskReview: (id: string) => Promise<AxiosResponse<FetchDetailResponse<RiskReview>>>;
|
|
10
10
|
postRisk: (data: RiskForm) => Promise<AxiosResponse<FetchResponse>>;
|
|
11
|
-
editRisk: (data: RiskForm) => Promise<AxiosResponse<FetchResponse>>;
|
|
11
|
+
editRisk: (id: string, data: RiskForm) => Promise<AxiosResponse<FetchResponse>>;
|
|
12
12
|
cancelRisk: (id: string, data: CancelForm) => Promise<AxiosResponse<FetchResponse>>;
|
|
13
13
|
verifyRisk: (id: string, data: RiskReview) => Promise<AxiosResponse<FetchResponse>>;
|
|
14
14
|
reopenRisk: (id: string, data: RiskReview) => Promise<AxiosResponse<FetchResponse>>;
|