@aws-sdk/client-socialmessaging 3.975.0 → 3.978.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/index.js CHANGED
@@ -1159,6 +1159,12 @@ class UpdateWhatsAppMessageTemplateCommand extends smithyClient.Command
1159
1159
  .build() {
1160
1160
  }
1161
1161
 
1162
+ const paginateListLinkedWhatsAppBusinessAccounts = core.createPaginator(SocialMessagingClient, ListLinkedWhatsAppBusinessAccountsCommand, "nextToken", "nextToken", "maxResults");
1163
+
1164
+ const paginateListWhatsAppMessageTemplates = core.createPaginator(SocialMessagingClient, ListWhatsAppMessageTemplatesCommand, "nextToken", "nextToken", "maxResults");
1165
+
1166
+ const paginateListWhatsAppTemplateLibrary = core.createPaginator(SocialMessagingClient, ListWhatsAppTemplateLibraryCommand, "nextToken", "nextToken", "maxResults");
1167
+
1162
1168
  const commands = {
1163
1169
  AssociateWhatsAppBusinessAccountCommand,
1164
1170
  CreateWhatsAppMessageTemplateCommand,
@@ -1182,15 +1188,14 @@ const commands = {
1182
1188
  UntagResourceCommand,
1183
1189
  UpdateWhatsAppMessageTemplateCommand,
1184
1190
  };
1191
+ const paginators = {
1192
+ paginateListLinkedWhatsAppBusinessAccounts,
1193
+ paginateListWhatsAppMessageTemplates,
1194
+ paginateListWhatsAppTemplateLibrary,
1195
+ };
1185
1196
  class SocialMessaging extends SocialMessagingClient {
1186
1197
  }
1187
- smithyClient.createAggregatedClient(commands, SocialMessaging);
1188
-
1189
- const paginateListLinkedWhatsAppBusinessAccounts = core.createPaginator(SocialMessagingClient, ListLinkedWhatsAppBusinessAccountsCommand, "nextToken", "nextToken", "maxResults");
1190
-
1191
- const paginateListWhatsAppMessageTemplates = core.createPaginator(SocialMessagingClient, ListWhatsAppMessageTemplatesCommand, "nextToken", "nextToken", "maxResults");
1192
-
1193
- const paginateListWhatsAppTemplateLibrary = core.createPaginator(SocialMessagingClient, ListWhatsAppTemplateLibraryCommand, "nextToken", "nextToken", "maxResults");
1198
+ smithyClient.createAggregatedClient(commands, SocialMessaging, { paginators });
1194
1199
 
1195
1200
  const RegistrationStatus = {
1196
1201
  COMPLETE: "COMPLETE",
@@ -20,6 +20,9 @@ import { SendWhatsAppMessageCommand, } from "./commands/SendWhatsAppMessageComma
20
20
  import { TagResourceCommand } from "./commands/TagResourceCommand";
21
21
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
22
22
  import { UpdateWhatsAppMessageTemplateCommand, } from "./commands/UpdateWhatsAppMessageTemplateCommand";
23
+ import { paginateListLinkedWhatsAppBusinessAccounts } from "./pagination/ListLinkedWhatsAppBusinessAccountsPaginator";
24
+ import { paginateListWhatsAppMessageTemplates } from "./pagination/ListWhatsAppMessageTemplatesPaginator";
25
+ import { paginateListWhatsAppTemplateLibrary } from "./pagination/ListWhatsAppTemplateLibraryPaginator";
23
26
  import { SocialMessagingClient } from "./SocialMessagingClient";
24
27
  const commands = {
25
28
  AssociateWhatsAppBusinessAccountCommand,
@@ -44,6 +47,11 @@ const commands = {
44
47
  UntagResourceCommand,
45
48
  UpdateWhatsAppMessageTemplateCommand,
46
49
  };
50
+ const paginators = {
51
+ paginateListLinkedWhatsAppBusinessAccounts,
52
+ paginateListWhatsAppMessageTemplates,
53
+ paginateListWhatsAppTemplateLibrary,
54
+ };
47
55
  export class SocialMessaging extends SocialMessagingClient {
48
56
  }
49
- createAggregatedClient(commands, SocialMessaging);
57
+ createAggregatedClient(commands, SocialMessaging, { paginators });
@@ -1,4 +1,4 @@
1
- import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions, PaginationConfiguration, Paginator } from "@smithy/types";
2
2
  import { AssociateWhatsAppBusinessAccountCommandInput, AssociateWhatsAppBusinessAccountCommandOutput } from "./commands/AssociateWhatsAppBusinessAccountCommand";
3
3
  import { CreateWhatsAppMessageTemplateCommandInput, CreateWhatsAppMessageTemplateCommandOutput } from "./commands/CreateWhatsAppMessageTemplateCommand";
4
4
  import { CreateWhatsAppMessageTemplateFromLibraryCommandInput, CreateWhatsAppMessageTemplateFromLibraryCommandOutput } from "./commands/CreateWhatsAppMessageTemplateFromLibraryCommand";
@@ -150,6 +150,27 @@ export interface SocialMessaging {
150
150
  updateWhatsAppMessageTemplate(args: UpdateWhatsAppMessageTemplateCommandInput, options?: __HttpHandlerOptions): Promise<UpdateWhatsAppMessageTemplateCommandOutput>;
151
151
  updateWhatsAppMessageTemplate(args: UpdateWhatsAppMessageTemplateCommandInput, cb: (err: any, data?: UpdateWhatsAppMessageTemplateCommandOutput) => void): void;
152
152
  updateWhatsAppMessageTemplate(args: UpdateWhatsAppMessageTemplateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateWhatsAppMessageTemplateCommandOutput) => void): void;
153
+ /**
154
+ * @see {@link ListLinkedWhatsAppBusinessAccountsCommand}
155
+ * @param args - command input.
156
+ * @param paginationConfig - optional pagination config.
157
+ * @returns AsyncIterable of {@link ListLinkedWhatsAppBusinessAccountsCommandOutput}.
158
+ */
159
+ paginateListLinkedWhatsAppBusinessAccounts(args?: ListLinkedWhatsAppBusinessAccountsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListLinkedWhatsAppBusinessAccountsCommandOutput>;
160
+ /**
161
+ * @see {@link ListWhatsAppMessageTemplatesCommand}
162
+ * @param args - command input.
163
+ * @param paginationConfig - optional pagination config.
164
+ * @returns AsyncIterable of {@link ListWhatsAppMessageTemplatesCommandOutput}.
165
+ */
166
+ paginateListWhatsAppMessageTemplates(args: ListWhatsAppMessageTemplatesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListWhatsAppMessageTemplatesCommandOutput>;
167
+ /**
168
+ * @see {@link ListWhatsAppTemplateLibraryCommand}
169
+ * @param args - command input.
170
+ * @param paginationConfig - optional pagination config.
171
+ * @returns AsyncIterable of {@link ListWhatsAppTemplateLibraryCommandOutput}.
172
+ */
173
+ paginateListWhatsAppTemplateLibrary(args: ListWhatsAppTemplateLibraryCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListWhatsAppTemplateLibraryCommandOutput>;
153
174
  }
154
175
  /**
155
176
  * <p>
@@ -1,4 +1,8 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import {
2
+ HttpHandlerOptions as __HttpHandlerOptions,
3
+ PaginationConfiguration,
4
+ Paginator,
5
+ } from "@smithy/types";
2
6
  import {
3
7
  AssociateWhatsAppBusinessAccountCommandInput,
4
8
  AssociateWhatsAppBusinessAccountCommandOutput,
@@ -396,6 +400,27 @@ export interface SocialMessaging {
396
400
  options: __HttpHandlerOptions,
397
401
  cb: (err: any, data?: UpdateWhatsAppMessageTemplateCommandOutput) => void
398
402
  ): void;
403
+ paginateListLinkedWhatsAppBusinessAccounts(
404
+ args?: ListLinkedWhatsAppBusinessAccountsCommandInput,
405
+ paginationConfig?: Pick<
406
+ PaginationConfiguration,
407
+ Exclude<keyof PaginationConfiguration, "client">
408
+ >
409
+ ): Paginator<ListLinkedWhatsAppBusinessAccountsCommandOutput>;
410
+ paginateListWhatsAppMessageTemplates(
411
+ args: ListWhatsAppMessageTemplatesCommandInput,
412
+ paginationConfig?: Pick<
413
+ PaginationConfiguration,
414
+ Exclude<keyof PaginationConfiguration, "client">
415
+ >
416
+ ): Paginator<ListWhatsAppMessageTemplatesCommandOutput>;
417
+ paginateListWhatsAppTemplateLibrary(
418
+ args: ListWhatsAppTemplateLibraryCommandInput,
419
+ paginationConfig?: Pick<
420
+ PaginationConfiguration,
421
+ Exclude<keyof PaginationConfiguration, "client">
422
+ >
423
+ ): Paginator<ListWhatsAppTemplateLibraryCommandOutput>;
399
424
  }
400
425
  export declare class SocialMessaging
401
426
  extends SocialMessagingClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-socialmessaging",
3
3
  "description": "AWS SDK for JavaScript Socialmessaging Client for Node.js, Browser and React Native",
4
- "version": "3.975.0",
4
+ "version": "3.978.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-socialmessaging",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.1",
25
- "@aws-sdk/credential-provider-node": "^3.972.1",
26
- "@aws-sdk/middleware-host-header": "^3.972.1",
27
- "@aws-sdk/middleware-logger": "^3.972.1",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.1",
29
- "@aws-sdk/middleware-user-agent": "^3.972.2",
30
- "@aws-sdk/region-config-resolver": "^3.972.1",
31
- "@aws-sdk/types": "^3.973.0",
24
+ "@aws-sdk/core": "^3.973.4",
25
+ "@aws-sdk/credential-provider-node": "^3.972.2",
26
+ "@aws-sdk/middleware-host-header": "^3.972.2",
27
+ "@aws-sdk/middleware-logger": "^3.972.2",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.2",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.4",
30
+ "@aws-sdk/region-config-resolver": "^3.972.2",
31
+ "@aws-sdk/types": "^3.973.1",
32
32
  "@aws-sdk/util-endpoints": "3.972.0",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.1",
34
- "@aws-sdk/util-user-agent-node": "^3.972.1",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.2",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.2",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.21.1",
36
+ "@smithy/core": "^3.22.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.11",
42
- "@smithy/middleware-retry": "^4.4.27",
41
+ "@smithy/middleware-endpoint": "^4.4.12",
42
+ "@smithy/middleware-retry": "^4.4.29",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
46
  "@smithy/node-http-handler": "^4.4.8",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.10.12",
48
+ "@smithy/smithy-client": "^4.11.1",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.26",
55
- "@smithy/util-defaults-mode-node": "^4.2.29",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.28",
55
+ "@smithy/util-defaults-mode-node": "^4.2.31",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",