DockerERTFF/extensions/server_connect/modules/u2_onesignal_getuser.hjson

133 lines
3.2 KiB
Plaintext

{
type: 'onesignal_getuser_onesignal_getuser',
module : 'onesignal_getuser',
action : 'onesignal_getuser',
groupTitle : 'Notification Modules',
groupIcon : 'fas fa-solid fa-satellite-dish comp_general',
title : 'Onesignal Get User*',
icon : 'fas fa-solid fa-user comp-flows',
serverModel : ['node'],
dataPickObject: true,
dataScheme: [
{name: 'properties', type: 'object', sub: [
{ name: 'language', type: 'text' },
{ name: 'timezone_id', type: 'text' },
{ name: 'first_active', type: 'text' },
{ name: 'last_active', type: 'text' } ]},
{name: 'identity', type: 'object', sub: [
{name: 'onesignal_id', type: 'text' },
]},
{name: 'subscriptions', type: 'array', sub: [
{ name: 'id', type: 'text' },
{ name: 'app_id', type: 'text' },
{ name: 'type', type: 'text' },
{ name: 'token', type: 'text' },
{ name: 'enabled', type: 'text' },
{ name: 'notification_types', type: 'text' },
{ name: 'session_time', type: 'text' },
{ name: 'session_count', type: 'text' },
{ name: 'sdk', type: 'text' },
{ name: 'device_model', type: 'text' },
{ name: 'device_os', type: 'text' },
{ name: 'rooted', type: 'text' },
{ name: 'test_type', type: 'text' },
{ name: 'app_version', type: 'text' },
{ name: 'net_type', type: 'text' },
{ name: 'carrier', type: 'text' },
{ name: 'web_auth', type: 'text' },
{ name: 'web_p256', type: 'text' }
]},
{name: 'status',type: 'number'}
]
,
properties : [
{
group: 'Get User',
variables: [
{ name: 'actionName',
optionName: 'name',
title: 'Name',
type: 'text',
required: true,
defaultValue: '',
baseName: "osgu1"
},
{ name: 'appid',
optionName: 'appid',
title: 'App Id',
type: 'text',
required: true,
serverDataBindings: true,
defaultValue: '',
},
{ name: 'prompt_text',
optionName: 'prompt_text',
title: 'prompt_text',
type: 'static',
required: false,
serverDataBindings: true,
defaultValue: '',
help: '(onesignal_id can be used as a special alias_label, using the string "onesignal_id" as the alias_label and the UUID as the alias_id.)'
},
{ name: 'alias_label',
optionName: 'alias_label',
title: 'Alias Label',
type: 'text',
required: false,
serverDataBindings: true,
defaultValue: ''
},
{ name: 'alias_label_prompt',
optionName: 'alias_label_prompt',
title: 'Alias Label',
type: 'static',
required: false,
serverDataBindings: true,
defaultValue: '',
help: '(enter "onesignal_id" if using onesignal_id instead of alias)'
},
{ name: 'alias_id',
optionName: 'alias_id',
title: 'Alias ID',
type: 'text',
required: false,
serverDataBindings: true,
defaultValue: ''
},
{ name: 'alias_id_prompt',
optionName: 'alias_id_prompt',
title: 'Alias ID prompt',
type: 'static',
required: false,
serverDataBindings: true,
defaultValue: '',
help: '(enter your onesignal_id UUID here if not using alias)'
},
{ name: 'os_id',
optionName: 'os_id',
title: 'Onesignal ID',
type: 'text',
required: false,
serverDataBindings: true,
defaultValue: '',
initDisplay: 'none'
},
{ name: 'output',
optionName: 'output',
title: 'Output',
type: 'boolean',
defaultValue: false
} ] } ] }