@aws-sdk/client-workdocs 3.181.0 → 3.183.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 (56) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-es/WorkDocs.js +166 -173
  3. package/dist-es/WorkDocsClient.js +22 -28
  4. package/dist-es/commands/AbortDocumentVersionUploadCommand.js +22 -29
  5. package/dist-es/commands/ActivateUserCommand.js +21 -28
  6. package/dist-es/commands/AddResourcePermissionsCommand.js +21 -28
  7. package/dist-es/commands/CreateCommentCommand.js +21 -28
  8. package/dist-es/commands/CreateCustomMetadataCommand.js +21 -28
  9. package/dist-es/commands/CreateFolderCommand.js +21 -28
  10. package/dist-es/commands/CreateLabelsCommand.js +21 -28
  11. package/dist-es/commands/CreateNotificationSubscriptionCommand.js +21 -28
  12. package/dist-es/commands/CreateUserCommand.js +21 -28
  13. package/dist-es/commands/DeactivateUserCommand.js +22 -29
  14. package/dist-es/commands/DeleteCommentCommand.js +22 -29
  15. package/dist-es/commands/DeleteCustomMetadataCommand.js +21 -28
  16. package/dist-es/commands/DeleteDocumentCommand.js +22 -29
  17. package/dist-es/commands/DeleteFolderCommand.js +22 -29
  18. package/dist-es/commands/DeleteFolderContentsCommand.js +22 -29
  19. package/dist-es/commands/DeleteLabelsCommand.js +21 -28
  20. package/dist-es/commands/DeleteNotificationSubscriptionCommand.js +22 -29
  21. package/dist-es/commands/DeleteUserCommand.js +22 -29
  22. package/dist-es/commands/DescribeActivitiesCommand.js +21 -28
  23. package/dist-es/commands/DescribeCommentsCommand.js +21 -28
  24. package/dist-es/commands/DescribeDocumentVersionsCommand.js +21 -28
  25. package/dist-es/commands/DescribeFolderContentsCommand.js +21 -28
  26. package/dist-es/commands/DescribeGroupsCommand.js +21 -28
  27. package/dist-es/commands/DescribeNotificationSubscriptionsCommand.js +21 -28
  28. package/dist-es/commands/DescribeResourcePermissionsCommand.js +21 -28
  29. package/dist-es/commands/DescribeRootFoldersCommand.js +21 -28
  30. package/dist-es/commands/DescribeUsersCommand.js +21 -28
  31. package/dist-es/commands/GetCurrentUserCommand.js +21 -28
  32. package/dist-es/commands/GetDocumentCommand.js +21 -28
  33. package/dist-es/commands/GetDocumentPathCommand.js +21 -28
  34. package/dist-es/commands/GetDocumentVersionCommand.js +21 -28
  35. package/dist-es/commands/GetFolderCommand.js +21 -28
  36. package/dist-es/commands/GetFolderPathCommand.js +21 -28
  37. package/dist-es/commands/GetResourcesCommand.js +21 -28
  38. package/dist-es/commands/InitiateDocumentVersionUploadCommand.js +21 -28
  39. package/dist-es/commands/RemoveAllResourcePermissionsCommand.js +22 -29
  40. package/dist-es/commands/RemoveResourcePermissionCommand.js +22 -29
  41. package/dist-es/commands/UpdateDocumentCommand.js +22 -29
  42. package/dist-es/commands/UpdateDocumentVersionCommand.js +22 -29
  43. package/dist-es/commands/UpdateFolderCommand.js +22 -29
  44. package/dist-es/commands/UpdateUserCommand.js +21 -28
  45. package/dist-es/endpoints.js +8 -8
  46. package/dist-es/models/WorkDocsServiceException.js +5 -10
  47. package/dist-es/models/models_0.js +642 -401
  48. package/dist-es/pagination/DescribeDocumentVersionsPaginator.js +25 -68
  49. package/dist-es/pagination/DescribeFolderContentsPaginator.js +25 -68
  50. package/dist-es/pagination/DescribeUsersPaginator.js +25 -68
  51. package/dist-es/protocols/Aws_restJson1.js +3321 -4635
  52. package/dist-es/runtimeConfig.browser.js +26 -12
  53. package/dist-es/runtimeConfig.js +30 -12
  54. package/dist-es/runtimeConfig.native.js +8 -5
  55. package/dist-es/runtimeConfig.shared.js +8 -11
  56. package/package.json +33 -33
