
{
  type: 'onesignal_createuser_onesignal_createuser',
  module : 'onesignal_createuser',
  action : 'onesignal_createuser',
  groupTitle : 'Notification Modules',
  groupIcon : 'fas fa-solid fa-satellite-dish comp_general',
  title : 'Onesignal Create User*',
  icon : 'fas fa-solid fa-user-plus comp-flows',
 serverModel : ['node'],

dataPickObject: true,

 dataScheme: [
   {name: 'apps', type: 'array', sub: [
   {  name: 'id', type: 'text' },
   {  name: 'name', type: 'text' },
    {name: 'status',type: 'number'} 
   ]   
} 
],
  usedModules : {
node: {
}
  }
  properties : [
{
group: 'Create User',
variables: [
{ name: 'actionName', 
optionName: 'name', 
title: 'Name', 
type: 'text', 
required: true, 
defaultValue: '',
baseName: "ospl1"
},

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

 
{ name: 'identity', 
optionName: 'identity', 
title: 'External Identity', 
type: 'text', 
required: true, 
serverDataBindings: true,
defaultValue: '',
},
{ name: 'pushtype', 
optionName: 'pushtype', 
title: 'Push Type' 
type: 'droplist', 
  values: [
{title: 'IOSPush', value: 'IOSPush' },
{title: 'AndroidPush', value: 'AndroidPush'},
{title: 'FireOSPush', value: 'FireOSPush'},
{title: 'ChromeExtensionPush', value: 'ChromeExtensionPush' },
{title: 'ChromePush', value: 'ChromePush'},
{title: 'WindowsPush', value: 'WindowsPush'},
{title: 'SafariLegacyPush', value: 'SafariLegacyPush' },
{title: 'FirefoxPush', value: 'FirefoxPush'},
{title: 'macOSPush', value: 'macOSPush'},
{title: 'HuaweiPush', value: 'HuaweiPush' },
{title: 'Email', value: 'Email'},
{title: 'SMS', value: 'SMS'}
  ], 
  defaultValue: 'IOSPush',
  InitValue: 'IOSPush',
	help: 'Choose type of push.'
},
 
{ name: 'token', 
optionName: 'token', 
title: 'Token', 
type: 'text', 
required: true, 
serverDataBindings: true,
defaultValue: '',
},
{ name: 'identity', 
optionName: 'Identity', 
title: 'Identities (key:value)', 
type: 'textarea', 
serverDataBindings: true,
required:false, 
defaultValue: '',
 help: 'External ID <a href="https://documentation.onesignal.com/reference/create-user#identity" style="color: #ffffff" target="_blank">Refererence</a>'
},
 {
name: "tags",
optionName: "tags",
key: "var",
keyValue: "value",
title: "User Tags",
type: "grid",
defaultValue: {},
serverDataBindings: true,
columns: [
{
field: "var",
caption: "Key",
size: "30%",
editable: {
  type: "static"
}
},
{
field: "value",
caption: "Value",
size: "70%",
editable: {
  type: "datapicker"
}
}
]
  },
 { name: 'enabled', 
optionName: 'enabled', 
title: 'Enable', 
type: 'boolean', 
defaultValue: false 
  }
{ name: 'output', 
optionName: 'output', 
title: 'Output', 
type: 'boolean', 
defaultValue: false 
  }
]}]}