@tagsamurai/fats-api-services 1.0.3-alpha.17 → 1.0.3-alpha.18
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
|
@@ -1899,6 +1899,9 @@ const NotificationApprovalServices = {
|
|
|
1899
1899
|
const ReaderAPI = createAxiosInstance({
|
|
1900
1900
|
prefix: "/iot/v2/reader"
|
|
1901
1901
|
});
|
|
1902
|
+
const IOTAntennaAPI = createAxiosInstance({
|
|
1903
|
+
prefix: "/iot/v2/iot/antenna"
|
|
1904
|
+
});
|
|
1902
1905
|
const IOTReaderAPI = createAxiosInstance({
|
|
1903
1906
|
prefix: "/iot/v2/iot/reader"
|
|
1904
1907
|
});
|
|
@@ -1943,6 +1946,10 @@ const ReaderServices = {
|
|
|
1943
1946
|
updateReaderStatus: (body) => {
|
|
1944
1947
|
return IOTReaderAPI.put("/set-status", body);
|
|
1945
1948
|
},
|
|
1949
|
+
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/antenna/set-status
|
|
1950
|
+
updateAntennaStatus: (body) => {
|
|
1951
|
+
return IOTAntennaAPI.put("/set-status", body);
|
|
1952
|
+
},
|
|
1946
1953
|
setIOTPortGroup: (id, body) => {
|
|
1947
1954
|
return IOTReaderAPI.put(`/${id}/set-port-group`, body);
|
|
1948
1955
|
},
|
package/api-services.system.js
CHANGED
|
@@ -1907,6 +1907,9 @@ System.register(["axios"], function(exports, module) {
|
|
|
1907
1907
|
const ReaderAPI = createAxiosInstance({
|
|
1908
1908
|
prefix: "/iot/v2/reader"
|
|
1909
1909
|
});
|
|
1910
|
+
const IOTAntennaAPI = createAxiosInstance({
|
|
1911
|
+
prefix: "/iot/v2/iot/antenna"
|
|
1912
|
+
});
|
|
1910
1913
|
const IOTReaderAPI = createAxiosInstance({
|
|
1911
1914
|
prefix: "/iot/v2/iot/reader"
|
|
1912
1915
|
});
|
|
@@ -1951,6 +1954,10 @@ System.register(["axios"], function(exports, module) {
|
|
|
1951
1954
|
updateReaderStatus: (body) => {
|
|
1952
1955
|
return IOTReaderAPI.put("/set-status", body);
|
|
1953
1956
|
},
|
|
1957
|
+
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/antenna/set-status
|
|
1958
|
+
updateAntennaStatus: (body) => {
|
|
1959
|
+
return IOTAntennaAPI.put("/set-status", body);
|
|
1960
|
+
},
|
|
1954
1961
|
setIOTPortGroup: (id, body) => {
|
|
1955
1962
|
return IOTReaderAPI.put(`/${id}/set-port-group`, body);
|
|
1956
1963
|
},
|
package/package.json
CHANGED
package/src/dto/reader.dto.d.ts
CHANGED
|
@@ -45,6 +45,9 @@ export interface UpdateReaderStatusBody {
|
|
|
45
45
|
reader: string[];
|
|
46
46
|
status: IOTStatus;
|
|
47
47
|
}
|
|
48
|
+
export type UpdateAntennaStatusBody = Omit<UpdateReaderStatusBody, 'reader'> & {
|
|
49
|
+
antenna: string[];
|
|
50
|
+
};
|
|
48
51
|
export interface SetIOTAntennaPowerBulkBody {
|
|
49
52
|
power: number[];
|
|
50
53
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
2
|
import { ChangeLogOptionParams, ChangeLogParams, IOTCheckManager, IOTDetail, IOTPortList, IOTReaderList, IOTReaderListOptions, PingIOTSingle, UpdateReader } from '../types/reader.type';
|
|
3
3
|
import { FetchDetailResponse, FetchListResponse, FetchResponse } from '../types/fetchResponse.type';
|
|
4
|
-
import { GetIOTPortListQueryParams, GetIOTReaderListOptionsQueryParams, GetIOTReaderListQueryParams, SetGroupIOTBody, SetIOTAliasNameBody, SetIOTAntennaPowerBulkBody, SetIOTPortGroupBody, UpdateReaderBody, UpdateReaderStatusBody } from '../dto/reader.dto';
|
|
4
|
+
import { GetIOTPortListQueryParams, GetIOTReaderListOptionsQueryParams, GetIOTReaderListQueryParams, SetGroupIOTBody, SetIOTAliasNameBody, SetIOTAntennaPowerBulkBody, SetIOTPortGroupBody, UpdateAntennaStatusBody, UpdateReaderBody, UpdateReaderStatusBody } 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>>>;
|
|
@@ -13,6 +13,7 @@ declare const ReaderServices: {
|
|
|
13
13
|
getIOTCheckManager: () => Promise<AxiosResponse<FetchDetailResponse<IOTCheckManager>>>;
|
|
14
14
|
updateReader: (id: string, body: UpdateReaderBody) => Promise<AxiosResponse<FetchDetailResponse<UpdateReader>>>;
|
|
15
15
|
updateReaderStatus: (body: UpdateReaderStatusBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
16
|
+
updateAntennaStatus: (body: UpdateAntennaStatusBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
16
17
|
setIOTPortGroup: (id: string, body: SetIOTPortGroupBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
17
18
|
setGroupIOT: (body: SetGroupIOTBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
18
19
|
getDataById: (id: string) => Promise<AxiosResponse>;
|