-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.ts
33 lines (27 loc) · 1.21 KB
/
data.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
import { FormId, Form } from './form'
import { User } from './user'
import customerFeedback from './data/customer-feedback.yaml'
import customerFeedbackResponses from './data/customer-feedback-responses.csv'
import customerFeedbackStatistics from './data/customer-feedback-statistics'
import orderRequest from './data/order-request.yaml'
import orderRequestResponses from './data/order-request-responses.csv'
import orderRequestStatistics from './data/order-request-statistics'
import timeOffRequest from './data/time-off-request.yaml'
import user from './data/user.yaml'
import { QuestionStatistics } from './statistics'
export const formsData: { [key: FormId]: Form } = {
[customerFeedback.id]: customerFeedback,
[orderRequest.id]: orderRequest,
[timeOffRequest.id]: timeOffRequest,
}
export const userData: User = user
export const responsesData: { [key: FormId]: Array<Array<string>> } = {
[customerFeedback.id]: customerFeedbackResponses,
[orderRequest.id]: orderRequestResponses,
[timeOffRequest.id]: [],
}
export const statisticsData: { [key: FormId]: Array<QuestionStatistics> } = {
[customerFeedback.id]: customerFeedbackStatistics,
[orderRequest.id]: orderRequestStatistics,
[timeOffRequest.id]: [],
}