119 lines
3.1 KiB
TypeScript
119 lines
3.1 KiB
TypeScript
export const mockPoll1 = {
|
|
"message": "your poll config",
|
|
"data": {
|
|
"id": 1,
|
|
"title": "citron ou orange",
|
|
"customUrl": null,
|
|
"description": "votre sorbert préféré",
|
|
"creationDate": {
|
|
"date": "2020-01-22 14:28:19.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Paris"
|
|
},
|
|
"expiracyDate": {
|
|
"date": "2020-01-22 14:28:19.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Paris"
|
|
},
|
|
"owner": {
|
|
"__initializer__": {},
|
|
"__cloner__": {},
|
|
"__isInitialized__": false
|
|
},
|
|
"kind": "text",
|
|
"allowedAnswers": [
|
|
"yes"
|
|
],
|
|
"modificationPolicy": "nobody",
|
|
"mailOnComment": null,
|
|
"mailOnVote": true,
|
|
"hideResults": null,
|
|
"showResultEvenIfPasswords": null,
|
|
"votes": {},
|
|
"stacksOfVotes": {},
|
|
"choices": {},
|
|
"comments": {},
|
|
"defaultExpiracyDaysFromNow": 60
|
|
},
|
|
"stacks_count": 2,
|
|
"stacks": [
|
|
{
|
|
"id": 1,
|
|
"pseudo": "voting_people_TEST",
|
|
"creation_date": {
|
|
"date": "2020-01-22 14:28:19.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Paris"
|
|
},
|
|
"votes": [
|
|
{
|
|
"id": 1,
|
|
"vote_id": 1,
|
|
"value": "yes",
|
|
"choice_id": 1,
|
|
"text": "orange"
|
|
},
|
|
{
|
|
"id": 1,
|
|
"vote_id": 2,
|
|
"value": "yes",
|
|
"choice_id": 2,
|
|
"text": null
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": 2,
|
|
"pseudo": "voting_people_TEST",
|
|
"creation_date": {
|
|
"date": "2020-01-22 14:28:19.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Paris"
|
|
},
|
|
"votes": [
|
|
{
|
|
"id": 2,
|
|
"vote_id": 3,
|
|
"value": "maybe",
|
|
"choice_id": 1,
|
|
"text": "orange"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"choices_count": 2,
|
|
"choices": [
|
|
{
|
|
"id": 1,
|
|
"date": {
|
|
"date": "2020-01-22 14:28:19.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Paris"
|
|
},
|
|
"text": "orange",
|
|
"url": null
|
|
},
|
|
{
|
|
"id": 2,
|
|
"date": {
|
|
"date": "2020-01-22 14:28:19.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Paris"
|
|
},
|
|
"text": "citron",
|
|
"url": null
|
|
}
|
|
],
|
|
"comments": [{
|
|
"id": 4,
|
|
"text": "wouah trop bien framadate HOUHOUUUU!",
|
|
"pseudo": "tk_TEST",
|
|
"date": {
|
|
"date": "2020-01-22 16:00:22.000000",
|
|
"timezone_type": 3,
|
|
"timezone": "Europe/Paris"
|
|
}
|
|
},],
|
|
"comments_count": 0
|
|
};
|