files.com 1.0.420 → 1.0.422

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. package/.eslintrc.js +179 -0
  2. package/_VERSION +1 -1
  3. package/lib/Api.js +16 -15
  4. package/lib/Errors.js +4 -2
  5. package/lib/Files.js +6 -6
  6. package/lib/Logger.js +20 -12
  7. package/lib/models/AccountLineItem.js +4 -4
  8. package/lib/models/Action.js +4 -4
  9. package/lib/models/ActionNotificationExport.js +4 -3
  10. package/lib/models/ActionNotificationExportResult.js +4 -3
  11. package/lib/models/ActionWebhookFailure.js +5 -5
  12. package/lib/models/ApiKey.js +10 -9
  13. package/lib/models/App.js +4 -3
  14. package/lib/models/As2IncomingMessage.js +4 -3
  15. package/lib/models/As2OutgoingMessage.js +4 -3
  16. package/lib/models/As2Partner.js +10 -9
  17. package/lib/models/As2Station.js +10 -9
  18. package/lib/models/Auto.js +4 -4
  19. package/lib/models/Automation.js +23 -22
  20. package/lib/models/AutomationRun.js +4 -3
  21. package/lib/models/BandwidthSnapshot.js +4 -3
  22. package/lib/models/Behavior.js +11 -10
  23. package/lib/models/Bundle.js +23 -22
  24. package/lib/models/BundleDownload.js +4 -3
  25. package/lib/models/BundleNotification.js +6 -5
  26. package/lib/models/BundleRecipient.js +4 -3
  27. package/lib/models/BundleRegistration.js +4 -3
  28. package/lib/models/Clickwrap.js +11 -10
  29. package/lib/models/DnsRecord.js +4 -3
  30. package/lib/models/EmailIncomingMessage.js +4 -3
  31. package/lib/models/Errors.js +4 -4
  32. package/lib/models/ExternalEvent.js +4 -3
  33. package/lib/models/File.js +53 -44
  34. package/lib/models/FileAction.js +4 -4
  35. package/lib/models/FileComment.js +7 -6
  36. package/lib/models/FileCommentReaction.js +5 -4
  37. package/lib/models/FileMigration.js +4 -3
  38. package/lib/models/FileUploadPart.js +4 -4
  39. package/lib/models/Folder.js +12 -9
  40. package/lib/models/FormField.js +4 -4
  41. package/lib/models/FormFieldSet.js +8 -7
  42. package/lib/models/GpgKey.js +10 -9
  43. package/lib/models/Group.js +10 -9
  44. package/lib/models/GroupUser.js +10 -9
  45. package/lib/models/History.js +21 -10
  46. package/lib/models/HistoryExport.js +4 -3
  47. package/lib/models/HistoryExportResult.js +4 -3
  48. package/lib/models/Image.js +4 -4
  49. package/lib/models/InboxRecipient.js +4 -3
  50. package/lib/models/InboxRegistration.js +4 -3
  51. package/lib/models/InboxUpload.js +4 -3
  52. package/lib/models/Invoice.js +10 -5
  53. package/lib/models/InvoiceLineItem.js +4 -4
  54. package/lib/models/IpAddress.js +10 -5
  55. package/lib/models/Lock.js +6 -5
  56. package/lib/models/Message.js +9 -8
  57. package/lib/models/MessageComment.js +7 -6
  58. package/lib/models/MessageCommentReaction.js +5 -4
  59. package/lib/models/MessageReaction.js +5 -4
  60. package/lib/models/Notification.js +11 -10
  61. package/lib/models/Payment.js +10 -5
  62. package/lib/models/PaymentLineItem.js +4 -4
  63. package/lib/models/Permission.js +5 -4
  64. package/lib/models/Preview.js +4 -4
  65. package/lib/models/Priority.js +4 -3
  66. package/lib/models/Project.js +7 -6
  67. package/lib/models/PublicIpAddress.js +4 -4
  68. package/lib/models/PublicKey.js +7 -6
  69. package/lib/models/RemoteBandwidthSnapshot.js +4 -3
  70. package/lib/models/RemoteServer.js +83 -78
  71. package/lib/models/RemoteServerConfigurationFile.js +4 -4
  72. package/lib/models/Request.js +5 -4
  73. package/lib/models/Session.js +4 -3
  74. package/lib/models/SettingsChange.js +4 -3
  75. package/lib/models/SftpHostKey.js +8 -7
  76. package/lib/models/ShareGroup.js +9 -8
  77. package/lib/models/ShareGroupMember.js +4 -4
  78. package/lib/models/Site.js +7 -4
  79. package/lib/models/Snapshot.js +9 -8
  80. package/lib/models/SsoStrategy.js +5 -4
  81. package/lib/models/Status.js +4 -4
  82. package/lib/models/Style.js +6 -5
  83. package/lib/models/UsageDailySnapshot.js +4 -3
  84. package/lib/models/UsageSnapshot.js +4 -3
  85. package/lib/models/User.js +35 -34
  86. package/lib/models/UserCipherUse.js +4 -3
  87. package/lib/models/UserRequest.js +5 -4
  88. package/lib/models/WebhookTest.js +4 -3
  89. package/lib/utils/pathNormalizer.js +2 -2
  90. package/lib/utils/pathNormalizer.test.js +1 -1
  91. package/lib/utils.js +2 -0
  92. package/package.json +7 -1
  93. package/src/Api.js +17 -13
  94. package/src/Errors.js +2 -1
  95. package/src/Files.js +16 -6
  96. package/src/Logger.js +16 -16
  97. package/src/isomorphic/File.node.js +7 -7
  98. package/src/models/AccountLineItem.js +3 -2
  99. package/src/models/Action.js +3 -2
  100. package/src/models/ActionNotificationExport.js +5 -2
  101. package/src/models/ActionNotificationExportResult.js +4 -2
  102. package/src/models/ActionWebhookFailure.js +4 -3
  103. package/src/models/ApiKey.js +15 -8
  104. package/src/models/App.js +4 -2
  105. package/src/models/As2IncomingMessage.js +4 -2
  106. package/src/models/As2OutgoingMessage.js +4 -2
  107. package/src/models/As2Partner.js +13 -8
  108. package/src/models/As2Station.js +13 -8
  109. package/src/models/Auto.js +3 -2
  110. package/src/models/Automation.js +26 -21
  111. package/src/models/AutomationRun.js +5 -2
  112. package/src/models/BandwidthSnapshot.js +4 -2
  113. package/src/models/Behavior.js +15 -9
  114. package/src/models/Bundle.js +26 -21
  115. package/src/models/BundleDownload.js +4 -2
  116. package/src/models/BundleNotification.js +9 -4
  117. package/src/models/BundleRecipient.js +5 -2
  118. package/src/models/BundleRegistration.js +4 -2
  119. package/src/models/Clickwrap.js +14 -9
  120. package/src/models/DnsRecord.js +4 -2
  121. package/src/models/EmailIncomingMessage.js +4 -2
  122. package/src/models/Errors.js +3 -2
  123. package/src/models/ExternalEvent.js +6 -2
  124. package/src/models/File.js +39 -28
  125. package/src/models/FileAction.js +3 -2
  126. package/src/models/FileComment.js +9 -5
  127. package/src/models/FileCommentReaction.js +5 -3
  128. package/src/models/FileMigration.js +4 -2
  129. package/src/models/FileUploadPart.js +3 -2
  130. package/src/models/Folder.js +5 -3
  131. package/src/models/FormField.js +3 -2
  132. package/src/models/FormFieldSet.js +11 -6
  133. package/src/models/GpgKey.js +13 -8
  134. package/src/models/Group.js +13 -8
  135. package/src/models/GroupUser.js +12 -8
  136. package/src/models/History.js +10 -4
  137. package/src/models/HistoryExport.js +5 -2
  138. package/src/models/HistoryExportResult.js +4 -2
  139. package/src/models/Image.js +3 -2
  140. package/src/models/InboxRecipient.js +5 -2
  141. package/src/models/InboxRegistration.js +4 -2
  142. package/src/models/InboxUpload.js +4 -2
  143. package/src/models/Invoice.js +5 -2
  144. package/src/models/InvoiceLineItem.js +3 -2
  145. package/src/models/IpAddress.js +6 -2
  146. package/src/models/Lock.js +7 -4
  147. package/src/models/Message.js +12 -7
  148. package/src/models/MessageComment.js +10 -5
  149. package/src/models/MessageCommentReaction.js +7 -3
  150. package/src/models/MessageReaction.js +7 -3
  151. package/src/models/Notification.js +14 -9
  152. package/src/models/Payment.js +5 -2
  153. package/src/models/PaymentLineItem.js +3 -2
  154. package/src/models/Permission.js +6 -3
  155. package/src/models/Preview.js +3 -2
  156. package/src/models/Priority.js +4 -2
  157. package/src/models/Project.js +10 -5
  158. package/src/models/PublicIpAddress.js +3 -2
  159. package/src/models/PublicKey.js +10 -5
  160. package/src/models/RemoteBandwidthSnapshot.js +4 -2
  161. package/src/models/RemoteServer.js +82 -75
  162. package/src/models/RemoteServerConfigurationFile.js +3 -2
  163. package/src/models/Request.js +7 -3
  164. package/src/models/Session.js +4 -2
  165. package/src/models/SettingsChange.js +4 -2
  166. package/src/models/SftpHostKey.js +11 -6
  167. package/src/models/ShareGroup.js +12 -7
  168. package/src/models/ShareGroupMember.js +3 -2
  169. package/src/models/Site.js +6 -2
  170. package/src/models/Snapshot.js +12 -7
  171. package/src/models/SsoStrategy.js +6 -3
  172. package/src/models/Status.js +3 -2
  173. package/src/models/Style.js +7 -4
  174. package/src/models/UsageDailySnapshot.js +4 -2
  175. package/src/models/UsageSnapshot.js +4 -2
  176. package/src/models/User.js +38 -33
  177. package/src/models/UserCipherUse.js +4 -2
  178. package/src/models/UserRequest.js +7 -3
  179. package/src/models/WebhookTest.js +4 -2
  180. package/src/utils/pathNormalizer.js +1 -1
  181. package/src/utils/pathNormalizer.test.js +2 -2
  182. package/src/utils.js +6 -5
  183. package/test.sh +10 -0
