Skip to content

Commit

Permalink
Automated Spec Update (#938)
Browse files Browse the repository at this point in the history
ef6b1680d9a05ec7475f503149d771e44db913a2

 Change Notes:

files Namespace
- Add upload_session/start_batch  routes
- Add UploadSessionStartBatchArg, UploadSessionStartBatchResult structs

team_log_generated Namespace
- Add ExternalDriveBackupEligibilityStatusCheckedDetails, ExternalDriveBackupStatusChangedDetails, ExternalDriveBackupEligibilityStatusCheckedType, ExternalDriveBackupStatusChangedType structs
- Add ExternalDriveBackupEligibilityStatus, ExternalDriveBackupStatus unions

Co-authored-by: Brent Bumann <[email protected]>

Co-authored-by: DropboxBot <[email protected]>
Co-authored-by: Brent Bumann <[email protected]>
  • Loading branch information
3 people authored Apr 20, 2022
1 parent 71f0a42 commit 773c9b4
Show file tree
Hide file tree
Showing 7 changed files with 257 additions and 9 deletions.
2 changes: 1 addition & 1 deletion generator/dropbox-api-spec
13 changes: 13 additions & 0 deletions lib/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -1481,6 +1481,19 @@ routes.filesUploadSessionStart = function (arg) {
return this.request('files/upload_session/start', arg, 'user', 'content', 'upload', 'files.content.write');
};

/**
* This route starts batch of upload_sessions. Please refer to
* `upload_session/start` usage.
* Route attributes:
* scope: files.content.write
* @function Dropbox#filesUploadSessionStartBatch
* @arg {FilesUploadSessionStartBatchArg} arg - The request parameters.
* @returns {Promise.<DropboxResponse<FilesUploadSessionStartBatchResult>, DropboxResponseError.<void>>}
*/
routes.filesUploadSessionStartBatch = function (arg) {
return this.request('files/upload_session/start_batch', arg, 'user', 'api', 'rpc', 'files.content.write');
};

/**
* Marks the given Paper doc as archived. This action can be performed or undone
* by anyone with edit permissions to the doc. Note that this endpoint will
Expand Down
78 changes: 75 additions & 3 deletions lib/types.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dropbox",
"version": "10.27.1",
"version": "10.28.0",
"registry": "npm",
"description": "The Dropbox JavaScript SDK is a lightweight, promise based interface to the Dropbox v2 API that works in both nodejs and browser environments.",
"main": "cjs/index.js",
Expand Down
156 changes: 153 additions & 3 deletions types/dropbox_types.d.ts

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1742,6 +1742,19 @@ export class Dropbox {
*/
public filesUploadSessionStart(arg: files.UploadSessionStartArg): Promise<DropboxResponse<files.UploadSessionStartResult>>;

/**
* This route starts batch of upload_sessions. Please refer to
* `upload_session/start` usage.
*
* Route attributes:
* scope: files.content.write
*
* When an error occurs, the route rejects the promise with type
* DropboxResponseError<void>.
* @param arg The request parameters.
*/
public filesUploadSessionStartBatch(arg: files.UploadSessionStartBatchArg): Promise<DropboxResponse<files.UploadSessionStartBatchResult>>;

/**
* Marks the given Paper doc as archived. This action can be performed or
* undone by anyone with edit permissions to the doc. Note that this
Expand Down

0 comments on commit 773c9b4

Please sign in to comment.