@superdurable/connector-dropbox 0.2.1 → 0.3.0
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 +4 -2
- package/dex-connector.json +265 -2
- package/dist/{chunk-HC4YIUZK.js → chunk-RMQLFGNQ.js} +387 -2
- package/dist/{connection-DtKKxEuC.d.ts → connection-Csm3tCeA.d.ts} +94 -1
- package/dist/index.d.ts +270 -5
- package/dist/index.js +460 -6
- package/dist/mock.d.ts +91 -2
- package/dist/mock.js +85 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
# Dropbox connector for TypeScript
|
|
2
2
|
|
|
3
|
-
This package implements
|
|
3
|
+
This package implements all ten Dropbox operations, including name search, folder creation, deletion, copy, and move with the Go-verified request and branch contracts. See the [connector README](../README.md) for Dropbox OAuth setup, scopes, and response limits.
|
|
4
4
|
|
|
5
|
-
Use `newProjectConnection(project, "dropbox")` with operation-specific Step factories. The [
|
|
5
|
+
Use `newProjectConnection(project, "dropbox")` with operation-specific Step factories. The [file examples](examples/file-lookup/README.md) use a runnable Dex Worker. `downloadFile` returns bounded Base64 content. `uploadFile` accepts Base64 content, overwrites one path with the same bytes on retry, and returns only the provider file identity.
|
|
6
6
|
|
|
7
7
|
From the repository root, run `npm ci --prefix connectors/dropbox/typescript` and `npm run check --prefix connectors/dropbox/typescript`. The conformance test replays `conformance/connectors/dropbox/scenarios.json`; live Dropbox authorization remains unverified.
|
|
8
|
+
|
|
9
|
+
Custom operation bindings upgrading to version 0.3.0 must supply all ten operations. The built-in client binds them automatically.
|
package/dex-connector.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"connectorId": "dropbox",
|
|
3
|
-
"releaseTag": "connectors/dropbox/go/v0.
|
|
3
|
+
"releaseTag": "connectors/dropbox/go/v0.3.0",
|
|
4
4
|
"package": {
|
|
5
5
|
"ecosystem": "npm",
|
|
6
6
|
"name": "@superdurable/connector-dropbox",
|
|
7
|
-
"version": "0.
|
|
7
|
+
"version": "0.3.0"
|
|
8
8
|
},
|
|
9
9
|
"factories": [
|
|
10
10
|
{
|
|
@@ -285,6 +285,269 @@
|
|
|
285
285
|
],
|
|
286
286
|
"type": "object"
|
|
287
287
|
}
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"name": "newSearchFilesStep",
|
|
291
|
+
"kind": "query",
|
|
292
|
+
"operationId": "searchFiles",
|
|
293
|
+
"inputType": "SearchFilesInput",
|
|
294
|
+
"description": "Search one bounded page of Dropbox file and folder names.",
|
|
295
|
+
"fields": {
|
|
296
|
+
"stepType": "stepType",
|
|
297
|
+
"annotations": "annotations",
|
|
298
|
+
"connectionName": "connectionName",
|
|
299
|
+
"resultAttribute": "resultAttribute"
|
|
300
|
+
},
|
|
301
|
+
"branches": [
|
|
302
|
+
{
|
|
303
|
+
"id": "found",
|
|
304
|
+
"field": "found",
|
|
305
|
+
"optional": false
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"id": "providerRejected",
|
|
309
|
+
"field": "providerRejected",
|
|
310
|
+
"optional": true
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"id": "invalidResponse",
|
|
314
|
+
"field": "invalidResponse",
|
|
315
|
+
"optional": true
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"id": "defect",
|
|
319
|
+
"field": "defect",
|
|
320
|
+
"optional": true
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
"inputSchema": {
|
|
324
|
+
"additionalProperties": false,
|
|
325
|
+
"description": "SearchFilesInput selects one bounded search page by name.",
|
|
326
|
+
"properties": {
|
|
327
|
+
"maxResults": {
|
|
328
|
+
"description": "MaxResults is the requested page size, from 1 to 1000; zero selects 20.",
|
|
329
|
+
"type": "integer"
|
|
330
|
+
},
|
|
331
|
+
"path": {
|
|
332
|
+
"description": "Path limits the search to one folder; blank searches the connected root.",
|
|
333
|
+
"type": "string"
|
|
334
|
+
},
|
|
335
|
+
"query": {
|
|
336
|
+
"description": "Query is a nonempty name fragment, up to 1000 characters.",
|
|
337
|
+
"type": "string"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"required": [
|
|
341
|
+
"query"
|
|
342
|
+
],
|
|
343
|
+
"type": "object"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"name": "newEnsureFolderStep",
|
|
348
|
+
"kind": "mutation",
|
|
349
|
+
"operationId": "ensureFolder",
|
|
350
|
+
"inputType": "EnsureFolderInput",
|
|
351
|
+
"description": "Create one Dropbox folder if absent and confirm it exists.",
|
|
352
|
+
"fields": {
|
|
353
|
+
"stepType": "stepType",
|
|
354
|
+
"annotations": "annotations",
|
|
355
|
+
"connectionName": "connectionName",
|
|
356
|
+
"resultAttribute": "resultAttribute"
|
|
357
|
+
},
|
|
358
|
+
"branches": [
|
|
359
|
+
{
|
|
360
|
+
"id": "ensured",
|
|
361
|
+
"field": "ensured",
|
|
362
|
+
"optional": false
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"id": "providerRejected",
|
|
366
|
+
"field": "providerRejected",
|
|
367
|
+
"optional": true
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"id": "invalidResponse",
|
|
371
|
+
"field": "invalidResponse",
|
|
372
|
+
"optional": true
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"id": "defect",
|
|
376
|
+
"field": "defect",
|
|
377
|
+
"optional": true
|
|
378
|
+
}
|
|
379
|
+
],
|
|
380
|
+
"inputSchema": {
|
|
381
|
+
"additionalProperties": false,
|
|
382
|
+
"description": "EnsureFolderInput selects an absolute folder path to create if absent.",
|
|
383
|
+
"properties": {
|
|
384
|
+
"path": {
|
|
385
|
+
"description": "Path is the absolute Dropbox folder path.",
|
|
386
|
+
"type": "string"
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
"required": [
|
|
390
|
+
"path"
|
|
391
|
+
],
|
|
392
|
+
"type": "object"
|
|
393
|
+
}
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "newDeletePathStep",
|
|
397
|
+
"kind": "mutation",
|
|
398
|
+
"operationId": "deletePath",
|
|
399
|
+
"inputType": "DeletePathInput",
|
|
400
|
+
"description": "Delete one Dropbox file or folder if it exists.",
|
|
401
|
+
"fields": {
|
|
402
|
+
"stepType": "stepType",
|
|
403
|
+
"annotations": "annotations",
|
|
404
|
+
"connectionName": "connectionName",
|
|
405
|
+
"resultAttribute": "resultAttribute"
|
|
406
|
+
},
|
|
407
|
+
"branches": [
|
|
408
|
+
{
|
|
409
|
+
"id": "deleted",
|
|
410
|
+
"field": "deleted",
|
|
411
|
+
"optional": false
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"id": "providerRejected",
|
|
415
|
+
"field": "providerRejected",
|
|
416
|
+
"optional": true
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"id": "invalidResponse",
|
|
420
|
+
"field": "invalidResponse",
|
|
421
|
+
"optional": true
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"id": "defect",
|
|
425
|
+
"field": "defect",
|
|
426
|
+
"optional": true
|
|
427
|
+
}
|
|
428
|
+
],
|
|
429
|
+
"inputSchema": {
|
|
430
|
+
"additionalProperties": false,
|
|
431
|
+
"description": "DeletePathInput selects a file or folder to delete if present.",
|
|
432
|
+
"properties": {
|
|
433
|
+
"path": {
|
|
434
|
+
"description": "Path is an absolute Dropbox path or stable file or folder ID.",
|
|
435
|
+
"type": "string"
|
|
436
|
+
}
|
|
437
|
+
},
|
|
438
|
+
"required": [
|
|
439
|
+
"path"
|
|
440
|
+
],
|
|
441
|
+
"type": "object"
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
"name": "newCopyPathStep",
|
|
446
|
+
"kind": "mutation",
|
|
447
|
+
"operationId": "copyPath",
|
|
448
|
+
"inputType": "TransferPathInput",
|
|
449
|
+
"description": "Copy a file or folder to a fixed destination without autorename; reconcile uncertain outcomes before bounded resend.",
|
|
450
|
+
"fields": {
|
|
451
|
+
"stepType": "stepType",
|
|
452
|
+
"annotations": "annotations",
|
|
453
|
+
"connectionName": "connectionName",
|
|
454
|
+
"resultAttribute": "resultAttribute"
|
|
455
|
+
},
|
|
456
|
+
"branches": [
|
|
457
|
+
{
|
|
458
|
+
"id": "copied",
|
|
459
|
+
"field": "copied",
|
|
460
|
+
"optional": false
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
"id": "providerRejected",
|
|
464
|
+
"field": "providerRejected",
|
|
465
|
+
"optional": true
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
"id": "uncertain",
|
|
469
|
+
"field": "uncertain",
|
|
470
|
+
"optional": true
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"id": "defect",
|
|
474
|
+
"field": "defect",
|
|
475
|
+
"optional": true
|
|
476
|
+
}
|
|
477
|
+
],
|
|
478
|
+
"inputSchema": {
|
|
479
|
+
"additionalProperties": false,
|
|
480
|
+
"description": "TransferPathInput identifies a source file or folder and a fixed destination path.",
|
|
481
|
+
"properties": {
|
|
482
|
+
"fromPath": {
|
|
483
|
+
"description": "FromPath is an absolute Dropbox path or stable file or folder ID.",
|
|
484
|
+
"type": "string"
|
|
485
|
+
},
|
|
486
|
+
"toPath": {
|
|
487
|
+
"description": "ToPath is an absolute destination path; autorename is disabled.",
|
|
488
|
+
"type": "string"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
"required": [
|
|
492
|
+
"fromPath",
|
|
493
|
+
"toPath"
|
|
494
|
+
],
|
|
495
|
+
"type": "object"
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"name": "newMovePathStep",
|
|
500
|
+
"kind": "mutation",
|
|
501
|
+
"operationId": "movePath",
|
|
502
|
+
"inputType": "TransferPathInput",
|
|
503
|
+
"description": "Move or rename a file or folder to a fixed destination without autorename; reconcile uncertain outcomes before bounded resend.",
|
|
504
|
+
"fields": {
|
|
505
|
+
"stepType": "stepType",
|
|
506
|
+
"annotations": "annotations",
|
|
507
|
+
"connectionName": "connectionName",
|
|
508
|
+
"resultAttribute": "resultAttribute"
|
|
509
|
+
},
|
|
510
|
+
"branches": [
|
|
511
|
+
{
|
|
512
|
+
"id": "moved",
|
|
513
|
+
"field": "moved",
|
|
514
|
+
"optional": false
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
"id": "providerRejected",
|
|
518
|
+
"field": "providerRejected",
|
|
519
|
+
"optional": true
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"id": "uncertain",
|
|
523
|
+
"field": "uncertain",
|
|
524
|
+
"optional": true
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"id": "defect",
|
|
528
|
+
"field": "defect",
|
|
529
|
+
"optional": true
|
|
530
|
+
}
|
|
531
|
+
],
|
|
532
|
+
"inputSchema": {
|
|
533
|
+
"additionalProperties": false,
|
|
534
|
+
"description": "TransferPathInput identifies a source file or folder and a fixed destination path.",
|
|
535
|
+
"properties": {
|
|
536
|
+
"fromPath": {
|
|
537
|
+
"description": "FromPath is an absolute Dropbox path or stable file or folder ID.",
|
|
538
|
+
"type": "string"
|
|
539
|
+
},
|
|
540
|
+
"toPath": {
|
|
541
|
+
"description": "ToPath is an absolute destination path; autorename is disabled.",
|
|
542
|
+
"type": "string"
|
|
543
|
+
}
|
|
544
|
+
},
|
|
545
|
+
"required": [
|
|
546
|
+
"fromPath",
|
|
547
|
+
"toPath"
|
|
548
|
+
],
|
|
549
|
+
"type": "object"
|
|
550
|
+
}
|
|
288
551
|
}
|
|
289
552
|
]
|
|
290
553
|
}
|