n8n-nodes-test-node 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -5
- package/dist/{CamofoxBrowserApi.credentials.d.ts → GofileAPIApi.credentials.d.ts} +1 -1
- package/dist/{CamofoxBrowserApi.credentials.js → GofileAPIApi.credentials.js} +7 -7
- package/dist/GofileAPIFilesNode.node.d.ts +5 -0
- package/dist/GofileAPIFilesNode.node.js +119 -0
- package/dist/GofileAPIFilesToolNode.node.d.ts +5 -0
- package/dist/GofileAPIFilesToolNode.node.js +120 -0
- package/dist/{CamofoxBrowserNode.node.d.ts → GofileAPINode.node.d.ts} +1 -1
- package/dist/GofileAPINode.node.js +837 -0
- package/dist/{CamofoxBrowserToolNode.node.d.ts → GofileAPIToolNode.node.d.ts} +1 -1
- package/dist/GofileAPIToolNode.node.js +838 -0
- package/package.json +9 -6
- package/dist/CamofoxBrowserNode.node.js +0 -2563
- package/dist/CamofoxBrowserToolNode.node.js +0 -2564
- package/dist/RemoteChromiumCDPAutomationAPIApi.credentials.d.ts +0 -9
- package/dist/RemoteChromiumCDPAutomationAPIApi.credentials.js +0 -45
- package/dist/RemoteChromiumCDPAutomationAPINode.node.d.ts +0 -4
- package/dist/RemoteChromiumCDPAutomationAPINode.node.js +0 -3786
- package/dist/RemoteChromiumCDPAutomationAPIToolNode.node.d.ts +0 -4
- package/dist/RemoteChromiumCDPAutomationAPIToolNode.node.js +0 -3787
- package/dist/icon.png +0 -0
|
@@ -0,0 +1,837 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GofileAPINode = void 0;
|
|
4
|
+
class GofileAPINode {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.description = {
|
|
7
|
+
displayName: 'Gofile API',
|
|
8
|
+
name: 'gofileAPI',
|
|
9
|
+
icon: 'file:icon.svg',
|
|
10
|
+
group: ['transform'],
|
|
11
|
+
version: 1,
|
|
12
|
+
subtitle: '={{$parameter["operation"] + ($parameter["resource"] ? " " + $parameter["resource"] : "")}}',
|
|
13
|
+
description: 'OpenAPI 3 specification for the Gofile REST API, based on the official Gofile API documentation last updated May 16, 2025. Gofile is a beta API and may change. Authentication uses an API token as a Bearer token in the Authorization header. Most endpoints require a premium account; basic operations such as uploading, creating folders, renaming content, and removing content are available to free accounts.',
|
|
14
|
+
defaults: {
|
|
15
|
+
name: 'Gofile API',
|
|
16
|
+
},
|
|
17
|
+
inputs: ['main'],
|
|
18
|
+
outputs: ['main'],
|
|
19
|
+
credentials: [
|
|
20
|
+
{
|
|
21
|
+
name: 'gofileAPIApi',
|
|
22
|
+
required: true,
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
requestDefaults: {
|
|
26
|
+
baseURL: '={{$credentials.baseUrl}}',
|
|
27
|
+
headers: {
|
|
28
|
+
Accept: 'application/json',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
properties: [
|
|
32
|
+
{
|
|
33
|
+
displayName: 'Resource',
|
|
34
|
+
name: 'resource',
|
|
35
|
+
type: 'options',
|
|
36
|
+
noDataExpression: true,
|
|
37
|
+
options: [
|
|
38
|
+
{ name: 'Contents', value: 'contents' },
|
|
39
|
+
{ name: 'Accounts', value: 'accounts' },
|
|
40
|
+
],
|
|
41
|
+
default: 'contents',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
displayName: 'Operation',
|
|
45
|
+
name: 'operation',
|
|
46
|
+
type: 'options',
|
|
47
|
+
noDataExpression: true,
|
|
48
|
+
options: [
|
|
49
|
+
{
|
|
50
|
+
name: 'Create A Folder',
|
|
51
|
+
value: 'createFolder',
|
|
52
|
+
action: 'Create a folder',
|
|
53
|
+
description: 'Creates a new folder inside the specified parent folder.',
|
|
54
|
+
routing: {
|
|
55
|
+
request: {
|
|
56
|
+
method: 'POST',
|
|
57
|
+
url: '=/contents/createFolder',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'Update Content Attribute',
|
|
63
|
+
value: 'updateContent',
|
|
64
|
+
action: 'Update content attribute',
|
|
65
|
+
description: 'Modifies one attribute of a file or folder. Available attributes depend on content type.',
|
|
66
|
+
routing: {
|
|
67
|
+
request: {
|
|
68
|
+
method: 'PUT',
|
|
69
|
+
url: '=/contents/{{$parameter["contentId"]}}/update',
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'Delete Content',
|
|
75
|
+
value: 'deleteContents',
|
|
76
|
+
action: 'Delete content',
|
|
77
|
+
description: 'Permanently deletes one or more files and folders belonging to the authenticated account. Deleting a folder also deletes its contents.',
|
|
78
|
+
routing: {
|
|
79
|
+
request: {
|
|
80
|
+
method: 'DELETE',
|
|
81
|
+
url: '=/contents',
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: 'Get Content Details',
|
|
87
|
+
value: 'getContent',
|
|
88
|
+
action: 'Get content details',
|
|
89
|
+
description: 'Retrieves detailed information about a folder and its contents.',
|
|
90
|
+
routing: {
|
|
91
|
+
request: {
|
|
92
|
+
method: 'GET',
|
|
93
|
+
url: '=/contents/{{$parameter["contentId"]}}',
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: 'Search Contents',
|
|
99
|
+
value: 'searchContents',
|
|
100
|
+
action: 'Search contents',
|
|
101
|
+
description: 'Recursively searches a folder for content names or tags. Matching is case-insensitive and supports partial matches.',
|
|
102
|
+
routing: {
|
|
103
|
+
request: {
|
|
104
|
+
method: 'GET',
|
|
105
|
+
url: '=/contents/search',
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
name: 'Create A Direct Link',
|
|
111
|
+
value: 'createDirectLink',
|
|
112
|
+
action: 'Create a direct link',
|
|
113
|
+
description: 'Creates a direct access link. For folders, Gofile generates a ZIP archive.',
|
|
114
|
+
routing: {
|
|
115
|
+
request: {
|
|
116
|
+
method: 'POST',
|
|
117
|
+
url: '=/contents/{{$parameter["contentId"]}}/directlinks',
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: 'Update A Direct Link',
|
|
123
|
+
value: 'updateDirectLink',
|
|
124
|
+
action: 'Update a direct link',
|
|
125
|
+
description: 'Updates an existing direct link. If a restriction is omitted, Gofile removes that restriction.',
|
|
126
|
+
routing: {
|
|
127
|
+
request: {
|
|
128
|
+
method: 'PUT',
|
|
129
|
+
url: '=/contents/{{$parameter["contentId"]}}/directlinks/{{$parameter["directLinkId"]}}',
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'Delete A Direct Link',
|
|
135
|
+
value: 'deleteDirectLink',
|
|
136
|
+
action: 'Delete a direct link',
|
|
137
|
+
description: 'Permanently removes a direct link without deleting the underlying content.',
|
|
138
|
+
routing: {
|
|
139
|
+
request: {
|
|
140
|
+
method: 'DELETE',
|
|
141
|
+
url: '=/contents/{{$parameter["contentId"]}}/directlinks/{{$parameter["directLinkId"]}}',
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
name: 'Copy Content',
|
|
147
|
+
value: 'copyContents',
|
|
148
|
+
action: 'Copy content',
|
|
149
|
+
description: 'Copies one or more files/folders into a destination folder.',
|
|
150
|
+
routing: {
|
|
151
|
+
request: {
|
|
152
|
+
method: 'POST',
|
|
153
|
+
url: '=/contents/copy',
|
|
154
|
+
},
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: 'Move Content',
|
|
159
|
+
value: 'moveContents',
|
|
160
|
+
action: 'Move content',
|
|
161
|
+
description: 'Moves one or more files/folders into a destination folder while preserving their attributes and permissions.',
|
|
162
|
+
routing: {
|
|
163
|
+
request: {
|
|
164
|
+
method: 'PUT',
|
|
165
|
+
url: '=/contents/move',
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: 'Import Content',
|
|
171
|
+
value: 'importContents',
|
|
172
|
+
action: 'Import content',
|
|
173
|
+
description: "Imports shared content into the authenticated account's root folder.",
|
|
174
|
+
routing: {
|
|
175
|
+
request: {
|
|
176
|
+
method: 'POST',
|
|
177
|
+
url: '=/contents/import',
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
},
|
|
181
|
+
],
|
|
182
|
+
displayOptions: {
|
|
183
|
+
show: {
|
|
184
|
+
resource: ['contents'],
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
default: 'createFolder',
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
displayName: 'Operation',
|
|
191
|
+
name: 'operation',
|
|
192
|
+
type: 'options',
|
|
193
|
+
noDataExpression: true,
|
|
194
|
+
options: [
|
|
195
|
+
{
|
|
196
|
+
name: 'Get Account ID',
|
|
197
|
+
value: 'getAccountId',
|
|
198
|
+
action: 'Get account ID',
|
|
199
|
+
description: 'Returns the account associated with the current API token.',
|
|
200
|
+
routing: {
|
|
201
|
+
request: {
|
|
202
|
+
method: 'GET',
|
|
203
|
+
url: '=/accounts/getid',
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: 'Get Account Details',
|
|
209
|
+
value: 'getAccount',
|
|
210
|
+
action: 'Get account details',
|
|
211
|
+
description: 'Returns detailed information about an account. The account ID must belong to the authenticated token.',
|
|
212
|
+
routing: {
|
|
213
|
+
request: {
|
|
214
|
+
method: 'GET',
|
|
215
|
+
url: '=/accounts/{{$parameter["accountId"]}}',
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
name: 'Reset API Token',
|
|
221
|
+
value: 'resetAccountToken',
|
|
222
|
+
action: 'Reset API token',
|
|
223
|
+
description: 'Invalidates the current authentication token. A login link containing the new token is sent to the account email.',
|
|
224
|
+
routing: {
|
|
225
|
+
request: {
|
|
226
|
+
method: 'POST',
|
|
227
|
+
url: '=/accounts/{{$parameter["accountId"]}}/resettoken',
|
|
228
|
+
},
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
displayOptions: {
|
|
233
|
+
show: {
|
|
234
|
+
resource: ['accounts'],
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
default: 'getAccountId',
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
displayName: 'Parent Folder Id',
|
|
241
|
+
name: 'parentFolderId',
|
|
242
|
+
type: 'string',
|
|
243
|
+
default: '',
|
|
244
|
+
required: true,
|
|
245
|
+
description: '',
|
|
246
|
+
displayOptions: {
|
|
247
|
+
show: {
|
|
248
|
+
resource: ['contents'],
|
|
249
|
+
operation: ['createFolder'],
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
routing: {
|
|
253
|
+
send: {
|
|
254
|
+
type: 'body',
|
|
255
|
+
property: 'parentFolderId',
|
|
256
|
+
},
|
|
257
|
+
},
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
displayName: 'Additional Fields',
|
|
261
|
+
name: 'additionalFields',
|
|
262
|
+
type: 'collection',
|
|
263
|
+
placeholder: 'Add Field',
|
|
264
|
+
default: {},
|
|
265
|
+
displayOptions: {
|
|
266
|
+
show: {
|
|
267
|
+
resource: ['contents'],
|
|
268
|
+
operation: ['createFolder'],
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
options: [
|
|
272
|
+
{
|
|
273
|
+
displayName: 'Folder Name',
|
|
274
|
+
name: 'folderName',
|
|
275
|
+
type: 'string',
|
|
276
|
+
default: '',
|
|
277
|
+
description: '',
|
|
278
|
+
routing: {
|
|
279
|
+
send: {
|
|
280
|
+
type: 'body',
|
|
281
|
+
property: 'folderName',
|
|
282
|
+
},
|
|
283
|
+
},
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
displayName: 'Public',
|
|
287
|
+
name: 'public',
|
|
288
|
+
type: 'boolean',
|
|
289
|
+
default: false,
|
|
290
|
+
description: '',
|
|
291
|
+
routing: {
|
|
292
|
+
send: {
|
|
293
|
+
type: 'body',
|
|
294
|
+
property: 'public',
|
|
295
|
+
},
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
],
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
displayName: 'Content Id',
|
|
302
|
+
name: 'contentId',
|
|
303
|
+
type: 'string',
|
|
304
|
+
default: '',
|
|
305
|
+
required: true,
|
|
306
|
+
description: 'Gofile content/folder identifier.',
|
|
307
|
+
displayOptions: {
|
|
308
|
+
show: {
|
|
309
|
+
resource: ['contents'],
|
|
310
|
+
operation: ['updateContent'],
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
displayName: 'Body (JSON)',
|
|
316
|
+
name: 'bodyJson',
|
|
317
|
+
type: 'json',
|
|
318
|
+
default: '{}',
|
|
319
|
+
required: true,
|
|
320
|
+
description: "Raw JSON request body. The spec's body schema is too complex to expose as individual fields, so provide the full JSON payload here.",
|
|
321
|
+
displayOptions: {
|
|
322
|
+
show: {
|
|
323
|
+
resource: ['contents'],
|
|
324
|
+
operation: ['updateContent'],
|
|
325
|
+
},
|
|
326
|
+
},
|
|
327
|
+
routing: {
|
|
328
|
+
request: {
|
|
329
|
+
body: '={{JSON.parse($value)}}',
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
displayName: 'Contents Id',
|
|
335
|
+
name: 'contentsId',
|
|
336
|
+
type: 'string',
|
|
337
|
+
default: '',
|
|
338
|
+
required: true,
|
|
339
|
+
description: 'Comma-separated content IDs.',
|
|
340
|
+
displayOptions: {
|
|
341
|
+
show: {
|
|
342
|
+
resource: ['contents'],
|
|
343
|
+
operation: ['deleteContents'],
|
|
344
|
+
},
|
|
345
|
+
},
|
|
346
|
+
routing: {
|
|
347
|
+
send: {
|
|
348
|
+
type: 'body',
|
|
349
|
+
property: 'contentsId',
|
|
350
|
+
},
|
|
351
|
+
},
|
|
352
|
+
},
|
|
353
|
+
{
|
|
354
|
+
displayName: 'Content Id',
|
|
355
|
+
name: 'contentId',
|
|
356
|
+
type: 'string',
|
|
357
|
+
default: '',
|
|
358
|
+
required: true,
|
|
359
|
+
description: 'Gofile content/folder identifier.',
|
|
360
|
+
displayOptions: {
|
|
361
|
+
show: {
|
|
362
|
+
resource: ['contents'],
|
|
363
|
+
operation: ['getContent'],
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
displayName: 'Additional Fields',
|
|
369
|
+
name: 'additionalFields',
|
|
370
|
+
type: 'collection',
|
|
371
|
+
placeholder: 'Add Field',
|
|
372
|
+
default: {},
|
|
373
|
+
displayOptions: {
|
|
374
|
+
show: {
|
|
375
|
+
resource: ['contents'],
|
|
376
|
+
operation: ['getContent'],
|
|
377
|
+
},
|
|
378
|
+
},
|
|
379
|
+
options: [
|
|
380
|
+
{
|
|
381
|
+
displayName: 'Password',
|
|
382
|
+
name: 'password',
|
|
383
|
+
type: 'string',
|
|
384
|
+
default: '',
|
|
385
|
+
description: 'SHA-256 hash of the password for password-protected content.',
|
|
386
|
+
routing: {
|
|
387
|
+
send: {
|
|
388
|
+
type: 'query',
|
|
389
|
+
property: 'password',
|
|
390
|
+
},
|
|
391
|
+
},
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
displayName: 'Page',
|
|
395
|
+
name: 'page',
|
|
396
|
+
type: 'number',
|
|
397
|
+
default: 0,
|
|
398
|
+
description: 'Page number, starting at 1.',
|
|
399
|
+
routing: {
|
|
400
|
+
send: {
|
|
401
|
+
type: 'query',
|
|
402
|
+
property: 'page',
|
|
403
|
+
},
|
|
404
|
+
},
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
displayName: 'Page Size',
|
|
408
|
+
name: 'pageSize',
|
|
409
|
+
type: 'number',
|
|
410
|
+
default: 0,
|
|
411
|
+
description: 'Number of items per page.',
|
|
412
|
+
routing: {
|
|
413
|
+
send: {
|
|
414
|
+
type: 'query',
|
|
415
|
+
property: 'pageSize',
|
|
416
|
+
},
|
|
417
|
+
},
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
displayName: 'Sort Field',
|
|
421
|
+
name: 'sortField',
|
|
422
|
+
type: 'string',
|
|
423
|
+
default: '',
|
|
424
|
+
description: 'Field used to sort children.',
|
|
425
|
+
routing: {
|
|
426
|
+
send: {
|
|
427
|
+
type: 'query',
|
|
428
|
+
property: 'sortField',
|
|
429
|
+
},
|
|
430
|
+
},
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
displayName: 'Sort Direction',
|
|
434
|
+
name: 'sortDirection',
|
|
435
|
+
type: 'number',
|
|
436
|
+
default: 0,
|
|
437
|
+
description: 'Sort direction. Gofile documents this as an integer; the exact semantic values are left unconstrained.',
|
|
438
|
+
routing: {
|
|
439
|
+
send: {
|
|
440
|
+
type: 'query',
|
|
441
|
+
property: 'sortDirection',
|
|
442
|
+
},
|
|
443
|
+
},
|
|
444
|
+
},
|
|
445
|
+
],
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
displayName: 'Content Id',
|
|
449
|
+
name: 'contentId',
|
|
450
|
+
type: 'string',
|
|
451
|
+
default: '',
|
|
452
|
+
required: true,
|
|
453
|
+
description: 'Folder ID to search within.',
|
|
454
|
+
displayOptions: {
|
|
455
|
+
show: {
|
|
456
|
+
resource: ['contents'],
|
|
457
|
+
operation: ['searchContents'],
|
|
458
|
+
},
|
|
459
|
+
},
|
|
460
|
+
routing: {
|
|
461
|
+
send: {
|
|
462
|
+
type: 'query',
|
|
463
|
+
property: 'contentId',
|
|
464
|
+
},
|
|
465
|
+
},
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
displayName: 'Searched String',
|
|
469
|
+
name: 'searchedString',
|
|
470
|
+
type: 'string',
|
|
471
|
+
default: '',
|
|
472
|
+
required: true,
|
|
473
|
+
description: 'String to match against names or tags.',
|
|
474
|
+
displayOptions: {
|
|
475
|
+
show: {
|
|
476
|
+
resource: ['contents'],
|
|
477
|
+
operation: ['searchContents'],
|
|
478
|
+
},
|
|
479
|
+
},
|
|
480
|
+
routing: {
|
|
481
|
+
send: {
|
|
482
|
+
type: 'query',
|
|
483
|
+
property: 'searchedString',
|
|
484
|
+
},
|
|
485
|
+
},
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
displayName: 'Additional Fields',
|
|
489
|
+
name: 'additionalFields',
|
|
490
|
+
type: 'collection',
|
|
491
|
+
placeholder: 'Add Field',
|
|
492
|
+
default: {},
|
|
493
|
+
displayOptions: {
|
|
494
|
+
show: {
|
|
495
|
+
resource: ['contents'],
|
|
496
|
+
operation: ['searchContents'],
|
|
497
|
+
},
|
|
498
|
+
},
|
|
499
|
+
options: [
|
|
500
|
+
{
|
|
501
|
+
displayName: 'Password',
|
|
502
|
+
name: 'password',
|
|
503
|
+
type: 'string',
|
|
504
|
+
default: '',
|
|
505
|
+
description: 'SHA-256 hash of the password for password-protected content.',
|
|
506
|
+
routing: {
|
|
507
|
+
send: {
|
|
508
|
+
type: 'query',
|
|
509
|
+
property: 'password',
|
|
510
|
+
},
|
|
511
|
+
},
|
|
512
|
+
},
|
|
513
|
+
{
|
|
514
|
+
displayName: 'Create Time From',
|
|
515
|
+
name: 'createTimeFrom',
|
|
516
|
+
type: 'number',
|
|
517
|
+
default: 0,
|
|
518
|
+
description: 'Inclusive lower creation-time Unix timestamp.',
|
|
519
|
+
routing: {
|
|
520
|
+
send: {
|
|
521
|
+
type: 'query',
|
|
522
|
+
property: 'createTimeFrom',
|
|
523
|
+
},
|
|
524
|
+
},
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
displayName: 'Create Time To',
|
|
528
|
+
name: 'createTimeTo',
|
|
529
|
+
type: 'number',
|
|
530
|
+
default: 0,
|
|
531
|
+
description: 'Inclusive upper creation-time Unix timestamp.',
|
|
532
|
+
routing: {
|
|
533
|
+
send: {
|
|
534
|
+
type: 'query',
|
|
535
|
+
property: 'createTimeTo',
|
|
536
|
+
},
|
|
537
|
+
},
|
|
538
|
+
},
|
|
539
|
+
],
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
displayName: 'Content Id',
|
|
543
|
+
name: 'contentId',
|
|
544
|
+
type: 'string',
|
|
545
|
+
default: '',
|
|
546
|
+
required: true,
|
|
547
|
+
description: 'Gofile content/folder identifier.',
|
|
548
|
+
displayOptions: {
|
|
549
|
+
show: {
|
|
550
|
+
resource: ['contents'],
|
|
551
|
+
operation: ['createDirectLink'],
|
|
552
|
+
},
|
|
553
|
+
},
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
displayName: 'Body (JSON)',
|
|
557
|
+
name: 'bodyJson',
|
|
558
|
+
type: 'json',
|
|
559
|
+
default: '{}',
|
|
560
|
+
required: false,
|
|
561
|
+
description: "Raw JSON request body. The spec's body schema is too complex to expose as individual fields, so provide the full JSON payload here.",
|
|
562
|
+
displayOptions: {
|
|
563
|
+
show: {
|
|
564
|
+
resource: ['contents'],
|
|
565
|
+
operation: ['createDirectLink'],
|
|
566
|
+
},
|
|
567
|
+
},
|
|
568
|
+
routing: {
|
|
569
|
+
request: {
|
|
570
|
+
body: '={{JSON.parse($value)}}',
|
|
571
|
+
},
|
|
572
|
+
},
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
displayName: 'Content Id',
|
|
576
|
+
name: 'contentId',
|
|
577
|
+
type: 'string',
|
|
578
|
+
default: '',
|
|
579
|
+
required: true,
|
|
580
|
+
description: 'Gofile content/folder identifier.',
|
|
581
|
+
displayOptions: {
|
|
582
|
+
show: {
|
|
583
|
+
resource: ['contents'],
|
|
584
|
+
operation: ['updateDirectLink'],
|
|
585
|
+
},
|
|
586
|
+
},
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
displayName: 'Direct Link Id',
|
|
590
|
+
name: 'directLinkId',
|
|
591
|
+
type: 'string',
|
|
592
|
+
default: '',
|
|
593
|
+
required: true,
|
|
594
|
+
description: 'Direct link identifier.',
|
|
595
|
+
displayOptions: {
|
|
596
|
+
show: {
|
|
597
|
+
resource: ['contents'],
|
|
598
|
+
operation: ['updateDirectLink'],
|
|
599
|
+
},
|
|
600
|
+
},
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
displayName: 'Body (JSON)',
|
|
604
|
+
name: 'bodyJson',
|
|
605
|
+
type: 'json',
|
|
606
|
+
default: '{}',
|
|
607
|
+
required: true,
|
|
608
|
+
description: "Raw JSON request body. The spec's body schema is too complex to expose as individual fields, so provide the full JSON payload here.",
|
|
609
|
+
displayOptions: {
|
|
610
|
+
show: {
|
|
611
|
+
resource: ['contents'],
|
|
612
|
+
operation: ['updateDirectLink'],
|
|
613
|
+
},
|
|
614
|
+
},
|
|
615
|
+
routing: {
|
|
616
|
+
request: {
|
|
617
|
+
body: '={{JSON.parse($value)}}',
|
|
618
|
+
},
|
|
619
|
+
},
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
displayName: 'Content Id',
|
|
623
|
+
name: 'contentId',
|
|
624
|
+
type: 'string',
|
|
625
|
+
default: '',
|
|
626
|
+
required: true,
|
|
627
|
+
description: 'Gofile content/folder identifier.',
|
|
628
|
+
displayOptions: {
|
|
629
|
+
show: {
|
|
630
|
+
resource: ['contents'],
|
|
631
|
+
operation: ['deleteDirectLink'],
|
|
632
|
+
},
|
|
633
|
+
},
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
displayName: 'Direct Link Id',
|
|
637
|
+
name: 'directLinkId',
|
|
638
|
+
type: 'string',
|
|
639
|
+
default: '',
|
|
640
|
+
required: true,
|
|
641
|
+
description: 'Direct link identifier.',
|
|
642
|
+
displayOptions: {
|
|
643
|
+
show: {
|
|
644
|
+
resource: ['contents'],
|
|
645
|
+
operation: ['deleteDirectLink'],
|
|
646
|
+
},
|
|
647
|
+
},
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
displayName: 'Contents Id',
|
|
651
|
+
name: 'contentsId',
|
|
652
|
+
type: 'string',
|
|
653
|
+
default: '',
|
|
654
|
+
required: true,
|
|
655
|
+
description: 'Comma-separated content IDs.',
|
|
656
|
+
displayOptions: {
|
|
657
|
+
show: {
|
|
658
|
+
resource: ['contents'],
|
|
659
|
+
operation: ['copyContents'],
|
|
660
|
+
},
|
|
661
|
+
},
|
|
662
|
+
routing: {
|
|
663
|
+
send: {
|
|
664
|
+
type: 'body',
|
|
665
|
+
property: 'contentsId',
|
|
666
|
+
},
|
|
667
|
+
},
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
displayName: 'Folder Id',
|
|
671
|
+
name: 'folderId',
|
|
672
|
+
type: 'string',
|
|
673
|
+
default: '',
|
|
674
|
+
required: true,
|
|
675
|
+
description: 'Destination folder ID.',
|
|
676
|
+
displayOptions: {
|
|
677
|
+
show: {
|
|
678
|
+
resource: ['contents'],
|
|
679
|
+
operation: ['copyContents'],
|
|
680
|
+
},
|
|
681
|
+
},
|
|
682
|
+
routing: {
|
|
683
|
+
send: {
|
|
684
|
+
type: 'body',
|
|
685
|
+
property: 'folderId',
|
|
686
|
+
},
|
|
687
|
+
},
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
displayName: 'Additional Fields',
|
|
691
|
+
name: 'additionalFields',
|
|
692
|
+
type: 'collection',
|
|
693
|
+
placeholder: 'Add Field',
|
|
694
|
+
default: {},
|
|
695
|
+
displayOptions: {
|
|
696
|
+
show: {
|
|
697
|
+
resource: ['contents'],
|
|
698
|
+
operation: ['copyContents'],
|
|
699
|
+
},
|
|
700
|
+
},
|
|
701
|
+
options: [
|
|
702
|
+
{
|
|
703
|
+
displayName: 'Password',
|
|
704
|
+
name: 'password',
|
|
705
|
+
type: 'string',
|
|
706
|
+
default: '',
|
|
707
|
+
description: 'SHA-256 password hash when copying password-protected content.',
|
|
708
|
+
routing: {
|
|
709
|
+
send: {
|
|
710
|
+
type: 'body',
|
|
711
|
+
property: 'password',
|
|
712
|
+
},
|
|
713
|
+
},
|
|
714
|
+
},
|
|
715
|
+
],
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
displayName: 'Contents Id',
|
|
719
|
+
name: 'contentsId',
|
|
720
|
+
type: 'string',
|
|
721
|
+
default: '',
|
|
722
|
+
required: true,
|
|
723
|
+
description: 'Comma-separated content IDs.',
|
|
724
|
+
displayOptions: {
|
|
725
|
+
show: {
|
|
726
|
+
resource: ['contents'],
|
|
727
|
+
operation: ['moveContents'],
|
|
728
|
+
},
|
|
729
|
+
},
|
|
730
|
+
routing: {
|
|
731
|
+
send: {
|
|
732
|
+
type: 'body',
|
|
733
|
+
property: 'contentsId',
|
|
734
|
+
},
|
|
735
|
+
},
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
displayName: 'Folder Id',
|
|
739
|
+
name: 'folderId',
|
|
740
|
+
type: 'string',
|
|
741
|
+
default: '',
|
|
742
|
+
required: true,
|
|
743
|
+
description: 'Destination folder ID.',
|
|
744
|
+
displayOptions: {
|
|
745
|
+
show: {
|
|
746
|
+
resource: ['contents'],
|
|
747
|
+
operation: ['moveContents'],
|
|
748
|
+
},
|
|
749
|
+
},
|
|
750
|
+
routing: {
|
|
751
|
+
send: {
|
|
752
|
+
type: 'body',
|
|
753
|
+
property: 'folderId',
|
|
754
|
+
},
|
|
755
|
+
},
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
displayName: 'Contents Id',
|
|
759
|
+
name: 'contentsId',
|
|
760
|
+
type: 'string',
|
|
761
|
+
default: '',
|
|
762
|
+
required: true,
|
|
763
|
+
description: 'Comma-separated content IDs to import.',
|
|
764
|
+
displayOptions: {
|
|
765
|
+
show: {
|
|
766
|
+
resource: ['contents'],
|
|
767
|
+
operation: ['importContents'],
|
|
768
|
+
},
|
|
769
|
+
},
|
|
770
|
+
routing: {
|
|
771
|
+
send: {
|
|
772
|
+
type: 'body',
|
|
773
|
+
property: 'contentsId',
|
|
774
|
+
},
|
|
775
|
+
},
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
displayName: 'Additional Fields',
|
|
779
|
+
name: 'additionalFields',
|
|
780
|
+
type: 'collection',
|
|
781
|
+
placeholder: 'Add Field',
|
|
782
|
+
default: {},
|
|
783
|
+
displayOptions: {
|
|
784
|
+
show: {
|
|
785
|
+
resource: ['contents'],
|
|
786
|
+
operation: ['importContents'],
|
|
787
|
+
},
|
|
788
|
+
},
|
|
789
|
+
options: [
|
|
790
|
+
{
|
|
791
|
+
displayName: 'Password',
|
|
792
|
+
name: 'password',
|
|
793
|
+
type: 'string',
|
|
794
|
+
default: '',
|
|
795
|
+
description: 'SHA-256 password hash when importing password-protected content.',
|
|
796
|
+
routing: {
|
|
797
|
+
send: {
|
|
798
|
+
type: 'body',
|
|
799
|
+
property: 'password',
|
|
800
|
+
},
|
|
801
|
+
},
|
|
802
|
+
},
|
|
803
|
+
],
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
displayName: 'Account Id',
|
|
807
|
+
name: 'accountId',
|
|
808
|
+
type: 'string',
|
|
809
|
+
default: '',
|
|
810
|
+
required: true,
|
|
811
|
+
description: 'Gofile account identifier.',
|
|
812
|
+
displayOptions: {
|
|
813
|
+
show: {
|
|
814
|
+
resource: ['accounts'],
|
|
815
|
+
operation: ['getAccount'],
|
|
816
|
+
},
|
|
817
|
+
},
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
displayName: 'Account Id',
|
|
821
|
+
name: 'accountId',
|
|
822
|
+
type: 'string',
|
|
823
|
+
default: '',
|
|
824
|
+
required: true,
|
|
825
|
+
description: 'Gofile account identifier.',
|
|
826
|
+
displayOptions: {
|
|
827
|
+
show: {
|
|
828
|
+
resource: ['accounts'],
|
|
829
|
+
operation: ['resetAccountToken'],
|
|
830
|
+
},
|
|
831
|
+
},
|
|
832
|
+
},
|
|
833
|
+
],
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
exports.GofileAPINode = GofileAPINode;
|