@tagsamurai/gsts-api-services 2.0.1-alpha.21 → 2.0.1-alpha.23
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/package.json +1 -1
- package/src/types/hardware.type.d.ts +16 -4
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FetchResponse } from './fetchResponse.type';
|
|
2
2
|
export type HardwareTabType = 'activity-log' | 'handheld-damaged-missing' | 'handheld' | 'iot-reader' | 'iot-antenna' | 'iot-damaged-missing-reader' | 'iot-damaged-missing-antenna';
|
|
3
3
|
export type HardwareDetailTabType = 'All' | 'Tagging' | 'User' | 'Antenna' | 'Changelog';
|
|
4
|
+
export type ModuleType = 'fixedAsset' | 'supplyAsset';
|
|
4
5
|
export interface HardwareDetailDataType {
|
|
5
6
|
_id: string;
|
|
6
7
|
image?: string;
|
|
@@ -16,12 +17,23 @@ export interface HandheldDataType extends HandheldDetailDataType {
|
|
|
16
17
|
export interface HandheldDetailDataType extends HardwareDetailDataType {
|
|
17
18
|
type: string;
|
|
18
19
|
status: string;
|
|
19
|
-
group:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
group: ReaderGroup;
|
|
21
|
+
}
|
|
22
|
+
export interface ReaderGroup {
|
|
23
|
+
fixedAsset?: {
|
|
24
|
+
_id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
};
|
|
27
|
+
supplyAsset?: {
|
|
28
|
+
_id: string;
|
|
29
|
+
name: string;
|
|
23
30
|
};
|
|
24
31
|
}
|
|
32
|
+
export interface ListReaderGroup {
|
|
33
|
+
module: ModuleType;
|
|
34
|
+
_id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
}
|
|
25
37
|
export interface IotGroup {
|
|
26
38
|
fixedAsset?: string;
|
|
27
39
|
supplyAsset?: string;
|