@tagsamurai/fats-api-services 1.0.3-alpha.1 → 1.0.3-alpha.3
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
CHANGED
|
@@ -1907,6 +1907,17 @@ const ReaderServices = {
|
|
|
1907
1907
|
setIOTAliasName: (body) => {
|
|
1908
1908
|
return API$b.put("/set-alias-name", body);
|
|
1909
1909
|
},
|
|
1910
|
+
pingIOTSingle: (id) => {
|
|
1911
|
+
return API$b.put(`/${id}/ping`);
|
|
1912
|
+
},
|
|
1913
|
+
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/set-antenna-power
|
|
1914
|
+
setIOTAntennaPowerBulk: (id, body) => {
|
|
1915
|
+
return API$b.put(`/${id}/set-antenna-power`, body);
|
|
1916
|
+
},
|
|
1917
|
+
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/ports
|
|
1918
|
+
getIOTPortList: (id, params) => {
|
|
1919
|
+
return API$b.get(`/${id}/ports`, { params });
|
|
1920
|
+
},
|
|
1910
1921
|
getActivityLogData: (params) => {
|
|
1911
1922
|
return API$b.get("/activity-log", { params });
|
|
1912
1923
|
},
|
package/api-services.system.js
CHANGED
|
@@ -1914,6 +1914,17 @@ System.register(["axios"], function(exports, module) {
|
|
|
1914
1914
|
setIOTAliasName: (body) => {
|
|
1915
1915
|
return API$b.put("/set-alias-name", body);
|
|
1916
1916
|
},
|
|
1917
|
+
pingIOTSingle: (id) => {
|
|
1918
|
+
return API$b.put(`/${id}/ping`);
|
|
1919
|
+
},
|
|
1920
|
+
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/set-antenna-power
|
|
1921
|
+
setIOTAntennaPowerBulk: (id, body) => {
|
|
1922
|
+
return API$b.put(`/${id}/set-antenna-power`, body);
|
|
1923
|
+
},
|
|
1924
|
+
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/ports
|
|
1925
|
+
getIOTPortList: (id, params) => {
|
|
1926
|
+
return API$b.get(`/${id}/ports`, { params });
|
|
1927
|
+
},
|
|
1917
1928
|
getActivityLogData: (params) => {
|
|
1918
1929
|
return API$b.get("/activity-log", { params });
|
|
1919
1930
|
},
|
package/package.json
CHANGED
package/src/dto/reader.dto.d.ts
CHANGED
|
@@ -13,6 +13,11 @@ export interface GetIOTReaderListQueryParams extends BaseFilterQueryParams {
|
|
|
13
13
|
antennaGroup?: number[];
|
|
14
14
|
assetControl?: string;
|
|
15
15
|
}
|
|
16
|
+
export interface GetIOTPortListQueryParams extends BaseFilterQueryParams {
|
|
17
|
+
group?: number[];
|
|
18
|
+
networkStatus?: string[];
|
|
19
|
+
activeStatus?: string[];
|
|
20
|
+
}
|
|
16
21
|
export interface GetIOTReaderListOptionsQueryParams {
|
|
17
22
|
deviceNameOptions?: boolean;
|
|
18
23
|
groupOptions?: boolean;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { ActivityLogOptionParams, ChangeLogOptionParams, ChangeLogParams, IOTReaderList, IOTReaderListOptions, QueryParams } from '../types/reader.type';
|
|
2
|
+
import { ActivityLogOptionParams, ChangeLogOptionParams, ChangeLogParams, IOTPortList, IOTReaderList, IOTReaderListOptions, QueryParams } from '../types/reader.type';
|
|
3
3
|
import { FetchDetailResponse, FetchListResponse, FetchResponse } from '../types/fetchResponse.type';
|
|
4
|
-
import { GetIOTReaderListOptionsQueryParams, GetIOTReaderListQueryParams, SetIOTAliasNameBody } from '../dto/reader.dto';
|
|
4
|
+
import { GetIOTPortListQueryParams, GetIOTReaderListOptionsQueryParams, GetIOTReaderListQueryParams, SetIOTAliasNameBody } 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>>>;
|
|
8
8
|
setIOTAliasName: (body: SetIOTAliasNameBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
9
|
+
pingIOTSingle: (id: string) => Promise<AxiosResponse<FetchDetailResponse<{
|
|
10
|
+
status: string;
|
|
11
|
+
}>>>;
|
|
12
|
+
setIOTAntennaPowerBulk: (id: string, body: {
|
|
13
|
+
power: number[];
|
|
14
|
+
}) => Promise<FetchResponse>;
|
|
15
|
+
getIOTPortList: (id: string, params?: GetIOTPortListQueryParams) => Promise<AxiosResponse<FetchListResponse<IOTPortList>>>;
|
|
9
16
|
getActivityLogData: (params: QueryParams) => Promise<AxiosResponse>;
|
|
10
17
|
getActivityLogOptions: (params: ActivityLogOptionParams) => Promise<AxiosResponse>;
|
|
11
18
|
getDataById: (id: string) => Promise<AxiosResponse>;
|
|
@@ -111,4 +111,13 @@ export interface IOTReaderListOptions {
|
|
|
111
111
|
managerOptions: Option[];
|
|
112
112
|
antennaGroupOptions: Option[];
|
|
113
113
|
}
|
|
114
|
+
export interface IOTPortList {
|
|
115
|
+
networkStatus: string;
|
|
116
|
+
_id: number;
|
|
117
|
+
isActive: boolean;
|
|
118
|
+
port: string;
|
|
119
|
+
group: BaseEntity;
|
|
120
|
+
antennaPower: string;
|
|
121
|
+
hasEditAccess: boolean;
|
|
122
|
+
}
|
|
114
123
|
export {};
|