@tagsamurai/fats-api-services 1.0.3-alpha.15 → 1.0.3-alpha.16
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
|
@@ -1927,6 +1927,9 @@ const ReaderServices = {
|
|
|
1927
1927
|
getIOTCheckManager: () => {
|
|
1928
1928
|
return API$b.get("/check-manager");
|
|
1929
1929
|
},
|
|
1930
|
+
updateReader: (id, body) => {
|
|
1931
|
+
return API$b.put(`/${id}`, body);
|
|
1932
|
+
},
|
|
1930
1933
|
setIOTPortGroup: (id, body) => {
|
|
1931
1934
|
return API$b.put(`/${id}/set-port-group`, body);
|
|
1932
1935
|
},
|
package/api-services.system.js
CHANGED
|
@@ -1935,6 +1935,9 @@ System.register(["axios"], function(exports, module) {
|
|
|
1935
1935
|
getIOTCheckManager: () => {
|
|
1936
1936
|
return API$b.get("/check-manager");
|
|
1937
1937
|
},
|
|
1938
|
+
updateReader: (id, body) => {
|
|
1939
|
+
return API$b.put(`/${id}`, body);
|
|
1940
|
+
},
|
|
1938
1941
|
setIOTPortGroup: (id, body) => {
|
|
1939
1942
|
return API$b.put(`/${id}/set-port-group`, body);
|
|
1940
1943
|
},
|
package/package.json
CHANGED
package/src/dto/reader.dto.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { ChangeLogOptionParams, ChangeLogParams, IOTCheckManager, IOTDetail, IOTPortList, IOTReaderList, IOTReaderListOptions } from '../types/reader.type';
|
|
2
|
+
import { ChangeLogOptionParams, ChangeLogParams, IOTCheckManager, IOTDetail, IOTPortList, IOTReaderList, IOTReaderListOptions, UpdateReader } from '../types/reader.type';
|
|
3
3
|
import { FetchDetailResponse, FetchListResponse, FetchResponse } from '../types/fetchResponse.type';
|
|
4
|
-
import { GetIOTPortListQueryParams, GetIOTReaderListOptionsQueryParams, GetIOTReaderListQueryParams, SetGroupIOTBody, SetIOTAliasNameBody, SetIOTPortGroupBody } from '../dto/reader.dto';
|
|
4
|
+
import { GetIOTPortListQueryParams, GetIOTReaderListOptionsQueryParams, GetIOTReaderListQueryParams, SetGroupIOTBody, SetIOTAliasNameBody, SetIOTPortGroupBody, UpdateReaderBody } 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>>>;
|
|
@@ -15,6 +15,7 @@ declare const ReaderServices: {
|
|
|
15
15
|
getIOTPortList: (id: string, params?: GetIOTPortListQueryParams) => Promise<AxiosResponse<FetchListResponse<IOTPortList>>>;
|
|
16
16
|
getIOTDetail: (id: string) => Promise<AxiosResponse<FetchDetailResponse<IOTDetail>>>;
|
|
17
17
|
getIOTCheckManager: () => Promise<AxiosResponse<FetchDetailResponse<IOTCheckManager>>>;
|
|
18
|
+
updateReader: (id: string, body: UpdateReaderBody) => Promise<AxiosResponse<FetchDetailResponse<UpdateReader>>>;
|
|
18
19
|
setIOTPortGroup: (id: string, body: SetIOTPortGroupBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
19
20
|
setGroupIOT: (body: SetGroupIOTBody) => Promise<AxiosResponse<FetchResponse>>;
|
|
20
21
|
getDataById: (id: string) => Promise<AxiosResponse>;
|
|
@@ -116,4 +116,13 @@ export interface IOTDetail {
|
|
|
116
116
|
networkStatus: "Online" | "Offline";
|
|
117
117
|
assetControl: AssetControl;
|
|
118
118
|
}
|
|
119
|
+
export interface UpdateReader {
|
|
120
|
+
name: BaseEntity & {
|
|
121
|
+
nameWithSequence: string;
|
|
122
|
+
};
|
|
123
|
+
group: BaseEntity;
|
|
124
|
+
_id: string;
|
|
125
|
+
serialNumber: string;
|
|
126
|
+
status: string;
|
|
127
|
+
}
|
|
119
128
|
export {};
|