

{
  type: 'onesignal_getnotifications_onesignal_getnotifications',
  module : 'onesignal_getnotifications',
  action : 'onesignal_getnotifications',
  groupTitle : 'Notification Modules',
  groupIcon : 'fas fa-solid fa-satellite-dish comp_general',
  title : 'Onesignal Get Notifications List*',
  icon : 'fas fa-solid fa-list comp_general',
 serverModel : ['node'],

dataPickObject: true,

 dataScheme: [

  {"type": "number","name": "total_count"},
  {"type": "number","name": "offset" },
  {"type": "number","name": "limit"},
  { "type": "array", "name": "notifications",
"sub": [
{"type": "text","name": "app_id"},
{"type": "text","name": "chrome_web_icon"},
{"type": "text","name": "ios_interruption_level"},
{"type": "number","name": "ios_relevance_score"},
{"type": "text","name": "name"},
{"type": "object","name": "contents",
"sub": [
{"type": "text", "name": "en"}
]
},
{"type": "number","name": "converted"},
{"type": "object","name": "data",
"sub": [
  {"type": "text", "name": "your_data_key"}
  
]
},
{"type": "number",
"name": "errored"
},
{"type": "array",
"name": "excluded_segments",
"sub": [
  {"type": "text",
"name": "$value"
  }
]
},
{
"type": "number",
"name": "failed"
},
{
"type": "object",
"name": "headings",
"sub": [
  {
"type": "text",
"name": "en"
  }
]
},
{
"type": "text",
"name": "id"
},
{
"type": "array",
"name": "included_segments",
"sub": [
  {
"type": "text",
"name": "$value"
  }
]
},
{
"type": "number",
"name": "queued_at"
},
{
"type": "number",
"name": "send_after"
},
{
"type": "number",
"name": "completed_at"
},
{
"type": "number",
"name": "successful"
},
{
"type": "number",
"name": "received"
},
{
"type": "text",
"name": "template_id"
},
{
"type": "number",
"name": "ttl"
},
{
"type": "text",
"name": "url"
},
{
"type": "text",
"name": "web_url"
},
{
"type": "text",
"name": "app_url"
},
{
"type": "key_array",
"name": "platform_delivery_stats",
"sub": [
  {
"type": "number",
"name": "successful"
  },
  {
"type": "number",
"name": "failed"
  },
  {
"type": "number",
"name": "errored"
  },
  {
"type": "number",
"name": "converted"
  },
  {
"type": "number",
"name": "received"
  }
]
},
{
"type": "object",
"name": "ios_attachments",
"sub": [
  {
"type": "text",
"name": "id"
  }
]
}
]
  }
 
  {"name": "status", "type": "number"} 

],
  usedModules : {
node: {

}
  }
  properties : [
{
group: 'Get Notifications',
variables: [
{ name: 'actionName', 
optionName: 'name', 
title: 'Name', 
type: 'text', 
required: true, 
defaultValue: '',
baseName: "osn1"
},

{ name: 'appid', 
optionName: 'appid', 
title: 'App Id', 
type: 'text', 
required: true, 
serverDataBindings: true,
defaultValue: '',
},

{ name: 'limit', 
optionName: 'limit', 
title: 'Record Limit (50 max)', 
type: 'text', 
required: true, 
serverDataBindings: true,
defaultValue: '',
 },

{ name: 'offset', 
optionName: 'offset', 
title: 'Page Offset', 
type: 'text', 
required: true, 
serverDataBindings: true,
defaultValue: ''},
 


{ name: 'kind'
optionName: 'kind', 
title: 'Notiication kind (blank, 0,1,3)', 
type: 'text', 
required: false, 
serverDataBindings: true,
defaultValue: '',
},
{ name: 'template_id'
optionName: 'template_id', 
title: 'Filter by Template ID', 
type: 'text', 
required: false, 
serverDataBindings: true,
defaultValue: '',
},

{ name: 'output', 
optionName: 'output', 
title: 'Output', 
type: 'boolean', 
defaultValue: false 
  }
]}]}