files.com 1.0.247 → 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.
- package/_VERSION +1 -1
- package/docs/models/RemoteServer.md +16 -2
- package/lib/models/AccountLineItem.js +14 -0
- package/lib/models/Action.js +13 -0
- package/lib/models/ActionNotificationExport.js +27 -0
- package/lib/models/ActionNotificationExportResult.js +15 -0
- package/lib/models/ActionWebhookFailure.js +1 -0
- package/lib/models/ApiKey.js +42 -0
- package/lib/models/App.js +26 -0
- package/lib/models/As2IncomingMessage.js +46 -0
- package/lib/models/As2OutgoingMessage.js +42 -0
- package/lib/models/As2Partner.js +29 -0
- package/lib/models/As2Station.js +31 -0
- package/lib/models/Auto.js +1 -0
- package/lib/models/Automation.js +72 -0
- package/lib/models/AutomationRun.js +20 -0
- package/lib/models/BandwidthSnapshot.js +19 -0
- package/lib/models/Behavior.js +57 -0
- package/lib/models/Bundle.js +98 -0
- package/lib/models/BundleDownload.js +16 -0
- package/lib/models/BundleNotification.js +20 -0
- package/lib/models/BundleRecipient.js +28 -0
- package/lib/models/BundleRegistration.js +18 -0
- package/lib/models/Clickwrap.js +23 -0
- package/lib/models/DnsRecord.js +7 -0
- package/lib/models/Errors.js +2 -0
- package/lib/models/ExternalEvent.js +26 -0
- package/lib/models/File.js +88 -0
- package/lib/models/FileAction.js +2 -0
- package/lib/models/FileComment.js +13 -0
- package/lib/models/FileCommentReaction.js +8 -0
- package/lib/models/FileMigration.js +11 -0
- package/lib/models/FileUploadPart.js +15 -0
- package/lib/models/Folder.js +33 -0
- package/lib/models/FormField.js +8 -0
- package/lib/models/FormFieldSet.js +27 -0
- package/lib/models/Group.js +29 -0
- package/lib/models/GroupUser.js +22 -0
- package/lib/models/History.js +57 -0
- package/lib/models/HistoryExport.js +51 -0
- package/lib/models/HistoryExportResult.js +29 -0
- package/lib/models/Image.js +2 -0
- package/lib/models/InboxRecipient.js +28 -0
- package/lib/models/InboxRegistration.js +15 -0
- package/lib/models/InboxUpload.js +15 -0
- package/lib/models/Invoice.js +19 -0
- package/lib/models/InvoiceLineItem.js +9 -0
- package/lib/models/IpAddress.js +13 -0
- package/lib/models/Lock.js +25 -0
- package/lib/models/Message.js +22 -0
- package/lib/models/MessageComment.js +16 -0
- package/lib/models/MessageCommentReaction.js +13 -0
- package/lib/models/MessageReaction.js +13 -0
- package/lib/models/Notification.js +70 -0
- package/lib/models/Payment.js +19 -0
- package/lib/models/PaymentLineItem.js +4 -0
- package/lib/models/Permission.js +29 -0
- package/lib/models/Preview.js +5 -0
- package/lib/models/Priority.js +6 -0
- package/lib/models/Project.js +11 -0
- package/lib/models/PublicIpAddress.js +4 -0
- package/lib/models/PublicKey.js +18 -0
- package/lib/models/RemoteBandwidthSnapshot.js +15 -0
- package/lib/models/RemoteServer.js +253 -11
- package/lib/models/RemoteServerConfigurationFile.js +12 -0
- package/lib/models/Request.js +25 -0
- package/lib/models/Session.js +13 -0
- package/lib/models/SettingsChange.js +15 -0
- package/lib/models/SftpHostKey.js +16 -0
- package/lib/models/Site.js +276 -0
- package/lib/models/SsoStrategy.js +49 -0
- package/lib/models/Status.js +7 -0
- package/lib/models/Style.js +9 -0
- package/lib/models/UsageDailySnapshot.js +21 -0
- package/lib/models/UsageSnapshot.js +18 -0
- package/lib/models/User.js +183 -0
- package/lib/models/UserCipherUse.js +10 -0
- package/lib/models/UserRequest.js +13 -0
- package/lib/models/WebhookTest.js +24 -0
- package/package.json +1 -1
- package/src/models/RemoteServer.js +41 -0
@@ -31,12 +31,15 @@ var InboxUpload = /*#__PURE__*/(0, _createClass2.default)(function InboxUpload()
|
|
31
31
|
(0, _defineProperty2.default)(this, "isLoaded", function () {
|
32
32
|
return !!_this.attributes.id;
|
33
33
|
});
|
34
|
+
// InboxRegistration
|
34
35
|
(0, _defineProperty2.default)(this, "getInboxRegistration", function () {
|
35
36
|
return _this.attributes.inbox_registration;
|
36
37
|
});
|
38
|
+
// string # Upload path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
37
39
|
(0, _defineProperty2.default)(this, "getPath", function () {
|
38
40
|
return _this.attributes.path;
|
39
41
|
});
|
42
|
+
// date-time # Upload date/time
|
40
43
|
(0, _defineProperty2.default)(this, "getCreatedAt", function () {
|
41
44
|
return _this.attributes.created_at;
|
42
45
|
});
|
@@ -53,6 +56,18 @@ var InboxUpload = /*#__PURE__*/(0, _createClass2.default)(function InboxUpload()
|
|
53
56
|
});
|
54
57
|
this.options = _objectSpread({}, options);
|
55
58
|
});
|
59
|
+
// Parameters:
|
60
|
+
// 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.
|
61
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
62
|
+
// sort_by - object - If set, sort records by the specified field in either 'asc' or 'desc' direction (e.g. sort_by[last_login_at]=desc). Valid fields are `created_at`.
|
63
|
+
// filter - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
64
|
+
// filter_gt - object - If set, return records where the specified field is greater than the supplied value. Valid fields are `created_at`.
|
65
|
+
// filter_gteq - object - If set, return records where the specified field is greater than or equal to the supplied value. Valid fields are `created_at`.
|
66
|
+
// filter_like - object - If set, return records where the specified field is equal to the supplied value. Valid fields are `created_at`.
|
67
|
+
// filter_lt - object - If set, return records where the specified field is less than the supplied value. Valid fields are `created_at`.
|
68
|
+
// filter_lteq - object - If set, return records where the specified field is less than or equal to the supplied value. Valid fields are `created_at`.
|
69
|
+
// inbox_registration_id - int64 - InboxRegistration ID
|
70
|
+
// inbox_id - int64 - Inbox ID
|
56
71
|
(0, _defineProperty2.default)(InboxUpload, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
57
72
|
var _response$data;
|
58
73
|
var params,
|
package/lib/models/Invoice.js
CHANGED
@@ -31,45 +31,59 @@ var Invoice = /*#__PURE__*/(0, _createClass2.default)(function Invoice() {
|
|
31
31
|
(0, _defineProperty2.default)(this, "isLoaded", function () {
|
32
32
|
return !!_this.attributes.id;
|
33
33
|
});
|
34
|
+
// int64 # Line item Id
|
34
35
|
(0, _defineProperty2.default)(this, "getId", function () {
|
35
36
|
return _this.attributes.id;
|
36
37
|
});
|
38
|
+
// double # Line item amount
|
37
39
|
(0, _defineProperty2.default)(this, "getAmount", function () {
|
38
40
|
return _this.attributes.amount;
|
39
41
|
});
|
42
|
+
// double # Line item balance
|
40
43
|
(0, _defineProperty2.default)(this, "getBalance", function () {
|
41
44
|
return _this.attributes.balance;
|
42
45
|
});
|
46
|
+
// date-time # Line item created at
|
43
47
|
(0, _defineProperty2.default)(this, "getCreatedAt", function () {
|
44
48
|
return _this.attributes.created_at;
|
45
49
|
});
|
50
|
+
// string # Line item currency
|
46
51
|
(0, _defineProperty2.default)(this, "getCurrency", function () {
|
47
52
|
return _this.attributes.currency;
|
48
53
|
});
|
54
|
+
// string # Line item download uri
|
49
55
|
(0, _defineProperty2.default)(this, "getDownloadUri", function () {
|
50
56
|
return _this.attributes.download_uri;
|
51
57
|
});
|
58
|
+
// array # Associated invoice line items
|
52
59
|
(0, _defineProperty2.default)(this, "getInvoiceLineItems", function () {
|
53
60
|
return _this.attributes.invoice_line_items;
|
54
61
|
});
|
62
|
+
// string # Line item payment method
|
55
63
|
(0, _defineProperty2.default)(this, "getMethod", function () {
|
56
64
|
return _this.attributes.method;
|
57
65
|
});
|
66
|
+
// array # Associated payment line items
|
58
67
|
(0, _defineProperty2.default)(this, "getPaymentLineItems", function () {
|
59
68
|
return _this.attributes.payment_line_items;
|
60
69
|
});
|
70
|
+
// date-time # Date/time payment was reversed if applicable
|
61
71
|
(0, _defineProperty2.default)(this, "getPaymentReversedAt", function () {
|
62
72
|
return _this.attributes.payment_reversed_at;
|
63
73
|
});
|
74
|
+
// string # Type of payment if applicable
|
64
75
|
(0, _defineProperty2.default)(this, "getPaymentType", function () {
|
65
76
|
return _this.attributes.payment_type;
|
66
77
|
});
|
78
|
+
// string # Site name this line item is for
|
67
79
|
(0, _defineProperty2.default)(this, "getSiteName", function () {
|
68
80
|
return _this.attributes.site_name;
|
69
81
|
});
|
82
|
+
// string # Type of line item, either payment or invoice
|
70
83
|
(0, _defineProperty2.default)(this, "getType", function () {
|
71
84
|
return _this.attributes.type;
|
72
85
|
});
|
86
|
+
// date-time # Line item updated at
|
73
87
|
(0, _defineProperty2.default)(this, "getUpdatedAt", function () {
|
74
88
|
return _this.attributes.updated_at;
|
75
89
|
});
|
@@ -86,6 +100,9 @@ var Invoice = /*#__PURE__*/(0, _createClass2.default)(function Invoice() {
|
|
86
100
|
});
|
87
101
|
this.options = _objectSpread({}, options);
|
88
102
|
});
|
103
|
+
// Parameters:
|
104
|
+
// 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.
|
105
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
89
106
|
(0, _defineProperty2.default)(Invoice, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
90
107
|
var _response$data;
|
91
108
|
var params,
|
@@ -127,6 +144,8 @@ var Invoice = /*#__PURE__*/(0, _createClass2.default)(function Invoice() {
|
|
127
144
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
128
145
|
return Invoice.list(params, options);
|
129
146
|
});
|
147
|
+
// Parameters:
|
148
|
+
// id (required) - int64 - Invoice ID.
|
130
149
|
(0, _defineProperty2.default)(Invoice, "find", /*#__PURE__*/function () {
|
131
150
|
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(id) {
|
132
151
|
var params,
|
@@ -29,30 +29,39 @@ var InvoiceLineItem = /*#__PURE__*/(0, _createClass2.default)(function InvoiceLi
|
|
29
29
|
(0, _defineProperty2.default)(this, "isLoaded", function () {
|
30
30
|
return !!_this.attributes.id;
|
31
31
|
});
|
32
|
+
// double # Invoice line item amount
|
32
33
|
(0, _defineProperty2.default)(this, "getAmount", function () {
|
33
34
|
return _this.attributes.amount;
|
34
35
|
});
|
36
|
+
// date-time # Invoice line item created at date/time
|
35
37
|
(0, _defineProperty2.default)(this, "getCreatedAt", function () {
|
36
38
|
return _this.attributes.created_at;
|
37
39
|
});
|
40
|
+
// string # Invoice line item description
|
38
41
|
(0, _defineProperty2.default)(this, "getDescription", function () {
|
39
42
|
return _this.attributes.description;
|
40
43
|
});
|
44
|
+
// string # Invoice line item type
|
41
45
|
(0, _defineProperty2.default)(this, "getType", function () {
|
42
46
|
return _this.attributes.type;
|
43
47
|
});
|
48
|
+
// date-time # Invoice line item service end date/time
|
44
49
|
(0, _defineProperty2.default)(this, "getServiceEndAt", function () {
|
45
50
|
return _this.attributes.service_end_at;
|
46
51
|
});
|
52
|
+
// date-time # Invoice line item service start date/time
|
47
53
|
(0, _defineProperty2.default)(this, "getServiceStartAt", function () {
|
48
54
|
return _this.attributes.service_start_at;
|
49
55
|
});
|
56
|
+
// date-time # Invoice line item updated date/time
|
50
57
|
(0, _defineProperty2.default)(this, "getUpdatedAt", function () {
|
51
58
|
return _this.attributes.updated_at;
|
52
59
|
});
|
60
|
+
// string # Plan name
|
53
61
|
(0, _defineProperty2.default)(this, "getPlan", function () {
|
54
62
|
return _this.attributes.plan;
|
55
63
|
});
|
64
|
+
// string # Site name
|
56
65
|
(0, _defineProperty2.default)(this, "getSite", function () {
|
57
66
|
return _this.attributes.site;
|
58
67
|
});
|
package/lib/models/IpAddress.js
CHANGED
@@ -31,15 +31,19 @@ var IpAddress = /*#__PURE__*/(0, _createClass2.default)(function IpAddress() {
|
|
31
31
|
(0, _defineProperty2.default)(this, "isLoaded", function () {
|
32
32
|
return !!_this.attributes.id;
|
33
33
|
});
|
34
|
+
// string # Unique label for list; used by Zapier and other integrations.
|
34
35
|
(0, _defineProperty2.default)(this, "getId", function () {
|
35
36
|
return _this.attributes.id;
|
36
37
|
});
|
38
|
+
// string # The object that this public IP address list is associated with.
|
37
39
|
(0, _defineProperty2.default)(this, "getAssociatedWith", function () {
|
38
40
|
return _this.attributes.associated_with;
|
39
41
|
});
|
42
|
+
// int64 # Group ID
|
40
43
|
(0, _defineProperty2.default)(this, "getGroupId", function () {
|
41
44
|
return _this.attributes.group_id;
|
42
45
|
});
|
46
|
+
// array # A list of IP addresses.
|
43
47
|
(0, _defineProperty2.default)(this, "getIpAddresses", function () {
|
44
48
|
return _this.attributes.ip_addresses;
|
45
49
|
});
|
@@ -56,6 +60,9 @@ var IpAddress = /*#__PURE__*/(0, _createClass2.default)(function IpAddress() {
|
|
56
60
|
});
|
57
61
|
this.options = _objectSpread({}, options);
|
58
62
|
});
|
63
|
+
// Parameters:
|
64
|
+
// 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.
|
65
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
59
66
|
(0, _defineProperty2.default)(IpAddress, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
60
67
|
var _response$data;
|
61
68
|
var params,
|
@@ -97,6 +104,9 @@ var IpAddress = /*#__PURE__*/(0, _createClass2.default)(function IpAddress() {
|
|
97
104
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
98
105
|
return IpAddress.list(params, options);
|
99
106
|
});
|
107
|
+
// Parameters:
|
108
|
+
// 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.
|
109
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
100
110
|
(0, _defineProperty2.default)(IpAddress, "getExavaultReserved", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
101
111
|
var _response$data2;
|
102
112
|
var params,
|
@@ -133,6 +143,9 @@ var IpAddress = /*#__PURE__*/(0, _createClass2.default)(function IpAddress() {
|
|
133
143
|
}
|
134
144
|
}, _callee2);
|
135
145
|
})));
|
146
|
+
// Parameters:
|
147
|
+
// 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.
|
148
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
136
149
|
(0, _defineProperty2.default)(IpAddress, "getReserved", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
137
150
|
var _response$data3;
|
138
151
|
var params,
|
package/lib/models/Lock.js
CHANGED
@@ -31,78 +31,92 @@ var Lock = /*#__PURE__*/(0, _createClass2.default)(function Lock() {
|
|
31
31
|
(0, _defineProperty2.default)(this, "isLoaded", function () {
|
32
32
|
return !!_this.attributes.path;
|
33
33
|
});
|
34
|
+
// string # Path This must be slash-delimited, but it must neither start nor end with a slash. Maximum of 5000 characters.
|
34
35
|
(0, _defineProperty2.default)(this, "getPath", function () {
|
35
36
|
return _this.attributes.path;
|
36
37
|
});
|
37
38
|
(0, _defineProperty2.default)(this, "setPath", function (value) {
|
38
39
|
_this.attributes.path = value;
|
39
40
|
});
|
41
|
+
// int64 # Lock timeout in seconds
|
40
42
|
(0, _defineProperty2.default)(this, "getTimeout", function () {
|
41
43
|
return _this.attributes.timeout;
|
42
44
|
});
|
43
45
|
(0, _defineProperty2.default)(this, "setTimeout", function (value) {
|
44
46
|
_this.attributes.timeout = value;
|
45
47
|
});
|
48
|
+
// string # DEPRECATED: Lock depth
|
46
49
|
(0, _defineProperty2.default)(this, "getDepth", function () {
|
47
50
|
return _this.attributes.depth;
|
48
51
|
});
|
49
52
|
(0, _defineProperty2.default)(this, "setDepth", function (value) {
|
50
53
|
_this.attributes.depth = value;
|
51
54
|
});
|
55
|
+
// boolean # Does lock apply to subfolders?
|
52
56
|
(0, _defineProperty2.default)(this, "getRecursive", function () {
|
53
57
|
return _this.attributes.recursive;
|
54
58
|
});
|
55
59
|
(0, _defineProperty2.default)(this, "setRecursive", function (value) {
|
56
60
|
_this.attributes.recursive = value;
|
57
61
|
});
|
62
|
+
// string # Owner of the lock. This can be any arbitrary string.
|
58
63
|
(0, _defineProperty2.default)(this, "getOwner", function () {
|
59
64
|
return _this.attributes.owner;
|
60
65
|
});
|
61
66
|
(0, _defineProperty2.default)(this, "setOwner", function (value) {
|
62
67
|
_this.attributes.owner = value;
|
63
68
|
});
|
69
|
+
// string # DEPRECATED: Lock scope
|
64
70
|
(0, _defineProperty2.default)(this, "getScope", function () {
|
65
71
|
return _this.attributes.scope;
|
66
72
|
});
|
67
73
|
(0, _defineProperty2.default)(this, "setScope", function (value) {
|
68
74
|
_this.attributes.scope = value;
|
69
75
|
});
|
76
|
+
// boolean # Is lock exclusive?
|
70
77
|
(0, _defineProperty2.default)(this, "getExclusive", function () {
|
71
78
|
return _this.attributes.exclusive;
|
72
79
|
});
|
73
80
|
(0, _defineProperty2.default)(this, "setExclusive", function (value) {
|
74
81
|
_this.attributes.exclusive = value;
|
75
82
|
});
|
83
|
+
// string # Lock token. Use to release lock.
|
76
84
|
(0, _defineProperty2.default)(this, "getToken", function () {
|
77
85
|
return _this.attributes.token;
|
78
86
|
});
|
79
87
|
(0, _defineProperty2.default)(this, "setToken", function (value) {
|
80
88
|
_this.attributes.token = value;
|
81
89
|
});
|
90
|
+
// string # DEPRECATED: Lock type
|
82
91
|
(0, _defineProperty2.default)(this, "getType", function () {
|
83
92
|
return _this.attributes.type;
|
84
93
|
});
|
85
94
|
(0, _defineProperty2.default)(this, "setType", function (value) {
|
86
95
|
_this.attributes.type = value;
|
87
96
|
});
|
97
|
+
// boolean # Can lock be modified by users other than its creator?
|
88
98
|
(0, _defineProperty2.default)(this, "getAllowAccessByAnyUser", function () {
|
89
99
|
return _this.attributes.allow_access_by_any_user;
|
90
100
|
});
|
91
101
|
(0, _defineProperty2.default)(this, "setAllowAccessByAnyUser", function (value) {
|
92
102
|
_this.attributes.allow_access_by_any_user = value;
|
93
103
|
});
|
104
|
+
// int64 # Lock creator user ID
|
94
105
|
(0, _defineProperty2.default)(this, "getUserId", function () {
|
95
106
|
return _this.attributes.user_id;
|
96
107
|
});
|
97
108
|
(0, _defineProperty2.default)(this, "setUserId", function (value) {
|
98
109
|
_this.attributes.user_id = value;
|
99
110
|
});
|
111
|
+
// string # Lock creator username
|
100
112
|
(0, _defineProperty2.default)(this, "getUsername", function () {
|
101
113
|
return _this.attributes.username;
|
102
114
|
});
|
103
115
|
(0, _defineProperty2.default)(this, "setUsername", function (value) {
|
104
116
|
_this.attributes.username = value;
|
105
117
|
});
|
118
|
+
// Parameters:
|
119
|
+
// token (required) - string - Lock token
|
106
120
|
(0, _defineProperty2.default)(this, "delete", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
107
121
|
var params,
|
108
122
|
response,
|
@@ -197,6 +211,11 @@ var Lock = /*#__PURE__*/(0, _createClass2.default)(function Lock() {
|
|
197
211
|
});
|
198
212
|
this.options = _objectSpread({}, options);
|
199
213
|
});
|
214
|
+
// Parameters:
|
215
|
+
// 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.
|
216
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
217
|
+
// path (required) - string - Path to operate on.
|
218
|
+
// include_children - boolean - Include locks from children objects?
|
200
219
|
(0, _defineProperty2.default)(Lock, "listFor", /*#__PURE__*/function () {
|
201
220
|
var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(path) {
|
202
221
|
var _response$data;
|
@@ -257,6 +276,12 @@ var Lock = /*#__PURE__*/(0, _createClass2.default)(function Lock() {
|
|
257
276
|
return _ref4.apply(this, arguments);
|
258
277
|
};
|
259
278
|
}());
|
279
|
+
// Parameters:
|
280
|
+
// path (required) - string - Path
|
281
|
+
// allow_access_by_any_user - boolean - Allow lock to be updated by any user?
|
282
|
+
// exclusive - boolean - Is lock exclusive?
|
283
|
+
// recursive - string - Does lock apply to subfolders?
|
284
|
+
// timeout - int64 - Lock timeout length
|
260
285
|
(0, _defineProperty2.default)(Lock, "create", /*#__PURE__*/function () {
|
261
286
|
var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(path) {
|
262
287
|
var params,
|
package/lib/models/Message.js
CHANGED
@@ -31,42 +31,52 @@ var Message = /*#__PURE__*/(0, _createClass2.default)(function Message() {
|
|
31
31
|
(0, _defineProperty2.default)(this, "isLoaded", function () {
|
32
32
|
return !!_this.attributes.id;
|
33
33
|
});
|
34
|
+
// int64 # Message 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 # Message subject.
|
40
42
|
(0, _defineProperty2.default)(this, "getSubject", function () {
|
41
43
|
return _this.attributes.subject;
|
42
44
|
});
|
43
45
|
(0, _defineProperty2.default)(this, "setSubject", function (value) {
|
44
46
|
_this.attributes.subject = value;
|
45
47
|
});
|
48
|
+
// string # Message body.
|
46
49
|
(0, _defineProperty2.default)(this, "getBody", function () {
|
47
50
|
return _this.attributes.body;
|
48
51
|
});
|
49
52
|
(0, _defineProperty2.default)(this, "setBody", function (value) {
|
50
53
|
_this.attributes.body = value;
|
51
54
|
});
|
55
|
+
// array # Comments.
|
52
56
|
(0, _defineProperty2.default)(this, "getComments", function () {
|
53
57
|
return _this.attributes.comments;
|
54
58
|
});
|
55
59
|
(0, _defineProperty2.default)(this, "setComments", function (value) {
|
56
60
|
_this.attributes.comments = value;
|
57
61
|
});
|
62
|
+
// int64 # User ID. Provide a value of `0` to operate the current session's user.
|
58
63
|
(0, _defineProperty2.default)(this, "getUserId", function () {
|
59
64
|
return _this.attributes.user_id;
|
60
65
|
});
|
61
66
|
(0, _defineProperty2.default)(this, "setUserId", function (value) {
|
62
67
|
_this.attributes.user_id = value;
|
63
68
|
});
|
69
|
+
// int64 # Project to which the message should be attached.
|
64
70
|
(0, _defineProperty2.default)(this, "getProjectId", function () {
|
65
71
|
return _this.attributes.project_id;
|
66
72
|
});
|
67
73
|
(0, _defineProperty2.default)(this, "setProjectId", function (value) {
|
68
74
|
_this.attributes.project_id = value;
|
69
75
|
});
|
76
|
+
// Parameters:
|
77
|
+
// project_id (required) - int64 - Project to which the message should be attached.
|
78
|
+
// subject (required) - string - Message subject.
|
79
|
+
// body (required) - string - Message body.
|
70
80
|
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
71
81
|
var params,
|
72
82
|
response,
|
@@ -257,6 +267,11 @@ var Message = /*#__PURE__*/(0, _createClass2.default)(function Message() {
|
|
257
267
|
});
|
258
268
|
this.options = _objectSpread({}, options);
|
259
269
|
});
|
270
|
+
// Parameters:
|
271
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
272
|
+
// 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.
|
273
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
274
|
+
// project_id (required) - int64 - Project for which to return messages.
|
260
275
|
(0, _defineProperty2.default)(Message, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
261
276
|
var _response$data;
|
262
277
|
var params,
|
@@ -316,6 +331,8 @@ var Message = /*#__PURE__*/(0, _createClass2.default)(function Message() {
|
|
316
331
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
317
332
|
return Message.list(params, options);
|
318
333
|
});
|
334
|
+
// Parameters:
|
335
|
+
// id (required) - int64 - Message ID.
|
319
336
|
(0, _defineProperty2.default)(Message, "find", /*#__PURE__*/function () {
|
320
337
|
var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(id) {
|
321
338
|
var params,
|
@@ -366,6 +383,11 @@ var Message = /*#__PURE__*/(0, _createClass2.default)(function Message() {
|
|
366
383
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
367
384
|
return Message.find(id, params, options);
|
368
385
|
});
|
386
|
+
// Parameters:
|
387
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
388
|
+
// project_id (required) - int64 - Project to which the message should be attached.
|
389
|
+
// subject (required) - string - Message subject.
|
390
|
+
// body (required) - string - Message body.
|
369
391
|
(0, _defineProperty2.default)(Message, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
370
392
|
var params,
|
371
393
|
options,
|
@@ -31,30 +31,36 @@ var MessageComment = /*#__PURE__*/(0, _createClass2.default)(function MessageCom
|
|
31
31
|
(0, _defineProperty2.default)(this, "isLoaded", function () {
|
32
32
|
return !!_this.attributes.id;
|
33
33
|
});
|
34
|
+
// int64 # Message Comment 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 # Comment body.
|
40
42
|
(0, _defineProperty2.default)(this, "getBody", function () {
|
41
43
|
return _this.attributes.body;
|
42
44
|
});
|
43
45
|
(0, _defineProperty2.default)(this, "setBody", function (value) {
|
44
46
|
_this.attributes.body = value;
|
45
47
|
});
|
48
|
+
// array # Reactions to this comment.
|
46
49
|
(0, _defineProperty2.default)(this, "getReactions", function () {
|
47
50
|
return _this.attributes.reactions;
|
48
51
|
});
|
49
52
|
(0, _defineProperty2.default)(this, "setReactions", function (value) {
|
50
53
|
_this.attributes.reactions = value;
|
51
54
|
});
|
55
|
+
// int64 # User ID. Provide a value of `0` to operate the current session's user.
|
52
56
|
(0, _defineProperty2.default)(this, "getUserId", function () {
|
53
57
|
return _this.attributes.user_id;
|
54
58
|
});
|
55
59
|
(0, _defineProperty2.default)(this, "setUserId", function (value) {
|
56
60
|
_this.attributes.user_id = value;
|
57
61
|
});
|
62
|
+
// Parameters:
|
63
|
+
// body (required) - string - Comment body.
|
58
64
|
(0, _defineProperty2.default)(this, "update", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
59
65
|
var params,
|
60
66
|
response,
|
@@ -205,6 +211,11 @@ var MessageComment = /*#__PURE__*/(0, _createClass2.default)(function MessageCom
|
|
205
211
|
});
|
206
212
|
this.options = _objectSpread({}, options);
|
207
213
|
});
|
214
|
+
// Parameters:
|
215
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
216
|
+
// 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.
|
217
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
218
|
+
// message_id (required) - int64 - Message comment to return comments for.
|
208
219
|
(0, _defineProperty2.default)(MessageComment, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3() {
|
209
220
|
var _response$data;
|
210
221
|
var params,
|
@@ -264,6 +275,8 @@ var MessageComment = /*#__PURE__*/(0, _createClass2.default)(function MessageCom
|
|
264
275
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
265
276
|
return MessageComment.list(params, options);
|
266
277
|
});
|
278
|
+
// Parameters:
|
279
|
+
// id (required) - int64 - Message Comment ID.
|
267
280
|
(0, _defineProperty2.default)(MessageComment, "find", /*#__PURE__*/function () {
|
268
281
|
var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(id) {
|
269
282
|
var params,
|
@@ -314,6 +327,9 @@ var MessageComment = /*#__PURE__*/(0, _createClass2.default)(function MessageCom
|
|
314
327
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
315
328
|
return MessageComment.find(id, params, options);
|
316
329
|
});
|
330
|
+
// Parameters:
|
331
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
332
|
+
// body (required) - string - Comment body.
|
317
333
|
(0, _defineProperty2.default)(MessageComment, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
318
334
|
var params,
|
319
335
|
options,
|
@@ -31,18 +31,21 @@ var MessageCommentReaction = /*#__PURE__*/(0, _createClass2.default)(function Me
|
|
31
31
|
(0, _defineProperty2.default)(this, "isLoaded", function () {
|
32
32
|
return !!_this.attributes.id;
|
33
33
|
});
|
34
|
+
// int64 # Reaction 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 # Emoji used in the reaction.
|
40
42
|
(0, _defineProperty2.default)(this, "getEmoji", function () {
|
41
43
|
return _this.attributes.emoji;
|
42
44
|
});
|
43
45
|
(0, _defineProperty2.default)(this, "setEmoji", function (value) {
|
44
46
|
_this.attributes.emoji = value;
|
45
47
|
});
|
48
|
+
// int64 # User ID. Provide a value of `0` to operate the current session's user.
|
46
49
|
(0, _defineProperty2.default)(this, "getUserId", function () {
|
47
50
|
return _this.attributes.user_id;
|
48
51
|
});
|
@@ -127,6 +130,11 @@ var MessageCommentReaction = /*#__PURE__*/(0, _createClass2.default)(function Me
|
|
127
130
|
});
|
128
131
|
this.options = _objectSpread({}, options);
|
129
132
|
});
|
133
|
+
// Parameters:
|
134
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
135
|
+
// 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.
|
136
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
137
|
+
// message_comment_id (required) - int64 - Message comment to return reactions for.
|
130
138
|
(0, _defineProperty2.default)(MessageCommentReaction, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
131
139
|
var _response$data;
|
132
140
|
var params,
|
@@ -186,6 +194,8 @@ var MessageCommentReaction = /*#__PURE__*/(0, _createClass2.default)(function Me
|
|
186
194
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
187
195
|
return MessageCommentReaction.list(params, options);
|
188
196
|
});
|
197
|
+
// Parameters:
|
198
|
+
// id (required) - int64 - Message Comment Reaction ID.
|
189
199
|
(0, _defineProperty2.default)(MessageCommentReaction, "find", /*#__PURE__*/function () {
|
190
200
|
var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(id) {
|
191
201
|
var params,
|
@@ -236,6 +246,9 @@ var MessageCommentReaction = /*#__PURE__*/(0, _createClass2.default)(function Me
|
|
236
246
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
237
247
|
return MessageCommentReaction.find(id, params, options);
|
238
248
|
});
|
249
|
+
// Parameters:
|
250
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
251
|
+
// emoji (required) - string - Emoji to react with.
|
239
252
|
(0, _defineProperty2.default)(MessageCommentReaction, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
240
253
|
var params,
|
241
254
|
options,
|
@@ -31,18 +31,21 @@ var MessageReaction = /*#__PURE__*/(0, _createClass2.default)(function MessageRe
|
|
31
31
|
(0, _defineProperty2.default)(this, "isLoaded", function () {
|
32
32
|
return !!_this.attributes.id;
|
33
33
|
});
|
34
|
+
// int64 # Reaction 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 # Emoji used in the reaction.
|
40
42
|
(0, _defineProperty2.default)(this, "getEmoji", function () {
|
41
43
|
return _this.attributes.emoji;
|
42
44
|
});
|
43
45
|
(0, _defineProperty2.default)(this, "setEmoji", function (value) {
|
44
46
|
_this.attributes.emoji = value;
|
45
47
|
});
|
48
|
+
// int64 # User ID. Provide a value of `0` to operate the current session's user.
|
46
49
|
(0, _defineProperty2.default)(this, "getUserId", function () {
|
47
50
|
return _this.attributes.user_id;
|
48
51
|
});
|
@@ -127,6 +130,11 @@ var MessageReaction = /*#__PURE__*/(0, _createClass2.default)(function MessageRe
|
|
127
130
|
});
|
128
131
|
this.options = _objectSpread({}, options);
|
129
132
|
});
|
133
|
+
// Parameters:
|
134
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
135
|
+
// 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.
|
136
|
+
// per_page - int64 - Number of records to show per page. (Max: 10,000, 1,000 or less is recommended).
|
137
|
+
// message_id (required) - int64 - Message to return reactions for.
|
130
138
|
(0, _defineProperty2.default)(MessageReaction, "list", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2() {
|
131
139
|
var _response$data;
|
132
140
|
var params,
|
@@ -186,6 +194,8 @@ var MessageReaction = /*#__PURE__*/(0, _createClass2.default)(function MessageRe
|
|
186
194
|
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
187
195
|
return MessageReaction.list(params, options);
|
188
196
|
});
|
197
|
+
// Parameters:
|
198
|
+
// id (required) - int64 - Message Reaction ID.
|
189
199
|
(0, _defineProperty2.default)(MessageReaction, "find", /*#__PURE__*/function () {
|
190
200
|
var _ref5 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(id) {
|
191
201
|
var params,
|
@@ -236,6 +246,9 @@ var MessageReaction = /*#__PURE__*/(0, _createClass2.default)(function MessageRe
|
|
236
246
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
237
247
|
return MessageReaction.find(id, params, options);
|
238
248
|
});
|
249
|
+
// Parameters:
|
250
|
+
// user_id - int64 - User ID. Provide a value of `0` to operate the current session's user.
|
251
|
+
// emoji (required) - string - Emoji to react with.
|
239
252
|
(0, _defineProperty2.default)(MessageReaction, "create", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4() {
|
240
253
|
var params,
|
241
254
|
options,
|