main
emehmet 3 years ago
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 {
_id: ID;
ARACID: number;
IMEI: string;
SENSOR: string;
DEGER: string;
MUSTERIID: number;
KULLANICIID: number;
SMS: string;
EMAIL: string;
BILDIRIM: string;
AYARLANDIMI: string;
TARIH: Date;
_id: ID;
ARACID: number;
IMEI: string;
SENSOR: string;
DEGER: string;
MUSTERIID: number;
KULLANICIID: number;
SMS: string;
EMAIL: string;
BILDIRIM: string;
AYARLANDIMI: string;
TARIH: Date;
}

@ -1,11 +1,11 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoAracAyarlar {
_id: ID;
AID: number;
CREATEDAT: Date;
FCICL: number;
KULLANICIID: number;
MUSTERIID: number;
UPDATEDAT: Date;
FCOCL: number;
_id: ID;
AID: number;
CREATEDAT: Date;
FCICL: number;
KULLANICIID: number;
MUSTERIID: number;
UPDATEDAT: Date;
FCOCL: number;
}

@ -1,9 +1,9 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoAracGruplar {
_id: ID;
ARACID: number;
KULLANICIID: number;
MUSTERIID: number;
GRUP: ID[];
updatedAt: Date;
_id: ID;
ARACID: number;
KULLANICIID: number;
MUSTERIID: number;
GRUP: ID[];
updatedAt: Date;
}

@ -1,25 +1,25 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoAssetAlarmKomut {
_id: ID;
AID: number;
SAVED: boolean;
aas_id: ID;
ALARM_TYPE: string;
DATA_PROPS: DATAPROPS;
KID: number;
MID: number;
RETRIES: number;
SAVED_AT: Date;
SENT: boolean;
SENT_AT: Date;
UPDATED_AT: Date;
_id: ID;
AID: number;
SAVED: boolean;
aas_id: ID;
ALARM_TYPE: string;
DATA_PROPS: DATAPROPS;
KID: number;
MID: number;
RETRIES: number;
SAVED_AT: Date;
SENT: boolean;
SENT_AT: Date;
UPDATED_AT: Date;
}
interface DATAPROPS {
SPEED_LIMIT: number;
SUDDEN_ACCEL_LIMIT_KM: number;
SUDDEN_DECEL_LIMIT_KM: number;
IDLING_MINUTE_LIMIT: number;
MIN_TEMP: number;
MAX_TEMP: number;
SPEED_LIMIT: number;
SUDDEN_ACCEL_LIMIT_KM: number;
SUDDEN_DECEL_LIMIT_KM: number;
IDLING_MINUTE_LIMIT: number;
MIN_TEMP: number;
MAX_TEMP: number;
}

@ -1,24 +1,24 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoAssetAlarmNotifications {
_id: ID;
AID: number;
ALARM_TYPE: string;
KID: number;
aas_id: string;
NOTIFY: NOTIFY;
UPDATED_AT: Date;
_id: ID;
AID: number;
ALARM_TYPE: string;
KID: number;
aas_id: string;
NOTIFY: NOTIFY;
UPDATED_AT: Date;
}
interface NOTIFY {
APP: APP;
EMAIL: EMAIL;
APP: APP;
EMAIL: EMAIL;
}
interface EMAIL {
NOTIFY: boolean;
EMAILS: string[];
NOTIFY: boolean;
EMAILS: string[];
}
interface APP {
NOTIFY: boolean;
NOTIFY: boolean;
}

@ -1,28 +1,28 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoAssetAlarmSetup {
_id: ID;
AID: number;
ALARM_TYPE: string;
ALARM_PROPS: ALARMPROPS;
BY_DEVICE: BYDEVICE;
ENABLE: boolean;
KID: number;
UPDATED_AT: Date;
_id: ID;
AID: number;
ALARM_TYPE: string;
ALARM_PROPS: ALARMPROPS;
BY_DEVICE: BYDEVICE;
ENABLE: boolean;
KID: number;
UPDATED_AT: Date;
}
interface BYDEVICE {
IN_DEVICE: boolean;
SETTED: boolean;
IN_DEVICE: boolean;
SETTED: boolean;
}
interface ALARMPROPS {
SPEED_LIMIT: number;
START_TIME: string;
END_TIME: string;
SHIFT_TYPE: boolean;
SUDDEN_ACCEL_LIMIT_KM: number;
SUDDEN_DECEL_LIMIT_KM: number;
IDLING_MINUTE_LIMIT: number;
MIN_TEMP: number;
MAX_TEMP: number;
SPEED_LIMIT: number;
START_TIME: string;
END_TIME: string;
SHIFT_TYPE: boolean;
SUDDEN_ACCEL_LIMIT_KM: number;
SUDDEN_DECEL_LIMIT_KM: number;
IDLING_MINUTE_LIMIT: number;
MIN_TEMP: number;
MAX_TEMP: number;
}

