akeyless-types-commons 1.0.1 → 1.0.3
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/dist/interfaces/global.d.ts +1 -1
- package/package.json +4 -1
- package/src/enums/car_events.ts +0 -11
- package/src/enums/global.ts +0 -34
- package/src/enums/index.ts +0 -2
- package/src/index.ts +0 -3
- package/src/interfaces/global.ts +0 -183
- package/src/interfaces/index.ts +0 -1
- package/src/types/global.ts +0 -6
- package/src/types/index.ts +0 -1
- package/tsconfig.json +0 -15
|
@@ -154,7 +154,7 @@ export interface ErmStates {
|
|
|
154
154
|
is_awake?: number;
|
|
155
155
|
battery_disconnected?: number;
|
|
156
156
|
}
|
|
157
|
-
export type ReportMetaDataType = "string" | "car_number" | "phone" | "date" | "time" | "datetime" | "number" | "email" | "boolean" | "geo";
|
|
157
|
+
export type ReportMetaDataType = "string" | "car_number" | "phone" | "date" | "time" | "datetime" | "number" | "email" | "boolean" | "geo" | "duration";
|
|
158
158
|
export interface ReportMetaHeader {
|
|
159
159
|
name: string;
|
|
160
160
|
type: ReportMetaDataType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "akeyless-types-commons",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
"@types/node": "^22.5.2",
|
|
15
15
|
"typescript": "^5.5.4"
|
|
16
16
|
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist"
|
|
19
|
+
],
|
|
17
20
|
"dependencies": {
|
|
18
21
|
"firebase-admin": "^12.6.0"
|
|
19
22
|
}
|
package/src/enums/car_events.ts
DELETED
package/src/enums/global.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export enum DefaultClient {
|
|
2
|
-
default = "akeyless",
|
|
3
|
-
camera_installation = "akeyless",
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export enum BoardStatus {
|
|
7
|
-
ReadyForInstallation = 1,
|
|
8
|
-
Installed = 2,
|
|
9
|
-
Malfunction = 3,
|
|
10
|
-
NoSim = 4,
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export enum UnitStatus {
|
|
14
|
-
NewOrder = 0,
|
|
15
|
-
Installed = 1,
|
|
16
|
-
WaitingForService = 2,
|
|
17
|
-
InstalledButNotActive = 3,
|
|
18
|
-
NewInstallation = 4,
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export enum ClientStatus {
|
|
22
|
-
Active = "active",
|
|
23
|
-
Suspended = "suspended",
|
|
24
|
-
Deleted = "deleted",
|
|
25
|
-
}
|
|
26
|
-
export enum LanguageOptions {
|
|
27
|
-
He = "he",
|
|
28
|
-
En = "en",
|
|
29
|
-
Ru = "ru",
|
|
30
|
-
}
|
|
31
|
-
export enum CountryOptions {
|
|
32
|
-
US = "us",
|
|
33
|
-
IL = "il",
|
|
34
|
-
}
|
package/src/enums/index.ts
DELETED
package/src/index.ts
DELETED
package/src/interfaces/global.ts
DELETED
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
import { BoardStatus, ClientStatus, LanguageOptions, UnitStatus } from "../enums";
|
|
2
|
-
import { Timestamp } from "firebase-admin/firestore";
|
|
3
|
-
import { TObject } from "../types";
|
|
4
|
-
|
|
5
|
-
export interface firebase_timestamp {
|
|
6
|
-
_nanoseconds: number;
|
|
7
|
-
_seconds: number;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface NxUser {
|
|
11
|
-
id?: string;
|
|
12
|
-
clients?: string[];
|
|
13
|
-
first_name?: string;
|
|
14
|
-
last_name?: string;
|
|
15
|
-
phone_number?: string;
|
|
16
|
-
status?: string;
|
|
17
|
-
features?: string[];
|
|
18
|
-
site?: string;
|
|
19
|
-
sites?: string[];
|
|
20
|
-
created?: firebase_timestamp;
|
|
21
|
-
updated?: firebase_timestamp;
|
|
22
|
-
last_login?: firebase_timestamp;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface Installer {
|
|
26
|
-
id?: string;
|
|
27
|
-
fullName?: string;
|
|
28
|
-
phone?: string;
|
|
29
|
-
superTechnician?: string;
|
|
30
|
-
clients?: string[];
|
|
31
|
-
customers?: string[];
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export interface Client {
|
|
35
|
-
created?: firebase_timestamp | Timestamp;
|
|
36
|
-
updated?: firebase_timestamp | Timestamp;
|
|
37
|
-
features?: string[];
|
|
38
|
-
id?: string;
|
|
39
|
-
name?: string;
|
|
40
|
-
root_site?: string;
|
|
41
|
-
status?: ClientStatus;
|
|
42
|
-
api_token?: string;
|
|
43
|
-
key?: string;
|
|
44
|
-
language?: LanguageOptions;
|
|
45
|
-
installation_name?: string;
|
|
46
|
-
installation_phone?: string;
|
|
47
|
-
installation_root_site?: string;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface Board {
|
|
51
|
-
id: string;
|
|
52
|
-
imei: string;
|
|
53
|
-
sim: string;
|
|
54
|
-
status: BoardStatus;
|
|
55
|
-
type: string;
|
|
56
|
-
uploaded: firebase_timestamp | Timestamp;
|
|
57
|
-
userId: string;
|
|
58
|
-
token?: string;
|
|
59
|
-
comments?: string;
|
|
60
|
-
}
|
|
61
|
-
export interface Peripheral {
|
|
62
|
-
boardRef: string;
|
|
63
|
-
boardType: string;
|
|
64
|
-
boardTypeId: string;
|
|
65
|
-
installationLocationImageUrl: string;
|
|
66
|
-
location: string;
|
|
67
|
-
mac: string;
|
|
68
|
-
relayType: null;
|
|
69
|
-
status: number;
|
|
70
|
-
technician: string;
|
|
71
|
-
updateDate: firebase_timestamp | Timestamp;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export interface Car {
|
|
75
|
-
confirmation_code: string;
|
|
76
|
-
id?: string;
|
|
77
|
-
install_confirmation_date: firebase_timestamp | Timestamp;
|
|
78
|
-
carId: string;
|
|
79
|
-
mainDriver: string;
|
|
80
|
-
installation_status: string;
|
|
81
|
-
name: string;
|
|
82
|
-
userPhone: string;
|
|
83
|
-
userEmail?: string;
|
|
84
|
-
camera_installation_details: TObject<string>;
|
|
85
|
-
status: UnitStatus;
|
|
86
|
-
warrantyExpire: firebase_timestamp | Timestamp;
|
|
87
|
-
protectionType: string;
|
|
88
|
-
protectionTypeId: string;
|
|
89
|
-
warranty: boolean;
|
|
90
|
-
statusMokedUser: string;
|
|
91
|
-
isEnforcementCenterUser: boolean;
|
|
92
|
-
sites: string[];
|
|
93
|
-
client: string;
|
|
94
|
-
installationDate: firebase_timestamp | Timestamp;
|
|
95
|
-
timestamp: number;
|
|
96
|
-
customer: string;
|
|
97
|
-
customerId: string;
|
|
98
|
-
technician: string;
|
|
99
|
-
technicianId: string;
|
|
100
|
-
engine_type: string;
|
|
101
|
-
gov_info: TObject<string | number>;
|
|
102
|
-
brand: string;
|
|
103
|
-
manufacturer: string;
|
|
104
|
-
carYear: string;
|
|
105
|
-
color: string;
|
|
106
|
-
commandOption: string;
|
|
107
|
-
chassisNumber: string;
|
|
108
|
-
subEnforcmentUser: TObject<string | null | null[]>;
|
|
109
|
-
peripherals: Peripheral[];
|
|
110
|
-
icon?: string;
|
|
111
|
-
vin?: string;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
export interface LastLocationCar {
|
|
115
|
-
car_number: string;
|
|
116
|
-
latitude: number;
|
|
117
|
-
longitude: number;
|
|
118
|
-
timestamp: firebase_timestamp | Timestamp;
|
|
119
|
-
client?: string;
|
|
120
|
-
prev_latitude?: number;
|
|
121
|
-
prev_longitude?: number;
|
|
122
|
-
sites?: string[];
|
|
123
|
-
source?: string;
|
|
124
|
-
spd?: number;
|
|
125
|
-
vin?: number;
|
|
126
|
-
odo?: number;
|
|
127
|
-
ign?: number;
|
|
128
|
-
direction?: number;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export interface CanbusParameter {
|
|
132
|
-
desc?: string | null;
|
|
133
|
-
id: number | string;
|
|
134
|
-
value: number;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export interface EventFromDevice {
|
|
138
|
-
event_id: number;
|
|
139
|
-
car_number: string;
|
|
140
|
-
source: string;
|
|
141
|
-
timestamp: firebase_timestamp | Timestamp;
|
|
142
|
-
spd: number;
|
|
143
|
-
vin: number;
|
|
144
|
-
latitude: number;
|
|
145
|
-
longitude: number;
|
|
146
|
-
event_name: string;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
export interface EventFromDevice_Ruptela extends EventFromDevice {
|
|
150
|
-
charge_percents: number;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export interface EventFromDevice_Erm extends EventFromDevice {
|
|
154
|
-
disarm_code: string;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export interface ErmStates {
|
|
158
|
-
car_number: string;
|
|
159
|
-
ign?: number;
|
|
160
|
-
is_online?: number;
|
|
161
|
-
last_offline?: Date;
|
|
162
|
-
last_online?: Date;
|
|
163
|
-
server: string;
|
|
164
|
-
updated?: Date;
|
|
165
|
-
vin?: number;
|
|
166
|
-
is_awake?: number;
|
|
167
|
-
battery_disconnected?: number;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export type ReportMetaDataType = "string" | "car_number" | "phone" | "date" | "time" | "datetime" | "number" | "email" | "boolean" | "geo";
|
|
171
|
-
|
|
172
|
-
export interface ReportMetaHeader {
|
|
173
|
-
name: string;
|
|
174
|
-
type: ReportMetaDataType;
|
|
175
|
-
class_name?: string;
|
|
176
|
-
style?: string;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export interface ReportMeta {
|
|
180
|
-
headers: ReportMetaHeader[];
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export type ReportDataRow = (string | number | Date | boolean | null)[];
|
package/src/interfaces/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './global'
|
package/src/types/global.ts
DELETED
package/src/types/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./global";
|
package/tsconfig.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES6",
|
|
4
|
-
"module": "CommonJS",
|
|
5
|
-
"moduleResolution": "node",
|
|
6
|
-
"outDir": "./dist",
|
|
7
|
-
"declaration": true,
|
|
8
|
-
"sourceMap": true,
|
|
9
|
-
"rootDir": "./src",
|
|
10
|
-
"esModuleInterop": true,
|
|
11
|
-
"skipLibCheck": true
|
|
12
|
-
},
|
|
13
|
-
"include": ["src/**/*"],
|
|
14
|
-
"exclude": ["node_modules"]
|
|
15
|
-
}
|