Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.28 KB | None | 0 0
  1. const INITIAL_STATE = {
  2. campaign_dates: {
  3. dt_start: '',
  4. dt_end: '',
  5. },
  6. campaign_target: {
  7. target_number: '', // comes from api
  8. gender: '',
  9. age_level: {
  10. age_start: '',
  11. age_end: '',
  12. },
  13. interest_area: [],
  14. geolocation: {},
  15. },
  16. campaign_products: {
  17. mobile_boost: {
  18. quantity: 0,
  19. price: 125.0,
  20. boosts_used: 0,
  21. },
  22. survey: {
  23. name: 'Survey',
  24. id_product: 1,
  25. quantity: 0,
  26. price: 125.0,
  27. surveys: [
  28. 0: {
  29. id: "46ff2ba7-ec5a-4e4a-b33a-358b6e228f64",
  30. name: "Multiple survey with 2 questions",
  31. multiple_questions: true,
  32. number_survey_questions: 2
  33. questions: [
  34. 0: {
  35. id: "a323121d-c939-436c-b94b-76bd1057d077",
  36. boost: false,
  37. question: "This is the first question"
  38. event_date: Thu Jan 02 2020 00:00:00 GMT-0300 (Brasilia Standard Time),
  39. option_one: "Option 1",
  40. option_two: "Option 2",
  41. option_three: "Option 3",
  42. option_four: "Option 4",
  43. tags: [1, 5]
  44. },
  45. 1: {
  46. id: "017ab5b2-b082-4b1a-a55e-7fff1c93e52c",
  47. boost: false,
  48. question: "This is the second question"
  49. event_date: Thu Jan 09 2020 00:00:00 GMT-0300 (Brasilia Standard Time),
  50. option_one: "Option 1",
  51. option_two: "Option 2",
  52. option_three: "Option 3",
  53. option_four: "Option 4",
  54. tags: [1, 3]
  55. },
  56. ]
  57. },
  58. 1: {
  59. id: "c7bbef77-5794-43d3-bf00-ac39603c9b01",
  60. boost: false,
  61. name: "Survey with only 1 question",
  62. question: "This is the first question",
  63. event_date: Thu Jan 09 2020 00:00:00 GMT-0300 (Brasilia Standard Time),
  64. option_one: "Option 1",
  65. option_two: "Option 2",
  66. option_three: "Option 3",
  67. option_four: "Option 4",
  68. tags: [4, 5]
  69. }
  70. ],
  71. },
  72. reward: {
  73. name: 'Reward',
  74. id_product: 2,
  75. quantity: 0,
  76. price: 125.0,
  77. rewards: [],
  78. },
  79. chat_channel: {
  80. name: 'Chat Channel',
  81. id_product: 3,
  82. quantity: 0,
  83. price: 125.0,
  84. channels: [],
  85. },
  86. event: {
  87. name: 'Event',
  88. id_product: 4,
  89. quantity: 0,
  90. price: 125.0,
  91. events: [],
  92. },
  93. welcome_ad: {
  94. name: 'Welcome AD',
  95. id_product: 5,
  96. quantity: 0,
  97. price: 125.0,
  98. welcome_ads: [],
  99. },
  100. content: {
  101. quantity: 0,
  102. price: 125.0,
  103. video: {
  104. name: 'Video',
  105. id_product: 6,
  106. quantity: 0,
  107. videos: [],
  108. },
  109. post: {
  110. name: 'Post',
  111. id_product: 7,
  112. quantity: 0,
  113. posts: [],
  114. },
  115. web: {
  116. name: 'Web',
  117. id_product: 8,
  118. quantity: 0,
  119. webs: [],
  120. },
  121. announcement: {
  122. name: 'Announcement',
  123. id_product: 9,
  124. quantity: 0,
  125. announcements: [],
  126. },
  127. document: {
  128. name: 'document',
  129. id_product: 10,
  130. quantity: 0,
  131. documents: [],
  132. },
  133. },
  134. },
  135. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement