files.com 1.0.248 → 1.0.249

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/_VERSION +1 -1
  2. package/lib/models/AccountLineItem.js +14 -0
  3. package/lib/models/Action.js +13 -0
  4. package/lib/models/ActionNotificationExport.js +27 -0
  5. package/lib/models/ActionNotificationExportResult.js +15 -0
  6. package/lib/models/ActionWebhookFailure.js +1 -0
  7. package/lib/models/ApiKey.js +42 -0
  8. package/lib/models/App.js +26 -0
  9. package/lib/models/As2IncomingMessage.js +46 -0
  10. package/lib/models/As2OutgoingMessage.js +42 -0
  11. package/lib/models/As2Partner.js +29 -0
  12. package/lib/models/As2Station.js +31 -0
  13. package/lib/models/Auto.js +1 -0
  14. package/lib/models/Automation.js +72 -0
  15. package/lib/models/AutomationRun.js +20 -0
  16. package/lib/models/BandwidthSnapshot.js +19 -0
  17. package/lib/models/Behavior.js +57 -0
  18. package/lib/models/Bundle.js +98 -0
  19. package/lib/models/BundleDownload.js +16 -0
  20. package/lib/models/BundleNotification.js +20 -0
  21. package/lib/models/BundleRecipient.js +28 -0
  22. package/lib/models/BundleRegistration.js +18 -0
  23. package/lib/models/Clickwrap.js +23 -0
  24. package/lib/models/DnsRecord.js +7 -0
  25. package/lib/models/Errors.js +2 -0
  26. package/lib/models/ExternalEvent.js +26 -0
  27. package/lib/models/File.js +88 -0
  28. package/lib/models/FileAction.js +2 -0
  29. package/lib/models/FileComment.js +13 -0
  30. package/lib/models/FileCommentReaction.js +8 -0
  31. package/lib/models/FileMigration.js +11 -0
  32. package/lib/models/FileUploadPart.js +15 -0
  33. package/lib/models/Folder.js +33 -0
  34. package/lib/models/FormField.js +8 -0
  35. package/lib/models/FormFieldSet.js +27 -0
  36. package/lib/models/Group.js +29 -0
  37. package/lib/models/GroupUser.js +22 -0
  38. package/lib/models/History.js +57 -0
  39. package/lib/models/HistoryExport.js +51 -0
  40. package/lib/models/HistoryExportResult.js +29 -0
  41. package/lib/models/Image.js +2 -0
  42. package/lib/models/InboxRecipient.js +28 -0
  43. package/lib/models/InboxRegistration.js +15 -0
  44. package/lib/models/InboxUpload.js +15 -0
  45. package/lib/models/Invoice.js +19 -0
  46. package/lib/models/InvoiceLineItem.js +9 -0
  47. package/lib/models/IpAddress.js +13 -0
  48. package/lib/models/Lock.js +25 -0
  49. package/lib/models/Message.js +22 -0
  50. package/lib/models/MessageComment.js +16 -0
  51. package/lib/models/MessageCommentReaction.js +13 -0
  52. package/lib/models/MessageReaction.js +13 -0
  53. package/lib/models/Notification.js +70 -0
  54. package/lib/models/Payment.js +19 -0
  55. package/lib/models/PaymentLineItem.js +4 -0
  56. package/lib/models/Permission.js +29 -0
  57. package/lib/models/Preview.js +5 -0
  58. package/lib/models/Priority.js +6 -0
  59. package/lib/models/Project.js +11 -0
  60. package/lib/models/PublicIpAddress.js +4 -0
  61. package/lib/models/PublicKey.js +18 -0
  62. package/lib/models/RemoteBandwidthSnapshot.js +15 -0
  63. package/lib/models/RemoteServer.js +194 -0
  64. package/lib/models/RemoteServerConfigurationFile.js +12 -0
  65. package/lib/models/Request.js +25 -0
  66. package/lib/models/Session.js +13 -0
  67. package/lib/models/SettingsChange.js +15 -0
  68. package/lib/models/SftpHostKey.js +16 -0
  69. package/lib/models/Site.js +276 -0
  70. package/lib/models/SsoStrategy.js +49 -0
  71. package/lib/models/Status.js +7 -0
  72. package/lib/models/Style.js +9 -0
  73. package/lib/models/UsageDailySnapshot.js +21 -0
  74. package/lib/models/UsageSnapshot.js +18 -0
  75. package/lib/models/User.js +183 -0
  76. package/lib/models/UserCipherUse.js +10 -0
  77. package/lib/models/UserRequest.js +13 -0
  78. package/lib/models/WebhookTest.js +24 -0
  79. package/package.json +1 -1
