@aws-sdk/client-rds-data 3.301.0 → 3.303.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.
@@ -28,15 +28,14 @@ class BadRequestException extends RDSDataServiceException_1.RDSDataServiceExcept
28
28
  }
29
29
  }
30
30
  exports.BadRequestException = BadRequestException;
31
- var TypeHint;
32
- (function (TypeHint) {
33
- TypeHint["DATE"] = "DATE";
34
- TypeHint["DECIMAL"] = "DECIMAL";
35
- TypeHint["JSON"] = "JSON";
36
- TypeHint["TIME"] = "TIME";
37
- TypeHint["TIMESTAMP"] = "TIMESTAMP";
38
- TypeHint["UUID"] = "UUID";
39
- })(TypeHint = exports.TypeHint || (exports.TypeHint = {}));
31
+ exports.TypeHint = {
32
+ DATE: "DATE",
33
+ DECIMAL: "DECIMAL",
34
+ JSON: "JSON",
35
+ TIME: "TIME",
36
+ TIMESTAMP: "TIMESTAMP",
37
+ UUID: "UUID",
38
+ };
40
39
  class ForbiddenException extends RDSDataServiceException_1.RDSDataServiceException {
41
40
  constructor(opts) {
42
41
  super({
@@ -103,21 +102,18 @@ class NotFoundException extends RDSDataServiceException_1.RDSDataServiceExceptio
103
102
  }
104
103
  }
105
104
  exports.NotFoundException = NotFoundException;
106
- var DecimalReturnType;
107
- (function (DecimalReturnType) {
108
- DecimalReturnType["DOUBLE_OR_LONG"] = "DOUBLE_OR_LONG";
109
- DecimalReturnType["STRING"] = "STRING";
110
- })(DecimalReturnType = exports.DecimalReturnType || (exports.DecimalReturnType = {}));
111
- var RecordsFormatType;
112
- (function (RecordsFormatType) {
113
- RecordsFormatType["JSON"] = "JSON";
114
- RecordsFormatType["NONE"] = "NONE";
115
- })(RecordsFormatType = exports.RecordsFormatType || (exports.RecordsFormatType = {}));
116
- var LongReturnType;
117
- (function (LongReturnType) {
118
- LongReturnType["LONG"] = "LONG";
119
- LongReturnType["STRING"] = "STRING";
120
- })(LongReturnType = exports.LongReturnType || (exports.LongReturnType = {}));
105
+ exports.DecimalReturnType = {
106
+ DOUBLE_OR_LONG: "DOUBLE_OR_LONG",
107
+ STRING: "STRING",
108
+ };
109
+ exports.RecordsFormatType = {
110
+ JSON: "JSON",
111
+ NONE: "NONE",
112
+ };
113
+ exports.LongReturnType = {
114
+ LONG: "LONG",
115
+ STRING: "STRING",
116
+ };
121
117
  var ArrayValue;
122
118
  (function (ArrayValue) {
123
119
  ArrayValue.visit = (value, visitor) => {
@@ -23,15 +23,14 @@ export class BadRequestException extends __BaseException {
23
23
  Object.setPrototypeOf(this, BadRequestException.prototype);
24
24
  }
25
25
  }
26
- export var TypeHint;
27
- (function (TypeHint) {
28
- TypeHint["DATE"] = "DATE";
29
- TypeHint["DECIMAL"] = "DECIMAL";
30
- TypeHint["JSON"] = "JSON";
31
- TypeHint["TIME"] = "TIME";
32
- TypeHint["TIMESTAMP"] = "TIMESTAMP";
33
- TypeHint["UUID"] = "UUID";
34
- })(TypeHint || (TypeHint = {}));
26
+ export const TypeHint = {
27
+ DATE: "DATE",
28
+ DECIMAL: "DECIMAL",
29
+ JSON: "JSON",
30
+ TIME: "TIME",
31
+ TIMESTAMP: "TIMESTAMP",
32
+ UUID: "UUID",
33
+ };
35
34
  export class ForbiddenException extends __BaseException {
36
35
  constructor(opts) {
37
36
  super({
@@ -93,21 +92,18 @@ export class NotFoundException extends __BaseException {
93
92
  Object.setPrototypeOf(this, NotFoundException.prototype);
94
93
  }
95
94
  }
96
- export var DecimalReturnType;
97
- (function (DecimalReturnType) {
98
- DecimalReturnType["DOUBLE_OR_LONG"] = "DOUBLE_OR_LONG";
99
- DecimalReturnType["STRING"] = "STRING";
100
- })(DecimalReturnType || (DecimalReturnType = {}));
101
- export var RecordsFormatType;
102
- (function (RecordsFormatType) {
103
- RecordsFormatType["JSON"] = "JSON";
104
- RecordsFormatType["NONE"] = "NONE";
105
- })(RecordsFormatType || (RecordsFormatType = {}));
106
- export var LongReturnType;
107
- (function (LongReturnType) {
108
- LongReturnType["LONG"] = "LONG";
109
- LongReturnType["STRING"] = "STRING";
110
- })(LongReturnType || (LongReturnType = {}));
95
+ export const DecimalReturnType = {
96
+ DOUBLE_OR_LONG: "DOUBLE_OR_LONG",
97
+ STRING: "STRING",
98
+ };
99
+ export const RecordsFormatType = {
100
+ JSON: "JSON",
101
+ NONE: "NONE",
102
+ };
103
+ export const LongReturnType = {
104
+ LONG: "LONG",
105
+ STRING: "STRING",
106
+ };
111
107
  export var ArrayValue;
112
108
  (function (ArrayValue) {
113
109
  ArrayValue.visit = (value, visitor) => {
@@ -26,15 +26,20 @@ export declare class BadRequestException extends __BaseException {
26
26
  }
27
27
  /**
28
28
  * @public
29
+ * @enum
29
30
  */
30
- export declare enum TypeHint {
31
- DATE = "DATE",
32
- DECIMAL = "DECIMAL",
33
- JSON = "JSON",
34
- TIME = "TIME",
35
- TIMESTAMP = "TIMESTAMP",
36
- UUID = "UUID"
37
- }
31
+ export declare const TypeHint: {
32
+ readonly DATE: "DATE";
33
+ readonly DECIMAL: "DECIMAL";
34
+ readonly JSON: "JSON";
35
+ readonly TIME: "TIME";
36
+ readonly TIMESTAMP: "TIMESTAMP";
37
+ readonly UUID: "UUID";
38
+ };
39
+ /**
40
+ * @public
41
+ */
42
+ export type TypeHint = (typeof TypeHint)[keyof typeof TypeHint];
38
43
  /**
39
44
  * @public
40
45
  * <p>There are insufficient privileges to make the call.</p>
@@ -226,11 +231,16 @@ export declare class NotFoundException extends __BaseException {
226
231
  }
227
232
  /**
228
233
  * @public
234
+ * @enum
229
235
  */
230
- export declare enum DecimalReturnType {
231
- DOUBLE_OR_LONG = "DOUBLE_OR_LONG",
232
- STRING = "STRING"
233
- }
236
+ export declare const DecimalReturnType: {
237
+ readonly DOUBLE_OR_LONG: "DOUBLE_OR_LONG";
238
+ readonly STRING: "STRING";
239
+ };
240
+ /**
241
+ * @public
242
+ */
243
+ export type DecimalReturnType = (typeof DecimalReturnType)[keyof typeof DecimalReturnType];
234
244
  /**
235
245
  * @public
236
246
  * <p>The request parameters represent the input of a request to run one or more SQL
@@ -279,18 +289,28 @@ export interface ResultSetMetadata {
279
289
  }
280
290
  /**
281
291
  * @public
292
+ * @enum
282
293
  */
283
- export declare enum RecordsFormatType {
284
- JSON = "JSON",
285
- NONE = "NONE"
286
- }
294
+ export declare const RecordsFormatType: {
295
+ readonly JSON: "JSON";
296
+ readonly NONE: "NONE";
297
+ };
287
298
  /**
288
299
  * @public
289
300
  */
290
- export declare enum LongReturnType {
291
- LONG = "LONG",
292
- STRING = "STRING"
293
- }
301
+ export type RecordsFormatType = (typeof RecordsFormatType)[keyof typeof RecordsFormatType];
302
+ /**
303
+ * @public
304
+ * @enum
305
+ */
306
+ export declare const LongReturnType: {
307
+ readonly LONG: "LONG";
308
+ readonly STRING: "STRING";
309
+ };
310
+ /**
311
+ * @public
312
+ */
313
+ export type LongReturnType = (typeof LongReturnType)[keyof typeof LongReturnType];
294
314
  /**
295
315
  * @public
296
316
  * <p>Options that control how the result set is returned.</p>
@@ -14,14 +14,15 @@ export declare class BadRequestException extends __BaseException {
14
14
  opts: __ExceptionOptionType<BadRequestException, __BaseException>
15
15
  );
16
16
  }
17
- export declare enum TypeHint {
18
- DATE = "DATE",
19
- DECIMAL = "DECIMAL",
20
- JSON = "JSON",
21
- TIME = "TIME",
22
- TIMESTAMP = "TIMESTAMP",
23
- UUID = "UUID",
24
- }
17
+ export declare const TypeHint: {
18
+ readonly DATE: "DATE";
19
+ readonly DECIMAL: "DECIMAL";
20
+ readonly JSON: "JSON";
21
+ readonly TIME: "TIME";
22
+ readonly TIMESTAMP: "TIMESTAMP";
23
+ readonly UUID: "UUID";
24
+ };
25
+ export type TypeHint = (typeof TypeHint)[keyof typeof TypeHint];
25
26
  export declare class ForbiddenException extends __BaseException {
26
27
  readonly name: "ForbiddenException";
27
28
  readonly $fault: "client";
@@ -87,10 +88,12 @@ export declare class NotFoundException extends __BaseException {
87
88
  readonly $fault: "client";
88
89
  constructor(opts: __ExceptionOptionType<NotFoundException, __BaseException>);
89
90
  }
90
- export declare enum DecimalReturnType {
91
- DOUBLE_OR_LONG = "DOUBLE_OR_LONG",
92
- STRING = "STRING",
93
- }
91
+ export declare const DecimalReturnType: {
92
+ readonly DOUBLE_OR_LONG: "DOUBLE_OR_LONG";
93
+ readonly STRING: "STRING";
94
+ };
95
+ export type DecimalReturnType =
96
+ (typeof DecimalReturnType)[keyof typeof DecimalReturnType];
94
97
  export interface ExecuteSqlRequest {
95
98
  dbClusterOrInstanceArn: string | undefined;
96
99
  awsSecretStoreArn: string | undefined;
@@ -102,14 +105,18 @@ export interface ResultSetMetadata {
102
105
  columnCount?: number;
103
106
  columnMetadata?: ColumnMetadata[];
104
107
  }
105
- export declare enum RecordsFormatType {
106
- JSON = "JSON",
107
- NONE = "NONE",
108
- }
109
- export declare enum LongReturnType {
110
- LONG = "LONG",
111
- STRING = "STRING",
112
- }
108
+ export declare const RecordsFormatType: {
109
+ readonly JSON: "JSON";
110
+ readonly NONE: "NONE";
111
+ };
112
+ export type RecordsFormatType =
113
+ (typeof RecordsFormatType)[keyof typeof RecordsFormatType];
114
+ export declare const LongReturnType: {
115
+ readonly LONG: "LONG";
116
+ readonly STRING: "STRING";
117
+ };
118
+ export type LongReturnType =
119
+ (typeof LongReturnType)[keyof typeof LongReturnType];
113
120
  export interface ResultSetOptions {
114
121
  decimalReturnType?: DecimalReturnType | string;
115
122
  longReturnType?: LongReturnType | string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rds-data",
3
3
  "description": "AWS SDK for JavaScript Rds Data Client for Node.js, Browser and React Native",
4
- "version": "3.301.0",
4
+ "version": "3.303.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",
@@ -21,42 +21,42 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
59
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
60
60
  "@tsconfig/node14": "1.0.3",
61
61
  "@types/node": "^14.14.31",
62
62
  "concurrently": "7.0.0",