@aws-sdk/client-invoicing 3.716.0 → 3.723.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.
@@ -17,6 +17,7 @@ const EndpointParameters_1 = require("./endpoint/EndpointParameters");
17
17
  const runtimeConfig_1 = require("./runtimeConfig");
18
18
  const runtimeExtensions_1 = require("./runtimeExtensions");
19
19
  class InvoicingClient extends smithy_client_1.Client {
20
+ config;
20
21
  constructor(...[configuration]) {
21
22
  const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {});
22
23
  const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0);
@@ -4,56 +4,59 @@ exports.BatchGetInvoiceProfileResponseFilterSensitiveLog = exports.InvoiceProfil
4
4
  const smithy_client_1 = require("@smithy/smithy-client");
5
5
  const InvoicingServiceException_1 = require("./InvoicingServiceException");
6
6
  class AccessDeniedException extends InvoicingServiceException_1.InvoicingServiceException {
7
+ name = "AccessDeniedException";
8
+ $fault = "client";
9
+ resourceName;
7
10
  constructor(opts) {
8
11
  super({
9
12
  name: "AccessDeniedException",
10
13
  $fault: "client",
11
14
  ...opts,
12
15
  });
13
- this.name = "AccessDeniedException";
14
- this.$fault = "client";
15
16
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
17
  this.resourceName = opts.resourceName;
17
18
  }
18
19
  }
19
20
  exports.AccessDeniedException = AccessDeniedException;
20
21
  class InternalServerException extends InvoicingServiceException_1.InvoicingServiceException {
22
+ name = "InternalServerException";
23
+ $fault = "server";
24
+ retryAfterSeconds;
21
25
  constructor(opts) {
22
26
  super({
23
27
  name: "InternalServerException",
24
28
  $fault: "server",
25
29
  ...opts,
26
30
  });
27
- this.name = "InternalServerException";
28
- this.$fault = "server";
29
31
  Object.setPrototypeOf(this, InternalServerException.prototype);
30
32
  this.retryAfterSeconds = opts.retryAfterSeconds;
31
33
  }
32
34
  }
33
35
  exports.InternalServerException = InternalServerException;
34
36
  class ResourceNotFoundException extends InvoicingServiceException_1.InvoicingServiceException {
37
+ name = "ResourceNotFoundException";
38
+ $fault = "client";
39
+ resourceName;
35
40
  constructor(opts) {
36
41
  super({
37
42
  name: "ResourceNotFoundException",
38
43
  $fault: "client",
39
44
  ...opts,
40
45
  });
41
- this.name = "ResourceNotFoundException";
42
- this.$fault = "client";
43
46
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
44
47
  this.resourceName = opts.resourceName;
45
48
  }
46
49
  }
47
50
  exports.ResourceNotFoundException = ResourceNotFoundException;
48
51
  class ThrottlingException extends InvoicingServiceException_1.InvoicingServiceException {
52
+ name = "ThrottlingException";
53
+ $fault = "client";
49
54
  constructor(opts) {
50
55
  super({
51
56
  name: "ThrottlingException",
52
57
  $fault: "client",
53
58
  ...opts,
54
59
  });
55
- this.name = "ThrottlingException";
56
- this.$fault = "client";
57
60
  Object.setPrototypeOf(this, ThrottlingException.prototype);
58
61
  }
59
62
  }
@@ -75,14 +78,17 @@ exports.ValidationExceptionReason = {
75
78
  UNKNOWN_OPERATION: "unknownOperation",
76
79
  };