@@ -1,7 +1,8 @@
1
+ /* eslint-disable no-unused-vars */
1
2
  import Api from '../Api'
2
3
  import * as errors from '../Errors'
3
- import Logger from '../Logger'
4
- import { getType, isArray, isBrowser, isInt, isObject, isString } from '../utils'
4
+ import { getType, isArray, isInt, isObject, isString } from '../utils'
5
+ /* eslint-enable no-unused-vars */
5
6
 
6
7
  /**
7
8
  * Class Notification
@@ -203,22 +204,22 @@ class Notification {
203
204
 
204
205
  params.id = this.attributes.id
205
206
  if (params['id'] && !isInt(params['id'])) {
206
- throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(id)}`)
207
+ throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
207
208
  }
208
209
  if (params['send_interval'] && !isString(params['send_interval'])) {
209
- throw new errors.InvalidParameterError(`Bad parameter: send_interval must be of type String, received ${getType(send_interval)}`)
210
+ throw new errors.InvalidParameterError(`Bad parameter: send_interval must be of type String, received ${getType(params['send_interval'])}`)
210
211
  }
211
212
  if (params['message'] && !isString(params['message'])) {
212
- throw new errors.InvalidParameterError(`Bad parameter: message must be of type String, received ${getType(message)}`)
213
+ throw new errors.InvalidParameterError(`Bad parameter: message must be of type String, received ${getType(params['message'])}`)
213
214
  }
214
215
  if (params['triggering_filenames'] && !isArray(params['triggering_filenames'])) {
215
- throw new errors.InvalidParameterError(`Bad parameter: triggering_filenames must be of type Array, received ${getType(triggering_filenames)}`)
216
+ throw new errors.InvalidParameterError(`Bad parameter: triggering_filenames must be of type Array, received ${getType(params['triggering_filenames'])}`)
216
217
  }
217
218
  if (params['triggering_group_ids'] && !isArray(params['triggering_group_ids'])) {
218
- throw new errors.InvalidParameterError(`Bad parameter: triggering_group_ids must be of type Array, received ${getType(triggering_group_ids)}`)
219
+ throw new errors.InvalidParameterError(`Bad parameter: triggering_group_ids must be of type Array, received ${getType(params['triggering_group_ids'])}`)
219
220
  }
220
221
  if (params['triggering_user_ids'] && !isArray(params['triggering_user_ids'])) {
221
- throw new errors.InvalidParameterError(`Bad parameter: triggering_user_ids must be of type Array, received ${getType(triggering_user_ids)}`)
222
+ throw new errors.InvalidParameterError(`Bad parameter: triggering_user_ids must be of type Array, received ${getType(params['triggering_user_ids'])}`)
222
223
  }
223
224
 
224
225
  if (!params['id']) {
@@ -231,6 +232,7 @@ class Notification {
231
232
 
232
233
  const response = await Api.sendRequest(`/notifications/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
233
234
 
235
+
234
236
  return new Notification(response?.data, this.options)
235
237
  }
236
238
 
@@ -245,7 +247,7 @@ class Notification {
245
247
 
246
248
  params.id = this.attributes.id
247
249
  if (params['id'] && !isInt(params['id'])) {
248
- throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(id)}`)
250
+ throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
249
251
  }
250
252
 
251
253
  if (!params['id']) {
@@ -307,6 +309,7 @@ class Notification {
307
309
 
308
310
  const response = await Api.sendRequest(`/notifications`, 'GET', params, options)
309
311
 
312
+
310
313
  return response?.data?.map(obj => new Notification(obj, options)) || []
311
314
  }
312
315
 
@@ -332,6 +335,7 @@ class Notification {
332
335
 
333
336
  const response = await Api.sendRequest(`/notifications/${encodeURIComponent(params['id'])}`, 'GET', params, options)
334
337
 
338
+
335
339
  return new Notification(response?.data, options)
336
340
  }
337
341
 
@@ -395,6 +399,7 @@ class Notification {
395
399
 
396
400
  const response = await Api.sendRequest(`/notifications`, 'POST', params, options)
397
401
 
402
+
398
403
  return new Notification(response?.data, options)
399
404
  }
400
405
  }
@@ -1,7 +1,8 @@
1
+ /* eslint-disable no-unused-vars */
1
2
  import Api from '../Api'
