@aws-sdk/client-amplifyuibuilder 3.229.0 → 3.231.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.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deserializeAws_restJson1UpdateThemeCommand = exports.deserializeAws_restJson1UpdateFormCommand = exports.deserializeAws_restJson1UpdateComponentCommand = exports.deserializeAws_restJson1RefreshTokenCommand = exports.deserializeAws_restJson1PutMetadataFlagCommand = exports.deserializeAws_restJson1ListThemesCommand = exports.deserializeAws_restJson1ListFormsCommand = exports.deserializeAws_restJson1ListComponentsCommand = exports.deserializeAws_restJson1GetThemeCommand = exports.deserializeAws_restJson1GetMetadataCommand = exports.deserializeAws_restJson1GetFormCommand = exports.deserializeAws_restJson1GetComponentCommand = exports.deserializeAws_restJson1ExportThemesCommand = exports.deserializeAws_restJson1ExportFormsCommand = exports.deserializeAws_restJson1ExportComponentsCommand = exports.deserializeAws_restJson1ExchangeCodeForTokenCommand = exports.deserializeAws_restJson1DeleteThemeCommand = exports.deserializeAws_restJson1DeleteFormCommand = exports.deserializeAws_restJson1DeleteComponentCommand = exports.deserializeAws_restJson1CreateThemeCommand = exports.deserializeAws_restJson1CreateFormCommand = exports.deserializeAws_restJson1CreateComponentCommand = exports.serializeAws_restJson1UpdateThemeCommand = exports.serializeAws_restJson1UpdateFormCommand = exports.serializeAws_restJson1UpdateComponentCommand = exports.serializeAws_restJson1RefreshTokenCommand = exports.serializeAws_restJson1PutMetadataFlagCommand = exports.serializeAws_restJson1ListThemesCommand = exports.serializeAws_restJson1ListFormsCommand = exports.serializeAws_restJson1ListComponentsCommand = exports.serializeAws_restJson1GetThemeCommand = exports.serializeAws_restJson1GetMetadataCommand = exports.serializeAws_restJson1GetFormCommand = exports.serializeAws_restJson1GetComponentCommand = exports.serializeAws_restJson1ExportThemesCommand = exports.serializeAws_restJson1ExportFormsCommand = exports.serializeAws_restJson1ExportComponentsCommand = exports.serializeAws_restJson1ExchangeCodeForTokenCommand = exports.serializeAws_restJson1DeleteThemeCommand = exports.serializeAws_restJson1DeleteFormCommand = exports.serializeAws_restJson1DeleteComponentCommand = exports.serializeAws_restJson1CreateThemeCommand = exports.serializeAws_restJson1CreateFormCommand = exports.serializeAws_restJson1CreateComponentCommand = void 0;
4
4
  const protocol_http_1 = require("@aws-sdk/protocol-http");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
+ const uuid_1 = require("uuid");
6
7
  const AmplifyUIBuilderServiceException_1 = require("../models/AmplifyUIBuilderServiceException");
7
8
  const models_0_1 = require("../models/models_0");