@ -1,40 +1,40 @@
import { ID, Maybe } from "./MongoTypes.ts";
import { ID, Maybe } from "./DefaultTypes.ts";
export interface MongoAssetAlarms {
_id: ID;
ALARM_TYPE: string;
aas_id: string;
CREATED_AT: Date;
LOC: LOC;
AID: number;
VALUE: VALUE;
_id: ID;
ALARM_TYPE: string;
aas_id: string;
CREATED_AT: Date;
LOC: LOC;
AID: number;
VALUE: VALUE;
}
export type VALUE = {
BATT_STATE?: Maybe<boolean>;
IDLING_TIME?: Maybe<number>;
IGNITION_STATE?: Maybe<boolean>;
IMPACT_DEGREE?: Maybe<number>;
MAX_WAIT_TIME?: Maybe<number>;
POINT_ID?: Maybe<string>;
POINT_IO_TYPE?: Maybe<number>;
SHIFT_TIME?: Maybe<string>;
SHIFT_TYPE?: Maybe<boolean>;
SPEED?: Maybe<number>;
SUDDEN_KM?: Maybe<number>;
TEMP?: Maybe<number>;
BATT_STATE?: Maybe<boolean>;
IDLING_TIME?: Maybe<number>;
IGNITION_STATE?: Maybe<boolean>;
IMPACT_DEGREE?: Maybe<number>;
MAX_WAIT_TIME?: Maybe<number>;
POINT_ID?: Maybe<string>;
POINT_IO_TYPE?: Maybe<number>;
SHIFT_TIME?: Maybe<string>;
SHIFT_TYPE?: Maybe<boolean>;
SPEED?: Maybe<number>;
SUDDEN_KM?: Maybe<number>;
TEMP?: Maybe<number>;
};
interface LOC {
geometry: Geometry;
properties: Properties;
type: string;
geometry: Geometry;
properties: Properties;
type: string;
}
interface Properties {
TITLE: string;
TITLE: string;
}
interface Geometry {
coordinates: number[];
type: string;
coordinates: number[];
type: string;
}

@ -1,18 +1,18 @@
import { ID, Maybe } from "./MongoTypes.ts";
import { ID, Maybe } from "./DefaultTypes.ts";
export interface MongoAssetKomut {
_id: ID;
AID: number;
KOMUT_TYPE: string;
DATA_PROPS: IDataProps;
RETRIES: number;
SAVED: boolean;
SAVED_AT: Date;
SENT: boolean;
SENT_AT: Date;
UPDATED_AT: Date;
_id: ID;
AID: number;
KOMUT_TYPE: string;
DATA_PROPS: IDataProps;
RETRIES: number;
SAVED: boolean;
SAVED_AT: Date;
SENT: boolean;
SENT_AT: Date;
UPDATED_AT: Date;
}
interface IDataProps {
VALUE?: Maybe<string>;
PRIORITY?: Maybe<string>;
VALUE?: Maybe<string>;
PRIORITY?: Maybe<string>;
}

@ -1,8 +1,8 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoAyarlarGenel {
_id: ID;
ALAN: string;
INDEX: number;
DEGER: string;
ACIKLAMA: string;
_id: ID;
ALAN: string;
INDEX: number;
DEGER: string;
ACIKLAMA: string;
}

@ -1,51 +1,51 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoCanBusData {
_id: ID;
AID: number;
/** #1. Devre servis fren hava basıncı kPa */
AIR11?: string;
/** #2. Devre servis fren hava basıncı kPa */
AIR12?: string;
/** #Ortam sıcaklığı °C */
AMB?: string;
/** #Aks lokasyonu 2 byte hex */
AXL?: string;
/** #Aks ağırlığı Kg */
AXW?: string;
/** #Toplam araç ağırlığı 10*KG */
CVF?: string;
/** #Motor soğutma suyu sıcaklığı °C */
ECT?: string;
/** #Error */
ERR?: string;
/** #Motor devri RPM */
ES?: string;
/** #Toplam yakıt kullanımı */
ETFU?: string;
/** #Motorun toplam çalışma süresi */
ETHO?: string;
/** #Yakıt tüketimi */
ETRFU?: string;
/** #Yakıt seviyesi % */
FL?: string;
/** #Yakıt Tüketimi */
FR?: string;
/** #SW ve desteklenen özellikler 10 byte hex */
FSSI?: string;
/** #Yüksek çözünürlüklü toplam yakıt tüketimi 0.001L */
HETFU?: string;
/** #Toplam kat edilen mesafe Km */
HRVD?: string;
/** #Servise kalan km */
SRV?: string;
/** #Takoraf bilgileri 12 byte hex(Detaylı bilgi için firmamız ile temas kurunuz) */
TCO1?: string;
/** #VT */
VT?: string;
/** #Araç Hızı K/s */
WS?: string;
/** #X Koordinat */
X?: string;
/** #Y Koordinat */
Y?: string;
_id: ID;
AID: number;
/** #1. Devre servis fren hava basıncı kPa */
AIR11?: string;
/** #2. Devre servis fren hava basıncı kPa */
AIR12?: string;
/** #Ortam sıcaklığı °C */
AMB?: string;
/** #Aks lokasyonu 2 byte hex */
AXL?: string;
/** #Aks ağırlığı Kg */
AXW?: string;
/** #Toplam araç ağırlığı 10*KG */
CVF?: string;
/** #Motor soğutma suyu sıcaklığı °C */
ECT?: string;
/** #Error */
ERR?: string;
/** #Motor devri RPM */
ES?: string;
/** #Toplam yakıt kullanımı */
ETFU?: string;
/** #Motorun toplam çalışma süresi */
ETHO?: string;
/** #Yakıt tüketimi */
ETRFU?: string;
/** #Yakıt seviyesi % */
FL?: string;
/** #Yakıt Tüketimi */
FR?: string;
/** #SW ve desteklenen özellikler 10 byte hex */
FSSI?: string;
/** #Yüksek çözünürlüklü toplam yakıt tüketimi 0.001L */
HETFU?: string;
/** #Toplam kat edilen mesafe Km */
HRVD?: string;
/** #Servise kalan km */
SRV?: string;
/** #Takoraf bilgileri 12 byte hex(Detaylı bilgi için firmamız ile temas kurunuz) */
TCO1?: string;
/** #VT */
VT?: string;
/** #Araç Hızı K/s */
WS?: string;
/** #X Koordinat */
X?: string;
/** #Y Koordinat */
Y?: string;
}

