@rxdrag/website-lib-core 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/entify/Entify.d.ts +138 -0
- package/dist/entify/index.d.ts +4 -0
- package/dist/entify/lib/createEntifyClient.d.ts +3 -0
- package/dist/entify/lib/index.d.ts +29 -0
- package/dist/entify/lib/langFields.d.ts +2 -0
- package/dist/entify/lib/newAvatarQueryOptions.d.ts +2 -0
- package/dist/entify/lib/newOgImageQueryOptions.d.ts +2 -0
- package/dist/entify/lib/newPageMetaOptions.d.ts +2 -0
- package/dist/entify/lib/newQueryPostOptions.d.ts +3 -0
- package/dist/entify/lib/newQueryProductOptions.d.ts +3 -0
- package/dist/entify/lib/newQueryProductsMediaOptions.d.ts +3 -0
- package/dist/entify/lib/queryAllProducts.d.ts +4 -0
- package/dist/entify/lib/queryEntityList.d.ts +3 -0
- package/dist/entify/lib/queryFeaturedProducts.d.ts +4 -0
- package/dist/entify/lib/queryLangs.d.ts +4 -0
- package/dist/entify/lib/queryLatestPosts.d.ts +4 -0
- package/dist/entify/lib/queryOneEntity.d.ts +5 -0
- package/dist/entify/lib/queryOnePostById.d.ts +3 -0
- package/dist/entify/lib/queryOnePostBySlug.d.ts +3 -0
- package/dist/entify/lib/queryOnePostCategoryBySlug.d.ts +3 -0
- package/dist/entify/lib/queryOneProductById.d.ts +3 -0
- package/dist/entify/lib/queryOneProductBySlug.d.ts +3 -0
- package/dist/entify/lib/queryOneProductCategoryBySlug.d.ts +3 -0
- package/dist/entify/lib/queryOneTheme.d.ts +3 -0
- package/dist/entify/lib/queryOneUser.d.ts +3 -0
- package/dist/entify/lib/queryPostCategories.d.ts +4 -0
- package/dist/entify/lib/queryPostSlugs.d.ts +4 -0
- package/dist/entify/lib/queryPosts.d.ts +10 -0
- package/dist/entify/lib/queryProductCategories.d.ts +4 -0
- package/dist/entify/lib/queryProducts.d.ts +6 -0
- package/dist/entify/lib/queryProductsInMenu.d.ts +2 -0
- package/dist/entify/lib/queryUserIds.d.ts +4 -0
- package/dist/entify/lib/queryUserPosts.d.ts +9 -0
- package/dist/entify/lib/queryWebSiteSettings.d.ts +3 -0
- package/dist/entify/lib/searchProducts.d.ts +4 -0
- package/dist/entify/lib/sendEmail.d.ts +3 -0
- package/dist/entify/lib/toQueryOptions.d.ts +3 -0
- package/dist/entify/lib/upsertEntity.d.ts +2 -0
- package/dist/entify/types/index.d.ts +2 -0
- package/dist/entify/types/utils.d.ts +4 -0
- package/dist/entify/types/variables.d.ts +7 -0
- package/dist/entify/view-model/funcs.d.ts +20 -0
- package/dist/entify/view-model/index.d.ts +2 -0
- package/dist/entify/view-model/models.d.ts +119 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +40514 -0
- package/dist/index.mjs.map +1 -0
- package/dist/motion/consts.d.ts +77 -0
- package/dist/motion/index.d.ts +2 -0
- package/dist/motion/types.d.ts +26 -0
- package/dist/react/components/EnquiryForm/Input.d.ts +15 -0
- package/dist/react/components/EnquiryForm/Submit.d.ts +8 -0
- package/dist/react/components/EnquiryForm/Textarea.d.ts +13 -0
- package/dist/react/components/EnquiryForm/index.d.ts +22 -0
- package/dist/react/components/Medias/index.d.ts +8 -0
- package/dist/react/components/ProductCard/ProductCard.d.ts +15 -0
- package/dist/react/components/ProductCard/ProductCardPreview.d.ts +2 -0
- package/dist/react/components/ProductCard/ProductCta/index.d.ts +5 -0
- package/dist/react/components/ProductCard/ProductDescription/index.d.ts +2 -0
- package/dist/react/components/ProductCard/ProductMedia/index.d.ts +7 -0
- package/dist/react/components/ProductCard/ProductTitle/index.d.ts +2 -0
- package/dist/react/components/ProductCard/ProductView.d.ts +5 -0
- package/dist/react/components/ProductCard/index.d.ts +6 -0
- package/dist/react/components/ProductCard/useQueryProduct.d.ts +2 -0
- package/dist/react/components/RichTextOutline/index.d.ts +8 -0
- package/dist/react/components/RichTextOutline/useAcitviedHeading.d.ts +1 -0
- package/dist/react/components/Scroller.d.ts +3 -0
- package/dist/react/components/SearchInput.d.ts +2 -0
- package/dist/react/components/Share/index.d.ts +6 -0
- package/dist/react/components/Share/socials.d.ts +10 -0
- package/dist/react/components/ToTop.d.ts +5 -0
- package/dist/react/components/index.d.ts +8 -0
- package/dist/react/hooks/index.d.ts +1 -0
- package/dist/react/hooks/useScroll.d.ts +2 -0
- package/dist/react/index.d.ts +2 -0
- package/dist/robots.d.ts +2 -0
- package/dist/scripts/actions.d.ts +85 -0
- package/dist/scripts/consts.d.ts +21 -0
- package/dist/scripts/events.d.ts +11 -0
- package/dist/scripts/index.d.ts +3 -0
- package/dist/style.css +98 -0
- package/package.json +36 -0
package/README.md
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { EnvVariables, TSize } from "./types";
|
|
2
|
+
import { ListConditions } from "./lib";
|
|
3
|
+
import { IQueryOptions } from "@rxdrag/entify-hooks";
|
|
4
|
+
export type PostsOptions = {
|
|
5
|
+
category?: string;
|
|
6
|
+
coverSize?: TSize | undefined;
|
|
7
|
+
page: number;
|
|
8
|
+
pageSize: number;
|
|
9
|
+
};
|
|
10
|
+
export type PostPatinateOptions = {
|
|
11
|
+
pageSize: number;
|
|
12
|
+
category?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare class Entify {
|
|
15
|
+
protected envVariables: EnvVariables;
|
|
16
|
+
private static instance;
|
|
17
|
+
private constructor();
|
|
18
|
+
static getInstance(envVariables: EnvVariables): Entify;
|
|
19
|
+
queryEntityList<T, WhereExp = unknown, OrderBy = unknown, DistinctExp = unknown>(options: IQueryOptions<T, WhereExp, OrderBy, DistinctExp>): Promise<import("@rxdrag/entify-hooks").ListResult<import("./view-model").TProduct> | import("@rxdrag/entify-hooks").ListResult<import("./view-model").TPost> | import("@rxdrag/entify-hooks").ListResult<import("./view-model").TProductCategory> | import("@rxdrag/entify-hooks").ListResult<import("./view-model").TPostCategory> | import("@rxdrag/entify-hooks").ListResult<import("./view-model").TUser> | import("@rxdrag/entify-hooks").ListResult<import("./view-model").TMedia> | import("@rxdrag/entify-hooks").ListResult<T> | undefined>;
|
|
20
|
+
getTheme(): Promise<import("@rxdrag/rxcms-models").Theme | undefined>;
|
|
21
|
+
getLangs(): Promise<import("@rxdrag/rxcms-models").Lang[] | undefined>;
|
|
22
|
+
getFeaturedProducts(count?: number): Promise<import("@rxdrag/entify-hooks").ListResult<import("./view-model").TProduct> | undefined>;
|
|
23
|
+
getLatestPosts(count?: number): Promise<import("@rxdrag/entify-hooks").ListResult<import("./view-model").TPost> | undefined>;
|
|
24
|
+
getPosts(options: PostsOptions): Promise<import("./view-model").TPost[] | undefined>;
|
|
25
|
+
getPostListPaths(options: PostPatinateOptions): Promise<{
|
|
26
|
+
params: {
|
|
27
|
+
page: string;
|
|
28
|
+
};
|
|
29
|
+
props: {
|
|
30
|
+
currentPage: number;
|
|
31
|
+
totalPages: number;
|
|
32
|
+
pageSize: number;
|
|
33
|
+
totalItems: number;
|
|
34
|
+
};
|
|
35
|
+
}[]>;
|
|
36
|
+
getPostPaths(): Promise<{
|
|
37
|
+
params: {
|
|
38
|
+
slug: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
props: {
|
|
41
|
+
slug: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
}[]>;
|
|
44
|
+
getPostBySlug(slug: string, coverSize: TSize | undefined): Promise<import("./view-model").TPost | undefined>;
|
|
45
|
+
/**
|
|
46
|
+
* 获取所有文章的 slug,用于生成静态页面
|
|
47
|
+
* 对于大量文章,这个方法会进行优化,只获取 slug 字段
|
|
48
|
+
*/
|
|
49
|
+
getPostSlugs(): Promise<(string | undefined)[]>;
|
|
50
|
+
getPostCategories(): Promise<import("./view-model").TPostCategory[] | undefined>;
|
|
51
|
+
getPostCategoryBySlug(slug: string): Promise<import("./view-model").TPostCategory | undefined>;
|
|
52
|
+
getProuducts(conditions: ListConditions, imageSize: TSize | undefined): Promise<import("./view-model").TProduct[] | undefined>;
|
|
53
|
+
getProductListPaths(options: {
|
|
54
|
+
category?: string;
|
|
55
|
+
pageSize: number;
|
|
56
|
+
}): Promise<{
|
|
57
|
+
params: {
|
|
58
|
+
page: string;
|
|
59
|
+
};
|
|
60
|
+
props: {
|
|
61
|
+
currentPage: number;
|
|
62
|
+
totalPages: number;
|
|
63
|
+
pageSize: number;
|
|
64
|
+
totalItems: number;
|
|
65
|
+
};
|
|
66
|
+
}[]>;
|
|
67
|
+
getCategoredProductListPaths(): Promise<{
|
|
68
|
+
params: {
|
|
69
|
+
slug: string;
|
|
70
|
+
page: string;
|
|
71
|
+
};
|
|
72
|
+
props: {
|
|
73
|
+
currentPage: number;
|
|
74
|
+
totalPages: number;
|
|
75
|
+
pageSize: number;
|
|
76
|
+
totalItems: number;
|
|
77
|
+
slug: string;
|
|
78
|
+
};
|
|
79
|
+
}[]>;
|
|
80
|
+
/**
|
|
81
|
+
* TODO:未调试
|
|
82
|
+
* 获取所有文章分类的分页路径
|
|
83
|
+
* 用于生成静态页面
|
|
84
|
+
* @returns 所有文章分类的分页路径
|
|
85
|
+
*/
|
|
86
|
+
getCategoredPostListPaths(): Promise<{
|
|
87
|
+
params: {
|
|
88
|
+
slug: string;
|
|
89
|
+
page: string;
|
|
90
|
+
};
|
|
91
|
+
props: {
|
|
92
|
+
currentPage: number;
|
|
93
|
+
totalPages: number;
|
|
94
|
+
pageSize: number;
|
|
95
|
+
totalItems: number;
|
|
96
|
+
slug: string;
|
|
97
|
+
};
|
|
98
|
+
}[]>;
|
|
99
|
+
getProductBySlug(slug: string, imageSize: TSize | undefined): Promise<import("./view-model").TProduct | undefined>;
|
|
100
|
+
getProductPaths(): Promise<{
|
|
101
|
+
params: {
|
|
102
|
+
slug: string | undefined;
|
|
103
|
+
};
|
|
104
|
+
props: {
|
|
105
|
+
slug: string | undefined;
|
|
106
|
+
};
|
|
107
|
+
}[]>;
|
|
108
|
+
/**
|
|
109
|
+
* 获取所有产品的 slug,用于生成静态页面
|
|
110
|
+
* 对于大量产品,这个方法会进行优化,只获取 slug 字段
|
|
111
|
+
*/
|
|
112
|
+
getProductSlugs(): Promise<(string | undefined)[]>;
|
|
113
|
+
getProductIds(): Promise<(string | null | undefined)[]>;
|
|
114
|
+
getProductCategories(): Promise<import("./view-model").TProductCategory[] | undefined>;
|
|
115
|
+
getProductCategoryBySlug(slug: string): Promise<import("./view-model").TProductCategory | undefined>;
|
|
116
|
+
getOneUser(id: string): Promise<import("./view-model").TUser | undefined>;
|
|
117
|
+
getUserPosts(userId: string): Promise<import("./view-model").TPost[] | undefined>;
|
|
118
|
+
searchProducts(keyword: string): Promise<import("@rxdrag/entify-hooks").ListResult<import("./view-model").TProduct> | undefined>;
|
|
119
|
+
getUserPaths(): Promise<{
|
|
120
|
+
params: {
|
|
121
|
+
id: string | null | undefined;
|
|
122
|
+
};
|
|
123
|
+
props: {
|
|
124
|
+
id: string | null | undefined;
|
|
125
|
+
};
|
|
126
|
+
}[]>;
|
|
127
|
+
createPagination(totalItems: number, pageSize: number): {
|
|
128
|
+
params: {
|
|
129
|
+
page: string;
|
|
130
|
+
};
|
|
131
|
+
props: {
|
|
132
|
+
currentPage: number;
|
|
133
|
+
totalPages: number;
|
|
134
|
+
pageSize: number;
|
|
135
|
+
totalItems: number;
|
|
136
|
+
};
|
|
137
|
+
}[];
|
|
138
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export * from "./toQueryOptions";
|
|
2
|
+
export * from "./createEntifyClient";
|
|
3
|
+
export * from "./newAvatarQueryOptions";
|
|
4
|
+
export * from "./newOgImageQueryOptions";
|
|
5
|
+
export * from "./newQueryPostOptions";
|
|
6
|
+
export * from "./newQueryProductOptions";
|
|
7
|
+
export * from "./newQueryProductsMediaOptions";
|
|
8
|
+
export * from "./queryEntityList";
|
|
9
|
+
export * from "./queryFeaturedProducts";
|
|
10
|
+
export * from "./queryLangs";
|
|
11
|
+
export * from "./queryLatestPosts";
|
|
12
|
+
export * from "./queryOneEntity";
|
|
13
|
+
export * from "./queryOnePostById";
|
|
14
|
+
export * from "./queryOnePostCategoryBySlug";
|
|
15
|
+
export * from "./queryOnePostBySlug";
|
|
16
|
+
export * from "./queryOneProductById";
|
|
17
|
+
export * from "./queryOneProductBySlug";
|
|
18
|
+
export * from "./queryOneProductCategoryBySlug";
|
|
19
|
+
export * from "./queryOneUser";
|
|
20
|
+
export * from "./queryPostCategories";
|
|
21
|
+
export * from "./queryPosts";
|
|
22
|
+
export * from "./queryProductCategories";
|
|
23
|
+
export * from "./queryProducts";
|
|
24
|
+
export * from "./queryProductsInMenu";
|
|
25
|
+
export * from "./queryUserPosts";
|
|
26
|
+
export * from "./queryWebSiteSettings";
|
|
27
|
+
export * from "./upsertEntity";
|
|
28
|
+
export * from "./searchProducts";
|
|
29
|
+
export * from "./sendEmail";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { IQueryOptions, ListResult } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { EnvVariables } from "../types";
|
|
3
|
+
export declare function queryEntityList<T, WhereExp = unknown, OrderBy = unknown, DistinctExp = unknown>(options: IQueryOptions<T, WhereExp, OrderBy, DistinctExp>, envVariables: EnvVariables): Promise<ListResult<T> | ListResult<import("../view-model").TProduct> | ListResult<import("../view-model").TPost> | ListResult<import("../view-model").TProductCategory> | ListResult<import("../view-model").TPostCategory> | ListResult<import("../view-model").TUser> | ListResult<import("../view-model").TMedia> | undefined>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { EnvVariables } from "../types";
|
|
2
|
+
import { ListResult } from "@rxdrag/entify-hooks";
|
|
3
|
+
import { TProduct } from "../view-model";
|
|
4
|
+
export declare function queryFeaturedProducts(count: number | undefined, envVariables: EnvVariables): Promise<ListResult<TProduct> | undefined>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IQueryOptions } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { WebsitePart } from "@rxdrag/rxcms-models";
|
|
3
|
+
import { WebsitePartBoolExp } from "@rxdrag/rxcms-models/";
|
|
4
|
+
import { EnvVariables } from "../types";
|
|
5
|
+
export declare function queryOneEntity<T extends WebsitePart = WebsitePart, WhereExp extends WebsitePartBoolExp = WebsitePartBoolExp, OrderBy = unknown, DistinctExp = unknown>(options: IQueryOptions<T, WhereExp, OrderBy, DistinctExp>, envVariables: EnvVariables): Promise<T | undefined>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Post } from "@rxdrag/rxcms-models";
|
|
2
|
+
import { ListResult } from "@rxdrag/entify-hooks";
|
|
3
|
+
import { EnvVariables, TSize } from "../types";
|
|
4
|
+
import { TPost } from "../view-model";
|
|
5
|
+
export interface ListConditions {
|
|
6
|
+
category?: string;
|
|
7
|
+
page?: number;
|
|
8
|
+
pageSize: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function queryPosts(conditions: ListConditions, coverSize: TSize | undefined, envVariables: EnvVariables, selectFields?: (keyof Post)[]): Promise<ListResult<TPost> | undefined>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ListResult } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { EnvVariables } from "../types";
|
|
3
|
+
import { TProductCategory } from "../view-model";
|
|
4
|
+
export declare function queryProductCategories(envVariables: EnvVariables): Promise<ListResult<TProductCategory> | undefined>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Product } from "@rxdrag/rxcms-models";
|
|
2
|
+
import { ListConditions } from "./queryPosts";
|
|
3
|
+
import { ListResult } from "@rxdrag/entify-hooks";
|
|
4
|
+
import { EnvVariables, TSize } from "../types";
|
|
5
|
+
import { TProduct } from "../view-model";
|
|
6
|
+
export declare function queryProducts(conditions: ListConditions, imageSize: TSize | undefined, envVariables: EnvVariables, selectFields?: (keyof Product)[]): Promise<ListResult<TProduct> | undefined>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { EnvVariables } from "../types";
|
|
2
|
+
export declare function queryProductsInMenu(envVariables: EnvVariables): Promise<import("@rxdrag/entify-hooks").ListResult<import("@rxdrag/rxcms-models").Product> | import("@rxdrag/entify-hooks").ListResult<import("..").TProduct> | import("@rxdrag/entify-hooks").ListResult<import("..").TPost> | import("@rxdrag/entify-hooks").ListResult<import("..").TProductCategory> | import("@rxdrag/entify-hooks").ListResult<import("..").TPostCategory> | import("@rxdrag/entify-hooks").ListResult<import("..").TUser> | import("@rxdrag/entify-hooks").ListResult<import("..").TMedia> | undefined>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ListResult } from "@rxdrag/entify-hooks";
|
|
2
|
+
import { EnvVariables } from "../types";
|
|
3
|
+
import { TPost } from "../view-model";
|
|
4
|
+
export type UserPostsCondition = {
|
|
5
|
+
userId: string;
|
|
6
|
+
page?: number;
|
|
7
|
+
pageSize?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare function queryUserPosts(pagination: UserPostsCondition, envVariables: EnvVariables): Promise<ListResult<TPost> | undefined>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AttachmentOnProduct, Media, Post, PostCategory, Product, ProductCategory, ProductRelatedPivot, User, WebsiteSettings } from "@rxdrag/rxcms-models";
|
|
2
|
+
import { TMedia, TMedias, TPost, TPostCategory, TProduct, TProductCategory, TUser, TWebsiteSettings } from "./models";
|
|
3
|
+
import { ListResult } from "@rxdrag/entify-hooks";
|
|
4
|
+
export declare function mediaToViewModel(media?: Media): TMedia | undefined;
|
|
5
|
+
export declare function mediasToViewModel(product?: Product): TMedias | undefined;
|
|
6
|
+
export declare function attachmentsToViewModel(attachments?: AttachmentOnProduct[]): TMedia[] | undefined;
|
|
7
|
+
export declare function websiteSettingsToViewModel(websiteSettings?: WebsiteSettings): TWebsiteSettings | undefined;
|
|
8
|
+
export declare function productCategoryToViewModel(productCategory?: ProductCategory): TProductCategory | undefined;
|
|
9
|
+
export declare function productToViewModel(product?: Product): TProduct | undefined;
|
|
10
|
+
export declare function relatedPovitToViewModel(related?: ProductRelatedPivot[]): TProduct[] | undefined;
|
|
11
|
+
export declare function productListToViewModel(products?: ListResult<Product>): ListResult<TProduct> | undefined;
|
|
12
|
+
export declare function productCategoriesToViewModel(productCategories?: ListResult<ProductCategory>): ListResult<TProductCategory> | undefined;
|
|
13
|
+
export declare function postCategoryToViewModel(postCategory?: PostCategory): TPostCategory | undefined;
|
|
14
|
+
export declare function postCategoriesToViewModel(postCategories?: ListResult<PostCategory>): ListResult<TPostCategory> | undefined;
|
|
15
|
+
export declare function postToViewModel(post?: Post): TPost | undefined;
|
|
16
|
+
export declare function postListToViewModel(posts?: ListResult<Post>): ListResult<TPost> | undefined;
|
|
17
|
+
export declare function postCategoryListToViewModel(postCategories?: ListResult<PostCategory>): ListResult<TPostCategory> | undefined;
|
|
18
|
+
export declare function userToViewModel(user?: User): TUser | undefined;
|
|
19
|
+
export declare function userListToViewModel(users?: ListResult<User>): ListResult<TUser> | undefined;
|
|
20
|
+
export declare function mediaListToViewModel(medias?: ListResult<Media>): ListResult<TMedia> | undefined;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { MediaType, PageMeta } from "@rxdrag/rxcms-models";
|
|
2
|
+
/**
|
|
3
|
+
* 定义数据绑定用的类型,需要从@rxdrag/rxcms-models的类型进行转换
|
|
4
|
+
*/
|
|
5
|
+
export type TMedia = {
|
|
6
|
+
id?: string | null;
|
|
7
|
+
name?: string;
|
|
8
|
+
mimeType?: string;
|
|
9
|
+
extName?: string;
|
|
10
|
+
thumbnail?: string;
|
|
11
|
+
resize?: string;
|
|
12
|
+
url?: string;
|
|
13
|
+
alt?: string;
|
|
14
|
+
createdAt?: Date;
|
|
15
|
+
updatedAt?: Date;
|
|
16
|
+
mediaType?: MediaType;
|
|
17
|
+
};
|
|
18
|
+
export type TMedias = {
|
|
19
|
+
externalVideoUrl?: string;
|
|
20
|
+
medias?: TMedia[];
|
|
21
|
+
};
|
|
22
|
+
export type TProductCategory = {
|
|
23
|
+
id?: string | null;
|
|
24
|
+
slug?: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
children?: TProductCategory[];
|
|
27
|
+
media?: TMedia;
|
|
28
|
+
parent?: TProductCategory;
|
|
29
|
+
products?: TProduct[];
|
|
30
|
+
};
|
|
31
|
+
export type TProduct = {
|
|
32
|
+
id?: string | null;
|
|
33
|
+
slug?: string;
|
|
34
|
+
title?: string;
|
|
35
|
+
shortTitle?: string;
|
|
36
|
+
description?: string;
|
|
37
|
+
features?: string;
|
|
38
|
+
medias?: TMedias;
|
|
39
|
+
cover?: TMedia;
|
|
40
|
+
content?: string;
|
|
41
|
+
content2?: string;
|
|
42
|
+
content3?: string;
|
|
43
|
+
extends?: object;
|
|
44
|
+
publishedAt?: Date;
|
|
45
|
+
createdAt?: Date;
|
|
46
|
+
updatedAt?: Date;
|
|
47
|
+
category?: TProductCategory;
|
|
48
|
+
related?: TProduct[];
|
|
49
|
+
attachments?: TMedia[];
|
|
50
|
+
meta?: PageMeta;
|
|
51
|
+
};
|
|
52
|
+
export type TPostCategory = {
|
|
53
|
+
id?: string | null;
|
|
54
|
+
slug?: string;
|
|
55
|
+
name?: string;
|
|
56
|
+
children?: TProductCategory[];
|
|
57
|
+
media?: TMedia;
|
|
58
|
+
parent?: TProductCategory;
|
|
59
|
+
posts?: TPost[];
|
|
60
|
+
};
|
|
61
|
+
export type TUser = {
|
|
62
|
+
id?: string | null;
|
|
63
|
+
name?: string;
|
|
64
|
+
avatar?: TMedia;
|
|
65
|
+
position?: string;
|
|
66
|
+
profile?: string;
|
|
67
|
+
email?: string;
|
|
68
|
+
tel?: string;
|
|
69
|
+
mobile?: string;
|
|
70
|
+
linkedin?: string;
|
|
71
|
+
facebook?: string;
|
|
72
|
+
twitter?: string;
|
|
73
|
+
instagram?: string;
|
|
74
|
+
};
|
|
75
|
+
export type TPost = {
|
|
76
|
+
id?: string | null;
|
|
77
|
+
slug?: string;
|
|
78
|
+
title?: string;
|
|
79
|
+
description?: string;
|
|
80
|
+
cover?: TMedia;
|
|
81
|
+
content?: string;
|
|
82
|
+
extends?: object;
|
|
83
|
+
publishedAt?: Date;
|
|
84
|
+
createdAt?: Date;
|
|
85
|
+
updatedAt?: Date;
|
|
86
|
+
category?: TPostCategory;
|
|
87
|
+
author?: TUser;
|
|
88
|
+
meta?: PageMeta;
|
|
89
|
+
};
|
|
90
|
+
export type TWebsiteSettings = {
|
|
91
|
+
id?: string | null;
|
|
92
|
+
contact?: string;
|
|
93
|
+
contactAvatar?: TMedia;
|
|
94
|
+
address?: string;
|
|
95
|
+
email?: string;
|
|
96
|
+
tel?: string;
|
|
97
|
+
mobile?: string;
|
|
98
|
+
linkedin?: string;
|
|
99
|
+
facebook?: string;
|
|
100
|
+
twitter?: string;
|
|
101
|
+
instagram?: string;
|
|
102
|
+
footerCode?: string;
|
|
103
|
+
websiteName?: string;
|
|
104
|
+
map301?: string;
|
|
105
|
+
};
|
|
106
|
+
export type TBreadcrumbItem = {
|
|
107
|
+
title: string;
|
|
108
|
+
href?: string;
|
|
109
|
+
};
|
|
110
|
+
export type TPage = {
|
|
111
|
+
title?: string;
|
|
112
|
+
breadcrumbs?: TBreadcrumbItem[];
|
|
113
|
+
};
|
|
114
|
+
export type TPagination = {
|
|
115
|
+
urlPrefix?: string;
|
|
116
|
+
current?: number;
|
|
117
|
+
total?: number;
|
|
118
|
+
};
|
|
119
|
+
export declare const entityMaps: Record<string, string>;
|