UNPKG

@comparaonline/offers-models-factories

Version:
28 lines (27 loc) 1.63 kB
import { Product, ProductAttribute, Offer } from '@comparaonline/offers-models'; export declare const validateOptions: (object: any, options: any, ignoreList?: string[] | undefined) => void; export declare const buildConstParamsForProductAttribute: () => { code: string; extraDescription: string; level: number; featured: boolean; enabled: boolean; isAccurate: boolean; strikedthrough: boolean; landingGroup: boolean; }; export declare const validateFormatNumber: (format: any) => void; export declare const validateFormatMoney: (format: any) => void; export declare const validateFormatUnit: (format: any) => void; export declare const validateEntityNumberConfig: (config: any) => void; export declare const validateEntityConfigUnit: (formatUnit: any) => void; export declare const validateInteger: (productAttribute: ProductAttribute) => void; export declare const validateList: (productAttribute: ProductAttribute) => void; export declare const validateMoney: (productAttribute: ProductAttribute) => void; export declare const validatePercentage: (productAttribute: ProductAttribute) => void; export declare const validateString: (productAttribute: ProductAttribute) => void; export declare const validateTerm: (productAttribute: ProductAttribute) => void; export declare const validateMoneyInstallment: (productAttribute: ProductAttribute) => void; export declare const validateProductAttribute: (productAttribute: ProductAttribute) => void; export declare const validateProduct: (product: Product) => void; export declare const validateOffer: (offer: Offer) => void;