@@ -31,21 +31,27 @@ var UserCipherUse = /*#__PURE__*/(0, _createClass2.default)(function UserCipherU
31
31
  (0, _defineProperty2.default)(this, "isLoaded", function () {
32
32
  return !!_this.attributes.id;
33
33
  });
34
+ // int64 # UserCipherUse ID
34
35
  (0, _defineProperty2.default)(this, "getId", function () {
35
36
  return _this.attributes.id;
36
37
  });
38
+ // string # The protocol and cipher employed
37
39
  (0, _defineProperty2.default)(this, "getProtocolCipher", function () {
38
40
  return _this.attributes.protocol_cipher;
39
41
  });
42
+ // date-time # The earliest recorded use of this combination of interface and protocol and cipher (for this user)
40
43
  (0, _defineProperty2.default)(this, "getCreatedAt", function () {
41
44
  return _this.attributes.created_at;
42
45
  });
46
+ // string # The interface accessed
43
47
  (0, _defineProperty2.default)(this, "getInterface", function () {
44
48
  return _this.attributes.interface;
45
49
  });
50
+ // date-time # The most recent use of this combination of interface and protocol and cipher (for this user)
46
51
  (0, _defineProperty2.default)(this, "getUpdatedAt", function () {
47
52
  return _this.attributes.updated_at;
48
53
  });
54
+ // int64 # ID of the user who performed this access
49
55
  (0, _defineProperty2.default)(this, "getUserId", function () {
50
56
  return _this.attributes.user_id;
51
57
  });
@@ -62,6 +68,10 @@ var UserCipherUse = /*#__PURE__*/(0, _createClass2.default)(function UserCipherU
62
68
  });
63
69
  this.options = _objectSpread({}, options);
64
70
  });
71
+ // Parameters:
72
+ // user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
73
+ // cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
74
+ // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
65
75
  (0, _defineProperty2.default)(UserCipherUse, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
66
76
  var _response$data;
67
77
  var params,
@@ -31,24 +31,28 @@ var UserRequest = /*#__PURE__*/(0, _createClass2.default)(function UserRequest()
31
31
  (0, _defineProperty2.default)(this, "isLoaded", function () {
32
32
  return !!_this.attributes.id;
33
33
  });
34
+ // int64 # ID
34
35
  (0, _defineProperty2.default)(this, "getId", function () {
35
36
  return _this.attributes.id;
36
37
  });
37
38
  (0, _defineProperty2.default)(this, "setId", function (value) {
38
39
  _this.attributes.id = value;
39
40
  });
41
+ // string # User's full name
40
42
  (0, _defineProperty2.default)(this, "getName", function () {
41
43
  return _this.attributes.name;
42
44
  });
43
45
  (0, _defineProperty2.default)(this, "setName", function (value) {
44
46
  _this.attributes.name = value;
45
47
  });
48
+ // email # User email address
46
49
  (0, _defineProperty2.default)(this, "getEmail", function () {
47
50
  return _this.attributes.email;
48
51
  });
49
52
  (0, _defineProperty2.default)(this, "setEmail", function (value) {
50
53
  _this.attributes.email = value;
51
54
  });
55
+ // string # Details of the user's request
52
56
  (0, _defineProperty2.default)(this, "getDetails", function () {
53
57
  return _this.attributes.details;
54
58
  });
@@ -133,6 +137,9 @@ var UserRequest = /*#__PURE__*/(0, _createClass2.default)(function UserRequest()
133
137
  });
134
138
  this.options = _objectSpread({}, options);
135
139
  });
140
+ // Parameters:
141
+ // cursor - string - Used for pagination. Send a cursor value to resume an existing list from the point at which you left off. Get a cursor from an existing list via either the X-Files-Cursor-Next header or the X-Files-Cursor-Prev header.
142
+ // per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
136
143
  (0, _defineProperty2.default)(UserRequest, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
137
144
  var _response$data;
138
145
  var params,
@@ -174,6 +181,8 @@ var UserRequest = /*#__PURE__*/(0, _createClass2.default)(function UserRequest()
174
181
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
175
182
  return UserRequest.list(params, options);
176
183
  });
