edited
parent
fcc6523c67
commit
f356b7cfde
@ -0,0 +1,301 @@
|
|||||||
|
import { ID } from "./mongo_db/DefaultTypes.ts";
|
||||||
|
export interface IGpsElement {
|
||||||
|
gpsDate: Date;
|
||||||
|
lon: number;
|
||||||
|
lat: number;
|
||||||
|
speed: number;
|
||||||
|
totalKm: number;
|
||||||
|
angle: number;
|
||||||
|
gnssAccuracy: number;
|
||||||
|
satCount: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum ESleepModes {
|
||||||
|
Disable = 0,
|
||||||
|
GpsSleep = 1,
|
||||||
|
DeepSleep = 2,
|
||||||
|
OnlineDeepSleep = 3,
|
||||||
|
UltraSleep = 4,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum EDataModes {
|
||||||
|
HomeOnStop = 0,
|
||||||
|
HomeOnMoving = 1,
|
||||||
|
RoamingOnStop = 2,
|
||||||
|
RoamingOnMoving = 3,
|
||||||
|
UnknownOnStop = 4,
|
||||||
|
UnknownOnMoving = 5,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum EMovementStatus {
|
||||||
|
MovementOff = 0,
|
||||||
|
MovementOn = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ISleep {
|
||||||
|
mode: ESleepModes;
|
||||||
|
sleepDate: Date;
|
||||||
|
awakeDate: Date;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IConnected {
|
||||||
|
state: boolean;
|
||||||
|
connectedDate: Date;
|
||||||
|
disconnectedDate: Date;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IIgnition {
|
||||||
|
state: boolean;
|
||||||
|
onDate: Date;
|
||||||
|
offDate: Date;
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum EGnssStatus {
|
||||||
|
GNSSOff = 0,
|
||||||
|
GNSSOnWithFix = 1,
|
||||||
|
GNSSOnWithoutFix = 2,
|
||||||
|
GNSSSleep = 3,
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IGnss {
|
||||||
|
status: EGnssStatus;
|
||||||
|
gnssPdop: number;
|
||||||
|
gnssHdop: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum EBatteryState {
|
||||||
|
Present = 0,
|
||||||
|
Unplugged = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IVoltage {
|
||||||
|
externalVolt: number;
|
||||||
|
batteryVolt: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IBattery {
|
||||||
|
state: EBatteryState;
|
||||||
|
batteryAmper: number;
|
||||||
|
batteryPercentage: number;
|
||||||
|
batteryTemp: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IInputs {
|
||||||
|
digital1: number;
|
||||||
|
digital2: number;
|
||||||
|
digital3: number;
|
||||||
|
analog1: number;
|
||||||
|
analog2: number;
|
||||||
|
analog3: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IOutputs {
|
||||||
|
digital1: number;
|
||||||
|
digital2: number;
|
||||||
|
digital3: number;
|
||||||
|
analog1: number;
|
||||||
|
analog2: number;
|
||||||
|
analog3: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IAxis {
|
||||||
|
x: number;
|
||||||
|
y: number;
|
||||||
|
z: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum EBluetoothStatus {
|
||||||
|
Disabled = 0,
|
||||||
|
EnabledNoDevice = 1,
|
||||||
|
DeviceConnectedBTv3 = 2,
|
||||||
|
DeviceConnectedBLEOnly = 3,
|
||||||
|
DeviceConnectedBLEAndBT = 4,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum ESdStatus {
|
||||||
|
NotPresent = 0,
|
||||||
|
Present = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum EVehicleState {
|
||||||
|
Moving = 0,
|
||||||
|
Idling = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum ETowingState {
|
||||||
|
Steady = 0,
|
||||||
|
Towing = 1,
|
||||||
|
}
|
||||||
|
export enum ECrashDetection {
|
||||||
|
RealCrashCalibrated = 1,
|
||||||
|
LimitedCrashTraceNotCalibrated = 2,
|
||||||
|
LimitedCrashTraceCalibrated = 3,
|
||||||
|
FullCrashTraceNotCalibrated = 4,
|
||||||
|
FullCrashTraceCalibrated = 5,
|
||||||
|
RealCrashNotCalibrated = 6,
|
||||||
|
FakeCrashPothole = 7,
|
||||||
|
FakeCrashSpeedCheck = 8,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum EiButtonConnection {
|
||||||
|
NotConnected = 0,
|
||||||
|
ConnectedImmobilizer = 1,
|
||||||
|
ConnectedAuthorizedDriving = 2,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum EJammingStatus {
|
||||||
|
JammingStop = 0,
|
||||||
|
JammingStart = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum EAlarmStatus {
|
||||||
|
Reserved = 0,
|
||||||
|
AlarmOccurred = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum EAutoGeofence {
|
||||||
|
LeftTargetZone = 0,
|
||||||
|
EnterTargetZone = 1,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum ETripStatus {
|
||||||
|
TripStop = 0,
|
||||||
|
TripStart = 1,
|
||||||
|
BusinessStatus = 2,
|
||||||
|
PrivateStatus = 3,
|
||||||
|
CustomStatus1 = 4,
|
||||||
|
CustomStatus2 = 5,
|
||||||
|
CustomStatus3 = 6,
|
||||||
|
CustomStatus4 = 7,
|
||||||
|
CustomStatus5 = 8,
|
||||||
|
CustomStatus6 = 9,
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IDeviceStateElement {
|
||||||
|
connected: IConnected;
|
||||||
|
sleep: ISleep;
|
||||||
|
dataMode: EDataModes;
|
||||||
|
movement: EMovementStatus;
|
||||||
|
gnss: IGnss;
|
||||||
|
voltage: IVoltage;
|
||||||
|
input?: IInputs;
|
||||||
|
output?: IOutputs;
|
||||||
|
axis?: IAxis;
|
||||||
|
btStatus: EBluetoothStatus;
|
||||||
|
sdStatus: ESdStatus;
|
||||||
|
idling: EVehicleState;
|
||||||
|
towing: ETowingState;
|
||||||
|
battery: IBattery;
|
||||||
|
crashDetection: ECrashDetection;
|
||||||
|
immo: EiButtonConnection;
|
||||||
|
jamming: EJammingStatus;
|
||||||
|
alarm: EAlarmStatus;
|
||||||
|
trip: ETripStatus;
|
||||||
|
autoGeofence: EAutoGeofence;
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum ENetworkTypes {
|
||||||
|
ThreeG = 0,
|
||||||
|
Gsm = 1,
|
||||||
|
FourG = 2,
|
||||||
|
LteCatM1 = 3,
|
||||||
|
LteCatNb1 = 4,
|
||||||
|
Unknown = 99,
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IGsm {
|
||||||
|
_id: ID;
|
||||||
|
gsmNo: string;
|
||||||
|
gsmCellId: string;
|
||||||
|
gsmAreaCode: string;
|
||||||
|
gsmSignal: number;
|
||||||
|
gsmOp: string;
|
||||||
|
iccid1: string;
|
||||||
|
iccid2: string;
|
||||||
|
networkType: ENetworkTypes;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IDeviceElement {
|
||||||
|
_id: ID;
|
||||||
|
imei: string;
|
||||||
|
gsmElement: IGsm;
|
||||||
|
gpsElement: IGpsElement;
|
||||||
|
stateElement: IDeviceStateElement;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ITracking {
|
||||||
|
_id: ID;
|
||||||
|
assetId: ID;
|
||||||
|
deviceId: ID;
|
||||||
|
imei: string;
|
||||||
|
port: string;
|
||||||
|
gpsElement: IGpsElement;
|
||||||
|
pingDate: Date;
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum ELocationStatus {
|
||||||
|
HomeOnStop = 0,
|
||||||
|
HomeOnMoving = 1,
|
||||||
|
RoamingOnStop = 2,
|
||||||
|
RoamingOnMoving = 3,
|
||||||
|
UnknownOnStop = 4,
|
||||||
|
UnknownOnMoving = 5,
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum EVehicleStatus {
|
||||||
|
GpsIsIncorrect = "_device_gps_is_incorrect",
|
||||||
|
Idling = "_device_is_idling",
|
||||||
|
Moving = "_device_is_moving",
|
||||||
|
Out = "_device_is_out",
|
||||||
|
Stoping = "_device_is_stoping",
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IVehicleStateElement {
|
||||||
|
ignition: IIgnition;
|
||||||
|
state: EVehicleStatus;
|
||||||
|
locationState: ELocationStatus;
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum EAssetTypes {
|
||||||
|
Baby = "_baby",
|
||||||
|
Bicycle = "_bicycle",
|
||||||
|
Bus = "_bus",
|
||||||
|
Car = "_car",
|
||||||
|
Child = "_child",
|
||||||
|
Dog = "_dog",
|
||||||
|
Forklift = "_forklift",
|
||||||
|
Human = "_human",
|
||||||
|
Motorbike = "_motorbike",
|
||||||
|
Stuff = "_stuff",
|
||||||
|
Tractor = "_tractor",
|
||||||
|
Truck = "_truck",
|
||||||
|
}
|
||||||
|
|
||||||
|
export enum EAssetValidTypes {
|
||||||
|
Passive = 0,
|
||||||
|
Active = 1,
|
||||||
|
Debt = 2,
|
||||||
|
Suspend = 3,
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface IVehicleElement {
|
||||||
|
assetId: ID;
|
||||||
|
driverId: ID;
|
||||||
|
owner: ID;
|
||||||
|
followers: ID[];
|
||||||
|
assetType: EAssetTypes;
|
||||||
|
name1: string;
|
||||||
|
name2: string;
|
||||||
|
name3: string;
|
||||||
|
description1: string;
|
||||||
|
description2: string;
|
||||||
|
registeredDate: Date;
|
||||||
|
updatedDate: Date;
|
||||||
|
modelYear: number;
|
||||||
|
currentKm: number;
|
||||||
|
valid: EAssetValidTypes;
|
||||||
|
showOnMap: boolean;
|
||||||
|
chassis_num: string;
|
||||||
|
brand: string;
|
||||||
|
color: string;
|
||||||
|
}
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
import { ObjectId } from "npm:mongodb";
|
||||||
|
export type ID = string | number | ObjectId;
|
||||||
|
export type Maybe<T> = T | null;
|
||||||
@ -1,15 +1,15 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoAracAlarmAyar {
|
export interface MongoAracAlarmAyar {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
ARACID: number;
|
ARACID: number;
|
||||||
IMEI: string;
|
IMEI: string;
|
||||||
SENSOR: string;
|
SENSOR: string;
|
||||||
DEGER: string;
|
DEGER: string;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
KULLANICIID: number;
|
KULLANICIID: number;
|
||||||
SMS: string;
|
SMS: string;
|
||||||
EMAIL: string;
|
EMAIL: string;
|
||||||
BILDIRIM: string;
|
BILDIRIM: string;
|
||||||
AYARLANDIMI: string;
|
AYARLANDIMI: string;
|
||||||
TARIH: Date;
|
TARIH: Date;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoAracAyarlar {
|
export interface MongoAracAyarlar {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
AID: number;
|
AID: number;
|
||||||
CREATEDAT: Date;
|
CREATEDAT: Date;
|
||||||
FCICL: number;
|
FCICL: number;
|
||||||
KULLANICIID: number;
|
KULLANICIID: number;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
UPDATEDAT: Date;
|
UPDATEDAT: Date;
|
||||||
FCOCL: number;
|
FCOCL: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoAracGruplar {
|
export interface MongoAracGruplar {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
ARACID: number;
|
ARACID: number;
|
||||||
KULLANICIID: number;
|
KULLANICIID: number;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
GRUP: ID[];
|
GRUP: ID[];
|
||||||
updatedAt: Date;
|
updatedAt: Date;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,25 +1,25 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoAssetAlarmKomut {
|
export interface MongoAssetAlarmKomut {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
AID: number;
|
AID: number;
|
||||||
SAVED: boolean;
|
SAVED: boolean;
|
||||||
aas_id: ID;
|
aas_id: ID;
|
||||||
ALARM_TYPE: string;
|
ALARM_TYPE: string;
|
||||||
DATA_PROPS: DATAPROPS;
|
DATA_PROPS: DATAPROPS;
|
||||||
KID: number;
|
KID: number;
|
||||||
MID: number;
|
MID: number;
|
||||||
RETRIES: number;
|
RETRIES: number;
|
||||||
SAVED_AT: Date;
|
SAVED_AT: Date;
|
||||||
SENT: boolean;
|
SENT: boolean;
|
||||||
SENT_AT: Date;
|
SENT_AT: Date;
|
||||||
UPDATED_AT: Date;
|
UPDATED_AT: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DATAPROPS {
|
interface DATAPROPS {
|
||||||
SPEED_LIMIT: number;
|
SPEED_LIMIT: number;
|
||||||
SUDDEN_ACCEL_LIMIT_KM: number;
|
SUDDEN_ACCEL_LIMIT_KM: number;
|
||||||
SUDDEN_DECEL_LIMIT_KM: number;
|
SUDDEN_DECEL_LIMIT_KM: number;
|
||||||
IDLING_MINUTE_LIMIT: number;
|
IDLING_MINUTE_LIMIT: number;
|
||||||
MIN_TEMP: number;
|
MIN_TEMP: number;
|
||||||
MAX_TEMP: number;
|
MAX_TEMP: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,24 +1,24 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoAssetAlarmNotifications {
|
export interface MongoAssetAlarmNotifications {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
AID: number;
|
AID: number;
|
||||||
ALARM_TYPE: string;
|
ALARM_TYPE: string;
|
||||||
KID: number;
|
KID: number;
|
||||||
aas_id: string;
|
aas_id: string;
|
||||||
NOTIFY: NOTIFY;
|
NOTIFY: NOTIFY;
|
||||||
UPDATED_AT: Date;
|
UPDATED_AT: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface NOTIFY {
|
interface NOTIFY {
|
||||||
APP: APP;
|
APP: APP;
|
||||||
EMAIL: EMAIL;
|
EMAIL: EMAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface EMAIL {
|
interface EMAIL {
|
||||||
NOTIFY: boolean;
|
NOTIFY: boolean;
|
||||||
EMAILS: string[];
|
EMAILS: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
interface APP {
|
interface APP {
|
||||||
NOTIFY: boolean;
|
NOTIFY: boolean;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,28 +1,28 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoAssetAlarmSetup {
|
export interface MongoAssetAlarmSetup {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
AID: number;
|
AID: number;
|
||||||
ALARM_TYPE: string;
|
ALARM_TYPE: string;
|
||||||
ALARM_PROPS: ALARMPROPS;
|
ALARM_PROPS: ALARMPROPS;
|
||||||
BY_DEVICE: BYDEVICE;
|
BY_DEVICE: BYDEVICE;
|
||||||
ENABLE: boolean;
|
ENABLE: boolean;
|
||||||
KID: number;
|
KID: number;
|
||||||
UPDATED_AT: Date;
|
UPDATED_AT: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface BYDEVICE {
|
interface BYDEVICE {
|
||||||
IN_DEVICE: boolean;
|
IN_DEVICE: boolean;
|
||||||
SETTED: boolean;
|
SETTED: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ALARMPROPS {
|
interface ALARMPROPS {
|
||||||
SPEED_LIMIT: number;
|
SPEED_LIMIT: number;
|
||||||
START_TIME: string;
|
START_TIME: string;
|
||||||
END_TIME: string;
|
END_TIME: string;
|
||||||
SHIFT_TYPE: boolean;
|
SHIFT_TYPE: boolean;
|
||||||
SUDDEN_ACCEL_LIMIT_KM: number;
|
SUDDEN_ACCEL_LIMIT_KM: number;
|
||||||
SUDDEN_DECEL_LIMIT_KM: number;
|
SUDDEN_DECEL_LIMIT_KM: number;
|
||||||
IDLING_MINUTE_LIMIT: number;
|
IDLING_MINUTE_LIMIT: number;
|
||||||
MIN_TEMP: number;
|
MIN_TEMP: number;
|
||||||
MAX_TEMP: number;
|
MAX_TEMP: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,40 +1,40 @@
|
|||||||
import { ID, Maybe } from "./MongoTypes.ts";
|
import { ID, Maybe } from "./DefaultTypes.ts";
|
||||||
export interface MongoAssetAlarms {
|
export interface MongoAssetAlarms {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
ALARM_TYPE: string;
|
ALARM_TYPE: string;
|
||||||
aas_id: string;
|
aas_id: string;
|
||||||
CREATED_AT: Date;
|
CREATED_AT: Date;
|
||||||
LOC: LOC;
|
LOC: LOC;
|
||||||
AID: number;
|
AID: number;
|
||||||
VALUE: VALUE;
|
VALUE: VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type VALUE = {
|
export type VALUE = {
|
||||||
BATT_STATE?: Maybe<boolean>;
|
BATT_STATE?: Maybe<boolean>;
|
||||||
IDLING_TIME?: Maybe<number>;
|
IDLING_TIME?: Maybe<number>;
|
||||||
IGNITION_STATE?: Maybe<boolean>;
|
IGNITION_STATE?: Maybe<boolean>;
|
||||||
IMPACT_DEGREE?: Maybe<number>;
|
IMPACT_DEGREE?: Maybe<number>;
|
||||||
MAX_WAIT_TIME?: Maybe<number>;
|
MAX_WAIT_TIME?: Maybe<number>;
|
||||||
POINT_ID?: Maybe<string>;
|
POINT_ID?: Maybe<string>;
|
||||||
POINT_IO_TYPE?: Maybe<number>;
|
POINT_IO_TYPE?: Maybe<number>;
|
||||||
SHIFT_TIME?: Maybe<string>;
|
SHIFT_TIME?: Maybe<string>;
|
||||||
SHIFT_TYPE?: Maybe<boolean>;
|
SHIFT_TYPE?: Maybe<boolean>;
|
||||||
SPEED?: Maybe<number>;
|
SPEED?: Maybe<number>;
|
||||||
SUDDEN_KM?: Maybe<number>;
|
SUDDEN_KM?: Maybe<number>;
|
||||||
TEMP?: Maybe<number>;
|
TEMP?: Maybe<number>;
|
||||||
};
|
};
|
||||||
|
|
||||||
interface LOC {
|
interface LOC {
|
||||||
geometry: Geometry;
|
geometry: Geometry;
|
||||||
properties: Properties;
|
properties: Properties;
|
||||||
type: string;
|
type: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Properties {
|
interface Properties {
|
||||||
TITLE: string;
|
TITLE: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Geometry {
|
interface Geometry {
|
||||||
coordinates: number[];
|
coordinates: number[];
|
||||||
type: string;
|
type: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,18 +1,18 @@
|
|||||||
import { ID, Maybe } from "./MongoTypes.ts";
|
import { ID, Maybe } from "./DefaultTypes.ts";
|
||||||
export interface MongoAssetKomut {
|
export interface MongoAssetKomut {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
AID: number;
|
AID: number;
|
||||||
KOMUT_TYPE: string;
|
KOMUT_TYPE: string;
|
||||||
DATA_PROPS: IDataProps;
|
DATA_PROPS: IDataProps;
|
||||||
RETRIES: number;
|
RETRIES: number;
|
||||||
SAVED: boolean;
|
SAVED: boolean;
|
||||||
SAVED_AT: Date;
|
SAVED_AT: Date;
|
||||||
SENT: boolean;
|
SENT: boolean;
|
||||||
SENT_AT: Date;
|
SENT_AT: Date;
|
||||||
UPDATED_AT: Date;
|
UPDATED_AT: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IDataProps {
|
interface IDataProps {
|
||||||
VALUE?: Maybe<string>;
|
VALUE?: Maybe<string>;
|
||||||
PRIORITY?: Maybe<string>;
|
PRIORITY?: Maybe<string>;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoAyarlarGenel {
|
export interface MongoAyarlarGenel {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
ALAN: string;
|
ALAN: string;
|
||||||
INDEX: number;
|
INDEX: number;
|
||||||
DEGER: string;
|
DEGER: string;
|
||||||
ACIKLAMA: string;
|
ACIKLAMA: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoCihazHata {
|
export interface MongoCihazHata {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
ENLEM: string;
|
ENLEM: string;
|
||||||
BOYLAM: string;
|
BOYLAM: string;
|
||||||
PLAKA: string;
|
PLAKA: string;
|
||||||
ARACID: number;
|
ARACID: number;
|
||||||
GSMHATA: number;
|
GSMHATA: number;
|
||||||
GPSHATA: number;
|
GPSHATA: number;
|
||||||
KONTAK: number;
|
KONTAK: number;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
INDEKS: number;
|
INDEKS: number;
|
||||||
HIZ: number;
|
HIZ: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoCihazMarka {
|
export interface MongoCihazMarka {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
MARKA: string;
|
MARKA: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoDurakAracDurakta {
|
export interface MongoDurakAracDurakta {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
ARACID: number;
|
ARACID: number;
|
||||||
SABLONID: number;
|
SABLONID: number;
|
||||||
GEOTANIMID: number;
|
GEOTANIMID: number;
|
||||||
TIPI: number;
|
TIPI: number;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
GIRDICIKTI: number;
|
GIRDICIKTI: number;
|
||||||
created_at: Date;
|
created_at: Date;
|
||||||
cikis_tarih: Date;
|
cikis_tarih: Date;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoDurakCeza {
|
export interface MongoDurakCeza {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
ARAC: string;
|
ARAC: string;
|
||||||
ARACID: string;
|
ARACID: string;
|
||||||
SABLONID: string;
|
SABLONID: string;
|
||||||
TIP: string;
|
TIP: string;
|
||||||
SIRA: number;
|
SIRA: number;
|
||||||
SEFER: number;
|
SEFER: number;
|
||||||
TARIH: string;
|
TARIH: string;
|
||||||
ACIKLAMA: string;
|
ACIKLAMA: string;
|
||||||
CEZASERVIS: number;
|
CEZASERVIS: number;
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,16 +1,16 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoDurakHareketSaatSablon {
|
export interface MongoDurakHareketSaatSablon {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
hareketSablonAdi: string;
|
hareketSablonAdi: string;
|
||||||
startTime: string;
|
startTime: string;
|
||||||
endTime: string;
|
endTime: string;
|
||||||
sablonliste: string[];
|
sablonliste: string[];
|
||||||
selectedWeek: string[];
|
selectedWeek: string[];
|
||||||
ihlal: string;
|
ihlal: string;
|
||||||
limit: string;
|
limit: string;
|
||||||
bekleme: string;
|
bekleme: string;
|
||||||
base64Obj: string;
|
base64Obj: string;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
updatedAt: Date;
|
updatedAt: Date;
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,16 +1,16 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoDurakHareketSiralama {
|
export interface MongoDurakHareketSiralama {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
ARACID: string;
|
ARACID: string;
|
||||||
ARAC: string;
|
ARAC: string;
|
||||||
SABLONID: string;
|
SABLONID: string;
|
||||||
TIP: string;
|
TIP: string;
|
||||||
GIRDI: number;
|
GIRDI: number;
|
||||||
CIKTI: number;
|
CIKTI: number;
|
||||||
TARIH: string;
|
TARIH: string;
|
||||||
enteredDate: Date;
|
enteredDate: Date;
|
||||||
exitedDate: Date;
|
exitedDate: Date;
|
||||||
dateTime: Date;
|
dateTime: Date;
|
||||||
SEFER: number;
|
SEFER: number;
|
||||||
SIRA: number;
|
SIRA: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoDurakTabelaHareket {
|
export interface MongoDurakTabelaHareket {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
GIRDI: number;
|
GIRDI: number;
|
||||||
CIKTI: number;
|
CIKTI: number;
|
||||||
enteredDate: Date;
|
enteredDate: Date;
|
||||||
ARACID: string;
|
ARACID: string;
|
||||||
ARAC: string;
|
ARAC: string;
|
||||||
SABLONID: string;
|
SABLONID: string;
|
||||||
TIP: string;
|
TIP: string;
|
||||||
TARIH: string;
|
TARIH: string;
|
||||||
dateTime: Date;
|
dateTime: Date;
|
||||||
exitedDate: Date;
|
exitedDate: Date;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,27 +1,27 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoDurakTabelaSablonlar {
|
export interface MongoDurakTabelaSablonlar {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
TABELA_ID: string;
|
TABELA_ID: string;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
SABLONID: string;
|
SABLONID: string;
|
||||||
TIP: string;
|
TIP: string;
|
||||||
SABLONADI: string;
|
SABLONADI: string;
|
||||||
SABLONTANIM: string;
|
SABLONTANIM: string;
|
||||||
BASSAAT: string;
|
BASSAAT: string;
|
||||||
BITSAAT: string;
|
BITSAAT: string;
|
||||||
YAZI: string;
|
YAZI: string;
|
||||||
HAREKETDUE: string;
|
HAREKETDUE: string;
|
||||||
updatedDate: Date;
|
updatedDate: Date;
|
||||||
CreatedDate: Date;
|
CreatedDate: Date;
|
||||||
CIKISTIME: string;
|
CIKISTIME: string;
|
||||||
ARAC: string;
|
ARAC: string;
|
||||||
ARACID: string;
|
ARACID: string;
|
||||||
CIKISARAC: string;
|
CIKISARAC: string;
|
||||||
CIKISARACID: string;
|
CIKISARACID: string;
|
||||||
TRANSIT: number;
|
TRANSIT: number;
|
||||||
COKLU: number;
|
COKLU: number;
|
||||||
IHLAL: string;
|
IHLAL: string;
|
||||||
SONRAKIARAC: string;
|
SONRAKIARAC: string;
|
||||||
SONRAKIARACID: string;
|
SONRAKIARACID: string;
|
||||||
YAZI2020: string;
|
YAZI2020: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,18 +1,18 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoDurakTabelalar {
|
export interface MongoDurakTabelalar {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
FILE: number;
|
FILE: number;
|
||||||
TANIM: string;
|
TANIM: string;
|
||||||
IP: string;
|
IP: string;
|
||||||
PORT: string;
|
PORT: string;
|
||||||
OLCU: string;
|
OLCU: string;
|
||||||
updatedDate: Date;
|
updatedDate: Date;
|
||||||
createdDate: Date;
|
createdDate: Date;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
SHOW: number;
|
SHOW: number;
|
||||||
MULTI: number;
|
MULTI: number;
|
||||||
WEIGHT: number;
|
WEIGHT: number;
|
||||||
ISIK: number;
|
ISIK: number;
|
||||||
GSM: string;
|
GSM: string;
|
||||||
SABITYAZI: string;
|
SABITYAZI: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoGeoAdres {
|
export interface MongoGeoAdres {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
adres: string;
|
adres: string;
|
||||||
loc: Loc;
|
loc: Loc;
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Loc {
|
interface Loc {
|
||||||
type: string;
|
type: string;
|
||||||
coordinates: number[];
|
coordinates: number[];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,30 +1,30 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoGpsPoints {
|
export interface MongoGpsPoints {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
KID: number;
|
KID: number;
|
||||||
MID: number;
|
MID: number;
|
||||||
CREATED_AT: Date;
|
CREATED_AT: Date;
|
||||||
UPDATED_AT: Date;
|
UPDATED_AT: Date;
|
||||||
STATUS: number;
|
STATUS: number;
|
||||||
ISDELETED: boolean;
|
ISDELETED: boolean;
|
||||||
LOC: LOC;
|
LOC: LOC;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface LOC {
|
interface LOC {
|
||||||
type: string;
|
type: string;
|
||||||
geometry: Geometry;
|
geometry: Geometry;
|
||||||
properties: Properties;
|
properties: Properties;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Properties {
|
interface Properties {
|
||||||
TITLE: string;
|
TITLE: string;
|
||||||
CONTENT: string;
|
CONTENT: string;
|
||||||
RADIUS: string;
|
RADIUS: string;
|
||||||
ICON: string;
|
ICON: string;
|
||||||
COLOR: string;
|
COLOR: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Geometry {
|
interface Geometry {
|
||||||
type: string;
|
type: string;
|
||||||
coordinates: number[];
|
coordinates: number[];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoGruplar {
|
export interface MongoGruplar {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
GRUPADI: string;
|
GRUPADI: string;
|
||||||
KAYITTARIH: Date;
|
KAYITTARIH: Date;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
KULLANICIID: number;
|
KULLANICIID: number;
|
||||||
UPDATETARIH: Date;
|
UPDATETARIH: Date;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoGsmHatlar {
|
export interface MongoGsmHatlar {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
BAYIID: string;
|
BAYIID: string;
|
||||||
GSM: string;
|
GSM: string;
|
||||||
TARIFE: string;
|
TARIFE: string;
|
||||||
GSM_IMEI: string;
|
GSM_IMEI: string;
|
||||||
AKTIF: number;
|
AKTIF: number;
|
||||||
KAYITTARIH: Date;
|
KAYITTARIH: Date;
|
||||||
OPERATOR: string;
|
OPERATOR: string;
|
||||||
UPDATETARIH: Date;
|
UPDATETARIH: Date;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoHatirlatma {
|
export interface MongoHatirlatma {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
ARACID: number;
|
ARACID: number;
|
||||||
TIPI: string;
|
TIPI: string;
|
||||||
modeltarih: string;
|
modeltarih: string;
|
||||||
modeltarihperiyot: string;
|
modeltarihperiyot: string;
|
||||||
hat_email_text: string;
|
hat_email_text: string;
|
||||||
hatbaszaman: string;
|
hatbaszaman: string;
|
||||||
gonderimAdet: number;
|
gonderimAdet: number;
|
||||||
bakimkm: string;
|
bakimkm: string;
|
||||||
bakimkmhatirlatma: string;
|
bakimkmhatirlatma: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoIslemCihaz {
|
export interface MongoIslemCihaz {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
ARACID: number;
|
ARACID: number;
|
||||||
ACIKLAMA: string;
|
ACIKLAMA: string;
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
AYDEX: string;
|
AYDEX: string;
|
||||||
YILDEX: string;
|
YILDEX: string;
|
||||||
CIHAZID: number;
|
CIHAZID: number;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
IMEI: string;
|
IMEI: string;
|
||||||
GSM: string;
|
GSM: string;
|
||||||
SEBEP: string;
|
SEBEP: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface RootObject {
|
export interface RootObject {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
KARTNO: string;
|
KARTNO: string;
|
||||||
SURUCUID: ID;
|
SURUCUID: ID;
|
||||||
ARACID: number;
|
ARACID: number;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
PORTNO: string;
|
PORTNO: string;
|
||||||
GUNDEX: string;
|
GUNDEX: string;
|
||||||
AYDEX: string;
|
AYDEX: string;
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoKartTemp {
|
export interface MongoKartTemp {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
KARTNO: string;
|
KARTNO: string;
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
ARACID: number;
|
ARACID: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoKartliBinisKisiler {
|
export interface MongoKartliBinisKisiler {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
ADSOYAD: string;
|
ADSOYAD: string;
|
||||||
KARTNO: string;
|
KARTNO: string;
|
||||||
DOGUMTARIH: string;
|
DOGUMTARIH: string;
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
updatedAt: Date;
|
updatedAt: Date;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
KULLANICIID: number;
|
KULLANICIID: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoKartliBinisRapor {
|
export interface MongoKartliBinisRapor {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
KARTNO: string;
|
KARTNO: string;
|
||||||
KISIID: string;
|
KISIID: string;
|
||||||
ARACID: number;
|
ARACID: number;
|
||||||
TARIHDEX: string;
|
TARIHDEX: string;
|
||||||
AYYILDEX: string;
|
AYYILDEX: string;
|
||||||
YILDEX: string;
|
YILDEX: string;
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoKomutTemp {
|
export interface MongoKomutTemp {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
KULLANICIID: number;
|
KULLANICIID: number;
|
||||||
KOMUTID: number;
|
KOMUTID: number;
|
||||||
IMEI: string;
|
IMEI: string;
|
||||||
KOMUTADI: string;
|
KOMUTADI: string;
|
||||||
KOMUTADI2: string;
|
KOMUTADI2: string;
|
||||||
ARACID: number;
|
ARACID: number;
|
||||||
TARIH: Date;
|
TARIH: Date;
|
||||||
DEGER: string;
|
DEGER: string;
|
||||||
PAKETTIP: string;
|
PAKETTIP: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoMarkaUrun {
|
export interface MongoMarkaUrun {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
URUNADI: string;
|
URUNADI: string;
|
||||||
MARKA: string;
|
MARKA: string;
|
||||||
URUNID: number;
|
URUNID: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,37 +1,37 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoSeferRaporu {
|
export interface MongoSeferRaporu {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
ARACID: number;
|
ARACID: number;
|
||||||
ACISTARIH: Date;
|
ACISTARIH: Date;
|
||||||
KAPATISTARIH: Date;
|
KAPATISTARIH: Date;
|
||||||
ACTIENLEM: number;
|
ACTIENLEM: number;
|
||||||
ACTIBOYLAM: number;
|
ACTIBOYLAM: number;
|
||||||
KAPADIENLEM: number;
|
KAPADIENLEM: number;
|
||||||
KAPADIBOYLAM: number;
|
KAPADIBOYLAM: number;
|
||||||
TOPLAM_KM: number;
|
TOPLAM_KM: number;
|
||||||
ACISADRES: string;
|
ACISADRES: string;
|
||||||
KAPATISADRES: string;
|
KAPATISADRES: string;
|
||||||
SURUCUID: string;
|
SURUCUID: string;
|
||||||
SEFERSURE: string;
|
SEFERSURE: string;
|
||||||
MAXHIZ: number;
|
MAXHIZ: number;
|
||||||
ORTALAMAHIZ: number;
|
ORTALAMAHIZ: number;
|
||||||
TOPLAMHIZASIMSURE: number;
|
TOPLAMHIZASIMSURE: number;
|
||||||
TOPLAMCEZALIBEKSURE: number;
|
TOPLAMCEZALIBEKSURE: number;
|
||||||
KONTAKACIKBEKSURE: number;
|
KONTAKACIKBEKSURE: number;
|
||||||
TOPLAMBEKSURE: number;
|
TOPLAMBEKSURE: number;
|
||||||
imei: string;
|
imei: string;
|
||||||
basboylam: string;
|
basboylam: string;
|
||||||
bastarih: Date;
|
bastarih: Date;
|
||||||
bitboylam: string;
|
bitboylam: string;
|
||||||
bittarih: Date;
|
bittarih: Date;
|
||||||
surucu: string;
|
surucu: string;
|
||||||
sefer_saniye: string;
|
sefer_saniye: string;
|
||||||
toplam_km: string;
|
toplam_km: string;
|
||||||
max_hiz: string;
|
max_hiz: string;
|
||||||
ort_hiz: string;
|
ort_hiz: string;
|
||||||
top_hiz_asim_saniye: string;
|
top_hiz_asim_saniye: string;
|
||||||
top_cezali_bek_saniye: string;
|
top_cezali_bek_saniye: string;
|
||||||
ilk_kontak_bekleme_saniye: string;
|
ilk_kontak_bekleme_saniye: string;
|
||||||
toplam_bekleme_saniye: string;
|
toplam_bekleme_saniye: string;
|
||||||
aracid: number;
|
aracid: number;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,61 +1,61 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoSession {
|
export interface MongoSession {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
expires: Date;
|
expires: Date;
|
||||||
session: Session;
|
session: Session;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Session {
|
interface Session {
|
||||||
cookie: Cookie;
|
cookie: Cookie;
|
||||||
user: User;
|
user: User;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface User {
|
interface User {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
username: string;
|
username: string;
|
||||||
pushToken: string;
|
pushToken: string;
|
||||||
profile: Profile;
|
profile: Profile;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Profile {
|
interface Profile {
|
||||||
IP: string;
|
IP: string;
|
||||||
EMAIL: string;
|
EMAIL: string;
|
||||||
KULLANICIID: number;
|
KULLANICIID: number;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
ADSOYAD: string;
|
ADSOYAD: string;
|
||||||
TEL1: string;
|
TEL1: string;
|
||||||
TEL2: string;
|
TEL2: string;
|
||||||
APP_GENERAL_DATA: APPGENERALDATA;
|
APP_GENERAL_DATA: APPGENERALDATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface APPGENERALDATA {
|
interface APPGENERALDATA {
|
||||||
APP_NAME: string;
|
APP_NAME: string;
|
||||||
LANG: string;
|
LANG: string;
|
||||||
MAP_TYPE: string;
|
MAP_TYPE: string;
|
||||||
MAP_PROVIDERS: string;
|
MAP_PROVIDERS: string;
|
||||||
SHOW_TRAFFIC: boolean;
|
SHOW_TRAFFIC: boolean;
|
||||||
GROUP_ASSETS: boolean;
|
GROUP_ASSETS: boolean;
|
||||||
DATA_MANAGE: DATAMANAGE;
|
DATA_MANAGE: DATAMANAGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface DATAMANAGE {
|
interface DATAMANAGE {
|
||||||
TYPE: string;
|
TYPE: string;
|
||||||
VALUE: string;
|
VALUE: string;
|
||||||
NOTIFICATIONS: NOTIFICATIONS;
|
NOTIFICATIONS: NOTIFICATIONS;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface NOTIFICATIONS {
|
interface NOTIFICATIONS {
|
||||||
APP: boolean;
|
APP: boolean;
|
||||||
EMAIL: boolean;
|
EMAIL: boolean;
|
||||||
EMAIL_INPUT: string;
|
EMAIL_INPUT: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Cookie {
|
interface Cookie {
|
||||||
originalMaxAge: number;
|
originalMaxAge: number;
|
||||||
expires: Date;
|
expires: Date;
|
||||||
secure?: string;
|
secure?: string;
|
||||||
httpOnly: boolean;
|
httpOnly: boolean;
|
||||||
domain?: string;
|
domain?: string;
|
||||||
path: string;
|
path: string;
|
||||||
sameSite?: string;
|
sameSite?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoSistemBilgisi {
|
export interface MongoSistemBilgisi {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
MESAJTIP: number;
|
MESAJTIP: number;
|
||||||
ARACID: number;
|
ARACID: number;
|
||||||
MESAJ: string;
|
MESAJ: string;
|
||||||
SENSOR: string;
|
SENSOR: string;
|
||||||
ENLEM_F: number;
|
ENLEM_F: number;
|
||||||
BOYLAM_F: number;
|
BOYLAM_F: number;
|
||||||
ARACGPSID: string;
|
ARACGPSID: string;
|
||||||
MONGO_ARACGPSID: string;
|
MONGO_ARACGPSID: string;
|
||||||
EMAIL: string;
|
EMAIL: string;
|
||||||
TARIH: Date;
|
TARIH: Date;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,37 +1,37 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoSorunBildir {
|
export interface MongoSorunBildir {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
tipi: string;
|
tipi: string;
|
||||||
tel: string;
|
tel: string;
|
||||||
detay: string;
|
detay: string;
|
||||||
user: User;
|
user: User;
|
||||||
username: string;
|
username: string;
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
email: string;
|
email: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface User {
|
interface User {
|
||||||
KULLANICIID: number;
|
KULLANICIID: number;
|
||||||
KULLANICIADI: string;
|
KULLANICIADI: string;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
ADSOYAD: string;
|
ADSOYAD: string;
|
||||||
KAYITTARIH: Date;
|
KAYITTARIH: Date;
|
||||||
UPDATETARIH: Date;
|
UPDATETARIH: Date;
|
||||||
EKRAN?: string;
|
EKRAN?: string;
|
||||||
MAPTYPE: string;
|
MAPTYPE: string;
|
||||||
TEL1: string;
|
TEL1: string;
|
||||||
TEL2: string;
|
TEL2: string;
|
||||||
ADRES: string;
|
ADRES: string;
|
||||||
SEHIR: string;
|
SEHIR: string;
|
||||||
GIRISTARIH1: Date;
|
GIRISTARIH1: Date;
|
||||||
GIRISTARIH2: Date;
|
GIRISTARIH2: Date;
|
||||||
BLOKAJONAY: string;
|
BLOKAJONAY: string;
|
||||||
NOT: string;
|
NOT: string;
|
||||||
ARACLAR: number[];
|
ARACLAR: number[];
|
||||||
EMAIL: string;
|
EMAIL: string;
|
||||||
clustermarker: number;
|
clustermarker: number;
|
||||||
SIFRE: string;
|
SIFRE: string;
|
||||||
PAROLA: string;
|
PAROLA: string;
|
||||||
AKTIF: number;
|
AKTIF: number;
|
||||||
ENC_PAROLA: string;
|
ENC_PAROLA: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,27 +1,27 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoSuruculer {
|
export interface MongoSuruculer {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
ID: number;
|
ID: number;
|
||||||
KULLANICIID: number;
|
KULLANICIID: number;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
ADSOYAD: string;
|
ADSOYAD: string;
|
||||||
KARTNO: string;
|
KARTNO: string;
|
||||||
EMAIL: string;
|
EMAIL: string;
|
||||||
EHLIYETTIP: string;
|
EHLIYETTIP: string;
|
||||||
TEL1: string;
|
TEL1: string;
|
||||||
TEL2: string;
|
TEL2: string;
|
||||||
TEL3: string;
|
TEL3: string;
|
||||||
ADRES: string;
|
ADRES: string;
|
||||||
IL: string;
|
IL: string;
|
||||||
ILCE: string;
|
ILCE: string;
|
||||||
SSKNO: string;
|
SSKNO: string;
|
||||||
TCKIMLIK: string;
|
TCKIMLIK: string;
|
||||||
KAYITTARIH: Date;
|
KAYITTARIH: Date;
|
||||||
UPDATETARIH: Date;
|
UPDATETARIH: Date;
|
||||||
ALAN1: string;
|
ALAN1: string;
|
||||||
ALAN2: string;
|
ALAN2: string;
|
||||||
ALAN3: string;
|
ALAN3: string;
|
||||||
AKTIF: number;
|
AKTIF: number;
|
||||||
KARTOKUTMA: Date;
|
KARTOKUTMA: Date;
|
||||||
picture: string;
|
picture: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,22 +1,22 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoTakipGpsDataByDay {
|
export interface MongoTakipGpsDataByDay {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
D: string;
|
D: string;
|
||||||
AID: number;
|
AID: number;
|
||||||
LOG: LOG[];
|
LOG: LOG[];
|
||||||
UDT: Date;
|
UDT: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface LOG {
|
interface LOG {
|
||||||
IS: number;
|
IS: number;
|
||||||
TKMT: number;
|
TKMT: number;
|
||||||
S: number;
|
S: number;
|
||||||
DT: Date;
|
DT: Date;
|
||||||
DI: string;
|
DI: string;
|
||||||
L: L;
|
L: L;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface L {
|
interface L {
|
||||||
type: string;
|
type: string;
|
||||||
coordinates: number[];
|
coordinates: number[];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,103 +1,103 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
import { Gps_Accuracy } from "../graphql_server_types.ts";
|
import { Gps_Accuracy } from "../graphql_server_types.ts";
|
||||||
|
|
||||||
export interface MongoTakipGpsYeni {
|
export interface MongoTakipGpsYeni {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
TGID: number;
|
TGID: number;
|
||||||
ARACID: number;
|
ARACID: number;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
BOLGEID: number;
|
BOLGEID: number;
|
||||||
BAYIID: number;
|
BAYIID: number;
|
||||||
KULLANICIID: number;
|
KULLANICIID: number;
|
||||||
TARIH: Date;
|
TARIH: Date;
|
||||||
ENLEM: string;
|
ENLEM: string;
|
||||||
BOYLAM: string;
|
BOYLAM: string;
|
||||||
HIZ: number;
|
HIZ: number;
|
||||||
YON: number;
|
YON: number;
|
||||||
KONTAK: number;
|
KONTAK: number;
|
||||||
INDEKS: number;
|
INDEKS: number;
|
||||||
TOPLAMKM: number;
|
TOPLAMKM: number;
|
||||||
GUNLUKKM: number;
|
GUNLUKKM: number;
|
||||||
AKUKESIK: number;
|
AKUKESIK: number;
|
||||||
SICAKLIKLIMIT: number;
|
SICAKLIKLIMIT: number;
|
||||||
SICAKLIKDEGER: string;
|
SICAKLIKDEGER: string;
|
||||||
HIZLIMIT: number;
|
HIZLIMIT: number;
|
||||||
MOTORBLOKAJ: number;
|
MOTORBLOKAJ: number;
|
||||||
YURTDISIGPRS: number;
|
YURTDISIGPRS: number;
|
||||||
MARKA: string;
|
MARKA: string;
|
||||||
PORTNO: string;
|
PORTNO: string;
|
||||||
IMEI: string;
|
IMEI: string;
|
||||||
GSM: string;
|
GSM: string;
|
||||||
ARACTANIM: string;
|
ARACTANIM: string;
|
||||||
PLAKA: string;
|
PLAKA: string;
|
||||||
TONAJ: string;
|
TONAJ: string;
|
||||||
MODELYILI: number;
|
MODELYILI: number;
|
||||||
KAYITKM: string;
|
KAYITKM: string;
|
||||||
KAYITTARIH: Date;
|
KAYITTARIH: Date;
|
||||||
UPDATETARIH: Date;
|
UPDATETARIH: Date;
|
||||||
AYAR: number;
|
AYAR: number;
|
||||||
MARKER: string;
|
MARKER: string;
|
||||||
SISTEMBILGISI: number;
|
SISTEMBILGISI: number;
|
||||||
VISIBLE: number;
|
VISIBLE: number;
|
||||||
SURUCU: string;
|
SURUCU: string;
|
||||||
ARAC_SAHIBI: string;
|
ARAC_SAHIBI: string;
|
||||||
MODEL: string;
|
MODEL: string;
|
||||||
RENK: string;
|
RENK: string;
|
||||||
SASINO: string;
|
SASINO: string;
|
||||||
NOT: string;
|
NOT: string;
|
||||||
AKTIF: number;
|
AKTIF: number;
|
||||||
HAR_MESAJ_SURESI: string;
|
HAR_MESAJ_SURESI: string;
|
||||||
MESAFE_MESAJ_PERIYOT: string;
|
MESAFE_MESAJ_PERIYOT: string;
|
||||||
OFFLINE_MESAJ_SURESI: string;
|
OFFLINE_MESAJ_SURESI: string;
|
||||||
SMS_MESAJ_SURESI: string;
|
SMS_MESAJ_SURESI: string;
|
||||||
TRANSID: number;
|
TRANSID: number;
|
||||||
TOPLAMKMTARIH: Date;
|
TOPLAMKMTARIH: Date;
|
||||||
ADRES: string;
|
ADRES: string;
|
||||||
GSMHATA: number;
|
GSMHATA: number;
|
||||||
GPSHATA: number;
|
GPSHATA: number;
|
||||||
GUNUNTOPLAMKM: number;
|
GUNUNTOPLAMKM: number;
|
||||||
VNOTIF: number;
|
VNOTIF: number;
|
||||||
GUNUN_SON_KM: number;
|
GUNUN_SON_KM: number;
|
||||||
BAGLANMA_TARIH: Date;
|
BAGLANMA_TARIH: Date;
|
||||||
BAGLI: boolean;
|
BAGLI: boolean;
|
||||||
BOYLAM_F: number;
|
BOYLAM_F: number;
|
||||||
ENLEM_F: number;
|
ENLEM_F: number;
|
||||||
GPS_DOGRULUK: Gps_Accuracy;
|
GPS_DOGRULUK: Gps_Accuracy;
|
||||||
LOC: ILoc;
|
LOC: ILoc;
|
||||||
SUNUCUTARIH: Date;
|
SUNUCUTARIH: Date;
|
||||||
UYDU_SAYI: number;
|
UYDU_SAYI: number;
|
||||||
KOPMA_TARIH: Date;
|
KOPMA_TARIH: Date;
|
||||||
KARTOKUTMA: string;
|
KARTOKUTMA: string;
|
||||||
FOLLOWERS: string[];
|
FOLLOWERS: string[];
|
||||||
UNVAN: string;
|
UNVAN: string;
|
||||||
YETKILI: string;
|
YETKILI: string;
|
||||||
LOC_LS: ILocLs;
|
LOC_LS: ILocLs;
|
||||||
KONTAK_ACTI_TARIH: Date;
|
KONTAK_ACTI_TARIH: Date;
|
||||||
KONTAK_KAPADI_TARIH: Date;
|
KONTAK_KAPADI_TARIH: Date;
|
||||||
CANBUS_DATA: ICanBusData;
|
CANBUS_DATA: ICanBusData;
|
||||||
DELTAMESAFE: number;
|
DELTAMESAFE: number;
|
||||||
RTCHATA: number;
|
RTCHATA: number;
|
||||||
MAXDURMADEVAM: number;
|
MAXDURMADEVAM: number;
|
||||||
GSENSORDEVAM: number;
|
GSENSORDEVAM: number;
|
||||||
CEVRIMDISIKAYIT: number;
|
CEVRIMDISIKAYIT: number;
|
||||||
EKLENMETARIH: Date;
|
EKLENMETARIH: Date;
|
||||||
ROLANTIDEVAM: number;
|
ROLANTIDEVAM: number;
|
||||||
updatedAt: Date;
|
updatedAt: Date;
|
||||||
MOTOR_BLOKAJ: number;
|
MOTOR_BLOKAJ: number;
|
||||||
SLEEP: boolean;
|
SLEEP: boolean;
|
||||||
SLEEPMODE: number;
|
SLEEPMODE: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ICanBusData {
|
export interface ICanBusData {
|
||||||
err: string;
|
err: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ILocLs {
|
export interface ILocLs {
|
||||||
coordinates: number[][];
|
coordinates: number[][];
|
||||||
type: string;
|
type: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ILoc {
|
export interface ILoc {
|
||||||
type: string;
|
type: string;
|
||||||
coordinates: number[];
|
coordinates: number[];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
export interface MongoTakipVeriAyar {
|
export interface MongoTakipVeriAyar {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
KONTROL: number;
|
KONTROL: number;
|
||||||
EMAIL: string;
|
EMAIL: string;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
KULLANICIID: number;
|
KULLANICIID: number;
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
updatedAt: Date;
|
updatedAt: Date;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,304 +0,0 @@
|
|||||||
import { ObjectId } from "npm:mongodb";
|
|
||||||
export type ID = string | number | ObjectId;
|
|
||||||
export type Maybe<T> = T | null;
|
|
||||||
|
|
||||||
export interface IGpsElement {
|
|
||||||
gpsDate: Date;
|
|
||||||
lon: number;
|
|
||||||
lat: number;
|
|
||||||
speed: number;
|
|
||||||
totalKm: number;
|
|
||||||
angle: number;
|
|
||||||
gnssAccuracy: number;
|
|
||||||
satCount: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum ESleepModes {
|
|
||||||
Disable = 0,
|
|
||||||
GpsSleep = 1,
|
|
||||||
DeepSleep = 2,
|
|
||||||
OnlineDeepSleep = 3,
|
|
||||||
UltraSleep = 4,
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum EDataModes {
|
|
||||||
HomeOnStop = 0,
|
|
||||||
HomeOnMoving = 1,
|
|
||||||
RoamingOnStop = 2,
|
|
||||||
RoamingOnMoving = 3,
|
|
||||||
UnknownOnStop = 4,
|
|
||||||
UnknownOnMoving = 5,
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum EMovementStatus {
|
|
||||||
MovementOff = 0,
|
|
||||||
MovementOn = 1,
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ISleep {
|
|
||||||
mode: ESleepModes;
|
|
||||||
sleepDate: Date;
|
|
||||||
awakeDate: Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IConnected {
|
|
||||||
state: boolean;
|
|
||||||
connectedDate: Date;
|
|
||||||
disconnectedDate: Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IIgnition {
|
|
||||||
state: boolean;
|
|
||||||
onDate: Date;
|
|
||||||
offDate: Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum EGnssStatus {
|
|
||||||
GNSSOff = 0,
|
|
||||||
GNSSOnWithFix = 1,
|
|
||||||
GNSSOnWithoutFix = 2,
|
|
||||||
GNSSSleep = 3,
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IGnss {
|
|
||||||
status: EGnssStatus;
|
|
||||||
gnssPdop: number;
|
|
||||||
gnssHdop: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum EBatteryState {
|
|
||||||
Present = 0,
|
|
||||||
Unplugged = 1,
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IVoltage {
|
|
||||||
externalVolt: number;
|
|
||||||
batteryVolt: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IBattery {
|
|
||||||
state: EBatteryState;
|
|
||||||
batteryAmper: number;
|
|
||||||
batteryPercentage: number;
|
|
||||||
batteryTemp: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IInputs {
|
|
||||||
digital1: number;
|
|
||||||
digital2: number;
|
|
||||||
digital3: number;
|
|
||||||
analog1: number;
|
|
||||||
analog2: number;
|
|
||||||
analog3: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IOutputs {
|
|
||||||
digital1: number;
|
|
||||||
digital2: number;
|
|
||||||
digital3: number;
|
|
||||||
analog1: number;
|
|
||||||
analog2: number;
|
|
||||||
analog3: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IAxis {
|
|
||||||
x: number;
|
|
||||||
y: number;
|
|
||||||
z: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum EBluetoothStatus {
|
|
||||||
Disabled = 0,
|
|
||||||
EnabledNoDevice = 1,
|
|
||||||
DeviceConnectedBTv3 = 2,
|
|
||||||
DeviceConnectedBLEOnly = 3,
|
|
||||||
DeviceConnectedBLEAndBT = 4,
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum ESdStatus {
|
|
||||||
NotPresent = 0,
|
|
||||||
Present = 1,
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum EVehicleState {
|
|
||||||
Moving = 0,
|
|
||||||
Idling = 1,
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum ETowingState {
|
|
||||||
Steady = 0,
|
|
||||||
Towing = 1,
|
|
||||||
}
|
|
||||||
export enum ECrashDetection {
|
|
||||||
RealCrashCalibrated = 1,
|
|
||||||
LimitedCrashTraceNotCalibrated = 2,
|
|
||||||
LimitedCrashTraceCalibrated = 3,
|
|
||||||
FullCrashTraceNotCalibrated = 4,
|
|
||||||
FullCrashTraceCalibrated = 5,
|
|
||||||
RealCrashNotCalibrated = 6,
|
|
||||||
FakeCrashPothole = 7,
|
|
||||||
FakeCrashSpeedCheck = 8,
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum EiButtonConnection {
|
|
||||||
NotConnected = 0,
|
|
||||||
ConnectedImmobilizer = 1,
|
|
||||||
ConnectedAuthorizedDriving = 2,
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum EJammingStatus {
|
|
||||||
JammingStop = 0,
|
|
||||||
JammingStart = 1,
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum EAlarmStatus {
|
|
||||||
Reserved = 0,
|
|
||||||
AlarmOccurred = 1,
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum EAutoGeofence {
|
|
||||||
LeftTargetZone = 0,
|
|
||||||
EnterTargetZone = 1,
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum ETripStatus {
|
|
||||||
TripStop = 0,
|
|
||||||
TripStart = 1,
|
|
||||||
BusinessStatus = 2,
|
|
||||||
PrivateStatus = 3,
|
|
||||||
CustomStatus1 = 4,
|
|
||||||
CustomStatus2 = 5,
|
|
||||||
CustomStatus3 = 6,
|
|
||||||
CustomStatus4 = 7,
|
|
||||||
CustomStatus5 = 8,
|
|
||||||
CustomStatus6 = 9,
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IDeviceStateElement {
|
|
||||||
connected: IConnected;
|
|
||||||
sleep: ISleep;
|
|
||||||
dataMode: EDataModes;
|
|
||||||
movement: EMovementStatus;
|
|
||||||
gnss: IGnss;
|
|
||||||
voltage: IVoltage;
|
|
||||||
input?: IInputs;
|
|
||||||
output?: IOutputs;
|
|
||||||
axis?: IAxis;
|
|
||||||
btStatus: EBluetoothStatus;
|
|
||||||
sdStatus: ESdStatus;
|
|
||||||
idling: EVehicleState;
|
|
||||||
towing: ETowingState;
|
|
||||||
battery: IBattery;
|
|
||||||
crashDetection: ECrashDetection;
|
|
||||||
immo: EiButtonConnection;
|
|
||||||
jamming: EJammingStatus;
|
|
||||||
alarm: EAlarmStatus;
|
|
||||||
trip: ETripStatus;
|
|
||||||
autoGeofence: EAutoGeofence;
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum ENetworkTypes {
|
|
||||||
ThreeG = 0,
|
|
||||||
Gsm = 1,
|
|
||||||
FourG = 2,
|
|
||||||
LteCatM1 = 3,
|
|
||||||
LteCatNb1 = 4,
|
|
||||||
Unknown = 99,
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IGsm {
|
|
||||||
_id: ID;
|
|
||||||
gsmNo: string;
|
|
||||||
gsmCellId: string;
|
|
||||||
gsmAreaCode: string;
|
|
||||||
gsmSignal: number;
|
|
||||||
gsmOp: string;
|
|
||||||
iccid1: string;
|
|
||||||
iccid2: string;
|
|
||||||
networkType: ENetworkTypes;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IDeviceElement {
|
|
||||||
_id: ID;
|
|
||||||
imei: string;
|
|
||||||
gsmElement: IGsm;
|
|
||||||
gpsElement: IGpsElement;
|
|
||||||
stateElement: IDeviceStateElement;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ITracking {
|
|
||||||
_id: ID;
|
|
||||||
assetId: ID;
|
|
||||||
deviceId: ID;
|
|
||||||
imei: string;
|
|
||||||
port: string;
|
|
||||||
gpsElement: IGpsElement;
|
|
||||||
pingDate: Date;
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum ELocationStatus {
|
|
||||||
HomeOnStop = 0,
|
|
||||||
HomeOnMoving = 1,
|
|
||||||
RoamingOnStop = 2,
|
|
||||||
RoamingOnMoving = 3,
|
|
||||||
UnknownOnStop = 4,
|
|
||||||
UnknownOnMoving = 5,
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum EVehicleStatus {
|
|
||||||
GpsIsIncorrect = "_device_gps_is_incorrect",
|
|
||||||
Idling = "_device_is_idling",
|
|
||||||
Moving = "_device_is_moving",
|
|
||||||
Out = "_device_is_out",
|
|
||||||
Stoping = "_device_is_stoping",
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IVehicleStateElement {
|
|
||||||
ignition: IIgnition;
|
|
||||||
state: EVehicleStatus;
|
|
||||||
locationState: ELocationStatus;
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum EAssetTypes {
|
|
||||||
Baby = "_baby",
|
|
||||||
Bicycle = "_bicycle",
|
|
||||||
Bus = "_bus",
|
|
||||||
Car = "_car",
|
|
||||||
Child = "_child",
|
|
||||||
Dog = "_dog",
|
|
||||||
Forklift = "_forklift",
|
|
||||||
Human = "_human",
|
|
||||||
Motorbike = "_motorbike",
|
|
||||||
Stuff = "_stuff",
|
|
||||||
Tractor = "_tractor",
|
|
||||||
Truck = "_truck",
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum EAssetValidTypes {
|
|
||||||
Passive = 0,
|
|
||||||
Active = 1,
|
|
||||||
Debt = 2,
|
|
||||||
Suspend = 3,
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface IVehicleElement {
|
|
||||||
assetId: ID;
|
|
||||||
driverId: ID;
|
|
||||||
owner: ID;
|
|
||||||
followers: ID[];
|
|
||||||
assetType: EAssetTypes;
|
|
||||||
name1: string;
|
|
||||||
name2: string;
|
|
||||||
name3: string;
|
|
||||||
description1: string;
|
|
||||||
description2: string;
|
|
||||||
registeredDate: Date;
|
|
||||||
updatedDate: Date;
|
|
||||||
modelYear: number;
|
|
||||||
currentKm: number;
|
|
||||||
valid: EAssetValidTypes;
|
|
||||||
showOnMap: boolean;
|
|
||||||
chassis_num: string;
|
|
||||||
brand: string;
|
|
||||||
color: string;
|
|
||||||
}
|
|
||||||
@ -1,55 +1,55 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
|
|
||||||
export interface MongoUsers {
|
export interface MongoUsers {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
createdAt: Date;
|
createdAt: Date;
|
||||||
services: Services;
|
services: Services;
|
||||||
username: string;
|
username: string;
|
||||||
profile: Profile;
|
profile: Profile;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Profile {
|
interface Profile {
|
||||||
KULLANICIID: number;
|
KULLANICIID: number;
|
||||||
KULLANICIADI: string;
|
KULLANICIADI: string;
|
||||||
SIFRE: string;
|
SIFRE: string;
|
||||||
MUSTERIID: number;
|
MUSTERIID: number;
|
||||||
ADSOYAD: string;
|
ADSOYAD: string;
|
||||||
KAYITTARIH: Date;
|
KAYITTARIH: Date;
|
||||||
UPDATETARIH: Date;
|
UPDATETARIH: Date;
|
||||||
EKRAN: string;
|
EKRAN: string;
|
||||||
MAPTYPE: string;
|
MAPTYPE: string;
|
||||||
TEL1: string;
|
TEL1: string;
|
||||||
TEL2: string;
|
TEL2: string;
|
||||||
ADRES: string;
|
ADRES: string;
|
||||||
SEHIR: string;
|
SEHIR: string;
|
||||||
EMAIL: string;
|
EMAIL: string;
|
||||||
GIRISTARIH1: Date;
|
GIRISTARIH1: Date;
|
||||||
GIRISTARIH2: Date;
|
GIRISTARIH2: Date;
|
||||||
BLOKAJONAY: string;
|
BLOKAJONAY: string;
|
||||||
NOT: string;
|
NOT: string;
|
||||||
ARACLAR: number[];
|
ARACLAR: number[];
|
||||||
clustermarker: number;
|
clustermarker: number;
|
||||||
AKTIF: number;
|
AKTIF: number;
|
||||||
PAROLA: string;
|
PAROLA: string;
|
||||||
NOKTALAR: ID[];
|
NOKTALAR: ID[];
|
||||||
ENC_PAROLA: string;
|
ENC_PAROLA: string;
|
||||||
PHOTOURL: string;
|
PHOTOURL: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Services {
|
interface Services {
|
||||||
password: Password;
|
password: Password;
|
||||||
resume: Resume;
|
resume: Resume;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Resume {
|
interface Resume {
|
||||||
loginTokens: LoginToken[];
|
loginTokens: LoginToken[];
|
||||||
}
|
}
|
||||||
|
|
||||||
interface LoginToken {
|
interface LoginToken {
|
||||||
when: Date;
|
when: Date;
|
||||||
hashedToken: string;
|
hashedToken: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Password {
|
interface Password {
|
||||||
bcrypt: string;
|
bcrypt: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,25 +1,25 @@
|
|||||||
import { ID } from "./MongoTypes.ts";
|
import { ID } from "./DefaultTypes.ts";
|
||||||
|
|
||||||
export interface MongoYetkisiCihazlar {
|
export interface MongoYetkisiCihazlar {
|
||||||
_id: ID;
|
_id: ID;
|
||||||
IMEI: string;
|
IMEI: string;
|
||||||
ADRES: string;
|
ADRES: string;
|
||||||
BOYLAM: string;
|
BOYLAM: string;
|
||||||
BOYLAM_F: number;
|
BOYLAM_F: number;
|
||||||
ENLEM: string;
|
ENLEM: string;
|
||||||
ENLEM_F: number;
|
ENLEM_F: number;
|
||||||
HIZ: number;
|
HIZ: number;
|
||||||
INDEKS: number;
|
INDEKS: number;
|
||||||
KONTAK: number;
|
KONTAK: number;
|
||||||
LOC: LOC;
|
LOC: LOC;
|
||||||
PORTNO: string;
|
PORTNO: string;
|
||||||
SUNUCUTARIH: Date;
|
SUNUCUTARIH: Date;
|
||||||
TARIH: Date;
|
TARIH: Date;
|
||||||
TOPLAMKM: number;
|
TOPLAMKM: number;
|
||||||
YON: number;
|
YON: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface LOC {
|
interface LOC {
|
||||||
type: string;
|
type: string;
|
||||||
coordinates: number[];
|
coordinates: number[];
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue