Created
May 19, 2017 15:20
-
-
Save mikemunsie/aa02eb1f140e871681798d245ea39a72 to your computer and use it in GitHub Desktop.
Tree Models
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
answer: { | |
answerId: String, | |
percentage: Number | |
} | |
parameters: parameter / projectIds / surveyCategory | |
parameter: { | |
type: "parameter", | |
data: { | |
id: Number, | |
answers: [answer] | |
} | |
} | |
surveyCategory: { | |
type: "surveyCategory", | |
data: { | |
values: [String], | |
status: [String], | |
dateRange: { | |
from: "1-12-2017" | |
to: "2-12-2017" | |
}, | |
filter: String, | |
filterValue: [String] (date range or number) | |
} | |
} | |
projectIds: { | |
type: "projectIds", | |
data: { | |
values: [String], | |
status: [String], | |
filter: String, | |
filterValue: [String] (date range or number) | |
} | |
} | |
project: { | |
ids: [1,2,3], | |
} | |
lineItemTree: { | |
inclusions: { | |
base: { | |
parameters: [parameters] | |
} | |
groups: [ | |
[ | |
{ | |
parameters: [parameters] | |
} | |
] | |
] | |
}, | |
exclusions: { | |
base: { | |
parameters: [parameters] | |
} | |
groups: [ | |
[ | |
{ | |
parameters: [parameters] | |
} | |
] | |
] | |
}, | |
inclusions: { | |
base: { | |
parameters: [parameters] | |
} | |
groups: [ | |
[ | |
{ | |
flexibility: Number, | |
parameters: [parameters] | |
} | |
] | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment