@tagsamurai/fats-api-services 1.0.3-alpha.63 → 1.0.3-alpha.65

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.
@@ -2781,8 +2781,8 @@ const OpportunityRegisterServices = {
2781
2781
  getOpportunityRegisterActiveDetail: (opportunityId) => {
2782
2782
  return API$1.get(`/active/${opportunityId}`);
2783
2783
  },
2784
- getOpportunityLogData: (opportunityId) => {
2785
- return API$1.get(`/opportunity-log/${opportunityId}`);
2784
+ getOpportunityLogData: (opportunityId, params) => {
2785
+ return API$1.get(`/opportunity-log/${opportunityId}`, { params });
2786
2786
  }
2787
2787
  };
2788
2788
  const API = createAxiosInstance({
@@ -2789,8 +2789,8 @@ System.register(["axios"], function(exports, module) {
2789
2789
  getOpportunityRegisterActiveDetail: (opportunityId) => {
2790
2790
  return API$1.get(`/active/${opportunityId}`);
2791
2791
  },
2792
- getOpportunityLogData: (opportunityId) => {
2793
- return API$1.get(`/opportunity-log/${opportunityId}`);
2792
+ getOpportunityLogData: (opportunityId, params) => {
2793
+ return API$1.get(`/opportunity-log/${opportunityId}`, { params });
2794
2794
  }
2795
2795
  });
2796
2796
  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.63",
3
+ "version": "1.0.3-alpha.65",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Fixed Asset Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -12,3 +12,6 @@ export type GetOpportunityRegisterActiveListOptionsQueryParams = {
12
12
  picOptions: boolean;
13
13
  };
14
14
  export type GetOpportunityRegisterClosedListOptionsQueryParams = GetOpportunityRegisterActiveListOptionsQueryParams;
15
+ export type GetOpportunityLogDataQueryParams = {
16
+ page?: number;
17
+ };
@@ -1,13 +1,13 @@
1
1
  import { AxiosResponse } from 'axios';
2
- import { GetOpportunityRegisterActiveListOptionsQueryParams, GetOpportunityRegisterActiveListQueryParams, GetOpportunityRegisterClosedListOptionsQueryParams, GetOpportunityRegisterClosedListQueryParams } from '../dto/opportunityRegister.dto';
3
- import { FetchDetailResponse, FetchListResponse, ShortFetchListResponse } from '../types/fetchResponse.type';
4
- import { OpportunityLogData, OpportunityRegisterActiveDetail, OpportunityRegisterActiveList, OpportunityRegisterActiveListOptions, OpportunityRegisterClosedList, OpportunityRegisterClosedListOptions } from '../types/opportunityRegister.type';
2
+ import { GetOpportunityLogDataQueryParams, GetOpportunityRegisterActiveListOptionsQueryParams, GetOpportunityRegisterActiveListQueryParams, GetOpportunityRegisterClosedListOptionsQueryParams, GetOpportunityRegisterClosedListQueryParams } from '../dto/opportunityRegister.dto';
3
+ import { FetchDetailResponse, FetchListResponse, ShortFetchListExtendResponse } from '../types/fetchResponse.type';
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>>>;
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
10
  getOpportunityRegisterActiveDetail: (opportunityId: string) => Promise<AxiosResponse<FetchDetailResponse<OpportunityRegisterActiveDetail>>>;
11
- getOpportunityLogData: (opportunityId: string) => Promise<AxiosResponse<ShortFetchListResponse<OpportunityLogData>>>;
11
+ getOpportunityLogData: (opportunityId: string, params: GetOpportunityLogDataQueryParams) => Promise<AxiosResponse<ShortFetchListExtendResponse<OpportunityLogData, OpportunityLogDataDetail>>>;
12
12
  };
13
13
  export default OpportunityRegisterServices;
@@ -22,6 +22,14 @@ export type ShortFetchListResponse<T = Data> = {
22
22
  message: string;
23
23
  data: T[];
24
24
  };
25
+ export type ShortFetchListExtendResponse<T = Data, D = Data> = {
26
+ status: number;
27
+ message: string;
28
+ data: {
29
+ data: T[];
30
+ detail?: D;
31
+ };
32
+ };
25
33
  export type FetchDetailResponse<T = Data> = {
26
34
  status: number;
27
35
  message: string;
@@ -33,3 +33,6 @@ export type OpportunityLogData = {
33
33
  [key: string]: string;
34
34
  };
35
35
  };
36
+ export type OpportunityLogDataDetail = {
37
+ isNextPageAvailable: boolean;
38
+ };