184
+ // Parameters:
185
+ // id (required) - int64 - User Request ID.
177
186
  (0, _defineProperty2.default)(UserRequest, "find", /*#__PURE__*/function () {
178
187
  var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(id) {
179
188
  var params,
@@ -224,6 +233,10 @@ var UserRequest = /*#__PURE__*/(0, _createClass2.default)(function UserRequest()
224
233
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
225
234
  return UserRequest.find(id, params, options);
226
235
  });
236
+ // Parameters:
237
+ // name (required) - string - Name of user requested
238
+ // email (required) - string - Email of user requested
239
+ // details (required) - string - Details of the user request
227
240
  (0, _defineProperty2.default)(UserRequest, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
228
241
  var params,
229
242
  options,
@@ -31,84 +31,98 @@ var WebhookTest = /*#__PURE__*/(0, _createClass2.default)(function WebhookTest()
31
31
  (0, _defineProperty2.default)(this, "isLoaded", function () {
32
32
  return !!_this.attributes.id;
33
33
  });
34
+ // int64 # Status HTTP code
34
35
  (0, _defineProperty2.default)(this, "getCode", function () {
35
36
  return _this.attributes.code;
36
37
  });
37
38
  (0, _defineProperty2.default)(this, "setCode", function (value) {
38
39
  _this.attributes.code = value;
39
40
  });
41
+ // string # Error message
40
42
  (0, _defineProperty2.default)(this, "getMessage", function () {
41
43
  return _this.attributes.message;
42
44
  });
43
45
  (0, _defineProperty2.default)(this, "setMessage", function (value) {
44
46
  _this.attributes.message = value;
45
47
  });
48
+ // string # Status message
46
49
  (0, _defineProperty2.default)(this, "getStatus", function () {
47
50
  return _this.attributes.status;
48
51
  });
49
52
  (0, _defineProperty2.default)(this, "setStatus", function (value) {
50
53
  _this.attributes.status = value;
51
54
  });
55
+ // Auto # Additional data
52
56
  (0, _defineProperty2.default)(this, "getData", function () {
53
57
  return _this.attributes.data;
54
58
  });
55
59
  (0, _defineProperty2.default)(this, "setData", function (value) {
56
60
  _this.attributes.data = value;
57
61
  });
62
+ // boolean # The success status of the webhook test
58
63
  (0, _defineProperty2.default)(this, "getSuccess", function () {
59
64
  return _this.attributes.success;
60
65
  });
61
66
  (0, _defineProperty2.default)(this, "setSuccess", function (value) {
62
67
  _this.attributes.success = value;
63
68
  });
69
+ // string # URL for testing the webhook.
64
70
  (0, _defineProperty2.default)(this, "getUrl", function () {
65
71
  return _this.attributes.url;
66
72
  });
67
73
  (0, _defineProperty2.default)(this, "setUrl", function (value) {
68
74
  _this.attributes.url = value;
69
75
  });
76
+ // string # HTTP method(GET or POST).
70
77
  (0, _defineProperty2.default)(this, "getMethod", function () {
71
78
  return _this.attributes.method;
72
79
  });
73
80
  (0, _defineProperty2.default)(this, "setMethod", function (value) {
74
81
  _this.attributes.method = value;
75
82
  });
83
+ // string # HTTP encoding method. Can be JSON, XML, or RAW (form data).
76
84
  (0, _defineProperty2.default)(this, "getEncoding", function () {
77
85
  return _this.attributes.encoding;
78
86
  });
79
87
  (0, _defineProperty2.default)(this, "setEncoding", function (value) {
80
88
  _this.attributes.encoding = value;
81
89
  });
90
+ // object # Additional request headers.
82
91
  (0, _defineProperty2.default)(this, "getHeaders", function () {
83
92
  return _this.attributes.headers;
84
93
  });
85
94
  (0, _defineProperty2.default)(this, "setHeaders", function (value) {
86
95
  _this.attributes.headers = value;
87
96
  });
97
+ // object # Additional body parameters.
88
98
  (0, _defineProperty2.default)(this, "getBody", function () {
89
99
  return _this.attributes.body;
90
100
  });
91
101
  (0, _defineProperty2.default)(this, "setBody", function (value) {
92
102
  _this.attributes.body = value;
93
103
  });
104
+ // string # raw body text
94
105
  (0, _defineProperty2.default)(this, "getRawBody", function () {
95
106
  return _this.attributes.raw_body;
96
107
  });
97
108
  (0, _defineProperty2.default)(this, "setRawBody", function (value) {
98
109
  _this.attributes.raw_body = value;
99
110
  });
111
+ // boolean # Send the file data as the request body?
100
112
  (0, _defineProperty2.default)(this, "getFileAsBody", function () {
101
113
  return _this.attributes.file_as_body;
102
114
  });
103
115
  (0, _defineProperty2.default)(this, "setFileAsBody", function (value) {
104
116
  _this.attributes.file_as_body = value;
105
117
  });
118
+ // string # Send the file data as a named parameter in the request POST body
106
119
  (0, _defineProperty2.default)(this, "getFileFormField", function () {
107
120
  return _this.attributes.file_form_field;
108
121
  });
109
122
  (0, _defineProperty2.default)(this, "setFileFormField", function (value) {
110
123
  _this.attributes.file_form_field = value;
111
124
  });
125
+ // string # action for test body
112
126
  (0, _defineProperty2.default)(this, "getAction", function () {
113
127
  return _this.attributes.action;
114
128
  });
@@ -137,6 +151,16 @@ var WebhookTest = /*#__PURE__*/(0, _createClass2.default)(function WebhookTest()
137
151
  });
138
152
  this.options = _objectSpread({}, options);
139
153
  });
154
+ // Parameters:
155
+ // url (required) - string - URL for testing the webhook.
156
+ // method - string - HTTP method(GET or POST).
157
+ // encoding - string - HTTP encoding method. Can be JSON, XML, or RAW (form data).
158
+ // headers - object - Additional request headers.
159
+ // body - object - Additional body parameters.
160
+ // raw_body - string - raw body text
161
+ // file_as_body - boolean - Send the file data as the request body?
162
+ // file_form_field - string - Send the file data as a named parameter in the request POST body
163
+ // action - string - action for test body
140
164
  (0, _defineProperty2.default)(WebhookTest, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
141
165
  var params,
142
166
  options,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "files.com",
3
- "version": "1.0.248",
3
+ "version": "1.0.249",
4
4
  "description": "Files.com SDK for JavaScript",
5
5
  "keywords": [
6
6
  "files.com",