2
3
  import * as errors from '../Errors'
3
- import Logger from '../Logger'
4
- import { getType, isArray, isBrowser, isInt, isObject, isString } from '../utils'
4
+ import { getType, isArray, isInt, isObject, isString } from '../utils'
5
+ /* eslint-enable no-unused-vars */
5
6
 
6
7
  /**
7
8
  * Class Payment
@@ -80,6 +81,7 @@ class Payment {
80
81
 
81
82
  const response = await Api.sendRequest(`/payments`, 'GET', params, options)
82
83
 
84
+ const AccountLineItem = require("./AccountLineItem.js").default
83
85
  return response?.data?.map(obj => new AccountLineItem(obj, options)) || []
84
86
  }
85
87
 
@@ -105,6 +107,7 @@ class Payment {
105
107
 
106
108
  const response = await Api.sendRequest(`/payments/${encodeURIComponent(params['id'])}`, 'GET', params, options)
107
109
 
110
+ const AccountLineItem = require("./AccountLineItem.js").default
108
111
  return new AccountLineItem(response?.data, options)
109
112
  }
110
113
 
@@ -1,7 +1,8 @@
1
+ /* eslint-disable no-unused-vars */
1
2
  import Api from '../Api'
2
3
  import * as errors from '../Errors'
3
- import Logger from '../Logger'
4
- import { getType, isArray, isBrowser, isInt, isObject, isString } from '../utils'
4
+ import { getType, isArray, isInt, isObject, isString } from '../utils'
5
+ /* eslint-enable no-unused-vars */
5
6
 
