Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- create_campaign = {
- 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",
- date: Thu Jan 02 2020 00:00:00 GMT-0300,
- option_one: "Option 1",
- option_two: "Option 2",
- option_three: "Option 3",
- option_four: "Option 4",
- tags: [1, 5],
- file: "",
- image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
- },
- 1: {
- id: "017ab5b2-b082-4b1a-a55e-7fff1c93e52c",
- boost: false,
- question: "This is the second question",
- date: Thu Jan 09 2020 00:00:00 GMT-0300,
- option_one: "Option 1",
- option_two: "Option 2",
- option_three: "Option 3",
- option_four: "Option 4",
- tags: [1, 3],
- file: "",
- image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
- },
- ]
- },
- 1: {
- id: "c7bbef77-5794-43d3-bf00-ac39603c9b01",
- boost: false,
- name: "Survey with only 1 question",
- question: "This is the first question",
- date: Thu Jan 09 2020 00:00:00 GMT-0300,
- option_one: "Option 1",
- option_two: "Option 2",
- option_three: "Option 3",
- option_four: "Option 4",
- tags: [4, 5],
- file: "",
- image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
- }
- ],
- },
- reward: {
- name: 'Reward',
- id_product: 2,
- quantity: 0,
- price: 125.0,
- rewards: [
- 0: {
- id: "ba6e953d-1d1e-4561-85ab-c441886971e8",
- title: "Reward title",
- about: "Reward about",
- expire_date: Thu Jan 02 2020 00:00:00 GMT-0300,
- reward_cost: 123.00,
- coupon_type: "reusable",
- coupon_code: "YEAHDGADG",
- number_rewards: 12,
- additional_info: "visit link and get your reward",
- link: "www.google.com",
- tags: [2, 5],
- file: "",
- image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
- }
- ],
- },
- chat_channel: {
- name: 'Chat Channel',
- id_product: 3,
- quantity: 0,
- price: 125.0,
- channels: [
- 0: {
- id: "2c6a8934-954f-46b3-865a-b01b5ed282b6",
- name: "Chat channel name",
- channel_access: "public",
- channel_type: "oneToMany",
- countdown_channel: false,
- description: "This is a description",
- image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
- tags: [1, 6]
- }
- ],
- },
- event: {
- name: 'Event',
- id_product: 4,
- quantity: 0,
- price: 125.0,
- events: [
- 0: {
- id: "30529a56-4037-4ca6-bce0-99d104bcb478",
- title: "Event title",
- about: "About event",
- start_date: Wed Jan 01 2020 00:00:00 GMT-0300,
- end_date: Thu Jan 09 2020 00:00:00 GMT-0300,
- event_location: "Avenida Visconde de Jequitinhonha, 609 - Boa Viagem, Recife - State of Pernambuco, Brazil",
- link: "www.google.com",
- organizer: "Event organizer",
- tags: [3, 4],
- file: "",
- image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
- }
- ],
- },
- welcome_ad: {
- name: 'Welcome AD',
- id_product: 5,
- quantity: 0,
- price: 125.0,
- welcome_ads: [
- 0: {
- id: "99a74087-2932-4105-bf9d-903ab5d875d2",
- name: "Name welcome ad",
- boost: false,
- image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
- tags: [1, 3]
- }
- ],
- },
- content: {
- quantity: 0,
- price: 125.0,
- video: {
- name: 'Video',
- id_product: 6,
- quantity: 0,
- videos: [
- 0: {
- id: "dad08672-726f-4821-8bde-2950ab2774ac",
- title: "Video title",
- tags: [4, 5],
- file: "",
- image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
- }
- ],
- },
- post: {
- name: 'Post',
- id_product: 7,
- quantity: 0,
- posts: [
- 0: {
- id: "c1902b0a-7a24-45b3-972c-cc51a492e30c",
- title: "Post title",
- about: "This is an about",
- link: "www.google.com",
- tags: [1, 2],
- file: "",
- image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
- }
- ],
- },
- web: {
- name: 'Web',
- id_product: 8,
- quantity: 0,
- webs: [
- 0: {
- id: "51e72c8d-9bc1-421f-a2ea-453dc724fdf3",
- comment: "This is a comment",
- tags: [5, 6],
- webpage: "https://frontendmasters.com/books/front-end-handbook/2019/",
- image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
- }
- ],
- },
- announcement: {
- name: 'Announcement',
- id_product: 9,
- quantity: 0,
- announcements: [
- 0: {
- id: "c42bcacf-2e58-4987-84d6-a231b082f0c7",
- title: "Announcement title"
- about: "Announcement about",
- tags: [2, 6],
- file: "",
- image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
- }
- ],
- },
- document: {
- name: 'document',
- id_product: 10,
- quantity: 0,
- documents: [
- 0: {
- id: "fea78ef7-4f05-4b64-a727-2cfb7d47cfe4",
- title: "Document title",
- tags: [1, 2],
- file: "",
- image: "data:image/png;base64,IJMQeOGgAoLeM0Dp45D337D/NFPYl6lmUBQ4mWQPm1h1QSIC7ExM5gZ1IiQBqzQ0AiUsw"
- }
- ],
- },
- },
- },
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement