@yimingliao/cms 0.0.60 → 0.0.62
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/{chunk-FXWRZAIN.js → chunk-QW5O7NHA.js} +1 -1
- package/dist/chunk-YDNPEEO6.js +4733 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.js +1 -2
- package/dist/server/index.d.ts +3 -2
- package/dist/server/index.js +1 -4194
- package/dist/storage/r2/index.js +2 -2
- package/dist/storage/sftp/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-FUAJWL2N.js +0 -64
- package/dist/chunk-YAUBKQVA.js +0 -434
package/dist/index.d.ts
CHANGED
|
@@ -88,6 +88,14 @@ declare function createBuildTranslations(localArray: string[]): <F extends reado
|
|
|
88
88
|
locale: string;
|
|
89
89
|
} & KeyValueFields<F>>;
|
|
90
90
|
|
|
91
|
+
declare const datetimeToDb: (date?: Date | string | null) => string | null;
|
|
92
|
+
|
|
93
|
+
declare const datetimeToUi: (date?: Date | string | null) => string | null;
|
|
94
|
+
|
|
95
|
+
declare const jsonArrayToDb: (data?: unknown) => unknown[];
|
|
96
|
+
|
|
97
|
+
declare const jsonArrayToUi: (data?: unknown[]) => string;
|
|
98
|
+
|
|
91
99
|
declare const SIZE: {
|
|
92
100
|
readonly BYTE: 1;
|
|
93
101
|
readonly KB: 1024;
|
|
@@ -98,4 +106,4 @@ declare const SIZE: {
|
|
|
98
106
|
};
|
|
99
107
|
type SizeUnit = keyof typeof SIZE;
|
|
100
108
|
|
|
101
|
-
export { BaseTranslation, ErrorDetail, ErrorResult, type ErrorResultParams, FileCard, FileFull, Folder, FolderFull, OG_TYPE_ARRAY, type OgType, PostFull, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, SIZE, type SizeUnit, SuccessResult, type SuccessResultParams, TWITTER_CARD_ARRAY, type TwitterCard, classifyFileType, createBuildArticleMetadata, createBuildTranslations, createBuildWebsiteMetadata, findTranslation, formatFileSize, getMediaInfo, isFileLocked, isFolderLocked, mimeToExtension, result, serializeJsonLd };
|
|
109
|
+
export { BaseTranslation, ErrorDetail, ErrorResult, type ErrorResultParams, FileCard, FileFull, Folder, FolderFull, OG_TYPE_ARRAY, type OgType, PostFull, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, SIZE, type SizeUnit, SuccessResult, type SuccessResultParams, TWITTER_CARD_ARRAY, type TwitterCard, classifyFileType, createBuildArticleMetadata, createBuildTranslations, createBuildWebsiteMetadata, datetimeToDb, datetimeToUi, findTranslation, formatFileSize, getMediaInfo, isFileLocked, isFolderLocked, jsonArrayToDb, jsonArrayToUi, mimeToExtension, result, serializeJsonLd };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export { ADMIN_ROLES, POST_TYPES, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, isFileLocked, isFolderLocked } from './chunk-
|
|
2
|
-
export { FILE_TYPES, OG_TYPE_ARRAY, SIZE, TWITTER_CARD_ARRAY, classifyFileType, createBuildArticleMetadata, createBuildTranslations, createBuildWebsiteMetadata, findTranslation, formatFileSize, getMediaInfo, mimeToExtension, result, serializeJsonLd } from './chunk-YAUBKQVA.js';
|
|
1
|
+
export { ADMIN_ROLES, FILE_TYPES, OG_TYPE_ARRAY, POST_TYPES, ROOT_FOLDER, ROOT_FOLDER_ID, ROOT_FOLDER_NAME, SIMPLE_UPLOAD_FOLDER_KEY, SIMPLE_UPLOAD_FOLDER_NAME, SIZE, TWITTER_CARD_ARRAY, classifyFileType, createBuildArticleMetadata, createBuildTranslations, createBuildWebsiteMetadata, datetimeToDb, datetimeToUi, findTranslation, formatFileSize, getMediaInfo, isFileLocked, isFolderLocked, jsonArrayToDb, jsonArrayToUi, mimeToExtension, result, serializeJsonLd } from './chunk-YDNPEEO6.js';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -889,6 +889,7 @@ interface ActionContext {
|
|
|
889
889
|
fileCommandRepository: ReturnType<typeof createFileCommandRepository>;
|
|
890
890
|
postCommandRepository: ReturnType<typeof createPostCommandRepository>;
|
|
891
891
|
postQueryRepository: ReturnType<typeof createPostQueryRepository>;
|
|
892
|
+
seoMetadataCommandRepository: ReturnType<typeof createSeoMetadataCommandRepository>;
|
|
892
893
|
};
|
|
893
894
|
useCases: {
|
|
894
895
|
authUseCases: ReturnType<typeof createAuthUseCases>;
|
|
@@ -1790,7 +1791,7 @@ declare const postCreateValidator: ({ type, topicId, schemas, tocItemSchema, }:
|
|
|
1790
1791
|
}[];
|
|
1791
1792
|
}>>;
|
|
1792
1793
|
|
|
1793
|
-
type PostCreateFormData = Omit<zod__default.infer<ReturnType<typeof postCreateValidator>>, "author" | "parents" | "tags" | "relatedPosts" | "coverImage" | "
|
|
1794
|
+
type PostCreateFormData = Omit<zod__default.infer<ReturnType<typeof postCreateValidator>>, "author" | "parents" | "tags" | "relatedPosts" | "coverImage" | "images1" | "images2" | "image1" | "image2" | "image3" | "image4"> & {
|
|
1794
1795
|
author: AdminCard | null;
|
|
1795
1796
|
parents: PostListCard[];
|
|
1796
1797
|
tags: PostListCard[];
|
|
@@ -2225,7 +2226,7 @@ declare const postUpdateValidator: ({ id, type, topicId, schemas, tocItemSchema,
|
|
|
2225
2226
|
}[];
|
|
2226
2227
|
}>>;
|
|
2227
2228
|
|
|
2228
|
-
type PostUpdateFormData = Omit<zod__default.infer<ReturnType<typeof postUpdateValidator>>, "author" | "parents" | "tags" | "relatedPosts" | "coverImage" | "
|
|
2229
|
+
type PostUpdateFormData = Omit<zod__default.infer<ReturnType<typeof postUpdateValidator>>, "author" | "parents" | "tags" | "relatedPosts" | "coverImage" | "images1" | "images2" | "image1" | "image2" | "image3" | "image4"> & {
|
|
2229
2230
|
author: AdminCard | null;
|
|
2230
2231
|
parents: PostListCard[];
|
|
2231
2232
|
tags: PostListCard[];
|