 {
    // onesignal web push notification 
    // not all properties added yet
    //v1.0.0
  type: 'onesignal_onesignal_create_push_notification_onesignal_onesignal_create_push_notification',
  module : 'onesignal_create_push_notification',
  action : 'onesignal_create_push_notification',
  groupTitle : 'Notification Modules',
  groupIcon : 'fas fa-solid fa-satellite-dish comp_general',
  title : 'Onesignal Web Push',
  icon : 'fas fa-solid fa-bullhorn comp_general',
 serverModel : ['node'],
dataPickObject: true,
dataScheme: [
 {name:'id', type: 'text'},
 {name:'external_id', type: 'text'},
  {name: 'status',type: 'number'}  ],
 
  properties : [
{
group: 'Message Details',
variables: [
{ name: 'actionName', 
optionName: 'name', 
title: 'Name', 
type: 'text', 
required: true, 
defaultValue: '',
baseName: "osp1"
},
{
name: 'appid', 
optionName: 'appid', 
title: 'Application ID', 
type: 'text', 
required: false, 
serverDataBindings: true,
defaultValue: ''
},
 {name: 'target_channel', 
optionName: 'target_channel', 
title: 'Target Channel', 
type: 'text', 
required: false, 
serverDataBindings: true,
defaultValue: 'push'
},
 {name: 'osname', 
optionName: 'osname', 
title: 'Internal Name', 
type: 'text', 
required: false, 
serverDataBindings: true,
defaultValue: 'mymessage1'
},
 {name: 'segment', 
optionName: 'segment', 
title: 'Segment (default "All")', 
type: 'text', 
required: false, 
serverDataBindings: true,
defaultValue: 'All'
},
  {name: 'template_id', 
optionName: 'template_id', 
title: 'template_id', 
type: 'text', 
required: false, 
serverDataBindings: true,
defaultValue: ''
}, 
{
name: "headings",
optionName: "headings",
key: "var",
keyValue: "value",
title: "Web Push 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: "Web Push 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: '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', 
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: 'imsg', 
optionName: 'imsg', 
title: 'Filters [&nbsp;]', 
type: 'static', 
required:false, 
help: 'Image Settings (will use default if not defined)'
},

{
name: 'os_image', 
optionName: 'os_image', 
title: 'Main Image', 
type: 'text', 
required: false, 
serverDataBindings: true,
defaultValue: ''
},
{
 name: 'os_image_prompt', 
optionName: 'os_image_prompt', 
title: 'Main Image', 
type: 'static', 
required: false, 
serverDataBindings: true,
defaultValue: '',
help: '&nbsp;&nbsp;&nbsp;&nbsp;Must be full http/https url, Ignored by Safari on Mac'
},
{
name: 'os_icon', 
optionName: 'os_icon', 
title: 'Icon Image', 
type: 'text', 
required: false, 
serverDataBindings: true,
defaultValue: ''
},

{ 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: 'os_badge', 
optionName: 'os_badge', 
title: 'badge', 
type: 'text', 
required: false, 
serverDataBindings: true,
defaultValue: ''
},
{
 name: 'os_badge_prompt', 
optionName: 'os_badge_prompt', 
title: 'badge', 
type: 'static', 
required: false, 
serverDataBindings: true,
defaultValue: '',
help: '&nbsp;&nbsp;&nbsp;&nbsp;png, gif, webp, ico, cur, bmp. NOT jpg. 72x72 or larger'
},

{ 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/push-notification" style="color: #cc0000">Link to API reference for this module here (opens new browser windows)</a>',
} ]} ]
}