UNPKG

@fabrix/spool-cart

Version:

Spool - eCommerce Spool for Fabrix

53 lines (52 loc) 1.3 kB
import { FabrixModel as Model } from '@fabrix/fabrix/dist/common'; import { SequelizeResolver } from '@fabrix/spool-sequelize'; export declare class ProductImageResolver extends SequelizeResolver { resolve(image: any, options?: { [key: string]: any; }): any; } export declare class ProductImage extends Model { static readonly resolver: typeof ProductImageResolver; static config(app: any, Sequelize: any): { options: { underscored: boolean; hooks: { beforeCreate: (values: any, options: any) => any; }; }; }; static schema(app: any, Sequelize: any): { src: { type: any; allowNull: boolean; }; full: { type: any; }; thumbnail: { type: any; }; small: { type: any; }; medium: { type: any; }; large: { type: any; }; alt: { type: any; set: (val: any) => void; }; position: { type: any; defaultValue: number; }; live_mode: { type: any; defaultValue: any; }; }; static associate(models: any): void; }