@tagsamurai/fats-api-services 1.0.3-alpha.2 → 1.0.3-alpha.4
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
|
@@ -1918,6 +1918,19 @@ const ReaderServices = {
|
|
|
1918
1918
|
getIOTPortList: (id, params) => {
|
|
1919
1919
|
return API$b.get(`/${id}/ports`, { params });
|
|
1920
1920
|
},
|
|
1921
|
+
getIOTDetail: (id) => {
|
|
1922
|
+
return API$b.get(`/${id}`);
|
|
1923
|
+
},
|
|
1924
|
+
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/check-manager
|
|
1925
|
+
getIOTCheckManager: () => {
|
|
1926
|
+
return API$b.get("/check-manager");
|
|
1927
|
+
},
|
|
1928
|
+
setIOTPortGroup: (id, body) => {
|
|
1929
|
+
return API$b.put(`/${id}/set-port-group`, body);
|
|
1930
|
+
},
|
|
1931
|
+
setGroupIOT: (body) => {
|
|
1932
|
+
return API$b.put("/set-group", body);
|
|
1933
|
+
},
|
|
1921
1934
|
getActivityLogData: (params) => {
|
|
1922
1935
|
return API$b.get("/activity-log", { params });
|
|
1923
1936
|
},
|
package/api-services.system.js
CHANGED
|
@@ -1925,6 +1925,19 @@ System.register(["axios"], function(exports, module) {
|
|
|
1925
1925
|
getIOTPortList: (id, params) => {
|
|
1926
1926
|
return API$b.get(`/${id}/ports`, { params });
|
|
1927
1927
|
},
|
|
1928
|
+
getIOTDetail: (id) => {
|
|
1929
|
+
return API$b.get(`/${id}`);
|
|
1930
|
+
},
|
|
1931
|
+
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/check-manager
|
|
1932
|
+
getIOTCheckManager: () => {
|
|
1933
|
+
return API$b.get("/check-manager");
|
|
1934
|
+
},
|
|
1935
|
+
setIOTPortGroup: (id, body) => {
|
|
1936
|
+
return API$b.put(`/${id}/set-port-group`, body);
|
|
1937
|
+
},
|
|
1938
|
+
setGroupIOT: (body) => {
|
|
1939
|
+
return API$b.put("/set-group", body);
|
|
1940
|
+
},
|
|
1928
1941
|
getActivityLogData: (params) => {
|
|
1929
1942
|
return API$b.get("/activity-log", { params });
|
|
1930
1943
|
},
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { ActivityLogOptionParams, ChangeLogOptionParams, ChangeLogParams, IOTPortList, IOTReaderList, IOTReaderListOptions, QueryParams } from '../types/reader.type';
|
|
2
|
+
import { ActivityLogOptionParams, ChangeLogOptionParams, ChangeLogParams, IOTDetail, IOTPortList, IOTReaderList, IOTReaderListOptions, QueryParams } from '../types/reader.type';
|
|
3
3
|
import { FetchDetailResponse, FetchListResponse, FetchResponse } from '../types/fetchResponse.type';
|
|
4
4
|
import { GetIOTPortListQueryParams, GetIOTReaderListOptionsQueryParams, GetIOTReaderListQueryParams, SetIOTAliasNameBody } from '../dto/reader.dto';
|
|
5
5
|
declare const ReaderServices: {
|
|
@@ -12,7 +12,19 @@ declare const ReaderServices: {
|
|
|
12
12
|
setIOTAntennaPowerBulk: (id: string, body: {
|
|
13
13
|
power: number[];
|
|
14
14
|
}) => Promise<FetchResponse>;
|
|
15
|
-
getIOTPortList: (id: string, params?: GetIOTPortListQueryParams) => Promise<AxiosResponse<
|
|
15
|
+
getIOTPortList: (id: string, params?: GetIOTPortListQueryParams) => Promise<AxiosResponse<FetchListResponse<IOTPortList>>>;
|
|
16
|
+
getIOTDetail: (id: string) => Promise<AxiosResponse<FetchDetailResponse<IOTDetail>>>;
|
|
17
|
+
getIOTCheckManager: () => Promise<AxiosResponse<FetchDetailResponse<{
|
|
18
|
+
hasTaggedManager: boolean;
|
|
19
|
+
oneOfUser: string;
|
|
20
|
+
}>>>;
|
|
21
|
+
setIOTPortGroup: (id: string, body: {
|
|
22
|
+
group: string[];
|
|
23
|
+
}) => Promise<AxiosResponse<FetchResponse>>;
|
|
24
|
+
setGroupIOT: (body: {
|
|
25
|
+
reader: string[];
|
|
26
|
+
group: string;
|
|
27
|
+
}) => Promise<AxiosResponse<FetchResponse>>;
|
|
16
28
|
getActivityLogData: (params: QueryParams) => Promise<AxiosResponse>;
|
|
17
29
|
getActivityLogOptions: (params: ActivityLogOptionParams) => Promise<AxiosResponse>;
|
|
18
30
|
getDataById: (id: string) => Promise<AxiosResponse>;
|
|
@@ -120,4 +120,17 @@ export interface IOTPortList {
|
|
|
120
120
|
antennaPower: string;
|
|
121
121
|
hasEditAccess: boolean;
|
|
122
122
|
}
|
|
123
|
+
export interface IOTDetail {
|
|
124
|
+
_id: string;
|
|
125
|
+
imageSmall: string | null;
|
|
126
|
+
imageMedium: string | null;
|
|
127
|
+
imageBig: string | null;
|
|
128
|
+
name: NameEntity;
|
|
129
|
+
totalPort: number;
|
|
130
|
+
group: BaseEntity;
|
|
131
|
+
brand: BaseEntity;
|
|
132
|
+
model: BaseEntity;
|
|
133
|
+
networkStatus: string;
|
|
134
|
+
assetControl: AssetControl;
|
|
135
|
+
}
|
|
123
136
|
export {};
|