8
9
  const serializeAws_restJson1CreateComponentCommand = async (input, context) => {
@@ -15,7 +16,7 @@ const serializeAws_restJson1CreateComponentCommand = async (input, context) => {
15
16
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
16
17
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
17
18
  const query = map({
18
- clientToken: [, input.clientToken],
19
+ clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
19
20
  });
20
21
  let body;
21
22
  if (input.componentToCreate !== undefined) {
@@ -47,7 +48,7 @@ const serializeAws_restJson1CreateFormCommand = async (input, context) => {
47
48
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
48
49
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
49
50
  const query = map({
50
- clientToken: [, input.clientToken],
51
+ clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
51
52
  });
52
53
  let body;
53
54
  if (input.formToCreate !== undefined) {
@@ -79,7 +80,7 @@ const serializeAws_restJson1CreateThemeCommand = async (input, context) => {
79
80
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
80
81
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
81
82
  const query = map({
82
- clientToken: [, input.clientToken],
83
+ clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
83
84
  });
84
85
  let body;
85
86
  if (input.themeToCreate !== undefined) {
@@ -473,7 +474,7 @@ const serializeAws_restJson1UpdateComponentCommand = async (input, context) => {
473
474
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
474
475
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
475
476
  const query = map({
476
- clientToken: [, input.clientToken],
477
+ clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
477
478
  });
478
479
  let body;
479
480
  if (input.updatedComponent !== undefined) {
@@ -506,7 +507,7 @@ const serializeAws_restJson1UpdateFormCommand = async (input, context) => {
506
507
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
507
508
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
508
509
  const query = map({
509
- clientToken: [, input.clientToken],
510
+ clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
510
511
  });
511
512
  let body;
512
513
  if (input.updatedForm !== undefined) {
@@ -539,7 +540,7 @@ const serializeAws_restJson1UpdateThemeCommand = async (input, context) => {
539
540
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
540
541
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "id", () => input.id, "{id}", false);
541
542
  const query = map({
542
- clientToken: [, input.clientToken],
543
+ clientToken: [, input.clientToken ?? (0, uuid_1.v4)()],
543
544
  });
544
545
  let body;
545
546
  if (input.updatedTheme !== undefined) {
@@ -1,5 +1,6 @@
1
1
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
2
2
  import { decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, expectUnion as __expectUnion, limitedParseFloat32 as __limitedParseFloat32, map as __map, parseRfc3339DateTime as __parseRfc3339DateTime, resolvedPath as __resolvedPath, serializeFloat as __serializeFloat, throwDefaultError, } from "@aws-sdk/smithy-client";
3
+ import { v4 as generateIdempotencyToken } from "uuid";
3
4
  import { AmplifyUIBuilderServiceException as __BaseException } from "../models/AmplifyUIBuilderServiceException";
4
5
  import { FieldPosition, FormStyleConfig, InternalServerException, InvalidParameterException, ResourceConflictException, ResourceNotFoundException, ServiceQuotaExceededException, UnauthorizedException, } from "../models/models_0";
5
6
  export const serializeAws_restJson1CreateComponentCommand = async (input, context) => {
@@ -12,7 +13,7 @@ export const serializeAws_restJson1CreateComponentCommand = async (input, contex
12
13
  resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
13
14
  resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
14
15
  const query = map({
15
- clientToken: [, input.clientToken],
16
+ clientToken: [, input.clientToken ?? generateIdempotencyToken()],
16
17
  });
17
18
  let body;
18
19
  if (input.componentToCreate !== undefined) {
@@ -43,7 +44,7 @@ export const serializeAws_restJson1CreateFormCommand = async (input, context) =>
43
44
  resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
44
45
  resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
45
46
  const query = map({
46
- clientToken: [, input.clientToken],
47
+ clientToken: [, input.clientToken ?? generateIdempotencyToken()],
47
48
  });
48
49
  let body;
49
50
  if (input.formToCreate !== undefined) {
@@ -74,7 +75,7 @@ export const serializeAws_restJson1CreateThemeCommand = async (input, context) =
74
75
  resolvedPath = __resolvedPath(resolvedPath, input, "appId", () => input.appId, "{appId}", false);
75
76
  resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
76
77
  const query = map({
77
- clientToken: [, input.clientToken],
78
+ clientToken: [, input.clientToken ?? generateIdempotencyToken()],
78
79
  });
79
80
  let body;
80
81
  if (input.themeToCreate !== undefined) {
@@ -451,7 +452,7 @@ export const serializeAws_restJson1UpdateComponentCommand = async (input, contex
451
452
  resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
452
453
  resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
453
454
  const query = map({
454
- clientToken: [, input.clientToken],
455
+ clientToken: [, input.clientToken ?? generateIdempotencyToken()],
455
456
  });
456
457
  let body;
457
458
  if (input.updatedComponent !== undefined) {
@@ -483,7 +484,7 @@ export const serializeAws_restJson1UpdateFormCommand = async (input, context) =>
483
484
  resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
484
485
  resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
485
486
  const query = map({
486
- clientToken: [, input.clientToken],
487
+ clientToken: [, input.clientToken ?? generateIdempotencyToken()],
487
488
  });
488
489
  let body;
489
490
  if (input.updatedForm !== undefined) {
@@ -515,7 +516,7 @@ export const serializeAws_restJson1UpdateThemeCommand = async (input, context) =
515
516
  resolvedPath = __resolvedPath(resolvedPath, input, "environmentName", () => input.environmentName, "{environmentName}", false);
516
517
  resolvedPath = __resolvedPath(resolvedPath, input, "id", () => input.id, "{id}", false);
517
518
  const query = map({
518
- clientToken: [, input.clientToken],
519
+ clientToken: [, input.clientToken ?? generateIdempotencyToken()],
519
520
  });
520
521
  let body;
521
522
  if (input.updatedTheme !== undefined) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-amplifyuibuilder",
3
3
  "description": "AWS SDK for JavaScript Amplifyuibuilder Client for Node.js, Browser and React Native",
4
- "version": "3.229.0",
4
+ "version": "3.231.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.229.0",
23
- "@aws-sdk/config-resolver": "3.226.0",
24
- "@aws-sdk/credential-provider-node": "3.229.0",
22
+ "@aws-sdk/client-sts": "3.231.0",
23
+ "@aws-sdk/config-resolver": "3.231.0",
24
+ "@aws-sdk/credential-provider-node": "3.231.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.226.0",
26
26
  "@aws-sdk/hash-node": "3.226.0",
27
27
  "@aws-sdk/invalid-dependency": "3.226.0",
@@ -45,7 +45,7 @@
45
45
  "@aws-sdk/util-body-length-browser": "3.188.0",
46
46
  "@aws-sdk/util-body-length-node": "3.208.0",
47
47
  "@aws-sdk/util-defaults-mode-browser": "3.226.0",
48
- "@aws-sdk/util-defaults-mode-node": "3.226.0",
48
+ "@aws-sdk/util-defaults-mode-node": "3.231.0",
49
49
  "@aws-sdk/util-endpoints": "3.226.0",
50
50
  "@aws-sdk/util-retry": "3.229.0",
51
51
  "@aws-sdk/util-user-agent-browser": "3.226.0",