@aws-sdk/client-amplifyuibuilder 3.348.0 → 3.351.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/README.md +24 -0
- package/dist-cjs/AmplifyUIBuilder.js +6 -0
- package/dist-cjs/commands/GetCodegenJobCommand.js +46 -0
- package/dist-cjs/commands/ListCodegenJobsCommand.js +46 -0
- package/dist-cjs/commands/StartCodegenJobCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +80 -14
- package/dist-cjs/pagination/ListCodegenJobsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_restJson1.js +242 -1
- package/dist-es/AmplifyUIBuilder.js +6 -0
- package/dist-es/commands/GetCodegenJobCommand.js +42 -0
- package/dist-es/commands/ListCodegenJobsCommand.js +42 -0
- package/dist-es/commands/StartCodegenJobCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +77 -12
- package/dist-es/pagination/ListCodegenJobsPaginator.js +25 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +236 -1
- package/dist-types/AmplifyUIBuilder.d.ts +21 -0
- package/dist-types/AmplifyUIBuilderClient.d.ts +5 -2
- package/dist-types/commands/CreateFormCommand.d.ts +1 -1
- package/dist-types/commands/GetCodegenJobCommand.d.ts +185 -0
- package/dist-types/commands/ListCodegenJobsCommand.d.ts +94 -0
- package/dist-types/commands/StartCodegenJobCommand.d.ts +271 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +549 -28
- package/dist-types/pagination/ListCodegenJobsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/AmplifyUIBuilder.d.ts +51 -0
- package/dist-types/ts3.4/AmplifyUIBuilderClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/GetCodegenJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListCodegenJobsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/StartCodegenJobCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +201 -14
- package/dist-types/ts3.4/pagination/ListCodegenJobsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +4 -4
|
@@ -2,7 +2,7 @@ import { _json, decorateServiceException as __decorateServiceException, expectBo
|
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { AmplifyUIBuilderServiceException as __BaseException } from "../models/AmplifyUIBuilderServiceException";
|
|
5
|
-
import { InternalServerException, InvalidParameterException, ResourceConflictException, ResourceNotFoundException, ServiceQuotaExceededException, UnauthorizedException, } from "../models/models_0";
|
|
5
|
+
import { InternalServerException, InvalidParameterException, ResourceConflictException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnauthorizedException, } from "../models/models_0";
|
|
6
6
|
export const se_CreateComponentCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
@@ -244,6 +244,25 @@ export const se_ExportThemesCommand = async (input, context) => {
|
|
|
244
244
|
body,
|
|
245
245
|
});
|
|
246
246
|
};
|
|
247
|
+
export const se_GetCodegenJobCommand = async (input, context) => {
|
|
248
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
249
|
+
const headers = {};
|
|
250
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
251
|
+
"/app/{appId}/environment/{environmentName}/codegen-jobs/{id}";
|
|
252
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
|
|
253
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
|
|
254
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
|
|
255
|
+
let body;
|
|
256
|
+
return new __HttpRequest({
|
|
257
|
+
protocol,
|
|
258
|
+
hostname,
|
|
259
|
+
port,
|
|
260
|
+
method: "GET",
|
|
261
|
+
headers,
|
|
262
|
+
path: resolvedPath,
|
|
263
|
+
body,
|
|
264
|
+
});
|
|
265
|
+
};
|
|
247
266
|
export const se_GetComponentCommand = async (input, context) => {
|
|
248
267
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
249
268
|
const headers = {};
|
|
@@ -319,6 +338,29 @@ export const se_GetThemeCommand = async (input, context) => {
|
|
|
319
338
|
body,
|
|
320
339
|
});
|
|
321
340
|
};
|
|
341
|
+
export const se_ListCodegenJobsCommand = async (input, context) => {
|
|
342
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
343
|
+
const headers = {};
|
|
344
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
345
|
+
"/app/{appId}/environment/{environmentName}/codegen-jobs";
|
|
346
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
|
|
347
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
|
|
348
|
+
const query = map({
|
|
349
|
+
nextToken: [, input.nextToken],
|
|
350
|
+
maxResults: [() => input.maxResults !== void 0, () => input.maxResults.toString()],
|
|
351
|
+
});
|
|
352
|
+
let body;
|
|
353
|
+
return new __HttpRequest({
|
|
354
|
+
protocol,
|
|
355
|
+
hostname,
|
|
356
|
+
port,
|
|
357
|
+
method: "GET",
|
|
358
|
+
headers,
|
|
359
|
+
path: resolvedPath,
|
|
360
|
+
query,
|
|
361
|
+
body,
|
|
362
|
+
});
|
|
363
|
+
};
|
|
322
364
|
export const se_ListComponentsCommand = async (input, context) => {
|
|
323
365
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
324
366
|
const headers = {};
|
|
@@ -441,6 +483,37 @@ export const se_RefreshTokenCommand = async (input, context) => {
|
|
|
441
483
|
body,
|
|
442
484
|
});
|
|
443
485
|
};
|
|
486
|
+
export const se_StartCodegenJobCommand = async (input, context) => {
|
|
487
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
488
|
+
const headers = {
|
|
489
|
+
"content-type": "application/json",
|
|
490
|
+
};
|
|
491
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` +
|
|
492
|
+
"/app/{appId}/environment/{environmentName}/codegen-jobs";
|
|
493
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
|
|
494
|
+
resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
|
|
495
|
+
const query = map({
|
|
496
|
+
clientToken: [, input.clientToken ?? generateIdempotencyToken()],
|
|
497
|
+
});
|
|
498
|
+
let body;
|
|
499
|
+
if (input.codegenJobToCreate !== undefined) {
|
|
500
|
+
body = _json(input.codegenJobToCreate);
|
|
501
|
+
}
|
|
502
|
+
if (body === undefined) {
|
|
503
|
+
body = {};
|
|
504
|
+
}
|
|
505
|
+
body = JSON.stringify(body);
|
|
506
|
+
return new __HttpRequest({
|
|
507
|
+
protocol,
|
|
508
|
+
hostname,
|
|
509
|
+
port,
|
|
510
|
+
method: "POST",
|
|
511
|
+
headers,
|
|
512
|
+
path: resolvedPath,
|
|
513
|
+
query,
|
|
514
|
+
body,
|
|
515
|
+
});
|
|
516
|
+
};
|
|
444
517
|
export const se_UpdateComponentCommand = async (input, context) => {
|
|
445
518
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
446
519
|
const headers = {
|
|
@@ -905,6 +978,45 @@ const de_ExportThemesCommandError = async (output, context) => {
|
|
|
905
978
|
});
|
|
906
979
|
}
|
|
907
980
|
};
|
|
981
|
+
export const de_GetCodegenJobCommand = async (output, context) => {
|
|
982
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
983
|
+
return de_GetCodegenJobCommandError(output, context);
|
|
984
|
+
}
|
|
985
|
+
const contents = map({
|
|
986
|
+
$metadata: deserializeMetadata(output),
|
|
987
|
+
});
|
|
988
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
989
|
+
contents.job = de_CodegenJob(data, context);
|
|
990
|
+
return contents;
|
|
991
|
+
};
|
|
992
|
+
const de_GetCodegenJobCommandError = async (output, context) => {
|
|
993
|
+
const parsedOutput = {
|
|
994
|
+
...output,
|
|
995
|
+
body: await parseErrorBody(output.body, context),
|
|
996
|
+
};
|
|
997
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
998
|
+
switch (errorCode) {
|
|
999
|
+
case "InternalServerException":
|
|
1000
|
+
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1001
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1002
|
+
case "InvalidParameterException":
|
|
1003
|
+
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1004
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1005
|
+
case "ResourceNotFoundException":
|
|
1006
|
+
case "com.amazonaws.amplifyuibuilder#ResourceNotFoundException":
|
|
1007
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1008
|
+
case "ThrottlingException":
|
|
1009
|
+
case "com.amazonaws.amplifyuibuilder#ThrottlingException":
|
|
1010
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1011
|
+
default:
|
|
1012
|
+
const parsedBody = parsedOutput.body;
|
|
1013
|
+
return throwDefaultError({
|
|
1014
|
+
output,
|
|
1015
|
+
parsedBody,
|
|
1016
|
+
errorCode,
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
1019
|
+
};
|
|
908
1020
|
export const de_GetComponentCommand = async (output, context) => {
|
|
909
1021
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
910
1022
|
return de_GetComponentCommandError(output, context);
|
|
@@ -1049,6 +1161,46 @@ const de_GetThemeCommandError = async (output, context) => {
|
|
|
1049
1161
|
});
|
|
1050
1162
|
}
|
|
1051
1163
|
};
|
|
1164
|
+
export const de_ListCodegenJobsCommand = async (output, context) => {
|
|
1165
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1166
|
+
return de_ListCodegenJobsCommandError(output, context);
|
|
1167
|
+
}
|
|
1168
|
+
const contents = map({
|
|
1169
|
+
$metadata: deserializeMetadata(output),
|
|
1170
|
+
});
|
|
1171
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
1172
|
+
const doc = take(data, {
|
|
1173
|
+
entities: (_) => de_CodegenJobSummaryList(_, context),
|
|
1174
|
+
nextToken: __expectString,
|
|
1175
|
+
});
|
|
1176
|
+
Object.assign(contents, doc);
|
|
1177
|
+
return contents;
|
|
1178
|
+
};
|
|
1179
|
+
const de_ListCodegenJobsCommandError = async (output, context) => {
|
|
1180
|
+
const parsedOutput = {
|
|
1181
|
+
...output,
|
|
1182
|
+
body: await parseErrorBody(output.body, context),
|
|
1183
|
+
};
|
|
1184
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1185
|
+
switch (errorCode) {
|
|
1186
|
+
case "InternalServerException":
|
|
1187
|
+
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1188
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1189
|
+
case "InvalidParameterException":
|
|
1190
|
+
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1191
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1192
|
+
case "ThrottlingException":
|
|
1193
|
+
case "com.amazonaws.amplifyuibuilder#ThrottlingException":
|
|
1194
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1195
|
+
default:
|
|
1196
|
+
const parsedBody = parsedOutput.body;
|
|
1197
|
+
return throwDefaultError({
|
|
1198
|
+
output,
|
|
1199
|
+
parsedBody,
|
|
1200
|
+
errorCode,
|
|
1201
|
+
});
|
|
1202
|
+
}
|
|
1203
|
+
};
|
|
1052
1204
|
export const de_ListComponentsCommand = async (output, context) => {
|
|
1053
1205
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1054
1206
|
return de_ListComponentsCommandError(output, context);
|
|
@@ -1226,6 +1378,42 @@ const de_RefreshTokenCommandError = async (output, context) => {
|
|
|
1226
1378
|
});
|
|
1227
1379
|
}
|
|
1228
1380
|
};
|
|
1381
|
+
export const de_StartCodegenJobCommand = async (output, context) => {
|
|
1382
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1383
|
+
return de_StartCodegenJobCommandError(output, context);
|
|
1384
|
+
}
|
|
1385
|
+
const contents = map({
|
|
1386
|
+
$metadata: deserializeMetadata(output),
|
|
1387
|
+
});
|
|
1388
|
+
const data = __expectObject(await parseBody(output.body, context));
|
|
1389
|
+
contents.entity = de_CodegenJob(data, context);
|
|
1390
|
+
return contents;
|
|
1391
|
+
};
|
|
1392
|
+
const de_StartCodegenJobCommandError = async (output, context) => {
|
|
1393
|
+
const parsedOutput = {
|
|
1394
|
+
...output,
|
|
1395
|
+
body: await parseErrorBody(output.body, context),
|
|
1396
|
+
};
|
|
1397
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1398
|
+
switch (errorCode) {
|
|
1399
|
+
case "InternalServerException":
|
|
1400
|
+
case "com.amazonaws.amplifyuibuilder#InternalServerException":
|
|
1401
|
+
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1402
|
+
case "InvalidParameterException":
|
|
1403
|
+
case "com.amazonaws.amplifyuibuilder#InvalidParameterException":
|
|
1404
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
1405
|
+
case "ThrottlingException":
|
|
1406
|
+
case "com.amazonaws.amplifyuibuilder#ThrottlingException":
|
|
1407
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1408
|
+
default:
|
|
1409
|
+
const parsedBody = parsedOutput.body;
|
|
1410
|
+
return throwDefaultError({
|
|
1411
|
+
output,
|
|
1412
|
+
parsedBody,
|
|
1413
|
+
errorCode,
|
|
1414
|
+
});
|
|
1415
|
+
}
|
|
1416
|
+
};
|
|
1229
1417
|
export const de_UpdateComponentCommand = async (output, context) => {
|
|
1230
1418
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1231
1419
|
return de_UpdateComponentCommandError(output, context);
|
|
@@ -1400,6 +1588,19 @@ const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1400
1588
|
});
|
|
1401
1589
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
1402
1590
|
};
|
|
1591
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1592
|
+
const contents = map({});
|
|
1593
|
+
const data = parsedOutput.body;
|
|
1594
|
+
const doc = take(data, {
|
|
1595
|
+
message: __expectString,
|
|
1596
|
+
});
|
|
1597
|
+
Object.assign(contents, doc);
|
|
1598
|
+
const exception = new ThrottlingException({
|
|
1599
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1600
|
+
...contents,
|
|
1601
|
+
});
|
|
1602
|
+
return __decorateServiceException(exception, parsedOutput.body);
|
|
1603
|
+
};
|
|
1403
1604
|
const de_UnauthorizedExceptionRes = async (parsedOutput, context) => {
|
|
1404
1605
|
const contents = map({});
|
|
1405
1606
|
const data = parsedOutput.body;
|
|
@@ -1752,6 +1953,40 @@ const de_ActionParameters = (output, context) => {
|
|
|
1752
1953
|
url: (_) => de_ComponentProperty(_, context),
|
|
1753
1954
|
});
|
|
1754
1955
|
};
|
|
1956
|
+
const de_CodegenJob = (output, context) => {
|
|
1957
|
+
return take(output, {
|
|
1958
|
+
appId: __expectString,
|
|
1959
|
+
asset: _json,
|
|
1960
|
+
autoGenerateForms: __expectBoolean,
|
|
1961
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1962
|
+
environmentName: __expectString,
|
|
1963
|
+
features: _json,
|
|
1964
|
+
genericDataSchema: _json,
|
|
1965
|
+
id: __expectString,
|
|
1966
|
+
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1967
|
+
renderConfig: (_) => _json(__expectUnion(_)),
|
|
1968
|
+
status: __expectString,
|
|
1969
|
+
statusMessage: __expectString,
|
|
1970
|
+
tags: _json,
|
|
1971
|
+
});
|
|
1972
|
+
};
|
|
1973
|
+
const de_CodegenJobSummary = (output, context) => {
|
|
1974
|
+
return take(output, {
|
|
1975
|
+
appId: __expectString,
|
|
1976
|
+
createdAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1977
|
+
environmentName: __expectString,
|
|
1978
|
+
id: __expectString,
|
|
1979
|
+
modifiedAt: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
|
|
1980
|
+
});
|
|
1981
|
+
};
|
|
1982
|
+
const de_CodegenJobSummaryList = (output, context) => {
|
|
1983
|
+
const retVal = (output || [])
|
|
1984
|
+
.filter((e) => e != null)
|
|
1985
|
+
.map((entry) => {
|
|
1986
|
+
return de_CodegenJobSummary(entry, context);
|
|
1987
|
+
});
|
|
1988
|
+
return retVal;
|
|
1989
|
+
};
|
|
1755
1990
|
const de_Component = (output, context) => {
|
|
1756
1991
|
return take(output, {
|
|
1757
1992
|
appId: __expectString,
|
|
@@ -10,15 +10,18 @@ import { ExchangeCodeForTokenCommandInput, ExchangeCodeForTokenCommandOutput } f
|
|
|
10
10
|
import { ExportComponentsCommandInput, ExportComponentsCommandOutput } from "./commands/ExportComponentsCommand";
|
|
11
11
|
import { ExportFormsCommandInput, ExportFormsCommandOutput } from "./commands/ExportFormsCommand";
|
|
12
12
|
import { ExportThemesCommandInput, ExportThemesCommandOutput } from "./commands/ExportThemesCommand";
|
|
13
|
+
import { GetCodegenJobCommandInput, GetCodegenJobCommandOutput } from "./commands/GetCodegenJobCommand";
|
|
13
14
|
import { GetComponentCommandInput, GetComponentCommandOutput } from "./commands/GetComponentCommand";
|
|
14
15
|
import { GetFormCommandInput, GetFormCommandOutput } from "./commands/GetFormCommand";
|
|
15
16
|
import { GetMetadataCommandInput, GetMetadataCommandOutput } from "./commands/GetMetadataCommand";
|
|
16
17
|
import { GetThemeCommandInput, GetThemeCommandOutput } from "./commands/GetThemeCommand";
|
|
18
|
+
import { ListCodegenJobsCommandInput, ListCodegenJobsCommandOutput } from "./commands/ListCodegenJobsCommand";
|
|
17
19
|
import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
|
|
18
20
|
import { ListFormsCommandInput, ListFormsCommandOutput } from "./commands/ListFormsCommand";
|
|
19
21
|
import { ListThemesCommandInput, ListThemesCommandOutput } from "./commands/ListThemesCommand";
|
|
20
22
|
import { PutMetadataFlagCommandInput, PutMetadataFlagCommandOutput } from "./commands/PutMetadataFlagCommand";
|
|
21
23
|
import { RefreshTokenCommandInput, RefreshTokenCommandOutput } from "./commands/RefreshTokenCommand";
|
|
24
|
+
import { StartCodegenJobCommandInput, StartCodegenJobCommandOutput } from "./commands/StartCodegenJobCommand";
|
|
22
25
|
import { UpdateComponentCommandInput, UpdateComponentCommandOutput } from "./commands/UpdateComponentCommand";
|
|
23
26
|
import { UpdateFormCommandInput, UpdateFormCommandOutput } from "./commands/UpdateFormCommand";
|
|
24
27
|
import { UpdateThemeCommandInput, UpdateThemeCommandOutput } from "./commands/UpdateThemeCommand";
|
|
@@ -83,6 +86,12 @@ export interface AmplifyUIBuilder {
|
|
|
83
86
|
exportThemes(args: ExportThemesCommandInput, options?: __HttpHandlerOptions): Promise<ExportThemesCommandOutput>;
|
|
84
87
|
exportThemes(args: ExportThemesCommandInput, cb: (err: any, data?: ExportThemesCommandOutput) => void): void;
|
|
85
88
|
exportThemes(args: ExportThemesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExportThemesCommandOutput) => void): void;
|
|
89
|
+
/**
|
|
90
|
+
* @see {@link GetCodegenJobCommand}
|
|
91
|
+
*/
|
|
92
|
+
getCodegenJob(args: GetCodegenJobCommandInput, options?: __HttpHandlerOptions): Promise<GetCodegenJobCommandOutput>;
|
|
93
|
+
getCodegenJob(args: GetCodegenJobCommandInput, cb: (err: any, data?: GetCodegenJobCommandOutput) => void): void;
|
|
94
|
+
getCodegenJob(args: GetCodegenJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCodegenJobCommandOutput) => void): void;
|
|
86
95
|
/**
|
|
87
96
|
* @see {@link GetComponentCommand}
|
|
88
97
|
*/
|
|
@@ -107,6 +116,12 @@ export interface AmplifyUIBuilder {
|
|
|
107
116
|
getTheme(args: GetThemeCommandInput, options?: __HttpHandlerOptions): Promise<GetThemeCommandOutput>;
|
|
108
117
|
getTheme(args: GetThemeCommandInput, cb: (err: any, data?: GetThemeCommandOutput) => void): void;
|
|
109
118
|
getTheme(args: GetThemeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetThemeCommandOutput) => void): void;
|
|
119
|
+
/**
|
|
120
|
+
* @see {@link ListCodegenJobsCommand}
|
|
121
|
+
*/
|
|
122
|
+
listCodegenJobs(args: ListCodegenJobsCommandInput, options?: __HttpHandlerOptions): Promise<ListCodegenJobsCommandOutput>;
|
|
123
|
+
listCodegenJobs(args: ListCodegenJobsCommandInput, cb: (err: any, data?: ListCodegenJobsCommandOutput) => void): void;
|
|
124
|
+
listCodegenJobs(args: ListCodegenJobsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCodegenJobsCommandOutput) => void): void;
|
|
110
125
|
/**
|
|
111
126
|
* @see {@link ListComponentsCommand}
|
|
112
127
|
*/
|
|
@@ -137,6 +152,12 @@ export interface AmplifyUIBuilder {
|
|
|
137
152
|
refreshToken(args: RefreshTokenCommandInput, options?: __HttpHandlerOptions): Promise<RefreshTokenCommandOutput>;
|
|
138
153
|
refreshToken(args: RefreshTokenCommandInput, cb: (err: any, data?: RefreshTokenCommandOutput) => void): void;
|
|
139
154
|
refreshToken(args: RefreshTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RefreshTokenCommandOutput) => void): void;
|
|
155
|
+
/**
|
|
156
|
+
* @see {@link StartCodegenJobCommand}
|
|
157
|
+
*/
|
|
158
|
+
startCodegenJob(args: StartCodegenJobCommandInput, options?: __HttpHandlerOptions): Promise<StartCodegenJobCommandOutput>;
|
|
159
|
+
startCodegenJob(args: StartCodegenJobCommandInput, cb: (err: any, data?: StartCodegenJobCommandOutput) => void): void;
|
|
160
|
+
startCodegenJob(args: StartCodegenJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartCodegenJobCommandOutput) => void): void;
|
|
140
161
|
/**
|
|
141
162
|
* @see {@link UpdateComponentCommand}
|
|
142
163
|
*/
|
|
@@ -18,15 +18,18 @@ import { ExchangeCodeForTokenCommandInput, ExchangeCodeForTokenCommandOutput } f
|
|
|
18
18
|
import { ExportComponentsCommandInput, ExportComponentsCommandOutput } from "./commands/ExportComponentsCommand";
|
|
19
19
|
import { ExportFormsCommandInput, ExportFormsCommandOutput } from "./commands/ExportFormsCommand";
|
|
20
20
|
import { ExportThemesCommandInput, ExportThemesCommandOutput } from "./commands/ExportThemesCommand";
|
|
21
|
+
import { GetCodegenJobCommandInput, GetCodegenJobCommandOutput } from "./commands/GetCodegenJobCommand";
|
|
21
22
|
import { GetComponentCommandInput, GetComponentCommandOutput } from "./commands/GetComponentCommand";
|
|
22
23
|
import { GetFormCommandInput, GetFormCommandOutput } from "./commands/GetFormCommand";
|
|
23
24
|
import { GetMetadataCommandInput, GetMetadataCommandOutput } from "./commands/GetMetadataCommand";
|
|
24
25
|
import { GetThemeCommandInput, GetThemeCommandOutput } from "./commands/GetThemeCommand";
|
|
26
|
+
import { ListCodegenJobsCommandInput, ListCodegenJobsCommandOutput } from "./commands/ListCodegenJobsCommand";
|
|
25
27
|
import { ListComponentsCommandInput, ListComponentsCommandOutput } from "./commands/ListComponentsCommand";
|
|
26
28
|
import { ListFormsCommandInput, ListFormsCommandOutput } from "./commands/ListFormsCommand";
|
|
27
29
|
import { ListThemesCommandInput, ListThemesCommandOutput } from "./commands/ListThemesCommand";
|
|
28
30
|
import { PutMetadataFlagCommandInput, PutMetadataFlagCommandOutput } from "./commands/PutMetadataFlagCommand";
|
|
29
31
|
import { RefreshTokenCommandInput, RefreshTokenCommandOutput } from "./commands/RefreshTokenCommand";
|
|
32
|
+
import { StartCodegenJobCommandInput, StartCodegenJobCommandOutput } from "./commands/StartCodegenJobCommand";
|
|
30
33
|
import { UpdateComponentCommandInput, UpdateComponentCommandOutput } from "./commands/UpdateComponentCommand";
|
|
31
34
|
import { UpdateFormCommandInput, UpdateFormCommandOutput } from "./commands/UpdateFormCommand";
|
|
32
35
|
import { UpdateThemeCommandInput, UpdateThemeCommandOutput } from "./commands/UpdateThemeCommand";
|
|
@@ -35,11 +38,11 @@ export { __Client };
|
|
|
35
38
|
/**
|
|
36
39
|
* @public
|
|
37
40
|
*/
|
|
38
|
-
export type ServiceInputTypes = CreateComponentCommandInput | CreateFormCommandInput | CreateThemeCommandInput | DeleteComponentCommandInput | DeleteFormCommandInput | DeleteThemeCommandInput | ExchangeCodeForTokenCommandInput | ExportComponentsCommandInput | ExportFormsCommandInput | ExportThemesCommandInput | GetComponentCommandInput | GetFormCommandInput | GetMetadataCommandInput | GetThemeCommandInput | ListComponentsCommandInput | ListFormsCommandInput | ListThemesCommandInput | PutMetadataFlagCommandInput | RefreshTokenCommandInput | UpdateComponentCommandInput | UpdateFormCommandInput | UpdateThemeCommandInput;
|
|
41
|
+
export type ServiceInputTypes = CreateComponentCommandInput | CreateFormCommandInput | CreateThemeCommandInput | DeleteComponentCommandInput | DeleteFormCommandInput | DeleteThemeCommandInput | ExchangeCodeForTokenCommandInput | ExportComponentsCommandInput | ExportFormsCommandInput | ExportThemesCommandInput | GetCodegenJobCommandInput | GetComponentCommandInput | GetFormCommandInput | GetMetadataCommandInput | GetThemeCommandInput | ListCodegenJobsCommandInput | ListComponentsCommandInput | ListFormsCommandInput | ListThemesCommandInput | PutMetadataFlagCommandInput | RefreshTokenCommandInput | StartCodegenJobCommandInput | UpdateComponentCommandInput | UpdateFormCommandInput | UpdateThemeCommandInput;
|
|
39
42
|
/**
|
|
40
43
|
* @public
|
|
41
44
|
*/
|
|
42
|
-
export type ServiceOutputTypes = CreateComponentCommandOutput | CreateFormCommandOutput | CreateThemeCommandOutput | DeleteComponentCommandOutput | DeleteFormCommandOutput | DeleteThemeCommandOutput | ExchangeCodeForTokenCommandOutput | ExportComponentsCommandOutput | ExportFormsCommandOutput | ExportThemesCommandOutput | GetComponentCommandOutput | GetFormCommandOutput | GetMetadataCommandOutput | GetThemeCommandOutput | ListComponentsCommandOutput | ListFormsCommandOutput | ListThemesCommandOutput | PutMetadataFlagCommandOutput | RefreshTokenCommandOutput | UpdateComponentCommandOutput | UpdateFormCommandOutput | UpdateThemeCommandOutput;
|
|
45
|
+
export type ServiceOutputTypes = CreateComponentCommandOutput | CreateFormCommandOutput | CreateThemeCommandOutput | DeleteComponentCommandOutput | DeleteFormCommandOutput | DeleteThemeCommandOutput | ExchangeCodeForTokenCommandOutput | ExportComponentsCommandOutput | ExportFormsCommandOutput | ExportThemesCommandOutput | GetCodegenJobCommandOutput | GetComponentCommandOutput | GetFormCommandOutput | GetMetadataCommandOutput | GetThemeCommandOutput | ListCodegenJobsCommandOutput | ListComponentsCommandOutput | ListFormsCommandOutput | ListThemesCommandOutput | PutMetadataFlagCommandOutput | RefreshTokenCommandOutput | StartCodegenJobCommandOutput | UpdateComponentCommandOutput | UpdateFormCommandOutput | UpdateThemeCommandOutput;
|
|
43
46
|
/**
|
|
44
47
|
* @public
|
|
45
48
|
*/
|
|
@@ -23,7 +23,7 @@ export interface CreateFormCommandOutput extends CreateFormResponse, __MetadataB
|
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* @public
|
|
26
|
-
* <p>Creates a new form for an Amplify
|
|
26
|
+
* <p>Creates a new form for an Amplify.</p>
|
|
27
27
|
* @example
|
|
28
28
|
* Use a bare-bones client and the command you need to make an API call.
|
|
29
29
|
* ```javascript
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { AmplifyUIBuilderClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyUIBuilderClient";
|
|
5
|
+
import { GetCodegenJobRequest, GetCodegenJobResponse } from "../models/models_0";
|
|
6
|
+
/**
|
|
7
|
+
* @public
|
|
8
|
+
*/
|
|
9
|
+
export { __MetadataBearer, $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link GetCodegenJobCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface GetCodegenJobCommandInput extends GetCodegenJobRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link GetCodegenJobCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface GetCodegenJobCommandOutput extends GetCodegenJobResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
* <p>Returns an existing code generation job.</p>
|
|
27
|
+
* @example
|
|
28
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
29
|
+
* ```javascript
|
|
30
|
+
* import { AmplifyUIBuilderClient, GetCodegenJobCommand } from "@aws-sdk/client-amplifyuibuilder"; // ES Modules import
|
|
31
|
+
* // const { AmplifyUIBuilderClient, GetCodegenJobCommand } = require("@aws-sdk/client-amplifyuibuilder"); // CommonJS import
|
|
32
|
+
* const client = new AmplifyUIBuilderClient(config);
|
|
33
|
+
* const input = { // GetCodegenJobRequest
|
|
34
|
+
* appId: "STRING_VALUE", // required
|
|
35
|
+
* environmentName: "STRING_VALUE", // required
|
|
36
|
+
* id: "STRING_VALUE", // required
|
|
37
|
+
* };
|
|
38
|
+
* const command = new GetCodegenJobCommand(input);
|
|
39
|
+
* const response = await client.send(command);
|
|
40
|
+
* // { // GetCodegenJobResponse
|
|
41
|
+
* // job: { // CodegenJob
|
|
42
|
+
* // id: "STRING_VALUE", // required
|
|
43
|
+
* // appId: "STRING_VALUE", // required
|
|
44
|
+
* // environmentName: "STRING_VALUE", // required
|
|
45
|
+
* // renderConfig: { // CodegenJobRenderConfig Union: only one key present
|
|
46
|
+
* // react: { // ReactStartCodegenJobData
|
|
47
|
+
* // module: "es2020" || "esnext",
|
|
48
|
+
* // target: "es2015" || "es2020",
|
|
49
|
+
* // script: "jsx" || "tsx" || "js",
|
|
50
|
+
* // renderTypeDeclarations: true || false,
|
|
51
|
+
* // inlineSourceMap: true || false,
|
|
52
|
+
* // },
|
|
53
|
+
* // },
|
|
54
|
+
* // genericDataSchema: { // CodegenJobGenericDataSchema
|
|
55
|
+
* // dataSourceType: "DataStore", // required
|
|
56
|
+
* // models: { // CodegenGenericDataModels // required
|
|
57
|
+
* // "<keys>": { // CodegenGenericDataModel
|
|
58
|
+
* // fields: { // CodegenGenericDataFields // required
|
|
59
|
+
* // "<keys>": { // CodegenGenericDataField
|
|
60
|
+
* // dataType: "ID" || "String" || "Int" || "Float" || "AWSDate" || "AWSTime" || "AWSDateTime" || "AWSTimestamp" || "AWSEmail" || "AWSURL" || "AWSIPAddress" || "Boolean" || "AWSJSON" || "AWSPhone" || "Enum" || "Model" || "NonModel", // required
|
|
61
|
+
* // dataTypeValue: "STRING_VALUE", // required
|
|
62
|
+
* // required: true || false, // required
|
|
63
|
+
* // readOnly: true || false, // required
|
|
64
|
+
* // isArray: true || false, // required
|
|
65
|
+
* // relationship: { // CodegenGenericDataRelationshipType
|
|
66
|
+
* // type: "HAS_MANY" || "HAS_ONE" || "BELONGS_TO", // required
|
|
67
|
+
* // relatedModelName: "STRING_VALUE", // required
|
|
68
|
+
* // relatedModelFields: [ // RelatedModelFieldsList
|
|
69
|
+
* // "STRING_VALUE",
|
|
70
|
+
* // ],
|
|
71
|
+
* // canUnlinkAssociatedModel: true || false,
|
|
72
|
+
* // relatedJoinFieldName: "STRING_VALUE",
|
|
73
|
+
* // relatedJoinTableName: "STRING_VALUE",
|
|
74
|
+
* // belongsToFieldOnRelatedModel: "STRING_VALUE",
|
|
75
|
+
* // associatedFields: [ // AssociatedFieldsList
|
|
76
|
+
* // "STRING_VALUE",
|
|
77
|
+
* // ],
|
|
78
|
+
* // isHasManyIndex: true || false,
|
|
79
|
+
* // },
|
|
80
|
+
* // },
|
|
81
|
+
* // },
|
|
82
|
+
* // isJoinTable: true || false,
|
|
83
|
+
* // primaryKeys: [ // CodegenPrimaryKeysList // required
|
|
84
|
+
* // "STRING_VALUE",
|
|
85
|
+
* // ],
|
|
86
|
+
* // },
|
|
87
|
+
* // },
|
|
88
|
+
* // enums: { // CodegenGenericDataEnums // required
|
|
89
|
+
* // "<keys>": { // CodegenGenericDataEnum
|
|
90
|
+
* // values: [ // CodegenGenericDataEnumValuesList // required
|
|
91
|
+
* // "STRING_VALUE",
|
|
92
|
+
* // ],
|
|
93
|
+
* // },
|
|
94
|
+
* // },
|
|
95
|
+
* // nonModels: { // CodegenGenericDataNonModels // required
|
|
96
|
+
* // "<keys>": { // CodegenGenericDataNonModel
|
|
97
|
+
* // fields: { // CodegenGenericDataNonModelFields // required
|
|
98
|
+
* // "<keys>": {
|
|
99
|
+
* // dataType: "ID" || "String" || "Int" || "Float" || "AWSDate" || "AWSTime" || "AWSDateTime" || "AWSTimestamp" || "AWSEmail" || "AWSURL" || "AWSIPAddress" || "Boolean" || "AWSJSON" || "AWSPhone" || "Enum" || "Model" || "NonModel", // required
|
|
100
|
+
* // dataTypeValue: "STRING_VALUE", // required
|
|
101
|
+
* // required: true || false, // required
|
|
102
|
+
* // readOnly: true || false, // required
|
|
103
|
+
* // isArray: true || false, // required
|
|
104
|
+
* // relationship: {
|
|
105
|
+
* // type: "HAS_MANY" || "HAS_ONE" || "BELONGS_TO", // required
|
|
106
|
+
* // relatedModelName: "STRING_VALUE", // required
|
|
107
|
+
* // relatedModelFields: [
|
|
108
|
+
* // "STRING_VALUE",
|
|
109
|
+
* // ],
|
|
110
|
+
* // canUnlinkAssociatedModel: true || false,
|
|
111
|
+
* // relatedJoinFieldName: "STRING_VALUE",
|
|
112
|
+
* // relatedJoinTableName: "STRING_VALUE",
|
|
113
|
+
* // belongsToFieldOnRelatedModel: "STRING_VALUE",
|
|
114
|
+
* // associatedFields: [
|
|
115
|
+
* // "STRING_VALUE",
|
|
116
|
+
* // ],
|
|
117
|
+
* // isHasManyIndex: true || false,
|
|
118
|
+
* // },
|
|
119
|
+
* // },
|
|
120
|
+
* // },
|
|
121
|
+
* // },
|
|
122
|
+
* // },
|
|
123
|
+
* // },
|
|
124
|
+
* // autoGenerateForms: true || false,
|
|
125
|
+
* // features: { // CodegenFeatureFlags
|
|
126
|
+
* // isRelationshipSupported: true || false,
|
|
127
|
+
* // isNonModelSupported: true || false,
|
|
128
|
+
* // },
|
|
129
|
+
* // status: "in_progress" || "failed" || "succeeded",
|
|
130
|
+
* // statusMessage: "STRING_VALUE",
|
|
131
|
+
* // asset: { // CodegenJobAsset
|
|
132
|
+
* // downloadUrl: "STRING_VALUE",
|
|
133
|
+
* // },
|
|
134
|
+
* // tags: { // Tags
|
|
135
|
+
* // "<keys>": "STRING_VALUE",
|
|
136
|
+
* // },
|
|
137
|
+
* // createdAt: new Date("TIMESTAMP"),
|
|
138
|
+
* // modifiedAt: new Date("TIMESTAMP"),
|
|
139
|
+
* // },
|
|
140
|
+
* // };
|
|
141
|
+
*
|
|
142
|
+
* ```
|
|
143
|
+
*
|
|
144
|
+
* @param GetCodegenJobCommandInput - {@link GetCodegenJobCommandInput}
|
|
145
|
+
* @returns {@link GetCodegenJobCommandOutput}
|
|
146
|
+
* @see {@link GetCodegenJobCommandInput} for command's `input` shape.
|
|
147
|
+
* @see {@link GetCodegenJobCommandOutput} for command's `response` shape.
|
|
148
|
+
* @see {@link AmplifyUIBuilderClientResolvedConfig | config} for AmplifyUIBuilderClient's `config` shape.
|
|
149
|
+
*
|
|
150
|
+
* @throws {@link InternalServerException} (server fault)
|
|
151
|
+
* <p>An internal error has occurred. Please retry your request.</p>
|
|
152
|
+
*
|
|
153
|
+
* @throws {@link InvalidParameterException} (client fault)
|
|
154
|
+
* <p>An invalid or out-of-range value was supplied for the input parameter.</p>
|
|
155
|
+
*
|
|
156
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
157
|
+
* <p>The requested resource does not exist, or access was denied.</p>
|
|
158
|
+
*
|
|
159
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
160
|
+
* <p>The request was denied due to request throttling.</p>
|
|
161
|
+
*
|
|
162
|
+
* @throws {@link AmplifyUIBuilderServiceException}
|
|
163
|
+
* <p>Base exception class for all service exceptions from AmplifyUIBuilder service.</p>
|
|
164
|
+
*
|
|
165
|
+
*/
|
|
166
|
+
export declare class GetCodegenJobCommand extends $Command<GetCodegenJobCommandInput, GetCodegenJobCommandOutput, AmplifyUIBuilderClientResolvedConfig> {
|
|
167
|
+
readonly input: GetCodegenJobCommandInput;
|
|
168
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
169
|
+
/**
|
|
170
|
+
* @public
|
|
171
|
+
*/
|
|
172
|
+
constructor(input: GetCodegenJobCommandInput);
|
|
173
|
+
/**
|
|
174
|
+
* @internal
|
|
175
|
+
*/
|
|
176
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: AmplifyUIBuilderClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetCodegenJobCommandInput, GetCodegenJobCommandOutput>;
|
|
177
|
+
/**
|
|
178
|
+
* @internal
|
|
179
|
+
*/
|
|
180
|
+
private serialize;
|
|
181
|
+
/**
|
|
182
|
+
* @internal
|
|
183
|
+
*/
|
|
184
|
+
private deserialize;
|
|
185
|
+
}
|