@aws-sdk/client-invoicing 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
@@ -1104,6 +1104,12 @@ class UpdateProcurementPortalPreferenceStatusCommand extends smithyClient.Comman
1104
1104
  .build() {
1105
1105
  }
1106
1106
 
1107
+ const paginateListInvoiceSummaries = core.createPaginator(InvoicingClient, ListInvoiceSummariesCommand, "NextToken", "NextToken", "MaxResults");
1108
+
1109
+ const paginateListInvoiceUnits = core.createPaginator(InvoicingClient, ListInvoiceUnitsCommand, "NextToken", "NextToken", "MaxResults");
1110
+
1111
+ const paginateListProcurementPortalPreferences = core.createPaginator(InvoicingClient, ListProcurementPortalPreferencesCommand, "NextToken", "NextToken", "MaxResults");
1112
+
1107
1113
  const commands = {
1108
1114
  BatchGetInvoiceProfileCommand,
1109
1115
  CreateInvoiceUnitCommand,
@@ -1123,15 +1129,14 @@ const commands = {
1123
1129
  UpdateInvoiceUnitCommand,
1124
1130
  UpdateProcurementPortalPreferenceStatusCommand,
1125
1131
  };
1132
+ const paginators = {
1133
+ paginateListInvoiceSummaries,
1134
+ paginateListInvoiceUnits,
1135
+ paginateListProcurementPortalPreferences,
1136
+ };
1126
1137
  class Invoicing extends InvoicingClient {
1127
1138
  }
1128
- smithyClient.createAggregatedClient(commands, Invoicing);
1129
-
1130
- const paginateListInvoiceSummaries = core.createPaginator(InvoicingClient, ListInvoiceSummariesCommand, "NextToken", "NextToken", "MaxResults");
1131
-
1132
- const paginateListInvoiceUnits = core.createPaginator(InvoicingClient, ListInvoiceUnitsCommand, "NextToken", "NextToken", "MaxResults");
1133
-
1134
- const paginateListProcurementPortalPreferences = core.createPaginator(InvoicingClient, ListProcurementPortalPreferencesCommand, "NextToken", "NextToken", "MaxResults");
1139
+ smithyClient.createAggregatedClient(commands, Invoicing, { paginators });
1135
1140
 
1136
1141
  const ValidationExceptionReason = {
1137
1142
  ACCOUNT_MEMBERSHIP_ERROR: "accountMembershipError",
@@ -17,6 +17,9 @@ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
17
17
  import { UpdateInvoiceUnitCommand, } from "./commands/UpdateInvoiceUnitCommand";
18
18
  import { UpdateProcurementPortalPreferenceStatusCommand, } from "./commands/UpdateProcurementPortalPreferenceStatusCommand";
19
19
  import { InvoicingClient } from "./InvoicingClient";
20
+ import { paginateListInvoiceSummaries } from "./pagination/ListInvoiceSummariesPaginator";
21
+ import { paginateListInvoiceUnits } from "./pagination/ListInvoiceUnitsPaginator";
22
+ import { paginateListProcurementPortalPreferences } from "./pagination/ListProcurementPortalPreferencesPaginator";
20
23
  const commands = {
21
24
  BatchGetInvoiceProfileCommand,
22
25
  CreateInvoiceUnitCommand,
@@ -36,6 +39,11 @@ const commands = {
36
39
  UpdateInvoiceUnitCommand,
37
40
  UpdateProcurementPortalPreferenceStatusCommand,
38
41
  };
42
+ const paginators = {
43
+ paginateListInvoiceSummaries,
44
+ paginateListInvoiceUnits,
45
+ paginateListProcurementPortalPreferences,
46
+ };
39
47
  export class Invoicing extends InvoicingClient {
40
48
  }
41
- createAggregatedClient(commands, Invoicing);
49
+ createAggregatedClient(commands, Invoicing, { 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 { BatchGetInvoiceProfileCommandInput, BatchGetInvoiceProfileCommandOutput } from "./commands/BatchGetInvoiceProfileCommand";
3
3
  import { CreateInvoiceUnitCommandInput, CreateInvoiceUnitCommandOutput } from "./commands/CreateInvoiceUnitCommand";
4
4
  import { CreateProcurementPortalPreferenceCommandInput, CreateProcurementPortalPreferenceCommandOutput } from "./commands/CreateProcurementPortalPreferenceCommand";
@@ -122,6 +122,27 @@ export interface Invoicing {
122
122
  updateProcurementPortalPreferenceStatus(args: UpdateProcurementPortalPreferenceStatusCommandInput, options?: __HttpHandlerOptions): Promise<UpdateProcurementPortalPreferenceStatusCommandOutput>;
123
123
  updateProcurementPortalPreferenceStatus(args: UpdateProcurementPortalPreferenceStatusCommandInput, cb: (err: any, data?: UpdateProcurementPortalPreferenceStatusCommandOutput) => void): void;
124
124
  updateProcurementPortalPreferenceStatus(args: UpdateProcurementPortalPreferenceStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateProcurementPortalPreferenceStatusCommandOutput) => void): void;
125
+ /**
126
+ * @see {@link ListInvoiceSummariesCommand}
127
+ * @param args - command input.
128
+ * @param paginationConfig - optional pagination config.
129
+ * @returns AsyncIterable of {@link ListInvoiceSummariesCommandOutput}.
130
+ */
131
+ paginateListInvoiceSummaries(args: ListInvoiceSummariesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListInvoiceSummariesCommandOutput>;
132
+ /**
133
+ * @see {@link ListInvoiceUnitsCommand}
134
+ * @param args - command input.
135
+ * @param paginationConfig - optional pagination config.
136
+ * @returns AsyncIterable of {@link ListInvoiceUnitsCommandOutput}.
137
+ */
138
+ paginateListInvoiceUnits(args?: ListInvoiceUnitsCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListInvoiceUnitsCommandOutput>;
139
+ /**
140
+ * @see {@link ListProcurementPortalPreferencesCommand}
141
+ * @param args - command input.
142
+ * @param paginationConfig - optional pagination config.
143
+ * @returns AsyncIterable of {@link ListProcurementPortalPreferencesCommandOutput}.
144
+ */
145
+ paginateListProcurementPortalPreferences(args?: ListProcurementPortalPreferencesCommandInput, paginationConfig?: Omit<PaginationConfiguration, "client">): Paginator<ListProcurementPortalPreferencesCommandOutput>;
125
146
  }
126
147
  /**
127
148
  * <p> <b>Amazon Web Services Invoice Configuration</b> </p> <p>You can use Amazon Web Services Invoice Configuration APIs to programmatically create, update, delete, get, and list invoice units. You can also programmatically fetch the information of the invoice receiver. For example, business legal name, address, and invoicing contacts. </p> <p>You can use Amazon Web Services Invoice Configuration to receive separate Amazon Web Services invoices based your organizational needs. By using Amazon Web Services Invoice Configuration, you can configure invoice units that are groups of Amazon Web Services accounts that represent your business entities, and receive separate invoices for each business entity. You can also assign a unique member or payer account as the invoice receiver for each invoice unit. As you create new accounts within your Organizations using Amazon Web Services Invoice Configuration APIs, you can automate the creation of new invoice units and subsequently automate the addition of new accounts to your invoice units.</p> <p> <b>Amazon Web Services Procurement Portal Preferences</b> </p> <p>You can use Amazon Web Services Procurement Portal Preferences APIs to programmatically create, update, delete, get, and list procurement portal connections and e-invoice delivery settings. You can also programmatically fetch and modify the status of procurement portal configurations. For example, SAP Business Network or Coupa connections, configure e-invoice delivery and purchase order retrieval features.</p> <p>You can use Amazon Web Services Procurement Portal Preferences to connect e-invoice delivery to your procurement portals based on your organizational needs. By using Amazon Web Services Procurement Portal Preferences, you can configure connections to SAP Business Network and Coupa procurement portals that retrieve purchase orders and deliver Amazon Web Services invoices on the same day they are generated. You can also set up testing environments to validate invoice delivery without affecting live transactions, and manage contact information for portal setup and support. </p> <p>Administrative users should understand that billing read-only policies will show all procurement portal connection details. Review your IAM policies to ensure appropriate access controls are in place for procurement portal preferences.</p> <p> <b>Amazon Web Services Invoice Management</b> </p> <p>You can use Amazon Web Services Invoice Management APIs to programmatically list invoice summaries and get invoice documents. You can also programmatically fetch invoice documents with S3 pre-signed URLs.</p> <p>You can use Amazon Web Services Invoice Management to access invoice information based on your organizational needs. By using Amazon Web Services Invoice Management, you can retrieve paginated lists of invoice summaries that include invoice metadata such as invoice IDs, amounts, and currencies without downloading documents. You can also download invoice documents in PDF format using S3 pre-signed URLs with built-in expiration. As you manage invoices across your organization using Amazon Web Services Invoice Management APIs, you can create invoice retrieval processes and integrate invoice data into your financial systems.</p> <p>Service endpoint</p> <p>You can use the following endpoints for Amazon Web Services Invoice Configuration, Amazon Web Services Procurement Portal Preferences, and Amazon Web Services Invoice Management:</p> <ul> <li> <p> <code>https://invoicing.us-east-1.api.aws</code> </p> </li> </ul>
@@ -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
  BatchGetInvoiceProfileCommandInput,
4
8
  BatchGetInvoiceProfileCommandOutput,
@@ -310,5 +314,26 @@ export interface Invoicing {
310
314
  data?: UpdateProcurementPortalPreferenceStatusCommandOutput
311
315
  ) => void
312
316
  ): void;
317
+ paginateListInvoiceSummaries(
318
+ args: ListInvoiceSummariesCommandInput,
319
+ paginationConfig?: Pick<
320
+ PaginationConfiguration,
321
+ Exclude<keyof PaginationConfiguration, "client">
322
+ >
323
+ ): Paginator<ListInvoiceSummariesCommandOutput>;
324
+ paginateListInvoiceUnits(
325
+ args?: ListInvoiceUnitsCommandInput,
326
+ paginationConfig?: Pick<
327
+ PaginationConfiguration,
328
+ Exclude<keyof PaginationConfiguration, "client">
329
+ >
330
+ ): Paginator<ListInvoiceUnitsCommandOutput>;
331
+ paginateListProcurementPortalPreferences(
332
+ args?: ListProcurementPortalPreferencesCommandInput,
333
+ paginationConfig?: Pick<
334
+ PaginationConfiguration,
335
+ Exclude<keyof PaginationConfiguration, "client">
336
+ >
337
+ ): Paginator<ListProcurementPortalPreferencesCommandOutput>;
313
338
  }
314
339
  export declare class Invoicing extends InvoicingClient implements Invoicing {}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-invoicing",
3
3
  "description": "AWS SDK for JavaScript Invoicing 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-invoicing",
@@ -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",