funky-framadate-front/src/app/config/mocks/mock-success-vote.ts

264 lines
7.3 KiB
TypeScript

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