290 lines
7.9 KiB
Plaintext
290 lines
7.9 KiB
Plaintext
{
|
|
type: 'onesignal_makeapp_onesignal_makeapp',
|
|
module : 'onesignal_makeapp',
|
|
action : 'onesignal_makeapp',
|
|
groupTitle : 'Notification Modules',
|
|
groupIcon : 'fas fa-solid fa-satellite-dish comp_general',
|
|
title : 'Onesignal Create App',
|
|
icon : 'fas fa-solid fa-pen comp-images',
|
|
serverModel : ['node'],
|
|
|
|
dataPickObject: true,
|
|
|
|
dataScheme: [
|
|
{"type": "text","name": "id"},
|
|
{"type": "text","name": "name"},
|
|
{"type": "text","name": "gcm_key"},
|
|
{"type": "text","name": "fcm_v1_service_account_json"},
|
|
{"type": "text","name": "fcm_sender_id"},
|
|
{"type": "text","name": "chrome_key"},
|
|
{"type": "text","name": "chrome_web_key"},
|
|
{"type": "text","name": "chrome_web_origin"},
|
|
{"type": "text","name": "chrome_web_gcm_sender_id"},
|
|
{"type": "text","name": "chrome_web_default_notification_icon"},
|
|
{"type": "text","name": "chrome_web_sub_domain"},
|
|
{"type": "text","name": "apns_env"},
|
|
{"type": "text","name": "apns_certificates"},
|
|
{"type": "text","name": "apns_p8"},
|
|
{"type": "text","name": "apns_team_id"},
|
|
{"type": "text","name": "apns_key_id"},
|
|
{"type": "text","name": "apns_bundle_id"},
|
|
{"type": "text","name": "safari_apns_certificate"},
|
|
{"type": "text","name": "safari_site_origin"},
|
|
{"type": "text","name": "safari_push_id"},
|
|
{"type": "text","name": "safari_icon_16_16"},
|
|
{"type": "text","name": "safari_icon_32_32"},
|
|
{"type": "text","name": "safari_icon_64_64"},
|
|
{"type": "text","name": "safari_icon_128_128"},
|
|
{"type": "text","name": "safari_icon_256_256"},
|
|
{"type": "text","name": "site_name"},
|
|
{"type": "text","name": "updated_at"},
|
|
{"type": "text","name": "created_at"},
|
|
{"type": "text","name": "players"},
|
|
{"type": "text","name": "messageable_players"},
|
|
{"type": "text","name": "basic_auth_key"},
|
|
{"type": "boolean","name": "additional_data_is_root_payload"},
|
|
{"type": "text","name": "organization_id"},
|
|
{"name": "status","type": "number"}
|
|
],
|
|
usedModules : {
|
|
node: {
|
|
|
|
}
|
|
}
|
|
properties : [
|
|
{
|
|
group: 'Make App',
|
|
variables: [
|
|
{ name: 'actionName',
|
|
optionName: 'name',
|
|
title: 'Name',
|
|
type: 'text',
|
|
required: true,
|
|
defaultValue: '',
|
|
baseName: "osm1"
|
|
},
|
|
|
|
|
|
{ name: 'orgid',
|
|
optionName: 'orgid',
|
|
title: 'Organization ID',
|
|
type: 'text',
|
|
required: false,
|
|
serverDataBindings: true,
|
|
defaultValue: '',
|
|
help: 'Enter the Organization id, if omitted a new organization will be created'
|
|
},
|
|
|
|
{
|
|
name: 'app_name',
|
|
optionName: 'app_name',
|
|
title: 'New App Name',
|
|
type: 'text',
|
|
required: true,
|
|
serverDataBindings: true,
|
|
help: 'Enter an App name'
|
|
defaultValue: ''
|
|
},
|
|
|
|
{
|
|
name: 'chrome_web_default_notification_icon',
|
|
optionName: 'chrome_web_default_notification_icon',
|
|
title: 'ChromeWeb Default Notification Icon',
|
|
type: 'text',
|
|
required: true,
|
|
serverDataBindings: true,
|
|
defaultValue: ''
|
|
},
|
|
{
|
|
name: 'chrome_web_origin',
|
|
optionName: 'chrome_web_origin',
|
|
title: 'Default origin (defaults to ENV setting',
|
|
type: 'text',
|
|
required: true,
|
|
serverDataBindings: true,
|
|
defaultValue: ''
|
|
},
|
|
|
|
{ name: 'safari_push',
|
|
optionName: 'safari_push',
|
|
title: 'Safari: Tick if using web push',
|
|
type: 'boolean',
|
|
required: false,
|
|
defaultValue: false,
|
|
show:['safari_site_origin']
|
|
},
|
|
{ name: 'safari_site_origin',
|
|
optionName: 'safari_site_origin',
|
|
title: 'URL',
|
|
type: 'text',
|
|
defaultValue: '' ,
|
|
required: false,
|
|
serverDataBindings: true,
|
|
help:'Safari: Recommended if using web push. The URL to your website. Must use https:// and be the specific origin.',
|
|
initDisplay: 'none'
|
|
},
|
|
{
|
|
name: 'safari_apns',
|
|
optionName: 'safari_apns',
|
|
title: 'Safari: Tick if using safari_apns',
|
|
type: 'boolean',
|
|
required: false,
|
|
defaultValue: false ,
|
|
show:['safari_apns_p12','safari_apns_p12', 'safari_apns_p12_password','safari_icon_256_256']
|
|
},
|
|
|
|
{ name: 'safari_apns_p12',
|
|
optionName: 'safari_apns_p12',
|
|
title: 'CONVERTED P12',
|
|
type: 'text',
|
|
required: false,
|
|
defaultValue: '' ,
|
|
serverDataBindings: true,
|
|
help:'Safari: Your push notification p12 certificate file for Safari Push Notifications, converted to base64 encoded format. If not provided, then we will assign one.',
|
|
initDisplay: 'none'
|
|
},
|
|
{ name: 'safari_apns_p12_password',
|
|
optionName: 'safari_apns_p12_password',
|
|
title: 'P12 PASSWORD',
|
|
required: false,
|
|
type: 'text',
|
|
defaultValue: '' ,
|
|
serverDataBindings: true,
|
|
help:'Safari: Password for the safari_apns_p12 file. Omit if no password.',
|
|
initDisplay: 'none'
|
|
},
|
|
{ name: 'safari_icon_256_256',
|
|
optionName: 'safari_icon_256_256',
|
|
title: ' ICON URL',
|
|
type: 'text',
|
|
defaultValue: '' ,
|
|
required: false,
|
|
serverDataBindings: true,
|
|
help:'Safari: Your default notification icon as a 256x256px .png URL.',
|
|
initDisplay: 'none'
|
|
},
|
|
{ name: 'android_Push',
|
|
optionName: 'android_Push',
|
|
title: 'Android: Tick if using Android push notifications',
|
|
type: 'boolean',
|
|
required: false,
|
|
defaultValue: false ,
|
|
show:['fcm_v1_service_account_json']
|
|
},
|
|
{name: 'fcm_v1_service_account_json',
|
|
optionName: 'fcm_v1_service_account_json',
|
|
title: 'FCM Service Account JSON base64',
|
|
type: 'text',
|
|
required: false,
|
|
serverDataBindings: true,
|
|
defaultValue: '',
|
|
help: 'Android: Required if using Android push notifications.',
|
|
initDisplay: 'none'
|
|
},
|
|
|
|
{ name: 'apns',
|
|
optionName: 'apns',
|
|
title: 'iOS: Tick if using p12 APNS Authentication.',
|
|
type: 'boolean',
|
|
defaultValue: false ,
|
|
required: false,
|
|
show:['apns_p12','apns_p12_password','apns_env','apns_p12','apns_key_id','apns_team_id','apns_bundle_id','apns_p8']
|
|
},
|
|
|
|
{name: 'apns_p12',
|
|
optionName: 'apns_p12',
|
|
title: 'Converted P12',
|
|
type: 'text',
|
|
required: false,
|
|
serverDataBindings: true,
|
|
defaultValue: '',
|
|
help: 'iOS: Your apple push notification p12 certificate file, converted to Base64 encoded format.',
|
|
initDisplay: 'none'
|
|
},
|
|
{name: 'apns_p12_password',
|
|
optionName: 'apns_p12_password',
|
|
title: 'P12_PASSWORD',
|
|
type: 'text',
|
|
required: false,
|
|
serverDataBindings: true,
|
|
defaultValue: '',
|
|
help: 'iOS: Your apple push notification p12 certificate file, converted to Base64 encoded format.',
|
|
initDisplay: 'none'
|
|
},
|
|
{name: 'apns_env',
|
|
optionName: 'apns_env',
|
|
title: 'APS Environment Entitlement.',
|
|
type: 'text',
|
|
required: false,
|
|
serverDataBindings: true,
|
|
defaultValue: '',
|
|
help: 'iOS: Omit this field for Production environment (App Store & Test Flight builds). Or set either sandbox or production.',
|
|
initDisplay: 'none'
|
|
},
|
|
{name: 'apns_key_id',
|
|
optionName: 'apns_key_id',
|
|
title: 'KEY_ID',
|
|
type: 'text',
|
|
required: false,
|
|
serverDataBindings: true,
|
|
defaultValue: '',
|
|
help: 'iOS: Required if using p8 APNS Authentication.',
|
|
initDisplay: 'none'
|
|
},
|
|
{name: 'apns_team_id',
|
|
optionName: 'apns_team_id',
|
|
title: 'TEAM_ID',
|
|
type: 'text',
|
|
required: false,
|
|
serverDataBindings: true,
|
|
defaultValue: '',
|
|
help: 'iOS: Required if using p8 APNS Authentication.',
|
|
initDisplay: 'none'
|
|
},
|
|
{name: 'apns_bundle_id',
|
|
optionName: 'apns_bundle_id',
|
|
title: 'BUNDLE_ID',
|
|
type: 'text',
|
|
required: false,
|
|
serverDataBindings: true,
|
|
defaultValue: '',
|
|
help: 'iOS: Required if using p8 APNS Authentication.',
|
|
initDisplay: 'none'
|
|
},
|
|
{name: 'apns_p8',
|
|
optionName: 'apns_p8',
|
|
title: 'ADD_BASE64_ENCODED_P8',
|
|
type: 'text',
|
|
required: false,
|
|
serverDataBindings: true,
|
|
defaultValue: '',
|
|
help: 'iOS: Required if using p8 APNS Authentication. Must be base64 encoded format.',
|
|
initDisplay: 'none'
|
|
},
|
|
|
|
|
|
|
|
{ name: 'additional_data_is_root_payload',
|
|
optionName: 'additional_data_is_root_payload',
|
|
title: 'additional_data_is_root_payload',
|
|
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/create-an-app" 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
|
|
}
|
|
]}]} |