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.
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=credits.js.map
@@ -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?: firebase_timestamp | Timestamp;
78
- updated?: firebase_timestamp | Timestamp;
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: firebase_timestamp | Timestamp;
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?: firebase_timestamp | Timestamp;
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: firebase_timestamp | Timestamp;
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: firebase_timestamp | Timestamp;
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: firebase_timestamp | Timestamp;
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: firebase_timestamp | 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?: firebase_timestamp | Timestamp;
215
+ engine_updated?: TimestampType;
214
216
  ign?: number;
215
217
  is_online?: number;
216
- last_offline?: firebase_timestamp | Timestamp;
217
- last_online?: firebase_timestamp | Timestamp;
218
+ last_offline?: TimestampType;
219
+ last_online?: TimestampType;
218
220
  server?: string;
219
221
  sites?: string[];
220
- update?: firebase_timestamp | Timestamp;
221
- updated?: firebase_timestamp | Timestamp;
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?: firebase_timestamp | 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: firebase_timestamp | Timestamp;
278
+ timestamp: TimestampType;
277
279
  spd: number;
278
280
  vin: number;
279
281
  latitude: number;
@@ -1,2 +1,3 @@
1
1
  export * from "./global";
2
+ export * from "./credits";
2
3
  export * from "./go";
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "akeyless-types-commons",
3
- "version": "1.0.66",
3
+ "version": "1.0.68",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "scripts": {