@aws-sdk/types 3.159.0 → 3.168.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.168.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.167.0...v3.168.0) (2022-09-09)
7
+
8
+ **Note:** Version bump only for package @aws-sdk/types
9
+
10
+
11
+
12
+
13
+
14
+ # [3.162.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.161.0...v3.162.0) (2022-08-31)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **types:** declare ReadableStream type without requiring dom ([#3889](https://github.com/aws/aws-sdk-js-v3/issues/3889)) ([061b5f5](https://github.com/aws/aws-sdk-js-v3/commit/061b5f5812278930207b5c50c0c9f61a26a987ad))
20
+
21
+
22
+
23
+
24
+
25
+ # [3.160.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.159.0...v3.160.0) (2022-08-29)
26
+
27
+ **Note:** Version bump only for package @aws-sdk/types
28
+
29
+
30
+
31
+
32
+
6
33
  # [3.159.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.158.0...v3.159.0) (2022-08-26)
7
34
 
8
35
 
@@ -1,3 +1,17 @@
1
+ export interface EndpointPartition {
2
+ name: string;
3
+ dnsSuffix: string;
4
+ dualStackDnsSuffix: string;
5
+ supportsFIPS: boolean;
6
+ supportsDualStack: boolean;
7
+ }
8
+ export interface EndpointARN {
9
+ partition: string;
10
+ service: string;
11
+ region: string;
12
+ accountId: string;
13
+ resourceId: Array<string>;
14
+ }
1
15
  export declare enum EndpointURLScheme {
2
16
  HTTP = "http",
3
17
  HTTPS = "https"
@@ -21,3 +35,11 @@ export interface EndpointURL {
21
35
  */
22
36
  isIp: boolean;
23
37
  }
38
+ export declare type EndpointObjectProperty = string | boolean | {
39
+ [key: string]: EndpointObjectProperty;
40
+ } | EndpointObjectProperty[];
41
+ export interface EndpointV2 {
42
+ url: URL;
43
+ properties?: Record<string, EndpointObjectProperty>;
44
+ headers?: Record<string, string[]>;
45
+ }
@@ -47,6 +47,19 @@ export interface ResponseDeserializer<OutputType, ResponseType = any, Context =
47
47
  */
48
48
  (output: ResponseType, context: Context): Promise<OutputType>;
49
49
  }
50
+ /**
51
+ * Declare ReadableStream in case dom.d.ts is not added to the tsconfig lib causing
52
+ * ReadableStream interface is not defined. For developers with dom.d.ts added,
53
+ * the ReadableStream interface will be merged correctly.
54
+ *
55
+ * This is also required for any clients with streaming interface where ReadableStream
56
+ * type is also referred. The type is only declared here once since this @aws-sdk/types
57
+ * is depended by all @aws-sdk packages.
58
+ */
59
+ declare global {
60
+ export interface ReadableStream {
61
+ }
62
+ }
50
63
  /**
51
64
  * The interface contains mix-in utility functions to transfer the runtime-specific
52
65
  * stream implementation to specified format. Each stream can ONLY be transformed
@@ -1,3 +1,17 @@
1
+ export interface EndpointPartition {
2
+ name: string;
3
+ dnsSuffix: string;
4
+ dualStackDnsSuffix: string;
5
+ supportsFIPS: boolean;
6
+ supportsDualStack: boolean;
7
+ }
8
+ export interface EndpointARN {
9
+ partition: string;
10
+ service: string;
11
+ region: string;
12
+ accountId: string;
13
+ resourceId: Array<string>;
14
+ }
1
15
  export declare enum EndpointURLScheme {
2
16
  HTTP = "http",
3
17
  HTTPS = "https"
@@ -12,3 +26,11 @@ export interface EndpointURL {
12
26
 
13
27
  isIp: boolean;
14
28
  }
29
+ export declare type EndpointObjectProperty = string | boolean | {
30
+ [key: string]: EndpointObjectProperty;
31
+ } | EndpointObjectProperty[];
32
+ export interface EndpointV2 {
33
+ url: URL;
34
+ properties?: Record<string, EndpointObjectProperty>;
35
+ headers?: Record<string, string[]>;
36
+ }
@@ -28,6 +28,11 @@ export interface ResponseDeserializer<OutputType, ResponseType = any, Context =
28
28
  (output: ResponseType, context: Context): Promise<OutputType>;
29
29
  }
30
30
 
31
+ declare global {
32
+ export interface ReadableStream {
33
+ }
34
+ }
35
+
31
36
  export interface SdkStreamMixin {
32
37
  transformToByteArray: () => Promise<Uint8Array>;
33
38
  transformToString: (encoding?: string) => Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.159.0",
3
+ "version": "3.168.0",
4
4
  "main": "./dist-cjs/index.js",
5
5
  "module": "./dist-es/index.js",
6
6
  "types": "./dist-types/index.d.ts",
@@ -9,6 +9,7 @@
9
9
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
10
10
  "build:cjs": "tsc -p tsconfig.cjs.json",
11
11
  "build:es": "tsc -p tsconfig.es.json",
12
+ "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
12
13
  "build:types": "tsc -p tsconfig.types.json",
13
14
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
14
15
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",