@aws-sdk/client-finspace-data 3.186.0 → 3.188.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/FinspaceData.js +126 -133
  3. package/dist-es/FinspaceDataClient.js +22 -28
  4. package/dist-es/commands/AssociateUserToPermissionGroupCommand.js +21 -28
  5. package/dist-es/commands/CreateChangesetCommand.js +21 -28
  6. package/dist-es/commands/CreateDataViewCommand.js +21 -28
  7. package/dist-es/commands/CreateDatasetCommand.js +21 -28
  8. package/dist-es/commands/CreatePermissionGroupCommand.js +21 -28
  9. package/dist-es/commands/CreateUserCommand.js +21 -28
  10. package/dist-es/commands/DeleteDatasetCommand.js +21 -28
  11. package/dist-es/commands/DeletePermissionGroupCommand.js +21 -28
  12. package/dist-es/commands/DisableUserCommand.js +21 -28
  13. package/dist-es/commands/DisassociateUserFromPermissionGroupCommand.js +21 -28
  14. package/dist-es/commands/EnableUserCommand.js +21 -28
  15. package/dist-es/commands/GetChangesetCommand.js +21 -28
  16. package/dist-es/commands/GetDataViewCommand.js +21 -28
  17. package/dist-es/commands/GetDatasetCommand.js +21 -28
  18. package/dist-es/commands/GetExternalDataViewAccessDetailsCommand.js +21 -28
  19. package/dist-es/commands/GetPermissionGroupCommand.js +21 -28
  20. package/dist-es/commands/GetProgrammaticAccessCredentialsCommand.js +21 -28
  21. package/dist-es/commands/GetUserCommand.js +21 -28
  22. package/dist-es/commands/GetWorkingLocationCommand.js +21 -28
  23. package/dist-es/commands/ListChangesetsCommand.js +21 -28
  24. package/dist-es/commands/ListDataViewsCommand.js +21 -28
  25. package/dist-es/commands/ListDatasetsCommand.js +21 -28
  26. package/dist-es/commands/ListPermissionGroupsByUserCommand.js +21 -28
  27. package/dist-es/commands/ListPermissionGroupsCommand.js +21 -28
  28. package/dist-es/commands/ListUsersByPermissionGroupCommand.js +21 -28
  29. package/dist-es/commands/ListUsersCommand.js +21 -28
  30. package/dist-es/commands/ResetUserPasswordCommand.js +21 -28
  31. package/dist-es/commands/UpdateChangesetCommand.js +21 -28
  32. package/dist-es/commands/UpdateDatasetCommand.js +21 -28
  33. package/dist-es/commands/UpdatePermissionGroupCommand.js +21 -28
  34. package/dist-es/commands/UpdateUserCommand.js +21 -28
  35. package/dist-es/endpoints.js +8 -8
  36. package/dist-es/models/FinspaceDataServiceException.js +5 -10
  37. package/dist-es/models/models_0.js +361 -166
  38. package/dist-es/pagination/ListChangesetsPaginator.js +25 -68
  39. package/dist-es/pagination/ListDataViewsPaginator.js +25 -68
  40. package/dist-es/pagination/ListDatasetsPaginator.js +25 -68
  41. package/dist-es/pagination/ListPermissionGroupsPaginator.js +25 -68
  42. package/dist-es/pagination/ListUsersPaginator.js +25 -68
  43. package/dist-es/protocols/Aws_restJson1.js +2530 -3514
  44. package/dist-es/runtimeConfig.browser.js +26 -12
  45. package/dist-es/runtimeConfig.js +30 -12
  46. package/dist-es/runtimeConfig.native.js +8 -5
  47. package/dist-es/runtimeConfig.shared.js +8 -11
  48. package/package.json +33 -33
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/client-finspace-data
9
+
10
+
11
+
12
+
13
+
6
14
  # [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
7
15
 
8
16
  **Note:** Version bump only for package @aws-sdk/client-finspace-data
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AssociateUserToPermissionGroupCommand, } from "./commands/AssociateUserToPermissionGroupCommand";
3
2
  import { CreateChangesetCommand, } from "./commands/CreateChangesetCommand";
4
3
  import { CreateDatasetCommand, } from "./commands/CreateDatasetCommand";
