files.com 1.0.276 → 1.0.278

Sign up to get free protection for your applications and to get access to all the features.
package/_VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.276
1
+ 1.0.278
@@ -51,7 +51,8 @@
51
51
  "files_agent_root": "example",
52
52
  "files_agent_api_token": "example",
53
53
  "filebase_bucket": "my-bucket",
54
- "filebase_access_key": "example"
54
+ "filebase_access_key": "example",
55
+ "dropbox_teams": true
55
56
  }
56
57
  ```
57
58
 
@@ -103,6 +104,7 @@
103
104
  * `files_agent_api_token` (string): Files Agent API Token
104
105
  * `filebase_bucket` (string): Filebase Bucket name
105
106
  * `filebase_access_key` (string): Filebase Access Key.
107
+ * `dropbox_teams` (boolean): List Team folders in root
106
108
  * `aws_secret_key` (string): AWS secret key.
107
109
  * `password` (string): Password if needed.
108
110
  * `private_key` (string): Private key if needed.
@@ -207,6 +209,7 @@ await RemoteServer.create({
207
209
  'files_agent_permission_set': "read_write",
208
210
  'filebase_access_key': "example",
209
211
  'filebase_bucket': "my-bucket",
212
+ 'dropbox_teams': true,
210
213
  })
211
214
  ```
212
215
 
