DockerERTFF/extensions/server_connect/modules/t4_onesignal_view_template....

110 lines
2.9 KiB
Plaintext

{
type: 'onesignal_view_template_onesignal_view_template',
module : 'onesignal_view_template',
action : 'onesignal_view_template',
groupTitle : 'Notification Modules',
groupIcon : 'fas fa-solid fa-satellite-dish comp-general',
title : 'Onesignal View Template',
icon : 'fas fa-solid fa-eye comp-flows',
serverModel : ['node'],
dataPickObject: true,
dataScheme: [
{"type": "text","name": "id"},
{"type": "text","name": "name"},
{"type": "text","name": "created_at"},
{"type": "text","name": "updated_at"},
{"type": "text","name": "channel"},
{"type": "object","name": "content",
"sub": [
{"type": "boolean","name": "isAndroid" },
{"type": "boolean","name": "isIos" },
{"type": "boolean","name": "isMacOSX" },
{"type": "boolean","name": "isAdm" },
{"type": "text", "name": "isAlexa" },
{"type": "boolean","name": "isWP" },
{"type": "boolean","name": "isWP_WNS" },
{"type": "boolean","name": "isChrome" },
{"type": "boolean","name": "isChromeWeb" },
{"type": "boolean","name": "isSafari" },
{"type": "boolean","name": "isFirefox" },
{"type": "boolean","name": "isEdge" },
{"type": "object","name": "headings","sub": [
{"type": "text","name": "en" }
]
},
{"type": "text","name": "subtitle" },
{"type": "object","name": "contents","sub": [
{"type": "text","name": "en" }
]
},
{"type": "text","name": "global_image" },
{"type": "text","name": "url" },
{"type": "text","name": "isEmail" },
{"type": "text","name": "email_body" },
{"type": "text","name": "email_subject" },
{"type": "text","name": "email_preheader" },
{"type": "text","name": "isSMS" },
{"type": "text","name": "sms_from" },
{"type": "text","name": "sms_media_urls" },
{"type": "text","name": "email_reply_to_address" },
{"type": "text","name": "disable_email_click_tracking" }
]
}
{name: 'status',type: 'number'}
],
usedModules : {}
properties : [
{
group: 'Settings',
variables: [
{ name: 'actionName',
optionName: 'name',
title: 'Name',
type: 'text',
required: true,
defaultValue: '',
baseName: "vtp1"
},
{
name: 'appid',
optionName: 'appid',
title: 'Application ID',
type: 'text',
required: false,
serverDataBindings: true,
defaultValue: '',
help: 'You App ID'
},
{
name: 'template_id',
optionName: 'template_id',
title: 'Template ID',
type: 'text',
required: true,
serverDataBindings: true,
defaultValue: '',
help: 'Template id'
},
{ 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-template" style="color: #cc0000">Link to API reference for this module here (opens new browser windows)</a>'
}
]}]}