akeyless-types-commons 1.0.66 → 1.0.68
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/credits.d.ts +25 -0
- package/dist/interfaces/credits.js +3 -0
- package/dist/interfaces/credits.js.map +1 -0
- package/dist/interfaces/global.d.ts +17 -15
- package/dist/interfaces/index.d.ts +1 -0
- package/dist/interfaces/index.js +1 -0
- package/dist/interfaces/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TimestampType } from "./global";
|
|
2
|
+
export type CreditType = "charge_home" | "charge_external" | (string & {});
|
|
3
|
+
export interface CreditItem {
|
|
4
|
+
id: string;
|
|
5
|
+
amount: string;
|
|
6
|
+
car_number: string;
|
|
7
|
+
created: TimestampType;
|
|
8
|
+
expiration: {
|
|
9
|
+
from: TimestampType;
|
|
10
|
+
to: TimestampType;
|
|
11
|
+
};
|
|
12
|
+
types: CreditType[];
|
|
13
|
+
}
|
|
14
|
+
export type CreditAuditAction = "subtract" | "add";
|
|
15
|
+
export interface CreditAuditItem {
|
|
16
|
+
id: string;
|
|
17
|
+
action: CreditAuditAction;
|
|
18
|
+
amount: string;
|
|
19
|
+
comment?: string;
|
|
20
|
+
reason: string;
|
|
21
|
+
prev_balance: string;
|
|
22
|
+
timestamp: TimestampType;
|
|
23
|
+
user_id: string;
|
|
24
|
+
user_name: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credits.js","sourceRoot":"","sources":["../../src/interfaces/credits.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BoardStatus, ClientStatus, EquipmentStatus, EquipmentStatusReason, LanguageOptions, SiteType, UnitStatus } from "../enums";
|
|
2
2
|
import { Timestamp } from "firebase-admin/firestore";
|
|
3
3
|
import { Geo, TObject } from "../types";
|
|
4
|
+
export type TimestampType = firebase_timestamp | Timestamp;
|
|
4
5
|
export interface firebase_timestamp {
|
|
5
6
|
_nanoseconds: number;
|
|
6
7
|
_seconds: number;
|
|
@@ -74,8 +75,8 @@ export interface GoUser {
|
|
|
74
75
|
last_name: string;
|
|
75
76
|
}
|
|
76
77
|
export interface Client {
|
|
77
|
-
created?:
|
|
78
|
-
updated?:
|
|
78
|
+
created?: TimestampType;
|
|
79
|
+
updated?: TimestampType;
|
|
79
80
|
features?: string[];
|
|
80
81
|
id?: string;
|
|
81
82
|
name?: string;
|
|
@@ -95,7 +96,7 @@ export interface Board {
|
|
|
95
96
|
sim: string;
|
|
96
97
|
status: BoardStatus;
|
|
97
98
|
type: string;
|
|
98
|
-
uploaded:
|
|
99
|
+
uploaded: TimestampType;
|
|
99
100
|
userId: string;
|
|
100
101
|
token?: string;
|
|
101
102
|
comments?: string;
|
|
@@ -110,7 +111,7 @@ export interface Peripheral {
|
|
|
110
111
|
relayType?: null;
|
|
111
112
|
status?: number;
|
|
112
113
|
technician?: string;
|
|
113
|
-
updateDate?:
|
|
114
|
+
updateDate?: TimestampType;
|
|
114
115
|
serialNumber?: string;
|
|
115
116
|
equipmentOptionId?: string;
|
|
116
117
|
equipmentOptionName?: string;
|
|
@@ -119,7 +120,7 @@ export interface Peripheral {
|
|
|
119
120
|
export interface Car {
|
|
120
121
|
confirmation_code: string;
|
|
121
122
|
id?: string;
|
|
122
|
-
install_confirmation_date:
|
|
123
|
+
install_confirmation_date: TimestampType;
|
|
123
124
|
carId: string;
|
|
124
125
|
mainDriver: string;
|
|
125
126
|
installation_status: string;
|
|
@@ -133,7 +134,7 @@ export interface Car {
|
|
|
133
134
|
vehicle_markers?: string;
|
|
134
135
|
camera_installation_details: TObject<string>;
|
|
135
136
|
status: UnitStatus;
|
|
136
|
-
warrantyExpire:
|
|
137
|
+
warrantyExpire: TimestampType;
|
|
137
138
|
protectionType: string;
|
|
138
139
|
protectionTypeId: string;
|
|
139
140
|
warranty: boolean;
|
|
@@ -141,7 +142,7 @@ export interface Car {
|
|
|
141
142
|
isEnforcementCenterUser: boolean;
|
|
142
143
|
sites: string[];
|
|
143
144
|
client: string;
|
|
144
|
-
installationDate:
|
|
145
|
+
installationDate: TimestampType;
|
|
145
146
|
timestamp: number;
|
|
146
147
|
customer: string;
|
|
147
148
|
customerId: string;
|
|
@@ -165,6 +166,7 @@ export interface Car {
|
|
|
165
166
|
comments?: string;
|
|
166
167
|
link_token?: string;
|
|
167
168
|
maker_icon?: string;
|
|
169
|
+
maintenance_timestamp?: TimestampType;
|
|
168
170
|
}
|
|
169
171
|
export interface UnitExtra {
|
|
170
172
|
car_number: string;
|
|
@@ -194,7 +196,7 @@ export interface LastLocationCar {
|
|
|
194
196
|
car_number: string;
|
|
195
197
|
latitude: number;
|
|
196
198
|
longitude: number;
|
|
197
|
-
timestamp:
|
|
199
|
+
timestamp: TimestampType;
|
|
198
200
|
client?: string;
|
|
199
201
|
prev_latitude?: number;
|
|
200
202
|
prev_longitude?: number;
|
|
@@ -210,15 +212,15 @@ export interface CarState {
|
|
|
210
212
|
car_number?: string;
|
|
211
213
|
client?: string;
|
|
212
214
|
engine?: number;
|
|
213
|
-
engine_updated?:
|
|
215
|
+
engine_updated?: TimestampType;
|
|
214
216
|
ign?: number;
|
|
215
217
|
is_online?: number;
|
|
216
|
-
last_offline?:
|
|
217
|
-
last_online?:
|
|
218
|
+
last_offline?: TimestampType;
|
|
219
|
+
last_online?: TimestampType;
|
|
218
220
|
server?: string;
|
|
219
221
|
sites?: string[];
|
|
220
|
-
update?:
|
|
221
|
-
updated?:
|
|
222
|
+
update?: TimestampType;
|
|
223
|
+
updated?: TimestampType;
|
|
222
224
|
vin?: number;
|
|
223
225
|
disarmed?: number;
|
|
224
226
|
disarm_code?: string;
|
|
@@ -236,7 +238,7 @@ export interface CanbusParameter {
|
|
|
236
238
|
desc?: string | null;
|
|
237
239
|
id: number | string;
|
|
238
240
|
value: number;
|
|
239
|
-
timestamp?:
|
|
241
|
+
timestamp?: TimestampType;
|
|
240
242
|
}
|
|
241
243
|
export interface Equipment {
|
|
242
244
|
id: string;
|
|
@@ -273,7 +275,7 @@ export interface EventFromDevice {
|
|
|
273
275
|
event_id: number;
|
|
274
276
|
car_number: string;
|
|
275
277
|
source: string;
|
|
276
|
-
timestamp:
|
|
278
|
+
timestamp: TimestampType;
|
|
277
279
|
spd: number;
|
|
278
280
|
vin: number;
|
|
279
281
|
latitude: number;
|
package/dist/interfaces/index.js
CHANGED
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./global"), exports);
|
|
18
|
+
__exportStar(require("./credits"), exports);
|
|
18
19
|
__exportStar(require("./go"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,uCAAqB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,4CAA0B;AAC1B,uCAAqB"}
|