6
7
  /**
7
8
  * Class PaymentLineItem
@@ -1,7 +1,8 @@
1
+ /* eslint-disable no-unused-vars */
1
2
  import Api from '../Api'
2
3
  import * as errors from '../Errors'
3
- import Logger from '../Logger'
4
- import { getType, isArray, isBrowser, isInt, isObject, isString } from '../utils'
4
+ import { getType, isArray, isInt, isObject, isString } from '../utils'
5
+ /* eslint-enable no-unused-vars */
5
6
 
6
7
  /**
7
8
  * Class Permission
@@ -91,7 +92,7 @@ class Permission {
91
92
 
92
93
  params.id = this.attributes.id
93
94
  if (params['id'] && !isInt(params['id'])) {
94
- throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(id)}`)
95
+ throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
95
96
  }
96
97
 
97
98
  if (!params['id']) {
@@ -153,6 +154,7 @@ class Permission {
153
154
 
154
155
  const response = await Api.sendRequest(`/permissions`, 'GET', params, options)
155
156
 
157
+
156
158
  return response?.data?.map(obj => new Permission(obj, options)) || []
157
159
  }
158
160
 
@@ -189,6 +191,7 @@ class Permission {
189
191
 
190
192
  const response = await Api.sendRequest(`/permissions`, 'POST', params, options)
191
193
 
194
+
192
195
  return new Permission(response?.data, options)
193
196
  }
194
197
  }
@@ -1,7 +1,8 @@
1
+ /* eslint-disable no-unused-vars */
1
2
  import Api from '../Api'
