@aws-sdk/client-amplifyuibuilder 3.121.0 → 3.130.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.
@@ -1317,23 +1317,15 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
1317
1317
  };
1318
1318
  const serializeAws_restJson1ActionParameters = (input, context) => {
1319
1319
  return {
1320
- ...(input.anchor !== undefined &&
1321
- input.anchor !== null && { anchor: serializeAws_restJson1ComponentProperty(input.anchor, context) }),
1322
- ...(input.fields !== undefined &&
1323
- input.fields !== null && { fields: serializeAws_restJson1ComponentProperties(input.fields, context) }),
1324
- ...(input.global !== undefined &&
1325
- input.global !== null && { global: serializeAws_restJson1ComponentProperty(input.global, context) }),
1326
- ...(input.id !== undefined &&
1327
- input.id !== null && { id: serializeAws_restJson1ComponentProperty(input.id, context) }),
1328
- ...(input.model !== undefined && input.model !== null && { model: input.model }),
1329
- ...(input.state !== undefined &&
1330
- input.state !== null && { state: serializeAws_restJson1MutationActionSetStateParameter(input.state, context) }),
1331
- ...(input.target !== undefined &&
1332
- input.target !== null && { target: serializeAws_restJson1ComponentProperty(input.target, context) }),
1333
- ...(input.type !== undefined &&
1334
- input.type !== null && { type: serializeAws_restJson1ComponentProperty(input.type, context) }),
1335
- ...(input.url !== undefined &&
1336
- input.url !== null && { url: serializeAws_restJson1ComponentProperty(input.url, context) }),
1320
+ ...(input.anchor != null && { anchor: serializeAws_restJson1ComponentProperty(input.anchor, context) }),
1321
+ ...(input.fields != null && { fields: serializeAws_restJson1ComponentProperties(input.fields, context) }),
1322
+ ...(input.global != null && { global: serializeAws_restJson1ComponentProperty(input.global, context) }),
1323
+ ...(input.id != null && { id: serializeAws_restJson1ComponentProperty(input.id, context) }),
1324
+ ...(input.model != null && { model: input.model }),
1325
+ ...(input.state != null && { state: serializeAws_restJson1MutationActionSetStateParameter(input.state, context) }),
1326
+ ...(input.target != null && { target: serializeAws_restJson1ComponentProperty(input.target, context) }),
1327
+ ...(input.type != null && { type: serializeAws_restJson1ComponentProperty(input.type, context) }),
1328
+ ...(input.url != null && { url: serializeAws_restJson1ComponentProperty(input.url, context) }),
1337
1329
  };
1338
1330
  };
