@tagsamurai/fats-api-services 1.0.3-alpha.27 → 1.0.3-alpha.28

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.
@@ -2582,6 +2582,10 @@ const IOTService = {
2582
2582
  setIOTPortGroup: (id, body) => {
2583
2583
  return IOTReaderAPI.put(`/${id}/set-port-group`, body);
2584
2584
  },
2585
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/set-port-status
2586
+ setIOTPortStatus: (id, body) => {
2587
+ return IOTReaderAPI.put(`/${id}/set-port-status`, body);
2588
+ },
2585
2589
  setGroupIOT: (body) => {
2586
2590
  return IOTReaderAPI.put("/set-group", body);
2587
2591
  },
@@ -2590,6 +2590,10 @@ System.register(["axios"], function(exports, module) {
2590
2590
  setIOTPortGroup: (id, body) => {
2591
2591
  return IOTReaderAPI.put(`/${id}/set-port-group`, body);
2592
2592
  },
2593
+ //https://dev-api.tagsamurai.com/fam/iot/v2/iot/reader/:id/set-port-status
2594
+ setIOTPortStatus: (id, body) => {
2595
+ return IOTReaderAPI.put(`/${id}/set-port-status`, body);
2596
+ },
2593
2597
  setGroupIOT: (body) => {
2594
2598
  return IOTReaderAPI.put("/set-group", body);
2595
2599
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagsamurai/fats-api-services",
3
- "version": "1.0.3-alpha.27",
3
+ "version": "1.0.3-alpha.28",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Fixed Asset Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -86,4 +86,8 @@ export interface GetIOTActivityLogOptionsQueryParams {
86
86
  managerOptions?: boolean;
87
87
  portOptions?: boolean;
88
88
  }
89
+ export interface SetIOTPortStatusBody {
90
+ port: number;
91
+ isActive: boolean;
92
+ }
89
93
  export {};
@@ -1,7 +1,7 @@
1
1
  import { AxiosResponse } from 'axios';
2
2
  import { ChangeLogOptionParams, ChangeLogParams, IOTActivityLog, IOTActivityLogOptions, IOTAntennaList, IOTAntennaListOptions, IOTCheckManager, IOTDetail, IOTPortList, IOTReaderList, IOTReaderListOptions, PingIOTBulk, PingIOTSingle, UpdateReader } from '../types/iot.type';
3
3
  import { FetchDetailResponse, FetchListResponse, FetchResponse, ShortFetchListResponse } from '../types/fetchResponse.type';
4
- import { GetIOTActivityLogOptionsQueryParams, GetIOTActivityLogQueryParams, GetIOTAntennaListOptionsQueryParams, GetIOTAntennaListQueryParams, GetIOTPortListQueryParams, GetIOTReaderListOptionsQueryParams, GetIOTReaderListQueryParams, PingIOTBulkBody, SetGroupIOTBody, SetIOTAliasNameBody, SetIOTAntennaPowerBulkBody, SetIOTPortGroupBody, UpdateAntennaStatusBody, UpdateReaderBody, UpdateReaderStatusBody } from '../dto/iot.dto';
4
+ import { GetIOTActivityLogOptionsQueryParams, GetIOTActivityLogQueryParams, GetIOTAntennaListOptionsQueryParams, GetIOTAntennaListQueryParams, GetIOTPortListQueryParams, GetIOTReaderListOptionsQueryParams, GetIOTReaderListQueryParams, PingIOTBulkBody, SetGroupIOTBody, SetIOTAliasNameBody, SetIOTAntennaPowerBulkBody, SetIOTPortGroupBody, SetIOTPortStatusBody, UpdateAntennaStatusBody, UpdateReaderBody, UpdateReaderStatusBody } from '../dto/iot.dto';
5
5
  declare const IOTService: {
6
6
  getIOTAntennaList: (params?: GetIOTAntennaListQueryParams) => Promise<AxiosResponse<FetchListResponse<IOTAntennaList>>>;
7
7
  getIOTAntennaListOptions: (params?: GetIOTAntennaListOptionsQueryParams) => Promise<AxiosResponse<FetchDetailResponse<IOTAntennaListOptions>>>;
@@ -20,6 +20,7 @@ declare const IOTService: {
20
20
  updateReaderStatus: (body: UpdateReaderStatusBody) => Promise<AxiosResponse<FetchResponse>>;
21
21
  updateAntennaStatus: (body: UpdateAntennaStatusBody) => Promise<AxiosResponse<FetchResponse>>;
22
22
  setIOTPortGroup: (id: string, body: SetIOTPortGroupBody) => Promise<AxiosResponse<FetchResponse>>;
23
+ setIOTPortStatus: (id: string, body: SetIOTPortStatusBody) => Promise<AxiosResponse<FetchResponse>>;
23
24
  setGroupIOT: (body: SetGroupIOTBody) => Promise<AxiosResponse<FetchResponse>>;
24
25
  getDataById: (id: string) => Promise<AxiosResponse>;
25
26
  getChangeLog: (params: ChangeLogParams) => Promise<AxiosResponse>;