@ -1,14 +1,14 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoCihazHata {
_id: ID;
ENLEM: string;
BOYLAM: string;
PLAKA: string;
ARACID: number;
GSMHATA: number;
GPSHATA: number;
KONTAK: number;
MUSTERIID: number;
INDEKS: number;
HIZ: number;
_id: ID;
ENLEM: string;
BOYLAM: string;
PLAKA: string;
ARACID: number;
GSMHATA: number;
GPSHATA: number;
KONTAK: number;
MUSTERIID: number;
INDEKS: number;
HIZ: number;
}

@ -1,5 +1,5 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoCihazMarka {
_id: ID;
MARKA: string;
_id: ID;
MARKA: string;
}

@ -39,6 +39,6 @@ export * from "./MongoRaporKur.ts";
export * from "./MongoTakipGpsDataByDay.ts";
export * from "./MongoTakipGpsYeni.ts";
export * from "./MongoTakipVeriAyar.ts";
export * from "./MongoTypes.ts";
export * from "./DefaultTypes.ts";
export * from "./MongoUsers.ts";
export * from "./MongoYetkisizCihazlar.ts";

@ -1,12 +1,12 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoDurakAracDurakta {
_id: ID;
ARACID: number;
SABLONID: number;
GEOTANIMID: number;
TIPI: number;
MUSTERIID: number;
GIRDICIKTI: number;
created_at: Date;
cikis_tarih: Date;
_id: ID;
ARACID: number;
SABLONID: number;
GEOTANIMID: number;
TIPI: number;
MUSTERIID: number;
GIRDICIKTI: number;
created_at: Date;
cikis_tarih: Date;
}

@ -1,14 +1,14 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoDurakCeza {
_id: ID;
ARAC: string;
ARACID: string;
SABLONID: string;
TIP: string;
SIRA: number;
SEFER: number;
TARIH: string;
ACIKLAMA: string;
CEZASERVIS: number;
createdAt: Date;
_id: ID;
ARAC: string;
ARACID: string;
SABLONID: string;
TIP: string;
SIRA: number;
SEFER: number;
TARIH: string;
ACIKLAMA: string;
CEZASERVIS: number;
createdAt: Date;
}

@ -1,16 +1,16 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoDurakHareketSaatSablon {
_id: ID;
hareketSablonAdi: string;
startTime: string;
endTime: string;
sablonliste: string[];
selectedWeek: string[];
ihlal: string;
limit: string;
bekleme: string;
base64Obj: string;
MUSTERIID: number;
updatedAt: Date;
createdAt: Date;
_id: ID;
hareketSablonAdi: string;
startTime: string;
endTime: string;
sablonliste: string[];
selectedWeek: string[];
ihlal: string;
limit: string;
bekleme: string;
base64Obj: string;
MUSTERIID: number;
updatedAt: Date;
createdAt: Date;
}

@ -1,16 +1,16 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoDurakHareketSiralama {
_id: ID;
ARACID: string;
ARAC: string;
SABLONID: string;
TIP: string;
GIRDI: number;
CIKTI: number;
TARIH: string;
enteredDate: Date;
exitedDate: Date;
dateTime: Date;
SEFER: number;
SIRA: number;
_id: ID;
ARACID: string;
ARAC: string;
SABLONID: string;
TIP: string;
GIRDI: number;
CIKTI: number;
TARIH: string;
enteredDate: Date;
exitedDate: Date;
dateTime: Date;
SEFER: number;
SIRA: number;
}

