@yimingliao/cms 0.0.248 → 0.0.249
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/src/server/infrastructure/database/post/include.js +7 -1
- package/dist/types/export/index.d.ts +1 -1
- package/dist/types/export/index.d.ts.map +1 -1
- package/dist/types/src/client/interfaces/components/resources/admin/admin-card.d.ts +1 -2
- package/dist/types/src/client/interfaces/components/resources/admin/admin-card.d.ts.map +1 -1
- package/dist/types/src/domain/index.d.ts +1 -1
- package/dist/types/src/domain/index.d.ts.map +1 -1
- package/dist/types/src/domain/resources/admin/index.d.ts +0 -1
- package/dist/types/src/domain/resources/admin/index.d.ts.map +1 -1
- package/dist/types/src/domain/resources/index.d.ts +1 -1
- package/dist/types/src/domain/resources/index.d.ts.map +1 -1
- package/dist/types/src/domain/resources/post/card.d.ts +3 -0
- package/dist/types/src/domain/resources/post/card.d.ts.map +1 -1
- package/dist/types/src/domain/resources/post/full.d.ts +2 -2
- package/dist/types/src/domain/resources/post/full.d.ts.map +1 -1
- package/dist/types/src/server/infrastructure/database/post/include.d.ts +52 -0
- package/dist/types/src/server/infrastructure/database/post/include.d.ts.map +1 -1
- package/dist/types/src/server/interfaces/actions/resources/post/commands/create/create-post-create-action.d.ts +2 -2
- package/dist/types/src/server/interfaces/actions/resources/post/commands/update/create-post-update-action.d.ts +2 -2
- package/package.json +1 -1
- package/dist/types/src/domain/resources/admin/card.d.ts +0 -6
- package/dist/types/src/domain/resources/admin/card.d.ts.map +0 -1
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ADMIN_FULL_INCLUDE } from '../admin/include.js';
|
|
2
|
+
|
|
1
3
|
const POST_LIST_CARD_INCLUDE = {
|
|
2
4
|
// ---------------------------
|
|
3
5
|
// relations: Post
|
|
@@ -10,6 +12,7 @@ const POST_LIST_CARD_INCLUDE = {
|
|
|
10
12
|
// Use as category
|
|
11
13
|
taggedPosts: true,
|
|
12
14
|
// Use as tag
|
|
15
|
+
tags: { include: { translations: true } },
|
|
13
16
|
// ---------------------------
|
|
14
17
|
// relations: File
|
|
15
18
|
// ---------------------------
|
|
@@ -23,7 +26,10 @@ const POST_FULL_INCLUDE = {
|
|
|
23
26
|
// ---------------------------
|
|
24
27
|
// relations: Admin
|
|
25
28
|
// ---------------------------
|
|
26
|
-
author: {
|
|
29
|
+
author: {
|
|
30
|
+
include: ADMIN_FULL_INCLUDE,
|
|
31
|
+
omit: { passwordHash: true }
|
|
32
|
+
},
|
|
27
33
|
// ---------------------------
|
|
28
34
|
// relations: Post
|
|
29
35
|
// ---------------------------
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type MultiItems, type SingleItem, type BaseTranslation, type Translation, ADMIN_ROLES, type AdminRole, type Admin, type AdminTranslation, type AdminFull, type
|
|
1
|
+
export { type MultiItems, type SingleItem, type BaseTranslation, type Translation, ADMIN_ROLES, type AdminRole, type Admin, type AdminTranslation, type AdminFull, type AdminSafe, ADMIN_ROLE_ARRAY, ADMIN_ROLE_I18N_MAP, type AdminRefreshToken, type DeviceInfo, FILE_TYPES, type FileType, type File, type FileTranslation, type FileFull, type FileCard, isFileLocked, type Folder, type FolderFull, isFolderLocked, normalizeFolderKey, fileManagerDoubleClick, POST_TYPES, type PostType, type Post, type PostTranslation, type PostFull, type PostListCard, type ExternalLink, type Faq, type TocItem, type SeoMetadata, type Alternate, type Config, type ConfigTranslation, type ConfigFull, type Inquiry, type InquiryFields, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, type StaticTopics, type StaticPages, type StaticInquiry, type StaticConfigs, type StaticSeoMetadata, type SeoMetadataField, type PostField, type SiteConfig, } from "../src/domain";
|
|
2
2
|
export { CACHE_KEYS, KEYS, PATHS, PROTECTED_PATHS, LOGGED_IN_SKIP_PATHS, NEW_TAB_REL, NEW_TAB_TARGET, } from "../src/constants";
|
|
3
3
|
export { mimeToExtension, classifyFileType, getMediaInfo, formatFileSize, type BlobFile, result, type SuccessResultParams, type ErrorResultParams, type Result, type SuccessResult, type ErrorResult, type ErrorDetail, OG_TYPE_ARRAY, type OgType, TWITTER_CARD_ARRAY, type TwitterCard, findTranslation, createBuildTranslations, datetimeToDb, datetimeToUi, jsonArrayToDb, jsonArrayToUi, type UIStates, type FormData, type FormFieldController, debounce, ensureArray, formatDateTime, joinUrl, normalizeSlug, parsePositiveInt, toIsoTime, DO_NOT_FETCH_KEY, type ListItemsState, SIZE, type SizeUnit, } from "../src/shared";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../export/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,UAAU,EACf,KAAK,UAAU,EAIf,KAAK,eAAe,EACpB,KAAK,WAAW,EAKhB,WAAW,EACX,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../export/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAIL,KAAK,UAAU,EACf,KAAK,UAAU,EAIf,KAAK,eAAe,EACpB,KAAK,WAAW,EAKhB,WAAW,EACX,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,gBAAgB,EAChB,mBAAmB,EAEnB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAEf,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,YAAY,EAEZ,KAAK,MAAM,EACX,KAAK,UAAU,EACf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EAEtB,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,EAEZ,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,KAAK,MAAM,EACX,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAEf,KAAK,OAAO,EACZ,KAAK,aAAa,EAElB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,EAIzB,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,UAAU,GAChB,MAAM,eAAe,CAAC;AAKvB,OAAO,EACL,UAAU,EACV,IAAI,EACJ,KAAK,EACL,eAAe,EACf,oBAAoB,EACpB,WAAW,EACX,cAAc,GACf,MAAM,kBAAkB,CAAC;AAK1B,OAAO,EAEL,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,KAAK,QAAQ,EAGb,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,WAAW,EAGhB,aAAa,EACb,KAAK,MAAM,EACX,kBAAkB,EAClB,KAAK,WAAW,EAGhB,eAAe,EACf,uBAAuB,EAGvB,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,aAAa,EACb,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,mBAAmB,EAGxB,QAAQ,EACR,WAAW,EACX,cAAc,EACd,OAAO,EACP,aAAa,EACb,gBAAgB,EAChB,SAAS,EAGT,gBAAgB,EAChB,KAAK,cAAc,EAGnB,IAAI,EACJ,KAAK,QAAQ,GACd,MAAM,eAAe,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { AdminFull } from "../../../../../domain/resources/admin/full";
|
|
2
2
|
import type { ComponentProps } from "react";
|
|
3
|
-
import { type AdminCard } from "../../../../../domain";
|
|
4
3
|
interface AdminCardProps {
|
|
5
|
-
admin: AdminFull |
|
|
4
|
+
admin: AdminFull | null;
|
|
6
5
|
className?: string;
|
|
7
6
|
openNewTab?: boolean;
|
|
8
7
|
anchorProps?: ComponentProps<"a"> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/admin/admin-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"admin-card.d.ts","sourceRoot":"","sources":["../../../../../../../../src/client/interfaces/components/resources/admin/admin-card.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4CAA4C,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAU5C,UAAU,cAAc;IACtB,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC;CAC/C;AAID,wBAAgB,SAAS,CAAC,EACxB,KAAK,EAEL,UAAkB,EAClB,WAAW,EAEX,SAAc,GACf,EAAE,cAAc,2CAqDhB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { MultiItems, SingleItem } from "./item";
|
|
2
2
|
export type { BaseTranslation, Translation } from "./translation";
|
|
3
|
-
export { ADMIN_ROLES, type AdminRole, type Admin, type AdminTranslation, type AdminFull, type
|
|
3
|
+
export { ADMIN_ROLES, type AdminRole, type Admin, type AdminTranslation, type AdminFull, type AdminSafe, ADMIN_ROLE_ARRAY, ADMIN_ROLE_I18N_MAP, type AdminRefreshToken, type DeviceInfo, FILE_TYPES, type FileType, type File, type FileTranslation, type FileFull, type FileCard, isFileLocked, type Folder, type FolderFull, isFolderLocked, normalizeFolderKey, fileManagerDoubleClick, POST_TYPES, type PostType, type Post, type PostTranslation, type PostFull, type PostListCard, type ExternalLink, type Faq, type TocItem, type SeoMetadata, type Alternate, type Config, type ConfigTranslation, type ConfigFull, type Inquiry, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, } from "./resources";
|
|
4
4
|
export type { StaticTopics, StaticPages, StaticInquiry, InquiryFields, StaticConfigs, StaticSeoMetadata, SeoMetadataField, PostField, SiteConfig, } from "./static";
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domain/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAKrD,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAKlE,OAAO,EAEL,WAAW,EACX,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/domain/index.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAKrD,YAAY,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAKlE,OAAO,EAEL,WAAW,EACX,KAAK,SAAS,EACd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,gBAAgB,EAChB,mBAAmB,EAEnB,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAEf,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,YAAY,EAEZ,KAAK,MAAM,EACX,KAAK,UAAU,EACf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EAEtB,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,EAEZ,KAAK,WAAW,EAChB,KAAK,SAAS,EAEd,KAAK,MAAM,EACX,KAAK,iBAAiB,EACtB,KAAK,UAAU,EAEf,KAAK,OAAO,EAEZ,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,aAAa,CAAC;AAKrB,YAAY,EACV,YAAY,EACZ,WAAW,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,SAAS,EACT,UAAU,GACX,MAAM,UAAU,CAAC"}
|
|
@@ -2,6 +2,5 @@ export { ADMIN_ROLES, type AdminRole } from "./props";
|
|
|
2
2
|
export type { Admin, AdminSafe } from "./base";
|
|
3
3
|
export type { AdminTranslation } from "./translation";
|
|
4
4
|
export type { AdminFull } from "./full";
|
|
5
|
-
export type { AdminCard } from "./card";
|
|
6
5
|
export { ADMIN_ROLE_ARRAY, ADMIN_ROLE_I18N_MAP } from "./constants";
|
|
7
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/admin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAEtD,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC/C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/admin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAEtD,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAC/C,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ADMIN_ROLES, type AdminRole, type Admin, type AdminTranslation, type AdminFull, type
|
|
1
|
+
export { ADMIN_ROLES, type AdminRole, type Admin, type AdminTranslation, type AdminFull, type AdminSafe, ADMIN_ROLE_ARRAY, ADMIN_ROLE_I18N_MAP, } from "./admin";
|
|
2
2
|
export type { AdminRefreshToken, DeviceInfo } from "./admin-refresh-token";
|
|
3
3
|
export { FILE_TYPES, type FileType, type File, type FileTranslation, type FileFull, type FileCard, isFileLocked, } from "./file";
|
|
4
4
|
export { type Folder, type FolderFull, isFolderLocked, normalizeFolderKey, fileManagerDoubleClick, } from "./folder";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/domain/resources/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,WAAW,EACX,KAAK,SAAS,EAEd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/domain/resources/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,WAAW,EACX,KAAK,SAAS,EAEd,KAAK,KAAK,EACV,KAAK,gBAAgB,EACrB,KAAK,SAAS,EACd,KAAK,SAAS,EAEd,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,SAAS,CAAC;AAGjB,YAAY,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAG3E,OAAO,EAEL,UAAU,EACV,KAAK,QAAQ,EAEb,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,QAAQ,EAEb,YAAY,GACb,MAAM,QAAQ,CAAC;AAGhB,OAAO,EACL,KAAK,MAAM,EACX,KAAK,UAAU,EAEf,cAAc,EACd,kBAAkB,EAClB,sBAAsB,GACvB,MAAM,UAAU,CAAC;AAGlB,OAAO,EAEL,UAAU,EACV,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,GAAG,EACR,KAAK,OAAO,EAEZ,KAAK,IAAI,EACT,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,YAAY,GAClB,MAAM,QAAQ,CAAC;AAGhB,YAAY,EAEV,SAAS,EAET,WAAW,GACZ,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAGtE,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKzC,OAAO,EAEL,WAAW,EACX,cAAc,EACd,gBAAgB,EAEhB,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/post/card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpC,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG;IAIhC,KAAK,EAAE,CAAC,IAAI,GAAG;QAAE,YAAY,EAAE,eAAe,EAAE,CAAA;KAAE,CAAC,GAAG,IAAI,CAAC;IAC3D,YAAY,EAAE,IAAI,EAAE,CAAC;IACrB,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjB,WAAW,EAAE,IAAI,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/post/card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpC,MAAM,MAAM,YAAY,GAAG,IAAI,GAAG;IAIhC,KAAK,EAAE,CAAC,IAAI,GAAG;QAAE,YAAY,EAAE,eAAe,EAAE,CAAA;KAAE,CAAC,GAAG,IAAI,CAAC;IAC3D,YAAY,EAAE,IAAI,EAAE,CAAC;IACrB,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjB,WAAW,EAAE,IAAI,EAAE,CAAC;IACpB,IAAI,EAAE,CAAC,IAAI,GAAG;QAAE,YAAY,EAAE,eAAe,EAAE,CAAA;KAAE,CAAC,GAAG,IAAI,CAAC;IAK1D,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IAKxB,YAAY,EAAE,eAAe,EAAE,CAAC;CACjC,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AdminFull } from "../admin";
|
|
2
2
|
import type { FileCard } from "../file";
|
|
3
3
|
import type { SeoMetadata } from "../seo-metadata";
|
|
4
4
|
import type { Post } from "./base";
|
|
5
5
|
import type { PostListCard } from "./card";
|
|
6
6
|
import type { PostTranslation } from "./translation";
|
|
7
7
|
export type PostFull = Post & {
|
|
8
|
-
author:
|
|
8
|
+
author: AdminFull;
|
|
9
9
|
topic: PostListCard | null;
|
|
10
10
|
postsInTopic: PostListCard[];
|
|
11
11
|
parents: PostListCard[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"full.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/post/full.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGrD,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG;IAI5B,MAAM,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"full.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/post/full.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGrD,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG;IAI5B,MAAM,EAAE,SAAS,CAAC;IAKlB,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,YAAY,EAAE,CAAC;IAE7B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,EAAE,YAAY,EAAE,CAAC;IAEzB,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,WAAW,EAAE,YAAY,EAAE,CAAC;IAE5B,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,gBAAgB,EAAE,YAAY,EAAE,CAAC;IAKjC,UAAU,EAAE,QAAQ,GAAG,IAAI,CAAC;IAK5B,YAAY,EAAE,WAAW,EAAE,CAAC;IAK5B,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,OAAO,EAAE,QAAQ,EAAE,CAAC;IACpB,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAC;IACxB,MAAM,EAAE,QAAQ,GAAG,IAAI,CAAC;IAKxB,YAAY,EAAE,eAAe,EAAE,CAAC;CACjC,CAAC"}
|
|
@@ -7,12 +7,24 @@ export declare const POST_LIST_CARD_INCLUDE: {
|
|
|
7
7
|
postsInTopic: true;
|
|
8
8
|
children: true;
|
|
9
9
|
taggedPosts: true;
|
|
10
|
+
tags: {
|
|
11
|
+
include: {
|
|
12
|
+
translations: true;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
10
15
|
coverImage: true;
|
|
11
16
|
translations: true;
|
|
12
17
|
};
|
|
13
18
|
export declare const POST_FULL_INCLUDE: {
|
|
14
19
|
author: {
|
|
15
20
|
include: {
|
|
21
|
+
adminRefreshTokens: true;
|
|
22
|
+
avatarImage: {
|
|
23
|
+
include: {
|
|
24
|
+
translations: true;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
posts: true;
|
|
16
28
|
translations: true;
|
|
17
29
|
};
|
|
18
30
|
omit: {
|
|
@@ -29,6 +41,11 @@ export declare const POST_FULL_INCLUDE: {
|
|
|
29
41
|
postsInTopic: true;
|
|
30
42
|
children: true;
|
|
31
43
|
taggedPosts: true;
|
|
44
|
+
tags: {
|
|
45
|
+
include: {
|
|
46
|
+
translations: true;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
32
49
|
coverImage: true;
|
|
33
50
|
translations: true;
|
|
34
51
|
};
|
|
@@ -43,6 +60,11 @@ export declare const POST_FULL_INCLUDE: {
|
|
|
43
60
|
postsInTopic: true;
|
|
44
61
|
children: true;
|
|
45
62
|
taggedPosts: true;
|
|
63
|
+
tags: {
|
|
64
|
+
include: {
|
|
65
|
+
translations: true;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
46
68
|
coverImage: true;
|
|
47
69
|
translations: true;
|
|
48
70
|
};
|
|
@@ -57,6 +79,11 @@ export declare const POST_FULL_INCLUDE: {
|
|
|
57
79
|
postsInTopic: true;
|
|
58
80
|
children: true;
|
|
59
81
|
taggedPosts: true;
|
|
82
|
+
tags: {
|
|
83
|
+
include: {
|
|
84
|
+
translations: true;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
60
87
|
coverImage: true;
|
|
61
88
|
translations: true;
|
|
62
89
|
};
|
|
@@ -71,6 +98,11 @@ export declare const POST_FULL_INCLUDE: {
|
|
|
71
98
|
postsInTopic: true;
|
|
72
99
|
children: true;
|
|
73
100
|
taggedPosts: true;
|
|
101
|
+
tags: {
|
|
102
|
+
include: {
|
|
103
|
+
translations: true;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
74
106
|
coverImage: true;
|
|
75
107
|
translations: true;
|
|
76
108
|
};
|
|
@@ -85,6 +117,11 @@ export declare const POST_FULL_INCLUDE: {
|
|
|
85
117
|
postsInTopic: true;
|
|
86
118
|
children: true;
|
|
87
119
|
taggedPosts: true;
|
|
120
|
+
tags: {
|
|
121
|
+
include: {
|
|
122
|
+
translations: true;
|
|
123
|
+
};
|
|
124
|
+
};
|
|
88
125
|
coverImage: true;
|
|
89
126
|
translations: true;
|
|
90
127
|
};
|
|
@@ -99,6 +136,11 @@ export declare const POST_FULL_INCLUDE: {
|
|
|
99
136
|
postsInTopic: true;
|
|
100
137
|
children: true;
|
|
101
138
|
taggedPosts: true;
|
|
139
|
+
tags: {
|
|
140
|
+
include: {
|
|
141
|
+
translations: true;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
102
144
|
coverImage: true;
|
|
103
145
|
translations: true;
|
|
104
146
|
};
|
|
@@ -113,6 +155,11 @@ export declare const POST_FULL_INCLUDE: {
|
|
|
113
155
|
postsInTopic: true;
|
|
114
156
|
children: true;
|
|
115
157
|
taggedPosts: true;
|
|
158
|
+
tags: {
|
|
159
|
+
include: {
|
|
160
|
+
translations: true;
|
|
161
|
+
};
|
|
162
|
+
};
|
|
116
163
|
coverImage: true;
|
|
117
164
|
translations: true;
|
|
118
165
|
};
|
|
@@ -127,6 +174,11 @@ export declare const POST_FULL_INCLUDE: {
|
|
|
127
174
|
postsInTopic: true;
|
|
128
175
|
children: true;
|
|
129
176
|
taggedPosts: true;
|
|
177
|
+
tags: {
|
|
178
|
+
include: {
|
|
179
|
+
translations: true;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
130
182
|
coverImage: true;
|
|
131
183
|
translations: true;
|
|
132
184
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"include.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/infrastructure/database/post/include.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"include.d.ts","sourceRoot":"","sources":["../../../../../../../src/server/infrastructure/database/post/include.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;CAmBL,CAAC;AAE/B,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgDA,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AdminFull, FileCard } from "../../../../../../../domain";
|
|
2
2
|
import type { PostListCard } from "../../../../../../../domain/resources/post/card";
|
|
3
3
|
import type { ActionContext } from "../../../../action-context";
|
|
4
4
|
import type z from "zod";
|
|
5
5
|
import { postCreateValidator } from "./post-create-validator";
|
|
6
6
|
export type PostCreateFormData = Omit<z.infer<ReturnType<typeof postCreateValidator>>, "author" | "parents" | "tags" | "relatedPosts" | "coverImage" | "images1" | "images2" | "image1" | "image2" | "image3" | "image4"> & {
|
|
7
|
-
author:
|
|
7
|
+
author: AdminFull | null;
|
|
8
8
|
parents: PostListCard[];
|
|
9
9
|
tags: PostListCard[];
|
|
10
10
|
relatedPosts: PostListCard[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AdminFull, FileCard } from "../../../../../../../domain";
|
|
2
2
|
import type { PostListCard } from "../../../../../../../domain/resources/post/card";
|
|
3
3
|
import type { ActionContext } from "../../../../action-context";
|
|
4
4
|
import type z from "zod";
|
|
5
5
|
import { postUpdateValidator } from "./post-update-validator";
|
|
6
6
|
export type PostUpdateFormData = Omit<z.infer<ReturnType<typeof postUpdateValidator>>, "author" | "parents" | "tags" | "relatedPosts" | "coverImage" | "images1" | "images2" | "image1" | "image2" | "image3" | "image4"> & {
|
|
7
|
-
author:
|
|
7
|
+
author: AdminFull | null;
|
|
8
8
|
parents: PostListCard[];
|
|
9
9
|
tags: PostListCard[];
|
|
10
10
|
relatedPosts: PostListCard[];
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../../../../src/domain/resources/admin/card.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAGtD,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG;IAClC,YAAY,EAAE,gBAAgB,EAAE,CAAC;CAClC,CAAC"}
|