import { DaffUnauthorizedError , DaffAuthenticationFailedError , } from '@daffodil/auth' ; import { DaffErrorCodeMap } from '@daffodil/core' ; import { DaffBadInputError } from '@daffodil/driver' ; import { MagentoAuthGraphQlErrorCode } from './codes' ; export const DaffAuthMagentoErrorMap = { [ MagentoAuthGraphQlErrorCode . UNAUTHORIZED ] : DaffUnauthorizedError , [ MagentoAuthGraphQlErrorCode . AUTHENTICATION_FAILED ] : DaffAuthenticationFailedError , [ MagentoAuthGraphQlErrorCode . BAD_INPUT ] : DaffBadInputError , } ;