Skip to content

Commit

Permalink
feat(client-qapps): Private sharing, file upload and data collection …
Browse files Browse the repository at this point in the history
…feature support for Q Apps
  • Loading branch information
awstools committed Nov 26, 2024
1 parent b8975e6 commit c1ea3a8
Show file tree
Hide file tree
Showing 21 changed files with 4,147 additions and 93 deletions.
56 changes: 56 additions & 0 deletions clients/client-qapps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,14 @@ CreateLibraryItem

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/CreateLibraryItemCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/CreateLibraryItemCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/CreateLibraryItemCommandOutput/)

</details>
<details>
<summary>
CreatePresignedUrl
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/CreatePresignedUrlCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/CreatePresignedUrlCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/CreatePresignedUrlCommandOutput/)

</details>
<details>
<summary>
Expand All @@ -287,6 +295,14 @@ DeleteQApp

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/DeleteQAppCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/DeleteQAppCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/DeleteQAppCommandOutput/)

</details>
<details>
<summary>
DescribeQAppPermissions
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/DescribeQAppPermissionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/DescribeQAppPermissionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/DescribeQAppPermissionsCommandOutput/)

</details>
<details>
<summary>
Expand All @@ -303,6 +319,14 @@ DisassociateQAppFromUser

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/DisassociateQAppFromUserCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/DisassociateQAppFromUserCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/DisassociateQAppFromUserCommandOutput/)

</details>
<details>
<summary>
ExportQAppSessionData
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/ExportQAppSessionDataCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/ExportQAppSessionDataCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/ExportQAppSessionDataCommandOutput/)

</details>
<details>
<summary>
Expand All @@ -327,6 +351,14 @@ GetQAppSession

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/GetQAppSessionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/GetQAppSessionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/GetQAppSessionCommandOutput/)

</details>
<details>
<summary>
GetQAppSessionMetadata
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/GetQAppSessionMetadataCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/GetQAppSessionMetadataCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/GetQAppSessionMetadataCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -359,6 +391,14 @@ ListQApps

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/ListQAppsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/ListQAppsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/ListQAppsCommandOutput/)

</details>
<details>
<summary>
ListQAppSessionData
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/ListQAppSessionDataCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/ListQAppSessionDataCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/ListQAppSessionDataCommandOutput/)

</details>
<details>
<summary>
Expand Down Expand Up @@ -431,6 +471,14 @@ UpdateQApp

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/UpdateQAppCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/UpdateQAppCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/UpdateQAppCommandOutput/)

</details>
<details>
<summary>
UpdateQAppPermissions
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/UpdateQAppPermissionsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/UpdateQAppPermissionsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/UpdateQAppPermissionsCommandOutput/)

</details>
<details>
<summary>
Expand All @@ -440,3 +488,11 @@ UpdateQAppSession
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/UpdateQAppSessionCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/UpdateQAppSessionCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/UpdateQAppSessionCommandOutput/)

</details>
<details>
<summary>
UpdateQAppSessionMetadata
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qapps/command/UpdateQAppSessionMetadataCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/UpdateQAppSessionMetadataCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qapps/Interface/UpdateQAppSessionMetadataCommandOutput/)

