108 lines
2.7 KiB
Plaintext
108 lines
2.7 KiB
Plaintext
{
|
|
type: 'onesignal_create_subscription_onesignal_create_subscription',
|
|
module : 'onesignal_create_subscription',
|
|
action : 'onesignal_create_subscription',
|
|
groupTitle : 'Notification Modules',
|
|
groupIcon : 'fas fa-solid fa-satellite-dish comp_general',
|
|
title : 'Onesignal Create subscription',
|
|
icon : 'fas fa-solid fa-wrench comp-dialogs',
|
|
serverModel : ['node'],
|
|
dataPickObject: true,
|
|
dataScheme: [ {name: 'status',type: 'number'}
|
|
],
|
|
properties : [
|
|
{
|
|
group: 'App Settings',
|
|
variables: [
|
|
{ name: 'actionName',
|
|
optionName: 'name',
|
|
title: 'Name',
|
|
type: 'text',
|
|
required: true,
|
|
defaultValue: '',
|
|
baseName: "cs1"
|
|
},
|
|
{ name: 'appid',
|
|
optionName: 'appid',
|
|
title: 'App Id',
|
|
type: 'text',
|
|
required: false,
|
|
serverDataBindings: true,
|
|
defaultValue: '',
|
|
help: 'App ID'
|
|
},
|
|
{ name: 'alias_label',
|
|
optionName: 'alias_label',
|
|
title: 'Alias Label',
|
|
type: 'text',
|
|
required: true,
|
|
serverDataBindings: true,
|
|
defaultValue: '',
|
|
help: 'Alias Label'
|
|
},
|
|
{ name: 'alias_id',
|
|
optionName: 'alias_id',
|
|
title: 'Alias ID',
|
|
type: 'text',
|
|
required: true,
|
|
serverDataBindings: true,
|
|
defaultValue: '',
|
|
help: 'Alias ID'
|
|
},
|
|
|
|
{ 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: '',
|
|
help: 'Push Token, email or SMS Phone Number'
|
|
},
|
|
{ name: 'enabled',
|
|
optionName: 'enabled',
|
|
title: 'Enable',
|
|
type: 'boolean',
|
|
defaultValue: false ,
|
|
help: 'Enable this subscription'
|
|
},
|
|
{
|
|
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/create-subscription" style="color: #cc0000">Link to API reference for this module here (opens new browser windows)</a>',
|
|
},
|
|
{ name: 'output',
|
|
optionName: 'output',
|
|
title: 'Output',
|
|
type: 'boolean',
|
|
defaultValue: false
|
|
}
|
|
]}]}
|