UNPKG

@fabrix/spool-cart

Version:

Spool - eCommerce Spool for Fabrix

85 lines (84 loc) 2.22 kB
import { FabrixModel as Model } from '@fabrix/fabrix/dist/common'; import { SequelizeResolver } from '@fabrix/spool-sequelize'; export declare class AccountResolver extends SequelizeResolver { findByIdDefault(id: any, options?: { [key: string]: any; }): any; resolveByInstance(account: any, options?: { [key: string]: any; }): Promise<any>; resolveById(account: any, options?: { [key: string]: any; }): any; resolveByGateway(account: any, options?: { [key: string]: any; }): any; resolveByToken(account: any, options?: { [key: string]: any; }): any; resolveByNumber(account: any, options?: { [key: string]: any; }): any; resolveByString(account: any, options?: { [key: string]: any; }): any; resolve(account: any, options?: { [key: string]: any; }): any; } export declare class Account extends Model { static readonly resolver: typeof AccountResolver; static config(app: any, Sequelize: any): { options: { underscored: boolean; scopes: { live: { where: { live_mode: boolean; }; }; }; hooks: { beforeCreate: ((values: any, options: any) => void)[]; }; }; }; static schema(app: any, Sequelize: any): { customer_id: { type: any; allowNull: boolean; }; token: { type: any; unique: boolean; }; email: { type: any; }; gateway: { type: any; defaultValue: string; }; foreign_key: { type: any; allowNull: boolean; }; foreign_id: { type: any; allowNull: boolean; }; is_default: { type: any; defaultValue: boolean; }; data: { type: any; defaultValue: {}; }; live_mode: { type: any; defaultValue: any; }; }; static associate(models: any): void; }