@tagsamurai/fats-api-services 1.0.3-alpha.23 → 1.0.3-alpha.25
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 +10 -3
- package/api-services.system.js +10 -3
- package/package.json +1 -1
- package/src/dto/iot.dto.d.ts +12 -0
- package/src/services/iot.service.d.ts +4 -3
- package/src/types/iot.type.d.ts +14 -0
package/api-services.es.js
CHANGED
|
@@ -2511,6 +2511,9 @@ const IOTAntennaAPI = createAxiosInstance({
|
|
|
2511
2511
|
const IOTReaderAPI = createAxiosInstance({
|
|
2512
2512
|
prefix: "/iot/v2/iot/reader"
|
|
2513
2513
|
});
|
|
2514
|
+
const IOTActivityLogAPI = createAxiosInstance({
|
|
2515
|
+
prefix: "/iot/v2/iot/activity-log"
|
|
2516
|
+
});
|
|
2514
2517
|
const IOTService = {
|
|
2515
2518
|
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/antenna
|
|
2516
2519
|
getIOTAntennaList: (params) => {
|
|
@@ -2520,13 +2523,17 @@ const IOTService = {
|
|
|
2520
2523
|
getIOTAntennaListOptions: (params) => {
|
|
2521
2524
|
return IOTAntennaAPI.get("/options", { params });
|
|
2522
2525
|
},
|
|
2526
|
+
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/options
|
|
2527
|
+
getIOTReaderListOptions: (params) => {
|
|
2528
|
+
return IOTReaderAPI.get("/options", { params });
|
|
2529
|
+
},
|
|
2523
2530
|
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader
|
|
2524
2531
|
getIOTReaderList: (params) => {
|
|
2525
2532
|
return IOTReaderAPI.get("", { params: queryParamsStringfy(params) });
|
|
2526
2533
|
},
|
|
2527
|
-
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/
|
|
2528
|
-
|
|
2529
|
-
return
|
|
2534
|
+
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/activity-log
|
|
2535
|
+
getActivityLog: (params) => {
|
|
2536
|
+
return IOTActivityLogAPI.get("", { params });
|
|
2530
2537
|
},
|
|
2531
2538
|
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/set-alias-name
|
|
2532
2539
|
setIOTAliasName: (body) => {
|
package/api-services.system.js
CHANGED
|
@@ -2519,6 +2519,9 @@ System.register(["axios"], function(exports, module) {
|
|
|
2519
2519
|
const IOTReaderAPI = createAxiosInstance({
|
|
2520
2520
|
prefix: "/iot/v2/iot/reader"
|
|
2521
2521
|
});
|
|
2522
|
+
const IOTActivityLogAPI = createAxiosInstance({
|
|
2523
|
+
prefix: "/iot/v2/iot/activity-log"
|
|
2524
|
+
});
|
|
2522
2525
|
const IOTService = exports("NewIOTServices", {
|
|
2523
2526
|
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/antenna
|
|
2524
2527
|
getIOTAntennaList: (params) => {
|
|
@@ -2528,13 +2531,17 @@ System.register(["axios"], function(exports, module) {
|
|
|
2528
2531
|
getIOTAntennaListOptions: (params) => {
|
|
2529
2532
|
return IOTAntennaAPI.get("/options", { params });
|
|
2530
2533
|
},
|
|
2534
|
+
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/options
|
|
2535
|
+
getIOTReaderListOptions: (params) => {
|
|
2536
|
+
return IOTReaderAPI.get("/options", { params });
|
|
2537
|
+
},
|
|
2531
2538
|
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader
|
|
2532
2539
|
getIOTReaderList: (params) => {
|
|
2533
2540
|
return IOTReaderAPI.get("", { params: queryParamsStringfy(params) });
|
|
2534
2541
|
},
|
|
2535
|
-
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/
|
|
2536
|
-
|
|
2537
|
-
return
|
|
2542
|
+
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/activity-log
|
|
2543
|
+
getActivityLog: (params) => {
|
|
2544
|
+
return IOTActivityLogAPI.get("", { params });
|
|
2538
2545
|
},
|
|
2539
2546
|
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/set-alias-name
|
|
2540
2547
|
setIOTAliasName: (body) => {
|
package/package.json
CHANGED
package/src/dto/iot.dto.d.ts
CHANGED
|
@@ -66,4 +66,16 @@ export interface GetIOTAntennaListOptionsQueryParams {
|
|
|
66
66
|
modelOptions?: boolean;
|
|
67
67
|
managerOptions?: boolean;
|
|
68
68
|
}
|
|
69
|
+
export interface GetIOTActivityLogQueryParams extends BaseFilterQueryParams {
|
|
70
|
+
createdAt?: number[];
|
|
71
|
+
deviceName?: string[];
|
|
72
|
+
group?: string[];
|
|
73
|
+
activity?: string[];
|
|
74
|
+
name?: string[];
|
|
75
|
+
manager?: string[];
|
|
76
|
+
type?: string[];
|
|
77
|
+
port?: string[];
|
|
78
|
+
auditType?: string[];
|
|
79
|
+
readerId?: string[];
|
|
80
|
+
}
|
|
69
81
|
export {};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { ChangeLogOptionParams, ChangeLogParams, IOTAntennaList, IOTAntennaListOptions, IOTCheckManager, IOTDetail, IOTPortList, IOTReaderList, IOTReaderListOptions, PingIOTBulk, PingIOTSingle, UpdateReader } from '../types/iot.type';
|
|
2
|
+
import { ChangeLogOptionParams, ChangeLogParams, IOTActivityLog, IOTAntennaList, IOTAntennaListOptions, IOTCheckManager, IOTDetail, IOTPortList, IOTReaderList, IOTReaderListOptions, PingIOTBulk, PingIOTSingle, UpdateReader } from '../types/iot.type';
|
|
3
3
|
import { FetchDetailResponse, FetchListResponse, FetchResponse, ShortFetchListResponse } from '../types/fetchResponse.type';
|
|
4
|
-
import { GetIOTAntennaListOptionsQueryParams, GetIOTAntennaListQueryParams, GetIOTPortListQueryParams, GetIOTReaderListOptionsQueryParams, GetIOTReaderListQueryParams, PingIOTBulkBody, SetGroupIOTBody, SetIOTAliasNameBody, SetIOTAntennaPowerBulkBody, SetIOTPortGroupBody, UpdateAntennaStatusBody, UpdateReaderBody, UpdateReaderStatusBody } from '../dto/iot.dto';
|
|
4
|
+
import { GetIOTActivityLogQueryParams, GetIOTAntennaListOptionsQueryParams, GetIOTAntennaListQueryParams, GetIOTPortListQueryParams, GetIOTReaderListOptionsQueryParams, GetIOTReaderListQueryParams, PingIOTBulkBody, SetGroupIOTBody, SetIOTAliasNameBody, SetIOTAntennaPowerBulkBody, SetIOTPortGroupBody, UpdateAntennaStatusBody, UpdateReaderBody, UpdateReaderStatusBody } from '../dto/iot.dto';
|
|
5
5
|
declare const IOTService: {
|
|
6
6
|
getIOTAntennaList: (params?: GetIOTAntennaListQueryParams) => Promise<AxiosResponse<FetchListResponse<IOTAntennaList>>>;
|
|
7
7
|
getIOTAntennaListOptions: (params?: GetIOTAntennaListOptionsQueryParams) => Promise<AxiosResponse<FetchDetailResponse<IOTAntennaListOptions>>>;
|
|
8
|
-
getIOTReaderList: (params: GetIOTReaderListQueryParams) => Promise<AxiosResponse<FetchListResponse<IOTReaderList>>>;
|
|
9
8
|
getIOTReaderListOptions: (params: GetIOTReaderListOptionsQueryParams) => Promise<AxiosResponse<FetchDetailResponse<IOTReaderListOptions>>>;
|
|
9
|
+
getIOTReaderList: (params: GetIOTReaderListQueryParams) => Promise<AxiosResponse<FetchListResponse<IOTReaderList>>>;
|
|
10
|
+
getActivityLog: (params: GetIOTActivityLogQueryParams) => Promise<AxiosResponse<FetchListResponse<IOTActivityLog>>>;
|
|
10
11
|
setIOTAliasName: (body: SetIOTAliasNameBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
11
12
|
pingIOTSingle: (id: string) => Promise<AxiosResponse<FetchDetailResponse<PingIOTSingle>>>;
|
|
12
13
|
pingIOTBulk: (body: PingIOTBulkBody) => Promise<AxiosResponse<ShortFetchListResponse<PingIOTBulk>>>;
|
package/src/types/iot.type.d.ts
CHANGED
|
@@ -152,4 +152,18 @@ export interface IOTAntennaListOptions {
|
|
|
152
152
|
modelOptions: Option[];
|
|
153
153
|
managerOptions: Option[];
|
|
154
154
|
}
|
|
155
|
+
export interface IOTActivityLog {
|
|
156
|
+
_id: string;
|
|
157
|
+
deviceName: BaseEntity & {
|
|
158
|
+
nameWithSequence: string;
|
|
159
|
+
nameNumber: number;
|
|
160
|
+
};
|
|
161
|
+
group: string;
|
|
162
|
+
activity: string;
|
|
163
|
+
manager: string;
|
|
164
|
+
auditType: string | null;
|
|
165
|
+
date: string | Date;
|
|
166
|
+
name: string | null;
|
|
167
|
+
port: string | null;
|
|
168
|
+
}
|
|
155
169
|
export {};
|