Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikemunsie/aa02eb1f140e871681798d245ea39a72 to your computer and use it in GitHub Desktop.
Save mikemunsie/aa02eb1f140e871681798d245ea39a72 to your computer and use it in GitHub Desktop.
Tree Models
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