@moneylion/engine-api 1.3.2 → 1.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +1 -0
- package/dist/decoders.js +2 -1
- package/package.json +1 -1
package/dist/client.d.ts
CHANGED
package/dist/decoders.js
CHANGED
|
@@ -74,7 +74,8 @@ export const partnerDecoder = object({
|
|
|
74
74
|
subtextOverride: optional(string()),
|
|
75
75
|
});
|
|
76
76
|
export const productTypeDecoder = union(constant("credit_card"), constant("insurance"), constant("life_insurance"), constant("loan"), constant("mortgage"), constant("savings"), constant("other"));
|
|
77
|
-
export const productSubTypeDecoder = oneOf(constant("credit_card"), constant("secured_card"), constant("personal_loan"), constant("secured_loan"), constant("student_loan_refinance"), constant("co_applicant_loan"), constant("line_of_credit"), constant("automobile_refinance"), constant("home_equity_line_of_credit"), constant("purchase"), constant("refinance"), constant("savings_account"), constant("money_market_account"), constant("certificate_of_deposit"), constant("individual_retirement_account"), constant("cash_management_account"), constant("high_interest_checking"), constant("checking"), constant("accidental_death_benefits"), constant("term_life"), constant("term_life_instant"), constant("whole_life"), constant("debt_relief"), constant("installment_loans"), constant("credit_builder"), constant("cash_advance"), constant("credit_repair"), constant("education_offers"), constant("employment_opportunity"), constant("financial_wellness"), constant("direct_affiliate"), constant("overdraft_protection"), constant("revenue_based_financing"), constant("uncategorized"))
|
|
77
|
+
export const productSubTypeDecoder = union(oneOf(constant("credit_card"), constant("secured_card"), constant("student_card"), constant("personal_loan"), constant("secured_loan"), constant("student_loan_refinance"), constant("co_applicant_loan"), constant("line_of_credit"), constant("automobile_refinance"), constant("home_equity_line_of_credit"), constant("purchase"), constant("refinance"), constant("savings_account"), constant("money_market_account"), constant("certificate_of_deposit"), constant("individual_retirement_account"), constant("cash_management_account"), constant("high_interest_checking"), constant("checking"), constant("accidental_death_benefits"), constant("term_life"), constant("term_life_instant"), constant("whole_life"), constant("debt_relief"), constant("installment_loans"), constant("credit_builder"), constant("cash_advance"), constant("credit_repair"), constant("education_offers"), constant("employment_opportunity"), constant("financial_wellness"), constant("direct_affiliate"), constant("overdraft_protection"), constant("revenue_based_financing"), constant("installment_loan_more_offers"), constant("credit_card_more_offers"), constant("credit_repair_more_offers"), constant("student_loan"), constant("health"), constant("auto_and_vehicle"), constant("games"), constant("home"), constant("rewards"), constant("life_insurance"), constant("auto_insurance"), constant("specialty_vehicle_insurance"), constant("home_owners_insurance"), constant("renters_insurance"), constant("uncategorized"), constant("cash_advance_moneylion"), constant("unknown")), string() // Fallback for unsupported product subtypes when there is a new one coming in from api and we don't have entry for it above
|
|
78
|
+
);
|
|
78
79
|
export const offerDecoder = object({
|
|
79
80
|
uuid: string(),
|
|
80
81
|
partner: partnerDecoder,
|