@aws-sdk/client-taxsettings 3.975.0 → 3.980.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
@@ -1196,6 +1196,12 @@ class PutTaxRegistrationCommand extends smithyClient.Command
1196
1196
  .build() {
1197
1197
  }
1198
1198
 
1199
+ const paginateListSupplementalTaxRegistrations = core.createPaginator(TaxSettingsClient, ListSupplementalTaxRegistrationsCommand, "nextToken", "nextToken", "maxResults");
1200
+
1201
+ const paginateListTaxExemptions = core.createPaginator(TaxSettingsClient, ListTaxExemptionsCommand, "nextToken", "nextToken", "maxResults");
1202
+
1203
+ const paginateListTaxRegistrations = core.createPaginator(TaxSettingsClient, ListTaxRegistrationsCommand, "nextToken", "nextToken", "maxResults");
1204
+
1199
1205
  const commands = {
1200
1206
  BatchDeleteTaxRegistrationCommand,
1201
1207
  BatchGetTaxExemptionsCommand,
@@ -1214,15 +1220,14 @@ const commands = {
1214
1220
  PutTaxInheritanceCommand,
1215
1221
  PutTaxRegistrationCommand,
1216
1222
  };
1223
+ const paginators = {
1224
+ paginateListSupplementalTaxRegistrations,
1225
+ paginateListTaxExemptions,
1226
+ paginateListTaxRegistrations,
1227
+ };
1217
1228
  class TaxSettings extends TaxSettingsClient {
1218
1229
  }
1219
- smithyClient.createAggregatedClient(commands, TaxSettings);
1220
-
1221
- const paginateListSupplementalTaxRegistrations = core.createPaginator(TaxSettingsClient, ListSupplementalTaxRegistrationsCommand, "nextToken", "nextToken", "maxResults");
1222
-
1223
- const paginateListTaxExemptions = core.createPaginator(TaxSettingsClient, ListTaxExemptionsCommand, "nextToken", "nextToken", "maxResults");
1224
-
1225
- const paginateListTaxRegistrations = core.createPaginator(TaxSettingsClient, ListTaxRegistrationsCommand, "nextToken", "nextToken", "maxResults");
1230
+ smithyClient.createAggregatedClient(commands, TaxSettings, { paginators });
1226
1231
 
1227
1232
  const AddressRoleType = {
1228
1233
  BILLING_ADDRESS: "BillingAddress",
@@ -15,6 +15,9 @@ import { PutSupplementalTaxRegistrationCommand, } from "./commands/PutSupplement
15
15
  import { PutTaxExemptionCommand, } from "./commands/PutTaxExemptionCommand";
16
16
  import { PutTaxInheritanceCommand, } from "./commands/PutTaxInheritanceCommand";
17
17
  import { PutTaxRegistrationCommand, } from "./commands/PutTaxRegistrationCommand";
18
+ import { paginateListSupplementalTaxRegistrations } from "./pagination/ListSupplementalTaxRegistrationsPaginator";
19
+ import { paginateListTaxExemptions } from "./pagination/ListTaxExemptionsPaginator";
20
+ import { paginateListTaxRegistrations } from "./pagination/ListTaxRegistrationsPaginator";
18
21
  import { TaxSettingsClient } from "./TaxSettingsClient";
19
22
  const commands = {
20
23
  BatchDeleteTaxRegistrationCommand,
@@ -34,6 +37,11 @@ const commands = {
34
37
  PutTaxInheritanceCommand,
35
38
  PutTaxRegistrationCommand,
36
39
  };
40
+ const paginators = {
41
+ paginateListSupplementalTaxRegistrations,
42
+ paginateListTaxExemptions,
43
+ paginateListTaxRegistrations,
44
+ };
37
45
  export class TaxSettings extends TaxSettingsClient {
38
46
  }
39
- createAggregatedClient(commands, TaxSettings);
47
+ createAggregatedClient(commands, TaxSettings, { 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 { BatchDeleteTaxRegistrationCommandInput, BatchDeleteTaxRegistrationCommandOutput } from "./commands/BatchDeleteTaxRegistrationCommand";
3
3
  import { BatchGetTaxExemptionsCommandInput, BatchGetTaxExemptionsCommandOutput } from "./commands/BatchGetTaxExemptionsCommand";
4
4
  import { BatchPutTaxRegistrationCommandInput, BatchPutTaxRegistrationCommandOutput } from "./commands/BatchPutTaxRegistrationCommand";
@@ -121,6 +121,27 @@ export interface TaxSettings {
121
121
  putTaxRegistration(args: PutTaxRegistrationCommandInput, options?: __HttpHandlerOptions): Promise<PutTaxRegistrationCommandOutput>;
122
122
  putTaxRegistration(args: PutTaxRegistrationCommandInput, cb: (err: any, data?: PutTaxRegistrationCommandOutput) => void): void;
123
123
  putTaxRegistration(args: PutTaxRegistrationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutTaxRegistrationCommandOutput) => void): void;
124
+ /**
125
+ * @see {@link ListSupplementalTaxRegistrationsCommand}
126
+ * @param args - command input.
127
+ * @param paginationConfig - optional pagination config.
128
+ * @returns AsyncIterable of {@link ListSupplementalTaxRegistrationsCommandOutput}.
129
+ */
130
+ paginateListSupplementalTaxRegistrations(args?: ListSupplementalTaxRegistrationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListSupplementalTaxRegistrationsCommandOutput>;
131
+ /**
132
+ * @see {@link ListTaxExemptionsCommand}
133
+ * @param args - command input.
134
+ * @param paginationConfig - optional pagination config.
135
+ * @returns AsyncIterable of {@link ListTaxExemptionsCommandOutput}.
136
+ */
137
+ paginateListTaxExemptions(args?: ListTaxExemptionsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTaxExemptionsCommandOutput>;
138
+ /**
139
+ * @see {@link ListTaxRegistrationsCommand}
140
+ * @param args - command input.
141
+ * @param paginationConfig - optional pagination config.
142
+ * @returns AsyncIterable of {@link ListTaxRegistrationsCommandOutput}.
143
+ */
144
+ paginateListTaxRegistrations(args?: ListTaxRegistrationsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListTaxRegistrationsCommandOutput>;
124
145
  }
125
146
  /**
126
147
  * <p>You can use the tax setting API to programmatically set, modify, and delete the tax
@@ -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
  BatchDeleteTaxRegistrationCommandInput,
4
8
  BatchDeleteTaxRegistrationCommandOutput,
@@ -287,6 +291,27 @@ export interface TaxSettings {
287
291
  options: __HttpHandlerOptions,
288
292
  cb: (err: any, data?: PutTaxRegistrationCommandOutput) => void
289
293
  ): void;
294
+ paginateListSupplementalTaxRegistrations(
295
+ args?: ListSupplementalTaxRegistrationsCommandInput,
296
+ paginationConfig?: Pick<
297
+ PaginationConfiguration,
298
+ Exclude<keyof PaginationConfiguration, "client">
299
+ >
300
+ ): Paginator<ListSupplementalTaxRegistrationsCommandOutput>;
301
+ paginateListTaxExemptions(
302
+ args?: ListTaxExemptionsCommandInput,
303
+ paginationConfig?: Pick<
304
+ PaginationConfiguration,
305
+ Exclude<keyof PaginationConfiguration, "client">
306
+ >
307
+ ): Paginator<ListTaxExemptionsCommandOutput>;
308
+ paginateListTaxRegistrations(
309
+ args?: ListTaxRegistrationsCommandInput,
310
+ paginationConfig?: Pick<
311
+ PaginationConfiguration,
312
+ Exclude<keyof PaginationConfiguration, "client">
313
+ >
314
+ ): Paginator<ListTaxRegistrationsCommandOutput>;
290
315
  }
291
316
  export declare class TaxSettings
292
317
  extends TaxSettingsClient
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-taxsettings",
3
3
  "description": "AWS SDK for JavaScript Taxsettings Client for Node.js, Browser and React Native",
4
- "version": "3.975.0",
4
+ "version": "3.980.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-taxsettings",
@@ -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",
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",
24
+ "@aws-sdk/core": "^3.973.5",
25
+ "@aws-sdk/credential-provider-node": "^3.972.4",
26
+ "@aws-sdk/middleware-host-header": "^3.972.3",
27
+ "@aws-sdk/middleware-logger": "^3.972.3",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.5",
30
+ "@aws-sdk/region-config-resolver": "^3.972.3",
31
+ "@aws-sdk/types": "^3.973.1",
32
+ "@aws-sdk/util-endpoints": "3.980.0",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.3",
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",