@aws-sdk/client-qapps 3.682.0 → 3.687.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/README.md +33 -1
- package/dist-cjs/QApps.js +8 -0
- package/dist-cjs/commands/BatchCreateCategoryCommand.js +26 -0
- package/dist-cjs/commands/BatchDeleteCategoryCommand.js +26 -0
- package/dist-cjs/commands/BatchUpdateCategoryCommand.js +26 -0
- package/dist-cjs/commands/ListCategoriesCommand.js +26 -0
- package/dist-cjs/commands/index.js +4 -0
- package/dist-cjs/protocols/Aws_restJson1.js +106 -1
- package/dist-es/QApps.js +8 -0
- package/dist-es/commands/BatchCreateCategoryCommand.js +22 -0
- package/dist-es/commands/BatchDeleteCategoryCommand.js +22 -0
- package/dist-es/commands/BatchUpdateCategoryCommand.js +22 -0
- package/dist-es/commands/ListCategoriesCommand.js +22 -0
- package/dist-es/commands/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +96 -0
- package/dist-types/QApps.d.ts +28 -0
- package/dist-types/QAppsClient.d.ts +6 -2
- package/dist-types/commands/BatchCreateCategoryCommand.d.ts +120 -0
- package/dist-types/commands/BatchDeleteCategoryCommand.d.ts +109 -0
- package/dist-types/commands/BatchUpdateCategoryCommand.d.ts +120 -0
- package/dist-types/commands/GetLibraryItemCommand.d.ts +2 -0
- package/dist-types/commands/GetQAppSessionCommand.d.ts +2 -2
- package/dist-types/commands/ListCategoriesCommand.d.ts +126 -0
- package/dist-types/commands/ListLibraryItemsCommand.d.ts +2 -0
- package/dist-types/commands/UpdateLibraryItemCommand.d.ts +2 -0
- package/dist-types/commands/index.d.ts +4 -0
- package/dist-types/models/models_0.d.ts +117 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
- package/dist-types/ts3.4/QApps.d.ts +68 -0
- package/dist-types/ts3.4/QAppsClient.d.ts +24 -0
- package/dist-types/ts3.4/commands/BatchCreateCategoryCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/BatchDeleteCategoryCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/BatchUpdateCategoryCommand.d.ts +46 -0
- package/dist-types/ts3.4/commands/ListCategoriesCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +30 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
- package/package.json +35 -35
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ IAM role for the Amazon Q Business web experience including Amazon Q Apps</a> in
|
|
|
23
23
|
|
|
24
24
|
## Installing
|
|
25
25
|
|
|
26
|
-
To install
|
|
26
|
+
To install this package, simply type add or install @aws-sdk/client-qapps
|
|
27
27
|
using your favorite package manager:
|
|
28
28
|
|
|
29
29
|
- `npm install @aws-sdk/client-qapps`
|
|
@@ -231,6 +231,30 @@ AssociateQAppWithUser
|
|
|
231
231
|
|
|
232
232
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/AssociateQAppWithUserCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/AssociateQAppWithUserCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/AssociateQAppWithUserCommandOutput/)
|
|
233
233
|
|
|
234
|
+
</details>
|
|
235
|
+
<details>
|
|
236
|
+
<summary>
|
|
237
|
+
BatchCreateCategory
|
|
238
|
+
</summary>
|
|
239
|
+
|
|
240
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/BatchCreateCategoryCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/BatchCreateCategoryCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/BatchCreateCategoryCommandOutput/)
|
|
241
|
+
|
|
242
|
+
</details>
|
|
243
|
+
<details>
|
|
244
|
+
<summary>
|
|
245
|
+
BatchDeleteCategory
|
|
246
|
+
</summary>
|
|
247
|
+
|
|
248
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/BatchDeleteCategoryCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/BatchDeleteCategoryCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/BatchDeleteCategoryCommandOutput/)
|
|
249
|
+
|
|
250
|
+
</details>
|
|
251
|
+
<details>
|
|
252
|
+
<summary>
|
|
253
|
+
BatchUpdateCategory
|
|
254
|
+
</summary>
|
|
255
|
+
|
|
256
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/BatchUpdateCategoryCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/BatchUpdateCategoryCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/BatchUpdateCategoryCommandOutput/)
|
|
257
|
+
|
|
234
258
|
</details>
|
|
235
259
|
<details>
|
|
236
260
|
<summary>
|
|
@@ -311,6 +335,14 @@ ImportDocument
|
|
|
311
335
|
|
|
312
336
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/ImportDocumentCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/ImportDocumentCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/ImportDocumentCommandOutput/)
|
|
313
337
|
|
|
338
|
+
</details>
|
|
339
|
+
<details>
|
|
340
|
+
<summary>
|
|
341
|
+
ListCategories
|
|
342
|
+
</summary>
|
|
343
|
+
|
|
344
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/ListCategoriesCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/ListCategoriesCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/ListCategoriesCommandOutput/)
|
|
345
|
+
|
|
314
346
|
</details>
|
|
315
347
|
<details>
|
|
316
348
|
<summary>
|
package/dist-cjs/QApps.js
CHANGED
|
@@ -4,6 +4,9 @@ exports.QApps = void 0;
|
|
|
4
4
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
5
|
const AssociateLibraryItemReviewCommand_1 = require("./commands/AssociateLibraryItemReviewCommand");
|
|
6
6
|
const AssociateQAppWithUserCommand_1 = require("./commands/AssociateQAppWithUserCommand");
|
|
7
|
+
const BatchCreateCategoryCommand_1 = require("./commands/BatchCreateCategoryCommand");
|
|
8
|
+
const BatchDeleteCategoryCommand_1 = require("./commands/BatchDeleteCategoryCommand");
|
|
9
|
+
const BatchUpdateCategoryCommand_1 = require("./commands/BatchUpdateCategoryCommand");
|
|
7
10
|
const CreateLibraryItemCommand_1 = require("./commands/CreateLibraryItemCommand");
|
|
8
11
|
const CreateQAppCommand_1 = require("./commands/CreateQAppCommand");
|
|
9
12
|
const DeleteLibraryItemCommand_1 = require("./commands/DeleteLibraryItemCommand");
|
|
@@ -14,6 +17,7 @@ const GetLibraryItemCommand_1 = require("./commands/GetLibraryItemCommand");
|
|
|
14
17
|
const GetQAppCommand_1 = require("./commands/GetQAppCommand");
|
|
15
18
|
const GetQAppSessionCommand_1 = require("./commands/GetQAppSessionCommand");
|
|
16
19
|
const ImportDocumentCommand_1 = require("./commands/ImportDocumentCommand");
|
|
20
|
+
const ListCategoriesCommand_1 = require("./commands/ListCategoriesCommand");
|
|
17
21
|
const ListLibraryItemsCommand_1 = require("./commands/ListLibraryItemsCommand");
|
|
18
22
|
const ListQAppsCommand_1 = require("./commands/ListQAppsCommand");
|
|
19
23
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
@@ -30,6 +34,9 @@ const QAppsClient_1 = require("./QAppsClient");
|
|
|
30
34
|
const commands = {
|
|
31
35
|
AssociateLibraryItemReviewCommand: AssociateLibraryItemReviewCommand_1.AssociateLibraryItemReviewCommand,
|
|
32
36
|
AssociateQAppWithUserCommand: AssociateQAppWithUserCommand_1.AssociateQAppWithUserCommand,
|
|
37
|
+
BatchCreateCategoryCommand: BatchCreateCategoryCommand_1.BatchCreateCategoryCommand,
|
|
38
|
+
BatchDeleteCategoryCommand: BatchDeleteCategoryCommand_1.BatchDeleteCategoryCommand,
|
|
39
|
+
BatchUpdateCategoryCommand: BatchUpdateCategoryCommand_1.BatchUpdateCategoryCommand,
|
|
33
40
|
CreateLibraryItemCommand: CreateLibraryItemCommand_1.CreateLibraryItemCommand,
|
|
34
41
|
CreateQAppCommand: CreateQAppCommand_1.CreateQAppCommand,
|
|
35
42
|
DeleteLibraryItemCommand: DeleteLibraryItemCommand_1.DeleteLibraryItemCommand,
|
|
@@ -40,6 +47,7 @@ const commands = {
|
|
|
40
47
|
GetQAppCommand: GetQAppCommand_1.GetQAppCommand,
|
|
41
48
|
GetQAppSessionCommand: GetQAppSessionCommand_1.GetQAppSessionCommand,
|
|
42
49
|
ImportDocumentCommand: ImportDocumentCommand_1.ImportDocumentCommand,
|
|
50
|
+
ListCategoriesCommand: ListCategoriesCommand_1.ListCategoriesCommand,
|
|
43
51
|
ListLibraryItemsCommand: ListLibraryItemsCommand_1.ListLibraryItemsCommand,
|
|
44
52
|
ListQAppsCommand: ListQAppsCommand_1.ListQAppsCommand,
|
|
45
53
|
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchCreateCategoryCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class BatchCreateCategoryCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep(EndpointParameters_1.commonParams)
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("QAppsService", "BatchCreateCategory", {})
|
|
20
|
+
.n("QAppsClient", "BatchCreateCategoryCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(Aws_restJson1_1.se_BatchCreateCategoryCommand)
|
|
23
|
+
.de(Aws_restJson1_1.de_BatchCreateCategoryCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
26
|
+
exports.BatchCreateCategoryCommand = BatchCreateCategoryCommand;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchDeleteCategoryCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class BatchDeleteCategoryCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep(EndpointParameters_1.commonParams)
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("QAppsService", "BatchDeleteCategory", {})
|
|
20
|
+
.n("QAppsClient", "BatchDeleteCategoryCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(Aws_restJson1_1.se_BatchDeleteCategoryCommand)
|
|
23
|
+
.de(Aws_restJson1_1.de_BatchDeleteCategoryCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
26
|
+
exports.BatchDeleteCategoryCommand = BatchDeleteCategoryCommand;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BatchUpdateCategoryCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class BatchUpdateCategoryCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep(EndpointParameters_1.commonParams)
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("QAppsService", "BatchUpdateCategory", {})
|
|
20
|
+
.n("QAppsClient", "BatchUpdateCategoryCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(Aws_restJson1_1.se_BatchUpdateCategoryCommand)
|
|
23
|
+
.de(Aws_restJson1_1.de_BatchUpdateCategoryCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
26
|
+
exports.BatchUpdateCategoryCommand = BatchUpdateCategoryCommand;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListCategoriesCommand = exports.$Command = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@smithy/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
|
|
8
|
+
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
9
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
10
|
+
class ListCategoriesCommand extends smithy_client_1.Command
|
|
11
|
+
.classBuilder()
|
|
12
|
+
.ep(EndpointParameters_1.commonParams)
|
|
13
|
+
.m(function (Command, cs, config, o) {
|
|
14
|
+
return [
|
|
15
|
+
(0, middleware_serde_1.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
16
|
+
(0, middleware_endpoint_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()),
|
|
17
|
+
];
|
|
18
|
+
})
|
|
19
|
+
.s("QAppsService", "ListCategories", {})
|
|
20
|
+
.n("QAppsClient", "ListCategoriesCommand")
|
|
21
|
+
.f(void 0, void 0)
|
|
22
|
+
.ser(Aws_restJson1_1.se_ListCategoriesCommand)
|
|
23
|
+
.de(Aws_restJson1_1.de_ListCategoriesCommand)
|
|
24
|
+
.build() {
|
|
25
|
+
}
|
|
26
|
+
exports.ListCategoriesCommand = ListCategoriesCommand;
|
|
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./AssociateLibraryItemReviewCommand"), exports);
|
|
5
5
|
tslib_1.__exportStar(require("./AssociateQAppWithUserCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./BatchCreateCategoryCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./BatchDeleteCategoryCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./BatchUpdateCategoryCommand"), exports);
|
|
6
9
|
tslib_1.__exportStar(require("./CreateLibraryItemCommand"), exports);
|
|
7
10
|
tslib_1.__exportStar(require("./CreateQAppCommand"), exports);
|
|
8
11
|
tslib_1.__exportStar(require("./DeleteLibraryItemCommand"), exports);
|
|
@@ -13,6 +16,7 @@ tslib_1.__exportStar(require("./GetLibraryItemCommand"), exports);
|
|
|
13
16
|
tslib_1.__exportStar(require("./GetQAppCommand"), exports);
|
|
14
17
|
tslib_1.__exportStar(require("./GetQAppSessionCommand"), exports);
|
|
15
18
|
tslib_1.__exportStar(require("./ImportDocumentCommand"), exports);
|
|
19
|
+
tslib_1.__exportStar(require("./ListCategoriesCommand"), exports);
|
|
16
20
|
tslib_1.__exportStar(require("./ListLibraryItemsCommand"), exports);
|
|
17
21
|
tslib_1.__exportStar(require("./ListQAppsCommand"), exports);
|
|
18
22
|
tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.de_StopQAppSessionCommand = exports.de_StartQAppSessionCommand = exports.de_PredictQAppCommand = exports.de_ListTagsForResourceCommand = exports.de_ListQAppsCommand = exports.de_ListLibraryItemsCommand = exports.de_ListCategoriesCommand = exports.de_ImportDocumentCommand = exports.de_GetQAppSessionCommand = exports.de_GetQAppCommand = exports.de_GetLibraryItemCommand = exports.de_DisassociateQAppFromUserCommand = exports.de_DisassociateLibraryItemReviewCommand = exports.de_DeleteQAppCommand = exports.de_DeleteLibraryItemCommand = exports.de_CreateQAppCommand = exports.de_CreateLibraryItemCommand = exports.de_BatchUpdateCategoryCommand = exports.de_BatchDeleteCategoryCommand = exports.de_BatchCreateCategoryCommand = exports.de_AssociateQAppWithUserCommand = exports.de_AssociateLibraryItemReviewCommand = exports.se_UpdateQAppSessionCommand = exports.se_UpdateQAppCommand = exports.se_UpdateLibraryItemMetadataCommand = exports.se_UpdateLibraryItemCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_StopQAppSessionCommand = exports.se_StartQAppSessionCommand = exports.se_PredictQAppCommand = exports.se_ListTagsForResourceCommand = exports.se_ListQAppsCommand = exports.se_ListLibraryItemsCommand = exports.se_ListCategoriesCommand = exports.se_ImportDocumentCommand = exports.se_GetQAppSessionCommand = exports.se_GetQAppCommand = exports.se_GetLibraryItemCommand = exports.se_DisassociateQAppFromUserCommand = exports.se_DisassociateLibraryItemReviewCommand = exports.se_DeleteQAppCommand = exports.se_DeleteLibraryItemCommand = exports.se_CreateQAppCommand = exports.se_CreateLibraryItemCommand = exports.se_BatchUpdateCategoryCommand = exports.se_BatchDeleteCategoryCommand = exports.se_BatchCreateCategoryCommand = exports.se_AssociateQAppWithUserCommand = exports.se_AssociateLibraryItemReviewCommand = void 0;
|
|
4
|
+
exports.de_UpdateQAppSessionCommand = exports.de_UpdateQAppCommand = exports.de_UpdateLibraryItemMetadataCommand = exports.de_UpdateLibraryItemCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = void 0;
|
|
4
5
|
const core_1 = require("@aws-sdk/core");
|
|
5
6
|
const core_2 = require("@smithy/core");
|
|
6
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -36,6 +37,51 @@ const se_AssociateQAppWithUserCommand = async (input, context) => {
|
|
|
36
37
|
return b.build();
|
|
37
38
|
};
|
|
38
39
|
exports.se_AssociateQAppWithUserCommand = se_AssociateQAppWithUserCommand;
|
|
40
|
+
const se_BatchCreateCategoryCommand = async (input, context) => {
|
|
41
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
42
|
+
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
43
|
+
"content-type": "application/json",
|
|
44
|
+
[_ii]: input[_iI],
|
|
45
|
+
});
|
|
46
|
+
b.bp("/catalog.createCategories");
|
|
47
|
+
let body;
|
|
48
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
49
|
+
categories: (_) => (0, smithy_client_1._json)(_),
|
|
50
|
+
}));
|
|
51
|
+
b.m("POST").h(headers).b(body);
|
|
52
|
+
return b.build();
|
|
53
|
+
};
|
|
54
|
+
exports.se_BatchCreateCategoryCommand = se_BatchCreateCategoryCommand;
|
|
55
|
+
const se_BatchDeleteCategoryCommand = async (input, context) => {
|
|
56
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
57
|
+
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
58
|
+
"content-type": "application/json",
|
|
59
|
+
[_ii]: input[_iI],
|
|
60
|
+
});
|
|
61
|
+
b.bp("/catalog.deleteCategories");
|
|
62
|
+
let body;
|
|
63
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
64
|
+
categories: (_) => (0, smithy_client_1._json)(_),
|
|
65
|
+
}));
|
|
66
|
+
b.m("POST").h(headers).b(body);
|
|
67
|
+
return b.build();
|
|
68
|
+
};
|
|
69
|
+
exports.se_BatchDeleteCategoryCommand = se_BatchDeleteCategoryCommand;
|
|
70
|
+
const se_BatchUpdateCategoryCommand = async (input, context) => {
|
|
71
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
72
|
+
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
73
|
+
"content-type": "application/json",
|
|
74
|
+
[_ii]: input[_iI],
|
|
75
|
+
});
|
|
76
|
+
b.bp("/catalog.updateCategories");
|
|
77
|
+
let body;
|
|
78
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
79
|
+
categories: (_) => (0, smithy_client_1._json)(_),
|
|
80
|
+
}));
|
|
81
|
+
b.m("POST").h(headers).b(body);
|
|
82
|
+
return b.build();
|
|
83
|
+
};
|
|
84
|
+
exports.se_BatchUpdateCategoryCommand = se_BatchUpdateCategoryCommand;
|
|
39
85
|
const se_CreateLibraryItemCommand = async (input, context) => {
|
|
40
86
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
41
87
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
@@ -194,6 +240,17 @@ const se_ImportDocumentCommand = async (input, context) => {
|
|
|
194
240
|
return b.build();
|
|
195
241
|
};
|
|
196
242
|
exports.se_ImportDocumentCommand = se_ImportDocumentCommand;
|
|
243
|
+
const se_ListCategoriesCommand = async (input, context) => {
|
|
244
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
245
|
+
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
246
|
+
[_ii]: input[_iI],
|
|
247
|
+
});
|
|
248
|
+
b.bp("/catalog.listCategories");
|
|
249
|
+
let body;
|
|
250
|
+
b.m("GET").h(headers).b(body);
|
|
251
|
+
return b.build();
|
|
252
|
+
};
|
|
253
|
+
exports.se_ListCategoriesCommand = se_ListCategoriesCommand;
|
|
197
254
|
const se_ListLibraryItemsCommand = async (input, context) => {
|
|
198
255
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
199
256
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
@@ -400,6 +457,39 @@ const de_AssociateQAppWithUserCommand = async (output, context) => {
|
|
|
400
457
|
return contents;
|
|
401
458
|
};
|
|
402
459
|
exports.de_AssociateQAppWithUserCommand = de_AssociateQAppWithUserCommand;
|
|
460
|
+
const de_BatchCreateCategoryCommand = async (output, context) => {
|
|
461
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
462
|
+
return de_CommandError(output, context);
|
|
463
|
+
}
|
|
464
|
+
const contents = (0, smithy_client_1.map)({
|
|
465
|
+
$metadata: deserializeMetadata(output),
|
|
466
|
+
});
|
|
467
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
468
|
+
return contents;
|
|
469
|
+
};
|
|
470
|
+
exports.de_BatchCreateCategoryCommand = de_BatchCreateCategoryCommand;
|
|
471
|
+
const de_BatchDeleteCategoryCommand = async (output, context) => {
|
|
472
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
473
|
+
return de_CommandError(output, context);
|
|
474
|
+
}
|
|
475
|
+
const contents = (0, smithy_client_1.map)({
|
|
476
|
+
$metadata: deserializeMetadata(output),
|
|
477
|
+
});
|
|
478
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
479
|
+
return contents;
|
|
480
|
+
};
|
|
481
|
+
exports.de_BatchDeleteCategoryCommand = de_BatchDeleteCategoryCommand;
|
|
482
|
+
const de_BatchUpdateCategoryCommand = async (output, context) => {
|
|
483
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
484
|
+
return de_CommandError(output, context);
|
|
485
|
+
}
|
|
486
|
+
const contents = (0, smithy_client_1.map)({
|
|
487
|
+
$metadata: deserializeMetadata(output),
|
|
488
|
+
});
|
|
489
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
490
|
+
return contents;
|
|
491
|
+
};
|
|
492
|
+
exports.de_BatchUpdateCategoryCommand = de_BatchUpdateCategoryCommand;
|
|
403
493
|
const de_CreateLibraryItemCommand = async (output, context) => {
|
|
404
494
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
405
495
|
return de_CommandError(output, context);
|
|
@@ -579,6 +669,21 @@ const de_ImportDocumentCommand = async (output, context) => {
|
|
|
579
669
|
return contents;
|
|
580
670
|
};
|
|
581
671
|
exports.de_ImportDocumentCommand = de_ImportDocumentCommand;
|
|
672
|
+
const de_ListCategoriesCommand = async (output, context) => {
|
|
673
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
674
|
+
return de_CommandError(output, context);
|
|
675
|
+
}
|
|
676
|
+
const contents = (0, smithy_client_1.map)({
|
|
677
|
+
$metadata: deserializeMetadata(output),
|
|
678
|
+
});
|
|
679
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
680
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
681
|
+
categories: smithy_client_1._json,
|
|
682
|
+
});
|
|
683
|
+
Object.assign(contents, doc);
|
|
684
|
+
return contents;
|
|
685
|
+
};
|
|
686
|
+
exports.de_ListCategoriesCommand = de_ListCategoriesCommand;
|
|
582
687
|
const de_ListLibraryItemsCommand = async (output, context) => {
|
|
583
688
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
584
689
|
return de_CommandError(output, context);
|
package/dist-es/QApps.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { AssociateLibraryItemReviewCommand, } from "./commands/AssociateLibraryItemReviewCommand";
|
|
3
3
|
import { AssociateQAppWithUserCommand, } from "./commands/AssociateQAppWithUserCommand";
|
|
4
|
+
import { BatchCreateCategoryCommand, } from "./commands/BatchCreateCategoryCommand";
|
|
5
|
+
import { BatchDeleteCategoryCommand, } from "./commands/BatchDeleteCategoryCommand";
|
|
6
|
+
import { BatchUpdateCategoryCommand, } from "./commands/BatchUpdateCategoryCommand";
|
|
4
7
|
import { CreateLibraryItemCommand, } from "./commands/CreateLibraryItemCommand";
|
|
5
8
|
import { CreateQAppCommand } from "./commands/CreateQAppCommand";
|
|
6
9
|
import { DeleteLibraryItemCommand, } from "./commands/DeleteLibraryItemCommand";
|
|
@@ -11,6 +14,7 @@ import { GetLibraryItemCommand, } from "./commands/GetLibraryItemCommand";
|
|
|
11
14
|
import { GetQAppCommand } from "./commands/GetQAppCommand";
|
|
12
15
|
import { GetQAppSessionCommand, } from "./commands/GetQAppSessionCommand";
|
|
13
16
|
import { ImportDocumentCommand, } from "./commands/ImportDocumentCommand";
|
|
17
|
+
import { ListCategoriesCommand, } from "./commands/ListCategoriesCommand";
|
|
14
18
|
import { ListLibraryItemsCommand, } from "./commands/ListLibraryItemsCommand";
|
|
15
19
|
import { ListQAppsCommand } from "./commands/ListQAppsCommand";
|
|
16
20
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
@@ -27,6 +31,9 @@ import { QAppsClient } from "./QAppsClient";
|
|
|
27
31
|
const commands = {
|
|
28
32
|
AssociateLibraryItemReviewCommand,
|
|
29
33
|
AssociateQAppWithUserCommand,
|
|
34
|
+
BatchCreateCategoryCommand,
|
|
35
|
+
BatchDeleteCategoryCommand,
|
|
36
|
+
BatchUpdateCategoryCommand,
|
|
30
37
|
CreateLibraryItemCommand,
|
|
31
38
|
CreateQAppCommand,
|
|
32
39
|
DeleteLibraryItemCommand,
|
|
@@ -37,6 +44,7 @@ const commands = {
|
|
|
37
44
|
GetQAppCommand,
|
|
38
45
|
GetQAppSessionCommand,
|
|
39
46
|
ImportDocumentCommand,
|
|
47
|
+
ListCategoriesCommand,
|
|
40
48
|
ListLibraryItemsCommand,
|
|
41
49
|
ListQAppsCommand,
|
|
42
50
|
ListTagsForResourceCommand,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchCreateCategoryCommand, se_BatchCreateCategoryCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchCreateCategoryCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("QAppsService", "BatchCreateCategory", {})
|
|
17
|
+
.n("QAppsClient", "BatchCreateCategoryCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchCreateCategoryCommand)
|
|
20
|
+
.de(de_BatchCreateCategoryCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchDeleteCategoryCommand, se_BatchDeleteCategoryCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchDeleteCategoryCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("QAppsService", "BatchDeleteCategory", {})
|
|
17
|
+
.n("QAppsClient", "BatchDeleteCategoryCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchDeleteCategoryCommand)
|
|
20
|
+
.de(de_BatchDeleteCategoryCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_BatchUpdateCategoryCommand, se_BatchUpdateCategoryCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class BatchUpdateCategoryCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("QAppsService", "BatchUpdateCategory", {})
|
|
17
|
+
.n("QAppsClient", "BatchUpdateCategoryCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_BatchUpdateCategoryCommand)
|
|
20
|
+
.de(de_BatchUpdateCategoryCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListCategoriesCommand, se_ListCategoriesCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListCategoriesCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep(commonParams)
|
|
10
|
+
.m(function (Command, cs, config, o) {
|
|
11
|
+
return [
|
|
12
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
13
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
14
|
+
];
|
|
15
|
+
})
|
|
16
|
+
.s("QAppsService", "ListCategories", {})
|
|
17
|
+
.n("QAppsClient", "ListCategoriesCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_ListCategoriesCommand)
|
|
20
|
+
.de(de_ListCategoriesCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * from "./AssociateLibraryItemReviewCommand";
|
|
2
2
|
export * from "./AssociateQAppWithUserCommand";
|
|
3
|
+
export * from "./BatchCreateCategoryCommand";
|
|
4
|
+
export * from "./BatchDeleteCategoryCommand";
|
|
5
|
+
export * from "./BatchUpdateCategoryCommand";
|
|
3
6
|
export * from "./CreateLibraryItemCommand";
|
|
4
7
|
export * from "./CreateQAppCommand";
|
|
5
8
|
export * from "./DeleteLibraryItemCommand";
|
|
@@ -10,6 +13,7 @@ export * from "./GetLibraryItemCommand";
|
|
|
10
13
|
export * from "./GetQAppCommand";
|
|
11
14
|
export * from "./GetQAppSessionCommand";
|
|
12
15
|
export * from "./ImportDocumentCommand";
|
|
16
|
+
export * from "./ListCategoriesCommand";
|
|
13
17
|
export * from "./ListLibraryItemsCommand";
|
|
14
18
|
export * from "./ListQAppsCommand";
|
|
15
19
|
export * from "./ListTagsForResourceCommand";
|
|
@@ -31,6 +31,48 @@ export const se_AssociateQAppWithUserCommand = async (input, context) => {
|
|
|
31
31
|
b.m("POST").h(headers).b(body);
|
|
32
32
|
return b.build();
|
|
33
33
|
};
|
|
34
|
+
export const se_BatchCreateCategoryCommand = async (input, context) => {
|
|
35
|
+
const b = rb(input, context);
|
|
36
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
37
|
+
"content-type": "application/json",
|
|
38
|
+
[_ii]: input[_iI],
|
|
39
|
+
});
|
|
40
|
+
b.bp("/catalog.createCategories");
|
|
41
|
+
let body;
|
|
42
|
+
body = JSON.stringify(take(input, {
|
|
43
|
+
categories: (_) => _json(_),
|
|
44
|
+
}));
|
|
45
|
+
b.m("POST").h(headers).b(body);
|
|
46
|
+
return b.build();
|
|
47
|
+
};
|
|
48
|
+
export const se_BatchDeleteCategoryCommand = async (input, context) => {
|
|
49
|
+
const b = rb(input, context);
|
|
50
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
51
|
+
"content-type": "application/json",
|
|
52
|
+
[_ii]: input[_iI],
|
|
53
|
+
});
|
|
54
|
+
b.bp("/catalog.deleteCategories");
|
|
55
|
+
let body;
|
|
56
|
+
body = JSON.stringify(take(input, {
|
|
57
|
+
categories: (_) => _json(_),
|
|
58
|
+
}));
|
|
59
|
+
b.m("POST").h(headers).b(body);
|
|
60
|
+
return b.build();
|
|
61
|
+
};
|
|
62
|
+
export const se_BatchUpdateCategoryCommand = async (input, context) => {
|
|
63
|
+
const b = rb(input, context);
|
|
64
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
65
|
+
"content-type": "application/json",
|
|
66
|
+
[_ii]: input[_iI],
|
|
67
|
+
});
|
|
68
|
+
b.bp("/catalog.updateCategories");
|
|
69
|
+
let body;
|
|
70
|
+
body = JSON.stringify(take(input, {
|
|
71
|
+
categories: (_) => _json(_),
|
|
72
|
+
}));
|
|
73
|
+
b.m("POST").h(headers).b(body);
|
|
74
|
+
return b.build();
|
|
75
|
+
};
|
|
34
76
|
export const se_CreateLibraryItemCommand = async (input, context) => {
|
|
35
77
|
const b = rb(input, context);
|
|
36
78
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -179,6 +221,16 @@ export const se_ImportDocumentCommand = async (input, context) => {
|
|
|
179
221
|
b.m("POST").h(headers).b(body);
|
|
180
222
|
return b.build();
|
|
181
223
|
};
|
|
224
|
+
export const se_ListCategoriesCommand = async (input, context) => {
|
|
225
|
+
const b = rb(input, context);
|
|
226
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
227
|
+
[_ii]: input[_iI],
|
|
228
|
+
});
|
|
229
|
+
b.bp("/catalog.listCategories");
|
|
230
|
+
let body;
|
|
231
|
+
b.m("GET").h(headers).b(body);
|
|
232
|
+
return b.build();
|
|
233
|
+
};
|
|
182
234
|
export const se_ListLibraryItemsCommand = async (input, context) => {
|
|
183
235
|
const b = rb(input, context);
|
|
184
236
|
const headers = map({}, isSerializableHeaderValue, {
|
|
@@ -371,6 +423,36 @@ export const de_AssociateQAppWithUserCommand = async (output, context) => {
|
|
|
371
423
|
await collectBody(output.body, context);
|
|
372
424
|
return contents;
|
|
373
425
|
};
|
|
426
|
+
export const de_BatchCreateCategoryCommand = async (output, context) => {
|
|
427
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
428
|
+
return de_CommandError(output, context);
|
|
429
|
+
}
|
|
430
|
+
const contents = map({
|
|
431
|
+
$metadata: deserializeMetadata(output),
|
|
432
|
+
});
|
|
433
|
+
await collectBody(output.body, context);
|
|
434
|
+
return contents;
|
|
435
|
+
};
|
|
436
|
+
export const de_BatchDeleteCategoryCommand = async (output, context) => {
|
|
437
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
438
|
+
return de_CommandError(output, context);
|
|
439
|
+
}
|
|
440
|
+
const contents = map({
|
|
441
|
+
$metadata: deserializeMetadata(output),
|
|
442
|
+
});
|
|
443
|
+
await collectBody(output.body, context);
|
|
444
|
+
return contents;
|
|
445
|
+
};
|
|
446
|
+
export const de_BatchUpdateCategoryCommand = async (output, context) => {
|
|
447
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
448
|
+
return de_CommandError(output, context);
|
|
449
|
+
}
|
|
450
|
+
const contents = map({
|
|
451
|
+
$metadata: deserializeMetadata(output),
|
|
452
|
+
});
|
|
453
|
+
await collectBody(output.body, context);
|
|
454
|
+
return contents;
|
|
455
|
+
};
|
|
374
456
|
export const de_CreateLibraryItemCommand = async (output, context) => {
|
|
375
457
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
376
458
|
return de_CommandError(output, context);
|
|
@@ -540,6 +622,20 @@ export const de_ImportDocumentCommand = async (output, context) => {
|
|
|
540
622
|
Object.assign(contents, doc);
|
|
541
623
|
return contents;
|
|
542
624
|
};
|
|
625
|
+
export const de_ListCategoriesCommand = async (output, context) => {
|
|
626
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
627
|
+
return de_CommandError(output, context);
|
|
628
|
+
}
|
|
629
|
+
const contents = map({
|
|
630
|
+
$metadata: deserializeMetadata(output),
|
|
631
|
+
});
|
|
632
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
633
|
+
const doc = take(data, {
|
|
634
|
+
categories: _json,
|
|
635
|
+
});
|
|
636
|
+
Object.assign(contents, doc);
|
|
637
|
+
return contents;
|
|
638
|
+
};
|
|
543
639
|
export const de_ListLibraryItemsCommand = async (output, context) => {
|
|
544
640
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
545
641
|
return de_CommandError(output, context);
|