2
3
  import * as errors from '../Errors'
3
- import Logger from '../Logger'
4
- import { getType, isArray, isBrowser, isInt, isObject, isString } from '../utils'
4
+ import { getType, isArray, isInt, isObject, isString } from '../utils'
5
+ /* eslint-enable no-unused-vars */
5
6
 
6
7
  /**
7
8
  * Class Preview
@@ -1,7 +1,8 @@
1
+ /* eslint-disable no-unused-vars */
1
2
  import Api from '../Api'
2
3
  import * as errors from '../Errors'
3
- import Logger from '../Logger'
4
- import { getType, isArray, isBrowser, isInt, isObject, isString } from '../utils'
4
+ import { getType, isArray, isInt, isObject, isString } from '../utils'
5
+ /* eslint-enable no-unused-vars */
5
6
 
6
7
  /**
7
8
  * Class Priority
@@ -59,6 +60,7 @@ class Priority {
59
60
 
60
61
  const response = await Api.sendRequest(`/priorities`, 'GET', params, options)
61
62
 
63
+
62
64
  return response?.data?.map(obj => new Priority(obj, options)) || []
63
65
  }
64
66
 
@@ -1,7 +1,8 @@
1
+ /* eslint-disable no-unused-vars */
1
2
  import Api from '../Api'
2
3
  import * as errors from '../Errors'
3
- import Logger from '../Logger'
4
- import { getType, isArray, isBrowser, isInt, isObject, isString } from '../utils'
4
+ import { getType, isArray, isInt, isObject, isString } from '../utils'
5
+ /* eslint-enable no-unused-vars */
5
6
 
6
7
  /**
7
8
  * Class Project
@@ -51,10 +52,10 @@ class Project {
51
52
 
52
53
  params.id = this.attributes.id
53
54
  if (params['id'] && !isInt(params['id'])) {
54
- throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(id)}`)
55
+ throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
55
56
  }
56
57
  if (params['global_access'] && !isString(params['global_access'])) {
57
- throw new errors.InvalidParameterError(`Bad parameter: global_access must be of type String, received ${getType(global_access)}`)
58
+ throw new errors.InvalidParameterError(`Bad parameter: global_access must be of type String, received ${getType(params['global_access'])}`)
58
59
  }
59
60
 
60
61
  if (!params['id']) {
@@ -75,6 +76,7 @@ class Project {
75
76
 
76
77
  const response = await Api.sendRequest(`/projects/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
77
78
 
79
+
78
80
  return new Project(response?.data, this.options)
79
81
  }
80
82
 
@@ -89,7 +91,7 @@ class Project {
89
91
 
90
92
  params.id = this.attributes.id
91
93
  if (params['id'] && !isInt(params['id'])) {
92
- throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(id)}`)
94
+ throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
93
95
  }
94
96
 
95
97
  if (!params['id']) {
@@ -132,6 +134,7 @@ class Project {
132
134
 
133
135
  const response = await Api.sendRequest(`/projects`, 'GET', params, options)
134
136
 
137
+
135
138
  return response?.data?.map(obj => new Project(obj, options)) || []
136
139
  }
137
140
 
@@ -157,6 +160,7 @@ class Project {
157
160
 
158
161
  const response = await Api.sendRequest(`/projects/${encodeURIComponent(params['id'])}`, 'GET', params, options)
159
162
 
163
+
160
164
  return new Project(response?.data, options)
161
165
  }
162
166
 
@@ -176,6 +180,7 @@ class Project {
176
180
 
177
181
  const response = await Api.sendRequest(`/projects`, 'POST', params, options)
178
182
 
183
+
179
184
  return new Project(response?.data, options)
180
185
  }
181
186
  }
@@ -1,7 +1,8 @@
1
+ /* eslint-disable no-unused-vars */
1
2
  import Api from '../Api'
