files.com 1.0.196 → 1.0.199
Sign up to get free protection for your applications and to get access to all the features.
- package/_VERSION +1 -1
- package/docs/models/AccountLineItem.md +24 -20
- package/docs/models/App.md +1 -1
- package/docs/models/Automation.md +10 -6
- package/docs/models/Bundle.md +39 -28
- package/docs/models/File.md +4 -0
- package/docs/models/FileComment.md +13 -9
- package/docs/models/Folder.md +2 -0
- package/docs/models/FormField.md +1 -1
- package/docs/models/FormFieldSet.md +36 -32
- package/docs/models/Group.md +13 -25
- package/docs/models/Invoice.md +24 -20
- package/docs/models/InvoiceLineItem.md +1 -1
- package/docs/models/Message.md +21 -13
- package/docs/models/MessageComment.md +13 -9
- package/docs/models/Notification.md +2 -2
- package/docs/models/Payment.md +24 -20
- package/docs/models/RemoteServer.md +10 -0
- package/docs/models/SettingsChange.md +1 -1
- package/docs/models/Site.md +8 -0
- package/docs/models/Status.md +9 -7
- package/docs/models/UsageDailySnapshot.md +1 -1
- package/lib/models/ActionNotificationExport.js +1 -1
- package/lib/models/ActionWebhookFailure.js +1 -1
- package/lib/models/ApiKey.js +3 -3
- package/lib/models/As2Partner.js +3 -3
- package/lib/models/As2Station.js +3 -3
- package/lib/models/Automation.js +3 -3
- package/lib/models/AutomationRun.js +1 -1
- package/lib/models/Behavior.js +4 -4
- package/lib/models/Bundle.js +41 -19
- package/lib/models/Clickwrap.js +3 -3
- package/lib/models/ExternalEvent.js +1 -1
- package/lib/models/File.js +11 -8
- package/lib/models/FileComment.js +3 -3
- package/lib/models/FileCommentReaction.js +1 -1
- package/lib/models/FileMigration.js +1 -1
- package/lib/models/Folder.js +5 -2
- package/lib/models/FormFieldSet.js +3 -3
- package/lib/models/Group.js +3 -3
- package/lib/models/GroupUser.js +2 -2
- package/lib/models/History.js +3 -3
- package/lib/models/HistoryExport.js +1 -1
- package/lib/models/Invoice.js +1 -1
- package/lib/models/Lock.js +3 -3
- package/lib/models/Message.js +3 -3
- package/lib/models/MessageComment.js +3 -3
- package/lib/models/MessageCommentReaction.js +2 -2
- package/lib/models/MessageReaction.js +2 -2
- package/lib/models/Notification.js +3 -3
- package/lib/models/Payment.js +1 -1
- package/lib/models/Permission.js +1 -1
- package/lib/models/Project.js +3 -3
- package/lib/models/PublicKey.js +3 -3
- package/lib/models/RemoteServer.js +15 -3
- package/lib/models/Request.js +2 -2
- package/lib/models/Site.js +6 -0
- package/lib/models/SsoStrategy.js +2 -2
- package/lib/models/Style.js +3 -3
- package/lib/models/User.js +6 -6
- package/lib/models/UserRequest.js +2 -2
- package/package.json +1 -1
- package/src/models/AccountLineItem.js +2 -2
- package/src/models/ActionNotificationExport.js +1 -1
- package/src/models/ActionWebhookFailure.js +1 -1
- package/src/models/ApiKey.js +3 -3
- package/src/models/App.js +1 -1
- package/src/models/As2Partner.js +3 -3
- package/src/models/As2Station.js +3 -3
- package/src/models/Automation.js +5 -5
- package/src/models/AutomationRun.js +1 -1
- package/src/models/Behavior.js +4 -4
- package/src/models/Bundle.js +20 -4
- package/src/models/Clickwrap.js +3 -3
- package/src/models/ExternalEvent.js +1 -1
- package/src/models/File.js +11 -8
- package/src/models/FileComment.js +4 -4
- package/src/models/FileCommentReaction.js +1 -1
- package/src/models/FileMigration.js +1 -1
- package/src/models/Folder.js +5 -2
- package/src/models/FormField.js +1 -1
- package/src/models/FormFieldSet.js +5 -5
- package/src/models/Group.js +6 -6
- package/src/models/GroupUser.js +2 -2
- package/src/models/History.js +3 -3
- package/src/models/HistoryExport.js +1 -1
- package/src/models/Invoice.js +3 -3
- package/src/models/Lock.js +3 -3
- package/src/models/Message.js +4 -4
- package/src/models/MessageComment.js +4 -4
- package/src/models/MessageCommentReaction.js +2 -2
- package/src/models/MessageReaction.js +2 -2
- package/src/models/Notification.js +5 -5
- package/src/models/Payment.js +3 -3
- package/src/models/Permission.js +1 -1
- package/src/models/Project.js +3 -3
- package/src/models/PublicKey.js +3 -3
- package/src/models/RemoteServer.js +19 -3
- package/src/models/Request.js +2 -2
- package/src/models/SettingsChange.js +1 -1
- package/src/models/Site.js +8 -0
- package/src/models/SsoStrategy.js +2 -2
- package/src/models/Status.js +1 -1
- package/src/models/Style.js +3 -3
- package/src/models/User.js +6 -6
- package/src/models/UserRequest.js +2 -2
package/src/models/File.js
CHANGED
@@ -221,6 +221,9 @@ class File {
|
|
221
221
|
this.attributes.size = value
|
222
222
|
}
|
223
223
|
|
224
|
+
// date-time # File created date/time
|
225
|
+
getCreatedAt = () => this.attributes.created_at
|
226
|
+
|
224
227
|
// date-time # File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
|
225
228
|
getMtime = () => this.attributes.mtime
|
226
229
|
|
@@ -404,7 +407,7 @@ class File {
|
|
404
407
|
}
|
405
408
|
}
|
406
409
|
|
407
|
-
const response = await Api.sendRequest(`/files/${params['path']}`, 'GET', params, this.options)
|
410
|
+
const response = await Api.sendRequest(`/files/${encodeURIComponent(params['path'])}`, 'GET', params, this.options)
|
408
411
|
|
409
412
|
return new File(response?.data, this.options)
|
410
413
|
}
|
@@ -440,7 +443,7 @@ class File {
|
|
440
443
|
}
|
441
444
|
}
|
442
445
|
|
443
|
-
const response = await Api.sendRequest(`/files/${params['path']}`, 'PATCH', params, this.options)
|
446
|
+
const response = await Api.sendRequest(`/files/${encodeURIComponent(params['path'])}`, 'PATCH', params, this.options)
|
444
447
|
|
445
448
|
return new File(response?.data, this.options)
|
446
449
|
}
|
@@ -469,7 +472,7 @@ class File {
|
|
469
472
|
}
|
470
473
|
}
|
471
474
|
|
472
|
-
const response = await Api.sendRequest(`/files/${params['path']}`, 'DELETE', params, this.options)
|
475
|
+
const response = await Api.sendRequest(`/files/${encodeURIComponent(params['path'])}`, 'DELETE', params, this.options)
|
473
476
|
|
474
477
|
return response?.data
|
475
478
|
}
|
@@ -515,7 +518,7 @@ class File {
|
|
515
518
|
}
|
516
519
|
}
|
517
520
|
|
518
|
-
const response = await Api.sendRequest(`/file_actions/copy/${params['path']}`, 'POST', params, this.options)
|
521
|
+
const response = await Api.sendRequest(`/file_actions/copy/${encodeURIComponent(params['path'])}`, 'POST', params, this.options)
|
519
522
|
|
520
523
|
return new FileAction(response?.data, this.options)
|
521
524
|
}
|
@@ -557,7 +560,7 @@ class File {
|
|
557
560
|
}
|
558
561
|
}
|
559
562
|
|
560
|
-
const response = await Api.sendRequest(`/file_actions/move/${params['path']}`, 'POST', params, this.options)
|
563
|
+
const response = await Api.sendRequest(`/file_actions/move/${encodeURIComponent(params['path'])}`, 'POST', params, this.options)
|
561
564
|
|
562
565
|
return new FileAction(response?.data, this.options)
|
563
566
|
}
|
@@ -609,7 +612,7 @@ class File {
|
|
609
612
|
}
|
610
613
|
}
|
611
614
|
|
612
|
-
const response = await Api.sendRequest(`/file_actions/begin_upload/${params['path']}`, 'POST', params, this.options)
|
615
|
+
const response = await Api.sendRequest(`/file_actions/begin_upload/${encodeURIComponent(params['path'])}`, 'POST', params, this.options)
|
613
616
|
|
614
617
|
return response?.data?.map(obj => new FileUploadPart(obj, this.options)) || []
|
615
618
|
}
|
@@ -686,7 +689,7 @@ class File {
|
|
686
689
|
throw new errors.InvalidParameterError(`Bad parameter: structure must be of type String, received ${getType(params['structure'])}`)
|
687
690
|
}
|
688
691
|
|
689
|
-
const response = await Api.sendRequest(`/files/${params['path']}`, 'POST', params, options)
|
692
|
+
const response = await Api.sendRequest(`/files/${encodeURIComponent(params['path'])}`, 'POST', params, options)
|
690
693
|
|
691
694
|
return new File(response?.data, options)
|
692
695
|
}
|
@@ -715,7 +718,7 @@ class File {
|
|
715
718
|
throw new errors.InvalidParameterError(`Bad parameter: preview_size must be of type String, received ${getType(params['preview_size'])}`)
|
716
719
|
}
|
717
720
|
|
718
|
-
const response = await Api.sendRequest(`/file_actions/metadata/${params['path']}`, 'GET', params, options)
|
721
|
+
const response = await Api.sendRequest(`/file_actions/metadata/${encodeURIComponent(params['path'])}`, 'GET', params, options)
|
719
722
|
|
720
723
|
return new File(response?.data, options)
|
721
724
|
}
|
@@ -37,7 +37,7 @@ class FileComment {
|
|
37
37
|
this.attributes.body = value
|
38
38
|
}
|
39
39
|
|
40
|
-
//
|
40
|
+
// array # Reactions to this comment.
|
41
41
|
getReactions = () => this.attributes.reactions
|
42
42
|
|
43
43
|
setReactions = value => {
|
@@ -87,7 +87,7 @@ class FileComment {
|
|
87
87
|
}
|
88
88
|
}
|
89
89
|
|
90
|
-
const response = await Api.sendRequest(`/file_comments/${params['id']}`, 'PATCH', params, this.options)
|
90
|
+
const response = await Api.sendRequest(`/file_comments/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
91
91
|
|
92
92
|
return new FileComment(response?.data, this.options)
|
93
93
|
}
|
@@ -114,7 +114,7 @@ class FileComment {
|
|
114
114
|
}
|
115
115
|
}
|
116
116
|
|
117
|
-
const response = await Api.sendRequest(`/file_comments/${params['id']}`, 'DELETE', params, this.options)
|
117
|
+
const response = await Api.sendRequest(`/file_comments/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
118
118
|
|
119
119
|
return response?.data
|
120
120
|
}
|
@@ -159,7 +159,7 @@ class FileComment {
|
|
159
159
|
throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params['path'])}`)
|
160
160
|
}
|
161
161
|
|
162
|
-
const response = await Api.sendRequest(`/file_comments/files/${params['path']}`, 'GET', params, options)
|
162
|
+
const response = await Api.sendRequest(`/file_comments/files/${encodeURIComponent(params['path'])}`, 'GET', params, options)
|
163
163
|
|
164
164
|
return response?.data?.map(obj => new FileComment(obj, options)) || []
|
165
165
|
}
|
@@ -74,7 +74,7 @@ class FileCommentReaction {
|
|
74
74
|
}
|
75
75
|
}
|
76
76
|
|
77
|
-
const response = await Api.sendRequest(`/file_comment_reactions/${params['id']}`, 'DELETE', params, this.options)
|
77
|
+
const response = await Api.sendRequest(`/file_comment_reactions/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
78
78
|
|
79
79
|
return response?.data
|
80
80
|
}
|
@@ -68,7 +68,7 @@ class FileMigration {
|
|
68
68
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
69
69
|
}
|
70
70
|
|
71
|
-
const response = await Api.sendRequest(`/file_migrations/${params['id']}`, 'GET', params, options)
|
71
|
+
const response = await Api.sendRequest(`/file_migrations/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
72
72
|
|
73
73
|
return new FileMigration(response?.data, options)
|
74
74
|
}
|
package/src/models/Folder.js
CHANGED
@@ -52,6 +52,9 @@ class Folder {
|
|
52
52
|
this.attributes.size = value
|
53
53
|
}
|
54
54
|
|
55
|
+
// date-time # File created date/time
|
56
|
+
getCreatedAt = () => this.attributes.created_at
|
57
|
+
|
55
58
|
// date-time # File last modified date/time, according to the server. This is the timestamp of the last Files.com operation of the file, regardless of what modified timestamp was sent.
|
56
59
|
getMtime = () => this.attributes.mtime
|
57
60
|
|
@@ -195,7 +198,7 @@ class Folder {
|
|
195
198
|
throw new errors.InvalidParameterError(`Bad parameter: search must be of type String, received ${getType(params['search'])}`)
|
196
199
|
}
|
197
200
|
|
198
|
-
const response = await Api.sendRequest(`/folders/${params['path']}`, 'GET', params, options)
|
201
|
+
const response = await Api.sendRequest(`/folders/${encodeURIComponent(params['path'])}`, 'GET', params, options)
|
199
202
|
|
200
203
|
return response?.data?.map(obj => new File(obj, options)) || []
|
201
204
|
}
|
@@ -218,7 +221,7 @@ class Folder {
|
|
218
221
|
throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params['path'])}`)
|
219
222
|
}
|
220
223
|
|
221
|
-
const response = await Api.sendRequest(`/folders/${params['path']}`, 'POST', params, options)
|
224
|
+
const response = await Api.sendRequest(`/folders/${encodeURIComponent(params['path'])}`, 'POST', params, options)
|
222
225
|
|
223
226
|
return new File(response?.data, options)
|
224
227
|
}
|
package/src/models/FormField.js
CHANGED
@@ -38,7 +38,7 @@ class FormField {
|
|
38
38
|
// string # Type of Field
|
39
39
|
getFieldType = () => this.attributes.field_type
|
40
40
|
|
41
|
-
//
|
41
|
+
// array # Options to display for radio and dropdown
|
42
42
|
getOptionsForSelect = () => this.attributes.options_for_select
|
43
43
|
|
44
44
|
// string # Default option for radio and dropdown
|
@@ -37,14 +37,14 @@ class FormFieldSet {
|
|
37
37
|
this.attributes.title = value
|
38
38
|
}
|
39
39
|
|
40
|
-
//
|
40
|
+
// array # Layout of the form
|
41
41
|
getFormLayout = () => this.attributes.form_layout
|
42
42
|
|
43
43
|
setFormLayout = value => {
|
44
44
|
this.attributes.form_layout = value
|
45
45
|
}
|
46
46
|
|
47
|
-
//
|
47
|
+
// array # Associated form fields
|
48
48
|
getFormFields = () => this.attributes.form_fields
|
49
49
|
|
50
50
|
setFormFields = value => {
|
@@ -114,7 +114,7 @@ class FormFieldSet {
|
|
114
114
|
}
|
115
115
|
}
|
116
116
|
|
117
|
-
const response = await Api.sendRequest(`/form_field_sets/${params['id']}`, 'PATCH', params, this.options)
|
117
|
+
const response = await Api.sendRequest(`/form_field_sets/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
118
118
|
|
119
119
|
return new FormFieldSet(response?.data, this.options)
|
120
120
|
}
|
@@ -141,7 +141,7 @@ class FormFieldSet {
|
|
141
141
|
}
|
142
142
|
}
|
143
143
|
|
144
|
-
const response = await Api.sendRequest(`/form_field_sets/${params['id']}`, 'DELETE', params, this.options)
|
144
|
+
const response = await Api.sendRequest(`/form_field_sets/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
145
145
|
|
146
146
|
return response?.data
|
147
147
|
}
|
@@ -201,7 +201,7 @@ class FormFieldSet {
|
|
201
201
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
202
202
|
}
|
203
203
|
|
204
|
-
const response = await Api.sendRequest(`/form_field_sets/${params['id']}`, 'GET', params, options)
|
204
|
+
const response = await Api.sendRequest(`/form_field_sets/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
205
205
|
|
206
206
|
return new FormFieldSet(response?.data, options)
|
207
207
|
}
|
package/src/models/Group.js
CHANGED
@@ -37,7 +37,7 @@ class Group {
|
|
37
37
|
this.attributes.name = value
|
38
38
|
}
|
39
39
|
|
40
|
-
// string #
|
40
|
+
// string # Comma-delimited list of user IDs who are group administrators (separated by commas)
|
41
41
|
getAdminIds = () => this.attributes.admin_ids
|
42
42
|
|
43
43
|
setAdminIds = value => {
|
@@ -51,14 +51,14 @@ class Group {
|
|
51
51
|
this.attributes.notes = value
|
52
52
|
}
|
53
53
|
|
54
|
-
//
|
54
|
+
// string # Comma-delimited list of user IDs who belong to this group (separated by commas)
|
55
55
|
getUserIds = () => this.attributes.user_ids
|
56
56
|
|
57
57
|
setUserIds = value => {
|
58
58
|
this.attributes.user_ids = value
|
59
59
|
}
|
60
60
|
|
61
|
-
//
|
61
|
+
// string # Comma-delimited list of usernames who belong to this group (separated by commas)
|
62
62
|
getUsernames = () => this.attributes.usernames
|
63
63
|
|
64
64
|
setUsernames = value => {
|
@@ -105,7 +105,7 @@ class Group {
|
|
105
105
|
}
|
106
106
|
}
|
107
107
|
|
108
|
-
const response = await Api.sendRequest(`/groups/${params['id']}`, 'PATCH', params, this.options)
|
108
|
+
const response = await Api.sendRequest(`/groups/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
109
109
|
|
110
110
|
return new Group(response?.data, this.options)
|
111
111
|
}
|
@@ -132,7 +132,7 @@ class Group {
|
|
132
132
|
}
|
133
133
|
}
|
134
134
|
|
135
|
-
const response = await Api.sendRequest(`/groups/${params['id']}`, 'DELETE', params, this.options)
|
135
|
+
const response = await Api.sendRequest(`/groups/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
136
136
|
|
137
137
|
return response?.data
|
138
138
|
}
|
@@ -199,7 +199,7 @@ class Group {
|
|
199
199
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
200
200
|
}
|
201
201
|
|
202
|
-
const response = await Api.sendRequest(`/groups/${params['id']}`, 'GET', params, options)
|
202
|
+
const response = await Api.sendRequest(`/groups/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
203
203
|
|
204
204
|
return new Group(response?.data, options)
|
205
205
|
}
|
package/src/models/GroupUser.js
CHANGED
@@ -114,7 +114,7 @@ class GroupUser {
|
|
114
114
|
}
|
115
115
|
}
|
116
116
|
|
117
|
-
const response = await Api.sendRequest(`/group_users/${params['id']}`, 'PATCH', params, this.options)
|
117
|
+
const response = await Api.sendRequest(`/group_users/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
118
118
|
|
119
119
|
return new GroupUser(response?.data, this.options)
|
120
120
|
}
|
@@ -166,7 +166,7 @@ class GroupUser {
|
|
166
166
|
}
|
167
167
|
}
|
168
168
|
|
169
|
-
const response = await Api.sendRequest(`/group_users/${params['id']}`, 'DELETE', params, this.options)
|
169
|
+
const response = await Api.sendRequest(`/group_users/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
170
170
|
|
171
171
|
return response?.data
|
172
172
|
}
|
package/src/models/History.js
CHANGED
@@ -106,7 +106,7 @@ class History {
|
|
106
106
|
throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params['path'])}`)
|
107
107
|
}
|
108
108
|
|
109
|
-
const response = await Api.sendRequest(`/history/files/${params['path']}`, 'GET', params, options)
|
109
|
+
const response = await Api.sendRequest(`/history/files/${encodeURIComponent(params['path'])}`, 'GET', params, options)
|
110
110
|
|
111
111
|
return response?.data?.map(obj => new Action(obj, options)) || []
|
112
112
|
}
|
@@ -154,7 +154,7 @@ class History {
|
|
154
154
|
throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params['path'])}`)
|
155
155
|
}
|
156
156
|
|
157
|
-
const response = await Api.sendRequest(`/history/folders/${params['path']}`, 'GET', params, options)
|
157
|
+
const response = await Api.sendRequest(`/history/folders/${encodeURIComponent(params['path'])}`, 'GET', params, options)
|
158
158
|
|
159
159
|
return response?.data?.map(obj => new Action(obj, options)) || []
|
160
160
|
}
|
@@ -202,7 +202,7 @@ class History {
|
|
202
202
|
throw new errors.InvalidParameterError(`Bad parameter: user_id must be of type Int, received ${getType(params['user_id'])}`)
|
203
203
|
}
|
204
204
|
|
205
|
-
const response = await Api.sendRequest(`/history/users/${params['user_id']}`, 'GET', params, options)
|
205
|
+
const response = await Api.sendRequest(`/history/users/${encodeURIComponent(params['user_id'])}`, 'GET', params, options)
|
206
206
|
|
207
207
|
return response?.data?.map(obj => new Action(obj, options)) || []
|
208
208
|
}
|
@@ -233,7 +233,7 @@ class HistoryExport {
|
|
233
233
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
234
234
|
}
|
235
235
|
|
236
|
-
const response = await Api.sendRequest(`/history_exports/${params['id']}`, 'GET', params, options)
|
236
|
+
const response = await Api.sendRequest(`/history_exports/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
237
237
|
|
238
238
|
return new HistoryExport(response?.data, options)
|
239
239
|
}
|
package/src/models/Invoice.js
CHANGED
@@ -41,13 +41,13 @@ class Invoice {
|
|
41
41
|
// string # Line item download uri
|
42
42
|
getDownloadUri = () => this.attributes.download_uri
|
43
43
|
|
44
|
-
//
|
44
|
+
// array # Associated invoice line items
|
45
45
|
getInvoiceLineItems = () => this.attributes.invoice_line_items
|
46
46
|
|
47
47
|
// string # Line item payment method
|
48
48
|
getMethod = () => this.attributes.method
|
49
49
|
|
50
|
-
//
|
50
|
+
// array # Associated payment line items
|
51
51
|
getPaymentLineItems = () => this.attributes.payment_line_items
|
52
52
|
|
53
53
|
// date-time # Date/time payment was reversed if applicable
|
@@ -103,7 +103,7 @@ class Invoice {
|
|
103
103
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
104
104
|
}
|
105
105
|
|
106
|
-
const response = await Api.sendRequest(`/invoices/${params['id']}`, 'GET', params, options)
|
106
|
+
const response = await Api.sendRequest(`/invoices/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
107
107
|
|
108
108
|
return new AccountLineItem(response?.data, options)
|
109
109
|
}
|
package/src/models/Lock.js
CHANGED
@@ -143,7 +143,7 @@ class Lock {
|
|
143
143
|
}
|
144
144
|
}
|
145
145
|
|
146
|
-
const response = await Api.sendRequest(`/locks/${params['path']}`, 'DELETE', params, this.options)
|
146
|
+
const response = await Api.sendRequest(`/locks/${encodeURIComponent(params['path'])}`, 'DELETE', params, this.options)
|
147
147
|
|
148
148
|
return response?.data
|
149
149
|
}
|
@@ -185,7 +185,7 @@ class Lock {
|
|
185
185
|
throw new errors.InvalidParameterError(`Bad parameter: path must be of type String, received ${getType(params['path'])}`)
|
186
186
|
}
|
187
187
|
|
188
|
-
const response = await Api.sendRequest(`/locks/${params['path']}`, 'GET', params, options)
|
188
|
+
const response = await Api.sendRequest(`/locks/${encodeURIComponent(params['path'])}`, 'GET', params, options)
|
189
189
|
|
190
190
|
return response?.data?.map(obj => new Lock(obj, options)) || []
|
191
191
|
}
|
@@ -219,7 +219,7 @@ class Lock {
|
|
219
219
|
throw new errors.InvalidParameterError(`Bad parameter: timeout must be of type Int, received ${getType(params['timeout'])}`)
|
220
220
|
}
|
221
221
|
|
222
|
-
const response = await Api.sendRequest(`/locks/${params['path']}`, 'POST', params, options)
|
222
|
+
const response = await Api.sendRequest(`/locks/${encodeURIComponent(params['path'])}`, 'POST', params, options)
|
223
223
|
|
224
224
|
return new Lock(response?.data, options)
|
225
225
|
}
|
package/src/models/Message.js
CHANGED
@@ -44,7 +44,7 @@ class Message {
|
|
44
44
|
this.attributes.body = value
|
45
45
|
}
|
46
46
|
|
47
|
-
//
|
47
|
+
// array # Comments.
|
48
48
|
getComments = () => this.attributes.comments
|
49
49
|
|
50
50
|
setComments = value => {
|
@@ -125,7 +125,7 @@ class Message {
|
|
125
125
|
}
|
126
126
|
}
|
127
127
|
|
128
|
-
const response = await Api.sendRequest(`/messages/${params['id']}`, 'PATCH', params, this.options)
|
128
|
+
const response = await Api.sendRequest(`/messages/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
129
129
|
|
130
130
|
return new Message(response?.data, this.options)
|
131
131
|
}
|
@@ -152,7 +152,7 @@ class Message {
|
|
152
152
|
}
|
153
153
|
}
|
154
154
|
|
155
|
-
const response = await Api.sendRequest(`/messages/${params['id']}`, 'DELETE', params, this.options)
|
155
|
+
const response = await Api.sendRequest(`/messages/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
156
156
|
|
157
157
|
return response?.data
|
158
158
|
}
|
@@ -221,7 +221,7 @@ class Message {
|
|
221
221
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
222
222
|
}
|
223
223
|
|
224
|
-
const response = await Api.sendRequest(`/messages/${params['id']}`, 'GET', params, options)
|
224
|
+
const response = await Api.sendRequest(`/messages/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
225
225
|
|
226
226
|
return new Message(response?.data, options)
|
227
227
|
}
|
@@ -37,7 +37,7 @@ class MessageComment {
|
|
37
37
|
this.attributes.body = value
|
38
38
|
}
|
39
39
|
|
40
|
-
//
|
40
|
+
// array # Reactions to this comment.
|
41
41
|
getReactions = () => this.attributes.reactions
|
42
42
|
|
43
43
|
setReactions = value => {
|
@@ -87,7 +87,7 @@ class MessageComment {
|
|
87
87
|
}
|
88
88
|
}
|
89
89
|
|
90
|
-
const response = await Api.sendRequest(`/message_comments/${params['id']}`, 'PATCH', params, this.options)
|
90
|
+
const response = await Api.sendRequest(`/message_comments/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
91
91
|
|
92
92
|
return new MessageComment(response?.data, this.options)
|
93
93
|
}
|
@@ -114,7 +114,7 @@ class MessageComment {
|
|
114
114
|
}
|
115
115
|
}
|
116
116
|
|
117
|
-
const response = await Api.sendRequest(`/message_comments/${params['id']}`, 'DELETE', params, this.options)
|
117
|
+
const response = await Api.sendRequest(`/message_comments/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
118
118
|
|
119
119
|
return response?.data
|
120
120
|
}
|
@@ -183,7 +183,7 @@ class MessageComment {
|
|
183
183
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
184
184
|
}
|
185
185
|
|
186
|
-
const response = await Api.sendRequest(`/message_comments/${params['id']}`, 'GET', params, options)
|
186
|
+
const response = await Api.sendRequest(`/message_comments/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
187
187
|
|
188
188
|
return new MessageComment(response?.data, options)
|
189
189
|
}
|
@@ -67,7 +67,7 @@ class MessageCommentReaction {
|
|
67
67
|
}
|
68
68
|
}
|
69
69
|
|
70
|
-
const response = await Api.sendRequest(`/message_comment_reactions/${params['id']}`, 'DELETE', params, this.options)
|
70
|
+
const response = await Api.sendRequest(`/message_comment_reactions/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
71
71
|
|
72
72
|
return response?.data
|
73
73
|
}
|
@@ -136,7 +136,7 @@ class MessageCommentReaction {
|
|
136
136
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
137
137
|
}
|
138
138
|
|
139
|
-
const response = await Api.sendRequest(`/message_comment_reactions/${params['id']}`, 'GET', params, options)
|
139
|
+
const response = await Api.sendRequest(`/message_comment_reactions/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
140
140
|
|
141
141
|
return new MessageCommentReaction(response?.data, options)
|
142
142
|
}
|
@@ -67,7 +67,7 @@ class MessageReaction {
|
|
67
67
|
}
|
68
68
|
}
|
69
69
|
|
70
|
-
const response = await Api.sendRequest(`/message_reactions/${params['id']}`, 'DELETE', params, this.options)
|
70
|
+
const response = await Api.sendRequest(`/message_reactions/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
71
71
|
|
72
72
|
return response?.data
|
73
73
|
}
|
@@ -136,7 +136,7 @@ class MessageReaction {
|
|
136
136
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
137
137
|
}
|
138
138
|
|
139
|
-
const response = await Api.sendRequest(`/message_reactions/${params['id']}`, 'GET', params, options)
|
139
|
+
const response = await Api.sendRequest(`/message_reactions/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
140
140
|
|
141
141
|
return new MessageReaction(response?.data, options)
|
142
142
|
}
|
@@ -51,14 +51,14 @@ class Notification {
|
|
51
51
|
this.attributes.group_name = value
|
52
52
|
}
|
53
53
|
|
54
|
-
//
|
54
|
+
// array # Only notify on actions made by a member of one of the specified groups
|
55
55
|
getTriggeringGroupIds = () => this.attributes.triggering_group_ids
|
56
56
|
|
57
57
|
setTriggeringGroupIds = value => {
|
58
58
|
this.attributes.triggering_group_ids = value
|
59
59
|
}
|
60
60
|
|
61
|
-
//
|
61
|
+
// array # Only notify on actions made one of the specified users
|
62
62
|
getTriggeringUserIds = () => this.attributes.triggering_user_ids
|
63
63
|
|
64
64
|
setTriggeringUserIds = value => {
|
@@ -229,7 +229,7 @@ class Notification {
|
|
229
229
|
}
|
230
230
|
}
|
231
231
|
|
232
|
-
const response = await Api.sendRequest(`/notifications/${params['id']}`, 'PATCH', params, this.options)
|
232
|
+
const response = await Api.sendRequest(`/notifications/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
233
233
|
|
234
234
|
return new Notification(response?.data, this.options)
|
235
235
|
}
|
@@ -256,7 +256,7 @@ class Notification {
|
|
256
256
|
}
|
257
257
|
}
|
258
258
|
|
259
|
-
const response = await Api.sendRequest(`/notifications/${params['id']}`, 'DELETE', params, this.options)
|
259
|
+
const response = await Api.sendRequest(`/notifications/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
260
260
|
|
261
261
|
return response?.data
|
262
262
|
}
|
@@ -334,7 +334,7 @@ class Notification {
|
|
334
334
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
335
335
|
}
|
336
336
|
|
337
|
-
const response = await Api.sendRequest(`/notifications/${params['id']}`, 'GET', params, options)
|
337
|
+
const response = await Api.sendRequest(`/notifications/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
338
338
|
|
339
339
|
return new Notification(response?.data, options)
|
340
340
|
}
|
package/src/models/Payment.js
CHANGED
@@ -41,13 +41,13 @@ class Payment {
|
|
41
41
|
// string # Line item download uri
|
42
42
|
getDownloadUri = () => this.attributes.download_uri
|
43
43
|
|
44
|
-
//
|
44
|
+
// array # Associated invoice line items
|
45
45
|
getInvoiceLineItems = () => this.attributes.invoice_line_items
|
46
46
|
|
47
47
|
// string # Line item payment method
|
48
48
|
getMethod = () => this.attributes.method
|
49
49
|
|
50
|
-
//
|
50
|
+
// array # Associated payment line items
|
51
51
|
getPaymentLineItems = () => this.attributes.payment_line_items
|
52
52
|
|
53
53
|
// date-time # Date/time payment was reversed if applicable
|
@@ -103,7 +103,7 @@ class Payment {
|
|
103
103
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
104
104
|
}
|
105
105
|
|
106
|
-
const response = await Api.sendRequest(`/payments/${params['id']}`, 'GET', params, options)
|
106
|
+
const response = await Api.sendRequest(`/payments/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
107
107
|
|
108
108
|
return new AccountLineItem(response?.data, options)
|
109
109
|
}
|
package/src/models/Permission.js
CHANGED
@@ -102,7 +102,7 @@ class Permission {
|
|
102
102
|
}
|
103
103
|
}
|
104
104
|
|
105
|
-
const response = await Api.sendRequest(`/permissions/${params['id']}`, 'DELETE', params, this.options)
|
105
|
+
const response = await Api.sendRequest(`/permissions/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
106
106
|
|
107
107
|
return response?.data
|
108
108
|
}
|
package/src/models/Project.js
CHANGED
@@ -73,7 +73,7 @@ class Project {
|
|
73
73
|
}
|
74
74
|
}
|
75
75
|
|
76
|
-
const response = await Api.sendRequest(`/projects/${params['id']}`, 'PATCH', params, this.options)
|
76
|
+
const response = await Api.sendRequest(`/projects/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
77
77
|
|
78
78
|
return new Project(response?.data, this.options)
|
79
79
|
}
|
@@ -100,7 +100,7 @@ class Project {
|
|
100
100
|
}
|
101
101
|
}
|
102
102
|
|
103
|
-
const response = await Api.sendRequest(`/projects/${params['id']}`, 'DELETE', params, this.options)
|
103
|
+
const response = await Api.sendRequest(`/projects/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
104
104
|
|
105
105
|
return response?.data
|
106
106
|
}
|
@@ -155,7 +155,7 @@ class Project {
|
|
155
155
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
156
156
|
}
|
157
157
|
|
158
|
-
const response = await Api.sendRequest(`/projects/${params['id']}`, 'GET', params, options)
|
158
|
+
const response = await Api.sendRequest(`/projects/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
159
159
|
|
160
160
|
return new Project(response?.data, options)
|
161
161
|
}
|
package/src/models/PublicKey.js
CHANGED
@@ -97,7 +97,7 @@ class PublicKey {
|
|
97
97
|
}
|
98
98
|
}
|
99
99
|
|
100
|
-
const response = await Api.sendRequest(`/public_keys/${params['id']}`, 'PATCH', params, this.options)
|
100
|
+
const response = await Api.sendRequest(`/public_keys/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
|
101
101
|
|
102
102
|
return new PublicKey(response?.data, this.options)
|
103
103
|
}
|
@@ -124,7 +124,7 @@ class PublicKey {
|
|
124
124
|
}
|
125
125
|
}
|
126
126
|
|
127
|
-
const response = await Api.sendRequest(`/public_keys/${params['id']}`, 'DELETE', params, this.options)
|
127
|
+
const response = await Api.sendRequest(`/public_keys/${encodeURIComponent(params['id'])}`, 'DELETE', params, this.options)
|
128
128
|
|
129
129
|
return response?.data
|
130
130
|
}
|
@@ -184,7 +184,7 @@ class PublicKey {
|
|
184
184
|
throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
|
185
185
|
}
|
186
186
|
|
187
|
-
const response = await Api.sendRequest(`/public_keys/${params['id']}`, 'GET', params, options)
|
187
|
+
const response = await Api.sendRequest(`/public_keys/${encodeURIComponent(params['id'])}`, 'GET', params, options)
|
188
188
|
|
189
189
|
return new PublicKey(response?.data, options)
|
190
190
|
}
|