@@ -20,8 +20,8 @@ export class HostingerApi implements INodeType {
2020 defaults : {
2121 name : 'Hostinger API' ,
2222 } ,
23- inputs : [ NodeConnectionType . Main ] ,
24- outputs : [ NodeConnectionType . Main ] ,
23+ inputs : [ 'main' ] ,
24+ outputs : [ 'main' ] ,
2525 credentials : [
2626 {
2727 name : 'hostingerApi' ,
@@ -38,7 +38,7 @@ export class HostingerApi implements INodeType {
3838 { name : 'DNS' , value : 'dns' } ,
3939 { name : 'Domains' , value : 'domains' } ,
4040 ] ,
41- default : '' ,
41+ default : 'vps ' ,
4242 } ,
4343 {
4444 displayName : 'Subcategory' ,
@@ -47,18 +47,18 @@ export class HostingerApi implements INodeType {
4747 options : [
4848 { name : 'Actions' , value : 'actions' } ,
4949 { name : 'Backups' , value : 'backups' } ,
50- { name : 'Data centers' , value : 'dataCenters' } ,
51- { name : 'PTR records' , value : 'ptrRecords' } ,
52- { name : 'Firewall' , value : 'firewall' } ,
50+ { name : 'Data Centers' , value : 'dataCenters' } ,
51+ { name : 'FireWall' , value : 'firewall' } ,
5352 { name : 'Malware Scanner' , value : 'malware' } ,
5453 { name : 'OS Templates' , value : 'osTemplates' } ,
55- { name : 'Post-install scripts' , value : 'installScripts' } ,
56- { name : 'Public keys' , value : 'publicKeys' } ,
54+ { name : 'Post-install Scripts' , value : 'installScripts' } ,
55+ { name : 'PTR Records' , value : 'ptrRecords' } ,
56+ { name : 'Public Keys' , value : 'publicKeys' } ,
5757 { name : 'Recovery' , value : 'recovery' } ,
5858 { name : 'Snapshots' , value : 'snapshots' } ,
5959 { name : 'Virtual Machine' , value : 'virtualMachine' } ,
6060 ] ,
61- default : '' ,
61+ default : 'virtualMachine ' ,
6262 displayOptions : {
6363 show : {
6464 category : [
@@ -75,7 +75,7 @@ export class HostingerApi implements INodeType {
7575 { name : 'Get Action' , value : 'getAction' } ,
7676 { name : 'List Actions' , value : 'listActions' } ,
7777 ] ,
78- default : '' ,
78+ default : 'getAction ' ,
7979 displayOptions : {
8080 show : {
8181 subcategory : [ 'actions' ] ,
@@ -91,7 +91,7 @@ export class HostingerApi implements INodeType {
9191 { name : 'List Backups' , value : 'listBackups' } ,
9292 { name : 'Restore Backup' , value : 'restoreBackup' } ,
9393 ] ,
94- default : '' ,
94+ default : 'listBackups ' ,
9595 displayOptions : {
9696 show : {
9797 subcategory : [ 'backups' ] ,
@@ -105,7 +105,7 @@ export class HostingerApi implements INodeType {
105105 options : [
106106 { name : 'List Data Centers' , value : 'listDataCenters' } ,
107107 ] ,
108- default : '' ,
108+ default : 'listDataCenters ' ,
109109 displayOptions : {
110110 show : {
111111 subcategory : [ 'dataCenters' ] ,
@@ -120,7 +120,7 @@ export class HostingerApi implements INodeType {
120120 { name : 'Create PTR' , value : 'createPTR' } ,
121121 { name : 'Delete PTR' , value : 'deletePTR' }
122122 ] ,
123- default : '' ,
123+ default : 'createPTR ' ,
124124 displayOptions : {
125125 show : {
126126 subcategory : [ 'ptrRecords' ] ,
@@ -143,7 +143,7 @@ export class HostingerApi implements INodeType {
143143 { name : 'Create Firewall Rule' , value : 'createFirewallRule' } ,
144144 { name : 'Sync Firewall' , value : 'syncFirewall' } ,
145145 ] ,
146- default : '' ,
146+ default : 'activateFirewall ' ,
147147 displayOptions : {
148148 show : {
149149 subcategory : [ 'firewall' ] ,
@@ -159,7 +159,7 @@ export class HostingerApi implements INodeType {
159159 { name : 'Add Monarx' , value : 'addMonarx' } ,
160160 { name : 'Remove Monarx' , value : 'removeMonarx' } ,
161161 ] ,
162- default : '' ,
162+ default : 'getMonarx ' ,
163163 displayOptions : {
164164 show : {
165165 subcategory : [ 'malware' ] ,
@@ -174,7 +174,7 @@ export class HostingerApi implements INodeType {
174174 { name : 'Get Template' , value : 'getTemplate' } ,
175175 { name : 'List Templates' , value : 'listTemplates' } ,
176176 ] ,
177- default : '' ,
177+ default : 'getTemplate ' ,
178178 displayOptions : {
179179 show : {
180180 subcategory : [ 'osTemplates' ] ,
@@ -192,7 +192,7 @@ export class HostingerApi implements INodeType {
192192 { name : 'List Post Install Scripts' , value : 'listPostInstallScripts' } ,
193193 { name : 'Create Post Install Script' , value : 'createPostInstallScript' } ,
194194 ] ,
195- default : '' ,
195+ default : 'getPostInstallScript ' ,
196196 displayOptions : {
197197 show : {
198198 subcategory : [ 'installScripts' ] ,
@@ -209,7 +209,7 @@ export class HostingerApi implements INodeType {
209209 { name : 'List Public Keys' , value : 'listPublicKeys' } ,
210210 { name : 'Create Public Key' , value : 'createPublicKey' } ,
211211 ] ,
212- default : '' ,
212+ default : 'attachPublicKey ' ,
213213 displayOptions : {
214214 show : {
215215 subcategory : [ 'publicKeys' ] ,
@@ -224,7 +224,7 @@ export class HostingerApi implements INodeType {
224224 { name : 'Create Recovery' , value : 'createRecovery' } ,
225225 { name : 'Delete Recovery' , value : 'deleteRecovery' } ,
226226 ] ,
227- default : '' ,
227+ default : 'createRecovery ' ,
228228 displayOptions : {
229229 show : {
230230 subcategory : [ 'recovery' ] ,
@@ -241,7 +241,7 @@ export class HostingerApi implements INodeType {
241241 { name : 'Delete Snapshot' , value : 'deleteSnapshot' } ,
242242 { name : 'Restore Snapshot' , value : 'restoreSnapshot' } ,
243243 ] ,
244- default : '' ,
244+ default : 'getSnapshot ' ,
245245 displayOptions : {
246246 show : {
247247 subcategory : [ 'snapshots' ] ,
@@ -268,7 +268,7 @@ export class HostingerApi implements INodeType {
268268 { name : 'Start VM' , value : 'startVm' } ,
269269 { name : 'Stop VM' , value : 'stopVm' } ,
270270 ] ,
271- default : '' ,
271+ default : 'getVm ' ,
272272 displayOptions : {
273273 show : {
274274 subcategory : [ 'virtualMachine' ] ,
@@ -289,7 +289,7 @@ export class HostingerApi implements INodeType {
289289 { name : 'Reset DNS Zone' , value : 'resetDnsZone' } ,
290290 { name : 'Validate DNS Zone' , value : 'validateDnsZone' } ,
291291 ] ,
292- default : '' ,
292+ default : 'listDnsSnapshots ' ,
293293 displayOptions : {
294294 show : {
295295 category : [ 'dns' ] ,
@@ -303,7 +303,7 @@ export class HostingerApi implements INodeType {
303303 options : [
304304 { name : 'Check Domain Availability' , value : 'checkDomainAvailability' } ,
305305 ] ,
306- default : '' ,
306+ default : 'checkDomainAvailability ' ,
307307 displayOptions : {
308308 show : {
309309 category : [ 'domains' ] ,
0 commit comments