import { Document } from 'mongoose'; import { IDefaultAttributes } from './commonInterface'; import { APP_ANALYTICS_EVENT_TYPE, APP_TYPE, DEVICE_TYPE_APP_ANALYTICS } from '../constants/app'; export interface IDeviceInfoAttributionSchema { id: string; platform: DEVICE_TYPE_APP_ANALYTICS; appVersion?: string; deviceModel?: string; } export interface ILocationAttributionSchema { id: string; country?: number; state?: number; city?: number; latitude?: number; longitude?: number; ipAddress?: string; } export interface IAppAnalyticsEventModelAttributes extends IDefaultAttributes, Document { id: string; instituteId: string; academicCalendarId: string; userId: string; eventType: APP_ANALYTICS_EVENT_TYPE; moduleName?: string; screenName?: string; deviceInfo?: IDeviceInfoAttributionSchema; location?: ILocationAttributionSchema; usedTime?: number; createdAt: Date; subscriptionPlanId?: string; appType: APP_TYPE; }