@tagsamurai/fats-api-services 1.0.0-alpha.296 → 1.0.0-alpha.298

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.
@@ -1866,12 +1866,11 @@ const NotificationApprovalServices = {
1866
1866
  }
1867
1867
  };
1868
1868
  const API$b = createAxiosInstance({
1869
- env: "APP_TAGSAMURAI_API",
1870
- prefix: "/iot/v2/reader"
1869
+ prefix: "/fam/iot/v2/reader"
1871
1870
  });
1872
1871
  const ReaderServices = {
1873
1872
  getIOTReaderList: (params) => {
1874
- return API$b.get("/", { params: queryParamsStringfy(params) });
1873
+ return API$b.get("", { params });
1875
1874
  },
1876
1875
  getDataOptions: (params) => {
1877
1876
  return API$b.get("/options", { params });
@@ -1873,12 +1873,11 @@ System.register(["axios"], function(exports, module) {
1873
1873
  }
1874
1874
  });
1875
1875
  const API$b = createAxiosInstance({
1876
- env: "APP_TAGSAMURAI_API",
1877
- prefix: "/iot/v2/reader"
1876
+ prefix: "/fam/iot/v2/reader"
1878
1877
  });
1879
1878
  const ReaderServices = exports("ReaderServices", {
1880
1879
  getIOTReaderList: (params) => {
1881
- return API$b.get("/", { params: queryParamsStringfy(params) });
1880
+ return API$b.get("", { params });
1882
1881
  },
1883
1882
  getDataOptions: (params) => {
1884
1883
  return API$b.get("/options", { params });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tagsamurai/fats-api-services",
3
- "version": "1.0.0-alpha.296",
3
+ "version": "1.0.0-alpha.298",
4
4
  "author": "developer.tagsamurai",
5
5
  "description": "Fixed Asset Tag Samurai Services Library",
6
6
  "module": "./api-services.es.js",
@@ -74,22 +74,21 @@ export interface RepairFilterOptionsQueryParams {
74
74
  updatedAt?: boolean;
75
75
  statusOptions?: boolean;
76
76
  }
77
- interface IOTReaderListQueryParams extends BaseFilterQueryParams {
78
- deviceName: string[];
79
- group: number[];
80
- status: string[];
81
- iotReaderId: string;
82
- iotReaderIds: string[];
83
- brand: string[];
84
- model: string[];
85
- reportedDate: number[];
86
- manager: string[];
87
- networkStatus: string[];
88
- antennaGroup: number[];
89
- assetControl: string;
77
+ export interface GetIOTReaderListQueryParams extends BaseFilterQueryParams {
78
+ deviceName?: string[];
79
+ group?: number[];
80
+ status?: string[];
81
+ iotReaderId?: string;
82
+ iotReaderIds?: string[];
83
+ brand?: string[];
84
+ model?: string[];
85
+ reportedDate?: number[];
86
+ manager?: string[];
87
+ networkStatus?: string[];
88
+ antennaGroup?: number[];
89
+ assetControl?: string;
90
90
  }
91
91
  export interface ConfirmRepairBody {
92
92
  action: 'Back to assigned asset' | 'Back to borrowed asset' | 'Return to available' | 'Request extension' | 'Unassign asset';
93
93
  }
94
- export type GetIOTReaderListQueryParams = Partial<IOTReaderListQueryParams>;
95
94
  export {};
@@ -1,4 +1,3 @@
1
- import { QueryParams } from '../types/fetchResponse.type';
2
1
  export interface QueryParamsStringfy {
3
2
  [key: string]: string;
4
3
  }
@@ -6,4 +5,4 @@ export interface QueryParamsStringfy {
6
5
  * This Function will turn all array query params to string
7
6
  * using JSON Stringfy
8
7
  */
9
- export declare const queryParamsStringfy: (data: QueryParams | undefined) => QueryParamsStringfy | undefined;
8
+ export declare const queryParamsStringfy: (data: object | undefined) => QueryParamsStringfy | undefined;