@ -1,14 +1,14 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoDurakTabelaHareket {
_id: ID;
GIRDI: number;
CIKTI: number;
enteredDate: Date;
ARACID: string;
ARAC: string;
SABLONID: string;
TIP: string;
TARIH: string;
dateTime: Date;
exitedDate: Date;
_id: ID;
GIRDI: number;
CIKTI: number;
enteredDate: Date;
ARACID: string;
ARAC: string;
SABLONID: string;
TIP: string;
TARIH: string;
dateTime: Date;
exitedDate: Date;
}

@ -1,27 +1,27 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoDurakTabelaSablonlar {
_id: ID;
TABELA_ID: string;
MUSTERIID: number;
SABLONID: string;
TIP: string;
SABLONADI: string;
SABLONTANIM: string;
BASSAAT: string;
BITSAAT: string;
YAZI: string;
HAREKETDUE: string;
updatedDate: Date;
CreatedDate: Date;
CIKISTIME: string;
ARAC: string;
ARACID: string;
CIKISARAC: string;
CIKISARACID: string;
TRANSIT: number;
COKLU: number;
IHLAL: string;
SONRAKIARAC: string;
SONRAKIARACID: string;
YAZI2020: string;
_id: ID;
TABELA_ID: string;
MUSTERIID: number;
SABLONID: string;
TIP: string;
SABLONADI: string;
SABLONTANIM: string;
BASSAAT: string;
BITSAAT: string;
YAZI: string;
HAREKETDUE: string;
updatedDate: Date;
CreatedDate: Date;
CIKISTIME: string;
ARAC: string;
ARACID: string;
CIKISARAC: string;
CIKISARACID: string;
TRANSIT: number;
COKLU: number;
IHLAL: string;
SONRAKIARAC: string;
SONRAKIARACID: string;
YAZI2020: string;
}

@ -1,18 +1,18 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoDurakTabelalar {
_id: ID;
FILE: number;
TANIM: string;
IP: string;
PORT: string;
OLCU: string;
updatedDate: Date;
createdDate: Date;
MUSTERIID: number;
SHOW: number;
MULTI: number;
WEIGHT: number;
ISIK: number;
GSM: string;
SABITYAZI: string;
_id: ID;
FILE: number;
TANIM: string;
IP: string;
PORT: string;
OLCU: string;
updatedDate: Date;
createdDate: Date;
MUSTERIID: number;
SHOW: number;
MULTI: number;
WEIGHT: number;
ISIK: number;
GSM: string;
SABITYAZI: string;
}

@ -1,12 +1,12 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoGeoAdres {
_id: ID;
adres: string;
loc: Loc;
createdAt: Date;
_id: ID;
adres: string;
loc: Loc;
createdAt: Date;
}
interface Loc {
type: string;
coordinates: number[];
type: string;
coordinates: number[];
}

@ -1,30 +1,30 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoGpsPoints {
_id: ID;
KID: number;
MID: number;
CREATED_AT: Date;
UPDATED_AT: Date;
STATUS: number;
ISDELETED: boolean;
LOC: LOC;
_id: ID;
KID: number;
MID: number;
CREATED_AT: Date;
UPDATED_AT: Date;
STATUS: number;
ISDELETED: boolean;
LOC: LOC;
}
interface LOC {
type: string;
geometry: Geometry;
properties: Properties;
type: string;
geometry: Geometry;
properties: Properties;
}
interface Properties {
TITLE: string;
CONTENT: string;
RADIUS: string;
ICON: string;
COLOR: string;
TITLE: string;
CONTENT: string;
RADIUS: string;
ICON: string;
COLOR: string;
}
interface Geometry {
type: string;
coordinates: number[];
type: string;
coordinates: number[];
}

@ -1,9 +1,9 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoGruplar {
_id: ID;
GRUPADI: string;
KAYITTARIH: Date;
MUSTERIID: number;
KULLANICIID: number;
UPDATETARIH: Date;
_id: ID;
GRUPADI: string;
KAYITTARIH: Date;
MUSTERIID: number;
KULLANICIID: number;
UPDATETARIH: Date;
}

@ -1,12 +1,12 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoGsmHatlar {
_id: ID;
BAYIID: string;
GSM: string;
TARIFE: string;
GSM_IMEI: string;
AKTIF: number;
KAYITTARIH: Date;
OPERATOR: string;
UPDATETARIH: Date;
_id: ID;
BAYIID: string;
GSM: string;
TARIFE: string;
GSM_IMEI: string;
AKTIF: number;
KAYITTARIH: Date;
OPERATOR: string;
UPDATETARIH: Date;
}

@ -1,13 +1,13 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoHatirlatma {
_id: ID;
ARACID: number;
TIPI: string;
modeltarih: string;
modeltarihperiyot: string;
hat_email_text: string;
hatbaszaman: string;
gonderimAdet: number;
bakimkm: string;
bakimkmhatirlatma: string;
_id: ID;
ARACID: number;
TIPI: string;
modeltarih: string;
modeltarihperiyot: string;
hat_email_text: string;
hatbaszaman: string;
gonderimAdet: number;
bakimkm: string;
bakimkmhatirlatma: string;
}

