forked from tykayn/funky-framadate-front
659 lines
11 KiB
TypeScript
659 lines
11 KiB
TypeScript
export const mockSuccessVote = {
|
|
message: 'you created a vote stack from an existing owner : tktest@tktest.com',
|
|
poll: {
|
|
id: 4,
|
|
title: 'dessin animé préféré',
|
|
customUrl: null,
|
|
description: 'choisissez votre animé préféré',
|
|
creationDate: {
|
|
date: '2020-02-04 12:35:37.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
expiracyDate: {
|
|
date: '2020-02-04 12:35:37.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
owner: {
|
|
__initializer__: null,
|
|
__cloner__: null,
|
|
__isInitialized__: true,
|
|
pseudo: 'tk_TEST',
|
|
email: 'tktest@tktest.com',
|
|
},
|
|
kind: 'text',
|
|
allowedAnswers: ['yes'],
|
|
modificationPolicy: 'everybody',
|
|
mailOnComment: null,
|
|
mailOnVote: null,
|
|
hideResults: null,
|
|
showResultEvenIfPasswords: null,
|
|
votes: {},
|
|
stacksOfVotes: {},
|
|
choices: {},
|
|
comments: {},
|
|
defaultExpiracyDaysFromNow: 60,
|
|
},
|
|
vote_stack: {
|
|
id: 10,
|
|
modifier_token:
|
|
'V46C6b58c456B39kTI19KSfp1y8Zz7Wyg500xMdjNB823st221Gb509VX1AOsnhV93fhol1f8P30OblKFoI76u54T94rH92x5c95TdW1W2eH0hb55q8',
|
|
pseudo: 'tk_TEST',
|
|
creation_date: {
|
|
date: '2020-02-04 12:36:07.530846',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
votes: {
|
|
'8': {
|
|
id: 22,
|
|
value: 'yes',
|
|
choice_id: 8,
|
|
text: 'Vic le viking',
|
|
stack_id: 10,
|
|
},
|
|
'9': {
|
|
choice_id: 9,
|
|
},
|
|
'10': {
|
|
choice_id: 10,
|
|
},
|
|
'11': {
|
|
choice_id: 11,
|
|
},
|
|
'12': {
|
|
choice_id: 12,
|
|
},
|
|
'13': {
|
|
choice_id: 13,
|
|
},
|
|
'14': {
|
|
choice_id: 14,
|
|
},
|
|
'5': {
|
|
id: 19,
|
|
value: 'yes',
|
|
choice_id: 5,
|
|
text: '2020-02-04 12:35:37',
|
|
stack_id: 10,
|
|
},
|
|
'6': {
|
|
id: 20,
|
|
value: 'yes',
|
|
choice_id: 6,
|
|
text: '2020-02-04 12:35:37',
|
|
stack_id: 10,
|
|
},
|
|
'7': {
|
|
id: 21,
|
|
value: 'yes',
|
|
choice_id: 7,
|
|
text: '2020-02-04 12:35:37',
|
|
stack_id: 10,
|
|
},
|
|
},
|
|
},
|
|
stacks: [
|
|
{
|
|
id: 3,
|
|
modifier_token: '5e39570956e5d',
|
|
pseudo: 'voting_people_TEST',
|
|
creation_date: {
|
|
date: '2020-02-04 12:35:37.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
votes: {
|
|
'8': {
|
|
choice_id: 8,
|
|
},
|
|
'9': {
|
|
id: 5,
|
|
value: 'maybe',
|
|
choice_id: 9,
|
|
text: 'Boumbo petite automobile',
|
|
stack_id: 3,
|
|
},
|
|
'10': {
|
|
id: 4,
|
|
value: 'yes',
|
|
choice_id: 10,
|
|
text: "Les mystérieuses cités d'or",
|
|
stack_id: 3,
|
|
},
|
|
'11': {
|
|
choice_id: 11,
|
|
},
|
|
'12': {
|
|
choice_id: 12,
|
|
},
|
|
'13': {
|
|
choice_id: 13,
|
|
},
|
|
'14': {
|
|
choice_id: 14,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
id: 4,
|
|
modifier_token: '5e39570956e5d',
|
|
pseudo: 'voting_people_TEST',
|
|
creation_date: {
|
|
date: '2020-02-04 12:35:37.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
votes: {
|
|
'8': {
|
|
choice_id: 8,
|
|
},
|
|
'9': {
|
|
id: 6,
|
|
value: 'yes',
|
|
choice_id: 9,
|
|
text: 'Boumbo petite automobile',
|
|
stack_id: 4,
|
|
},
|
|
'10': {
|
|
id: 8,
|
|
value: 'no',
|
|
choice_id: 10,
|
|
text: "Les mystérieuses cités d'or",
|
|
stack_id: 4,
|
|
},
|
|
'11': {
|
|
choice_id: 11,
|
|
},
|
|
'12': {
|
|
choice_id: 12,
|
|
},
|
|
'13': {
|
|
choice_id: 13,
|
|
},
|
|
'14': {
|
|
choice_id: 14,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
id: 7,
|
|
modifier_token: '5e3957095ca23',
|
|
pseudo: 'Nikolas Edison',
|
|
creation_date: {
|
|
date: '2020-02-04 12:35:37.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
votes: {
|
|
'8': {
|
|
choice_id: 8,
|
|
},
|
|
'9': {
|
|
choice_id: 9,
|
|
},
|
|
'10': {
|
|
id: 13,
|
|
value: 'maybe',
|
|
choice_id: 10,
|
|
text: "Les mystérieuses cités d'or",
|
|
stack_id: 7,
|
|
},
|
|
'11': {
|
|
choice_id: 11,
|
|
},
|
|
'12': {
|
|
id: 14,
|
|
value: 'maybe',
|
|
choice_id: 12,
|
|
text: 'Foot 2 rue',
|
|
stack_id: 7,
|
|
},
|
|
'13': {
|
|
choice_id: 13,
|
|
},
|
|
'14': {
|
|
choice_id: 14,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
id: 8,
|
|
modifier_token: '5e3957095ca2d',
|
|
pseudo: 'Wulfila',
|
|
creation_date: {
|
|
date: '2020-02-04 12:35:37.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
votes: {
|
|
'8': {
|
|
choice_id: 8,
|
|
},
|
|
'9': {
|
|
choice_id: 9,
|
|
},
|
|
'10': {
|
|
choice_id: 10,
|
|
},
|
|
'11': {
|
|
id: 15,
|
|
value: 'maybe',
|
|
choice_id: 11,
|
|
text: 'Les mondes engloutis',
|
|
stack_id: 8,
|
|
},
|
|
'12': {
|
|
choice_id: 12,
|
|
},
|
|
'13': {
|
|
id: 16,
|
|
value: 'yes',
|
|
choice_id: 13,
|
|
text: "Le chat, la vache, et l'océan",
|
|
stack_id: 8,
|
|
},
|
|
'14': {
|
|
choice_id: 14,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
id: 9,
|
|
modifier_token: '5e3957095ca34',
|
|
pseudo: 'Billie Jean',
|
|
creation_date: {
|
|
date: '2020-02-04 12:35:37.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
votes: {
|
|
'8': {
|
|
choice_id: 8,
|
|
},
|
|
'9': {
|
|
id: 17,
|
|
value: 'yes',
|
|
choice_id: 9,
|
|
text: 'Boumbo petite automobile',
|
|
stack_id: 9,
|
|
},
|
|
'10': {
|
|
choice_id: 10,
|
|
},
|
|
'11': {
|
|
id: 18,
|
|
value: 'yes',
|
|
choice_id: 11,
|
|
text: 'Les mondes engloutis',
|
|
stack_id: 9,
|
|
},
|
|
'12': {
|
|
choice_id: 12,
|
|
},
|
|
'13': {
|
|
choice_id: 13,
|
|
},
|
|
'14': {
|
|
choice_id: 14,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
id: 10,
|
|
modifier_token:
|
|
'V46C6b58c456B39kTI19KSfp1y8Zz7Wyg500xMdjNB823st221Gb509VX1AOsnhV93fhol1f8P30OblKFoI76u54T94rH92x5c95TdW1W2eH0hb55q8',
|
|
pseudo: 'tk_TEST',
|
|
creation_date: {
|
|
date: '2020-02-04 12:36:07.530846',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
votes: {
|
|
'8': {
|
|
id: 22,
|
|
value: 'yes',
|
|
choice_id: 8,
|
|
text: 'Vic le viking',
|
|
stack_id: 10,
|
|
},
|
|
'9': {
|
|
choice_id: 9,
|
|
},
|
|
'10': {
|
|
choice_id: 10,
|
|
},
|
|
'11': {
|
|
choice_id: 11,
|
|
},
|
|
'12': {
|
|
choice_id: 12,
|
|
},
|
|
'13': {
|
|
choice_id: 13,
|
|
},
|
|
'14': {
|
|
choice_id: 14,
|
|
},
|
|
'5': {
|
|
id: 19,
|
|
value: 'yes',
|
|
choice_id: 5,
|
|
text: '2020-02-04 12:35:37',
|
|
stack_id: 10,
|
|
},
|
|
'6': {
|
|
id: 20,
|
|
value: 'yes',
|
|
choice_id: 6,
|
|
text: '2020-02-04 12:35:37',
|
|
stack_id: 10,
|
|
},
|
|
'7': {
|
|
id: 21,
|
|
value: 'yes',
|
|
choice_id: 7,
|
|
text: '2020-02-04 12:35:37',
|
|
stack_id: 10,
|
|
},
|
|
},
|
|
},
|
|
],
|
|
comments: [
|
|
{
|
|
id: 3,
|
|
text: 'allez boumbo!',
|
|
pseudo: 'tk_TEST_commentateur',
|
|
date: {
|
|
date: '2020-02-04 12:35:37.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
},
|
|
{
|
|
id: 4,
|
|
text: 'je suis pour la team rocket de digimon',
|
|
pseudo: 'tk_TEST',
|
|
date: {
|
|
date: '2020-02-04 12:35:37.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
},
|
|
],
|
|
choices: [
|
|
{
|
|
id: 8,
|
|
date: {
|
|
date: '2020-02-04 12:35:37.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
text: 'Vic le viking',
|
|
url: null,
|
|
},
|
|
{
|
|
id: 9,
|
|
date: {
|
|
date: '2020-02-04 12:35:37.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
text: 'Boumbo petite automobile',
|
|
url: null,
|
|
},
|
|
{
|
|
id: 10,
|
|
date: {
|
|
date: '2020-02-04 12:35:37.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
text: "Les mystérieuses cités d'or",
|
|
url: null,
|
|
},
|
|
{
|
|
id: 11,
|
|
date: {
|
|
date: '2020-02-04 12:35:37.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
text: 'Les mondes engloutis',
|
|
url: null,
|
|
},
|
|
{
|
|
id: 12,
|
|
date: {
|
|
date: '2020-02-04 12:35:37.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
text: 'Foot 2 rue',
|
|
url: null,
|
|
},
|
|
{
|
|
id: 13,
|
|
date: {
|
|
date: '2020-02-04 12:35:37.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
text: "Le chat, la vache, et l'océan",
|
|
url: null,
|
|
},
|
|
{
|
|
id: 14,
|
|
date: {
|
|
date: '2020-02-04 12:35:37.000000',
|
|
timezone_type: 3,
|
|
timezone: 'Europe/Berlin',
|
|
},
|
|
text: 'Digimon',
|
|
url: null,
|
|
},
|
|
],
|
|
choices_count: {
|
|
counts: {
|
|
'10': {
|
|
choice_id: 10,
|
|
choice_text: "Les mystérieuses cités d'or",
|
|
id: 4,
|
|
score: 2.5,
|
|
yes: {
|
|
count: 2,
|
|
people: ['voting_people_TEST', 'voting_people_TEST'],
|
|
},
|
|
maybe: {
|
|
count: 1,
|
|
people: ['Nikolas Edison'],
|
|
},
|
|
no: {
|
|
count: 1,
|
|
people: ['voting_people_TEST'],
|
|
},
|
|
},
|
|
'9': {
|
|
choice_id: 9,
|
|
choice_text: 'Boumbo petite automobile',
|
|
id: 5,
|
|
score: 2.5,
|
|
yes: {
|
|
count: 2,
|
|
people: ['voting_people_TEST', 'Billie Jean'],
|
|
},
|
|
maybe: {
|
|
count: 1,
|
|
people: ['voting_people_TEST'],
|
|
},
|
|
no: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
},
|
|
'12': {
|
|
choice_id: 12,
|
|
choice_text: 'Foot 2 rue',
|
|
id: 14,
|
|
score: 0.5,
|
|
yes: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
maybe: {
|
|
count: 1,
|
|
people: ['Nikolas Edison'],
|
|
},
|
|
no: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
},
|
|
'11': {
|
|
choice_id: 11,
|
|
choice_text: 'Les mondes engloutis',
|
|
id: 15,
|
|
score: 1.5,
|
|
yes: {
|
|
count: 1,
|
|
people: ['Billie Jean'],
|
|
},
|
|
maybe: {
|
|
count: 1,
|
|
people: ['Wulfila'],
|
|
},
|
|
no: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
},
|
|
'13': {
|
|
choice_id: 13,
|
|
choice_text: "Le chat, la vache, et l'océan",
|
|
id: 16,
|
|
score: 1,
|
|
yes: {
|
|
count: 1,
|
|
people: ['Wulfila'],
|
|
},
|
|
maybe: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
no: {
|
|
count: 0,
|
|
people: [],
|
|
},
|
|
},
|
|
'5': {
|
|
choice_id: 5,
|
|
choice_text: '2020-02-04 12:35:37',
|
|
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-02-04 12:35:37',
|
|
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-02-04 12:35:37',
|
|
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: 2.5,
|
|
},
|
|
vote_count: 6,
|
|
owner: {
|
|
__initializer__: null,
|
|
__cloner__: null,
|
|
__isInitialized__: true,
|
|
pseudo: 'tk_TEST',
|
|
email: 'tktest@tktest.com',
|
|
},
|
|
owner_modifier_token:
|
|
'V46C6b58c456B39kTI19KSfp1y8Zz7Wyg500xMdjNB823st221Gb509VX1AOsnhV93fhol1f8P30OblKFoI76u54T94rH92x5c95TdW1W2eH0hb55q8',
|
|
admin_key:
|
|
'9uE27daM8dG1P9z74B89z299W0JF0ne15eER37g2v3d86mk123318v516UUbey4z3C87Wbo65V3c7cHsBTELvhl8b82d61WBMR2U66USNc7idS8810f',
|
|
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',
|
|
},
|
|
],
|
|
},
|
|
};
|