@aws-sdk/client-managedblockchain-query 3.476.0 → 3.477.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.
|
@@ -1,126 +1,91 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.de_ListTransactionsCommand = exports.de_ListTransactionEventsCommand = exports.de_ListTokenBalancesCommand = exports.de_ListAssetContractsCommand = exports.de_GetTransactionCommand = exports.de_GetTokenBalanceCommand = exports.de_GetAssetContractCommand = exports.de_BatchGetTokenBalanceCommand = exports.se_ListTransactionsCommand = exports.se_ListTransactionEventsCommand = exports.se_ListTokenBalancesCommand = exports.se_ListAssetContractsCommand = exports.se_GetTransactionCommand = exports.se_GetTokenBalanceCommand = exports.se_GetAssetContractCommand = exports.se_BatchGetTokenBalanceCommand = void 0;
|
|
4
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
6
6
|
const ManagedBlockchainQueryServiceException_1 = require("../models/ManagedBlockchainQueryServiceException");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
8
8
|
const se_BatchGetTokenBalanceCommand = async (input, context) => {
|
|
9
|
-
const
|
|
9
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
b.bp("/batch-get-token-balance");
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
16
16
|
getTokenBalanceInputs: (_) => se_GetTokenBalanceInputList(_, context),
|
|
17
17
|
}));
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
hostname,
|
|
21
|
-
port,
|
|
22
|
-
method: "POST",
|
|
23
|
-
headers,
|
|
24
|
-
path: resolvedPath,
|
|
25
|
-
body,
|
|
26
|
-
});
|
|
18
|
+
b.m("POST").h(headers).b(body);
|
|
19
|
+
return b.build();
|
|
27
20
|
};
|
|
28
21
|
exports.se_BatchGetTokenBalanceCommand = se_BatchGetTokenBalanceCommand;
|
|
29
22
|
const se_GetAssetContractCommand = async (input, context) => {
|
|
30
|
-
const
|
|
23
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
31
24
|
const headers = {
|
|
32
25
|
"content-type": "application/json",
|
|
33
26
|
};
|
|
34
|
-
|
|
27
|
+
b.bp("/get-asset-contract");
|
|
35
28
|
let body;
|
|
36
29
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
37
30
|
contractIdentifier: (_) => (0, smithy_client_1._json)(_),
|
|
38
31
|
}));
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
hostname,
|
|
42
|
-
port,
|
|
43
|
-
method: "POST",
|
|
44
|
-
headers,
|
|
45
|
-
path: resolvedPath,
|
|
46
|
-
body,
|
|
47
|
-
});
|
|
32
|
+
b.m("POST").h(headers).b(body);
|
|
33
|
+
return b.build();
|
|
48
34
|
};
|
|
49
35
|
exports.se_GetAssetContractCommand = se_GetAssetContractCommand;
|
|
50
36
|
const se_GetTokenBalanceCommand = async (input, context) => {
|
|
51
|
-
const
|
|
37
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
52
38
|
const headers = {
|
|
53
39
|
"content-type": "application/json",
|
|
54
40
|
};
|
|
55
|
-
|
|
41
|
+
b.bp("/get-token-balance");
|
|
56
42
|
let body;
|
|
57
43
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
58
44
|
atBlockchainInstant: (_) => se_BlockchainInstant(_, context),
|
|
59
45
|
ownerIdentifier: (_) => (0, smithy_client_1._json)(_),
|
|
60
46
|
tokenIdentifier: (_) => (0, smithy_client_1._json)(_),
|
|
61
47
|
}));
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
hostname,
|
|
65
|
-
port,
|
|
66
|
-
method: "POST",
|
|
67
|
-
headers,
|
|
68
|
-
path: resolvedPath,
|
|
69
|
-
body,
|
|
70
|
-
});
|
|
48
|
+
b.m("POST").h(headers).b(body);
|
|
49
|
+
return b.build();
|
|
71
50
|
};
|
|
72
51
|
exports.se_GetTokenBalanceCommand = se_GetTokenBalanceCommand;
|
|
73
52
|
const se_GetTransactionCommand = async (input, context) => {
|
|
74
|
-
const
|
|
53
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
75
54
|
const headers = {
|
|
76
55
|
"content-type": "application/json",
|
|
77
56
|
};
|
|
78
|
-
|
|
57
|
+
b.bp("/get-transaction");
|
|
79
58
|
let body;
|
|
80
59
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
81
60
|
network: [],
|
|
82
61
|
transactionHash: [],
|
|
83
62
|
}));
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
hostname,
|
|
87
|
-
port,
|
|
88
|
-
method: "POST",
|
|
89
|
-
headers,
|
|
90
|
-
path: resolvedPath,
|
|
91
|
-
body,
|
|
92
|
-
});
|
|
63
|
+
b.m("POST").h(headers).b(body);
|
|
64
|
+
return b.build();
|
|
93
65
|
};
|
|
94
66
|
exports.se_GetTransactionCommand = se_GetTransactionCommand;
|
|
95
67
|
const se_ListAssetContractsCommand = async (input, context) => {
|
|
96
|
-
const
|
|
68
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
97
69
|
const headers = {
|
|
98
70
|
"content-type": "application/json",
|
|
99
71
|
};
|
|
100
|
-
|
|
72
|
+
b.bp("/list-asset-contracts");
|
|
101
73
|
let body;
|
|
102
74
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
103
75
|
contractFilter: (_) => (0, smithy_client_1._json)(_),
|
|
104
76
|
maxResults: [],
|
|
105
77
|
nextToken: [],
|
|
106
78
|
}));
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
hostname,
|
|
110
|
-
port,
|
|
111
|
-
method: "POST",
|
|
112
|
-
headers,
|
|
113
|
-
path: resolvedPath,
|
|
114
|
-
body,
|
|
115
|
-
});
|
|
79
|
+
b.m("POST").h(headers).b(body);
|
|
80
|
+
return b.build();
|
|
116
81
|
};
|
|
117
82
|
exports.se_ListAssetContractsCommand = se_ListAssetContractsCommand;
|
|
118
83
|
const se_ListTokenBalancesCommand = async (input, context) => {
|
|
119
|
-
const
|
|
84
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
120
85
|
const headers = {
|
|
121
86
|
"content-type": "application/json",
|
|
122
87
|
};
|
|
123
|
-
|
|
88
|
+
b.bp("/list-token-balances");
|
|
124
89
|
let body;
|
|
125
90
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
126
91
|
maxResults: [],
|
|
@@ -128,23 +93,16 @@ const se_ListTokenBalancesCommand = async (input, context) => {
|
|
|
128
93
|
ownerFilter: (_) => (0, smithy_client_1._json)(_),
|
|
129
94
|
tokenFilter: (_) => (0, smithy_client_1._json)(_),
|
|
130
95
|
}));
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
hostname,
|
|
134
|
-
port,
|
|
135
|
-
method: "POST",
|
|
136
|
-
headers,
|
|
137
|
-
path: resolvedPath,
|
|
138
|
-
body,
|
|
139
|
-
});
|
|
96
|
+
b.m("POST").h(headers).b(body);
|
|
97
|
+
return b.build();
|
|
140
98
|
};
|
|
141
99
|
exports.se_ListTokenBalancesCommand = se_ListTokenBalancesCommand;
|
|
142
100
|
const se_ListTransactionEventsCommand = async (input, context) => {
|
|
143
|
-
const
|
|
101
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
144
102
|
const headers = {
|
|
145
103
|
"content-type": "application/json",
|
|
146
104
|
};
|
|
147
|
-
|
|
105
|
+
b.bp("/list-transaction-events");
|
|
148
106
|
let body;
|
|
149
107
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
150
108
|
maxResults: [],
|
|
@@ -152,23 +110,16 @@ const se_ListTransactionEventsCommand = async (input, context) => {
|
|
|
152
110
|
nextToken: [],
|
|
153
111
|
transactionHash: [],
|
|
154
112
|
}));
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
hostname,
|
|
158
|
-
port,
|
|
159
|
-
method: "POST",
|
|
160
|
-
headers,
|
|
161
|
-
path: resolvedPath,
|
|
162
|
-
body,
|
|
163
|
-
});
|
|
113
|
+
b.m("POST").h(headers).b(body);
|
|
114
|
+
return b.build();
|
|
164
115
|
};
|
|
165
116
|
exports.se_ListTransactionEventsCommand = se_ListTransactionEventsCommand;
|
|
166
117
|
const se_ListTransactionsCommand = async (input, context) => {
|
|
167
|
-
const
|
|
118
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
168
119
|
const headers = {
|
|
169
120
|
"content-type": "application/json",
|
|
170
121
|
};
|
|
171
|
-
|
|
122
|
+
b.bp("/list-transactions");
|
|
172
123
|
let body;
|
|
173
124
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
174
125
|
address: [],
|
|
@@ -179,15 +130,8 @@ const se_ListTransactionsCommand = async (input, context) => {
|
|
|
179
130
|
sort: (_) => (0, smithy_client_1._json)(_),
|
|
180
131
|
toBlockchainInstant: (_) => se_BlockchainInstant(_, context),
|
|
181
132
|
}));
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
hostname,
|
|
185
|
-
port,
|
|
186
|
-
method: "POST",
|
|
187
|
-
headers,
|
|
188
|
-
path: resolvedPath,
|
|
189
|
-
body,
|
|
190
|
-
});
|
|
133
|
+
b.m("POST").h(headers).b(body);
|
|
134
|
+
return b.build();
|
|
191
135
|
};
|
|
192
136
|
exports.se_ListTransactionsCommand = se_ListTransactionsCommand;
|
|
193
137
|
const de_BatchGetTokenBalanceCommand = async (output, context) => {
|
|
@@ -598,10 +542,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
598
542
|
};
|
|
599
543
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
600
544
|
const contents = (0, smithy_client_1.map)({
|
|
601
|
-
|
|
602
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
603
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
604
|
-
],
|
|
545
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
605
546
|
});
|
|
606
547
|
const data = parsedOutput.body;
|
|
607
548
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -648,10 +589,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
648
589
|
};
|
|
649
590
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
650
591
|
const contents = (0, smithy_client_1.map)({
|
|
651
|
-
|
|
652
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
653
|
-
() => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers["retry-after"]),
|
|
654
|
-
],
|
|
592
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseInt32)(parsedOutput.headers[_ra])],
|
|
655
593
|
});
|
|
656
594
|
const data = parsedOutput.body;
|
|
657
595
|
const doc = (0, smithy_client_1.take)(data, {
|
|
@@ -807,6 +745,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
807
745
|
value !== "" &&
|
|
808
746
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
809
747
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
748
|
+
const _rAS = "retryAfterSeconds";
|
|
749
|
+
const _ra = "retry-after";
|
|
810
750
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
811
751
|
if (encoded.length) {
|
|
812
752
|
return JSON.parse(encoded);
|
|
@@ -1,118 +1,83 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
2
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { ManagedBlockchainQueryServiceException as __BaseException } from "../models/ManagedBlockchainQueryServiceException";
|
|
4
4
|
import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
5
5
|
export const se_BatchGetTokenBalanceCommand = async (input, context) => {
|
|
6
|
-
const
|
|
6
|
+
const b = rb(input, context);
|
|
7
7
|
const headers = {
|
|
8
8
|
"content-type": "application/json",
|
|
9
9
|
};
|
|
10
|
-
|
|
10
|
+
b.bp("/batch-get-token-balance");
|
|
11
11
|
let body;
|
|
12
12
|
body = JSON.stringify(take(input, {
|
|
13
13
|
getTokenBalanceInputs: (_) => se_GetTokenBalanceInputList(_, context),
|
|
14
14
|
}));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
hostname,
|
|
18
|
-
port,
|
|
19
|
-
method: "POST",
|
|
20
|
-
headers,
|
|
21
|
-
path: resolvedPath,
|
|
22
|
-
body,
|
|
23
|
-
});
|
|
15
|
+
b.m("POST").h(headers).b(body);
|
|
16
|
+
return b.build();
|
|
24
17
|
};
|
|
25
18
|
export const se_GetAssetContractCommand = async (input, context) => {
|
|
26
|
-
const
|
|
19
|
+
const b = rb(input, context);
|
|
27
20
|
const headers = {
|
|
28
21
|
"content-type": "application/json",
|
|
29
22
|
};
|
|
30
|
-
|
|
23
|
+
b.bp("/get-asset-contract");
|
|
31
24
|
let body;
|
|
32
25
|
body = JSON.stringify(take(input, {
|
|
33
26
|
contractIdentifier: (_) => _json(_),
|
|
34
27
|
}));
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
hostname,
|
|
38
|
-
port,
|
|
39
|
-
method: "POST",
|
|
40
|
-
headers,
|
|
41
|
-
path: resolvedPath,
|
|
42
|
-
body,
|
|
43
|
-
});
|
|
28
|
+
b.m("POST").h(headers).b(body);
|
|
29
|
+
return b.build();
|
|
44
30
|
};
|
|
45
31
|
export const se_GetTokenBalanceCommand = async (input, context) => {
|
|
46
|
-
const
|
|
32
|
+
const b = rb(input, context);
|
|
47
33
|
const headers = {
|
|
48
34
|
"content-type": "application/json",
|
|
49
35
|
};
|
|
50
|
-
|
|
36
|
+
b.bp("/get-token-balance");
|
|
51
37
|
let body;
|
|
52
38
|
body = JSON.stringify(take(input, {
|
|
53
39
|
atBlockchainInstant: (_) => se_BlockchainInstant(_, context),
|
|
54
40
|
ownerIdentifier: (_) => _json(_),
|
|
55
41
|
tokenIdentifier: (_) => _json(_),
|
|
56
42
|
}));
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
hostname,
|
|
60
|
-
port,
|
|
61
|
-
method: "POST",
|
|
62
|
-
headers,
|
|
63
|
-
path: resolvedPath,
|
|
64
|
-
body,
|
|
65
|
-
});
|
|
43
|
+
b.m("POST").h(headers).b(body);
|
|
44
|
+
return b.build();
|
|
66
45
|
};
|
|
67
46
|
export const se_GetTransactionCommand = async (input, context) => {
|
|
68
|
-
const
|
|
47
|
+
const b = rb(input, context);
|
|
69
48
|
const headers = {
|
|
70
49
|
"content-type": "application/json",
|
|
71
50
|
};
|
|
72
|
-
|
|
51
|
+
b.bp("/get-transaction");
|
|
73
52
|
let body;
|
|
74
53
|
body = JSON.stringify(take(input, {
|
|
75
54
|
network: [],
|
|
76
55
|
transactionHash: [],
|
|
77
56
|
}));
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
hostname,
|
|
81
|
-
port,
|
|
82
|
-
method: "POST",
|
|
83
|
-
headers,
|
|
84
|
-
path: resolvedPath,
|
|
85
|
-
body,
|
|
86
|
-
});
|
|
57
|
+
b.m("POST").h(headers).b(body);
|
|
58
|
+
return b.build();
|
|
87
59
|
};
|
|
88
60
|
export const se_ListAssetContractsCommand = async (input, context) => {
|
|
89
|
-
const
|
|
61
|
+
const b = rb(input, context);
|
|
90
62
|
const headers = {
|
|
91
63
|
"content-type": "application/json",
|
|
92
64
|
};
|
|
93
|
-
|
|
65
|
+
b.bp("/list-asset-contracts");
|
|
94
66
|
let body;
|
|
95
67
|
body = JSON.stringify(take(input, {
|
|
96
68
|
contractFilter: (_) => _json(_),
|
|
97
69
|
maxResults: [],
|
|
98
70
|
nextToken: [],
|
|
99
71
|
}));
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
hostname,
|
|
103
|
-
port,
|
|
104
|
-
method: "POST",
|
|
105
|
-
headers,
|
|
106
|
-
path: resolvedPath,
|
|
107
|
-
body,
|
|
108
|
-
});
|
|
72
|
+
b.m("POST").h(headers).b(body);
|
|
73
|
+
return b.build();
|
|
109
74
|
};
|
|
110
75
|
export const se_ListTokenBalancesCommand = async (input, context) => {
|
|
111
|
-
const
|
|
76
|
+
const b = rb(input, context);
|
|
112
77
|
const headers = {
|
|
113
78
|
"content-type": "application/json",
|
|
114
79
|
};
|
|
115
|
-
|
|
80
|
+
b.bp("/list-token-balances");
|
|
116
81
|
let body;
|
|
117
82
|
body = JSON.stringify(take(input, {
|
|
118
83
|
maxResults: [],
|
|
@@ -120,22 +85,15 @@ export const se_ListTokenBalancesCommand = async (input, context) => {
|
|
|
120
85
|
ownerFilter: (_) => _json(_),
|
|
121
86
|
tokenFilter: (_) => _json(_),
|
|
122
87
|
}));
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
hostname,
|
|
126
|
-
port,
|
|
127
|
-
method: "POST",
|
|
128
|
-
headers,
|
|
129
|
-
path: resolvedPath,
|
|
130
|
-
body,
|
|
131
|
-
});
|
|
88
|
+
b.m("POST").h(headers).b(body);
|
|
89
|
+
return b.build();
|
|
132
90
|
};
|
|
133
91
|
export const se_ListTransactionEventsCommand = async (input, context) => {
|
|
134
|
-
const
|
|
92
|
+
const b = rb(input, context);
|
|
135
93
|
const headers = {
|
|
136
94
|
"content-type": "application/json",
|
|
137
95
|
};
|
|
138
|
-
|
|
96
|
+
b.bp("/list-transaction-events");
|
|
139
97
|
let body;
|
|
140
98
|
body = JSON.stringify(take(input, {
|
|
141
99
|
maxResults: [],
|
|
@@ -143,22 +101,15 @@ export const se_ListTransactionEventsCommand = async (input, context) => {
|
|
|
143
101
|
nextToken: [],
|
|
144
102
|
transactionHash: [],
|
|
145
103
|
}));
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
hostname,
|
|
149
|
-
port,
|
|
150
|
-
method: "POST",
|
|
151
|
-
headers,
|
|
152
|
-
path: resolvedPath,
|
|
153
|
-
body,
|
|
154
|
-
});
|
|
104
|
+
b.m("POST").h(headers).b(body);
|
|
105
|
+
return b.build();
|
|
155
106
|
};
|
|
156
107
|
export const se_ListTransactionsCommand = async (input, context) => {
|
|
157
|
-
const
|
|
108
|
+
const b = rb(input, context);
|
|
158
109
|
const headers = {
|
|
159
110
|
"content-type": "application/json",
|
|
160
111
|
};
|
|
161
|
-
|
|
112
|
+
b.bp("/list-transactions");
|
|
162
113
|
let body;
|
|
163
114
|
body = JSON.stringify(take(input, {
|
|
164
115
|
address: [],
|
|
@@ -169,15 +120,8 @@ export const se_ListTransactionsCommand = async (input, context) => {
|
|
|
169
120
|
sort: (_) => _json(_),
|
|
170
121
|
toBlockchainInstant: (_) => se_BlockchainInstant(_, context),
|
|
171
122
|
}));
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
hostname,
|
|
175
|
-
port,
|
|
176
|
-
method: "POST",
|
|
177
|
-
headers,
|
|
178
|
-
path: resolvedPath,
|
|
179
|
-
body,
|
|
180
|
-
});
|
|
123
|
+
b.m("POST").h(headers).b(body);
|
|
124
|
+
return b.build();
|
|
181
125
|
};
|
|
182
126
|
export const de_BatchGetTokenBalanceCommand = async (output, context) => {
|
|
183
127
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -579,10 +523,7 @@ const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
|
579
523
|
};
|
|
580
524
|
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
581
525
|
const contents = map({
|
|
582
|
-
|
|
583
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
584
|
-
() => __strictParseInt32(parsedOutput.headers["retry-after"]),
|
|
585
|
-
],
|
|
526
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
586
527
|
});
|
|
587
528
|
const data = parsedOutput.body;
|
|
588
529
|
const doc = take(data, {
|
|
@@ -629,10 +570,7 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
629
570
|
};
|
|
630
571
|
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
631
572
|
const contents = map({
|
|
632
|
-
|
|
633
|
-
() => void 0 !== parsedOutput.headers["retry-after"],
|
|
634
|
-
() => __strictParseInt32(parsedOutput.headers["retry-after"]),
|
|
635
|
-
],
|
|
573
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => __strictParseInt32(parsedOutput.headers[_ra])],
|
|
636
574
|
});
|
|
637
575
|
const data = parsedOutput.body;
|
|
638
576
|
const doc = take(data, {
|
|
@@ -788,6 +726,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
788
726
|
value !== "" &&
|
|
789
727
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
790
728
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
729
|
+
const _rAS = "retryAfterSeconds";
|
|
730
|
+
const _ra = "retry-after";
|
|
791
731
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
792
732
|
if (encoded.length) {
|
|
793
733
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-managedblockchain-query",
|
|
3
3
|
"description": "AWS SDK for JavaScript Managedblockchain Query Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.477.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,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|