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