n8n-nodes-test-node 1.0.2 → 1.0.3

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 CHANGED
@@ -22,7 +22,7 @@ npm install n8n-nodes-test-node
22
22
 
23
23
  - Only OpenAPI 3.x is supported.
24
24
  - Only **API Key** (header or query) and **HTTP Bearer** authentication are supported. OAuth2, Basic Auth, and mutual TLS are not.
25
- - Request bodies with nested objects, arrays, or `oneOf`/`anyOf`/`allOf` schemas are exposed as a single raw "Body (JSON)" field rather than individual fields.
25
+ - Request bodies with nested objects, arrays, or genuine `oneOf`/`anyOf`/`allOf` type unions are exposed as a single raw "Body (JSON)" field rather than individual fields. A nullable/optional primitive field (OpenAPI 3.1's `anyOf: [{type: 'string'}, {type: 'null'}]`, as FastAPI/Pydantic generates for `Optional[str]`) is still recognized as simple and gets its own field.
26
26
  - If the spec declared more than one supported auth scheme, they were combined into a single credential covering all of them, rather than offering a choice.
27
27
 
28
28
  ## Regenerating
@@ -967,23 +967,71 @@ class RemoteChromiumCDPAutomationAPINode {
967
967
  ],
968
968
  },
969
969
  {
970
- displayName: 'Body (JSON)',
971
- name: 'bodyJson',
972
- type: 'json',
973
- default: '{}',
974
- required: true,
975
- 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.",
970
+ displayName: 'Additional Fields',
971
+ name: 'additionalFields',
972
+ type: 'collection',
973
+ placeholder: 'Add Field',
974
+ default: {},
976
975
  displayOptions: {
977
976
  show: {
978
977
  resource: ['tabs'],
979
978
  operation: ['newTabTabsPost'],
980
979
  },
981
980
  },
982
- routing: {
983
- request: {
984
- body: '={{JSON.parse($value)}}',
981
+ options: [
982
+ {
983
+ displayName: 'Url',
984
+ name: 'url',
985
+ type: 'string',
986
+ default: '',
987
+ description: '',
988
+ routing: {
989
+ send: {
990
+ type: 'body',
991
+ property: 'url',
992
+ },
993
+ },
985
994
  },
986
- },
995
+ {
996
+ displayName: 'Wait',
997
+ name: 'wait',
998
+ type: 'boolean',
999
+ default: false,
1000
+ description: '',
1001
+ routing: {
1002
+ send: {
1003
+ type: 'body',
1004
+ property: 'wait',
1005
+ },
1006
+ },
1007
+ },
1008
+ {
1009
+ displayName: 'Wait Timeout',
1010
+ name: 'waitTimeout',
1011
+ type: 'number',
1012
+ default: 0,
1013
+ description: '',
1014
+ routing: {
1015
+ send: {
1016
+ type: 'body',
1017
+ property: 'wait_timeout',
1018
+ },
1019
+ },
1020
+ },
1021
+ {
1022
+ displayName: 'Activate',
1023
+ name: 'activate',
1024
+ type: 'boolean',
1025
+ default: false,
1026
+ description: '',
1027
+ routing: {
1028
+ send: {
1029
+ type: 'body',
1030
+ property: 'activate',
1031
+ },
1032
+ },
1033
+ },
1034
+ ],
987
1035
  },
988
1036
  {
989
1037
  displayName: 'Additional Fields',
@@ -1167,12 +1215,12 @@ class RemoteChromiumCDPAutomationAPINode {
1167
1215
  },
1168
1216
  },
1169
1217
  {
1170
- displayName: 'Body (JSON)',
1171
- name: 'bodyJson',
1172
- type: 'json',
1173
- default: '{}',
1218
+ displayName: 'Expression',
1219
+ name: 'expression',
1220
+ type: 'string',
1221
+ default: '',
1174
1222
  required: true,
1175
- 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.",
1223
+ description: '',
1176
1224
  displayOptions: {
1177
1225
  show: {
1178
1226
  resource: ['tabs'],
@@ -1180,10 +1228,78 @@ class RemoteChromiumCDPAutomationAPINode {
1180
1228
  },
1181
1229
  },
1182
1230
  routing: {
1183
- request: {
1184
- body: '={{JSON.parse($value)}}',
1231
+ send: {
1232
+ type: 'body',
1233
+ property: 'expression',
1234
+ },
1235
+ },
1236
+ },
1237
+ {
1238
+ displayName: 'Additional Fields',
1239
+ name: 'additionalFields',
1240
+ type: 'collection',
1241
+ placeholder: 'Add Field',
1242
+ default: {},
1243
+ displayOptions: {
1244
+ show: {
1245
+ resource: ['tabs'],
1246
+ operation: ['evaluateTabTabsTargetIdEvaluatePost'],
1185
1247
  },
1186
1248
  },
1249
+ options: [
1250
+ {
1251
+ displayName: 'Target Id',
1252
+ name: 'targetId',
1253
+ type: 'string',
1254
+ default: '',
1255
+ description: '',
1256
+ routing: {
1257
+ send: {
1258
+ type: 'body',
1259
+ property: 'target_id',
1260
+ },
1261
+ },
1262
+ },
1263
+ {
1264
+ displayName: 'Await Promise',
1265
+ name: 'awaitPromise',
1266
+ type: 'boolean',
1267
+ default: false,
1268
+ description: '',
1269
+ routing: {
1270
+ send: {
1271
+ type: 'body',
1272
+ property: 'await_promise',
1273
+ },
1274
+ },
1275
+ },
1276
+ {
1277
+ displayName: 'Return By Value',
1278
+ name: 'returnByValue',
1279
+ type: 'boolean',
1280
+ default: false,
1281
+ description: '',
1282
+ routing: {
1283
+ send: {
1284
+ type: 'body',
1285
+ property: 'return_by_value',
1286
+ },
1287
+ },
1288
+ },
1289
+ {
1290
+ displayName: 'Timeout',
1291
+ name: 'timeout',
1292
+ type: 'number',
1293
+ default: 0,
1294
+ description: '',
1295
+ routing: {
1296
+ send: {
1297
+ type: 'body',
1298
+ property: 'timeout',
1299
+ },
1300
+ },
1301
+ },
1302
+ ],
1187
1303
  },
1188
1304
  {
1189
1305
  displayName: 'Target Id',
@@ -1200,23 +1316,84 @@ class RemoteChromiumCDPAutomationAPINode {
1200
1316
  },
1201
1317
  },
1202
1318
  {
1203
- displayName: 'Body (JSON)',
1204
- name: 'bodyJson',
1205
- type: 'json',
1206
- default: '{}',
1207
- required: true,
1208
- 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.",
1319
+ displayName: 'Additional Fields',
1320
+ name: 'additionalFields',
1321
+ type: 'collection',
1322
+ placeholder: 'Add Field',
1323
+ default: {},
1209
1324
  displayOptions: {
1210
1325
  show: {
1211
1326
  resource: ['tabs'],
1212
1327
  operation: ['clickTabsTargetIdClickPost'],
1213
1328
  },
1214
1329
  },
1215
- routing: {
1216
- request: {
1217
- body: '={{JSON.parse($value)}}',
1330
+ options: [
1331
+ {
1332
+ displayName: 'Selector',
1333
+ name: 'selector',
1334
+ type: 'string',
1335
+ default: '',
1336
+ description: '',
1337
+ routing: {
1338
+ send: {
1339
+ type: 'body',
1340
+ property: 'selector',
1341
+ },
1342
+ },
1218
1343
  },
1219
- },
1344
+ {
1345
+ displayName: 'X',
1346
+ name: 'x',
1347
+ type: 'number',
1348
+ default: 0,
1349
+ description: '',
1350
+ routing: {
1351
+ send: {
1352
+ type: 'body',
1353
+ property: 'x',
1354
+ },
1355
+ },
1356
+ },
1357
+ {
1358
+ displayName: 'Y',
1359
+ name: 'y',
1360
+ type: 'number',
1361
+ default: 0,
1362
+ description: '',
1363
+ routing: {
1364
+ send: {
1365
+ type: 'body',
1366
+ property: 'y',
1367
+ },
1368
+ },
1369
+ },
1370
+ {
1371
+ displayName: 'Button',
1372
+ name: 'button',
1373
+ type: 'string',
1374
+ default: '',
1375
+ description: '',
1376
+ routing: {
1377
+ send: {
1378
+ type: 'body',
1379
+ property: 'button',
1380
+ },
1381
+ },
1382
+ },
1383
+ {
1384
+ displayName: 'Click Count',
1385
+ name: 'clickCount',
1386
+ type: 'number',
1387
+ default: 0,
1388
+ description: '',
1389
+ routing: {
1390
+ send: {
1391
+ type: 'body',
1392
+ property: 'click_count',
1393
+ },
1394
+ },
1395
+ },
1396
+ ],
1220
1397
  },
1221
1398
  {
1222
1399
  displayName: 'Target Id',
@@ -1550,12 +1727,12 @@ class RemoteChromiumCDPAutomationAPINode {
1550
1727
  },
1551
1728
  },
1552
1729
  {
1553
- displayName: 'Body (JSON)',
1554
- name: 'bodyJson',
1555
- type: 'json',
1556
- default: '{}',
1730
+ displayName: 'Text',
1731
+ name: 'text',
1732
+ type: 'string',
1733
+ default: '',
1557
1734
  required: true,
1558
- 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.",
1735
+ description: '',
1559
1736
  displayOptions: {
1560
1737
  show: {
1561
1738
  resource: ['tabs'],
@@ -1563,10 +1740,39 @@ class RemoteChromiumCDPAutomationAPINode {
1563
1740
  },
1564
1741
  },
1565
1742
  routing: {
1566
- request: {
1567
- body: '={{JSON.parse($value)}}',
1743
+ send: {
1744
+ type: 'body',
1745
+ property: 'text',
1746
+ },
1747
+ },
1748
+ },
1749
+ {
1750
+ displayName: 'Additional Fields',
1751
+ name: 'additionalFields',
1752
+ type: 'collection',
1753
+ placeholder: 'Add Field',
1754
+ default: {},
1755
+ displayOptions: {
1756
+ show: {
1757
+ resource: ['tabs'],
1758
+ operation: ['typeTextTabsTargetIdTypePost'],
1568
1759
  },
1569
1760
  },
1761
+ options: [
1762
+ {
1763
+ displayName: 'Selector',
1764
+ name: 'selector',
1765
+ type: 'string',
1766
+ default: '',
1767
+ description: '',
1768
+ routing: {
1769
+ send: {
1770
+ type: 'body',
1771
+ property: 'selector',
1772
+ },
1773
+ },
1774
+ },
1775
+ ],
1570
1776
  },
1571
1777
  {
1572
1778
  displayName: 'Target Id',
@@ -1827,8 +2033,8 @@ class RemoteChromiumCDPAutomationAPINode {
1827
2033
  {
1828
2034
  displayName: 'Quality',
1829
2035
  name: 'quality',
1830
- type: 'string',
1831
- default: '',
2036
+ type: 'number',
2037
+ default: 0,
1832
2038
  description: '',
1833
2039
  routing: {
1834
2040
  send: {
@@ -2609,23 +2815,110 @@ class RemoteChromiumCDPAutomationAPINode {
2609
2815
  },
2610
2816
  },
2611
2817
  {
2612
- displayName: 'Body (JSON)',
2613
- name: 'bodyJson',
2614
- type: 'json',
2615
- default: '{}',
2616
- required: true,
2617
- 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.",
2818
+ displayName: 'Additional Fields',
2819
+ name: 'additionalFields',
2820
+ type: 'collection',
2821
+ placeholder: 'Add Field',
2822
+ default: {},
2618
2823
  displayOptions: {
2619
2824
  show: {
2620
2825
  resource: ['tabs'],
2621
2826
  operation: ['emulateDeviceTabsTargetIdEmulatePost'],
2622
2827
  },
2623
2828
  },
2624
- routing: {
2625
- request: {
2626
- body: '={{JSON.parse($value)}}',
2829
+ options: [
2830
+ {
2831
+ displayName: 'Width',
2832
+ name: 'width',
2833
+ type: 'number',
2834
+ default: 0,
2835
+ description: '',
2836
+ routing: {
2837
+ send: {
2838
+ type: 'body',
2839
+ property: 'width',
2840
+ },
2841
+ },
2627
2842
  },
2628
- },
2843
+ {
2844
+ displayName: 'Height',
2845
+ name: 'height',
2846
+ type: 'number',
2847
+ default: 0,
2848
+ description: '',
2849
+ routing: {
2850
+ send: {
2851
+ type: 'body',
2852
+ property: 'height',
2853
+ },
2854
+ },
2855
+ },
2856
+ {
2857
+ displayName: 'Device Scale Factor',
2858
+ name: 'deviceScaleFactor',
2859
+ type: 'number',
2860
+ default: 0,
2861
+ description: '',
2862
+ routing: {
2863
+ send: {
2864
+ type: 'body',
2865
+ property: 'device_scale_factor',
2866
+ },
2867
+ },
2868
+ },
2869
+ {
2870
+ displayName: 'Mobile',
2871
+ name: 'mobile',
2872
+ type: 'boolean',
2873
+ default: false,
2874
+ description: '',
2875
+ routing: {
2876
+ send: {
2877
+ type: 'body',
2878
+ property: 'mobile',
2879
+ },
2880
+ },
2881
+ },
2882
+ {
2883
+ displayName: 'Touch',
2884
+ name: 'touch',
2885
+ type: 'boolean',
2886
+ default: false,
2887
+ description: '',
2888
+ routing: {
2889
+ send: {
2890
+ type: 'body',
2891
+ property: 'touch',
2892
+ },
2893
+ },
2894
+ },
2895
+ {
2896
+ displayName: 'User Agent',
2897
+ name: 'userAgent',
2898
+ type: 'string',
2899
+ default: '',
2900
+ description: '',
2901
+ routing: {
2902
+ send: {
2903
+ type: 'body',
2904
+ property: 'user_agent',
2905
+ },
2906
+ },
2907
+ },
2908
+ {
2909
+ displayName: 'Platform',
2910
+ name: 'platform',
2911
+ type: 'string',
2912
+ default: '',
2913
+ description: '',
2914
+ routing: {
2915
+ send: {
2916
+ type: 'body',
2917
+ property: 'platform',
2918
+ },
2919
+ },
2920
+ },
2921
+ ],
2629
2922
  },
2630
2923
  {
2631
2924
  displayName: 'Target Id',
@@ -2745,12 +3038,12 @@ class RemoteChromiumCDPAutomationAPINode {
2745
3038
  ],
2746
3039
  },
2747
3040
  {
2748
- displayName: 'Body (JSON)',
2749
- name: 'bodyJson',
2750
- type: 'json',
2751
- default: '{}',
3041
+ displayName: 'Url',
3042
+ name: 'url',
3043
+ type: 'string',
3044
+ default: '',
2752
3045
  required: true,
2753
- 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.",
3046
+ description: '',
2754
3047
  displayOptions: {
2755
3048
  show: {
2756
3049
  resource: ['navigate'],
@@ -2758,10 +3051,65 @@ class RemoteChromiumCDPAutomationAPINode {
2758
3051
  },
2759
3052
  },
2760
3053
  routing: {
2761
- request: {
2762
- body: '={{JSON.parse($value)}}',
3054
+ send: {
3055
+ type: 'body',
3056
+ property: 'url',
3057
+ },
3058
+ },
3059
+ },
3060
+ {
3061
+ displayName: 'Additional Fields',
3062
+ name: 'additionalFields',
3063
+ type: 'collection',
3064
+ placeholder: 'Add Field',
3065
+ default: {},
3066
+ displayOptions: {
3067
+ show: {
3068
+ resource: ['navigate'],
3069
+ operation: ['navigateNavigatePost'],
2763
3070
  },
2764
3071
  },
3072
+ options: [
3073
+ {
3074
+ displayName: 'Target Id',
3075
+ name: 'targetId',
3076
+ type: 'string',
3077
+ default: '',
3078
+ description: '',
3079
+ routing: {
3080
+ send: {
3081
+ type: 'body',
3082
+ property: 'target_id',
3083
+ },
3084
+ },
3085
+ },
3086
+ {
3087
+ displayName: 'Wait',
3088
+ name: 'wait',
3089
+ type: 'boolean',
3090
+ default: false,
3091
+ description: '',
3092
+ routing: {
3093
+ send: {
3094
+ type: 'body',
3095
+ property: 'wait',
3096
+ },
3097
+ },
3098
+ },
3099
+ {
3100
+ displayName: 'Wait Timeout',
3101
+ name: 'waitTimeout',
3102
+ type: 'number',
3103
+ default: 0,
3104
+ description: '',
3105
+ routing: {
3106
+ send: {
3107
+ type: 'body',
3108
+ property: 'wait_timeout',
3109
+ },
3110
+ },
3111
+ },
3112
+ ],
2765
3113
  },
2766
3114
  {
2767
3115
  displayName: 'Additional Fields',
@@ -2805,12 +3153,12 @@ class RemoteChromiumCDPAutomationAPINode {
2805
3153
  ],
2806
3154
  },
2807
3155
  {
2808
- displayName: 'Body (JSON)',
2809
- name: 'bodyJson',
2810
- type: 'json',
2811
- default: '{}',
3156
+ displayName: 'Expression',
3157
+ name: 'expression',
3158
+ type: 'string',
3159
+ default: '',
2812
3160
  required: true,
2813
- 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.",
3161
+ description: '',
2814
3162
  displayOptions: {
2815
3163
  show: {
2816
3164
  resource: ['evaluate'],
@@ -2818,11 +3166,79 @@ class RemoteChromiumCDPAutomationAPINode {
2818
3166
  },
2819
3167
  },
2820
3168
  routing: {
2821
- request: {
2822
- body: '={{JSON.parse($value)}}',
3169
+ send: {
3170
+ type: 'body',
3171
+ property: 'expression',
2823
3172
  },
2824
3173
  },
2825
3174
  },
3175
+ {
3176
+ displayName: 'Additional Fields',
3177
+ name: 'additionalFields',
3178
+ type: 'collection',
3179
+ placeholder: 'Add Field',
3180
+ default: {},
3181
+ displayOptions: {
3182
+ show: {
3183
+ resource: ['evaluate'],
3184
+ operation: ['evaluateDefaultEvaluatePost'],
3185
+ },
3186
+ },
3187
+ options: [
3188
+ {
3189
+ displayName: 'Target Id',
3190
+ name: 'targetId',
3191
+ type: 'string',
3192
+ default: '',
3193
+ description: '',
3194
+ routing: {
3195
+ send: {
3196
+ type: 'body',
3197
+ property: 'target_id',
3198
+ },
3199
+ },
3200
+ },
3201
+ {
3202
+ displayName: 'Await Promise',
3203
+ name: 'awaitPromise',
3204
+ type: 'boolean',
3205
+ default: false,
3206
+ description: '',
3207
+ routing: {
3208
+ send: {
3209
+ type: 'body',
3210
+ property: 'await_promise',
3211
+ },
3212
+ },
3213
+ },
3214
+ {
3215
+ displayName: 'Return By Value',
3216
+ name: 'returnByValue',
3217
+ type: 'boolean',
3218
+ default: false,
3219
+ description: '',
3220
+ routing: {
3221
+ send: {
3222
+ type: 'body',
3223
+ property: 'return_by_value',
3224
+ },
3225
+ },
3226
+ },
3227
+ {
3228
+ displayName: 'Timeout',
3229
+ name: 'timeout',
3230
+ type: 'number',
3231
+ default: 0,
3232
+ description: '',
3233
+ routing: {
3234
+ send: {
3235
+ type: 'body',
3236
+ property: 'timeout',
3237
+ },
3238
+ },
3239
+ },
3240
+ ],
3241
+ },
2826
3242
  {
2827
3243
  displayName: 'Additional Fields',
2828
3244
  name: 'additionalFields',
@@ -2865,8 +3281,8 @@ class RemoteChromiumCDPAutomationAPINode {
2865
3281
  {
2866
3282
  displayName: 'Quality',
2867
3283
  name: 'quality',
2868
- type: 'string',
2869
- default: '',
3284
+ type: 'number',
3285
+ default: 0,
2870
3286
  description: '',
2871
3287
  routing: {
2872
3288
  send: {
@@ -3083,23 +3499,110 @@ class RemoteChromiumCDPAutomationAPINode {
3083
3499
  },
3084
3500
  },
3085
3501
  {
3086
- displayName: 'Body (JSON)',
3087
- name: 'bodyJson',
3088
- type: 'json',
3089
- default: '{}',
3090
- required: true,
3091
- 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.",
3502
+ displayName: 'Additional Fields',
3503
+ name: 'additionalFields',
3504
+ type: 'collection',
3505
+ placeholder: 'Add Field',
3506
+ default: {},
3092
3507
  displayOptions: {
3093
3508
  show: {
3094
3509
  resource: ['cookies'],
3095
3510
  operation: ['deleteCookiesCookiesDelete'],
3096
3511
  },
3097
3512
  },
3098
- routing: {
3099
- request: {
3100
- body: '={{JSON.parse($value)}}',
3513
+ options: [
3514
+ {
3515
+ displayName: 'Name',
3516
+ name: 'name',
3517
+ type: 'string',
3518
+ default: '',
3519
+ description: '',
3520
+ routing: {
3521
+ send: {
3522
+ type: 'body',
3523
+ property: 'name',
3524
+ },
3525
+ },
3101
3526
  },
3102
- },
3527
+ {
3528
+ displayName: 'Url',
3529
+ name: 'url',
3530
+ type: 'string',
3531
+ default: '',
3532
+ description: '',
3533
+ routing: {
3534
+ send: {
3535
+ type: 'body',
3536
+ property: 'url',
3537
+ },
3538
+ },
3539
+ },
3540
+ {
3541
+ displayName: 'Domain',
3542
+ name: 'domain',
3543
+ type: 'string',
3544
+ default: '',
3545
+ description: '',
3546
+ routing: {
3547
+ send: {
3548
+ type: 'body',
3549
+ property: 'domain',
3550
+ },
3551
+ },
3552
+ },
3553
+ {
3554
+ displayName: 'Path',
3555
+ name: 'path',
3556
+ type: 'string',
3557
+ default: '',
3558
+ description: '',
3559
+ routing: {
3560
+ send: {
3561
+ type: 'body',
3562
+ property: 'path',
3563
+ },
3564
+ },
3565
+ },
3566
+ {
3567
+ displayName: 'Partition Key',
3568
+ name: 'partitionKey',
3569
+ type: 'string',
3570
+ default: '',
3571
+ description: '',
3572
+ routing: {
3573
+ send: {
3574
+ type: 'body',
3575
+ property: 'partition_key',
3576
+ },
3577
+ },
3578
+ },
3579
+ {
3580
+ displayName: 'Target Id',
3581
+ name: 'targetId',
3582
+ type: 'string',
3583
+ default: '',
3584
+ description: '',
3585
+ routing: {
3586
+ send: {
3587
+ type: 'body',
3588
+ property: 'target_id',
3589
+ },
3590
+ },
3591
+ },
3592
+ {
3593
+ displayName: 'All',
3594
+ name: 'all',
3595
+ type: 'boolean',
3596
+ default: false,
3597
+ description: '',
3598
+ routing: {
3599
+ send: {
3600
+ type: 'body',
3601
+ property: 'all',
3602
+ },
3603
+ },
3604
+ },
3605
+ ],
3103
3606
  },
3104
3607
  {
3105
3608
  displayName: 'Body (JSON)',
@@ -3121,23 +3624,45 @@ class RemoteChromiumCDPAutomationAPINode {
3121
3624
  },
3122
3625
  },
3123
3626
  {
3124
- displayName: 'Body (JSON)',
3125
- name: 'bodyJson',
3126
- type: 'json',
3127
- default: '{}',
3128
- required: true,
3129
- 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.",
3627
+ displayName: 'Additional Fields',
3628
+ name: 'additionalFields',
3629
+ type: 'collection',
3630
+ placeholder: 'Add Field',
3631
+ default: {},
3130
3632
  displayOptions: {
3131
3633
  show: {
3132
3634
  resource: ['downloads'],
3133
3635
  operation: ['downloadsConfigDownloadsConfigPost'],
3134
3636
  },
3135
3637
  },
3136
- routing: {
3137
- request: {
3138
- body: '={{JSON.parse($value)}}',
3638
+ options: [
3639
+ {
3640
+ displayName: 'Behavior',
3641
+ name: 'behavior',
3642
+ type: 'string',
3643
+ default: '',
3644
+ description: '',
3645
+ routing: {
3646
+ send: {
3647
+ type: 'body',
3648
+ property: 'behavior',
3649
+ },
3650
+ },
3139
3651
  },
3140
- },
3652
+ {
3653
+ displayName: 'Download Path',
3654
+ name: 'downloadPath',
3655
+ type: 'string',
3656
+ default: '',
3657
+ description: '',
3658
+ routing: {
3659
+ send: {
3660
+ type: 'body',
3661
+ property: 'download_path',
3662
+ },
3663
+ },
3664
+ },
3665
+ ],
3141
3666
  },
3142
3667
  {
3143
3668
  displayName: 'Body (JSON)',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-test-node",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Full browser-automation surface over a remote Chromium debug session.",
5
5
  "keywords": [
6
6
  "n8n-community-node-package"