@@ -267,6 +270,7 @@ await RemoteServer.create({
267
270
  * `filebase_access_key` (string): Filebase Access Key.
268
271
  * `filebase_secret_key` (string): Filebase secret key
269
272
  * `filebase_bucket` (string): Filebase Bucket name
273
+ * `dropbox_teams` (boolean): List Team folders in root
270
274
 
271
275
  ---
272
276
 
@@ -372,6 +376,7 @@ await remote_server.update({
372
376
  'files_agent_permission_set': "read_write",
373
377
  'filebase_access_key': "example",
374
378
  'filebase_bucket': "my-bucket",
379
+ 'dropbox_teams': true,
375
380
  })
376
381
  ```
377
382
 
@@ -432,6 +437,7 @@ await remote_server.update({
432
437
  * `filebase_access_key` (string): Filebase Access Key.
433
438
  * `filebase_secret_key` (string): Filebase secret key
434
439
  * `filebase_bucket` (string): Filebase Bucket name
440
+ * `dropbox_teams` (boolean): List Team folders in root
435
441
 
436
442
  ### Example Response
437
443
 
@@ -484,7 +490,8 @@ await remote_server.update({
484
490
  "files_agent_root": "example",
485
491
  "files_agent_api_token": "example",
486
492
  "filebase_bucket": "my-bucket",
487
- "filebase_access_key": "example"
493
+ "filebase_access_key": "example",
494
+ "dropbox_teams": true
488
495
  }
489
496
  ```
490
497
 
@@ -4,6 +4,7 @@
4
4
 
5
5
  ```
6
6
  {
7
+ "id": 1,
7
8
  "expires_at": "2000-01-01T01:00:00Z",
8
9
  "finalized_at": "2000-01-01T01:00:00Z",
9
10
  "name": "My Snapshot",
@@ -12,13 +13,13 @@
12
13
  }
13
14
  ```
14
15
 
16
+ * `id` (int64): The snapshot's unique ID.
15
17
  * `expires_at` (date-time): When the snapshot expires.
16
18
  * `finalized_at` (date-time): When the snapshot was finalized.
17
19
  * `name` (string): A name for the snapshot.
18
20
  * `user_id` (int64): The user that created this snapshot, if applicable.
19
21
  * `bundle_id` (int64): The bundle using this snapshot, if applicable.
20
22
  * `paths` (array(string)): An array of paths to add to the snapshot.
21
- * `id` (int64): Snapshot ID.
22
23
 
23
24
  ---
24
25
 
@@ -91,6 +92,7 @@ await snapshot.update({
91
92
 
92
93
  ```json
93
94
  {
95
+ "id": 1,
94
96
  "expires_at": "2000-01-01T01:00:00Z",
95
97
  "finalized_at": "2000-01-01T01:00:00Z",
96
98
  "name": "My Snapshot",
@@ -31,6 +31,7 @@
31
31
  "provision_group_required": "example",
32
32
  "provision_email_signup_groups": "Employees",
33
33
  "provision_site_admin_groups": "Employees",
34
+ "provision_group_admin_groups": "Employees",
34
35
  "provision_attachments_permission": true,
35
36
  "provision_dav_permission": true,
36
37
  "provision_ftp_permission": true,
@@ -77,6 +78,7 @@
77
78
  * `provision_group_required` (string): Comma or newline separated list of group names (with optional wildcards) to require membership for user provisioning.
78
79
  * `provision_email_signup_groups` (string): Comma-separated list of group names whose members will be created with email_signup authentication.
79
80
  * `provision_site_admin_groups` (string): Comma-separated list of group names whose members will be created as Site Admins.
81
+ * `provision_group_admin_groups` (string): Comma-separated list of group names whose members will be provisioned as Group Admins.
80
82
  * `provision_attachments_permission` (boolean): DEPRECATED: Auto-provisioned users get Sharing permission. Use a Group with the Bundle permission instead.
81
83
  * `provision_dav_permission` (boolean): Auto-provisioned users get WebDAV permission?
82
84
  * `provision_ftp_permission` (boolean): Auto-provisioned users get FTP permission?
@@ -367,6 +367,13 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
367
367
  (0, _defineProperty2.default)(this, "setFilebaseAccessKey", function (value) {
368
368
  _this.attributes.filebase_access_key = value;
369
369
  });
370
+ // boolean # List Team folders in root
371
+ (0, _defineProperty2.default)(this, "getDropboxTeams", function () {
372
+ return _this.attributes.dropbox_teams;
373
+ });
374
+ (0, _defineProperty2.default)(this, "setDropboxTeams", function (value) {
375
+ _this.attributes.dropbox_teams = value;
376
+ });
370
377
  // string # AWS secret key.
371
378
  (0, _defineProperty2.default)(this, "getAwsSecretKey", function () {
372
379
  return _this.attributes.aws_secret_key;
@@ -659,6 +666,7 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
659
666
  // filebase_access_key - string - Filebase Access Key.
660
667
  // filebase_secret_key - string - Filebase secret key
661
668
  // filebase_bucket - string - Filebase Bucket name
669
+ // dropbox_teams - boolean - List Team folders in root
662
670
  (0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
663
671
  var params,
664
672
  response,
@@ -1293,6 +1301,7 @@ var RemoteServer = /*#__PURE__*/(0, _createClass2.default)(function RemoteServer
1293
1301
  // filebase_access_key - string - Filebase Access Key.
1294
1302
  // filebase_secret_key - string - Filebase secret key
1295
1303
  // filebase_bucket - string - Filebase Bucket name
1304
+ // dropbox_teams - boolean - List Team folders in root
1296
1305
  (0, _defineProperty2.default)(RemoteServer, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee7() {
1297
1306
  var params,
1298
1307
  options,
@@ -31,6 +31,13 @@ var Snapshot = /*#__PURE__*/(0, _createClass2.default)(function Snapshot() {
31
31
  (0, _defineProperty2.default)(this, "isLoaded", function () {
32
32
  return !!_this.attributes.id;
33
33
  });
34
+ // int64 # The snapshot's unique ID.
35
+ (0, _defineProperty2.default)(this, "getId", function () {
36
+ return _this.attributes.id;
37
+ });
38
+ (0, _defineProperty2.default)(this, "setId", function (value) {
39
+ _this.attributes.id = value;
40
+ });
34
41
  // date-time # When the snapshot expires.
35
42
  (0, _defineProperty2.default)(this, "getExpiresAt", function () {
36
43
  return _this.attributes.expires_at;
@@ -73,13 +80,6 @@ var Snapshot = /*#__PURE__*/(0, _createClass2.default)(function Snapshot() {
73
80
  (0, _defineProperty2.default)(this, "setPaths", function (value) {
74
81
  _this.attributes.paths = value;
75
82
  });
76
- // int64 # Snapshot ID.
77
- (0, _defineProperty2.default)(this, "getId", function () {
78
- return _this.attributes.id;
79
- });
80
- (0, _defineProperty2.default)(this, "setId", function (value) {
81
- _this.attributes.id = value;
82
- });
83
83
  // Parameters:
84
84
  // expires_at - string - When the snapshot expires.
85
85
  // name - string - A name for the snapshot.
@@ -139,6 +139,10 @@ var SsoStrategy = /*#__PURE__*/(0, _createClass2.default)(function SsoStrategy()
139
139
  (0, _defineProperty2.default)(this, "getProvisionSiteAdminGroups", function () {
140
140
  return _this.attributes.provision_site_admin_groups;
141
141
  });
142
+ // string # Comma-separated list of group names whose members will be provisioned as Group Admins.
143
+ (0, _defineProperty2.default)(this, "getProvisionGroupAdminGroups", function () {
144
+ return _this.attributes.provision_group_admin_groups;
145
+ });
142
146
  // boolean # DEPRECATED: Auto-provisioned users get Sharing permission. Use a Group with the Bundle permission instead.
143
147
  (0, _defineProperty2.default)(this, "getProvisionAttachmentsPermission", function () {
144
148
  return _this.attributes.provision_attachments_permission;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.276",
3
+ "version": "1.0.278",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",
@@ -359,6 +359,13 @@ class RemoteServer {
359
359
  this.attributes.filebase_access_key = value
360
360
  }
361
361
 
362
+ // boolean # List Team folders in root
363
+ getDropboxTeams = () => this.attributes.dropbox_teams
364
+
365
+ setDropboxTeams = value => {
366
+ this.attributes.dropbox_teams = value
367
+ }
368
+
362
369
  // string # AWS secret key.
363
370
  getAwsSecretKey = () => this.attributes.aws_secret_key
364
371
 
@@ -594,6 +601,7 @@ class RemoteServer {
594
601
  // filebase_access_key - string - Filebase Access Key.
595
602
  // filebase_secret_key - string - Filebase secret key
596
603
  // filebase_bucket - string - Filebase Bucket name
604
+ // dropbox_teams - boolean - List Team folders in root
597
605
  update = async (params = {}) => {
598
606
  if (!this.attributes.id) {
599
607
  throw new errors.EmptyPropertyError('Current object has no id')
@@ -936,6 +944,7 @@ class RemoteServer {
936
944
  // filebase_access_key - string - Filebase Access Key.
937
945
  // filebase_secret_key - string - Filebase secret key
938
946
  // filebase_bucket - string - Filebase Bucket name
947
+ // dropbox_teams - boolean - List Team folders in root
939
948
  static create = async (params = {}, options = {}) => {
940
949
  if (params['aws_access_key'] && !isString(params['aws_access_key'])) {
941
950
  throw new errors.InvalidParameterError(`Bad parameter: aws_access_key must be of type String, received ${getType(params['aws_access_key'])}`)
@@ -23,6 +23,13 @@ class Snapshot {
23
23
  }
24
24
 
25
25
  isLoaded = () => !!this.attributes.id
26
+ // int64 # The snapshot's unique ID.
27
+ getId = () => this.attributes.id
28
+
29
+ setId = value => {
30
+ this.attributes.id = value
31
+ }
32
+
26
33
  // date-time # When the snapshot expires.
27
34
  getExpiresAt = () => this.attributes.expires_at
28
35
 
@@ -65,13 +72,6 @@ class Snapshot {
65
72
  this.attributes.paths = value
66
73
  }
67
74
 
68
- // int64 # Snapshot ID.
69
- getId = () => this.attributes.id
70
-
71
- setId = value => {
72
- this.attributes.id = value
73
- }
74
-
75
75
 
76
76
  // Parameters:
77
77
  // expires_at - string - When the snapshot expires.
@@ -104,6 +104,9 @@ class SsoStrategy {
104
104
  // string # Comma-separated list of group names whose members will be created as Site Admins.
105
105
  getProvisionSiteAdminGroups = () => this.attributes.provision_site_admin_groups
106
106
 
107
+ // string # Comma-separated list of group names whose members will be provisioned as Group Admins.
108
+ getProvisionGroupAdminGroups = () => this.attributes.provision_group_admin_groups
109
+
107
110
  // boolean # DEPRECATED: Auto-provisioned users get Sharing permission. Use a Group with the Bundle permission instead.
108
111
  getProvisionAttachmentsPermission = () => this.attributes.provision_attachments_permission
109
112