diff --git a/packages/auth/__tests__/foundation/core/cognitoUserPoolEndpointResolver.test.ts b/packages/auth/__tests__/foundation/core/cognitoUserPoolEndpointResolver.test.ts index ff2fc5282d4..c5d5c90eaf4 100644 --- a/packages/auth/__tests__/foundation/core/cognitoUserPoolEndpointResolver.test.ts +++ b/packages/auth/__tests__/foundation/core/cognitoUserPoolEndpointResolver.test.ts @@ -1,7 +1,7 @@ import { AmplifyUrl } from '@aws-amplify/core/internals/utils'; -import { cognitoUserPoolEndpointResolver } from '../../../src/foundation/core/cognitoUserPoolEndpointResolver'; -import { COGNITO_IDP_SERVICE_NAME } from '../../../src/foundation/core/constants'; +import { cognitoUserPoolEndpointResolver } from '../../../src/foundation/cognitoUserPoolEndpointResolver'; +import { COGNITO_IDP_SERVICE_NAME } from '../../../src/foundation/constants'; describe('cognitoUserPoolEndpointResolver', () => { it('should return the Cognito User Pool endpoint', () => { diff --git a/packages/auth/__tests__/foundation/core/parsers/getRegion.test.ts b/packages/auth/__tests__/foundation/core/parsers/getRegion.test.ts index 6a5780e8d18..e3593846607 100644 --- a/packages/auth/__tests__/foundation/core/parsers/getRegion.test.ts +++ b/packages/auth/__tests__/foundation/core/parsers/getRegion.test.ts @@ -2,7 +2,7 @@ import { AuthError } from '../../../../src/errors/AuthError'; import { getRegionFromIdentityPoolId, getRegionFromUserPoolId, -} from '../../../../src/foundation/core/parsers/regionParsers'; +} from '../../../../src/foundation/parsers/regionParsers'; describe('getRegionFromIdentityPoolId()', () => { it('returns the region from the identity pool id', () => { diff --git a/packages/auth/__tests__/providers/cognito/factories/createCognitoUserPoolEndpointResolver.test.ts b/packages/auth/__tests__/providers/cognito/factories/createCognitoUserPoolEndpointResolver.test.ts index b842e95a392..1c499146921 100644 --- a/packages/auth/__tests__/providers/cognito/factories/createCognitoUserPoolEndpointResolver.test.ts +++ b/packages/auth/__tests__/providers/cognito/factories/createCognitoUserPoolEndpointResolver.test.ts @@ -1,9 +1,9 @@ import { AmplifyUrl } from '@aws-amplify/core/internals/utils'; -import { cognitoUserPoolEndpointResolver } from '../../../../src/foundation/core/cognitoUserPoolEndpointResolver'; +import { cognitoUserPoolEndpointResolver } from '../../../../src/foundation/cognitoUserPoolEndpointResolver'; import { createCognitoUserPoolEndpointResolver } from '../../../../src/providers/cognito/factories/createCognitoUserPoolEndpointResolver'; -jest.mock('../../../../src/foundation/core/cognitoUserPoolEndpointResolver'); +jest.mock('../../../../src/foundation/cognitoUserPoolEndpointResolver'); const mockCognitoUserPoolEndpointResolver = jest.mocked( cognitoUserPoolEndpointResolver, diff --git a/packages/auth/__tests__/providers/cognito/signOut.test.ts b/packages/auth/__tests__/providers/cognito/signOut.test.ts index cedf8bed06d..7facf3a2f4a 100644 --- a/packages/auth/__tests__/providers/cognito/signOut.test.ts +++ b/packages/auth/__tests__/providers/cognito/signOut.test.ts @@ -18,7 +18,7 @@ import { createGlobalSignOutClient, createRevokeTokenClient, } from '../../../src/foundation/factories/serviceClients/cognitoIdentityProvider'; -import { getRegionFromUserPoolId } from '../../../src/foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../src/foundation/parsers'; import { createCognitoUserPoolEndpointResolver } from '../../../src/providers/cognito/factories'; jest.mock('@aws-amplify/core'); @@ -29,7 +29,7 @@ jest.mock('../../../src/utils'); jest.mock( '../../../src/foundation/factories/serviceClients/cognitoIdentityProvider', ); -jest.mock('../../../src/foundation/core/parsers'); +jest.mock('../../../src/foundation/parsers'); jest.mock('../../../src/providers/cognito/factories'); describe('signOut', () => { diff --git a/packages/auth/src/foundation/core/cognitoUserPoolEndpointResolver.ts b/packages/auth/src/foundation/cognitoUserPoolEndpointResolver.ts similarity index 100% rename from packages/auth/src/foundation/core/cognitoUserPoolEndpointResolver.ts rename to packages/auth/src/foundation/cognitoUserPoolEndpointResolver.ts diff --git a/packages/auth/src/foundation/core/constants.ts b/packages/auth/src/foundation/constants.ts similarity index 100% rename from packages/auth/src/foundation/core/constants.ts rename to packages/auth/src/foundation/constants.ts diff --git a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/constants.ts b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/constants.ts index c013285cfb0..8898f8bc32a 100644 --- a/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/constants.ts +++ b/packages/auth/src/foundation/factories/serviceClients/cognitoIdentityProvider/constants.ts @@ -8,7 +8,7 @@ import { } from '@aws-amplify/core/internals/aws-client-utils'; import { getAmplifyUserAgent } from '@aws-amplify/core/internals/utils'; -import { COGNITO_IDP_SERVICE_NAME } from '../../../core/constants'; +import { COGNITO_IDP_SERVICE_NAME } from '../../../constants'; export const DEFAULT_SERVICE_CLIENT_API_CONFIG = { service: COGNITO_IDP_SERVICE_NAME, diff --git a/packages/auth/src/foundation/core/parsers/index.ts b/packages/auth/src/foundation/parsers/index.ts similarity index 100% rename from packages/auth/src/foundation/core/parsers/index.ts rename to packages/auth/src/foundation/parsers/index.ts diff --git a/packages/auth/src/foundation/core/parsers/regionParsers.ts b/packages/auth/src/foundation/parsers/regionParsers.ts similarity index 93% rename from packages/auth/src/foundation/core/parsers/regionParsers.ts rename to packages/auth/src/foundation/parsers/regionParsers.ts index da6133b44db..193ddee374d 100644 --- a/packages/auth/src/foundation/core/parsers/regionParsers.ts +++ b/packages/auth/src/foundation/parsers/regionParsers.ts @@ -1,6 +1,6 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 -import { AuthError } from '../../../errors/AuthError'; +import { AuthError } from '../../errors/AuthError'; export function getRegionFromUserPoolId(userPoolId?: string): string { const region = userPoolId?.split('_')[0]; diff --git a/packages/auth/src/providers/cognito/apis/confirmResetPassword.ts b/packages/auth/src/providers/cognito/apis/confirmResetPassword.ts index 291bd2df2b8..5c4edc100cf 100644 --- a/packages/auth/src/providers/cognito/apis/confirmResetPassword.ts +++ b/packages/auth/src/providers/cognito/apis/confirmResetPassword.ts @@ -15,7 +15,7 @@ import { getAuthUserAgentValue } from '../../../utils'; import { getUserContextData } from '../utils/userContextData'; import { createConfirmForgotPasswordClient } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider'; import { createCognitoUserPoolEndpointResolver } from '../factories'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; /** * Confirms the new password and verification code to reset the password. * diff --git a/packages/auth/src/providers/cognito/apis/confirmSignUp.ts b/packages/auth/src/providers/cognito/apis/confirmSignUp.ts index a5e27decdf3..92adf180210 100644 --- a/packages/auth/src/providers/cognito/apis/confirmSignUp.ts +++ b/packages/auth/src/providers/cognito/apis/confirmSignUp.ts @@ -12,7 +12,7 @@ import { ConfirmSignUpInput, ConfirmSignUpOutput } from '../types'; import { assertValidationError } from '../../../errors/utils/assertValidationError'; import { AuthValidationErrorCode } from '../../../errors/types/validation'; import { ConfirmSignUpException } from '../types/errors'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { AutoSignInEventData } from '../types/models'; import { isAutoSignInStarted, diff --git a/packages/auth/src/providers/cognito/apis/confirmUserAttribute.ts b/packages/auth/src/providers/cognito/apis/confirmUserAttribute.ts index f580df7b50e..8c0c4dba1ad 100644 --- a/packages/auth/src/providers/cognito/apis/confirmUserAttribute.ts +++ b/packages/auth/src/providers/cognito/apis/confirmUserAttribute.ts @@ -10,7 +10,7 @@ import { import { AuthValidationErrorCode } from '../../../errors/types/validation'; import { assertValidationError } from '../../../errors/utils/assertValidationError'; import { VerifyUserAttributeException } from '../types/errors'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { assertAuthTokens } from '../utils/types'; import { ConfirmUserAttributeInput } from '../types'; import { getAuthUserAgentValue } from '../../../utils'; diff --git a/packages/auth/src/providers/cognito/apis/deleteUser.ts b/packages/auth/src/providers/cognito/apis/deleteUser.ts index 49bd8580a61..53c0c18c6dd 100644 --- a/packages/auth/src/providers/cognito/apis/deleteUser.ts +++ b/packages/auth/src/providers/cognito/apis/deleteUser.ts @@ -7,7 +7,7 @@ import { assertTokenProviderConfig, } from '@aws-amplify/core/internals/utils'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { assertAuthTokens } from '../utils/types'; import { DeleteUserException } from '../types/errors'; import { tokenOrchestrator } from '../tokenProvider'; diff --git a/packages/auth/src/providers/cognito/apis/deleteUserAttributes.ts b/packages/auth/src/providers/cognito/apis/deleteUserAttributes.ts index 1a17d837efb..b958dfacc1f 100644 --- a/packages/auth/src/providers/cognito/apis/deleteUserAttributes.ts +++ b/packages/auth/src/providers/cognito/apis/deleteUserAttributes.ts @@ -7,7 +7,7 @@ import { assertTokenProviderConfig, } from '@aws-amplify/core/internals/utils'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { assertAuthTokens } from '../utils/types'; import { DeleteUserAttributesInput } from '../types'; import { DeleteUserAttributesException } from '../types/errors'; diff --git a/packages/auth/src/providers/cognito/apis/fetchDevices.ts b/packages/auth/src/providers/cognito/apis/fetchDevices.ts index dd1dc8ebe71..c0dc69f22f4 100644 --- a/packages/auth/src/providers/cognito/apis/fetchDevices.ts +++ b/packages/auth/src/providers/cognito/apis/fetchDevices.ts @@ -10,7 +10,7 @@ import { import { FetchDevicesOutput } from '../types'; import { DeviceType } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider/types'; import { assertAuthTokens } from '../utils/types'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { rememberDevice } from '..'; import { getAuthUserAgentValue } from '../../../utils'; import { createListDevicesClient } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider'; diff --git a/packages/auth/src/providers/cognito/apis/fetchMFAPreference.ts b/packages/auth/src/providers/cognito/apis/fetchMFAPreference.ts index 3dd30a1d365..e6da216ba81 100644 --- a/packages/auth/src/providers/cognito/apis/fetchMFAPreference.ts +++ b/packages/auth/src/providers/cognito/apis/fetchMFAPreference.ts @@ -10,7 +10,7 @@ import { import { FetchMFAPreferenceOutput } from '../types'; import { getMFAType, getMFATypes } from '../utils/signInHelpers'; import { GetUserException } from '../types/errors'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { assertAuthTokens } from '../utils/types'; import { getAuthUserAgentValue } from '../../../utils'; import { createGetUserClient } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider'; diff --git a/packages/auth/src/providers/cognito/apis/forgetDevice.ts b/packages/auth/src/providers/cognito/apis/forgetDevice.ts index df17a7262b8..b1ca574e1e4 100644 --- a/packages/auth/src/providers/cognito/apis/forgetDevice.ts +++ b/packages/auth/src/providers/cognito/apis/forgetDevice.ts @@ -8,7 +8,7 @@ import { } from '@aws-amplify/core/internals/utils'; import { assertAuthTokens, assertDeviceMetadata } from '../utils/types'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { tokenOrchestrator } from '../tokenProvider'; import { ForgetDeviceInput } from '../types'; import { ForgetDeviceException } from '../../cognito/types/errors'; diff --git a/packages/auth/src/providers/cognito/apis/internal/fetchUserAttributes.ts b/packages/auth/src/providers/cognito/apis/internal/fetchUserAttributes.ts index 1a984ae00bd..01230bf5153 100644 --- a/packages/auth/src/providers/cognito/apis/internal/fetchUserAttributes.ts +++ b/packages/auth/src/providers/cognito/apis/internal/fetchUserAttributes.ts @@ -8,7 +8,7 @@ import { fetchAuthSession, } from '@aws-amplify/core/internals/utils'; -import { getRegionFromUserPoolId } from '../../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../../foundation/parsers'; import { assertAuthTokens } from '../../utils/types'; import { FetchUserAttributesOutput } from '../../types'; import { toAuthUserAttribute } from '../../utils/apiHelpers'; diff --git a/packages/auth/src/providers/cognito/apis/rememberDevice.ts b/packages/auth/src/providers/cognito/apis/rememberDevice.ts index 1fa4a5912da..eb24022096e 100644 --- a/packages/auth/src/providers/cognito/apis/rememberDevice.ts +++ b/packages/auth/src/providers/cognito/apis/rememberDevice.ts @@ -8,7 +8,7 @@ import { } from '@aws-amplify/core/internals/utils'; import { assertAuthTokens, assertDeviceMetadata } from '../utils/types'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { tokenOrchestrator } from '../tokenProvider'; import { UpdateDeviceStatusException } from '../../cognito/types/errors'; import { getAuthUserAgentValue } from '../../../utils'; diff --git a/packages/auth/src/providers/cognito/apis/resendSignUpCode.ts b/packages/auth/src/providers/cognito/apis/resendSignUpCode.ts index 43b324a90ed..cdda7b980eb 100644 --- a/packages/auth/src/providers/cognito/apis/resendSignUpCode.ts +++ b/packages/auth/src/providers/cognito/apis/resendSignUpCode.ts @@ -12,7 +12,7 @@ import { AuthDeliveryMedium } from '../../../types'; import { assertValidationError } from '../../../errors/utils/assertValidationError'; import { AuthValidationErrorCode } from '../../../errors/types/validation'; import { ResendSignUpCodeInput, ResendSignUpCodeOutput } from '../types'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { getAuthUserAgentValue } from '../../../utils'; import { getUserContextData } from '../utils/userContextData'; import { ResendConfirmationException } from '../types/errors'; diff --git a/packages/auth/src/providers/cognito/apis/resetPassword.ts b/packages/auth/src/providers/cognito/apis/resetPassword.ts index 9190329e778..cd6d37a39ca 100644 --- a/packages/auth/src/providers/cognito/apis/resetPassword.ts +++ b/packages/auth/src/providers/cognito/apis/resetPassword.ts @@ -12,7 +12,7 @@ import { AuthValidationErrorCode } from '../../../errors/types/validation'; import { assertValidationError } from '../../../errors/utils/assertValidationError'; import { AuthDeliveryMedium } from '../../../types'; import { ResetPasswordInput, ResetPasswordOutput } from '../types'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { ForgotPasswordException } from '../../cognito/types/errors'; import { getAuthUserAgentValue } from '../../../utils'; import { getUserContextData } from '../utils/userContextData'; diff --git a/packages/auth/src/providers/cognito/apis/sendUserAttributeVerificationCode.ts b/packages/auth/src/providers/cognito/apis/sendUserAttributeVerificationCode.ts index 7ad297818d8..4b04b2a85d1 100644 --- a/packages/auth/src/providers/cognito/apis/sendUserAttributeVerificationCode.ts +++ b/packages/auth/src/providers/cognito/apis/sendUserAttributeVerificationCode.ts @@ -14,7 +14,7 @@ import { SendUserAttributeVerificationCodeOutput, } from '../types'; import { assertAuthTokens } from '../utils/types'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { GetUserAttributeVerificationException } from '../types/errors'; import { getAuthUserAgentValue } from '../../../utils'; import { createGetUserAttributeVerificationCodeClient } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider'; diff --git a/packages/auth/src/providers/cognito/apis/setUpTOTP.ts b/packages/auth/src/providers/cognito/apis/setUpTOTP.ts index d5876cad54e..43dac4c787b 100644 --- a/packages/auth/src/providers/cognito/apis/setUpTOTP.ts +++ b/packages/auth/src/providers/cognito/apis/setUpTOTP.ts @@ -14,7 +14,7 @@ import { } from '../types/errors'; import { SetUpTOTPOutput } from '../types'; import { getTOTPSetupDetails } from '../utils/signInHelpers'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { assertAuthTokens } from '../utils/types'; import { getAuthUserAgentValue } from '../../../utils'; import { createAssociateSoftwareTokenClient } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider'; diff --git a/packages/auth/src/providers/cognito/apis/signOut.ts b/packages/auth/src/providers/cognito/apis/signOut.ts index 132e57ef54e..a56cd64df30 100644 --- a/packages/auth/src/providers/cognito/apis/signOut.ts +++ b/packages/auth/src/providers/cognito/apis/signOut.ts @@ -20,7 +20,7 @@ import { import { getAuthUserAgentValue } from '../../../utils'; import { SignOutInput } from '../types'; import { tokenOrchestrator } from '../tokenProvider'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { assertAuthTokens, assertAuthTokensWithRefreshToken, diff --git a/packages/auth/src/providers/cognito/apis/signUp.ts b/packages/auth/src/providers/cognito/apis/signUp.ts index d33aedb7c6d..3ec246648f5 100644 --- a/packages/auth/src/providers/cognito/apis/signUp.ts +++ b/packages/auth/src/providers/cognito/apis/signUp.ts @@ -13,7 +13,7 @@ import { SignInInput, SignUpInput, SignUpOutput } from '../types'; import { assertValidationError } from '../../../errors/utils/assertValidationError'; import { AuthValidationErrorCode } from '../../../errors/types/validation'; import { SignUpException } from '../types/errors'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { toAttributeType } from '../utils/apiHelpers'; import { autoSignInUserConfirmed, diff --git a/packages/auth/src/providers/cognito/apis/updateMFAPreference.ts b/packages/auth/src/providers/cognito/apis/updateMFAPreference.ts index 9bef999800e..5f87522af5a 100644 --- a/packages/auth/src/providers/cognito/apis/updateMFAPreference.ts +++ b/packages/auth/src/providers/cognito/apis/updateMFAPreference.ts @@ -10,7 +10,7 @@ import { import { UpdateMFAPreferenceInput } from '../types'; import { SetUserMFAPreferenceException } from '../types/errors'; import { MFAPreference } from '../types/models'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { CognitoMFASettings } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider/types'; import { assertAuthTokens } from '../utils/types'; import { getAuthUserAgentValue } from '../../../utils'; diff --git a/packages/auth/src/providers/cognito/apis/updatePassword.ts b/packages/auth/src/providers/cognito/apis/updatePassword.ts index b3f2e5c988c..f8c8c4bdeae 100644 --- a/packages/auth/src/providers/cognito/apis/updatePassword.ts +++ b/packages/auth/src/providers/cognito/apis/updatePassword.ts @@ -11,7 +11,7 @@ import { AuthValidationErrorCode } from '../../../errors/types/validation'; import { assertValidationError } from '../../../errors/utils/assertValidationError'; import { UpdatePasswordInput } from '../types'; import { ChangePasswordException } from '../../cognito/types/errors'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { assertAuthTokens } from '../utils/types'; import { getAuthUserAgentValue } from '../../../utils'; import { createChangePasswordClient } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider'; diff --git a/packages/auth/src/providers/cognito/apis/updateUserAttributes.ts b/packages/auth/src/providers/cognito/apis/updateUserAttributes.ts index d99de8988d0..5076e3145a5 100644 --- a/packages/auth/src/providers/cognito/apis/updateUserAttributes.ts +++ b/packages/auth/src/providers/cognito/apis/updateUserAttributes.ts @@ -17,7 +17,7 @@ import { UpdateUserAttributesOutput, } from '../types'; import { assertAuthTokens } from '../utils/types'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { toAttributeType } from '../utils/apiHelpers'; import { CodeDeliveryDetailsType } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider/types'; import { UpdateUserAttributesException } from '../types/errors'; diff --git a/packages/auth/src/providers/cognito/apis/verifyTOTPSetup.ts b/packages/auth/src/providers/cognito/apis/verifyTOTPSetup.ts index 1a5aac7a916..c5c1212c194 100644 --- a/packages/auth/src/providers/cognito/apis/verifyTOTPSetup.ts +++ b/packages/auth/src/providers/cognito/apis/verifyTOTPSetup.ts @@ -11,7 +11,7 @@ import { AuthValidationErrorCode } from '../../../errors/types/validation'; import { assertValidationError } from '../../../errors/utils/assertValidationError'; import { VerifyTOTPSetupInput } from '../types'; import { VerifySoftwareTokenException } from '../types/errors'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { assertAuthTokens } from '../utils/types'; import { getAuthUserAgentValue } from '../../../utils'; import { createVerifySoftwareTokenClient } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider'; diff --git a/packages/auth/src/providers/cognito/credentialsProvider/IdentityIdProvider.ts b/packages/auth/src/providers/cognito/credentialsProvider/IdentityIdProvider.ts index f96082fcde5..b96adf08fbc 100644 --- a/packages/auth/src/providers/cognito/credentialsProvider/IdentityIdProvider.ts +++ b/packages/auth/src/providers/cognito/credentialsProvider/IdentityIdProvider.ts @@ -5,7 +5,7 @@ import { AuthTokens, ConsoleLogger, Identity, getId } from '@aws-amplify/core'; import { CognitoIdentityPoolConfig } from '@aws-amplify/core/internals/utils'; import { AuthError } from '../../../errors/AuthError'; -import { getRegionFromIdentityPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromIdentityPoolId } from '../../../foundation/parsers'; import { GetIdException } from '../types/errors'; import { IdentityIdStore } from './types'; diff --git a/packages/auth/src/providers/cognito/credentialsProvider/credentialsProvider.ts b/packages/auth/src/providers/cognito/credentialsProvider/credentialsProvider.ts index 0e42643fd76..6356ff0fd09 100644 --- a/packages/auth/src/providers/cognito/credentialsProvider/credentialsProvider.ts +++ b/packages/auth/src/providers/cognito/credentialsProvider/credentialsProvider.ts @@ -15,7 +15,7 @@ import { } from '@aws-amplify/core/internals/utils'; import { AuthError } from '../../../errors/AuthError'; -import { getRegionFromIdentityPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromIdentityPoolId } from '../../../foundation/parsers'; import { assertIdTokenInAuthTokens } from '../utils/types'; import { IdentityIdStore } from './types'; diff --git a/packages/auth/src/providers/cognito/factories/createCognitoUserPoolEndpointResolver.ts b/packages/auth/src/providers/cognito/factories/createCognitoUserPoolEndpointResolver.ts index e9908dcc384..42a5b979402 100644 --- a/packages/auth/src/providers/cognito/factories/createCognitoUserPoolEndpointResolver.ts +++ b/packages/auth/src/providers/cognito/factories/createCognitoUserPoolEndpointResolver.ts @@ -3,7 +3,7 @@ import { EndpointResolverOptions } from '@aws-amplify/core/internals/aws-client-utils'; import { AmplifyUrl } from '@aws-amplify/core/internals/utils'; -import { cognitoUserPoolEndpointResolver } from '../../../foundation/core/cognitoUserPoolEndpointResolver'; +import { cognitoUserPoolEndpointResolver } from '../../../foundation/cognitoUserPoolEndpointResolver'; export const createCognitoUserPoolEndpointResolver = ({ endpointOverride }: { endpointOverride: string | undefined }) => diff --git a/packages/auth/src/providers/cognito/utils/refreshAuthTokens.ts b/packages/auth/src/providers/cognito/utils/refreshAuthTokens.ts index e1b545a42e9..01f35a40b2b 100644 --- a/packages/auth/src/providers/cognito/utils/refreshAuthTokens.ts +++ b/packages/auth/src/providers/cognito/utils/refreshAuthTokens.ts @@ -9,7 +9,7 @@ import { } from '@aws-amplify/core/internals/utils'; import { CognitoAuthTokens, TokenRefresher } from '../tokenProvider/types'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { assertAuthTokensWithRefreshToken } from '../utils/types'; import { AuthError } from '../../../errors/AuthError'; import { createInitiateAuthClient } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider'; diff --git a/packages/auth/src/providers/cognito/utils/signInHelpers.ts b/packages/auth/src/providers/cognito/utils/signInHelpers.ts index cb7bd49dd0e..ef4c1422bf3 100644 --- a/packages/auth/src/providers/cognito/utils/signInHelpers.ts +++ b/packages/auth/src/providers/cognito/utils/signInHelpers.ts @@ -49,7 +49,7 @@ import { RespondToAuthChallengeCommandInput, RespondToAuthChallengeCommandOutput, } from '../../../foundation/factories/serviceClients/cognitoIdentityProvider/types'; -import { getRegionFromUserPoolId } from '../../../foundation/core/parsers'; +import { getRegionFromUserPoolId } from '../../../foundation/parsers'; import { signInStore } from './signInStore'; import { assertDeviceMetadata } from './types';