@m4l/gclick-realtime 1.0.4 → 1.1.0
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/contracts/constants.d.ts +2 -1
- package/contracts/constants.d.ts.map +1 -1
- package/contracts/constants.js +1 -1
- package/contracts/deviceData.d.ts +30 -20
- package/contracts/deviceData.d.ts.map +1 -1
- package/contracts/deviceDetail.d.ts +71 -0
- package/contracts/deviceDetail.d.ts.map +1 -0
- package/contracts/index.d.ts +3 -2
- package/contracts/index.d.ts.map +1 -1
- package/contracts/vpts.d.ts +84 -27
- package/contracts/vpts.d.ts.map +1 -1
- package/dummy/catalogs/baseDeviceTemplate.d.ts +1 -1
- package/dummy/catalogs/baseDeviceTemplate.d.ts.map +1 -1
- package/dummy/catalogs/baseDeviceTemplate.js +14 -10
- package/dummy/catalogs/blueprints.d.ts +8 -8
- package/dummy/catalogs/blueprints.js +40 -40
- package/dummy/catalogs/plans.d.ts +14 -0
- package/dummy/catalogs/plans.d.ts.map +1 -1
- package/dummy/catalogs/plans.js +34 -6
- package/dummy/catalogs/scenarios.d.ts +73 -0
- package/dummy/catalogs/scenarios.d.ts.map +1 -1
- package/dummy/catalogs/scenarios.js +80 -0
- package/dummy/runtime/dummy.d.ts.map +1 -1
- package/dummy/runtime/dummy.js +27 -24
- package/dummy/runtime/simulation.d.ts.map +1 -1
- package/dummy/runtime/simulation.js +349 -325
- package/dummy/shared/types.d.ts +6 -1
- package/dummy/shared/types.d.ts.map +1 -1
- package/fixtures/constants.d.ts +11 -2
- package/fixtures/constants.d.ts.map +1 -1
- package/fixtures/constants.js +15 -2
- package/fixtures/scenarios.d.ts +36 -0
- package/fixtures/scenarios.d.ts.map +1 -1
- package/fixtures/scenarios.js +36 -0
- package/fixtures/types.d.ts +2 -1
- package/fixtures/types.d.ts.map +1 -1
- package/fixtures/types.js +1 -1
- package/package.json +1 -1
- package/payload/getVptValueWithGuard.js +1 -1
- package/web/host/hostRuntime.d.ts.map +1 -1
- package/web/host/hostRuntime.js +13 -13
package/contracts/constants.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick-realtime/src/contracts/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,YAAY,CAAC;AAExC,oBAAY,oBAAoB;
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick-realtime/src/contracts/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,YAAY,CAAC;AAExC,oBAAY,oBAAoB;IAE9B,GAAG,IAAA;IACH,MAAM,IAAA;IACN,OAAO,IAAA;IACP,cAAc,IAAA;IACd,sBAAsB,IAAA;IACtB,MAAM,IAAA;IACN,WAAW,IAAA;IACX,QAAQ,IAAA;IAER,aAAa,MAAK;CACnB;AAED,oBAAY,cAAc;IACxB,QAAQ,IAAA;IACR,UAAU,IAAA;IACV,QAAQ,IAAA;CACT;AAED,oBAAY,YAAY;IACtB,EAAE,IAAA;IACF,GAAG,IAAA;IACH,IAAI,IAAA;CACL;AAED,oBAAY,eAAe;IACzB,QAAQ,IAAA;IACR,MAAM,IAAA;IACN,OAAO,IAAA;CACR"}
|
package/contracts/constants.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const l = "#1E96DC";
|
|
2
|
-
var p = /* @__PURE__ */ ((e) => (e[e.off = 0] = "off", e[e.moving = 1] = "moving", e[e.stopped = 2] = "stopped", e[e.stoppedRalenti = 3] = "stoppedRalenti", e[e.stoppedExcesiveRalenti = 4] = "stoppedExcesiveRalenti", e[e.towing = 5] = "towing", e[e.powerSaving = 6] = "powerSaving", e[e.maxSpeed = 7] = "maxSpeed", e))(p || {}), r = /* @__PURE__ */ ((e) => (e[e.reliable = 0] = "reliable", e[e.acceptable = 1] = "acceptable", e[e.noSignal = 2] = "noSignal", e))(r || {}), v = /* @__PURE__ */ ((e) => (e[e.ok = 0] = "ok", e[e.low = 1] = "low", e[e.lost = 2] = "lost", e))(v || {}), c = /* @__PURE__ */ ((e) => (e[e.inactive = 0] = "inactive", e[e.active = 1] = "active", e[e.retired = 2] = "retired", e))(c || {});
|
|
2
|
+
var p = /* @__PURE__ */ ((e) => (e[e.off = 0] = "off", e[e.moving = 1] = "moving", e[e.stopped = 2] = "stopped", e[e.stoppedRalenti = 3] = "stoppedRalenti", e[e.stoppedExcesiveRalenti = 4] = "stoppedExcesiveRalenti", e[e.towing = 5] = "towing", e[e.powerSaving = 6] = "powerSaving", e[e.maxSpeed = 7] = "maxSpeed", e[e.notDetectable = 250] = "notDetectable", e))(p || {}), r = /* @__PURE__ */ ((e) => (e[e.reliable = 0] = "reliable", e[e.acceptable = 1] = "acceptable", e[e.noSignal = 2] = "noSignal", e))(r || {}), v = /* @__PURE__ */ ((e) => (e[e.ok = 0] = "ok", e[e.low = 1] = "low", e[e.lost = 2] = "lost", e))(v || {}), c = /* @__PURE__ */ ((e) => (e[e.inactive = 0] = "inactive", e[e.active = 1] = "active", e[e.retired = 2] = "retired", e))(c || {});
|
|
3
3
|
export {
|
|
4
4
|
v as ADCPowerEnum,
|
|
5
5
|
c as AdminStatusEnum,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GNSSEnumMotionStatus, GNSSEnumSignal } from './constants';
|
|
2
2
|
import { HexColor, Maybe, OperationalRoles, PropertyValue, PropertyValueWithTrack } from './general';
|
|
3
|
-
import { VPTMultiple, VPTCurrentADCPower, VPTCurrentDIX, VPTCurrentDoX, VPTCurrentIgnition, VPTCurrentModem, VPTCurrentOWTempX, VPTSettingsDIX, VPTSettingsDoX, VPTSettingsModem } from './vpts';
|
|
3
|
+
import { VPTMultiple, VPTCurrentADCPower, VPTCurrentDIX, VPTCurrentDoX, VPTCurrentIgnition, VPTCurrentModem, VPTCurrentNetwork, VPTCurrentOWTempX, VPTSettingsADCPower, VPTSettingsDIX, VPTSettingsDoX, VPTSettingsGnss, VPTSettingsModem, VPTSettingsPwrSave, VPTSettingsTracking } from './vpts';
|
|
4
4
|
/**
|
|
5
5
|
* Geofence metadata currently attached to one live device payload.
|
|
6
6
|
*/
|
|
@@ -32,6 +32,16 @@ export type DeviceCurrentVPTGnss = {
|
|
|
32
32
|
geofences?: DeviceDataGeofence[];
|
|
33
33
|
pois?: DeviceDataPOI[];
|
|
34
34
|
};
|
|
35
|
+
export type DeviceCurrentVpts = {
|
|
36
|
+
vptGnss?: DeviceCurrentVPTGnss;
|
|
37
|
+
vptDiX?: VPTMultiple<VPTCurrentDIX>;
|
|
38
|
+
vptDoX?: VPTMultiple<VPTCurrentDoX>;
|
|
39
|
+
vptIgnition?: VPTCurrentIgnition;
|
|
40
|
+
vptOWTempX?: VPTMultiple<VPTCurrentOWTempX>;
|
|
41
|
+
vptModem?: VPTCurrentModem;
|
|
42
|
+
vptNetwork?: VPTCurrentNetwork;
|
|
43
|
+
vptADCPower?: VPTCurrentADCPower;
|
|
44
|
+
};
|
|
35
45
|
/**
|
|
36
46
|
* Live telemetry payload received from one device.
|
|
37
47
|
*/
|
|
@@ -43,15 +53,7 @@ export type DeviceCurrent = {
|
|
|
43
53
|
};
|
|
44
54
|
};
|
|
45
55
|
};
|
|
46
|
-
vpts?:
|
|
47
|
-
vptGnss?: DeviceCurrentVPTGnss;
|
|
48
|
-
vptDiX?: VPTMultiple<VPTCurrentDIX>;
|
|
49
|
-
vptDoX?: VPTMultiple<VPTCurrentDoX>;
|
|
50
|
-
vptIgnition?: VPTCurrentIgnition;
|
|
51
|
-
vptOWTempX?: VPTMultiple<VPTCurrentOWTempX>;
|
|
52
|
-
vptModem?: VPTCurrentModem;
|
|
53
|
-
vptADCPower?: VPTCurrentADCPower;
|
|
54
|
-
};
|
|
56
|
+
vpts?: DeviceCurrentVpts;
|
|
55
57
|
};
|
|
56
58
|
/**
|
|
57
59
|
* Legacy settings-level group payload still present while consumers migrate to root `department`.
|
|
@@ -77,12 +79,19 @@ export type Property = {
|
|
|
77
79
|
export type Properties = {
|
|
78
80
|
[key: string]: Property;
|
|
79
81
|
};
|
|
82
|
+
export type DeviceSettingsVpts = {
|
|
83
|
+
vptModem?: VPTSettingsModem;
|
|
84
|
+
vptGnss?: VPTSettingsGnss;
|
|
85
|
+
vptDiX?: VPTMultiple<VPTSettingsDIX>;
|
|
86
|
+
vptDoX?: VPTMultiple<VPTSettingsDoX>;
|
|
87
|
+
vptTracking?: VPTSettingsTracking;
|
|
88
|
+
vptPwrSave?: VPTSettingsPwrSave;
|
|
89
|
+
vptADCPower?: VPTSettingsADCPower;
|
|
90
|
+
};
|
|
80
91
|
/**
|
|
81
92
|
* Device settings received from the linked resource configuration.
|
|
82
93
|
*/
|
|
83
94
|
export type DeviceSettings = {
|
|
84
|
-
name: string;
|
|
85
|
-
alias?: string;
|
|
86
95
|
inTechinalOrder: PropertyValue<boolean>;
|
|
87
96
|
adminStatus: PropertyValue<string>;
|
|
88
97
|
active: boolean;
|
|
@@ -94,17 +103,15 @@ export type DeviceSettings = {
|
|
|
94
103
|
group?: Maybe<SettingsGroup>;
|
|
95
104
|
iconBgColor?: HexColor;
|
|
96
105
|
properties?: Properties;
|
|
97
|
-
vpts?:
|
|
98
|
-
vptModem?: VPTSettingsModem;
|
|
99
|
-
vptDix?: VPTMultiple<VPTSettingsDIX>;
|
|
100
|
-
vptDoX?: VPTMultiple<VPTSettingsDoX>;
|
|
101
|
-
};
|
|
106
|
+
vpts?: DeviceSettingsVpts;
|
|
102
107
|
};
|
|
103
108
|
/**
|
|
104
109
|
* Device-icon metadata used by map-oriented presentation layers.
|
|
105
110
|
*/
|
|
106
111
|
export type DeviceIcon = {
|
|
107
|
-
|
|
112
|
+
/**
|
|
113
|
+
* Shared icon id used to resolve the concrete image or icon asset.
|
|
114
|
+
*/
|
|
108
115
|
iconId: string;
|
|
109
116
|
};
|
|
110
117
|
/**
|
|
@@ -112,11 +119,14 @@ export type DeviceIcon = {
|
|
|
112
119
|
*/
|
|
113
120
|
export type DeviceDataType = {
|
|
114
121
|
resourceSerialId: number;
|
|
122
|
+
name: string;
|
|
123
|
+
alias?: string;
|
|
115
124
|
/**
|
|
116
125
|
* Optional icon identity payload used to resolve the device marker artwork.
|
|
117
126
|
*
|
|
118
|
-
* The
|
|
119
|
-
* `color`, not from the
|
|
127
|
+
* The shared contract intentionally exposes the concrete icon asset id
|
|
128
|
+
* through `iconId`. Color treatment must come from `color`, not from the
|
|
129
|
+
* icon id itself.
|
|
120
130
|
*/
|
|
121
131
|
deviceIcon?: DeviceIcon;
|
|
122
132
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceData.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick-realtime/src/contracts/deviceData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EACL,QAAQ,EACR,KAAK,EACL,gBAAgB,EAChB,aAAa,EACb,sBAAsB,EACvB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,gBAAgB,
|
|
1
|
+
{"version":3,"file":"deviceData.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick-realtime/src/contracts/deviceData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EACL,QAAQ,EACR,KAAK,EACL,gBAAgB,EAChB,aAAa,EACb,sBAAsB,EACvB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,E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C;KAC3C,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1C;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;CAC5D,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { DeviceCurrent, DeviceCurrentVpts, DeviceDataType, DeviceDepartment, DeviceIcon, DeviceSettingsVpts } from './deviceData';
|
|
2
|
+
import { Maybe } from './general';
|
|
3
|
+
import { VPTMultiple, VPTSettingsDIX, VPTSettingsDoX, VPTSettingsModem } from './vpts';
|
|
4
|
+
type DeviceCurrentReportProfiles = NonNullable<DeviceCurrent['reportProfiles']>;
|
|
5
|
+
type DeviceCurrentVptsPayload = NonNullable<DeviceCurrentVpts>;
|
|
6
|
+
type DeviceCurrentModemPayload = NonNullable<DeviceCurrentVptsPayload['vptModem']>;
|
|
7
|
+
/**
|
|
8
|
+
* Backend status payload later projected into `settings.adminStatus`.
|
|
9
|
+
*/
|
|
10
|
+
export type DeviceDetailStatus = {
|
|
11
|
+
id?: Maybe<string>;
|
|
12
|
+
name?: Maybe<string>;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Camelized `current` subset returned by `GET devices/:id`.
|
|
16
|
+
*/
|
|
17
|
+
export type DeviceDetailCurrent = Partial<DeviceCurrent> & {
|
|
18
|
+
reportProfiles?: Maybe<Record<string, unknown> & DeviceCurrentReportProfiles & {
|
|
19
|
+
generalEvents?: Maybe<{
|
|
20
|
+
lastEvent?: Maybe<{
|
|
21
|
+
date?: Maybe<string>;
|
|
22
|
+
id?: Maybe<number>;
|
|
23
|
+
}>;
|
|
24
|
+
}>;
|
|
25
|
+
systemEvents?: Maybe<{
|
|
26
|
+
lastEvent?: Maybe<{
|
|
27
|
+
date?: Maybe<string>;
|
|
28
|
+
id?: Maybe<number>;
|
|
29
|
+
}>;
|
|
30
|
+
}>;
|
|
31
|
+
}>;
|
|
32
|
+
vpts?: Maybe<Record<string, unknown> & Partial<DeviceCurrentVptsPayload> & {
|
|
33
|
+
vptModem?: Maybe<Record<string, unknown> & Partial<DeviceCurrentModemPayload> & {
|
|
34
|
+
modemRssi?: Maybe<number>;
|
|
35
|
+
}>;
|
|
36
|
+
}>;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Camelized `settings` subset returned by `GET devices/:id`.
|
|
40
|
+
*/
|
|
41
|
+
export type DeviceDetailSettings = {
|
|
42
|
+
vpts?: Maybe<{
|
|
43
|
+
[key: string]: unknown;
|
|
44
|
+
vptDiX?: Maybe<VPTMultiple<VPTSettingsDIX>>;
|
|
45
|
+
vptDoX?: Maybe<VPTMultiple<VPTSettingsDoX>>;
|
|
46
|
+
vptModem?: Maybe<VPTSettingsModem>;
|
|
47
|
+
} & Partial<DeviceSettingsVpts>>;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Camelized device-detail payload returned by the backend detail endpoint.
|
|
51
|
+
*/
|
|
52
|
+
export type DeviceDetailResponseData = {
|
|
53
|
+
alias?: Maybe<DeviceDataType['alias']>;
|
|
54
|
+
current?: Maybe<DeviceDetailCurrent>;
|
|
55
|
+
department?: Maybe<DeviceDepartment>;
|
|
56
|
+
deviceIcon?: Maybe<DeviceIcon>;
|
|
57
|
+
id?: Maybe<number>;
|
|
58
|
+
name?: Maybe<DeviceDataType['name']>;
|
|
59
|
+
serialId?: Maybe<string>;
|
|
60
|
+
settings?: Maybe<DeviceDetailSettings>;
|
|
61
|
+
status?: Maybe<DeviceDetailStatus>;
|
|
62
|
+
updatedAt?: Maybe<string>;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Device-detail response envelope produced by `useNetwork(...responseToCamelCase)`.
|
|
66
|
+
*/
|
|
67
|
+
export type DeviceDetailResponse = {
|
|
68
|
+
data?: Maybe<DeviceDetailResponseData>;
|
|
69
|
+
} | DeviceDetailResponseData;
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=deviceDetail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviceDetail.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick-realtime/src/contracts/deviceDetail.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EACnB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EACV,WAAW,EACX,cAAc,EACd,cAAc,EACd,gBAAgB,EACjB,MAAM,QAAQ,CAAC;AAEhB,KAAK,2BAA2B,GAAG,WAAW,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAAC;AAChF,KAAK,wBAAwB,GAAG,WAAW,CAAC,iBAAiB,CAAC,CAAC;AAC/D,KAAK,yBAAyB,GAAG,WAAW,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC,CAAC;AAEnF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,GAAG;IACzD,cAAc,CAAC,EAAE,KAAK,CACpB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,2BAA2B,GAAG;QACtD,aAAa,CAAC,EAAE,KAAK,CAAC;YACpB,SAAS,CAAC,EAAE,KAAK,CAAC;gBAChB,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;gBACrB,EAAE,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;aACpB,CAAC,CAAC;SACJ,CAAC,CAAC;QACH,YAAY,CAAC,EAAE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AAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACnB,IAAI,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACrC,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzB,QAAQ,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;IACvC,MAAM,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;IACnC,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B;IACA,IAAI,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;CACxC,GACC,wBAAwB,CAAC"}
|
package/contracts/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export type { DeviceCurrent, DeviceCurrentVPTGnss, DeviceDataType, DeviceDepartment, DeviceSettings, SettingsGroup, } from './deviceData';
|
|
1
|
+
export type { DeviceCurrent, DeviceCurrentVpts, DeviceCurrentVPTGnss, DeviceDataType, DeviceDepartment, DeviceSettings, DeviceSettingsVpts, SettingsGroup, } from './deviceData';
|
|
2
|
+
export type { DeviceDetailCurrent, DeviceDetailResponse, DeviceDetailResponseData, DeviceDetailSettings, DeviceDetailStatus, } from './deviceDetail';
|
|
2
3
|
export { ADCPowerEnum, AdminStatusEnum, BASE_SVG_COLOR, GNSSEnumMotionStatus, GNSSEnumSignal, } from './constants';
|
|
3
4
|
export type { GNSSSatus, HexColor, Maybe, OperationalRole, OperationalRoles, PropertyValue, PropertyValueWithTrack, } from './general';
|
|
4
|
-
export type { VPTCurrentADCPower, VPTCurrentDIX, VPTCurrentDoX, VPTCurrentIgnition, VPTCurrentModem, VPTCurrentOWTempX, VPTMultiple, VPTSettingsAVX, VPTSettingsDIX, VPTSettingsDIXS, VPTSettingsDoX, VPTSettingsModem, } from './vpts';
|
|
5
|
+
export type { VPTCurrentADCPower, VPTCurrentDIX, VPTCurrentDoX, VPTCurrentIgnition, VPTCurrentModem, VPTCurrentNetwork, VPTCurrentNetworkEvent, VPTCurrentOWTempX, VPTMultiple, VPTSettingsAVX, VPTSettingsADCPower, VPTSettingsDIX, VPTSettingsDIXS, VPTSettingsDoX, VPTSettingsGnss, VPTSettingsModem, VPTSettingsPwrSave, VPTSettingsTracking, } from './vpts';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
package/contracts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick-realtime/src/contracts/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,aAAa,GACd,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick-realtime/src/contracts/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,iBAAiB,EACjB,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,aAAa,GACd,MAAM,cAAc,CAAC;AACtB,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AAExB,OAAO,EACL,YAAY,EACZ,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,cAAc,GACf,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,SAAS,EACT,QAAQ,EACR,KAAK,EACL,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,sBAAsB,GACvB,MAAM,WAAW,CAAC;AAEnB,YAAY,EACV,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACtB,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,QAAQ,CAAC"}
|
package/contracts/vpts.d.ts
CHANGED
|
@@ -4,42 +4,46 @@ export type VPTMultiple<T> = {
|
|
|
4
4
|
[key: string]: T;
|
|
5
5
|
};
|
|
6
6
|
export type VPTCurrentOWTempX = {
|
|
7
|
-
owTempXStatus
|
|
8
|
-
owTempXTemp
|
|
7
|
+
owTempXStatus?: PropertyValueWithTrack<boolean>;
|
|
8
|
+
owTempXTemp?: PropertyValueWithTrack<number>;
|
|
9
9
|
};
|
|
10
10
|
export type VPTCurrentDIX = {
|
|
11
|
-
diXValue
|
|
12
|
-
diXStatus
|
|
11
|
+
diXValue?: PropertyValueWithTrack<boolean>;
|
|
12
|
+
diXStatus?: PropertyValueWithTrack<boolean>;
|
|
13
13
|
};
|
|
14
14
|
export type VPTCurrentDoX = {
|
|
15
|
-
diXValue
|
|
15
|
+
diXValue?: PropertyValueWithTrack<boolean>;
|
|
16
16
|
};
|
|
17
17
|
export type VPTCurrentIgnition = {
|
|
18
|
-
ignitionValue
|
|
18
|
+
ignitionValue?: PropertyValueWithTrack<boolean>;
|
|
19
19
|
};
|
|
20
20
|
export type VPTSettingsDIX = {
|
|
21
|
-
name
|
|
21
|
+
name?: string;
|
|
22
22
|
alias?: string;
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
diXOpenTime?: number;
|
|
24
|
+
diXAlarmTime?: number;
|
|
25
|
+
diXCloseTime?: number;
|
|
26
|
+
diXRecoveryTime?: number;
|
|
27
|
+
pRdOpenTitle?: string;
|
|
28
|
+
pRdCloseTitle?: string;
|
|
25
29
|
/**
|
|
26
30
|
* Icon ids used by the icons endpoint.
|
|
27
31
|
*/
|
|
28
|
-
pIconId
|
|
29
|
-
pIconOpenId
|
|
30
|
-
pIconCloseId
|
|
32
|
+
pIconId?: string;
|
|
33
|
+
pIconOpenId?: string;
|
|
34
|
+
pIconCloseId?: string;
|
|
31
35
|
};
|
|
32
36
|
export type VPTSettingsDoX = {
|
|
33
|
-
name
|
|
37
|
+
name?: string;
|
|
34
38
|
alias?: string;
|
|
35
|
-
pRdOpenTitle
|
|
36
|
-
pRdCloseTitle
|
|
39
|
+
pRdOpenTitle?: string;
|
|
40
|
+
pRdCloseTitle?: string;
|
|
37
41
|
/**
|
|
38
42
|
* Icon ids used by the icons endpoint.
|
|
39
43
|
*/
|
|
40
|
-
pIconId
|
|
41
|
-
pIconOpenId
|
|
42
|
-
pIconCloseId
|
|
44
|
+
pIconId?: string;
|
|
45
|
+
pIconOpenId?: string;
|
|
46
|
+
pIconCloseId?: string;
|
|
43
47
|
};
|
|
44
48
|
export type VPTSettingsAVX = {
|
|
45
49
|
name: string;
|
|
@@ -53,19 +57,72 @@ export type VPTSettingsDIXS = {
|
|
|
53
57
|
[key: number]: VPTSettingsDIX;
|
|
54
58
|
};
|
|
55
59
|
export type VPTCurrentADCPower = {
|
|
56
|
-
mainStatus
|
|
57
|
-
mainVolt
|
|
58
|
-
backupVolt
|
|
59
|
-
backupStatus
|
|
60
|
-
backupChargeLevel
|
|
60
|
+
mainStatus?: PropertyValue<ADCPowerEnum>;
|
|
61
|
+
mainVolt?: PropertyValue<number>;
|
|
62
|
+
backupVolt?: PropertyValue<number>;
|
|
63
|
+
backupStatus?: PropertyValue<ADCPowerEnum>;
|
|
64
|
+
backupChargeLevel?: PropertyValue<number>;
|
|
61
65
|
};
|
|
62
66
|
export type VPTCurrentModem = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
modemCsq: PropertyValue<number>;
|
|
66
|
-
callActive: PropertyValue<boolean>;
|
|
67
|
+
modemCsq?: PropertyValue<number>;
|
|
68
|
+
callActive?: PropertyValue<boolean>;
|
|
67
69
|
};
|
|
68
70
|
export type VPTSettingsModem = {
|
|
69
71
|
modemLineNumber?: string;
|
|
70
72
|
};
|
|
73
|
+
export type VPTCurrentNetworkEvent = {
|
|
74
|
+
date?: string;
|
|
75
|
+
id?: number;
|
|
76
|
+
};
|
|
77
|
+
export type VPTCurrentNetwork = {
|
|
78
|
+
ipV4?: string;
|
|
79
|
+
lastConnection?: string;
|
|
80
|
+
lastEvent?: VPTCurrentNetworkEvent;
|
|
81
|
+
port?: number;
|
|
82
|
+
portType?: string;
|
|
83
|
+
};
|
|
84
|
+
export type VPTSettingsGnss = {
|
|
85
|
+
gnssHasRawData?: boolean;
|
|
86
|
+
};
|
|
87
|
+
export type VPTSettingsTracking = {
|
|
88
|
+
trackingPeriodicRepRunPeriod?: number;
|
|
89
|
+
trackingPeriodicRepSleepPeriod?: number;
|
|
90
|
+
trackingPeriodicRepSchedulerPeriod?: number;
|
|
91
|
+
trackingPeriodicRepDeepSleepPeriod?: number;
|
|
92
|
+
trackingPeriodicRepBatteryLowPeriod?: number;
|
|
93
|
+
trackingPeriodicRepHyperSleepPeriod?: number;
|
|
94
|
+
trackingPeriodicRepBatteryLossPeriod?: number;
|
|
95
|
+
};
|
|
96
|
+
export type VPTSettingsADCPower = {
|
|
97
|
+
adcPowerLossBatt12V?: number;
|
|
98
|
+
adcPowerLossBatt24V?: number;
|
|
99
|
+
adcPowerBatteryEngLevel?: number;
|
|
100
|
+
adcPowerLowBackupBattery?: number;
|
|
101
|
+
adcPowerLowerMaxBatt12V?: number;
|
|
102
|
+
adcPowerLowerMaxBatt24V?: number;
|
|
103
|
+
adcPowerLowerMinBatt12V?: number;
|
|
104
|
+
adcPowerLowerMinBatt24V?: number;
|
|
105
|
+
adcPowerEngOnMaxBatt12V?: number;
|
|
106
|
+
adcPowerEngOnMaxBatt24V?: number;
|
|
107
|
+
adcPowerEngOnMinBatt12V?: number;
|
|
108
|
+
adcPowerEngOnMinBatt24V?: number;
|
|
109
|
+
adcPowerNormalMaxBatt12V?: number;
|
|
110
|
+
adcPowerNormalMaxBatt24V?: number;
|
|
111
|
+
adcPowerNormalMinBatt12V?: number;
|
|
112
|
+
adcPowerNormalMinBatt24V?: number;
|
|
113
|
+
adcPowerMainLostAlarmTime?: number;
|
|
114
|
+
adcPowerBackupLowAlarmTime?: number;
|
|
115
|
+
adcPowerThreshold24VBatterySel?: number;
|
|
116
|
+
};
|
|
117
|
+
type VPTSettingsPwrSaveModeControlFields = Partial<Record<`pwrSaveModeControl${string}`, string>>;
|
|
118
|
+
type VPTSettingsPwrSaveWakeUpControlFields = Partial<Record<`pwrSaveWakeUpControl${string}`, boolean>>;
|
|
119
|
+
export type VPTSettingsPwrSave = {
|
|
120
|
+
pwrSavePanicIdParam?: number;
|
|
121
|
+
pwrSaveTimeEnterSleep?: number;
|
|
122
|
+
pwrSaveLapseClrWdtSleep?: number;
|
|
123
|
+
pwrSaveTimeEnterScheduler?: number;
|
|
124
|
+
pwrSaveTimeEnterDeepSleep?: number;
|
|
125
|
+
pwrSaveTimeEnterHyperSleep?: number;
|
|
126
|
+
} & VPTSettingsPwrSaveModeControlFields & VPTSettingsPwrSaveWakeUpControlFields;
|
|
127
|
+
export {};
|
|
71
128
|
//# sourceMappingURL=vpts.d.ts.map
|
package/contracts/vpts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vpts.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick-realtime/src/contracts/vpts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAElE,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC3B,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,aAAa,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"vpts.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick-realtime/src/contracts/vpts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,E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,CAAC;IAClC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,8BAA8B,CAAC,EAAE,MAAM,CAAC;CACzC,CAAC;AAEF,KAAK,mCAAmC,GAAG,OAAO,CAAC,MAAM,CAAC,qBAAqB,MAAM,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;AAClG,KAAK,qCAAqC,GAAG,OAAO,CAAC,MAAM,CAAC,uBAAuB,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC;AAEvG,MAAM,MAAM,kBAAkB,GAAG;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACrC,GAAG,mCAAmC,GAAG,qCAAqC,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { DeviceDataType } from '../../contracts/index';
|
|
|
2
2
|
/**
|
|
3
3
|
* Reference fallback icon id reused across the deterministic dummy catalogs.
|
|
4
4
|
*/
|
|
5
|
-
export declare const REAL_TIME_DUMMY_DEFAULT_ICON_ID = "
|
|
5
|
+
export declare const REAL_TIME_DUMMY_DEFAULT_ICON_ID = "i_common_devices_type_light_truck";
|
|
6
6
|
/**
|
|
7
7
|
* Base device template shared by the deterministic dummy simulator.
|
|
8
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baseDeviceTemplate.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/dummy/catalogs/baseDeviceTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAU5D;;GAEG;AACH,eAAO,MAAM,+BAA+B,
|
|
1
|
+
{"version":3,"file":"baseDeviceTemplate.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick-realtime/src/dummy/catalogs/baseDeviceTemplate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAU5D;;GAEG;AACH,eAAO,MAAM,+BAA+B,sCAAkB,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,oCAAoC,EAAE,IAAI,CAAC,cAAc,EAAE,kBAAkB,CA6HzF,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ADCPowerEnum as n, GNSSEnumSignal as a, GNSSEnumMotionStatus as i } from "../../contracts/constants.js";
|
|
2
|
-
const e = "2026-04-21T12:00:00.000Z", t = "
|
|
2
|
+
const e = "2026-04-21T12:00:00.000Z", t = "i_common_devices_type_light_truck", s = t, d = {
|
|
3
|
+
alias: "Simulation device",
|
|
3
4
|
deviceIcon: {
|
|
4
|
-
|
|
5
|
-
iconId: o
|
|
5
|
+
iconId: s
|
|
6
6
|
},
|
|
7
7
|
department: {
|
|
8
8
|
color: "#27C8F5",
|
|
@@ -53,9 +53,14 @@ const e = "2026-04-21T12:00:00.000Z", t = "i_light_truck", o = t, d = {
|
|
|
53
53
|
},
|
|
54
54
|
vptModem: {
|
|
55
55
|
callActive: !1,
|
|
56
|
-
modemCsq: 31
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
modemCsq: 31
|
|
57
|
+
},
|
|
58
|
+
vptNetwork: {
|
|
59
|
+
lastConnection: e,
|
|
60
|
+
lastEvent: {
|
|
61
|
+
date: e,
|
|
62
|
+
id: 99
|
|
63
|
+
}
|
|
59
64
|
},
|
|
60
65
|
vptADCPower: {
|
|
61
66
|
backupChargeLevel: 92,
|
|
@@ -66,17 +71,16 @@ const e = "2026-04-21T12:00:00.000Z", t = "i_light_truck", o = t, d = {
|
|
|
66
71
|
}
|
|
67
72
|
}
|
|
68
73
|
},
|
|
74
|
+
name: "Simulation device",
|
|
69
75
|
settings: {
|
|
70
76
|
active: !0,
|
|
71
77
|
adminStatus: "",
|
|
72
|
-
alias: "Simulation device",
|
|
73
78
|
group: {
|
|
74
79
|
bgColor: "#27C8F5",
|
|
75
80
|
id: -1,
|
|
76
81
|
name: "Main department"
|
|
77
82
|
},
|
|
78
83
|
inTechinalOrder: !1,
|
|
79
|
-
name: "Simulation device",
|
|
80
84
|
properties: {
|
|
81
85
|
internal_name: {
|
|
82
86
|
type: "string",
|
|
@@ -84,7 +88,7 @@ const e = "2026-04-21T12:00:00.000Z", t = "i_light_truck", o = t, d = {
|
|
|
84
88
|
}
|
|
85
89
|
},
|
|
86
90
|
vpts: {
|
|
87
|
-
|
|
91
|
+
vptDiX: {
|
|
88
92
|
0: {
|
|
89
93
|
alias: "DiX1",
|
|
90
94
|
name: "DiX1",
|
|
@@ -123,5 +127,5 @@ const e = "2026-04-21T12:00:00.000Z", t = "i_light_truck", o = t, d = {
|
|
|
123
127
|
};
|
|
124
128
|
export {
|
|
125
129
|
d as REAL_TIME_DUMMY_BASE_DEVICE_TEMPLATE,
|
|
126
|
-
|
|
130
|
+
s as REAL_TIME_DUMMY_DEFAULT_ICON_ID
|
|
127
131
|
};
|
|
@@ -14,7 +14,7 @@ export declare const REAL_TIME_DUMMY_DEVICE_BLUEPRINTS: {
|
|
|
14
14
|
};
|
|
15
15
|
group: import('../..').SettingsGroup;
|
|
16
16
|
iconBgColor: `#${string}`;
|
|
17
|
-
iconId: "
|
|
17
|
+
iconId: "i_common_devices_type_heavy_truck";
|
|
18
18
|
name: string;
|
|
19
19
|
settingsPatch: {
|
|
20
20
|
properties: {
|
|
@@ -35,7 +35,7 @@ export declare const REAL_TIME_DUMMY_DEVICE_BLUEPRINTS: {
|
|
|
35
35
|
};
|
|
36
36
|
group: import('../..').SettingsGroup;
|
|
37
37
|
iconBgColor: `#${string}`;
|
|
38
|
-
iconId: "
|
|
38
|
+
iconId: "i_common_devices_type_van";
|
|
39
39
|
name: string;
|
|
40
40
|
};
|
|
41
41
|
teal_pickup: {
|
|
@@ -48,7 +48,7 @@ export declare const REAL_TIME_DUMMY_DEVICE_BLUEPRINTS: {
|
|
|
48
48
|
};
|
|
49
49
|
group: import('../..').SettingsGroup;
|
|
50
50
|
iconBgColor: `#${string}`;
|
|
51
|
-
iconId: "
|
|
51
|
+
iconId: "i_common_devices_type_light_truck";
|
|
52
52
|
name: string;
|
|
53
53
|
};
|
|
54
54
|
charcoal_sedan: {
|
|
@@ -61,7 +61,7 @@ export declare const REAL_TIME_DUMMY_DEVICE_BLUEPRINTS: {
|
|
|
61
61
|
};
|
|
62
62
|
group: import('../..').SettingsGroup;
|
|
63
63
|
iconBgColor: `#${string}`;
|
|
64
|
-
iconId: "
|
|
64
|
+
iconId: "i_common_devices_type_sedan";
|
|
65
65
|
name: string;
|
|
66
66
|
};
|
|
67
67
|
sand_box_truck: {
|
|
@@ -74,7 +74,7 @@ export declare const REAL_TIME_DUMMY_DEVICE_BLUEPRINTS: {
|
|
|
74
74
|
};
|
|
75
75
|
group: import('../..').SettingsGroup;
|
|
76
76
|
iconBgColor: `#${string}`;
|
|
77
|
-
iconId: "
|
|
77
|
+
iconId: "i_common_devices_type_heavy_truck";
|
|
78
78
|
name: string;
|
|
79
79
|
};
|
|
80
80
|
yellow_service: {
|
|
@@ -87,7 +87,7 @@ export declare const REAL_TIME_DUMMY_DEVICE_BLUEPRINTS: {
|
|
|
87
87
|
};
|
|
88
88
|
group: import('../..').SettingsGroup;
|
|
89
89
|
iconBgColor: `#${string}`;
|
|
90
|
-
iconId: "
|
|
90
|
+
iconId: "i_common_devices_type_motorcycle";
|
|
91
91
|
name: string;
|
|
92
92
|
};
|
|
93
93
|
red_tractor: {
|
|
@@ -100,7 +100,7 @@ export declare const REAL_TIME_DUMMY_DEVICE_BLUEPRINTS: {
|
|
|
100
100
|
};
|
|
101
101
|
group: import('../..').SettingsGroup;
|
|
102
102
|
iconBgColor: `#${string}`;
|
|
103
|
-
iconId: "
|
|
103
|
+
iconId: "i_common_devices_type_truck_tractor";
|
|
104
104
|
name: string;
|
|
105
105
|
};
|
|
106
106
|
blue_city_car: {
|
|
@@ -113,7 +113,7 @@ export declare const REAL_TIME_DUMMY_DEVICE_BLUEPRINTS: {
|
|
|
113
113
|
};
|
|
114
114
|
group: import('../..').SettingsGroup;
|
|
115
115
|
iconBgColor: `#${string}`;
|
|
116
|
-
iconId: "
|
|
116
|
+
iconId: "i_common_devices_type_sedan";
|
|
117
117
|
name: string;
|
|
118
118
|
};
|
|
119
119
|
bootstrap_pending_icon: {
|