2020-01-30 11:19:17 +01:00
|
|
|
export const mockSuccessVote = {
|
|
|
|
"message": "you created a vote stack from an existing owner : tktest@tktest.com",
|
|
|
|
"poll": {
|
|
|
|
"id": 3,
|
2020-02-04 11:21:00 +01:00
|
|
|
"title": "c'est pour aujourdhui ou pour demain",
|
2020-01-30 11:19:17 +01:00
|
|
|
"customUrl": null,
|
2020-02-04 11:21:00 +01:00
|
|
|
"description": "Vous avez le choix dans la date",
|
2020-01-30 11:19:17 +01:00
|
|
|
"creationDate": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"date": "2020-01-30 12:25:13.000000",
|
2020-01-30 11:19:17 +01:00
|
|
|
"timezone_type": 3,
|
|
|
|
"timezone": "Europe/Berlin"
|
|
|
|
},
|
|
|
|
"expiracyDate": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"date": "2020-01-30 12:25:13.000000",
|
2020-01-30 11:19:17 +01:00
|
|
|
"timezone_type": 3,
|
|
|
|
"timezone": "Europe/Berlin"
|
|
|
|
},
|
|
|
|
"owner": {
|
|
|
|
"__initializer__": null,
|
|
|
|
"__cloner__": null,
|
|
|
|
"__isInitialized__": true,
|
|
|
|
"pseudo": "tk_TEST",
|
|
|
|
"email": "tktest@tktest.com"
|
|
|
|
},
|
2020-02-04 11:21:00 +01:00
|
|
|
"kind": "date",
|
2020-01-30 11:19:17 +01:00
|
|
|
"allowedAnswers": [
|
|
|
|
"yes"
|
|
|
|
],
|
|
|
|
"modificationPolicy": "self",
|
|
|
|
"mailOnComment": null,
|
|
|
|
"mailOnVote": null,
|
|
|
|
"hideResults": null,
|
|
|
|
"showResultEvenIfPasswords": null,
|
|
|
|
"votes": {},
|
|
|
|
"stacksOfVotes": {},
|
|
|
|
"choices": {},
|
|
|
|
"comments": {},
|
|
|
|
"defaultExpiracyDaysFromNow": 60
|
|
|
|
},
|
|
|
|
"vote_stack": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"id": 10,
|
2020-01-30 11:19:17 +01:00
|
|
|
"pseudo": "tk_TEST",
|
|
|
|
"creation_date": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"date": "2020-02-03 15:37:29.609059",
|
2020-01-30 11:19:17 +01:00
|
|
|
"timezone_type": 3,
|
|
|
|
"timezone": "Europe/Berlin"
|
|
|
|
},
|
|
|
|
"votes": {
|
|
|
|
"5": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"id": 10,
|
|
|
|
"vote_id": 19,
|
2020-01-30 11:19:17 +01:00
|
|
|
"value": "yes",
|
|
|
|
"choice_id": 5,
|
2020-02-04 11:21:00 +01:00
|
|
|
"text": "2020-01-30 12:25:13"
|
2020-01-30 11:19:17 +01:00
|
|
|
},
|
2020-02-04 11:21:00 +01:00
|
|
|
"6": {
|
|
|
|
"id": 10,
|
|
|
|
"vote_id": 20,
|
|
|
|
"value": "yes",
|
|
|
|
"choice_id": 6,
|
|
|
|
"text": "2020-01-30 12:25:13"
|
2020-01-30 11:19:17 +01:00
|
|
|
},
|
2020-02-04 11:21:00 +01:00
|
|
|
"7": {
|
|
|
|
"id": 10,
|
|
|
|
"vote_id": 21,
|
|
|
|
"value": "yes",
|
|
|
|
"choice_id": 7,
|
|
|
|
"text": "2020-01-30 12:25:13"
|
|
|
|
},
|
|
|
|
"8": {
|
|
|
|
"id": 10,
|
|
|
|
"vote_id": 22,
|
|
|
|
"value": "yes",
|
|
|
|
"choice_id": 8,
|
|
|
|
"text": "Vic le viking"
|
2020-01-30 11:19:17 +01:00
|
|
|
}
|
2020-02-04 11:21:00 +01:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"stacks": [
|
2020-01-30 11:19:17 +01:00
|
|
|
{
|
2020-02-04 11:21:00 +01:00
|
|
|
"id": 10,
|
2020-01-30 11:19:17 +01:00
|
|
|
"pseudo": "tk_TEST",
|
|
|
|
"creation_date": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"date": "2020-02-03 15:37:29.609059",
|
2020-01-30 11:19:17 +01:00
|
|
|
"timezone_type": 3,
|
|
|
|
"timezone": "Europe/Berlin"
|
|
|
|
},
|
|
|
|
"votes": {
|
|
|
|
"5": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"id": 10,
|
|
|
|
"vote_id": 19,
|
2020-01-30 11:19:17 +01:00
|
|
|
"value": "yes",
|
|
|
|
"choice_id": 5,
|
2020-02-04 11:21:00 +01:00
|
|
|
"text": "2020-01-30 12:25:13"
|
2020-01-30 11:19:17 +01:00
|
|
|
},
|
|
|
|
"6": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"id": 10,
|
|
|
|
"vote_id": 20,
|
2020-01-30 11:19:17 +01:00
|
|
|
"value": "yes",
|
|
|
|
"choice_id": 6,
|
2020-02-04 11:21:00 +01:00
|
|
|
"text": "2020-01-30 12:25:13"
|
2020-01-30 11:19:17 +01:00
|
|
|
},
|
|
|
|
"7": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"id": 10,
|
|
|
|
"vote_id": 21,
|
2020-01-30 11:19:17 +01:00
|
|
|
"value": "yes",
|
|
|
|
"choice_id": 7,
|
2020-02-04 11:21:00 +01:00
|
|
|
"text": "2020-01-30 12:25:13"
|
2020-01-30 11:19:17 +01:00
|
|
|
},
|
|
|
|
"8": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"id": 10,
|
|
|
|
"vote_id": 22,
|
2020-01-30 11:19:17 +01:00
|
|
|
"value": "yes",
|
|
|
|
"choice_id": 8,
|
2020-02-04 11:21:00 +01:00
|
|
|
"text": "Vic le viking"
|
2020-01-30 11:19:17 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
2020-02-04 11:21:00 +01:00
|
|
|
"comments": [],
|
2020-01-30 11:19:17 +01:00
|
|
|
"choices": [
|
|
|
|
{
|
|
|
|
"id": 5,
|
|
|
|
"date": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"date": "2020-01-30 12:25:13.000000",
|
2020-01-30 11:19:17 +01:00
|
|
|
"timezone_type": 3,
|
|
|
|
"timezone": "Europe/Berlin"
|
|
|
|
},
|
2020-02-04 11:21:00 +01:00
|
|
|
"text": "2020-01-30 12:25:13",
|
2020-01-30 11:19:17 +01:00
|
|
|
"url": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": 6,
|
|
|
|
"date": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"date": "2020-01-30 12:25:13.000000",
|
2020-01-30 11:19:17 +01:00
|
|
|
"timezone_type": 3,
|
|
|
|
"timezone": "Europe/Berlin"
|
|
|
|
},
|
2020-02-04 11:21:00 +01:00
|
|
|
"text": "2020-01-30 12:25:13",
|
2020-01-30 11:19:17 +01:00
|
|
|
"url": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": 7,
|
|
|
|
"date": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"date": "2020-01-30 12:25:13.000000",
|
2020-01-30 11:19:17 +01:00
|
|
|
"timezone_type": 3,
|
|
|
|
"timezone": "Europe/Berlin"
|
|
|
|
},
|
2020-02-04 11:21:00 +01:00
|
|
|
"text": "2020-01-30 12:25:13",
|
2020-01-30 11:19:17 +01:00
|
|
|
"url": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"choices_count": {
|
|
|
|
"counts": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"5": {
|
|
|
|
"choice_id": 5,
|
|
|
|
"choice_text": "2020-01-30 12:25:13",
|
|
|
|
"id": 19,
|
|
|
|
"score": 1,
|
2020-01-30 11:19:17 +01:00
|
|
|
"yes": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"count": 1,
|
2020-01-30 11:19:17 +01:00
|
|
|
"people": [
|
|
|
|
"tk_TEST"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"maybe": {
|
|
|
|
"count": 0,
|
|
|
|
"people": []
|
|
|
|
},
|
|
|
|
"no": {
|
|
|
|
"count": 0,
|
|
|
|
"people": []
|
|
|
|
}
|
|
|
|
},
|
2020-02-04 11:21:00 +01:00
|
|
|
"6": {
|
|
|
|
"choice_id": 6,
|
|
|
|
"choice_text": "2020-01-30 12:25:13",
|
|
|
|
"id": 20,
|
|
|
|
"score": 1,
|
2020-01-30 11:19:17 +01:00
|
|
|
"yes": {
|
|
|
|
"count": 1,
|
|
|
|
"people": [
|
|
|
|
"tk_TEST"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"maybe": {
|
|
|
|
"count": 0,
|
|
|
|
"people": []
|
|
|
|
},
|
|
|
|
"no": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"count": 0,
|
|
|
|
"people": []
|
2020-01-30 11:19:17 +01:00
|
|
|
}
|
|
|
|
},
|
2020-02-04 11:21:00 +01:00
|
|
|
"7": {
|
|
|
|
"choice_id": 7,
|
|
|
|
"choice_text": "2020-01-30 12:25:13",
|
|
|
|
"id": 21,
|
|
|
|
"score": 1,
|
2020-01-30 11:19:17 +01:00
|
|
|
"yes": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"count": 1,
|
2020-01-30 11:19:17 +01:00
|
|
|
"people": [
|
|
|
|
"tk_TEST"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"maybe": {
|
|
|
|
"count": 0,
|
|
|
|
"people": []
|
|
|
|
},
|
|
|
|
"no": {
|
|
|
|
"count": 0,
|
|
|
|
"people": []
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"8": {
|
2020-02-04 11:21:00 +01:00
|
|
|
"choice_id": 8,
|
|
|
|
"choice_text": "Vic le viking",
|
|
|
|
"id": 22,
|
|
|
|
"score": 1,
|
2020-01-30 11:19:17 +01:00
|
|
|
"yes": {
|
|
|
|
"count": 1,
|
|
|
|
"people": [
|
|
|
|
"tk_TEST"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"maybe": {
|
|
|
|
"count": 0,
|
|
|
|
"people": []
|
|
|
|
},
|
|
|
|
"no": {
|
|
|
|
"count": 0,
|
|
|
|
"people": []
|
|
|
|
}
|
|
|
|
}
|
2020-02-04 11:21:00 +01:00
|
|
|
},
|
|
|
|
"maxScore": 1
|
2020-01-30 11:19:17 +01:00
|
|
|
},
|
2020-02-04 11:21:00 +01:00
|
|
|
"vote_count": 1,
|
|
|
|
"owner_modifier_token": "akcrfpaa7YfaeJ859632HdJe05-3a8FHOfVrC45Xdfg80C36yYD460KZIqx1146e99z23e86oK7caw1VCED47zR69Nc8cl9SXYv6P0NR34a19cgr1sfD",
|
|
|
|
"admin_key": "b2o0355a6YCdy5r72u4aWFNw55a18d766f4OnV5448CV8ex3j3p9mRdlRPPje8Fbj6FC61df7tje7dQK6f8G0HKE1d50d4Xf4p53af81vc6P2Codg0s",
|
2020-01-30 11:19:17 +01:00
|
|
|
"json_you_sent": {
|
|
|
|
"pseudo": "mon pseudo",
|
|
|
|
"email": "tktest@tktest.com",
|
|
|
|
"votes": [
|
|
|
|
{
|
|
|
|
"choice_id": 5,
|
|
|
|
"value": "yes"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"choice_id": 6,
|
|
|
|
"value": "yes"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"choice_id": 7,
|
|
|
|
"value": "yes"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"choice_id": 8,
|
|
|
|
"value": "yes"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
};
|