Skip to content

Commit 2e4acff

Browse files
author
Andrew Lawson
committed
Add missing routes / spec updates.
1 parent 3ea98c2 commit 2e4acff

File tree

4 files changed

+3144
-114
lines changed

4 files changed

+3144
-114
lines changed

generator/typescript/dropbox.d.ts

Lines changed: 74 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,16 @@ declare module DropboxTypes {
224224
*/
225225
public filePropertiesTemplatesUpdateForUser(arg: file_properties.UpdateTemplateArg): Promise<file_properties.UpdateTemplateResult>;
226226

227+
/**
228+
* Returns the total number of file requests owned by this user. Includes
229+
* both open and closed file requests.
230+
*
231+
* When an error occurs, the route rejects the promise with type
232+
* Error<file_requests.CountFileRequestsError>.
233+
* @param arg The request parameters.
234+
*/
235+
public fileRequestsCount(arg: void): Promise<file_requests.CountFileRequestsResult>;
236+
227237
/**
228238
* Creates a file request for this user.
229239
*
@@ -233,6 +243,24 @@ declare module DropboxTypes {
233243
*/
234244
public fileRequestsCreate(arg: file_requests.CreateFileRequestArgs): Promise<file_requests.FileRequest>;
235245

246+
/**
247+
* Delete a batch of closed file requests.
248+
*
249+
* When an error occurs, the route rejects the promise with type
250+
* Error<file_requests.DeleteFileRequestError>.
251+
* @param arg The request parameters.
252+
*/
253+
public fileRequestsDelete(arg: file_requests.DeleteFileRequestArgs): Promise<file_requests.DeleteFileRequestsResult>;
254+
255+
/**
256+
* Delete all closed file requests owned by this user.
257+
*
258+
* When an error occurs, the route rejects the promise with type
259+
* Error<file_requests.DeleteAllClosedFileRequestsError>.
260+
* @param arg The request parameters.
261+
*/
262+
public fileRequestsDeleteAllClosed(arg: void): Promise<file_requests.DeleteAllClosedFileRequestsResult>;
263+
236264
/**
237265
* Returns the specified file request.
238266
*
@@ -242,6 +270,17 @@ declare module DropboxTypes {
242270
*/
243271
public fileRequestsGet(arg: file_requests.GetFileRequestArgs): Promise<file_requests.FileRequest>;
244272

273+
/**
274+
* Returns a list of file requests owned by this user. For apps with the app
275+
* folder permission, this will only return file requests with destinations
276+
* in the app folder.
277+
*
278+
* When an error occurs, the route rejects the promise with type
279+
* Error<file_requests.ListFileRequestsError>.
280+
* @param arg The request parameters.
281+
*/
282+
public fileRequestsListV2(arg: file_requests.ListFileRequestsArg): Promise<file_requests.ListFileRequestsV2Result>;
283+
245284
/**
246285
* Returns a list of file requests owned by this user. For apps with the app
247286
* folder permission, this will only return file requests with destinations
@@ -253,6 +292,17 @@ declare module DropboxTypes {
253292
*/
254293
public fileRequestsList(arg: void): Promise<file_requests.ListFileRequestsResult>;
255294

295+
/**
296+
* Once a cursor has been retrieved from listV2(), use this to paginate
297+
* through all file requests. The cursor must come from a previous call to
298+
* listV2() or listContinue().
299+
*
300+
* When an error occurs, the route rejects the promise with type
301+
* Error<file_requests.ListFileRequestsContinueError>.
302+
* @param arg The request parameters.
303+
*/
304+
public fileRequestsListContinue(arg: file_requests.ListFileRequestsContinueArg): Promise<file_requests.ListFileRequestsV2Result>;
305+
256306
/**
257307
* Update a file request.
258308
*
@@ -311,7 +361,7 @@ declare module DropboxTypes {
311361
/**
312362
* Copy multiple files or folders to different locations at once in the
313363
* user's Dropbox. This route will replace copyBatch(). The main difference
314-
* is this route will return stutus for each entry, while copyBatch() raises
364+
* is this route will return status for each entry, while copyBatch() raises
315365
* failure if any entry fails. This route will either finish synchronously,
316366
* or return a job ID and do the async copy job in background. Please use
317367
* copyBatchCheckV2() to check the job status.
@@ -493,6 +543,17 @@ declare module DropboxTypes {
493543
*/
494544
public filesDownloadZip(arg: files.DownloadZipArg): Promise<files.DownloadZipResult>;
495545

546+
/**
547+
* Export a file from a user's Dropbox. This route only supports exporting
548+
* files that cannot be downloaded directly and whose
549+
* ExportResult.file_metadata has ExportInfo.export_as populated.
550+
*
551+
* When an error occurs, the route rejects the promise with type
552+
* Error<files.ExportError>.
553+
* @param arg The request parameters.
554+
*/
555+
public filesExport(arg: files.ExportArg): Promise<files.ExportResult>;
556+
496557
/**
497558
* Returns the metadata for a file or folder. Note: Metadata for the root
498559
* folder is unsupported.
@@ -505,10 +566,11 @@ declare module DropboxTypes {
505566

506567
/**
507568
* Get a preview for a file. Currently, PDF previews are generated for files
508-
* with the following extensions: .ai, .doc, .docm, .docx, .eps, .odp, .odt,
509-
* .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, .rtf. HTML previews are generated
510-
* for files with the following extensions: .csv, .ods, .xls, .xlsm, .xlsx.
511-
* Other formats will return an unsupported extension error.
569+
* with the following extensions: .ai, .doc, .docm, .docx, .eps, .gdoc,
570+
* .gslides, .odp, .odt, .pps, .ppsm, .ppsx, .ppt, .pptm, .pptx, .rtf. HTML
571+
* previews are generated for files with the following extensions: .csv,
572+
* .ods, .xls, .xlsm, .gsheet, .xlsx. Other formats will return an
573+
* unsupported extension error.
512574
*
513575
* When an error occurs, the route rejects the promise with type
514576
* Error<files.PreviewError>.
@@ -518,8 +580,8 @@ declare module DropboxTypes {
518580

519581
/**
520582
* Get a temporary link to stream content of a file. This link will expire
521-
* in four hours and afterwards you will get 410 Gone. So this URL should
522-
* not be used to display content directly in the browser. Content-Type of
583+
* in four hours and afterwards you will get 410 Gone. This URL should not
584+
* be used to display content directly in the browser. The Content-Type of
523585
* the link is determined automatically by the file's mime type.
524586
*
525587
* When an error occurs, the route rejects the promise with type
@@ -697,11 +759,11 @@ declare module DropboxTypes {
697759

698760
/**
699761
* Move multiple files or folders to different locations at once in the
700-
* user's Dropbox. This route will replace moveBatchV2(). The main
701-
* difference is this route will return stutus for each entry, while
702-
* moveBatch() raises failure if any entry fails. This route will either
703-
* finish synchronously, or return a job ID and do the async move job in
704-
* background. Please use moveBatchCheckV2() to check the job status.
762+
* user's Dropbox. This route will replace moveBatch(). The main difference
763+
* is this route will return status for each entry, while moveBatch() raises
764+
* failure if any entry fails. This route will either finish synchronously,
765+
* or return a job ID and do the async move job in background. Please use
766+
* moveBatchCheckV2() to check the job status.
705767
*
706768
* When an error occurs, the route rejects the promise with type
707769
* Error<void>.

0 commit comments

Comments
 (0)