@moneylion/react-native-offer-carousel 1.0.0 → 1.0.1
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/README.md +44 -0
- package/lib/commonjs/capabilities/configuration/src/brands/checkVisualEligibility.js +30 -0
- package/lib/commonjs/capabilities/configuration/src/brands/checkVisualEligibility.js.map +1 -0
- package/lib/commonjs/capabilities/configuration/src/brands/createDerivedBrands.js +40 -0
- package/lib/commonjs/capabilities/configuration/src/brands/createDerivedBrands.js.map +1 -0
- package/lib/commonjs/capabilities/configuration/src/brands/index.js +20 -0
- package/lib/commonjs/capabilities/configuration/src/brands/index.js.map +1 -0
- package/lib/commonjs/capabilities/configuration/src/brands/types.js +13 -0
- package/lib/commonjs/capabilities/configuration/src/brands/types.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/domain/third-party-search/index.js +17 -0
- package/lib/commonjs/capabilities/core/src/domain/third-party-search/index.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.js +33 -0
- package/lib/commonjs/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/index.js +17 -0
- package/lib/commonjs/capabilities/core/src/index.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/CnfContext.js +18 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/CnfContext.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/App.js +18 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/App.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Brand.js +87 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Brand.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Configuration.js +41 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Configuration.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Request.js +21 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Request.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Session.js +12 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Session.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Signals.js +41 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Signals.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Subaccount.js +26 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/Subaccount.js.map +1 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/index.js +83 -0
- package/lib/commonjs/capabilities/core/src/system/cnfContext/schemas/index.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/api/offerCatalogApi.js +131 -0
- package/lib/commonjs/capabilities/offer-catalog/src/api/offerCatalogApi.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/index.js +65 -0
- package/lib/commonjs/capabilities/offer-catalog/src/index.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/types/offerCatalogSchema.js +2 -0
- package/lib/commonjs/capabilities/offer-catalog/src/types/offerCatalogSchema.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/arrayToMarkdownList.js +11 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/arrayToMarkdownList.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/contextUtil.js +70 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/contextUtil.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/errorUtil.js +21 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/errorUtil.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/formatUtils.js +161 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/formatUtils.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/getOfferUrl.js +44 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/getOfferUrl.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.js +78 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/boolean.js +22 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/boolean.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.js +60 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/common.js +20 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/common.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.js +62 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.js +32 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.js +31 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currency.js +22 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currency.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.js +46 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.js +208 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.js +20 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.js +24 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.js +21 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.js +40 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/index.js +204 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/index.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.js +35 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.js +43 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/percentage.js +21 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/percentage.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.js +32 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.js +76 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.js +69 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.js +23 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.js +47 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.js +72 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.js +23 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.js +29 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.js +53 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.js +46 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.js +26 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.js +83 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.js +28 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.js +28 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.js +21 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.js +30 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/index.js +48 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/index.js.map +1 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/types.js +6 -0
- package/lib/commonjs/capabilities/offer-catalog/src/utils/stats/types.js.map +1 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.js +6 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.js.map +1 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.js +2 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.js.map +1 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/types/PublicApi.d.js +2 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/types/PublicApi.d.js.map +1 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/types/index.js +6 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/types/index.js.map +1 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.js +74 -0
- package/lib/commonjs/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.js +61 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/components.js +143 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/components.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/index.js +54 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/index.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.js +122 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/index.js +13 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/index.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/index.js +110 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/index.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.js +91 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js +44 -0
- package/lib/commonjs/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/index.js +28 -0
- package/lib/commonjs/capabilities/ui/elements/src/index.js.map +1 -0
- package/lib/commonjs/capabilities/ui/elements/src/offerCardAttributes.js +23 -0
- package/lib/commonjs/capabilities/ui/elements/src/offerCardAttributes.js.map +1 -0
- package/lib/commonjs/components/Cards/VideosCard/VideosCard.js +1 -1
- package/lib/commonjs/components/Common/BaseOfferCard/Stat/Stat.js +1 -1
- package/lib/commonjs/components/Common/BaseOfferCard/Stat/Stat.js.map +1 -1
- package/lib/commonjs/components/Common/BaseOfferCard/index.js +4 -4
- package/lib/commonjs/components/Common/BaseOfferCard/index.js.map +1 -1
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/statsBuilder.js +1 -1
- package/lib/commonjs/components/Layouts/DefaultOfferCard/statsBuilder.js +1 -1
- package/lib/commonjs/components/Modal/DescriptionPoints.js +3 -3
- package/lib/commonjs/components/Modal/DescriptionPoints.js.map +1 -1
- package/lib/commonjs/components/Modal/Disclaimer.js +1 -1
- package/lib/commonjs/components/Modal/Disclaimer.js.map +1 -1
- package/lib/commonjs/components/MoneyLionOfferCarousel.js +1 -1
- package/lib/commonjs/config/mocks/cnfContext.js +143 -0
- package/lib/commonjs/config/mocks/cnfContext.js.map +1 -0
- package/lib/commonjs/pageData.js +1 -1
- package/lib/commonjs/services/getProductTypesByQuery.js +1 -1
- package/lib/commonjs/utils/formatOfferUrl.js +1 -1
- package/lib/commonjs/utils/getOffersByProductTypes.js +2 -2
- package/lib/module/capabilities/configuration/src/brands/checkVisualEligibility.js +24 -0
- package/lib/module/capabilities/configuration/src/brands/checkVisualEligibility.js.map +1 -0
- package/lib/module/capabilities/configuration/src/brands/createDerivedBrands.js +34 -0
- package/lib/module/capabilities/configuration/src/brands/createDerivedBrands.js.map +1 -0
- package/lib/module/capabilities/configuration/src/brands/index.js +3 -0
- package/lib/module/capabilities/configuration/src/brands/index.js.map +1 -0
- package/lib/module/capabilities/configuration/src/brands/types.js +6 -0
- package/lib/module/capabilities/configuration/src/brands/types.js.map +1 -0
- package/lib/module/capabilities/core/src/domain/third-party-search/index.js +2 -0
- package/lib/module/capabilities/core/src/domain/third-party-search/index.js.map +1 -0
- package/lib/module/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.js +26 -0
- package/lib/module/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.js.map +1 -0
- package/lib/module/capabilities/core/src/index.js +2 -0
- package/lib/module/capabilities/core/src/index.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/CnfContext.js +12 -0
- package/lib/module/capabilities/core/src/system/cnfContext/CnfContext.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/App.js +12 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/App.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Brand.js +81 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Brand.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Configuration.js +35 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Configuration.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Request.js +15 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Request.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Session.js +6 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Session.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Signals.js +35 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Signals.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Subaccount.js +20 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/Subaccount.js.map +1 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/index.js +8 -0
- package/lib/module/capabilities/core/src/system/cnfContext/schemas/index.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/api/offerCatalogApi.js +122 -0
- package/lib/module/capabilities/offer-catalog/src/api/offerCatalogApi.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/index.js +5 -0
- package/lib/module/capabilities/offer-catalog/src/index.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/types/offerCatalogSchema.js +2 -0
- package/lib/module/capabilities/offer-catalog/src/types/offerCatalogSchema.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/arrayToMarkdownList.js +4 -0
- package/lib/module/capabilities/offer-catalog/src/utils/arrayToMarkdownList.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/contextUtil.js +58 -0
- package/lib/module/capabilities/offer-catalog/src/utils/contextUtil.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/errorUtil.js +15 -0
- package/lib/module/capabilities/offer-catalog/src/utils/errorUtil.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/formatUtils.js +151 -0
- package/lib/module/capabilities/offer-catalog/src/utils/formatUtils.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/getOfferUrl.js +37 -0
- package/lib/module/capabilities/offer-catalog/src/utils/getOfferUrl.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.js +71 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/boolean.js +15 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/boolean.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.js +59 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/common.js +13 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/common.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.js +61 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.js +25 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.js +30 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currency.js +15 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currency.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.js +39 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.js +207 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.js +13 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.js +23 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.js +14 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.js +39 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/index.js +20 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/index.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.js +28 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.js +42 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/percentage.js +14 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/percentage.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.js +31 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.js +69 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.js +68 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.js +16 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.js +40 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.js +71 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.js +16 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.js +28 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.js +46 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.js +45 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.js +19 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.js +82 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.js +21 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.js +27 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.js +14 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.js +29 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/index.js +41 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/index.js.map +1 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/types.js +2 -0
- package/lib/module/capabilities/offer-catalog/src/utils/stats/types.js.map +1 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.js +2 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.js.map +1 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.js +2 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.js.map +1 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/types/PublicApi.d.js +2 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/types/PublicApi.d.js.map +1 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/types/index.js +2 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/types/index.js.map +1 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.js +65 -0
- package/lib/module/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.js +50 -0
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/components.js +134 -0
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/components.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/index.js +46 -0
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/index.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.js +115 -0
- package/lib/module/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/components/index.js +2 -0
- package/lib/module/capabilities/ui/elements/src/components/index.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/components/thumbor/index.js +103 -0
- package/lib/module/capabilities/ui/elements/src/components/thumbor/index.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.js +86 -0
- package/lib/module/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js +43 -0
- package/lib/module/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/index.js +3 -0
- package/lib/module/capabilities/ui/elements/src/index.js.map +1 -0
- package/lib/module/capabilities/ui/elements/src/offerCardAttributes.js +16 -0
- package/lib/module/capabilities/ui/elements/src/offerCardAttributes.js.map +1 -0
- package/lib/module/components/Cards/VideosCard/VideosCard.js +1 -1
- package/lib/module/components/Common/BaseOfferCard/Stat/Stat.js +1 -2
- package/lib/module/components/Common/BaseOfferCard/Stat/Stat.js.map +1 -1
- package/lib/module/components/Common/BaseOfferCard/index.js +3 -4
- package/lib/module/components/Common/BaseOfferCard/index.js.map +1 -1
- package/lib/module/components/Layouts/CreditCardOfferCard/statsBuilder.js +1 -1
- package/lib/module/components/Layouts/CreditCardOfferCard/statsBuilder.js.map +1 -1
- package/lib/module/components/Layouts/DefaultOfferCard/statsBuilder.js +1 -1
- package/lib/module/components/Layouts/DefaultOfferCard/statsBuilder.js.map +1 -1
- package/lib/module/components/Modal/DescriptionPoints.js +2 -2
- package/lib/module/components/Modal/DescriptionPoints.js.map +1 -1
- package/lib/module/components/Modal/Disclaimer.js +1 -1
- package/lib/module/components/Modal/Disclaimer.js.map +1 -1
- package/lib/module/components/MoneyLionOfferCarousel.js +1 -1
- package/lib/module/components/MoneyLionOfferCarousel.js.map +1 -1
- package/lib/module/config/mocks/cnfContext.js +137 -0
- package/lib/module/config/mocks/cnfContext.js.map +1 -0
- package/lib/module/pageData.js +1 -1
- package/lib/module/pageData.js.map +1 -1
- package/lib/module/services/getProductTypesByQuery.js +1 -1
- package/lib/module/services/getProductTypesByQuery.js.map +1 -1
- package/lib/module/utils/formatOfferUrl.js +1 -1
- package/lib/module/utils/formatOfferUrl.js.map +1 -1
- package/lib/module/utils/getOffersByProductTypes.js +2 -2
- package/lib/module/utils/getOffersByProductTypes.js.map +1 -1
- package/lib/typescript/builder/builder.d.ts +2 -2
- package/lib/typescript/builder/builder.d.ts.map +1 -1
- package/lib/typescript/src/capabilities/configuration/src/brands/checkVisualEligibility.d.ts.map +1 -0
- package/lib/typescript/{capabilities → src/capabilities}/configuration/src/brands/createDerivedBrands.d.ts +1 -1
- package/lib/typescript/src/capabilities/configuration/src/brands/createDerivedBrands.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/configuration/src/brands/index.d.ts.map +1 -0
- package/lib/typescript/{capabilities → src/capabilities}/configuration/src/brands/types.d.ts +1 -1
- package/lib/typescript/src/capabilities/configuration/src/brands/types.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/domain/third-party-search/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/CnfContext.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/App.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Configuration.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Request.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Session.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Signals.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/Subaccount.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/core/src/system/cnfContext/schemas/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/types/offerCatalogSchema.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/arrayToMarkdownList.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/contextUtil.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/errorUtil.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/formatUtils.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/getOfferUrl.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/boolean.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/common.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/currency.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offer-catalog/src/utils/stats/types.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/offers/pipeline/src/sources/ratetables/types/index.d.ts.map +1 -0
- package/lib/typescript/{capabilities → src/capabilities}/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts +9 -9
- package/lib/typescript/src/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.d.ts.map +1 -0
- package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/MarkdownText/components.d.ts +1 -1
- package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/components.d.ts.map +1 -0
- package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/MarkdownText/index.d.ts +1 -1
- package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/ui/elements/src/components/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/ui/elements/src/components/thumbor/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/ui/elements/src/index.d.ts.map +1 -0
- package/lib/typescript/src/capabilities/ui/elements/src/offerCardAttributes.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Stat/Stat.d.ts +5 -1
- package/lib/typescript/src/components/Common/BaseOfferCard/Stat/Stat.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts +2 -2
- package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts.map +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts +1 -1
- package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts.map +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts +1 -1
- package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts +1 -1
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts +2 -2
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts +1 -1
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts +3 -3
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts.map +1 -1
- package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts +1 -1
- package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts.map +1 -1
- package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts +1 -1
- package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts.map +1 -1
- package/lib/typescript/src/config/mocks/cnfContext.d.ts.map +1 -0
- package/lib/typescript/src/context/EventHandlerProvider.d.ts +1 -1
- package/lib/typescript/src/context/EventHandlerProvider.d.ts.map +1 -1
- package/lib/typescript/src/pageData.d.ts +2 -2
- package/lib/typescript/src/pageData.d.ts.map +1 -1
- package/lib/typescript/src/services/getDynamicOffers.d.ts +3 -3
- package/lib/typescript/src/services/getDynamicOffers.d.ts.map +1 -1
- package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts +1 -1
- package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts.map +1 -1
- package/lib/typescript/src/utils/formatOfferUrl.d.ts +1 -1
- package/lib/typescript/src/utils/formatOfferUrl.d.ts.map +1 -1
- package/lib/typescript/src/utils/getDefaultProductType.d.ts +1 -1
- package/lib/typescript/src/utils/getDefaultProductType.d.ts.map +1 -1
- package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts +1 -1
- package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts.map +1 -1
- package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts +1 -1
- package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts.map +1 -1
- package/lib/typescript/src/utils/getOffersByProductTypes.d.ts +2 -2
- package/lib/typescript/src/utils/getOffersByProductTypes.d.ts.map +1 -1
- package/lib/typescript/src/utils/getProductTypesDefinition.d.ts +1 -1
- package/lib/typescript/src/utils/getProductTypesDefinition.d.ts.map +1 -1
- package/lib/typescript/src/utils/selectDynamicOffers.d.ts +1 -1
- package/lib/typescript/src/utils/selectDynamicOffers.d.ts.map +1 -1
- package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts +1 -1
- package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/capabilities/configuration/src/brands/checkVisualEligibility.ts +29 -0
- package/src/capabilities/configuration/src/brands/createDerivedBrands.ts +39 -0
- package/src/capabilities/configuration/src/brands/index.ts +2 -0
- package/src/capabilities/configuration/src/brands/types.ts +8 -0
- package/src/capabilities/core/src/domain/third-party-search/index.ts +1 -0
- package/src/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.ts +33 -0
- package/src/capabilities/core/src/index.ts +1 -0
- package/src/capabilities/core/src/system/cnfContext/CnfContext.ts +21 -0
- package/src/capabilities/core/src/system/cnfContext/schemas/App.ts +13 -0
- package/src/capabilities/core/src/system/cnfContext/schemas/Brand.ts +119 -0
- package/src/capabilities/core/src/system/cnfContext/schemas/Configuration.ts +49 -0
- package/src/capabilities/core/src/system/cnfContext/schemas/Request.ts +16 -0
- package/src/capabilities/core/src/system/cnfContext/schemas/Session.ts +9 -0
- package/src/capabilities/core/src/system/cnfContext/schemas/Signals.ts +47 -0
- package/src/capabilities/core/src/system/cnfContext/schemas/Subaccount.ts +25 -0
- package/src/capabilities/core/src/system/cnfContext/schemas/index.ts +7 -0
- package/src/capabilities/offer-catalog/src/api/offerCatalogApi.ts +171 -0
- package/src/capabilities/offer-catalog/src/index.ts +10 -0
- package/src/capabilities/offer-catalog/src/types/offerCatalogSchema.ts +119 -0
- package/src/capabilities/offer-catalog/src/utils/arrayToMarkdownList.ts +3 -0
- package/src/capabilities/offer-catalog/src/utils/contextUtil.ts +73 -0
- package/src/capabilities/offer-catalog/src/utils/errorUtil.ts +18 -0
- package/src/capabilities/offer-catalog/src/utils/formatUtils.ts +168 -0
- package/src/capabilities/offer-catalog/src/utils/getOfferUrl.ts +61 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.ts +103 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.ts +58 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/boolean.ts +31 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.ts +60 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/common.ts +31 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.ts +29 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.ts +36 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/currency.ts +24 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.ts +206 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.ts +83 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.ts +22 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.ts +25 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.ts +38 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.ts +24 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/index.ts +19 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.ts +41 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.ts +52 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.ts +30 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/percentage.ts +23 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.ts +67 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.ts +92 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.ts +34 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.ts +70 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.ts +71 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.ts +27 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.ts +38 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.ts +44 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.ts +68 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.ts +81 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.ts +38 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.ts +26 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.ts +45 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.ts +28 -0
- package/src/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.ts +23 -0
- package/src/capabilities/offer-catalog/src/utils/stats/index.ts +141 -0
- package/src/capabilities/offer-catalog/src/utils/stats/types.ts +47 -0
- package/src/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.ts +6 -0
- package/src/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.ts +2272 -0
- package/src/capabilities/offers/pipeline/src/sources/ratetables/types/PublicApi.d.ts +1924 -0
- package/src/capabilities/offers/pipeline/src/sources/ratetables/types/index.ts +5 -0
- package/src/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.ts +83 -0
- package/src/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.tsx +66 -0
- package/src/capabilities/ui/elements/src/components/MarkdownText/components.tsx +175 -0
- package/src/capabilities/ui/elements/src/components/MarkdownText/index.tsx +52 -0
- package/src/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.ts +124 -0
- package/src/capabilities/ui/elements/src/components/index.ts +1 -0
- package/src/capabilities/ui/elements/src/components/thumbor/index.tsx +115 -0
- package/src/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.ts +42 -0
- package/src/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.ts +110 -0
- package/src/capabilities/ui/elements/src/index.ts +3 -0
- package/src/capabilities/ui/elements/src/offerCardAttributes.ts +28 -0
- package/src/components/Cards/VideosCard/VideosCard.tsx +1 -1
- package/src/components/Common/BaseOfferCard/Stat/Stat.tsx +7 -2
- package/src/components/Common/BaseOfferCard/index.tsx +3 -4
- package/src/components/Common/DynamicOfferCard/CallToAction.tsx +1 -1
- package/src/components/Common/DynamicOfferCard/SeeMore.tsx +1 -1
- package/src/components/Common/DynamicOfferCard/index.tsx +1 -1
- package/src/components/DynamicOffers/Render/DynamicOffersRender.tsx +1 -1
- package/src/components/DynamicOffers/Render/FallbackOfferTemplate.tsx +1 -1
- package/src/components/DynamicOffers/Render/Offer.tsx +1 -1
- package/src/components/Layouts/CreditCardOfferCard/index.tsx +1 -1
- package/src/components/Layouts/CreditCardOfferCard/statsBuilder.tsx +2 -2
- package/src/components/Layouts/DefaultOfferCard/index.tsx +1 -1
- package/src/components/Layouts/DefaultOfferCard/statsBuilder.tsx +2 -2
- package/src/components/Layouts/HeadlineWithDescriptionCard/index.tsx +1 -1
- package/src/components/Modal/DescriptionPoints.tsx +2 -2
- package/src/components/Modal/Disclaimer.tsx +1 -1
- package/src/components/Modal/OfferDetailsModal.tsx +1 -1
- package/src/components/MoneyLionOfferCarousel.tsx +2 -2
- package/src/config/mocks/cnfContext.ts +136 -0
- package/src/context/EventHandlerProvider.tsx +1 -1
- package/src/pageData.ts +2 -2
- package/src/services/getDynamicOffers.ts +2 -2
- package/src/services/getProductTypesByQuery.ts +1 -1
- package/src/utils/addClientTagsToOfferLinks.ts +1 -1
- package/src/utils/formatOfferUrl.ts +1 -1
- package/src/utils/getDefaultProductType.ts +1 -1
- package/src/utils/getEnableUseCachedOffers.ts +1 -1
- package/src/utils/getOffersBasedOnLayout.ts +1 -1
- package/src/utils/getOffersByProductTypes.ts +3 -3
- package/src/utils/getProductTypesDefinition.ts +1 -1
- package/src/utils/selectDynamicOffers.ts +1 -1
- package/src/utils/sortOffersByRecommendationScore.ts +1 -1
- package/lib/typescript/capabilities/configuration/src/brands/checkVisualEligibility.d.ts.map +0 -1
- package/lib/typescript/capabilities/configuration/src/brands/createDerivedBrands.d.ts.map +0 -1
- package/lib/typescript/capabilities/configuration/src/brands/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/configuration/src/brands/types.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/domain/third-party-search/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/CnfContext.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/App.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Configuration.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Request.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Session.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Signals.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Subaccount.d.ts.map +0 -1
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/types/offerCatalogSchema.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/arrayToMarkdownList.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/contextUtil.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/errorUtil.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/formatUtils.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/getOfferUrl.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currency.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/types.d.ts.map +0 -1
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts.map +0 -1
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/types/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts.map +0 -1
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/HyphenIcon.d.ts +0 -7
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/HyphenIcon.d.ts.map +0 -1
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/Stat.d.ts +0 -12
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/Stat.d.ts.map +0 -1
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/index.d.ts +0 -2
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/components.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/components/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/index.d.ts.map +0 -1
- package/lib/typescript/capabilities/ui/elements/src/offerCardAttributes.d.ts.map +0 -1
- package/lib/typescript/config/mocks/cnfContext.d.ts.map +0 -1
- /package/lib/typescript/{capabilities → src/capabilities}/configuration/src/brands/checkVisualEligibility.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/configuration/src/brands/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/domain/third-party-search/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/CnfContext.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/App.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Brand.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Configuration.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Request.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Session.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Signals.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/Subaccount.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/core/src/system/cnfContext/schemas/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/api/offerCatalogApi.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/types/offerCatalogSchema.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/arrayToMarkdownList.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/contextUtil.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/errorUtil.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/formatUtils.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/getOfferUrl.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/annualFee.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/boolean.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/common.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/common.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/currency.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/percentage.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offer-catalog/src/utils/stats/types.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/offers/pipeline/src/sources/ratetables/types/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/MarkdownText/Abbreviation.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/thumbor/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/index.d.ts +0 -0
- /package/lib/typescript/{capabilities → src/capabilities}/ui/elements/src/offerCardAttributes.d.ts +0 -0
- /package/lib/typescript/{config → src/config}/mocks/cnfContext.d.ts +0 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { isEmpty } from "radash";
|
|
2
|
+
import { getIsDevEnvironment, getLeadUUID, getStateCode, getSubAccountUUID, getSubaccountToken } from "../utils/contextUtil";
|
|
3
|
+
import errorUtil from "../utils/errorUtil";
|
|
4
|
+
import { withDeviceSignals } from "../../../offers/pipeline/src/sources/ratetables/withDeviceSignals";
|
|
5
|
+
import { getOfferCatalogApiBaseUrl } from "../../../../apiEnvironment";
|
|
6
|
+
export const getCachedOffersByProductTypes = context => async productTypes => {
|
|
7
|
+
// const cachedOffersByProductTypesLogger = pinoRootLogger.child({
|
|
8
|
+
// name: "cachedOffersByProductTypesLogger",
|
|
9
|
+
// });
|
|
10
|
+
|
|
11
|
+
try {
|
|
12
|
+
const subAccountUuid = getSubAccountUUID(context);
|
|
13
|
+
const isDev = getIsDevEnvironment(context);
|
|
14
|
+
const url = new URL(`${getOfferCatalogApiBaseUrl(isDev)}/leads/public/channelOffers`);
|
|
15
|
+
url.searchParams.append("productType", productTypes.join(","));
|
|
16
|
+
if (subAccountUuid) {
|
|
17
|
+
url.searchParams.append("channelUuid", subAccountUuid);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// TODO find a way to add the revalidate: 3600 kind of logic here
|
|
21
|
+
const response = await fetch(url.toString(), {
|
|
22
|
+
method: "GET",
|
|
23
|
+
headers: {
|
|
24
|
+
"Content-Type": "application/json"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
const logFormat = {
|
|
28
|
+
status: response.status,
|
|
29
|
+
statusText: response.statusText,
|
|
30
|
+
url: response.url
|
|
31
|
+
};
|
|
32
|
+
if (!response.ok) {
|
|
33
|
+
const errorMessage = errorUtil.getErrorMessageForResponseStatus(response.status, response.statusText);
|
|
34
|
+
console.error(logFormat, errorMessage);
|
|
35
|
+
throw new Error(errorMessage);
|
|
36
|
+
}
|
|
37
|
+
const offersData = await response.json();
|
|
38
|
+
if (isEmpty(offersData.offers)) {
|
|
39
|
+
const errorMessage = errorUtil.getErrorForOffersFromProductTypes("NO_OFFERS");
|
|
40
|
+
console.error(logFormat, errorMessage);
|
|
41
|
+
throw new Error(errorMessage);
|
|
42
|
+
}
|
|
43
|
+
return offersData;
|
|
44
|
+
} catch (error) {
|
|
45
|
+
const errorMessage = errorUtil.getErrorForOffersFromProductTypes("DEFAULT");
|
|
46
|
+
console.error(error, errorMessage);
|
|
47
|
+
return {
|
|
48
|
+
isError: true,
|
|
49
|
+
leadUuid: "",
|
|
50
|
+
offers: [],
|
|
51
|
+
uuid: ""
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export const getOffersForProductTypes = context => async (productTypes, customClientTags) => {
|
|
56
|
+
// const offersFromProductTypesLogger = pinoRootLogger.child({
|
|
57
|
+
// name: "offersFromProductTypesLogger",
|
|
58
|
+
// });
|
|
59
|
+
|
|
60
|
+
try {
|
|
61
|
+
const token = getSubaccountToken(context);
|
|
62
|
+
const leadUuid = getLeadUUID(context);
|
|
63
|
+
const isDev = getIsDevEnvironment(context);
|
|
64
|
+
let fields = {
|
|
65
|
+
productTypes,
|
|
66
|
+
clientTags: customClientTags
|
|
67
|
+
};
|
|
68
|
+
try {
|
|
69
|
+
const stateCode = getStateCode(context);
|
|
70
|
+
// TODO: Refactor to not use this withDeviceSignals
|
|
71
|
+
fields = withDeviceSignals(context, {
|
|
72
|
+
productTypes,
|
|
73
|
+
clientTags: customClientTags,
|
|
74
|
+
personalInformation: {
|
|
75
|
+
state: stateCode
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
} catch (error) {
|
|
79
|
+
// handle error if context is not available. This scenario should not occur in production
|
|
80
|
+
console.error(error, errorUtil.getErrorForOffersFromProductTypes("DEVICE_SIGNALS_ERROR"));
|
|
81
|
+
}
|
|
82
|
+
const url = `${getOfferCatalogApiBaseUrl(isDev)}/leads/${leadUuid}/offerCatalogRateTables`;
|
|
83
|
+
const response = await fetch(url, {
|
|
84
|
+
method: "POST",
|
|
85
|
+
headers: {
|
|
86
|
+
"Content-Type": "application/json",
|
|
87
|
+
"Authorization": `Bearer ${token}`
|
|
88
|
+
},
|
|
89
|
+
body: JSON.stringify(fields)
|
|
90
|
+
});
|
|
91
|
+
const body = await response.json();
|
|
92
|
+
const logFormat = {
|
|
93
|
+
status: response.status,
|
|
94
|
+
statusText: response.statusText,
|
|
95
|
+
url: response.url,
|
|
96
|
+
body,
|
|
97
|
+
fields
|
|
98
|
+
};
|
|
99
|
+
if (!response.ok) {
|
|
100
|
+
const errorMessage = errorUtil.getErrorMessageForResponseStatus(response.status, response.statusText);
|
|
101
|
+
console.error(logFormat, errorMessage);
|
|
102
|
+
throw new Error(errorMessage);
|
|
103
|
+
}
|
|
104
|
+
const offersData = body;
|
|
105
|
+
if (isEmpty(offersData.offers)) {
|
|
106
|
+
const errorMessage = errorUtil.getErrorForOffersFromProductTypes("NO_OFFERS");
|
|
107
|
+
console.error(logFormat, errorMessage);
|
|
108
|
+
throw new Error(errorMessage);
|
|
109
|
+
}
|
|
110
|
+
return offersData;
|
|
111
|
+
} catch (error) {
|
|
112
|
+
const errorMessage = errorUtil.getErrorForOffersFromProductTypes("DEFAULT");
|
|
113
|
+
console.error(error, errorMessage);
|
|
114
|
+
return {
|
|
115
|
+
isError: true,
|
|
116
|
+
leadUuid: "",
|
|
117
|
+
offers: [],
|
|
118
|
+
uuid: ""
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
};
|
|
122
|
+
//# sourceMappingURL=offerCatalogApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["isEmpty","getIsDevEnvironment","getLeadUUID","getStateCode","getSubAccountUUID","getSubaccountToken","errorUtil","withDeviceSignals","getOfferCatalogApiBaseUrl","getCachedOffersByProductTypes","context","productTypes","subAccountUuid","isDev","url","URL","searchParams","append","join","response","fetch","toString","method","headers","logFormat","status","statusText","ok","errorMessage","getErrorMessageForResponseStatus","console","error","Error","offersData","json","offers","getErrorForOffersFromProductTypes","isError","leadUuid","uuid","getOffersForProductTypes","customClientTags","token","fields","clientTags","stateCode","personalInformation","state","body","JSON","stringify"],"sourceRoot":"../../../../../../src","sources":["capabilities/offer-catalog/src/api/offerCatalogApi.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from "./utils/arrayToMarkdownList";
|
|
2
|
+
export { getOfferUrl } from "./utils/getOfferUrl";
|
|
3
|
+
export { getSubAccountUUID } from "./utils/contextUtil";
|
|
4
|
+
export { formatAmount, formatPercentage, formatStringListWithAnd, formatRange } from "./utils/formatUtils";
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getOfferUrl","getSubAccountUUID","formatAmount","formatPercentage","formatStringListWithAnd","formatRange"],"sourceRoot":"../../../../../src","sources":["capabilities/offer-catalog/src/index.ts"],"mappings":"AACA,cAAc,6BAA6B;AAC3C,SAASA,WAAW,QAAQ,qBAAqB;AACjD,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,SACCC,YAAY,EACZC,gBAAgB,EAChBC,uBAAuB,EACvBC,WAAW,QACL,qBAAqB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["capabilities/offer-catalog/src/types/offerCatalogSchema.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["arrayToMarkdownList","arr","map","item","join"],"sourceRoot":"../../../../../../src","sources":["capabilities/offer-catalog/src/utils/arrayToMarkdownList.ts"],"mappings":"AAAA,OAAO,MAAMA,mBAAmB,GAAIC,GAAa,IAAK;EACrD,OAAOA,GAAG,aAAHA,GAAG,uBAAHA,GAAG,CAAEC,GAAG,CAAEC,IAAI,IAAK,KAAKA,IAAI,EAAE,CAAC,CAACC,IAAI,CAAC,IAAI,CAAC;AAClD,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
const STATE_CODE_FALLBACK = "NY";
|
|
2
|
+
export const getStateCode = cnfContext => {
|
|
3
|
+
var _cnfContext$signals$d;
|
|
4
|
+
const stateCode = (_cnfContext$signals$d = cnfContext.signals.deviceSignals) === null || _cnfContext$signals$d === void 0 || (_cnfContext$signals$d = _cnfContext$signals$d.state) === null || _cnfContext$signals$d === void 0 ? void 0 : _cnfContext$signals$d.code;
|
|
5
|
+
if (!stateCode) {
|
|
6
|
+
console.warn(stateCode, "state code not found in getCNFContext");
|
|
7
|
+
}
|
|
8
|
+
return stateCode || STATE_CODE_FALLBACK;
|
|
9
|
+
};
|
|
10
|
+
export const getSubaccountToken = cnfContext => cnfContext.subaccount.publicToken;
|
|
11
|
+
export const parseClientTags = tags => {
|
|
12
|
+
if (!tags) {
|
|
13
|
+
return {};
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Decode the tags to handle special characters
|
|
17
|
+
const decodedTags = decodeURIComponent(tags);
|
|
18
|
+
const clientTags = decodedTags
|
|
19
|
+
// Split the tags by the 'tag.' prefix to get the individual tags
|
|
20
|
+
.split(/(?=(?:^|&)tag\.)/).reduce((acc, tag) => {
|
|
21
|
+
// Remove the leading '&' from the tag if it exists
|
|
22
|
+
const cleanTag = tag.replace(/^&/, "");
|
|
23
|
+
// Find the index of the '=' character in the tag
|
|
24
|
+
const equalIndex = cleanTag.indexOf("=");
|
|
25
|
+
|
|
26
|
+
// If the tag is not a valid key-value pair, return the accumulator
|
|
27
|
+
if (equalIndex === -1) return acc;
|
|
28
|
+
|
|
29
|
+
// Extract the key and value from the tag
|
|
30
|
+
const key = cleanTag.substring(0, equalIndex);
|
|
31
|
+
const value = cleanTag.substring(equalIndex + 1);
|
|
32
|
+
|
|
33
|
+
// If the key starts with 'tag.', it is a valid client tag
|
|
34
|
+
if (key.startsWith("tag.")) {
|
|
35
|
+
const cleanKey = key.replace("tag.", "");
|
|
36
|
+
// Handle comma-separated or pipe-separated values
|
|
37
|
+
if (value.includes(",") || value.includes("|")) {
|
|
38
|
+
// Split the value into an array based on comma or pipe separators
|
|
39
|
+
acc[cleanKey] = value.split(/[,|]/);
|
|
40
|
+
} else {
|
|
41
|
+
// If the value is not comma or pipe separated, add it to the accumulator as a single value
|
|
42
|
+
acc[cleanKey] = [value];
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return acc;
|
|
46
|
+
}, {});
|
|
47
|
+
return clientTags;
|
|
48
|
+
};
|
|
49
|
+
export const getSubAccountUUID = cnfContext => {
|
|
50
|
+
const supplySubaccountUuid = cnfContext.subaccount.supplySubaccountUuid;
|
|
51
|
+
if (!supplySubaccountUuid) {
|
|
52
|
+
console.warn("Supply subaccount uuid not found in context");
|
|
53
|
+
}
|
|
54
|
+
return supplySubaccountUuid;
|
|
55
|
+
};
|
|
56
|
+
export const getLeadUUID = cnfContext => cnfContext.signals.lead.uuid;
|
|
57
|
+
export const getIsDevEnvironment = cnfContext => cnfContext.isDev;
|
|
58
|
+
//# sourceMappingURL=contextUtil.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["STATE_CODE_FALLBACK","getStateCode","cnfContext","_cnfContext$signals$d","stateCode","signals","deviceSignals","state","code","console","warn","getSubaccountToken","subaccount","publicToken","parseClientTags","tags","decodedTags","decodeURIComponent","clientTags","split","reduce","acc","tag","cleanTag","replace","equalIndex","indexOf","key","substring","value","startsWith","cleanKey","includes","getSubAccountUUID","supplySubaccountUuid","getLeadUUID","lead","uuid","getIsDevEnvironment","isDev"],"sourceRoot":"../../../../../../src","sources":["capabilities/offer-catalog/src/utils/contextUtil.ts"],"mappings":"AAEA,MAAMA,mBAAmB,GAAG,IAAI;AAEhC,OAAO,MAAMC,YAAY,GAAIC,UAAsB,IAAK;EAAA,IAAAC,qBAAA;EACvD,MAAMC,SAAS,IAAAD,qBAAA,GAAGD,UAAU,CAACG,OAAO,CAACC,aAAa,cAAAH,qBAAA,gBAAAA,qBAAA,GAAhCA,qBAAA,CAAkCI,KAAK,cAAAJ,qBAAA,uBAAvCA,qBAAA,CAAyCK,IAAI;EAE/D,IAAI,CAACJ,SAAS,EAAE;IACfK,OAAO,CAACC,IAAI,CAACN,SAAS,EAAE,uCAAuC,CAAC;EACjE;EAEA,OAAOA,SAAS,IAAIJ,mBAAmB;AACxC,CAAC;AAED,OAAO,MAAMW,kBAAkB,GAAIT,UAAsB,IACxDA,UAAU,CAACU,UAAU,CAACC,WAAW;AAElC,OAAO,MAAMC,eAAe,GAAIC,IAAa,IAAK;EACjD,IAAI,CAACA,IAAI,EAAE;IACV,OAAO,CAAC,CAAC;EACV;;EAEA;EACA,MAAMC,WAAW,GAAGC,kBAAkB,CAACF,IAAI,CAAC;EAE5C,MAAMG,UAAU,GAAGF;EAClB;EAAA,CACCG,KAAK,CAAC,kBAAkB,CAAC,CACzBC,MAAM,CAA2B,CAACC,GAAG,EAAEC,GAAG,KAAK;IAC/C;IACA,MAAMC,QAAQ,GAAGD,GAAG,CAACE,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC;IACtC;IACA,MAAMC,UAAU,GAAGF,QAAQ,CAACG,OAAO,CAAC,GAAG,CAAC;;IAExC;IACA,IAAID,UAAU,KAAK,CAAC,CAAC,EAAE,OAAOJ,GAAG;;IAEjC;IACA,MAAMM,GAAG,GAAGJ,QAAQ,CAACK,SAAS,CAAC,CAAC,EAAEH,UAAU,CAAC;IAC7C,MAAMI,KAAK,GAAGN,QAAQ,CAACK,SAAS,CAACH,UAAU,GAAG,CAAC,CAAC;;IAEhD;IACA,IAAIE,GAAG,CAACG,UAAU,CAAC,MAAM,CAAC,EAAE;MAC3B,MAAMC,QAAQ,GAAGJ,GAAG,CAACH,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;MACxC;MACA,IAAIK,KAAK,CAACG,QAAQ,CAAC,GAAG,CAAC,IAAIH,KAAK,CAACG,QAAQ,CAAC,GAAG,CAAC,EAAE;QAC/C;QACAX,GAAG,CAACU,QAAQ,CAAC,GAAGF,KAAK,CAACV,KAAK,CAAC,MAAM,CAAC;MACpC,CAAC,MAAM;QACN;QACAE,GAAG,CAACU,QAAQ,CAAC,GAAG,CAACF,KAAK,CAAC;MACxB;IACD;IACA,OAAOR,GAAG;EACX,CAAC,EAAE,CAAC,CAAC,CAAC;EAEP,OAAOH,UAAU;AAClB,CAAC;AAED,OAAO,MAAMe,iBAAiB,GAAI/B,UAAsB,IAAK;EAC5D,MAAMgC,oBAAoB,GAAGhC,UAAU,CAACU,UAAU,CAACsB,oBAAoB;EAEvE,IAAI,CAACA,oBAAoB,EAAE;IAC1BzB,OAAO,CAACC,IAAI,CAAC,6CAA6C,CAAC;EAC5D;EAEA,OAAOwB,oBAAoB;AAC5B,CAAC;AAED,OAAO,MAAMC,WAAW,GAAIjC,UAAsB,IACjDA,UAAU,CAACG,OAAO,CAAC+B,IAAI,CAACC,IAAI;AAE7B,OAAO,MAAMC,mBAAmB,GAAIpC,UAAsB,IAAKA,UAAU,CAACqC,KAAK","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const errorUtil = {
|
|
2
|
+
getErrorMessageForResponseStatus(status, statusText) {
|
|
3
|
+
return `${status}: ${statusText}`;
|
|
4
|
+
},
|
|
5
|
+
getErrorForOffersFromProductTypes(error) {
|
|
6
|
+
const errorMessages = {
|
|
7
|
+
DEVICE_SIGNALS_ERROR: "Error getting device signals",
|
|
8
|
+
NO_OFFERS: "No offers found",
|
|
9
|
+
DEFAULT: "An unexpected error occurred in getOffersFromProductTypes"
|
|
10
|
+
};
|
|
11
|
+
return errorMessages[error] || errorMessages.DEFAULT;
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
export default errorUtil;
|
|
15
|
+
//# sourceMappingURL=errorUtil.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["errorUtil","getErrorMessageForResponseStatus","status","statusText","getErrorForOffersFromProductTypes","error","errorMessages","DEVICE_SIGNALS_ERROR","NO_OFFERS","DEFAULT"],"sourceRoot":"../../../../../../src","sources":["capabilities/offer-catalog/src/utils/errorUtil.ts"],"mappings":"AAAA,MAAMA,SAAS,GAAG;EACjBC,gCAAgCA,CAACC,MAAc,EAAEC,UAAkB,EAAU;IAC5E,OAAO,GAAGD,MAAM,KAAKC,UAAU,EAAE;EAClC,CAAC;EACDC,iCAAiCA,CAChCC,KAAuD,EAC9C;IACT,MAAMC,aAAa,GAAG;MACrBC,oBAAoB,EAAE,8BAA8B;MACpDC,SAAS,EAAE,iBAAiB;MAC5BC,OAAO,EAAE;IACV,CAAU;IAEV,OAAOH,aAAa,CAACD,KAAK,CAAC,IAAIC,aAAa,CAACG,OAAO;EACrD;AACD,CAAC;AAED,eAAeT,SAAS","ignoreList":[]}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import numbro from "numbro";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Format the amount
|
|
5
|
+
* @param amount {number | undefined} - Amount in cents
|
|
6
|
+
* @param raw {boolean | undefined} - Returns the amount in raw cents (currently only used for zero values)
|
|
7
|
+
* @returns {string}
|
|
8
|
+
* @example
|
|
9
|
+
* formatAmount(undefined)
|
|
10
|
+
* // returns 'N/A'
|
|
11
|
+
* formatAmount(0)
|
|
12
|
+
* // returns 'Free'
|
|
13
|
+
* formatAmount(1000)
|
|
14
|
+
* // returns '$10'
|
|
15
|
+
* formatAmount(100000)
|
|
16
|
+
* // returns '$1K'
|
|
17
|
+
*/
|
|
18
|
+
export const formatAmount = (amount, raw) => {
|
|
19
|
+
if (Number.isNaN(amount) || amount === undefined) return "N/A";
|
|
20
|
+
if (amount === 0 && !raw) return "FREE";
|
|
21
|
+
|
|
22
|
+
// Convert cents to dollars
|
|
23
|
+
const isLargeAmount = amount >= 99999900;
|
|
24
|
+
const amountInDollars = isLargeAmount ? Math.ceil(amount / 1000000) * 1000000 / 100 // Round to nearest million if large
|
|
25
|
+
: amount / 100;
|
|
26
|
+
|
|
27
|
+
// Format the amount in dollars
|
|
28
|
+
const formattedAmount = numbro(amountInDollars).formatCurrency({
|
|
29
|
+
average: amountInDollars >= 1000,
|
|
30
|
+
mantissa: amountInDollars < 1000 ? 2 : 1,
|
|
31
|
+
trimMantissa: !(amount < 100 && amount !== 0),
|
|
32
|
+
spaceSeparated: false
|
|
33
|
+
});
|
|
34
|
+
return formattedAmount.toUpperCase();
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Format the percentage
|
|
39
|
+
* @param percentage {number}
|
|
40
|
+
* @returns {string}
|
|
41
|
+
* @example
|
|
42
|
+
* formatPercentage(undefined)
|
|
43
|
+
* // returns 'N/A'
|
|
44
|
+
* formatPercentage(399)
|
|
45
|
+
* // returns '3.99%'
|
|
46
|
+
* formatPercentage(1800)
|
|
47
|
+
* // returns '18%'
|
|
48
|
+
*/
|
|
49
|
+
export const formatPercentage = percentage => {
|
|
50
|
+
if (percentage === undefined || percentage === null) return "N/A";
|
|
51
|
+
return `${numbro(percentage / 100).format({
|
|
52
|
+
mantissa: 2,
|
|
53
|
+
trimMantissa: true
|
|
54
|
+
})}%`;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Format the strings with commas and add '&' to the last string
|
|
59
|
+
* @param strings {string[]}
|
|
60
|
+
* @returns {string}
|
|
61
|
+
* @example
|
|
62
|
+
* addAndToLastString(['CT', 'DE', 'GA', 'HI', 'IL'])
|
|
63
|
+
* // returns 'CT, DE, GA, HI & IL'
|
|
64
|
+
*/
|
|
65
|
+
export const formatStringListWithAnd = strings => {
|
|
66
|
+
if (!(strings !== null && strings !== void 0 && strings.length)) {
|
|
67
|
+
return "N/A";
|
|
68
|
+
}
|
|
69
|
+
if (strings.length === 1) {
|
|
70
|
+
return strings[0] ?? "N/A";
|
|
71
|
+
}
|
|
72
|
+
const newStrings = [...strings];
|
|
73
|
+
const lastString = newStrings.pop();
|
|
74
|
+
return `${newStrings.join(", ")} & ${lastString}`;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Format the amount with unabreviated values
|
|
79
|
+
* @param amount {number | undefined} - Amount in cents
|
|
80
|
+
* @param raw {boolean | undefined} - Returns the amount in raw cents (currently only used for zero values)
|
|
81
|
+
* @returns {string}
|
|
82
|
+
* @example
|
|
83
|
+
* formatAmountUnabbreviated(undefined)
|
|
84
|
+
* // returns 'N/A'
|
|
85
|
+
* formatAmountUnabbreviated(0)
|
|
86
|
+
* // returns 'Free'
|
|
87
|
+
* formatAmountUnabbreviated(1000)
|
|
88
|
+
* // returns '$10'
|
|
89
|
+
* formatAmountUnabbreviated(100000)
|
|
90
|
+
* // returns '$1,000'
|
|
91
|
+
* formatAmountUnabbreviated(10000000)
|
|
92
|
+
* // returns '$100,000'
|
|
93
|
+
*/
|
|
94
|
+
const formatAmountUnabbreviated = (amount, raw) => {
|
|
95
|
+
if (Number.isNaN(amount) || amount === undefined) return "N/A";
|
|
96
|
+
if (amount === 0 && !raw) return "FREE";
|
|
97
|
+
|
|
98
|
+
// Convert cents to dollars
|
|
99
|
+
const isLargeAmount = amount >= 99999900;
|
|
100
|
+
const amountInDollars = isLargeAmount ? Math.ceil(amount / 1000000) * 1000000 / 100 // Round to nearest million if large
|
|
101
|
+
: amount / 100;
|
|
102
|
+
// Format the amount in dollars
|
|
103
|
+
const formattedAmount = numbro(amountInDollars).formatCurrency({
|
|
104
|
+
mantissa: amountInDollars < 1000 ? 2 : 1,
|
|
105
|
+
trimMantissa: !(amount < 100 && amount !== 0),
|
|
106
|
+
spaceSeparated: false,
|
|
107
|
+
thousandSeparated: true
|
|
108
|
+
});
|
|
109
|
+
return formattedAmount.toUpperCase();
|
|
110
|
+
};
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Format the range based on the min and max values
|
|
114
|
+
* @param min {number | undefined}
|
|
115
|
+
* @param max {number | undefined}
|
|
116
|
+
* @param type {string | undefined}
|
|
117
|
+
* @returns {string}
|
|
118
|
+
* @example
|
|
119
|
+
* formatRange(undefined, undefined)
|
|
120
|
+
* // returns 'N/A'
|
|
121
|
+
* formatRange(100, undefined)
|
|
122
|
+
* // returns 'N/A'
|
|
123
|
+
* formatRange(undefined, 100)
|
|
124
|
+
* // returns 'N/A'
|
|
125
|
+
* formatRange(0, 0)
|
|
126
|
+
* // returns 'Free'
|
|
127
|
+
* formatRange(100, 100)
|
|
128
|
+
* // returns '$1'
|
|
129
|
+
* formatRange(1000, 1000)
|
|
130
|
+
* // returns '$10'
|
|
131
|
+
* formatRange(1000, 10000)
|
|
132
|
+
* // returns '$10 - $100'
|
|
133
|
+
* formatRange(1000, 100000)
|
|
134
|
+
* // returns '$10 - $1K'
|
|
135
|
+
* formatRange(350, 490, 'percentage')
|
|
136
|
+
* // returns '3.5% - 4.9%'
|
|
137
|
+
* formatRange(1000, 10000, 'percentage')
|
|
138
|
+
* // returns '10% - 100%'
|
|
139
|
+
*/
|
|
140
|
+
export const formatRange = (min, max, type = "amount", amountFormat) => {
|
|
141
|
+
const resolvedFormatAmount = amountFormat === "unabbreviated" ? formatAmountUnabbreviated : formatAmount;
|
|
142
|
+
if (min === undefined || max === undefined) return "N/A";
|
|
143
|
+
if (type === "percentage") {
|
|
144
|
+
return min === max ? formatPercentage(min) : `${formatPercentage(min)} - ${formatPercentage(max)}`;
|
|
145
|
+
}
|
|
146
|
+
if ((min === 0 || min === 1) && max !== 0) {
|
|
147
|
+
return `Up to ${resolvedFormatAmount(max)}`;
|
|
148
|
+
}
|
|
149
|
+
return min === max ? resolvedFormatAmount(min) : `${resolvedFormatAmount(min)} - ${resolvedFormatAmount(max)}`;
|
|
150
|
+
};
|
|
151
|
+
//# sourceMappingURL=formatUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["numbro","formatAmount","amount","raw","Number","isNaN","undefined","isLargeAmount","amountInDollars","Math","ceil","formattedAmount","formatCurrency","average","mantissa","trimMantissa","spaceSeparated","toUpperCase","formatPercentage","percentage","format","formatStringListWithAnd","strings","length","newStrings","lastString","pop","join","formatAmountUnabbreviated","thousandSeparated","formatRange","min","max","type","amountFormat","resolvedFormatAmount"],"sourceRoot":"../../../../../../src","sources":["capabilities/offer-catalog/src/utils/formatUtils.ts"],"mappings":"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","ignoreList":[]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the offer URL.
|
|
3
|
+
* @description
|
|
4
|
+
* Returns the offer URL and any applicable override URL based on the provided offer and definitions.
|
|
5
|
+
* Override URL determination process:
|
|
6
|
+
* 1. First checks for a product type override from productTypesDefinition
|
|
7
|
+
* 2. Then checks for a partner override from partnersOverrideDefinition (takes precedence)
|
|
8
|
+
* The base offer URL is always returned, while the override URL is optional.
|
|
9
|
+
* @param {GetOfferUrlProps} props - The properties for getting the offer URL.
|
|
10
|
+
* @returns {GetOfferUrlResult} An object containing the URL and optional override URL.
|
|
11
|
+
**/
|
|
12
|
+
export const getOfferUrl = ({
|
|
13
|
+
offer,
|
|
14
|
+
productTypesDefinition,
|
|
15
|
+
partnersOverrideDefinition
|
|
16
|
+
}) => {
|
|
17
|
+
var _productTypesDefiniti, _partnersOverrideDefi;
|
|
18
|
+
// Start with the base result
|
|
19
|
+
const result = {
|
|
20
|
+
url: offer.url
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
// Check product type override first
|
|
24
|
+
const partnerPageUrl = productTypesDefinition === null || productTypesDefinition === void 0 || (_productTypesDefiniti = productTypesDefinition.find(definition => definition.productTypeSlug === offer.productType)) === null || _productTypesDefiniti === void 0 ? void 0 : _productTypesDefiniti.partnerPageUrl;
|
|
25
|
+
if (partnerPageUrl) {
|
|
26
|
+
result.overrideUrl = partnerPageUrl;
|
|
27
|
+
}
|
|
28
|
+
if (!(partnersOverrideDefinition !== null && partnersOverrideDefinition !== void 0 && partnersOverrideDefinition.length)) return result;
|
|
29
|
+
|
|
30
|
+
// Check partner override second (will overwrite product type override if exists)
|
|
31
|
+
const partnerOverride = partnersOverrideDefinition === null || partnersOverrideDefinition === void 0 || (_partnersOverrideDefi = partnersOverrideDefinition.find(partner => partner.financialInstitutionUuid === offer.financialInstitutionUuid)) === null || _partnersOverrideDefi === void 0 ? void 0 : _partnersOverrideDefi.overrideUrl;
|
|
32
|
+
if (partnerOverride) {
|
|
33
|
+
result.overrideUrl = partnerOverride;
|
|
34
|
+
}
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=getOfferUrl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["getOfferUrl","offer","productTypesDefinition","partnersOverrideDefinition","_productTypesDefiniti","_partnersOverrideDefi","result","url","partnerPageUrl","find","definition","productTypeSlug","productType","overrideUrl","length","partnerOverride","partner","financialInstitutionUuid"],"sourceRoot":"../../../../../../src","sources":["capabilities/offer-catalog/src/utils/getOfferUrl.ts"],"mappings":"AAiBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,WAAW,GAAGA,CAAC;EAC3BC,KAAK;EACLC,sBAAsB;EACtBC;AACiB,CAAC,KAAwB;EAAA,IAAAC,qBAAA,EAAAC,qBAAA;EAC1C;EACA,MAAMC,MAAyB,GAAG;IACjCC,GAAG,EAAEN,KAAK,CAACM;EACZ,CAAC;;EAED;EACA,MAAMC,cAAc,GAAGN,sBAAsB,aAAtBA,sBAAsB,gBAAAE,qBAAA,GAAtBF,sBAAsB,CAAEO,IAAI,CACjDC,UAAU,IAAKA,UAAU,CAACC,eAAe,KAAKV,KAAK,CAACW,WACtD,CAAC,cAAAR,qBAAA,uBAFsBA,qBAAA,CAEpBI,cAAc;EAEjB,IAAIA,cAAc,EAAE;IACnBF,MAAM,CAACO,WAAW,GAAGL,cAAc;EACpC;EAEA,IAAI,EAACL,0BAA0B,aAA1BA,0BAA0B,eAA1BA,0BAA0B,CAAEW,MAAM,GAAE,OAAOR,MAAM;;EAEtD;EACA,MAAMS,eAAe,GAAGZ,0BAA0B,aAA1BA,0BAA0B,gBAAAE,qBAAA,GAA1BF,0BAA0B,CAAEM,IAAI,CACtDO,OAAO,IACPA,OAAO,CAACC,wBAAwB,KAAKhB,KAAK,CAACgB,wBAC7C,CAAC,cAAAZ,qBAAA,uBAHuBA,qBAAA,CAGrBQ,WAAW;EAEd,IAAIE,eAAe,EAAE;IACpBT,MAAM,CAACO,WAAW,GAAGE,eAAe;EACrC;EAEA,OAAOT,MAAM;AACd,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { get } from "radash";
|
|
2
|
+
import { P, match } from "ts-pattern";
|
|
3
|
+
import { formatAmount, formatRange } from "../../formatUtils";
|
|
4
|
+
const determineContent = ({
|
|
5
|
+
minAnnualFeeValue,
|
|
6
|
+
maxAnnualFeeValue,
|
|
7
|
+
annualIntroFeeValue,
|
|
8
|
+
annualIntroFeeTermValue,
|
|
9
|
+
raw
|
|
10
|
+
}) => {
|
|
11
|
+
return match({
|
|
12
|
+
minAnnualFeeValue,
|
|
13
|
+
maxAnnualFeeValue,
|
|
14
|
+
annualIntroFeeValue,
|
|
15
|
+
annualIntroFeeTermValue
|
|
16
|
+
}).with({
|
|
17
|
+
annualIntroFeeValue: P.not(undefined)
|
|
18
|
+
}, ({
|
|
19
|
+
annualIntroFeeValue,
|
|
20
|
+
annualIntroFeeTermValue,
|
|
21
|
+
minAnnualFeeValue,
|
|
22
|
+
maxAnnualFeeValue
|
|
23
|
+
}) => {
|
|
24
|
+
const postIntroFee = formatRange(minAnnualFeeValue, maxAnnualFeeValue, "amount");
|
|
25
|
+
return `${formatAmount(annualIntroFeeValue)} for ${annualIntroFeeTermValue} years, then ${postIntroFee}`;
|
|
26
|
+
}).with({
|
|
27
|
+
minAnnualFeeValue: P.not(undefined),
|
|
28
|
+
maxAnnualFeeValue: P.not(undefined)
|
|
29
|
+
}, ({
|
|
30
|
+
minAnnualFeeValue,
|
|
31
|
+
maxAnnualFeeValue
|
|
32
|
+
}) => {
|
|
33
|
+
if (minAnnualFeeValue === maxAnnualFeeValue) {
|
|
34
|
+
return formatAmount(minAnnualFeeValue, raw);
|
|
35
|
+
}
|
|
36
|
+
return formatRange(minAnnualFeeValue, maxAnnualFeeValue, "amount");
|
|
37
|
+
}).with({
|
|
38
|
+
minAnnualFeeValue: P.not(undefined)
|
|
39
|
+
}, ({
|
|
40
|
+
minAnnualFeeValue
|
|
41
|
+
}) => formatAmount(minAnnualFeeValue)).with({
|
|
42
|
+
maxAnnualFeeValue: P.not(undefined)
|
|
43
|
+
}, ({
|
|
44
|
+
maxAnnualFeeValue
|
|
45
|
+
}) => formatAmount(maxAnnualFeeValue)).otherwise(() => "See Terms");
|
|
46
|
+
};
|
|
47
|
+
export const annualFee = offer => ({
|
|
48
|
+
label,
|
|
49
|
+
minAnnualFeeField,
|
|
50
|
+
maxAnnualFeeField,
|
|
51
|
+
annualIntroFeeField,
|
|
52
|
+
annualIntroFeeTermField,
|
|
53
|
+
raw = false
|
|
54
|
+
}) => {
|
|
55
|
+
const minAnnualFeeValue = get(offer, minAnnualFeeField);
|
|
56
|
+
const maxAnnualFeeValue = get(offer, maxAnnualFeeField);
|
|
57
|
+
const annualIntroFeeValue = get(offer, annualIntroFeeField);
|
|
58
|
+
const annualIntroFeeTermValue = get(offer, annualIntroFeeTermField);
|
|
59
|
+
const content = determineContent({
|
|
60
|
+
minAnnualFeeValue,
|
|
61
|
+
maxAnnualFeeValue,
|
|
62
|
+
annualIntroFeeValue,
|
|
63
|
+
annualIntroFeeTermValue,
|
|
64
|
+
raw
|
|
65
|
+
});
|
|
66
|
+
return {
|
|
67
|
+
label,
|
|
68
|
+
content
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
//# sourceMappingURL=annualFee.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["get","P","match","formatAmount","formatRange","determineContent","minAnnualFeeValue","maxAnnualFeeValue","annualIntroFeeValue","annualIntroFeeTermValue","raw","with","not","undefined","postIntroFee","otherwise","annualFee","offer","label","minAnnualFeeField","maxAnnualFeeField","annualIntroFeeField","annualIntroFeeTermField","content"],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/annualFee.ts"],"mappings":"AAAA,SAASA,GAAG,QAAQ,QAAQ;AAC5B,SAASC,CAAC,EAAEC,KAAK,QAAQ,YAAY;AAErC,SAASC,YAAY,EAAEC,WAAW,QAAQ,mBAAmB;AAa7D,MAAMC,gBAAgB,GAAGA,CAAC;EACzBC,iBAAiB;EACjBC,iBAAiB;EACjBC,mBAAmB;EACnBC,uBAAuB;EACvBC;AAQD,CAAC,KAAK;EACL,OAAOR,KAAK,CAAC;IACZI,iBAAiB;IACjBC,iBAAiB;IACjBC,mBAAmB;IACnBC;EACD,CAAC,CAAC,CACAE,IAAI,CACJ;IAAEH,mBAAmB,EAAEP,CAAC,CAACW,GAAG,CAACC,SAAS;EAAE,CAAC,EACzC,CAAC;IACAL,mBAAmB;IACnBC,uBAAuB;IACvBH,iBAAiB;IACjBC;EACD,CAAC,KAAK;IACL,MAAMO,YAAY,GAAGV,WAAW,CAC/BE,iBAAiB,EACjBC,iBAAiB,EACjB,QACD,CAAC;IACD,OAAO,GAAGJ,YAAY,CACrBK,mBACD,CAAC,QAAQC,uBAAuB,gBAAgBK,YAAY,EAAE;EAC/D,CACD,CAAC,CACAH,IAAI,CACJ;IACCL,iBAAiB,EAAEL,CAAC,CAACW,GAAG,CAACC,SAAS,CAAC;IACnCN,iBAAiB,EAAEN,CAAC,CAACW,GAAG,CAACC,SAAS;EACnC,CAAC,EACD,CAAC;IAAEP,iBAAiB;IAAEC;EAAkB,CAAC,KAAK;IAC7C,IAAID,iBAAiB,KAAKC,iBAAiB,EAAE;MAC5C,OAAOJ,YAAY,CAACG,iBAAiB,EAAEI,GAAG,CAAC;IAC5C;IACA,OAAON,WAAW,CAACE,iBAAiB,EAAEC,iBAAiB,EAAE,QAAQ,CAAC;EACnE,CACD,CAAC,CACAI,IAAI,CAAC;IAAEL,iBAAiB,EAAEL,CAAC,CAACW,GAAG,CAACC,SAAS;EAAE,CAAC,EAAE,CAAC;IAAEP;EAAkB,CAAC,KACpEH,YAAY,CAACG,iBAAiB,CAC/B,CAAC,CACAK,IAAI,CAAC;IAAEJ,iBAAiB,EAAEN,CAAC,CAACW,GAAG,CAACC,SAAS;EAAE,CAAC,EAAE,CAAC;IAAEN;EAAkB,CAAC,KACpEJ,YAAY,CAACI,iBAAiB,CAC/B,CAAC,CACAQ,SAAS,CAAC,MAAM,WAAW,CAAC;AAC/B,CAAC;AAED,OAAO,MAAMC,SAAS,GACpBC,KAAgB,IACjB,CAAC;EACAC,KAAK;EACLC,iBAAiB;EACjBC,iBAAiB;EACjBC,mBAAmB;EACnBC,uBAAuB;EACvBZ,GAAG,GAAG;AACQ,CAAC,KAAuB;EACtC,MAAMJ,iBAAiB,GAAGN,GAAG,CAASiB,KAAK,EAAEE,iBAAiB,CAAC;EAC/D,MAAMZ,iBAAiB,GAAGP,GAAG,CAASiB,KAAK,EAAEG,iBAAiB,CAAC;EAC/D,MAAMZ,mBAAmB,GAAGR,GAAG,CAASiB,KAAK,EAAEI,mBAAmB,CAAC;EACnE,MAAMZ,uBAAuB,GAAGT,GAAG,CAASiB,KAAK,EAAEK,uBAAuB,CAAC;EAE3E,MAAMC,OAAO,GAAGlB,gBAAgB,CAAC;IAChCC,iBAAiB;IACjBC,iBAAiB;IACjBC,mBAAmB;IACnBC,uBAAuB;IACvBC;EACD,CAAC,CAAC;EAEF,OAAO;IACNQ,KAAK;IACLK;EACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { get } from "radash";
|
|
2
|
+
export const fromBooleanStat = offer => ({
|
|
3
|
+
label,
|
|
4
|
+
fieldName,
|
|
5
|
+
falseValue,
|
|
6
|
+
trueValue
|
|
7
|
+
}) => {
|
|
8
|
+
const booleanValue = get(offer, fieldName, false);
|
|
9
|
+
const content = booleanValue ? trueValue ?? "True" : falseValue ?? "False";
|
|
10
|
+
return {
|
|
11
|
+
label,
|
|
12
|
+
content
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=boolean.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["get","fromBooleanStat","offer","label","fieldName","falseValue","trueValue","booleanValue","content"],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/boolean.ts"],"mappings":"AAAA,SAASA,GAAG,QAAQ,QAAQ;AAY5B,OAAO,MAAMC,eAAe,GAC1BC,KAAgB,IACjB,CAAC;EACAC,KAAK;EACLC,SAAS;EACTC,UAAU;EACVC;AACY,CAAC,KAAuB;EACpC,MAAMC,YAAY,GAAGP,GAAG,CAACE,KAAK,EAAEE,SAAS,EAAE,KAAK,CAAC;EAEjD,MAAMI,OAAO,GAAGD,YAAY,GACxBD,SAAS,IAAI,MAAM,GACnBD,UAAU,IAAI,OAAQ;EAE1B,OAAO;IACNF,KAAK;IACLK;EACD,CAAC;AACF,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// import { describe, expect, it } from "vitest";
|
|
2
|
+
// import { type BooleanStat, fromBooleanStat } from "./boolean";
|
|
3
|
+
|
|
4
|
+
// describe("fromBooleanStat", () => {
|
|
5
|
+
// it.each([
|
|
6
|
+
// [
|
|
7
|
+
// { isAvailable: true },
|
|
8
|
+
// { format: "boolean", label: "Availability", fieldName: "isAvailable" },
|
|
9
|
+
// { label: "Availability", content: "True" },
|
|
10
|
+
// ],
|
|
11
|
+
// [
|
|
12
|
+
// { isAvailable: false },
|
|
13
|
+
// { format: "boolean", label: "Availability", fieldName: "isAvailable" },
|
|
14
|
+
// { label: "Availability", content: "False" },
|
|
15
|
+
// ],
|
|
16
|
+
// [
|
|
17
|
+
// { isAvailable: true },
|
|
18
|
+
// {
|
|
19
|
+
// format: "boolean",
|
|
20
|
+
// label: "Availability",
|
|
21
|
+
// fieldName: "isAvailable",
|
|
22
|
+
// trueValue: "In Stock",
|
|
23
|
+
// },
|
|
24
|
+
// { label: "Availability", content: "In Stock" },
|
|
25
|
+
// ],
|
|
26
|
+
// [
|
|
27
|
+
// { isAvailable: false },
|
|
28
|
+
// {
|
|
29
|
+
// format: "boolean",
|
|
30
|
+
// label: "Availability",
|
|
31
|
+
// fieldName: "isAvailable",
|
|
32
|
+
// falseValue: "Out of Stock",
|
|
33
|
+
// },
|
|
34
|
+
// { label: "Availability", content: "Out of Stock" },
|
|
35
|
+
// ],
|
|
36
|
+
// [
|
|
37
|
+
// {},
|
|
38
|
+
// { format: "boolean", label: "Availability", fieldName: "isAvailable" },
|
|
39
|
+
// { label: "Availability", content: "False" },
|
|
40
|
+
// ],
|
|
41
|
+
// [
|
|
42
|
+
// {},
|
|
43
|
+
// {
|
|
44
|
+
// format: "boolean",
|
|
45
|
+
// label: "Availability",
|
|
46
|
+
// fieldName: "isAvailable",
|
|
47
|
+
// falseValue: "Unavailable",
|
|
48
|
+
// },
|
|
49
|
+
// { label: "Availability", content: "Unavailable" },
|
|
50
|
+
// ],
|
|
51
|
+
// ])(
|
|
52
|
+
// "should return the correct content for offer %j and stat %j",
|
|
53
|
+
// (offer, stats, expected) => {
|
|
54
|
+
// const result = fromBooleanStat(offer as BaseOffer)(stats as BooleanStat);
|
|
55
|
+
// expect(result).toEqual(expected);
|
|
56
|
+
// }
|
|
57
|
+
// );
|
|
58
|
+
// });
|
|
59
|
+
//# sourceMappingURL=boolean.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.ts"],"mappings":"AAAA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { capitalize, get } from "radash";
|
|
2
|
+
export const fromCommonStat = offer => ({
|
|
3
|
+
label = "",
|
|
4
|
+
capitalized,
|
|
5
|
+
...stat
|
|
6
|
+
}) => {
|
|
7
|
+
const content = "fieldName" in stat ? get(offer, stat.fieldName, stat.defaultValue ?? "") : stat.value;
|
|
8
|
+
return {
|
|
9
|
+
label,
|
|
10
|
+
content: capitalized ? capitalize(content.toString()) : content
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["capitalize","get","fromCommonStat","offer","label","capitalized","stat","content","fieldName","defaultValue","value","toString"],"sourceRoot":"../../../../../../../../src","sources":["capabilities/offer-catalog/src/utils/stats/formatters/common.ts"],"mappings":"AAAA,SAASA,UAAU,EAAEC,GAAG,QAAQ,QAAQ;AAkBxC,OAAO,MAAMC,cAAc,GACzBC,KAAgB,IACjB,CAAC;EAAEC,KAAK,GAAG,EAAE;EAAEC,WAAW;EAAE,GAAGC;AAAiB,CAAC,KAAuB;EACvE,MAAMC,OAAO,GACZ,WAAW,IAAID,IAAI,GAChBL,GAAG,CAACE,KAAK,EAAEG,IAAI,CAACE,SAAS,EAAEF,IAAI,CAACG,YAAY,IAAI,EAAE,CAAC,GACnDH,IAAI,CAACI,KAAK;EAEd,OAAO;IACNN,KAAK;IACLG,OAAO,EAAEF,WAAW,GAAGL,UAAU,CAACO,OAAO,CAACI,QAAQ,CAAC,CAAC,CAAC,GAAGJ;EACzD,CAAC;AACF,CAAC","ignoreList":[]}
|