@aws-sdk/client-qapps 3.699.0 → 3.702.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 +56 -0
- package/dist-cjs/QApps.js +14 -0
- package/dist-cjs/commands/CreatePresignedUrlCommand.js +26 -0
- package/dist-cjs/commands/DescribeQAppPermissionsCommand.js +26 -0
- package/dist-cjs/commands/ExportQAppSessionDataCommand.js +26 -0
- package/dist-cjs/commands/GetQAppSessionMetadataCommand.js +26 -0
- package/dist-cjs/commands/ListQAppSessionDataCommand.js +26 -0
- package/dist-cjs/commands/UpdateQAppPermissionsCommand.js +26 -0
- package/dist-cjs/commands/UpdateQAppSessionMetadataCommand.js +26 -0
- package/dist-cjs/commands/index.js +7 -0
- package/dist-cjs/models/models_0.js +24 -1
- package/dist-cjs/protocols/Aws_restJson1.js +352 -3
- package/dist-es/QApps.js +14 -0
- package/dist-es/commands/CreatePresignedUrlCommand.js +22 -0
- package/dist-es/commands/DescribeQAppPermissionsCommand.js +22 -0
- package/dist-es/commands/ExportQAppSessionDataCommand.js +22 -0
- package/dist-es/commands/GetQAppSessionMetadataCommand.js +22 -0
- package/dist-es/commands/ListQAppSessionDataCommand.js +22 -0
- package/dist-es/commands/UpdateQAppPermissionsCommand.js +22 -0
- package/dist-es/commands/UpdateQAppSessionMetadataCommand.js +22 -0
- package/dist-es/commands/index.js +7 -0
- package/dist-es/models/models_0.js +23 -0
- package/dist-es/protocols/Aws_restJson1.js +336 -1
- package/dist-types/QApps.d.ts +49 -0
- package/dist-types/QAppsClient.d.ts +9 -2
- package/dist-types/commands/CreatePresignedUrlCommand.d.ts +161 -0
- package/dist-types/commands/CreateQAppCommand.d.ts +13 -4
- package/dist-types/commands/DescribeQAppPermissionsCommand.d.ts +136 -0
- package/dist-types/commands/ExportQAppSessionDataCommand.d.ts +101 -0
- package/dist-types/commands/GetQAppCommand.d.ts +20 -4
- package/dist-types/commands/GetQAppSessionCommand.d.ts +13 -2
- package/dist-types/commands/GetQAppSessionMetadataCommand.d.ts +128 -0
- package/dist-types/commands/ListQAppSessionDataCommand.d.ts +108 -0
- package/dist-types/commands/PredictQAppCommand.d.ts +13 -4
- package/dist-types/commands/StartQAppSessionCommand.d.ts +5 -0
- package/dist-types/commands/UpdateQAppCommand.d.ts +13 -4
- package/dist-types/commands/UpdateQAppPermissionsCommand.d.ts +187 -0
- package/dist-types/commands/UpdateQAppSessionCommand.d.ts +4 -0
- package/dist-types/commands/UpdateQAppSessionMetadataCommand.d.ts +138 -0
- package/dist-types/commands/index.d.ts +7 -0
- package/dist-types/models/models_0.d.ts +704 -11
- package/dist-types/protocols/Aws_restJson1.d.ts +63 -0
- package/dist-types/ts3.4/QApps.d.ts +119 -0
- package/dist-types/ts3.4/QAppsClient.d.ts +44 -2
- package/dist-types/ts3.4/commands/CreatePresignedUrlCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DescribeQAppPermissionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ExportQAppSessionDataCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetQAppSessionMetadataCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListQAppSessionDataCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateQAppPermissionsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/UpdateQAppSessionMetadataCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +202 -5
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +84 -0
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.de_UpdateQAppSessionCommand = exports.de_UpdateQAppCommand = exports.de_UpdateLibraryItemMetadataCommand = exports.de_UpdateLibraryItemCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = void 0;
|
|
3
|
+
exports.de_GetLibraryItemCommand = exports.de_ExportQAppSessionDataCommand = exports.de_DisassociateQAppFromUserCommand = exports.de_DisassociateLibraryItemReviewCommand = exports.de_DescribeQAppPermissionsCommand = exports.de_DeleteQAppCommand = exports.de_DeleteLibraryItemCommand = exports.de_CreateQAppCommand = exports.de_CreatePresignedUrlCommand = exports.de_CreateLibraryItemCommand = exports.de_BatchUpdateCategoryCommand = exports.de_BatchDeleteCategoryCommand = exports.de_BatchCreateCategoryCommand = exports.de_AssociateQAppWithUserCommand = exports.de_AssociateLibraryItemReviewCommand = exports.se_UpdateQAppSessionMetadataCommand = exports.se_UpdateQAppSessionCommand = exports.se_UpdateQAppPermissionsCommand = 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_ListQAppSessionDataCommand = exports.se_ListQAppsCommand = exports.se_ListLibraryItemsCommand = exports.se_ListCategoriesCommand = exports.se_ImportDocumentCommand = exports.se_GetQAppSessionMetadataCommand = exports.se_GetQAppSessionCommand = exports.se_GetQAppCommand = exports.se_GetLibraryItemCommand = exports.se_ExportQAppSessionDataCommand = exports.se_DisassociateQAppFromUserCommand = exports.se_DisassociateLibraryItemReviewCommand = exports.se_DescribeQAppPermissionsCommand = exports.se_DeleteQAppCommand = exports.se_DeleteLibraryItemCommand = exports.se_CreateQAppCommand = exports.se_CreatePresignedUrlCommand = exports.se_CreateLibraryItemCommand = exports.se_BatchUpdateCategoryCommand = exports.se_BatchDeleteCategoryCommand = exports.se_BatchCreateCategoryCommand = exports.se_AssociateQAppWithUserCommand = exports.se_AssociateLibraryItemReviewCommand = void 0;
|
|
4
|
+
exports.de_UpdateQAppSessionMetadataCommand = exports.de_UpdateQAppSessionCommand = exports.de_UpdateQAppPermissionsCommand = exports.de_UpdateQAppCommand = exports.de_UpdateLibraryItemMetadataCommand = exports.de_UpdateLibraryItemCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_StopQAppSessionCommand = exports.de_StartQAppSessionCommand = exports.de_PredictQAppCommand = exports.de_ListTagsForResourceCommand = exports.de_ListQAppSessionDataCommand = exports.de_ListQAppsCommand = exports.de_ListLibraryItemsCommand = exports.de_ListCategoriesCommand = exports.de_ImportDocumentCommand = exports.de_GetQAppSessionMetadataCommand = exports.de_GetQAppSessionCommand = exports.de_GetQAppCommand = void 0;
|
|
5
5
|
const core_1 = require("@aws-sdk/core");
|
|
6
6
|
const core_2 = require("@smithy/core");
|
|
7
7
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
@@ -99,6 +99,26 @@ const se_CreateLibraryItemCommand = async (input, context) => {
|
|
|
99
99
|
return b.build();
|
|
100
100
|
};
|
|
101
101
|
exports.se_CreateLibraryItemCommand = se_CreateLibraryItemCommand;
|
|
102
|
+
const se_CreatePresignedUrlCommand = async (input, context) => {
|
|
103
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
104
|
+
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
105
|
+
"content-type": "application/json",
|
|
106
|
+
[_ii]: input[_iI],
|
|
107
|
+
});
|
|
108
|
+
b.bp("/apps.createPresignedUrl");
|
|
109
|
+
let body;
|
|
110
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
111
|
+
appId: [],
|
|
112
|
+
cardId: [],
|
|
113
|
+
fileContentsSha256: [],
|
|
114
|
+
fileName: [],
|
|
115
|
+
scope: [],
|
|
116
|
+
sessionId: [],
|
|
117
|
+
}));
|
|
118
|
+
b.m("POST").h(headers).b(body);
|
|
119
|
+
return b.build();
|
|
120
|
+
};
|
|
121
|
+
exports.se_CreatePresignedUrlCommand = se_CreatePresignedUrlCommand;
|
|
102
122
|
const se_CreateQAppCommand = async (input, context) => {
|
|
103
123
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
104
124
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
@@ -147,6 +167,20 @@ const se_DeleteQAppCommand = async (input, context) => {
|
|
|
147
167
|
return b.build();
|
|
148
168
|
};
|
|
149
169
|
exports.se_DeleteQAppCommand = se_DeleteQAppCommand;
|
|
170
|
+
const se_DescribeQAppPermissionsCommand = async (input, context) => {
|
|
171
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
172
|
+
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
173
|
+
[_ii]: input[_iI],
|
|
174
|
+
});
|
|
175
|
+
b.bp("/apps.describeQAppPermissions");
|
|
176
|
+
const query = (0, smithy_client_1.map)({
|
|
177
|
+
[_aI]: [, (0, smithy_client_1.expectNonNull)(input[_aI], `appId`)],
|
|
178
|
+
});
|
|
179
|
+
let body;
|
|
180
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
181
|
+
return b.build();
|
|
182
|
+
};
|
|
183
|
+
exports.se_DescribeQAppPermissionsCommand = se_DescribeQAppPermissionsCommand;
|
|
150
184
|
const se_DisassociateLibraryItemReviewCommand = async (input, context) => {
|
|
151
185
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
152
186
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
@@ -177,6 +211,21 @@ const se_DisassociateQAppFromUserCommand = async (input, context) => {
|
|
|
177
211
|
return b.build();
|
|
178
212
|
};
|
|
179
213
|
exports.se_DisassociateQAppFromUserCommand = se_DisassociateQAppFromUserCommand;
|
|
214
|
+
const se_ExportQAppSessionDataCommand = async (input, context) => {
|
|
215
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
216
|
+
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
217
|
+
"content-type": "application/json",
|
|
218
|
+
[_ii]: input[_iI],
|
|
219
|
+
});
|
|
220
|
+
b.bp("/runtime.exportQAppSessionData");
|
|
221
|
+
let body;
|
|
222
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
223
|
+
sessionId: [],
|
|
224
|
+
}));
|
|
225
|
+
b.m("POST").h(headers).b(body);
|
|
226
|
+
return b.build();
|
|
227
|
+
};
|
|
228
|
+
exports.se_ExportQAppSessionDataCommand = se_ExportQAppSessionDataCommand;
|
|
180
229
|
const se_GetLibraryItemCommand = async (input, context) => {
|
|
181
230
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
182
231
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
@@ -200,6 +249,7 @@ const se_GetQAppCommand = async (input, context) => {
|
|
|
200
249
|
b.bp("/apps.get");
|
|
201
250
|
const query = (0, smithy_client_1.map)({
|
|
202
251
|
[_aI]: [, (0, smithy_client_1.expectNonNull)(input[_aI], `appId`)],
|
|
252
|
+
[_aV]: [() => input.appVersion !== void 0, () => input[_aV].toString()],
|
|
203
253
|
});
|
|
204
254
|
let body;
|
|
205
255
|
b.m("GET").h(headers).q(query).b(body);
|
|
@@ -220,6 +270,20 @@ const se_GetQAppSessionCommand = async (input, context) => {
|
|
|
220
270
|
return b.build();
|
|
221
271
|
};
|
|
222
272
|
exports.se_GetQAppSessionCommand = se_GetQAppSessionCommand;
|
|
273
|
+
const se_GetQAppSessionMetadataCommand = async (input, context) => {
|
|
274
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
275
|
+
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
276
|
+
[_ii]: input[_iI],
|
|
277
|
+
});
|
|
278
|
+
b.bp("/runtime.getQAppSessionMetadata");
|
|
279
|
+
const query = (0, smithy_client_1.map)({
|
|
280
|
+
[_sI]: [, (0, smithy_client_1.expectNonNull)(input[_sI], `sessionId`)],
|
|
281
|
+
});
|
|
282
|
+
let body;
|
|
283
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
284
|
+
return b.build();
|
|
285
|
+
};
|
|
286
|
+
exports.se_GetQAppSessionMetadataCommand = se_GetQAppSessionMetadataCommand;
|
|
223
287
|
const se_ImportDocumentCommand = async (input, context) => {
|
|
224
288
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
225
289
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
@@ -282,6 +346,20 @@ const se_ListQAppsCommand = async (input, context) => {
|
|
|
282
346
|
return b.build();
|
|
283
347
|
};
|
|
284
348
|
exports.se_ListQAppsCommand = se_ListQAppsCommand;
|
|
349
|
+
const se_ListQAppSessionDataCommand = async (input, context) => {
|
|
350
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
351
|
+
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
352
|
+
[_ii]: input[_iI],
|
|
353
|
+
});
|
|
354
|
+
b.bp("/runtime.listQAppSessionData");
|
|
355
|
+
const query = (0, smithy_client_1.map)({
|
|
356
|
+
[_sI]: [, (0, smithy_client_1.expectNonNull)(input[_sI], `sessionId`)],
|
|
357
|
+
});
|
|
358
|
+
let body;
|
|
359
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
360
|
+
return b.build();
|
|
361
|
+
};
|
|
362
|
+
exports.se_ListQAppSessionDataCommand = se_ListQAppSessionDataCommand;
|
|
285
363
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
286
364
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
287
365
|
const headers = {};
|
|
@@ -319,6 +397,7 @@ const se_StartQAppSessionCommand = async (input, context) => {
|
|
|
319
397
|
appId: [],
|
|
320
398
|
appVersion: [],
|
|
321
399
|
initialValues: (_) => (0, smithy_client_1._json)(_),
|
|
400
|
+
sessionId: [],
|
|
322
401
|
tags: (_) => (0, smithy_client_1._json)(_),
|
|
323
402
|
}));
|
|
324
403
|
b.m("POST").h(headers).b(body);
|
|
@@ -419,6 +498,23 @@ const se_UpdateQAppCommand = async (input, context) => {
|
|
|
419
498
|
return b.build();
|
|
420
499
|
};
|
|
421
500
|
exports.se_UpdateQAppCommand = se_UpdateQAppCommand;
|
|
501
|
+
const se_UpdateQAppPermissionsCommand = async (input, context) => {
|
|
502
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
503
|
+
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
504
|
+
"content-type": "application/json",
|
|
505
|
+
[_ii]: input[_iI],
|
|
506
|
+
});
|
|
507
|
+
b.bp("/apps.updateQAppPermissions");
|
|
508
|
+
let body;
|
|
509
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
510
|
+
appId: [],
|
|
511
|
+
grantPermissions: (_) => (0, smithy_client_1._json)(_),
|
|
512
|
+
revokePermissions: (_) => (0, smithy_client_1._json)(_),
|
|
513
|
+
}));
|
|
514
|
+
b.m("POST").h(headers).b(body);
|
|
515
|
+
return b.build();
|
|
516
|
+
};
|
|
517
|
+
exports.se_UpdateQAppPermissionsCommand = se_UpdateQAppPermissionsCommand;
|
|
422
518
|
const se_UpdateQAppSessionCommand = async (input, context) => {
|
|
423
519
|
const b = (0, core_2.requestBuilder)(input, context);
|
|
424
520
|
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
@@ -435,6 +531,23 @@ const se_UpdateQAppSessionCommand = async (input, context) => {
|
|
|
435
531
|
return b.build();
|
|
436
532
|
};
|
|
437
533
|
exports.se_UpdateQAppSessionCommand = se_UpdateQAppSessionCommand;
|
|
534
|
+
const se_UpdateQAppSessionMetadataCommand = async (input, context) => {
|
|
535
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
536
|
+
const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
|
|
537
|
+
"content-type": "application/json",
|
|
538
|
+
[_ii]: input[_iI],
|
|
539
|
+
});
|
|
540
|
+
b.bp("/runtime.updateQAppSessionMetadata");
|
|
541
|
+
let body;
|
|
542
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
543
|
+
sessionId: [],
|
|
544
|
+
sessionName: [],
|
|
545
|
+
sharingConfiguration: (_) => (0, smithy_client_1._json)(_),
|
|
546
|
+
}));
|
|
547
|
+
b.m("POST").h(headers).b(body);
|
|
548
|
+
return b.build();
|
|
549
|
+
};
|
|
550
|
+
exports.se_UpdateQAppSessionMetadataCommand = se_UpdateQAppSessionMetadataCommand;
|
|
438
551
|
const de_AssociateLibraryItemReviewCommand = async (output, context) => {
|
|
439
552
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
440
553
|
return de_CommandError(output, context);
|
|
@@ -512,6 +625,24 @@ const de_CreateLibraryItemCommand = async (output, context) => {
|
|
|
512
625
|
return contents;
|
|
513
626
|
};
|
|
514
627
|
exports.de_CreateLibraryItemCommand = de_CreateLibraryItemCommand;
|
|
628
|
+
const de_CreatePresignedUrlCommand = async (output, context) => {
|
|
629
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
630
|
+
return de_CommandError(output, context);
|
|
631
|
+
}
|
|
632
|
+
const contents = (0, smithy_client_1.map)({
|
|
633
|
+
$metadata: deserializeMetadata(output),
|
|
634
|
+
});
|
|
635
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
636
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
637
|
+
fileId: smithy_client_1.expectString,
|
|
638
|
+
presignedUrl: smithy_client_1.expectString,
|
|
639
|
+
presignedUrlExpiration: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
640
|
+
presignedUrlFields: smithy_client_1._json,
|
|
641
|
+
});
|
|
642
|
+
Object.assign(contents, doc);
|
|
643
|
+
return contents;
|
|
644
|
+
};
|
|
645
|
+
exports.de_CreatePresignedUrlCommand = de_CreatePresignedUrlCommand;
|
|
515
646
|
const de_CreateQAppCommand = async (output, context) => {
|
|
516
647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
517
648
|
return de_CommandError(output, context);
|
|
@@ -560,6 +691,23 @@ const de_DeleteQAppCommand = async (output, context) => {
|
|
|
560
691
|
return contents;
|
|
561
692
|
};
|
|
562
693
|
exports.de_DeleteQAppCommand = de_DeleteQAppCommand;
|
|
694
|
+
const de_DescribeQAppPermissionsCommand = async (output, context) => {
|
|
695
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
696
|
+
return de_CommandError(output, context);
|
|
697
|
+
}
|
|
698
|
+
const contents = (0, smithy_client_1.map)({
|
|
699
|
+
$metadata: deserializeMetadata(output),
|
|
700
|
+
});
|
|
701
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
702
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
703
|
+
appId: smithy_client_1.expectString,
|
|
704
|
+
permissions: smithy_client_1._json,
|
|
705
|
+
resourceArn: smithy_client_1.expectString,
|
|
706
|
+
});
|
|
707
|
+
Object.assign(contents, doc);
|
|
708
|
+
return contents;
|
|
709
|
+
};
|
|
710
|
+
exports.de_DescribeQAppPermissionsCommand = de_DescribeQAppPermissionsCommand;
|
|
563
711
|
const de_DisassociateLibraryItemReviewCommand = async (output, context) => {
|
|
564
712
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
565
713
|
return de_CommandError(output, context);
|
|
@@ -582,6 +730,23 @@ const de_DisassociateQAppFromUserCommand = async (output, context) => {
|
|
|
582
730
|
return contents;
|
|
583
731
|
};
|
|
584
732
|
exports.de_DisassociateQAppFromUserCommand = de_DisassociateQAppFromUserCommand;
|
|
733
|
+
const de_ExportQAppSessionDataCommand = async (output, context) => {
|
|
734
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
735
|
+
return de_CommandError(output, context);
|
|
736
|
+
}
|
|
737
|
+
const contents = (0, smithy_client_1.map)({
|
|
738
|
+
$metadata: deserializeMetadata(output),
|
|
739
|
+
});
|
|
740
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
741
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
742
|
+
csvFileLink: smithy_client_1.expectString,
|
|
743
|
+
expiresAt: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
744
|
+
sessionArn: smithy_client_1.expectString,
|
|
745
|
+
});
|
|
746
|
+
Object.assign(contents, doc);
|
|
747
|
+
return contents;
|
|
748
|
+
};
|
|
749
|
+
exports.de_ExportQAppSessionDataCommand = de_ExportQAppSessionDataCommand;
|
|
585
750
|
const de_GetLibraryItemCommand = async (output, context) => {
|
|
586
751
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
587
752
|
return de_CommandError(output, context);
|
|
@@ -645,15 +810,38 @@ const de_GetQAppSessionCommand = async (output, context) => {
|
|
|
645
810
|
});
|
|
646
811
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
647
812
|
const doc = (0, smithy_client_1.take)(data, {
|
|
648
|
-
|
|
813
|
+
appVersion: smithy_client_1.expectInt32,
|
|
814
|
+
cardStatus: (_) => de_CardStatusMap(_, context),
|
|
815
|
+
latestPublishedAppVersion: smithy_client_1.expectInt32,
|
|
649
816
|
sessionArn: smithy_client_1.expectString,
|
|
650
817
|
sessionId: smithy_client_1.expectString,
|
|
818
|
+
sessionName: smithy_client_1.expectString,
|
|
651
819
|
status: smithy_client_1.expectString,
|
|
820
|
+
userIsHost: smithy_client_1.expectBoolean,
|
|
652
821
|
});
|
|
653
822
|
Object.assign(contents, doc);
|
|
654
823
|
return contents;
|
|
655
824
|
};
|
|
656
825
|
exports.de_GetQAppSessionCommand = de_GetQAppSessionCommand;
|
|
826
|
+
const de_GetQAppSessionMetadataCommand = async (output, context) => {
|
|
827
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
828
|
+
return de_CommandError(output, context);
|
|
829
|
+
}
|
|
830
|
+
const contents = (0, smithy_client_1.map)({
|
|
831
|
+
$metadata: deserializeMetadata(output),
|
|
832
|
+
});
|
|
833
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
834
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
835
|
+
sessionArn: smithy_client_1.expectString,
|
|
836
|
+
sessionId: smithy_client_1.expectString,
|
|
837
|
+
sessionName: smithy_client_1.expectString,
|
|
838
|
+
sessionOwner: smithy_client_1.expectBoolean,
|
|
839
|
+
sharingConfiguration: smithy_client_1._json,
|
|
840
|
+
});
|
|
841
|
+
Object.assign(contents, doc);
|
|
842
|
+
return contents;
|
|
843
|
+
};
|
|
844
|
+
exports.de_GetQAppSessionMetadataCommand = de_GetQAppSessionMetadataCommand;
|
|
657
845
|
const de_ImportDocumentCommand = async (output, context) => {
|
|
658
846
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
659
847
|
return de_CommandError(output, context);
|
|
@@ -716,6 +904,24 @@ const de_ListQAppsCommand = async (output, context) => {
|
|
|
716
904
|
return contents;
|
|
717
905
|
};
|
|
718
906
|
exports.de_ListQAppsCommand = de_ListQAppsCommand;
|
|
907
|
+
const de_ListQAppSessionDataCommand = async (output, context) => {
|
|
908
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
909
|
+
return de_CommandError(output, context);
|
|
910
|
+
}
|
|
911
|
+
const contents = (0, smithy_client_1.map)({
|
|
912
|
+
$metadata: deserializeMetadata(output),
|
|
913
|
+
});
|
|
914
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
915
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
916
|
+
nextToken: smithy_client_1.expectString,
|
|
917
|
+
sessionArn: smithy_client_1.expectString,
|
|
918
|
+
sessionData: (_) => de_QAppSessionDataList(_, context),
|
|
919
|
+
sessionId: smithy_client_1.expectString,
|
|
920
|
+
});
|
|
921
|
+
Object.assign(contents, doc);
|
|
922
|
+
return contents;
|
|
923
|
+
};
|
|
924
|
+
exports.de_ListQAppSessionDataCommand = de_ListQAppSessionDataCommand;
|
|
719
925
|
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
720
926
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
721
927
|
return de_CommandError(output, context);
|
|
@@ -860,6 +1066,23 @@ const de_UpdateQAppCommand = async (output, context) => {
|
|
|
860
1066
|
return contents;
|
|
861
1067
|
};
|
|
862
1068
|
exports.de_UpdateQAppCommand = de_UpdateQAppCommand;
|
|
1069
|
+
const de_UpdateQAppPermissionsCommand = async (output, context) => {
|
|
1070
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1071
|
+
return de_CommandError(output, context);
|
|
1072
|
+
}
|
|
1073
|
+
const contents = (0, smithy_client_1.map)({
|
|
1074
|
+
$metadata: deserializeMetadata(output),
|
|
1075
|
+
});
|
|
1076
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
1077
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1078
|
+
appId: smithy_client_1.expectString,
|
|
1079
|
+
permissions: smithy_client_1._json,
|
|
1080
|
+
resourceArn: smithy_client_1.expectString,
|
|
1081
|
+
});
|
|
1082
|
+
Object.assign(contents, doc);
|
|
1083
|
+
return contents;
|
|
1084
|
+
};
|
|
1085
|
+
exports.de_UpdateQAppPermissionsCommand = de_UpdateQAppPermissionsCommand;
|
|
863
1086
|
const de_UpdateQAppSessionCommand = async (output, context) => {
|
|
864
1087
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
865
1088
|
return de_CommandError(output, context);
|
|
@@ -876,6 +1099,24 @@ const de_UpdateQAppSessionCommand = async (output, context) => {
|
|
|
876
1099
|
return contents;
|
|
877
1100
|
};
|
|
878
1101
|
exports.de_UpdateQAppSessionCommand = de_UpdateQAppSessionCommand;
|
|
1102
|
+
const de_UpdateQAppSessionMetadataCommand = async (output, context) => {
|
|
1103
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1104
|
+
return de_CommandError(output, context);
|
|
1105
|
+
}
|
|
1106
|
+
const contents = (0, smithy_client_1.map)({
|
|
1107
|
+
$metadata: deserializeMetadata(output),
|
|
1108
|
+
});
|
|
1109
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
1110
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
1111
|
+
sessionArn: smithy_client_1.expectString,
|
|
1112
|
+
sessionId: smithy_client_1.expectString,
|
|
1113
|
+
sessionName: smithy_client_1.expectString,
|
|
1114
|
+
sharingConfiguration: smithy_client_1._json,
|
|
1115
|
+
});
|
|
1116
|
+
Object.assign(contents, doc);
|
|
1117
|
+
return contents;
|
|
1118
|
+
};
|
|
1119
|
+
exports.de_UpdateQAppSessionMetadataCommand = de_UpdateQAppSessionMetadataCommand;
|
|
879
1120
|
const de_CommandError = async (output, context) => {
|
|
880
1121
|
const parsedOutput = {
|
|
881
1122
|
...output,
|
|
@@ -1083,6 +1324,7 @@ const se_AttributeFilters = (input, context) => {
|
|
|
1083
1324
|
const se_CardInput = (input, context) => {
|
|
1084
1325
|
return models_0_1.CardInput.visit(input, {
|
|
1085
1326
|
fileUpload: (value) => ({ fileUpload: (0, smithy_client_1._json)(value) }),
|
|
1327
|
+
formInput: (value) => ({ formInput: se_FormInputCardInput(value, context) }),
|
|
1086
1328
|
qPlugin: (value) => ({ qPlugin: (0, smithy_client_1._json)(value) }),
|
|
1087
1329
|
qQuery: (value) => ({ qQuery: se_QQueryCardInput(value, context) }),
|
|
1088
1330
|
textInput: (value) => ({ textInput: (0, smithy_client_1._json)(value) }),
|
|
@@ -1111,6 +1353,23 @@ const se_DocumentAttributeValue = (input, context) => {
|
|
|
1111
1353
|
_: (name, value) => ({ name: value }),
|
|
1112
1354
|
});
|
|
1113
1355
|
};
|
|
1356
|
+
const se_FormInputCardInput = (input, context) => {
|
|
1357
|
+
return (0, smithy_client_1.take)(input, {
|
|
1358
|
+
computeMode: [],
|
|
1359
|
+
id: [],
|
|
1360
|
+
metadata: (_) => se_FormInputCardMetadata(_, context),
|
|
1361
|
+
title: [],
|
|
1362
|
+
type: [],
|
|
1363
|
+
});
|
|
1364
|
+
};
|
|
1365
|
+
const se_FormInputCardMetadata = (input, context) => {
|
|
1366
|
+
return (0, smithy_client_1.take)(input, {
|
|
1367
|
+
schema: (_) => se_FormInputCardMetadataSchema(_, context),
|
|
1368
|
+
});
|
|
1369
|
+
};
|
|
1370
|
+
const se_FormInputCardMetadataSchema = (input, context) => {
|
|
1371
|
+
return input;
|
|
1372
|
+
};
|
|
1114
1373
|
const se_QQueryCardInput = (input, context) => {
|
|
1115
1374
|
return (0, smithy_client_1.take)(input, {
|
|
1116
1375
|
attributeFilter: (_) => se_AttributeFilter(_, context),
|
|
@@ -1162,6 +1421,11 @@ const de_Card = (output, context) => {
|
|
|
1162
1421
|
fileUpload: (0, smithy_client_1._json)(output.fileUpload),
|
|
1163
1422
|
};
|
|
1164
1423
|
}
|
|
1424
|
+
if (output.formInput != null) {
|
|
1425
|
+
return {
|
|
1426
|
+
formInput: de_FormInputCard(output.formInput, context),
|
|
1427
|
+
};
|
|
1428
|
+
}
|
|
1165
1429
|
if (output.qPlugin != null) {
|
|
1166
1430
|
return {
|
|
1167
1431
|
qPlugin: (0, smithy_client_1._json)(output.qPlugin),
|
|
@@ -1185,6 +1449,11 @@ const de_CardInput = (output, context) => {
|
|
|
1185
1449
|
fileUpload: (0, smithy_client_1._json)(output.fileUpload),
|
|
1186
1450
|
};
|
|
1187
1451
|
}
|
|
1452
|
+
if (output.formInput != null) {
|
|
1453
|
+
return {
|
|
1454
|
+
formInput: de_FormInputCardInput(output.formInput, context),
|
|
1455
|
+
};
|
|
1456
|
+
}
|
|
1188
1457
|
if (output.qPlugin != null) {
|
|
1189
1458
|
return {
|
|
1190
1459
|
qPlugin: (0, smithy_client_1._json)(output.qPlugin),
|
|
@@ -1218,6 +1487,22 @@ const de_CardModelList = (output, context) => {
|
|
|
1218
1487
|
});
|
|
1219
1488
|
return retVal;
|
|
1220
1489
|
};
|
|
1490
|
+
const de_CardStatus = (output, context) => {
|
|
1491
|
+
return (0, smithy_client_1.take)(output, {
|
|
1492
|
+
currentState: smithy_client_1.expectString,
|
|
1493
|
+
currentValue: smithy_client_1.expectString,
|
|
1494
|
+
submissions: (_) => de_SubmissionList(_, context),
|
|
1495
|
+
});
|
|
1496
|
+
};
|
|
1497
|
+
const de_CardStatusMap = (output, context) => {
|
|
1498
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1499
|
+
if (value === null) {
|
|
1500
|
+
return acc;
|
|
1501
|
+
}
|
|
1502
|
+
acc[key] = de_CardStatus(value, context);
|
|
1503
|
+
return acc;
|
|
1504
|
+
}, {});
|
|
1505
|
+
};
|
|
1221
1506
|
const de_DocumentAttribute = (output, context) => {
|
|
1222
1507
|
return (0, smithy_client_1.take)(output, {
|
|
1223
1508
|
name: smithy_client_1.expectString,
|
|
@@ -1243,6 +1528,33 @@ const de_DocumentAttributeValue = (output, context) => {
|
|
|
1243
1528
|
}
|
|
1244
1529
|
return { $unknown: Object.entries(output)[0] };
|
|
1245
1530
|
};
|
|
1531
|
+
const de_FormInputCard = (output, context) => {
|
|
1532
|
+
return (0, smithy_client_1.take)(output, {
|
|
1533
|
+
computeMode: smithy_client_1.expectString,
|
|
1534
|
+
dependencies: smithy_client_1._json,
|
|
1535
|
+
id: smithy_client_1.expectString,
|
|
1536
|
+
metadata: (_) => de_FormInputCardMetadata(_, context),
|
|
1537
|
+
title: smithy_client_1.expectString,
|
|
1538
|
+
type: smithy_client_1.expectString,
|
|
1539
|
+
});
|
|
1540
|
+
};
|
|
1541
|
+
const de_FormInputCardInput = (output, context) => {
|
|
1542
|
+
return (0, smithy_client_1.take)(output, {
|
|
1543
|
+
computeMode: smithy_client_1.expectString,
|
|
1544
|
+
id: smithy_client_1.expectString,
|
|
1545
|
+
metadata: (_) => de_FormInputCardMetadata(_, context),
|
|
1546
|
+
title: smithy_client_1.expectString,
|
|
1547
|
+
type: smithy_client_1.expectString,
|
|
1548
|
+
});
|
|
1549
|
+
};
|
|
1550
|
+
const de_FormInputCardMetadata = (output, context) => {
|
|
1551
|
+
return (0, smithy_client_1.take)(output, {
|
|
1552
|
+
schema: (_) => de_FormInputCardMetadataSchema(_, context),
|
|
1553
|
+
});
|
|
1554
|
+
};
|
|
1555
|
+
const de_FormInputCardMetadataSchema = (output, context) => {
|
|
1556
|
+
return output;
|
|
1557
|
+
};
|
|
1246
1558
|
const de_LibraryItemList = (output, context) => {
|
|
1247
1559
|
const retVal = (output || [])
|
|
1248
1560
|
.filter((e) => e != null)
|
|
@@ -1275,11 +1587,29 @@ const de_PredictAppDefinition = (output, context) => {
|
|
|
1275
1587
|
title: smithy_client_1.expectString,
|
|
1276
1588
|
});
|
|
1277
1589
|
};
|
|
1590
|
+
const de_QAppSessionData = (output, context) => {
|
|
1591
|
+
return (0, smithy_client_1.take)(output, {
|
|
1592
|
+
cardId: smithy_client_1.expectString,
|
|
1593
|
+
submissionId: smithy_client_1.expectString,
|
|
1594
|
+
timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1595
|
+
user: smithy_client_1._json,
|
|
1596
|
+
value: (_) => de_Document(_, context),
|
|
1597
|
+
});
|
|
1598
|
+
};
|
|
1599
|
+
const de_QAppSessionDataList = (output, context) => {
|
|
1600
|
+
const retVal = (output || [])
|
|
1601
|
+
.filter((e) => e != null)
|
|
1602
|
+
.map((entry) => {
|
|
1603
|
+
return de_QAppSessionData(entry, context);
|
|
1604
|
+
});
|
|
1605
|
+
return retVal;
|
|
1606
|
+
};
|
|
1278
1607
|
const de_QQueryCard = (output, context) => {
|
|
1279
1608
|
return (0, smithy_client_1.take)(output, {
|
|
1280
1609
|
attributeFilter: (_) => de_AttributeFilter(_, context),
|
|
1281
1610
|
dependencies: smithy_client_1._json,
|
|
1282
1611
|
id: smithy_client_1.expectString,
|
|
1612
|
+
memoryReferences: smithy_client_1._json,
|
|
1283
1613
|
outputSource: smithy_client_1.expectString,
|
|
1284
1614
|
prompt: smithy_client_1.expectString,
|
|
1285
1615
|
title: smithy_client_1.expectString,
|
|
@@ -1296,6 +1626,21 @@ const de_QQueryCardInput = (output, context) => {
|
|
|
1296
1626
|
type: smithy_client_1.expectString,
|
|
1297
1627
|
});
|
|
1298
1628
|
};
|
|
1629
|
+
const de_Submission = (output, context) => {
|
|
1630
|
+
return (0, smithy_client_1.take)(output, {
|
|
1631
|
+
submissionId: smithy_client_1.expectString,
|
|
1632
|
+
timestamp: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(_)),
|
|
1633
|
+
value: (_) => de_Document(_, context),
|
|
1634
|
+
});
|
|
1635
|
+
};
|
|
1636
|
+
const de_SubmissionList = (output, context) => {
|
|
1637
|
+
const retVal = (output || [])
|
|
1638
|
+
.filter((e) => e != null)
|
|
1639
|
+
.map((entry) => {
|
|
1640
|
+
return de_Submission(entry, context);
|
|
1641
|
+
});
|
|
1642
|
+
return retVal;
|
|
1643
|
+
};
|
|
1299
1644
|
const de_UserAppItem = (output, context) => {
|
|
1300
1645
|
return (0, smithy_client_1.take)(output, {
|
|
1301
1646
|
appArn: smithy_client_1.expectString,
|
|
@@ -1316,6 +1661,9 @@ const de_UserAppsList = (output, context) => {
|
|
|
1316
1661
|
});
|
|
1317
1662
|
return retVal;
|
|
1318
1663
|
};
|
|
1664
|
+
const de_Document = (output, context) => {
|
|
1665
|
+
return output;
|
|
1666
|
+
};
|
|
1319
1667
|
const deserializeMetadata = (output) => ({
|
|
1320
1668
|
httpStatusCode: output.statusCode,
|
|
1321
1669
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1324,6 +1672,7 @@ const deserializeMetadata = (output) => ({
|
|
|
1324
1672
|
});
|
|
1325
1673
|
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1326
1674
|
const _aI = "appId";
|
|
1675
|
+
const _aV = "appVersion";
|
|
1327
1676
|
const _cI = "categoryId";
|
|
1328
1677
|
const _iI = "instanceId";
|
|
1329
1678
|
const _ii = "instance-id";
|
package/dist-es/QApps.js
CHANGED
|
@@ -5,18 +5,23 @@ import { BatchCreateCategoryCommand, } from "./commands/BatchCreateCategoryComma
|
|
|
5
5
|
import { BatchDeleteCategoryCommand, } from "./commands/BatchDeleteCategoryCommand";
|
|
6
6
|
import { BatchUpdateCategoryCommand, } from "./commands/BatchUpdateCategoryCommand";
|
|
7
7
|
import { CreateLibraryItemCommand, } from "./commands/CreateLibraryItemCommand";
|
|
8
|
+
import { CreatePresignedUrlCommand, } from "./commands/CreatePresignedUrlCommand";
|
|
8
9
|
import { CreateQAppCommand } from "./commands/CreateQAppCommand";
|
|
9
10
|
import { DeleteLibraryItemCommand, } from "./commands/DeleteLibraryItemCommand";
|
|
10
11
|
import { DeleteQAppCommand } from "./commands/DeleteQAppCommand";
|
|
12
|
+
import { DescribeQAppPermissionsCommand, } from "./commands/DescribeQAppPermissionsCommand";
|
|
11
13
|
import { DisassociateLibraryItemReviewCommand, } from "./commands/DisassociateLibraryItemReviewCommand";
|
|
12
14
|
import { DisassociateQAppFromUserCommand, } from "./commands/DisassociateQAppFromUserCommand";
|
|
15
|
+
import { ExportQAppSessionDataCommand, } from "./commands/ExportQAppSessionDataCommand";
|
|
13
16
|
import { GetLibraryItemCommand, } from "./commands/GetLibraryItemCommand";
|
|
14
17
|
import { GetQAppCommand } from "./commands/GetQAppCommand";
|
|
15
18
|
import { GetQAppSessionCommand, } from "./commands/GetQAppSessionCommand";
|
|
19
|
+
import { GetQAppSessionMetadataCommand, } from "./commands/GetQAppSessionMetadataCommand";
|
|
16
20
|
import { ImportDocumentCommand, } from "./commands/ImportDocumentCommand";
|
|
17
21
|
import { ListCategoriesCommand, } from "./commands/ListCategoriesCommand";
|
|
18
22
|
import { ListLibraryItemsCommand, } from "./commands/ListLibraryItemsCommand";
|
|
19
23
|
import { ListQAppsCommand } from "./commands/ListQAppsCommand";
|
|
24
|
+
import { ListQAppSessionDataCommand, } from "./commands/ListQAppSessionDataCommand";
|
|
20
25
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
21
26
|
import { PredictQAppCommand } from "./commands/PredictQAppCommand";
|
|
22
27
|
import { StartQAppSessionCommand, } from "./commands/StartQAppSessionCommand";
|
|
@@ -26,7 +31,9 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
|
26
31
|
import { UpdateLibraryItemCommand, } from "./commands/UpdateLibraryItemCommand";
|
|
27
32
|
import { UpdateLibraryItemMetadataCommand, } from "./commands/UpdateLibraryItemMetadataCommand";
|
|
28
33
|
import { UpdateQAppCommand } from "./commands/UpdateQAppCommand";
|
|
34
|
+
import { UpdateQAppPermissionsCommand, } from "./commands/UpdateQAppPermissionsCommand";
|
|
29
35
|
import { UpdateQAppSessionCommand, } from "./commands/UpdateQAppSessionCommand";
|
|
36
|
+
import { UpdateQAppSessionMetadataCommand, } from "./commands/UpdateQAppSessionMetadataCommand";
|
|
30
37
|
import { QAppsClient } from "./QAppsClient";
|
|
31
38
|
const commands = {
|
|
32
39
|
AssociateLibraryItemReviewCommand,
|
|
@@ -35,18 +42,23 @@ const commands = {
|
|
|
35
42
|
BatchDeleteCategoryCommand,
|
|
36
43
|
BatchUpdateCategoryCommand,
|
|
37
44
|
CreateLibraryItemCommand,
|
|
45
|
+
CreatePresignedUrlCommand,
|
|
38
46
|
CreateQAppCommand,
|
|
39
47
|
DeleteLibraryItemCommand,
|
|
40
48
|
DeleteQAppCommand,
|
|
49
|
+
DescribeQAppPermissionsCommand,
|
|
41
50
|
DisassociateLibraryItemReviewCommand,
|
|
42
51
|
DisassociateQAppFromUserCommand,
|
|
52
|
+
ExportQAppSessionDataCommand,
|
|
43
53
|
GetLibraryItemCommand,
|
|
44
54
|
GetQAppCommand,
|
|
45
55
|
GetQAppSessionCommand,
|
|
56
|
+
GetQAppSessionMetadataCommand,
|
|
46
57
|
ImportDocumentCommand,
|
|
47
58
|
ListCategoriesCommand,
|
|
48
59
|
ListLibraryItemsCommand,
|
|
49
60
|
ListQAppsCommand,
|
|
61
|
+
ListQAppSessionDataCommand,
|
|
50
62
|
ListTagsForResourceCommand,
|
|
51
63
|
PredictQAppCommand,
|
|
52
64
|
StartQAppSessionCommand,
|
|
@@ -56,7 +68,9 @@ const commands = {
|
|
|
56
68
|
UpdateLibraryItemCommand,
|
|
57
69
|
UpdateLibraryItemMetadataCommand,
|
|
58
70
|
UpdateQAppCommand,
|
|
71
|
+
UpdateQAppPermissionsCommand,
|
|
59
72
|
UpdateQAppSessionCommand,
|
|
73
|
+
UpdateQAppSessionMetadataCommand,
|
|
60
74
|
};
|
|
61
75
|
export class QApps extends QAppsClient {
|
|
62
76
|
}
|
|
@@ -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_CreatePresignedUrlCommand, se_CreatePresignedUrlCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class CreatePresignedUrlCommand 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", "CreatePresignedUrl", {})
|
|
17
|
+
.n("QAppsClient", "CreatePresignedUrlCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_CreatePresignedUrlCommand)
|
|
20
|
+
.de(de_CreatePresignedUrlCommand)
|
|
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_DescribeQAppPermissionsCommand, se_DescribeQAppPermissionsCommand } from "../protocols/Aws_restJson1";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class DescribeQAppPermissionsCommand 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", "DescribeQAppPermissions", {})
|
|
17
|
+
.n("QAppsClient", "DescribeQAppPermissionsCommand")
|
|
18
|
+
.f(void 0, void 0)
|
|
19
|
+
.ser(se_DescribeQAppPermissionsCommand)
|
|
20
|
+
.de(de_DescribeQAppPermissionsCommand)
|
|
21
|
+
.build() {
|
|
22
|
+
}
|