@carlonicora/nextjs-jsonapi 5.3.0 → 5.4.0
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/dist/{BlockNoteEditor-UJ6363LC.js → BlockNoteEditor-4YCAIEPT.js} +23 -22
- package/dist/BlockNoteEditor-4YCAIEPT.js.map +1 -0
- package/dist/{BlockNoteEditor-WTSQANKI.mjs → BlockNoteEditor-YQL2SGFR.mjs} +8 -7
- package/dist/BlockNoteEditor-YQL2SGFR.mjs.map +1 -0
- package/dist/{BlockNoteViewer-JVKWJZ6J.mjs → BlockNoteViewer-AEJKJ27Q.mjs} +2 -2
- package/dist/{BlockNoteViewer-EL4JFB6P.js → BlockNoteViewer-YL3J7J2Y.js} +3 -3
- package/dist/{BlockNoteViewer-EL4JFB6P.js.map → BlockNoteViewer-YL3J7J2Y.js.map} +1 -1
- package/dist/BlogCategoryFields-DO48vOTE.d.mts +14 -0
- package/dist/BlogCategoryFields-DO48vOTE.d.ts +14 -0
- package/dist/BlogPostInterface-BB_4wcDR.d.mts +124 -0
- package/dist/BlogPostInterface-bWAT1rfR.d.ts +124 -0
- package/dist/billing/index.js +441 -441
- package/dist/billing/index.mjs +3 -3
- package/dist/blog-public.types-BbrzsC1c.d.mts +30 -0
- package/dist/blog-public.types-BbrzsC1c.d.ts +30 -0
- package/dist/{chunk-3BAM23VA.js → chunk-3NLAXVIN.js} +860 -849
- package/dist/chunk-3NLAXVIN.js.map +1 -0
- package/dist/{chunk-QKZUE5OF.mjs → chunk-3YW35YHQ.mjs} +1 -101
- package/dist/chunk-3YW35YHQ.mjs.map +1 -0
- package/dist/{chunk-QQQE3N2X.js → chunk-5PPG6PL7.js} +3 -3
- package/dist/{chunk-QQQE3N2X.js.map → chunk-5PPG6PL7.js.map} +1 -1
- package/dist/{chunk-FNTQQFLH.mjs → chunk-6DC2WVVB.mjs} +2 -2
- package/dist/{chunk-MIZTWBPX.mjs → chunk-EUKTBOI2.mjs} +19 -8
- package/dist/chunk-EUKTBOI2.mjs.map +1 -0
- package/dist/{chunk-XGTQWBDJ.js → chunk-KSYQEKJX.js} +11 -111
- package/dist/chunk-KSYQEKJX.js.map +1 -0
- package/dist/{chunk-CRI4T47Y.js → chunk-NFBOSPNJ.js} +756 -41
- package/dist/chunk-NFBOSPNJ.js.map +1 -0
- package/dist/{chunk-6WU74VFU.mjs → chunk-QMYQRPQC.mjs} +2 -2
- package/dist/{chunk-JQWI62NV.mjs → chunk-WC63PJSC.mjs} +716 -1
- package/dist/chunk-WC63PJSC.mjs.map +1 -0
- package/dist/chunk-XCHSX3VC.mjs +107 -0
- package/dist/chunk-XCHSX3VC.mjs.map +1 -0
- package/dist/{chunk-EO75CV76.js → chunk-YNCQSWQW.js} +8 -8
- package/dist/{chunk-EO75CV76.js.map → chunk-YNCQSWQW.js.map} +1 -1
- package/dist/chunk-YW4ZCEWB.js +107 -0
- package/dist/chunk-YW4ZCEWB.js.map +1 -0
- package/dist/client/index.js +4 -4
- package/dist/client/index.mjs +3 -3
- package/dist/components/index.d.mts +13 -2
- package/dist/components/index.d.ts +13 -2
- package/dist/components/index.js +4 -4
- package/dist/components/index.mjs +3 -3
- package/dist/contexts/index.js +4 -4
- package/dist/contexts/index.mjs +3 -3
- package/dist/core/index.d.mts +214 -3
- package/dist/core/index.d.ts +214 -3
- package/dist/core/index.js +36 -2
- package/dist/core/index.js.map +1 -1
- package/dist/core/index.mjs +35 -1
- package/dist/email-automations/index.js +92 -92
- package/dist/email-automations/index.mjs +3 -3
- package/dist/features/analytics/index.js +122 -122
- package/dist/features/analytics/index.mjs +4 -4
- package/dist/features/analytics/server.js +6 -5
- package/dist/features/analytics/server.js.map +1 -1
- package/dist/features/analytics/server.mjs +4 -3
- package/dist/features/analytics/server.mjs.map +1 -1
- package/dist/features/blog/index.css +30 -0
- package/dist/features/blog/index.css.map +1 -0
- package/dist/features/blog/index.d.mts +266 -0
- package/dist/features/blog/index.d.ts +266 -0
- package/dist/features/blog/index.js +1799 -0
- package/dist/features/blog/index.js.map +1 -0
- package/dist/features/blog/index.mjs +1799 -0
- package/dist/features/blog/index.mjs.map +1 -0
- package/dist/features/blog/server.d.mts +33 -0
- package/dist/features/blog/server.d.ts +33 -0
- package/dist/features/blog/server.js +139 -0
- package/dist/features/blog/server.js.map +1 -0
- package/dist/features/blog/server.mjs +139 -0
- package/dist/features/blog/server.mjs.map +1 -0
- package/dist/features/help/index.js +37 -37
- package/dist/features/help/index.mjs +3 -3
- package/dist/features/tokenusage/index.js +125 -125
- package/dist/features/tokenusage/index.mjs +4 -4
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +37 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +36 -2
- package/dist/{s3.service-CY-jgOAM.d.ts → s3.service-Bz_K-tjz.d.ts} +11 -0
- package/dist/{s3.service-Sri0QP7Z.d.mts → s3.service-D5zNCEW3.d.mts} +11 -0
- package/dist/server/index.d.mts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +8 -6
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +12 -10
- package/messages/en.json +93 -0
- package/messages/it.json +93 -0
- package/package.json +11 -1
- package/src/components/editors/BlockNoteEditor.tsx +13 -3
- package/src/components/forms/FormBlockNote.tsx +4 -0
- package/src/components/navigations/ContentTitle.tsx +14 -3
- package/src/core/index.ts +4 -0
- package/src/core/registry/ModuleRegistry.ts +6 -0
- package/src/features/blog/BlogModules.ts +49 -0
- package/src/features/blog/components/admin/BlogAdminContainer.tsx +32 -0
- package/src/features/blog/components/admin/BlogCategoriesList.tsx +56 -0
- package/src/features/blog/components/admin/BlogCategoryEditor.tsx +230 -0
- package/src/features/blog/components/admin/BlogCoverImageField.tsx +123 -0
- package/src/features/blog/components/admin/BlogLayoutSetting.tsx +86 -0
- package/src/features/blog/components/admin/BlogPostComparison.tsx +54 -0
- package/src/features/blog/components/admin/BlogPostContainer.tsx +102 -0
- package/src/features/blog/components/admin/BlogPostDeleter.tsx +35 -0
- package/src/features/blog/components/admin/BlogPostEditor.tsx +207 -0
- package/src/features/blog/components/admin/BlogPostPublishButton.tsx +50 -0
- package/src/features/blog/components/admin/BlogPostTranslationEditor.tsx +110 -0
- package/src/features/blog/components/admin/BlogPostTranslationPanel.tsx +136 -0
- package/src/features/blog/components/admin/BlogPostsList.tsx +58 -0
- package/src/features/blog/components/admin/BlogTranslationStatus.tsx +104 -0
- package/src/features/blog/components/admin/__tests__/BlogPostTranslationPanel.spec.tsx +100 -0
- package/src/features/blog/components/admin/__tests__/BlogPostsList.spec.tsx +30 -0
- package/src/features/blog/components/admin/index.ts +14 -0
- package/src/features/blog/components/public/BlogCategoryChips.tsx +59 -0
- package/src/features/blog/components/public/BlogList.tsx +21 -0
- package/src/features/blog/components/public/BlogListColumn.tsx +53 -0
- package/src/features/blog/components/public/BlogListFeatured.tsx +57 -0
- package/src/features/blog/components/public/BlogListParts.tsx +74 -0
- package/src/features/blog/components/public/BlogListRail.tsx +62 -0
- package/src/features/blog/components/public/BlogPostCard.tsx +132 -0
- package/src/features/blog/components/public/BlogPostMeta.tsx +49 -0
- package/src/features/blog/components/public/BlogPostView.tsx +74 -0
- package/src/features/blog/components/public/BlogSearchBox.tsx +52 -0
- package/src/features/blog/components/public/__tests__/BlogList.spec.tsx +173 -0
- package/src/features/blog/components/public/__tests__/BlogPostView.spec.tsx +128 -0
- package/src/features/blog/components/public/blogPublicHelpers.ts +30 -0
- package/src/features/blog/components/public/index.ts +3 -0
- package/src/features/blog/contexts/BlogPostContext.tsx +66 -0
- package/src/features/blog/contexts/index.ts +1 -0
- package/src/features/blog/data/BlogCategory.ts +93 -0
- package/src/features/blog/data/BlogCategoryFields.ts +4 -0
- package/src/features/blog/data/BlogCategoryInterface.ts +24 -0
- package/src/features/blog/data/BlogCategoryService.ts +54 -0
- package/src/features/blog/data/BlogCategoryTranslation.ts +90 -0
- package/src/features/blog/data/BlogCategoryTranslationInterface.ts +22 -0
- package/src/features/blog/data/BlogCategoryTranslationService.ts +30 -0
- package/src/features/blog/data/BlogPost.spec.ts +123 -0
- package/src/features/blog/data/BlogPost.ts +159 -0
- package/src/features/blog/data/BlogPostFields.ts +7 -0
- package/src/features/blog/data/BlogPostInterface.ts +39 -0
- package/src/features/blog/data/BlogPostService.ts +82 -0
- package/src/features/blog/data/BlogPostTranslation.spec.ts +73 -0
- package/src/features/blog/data/BlogPostTranslation.ts +110 -0
- package/src/features/blog/data/BlogPostTranslationInterface.ts +27 -0
- package/src/features/blog/data/BlogPostTranslationService.ts +30 -0
- package/src/features/blog/data/BlogSettings.ts +37 -0
- package/src/features/blog/data/BlogSettingsInterface.ts +11 -0
- package/src/features/blog/data/BlogSettingsService.ts +24 -0
- package/src/features/blog/data/index.ts +17 -0
- package/src/features/blog/hooks/index.ts +3 -0
- package/src/features/blog/hooks/useBlogCategoryNames.ts +34 -0
- package/src/features/blog/hooks/useBlogCategoryTableStructure.tsx +84 -0
- package/src/features/blog/hooks/useBlogPostTableStructure.tsx +126 -0
- package/src/features/blog/index.ts +15 -0
- package/src/features/blog/server/fetchers.ts +120 -0
- package/src/features/blog/server/toPublic.spec.ts +91 -0
- package/src/features/blog/server/toPublic.ts +36 -0
- package/src/features/blog/server-entry.ts +17 -0
- package/src/features/blog/types/blog-public.types.ts +34 -0
- package/src/features/blog/types/blog.constants.ts +40 -0
- package/src/features/s3/data/s3.service.ts +17 -0
- package/dist/BlockNoteEditor-UJ6363LC.js.map +0 -1
- package/dist/BlockNoteEditor-WTSQANKI.mjs.map +0 -1
- package/dist/chunk-3BAM23VA.js.map +0 -1
- package/dist/chunk-CRI4T47Y.js.map +0 -1
- package/dist/chunk-JQWI62NV.mjs.map +0 -1
- package/dist/chunk-MIZTWBPX.mjs.map +0 -1
- package/dist/chunk-QKZUE5OF.mjs.map +0 -1
- package/dist/chunk-XGTQWBDJ.js.map +0 -1
- /package/dist/{BlockNoteViewer-JVKWJZ6J.mjs.map → BlockNoteViewer-AEJKJ27Q.mjs.map} +0 -0
- /package/dist/{chunk-FNTQQFLH.mjs.map → chunk-6DC2WVVB.mjs.map} +0 -0
- /package/dist/{chunk-6WU74VFU.mjs.map → chunk-QMYQRPQC.mjs.map} +0 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { A as ApiDataInterface } from './ApiDataInterface-BcZeXy5X.mjs';
|
|
2
|
+
import { U as UserInterface } from './user.interface-CIWGlbqM.mjs';
|
|
3
|
+
|
|
4
|
+
declare const BLOG_LIST_LAYOUTS: readonly ["featured", "column", "rail"];
|
|
5
|
+
type BlogListLayout = (typeof BLOG_LIST_LAYOUTS)[number];
|
|
6
|
+
declare const BLOG_POST_STATUSES: readonly ["draft", "published", "unpublished"];
|
|
7
|
+
type BlogPostStatus = (typeof BLOG_POST_STATUSES)[number];
|
|
8
|
+
declare const BLOG_TRANSLATION_SOURCES: readonly ["original", "ai", "manual"];
|
|
9
|
+
type BlogTranslationSource = (typeof BLOG_TRANSLATION_SOURCES)[number];
|
|
10
|
+
type BlogAiStatus = "pending" | "in_progress" | "completed" | "failed";
|
|
11
|
+
declare const BLOG_SETTINGS_ID = "5f3c2a9e-8d41-4b7a-9c2e-1a6b0d4e7f13";
|
|
12
|
+
declare const BLOG_MODULE_ID = "c1d0e6a2-4b8f-4f3e-9a7d-2e5b8c6f1a90";
|
|
13
|
+
/**
|
|
14
|
+
* Storage root for blog images (covers, category images, images pasted into a
|
|
15
|
+
* post body). Blog content belongs to the platform, not to a company, and the
|
|
16
|
+
* administrators who write it may belong to no company, so the keys are
|
|
17
|
+
* `blog/<folder>/<id>/<file>` instead of `companies/<companyId>/...`. An app's
|
|
18
|
+
* S3 key access policy must allow Administrators on this root.
|
|
19
|
+
*/
|
|
20
|
+
declare const BLOG_UPLOAD_ROOT = "blog";
|
|
21
|
+
declare const BLOG_POST_UPLOAD_PREFIX = "blog/blog-posts";
|
|
22
|
+
declare const BLOG_CATEGORY_UPLOAD_PREFIX = "blog/blog-categories";
|
|
23
|
+
/** Path prefix of the token-free public blog endpoints (`public/blog-posts`, ...). */
|
|
24
|
+
declare const BLOG_PUBLIC_PREFIX = "public";
|
|
25
|
+
/** Action segments under a blog resource (`blog-posts/:id/publish`, ...). */
|
|
26
|
+
declare const BLOG_ACTION: {
|
|
27
|
+
readonly publish: "publish";
|
|
28
|
+
readonly unpublish: "unpublish";
|
|
29
|
+
readonly retranslate: "retranslate";
|
|
30
|
+
readonly related: "related";
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
type BlogCategoryTranslationInput = {
|
|
34
|
+
id: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
slug?: string;
|
|
37
|
+
description?: string;
|
|
38
|
+
};
|
|
39
|
+
interface BlogCategoryTranslationInterface extends ApiDataInterface {
|
|
40
|
+
get language(): string;
|
|
41
|
+
get isOriginal(): boolean;
|
|
42
|
+
get source(): BlogTranslationSource;
|
|
43
|
+
get aiStatus(): BlogAiStatus;
|
|
44
|
+
get name(): string;
|
|
45
|
+
get slug(): string;
|
|
46
|
+
get description(): string | undefined;
|
|
47
|
+
get translatedAt(): Date | undefined;
|
|
48
|
+
get category(): BlogCategoryInterface | undefined;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
type BlogCategoryInput = {
|
|
52
|
+
id: string;
|
|
53
|
+
originalLanguage?: string;
|
|
54
|
+
name?: string;
|
|
55
|
+
slug?: string;
|
|
56
|
+
description?: string;
|
|
57
|
+
image?: string;
|
|
58
|
+
};
|
|
59
|
+
interface BlogCategoryInterface extends ApiDataInterface {
|
|
60
|
+
get originalLanguage(): string;
|
|
61
|
+
get image(): string | undefined;
|
|
62
|
+
get translations(): BlogCategoryTranslationInterface[];
|
|
63
|
+
get original(): BlogCategoryTranslationInterface | undefined;
|
|
64
|
+
get language(): string | undefined;
|
|
65
|
+
get name(): string | undefined;
|
|
66
|
+
get slug(): string | undefined;
|
|
67
|
+
get description(): string | undefined;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
type BlogPostTranslationInput = {
|
|
71
|
+
id: string;
|
|
72
|
+
title?: string;
|
|
73
|
+
slug?: string;
|
|
74
|
+
summary?: string;
|
|
75
|
+
body?: any;
|
|
76
|
+
coverImageAlt?: string;
|
|
77
|
+
};
|
|
78
|
+
interface BlogPostTranslationInterface extends ApiDataInterface {
|
|
79
|
+
get language(): string;
|
|
80
|
+
get isOriginal(): boolean;
|
|
81
|
+
get source(): BlogTranslationSource;
|
|
82
|
+
get aiStatus(): BlogAiStatus;
|
|
83
|
+
get title(): string;
|
|
84
|
+
get slug(): string;
|
|
85
|
+
get summary(): string | undefined;
|
|
86
|
+
get body(): any;
|
|
87
|
+
get coverImageAlt(): string | undefined;
|
|
88
|
+
get readingMinutes(): number;
|
|
89
|
+
get translatedAt(): Date | undefined;
|
|
90
|
+
get post(): BlogPostInterface | undefined;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
type BlogPostInput = {
|
|
94
|
+
id: string;
|
|
95
|
+
originalLanguage?: string;
|
|
96
|
+
title?: string;
|
|
97
|
+
slug?: string;
|
|
98
|
+
summary?: string;
|
|
99
|
+
body?: any;
|
|
100
|
+
coverImage?: string;
|
|
101
|
+
coverImageAlt?: string;
|
|
102
|
+
categoryIds?: string[];
|
|
103
|
+
};
|
|
104
|
+
interface BlogPostInterface extends ApiDataInterface {
|
|
105
|
+
get status(): BlogPostStatus;
|
|
106
|
+
get originalLanguage(): string;
|
|
107
|
+
get coverImage(): string | undefined;
|
|
108
|
+
get publishedAt(): Date | undefined;
|
|
109
|
+
get author(): UserInterface | undefined;
|
|
110
|
+
get categories(): BlogCategoryInterface[];
|
|
111
|
+
get translations(): BlogPostTranslationInterface[];
|
|
112
|
+
get original(): BlogPostTranslationInterface | undefined;
|
|
113
|
+
get language(): string | undefined;
|
|
114
|
+
get title(): string | undefined;
|
|
115
|
+
get slug(): string | undefined;
|
|
116
|
+
get summary(): string | undefined;
|
|
117
|
+
get body(): any;
|
|
118
|
+
get coverImageAlt(): string | undefined;
|
|
119
|
+
get readingMinutes(): number | undefined;
|
|
120
|
+
get authorName(): string | undefined;
|
|
121
|
+
get categoryIds(): string[];
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export { type BlogListLayout as B, type BlogCategoryInterface as a, type BlogPostInterface as b, BLOG_LIST_LAYOUTS as c, type BlogPostInput as d, type BlogPostTranslationInput as e, type BlogPostTranslationInterface as f, type BlogCategoryInput as g, type BlogCategoryTranslationInput as h, type BlogCategoryTranslationInterface as i, type BlogAiStatus as j, BLOG_POST_STATUSES as k, type BlogPostStatus as l, BLOG_TRANSLATION_SOURCES as m, type BlogTranslationSource as n, BLOG_SETTINGS_ID as o, BLOG_MODULE_ID as p, BLOG_UPLOAD_ROOT as q, BLOG_POST_UPLOAD_PREFIX as r, BLOG_CATEGORY_UPLOAD_PREFIX as s, BLOG_PUBLIC_PREFIX as t, BLOG_ACTION as u };
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { A as ApiDataInterface } from './ApiDataInterface-BcZeXy5X.js';
|
|
2
|
+
import { U as UserInterface } from './user.interface-C0ZdsBZj.js';
|
|
3
|
+
|
|
4
|
+
declare const BLOG_LIST_LAYOUTS: readonly ["featured", "column", "rail"];
|
|
5
|
+
type BlogListLayout = (typeof BLOG_LIST_LAYOUTS)[number];
|
|
6
|
+
declare const BLOG_POST_STATUSES: readonly ["draft", "published", "unpublished"];
|
|
7
|
+
type BlogPostStatus = (typeof BLOG_POST_STATUSES)[number];
|
|
8
|
+
declare const BLOG_TRANSLATION_SOURCES: readonly ["original", "ai", "manual"];
|
|
9
|
+
type BlogTranslationSource = (typeof BLOG_TRANSLATION_SOURCES)[number];
|
|
10
|
+
type BlogAiStatus = "pending" | "in_progress" | "completed" | "failed";
|
|
11
|
+
declare const BLOG_SETTINGS_ID = "5f3c2a9e-8d41-4b7a-9c2e-1a6b0d4e7f13";
|
|
12
|
+
declare const BLOG_MODULE_ID = "c1d0e6a2-4b8f-4f3e-9a7d-2e5b8c6f1a90";
|
|
13
|
+
/**
|
|
14
|
+
* Storage root for blog images (covers, category images, images pasted into a
|
|
15
|
+
* post body). Blog content belongs to the platform, not to a company, and the
|
|
16
|
+
* administrators who write it may belong to no company, so the keys are
|
|
17
|
+
* `blog/<folder>/<id>/<file>` instead of `companies/<companyId>/...`. An app's
|
|
18
|
+
* S3 key access policy must allow Administrators on this root.
|
|
19
|
+
*/
|
|
20
|
+
declare const BLOG_UPLOAD_ROOT = "blog";
|
|
21
|
+
declare const BLOG_POST_UPLOAD_PREFIX = "blog/blog-posts";
|
|
22
|
+
declare const BLOG_CATEGORY_UPLOAD_PREFIX = "blog/blog-categories";
|
|
23
|
+
/** Path prefix of the token-free public blog endpoints (`public/blog-posts`, ...). */
|
|
24
|
+
declare const BLOG_PUBLIC_PREFIX = "public";
|
|
25
|
+
/** Action segments under a blog resource (`blog-posts/:id/publish`, ...). */
|
|
26
|
+
declare const BLOG_ACTION: {
|
|
27
|
+
readonly publish: "publish";
|
|
28
|
+
readonly unpublish: "unpublish";
|
|
29
|
+
readonly retranslate: "retranslate";
|
|
30
|
+
readonly related: "related";
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
type BlogCategoryTranslationInput = {
|
|
34
|
+
id: string;
|
|
35
|
+
name?: string;
|
|
36
|
+
slug?: string;
|
|
37
|
+
description?: string;
|
|
38
|
+
};
|
|
39
|
+
interface BlogCategoryTranslationInterface extends ApiDataInterface {
|
|
40
|
+
get language(): string;
|
|
41
|
+
get isOriginal(): boolean;
|
|
42
|
+
get source(): BlogTranslationSource;
|
|
43
|
+
get aiStatus(): BlogAiStatus;
|
|
44
|
+
get name(): string;
|
|
45
|
+
get slug(): string;
|
|
46
|
+
get description(): string | undefined;
|
|
47
|
+
get translatedAt(): Date | undefined;
|
|
48
|
+
get category(): BlogCategoryInterface | undefined;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
type BlogCategoryInput = {
|
|
52
|
+
id: string;
|
|
53
|
+
originalLanguage?: string;
|
|
54
|
+
name?: string;
|
|
55
|
+
slug?: string;
|
|
56
|
+
description?: string;
|
|
57
|
+
image?: string;
|
|
58
|
+
};
|
|
59
|
+
interface BlogCategoryInterface extends ApiDataInterface {
|
|
60
|
+
get originalLanguage(): string;
|
|
61
|
+
get image(): string | undefined;
|
|
62
|
+
get translations(): BlogCategoryTranslationInterface[];
|
|
63
|
+
get original(): BlogCategoryTranslationInterface | undefined;
|
|
64
|
+
get language(): string | undefined;
|
|
65
|
+
get name(): string | undefined;
|
|
66
|
+
get slug(): string | undefined;
|
|
67
|
+
get description(): string | undefined;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
type BlogPostTranslationInput = {
|
|
71
|
+
id: string;
|
|
72
|
+
title?: string;
|
|
73
|
+
slug?: string;
|
|
74
|
+
summary?: string;
|
|
75
|
+
body?: any;
|
|
76
|
+
coverImageAlt?: string;
|
|
77
|
+
};
|
|
78
|
+
interface BlogPostTranslationInterface extends ApiDataInterface {
|
|
79
|
+
get language(): string;
|
|
80
|
+
get isOriginal(): boolean;
|
|
81
|
+
get source(): BlogTranslationSource;
|
|
82
|
+
get aiStatus(): BlogAiStatus;
|
|
83
|
+
get title(): string;
|
|
84
|
+
get slug(): string;
|
|
85
|
+
get summary(): string | undefined;
|
|
86
|
+
get body(): any;
|
|
87
|
+
get coverImageAlt(): string | undefined;
|
|
88
|
+
get readingMinutes(): number;
|
|
89
|
+
get translatedAt(): Date | undefined;
|
|
90
|
+
get post(): BlogPostInterface | undefined;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
type BlogPostInput = {
|
|
94
|
+
id: string;
|
|
95
|
+
originalLanguage?: string;
|
|
96
|
+
title?: string;
|
|
97
|
+
slug?: string;
|
|
98
|
+
summary?: string;
|
|
99
|
+
body?: any;
|
|
100
|
+
coverImage?: string;
|
|
101
|
+
coverImageAlt?: string;
|
|
102
|
+
categoryIds?: string[];
|
|
103
|
+
};
|
|
104
|
+
interface BlogPostInterface extends ApiDataInterface {
|
|
105
|
+
get status(): BlogPostStatus;
|
|
106
|
+
get originalLanguage(): string;
|
|
107
|
+
get coverImage(): string | undefined;
|
|
108
|
+
get publishedAt(): Date | undefined;
|
|
109
|
+
get author(): UserInterface | undefined;
|
|
110
|
+
get categories(): BlogCategoryInterface[];
|
|
111
|
+
get translations(): BlogPostTranslationInterface[];
|
|
112
|
+
get original(): BlogPostTranslationInterface | undefined;
|
|
113
|
+
get language(): string | undefined;
|
|
114
|
+
get title(): string | undefined;
|
|
115
|
+
get slug(): string | undefined;
|
|
116
|
+
get summary(): string | undefined;
|
|
117
|
+
get body(): any;
|
|
118
|
+
get coverImageAlt(): string | undefined;
|
|
119
|
+
get readingMinutes(): number | undefined;
|
|
120
|
+
get authorName(): string | undefined;
|
|
121
|
+
get categoryIds(): string[];
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export { type BlogListLayout as B, type BlogCategoryInterface as a, type BlogPostInterface as b, BLOG_LIST_LAYOUTS as c, type BlogPostInput as d, type BlogPostTranslationInput as e, type BlogPostTranslationInterface as f, type BlogCategoryInput as g, type BlogCategoryTranslationInput as h, type BlogCategoryTranslationInterface as i, type BlogAiStatus as j, BLOG_POST_STATUSES as k, type BlogPostStatus as l, BLOG_TRANSLATION_SOURCES as m, type BlogTranslationSource as n, BLOG_SETTINGS_ID as o, BLOG_MODULE_ID as p, BLOG_UPLOAD_ROOT as q, BLOG_POST_UPLOAD_PREFIX as r, BLOG_CATEGORY_UPLOAD_PREFIX as s, BLOG_PUBLIC_PREFIX as t, BLOG_ACTION as u };
|