@ -1,14 +1,14 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoIslemCihaz {
_id: ID;
ARACID: number;
ACIKLAMA: string;
createdAt: Date;
AYDEX: string;
YILDEX: string;
CIHAZID: number;
MUSTERIID: number;
IMEI: string;
GSM: string;
SEBEP: string;
_id: ID;
ARACID: number;
ACIKLAMA: string;
createdAt: Date;
AYDEX: string;
YILDEX: string;
CIHAZID: number;
MUSTERIID: number;
IMEI: string;
GSM: string;
SEBEP: string;
}

@ -1,12 +1,12 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface RootObject {
_id: ID;
KARTNO: string;
SURUCUID: ID;
ARACID: number;
MUSTERIID: number;
PORTNO: string;
GUNDEX: string;
AYDEX: string;
createdAt: Date;
_id: ID;
KARTNO: string;
SURUCUID: ID;
ARACID: number;
MUSTERIID: number;
PORTNO: string;
GUNDEX: string;
AYDEX: string;
createdAt: Date;
}

@ -1,7 +1,7 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoKartTemp {
_id: ID;
KARTNO: string;
createdAt: Date;
ARACID: number;
_id: ID;
KARTNO: string;
createdAt: Date;
ARACID: number;
}

@ -1,11 +1,11 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoKartliBinisKisiler {
_id: ID;
ADSOYAD: string;
KARTNO: string;
DOGUMTARIH: string;
createdAt: Date;
updatedAt: Date;
MUSTERIID: number;
KULLANICIID: number;
_id: ID;
ADSOYAD: string;
KARTNO: string;
DOGUMTARIH: string;
createdAt: Date;
updatedAt: Date;
MUSTERIID: number;
KULLANICIID: number;
}

@ -1,12 +1,12 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoKartliBinisRapor {
_id: ID;
KARTNO: string;
KISIID: string;
ARACID: number;
TARIHDEX: string;
AYYILDEX: string;
YILDEX: string;
createdAt: Date;
MUSTERIID: number;
_id: ID;
KARTNO: string;
KISIID: string;
ARACID: number;
TARIHDEX: string;
AYYILDEX: string;
YILDEX: string;
createdAt: Date;
MUSTERIID: number;
}

@ -1,14 +1,14 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoKomutTemp {
_id: ID;
MUSTERIID: number;
KULLANICIID: number;
KOMUTID: number;
IMEI: string;
KOMUTADI: string;
KOMUTADI2: string;
ARACID: number;
TARIH: Date;
DEGER: string;
PAKETTIP: string;
_id: ID;
MUSTERIID: number;
KULLANICIID: number;
KOMUTID: number;
IMEI: string;
KOMUTADI: string;
KOMUTADI2: string;
ARACID: number;
TARIH: Date;
DEGER: string;
PAKETTIP: string;
}

@ -1,7 +1,7 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoMarkaUrun {
_id: ID;
URUNADI: string;
MARKA: string;
URUNID: number;
_id: ID;
URUNADI: string;
MARKA: string;
URUNID: number;
}

