@tagsamurai/fats-api-services 1.0.3-alpha.66 → 1.0.3-alpha.68

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.
@@ -2783,6 +2783,15 @@ const OpportunityRegisterServices = {
2783
2783
  },
2784
2784
  getOpportunityLogData: (opportunityId, params) => {
2785
2785
  return API$1.get(`/opportunity-log/${opportunityId}`, { params });
2786
+ },
2787
+ editActiveOpportunity: (opportunityId, body) => {
2788
+ return API$1.put(`/active/${opportunityId}`, body);
2789
+ },
2790
+ addActiveOpportunity: (body) => {
2791
+ return API$1.post("/active", body);
2792
+ },
2793
+ reviewOpportunityAction: (opportunityId, body) => {
2794
+ return API$1.post(`/active/${opportunityId}/review`, body);
2786
2795
  }
2787
2796
  };
2788
2797
  const API = createAxiosInstance({
@@ -2791,6 +2791,15 @@ System.register(["axios"], function(exports, module) {
2791
2791
  },
2792
2792
  getOpportunityLogData: (opportunityId, params) => {
2793
2793
  return API$1.get(`/opportunity-log/${opportunityId}`, { params });
2794
+ },
2795
+ editActiveOpportunity: (opportunityId, body) => {
2796
+ return API$1.put(`/active/${opportunityId}`, body);
2797
+ },
2798
+ addActiveOpportunity: (body) => {
2799
+ return API$1.post("/active", body);
2800
+ },
2801
+ reviewOpportunityAction: (opportunityId, body) => {
2802
+ return API$1.post(`/active/${opportunityId}/review`, body);
2794
2803
  }
2795
2804
  });
2796
2805
  const API = createAxiosInstance({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagsamurai/fats-api-services",
3
- "version": "1.0.3-alpha.66",
3
+ "version": "1.0.3-alpha.68",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Fixed Asset Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -15,3 +15,17 @@ export type GetOpportunityRegisterClosedListOptionsQueryParams = GetOpportunityR
15
15
  export type GetOpportunityLogDataQueryParams = {
16
16
  page?: number;
17
17
  };
18
+ export type AddOpportunityBody = {
19
+ opportunity: string;
20
+ benefit: string;
21
+ action: string;
22
+ targetDate: string;
23
+ pic: string;
24
+ };
25
+ export type EditOpportunityBody = AddOpportunityBody;
26
+ export type ReviewOpportunityActionBody = {
27
+ action: 'verify';
28
+ } | {
29
+ action: 'reopen';
30
+ note: string;
31
+ };
@@ -1,6 +1,6 @@
1
1
  import { AxiosResponse } from 'axios';
2
- import { GetOpportunityLogDataQueryParams, GetOpportunityRegisterActiveListOptionsQueryParams, GetOpportunityRegisterActiveListQueryParams, GetOpportunityRegisterClosedListOptionsQueryParams, GetOpportunityRegisterClosedListQueryParams } from '../dto/opportunityRegister.dto';
3
- import { FetchDetailResponse, FetchListResponse, ShortFetchListExtendResponse } from '../types/fetchResponse.type';
2
+ import { AddOpportunityBody, EditOpportunityBody, GetOpportunityLogDataQueryParams, GetOpportunityRegisterActiveListOptionsQueryParams, GetOpportunityRegisterActiveListQueryParams, GetOpportunityRegisterClosedListOptionsQueryParams, GetOpportunityRegisterClosedListQueryParams, ReviewOpportunityActionBody } from '../dto/opportunityRegister.dto';
3
+ import { FetchDetailResponse, FetchListResponse, ShortFetchListExtendResponse, StatusMessageResponse } from '../types/fetchResponse.type';
4
4
  import { OpportunityLogData, OpportunityLogDataDetail, OpportunityRegisterActiveDetail, OpportunityRegisterActiveList, OpportunityRegisterActiveListOptions, OpportunityRegisterClosedList, OpportunityRegisterClosedListOptions } from '../types/opportunityRegister.type';
5
5
  declare const OpportunityRegisterServices: {
6
6
  getOpportunityRegisterActiveList: (params: GetOpportunityRegisterActiveListQueryParams) => Promise<AxiosResponse<FetchListResponse<OpportunityRegisterActiveList>>>;
@@ -9,5 +9,8 @@ declare const OpportunityRegisterServices: {
9
9
  getOpportunityRegisterClosedListOptions: (params: GetOpportunityRegisterClosedListOptionsQueryParams) => Promise<AxiosResponse<FetchDetailResponse<OpportunityRegisterClosedListOptions>>>;
10
10
  getOpportunityRegisterActiveDetail: (opportunityId: string) => Promise<AxiosResponse<FetchDetailResponse<OpportunityRegisterActiveDetail>>>;
11
11
  getOpportunityLogData: (opportunityId: string, params: GetOpportunityLogDataQueryParams) => Promise<AxiosResponse<ShortFetchListExtendResponse<OpportunityLogData, OpportunityLogDataDetail>>>;
12
+ editActiveOpportunity: (opportunityId: string, body: EditOpportunityBody) => Promise<AxiosResponse<StatusMessageResponse>>;
13
+ addActiveOpportunity: (body: AddOpportunityBody) => Promise<AxiosResponse<StatusMessageResponse>>;
14
+ reviewOpportunityAction: (opportunityId: string, body: ReviewOpportunityActionBody) => Promise<AxiosResponse<StatusMessageResponse>>;
12
15
  };
13
16
  export default OpportunityRegisterServices;