@tagsamurai/fats-api-services 1.0.0-alpha.293 → 1.0.0-alpha.295
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
|
@@ -1870,7 +1870,7 @@ const API$b = createAxiosInstance({
|
|
|
1870
1870
|
prefix: "/iot/v2/reader"
|
|
1871
1871
|
});
|
|
1872
1872
|
const ReaderServices = {
|
|
1873
|
-
|
|
1873
|
+
getIOTReaderList: (params) => {
|
|
1874
1874
|
return API$b.get("/", { params });
|
|
1875
1875
|
},
|
|
1876
1876
|
getDataOptions: (params) => {
|
package/api-services.system.js
CHANGED
|
@@ -1877,7 +1877,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
1877
1877
|
prefix: "/iot/v2/reader"
|
|
1878
1878
|
});
|
|
1879
1879
|
const ReaderServices = exports("ReaderServices", {
|
|
1880
|
-
|
|
1880
|
+
getIOTReaderList: (params) => {
|
|
1881
1881
|
return API$b.get("/", { params });
|
|
1882
1882
|
},
|
|
1883
1883
|
getDataOptions: (params) => {
|
package/package.json
CHANGED
|
@@ -1,3 +1,60 @@
|
|
|
1
|
+
import { BaseFilterQueryParams } from './settingsAssetName.dto';
|
|
2
|
+
export type AssetRepairDetailQuery = Partial<Record<keyof AssetRepairDetailParams, string>>;
|
|
3
|
+
interface BaseEntity {
|
|
4
|
+
_id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
key: number;
|
|
7
|
+
}
|
|
8
|
+
interface NameEntity extends BaseEntity {
|
|
9
|
+
nameWithSequence: string;
|
|
10
|
+
nameNumber: number;
|
|
11
|
+
}
|
|
12
|
+
interface ManagerEntity {
|
|
13
|
+
_id: string;
|
|
14
|
+
key: number;
|
|
15
|
+
fullName: string;
|
|
16
|
+
}
|
|
17
|
+
interface AssetControl {
|
|
18
|
+
active: boolean;
|
|
19
|
+
roleRestricted: boolean;
|
|
20
|
+
inFrom: string | null;
|
|
21
|
+
outTo: string | null;
|
|
22
|
+
}
|
|
23
|
+
interface CRUDPermissions {
|
|
24
|
+
create: boolean;
|
|
25
|
+
view: boolean;
|
|
26
|
+
delete: boolean;
|
|
27
|
+
update: boolean;
|
|
28
|
+
}
|
|
29
|
+
interface HasSystemRoles {
|
|
30
|
+
iotReader: CRUDPermissions;
|
|
31
|
+
}
|
|
32
|
+
export interface IOTReaderList {
|
|
33
|
+
_id: string;
|
|
34
|
+
imageSmall: string | null;
|
|
35
|
+
imageMedium: string | null;
|
|
36
|
+
imageBig: string | null;
|
|
37
|
+
aliasName: string | null;
|
|
38
|
+
name: NameEntity;
|
|
39
|
+
group: BaseEntity;
|
|
40
|
+
brand: BaseEntity;
|
|
41
|
+
model: BaseEntity;
|
|
42
|
+
manager: ManagerEntity;
|
|
43
|
+
status: string;
|
|
44
|
+
networkStatus: string;
|
|
45
|
+
assetControl: AssetControl;
|
|
46
|
+
hasSystemRoles: HasSystemRoles;
|
|
47
|
+
allPort: number;
|
|
48
|
+
activePort: number;
|
|
49
|
+
antennaGroups: BaseEntity[];
|
|
50
|
+
connectedAntenna: string;
|
|
51
|
+
}
|
|
52
|
+
export type AssetRepairDetailParams = {
|
|
53
|
+
createdAt?: number[];
|
|
54
|
+
startedAt?: number[];
|
|
55
|
+
finishedAt?: number[];
|
|
56
|
+
downtime?: number[];
|
|
57
|
+
};
|
|
1
58
|
export interface RepairFilterQueryParams {
|
|
2
59
|
assetName?: string;
|
|
3
60
|
assetBrand?: string;
|
|
@@ -7,13 +64,6 @@ export interface RepairFilterQueryParams {
|
|
|
7
64
|
staff?: string;
|
|
8
65
|
updatedAt?: string;
|
|
9
66
|
}
|
|
10
|
-
export type AssetRepairDetailParams = {
|
|
11
|
-
createdAt?: number[];
|
|
12
|
-
startedAt?: number[];
|
|
13
|
-
finishedAt?: number[];
|
|
14
|
-
downtime?: number[];
|
|
15
|
-
};
|
|
16
|
-
export type AssetRepairDetailQuery = Partial<Record<keyof AssetRepairDetailParams, string>>;
|
|
17
67
|
export interface RepairFilterOptionsQueryParams {
|
|
18
68
|
assetNameOption?: boolean;
|
|
19
69
|
assetBrandOption?: boolean;
|
|
@@ -24,6 +74,22 @@ export interface RepairFilterOptionsQueryParams {
|
|
|
24
74
|
updatedAt?: boolean;
|
|
25
75
|
statusOptions?: boolean;
|
|
26
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;
|
|
90
|
+
}
|
|
27
91
|
export interface ConfirmRepairBody {
|
|
28
92
|
action: 'Back to assigned asset' | 'Back to borrowed asset' | 'Return to available' | 'Request extension' | 'Unassign asset';
|
|
29
93
|
}
|
|
94
|
+
export type GetIOTReaderListQueryParams = Partial<IOTReaderListQueryParams>;
|
|
95
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
2
|
import { ActivityLogOptionParams, ChangeLogOptionParams, ChangeLogParams, OptionParams, QueryParams } from '../types/reader';
|
|
3
|
+
import { GetIOTReaderListQueryParams, IOTReaderList } from '../dto/oldRepairService.dto';
|
|
4
|
+
import { FetchListResponse } from '../types/fetchResponse.type';
|
|
3
5
|
declare const ReaderServices: {
|
|
4
|
-
|
|
6
|
+
getIOTReaderList: (params: GetIOTReaderListQueryParams) => Promise<AxiosResponse<FetchListResponse<IOTReaderList>>>;
|
|
5
7
|
getDataOptions: (params: OptionParams) => Promise<AxiosResponse>;
|
|
6
8
|
getActivityLogData: (params: QueryParams) => Promise<AxiosResponse>;
|
|
7
9
|
getActivityLogOptions: (params: ActivityLogOptionParams) => Promise<AxiosResponse>;
|