DockerERTFF/extensions/server_connect/modules/t3_onesignal_view_templates...

149 lines
3.7 KiB
Plaintext

{
type: 'onesignal_view_templates_onesignal_view_templates',
module : 'onesignal_view_templates',
action : 'onesignal_view_templates',
groupTitle : 'Notification Modules',
groupIcon : 'fas fa-solid fa-satellite-dish comp_general',
title : 'Onesignal View Templates List',
icon : 'far fa-solid fa-eye comp-flows',
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 : {}
properties : [
{
group: 'Settings',
variables: [
{ name: 'actionName',
optionName: 'name',
title: 'Name',
type: 'text',
required: true,
defaultValue: '',
baseName: "vt1"
},
{
name: 'appid',
optionName: 'appid',
title: 'Application ID',
type: 'text',
required: false,
serverDataBindings: true,
defaultValue: '',
help: 'You App ID'
},
{
name: 'limit',
optionName: 'limit',
title: 'Limit (max 50)',
type: 'text',
required: false,
serverDataBindings: true,
defaultValue: '50',
help: 'Limit max and default 50'
},
{
name: 'offset',
optionName: 'offset',
title: 'Offset',
type: 'text',
required: false,
serverDataBindings: true,
defaultValue: '0',
help: 'Offset'
},
{ name: 'channel', optionName: 'channel', title: 'Channel' type: 'text',
type: 'droplist',
values: [
{title: 'All', value: 'all' },
{title: 'push', value: 'push' },
{title: 'email', value: 'email'},
{title: 'sms', value: 'sms'},
], defaultValue: 'all',
initValue: 'all',
help: 'Choose type of push.'
},
{ 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/view-templates" style="color: #cc0000">Link to API reference for this module here (opens new browser windows)</a>'
}
]}]}