Skip to content

Commit

Permalink
Automated Spec Update (#771)
Browse files Browse the repository at this point in the history
* Automated Spec Update
 e57f8a4da1b070bed3ac5d4d3ec325fcd3630686

 Change Notes:

sharing_files Namespace
- Update Comments

sharing_folders Namespace
- Update Comments

team_folders Namespace
- Update Comments

team_log_generated Namespace
- Add ExternalDriveBackupPolicy union
- Add ExternalDriveBackupPolicyChangedDetails and ExternalDriveBackupPolicyChangedType structs
- Update EventDetails union to include external_drive_backup_policy_changed_details
- Update EventType union to include external_drive_backup_policy_changed
- Update EventTypeArg union to include external_drive_backup_policy_changed

team_policies Namespace
- Add ExternalDriveBackupPolicyState union

* Update package.json

Co-authored-by: DropboxBot <[email protected]>
Co-authored-by: Melody Truong <[email protected]>
  • Loading branch information
3 people authored Aug 11, 2021
1 parent cc5136a commit d5ebf45
Show file tree
Hide file tree
Showing 8 changed files with 142 additions and 27 deletions.
2 changes: 1 addition & 1 deletion generator/stone
12 changes: 7 additions & 5 deletions lib/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2944,7 +2944,8 @@ routes.teamTeamFolderActivate = function (arg) {

/**
* Sets an active team folder's status to archived and removes all folder and
* file members. Permission : Team member file access.
* file members. This endpoint cannot be used for teams that have a shared team
* space. Permission : Team member file access.
* @function Dropbox#teamTeamFolderArchive
* @arg {TeamTeamFolderArchiveArg} arg - The request parameters.
* @returns {Promise.<DropboxResponse<TeamTeamFolderArchiveLaunch>, DropboxResponseError.<TeamTeamFolderArchiveError>>}
Expand All @@ -2965,8 +2966,9 @@ routes.teamTeamFolderArchiveCheck = function (arg) {
};

/**
* Creates a new, active, team folder with no members. Permission : Team member
* file access.
* Creates a new, active, team folder with no members. This endpoint can only be
* used for teams that do not already have a shared team space. Permission :
* Team member file access.
* @function Dropbox#teamTeamFolderCreate
* @arg {TeamTeamFolderCreateArg} arg - The request parameters.
* @returns {Promise.<DropboxResponse<TeamTeamFolderMetadata>, DropboxResponseError.<TeamTeamFolderCreateError>>}
Expand Down Expand Up @@ -3007,8 +3009,8 @@ routes.teamTeamFolderListContinue = function (arg) {
};

/**
* Permanently deletes an archived team folder. Permission : Team member file
* access.
* Permanently deletes an archived team folder. This endpoint cannot be used for
* teams that have a shared team space. Permission : Team member file access.
* @function Dropbox#teamTeamFolderPermanentlyDelete
* @arg {TeamTeamFolderIdArg} arg - The request parameters.
* @returns {Promise.<DropboxResponse<void>, DropboxResponseError.<TeamTeamFolderPermanentlyDeleteError>>}
Expand Down
49 changes: 42 additions & 7 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.5.0",
"version": "10.6.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
87 changes: 81 additions & 6 deletions types/dropbox_types.d.ts

Large diffs are not rendered by default.

13 changes: 8 additions & 5 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3001,7 +3001,8 @@ export class Dropbox {

/**
* Sets an active team folder's status to archived and removes all folder
* and file members. Permission : Team member file access.
* and file members. This endpoint cannot be used for teams that have a
* shared team space. Permission : Team member file access.
*
* When an error occurs, the route rejects the promise with type
* DropboxResponseError<team.TeamFolderArchiveError>.
Expand All @@ -3020,8 +3021,9 @@ export class Dropbox {
public teamTeamFolderArchiveCheck(arg: async.PollArg): Promise<DropboxResponse<team.TeamFolderArchiveJobStatus>>;

/**
* Creates a new, active, team folder with no members. Permission : Team
* member file access.
* Creates a new, active, team folder with no members. This endpoint can
* only be used for teams that do not already have a shared team space.
* Permission : Team member file access.
*
* When an error occurs, the route rejects the promise with type
* DropboxResponseError<team.TeamFolderCreateError>.
Expand Down Expand Up @@ -3059,8 +3061,9 @@ export class Dropbox {
public teamTeamFolderListContinue(arg: team.TeamFolderListContinueArg): Promise<DropboxResponse<team.TeamFolderListResult>>;

/**
* Permanently deletes an archived team folder. Permission : Team member
* file access.
* Permanently deletes an archived team folder. This endpoint cannot be used
* for teams that have a shared team space. Permission : Team member file
* access.
*
* When an error occurs, the route rejects the promise with type
* DropboxResponseError<team.TeamFolderPermanentlyDeleteError>.
Expand Down

0 comments on commit d5ebf45

Please sign in to comment.