@aws-sdk/client-amplifyuibuilder 3.927.0 → 3.929.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 +1806 -1860
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/AmplifyUIBuilderClient.js +2 -0
- package/dist-es/commands/CreateComponentCommand.js +3 -9
- package/dist-es/commands/CreateFormCommand.js +3 -9
- package/dist-es/commands/CreateThemeCommand.js +3 -9
- package/dist-es/commands/DeleteComponentCommand.js +3 -9
- package/dist-es/commands/DeleteFormCommand.js +3 -9
- package/dist-es/commands/DeleteThemeCommand.js +3 -9
- package/dist-es/commands/ExchangeCodeForTokenCommand.js +3 -10
- package/dist-es/commands/ExportComponentsCommand.js +3 -9
- package/dist-es/commands/ExportFormsCommand.js +3 -9
- package/dist-es/commands/ExportThemesCommand.js +3 -9
- package/dist-es/commands/GetCodegenJobCommand.js +3 -9
- package/dist-es/commands/GetComponentCommand.js +3 -9
- package/dist-es/commands/GetFormCommand.js +3 -9
- package/dist-es/commands/GetMetadataCommand.js +3 -9
- package/dist-es/commands/GetThemeCommand.js +3 -9
- package/dist-es/commands/ListCodegenJobsCommand.js +3 -9
- package/dist-es/commands/ListComponentsCommand.js +3 -9
- package/dist-es/commands/ListFormsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListThemesCommand.js +3 -9
- package/dist-es/commands/PutMetadataFlagCommand.js +3 -9
- package/dist-es/commands/RefreshTokenCommand.js +3 -10
- package/dist-es/commands/StartCodegenJobCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateComponentCommand.js +3 -9
- package/dist-es/commands/UpdateFormCommand.js +3 -9
- package/dist-es/commands/UpdateThemeCommand.js +3 -9
- package/dist-es/models/models_0.js +0 -28
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1744 -0
- package/dist-types/AmplifyUIBuilderClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -24
- 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 +201 -0
- package/dist-types/ts3.4/AmplifyUIBuilderClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -18
- 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 +208 -0
- package/package.json +5 -6
- package/dist-es/protocols/Aws_restJson1.js +0 -1614
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -254
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -341
|
@@ -1,1614 +0,0 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { AmplifyUIBuilderServiceException as __BaseException } from "../models/AmplifyUIBuilderServiceException";
|
|
6
|
-
import { InternalServerException, InvalidParameterException, ResourceConflictException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnauthorizedException, } from "../models/models_0";
|
|
7
|
-
export const se_CreateComponentCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/app/{appId}/environment/{environmentName}/components");
|
|
13
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
14
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
15
|
-
const query = map({
|
|
16
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
17
|
-
});
|
|
18
|
-
let body;
|
|
19
|
-
if (input.componentToCreate !== undefined) {
|
|
20
|
-
body = se_CreateComponentData(input.componentToCreate, context);
|
|
21
|
-
}
|
|
22
|
-
if (body === undefined) {
|
|
23
|
-
body = {};
|
|
24
|
-
}
|
|
25
|
-
body = JSON.stringify(body);
|
|
26
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
27
|
-
return b.build();
|
|
28
|
-
};
|
|
29
|
-
export const se_CreateFormCommand = async (input, context) => {
|
|
30
|
-
const b = rb(input, context);
|
|
31
|
-
const headers = {
|
|
32
|
-
"content-type": "application/json",
|
|
33
|
-
};
|
|
34
|
-
b.bp("/app/{appId}/environment/{environmentName}/forms");
|
|
35
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
36
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
37
|
-
const query = map({
|
|
38
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
39
|
-
});
|
|
40
|
-
let body;
|
|
41
|
-
if (input.formToCreate !== undefined) {
|
|
42
|
-
body = se_CreateFormData(input.formToCreate, context);
|
|
43
|
-
}
|
|
44
|
-
if (body === undefined) {
|
|
45
|
-
body = {};
|
|
46
|
-
}
|
|
47
|
-
body = JSON.stringify(body);
|
|
48
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
49
|
-
return b.build();
|
|
50
|
-
};
|
|
51
|
-
export const se_CreateThemeCommand = async (input, context) => {
|
|
52
|
-
const b = rb(input, context);
|
|
53
|
-
const headers = {
|
|
54
|
-
"content-type": "application/json",
|
|
55
|
-
};
|
|
56
|
-
b.bp("/app/{appId}/environment/{environmentName}/themes");
|
|
57
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
58
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
59
|
-
const query = map({
|
|
60
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
61
|
-
});
|
|
62
|
-
let body;
|
|
63
|
-
if (input.themeToCreate !== undefined) {
|
|
64
|
-
body = se_CreateThemeData(input.themeToCreate, context);
|
|
65
|
-
}
|
|
66
|
-
if (body === undefined) {
|
|
67
|
-
body = {};
|
|
68
|
-
}
|
|
69
|
-
body = JSON.stringify(body);
|
|
70
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
71
|
-
return b.build();
|
|
72
|
-
};
|
|
73
|
-
export const se_DeleteComponentCommand = async (input, context) => {
|
|
74
|
-
const b = rb(input, context);
|
|
75
|
-
const headers = {};
|
|
76
|
-
b.bp("/app/{appId}/environment/{environmentName}/components/{id}");
|
|
77
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
78
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
79
|
-
b.p("id", () => input.id, "{id}", false);
|
|
80
|
-
let body;
|
|
81
|
-
b.m("DELETE").h(headers).b(body);
|
|
82
|
-
return b.build();
|
|
83
|
-
};
|
|
84
|
-
export const se_DeleteFormCommand = async (input, context) => {
|
|
85
|
-
const b = rb(input, context);
|
|
86
|
-
const headers = {};
|
|
87
|
-
b.bp("/app/{appId}/environment/{environmentName}/forms/{id}");
|
|
88
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
89
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
90
|
-
b.p("id", () => input.id, "{id}", false);
|
|
91
|
-
let body;
|
|
92
|
-
b.m("DELETE").h(headers).b(body);
|
|
93
|
-
return b.build();
|
|
94
|
-
};
|
|
95
|
-
export const se_DeleteThemeCommand = async (input, context) => {
|
|
96
|
-
const b = rb(input, context);
|
|
97
|
-
const headers = {};
|
|
98
|
-
b.bp("/app/{appId}/environment/{environmentName}/themes/{id}");
|
|
99
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
100
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
101
|
-
b.p("id", () => input.id, "{id}", false);
|
|
102
|
-
let body;
|
|
103
|
-
b.m("DELETE").h(headers).b(body);
|
|
104
|
-
return b.build();
|
|
105
|
-
};
|
|
106
|
-
export const se_ExchangeCodeForTokenCommand = async (input, context) => {
|
|
107
|
-
const b = rb(input, context);
|
|
108
|
-
const headers = {
|
|
109
|
-
"content-type": "application/json",
|
|
110
|
-
};
|
|
111
|
-
b.bp("/tokens/{provider}");
|
|
112
|
-
b.p("provider", () => input.provider, "{provider}", false);
|
|
113
|
-
let body;
|
|
114
|
-
if (input.request !== undefined) {
|
|
115
|
-
body = _json(input.request);
|
|
116
|
-
}
|
|
117
|
-
if (body === undefined) {
|
|
118
|
-
body = {};
|
|
119
|
-
}
|
|
120
|
-
body = JSON.stringify(body);
|
|
121
|
-
b.m("POST").h(headers).b(body);
|
|
122
|
-
return b.build();
|
|
123
|
-
};
|
|
124
|
-
export const se_ExportComponentsCommand = async (input, context) => {
|
|
125
|
-
const b = rb(input, context);
|
|
126
|
-
const headers = {};
|
|
127
|
-
b.bp("/export/app/{appId}/environment/{environmentName}/components");
|
|
128
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
129
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
130
|
-
const query = map({
|
|
131
|
-
[_nT]: [, input[_nT]],
|
|
132
|
-
});
|
|
133
|
-
let body;
|
|
134
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
135
|
-
return b.build();
|
|
136
|
-
};
|
|
137
|
-
export const se_ExportFormsCommand = async (input, context) => {
|
|
138
|
-
const b = rb(input, context);
|
|
139
|
-
const headers = {};
|
|
140
|
-
b.bp("/export/app/{appId}/environment/{environmentName}/forms");
|
|
141
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
142
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
143
|
-
const query = map({
|
|
144
|
-
[_nT]: [, input[_nT]],
|
|
145
|
-
});
|
|
146
|
-
let body;
|
|
147
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
148
|
-
return b.build();
|
|
149
|
-
};
|
|
150
|
-
export const se_ExportThemesCommand = async (input, context) => {
|
|
151
|
-
const b = rb(input, context);
|
|
152
|
-
const headers = {};
|
|
153
|
-
b.bp("/export/app/{appId}/environment/{environmentName}/themes");
|
|
154
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
155
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
156
|
-
const query = map({
|
|
157
|
-
[_nT]: [, input[_nT]],
|
|
158
|
-
});
|
|
159
|
-
let body;
|
|
160
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
161
|
-
return b.build();
|
|
162
|
-
};
|
|
163
|
-
export const se_GetCodegenJobCommand = async (input, context) => {
|
|
164
|
-
const b = rb(input, context);
|
|
165
|
-
const headers = {};
|
|
166
|
-
b.bp("/app/{appId}/environment/{environmentName}/codegen-jobs/{id}");
|
|
167
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
168
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
169
|
-
b.p("id", () => input.id, "{id}", false);
|
|
170
|
-
let body;
|
|
171
|
-
b.m("GET").h(headers).b(body);
|
|
172
|
-
return b.build();
|
|
173
|
-
};
|
|
174
|
-
export const se_GetComponentCommand = async (input, context) => {
|
|
175
|
-
const b = rb(input, context);
|
|
176
|
-
const headers = {};
|
|
177
|
-
b.bp("/app/{appId}/environment/{environmentName}/components/{id}");
|
|
178
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
179
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
180
|
-
b.p("id", () => input.id, "{id}", false);
|
|
181
|
-
let body;
|
|
182
|
-
b.m("GET").h(headers).b(body);
|
|
183
|
-
return b.build();
|
|
184
|
-
};
|
|
185
|
-
export const se_GetFormCommand = async (input, context) => {
|
|
186
|
-
const b = rb(input, context);
|
|
187
|
-
const headers = {};
|
|
188
|
-
b.bp("/app/{appId}/environment/{environmentName}/forms/{id}");
|
|
189
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
190
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
191
|
-
b.p("id", () => input.id, "{id}", false);
|
|
192
|
-
let body;
|
|
193
|
-
b.m("GET").h(headers).b(body);
|
|
194
|
-
return b.build();
|
|
195
|
-
};
|
|
196
|
-
export const se_GetMetadataCommand = async (input, context) => {
|
|
197
|
-
const b = rb(input, context);
|
|
198
|
-
const headers = {};
|
|
199
|
-
b.bp("/app/{appId}/environment/{environmentName}/metadata");
|
|
200
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
201
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
202
|
-
let body;
|
|
203
|
-
b.m("GET").h(headers).b(body);
|
|
204
|
-
return b.build();
|
|
205
|
-
};
|
|
206
|
-
export const se_GetThemeCommand = async (input, context) => {
|
|
207
|
-
const b = rb(input, context);
|
|
208
|
-
const headers = {};
|
|
209
|
-
b.bp("/app/{appId}/environment/{environmentName}/themes/{id}");
|
|
210
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
211
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
212
|
-
b.p("id", () => input.id, "{id}", false);
|
|
213
|
-
let body;
|
|
214
|
-
b.m("GET").h(headers).b(body);
|
|
215
|
-
return b.build();
|
|
216
|
-
};
|
|
217
|
-
export const se_ListCodegenJobsCommand = async (input, context) => {
|
|
218
|
-
const b = rb(input, context);
|
|
219
|
-
const headers = {};
|
|
220
|
-
b.bp("/app/{appId}/environment/{environmentName}/codegen-jobs");
|
|
221
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
222
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
223
|
-
const query = map({
|
|
224
|
-
[_nT]: [, input[_nT]],
|
|
225
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
226
|
-
});
|
|
227
|
-
let body;
|
|
228
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
229
|
-
return b.build();
|
|
230
|
-
};
|
|
231
|
-
export const se_ListComponentsCommand = async (input, context) => {
|
|
232
|
-
const b = rb(input, context);
|
|
233
|
-
const headers = {};
|
|
234
|
-
b.bp("/app/{appId}/environment/{environmentName}/components");
|
|
235
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
236
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
237
|
-
const query = map({
|
|
238
|
-
[_nT]: [, input[_nT]],
|
|
239
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
240
|
-
});
|
|
241
|
-
let body;
|
|
242
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
243
|
-
return b.build();
|
|
244
|
-
};
|
|
245
|
-
export const se_ListFormsCommand = async (input, context) => {
|
|
246
|
-
const b = rb(input, context);
|
|
247
|
-
const headers = {};
|
|
248
|
-
b.bp("/app/{appId}/environment/{environmentName}/forms");
|
|
249
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
250
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
251
|
-
const query = map({
|
|
252
|
-
[_nT]: [, input[_nT]],
|
|
253
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
254
|
-
});
|
|
255
|
-
let body;
|
|
256
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
257
|
-
return b.build();
|
|
258
|
-
};
|
|
259
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
260
|
-
const b = rb(input, context);
|
|
261
|
-
const headers = {};
|
|
262
|
-
b.bp("/tags/{resourceArn}");
|
|
263
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
264
|
-
let body;
|
|
265
|
-
b.m("GET").h(headers).b(body);
|
|
266
|
-
return b.build();
|
|
267
|
-
};
|
|
268
|
-
export const se_ListThemesCommand = async (input, context) => {
|
|
269
|
-
const b = rb(input, context);
|
|
270
|
-
const headers = {};
|
|
271
|
-
b.bp("/app/{appId}/environment/{environmentName}/themes");
|
|
272
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
273
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
274
|
-
const query = map({
|
|
275
|
-
[_nT]: [, input[_nT]],
|
|
276
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
277
|
-
});
|
|
278
|
-
let body;
|
|
279
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
280
|
-
return b.build();
|
|
281
|
-
};
|
|
282
|
-
export const se_PutMetadataFlagCommand = async (input, context) => {
|
|
283
|
-
const b = rb(input, context);
|
|
284
|
-
const headers = {
|
|
285
|
-
"content-type": "application/json",
|
|
286
|
-
};
|
|
287
|
-
b.bp("/app/{appId}/environment/{environmentName}/metadata/features/{featureName}");
|
|
288
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
289
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
290
|
-
b.p("featureName", () => input.featureName, "{featureName}", false);
|
|
291
|
-
let body;
|
|
292
|
-
if (input.body !== undefined) {
|
|
293
|
-
body = _json(input.body);
|
|
294
|
-
}
|
|
295
|
-
if (body === undefined) {
|
|
296
|
-
body = {};
|
|
297
|
-
}
|
|
298
|
-
body = JSON.stringify(body);
|
|
299
|
-
b.m("PUT").h(headers).b(body);
|
|
300
|
-
return b.build();
|
|
301
|
-
};
|
|
302
|
-
export const se_RefreshTokenCommand = async (input, context) => {
|
|
303
|
-
const b = rb(input, context);
|
|
304
|
-
const headers = {
|
|
305
|
-
"content-type": "application/json",
|
|
306
|
-
};
|
|
307
|
-
b.bp("/tokens/{provider}/refresh");
|
|
308
|
-
b.p("provider", () => input.provider, "{provider}", false);
|
|
309
|
-
let body;
|
|
310
|
-
if (input.refreshTokenBody !== undefined) {
|
|
311
|
-
body = _json(input.refreshTokenBody);
|
|
312
|
-
}
|
|
313
|
-
if (body === undefined) {
|
|
314
|
-
body = {};
|
|
315
|
-
}
|
|
316
|
-
body = JSON.stringify(body);
|
|
317
|
-
b.m("POST").h(headers).b(body);
|
|
318
|
-
return b.build();
|
|
319
|
-
};
|
|
320
|
-
export const se_StartCodegenJobCommand = async (input, context) => {
|
|
321
|
-
const b = rb(input, context);
|
|
322
|
-
const headers = {
|
|
323
|
-
"content-type": "application/json",
|
|
324
|
-
};
|
|
325
|
-
b.bp("/app/{appId}/environment/{environmentName}/codegen-jobs");
|
|
326
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
327
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
328
|
-
const query = map({
|
|
329
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
330
|
-
});
|
|
331
|
-
let body;
|
|
332
|
-
if (input.codegenJobToCreate !== undefined) {
|
|
333
|
-
body = _json(input.codegenJobToCreate);
|
|
334
|
-
}
|
|
335
|
-
if (body === undefined) {
|
|
336
|
-
body = {};
|
|
337
|
-
}
|
|
338
|
-
body = JSON.stringify(body);
|
|
339
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
340
|
-
return b.build();
|
|
341
|
-
};
|
|
342
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
343
|
-
const b = rb(input, context);
|
|
344
|
-
const headers = {
|
|
345
|
-
"content-type": "application/json",
|
|
346
|
-
};
|
|
347
|
-
b.bp("/tags/{resourceArn}");
|
|
348
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
349
|
-
let body;
|
|
350
|
-
body = JSON.stringify(take(input, {
|
|
351
|
-
tags: (_) => _json(_),
|
|
352
|
-
}));
|
|
353
|
-
b.m("POST").h(headers).b(body);
|
|
354
|
-
return b.build();
|
|
355
|
-
};
|
|
356
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
357
|
-
const b = rb(input, context);
|
|
358
|
-
const headers = {};
|
|
359
|
-
b.bp("/tags/{resourceArn}");
|
|
360
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
361
|
-
const query = map({
|
|
362
|
-
[_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
363
|
-
});
|
|
364
|
-
let body;
|
|
365
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
366
|
-
return b.build();
|
|
367
|
-
};
|
|
368
|
-
export const se_UpdateComponentCommand = async (input, context) => {
|
|
369
|
-
const b = rb(input, context);
|
|
370
|
-
const headers = {
|
|
371
|
-
"content-type": "application/json",
|
|
372
|
-
};
|
|
373
|
-
b.bp("/app/{appId}/environment/{environmentName}/components/{id}");
|
|
374
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
375
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
376
|
-
b.p("id", () => input.id, "{id}", false);
|
|
377
|
-
const query = map({
|
|
378
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
379
|
-
});
|
|
380
|
-
let body;
|
|
381
|
-
if (input.updatedComponent !== undefined) {
|
|
382
|
-
body = se_UpdateComponentData(input.updatedComponent, context);
|
|
383
|
-
}
|
|
384
|
-
if (body === undefined) {
|
|
385
|
-
body = {};
|
|
386
|
-
}
|
|
387
|
-
body = JSON.stringify(body);
|
|
388
|
-
b.m("PATCH").h(headers).q(query).b(body);
|
|
389
|
-
return b.build();
|
|
390
|
-
};
|
|
391
|
-
export const se_UpdateFormCommand = async (input, context) => {
|
|
392
|
-
const b = rb(input, context);
|
|
393
|
-
const headers = {
|
|
394
|
-
"content-type": "application/json",
|
|
395
|
-
};
|
|
396
|
-
b.bp("/app/{appId}/environment/{environmentName}/forms/{id}");
|
|
397
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
398
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
399
|
-
b.p("id", () => input.id, "{id}", false);
|
|
400
|
-
const query = map({
|
|
401
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
402
|
-
});
|
|
403
|
-
let body;
|
|
404
|
-
if (input.updatedForm !== undefined) {
|
|
405
|
-
body = se_UpdateFormData(input.updatedForm, context);
|
|
406
|
-
}
|
|
407
|
-
if (body === undefined) {
|
|
408
|
-
body = {};
|
|
409
|
-
}
|
|
410
|
-
body = JSON.stringify(body);
|
|
411
|
-
b.m("PATCH").h(headers).q(query).b(body);
|
|
412
|
-
return b.build();
|
|
413
|
-
};
|
|
414
|
-
export const se_UpdateThemeCommand = async (input, context) => {
|
|
415
|
-
const b = rb(input, context);
|
|
416
|
-
const headers = {
|
|
417
|
-
"content-type": "application/json",
|
|
418
|
-
};
|
|
419
|
-
b.bp("/app/{appId}/environment/{environmentName}/themes/{id}");
|
|
420
|
-
b.p("appId", () => input.appId, "{appId}", false);
|
|
421
|
-
b.p("environmentName", () => input.environmentName, "{environmentName}", false);
|
|
422
|
-
b.p("id", () => input.id, "{id}", false);
|
|
423
|
-
const query = map({
|
|
424
|
-
[_cT]: [, input[_cT] ?? generateIdempotencyToken()],
|
|
425
|
-
});
|
|
426
|
-
let body;
|
|
427
|
-
if (input.updatedTheme !== undefined) {
|
|
428
|
-
body = se_UpdateThemeData(input.updatedTheme, context);
|
|
429
|
-
}
|
|
430
|
-
if (body === undefined) {
|
|
431
|
-
body = {};
|
|
432
|
-
}
|
|
433
|
-
body = JSON.stringify(body);
|
|
434
|
-
b.m("PATCH").h(headers).q(query).b(body);
|
|
435
|
-
return b.build();
|
|
436
|
-
};
|
|
437
|
-
export const de_CreateComponentCommand = async (output, context) => {
|
|
438
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
439
|
-
return de_CommandError(output, context);
|
|
440
|
-
}
|
|
441
|
-
const contents = map({
|
|
442
|
-
$metadata: deserializeMetadata(output),
|
|
443
|
-
});
|
|
444
|
-
const data = __expectObject(await parseBody(output.body, context));
|
|
445
|
-
contents.entity = de_Component(data, context);
|
|
446
|
-
return contents;
|
|
447
|
-
};
|
|
448
|
-
export const de_CreateFormCommand = async (output, context) => {
|
|
449
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
450
|
-
return de_CommandError(output, context);
|
|
451
|
-
}
|
|
452
|
-
const contents = map({
|
|
453
|
-
$metadata: deserializeMetadata(output),
|
|
454
|
-
});
|
|
455
|
-
const data = __expectObject(await parseBody(output.body, context));
|
|
456
|
-
contents.entity = de_Form(data, context);
|
|
457
|
-
return contents;
|
|
458
|
-
};
|
|
459
|
-
export const de_CreateThemeCommand = async (output, context) => {
|
|
460
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
461
|
-
return de_CommandError(output, context);
|
|
462
|
-
}
|
|
463
|
-
const contents = map({
|
|
464
|
-
$metadata: deserializeMetadata(output),
|
|
465
|
-
});
|
|
466
|
-
const data = __expectObject(await parseBody(output.body, context));
|
|
467
|
-
contents.entity = de_Theme(data, context);
|
|
468
|
-
return contents;
|
|
469
|
-
};
|
|
470
|
-
export const de_DeleteComponentCommand = async (output, context) => {
|
|
471
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
472
|
-
return de_CommandError(output, context);
|
|
473
|
-
}
|
|
474
|
-
const contents = map({
|
|
475
|
-
$metadata: deserializeMetadata(output),
|
|
476
|
-
});
|
|
477
|
-
await collectBody(output.body, context);
|
|
478
|
-
return contents;
|
|
479
|
-
};
|
|
480
|
-
export const de_DeleteFormCommand = async (output, context) => {
|
|
481
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
482
|
-
return de_CommandError(output, context);
|
|
483
|
-
}
|
|
484
|
-
const contents = map({
|
|
485
|
-
$metadata: deserializeMetadata(output),
|
|
486
|
-
});
|
|
487
|
-
await collectBody(output.body, context);
|
|
488
|
-
return contents;
|
|
489
|
-
};
|
|
490
|
-
export const de_DeleteThemeCommand = async (output, context) => {
|
|
491
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
492
|
-
return de_CommandError(output, context);
|
|
493
|
-
}
|
|
494
|
-
const contents = map({
|
|
495
|
-
$metadata: deserializeMetadata(output),
|
|
496
|
-
});
|
|
497
|
-
await collectBody(output.body, context);
|
|
498
|
-
return contents;
|
|
499
|
-
};
|
|
500
|
-
export const de_ExchangeCodeForTokenCommand = async (output, context) => {
|
|
501
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
502
|
-
return de_CommandError(output, context);
|
|
503
|
-
}
|
|
504
|
-
const contents = map({
|
|
505
|
-
$metadata: deserializeMetadata(output),
|
|
506
|
-
});
|
|
507
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
508
|
-
const doc = take(data, {
|
|
509
|
-
accessToken: __expectString,
|
|
510
|
-
expiresIn: __expectInt32,
|
|
511
|
-
refreshToken: __expectString,
|
|
512
|
-
});
|
|
513
|
-
Object.assign(contents, doc);
|
|
514
|
-
return contents;
|
|
515
|
-
};
|
|
516
|
-
export const de_ExportComponentsCommand = async (output, context) => {
|
|
517
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
518
|
-
return de_CommandError(output, context);
|
|
519
|
-
}
|
|
520
|
-
const contents = map({
|
|
521
|
-
$metadata: deserializeMetadata(output),
|
|
522
|
-
});
|
|
523
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
524
|
-
const doc = take(data, {
|
|
525
|
-
entities: (_) => de_ComponentList(_, context),
|
|
526
|
-
nextToken: __expectString,
|
|
527
|
-
});
|
|
528
|
-
Object.assign(contents, doc);
|
|
529
|
-
return contents;
|
|
530
|
-
};
|
|
531
|
-
export const de_ExportFormsCommand = async (output, context) => {
|
|
532
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
533
|
-
return de_CommandError(output, context);
|
|
534
|
-
}
|
|
535
|
-
const contents = map({
|
|
536
|
-
$metadata: deserializeMetadata(output),
|
|
537
|
-
});
|
|
538
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
539
|
-
const doc = take(data, {
|
|
540
|
-
entities: (_) => de_FormList(_, context),
|
|
541
|
-
nextToken: __expectString,
|
|
542
|
-
});
|
|
543
|
-
Object.assign(contents, doc);
|
|
544
|
-
return contents;
|
|
545
|
-
};
|
|
546
|
-
export const de_ExportThemesCommand = async (output, context) => {
|
|
547
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
548
|
-
return de_CommandError(output, context);
|
|
549
|
-
}
|
|
550
|
-
const contents = map({
|
|
551
|
-
$metadata: deserializeMetadata(output),
|
|
552
|
-
});
|
|
553
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
554
|
-
const doc = take(data, {
|
|
555
|
-
entities: (_) => de_ThemeList(_, context),
|
|
556
|
-
nextToken: __expectString,
|
|
557
|
-
});
|
|
558
|
-
Object.assign(contents, doc);
|
|
559
|
-
return contents;
|
|
560
|
-
};
|
|
561
|
-
export const de_GetCodegenJobCommand = async (output, context) => {
|
|
562
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
563
|
-
return de_CommandError(output, context);
|
|
564
|
-
}
|
|
565
|
-
const contents = map({
|
|
566
|
-
$metadata: deserializeMetadata(output),
|
|
567
|
-
});
|
|
568
|
-
const data = __expectObject(await parseBody(output.body, context));
|
|
569
|
-
contents.job = de_CodegenJob(data, context);
|
|
570
|
-
return contents;
|
|
571
|
-
};
|
|
572
|
-
export const de_GetComponentCommand = async (output, context) => {
|
|
573
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
574
|
-
return de_CommandError(output, context);
|
|
575
|
-
}
|
|
576
|
-
const contents = map({
|
|
577
|
-
$metadata: deserializeMetadata(output),
|
|
578
|
-
});
|
|
579
|
-
const data = __expectObject(await parseBody(output.body, context));
|
|
580
|
-
contents.component = de_Component(data, context);
|
|
581
|
-
return contents;
|
|
582
|
-
};
|
|
583
|
-
export const de_GetFormCommand = async (output, context) => {
|
|
584
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
585
|
-
return de_CommandError(output, context);
|
|
586
|
-
}
|
|
587
|
-
const contents = map({
|
|
588
|
-
$metadata: deserializeMetadata(output),
|
|
589
|
-
});
|
|
590
|
-
const data = __expectObject(await parseBody(output.body, context));
|
|
591
|
-
contents.form = de_Form(data, context);
|
|
592
|
-
return contents;
|
|
593
|
-
};
|
|
594
|
-
export const de_GetMetadataCommand = async (output, context) => {
|
|
595
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
596
|
-
return de_CommandError(output, context);
|
|
597
|
-
}
|
|
598
|
-
const contents = map({
|
|
599
|
-
$metadata: deserializeMetadata(output),
|
|
600
|
-
});
|
|
601
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
602
|
-
const doc = take(data, {
|
|
603
|
-
features: _json,
|
|
604
|
-
});
|
|
605
|
-
Object.assign(contents, doc);
|
|
606
|
-
return contents;
|
|
607
|
-
};
|
|
608
|
-
export const de_GetThemeCommand = async (output, context) => {
|
|
609
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
610
|
-
return de_CommandError(output, context);
|
|
611
|
-
}
|
|
612
|
-
const contents = map({
|
|
613
|
-
$metadata: deserializeMetadata(output),
|
|
614
|
-
});
|
|
615
|
-
const data = __expectObject(await parseBody(output.body, context));
|
|
616
|
-
contents.theme = de_Theme(data, context);
|
|
617
|
-
return contents;
|
|
618
|
-
};
|
|
619
|
-
export const de_ListCodegenJobsCommand = async (output, context) => {
|
|
620
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
621
|
-
return de_CommandError(output, context);
|
|
622
|
-
}
|
|
623
|
-
const contents = map({
|
|
624
|
-
$metadata: deserializeMetadata(output),
|
|
625
|
-
});
|
|
626
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
627
|
-
const doc = take(data, {
|
|
628
|
-
entities: (_) => de_CodegenJobSummaryList(_, context),
|
|
629
|
-
nextToken: __expectString,
|
|
630
|
-
});
|
|
631
|
-
Object.assign(contents, doc);
|
|
632
|
-
return contents;
|
|
633
|
-
};
|
|
634
|
-
export const de_ListComponentsCommand = async (output, context) => {
|
|
635
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
636
|
-
return de_CommandError(output, context);
|
|
637
|
-
}
|
|
638
|
-
const contents = map({
|
|
639
|
-
$metadata: deserializeMetadata(output),
|
|
640
|
-
});
|
|
641
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
642
|
-
const doc = take(data, {
|
|
643
|
-
entities: _json,
|
|
644
|
-
nextToken: __expectString,
|
|
645
|
-
});
|
|
646
|
-
Object.assign(contents, doc);
|
|
647
|
-
return contents;
|
|
648
|
-
};
|
|
649
|
-
export const de_ListFormsCommand = async (output, context) => {
|
|
650
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
651
|
-
return de_CommandError(output, context);
|
|
652
|
-
}
|
|
653
|
-
const contents = map({
|
|
654
|
-
$metadata: deserializeMetadata(output),
|
|
655
|
-
});
|
|
656
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
657
|
-
const doc = take(data, {
|
|
658
|
-
entities: _json,
|
|
659
|
-
nextToken: __expectString,
|
|
660
|
-
});
|
|
661
|
-
Object.assign(contents, doc);
|
|
662
|
-
return contents;
|
|
663
|
-
};
|
|
664
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
665
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
666
|
-
return de_CommandError(output, context);
|
|
667
|
-
}
|
|
668
|
-
const contents = map({
|
|
669
|
-
$metadata: deserializeMetadata(output),
|
|
670
|
-
});
|
|
671
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
672
|
-
const doc = take(data, {
|
|
673
|
-
tags: _json,
|
|
674
|
-
});
|
|
675
|
-
Object.assign(contents, doc);
|
|
676
|
-
return contents;
|
|
677
|
-
};
|
|
678
|
-
export const de_ListThemesCommand = async (output, context) => {
|
|
679
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
680
|
-
return de_CommandError(output, context);
|
|
681
|
-
}
|
|
682
|
-
const contents = map({
|
|
683
|
-
$metadata: deserializeMetadata(output),
|
|
684
|
-
});
|
|
685
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
686
|
-
const doc = take(data, {
|
|
687
|
-
entities: _json,
|
|
688
|
-
nextToken: __expectString,
|
|
689
|
-
});
|
|
690
|
-
Object.assign(contents, doc);
|
|
691
|
-
return contents;
|
|
692
|
-
};
|
|
693
|
-
export const de_PutMetadataFlagCommand = async (output, context) => {
|
|
694
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
695
|
-
return de_CommandError(output, context);
|
|
696
|
-
}
|
|
697
|
-
const contents = map({
|
|
698
|
-
$metadata: deserializeMetadata(output),
|
|
699
|
-
});
|
|
700
|
-
await collectBody(output.body, context);
|
|
701
|
-
return contents;
|
|
702
|
-
};
|
|
703
|
-
export const de_RefreshTokenCommand = async (output, context) => {
|
|
704
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
705
|
-
return de_CommandError(output, context);
|
|
706
|
-
}
|
|
707
|
-
const contents = map({
|
|
708
|
-
$metadata: deserializeMetadata(output),
|
|
709
|
-
});
|
|
710
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
711
|
-
const doc = take(data, {
|
|
712
|
-
accessToken: __expectString,
|
|
713
|
-
expiresIn: __expectInt32,
|
|
714
|
-
});
|
|
715
|
-
Object.assign(contents, doc);
|
|
716
|
-
return contents;
|
|
717
|
-
};
|
|
718
|
-
export const de_StartCodegenJobCommand = async (output, context) => {
|
|
719
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
720
|
-
return de_CommandError(output, context);
|
|
721
|
-
}
|
|
722
|
-
const contents = map({
|
|
723
|
-
$metadata: deserializeMetadata(output),
|
|
724
|
-
});
|
|
725
|
-
const data = __expectObject(await parseBody(output.body, context));
|
|
726
|
-
contents.entity = de_CodegenJob(data, context);
|
|
727
|
-
return contents;
|
|
728
|
-
};
|
|
729
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
730
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
731
|
-
return de_CommandError(output, context);
|
|
732
|
-
}
|
|
733
|
-
const contents = map({
|
|
734
|
-
$metadata: deserializeMetadata(output),
|
|
735
|
-
});
|
|
736
|
-
await collectBody(output.body, context);
|
|
737
|
-
return contents;
|
|
738
|
-
};
|
|
739
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
740
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
741
|
-
return de_CommandError(output, context);
|
|
742
|
-
}
|
|
743
|
-
const contents = map({
|
|
744
|
-
$metadata: deserializeMetadata(output),
|
|
745
|
-
});
|
|
746
|
-
await collectBody(output.body, context);
|
|
747
|
-
return contents;
|
|
748
|
-
};
|
|
749
|
-
export const de_UpdateComponentCommand = async (output, context) => {
|
|
750
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
751
|
-
return de_CommandError(output, context);
|
|
752
|
-
}
|
|
753
|
-
const contents = map({
|
|
754
|
-
$metadata: deserializeMetadata(output),
|
|
755
|
-
});
|
|
756
|
-
const data = __expectObject(await parseBody(output.body, context));
|
|
757
|
-
contents.entity = de_Component(data, context);
|
|
758
|
-
return contents;
|
|
759
|
-
};
|
|
760
|
-
export const de_UpdateFormCommand = async (output, context) => {
|
|
761
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
762
|
-
return de_CommandError(output, context);
|
|
763
|
-
}
|
|
764
|
-
const contents = map({
|
|
765
|
-
$metadata: deserializeMetadata(output),
|
|
766
|
-
});
|
|
767
|
-
const data = __expectObject(await parseBody(output.body, context));
|
|
768
|
-
contents.entity = de_Form(data, context);
|
|
769
|
-
return contents;
|
|
770
|
-
};
|
|
771
|
-
export const de_UpdateThemeCommand = async (output, context) => {
|
|
772
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
773
|
-
return de_CommandError(output, context);
|
|
774
|
-
}
|
|
775
|
-
const contents = map({
|
|
776
|
-
$metadata: deserializeMetadata(output),
|
|
777
|
-
});
|
|
778
|
-
const data = __expectObject(await parseBody(output.body, context));
|
|
779
|
-
contents.entity = de_Theme(data, context);
|
|
780
|
-
return contents;
|
|
781
|
-
};
|
|
782
|
-
const de_CommandError = async (output, context) => {
|
|
783
|
-
const parsedOutput = {
|
|
784
|
-
...output,
|
|
785
|
-
body: await parseErrorBody(output.body, context),
|
|
786
|
-
};
|
|
787
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
788
|
-
switch (errorCode) {
|
|
789
|
-
case "InternalServerException":
|
|
790
|
-
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
791
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
792
|
-
case "InvalidParameterException":
|
|
793
|
-
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
794
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
795
|
-
case "ResourceConflictException":
|
|
796
|
-
case "com.amazonaws.amplifyuibuilder#ResourceConflictException":
|
|
797
|
-
throw await de_ResourceConflictExceptionRes(parsedOutput, context);
|
|
798
|
-
case "ServiceQuotaExceededException":
|
|
799
|
-
case "com.amazonaws.amplifyuibuilder#ServiceQuotaExceededException":
|
|
800
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
801
|
-
case "ResourceNotFoundException":
|
|
802
|
-
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
|
|
803
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
804
|
-
case "ThrottlingException":
|
|
805
|
-
case "com.amazonaws.amplifyuibuilder#ThrottlingException":
|
|
806
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
807
|
-
case "UnauthorizedException":
|
|
808
|
-
case "com.amazonaws.amplifyuibuilder#UnauthorizedException":
|
|
809
|
-
throw await de_UnauthorizedExceptionRes(parsedOutput, context);
|
|
810
|
-
default:
|
|
811
|
-
const parsedBody = parsedOutput.body;
|
|
812
|
-
return throwDefaultError({
|
|
813
|
-
output,
|
|
814
|
-
parsedBody,
|
|
815
|
-
errorCode,
|
|
816
|
-
});
|
|
817
|
-
}
|
|
818
|
-
};
|
|
819
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
820
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
821
|
-
const contents = map({});
|
|
822
|
-
const data = parsedOutput.body;
|
|
823
|
-
const doc = take(data, {
|
|
824
|
-
message: __expectString,
|
|
825
|
-
});
|
|
826
|
-
Object.assign(contents, doc);
|
|
827
|
-
const exception = new InternalServerException({
|
|
828
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
829
|
-
...contents,
|
|
830
|
-
});
|
|
831
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
832
|
-
};
|
|
833
|
-
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
834
|
-
const contents = map({});
|
|
835
|
-
const data = parsedOutput.body;
|
|
836
|
-
const doc = take(data, {
|
|
837
|
-
message: __expectString,
|
|
838
|
-
});
|
|
839
|
-
Object.assign(contents, doc);
|
|
840
|
-
const exception = new InvalidParameterException({
|
|
841
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
842
|
-
...contents,
|
|
843
|
-
});
|
|
844
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
845
|
-
};
|
|
846
|
-
const de_ResourceConflictExceptionRes = async (parsedOutput, context) => {
|
|
847
|
-
const contents = map({});
|
|
848
|
-
const data = parsedOutput.body;
|
|
849
|
-
const doc = take(data, {
|
|
850
|
-
message: __expectString,
|
|
851
|
-
});
|
|
852
|
-
Object.assign(contents, doc);
|
|
853
|
-
const exception = new ResourceConflictException({
|
|
854
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
855
|
-
...contents,
|
|
856
|
-
});
|
|
857
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
858
|
-
};
|
|
859
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
860
|
-
const contents = map({});
|
|
861
|
-
const data = parsedOutput.body;
|
|
862
|
-
const doc = take(data, {
|
|
863
|
-
message: __expectString,
|
|
864
|
-
});
|
|
865
|
-
Object.assign(contents, doc);
|
|
866
|
-
const exception = new ResourceNotFoundException({
|
|
867
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
868
|
-
...contents,
|
|
869
|
-
});
|
|
870
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
871
|
-
};
|
|
872
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
873
|
-
const contents = map({});
|
|
874
|
-
const data = parsedOutput.body;
|
|
875
|
-
const doc = take(data, {
|
|
876
|
-
message: __expectString,
|
|
877
|
-
});
|
|
878
|
-
Object.assign(contents, doc);
|
|
879
|
-
const exception = new ServiceQuotaExceededException({
|
|
880
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
881
|
-
...contents,
|
|
882
|
-
});
|
|
883
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
884
|
-
};
|
|
885
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
886
|
-
const contents = map({});
|
|
887
|
-
const data = parsedOutput.body;
|
|
888
|
-
const doc = take(data, {
|
|
889
|
-
message: __expectString,
|
|
890
|
-
});
|
|
891
|
-
Object.assign(contents, doc);
|
|
892
|
-
const exception = new ThrottlingException({
|
|
893
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
894
|
-
...contents,
|
|
895
|
-
});
|
|
896
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
897
|
-
};
|
|
898
|
-
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
899
|
-
const contents = map({});
|
|
900
|
-
const data = parsedOutput.body;
|
|
901
|
-
const doc = take(data, {
|
|
902
|
-
message: __expectString,
|
|
903
|
-
});
|
|
904
|
-
Object.assign(contents, doc);
|
|
905
|
-
const exception = new UnauthorizedException({
|
|
906
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
907
|
-
...contents,
|
|
908
|
-
});
|
|
909
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
910
|
-
};
|
|
911
|
-
const se_ActionParameters = (input, context) => {
|
|
912
|
-
return take(input, {
|
|
913
|
-
anchor: (_) => se_ComponentProperty(_, context),
|
|
914
|
-
fields: (_) => se_ComponentProperties(_, context),
|
|
915
|
-
global: (_) => se_ComponentProperty(_, context),
|
|
916
|
-
id: (_) => se_ComponentProperty(_, context),
|
|
917
|
-
model: [],
|
|
918
|
-
state: (_) => se_MutationActionSetStateParameter(_, context),
|
|
919
|
-
target: (_) => se_ComponentProperty(_, context),
|
|
920
|
-
type: (_) => se_ComponentProperty(_, context),
|
|
921
|
-
url: (_) => se_ComponentProperty(_, context),
|
|
922
|
-
});
|
|
923
|
-
};
|
|
924
|
-
const se_ComponentBindingProperties = (input, context) => {
|
|
925
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
926
|
-
if (value === null) {
|
|
927
|
-
return acc;
|
|
928
|
-
}
|
|
929
|
-
acc[key] = se_ComponentBindingPropertiesValue(value, context);
|
|
930
|
-
return acc;
|
|
931
|
-
}, {});
|
|
932
|
-
};
|
|
933
|
-
const se_ComponentBindingPropertiesValue = (input, context) => {
|
|
934
|
-
return take(input, {
|
|
935
|
-
bindingProperties: (_) => se_ComponentBindingPropertiesValueProperties(_, context),
|
|
936
|
-
defaultValue: [],
|
|
937
|
-
type: [],
|
|
938
|
-
});
|
|
939
|
-
};
|
|
940
|
-
const se_ComponentBindingPropertiesValueProperties = (input, context) => {
|
|
941
|
-
return take(input, {
|
|
942
|
-
bucket: [],
|
|
943
|
-
defaultValue: [],
|
|
944
|
-
field: [],
|
|
945
|
-
key: [],
|
|
946
|
-
model: [],
|
|
947
|
-
predicates: (_) => se_PredicateList(_, context),
|
|
948
|
-
slotName: [],
|
|
949
|
-
userAttribute: [],
|
|
950
|
-
});
|
|
951
|
-
};
|
|
952
|
-
const se_ComponentChild = (input, context) => {
|
|
953
|
-
return take(input, {
|
|
954
|
-
children: (_) => se_ComponentChildList(_, context),
|
|
955
|
-
componentType: [],
|
|
956
|
-
events: (_) => se_ComponentEvents(_, context),
|
|
957
|
-
name: [],
|
|
958
|
-
properties: (_) => se_ComponentProperties(_, context),
|
|
959
|
-
sourceId: [],
|
|
960
|
-
});
|
|
961
|
-
};
|
|
962
|
-
const se_ComponentChildList = (input, context) => {
|
|
963
|
-
return input
|
|
964
|
-
.filter((e) => e != null)
|
|
965
|
-
.map((entry) => {
|
|
966
|
-
return se_ComponentChild(entry, context);
|
|
967
|
-
});
|
|
968
|
-
};
|
|
969
|
-
const se_ComponentCollectionProperties = (input, context) => {
|
|
970
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
971
|
-
if (value === null) {
|
|
972
|
-
return acc;
|
|
973
|
-
}
|
|
974
|
-
acc[key] = se_ComponentDataConfiguration(value, context);
|
|
975
|
-
return acc;
|
|
976
|
-
}, {});
|
|
977
|
-
};
|
|
978
|
-
const se_ComponentConditionProperty = (input, context) => {
|
|
979
|
-
return take(input, {
|
|
980
|
-
else: (_) => se_ComponentProperty(_, context),
|
|
981
|
-
field: [],
|
|
982
|
-
operand: [],
|
|
983
|
-
operandType: [],
|
|
984
|
-
operator: [],
|
|
985
|
-
property: [],
|
|
986
|
-
then: (_) => se_ComponentProperty(_, context),
|
|
987
|
-
});
|
|
988
|
-
};
|
|
989
|
-
const se_ComponentDataConfiguration = (input, context) => {
|
|
990
|
-
return take(input, {
|
|
991
|
-
identifiers: _json,
|
|
992
|
-
model: [],
|
|
993
|
-
predicate: (_) => se_Predicate(_, context),
|
|
994
|
-
sort: _json,
|
|
995
|
-
});
|
|
996
|
-
};
|
|
997
|
-
const se_ComponentEvent = (input, context) => {
|
|
998
|
-
return take(input, {
|
|
999
|
-
action: [],
|
|
1000
|
-
bindingEvent: [],
|
|
1001
|
-
parameters: (_) => se_ActionParameters(_, context),
|
|
1002
|
-
});
|
|
1003
|
-
};
|
|
1004
|
-
const se_ComponentEvents = (input, context) => {
|
|
1005
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1006
|
-
if (value === null) {
|
|
1007
|
-
return acc;
|
|
1008
|
-
}
|
|
1009
|
-
acc[key] = se_ComponentEvent(value, context);
|
|
1010
|
-
return acc;
|
|
1011
|
-
}, {});
|
|
1012
|
-
};
|
|
1013
|
-
const se_ComponentProperties = (input, context) => {
|
|
1014
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1015
|
-
if (value === null) {
|
|
1016
|
-
return acc;
|
|
1017
|
-
}
|
|
1018
|
-
acc[key] = se_ComponentProperty(value, context);
|
|
1019
|
-
return acc;
|
|
1020
|
-
}, {});
|
|
1021
|
-
};
|
|
1022
|
-
const se_ComponentProperty = (input, context) => {
|
|
1023
|
-
return take(input, {
|
|
1024
|
-
bindingProperties: _json,
|
|
1025
|
-
bindings: _json,
|
|
1026
|
-
collectionBindingProperties: _json,
|
|
1027
|
-
componentName: [],
|
|
1028
|
-
concat: (_) => se_ComponentPropertyList(_, context),
|
|
1029
|
-
condition: (_) => se_ComponentConditionProperty(_, context),
|
|
1030
|
-
configured: [],
|
|
1031
|
-
defaultValue: [],
|
|
1032
|
-
event: [],
|
|
1033
|
-
importedValue: [],
|
|
1034
|
-
model: [],
|
|
1035
|
-
property: [],
|
|
1036
|
-
type: [],
|
|
1037
|
-
userAttribute: [],
|
|
1038
|
-
value: [],
|
|
1039
|
-
});
|
|
1040
|
-
};
|
|
1041
|
-
const se_ComponentPropertyList = (input, context) => {
|
|
1042
|
-
return input
|
|
1043
|
-
.filter((e) => e != null)
|
|
1044
|
-
.map((entry) => {
|
|
1045
|
-
return se_ComponentProperty(entry, context);
|
|
1046
|
-
});
|
|
1047
|
-
};
|
|
1048
|
-
const se_CreateComponentData = (input, context) => {
|
|
1049
|
-
return take(input, {
|
|
1050
|
-
bindingProperties: (_) => se_ComponentBindingProperties(_, context),
|
|
1051
|
-
children: (_) => se_ComponentChildList(_, context),
|
|
1052
|
-
collectionProperties: (_) => se_ComponentCollectionProperties(_, context),
|
|
1053
|
-
componentType: [],
|
|
1054
|
-
events: (_) => se_ComponentEvents(_, context),
|
|
1055
|
-
name: [],
|
|
1056
|
-
overrides: _json,
|
|
1057
|
-
properties: (_) => se_ComponentProperties(_, context),
|
|
1058
|
-
schemaVersion: [],
|
|
1059
|
-
sourceId: [],
|
|
1060
|
-
tags: _json,
|
|
1061
|
-
variants: _json,
|
|
1062
|
-
});
|
|
1063
|
-
};
|
|
1064
|
-
const se_CreateFormData = (input, context) => {
|
|
1065
|
-
return take(input, {
|
|
1066
|
-
cta: _json,
|
|
1067
|
-
dataType: _json,
|
|
1068
|
-
fields: (_) => se_FieldsMap(_, context),
|
|
1069
|
-
formActionType: [],
|
|
1070
|
-
labelDecorator: [],
|
|
1071
|
-
name: [],
|
|
1072
|
-
schemaVersion: [],
|
|
1073
|
-
sectionalElements: _json,
|
|
1074
|
-
style: _json,
|
|
1075
|
-
tags: _json,
|
|
1076
|
-
});
|
|
1077
|
-
};
|
|
1078
|
-
const se_CreateThemeData = (input, context) => {
|
|
1079
|
-
return take(input, {
|
|
1080
|
-
name: [],
|
|
1081
|
-
overrides: (_) => se_ThemeValuesList(_, context),
|
|
1082
|
-
tags: _json,
|
|
1083
|
-
values: (_) => se_ThemeValuesList(_, context),
|
|
1084
|
-
});
|
|
1085
|
-
};
|
|
1086
|
-
const se_FieldConfig = (input, context) => {
|
|
1087
|
-
return take(input, {
|
|
1088
|
-
excluded: [],
|
|
1089
|
-
inputType: (_) => se_FieldInputConfig(_, context),
|
|
1090
|
-
label: [],
|
|
1091
|
-
position: _json,
|
|
1092
|
-
validations: _json,
|
|
1093
|
-
});
|
|
1094
|
-
};
|
|
1095
|
-
const se_FieldInputConfig = (input, context) => {
|
|
1096
|
-
return take(input, {
|
|
1097
|
-
defaultChecked: [],
|
|
1098
|
-
defaultCountryCode: [],
|
|
1099
|
-
defaultValue: [],
|
|
1100
|
-
descriptiveText: [],
|
|
1101
|
-
fileUploaderConfig: _json,
|
|
1102
|
-
isArray: [],
|
|
1103
|
-
maxValue: __serializeFloat,
|
|
1104
|
-
minValue: __serializeFloat,
|
|
1105
|
-
name: [],
|
|
1106
|
-
placeholder: [],
|
|
1107
|
-
readOnly: [],
|
|
1108
|
-
required: [],
|
|
1109
|
-
step: __serializeFloat,
|
|
1110
|
-
type: [],
|
|
1111
|
-
value: [],
|
|
1112
|
-
valueMappings: (_) => se_ValueMappings(_, context),
|
|
1113
|
-
});
|
|
1114
|
-
};
|
|
1115
|
-
const se_FieldsMap = (input, context) => {
|
|
1116
|
-
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1117
|
-
if (value === null) {
|
|
1118
|
-
return acc;
|
|
1119
|
-
}
|
|
1120
|
-
acc[key] = se_FieldConfig(value, context);
|
|
1121
|
-
return acc;
|
|
1122
|
-
}, {});
|
|
1123
|
-
};
|
|
1124
|
-
const se_FormInputValueProperty = (input, context) => {
|
|
1125
|
-
return take(input, {
|
|
1126
|
-
bindingProperties: _json,
|
|
1127
|
-
concat: (_) => se_FormInputValuePropertyList(_, context),
|
|
1128
|
-
value: [],
|
|
1129
|
-
});
|
|
1130
|
-
};
|
|
1131
|
-
const se_FormInputValuePropertyList = (input, context) => {
|
|
1132
|
-
return input
|
|
1133
|
-
.filter((e) => e != null)
|
|
1134
|
-
.map((entry) => {
|
|
1135
|
-
return se_FormInputValueProperty(entry, context);
|
|
1136
|
-
});
|
|
1137
|
-
};
|
|
1138
|
-
const se_MutationActionSetStateParameter = (input, context) => {
|
|
1139
|
-
return take(input, {
|
|
1140
|
-
componentName: [],
|
|
1141
|
-
property: [],
|
|
1142
|
-
set: (_) => se_ComponentProperty(_, context),
|
|
1143
|
-
});
|
|
1144
|
-
};
|
|
1145
|
-
const se_Predicate = (input, context) => {
|
|
1146
|
-
return take(input, {
|
|
1147
|
-
and: (_) => se_PredicateList(_, context),
|
|
1148
|
-
field: [],
|
|
1149
|
-
operand: [],
|
|
1150
|
-
operandType: [],
|
|
1151
|
-
operator: [],
|
|
1152
|
-
or: (_) => se_PredicateList(_, context),
|
|
1153
|
-
});
|
|
1154
|
-
};
|
|
1155
|
-
const se_PredicateList = (input, context) => {
|
|
1156
|
-
return input
|
|
1157
|
-
.filter((e) => e != null)
|
|
1158
|
-
.map((entry) => {
|
|
1159
|
-
return se_Predicate(entry, context);
|
|
1160
|
-
});
|
|
1161
|
-
};
|
|
1162
|
-
const se_ThemeValue = (input, context) => {
|
|
1163
|
-
return take(input, {
|
|
1164
|
-
children: (_) => se_ThemeValuesList(_, context),
|
|
1165
|
-
value: [],
|
|
1166
|
-
});
|
|
1167
|
-
};
|
|
1168
|
-
const se_ThemeValues = (input, context) => {
|
|
1169
|
-
return take(input, {
|
|
1170
|
-
key: [],
|
|
1171
|
-
value: (_) => se_ThemeValue(_, context),
|
|
1172
|
-
});
|
|
1173
|
-
};
|
|
1174
|
-
const se_ThemeValuesList = (input, context) => {
|
|
1175
|
-
return input
|
|
1176
|
-
.filter((e) => e != null)
|
|
1177
|
-
.map((entry) => {
|
|
1178
|
-
return se_ThemeValues(entry, context);
|
|
1179
|
-
});
|
|
1180
|
-
};
|
|
1181
|
-
const se_UpdateComponentData = (input, context) => {
|
|
1182
|
-
return take(input, {
|
|
1183
|
-
bindingProperties: (_) => se_ComponentBindingProperties(_, context),
|
|
1184
|
-
children: (_) => se_ComponentChildList(_, context),
|
|
1185
|
-
collectionProperties: (_) => se_ComponentCollectionProperties(_, context),
|
|
1186
|
-
componentType: [],
|
|
1187
|
-
events: (_) => se_ComponentEvents(_, context),
|
|
1188
|
-
id: [],
|
|
1189
|
-
name: [],
|
|
1190
|
-
overrides: _json,
|
|
1191
|
-
properties: (_) => se_ComponentProperties(_, context),
|
|
1192
|
-
schemaVersion: [],
|
|
1193
|
-
sourceId: [],
|
|
1194
|
-
variants: _json,
|
|
1195
|
-
});
|
|
1196
|
-
};
|
|
1197
|
-
const se_UpdateFormData = (input, context) => {
|
|
1198
|
-
return take(input, {
|
|
1199
|
-
cta: _json,
|
|
1200
|
-
dataType: _json,
|
|
1201
|
-
fields: (_) => se_FieldsMap(_, context),
|
|
1202
|
-
formActionType: [],
|
|
1203
|
-
labelDecorator: [],
|
|
1204
|
-
name: [],
|
|
1205
|
-
schemaVersion: [],
|
|
1206
|
-
sectionalElements: _json,
|
|
1207
|
-
style: _json,
|
|
1208
|
-
});
|
|
1209
|
-
};
|
|
1210
|
-
const se_UpdateThemeData = (input, context) => {
|
|
1211
|
-
return take(input, {
|
|
1212
|
-
id: [],
|
|
1213
|
-
name: [],
|
|
1214
|
-
overrides: (_) => se_ThemeValuesList(_, context),
|
|
1215
|
-
values: (_) => se_ThemeValuesList(_, context),
|
|
1216
|
-
});
|
|
1217
|
-
};
|
|
1218
|
-
const se_ValueMapping = (input, context) => {
|
|
1219
|
-
return take(input, {
|
|
1220
|
-
displayValue: (_) => se_FormInputValueProperty(_, context),
|
|
1221
|
-
value: (_) => se_FormInputValueProperty(_, context),
|
|
1222
|
-
});
|
|
1223
|
-
};
|
|
1224
|
-
const se_ValueMappingList = (input, context) => {
|
|
1225
|
-
return input
|
|
1226
|
-
.filter((e) => e != null)
|
|
1227
|
-
.map((entry) => {
|
|
1228
|
-
return se_ValueMapping(entry, context);
|
|
1229
|
-
});
|
|
1230
|
-
};
|
|
1231
|
-
const se_ValueMappings = (input, context) => {
|
|
1232
|
-
return take(input, {
|
|
1233
|
-
bindingProperties: _json,
|
|
1234
|
-
values: (_) => se_ValueMappingList(_, context),
|
|
1235
|
-
});
|
|
1236
|
-
};
|
|
1237
|
-
const de_ActionParameters = (output, context) => {
|
|
1238
|
-
return take(output, {
|
|
1239
|
-
anchor: (_) => de_ComponentProperty(_, context),
|
|
1240
|
-
fields: (_) => de_ComponentProperties(_, context),
|
|
1241
|
-
global: (_) => de_ComponentProperty(_, context),
|
|
1242
|
-
id: (_) => de_ComponentProperty(_, context),
|
|
1243
|
-
model: __expectString,
|
|
1244
|
-
state: (_) => de_MutationActionSetStateParameter(_, context),
|
|
1245
|
-
target: (_) => de_ComponentProperty(_, context),
|
|
1246
|
-
type: (_) => de_ComponentProperty(_, context),
|
|
1247
|
-
url: (_) => de_ComponentProperty(_, context),
|
|
1248
|
-
});
|
|
1249
|
-
};
|
|
1250
|
-
const de_CodegenJob = (output, context) => {
|
|
1251
|
-
return take(output, {
|
|
1252
|
-
appId: __expectString,
|
|
1253
|
-
asset: _json,
|
|
1254
|
-
autoGenerateForms: __expectBoolean,
|
|
1255
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1256
|
-
dependencies: _json,
|
|
1257
|
-
environmentName: __expectString,
|
|
1258
|
-
features: _json,
|
|
1259
|
-
genericDataSchema: _json,
|
|
1260
|
-
id: __expectString,
|
|
1261
|
-
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1262
|
-
renderConfig: (_) => _json(__expectUnion(_)),
|
|
1263
|
-
status: __expectString,
|
|
1264
|
-
statusMessage: __expectString,
|
|
1265
|
-
tags: _json,
|
|
1266
|
-
});
|
|
1267
|
-
};
|
|
1268
|
-
const de_CodegenJobSummary = (output, context) => {
|
|
1269
|
-
return take(output, {
|
|
1270
|
-
appId: __expectString,
|
|
1271
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1272
|
-
environmentName: __expectString,
|
|
1273
|
-
id: __expectString,
|
|
1274
|
-
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1275
|
-
});
|
|
1276
|
-
};
|
|
1277
|
-
const de_CodegenJobSummaryList = (output, context) => {
|
|
1278
|
-
const retVal = (output || [])
|
|
1279
|
-
.filter((e) => e != null)
|
|
1280
|
-
.map((entry) => {
|
|
1281
|
-
return de_CodegenJobSummary(entry, context);
|
|
1282
|
-
});
|
|
1283
|
-
return retVal;
|
|
1284
|
-
};
|
|
1285
|
-
const de_Component = (output, context) => {
|
|
1286
|
-
return take(output, {
|
|
1287
|
-
appId: __expectString,
|
|
1288
|
-
bindingProperties: (_) => de_ComponentBindingProperties(_, context),
|
|
1289
|
-
children: (_) => de_ComponentChildList(_, context),
|
|
1290
|
-
collectionProperties: (_) => de_ComponentCollectionProperties(_, context),
|
|
1291
|
-
componentType: __expectString,
|
|
1292
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1293
|
-
environmentName: __expectString,
|
|
1294
|
-
events: (_) => de_ComponentEvents(_, context),
|
|
1295
|
-
id: __expectString,
|
|
1296
|
-
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1297
|
-
name: __expectString,
|
|
1298
|
-
overrides: _json,
|
|
1299
|
-
properties: (_) => de_ComponentProperties(_, context),
|
|
1300
|
-
schemaVersion: __expectString,
|
|
1301
|
-
sourceId: __expectString,
|
|
1302
|
-
tags: _json,
|
|
1303
|
-
variants: _json,
|
|
1304
|
-
});
|
|
1305
|
-
};
|
|
1306
|
-
const de_ComponentBindingProperties = (output, context) => {
|
|
1307
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1308
|
-
if (value === null) {
|
|
1309
|
-
return acc;
|
|
1310
|
-
}
|
|
1311
|
-
acc[key] = de_ComponentBindingPropertiesValue(value, context);
|
|
1312
|
-
return acc;
|
|
1313
|
-
}, {});
|
|
1314
|
-
};
|
|
1315
|
-
const de_ComponentBindingPropertiesValue = (output, context) => {
|
|
1316
|
-
return take(output, {
|
|
1317
|
-
bindingProperties: (_) => de_ComponentBindingPropertiesValueProperties(_, context),
|
|
1318
|
-
defaultValue: __expectString,
|
|
1319
|
-
type: __expectString,
|
|
1320
|
-
});
|
|
1321
|
-
};
|
|
1322
|
-
const de_ComponentBindingPropertiesValueProperties = (output, context) => {
|
|
1323
|
-
return take(output, {
|
|
1324
|
-
bucket: __expectString,
|
|
1325
|
-
defaultValue: __expectString,
|
|
1326
|
-
field: __expectString,
|
|
1327
|
-
key: __expectString,
|
|
1328
|
-
model: __expectString,
|
|
1329
|
-
predicates: (_) => de_PredicateList(_, context),
|
|
1330
|
-
slotName: __expectString,
|
|
1331
|
-
userAttribute: __expectString,
|
|
1332
|
-
});
|
|
1333
|
-
};
|
|
1334
|
-
const de_ComponentChild = (output, context) => {
|
|
1335
|
-
return take(output, {
|
|
1336
|
-
children: (_) => de_ComponentChildList(_, context),
|
|
1337
|
-
componentType: __expectString,
|
|
1338
|
-
events: (_) => de_ComponentEvents(_, context),
|
|
1339
|
-
name: __expectString,
|
|
1340
|
-
properties: (_) => de_ComponentProperties(_, context),
|
|
1341
|
-
sourceId: __expectString,
|
|
1342
|
-
});
|
|
1343
|
-
};
|
|
1344
|
-
const de_ComponentChildList = (output, context) => {
|
|
1345
|
-
const retVal = (output || [])
|
|
1346
|
-
.filter((e) => e != null)
|
|
1347
|
-
.map((entry) => {
|
|
1348
|
-
return de_ComponentChild(entry, context);
|
|
1349
|
-
});
|
|
1350
|
-
return retVal;
|
|
1351
|
-
};
|
|
1352
|
-
const de_ComponentCollectionProperties = (output, context) => {
|
|
1353
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1354
|
-
if (value === null) {
|
|
1355
|
-
return acc;
|
|
1356
|
-
}
|
|
1357
|
-
acc[key] = de_ComponentDataConfiguration(value, context);
|
|
1358
|
-
return acc;
|
|
1359
|
-
}, {});
|
|
1360
|
-
};
|
|
1361
|
-
const de_ComponentConditionProperty = (output, context) => {
|
|
1362
|
-
return take(output, {
|
|
1363
|
-
else: (_) => de_ComponentProperty(_, context),
|
|
1364
|
-
field: __expectString,
|
|
1365
|
-
operand: __expectString,
|
|
1366
|
-
operandType: __expectString,
|
|
1367
|
-
operator: __expectString,
|
|
1368
|
-
property: __expectString,
|
|
1369
|
-
then: (_) => de_ComponentProperty(_, context),
|
|
1370
|
-
});
|
|
1371
|
-
};
|
|
1372
|
-
const de_ComponentDataConfiguration = (output, context) => {
|
|
1373
|
-
return take(output, {
|
|
1374
|
-
identifiers: _json,
|
|
1375
|
-
model: __expectString,
|
|
1376
|
-
predicate: (_) => de_Predicate(_, context),
|
|
1377
|
-
sort: _json,
|
|
1378
|
-
});
|
|
1379
|
-
};
|
|
1380
|
-
const de_ComponentEvent = (output, context) => {
|
|
1381
|
-
return take(output, {
|
|
1382
|
-
action: __expectString,
|
|
1383
|
-
bindingEvent: __expectString,
|
|
1384
|
-
parameters: (_) => de_ActionParameters(_, context),
|
|
1385
|
-
});
|
|
1386
|
-
};
|
|
1387
|
-
const de_ComponentEvents = (output, context) => {
|
|
1388
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1389
|
-
if (value === null) {
|
|
1390
|
-
return acc;
|
|
1391
|
-
}
|
|
1392
|
-
acc[key] = de_ComponentEvent(value, context);
|
|
1393
|
-
return acc;
|
|
1394
|
-
}, {});
|
|
1395
|
-
};
|
|
1396
|
-
const de_ComponentList = (output, context) => {
|
|
1397
|
-
const retVal = (output || [])
|
|
1398
|
-
.filter((e) => e != null)
|
|
1399
|
-
.map((entry) => {
|
|
1400
|
-
return de_Component(entry, context);
|
|
1401
|
-
});
|
|
1402
|
-
return retVal;
|
|
1403
|
-
};
|
|
1404
|
-
const de_ComponentProperties = (output, context) => {
|
|
1405
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1406
|
-
if (value === null) {
|
|
1407
|
-
return acc;
|
|
1408
|
-
}
|
|
1409
|
-
acc[key] = de_ComponentProperty(value, context);
|
|
1410
|
-
return acc;
|
|
1411
|
-
}, {});
|
|
1412
|
-
};
|
|
1413
|
-
const de_ComponentProperty = (output, context) => {
|
|
1414
|
-
return take(output, {
|
|
1415
|
-
bindingProperties: _json,
|
|
1416
|
-
bindings: _json,
|
|
1417
|
-
collectionBindingProperties: _json,
|
|
1418
|
-
componentName: __expectString,
|
|
1419
|
-
concat: (_) => de_ComponentPropertyList(_, context),
|
|
1420
|
-
condition: (_) => de_ComponentConditionProperty(_, context),
|
|
1421
|
-
configured: __expectBoolean,
|
|
1422
|
-
defaultValue: __expectString,
|
|
1423
|
-
event: __expectString,
|
|
1424
|
-
importedValue: __expectString,
|
|
1425
|
-
model: __expectString,
|
|
1426
|
-
property: __expectString,
|
|
1427
|
-
type: __expectString,
|
|
1428
|
-
userAttribute: __expectString,
|
|
1429
|
-
value: __expectString,
|
|
1430
|
-
});
|
|
1431
|
-
};
|
|
1432
|
-
const de_ComponentPropertyList = (output, context) => {
|
|
1433
|
-
const retVal = (output || [])
|
|
1434
|
-
.filter((e) => e != null)
|
|
1435
|
-
.map((entry) => {
|
|
1436
|
-
return de_ComponentProperty(entry, context);
|
|
1437
|
-
});
|
|
1438
|
-
return retVal;
|
|
1439
|
-
};
|
|
1440
|
-
const de_FieldConfig = (output, context) => {
|
|
1441
|
-
return take(output, {
|
|
1442
|
-
excluded: __expectBoolean,
|
|
1443
|
-
inputType: (_) => de_FieldInputConfig(_, context),
|
|
1444
|
-
label: __expectString,
|
|
1445
|
-
position: (_) => _json(__expectUnion(_)),
|
|
1446
|
-
validations: _json,
|
|
1447
|
-
});
|
|
1448
|
-
};
|
|
1449
|
-
const de_FieldInputConfig = (output, context) => {
|
|
1450
|
-
return take(output, {
|
|
1451
|
-
defaultChecked: __expectBoolean,
|
|
1452
|
-
defaultCountryCode: __expectString,
|
|
1453
|
-
defaultValue: __expectString,
|
|
1454
|
-
descriptiveText: __expectString,
|
|
1455
|
-
fileUploaderConfig: _json,
|
|
1456
|
-
isArray: __expectBoolean,
|
|
1457
|
-
maxValue: __limitedParseFloat32,
|
|
1458
|
-
minValue: __limitedParseFloat32,
|
|
1459
|
-
name: __expectString,
|
|
1460
|
-
placeholder: __expectString,
|
|
1461
|
-
readOnly: __expectBoolean,
|
|
1462
|
-
required: __expectBoolean,
|
|
1463
|
-
step: __limitedParseFloat32,
|
|
1464
|
-
type: __expectString,
|
|
1465
|
-
value: __expectString,
|
|
1466
|
-
valueMappings: (_) => de_ValueMappings(_, context),
|
|
1467
|
-
});
|
|
1468
|
-
};
|
|
1469
|
-
const de_FieldsMap = (output, context) => {
|
|
1470
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1471
|
-
if (value === null) {
|
|
1472
|
-
return acc;
|
|
1473
|
-
}
|
|
1474
|
-
acc[key] = de_FieldConfig(value, context);
|
|
1475
|
-
return acc;
|
|
1476
|
-
}, {});
|
|
1477
|
-
};
|
|
1478
|
-
const de_Form = (output, context) => {
|
|
1479
|
-
return take(output, {
|
|
1480
|
-
appId: __expectString,
|
|
1481
|
-
cta: _json,
|
|
1482
|
-
dataType: _json,
|
|
1483
|
-
environmentName: __expectString,
|
|
1484
|
-
fields: (_) => de_FieldsMap(_, context),
|
|
1485
|
-
formActionType: __expectString,
|
|
1486
|
-
id: __expectString,
|
|
1487
|
-
labelDecorator: __expectString,
|
|
1488
|
-
name: __expectString,
|
|
1489
|
-
schemaVersion: __expectString,
|
|
1490
|
-
sectionalElements: _json,
|
|
1491
|
-
style: _json,
|
|
1492
|
-
tags: _json,
|
|
1493
|
-
});
|
|
1494
|
-
};
|
|
1495
|
-
const de_FormInputValueProperty = (output, context) => {
|
|
1496
|
-
return take(output, {
|
|
1497
|
-
bindingProperties: _json,
|
|
1498
|
-
concat: (_) => de_FormInputValuePropertyList(_, context),
|
|
1499
|
-
value: __expectString,
|
|
1500
|
-
});
|
|
1501
|
-
};
|
|
1502
|
-
const de_FormInputValuePropertyList = (output, context) => {
|
|
1503
|
-
const retVal = (output || [])
|
|
1504
|
-
.filter((e) => e != null)
|
|
1505
|
-
.map((entry) => {
|
|
1506
|
-
return de_FormInputValueProperty(entry, context);
|
|
1507
|
-
});
|
|
1508
|
-
return retVal;
|
|
1509
|
-
};
|
|
1510
|
-
const de_FormList = (output, context) => {
|
|
1511
|
-
const retVal = (output || [])
|
|
1512
|
-
.filter((e) => e != null)
|
|
1513
|
-
.map((entry) => {
|
|
1514
|
-
return de_Form(entry, context);
|
|
1515
|
-
});
|
|
1516
|
-
return retVal;
|
|
1517
|
-
};
|
|
1518
|
-
const de_MutationActionSetStateParameter = (output, context) => {
|
|
1519
|
-
return take(output, {
|
|
1520
|
-
componentName: __expectString,
|
|
1521
|
-
property: __expectString,
|
|
1522
|
-
set: (_) => de_ComponentProperty(_, context),
|
|
1523
|
-
});
|
|
1524
|
-
};
|
|
1525
|
-
const de_Predicate = (output, context) => {
|
|
1526
|
-
return take(output, {
|
|
1527
|
-
and: (_) => de_PredicateList(_, context),
|
|
1528
|
-
field: __expectString,
|
|
1529
|
-
operand: __expectString,
|
|
1530
|
-
operandType: __expectString,
|
|
1531
|
-
operator: __expectString,
|
|
1532
|
-
or: (_) => de_PredicateList(_, context),
|
|
1533
|
-
});
|
|
1534
|
-
};
|
|
1535
|
-
const de_PredicateList = (output, context) => {
|
|
1536
|
-
const retVal = (output || [])
|
|
1537
|
-
.filter((e) => e != null)
|
|
1538
|
-
.map((entry) => {
|
|
1539
|
-
return de_Predicate(entry, context);
|
|
1540
|
-
});
|
|
1541
|
-
return retVal;
|
|
1542
|
-
};
|
|
1543
|
-
const de_Theme = (output, context) => {
|
|
1544
|
-
return take(output, {
|
|
1545
|
-
appId: __expectString,
|
|
1546
|
-
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1547
|
-
environmentName: __expectString,
|
|
1548
|
-
id: __expectString,
|
|
1549
|
-
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1550
|
-
name: __expectString,
|
|
1551
|
-
overrides: (_) => de_ThemeValuesList(_, context),
|
|
1552
|
-
tags: _json,
|
|
1553
|
-
values: (_) => de_ThemeValuesList(_, context),
|
|
1554
|
-
});
|
|
1555
|
-
};
|
|
1556
|
-
const de_ThemeList = (output, context) => {
|
|
1557
|
-
const retVal = (output || [])
|
|
1558
|
-
.filter((e) => e != null)
|
|
1559
|
-
.map((entry) => {
|
|
1560
|
-
return de_Theme(entry, context);
|
|
1561
|
-
});
|
|
1562
|
-
return retVal;
|
|
1563
|
-
};
|
|
1564
|
-
const de_ThemeValue = (output, context) => {
|
|
1565
|
-
return take(output, {
|
|
1566
|
-
children: (_) => de_ThemeValuesList(_, context),
|
|
1567
|
-
value: __expectString,
|
|
1568
|
-
});
|
|
1569
|
-
};
|
|
1570
|
-
const de_ThemeValues = (output, context) => {
|
|
1571
|
-
return take(output, {
|
|
1572
|
-
key: __expectString,
|
|
1573
|
-
value: (_) => de_ThemeValue(_, context),
|
|
1574
|
-
});
|
|
1575
|
-
};
|
|
1576
|
-
const de_ThemeValuesList = (output, context) => {
|
|
1577
|
-
const retVal = (output || [])
|
|
1578
|
-
.filter((e) => e != null)
|
|
1579
|
-
.map((entry) => {
|
|
1580
|
-
return de_ThemeValues(entry, context);
|
|
1581
|
-
});
|
|
1582
|
-
return retVal;
|
|
1583
|
-
};
|
|
1584
|
-
const de_ValueMapping = (output, context) => {
|
|
1585
|
-
return take(output, {
|
|
1586
|
-
displayValue: (_) => de_FormInputValueProperty(_, context),
|
|
1587
|
-
value: (_) => de_FormInputValueProperty(_, context),
|
|
1588
|
-
});
|
|
1589
|
-
};
|
|
1590
|
-
const de_ValueMappingList = (output, context) => {
|
|
1591
|
-
const retVal = (output || [])
|
|
1592
|
-
.filter((e) => e != null)
|
|
1593
|
-
.map((entry) => {
|
|
1594
|
-
return de_ValueMapping(entry, context);
|
|
1595
|
-
});
|
|
1596
|
-
return retVal;
|
|
1597
|
-
};
|
|
1598
|
-
const de_ValueMappings = (output, context) => {
|
|
1599
|
-
return take(output, {
|
|
1600
|
-
bindingProperties: _json,
|
|
1601
|
-
values: (_) => de_ValueMappingList(_, context),
|
|
1602
|
-
});
|
|
1603
|
-
};
|
|
1604
|
-
const deserializeMetadata = (output) => ({
|
|
1605
|
-
httpStatusCode: output.statusCode,
|
|
1606
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1607
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1608
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
1609
|
-
});
|
|
1610
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
1611
|
-
const _cT = "clientToken";
|
|
1612
|
-
const _mR = "maxResults";
|
|
1613
|
-
const _nT = "nextToken";
|
|
1614
|
-
const _tK = "tagKeys";
|