@aws-sdk/client-forecast 3.309.0 → 3.312.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/protocols/Aws_json1_1.js +69 -252
- package/dist-es/protocols/Aws_json1_1.js +69 -252
- package/package.json +35 -35
|
@@ -8,630 +8,441 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
8
8
|
const ForecastServiceException_1 = require("../models/ForecastServiceException");
|
|
9
9
|
const models_0_1 = require("../models/models_0");
|
|
10
10
|
const se_CreateAutoPredictorCommand = async (input, context) => {
|
|
11
|
-
const headers =
|
|
12
|
-
"content-type": "application/x-amz-json-1.1",
|
|
13
|
-
"x-amz-target": "AmazonForecast.CreateAutoPredictor",
|
|
14
|
-
};
|
|
11
|
+
const headers = sharedHeaders("CreateAutoPredictor");
|
|
15
12
|
let body;
|
|
16
13
|
body = JSON.stringify(se_CreateAutoPredictorRequest(input, context));
|
|
17
14
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
15
|
};
|
|
19
16
|
exports.se_CreateAutoPredictorCommand = se_CreateAutoPredictorCommand;
|
|
20
17
|
const se_CreateDatasetCommand = async (input, context) => {
|
|
21
|
-
const headers =
|
|
22
|
-
"content-type": "application/x-amz-json-1.1",
|
|
23
|
-
"x-amz-target": "AmazonForecast.CreateDataset",
|
|
24
|
-
};
|
|
18
|
+
const headers = sharedHeaders("CreateDataset");
|
|
25
19
|
let body;
|
|
26
20
|
body = JSON.stringify(se_CreateDatasetRequest(input, context));
|
|
27
21
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
22
|
};
|
|
29
23
|
exports.se_CreateDatasetCommand = se_CreateDatasetCommand;
|
|
30
24
|
const se_CreateDatasetGroupCommand = async (input, context) => {
|
|
31
|
-
const headers =
|
|
32
|
-
"content-type": "application/x-amz-json-1.1",
|
|
33
|
-
"x-amz-target": "AmazonForecast.CreateDatasetGroup",
|
|
34
|
-
};
|
|
25
|
+
const headers = sharedHeaders("CreateDatasetGroup");
|
|
35
26
|
let body;
|
|
36
27
|
body = JSON.stringify(se_CreateDatasetGroupRequest(input, context));
|
|
37
28
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
38
29
|
};
|
|
39
30
|
exports.se_CreateDatasetGroupCommand = se_CreateDatasetGroupCommand;
|
|
40
31
|
const se_CreateDatasetImportJobCommand = async (input, context) => {
|
|
41
|
-
const headers =
|
|
42
|
-
"content-type": "application/x-amz-json-1.1",
|
|
43
|
-
"x-amz-target": "AmazonForecast.CreateDatasetImportJob",
|
|
44
|
-
};
|
|
32
|
+
const headers = sharedHeaders("CreateDatasetImportJob");
|
|
45
33
|
let body;
|
|
46
34
|
body = JSON.stringify(se_CreateDatasetImportJobRequest(input, context));
|
|
47
35
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
36
|
};
|
|
49
37
|
exports.se_CreateDatasetImportJobCommand = se_CreateDatasetImportJobCommand;
|
|
50
38
|
const se_CreateExplainabilityCommand = async (input, context) => {
|
|
51
|
-
const headers =
|
|
52
|
-
"content-type": "application/x-amz-json-1.1",
|
|
53
|
-
"x-amz-target": "AmazonForecast.CreateExplainability",
|
|
54
|
-
};
|
|
39
|
+
const headers = sharedHeaders("CreateExplainability");
|
|
55
40
|
let body;
|
|
56
41
|
body = JSON.stringify(se_CreateExplainabilityRequest(input, context));
|
|
57
42
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
58
43
|
};
|
|
59
44
|
exports.se_CreateExplainabilityCommand = se_CreateExplainabilityCommand;
|
|
60
45
|
const se_CreateExplainabilityExportCommand = async (input, context) => {
|
|
61
|
-
const headers =
|
|
62
|
-
"content-type": "application/x-amz-json-1.1",
|
|
63
|
-
"x-amz-target": "AmazonForecast.CreateExplainabilityExport",
|
|
64
|
-
};
|
|
46
|
+
const headers = sharedHeaders("CreateExplainabilityExport");
|
|
65
47
|
let body;
|
|
66
48
|
body = JSON.stringify(se_CreateExplainabilityExportRequest(input, context));
|
|
67
49
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
68
50
|
};
|
|
69
51
|
exports.se_CreateExplainabilityExportCommand = se_CreateExplainabilityExportCommand;
|
|
70
52
|
const se_CreateForecastCommand = async (input, context) => {
|
|
71
|
-
const headers =
|
|
72
|
-
"content-type": "application/x-amz-json-1.1",
|
|
73
|
-
"x-amz-target": "AmazonForecast.CreateForecast",
|
|
74
|
-
};
|
|
53
|
+
const headers = sharedHeaders("CreateForecast");
|
|
75
54
|
let body;
|
|
76
55
|
body = JSON.stringify(se_CreateForecastRequest(input, context));
|
|
77
56
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
57
|
};
|
|
79
58
|
exports.se_CreateForecastCommand = se_CreateForecastCommand;
|
|
80
59
|
const se_CreateForecastExportJobCommand = async (input, context) => {
|
|
81
|
-
const headers =
|
|
82
|
-
"content-type": "application/x-amz-json-1.1",
|
|
83
|
-
"x-amz-target": "AmazonForecast.CreateForecastExportJob",
|
|
84
|
-
};
|
|
60
|
+
const headers = sharedHeaders("CreateForecastExportJob");
|
|
85
61
|
let body;
|
|
86
62
|
body = JSON.stringify(se_CreateForecastExportJobRequest(input, context));
|
|
87
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
64
|
};
|
|
89
65
|
exports.se_CreateForecastExportJobCommand = se_CreateForecastExportJobCommand;
|
|
90
66
|
const se_CreateMonitorCommand = async (input, context) => {
|
|
91
|
-
const headers =
|
|
92
|
-
"content-type": "application/x-amz-json-1.1",
|
|
93
|
-
"x-amz-target": "AmazonForecast.CreateMonitor",
|
|
94
|
-
};
|
|
67
|
+
const headers = sharedHeaders("CreateMonitor");
|
|
95
68
|
let body;
|
|
96
69
|
body = JSON.stringify(se_CreateMonitorRequest(input, context));
|
|
97
70
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
98
71
|
};
|
|
99
72
|
exports.se_CreateMonitorCommand = se_CreateMonitorCommand;
|
|
100
73
|
const se_CreatePredictorCommand = async (input, context) => {
|
|
101
|
-
const headers =
|
|
102
|
-
"content-type": "application/x-amz-json-1.1",
|
|
103
|
-
"x-amz-target": "AmazonForecast.CreatePredictor",
|
|
104
|
-
};
|
|
74
|
+
const headers = sharedHeaders("CreatePredictor");
|
|
105
75
|
let body;
|
|
106
76
|
body = JSON.stringify(se_CreatePredictorRequest(input, context));
|
|
107
77
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
78
|
};
|
|
109
79
|
exports.se_CreatePredictorCommand = se_CreatePredictorCommand;
|
|
110
80
|
const se_CreatePredictorBacktestExportJobCommand = async (input, context) => {
|
|
111
|
-
const headers =
|
|
112
|
-
"content-type": "application/x-amz-json-1.1",
|
|
113
|
-
"x-amz-target": "AmazonForecast.CreatePredictorBacktestExportJob",
|
|
114
|
-
};
|
|
81
|
+
const headers = sharedHeaders("CreatePredictorBacktestExportJob");
|
|
115
82
|
let body;
|
|
116
83
|
body = JSON.stringify(se_CreatePredictorBacktestExportJobRequest(input, context));
|
|
117
84
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
85
|
};
|
|
119
86
|
exports.se_CreatePredictorBacktestExportJobCommand = se_CreatePredictorBacktestExportJobCommand;
|
|
120
87
|
const se_CreateWhatIfAnalysisCommand = async (input, context) => {
|
|
121
|
-
const headers =
|
|
122
|
-
"content-type": "application/x-amz-json-1.1",
|
|
123
|
-
"x-amz-target": "AmazonForecast.CreateWhatIfAnalysis",
|
|
124
|
-
};
|
|
88
|
+
const headers = sharedHeaders("CreateWhatIfAnalysis");
|
|
125
89
|
let body;
|
|
126
90
|
body = JSON.stringify(se_CreateWhatIfAnalysisRequest(input, context));
|
|
127
91
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
128
92
|
};
|
|
129
93
|
exports.se_CreateWhatIfAnalysisCommand = se_CreateWhatIfAnalysisCommand;
|
|
130
94
|
const se_CreateWhatIfForecastCommand = async (input, context) => {
|
|
131
|
-
const headers =
|
|
132
|
-
"content-type": "application/x-amz-json-1.1",
|
|
133
|
-
"x-amz-target": "AmazonForecast.CreateWhatIfForecast",
|
|
134
|
-
};
|
|
95
|
+
const headers = sharedHeaders("CreateWhatIfForecast");
|
|
135
96
|
let body;
|
|
136
97
|
body = JSON.stringify(se_CreateWhatIfForecastRequest(input, context));
|
|
137
98
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
99
|
};
|
|
139
100
|
exports.se_CreateWhatIfForecastCommand = se_CreateWhatIfForecastCommand;
|
|
140
101
|
const se_CreateWhatIfForecastExportCommand = async (input, context) => {
|
|
141
|
-
const headers =
|
|
142
|
-
"content-type": "application/x-amz-json-1.1",
|
|
143
|
-
"x-amz-target": "AmazonForecast.CreateWhatIfForecastExport",
|
|
144
|
-
};
|
|
102
|
+
const headers = sharedHeaders("CreateWhatIfForecastExport");
|
|
145
103
|
let body;
|
|
146
104
|
body = JSON.stringify(se_CreateWhatIfForecastExportRequest(input, context));
|
|
147
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
106
|
};
|
|
149
107
|
exports.se_CreateWhatIfForecastExportCommand = se_CreateWhatIfForecastExportCommand;
|
|
150
108
|
const se_DeleteDatasetCommand = async (input, context) => {
|
|
151
|
-
const headers =
|
|
152
|
-
"content-type": "application/x-amz-json-1.1",
|
|
153
|
-
"x-amz-target": "AmazonForecast.DeleteDataset",
|
|
154
|
-
};
|
|
109
|
+
const headers = sharedHeaders("DeleteDataset");
|
|
155
110
|
let body;
|
|
156
111
|
body = JSON.stringify(se_DeleteDatasetRequest(input, context));
|
|
157
112
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
158
113
|
};
|
|
159
114
|
exports.se_DeleteDatasetCommand = se_DeleteDatasetCommand;
|
|
160
115
|
const se_DeleteDatasetGroupCommand = async (input, context) => {
|
|
161
|
-
const headers =
|
|
162
|
-
"content-type": "application/x-amz-json-1.1",
|
|
163
|
-
"x-amz-target": "AmazonForecast.DeleteDatasetGroup",
|
|
164
|
-
};
|
|
116
|
+
const headers = sharedHeaders("DeleteDatasetGroup");
|
|
165
117
|
let body;
|
|
166
118
|
body = JSON.stringify(se_DeleteDatasetGroupRequest(input, context));
|
|
167
119
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
120
|
};
|
|
169
121
|
exports.se_DeleteDatasetGroupCommand = se_DeleteDatasetGroupCommand;
|
|
170
122
|
const se_DeleteDatasetImportJobCommand = async (input, context) => {
|
|
171
|
-
const headers =
|
|
172
|
-
"content-type": "application/x-amz-json-1.1",
|
|
173
|
-
"x-amz-target": "AmazonForecast.DeleteDatasetImportJob",
|
|
174
|
-
};
|
|
123
|
+
const headers = sharedHeaders("DeleteDatasetImportJob");
|
|
175
124
|
let body;
|
|
176
125
|
body = JSON.stringify(se_DeleteDatasetImportJobRequest(input, context));
|
|
177
126
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
178
127
|
};
|
|
179
128
|
exports.se_DeleteDatasetImportJobCommand = se_DeleteDatasetImportJobCommand;
|
|
180
129
|
const se_DeleteExplainabilityCommand = async (input, context) => {
|
|
181
|
-
const headers =
|
|
182
|
-
"content-type": "application/x-amz-json-1.1",
|
|
183
|
-
"x-amz-target": "AmazonForecast.DeleteExplainability",
|
|
184
|
-
};
|
|
130
|
+
const headers = sharedHeaders("DeleteExplainability");
|
|
185
131
|
let body;
|
|
186
132
|
body = JSON.stringify(se_DeleteExplainabilityRequest(input, context));
|
|
187
133
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
188
134
|
};
|
|
189
135
|
exports.se_DeleteExplainabilityCommand = se_DeleteExplainabilityCommand;
|
|
190
136
|
const se_DeleteExplainabilityExportCommand = async (input, context) => {
|
|
191
|
-
const headers =
|
|
192
|
-
"content-type": "application/x-amz-json-1.1",
|
|
193
|
-
"x-amz-target": "AmazonForecast.DeleteExplainabilityExport",
|
|
194
|
-
};
|
|
137
|
+
const headers = sharedHeaders("DeleteExplainabilityExport");
|
|
195
138
|
let body;
|
|
196
139
|
body = JSON.stringify(se_DeleteExplainabilityExportRequest(input, context));
|
|
197
140
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
198
141
|
};
|
|
199
142
|
exports.se_DeleteExplainabilityExportCommand = se_DeleteExplainabilityExportCommand;
|
|
200
143
|
const se_DeleteForecastCommand = async (input, context) => {
|
|
201
|
-
const headers =
|
|
202
|
-
"content-type": "application/x-amz-json-1.1",
|
|
203
|
-
"x-amz-target": "AmazonForecast.DeleteForecast",
|
|
204
|
-
};
|
|
144
|
+
const headers = sharedHeaders("DeleteForecast");
|
|
205
145
|
let body;
|
|
206
146
|
body = JSON.stringify(se_DeleteForecastRequest(input, context));
|
|
207
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
208
148
|
};
|
|
209
149
|
exports.se_DeleteForecastCommand = se_DeleteForecastCommand;
|
|
210
150
|
const se_DeleteForecastExportJobCommand = async (input, context) => {
|
|
211
|
-
const headers =
|
|
212
|
-
"content-type": "application/x-amz-json-1.1",
|
|
213
|
-
"x-amz-target": "AmazonForecast.DeleteForecastExportJob",
|
|
214
|
-
};
|
|
151
|
+
const headers = sharedHeaders("DeleteForecastExportJob");
|
|
215
152
|
let body;
|
|
216
153
|
body = JSON.stringify(se_DeleteForecastExportJobRequest(input, context));
|
|
217
154
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
218
155
|
};
|
|
219
156
|
exports.se_DeleteForecastExportJobCommand = se_DeleteForecastExportJobCommand;
|
|
220
157
|
const se_DeleteMonitorCommand = async (input, context) => {
|
|
221
|
-
const headers =
|
|
222
|
-
"content-type": "application/x-amz-json-1.1",
|
|
223
|
-
"x-amz-target": "AmazonForecast.DeleteMonitor",
|
|
224
|
-
};
|
|
158
|
+
const headers = sharedHeaders("DeleteMonitor");
|
|
225
159
|
let body;
|
|
226
160
|
body = JSON.stringify(se_DeleteMonitorRequest(input, context));
|
|
227
161
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
228
162
|
};
|
|
229
163
|
exports.se_DeleteMonitorCommand = se_DeleteMonitorCommand;
|
|
230
164
|
const se_DeletePredictorCommand = async (input, context) => {
|
|
231
|
-
const headers =
|
|
232
|
-
"content-type": "application/x-amz-json-1.1",
|
|
233
|
-
"x-amz-target": "AmazonForecast.DeletePredictor",
|
|
234
|
-
};
|
|
165
|
+
const headers = sharedHeaders("DeletePredictor");
|
|
235
166
|
let body;
|
|
236
167
|
body = JSON.stringify(se_DeletePredictorRequest(input, context));
|
|
237
168
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
169
|
};
|
|
239
170
|
exports.se_DeletePredictorCommand = se_DeletePredictorCommand;
|
|
240
171
|
const se_DeletePredictorBacktestExportJobCommand = async (input, context) => {
|
|
241
|
-
const headers =
|
|
242
|
-
"content-type": "application/x-amz-json-1.1",
|
|
243
|
-
"x-amz-target": "AmazonForecast.DeletePredictorBacktestExportJob",
|
|
244
|
-
};
|
|
172
|
+
const headers = sharedHeaders("DeletePredictorBacktestExportJob");
|
|
245
173
|
let body;
|
|
246
174
|
body = JSON.stringify(se_DeletePredictorBacktestExportJobRequest(input, context));
|
|
247
175
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
248
176
|
};
|
|
249
177
|
exports.se_DeletePredictorBacktestExportJobCommand = se_DeletePredictorBacktestExportJobCommand;
|
|
250
178
|
const se_DeleteResourceTreeCommand = async (input, context) => {
|
|
251
|
-
const headers =
|
|
252
|
-
"content-type": "application/x-amz-json-1.1",
|
|
253
|
-
"x-amz-target": "AmazonForecast.DeleteResourceTree",
|
|
254
|
-
};
|
|
179
|
+
const headers = sharedHeaders("DeleteResourceTree");
|
|
255
180
|
let body;
|
|
256
181
|
body = JSON.stringify(se_DeleteResourceTreeRequest(input, context));
|
|
257
182
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
258
183
|
};
|
|
259
184
|
exports.se_DeleteResourceTreeCommand = se_DeleteResourceTreeCommand;
|
|
260
185
|
const se_DeleteWhatIfAnalysisCommand = async (input, context) => {
|
|
261
|
-
const headers =
|
|
262
|
-
"content-type": "application/x-amz-json-1.1",
|
|
263
|
-
"x-amz-target": "AmazonForecast.DeleteWhatIfAnalysis",
|
|
264
|
-
};
|
|
186
|
+
const headers = sharedHeaders("DeleteWhatIfAnalysis");
|
|
265
187
|
let body;
|
|
266
188
|
body = JSON.stringify(se_DeleteWhatIfAnalysisRequest(input, context));
|
|
267
189
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
268
190
|
};
|
|
269
191
|
exports.se_DeleteWhatIfAnalysisCommand = se_DeleteWhatIfAnalysisCommand;
|
|
270
192
|
const se_DeleteWhatIfForecastCommand = async (input, context) => {
|
|
271
|
-
const headers =
|
|
272
|
-
"content-type": "application/x-amz-json-1.1",
|
|
273
|
-
"x-amz-target": "AmazonForecast.DeleteWhatIfForecast",
|
|
274
|
-
};
|
|
193
|
+
const headers = sharedHeaders("DeleteWhatIfForecast");
|
|
275
194
|
let body;
|
|
276
195
|
body = JSON.stringify(se_DeleteWhatIfForecastRequest(input, context));
|
|
277
196
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
278
197
|
};
|
|
279
198
|
exports.se_DeleteWhatIfForecastCommand = se_DeleteWhatIfForecastCommand;
|
|
280
199
|
const se_DeleteWhatIfForecastExportCommand = async (input, context) => {
|
|
281
|
-
const headers =
|
|
282
|
-
"content-type": "application/x-amz-json-1.1",
|
|
283
|
-
"x-amz-target": "AmazonForecast.DeleteWhatIfForecastExport",
|
|
284
|
-
};
|
|
200
|
+
const headers = sharedHeaders("DeleteWhatIfForecastExport");
|
|
285
201
|
let body;
|
|
286
202
|
body = JSON.stringify(se_DeleteWhatIfForecastExportRequest(input, context));
|
|
287
203
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
288
204
|
};
|
|
289
205
|
exports.se_DeleteWhatIfForecastExportCommand = se_DeleteWhatIfForecastExportCommand;
|
|
290
206
|
const se_DescribeAutoPredictorCommand = async (input, context) => {
|
|
291
|
-
const headers =
|
|
292
|
-
"content-type": "application/x-amz-json-1.1",
|
|
293
|
-
"x-amz-target": "AmazonForecast.DescribeAutoPredictor",
|
|
294
|
-
};
|
|
207
|
+
const headers = sharedHeaders("DescribeAutoPredictor");
|
|
295
208
|
let body;
|
|
296
209
|
body = JSON.stringify(se_DescribeAutoPredictorRequest(input, context));
|
|
297
210
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
298
211
|
};
|
|
299
212
|
exports.se_DescribeAutoPredictorCommand = se_DescribeAutoPredictorCommand;
|
|
300
213
|
const se_DescribeDatasetCommand = async (input, context) => {
|
|
301
|
-
const headers =
|
|
302
|
-
"content-type": "application/x-amz-json-1.1",
|
|
303
|
-
"x-amz-target": "AmazonForecast.DescribeDataset",
|
|
304
|
-
};
|
|
214
|
+
const headers = sharedHeaders("DescribeDataset");
|
|
305
215
|
let body;
|
|
306
216
|
body = JSON.stringify(se_DescribeDatasetRequest(input, context));
|
|
307
217
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
308
218
|
};
|
|
309
219
|
exports.se_DescribeDatasetCommand = se_DescribeDatasetCommand;
|
|
310
220
|
const se_DescribeDatasetGroupCommand = async (input, context) => {
|
|
311
|
-
const headers =
|
|
312
|
-
"content-type": "application/x-amz-json-1.1",
|
|
313
|
-
"x-amz-target": "AmazonForecast.DescribeDatasetGroup",
|
|
314
|
-
};
|
|
221
|
+
const headers = sharedHeaders("DescribeDatasetGroup");
|
|
315
222
|
let body;
|
|
316
223
|
body = JSON.stringify(se_DescribeDatasetGroupRequest(input, context));
|
|
317
224
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
318
225
|
};
|
|
319
226
|
exports.se_DescribeDatasetGroupCommand = se_DescribeDatasetGroupCommand;
|
|
320
227
|
const se_DescribeDatasetImportJobCommand = async (input, context) => {
|
|
321
|
-
const headers =
|
|
322
|
-
"content-type": "application/x-amz-json-1.1",
|
|
323
|
-
"x-amz-target": "AmazonForecast.DescribeDatasetImportJob",
|
|
324
|
-
};
|
|
228
|
+
const headers = sharedHeaders("DescribeDatasetImportJob");
|
|
325
229
|
let body;
|
|
326
230
|
body = JSON.stringify(se_DescribeDatasetImportJobRequest(input, context));
|
|
327
231
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
328
232
|
};
|
|
329
233
|
exports.se_DescribeDatasetImportJobCommand = se_DescribeDatasetImportJobCommand;
|
|
330
234
|
const se_DescribeExplainabilityCommand = async (input, context) => {
|
|
331
|
-
const headers =
|
|
332
|
-
"content-type": "application/x-amz-json-1.1",
|
|
333
|
-
"x-amz-target": "AmazonForecast.DescribeExplainability",
|
|
334
|
-
};
|
|
235
|
+
const headers = sharedHeaders("DescribeExplainability");
|
|
335
236
|
let body;
|
|
336
237
|
body = JSON.stringify(se_DescribeExplainabilityRequest(input, context));
|
|
337
238
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
338
239
|
};
|
|
339
240
|
exports.se_DescribeExplainabilityCommand = se_DescribeExplainabilityCommand;
|
|
340
241
|
const se_DescribeExplainabilityExportCommand = async (input, context) => {
|
|
341
|
-
const headers =
|
|
342
|
-
"content-type": "application/x-amz-json-1.1",
|
|
343
|
-
"x-amz-target": "AmazonForecast.DescribeExplainabilityExport",
|
|
344
|
-
};
|
|
242
|
+
const headers = sharedHeaders("DescribeExplainabilityExport");
|
|
345
243
|
let body;
|
|
346
244
|
body = JSON.stringify(se_DescribeExplainabilityExportRequest(input, context));
|
|
347
245
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
348
246
|
};
|
|
349
247
|
exports.se_DescribeExplainabilityExportCommand = se_DescribeExplainabilityExportCommand;
|
|
350
248
|
const se_DescribeForecastCommand = async (input, context) => {
|
|
351
|
-
const headers =
|
|
352
|
-
"content-type": "application/x-amz-json-1.1",
|
|
353
|
-
"x-amz-target": "AmazonForecast.DescribeForecast",
|
|
354
|
-
};
|
|
249
|
+
const headers = sharedHeaders("DescribeForecast");
|
|
355
250
|
let body;
|
|
356
251
|
body = JSON.stringify(se_DescribeForecastRequest(input, context));
|
|
357
252
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
358
253
|
};
|
|
359
254
|
exports.se_DescribeForecastCommand = se_DescribeForecastCommand;
|
|
360
255
|
const se_DescribeForecastExportJobCommand = async (input, context) => {
|
|
361
|
-
const headers =
|
|
362
|
-
"content-type": "application/x-amz-json-1.1",
|
|
363
|
-
"x-amz-target": "AmazonForecast.DescribeForecastExportJob",
|
|
364
|
-
};
|
|
256
|
+
const headers = sharedHeaders("DescribeForecastExportJob");
|
|
365
257
|
let body;
|
|
366
258
|
body = JSON.stringify(se_DescribeForecastExportJobRequest(input, context));
|
|
367
259
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
368
260
|
};
|
|
369
261
|
exports.se_DescribeForecastExportJobCommand = se_DescribeForecastExportJobCommand;
|
|
370
262
|
const se_DescribeMonitorCommand = async (input, context) => {
|
|
371
|
-
const headers =
|
|
372
|
-
"content-type": "application/x-amz-json-1.1",
|
|
373
|
-
"x-amz-target": "AmazonForecast.DescribeMonitor",
|
|
374
|
-
};
|
|
263
|
+
const headers = sharedHeaders("DescribeMonitor");
|
|
375
264
|
let body;
|
|
376
265
|
body = JSON.stringify(se_DescribeMonitorRequest(input, context));
|
|
377
266
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
378
267
|
};
|
|
379
268
|
exports.se_DescribeMonitorCommand = se_DescribeMonitorCommand;
|
|
380
269
|
const se_DescribePredictorCommand = async (input, context) => {
|
|
381
|
-
const headers =
|
|
382
|
-
"content-type": "application/x-amz-json-1.1",
|
|
383
|
-
"x-amz-target": "AmazonForecast.DescribePredictor",
|
|
384
|
-
};
|
|
270
|
+
const headers = sharedHeaders("DescribePredictor");
|
|
385
271
|
let body;
|
|
386
272
|
body = JSON.stringify(se_DescribePredictorRequest(input, context));
|
|
387
273
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
388
274
|
};
|
|
389
275
|
exports.se_DescribePredictorCommand = se_DescribePredictorCommand;
|
|
390
276
|
const se_DescribePredictorBacktestExportJobCommand = async (input, context) => {
|
|
391
|
-
const headers =
|
|
392
|
-
"content-type": "application/x-amz-json-1.1",
|
|
393
|
-
"x-amz-target": "AmazonForecast.DescribePredictorBacktestExportJob",
|
|
394
|
-
};
|
|
277
|
+
const headers = sharedHeaders("DescribePredictorBacktestExportJob");
|
|
395
278
|
let body;
|
|
396
279
|
body = JSON.stringify(se_DescribePredictorBacktestExportJobRequest(input, context));
|
|
397
280
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
398
281
|
};
|
|
399
282
|
exports.se_DescribePredictorBacktestExportJobCommand = se_DescribePredictorBacktestExportJobCommand;
|
|
400
283
|
const se_DescribeWhatIfAnalysisCommand = async (input, context) => {
|
|
401
|
-
const headers =
|
|
402
|
-
"content-type": "application/x-amz-json-1.1",
|
|
403
|
-
"x-amz-target": "AmazonForecast.DescribeWhatIfAnalysis",
|
|
404
|
-
};
|
|
284
|
+
const headers = sharedHeaders("DescribeWhatIfAnalysis");
|
|
405
285
|
let body;
|
|
406
286
|
body = JSON.stringify(se_DescribeWhatIfAnalysisRequest(input, context));
|
|
407
287
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
408
288
|
};
|
|
409
289
|
exports.se_DescribeWhatIfAnalysisCommand = se_DescribeWhatIfAnalysisCommand;
|
|
410
290
|
const se_DescribeWhatIfForecastCommand = async (input, context) => {
|
|
411
|
-
const headers =
|
|
412
|
-
"content-type": "application/x-amz-json-1.1",
|
|
413
|
-
"x-amz-target": "AmazonForecast.DescribeWhatIfForecast",
|
|
414
|
-
};
|
|
291
|
+
const headers = sharedHeaders("DescribeWhatIfForecast");
|
|
415
292
|
let body;
|
|
416
293
|
body = JSON.stringify(se_DescribeWhatIfForecastRequest(input, context));
|
|
417
294
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
418
295
|
};
|
|
419
296
|
exports.se_DescribeWhatIfForecastCommand = se_DescribeWhatIfForecastCommand;
|
|
420
297
|
const se_DescribeWhatIfForecastExportCommand = async (input, context) => {
|
|
421
|
-
const headers =
|
|
422
|
-
"content-type": "application/x-amz-json-1.1",
|
|
423
|
-
"x-amz-target": "AmazonForecast.DescribeWhatIfForecastExport",
|
|
424
|
-
};
|
|
298
|
+
const headers = sharedHeaders("DescribeWhatIfForecastExport");
|
|
425
299
|
let body;
|
|
426
300
|
body = JSON.stringify(se_DescribeWhatIfForecastExportRequest(input, context));
|
|
427
301
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
428
302
|
};
|
|
429
303
|
exports.se_DescribeWhatIfForecastExportCommand = se_DescribeWhatIfForecastExportCommand;
|
|
430
304
|
const se_GetAccuracyMetricsCommand = async (input, context) => {
|
|
431
|
-
const headers =
|
|
432
|
-
"content-type": "application/x-amz-json-1.1",
|
|
433
|
-
"x-amz-target": "AmazonForecast.GetAccuracyMetrics",
|
|
434
|
-
};
|
|
305
|
+
const headers = sharedHeaders("GetAccuracyMetrics");
|
|
435
306
|
let body;
|
|
436
307
|
body = JSON.stringify(se_GetAccuracyMetricsRequest(input, context));
|
|
437
308
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
438
309
|
};
|
|
439
310
|
exports.se_GetAccuracyMetricsCommand = se_GetAccuracyMetricsCommand;
|
|
440
311
|
const se_ListDatasetGroupsCommand = async (input, context) => {
|
|
441
|
-
const headers =
|
|
442
|
-
"content-type": "application/x-amz-json-1.1",
|
|
443
|
-
"x-amz-target": "AmazonForecast.ListDatasetGroups",
|
|
444
|
-
};
|
|
312
|
+
const headers = sharedHeaders("ListDatasetGroups");
|
|
445
313
|
let body;
|
|
446
314
|
body = JSON.stringify(se_ListDatasetGroupsRequest(input, context));
|
|
447
315
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
448
316
|
};
|
|
449
317
|
exports.se_ListDatasetGroupsCommand = se_ListDatasetGroupsCommand;
|
|
450
318
|
const se_ListDatasetImportJobsCommand = async (input, context) => {
|
|
451
|
-
const headers =
|
|
452
|
-
"content-type": "application/x-amz-json-1.1",
|
|
453
|
-
"x-amz-target": "AmazonForecast.ListDatasetImportJobs",
|
|
454
|
-
};
|
|
319
|
+
const headers = sharedHeaders("ListDatasetImportJobs");
|
|
455
320
|
let body;
|
|
456
321
|
body = JSON.stringify(se_ListDatasetImportJobsRequest(input, context));
|
|
457
322
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
458
323
|
};
|
|
459
324
|
exports.se_ListDatasetImportJobsCommand = se_ListDatasetImportJobsCommand;
|
|
460
325
|
const se_ListDatasetsCommand = async (input, context) => {
|
|
461
|
-
const headers =
|
|
462
|
-
"content-type": "application/x-amz-json-1.1",
|
|
463
|
-
"x-amz-target": "AmazonForecast.ListDatasets",
|
|
464
|
-
};
|
|
326
|
+
const headers = sharedHeaders("ListDatasets");
|
|
465
327
|
let body;
|
|
466
328
|
body = JSON.stringify(se_ListDatasetsRequest(input, context));
|
|
467
329
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
468
330
|
};
|
|
469
331
|
exports.se_ListDatasetsCommand = se_ListDatasetsCommand;
|
|
470
332
|
const se_ListExplainabilitiesCommand = async (input, context) => {
|
|
471
|
-
const headers =
|
|
472
|
-
"content-type": "application/x-amz-json-1.1",
|
|
473
|
-
"x-amz-target": "AmazonForecast.ListExplainabilities",
|
|
474
|
-
};
|
|
333
|
+
const headers = sharedHeaders("ListExplainabilities");
|
|
475
334
|
let body;
|
|
476
335
|
body = JSON.stringify(se_ListExplainabilitiesRequest(input, context));
|
|
477
336
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
478
337
|
};
|
|
479
338
|
exports.se_ListExplainabilitiesCommand = se_ListExplainabilitiesCommand;
|
|
480
339
|
const se_ListExplainabilityExportsCommand = async (input, context) => {
|
|
481
|
-
const headers =
|
|
482
|
-
"content-type": "application/x-amz-json-1.1",
|
|
483
|
-
"x-amz-target": "AmazonForecast.ListExplainabilityExports",
|
|
484
|
-
};
|
|
340
|
+
const headers = sharedHeaders("ListExplainabilityExports");
|
|
485
341
|
let body;
|
|
486
342
|
body = JSON.stringify(se_ListExplainabilityExportsRequest(input, context));
|
|
487
343
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
488
344
|
};
|
|
489
345
|
exports.se_ListExplainabilityExportsCommand = se_ListExplainabilityExportsCommand;
|
|
490
346
|
const se_ListForecastExportJobsCommand = async (input, context) => {
|
|
491
|
-
const headers =
|
|
492
|
-
"content-type": "application/x-amz-json-1.1",
|
|
493
|
-
"x-amz-target": "AmazonForecast.ListForecastExportJobs",
|
|
494
|
-
};
|
|
347
|
+
const headers = sharedHeaders("ListForecastExportJobs");
|
|
495
348
|
let body;
|
|
496
349
|
body = JSON.stringify(se_ListForecastExportJobsRequest(input, context));
|
|
497
350
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
498
351
|
};
|
|
499
352
|
exports.se_ListForecastExportJobsCommand = se_ListForecastExportJobsCommand;
|
|
500
353
|
const se_ListForecastsCommand = async (input, context) => {
|
|
501
|
-
const headers =
|
|
502
|
-
"content-type": "application/x-amz-json-1.1",
|
|
503
|
-
"x-amz-target": "AmazonForecast.ListForecasts",
|
|
504
|
-
};
|
|
354
|
+
const headers = sharedHeaders("ListForecasts");
|
|
505
355
|
let body;
|
|
506
356
|
body = JSON.stringify(se_ListForecastsRequest(input, context));
|
|
507
357
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
508
358
|
};
|
|
509
359
|
exports.se_ListForecastsCommand = se_ListForecastsCommand;
|
|
510
360
|
const se_ListMonitorEvaluationsCommand = async (input, context) => {
|
|
511
|
-
const headers =
|
|
512
|
-
"content-type": "application/x-amz-json-1.1",
|
|
513
|
-
"x-amz-target": "AmazonForecast.ListMonitorEvaluations",
|
|
514
|
-
};
|
|
361
|
+
const headers = sharedHeaders("ListMonitorEvaluations");
|
|
515
362
|
let body;
|
|
516
363
|
body = JSON.stringify(se_ListMonitorEvaluationsRequest(input, context));
|
|
517
364
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
518
365
|
};
|
|
519
366
|
exports.se_ListMonitorEvaluationsCommand = se_ListMonitorEvaluationsCommand;
|
|
520
367
|
const se_ListMonitorsCommand = async (input, context) => {
|
|
521
|
-
const headers =
|
|
522
|
-
"content-type": "application/x-amz-json-1.1",
|
|
523
|
-
"x-amz-target": "AmazonForecast.ListMonitors",
|
|
524
|
-
};
|
|
368
|
+
const headers = sharedHeaders("ListMonitors");
|
|
525
369
|
let body;
|
|
526
370
|
body = JSON.stringify(se_ListMonitorsRequest(input, context));
|
|
527
371
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
528
372
|
};
|
|
529
373
|
exports.se_ListMonitorsCommand = se_ListMonitorsCommand;
|
|
530
374
|
const se_ListPredictorBacktestExportJobsCommand = async (input, context) => {
|
|
531
|
-
const headers =
|
|
532
|
-
"content-type": "application/x-amz-json-1.1",
|
|
533
|
-
"x-amz-target": "AmazonForecast.ListPredictorBacktestExportJobs",
|
|
534
|
-
};
|
|
375
|
+
const headers = sharedHeaders("ListPredictorBacktestExportJobs");
|
|
535
376
|
let body;
|
|
536
377
|
body = JSON.stringify(se_ListPredictorBacktestExportJobsRequest(input, context));
|
|
537
378
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
538
379
|
};
|
|
539
380
|
exports.se_ListPredictorBacktestExportJobsCommand = se_ListPredictorBacktestExportJobsCommand;
|
|
540
381
|
const se_ListPredictorsCommand = async (input, context) => {
|
|
541
|
-
const headers =
|
|
542
|
-
"content-type": "application/x-amz-json-1.1",
|
|
543
|
-
"x-amz-target": "AmazonForecast.ListPredictors",
|
|
544
|
-
};
|
|
382
|
+
const headers = sharedHeaders("ListPredictors");
|
|
545
383
|
let body;
|
|
546
384
|
body = JSON.stringify(se_ListPredictorsRequest(input, context));
|
|
547
385
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
548
386
|
};
|
|
549
387
|
exports.se_ListPredictorsCommand = se_ListPredictorsCommand;
|
|
550
388
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
551
|
-
const headers =
|
|
552
|
-
"content-type": "application/x-amz-json-1.1",
|
|
553
|
-
"x-amz-target": "AmazonForecast.ListTagsForResource",
|
|
554
|
-
};
|
|
389
|
+
const headers = sharedHeaders("ListTagsForResource");
|
|
555
390
|
let body;
|
|
556
391
|
body = JSON.stringify(se_ListTagsForResourceRequest(input, context));
|
|
557
392
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
558
393
|
};
|
|
559
394
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
560
395
|
const se_ListWhatIfAnalysesCommand = async (input, context) => {
|
|
561
|
-
const headers =
|
|
562
|
-
"content-type": "application/x-amz-json-1.1",
|
|
563
|
-
"x-amz-target": "AmazonForecast.ListWhatIfAnalyses",
|
|
564
|
-
};
|
|
396
|
+
const headers = sharedHeaders("ListWhatIfAnalyses");
|
|
565
397
|
let body;
|
|
566
398
|
body = JSON.stringify(se_ListWhatIfAnalysesRequest(input, context));
|
|
567
399
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
568
400
|
};
|
|
569
401
|
exports.se_ListWhatIfAnalysesCommand = se_ListWhatIfAnalysesCommand;
|
|
570
402
|
const se_ListWhatIfForecastExportsCommand = async (input, context) => {
|
|
571
|
-
const headers =
|
|
572
|
-
"content-type": "application/x-amz-json-1.1",
|
|
573
|
-
"x-amz-target": "AmazonForecast.ListWhatIfForecastExports",
|
|
574
|
-
};
|
|
403
|
+
const headers = sharedHeaders("ListWhatIfForecastExports");
|
|
575
404
|
let body;
|
|
576
405
|
body = JSON.stringify(se_ListWhatIfForecastExportsRequest(input, context));
|
|
577
406
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
578
407
|
};
|
|
579
408
|
exports.se_ListWhatIfForecastExportsCommand = se_ListWhatIfForecastExportsCommand;
|
|
580
409
|
const se_ListWhatIfForecastsCommand = async (input, context) => {
|
|
581
|
-
const headers =
|
|
582
|
-
"content-type": "application/x-amz-json-1.1",
|
|
583
|
-
"x-amz-target": "AmazonForecast.ListWhatIfForecasts",
|
|
584
|
-
};
|
|
410
|
+
const headers = sharedHeaders("ListWhatIfForecasts");
|
|
585
411
|
let body;
|
|
586
412
|
body = JSON.stringify(se_ListWhatIfForecastsRequest(input, context));
|
|
587
413
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
588
414
|
};
|
|
589
415
|
exports.se_ListWhatIfForecastsCommand = se_ListWhatIfForecastsCommand;
|
|
590
416
|
const se_ResumeResourceCommand = async (input, context) => {
|
|
591
|
-
const headers =
|
|
592
|
-
"content-type": "application/x-amz-json-1.1",
|
|
593
|
-
"x-amz-target": "AmazonForecast.ResumeResource",
|
|
594
|
-
};
|
|
417
|
+
const headers = sharedHeaders("ResumeResource");
|
|
595
418
|
let body;
|
|
596
419
|
body = JSON.stringify(se_ResumeResourceRequest(input, context));
|
|
597
420
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
598
421
|
};
|
|
599
422
|
exports.se_ResumeResourceCommand = se_ResumeResourceCommand;
|
|
600
423
|
const se_StopResourceCommand = async (input, context) => {
|
|
601
|
-
const headers =
|
|
602
|
-
"content-type": "application/x-amz-json-1.1",
|
|
603
|
-
"x-amz-target": "AmazonForecast.StopResource",
|
|
604
|
-
};
|
|
424
|
+
const headers = sharedHeaders("StopResource");
|
|
605
425
|
let body;
|
|
606
426
|
body = JSON.stringify(se_StopResourceRequest(input, context));
|
|
607
427
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
608
428
|
};
|
|
609
429
|
exports.se_StopResourceCommand = se_StopResourceCommand;
|
|
610
430
|
const se_TagResourceCommand = async (input, context) => {
|
|
611
|
-
const headers =
|
|
612
|
-
"content-type": "application/x-amz-json-1.1",
|
|
613
|
-
"x-amz-target": "AmazonForecast.TagResource",
|
|
614
|
-
};
|
|
431
|
+
const headers = sharedHeaders("TagResource");
|
|
615
432
|
let body;
|
|
616
433
|
body = JSON.stringify(se_TagResourceRequest(input, context));
|
|
617
434
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
618
435
|
};
|
|
619
436
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
620
437
|
const se_UntagResourceCommand = async (input, context) => {
|
|
621
|
-
const headers =
|
|
622
|
-
"content-type": "application/x-amz-json-1.1",
|
|
623
|
-
"x-amz-target": "AmazonForecast.UntagResource",
|
|
624
|
-
};
|
|
438
|
+
const headers = sharedHeaders("UntagResource");
|
|
625
439
|
let body;
|
|
626
440
|
body = JSON.stringify(se_UntagResourceRequest(input, context));
|
|
627
441
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
628
442
|
};
|
|
629
443
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
630
444
|
const se_UpdateDatasetGroupCommand = async (input, context) => {
|
|
631
|
-
const headers =
|
|
632
|
-
"content-type": "application/x-amz-json-1.1",
|
|
633
|
-
"x-amz-target": "AmazonForecast.UpdateDatasetGroup",
|
|
634
|
-
};
|
|
445
|
+
const headers = sharedHeaders("UpdateDatasetGroup");
|
|
635
446
|
let body;
|
|
636
447
|
body = JSON.stringify(se_UpdateDatasetGroupRequest(input, context));
|
|
637
448
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
@@ -5572,6 +5383,12 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
5572
5383
|
}
|
|
5573
5384
|
return new protocol_http_1.HttpRequest(contents);
|
|
5574
5385
|
};
|
|
5386
|
+
function sharedHeaders(operation) {
|
|
5387
|
+
return {
|
|
5388
|
+
"content-type": "application/x-amz-json-1.1",
|
|
5389
|
+
"x-amz-target": `AmazonForecast.${operation}`,
|
|
5390
|
+
};
|
|
5391
|
+
}
|
|
5575
5392
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
5576
5393
|
if (encoded.length) {
|
|
5577
5394
|
return JSON.parse(encoded);
|