From 1c8833650533c9b2fada91f077e287d50784cd0e Mon Sep 17 00:00:00 2001 From: Hui Zhao Date: Wed, 21 Aug 2024 17:17:39 -0700 Subject: [PATCH] chore: resolve most of the comments from cshfang cont. 2 --- .../shared/serialization/buildEmptyResponseDeserializer.test.ts | 2 +- .../shared/serialization/buildUserPoolDeserializer.test.ts | 2 +- .../shared/serialization/buildUserPoolSerializer.test.ts | 2 +- .../createAssociateSoftwareTokenClient.ts | 2 +- .../cognitoIdentityProvider/createChangePasswordClient.ts | 2 +- .../cognitoIdentityProvider/createConfirmDeviceClient.ts | 2 +- .../createConfirmForgotPasswordClient.ts | 2 +- .../cognitoIdentityProvider/createConfirmSignUpClient.ts | 2 +- .../cognitoIdentityProvider/createDeleteUserAttributesClient.ts | 2 +- .../cognitoIdentityProvider/createDeleteUserClient.ts | 2 +- .../cognitoIdentityProvider/createForgetDeviceClient.ts | 2 +- .../cognitoIdentityProvider/createForgotPasswordClient.ts | 2 +- .../createGetUserAttributeVerificationCodeClient.ts | 2 +- .../cognitoIdentityProvider/createGetUserClient.ts | 2 +- .../cognitoIdentityProvider/createGlobalSignOutClient.ts | 2 +- .../cognitoIdentityProvider/createInitiateAuthClient.ts | 2 +- .../cognitoIdentityProvider/createListDevicesClient.ts | 2 +- .../createResendConfirmationCodeClient.ts | 2 +- .../createRespondToAuthChallengeClient.ts | 2 +- .../cognitoIdentityProvider/createRevokeTokenClient.ts | 2 +- .../cognitoIdentityProvider/createSetUserMFAPreferenceClient.ts | 2 +- .../cognitoIdentityProvider/createSignUpClient.ts | 2 +- .../cognitoIdentityProvider/createUpdateDeviceStatusClient.ts | 2 +- .../cognitoIdentityProvider/createUpdateUserAttributesClient.ts | 2 +- .../cognitoIdentityProvider/createVerifySoftwareTokenClient.ts | 2 +- .../cognitoIdentityProvider/createVerifyUserAttributeClient.ts | 2 +- .../{serialization => serde}/createEmptyResponseDeserializer.ts | 0 .../{serialization => serde}/createUserPoolDeserializer.ts | 0 .../shared/{serialization => serde}/createUserPoolSerializer.ts | 0 .../shared/{serialization => serde}/index.ts | 0 30 files changed, 26 insertions(+), 26 deletions(-) rename packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/{serialization => serde}/createEmptyResponseDeserializer.ts (100%) rename packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/{serialization => serde}/createUserPoolDeserializer.ts (100%) rename packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/{serialization => serde}/createUserPoolSerializer.ts (100%) rename packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/{serialization => serde}/index.ts (100%) diff --git a/packages/auth/__tests__/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/buildEmptyResponseDeserializer.test.ts b/packages/auth/__tests__/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/buildEmptyResponseDeserializer.test.ts index 9bfb5fa1391..39658867d7e 100644 --- a/packages/auth/__tests__/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/buildEmptyResponseDeserializer.test.ts +++ b/packages/auth/__tests__/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/buildEmptyResponseDeserializer.test.ts @@ -3,7 +3,7 @@ import { parseJsonError, } from '@aws-amplify/core/internals/aws-client-utils'; -import { createEmptyResponseDeserializer } from '../../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/createEmptyResponseDeserializer'; +import { createEmptyResponseDeserializer } from '../../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createEmptyResponseDeserializer'; import { AuthError } from '../../../../../../../src/errors/AuthError'; jest.mock('@aws-amplify/core/internals/aws-client-utils'); diff --git a/packages/auth/__tests__/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/buildUserPoolDeserializer.test.ts b/packages/auth/__tests__/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/buildUserPoolDeserializer.test.ts index 065d2a548bf..18bc775caca 100644 --- a/packages/auth/__tests__/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/buildUserPoolDeserializer.test.ts +++ b/packages/auth/__tests__/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/buildUserPoolDeserializer.test.ts @@ -4,7 +4,7 @@ import { parseJsonError, } from '@aws-amplify/core/internals/aws-client-utils'; -import { createUserPoolDeserializer } from '../../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/createUserPoolDeserializer'; +import { createUserPoolDeserializer } from '../../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolDeserializer'; import { AuthError } from '../../../../../../../src/errors/AuthError'; jest.mock('@aws-amplify/core/internals/aws-client-utils'); diff --git a/packages/auth/__tests__/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/buildUserPoolSerializer.test.ts b/packages/auth/__tests__/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/buildUserPoolSerializer.test.ts index 3b48d1a5a04..ea117c568eb 100644 --- a/packages/auth/__tests__/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/buildUserPoolSerializer.test.ts +++ b/packages/auth/__tests__/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/buildUserPoolSerializer.test.ts @@ -1,6 +1,6 @@ import { AmplifyUrl } from '@aws-amplify/core/internals/utils'; -import { createUserPoolSerializer } from '../../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/createUserPoolSerializer'; +import { createUserPoolSerializer } from '../../../../../../../src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolSerializer'; describe('buildUserPoolSerializer created request serializer', () => { test.each(['SignUp', 'InitiateAuth', 'RevokeToken'] as const)( diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createAssociateSoftwareTokenClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createAssociateSoftwareTokenClient.ts index 757f6bea2d1..4fa07c8a217 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createAssociateSoftwareTokenClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createAssociateSoftwareTokenClient.ts @@ -11,7 +11,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; export const createAssociateSoftwareTokenClient = ( diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createChangePasswordClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createChangePasswordClient.ts index ea5a4f0aa90..f8e76959850 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createChangePasswordClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createChangePasswordClient.ts @@ -6,7 +6,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { ChangePasswordCommandInput, ChangePasswordCommandOutput, diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmDeviceClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmDeviceClient.ts index fb5fd05e7c1..3d9ced2e060 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmDeviceClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmDeviceClient.ts @@ -6,7 +6,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { ConfirmDeviceCommandInput, ConfirmDeviceCommandOutput, diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmForgotPasswordClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmForgotPasswordClient.ts index ca64848ad74..a300a4ccadb 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmForgotPasswordClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmForgotPasswordClient.ts @@ -11,7 +11,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; export const createConfirmForgotPasswordClient = ( diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmSignUpClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmSignUpClient.ts index 1eee1f81f94..d5a712af669 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmSignUpClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createConfirmSignUpClient.ts @@ -7,7 +7,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { ConfirmSignUpCommandInput, ConfirmSignUpCommandOutput, diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteUserAttributesClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteUserAttributesClient.ts index b9e0c5c021a..052ff8c9b0a 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteUserAttributesClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteUserAttributesClient.ts @@ -11,7 +11,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; export const createDeleteUserAttributesClient = ( diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteUserClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteUserClient.ts index 39c3db1efce..70cb9860ee2 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteUserClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createDeleteUserClient.ts @@ -11,7 +11,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createEmptyResponseDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; export const createDeleteUserClient = (config: ServiceClientFactoryInput) => diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createForgetDeviceClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createForgetDeviceClient.ts index 009d888c2b7..f2851a80f78 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createForgetDeviceClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createForgetDeviceClient.ts @@ -6,7 +6,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createEmptyResponseDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { ForgetDeviceCommandInput, ForgetDeviceCommandOutput, diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createForgotPasswordClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createForgotPasswordClient.ts index a381b0209f0..965e8475d83 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createForgotPasswordClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createForgotPasswordClient.ts @@ -11,7 +11,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; export const createForgotPasswordClient = (config: ServiceClientFactoryInput) => diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createGetUserAttributeVerificationCodeClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createGetUserAttributeVerificationCodeClient.ts index 1354ed2c93e..4b699383ffe 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createGetUserAttributeVerificationCodeClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createGetUserAttributeVerificationCodeClient.ts @@ -11,7 +11,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; export const createGetUserAttributeVerificationCodeClient = ( diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createGetUserClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createGetUserClient.ts index aa38363567e..0a0eed9f070 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createGetUserClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createGetUserClient.ts @@ -11,7 +11,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; export const createGetUserClient = (config: ServiceClientFactoryInput) => diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createGlobalSignOutClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createGlobalSignOutClient.ts index 422cb43f406..3ef65818bbf 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createGlobalSignOutClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createGlobalSignOutClient.ts @@ -11,7 +11,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; export const createGlobalSignOutClient = (config: ServiceClientFactoryInput) => diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createInitiateAuthClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createInitiateAuthClient.ts index eef86cb6304..b505144933e 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createInitiateAuthClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createInitiateAuthClient.ts @@ -11,7 +11,7 @@ import { import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { cognitoUserPoolTransferHandler } from './shared/handler'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createListDevicesClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createListDevicesClient.ts index ce784df5e6a..b6ec1ffd385 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createListDevicesClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createListDevicesClient.ts @@ -11,7 +11,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; export const createListDevicesClient = (config: ServiceClientFactoryInput) => diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createResendConfirmationCodeClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createResendConfirmationCodeClient.ts index a94b9b1347c..7fda8d140c5 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createResendConfirmationCodeClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createResendConfirmationCodeClient.ts @@ -11,7 +11,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; export const createResendConfirmationCodeClient = ( diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createRespondToAuthChallengeClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createRespondToAuthChallengeClient.ts index 24baa618f6f..736fdfd0ed7 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createRespondToAuthChallengeClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createRespondToAuthChallengeClient.ts @@ -11,7 +11,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; export const createRespondToAuthChallengeClient = ( diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createRevokeTokenClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createRevokeTokenClient.ts index 4e4f1232eaf..4deb8a8faf3 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createRevokeTokenClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createRevokeTokenClient.ts @@ -6,7 +6,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { ServiceClientFactoryInput } from './types'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createSetUserMFAPreferenceClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createSetUserMFAPreferenceClient.ts index 9ffdc31fc1e..60b0f4bfddd 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createSetUserMFAPreferenceClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createSetUserMFAPreferenceClient.ts @@ -11,7 +11,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; export const createSetUserMFAPreferenceClient = ( diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.ts index 93880c56702..e77676bab1d 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createSignUpClient.ts @@ -12,7 +12,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; export const createSignUpClient = (config: ServiceClientFactoryInput) => composeServiceApi( diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createUpdateDeviceStatusClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createUpdateDeviceStatusClient.ts index 32b4471fbf7..9e511187ba5 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createUpdateDeviceStatusClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createUpdateDeviceStatusClient.ts @@ -11,7 +11,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; export const createUpdateDeviceStatusClient = ( diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createUpdateUserAttributesClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createUpdateUserAttributesClient.ts index c37329a47dc..5c71001c41d 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createUpdateUserAttributesClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createUpdateUserAttributesClient.ts @@ -11,7 +11,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; export const createUpdateUserAttributesClient = ( diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createVerifySoftwareTokenClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createVerifySoftwareTokenClient.ts index 355e2dc224e..c5b63486c42 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createVerifySoftwareTokenClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createVerifySoftwareTokenClient.ts @@ -11,7 +11,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; export const createVerifySoftwareTokenClient = ( diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createVerifyUserAttributeClient.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createVerifyUserAttributeClient.ts index 5417839112c..ad24b27c97a 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createVerifyUserAttributeClient.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/createVerifyUserAttributeClient.ts @@ -11,7 +11,7 @@ import { cognitoUserPoolTransferHandler } from './shared/handler'; import { createUserPoolDeserializer, createUserPoolSerializer, -} from './shared/serialization'; +} from './shared/serde'; import { DEFAULT_SERVICE_CLIENT_API_CONFIG } from './constants'; export const createVerifyUserAttributeClient = ( diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/createEmptyResponseDeserializer.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createEmptyResponseDeserializer.ts similarity index 100% rename from packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/createEmptyResponseDeserializer.ts rename to packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createEmptyResponseDeserializer.ts diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/createUserPoolDeserializer.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolDeserializer.ts similarity index 100% rename from packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/createUserPoolDeserializer.ts rename to packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolDeserializer.ts diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/createUserPoolSerializer.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolSerializer.ts similarity index 100% rename from packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/createUserPoolSerializer.ts rename to packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/createUserPoolSerializer.ts diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/index.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/index.ts similarity index 100% rename from packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serialization/index.ts rename to packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/shared/serde/index.ts