@tagsamurai/fats-api-services 1.0.3-alpha.18 → 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.
@@ -1922,6 +1922,10 @@ const ReaderServices = {
1922
1922
  pingIOTSingle: (id) => {
1923
1923
  return IOTReaderAPI.put(`/${id}/ping`);
1924
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
+ },
1925
1929
  //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/set-antenna-power
1926
1930
  setIOTAntennaPowerBulk: (id, body) => {
1927
1931
  return IOTReaderAPI.put(`/${id}/set-antenna-power`, body);
@@ -1930,6 +1930,10 @@ System.register(["axios"], function(exports, module) {
1930
1930
  pingIOTSingle: (id) => {
1931
1931
  return IOTReaderAPI.put(`/${id}/ping`);
1932
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
+ },
1933
1937
  //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/set-antenna-power
1934
1938
  setIOTAntennaPowerBulk: (id, body) => {
1935
1939
  return IOTReaderAPI.put(`/${id}/set-antenna-power`, body);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagsamurai/fats-api-services",
3
- "version": "1.0.3-alpha.18",
3
+ "version": "1.0.3-alpha.19",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Fixed Asset Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -51,4 +51,5 @@ export type UpdateAntennaStatusBody = Omit<UpdateReaderStatusBody, 'reader'> & {
51
51
  export interface SetIOTAntennaPowerBulkBody {
52
52
  power: number[];
53
53
  }
54
+ export type PingIOTBulkBody = Pick<UpdateReaderStatusBody, 'reader'>;
54
55
  export {};
@@ -1,12 +1,13 @@
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, UpdateAntennaStatusBody, 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>>>;
@@ -128,4 +128,8 @@ export interface UpdateReader {
128
128
  export interface PingIOTSingle {
129
129
  status: string;
130
130
  }
131
+ export interface PingIOTBulk {
132
+ reader: string;
133
+ networkStatus: string;
134
+ }
131
135
  export {};