Skip to content

Commit a897576

Browse files
[Bot] push changes from Files.com
1 parent 9da8b73 commit a897576

10 files changed

Lines changed: 169 additions & 29 deletions

File tree

_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.627
1+
1.2.628

docs/models/Partner.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"allow_credential_changes": true,
1010
"allow_providing_gpg_keys": true,
1111
"allow_user_creation": true,
12+
"cc_emails_to_responsible_party": true,
1213
"id": 1,
1314
"workspace_id": 1,
1415
"name": "Acme Corp",
@@ -18,6 +19,8 @@
1819
2,
1920
3
2021
],
22+
"responsible_group_id": 1,
23+
"responsible_user_id": 1,
2124
"root_folder": "/AcmeCorp",
2225
"tags": "example",
2326
"user_ids": [
@@ -33,11 +36,14 @@
3336
* `allow_credential_changes` (boolean): Allow Partner Admins to change or reset credentials for users belonging to this Partner.
3437
* `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
3538
* `allow_user_creation` (boolean): Allow Partner Admins to create users.
39+
* `cc_emails_to_responsible_party` (boolean): When `true`, emails sent to Partner users are copied to the responsible User or Group.
3640
* `id` (int64): The unique ID of the Partner.
3741
* `workspace_id` (int64): ID of the Workspace associated with this Partner.
3842
* `name` (string): The name of the Partner.
3943
* `notes` (string): Notes about this Partner.
4044
* `partner_admin_ids` (array(int64)): Array of User IDs that are Partner Admins for this Partner.
45+
* `responsible_group_id` (int64): ID of the Group responsible for this Partner.
46+
* `responsible_user_id` (int64): ID of the User responsible for this Partner.
4147
* `root_folder` (string): The root folder path for this Partner.
4248
* `tags` (string): Comma-separated list of Tags for this Partner. Tags are used for other features, such as UserLifecycleRules, which can target specific tags. Tags must only contain lowercase letters, numbers, and hyphens.
4349
* `user_ids` (array(int64)): Array of User IDs that belong to this Partner.
@@ -82,7 +88,10 @@ await Partner.create({
8288
'allow_credential_changes': false,
8389
'allow_providing_gpg_keys': false,
8490
'allow_user_creation': false,
91+
'cc_emails_to_responsible_party': false,
8592
'notes': "This is a note about the partner.",
93+
'responsible_group_id': 1,
94+
'responsible_user_id': 1,
8695
'tags': "example",
8796
'name': "Acme Corp",
8897
'root_folder': "/AcmeCorp",
@@ -98,7 +107,10 @@ await Partner.create({
98107
* `allow_credential_changes` (boolean): Allow Partner Admins to change or reset credentials for users belonging to this Partner.
99108
* `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
100109
* `allow_user_creation` (boolean): Allow Partner Admins to create users.
110+
* `cc_emails_to_responsible_party` (boolean): When `true`, emails sent to Partner users are copied to the responsible User or Group.
101111
* `notes` (string): Notes about this Partner.
112+
* `responsible_group_id` (int64): ID of the Group responsible for this Partner.
113+
* `responsible_user_id` (int64): ID of the User responsible for this Partner.
102114
* `tags` (string): Comma-separated list of Tags for this Partner. Tags are used for other features, such as UserLifecycleRules, which can target specific tags. Tags must only contain lowercase letters, numbers, and hyphens.
103115
* `name` (string): Required - The name of the Partner.
104116
* `root_folder` (string): Required - The root folder path for this Partner.
@@ -117,7 +129,10 @@ await partner.update({
117129
'allow_credential_changes': false,
118130
'allow_providing_gpg_keys': false,
119131
'allow_user_creation': false,
132+
'cc_emails_to_responsible_party': false,
120133
'notes': "This is a note about the partner.",
134+
'responsible_group_id': 1,
135+
'responsible_user_id': 1,
121136
'tags': "example",
122137
'name': "Acme Corp",
123138
'root_folder': "/AcmeCorp",
@@ -132,7 +147,10 @@ await partner.update({
132147
* `allow_credential_changes` (boolean): Allow Partner Admins to change or reset credentials for users belonging to this Partner.
133148
* `allow_providing_gpg_keys` (boolean): Allow Partner Admins to provide GPG keys.
134149
* `allow_user_creation` (boolean): Allow Partner Admins to create users.
150+
* `cc_emails_to_responsible_party` (boolean): When `true`, emails sent to Partner users are copied to the responsible User or Group.
135151
* `notes` (string): Notes about this Partner.
152+
* `responsible_group_id` (int64): ID of the Group responsible for this Partner.
153+
* `responsible_user_id` (int64): ID of the User responsible for this Partner.
136154
* `tags` (string): Comma-separated list of Tags for this Partner. Tags are used for other features, such as UserLifecycleRules, which can target specific tags. Tags must only contain lowercase letters, numbers, and hyphens.
137155
* `name` (string): The name of the Partner.
138156
* `root_folder` (string): The root folder path for this Partner.
@@ -146,6 +164,7 @@ await partner.update({
146164
"allow_credential_changes": true,
147165
"allow_providing_gpg_keys": true,
148166
"allow_user_creation": true,
167+
"cc_emails_to_responsible_party": true,
149168
"id": 1,
150169
"workspace_id": 1,
151170
"name": "Acme Corp",
@@ -155,6 +174,8 @@ await partner.update({
155174
2,
156175
3
157176
],
177+
"responsible_group_id": 1,
178+
"responsible_user_id": 1,
158179
"root_folder": "/AcmeCorp",
159180
"tags": "example",
160181
"user_ids": [

docs/models/UserLifecycleRule.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"include_site_admins": true,
1818
"apply_to_all_workspaces": true,
1919
"name": "password specific rules",
20+
"notify_users": true,
2021
"partner_tag": "guest",
2122
"site_id": 1,
2223
"workspace_id": 12,
@@ -34,6 +35,7 @@
3435
* `include_site_admins` (boolean): If true, the rule will apply to site admins.
3536
* `apply_to_all_workspaces` (boolean): If true, a default-workspace rule also applies to users in all workspaces.
3637
* `name` (string): User Lifecycle Rule name
38+
* `notify_users` (boolean): If true, users will be emailed before the rule disables or deletes them.
3739
* `partner_tag` (string): If provided, only users belonging to Partners with this tag at the Partner level will be affected by the rule. Tags must only contain lowercase letters, numbers, and hyphens.
3840
* `site_id` (int64): Site ID
3941
* `workspace_id` (int64): Workspace ID. `0` means the default workspace.
@@ -82,6 +84,7 @@ await UserLifecycleRule.create({
8284
'include_site_admins': true,
8385
'include_folder_admins': true,
8486
'name': "password specific rules",
87+
'notify_users': true,
8588
'partner_tag': "guest",
8689
'user_state': "inactive",
8790
'user_tag': "guest",
@@ -100,6 +103,7 @@ await UserLifecycleRule.create({
100103
* `include_site_admins` (boolean): If true, the rule will apply to site admins.
101104
* `include_folder_admins` (boolean): If true, the rule will apply to folder admins.
102105
* `name` (string): User Lifecycle Rule name
106+
* `notify_users` (boolean): If true, users will be emailed before the rule disables or deletes them.
103107
* `partner_tag` (string): If provided, only users belonging to Partners with this tag at the Partner level will be affected by the rule. Tags must only contain lowercase letters, numbers, and hyphens.
104108
* `user_state` (string): State of the users to apply the rule to (inactive or disabled)
105109
* `user_tag` (string): If provided, only users with this tag will be affected by the rule. Tags must only contain lowercase letters, numbers, and hyphens.
@@ -120,6 +124,7 @@ await user_lifecycle_rule.update({
120124
'include_site_admins': true,
121125
'include_folder_admins': true,
122126
'name': "password specific rules",
127+
'notify_users': true,
123128
'partner_tag': "guest",
124129
'user_state': "inactive",
125130
'user_tag': "guest",
@@ -138,6 +143,7 @@ await user_lifecycle_rule.update({
138143
* `include_site_admins` (boolean): If true, the rule will apply to site admins.
139144
* `include_folder_admins` (boolean): If true, the rule will apply to folder admins.
140145
* `name` (string): User Lifecycle Rule name
146+
* `notify_users` (boolean): If true, users will be emailed before the rule disables or deletes them.
141147
* `partner_tag` (string): If provided, only users belonging to Partners with this tag at the Partner level will be affected by the rule. Tags must only contain lowercase letters, numbers, and hyphens.
142148
* `user_state` (string): State of the users to apply the rule to (inactive or disabled)
143149
* `user_tag` (string): If provided, only users with this tag will be affected by the rule. Tags must only contain lowercase letters, numbers, and hyphens.
@@ -160,6 +166,7 @@ await user_lifecycle_rule.update({
160166
"include_site_admins": true,
161167
"apply_to_all_workspaces": true,
162168
"name": "password specific rules",
169+
"notify_users": true,
163170
"partner_tag": "guest",
164171
"site_id": 1,
165172
"workspace_id": 12,

lib/Files.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var apiKey;
1212
var baseUrl = 'https://app.files.com';
1313
var sessionId = null;
1414
var language = null;
15-
var version = '1.2.627';
15+
var version = '1.2.628';
1616
var userAgent = "Files.com JavaScript SDK v".concat(version);
1717
var logLevel = _Logger.LogLevel.INFO;
1818
var debugRequest = false;

lib/models/Partner.js

Lines changed: 76 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ var Partner = /*#__PURE__*/(0, _createClass2.default)(function Partner() {
6767
(0, _defineProperty2.default)(this, "setAllowUserCreation", function (value) {
6868
_this.attributes.allow_user_creation = value;
6969
});
70+
// boolean # When `true`, emails sent to Partner users are copied to the responsible User or Group.
71+
(0, _defineProperty2.default)(this, "getCcEmailsToResponsibleParty", function () {
72+
return _this.attributes.cc_emails_to_responsible_party;
73+
});
74+
(0, _defineProperty2.default)(this, "setCcEmailsToResponsibleParty", function (value) {
75+
_this.attributes.cc_emails_to_responsible_party = value;
76+
});
7077
// int64 # The unique ID of the Partner.
7178
(0, _defineProperty2.default)(this, "getId", function () {
7279
return _this.attributes.id;
@@ -102,6 +109,20 @@ var Partner = /*#__PURE__*/(0, _createClass2.default)(function Partner() {
102109
(0, _defineProperty2.default)(this, "setPartnerAdminIds", function (value) {
103110
_this.attributes.partner_admin_ids = value;
104111
});
112+
// int64 # ID of the Group responsible for this Partner.
113+
(0, _defineProperty2.default)(this, "getResponsibleGroupId", function () {
114+
return _this.attributes.responsible_group_id;
115+
});
116+
(0, _defineProperty2.default)(this, "setResponsibleGroupId", function (value) {
117+
_this.attributes.responsible_group_id = value;
118+
});
119+
// int64 # ID of the User responsible for this Partner.
120+
(0, _defineProperty2.default)(this, "getResponsibleUserId", function () {
121+
return _this.attributes.responsible_user_id;
122+
});
123+
(0, _defineProperty2.default)(this, "setResponsibleUserId", function (value) {
124+
_this.attributes.responsible_user_id = value;
125+
});
105126
// string # The root folder path for this Partner.
106127
(0, _defineProperty2.default)(this, "getRootFolder", function () {
107128
return _this.attributes.root_folder;
@@ -129,7 +150,10 @@ var Partner = /*#__PURE__*/(0, _createClass2.default)(function Partner() {
129150
// allow_credential_changes - boolean - Allow Partner Admins to change or reset credentials for users belonging to this Partner.
130151
// allow_providing_gpg_keys - boolean - Allow Partner Admins to provide GPG keys.
131152
// allow_user_creation - boolean - Allow Partner Admins to create users.
153+
// cc_emails_to_responsible_party - boolean - When `true`, emails sent to Partner users are copied to the responsible User or Group.
132154
// notes - string - Notes about this Partner.
155+
// responsible_group_id - int64 - ID of the Group responsible for this Partner.
156+
// responsible_user_id - int64 - ID of the User responsible for this Partner.
133157
// tags - string - Comma-separated list of Tags for this Partner. Tags are used for other features, such as UserLifecycleRules, which can target specific tags. Tags must only contain lowercase letters, numbers, and hyphens.
134158
// name - string - The name of the Partner.
135159
// root_folder - string - The root folder path for this Partner.
@@ -172,44 +196,56 @@ var Partner = /*#__PURE__*/(0, _createClass2.default)(function Partner() {
172196
}
173197
throw new errors.InvalidParameterError("Bad parameter: notes must be of type String, received ".concat((0, _utils.getType)(params.notes)));
174198
case 5:
175-
if (!(params.tags && !(0, _utils.isString)(params.tags))) {
199+
if (!(params.responsible_group_id && !(0, _utils.isInt)(params.responsible_group_id))) {
176200
_context.next = 6;
177201
break;
178202
}
179-
throw new errors.InvalidParameterError("Bad parameter: tags must be of type String, received ".concat((0, _utils.getType)(params.tags)));
203+
throw new errors.InvalidParameterError("Bad parameter: responsible_group_id must be of type Int, received ".concat((0, _utils.getType)(params.responsible_group_id)));
180204
case 6:
181-
if (!(params.name && !(0, _utils.isString)(params.name))) {
205+
if (!(params.responsible_user_id && !(0, _utils.isInt)(params.responsible_user_id))) {
182206
_context.next = 7;
183207
break;
184208
}
185-
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
209+
throw new errors.InvalidParameterError("Bad parameter: responsible_user_id must be of type Int, received ".concat((0, _utils.getType)(params.responsible_user_id)));
186210
case 7:
187-
if (!(params.root_folder && !(0, _utils.isString)(params.root_folder))) {
211+
if (!(params.tags && !(0, _utils.isString)(params.tags))) {
188212
_context.next = 8;
189213
break;
190214
}
191-
throw new errors.InvalidParameterError("Bad parameter: root_folder must be of type String, received ".concat((0, _utils.getType)(params.root_folder)));
215+
throw new errors.InvalidParameterError("Bad parameter: tags must be of type String, received ".concat((0, _utils.getType)(params.tags)));
192216
case 8:
193-
if (params.id) {
217+
if (!(params.name && !(0, _utils.isString)(params.name))) {
218+
_context.next = 9;
219+
break;
220+
}
221+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
222+
case 9:
223+
if (!(params.root_folder && !(0, _utils.isString)(params.root_folder))) {
194224
_context.next = 10;
195225
break;
196226
}
227+
throw new errors.InvalidParameterError("Bad parameter: root_folder must be of type String, received ".concat((0, _utils.getType)(params.root_folder)));
228+
case 10:
229+
if (params.id) {
230+
_context.next = 12;
231+
break;
232+
}
197233
if (!_this.attributes.id) {
198-
_context.next = 9;
234+
_context.next = 11;
199235
break;
200236
}
201237
params.id = _this.id;
202-
_context.next = 10;
238+
_context.next = 12;
203239
break;
204-
case 9:
240+
case 11:
205241
throw new errors.MissingParameterError('Parameter missing: id');
206-
case 10:
207-
_context.next = 11;
242+
case 12:
243+
_context.next = 13;
208244
return _Api.default.sendRequest("/partners/".concat(encodeURIComponent(params.id)), 'PATCH', params, _this.options);
209-
case 11:
245+
case 13:
210246
response = _context.sent;
211247
return _context.abrupt("return", new Partner(response === null || response === void 0 ? void 0 : response.data, _this.options));
212-
case 12:
248+
case 14:
213249
case "end":
214250
return _context.stop();
215251
}
@@ -413,7 +449,10 @@ _Partner = Partner;
413449
// allow_credential_changes - boolean - Allow Partner Admins to change or reset credentials for users belonging to this Partner.
414450
// allow_providing_gpg_keys - boolean - Allow Partner Admins to provide GPG keys.
415451
// allow_user_creation - boolean - Allow Partner Admins to create users.
452+
// cc_emails_to_responsible_party - boolean - When `true`, emails sent to Partner users are copied to the responsible User or Group.
416453
// notes - string - Notes about this Partner.
454+
// responsible_group_id - int64 - ID of the Group responsible for this Partner.
455+
// responsible_user_id - int64 - ID of the User responsible for this Partner.
417456
// tags - string - Comma-separated list of Tags for this Partner. Tags are used for other features, such as UserLifecycleRules, which can target specific tags. Tags must only contain lowercase letters, numbers, and hyphens.
418457
// name (required) - string - The name of the Partner.
419458
// root_folder (required) - string - The root folder path for this Partner.
@@ -452,36 +491,48 @@ _Partner = Partner;
452491
}
453492
throw new errors.InvalidParameterError("Bad parameter: notes must be of type String, received ".concat((0, _utils.getType)(params.notes)));
454493
case 4:
455-
if (!(params.tags && !(0, _utils.isString)(params.tags))) {
494+
if (!(params.responsible_group_id && !(0, _utils.isInt)(params.responsible_group_id))) {
456495
_context6.next = 5;
457496
break;
458497
}
459-
throw new errors.InvalidParameterError("Bad parameter: tags must be of type String, received ".concat((0, _utils.getType)(params.tags)));
498+
throw new errors.InvalidParameterError("Bad parameter: responsible_group_id must be of type Int, received ".concat((0, _utils.getType)(params.responsible_group_id)));
460499
case 5:
461-
if (!(params.name && !(0, _utils.isString)(params.name))) {
500+
if (!(params.responsible_user_id && !(0, _utils.isInt)(params.responsible_user_id))) {
462501
_context6.next = 6;
463502
break;
464503
}
465-
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
504+
throw new errors.InvalidParameterError("Bad parameter: responsible_user_id must be of type Int, received ".concat((0, _utils.getType)(params.responsible_user_id)));
466505
case 6:
467-
if (!(params.root_folder && !(0, _utils.isString)(params.root_folder))) {
506+
if (!(params.tags && !(0, _utils.isString)(params.tags))) {
468507
_context6.next = 7;
469508
break;
470509
}
471-
throw new errors.InvalidParameterError("Bad parameter: root_folder must be of type String, received ".concat((0, _utils.getType)(params.root_folder)));
510+
throw new errors.InvalidParameterError("Bad parameter: tags must be of type String, received ".concat((0, _utils.getType)(params.tags)));
472511
case 7:
473-
if (!(params.workspace_id && !(0, _utils.isInt)(params.workspace_id))) {
512+
if (!(params.name && !(0, _utils.isString)(params.name))) {
474513
_context6.next = 8;
475514
break;
476515
}
477-
throw new errors.InvalidParameterError("Bad parameter: workspace_id must be of type Int, received ".concat((0, _utils.getType)(params.workspace_id)));
516+
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params.name)));
478517
case 8:
479-
_context6.next = 9;
480-
return _Api.default.sendRequest('/partners', 'POST', params, options);
518+
if (!(params.root_folder && !(0, _utils.isString)(params.root_folder))) {
519+
_context6.next = 9;
520+
break;
521+
}
522+
throw new errors.InvalidParameterError("Bad parameter: root_folder must be of type String, received ".concat((0, _utils.getType)(params.root_folder)));
481523
case 9:
524+
if (!(params.workspace_id && !(0, _utils.isInt)(params.workspace_id))) {
525+
_context6.next = 10;
526+
break;
527+
}
528+
throw new errors.InvalidParameterError("Bad parameter: workspace_id must be of type Int, received ".concat((0, _utils.getType)(params.workspace_id)));
529+
case 10:
530+
_context6.next = 11;
531+
return _Api.default.sendRequest('/partners', 'POST', params, options);
532+
case 11:
482533
response = _context6.sent;
483534
return _context6.abrupt("return", new _Partner(response === null || response === void 0 ? void 0 : response.data, options));
484-
case 10:
535+
case 12:
485536
case "end":
486537
return _context6.stop();
487538
}

0 commit comments

Comments
 (0)