@@ -1,4 +1,3 @@
1
- import { __extends } from "tslib";
2
1
  import { AbortDocumentVersionUploadCommand, } from "./commands/AbortDocumentVersionUploadCommand";
3
2
  import { ActivateUserCommand, } from "./commands/ActivateUserCommand";
4
3
  import { AddResourcePermissionsCommand, } from "./commands/AddResourcePermissionsCommand";
@@ -41,585 +40,579 @@ import { UpdateDocumentVersionCommand, } from "./commands/UpdateDocumentVersionC
41
40
  import { UpdateFolderCommand, } from "./commands/UpdateFolderCommand";
42
41
  import { UpdateUserCommand } from "./commands/UpdateUserCommand";
43
42
  import { WorkDocsClient } from "./WorkDocsClient";
44
- var WorkDocs = (function (_super) {
45
- __extends(WorkDocs, _super);
46
- function WorkDocs() {
47
- return _super !== null && _super.apply(this, arguments) || this;
48
- }
49
- WorkDocs.prototype.abortDocumentVersionUpload = function (args, optionsOrCb, cb) {
50
- var command = new AbortDocumentVersionUploadCommand(args);
43
+ export class WorkDocs extends WorkDocsClient {
44
+ abortDocumentVersionUpload(args, optionsOrCb, cb) {
45
+ const command = new AbortDocumentVersionUploadCommand(args);
51
46
  if (typeof optionsOrCb === "function") {
52
47
  this.send(command, optionsOrCb);
53
48
  }
54
49
  else if (typeof cb === "function") {
55
50
  if (typeof optionsOrCb !== "object")
56
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
51
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
57
52
  this.send(command, optionsOrCb || {}, cb);
58
53
  }
59
54
  else {
60
55
  return this.send(command, optionsOrCb);
61
56
  }
62
- };
63
- WorkDocs.prototype.activateUser = function (args, optionsOrCb, cb) {
64
- var command = new ActivateUserCommand(args);
57
+ }
58
+ activateUser(args, optionsOrCb, cb) {
59
+ const command = new ActivateUserCommand(args);
65
60
  if (typeof optionsOrCb === "function") {
66
61
  this.send(command, optionsOrCb);
67
62
  }
68
63
  else if (typeof cb === "function") {
69
64
  if (typeof optionsOrCb !== "object")
70
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
65
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
71
66
  this.send(command, optionsOrCb || {}, cb);
72
67
  }
73
68
  else {
74
69
  return this.send(command, optionsOrCb);
75
70
  }
76
- };
77
- WorkDocs.prototype.addResourcePermissions = function (args, optionsOrCb, cb) {
78
- var command = new AddResourcePermissionsCommand(args);
71
+ }
72
+ addResourcePermissions(args, optionsOrCb, cb) {
73
+ const command = new AddResourcePermissionsCommand(args);
79
74
  if (typeof optionsOrCb === "function") {
80
75
  this.send(command, optionsOrCb);
81
76
  }
82
77
  else if (typeof cb === "function") {
83
78
  if (typeof optionsOrCb !== "object")
84
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
79
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
85
80
  this.send(command, optionsOrCb || {}, cb);
86
81
  }
87
82
  else {
88
83
  return this.send(command, optionsOrCb);
89
84
  }
90
- };
91
- WorkDocs.prototype.createComment = function (args, optionsOrCb, cb) {
92
- var command = new CreateCommentCommand(args);
85
+ }
86
+ createComment(args, optionsOrCb, cb) {
87
+ const command = new CreateCommentCommand(args);
93
88
  if (typeof optionsOrCb === "function") {
94
89
  this.send(command, optionsOrCb);
95
90
  }
96
91
  else if (typeof cb === "function") {
97
92
  if (typeof optionsOrCb !== "object")
98
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
93
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
99
94
  this.send(command, optionsOrCb || {}, cb);
100
95
  }
101
96
  else {
102
97
  return this.send(command, optionsOrCb);
103
98
  }
104
- };
105
- WorkDocs.prototype.createCustomMetadata = function (args, optionsOrCb, cb) {
106
- var command = new CreateCustomMetadataCommand(args);
99
+ }
100
+ createCustomMetadata(args, optionsOrCb, cb) {
101
+ const command = new CreateCustomMetadataCommand(args);
107
102
  if (typeof optionsOrCb === "function") {
108
103
  this.send(command, optionsOrCb);
109
104
  }
110
105
  else if (typeof cb === "function") {
111
106
  if (typeof optionsOrCb !== "object")
112
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
107
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
113
108
  this.send(command, optionsOrCb || {}, cb);
114
109
  }
115
110
  else {
116
111
  return this.send(command, optionsOrCb);
117
112
  }
118
- };
119
- WorkDocs.prototype.createFolder = function (args, optionsOrCb, cb) {
120
- var command = new CreateFolderCommand(args);
113
+ }
114
+ createFolder(args, optionsOrCb, cb) {
115
+ const command = new CreateFolderCommand(args);
121
116
  if (typeof optionsOrCb === "function") {
122
117
  this.send(command, optionsOrCb);
123
118
  }
124
119
  else if (typeof cb === "function") {
125
120
  if (typeof optionsOrCb !== "object")
126
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
121
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
127
122
  this.send(command, optionsOrCb || {}, cb);
128
123
  }
129
124
  else {
130
125
  return this.send(command, optionsOrCb);
131
126
  }
132
- };
133
- WorkDocs.prototype.createLabels = function (args, optionsOrCb, cb) {
134
- var command = new CreateLabelsCommand(args);
127
+ }
128
+ createLabels(args, optionsOrCb, cb) {
129
+ const command = new CreateLabelsCommand(args);
135
130
  if (typeof optionsOrCb === "function") {
136
131
  this.send(command, optionsOrCb);
137
132
  }
138
133
  else if (typeof cb === "function") {
139
134
  if (typeof optionsOrCb !== "object")
140
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
135
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
141
136
  this.send(command, optionsOrCb || {}, cb);
142
137
  }
143
138
  else {
144
139
  return this.send(command, optionsOrCb);
145
140
  }
146
- };
147
- WorkDocs.prototype.createNotificationSubscription = function (args, optionsOrCb, cb) {
148
- var command = new CreateNotificationSubscriptionCommand(args);
141
+ }
142
+ createNotificationSubscription(args, optionsOrCb, cb) {
143
+ const command = new CreateNotificationSubscriptionCommand(args);
149
144
  if (typeof optionsOrCb === "function") {
150
145
  this.send(command, optionsOrCb);
151
146
  }
152
147
  else if (typeof cb === "function") {
153
148
  if (typeof optionsOrCb !== "object")
154
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
149
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
155
150
  this.send(command, optionsOrCb || {}, cb);
156
151
  }
157
152
  else {
158
153
  return this.send(command, optionsOrCb);
159
154
  }
160
- };
161
- WorkDocs.prototype.createUser = function (args, optionsOrCb, cb) {
162
- var command = new CreateUserCommand(args);
155
+ }
156
+ createUser(args, optionsOrCb, cb) {
157
+ const command = new CreateUserCommand(args);
163
158
  if (typeof optionsOrCb === "function") {
164
159
  this.send(command, optionsOrCb);
165
160
  }
166
161
  else if (typeof cb === "function") {
167
162
  if (typeof optionsOrCb !== "object")
168
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
163
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
169
164
  this.send(command, optionsOrCb || {}, cb);
170
165
  }
171
166
  else {
172
167
  return this.send(command, optionsOrCb);
173
168
  }
174
- };
175
- WorkDocs.prototype.deactivateUser = function (args, optionsOrCb, cb) {
176
- var command = new DeactivateUserCommand(args);
169
+ }
170
+ deactivateUser(args, optionsOrCb, cb) {
171
+ const command = new DeactivateUserCommand(args);
177
172
  if (typeof optionsOrCb === "function") {
178
173
  this.send(command, optionsOrCb);
179
174
  }
180
175
  else if (typeof cb === "function") {
181
176
  if (typeof optionsOrCb !== "object")
182
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
177
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
183
178
  this.send(command, optionsOrCb || {}, cb);
184
179
  }
185
180
  else {
186
181
  return this.send(command, optionsOrCb);
187
182
  }
188
- };
189
- WorkDocs.prototype.deleteComment = function (args, optionsOrCb, cb) {
190
- var command = new DeleteCommentCommand(args);
183
+ }
184
+ deleteComment(args, optionsOrCb, cb) {
185
+ const command = new DeleteCommentCommand(args);
191
186
  if (typeof optionsOrCb === "function") {
192
187
  this.send(command, optionsOrCb);
193
188
  }
194
189
  else if (typeof cb === "function") {
195
190
  if (typeof optionsOrCb !== "object")
196
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
191
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
197
192
  this.send(command, optionsOrCb || {}, cb);
198
193
  }
199
194
  else {
200
195
  return this.send(command, optionsOrCb);
201
196
  }
202
- };
203
- WorkDocs.prototype.deleteCustomMetadata = function (args, optionsOrCb, cb) {
204
- var command = new DeleteCustomMetadataCommand(args);
197
+ }
198
+ deleteCustomMetadata(args, optionsOrCb, cb) {
199
+ const command = new DeleteCustomMetadataCommand(args);
205
200
  if (typeof optionsOrCb === "function") {
206
201
  this.send(command, optionsOrCb);
207
202
  }
208
203
  else if (typeof cb === "function") {
209
204
  if (typeof optionsOrCb !== "object")
210
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
205
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
211
206
  this.send(command, optionsOrCb || {}, cb);
212
207
  }
213
208
  else {
214
209
  return this.send(command, optionsOrCb);
215
210
  }
216
- };
217
- WorkDocs.prototype.deleteDocument = function (args, optionsOrCb, cb) {
218
- var command = new DeleteDocumentCommand(args);
211
+ }
212
+ deleteDocument(args, optionsOrCb, cb) {
213
+ const command = new DeleteDocumentCommand(args);
219
214
  if (typeof optionsOrCb === "function") {
220
215
  this.send(command, optionsOrCb);
221
216
  }
222
217
  else if (typeof cb === "function") {
223
218
  if (typeof optionsOrCb !== "object")
224
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
219
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
225
220
  this.send(command, optionsOrCb || {}, cb);
226
221
  }
227
222
  else {
228
223
  return this.send(command, optionsOrCb);
229
224
  }
230
- };
231
- WorkDocs.prototype.deleteFolder = function (args, optionsOrCb, cb) {
232
- var command = new DeleteFolderCommand(args);
225
+ }
226
+ deleteFolder(args, optionsOrCb, cb) {
227
+ const command = new DeleteFolderCommand(args);
233
228
  if (typeof optionsOrCb === "function") {
234
229
  this.send(command, optionsOrCb);
235
230
  }
236
231
  else if (typeof cb === "function") {
237
232
  if (typeof optionsOrCb !== "object")
238
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
233
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
239
234
  this.send(command, optionsOrCb || {}, cb);
240
235
  }
241
236
  else {
242
237
  return this.send(command, optionsOrCb);
243
238
  }
244
- };
245
- WorkDocs.prototype.deleteFolderContents = function (args, optionsOrCb, cb) {
246
- var command = new DeleteFolderContentsCommand(args);
239
+ }
240
+ deleteFolderContents(args, optionsOrCb, cb) {
241
+ const command = new DeleteFolderContentsCommand(args);
247
242
  if (typeof optionsOrCb === "function") {
248
243
  this.send(command, optionsOrCb);
249
244
  }
250
245
  else if (typeof cb === "function") {
251
246
  if (typeof optionsOrCb !== "object")
252
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
247
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
253
248
  this.send(command, optionsOrCb || {}, cb);
254
249
  }
255
250
  else {
256
251
  return this.send(command, optionsOrCb);
257
252
  }
258
- };
259
- WorkDocs.prototype.deleteLabels = function (args, optionsOrCb, cb) {
260
- var command = new DeleteLabelsCommand(args);
253
+ }
254
+ deleteLabels(args, optionsOrCb, cb) {
255
+ const command = new DeleteLabelsCommand(args);
261
256
  if (typeof optionsOrCb === "function") {
262
257
  this.send(command, optionsOrCb);
263
258
  }
264
259
  else if (typeof cb === "function") {
265
260
  if (typeof optionsOrCb !== "object")
266
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
261
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
267
262
  this.send(command, optionsOrCb || {}, cb);
268
263
  }
269
264
  else {
270
265
  return this.send(command, optionsOrCb);
271
266
  }
272
- };
273
- WorkDocs.prototype.deleteNotificationSubscription = function (args, optionsOrCb, cb) {
274
- var command = new DeleteNotificationSubscriptionCommand(args);
267
+ }
268
+ deleteNotificationSubscription(args, optionsOrCb, cb) {
269
+ const command = new DeleteNotificationSubscriptionCommand(args);
275
270
  if (typeof optionsOrCb === "function") {
276
271
  this.send(command, optionsOrCb);
277
272
  }
278
273
  else if (typeof cb === "function") {
279
274
  if (typeof optionsOrCb !== "object")
280
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
275
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
281
276
  this.send(command, optionsOrCb || {}, cb);
282
277
  }
283
278
  else {
284
279
  return this.send(command, optionsOrCb);
285
280
  }
286
- };
287
- WorkDocs.prototype.deleteUser = function (args, optionsOrCb, cb) {
288
- var command = new DeleteUserCommand(args);
281
+ }
282
+ deleteUser(args, optionsOrCb, cb) {
283
+ const command = new DeleteUserCommand(args);
289
284
  if (typeof optionsOrCb === "function") {
290
285
  this.send(command, optionsOrCb);
291
286
  }
292
287
  else if (typeof cb === "function") {
293
288
  if (typeof optionsOrCb !== "object")
294
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
289
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
295
290
  this.send(command, optionsOrCb || {}, cb);
296
291
  }
297
292
  else {
298
293
  return this.send(command, optionsOrCb);
299
294
  }
300
- };
301
- WorkDocs.prototype.describeActivities = function (args, optionsOrCb, cb) {
302
- var command = new DescribeActivitiesCommand(args);
295
+ }
296
+ describeActivities(args, optionsOrCb, cb) {
297
+ const command = new DescribeActivitiesCommand(args);
303
298
  if (typeof optionsOrCb === "function") {
304
299
  this.send(command, optionsOrCb);
305
300
  }
306
301
  else if (typeof cb === "function") {
307
302
  if (typeof optionsOrCb !== "object")
308
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
303
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
309
304
  this.send(command, optionsOrCb || {}, cb);
310
305
  }
311
306
  else {
312
307
  return this.send(command, optionsOrCb);
313
308
  }
314
- };
315
- WorkDocs.prototype.describeComments = function (args, optionsOrCb, cb) {
316
- var command = new DescribeCommentsCommand(args);
309
+ }
310
+ describeComments(args, optionsOrCb, cb) {
311
+ const command = new DescribeCommentsCommand(args);
317
312
  if (typeof optionsOrCb === "function") {
318
313
  this.send(command, optionsOrCb);
319
314
  }
320
315
  else if (typeof cb === "function") {
321
316
  if (typeof optionsOrCb !== "object")
322
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
317
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
323
318
  this.send(command, optionsOrCb || {}, cb);
324
319
  }
325
320
  else {
326
321
  return this.send(command, optionsOrCb);
327
322
  }
328
- };
329
- WorkDocs.prototype.describeDocumentVersions = function (args, optionsOrCb, cb) {
330
- var command = new DescribeDocumentVersionsCommand(args);
323
+ }
324
+ describeDocumentVersions(args, optionsOrCb, cb) {
325
+ const command = new DescribeDocumentVersionsCommand(args);
331
326
  if (typeof optionsOrCb === "function") {
332
327
  this.send(command, optionsOrCb);
333
328
  }
334
329
  else if (typeof cb === "function") {
335
330
  if (typeof optionsOrCb !== "object")
336
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
331
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
337
332
  this.send(command, optionsOrCb || {}, cb);
338
333
  }
339
334
  else {
340
335
  return this.send(command, optionsOrCb);
341
336
  }
342
- };
343
- WorkDocs.prototype.describeFolderContents = function (args, optionsOrCb, cb) {
344
- var command = new DescribeFolderContentsCommand(args);
337
+ }
338
+ describeFolderContents(args, optionsOrCb, cb) {
339
+ const command = new DescribeFolderContentsCommand(args);
345
340
  if (typeof optionsOrCb === "function") {
346
341
  this.send(command, optionsOrCb);
347
342
  }
348
343
  else if (typeof cb === "function") {
349
344
  if (typeof optionsOrCb !== "object")
350
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
345
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
351
346
  this.send(command, optionsOrCb || {}, cb);
352
347
  }
353
348
  else {
354
349
  return this.send(command, optionsOrCb);
355
350
  }
356
- };
357
- WorkDocs.prototype.describeGroups = function (args, optionsOrCb, cb) {
358
- var command = new DescribeGroupsCommand(args);
351
+ }
352
+ describeGroups(args, optionsOrCb, cb) {
353
+ const command = new DescribeGroupsCommand(args);
359
354
  if (typeof optionsOrCb === "function") {
360
355
  this.send(command, optionsOrCb);
361
356
  }
362
357
  else if (typeof cb === "function") {
363
358
  if (typeof optionsOrCb !== "object")
364
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
359
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
365
360
  this.send(command, optionsOrCb || {}, cb);
366
361
  }
367
362
  else {
368
363
  return this.send(command, optionsOrCb);
369
364
  }
370
- };
371
- WorkDocs.prototype.describeNotificationSubscriptions = function (args, optionsOrCb, cb) {
372
- var command = new DescribeNotificationSubscriptionsCommand(args);
365
+ }
366
+ describeNotificationSubscriptions(args, optionsOrCb, cb) {
367
+ const command = new DescribeNotificationSubscriptionsCommand(args);
373
368
  if (typeof optionsOrCb === "function") {
374
369
  this.send(command, optionsOrCb);
375
370
  }
376
371
  else if (typeof cb === "function") {
377
372
  if (typeof optionsOrCb !== "object")
378
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
373
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
379
374
  this.send(command, optionsOrCb || {}, cb);
380
375
  }
381
376
  else {
382
377
  return this.send(command, optionsOrCb);
383
378
  }
384
- };
385
- WorkDocs.prototype.describeResourcePermissions = function (args, optionsOrCb, cb) {
386
- var command = new DescribeResourcePermissionsCommand(args);
379
+ }
380
+ describeResourcePermissions(args, optionsOrCb, cb) {
381
+ const command = new DescribeResourcePermissionsCommand(args);
387
382
  if (typeof optionsOrCb === "function") {
388
383
  this.send(command, optionsOrCb);
389
384
  }
390
385
  else if (typeof cb === "function") {
391
386
  if (typeof optionsOrCb !== "object")
392
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
387
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
393
388
  this.send(command, optionsOrCb || {}, cb);
394
389
  }
395
390
  else {
396
391
  return this.send(command, optionsOrCb);
397
392
  }
398
- };
399
- WorkDocs.prototype.describeRootFolders = function (args, optionsOrCb, cb) {
400
- var command = new DescribeRootFoldersCommand(args);
393
+ }
394
+ describeRootFolders(args, optionsOrCb, cb) {
395
+ const command = new DescribeRootFoldersCommand(args);
401
396
  if (typeof optionsOrCb === "function") {
402
397
  this.send(command, optionsOrCb);
403
398
  }
404
399
  else if (typeof cb === "function") {
405
400
  if (typeof optionsOrCb !== "object")
406
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
401
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
407
402
  this.send(command, optionsOrCb || {}, cb);
408
403
  }
409
404
  else {
410
405
  return this.send(command, optionsOrCb);
411
406
  }
412
- };
413
- WorkDocs.prototype.describeUsers = function (args, optionsOrCb, cb) {
414
- var command = new DescribeUsersCommand(args);
407
+ }
408
+ describeUsers(args, optionsOrCb, cb) {
409
+ const command = new DescribeUsersCommand(args);
415
410
  if (typeof optionsOrCb === "function") {
416
411
  this.send(command, optionsOrCb);
417
412
  }
418
413
  else if (typeof cb === "function") {
419
414
  if (typeof optionsOrCb !== "object")
420
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
415
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
421
416
  this.send(command, optionsOrCb || {}, cb);
422
417
  }
423
418
  else {
424
419
  return this.send(command, optionsOrCb);
425
420
  }
426
- };
427
- WorkDocs.prototype.getCurrentUser = function (args, optionsOrCb, cb) {
428
- var command = new GetCurrentUserCommand(args);
421
+ }
422
+ getCurrentUser(args, optionsOrCb, cb) {
423
+ const command = new GetCurrentUserCommand(args);
429
424
  if (typeof optionsOrCb === "function") {
430
425
  this.send(command, optionsOrCb);
431
426
  }
432
427
  else if (typeof cb === "function") {
433
428
  if (typeof optionsOrCb !== "object")
434
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
429
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
435
430
  this.send(command, optionsOrCb || {}, cb);
436
431
  }
437
432
  else {
438
433
  return this.send(command, optionsOrCb);
439
434
  }
440
- };
441
- WorkDocs.prototype.getDocument = function (args, optionsOrCb, cb) {
442
- var command = new GetDocumentCommand(args);
435
+ }
436
+ getDocument(args, optionsOrCb, cb) {
437
+ const command = new GetDocumentCommand(args);
443
438
  if (typeof optionsOrCb === "function") {
444
439
  this.send(command, optionsOrCb);
445
440
  }
446
441
  else if (typeof cb === "function") {
447
442
  if (typeof optionsOrCb !== "object")
448
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
443
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
449
444
  this.send(command, optionsOrCb || {}, cb);
450
445
  }
451
446
  else {
452
447
  return this.send(command, optionsOrCb);
453
448
  }
454
- };
455
- WorkDocs.prototype.getDocumentPath = function (args, optionsOrCb, cb) {
456
- var command = new GetDocumentPathCommand(args);
449
+ }
450
+ getDocumentPath(args, optionsOrCb, cb) {
451
+ const command = new GetDocumentPathCommand(args);
457
452
  if (typeof optionsOrCb === "function") {
458
453
  this.send(command, optionsOrCb);
459
454
  }
460
455
  else if (typeof cb === "function") {
461
456
  if (typeof optionsOrCb !== "object")
462
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
457
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
463
458
  this.send(command, optionsOrCb || {}, cb);
464
459
  }
465
460
  else {
466
461
  return this.send(command, optionsOrCb);
467
462
  }
468
- };
469
- WorkDocs.prototype.getDocumentVersion = function (args, optionsOrCb, cb) {
470
- var command = new GetDocumentVersionCommand(args);
463
+ }
464
+ getDocumentVersion(args, optionsOrCb, cb) {
465
+ const command = new GetDocumentVersionCommand(args);
471
466
  if (typeof optionsOrCb === "function") {
472
467
  this.send(command, optionsOrCb);
473
468
  }
474
469
  else if (typeof cb === "function") {
475
470
  if (typeof optionsOrCb !== "object")
476
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
471
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
477
472
  this.send(command, optionsOrCb || {}, cb);
478
473
  }
479
474
  else {
480
475
  return this.send(command, optionsOrCb);
481
476
  }
482
- };
483
- WorkDocs.prototype.getFolder = function (args, optionsOrCb, cb) {
484
- var command = new GetFolderCommand(args);
477
+ }
478
+ getFolder(args, optionsOrCb, cb) {
479
+ const command = new GetFolderCommand(args);
485
480
  if (typeof optionsOrCb === "function") {
486
481
  this.send(command, optionsOrCb);
487
482
  }
488
483
  else if (typeof cb === "function") {
489
484
  if (typeof optionsOrCb !== "object")
490
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
485
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
491
486
  this.send(command, optionsOrCb || {}, cb);
492
487
  }
493
488
  else {
494
489
  return this.send(command, optionsOrCb);
495
490
  }
496
- };
497
- WorkDocs.prototype.getFolderPath = function (args, optionsOrCb, cb) {
498
- var command = new GetFolderPathCommand(args);
491
+ }
492
+ getFolderPath(args, optionsOrCb, cb) {
493
+ const command = new GetFolderPathCommand(args);
499
494
  if (typeof optionsOrCb === "function") {
500
495
  this.send(command, optionsOrCb);
501
496
  }
502
497
  else if (typeof cb === "function") {
503
498
  if (typeof optionsOrCb !== "object")
504
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
499
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
505
500
  this.send(command, optionsOrCb || {}, cb);
506
501
  }
507
502
  else {
508
503
  return this.send(command, optionsOrCb);
509
504
  }
510
- };
511
- WorkDocs.prototype.getResources = function (args, optionsOrCb, cb) {
512
- var command = new GetResourcesCommand(args);
505
+ }
506
+ getResources(args, optionsOrCb, cb) {
507
+ const command = new GetResourcesCommand(args);
513
508
  if (typeof optionsOrCb === "function") {
514
509
  this.send(command, optionsOrCb);
515
510
  }
516
511
  else if (typeof cb === "function") {
517
512
  if (typeof optionsOrCb !== "object")
518
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
513
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
519
514
  this.send(command, optionsOrCb || {}, cb);
520
515
  }
521
516
  else {
522
517
  return this.send(command, optionsOrCb);
523
518
  }
524
- };
525
- WorkDocs.prototype.initiateDocumentVersionUpload = function (args, optionsOrCb, cb) {
526
- var command = new InitiateDocumentVersionUploadCommand(args);
519
+ }
520
+ initiateDocumentVersionUpload(args, optionsOrCb, cb) {
521
+ const command = new InitiateDocumentVersionUploadCommand(args);
527
522
  if (typeof optionsOrCb === "function") {
528
523
  this.send(command, optionsOrCb);
529
524
  }
530
525
  else if (typeof cb === "function") {
531
526
  if (typeof optionsOrCb !== "object")
532
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
527
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
533
528
  this.send(command, optionsOrCb || {}, cb);
534
529
  }
535
530
  else {
536
531
  return this.send(command, optionsOrCb);
537
532
  }
538
- };
539
- WorkDocs.prototype.removeAllResourcePermissions = function (args, optionsOrCb, cb) {
540
- var command = new RemoveAllResourcePermissionsCommand(args);
533
+ }
534
+ removeAllResourcePermissions(args, optionsOrCb, cb) {
535
+ const command = new RemoveAllResourcePermissionsCommand(args);
541
536
  if (typeof optionsOrCb === "function") {
542
537
  this.send(command, optionsOrCb);
543
538
  }
544
539
  else if (typeof cb === "function") {
545
540
  if (typeof optionsOrCb !== "object")
546
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
541
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
547
542
  this.send(command, optionsOrCb || {}, cb);
548
543
  }
549
544
  else {
550
545
  return this.send(command, optionsOrCb);
551
546
  }
552
- };
553
- WorkDocs.prototype.removeResourcePermission = function (args, optionsOrCb, cb) {
554
- var command = new RemoveResourcePermissionCommand(args);
547
+ }
548
+ removeResourcePermission(args, optionsOrCb, cb) {
549
+ const command = new RemoveResourcePermissionCommand(args);
555
550
  if (typeof optionsOrCb === "function") {
556
551
  this.send(command, optionsOrCb);
557
552
  }
558
553
  else if (typeof cb === "function") {
559
554
  if (typeof optionsOrCb !== "object")
560
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
555
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
561
556
  this.send(command, optionsOrCb || {}, cb);
562
557
  }
563
558
  else {
564
559
  return this.send(command, optionsOrCb);
565
560
  }
566
- };
567
- WorkDocs.prototype.updateDocument = function (args, optionsOrCb, cb) {
568
- var command = new UpdateDocumentCommand(args);
561
+ }
562
+ updateDocument(args, optionsOrCb, cb) {
563
+ const command = new UpdateDocumentCommand(args);
569
564
  if (typeof optionsOrCb === "function") {
570
565
  this.send(command, optionsOrCb);
571
566
  }
572
567
  else if (typeof cb === "function") {
573
568
  if (typeof optionsOrCb !== "object")
574
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
569
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
575
570
  this.send(command, optionsOrCb || {}, cb);
576
571
  }
577
572
  else {
578
573
  return this.send(command, optionsOrCb);
579
574
  }
580
- };
581
- WorkDocs.prototype.updateDocumentVersion = function (args, optionsOrCb, cb) {
582
- var command = new UpdateDocumentVersionCommand(args);
575
+ }
576
+ updateDocumentVersion(args, optionsOrCb, cb) {
577
+ const command = new UpdateDocumentVersionCommand(args);
583
578
  if (typeof optionsOrCb === "function") {
584
579
  this.send(command, optionsOrCb);
585
580
  }
586
581
  else if (typeof cb === "function") {
587
582
  if (typeof optionsOrCb !== "object")
588
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
583
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
589
584
  this.send(command, optionsOrCb || {}, cb);
590
585
  }
591
586
  else {
592
587
  return this.send(command, optionsOrCb);
593
588
  }
594
- };
595
- WorkDocs.prototype.updateFolder = function (args, optionsOrCb, cb) {
596
- var command = new UpdateFolderCommand(args);
589
+ }
590
+ updateFolder(args, optionsOrCb, cb) {
591
+ const command = new UpdateFolderCommand(args);
597
592
  if (typeof optionsOrCb === "function") {
598
593
  this.send(command, optionsOrCb);
599
594
  }
600
595
  else if (typeof cb === "function") {
601
596
  if (typeof optionsOrCb !== "object")
602
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
597
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
603
598
  this.send(command, optionsOrCb || {}, cb);
604
599
  }
605
600
  else {
606
601
  return this.send(command, optionsOrCb);
607
602
  }
608
- };
609
- WorkDocs.prototype.updateUser = function (args, optionsOrCb, cb) {
610
- var command = new UpdateUserCommand(args);
603
+ }
604
+ updateUser(args, optionsOrCb, cb) {
605
+ const command = new UpdateUserCommand(args);
611
606
  if (typeof optionsOrCb === "function") {
612
607
  this.send(command, optionsOrCb);
613
608
  }
614
609
  else if (typeof cb === "function") {
615
610
  if (typeof optionsOrCb !== "object")
616
- throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
611
+ throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
617
612
  this.send(command, optionsOrCb || {}, cb);
618
613
  }
619
614
  else {
620
615
  return this.send(command, optionsOrCb);
621
616
  }
622
- };
623
- return WorkDocs;
624
- }(WorkDocsClient));
625
- export { WorkDocs };
617
+ }
618
+ }