UNPKG

@fabrix/spool-cart

Version:

Spool - eCommerce Spool for Fabrix

180 lines (179 loc) 4.72 kB
import { FabrixModel as Model } from '@fabrix/fabrix/dist/common'; import { SequelizeResolver } from '@fabrix/spool-sequelize'; export declare class CollectionUploadResolver extends SequelizeResolver { batch(options: any, batch: any): any; } export declare class CollectionUpload extends Model { static readonly resolver: typeof CollectionUploadResolver; static config(app: any, Sequelize: any): { options: { underscored: boolean; enums: { COLLECTION_PURPOSE: { NAVIGATION: string; VENDOR: string; GROUP: string; DISCOUNT: string; SHIPPING: string; TAXES: string; }; COLLECTION_SORT_ORDER: { ALPHA_ASC: string; ALPHA_DESC: string; BEST_SELLING: string; CREATED: string; CREATED_DESC: string; MANUAL: string; PRICE_ASC: string; PRICE_DESC: string; }; COLLECTION_DISCOUNT_SCOPE: { INDIVIDUAL: string; GLOBAL: string; }; COLLECTION_DISCOUNT_TYPE: { PERCENTAGE: string; FIXED: string; RATE: string; }; COLLECTION_TAX_TYPE: { PERCENTAGE: string; FIXED: string; }; COLLECTION_SHIPPING_TYPE: { PERCENTAGE: string; FIXED: string; }; }; }; }; static schema(app: any, Sequelize: any): { upload_id: { type: any; allowNull: boolean; }; handle: { type: any; allowNull: boolean; set: (val: any) => void; }; title: { type: any; allowNull: boolean; set: (val: any) => void; }; description: { type: any; }; seo_title: { type: any; set: (val: any) => void; }; seo_description: { type: any; set: (val: any) => void; }; excerpt: { type: any; }; body: { type: any; }; published: { type: any; defaultValue: boolean; }; primary_purpose: { type: any; values: string[]; defaultValue: string; }; position: { type: any; defaultValue: number; }; sort_order: { type: any; values: string[]; defaultValue: string; }; tax_rate: { type: any; defaultValue: number; }; tax_percentage: { type: any; defaultValue: number; }; tax_type: { type: any; values: string[]; defaultValue: string; }; tax_name: { type: any; }; shipping_rate: { type: any; defaultValue: number; }; shipping_percentage: { type: any; defaultValue: number; }; shipping_type: { type: any; values: string[]; defaultValue: string; }; shipping_name: { type: any; }; discount_scope: { type: any; values: string[]; defaultValue: string; }; discount_type: { type: any; values: string[]; defaultValue: string; }; discount_rate: { type: any; defaultValue: number; }; discount_percentage: { type: any; defaultValue: number; }; discount_product_include: { type: any; defaultValue: any[]; }; discount_product_exclude: { type: any; defaultValue: any[]; }; images: { type: any; defaultValue: any[]; }; collections: { type: any; defaultValue: any[]; }; discounts: { type: any; defaultValue: any[]; }; tags: { type: any; defaultValue: any[]; }; live_mode: { type: any; defaultValue: any; }; }; }