77
80
  class ValidationException extends InvoicingServiceException_1.InvoicingServiceException {
81
+ name = "ValidationException";
82
+ $fault = "client";
83
+ resourceName;
84
+ reason;
85
+ fieldList;
78
86
  constructor(opts) {
79
87
  super({
80
88
  name: "ValidationException",
81
89
  $fault: "client",
82
90
  ...opts,
83
91
  });
84
- this.name = "ValidationException";
85
- this.$fault = "client";
86
92
  Object.setPrototypeOf(this, ValidationException.prototype);
87
93
  this.resourceName = opts.resourceName;
88
94
  this.reason = opts.reason;
@@ -91,14 +97,14 @@ class ValidationException extends InvoicingServiceException_1.InvoicingServiceEx
91
97
  }
92
98
  exports.ValidationException = ValidationException;
93
99
  class ServiceQuotaExceededException extends InvoicingServiceException_1.InvoicingServiceException {
100
+ name = "ServiceQuotaExceededException";
101
+ $fault = "client";
94
102
  constructor(opts) {
95
103
  super({
96
104
  name: "ServiceQuotaExceededException",
97
105
  $fault: "client",
98
106
  ...opts,
99
107
  });
100
- this.name = "ServiceQuotaExceededException";
101
- this.$fault = "client";
102
108
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
103
109
  }
104
110
  }
@@ -14,6 +14,7 @@ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
14
14
  import { resolveRuntimeExtensions } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  export class InvoicingClient extends __Client {
17
+ config;
17
18
  constructor(...[configuration]) {
18
19
  const _config_0 = __getRuntimeConfig(configuration || {});
19
20
  const _config_1 = resolveClientEndpointParameters(_config_0);
@@ -1,53 +1,56 @@
1
1
  import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
2
  import { InvoicingServiceException as __BaseException } from "./InvoicingServiceException";
3
3
  export class AccessDeniedException extends __BaseException {
4
+ name = "AccessDeniedException";
5
+ $fault = "client";
6
+ resourceName;
4
7
  constructor(opts) {
5
8
  super({
6
9
  name: "AccessDeniedException",
7
10
  $fault: "client",
8
11
  ...opts,
9
12
  });
10
- this.name = "AccessDeniedException";
11
- this.$fault = "client";
12
13
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
13
14
  this.resourceName = opts.resourceName;
14
15
  }
15
16
  }
16
17
  export class InternalServerException extends __BaseException {
18
+ name = "InternalServerException";
19
+ $fault = "server";
20
+ retryAfterSeconds;
17
21
  constructor(opts) {
18
22
  super({
19
23
  name: "InternalServerException",
20
24
  $fault: "server",
21
25
  ...opts,
22
26
  });
23
- this.name = "InternalServerException";
24
- this.$fault = "server";
25
27
  Object.setPrototypeOf(this, InternalServerException.prototype);
26
28
  this.retryAfterSeconds = opts.retryAfterSeconds;
27
29
  }
28
30
  }
29
31
  export class ResourceNotFoundException extends __BaseException {
32
+ name = "ResourceNotFoundException";
33
+ $fault = "client";
34
+ resourceName;
30
35
  constructor(opts) {
31
36
  super({
32
37
  name: "ResourceNotFoundException",
33
38
  $fault: "client",
34
39
  ...opts,
35
40
  });
36
- this.name = "ResourceNotFoundException";
37
- this.$fault = "client";
38
41
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
39
42
  this.resourceName = opts.resourceName;
40
43
  }
41
44
  }
42
45
  export class ThrottlingException extends __BaseException {
46
+ name = "ThrottlingException";
47
+ $fault = "client";
43
48
  constructor(opts) {
44
49
  super({
45
50
  name: "ThrottlingException",
46
51
  $fault: "client",
47
52
  ...opts,
48
53
  });
49
- this.name = "ThrottlingException";
50
- this.$fault = "client";
51
54
  Object.setPrototypeOf(this, ThrottlingException.prototype);
52
55
  }
53
56
  }
@@ -68,14 +71,17 @@ export const ValidationExceptionReason = {
68
71
  UNKNOWN_OPERATION: "unknownOperation",
69
72
  };
70
73
  export class ValidationException extends __BaseException {
74
+ name = "ValidationException";
75
+ $fault = "client";
76
+ resourceName;
77
+ reason;
78
+ fieldList;
71
79
  constructor(opts) {
72
80
  super({
73
81
  name: "ValidationException",
74
82
  $fault: "client",
75
83
  ...opts,
76
84
  });
77
- this.name = "ValidationException";
78
- this.$fault = "client";
79
85
  Object.setPrototypeOf(this, ValidationException.prototype);
80
86
  this.resourceName = opts.resourceName;
81
87
  this.reason = opts.reason;
@@ -83,14 +89,14 @@ export class ValidationException extends __BaseException {
83
89
  }
84
90
  }
85
91
  export class ServiceQuotaExceededException extends __BaseException {
92
+ name = "ServiceQuotaExceededException";
93
+ $fault = "client";
86
94
  constructor(opts) {
87
95
  super({
88
96
  name: "ServiceQuotaExceededException",
89
97
  $fault: "client",
90
98
  ...opts,
91
99
  });
92
- this.name = "ServiceQuotaExceededException";
93
- this.$fault = "client";
94
100
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
95
101
  }
96
102
  }
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: InvoicingClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<any>;
@@ -7,7 +7,7 @@ export declare const getRuntimeConfig: (config: InvoicingClientConfig) => {
7
7
  runtime: string;
8
8
  defaultsMode: import("@smithy/types").Provider<import("@smithy/smithy-client").ResolvedDefaultsMode>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
10
- credentialDefaultProvider: (init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>;
10
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((init?: import("@aws-sdk/credential-provider-node").DefaultProviderInit | undefined) => import("@smithy/types").MemoizedProvider<import("@smithy/types").AwsCredentialIdentity>);
11
11
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-node").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
12
12
  maxAttempts: number | import("@smithy/types").Provider<number>;
13
13
  region: string | import("@smithy/types").Provider<string>;
@@ -22,7 +22,7 @@ export declare const getRuntimeConfig: (config: InvoicingClientConfig) => {
22
22
  region: string | import("@smithy/types").Provider<any>;
23
23
  profile?: string | undefined;
24
24
  defaultUserAgentProvider: (config?: import("@aws-sdk/util-user-agent-browser").PreviouslyResolved | undefined) => Promise<import("@smithy/types").UserAgent>;
25
- credentialDefaultProvider: (input: any) => import("@smithy/types").AwsCredentialIdentityProvider;
25
+ credentialDefaultProvider: ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider) | ((_: unknown) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
26
26
  maxAttempts: number | import("@smithy/types").Provider<number>;
27
27
  retryMode: string | import("@smithy/types").Provider<string>;
28
28
  logger: import("@smithy/types").Logger;
@@ -31,7 +31,7 @@ export declare const getRuntimeConfig: (config: InvoicingClientConfig) => {
31
31
  customUserAgent?: string | import("@smithy/types").UserAgent | undefined;
32
32
  userAgentAppId?: string | import("@smithy/types").Provider<string | undefined> | undefined;
33
33
  retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined;
34
- endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2> | undefined;
34
+ endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>)) | undefined;
35
35
  endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
36
36
  logger?: import("@smithy/types").Logger | undefined;
37
37
  }) => import("@smithy/types").EndpointV2;
@@ -6,9 +6,11 @@ export declare const getRuntimeConfig: (config: InvoicingClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- input: any
11
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ _: unknown
13
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
12
14
  defaultUserAgentProvider: (
13
15
  config?:
14
16
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
@@ -6,13 +6,15 @@ export declare const getRuntimeConfig: (config: InvoicingClientConfig) => {
6
6
  import("@smithy/smithy-client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
- credentialDefaultProvider: (
10
- init?:
11
- | import("@aws-sdk/credential-provider-node").DefaultProviderInit
12
- | undefined
13
- ) => import("@smithy/types").MemoizedProvider<
14
- import("@smithy/types").AwsCredentialIdentity
15
- >;
9
+ credentialDefaultProvider:
10
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
11
+ | ((
12
+ init?:
13
+ | import("@aws-sdk/credential-provider-node").DefaultProviderInit
14
+ | undefined
15
+ ) => import("@smithy/types").MemoizedProvider<
16
+ import("@smithy/types").AwsCredentialIdentity
17
+ >);
16
18
  defaultUserAgentProvider: (
17
19
  config?:
18
20
  | import("@aws-sdk/util-user-agent-node").PreviouslyResolved
@@ -28,9 +28,11 @@ export declare const getRuntimeConfig: (config: InvoicingClientConfig) => {
28
28
  | import("@aws-sdk/util-user-agent-browser").PreviouslyResolved
29
29
  | undefined
30
30
  ) => Promise<import("@smithy/types").UserAgent>;
31
- credentialDefaultProvider: (
32
- input: any
33
- ) => import("@smithy/types").AwsCredentialIdentityProvider;
31
+ credentialDefaultProvider:
32
+ | ((input: any) => import("@smithy/types").AwsCredentialIdentityProvider)
33
+ | ((
34
+ _: unknown
35
+ ) => () => Promise<import("@smithy/types").AwsCredentialIdentity>);
34
36
  maxAttempts: number | import("@smithy/types").Provider<number>;
35
37
  retryMode: string | import("@smithy/types").Provider<string>;
36
38
  logger: import("@smithy/types").Logger;
@@ -50,11 +52,21 @@ export declare const getRuntimeConfig: (config: InvoicingClientConfig) => {
50
52
  | import("@smithy/types").RetryStrategyV2
51
53
  | undefined;
52
54
  endpoint?:
53
- | string
54
- | import("@smithy/types").Endpoint
55
- | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
56
- | import("@smithy/types").EndpointV2
57
- | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
55
+ | ((
56
+ | string
57
+ | import("@smithy/types").Endpoint
58
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
59
+ | import("@smithy/types").EndpointV2
60
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
61
+ ) &
62
+ (
63
+ | string
64
+ | import("@smithy/types").Provider<string>
65
+ | import("@smithy/types").Endpoint
66
+ | import("@smithy/types").Provider<import("@smithy/types").Endpoint>
67
+ | import("@smithy/types").EndpointV2
68
+ | import("@smithy/types").Provider<import("@smithy/types").EndpointV2>
69
+ ))
58
70
  | undefined;
59
71
  endpointProvider: (
60
72
  endpointParams: import("./endpoint/EndpointParameters").EndpointParameters,
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.716.0",
4
+ "version": "3.723.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,56 +20,56 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.716.0",
24
- "@aws-sdk/client-sts": "3.716.0",
25
- "@aws-sdk/core": "3.716.0",
26
- "@aws-sdk/credential-provider-node": "3.716.0",
27
- "@aws-sdk/middleware-host-header": "3.714.0",
28
- "@aws-sdk/middleware-logger": "3.714.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.714.0",
30
- "@aws-sdk/middleware-user-agent": "3.716.0",
31
- "@aws-sdk/region-config-resolver": "3.714.0",
32
- "@aws-sdk/types": "3.714.0",
33
- "@aws-sdk/util-endpoints": "3.714.0",
34
- "@aws-sdk/util-user-agent-browser": "3.714.0",
35
- "@aws-sdk/util-user-agent-node": "3.716.0",
36
- "@smithy/config-resolver": "^3.0.13",
37
- "@smithy/core": "^2.5.5",
38
- "@smithy/fetch-http-handler": "^4.1.2",
39
- "@smithy/hash-node": "^3.0.11",
40
- "@smithy/invalid-dependency": "^3.0.11",
41
- "@smithy/middleware-content-length": "^3.0.13",
42
- "@smithy/middleware-endpoint": "^3.2.6",
43
- "@smithy/middleware-retry": "^3.0.31",
44
- "@smithy/middleware-serde": "^3.0.11",
45
- "@smithy/middleware-stack": "^3.0.11",
46
- "@smithy/node-config-provider": "^3.1.12",
47
- "@smithy/node-http-handler": "^3.3.2",
48
- "@smithy/protocol-http": "^4.1.8",
49
- "@smithy/smithy-client": "^3.5.1",
50
- "@smithy/types": "^3.7.2",
51
- "@smithy/url-parser": "^3.0.11",
52
- "@smithy/util-base64": "^3.0.0",
53
- "@smithy/util-body-length-browser": "^3.0.0",
54
- "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.31",
56
- "@smithy/util-defaults-mode-node": "^3.0.31",
57
- "@smithy/util-endpoints": "^2.1.7",
58
- "@smithy/util-middleware": "^3.0.11",
59
- "@smithy/util-retry": "^3.0.11",
60
- "@smithy/util-utf8": "^3.0.0",
23
+ "@aws-sdk/client-sso-oidc": "3.723.0",
24
+ "@aws-sdk/client-sts": "3.723.0",
25
+ "@aws-sdk/core": "3.723.0",
26
+ "@aws-sdk/credential-provider-node": "3.723.0",
27
+ "@aws-sdk/middleware-host-header": "3.723.0",
28
+ "@aws-sdk/middleware-logger": "3.723.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.723.0",
30
+ "@aws-sdk/middleware-user-agent": "3.723.0",
31
+ "@aws-sdk/region-config-resolver": "3.723.0",
32
+ "@aws-sdk/types": "3.723.0",
33
+ "@aws-sdk/util-endpoints": "3.723.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.723.0",
35
+ "@aws-sdk/util-user-agent-node": "3.723.0",
36
+ "@smithy/config-resolver": "^4.0.0",
37
+ "@smithy/core": "^3.0.0",
38
+ "@smithy/fetch-http-handler": "^5.0.0",
39
+ "@smithy/hash-node": "^4.0.0",
40
+ "@smithy/invalid-dependency": "^4.0.0",
41
+ "@smithy/middleware-content-length": "^4.0.0",
42
+ "@smithy/middleware-endpoint": "^4.0.0",
43
+ "@smithy/middleware-retry": "^4.0.0",
44
+ "@smithy/middleware-serde": "^4.0.0",
45
+ "@smithy/middleware-stack": "^4.0.0",
46
+ "@smithy/node-config-provider": "^4.0.0",
47
+ "@smithy/node-http-handler": "^4.0.0",
48
+ "@smithy/protocol-http": "^5.0.0",
49
+ "@smithy/smithy-client": "^4.0.0",
50
+ "@smithy/types": "^4.0.0",
51
+ "@smithy/url-parser": "^4.0.0",
52
+ "@smithy/util-base64": "^4.0.0",
53
+ "@smithy/util-body-length-browser": "^4.0.0",
54
+ "@smithy/util-body-length-node": "^4.0.0",
55
+ "@smithy/util-defaults-mode-browser": "^4.0.0",
56
+ "@smithy/util-defaults-mode-node": "^4.0.0",
57
+ "@smithy/util-endpoints": "^3.0.0",
58
+ "@smithy/util-middleware": "^4.0.0",
59
+ "@smithy/util-retry": "^4.0.0",
60
+ "@smithy/util-utf8": "^4.0.0",
61
61
  "tslib": "^2.6.2"
62
62
  },
63
63
  "devDependencies": {
64
- "@tsconfig/node16": "16.1.3",
65
- "@types/node": "^16.18.96",
64
+ "@tsconfig/node18": "18.2.4",
65
+ "@types/node": "^18.19.69",
66
66
  "concurrently": "7.0.0",
67
67
  "downlevel-dts": "0.10.1",
68
68
  "rimraf": "3.0.2",
69
- "typescript": "~4.9.5"
69
+ "typescript": "~5.2.2"
70
70
  },
71
71
  "engines": {
72
- "node": ">=16.0.0"
72
+ "node": ">=18.0.0"
73
73
  },
74
74
  "typesVersions": {
75
75
  "<4.0": {