</details>
161 changes: 161 additions & 0 deletions clients/client-qapps/src/QApps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,23 @@ import {
CreateLibraryItemCommandInput,
CreateLibraryItemCommandOutput,
} from "./commands/CreateLibraryItemCommand";
import {
CreatePresignedUrlCommand,
CreatePresignedUrlCommandInput,
CreatePresignedUrlCommandOutput,
} from "./commands/CreatePresignedUrlCommand";
import { CreateQAppCommand, CreateQAppCommandInput, CreateQAppCommandOutput } from "./commands/CreateQAppCommand";
import {
DeleteLibraryItemCommand,
DeleteLibraryItemCommandInput,
DeleteLibraryItemCommandOutput,
} from "./commands/DeleteLibraryItemCommand";
import { DeleteQAppCommand, DeleteQAppCommandInput, DeleteQAppCommandOutput } from "./commands/DeleteQAppCommand";
import {
DescribeQAppPermissionsCommand,
DescribeQAppPermissionsCommandInput,
DescribeQAppPermissionsCommandOutput,
} from "./commands/DescribeQAppPermissionsCommand";
import {
DisassociateLibraryItemReviewCommand,
DisassociateLibraryItemReviewCommandInput,
Expand All @@ -49,6 +59,11 @@ import {
DisassociateQAppFromUserCommandInput,
DisassociateQAppFromUserCommandOutput,
} from "./commands/DisassociateQAppFromUserCommand";
import {
ExportQAppSessionDataCommand,
ExportQAppSessionDataCommandInput,
ExportQAppSessionDataCommandOutput,
} from "./commands/ExportQAppSessionDataCommand";
import {
GetLibraryItemCommand,
GetLibraryItemCommandInput,
Expand All @@ -60,6 +75,11 @@ import {
GetQAppSessionCommandInput,
GetQAppSessionCommandOutput,
} from "./commands/GetQAppSessionCommand";
import {
GetQAppSessionMetadataCommand,
GetQAppSessionMetadataCommandInput,
GetQAppSessionMetadataCommandOutput,
} from "./commands/GetQAppSessionMetadataCommand";
import {
ImportDocumentCommand,
ImportDocumentCommandInput,
Expand All @@ -76,6 +96,11 @@ import {
ListLibraryItemsCommandOutput,
} from "./commands/ListLibraryItemsCommand";
import { ListQAppsCommand, ListQAppsCommandInput, ListQAppsCommandOutput } from "./commands/ListQAppsCommand";
import {
ListQAppSessionDataCommand,
ListQAppSessionDataCommandInput,
ListQAppSessionDataCommandOutput,
} from "./commands/ListQAppSessionDataCommand";
import {
ListTagsForResourceCommand,
ListTagsForResourceCommandInput,
Expand Down Expand Up @@ -109,11 +134,21 @@ import {
UpdateLibraryItemMetadataCommandOutput,
} from "./commands/UpdateLibraryItemMetadataCommand";
import { UpdateQAppCommand, UpdateQAppCommandInput, UpdateQAppCommandOutput } from "./commands/UpdateQAppCommand";
import {
UpdateQAppPermissionsCommand,
UpdateQAppPermissionsCommandInput,
UpdateQAppPermissionsCommandOutput,
} from "./commands/UpdateQAppPermissionsCommand";
import {
UpdateQAppSessionCommand,
UpdateQAppSessionCommandInput,
UpdateQAppSessionCommandOutput,
} from "./commands/UpdateQAppSessionCommand";
import {
UpdateQAppSessionMetadataCommand,
UpdateQAppSessionMetadataCommandInput,
UpdateQAppSessionMetadataCommandOutput,
} from "./commands/UpdateQAppSessionMetadataCommand";
import { QAppsClient, QAppsClientConfig } from "./QAppsClient";

const commands = {
Expand All @@ -123,18 +158,23 @@ const commands = {
BatchDeleteCategoryCommand,
BatchUpdateCategoryCommand,
CreateLibraryItemCommand,
CreatePresignedUrlCommand,
CreateQAppCommand,
DeleteLibraryItemCommand,
DeleteQAppCommand,
DescribeQAppPermissionsCommand,
DisassociateLibraryItemReviewCommand,
DisassociateQAppFromUserCommand,
ExportQAppSessionDataCommand,
GetLibraryItemCommand,
GetQAppCommand,
GetQAppSessionCommand,
GetQAppSessionMetadataCommand,
ImportDocumentCommand,
ListCategoriesCommand,
ListLibraryItemsCommand,
ListQAppsCommand,
ListQAppSessionDataCommand,
ListTagsForResourceCommand,
PredictQAppCommand,
StartQAppSessionCommand,
Expand All @@ -144,7 +184,9 @@ const commands = {
UpdateLibraryItemCommand,
UpdateLibraryItemMetadataCommand,
UpdateQAppCommand,
UpdateQAppPermissionsCommand,
UpdateQAppSessionCommand,
UpdateQAppSessionMetadataCommand,
};

export interface QApps {
Expand Down Expand Up @@ -250,6 +292,23 @@ export interface QApps {
cb: (err: any, data?: CreateLibraryItemCommandOutput) => void
): void;

/**
* @see {@link CreatePresignedUrlCommand}
*/
createPresignedUrl(
args: CreatePresignedUrlCommandInput,
options?: __HttpHandlerOptions
): Promise<CreatePresignedUrlCommandOutput>;
createPresignedUrl(
args: CreatePresignedUrlCommandInput,
cb: (err: any, data?: CreatePresignedUrlCommandOutput) => void
): void;
createPresignedUrl(
args: CreatePresignedUrlCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreatePresignedUrlCommandOutput) => void
): void;

/**
* @see {@link CreateQAppCommand}
*/
Expand Down Expand Up @@ -289,6 +348,23 @@ export interface QApps {
cb: (err: any, data?: DeleteQAppCommandOutput) => void
): void;

/**
* @see {@link DescribeQAppPermissionsCommand}
*/
describeQAppPermissions(
args: DescribeQAppPermissionsCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeQAppPermissionsCommandOutput>;
describeQAppPermissions(
args: DescribeQAppPermissionsCommandInput,
cb: (err: any, data?: DescribeQAppPermissionsCommandOutput) => void
): void;
describeQAppPermissions(
args: DescribeQAppPermissionsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeQAppPermissionsCommandOutput) => void
): void;

/**
* @see {@link DisassociateLibraryItemReviewCommand}
*/
Expand Down Expand Up @@ -323,6 +399,23 @@ export interface QApps {
cb: (err: any, data?: DisassociateQAppFromUserCommandOutput) => void
): void;

/**
* @see {@link ExportQAppSessionDataCommand}
*/
exportQAppSessionData(
args: ExportQAppSessionDataCommandInput,
options?: __HttpHandlerOptions
): Promise<ExportQAppSessionDataCommandOutput>;
exportQAppSessionData(
args: ExportQAppSessionDataCommandInput,
cb: (err: any, data?: ExportQAppSessionDataCommandOutput) => void
): void;
exportQAppSessionData(
args: ExportQAppSessionDataCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ExportQAppSessionDataCommandOutput) => void
): void;

/**
* @see {@link GetLibraryItemCommand}
*/
Expand Down Expand Up @@ -362,6 +455,23 @@ export interface QApps {
cb: (err: any, data?: GetQAppSessionCommandOutput) => void
): void;

/**
* @see {@link GetQAppSessionMetadataCommand}
*/
getQAppSessionMetadata(
args: GetQAppSessionMetadataCommandInput,
options?: __HttpHandlerOptions
): Promise<GetQAppSessionMetadataCommandOutput>;
getQAppSessionMetadata(
args: GetQAppSessionMetadataCommandInput,
cb: (err: any, data?: GetQAppSessionMetadataCommandOutput) => void
): void;
getQAppSessionMetadata(
args: GetQAppSessionMetadataCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetQAppSessionMetadataCommandOutput) => void
): void;

/**
* @see {@link ImportDocumentCommand}
*/
Expand Down Expand Up @@ -418,6 +528,23 @@ export interface QApps {
cb: (err: any, data?: ListQAppsCommandOutput) => void
): void;

/**
* @see {@link ListQAppSessionDataCommand}
*/
listQAppSessionData(
args: ListQAppSessionDataCommandInput,
options?: __HttpHandlerOptions
): Promise<ListQAppSessionDataCommandOutput>;
listQAppSessionData(
args: ListQAppSessionDataCommandInput,
cb: (err: any, data?: ListQAppSessionDataCommandOutput) => void
): void;
listQAppSessionData(
args: ListQAppSessionDataCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListQAppSessionDataCommandOutput) => void
): void;

/**
* @see {@link ListTagsForResourceCommand}
*/
Expand Down Expand Up @@ -544,6 +671,23 @@ export interface QApps {
cb: (err: any, data?: UpdateQAppCommandOutput) => void
): void;

/**
* @see {@link UpdateQAppPermissionsCommand}
*/
updateQAppPermissions(
args: UpdateQAppPermissionsCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateQAppPermissionsCommandOutput>;
updateQAppPermissions(
args: UpdateQAppPermissionsCommandInput,
cb: (err: any, data?: UpdateQAppPermissionsCommandOutput) => void
): void;
updateQAppPermissions(
args: UpdateQAppPermissionsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateQAppPermissionsCommandOutput) => void
): void;

/**
* @see {@link UpdateQAppSessionCommand}
*/
Expand All @@ -560,6 +704,23 @@ export interface QApps {
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateQAppSessionCommandOutput) => void
): void;

/**
* @see {@link UpdateQAppSessionMetadataCommand}
*/
updateQAppSessionMetadata(
args: UpdateQAppSessionMetadataCommandInput,
options?: __HttpHandlerOptions
): Promise<UpdateQAppSessionMetadataCommandOutput>;
updateQAppSessionMetadata(
args: UpdateQAppSessionMetadataCommandInput,
cb: (err: any, data?: UpdateQAppSessionMetadataCommandOutput) => void
): void;
updateQAppSessionMetadata(
args: UpdateQAppSessionMetadataCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UpdateQAppSessionMetadataCommandOutput) => void
): void;
}

/**
Expand Down
Loading

0 comments on commit c1ea3a8

Please sign in to comment.