files.com 1.0.452 → 1.0.454
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/Errors.md +2 -0
- package/docs/models/AutomationRun.md +0 -2
- package/docs/models/BundleNotification.md +2 -4
- package/docs/models/BundleRecipient.md +0 -5
- package/docs/models/BundleRegistration.md +0 -2
- package/lib/Errors.js +108 -82
- package/lib/Files.js +1 -1
- package/lib/models/AutomationRun.js +9 -16
- package/lib/models/BundleNotification.js +12 -19
- package/lib/models/BundleRecipient.js +22 -43
- package/lib/models/BundleRegistration.js +9 -16
- package/package.json +1 -1
- package/src/Errors.js +2 -0
- package/src/Files.js +1 -1
- package/src/models/AutomationRun.js +0 -5
- package/src/models/BundleNotification.js +5 -10
- package/src/models/BundleRecipient.js +0 -17
- package/src/models/BundleRegistration.js +0 -5
package/_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.454
|
package/docs/Errors.md
CHANGED
@@ -180,6 +180,8 @@ These errors are derived from the error groups listed above.
|
|
180
180
|
### ProcessingFailure_ResourceLockedError
|
181
181
|
### ProcessingFailure_SubfolderLockedError
|
182
182
|
### ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError
|
183
|
+
### ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError
|
184
|
+
### ProcessingFailure_TwoFactorAuthenticationGeneralErrorError
|
183
185
|
### ProcessingFailure_UpdatesNotAllowedForRemotesError
|
184
186
|
### RateLimited_DuplicateShareRecipientError
|
185
187
|
### RateLimited_ReauthenticationRateLimitedError
|
@@ -26,7 +26,6 @@
|
|
26
26
|
|
27
27
|
```
|
28
28
|
await AutomationRun.list({
|
29
|
-
'user_id': 1,
|
30
29
|
'per_page': 1,
|
31
30
|
'automation_id': 1,
|
32
31
|
})
|
@@ -35,7 +34,6 @@ await AutomationRun.list({
|
|
35
34
|
|
36
35
|
### Parameters
|
37
36
|
|
38
|
-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
39
37
|
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
40
38
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
41
39
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.
|
@@ -24,7 +24,6 @@
|
|
24
24
|
|
25
25
|
```
|
26
26
|
await BundleNotification.list({
|
27
|
-
'user_id': 1,
|
28
27
|
'per_page': 1,
|
29
28
|
})
|
30
29
|
```
|
@@ -32,7 +31,6 @@ await BundleNotification.list({
|
|
32
31
|
|
33
32
|
### Parameters
|
34
33
|
|
35
|
-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
36
34
|
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
37
35
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
38
36
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_id]=desc`). Valid fields are `bundle_id`.
|
@@ -57,20 +55,20 @@ await BundleNotification.find(id)
|
|
57
55
|
|
58
56
|
```
|
59
57
|
await BundleNotification.create({
|
60
|
-
'user_id': 1,
|
61
58
|
'notify_on_registration': true,
|
62
59
|
'notify_on_upload': true,
|
63
60
|
'bundle_id': 1,
|
61
|
+
'user_id': 1,
|
64
62
|
})
|
65
63
|
```
|
66
64
|
|
67
65
|
|
68
66
|
### Parameters
|
69
67
|
|
70
|
-
* `user_id` (int64): The id of the user to notify.
|
71
68
|
* `notify_on_registration` (boolean): Triggers bundle notification when a registration action occurs for it.
|
72
69
|
* `notify_on_upload` (boolean): Triggers bundle notification when a upload action occurs for it.
|
73
70
|
* `bundle_id` (int64): Required - Bundle ID to notify on
|
71
|
+
* `user_id` (int64): The id of the user to notify.
|
74
72
|
|
75
73
|
---
|
76
74
|
|
@@ -17,7 +17,6 @@
|
|
17
17
|
* `note` (string): A note sent to the recipient with the bundle.
|
18
18
|
* `recipient` (string): The recipient's email address.
|
19
19
|
* `sent_at` (date-time): When the Bundle was shared with this recipient.
|
20
|
-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
21
20
|
* `bundle_id` (int64): Bundle to share.
|
22
21
|
* `share_after_create` (boolean): Set to true to share the link with the recipient upon creation.
|
23
22
|
|
@@ -27,7 +26,6 @@
|
|
27
26
|
|
28
27
|
```
|
29
28
|
await BundleRecipient.list({
|
30
|
-
'user_id': 1,
|
31
29
|
'per_page': 1,
|
32
30
|
'bundle_id': 1,
|
33
31
|
})
|
@@ -36,7 +34,6 @@ await BundleRecipient.list({
|
|
36
34
|
|
37
35
|
### Parameters
|
38
36
|
|
39
|
-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
40
37
|
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
41
38
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
42
39
|
* `sort_by` (object): If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[has_registrations]=desc`). Valid fields are `has_registrations`.
|
@@ -49,7 +46,6 @@ await BundleRecipient.list({
|
|
49
46
|
|
50
47
|
```
|
51
48
|
await BundleRecipient.create({
|
52
|
-
'user_id': 1,
|
53
49
|
'bundle_id': 1,
|
54
50
|
'recipient': "johndoe@gmail.com",
|
55
51
|
'name': "John Smith",
|
@@ -62,7 +58,6 @@ await BundleRecipient.create({
|
|
62
58
|
|
63
59
|
### Parameters
|
64
60
|
|
65
|
-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
66
61
|
* `bundle_id` (int64): Required - Bundle to share.
|
67
62
|
* `recipient` (string): Required - Email addresses to share this bundle with.
|
68
63
|
* `name` (string): Name of recipient.
|
@@ -42,7 +42,6 @@
|
|
42
42
|
|
43
43
|
```
|
44
44
|
await BundleRegistration.list({
|
45
|
-
'user_id': 1,
|
46
45
|
'per_page': 1,
|
47
46
|
'bundle_id': 1,
|
48
47
|
})
|
@@ -51,7 +50,6 @@ await BundleRegistration.list({
|
|
51
50
|
|
52
51
|
### Parameters
|
53
52
|
|
54
|
-
* `user_id` (int64): User ID. Provide a value of `0` to operate the current session's user.
|
55
53
|
* `cursor` (string): Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
56
54
|
* `per_page` (int64): Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
57
55
|
* `bundle_id` (int64): ID of the associated Bundle
|
package/lib/Errors.js
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
4
4
|
exports.__esModule = true;
|
5
5
|
exports.NotFound_CodeNotFoundError = exports.NotFound_BundleRegistrationNotFoundError = exports.NotFound_BundlePathNotFoundError = exports.NotFound_ApiKeyNotFoundError = exports.NotFoundError = exports.NotAuthorized_ZipDownloadIpMismatchError = exports.NotAuthorized_WritePermissionRequiredError = exports.NotAuthorized_WriteAndBundlePermissionRequiredError = exports.NotAuthorized_UserIdWithoutSiteAdminError = exports.NotAuthorized_TwoFactorAuthenticationRequiredError = exports.NotAuthorized_SiteFilesAreImmutableError = exports.NotAuthorized_SiteAdminRequiredError = exports.NotAuthorized_SelfManagedRequiredError = exports.NotAuthorized_ReauthenticationNeededActionError = exports.NotAuthorized_ReauthenticationFailedFinalError = exports.NotAuthorized_ReauthenticationFailedError = exports.NotAuthorized_ReadPermissionRequiredError = exports.NotAuthorized_ReadOnlySessionError = exports.NotAuthorized_PasswordChangeRequiredError = exports.NotAuthorized_PasswordChangeNotRequiredError = exports.NotAuthorized_NotAllowedToCreateBundleError = exports.NotAuthorized_NonAdminsMustQueryByFolderOrPathError = exports.NotAuthorized_NeedAdminPermissionForInboxError = exports.NotAuthorized_MustAuthenticateWithApiKeyError = exports.NotAuthorized_InsufficientPermissionForParamsError = exports.NotAuthorized_HistoryPermissionRequiredError = exports.NotAuthorized_FullPermissionRequiredError = exports.NotAuthorized_FolderAdminPermissionRequiredError = exports.NotAuthorized_FolderAdminOrBillingPermissionRequiredError = exports.NotAuthorized_ContactAdminForPasswordChangeHelpError = exports.NotAuthorized_CantActForOtherUserError = exports.NotAuthorized_CannotLoginWhileUsingKeyError = exports.NotAuthorized_BundleMaximumUsesReachedError = exports.NotAuthorized_BillingPermissionRequiredError = exports.NotAuthorized_ApiKeyOnlyForOfficeIntegrationError = exports.NotAuthorized_ApiKeyOnlyForMobileAppError = exports.NotAuthorized_ApiKeyOnlyForDesktopAppError = exports.NotAuthorized_ApiKeyIsPathRestrictedError = exports.NotAuthorized_ApiKeyIsDisabledError = exports.NotAuthorizedError = exports.NotAuthenticated_TwoFactorAuthenticationSetupExpiredError = exports.NotAuthenticated_TwoFactorAuthenticationErrorError = exports.NotAuthenticated_OneTimePasswordIncorrectError = exports.NotAuthenticated_LockoutRegionMismatchError = exports.NotAuthenticated_LockedOutError = exports.NotAuthenticated_InvalidUsernameOrPasswordError = exports.NotAuthenticated_InvalidOrExpiredCodeError = exports.NotAuthenticated_InvalidOauthError = exports.NotAuthenticated_InvalidCredentialsError = exports.NotAuthenticated_InboxRegistrationCodeFailedError = exports.NotAuthenticated_FilesAgentTokenFailedError = exports.NotAuthenticated_BundleRegistrationCodeFailedError = exports.NotAuthenticated_AuthenticationRequiredError = exports.NotAuthenticatedError = exports.MissingParameterError = exports.InvalidParameterError = exports.FilesError = exports.FilesApiError = exports.EmptyPropertyError = exports.ConfigurationError = exports.BadRequest_UserRequiredError = exports.BadRequest_UserIdOnUserEndpointError = exports.BadRequest_UserIdInvalidError = exports.BadRequest_UnsupportedMediaTypeError = exports.BadRequest_UnsupportedHttpResponseFormatError = exports.BadRequest_UnsupportedCurrencyError = exports.BadRequest_SearchAllOnChildPathError = exports.BadRequest_RequestParamsRequiredError = exports.BadRequest_RequestParamsInvalidError = exports.BadRequest_RequestParamsContainInvalidCharacterError = exports.BadRequest_RequestParamPathCannotHaveTrailingWhitespaceError = exports.BadRequest_ReauthenticationNeededFieldsError = exports.BadRequest_PartNumberTooLargeError = exports.BadRequest_OperationOnNonScimResourceError = exports.BadRequest_NoValidInputParamsError = exports.BadRequest_MethodNotAllowedError = exports.BadRequest_InvalidUploadPartSizeError = exports.BadRequest_InvalidUploadPartGapError = exports.BadRequest_InvalidUploadOffsetError = exports.BadRequest_InvalidReturnToUrlError = exports.BadRequest_InvalidPathError = exports.BadRequest_InvalidOauthProviderError = exports.BadRequest_InvalidInterfaceError = exports.BadRequest_InvalidInputEncodingError = exports.BadRequest_InvalidFilterParamError = exports.BadRequest_InvalidFilterFieldError = exports.BadRequest_InvalidFilterCombinationError = exports.BadRequest_InvalidFilterAliasCombinationError = exports.BadRequest_InvalidEtagsError = exports.BadRequest_InvalidCursorTypeForSortError = exports.BadRequest_InvalidCursorError = exports.BadRequest_InvalidBodyError = exports.BadRequest_FolderMustNotBeAFileError = exports.BadRequest_DestinationSameError = exports.BadRequest_DatetimeParseError = exports.BadRequest_CantMoveWithMultipleLocationsError = exports.BadRequest_CannotDownloadDirectoryError = exports.BadRequest_AttachmentTooLargeError = exports.BadRequest_AgentUpgradeRequiredError = exports.BadRequestError = void 0;
|
6
|
-
exports.handleErrorResponse = exports.SiteConfiguration_UserRequestsEnabledRequiredError = exports.SiteConfiguration_TrialLockedError = exports.SiteConfiguration_TrialExpiredError = exports.SiteConfiguration_SiteWasRemovedError = exports.SiteConfiguration_NoAccountForSiteError = exports.SiteConfiguration_AccountOverdueError = exports.SiteConfiguration_AccountAlreadyExistsError = exports.SiteConfigurationError = exports.ServiceUnavailable_UploadsUnavailableError = exports.ServiceUnavailable_AutomationsUnavailableError = exports.ServiceUnavailableError = exports.RateLimited_TooManySharesError = exports.RateLimited_TooManyRequestsError = exports.RateLimited_TooManyLoginAttemptsError = exports.RateLimited_TooManyConcurrentRequestsError = exports.RateLimited_ReauthenticationRateLimitedError = exports.RateLimited_DuplicateShareRecipientError = exports.RateLimitedError = exports.ProcessingFailure_UpdatesNotAllowedForRemotesError = exports.ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError = exports.ProcessingFailure_SubfolderLockedError = exports.ProcessingFailure_ResourceLockedError = exports.ProcessingFailure_RemoteServerErrorError = exports.ProcessingFailure_RecipientAlreadySharedError = exports.ProcessingFailure_PathTooLongError = exports.ProcessingFailure_MultipleProcessingErrorsError = exports.ProcessingFailure_ModelSaveErrorError = exports.ProcessingFailure_InvalidRangeError = exports.ProcessingFailure_InvalidFilenameError = exports.ProcessingFailure_InvalidFileTypeError = exports.ProcessingFailure_InvalidBundleCodeError = exports.ProcessingFailure_HistoryUnavailableError = exports.ProcessingFailure_FolderNotEmptyError = exports.ProcessingFailure_FolderLockedError = exports.ProcessingFailure_FileUploadedToWrongRegionError = exports.ProcessingFailure_FileTooBigToEncryptError = exports.ProcessingFailure_FileTooBigToDecryptError = exports.ProcessingFailure_FilePendingProcessingError = exports.ProcessingFailure_FileNotUploadedError = exports.ProcessingFailure_FileLockedError = exports.ProcessingFailure_FailedToChangePasswordError = exports.ProcessingFailure_ExportNotReadyError = exports.ProcessingFailure_ExportFailureError = exports.ProcessingFailure_ExpiredPublicKeyError = exports.ProcessingFailure_ExpiredPrivateKeyError = exports.ProcessingFailure_DestinationParentDoesNotExistError = exports.ProcessingFailure_DestinationParentConflictError = exports.ProcessingFailure_DestinationFolderLimitedError = exports.ProcessingFailure_DestinationExistsError = exports.ProcessingFailure_CouldNotCreateParentError = exports.ProcessingFailure_BundleOperationRequiresSubfolderError = exports.ProcessingFailure_BundleOnlyAllowsPreviewsError = exports.ProcessingFailure_AutomationCannotBeRunManuallyError = exports.ProcessingFailureError = exports.NotImplementedError = exports.NotFound_UserNotFoundError = exports.NotFound_SiteNotFoundError = exports.NotFound_PlanNotFoundError = exports.NotFound_NestedNotFoundError = exports.NotFound_InboxNotFoundError = exports.NotFound_GroupNotFoundError = exports.NotFound_FolderNotFoundError = exports.NotFound_FileUploadNotFoundError = exports.NotFound_FileNotFoundError = void 0;
|
6
|
+
exports.handleErrorResponse = exports.SiteConfiguration_UserRequestsEnabledRequiredError = exports.SiteConfiguration_TrialLockedError = exports.SiteConfiguration_TrialExpiredError = exports.SiteConfiguration_SiteWasRemovedError = exports.SiteConfiguration_NoAccountForSiteError = exports.SiteConfiguration_AccountOverdueError = exports.SiteConfiguration_AccountAlreadyExistsError = exports.SiteConfigurationError = exports.ServiceUnavailable_UploadsUnavailableError = exports.ServiceUnavailable_AutomationsUnavailableError = exports.ServiceUnavailableError = exports.RateLimited_TooManySharesError = exports.RateLimited_TooManyRequestsError = exports.RateLimited_TooManyLoginAttemptsError = exports.RateLimited_TooManyConcurrentRequestsError = exports.RateLimited_ReauthenticationRateLimitedError = exports.RateLimited_DuplicateShareRecipientError = exports.RateLimitedError = exports.ProcessingFailure_UpdatesNotAllowedForRemotesError = exports.ProcessingFailure_TwoFactorAuthenticationGeneralErrorError = exports.ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError = exports.ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError = exports.ProcessingFailure_SubfolderLockedError = exports.ProcessingFailure_ResourceLockedError = exports.ProcessingFailure_RemoteServerErrorError = exports.ProcessingFailure_RecipientAlreadySharedError = exports.ProcessingFailure_PathTooLongError = exports.ProcessingFailure_MultipleProcessingErrorsError = exports.ProcessingFailure_ModelSaveErrorError = exports.ProcessingFailure_InvalidRangeError = exports.ProcessingFailure_InvalidFilenameError = exports.ProcessingFailure_InvalidFileTypeError = exports.ProcessingFailure_InvalidBundleCodeError = exports.ProcessingFailure_HistoryUnavailableError = exports.ProcessingFailure_FolderNotEmptyError = exports.ProcessingFailure_FolderLockedError = exports.ProcessingFailure_FileUploadedToWrongRegionError = exports.ProcessingFailure_FileTooBigToEncryptError = exports.ProcessingFailure_FileTooBigToDecryptError = exports.ProcessingFailure_FilePendingProcessingError = exports.ProcessingFailure_FileNotUploadedError = exports.ProcessingFailure_FileLockedError = exports.ProcessingFailure_FailedToChangePasswordError = exports.ProcessingFailure_ExportNotReadyError = exports.ProcessingFailure_ExportFailureError = exports.ProcessingFailure_ExpiredPublicKeyError = exports.ProcessingFailure_ExpiredPrivateKeyError = exports.ProcessingFailure_DestinationParentDoesNotExistError = exports.ProcessingFailure_DestinationParentConflictError = exports.ProcessingFailure_DestinationFolderLimitedError = exports.ProcessingFailure_DestinationExistsError = exports.ProcessingFailure_CouldNotCreateParentError = exports.ProcessingFailure_BundleOperationRequiresSubfolderError = exports.ProcessingFailure_BundleOnlyAllowsPreviewsError = exports.ProcessingFailure_AutomationCannotBeRunManuallyError = exports.ProcessingFailureError = exports.NotImplementedError = exports.NotFound_UserNotFoundError = exports.NotFound_SiteNotFoundError = exports.NotFound_PlanNotFoundError = exports.NotFound_NestedNotFoundError = exports.NotFound_InboxNotFoundError = exports.NotFound_GroupNotFoundError = exports.NotFound_FolderNotFoundError = exports.NotFound_FileUploadNotFoundError = exports.NotFound_FileNotFoundError = void 0;
|
7
7
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
8
8
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
9
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
@@ -1989,210 +1989,236 @@ var ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError = exports.Proc
|
|
1989
1989
|
return (0, _createClass2.default)(ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError);
|
1990
1990
|
}(ProcessingFailureError);
|
1991
1991
|
errorClasses.ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError = ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError;
|
1992
|
-
var
|
1993
|
-
(0, _inherits2.default)(
|
1994
|
-
var _super149 = _createSuper(
|
1995
|
-
function
|
1992
|
+
var ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError = exports.ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError = /*#__PURE__*/function (_ProcessingFailureErr35) {
|
1993
|
+
(0, _inherits2.default)(ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError, _ProcessingFailureErr35);
|
1994
|
+
var _super149 = _createSuper(ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError);
|
1995
|
+
function ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError(message, code) {
|
1996
1996
|
var _this149;
|
1997
|
-
(0, _classCallCheck2.default)(this,
|
1997
|
+
(0, _classCallCheck2.default)(this, ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError);
|
1998
1998
|
_this149 = _super149.call(this, message, code);
|
1999
|
-
_this149.name = '
|
1999
|
+
_this149.name = 'ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError';
|
2000
2000
|
return _this149;
|
2001
2001
|
}
|
2002
|
+
return (0, _createClass2.default)(ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError);
|
2003
|
+
}(ProcessingFailureError);
|
2004
|
+
errorClasses.ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError = ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError;
|
2005
|
+
var ProcessingFailure_TwoFactorAuthenticationGeneralErrorError = exports.ProcessingFailure_TwoFactorAuthenticationGeneralErrorError = /*#__PURE__*/function (_ProcessingFailureErr36) {
|
2006
|
+
(0, _inherits2.default)(ProcessingFailure_TwoFactorAuthenticationGeneralErrorError, _ProcessingFailureErr36);
|
2007
|
+
var _super150 = _createSuper(ProcessingFailure_TwoFactorAuthenticationGeneralErrorError);
|
2008
|
+
function ProcessingFailure_TwoFactorAuthenticationGeneralErrorError(message, code) {
|
2009
|
+
var _this150;
|
2010
|
+
(0, _classCallCheck2.default)(this, ProcessingFailure_TwoFactorAuthenticationGeneralErrorError);
|
2011
|
+
_this150 = _super150.call(this, message, code);
|
2012
|
+
_this150.name = 'ProcessingFailure_TwoFactorAuthenticationGeneralErrorError';
|
2013
|
+
return _this150;
|
2014
|
+
}
|
2015
|
+
return (0, _createClass2.default)(ProcessingFailure_TwoFactorAuthenticationGeneralErrorError);
|
2016
|
+
}(ProcessingFailureError);
|
2017
|
+
errorClasses.ProcessingFailure_TwoFactorAuthenticationGeneralErrorError = ProcessingFailure_TwoFactorAuthenticationGeneralErrorError;
|
2018
|
+
var ProcessingFailure_UpdatesNotAllowedForRemotesError = exports.ProcessingFailure_UpdatesNotAllowedForRemotesError = /*#__PURE__*/function (_ProcessingFailureErr37) {
|
2019
|
+
(0, _inherits2.default)(ProcessingFailure_UpdatesNotAllowedForRemotesError, _ProcessingFailureErr37);
|
2020
|
+
var _super151 = _createSuper(ProcessingFailure_UpdatesNotAllowedForRemotesError);
|
2021
|
+
function ProcessingFailure_UpdatesNotAllowedForRemotesError(message, code) {
|
2022
|
+
var _this151;
|
2023
|
+
(0, _classCallCheck2.default)(this, ProcessingFailure_UpdatesNotAllowedForRemotesError);
|
2024
|
+
_this151 = _super151.call(this, message, code);
|
2025
|
+
_this151.name = 'ProcessingFailure_UpdatesNotAllowedForRemotesError';
|
2026
|
+
return _this151;
|
2027
|
+
}
|
2002
2028
|
return (0, _createClass2.default)(ProcessingFailure_UpdatesNotAllowedForRemotesError);
|
2003
2029
|
}(ProcessingFailureError);
|
2004
2030
|
errorClasses.ProcessingFailure_UpdatesNotAllowedForRemotesError = ProcessingFailure_UpdatesNotAllowedForRemotesError;
|
2005
2031
|
var RateLimited_DuplicateShareRecipientError = exports.RateLimited_DuplicateShareRecipientError = /*#__PURE__*/function (_RateLimitedError) {
|
2006
2032
|
(0, _inherits2.default)(RateLimited_DuplicateShareRecipientError, _RateLimitedError);
|
2007
|
-
var
|
2033
|
+
var _super152 = _createSuper(RateLimited_DuplicateShareRecipientError);
|
2008
2034
|
function RateLimited_DuplicateShareRecipientError(message, code) {
|
2009
|
-
var
|
2035
|
+
var _this152;
|
2010
2036
|
(0, _classCallCheck2.default)(this, RateLimited_DuplicateShareRecipientError);
|
2011
|
-
|
2012
|
-
|
2013
|
-
return
|
2037
|
+
_this152 = _super152.call(this, message, code);
|
2038
|
+
_this152.name = 'RateLimited_DuplicateShareRecipientError';
|
2039
|
+
return _this152;
|
2014
2040
|
}
|
2015
2041
|
return (0, _createClass2.default)(RateLimited_DuplicateShareRecipientError);
|
2016
2042
|
}(RateLimitedError);
|
2017
2043
|
errorClasses.RateLimited_DuplicateShareRecipientError = RateLimited_DuplicateShareRecipientError;
|
2018
2044
|
var RateLimited_ReauthenticationRateLimitedError = exports.RateLimited_ReauthenticationRateLimitedError = /*#__PURE__*/function (_RateLimitedError2) {
|
2019
2045
|
(0, _inherits2.default)(RateLimited_ReauthenticationRateLimitedError, _RateLimitedError2);
|
2020
|
-
var
|
2046
|
+
var _super153 = _createSuper(RateLimited_ReauthenticationRateLimitedError);
|
2021
2047
|
function RateLimited_ReauthenticationRateLimitedError(message, code) {
|
2022
|
-
var
|
2048
|
+
var _this153;
|
2023
2049
|
(0, _classCallCheck2.default)(this, RateLimited_ReauthenticationRateLimitedError);
|
2024
|
-
|
2025
|
-
|
2026
|
-
return
|
2050
|
+
_this153 = _super153.call(this, message, code);
|
2051
|
+
_this153.name = 'RateLimited_ReauthenticationRateLimitedError';
|
2052
|
+
return _this153;
|
2027
2053
|
}
|
2028
2054
|
return (0, _createClass2.default)(RateLimited_ReauthenticationRateLimitedError);
|
2029
2055
|
}(RateLimitedError);
|
2030
2056
|
errorClasses.RateLimited_ReauthenticationRateLimitedError = RateLimited_ReauthenticationRateLimitedError;
|
2031
2057
|
var RateLimited_TooManyConcurrentRequestsError = exports.RateLimited_TooManyConcurrentRequestsError = /*#__PURE__*/function (_RateLimitedError3) {
|
2032
2058
|
(0, _inherits2.default)(RateLimited_TooManyConcurrentRequestsError, _RateLimitedError3);
|
2033
|
-
var
|
2059
|
+
var _super154 = _createSuper(RateLimited_TooManyConcurrentRequestsError);
|
2034
2060
|
function RateLimited_TooManyConcurrentRequestsError(message, code) {
|
2035
|
-
var
|
2061
|
+
var _this154;
|
2036
2062
|
(0, _classCallCheck2.default)(this, RateLimited_TooManyConcurrentRequestsError);
|
2037
|
-
|
2038
|
-
|
2039
|
-
return
|
2063
|
+
_this154 = _super154.call(this, message, code);
|
2064
|
+
_this154.name = 'RateLimited_TooManyConcurrentRequestsError';
|
2065
|
+
return _this154;
|
2040
2066
|
}
|
2041
2067
|
return (0, _createClass2.default)(RateLimited_TooManyConcurrentRequestsError);
|
2042
2068
|
}(RateLimitedError);
|
2043
2069
|
errorClasses.RateLimited_TooManyConcurrentRequestsError = RateLimited_TooManyConcurrentRequestsError;
|
2044
2070
|
var RateLimited_TooManyLoginAttemptsError = exports.RateLimited_TooManyLoginAttemptsError = /*#__PURE__*/function (_RateLimitedError4) {
|
2045
2071
|
(0, _inherits2.default)(RateLimited_TooManyLoginAttemptsError, _RateLimitedError4);
|
2046
|
-
var
|
2072
|
+
var _super155 = _createSuper(RateLimited_TooManyLoginAttemptsError);
|
2047
2073
|
function RateLimited_TooManyLoginAttemptsError(message, code) {
|
2048
|
-
var
|
2074
|
+
var _this155;
|
2049
2075
|
(0, _classCallCheck2.default)(this, RateLimited_TooManyLoginAttemptsError);
|
2050
|
-
|
2051
|
-
|
2052
|
-
return
|
2076
|
+
_this155 = _super155.call(this, message, code);
|
2077
|
+
_this155.name = 'RateLimited_TooManyLoginAttemptsError';
|
2078
|
+
return _this155;
|
2053
2079
|
}
|
2054
2080
|
return (0, _createClass2.default)(RateLimited_TooManyLoginAttemptsError);
|
2055
2081
|
}(RateLimitedError);
|
2056
2082
|
errorClasses.RateLimited_TooManyLoginAttemptsError = RateLimited_TooManyLoginAttemptsError;
|
2057
2083
|
var RateLimited_TooManyRequestsError = exports.RateLimited_TooManyRequestsError = /*#__PURE__*/function (_RateLimitedError5) {
|
2058
2084
|
(0, _inherits2.default)(RateLimited_TooManyRequestsError, _RateLimitedError5);
|
2059
|
-
var
|
2085
|
+
var _super156 = _createSuper(RateLimited_TooManyRequestsError);
|
2060
2086
|
function RateLimited_TooManyRequestsError(message, code) {
|
2061
|
-
var
|
2087
|
+
var _this156;
|
2062
2088
|
(0, _classCallCheck2.default)(this, RateLimited_TooManyRequestsError);
|
2063
|
-
|
2064
|
-
|
2065
|
-
return
|
2089
|
+
_this156 = _super156.call(this, message, code);
|
2090
|
+
_this156.name = 'RateLimited_TooManyRequestsError';
|
2091
|
+
return _this156;
|
2066
2092
|
}
|
2067
2093
|
return (0, _createClass2.default)(RateLimited_TooManyRequestsError);
|
2068
2094
|
}(RateLimitedError);
|
2069
2095
|
errorClasses.RateLimited_TooManyRequestsError = RateLimited_TooManyRequestsError;
|
2070
2096
|
var RateLimited_TooManySharesError = exports.RateLimited_TooManySharesError = /*#__PURE__*/function (_RateLimitedError6) {
|
2071
2097
|
(0, _inherits2.default)(RateLimited_TooManySharesError, _RateLimitedError6);
|
2072
|
-
var
|
2098
|
+
var _super157 = _createSuper(RateLimited_TooManySharesError);
|
2073
2099
|
function RateLimited_TooManySharesError(message, code) {
|
2074
|
-
var
|
2100
|
+
var _this157;
|
2075
2101
|
(0, _classCallCheck2.default)(this, RateLimited_TooManySharesError);
|
2076
|
-
|
2077
|
-
|
2078
|
-
return
|
2102
|
+
_this157 = _super157.call(this, message, code);
|
2103
|
+
_this157.name = 'RateLimited_TooManySharesError';
|
2104
|
+
return _this157;
|
2079
2105
|
}
|
2080
2106
|
return (0, _createClass2.default)(RateLimited_TooManySharesError);
|
2081
2107
|
}(RateLimitedError);
|
2082
2108
|
errorClasses.RateLimited_TooManySharesError = RateLimited_TooManySharesError;
|
2083
2109
|
var ServiceUnavailable_AutomationsUnavailableError = exports.ServiceUnavailable_AutomationsUnavailableError = /*#__PURE__*/function (_ServiceUnavailableEr) {
|
2084
2110
|
(0, _inherits2.default)(ServiceUnavailable_AutomationsUnavailableError, _ServiceUnavailableEr);
|
2085
|
-
var
|
2111
|
+
var _super158 = _createSuper(ServiceUnavailable_AutomationsUnavailableError);
|
2086
2112
|
function ServiceUnavailable_AutomationsUnavailableError(message, code) {
|
2087
|
-
var
|
2113
|
+
var _this158;
|
2088
2114
|
(0, _classCallCheck2.default)(this, ServiceUnavailable_AutomationsUnavailableError);
|
2089
|
-
|
2090
|
-
|
2091
|
-
return
|
2115
|
+
_this158 = _super158.call(this, message, code);
|
2116
|
+
_this158.name = 'ServiceUnavailable_AutomationsUnavailableError';
|
2117
|
+
return _this158;
|
2092
2118
|
}
|
2093
2119
|
return (0, _createClass2.default)(ServiceUnavailable_AutomationsUnavailableError);
|
2094
2120
|
}(ServiceUnavailableError);
|
2095
2121
|
errorClasses.ServiceUnavailable_AutomationsUnavailableError = ServiceUnavailable_AutomationsUnavailableError;
|
2096
2122
|
var ServiceUnavailable_UploadsUnavailableError = exports.ServiceUnavailable_UploadsUnavailableError = /*#__PURE__*/function (_ServiceUnavailableEr2) {
|
2097
2123
|
(0, _inherits2.default)(ServiceUnavailable_UploadsUnavailableError, _ServiceUnavailableEr2);
|
2098
|
-
var
|
2124
|
+
var _super159 = _createSuper(ServiceUnavailable_UploadsUnavailableError);
|
2099
2125
|
function ServiceUnavailable_UploadsUnavailableError(message, code) {
|
2100
|
-
var
|
2126
|
+
var _this159;
|
2101
2127
|
(0, _classCallCheck2.default)(this, ServiceUnavailable_UploadsUnavailableError);
|
2102
|
-
|
2103
|
-
|
2104
|
-
return
|
2128
|
+
_this159 = _super159.call(this, message, code);
|
2129
|
+
_this159.name = 'ServiceUnavailable_UploadsUnavailableError';
|
2130
|
+
return _this159;
|
2105
2131
|
}
|
2106
2132
|
return (0, _createClass2.default)(ServiceUnavailable_UploadsUnavailableError);
|
2107
2133
|
}(ServiceUnavailableError);
|
2108
2134
|
errorClasses.ServiceUnavailable_UploadsUnavailableError = ServiceUnavailable_UploadsUnavailableError;
|
2109
2135
|
var SiteConfiguration_AccountAlreadyExistsError = exports.SiteConfiguration_AccountAlreadyExistsError = /*#__PURE__*/function (_SiteConfigurationErr) {
|
2110
2136
|
(0, _inherits2.default)(SiteConfiguration_AccountAlreadyExistsError, _SiteConfigurationErr);
|
2111
|
-
var
|
2137
|
+
var _super160 = _createSuper(SiteConfiguration_AccountAlreadyExistsError);
|
2112
2138
|
function SiteConfiguration_AccountAlreadyExistsError(message, code) {
|
2113
|
-
var
|
2139
|
+
var _this160;
|
2114
2140
|
(0, _classCallCheck2.default)(this, SiteConfiguration_AccountAlreadyExistsError);
|
2115
|
-
|
2116
|
-
|
2117
|
-
return
|
2141
|
+
_this160 = _super160.call(this, message, code);
|
2142
|
+
_this160.name = 'SiteConfiguration_AccountAlreadyExistsError';
|
2143
|
+
return _this160;
|
2118
2144
|
}
|
2119
2145
|
return (0, _createClass2.default)(SiteConfiguration_AccountAlreadyExistsError);
|
2120
2146
|
}(SiteConfigurationError);
|
2121
2147
|
errorClasses.SiteConfiguration_AccountAlreadyExistsError = SiteConfiguration_AccountAlreadyExistsError;
|
2122
2148
|
var SiteConfiguration_AccountOverdueError = exports.SiteConfiguration_AccountOverdueError = /*#__PURE__*/function (_SiteConfigurationErr2) {
|
2123
2149
|
(0, _inherits2.default)(SiteConfiguration_AccountOverdueError, _SiteConfigurationErr2);
|
2124
|
-
var
|
2150
|
+
var _super161 = _createSuper(SiteConfiguration_AccountOverdueError);
|
2125
2151
|
function SiteConfiguration_AccountOverdueError(message, code) {
|
2126
|
-
var
|
2152
|
+
var _this161;
|
2127
2153
|
(0, _classCallCheck2.default)(this, SiteConfiguration_AccountOverdueError);
|
2128
|
-
|
2129
|
-
|
2130
|
-
return
|
2154
|
+
_this161 = _super161.call(this, message, code);
|
2155
|
+
_this161.name = 'SiteConfiguration_AccountOverdueError';
|
2156
|
+
return _this161;
|
2131
2157
|
}
|
2132
2158
|
return (0, _createClass2.default)(SiteConfiguration_AccountOverdueError);
|
2133
2159
|
}(SiteConfigurationError);
|
2134
2160
|
errorClasses.SiteConfiguration_AccountOverdueError = SiteConfiguration_AccountOverdueError;
|
2135
2161
|
var SiteConfiguration_NoAccountForSiteError = exports.SiteConfiguration_NoAccountForSiteError = /*#__PURE__*/function (_SiteConfigurationErr3) {
|
2136
2162
|
(0, _inherits2.default)(SiteConfiguration_NoAccountForSiteError, _SiteConfigurationErr3);
|
2137
|
-
var
|
2163
|
+
var _super162 = _createSuper(SiteConfiguration_NoAccountForSiteError);
|
2138
2164
|
function SiteConfiguration_NoAccountForSiteError(message, code) {
|
2139
|
-
var
|
2165
|
+
var _this162;
|
2140
2166
|
(0, _classCallCheck2.default)(this, SiteConfiguration_NoAccountForSiteError);
|
2141
|
-
|
2142
|
-
|
2143
|
-
return
|
2167
|
+
_this162 = _super162.call(this, message, code);
|
2168
|
+
_this162.name = 'SiteConfiguration_NoAccountForSiteError';
|
2169
|
+
return _this162;
|
2144
2170
|
}
|
2145
2171
|
return (0, _createClass2.default)(SiteConfiguration_NoAccountForSiteError);
|
2146
2172
|
}(SiteConfigurationError);
|
2147
2173
|
errorClasses.SiteConfiguration_NoAccountForSiteError = SiteConfiguration_NoAccountForSiteError;
|
2148
2174
|
var SiteConfiguration_SiteWasRemovedError = exports.SiteConfiguration_SiteWasRemovedError = /*#__PURE__*/function (_SiteConfigurationErr4) {
|
2149
2175
|
(0, _inherits2.default)(SiteConfiguration_SiteWasRemovedError, _SiteConfigurationErr4);
|
2150
|
-
var
|
2176
|
+
var _super163 = _createSuper(SiteConfiguration_SiteWasRemovedError);
|
2151
2177
|
function SiteConfiguration_SiteWasRemovedError(message, code) {
|
2152
|
-
var
|
2178
|
+
var _this163;
|
2153
2179
|
(0, _classCallCheck2.default)(this, SiteConfiguration_SiteWasRemovedError);
|
2154
|
-
|
2155
|
-
|
2156
|
-
return
|
2180
|
+
_this163 = _super163.call(this, message, code);
|
2181
|
+
_this163.name = 'SiteConfiguration_SiteWasRemovedError';
|
2182
|
+
return _this163;
|
2157
2183
|
}
|
2158
2184
|
return (0, _createClass2.default)(SiteConfiguration_SiteWasRemovedError);
|
2159
2185
|
}(SiteConfigurationError);
|
2160
2186
|
errorClasses.SiteConfiguration_SiteWasRemovedError = SiteConfiguration_SiteWasRemovedError;
|
2161
2187
|
var SiteConfiguration_TrialExpiredError = exports.SiteConfiguration_TrialExpiredError = /*#__PURE__*/function (_SiteConfigurationErr5) {
|
2162
2188
|
(0, _inherits2.default)(SiteConfiguration_TrialExpiredError, _SiteConfigurationErr5);
|
2163
|
-
var
|
2189
|
+
var _super164 = _createSuper(SiteConfiguration_TrialExpiredError);
|
2164
2190
|
function SiteConfiguration_TrialExpiredError(message, code) {
|
2165
|
-
var
|
2191
|
+
var _this164;
|
2166
2192
|
(0, _classCallCheck2.default)(this, SiteConfiguration_TrialExpiredError);
|
2167
|
-
|
2168
|
-
|
2169
|
-
return
|
2193
|
+
_this164 = _super164.call(this, message, code);
|
2194
|
+
_this164.name = 'SiteConfiguration_TrialExpiredError';
|
2195
|
+
return _this164;
|
2170
2196
|
}
|
2171
2197
|
return (0, _createClass2.default)(SiteConfiguration_TrialExpiredError);
|
2172
2198
|
}(SiteConfigurationError);
|
2173
2199
|
errorClasses.SiteConfiguration_TrialExpiredError = SiteConfiguration_TrialExpiredError;
|
2174
2200
|
var SiteConfiguration_TrialLockedError = exports.SiteConfiguration_TrialLockedError = /*#__PURE__*/function (_SiteConfigurationErr6) {
|
2175
2201
|
(0, _inherits2.default)(SiteConfiguration_TrialLockedError, _SiteConfigurationErr6);
|
2176
|
-
var
|
2202
|
+
var _super165 = _createSuper(SiteConfiguration_TrialLockedError);
|
2177
2203
|
function SiteConfiguration_TrialLockedError(message, code) {
|
2178
|
-
var
|
2204
|
+
var _this165;
|
2179
2205
|
(0, _classCallCheck2.default)(this, SiteConfiguration_TrialLockedError);
|
2180
|
-
|
2181
|
-
|
2182
|
-
return
|
2206
|
+
_this165 = _super165.call(this, message, code);
|
2207
|
+
_this165.name = 'SiteConfiguration_TrialLockedError';
|
2208
|
+
return _this165;
|
2183
2209
|
}
|
2184
2210
|
return (0, _createClass2.default)(SiteConfiguration_TrialLockedError);
|
2185
2211
|
}(SiteConfigurationError);
|
2186
2212
|
errorClasses.SiteConfiguration_TrialLockedError = SiteConfiguration_TrialLockedError;
|
2187
2213
|
var SiteConfiguration_UserRequestsEnabledRequiredError = exports.SiteConfiguration_UserRequestsEnabledRequiredError = /*#__PURE__*/function (_SiteConfigurationErr7) {
|
2188
2214
|
(0, _inherits2.default)(SiteConfiguration_UserRequestsEnabledRequiredError, _SiteConfigurationErr7);
|
2189
|
-
var
|
2215
|
+
var _super166 = _createSuper(SiteConfiguration_UserRequestsEnabledRequiredError);
|
2190
2216
|
function SiteConfiguration_UserRequestsEnabledRequiredError(message, code) {
|
2191
|
-
var
|
2217
|
+
var _this166;
|
2192
2218
|
(0, _classCallCheck2.default)(this, SiteConfiguration_UserRequestsEnabledRequiredError);
|
2193
|
-
|
2194
|
-
|
2195
|
-
return
|
2219
|
+
_this166 = _super166.call(this, message, code);
|
2220
|
+
_this166.name = 'SiteConfiguration_UserRequestsEnabledRequiredError';
|
2221
|
+
return _this166;
|
2196
2222
|
}
|
2197
2223
|
return (0, _createClass2.default)(SiteConfiguration_UserRequestsEnabledRequiredError);
|
2198
2224
|
}(SiteConfigurationError);
|
package/lib/Files.js
CHANGED
@@ -11,7 +11,7 @@ var endpointPrefix = '/api/rest/v1';
|
|
11
11
|
var apiKey;
|
12
12
|
var baseUrl = 'https://app.files.com';
|
13
13
|
var sessionId = null;
|
14
|
-
var version = '1.0.
|
14
|
+
var version = '1.0.454';
|
15
15
|
var userAgent = "Files.com JavaScript SDK v".concat(version);
|
16
16
|
var logLevel = _Logger.LogLevel.INFO;
|
17
17
|
var debugRequest = false;
|
@@ -72,7 +72,6 @@ var AutomationRun = /*#__PURE__*/(0, _createClass2.default)(function AutomationR
|
|
72
72
|
});
|
73
73
|
_class = AutomationRun;
|
74
74
|
// Parameters:
|
75
|
-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
76
75
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
77
76
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
78
77
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.
|
@@ -95,38 +94,32 @@ _class = AutomationRun;
|
|
95
94
|
}
|
96
95
|
throw new errors.MissingParameterError('Parameter missing: automation_id');
|
97
96
|
case 4:
|
98
|
-
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
|
99
|
-
_context.next = 6;
|
100
|
-
break;
|
101
|
-
}
|
102
|
-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
|
103
|
-
case 6:
|
104
97
|
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
105
|
-
_context.next =
|
98
|
+
_context.next = 6;
|
106
99
|
break;
|
107
100
|
}
|
108
101
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
|
109
|
-
case
|
102
|
+
case 6:
|
110
103
|
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
111
|
-
_context.next =
|
104
|
+
_context.next = 8;
|
112
105
|
break;
|
113
106
|
}
|
114
107
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
115
|
-
case
|
108
|
+
case 8:
|
116
109
|
if (!(params['automation_id'] && !(0, _utils.isInt)(params['automation_id']))) {
|
117
|
-
_context.next =
|
110
|
+
_context.next = 10;
|
118
111
|
break;
|
119
112
|
}
|
120
113
|
throw new errors.InvalidParameterError("Bad parameter: automation_id must be of type Int, received ".concat((0, _utils.getType)(params['automation_id'])));
|
121
|
-
case
|
122
|
-
_context.next =
|
114
|
+
case 10:
|
115
|
+
_context.next = 12;
|
123
116
|
return _Api.default.sendRequest("/automation_runs", 'GET', params, options);
|
124
|
-
case
|
117
|
+
case 12:
|
125
118
|
response = _context.sent;
|
126
119
|
return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
127
120
|
return new _class(obj, options);
|
128
121
|
})) || []);
|
129
|
-
case
|
122
|
+
case 14:
|
130
123
|
case "end":
|
131
124
|
return _context.stop();
|
132
125
|
}
|
@@ -203,7 +203,6 @@ var BundleNotification = /*#__PURE__*/(0, _createClass2.default)(function Bundle
|
|
203
203
|
});
|
204
204
|
_class = BundleNotification;
|
205
205
|
// Parameters:
|
206
|
-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
207
206
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
208
207
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
209
208
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_id]=desc`). Valid fields are `bundle_id`.
|
@@ -219,32 +218,26 @@ _class = BundleNotification;
|
|
219
218
|
case 0:
|
220
219
|
params = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : {};
|
221
220
|
options = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : {};
|
222
|
-
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
|
223
|
-
_context3.next = 4;
|
224
|
-
break;
|
225
|
-
}
|
226
|
-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
|
227
|
-
case 4:
|
228
221
|
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
229
|
-
_context3.next =
|
222
|
+
_context3.next = 4;
|
230
223
|
break;
|
231
224
|
}
|
232
225
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
|
233
|
-
case
|
226
|
+
case 4:
|
234
227
|
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
235
|
-
_context3.next =
|
228
|
+
_context3.next = 6;
|
236
229
|
break;
|
237
230
|
}
|
238
231
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
239
|
-
case
|
240
|
-
_context3.next =
|
232
|
+
case 6:
|
233
|
+
_context3.next = 8;
|
241
234
|
return _Api.default.sendRequest("/bundle_notifications", 'GET', params, options);
|
242
|
-
case
|
235
|
+
case 8:
|
243
236
|
response = _context3.sent;
|
244
237
|
return _context3.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
245
238
|
return new _class(obj, options);
|
246
239
|
})) || []);
|
247
|
-
case
|
240
|
+
case 10:
|
248
241
|
case "end":
|
249
242
|
return _context3.stop();
|
250
243
|
}
|
@@ -308,10 +301,10 @@ _class = BundleNotification;
|
|
308
301
|
return _class.find(id, params, options);
|
309
302
|
});
|
310
303
|
// Parameters:
|
311
|
-
// user_id - int64 - The id of the user to notify.
|
312
304
|
// notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
|
313
305
|
// notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
|
314
306
|
// bundle_id (required) - int64 - Bundle ID to notify on
|
307
|
+
// user_id - int64 - The id of the user to notify.
|
315
308
|
(0, _defineProperty2.default)(BundleNotification, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
316
309
|
var params,
|
317
310
|
options,
|
@@ -328,17 +321,17 @@ _class = BundleNotification;
|
|
328
321
|
}
|
329
322
|
throw new errors.MissingParameterError('Parameter missing: bundle_id');
|
330
323
|
case 4:
|
331
|
-
if (!(params['
|
324
|
+
if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
|
332
325
|
_context5.next = 6;
|
333
326
|
break;
|
334
327
|
}
|
335
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
328
|
+
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
|
336
329
|
case 6:
|
337
|
-
if (!(params['
|
330
|
+
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
|
338
331
|
_context5.next = 8;
|
339
332
|
break;
|
340
333
|
}
|
341
|
-
throw new errors.InvalidParameterError("Bad parameter:
|
334
|
+
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
|
342
335
|
case 8:
|
343
336
|
_context5.next = 10;
|
344
337
|
return _Api.default.sendRequest("/bundle_notifications", 'POST', params, options);
|
@@ -68,13 +68,6 @@ var BundleRecipient = /*#__PURE__*/(0, _createClass2.default)(function BundleRec
|
|
68
68
|
(0, _defineProperty2.default)(this, "setSentAt", function (value) {
|
69
69
|
_this.attributes.sent_at = value;
|
70
70
|
});
|
71
|
-
// int64 # User ID. Provide a value of `0` to operate the current session's user.
|
72
|
-
(0, _defineProperty2.default)(this, "getUserId", function () {
|
73
|
-
return _this.attributes.user_id;
|
74
|
-
});
|
75
|
-
(0, _defineProperty2.default)(this, "setUserId", function (value) {
|
76
|
-
_this.attributes.user_id = value;
|
77
|
-
});
|
78
71
|
// int64 # Bundle to share.
|
79
72
|
(0, _defineProperty2.default)(this, "getBundleId", function () {
|
80
73
|
return _this.attributes.bundle_id;
|
@@ -113,7 +106,6 @@ var BundleRecipient = /*#__PURE__*/(0, _createClass2.default)(function BundleRec
|
|
113
106
|
});
|
114
107
|
_class = BundleRecipient;
|
115
108
|
// Parameters:
|
116
|
-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
117
109
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
118
110
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
119
111
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[has_registrations]=desc`). Valid fields are `has_registrations`.
|
@@ -136,38 +128,32 @@ _class = BundleRecipient;
|
|
136
128
|
}
|
137
129
|
throw new errors.MissingParameterError('Parameter missing: bundle_id');
|
138
130
|
case 4:
|
139
|
-
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
|
140
|
-
_context.next = 6;
|
141
|
-
break;
|
142
|
-
}
|
143
|
-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
|
144
|
-
case 6:
|
145
131
|
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
146
|
-
_context.next =
|
132
|
+
_context.next = 6;
|
147
133
|
break;
|
148
134
|
}
|
149
135
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
|
150
|
-
case
|
136
|
+
case 6:
|
151
137
|
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
152
|
-
_context.next =
|
138
|
+
_context.next = 8;
|
153
139
|
break;
|
154
140
|
}
|
155
141
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
156
|
-
case
|
142
|
+
case 8:
|
157
143
|
if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
|
158
|
-
_context.next =
|
144
|
+
_context.next = 10;
|
159
145
|
break;
|
160
146
|
}
|
161
147
|
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
|
162
|
-
case
|
163
|
-
_context.next =
|
148
|
+
case 10:
|
149
|
+
_context.next = 12;
|
164
150
|
return _Api.default.sendRequest("/bundle_recipients", 'GET', params, options);
|
165
|
-
case
|
151
|
+
case 12:
|
166
152
|
response = _context.sent;
|
167
153
|
return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
168
154
|
return new _class(obj, options);
|
169
155
|
})) || []);
|
170
|
-
case
|
156
|
+
case 14:
|
171
157
|
case "end":
|
172
158
|
return _context.stop();
|
173
159
|
}
|
@@ -179,7 +165,6 @@ _class = BundleRecipient;
|
|
179
165
|
return _class.list(params, options);
|
180
166
|
});
|
181
167
|
// Parameters:
|
182
|
-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
183
168
|
// bundle_id (required) - int64 - Bundle to share.
|
184
169
|
// recipient (required) - string - Email addresses to share this bundle with.
|
185
170
|
// name - string - Name of recipient.
|
@@ -208,48 +193,42 @@ _class = BundleRecipient;
|
|
208
193
|
}
|
209
194
|
throw new errors.MissingParameterError('Parameter missing: recipient');
|
210
195
|
case 6:
|
211
|
-
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
|
212
|
-
_context2.next = 8;
|
213
|
-
break;
|
214
|
-
}
|
215
|
-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
|
216
|
-
case 8:
|
217
196
|
if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
|
218
|
-
_context2.next =
|
197
|
+
_context2.next = 8;
|
219
198
|
break;
|
220
199
|
}
|
221
200
|
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
|
222
|
-
case
|
201
|
+
case 8:
|
223
202
|
if (!(params['recipient'] && !(0, _utils.isString)(params['recipient']))) {
|
224
|
-
_context2.next =
|
203
|
+
_context2.next = 10;
|
225
204
|
break;
|
226
205
|
}
|
227
206
|
throw new errors.InvalidParameterError("Bad parameter: recipient must be of type String, received ".concat((0, _utils.getType)(params['recipient'])));
|
228
|
-
case
|
207
|
+
case 10:
|
229
208
|
if (!(params['name'] && !(0, _utils.isString)(params['name']))) {
|
230
|
-
_context2.next =
|
209
|
+
_context2.next = 12;
|
231
210
|
break;
|
232
211
|
}
|
233
212
|
throw new errors.InvalidParameterError("Bad parameter: name must be of type String, received ".concat((0, _utils.getType)(params['name'])));
|
234
|
-
case
|
213
|
+
case 12:
|
235
214
|
if (!(params['company'] && !(0, _utils.isString)(params['company']))) {
|
236
|
-
_context2.next =
|
215
|
+
_context2.next = 14;
|
237
216
|
break;
|
238
217
|
}
|
239
218
|
throw new errors.InvalidParameterError("Bad parameter: company must be of type String, received ".concat((0, _utils.getType)(params['company'])));
|
240
|
-
case
|
219
|
+
case 14:
|
241
220
|
if (!(params['note'] && !(0, _utils.isString)(params['note']))) {
|
242
|
-
_context2.next =
|
221
|
+
_context2.next = 16;
|
243
222
|
break;
|
244
223
|
}
|
245
224
|
throw new errors.InvalidParameterError("Bad parameter: note must be of type String, received ".concat((0, _utils.getType)(params['note'])));
|
246
|
-
case
|
247
|
-
_context2.next =
|
225
|
+
case 16:
|
226
|
+
_context2.next = 18;
|
248
227
|
return _Api.default.sendRequest("/bundle_recipients", 'POST', params, options);
|
249
|
-
case
|
228
|
+
case 18:
|
250
229
|
response = _context2.sent;
|
251
230
|
return _context2.abrupt("return", new _class(response === null || response === void 0 ? void 0 : response.data, options));
|
252
|
-
case
|
231
|
+
case 20:
|
253
232
|
case "end":
|
254
233
|
return _context2.stop();
|
255
234
|
}
|
@@ -100,7 +100,6 @@ var BundleRegistration = /*#__PURE__*/(0, _createClass2.default)(function Bundle
|
|
100
100
|
});
|
101
101
|
_class = BundleRegistration;
|
102
102
|
// Parameters:
|
103
|
-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
104
103
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
105
104
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
106
105
|
// bundle_id - int64 - ID of the associated Bundle
|
@@ -115,38 +114,32 @@ _class = BundleRegistration;
|
|
115
114
|
case 0:
|
116
115
|
params = _args.length > 0 && _args[0] !== undefined ? _args[0] : {};
|
117
116
|
options = _args.length > 1 && _args[1] !== undefined ? _args[1] : {};
|
118
|
-
if (!(params['user_id'] && !(0, _utils.isInt)(params['user_id']))) {
|
119
|
-
_context.next = 4;
|
120
|
-
break;
|
121
|
-
}
|
122
|
-
throw new errors.InvalidParameterError("Bad parameter: user_id must be of type Int, received ".concat((0, _utils.getType)(params['user_id'])));
|
123
|
-
case 4:
|
124
117
|
if (!(params['cursor'] && !(0, _utils.isString)(params['cursor']))) {
|
125
|
-
_context.next =
|
118
|
+
_context.next = 4;
|
126
119
|
break;
|
127
120
|
}
|
128
121
|
throw new errors.InvalidParameterError("Bad parameter: cursor must be of type String, received ".concat((0, _utils.getType)(params['cursor'])));
|
129
|
-
case
|
122
|
+
case 4:
|
130
123
|
if (!(params['per_page'] && !(0, _utils.isInt)(params['per_page']))) {
|
131
|
-
_context.next =
|
124
|
+
_context.next = 6;
|
132
125
|
break;
|
133
126
|
}
|
134
127
|
throw new errors.InvalidParameterError("Bad parameter: per_page must be of type Int, received ".concat((0, _utils.getType)(params['per_page'])));
|
135
|
-
case
|
128
|
+
case 6:
|
136
129
|
if (!(params['bundle_id'] && !(0, _utils.isInt)(params['bundle_id']))) {
|
137
|
-
_context.next =
|
130
|
+
_context.next = 8;
|
138
131
|
break;
|
139
132
|
}
|
140
133
|
throw new errors.InvalidParameterError("Bad parameter: bundle_id must be of type Int, received ".concat((0, _utils.getType)(params['bundle_id'])));
|
141
|
-
case
|
142
|
-
_context.next =
|
134
|
+
case 8:
|
135
|
+
_context.next = 10;
|
143
136
|
return _Api.default.sendRequest("/bundle_registrations", 'GET', params, options);
|
144
|
-
case
|
137
|
+
case 10:
|
145
138
|
response = _context.sent;
|
146
139
|
return _context.abrupt("return", (response === null || response === void 0 || (_response$data = response.data) === null || _response$data === void 0 ? void 0 : _response$data.map(function (obj) {
|
147
140
|
return new _class(obj, options);
|
148
141
|
})) || []);
|
149
|
-
case
|
142
|
+
case 12:
|
150
143
|
case "end":
|
151
144
|
return _context.stop();
|
152
145
|
}
|
package/package.json
CHANGED
package/src/Errors.js
CHANGED
@@ -220,6 +220,8 @@ export class ProcessingFailure_RemoteServerErrorError extends ProcessingFailureE
|
|
220
220
|
export class ProcessingFailure_ResourceLockedError extends ProcessingFailureError { constructor(message, code) { super(message, code); this.name = 'ProcessingFailure_ResourceLockedError' } } errorClasses.ProcessingFailure_ResourceLockedError = ProcessingFailure_ResourceLockedError
|
221
221
|
export class ProcessingFailure_SubfolderLockedError extends ProcessingFailureError { constructor(message, code) { super(message, code); this.name = 'ProcessingFailure_SubfolderLockedError' } } errorClasses.ProcessingFailure_SubfolderLockedError = ProcessingFailure_SubfolderLockedError
|
222
222
|
export class ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError extends ProcessingFailureError { constructor(message, code) { super(message, code); this.name = 'ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError' } } errorClasses.ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError = ProcessingFailure_TwoFactorAuthenticationCodeAlreadySentError
|
223
|
+
export class ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError extends ProcessingFailureError { constructor(message, code) { super(message, code); this.name = 'ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError' } } errorClasses.ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError = ProcessingFailure_TwoFactorAuthenticationCountryBlacklistedError
|
224
|
+
export class ProcessingFailure_TwoFactorAuthenticationGeneralErrorError extends ProcessingFailureError { constructor(message, code) { super(message, code); this.name = 'ProcessingFailure_TwoFactorAuthenticationGeneralErrorError' } } errorClasses.ProcessingFailure_TwoFactorAuthenticationGeneralErrorError = ProcessingFailure_TwoFactorAuthenticationGeneralErrorError
|
223
225
|
export class ProcessingFailure_UpdatesNotAllowedForRemotesError extends ProcessingFailureError { constructor(message, code) { super(message, code); this.name = 'ProcessingFailure_UpdatesNotAllowedForRemotesError' } } errorClasses.ProcessingFailure_UpdatesNotAllowedForRemotesError = ProcessingFailure_UpdatesNotAllowedForRemotesError
|
224
226
|
export class RateLimited_DuplicateShareRecipientError extends RateLimitedError { constructor(message, code) { super(message, code); this.name = 'RateLimited_DuplicateShareRecipientError' } } errorClasses.RateLimited_DuplicateShareRecipientError = RateLimited_DuplicateShareRecipientError
|
225
227
|
export class RateLimited_ReauthenticationRateLimitedError extends RateLimitedError { constructor(message, code) { super(message, code); this.name = 'RateLimited_ReauthenticationRateLimitedError' } } errorClasses.RateLimited_ReauthenticationRateLimitedError = RateLimited_ReauthenticationRateLimitedError
|
package/src/Files.js
CHANGED
@@ -44,7 +44,6 @@ class AutomationRun {
|
|
44
44
|
|
45
45
|
|
46
46
|
// Parameters:
|
47
|
-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
48
47
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
49
48
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
50
49
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[automation_id]=desc`). Valid fields are `automation_id`, `created_at` or `status`.
|
@@ -55,10 +54,6 @@ class AutomationRun {
|
|
55
54
|
throw new errors.MissingParameterError('Parameter missing: automation_id')
|
56
55
|
}
|
57
56
|
|
58
|
-
if (params['user_id'] && !isInt(params['user_id'])) {
|
59
|
-
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
|
60
|
-
}
|
61
|
-
|
62
57
|
if (params['cursor'] && !isString(params['cursor'])) {
|
63
58
|
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params['cursor'])}`)
|
64
59
|
}
|
@@ -132,16 +132,11 @@ class BundleNotification {
|
|
132
132
|
}
|
133
133
|
|
134
134
|
// Parameters:
|
135
|
-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
136
135
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
137
136
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
138
137
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[bundle_id]=desc`). Valid fields are `bundle_id`.
|
139
138
|
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `bundle_id`.
|
140
139
|
static list = async (params = {}, options = {}) => {
|
141
|
-
if (params['user_id'] && !isInt(params['user_id'])) {
|
142
|
-
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
|
143
|
-
}
|
144
|
-
|
145
140
|
if (params['cursor'] && !isString(params['cursor'])) {
|
146
141
|
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params['cursor'])}`)
|
147
142
|
}
|
@@ -186,23 +181,23 @@ class BundleNotification {
|
|
186
181
|
BundleNotification.find(id, params, options)
|
187
182
|
|
188
183
|
// Parameters:
|
189
|
-
// user_id - int64 - The id of the user to notify.
|
190
184
|
// notify_on_registration - boolean - Triggers bundle notification when a registration action occurs for it.
|
191
185
|
// notify_on_upload - boolean - Triggers bundle notification when a upload action occurs for it.
|
192
186
|
// bundle_id (required) - int64 - Bundle ID to notify on
|
187
|
+
// user_id - int64 - The id of the user to notify.
|
193
188
|
static create = async (params = {}, options = {}) => {
|
194
189
|
if (!params['bundle_id']) {
|
195
190
|
throw new errors.MissingParameterError('Parameter missing: bundle_id')
|
196
191
|
}
|
197
192
|
|
198
|
-
if (params['user_id'] && !isInt(params['user_id'])) {
|
199
|
-
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
|
200
|
-
}
|
201
|
-
|
202
193
|
if (params['bundle_id'] && !isInt(params['bundle_id'])) {
|
203
194
|
throw new errors.InvalidParameterError(`Bad parameter: bundle_id must be of type Int, received ${getType(params['bundle_id'])}`)
|
204
195
|
}
|
205
196
|
|
197
|
+
if (params['user_id'] && !isInt(params['user_id'])) {
|
198
|
+
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
|
199
|
+
}
|
200
|
+
|
206
201
|
const response = await Api.sendRequest(`/bundle_notifications`, 'POST', params, options)
|
207
202
|
|
208
203
|
|
@@ -59,13 +59,6 @@ class BundleRecipient {
|
|
59
59
|
this.attributes.sent_at = value
|
60
60
|
}
|
61
61
|
|
62
|
-
// int64 # User ID. Provide a value of `0` to operate the current session's user.
|
63
|
-
getUserId = () => this.attributes.user_id
|
64
|
-
|
65
|
-
setUserId = value => {
|
66
|
-
this.attributes.user_id = value
|
67
|
-
}
|
68
|
-
|
69
62
|
// int64 # Bundle to share.
|
70
63
|
getBundleId = () => this.attributes.bundle_id
|
71
64
|
|
@@ -92,7 +85,6 @@ class BundleRecipient {
|
|
92
85
|
}
|
93
86
|
|
94
87
|
// Parameters:
|
95
|
-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
96
88
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
97
89
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
98
90
|
// sort_by - object - If set, sort records by the specified field in either `asc` or `desc` direction (e.g. `sort_by[has_registrations]=desc`). Valid fields are `has_registrations`.
|
@@ -103,10 +95,6 @@ class BundleRecipient {
|
|
103
95
|
throw new errors.MissingParameterError('Parameter missing: bundle_id')
|
104
96
|
}
|
105
97
|
|
106
|
-
if (params['user_id'] && !isInt(params['user_id'])) {
|
107
|
-
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
|
108
|
-
}
|
109
|
-
|
110
98
|
if (params['cursor'] && !isString(params['cursor'])) {
|
111
99
|
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params['cursor'])}`)
|
112
100
|
}
|
@@ -129,7 +117,6 @@ class BundleRecipient {
|
|
129
117
|
BundleRecipient.list(params, options)
|
130
118
|
|
131
119
|
// Parameters:
|
132
|
-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
133
120
|
// bundle_id (required) - int64 - Bundle to share.
|
134
121
|
// recipient (required) - string - Email addresses to share this bundle with.
|
135
122
|
// name - string - Name of recipient.
|
@@ -145,10 +132,6 @@ class BundleRecipient {
|
|
145
132
|
throw new errors.MissingParameterError('Parameter missing: recipient')
|
146
133
|
}
|
147
134
|
|
148
|
-
if (params['user_id'] && !isInt(params['user_id'])) {
|
149
|
-
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
|
150
|
-
}
|
151
|
-
|
152
135
|
if (params['bundle_id'] && !isInt(params['bundle_id'])) {
|
153
136
|
throw new errors.InvalidParameterError(`Bad parameter: bundle_id must be of type Int, received ${getType(params['bundle_id'])}`)
|
154
137
|
}
|
@@ -65,15 +65,10 @@ class BundleRegistration {
|
|
65
65
|
|
66
66
|
|
67
67
|
// Parameters:
|
68
|
-
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
69
68
|
// cursor - string - Used for pagination. When a list request has more records available, cursors are provided in the response headers `X-Files-Cursor-Next` and `X-Files-Cursor-Prev`. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
|
70
69
|
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
71
70
|
// bundle_id - int64 - ID of the associated Bundle
|
72
71
|
static list = async (params = {}, options = {}) => {
|
73
|
-
if (params['user_id'] && !isInt(params['user_id'])) {
|
74
|
-
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
|
75
|
-
}
|
76
|
-
|
77
72
|
if (params['cursor'] && !isString(params['cursor'])) {
|
78
73
|
throw new errors.InvalidParameterError(`Bad parameter: cursor must be of type String, received ${getType(params['cursor'])}`)
|
79
74
|
}
|