2
3
  import * as errors from '../Errors'
3
- import Logger from '../Logger'
4
- import { getType, isArray, isBrowser, isInt, isObject, isString } from '../utils'
4
+ import { getType, isArray, isInt, isObject, isString } from '../utils'
5
+ /* eslint-enable no-unused-vars */
5
6
 
6
7
  /**
7
8
  * Class PublicIpAddress
@@ -1,7 +1,8 @@
1
+ /* eslint-disable no-unused-vars */
1
2
  import Api from '../Api'
2
3
  import * as errors from '../Errors'
3
- import Logger from '../Logger'
4
- import { getType, isArray, isBrowser, isInt, isObject, isString } from '../utils'
4
+ import { getType, isArray, isInt, isObject, isString } from '../utils'
5
+ /* eslint-enable no-unused-vars */
5
6
 
6
7
  /**
7
8
  * Class PublicKey
@@ -82,10 +83,10 @@ class PublicKey {
82
83
 
83
84
  params.id = this.attributes.id
84
85
  if (params['id'] && !isInt(params['id'])) {
85
- throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(id)}`)
86
+ throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
86
87
  }
87
88
  if (params['title'] && !isString(params['title'])) {
88
- throw new errors.InvalidParameterError(`Bad parameter: title must be of type String, received ${getType(title)}`)
89
+ throw new errors.InvalidParameterError(`Bad parameter: title must be of type String, received ${getType(params['title'])}`)
89
90
  }
90
91
 
91
92
  if (!params['id']) {
@@ -106,6 +107,7 @@ class PublicKey {
106
107
 
107
108
  const response = await Api.sendRequest(`/public_keys/${encodeURIComponent(params['id'])}`, 'PATCH', params, this.options)
108
109
 
110
+
109
111
  return new PublicKey(response?.data, this.options)
110
112
  }
111
113
 
@@ -120,7 +122,7 @@ class PublicKey {
120
122
 
121
123
  params.id = this.attributes.id
122
124
  if (params['id'] && !isInt(params['id'])) {
123
- throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(id)}`)
125
+ throw new errors.InvalidParameterError(`Bad parameter: id must be of type Int, received ${getType(params['id'])}`)
124
126
  }
125
127
 
126
128
  if (!params['id']) {
@@ -168,6 +170,7 @@ class PublicKey {
168
170
 
169
171
  const response = await Api.sendRequest(`/public_keys`, 'GET', params, options)
170
172
 
173
+
171
174
  return response?.data?.map(obj => new PublicKey(obj, options)) || []
172
175
  }
173
176
 
@@ -193,6 +196,7 @@ class PublicKey {
193
196
 
194
197
  const response = await Api.sendRequest(`/public_keys/${encodeURIComponent(params['id'])}`, 'GET', params, options)
195
198
 
199
+
196
200
  return new PublicKey(response?.data, options)
197
201
  }
198
202
 
@@ -226,6 +230,7 @@ class PublicKey {
226
230
 
227
231
  const response = await Api.sendRequest(`/public_keys`, 'POST', params, options)
228
232
 
233
+
229
234
  return new PublicKey(response?.data, options)
230
235
  }
231
236
  }
@@ -1,7 +1,8 @@
1
+ /* eslint-disable no-unused-vars */
1
2
  import Api from '../Api'
2
3
  import * as errors from '../Errors'
3
- import Logger from '../Logger'
4
- import { getType, isArray, isBrowser, isInt, isObject, isString } from '../utils'
4
+ import { getType, isArray, isInt, isObject, isString } from '../utils'
5
+ /* eslint-enable no-unused-vars */
5
6
 
6
7
  /**
7
8
  * Class RemoteBandwidthSnapshot
@@ -59,6 +60,7 @@ class RemoteBandwidthSnapshot {
59
60
 
60
61
  const response = await Api.sendRequest(`/remote_bandwidth_snapshots`, 'GET', params, options)
61
62
 
63
+
62
64
  return response?.data?.map(obj => new RemoteBandwidthSnapshot(obj, options)) || []
63
65
  }
64
66