@aws-sdk/client-amplifyuibuilder 3.303.0 → 3.306.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/endpoint/ruleset.js +3 -3
- package/dist-cjs/models/models_0.js +13 -1
- package/dist-cjs/protocols/Aws_restJson1.js +127 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/models/models_0.js +12 -0
- package/dist-es/protocols/Aws_restJson1.js +127 -0
- package/dist-types/AmplifyUIBuilder.d.ts +1 -1
- package/dist-types/commands/CreateComponentCommand.d.ts +2 -0
- package/dist-types/commands/CreateFormCommand.d.ts +38 -4
- package/dist-types/commands/ExchangeCodeForTokenCommand.d.ts +1 -0
- package/dist-types/commands/PutMetadataFlagCommand.d.ts +1 -1
- package/dist-types/commands/RefreshTokenCommand.d.ts +1 -0
- package/dist-types/commands/UpdateComponentCommand.d.ts +2 -0
- package/dist-types/commands/UpdateFormCommand.d.ts +38 -4
- package/dist-types/models/models_0.d.ts +567 -404
- package/dist-types/ts3.4/models/models_0.d.ts +136 -92
- package/package.json +29 -29
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RefreshTokenResponseFilterSensitiveLog = exports.RefreshTokenRequestFilterSensitiveLog = exports.RefreshTokenRequestBodyFilterSensitiveLog = exports.ExchangeCodeForTokenResponseFilterSensitiveLog = exports.ExchangeCodeForTokenRequestFilterSensitiveLog = exports.ExchangeCodeForTokenRequestBodyFilterSensitiveLog = exports.UnauthorizedException = exports.FormStyleConfig = exports.FormActionType = exports.FormDataSourceType = exports.FormButtonsPosition = exports.FieldPosition = exports.FixedPosition = exports.TokenProviders = exports.ResourceNotFoundException = exports.ServiceQuotaExceededException = exports.ResourceConflictException = exports.InvalidParameterException = exports.InternalServerException = void 0;
|
|
3
|
+
exports.RefreshTokenResponseFilterSensitiveLog = exports.RefreshTokenRequestFilterSensitiveLog = exports.RefreshTokenRequestBodyFilterSensitiveLog = exports.ExchangeCodeForTokenResponseFilterSensitiveLog = exports.ExchangeCodeForTokenRequestFilterSensitiveLog = exports.ExchangeCodeForTokenRequestBodyFilterSensitiveLog = exports.UnauthorizedException = exports.FormStyleConfig = exports.LabelDecorator = exports.FormActionType = exports.StorageAccessLevel = exports.FormDataSourceType = exports.FormButtonsPosition = exports.FieldPosition = exports.FixedPosition = exports.TokenProviders = exports.ResourceNotFoundException = exports.ServiceQuotaExceededException = exports.ResourceConflictException = exports.InvalidParameterException = exports.InternalServerException = void 0;
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
const AmplifyUIBuilderServiceException_1 = require("./AmplifyUIBuilderServiceException");
|
|
6
6
|
class InternalServerException extends AmplifyUIBuilderServiceException_1.AmplifyUIBuilderServiceException {
|
|
@@ -95,10 +95,20 @@ exports.FormDataSourceType = {
|
|
|
95
95
|
CUSTOM: "Custom",
|
|
96
96
|
DATASTORE: "DataStore",
|
|
97
97
|
};
|
|
98
|
+
exports.StorageAccessLevel = {
|
|
99
|
+
PRIVATE: "private",
|
|
100
|
+
PROTECTED: "protected",
|
|
101
|
+
PUBLIC: "public",
|
|
102
|
+
};
|
|
98
103
|
exports.FormActionType = {
|
|
99
104
|
CREATE: "create",
|
|
100
105
|
UPDATE: "update",
|
|
101
106
|
};
|
|
107
|
+
exports.LabelDecorator = {
|
|
108
|
+
NONE: "none",
|
|
109
|
+
OPTIONAL: "optional",
|
|
110
|
+
REQUIRED: "required",
|
|
111
|
+
};
|
|
102
112
|
var FormStyleConfig;
|
|
103
113
|
(function (FormStyleConfig) {
|
|
104
114
|
FormStyleConfig.visit = (value, visitor) => {
|
|
@@ -125,6 +135,7 @@ exports.UnauthorizedException = UnauthorizedException;
|
|
|
125
135
|
const ExchangeCodeForTokenRequestBodyFilterSensitiveLog = (obj) => ({
|
|
126
136
|
...obj,
|
|
127
137
|
...(obj.code && { code: smithy_client_1.SENSITIVE_STRING }),
|
|
138
|
+
...(obj.clientId && { clientId: smithy_client_1.SENSITIVE_STRING }),
|
|
128
139
|
});
|
|
129
140
|
exports.ExchangeCodeForTokenRequestBodyFilterSensitiveLog = ExchangeCodeForTokenRequestBodyFilterSensitiveLog;
|
|
130
141
|
const ExchangeCodeForTokenRequestFilterSensitiveLog = (obj) => ({
|
|
@@ -141,6 +152,7 @@ exports.ExchangeCodeForTokenResponseFilterSensitiveLog = ExchangeCodeForTokenRes
|
|
|
141
152
|
const RefreshTokenRequestBodyFilterSensitiveLog = (obj) => ({
|
|
142
153
|
...obj,
|
|
143
154
|
...(obj.token && { token: smithy_client_1.SENSITIVE_STRING }),
|
|
155
|
+
...(obj.clientId && { clientId: smithy_client_1.SENSITIVE_STRING }),
|
|
144
156
|
});
|
|
145
157
|
exports.RefreshTokenRequestBodyFilterSensitiveLog = RefreshTokenRequestBodyFilterSensitiveLog;
|
|
146
158
|
const RefreshTokenRequestFilterSensitiveLog = (obj) => ({
|
|
@@ -1708,6 +1708,7 @@ const serializeAws_restJson1CreateFormData = (input, context) => {
|
|
|
1708
1708
|
...(input.dataType != null && { dataType: serializeAws_restJson1FormDataTypeConfig(input.dataType, context) }),
|
|
1709
1709
|
...(input.fields != null && { fields: serializeAws_restJson1FieldsMap(input.fields, context) }),
|
|
1710
1710
|
...(input.formActionType != null && { formActionType: input.formActionType }),
|
|
1711
|
+
...(input.labelDecorator != null && { labelDecorator: input.labelDecorator }),
|
|
1711
1712
|
...(input.name != null && { name: input.name }),
|
|
1712
1713
|
...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
|
|
1713
1714
|
...(input.sectionalElements != null && {
|
|
@@ -1727,6 +1728,7 @@ const serializeAws_restJson1CreateThemeData = (input, context) => {
|
|
|
1727
1728
|
};
|
|
1728
1729
|
const serializeAws_restJson1ExchangeCodeForTokenRequestBody = (input, context) => {
|
|
1729
1730
|
return {
|
|
1731
|
+
...(input.clientId != null && { clientId: input.clientId }),
|
|
1730
1732
|
...(input.code != null && { code: input.code }),
|
|
1731
1733
|
...(input.redirectUri != null && { redirectUri: input.redirectUri }),
|
|
1732
1734
|
};
|
|
@@ -1748,6 +1750,9 @@ const serializeAws_restJson1FieldInputConfig = (input, context) => {
|
|
|
1748
1750
|
...(input.defaultCountryCode != null && { defaultCountryCode: input.defaultCountryCode }),
|
|
1749
1751
|
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
|
|
1750
1752
|
...(input.descriptiveText != null && { descriptiveText: input.descriptiveText }),
|
|
1753
|
+
...(input.fileUploaderConfig != null && {
|
|
1754
|
+
fileUploaderConfig: serializeAws_restJson1FileUploaderFieldConfig(input.fileUploaderConfig, context),
|
|
1755
|
+
}),
|
|
1751
1756
|
...(input.isArray != null && { isArray: input.isArray }),
|
|
1752
1757
|
...(input.maxValue != null && { maxValue: (0, smithy_client_1.serializeFloat)(input.maxValue) }),
|
|
1753
1758
|
...(input.minValue != null && { minValue: (0, smithy_client_1.serializeFloat)(input.minValue) }),
|
|
@@ -1788,6 +1793,18 @@ const serializeAws_restJson1FieldValidationConfiguration = (input, context) => {
|
|
|
1788
1793
|
...(input.validationMessage != null && { validationMessage: input.validationMessage }),
|
|
1789
1794
|
};
|
|
1790
1795
|
};
|
|
1796
|
+
const serializeAws_restJson1FileUploaderFieldConfig = (input, context) => {
|
|
1797
|
+
return {
|
|
1798
|
+
...(input.acceptedFileTypes != null && {
|
|
1799
|
+
acceptedFileTypes: serializeAws_restJson1StrValues(input.acceptedFileTypes, context),
|
|
1800
|
+
}),
|
|
1801
|
+
...(input.accessLevel != null && { accessLevel: input.accessLevel }),
|
|
1802
|
+
...(input.isResumable != null && { isResumable: input.isResumable }),
|
|
1803
|
+
...(input.maxFileCount != null && { maxFileCount: input.maxFileCount }),
|
|
1804
|
+
...(input.maxSize != null && { maxSize: input.maxSize }),
|
|
1805
|
+
...(input.showThumbnails != null && { showThumbnails: input.showThumbnails }),
|
|
1806
|
+
};
|
|
1807
|
+
};
|
|
1791
1808
|
const serializeAws_restJson1FormBindingElement = (input, context) => {
|
|
1792
1809
|
return {
|
|
1793
1810
|
...(input.element != null && { element: input.element }),
|
|
@@ -1824,11 +1841,50 @@ const serializeAws_restJson1FormDataTypeConfig = (input, context) => {
|
|
|
1824
1841
|
...(input.dataTypeName != null && { dataTypeName: input.dataTypeName }),
|
|
1825
1842
|
};
|
|
1826
1843
|
};
|
|
1844
|
+
const serializeAws_restJson1FormInputBindingProperties = (input, context) => {
|
|
1845
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1846
|
+
if (value === null) {
|
|
1847
|
+
return acc;
|
|
1848
|
+
}
|
|
1849
|
+
acc[key] = serializeAws_restJson1FormInputBindingPropertiesValue(value, context);
|
|
1850
|
+
return acc;
|
|
1851
|
+
}, {});
|
|
1852
|
+
};
|
|
1853
|
+
const serializeAws_restJson1FormInputBindingPropertiesValue = (input, context) => {
|
|
1854
|
+
return {
|
|
1855
|
+
...(input.bindingProperties != null && {
|
|
1856
|
+
bindingProperties: serializeAws_restJson1FormInputBindingPropertiesValueProperties(input.bindingProperties, context),
|
|
1857
|
+
}),
|
|
1858
|
+
...(input.type != null && { type: input.type }),
|
|
1859
|
+
};
|
|
1860
|
+
};
|
|
1861
|
+
const serializeAws_restJson1FormInputBindingPropertiesValueProperties = (input, context) => {
|
|
1862
|
+
return {
|
|
1863
|
+
...(input.model != null && { model: input.model }),
|
|
1864
|
+
};
|
|
1865
|
+
};
|
|
1827
1866
|
const serializeAws_restJson1FormInputValueProperty = (input, context) => {
|
|
1828
1867
|
return {
|
|
1868
|
+
...(input.bindingProperties != null && {
|
|
1869
|
+
bindingProperties: serializeAws_restJson1FormInputValuePropertyBindingProperties(input.bindingProperties, context),
|
|
1870
|
+
}),
|
|
1871
|
+
...(input.concat != null && { concat: serializeAws_restJson1FormInputValuePropertyList(input.concat, context) }),
|
|
1829
1872
|
...(input.value != null && { value: input.value }),
|
|
1830
1873
|
};
|
|
1831
1874
|
};
|
|
1875
|
+
const serializeAws_restJson1FormInputValuePropertyBindingProperties = (input, context) => {
|
|
1876
|
+
return {
|
|
1877
|
+
...(input.field != null && { field: input.field }),
|
|
1878
|
+
...(input.property != null && { property: input.property }),
|
|
1879
|
+
};
|
|
1880
|
+
};
|
|
1881
|
+
const serializeAws_restJson1FormInputValuePropertyList = (input, context) => {
|
|
1882
|
+
return input
|
|
1883
|
+
.filter((e) => e != null)
|
|
1884
|
+
.map((entry) => {
|
|
1885
|
+
return serializeAws_restJson1FormInputValueProperty(entry, context);
|
|
1886
|
+
});
|
|
1887
|
+
};
|
|
1832
1888
|
const serializeAws_restJson1FormStyle = (input, context) => {
|
|
1833
1889
|
return {
|
|
1834
1890
|
...(input.horizontalGap != null && {
|
|
@@ -1875,6 +1931,7 @@ const serializeAws_restJson1Predicate = (input, context) => {
|
|
|
1875
1931
|
...(input.and != null && { and: serializeAws_restJson1PredicateList(input.and, context) }),
|
|
1876
1932
|
...(input.field != null && { field: input.field }),
|
|
1877
1933
|
...(input.operand != null && { operand: input.operand }),
|
|
1934
|
+
...(input.operandType != null && { operandType: input.operandType }),
|
|
1878
1935
|
...(input.operator != null && { operator: input.operator }),
|
|
1879
1936
|
...(input.or != null && { or: serializeAws_restJson1PredicateList(input.or, context) }),
|
|
1880
1937
|
};
|
|
@@ -1893,11 +1950,13 @@ const serializeAws_restJson1PutMetadataFlagBody = (input, context) => {
|
|
|
1893
1950
|
};
|
|
1894
1951
|
const serializeAws_restJson1RefreshTokenRequestBody = (input, context) => {
|
|
1895
1952
|
return {
|
|
1953
|
+
...(input.clientId != null && { clientId: input.clientId }),
|
|
1896
1954
|
...(input.token != null && { token: input.token }),
|
|
1897
1955
|
};
|
|
1898
1956
|
};
|
|
1899
1957
|
const serializeAws_restJson1SectionalElement = (input, context) => {
|
|
1900
1958
|
return {
|
|
1959
|
+
...(input.excluded != null && { excluded: input.excluded }),
|
|
1901
1960
|
...(input.level != null && { level: input.level }),
|
|
1902
1961
|
...(input.orientation != null && { orientation: input.orientation }),
|
|
1903
1962
|
...(input.position != null && { position: serializeAws_restJson1FieldPosition(input.position, context) }),
|
|
@@ -1990,6 +2049,7 @@ const serializeAws_restJson1UpdateFormData = (input, context) => {
|
|
|
1990
2049
|
...(input.dataType != null && { dataType: serializeAws_restJson1FormDataTypeConfig(input.dataType, context) }),
|
|
1991
2050
|
...(input.fields != null && { fields: serializeAws_restJson1FieldsMap(input.fields, context) }),
|
|
1992
2051
|
...(input.formActionType != null && { formActionType: input.formActionType }),
|
|
2052
|
+
...(input.labelDecorator != null && { labelDecorator: input.labelDecorator }),
|
|
1993
2053
|
...(input.name != null && { name: input.name }),
|
|
1994
2054
|
...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
|
|
1995
2055
|
...(input.sectionalElements != null && {
|
|
@@ -2030,6 +2090,9 @@ const serializeAws_restJson1ValueMappingList = (input, context) => {
|
|
|
2030
2090
|
};
|
|
2031
2091
|
const serializeAws_restJson1ValueMappings = (input, context) => {
|
|
2032
2092
|
return {
|
|
2093
|
+
...(input.bindingProperties != null && {
|
|
2094
|
+
bindingProperties: serializeAws_restJson1FormInputBindingProperties(input.bindingProperties, context),
|
|
2095
|
+
}),
|
|
2033
2096
|
...(input.values != null && { values: serializeAws_restJson1ValueMappingList(input.values, context) }),
|
|
2034
2097
|
};
|
|
2035
2098
|
};
|
|
@@ -2320,6 +2383,9 @@ const deserializeAws_restJson1FieldInputConfig = (output, context) => {
|
|
|
2320
2383
|
defaultCountryCode: (0, smithy_client_1.expectString)(output.defaultCountryCode),
|
|
2321
2384
|
defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
|
|
2322
2385
|
descriptiveText: (0, smithy_client_1.expectString)(output.descriptiveText),
|
|
2386
|
+
fileUploaderConfig: output.fileUploaderConfig != null
|
|
2387
|
+
? deserializeAws_restJson1FileUploaderFieldConfig(output.fileUploaderConfig, context)
|
|
2388
|
+
: undefined,
|
|
2323
2389
|
isArray: (0, smithy_client_1.expectBoolean)(output.isArray),
|
|
2324
2390
|
maxValue: (0, smithy_client_1.limitedParseFloat32)(output.maxValue),
|
|
2325
2391
|
minValue: (0, smithy_client_1.limitedParseFloat32)(output.minValue),
|
|
@@ -2362,6 +2428,18 @@ const deserializeAws_restJson1FieldValidationConfiguration = (output, context) =
|
|
|
2362
2428
|
validationMessage: (0, smithy_client_1.expectString)(output.validationMessage),
|
|
2363
2429
|
};
|
|
2364
2430
|
};
|
|
2431
|
+
const deserializeAws_restJson1FileUploaderFieldConfig = (output, context) => {
|
|
2432
|
+
return {
|
|
2433
|
+
acceptedFileTypes: output.acceptedFileTypes != null
|
|
2434
|
+
? deserializeAws_restJson1StrValues(output.acceptedFileTypes, context)
|
|
2435
|
+
: undefined,
|
|
2436
|
+
accessLevel: (0, smithy_client_1.expectString)(output.accessLevel),
|
|
2437
|
+
isResumable: (0, smithy_client_1.expectBoolean)(output.isResumable),
|
|
2438
|
+
maxFileCount: (0, smithy_client_1.expectInt32)(output.maxFileCount),
|
|
2439
|
+
maxSize: (0, smithy_client_1.expectInt32)(output.maxSize),
|
|
2440
|
+
showThumbnails: (0, smithy_client_1.expectBoolean)(output.showThumbnails),
|
|
2441
|
+
};
|
|
2442
|
+
};
|
|
2365
2443
|
const deserializeAws_restJson1Form = (output, context) => {
|
|
2366
2444
|
return {
|
|
2367
2445
|
appId: (0, smithy_client_1.expectString)(output.appId),
|
|
@@ -2371,6 +2449,7 @@ const deserializeAws_restJson1Form = (output, context) => {
|
|
|
2371
2449
|
fields: output.fields != null ? deserializeAws_restJson1FieldsMap(output.fields, context) : undefined,
|
|
2372
2450
|
formActionType: (0, smithy_client_1.expectString)(output.formActionType),
|
|
2373
2451
|
id: (0, smithy_client_1.expectString)(output.id),
|
|
2452
|
+
labelDecorator: (0, smithy_client_1.expectString)(output.labelDecorator),
|
|
2374
2453
|
name: (0, smithy_client_1.expectString)(output.name),
|
|
2375
2454
|
schemaVersion: (0, smithy_client_1.expectString)(output.schemaVersion),
|
|
2376
2455
|
sectionalElements: output.sectionalElements != null
|
|
@@ -2418,11 +2497,54 @@ const deserializeAws_restJson1FormDataTypeConfig = (output, context) => {
|
|
|
2418
2497
|
dataTypeName: (0, smithy_client_1.expectString)(output.dataTypeName),
|
|
2419
2498
|
};
|
|
2420
2499
|
};
|
|
2500
|
+
const deserializeAws_restJson1FormInputBindingProperties = (output, context) => {
|
|
2501
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2502
|
+
if (value === null) {
|
|
2503
|
+
return acc;
|
|
2504
|
+
}
|
|
2505
|
+
acc[key] = deserializeAws_restJson1FormInputBindingPropertiesValue(value, context);
|
|
2506
|
+
return acc;
|
|
2507
|
+
}, {});
|
|
2508
|
+
};
|
|
2509
|
+
const deserializeAws_restJson1FormInputBindingPropertiesValue = (output, context) => {
|
|
2510
|
+
return {
|
|
2511
|
+
bindingProperties: output.bindingProperties != null
|
|
2512
|
+
? deserializeAws_restJson1FormInputBindingPropertiesValueProperties(output.bindingProperties, context)
|
|
2513
|
+
: undefined,
|
|
2514
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
2515
|
+
};
|
|
2516
|
+
};
|
|
2517
|
+
const deserializeAws_restJson1FormInputBindingPropertiesValueProperties = (output, context) => {
|
|
2518
|
+
return {
|
|
2519
|
+
model: (0, smithy_client_1.expectString)(output.model),
|
|
2520
|
+
};
|
|
2521
|
+
};
|
|
2421
2522
|
const deserializeAws_restJson1FormInputValueProperty = (output, context) => {
|
|
2422
2523
|
return {
|
|
2524
|
+
bindingProperties: output.bindingProperties != null
|
|
2525
|
+
? deserializeAws_restJson1FormInputValuePropertyBindingProperties(output.bindingProperties, context)
|
|
2526
|
+
: undefined,
|
|
2527
|
+
concat: output.concat != null ? deserializeAws_restJson1FormInputValuePropertyList(output.concat, context) : undefined,
|
|
2423
2528
|
value: (0, smithy_client_1.expectString)(output.value),
|
|
2424
2529
|
};
|
|
2425
2530
|
};
|
|
2531
|
+
const deserializeAws_restJson1FormInputValuePropertyBindingProperties = (output, context) => {
|
|
2532
|
+
return {
|
|
2533
|
+
field: (0, smithy_client_1.expectString)(output.field),
|
|
2534
|
+
property: (0, smithy_client_1.expectString)(output.property),
|
|
2535
|
+
};
|
|
2536
|
+
};
|
|
2537
|
+
const deserializeAws_restJson1FormInputValuePropertyList = (output, context) => {
|
|
2538
|
+
const retVal = (output || [])
|
|
2539
|
+
.filter((e) => e != null)
|
|
2540
|
+
.map((entry) => {
|
|
2541
|
+
if (entry === null) {
|
|
2542
|
+
return null;
|
|
2543
|
+
}
|
|
2544
|
+
return deserializeAws_restJson1FormInputValueProperty(entry, context);
|
|
2545
|
+
});
|
|
2546
|
+
return retVal;
|
|
2547
|
+
};
|
|
2426
2548
|
const deserializeAws_restJson1FormList = (output, context) => {
|
|
2427
2549
|
const retVal = (output || [])
|
|
2428
2550
|
.filter((e) => e != null)
|
|
@@ -2511,6 +2633,7 @@ const deserializeAws_restJson1Predicate = (output, context) => {
|
|
|
2511
2633
|
and: output.and != null ? deserializeAws_restJson1PredicateList(output.and, context) : undefined,
|
|
2512
2634
|
field: (0, smithy_client_1.expectString)(output.field),
|
|
2513
2635
|
operand: (0, smithy_client_1.expectString)(output.operand),
|
|
2636
|
+
operandType: (0, smithy_client_1.expectString)(output.operandType),
|
|
2514
2637
|
operator: (0, smithy_client_1.expectString)(output.operator),
|
|
2515
2638
|
or: output.or != null ? deserializeAws_restJson1PredicateList(output.or, context) : undefined,
|
|
2516
2639
|
};
|
|
@@ -2528,6 +2651,7 @@ const deserializeAws_restJson1PredicateList = (output, context) => {
|
|
|
2528
2651
|
};
|
|
2529
2652
|
const deserializeAws_restJson1SectionalElement = (output, context) => {
|
|
2530
2653
|
return {
|
|
2654
|
+
excluded: (0, smithy_client_1.expectBoolean)(output.excluded),
|
|
2531
2655
|
level: (0, smithy_client_1.expectInt32)(output.level),
|
|
2532
2656
|
orientation: (0, smithy_client_1.expectString)(output.orientation),
|
|
2533
2657
|
position: output.position != null
|
|
@@ -2681,6 +2805,9 @@ const deserializeAws_restJson1ValueMappingList = (output, context) => {
|
|
|
2681
2805
|
};
|
|
2682
2806
|
const deserializeAws_restJson1ValueMappings = (output, context) => {
|
|
2683
2807
|
return {
|
|
2808
|
+
bindingProperties: output.bindingProperties != null
|
|
2809
|
+
? deserializeAws_restJson1FormInputBindingProperties(output.bindingProperties, context)
|
|
2810
|
+
: undefined,
|
|
2684
2811
|
values: output.values != null ? deserializeAws_restJson1ValueMappingList(output.values, context) : undefined,
|
|
2685
2812
|
};
|
|
2686
2813
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const q = "required", r = "fn", s = "argv", t = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [q]: false, "type": "String" }, g = { [q]: true, "default": false, "type": "Boolean" }, h = { [t]: "Endpoint" }, i = { [r]: "booleanEquals", [s]: [{ [t]: "UseFIPS" }, true] }, j = { [r]: "booleanEquals", [s]: [{ [t]: "UseDualStack" }, true] }, k = {}, l = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsFIPS"] }] }, m = { [r]: "booleanEquals", [s]: [true, { [r]: "getAttr", [s]: [{ [t]: e }, "supportsDualStack"] }] }, n = [i], o = [j], p = [{ [t]: "Region" }];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [r]: a, [s]: [h] }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [r]: a, [s]: p }], type: b, rules: [{ conditions: [{ [r]: "aws.partition", [s]: p, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [l, m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [l], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://amplifyuibuilder.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -87,10 +87,20 @@ export const FormDataSourceType = {
|
|
|
87
87
|
CUSTOM: "Custom",
|
|
88
88
|
DATASTORE: "DataStore",
|
|
89
89
|
};
|
|
90
|
+
export const StorageAccessLevel = {
|
|
91
|
+
PRIVATE: "private",
|
|
92
|
+
PROTECTED: "protected",
|
|
93
|
+
PUBLIC: "public",
|
|
94
|
+
};
|
|
90
95
|
export const FormActionType = {
|
|
91
96
|
CREATE: "create",
|
|
92
97
|
UPDATE: "update",
|
|
93
98
|
};
|
|
99
|
+
export const LabelDecorator = {
|
|
100
|
+
NONE: "none",
|
|
101
|
+
OPTIONAL: "optional",
|
|
102
|
+
REQUIRED: "required",
|
|
103
|
+
};
|
|
94
104
|
export var FormStyleConfig;
|
|
95
105
|
(function (FormStyleConfig) {
|
|
96
106
|
FormStyleConfig.visit = (value, visitor) => {
|
|
@@ -116,6 +126,7 @@ export class UnauthorizedException extends __BaseException {
|
|
|
116
126
|
export const ExchangeCodeForTokenRequestBodyFilterSensitiveLog = (obj) => ({
|
|
117
127
|
...obj,
|
|
118
128
|
...(obj.code && { code: SENSITIVE_STRING }),
|
|
129
|
+
...(obj.clientId && { clientId: SENSITIVE_STRING }),
|
|
119
130
|
});
|
|
120
131
|
export const ExchangeCodeForTokenRequestFilterSensitiveLog = (obj) => ({
|
|
121
132
|
...obj,
|
|
@@ -129,6 +140,7 @@ export const ExchangeCodeForTokenResponseFilterSensitiveLog = (obj) => ({
|
|
|
129
140
|
export const RefreshTokenRequestBodyFilterSensitiveLog = (obj) => ({
|
|
130
141
|
...obj,
|
|
131
142
|
...(obj.token && { token: SENSITIVE_STRING }),
|
|
143
|
+
...(obj.clientId && { clientId: SENSITIVE_STRING }),
|
|
132
144
|
});
|
|
133
145
|
export const RefreshTokenRequestFilterSensitiveLog = (obj) => ({
|
|
134
146
|
...obj,
|
|
@@ -1661,6 +1661,7 @@ const serializeAws_restJson1CreateFormData = (input, context) => {
|
|
|
1661
1661
|
...(input.dataType != null && { dataType: serializeAws_restJson1FormDataTypeConfig(input.dataType, context) }),
|
|
1662
1662
|
...(input.fields != null && { fields: serializeAws_restJson1FieldsMap(input.fields, context) }),
|
|
1663
1663
|
...(input.formActionType != null && { formActionType: input.formActionType }),
|
|
1664
|
+
...(input.labelDecorator != null && { labelDecorator: input.labelDecorator }),
|
|
1664
1665
|
...(input.name != null && { name: input.name }),
|
|
1665
1666
|
...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
|
|
1666
1667
|
...(input.sectionalElements != null && {
|
|
@@ -1680,6 +1681,7 @@ const serializeAws_restJson1CreateThemeData = (input, context) => {
|
|
|
1680
1681
|
};
|
|
1681
1682
|
const serializeAws_restJson1ExchangeCodeForTokenRequestBody = (input, context) => {
|
|
1682
1683
|
return {
|
|
1684
|
+
...(input.clientId != null && { clientId: input.clientId }),
|
|
1683
1685
|
...(input.code != null && { code: input.code }),
|
|
1684
1686
|
...(input.redirectUri != null && { redirectUri: input.redirectUri }),
|
|
1685
1687
|
};
|
|
@@ -1701,6 +1703,9 @@ const serializeAws_restJson1FieldInputConfig = (input, context) => {
|
|
|
1701
1703
|
...(input.defaultCountryCode != null && { defaultCountryCode: input.defaultCountryCode }),
|
|
1702
1704
|
...(input.defaultValue != null && { defaultValue: input.defaultValue }),
|
|
1703
1705
|
...(input.descriptiveText != null && { descriptiveText: input.descriptiveText }),
|
|
1706
|
+
...(input.fileUploaderConfig != null && {
|
|
1707
|
+
fileUploaderConfig: serializeAws_restJson1FileUploaderFieldConfig(input.fileUploaderConfig, context),
|
|
1708
|
+
}),
|
|
1704
1709
|
...(input.isArray != null && { isArray: input.isArray }),
|
|
1705
1710
|
...(input.maxValue != null && { maxValue: __serializeFloat(input.maxValue) }),
|
|
1706
1711
|
...(input.minValue != null && { minValue: __serializeFloat(input.minValue) }),
|
|
@@ -1741,6 +1746,18 @@ const serializeAws_restJson1FieldValidationConfiguration = (input, context) => {
|
|
|
1741
1746
|
...(input.validationMessage != null && { validationMessage: input.validationMessage }),
|
|
1742
1747
|
};
|
|
1743
1748
|
};
|
|
1749
|
+
const serializeAws_restJson1FileUploaderFieldConfig = (input, context) => {
|
|
1750
|
+
return {
|
|
1751
|
+
...(input.acceptedFileTypes != null && {
|
|
1752
|
+
acceptedFileTypes: serializeAws_restJson1StrValues(input.acceptedFileTypes, context),
|
|
1753
|
+
}),
|
|
1754
|
+
...(input.accessLevel != null && { accessLevel: input.accessLevel }),
|
|
1755
|
+
...(input.isResumable != null && { isResumable: input.isResumable }),
|
|
1756
|
+
...(input.maxFileCount != null && { maxFileCount: input.maxFileCount }),
|
|
1757
|
+
...(input.maxSize != null && { maxSize: input.maxSize }),
|
|
1758
|
+
...(input.showThumbnails != null && { showThumbnails: input.showThumbnails }),
|
|
1759
|
+
};
|
|
1760
|
+
};
|
|
1744
1761
|
const serializeAws_restJson1FormBindingElement = (input, context) => {
|
|
1745
1762
|
return {
|
|
1746
1763
|
...(input.element != null && { element: input.element }),
|
|
@@ -1777,11 +1794,50 @@ const serializeAws_restJson1FormDataTypeConfig = (input, context) => {
|
|
|
1777
1794
|
...(input.dataTypeName != null && { dataTypeName: input.dataTypeName }),
|
|
1778
1795
|
};
|
|
1779
1796
|
};
|
|
1797
|
+
const serializeAws_restJson1FormInputBindingProperties = (input, context) => {
|
|
1798
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
1799
|
+
if (value === null) {
|
|
1800
|
+
return acc;
|
|
1801
|
+
}
|
|
1802
|
+
acc[key] = serializeAws_restJson1FormInputBindingPropertiesValue(value, context);
|
|
1803
|
+
return acc;
|
|
1804
|
+
}, {});
|
|
1805
|
+
};
|
|
1806
|
+
const serializeAws_restJson1FormInputBindingPropertiesValue = (input, context) => {
|
|
1807
|
+
return {
|
|
1808
|
+
...(input.bindingProperties != null && {
|
|
1809
|
+
bindingProperties: serializeAws_restJson1FormInputBindingPropertiesValueProperties(input.bindingProperties, context),
|
|
1810
|
+
}),
|
|
1811
|
+
...(input.type != null && { type: input.type }),
|
|
1812
|
+
};
|
|
1813
|
+
};
|
|
1814
|
+
const serializeAws_restJson1FormInputBindingPropertiesValueProperties = (input, context) => {
|
|
1815
|
+
return {
|
|
1816
|
+
...(input.model != null && { model: input.model }),
|
|
1817
|
+
};
|
|
1818
|
+
};
|
|
1780
1819
|
const serializeAws_restJson1FormInputValueProperty = (input, context) => {
|
|
1781
1820
|
return {
|
|
1821
|
+
...(input.bindingProperties != null && {
|
|
1822
|
+
bindingProperties: serializeAws_restJson1FormInputValuePropertyBindingProperties(input.bindingProperties, context),
|
|
1823
|
+
}),
|
|
1824
|
+
...(input.concat != null && { concat: serializeAws_restJson1FormInputValuePropertyList(input.concat, context) }),
|
|
1782
1825
|
...(input.value != null && { value: input.value }),
|
|
1783
1826
|
};
|
|
1784
1827
|
};
|
|
1828
|
+
const serializeAws_restJson1FormInputValuePropertyBindingProperties = (input, context) => {
|
|
1829
|
+
return {
|
|
1830
|
+
...(input.field != null && { field: input.field }),
|
|
1831
|
+
...(input.property != null && { property: input.property }),
|
|
1832
|
+
};
|
|
1833
|
+
};
|
|
1834
|
+
const serializeAws_restJson1FormInputValuePropertyList = (input, context) => {
|
|
1835
|
+
return input
|
|
1836
|
+
.filter((e) => e != null)
|
|
1837
|
+
.map((entry) => {
|
|
1838
|
+
return serializeAws_restJson1FormInputValueProperty(entry, context);
|
|
1839
|
+
});
|
|
1840
|
+
};
|
|
1785
1841
|
const serializeAws_restJson1FormStyle = (input, context) => {
|
|
1786
1842
|
return {
|
|
1787
1843
|
...(input.horizontalGap != null && {
|
|
@@ -1828,6 +1884,7 @@ const serializeAws_restJson1Predicate = (input, context) => {
|
|
|
1828
1884
|
...(input.and != null && { and: serializeAws_restJson1PredicateList(input.and, context) }),
|
|
1829
1885
|
...(input.field != null && { field: input.field }),
|
|
1830
1886
|
...(input.operand != null && { operand: input.operand }),
|
|
1887
|
+
...(input.operandType != null && { operandType: input.operandType }),
|
|
1831
1888
|
...(input.operator != null && { operator: input.operator }),
|
|
1832
1889
|
...(input.or != null && { or: serializeAws_restJson1PredicateList(input.or, context) }),
|
|
1833
1890
|
};
|
|
@@ -1846,11 +1903,13 @@ const serializeAws_restJson1PutMetadataFlagBody = (input, context) => {
|
|
|
1846
1903
|
};
|
|
1847
1904
|
const serializeAws_restJson1RefreshTokenRequestBody = (input, context) => {
|
|
1848
1905
|
return {
|
|
1906
|
+
...(input.clientId != null && { clientId: input.clientId }),
|
|
1849
1907
|
...(input.token != null && { token: input.token }),
|
|
1850
1908
|
};
|
|
1851
1909
|
};
|
|
1852
1910
|
const serializeAws_restJson1SectionalElement = (input, context) => {
|
|
1853
1911
|
return {
|
|
1912
|
+
...(input.excluded != null && { excluded: input.excluded }),
|
|
1854
1913
|
...(input.level != null && { level: input.level }),
|
|
1855
1914
|
...(input.orientation != null && { orientation: input.orientation }),
|
|
1856
1915
|
...(input.position != null && { position: serializeAws_restJson1FieldPosition(input.position, context) }),
|
|
@@ -1943,6 +2002,7 @@ const serializeAws_restJson1UpdateFormData = (input, context) => {
|
|
|
1943
2002
|
...(input.dataType != null && { dataType: serializeAws_restJson1FormDataTypeConfig(input.dataType, context) }),
|
|
1944
2003
|
...(input.fields != null && { fields: serializeAws_restJson1FieldsMap(input.fields, context) }),
|
|
1945
2004
|
...(input.formActionType != null && { formActionType: input.formActionType }),
|
|
2005
|
+
...(input.labelDecorator != null && { labelDecorator: input.labelDecorator }),
|
|
1946
2006
|
...(input.name != null && { name: input.name }),
|
|
1947
2007
|
...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
|
|
1948
2008
|
...(input.sectionalElements != null && {
|
|
@@ -1983,6 +2043,9 @@ const serializeAws_restJson1ValueMappingList = (input, context) => {
|
|
|
1983
2043
|
};
|
|
1984
2044
|
const serializeAws_restJson1ValueMappings = (input, context) => {
|
|
1985
2045
|
return {
|
|
2046
|
+
...(input.bindingProperties != null && {
|
|
2047
|
+
bindingProperties: serializeAws_restJson1FormInputBindingProperties(input.bindingProperties, context),
|
|
2048
|
+
}),
|
|
1986
2049
|
...(input.values != null && { values: serializeAws_restJson1ValueMappingList(input.values, context) }),
|
|
1987
2050
|
};
|
|
1988
2051
|
};
|
|
@@ -2273,6 +2336,9 @@ const deserializeAws_restJson1FieldInputConfig = (output, context) => {
|
|
|
2273
2336
|
defaultCountryCode: __expectString(output.defaultCountryCode),
|
|
2274
2337
|
defaultValue: __expectString(output.defaultValue),
|
|
2275
2338
|
descriptiveText: __expectString(output.descriptiveText),
|
|
2339
|
+
fileUploaderConfig: output.fileUploaderConfig != null
|
|
2340
|
+
? deserializeAws_restJson1FileUploaderFieldConfig(output.fileUploaderConfig, context)
|
|
2341
|
+
: undefined,
|
|
2276
2342
|
isArray: __expectBoolean(output.isArray),
|
|
2277
2343
|
maxValue: __limitedParseFloat32(output.maxValue),
|
|
2278
2344
|
minValue: __limitedParseFloat32(output.minValue),
|
|
@@ -2315,6 +2381,18 @@ const deserializeAws_restJson1FieldValidationConfiguration = (output, context) =
|
|
|
2315
2381
|
validationMessage: __expectString(output.validationMessage),
|
|
2316
2382
|
};
|
|
2317
2383
|
};
|
|
2384
|
+
const deserializeAws_restJson1FileUploaderFieldConfig = (output, context) => {
|
|
2385
|
+
return {
|
|
2386
|
+
acceptedFileTypes: output.acceptedFileTypes != null
|
|
2387
|
+
? deserializeAws_restJson1StrValues(output.acceptedFileTypes, context)
|
|
2388
|
+
: undefined,
|
|
2389
|
+
accessLevel: __expectString(output.accessLevel),
|
|
2390
|
+
isResumable: __expectBoolean(output.isResumable),
|
|
2391
|
+
maxFileCount: __expectInt32(output.maxFileCount),
|
|
2392
|
+
maxSize: __expectInt32(output.maxSize),
|
|
2393
|
+
showThumbnails: __expectBoolean(output.showThumbnails),
|
|
2394
|
+
};
|
|
2395
|
+
};
|
|
2318
2396
|
const deserializeAws_restJson1Form = (output, context) => {
|
|
2319
2397
|
return {
|
|
2320
2398
|
appId: __expectString(output.appId),
|
|
@@ -2324,6 +2402,7 @@ const deserializeAws_restJson1Form = (output, context) => {
|
|
|
2324
2402
|
fields: output.fields != null ? deserializeAws_restJson1FieldsMap(output.fields, context) : undefined,
|
|
2325
2403
|
formActionType: __expectString(output.formActionType),
|
|
2326
2404
|
id: __expectString(output.id),
|
|
2405
|
+
labelDecorator: __expectString(output.labelDecorator),
|
|
2327
2406
|
name: __expectString(output.name),
|
|
2328
2407
|
schemaVersion: __expectString(output.schemaVersion),
|
|
2329
2408
|
sectionalElements: output.sectionalElements != null
|
|
@@ -2371,11 +2450,54 @@ const deserializeAws_restJson1FormDataTypeConfig = (output, context) => {
|
|
|
2371
2450
|
dataTypeName: __expectString(output.dataTypeName),
|
|
2372
2451
|
};
|
|
2373
2452
|
};
|
|
2453
|
+
const deserializeAws_restJson1FormInputBindingProperties = (output, context) => {
|
|
2454
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2455
|
+
if (value === null) {
|
|
2456
|
+
return acc;
|
|
2457
|
+
}
|
|
2458
|
+
acc[key] = deserializeAws_restJson1FormInputBindingPropertiesValue(value, context);
|
|
2459
|
+
return acc;
|
|
2460
|
+
}, {});
|
|
2461
|
+
};
|
|
2462
|
+
const deserializeAws_restJson1FormInputBindingPropertiesValue = (output, context) => {
|
|
2463
|
+
return {
|
|
2464
|
+
bindingProperties: output.bindingProperties != null
|
|
2465
|
+
? deserializeAws_restJson1FormInputBindingPropertiesValueProperties(output.bindingProperties, context)
|
|
2466
|
+
: undefined,
|
|
2467
|
+
type: __expectString(output.type),
|
|
2468
|
+
};
|
|
2469
|
+
};
|
|
2470
|
+
const deserializeAws_restJson1FormInputBindingPropertiesValueProperties = (output, context) => {
|
|
2471
|
+
return {
|
|
2472
|
+
model: __expectString(output.model),
|
|
2473
|
+
};
|
|
2474
|
+
};
|
|
2374
2475
|
const deserializeAws_restJson1FormInputValueProperty = (output, context) => {
|
|
2375
2476
|
return {
|
|
2477
|
+
bindingProperties: output.bindingProperties != null
|
|
2478
|
+
? deserializeAws_restJson1FormInputValuePropertyBindingProperties(output.bindingProperties, context)
|
|
2479
|
+
: undefined,
|
|
2480
|
+
concat: output.concat != null ? deserializeAws_restJson1FormInputValuePropertyList(output.concat, context) : undefined,
|
|
2376
2481
|
value: __expectString(output.value),
|
|
2377
2482
|
};
|
|
2378
2483
|
};
|
|
2484
|
+
const deserializeAws_restJson1FormInputValuePropertyBindingProperties = (output, context) => {
|
|
2485
|
+
return {
|
|
2486
|
+
field: __expectString(output.field),
|
|
2487
|
+
property: __expectString(output.property),
|
|
2488
|
+
};
|
|
2489
|
+
};
|
|
2490
|
+
const deserializeAws_restJson1FormInputValuePropertyList = (output, context) => {
|
|
2491
|
+
const retVal = (output || [])
|
|
2492
|
+
.filter((e) => e != null)
|
|
2493
|
+
.map((entry) => {
|
|
2494
|
+
if (entry === null) {
|
|
2495
|
+
return null;
|
|
2496
|
+
}
|
|
2497
|
+
return deserializeAws_restJson1FormInputValueProperty(entry, context);
|
|
2498
|
+
});
|
|
2499
|
+
return retVal;
|
|
2500
|
+
};
|
|
2379
2501
|
const deserializeAws_restJson1FormList = (output, context) => {
|
|
2380
2502
|
const retVal = (output || [])
|
|
2381
2503
|
.filter((e) => e != null)
|
|
@@ -2464,6 +2586,7 @@ const deserializeAws_restJson1Predicate = (output, context) => {
|
|
|
2464
2586
|
and: output.and != null ? deserializeAws_restJson1PredicateList(output.and, context) : undefined,
|
|
2465
2587
|
field: __expectString(output.field),
|
|
2466
2588
|
operand: __expectString(output.operand),
|
|
2589
|
+
operandType: __expectString(output.operandType),
|
|
2467
2590
|
operator: __expectString(output.operator),
|
|
2468
2591
|
or: output.or != null ? deserializeAws_restJson1PredicateList(output.or, context) : undefined,
|
|
2469
2592
|
};
|
|
@@ -2481,6 +2604,7 @@ const deserializeAws_restJson1PredicateList = (output, context) => {
|
|
|
2481
2604
|
};
|
|
2482
2605
|
const deserializeAws_restJson1SectionalElement = (output, context) => {
|
|
2483
2606
|
return {
|
|
2607
|
+
excluded: __expectBoolean(output.excluded),
|
|
2484
2608
|
level: __expectInt32(output.level),
|
|
2485
2609
|
orientation: __expectString(output.orientation),
|
|
2486
2610
|
position: output.position != null
|
|
@@ -2634,6 +2758,9 @@ const deserializeAws_restJson1ValueMappingList = (output, context) => {
|
|
|
2634
2758
|
};
|
|
2635
2759
|
const deserializeAws_restJson1ValueMappings = (output, context) => {
|
|
2636
2760
|
return {
|
|
2761
|
+
bindingProperties: output.bindingProperties != null
|
|
2762
|
+
? deserializeAws_restJson1FormInputBindingProperties(output.bindingProperties, context)
|
|
2763
|
+
: undefined,
|
|
2637
2764
|
values: output.values != null ? deserializeAws_restJson1ValueMappingList(output.values, context) : undefined,
|
|
2638
2765
|
};
|
|
2639
2766
|
};
|
|
@@ -158,7 +158,7 @@ export declare class AmplifyUIBuilder extends AmplifyUIBuilderClient {
|
|
|
158
158
|
listThemes(args: ListThemesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListThemesCommandOutput) => void): void;
|
|
159
159
|
/**
|
|
160
160
|
* @public
|
|
161
|
-
* <p>Stores the metadata information about a feature on a form
|
|
161
|
+
* <p>Stores the metadata information about a feature on a form.</p>
|
|
162
162
|
*/
|
|
163
163
|
putMetadataFlag(args: PutMetadataFlagCommandInput, options?: __HttpHandlerOptions): Promise<PutMetadataFlagCommandOutput>;
|
|
164
164
|
putMetadataFlag(args: PutMetadataFlagCommandInput, cb: (err: any, data?: PutMetadataFlagCommandOutput) => void): void;
|
|
@@ -204,12 +204,14 @@ export interface CreateComponentCommandOutput extends CreateComponentResponse, _
|
|
|
204
204
|
* field: "STRING_VALUE",
|
|
205
205
|
* operator: "STRING_VALUE",
|
|
206
206
|
* operand: "STRING_VALUE",
|
|
207
|
+
* operandType: "STRING_VALUE",
|
|
207
208
|
* },
|
|
208
209
|
* ],
|
|
209
210
|
* and: "<PredicateList>",
|
|
210
211
|
* field: "STRING_VALUE",
|
|
211
212
|
* operator: "STRING_VALUE",
|
|
212
213
|
* operand: "STRING_VALUE",
|
|
214
|
+
* operandType: "STRING_VALUE",
|
|
213
215
|
* },
|
|
214
216
|
* ],
|
|
215
217
|
* userAttribute: "STRING_VALUE",
|