@aws-sdk/client-chime-sdk-identity 3.476.0 → 3.478.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/dist-cjs/pagination/ListAppInstanceAdminsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppInstanceBotsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppInstanceUserEndpointsPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppInstanceUsersPaginator.js +2 -24
- package/dist-cjs/pagination/ListAppInstancesPaginator.js +2 -24
- package/dist-cjs/protocols/Aws_restJson1.js +171 -390
- package/dist-es/pagination/ListAppInstanceAdminsPaginator.js +2 -23
- package/dist-es/pagination/ListAppInstanceBotsPaginator.js +2 -23
- package/dist-es/pagination/ListAppInstanceUserEndpointsPaginator.js +2 -23
- package/dist-es/pagination/ListAppInstanceUsersPaginator.js +2 -23
- package/dist-es/pagination/ListAppInstancesPaginator.js +2 -23
- package/dist-es/protocols/Aws_restJson1.js +172 -391
- package/dist-types/pagination/ListAppInstanceAdminsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppInstanceBotsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppInstanceUserEndpointsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppInstanceUsersPaginator.d.ts +1 -1
- package/dist-types/pagination/ListAppInstancesPaginator.d.ts +1 -1
- package/dist-types/ts3.4/pagination/ListAppInstanceAdminsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppInstanceBotsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppInstanceUserEndpointsPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppInstanceUsersPaginator.d.ts +3 -3
- package/dist-types/ts3.4/pagination/ListAppInstancesPaginator.d.ts +3 -3
- package/package.json +7 -6
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeSDKIdentityClient } from "../ChimeSDKIdentityClient";
|
|
2
3
|
import { ListAppInstanceAdminsCommand, } from "../commands/ListAppInstanceAdminsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppInstanceAdminsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAppInstanceAdmins(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeSDKIdentityClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ChimeSDKIdentity | ChimeSDKIdentityClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAppInstanceAdmins = createPaginator(ChimeSDKIdentityClient, ListAppInstanceAdminsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeSDKIdentityClient } from "../ChimeSDKIdentityClient";
|
|
2
3
|
import { ListAppInstanceBotsCommand, } from "../commands/ListAppInstanceBotsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppInstanceBotsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAppInstanceBots(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeSDKIdentityClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ChimeSDKIdentity | ChimeSDKIdentityClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAppInstanceBots = createPaginator(ChimeSDKIdentityClient, ListAppInstanceBotsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeSDKIdentityClient } from "../ChimeSDKIdentityClient";
|
|
2
3
|
import { ListAppInstanceUserEndpointsCommand, } from "../commands/ListAppInstanceUserEndpointsCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppInstanceUserEndpointsCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAppInstanceUserEndpoints(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeSDKIdentityClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ChimeSDKIdentity | ChimeSDKIdentityClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAppInstanceUserEndpoints = createPaginator(ChimeSDKIdentityClient, ListAppInstanceUserEndpointsCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeSDKIdentityClient } from "../ChimeSDKIdentityClient";
|
|
2
3
|
import { ListAppInstanceUsersCommand, } from "../commands/ListAppInstanceUsersCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppInstanceUsersCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAppInstanceUsers(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeSDKIdentityClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ChimeSDKIdentity | ChimeSDKIdentityClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAppInstanceUsers = createPaginator(ChimeSDKIdentityClient, ListAppInstanceUsersCommand, "NextToken", "NextToken", "MaxResults");
|
|
@@ -1,25 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
1
2
|
import { ChimeSDKIdentityClient } from "../ChimeSDKIdentityClient";
|
|
2
3
|
import { ListAppInstancesCommand, } from "../commands/ListAppInstancesCommand";
|
|
3
|
-
const
|
|
4
|
-
return await client.send(new ListAppInstancesCommand(input), ...args);
|
|
5
|
-
};
|
|
6
|
-
export async function* paginateListAppInstances(config, input, ...additionalArguments) {
|
|
7
|
-
let token = config.startingToken || undefined;
|
|
8
|
-
let hasNext = true;
|
|
9
|
-
let page;
|
|
10
|
-
while (hasNext) {
|
|
11
|
-
input.NextToken = token;
|
|
12
|
-
input["MaxResults"] = config.pageSize;
|
|
13
|
-
if (config.client instanceof ChimeSDKIdentityClient) {
|
|
14
|
-
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
throw new Error("Invalid client, expected ChimeSDKIdentity | ChimeSDKIdentityClient");
|
|
18
|
-
}
|
|
19
|
-
yield page;
|
|
20
|
-
const prevToken = token;
|
|
21
|
-
token = page.NextToken;
|
|
22
|
-
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
23
|
-
}
|
|
24
|
-
return undefined;
|
|
25
|
-
}
|
|
4
|
+
export const paginateListAppInstances = createPaginator(ChimeSDKIdentityClient, ListAppInstancesCommand, "NextToken", "NextToken", "MaxResults");
|