1339
1331
  const serializeAws_restJson1ComponentBindingProperties = (input, context) => {
@@ -1349,39 +1341,34 @@ const serializeAws_restJson1ComponentBindingProperties = (input, context) => {
1349
1341
  };
1350
1342
  const serializeAws_restJson1ComponentBindingPropertiesValue = (input, context) => {
1351
1343
  return {
1352
- ...(input.bindingProperties !== undefined &&
1353
- input.bindingProperties !== null && {
1344
+ ...(input.bindingProperties != null && {
1354
1345
  bindingProperties: serializeAws_restJson1ComponentBindingPropertiesValueProperties(input.bindingProperties, context),
1355
1346
  }),
1356
- ...(input.defaultValue !== undefined && input.defaultValue !== null && { defaultValue: input.defaultValue }),
1357
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
1347
+ ...(input.defaultValue != null && { defaultValue: input.defaultValue }),
1348
+ ...(input.type != null && { type: input.type }),
1358
1349
  };
1359
1350
  };
1360
1351
  const serializeAws_restJson1ComponentBindingPropertiesValueProperties = (input, context) => {
1361
1352
  return {
1362
- ...(input.bucket !== undefined && input.bucket !== null && { bucket: input.bucket }),
1363
- ...(input.defaultValue !== undefined && input.defaultValue !== null && { defaultValue: input.defaultValue }),
1364
- ...(input.field !== undefined && input.field !== null && { field: input.field }),
1365
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
1366
- ...(input.model !== undefined && input.model !== null && { model: input.model }),
1367
- ...(input.predicates !== undefined &&
1368
- input.predicates !== null && { predicates: serializeAws_restJson1PredicateList(input.predicates, context) }),
1369
- ...(input.userAttribute !== undefined && input.userAttribute !== null && { userAttribute: input.userAttribute }),
1353
+ ...(input.bucket != null && { bucket: input.bucket }),
1354
+ ...(input.defaultValue != null && { defaultValue: input.defaultValue }),
1355
+ ...(input.field != null && { field: input.field }),
1356
+ ...(input.key != null && { key: input.key }),
1357
+ ...(input.model != null && { model: input.model }),
1358
+ ...(input.predicates != null && { predicates: serializeAws_restJson1PredicateList(input.predicates, context) }),
1359
+ ...(input.userAttribute != null && { userAttribute: input.userAttribute }),
1370
1360
  };
1371
1361
  };
1372
1362
  const serializeAws_restJson1ComponentChild = (input, context) => {
1373
1363
  return {
1374
- ...(input.children !== undefined &&
1375
- input.children !== null && { children: serializeAws_restJson1ComponentChildList(input.children, context) }),
1376
- ...(input.componentType !== undefined && input.componentType !== null && { componentType: input.componentType }),
1377
- ...(input.events !== undefined &&
1378
- input.events !== null && { events: serializeAws_restJson1ComponentEvents(input.events, context) }),
1379
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1380
- ...(input.properties !== undefined &&
1381
- input.properties !== null && {
1364
+ ...(input.children != null && { children: serializeAws_restJson1ComponentChildList(input.children, context) }),
1365
+ ...(input.componentType != null && { componentType: input.componentType }),
1366
+ ...(input.events != null && { events: serializeAws_restJson1ComponentEvents(input.events, context) }),
1367
+ ...(input.name != null && { name: input.name }),
1368
+ ...(input.properties != null && {
1382
1369
  properties: serializeAws_restJson1ComponentProperties(input.properties, context),
1383
1370
  }),
1384
- ...(input.sourceId !== undefined && input.sourceId !== null && { sourceId: input.sourceId }),
1371
+ ...(input.sourceId != null && { sourceId: input.sourceId }),
1385
1372
  };
1386
1373
  };
1387
1374
  const serializeAws_restJson1ComponentChildList = (input, context) => {
@@ -1407,34 +1394,28 @@ const serializeAws_restJson1ComponentCollectionProperties = (input, context) =>
1407
1394
  };
1408
1395
  const serializeAws_restJson1ComponentConditionProperty = (input, context) => {
1409
1396
  return {
1410
- ...(input.else !== undefined &&
1411
- input.else !== null && { else: serializeAws_restJson1ComponentProperty(input.else, context) }),
1412
- ...(input.field !== undefined && input.field !== null && { field: input.field }),
1413
- ...(input.operand !== undefined && input.operand !== null && { operand: input.operand }),
1414
- ...(input.operandType !== undefined && input.operandType !== null && { operandType: input.operandType }),
1415
- ...(input.operator !== undefined && input.operator !== null && { operator: input.operator }),
1416
- ...(input.property !== undefined && input.property !== null && { property: input.property }),
1417
- ...(input.then !== undefined &&
1418
- input.then !== null && { then: serializeAws_restJson1ComponentProperty(input.then, context) }),
1397
+ ...(input.else != null && { else: serializeAws_restJson1ComponentProperty(input.else, context) }),
1398
+ ...(input.field != null && { field: input.field }),
1399
+ ...(input.operand != null && { operand: input.operand }),
1400
+ ...(input.operandType != null && { operandType: input.operandType }),
1401
+ ...(input.operator != null && { operator: input.operator }),
1402
+ ...(input.property != null && { property: input.property }),
1403
+ ...(input.then != null && { then: serializeAws_restJson1ComponentProperty(input.then, context) }),
1419
1404
  };
1420
1405
  };
1421
1406
  const serializeAws_restJson1ComponentDataConfiguration = (input, context) => {
1422
1407
  return {
1423
- ...(input.identifiers !== undefined &&
1424
- input.identifiers !== null && { identifiers: serializeAws_restJson1IdentifierList(input.identifiers, context) }),
1425
- ...(input.model !== undefined && input.model !== null && { model: input.model }),
1426
- ...(input.predicate !== undefined &&
1427
- input.predicate !== null && { predicate: serializeAws_restJson1Predicate(input.predicate, context) }),
1428
- ...(input.sort !== undefined &&
1429
- input.sort !== null && { sort: serializeAws_restJson1SortPropertyList(input.sort, context) }),
1408
+ ...(input.identifiers != null && { identifiers: serializeAws_restJson1IdentifierList(input.identifiers, context) }),
1409
+ ...(input.model != null && { model: input.model }),
1410
+ ...(input.predicate != null && { predicate: serializeAws_restJson1Predicate(input.predicate, context) }),
1411
+ ...(input.sort != null && { sort: serializeAws_restJson1SortPropertyList(input.sort, context) }),
1430
1412
  };
1431
1413
  };
1432
1414
  const serializeAws_restJson1ComponentEvent = (input, context) => {
1433
1415
  return {
1434
- ...(input.action !== undefined && input.action !== null && { action: input.action }),
1435
- ...(input.bindingEvent !== undefined && input.bindingEvent !== null && { bindingEvent: input.bindingEvent }),
1436
- ...(input.parameters !== undefined &&
1437
- input.parameters !== null && { parameters: serializeAws_restJson1ActionParameters(input.parameters, context) }),
1416
+ ...(input.action != null && { action: input.action }),
1417
+ ...(input.bindingEvent != null && { bindingEvent: input.bindingEvent }),
1418
+ ...(input.parameters != null && { parameters: serializeAws_restJson1ActionParameters(input.parameters, context) }),
1438
1419
  };
1439
1420
  };
1440
1421
  const serializeAws_restJson1ComponentEvents = (input, context) => {
@@ -1483,38 +1464,33 @@ const serializeAws_restJson1ComponentProperties = (input, context) => {
1483
1464
  };
1484
1465
  const serializeAws_restJson1ComponentProperty = (input, context) => {
1485
1466
  return {
1486
- ...(input.bindingProperties !== undefined &&
1487
- input.bindingProperties !== null && {
1467
+ ...(input.bindingProperties != null && {
1488
1468
  bindingProperties: serializeAws_restJson1ComponentPropertyBindingProperties(input.bindingProperties, context),
1489
1469
  }),
1490
- ...(input.bindings !== undefined &&
1491
- input.bindings !== null && { bindings: serializeAws_restJson1FormBindings(input.bindings, context) }),
1492
- ...(input.collectionBindingProperties !== undefined &&
1493
- input.collectionBindingProperties !== null && {
1470
+ ...(input.bindings != null && { bindings: serializeAws_restJson1FormBindings(input.bindings, context) }),
1471
+ ...(input.collectionBindingProperties != null && {
1494
1472
  collectionBindingProperties: serializeAws_restJson1ComponentPropertyBindingProperties(input.collectionBindingProperties, context),
1495
1473
  }),
1496
- ...(input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName }),
1497
- ...(input.concat !== undefined &&
1498
- input.concat !== null && { concat: serializeAws_restJson1ComponentPropertyList(input.concat, context) }),
1499
- ...(input.condition !== undefined &&
1500
- input.condition !== null && {
1474
+ ...(input.componentName != null && { componentName: input.componentName }),
1475
+ ...(input.concat != null && { concat: serializeAws_restJson1ComponentPropertyList(input.concat, context) }),
1476
+ ...(input.condition != null && {
1501
1477
  condition: serializeAws_restJson1ComponentConditionProperty(input.condition, context),
1502
1478
  }),
1503
- ...(input.configured !== undefined && input.configured !== null && { configured: input.configured }),
1504
- ...(input.defaultValue !== undefined && input.defaultValue !== null && { defaultValue: input.defaultValue }),
1505
- ...(input.event !== undefined && input.event !== null && { event: input.event }),
1506
- ...(input.importedValue !== undefined && input.importedValue !== null && { importedValue: input.importedValue }),
1507
- ...(input.model !== undefined && input.model !== null && { model: input.model }),
1508
- ...(input.property !== undefined && input.property !== null && { property: input.property }),
1509
- ...(input.type !== undefined && input.type !== null && { type: input.type }),
1510
- ...(input.userAttribute !== undefined && input.userAttribute !== null && { userAttribute: input.userAttribute }),
1511
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
1479
+ ...(input.configured != null && { configured: input.configured }),
1480
+ ...(input.defaultValue != null && { defaultValue: input.defaultValue }),
1481
+ ...(input.event != null && { event: input.event }),
1482
+ ...(input.importedValue != null && { importedValue: input.importedValue }),
1483
+ ...(input.model != null && { model: input.model }),
1484
+ ...(input.property != null && { property: input.property }),
1485
+ ...(input.type != null && { type: input.type }),
1486
+ ...(input.userAttribute != null && { userAttribute: input.userAttribute }),
1487
+ ...(input.value != null && { value: input.value }),
1512
1488
  };
1513
1489
  };
1514
1490
  const serializeAws_restJson1ComponentPropertyBindingProperties = (input, context) => {
1515
1491
  return {
1516
- ...(input.field !== undefined && input.field !== null && { field: input.field }),
1517
- ...(input.property !== undefined && input.property !== null && { property: input.property }),
1492
+ ...(input.field != null && { field: input.field }),
1493
+ ...(input.property != null && { property: input.property }),
1518
1494
  };
1519
1495
  };
1520
1496
  const serializeAws_restJson1ComponentPropertyList = (input, context) => {
@@ -1529,10 +1505,8 @@ const serializeAws_restJson1ComponentPropertyList = (input, context) => {
1529
1505
  };
1530
1506
  const serializeAws_restJson1ComponentVariant = (input, context) => {
1531
1507
  return {
1532
- ...(input.overrides !== undefined &&
1533
- input.overrides !== null && { overrides: serializeAws_restJson1ComponentOverrides(input.overrides, context) }),
1534
- ...(input.variantValues !== undefined &&
1535
- input.variantValues !== null && {
1508
+ ...(input.overrides != null && { overrides: serializeAws_restJson1ComponentOverrides(input.overrides, context) }),
1509
+ ...(input.variantValues != null && {
1536
1510
  variantValues: serializeAws_restJson1ComponentVariantValues(input.variantValues, context),
1537
1511
  }),
1538
1512
  };
@@ -1560,53 +1534,44 @@ const serializeAws_restJson1ComponentVariantValues = (input, context) => {
1560
1534
  };
1561
1535
  const serializeAws_restJson1CreateComponentData = (input, context) => {
1562
1536
  return {
1563
- ...(input.bindingProperties !== undefined &&
1564
- input.bindingProperties !== null && {
1537
+ ...(input.bindingProperties != null && {
1565
1538
  bindingProperties: serializeAws_restJson1ComponentBindingProperties(input.bindingProperties, context),
1566
1539
  }),
1567
- ...(input.children !== undefined &&
1568
- input.children !== null && { children: serializeAws_restJson1ComponentChildList(input.children, context) }),
1569
- ...(input.collectionProperties !== undefined &&
1570
- input.collectionProperties !== null && {
1540
+ ...(input.children != null && { children: serializeAws_restJson1ComponentChildList(input.children, context) }),
1541
+ ...(input.collectionProperties != null && {
1571
1542
  collectionProperties: serializeAws_restJson1ComponentCollectionProperties(input.collectionProperties, context),
1572
1543
  }),
1573
- ...(input.componentType !== undefined && input.componentType !== null && { componentType: input.componentType }),
1574
- ...(input.events !== undefined &&
1575
- input.events !== null && { events: serializeAws_restJson1ComponentEvents(input.events, context) }),
1576
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1577
- ...(input.overrides !== undefined &&
1578
- input.overrides !== null && { overrides: serializeAws_restJson1ComponentOverrides(input.overrides, context) }),
1579
- ...(input.properties !== undefined &&
1580
- input.properties !== null && {
1544
+ ...(input.componentType != null && { componentType: input.componentType }),
1545
+ ...(input.events != null && { events: serializeAws_restJson1ComponentEvents(input.events, context) }),
1546
+ ...(input.name != null && { name: input.name }),
1547
+ ...(input.overrides != null && { overrides: serializeAws_restJson1ComponentOverrides(input.overrides, context) }),
1548
+ ...(input.properties != null && {
1581
1549
  properties: serializeAws_restJson1ComponentProperties(input.properties, context),
1582
1550
  }),
1583
- ...(input.schemaVersion !== undefined && input.schemaVersion !== null && { schemaVersion: input.schemaVersion }),
1584
- ...(input.sourceId !== undefined && input.sourceId !== null && { sourceId: input.sourceId }),
1585
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
1586
- ...(input.variants !== undefined &&
1587
- input.variants !== null && { variants: serializeAws_restJson1ComponentVariants(input.variants, context) }),
1551
+ ...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
1552
+ ...(input.sourceId != null && { sourceId: input.sourceId }),
1553
+ ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
1554
+ ...(input.variants != null && { variants: serializeAws_restJson1ComponentVariants(input.variants, context) }),
1588
1555
  };
1589
1556
  };
1590
1557
  const serializeAws_restJson1CreateThemeData = (input, context) => {
1591
1558
  return {
1592
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1593
- ...(input.overrides !== undefined &&
1594
- input.overrides !== null && { overrides: serializeAws_restJson1ThemeValuesList(input.overrides, context) }),
1595
- ...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
1596
- ...(input.values !== undefined &&
1597
- input.values !== null && { values: serializeAws_restJson1ThemeValuesList(input.values, context) }),
1559
+ ...(input.name != null && { name: input.name }),
1560
+ ...(input.overrides != null && { overrides: serializeAws_restJson1ThemeValuesList(input.overrides, context) }),
1561
+ ...(input.tags != null && { tags: serializeAws_restJson1Tags(input.tags, context) }),
1562
+ ...(input.values != null && { values: serializeAws_restJson1ThemeValuesList(input.values, context) }),
1598
1563
  };
1599
1564
  };
1600
1565
  const serializeAws_restJson1ExchangeCodeForTokenRequestBody = (input, context) => {
1601
1566
  return {
1602
- ...(input.code !== undefined && input.code !== null && { code: input.code }),
1603
- ...(input.redirectUri !== undefined && input.redirectUri !== null && { redirectUri: input.redirectUri }),
1567
+ ...(input.code != null && { code: input.code }),
1568
+ ...(input.redirectUri != null && { redirectUri: input.redirectUri }),
1604
1569
  };
1605
1570
  };
1606
1571
  const serializeAws_restJson1FormBindingElement = (input, context) => {
1607
1572
  return {
1608
- ...(input.element !== undefined && input.element !== null && { element: input.element }),
1609
- ...(input.property !== undefined && input.property !== null && { property: input.property }),
1573
+ ...(input.element != null && { element: input.element }),
1574
+ ...(input.property != null && { property: input.property }),
1610
1575
  };
1611
1576
  };
1612
1577
  const serializeAws_restJson1FormBindings = (input, context) => {
@@ -1632,20 +1597,18 @@ const serializeAws_restJson1IdentifierList = (input, context) => {
1632
1597
  };
1633
1598
  const serializeAws_restJson1MutationActionSetStateParameter = (input, context) => {
1634
1599
  return {
1635
- ...(input.componentName !== undefined && input.componentName !== null && { componentName: input.componentName }),
1636
- ...(input.property !== undefined && input.property !== null && { property: input.property }),
1637
- ...(input.set !== undefined &&
1638
- input.set !== null && { set: serializeAws_restJson1ComponentProperty(input.set, context) }),
1600
+ ...(input.componentName != null && { componentName: input.componentName }),
1601
+ ...(input.property != null && { property: input.property }),
1602
+ ...(input.set != null && { set: serializeAws_restJson1ComponentProperty(input.set, context) }),
1639
1603
  };
1640
1604
  };
1641
1605
  const serializeAws_restJson1Predicate = (input, context) => {
1642
1606
  return {
1643
- ...(input.and !== undefined &&
1644
- input.and !== null && { and: serializeAws_restJson1PredicateList(input.and, context) }),
1645
- ...(input.field !== undefined && input.field !== null && { field: input.field }),
1646
- ...(input.operand !== undefined && input.operand !== null && { operand: input.operand }),
1647
- ...(input.operator !== undefined && input.operator !== null && { operator: input.operator }),
1648
- ...(input.or !== undefined && input.or !== null && { or: serializeAws_restJson1PredicateList(input.or, context) }),
1607
+ ...(input.and != null && { and: serializeAws_restJson1PredicateList(input.and, context) }),
1608
+ ...(input.field != null && { field: input.field }),
1609
+ ...(input.operand != null && { operand: input.operand }),
1610
+ ...(input.operator != null && { operator: input.operator }),
1611
+ ...(input.or != null && { or: serializeAws_restJson1PredicateList(input.or, context) }),
1649
1612
  };
1650
1613
  };
1651
1614
  const serializeAws_restJson1PredicateList = (input, context) => {
@@ -1660,13 +1623,13 @@ const serializeAws_restJson1PredicateList = (input, context) => {
1660
1623
  };
1661
1624
  const serializeAws_restJson1RefreshTokenRequestBody = (input, context) => {
1662
1625
  return {
1663
- ...(input.token !== undefined && input.token !== null && { token: input.token }),
1626
+ ...(input.token != null && { token: input.token }),
1664
1627
  };
1665
1628
  };
1666
1629
  const serializeAws_restJson1SortProperty = (input, context) => {
1667
1630
  return {
1668
- ...(input.direction !== undefined && input.direction !== null && { direction: input.direction }),
1669
- ...(input.field !== undefined && input.field !== null && { field: input.field }),
1631
+ ...(input.direction != null && { direction: input.direction }),
1632
+ ...(input.field != null && { field: input.field }),
1670
1633
  };
1671
1634
  };
1672
1635
  const serializeAws_restJson1SortPropertyList = (input, context) => {
@@ -1692,16 +1655,14 @@ const serializeAws_restJson1Tags = (input, context) => {
1692
1655
  };
1693
1656
  const serializeAws_restJson1ThemeValue = (input, context) => {
1694
1657
  return {
1695
- ...(input.children !== undefined &&
1696
- input.children !== null && { children: serializeAws_restJson1ThemeValuesList(input.children, context) }),
1697
- ...(input.value !== undefined && input.value !== null && { value: input.value }),
1658
+ ...(input.children != null && { children: serializeAws_restJson1ThemeValuesList(input.children, context) }),
1659
+ ...(input.value != null && { value: input.value }),
1698
1660
  };
1699
1661
  };
1700
1662
  const serializeAws_restJson1ThemeValues = (input, context) => {
1701
1663
  return {
1702
- ...(input.key !== undefined && input.key !== null && { key: input.key }),
1703
- ...(input.value !== undefined &&
1704
- input.value !== null && { value: serializeAws_restJson1ThemeValue(input.value, context) }),
1664
+ ...(input.key != null && { key: input.key }),
1665
+ ...(input.value != null && { value: serializeAws_restJson1ThemeValue(input.value, context) }),
1705
1666
  };
1706
1667
  };
1707
1668
  const serializeAws_restJson1ThemeValuesList = (input, context) => {
@@ -1716,111 +1677,70 @@ const serializeAws_restJson1ThemeValuesList = (input, context) => {
1716
1677
  };
1717
1678
  const serializeAws_restJson1UpdateComponentData = (input, context) => {
1718
1679
  return {
1719
- ...(input.bindingProperties !== undefined &&
1720
- input.bindingProperties !== null && {
1680
+ ...(input.bindingProperties != null && {
1721
1681
  bindingProperties: serializeAws_restJson1ComponentBindingProperties(input.bindingProperties, context),
1722
1682
  }),
1723
- ...(input.children !== undefined &&
1724
- input.children !== null && { children: serializeAws_restJson1ComponentChildList(input.children, context) }),
1725
- ...(input.collectionProperties !== undefined &&
1726
- input.collectionProperties !== null && {
1683
+ ...(input.children != null && { children: serializeAws_restJson1ComponentChildList(input.children, context) }),
1684
+ ...(input.collectionProperties != null && {
1727
1685
  collectionProperties: serializeAws_restJson1ComponentCollectionProperties(input.collectionProperties, context),
1728
1686
  }),
1729
- ...(input.componentType !== undefined && input.componentType !== null && { componentType: input.componentType }),
1730
- ...(input.events !== undefined &&
1731
- input.events !== null && { events: serializeAws_restJson1ComponentEvents(input.events, context) }),
1732
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
1733
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1734
- ...(input.overrides !== undefined &&
1735
- input.overrides !== null && { overrides: serializeAws_restJson1ComponentOverrides(input.overrides, context) }),
1736
- ...(input.properties !== undefined &&
1737
- input.properties !== null && {
1687
+ ...(input.componentType != null && { componentType: input.componentType }),
1688
+ ...(input.events != null && { events: serializeAws_restJson1ComponentEvents(input.events, context) }),
1689
+ ...(input.id != null && { id: input.id }),
1690
+ ...(input.name != null && { name: input.name }),
1691
+ ...(input.overrides != null && { overrides: serializeAws_restJson1ComponentOverrides(input.overrides, context) }),
1692
+ ...(input.properties != null && {
1738
1693
  properties: serializeAws_restJson1ComponentProperties(input.properties, context),
1739
1694
  }),
1740
- ...(input.schemaVersion !== undefined && input.schemaVersion !== null && { schemaVersion: input.schemaVersion }),
1741
- ...(input.sourceId !== undefined && input.sourceId !== null && { sourceId: input.sourceId }),
1742
- ...(input.variants !== undefined &&
1743
- input.variants !== null && { variants: serializeAws_restJson1ComponentVariants(input.variants, context) }),
1695
+ ...(input.schemaVersion != null && { schemaVersion: input.schemaVersion }),
1696
+ ...(input.sourceId != null && { sourceId: input.sourceId }),
1697
+ ...(input.variants != null && { variants: serializeAws_restJson1ComponentVariants(input.variants, context) }),
1744
1698
  };
1745
1699
  };
1746
1700
  const serializeAws_restJson1UpdateThemeData = (input, context) => {
1747
1701
  return {
1748
- ...(input.id !== undefined && input.id !== null && { id: input.id }),
1749
- ...(input.name !== undefined && input.name !== null && { name: input.name }),
1750
- ...(input.overrides !== undefined &&
1751
- input.overrides !== null && { overrides: serializeAws_restJson1ThemeValuesList(input.overrides, context) }),
1752
- ...(input.values !== undefined &&
1753
- input.values !== null && { values: serializeAws_restJson1ThemeValuesList(input.values, context) }),
1702
+ ...(input.id != null && { id: input.id }),
1703
+ ...(input.name != null && { name: input.name }),
1704
+ ...(input.overrides != null && { overrides: serializeAws_restJson1ThemeValuesList(input.overrides, context) }),
1705
+ ...(input.values != null && { values: serializeAws_restJson1ThemeValuesList(input.values, context) }),
1754
1706
  };
1755
1707
  };
1756
1708
  const deserializeAws_restJson1ActionParameters = (output, context) => {
1757
1709
  return {
1758
- anchor: output.anchor !== undefined && output.anchor !== null
1759
- ? deserializeAws_restJson1ComponentProperty(output.anchor, context)
1760
- : undefined,
1761
- fields: output.fields !== undefined && output.fields !== null
1762
- ? deserializeAws_restJson1ComponentProperties(output.fields, context)
1763
- : undefined,
1764
- global: output.global !== undefined && output.global !== null
1765
- ? deserializeAws_restJson1ComponentProperty(output.global, context)
1766
- : undefined,
1767
- id: output.id !== undefined && output.id !== null
1768
- ? deserializeAws_restJson1ComponentProperty(output.id, context)
1769
- : undefined,
1710
+ anchor: output.anchor != null ? deserializeAws_restJson1ComponentProperty(output.anchor, context) : undefined,
1711
+ fields: output.fields != null ? deserializeAws_restJson1ComponentProperties(output.fields, context) : undefined,
1712
+ global: output.global != null ? deserializeAws_restJson1ComponentProperty(output.global, context) : undefined,
1713
+ id: output.id != null ? deserializeAws_restJson1ComponentProperty(output.id, context) : undefined,
1770
1714
  model: (0, smithy_client_1.expectString)(output.model),
1771
- state: output.state !== undefined && output.state !== null
1772
- ? deserializeAws_restJson1MutationActionSetStateParameter(output.state, context)
1773
- : undefined,
1774
- target: output.target !== undefined && output.target !== null
1775
- ? deserializeAws_restJson1ComponentProperty(output.target, context)
1776
- : undefined,
1777
- type: output.type !== undefined && output.type !== null
1778
- ? deserializeAws_restJson1ComponentProperty(output.type, context)
1779
- : undefined,
1780
- url: output.url !== undefined && output.url !== null
1781
- ? deserializeAws_restJson1ComponentProperty(output.url, context)
1782
- : undefined,
1715
+ state: output.state != null ? deserializeAws_restJson1MutationActionSetStateParameter(output.state, context) : undefined,
1716
+ target: output.target != null ? deserializeAws_restJson1ComponentProperty(output.target, context) : undefined,
1717
+ type: output.type != null ? deserializeAws_restJson1ComponentProperty(output.type, context) : undefined,
1718
+ url: output.url != null ? deserializeAws_restJson1ComponentProperty(output.url, context) : undefined,
1783
1719
  };
1784
1720
  };
1785
1721
  const deserializeAws_restJson1Component = (output, context) => {
1786
1722
  return {
1787
1723
  appId: (0, smithy_client_1.expectString)(output.appId),
1788
- bindingProperties: output.bindingProperties !== undefined && output.bindingProperties !== null
1724
+ bindingProperties: output.bindingProperties != null
1789
1725
  ? deserializeAws_restJson1ComponentBindingProperties(output.bindingProperties, context)
1790
1726
  : undefined,
1791
- children: output.children !== undefined && output.children !== null
1792
- ? deserializeAws_restJson1ComponentChildList(output.children, context)
1793
- : undefined,
1794
- collectionProperties: output.collectionProperties !== undefined && output.collectionProperties !== null
1727
+ children: output.children != null ? deserializeAws_restJson1ComponentChildList(output.children, context) : undefined,
1728
+ collectionProperties: output.collectionProperties != null
1795
1729
  ? deserializeAws_restJson1ComponentCollectionProperties(output.collectionProperties, context)
1796
1730
  : undefined,
1797
1731
  componentType: (0, smithy_client_1.expectString)(output.componentType),
1798
- createdAt: output.createdAt !== undefined && output.createdAt !== null
1799
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
1800
- : undefined,
1732
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
1801
1733
  environmentName: (0, smithy_client_1.expectString)(output.environmentName),
1802
- events: output.events !== undefined && output.events !== null
1803
- ? deserializeAws_restJson1ComponentEvents(output.events, context)
1804
- : undefined,
1734
+ events: output.events != null ? deserializeAws_restJson1ComponentEvents(output.events, context) : undefined,
1805
1735
  id: (0, smithy_client_1.expectString)(output.id),
1806
- modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
1807
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.modifiedAt))
1808
- : undefined,
1736
+ modifiedAt: output.modifiedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.modifiedAt)) : undefined,
1809
1737
  name: (0, smithy_client_1.expectString)(output.name),
1810
- overrides: output.overrides !== undefined && output.overrides !== null
1811
- ? deserializeAws_restJson1ComponentOverrides(output.overrides, context)
1812
- : undefined,
1813
- properties: output.properties !== undefined && output.properties !== null
1814
- ? deserializeAws_restJson1ComponentProperties(output.properties, context)
1815
- : undefined,
1738
+ overrides: output.overrides != null ? deserializeAws_restJson1ComponentOverrides(output.overrides, context) : undefined,
1739
+ properties: output.properties != null ? deserializeAws_restJson1ComponentProperties(output.properties, context) : undefined,
1816
1740
  schemaVersion: (0, smithy_client_1.expectString)(output.schemaVersion),
1817
1741
  sourceId: (0, smithy_client_1.expectString)(output.sourceId),
1818
- tags: output.tags !== undefined && output.tags !== null
1819
- ? deserializeAws_restJson1Tags(output.tags, context)
1820
- : undefined,
1821
- variants: output.variants !== undefined && output.variants !== null
1822
- ? deserializeAws_restJson1ComponentVariants(output.variants, context)
1823
- : undefined,
1742
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
1743
+ variants: output.variants != null ? deserializeAws_restJson1ComponentVariants(output.variants, context) : undefined,
1824
1744
  };
1825
1745
  };
1826
1746
  const deserializeAws_restJson1ComponentBindingProperties = (output, context) => {
@@ -1836,7 +1756,7 @@ const deserializeAws_restJson1ComponentBindingProperties = (output, context) =>
1836
1756
  };
1837
1757
  const deserializeAws_restJson1ComponentBindingPropertiesValue = (output, context) => {
1838
1758
  return {
1839
- bindingProperties: output.bindingProperties !== undefined && output.bindingProperties !== null
1759
+ bindingProperties: output.bindingProperties != null
1840
1760
  ? deserializeAws_restJson1ComponentBindingPropertiesValueProperties(output.bindingProperties, context)
1841
1761
  : undefined,
1842
1762
  defaultValue: (0, smithy_client_1.expectString)(output.defaultValue),
@@ -1850,25 +1770,17 @@ const deserializeAws_restJson1ComponentBindingPropertiesValueProperties = (outpu
1850
1770
  field: (0, smithy_client_1.expectString)(output.field),
1851
1771
  key: (0, smithy_client_1.expectString)(output.key),
1852
1772
  model: (0, smithy_client_1.expectString)(output.model),
1853
- predicates: output.predicates !== undefined && output.predicates !== null
1854
- ? deserializeAws_restJson1PredicateList(output.predicates, context)
1855
- : undefined,
1773
+ predicates: output.predicates != null ? deserializeAws_restJson1PredicateList(output.predicates, context) : undefined,
1856
1774
  userAttribute: (0, smithy_client_1.expectString)(output.userAttribute),
1857
1775
  };
1858
1776
  };
1859
1777
  const deserializeAws_restJson1ComponentChild = (output, context) => {
1860
1778
  return {
1861
- children: output.children !== undefined && output.children !== null
1862
- ? deserializeAws_restJson1ComponentChildList(output.children, context)
1863
- : undefined,
1779
+ children: output.children != null ? deserializeAws_restJson1ComponentChildList(output.children, context) : undefined,
1864
1780
  componentType: (0, smithy_client_1.expectString)(output.componentType),
1865
- events: output.events !== undefined && output.events !== null
1866
- ? deserializeAws_restJson1ComponentEvents(output.events, context)
1867
- : undefined,
1781
+ events: output.events != null ? deserializeAws_restJson1ComponentEvents(output.events, context) : undefined,
1868
1782
  name: (0, smithy_client_1.expectString)(output.name),
1869
- properties: output.properties !== undefined && output.properties !== null
1870
- ? deserializeAws_restJson1ComponentProperties(output.properties, context)
1871
- : undefined,
1783
+ properties: output.properties != null ? deserializeAws_restJson1ComponentProperties(output.properties, context) : undefined,
1872
1784
  sourceId: (0, smithy_client_1.expectString)(output.sourceId),
1873
1785
  };
1874
1786
  };
@@ -1896,40 +1808,28 @@ const deserializeAws_restJson1ComponentCollectionProperties = (output, context)
1896
1808
  };
1897
1809
  const deserializeAws_restJson1ComponentConditionProperty = (output, context) => {
1898
1810
  return {
1899
- else: output.else !== undefined && output.else !== null
1900
- ? deserializeAws_restJson1ComponentProperty(output.else, context)
1901
- : undefined,
1811
+ else: output.else != null ? deserializeAws_restJson1ComponentProperty(output.else, context) : undefined,
1902
1812
  field: (0, smithy_client_1.expectString)(output.field),
1903
1813
  operand: (0, smithy_client_1.expectString)(output.operand),
1904
1814
  operandType: (0, smithy_client_1.expectString)(output.operandType),
1905
1815
  operator: (0, smithy_client_1.expectString)(output.operator),
1906
1816
  property: (0, smithy_client_1.expectString)(output.property),
1907
- then: output.then !== undefined && output.then !== null
1908
- ? deserializeAws_restJson1ComponentProperty(output.then, context)
1909
- : undefined,
1817
+ then: output.then != null ? deserializeAws_restJson1ComponentProperty(output.then, context) : undefined,
1910
1818
  };
1911
1819
  };
1912
1820
  const deserializeAws_restJson1ComponentDataConfiguration = (output, context) => {
1913
1821
  return {
1914
- identifiers: output.identifiers !== undefined && output.identifiers !== null
1915
- ? deserializeAws_restJson1IdentifierList(output.identifiers, context)
1916
- : undefined,
1822
+ identifiers: output.identifiers != null ? deserializeAws_restJson1IdentifierList(output.identifiers, context) : undefined,
1917
1823
  model: (0, smithy_client_1.expectString)(output.model),
1918
- predicate: output.predicate !== undefined && output.predicate !== null
1919
- ? deserializeAws_restJson1Predicate(output.predicate, context)
1920
- : undefined,
1921
- sort: output.sort !== undefined && output.sort !== null
1922
- ? deserializeAws_restJson1SortPropertyList(output.sort, context)
1923
- : undefined,
1824
+ predicate: output.predicate != null ? deserializeAws_restJson1Predicate(output.predicate, context) : undefined,
1825
+ sort: output.sort != null ? deserializeAws_restJson1SortPropertyList(output.sort, context) : undefined,
1924
1826
  };
1925
1827
  };
1926
1828
  const deserializeAws_restJson1ComponentEvent = (output, context) => {
1927
1829
  return {
1928
1830
  action: (0, smithy_client_1.expectString)(output.action),
1929
1831
  bindingEvent: (0, smithy_client_1.expectString)(output.bindingEvent),
1930
- parameters: output.parameters !== undefined && output.parameters !== null
1931
- ? deserializeAws_restJson1ActionParameters(output.parameters, context)
1932
- : undefined,
1832
+ parameters: output.parameters != null ? deserializeAws_restJson1ActionParameters(output.parameters, context) : undefined,
1933
1833
  };
1934
1834
  };
1935
1835
  const deserializeAws_restJson1ComponentEvents = (output, context) => {
@@ -1989,20 +1889,16 @@ const deserializeAws_restJson1ComponentProperties = (output, context) => {
1989
1889
  };
1990
1890
  const deserializeAws_restJson1ComponentProperty = (output, context) => {
1991
1891
  return {
1992
- bindingProperties: output.bindingProperties !== undefined && output.bindingProperties !== null
1892
+ bindingProperties: output.bindingProperties != null
1993
1893
  ? deserializeAws_restJson1ComponentPropertyBindingProperties(output.bindingProperties, context)
1994
1894
  : undefined,
1995
- bindings: output.bindings !== undefined && output.bindings !== null
1996
- ? deserializeAws_restJson1FormBindings(output.bindings, context)
1997
- : undefined,
1998
- collectionBindingProperties: output.collectionBindingProperties !== undefined && output.collectionBindingProperties !== null
1895
+ bindings: output.bindings != null ? deserializeAws_restJson1FormBindings(output.bindings, context) : undefined,
1896
+ collectionBindingProperties: output.collectionBindingProperties != null
1999
1897
  ? deserializeAws_restJson1ComponentPropertyBindingProperties(output.collectionBindingProperties, context)
2000
1898
  : undefined,
2001
1899
  componentName: (0, smithy_client_1.expectString)(output.componentName),
2002
- concat: output.concat !== undefined && output.concat !== null
2003
- ? deserializeAws_restJson1ComponentPropertyList(output.concat, context)
2004
- : undefined,
2005
- condition: output.condition !== undefined && output.condition !== null
1900
+ concat: output.concat != null ? deserializeAws_restJson1ComponentPropertyList(output.concat, context) : undefined,
1901
+ condition: output.condition != null
2006
1902
  ? deserializeAws_restJson1ComponentConditionProperty(output.condition, context)
2007
1903
  : undefined,
2008
1904
  configured: (0, smithy_client_1.expectBoolean)(output.configured),
@@ -2055,10 +1951,8 @@ const deserializeAws_restJson1ComponentSummaryList = (output, context) => {
2055
1951
  };
2056
1952
  const deserializeAws_restJson1ComponentVariant = (output, context) => {
2057
1953
  return {
2058
- overrides: output.overrides !== undefined && output.overrides !== null
2059
- ? deserializeAws_restJson1ComponentOverrides(output.overrides, context)
2060
- : undefined,
2061
- variantValues: output.variantValues !== undefined && output.variantValues !== null
1954
+ overrides: output.overrides != null ? deserializeAws_restJson1ComponentOverrides(output.overrides, context) : undefined,
1955
+ variantValues: output.variantValues != null
2062
1956
  ? deserializeAws_restJson1ComponentVariantValues(output.variantValues, context)
2063
1957
  : undefined,
2064
1958
  };
@@ -2117,22 +2011,16 @@ const deserializeAws_restJson1MutationActionSetStateParameter = (output, context
2117
2011
  return {
2118
2012
  componentName: (0, smithy_client_1.expectString)(output.componentName),
2119
2013
  property: (0, smithy_client_1.expectString)(output.property),
2120
- set: output.set !== undefined && output.set !== null
2121
- ? deserializeAws_restJson1ComponentProperty(output.set, context)
2122
- : undefined,
2014
+ set: output.set != null ? deserializeAws_restJson1ComponentProperty(output.set, context) : undefined,
2123
2015
  };
2124
2016
  };
2125
2017
  const deserializeAws_restJson1Predicate = (output, context) => {
2126
2018
  return {
2127
- and: output.and !== undefined && output.and !== null
2128
- ? deserializeAws_restJson1PredicateList(output.and, context)
2129
- : undefined,
2019
+ and: output.and != null ? deserializeAws_restJson1PredicateList(output.and, context) : undefined,
2130
2020
  field: (0, smithy_client_1.expectString)(output.field),
2131
2021
  operand: (0, smithy_client_1.expectString)(output.operand),
2132
2022
  operator: (0, smithy_client_1.expectString)(output.operator),
2133
- or: output.or !== undefined && output.or !== null
2134
- ? deserializeAws_restJson1PredicateList(output.or, context)
2135
- : undefined,
2023
+ or: output.or != null ? deserializeAws_restJson1PredicateList(output.or, context) : undefined,
2136
2024
  };
2137
2025
  };
2138
2026
  const deserializeAws_restJson1PredicateList = (output, context) => {
@@ -2177,24 +2065,14 @@ const deserializeAws_restJson1Tags = (output, context) => {
2177
2065
  const deserializeAws_restJson1Theme = (output, context) => {
2178
2066
  return {
2179
2067
  appId: (0, smithy_client_1.expectString)(output.appId),
2180
- createdAt: output.createdAt !== undefined && output.createdAt !== null
2181
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt))
2182
- : undefined,
2068
+ createdAt: output.createdAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.createdAt)) : undefined,
2183
2069
  environmentName: (0, smithy_client_1.expectString)(output.environmentName),
2184
2070
  id: (0, smithy_client_1.expectString)(output.id),
2185
- modifiedAt: output.modifiedAt !== undefined && output.modifiedAt !== null
2186
- ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.modifiedAt))
2187
- : undefined,
2071
+ modifiedAt: output.modifiedAt != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.modifiedAt)) : undefined,
2188
2072
  name: (0, smithy_client_1.expectString)(output.name),
2189
- overrides: output.overrides !== undefined && output.overrides !== null
2190
- ? deserializeAws_restJson1ThemeValuesList(output.overrides, context)
2191
- : undefined,
2192
- tags: output.tags !== undefined && output.tags !== null
2193
- ? deserializeAws_restJson1Tags(output.tags, context)
2194
- : undefined,
2195
- values: output.values !== undefined && output.values !== null
2196
- ? deserializeAws_restJson1ThemeValuesList(output.values, context)
2197
- : undefined,
2073
+ overrides: output.overrides != null ? deserializeAws_restJson1ThemeValuesList(output.overrides, context) : undefined,
2074
+ tags: output.tags != null ? deserializeAws_restJson1Tags(output.tags, context) : undefined,
2075
+ values: output.values != null ? deserializeAws_restJson1ThemeValuesList(output.values, context) : undefined,
2198
2076
  };
2199
2077
  };
2200
2078
  const deserializeAws_restJson1ThemeList = (output, context) => {
@@ -2229,18 +2107,14 @@ const deserializeAws_restJson1ThemeSummaryList = (output, context) => {
2229
2107
  };
2230
2108
  const deserializeAws_restJson1ThemeValue = (output, context) => {
2231
2109
  return {
2232
- children: output.children !== undefined && output.children !== null
2233
- ? deserializeAws_restJson1ThemeValuesList(output.children, context)
2234
- : undefined,
2110
+ children: output.children != null ? deserializeAws_restJson1ThemeValuesList(output.children, context) : undefined,
2235
2111
  value: (0, smithy_client_1.expectString)(output.value),
2236
2112
  };
2237
2113
  };
2238
2114
  const deserializeAws_restJson1ThemeValues = (output, context) => {
2239
2115
  return {
2240
2116
  key: (0, smithy_client_1.expectString)(output.key),
2241
- value: output.value !== undefined && output.value !== null
2242
- ? deserializeAws_restJson1ThemeValue(output.value, context)
2243
- : undefined,
2117
+ value: output.value != null ? deserializeAws_restJson1ThemeValue(output.value, context) : undefined,
2244
2118
  };
2245
2119
  };
2246
2120
  const deserializeAws_restJson1ThemeValuesList = (output, context) => {
@@ -2285,6 +2159,9 @@ const loadRestJsonErrorCode = (output, data) => {
2285
2159
  const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
2286
2160
  const sanitizeErrorCode = (rawValue) => {
2287
2161
  let cleanValue = rawValue;
2162
+ if (typeof cleanValue === "number") {
2163
+ cleanValue = cleanValue.toString();
2164
+ }
2288
2165
  if (cleanValue.indexOf(":") >= 0) {
2289
2166
  cleanValue = cleanValue.split(":")[0];
2290
2167
  }