@moneylion/react-native-offer-carousel 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/lib/commonjs/apiEnvironment.js +24 -0
- package/lib/commonjs/apiEnvironment.js.map +1 -0
- package/lib/commonjs/components/Button/index.js +119 -0
- package/lib/commonjs/components/Button/index.js.map +1 -0
- package/lib/commonjs/components/Cards/VideosCard/VideoContent.js +40 -0
- package/lib/commonjs/components/Cards/VideosCard/VideoContent.js.map +1 -0
- package/lib/commonjs/components/Cards/VideosCard/VideosCard.js +56 -0
- package/lib/commonjs/components/Cards/VideosCard/VideosCard.js.map +1 -0
- package/lib/commonjs/components/Cards/index.js +3 -0
- package/lib/commonjs/components/Cards/index.js.map +1 -0
- package/lib/commonjs/components/Common/BaseOfferCard/Content/Content.js +20 -0
- package/lib/commonjs/components/Common/BaseOfferCard/Content/Content.js.map +1 -0
- package/lib/commonjs/components/Common/BaseOfferCard/Content/index.js +17 -0
- package/lib/commonjs/components/Common/BaseOfferCard/Content/index.js.map +1 -0
- package/lib/commonjs/components/Common/BaseOfferCard/Stat/Stat.js +83 -0
- package/lib/commonjs/components/Common/BaseOfferCard/Stat/Stat.js.map +1 -0
- package/lib/commonjs/components/Common/BaseOfferCard/Stat/index.js +17 -0
- package/lib/commonjs/components/Common/BaseOfferCard/Stat/index.js.map +1 -0
- package/lib/commonjs/components/Common/BaseOfferCard/StatsContainer/StatsContainer.js +18 -0
- package/lib/commonjs/components/Common/BaseOfferCard/StatsContainer/StatsContainer.js.map +1 -0
- package/lib/commonjs/components/Common/BaseOfferCard/StatsContainer/index.js +17 -0
- package/lib/commonjs/components/Common/BaseOfferCard/StatsContainer/index.js.map +1 -0
- package/lib/commonjs/components/Common/BaseOfferCard/ThumbsUpIcon.js +29 -0
- package/lib/commonjs/components/Common/BaseOfferCard/ThumbsUpIcon.js.map +1 -0
- package/lib/commonjs/components/Common/BaseOfferCard/index.js +254 -0
- package/lib/commonjs/components/Common/BaseOfferCard/index.js.map +1 -0
- package/lib/commonjs/components/Common/DynamicOfferCard/CallToAction.js +45 -0
- package/lib/commonjs/components/Common/DynamicOfferCard/CallToAction.js.map +1 -0
- package/lib/commonjs/components/Common/DynamicOfferCard/SeeMore.js +72 -0
- package/lib/commonjs/components/Common/DynamicOfferCard/SeeMore.js.map +1 -0
- package/lib/commonjs/components/Common/DynamicOfferCard/index.js +37 -0
- package/lib/commonjs/components/Common/DynamicOfferCard/index.js.map +1 -0
- package/lib/commonjs/components/Common/index.js +27 -0
- package/lib/commonjs/components/Common/index.js.map +1 -0
- package/lib/commonjs/components/Divider/index.js +39 -0
- package/lib/commonjs/components/Divider/index.js.map +1 -0
- package/lib/commonjs/components/DynamicOffers/DynamicOffers.js +32 -0
- package/lib/commonjs/components/DynamicOffers/DynamicOffers.js.map +1 -0
- package/lib/commonjs/components/DynamicOffers/DynamicOffersContainer.js +49 -0
- package/lib/commonjs/components/DynamicOffers/DynamicOffersContainer.js.map +1 -0
- package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js +205 -0
- package/lib/commonjs/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -0
- package/lib/commonjs/components/DynamicOffers/Render/FallbackOfferTemplate.js +28 -0
- package/lib/commonjs/components/DynamicOffers/Render/FallbackOfferTemplate.js.map +1 -0
- package/lib/commonjs/components/DynamicOffers/Render/Offer.js +70 -0
- package/lib/commonjs/components/DynamicOffers/Render/Offer.js.map +1 -0
- package/lib/commonjs/components/DynamicOffers/Render/index.js +20 -0
- package/lib/commonjs/components/DynamicOffers/Render/index.js.map +1 -0
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/index.js +65 -0
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/index.js.map +1 -0
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/statsBuilder.js +15 -0
- package/lib/commonjs/components/Layouts/CreditCardOfferCard/statsBuilder.js.map +1 -0
- package/lib/commonjs/components/Layouts/DefaultOfferCard/index.js +53 -0
- package/lib/commonjs/components/Layouts/DefaultOfferCard/index.js.map +1 -0
- package/lib/commonjs/components/Layouts/DefaultOfferCard/statsBuilder.js +17 -0
- package/lib/commonjs/components/Layouts/DefaultOfferCard/statsBuilder.js.map +1 -0
- package/lib/commonjs/components/Layouts/HeadlineWithDescriptionCard/index.js +47 -0
- package/lib/commonjs/components/Layouts/HeadlineWithDescriptionCard/index.js.map +1 -0
- package/lib/commonjs/components/Layouts/index.js +27 -0
- package/lib/commonjs/components/Layouts/index.js.map +1 -0
- package/lib/commonjs/components/Modal/DescriptionPoints.js +28 -0
- package/lib/commonjs/components/Modal/DescriptionPoints.js.map +1 -0
- package/lib/commonjs/components/Modal/Disclaimer.js +27 -0
- package/lib/commonjs/components/Modal/Disclaimer.js.map +1 -0
- package/lib/commonjs/components/Modal/OfferDetailsModal.js +95 -0
- package/lib/commonjs/components/Modal/OfferDetailsModal.js.map +1 -0
- package/lib/commonjs/components/MoneyLionOfferCarousel.js +174 -0
- package/lib/commonjs/components/MoneyLionOfferCarousel.js.map +1 -0
- package/lib/commonjs/components/Skeleton/Skeleton.js +65 -0
- package/lib/commonjs/components/Skeleton/Skeleton.js.map +1 -0
- package/lib/commonjs/components/Skeleton/index.js +10 -0
- package/lib/commonjs/components/Skeleton/index.js.map +1 -0
- package/lib/commonjs/components/Text/index.js +184 -0
- package/lib/commonjs/components/Text/index.js.map +1 -0
- package/lib/commonjs/components/View/index.js +162 -0
- package/lib/commonjs/components/View/index.js.map +1 -0
- package/lib/commonjs/context/CNFProvider.js +2 -0
- package/lib/commonjs/context/CNFProvider.js.map +1 -0
- package/lib/commonjs/context/EventHandlerProvider.js +25 -0
- package/lib/commonjs/context/EventHandlerProvider.js.map +1 -0
- package/lib/commonjs/context/ThemeProvider.js +59 -0
- package/lib/commonjs/context/ThemeProvider.js.map +1 -0
- package/lib/commonjs/deps/configuration.js +2 -0
- package/lib/commonjs/deps/configuration.js.map +1 -0
- package/lib/commonjs/index.js +17 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/pageData.js +93 -0
- package/lib/commonjs/pageData.js.map +1 -0
- package/lib/commonjs/services/getDynamicOffers.js +55 -0
- package/lib/commonjs/services/getDynamicOffers.js.map +1 -0
- package/lib/commonjs/services/getProductTypes.js +50 -0
- package/lib/commonjs/services/getProductTypes.js.map +1 -0
- package/lib/commonjs/services/getProductTypesByQuery.js +55 -0
- package/lib/commonjs/services/getProductTypesByQuery.js.map +1 -0
- package/lib/commonjs/utils/addClientTagsToOfferLinks.js +25 -0
- package/lib/commonjs/utils/addClientTagsToOfferLinks.js.map +1 -0
- package/lib/commonjs/utils/formatOfferUrl.js +31 -0
- package/lib/commonjs/utils/formatOfferUrl.js.map +1 -0
- package/lib/commonjs/utils/getDefaultPaletteColor.js +20 -0
- package/lib/commonjs/utils/getDefaultPaletteColor.js.map +1 -0
- package/lib/commonjs/utils/getDefaultProductType.js +9 -0
- package/lib/commonjs/utils/getDefaultProductType.js.map +1 -0
- package/lib/commonjs/utils/getEnableUseCachedOffers.js +21 -0
- package/lib/commonjs/utils/getEnableUseCachedOffers.js.map +1 -0
- package/lib/commonjs/utils/getOffersBasedOnLayout.js +48 -0
- package/lib/commonjs/utils/getOffersBasedOnLayout.js.map +1 -0
- package/lib/commonjs/utils/getOffersByProductTypes.js +31 -0
- package/lib/commonjs/utils/getOffersByProductTypes.js.map +1 -0
- package/lib/commonjs/utils/getProductTypesDefinition.js +17 -0
- package/lib/commonjs/utils/getProductTypesDefinition.js.map +1 -0
- package/lib/commonjs/utils/index.js +116 -0
- package/lib/commonjs/utils/index.js.map +1 -0
- package/lib/commonjs/utils/layouts.js +27 -0
- package/lib/commonjs/utils/layouts.js.map +1 -0
- package/lib/commonjs/utils/parseStringProductTypes.js +14 -0
- package/lib/commonjs/utils/parseStringProductTypes.js.map +1 -0
- package/lib/commonjs/utils/resolveProductTypes.js +12 -0
- package/lib/commonjs/utils/resolveProductTypes.js.map +1 -0
- package/lib/commonjs/utils/selectDynamicOffers.js +13 -0
- package/lib/commonjs/utils/selectDynamicOffers.js.map +1 -0
- package/lib/commonjs/utils/sortOffersByRecommendationScore.js +12 -0
- package/lib/commonjs/utils/sortOffersByRecommendationScore.js.map +1 -0
- package/lib/commonjs/version.js +10 -0
- package/lib/commonjs/version.js.map +1 -0
- package/lib/module/apiEnvironment.js +15 -0
- package/lib/module/apiEnvironment.js.map +1 -0
- package/lib/module/components/Button/index.js +111 -0
- package/lib/module/components/Button/index.js.map +1 -0
- package/lib/module/components/Cards/VideosCard/VideoContent.js +32 -0
- package/lib/module/components/Cards/VideosCard/VideoContent.js.map +1 -0
- package/lib/module/components/Cards/VideosCard/VideosCard.js +55 -0
- package/lib/module/components/Cards/VideosCard/VideosCard.js.map +1 -0
- package/lib/module/components/Cards/index.js +2 -0
- package/lib/module/components/Cards/index.js.map +1 -0
- package/lib/module/components/Common/BaseOfferCard/Content/Content.js +13 -0
- package/lib/module/components/Common/BaseOfferCard/Content/Content.js.map +1 -0
- package/lib/module/components/Common/BaseOfferCard/Content/index.js +2 -0
- package/lib/module/components/Common/BaseOfferCard/Content/index.js.map +1 -0
- package/lib/module/components/Common/BaseOfferCard/Stat/Stat.js +76 -0
- package/lib/module/components/Common/BaseOfferCard/Stat/Stat.js.map +1 -0
- package/lib/module/components/Common/BaseOfferCard/Stat/index.js +2 -0
- package/lib/module/components/Common/BaseOfferCard/Stat/index.js.map +1 -0
- package/lib/module/components/Common/BaseOfferCard/StatsContainer/StatsContainer.js +10 -0
- package/lib/module/components/Common/BaseOfferCard/StatsContainer/StatsContainer.js.map +1 -0
- package/lib/module/components/Common/BaseOfferCard/StatsContainer/index.js +2 -0
- package/lib/module/components/Common/BaseOfferCard/StatsContainer/index.js.map +1 -0
- package/lib/module/components/Common/BaseOfferCard/ThumbsUpIcon.js +21 -0
- package/lib/module/components/Common/BaseOfferCard/ThumbsUpIcon.js.map +1 -0
- package/lib/module/components/Common/BaseOfferCard/index.js +248 -0
- package/lib/module/components/Common/BaseOfferCard/index.js.map +1 -0
- package/lib/module/components/Common/DynamicOfferCard/CallToAction.js +37 -0
- package/lib/module/components/Common/DynamicOfferCard/CallToAction.js.map +1 -0
- package/lib/module/components/Common/DynamicOfferCard/SeeMore.js +62 -0
- package/lib/module/components/Common/DynamicOfferCard/SeeMore.js.map +1 -0
- package/lib/module/components/Common/DynamicOfferCard/index.js +31 -0
- package/lib/module/components/Common/DynamicOfferCard/index.js.map +1 -0
- package/lib/module/components/Common/index.js +4 -0
- package/lib/module/components/Common/index.js.map +1 -0
- package/lib/module/components/Divider/index.js +33 -0
- package/lib/module/components/Divider/index.js.map +1 -0
- package/lib/module/components/DynamicOffers/DynamicOffers.js +24 -0
- package/lib/module/components/DynamicOffers/DynamicOffers.js.map +1 -0
- package/lib/module/components/DynamicOffers/DynamicOffersContainer.js +40 -0
- package/lib/module/components/DynamicOffers/DynamicOffersContainer.js.map +1 -0
- package/lib/module/components/DynamicOffers/Render/DynamicOffersRender.js +196 -0
- package/lib/module/components/DynamicOffers/Render/DynamicOffersRender.js.map +1 -0
- package/lib/module/components/DynamicOffers/Render/FallbackOfferTemplate.js +21 -0
- package/lib/module/components/DynamicOffers/Render/FallbackOfferTemplate.js.map +1 -0
- package/lib/module/components/DynamicOffers/Render/Offer.js +61 -0
- package/lib/module/components/DynamicOffers/Render/Offer.js.map +1 -0
- package/lib/module/components/DynamicOffers/Render/index.js +3 -0
- package/lib/module/components/DynamicOffers/Render/index.js.map +1 -0
- package/lib/module/components/Layouts/CreditCardOfferCard/index.js +57 -0
- package/lib/module/components/Layouts/CreditCardOfferCard/index.js.map +1 -0
- package/lib/module/components/Layouts/CreditCardOfferCard/statsBuilder.js +8 -0
- package/lib/module/components/Layouts/CreditCardOfferCard/statsBuilder.js.map +1 -0
- package/lib/module/components/Layouts/DefaultOfferCard/index.js +45 -0
- package/lib/module/components/Layouts/DefaultOfferCard/index.js.map +1 -0
- package/lib/module/components/Layouts/DefaultOfferCard/statsBuilder.js +10 -0
- package/lib/module/components/Layouts/DefaultOfferCard/statsBuilder.js.map +1 -0
- package/lib/module/components/Layouts/HeadlineWithDescriptionCard/index.js +39 -0
- package/lib/module/components/Layouts/HeadlineWithDescriptionCard/index.js.map +1 -0
- package/lib/module/components/Layouts/index.js +4 -0
- package/lib/module/components/Layouts/index.js.map +1 -0
- package/lib/module/components/Modal/DescriptionPoints.js +21 -0
- package/lib/module/components/Modal/DescriptionPoints.js.map +1 -0
- package/lib/module/components/Modal/Disclaimer.js +20 -0
- package/lib/module/components/Modal/Disclaimer.js.map +1 -0
- package/lib/module/components/Modal/OfferDetailsModal.js +87 -0
- package/lib/module/components/Modal/OfferDetailsModal.js.map +1 -0
- package/lib/module/components/MoneyLionOfferCarousel.js +165 -0
- package/lib/module/components/MoneyLionOfferCarousel.js.map +1 -0
- package/lib/module/components/Skeleton/Skeleton.js +57 -0
- package/lib/module/components/Skeleton/Skeleton.js.map +1 -0
- package/lib/module/components/Skeleton/index.js +3 -0
- package/lib/module/components/Skeleton/index.js.map +1 -0
- package/lib/module/components/Text/index.js +179 -0
- package/lib/module/components/Text/index.js.map +1 -0
- package/lib/module/components/View/index.js +155 -0
- package/lib/module/components/View/index.js.map +1 -0
- package/lib/module/context/CNFProvider.js +2 -0
- package/lib/module/context/CNFProvider.js.map +1 -0
- package/lib/module/context/EventHandlerProvider.js +15 -0
- package/lib/module/context/EventHandlerProvider.js.map +1 -0
- package/lib/module/context/ThemeProvider.js +49 -0
- package/lib/module/context/ThemeProvider.js.map +1 -0
- package/lib/module/deps/configuration.js +2 -0
- package/lib/module/deps/configuration.js.map +1 -0
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/pageData.js +86 -0
- package/lib/module/pageData.js.map +1 -0
- package/lib/module/services/getDynamicOffers.js +48 -0
- package/lib/module/services/getDynamicOffers.js.map +1 -0
- package/lib/module/services/getProductTypes.js +43 -0
- package/lib/module/services/getProductTypes.js.map +1 -0
- package/lib/module/services/getProductTypesByQuery.js +48 -0
- package/lib/module/services/getProductTypesByQuery.js.map +1 -0
- package/lib/module/utils/addClientTagsToOfferLinks.js +18 -0
- package/lib/module/utils/addClientTagsToOfferLinks.js.map +1 -0
- package/lib/module/utils/formatOfferUrl.js +25 -0
- package/lib/module/utils/formatOfferUrl.js.map +1 -0
- package/lib/module/utils/getDefaultPaletteColor.js +13 -0
- package/lib/module/utils/getDefaultPaletteColor.js.map +1 -0
- package/lib/module/utils/getDefaultProductType.js +2 -0
- package/lib/module/utils/getDefaultProductType.js.map +1 -0
- package/lib/module/utils/getEnableUseCachedOffers.js +14 -0
- package/lib/module/utils/getEnableUseCachedOffers.js.map +1 -0
- package/lib/module/utils/getOffersBasedOnLayout.js +39 -0
- package/lib/module/utils/getOffersBasedOnLayout.js.map +1 -0
- package/lib/module/utils/getOffersByProductTypes.js +24 -0
- package/lib/module/utils/getOffersByProductTypes.js.map +1 -0
- package/lib/module/utils/getProductTypesDefinition.js +10 -0
- package/lib/module/utils/getProductTypesDefinition.js.map +1 -0
- package/lib/module/utils/index.js +11 -0
- package/lib/module/utils/index.js.map +1 -0
- package/lib/module/utils/layouts.js +20 -0
- package/lib/module/utils/layouts.js.map +1 -0
- package/lib/module/utils/parseStringProductTypes.js +7 -0
- package/lib/module/utils/parseStringProductTypes.js.map +1 -0
- package/lib/module/utils/resolveProductTypes.js +5 -0
- package/lib/module/utils/resolveProductTypes.js.map +1 -0
- package/lib/module/utils/selectDynamicOffers.js +6 -0
- package/lib/module/utils/selectDynamicOffers.js.map +1 -0
- package/lib/module/utils/sortOffersByRecommendationScore.js +5 -0
- package/lib/module/utils/sortOffersByRecommendationScore.js.map +1 -0
- package/lib/module/version.js +3 -0
- package/lib/module/version.js.map +1 -0
- package/lib/typescript/builder/builder.d.ts +24 -0
- package/lib/typescript/builder/builder.d.ts.map +1 -0
- package/lib/typescript/builder/config/types.d.ts +89 -0
- package/lib/typescript/builder/config/types.d.ts.map +1 -0
- package/lib/typescript/builder/index.d.ts +3 -0
- package/lib/typescript/builder/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/configuration/src/brands/checkVisualEligibility.d.ts +12 -0
- package/lib/typescript/capabilities/configuration/src/brands/checkVisualEligibility.d.ts.map +1 -0
- package/lib/typescript/capabilities/configuration/src/brands/createDerivedBrands.d.ts +9 -0
- package/lib/typescript/capabilities/configuration/src/brands/createDerivedBrands.d.ts.map +1 -0
- package/lib/typescript/capabilities/configuration/src/brands/index.d.ts +3 -0
- package/lib/typescript/capabilities/configuration/src/brands/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/configuration/src/brands/types.d.ts +4 -0
- package/lib/typescript/capabilities/configuration/src/brands/types.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/domain/third-party-search/index.d.ts +2 -0
- package/lib/typescript/capabilities/core/src/domain/third-party-search/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts +19 -0
- package/lib/typescript/capabilities/core/src/domain/third-party-search/orderProductTypesByRankUtils.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/index.d.ts +2 -0
- package/lib/typescript/capabilities/core/src/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/CnfContext.d.ts +103 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/CnfContext.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/App.d.ts +13 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/App.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts +180 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Brand.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Configuration.d.ts +59 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Configuration.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Request.d.ts +16 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Request.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Session.d.ts +8 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Session.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Signals.d.ts +64 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Signals.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Subaccount.d.ts +18 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/Subaccount.d.ts.map +1 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/index.d.ts +8 -0
- package/lib/typescript/capabilities/core/src/system/cnfContext/schemas/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts +5 -0
- package/lib/typescript/capabilities/offer-catalog/src/api/offerCatalogApi.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/index.d.ts +6 -0
- package/lib/typescript/capabilities/offer-catalog/src/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/types/offerCatalogSchema.d.ts +91 -0
- package/lib/typescript/capabilities/offer-catalog/src/types/offerCatalogSchema.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/arrayToMarkdownList.d.ts +2 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/arrayToMarkdownList.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/contextUtil.d.ts +8 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/contextUtil.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/errorUtil.d.ts +6 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/errorUtil.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/formatUtils.d.ts +68 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/formatUtils.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/getOfferUrl.d.ts +24 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/getOfferUrl.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.d.ts +13 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/annualFee.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.d.ts +11 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/boolean.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.d.ts +14 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/common.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts +9 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/creditBureaus.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currency.d.ts +10 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currency.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts +12 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/currencyOrBasis.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts +9 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/freeTrialDays.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts +9 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/fromListStringWithAnd.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/index.d.ts +20 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts +11 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/monthlyOrAnnualCurrency.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.d.ts +9 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/percentage.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts +12 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/purchaseApr.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts +10 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrency.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts +12 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyByTime.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts +10 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeCurrencyUnabbreviated.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts +10 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangeMonths.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts +11 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rangePercent.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts +9 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/recommendedCredit.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts +9 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/formatters/rewardsDisplay.spec.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/index.d.ts +5 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/types.d.ts +9 -0
- package/lib/typescript/capabilities/offer-catalog/src/utils/stats/types.d.ts.map +1 -0
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts +4 -0
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts +1837 -0
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/offer-catalog/types/oas/offer-catalog.d.ts.map +1 -0
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/types/index.d.ts +5 -0
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/types/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts +208 -0
- package/lib/typescript/capabilities/offers/pipeline/src/sources/ratetables/withDeviceSignals.d.ts.map +1 -0
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/HyphenIcon.d.ts +7 -0
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/HyphenIcon.d.ts.map +1 -0
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/Stat.d.ts +12 -0
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/Stat.d.ts.map +1 -0
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/index.d.ts +2 -0
- package/lib/typescript/capabilities/offers/ux/src/elements/Stat/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.d.ts +5 -0
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/Abbreviation.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/components.d.ts +9 -0
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/components.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/index.d.ts +7 -0
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts +2 -0
- package/lib/typescript/capabilities/ui/elements/src/components/MarkdownText/markdownPreprocessor.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/index.d.ts +2 -0
- package/lib/typescript/capabilities/ui/elements/src/components/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/index.d.ts +10 -0
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts +14 -0
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts +1 -0
- package/lib/typescript/capabilities/ui/elements/src/components/thumbor/useSvgUriViewBox.test.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/index.d.ts +3 -0
- package/lib/typescript/capabilities/ui/elements/src/index.d.ts.map +1 -0
- package/lib/typescript/capabilities/ui/elements/src/offerCardAttributes.d.ts +10 -0
- package/lib/typescript/capabilities/ui/elements/src/offerCardAttributes.d.ts.map +1 -0
- package/lib/typescript/config/mocks/cnfContext.d.ts +3 -0
- package/lib/typescript/config/mocks/cnfContext.d.ts.map +1 -0
- package/lib/typescript/src/apiEnvironment.d.ts +13 -0
- package/lib/typescript/src/apiEnvironment.d.ts.map +1 -0
- package/lib/typescript/src/components/Button/index.d.ts +15 -0
- package/lib/typescript/src/components/Button/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Cards/VideosCard/VideoContent.d.ts +9 -0
- package/lib/typescript/src/components/Cards/VideosCard/VideoContent.d.ts.map +1 -0
- package/lib/typescript/src/components/Cards/VideosCard/VideosCard.d.ts +1 -0
- package/lib/typescript/src/components/Cards/VideosCard/VideosCard.d.ts.map +1 -0
- package/lib/typescript/src/components/Cards/index.d.ts +1 -0
- package/lib/typescript/src/components/Cards/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Content/Content.d.ts +4 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Content/Content.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Content/index.d.ts +2 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Content/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Stat/Stat.d.ts +8 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Stat/Stat.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Stat/index.d.ts +2 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/Stat/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/StatsContainer.d.ts +4 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/StatsContainer.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/index.d.ts +2 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/StatsContainer/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/ThumbsUpIcon.d.ts +3 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/ThumbsUpIcon.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts +42 -0
- package/lib/typescript/src/components/Common/BaseOfferCard/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts +13 -0
- package/lib/typescript/src/components/Common/DynamicOfferCard/CallToAction.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts +8 -0
- package/lib/typescript/src/components/Common/DynamicOfferCard/SeeMore.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts +12 -0
- package/lib/typescript/src/components/Common/DynamicOfferCard/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Common/index.d.ts +4 -0
- package/lib/typescript/src/components/Common/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Divider/index.d.ts +16 -0
- package/lib/typescript/src/components/Divider/index.d.ts.map +1 -0
- package/lib/typescript/src/components/DynamicOffers/DynamicOffers.d.ts +12 -0
- package/lib/typescript/src/components/DynamicOffers/DynamicOffers.d.ts.map +1 -0
- package/lib/typescript/src/components/DynamicOffers/DynamicOffersContainer.d.ts +10 -0
- package/lib/typescript/src/components/DynamicOffers/DynamicOffersContainer.d.ts.map +1 -0
- package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts +19 -0
- package/lib/typescript/src/components/DynamicOffers/Render/DynamicOffersRender.d.ts.map +1 -0
- package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts +9 -0
- package/lib/typescript/src/components/DynamicOffers/Render/FallbackOfferTemplate.d.ts.map +1 -0
- package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts +17 -0
- package/lib/typescript/src/components/DynamicOffers/Render/Offer.d.ts.map +1 -0
- package/lib/typescript/src/components/DynamicOffers/Render/index.d.ts +3 -0
- package/lib/typescript/src/components/DynamicOffers/Render/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts +13 -0
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts +6 -0
- package/lib/typescript/src/components/Layouts/CreditCardOfferCard/statsBuilder.d.ts.map +1 -0
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts +13 -0
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts +7 -0
- package/lib/typescript/src/components/Layouts/DefaultOfferCard/statsBuilder.d.ts.map +1 -0
- package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts +13 -0
- package/lib/typescript/src/components/Layouts/HeadlineWithDescriptionCard/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Layouts/index.d.ts +4 -0
- package/lib/typescript/src/components/Layouts/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Modal/DescriptionPoints.d.ts +5 -0
- package/lib/typescript/src/components/Modal/DescriptionPoints.d.ts.map +1 -0
- package/lib/typescript/src/components/Modal/Disclaimer.d.ts +5 -0
- package/lib/typescript/src/components/Modal/Disclaimer.d.ts.map +1 -0
- package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts +11 -0
- package/lib/typescript/src/components/Modal/OfferDetailsModal.d.ts.map +1 -0
- package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts +20 -0
- package/lib/typescript/src/components/MoneyLionOfferCarousel.d.ts.map +1 -0
- package/lib/typescript/src/components/Skeleton/Skeleton.d.ts +12 -0
- package/lib/typescript/src/components/Skeleton/Skeleton.d.ts.map +1 -0
- package/lib/typescript/src/components/Skeleton/index.d.ts +3 -0
- package/lib/typescript/src/components/Skeleton/index.d.ts.map +1 -0
- package/lib/typescript/src/components/Text/index.d.ts +17 -0
- package/lib/typescript/src/components/Text/index.d.ts.map +1 -0
- package/lib/typescript/src/components/View/index.d.ts +23 -0
- package/lib/typescript/src/components/View/index.d.ts.map +1 -0
- package/lib/typescript/src/context/CNFProvider.d.ts +1 -0
- package/lib/typescript/src/context/CNFProvider.d.ts.map +1 -0
- package/lib/typescript/src/context/EventHandlerProvider.d.ts +71 -0
- package/lib/typescript/src/context/EventHandlerProvider.d.ts.map +1 -0
- package/lib/typescript/src/context/ThemeProvider.d.ts +31 -0
- package/lib/typescript/src/context/ThemeProvider.d.ts.map +1 -0
- package/lib/typescript/src/deps/configuration.d.ts +1 -0
- package/lib/typescript/src/deps/configuration.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +2 -0
- package/lib/typescript/src/index.d.ts.map +1 -0
- package/lib/typescript/src/pageData.d.ts +19 -0
- package/lib/typescript/src/pageData.d.ts.map +1 -0
- package/lib/typescript/src/services/getDynamicOffers.d.ts +27 -0
- package/lib/typescript/src/services/getDynamicOffers.d.ts.map +1 -0
- package/lib/typescript/src/services/getProductTypes.d.ts +19 -0
- package/lib/typescript/src/services/getProductTypes.d.ts.map +1 -0
- package/lib/typescript/src/services/getProductTypesByQuery.d.ts +28 -0
- package/lib/typescript/src/services/getProductTypesByQuery.d.ts.map +1 -0
- package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts +9 -0
- package/lib/typescript/src/utils/addClientTagsToOfferLinks.d.ts.map +1 -0
- package/lib/typescript/src/utils/formatOfferUrl.d.ts +64 -0
- package/lib/typescript/src/utils/formatOfferUrl.d.ts.map +1 -0
- package/lib/typescript/src/utils/getDefaultPaletteColor.d.ts +3 -0
- package/lib/typescript/src/utils/getDefaultPaletteColor.d.ts.map +1 -0
- package/lib/typescript/src/utils/getDefaultProductType.d.ts +3 -0
- package/lib/typescript/src/utils/getDefaultProductType.d.ts.map +1 -0
- package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts +12 -0
- package/lib/typescript/src/utils/getEnableUseCachedOffers.d.ts.map +1 -0
- package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts +26 -0
- package/lib/typescript/src/utils/getOffersBasedOnLayout.d.ts.map +1 -0
- package/lib/typescript/src/utils/getOffersByProductTypes.d.ts +17 -0
- package/lib/typescript/src/utils/getOffersByProductTypes.d.ts.map +1 -0
- package/lib/typescript/src/utils/getProductTypesDefinition.d.ts +14 -0
- package/lib/typescript/src/utils/getProductTypesDefinition.d.ts.map +1 -0
- package/lib/typescript/src/utils/index.d.ts +11 -0
- package/lib/typescript/src/utils/index.d.ts.map +1 -0
- package/lib/typescript/src/utils/layouts.d.ts +19 -0
- package/lib/typescript/src/utils/layouts.d.ts.map +1 -0
- package/lib/typescript/src/utils/parseStringProductTypes.d.ts +2 -0
- package/lib/typescript/src/utils/parseStringProductTypes.d.ts.map +1 -0
- package/lib/typescript/src/utils/resolveProductTypes.d.ts +14 -0
- package/lib/typescript/src/utils/resolveProductTypes.d.ts.map +1 -0
- package/lib/typescript/src/utils/selectDynamicOffers.d.ts +3 -0
- package/lib/typescript/src/utils/selectDynamicOffers.d.ts.map +1 -0
- package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts +3 -0
- package/lib/typescript/src/utils/sortOffersByRecommendationScore.d.ts.map +1 -0
- package/lib/typescript/src/version.d.ts +2 -0
- package/lib/typescript/src/version.d.ts.map +1 -0
- package/package.json +139 -0
- package/src/apiEnvironment.ts +17 -0
- package/src/components/Button/index.tsx +140 -0
- package/src/components/Cards/VideosCard/VideoContent.tsx +38 -0
- package/src/components/Cards/VideosCard/VideosCard.tsx +54 -0
- package/src/components/Cards/index.ts +1 -0
- package/src/components/Common/BaseOfferCard/Content/Content.tsx +10 -0
- package/src/components/Common/BaseOfferCard/Content/index.tsx +1 -0
- package/src/components/Common/BaseOfferCard/Stat/Stat.tsx +91 -0
- package/src/components/Common/BaseOfferCard/Stat/index.tsx +1 -0
- package/src/components/Common/BaseOfferCard/StatsContainer/StatsContainer.tsx +8 -0
- package/src/components/Common/BaseOfferCard/StatsContainer/index.tsx +1 -0
- package/src/components/Common/BaseOfferCard/ThumbsUpIcon.tsx +27 -0
- package/src/components/Common/BaseOfferCard/index.tsx +282 -0
- package/src/components/Common/DynamicOfferCard/CallToAction.tsx +47 -0
- package/src/components/Common/DynamicOfferCard/SeeMore.tsx +76 -0
- package/src/components/Common/DynamicOfferCard/index.tsx +64 -0
- package/src/components/Common/index.ts +3 -0
- package/src/components/Divider/index.tsx +35 -0
- package/src/components/DynamicOffers/DynamicOffers.tsx +46 -0
- package/src/components/DynamicOffers/DynamicOffersContainer.tsx +41 -0
- package/src/components/DynamicOffers/Render/DynamicOffersRender.tsx +261 -0
- package/src/components/DynamicOffers/Render/FallbackOfferTemplate.tsx +29 -0
- package/src/components/DynamicOffers/Render/Offer.tsx +100 -0
- package/src/components/DynamicOffers/Render/index.ts +2 -0
- package/src/components/Layouts/CreditCardOfferCard/index.tsx +96 -0
- package/src/components/Layouts/CreditCardOfferCard/statsBuilder.tsx +10 -0
- package/src/components/Layouts/DefaultOfferCard/index.tsx +72 -0
- package/src/components/Layouts/DefaultOfferCard/statsBuilder.tsx +14 -0
- package/src/components/Layouts/HeadlineWithDescriptionCard/index.tsx +59 -0
- package/src/components/Layouts/index.ts +3 -0
- package/src/components/Modal/DescriptionPoints.tsx +24 -0
- package/src/components/Modal/Disclaimer.tsx +15 -0
- package/src/components/Modal/OfferDetailsModal.tsx +111 -0
- package/src/components/MoneyLionOfferCarousel.tsx +202 -0
- package/src/components/Skeleton/Skeleton.tsx +86 -0
- package/src/components/Skeleton/index.ts +2 -0
- package/src/components/Text/index.tsx +209 -0
- package/src/components/View/index.tsx +144 -0
- package/src/context/CNFProvider.tsx +0 -0
- package/src/context/EventHandlerProvider.tsx +89 -0
- package/src/context/ThemeProvider.tsx +91 -0
- package/src/deps/configuration.ts +0 -0
- package/src/index.tsx +1 -0
- package/src/pageData.ts +98 -0
- package/src/services/getDynamicOffers.ts +93 -0
- package/src/services/getProductTypes.ts +53 -0
- package/src/services/getProductTypesByQuery.ts +53 -0
- package/src/utils/addClientTagsToOfferLinks.ts +22 -0
- package/src/utils/formatOfferUrl.ts +32 -0
- package/src/utils/getDefaultPaletteColor.ts +15 -0
- package/src/utils/getDefaultProductType.ts +4 -0
- package/src/utils/getEnableUseCachedOffers.ts +13 -0
- package/src/utils/getOffersBasedOnLayout.ts +51 -0
- package/src/utils/getOffersByProductTypes.ts +36 -0
- package/src/utils/getProductTypesDefinition.ts +13 -0
- package/src/utils/index.ts +10 -0
- package/src/utils/layouts.ts +22 -0
- package/src/utils/parseStringProductTypes.ts +7 -0
- package/src/utils/resolveProductTypes.ts +18 -0
- package/src/utils/selectDynamicOffers.ts +18 -0
- package/src/utils/sortOffersByRecommendationScore.ts +6 -0
- package/src/version.ts +2 -0
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export type Palette = Schema.Schema.Type<typeof Palette>;
|
|
3
|
+
declare const Palette: Schema.Struct<{
|
|
4
|
+
promotional: Schema.optional<typeof Schema.String>;
|
|
5
|
+
generation: Schema.optional<Schema.Literal<["generate", "provided"]>>;
|
|
6
|
+
colorScheme: Schema.optional<Schema.Literal<["balanced", "light", "dark"]>>;
|
|
7
|
+
positive: Schema.optional<typeof Schema.String>;
|
|
8
|
+
critical: Schema.optional<typeof Schema.String>;
|
|
9
|
+
highlight: Schema.optional<typeof Schema.String>;
|
|
10
|
+
neutral: Schema.optional<typeof Schema.String>;
|
|
11
|
+
}>;
|
|
12
|
+
export type Links = Schema.Schema.Type<typeof Links>;
|
|
13
|
+
declare const Links: Schema.Struct<{
|
|
14
|
+
home: Schema.optional<typeof Schema.String>;
|
|
15
|
+
terms: Schema.optional<typeof Schema.String>;
|
|
16
|
+
support: Schema.optional<typeof Schema.String>;
|
|
17
|
+
privacy: Schema.optional<typeof Schema.String>;
|
|
18
|
+
}>;
|
|
19
|
+
export type AiInference = Schema.Schema.Type<typeof AiInference>;
|
|
20
|
+
declare const AiInference: Schema.Struct<{
|
|
21
|
+
status: typeof Schema.String;
|
|
22
|
+
error: Schema.optional<typeof Schema.String>;
|
|
23
|
+
}>;
|
|
24
|
+
export type Media = Schema.Schema.Type<typeof Media>;
|
|
25
|
+
declare const Media: Schema.Struct<{
|
|
26
|
+
id: typeof Schema.String;
|
|
27
|
+
autoCrop: typeof Schema.Boolean;
|
|
28
|
+
prefix: Schema.optional<typeof Schema.String>;
|
|
29
|
+
alt: Schema.optional<typeof Schema.String>;
|
|
30
|
+
url: Schema.optional<typeof Schema.String>;
|
|
31
|
+
filename: Schema.optional<typeof Schema.String>;
|
|
32
|
+
mimeType: Schema.optional<typeof Schema.String>;
|
|
33
|
+
filesize: Schema.optional<typeof Schema.Number>;
|
|
34
|
+
width: Schema.optional<typeof Schema.Number>;
|
|
35
|
+
height: Schema.optional<typeof Schema.Number>;
|
|
36
|
+
createdAt: Schema.optional<typeof Schema.String>;
|
|
37
|
+
updatedAt: Schema.optional<typeof Schema.String>;
|
|
38
|
+
aiInference: Schema.optional<Schema.Struct<{
|
|
39
|
+
status: typeof Schema.String;
|
|
40
|
+
error: Schema.optional<typeof Schema.String>;
|
|
41
|
+
}>>;
|
|
42
|
+
}>;
|
|
43
|
+
export type Logos = Schema.Schema.Type<typeof Logos>;
|
|
44
|
+
declare const Logos: Schema.Struct<{
|
|
45
|
+
horizontal: Schema.optional<Schema.Struct<{
|
|
46
|
+
id: typeof Schema.String;
|
|
47
|
+
autoCrop: typeof Schema.Boolean;
|
|
48
|
+
prefix: Schema.optional<typeof Schema.String>;
|
|
49
|
+
alt: Schema.optional<typeof Schema.String>;
|
|
50
|
+
url: Schema.optional<typeof Schema.String>;
|
|
51
|
+
filename: Schema.optional<typeof Schema.String>;
|
|
52
|
+
mimeType: Schema.optional<typeof Schema.String>;
|
|
53
|
+
filesize: Schema.optional<typeof Schema.Number>;
|
|
54
|
+
width: Schema.optional<typeof Schema.Number>;
|
|
55
|
+
height: Schema.optional<typeof Schema.Number>;
|
|
56
|
+
createdAt: Schema.optional<typeof Schema.String>;
|
|
57
|
+
updatedAt: Schema.optional<typeof Schema.String>;
|
|
58
|
+
aiInference: Schema.optional<Schema.Struct<{
|
|
59
|
+
status: typeof Schema.String;
|
|
60
|
+
error: Schema.optional<typeof Schema.String>;
|
|
61
|
+
}>>;
|
|
62
|
+
}>>;
|
|
63
|
+
icon: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
64
|
+
id: typeof Schema.String;
|
|
65
|
+
autoCrop: typeof Schema.Boolean;
|
|
66
|
+
prefix: Schema.optional<typeof Schema.String>;
|
|
67
|
+
alt: Schema.optional<typeof Schema.String>;
|
|
68
|
+
url: Schema.optional<typeof Schema.String>;
|
|
69
|
+
filename: Schema.optional<typeof Schema.String>;
|
|
70
|
+
mimeType: Schema.optional<typeof Schema.String>;
|
|
71
|
+
filesize: Schema.optional<typeof Schema.Number>;
|
|
72
|
+
width: Schema.optional<typeof Schema.Number>;
|
|
73
|
+
height: Schema.optional<typeof Schema.Number>;
|
|
74
|
+
createdAt: Schema.optional<typeof Schema.String>;
|
|
75
|
+
updatedAt: Schema.optional<typeof Schema.String>;
|
|
76
|
+
aiInference: Schema.optional<Schema.Struct<{
|
|
77
|
+
status: typeof Schema.String;
|
|
78
|
+
error: Schema.optional<typeof Schema.String>;
|
|
79
|
+
}>>;
|
|
80
|
+
}>>>;
|
|
81
|
+
}>;
|
|
82
|
+
export type FontFamily = Schema.Schema.Type<typeof FontFamily>;
|
|
83
|
+
declare const FontFamily: Schema.Literal<["nunito", "lato", "sourceSans3", "openSans", "roboto", "arimo", "montserrat"]>;
|
|
84
|
+
export type Font = Schema.Schema.Type<typeof Font>;
|
|
85
|
+
declare const Font: Schema.Struct<{
|
|
86
|
+
family: Schema.optional<Schema.Literal<["nunito", "lato", "sourceSans3", "openSans", "roboto", "arimo", "montserrat"]>>;
|
|
87
|
+
}>;
|
|
88
|
+
export type AllowedMarks = Schema.Schema.Type<typeof AllowedMarks>;
|
|
89
|
+
declare const AllowedMarks: Schema.Struct<{
|
|
90
|
+
logo: typeof Schema.Boolean;
|
|
91
|
+
name: typeof Schema.Boolean;
|
|
92
|
+
}>;
|
|
93
|
+
export type CtaRoundness = Schema.Schema.Type<typeof CtaRoundness>;
|
|
94
|
+
declare const CtaRoundness: Schema.Struct<{
|
|
95
|
+
small: Schema.optional<typeof Schema.Number>;
|
|
96
|
+
medium: Schema.optional<typeof Schema.Number>;
|
|
97
|
+
large: Schema.optional<typeof Schema.Number>;
|
|
98
|
+
}>;
|
|
99
|
+
type BrandFields = Schema.Schema.Type<typeof BrandFields>;
|
|
100
|
+
declare const BrandFields: Schema.Struct<{
|
|
101
|
+
id: typeof Schema.String;
|
|
102
|
+
domain: typeof Schema.String;
|
|
103
|
+
displayName: typeof Schema.String;
|
|
104
|
+
isLicensed: Schema.optional<typeof Schema.Boolean>;
|
|
105
|
+
hideLicensedLogo: Schema.optional<typeof Schema.Boolean>;
|
|
106
|
+
palette: Schema.optional<Schema.Struct<{
|
|
107
|
+
promotional: Schema.optional<typeof Schema.String>;
|
|
108
|
+
generation: Schema.optional<Schema.Literal<["generate", "provided"]>>;
|
|
109
|
+
colorScheme: Schema.optional<Schema.Literal<["balanced", "light", "dark"]>>;
|
|
110
|
+
positive: Schema.optional<typeof Schema.String>;
|
|
111
|
+
critical: Schema.optional<typeof Schema.String>;
|
|
112
|
+
highlight: Schema.optional<typeof Schema.String>;
|
|
113
|
+
neutral: Schema.optional<typeof Schema.String>;
|
|
114
|
+
}>>;
|
|
115
|
+
links: Schema.optional<Schema.Struct<{
|
|
116
|
+
home: Schema.optional<typeof Schema.String>;
|
|
117
|
+
terms: Schema.optional<typeof Schema.String>;
|
|
118
|
+
support: Schema.optional<typeof Schema.String>;
|
|
119
|
+
privacy: Schema.optional<typeof Schema.String>;
|
|
120
|
+
}>>;
|
|
121
|
+
logos: Schema.optional<Schema.Struct<{
|
|
122
|
+
horizontal: Schema.optional<Schema.Struct<{
|
|
123
|
+
id: typeof Schema.String;
|
|
124
|
+
autoCrop: typeof Schema.Boolean;
|
|
125
|
+
prefix: Schema.optional<typeof Schema.String>;
|
|
126
|
+
alt: Schema.optional<typeof Schema.String>;
|
|
127
|
+
url: Schema.optional<typeof Schema.String>;
|
|
128
|
+
filename: Schema.optional<typeof Schema.String>;
|
|
129
|
+
mimeType: Schema.optional<typeof Schema.String>;
|
|
130
|
+
filesize: Schema.optional<typeof Schema.Number>;
|
|
131
|
+
width: Schema.optional<typeof Schema.Number>;
|
|
132
|
+
height: Schema.optional<typeof Schema.Number>;
|
|
133
|
+
createdAt: Schema.optional<typeof Schema.String>;
|
|
134
|
+
updatedAt: Schema.optional<typeof Schema.String>;
|
|
135
|
+
aiInference: Schema.optional<Schema.Struct<{
|
|
136
|
+
status: typeof Schema.String;
|
|
137
|
+
error: Schema.optional<typeof Schema.String>;
|
|
138
|
+
}>>;
|
|
139
|
+
}>>;
|
|
140
|
+
icon: Schema.optional<Schema.NullOr<Schema.Struct<{
|
|
141
|
+
id: typeof Schema.String;
|
|
142
|
+
autoCrop: typeof Schema.Boolean;
|
|
143
|
+
prefix: Schema.optional<typeof Schema.String>;
|
|
144
|
+
alt: Schema.optional<typeof Schema.String>;
|
|
145
|
+
url: Schema.optional<typeof Schema.String>;
|
|
146
|
+
filename: Schema.optional<typeof Schema.String>;
|
|
147
|
+
mimeType: Schema.optional<typeof Schema.String>;
|
|
148
|
+
filesize: Schema.optional<typeof Schema.Number>;
|
|
149
|
+
width: Schema.optional<typeof Schema.Number>;
|
|
150
|
+
height: Schema.optional<typeof Schema.Number>;
|
|
151
|
+
createdAt: Schema.optional<typeof Schema.String>;
|
|
152
|
+
updatedAt: Schema.optional<typeof Schema.String>;
|
|
153
|
+
aiInference: Schema.optional<Schema.Struct<{
|
|
154
|
+
status: typeof Schema.String;
|
|
155
|
+
error: Schema.optional<typeof Schema.String>;
|
|
156
|
+
}>>;
|
|
157
|
+
}>>>;
|
|
158
|
+
}>>;
|
|
159
|
+
font: Schema.optional<Schema.Struct<{
|
|
160
|
+
family: Schema.optional<Schema.Literal<["nunito", "lato", "sourceSans3", "openSans", "roboto", "arimo", "montserrat"]>>;
|
|
161
|
+
}>>;
|
|
162
|
+
type: Schema.optional<Schema.Literal<["business", "product", "individual"]>>;
|
|
163
|
+
allowedMarks: Schema.Struct<{
|
|
164
|
+
logo: typeof Schema.Boolean;
|
|
165
|
+
name: typeof Schema.Boolean;
|
|
166
|
+
}>;
|
|
167
|
+
ctaRoundness: Schema.optional<Schema.Struct<{
|
|
168
|
+
small: Schema.optional<typeof Schema.Number>;
|
|
169
|
+
medium: Schema.optional<typeof Schema.Number>;
|
|
170
|
+
large: Schema.optional<typeof Schema.Number>;
|
|
171
|
+
}>>;
|
|
172
|
+
createdAt: Schema.optional<typeof Schema.String>;
|
|
173
|
+
updatedAt: Schema.optional<typeof Schema.String>;
|
|
174
|
+
}>;
|
|
175
|
+
export type Brand = BrandFields & {
|
|
176
|
+
licensedBrand?: Brand | null;
|
|
177
|
+
};
|
|
178
|
+
export declare const Brand: Schema.suspend<Brand, Brand, never>;
|
|
179
|
+
export {};
|
|
180
|
+
//# sourceMappingURL=Brand.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Brand.d.ts","sourceRoot":"","sources":["../../../../../../../../capabilities/core/src/system/cnfContext/schemas/Brand.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAC;AACzD,QAAA,MAAM,OAAO;;;;;;;;EAQX,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AACrD,QAAA,MAAM,KAAK;;;;;EAKT,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AACjE,QAAA,MAAM,WAAW;;;EAGf,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AACrD,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;EAcT,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,KAAK,CAAC,CAAC;AACrD,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGT,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAC/D,QAAA,MAAM,UAAU,gGAQf,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;AACnD,QAAA,MAAM,IAAI;;EAER,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AACnE,QAAA,MAAM,YAAY;;;EAGhB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC,CAAC;AACnE,QAAA,MAAM,YAAY;;;;EAIhB,CAAC;AAEH,KAAK,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AAC1D,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAef,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,WAAW,GAAG;IACjC,aAAa,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,KAAK,qCAiBhB,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const DynamicOffersConfigurationSchema: Schema.Struct<{
|
|
3
|
+
hideFooter: Schema.optionalWith<typeof Schema.Boolean, {
|
|
4
|
+
default: () => false;
|
|
5
|
+
}>;
|
|
6
|
+
enableUseCachedOffers: Schema.optionalWith<typeof Schema.Boolean, {
|
|
7
|
+
default: () => false;
|
|
8
|
+
}>;
|
|
9
|
+
defaultProductTypeSlug: Schema.optionalWith<typeof Schema.String, {
|
|
10
|
+
default: () => string;
|
|
11
|
+
}>;
|
|
12
|
+
productTypesDefinition: Schema.optionalWith<Schema.Array$<Schema.Struct<{
|
|
13
|
+
id: typeof Schema.String;
|
|
14
|
+
partnerPageUrl: typeof Schema.String;
|
|
15
|
+
productTypeSlug: typeof Schema.String;
|
|
16
|
+
}>>, {
|
|
17
|
+
default: () => never[];
|
|
18
|
+
}>;
|
|
19
|
+
partnersOverrideDefinition: Schema.optionalWith<Schema.Array$<Schema.Struct<{
|
|
20
|
+
id: typeof Schema.String;
|
|
21
|
+
overrideUrl: typeof Schema.String;
|
|
22
|
+
financialInstitutionUuid: typeof Schema.String;
|
|
23
|
+
}>>, {
|
|
24
|
+
default: () => never[];
|
|
25
|
+
}>;
|
|
26
|
+
}>;
|
|
27
|
+
export type DynamicOffersConfigurationSchema = Schema.Schema.Type<typeof DynamicOffersConfigurationSchema>;
|
|
28
|
+
export declare const Configuration: Schema.Struct<{
|
|
29
|
+
app: Schema.Union<[typeof Schema.String, Schema.Struct<{
|
|
30
|
+
name: typeof Schema.String;
|
|
31
|
+
}>]>;
|
|
32
|
+
configuration: Schema.Struct<{
|
|
33
|
+
hideFooter: Schema.optionalWith<typeof Schema.Boolean, {
|
|
34
|
+
default: () => false;
|
|
35
|
+
}>;
|
|
36
|
+
enableUseCachedOffers: Schema.optionalWith<typeof Schema.Boolean, {
|
|
37
|
+
default: () => false;
|
|
38
|
+
}>;
|
|
39
|
+
defaultProductTypeSlug: Schema.optionalWith<typeof Schema.String, {
|
|
40
|
+
default: () => string;
|
|
41
|
+
}>;
|
|
42
|
+
productTypesDefinition: Schema.optionalWith<Schema.Array$<Schema.Struct<{
|
|
43
|
+
id: typeof Schema.String;
|
|
44
|
+
partnerPageUrl: typeof Schema.String;
|
|
45
|
+
productTypeSlug: typeof Schema.String;
|
|
46
|
+
}>>, {
|
|
47
|
+
default: () => never[];
|
|
48
|
+
}>;
|
|
49
|
+
partnersOverrideDefinition: Schema.optionalWith<Schema.Array$<Schema.Struct<{
|
|
50
|
+
id: typeof Schema.String;
|
|
51
|
+
overrideUrl: typeof Schema.String;
|
|
52
|
+
financialInstitutionUuid: typeof Schema.String;
|
|
53
|
+
}>>, {
|
|
54
|
+
default: () => never[];
|
|
55
|
+
}>;
|
|
56
|
+
}>;
|
|
57
|
+
}>;
|
|
58
|
+
export type Configuration = Schema.Schema.Type<typeof Configuration>;
|
|
59
|
+
//# sourceMappingURL=Configuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Configuration.d.ts","sourceRoot":"","sources":["../../../../../../../../capabilities/core/src/system/cnfContext/schemas/Configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAchC,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;EAkB3C,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAChE,OAAO,gCAAgC,CACvC,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export type CnfRequest = Schema.Schema.Type<typeof CnfRequest>;
|
|
3
|
+
export declare const CnfRequest: Schema.Struct<{
|
|
4
|
+
referer: Schema.optional<typeof Schema.String>;
|
|
5
|
+
channel: Schema.optional<typeof Schema.String>;
|
|
6
|
+
zone: Schema.optional<typeof Schema.String>;
|
|
7
|
+
cnfAppBaseUrl: Schema.optionalWith<typeof Schema.String, {
|
|
8
|
+
default: () => string;
|
|
9
|
+
}>;
|
|
10
|
+
path: Schema.optional<typeof Schema.String>;
|
|
11
|
+
pathname: Schema.optional<typeof Schema.String>;
|
|
12
|
+
query: Schema.optional<typeof Schema.String>;
|
|
13
|
+
searchParams: Schema.Struct<{}>;
|
|
14
|
+
host: Schema.optional<typeof Schema.String>;
|
|
15
|
+
}>;
|
|
16
|
+
//# sourceMappingURL=Request.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.d.ts","sourceRoot":"","sources":["../../../../../../../../capabilities/core/src/system/cnfContext/schemas/Request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC;AAC/D,eAAO,MAAM,UAAU;;;;;;;;;;;;EAYrB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export type SessionId = Schema.Schema.Type<typeof SessionId>;
|
|
3
|
+
export declare const SessionId: Schema.brand<typeof Schema.UUID, "SessionId">;
|
|
4
|
+
export type Session = Schema.Schema.Type<typeof Session>;
|
|
5
|
+
export declare const Session: Schema.Struct<{
|
|
6
|
+
id: Schema.brand<typeof Schema.UUID, "SessionId">;
|
|
7
|
+
}>;
|
|
8
|
+
//# sourceMappingURL=Session.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Session.d.ts","sourceRoot":"","sources":["../../../../../../../../capabilities/core/src/system/cnfContext/schemas/Session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAC7D,eAAO,MAAM,SAAS,+CAA8C,CAAC;AAErE,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAC;AACzD,eAAO,MAAM,OAAO;;EAElB,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export type PartnerSignals = Schema.Schema.Type<typeof PartnerSignals>;
|
|
3
|
+
export declare const PartnerSignals: Schema.Struct<{
|
|
4
|
+
clientTags: Schema.TypeLiteral<{}, readonly [{
|
|
5
|
+
readonly key: typeof Schema.String;
|
|
6
|
+
readonly value: typeof Schema.String;
|
|
7
|
+
}]>;
|
|
8
|
+
}>;
|
|
9
|
+
export type DeviceId = Schema.Schema.Type<typeof DeviceId>;
|
|
10
|
+
export declare const DeviceId: typeof Schema.UUID;
|
|
11
|
+
export type DeviceSignals = Schema.Schema.Type<typeof DeviceSignals>;
|
|
12
|
+
declare const DeviceSignals: Schema.Struct<{
|
|
13
|
+
id: typeof Schema.UUID;
|
|
14
|
+
ipAddress: Schema.optional<typeof Schema.String>;
|
|
15
|
+
os: Schema.optional<typeof Schema.String>;
|
|
16
|
+
isMobile: Schema.optional<typeof Schema.Boolean>;
|
|
17
|
+
country: Schema.optional<typeof Schema.String>;
|
|
18
|
+
state: Schema.optional<Schema.Struct<{
|
|
19
|
+
name: Schema.optional<typeof Schema.String>;
|
|
20
|
+
code: Schema.optional<typeof Schema.String>;
|
|
21
|
+
}>>;
|
|
22
|
+
postalCode: typeof Schema.String;
|
|
23
|
+
city: typeof Schema.String;
|
|
24
|
+
fingerprintId: Schema.optional<typeof Schema.String>;
|
|
25
|
+
userAgent: Schema.optional<typeof Schema.String>;
|
|
26
|
+
}>;
|
|
27
|
+
export type LeadUuid = Schema.Schema.Type<typeof LeadUuid>;
|
|
28
|
+
export declare const LeadUuid: typeof Schema.UUID;
|
|
29
|
+
export type LeadSignals = Schema.Schema.Type<typeof LeadSignals>;
|
|
30
|
+
export declare const LeadSignals: Schema.Struct<{
|
|
31
|
+
uuid: typeof Schema.UUID;
|
|
32
|
+
}>;
|
|
33
|
+
export type ReferralSignals = Schema.Schema.Type<typeof ReferralSignals>;
|
|
34
|
+
export declare const ReferralSignals: Schema.Struct<{}>;
|
|
35
|
+
export type Signals = Schema.Schema.Type<typeof Signals>;
|
|
36
|
+
export declare const Signals: Schema.Struct<{
|
|
37
|
+
partnerSignals: Schema.Struct<{
|
|
38
|
+
clientTags: Schema.TypeLiteral<{}, readonly [{
|
|
39
|
+
readonly key: typeof Schema.String;
|
|
40
|
+
readonly value: typeof Schema.String;
|
|
41
|
+
}]>;
|
|
42
|
+
}>;
|
|
43
|
+
deviceSignals: Schema.Struct<{
|
|
44
|
+
id: typeof Schema.UUID;
|
|
45
|
+
ipAddress: Schema.optional<typeof Schema.String>;
|
|
46
|
+
os: Schema.optional<typeof Schema.String>;
|
|
47
|
+
isMobile: Schema.optional<typeof Schema.Boolean>;
|
|
48
|
+
country: Schema.optional<typeof Schema.String>;
|
|
49
|
+
state: Schema.optional<Schema.Struct<{
|
|
50
|
+
name: Schema.optional<typeof Schema.String>;
|
|
51
|
+
code: Schema.optional<typeof Schema.String>;
|
|
52
|
+
}>>;
|
|
53
|
+
postalCode: typeof Schema.String;
|
|
54
|
+
city: typeof Schema.String;
|
|
55
|
+
fingerprintId: Schema.optional<typeof Schema.String>;
|
|
56
|
+
userAgent: Schema.optional<typeof Schema.String>;
|
|
57
|
+
}>;
|
|
58
|
+
lead: Schema.Struct<{
|
|
59
|
+
uuid: typeof Schema.UUID;
|
|
60
|
+
}>;
|
|
61
|
+
referral: Schema.Struct<{}>;
|
|
62
|
+
}>;
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=Signals.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Signals.d.ts","sourceRoot":"","sources":["../../../../../../../../capabilities/core/src/system/cnfContext/schemas/Signals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,cAAc,CAAC,CAAC;AACvE,eAAO,MAAM,cAAc;;;;;EAEzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC3D,eAAO,MAAM,QAAQ,oBAAc,CAAC;AAEpC,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,aAAa,CAAC,CAAC;AACrE,QAAA,MAAM,aAAa;;;;;;;;;;;;;;EAgBjB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC3D,eAAO,MAAM,QAAQ,oBAAc,CAAC;AAEpC,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC,CAAC;AACjE,eAAO,MAAM,WAAW;;EAEtB,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,eAAe,CAAC,CAAC;AACzE,eAAO,MAAM,eAAe,mBAAoB,CAAC;AAEjD,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,CAAC;AACzD,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;EAKlB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const Subaccount: Schema.Struct<{
|
|
3
|
+
id: typeof Schema.UUID;
|
|
4
|
+
publicToken: typeof Schema.String;
|
|
5
|
+
name: typeof Schema.String;
|
|
6
|
+
companyUuid: typeof Schema.String;
|
|
7
|
+
subaccount: Schema.NullOr<typeof Schema.Number>;
|
|
8
|
+
supplySubaccountUuid: Schema.optional<Schema.Union<[typeof Schema.Null, Schema.Literal<[""]>, typeof Schema.UUID]>>;
|
|
9
|
+
tags: Schema.Array$<Schema.Struct<{
|
|
10
|
+
id: typeof Schema.String;
|
|
11
|
+
key: typeof Schema.String;
|
|
12
|
+
value: typeof Schema.String;
|
|
13
|
+
}>>;
|
|
14
|
+
createdAt: typeof Schema.String;
|
|
15
|
+
updatedAt: typeof Schema.String;
|
|
16
|
+
}>;
|
|
17
|
+
export type Subaccount = Schema.Schema.Type<typeof Subaccount>;
|
|
18
|
+
//# sourceMappingURL=Subaccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Subaccount.d.ts","sourceRoot":"","sources":["../../../../../../../../capabilities/core/src/system/cnfContext/schemas/Subaccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAYhC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;EAUrB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../capabilities/core/src/system/cnfContext/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CnfContext } from "../../../core/src/system/cnfContext/CnfContext";
|
|
2
|
+
import type { OffersData } from "../types/offerCatalogSchema";
|
|
3
|
+
export declare const getCachedOffersByProductTypes: (context: CnfContext) => (productTypes: string[]) => Promise<OffersData>;
|
|
4
|
+
export declare const getOffersForProductTypes: (context: CnfContext) => (productTypes: string[], customClientTags?: Record<string, string[]>) => Promise<OffersData>;
|
|
5
|
+
//# sourceMappingURL=offerCatalogApi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offerCatalogApi.d.ts","sourceRoot":"","sources":["../../../../../../capabilities/offer-catalog/src/api/offerCatalogApi.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AACjF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAa9D,eAAO,MAAM,6BAA6B,YAC/B,UAAU,oBAA0B,MAAM,EAAE,wBA8DrD,CAAC;AAEH,eAAO,MAAM,wBAAwB,YAC1B,UAAU,oBAEL,MAAM,EAAE,qBACH,OAAO,MAAM,EAAE,MAAM,EAAE,CAAC,KACzC,QAAQ,UAAU,CAqFpB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type * from "./types/offerCatalogSchema";
|
|
2
|
+
export * from "./utils/arrayToMarkdownList";
|
|
3
|
+
export { getOfferUrl } from "./utils/getOfferUrl";
|
|
4
|
+
export { getSubAccountUUID } from "./utils/contextUtil";
|
|
5
|
+
export { formatAmount, formatPercentage, formatStringListWithAnd, formatRange, } from "./utils/formatUtils";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../capabilities/offer-catalog/src/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,4BAA4B,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACN,YAAY,EACZ,gBAAgB,EAChB,uBAAuB,EACvB,WAAW,GACX,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export type BaseOffer = {
|
|
2
|
+
productVersions: number[];
|
|
3
|
+
uuid: string;
|
|
4
|
+
version: number;
|
|
5
|
+
url: string;
|
|
6
|
+
financialInstitutionUuid: string;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
internalName: string;
|
|
9
|
+
legalLanguage?: string;
|
|
10
|
+
unmonetizedUrl: string;
|
|
11
|
+
recommendationScore: number;
|
|
12
|
+
productDisplayName: string;
|
|
13
|
+
productType: string;
|
|
14
|
+
financialInstitutionImageUrl: string;
|
|
15
|
+
status: "active" | "inactive" | "pending";
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
financialInstitutionDisplayName: string;
|
|
18
|
+
keywords?: string[];
|
|
19
|
+
acceptanceRequirements?: string;
|
|
20
|
+
headline?: string;
|
|
21
|
+
monetizedUrl?: string;
|
|
22
|
+
disclaimer?: string;
|
|
23
|
+
firmness?: string;
|
|
24
|
+
annualPercentageRateType?: "fixed" | "variable";
|
|
25
|
+
annualPercentageRateBasisPointsMax?: number;
|
|
26
|
+
annualPercentageRateBasisPointsMin?: number;
|
|
27
|
+
amountCentsMax?: number;
|
|
28
|
+
amountCentsMin?: number;
|
|
29
|
+
description?: string;
|
|
30
|
+
descriptionPoints?: string[];
|
|
31
|
+
monthlyPaymentCentsMin?: number;
|
|
32
|
+
monthlyPaymentCentsMax?: number;
|
|
33
|
+
creditBureauReporting?: string[];
|
|
34
|
+
stateExclusions?: string[];
|
|
35
|
+
enrollmentFeeBasisPointsMax?: number;
|
|
36
|
+
enrollmentFeeBasisPointsMin?: number;
|
|
37
|
+
debtAmountCentsMin?: number;
|
|
38
|
+
debtAmountCentsMax?: number;
|
|
39
|
+
monthlyFeeCentsMin?: number;
|
|
40
|
+
monthlyFeeCentsMax?: number;
|
|
41
|
+
fastTransferFeeCentsMin?: number;
|
|
42
|
+
fastTransferFeeCentsMax?: number;
|
|
43
|
+
fastTransferFeeBasisPointsMin?: number;
|
|
44
|
+
fastTransferFeeBasisPointsMax?: number;
|
|
45
|
+
annualAdvisoryFeeBasisPointsMin?: number;
|
|
46
|
+
annualAdvisoryFeeBasisPointsMax?: number;
|
|
47
|
+
accountCentsMin?: number;
|
|
48
|
+
termLengthMonthsMin?: number;
|
|
49
|
+
termLengthMonthsMax?: number;
|
|
50
|
+
demandSubAccountUuid?: string;
|
|
51
|
+
demandSubAccountImageUrl?: string;
|
|
52
|
+
demandSubAccountDisplayName?: string;
|
|
53
|
+
outOfNetworkAtmUsageFeeCents?: number;
|
|
54
|
+
annualPercentageYieldBasisPoints?: number;
|
|
55
|
+
isMonetized?: boolean;
|
|
56
|
+
overrideUrl?: string;
|
|
57
|
+
};
|
|
58
|
+
export type DemandPartner = {
|
|
59
|
+
uuid: string;
|
|
60
|
+
name: string;
|
|
61
|
+
description: string;
|
|
62
|
+
disclaimer: string;
|
|
63
|
+
supportsPreSelect: boolean;
|
|
64
|
+
shouldDisplayPreSelect: boolean;
|
|
65
|
+
supportsPersonalizedOffers: boolean;
|
|
66
|
+
imageUrl: string;
|
|
67
|
+
subtextOverride?: string;
|
|
68
|
+
};
|
|
69
|
+
export type BasicRateTablePendingResponse = {
|
|
70
|
+
partner: DemandPartner;
|
|
71
|
+
offerCatalogProductTypes: string[];
|
|
72
|
+
};
|
|
73
|
+
export type ProductTypes = "CreditBuilderLoan" | "DebtSettlement" | "HomeEquityLineOfCredit" | "RoboInvesting" | "StudentLoanRefinance" | "IncomeOpportunities" | "CashManagementAccount" | "HomeEquityLoan" | "StudentLoan" | "CashAdvance" | "EarnedWageAccess" | "RoboInvesting" | "StudentLoanRefinance" | "StudentLoan" | "AutomobileLoan" | "AutomobileRefinance" | "UnsecuredPersonalLoan" | "SecuredPersonalLoan" | "UnsecuredLineOfCredit" | "OverdraftProtection" | "CreditBuilderSecuredCreditCard" | "CreditBuilderDebitCard" | "RentUtilityBillReporting" | (string & {});
|
|
74
|
+
export type OffersData = {
|
|
75
|
+
isError?: boolean;
|
|
76
|
+
uuid: string;
|
|
77
|
+
leadUuid: string;
|
|
78
|
+
offers: BaseOffer[];
|
|
79
|
+
pendingResponses?: BasicRateTablePendingResponse[];
|
|
80
|
+
};
|
|
81
|
+
export type ProductTypeDefinition = {
|
|
82
|
+
id: string;
|
|
83
|
+
partnerPageUrl: string;
|
|
84
|
+
productTypeSlug: string;
|
|
85
|
+
};
|
|
86
|
+
export type PartnerOverride = {
|
|
87
|
+
id: string;
|
|
88
|
+
overrideUrl: string;
|
|
89
|
+
financialInstitutionUuid: string;
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=offerCatalogSchema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offerCatalogSchema.d.ts","sourceRoot":"","sources":["../../../../../../capabilities/offer-catalog/src/types/offerCatalogSchema.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG;IACvB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,wBAAwB,EAAE,MAAM,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,4BAA4B,EAAE,MAAM,CAAC;IACrC,MAAM,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,+BAA+B,EAAE,MAAM,CAAC;IACxC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wBAAwB,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAChD,kCAAkC,CAAC,EAAE,MAAM,CAAC;IAC5C,kCAAkC,CAAC,EAAE,MAAM,CAAC;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAC3B,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,6BAA6B,CAAC,EAAE,MAAM,CAAC;IACvC,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,+BAA+B,CAAC,EAAE,MAAM,CAAC;IACzC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,gCAAgC,CAAC,EAAE,MAAM,CAAC;IAC1C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AACF,MAAM,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,sBAAsB,EAAE,OAAO,CAAC;IAChC,0BAA0B,EAAE,OAAO,CAAC;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC3C,OAAO,EAAE,aAAa,CAAC;IACvB,wBAAwB,EAAE,MAAM,EAAE,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,YAAY,GACrB,mBAAmB,GACnB,gBAAgB,GAChB,wBAAwB,GACxB,eAAe,GACf,sBAAsB,GACtB,qBAAqB,GACrB,uBAAuB,GACvB,gBAAgB,GAChB,aAAa,GACb,aAAa,GACb,kBAAkB,GAClB,eAAe,GACf,sBAAsB,GACtB,aAAa,GACb,gBAAgB,GAChB,qBAAqB,GACrB,uBAAuB,GACvB,qBAAqB,GACrB,uBAAuB,GACvB,qBAAqB,GACrB,gCAAgC,GAChC,wBAAwB,GACxB,0BAA0B,GAC1B,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEjB,MAAM,MAAM,UAAU,GAAG;IACxB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,gBAAgB,CAAC,EAAE,6BAA6B,EAAE,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,wBAAwB,EAAE,MAAM,CAAC;CACjC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arrayToMarkdownList.d.ts","sourceRoot":"","sources":["../../../../../../capabilities/offer-catalog/src/utils/arrayToMarkdownList.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,QAAS,MAAM,EAAE,WAEhD,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CnfContext } from "../../../core/src/system/cnfContext/CnfContext";
|
|
2
|
+
export declare const getStateCode: (cnfContext: CnfContext) => string;
|
|
3
|
+
export declare const getSubaccountToken: (cnfContext: CnfContext) => string;
|
|
4
|
+
export declare const parseClientTags: (tags?: string) => Record<string, string[]>;
|
|
5
|
+
export declare const getSubAccountUUID: (cnfContext: CnfContext) => string | null | undefined;
|
|
6
|
+
export declare const getLeadUUID: (cnfContext: CnfContext) => string;
|
|
7
|
+
export declare const getIsDevEnvironment: (cnfContext: CnfContext) => boolean;
|
|
8
|
+
//# sourceMappingURL=contextUtil.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contextUtil.d.ts","sourceRoot":"","sources":["../../../../../../capabilities/offer-catalog/src/utils/contextUtil.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAIjF,eAAO,MAAM,YAAY,eAAgB,UAAU,WAQlD,CAAC;AAEF,eAAO,MAAM,kBAAkB,eAAgB,UAAU,WACvB,CAAC;AAEnC,eAAO,MAAM,eAAe,UAAW,MAAM,6BAwC5C,CAAC;AAEF,eAAO,MAAM,iBAAiB,eAAgB,UAAU,8BAQvD,CAAC;AAEF,eAAO,MAAM,WAAW,eAAgB,UAAU,WACrB,CAAC;AAE9B,eAAO,MAAM,mBAAmB,eAAgB,UAAU,YAAqB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const errorUtil: {
|
|
2
|
+
getErrorMessageForResponseStatus(status: number, statusText: string): string;
|
|
3
|
+
getErrorForOffersFromProductTypes(error: "DEVICE_SIGNALS_ERROR" | "NO_OFFERS" | "DEFAULT"): string;
|
|
4
|
+
};
|
|
5
|
+
export default errorUtil;
|
|
6
|
+
//# sourceMappingURL=errorUtil.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorUtil.d.ts","sourceRoot":"","sources":["../../../../../../capabilities/offer-catalog/src/utils/errorUtil.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS;6CAC2B,MAAM,cAAc,MAAM,GAAG,MAAM;6CAIpE,sBAAsB,GAAG,WAAW,GAAG,SAAS,GACrD,MAAM;CAST,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format the amount
|
|
3
|
+
* @param amount {number | undefined} - Amount in cents
|
|
4
|
+
* @param raw {boolean | undefined} - Returns the amount in raw cents (currently only used for zero values)
|
|
5
|
+
* @returns {string}
|
|
6
|
+
* @example
|
|
7
|
+
* formatAmount(undefined)
|
|
8
|
+
* // returns 'N/A'
|
|
9
|
+
* formatAmount(0)
|
|
10
|
+
* // returns 'Free'
|
|
11
|
+
* formatAmount(1000)
|
|
12
|
+
* // returns '$10'
|
|
13
|
+
* formatAmount(100000)
|
|
14
|
+
* // returns '$1K'
|
|
15
|
+
*/
|
|
16
|
+
export declare const formatAmount: (amount?: number, raw?: boolean) => string;
|
|
17
|
+
/**
|
|
18
|
+
* Format the percentage
|
|
19
|
+
* @param percentage {number}
|
|
20
|
+
* @returns {string}
|
|
21
|
+
* @example
|
|
22
|
+
* formatPercentage(undefined)
|
|
23
|
+
* // returns 'N/A'
|
|
24
|
+
* formatPercentage(399)
|
|
25
|
+
* // returns '3.99%'
|
|
26
|
+
* formatPercentage(1800)
|
|
27
|
+
* // returns '18%'
|
|
28
|
+
*/
|
|
29
|
+
export declare const formatPercentage: (percentage?: number) => string;
|
|
30
|
+
/**
|
|
31
|
+
* Format the strings with commas and add '&' to the last string
|
|
32
|
+
* @param strings {string[]}
|
|
33
|
+
* @returns {string}
|
|
34
|
+
* @example
|
|
35
|
+
* addAndToLastString(['CT', 'DE', 'GA', 'HI', 'IL'])
|
|
36
|
+
* // returns 'CT, DE, GA, HI & IL'
|
|
37
|
+
*/
|
|
38
|
+
export declare const formatStringListWithAnd: (strings?: string[]) => string;
|
|
39
|
+
/**
|
|
40
|
+
* Format the range based on the min and max values
|
|
41
|
+
* @param min {number | undefined}
|
|
42
|
+
* @param max {number | undefined}
|
|
43
|
+
* @param type {string | undefined}
|
|
44
|
+
* @returns {string}
|
|
45
|
+
* @example
|
|
46
|
+
* formatRange(undefined, undefined)
|
|
47
|
+
* // returns 'N/A'
|
|
48
|
+
* formatRange(100, undefined)
|
|
49
|
+
* // returns 'N/A'
|
|
50
|
+
* formatRange(undefined, 100)
|
|
51
|
+
* // returns 'N/A'
|
|
52
|
+
* formatRange(0, 0)
|
|
53
|
+
* // returns 'Free'
|
|
54
|
+
* formatRange(100, 100)
|
|
55
|
+
* // returns '$1'
|
|
56
|
+
* formatRange(1000, 1000)
|
|
57
|
+
* // returns '$10'
|
|
58
|
+
* formatRange(1000, 10000)
|
|
59
|
+
* // returns '$10 - $100'
|
|
60
|
+
* formatRange(1000, 100000)
|
|
61
|
+
* // returns '$10 - $1K'
|
|
62
|
+
* formatRange(350, 490, 'percentage')
|
|
63
|
+
* // returns '3.5% - 4.9%'
|
|
64
|
+
* formatRange(1000, 10000, 'percentage')
|
|
65
|
+
* // returns '10% - 100%'
|
|
66
|
+
*/
|
|
67
|
+
export declare const formatRange: (min?: number, max?: number, type?: "amount" | "percentage", amountFormat?: "unabbreviated") => string;
|
|
68
|
+
//# sourceMappingURL=formatUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatUtils.d.ts","sourceRoot":"","sources":["../../../../../../capabilities/offer-catalog/src/utils/formatUtils.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,YAAa,MAAM,QAAQ,OAAO,KAAG,MAmB7D,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB,gBAAiB,MAAM,KAAG,MAOtD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,aAAc,MAAM,EAAE,KAAG,MAU5D,CAAC;AAuCF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,WAAW,SACjB,MAAM,QACN,MAAM,SACN,QAAQ,GAAG,YAAY,iBACd,eAAe,KAC5B,MAkBF,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { BaseOffer, ProductTypeDefinition, PartnerOverride } from "../types/offerCatalogSchema";
|
|
2
|
+
type GetOfferUrlProps = {
|
|
3
|
+
offer: BaseOffer;
|
|
4
|
+
productTypesDefinition?: ProductTypeDefinition[];
|
|
5
|
+
partnersOverrideDefinition?: PartnerOverride[];
|
|
6
|
+
};
|
|
7
|
+
type GetOfferUrlResult = {
|
|
8
|
+
url: string;
|
|
9
|
+
overrideUrl?: string | undefined;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Get the offer URL.
|
|
13
|
+
* @description
|
|
14
|
+
* Returns the offer URL and any applicable override URL based on the provided offer and definitions.
|
|
15
|
+
* Override URL determination process:
|
|
16
|
+
* 1. First checks for a product type override from productTypesDefinition
|
|
17
|
+
* 2. Then checks for a partner override from partnersOverrideDefinition (takes precedence)
|
|
18
|
+
* The base offer URL is always returned, while the override URL is optional.
|
|
19
|
+
* @param {GetOfferUrlProps} props - The properties for getting the offer URL.
|
|
20
|
+
* @returns {GetOfferUrlResult} An object containing the URL and optional override URL.
|
|
21
|
+
**/
|
|
22
|
+
export declare const getOfferUrl: ({ offer, productTypesDefinition, partnersOverrideDefinition, }: GetOfferUrlProps) => GetOfferUrlResult;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=getOfferUrl.d.ts.map
|