@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.
@@ -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("", data);
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);
@@ -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("", data);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagsamurai/fats-api-services",
3
- "version": "1.0.3-alpha.55",
3
+ "version": "1.0.3-alpha.57",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Fixed Asset Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -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<FetchListResponse<DocumentOptions>>>;
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>>;
@@ -50,7 +50,7 @@ export interface RiskForm {
50
50
  category: Category;
51
51
  likelihoodSeverity: number;
52
52
  impactSeverity: number;
53
- initialDate: string;
53
+ targetDate: string;
54
54
  personInCharge?: string;
55
55
  note?: string;
56
56
  }