|
|
|
|
@ -26,13 +26,6 @@ export interface ContactInfoTranslation {
|
|
|
|
|
content?: string | null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface DocumentsTranslation {
|
|
|
|
|
/** @primaryKey */
|
|
|
|
|
id: number;
|
|
|
|
|
languages_code?: Language | string | null;
|
|
|
|
|
title?: string | null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface Homepage {
|
|
|
|
|
/** @primaryKey */
|
|
|
|
|
id: number;
|
|
|
|
|
@ -55,6 +48,28 @@ export interface Language {
|
|
|
|
|
direction?: 'ltr' | 'rtl' | null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface MeiliIndexConfig {
|
|
|
|
|
/** @primaryKey */
|
|
|
|
|
id: number;
|
|
|
|
|
/** @description 要索引的集合名 */
|
|
|
|
|
collection_name?: string | null;
|
|
|
|
|
/** @description MeiliSearch 索引名称 */
|
|
|
|
|
index_name?: string | null;
|
|
|
|
|
/** @description 要索引的字段数组 */
|
|
|
|
|
fields?: 'json' | null;
|
|
|
|
|
/** @description 是否启用 */
|
|
|
|
|
enabled?: boolean | null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface MeiliSearchConfig {
|
|
|
|
|
/** @primaryKey */
|
|
|
|
|
id: number;
|
|
|
|
|
/** @description MeiliSearch 主机地址 */
|
|
|
|
|
host?: string | null;
|
|
|
|
|
/** @description MeiliSearch API Key */
|
|
|
|
|
api_key?: string | null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ProductDocument {
|
|
|
|
|
/** @primaryKey */
|
|
|
|
|
id: number;
|
|
|
|
|
@ -110,7 +125,6 @@ export interface ProductSpec {
|
|
|
|
|
id: number;
|
|
|
|
|
group?: ProductSpecGroup | string | null;
|
|
|
|
|
sort?: number | null;
|
|
|
|
|
value?: string | null;
|
|
|
|
|
translations?: ProductSpecsTranslation[] | null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -120,6 +134,7 @@ export interface ProductSpecsTranslation {
|
|
|
|
|
product_specs_id?: ProductSpec | string | null;
|
|
|
|
|
languages_code?: Language | string | null;
|
|
|
|
|
key?: string | null;
|
|
|
|
|
value?: string | null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export interface ProductType {
|
|
|
|
|
@ -728,10 +743,11 @@ export interface Schema {
|
|
|
|
|
company_profile_translations: CompanyProfileTranslation[];
|
|
|
|
|
contact_info: ContactInfo;
|
|
|
|
|
contact_info_translations: ContactInfoTranslation[];
|
|
|
|
|
documents_translations: DocumentsTranslation[];
|
|
|
|
|
homepage: Homepage;
|
|
|
|
|
homepage_files: HomepageFile[];
|
|
|
|
|
languages: Language[];
|
|
|
|
|
meili_index_configs: MeiliIndexConfig[];
|
|
|
|
|
meili_search_config: MeiliSearchConfig;
|
|
|
|
|
product_documents: ProductDocument[];
|
|
|
|
|
product_documents_translations: ProductDocumentsTranslation[];
|
|
|
|
|
product_images: ProductImage[];
|
|
|
|
|
@ -787,10 +803,11 @@ export enum CollectionNames {
|
|
|
|
|
company_profile_translations = 'company_profile_translations',
|
|
|
|
|
contact_info = 'contact_info',
|
|
|
|
|
contact_info_translations = 'contact_info_translations',
|
|
|
|
|
documents_translations = 'documents_translations',
|
|
|
|
|
homepage = 'homepage',
|
|
|
|
|
homepage_files = 'homepage_files',
|
|
|
|
|
languages = 'languages',
|
|
|
|
|
meili_index_configs = 'meili_index_configs',
|
|
|
|
|
meili_search_config = 'meili_search_config',
|
|
|
|
|
product_documents = 'product_documents',
|
|
|
|
|
product_documents_translations = 'product_documents_translations',
|
|
|
|
|
product_images = 'product_images',
|
|
|
|
|
|