
{
  type: 'onesignal_push_template_onesignal_push_template',
  module : 'onesignal_push_template',
  action : 'onesignal_push_template',
  groupTitle : 'Notification Modules',
  groupIcon : 'fas fa-solid fa-satellite-dish comp_general',
  title : 'Onesignal Create Push Template ',
  icon : 'fab fa-solid fa-pushed comp-flows',
 serverModel : ['node'],
dataPickObject: true,
dataScheme: [

  {"type": "text","name": "id"  },
  {"type": "text","name": "name"  },
  {"type": "text","name": "created_at"  },
  {"type": "text","name": "updated_at"  },
  {"type": "text","name": "channel"  },
  {"type": "object","name": "content",
      "sub": [
  {"type": "boolean","name": "isAndroid"  },
  {"type": "boolean","name": "isIos"  },
  {"type": "boolean","name": "isMacOSX"  },
  {"type": "boolean","name": "isAdm"  },
  {"type": "text","name": "isAlexa"  },
  {"type": "boolean","name": "isWP"  },
  {"type": "boolean","name": "isWP_WNS"  },
  {"type": "boolean","name": "isChrome"  },
  {"type": "boolean","name": "isChromeWeb"  },
  {"type": "boolean","name": "isSafari"  },
  {"type": "boolean","name": "isFirefox"  },
  {"type": "boolean","name": "isEdge"  },
  {"type": "object","name": "headings",
  "sub": [
    {"type": "text","name": "en"}
]
  },
  {"type": "text","name": "subtitle"  },
  {"type": "object","name": "contents",
"sub": [
  {"type": "text","name": "en"}
]
  },
  {"type": "text","name": "global_image"  },
  {"type": "text","name": "url"  },
  {"type": "text","name": "isEmail"  },
  {"type": "text","name": "email_body"  },
  {"type": "text","name": "email_subject"  },
  {"type": "text","name": "email_preheader"  },
  {"type": "text","name": "isSMS"  },
  {"type": "text","name": "sms_from"  },
  {"type": "text","name": "sms_media_urls"  },
  {"type": "text","name": "email_reply_to_address"  },
  {"type": "text","name": "disable_email_click_tracking"  }
]
  }
   {name: 'status',type: 'number'} 
],
  usedModules : {}
  properties : [
{
group: 'Template Settings',
variables: [

{ name: 'actionName', 
optionName: 'name', 
  title: 'Name', 
type: 'text', 
required: true, 
defaultValue: '',
baseName: "osc1"
},
{
name: 'appid', 
optionName: 'appid', 
title: 'Application ID', 
type: 'text', 
required: false, 
serverDataBindings: true,
defaultValue: '',
help: 'You App ID'
},
{
name: 'tname', 
optionName: 'tname', 
title: 'Template Name', 
type: 'text', 
required: false, 
serverDataBindings: true,
defaultValue: '',
help: 'Template Name'
},
{ name: 'included_segments', 
optionName: 'included_segments', 
title: 'Included Segments', 
type: 'textarea', 
serverDataBindings: true,
required:false, 
defaultValue: '',
 help: 'Included Segmants <a href="https://documentation.onesignal.com/reference/notification-parameters#included_segments" style="color: #ffffff" target="_blank">Refererence</a>'
},
{ name: 'push_type', optionName: 'push_type', title: 'Push Type' type: 'text', 
  type: 'droplist', 
  values: [
{title: 'web', value: 'web' },
{title: 'email', value: 'email'},
{title: 'sms', value: 'sms'},
  ], defaultValue: 'web',
	help: 'Choose type of push.'
},
{
name: "headings",
optionName: "headings",
key: "var",
keyValue: "value",
title: "Languages and Headings",
type: "grid",
defaultValue: {},
serverDataBindings: true,
columns: [
{
field: "var",
caption: "Language",
size: "30%",
editable: {
  type: "static"
}
},
{
field: "value",
caption: "Text",
size: "70%",
editable: {
  type: "datapicker"
}
}
]
  },
  {
 name: 'os_title_prompt', 
optionName: 'os_title_prompt', 
title: 'Title ', 
type: 'static', 
required: false, 
serverDataBindings: true,
defaultValue: '',
help: '&nbsp;&nbsp;&nbsp;&nbsp;Recommended about 60-80 characters limit'
},
{
name: "bindings",
optionName: "bindings",
key: "var",
keyValue: "value",
title: "Languages & Messages",
type: "grid",
defaultValue: {},
serverDataBindings: true,
columns: [
{
field: "var",
caption: "Language",
size: "30%",
editable: {
  type: "static"
}
},
{
field: "value",
caption: "Text",
size: "70%",
editable: {
  type: "datapicker"
}
}
]
  },

  {
 name: 'os_msg_prompt', 
optionName: 'os_msg_prompt', 
title: 'Main Image', 
type: 'static', 
required: false, 
serverDataBindings: true,
defaultValue: '',
help: '&nbsp;&nbsp;&nbsp;&nbsp;Recommended about 150 characters message limit unless email'
},  
  { name: 'target_channel', 
optionName: 'target_channel', 
title: 'Target Channel', 
serverDataBindings: true,
type: 'textarea', 
required:false, 
defaultValue: '',
 help: 'Target Channel <a href="https://documentation.onesignal.com/reference/notification-parameters#target_channel" style="color: #ffffff" target="_blank">Refererence</a>'
},  
  {
name: 'big_picture', 
optionName: 'big_picture', 
title: 'Big Picture', 
type: 'text', 
required: false, 
serverDataBindings: true,
defaultValue: '',
 help: 'Big Picture <a href="https://documentation.onesignal.com/reference/push-notification#big_picture" style="color: #ffffff" target="_blank">Refererence</a>'
},
{
name: 'large_icon', 
optionName: 'large_icon', 
title: 'Icon Image', 
type: 'text', 
required: false, 
serverDataBindings: true,
defaultValue: '',
help: 'Large Icon <a href="https://documentation.onesignal.com/reference/push-notification#large_icon" style="color: #ffffff" target="_blank">Refererence</a>'
},

{
name: 'url', 
optionName: 'url', 
title: 'Target URL', 
type: 'text', 
required: false, 
serverDataBindings: true,
defaultValue: '',
help: '<a href="https://documentation.onesignal.com/reference/push-notification#url" style="color: #ffffff" target="_blank">Refererence - URL Opened when Clicked</a>'
},
{
name: 'web_url', 
optionName: 'web_url', 
title: 'Target URL (web push only)', 
type: 'text', 
required: false, 
serverDataBindings: true,
defaultValue: '',
help: '<a href="https://documentation.onesignal.com/reference/push-notification#web_url" style="color: #ffffff" target="_blank">Refererence - URL Opened when Clicked</a>'
},
{ name: 'data', 
optionName: 'data', 
  title: 'Data {&nbsp;}', 
type: 'textarea', 
required: false, 
serverDataBindings: true,
defaultValue: '',
 help: 'Data as JSON <a href="https://documentation.onesignal.com/reference/push-notification#data" style="color: #ffffff" target="_blank">Refererence</a>'
},
{ name: 'custom_data', 
optionName: 'custom_data', 
  title: 'Custom data {&nbsp;}', 
type: 'textarea', 
required: false, 
serverDataBindings: true,
defaultValue: '',
 help: 'Custom Data as JSON <a href="https://documentation.onesignal.com/reference/notification-parameters#custom_data" style="color: #ffffff" target="_blank">Refererence</a>'
},
{ name: 'external_id', 
optionName: 'external_id', 
title: 'External ID [&nbsp;]', 
type: 'textarea', 
serverDataBindings: true,
required:false, 
defaultValue: '',
 help: 'External ID <a href="https://documentation.onesignal.com/reference/notification-parameters#external_id" style="color: #ffffff" target="_blank">Refererence</a>'
},

{ name: 'filters', 
optionName: 'filters', 
title: 'Filters [&nbsp;]', 
type: 'textarea', 
serverDataBindings: true,
required:false, 
defaultValue: '',
 help: 'Filters <a href="https://documentation.onesignal.com/reference/notification-parameters#filters" style="color: #ffffff" target="_blank">Refererence</a>'
},
{ name: 'include_aliases', 
optionName: 'include_aliases', 
title: 'Include Aliases', 
type: 'textarea', 
serverDataBindings: true,
required:false, 
defaultValue: '',
 help: 'Include Aliases <a href="https://documentation.onesignal.com/reference/notification-parameters#include_aliases" style="color: #ffffff" target="_blank">Refererence</a>'
},  
   
{ name: 'include_subscription_ids', 
optionName: 'include_subscription_ids', 
title: 'Include Subscription IDs [&nbsp;]', 
type: 'textarea', 
serverDataBindings: true,
required:false, 
defaultValue: '',
 help: 'Include Subscription IDs <a href="https://documentation.onesignal.com/reference/notification-parameters#include_subscription_ids" style="color: #ffffff" target="_blank">Refererence</a>'
},   
{ name: 'target_channel', 
optionName: 'target_channel', 
title: 'Target Channel', 
serverDataBindings: true,
type: 'textarea', 
required:false, 
defaultValue: '',
 help: 'Target Channel <a href="https://documentation.onesignal.com/reference/notification-parameters#target_channel" style="color: #ffffff" target="_blank">Refererence</a>'
},  
{ name: 'send_after', 
optionName: 'send_after', 
title: 'Send After', 
serverDataBindings: true,
type: 'textarea', 
required:false, 
defaultValue: '',
 help: 'Send After <a href="https://documentation.onesignal.com/reference/notification-parameters#send_after" style="color: #ffffff" target="_blank">Refererence</a>'
},  
{ name: 'delayed_option', 
optionName: 'delayed_option', 
title: 'Delayed Option', 
type: 'textarea', 
serverDataBindings: true,
required:false, 
defaultValue: '',
 help: 'Delayed Option <a href="https://documentation.onesignal.com/reference/notification-parameters#delayed_option" style="color: #ffffff" target="_blank">Refererence</a>'
},  
{ name: 'delivery_time_of_day', 
optionName: 'delivery_time_of_day', 
title: 'Delivery time of day', 
serverDataBindings: true,
type: 'textarea', 
required:false, 
defaultValue: '',
 help: 'Delivery time of day <a href="https://documentation.onesignal.com/reference/notification-parameters#delivery_time_of_day" style="color: #ffffff" target="_blank">Refererence</a>'
},  
{ name: 'throttle_rate_per_minute', 
optionName: 'throttle_rate_per_minute', 
title: 'Throttle rate per minute', 
serverDataBindings: true,
type: 'textarea', 
required:false, 
defaultValue: '',
 help: 'Throttle rate per minute <a href="https://documentation.onesignal.com/reference/notification-parameters#throttle_rate_per_minute" style="color: #ffffff" target="_blank">Refererence</a>'
},  
{ name: 'output', 
optionName: 'output', 
title: 'Output', 
type: 'boolean', 
defaultValue: false 
  },  
{
name: 'fcmlink', 
optionName: 'fcmlink', 
title: 'New App Name', 
type: 'static', 
required: false, 
serverDataBindings: true,
defaultValue: '',
help: '<a target="_blank" href="https://documentation.onesignal.com/reference/create-notification" style="color: #cc0000">Link to API reference for this module here (opens new browser windows)</a>'
}
]}]}