@tagsamurai/fats-api-services 1.0.3-alpha.54 → 1.0.3-alpha.56
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 +5 -2
- package/api-services.system.js +5 -2
- package/package.json +1 -1
- package/src/services/opportunityRegister.service.d.ts +2 -1
- package/src/services/riskRegister.service.d.ts +1 -1
- package/src/types/opportunityRegister.type.d.ts +4 -0
- package/src/types/risk.type.d.ts +1 -1
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);
|
|
@@ -2777,6 +2777,9 @@ const OpportunityRegisterServices = {
|
|
|
2777
2777
|
},
|
|
2778
2778
|
getOpportunityRegisterClosedListOptions: (params) => {
|
|
2779
2779
|
return API.get("/closed/options", { params });
|
|
2780
|
+
},
|
|
2781
|
+
getOpportunityRegisterActiveDetail: (opportunityId) => {
|
|
2782
|
+
return API.get(`/active/${opportunityId}`);
|
|
2780
2783
|
}
|
|
2781
2784
|
};
|
|
2782
2785
|
export {
|
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);
|
|
@@ -2785,6 +2785,9 @@ System.register(["axios"], function(exports, module) {
|
|
|
2785
2785
|
},
|
|
2786
2786
|
getOpportunityRegisterClosedListOptions: (params) => {
|
|
2787
2787
|
return API.get("/closed/options", { params });
|
|
2788
|
+
},
|
|
2789
|
+
getOpportunityRegisterActiveDetail: (opportunityId) => {
|
|
2790
|
+
return API.get(`/active/${opportunityId}`);
|
|
2788
2791
|
}
|
|
2789
2792
|
});
|
|
2790
2793
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
2
|
import { GetOpportunityRegisterActiveListOptionsQueryParams, GetOpportunityRegisterActiveListQueryParams, GetOpportunityRegisterClosedListOptionsQueryParams, GetOpportunityRegisterClosedListQueryParams } from '../dto/opportunityRegister.dto';
|
|
3
3
|
import { FetchDetailResponse, FetchListResponse } from '../types/fetchResponse.type';
|
|
4
|
-
import { OpportunityRegisterActiveList, OpportunityRegisterActiveListOptions, OpportunityRegisterClosedList, OpportunityRegisterClosedListOptions } from '../types/opportunityRegister.type';
|
|
4
|
+
import { OpportunityRegisterActiveDetail, OpportunityRegisterActiveList, OpportunityRegisterActiveListOptions, OpportunityRegisterClosedList, OpportunityRegisterClosedListOptions } from '../types/opportunityRegister.type';
|
|
5
5
|
declare const OpportunityRegisterServices: {
|
|
6
6
|
getOpportunityRegisterActiveList: (params: GetOpportunityRegisterActiveListQueryParams) => Promise<AxiosResponse<FetchListResponse<OpportunityRegisterActiveList>>>;
|
|
7
7
|
getOpportunityRegisterActiveListOptions: (params: GetOpportunityRegisterActiveListOptionsQueryParams) => Promise<AxiosResponse<FetchDetailResponse<OpportunityRegisterActiveListOptions>>>;
|
|
8
8
|
getOpportunityRegisterClosedList: (params: GetOpportunityRegisterClosedListQueryParams) => Promise<AxiosResponse<FetchListResponse<OpportunityRegisterClosedList>>>;
|
|
9
9
|
getOpportunityRegisterClosedListOptions: (params: GetOpportunityRegisterClosedListOptionsQueryParams) => Promise<AxiosResponse<FetchDetailResponse<OpportunityRegisterClosedListOptions>>>;
|
|
10
|
+
getOpportunityRegisterActiveDetail: (opportunityId: string) => Promise<AxiosResponse<FetchDetailResponse<OpportunityRegisterActiveDetail>>>;
|
|
10
11
|
};
|
|
11
12
|
export default OpportunityRegisterServices;
|
|
@@ -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>>;
|
|
@@ -16,3 +16,7 @@ export type OpportunityRegisterActiveListOptions = {
|
|
|
16
16
|
picOptions: Option[];
|
|
17
17
|
};
|
|
18
18
|
export type OpportunityRegisterClosedListOptions = OpportunityRegisterActiveListOptions;
|
|
19
|
+
export type OpportunityRegisterActiveDetail = OpportunityRegisterActiveList & {
|
|
20
|
+
proofDocument?: File;
|
|
21
|
+
note?: string;
|
|
22
|
+
};
|