@aws-sdk/client-workdocs 3.312.0 → 3.316.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.
- package/dist-cjs/WorkDocs.js +48 -616
- package/dist-cjs/protocols/Aws_restJson1.js +581 -1041
- package/dist-es/WorkDocs.js +48 -616
- package/dist-es/protocols/Aws_restJson1.js +452 -912
- package/dist-types/WorkDocs.d.ts +109 -215
- package/dist-types/ts3.4/WorkDocs.d.ts +2 -1
- package/package.json +6 -6
package/dist-cjs/WorkDocs.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WorkDocs = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const AbortDocumentVersionUploadCommand_1 = require("./commands/AbortDocumentVersionUploadCommand");
|
|
5
6
|
const ActivateUserCommand_1 = require("./commands/ActivateUserCommand");
|
|
6
7
|
const AddResourcePermissionsCommand_1 = require("./commands/AddResourcePermissionsCommand");
|
|
@@ -46,622 +47,53 @@ const UpdateDocumentVersionCommand_1 = require("./commands/UpdateDocumentVersion
|
|
|
46
47
|
const UpdateFolderCommand_1 = require("./commands/UpdateFolderCommand");
|
|
47
48
|
const UpdateUserCommand_1 = require("./commands/UpdateUserCommand");
|
|
48
49
|
const WorkDocsClient_1 = require("./WorkDocsClient");
|
|
50
|
+
const commands = {
|
|
51
|
+
AbortDocumentVersionUploadCommand: AbortDocumentVersionUploadCommand_1.AbortDocumentVersionUploadCommand,
|
|
52
|
+
ActivateUserCommand: ActivateUserCommand_1.ActivateUserCommand,
|
|
53
|
+
AddResourcePermissionsCommand: AddResourcePermissionsCommand_1.AddResourcePermissionsCommand,
|
|
54
|
+
CreateCommentCommand: CreateCommentCommand_1.CreateCommentCommand,
|
|
55
|
+
CreateCustomMetadataCommand: CreateCustomMetadataCommand_1.CreateCustomMetadataCommand,
|
|
56
|
+
CreateFolderCommand: CreateFolderCommand_1.CreateFolderCommand,
|
|
57
|
+
CreateLabelsCommand: CreateLabelsCommand_1.CreateLabelsCommand,
|
|
58
|
+
CreateNotificationSubscriptionCommand: CreateNotificationSubscriptionCommand_1.CreateNotificationSubscriptionCommand,
|
|
59
|
+
CreateUserCommand: CreateUserCommand_1.CreateUserCommand,
|
|
60
|
+
DeactivateUserCommand: DeactivateUserCommand_1.DeactivateUserCommand,
|
|
61
|
+
DeleteCommentCommand: DeleteCommentCommand_1.DeleteCommentCommand,
|
|
62
|
+
DeleteCustomMetadataCommand: DeleteCustomMetadataCommand_1.DeleteCustomMetadataCommand,
|
|
63
|
+
DeleteDocumentCommand: DeleteDocumentCommand_1.DeleteDocumentCommand,
|
|
64
|
+
DeleteDocumentVersionCommand: DeleteDocumentVersionCommand_1.DeleteDocumentVersionCommand,
|
|
65
|
+
DeleteFolderCommand: DeleteFolderCommand_1.DeleteFolderCommand,
|
|
66
|
+
DeleteFolderContentsCommand: DeleteFolderContentsCommand_1.DeleteFolderContentsCommand,
|
|
67
|
+
DeleteLabelsCommand: DeleteLabelsCommand_1.DeleteLabelsCommand,
|
|
68
|
+
DeleteNotificationSubscriptionCommand: DeleteNotificationSubscriptionCommand_1.DeleteNotificationSubscriptionCommand,
|
|
69
|
+
DeleteUserCommand: DeleteUserCommand_1.DeleteUserCommand,
|
|
70
|
+
DescribeActivitiesCommand: DescribeActivitiesCommand_1.DescribeActivitiesCommand,
|
|
71
|
+
DescribeCommentsCommand: DescribeCommentsCommand_1.DescribeCommentsCommand,
|
|
72
|
+
DescribeDocumentVersionsCommand: DescribeDocumentVersionsCommand_1.DescribeDocumentVersionsCommand,
|
|
73
|
+
DescribeFolderContentsCommand: DescribeFolderContentsCommand_1.DescribeFolderContentsCommand,
|
|
74
|
+
DescribeGroupsCommand: DescribeGroupsCommand_1.DescribeGroupsCommand,
|
|
75
|
+
DescribeNotificationSubscriptionsCommand: DescribeNotificationSubscriptionsCommand_1.DescribeNotificationSubscriptionsCommand,
|
|
76
|
+
DescribeResourcePermissionsCommand: DescribeResourcePermissionsCommand_1.DescribeResourcePermissionsCommand,
|
|
77
|
+
DescribeRootFoldersCommand: DescribeRootFoldersCommand_1.DescribeRootFoldersCommand,
|
|
78
|
+
DescribeUsersCommand: DescribeUsersCommand_1.DescribeUsersCommand,
|
|
79
|
+
GetCurrentUserCommand: GetCurrentUserCommand_1.GetCurrentUserCommand,
|
|
80
|
+
GetDocumentCommand: GetDocumentCommand_1.GetDocumentCommand,
|
|
81
|
+
GetDocumentPathCommand: GetDocumentPathCommand_1.GetDocumentPathCommand,
|
|
82
|
+
GetDocumentVersionCommand: GetDocumentVersionCommand_1.GetDocumentVersionCommand,
|
|
83
|
+
GetFolderCommand: GetFolderCommand_1.GetFolderCommand,
|
|
84
|
+
GetFolderPathCommand: GetFolderPathCommand_1.GetFolderPathCommand,
|
|
85
|
+
GetResourcesCommand: GetResourcesCommand_1.GetResourcesCommand,
|
|
86
|
+
InitiateDocumentVersionUploadCommand: InitiateDocumentVersionUploadCommand_1.InitiateDocumentVersionUploadCommand,
|
|
87
|
+
RemoveAllResourcePermissionsCommand: RemoveAllResourcePermissionsCommand_1.RemoveAllResourcePermissionsCommand,
|
|
88
|
+
RemoveResourcePermissionCommand: RemoveResourcePermissionCommand_1.RemoveResourcePermissionCommand,
|
|
89
|
+
RestoreDocumentVersionsCommand: RestoreDocumentVersionsCommand_1.RestoreDocumentVersionsCommand,
|
|
90
|
+
SearchResourcesCommand: SearchResourcesCommand_1.SearchResourcesCommand,
|
|
91
|
+
UpdateDocumentCommand: UpdateDocumentCommand_1.UpdateDocumentCommand,
|
|
92
|
+
UpdateDocumentVersionCommand: UpdateDocumentVersionCommand_1.UpdateDocumentVersionCommand,
|
|
93
|
+
UpdateFolderCommand: UpdateFolderCommand_1.UpdateFolderCommand,
|
|
94
|
+
UpdateUserCommand: UpdateUserCommand_1.UpdateUserCommand,
|
|
95
|
+
};
|
|
49
96
|
class WorkDocs extends WorkDocsClient_1.WorkDocsClient {
|
|
50
|
-
abortDocumentVersionUpload(args, optionsOrCb, cb) {
|
|
51
|
-
const command = new AbortDocumentVersionUploadCommand_1.AbortDocumentVersionUploadCommand(args);
|
|
52
|
-
if (typeof optionsOrCb === "function") {
|
|
53
|
-
this.send(command, optionsOrCb);
|
|
54
|
-
}
|
|
55
|
-
else if (typeof cb === "function") {
|
|
56
|
-
if (typeof optionsOrCb !== "object")
|
|
57
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
58
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
return this.send(command, optionsOrCb);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
activateUser(args, optionsOrCb, cb) {
|
|
65
|
-
const command = new ActivateUserCommand_1.ActivateUserCommand(args);
|
|
66
|
-
if (typeof optionsOrCb === "function") {
|
|
67
|
-
this.send(command, optionsOrCb);
|
|
68
|
-
}
|
|
69
|
-
else if (typeof cb === "function") {
|
|
70
|
-
if (typeof optionsOrCb !== "object")
|
|
71
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
72
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
return this.send(command, optionsOrCb);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
addResourcePermissions(args, optionsOrCb, cb) {
|
|
79
|
-
const command = new AddResourcePermissionsCommand_1.AddResourcePermissionsCommand(args);
|
|
80
|
-
if (typeof optionsOrCb === "function") {
|
|
81
|
-
this.send(command, optionsOrCb);
|
|
82
|
-
}
|
|
83
|
-
else if (typeof cb === "function") {
|
|
84
|
-
if (typeof optionsOrCb !== "object")
|
|
85
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
86
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
return this.send(command, optionsOrCb);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
createComment(args, optionsOrCb, cb) {
|
|
93
|
-
const command = new CreateCommentCommand_1.CreateCommentCommand(args);
|
|
94
|
-
if (typeof optionsOrCb === "function") {
|
|
95
|
-
this.send(command, optionsOrCb);
|
|
96
|
-
}
|
|
97
|
-
else if (typeof cb === "function") {
|
|
98
|
-
if (typeof optionsOrCb !== "object")
|
|
99
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
100
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
return this.send(command, optionsOrCb);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
createCustomMetadata(args, optionsOrCb, cb) {
|
|
107
|
-
const command = new CreateCustomMetadataCommand_1.CreateCustomMetadataCommand(args);
|
|
108
|
-
if (typeof optionsOrCb === "function") {
|
|
109
|
-
this.send(command, optionsOrCb);
|
|
110
|
-
}
|
|
111
|
-
else if (typeof cb === "function") {
|
|
112
|
-
if (typeof optionsOrCb !== "object")
|
|
113
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
114
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
115
|
-
}
|
|
116
|
-
else {
|
|
117
|
-
return this.send(command, optionsOrCb);
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
createFolder(args, optionsOrCb, cb) {
|
|
121
|
-
const command = new CreateFolderCommand_1.CreateFolderCommand(args);
|
|
122
|
-
if (typeof optionsOrCb === "function") {
|
|
123
|
-
this.send(command, optionsOrCb);
|
|
124
|
-
}
|
|
125
|
-
else if (typeof cb === "function") {
|
|
126
|
-
if (typeof optionsOrCb !== "object")
|
|
127
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
128
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
return this.send(command, optionsOrCb);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
createLabels(args, optionsOrCb, cb) {
|
|
135
|
-
const command = new CreateLabelsCommand_1.CreateLabelsCommand(args);
|
|
136
|
-
if (typeof optionsOrCb === "function") {
|
|
137
|
-
this.send(command, optionsOrCb);
|
|
138
|
-
}
|
|
139
|
-
else if (typeof cb === "function") {
|
|
140
|
-
if (typeof optionsOrCb !== "object")
|
|
141
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
142
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
return this.send(command, optionsOrCb);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
createNotificationSubscription(args, optionsOrCb, cb) {
|
|
149
|
-
const command = new CreateNotificationSubscriptionCommand_1.CreateNotificationSubscriptionCommand(args);
|
|
150
|
-
if (typeof optionsOrCb === "function") {
|
|
151
|
-
this.send(command, optionsOrCb);
|
|
152
|
-
}
|
|
153
|
-
else if (typeof cb === "function") {
|
|
154
|
-
if (typeof optionsOrCb !== "object")
|
|
155
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
156
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
return this.send(command, optionsOrCb);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
createUser(args, optionsOrCb, cb) {
|
|
163
|
-
const command = new CreateUserCommand_1.CreateUserCommand(args);
|
|
164
|
-
if (typeof optionsOrCb === "function") {
|
|
165
|
-
this.send(command, optionsOrCb);
|
|
166
|
-
}
|
|
167
|
-
else if (typeof cb === "function") {
|
|
168
|
-
if (typeof optionsOrCb !== "object")
|
|
169
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
170
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
171
|
-
}
|
|
172
|
-
else {
|
|
173
|
-
return this.send(command, optionsOrCb);
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
deactivateUser(args, optionsOrCb, cb) {
|
|
177
|
-
const command = new DeactivateUserCommand_1.DeactivateUserCommand(args);
|
|
178
|
-
if (typeof optionsOrCb === "function") {
|
|
179
|
-
this.send(command, optionsOrCb);
|
|
180
|
-
}
|
|
181
|
-
else if (typeof cb === "function") {
|
|
182
|
-
if (typeof optionsOrCb !== "object")
|
|
183
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
184
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
return this.send(command, optionsOrCb);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
deleteComment(args, optionsOrCb, cb) {
|
|
191
|
-
const command = new DeleteCommentCommand_1.DeleteCommentCommand(args);
|
|
192
|
-
if (typeof optionsOrCb === "function") {
|
|
193
|
-
this.send(command, optionsOrCb);
|
|
194
|
-
}
|
|
195
|
-
else if (typeof cb === "function") {
|
|
196
|
-
if (typeof optionsOrCb !== "object")
|
|
197
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
198
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
199
|
-
}
|
|
200
|
-
else {
|
|
201
|
-
return this.send(command, optionsOrCb);
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
deleteCustomMetadata(args, optionsOrCb, cb) {
|
|
205
|
-
const command = new DeleteCustomMetadataCommand_1.DeleteCustomMetadataCommand(args);
|
|
206
|
-
if (typeof optionsOrCb === "function") {
|
|
207
|
-
this.send(command, optionsOrCb);
|
|
208
|
-
}
|
|
209
|
-
else if (typeof cb === "function") {
|
|
210
|
-
if (typeof optionsOrCb !== "object")
|
|
211
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
212
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
213
|
-
}
|
|
214
|
-
else {
|
|
215
|
-
return this.send(command, optionsOrCb);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
deleteDocument(args, optionsOrCb, cb) {
|
|
219
|
-
const command = new DeleteDocumentCommand_1.DeleteDocumentCommand(args);
|
|
220
|
-
if (typeof optionsOrCb === "function") {
|
|
221
|
-
this.send(command, optionsOrCb);
|
|
222
|
-
}
|
|
223
|
-
else if (typeof cb === "function") {
|
|
224
|
-
if (typeof optionsOrCb !== "object")
|
|
225
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
226
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
227
|
-
}
|
|
228
|
-
else {
|
|
229
|
-
return this.send(command, optionsOrCb);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
deleteDocumentVersion(args, optionsOrCb, cb) {
|
|
233
|
-
const command = new DeleteDocumentVersionCommand_1.DeleteDocumentVersionCommand(args);
|
|
234
|
-
if (typeof optionsOrCb === "function") {
|
|
235
|
-
this.send(command, optionsOrCb);
|
|
236
|
-
}
|
|
237
|
-
else if (typeof cb === "function") {
|
|
238
|
-
if (typeof optionsOrCb !== "object")
|
|
239
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
240
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
241
|
-
}
|
|
242
|
-
else {
|
|
243
|
-
return this.send(command, optionsOrCb);
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
deleteFolder(args, optionsOrCb, cb) {
|
|
247
|
-
const command = new DeleteFolderCommand_1.DeleteFolderCommand(args);
|
|
248
|
-
if (typeof optionsOrCb === "function") {
|
|
249
|
-
this.send(command, optionsOrCb);
|
|
250
|
-
}
|
|
251
|
-
else if (typeof cb === "function") {
|
|
252
|
-
if (typeof optionsOrCb !== "object")
|
|
253
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
254
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
255
|
-
}
|
|
256
|
-
else {
|
|
257
|
-
return this.send(command, optionsOrCb);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
deleteFolderContents(args, optionsOrCb, cb) {
|
|
261
|
-
const command = new DeleteFolderContentsCommand_1.DeleteFolderContentsCommand(args);
|
|
262
|
-
if (typeof optionsOrCb === "function") {
|
|
263
|
-
this.send(command, optionsOrCb);
|
|
264
|
-
}
|
|
265
|
-
else if (typeof cb === "function") {
|
|
266
|
-
if (typeof optionsOrCb !== "object")
|
|
267
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
268
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
269
|
-
}
|
|
270
|
-
else {
|
|
271
|
-
return this.send(command, optionsOrCb);
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
deleteLabels(args, optionsOrCb, cb) {
|
|
275
|
-
const command = new DeleteLabelsCommand_1.DeleteLabelsCommand(args);
|
|
276
|
-
if (typeof optionsOrCb === "function") {
|
|
277
|
-
this.send(command, optionsOrCb);
|
|
278
|
-
}
|
|
279
|
-
else if (typeof cb === "function") {
|
|
280
|
-
if (typeof optionsOrCb !== "object")
|
|
281
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
282
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
283
|
-
}
|
|
284
|
-
else {
|
|
285
|
-
return this.send(command, optionsOrCb);
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
deleteNotificationSubscription(args, optionsOrCb, cb) {
|
|
289
|
-
const command = new DeleteNotificationSubscriptionCommand_1.DeleteNotificationSubscriptionCommand(args);
|
|
290
|
-
if (typeof optionsOrCb === "function") {
|
|
291
|
-
this.send(command, optionsOrCb);
|
|
292
|
-
}
|
|
293
|
-
else if (typeof cb === "function") {
|
|
294
|
-
if (typeof optionsOrCb !== "object")
|
|
295
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
296
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
297
|
-
}
|
|
298
|
-
else {
|
|
299
|
-
return this.send(command, optionsOrCb);
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
deleteUser(args, optionsOrCb, cb) {
|
|
303
|
-
const command = new DeleteUserCommand_1.DeleteUserCommand(args);
|
|
304
|
-
if (typeof optionsOrCb === "function") {
|
|
305
|
-
this.send(command, optionsOrCb);
|
|
306
|
-
}
|
|
307
|
-
else if (typeof cb === "function") {
|
|
308
|
-
if (typeof optionsOrCb !== "object")
|
|
309
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
310
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
return this.send(command, optionsOrCb);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
describeActivities(args, optionsOrCb, cb) {
|
|
317
|
-
const command = new DescribeActivitiesCommand_1.DescribeActivitiesCommand(args);
|
|
318
|
-
if (typeof optionsOrCb === "function") {
|
|
319
|
-
this.send(command, optionsOrCb);
|
|
320
|
-
}
|
|
321
|
-
else if (typeof cb === "function") {
|
|
322
|
-
if (typeof optionsOrCb !== "object")
|
|
323
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
324
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
325
|
-
}
|
|
326
|
-
else {
|
|
327
|
-
return this.send(command, optionsOrCb);
|
|
328
|
-
}
|
|
329
|
-
}
|
|
330
|
-
describeComments(args, optionsOrCb, cb) {
|
|
331
|
-
const command = new DescribeCommentsCommand_1.DescribeCommentsCommand(args);
|
|
332
|
-
if (typeof optionsOrCb === "function") {
|
|
333
|
-
this.send(command, optionsOrCb);
|
|
334
|
-
}
|
|
335
|
-
else if (typeof cb === "function") {
|
|
336
|
-
if (typeof optionsOrCb !== "object")
|
|
337
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
338
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
339
|
-
}
|
|
340
|
-
else {
|
|
341
|
-
return this.send(command, optionsOrCb);
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
describeDocumentVersions(args, optionsOrCb, cb) {
|
|
345
|
-
const command = new DescribeDocumentVersionsCommand_1.DescribeDocumentVersionsCommand(args);
|
|
346
|
-
if (typeof optionsOrCb === "function") {
|
|
347
|
-
this.send(command, optionsOrCb);
|
|
348
|
-
}
|
|
349
|
-
else if (typeof cb === "function") {
|
|
350
|
-
if (typeof optionsOrCb !== "object")
|
|
351
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
352
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
353
|
-
}
|
|
354
|
-
else {
|
|
355
|
-
return this.send(command, optionsOrCb);
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
describeFolderContents(args, optionsOrCb, cb) {
|
|
359
|
-
const command = new DescribeFolderContentsCommand_1.DescribeFolderContentsCommand(args);
|
|
360
|
-
if (typeof optionsOrCb === "function") {
|
|
361
|
-
this.send(command, optionsOrCb);
|
|
362
|
-
}
|
|
363
|
-
else if (typeof cb === "function") {
|
|
364
|
-
if (typeof optionsOrCb !== "object")
|
|
365
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
366
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
367
|
-
}
|
|
368
|
-
else {
|
|
369
|
-
return this.send(command, optionsOrCb);
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
describeGroups(args, optionsOrCb, cb) {
|
|
373
|
-
const command = new DescribeGroupsCommand_1.DescribeGroupsCommand(args);
|
|
374
|
-
if (typeof optionsOrCb === "function") {
|
|
375
|
-
this.send(command, optionsOrCb);
|
|
376
|
-
}
|
|
377
|
-
else if (typeof cb === "function") {
|
|
378
|
-
if (typeof optionsOrCb !== "object")
|
|
379
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
380
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
381
|
-
}
|
|
382
|
-
else {
|
|
383
|
-
return this.send(command, optionsOrCb);
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
describeNotificationSubscriptions(args, optionsOrCb, cb) {
|
|
387
|
-
const command = new DescribeNotificationSubscriptionsCommand_1.DescribeNotificationSubscriptionsCommand(args);
|
|
388
|
-
if (typeof optionsOrCb === "function") {
|
|
389
|
-
this.send(command, optionsOrCb);
|
|
390
|
-
}
|
|
391
|
-
else if (typeof cb === "function") {
|
|
392
|
-
if (typeof optionsOrCb !== "object")
|
|
393
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
394
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
395
|
-
}
|
|
396
|
-
else {
|
|
397
|
-
return this.send(command, optionsOrCb);
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
describeResourcePermissions(args, optionsOrCb, cb) {
|
|
401
|
-
const command = new DescribeResourcePermissionsCommand_1.DescribeResourcePermissionsCommand(args);
|
|
402
|
-
if (typeof optionsOrCb === "function") {
|
|
403
|
-
this.send(command, optionsOrCb);
|
|
404
|
-
}
|
|
405
|
-
else if (typeof cb === "function") {
|
|
406
|
-
if (typeof optionsOrCb !== "object")
|
|
407
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
408
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
409
|
-
}
|
|
410
|
-
else {
|
|
411
|
-
return this.send(command, optionsOrCb);
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
describeRootFolders(args, optionsOrCb, cb) {
|
|
415
|
-
const command = new DescribeRootFoldersCommand_1.DescribeRootFoldersCommand(args);
|
|
416
|
-
if (typeof optionsOrCb === "function") {
|
|
417
|
-
this.send(command, optionsOrCb);
|
|
418
|
-
}
|
|
419
|
-
else if (typeof cb === "function") {
|
|
420
|
-
if (typeof optionsOrCb !== "object")
|
|
421
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
422
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
423
|
-
}
|
|
424
|
-
else {
|
|
425
|
-
return this.send(command, optionsOrCb);
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
describeUsers(args, optionsOrCb, cb) {
|
|
429
|
-
const command = new DescribeUsersCommand_1.DescribeUsersCommand(args);
|
|
430
|
-
if (typeof optionsOrCb === "function") {
|
|
431
|
-
this.send(command, optionsOrCb);
|
|
432
|
-
}
|
|
433
|
-
else if (typeof cb === "function") {
|
|
434
|
-
if (typeof optionsOrCb !== "object")
|
|
435
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
436
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
437
|
-
}
|
|
438
|
-
else {
|
|
439
|
-
return this.send(command, optionsOrCb);
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
getCurrentUser(args, optionsOrCb, cb) {
|
|
443
|
-
const command = new GetCurrentUserCommand_1.GetCurrentUserCommand(args);
|
|
444
|
-
if (typeof optionsOrCb === "function") {
|
|
445
|
-
this.send(command, optionsOrCb);
|
|
446
|
-
}
|
|
447
|
-
else if (typeof cb === "function") {
|
|
448
|
-
if (typeof optionsOrCb !== "object")
|
|
449
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
450
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
451
|
-
}
|
|
452
|
-
else {
|
|
453
|
-
return this.send(command, optionsOrCb);
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
getDocument(args, optionsOrCb, cb) {
|
|
457
|
-
const command = new GetDocumentCommand_1.GetDocumentCommand(args);
|
|
458
|
-
if (typeof optionsOrCb === "function") {
|
|
459
|
-
this.send(command, optionsOrCb);
|
|
460
|
-
}
|
|
461
|
-
else if (typeof cb === "function") {
|
|
462
|
-
if (typeof optionsOrCb !== "object")
|
|
463
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
464
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
465
|
-
}
|
|
466
|
-
else {
|
|
467
|
-
return this.send(command, optionsOrCb);
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
getDocumentPath(args, optionsOrCb, cb) {
|
|
471
|
-
const command = new GetDocumentPathCommand_1.GetDocumentPathCommand(args);
|
|
472
|
-
if (typeof optionsOrCb === "function") {
|
|
473
|
-
this.send(command, optionsOrCb);
|
|
474
|
-
}
|
|
475
|
-
else if (typeof cb === "function") {
|
|
476
|
-
if (typeof optionsOrCb !== "object")
|
|
477
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
478
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
479
|
-
}
|
|
480
|
-
else {
|
|
481
|
-
return this.send(command, optionsOrCb);
|
|
482
|
-
}
|
|
483
|
-
}
|
|
484
|
-
getDocumentVersion(args, optionsOrCb, cb) {
|
|
485
|
-
const command = new GetDocumentVersionCommand_1.GetDocumentVersionCommand(args);
|
|
486
|
-
if (typeof optionsOrCb === "function") {
|
|
487
|
-
this.send(command, optionsOrCb);
|
|
488
|
-
}
|
|
489
|
-
else if (typeof cb === "function") {
|
|
490
|
-
if (typeof optionsOrCb !== "object")
|
|
491
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
492
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
493
|
-
}
|
|
494
|
-
else {
|
|
495
|
-
return this.send(command, optionsOrCb);
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
getFolder(args, optionsOrCb, cb) {
|
|
499
|
-
const command = new GetFolderCommand_1.GetFolderCommand(args);
|
|
500
|
-
if (typeof optionsOrCb === "function") {
|
|
501
|
-
this.send(command, optionsOrCb);
|
|
502
|
-
}
|
|
503
|
-
else if (typeof cb === "function") {
|
|
504
|
-
if (typeof optionsOrCb !== "object")
|
|
505
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
506
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
507
|
-
}
|
|
508
|
-
else {
|
|
509
|
-
return this.send(command, optionsOrCb);
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
getFolderPath(args, optionsOrCb, cb) {
|
|
513
|
-
const command = new GetFolderPathCommand_1.GetFolderPathCommand(args);
|
|
514
|
-
if (typeof optionsOrCb === "function") {
|
|
515
|
-
this.send(command, optionsOrCb);
|
|
516
|
-
}
|
|
517
|
-
else if (typeof cb === "function") {
|
|
518
|
-
if (typeof optionsOrCb !== "object")
|
|
519
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
520
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
521
|
-
}
|
|
522
|
-
else {
|
|
523
|
-
return this.send(command, optionsOrCb);
|
|
524
|
-
}
|
|
525
|
-
}
|
|
526
|
-
getResources(args, optionsOrCb, cb) {
|
|
527
|
-
const command = new GetResourcesCommand_1.GetResourcesCommand(args);
|
|
528
|
-
if (typeof optionsOrCb === "function") {
|
|
529
|
-
this.send(command, optionsOrCb);
|
|
530
|
-
}
|
|
531
|
-
else if (typeof cb === "function") {
|
|
532
|
-
if (typeof optionsOrCb !== "object")
|
|
533
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
534
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
535
|
-
}
|
|
536
|
-
else {
|
|
537
|
-
return this.send(command, optionsOrCb);
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
initiateDocumentVersionUpload(args, optionsOrCb, cb) {
|
|
541
|
-
const command = new InitiateDocumentVersionUploadCommand_1.InitiateDocumentVersionUploadCommand(args);
|
|
542
|
-
if (typeof optionsOrCb === "function") {
|
|
543
|
-
this.send(command, optionsOrCb);
|
|
544
|
-
}
|
|
545
|
-
else if (typeof cb === "function") {
|
|
546
|
-
if (typeof optionsOrCb !== "object")
|
|
547
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
548
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
549
|
-
}
|
|
550
|
-
else {
|
|
551
|
-
return this.send(command, optionsOrCb);
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
removeAllResourcePermissions(args, optionsOrCb, cb) {
|
|
555
|
-
const command = new RemoveAllResourcePermissionsCommand_1.RemoveAllResourcePermissionsCommand(args);
|
|
556
|
-
if (typeof optionsOrCb === "function") {
|
|
557
|
-
this.send(command, optionsOrCb);
|
|
558
|
-
}
|
|
559
|
-
else if (typeof cb === "function") {
|
|
560
|
-
if (typeof optionsOrCb !== "object")
|
|
561
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
562
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
563
|
-
}
|
|
564
|
-
else {
|
|
565
|
-
return this.send(command, optionsOrCb);
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
removeResourcePermission(args, optionsOrCb, cb) {
|
|
569
|
-
const command = new RemoveResourcePermissionCommand_1.RemoveResourcePermissionCommand(args);
|
|
570
|
-
if (typeof optionsOrCb === "function") {
|
|
571
|
-
this.send(command, optionsOrCb);
|
|
572
|
-
}
|
|
573
|
-
else if (typeof cb === "function") {
|
|
574
|
-
if (typeof optionsOrCb !== "object")
|
|
575
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
576
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
577
|
-
}
|
|
578
|
-
else {
|
|
579
|
-
return this.send(command, optionsOrCb);
|
|
580
|
-
}
|
|
581
|
-
}
|
|
582
|
-
restoreDocumentVersions(args, optionsOrCb, cb) {
|
|
583
|
-
const command = new RestoreDocumentVersionsCommand_1.RestoreDocumentVersionsCommand(args);
|
|
584
|
-
if (typeof optionsOrCb === "function") {
|
|
585
|
-
this.send(command, optionsOrCb);
|
|
586
|
-
}
|
|
587
|
-
else if (typeof cb === "function") {
|
|
588
|
-
if (typeof optionsOrCb !== "object")
|
|
589
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
590
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
591
|
-
}
|
|
592
|
-
else {
|
|
593
|
-
return this.send(command, optionsOrCb);
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
searchResources(args, optionsOrCb, cb) {
|
|
597
|
-
const command = new SearchResourcesCommand_1.SearchResourcesCommand(args);
|
|
598
|
-
if (typeof optionsOrCb === "function") {
|
|
599
|
-
this.send(command, optionsOrCb);
|
|
600
|
-
}
|
|
601
|
-
else if (typeof cb === "function") {
|
|
602
|
-
if (typeof optionsOrCb !== "object")
|
|
603
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
604
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
605
|
-
}
|
|
606
|
-
else {
|
|
607
|
-
return this.send(command, optionsOrCb);
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
updateDocument(args, optionsOrCb, cb) {
|
|
611
|
-
const command = new UpdateDocumentCommand_1.UpdateDocumentCommand(args);
|
|
612
|
-
if (typeof optionsOrCb === "function") {
|
|
613
|
-
this.send(command, optionsOrCb);
|
|
614
|
-
}
|
|
615
|
-
else if (typeof cb === "function") {
|
|
616
|
-
if (typeof optionsOrCb !== "object")
|
|
617
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
618
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
619
|
-
}
|
|
620
|
-
else {
|
|
621
|
-
return this.send(command, optionsOrCb);
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
updateDocumentVersion(args, optionsOrCb, cb) {
|
|
625
|
-
const command = new UpdateDocumentVersionCommand_1.UpdateDocumentVersionCommand(args);
|
|
626
|
-
if (typeof optionsOrCb === "function") {
|
|
627
|
-
this.send(command, optionsOrCb);
|
|
628
|
-
}
|
|
629
|
-
else if (typeof cb === "function") {
|
|
630
|
-
if (typeof optionsOrCb !== "object")
|
|
631
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
632
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
633
|
-
}
|
|
634
|
-
else {
|
|
635
|
-
return this.send(command, optionsOrCb);
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
updateFolder(args, optionsOrCb, cb) {
|
|
639
|
-
const command = new UpdateFolderCommand_1.UpdateFolderCommand(args);
|
|
640
|
-
if (typeof optionsOrCb === "function") {
|
|
641
|
-
this.send(command, optionsOrCb);
|
|
642
|
-
}
|
|
643
|
-
else if (typeof cb === "function") {
|
|
644
|
-
if (typeof optionsOrCb !== "object")
|
|
645
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
646
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
647
|
-
}
|
|
648
|
-
else {
|
|
649
|
-
return this.send(command, optionsOrCb);
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
updateUser(args, optionsOrCb, cb) {
|
|
653
|
-
const command = new UpdateUserCommand_1.UpdateUserCommand(args);
|
|
654
|
-
if (typeof optionsOrCb === "function") {
|
|
655
|
-
this.send(command, optionsOrCb);
|
|
656
|
-
}
|
|
657
|
-
else if (typeof cb === "function") {
|
|
658
|
-
if (typeof optionsOrCb !== "object")
|
|
659
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
660
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
661
|
-
}
|
|
662
|
-
else {
|
|
663
|
-
return this.send(command, optionsOrCb);
|
|
664
|
-
}
|
|
665
|
-
}
|
|
666
97
|
}
|
|
667
98
|
exports.WorkDocs = WorkDocs;
|
|
99
|
+
(0, smithy_client_1.createAggregatedClient)(commands, WorkDocs);
|