@aws-sdk/client-b2bi 3.926.0 → 3.928.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/index.js +1363 -1315
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/B2biClient.js +2 -0
- package/dist-es/commands/CreateCapabilityCommand.js +3 -9
- package/dist-es/commands/CreatePartnershipCommand.js +3 -10
- package/dist-es/commands/CreateProfileCommand.js +3 -10
- package/dist-es/commands/CreateStarterMappingTemplateCommand.js +3 -9
- package/dist-es/commands/CreateTransformerCommand.js +3 -9
- package/dist-es/commands/DeleteCapabilityCommand.js +3 -9
- package/dist-es/commands/DeletePartnershipCommand.js +3 -9
- package/dist-es/commands/DeleteProfileCommand.js +3 -9
- package/dist-es/commands/DeleteTransformerCommand.js +3 -9
- package/dist-es/commands/GenerateMappingCommand.js +3 -9
- package/dist-es/commands/GetCapabilityCommand.js +3 -9
- package/dist-es/commands/GetPartnershipCommand.js +3 -10
- package/dist-es/commands/GetProfileCommand.js +3 -10
- package/dist-es/commands/GetTransformerCommand.js +3 -9
- package/dist-es/commands/GetTransformerJobCommand.js +3 -9
- package/dist-es/commands/ListCapabilitiesCommand.js +3 -9
- package/dist-es/commands/ListPartnershipsCommand.js +3 -9
- package/dist-es/commands/ListProfilesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListTransformersCommand.js +3 -9
- package/dist-es/commands/StartTransformerJobCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/TestConversionCommand.js +3 -9
- package/dist-es/commands/TestMappingCommand.js +3 -9
- package/dist-es/commands/TestParsingCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateCapabilityCommand.js +3 -9
- package/dist-es/commands/UpdatePartnershipCommand.js +3 -10
- package/dist-es/commands/UpdateProfileCommand.js +3 -10
- package/dist-es/commands/UpdateTransformerCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -50
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +1285 -0
- package/dist-types/B2biClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -36
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +152 -0
- package/dist-types/ts3.4/B2biClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -27
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +158 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_json1_0.js +0 -1030
- package/dist-types/protocols/Aws_json1_0.d.ts +0 -272
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -365
|
@@ -1,1030 +0,0 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { B2biServiceException as __BaseException } from "../models/B2biServiceException";
|
|
6
|
-
import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_CreateCapabilityCommand = async (input, context) => {
|
|
8
|
-
const headers = sharedHeaders("CreateCapability");
|
|
9
|
-
let body;
|
|
10
|
-
body = JSON.stringify(se_CreateCapabilityRequest(input, context));
|
|
11
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
12
|
-
};
|
|
13
|
-
export const se_CreatePartnershipCommand = async (input, context) => {
|
|
14
|
-
const headers = sharedHeaders("CreatePartnership");
|
|
15
|
-
let body;
|
|
16
|
-
body = JSON.stringify(se_CreatePartnershipRequest(input, context));
|
|
17
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
18
|
-
};
|
|
19
|
-
export const se_CreateProfileCommand = async (input, context) => {
|
|
20
|
-
const headers = sharedHeaders("CreateProfile");
|
|
21
|
-
let body;
|
|
22
|
-
body = JSON.stringify(se_CreateProfileRequest(input, context));
|
|
23
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
24
|
-
};
|
|
25
|
-
export const se_CreateStarterMappingTemplateCommand = async (input, context) => {
|
|
26
|
-
const headers = sharedHeaders("CreateStarterMappingTemplate");
|
|
27
|
-
let body;
|
|
28
|
-
body = JSON.stringify(_json(input));
|
|
29
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
30
|
-
};
|
|
31
|
-
export const se_CreateTransformerCommand = async (input, context) => {
|
|
32
|
-
const headers = sharedHeaders("CreateTransformer");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify(se_CreateTransformerRequest(input, context));
|
|
35
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
36
|
-
};
|
|
37
|
-
export const se_DeleteCapabilityCommand = async (input, context) => {
|
|
38
|
-
const headers = sharedHeaders("DeleteCapability");
|
|
39
|
-
let body;
|
|
40
|
-
body = JSON.stringify(_json(input));
|
|
41
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
42
|
-
};
|
|
43
|
-
export const se_DeletePartnershipCommand = async (input, context) => {
|
|
44
|
-
const headers = sharedHeaders("DeletePartnership");
|
|
45
|
-
let body;
|
|
46
|
-
body = JSON.stringify(_json(input));
|
|
47
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
48
|
-
};
|
|
49
|
-
export const se_DeleteProfileCommand = async (input, context) => {
|
|
50
|
-
const headers = sharedHeaders("DeleteProfile");
|
|
51
|
-
let body;
|
|
52
|
-
body = JSON.stringify(_json(input));
|
|
53
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
54
|
-
};
|
|
55
|
-
export const se_DeleteTransformerCommand = async (input, context) => {
|
|
56
|
-
const headers = sharedHeaders("DeleteTransformer");
|
|
57
|
-
let body;
|
|
58
|
-
body = JSON.stringify(_json(input));
|
|
59
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
60
|
-
};
|
|
61
|
-
export const se_GenerateMappingCommand = async (input, context) => {
|
|
62
|
-
const headers = sharedHeaders("GenerateMapping");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify(_json(input));
|
|
65
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
66
|
-
};
|
|
67
|
-
export const se_GetCapabilityCommand = async (input, context) => {
|
|
68
|
-
const headers = sharedHeaders("GetCapability");
|
|
69
|
-
let body;
|
|
70
|
-
body = JSON.stringify(_json(input));
|
|
71
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
72
|
-
};
|
|
73
|
-
export const se_GetPartnershipCommand = async (input, context) => {
|
|
74
|
-
const headers = sharedHeaders("GetPartnership");
|
|
75
|
-
let body;
|
|
76
|
-
body = JSON.stringify(_json(input));
|
|
77
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
78
|
-
};
|
|
79
|
-
export const se_GetProfileCommand = async (input, context) => {
|
|
80
|
-
const headers = sharedHeaders("GetProfile");
|
|
81
|
-
let body;
|
|
82
|
-
body = JSON.stringify(_json(input));
|
|
83
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
84
|
-
};
|
|
85
|
-
export const se_GetTransformerCommand = async (input, context) => {
|
|
86
|
-
const headers = sharedHeaders("GetTransformer");
|
|
87
|
-
let body;
|
|
88
|
-
body = JSON.stringify(_json(input));
|
|
89
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
90
|
-
};
|
|
91
|
-
export const se_GetTransformerJobCommand = async (input, context) => {
|
|
92
|
-
const headers = sharedHeaders("GetTransformerJob");
|
|
93
|
-
let body;
|
|
94
|
-
body = JSON.stringify(_json(input));
|
|
95
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
96
|
-
};
|
|
97
|
-
export const se_ListCapabilitiesCommand = async (input, context) => {
|
|
98
|
-
const headers = sharedHeaders("ListCapabilities");
|
|
99
|
-
let body;
|
|
100
|
-
body = JSON.stringify(_json(input));
|
|
101
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
102
|
-
};
|
|
103
|
-
export const se_ListPartnershipsCommand = async (input, context) => {
|
|
104
|
-
const headers = sharedHeaders("ListPartnerships");
|
|
105
|
-
let body;
|
|
106
|
-
body = JSON.stringify(_json(input));
|
|
107
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
108
|
-
};
|
|
109
|
-
export const se_ListProfilesCommand = async (input, context) => {
|
|
110
|
-
const headers = sharedHeaders("ListProfiles");
|
|
111
|
-
let body;
|
|
112
|
-
body = JSON.stringify(_json(input));
|
|
113
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
114
|
-
};
|
|
115
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
116
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
117
|
-
let body;
|
|
118
|
-
body = JSON.stringify(_json(input));
|
|
119
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
120
|
-
};
|
|
121
|
-
export const se_ListTransformersCommand = async (input, context) => {
|
|
122
|
-
const headers = sharedHeaders("ListTransformers");
|
|
123
|
-
let body;
|
|
124
|
-
body = JSON.stringify(_json(input));
|
|
125
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
126
|
-
};
|
|
127
|
-
export const se_StartTransformerJobCommand = async (input, context) => {
|
|
128
|
-
const headers = sharedHeaders("StartTransformerJob");
|
|
129
|
-
let body;
|
|
130
|
-
body = JSON.stringify(se_StartTransformerJobRequest(input, context));
|
|
131
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
132
|
-
};
|
|
133
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
134
|
-
const headers = sharedHeaders("TagResource");
|
|
135
|
-
let body;
|
|
136
|
-
body = JSON.stringify(_json(input));
|
|
137
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
138
|
-
};
|
|
139
|
-
export const se_TestConversionCommand = async (input, context) => {
|
|
140
|
-
const headers = sharedHeaders("TestConversion");
|
|
141
|
-
let body;
|
|
142
|
-
body = JSON.stringify(_json(input));
|
|
143
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
144
|
-
};
|
|
145
|
-
export const se_TestMappingCommand = async (input, context) => {
|
|
146
|
-
const headers = sharedHeaders("TestMapping");
|
|
147
|
-
let body;
|
|
148
|
-
body = JSON.stringify(_json(input));
|
|
149
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
150
|
-
};
|
|
151
|
-
export const se_TestParsingCommand = async (input, context) => {
|
|
152
|
-
const headers = sharedHeaders("TestParsing");
|
|
153
|
-
let body;
|
|
154
|
-
body = JSON.stringify(_json(input));
|
|
155
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
156
|
-
};
|
|
157
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
158
|
-
const headers = sharedHeaders("UntagResource");
|
|
159
|
-
let body;
|
|
160
|
-
body = JSON.stringify(_json(input));
|
|
161
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
162
|
-
};
|
|
163
|
-
export const se_UpdateCapabilityCommand = async (input, context) => {
|
|
164
|
-
const headers = sharedHeaders("UpdateCapability");
|
|
165
|
-
let body;
|
|
166
|
-
body = JSON.stringify(_json(input));
|
|
167
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
168
|
-
};
|
|
169
|
-
export const se_UpdatePartnershipCommand = async (input, context) => {
|
|
170
|
-
const headers = sharedHeaders("UpdatePartnership");
|
|
171
|
-
let body;
|
|
172
|
-
body = JSON.stringify(_json(input));
|
|
173
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
174
|
-
};
|
|
175
|
-
export const se_UpdateProfileCommand = async (input, context) => {
|
|
176
|
-
const headers = sharedHeaders("UpdateProfile");
|
|
177
|
-
let body;
|
|
178
|
-
body = JSON.stringify(_json(input));
|
|
179
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
180
|
-
};
|
|
181
|
-
export const se_UpdateTransformerCommand = async (input, context) => {
|
|
182
|
-
const headers = sharedHeaders("UpdateTransformer");
|
|
183
|
-
let body;
|
|
184
|
-
body = JSON.stringify(_json(input));
|
|
185
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
186
|
-
};
|
|
187
|
-
export const de_CreateCapabilityCommand = async (output, context) => {
|
|
188
|
-
if (output.statusCode >= 300) {
|
|
189
|
-
return de_CommandError(output, context);
|
|
190
|
-
}
|
|
191
|
-
const data = await parseBody(output.body, context);
|
|
192
|
-
let contents = {};
|
|
193
|
-
contents = de_CreateCapabilityResponse(data, context);
|
|
194
|
-
const response = {
|
|
195
|
-
$metadata: deserializeMetadata(output),
|
|
196
|
-
...contents,
|
|
197
|
-
};
|
|
198
|
-
return response;
|
|
199
|
-
};
|
|
200
|
-
export const de_CreatePartnershipCommand = async (output, context) => {
|
|
201
|
-
if (output.statusCode >= 300) {
|
|
202
|
-
return de_CommandError(output, context);
|
|
203
|
-
}
|
|
204
|
-
const data = await parseBody(output.body, context);
|
|
205
|
-
let contents = {};
|
|
206
|
-
contents = de_CreatePartnershipResponse(data, context);
|
|
207
|
-
const response = {
|
|
208
|
-
$metadata: deserializeMetadata(output),
|
|
209
|
-
...contents,
|
|
210
|
-
};
|
|
211
|
-
return response;
|
|
212
|
-
};
|
|
213
|
-
export const de_CreateProfileCommand = async (output, context) => {
|
|
214
|
-
if (output.statusCode >= 300) {
|
|
215
|
-
return de_CommandError(output, context);
|
|
216
|
-
}
|
|
217
|
-
const data = await parseBody(output.body, context);
|
|
218
|
-
let contents = {};
|
|
219
|
-
contents = de_CreateProfileResponse(data, context);
|
|
220
|
-
const response = {
|
|
221
|
-
$metadata: deserializeMetadata(output),
|
|
222
|
-
...contents,
|
|
223
|
-
};
|
|
224
|
-
return response;
|
|
225
|
-
};
|
|
226
|
-
export const de_CreateStarterMappingTemplateCommand = async (output, context) => {
|
|
227
|
-
if (output.statusCode >= 300) {
|
|
228
|
-
return de_CommandError(output, context);
|
|
229
|
-
}
|
|
230
|
-
const data = await parseBody(output.body, context);
|
|
231
|
-
let contents = {};
|
|
232
|
-
contents = _json(data);
|
|
233
|
-
const response = {
|
|
234
|
-
$metadata: deserializeMetadata(output),
|
|
235
|
-
...contents,
|
|
236
|
-
};
|
|
237
|
-
return response;
|
|
238
|
-
};
|
|
239
|
-
export const de_CreateTransformerCommand = async (output, context) => {
|
|
240
|
-
if (output.statusCode >= 300) {
|
|
241
|
-
return de_CommandError(output, context);
|
|
242
|
-
}
|
|
243
|
-
const data = await parseBody(output.body, context);
|
|
244
|
-
let contents = {};
|
|
245
|
-
contents = de_CreateTransformerResponse(data, context);
|
|
246
|
-
const response = {
|
|
247
|
-
$metadata: deserializeMetadata(output),
|
|
248
|
-
...contents,
|
|
249
|
-
};
|
|
250
|
-
return response;
|
|
251
|
-
};
|
|
252
|
-
export const de_DeleteCapabilityCommand = async (output, context) => {
|
|
253
|
-
if (output.statusCode >= 300) {
|
|
254
|
-
return de_CommandError(output, context);
|
|
255
|
-
}
|
|
256
|
-
await collectBody(output.body, context);
|
|
257
|
-
const response = {
|
|
258
|
-
$metadata: deserializeMetadata(output),
|
|
259
|
-
};
|
|
260
|
-
return response;
|
|
261
|
-
};
|
|
262
|
-
export const de_DeletePartnershipCommand = async (output, context) => {
|
|
263
|
-
if (output.statusCode >= 300) {
|
|
264
|
-
return de_CommandError(output, context);
|
|
265
|
-
}
|
|
266
|
-
await collectBody(output.body, context);
|
|
267
|
-
const response = {
|
|
268
|
-
$metadata: deserializeMetadata(output),
|
|
269
|
-
};
|
|
270
|
-
return response;
|
|
271
|
-
};
|
|
272
|
-
export const de_DeleteProfileCommand = async (output, context) => {
|
|
273
|
-
if (output.statusCode >= 300) {
|
|
274
|
-
return de_CommandError(output, context);
|
|
275
|
-
}
|
|
276
|
-
await collectBody(output.body, context);
|
|
277
|
-
const response = {
|
|
278
|
-
$metadata: deserializeMetadata(output),
|
|
279
|
-
};
|
|
280
|
-
return response;
|
|
281
|
-
};
|
|
282
|
-
export const de_DeleteTransformerCommand = async (output, context) => {
|
|
283
|
-
if (output.statusCode >= 300) {
|
|
284
|
-
return de_CommandError(output, context);
|
|
285
|
-
}
|
|
286
|
-
await collectBody(output.body, context);
|
|
287
|
-
const response = {
|
|
288
|
-
$metadata: deserializeMetadata(output),
|
|
289
|
-
};
|
|
290
|
-
return response;
|
|
291
|
-
};
|
|
292
|
-
export const de_GenerateMappingCommand = async (output, context) => {
|
|
293
|
-
if (output.statusCode >= 300) {
|
|
294
|
-
return de_CommandError(output, context);
|
|
295
|
-
}
|
|
296
|
-
const data = await parseBody(output.body, context);
|
|
297
|
-
let contents = {};
|
|
298
|
-
contents = de_GenerateMappingResponse(data, context);
|
|
299
|
-
const response = {
|
|
300
|
-
$metadata: deserializeMetadata(output),
|
|
301
|
-
...contents,
|
|
302
|
-
};
|
|
303
|
-
return response;
|
|
304
|
-
};
|
|
305
|
-
export const de_GetCapabilityCommand = async (output, context) => {
|
|
306
|
-
if (output.statusCode >= 300) {
|
|
307
|
-
return de_CommandError(output, context);
|
|
308
|
-
}
|
|
309
|
-
const data = await parseBody(output.body, context);
|
|
310
|
-
let contents = {};
|
|
311
|
-
contents = de_GetCapabilityResponse(data, context);
|
|
312
|
-
const response = {
|
|
313
|
-
$metadata: deserializeMetadata(output),
|
|
314
|
-
...contents,
|
|
315
|
-
};
|
|
316
|
-
return response;
|
|
317
|
-
};
|
|
318
|
-
export const de_GetPartnershipCommand = async (output, context) => {
|
|
319
|
-
if (output.statusCode >= 300) {
|
|
320
|
-
return de_CommandError(output, context);
|
|
321
|
-
}
|
|
322
|
-
const data = await parseBody(output.body, context);
|
|
323
|
-
let contents = {};
|
|
324
|
-
contents = de_GetPartnershipResponse(data, context);
|
|
325
|
-
const response = {
|
|
326
|
-
$metadata: deserializeMetadata(output),
|
|
327
|
-
...contents,
|
|
328
|
-
};
|
|
329
|
-
return response;
|
|
330
|
-
};
|
|
331
|
-
export const de_GetProfileCommand = async (output, context) => {
|
|
332
|
-
if (output.statusCode >= 300) {
|
|
333
|
-
return de_CommandError(output, context);
|
|
334
|
-
}
|
|
335
|
-
const data = await parseBody(output.body, context);
|
|
336
|
-
let contents = {};
|
|
337
|
-
contents = de_GetProfileResponse(data, context);
|
|
338
|
-
const response = {
|
|
339
|
-
$metadata: deserializeMetadata(output),
|
|
340
|
-
...contents,
|
|
341
|
-
};
|
|
342
|
-
return response;
|
|
343
|
-
};
|
|
344
|
-
export const de_GetTransformerCommand = async (output, context) => {
|
|
345
|
-
if (output.statusCode >= 300) {
|
|
346
|
-
return de_CommandError(output, context);
|
|
347
|
-
}
|
|
348
|
-
const data = await parseBody(output.body, context);
|
|
349
|
-
let contents = {};
|
|
350
|
-
contents = de_GetTransformerResponse(data, context);
|
|
351
|
-
const response = {
|
|
352
|
-
$metadata: deserializeMetadata(output),
|
|
353
|
-
...contents,
|
|
354
|
-
};
|
|
355
|
-
return response;
|
|
356
|
-
};
|
|
357
|
-
export const de_GetTransformerJobCommand = async (output, context) => {
|
|
358
|
-
if (output.statusCode >= 300) {
|
|
359
|
-
return de_CommandError(output, context);
|
|
360
|
-
}
|
|
361
|
-
const data = await parseBody(output.body, context);
|
|
362
|
-
let contents = {};
|
|
363
|
-
contents = _json(data);
|
|
364
|
-
const response = {
|
|
365
|
-
$metadata: deserializeMetadata(output),
|
|
366
|
-
...contents,
|
|
367
|
-
};
|
|
368
|
-
return response;
|
|
369
|
-
};
|
|
370
|
-
export const de_ListCapabilitiesCommand = async (output, context) => {
|
|
371
|
-
if (output.statusCode >= 300) {
|
|
372
|
-
return de_CommandError(output, context);
|
|
373
|
-
}
|
|
374
|
-
const data = await parseBody(output.body, context);
|
|
375
|
-
let contents = {};
|
|
376
|
-
contents = de_ListCapabilitiesResponse(data, context);
|
|
377
|
-
const response = {
|
|
378
|
-
$metadata: deserializeMetadata(output),
|
|
379
|
-
...contents,
|
|
380
|
-
};
|
|
381
|
-
return response;
|
|
382
|
-
};
|
|
383
|
-
export const de_ListPartnershipsCommand = async (output, context) => {
|
|
384
|
-
if (output.statusCode >= 300) {
|
|
385
|
-
return de_CommandError(output, context);
|
|
386
|
-
}
|
|
387
|
-
const data = await parseBody(output.body, context);
|
|
388
|
-
let contents = {};
|
|
389
|
-
contents = de_ListPartnershipsResponse(data, context);
|
|
390
|
-
const response = {
|
|
391
|
-
$metadata: deserializeMetadata(output),
|
|
392
|
-
...contents,
|
|
393
|
-
};
|
|
394
|
-
return response;
|
|
395
|
-
};
|
|
396
|
-
export const de_ListProfilesCommand = async (output, context) => {
|
|
397
|
-
if (output.statusCode >= 300) {
|
|
398
|
-
return de_CommandError(output, context);
|
|
399
|
-
}
|
|
400
|
-
const data = await parseBody(output.body, context);
|
|
401
|
-
let contents = {};
|
|
402
|
-
contents = de_ListProfilesResponse(data, context);
|
|
403
|
-
const response = {
|
|
404
|
-
$metadata: deserializeMetadata(output),
|
|
405
|
-
...contents,
|
|
406
|
-
};
|
|
407
|
-
return response;
|
|
408
|
-
};
|
|
409
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
410
|
-
if (output.statusCode >= 300) {
|
|
411
|
-
return de_CommandError(output, context);
|
|
412
|
-
}
|
|
413
|
-
const data = await parseBody(output.body, context);
|
|
414
|
-
let contents = {};
|
|
415
|
-
contents = _json(data);
|
|
416
|
-
const response = {
|
|
417
|
-
$metadata: deserializeMetadata(output),
|
|
418
|
-
...contents,
|
|
419
|
-
};
|
|
420
|
-
return response;
|
|
421
|
-
};
|
|
422
|
-
export const de_ListTransformersCommand = async (output, context) => {
|
|
423
|
-
if (output.statusCode >= 300) {
|
|
424
|
-
return de_CommandError(output, context);
|
|
425
|
-
}
|
|
426
|
-
const data = await parseBody(output.body, context);
|
|
427
|
-
let contents = {};
|
|
428
|
-
contents = de_ListTransformersResponse(data, context);
|
|
429
|
-
const response = {
|
|
430
|
-
$metadata: deserializeMetadata(output),
|
|
431
|
-
...contents,
|
|
432
|
-
};
|
|
433
|
-
return response;
|
|
434
|
-
};
|
|
435
|
-
export const de_StartTransformerJobCommand = async (output, context) => {
|
|
436
|
-
if (output.statusCode >= 300) {
|
|
437
|
-
return de_CommandError(output, context);
|
|
438
|
-
}
|
|
439
|
-
const data = await parseBody(output.body, context);
|
|
440
|
-
let contents = {};
|
|
441
|
-
contents = _json(data);
|
|
442
|
-
const response = {
|
|
443
|
-
$metadata: deserializeMetadata(output),
|
|
444
|
-
...contents,
|
|
445
|
-
};
|
|
446
|
-
return response;
|
|
447
|
-
};
|
|
448
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
449
|
-
if (output.statusCode >= 300) {
|
|
450
|
-
return de_CommandError(output, context);
|
|
451
|
-
}
|
|
452
|
-
await collectBody(output.body, context);
|
|
453
|
-
const response = {
|
|
454
|
-
$metadata: deserializeMetadata(output),
|
|
455
|
-
};
|
|
456
|
-
return response;
|
|
457
|
-
};
|
|
458
|
-
export const de_TestConversionCommand = async (output, context) => {
|
|
459
|
-
if (output.statusCode >= 300) {
|
|
460
|
-
return de_CommandError(output, context);
|
|
461
|
-
}
|
|
462
|
-
const data = await parseBody(output.body, context);
|
|
463
|
-
let contents = {};
|
|
464
|
-
contents = _json(data);
|
|
465
|
-
const response = {
|
|
466
|
-
$metadata: deserializeMetadata(output),
|
|
467
|
-
...contents,
|
|
468
|
-
};
|
|
469
|
-
return response;
|
|
470
|
-
};
|
|
471
|
-
export const de_TestMappingCommand = async (output, context) => {
|
|
472
|
-
if (output.statusCode >= 300) {
|
|
473
|
-
return de_CommandError(output, context);
|
|
474
|
-
}
|
|
475
|
-
const data = await parseBody(output.body, context);
|
|
476
|
-
let contents = {};
|
|
477
|
-
contents = _json(data);
|
|
478
|
-
const response = {
|
|
479
|
-
$metadata: deserializeMetadata(output),
|
|
480
|
-
...contents,
|
|
481
|
-
};
|
|
482
|
-
return response;
|
|
483
|
-
};
|
|
484
|
-
export const de_TestParsingCommand = async (output, context) => {
|
|
485
|
-
if (output.statusCode >= 300) {
|
|
486
|
-
return de_CommandError(output, context);
|
|
487
|
-
}
|
|
488
|
-
const data = await parseBody(output.body, context);
|
|
489
|
-
let contents = {};
|
|
490
|
-
contents = _json(data);
|
|
491
|
-
const response = {
|
|
492
|
-
$metadata: deserializeMetadata(output),
|
|
493
|
-
...contents,
|
|
494
|
-
};
|
|
495
|
-
return response;
|
|
496
|
-
};
|
|
497
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
498
|
-
if (output.statusCode >= 300) {
|
|
499
|
-
return de_CommandError(output, context);
|
|
500
|
-
}
|
|
501
|
-
await collectBody(output.body, context);
|
|
502
|
-
const response = {
|
|
503
|
-
$metadata: deserializeMetadata(output),
|
|
504
|
-
};
|
|
505
|
-
return response;
|
|
506
|
-
};
|
|
507
|
-
export const de_UpdateCapabilityCommand = async (output, context) => {
|
|
508
|
-
if (output.statusCode >= 300) {
|
|
509
|
-
return de_CommandError(output, context);
|
|
510
|
-
}
|
|
511
|
-
const data = await parseBody(output.body, context);
|
|
512
|
-
let contents = {};
|
|
513
|
-
contents = de_UpdateCapabilityResponse(data, context);
|
|
514
|
-
const response = {
|
|
515
|
-
$metadata: deserializeMetadata(output),
|
|
516
|
-
...contents,
|
|
517
|
-
};
|
|
518
|
-
return response;
|
|
519
|
-
};
|
|
520
|
-
export const de_UpdatePartnershipCommand = async (output, context) => {
|
|
521
|
-
if (output.statusCode >= 300) {
|
|
522
|
-
return de_CommandError(output, context);
|
|
523
|
-
}
|
|
524
|
-
const data = await parseBody(output.body, context);
|
|
525
|
-
let contents = {};
|
|
526
|
-
contents = de_UpdatePartnershipResponse(data, context);
|
|
527
|
-
const response = {
|
|
528
|
-
$metadata: deserializeMetadata(output),
|
|
529
|
-
...contents,
|
|
530
|
-
};
|
|
531
|
-
return response;
|
|
532
|
-
};
|
|
533
|
-
export const de_UpdateProfileCommand = async (output, context) => {
|
|
534
|
-
if (output.statusCode >= 300) {
|
|
535
|
-
return de_CommandError(output, context);
|
|
536
|
-
}
|
|
537
|
-
const data = await parseBody(output.body, context);
|
|
538
|
-
let contents = {};
|
|
539
|
-
contents = de_UpdateProfileResponse(data, context);
|
|
540
|
-
const response = {
|
|
541
|
-
$metadata: deserializeMetadata(output),
|
|
542
|
-
...contents,
|
|
543
|
-
};
|
|
544
|
-
return response;
|
|
545
|
-
};
|
|
546
|
-
export const de_UpdateTransformerCommand = async (output, context) => {
|
|
547
|
-
if (output.statusCode >= 300) {
|
|
548
|
-
return de_CommandError(output, context);
|
|
549
|
-
}
|
|
550
|
-
const data = await parseBody(output.body, context);
|
|
551
|
-
let contents = {};
|
|
552
|
-
contents = de_UpdateTransformerResponse(data, context);
|
|
553
|
-
const response = {
|
|
554
|
-
$metadata: deserializeMetadata(output),
|
|
555
|
-
...contents,
|
|
556
|
-
};
|
|
557
|
-
return response;
|
|
558
|
-
};
|
|
559
|
-
const de_CommandError = async (output, context) => {
|
|
560
|
-
const parsedOutput = {
|
|
561
|
-
...output,
|
|
562
|
-
body: await parseErrorBody(output.body, context),
|
|
563
|
-
};
|
|
564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
565
|
-
switch (errorCode) {
|
|
566
|
-
case "AccessDeniedException":
|
|
567
|
-
case "com.amazonaws.b2bi#AccessDeniedException":
|
|
568
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
569
|
-
case "ConflictException":
|
|
570
|
-
case "com.amazonaws.b2bi#ConflictException":
|
|
571
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
572
|
-
case "InternalServerException":
|
|
573
|
-
case "com.amazonaws.b2bi#InternalServerException":
|
|
574
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
575
|
-
case "ResourceNotFoundException":
|
|
576
|
-
case "com.amazonaws.b2bi#ResourceNotFoundException":
|
|
577
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
578
|
-
case "ServiceQuotaExceededException":
|
|
579
|
-
case "com.amazonaws.b2bi#ServiceQuotaExceededException":
|
|
580
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
581
|
-
case "ThrottlingException":
|
|
582
|
-
case "com.amazonaws.b2bi#ThrottlingException":
|
|
583
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
584
|
-
case "ValidationException":
|
|
585
|
-
case "com.amazonaws.b2bi#ValidationException":
|
|
586
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
587
|
-
default:
|
|
588
|
-
const parsedBody = parsedOutput.body;
|
|
589
|
-
return throwDefaultError({
|
|
590
|
-
output,
|
|
591
|
-
parsedBody,
|
|
592
|
-
errorCode,
|
|
593
|
-
});
|
|
594
|
-
}
|
|
595
|
-
};
|
|
596
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
597
|
-
const body = parsedOutput.body;
|
|
598
|
-
const deserialized = _json(body);
|
|
599
|
-
const exception = new AccessDeniedException({
|
|
600
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
601
|
-
...deserialized,
|
|
602
|
-
});
|
|
603
|
-
return __decorateServiceException(exception, body);
|
|
604
|
-
};
|
|
605
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
606
|
-
const body = parsedOutput.body;
|
|
607
|
-
const deserialized = _json(body);
|
|
608
|
-
const exception = new ConflictException({
|
|
609
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
610
|
-
...deserialized,
|
|
611
|
-
});
|
|
612
|
-
return __decorateServiceException(exception, body);
|
|
613
|
-
};
|
|
614
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
615
|
-
const body = parsedOutput.body;
|
|
616
|
-
const deserialized = _json(body);
|
|
617
|
-
const exception = new InternalServerException({
|
|
618
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
619
|
-
...deserialized,
|
|
620
|
-
});
|
|
621
|
-
return __decorateServiceException(exception, body);
|
|
622
|
-
};
|
|
623
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
624
|
-
const body = parsedOutput.body;
|
|
625
|
-
const deserialized = _json(body);
|
|
626
|
-
const exception = new ResourceNotFoundException({
|
|
627
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
628
|
-
...deserialized,
|
|
629
|
-
});
|
|
630
|
-
return __decorateServiceException(exception, body);
|
|
631
|
-
};
|
|
632
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
633
|
-
const body = parsedOutput.body;
|
|
634
|
-
const deserialized = _json(body);
|
|
635
|
-
const exception = new ServiceQuotaExceededException({
|
|
636
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
637
|
-
...deserialized,
|
|
638
|
-
});
|
|
639
|
-
return __decorateServiceException(exception, body);
|
|
640
|
-
};
|
|
641
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
642
|
-
const body = parsedOutput.body;
|
|
643
|
-
const deserialized = _json(body);
|
|
644
|
-
const exception = new ThrottlingException({
|
|
645
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
646
|
-
...deserialized,
|
|
647
|
-
});
|
|
648
|
-
return __decorateServiceException(exception, body);
|
|
649
|
-
};
|
|
650
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
651
|
-
const body = parsedOutput.body;
|
|
652
|
-
const deserialized = _json(body);
|
|
653
|
-
const exception = new ValidationException({
|
|
654
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
655
|
-
...deserialized,
|
|
656
|
-
});
|
|
657
|
-
return __decorateServiceException(exception, body);
|
|
658
|
-
};
|
|
659
|
-
const se_CreateCapabilityRequest = (input, context) => {
|
|
660
|
-
return take(input, {
|
|
661
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
662
|
-
configuration: _json,
|
|
663
|
-
instructionsDocuments: _json,
|
|
664
|
-
name: [],
|
|
665
|
-
tags: _json,
|
|
666
|
-
type: [],
|
|
667
|
-
});
|
|
668
|
-
};
|
|
669
|
-
const se_CreatePartnershipRequest = (input, context) => {
|
|
670
|
-
return take(input, {
|
|
671
|
-
capabilities: _json,
|
|
672
|
-
capabilityOptions: _json,
|
|
673
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
674
|
-
email: [],
|
|
675
|
-
name: [],
|
|
676
|
-
phone: [],
|
|
677
|
-
profileId: [],
|
|
678
|
-
tags: _json,
|
|
679
|
-
});
|
|
680
|
-
};
|
|
681
|
-
const se_CreateProfileRequest = (input, context) => {
|
|
682
|
-
return take(input, {
|
|
683
|
-
businessName: [],
|
|
684
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
685
|
-
email: [],
|
|
686
|
-
logging: [],
|
|
687
|
-
name: [],
|
|
688
|
-
phone: [],
|
|
689
|
-
tags: _json,
|
|
690
|
-
});
|
|
691
|
-
};
|
|
692
|
-
const se_CreateTransformerRequest = (input, context) => {
|
|
693
|
-
return take(input, {
|
|
694
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
695
|
-
ediType: _json,
|
|
696
|
-
fileFormat: [],
|
|
697
|
-
inputConversion: _json,
|
|
698
|
-
mapping: _json,
|
|
699
|
-
mappingTemplate: [],
|
|
700
|
-
name: [],
|
|
701
|
-
outputConversion: _json,
|
|
702
|
-
sampleDocument: [],
|
|
703
|
-
sampleDocuments: _json,
|
|
704
|
-
tags: _json,
|
|
705
|
-
});
|
|
706
|
-
};
|
|
707
|
-
const se_StartTransformerJobRequest = (input, context) => {
|
|
708
|
-
return take(input, {
|
|
709
|
-
clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
710
|
-
inputFile: _json,
|
|
711
|
-
outputLocation: _json,
|
|
712
|
-
transformerId: [],
|
|
713
|
-
});
|
|
714
|
-
};
|
|
715
|
-
const de_CapabilityList = (output, context) => {
|
|
716
|
-
const retVal = (output || [])
|
|
717
|
-
.filter((e) => e != null)
|
|
718
|
-
.map((entry) => {
|
|
719
|
-
return de_CapabilitySummary(entry, context);
|
|
720
|
-
});
|
|
721
|
-
return retVal;
|
|
722
|
-
};
|
|
723
|
-
const de_CapabilitySummary = (output, context) => {
|
|
724
|
-
return take(output, {
|
|
725
|
-
capabilityId: __expectString,
|
|
726
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
727
|
-
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
728
|
-
name: __expectString,
|
|
729
|
-
type: __expectString,
|
|
730
|
-
});
|
|
731
|
-
};
|
|
732
|
-
const de_CreateCapabilityResponse = (output, context) => {
|
|
733
|
-
return take(output, {
|
|
734
|
-
capabilityArn: __expectString,
|
|
735
|
-
capabilityId: __expectString,
|
|
736
|
-
configuration: (_) => _json(__expectUnion(_)),
|
|
737
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
738
|
-
instructionsDocuments: _json,
|
|
739
|
-
name: __expectString,
|
|
740
|
-
type: __expectString,
|
|
741
|
-
});
|
|
742
|
-
};
|
|
743
|
-
const de_CreatePartnershipResponse = (output, context) => {
|
|
744
|
-
return take(output, {
|
|
745
|
-
capabilities: _json,
|
|
746
|
-
capabilityOptions: _json,
|
|
747
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
748
|
-
email: __expectString,
|
|
749
|
-
name: __expectString,
|
|
750
|
-
partnershipArn: __expectString,
|
|
751
|
-
partnershipId: __expectString,
|
|
752
|
-
phone: __expectString,
|
|
753
|
-
profileId: __expectString,
|
|
754
|
-
tradingPartnerId: __expectString,
|
|
755
|
-
});
|
|
756
|
-
};
|
|
757
|
-
const de_CreateProfileResponse = (output, context) => {
|
|
758
|
-
return take(output, {
|
|
759
|
-
businessName: __expectString,
|
|
760
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
761
|
-
email: __expectString,
|
|
762
|
-
logGroupName: __expectString,
|
|
763
|
-
logging: __expectString,
|
|
764
|
-
name: __expectString,
|
|
765
|
-
phone: __expectString,
|
|
766
|
-
profileArn: __expectString,
|
|
767
|
-
profileId: __expectString,
|
|
768
|
-
});
|
|
769
|
-
};
|
|
770
|
-
const de_CreateTransformerResponse = (output, context) => {
|
|
771
|
-
return take(output, {
|
|
772
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
773
|
-
ediType: (_) => _json(__expectUnion(_)),
|
|
774
|
-
fileFormat: __expectString,
|
|
775
|
-
inputConversion: _json,
|
|
776
|
-
mapping: _json,
|
|
777
|
-
mappingTemplate: __expectString,
|
|
778
|
-
name: __expectString,
|
|
779
|
-
outputConversion: _json,
|
|
780
|
-
sampleDocument: __expectString,
|
|
781
|
-
sampleDocuments: _json,
|
|
782
|
-
status: __expectString,
|
|
783
|
-
transformerArn: __expectString,
|
|
784
|
-
transformerId: __expectString,
|
|
785
|
-
});
|
|
786
|
-
};
|
|
787
|
-
const de_GenerateMappingResponse = (output, context) => {
|
|
788
|
-
return take(output, {
|
|
789
|
-
mappingAccuracy: __limitedParseFloat32,
|
|
790
|
-
mappingTemplate: __expectString,
|
|
791
|
-
});
|
|
792
|
-
};
|
|
793
|
-
const de_GetCapabilityResponse = (output, context) => {
|
|
794
|
-
return take(output, {
|
|
795
|
-
capabilityArn: __expectString,
|
|
796
|
-
capabilityId: __expectString,
|
|
797
|
-
configuration: (_) => _json(__expectUnion(_)),
|
|
798
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
799
|
-
instructionsDocuments: _json,
|
|
800
|
-
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
801
|
-
name: __expectString,
|
|
802
|
-
type: __expectString,
|
|
803
|
-
});
|
|
804
|
-
};
|
|
805
|
-
const de_GetPartnershipResponse = (output, context) => {
|
|
806
|
-
return take(output, {
|
|
807
|
-
capabilities: _json,
|
|
808
|
-
capabilityOptions: _json,
|
|
809
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
810
|
-
email: __expectString,
|
|
811
|
-
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
812
|
-
name: __expectString,
|
|
813
|
-
partnershipArn: __expectString,
|
|
814
|
-
partnershipId: __expectString,
|
|
815
|
-
phone: __expectString,
|
|
816
|
-
profileId: __expectString,
|
|
817
|
-
tradingPartnerId: __expectString,
|
|
818
|
-
});
|
|
819
|
-
};
|
|
820
|
-
const de_GetProfileResponse = (output, context) => {
|
|
821
|
-
return take(output, {
|
|
822
|
-
businessName: __expectString,
|
|
823
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
824
|
-
email: __expectString,
|
|
825
|
-
logGroupName: __expectString,
|
|
826
|
-
logging: __expectString,
|
|
827
|
-
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
828
|
-
name: __expectString,
|
|
829
|
-
phone: __expectString,
|
|
830
|
-
profileArn: __expectString,
|
|
831
|
-
profileId: __expectString,
|
|
832
|
-
});
|
|
833
|
-
};
|
|
834
|
-
const de_GetTransformerResponse = (output, context) => {
|
|
835
|
-
return take(output, {
|
|
836
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
837
|
-
ediType: (_) => _json(__expectUnion(_)),
|
|
838
|
-
fileFormat: __expectString,
|
|
839
|
-
inputConversion: _json,
|
|
840
|
-
mapping: _json,
|
|
841
|
-
mappingTemplate: __expectString,
|
|
842
|
-
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
843
|
-
name: __expectString,
|
|
844
|
-
outputConversion: _json,
|
|
845
|
-
sampleDocument: __expectString,
|
|
846
|
-
sampleDocuments: _json,
|
|
847
|
-
status: __expectString,
|
|
848
|
-
transformerArn: __expectString,
|
|
849
|
-
transformerId: __expectString,
|
|
850
|
-
});
|
|
851
|
-
};
|
|
852
|
-
const de_ListCapabilitiesResponse = (output, context) => {
|
|
853
|
-
return take(output, {
|
|
854
|
-
capabilities: (_) => de_CapabilityList(_, context),
|
|
855
|
-
nextToken: __expectString,
|
|
856
|
-
});
|
|
857
|
-
};
|
|
858
|
-
const de_ListPartnershipsResponse = (output, context) => {
|
|
859
|
-
return take(output, {
|
|
860
|
-
nextToken: __expectString,
|
|
861
|
-
partnerships: (_) => de_PartnershipList(_, context),
|
|
862
|
-
});
|
|
863
|
-
};
|
|
864
|
-
const de_ListProfilesResponse = (output, context) => {
|
|
865
|
-
return take(output, {
|
|
866
|
-
nextToken: __expectString,
|
|
867
|
-
profiles: (_) => de_ProfileList(_, context),
|
|
868
|
-
});
|
|
869
|
-
};
|
|
870
|
-
const de_ListTransformersResponse = (output, context) => {
|
|
871
|
-
return take(output, {
|
|
872
|
-
nextToken: __expectString,
|
|
873
|
-
transformers: (_) => de_TransformerList(_, context),
|
|
874
|
-
});
|
|
875
|
-
};
|
|
876
|
-
const de_PartnershipList = (output, context) => {
|
|
877
|
-
const retVal = (output || [])
|
|
878
|
-
.filter((e) => e != null)
|
|
879
|
-
.map((entry) => {
|
|
880
|
-
return de_PartnershipSummary(entry, context);
|
|
881
|
-
});
|
|
882
|
-
return retVal;
|
|
883
|
-
};
|
|
884
|
-
const de_PartnershipSummary = (output, context) => {
|
|
885
|
-
return take(output, {
|
|
886
|
-
capabilities: _json,
|
|
887
|
-
capabilityOptions: _json,
|
|
888
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
889
|
-
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
890
|
-
name: __expectString,
|
|
891
|
-
partnershipId: __expectString,
|
|
892
|
-
profileId: __expectString,
|
|
893
|
-
tradingPartnerId: __expectString,
|
|
894
|
-
});
|
|
895
|
-
};
|
|
896
|
-
const de_ProfileList = (output, context) => {
|
|
897
|
-
const retVal = (output || [])
|
|
898
|
-
.filter((e) => e != null)
|
|
899
|
-
.map((entry) => {
|
|
900
|
-
return de_ProfileSummary(entry, context);
|
|
901
|
-
});
|
|
902
|
-
return retVal;
|
|
903
|
-
};
|
|
904
|
-
const de_ProfileSummary = (output, context) => {
|
|
905
|
-
return take(output, {
|
|
906
|
-
businessName: __expectString,
|
|
907
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
908
|
-
logGroupName: __expectString,
|
|
909
|
-
logging: __expectString,
|
|
910
|
-
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
911
|
-
name: __expectString,
|
|
912
|
-
profileId: __expectString,
|
|
913
|
-
});
|
|
914
|
-
};
|
|
915
|
-
const de_TransformerList = (output, context) => {
|
|
916
|
-
const retVal = (output || [])
|
|
917
|
-
.filter((e) => e != null)
|
|
918
|
-
.map((entry) => {
|
|
919
|
-
return de_TransformerSummary(entry, context);
|
|
920
|
-
});
|
|
921
|
-
return retVal;
|
|
922
|
-
};
|
|
923
|
-
const de_TransformerSummary = (output, context) => {
|
|
924
|
-
return take(output, {
|
|
925
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
926
|
-
ediType: (_) => _json(__expectUnion(_)),
|
|
927
|
-
fileFormat: __expectString,
|
|
928
|
-
inputConversion: _json,
|
|
929
|
-
mapping: _json,
|
|
930
|
-
mappingTemplate: __expectString,
|
|
931
|
-
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
932
|
-
name: __expectString,
|
|
933
|
-
outputConversion: _json,
|
|
934
|
-
sampleDocument: __expectString,
|
|
935
|
-
sampleDocuments: _json,
|
|
936
|
-
status: __expectString,
|
|
937
|
-
transformerId: __expectString,
|
|
938
|
-
});
|
|
939
|
-
};
|
|
940
|
-
const de_UpdateCapabilityResponse = (output, context) => {
|
|
941
|
-
return take(output, {
|
|
942
|
-
capabilityArn: __expectString,
|
|
943
|
-
capabilityId: __expectString,
|
|
944
|
-
configuration: (_) => _json(__expectUnion(_)),
|
|
945
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
946
|
-
instructionsDocuments: _json,
|
|
947
|
-
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
948
|
-
name: __expectString,
|
|
949
|
-
type: __expectString,
|
|
950
|
-
});
|
|
951
|
-
};
|
|
952
|
-
const de_UpdatePartnershipResponse = (output, context) => {
|
|
953
|
-
return take(output, {
|
|
954
|
-
capabilities: _json,
|
|
955
|
-
capabilityOptions: _json,
|
|
956
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
957
|
-
email: __expectString,
|
|
958
|
-
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
959
|
-
name: __expectString,
|
|
960
|
-
partnershipArn: __expectString,
|
|
961
|
-
partnershipId: __expectString,
|
|
962
|
-
phone: __expectString,
|
|
963
|
-
profileId: __expectString,
|
|
964
|
-
tradingPartnerId: __expectString,
|
|
965
|
-
});
|
|
966
|
-
};
|
|
967
|
-
const de_UpdateProfileResponse = (output, context) => {
|
|
968
|
-
return take(output, {
|
|
969
|
-
businessName: __expectString,
|
|
970
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
971
|
-
email: __expectString,
|
|
972
|
-
logGroupName: __expectString,
|
|
973
|
-
logging: __expectString,
|
|
974
|
-
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
975
|
-
name: __expectString,
|
|
976
|
-
phone: __expectString,
|
|
977
|
-
profileArn: __expectString,
|
|
978
|
-
profileId: __expectString,
|
|
979
|
-
});
|
|
980
|
-
};
|
|
981
|
-
const de_UpdateTransformerResponse = (output, context) => {
|
|
982
|
-
return take(output, {
|
|
983
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
984
|
-
ediType: (_) => _json(__expectUnion(_)),
|
|
985
|
-
fileFormat: __expectString,
|
|
986
|
-
inputConversion: _json,
|
|
987
|
-
mapping: _json,
|
|
988
|
-
mappingTemplate: __expectString,
|
|
989
|
-
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
990
|
-
name: __expectString,
|
|
991
|
-
outputConversion: _json,
|
|
992
|
-
sampleDocument: __expectString,
|
|
993
|
-
sampleDocuments: _json,
|
|
994
|
-
status: __expectString,
|
|
995
|
-
transformerArn: __expectString,
|
|
996
|
-
transformerId: __expectString,
|
|
997
|
-
});
|
|
998
|
-
};
|
|
999
|
-
const deserializeMetadata = (output) => ({
|
|
1000
|
-
httpStatusCode: output.statusCode,
|
|
1001
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1002
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1003
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1004
|
-
});
|
|
1005
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1006
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
1007
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
1008
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1009
|
-
const contents = {
|
|
1010
|
-
protocol,
|
|
1011
|
-
hostname,
|
|
1012
|
-
port,
|
|
1013
|
-
method: "POST",
|
|
1014
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
1015
|
-
headers,
|
|
1016
|
-
};
|
|
1017
|
-
if (resolvedHostname !== undefined) {
|
|
1018
|
-
contents.hostname = resolvedHostname;
|
|
1019
|
-
}
|
|
1020
|
-
if (body !== undefined) {
|
|
1021
|
-
contents.body = body;
|
|
1022
|
-
}
|
|
1023
|
-
return new __HttpRequest(contents);
|
|
1024
|
-
};
|
|
1025
|
-
function sharedHeaders(operation) {
|
|
1026
|
-
return {
|
|
1027
|
-
"content-type": "application/x-amz-json-1.0",
|
|
1028
|
-
"x-amz-target": `B2BI.${operation}`,
|
|
1029
|
-
};
|
|
1030
|
-
}
|