Skip to content

Commit 6b61cae

Browse files
author
praneshp
committed
Generate from new stone/spec
1 parent b052d8d commit 6b61cae

File tree

8 files changed

+289
-76
lines changed

8 files changed

+289
-76
lines changed

generator/typescript/dropbox.d.ts

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ declare module DropboxTypes {
5353

5454
/**
5555
* Remove the specified property group from the file. To remove specific
56-
* property field key value pairs, see route propertiesUpdate(). To update a
56+
* property field key value pairs, see propertiesUpdate(). To update a
5757
* template, see templatesUpdateForUser() or templatesUpdateForTeam().
5858
* Templates can't be removed once created.
5959
*
@@ -87,7 +87,7 @@ declare module DropboxTypes {
8787
public filePropertiesPropertiesUpdate(arg: file_properties.UpdatePropertiesArg): Promise<void>;
8888

8989
/**
90-
* Add a template associated with a team. See route propertiesAdd() to add
90+
* Add a template associated with a team. See propertiesAdd() to add
9191
* properties to a file or folder.
9292
*
9393
* When an error occurs, the route rejects the promise with type
@@ -97,8 +97,9 @@ declare module DropboxTypes {
9797
public filePropertiesTemplatesAddForTeam(arg: file_properties.AddTemplateArg): Promise<file_properties.AddTemplateResult>;
9898

9999
/**
100-
* Add a template associated with a user. See route propertiesAdd() to add
101-
* properties to a file.
100+
* Add a template associated with a user. See propertiesAdd() to add
101+
* properties to a file. This endpoint can't be called on a team member or
102+
* admin's behalf.
102103
*
103104
* When an error occurs, the route rejects the promise with type
104105
* Error<file_properties.ModifyTemplateError>.
@@ -116,7 +117,8 @@ declare module DropboxTypes {
116117
public filePropertiesTemplatesGetForTeam(arg: file_properties.GetTemplateArg): Promise<file_properties.GetTemplateResult>;
117118

118119
/**
119-
* Get the schema for a specified template.
120+
* Get the schema for a specified template. This endpoint can't be called on
121+
* a team member or admin's behalf.
120122
*
121123
* When an error occurs, the route rejects the promise with type
122124
* Error<file_properties.TemplateError>.
@@ -136,7 +138,8 @@ declare module DropboxTypes {
136138

137139
/**
138140
* Get the template identifiers for a team. To get the schema of each
139-
* template use templatesGetForUser().
141+
* template use templatesGetForUser(). This endpoint can't be called on a
142+
* team member or admin's behalf.
140143
*
141144
* When an error occurs, the route rejects the promise with type
142145
* Error<file_properties.TemplateError>.
@@ -158,7 +161,8 @@ declare module DropboxTypes {
158161
/**
159162
* Update a template associated with a user. This route can update the
160163
* template name, the template description and add optional properties to
161-
* templates.
164+
* templates. This endpoint can't be called on a team member or admin's
165+
* behalf.
162166
*
163167
* When an error occurs, the route rejects the promise with type
164168
* Error<file_properties.ModifyTemplateError>.

generator/typescript/dropbox_team.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,8 @@ declare module DropboxTypes {
567567
public teamTeamFolderArchiveCheck(arg: async.PollArg): Promise<team.TeamFolderArchiveJobStatus>;
568568

569569
/**
570-
* Creates a new, active, team folder. Permission : Team member file access.
570+
* Creates a new, active, team folder with no members. Permission : Team
571+
* member file access.
571572
*
572573
* When an error occurs, the route rejects the promise with type
573574
* Error<team.TeamFolderCreateError>.

generator/typescript/dropbox_types.d.ts

Lines changed: 177 additions & 38 deletions
Large diffs are not rendered by default.

src/routes-team.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,8 @@ routes.teamTeamFolderArchiveCheck = function (arg) {
602602
};
603603

604604
/**
605-
* Creates a new, active, team folder. Permission : Team member file access.
605+
* Creates a new, active, team folder with no members. Permission : Team member
606+
* file access.
606607
* @function DropboxTeam#teamTeamFolderCreate
607608
* @arg {TeamTeamFolderCreateArg} arg - The request parameters.
608609
* @returns {Promise.<TeamTeamFolderMetadata, Error.<TeamTeamFolderCreateError>>}

src/routes.js

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ routes.filePropertiesPropertiesOverwrite = function (arg) {
4848

4949
/**
5050
* Remove the specified property group from the file. To remove specific
51-
* property field key value pairs, see route properties/update. To update a
52-
* template, see templates/update_for_user or templates/update_for_team.
53-
* Templates can't be removed once created.
51+
* property field key value pairs, see properties/update. To update a template,
52+
* see templates/update_for_user or templates/update_for_team. Templates can't
53+
* be removed once created.
5454
* @function Dropbox#filePropertiesPropertiesRemove
5555
* @arg {FilePropertiesRemovePropertiesArg} arg - The request parameters.
5656
* @returns {Promise.<void, Error.<FilePropertiesRemovePropertiesError>>}
@@ -85,8 +85,8 @@ routes.filePropertiesPropertiesUpdate = function (arg) {
8585
};
8686

8787
/**
88-
* Add a template associated with a team. See route properties/add to add
89-
* properties to a file or folder.
88+
* Add a template associated with a team. See properties/add to add properties
89+
* to a file or folder.
9090
* @function Dropbox#filePropertiesTemplatesAddForTeam
9191
* @arg {FilePropertiesAddTemplateArg} arg - The request parameters.
9292
* @returns {Promise.<FilePropertiesAddTemplateResult, Error.<FilePropertiesModifyTemplateError>>}
@@ -96,8 +96,8 @@ routes.filePropertiesTemplatesAddForTeam = function (arg) {
9696
};
9797

9898
/**
99-
* Add a template associated with a user. See route properties/add to add
100-
* properties to a file.
99+
* Add a template associated with a user. See properties/add to add properties
100+
* to a file. This endpoint can't be called on a team member or admin's behalf.
101101
* @function Dropbox#filePropertiesTemplatesAddForUser
102102
* @arg {FilePropertiesAddTemplateArg} arg - The request parameters.
103103
* @returns {Promise.<FilePropertiesAddTemplateResult, Error.<FilePropertiesModifyTemplateError>>}
@@ -117,7 +117,8 @@ routes.filePropertiesTemplatesGetForTeam = function (arg) {
117117
};
118118

119119
/**
120-
* Get the schema for a specified template.
120+
* Get the schema for a specified template. This endpoint can't be called on a
121+
* team member or admin's behalf.
121122
* @function Dropbox#filePropertiesTemplatesGetForUser
122123
* @arg {FilePropertiesGetTemplateArg} arg - The request parameters.
123124
* @returns {Promise.<FilePropertiesGetTemplateResult, Error.<FilePropertiesTemplateError>>}
@@ -139,7 +140,8 @@ routes.filePropertiesTemplatesListForTeam = function (arg) {
139140

140141
/**
141142
* Get the template identifiers for a team. To get the schema of each template
142-
* use templates/get_for_user.
143+
* use templates/get_for_user. This endpoint can't be called on a team member or
144+
* admin's behalf.
143145
* @function Dropbox#filePropertiesTemplatesListForUser
144146
* @arg {void} arg - The request parameters.
145147
* @returns {Promise.<FilePropertiesListTemplateResult, Error.<FilePropertiesTemplateError>>}
@@ -161,7 +163,8 @@ routes.filePropertiesTemplatesUpdateForTeam = function (arg) {
161163

162164
/**
163165
* Update a template associated with a user. This route can update the template
164-
* name, the template description and add optional properties to templates.
166+
* name, the template description and add optional properties to templates. This
167+
* endpoint can't be called on a team member or admin's behalf.
165168
* @function Dropbox#filePropertiesTemplatesUpdateForUser
166169
* @arg {FilePropertiesUpdateTemplateArg} arg - The request parameters.
167170
* @returns {Promise.<FilePropertiesUpdateTemplateResult, Error.<FilePropertiesModifyTemplateError>>}

0 commit comments

Comments
 (0)