fix: rename event module into analytics and clean (#482)

This commit is contained in:
Jérémy M
2023-06-30 11:24:05 +02:00
committed by GitHub
parent 7893d5dba5
commit cca36cf50f
16 changed files with 75 additions and 104 deletions
@@ -0,0 +1,15 @@
import { ArgsType, Field } from '@nestjs/graphql';
import GraphQLJSON from 'graphql-type-json';
import { IsNotEmpty, IsString, IsObject } from 'class-validator';
@ArgsType()
export class CreateAnalyticsInput {
@Field({ description: 'Type of the event' })
@IsNotEmpty()
@IsString()
type: string;
@Field(() => GraphQLJSON, { description: 'Event data in JSON format' })
@IsObject()
data: JSON;
}