forked from ChakshuGautam/cQube-ingestion
-
Notifications
You must be signed in to change notification settings - Fork 17
/
app.service.ts
38 lines (31 loc) · 1.2 KB
/
app.service.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import { Injectable } from '@nestjs/common';
import { Event } from './types/event';
@Injectable()
export class AppService {
createKPI(): string {
return 'KPI created';
}
setup(): void {
// 1. Create a new Dimension for School
// 2. Create a new KPI for School Attendance Bar Chart
// 3. Create a grammer for Dataset => Creates a tables and indexes
// 4. Create a grammer for Event
// 5. Create a Transformer
// 6. Create a Pipe
}
flow(event: Event): void {}
// TODO: on the Flows
// 1. Create a new Dimension for School
// 2. Create a new KPI for School Attendance Bar Chart
// 3. Create a grammer for Dataset => Creates a tables and indexes
// 4. Create a grammer for Event
// 5. Create a Transformer
// 6. Create a Pipe
// 7. Push and event to the pipe
// 8. Capture the event and transform it to a dataset using a transformer
// TODO: Adding indexes to the tables using the Dimensions and Dateset Schemas
// TODO: on the tables that need to be created
// 1. Create tables for Grammars => DimensionsGrammar, DatasetGrammar, EventGrammar (One method for each of them)
// 2. Create tables for Entties => Dimension, Dataset
// TODO:: Testing the flow
}