@marqeta/ux-toolkit-sdk-javascript 2.3.0 → 2.4.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.
package/dist/index.d.mts CHANGED
@@ -626,6 +626,8 @@ declare abstract class iAuthCredentialService {
626
626
  abstract setCachedAuthToken(authToken: string, expiresAt: number): Promise<void>;
627
627
  abstract getCachedAuthApiEndpoint(): string;
628
628
  abstract setCachedAuthApiEndpoint(apiEndpoint: string): void;
629
+ abstract getCachedAuthApiHeadersResolver(): ((() => Promise<HeadersInit> | HeadersInit) | HeadersInit) | undefined;
630
+ abstract setCachedAuthApiHeadersResolver(headersResolver: (() => Promise<HeadersInit> | HeadersInit) | HeadersInit): void;
629
631
  abstract getAuthKeyPair(): AuthKeyPair;
630
632
  abstract setAuthKeyPair(keys: AuthKeyPair): void;
631
633
  abstract generateAuthKeyPair(): Promise<void>;
@@ -673,7 +675,7 @@ type RequestNewAuthTokenResponse = {
673
675
  };
674
676
  declare abstract class iAuthService {
675
677
  abstract getUserProgram(): Promise<string>;
676
- abstract requestNewAuthTokenByEndpoint(apiEndpoint: string): Promise<RequestNewAuthTokenResponse>;
678
+ abstract requestNewAuthTokenByEndpoint(apiEndpoint: string, additionalHeaders?: HeadersInit): Promise<RequestNewAuthTokenResponse>;
677
679
  abstract getCardholderContext(): Promise<CardholderContextEntity>;
678
680
  abstract getUserTokenHash(): Promise<string>;
679
681
  }
@@ -696,6 +698,7 @@ declare abstract class iSsoAccessTokenService {
696
698
 
697
699
  declare class MockAuthCredentialService implements iAuthCredentialService {
698
700
  private authApiEndpoint;
701
+ private authApiHeadersResolver;
699
702
  private authKeyPair;
700
703
  private authToken;
701
704
  private expiresAt;
@@ -708,6 +711,8 @@ declare class MockAuthCredentialService implements iAuthCredentialService {
708
711
  createProofToken(method: string, resourceUrl: string): Promise<string>;
709
712
  getCachedAuthApiEndpoint(): string;
710
713
  setCachedAuthApiEndpoint(apiEndpoint: string): void;
714
+ getCachedAuthApiHeadersResolver(): ((() => Promise<HeadersInit> | HeadersInit) | HeadersInit) | undefined;
715
+ setCachedAuthApiHeadersResolver(headersResolver: (() => Promise<HeadersInit> | HeadersInit) | HeadersInit): void;
711
716
  }
712
717
 
713
718
  declare class MockAuthService implements iAuthService {
@@ -717,7 +722,7 @@ declare class MockAuthService implements iAuthService {
717
722
  getCardholderContext(): Promise<CardholderContextEntity>;
718
723
  getUserProgram(): Promise<string>;
719
724
  setUserProgram(programShortCode: string): void;
720
- requestNewAuthTokenByEndpoint(_: string): Promise<RequestNewAuthTokenResponse>;
725
+ requestNewAuthTokenByEndpoint(_url: string, _headers?: HeadersInit): Promise<RequestNewAuthTokenResponse>;
721
726
  getUserTokenHash(): Promise<string>;
722
727
  setCardholderContext(cardholderContext: CardholderContextEntity): void;
723
728
  setUserTokenHash(userTokenHash: string): void;
@@ -739,6 +744,8 @@ declare function getAuthKeyPair(): AuthKeyPair;
739
744
 
740
745
  declare function getCachedAuthApiEndpoint(): string;
741
746
 
747
+ declare function getCachedAuthApiHeadersResolver(): ((() => Promise<HeadersInit> | HeadersInit) | HeadersInit) | undefined;
748
+
742
749
  declare function getCachedAuthToken(): string | undefined;
743
750
 
744
751
  declare function getCachedAuthTokenExpiration(): number | undefined;
@@ -760,18 +767,22 @@ type ExistingAuth = {
760
767
  };
761
768
  type AuthParams = {
762
769
  apiEndpoint?: string;
770
+ apiHeadersResolver?: (() => Promise<HeadersInit> | HeadersInit) | HeadersInit;
763
771
  existingAuth?: ExistingAuth;
764
772
  };
765
773
  declare function setAuthParams(authParams: AuthParams): Promise<void>;
766
774
 
767
775
  declare function setCachedAuthApiEndpoint(apiEndpoint: string): void;
768
776
 
777
+ declare function setCachedAuthApiHeadersResolver(headersResolver: (() => Promise<HeadersInit> | HeadersInit) | HeadersInit): void;
778
+
769
779
  declare function setCachedAuthToken(authToken: string, expiresAt: number): Promise<void>;
770
780
 
771
781
  declare function setSsoAccessTokenHandler(handler: SsoAccessTokenHandler): Promise<void>;
772
782
 
773
783
  declare class DpopAuthCredentialService implements iAuthCredentialService {
774
784
  private cacheService;
785
+ private headersResolver;
775
786
  setCachedAuthToken(authToken: string, expiresAt: number): Promise<void>;
776
787
  getCachedAuthToken(): string | undefined;
777
788
  getCachedAuthTokenExpiration(): number | undefined;
@@ -787,6 +798,8 @@ declare class DpopAuthCredentialService implements iAuthCredentialService {
787
798
  private base64UrlEncode;
788
799
  getCachedAuthApiEndpoint(): string;
789
800
  setCachedAuthApiEndpoint(apiEndpoint: string): void;
801
+ getCachedAuthApiHeadersResolver(): ((() => Promise<HeadersInit> | HeadersInit) | HeadersInit) | undefined;
802
+ setCachedAuthApiHeadersResolver(headersResolver: (() => Promise<HeadersInit> | HeadersInit) | HeadersInit): void;
790
803
  }
791
804
 
792
805
  declare class RestAuthService implements iAuthService {
@@ -795,7 +808,7 @@ declare class RestAuthService implements iAuthService {
795
808
  private httpClient;
796
809
  private getEnvConfigValueByName;
797
810
  getUserProgram(): Promise<string>;
798
- requestNewAuthTokenByEndpoint(apiEndpoint: string): Promise<RequestNewAuthTokenResponse>;
811
+ requestNewAuthTokenByEndpoint(apiEndpoint: string, apiHeaders?: HeadersInit): Promise<RequestNewAuthTokenResponse>;
799
812
  getCardholderContext(): Promise<CardholderContextEntity>;
800
813
  getUserTokenHash(): Promise<string>;
801
814
  }
@@ -1769,6 +1782,7 @@ declare const mockSourceCards: {
1769
1782
  }[];
1770
1783
 
1771
1784
  type StatementsPaginationParams = {
1785
+ accountToken?: string;
1772
1786
  issuedEndDate: string;
1773
1787
  issuedStartDate: string;
1774
1788
  };
@@ -1779,6 +1793,7 @@ type StatementsResponse = {
1779
1793
  start_index: number;
1780
1794
  };
1781
1795
  type StatementSummary = {
1796
+ account_token?: string;
1782
1797
  cardholder_token: string;
1783
1798
  issued_date: string;
1784
1799
  readable_issued_date: string;
@@ -1798,7 +1813,7 @@ type SignedUrlResponse = {
1798
1813
 
1799
1814
  declare abstract class iStatementsRepository {
1800
1815
  abstract getStatements(paginationParams: StatementsPaginationParams): Promise<StatementsResponse>;
1801
- abstract getStatementAsset(issued_date: string): Promise<StatementAssetResponse>;
1816
+ abstract getStatementAsset(issued_date: string, account_token?: string): Promise<StatementAssetResponse>;
1802
1817
  }
1803
1818
 
1804
1819
  declare class GetStatements {
@@ -1808,7 +1823,7 @@ declare class GetStatements {
1808
1823
 
1809
1824
  declare class GetStatementAsset {
1810
1825
  statementsRepository: iStatementsRepository;
1811
- execute(issuedDate: string): Promise<StatementAssetResponse>;
1826
+ execute(issuedDate: string, accountToken?: string): Promise<StatementAssetResponse>;
1812
1827
  }
1813
1828
 
1814
1829
  declare const statementsIOCModule: ContainerModule;
@@ -1820,7 +1835,7 @@ declare const INTR_GET_STATEMENT_ASSET: unique symbol;
1820
1835
 
1821
1836
  declare const mswStatementsHandlers: msw.HttpHandler[];
1822
1837
 
1823
- declare const handleGetStatements: (userToken: string, issuedEndDate?: string, issuedStartDate?: string) => {
1838
+ declare const handleGetStatements: (userToken: string, issuedEndDate?: string, issuedStartDate?: string, accountToken?: string) => {
1824
1839
  is_more: boolean;
1825
1840
  data: StatementSummary[];
1826
1841
  end_index: number;
@@ -3938,4 +3953,4 @@ declare const reactNativeContainer: Container;
3938
3953
 
3939
3954
  declare const wlaReactNativeContainer: Container;
3940
3955
 
3941
- export { ACCOUNT_CLOSED_CUI_AUTH_TOKEN, ACCOUNT_LIMITED_CUI_AUTH_TOKEN, ACCOUNT_LOADING_CUI_AUTH_TOKEN, ACCOUNT_SUSPENDED_CUI_AUTH_TOKEN, ACCOUNT_UNVERIFIED_CUI_AUTH_TOKEN, ACTIVE_CARD_ACTIONS, ACTIVE_IOC_CONTAINER, ADDRESS_ISSUE_SSN, AUTH_REFRESH_INTERVAL_ID, AccountBalancesEntity, type AccountBalancesEntityJsonType, AccountHolderGroupEntity, type AccountHolderGroupEntityJsonType, type AccountInterestResponse, type AccountInterestTierResponse, type AccountResponse, AccountType, ActivateCardByTokenOrPan, type ActivationActions, type ActivationActionsModel, AddSourceCard, type Address, type AllStepsResponse, type ApiResponse, type AtmLocation, AtmLocationAccessFeesEnum, AtmLocationAvailabilityEnum, AtmLocationDistanceUnitEnum, AtmLocationHandicapAccessibleEnum, AtmLocationHasSharedDepositEnum, AtmLocationIsSurchargeFreeAllianceEnum, AtmLocationLocationTypeEnum, AtmLocationSupportsContactLessEnum, AtmLocationSurchargeFreeAllianceNetworkEnum, type AtmSearch, type AtmSearchFilters, type AtmsResponse, type AuthKeyPair, type AuthParams, BAD_GENERAL_SSN, BannerTypeEnum, type BookTransferRequest, type BookTransferResponse, BookTransferResponseStatusEnum, BrowserMessageService, CUI_ENABLED_SHORT_CODE, type CardActionEntity, type CardActionsListEntity, CardEntity, type CardEntityJsonType, type CardFulfillmentRequest, CardFulfillmentRequestCardFulfillmentReasonEnum, type CardFulfillmentResponse, type CardFulfillmentResponseCardFulfillmentReasonEnum, type CardRequest, type CardResponse, type CardResponseCardArt, type CardResponseFulfillmentStatusEnum, type CardResponseInstrumentTypeEnum, type CardResponseStateEnum, CardStates, CardholderContextEntity, type CardholderContextEntityJsonType, CardholderVerificationMethods, CleanupOnUnload, ConsentAction, type ConsentListResponse, ConsentPaymentScope, ConsentPaymentType, ConsentPermissionType, type ConsentResponse, ConsentScope, ConsentStatus, type CreateCardRequest, type CreateCardResponse, type CreateUserRequest, type CreateUserRequestIdentificationsInner, CreateUserRequestIdentificationsInnerTypeEnum, type CreateUserResponse, CreateUserResponseStatusEnum, Currency, DEFAULT_THEME, DEPOSIT_ACCOUNTS_TERMINATED_CUI_AUTH_TOKEN, DOB_ISSUE_SSN, type DebugItem, DeleteDocumentForDispute, DepositAccountEntity, type DepositAccountEntityJsonType, type Dictionary, type DisputeSuccessResponse, DownloadDocumentForDispute, DpopAuthCredentialService, EMPTY_DEPOSIT_ACCOUNTS_CUI_AUTH_TOKEN, type EnvType, type ExistingAuth, type ExternalAccountListRequest, type ExternalAccountListResponse, type ExternalAccountRequest, type ExternalAccountResponse, ExternalAccountStatus, type ExternalAccountVerificationRequest, type ExternalAccountVerificationResponse, FFLAGS_SESSION_STORAGE_KEY, type FaqItem, type FaqParagraph, type FaqParagraphSublist, FaqParagraphTypeEnum, type FaqSection, type FaqsGroup, type FaqsResponse, FormField, type FulfillmentAddressRequest, type FulfillmentAddressResponse, GaMeasurementAnalyticsService, GetAccountBalances, GetAccountHolderGroup, type GetAccountTransactionsRequest, GetActiveEnvName, GetActiveTheme, GetAllStepsOfDispute, GetCardByToken, GetCardsByUserToken, GetDepositAccounts, GetEnvConfigValueByName, GetIconsByName, GetLanguageCode, GetPinByCardToken, GetShowpanByCardToken, GetSourceCards, GetStatementAsset, GetStatements, GetStepOfDisputeByStepId, GetTransactionDetails, type GetTransactionDetailsByTokenJsonResponseTxnsDetailsBannerData, GetTransactions, type GetTransactionsResponse, GetUser, INTR_ACTIVATE_CARD_BY_TOKEN_OR_PAN, INTR_ADD_SOURCE_CARD, INTR_CLEANUP_ON_UNLOAD, INTR_DELETE_DOCUMENT_FOR_DISPUTE, INTR_DOWNLOAD_DOCUMENT_FOR_DISPUTE, INTR_GET_ACCT_BALANCE_BY_TOKEN, INTR_GET_ACCT_HOLDER_GRP_BY_TOKEN, INTR_GET_ACTIVE_ENV_NAME, INTR_GET_ACTIVE_THEME, INTR_GET_ALL_STEPS_OF_DISPUTE, INTR_GET_CARDS_BY_USER_TOKEN, INTR_GET_CARD_BY_TOKEN, INTR_GET_CLIENT_ID, INTR_GET_DEPOSIT_ACCT_BY_TOKEN, INTR_GET_ENV_CONFIG_VALUE_BY_NAME, INTR_GET_ICONS, INTR_GET_LANGUAGE_CODE, INTR_GET_PIN_BY_CARD_TOKEN, INTR_GET_SESSION_ID, INTR_GET_SHOWPAN_BY_CARD_TOKEN, INTR_GET_SOURCE_CARDS, INTR_GET_STATEMENTS, INTR_GET_STATEMENT_ASSET, INTR_GET_STEP_OF_DISPUTE_BY_STEP_ID, INTR_GET_TRANSACTIONS, INTR_GET_TRANSACTIONS_V2, INTR_GET_TRANSACTION_DETAILS, INTR_GET_USER, INTR_INITIATE_FUNDING, INTR_IS_MOCK_MODE_ENABLED, INTR_LOCK_CARD_BY_TOKEN, INTR_POST_CREATE_USER, INTR_PUT_UPDATE_USER, INTR_REGISTER_CLEANUP_HANDLER, INTR_REMOVE_SOURCE_CARD, INTR_REPLACE_CARD_BY_TOKEN, INTR_RETRIEVE_DOCUMENT_FOR_DISPUTE, INTR_SET_ACTIVE_ENV_NAME, INTR_SET_ACTIVE_THEME_BY_NAME, INTR_SET_MOCK_MODE, INTR_START_DISPUTE, INTR_SUBMIT_ANS_DISPUTE, INTR_SUBMIT_DISPUTE, INTR_UNLOCK_CARD_BY_TOKEN, INTR_UPDATE_PIN_BY_CARD_TOKEN, INTR_UPLOAD_DOCUMENT_FOR_DISPUTE, INVALID_ACCOUNT_HOLDER, INVALID_CARD_DETAILS_CUI_AUTH_TOKEN, INVALID_CUI_AUTH_TOKEN, ITF_ACCOUNT_REPOSITORY, ITF_ANALYTICS_SERVICE, ITF_AUTHENTICATED_HTTP_CLIENT, ITF_AUTH_CREDENTIAL_SERVICE, ITF_AUTH_CREDS_MESSAGE_SERVICE, ITF_AUTH_SERVICE, ITF_CACHE_SERVICE, ITF_CARD_REPOSITORY, ITF_DISPUTES_REPOSITORY, ITF_ICONS_REPOSITORY, ITF_KYC, ITF_MONEY_MOVEMENT, ITF_PERSISTED_CACHE_SERVICE, ITF_REGISTRY_SERVICE, ITF_SESSION_SERVICE, ITF_SSO_ACCESS_TOKEN_SERVICE, ITF_STATEMENTS, ITF_STATEMENT_ASSET, ITF_THEME_REPOSITORY, ITF_TRANSACTIONS, ITF_USERS, ITF_WLA_SERVICE, type IconsObject, InitiateFunding, type InterestTierRateResponse, InterestTierResponseTypeEnum, IsMockModeEnabled, type KycVerificationRequest, KycVerificationRequestIdentifierTypeEnum, type KycVerificationResponse, LIST_OF_ENABLED_COMPONENTS, LOADING_SSN, LocalStorageCacheService, LockCardByToken, LoyaltyTier, MOCK_AMOUNT_STEP_RESPONSE, MOCK_CUSTOMER_ENDPOINT, MOCK_DELETE_DOCUMENTS_RESPONSE, MOCK_DISPUTE_ID, MOCK_DOCUMENT1, MOCK_DOCUMENT2, MOCK_DOCUMENT_ID1, MOCK_DOCUMENT_ID2, MOCK_FRAUD_STEP_RESPONSE, MOCK_GET_ALL_STEPS_RESPONSE, MOCK_INVALID_TRANSACTION_TOKEN, MOCK_RECOGNIZED_TRANSACTION_RESPONSE, MOCK_RETRIEVE_DOCUMENTS_RESPONSE, MOCK_START_DISPUTE_RESPONSE, MOCK_STATEMENT_ASSET_SIGNED_URL_PDF, MOCK_STEP1_RESPONSE, MOCK_STEP_COMPLETION_RESPONSE, MOCK_SUBMIT_DISPUTE_RESPONSE, MOCK_TRANSFORMED_ERROR_RESPONSE, MOCK_UPLOAD_DOCUMENTS_RESPONSE, type MetaProperties, MockAccountRepository, MockAnalyticsService, MockAuthCredentialService, MockAuthService, MockCacheService, MockCardRepository, MockComponentsRepository, MockDisputesRepository, MockFeatureFlagService, MockGetEnvConfigValueByName, MockMoneyMovementRepository, MockPersistedCacheService, MockRegistryService, MockSessionService, MockThemeRepository, MockTransactionsRepository, MockiUsersRepository, MqSDKError, NAME_ISSUE_SSN, NOT_OK_CUI_AUTH_TOKEN, NOT_OK_DPOP_TOKEN, OBAC_ISSUE_SSN, type OfferCard, type OfferDetail, type OfferHeadline, type OfferListResponse, type OfferMerchant, type OfferResponse, type OfferSummaryResponse, type OfferTermsAndConditions, OnboardingStatus, OriginationDirection, OriginationTransferReasonCode, type OriginationTransferRequest, type OriginationTransferResponse, OriginationTransferScheme, type OutagesListResponse, type OutagesResponse, type PinResponse, type PushRegistrationRequest, PushRegistrationRequestDevicePlatformEnum, PutUpdateUser, REFRESHED_CUI_AUTH_TOKEN, REPOSITORY_METHOD_FAILING_SHORT_CODE, ReactNativeAsyncStorageCacheService, RegisterCleanupHandler, RemoveSourceCard, ReplaceCardByToken, type ReplaceCardRequest, ReplaceCardRequestReasonEnum, type ReplaceCardResponse, type RequestNewAuthTokenMessageService, type RequestNewAuthTokenResponse, RestAuthService, RestComponentsRepository, RestKycRepository, RestUsersRepository, RestWlaService, RetrieveDocumentForDispute, type RevokeConsentResponse, RevokeConsentStatus, type RewardCategory, type RewardPeriod, type RewardSummary, SESSION_TTL, MOCK_USER as STATEMENTS_MOCK_USER, SUSPENDED_CARD_ACTIONS, type SecondaryIdentification, SessionStorageFeatureFlagService, SetActiveEnvName, SetActiveThemeByName, SetMockMode, type Shipping, type ShippingInformationResponse, type ShippingInformationResponseMethodEnum, ShippingMethodEnum, type SourceCardsListEntity, type SourceCardsRecordEntity, type SourceCardsResponseEntity, type SsoAccessTokenHandler, type StandardOkResponse, StandardizedError, StartDispute, type StatementAssetResponse, StatementAssetStateEnum, type StatementSummary, type StatementsPaginationParams, type StatementsResponse, type StepResponse, StubFeatureFlagService, SubmitAnswerForDisputeQuestion, type SubmitAnswerPayload, SubmitDispute, type SubmitDisputeSuccessResponse, type SuccessBaseResponse, TERMINATED_CARD_ACTIONS, TEST_ACTIVE_CARD, TEST_ACTIVE_CARD_VIRTUAL, TEST_CARD, TEST_CARDHOLDER_VERIFICATION_METHOD, TEST_CARD_ACTIONS, TEST_CARD_PRODUCT_TOKEN, TEST_CARD_TOKEN, TEST_CARD_TOKEN_INVALID, TEST_CARD_TOKEN_IS_ACTIVE, TEST_CARD_TOKEN_IS_ACTIVE_VIRTUAL, TEST_CARD_TOKEN_IS_EXPIRED, TEST_CARD_TOKEN_IS_SUSPENDED, TEST_CARD_TOKEN_IS_SUSPENDED_VIRTUAL, TEST_CARD_TOKEN_IS_TERMINATED, TEST_CARD_TOKEN_IS_UNACTIVATED, TEST_CARD_TOKEN_IS_VIRTUAL, TEST_CARD_TOKEN_LIMIT_EXCEEDED, TEST_CARD_TOKEN_LOADING, TEST_CLIENT_ID, TEST_CVV_NUMBER, TEST_DEPOSIT_ACCOUNT, TEST_EXPIRATION, TEST_OK_RESPONSE, TEST_PIN, TEST_SESSION_ID, TEST_SOURCE_CARD, TEST_SOURCE_CARDS_RESPONSE, TEST_SUSPENDED_CARD_VIRTUAL, TEST_THEME_NAME, TEST_THEME_OBJECT, TEST_USER_TOKEN, TEST_WEAK_PINS, type ThemeObject, TransactionDetailResponseIconTypeEnum, type TransactionDetailsBannerData, TransactionDetailsBannerType, type TransactionDetailsRecord, type TransactionDetailsResponse, TransactionDirection, type TransactionDispute, TransactionDisputeStatus, type TransactionListResponse, type TransactionRecord, TransactionRecordStatus, type TransactionResponse, TransactionStatus, TransactionType, type TransactionsPaginationParams, type TransactionsResponse, type Transfer, type TransferListResponse, type TransferResponse, TransferStatus, type UnlinkSourceCardResponse, UnlockCardByToken, type UpdateConsentStatusRequest, type UpdateConsentStatusResponse, type UpdateExternalAccountRequest, UpdatePinByCardToken, type UpdatePinResponse, UploadDocumentForDispute, type UserAddressEntity, type UserConfigResponse, UserEntity, type UserEntityJsonType, type UserProfileResponse, type UserResponse, UserRole, type UserStatus, VALID_CUI_AUTH_TOKEN, VALID_CUI_USER_RESPONSE, VALID_DPOP_TOKEN, VALID_OAUTH_TOKEN, VALID_PROGRAM_SHORT_CODE, VALID_USER_TOKEN_HASH, VanillaSessionService, WindowCacheService, WlaIocModule, WlaSdkError, type WlaTransactionDetailsResponse, WlaUserStatus, accountsIOCModule, authIOCModule, bookTransfer, cardsIOCModule, checkAndRefreshAuthToken, commonIOCModule, componentsIOCModule, convertObjKeysToCamelCase, convertObjKeysToLowerCamelCase, createOriginationTransfer, createProofToken, createWlaCard, createWlaExternalAccount, deepMergeThemeObject, deleteRegistrationForPushNotifications, development, disputesIOCModule, envConfigIOCModule, featureFlagIsEnabled, featureFlagsIOCModule, formatDateForApi, generateAuthKeyPair, generateStatementsDateQueries, getAccountTransactions, getActiveIocContainer, getAuthKeyPair, getCachedAuthApiEndpoint, getCachedAuthToken, getCachedAuthTokenExpiration, getCardholderContext, getClientId, getConsentById, getConsents, getExternalAccount, getExternalAccountList, getMockUpdatedUserRequestToCreateResponse, getMockUserRequestToCreateResponse, getOfferDetails, getOffers, getOutagesByToken, getOutagesList, getSessionId, getSsoAccessTokenHandler, getTransferByToken, getTransfers, getUserProgram, getUserTokenHash, getWlaAccountDetails, getWlaCardByToken, getWlaFaqs, getWlaRewardSummaries, getWlaTransactionByToken, getWlaUserProfile, handleGetStatementAsset, handleGetStatements, iAccountRepository, iAnalyticsService, iAuthCredentialService, iAuthCredsMessageService, iAuthService, iAuthenticatedHttpClient, iCacheService, iCardRepository, iComponentsRepository, iDisputesRepository, iFeatureFlagService, iGetEnvConfigValueByName, iIconsRepository, iKycRepository, iMoneyMovementRepository, iPersistedCacheService, iRegistryService, iSessionService, iSsoAccessTokenService, iStatementsRepository, iThemeRepository, iTransactionsRepository, iUsersRepository, iconsIOCModule, isComponentEnabled, kycIOCModule, loadEnabledComponentsByShortCode, loadFeatureFlags, localhost, markAccountActivated, markAccountVerified, mockAccountBalances, mockAccountHolderGroup, mockAccountsIOCModule, mockAnalyticsIOCModule, mockAuthIOCModule, mockCardsIOCModule, mockCommonIOCModule, mockCreateUserRequest, mockCreatedUserResponse, mockDepositAccountJson, mockDisputesIOCModule, mockEnvConfigIOCModule, mockFeatureFlagIOCModule, mockInvalidCreateUserRequest, mockInvalidKycVerificationRequest, mockKycVerificationRequest, mockKycVerificationResponse, mockMode, mockMoneyMovementIOCModule, mockSourceCards, mockThemesIOCModule, mockUpdateUserResponse, mockUsersIOCModule, moneyMovementIOCModule, mswAccountHandlers, mswAnalyticsHandlers, mswAuthHandlers, mswCardsHandlers, mswComponentsHandlers, mswDisputesHandlers, mswKycHandlers, mswSourceCardsHandler, mswStatementsHandlers, mswTransactionsHandlers, mswUsersHandlers, postCreateUser, postVerifyKyc, production, qa, reactNativeCommonIOCModule, reactNativeFeatureFlagsIOCModule, reactNativeContainer as reactNativeSdkJsContainer, registerDeviceForPushNotifications, replaceWlaCard, revokeConsent, sandbox, container as sdkJsContainer, searchAtms, setActiveIocContainer, setAuthKeyPair, setAuthParams, setCachedAuthApiEndpoint, setCachedAuthToken, setSsoAccessTokenHandler, setWlaCardPin, setWlaConfig, statementsIOCModule, themesIOCModule, toDateType, trackEvent, transactionsIOCModule, updateConsentStatus, updateExternalAccount, usersIOCModule, verifyExternalAccount, wlaReactNativeContainer as wlaReactNativeSdkJsContainer };
3956
+ export { ACCOUNT_CLOSED_CUI_AUTH_TOKEN, ACCOUNT_LIMITED_CUI_AUTH_TOKEN, ACCOUNT_LOADING_CUI_AUTH_TOKEN, ACCOUNT_SUSPENDED_CUI_AUTH_TOKEN, ACCOUNT_UNVERIFIED_CUI_AUTH_TOKEN, ACTIVE_CARD_ACTIONS, ACTIVE_IOC_CONTAINER, ADDRESS_ISSUE_SSN, AUTH_REFRESH_INTERVAL_ID, AccountBalancesEntity, type AccountBalancesEntityJsonType, AccountHolderGroupEntity, type AccountHolderGroupEntityJsonType, type AccountInterestResponse, type AccountInterestTierResponse, type AccountResponse, AccountType, ActivateCardByTokenOrPan, type ActivationActions, type ActivationActionsModel, AddSourceCard, type Address, type AllStepsResponse, type ApiResponse, type AtmLocation, AtmLocationAccessFeesEnum, AtmLocationAvailabilityEnum, AtmLocationDistanceUnitEnum, AtmLocationHandicapAccessibleEnum, AtmLocationHasSharedDepositEnum, AtmLocationIsSurchargeFreeAllianceEnum, AtmLocationLocationTypeEnum, AtmLocationSupportsContactLessEnum, AtmLocationSurchargeFreeAllianceNetworkEnum, type AtmSearch, type AtmSearchFilters, type AtmsResponse, type AuthKeyPair, type AuthParams, BAD_GENERAL_SSN, BannerTypeEnum, type BookTransferRequest, type BookTransferResponse, BookTransferResponseStatusEnum, BrowserMessageService, CUI_ENABLED_SHORT_CODE, type CardActionEntity, type CardActionsListEntity, CardEntity, type CardEntityJsonType, type CardFulfillmentRequest, CardFulfillmentRequestCardFulfillmentReasonEnum, type CardFulfillmentResponse, type CardFulfillmentResponseCardFulfillmentReasonEnum, type CardRequest, type CardResponse, type CardResponseCardArt, type CardResponseFulfillmentStatusEnum, type CardResponseInstrumentTypeEnum, type CardResponseStateEnum, CardStates, CardholderContextEntity, type CardholderContextEntityJsonType, CardholderVerificationMethods, CleanupOnUnload, ConsentAction, type ConsentListResponse, ConsentPaymentScope, ConsentPaymentType, ConsentPermissionType, type ConsentResponse, ConsentScope, ConsentStatus, type CreateCardRequest, type CreateCardResponse, type CreateUserRequest, type CreateUserRequestIdentificationsInner, CreateUserRequestIdentificationsInnerTypeEnum, type CreateUserResponse, CreateUserResponseStatusEnum, Currency, DEFAULT_THEME, DEPOSIT_ACCOUNTS_TERMINATED_CUI_AUTH_TOKEN, DOB_ISSUE_SSN, type DebugItem, DeleteDocumentForDispute, DepositAccountEntity, type DepositAccountEntityJsonType, type Dictionary, type DisputeSuccessResponse, DownloadDocumentForDispute, DpopAuthCredentialService, EMPTY_DEPOSIT_ACCOUNTS_CUI_AUTH_TOKEN, type EnvType, type ExistingAuth, type ExternalAccountListRequest, type ExternalAccountListResponse, type ExternalAccountRequest, type ExternalAccountResponse, ExternalAccountStatus, type ExternalAccountVerificationRequest, type ExternalAccountVerificationResponse, FFLAGS_SESSION_STORAGE_KEY, type FaqItem, type FaqParagraph, type FaqParagraphSublist, FaqParagraphTypeEnum, type FaqSection, type FaqsGroup, type FaqsResponse, FormField, type FulfillmentAddressRequest, type FulfillmentAddressResponse, GaMeasurementAnalyticsService, GetAccountBalances, GetAccountHolderGroup, type GetAccountTransactionsRequest, GetActiveEnvName, GetActiveTheme, GetAllStepsOfDispute, GetCardByToken, GetCardsByUserToken, GetDepositAccounts, GetEnvConfigValueByName, GetIconsByName, GetLanguageCode, GetPinByCardToken, GetShowpanByCardToken, GetSourceCards, GetStatementAsset, GetStatements, GetStepOfDisputeByStepId, GetTransactionDetails, type GetTransactionDetailsByTokenJsonResponseTxnsDetailsBannerData, GetTransactions, type GetTransactionsResponse, GetUser, INTR_ACTIVATE_CARD_BY_TOKEN_OR_PAN, INTR_ADD_SOURCE_CARD, INTR_CLEANUP_ON_UNLOAD, INTR_DELETE_DOCUMENT_FOR_DISPUTE, INTR_DOWNLOAD_DOCUMENT_FOR_DISPUTE, INTR_GET_ACCT_BALANCE_BY_TOKEN, INTR_GET_ACCT_HOLDER_GRP_BY_TOKEN, INTR_GET_ACTIVE_ENV_NAME, INTR_GET_ACTIVE_THEME, INTR_GET_ALL_STEPS_OF_DISPUTE, INTR_GET_CARDS_BY_USER_TOKEN, INTR_GET_CARD_BY_TOKEN, INTR_GET_CLIENT_ID, INTR_GET_DEPOSIT_ACCT_BY_TOKEN, INTR_GET_ENV_CONFIG_VALUE_BY_NAME, INTR_GET_ICONS, INTR_GET_LANGUAGE_CODE, INTR_GET_PIN_BY_CARD_TOKEN, INTR_GET_SESSION_ID, INTR_GET_SHOWPAN_BY_CARD_TOKEN, INTR_GET_SOURCE_CARDS, INTR_GET_STATEMENTS, INTR_GET_STATEMENT_ASSET, INTR_GET_STEP_OF_DISPUTE_BY_STEP_ID, INTR_GET_TRANSACTIONS, INTR_GET_TRANSACTIONS_V2, INTR_GET_TRANSACTION_DETAILS, INTR_GET_USER, INTR_INITIATE_FUNDING, INTR_IS_MOCK_MODE_ENABLED, INTR_LOCK_CARD_BY_TOKEN, INTR_POST_CREATE_USER, INTR_PUT_UPDATE_USER, INTR_REGISTER_CLEANUP_HANDLER, INTR_REMOVE_SOURCE_CARD, INTR_REPLACE_CARD_BY_TOKEN, INTR_RETRIEVE_DOCUMENT_FOR_DISPUTE, INTR_SET_ACTIVE_ENV_NAME, INTR_SET_ACTIVE_THEME_BY_NAME, INTR_SET_MOCK_MODE, INTR_START_DISPUTE, INTR_SUBMIT_ANS_DISPUTE, INTR_SUBMIT_DISPUTE, INTR_UNLOCK_CARD_BY_TOKEN, INTR_UPDATE_PIN_BY_CARD_TOKEN, INTR_UPLOAD_DOCUMENT_FOR_DISPUTE, INVALID_ACCOUNT_HOLDER, INVALID_CARD_DETAILS_CUI_AUTH_TOKEN, INVALID_CUI_AUTH_TOKEN, ITF_ACCOUNT_REPOSITORY, ITF_ANALYTICS_SERVICE, ITF_AUTHENTICATED_HTTP_CLIENT, ITF_AUTH_CREDENTIAL_SERVICE, ITF_AUTH_CREDS_MESSAGE_SERVICE, ITF_AUTH_SERVICE, ITF_CACHE_SERVICE, ITF_CARD_REPOSITORY, ITF_DISPUTES_REPOSITORY, ITF_ICONS_REPOSITORY, ITF_KYC, ITF_MONEY_MOVEMENT, ITF_PERSISTED_CACHE_SERVICE, ITF_REGISTRY_SERVICE, ITF_SESSION_SERVICE, ITF_SSO_ACCESS_TOKEN_SERVICE, ITF_STATEMENTS, ITF_STATEMENT_ASSET, ITF_THEME_REPOSITORY, ITF_TRANSACTIONS, ITF_USERS, ITF_WLA_SERVICE, type IconsObject, InitiateFunding, type InterestTierRateResponse, InterestTierResponseTypeEnum, IsMockModeEnabled, type KycVerificationRequest, KycVerificationRequestIdentifierTypeEnum, type KycVerificationResponse, LIST_OF_ENABLED_COMPONENTS, LOADING_SSN, LocalStorageCacheService, LockCardByToken, LoyaltyTier, MOCK_AMOUNT_STEP_RESPONSE, MOCK_CUSTOMER_ENDPOINT, MOCK_DELETE_DOCUMENTS_RESPONSE, MOCK_DISPUTE_ID, MOCK_DOCUMENT1, MOCK_DOCUMENT2, MOCK_DOCUMENT_ID1, MOCK_DOCUMENT_ID2, MOCK_FRAUD_STEP_RESPONSE, MOCK_GET_ALL_STEPS_RESPONSE, MOCK_INVALID_TRANSACTION_TOKEN, MOCK_RECOGNIZED_TRANSACTION_RESPONSE, MOCK_RETRIEVE_DOCUMENTS_RESPONSE, MOCK_START_DISPUTE_RESPONSE, MOCK_STATEMENT_ASSET_SIGNED_URL_PDF, MOCK_STEP1_RESPONSE, MOCK_STEP_COMPLETION_RESPONSE, MOCK_SUBMIT_DISPUTE_RESPONSE, MOCK_TRANSFORMED_ERROR_RESPONSE, MOCK_UPLOAD_DOCUMENTS_RESPONSE, type MetaProperties, MockAccountRepository, MockAnalyticsService, MockAuthCredentialService, MockAuthService, MockCacheService, MockCardRepository, MockComponentsRepository, MockDisputesRepository, MockFeatureFlagService, MockGetEnvConfigValueByName, MockMoneyMovementRepository, MockPersistedCacheService, MockRegistryService, MockSessionService, MockThemeRepository, MockTransactionsRepository, MockiUsersRepository, MqSDKError, NAME_ISSUE_SSN, NOT_OK_CUI_AUTH_TOKEN, NOT_OK_DPOP_TOKEN, OBAC_ISSUE_SSN, type OfferCard, type OfferDetail, type OfferHeadline, type OfferListResponse, type OfferMerchant, type OfferResponse, type OfferSummaryResponse, type OfferTermsAndConditions, OnboardingStatus, OriginationDirection, OriginationTransferReasonCode, type OriginationTransferRequest, type OriginationTransferResponse, OriginationTransferScheme, type OutagesListResponse, type OutagesResponse, type PinResponse, type PushRegistrationRequest, PushRegistrationRequestDevicePlatformEnum, PutUpdateUser, REFRESHED_CUI_AUTH_TOKEN, REPOSITORY_METHOD_FAILING_SHORT_CODE, ReactNativeAsyncStorageCacheService, RegisterCleanupHandler, RemoveSourceCard, ReplaceCardByToken, type ReplaceCardRequest, ReplaceCardRequestReasonEnum, type ReplaceCardResponse, type RequestNewAuthTokenMessageService, type RequestNewAuthTokenResponse, RestAuthService, RestComponentsRepository, RestKycRepository, RestUsersRepository, RestWlaService, RetrieveDocumentForDispute, type RevokeConsentResponse, RevokeConsentStatus, type RewardCategory, type RewardPeriod, type RewardSummary, SESSION_TTL, MOCK_USER as STATEMENTS_MOCK_USER, SUSPENDED_CARD_ACTIONS, type SecondaryIdentification, SessionStorageFeatureFlagService, SetActiveEnvName, SetActiveThemeByName, SetMockMode, type Shipping, type ShippingInformationResponse, type ShippingInformationResponseMethodEnum, ShippingMethodEnum, type SourceCardsListEntity, type SourceCardsRecordEntity, type SourceCardsResponseEntity, type SsoAccessTokenHandler, type StandardOkResponse, StandardizedError, StartDispute, type StatementAssetResponse, StatementAssetStateEnum, type StatementSummary, type StatementsPaginationParams, type StatementsResponse, type StepResponse, StubFeatureFlagService, SubmitAnswerForDisputeQuestion, type SubmitAnswerPayload, SubmitDispute, type SubmitDisputeSuccessResponse, type SuccessBaseResponse, TERMINATED_CARD_ACTIONS, TEST_ACTIVE_CARD, TEST_ACTIVE_CARD_VIRTUAL, TEST_CARD, TEST_CARDHOLDER_VERIFICATION_METHOD, TEST_CARD_ACTIONS, TEST_CARD_PRODUCT_TOKEN, TEST_CARD_TOKEN, TEST_CARD_TOKEN_INVALID, TEST_CARD_TOKEN_IS_ACTIVE, TEST_CARD_TOKEN_IS_ACTIVE_VIRTUAL, TEST_CARD_TOKEN_IS_EXPIRED, TEST_CARD_TOKEN_IS_SUSPENDED, TEST_CARD_TOKEN_IS_SUSPENDED_VIRTUAL, TEST_CARD_TOKEN_IS_TERMINATED, TEST_CARD_TOKEN_IS_UNACTIVATED, TEST_CARD_TOKEN_IS_VIRTUAL, TEST_CARD_TOKEN_LIMIT_EXCEEDED, TEST_CARD_TOKEN_LOADING, TEST_CLIENT_ID, TEST_CVV_NUMBER, TEST_DEPOSIT_ACCOUNT, TEST_EXPIRATION, TEST_OK_RESPONSE, TEST_PIN, TEST_SESSION_ID, TEST_SOURCE_CARD, TEST_SOURCE_CARDS_RESPONSE, TEST_SUSPENDED_CARD_VIRTUAL, TEST_THEME_NAME, TEST_THEME_OBJECT, TEST_USER_TOKEN, TEST_WEAK_PINS, type ThemeObject, TransactionDetailResponseIconTypeEnum, type TransactionDetailsBannerData, TransactionDetailsBannerType, type TransactionDetailsRecord, type TransactionDetailsResponse, TransactionDirection, type TransactionDispute, TransactionDisputeStatus, type TransactionListResponse, type TransactionRecord, TransactionRecordStatus, type TransactionResponse, TransactionStatus, TransactionType, type TransactionsPaginationParams, type TransactionsResponse, type Transfer, type TransferListResponse, type TransferResponse, TransferStatus, type UnlinkSourceCardResponse, UnlockCardByToken, type UpdateConsentStatusRequest, type UpdateConsentStatusResponse, type UpdateExternalAccountRequest, UpdatePinByCardToken, type UpdatePinResponse, UploadDocumentForDispute, type UserAddressEntity, type UserConfigResponse, UserEntity, type UserEntityJsonType, type UserProfileResponse, type UserResponse, UserRole, type UserStatus, VALID_CUI_AUTH_TOKEN, VALID_CUI_USER_RESPONSE, VALID_DPOP_TOKEN, VALID_OAUTH_TOKEN, VALID_PROGRAM_SHORT_CODE, VALID_USER_TOKEN_HASH, VanillaSessionService, WindowCacheService, WlaIocModule, WlaSdkError, type WlaTransactionDetailsResponse, WlaUserStatus, accountsIOCModule, authIOCModule, bookTransfer, cardsIOCModule, checkAndRefreshAuthToken, commonIOCModule, componentsIOCModule, convertObjKeysToCamelCase, convertObjKeysToLowerCamelCase, createOriginationTransfer, createProofToken, createWlaCard, createWlaExternalAccount, deepMergeThemeObject, deleteRegistrationForPushNotifications, development, disputesIOCModule, envConfigIOCModule, featureFlagIsEnabled, featureFlagsIOCModule, formatDateForApi, generateAuthKeyPair, generateStatementsDateQueries, getAccountTransactions, getActiveIocContainer, getAuthKeyPair, getCachedAuthApiEndpoint, getCachedAuthApiHeadersResolver, getCachedAuthToken, getCachedAuthTokenExpiration, getCardholderContext, getClientId, getConsentById, getConsents, getExternalAccount, getExternalAccountList, getMockUpdatedUserRequestToCreateResponse, getMockUserRequestToCreateResponse, getOfferDetails, getOffers, getOutagesByToken, getOutagesList, getSessionId, getSsoAccessTokenHandler, getTransferByToken, getTransfers, getUserProgram, getUserTokenHash, getWlaAccountDetails, getWlaCardByToken, getWlaFaqs, getWlaRewardSummaries, getWlaTransactionByToken, getWlaUserProfile, handleGetStatementAsset, handleGetStatements, iAccountRepository, iAnalyticsService, iAuthCredentialService, iAuthCredsMessageService, iAuthService, iAuthenticatedHttpClient, iCacheService, iCardRepository, iComponentsRepository, iDisputesRepository, iFeatureFlagService, iGetEnvConfigValueByName, iIconsRepository, iKycRepository, iMoneyMovementRepository, iPersistedCacheService, iRegistryService, iSessionService, iSsoAccessTokenService, iStatementsRepository, iThemeRepository, iTransactionsRepository, iUsersRepository, iconsIOCModule, isComponentEnabled, kycIOCModule, loadEnabledComponentsByShortCode, loadFeatureFlags, localhost, markAccountActivated, markAccountVerified, mockAccountBalances, mockAccountHolderGroup, mockAccountsIOCModule, mockAnalyticsIOCModule, mockAuthIOCModule, mockCardsIOCModule, mockCommonIOCModule, mockCreateUserRequest, mockCreatedUserResponse, mockDepositAccountJson, mockDisputesIOCModule, mockEnvConfigIOCModule, mockFeatureFlagIOCModule, mockInvalidCreateUserRequest, mockInvalidKycVerificationRequest, mockKycVerificationRequest, mockKycVerificationResponse, mockMode, mockMoneyMovementIOCModule, mockSourceCards, mockThemesIOCModule, mockUpdateUserResponse, mockUsersIOCModule, moneyMovementIOCModule, mswAccountHandlers, mswAnalyticsHandlers, mswAuthHandlers, mswCardsHandlers, mswComponentsHandlers, mswDisputesHandlers, mswKycHandlers, mswSourceCardsHandler, mswStatementsHandlers, mswTransactionsHandlers, mswUsersHandlers, postCreateUser, postVerifyKyc, production, qa, reactNativeCommonIOCModule, reactNativeFeatureFlagsIOCModule, reactNativeContainer as reactNativeSdkJsContainer, registerDeviceForPushNotifications, replaceWlaCard, revokeConsent, sandbox, container as sdkJsContainer, searchAtms, setActiveIocContainer, setAuthKeyPair, setAuthParams, setCachedAuthApiEndpoint, setCachedAuthApiHeadersResolver, setCachedAuthToken, setSsoAccessTokenHandler, setWlaCardPin, setWlaConfig, statementsIOCModule, themesIOCModule, toDateType, trackEvent, transactionsIOCModule, updateConsentStatus, updateExternalAccount, usersIOCModule, verifyExternalAccount, wlaReactNativeContainer as wlaReactNativeSdkJsContainer };
package/dist/index.d.ts CHANGED
@@ -626,6 +626,8 @@ declare abstract class iAuthCredentialService {
626
626
  abstract setCachedAuthToken(authToken: string, expiresAt: number): Promise<void>;
627
627
  abstract getCachedAuthApiEndpoint(): string;
628
628
  abstract setCachedAuthApiEndpoint(apiEndpoint: string): void;
629
+ abstract getCachedAuthApiHeadersResolver(): ((() => Promise<HeadersInit> | HeadersInit) | HeadersInit) | undefined;
630
+ abstract setCachedAuthApiHeadersResolver(headersResolver: (() => Promise<HeadersInit> | HeadersInit) | HeadersInit): void;
629
631
  abstract getAuthKeyPair(): AuthKeyPair;
630
632
  abstract setAuthKeyPair(keys: AuthKeyPair): void;
631
633
  abstract generateAuthKeyPair(): Promise<void>;
@@ -673,7 +675,7 @@ type RequestNewAuthTokenResponse = {
673
675
  };
674
676
  declare abstract class iAuthService {
675
677
  abstract getUserProgram(): Promise<string>;
676
- abstract requestNewAuthTokenByEndpoint(apiEndpoint: string): Promise<RequestNewAuthTokenResponse>;
678
+ abstract requestNewAuthTokenByEndpoint(apiEndpoint: string, additionalHeaders?: HeadersInit): Promise<RequestNewAuthTokenResponse>;
677
679
  abstract getCardholderContext(): Promise<CardholderContextEntity>;
678
680
  abstract getUserTokenHash(): Promise<string>;
679
681
  }
@@ -696,6 +698,7 @@ declare abstract class iSsoAccessTokenService {
696
698
 
697
699
  declare class MockAuthCredentialService implements iAuthCredentialService {
698
700
  private authApiEndpoint;
701
+ private authApiHeadersResolver;
699
702
  private authKeyPair;
700
703
  private authToken;
701
704
  private expiresAt;
@@ -708,6 +711,8 @@ declare class MockAuthCredentialService implements iAuthCredentialService {
708
711
  createProofToken(method: string, resourceUrl: string): Promise<string>;
709
712
  getCachedAuthApiEndpoint(): string;
710
713
  setCachedAuthApiEndpoint(apiEndpoint: string): void;
714
+ getCachedAuthApiHeadersResolver(): ((() => Promise<HeadersInit> | HeadersInit) | HeadersInit) | undefined;
715
+ setCachedAuthApiHeadersResolver(headersResolver: (() => Promise<HeadersInit> | HeadersInit) | HeadersInit): void;
711
716
  }
712
717
 
713
718
  declare class MockAuthService implements iAuthService {
@@ -717,7 +722,7 @@ declare class MockAuthService implements iAuthService {
717
722
  getCardholderContext(): Promise<CardholderContextEntity>;
718
723
  getUserProgram(): Promise<string>;
719
724
  setUserProgram(programShortCode: string): void;
720
- requestNewAuthTokenByEndpoint(_: string): Promise<RequestNewAuthTokenResponse>;
725
+ requestNewAuthTokenByEndpoint(_url: string, _headers?: HeadersInit): Promise<RequestNewAuthTokenResponse>;
721
726
  getUserTokenHash(): Promise<string>;
722
727
  setCardholderContext(cardholderContext: CardholderContextEntity): void;
723
728
  setUserTokenHash(userTokenHash: string): void;
@@ -739,6 +744,8 @@ declare function getAuthKeyPair(): AuthKeyPair;
739
744
 
740
745
  declare function getCachedAuthApiEndpoint(): string;
741
746
 
747
+ declare function getCachedAuthApiHeadersResolver(): ((() => Promise<HeadersInit> | HeadersInit) | HeadersInit) | undefined;
748
+
742
749
  declare function getCachedAuthToken(): string | undefined;
743
750
 
744
751
  declare function getCachedAuthTokenExpiration(): number | undefined;
@@ -760,18 +767,22 @@ type ExistingAuth = {
760
767
  };
761
768
  type AuthParams = {
762
769
  apiEndpoint?: string;
770
+ apiHeadersResolver?: (() => Promise<HeadersInit> | HeadersInit) | HeadersInit;
763
771
  existingAuth?: ExistingAuth;
764
772
  };
765
773
  declare function setAuthParams(authParams: AuthParams): Promise<void>;
766
774
 
767
775
  declare function setCachedAuthApiEndpoint(apiEndpoint: string): void;
768
776
 
777
+ declare function setCachedAuthApiHeadersResolver(headersResolver: (() => Promise<HeadersInit> | HeadersInit) | HeadersInit): void;
778
+
769
779
  declare function setCachedAuthToken(authToken: string, expiresAt: number): Promise<void>;
770
780
 
771
781
  declare function setSsoAccessTokenHandler(handler: SsoAccessTokenHandler): Promise<void>;
772
782
 
773
783
  declare class DpopAuthCredentialService implements iAuthCredentialService {
774
784
  private cacheService;
785
+ private headersResolver;
775
786
  setCachedAuthToken(authToken: string, expiresAt: number): Promise<void>;
776
787
  getCachedAuthToken(): string | undefined;
777
788
  getCachedAuthTokenExpiration(): number | undefined;
@@ -787,6 +798,8 @@ declare class DpopAuthCredentialService implements iAuthCredentialService {
787
798
  private base64UrlEncode;
788
799
  getCachedAuthApiEndpoint(): string;
789
800
  setCachedAuthApiEndpoint(apiEndpoint: string): void;
801
+ getCachedAuthApiHeadersResolver(): ((() => Promise<HeadersInit> | HeadersInit) | HeadersInit) | undefined;
802
+ setCachedAuthApiHeadersResolver(headersResolver: (() => Promise<HeadersInit> | HeadersInit) | HeadersInit): void;
790
803
  }
791
804
 
792
805
  declare class RestAuthService implements iAuthService {
@@ -795,7 +808,7 @@ declare class RestAuthService implements iAuthService {
795
808
  private httpClient;
796
809
  private getEnvConfigValueByName;
797
810
  getUserProgram(): Promise<string>;
798
- requestNewAuthTokenByEndpoint(apiEndpoint: string): Promise<RequestNewAuthTokenResponse>;
811
+ requestNewAuthTokenByEndpoint(apiEndpoint: string, apiHeaders?: HeadersInit): Promise<RequestNewAuthTokenResponse>;
799
812
  getCardholderContext(): Promise<CardholderContextEntity>;
800
813
  getUserTokenHash(): Promise<string>;
801
814
  }
@@ -1769,6 +1782,7 @@ declare const mockSourceCards: {
1769
1782
  }[];
1770
1783
 
1771
1784
  type StatementsPaginationParams = {
1785
+ accountToken?: string;
1772
1786
  issuedEndDate: string;
1773
1787
  issuedStartDate: string;
1774
1788
  };
@@ -1779,6 +1793,7 @@ type StatementsResponse = {
1779
1793
  start_index: number;
1780
1794
  };
1781
1795
  type StatementSummary = {
1796
+ account_token?: string;
1782
1797
  cardholder_token: string;
1783
1798
  issued_date: string;
1784
1799
  readable_issued_date: string;
@@ -1798,7 +1813,7 @@ type SignedUrlResponse = {
1798
1813
 
1799
1814
  declare abstract class iStatementsRepository {
1800
1815
  abstract getStatements(paginationParams: StatementsPaginationParams): Promise<StatementsResponse>;
1801
- abstract getStatementAsset(issued_date: string): Promise<StatementAssetResponse>;
1816
+ abstract getStatementAsset(issued_date: string, account_token?: string): Promise<StatementAssetResponse>;
1802
1817
  }
1803
1818
 
1804
1819
  declare class GetStatements {
@@ -1808,7 +1823,7 @@ declare class GetStatements {
1808
1823
 
1809
1824
  declare class GetStatementAsset {
1810
1825
  statementsRepository: iStatementsRepository;
1811
- execute(issuedDate: string): Promise<StatementAssetResponse>;
1826
+ execute(issuedDate: string, accountToken?: string): Promise<StatementAssetResponse>;
1812
1827
  }
1813
1828
 
1814
1829
  declare const statementsIOCModule: ContainerModule;
@@ -1820,7 +1835,7 @@ declare const INTR_GET_STATEMENT_ASSET: unique symbol;
1820
1835
 
1821
1836
  declare const mswStatementsHandlers: msw.HttpHandler[];
1822
1837
 
1823
- declare const handleGetStatements: (userToken: string, issuedEndDate?: string, issuedStartDate?: string) => {
1838
+ declare const handleGetStatements: (userToken: string, issuedEndDate?: string, issuedStartDate?: string, accountToken?: string) => {
1824
1839
  is_more: boolean;
1825
1840
  data: StatementSummary[];
1826
1841
  end_index: number;
@@ -3938,4 +3953,4 @@ declare const reactNativeContainer: Container;
3938
3953
 
3939
3954
  declare const wlaReactNativeContainer: Container;
3940
3955
 
3941
- export { ACCOUNT_CLOSED_CUI_AUTH_TOKEN, ACCOUNT_LIMITED_CUI_AUTH_TOKEN, ACCOUNT_LOADING_CUI_AUTH_TOKEN, ACCOUNT_SUSPENDED_CUI_AUTH_TOKEN, ACCOUNT_UNVERIFIED_CUI_AUTH_TOKEN, ACTIVE_CARD_ACTIONS, ACTIVE_IOC_CONTAINER, ADDRESS_ISSUE_SSN, AUTH_REFRESH_INTERVAL_ID, AccountBalancesEntity, type AccountBalancesEntityJsonType, AccountHolderGroupEntity, type AccountHolderGroupEntityJsonType, type AccountInterestResponse, type AccountInterestTierResponse, type AccountResponse, AccountType, ActivateCardByTokenOrPan, type ActivationActions, type ActivationActionsModel, AddSourceCard, type Address, type AllStepsResponse, type ApiResponse, type AtmLocation, AtmLocationAccessFeesEnum, AtmLocationAvailabilityEnum, AtmLocationDistanceUnitEnum, AtmLocationHandicapAccessibleEnum, AtmLocationHasSharedDepositEnum, AtmLocationIsSurchargeFreeAllianceEnum, AtmLocationLocationTypeEnum, AtmLocationSupportsContactLessEnum, AtmLocationSurchargeFreeAllianceNetworkEnum, type AtmSearch, type AtmSearchFilters, type AtmsResponse, type AuthKeyPair, type AuthParams, BAD_GENERAL_SSN, BannerTypeEnum, type BookTransferRequest, type BookTransferResponse, BookTransferResponseStatusEnum, BrowserMessageService, CUI_ENABLED_SHORT_CODE, type CardActionEntity, type CardActionsListEntity, CardEntity, type CardEntityJsonType, type CardFulfillmentRequest, CardFulfillmentRequestCardFulfillmentReasonEnum, type CardFulfillmentResponse, type CardFulfillmentResponseCardFulfillmentReasonEnum, type CardRequest, type CardResponse, type CardResponseCardArt, type CardResponseFulfillmentStatusEnum, type CardResponseInstrumentTypeEnum, type CardResponseStateEnum, CardStates, CardholderContextEntity, type CardholderContextEntityJsonType, CardholderVerificationMethods, CleanupOnUnload, ConsentAction, type ConsentListResponse, ConsentPaymentScope, ConsentPaymentType, ConsentPermissionType, type ConsentResponse, ConsentScope, ConsentStatus, type CreateCardRequest, type CreateCardResponse, type CreateUserRequest, type CreateUserRequestIdentificationsInner, CreateUserRequestIdentificationsInnerTypeEnum, type CreateUserResponse, CreateUserResponseStatusEnum, Currency, DEFAULT_THEME, DEPOSIT_ACCOUNTS_TERMINATED_CUI_AUTH_TOKEN, DOB_ISSUE_SSN, type DebugItem, DeleteDocumentForDispute, DepositAccountEntity, type DepositAccountEntityJsonType, type Dictionary, type DisputeSuccessResponse, DownloadDocumentForDispute, DpopAuthCredentialService, EMPTY_DEPOSIT_ACCOUNTS_CUI_AUTH_TOKEN, type EnvType, type ExistingAuth, type ExternalAccountListRequest, type ExternalAccountListResponse, type ExternalAccountRequest, type ExternalAccountResponse, ExternalAccountStatus, type ExternalAccountVerificationRequest, type ExternalAccountVerificationResponse, FFLAGS_SESSION_STORAGE_KEY, type FaqItem, type FaqParagraph, type FaqParagraphSublist, FaqParagraphTypeEnum, type FaqSection, type FaqsGroup, type FaqsResponse, FormField, type FulfillmentAddressRequest, type FulfillmentAddressResponse, GaMeasurementAnalyticsService, GetAccountBalances, GetAccountHolderGroup, type GetAccountTransactionsRequest, GetActiveEnvName, GetActiveTheme, GetAllStepsOfDispute, GetCardByToken, GetCardsByUserToken, GetDepositAccounts, GetEnvConfigValueByName, GetIconsByName, GetLanguageCode, GetPinByCardToken, GetShowpanByCardToken, GetSourceCards, GetStatementAsset, GetStatements, GetStepOfDisputeByStepId, GetTransactionDetails, type GetTransactionDetailsByTokenJsonResponseTxnsDetailsBannerData, GetTransactions, type GetTransactionsResponse, GetUser, INTR_ACTIVATE_CARD_BY_TOKEN_OR_PAN, INTR_ADD_SOURCE_CARD, INTR_CLEANUP_ON_UNLOAD, INTR_DELETE_DOCUMENT_FOR_DISPUTE, INTR_DOWNLOAD_DOCUMENT_FOR_DISPUTE, INTR_GET_ACCT_BALANCE_BY_TOKEN, INTR_GET_ACCT_HOLDER_GRP_BY_TOKEN, INTR_GET_ACTIVE_ENV_NAME, INTR_GET_ACTIVE_THEME, INTR_GET_ALL_STEPS_OF_DISPUTE, INTR_GET_CARDS_BY_USER_TOKEN, INTR_GET_CARD_BY_TOKEN, INTR_GET_CLIENT_ID, INTR_GET_DEPOSIT_ACCT_BY_TOKEN, INTR_GET_ENV_CONFIG_VALUE_BY_NAME, INTR_GET_ICONS, INTR_GET_LANGUAGE_CODE, INTR_GET_PIN_BY_CARD_TOKEN, INTR_GET_SESSION_ID, INTR_GET_SHOWPAN_BY_CARD_TOKEN, INTR_GET_SOURCE_CARDS, INTR_GET_STATEMENTS, INTR_GET_STATEMENT_ASSET, INTR_GET_STEP_OF_DISPUTE_BY_STEP_ID, INTR_GET_TRANSACTIONS, INTR_GET_TRANSACTIONS_V2, INTR_GET_TRANSACTION_DETAILS, INTR_GET_USER, INTR_INITIATE_FUNDING, INTR_IS_MOCK_MODE_ENABLED, INTR_LOCK_CARD_BY_TOKEN, INTR_POST_CREATE_USER, INTR_PUT_UPDATE_USER, INTR_REGISTER_CLEANUP_HANDLER, INTR_REMOVE_SOURCE_CARD, INTR_REPLACE_CARD_BY_TOKEN, INTR_RETRIEVE_DOCUMENT_FOR_DISPUTE, INTR_SET_ACTIVE_ENV_NAME, INTR_SET_ACTIVE_THEME_BY_NAME, INTR_SET_MOCK_MODE, INTR_START_DISPUTE, INTR_SUBMIT_ANS_DISPUTE, INTR_SUBMIT_DISPUTE, INTR_UNLOCK_CARD_BY_TOKEN, INTR_UPDATE_PIN_BY_CARD_TOKEN, INTR_UPLOAD_DOCUMENT_FOR_DISPUTE, INVALID_ACCOUNT_HOLDER, INVALID_CARD_DETAILS_CUI_AUTH_TOKEN, INVALID_CUI_AUTH_TOKEN, ITF_ACCOUNT_REPOSITORY, ITF_ANALYTICS_SERVICE, ITF_AUTHENTICATED_HTTP_CLIENT, ITF_AUTH_CREDENTIAL_SERVICE, ITF_AUTH_CREDS_MESSAGE_SERVICE, ITF_AUTH_SERVICE, ITF_CACHE_SERVICE, ITF_CARD_REPOSITORY, ITF_DISPUTES_REPOSITORY, ITF_ICONS_REPOSITORY, ITF_KYC, ITF_MONEY_MOVEMENT, ITF_PERSISTED_CACHE_SERVICE, ITF_REGISTRY_SERVICE, ITF_SESSION_SERVICE, ITF_SSO_ACCESS_TOKEN_SERVICE, ITF_STATEMENTS, ITF_STATEMENT_ASSET, ITF_THEME_REPOSITORY, ITF_TRANSACTIONS, ITF_USERS, ITF_WLA_SERVICE, type IconsObject, InitiateFunding, type InterestTierRateResponse, InterestTierResponseTypeEnum, IsMockModeEnabled, type KycVerificationRequest, KycVerificationRequestIdentifierTypeEnum, type KycVerificationResponse, LIST_OF_ENABLED_COMPONENTS, LOADING_SSN, LocalStorageCacheService, LockCardByToken, LoyaltyTier, MOCK_AMOUNT_STEP_RESPONSE, MOCK_CUSTOMER_ENDPOINT, MOCK_DELETE_DOCUMENTS_RESPONSE, MOCK_DISPUTE_ID, MOCK_DOCUMENT1, MOCK_DOCUMENT2, MOCK_DOCUMENT_ID1, MOCK_DOCUMENT_ID2, MOCK_FRAUD_STEP_RESPONSE, MOCK_GET_ALL_STEPS_RESPONSE, MOCK_INVALID_TRANSACTION_TOKEN, MOCK_RECOGNIZED_TRANSACTION_RESPONSE, MOCK_RETRIEVE_DOCUMENTS_RESPONSE, MOCK_START_DISPUTE_RESPONSE, MOCK_STATEMENT_ASSET_SIGNED_URL_PDF, MOCK_STEP1_RESPONSE, MOCK_STEP_COMPLETION_RESPONSE, MOCK_SUBMIT_DISPUTE_RESPONSE, MOCK_TRANSFORMED_ERROR_RESPONSE, MOCK_UPLOAD_DOCUMENTS_RESPONSE, type MetaProperties, MockAccountRepository, MockAnalyticsService, MockAuthCredentialService, MockAuthService, MockCacheService, MockCardRepository, MockComponentsRepository, MockDisputesRepository, MockFeatureFlagService, MockGetEnvConfigValueByName, MockMoneyMovementRepository, MockPersistedCacheService, MockRegistryService, MockSessionService, MockThemeRepository, MockTransactionsRepository, MockiUsersRepository, MqSDKError, NAME_ISSUE_SSN, NOT_OK_CUI_AUTH_TOKEN, NOT_OK_DPOP_TOKEN, OBAC_ISSUE_SSN, type OfferCard, type OfferDetail, type OfferHeadline, type OfferListResponse, type OfferMerchant, type OfferResponse, type OfferSummaryResponse, type OfferTermsAndConditions, OnboardingStatus, OriginationDirection, OriginationTransferReasonCode, type OriginationTransferRequest, type OriginationTransferResponse, OriginationTransferScheme, type OutagesListResponse, type OutagesResponse, type PinResponse, type PushRegistrationRequest, PushRegistrationRequestDevicePlatformEnum, PutUpdateUser, REFRESHED_CUI_AUTH_TOKEN, REPOSITORY_METHOD_FAILING_SHORT_CODE, ReactNativeAsyncStorageCacheService, RegisterCleanupHandler, RemoveSourceCard, ReplaceCardByToken, type ReplaceCardRequest, ReplaceCardRequestReasonEnum, type ReplaceCardResponse, type RequestNewAuthTokenMessageService, type RequestNewAuthTokenResponse, RestAuthService, RestComponentsRepository, RestKycRepository, RestUsersRepository, RestWlaService, RetrieveDocumentForDispute, type RevokeConsentResponse, RevokeConsentStatus, type RewardCategory, type RewardPeriod, type RewardSummary, SESSION_TTL, MOCK_USER as STATEMENTS_MOCK_USER, SUSPENDED_CARD_ACTIONS, type SecondaryIdentification, SessionStorageFeatureFlagService, SetActiveEnvName, SetActiveThemeByName, SetMockMode, type Shipping, type ShippingInformationResponse, type ShippingInformationResponseMethodEnum, ShippingMethodEnum, type SourceCardsListEntity, type SourceCardsRecordEntity, type SourceCardsResponseEntity, type SsoAccessTokenHandler, type StandardOkResponse, StandardizedError, StartDispute, type StatementAssetResponse, StatementAssetStateEnum, type StatementSummary, type StatementsPaginationParams, type StatementsResponse, type StepResponse, StubFeatureFlagService, SubmitAnswerForDisputeQuestion, type SubmitAnswerPayload, SubmitDispute, type SubmitDisputeSuccessResponse, type SuccessBaseResponse, TERMINATED_CARD_ACTIONS, TEST_ACTIVE_CARD, TEST_ACTIVE_CARD_VIRTUAL, TEST_CARD, TEST_CARDHOLDER_VERIFICATION_METHOD, TEST_CARD_ACTIONS, TEST_CARD_PRODUCT_TOKEN, TEST_CARD_TOKEN, TEST_CARD_TOKEN_INVALID, TEST_CARD_TOKEN_IS_ACTIVE, TEST_CARD_TOKEN_IS_ACTIVE_VIRTUAL, TEST_CARD_TOKEN_IS_EXPIRED, TEST_CARD_TOKEN_IS_SUSPENDED, TEST_CARD_TOKEN_IS_SUSPENDED_VIRTUAL, TEST_CARD_TOKEN_IS_TERMINATED, TEST_CARD_TOKEN_IS_UNACTIVATED, TEST_CARD_TOKEN_IS_VIRTUAL, TEST_CARD_TOKEN_LIMIT_EXCEEDED, TEST_CARD_TOKEN_LOADING, TEST_CLIENT_ID, TEST_CVV_NUMBER, TEST_DEPOSIT_ACCOUNT, TEST_EXPIRATION, TEST_OK_RESPONSE, TEST_PIN, TEST_SESSION_ID, TEST_SOURCE_CARD, TEST_SOURCE_CARDS_RESPONSE, TEST_SUSPENDED_CARD_VIRTUAL, TEST_THEME_NAME, TEST_THEME_OBJECT, TEST_USER_TOKEN, TEST_WEAK_PINS, type ThemeObject, TransactionDetailResponseIconTypeEnum, type TransactionDetailsBannerData, TransactionDetailsBannerType, type TransactionDetailsRecord, type TransactionDetailsResponse, TransactionDirection, type TransactionDispute, TransactionDisputeStatus, type TransactionListResponse, type TransactionRecord, TransactionRecordStatus, type TransactionResponse, TransactionStatus, TransactionType, type TransactionsPaginationParams, type TransactionsResponse, type Transfer, type TransferListResponse, type TransferResponse, TransferStatus, type UnlinkSourceCardResponse, UnlockCardByToken, type UpdateConsentStatusRequest, type UpdateConsentStatusResponse, type UpdateExternalAccountRequest, UpdatePinByCardToken, type UpdatePinResponse, UploadDocumentForDispute, type UserAddressEntity, type UserConfigResponse, UserEntity, type UserEntityJsonType, type UserProfileResponse, type UserResponse, UserRole, type UserStatus, VALID_CUI_AUTH_TOKEN, VALID_CUI_USER_RESPONSE, VALID_DPOP_TOKEN, VALID_OAUTH_TOKEN, VALID_PROGRAM_SHORT_CODE, VALID_USER_TOKEN_HASH, VanillaSessionService, WindowCacheService, WlaIocModule, WlaSdkError, type WlaTransactionDetailsResponse, WlaUserStatus, accountsIOCModule, authIOCModule, bookTransfer, cardsIOCModule, checkAndRefreshAuthToken, commonIOCModule, componentsIOCModule, convertObjKeysToCamelCase, convertObjKeysToLowerCamelCase, createOriginationTransfer, createProofToken, createWlaCard, createWlaExternalAccount, deepMergeThemeObject, deleteRegistrationForPushNotifications, development, disputesIOCModule, envConfigIOCModule, featureFlagIsEnabled, featureFlagsIOCModule, formatDateForApi, generateAuthKeyPair, generateStatementsDateQueries, getAccountTransactions, getActiveIocContainer, getAuthKeyPair, getCachedAuthApiEndpoint, getCachedAuthToken, getCachedAuthTokenExpiration, getCardholderContext, getClientId, getConsentById, getConsents, getExternalAccount, getExternalAccountList, getMockUpdatedUserRequestToCreateResponse, getMockUserRequestToCreateResponse, getOfferDetails, getOffers, getOutagesByToken, getOutagesList, getSessionId, getSsoAccessTokenHandler, getTransferByToken, getTransfers, getUserProgram, getUserTokenHash, getWlaAccountDetails, getWlaCardByToken, getWlaFaqs, getWlaRewardSummaries, getWlaTransactionByToken, getWlaUserProfile, handleGetStatementAsset, handleGetStatements, iAccountRepository, iAnalyticsService, iAuthCredentialService, iAuthCredsMessageService, iAuthService, iAuthenticatedHttpClient, iCacheService, iCardRepository, iComponentsRepository, iDisputesRepository, iFeatureFlagService, iGetEnvConfigValueByName, iIconsRepository, iKycRepository, iMoneyMovementRepository, iPersistedCacheService, iRegistryService, iSessionService, iSsoAccessTokenService, iStatementsRepository, iThemeRepository, iTransactionsRepository, iUsersRepository, iconsIOCModule, isComponentEnabled, kycIOCModule, loadEnabledComponentsByShortCode, loadFeatureFlags, localhost, markAccountActivated, markAccountVerified, mockAccountBalances, mockAccountHolderGroup, mockAccountsIOCModule, mockAnalyticsIOCModule, mockAuthIOCModule, mockCardsIOCModule, mockCommonIOCModule, mockCreateUserRequest, mockCreatedUserResponse, mockDepositAccountJson, mockDisputesIOCModule, mockEnvConfigIOCModule, mockFeatureFlagIOCModule, mockInvalidCreateUserRequest, mockInvalidKycVerificationRequest, mockKycVerificationRequest, mockKycVerificationResponse, mockMode, mockMoneyMovementIOCModule, mockSourceCards, mockThemesIOCModule, mockUpdateUserResponse, mockUsersIOCModule, moneyMovementIOCModule, mswAccountHandlers, mswAnalyticsHandlers, mswAuthHandlers, mswCardsHandlers, mswComponentsHandlers, mswDisputesHandlers, mswKycHandlers, mswSourceCardsHandler, mswStatementsHandlers, mswTransactionsHandlers, mswUsersHandlers, postCreateUser, postVerifyKyc, production, qa, reactNativeCommonIOCModule, reactNativeFeatureFlagsIOCModule, reactNativeContainer as reactNativeSdkJsContainer, registerDeviceForPushNotifications, replaceWlaCard, revokeConsent, sandbox, container as sdkJsContainer, searchAtms, setActiveIocContainer, setAuthKeyPair, setAuthParams, setCachedAuthApiEndpoint, setCachedAuthToken, setSsoAccessTokenHandler, setWlaCardPin, setWlaConfig, statementsIOCModule, themesIOCModule, toDateType, trackEvent, transactionsIOCModule, updateConsentStatus, updateExternalAccount, usersIOCModule, verifyExternalAccount, wlaReactNativeContainer as wlaReactNativeSdkJsContainer };
3956
+ export { ACCOUNT_CLOSED_CUI_AUTH_TOKEN, ACCOUNT_LIMITED_CUI_AUTH_TOKEN, ACCOUNT_LOADING_CUI_AUTH_TOKEN, ACCOUNT_SUSPENDED_CUI_AUTH_TOKEN, ACCOUNT_UNVERIFIED_CUI_AUTH_TOKEN, ACTIVE_CARD_ACTIONS, ACTIVE_IOC_CONTAINER, ADDRESS_ISSUE_SSN, AUTH_REFRESH_INTERVAL_ID, AccountBalancesEntity, type AccountBalancesEntityJsonType, AccountHolderGroupEntity, type AccountHolderGroupEntityJsonType, type AccountInterestResponse, type AccountInterestTierResponse, type AccountResponse, AccountType, ActivateCardByTokenOrPan, type ActivationActions, type ActivationActionsModel, AddSourceCard, type Address, type AllStepsResponse, type ApiResponse, type AtmLocation, AtmLocationAccessFeesEnum, AtmLocationAvailabilityEnum, AtmLocationDistanceUnitEnum, AtmLocationHandicapAccessibleEnum, AtmLocationHasSharedDepositEnum, AtmLocationIsSurchargeFreeAllianceEnum, AtmLocationLocationTypeEnum, AtmLocationSupportsContactLessEnum, AtmLocationSurchargeFreeAllianceNetworkEnum, type AtmSearch, type AtmSearchFilters, type AtmsResponse, type AuthKeyPair, type AuthParams, BAD_GENERAL_SSN, BannerTypeEnum, type BookTransferRequest, type BookTransferResponse, BookTransferResponseStatusEnum, BrowserMessageService, CUI_ENABLED_SHORT_CODE, type CardActionEntity, type CardActionsListEntity, CardEntity, type CardEntityJsonType, type CardFulfillmentRequest, CardFulfillmentRequestCardFulfillmentReasonEnum, type CardFulfillmentResponse, type CardFulfillmentResponseCardFulfillmentReasonEnum, type CardRequest, type CardResponse, type CardResponseCardArt, type CardResponseFulfillmentStatusEnum, type CardResponseInstrumentTypeEnum, type CardResponseStateEnum, CardStates, CardholderContextEntity, type CardholderContextEntityJsonType, CardholderVerificationMethods, CleanupOnUnload, ConsentAction, type ConsentListResponse, ConsentPaymentScope, ConsentPaymentType, ConsentPermissionType, type ConsentResponse, ConsentScope, ConsentStatus, type CreateCardRequest, type CreateCardResponse, type CreateUserRequest, type CreateUserRequestIdentificationsInner, CreateUserRequestIdentificationsInnerTypeEnum, type CreateUserResponse, CreateUserResponseStatusEnum, Currency, DEFAULT_THEME, DEPOSIT_ACCOUNTS_TERMINATED_CUI_AUTH_TOKEN, DOB_ISSUE_SSN, type DebugItem, DeleteDocumentForDispute, DepositAccountEntity, type DepositAccountEntityJsonType, type Dictionary, type DisputeSuccessResponse, DownloadDocumentForDispute, DpopAuthCredentialService, EMPTY_DEPOSIT_ACCOUNTS_CUI_AUTH_TOKEN, type EnvType, type ExistingAuth, type ExternalAccountListRequest, type ExternalAccountListResponse, type ExternalAccountRequest, type ExternalAccountResponse, ExternalAccountStatus, type ExternalAccountVerificationRequest, type ExternalAccountVerificationResponse, FFLAGS_SESSION_STORAGE_KEY, type FaqItem, type FaqParagraph, type FaqParagraphSublist, FaqParagraphTypeEnum, type FaqSection, type FaqsGroup, type FaqsResponse, FormField, type FulfillmentAddressRequest, type FulfillmentAddressResponse, GaMeasurementAnalyticsService, GetAccountBalances, GetAccountHolderGroup, type GetAccountTransactionsRequest, GetActiveEnvName, GetActiveTheme, GetAllStepsOfDispute, GetCardByToken, GetCardsByUserToken, GetDepositAccounts, GetEnvConfigValueByName, GetIconsByName, GetLanguageCode, GetPinByCardToken, GetShowpanByCardToken, GetSourceCards, GetStatementAsset, GetStatements, GetStepOfDisputeByStepId, GetTransactionDetails, type GetTransactionDetailsByTokenJsonResponseTxnsDetailsBannerData, GetTransactions, type GetTransactionsResponse, GetUser, INTR_ACTIVATE_CARD_BY_TOKEN_OR_PAN, INTR_ADD_SOURCE_CARD, INTR_CLEANUP_ON_UNLOAD, INTR_DELETE_DOCUMENT_FOR_DISPUTE, INTR_DOWNLOAD_DOCUMENT_FOR_DISPUTE, INTR_GET_ACCT_BALANCE_BY_TOKEN, INTR_GET_ACCT_HOLDER_GRP_BY_TOKEN, INTR_GET_ACTIVE_ENV_NAME, INTR_GET_ACTIVE_THEME, INTR_GET_ALL_STEPS_OF_DISPUTE, INTR_GET_CARDS_BY_USER_TOKEN, INTR_GET_CARD_BY_TOKEN, INTR_GET_CLIENT_ID, INTR_GET_DEPOSIT_ACCT_BY_TOKEN, INTR_GET_ENV_CONFIG_VALUE_BY_NAME, INTR_GET_ICONS, INTR_GET_LANGUAGE_CODE, INTR_GET_PIN_BY_CARD_TOKEN, INTR_GET_SESSION_ID, INTR_GET_SHOWPAN_BY_CARD_TOKEN, INTR_GET_SOURCE_CARDS, INTR_GET_STATEMENTS, INTR_GET_STATEMENT_ASSET, INTR_GET_STEP_OF_DISPUTE_BY_STEP_ID, INTR_GET_TRANSACTIONS, INTR_GET_TRANSACTIONS_V2, INTR_GET_TRANSACTION_DETAILS, INTR_GET_USER, INTR_INITIATE_FUNDING, INTR_IS_MOCK_MODE_ENABLED, INTR_LOCK_CARD_BY_TOKEN, INTR_POST_CREATE_USER, INTR_PUT_UPDATE_USER, INTR_REGISTER_CLEANUP_HANDLER, INTR_REMOVE_SOURCE_CARD, INTR_REPLACE_CARD_BY_TOKEN, INTR_RETRIEVE_DOCUMENT_FOR_DISPUTE, INTR_SET_ACTIVE_ENV_NAME, INTR_SET_ACTIVE_THEME_BY_NAME, INTR_SET_MOCK_MODE, INTR_START_DISPUTE, INTR_SUBMIT_ANS_DISPUTE, INTR_SUBMIT_DISPUTE, INTR_UNLOCK_CARD_BY_TOKEN, INTR_UPDATE_PIN_BY_CARD_TOKEN, INTR_UPLOAD_DOCUMENT_FOR_DISPUTE, INVALID_ACCOUNT_HOLDER, INVALID_CARD_DETAILS_CUI_AUTH_TOKEN, INVALID_CUI_AUTH_TOKEN, ITF_ACCOUNT_REPOSITORY, ITF_ANALYTICS_SERVICE, ITF_AUTHENTICATED_HTTP_CLIENT, ITF_AUTH_CREDENTIAL_SERVICE, ITF_AUTH_CREDS_MESSAGE_SERVICE, ITF_AUTH_SERVICE, ITF_CACHE_SERVICE, ITF_CARD_REPOSITORY, ITF_DISPUTES_REPOSITORY, ITF_ICONS_REPOSITORY, ITF_KYC, ITF_MONEY_MOVEMENT, ITF_PERSISTED_CACHE_SERVICE, ITF_REGISTRY_SERVICE, ITF_SESSION_SERVICE, ITF_SSO_ACCESS_TOKEN_SERVICE, ITF_STATEMENTS, ITF_STATEMENT_ASSET, ITF_THEME_REPOSITORY, ITF_TRANSACTIONS, ITF_USERS, ITF_WLA_SERVICE, type IconsObject, InitiateFunding, type InterestTierRateResponse, InterestTierResponseTypeEnum, IsMockModeEnabled, type KycVerificationRequest, KycVerificationRequestIdentifierTypeEnum, type KycVerificationResponse, LIST_OF_ENABLED_COMPONENTS, LOADING_SSN, LocalStorageCacheService, LockCardByToken, LoyaltyTier, MOCK_AMOUNT_STEP_RESPONSE, MOCK_CUSTOMER_ENDPOINT, MOCK_DELETE_DOCUMENTS_RESPONSE, MOCK_DISPUTE_ID, MOCK_DOCUMENT1, MOCK_DOCUMENT2, MOCK_DOCUMENT_ID1, MOCK_DOCUMENT_ID2, MOCK_FRAUD_STEP_RESPONSE, MOCK_GET_ALL_STEPS_RESPONSE, MOCK_INVALID_TRANSACTION_TOKEN, MOCK_RECOGNIZED_TRANSACTION_RESPONSE, MOCK_RETRIEVE_DOCUMENTS_RESPONSE, MOCK_START_DISPUTE_RESPONSE, MOCK_STATEMENT_ASSET_SIGNED_URL_PDF, MOCK_STEP1_RESPONSE, MOCK_STEP_COMPLETION_RESPONSE, MOCK_SUBMIT_DISPUTE_RESPONSE, MOCK_TRANSFORMED_ERROR_RESPONSE, MOCK_UPLOAD_DOCUMENTS_RESPONSE, type MetaProperties, MockAccountRepository, MockAnalyticsService, MockAuthCredentialService, MockAuthService, MockCacheService, MockCardRepository, MockComponentsRepository, MockDisputesRepository, MockFeatureFlagService, MockGetEnvConfigValueByName, MockMoneyMovementRepository, MockPersistedCacheService, MockRegistryService, MockSessionService, MockThemeRepository, MockTransactionsRepository, MockiUsersRepository, MqSDKError, NAME_ISSUE_SSN, NOT_OK_CUI_AUTH_TOKEN, NOT_OK_DPOP_TOKEN, OBAC_ISSUE_SSN, type OfferCard, type OfferDetail, type OfferHeadline, type OfferListResponse, type OfferMerchant, type OfferResponse, type OfferSummaryResponse, type OfferTermsAndConditions, OnboardingStatus, OriginationDirection, OriginationTransferReasonCode, type OriginationTransferRequest, type OriginationTransferResponse, OriginationTransferScheme, type OutagesListResponse, type OutagesResponse, type PinResponse, type PushRegistrationRequest, PushRegistrationRequestDevicePlatformEnum, PutUpdateUser, REFRESHED_CUI_AUTH_TOKEN, REPOSITORY_METHOD_FAILING_SHORT_CODE, ReactNativeAsyncStorageCacheService, RegisterCleanupHandler, RemoveSourceCard, ReplaceCardByToken, type ReplaceCardRequest, ReplaceCardRequestReasonEnum, type ReplaceCardResponse, type RequestNewAuthTokenMessageService, type RequestNewAuthTokenResponse, RestAuthService, RestComponentsRepository, RestKycRepository, RestUsersRepository, RestWlaService, RetrieveDocumentForDispute, type RevokeConsentResponse, RevokeConsentStatus, type RewardCategory, type RewardPeriod, type RewardSummary, SESSION_TTL, MOCK_USER as STATEMENTS_MOCK_USER, SUSPENDED_CARD_ACTIONS, type SecondaryIdentification, SessionStorageFeatureFlagService, SetActiveEnvName, SetActiveThemeByName, SetMockMode, type Shipping, type ShippingInformationResponse, type ShippingInformationResponseMethodEnum, ShippingMethodEnum, type SourceCardsListEntity, type SourceCardsRecordEntity, type SourceCardsResponseEntity, type SsoAccessTokenHandler, type StandardOkResponse, StandardizedError, StartDispute, type StatementAssetResponse, StatementAssetStateEnum, type StatementSummary, type StatementsPaginationParams, type StatementsResponse, type StepResponse, StubFeatureFlagService, SubmitAnswerForDisputeQuestion, type SubmitAnswerPayload, SubmitDispute, type SubmitDisputeSuccessResponse, type SuccessBaseResponse, TERMINATED_CARD_ACTIONS, TEST_ACTIVE_CARD, TEST_ACTIVE_CARD_VIRTUAL, TEST_CARD, TEST_CARDHOLDER_VERIFICATION_METHOD, TEST_CARD_ACTIONS, TEST_CARD_PRODUCT_TOKEN, TEST_CARD_TOKEN, TEST_CARD_TOKEN_INVALID, TEST_CARD_TOKEN_IS_ACTIVE, TEST_CARD_TOKEN_IS_ACTIVE_VIRTUAL, TEST_CARD_TOKEN_IS_EXPIRED, TEST_CARD_TOKEN_IS_SUSPENDED, TEST_CARD_TOKEN_IS_SUSPENDED_VIRTUAL, TEST_CARD_TOKEN_IS_TERMINATED, TEST_CARD_TOKEN_IS_UNACTIVATED, TEST_CARD_TOKEN_IS_VIRTUAL, TEST_CARD_TOKEN_LIMIT_EXCEEDED, TEST_CARD_TOKEN_LOADING, TEST_CLIENT_ID, TEST_CVV_NUMBER, TEST_DEPOSIT_ACCOUNT, TEST_EXPIRATION, TEST_OK_RESPONSE, TEST_PIN, TEST_SESSION_ID, TEST_SOURCE_CARD, TEST_SOURCE_CARDS_RESPONSE, TEST_SUSPENDED_CARD_VIRTUAL, TEST_THEME_NAME, TEST_THEME_OBJECT, TEST_USER_TOKEN, TEST_WEAK_PINS, type ThemeObject, TransactionDetailResponseIconTypeEnum, type TransactionDetailsBannerData, TransactionDetailsBannerType, type TransactionDetailsRecord, type TransactionDetailsResponse, TransactionDirection, type TransactionDispute, TransactionDisputeStatus, type TransactionListResponse, type TransactionRecord, TransactionRecordStatus, type TransactionResponse, TransactionStatus, TransactionType, type TransactionsPaginationParams, type TransactionsResponse, type Transfer, type TransferListResponse, type TransferResponse, TransferStatus, type UnlinkSourceCardResponse, UnlockCardByToken, type UpdateConsentStatusRequest, type UpdateConsentStatusResponse, type UpdateExternalAccountRequest, UpdatePinByCardToken, type UpdatePinResponse, UploadDocumentForDispute, type UserAddressEntity, type UserConfigResponse, UserEntity, type UserEntityJsonType, type UserProfileResponse, type UserResponse, UserRole, type UserStatus, VALID_CUI_AUTH_TOKEN, VALID_CUI_USER_RESPONSE, VALID_DPOP_TOKEN, VALID_OAUTH_TOKEN, VALID_PROGRAM_SHORT_CODE, VALID_USER_TOKEN_HASH, VanillaSessionService, WindowCacheService, WlaIocModule, WlaSdkError, type WlaTransactionDetailsResponse, WlaUserStatus, accountsIOCModule, authIOCModule, bookTransfer, cardsIOCModule, checkAndRefreshAuthToken, commonIOCModule, componentsIOCModule, convertObjKeysToCamelCase, convertObjKeysToLowerCamelCase, createOriginationTransfer, createProofToken, createWlaCard, createWlaExternalAccount, deepMergeThemeObject, deleteRegistrationForPushNotifications, development, disputesIOCModule, envConfigIOCModule, featureFlagIsEnabled, featureFlagsIOCModule, formatDateForApi, generateAuthKeyPair, generateStatementsDateQueries, getAccountTransactions, getActiveIocContainer, getAuthKeyPair, getCachedAuthApiEndpoint, getCachedAuthApiHeadersResolver, getCachedAuthToken, getCachedAuthTokenExpiration, getCardholderContext, getClientId, getConsentById, getConsents, getExternalAccount, getExternalAccountList, getMockUpdatedUserRequestToCreateResponse, getMockUserRequestToCreateResponse, getOfferDetails, getOffers, getOutagesByToken, getOutagesList, getSessionId, getSsoAccessTokenHandler, getTransferByToken, getTransfers, getUserProgram, getUserTokenHash, getWlaAccountDetails, getWlaCardByToken, getWlaFaqs, getWlaRewardSummaries, getWlaTransactionByToken, getWlaUserProfile, handleGetStatementAsset, handleGetStatements, iAccountRepository, iAnalyticsService, iAuthCredentialService, iAuthCredsMessageService, iAuthService, iAuthenticatedHttpClient, iCacheService, iCardRepository, iComponentsRepository, iDisputesRepository, iFeatureFlagService, iGetEnvConfigValueByName, iIconsRepository, iKycRepository, iMoneyMovementRepository, iPersistedCacheService, iRegistryService, iSessionService, iSsoAccessTokenService, iStatementsRepository, iThemeRepository, iTransactionsRepository, iUsersRepository, iconsIOCModule, isComponentEnabled, kycIOCModule, loadEnabledComponentsByShortCode, loadFeatureFlags, localhost, markAccountActivated, markAccountVerified, mockAccountBalances, mockAccountHolderGroup, mockAccountsIOCModule, mockAnalyticsIOCModule, mockAuthIOCModule, mockCardsIOCModule, mockCommonIOCModule, mockCreateUserRequest, mockCreatedUserResponse, mockDepositAccountJson, mockDisputesIOCModule, mockEnvConfigIOCModule, mockFeatureFlagIOCModule, mockInvalidCreateUserRequest, mockInvalidKycVerificationRequest, mockKycVerificationRequest, mockKycVerificationResponse, mockMode, mockMoneyMovementIOCModule, mockSourceCards, mockThemesIOCModule, mockUpdateUserResponse, mockUsersIOCModule, moneyMovementIOCModule, mswAccountHandlers, mswAnalyticsHandlers, mswAuthHandlers, mswCardsHandlers, mswComponentsHandlers, mswDisputesHandlers, mswKycHandlers, mswSourceCardsHandler, mswStatementsHandlers, mswTransactionsHandlers, mswUsersHandlers, postCreateUser, postVerifyKyc, production, qa, reactNativeCommonIOCModule, reactNativeFeatureFlagsIOCModule, reactNativeContainer as reactNativeSdkJsContainer, registerDeviceForPushNotifications, replaceWlaCard, revokeConsent, sandbox, container as sdkJsContainer, searchAtms, setActiveIocContainer, setAuthKeyPair, setAuthParams, setCachedAuthApiEndpoint, setCachedAuthApiHeadersResolver, setCachedAuthToken, setSsoAccessTokenHandler, setWlaCardPin, setWlaConfig, statementsIOCModule, themesIOCModule, toDateType, trackEvent, transactionsIOCModule, updateConsentStatus, updateExternalAccount, usersIOCModule, verifyExternalAccount, wlaReactNativeContainer as wlaReactNativeSdkJsContainer };
package/dist/index.js CHANGED
@@ -1425,6 +1425,9 @@ __export(src_exports, {
1425
1425
  getCachedAuthApiEndpoint: function() {
1426
1426
  return getCachedAuthApiEndpoint;
1427
1427
  },
1428
+ getCachedAuthApiHeadersResolver: function() {
1429
+ return getCachedAuthApiHeadersResolver;
1430
+ },
1428
1431
  getCachedAuthToken: function() {
1429
1432
  return getCachedAuthToken;
1430
1433
  },
@@ -1758,6 +1761,9 @@ __export(src_exports, {
1758
1761
  setCachedAuthApiEndpoint: function() {
1759
1762
  return setCachedAuthApiEndpoint;
1760
1763
  },
1764
+ setCachedAuthApiHeadersResolver: function() {
1765
+ return setCachedAuthApiHeadersResolver;
1766
+ },
1761
1767
  setCachedAuthToken: function() {
1762
1768
  return setCachedAuthToken;
1763
1769
  },
@@ -5016,6 +5022,7 @@ var _DpopAuthCredentialService = /*#__PURE__*/ function() {
5016
5022
  function _DpopAuthCredentialService() {
5017
5023
  _class_call_check(this, _DpopAuthCredentialService);
5018
5024
  __publicField(this, "cacheService");
5025
+ __publicField(this, "headersResolver");
5019
5026
  }
5020
5027
  _create_class(_DpopAuthCredentialService, [
5021
5028
  {
@@ -5354,6 +5361,18 @@ var _DpopAuthCredentialService = /*#__PURE__*/ function() {
5354
5361
  value: function setCachedAuthApiEndpoint(apiEndpoint) {
5355
5362
  this.cacheService.set("authApiEndpoint", apiEndpoint);
5356
5363
  }
5364
+ },
5365
+ {
5366
+ key: "getCachedAuthApiHeadersResolver",
5367
+ value: function getCachedAuthApiHeadersResolver() {
5368
+ return this.headersResolver;
5369
+ }
5370
+ },
5371
+ {
5372
+ key: "setCachedAuthApiHeadersResolver",
5373
+ value: function setCachedAuthApiHeadersResolver(headersResolver) {
5374
+ this.headersResolver = headersResolver;
5375
+ }
5357
5376
  }
5358
5377
  ]);
5359
5378
  return _DpopAuthCredentialService;
@@ -5673,6 +5692,7 @@ var _MockAuthCredentialService = /*#__PURE__*/ function() {
5673
5692
  function _MockAuthCredentialService() {
5674
5693
  _class_call_check(this, _MockAuthCredentialService);
5675
5694
  __publicField(this, "authApiEndpoint");
5695
+ __publicField(this, "authApiHeadersResolver");
5676
5696
  __publicField(this, "authKeyPair");
5677
5697
  __publicField(this, "authToken");
5678
5698
  __publicField(this, "expiresAt");
@@ -5772,6 +5792,18 @@ var _MockAuthCredentialService = /*#__PURE__*/ function() {
5772
5792
  value: function setCachedAuthApiEndpoint(apiEndpoint) {
5773
5793
  this.authApiEndpoint = apiEndpoint;
5774
5794
  }
5795
+ },
5796
+ {
5797
+ key: "getCachedAuthApiHeadersResolver",
5798
+ value: function getCachedAuthApiHeadersResolver() {
5799
+ return this.authApiHeadersResolver;
5800
+ }
5801
+ },
5802
+ {
5803
+ key: "setCachedAuthApiHeadersResolver",
5804
+ value: function setCachedAuthApiHeadersResolver(headersResolver) {
5805
+ this.authApiHeadersResolver = headersResolver;
5806
+ }
5775
5807
  }
5776
5808
  ]);
5777
5809
  return _MockAuthCredentialService;
@@ -5819,7 +5851,7 @@ var _MockAuthService = /*#__PURE__*/ function() {
5819
5851
  },
5820
5852
  {
5821
5853
  key: "requestNewAuthTokenByEndpoint",
5822
- value: function requestNewAuthTokenByEndpoint(_) {
5854
+ value: function requestNewAuthTokenByEndpoint(_url, _headers) {
5823
5855
  return Promise.resolve({
5824
5856
  accessToken: (0, import_uuid2.v4)(),
5825
5857
  expiresIn: 3600
@@ -5921,6 +5953,13 @@ function getCachedAuthApiEndpoint() {
5921
5953
  return authCredentialService.getCachedAuthApiEndpoint();
5922
5954
  }
5923
5955
  __name(getCachedAuthApiEndpoint, "getCachedAuthApiEndpoint");
5956
+ // src/auth/base/interactors/getCachedAuthApiHeadersResolver.ts
5957
+ function getCachedAuthApiHeadersResolver() {
5958
+ var container2 = getActiveIocContainer();
5959
+ var authCredentialService = container2.get(ITF_AUTH_CREDENTIAL_SERVICE);
5960
+ return authCredentialService.getCachedAuthApiHeadersResolver();
5961
+ }
5962
+ __name(getCachedAuthApiHeadersResolver, "getCachedAuthApiHeadersResolver");
5924
5963
  // src/auth/base/interactors/getCachedAuthTokenExpiration.ts
5925
5964
  function getCachedAuthTokenExpiration() {
5926
5965
  var container2 = getActiveIocContainer();
@@ -6056,20 +6095,50 @@ function debounceNewAuthTokenRequests(apiEndpoint) {
6056
6095
  }
6057
6096
  function _debounceNewAuthTokenRequests() {
6058
6097
  _debounceNewAuthTokenRequests = _async_to_generator(function(apiEndpoint) {
6059
- var container2, authService, response;
6098
+ var container2, authService, apiHeadersResolver, apiHeaders, _tmp, response;
6060
6099
  return _ts_generator(this, function(_state) {
6061
6100
  switch(_state.label){
6062
6101
  case 0:
6063
- if (requestPromiseSingleton === void 0) {
6064
- container2 = getActiveIocContainer();
6065
- authService = container2.get(ITF_AUTH_SERVICE);
6066
- requestPromiseSingleton = authService.requestNewAuthTokenByEndpoint(apiEndpoint);
6067
- }
6102
+ if (!(requestPromiseSingleton === void 0)) return [
6103
+ 3,
6104
+ 5
6105
+ ];
6106
+ container2 = getActiveIocContainer();
6107
+ authService = container2.get(ITF_AUTH_SERVICE);
6108
+ apiHeadersResolver = getCachedAuthApiHeadersResolver();
6109
+ if (!apiHeadersResolver) return [
6110
+ 3,
6111
+ 4
6112
+ ];
6113
+ if (!(typeof apiHeadersResolver === "function")) return [
6114
+ 3,
6115
+ 2
6116
+ ];
6068
6117
  return [
6069
6118
  4,
6070
- requestPromiseSingleton
6119
+ apiHeadersResolver()
6071
6120
  ];
6072
6121
  case 1:
6122
+ _tmp = _state.sent();
6123
+ return [
6124
+ 3,
6125
+ 3
6126
+ ];
6127
+ case 2:
6128
+ _tmp = apiHeadersResolver;
6129
+ _state.label = 3;
6130
+ case 3:
6131
+ apiHeaders = _tmp;
6132
+ _state.label = 4;
6133
+ case 4:
6134
+ requestPromiseSingleton = authService.requestNewAuthTokenByEndpoint(apiEndpoint, apiHeaders);
6135
+ _state.label = 5;
6136
+ case 5:
6137
+ return [
6138
+ 4,
6139
+ requestPromiseSingleton
6140
+ ];
6141
+ case 6:
6073
6142
  response = _state.sent();
6074
6143
  requestPromiseSingleton = void 0;
6075
6144
  return [
@@ -6268,17 +6337,24 @@ function setCachedAuthApiEndpoint(apiEndpoint) {
6268
6337
  authCredentialService.setCachedAuthApiEndpoint(apiEndpoint);
6269
6338
  }
6270
6339
  __name(setCachedAuthApiEndpoint, "setCachedAuthApiEndpoint");
6340
+ // src/auth/base/interactors/setCachedAuthApiHeadersResolver.ts
6341
+ function setCachedAuthApiHeadersResolver(headersResolver) {
6342
+ var container2 = getActiveIocContainer();
6343
+ var authCredentialService = container2.get(ITF_AUTH_CREDENTIAL_SERVICE);
6344
+ authCredentialService.setCachedAuthApiHeadersResolver(headersResolver);
6345
+ }
6346
+ __name(setCachedAuthApiHeadersResolver, "setCachedAuthApiHeadersResolver");
6271
6347
  function setAuthParams(authParams) {
6272
6348
  return _setAuthParams.apply(this, arguments);
6273
6349
  }
6274
6350
  function _setAuthParams() {
6275
6351
  _setAuthParams = // src/auth/base/interactors/setAuthParams.ts
6276
6352
  _async_to_generator(function(authParams) {
6277
- var apiEndpoint, existingAuth, keyPair, token, expiresAt;
6353
+ var apiEndpoint, apiHeadersResolver, existingAuth, keyPair, token, expiresAt;
6278
6354
  return _ts_generator(this, function(_state) {
6279
6355
  switch(_state.label){
6280
6356
  case 0:
6281
- apiEndpoint = authParams.apiEndpoint, existingAuth = authParams.existingAuth;
6357
+ apiEndpoint = authParams.apiEndpoint, apiHeadersResolver = authParams.apiHeadersResolver, existingAuth = authParams.existingAuth;
6282
6358
  if (!apiEndpoint && !existingAuth) {
6283
6359
  throw new MqSDKError("Missing API Endpoint or Existing Auth in AuthParams");
6284
6360
  }
@@ -6287,6 +6363,9 @@ function _setAuthParams() {
6287
6363
  1
6288
6364
  ];
6289
6365
  setCachedAuthApiEndpoint(apiEndpoint);
6366
+ if (apiHeadersResolver) {
6367
+ setCachedAuthApiHeadersResolver(apiHeadersResolver);
6368
+ }
6290
6369
  return [
6291
6370
  3,
6292
6371
  3
@@ -6417,7 +6496,7 @@ var _RestAuthService = /*#__PURE__*/ function() {
6417
6496
  },
6418
6497
  {
6419
6498
  key: "requestNewAuthTokenByEndpoint",
6420
- value: function requestNewAuthTokenByEndpoint(apiEndpoint) {
6499
+ value: function requestNewAuthTokenByEndpoint(apiEndpoint, apiHeaders) {
6421
6500
  var _this = this;
6422
6501
  return _async_to_generator(function() {
6423
6502
  var uxtServiceUrl, dpopProof, data, access_token, expires_in;
@@ -6434,9 +6513,9 @@ var _RestAuthService = /*#__PURE__*/ function() {
6434
6513
  return [
6435
6514
  4,
6436
6515
  _this.httpClient.post(apiEndpoint, {
6437
- headers: {
6516
+ headers: _object_spread({
6438
6517
  DPoP: dpopProof
6439
- }
6518
+ }, apiHeaders !== null && apiHeaders !== void 0 ? apiHeaders : {})
6440
6519
  })
6441
6520
  ];
6442
6521
  case 2:
@@ -16969,7 +17048,7 @@ var _GetStatementAsset = /*#__PURE__*/ function() {
16969
17048
  _create_class(_GetStatementAsset, [
16970
17049
  {
16971
17050
  key: "execute",
16972
- value: function execute(issuedDate) {
17051
+ value: function execute(issuedDate, accountToken) {
16973
17052
  var _this = this;
16974
17053
  return _async_to_generator(function() {
16975
17054
  var response;
@@ -16978,7 +17057,7 @@ var _GetStatementAsset = /*#__PURE__*/ function() {
16978
17057
  case 0:
16979
17058
  return [
16980
17059
  4,
16981
- _this.statementsRepository.getStatementAsset(issuedDate)
17060
+ _this.statementsRepository.getStatementAsset(issuedDate, accountToken)
16982
17061
  ];
16983
17062
  case 1:
16984
17063
  response = _state.sent();
@@ -17067,10 +17146,10 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
17067
17146
  },
17068
17147
  {
17069
17148
  key: "getStatementAsset",
17070
- value: function getStatementAsset(issuedDate) {
17149
+ value: function getStatementAsset(issuedDate, accountToken) {
17071
17150
  var _this = this;
17072
17151
  return _async_to_generator(function() {
17073
- var cuiApiBaseUrl, path, response, err;
17152
+ var queryParams, cuiApiBaseUrl, path, response, err;
17074
17153
  return _ts_generator(this, function(_state) {
17075
17154
  switch(_state.label){
17076
17155
  case 0:
@@ -17080,8 +17159,12 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
17080
17159
  ,
17081
17160
  3
17082
17161
  ]);
17162
+ queryParams = new URLSearchParams();
17163
+ if (accountToken) {
17164
+ queryParams.set("account_token", accountToken);
17165
+ }
17083
17166
  cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
17084
- path = "".concat(cuiApiBaseUrl, "/api/v1/statements/").concat(issuedDate, "/download");
17167
+ path = "".concat(cuiApiBaseUrl, "/api/v1/statements/").concat(issuedDate, "/download?").concat(queryParams.toString());
17085
17168
  return [
17086
17169
  4,
17087
17170
  _this.httpClient.get(path)
@@ -17107,7 +17190,7 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
17107
17190
  {
17108
17191
  key: "convertPaginationParamsToQueryParams",
17109
17192
  value: function convertPaginationParamsToQueryParams(paginationParams) {
17110
- var issuedEndDate = paginationParams.issuedEndDate, issuedStartDate = paginationParams.issuedStartDate;
17193
+ var issuedEndDate = paginationParams.issuedEndDate, issuedStartDate = paginationParams.issuedStartDate, accountToken = paginationParams.accountToken;
17111
17194
  var queryParams = new URLSearchParams([
17112
17195
  [
17113
17196
  "issued_end_date",
@@ -17117,7 +17200,12 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
17117
17200
  "issued_start_date",
17118
17201
  issuedStartDate
17119
17202
  ]
17120
- ]);
17203
+ ].concat(_to_consumable_array(accountToken ? [
17204
+ [
17205
+ "account_token",
17206
+ accountToken
17207
+ ]
17208
+ ] : [])));
17121
17209
  return queryParams;
17122
17210
  }
17123
17211
  }
@@ -17236,7 +17324,7 @@ var generateStatementsDateQueries = /* @__PURE__ */ __name(function() {
17236
17324
  };
17237
17325
  }, "generateStatementsDateQueries");
17238
17326
  // src/statements/adapters/rest/mockStatements.ts
17239
- var handleGetStatements = /* @__PURE__ */ __name(function(userToken, issuedEndDate, issuedStartDate) {
17327
+ var handleGetStatements = /* @__PURE__ */ __name(function(userToken, issuedEndDate, issuedStartDate, accountToken) {
17240
17328
  var response;
17241
17329
  var areIssuedDatesValid = validateIssuedDateQueryParams(issuedEndDate, issuedStartDate);
17242
17330
  if (!areIssuedDatesValid) {
@@ -17247,7 +17335,7 @@ var handleGetStatements = /* @__PURE__ */ __name(function(userToken, issuedEndDa
17247
17335
  ].includes(userToken)) {
17248
17336
  throw new Error("Status: ".concat(404));
17249
17337
  } else if (areIssuedDatesValid) {
17250
- response = generateStatementSummary(userToken, issuedEndDate, issuedStartDate);
17338
+ response = generateStatementSummary(userToken, issuedEndDate, issuedStartDate, accountToken);
17251
17339
  } else {
17252
17340
  throw new Error("Status: ".concat(500));
17253
17341
  }
@@ -17280,7 +17368,7 @@ var isMockUserCreationYear = /* @__PURE__ */ __name(function(issued_end_date) {
17280
17368
  var issuedEndDateYear = toDateType(issued_end_date).getFullYear();
17281
17369
  return mockUserCreationYear === issuedEndDateYear;
17282
17370
  }, "isMockUserCreationYear");
17283
- var generateStatementSummary = /* @__PURE__ */ __name(function(user_token, issued_end_date, issued_start_date) {
17371
+ var generateStatementSummary = /* @__PURE__ */ __name(function(user_token, issued_end_date, issued_start_date, account_token) {
17284
17372
  var data = [];
17285
17373
  var monthsDifference = 12;
17286
17374
  var issuedEndDateObject = getValidEndDate(issued_end_date);
@@ -17290,11 +17378,13 @@ var generateStatementSummary = /* @__PURE__ */ __name(function(user_token, issue
17290
17378
  monthsDifference = calculateMonthsDifference(issuedEndDateObject, toDateType(issued_start_date));
17291
17379
  }
17292
17380
  for(var i = 0; i < monthsDifference; i += 1){
17293
- data.push({
17381
+ data.push(_object_spread({
17294
17382
  cardholder_token: user_token || VALID_USER_TOKEN,
17295
17383
  issued_date: formatDateForApi(issuedEndDateObject),
17296
17384
  readable_issued_date: formatDateForClient(formatDateForApi(issuedEndDateObject))
17297
- });
17385
+ }, account_token && {
17386
+ account_token: account_token
17387
+ }));
17298
17388
  issuedEndDateObject.setMonth(issuedEndDateObject.getMonth() - 1);
17299
17389
  }
17300
17390
  return {
@@ -17328,17 +17418,20 @@ var mswStatementsHandlers = [
17328
17418
  var queryParams = new URLSearchParams(new URL(request.url).search);
17329
17419
  var queryIssuedEndDate = queryParams.get("issued_end_date");
17330
17420
  var queryIssuedStartDate = queryParams.get("issued_start_date");
17421
+ var queryAccountToken = queryParams.get("account_token");
17331
17422
  var authorizationError = handleAuthorizationCheck(authorization);
17332
17423
  if (authorizationError !== null) {
17333
17424
  return authorizationError;
17334
17425
  }
17335
- var response = handleGetStatements(VALID_USER_TOKEN, queryIssuedEndDate, queryIssuedStartDate);
17426
+ var response = handleGetStatements(VALID_USER_TOKEN, queryIssuedEndDate, queryIssuedStartDate, queryAccountToken);
17336
17427
  return HttpResponse.json(response);
17337
17428
  }),
17338
17429
  http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v1/statements/:issuedDate/download"), function(param) {
17339
17430
  var request = param.request, params = param.params;
17340
17431
  var authorization = request.headers.get("authorization");
17341
17432
  var authorizationError = handleAuthorizationCheck(authorization);
17433
+ var queryParams = new URLSearchParams(new URL(request.url).search);
17434
+ var queryAccountToken = queryParams.get("account_token");
17342
17435
  if (authorizationError !== null) {
17343
17436
  return authorizationError;
17344
17437
  }
@@ -17350,7 +17443,7 @@ var mswStatementsHandlers = [
17350
17443
  }
17351
17444
  var response = handleGetStatementAsset();
17352
17445
  var _generateStatementsDateQueries = generateStatementsDateQueries(), ISSUED_END_DATE = _generateStatementsDateQueries.ISSUED_END_DATE, ISSUED_START_DATE = _generateStatementsDateQueries.ISSUED_START_DATE;
17353
- var mockResponse = handleGetStatements(VALID_USER_TOKEN, ISSUED_END_DATE, ISSUED_START_DATE).data;
17446
+ var mockResponse = handleGetStatements(VALID_USER_TOKEN, ISSUED_END_DATE, ISSUED_START_DATE, queryAccountToken).data;
17354
17447
  var assetIndex = mockResponse.findIndex(function(item) {
17355
17448
  return item.issued_date === params.issuedDate;
17356
17449
  });
@@ -22630,6 +22723,7 @@ setActiveIocContainer(container);
22630
22723
  getActiveIocContainer: getActiveIocContainer,
22631
22724
  getAuthKeyPair: getAuthKeyPair,
22632
22725
  getCachedAuthApiEndpoint: getCachedAuthApiEndpoint,
22726
+ getCachedAuthApiHeadersResolver: getCachedAuthApiHeadersResolver,
22633
22727
  getCachedAuthToken: getCachedAuthToken,
22634
22728
  getCachedAuthTokenExpiration: getCachedAuthTokenExpiration,
22635
22729
  getCardholderContext: getCardholderContext,
@@ -22741,6 +22835,7 @@ setActiveIocContainer(container);
22741
22835
  setAuthKeyPair: setAuthKeyPair,
22742
22836
  setAuthParams: setAuthParams,
22743
22837
  setCachedAuthApiEndpoint: setCachedAuthApiEndpoint,
22838
+ setCachedAuthApiHeadersResolver: setCachedAuthApiHeadersResolver,
22744
22839
  setCachedAuthToken: setCachedAuthToken,
22745
22840
  setSsoAccessTokenHandler: setSsoAccessTokenHandler,
22746
22841
  setWlaCardPin: setWlaCardPin,
package/dist/index.mjs CHANGED
@@ -3677,6 +3677,7 @@ var _DpopAuthCredentialService = /*#__PURE__*/ function() {
3677
3677
  function _DpopAuthCredentialService() {
3678
3678
  _class_call_check(this, _DpopAuthCredentialService);
3679
3679
  __publicField(this, "cacheService");
3680
+ __publicField(this, "headersResolver");
3680
3681
  }
3681
3682
  _create_class(_DpopAuthCredentialService, [
3682
3683
  {
@@ -4015,6 +4016,18 @@ var _DpopAuthCredentialService = /*#__PURE__*/ function() {
4015
4016
  value: function setCachedAuthApiEndpoint(apiEndpoint) {
4016
4017
  this.cacheService.set("authApiEndpoint", apiEndpoint);
4017
4018
  }
4019
+ },
4020
+ {
4021
+ key: "getCachedAuthApiHeadersResolver",
4022
+ value: function getCachedAuthApiHeadersResolver() {
4023
+ return this.headersResolver;
4024
+ }
4025
+ },
4026
+ {
4027
+ key: "setCachedAuthApiHeadersResolver",
4028
+ value: function setCachedAuthApiHeadersResolver(headersResolver) {
4029
+ this.headersResolver = headersResolver;
4030
+ }
4018
4031
  }
4019
4032
  ]);
4020
4033
  return _DpopAuthCredentialService;
@@ -4342,6 +4355,7 @@ var _MockAuthCredentialService = /*#__PURE__*/ function() {
4342
4355
  function _MockAuthCredentialService() {
4343
4356
  _class_call_check(this, _MockAuthCredentialService);
4344
4357
  __publicField(this, "authApiEndpoint");
4358
+ __publicField(this, "authApiHeadersResolver");
4345
4359
  __publicField(this, "authKeyPair");
4346
4360
  __publicField(this, "authToken");
4347
4361
  __publicField(this, "expiresAt");
@@ -4441,6 +4455,18 @@ var _MockAuthCredentialService = /*#__PURE__*/ function() {
4441
4455
  value: function setCachedAuthApiEndpoint(apiEndpoint) {
4442
4456
  this.authApiEndpoint = apiEndpoint;
4443
4457
  }
4458
+ },
4459
+ {
4460
+ key: "getCachedAuthApiHeadersResolver",
4461
+ value: function getCachedAuthApiHeadersResolver() {
4462
+ return this.authApiHeadersResolver;
4463
+ }
4464
+ },
4465
+ {
4466
+ key: "setCachedAuthApiHeadersResolver",
4467
+ value: function setCachedAuthApiHeadersResolver(headersResolver) {
4468
+ this.authApiHeadersResolver = headersResolver;
4469
+ }
4444
4470
  }
4445
4471
  ]);
4446
4472
  return _MockAuthCredentialService;
@@ -4489,7 +4515,7 @@ var _MockAuthService = /*#__PURE__*/ function() {
4489
4515
  },
4490
4516
  {
4491
4517
  key: "requestNewAuthTokenByEndpoint",
4492
- value: function requestNewAuthTokenByEndpoint(_) {
4518
+ value: function requestNewAuthTokenByEndpoint(_url, _headers) {
4493
4519
  return Promise.resolve({
4494
4520
  accessToken: uuidv42(),
4495
4521
  expiresIn: 3600
@@ -4592,6 +4618,13 @@ function getCachedAuthApiEndpoint() {
4592
4618
  return authCredentialService.getCachedAuthApiEndpoint();
4593
4619
  }
4594
4620
  __name(getCachedAuthApiEndpoint, "getCachedAuthApiEndpoint");
4621
+ // src/auth/base/interactors/getCachedAuthApiHeadersResolver.ts
4622
+ function getCachedAuthApiHeadersResolver() {
4623
+ var container2 = getActiveIocContainer();
4624
+ var authCredentialService = container2.get(ITF_AUTH_CREDENTIAL_SERVICE);
4625
+ return authCredentialService.getCachedAuthApiHeadersResolver();
4626
+ }
4627
+ __name(getCachedAuthApiHeadersResolver, "getCachedAuthApiHeadersResolver");
4595
4628
  // src/auth/base/interactors/getCachedAuthTokenExpiration.ts
4596
4629
  function getCachedAuthTokenExpiration() {
4597
4630
  var container2 = getActiveIocContainer();
@@ -4727,20 +4760,50 @@ function debounceNewAuthTokenRequests(apiEndpoint) {
4727
4760
  }
4728
4761
  function _debounceNewAuthTokenRequests() {
4729
4762
  _debounceNewAuthTokenRequests = _async_to_generator(function(apiEndpoint) {
4730
- var container2, authService, response;
4763
+ var container2, authService, apiHeadersResolver, apiHeaders, _tmp, response;
4731
4764
  return _ts_generator(this, function(_state) {
4732
4765
  switch(_state.label){
4733
4766
  case 0:
4734
- if (requestPromiseSingleton === void 0) {
4735
- container2 = getActiveIocContainer();
4736
- authService = container2.get(ITF_AUTH_SERVICE);
4737
- requestPromiseSingleton = authService.requestNewAuthTokenByEndpoint(apiEndpoint);
4738
- }
4767
+ if (!(requestPromiseSingleton === void 0)) return [
4768
+ 3,
4769
+ 5
4770
+ ];
4771
+ container2 = getActiveIocContainer();
4772
+ authService = container2.get(ITF_AUTH_SERVICE);
4773
+ apiHeadersResolver = getCachedAuthApiHeadersResolver();
4774
+ if (!apiHeadersResolver) return [
4775
+ 3,
4776
+ 4
4777
+ ];
4778
+ if (!(typeof apiHeadersResolver === "function")) return [
4779
+ 3,
4780
+ 2
4781
+ ];
4739
4782
  return [
4740
4783
  4,
4741
- requestPromiseSingleton
4784
+ apiHeadersResolver()
4742
4785
  ];
4743
4786
  case 1:
4787
+ _tmp = _state.sent();
4788
+ return [
4789
+ 3,
4790
+ 3
4791
+ ];
4792
+ case 2:
4793
+ _tmp = apiHeadersResolver;
4794
+ _state.label = 3;
4795
+ case 3:
4796
+ apiHeaders = _tmp;
4797
+ _state.label = 4;
4798
+ case 4:
4799
+ requestPromiseSingleton = authService.requestNewAuthTokenByEndpoint(apiEndpoint, apiHeaders);
4800
+ _state.label = 5;
4801
+ case 5:
4802
+ return [
4803
+ 4,
4804
+ requestPromiseSingleton
4805
+ ];
4806
+ case 6:
4744
4807
  response = _state.sent();
4745
4808
  requestPromiseSingleton = void 0;
4746
4809
  return [
@@ -4939,17 +5002,24 @@ function setCachedAuthApiEndpoint(apiEndpoint) {
4939
5002
  authCredentialService.setCachedAuthApiEndpoint(apiEndpoint);
4940
5003
  }
4941
5004
  __name(setCachedAuthApiEndpoint, "setCachedAuthApiEndpoint");
5005
+ // src/auth/base/interactors/setCachedAuthApiHeadersResolver.ts
5006
+ function setCachedAuthApiHeadersResolver(headersResolver) {
5007
+ var container2 = getActiveIocContainer();
5008
+ var authCredentialService = container2.get(ITF_AUTH_CREDENTIAL_SERVICE);
5009
+ authCredentialService.setCachedAuthApiHeadersResolver(headersResolver);
5010
+ }
5011
+ __name(setCachedAuthApiHeadersResolver, "setCachedAuthApiHeadersResolver");
4942
5012
  function setAuthParams(authParams) {
4943
5013
  return _setAuthParams.apply(this, arguments);
4944
5014
  }
4945
5015
  function _setAuthParams() {
4946
5016
  _setAuthParams = // src/auth/base/interactors/setAuthParams.ts
4947
5017
  _async_to_generator(function(authParams) {
4948
- var apiEndpoint, existingAuth, keyPair, token, expiresAt;
5018
+ var apiEndpoint, apiHeadersResolver, existingAuth, keyPair, token, expiresAt;
4949
5019
  return _ts_generator(this, function(_state) {
4950
5020
  switch(_state.label){
4951
5021
  case 0:
4952
- apiEndpoint = authParams.apiEndpoint, existingAuth = authParams.existingAuth;
5022
+ apiEndpoint = authParams.apiEndpoint, apiHeadersResolver = authParams.apiHeadersResolver, existingAuth = authParams.existingAuth;
4953
5023
  if (!apiEndpoint && !existingAuth) {
4954
5024
  throw new MqSDKError("Missing API Endpoint or Existing Auth in AuthParams");
4955
5025
  }
@@ -4958,6 +5028,9 @@ function _setAuthParams() {
4958
5028
  1
4959
5029
  ];
4960
5030
  setCachedAuthApiEndpoint(apiEndpoint);
5031
+ if (apiHeadersResolver) {
5032
+ setCachedAuthApiHeadersResolver(apiHeadersResolver);
5033
+ }
4961
5034
  return [
4962
5035
  3,
4963
5036
  3
@@ -5089,7 +5162,7 @@ var _RestAuthService = /*#__PURE__*/ function() {
5089
5162
  },
5090
5163
  {
5091
5164
  key: "requestNewAuthTokenByEndpoint",
5092
- value: function requestNewAuthTokenByEndpoint(apiEndpoint) {
5165
+ value: function requestNewAuthTokenByEndpoint(apiEndpoint, apiHeaders) {
5093
5166
  var _this = this;
5094
5167
  return _async_to_generator(function() {
5095
5168
  var uxtServiceUrl, dpopProof, data, access_token, expires_in;
@@ -5106,9 +5179,9 @@ var _RestAuthService = /*#__PURE__*/ function() {
5106
5179
  return [
5107
5180
  4,
5108
5181
  _this.httpClient.post(apiEndpoint, {
5109
- headers: {
5182
+ headers: _object_spread({
5110
5183
  DPoP: dpopProof
5111
- }
5184
+ }, apiHeaders !== null && apiHeaders !== void 0 ? apiHeaders : {})
5112
5185
  })
5113
5186
  ];
5114
5187
  case 2:
@@ -15701,7 +15774,7 @@ var _GetStatementAsset = /*#__PURE__*/ function() {
15701
15774
  _create_class(_GetStatementAsset, [
15702
15775
  {
15703
15776
  key: "execute",
15704
- value: function execute(issuedDate) {
15777
+ value: function execute(issuedDate, accountToken) {
15705
15778
  var _this = this;
15706
15779
  return _async_to_generator(function() {
15707
15780
  var response;
@@ -15710,7 +15783,7 @@ var _GetStatementAsset = /*#__PURE__*/ function() {
15710
15783
  case 0:
15711
15784
  return [
15712
15785
  4,
15713
- _this.statementsRepository.getStatementAsset(issuedDate)
15786
+ _this.statementsRepository.getStatementAsset(issuedDate, accountToken)
15714
15787
  ];
15715
15788
  case 1:
15716
15789
  response = _state.sent();
@@ -15800,10 +15873,10 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
15800
15873
  },
15801
15874
  {
15802
15875
  key: "getStatementAsset",
15803
- value: function getStatementAsset(issuedDate) {
15876
+ value: function getStatementAsset(issuedDate, accountToken) {
15804
15877
  var _this = this;
15805
15878
  return _async_to_generator(function() {
15806
- var cuiApiBaseUrl, path, response, err;
15879
+ var queryParams, cuiApiBaseUrl, path, response, err;
15807
15880
  return _ts_generator(this, function(_state) {
15808
15881
  switch(_state.label){
15809
15882
  case 0:
@@ -15813,8 +15886,12 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
15813
15886
  ,
15814
15887
  3
15815
15888
  ]);
15889
+ queryParams = new URLSearchParams();
15890
+ if (accountToken) {
15891
+ queryParams.set("account_token", accountToken);
15892
+ }
15816
15893
  cuiApiBaseUrl = _this.getEnvConfigValueByName.execute("CUI_API_BASE_URL");
15817
- path = "".concat(cuiApiBaseUrl, "/api/v1/statements/").concat(issuedDate, "/download");
15894
+ path = "".concat(cuiApiBaseUrl, "/api/v1/statements/").concat(issuedDate, "/download?").concat(queryParams.toString());
15818
15895
  return [
15819
15896
  4,
15820
15897
  _this.httpClient.get(path)
@@ -15840,7 +15917,7 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
15840
15917
  {
15841
15918
  key: "convertPaginationParamsToQueryParams",
15842
15919
  value: function convertPaginationParamsToQueryParams(paginationParams) {
15843
- var issuedEndDate = paginationParams.issuedEndDate, issuedStartDate = paginationParams.issuedStartDate;
15920
+ var issuedEndDate = paginationParams.issuedEndDate, issuedStartDate = paginationParams.issuedStartDate, accountToken = paginationParams.accountToken;
15844
15921
  var queryParams = new URLSearchParams([
15845
15922
  [
15846
15923
  "issued_end_date",
@@ -15850,7 +15927,12 @@ var _RestStatementsRepository = /*#__PURE__*/ function() {
15850
15927
  "issued_start_date",
15851
15928
  issuedStartDate
15852
15929
  ]
15853
- ]);
15930
+ ].concat(_to_consumable_array(accountToken ? [
15931
+ [
15932
+ "account_token",
15933
+ accountToken
15934
+ ]
15935
+ ] : [])));
15854
15936
  return queryParams;
15855
15937
  }
15856
15938
  }
@@ -15969,7 +16051,7 @@ var generateStatementsDateQueries = /* @__PURE__ */ __name(function() {
15969
16051
  };
15970
16052
  }, "generateStatementsDateQueries");
15971
16053
  // src/statements/adapters/rest/mockStatements.ts
15972
- var handleGetStatements = /* @__PURE__ */ __name(function(userToken, issuedEndDate, issuedStartDate) {
16054
+ var handleGetStatements = /* @__PURE__ */ __name(function(userToken, issuedEndDate, issuedStartDate, accountToken) {
15973
16055
  var response;
15974
16056
  var areIssuedDatesValid = validateIssuedDateQueryParams(issuedEndDate, issuedStartDate);
15975
16057
  if (!areIssuedDatesValid) {
@@ -15980,7 +16062,7 @@ var handleGetStatements = /* @__PURE__ */ __name(function(userToken, issuedEndDa
15980
16062
  ].includes(userToken)) {
15981
16063
  throw new Error("Status: ".concat(404));
15982
16064
  } else if (areIssuedDatesValid) {
15983
- response = generateStatementSummary(userToken, issuedEndDate, issuedStartDate);
16065
+ response = generateStatementSummary(userToken, issuedEndDate, issuedStartDate, accountToken);
15984
16066
  } else {
15985
16067
  throw new Error("Status: ".concat(500));
15986
16068
  }
@@ -16013,7 +16095,7 @@ var isMockUserCreationYear = /* @__PURE__ */ __name(function(issued_end_date) {
16013
16095
  var issuedEndDateYear = toDateType(issued_end_date).getFullYear();
16014
16096
  return mockUserCreationYear === issuedEndDateYear;
16015
16097
  }, "isMockUserCreationYear");
16016
- var generateStatementSummary = /* @__PURE__ */ __name(function(user_token, issued_end_date, issued_start_date) {
16098
+ var generateStatementSummary = /* @__PURE__ */ __name(function(user_token, issued_end_date, issued_start_date, account_token) {
16017
16099
  var data = [];
16018
16100
  var monthsDifference = 12;
16019
16101
  var issuedEndDateObject = getValidEndDate(issued_end_date);
@@ -16023,11 +16105,13 @@ var generateStatementSummary = /* @__PURE__ */ __name(function(user_token, issue
16023
16105
  monthsDifference = calculateMonthsDifference(issuedEndDateObject, toDateType(issued_start_date));
16024
16106
  }
16025
16107
  for(var i = 0; i < monthsDifference; i += 1){
16026
- data.push({
16108
+ data.push(_object_spread({
16027
16109
  cardholder_token: user_token || VALID_USER_TOKEN,
16028
16110
  issued_date: formatDateForApi(issuedEndDateObject),
16029
16111
  readable_issued_date: formatDateForClient(formatDateForApi(issuedEndDateObject))
16030
- });
16112
+ }, account_token && {
16113
+ account_token: account_token
16114
+ }));
16031
16115
  issuedEndDateObject.setMonth(issuedEndDateObject.getMonth() - 1);
16032
16116
  }
16033
16117
  return {
@@ -16061,17 +16145,20 @@ var mswStatementsHandlers = [
16061
16145
  var queryParams = new URLSearchParams(new URL(request.url).search);
16062
16146
  var queryIssuedEndDate = queryParams.get("issued_end_date");
16063
16147
  var queryIssuedStartDate = queryParams.get("issued_start_date");
16148
+ var queryAccountToken = queryParams.get("account_token");
16064
16149
  var authorizationError = handleAuthorizationCheck(authorization);
16065
16150
  if (authorizationError !== null) {
16066
16151
  return authorizationError;
16067
16152
  }
16068
- var response = handleGetStatements(VALID_USER_TOKEN, queryIssuedEndDate, queryIssuedStartDate);
16153
+ var response = handleGetStatements(VALID_USER_TOKEN, queryIssuedEndDate, queryIssuedStartDate, queryAccountToken);
16069
16154
  return HttpResponse.json(response);
16070
16155
  }),
16071
16156
  http.get("".concat(mockMode_exports.CUI_API_BASE_URL, "/api/v1/statements/:issuedDate/download"), function(param) {
16072
16157
  var request = param.request, params = param.params;
16073
16158
  var authorization = request.headers.get("authorization");
16074
16159
  var authorizationError = handleAuthorizationCheck(authorization);
16160
+ var queryParams = new URLSearchParams(new URL(request.url).search);
16161
+ var queryAccountToken = queryParams.get("account_token");
16075
16162
  if (authorizationError !== null) {
16076
16163
  return authorizationError;
16077
16164
  }
@@ -16083,7 +16170,7 @@ var mswStatementsHandlers = [
16083
16170
  }
16084
16171
  var response = handleGetStatementAsset();
16085
16172
  var _generateStatementsDateQueries = generateStatementsDateQueries(), ISSUED_END_DATE = _generateStatementsDateQueries.ISSUED_END_DATE, ISSUED_START_DATE = _generateStatementsDateQueries.ISSUED_START_DATE;
16086
- var mockResponse = handleGetStatements(VALID_USER_TOKEN, ISSUED_END_DATE, ISSUED_START_DATE).data;
16173
+ var mockResponse = handleGetStatements(VALID_USER_TOKEN, ISSUED_END_DATE, ISSUED_START_DATE, queryAccountToken).data;
16087
16174
  var assetIndex = mockResponse.findIndex(function(item) {
16088
16175
  return item.issued_date === params.issuedDate;
16089
16176
  });
@@ -21061,7 +21148,7 @@ wlaReactNativeContainer.unload(featureFlagsIOCModule);
21061
21148
  wlaReactNativeContainer.load(reactNativeFeatureFlagsIOCModule);
21062
21149
  // src/index.ts
21063
21150
  setActiveIocContainer(container);
21064
- export { ACCOUNT_CLOSED_CUI_AUTH_TOKEN, ACCOUNT_LIMITED_CUI_AUTH_TOKEN, ACCOUNT_LOADING_CUI_AUTH_TOKEN, ACCOUNT_SUSPENDED_CUI_AUTH_TOKEN, ACCOUNT_UNVERIFIED_CUI_AUTH_TOKEN, ACTIVE_CARD_ACTIONS, ACTIVE_IOC_CONTAINER, ADDRESS_ISSUE_SSN, AUTH_REFRESH_INTERVAL_ID, AccountBalancesEntity, AccountHolderGroupEntity, AccountType, ActivateCardByTokenOrPan, AddSourceCard, AtmLocationAccessFeesEnum, AtmLocationAvailabilityEnum, AtmLocationDistanceUnitEnum, AtmLocationHandicapAccessibleEnum, AtmLocationHasSharedDepositEnum, AtmLocationIsSurchargeFreeAllianceEnum, AtmLocationLocationTypeEnum, AtmLocationSupportsContactLessEnum, AtmLocationSurchargeFreeAllianceNetworkEnum, BAD_GENERAL_SSN, BannerTypeEnum, BookTransferResponseStatusEnum, BrowserMessageService, CUI_ENABLED_SHORT_CODE, CardEntity, CardFulfillmentRequestCardFulfillmentReasonEnum, CardStates, CardholderContextEntity, CardholderVerificationMethods, CleanupOnUnload, ConsentAction, ConsentPaymentScope, ConsentPaymentType, ConsentPermissionType, ConsentScope, ConsentStatus, CreateUserRequestIdentificationsInnerTypeEnum, CreateUserResponseStatusEnum, Currency, DEFAULT_THEME, DEPOSIT_ACCOUNTS_TERMINATED_CUI_AUTH_TOKEN, DOB_ISSUE_SSN, DeleteDocumentForDispute, DepositAccountEntity, DownloadDocumentForDispute, DpopAuthCredentialService, EMPTY_DEPOSIT_ACCOUNTS_CUI_AUTH_TOKEN, ExternalAccountStatus2 as ExternalAccountStatus, FFLAGS_SESSION_STORAGE_KEY, FaqParagraphTypeEnum, FormField, GaMeasurementAnalyticsService, GetAccountBalances, GetAccountHolderGroup, GetActiveEnvName, GetActiveTheme, GetAllStepsOfDispute, GetCardByToken, GetCardsByUserToken, GetDepositAccounts, GetEnvConfigValueByName, GetIconsByName, GetLanguageCode, GetPinByCardToken, GetShowpanByCardToken, GetSourceCards, GetStatementAsset, GetStatements, GetStepOfDisputeByStepId, GetTransactionDetails, GetTransactions, GetUser, INTR_ACTIVATE_CARD_BY_TOKEN_OR_PAN, INTR_ADD_SOURCE_CARD, INTR_CLEANUP_ON_UNLOAD, INTR_DELETE_DOCUMENT_FOR_DISPUTE, INTR_DOWNLOAD_DOCUMENT_FOR_DISPUTE, INTR_GET_ACCT_BALANCE_BY_TOKEN, INTR_GET_ACCT_HOLDER_GRP_BY_TOKEN, INTR_GET_ACTIVE_ENV_NAME, INTR_GET_ACTIVE_THEME, INTR_GET_ALL_STEPS_OF_DISPUTE, INTR_GET_CARDS_BY_USER_TOKEN, INTR_GET_CARD_BY_TOKEN, INTR_GET_CLIENT_ID, INTR_GET_DEPOSIT_ACCT_BY_TOKEN, INTR_GET_ENV_CONFIG_VALUE_BY_NAME, INTR_GET_ICONS, INTR_GET_LANGUAGE_CODE, INTR_GET_PIN_BY_CARD_TOKEN, INTR_GET_SESSION_ID, INTR_GET_SHOWPAN_BY_CARD_TOKEN, INTR_GET_SOURCE_CARDS, INTR_GET_STATEMENTS, INTR_GET_STATEMENT_ASSET, INTR_GET_STEP_OF_DISPUTE_BY_STEP_ID, INTR_GET_TRANSACTIONS, INTR_GET_TRANSACTIONS_V2, INTR_GET_TRANSACTION_DETAILS, INTR_GET_USER, INTR_INITIATE_FUNDING, INTR_IS_MOCK_MODE_ENABLED, INTR_LOCK_CARD_BY_TOKEN, INTR_POST_CREATE_USER, INTR_PUT_UPDATE_USER, INTR_REGISTER_CLEANUP_HANDLER, INTR_REMOVE_SOURCE_CARD, INTR_REPLACE_CARD_BY_TOKEN, INTR_RETRIEVE_DOCUMENT_FOR_DISPUTE, INTR_SET_ACTIVE_ENV_NAME, INTR_SET_ACTIVE_THEME_BY_NAME, INTR_SET_MOCK_MODE, INTR_START_DISPUTE, INTR_SUBMIT_ANS_DISPUTE, INTR_SUBMIT_DISPUTE, INTR_UNLOCK_CARD_BY_TOKEN, INTR_UPDATE_PIN_BY_CARD_TOKEN, INTR_UPLOAD_DOCUMENT_FOR_DISPUTE, INVALID_ACCOUNT_HOLDER, INVALID_CARD_DETAILS_CUI_AUTH_TOKEN, INVALID_CUI_AUTH_TOKEN, ITF_ACCOUNT_REPOSITORY, ITF_ANALYTICS_SERVICE, ITF_AUTHENTICATED_HTTP_CLIENT, ITF_AUTH_CREDENTIAL_SERVICE, ITF_AUTH_CREDS_MESSAGE_SERVICE, ITF_AUTH_SERVICE, ITF_CACHE_SERVICE, ITF_CARD_REPOSITORY, ITF_DISPUTES_REPOSITORY, ITF_ICONS_REPOSITORY, ITF_KYC, ITF_MONEY_MOVEMENT, ITF_PERSISTED_CACHE_SERVICE, ITF_REGISTRY_SERVICE, ITF_SESSION_SERVICE, ITF_SSO_ACCESS_TOKEN_SERVICE, ITF_STATEMENTS, ITF_STATEMENT_ASSET, ITF_THEME_REPOSITORY, ITF_TRANSACTIONS, ITF_USERS, ITF_WLA_SERVICE, InitiateFunding, InterestTierResponseTypeEnum, IsMockModeEnabled, KycVerificationRequestIdentifierTypeEnum, LIST_OF_ENABLED_COMPONENTS, LOADING_SSN, LocalStorageCacheService, LockCardByToken, LoyaltyTier, MOCK_AMOUNT_STEP_RESPONSE, MOCK_CUSTOMER_ENDPOINT, MOCK_DELETE_DOCUMENTS_RESPONSE, MOCK_DISPUTE_ID, MOCK_DOCUMENT1, MOCK_DOCUMENT2, MOCK_DOCUMENT_ID1, MOCK_DOCUMENT_ID2, MOCK_FRAUD_STEP_RESPONSE, MOCK_GET_ALL_STEPS_RESPONSE, MOCK_INVALID_TRANSACTION_TOKEN, MOCK_RECOGNIZED_TRANSACTION_RESPONSE, MOCK_RETRIEVE_DOCUMENTS_RESPONSE, MOCK_START_DISPUTE_RESPONSE, MOCK_STATEMENT_ASSET_SIGNED_URL_PDF, MOCK_STEP1_RESPONSE, MOCK_STEP_COMPLETION_RESPONSE, MOCK_SUBMIT_DISPUTE_RESPONSE, MOCK_TRANSFORMED_ERROR_RESPONSE, MOCK_UPLOAD_DOCUMENTS_RESPONSE, MockAccountRepository, MockAnalyticsService, MockAuthCredentialService, MockAuthService, MockCacheService, MockCardRepository, MockComponentsRepository, MockDisputesRepository, MockFeatureFlagService, MockGetEnvConfigValueByName, MockMoneyMovementRepository, MockPersistedCacheService, MockRegistryService, MockSessionService, MockThemeRepository, MockTransactionsRepository, MockiUsersRepository, MqSDKError, NAME_ISSUE_SSN, NOT_OK_CUI_AUTH_TOKEN, NOT_OK_DPOP_TOKEN, OBAC_ISSUE_SSN, OnboardingStatus, OriginationDirection, OriginationTransferReasonCode, OriginationTransferScheme, PushRegistrationRequestDevicePlatformEnum, PutUpdateUser, REFRESHED_CUI_AUTH_TOKEN, REPOSITORY_METHOD_FAILING_SHORT_CODE, ReactNativeAsyncStorageCacheService, RegisterCleanupHandler, RemoveSourceCard, ReplaceCardByToken, ReplaceCardRequestReasonEnum, RestAuthService, RestComponentsRepository, RestKycRepository, RestUsersRepository, RestWlaService, RetrieveDocumentForDispute, RevokeConsentStatus, SESSION_TTL, MOCK_USER as STATEMENTS_MOCK_USER, SUSPENDED_CARD_ACTIONS, SessionStorageFeatureFlagService, SetActiveEnvName, SetActiveThemeByName, SetMockMode, ShippingMethodEnum, StandardizedError, StartDispute, StatementAssetStateEnum, StubFeatureFlagService, SubmitAnswerForDisputeQuestion, SubmitDispute, TERMINATED_CARD_ACTIONS, TEST_ACTIVE_CARD, TEST_ACTIVE_CARD_VIRTUAL, TEST_CARD, TEST_CARDHOLDER_VERIFICATION_METHOD, TEST_CARD_ACTIONS, TEST_CARD_PRODUCT_TOKEN, TEST_CARD_TOKEN, TEST_CARD_TOKEN_INVALID, TEST_CARD_TOKEN_IS_ACTIVE, TEST_CARD_TOKEN_IS_ACTIVE_VIRTUAL, TEST_CARD_TOKEN_IS_EXPIRED, TEST_CARD_TOKEN_IS_SUSPENDED, TEST_CARD_TOKEN_IS_SUSPENDED_VIRTUAL, TEST_CARD_TOKEN_IS_TERMINATED, TEST_CARD_TOKEN_IS_UNACTIVATED, TEST_CARD_TOKEN_IS_VIRTUAL, TEST_CARD_TOKEN_LIMIT_EXCEEDED, TEST_CARD_TOKEN_LOADING, TEST_CLIENT_ID, TEST_CVV_NUMBER, TEST_DEPOSIT_ACCOUNT, TEST_EXPIRATION, TEST_OK_RESPONSE, TEST_PIN, TEST_SESSION_ID, TEST_SOURCE_CARD, TEST_SOURCE_CARDS_RESPONSE, TEST_SUSPENDED_CARD_VIRTUAL, TEST_THEME_NAME, TEST_THEME_OBJECT, TEST_USER_TOKEN, TEST_WEAK_PINS, TransactionDetailResponseIconTypeEnum, TransactionDetailsBannerType, TransactionDirection, TransactionDisputeStatus, TransactionRecordStatus, TransactionStatus, TransactionType, TransferStatus, UnlockCardByToken, UpdatePinByCardToken, UploadDocumentForDispute, UserEntity, UserRole, VALID_CUI_AUTH_TOKEN, VALID_CUI_USER_RESPONSE, VALID_DPOP_TOKEN, VALID_OAUTH_TOKEN, VALID_PROGRAM_SHORT_CODE, VALID_USER_TOKEN_HASH, VanillaSessionService, WindowCacheService, WlaIocModule, WlaSdkError, WlaUserStatus, accountsIOCModule, authIOCModule, bookTransfer, cardsIOCModule, checkAndRefreshAuthToken, commonIOCModule, componentsIOCModule, convertObjKeysToCamelCase, convertObjKeysToLowerCamelCase, createOriginationTransfer, createProofToken, createWlaCard, createWlaExternalAccount, deepMergeThemeObject, deleteRegistrationForPushNotifications, development_exports as development, disputesIOCModule, envConfigIOCModule, featureFlagIsEnabled, featureFlagsIOCModule, formatDateForApi, generateAuthKeyPair, generateStatementsDateQueries, getAccountTransactions, getActiveIocContainer, getAuthKeyPair, getCachedAuthApiEndpoint, getCachedAuthToken, getCachedAuthTokenExpiration, getCardholderContext, getClientId, getConsentById, getConsents, getExternalAccount, getExternalAccountList, getMockUpdatedUserRequestToCreateResponse, getMockUserRequestToCreateResponse, getOfferDetails, getOffers, getOutagesByToken, getOutagesList, getSessionId, getSsoAccessTokenHandler, getTransferByToken, getTransfers, getUserProgram, getUserTokenHash, getWlaAccountDetails, getWlaCardByToken, getWlaFaqs, getWlaRewardSummaries, getWlaTransactionByToken, getWlaUserProfile, handleGetStatementAsset, handleGetStatements, iAccountRepository, iAnalyticsService, iAuthCredentialService, iAuthCredsMessageService, iAuthService, iAuthenticatedHttpClient, iCacheService, iCardRepository, iComponentsRepository, iDisputesRepository, iFeatureFlagService, iGetEnvConfigValueByName, iIconsRepository, iKycRepository, iMoneyMovementRepository, iPersistedCacheService, iRegistryService, iSessionService, iSsoAccessTokenService, iStatementsRepository, iThemeRepository, iTransactionsRepository, iUsersRepository, iconsIOCModule, isComponentEnabled, kycIOCModule, loadEnabledComponentsByShortCode, loadFeatureFlags, localhost_exports as localhost, markAccountActivated, markAccountVerified, mockAccountBalances, mockAccountHolderGroup, mockAccountsIOCModule, mockAnalyticsIOCModule, mockAuthIOCModule, mockCardsIOCModule, mockCommonIOCModule, mockCreateUserRequest, mockCreatedUserResponse, mockDepositAccountJson, mockDisputesIOCModule, mockEnvConfigIOCModule, mockFeatureFlagIOCModule, mockInvalidCreateUserRequest, mockInvalidKycVerificationRequest, mockKycVerificationRequest, mockKycVerificationResponse, mockMode_exports as mockMode, mockMoneyMovementIOCModule, mockSourceCards, mockThemesIOCModule, mockUpdateUserResponse, mockUsersIOCModule, moneyMovementIOCModule, mswAccountHandlers, mswAnalyticsHandlers, mswAuthHandlers, mswCardsHandlers, mswComponentsHandlers, mswDisputesHandlers, mswKycHandlers, mswSourceCardsHandler, mswStatementsHandlers, mswTransactionsHandlers, mswUsersHandlers, postCreateUser, postVerifyKyc, production_exports as production, qa_exports as qa, reactNativeCommonIOCModule, reactNativeFeatureFlagsIOCModule, reactNativeContainer as reactNativeSdkJsContainer, registerDeviceForPushNotifications, replaceWlaCard, revokeConsent, sandbox_exports as sandbox, container as sdkJsContainer, searchAtms, setActiveIocContainer, setAuthKeyPair, setAuthParams, setCachedAuthApiEndpoint, setCachedAuthToken, setSsoAccessTokenHandler, setWlaCardPin, setWlaConfig, statementsIOCModule, themesIOCModule, toDateType, trackEvent, transactionsIOCModule, updateConsentStatus, updateExternalAccount, usersIOCModule, verifyExternalAccount, wlaReactNativeContainer as wlaReactNativeSdkJsContainer }; /*! Bundled license information:
21151
+ export { ACCOUNT_CLOSED_CUI_AUTH_TOKEN, ACCOUNT_LIMITED_CUI_AUTH_TOKEN, ACCOUNT_LOADING_CUI_AUTH_TOKEN, ACCOUNT_SUSPENDED_CUI_AUTH_TOKEN, ACCOUNT_UNVERIFIED_CUI_AUTH_TOKEN, ACTIVE_CARD_ACTIONS, ACTIVE_IOC_CONTAINER, ADDRESS_ISSUE_SSN, AUTH_REFRESH_INTERVAL_ID, AccountBalancesEntity, AccountHolderGroupEntity, AccountType, ActivateCardByTokenOrPan, AddSourceCard, AtmLocationAccessFeesEnum, AtmLocationAvailabilityEnum, AtmLocationDistanceUnitEnum, AtmLocationHandicapAccessibleEnum, AtmLocationHasSharedDepositEnum, AtmLocationIsSurchargeFreeAllianceEnum, AtmLocationLocationTypeEnum, AtmLocationSupportsContactLessEnum, AtmLocationSurchargeFreeAllianceNetworkEnum, BAD_GENERAL_SSN, BannerTypeEnum, BookTransferResponseStatusEnum, BrowserMessageService, CUI_ENABLED_SHORT_CODE, CardEntity, CardFulfillmentRequestCardFulfillmentReasonEnum, CardStates, CardholderContextEntity, CardholderVerificationMethods, CleanupOnUnload, ConsentAction, ConsentPaymentScope, ConsentPaymentType, ConsentPermissionType, ConsentScope, ConsentStatus, CreateUserRequestIdentificationsInnerTypeEnum, CreateUserResponseStatusEnum, Currency, DEFAULT_THEME, DEPOSIT_ACCOUNTS_TERMINATED_CUI_AUTH_TOKEN, DOB_ISSUE_SSN, DeleteDocumentForDispute, DepositAccountEntity, DownloadDocumentForDispute, DpopAuthCredentialService, EMPTY_DEPOSIT_ACCOUNTS_CUI_AUTH_TOKEN, ExternalAccountStatus2 as ExternalAccountStatus, FFLAGS_SESSION_STORAGE_KEY, FaqParagraphTypeEnum, FormField, GaMeasurementAnalyticsService, GetAccountBalances, GetAccountHolderGroup, GetActiveEnvName, GetActiveTheme, GetAllStepsOfDispute, GetCardByToken, GetCardsByUserToken, GetDepositAccounts, GetEnvConfigValueByName, GetIconsByName, GetLanguageCode, GetPinByCardToken, GetShowpanByCardToken, GetSourceCards, GetStatementAsset, GetStatements, GetStepOfDisputeByStepId, GetTransactionDetails, GetTransactions, GetUser, INTR_ACTIVATE_CARD_BY_TOKEN_OR_PAN, INTR_ADD_SOURCE_CARD, INTR_CLEANUP_ON_UNLOAD, INTR_DELETE_DOCUMENT_FOR_DISPUTE, INTR_DOWNLOAD_DOCUMENT_FOR_DISPUTE, INTR_GET_ACCT_BALANCE_BY_TOKEN, INTR_GET_ACCT_HOLDER_GRP_BY_TOKEN, INTR_GET_ACTIVE_ENV_NAME, INTR_GET_ACTIVE_THEME, INTR_GET_ALL_STEPS_OF_DISPUTE, INTR_GET_CARDS_BY_USER_TOKEN, INTR_GET_CARD_BY_TOKEN, INTR_GET_CLIENT_ID, INTR_GET_DEPOSIT_ACCT_BY_TOKEN, INTR_GET_ENV_CONFIG_VALUE_BY_NAME, INTR_GET_ICONS, INTR_GET_LANGUAGE_CODE, INTR_GET_PIN_BY_CARD_TOKEN, INTR_GET_SESSION_ID, INTR_GET_SHOWPAN_BY_CARD_TOKEN, INTR_GET_SOURCE_CARDS, INTR_GET_STATEMENTS, INTR_GET_STATEMENT_ASSET, INTR_GET_STEP_OF_DISPUTE_BY_STEP_ID, INTR_GET_TRANSACTIONS, INTR_GET_TRANSACTIONS_V2, INTR_GET_TRANSACTION_DETAILS, INTR_GET_USER, INTR_INITIATE_FUNDING, INTR_IS_MOCK_MODE_ENABLED, INTR_LOCK_CARD_BY_TOKEN, INTR_POST_CREATE_USER, INTR_PUT_UPDATE_USER, INTR_REGISTER_CLEANUP_HANDLER, INTR_REMOVE_SOURCE_CARD, INTR_REPLACE_CARD_BY_TOKEN, INTR_RETRIEVE_DOCUMENT_FOR_DISPUTE, INTR_SET_ACTIVE_ENV_NAME, INTR_SET_ACTIVE_THEME_BY_NAME, INTR_SET_MOCK_MODE, INTR_START_DISPUTE, INTR_SUBMIT_ANS_DISPUTE, INTR_SUBMIT_DISPUTE, INTR_UNLOCK_CARD_BY_TOKEN, INTR_UPDATE_PIN_BY_CARD_TOKEN, INTR_UPLOAD_DOCUMENT_FOR_DISPUTE, INVALID_ACCOUNT_HOLDER, INVALID_CARD_DETAILS_CUI_AUTH_TOKEN, INVALID_CUI_AUTH_TOKEN, ITF_ACCOUNT_REPOSITORY, ITF_ANALYTICS_SERVICE, ITF_AUTHENTICATED_HTTP_CLIENT, ITF_AUTH_CREDENTIAL_SERVICE, ITF_AUTH_CREDS_MESSAGE_SERVICE, ITF_AUTH_SERVICE, ITF_CACHE_SERVICE, ITF_CARD_REPOSITORY, ITF_DISPUTES_REPOSITORY, ITF_ICONS_REPOSITORY, ITF_KYC, ITF_MONEY_MOVEMENT, ITF_PERSISTED_CACHE_SERVICE, ITF_REGISTRY_SERVICE, ITF_SESSION_SERVICE, ITF_SSO_ACCESS_TOKEN_SERVICE, ITF_STATEMENTS, ITF_STATEMENT_ASSET, ITF_THEME_REPOSITORY, ITF_TRANSACTIONS, ITF_USERS, ITF_WLA_SERVICE, InitiateFunding, InterestTierResponseTypeEnum, IsMockModeEnabled, KycVerificationRequestIdentifierTypeEnum, LIST_OF_ENABLED_COMPONENTS, LOADING_SSN, LocalStorageCacheService, LockCardByToken, LoyaltyTier, MOCK_AMOUNT_STEP_RESPONSE, MOCK_CUSTOMER_ENDPOINT, MOCK_DELETE_DOCUMENTS_RESPONSE, MOCK_DISPUTE_ID, MOCK_DOCUMENT1, MOCK_DOCUMENT2, MOCK_DOCUMENT_ID1, MOCK_DOCUMENT_ID2, MOCK_FRAUD_STEP_RESPONSE, MOCK_GET_ALL_STEPS_RESPONSE, MOCK_INVALID_TRANSACTION_TOKEN, MOCK_RECOGNIZED_TRANSACTION_RESPONSE, MOCK_RETRIEVE_DOCUMENTS_RESPONSE, MOCK_START_DISPUTE_RESPONSE, MOCK_STATEMENT_ASSET_SIGNED_URL_PDF, MOCK_STEP1_RESPONSE, MOCK_STEP_COMPLETION_RESPONSE, MOCK_SUBMIT_DISPUTE_RESPONSE, MOCK_TRANSFORMED_ERROR_RESPONSE, MOCK_UPLOAD_DOCUMENTS_RESPONSE, MockAccountRepository, MockAnalyticsService, MockAuthCredentialService, MockAuthService, MockCacheService, MockCardRepository, MockComponentsRepository, MockDisputesRepository, MockFeatureFlagService, MockGetEnvConfigValueByName, MockMoneyMovementRepository, MockPersistedCacheService, MockRegistryService, MockSessionService, MockThemeRepository, MockTransactionsRepository, MockiUsersRepository, MqSDKError, NAME_ISSUE_SSN, NOT_OK_CUI_AUTH_TOKEN, NOT_OK_DPOP_TOKEN, OBAC_ISSUE_SSN, OnboardingStatus, OriginationDirection, OriginationTransferReasonCode, OriginationTransferScheme, PushRegistrationRequestDevicePlatformEnum, PutUpdateUser, REFRESHED_CUI_AUTH_TOKEN, REPOSITORY_METHOD_FAILING_SHORT_CODE, ReactNativeAsyncStorageCacheService, RegisterCleanupHandler, RemoveSourceCard, ReplaceCardByToken, ReplaceCardRequestReasonEnum, RestAuthService, RestComponentsRepository, RestKycRepository, RestUsersRepository, RestWlaService, RetrieveDocumentForDispute, RevokeConsentStatus, SESSION_TTL, MOCK_USER as STATEMENTS_MOCK_USER, SUSPENDED_CARD_ACTIONS, SessionStorageFeatureFlagService, SetActiveEnvName, SetActiveThemeByName, SetMockMode, ShippingMethodEnum, StandardizedError, StartDispute, StatementAssetStateEnum, StubFeatureFlagService, SubmitAnswerForDisputeQuestion, SubmitDispute, TERMINATED_CARD_ACTIONS, TEST_ACTIVE_CARD, TEST_ACTIVE_CARD_VIRTUAL, TEST_CARD, TEST_CARDHOLDER_VERIFICATION_METHOD, TEST_CARD_ACTIONS, TEST_CARD_PRODUCT_TOKEN, TEST_CARD_TOKEN, TEST_CARD_TOKEN_INVALID, TEST_CARD_TOKEN_IS_ACTIVE, TEST_CARD_TOKEN_IS_ACTIVE_VIRTUAL, TEST_CARD_TOKEN_IS_EXPIRED, TEST_CARD_TOKEN_IS_SUSPENDED, TEST_CARD_TOKEN_IS_SUSPENDED_VIRTUAL, TEST_CARD_TOKEN_IS_TERMINATED, TEST_CARD_TOKEN_IS_UNACTIVATED, TEST_CARD_TOKEN_IS_VIRTUAL, TEST_CARD_TOKEN_LIMIT_EXCEEDED, TEST_CARD_TOKEN_LOADING, TEST_CLIENT_ID, TEST_CVV_NUMBER, TEST_DEPOSIT_ACCOUNT, TEST_EXPIRATION, TEST_OK_RESPONSE, TEST_PIN, TEST_SESSION_ID, TEST_SOURCE_CARD, TEST_SOURCE_CARDS_RESPONSE, TEST_SUSPENDED_CARD_VIRTUAL, TEST_THEME_NAME, TEST_THEME_OBJECT, TEST_USER_TOKEN, TEST_WEAK_PINS, TransactionDetailResponseIconTypeEnum, TransactionDetailsBannerType, TransactionDirection, TransactionDisputeStatus, TransactionRecordStatus, TransactionStatus, TransactionType, TransferStatus, UnlockCardByToken, UpdatePinByCardToken, UploadDocumentForDispute, UserEntity, UserRole, VALID_CUI_AUTH_TOKEN, VALID_CUI_USER_RESPONSE, VALID_DPOP_TOKEN, VALID_OAUTH_TOKEN, VALID_PROGRAM_SHORT_CODE, VALID_USER_TOKEN_HASH, VanillaSessionService, WindowCacheService, WlaIocModule, WlaSdkError, WlaUserStatus, accountsIOCModule, authIOCModule, bookTransfer, cardsIOCModule, checkAndRefreshAuthToken, commonIOCModule, componentsIOCModule, convertObjKeysToCamelCase, convertObjKeysToLowerCamelCase, createOriginationTransfer, createProofToken, createWlaCard, createWlaExternalAccount, deepMergeThemeObject, deleteRegistrationForPushNotifications, development_exports as development, disputesIOCModule, envConfigIOCModule, featureFlagIsEnabled, featureFlagsIOCModule, formatDateForApi, generateAuthKeyPair, generateStatementsDateQueries, getAccountTransactions, getActiveIocContainer, getAuthKeyPair, getCachedAuthApiEndpoint, getCachedAuthApiHeadersResolver, getCachedAuthToken, getCachedAuthTokenExpiration, getCardholderContext, getClientId, getConsentById, getConsents, getExternalAccount, getExternalAccountList, getMockUpdatedUserRequestToCreateResponse, getMockUserRequestToCreateResponse, getOfferDetails, getOffers, getOutagesByToken, getOutagesList, getSessionId, getSsoAccessTokenHandler, getTransferByToken, getTransfers, getUserProgram, getUserTokenHash, getWlaAccountDetails, getWlaCardByToken, getWlaFaqs, getWlaRewardSummaries, getWlaTransactionByToken, getWlaUserProfile, handleGetStatementAsset, handleGetStatements, iAccountRepository, iAnalyticsService, iAuthCredentialService, iAuthCredsMessageService, iAuthService, iAuthenticatedHttpClient, iCacheService, iCardRepository, iComponentsRepository, iDisputesRepository, iFeatureFlagService, iGetEnvConfigValueByName, iIconsRepository, iKycRepository, iMoneyMovementRepository, iPersistedCacheService, iRegistryService, iSessionService, iSsoAccessTokenService, iStatementsRepository, iThemeRepository, iTransactionsRepository, iUsersRepository, iconsIOCModule, isComponentEnabled, kycIOCModule, loadEnabledComponentsByShortCode, loadFeatureFlags, localhost_exports as localhost, markAccountActivated, markAccountVerified, mockAccountBalances, mockAccountHolderGroup, mockAccountsIOCModule, mockAnalyticsIOCModule, mockAuthIOCModule, mockCardsIOCModule, mockCommonIOCModule, mockCreateUserRequest, mockCreatedUserResponse, mockDepositAccountJson, mockDisputesIOCModule, mockEnvConfigIOCModule, mockFeatureFlagIOCModule, mockInvalidCreateUserRequest, mockInvalidKycVerificationRequest, mockKycVerificationRequest, mockKycVerificationResponse, mockMode_exports as mockMode, mockMoneyMovementIOCModule, mockSourceCards, mockThemesIOCModule, mockUpdateUserResponse, mockUsersIOCModule, moneyMovementIOCModule, mswAccountHandlers, mswAnalyticsHandlers, mswAuthHandlers, mswCardsHandlers, mswComponentsHandlers, mswDisputesHandlers, mswKycHandlers, mswSourceCardsHandler, mswStatementsHandlers, mswTransactionsHandlers, mswUsersHandlers, postCreateUser, postVerifyKyc, production_exports as production, qa_exports as qa, reactNativeCommonIOCModule, reactNativeFeatureFlagsIOCModule, reactNativeContainer as reactNativeSdkJsContainer, registerDeviceForPushNotifications, replaceWlaCard, revokeConsent, sandbox_exports as sandbox, container as sdkJsContainer, searchAtms, setActiveIocContainer, setAuthKeyPair, setAuthParams, setCachedAuthApiEndpoint, setCachedAuthApiHeadersResolver, setCachedAuthToken, setSsoAccessTokenHandler, setWlaCardPin, setWlaConfig, statementsIOCModule, themesIOCModule, toDateType, trackEvent, transactionsIOCModule, updateConsentStatus, updateExternalAccount, usersIOCModule, verifyExternalAccount, wlaReactNativeContainer as wlaReactNativeSdkJsContainer }; /*! Bundled license information:
21065
21152
 
21066
21153
  @bundled-es-modules/statuses/index-esm.js:
21067
21154
  (*! Bundled license information:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marqeta/ux-toolkit-sdk-javascript",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",