@tagsamurai/fats-api-services 1.0.3-alpha.17 → 1.0.3-alpha.19
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
|
});
|
|
@@ -1919,6 +1922,10 @@ const ReaderServices = {
|
|
|
1919
1922
|
pingIOTSingle: (id) => {
|
|
1920
1923
|
return IOTReaderAPI.put(`/${id}/ping`);
|
|
1921
1924
|
},
|
|
1925
|
+
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/ping/bulk
|
|
1926
|
+
pingIOTBulk: (body) => {
|
|
1927
|
+
return IOTReaderAPI.put("/ping/bulk", body);
|
|
1928
|
+
},
|
|
1922
1929
|
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/set-antenna-power
|
|
1923
1930
|
setIOTAntennaPowerBulk: (id, body) => {
|
|
1924
1931
|
return IOTReaderAPI.put(`/${id}/set-antenna-power`, body);
|
|
@@ -1943,6 +1950,10 @@ const ReaderServices = {
|
|
|
1943
1950
|
updateReaderStatus: (body) => {
|
|
1944
1951
|
return IOTReaderAPI.put("/set-status", body);
|
|
1945
1952
|
},
|
|
1953
|
+
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/antenna/set-status
|
|
1954
|
+
updateAntennaStatus: (body) => {
|
|
1955
|
+
return IOTAntennaAPI.put("/set-status", body);
|
|
1956
|
+
},
|
|
1946
1957
|
setIOTPortGroup: (id, body) => {
|
|
1947
1958
|
return IOTReaderAPI.put(`/${id}/set-port-group`, body);
|
|
1948
1959
|
},
|
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
|
});
|
|
@@ -1927,6 +1930,10 @@ System.register(["axios"], function(exports, module) {
|
|
|
1927
1930
|
pingIOTSingle: (id) => {
|
|
1928
1931
|
return IOTReaderAPI.put(`/${id}/ping`);
|
|
1929
1932
|
},
|
|
1933
|
+
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/ping/bulk
|
|
1934
|
+
pingIOTBulk: (body) => {
|
|
1935
|
+
return IOTReaderAPI.put("/ping/bulk", body);
|
|
1936
|
+
},
|
|
1930
1937
|
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/set-antenna-power
|
|
1931
1938
|
setIOTAntennaPowerBulk: (id, body) => {
|
|
1932
1939
|
return IOTReaderAPI.put(`/${id}/set-antenna-power`, body);
|
|
@@ -1951,6 +1958,10 @@ System.register(["axios"], function(exports, module) {
|
|
|
1951
1958
|
updateReaderStatus: (body) => {
|
|
1952
1959
|
return IOTReaderAPI.put("/set-status", body);
|
|
1953
1960
|
},
|
|
1961
|
+
//https://dev-api.tagsamurai.com/fam/iot/v2/iot/antenna/set-status
|
|
1962
|
+
updateAntennaStatus: (body) => {
|
|
1963
|
+
return IOTAntennaAPI.put("/set-status", body);
|
|
1964
|
+
},
|
|
1954
1965
|
setIOTPortGroup: (id, body) => {
|
|
1955
1966
|
return IOTReaderAPI.put(`/${id}/set-port-group`, body);
|
|
1956
1967
|
},
|
package/package.json
CHANGED
package/src/dto/reader.dto.d.ts
CHANGED
|
@@ -45,7 +45,11 @@ 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
|
}
|
|
54
|
+
export type PingIOTBulkBody = Pick<UpdateReaderStatusBody, 'reader'>;
|
|
51
55
|
export {};
|
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { ChangeLogOptionParams, ChangeLogParams, IOTCheckManager, IOTDetail, IOTPortList, IOTReaderList, IOTReaderListOptions, PingIOTSingle, UpdateReader } from '../types/reader.type';
|
|
3
|
-
import { FetchDetailResponse, FetchListResponse, FetchResponse } from '../types/fetchResponse.type';
|
|
4
|
-
import { GetIOTPortListQueryParams, GetIOTReaderListOptionsQueryParams, GetIOTReaderListQueryParams, SetGroupIOTBody, SetIOTAliasNameBody, SetIOTAntennaPowerBulkBody, SetIOTPortGroupBody, UpdateReaderBody, UpdateReaderStatusBody } from '../dto/reader.dto';
|
|
2
|
+
import { ChangeLogOptionParams, ChangeLogParams, IOTCheckManager, IOTDetail, IOTPortList, IOTReaderList, IOTReaderListOptions, PingIOTBulk, PingIOTSingle, UpdateReader } from '../types/reader.type';
|
|
3
|
+
import { FetchDetailResponse, FetchListResponse, FetchResponse, ShortFetchListResponse } from '../types/fetchResponse.type';
|
|
4
|
+
import { GetIOTPortListQueryParams, GetIOTReaderListOptionsQueryParams, GetIOTReaderListQueryParams, PingIOTBulkBody, 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>>>;
|
|
8
8
|
setIOTAliasName: (body: SetIOTAliasNameBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
9
9
|
pingIOTSingle: (id: string) => Promise<AxiosResponse<FetchDetailResponse<PingIOTSingle>>>;
|
|
10
|
+
pingIOTBulk: (body: PingIOTBulkBody) => Promise<AxiosResponse<ShortFetchListResponse<PingIOTBulk>>>;
|
|
10
11
|
setIOTAntennaPowerBulk: (id: string, body: SetIOTAntennaPowerBulkBody) => Promise<FetchResponse>;
|
|
11
12
|
getIOTPortList: (id: string, params?: GetIOTPortListQueryParams) => Promise<AxiosResponse<FetchListResponse<IOTPortList>>>;
|
|
12
13
|
getIOTDetail: (id: string) => Promise<AxiosResponse<FetchDetailResponse<IOTDetail>>>;
|
|
13
14
|
getIOTCheckManager: () => Promise<AxiosResponse<FetchDetailResponse<IOTCheckManager>>>;
|
|
14
15
|
updateReader: (id: string, body: UpdateReaderBody) => Promise<AxiosResponse<FetchDetailResponse<UpdateReader>>>;
|
|
15
16
|
updateReaderStatus: (body: UpdateReaderStatusBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
17
|
+
updateAntennaStatus: (body: UpdateAntennaStatusBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
16
18
|
setIOTPortGroup: (id: string, body: SetIOTPortGroupBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
17
19
|
setGroupIOT: (body: SetGroupIOTBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
18
20
|
getDataById: (id: string) => Promise<AxiosResponse>;
|