mestgps mongo types edited

main
emehmet 3 years ago
parent b3a598bc59
commit 30d22c7a1b

@ -195,6 +195,168 @@ export type MongoSessions = {
} }
} }
export type MongoAssetKomut = {
_id: ObjectId;
AID: number;
KOMUT_TYPE: string;
DATA_PROPS: {
VALUE: string;
PRIORITY: string;
};
RETRIES: number;
SAVED: boolean;
SAVED_AT: Date;
SENT: boolean;
SENT_AT: Date;
UPDATED_AT: Date;
}
export type MongoGpsPoints = {
_id: ObjectId;
KID: number;
MID: number;
CREATED_AT: Date;
UPDATED_AT: Date;
STATUS: number;
ISDELETED: boolean;
LOC: {
type: string;
geometry: {
type: string;
coordinates: [number, number];
};
properties: {
TITLE: string;
CONTENT: string;
RADIUS: number;
ICON: string;
COLOR: string;
};
};
};
export type MongoGpsPointAssets = {
_id: ObjectId;
ALARM_TYPE: string;
aas_id: string;
CREATED_AT: Date;
LOC: {
geometry: {
coordinates: [number, number];
type: string;
};
properties: {
TITLE: string;
};
type: string;
};
AID: number;
VALUE: {
SPEED: number;
};
};
export type MongoAssetAlarmSetup = {
_id: ObjectId;
AID: number;
ALARM_TYPE: string;
ALARM_PROPS: {
SPEED_LIMIT: number;
};
BY_DEVICE: {
IN_DEVICE: boolean;
SETTED: boolean;
};
ENABLE: boolean;
KID: number;
UPDATED_AT: Date;
};
export type MongoAssetAlarmNotification = {
_id: ObjectId;
AID: number;
ALARM_TYPE: string;
KID: number;
aas_id: string;
NOTIFY: {
APP: {
NOTIFY: boolean;
};
EMAIL: {
NOTIFY: boolean;
EMAILS: string[];
};
};
UPDATED_AT: Date;
};
export type MongoUsers = {
_id: string;
createdAt: Date;
services: {
password: {
bcrypt: string;
};
resume: {
loginTokens: {
when: Date;
hashedToken: string;
}[];
};
};
username: string;
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;
};
};
export type MongoGeoAdres = {
_id: string;
adres: string;
loc: {
type: string;
coordinates: [number, number];
};
createdAt: Date;
};
export type MongoIslemCihaz = {
_id: ObjectId;
ARACID: number;
ACIKLAMA: string;
createdAt: Date;
AYDEX: string;
YILDEX: string;
CIHAZID: number;
MUSTERIID: number;
IMEI: string;
GSM: string;
};

Loading…
Cancel
Save