Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const INITIAL_STATE = {
- campaign_dates: {
- dt_start: '',
- dt_end: '',
- },
- campaign_target: {
- target_number: '', // comes from api
- gender: '',
- age_level: {
- age_start: '',
- age_end: '',
- },
- interest_area: [],
- geolocation: {},
- },
- campaign_products: {
- mobile_boost: {
- quantity: 0,
- price: 125.0,
- boosts_used: 0,
- },
- survey: {
- name: 'Survey',
- id_product: 1,
- quantity: 0,
- price: 125.0,
- surveys: [
- 0: {
- id: "46ff2ba7-ec5a-4e4a-b33a-358b6e228f64",
- name: "Multiple survey with 2 questions",
- multiple_questions: true,
- number_survey_questions: 2
- questions: [
- 0: {
- id: "a323121d-c939-436c-b94b-76bd1057d077",
- boost: false,
- question: "This is the first question"
- event_date: Thu Jan 02 2020 00:00:00 GMT-0300 (Brasilia Standard Time),
- option_one: "Option 1",
- option_two: "Option 2",
- option_three: "Option 3",
- option_four: "Option 4",
- tags: [1, 5]
- },
- 1: {
- id: "017ab5b2-b082-4b1a-a55e-7fff1c93e52c",
- boost: false,
- question: "This is the second question"
- event_date: Thu Jan 09 2020 00:00:00 GMT-0300 (Brasilia Standard Time),
- option_one: "Option 1",
- option_two: "Option 2",
- option_three: "Option 3",
- option_four: "Option 4",
- tags: [1, 3]
- },
- ]
- },
- 1: {
- id: "c7bbef77-5794-43d3-bf00-ac39603c9b01",
- boost: false,
- name: "Survey with only 1 question",
- question: "This is the first question",
- event_date: Thu Jan 09 2020 00:00:00 GMT-0300 (Brasilia Standard Time),
- option_one: "Option 1",
- option_two: "Option 2",
- option_three: "Option 3",
- option_four: "Option 4",
- tags: [4, 5]
- }
- ],
- },
- reward: {
- name: 'Reward',
- id_product: 2,
- quantity: 0,
- price: 125.0,
- rewards: [],
- },
- chat_channel: {
- name: 'Chat Channel',
- id_product: 3,
- quantity: 0,
- price: 125.0,
- channels: [],
- },
- event: {
- name: 'Event',
- id_product: 4,
- quantity: 0,
- price: 125.0,
- events: [],
- },
- welcome_ad: {
- name: 'Welcome AD',
- id_product: 5,
- quantity: 0,
- price: 125.0,
- welcome_ads: [],
- },
- content: {
- quantity: 0,
- price: 125.0,
- video: {
- name: 'Video',
- id_product: 6,
- quantity: 0,
- videos: [],
- },
- post: {
- name: 'Post',
- id_product: 7,
- quantity: 0,
- posts: [],
- },
- web: {
- name: 'Web',
- id_product: 8,
- quantity: 0,
- webs: [],
- },
- announcement: {
- name: 'Announcement',
- id_product: 9,
- quantity: 0,
- announcements: [],
- },
- document: {
- name: 'document',
- id_product: 10,
- quantity: 0,
- documents: [],
- },
- },
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement