@tagsamurai/fats-api-services 1.0.0-alpha.300 → 1.0.0-alpha.301
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 +1 -1
- package/api-services.system.js +1 -1
- package/package.json +1 -1
- package/src/dto/oldRepairService.dto.d.ts +0 -65
- package/src/dto/reader.dto.d.ts +23 -0
- package/src/services/oldReader.service.d.ts +4 -4
- package/src/types/reader.type.d.ts +114 -0
- package/src/types/reader.d.ts +0 -55
package/api-services.es.js
CHANGED
|
@@ -1872,7 +1872,7 @@ const ReaderServices = {
|
|
|
1872
1872
|
getIOTReaderList: (params) => {
|
|
1873
1873
|
return API$b.get("", { params: queryParamsStringfy(params) });
|
|
1874
1874
|
},
|
|
1875
|
-
|
|
1875
|
+
getIOTReaderListOptions: (params) => {
|
|
1876
1876
|
return API$b.get("/options", { params });
|
|
1877
1877
|
},
|
|
1878
1878
|
getActivityLogData: (params) => {
|
package/api-services.system.js
CHANGED
|
@@ -1879,7 +1879,7 @@ System.register(["axios"], function(exports, module) {
|
|
|
1879
1879
|
getIOTReaderList: (params) => {
|
|
1880
1880
|
return API$b.get("", { params: queryParamsStringfy(params) });
|
|
1881
1881
|
},
|
|
1882
|
-
|
|
1882
|
+
getIOTReaderListOptions: (params) => {
|
|
1883
1883
|
return API$b.get("/options", { params });
|
|
1884
1884
|
},
|
|
1885
1885
|
getActivityLogData: (params) => {
|
package/package.json
CHANGED
|
@@ -1,54 +1,4 @@
|
|
|
1
|
-
import { BaseFilterQueryParams } from './settingsAssetName.dto';
|
|
2
1
|
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
2
|
export type AssetRepairDetailParams = {
|
|
53
3
|
createdAt?: number[];
|
|
54
4
|
startedAt?: number[];
|
|
@@ -74,21 +24,6 @@ export interface RepairFilterOptionsQueryParams {
|
|
|
74
24
|
updatedAt?: boolean;
|
|
75
25
|
statusOptions?: boolean;
|
|
76
26
|
}
|
|
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
|
-
}
|
|
91
27
|
export interface ConfirmRepairBody {
|
|
92
28
|
action: 'Back to assigned asset' | 'Back to borrowed asset' | 'Return to available' | 'Request extension' | 'Unassign asset';
|
|
93
29
|
}
|
|
94
|
-
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseFilterQueryParams } from './settingsAssetName.dto';
|
|
2
|
+
export interface GetIOTReaderListQueryParams extends BaseFilterQueryParams {
|
|
3
|
+
deviceName?: string[];
|
|
4
|
+
group?: number[];
|
|
5
|
+
status?: string[];
|
|
6
|
+
iotReaderId?: string;
|
|
7
|
+
iotReaderIds?: string[];
|
|
8
|
+
brand?: string[];
|
|
9
|
+
model?: string[];
|
|
10
|
+
reportedDate?: number[];
|
|
11
|
+
manager?: string[];
|
|
12
|
+
networkStatus?: string[];
|
|
13
|
+
antennaGroup?: number[];
|
|
14
|
+
assetControl?: string;
|
|
15
|
+
}
|
|
16
|
+
export interface GetIOTReaderListOptionsQueryParams {
|
|
17
|
+
deviceNameOptions?: boolean;
|
|
18
|
+
groupOptions?: boolean;
|
|
19
|
+
brandOptions?: boolean;
|
|
20
|
+
modelOptions?: boolean;
|
|
21
|
+
managerOptions?: boolean;
|
|
22
|
+
antennaGroupOptions?: boolean;
|
|
23
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
|
-
import { ActivityLogOptionParams, ChangeLogOptionParams, ChangeLogParams,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { ActivityLogOptionParams, ChangeLogOptionParams, ChangeLogParams, IOTReaderList, IOTReaderListOptions, QueryParams } from '../types/reader.type';
|
|
3
|
+
import { FetchDetailResponse, FetchListResponse } from '../types/fetchResponse.type';
|
|
4
|
+
import { GetIOTReaderListOptionsQueryParams, GetIOTReaderListQueryParams } 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
|
getActivityLogData: (params: QueryParams) => Promise<AxiosResponse>;
|
|
9
9
|
getActivityLogOptions: (params: ActivityLogOptionParams) => Promise<AxiosResponse>;
|
|
10
10
|
getDataById: (id: string) => Promise<AxiosResponse>;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { Option } from './options.type';
|
|
2
|
+
export type QueryParams = {
|
|
3
|
+
reportedDate?: number[];
|
|
4
|
+
manager?: number[];
|
|
5
|
+
group?: number[];
|
|
6
|
+
qrCode?: string;
|
|
7
|
+
status?: string;
|
|
8
|
+
deviceName?: number[];
|
|
9
|
+
sortOrder?: number;
|
|
10
|
+
sortBy?: string;
|
|
11
|
+
limit?: number;
|
|
12
|
+
page?: number;
|
|
13
|
+
search?: string;
|
|
14
|
+
readerId?: string;
|
|
15
|
+
type?: string;
|
|
16
|
+
activity?: string;
|
|
17
|
+
};
|
|
18
|
+
interface BaseEntity {
|
|
19
|
+
_id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
key: number;
|
|
22
|
+
}
|
|
23
|
+
interface NameEntity extends BaseEntity {
|
|
24
|
+
nameWithSequence: string;
|
|
25
|
+
nameNumber: number;
|
|
26
|
+
}
|
|
27
|
+
interface ManagerEntity {
|
|
28
|
+
_id: string;
|
|
29
|
+
key: number;
|
|
30
|
+
fullName: string;
|
|
31
|
+
}
|
|
32
|
+
interface AssetControl {
|
|
33
|
+
active: boolean;
|
|
34
|
+
roleRestricted: boolean;
|
|
35
|
+
inFrom: string | null;
|
|
36
|
+
outTo: string | null;
|
|
37
|
+
}
|
|
38
|
+
interface CRUDPermissions {
|
|
39
|
+
create: boolean;
|
|
40
|
+
view: boolean;
|
|
41
|
+
delete: boolean;
|
|
42
|
+
update: boolean;
|
|
43
|
+
}
|
|
44
|
+
interface HasSystemRoles {
|
|
45
|
+
iotReader: CRUDPermissions;
|
|
46
|
+
}
|
|
47
|
+
export type OptionParams = {
|
|
48
|
+
status?: string;
|
|
49
|
+
deviceNameOptions?: string;
|
|
50
|
+
activityOptions?: string;
|
|
51
|
+
managerOptions?: string;
|
|
52
|
+
assetNameOptions?: string;
|
|
53
|
+
};
|
|
54
|
+
export interface IOTReaderList {
|
|
55
|
+
_id: string;
|
|
56
|
+
imageSmall: string | null;
|
|
57
|
+
imageMedium: string | null;
|
|
58
|
+
imageBig: string | null;
|
|
59
|
+
aliasName: string | null;
|
|
60
|
+
name: NameEntity;
|
|
61
|
+
group: BaseEntity;
|
|
62
|
+
brand: BaseEntity;
|
|
63
|
+
model: BaseEntity;
|
|
64
|
+
manager: ManagerEntity;
|
|
65
|
+
status: string;
|
|
66
|
+
networkStatus: string;
|
|
67
|
+
assetControl: AssetControl;
|
|
68
|
+
hasSystemRoles: HasSystemRoles;
|
|
69
|
+
allPort: number;
|
|
70
|
+
activePort: number;
|
|
71
|
+
antennaGroups: BaseEntity[];
|
|
72
|
+
connectedAntenna: string;
|
|
73
|
+
}
|
|
74
|
+
export type ActivityLogOptionParams = {
|
|
75
|
+
foundGroupOptions?: string;
|
|
76
|
+
groupOptions?: string;
|
|
77
|
+
deviceNameOptions?: string;
|
|
78
|
+
activityOptions?: string;
|
|
79
|
+
managerOptions?: string;
|
|
80
|
+
assetNameOptions?: string;
|
|
81
|
+
borrowerOptions?: string;
|
|
82
|
+
conditionOptions?: string;
|
|
83
|
+
auditTypeOptions?: string;
|
|
84
|
+
assignedToOptions?: string;
|
|
85
|
+
originGroupOptions?: string;
|
|
86
|
+
destinationGroupOptions?: string;
|
|
87
|
+
type?: string;
|
|
88
|
+
readerId?: string;
|
|
89
|
+
activity?: string;
|
|
90
|
+
};
|
|
91
|
+
export type ChangeLogParams = {
|
|
92
|
+
id: string;
|
|
93
|
+
manager?: string[];
|
|
94
|
+
activity?: string[];
|
|
95
|
+
createdAt?: string[];
|
|
96
|
+
sortOrder?: number;
|
|
97
|
+
sortBy?: string;
|
|
98
|
+
limit?: number;
|
|
99
|
+
page?: number;
|
|
100
|
+
search?: string;
|
|
101
|
+
};
|
|
102
|
+
export type ChangeLogOptionParams = {
|
|
103
|
+
id: string;
|
|
104
|
+
managerOptions?: boolean;
|
|
105
|
+
};
|
|
106
|
+
export interface IOTReaderListOptions {
|
|
107
|
+
deviceNameOptions: Option[];
|
|
108
|
+
groupOptions: Option[];
|
|
109
|
+
brandOptions: Option[];
|
|
110
|
+
modelOptions: Option[];
|
|
111
|
+
managerOptions: Option[];
|
|
112
|
+
antennaGroupOptions: Option[];
|
|
113
|
+
}
|
|
114
|
+
export {};
|
package/src/types/reader.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
export type QueryParams = {
|
|
2
|
-
reportedDate?: number[];
|
|
3
|
-
manager?: number[];
|
|
4
|
-
group?: number[];
|
|
5
|
-
qrCode?: string;
|
|
6
|
-
status?: string;
|
|
7
|
-
deviceName?: number[];
|
|
8
|
-
sortOrder?: number;
|
|
9
|
-
sortBy?: string;
|
|
10
|
-
limit?: number;
|
|
11
|
-
page?: number;
|
|
12
|
-
search?: string;
|
|
13
|
-
readerId?: string;
|
|
14
|
-
type?: string;
|
|
15
|
-
activity?: string;
|
|
16
|
-
};
|
|
17
|
-
export type OptionParams = {
|
|
18
|
-
status?: string;
|
|
19
|
-
deviceNameOptions?: string;
|
|
20
|
-
activityOptions?: string;
|
|
21
|
-
managerOptions?: string;
|
|
22
|
-
assetNameOptions?: string;
|
|
23
|
-
};
|
|
24
|
-
export type ActivityLogOptionParams = {
|
|
25
|
-
foundGroupOptions?: string;
|
|
26
|
-
groupOptions?: string;
|
|
27
|
-
deviceNameOptions?: string;
|
|
28
|
-
activityOptions?: string;
|
|
29
|
-
managerOptions?: string;
|
|
30
|
-
assetNameOptions?: string;
|
|
31
|
-
borrowerOptions?: string;
|
|
32
|
-
conditionOptions?: string;
|
|
33
|
-
auditTypeOptions?: string;
|
|
34
|
-
assignedToOptions?: string;
|
|
35
|
-
originGroupOptions?: string;
|
|
36
|
-
destinationGroupOptions?: string;
|
|
37
|
-
type?: string;
|
|
38
|
-
readerId?: string;
|
|
39
|
-
activity?: string;
|
|
40
|
-
};
|
|
41
|
-
export type ChangeLogParams = {
|
|
42
|
-
id: string;
|
|
43
|
-
manager?: string[];
|
|
44
|
-
activity?: string[];
|
|
45
|
-
createdAt?: string[];
|
|
46
|
-
sortOrder?: number;
|
|
47
|
-
sortBy?: string;
|
|
48
|
-
limit?: number;
|
|
49
|
-
page?: number;
|
|
50
|
-
search?: string;
|
|
51
|
-
};
|
|
52
|
-
export type ChangeLogOptionParams = {
|
|
53
|
-
id: string;
|
|
54
|
-
managerOptions?: boolean;
|
|
55
|
-
};
|