@@ -31,445 +30,439 @@ import { UpdateDatasetCommand, } from "./commands/UpdateDatasetCommand";
31
30
  import { UpdatePermissionGroupCommand, } from "./commands/UpdatePermissionGroupCommand";
32
31
  import { UpdateUserCommand } from "./commands/UpdateUserCommand";
33
32
  import { FinspaceDataClient } from "./FinspaceDataClient";
34
- var FinspaceData = (function (_super) {
35
- __extends(FinspaceData, _super);
36
- function FinspaceData() {
37
- return _super !== null && _super.apply(this, arguments) || this;
38
- }
39
- FinspaceData.prototype.associateUserToPermissionGroup = function (args, optionsOrCb, cb) {
40
- var command = new AssociateUserToPermissionGroupCommand(args);
33
+ export class FinspaceData extends FinspaceDataClient {
34
+ associateUserToPermissionGroup(args, optionsOrCb, cb) {
35
+ const command = new AssociateUserToPermissionGroupCommand(args);
41
36
  if (typeof optionsOrCb === "function") {
42
37
  this.send(command, optionsOrCb);
43
38
  }
44
39
  else if (typeof cb === "function") {
45
40
  if (typeof optionsOrCb !== "object")
46
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
41
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
47
42
  this.send(command, optionsOrCb || {}, cb);
48
43
  }
49
44
  else {
50
45
  return this.send(command, optionsOrCb);
51
46
  }
52
- };
53
- FinspaceData.prototype.createChangeset = function (args, optionsOrCb, cb) {
54
- var command = new CreateChangesetCommand(args);
47
+ }
48
+ createChangeset(args, optionsOrCb, cb) {
49
+ const command = new CreateChangesetCommand(args);
55
50
  if (typeof optionsOrCb === "function") {
56
51
  this.send(command, optionsOrCb);
57
52
  }
58
53
  else if (typeof cb === "function") {
59
54
  if (typeof optionsOrCb !== "object")
60
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
55
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
61
56
  this.send(command, optionsOrCb || {}, cb);
62
57
  }
63
58
  else {
64
59
  return this.send(command, optionsOrCb);
65
60
  }
66
- };
67
- FinspaceData.prototype.createDataset = function (args, optionsOrCb, cb) {
68
- var command = new CreateDatasetCommand(args);
61
+ }
62
+ createDataset(args, optionsOrCb, cb) {
63
+ const command = new CreateDatasetCommand(args);
69
64
  if (typeof optionsOrCb === "function") {
70
65
  this.send(command, optionsOrCb);
71
66
  }
72
67
  else if (typeof cb === "function") {
73
68
  if (typeof optionsOrCb !== "object")
74
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
69
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
75
70
  this.send(command, optionsOrCb || {}, cb);
76
71
  }
77
72
  else {
78
73
  return this.send(command, optionsOrCb);
79
74
  }
80
- };
81
- FinspaceData.prototype.createDataView = function (args, optionsOrCb, cb) {
82
- var command = new CreateDataViewCommand(args);
75
+ }
76
+ createDataView(args, optionsOrCb, cb) {
77
+ const command = new CreateDataViewCommand(args);
83
78
  if (typeof optionsOrCb === "function") {
84
79
  this.send(command, optionsOrCb);
85
80
  }
86
81
  else if (typeof cb === "function") {
87
82
  if (typeof optionsOrCb !== "object")
88
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
83
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
89
84
  this.send(command, optionsOrCb || {}, cb);
90
85
  }
91
86
  else {
92
87
  return this.send(command, optionsOrCb);
93
88
  }
94
- };
95
- FinspaceData.prototype.createPermissionGroup = function (args, optionsOrCb, cb) {
96
- var command = new CreatePermissionGroupCommand(args);
89
+ }
90
+ createPermissionGroup(args, optionsOrCb, cb) {
91
+ const command = new CreatePermissionGroupCommand(args);
97
92
  if (typeof optionsOrCb === "function") {
98
93
  this.send(command, optionsOrCb);
99
94
  }
100
95
  else if (typeof cb === "function") {
101
96
  if (typeof optionsOrCb !== "object")
102
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
97
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
103
98
  this.send(command, optionsOrCb || {}, cb);
104
99
  }
105
100
  else {
106
101
  return this.send(command, optionsOrCb);
107
102
  }
108
- };
109
- FinspaceData.prototype.createUser = function (args, optionsOrCb, cb) {
110
- var command = new CreateUserCommand(args);
103
+ }
104
+ createUser(args, optionsOrCb, cb) {
105
+ const command = new CreateUserCommand(args);
111
106
  if (typeof optionsOrCb === "function") {
112
107
  this.send(command, optionsOrCb);
113
108
  }
114
109
  else if (typeof cb === "function") {
115
110
  if (typeof optionsOrCb !== "object")
116
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
111
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
117
112
  this.send(command, optionsOrCb || {}, cb);
118
113
  }
119
114
  else {
120
115
  return this.send(command, optionsOrCb);
121
116
  }
122
- };
123
- FinspaceData.prototype.deleteDataset = function (args, optionsOrCb, cb) {
124
- var command = new DeleteDatasetCommand(args);
117
+ }
118
+ deleteDataset(args, optionsOrCb, cb) {
119
+ const command = new DeleteDatasetCommand(args);
125
120
  if (typeof optionsOrCb === "function") {
126
121
  this.send(command, optionsOrCb);
127
122
  }
128
123
  else if (typeof cb === "function") {
129
124
  if (typeof optionsOrCb !== "object")
130
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
125
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
131
126
  this.send(command, optionsOrCb || {}, cb);
132
127
  }
133
128
  else {
134
129
  return this.send(command, optionsOrCb);
135
130
  }
136
- };
137
- FinspaceData.prototype.deletePermissionGroup = function (args, optionsOrCb, cb) {
138
- var command = new DeletePermissionGroupCommand(args);
131
+ }
132
+ deletePermissionGroup(args, optionsOrCb, cb) {
133
+ const command = new DeletePermissionGroupCommand(args);
139
134
  if (typeof optionsOrCb === "function") {
140
135
  this.send(command, optionsOrCb);
141
136
  }
142
137
  else if (typeof cb === "function") {
143
138
  if (typeof optionsOrCb !== "object")
144
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
139
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
145
140
  this.send(command, optionsOrCb || {}, cb);
146
141
  }
147
142
  else {
148
143
  return this.send(command, optionsOrCb);
149
144
  }
150
- };
151
- FinspaceData.prototype.disableUser = function (args, optionsOrCb, cb) {
152
- var command = new DisableUserCommand(args);
145
+ }
146
+ disableUser(args, optionsOrCb, cb) {
147
+ const command = new DisableUserCommand(args);
153
148
  if (typeof optionsOrCb === "function") {
154
149
  this.send(command, optionsOrCb);
155
150
  }
156
151
  else if (typeof cb === "function") {
157
152
  if (typeof optionsOrCb !== "object")
158
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
153
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
159
154
  this.send(command, optionsOrCb || {}, cb);
160
155
  }
161
156
  else {
162
157
  return this.send(command, optionsOrCb);
163
158
  }
164
- };
165
- FinspaceData.prototype.disassociateUserFromPermissionGroup = function (args, optionsOrCb, cb) {
166
- var command = new DisassociateUserFromPermissionGroupCommand(args);
159
+ }
160
+ disassociateUserFromPermissionGroup(args, optionsOrCb, cb) {
161
+ const command = new DisassociateUserFromPermissionGroupCommand(args);
167
162
  if (typeof optionsOrCb === "function") {
168
163
  this.send(command, optionsOrCb);
169
164
  }
170
165
  else if (typeof cb === "function") {
171
166
  if (typeof optionsOrCb !== "object")
172
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
167
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
173
168
  this.send(command, optionsOrCb || {}, cb);
174
169
  }
175
170
  else {
176
171
  return this.send(command, optionsOrCb);
177
172
  }
178
- };
179
- FinspaceData.prototype.enableUser = function (args, optionsOrCb, cb) {
180
- var command = new EnableUserCommand(args);
173
+ }
174
+ enableUser(args, optionsOrCb, cb) {
175
+ const command = new EnableUserCommand(args);
181
176
  if (typeof optionsOrCb === "function") {
182
177
  this.send(command, optionsOrCb);
183
178
  }
184
179
  else if (typeof cb === "function") {
185
180
  if (typeof optionsOrCb !== "object")
186
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
181
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
187
182
  this.send(command, optionsOrCb || {}, cb);
188
183
  }
189
184
  else {
190
185
  return this.send(command, optionsOrCb);
191
186
  }
192
- };
193
- FinspaceData.prototype.getChangeset = function (args, optionsOrCb, cb) {
194
- var command = new GetChangesetCommand(args);
187
+ }
188
+ getChangeset(args, optionsOrCb, cb) {
189
+ const command = new GetChangesetCommand(args);
195
190
  if (typeof optionsOrCb === "function") {
196
191
  this.send(command, optionsOrCb);
197
192
  }
198
193
  else if (typeof cb === "function") {
199
194
  if (typeof optionsOrCb !== "object")
200
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
195
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
201
196
  this.send(command, optionsOrCb || {}, cb);
202
197
  }
203
198
  else {
204
199
  return this.send(command, optionsOrCb);
205
200
  }
206
- };
207
- FinspaceData.prototype.getDataset = function (args, optionsOrCb, cb) {
208
- var command = new GetDatasetCommand(args);
201
+ }
202
+ getDataset(args, optionsOrCb, cb) {
203
+ const command = new GetDatasetCommand(args);
209
204
  if (typeof optionsOrCb === "function") {
210
205
  this.send(command, optionsOrCb);
211
206
  }
212
207
  else if (typeof cb === "function") {
213
208
  if (typeof optionsOrCb !== "object")
214
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
209
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
215
210
  this.send(command, optionsOrCb || {}, cb);
216
211
  }
217
212
  else {
218
213
  return this.send(command, optionsOrCb);
219
214
  }
220
- };
221
- FinspaceData.prototype.getDataView = function (args, optionsOrCb, cb) {
222
- var command = new GetDataViewCommand(args);
215
+ }
216
+ getDataView(args, optionsOrCb, cb) {
217
+ const command = new GetDataViewCommand(args);
223
218
  if (typeof optionsOrCb === "function") {
224
219
  this.send(command, optionsOrCb);
225
220
  }
226
221
  else if (typeof cb === "function") {
227
222
  if (typeof optionsOrCb !== "object")
228
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
223
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
229
224
  this.send(command, optionsOrCb || {}, cb);
230
225
  }
231
226
  else {
232
227
  return this.send(command, optionsOrCb);
233
228
  }
234
- };
235
- FinspaceData.prototype.getExternalDataViewAccessDetails = function (args, optionsOrCb, cb) {
236
- var command = new GetExternalDataViewAccessDetailsCommand(args);
229
+ }
230
+ getExternalDataViewAccessDetails(args, optionsOrCb, cb) {
231
+ const command = new GetExternalDataViewAccessDetailsCommand(args);
237
232
  if (typeof optionsOrCb === "function") {
238
233
  this.send(command, optionsOrCb);
239
234
  }
240
235
  else if (typeof cb === "function") {
241
236
  if (typeof optionsOrCb !== "object")
242
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
237
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
243
238
  this.send(command, optionsOrCb || {}, cb);
244
239
  }
245
240
  else {
246
241
  return this.send(command, optionsOrCb);
247
242
  }
248
- };
249
- FinspaceData.prototype.getPermissionGroup = function (args, optionsOrCb, cb) {
250
- var command = new GetPermissionGroupCommand(args);
243
+ }
244
+ getPermissionGroup(args, optionsOrCb, cb) {
245
+ const command = new GetPermissionGroupCommand(args);
251
246
  if (typeof optionsOrCb === "function") {
252
247
  this.send(command, optionsOrCb);
253
248
  }
254
249
  else if (typeof cb === "function") {
255
250
  if (typeof optionsOrCb !== "object")
256
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
251
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
257
252
  this.send(command, optionsOrCb || {}, cb);
258
253
  }
259
254
  else {
260
255
  return this.send(command, optionsOrCb);
261
256
  }
262
- };
263
- FinspaceData.prototype.getProgrammaticAccessCredentials = function (args, optionsOrCb, cb) {
264
- var command = new GetProgrammaticAccessCredentialsCommand(args);
257
+ }
258
+ getProgrammaticAccessCredentials(args, optionsOrCb, cb) {
259
+ const command = new GetProgrammaticAccessCredentialsCommand(args);
265
260
  if (typeof optionsOrCb === "function") {
266
261
  this.send(command, optionsOrCb);
267
262
  }
268
263
  else if (typeof cb === "function") {
269
264
  if (typeof optionsOrCb !== "object")
270
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
265
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
271
266
  this.send(command, optionsOrCb || {}, cb);
272
267
  }
273
268
  else {
274
269
  return this.send(command, optionsOrCb);
275
270
  }
276
- };
277
- FinspaceData.prototype.getUser = function (args, optionsOrCb, cb) {
278
- var command = new GetUserCommand(args);
271
+ }
272
+ getUser(args, optionsOrCb, cb) {
273
+ const command = new GetUserCommand(args);
279
274
  if (typeof optionsOrCb === "function") {
280
275
  this.send(command, optionsOrCb);
281
276
  }
282
277
  else if (typeof cb === "function") {
283
278
  if (typeof optionsOrCb !== "object")
284
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
279
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
285
280
  this.send(command, optionsOrCb || {}, cb);
286
281
  }
287
282
  else {
288
283
  return this.send(command, optionsOrCb);
289
284
  }
290
- };
291
- FinspaceData.prototype.getWorkingLocation = function (args, optionsOrCb, cb) {
292
- var command = new GetWorkingLocationCommand(args);
285
+ }
286
+ getWorkingLocation(args, optionsOrCb, cb) {
287
+ const command = new GetWorkingLocationCommand(args);
293
288
  if (typeof optionsOrCb === "function") {
294
289
  this.send(command, optionsOrCb);
295
290
  }
296
291
  else if (typeof cb === "function") {
297
292
  if (typeof optionsOrCb !== "object")
298
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
293
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
299
294
  this.send(command, optionsOrCb || {}, cb);
300
295
  }
301
296
  else {
302
297
  return this.send(command, optionsOrCb);
303
298
  }
304
- };
305
- FinspaceData.prototype.listChangesets = function (args, optionsOrCb, cb) {
306
- var command = new ListChangesetsCommand(args);
299
+ }
300
+ listChangesets(args, optionsOrCb, cb) {
301
+ const command = new ListChangesetsCommand(args);
307
302
  if (typeof optionsOrCb === "function") {
308
303
  this.send(command, optionsOrCb);
309
304
  }
310
305
  else if (typeof cb === "function") {
311
306
  if (typeof optionsOrCb !== "object")
312
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
307
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
313
308
  this.send(command, optionsOrCb || {}, cb);
314
309
  }
315
310
  else {
316
311
  return this.send(command, optionsOrCb);
317
312
  }
318
- };
319
- FinspaceData.prototype.listDatasets = function (args, optionsOrCb, cb) {
320
- var command = new ListDatasetsCommand(args);
313
+ }
314
+ listDatasets(args, optionsOrCb, cb) {
315
+ const command = new ListDatasetsCommand(args);
321
316
  if (typeof optionsOrCb === "function") {
322
317
  this.send(command, optionsOrCb);
323
318
  }
324
319
  else if (typeof cb === "function") {
325
320
  if (typeof optionsOrCb !== "object")
326
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
321
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
327
322
  this.send(command, optionsOrCb || {}, cb);
328
323
  }
329
324
  else {
330
325
  return this.send(command, optionsOrCb);
331
326
  }
332
- };
333
- FinspaceData.prototype.listDataViews = function (args, optionsOrCb, cb) {
334
- var command = new ListDataViewsCommand(args);
327
+ }
328
+ listDataViews(args, optionsOrCb, cb) {
329
+ const command = new ListDataViewsCommand(args);
335
330
  if (typeof optionsOrCb === "function") {
336
331
  this.send(command, optionsOrCb);
337
332
  }
338
333
  else if (typeof cb === "function") {
339
334
  if (typeof optionsOrCb !== "object")
340
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
335
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
341
336
  this.send(command, optionsOrCb || {}, cb);
342
337
  }
343
338
  else {
344
339
  return this.send(command, optionsOrCb);
345
340
  }
346
- };
347
- FinspaceData.prototype.listPermissionGroups = function (args, optionsOrCb, cb) {
348
- var command = new ListPermissionGroupsCommand(args);
341
+ }
342
+ listPermissionGroups(args, optionsOrCb, cb) {
343
+ const command = new ListPermissionGroupsCommand(args);
349
344
  if (typeof optionsOrCb === "function") {
350
345
  this.send(command, optionsOrCb);
351
346
  }
352
347
  else if (typeof cb === "function") {
353
348
  if (typeof optionsOrCb !== "object")
354
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
349
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
355
350
  this.send(command, optionsOrCb || {}, cb);
356
351
  }
357
352
  else {
358
353
  return this.send(command, optionsOrCb);
359
354
  }
360
- };
361
- FinspaceData.prototype.listPermissionGroupsByUser = function (args, optionsOrCb, cb) {
362
- var command = new ListPermissionGroupsByUserCommand(args);
355
+ }
356
+ listPermissionGroupsByUser(args, optionsOrCb, cb) {
357
+ const command = new ListPermissionGroupsByUserCommand(args);
363
358
  if (typeof optionsOrCb === "function") {
364
359
  this.send(command, optionsOrCb);
365
360
  }
366
361
  else if (typeof cb === "function") {
367
362
  if (typeof optionsOrCb !== "object")
368
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
363
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
369
364
  this.send(command, optionsOrCb || {}, cb);
370
365
  }
371
366
  else {
372
367
  return this.send(command, optionsOrCb);
373
368
  }
374
- };
375
- FinspaceData.prototype.listUsers = function (args, optionsOrCb, cb) {
376
- var command = new ListUsersCommand(args);
369
+ }
370
+ listUsers(args, optionsOrCb, cb) {
371
+ const command = new ListUsersCommand(args);
377
372
  if (typeof optionsOrCb === "function") {
378
373
  this.send(command, optionsOrCb);
379
374
  }
380
375
  else if (typeof cb === "function") {
381
376
  if (typeof optionsOrCb !== "object")
382
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
377
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
383
378
  this.send(command, optionsOrCb || {}, cb);
384
379
  }
385
380
  else {
386
381
  return this.send(command, optionsOrCb);
387
382
  }
388
- };
389
- FinspaceData.prototype.listUsersByPermissionGroup = function (args, optionsOrCb, cb) {
390
- var command = new ListUsersByPermissionGroupCommand(args);
383
+ }
384
+ listUsersByPermissionGroup(args, optionsOrCb, cb) {
385
+ const command = new ListUsersByPermissionGroupCommand(args);
391
386
  if (typeof optionsOrCb === "function") {
392
387
  this.send(command, optionsOrCb);
393
388
  }
394
389
  else if (typeof cb === "function") {
395
390
  if (typeof optionsOrCb !== "object")
396
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
391
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
397
392
  this.send(command, optionsOrCb || {}, cb);
398
393
  }
399
394
  else {
400
395
  return this.send(command, optionsOrCb);
401
396
  }
402
- };
403
- FinspaceData.prototype.resetUserPassword = function (args, optionsOrCb, cb) {
404
- var command = new ResetUserPasswordCommand(args);
397
+ }
398
+ resetUserPassword(args, optionsOrCb, cb) {
399
+ const command = new ResetUserPasswordCommand(args);
405
400
  if (typeof optionsOrCb === "function") {
406
401
  this.send(command, optionsOrCb);
407
402
  }
408
403
  else if (typeof cb === "function") {
409
404
  if (typeof optionsOrCb !== "object")
410
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
405
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
411
406
  this.send(command, optionsOrCb || {}, cb);
412
407
  }
413
408
  else {
414
409
  return this.send(command, optionsOrCb);
415
410
  }
416
- };
417
- FinspaceData.prototype.updateChangeset = function (args, optionsOrCb, cb) {
418
- var command = new UpdateChangesetCommand(args);
411
+ }
412
+ updateChangeset(args, optionsOrCb, cb) {
413
+ const command = new UpdateChangesetCommand(args);
419
414
  if (typeof optionsOrCb === "function") {
420
415
  this.send(command, optionsOrCb);
421
416
  }
422
417
  else if (typeof cb === "function") {
423
418
  if (typeof optionsOrCb !== "object")
424
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
419
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
425
420
  this.send(command, optionsOrCb || {}, cb);
426
421
  }
427
422
  else {
428
423
  return this.send(command, optionsOrCb);
429
424
  }
430
- };
431
- FinspaceData.prototype.updateDataset = function (args, optionsOrCb, cb) {
432
- var command = new UpdateDatasetCommand(args);
425
+ }
426
+ updateDataset(args, optionsOrCb, cb) {
427
+ const command = new UpdateDatasetCommand(args);
433
428
  if (typeof optionsOrCb === "function") {
434
429
  this.send(command, optionsOrCb);
435
430
  }
436
431
  else if (typeof cb === "function") {
437
432
  if (typeof optionsOrCb !== "object")
438
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
433
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
439
434
  this.send(command, optionsOrCb || {}, cb);
440
435
  }
441
436
  else {
442
437
  return this.send(command, optionsOrCb);
443
438
  }
444
- };
445
- FinspaceData.prototype.updatePermissionGroup = function (args, optionsOrCb, cb) {
446
- var command = new UpdatePermissionGroupCommand(args);
439
+ }
440
+ updatePermissionGroup(args, optionsOrCb, cb) {
441
+ const command = new UpdatePermissionGroupCommand(args);
447
442
  if (typeof optionsOrCb === "function") {
448
443
  this.send(command, optionsOrCb);
449
444
  }
450
445
  else if (typeof cb === "function") {
451
446
  if (typeof optionsOrCb !== "object")
452
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
447
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
453
448
  this.send(command, optionsOrCb || {}, cb);
454
449
  }
455
450
  else {
456
451
  return this.send(command, optionsOrCb);
457
452
  }
458
- };
459
- FinspaceData.prototype.updateUser = function (args, optionsOrCb, cb) {
460
- var command = new UpdateUserCommand(args);
453
+ }
454
+ updateUser(args, optionsOrCb, cb) {
455
+ const command = new UpdateUserCommand(args);
461
456
  if (typeof optionsOrCb === "function") {
462
457
  this.send(command, optionsOrCb);
463
458
  }
464
459
  else if (typeof cb === "function") {
465
460
  if (typeof optionsOrCb !== "object")
466
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
461
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
467
462
  this.send(command, optionsOrCb || {}, cb);
468
463
  }
469
464
  else {
470
465
  return this.send(command, optionsOrCb);
471
466
  }
472
- };
473
- return FinspaceData;
474
- }(FinspaceDataClient));
475
- export { FinspaceData };
467
+ }
468
+ }
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
2
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
3
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -9,31 +8,26 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
10
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
- var FinspaceDataClient = (function (_super) {
13
- __extends(FinspaceDataClient, _super);
14
- function FinspaceDataClient(configuration) {
15
- var _this = this;
16
- var _config_0 = __getRuntimeConfig(configuration);
17
- var _config_1 = resolveRegionConfig(_config_0);
18
- var _config_2 = resolveEndpointsConfig(_config_1);
19
- var _config_3 = resolveRetryConfig(_config_2);
20
- var _config_4 = resolveHostHeaderConfig(_config_3);
21
- var _config_5 = resolveAwsAuthConfig(_config_4);
22
- var _config_6 = resolveUserAgentConfig(_config_5);
23
- _this = _super.call(this, _config_6) || this;
24
- _this.config = _config_6;
25
- _this.middlewareStack.use(getRetryPlugin(_this.config));
26
- _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
- _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
- _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
- _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
- _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
- _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
- return _this;
11
+ export class FinspaceDataClient extends __Client {
12
+ constructor(configuration) {
13
+ const _config_0 = __getRuntimeConfig(configuration);
14
+ const _config_1 = resolveRegionConfig(_config_0);
15
+ const _config_2 = resolveEndpointsConfig(_config_1);
16
+ const _config_3 = resolveRetryConfig(_config_2);
17
+ const _config_4 = resolveHostHeaderConfig(_config_3);
18
+ const _config_5 = resolveAwsAuthConfig(_config_4);
19
+ const _config_6 = resolveUserAgentConfig(_config_5);
20
+ super(_config_6);
21
+ this.config = _config_6;
22
+ this.middlewareStack.use(getRetryPlugin(this.config));
23
+ this.middlewareStack.use(getContentLengthPlugin(this.config));
24
+ this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
+ this.middlewareStack.use(getLoggerPlugin(this.config));
26
+ this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
+ this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
+ this.middlewareStack.use(getUserAgentPlugin(this.config));
33
29
  }
34
- FinspaceDataClient.prototype.destroy = function () {
35
- _super.prototype.destroy.call(this);
36
- };
37
- return FinspaceDataClient;
38
- }(__Client));
39
- export { FinspaceDataClient };
30
+ destroy() {
31
+ super.destroy();
32
+ }
33
+ }