@aws-sdk/client-ivschat 3.211.0 → 3.213.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 +37 -5
- package/dist-cjs/Ivschat.js +75 -0
- package/dist-cjs/commands/CreateLoggingConfigurationCommand.js +46 -0
- package/dist-cjs/commands/DeleteLoggingConfigurationCommand.js +46 -0
- package/dist-cjs/commands/GetLoggingConfigurationCommand.js +46 -0
- package/dist-cjs/commands/ListLoggingConfigurationsCommand.js +46 -0
- package/dist-cjs/commands/UpdateLoggingConfigurationCommand.js +46 -0
- package/dist-cjs/commands/index.js +5 -0
- package/dist-cjs/models/models_0.js +121 -6
- package/dist-cjs/pagination/ListLoggingConfigurationsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +522 -16
- package/dist-es/Ivschat.js +75 -0
- package/dist-es/commands/CreateLoggingConfigurationCommand.js +42 -0
- package/dist-es/commands/DeleteLoggingConfigurationCommand.js +42 -0
- package/dist-es/commands/GetLoggingConfigurationCommand.js +42 -0
- package/dist-es/commands/ListLoggingConfigurationsCommand.js +42 -0
- package/dist-es/commands/UpdateLoggingConfigurationCommand.js +42 -0
- package/dist-es/commands/index.js +5 -0
- package/dist-es/models/models_0.js +105 -5
- package/dist-es/pagination/ListLoggingConfigurationsPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +513 -17
- package/dist-types/Ivschat.d.ts +84 -8
- package/dist-types/IvschatClient.d.ts +44 -7
- package/dist-types/commands/CreateChatTokenCommand.d.ts +10 -3
- package/dist-types/commands/CreateLoggingConfigurationCommand.d.ts +38 -0
- package/dist-types/commands/DeleteLoggingConfigurationCommand.d.ts +37 -0
- package/dist-types/commands/GetLoggingConfigurationCommand.d.ts +37 -0
- package/dist-types/commands/ListLoggingConfigurationsCommand.d.ts +38 -0
- package/dist-types/commands/UpdateLoggingConfigurationCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +5 -0
- package/dist-types/models/models_0.d.ts +473 -37
- package/dist-types/pagination/ListLoggingConfigurationsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +15 -0
- package/dist-types/ts3.4/Ivschat.d.ts +85 -0
- package/dist-types/ts3.4/IvschatClient.d.ts +30 -0
- package/dist-types/ts3.4/commands/CreateLoggingConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteLoggingConfigurationCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/GetLoggingConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListLoggingConfigurationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UpdateLoggingConfigurationCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +5 -0
- package/dist-types/ts3.4/models/models_0.d.ts +184 -9
- package/dist-types/ts3.4/pagination/ListLoggingConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
- package/package.json +28 -28
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.paginateListLoggingConfigurations = void 0;
|
|
4
|
+
const ListLoggingConfigurationsCommand_1 = require("../commands/ListLoggingConfigurationsCommand");
|
|
5
|
+
const Ivschat_1 = require("../Ivschat");
|
|
6
|
+
const IvschatClient_1 = require("../IvschatClient");
|
|
7
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.send(new ListLoggingConfigurationsCommand_1.ListLoggingConfigurationsCommand(input), ...args);
|
|
9
|
+
};
|
|
10
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
11
|
+
return await client.listLoggingConfigurations(input, ...args);
|
|
12
|
+
};
|
|
13
|
+
async function* paginateListLoggingConfigurations(config, input, ...additionalArguments) {
|
|
14
|
+
let token = config.startingToken || undefined;
|
|
15
|
+
let hasNext = true;
|
|
16
|
+
let page;
|
|
17
|
+
while (hasNext) {
|
|
18
|
+
input.nextToken = token;
|
|
19
|
+
input["maxResults"] = config.pageSize;
|
|
20
|
+
if (config.client instanceof Ivschat_1.Ivschat) {
|
|
21
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else if (config.client instanceof IvschatClient_1.IvschatClient) {
|
|
24
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
throw new Error("Invalid client, expected Ivschat | IvschatClient");
|
|
28
|
+
}
|
|
29
|
+
yield page;
|
|
30
|
+
const prevToken = token;
|
|
31
|
+
token = page.nextToken;
|
|
32
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
33
|
+
}
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
exports.paginateListLoggingConfigurations = paginateListLoggingConfigurations;
|
|
@@ -2,4 +2,5 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
tslib_1.__exportStar(require("./Interfaces"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./ListLoggingConfigurationsPaginator"), exports);
|
|
5
6
|
tslib_1.__exportStar(require("./ListRoomsPaginator"), exports);
|