@ -1,4 +1,4 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoMeteorImages {
_id: ID;
size: number;

@ -1,37 +1,37 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoSeferRaporu {
_id: ID;
ARACID: number;
ACISTARIH: Date;
KAPATISTARIH: Date;
ACTIENLEM: number;
ACTIBOYLAM: number;
KAPADIENLEM: number;
KAPADIBOYLAM: number;
TOPLAM_KM: number;
ACISADRES: string;
KAPATISADRES: string;
SURUCUID: string;
SEFERSURE: string;
MAXHIZ: number;
ORTALAMAHIZ: number;
TOPLAMHIZASIMSURE: number;
TOPLAMCEZALIBEKSURE: number;
KONTAKACIKBEKSURE: number;
TOPLAMBEKSURE: number;
imei: string;
basboylam: string;
bastarih: Date;
bitboylam: string;
bittarih: Date;
surucu: string;
sefer_saniye: string;
toplam_km: string;
max_hiz: string;
ort_hiz: string;
top_hiz_asim_saniye: string;
top_cezali_bek_saniye: string;
ilk_kontak_bekleme_saniye: string;
toplam_bekleme_saniye: string;
aracid: number;
_id: ID;
ARACID: number;
ACISTARIH: Date;
KAPATISTARIH: Date;
ACTIENLEM: number;
ACTIBOYLAM: number;
KAPADIENLEM: number;
KAPADIBOYLAM: number;
TOPLAM_KM: number;
ACISADRES: string;
KAPATISADRES: string;
SURUCUID: string;
SEFERSURE: string;
MAXHIZ: number;
ORTALAMAHIZ: number;
TOPLAMHIZASIMSURE: number;
TOPLAMCEZALIBEKSURE: number;
KONTAKACIKBEKSURE: number;
TOPLAMBEKSURE: number;
imei: string;
basboylam: string;
bastarih: Date;
bitboylam: string;
bittarih: Date;
surucu: string;
sefer_saniye: string;
toplam_km: string;
max_hiz: string;
ort_hiz: string;
top_hiz_asim_saniye: string;
top_cezali_bek_saniye: string;
ilk_kontak_bekleme_saniye: string;
toplam_bekleme_saniye: string;
aracid: number;
}

@ -1,61 +1,61 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoSession {
_id: ID;
expires: Date;
session: Session;
_id: ID;
expires: Date;
session: Session;
}
interface Session {
cookie: Cookie;
user: User;
cookie: Cookie;
user: User;
}
interface User {
_id: ID;
username: string;
pushToken: string;
profile: Profile;
_id: ID;
username: string;
pushToken: string;
profile: Profile;
}
interface Profile {
IP: string;
EMAIL: string;
KULLANICIID: number;
MUSTERIID: number;
ADSOYAD: string;
TEL1: string;
TEL2: string;
APP_GENERAL_DATA: APPGENERALDATA;
IP: string;
EMAIL: string;
KULLANICIID: number;
MUSTERIID: number;
ADSOYAD: string;
TEL1: string;
TEL2: string;
APP_GENERAL_DATA: APPGENERALDATA;
}
interface APPGENERALDATA {
APP_NAME: string;
LANG: string;
MAP_TYPE: string;
MAP_PROVIDERS: string;
SHOW_TRAFFIC: boolean;
GROUP_ASSETS: boolean;
DATA_MANAGE: DATAMANAGE;
APP_NAME: string;
LANG: string;
MAP_TYPE: string;
MAP_PROVIDERS: string;
SHOW_TRAFFIC: boolean;
GROUP_ASSETS: boolean;
DATA_MANAGE: DATAMANAGE;
}
interface DATAMANAGE {
TYPE: string;
VALUE: string;
NOTIFICATIONS: NOTIFICATIONS;
TYPE: string;
VALUE: string;
NOTIFICATIONS: NOTIFICATIONS;
}
interface NOTIFICATIONS {
APP: boolean;
EMAIL: boolean;
EMAIL_INPUT: string;
APP: boolean;
EMAIL: boolean;
EMAIL_INPUT: string;
}
interface Cookie {
originalMaxAge: number;
expires: Date;
secure?: string;
httpOnly: boolean;
domain?: string;
path: string;
sameSite?: string;
originalMaxAge: number;
expires: Date;
secure?: string;
httpOnly: boolean;
domain?: string;
path: string;
sameSite?: string;
}

@ -1,14 +1,14 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoSistemBilgisi {
_id: ID;
MESAJTIP: number;
ARACID: number;
MESAJ: string;
SENSOR: string;
ENLEM_F: number;
BOYLAM_F: number;
ARACGPSID: string;
MONGO_ARACGPSID: string;
EMAIL: string;
TARIH: Date;
_id: ID;
MESAJTIP: number;
ARACID: number;
MESAJ: string;
SENSOR: string;
ENLEM_F: number;
BOYLAM_F: number;
ARACGPSID: string;
MONGO_ARACGPSID: string;
EMAIL: string;
TARIH: Date;
}

@ -1,37 +1,37 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoSorunBildir {
_id: ID;
tipi: string;
tel: string;
detay: string;
user: User;
username: string;
createdAt: Date;
email: string;
_id: ID;
tipi: string;
tel: string;
detay: string;
user: User;
username: string;
createdAt: Date;
email: string;
}
interface User {
KULLANICIID: number;
KULLANICIADI: string;
MUSTERIID: number;
ADSOYAD: string;
KAYITTARIH: Date;
UPDATETARIH: Date;
EKRAN?: string;
MAPTYPE: string;
TEL1: string;
TEL2: string;
ADRES: string;
SEHIR: string;
GIRISTARIH1: Date;
GIRISTARIH2: Date;
BLOKAJONAY: string;
NOT: string;
ARACLAR: number[];
EMAIL: string;
clustermarker: number;
SIFRE: string;
PAROLA: string;
AKTIF: number;
ENC_PAROLA: string;
KULLANICIID: number;
KULLANICIADI: string;
MUSTERIID: number;
ADSOYAD: string;
KAYITTARIH: Date;
UPDATETARIH: Date;
EKRAN?: string;
MAPTYPE: string;
TEL1: string;
TEL2: string;
ADRES: string;
SEHIR: string;
GIRISTARIH1: Date;
GIRISTARIH2: Date;
BLOKAJONAY: string;
NOT: string;
ARACLAR: number[];
EMAIL: string;
clustermarker: number;
SIFRE: string;
PAROLA: string;
AKTIF: number;
ENC_PAROLA: string;
}

@ -1,27 +1,27 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoSuruculer {
_id: ID;
ID: number;
KULLANICIID: number;
MUSTERIID: number;
ADSOYAD: string;
KARTNO: string;
EMAIL: string;
EHLIYETTIP: string;
TEL1: string;
TEL2: string;
TEL3: string;
ADRES: string;
IL: string;
ILCE: string;
SSKNO: string;
TCKIMLIK: string;
KAYITTARIH: Date;
UPDATETARIH: Date;
ALAN1: string;
ALAN2: string;
ALAN3: string;
AKTIF: number;
KARTOKUTMA: Date;
picture: string;
_id: ID;
ID: number;
KULLANICIID: number;
MUSTERIID: number;
ADSOYAD: string;
KARTNO: string;
EMAIL: string;
EHLIYETTIP: string;
TEL1: string;
TEL2: string;
TEL3: string;
ADRES: string;
IL: string;
ILCE: string;
SSKNO: string;
TCKIMLIK: string;
KAYITTARIH: Date;
UPDATETARIH: Date;
ALAN1: string;
ALAN2: string;
ALAN3: string;
AKTIF: number;
KARTOKUTMA: Date;
picture: string;
}

@ -1,22 +1,22 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoTakipGpsDataByDay {
_id: ID;
D: string;
AID: number;
LOG: LOG[];
UDT: Date;
_id: ID;
D: string;
AID: number;
LOG: LOG[];
UDT: Date;
}
interface LOG {
IS: number;
TKMT: number;
S: number;
DT: Date;
DI: string;
L: L;
IS: number;
TKMT: number;
S: number;
DT: Date;
DI: string;
L: L;
}
interface L {
type: string;
coordinates: number[];
type: string;
coordinates: number[];
}

@ -1,103 +1,103 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
import { Gps_Accuracy } from "../graphql_server_types.ts";
export interface MongoTakipGpsYeni {
_id: ID;
TGID: number;
ARACID: number;
MUSTERIID: number;
BOLGEID: number;
BAYIID: number;
KULLANICIID: number;
TARIH: Date;
ENLEM: string;
BOYLAM: string;
HIZ: number;
YON: number;
KONTAK: number;
INDEKS: number;
TOPLAMKM: number;
GUNLUKKM: number;
AKUKESIK: number;
SICAKLIKLIMIT: number;
SICAKLIKDEGER: string;
HIZLIMIT: number;
MOTORBLOKAJ: number;
YURTDISIGPRS: number;
MARKA: string;
PORTNO: string;
IMEI: string;
GSM: string;
ARACTANIM: string;
PLAKA: string;
TONAJ: string;
MODELYILI: number;
KAYITKM: string;
KAYITTARIH: Date;
UPDATETARIH: Date;
AYAR: number;
MARKER: string;
SISTEMBILGISI: number;
VISIBLE: number;
SURUCU: string;
ARAC_SAHIBI: string;
MODEL: string;
RENK: string;
SASINO: string;
NOT: string;
AKTIF: number;
HAR_MESAJ_SURESI: string;
MESAFE_MESAJ_PERIYOT: string;
OFFLINE_MESAJ_SURESI: string;
SMS_MESAJ_SURESI: string;
TRANSID: number;
TOPLAMKMTARIH: Date;
ADRES: string;
GSMHATA: number;
GPSHATA: number;
GUNUNTOPLAMKM: number;
VNOTIF: number;
GUNUN_SON_KM: number;
BAGLANMA_TARIH: Date;
BAGLI: boolean;
BOYLAM_F: number;
ENLEM_F: number;
GPS_DOGRULUK: Gps_Accuracy;
LOC: ILoc;
SUNUCUTARIH: Date;
UYDU_SAYI: number;
KOPMA_TARIH: Date;
KARTOKUTMA: string;
FOLLOWERS: string[];
UNVAN: string;
YETKILI: string;
LOC_LS: ILocLs;
KONTAK_ACTI_TARIH: Date;
KONTAK_KAPADI_TARIH: Date;
CANBUS_DATA: ICanBusData;
DELTAMESAFE: number;
RTCHATA: number;
MAXDURMADEVAM: number;
GSENSORDEVAM: number;
CEVRIMDISIKAYIT: number;
EKLENMETARIH: Date;
ROLANTIDEVAM: number;
updatedAt: Date;
MOTOR_BLOKAJ: number;
SLEEP: boolean;
SLEEPMODE: number;
_id: ID;
TGID: number;
ARACID: number;
MUSTERIID: number;
BOLGEID: number;
BAYIID: number;
KULLANICIID: number;
TARIH: Date;
ENLEM: string;
BOYLAM: string;
HIZ: number;
YON: number;
KONTAK: number;
INDEKS: number;
TOPLAMKM: number;
GUNLUKKM: number;
AKUKESIK: number;
SICAKLIKLIMIT: number;
SICAKLIKDEGER: string;
HIZLIMIT: number;
MOTORBLOKAJ: number;
YURTDISIGPRS: number;
MARKA: string;
PORTNO: string;
IMEI: string;
GSM: string;
ARACTANIM: string;
PLAKA: string;
TONAJ: string;
MODELYILI: number;
KAYITKM: string;
KAYITTARIH: Date;
UPDATETARIH: Date;
AYAR: number;
MARKER: string;
SISTEMBILGISI: number;
VISIBLE: number;
SURUCU: string;
ARAC_SAHIBI: string;
MODEL: string;
RENK: string;
SASINO: string;
NOT: string;
AKTIF: number;
HAR_MESAJ_SURESI: string;
MESAFE_MESAJ_PERIYOT: string;
OFFLINE_MESAJ_SURESI: string;
SMS_MESAJ_SURESI: string;
TRANSID: number;
TOPLAMKMTARIH: Date;
ADRES: string;
GSMHATA: number;
GPSHATA: number;
GUNUNTOPLAMKM: number;
VNOTIF: number;
GUNUN_SON_KM: number;
BAGLANMA_TARIH: Date;
BAGLI: boolean;
BOYLAM_F: number;
ENLEM_F: number;
GPS_DOGRULUK: Gps_Accuracy;
LOC: ILoc;
SUNUCUTARIH: Date;
UYDU_SAYI: number;
KOPMA_TARIH: Date;
KARTOKUTMA: string;
FOLLOWERS: string[];
UNVAN: string;
YETKILI: string;
LOC_LS: ILocLs;
KONTAK_ACTI_TARIH: Date;
KONTAK_KAPADI_TARIH: Date;
CANBUS_DATA: ICanBusData;
DELTAMESAFE: number;
RTCHATA: number;
MAXDURMADEVAM: number;
GSENSORDEVAM: number;
CEVRIMDISIKAYIT: number;
EKLENMETARIH: Date;
ROLANTIDEVAM: number;
updatedAt: Date;
MOTOR_BLOKAJ: number;
SLEEP: boolean;
SLEEPMODE: number;
}
export interface ICanBusData {
err: string;
err: string;
}
export interface ILocLs {
coordinates: number[][];
type: string;
coordinates: number[][];
type: string;
}
export interface ILoc {
type: string;
coordinates: number[];
type: string;
coordinates: number[];
}

@ -1,10 +1,10 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoTakipVeriAyar {
_id: ID;
KONTROL: number;
EMAIL: string;
MUSTERIID: number;
KULLANICIID: number;
createdAt: Date;
updatedAt: Date;
_id: ID;
KONTROL: number;
EMAIL: string;
MUSTERIID: number;
KULLANICIID: number;
createdAt: 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 {
_id: ID;
createdAt: Date;
services: Services;
username: string;
profile: Profile;
_id: ID;
createdAt: Date;
services: Services;
username: string;
profile: Profile;
}
interface Profile {
KULLANICIID: number;
KULLANICIADI: string;
SIFRE: string;
MUSTERIID: number;
ADSOYAD: string;
KAYITTARIH: Date;
UPDATETARIH: Date;
EKRAN: string;
MAPTYPE: string;
TEL1: string;
TEL2: string;
ADRES: string;
SEHIR: string;
EMAIL: string;
GIRISTARIH1: Date;
GIRISTARIH2: Date;
BLOKAJONAY: string;
NOT: string;
ARACLAR: number[];
clustermarker: number;
AKTIF: number;
PAROLA: string;
NOKTALAR: ID[];
ENC_PAROLA: string;
PHOTOURL: string;
KULLANICIID: number;
KULLANICIADI: string;
SIFRE: string;
MUSTERIID: number;
ADSOYAD: string;
KAYITTARIH: Date;
UPDATETARIH: Date;
EKRAN: string;
MAPTYPE: string;
TEL1: string;
TEL2: string;
ADRES: string;
SEHIR: string;
EMAIL: string;
GIRISTARIH1: Date;
GIRISTARIH2: Date;
BLOKAJONAY: string;
NOT: string;
ARACLAR: number[];
clustermarker: number;
AKTIF: number;
PAROLA: string;
NOKTALAR: ID[];
ENC_PAROLA: string;
PHOTOURL: string;
}
interface Services {
password: Password;
resume: Resume;
password: Password;
resume: Resume;
}
interface Resume {
loginTokens: LoginToken[];
loginTokens: LoginToken[];
}
interface LoginToken {
when: Date;
hashedToken: string;
when: Date;
hashedToken: string;
}
interface Password {
bcrypt: string;
bcrypt: string;
}

@ -1,25 +1,25 @@
import { ID } from "./MongoTypes.ts";
import { ID } from "./DefaultTypes.ts";
export interface MongoYetkisiCihazlar {
_id: ID;
IMEI: string;
ADRES: string;
BOYLAM: string;
BOYLAM_F: number;
ENLEM: string;
ENLEM_F: number;
HIZ: number;
INDEKS: number;
KONTAK: number;
LOC: LOC;
PORTNO: string;
SUNUCUTARIH: Date;
TARIH: Date;
TOPLAMKM: number;
YON: number;
_id: ID;
IMEI: string;
ADRES: string;
BOYLAM: string;
BOYLAM_F: number;
ENLEM: string;
ENLEM_F: number;
HIZ: number;
INDEKS: number;
KONTAK: number;
LOC: LOC;
PORTNO: string;
SUNUCUTARIH: Date;
TARIH: Date;
TOPLAMKM: number;
YON: number;
}
interface LOC {
type: string;
coordinates: number[];
type: string;
coordinates: number[];
}

Loading…
Cancel
Save