@tagsamurai/fats-api-services 1.0.3-alpha.11 → 1.0.3-alpha.12

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.
@@ -1933,12 +1933,6 @@ const ReaderServices = {
1933
1933
  setGroupIOT: (body) => {
1934
1934
  return API$b.put("/set-group", body);
1935
1935
  },
1936
- getActivityLogData: (params) => {
1937
- return API$b.get("/activity-log", { params });
1938
- },
1939
- getActivityLogOptions: (params) => {
1940
- return API$b.get("/activity-log/options", { params });
1941
- },
1942
1936
  getDataById: (id) => {
1943
1937
  return API$b.get(`/${id}`);
1944
1938
  },
@@ -2473,6 +2467,12 @@ const IOTServices = {
2473
2467
  },
2474
2468
  putIOTTracking: (body) => {
2475
2469
  return API.put("/tracking", body);
2470
+ },
2471
+ getActivityLogData: (params) => {
2472
+ return API.get("/activity-log", { params });
2473
+ },
2474
+ getActivityLogOptions: (params) => {
2475
+ return API.get("/activity-log/options", { params });
2476
2476
  }
2477
2477
  };
2478
2478
  const ReportAPI = createAxiosInstance({
@@ -1941,12 +1941,6 @@ System.register(["axios"], function(exports, module) {
1941
1941
  setGroupIOT: (body) => {
1942
1942
  return API$b.put("/set-group", body);
1943
1943
  },
1944
- getActivityLogData: (params) => {
1945
- return API$b.get("/activity-log", { params });
1946
- },
1947
- getActivityLogOptions: (params) => {
1948
- return API$b.get("/activity-log/options", { params });
1949
- },
1950
1944
  getDataById: (id) => {
1951
1945
  return API$b.get(`/${id}`);
1952
1946
  },
@@ -2481,6 +2475,12 @@ System.register(["axios"], function(exports, module) {
2481
2475
  },
2482
2476
  putIOTTracking: (body) => {
2483
2477
  return API.put("/tracking", body);
2478
+ },
2479
+ getActivityLogData: (params) => {
2480
+ return API.get("/activity-log", { params });
2481
+ },
2482
+ getActivityLogOptions: (params) => {
2483
+ return API.get("/activity-log/options", { params });
2484
2484
  }
2485
2485
  });
2486
2486
  const ReportAPI = createAxiosInstance({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagsamurai/fats-api-services",
3
- "version": "1.0.3-alpha.11",
3
+ "version": "1.0.3-alpha.12",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Fixed Asset Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -37,11 +37,37 @@ export interface SetGroupIOTBody {
37
37
  reader: string[];
38
38
  group: string;
39
39
  }
40
- export type ActivityLogOptionParams = {
40
+ export interface ActivityLogOptionParams {
41
41
  deviceNameOptions?: boolean;
42
42
  groupOptions?: boolean;
43
43
  nameOptions?: boolean;
44
44
  activityOptions?: boolean;
45
45
  managerOptions?: boolean;
46
46
  portOptions?: boolean;
47
- };
47
+ }
48
+ export interface GetIOTActivityLogDataQueryParams extends BaseFilterQueryParams {
49
+ deviceName?: string[];
50
+ group?: number[];
51
+ name?: string[];
52
+ activity?: string[];
53
+ manager?: string[];
54
+ port?: string[];
55
+ }
56
+ export interface DeviceName {
57
+ _id: string;
58
+ nameWithSequence: string;
59
+ name: string;
60
+ key: number;
61
+ nameNumber: number;
62
+ }
63
+ export interface ActivityLogData {
64
+ _id: string;
65
+ deviceName: DeviceName;
66
+ group: string;
67
+ activity: string;
68
+ manager: string;
69
+ auditType: string | null;
70
+ date: string | Date;
71
+ name: string | null;
72
+ port: string | null;
73
+ }
@@ -1,9 +1,14 @@
1
1
  import { AxiosResponse } from 'axios';
2
2
  import { DeviceIotFilterOptionQueryParams, IOTPutTracking, IOTSetParams } from '../dto/oldIOTService.dto';
3
+ import { ActivityLogData, ActivityLogOptionParams, GetIOTActivityLogDataQueryParams } from '../dto/reader.dto';
4
+ import { FetchDetailResponse, FetchListResponse } from '../types/fetchResponse.type';
5
+ import { ActivityLogOptions } from '../types/reader.type';
3
6
  declare const IOTServices: {
4
7
  getReaderList: () => Promise<AxiosResponse>;
5
8
  getReaderOptions: (params?: DeviceIotFilterOptionQueryParams) => Promise<AxiosResponse>;
6
9
  putSetScanParams: (body?: IOTSetParams) => Promise<AxiosResponse>;
7
10
  putIOTTracking: (body?: IOTPutTracking) => Promise<AxiosResponse>;
11
+ getActivityLogData: (params: GetIOTActivityLogDataQueryParams) => Promise<AxiosResponse<FetchListResponse<ActivityLogData>>>;
12
+ getActivityLogOptions: (params: ActivityLogOptionParams) => Promise<AxiosResponse<FetchDetailResponse<ActivityLogOptions>>>;
8
13
  };
9
14
  export default IOTServices;
@@ -1,7 +1,7 @@
1
1
  import { AxiosResponse } from 'axios';
2
- import { ActivityLogOptions, ChangeLogOptionParams, ChangeLogParams, IOTCheckManager, IOTDetail, IOTPortList, IOTReaderList, IOTReaderListOptions, QueryParams } from '../types/reader.type';
2
+ import { ChangeLogOptionParams, ChangeLogParams, IOTCheckManager, IOTDetail, IOTPortList, IOTReaderList, IOTReaderListOptions } from '../types/reader.type';
3
3
  import { FetchDetailResponse, FetchListResponse, FetchResponse } from '../types/fetchResponse.type';
4
- import { ActivityLogOptionParams, GetIOTPortListQueryParams, GetIOTReaderListOptionsQueryParams, GetIOTReaderListQueryParams, SetGroupIOTBody, SetIOTAliasNameBody, SetIOTPortGroupBody } from '../dto/reader.dto';
4
+ import { GetIOTPortListQueryParams, GetIOTReaderListOptionsQueryParams, GetIOTReaderListQueryParams, SetGroupIOTBody, SetIOTAliasNameBody, SetIOTPortGroupBody } from '../dto/reader.dto';
5
5
  declare const ReaderServices: {
6
6
  getIOTReaderList: (params: GetIOTReaderListQueryParams) => Promise<AxiosResponse<FetchListResponse<IOTReaderList>>>;
7
7
  getIOTReaderListOptions: (params: GetIOTReaderListOptionsQueryParams) => Promise<AxiosResponse<FetchDetailResponse<IOTReaderListOptions>>>;
@@ -17,8 +17,6 @@ declare const ReaderServices: {
17
17
  getIOTCheckManager: () => Promise<AxiosResponse<FetchDetailResponse<IOTCheckManager>>>;
18
18
  setIOTPortGroup: (id: string, body: SetIOTPortGroupBody) => Promise<AxiosResponse<FetchResponse>>;
19
19
  setGroupIOT: (body: SetGroupIOTBody) => Promise<AxiosResponse<FetchResponse>>;
20
- getActivityLogData: (params: QueryParams) => Promise<AxiosResponse>;
21
- getActivityLogOptions: (params: ActivityLogOptionParams) => Promise<AxiosResponse<FetchDetailResponse<ActivityLogOptions>>>;
22
20
  getDataById: (id: string) => Promise<AxiosResponse>;
23
21
  getChangeLog: (params: ChangeLogParams) => Promise<AxiosResponse>;
24
22
  getChangeLogOptions: (params: ChangeLogOptionParams) => Promise<AxiosResponse>;