From b3a598bc59f2068913522490e34d0d85cc2542e9 Mon Sep 17 00:00:00 2001 From: emehmet Date: Thu, 13 Apr 2023 18:25:01 +0300 Subject: [PATCH] types updated --- types/mestgps_mongo_interface.ts | 147 ++++++++++++++++++++++++++++++- 1 file changed, 146 insertions(+), 1 deletion(-) diff --git a/types/mestgps_mongo_interface.ts b/types/mestgps_mongo_interface.ts index 93ea4b0..93347b9 100644 --- a/types/mestgps_mongo_interface.ts +++ b/types/mestgps_mongo_interface.ts @@ -1,4 +1,7 @@ -export type TakipGps = { +import { ObjectId } from "https://deno.land/x/mongo@v0.31.2/mod.ts"; + + +export type MongoTakipGpsYeni = { _id: string IMEI: string GSM: string @@ -54,3 +57,145 @@ export type TakipGps = { FOLLOWERS: Array MOTORBLOKAJ: number } + + +export type MongoTakipGpsDataByday = { + _id: ObjectId + AID: number + D: string + LOG: Array<{ + IS: number + TKMT: number + S: number + DT: Date + DI: string + L: { + type: string + coordinates: Array + } + }> + UDT: Date +} + + +export type MongoAssetAlarmKomut = { + _id: ObjectId + AID: number + SAVED: boolean + aas_id: ObjectId + ALARM_TYPE: string + DATA_PROPS: { + SPEED_LIMIT: number + } + KID: number + MID: number + RETRIES: number + SAVED_AT: Date + SENT: boolean + SENT_AT: Date + UPDATED_AT: Date +} + + +export type MongoAracAyarlar = { + _id: ObjectId + AID: number + CREATEDAT: Date + FCICL: number + KULLANICIID: number + MUSTERIID: number + UPDATEDAT: Date + FCOCL: number +} + +export type MongoSuruculer = { + _id: string + 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: string + ALAN1: string + ALAN2: string + ALAN3: string + AKTIF: number +} + +export type MongoCanBusData = { + _id: ObjectId + AID: number + WS: string + ES: string + ECT: string + HRVD: string + VT: string + X: string + Y: string +} + +export type ReportInput = { + _id: ObjectId + NAME: string + TYPE: string + QUERY: string + SORTER_I: Array<{ + field: string + order: string + }> + FILTER: Array<{ + field: string + operator: string + value: Array + }> +} + +export type MongoSessions = { + _id: string + expires: Date + session: { + cookie: { + originalMaxAge: number + expires: Date + secure: any + httpOnly: boolean + domain: any + path: string + sameSite: any + } + user: { + _id: string + username: string + pushToken: string + profile: { + IP: string + EMAIL: string + KULLANICIID: number + MUSTERIID: number + ADSOYAD: string + TEL1: string + TEL2: string + APP_GENERAL_DATA: { + APP_NAME: string + LANG: string + } + } + } + } +} + + + + +