@yimingliao/cms 0.0.59 → 0.0.60
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/server/index.d.ts +27 -3
- package/package.json +1 -1
package/dist/server/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import * as zod from 'zod';
|
|
|
7
7
|
import zod__default, { z, ZodType } from 'zod';
|
|
8
8
|
import { B as BlobFile } from '../types-0oS1A2K5.js';
|
|
9
9
|
import * as zod_v4_core from 'zod/v4/core';
|
|
10
|
-
import { T as TocItem, h as AdminRole, v as SingleItem, B as BaseTranslation, d as Admin, f as AdminFull, i as AdminSafe, D as DeviceInfo, g as AdminRefreshToken, n as File$1, b as FileFull, p as FileType, a as Folder, F as FolderFull, u as PostType, M as MultiItems, E as ExternalLink, m as Faq, r as Post, s as PostListCard, t as PostTranslation, P as PostFull, k as Alternate } from '../card-BG2vtuIz.js';
|
|
10
|
+
import { T as TocItem, h as AdminRole, v as SingleItem, B as BaseTranslation, d as Admin, f as AdminFull, i as AdminSafe, D as DeviceInfo, g as AdminRefreshToken, n as File$1, b as FileFull, p as FileType, a as Folder, F as FolderFull, u as PostType, M as MultiItems, E as ExternalLink, m as Faq, r as Post, s as PostListCard, t as PostTranslation, P as PostFull, k as Alternate, e as AdminCard, c as FileCard } from '../card-BG2vtuIz.js';
|
|
11
11
|
import * as nodemailer_lib_smtp_transport from 'nodemailer/lib/smtp-transport';
|
|
12
12
|
import nodemailer, { Transporter } from 'nodemailer';
|
|
13
13
|
import { BaseTranslator, LocaleMessages } from 'intor';
|
|
@@ -1790,7 +1790,19 @@ declare const postCreateValidator: ({ type, topicId, schemas, tocItemSchema, }:
|
|
|
1790
1790
|
}[];
|
|
1791
1791
|
}>>;
|
|
1792
1792
|
|
|
1793
|
-
type PostCreateFormData = zod__default.infer<ReturnType<typeof postCreateValidator
|
|
1793
|
+
type PostCreateFormData = Omit<zod__default.infer<ReturnType<typeof postCreateValidator>>, "author" | "parents" | "tags" | "relatedPosts" | "coverImage" | "contentImageIds" | "images1" | "images2" | "image1" | "image2" | "image3" | "image4"> & {
|
|
1794
|
+
author: AdminCard | null;
|
|
1795
|
+
parents: PostListCard[];
|
|
1796
|
+
tags: PostListCard[];
|
|
1797
|
+
relatedPosts: PostListCard[];
|
|
1798
|
+
coverImage: FileCard | null;
|
|
1799
|
+
images1: FileCard[];
|
|
1800
|
+
images2: FileCard[];
|
|
1801
|
+
image1: FileCard | null;
|
|
1802
|
+
image2: FileCard | null;
|
|
1803
|
+
image3: FileCard | null;
|
|
1804
|
+
image4: FileCard | null;
|
|
1805
|
+
};
|
|
1794
1806
|
declare function createPostCreateAction(ctx: ActionContext): ({ formData, }: {
|
|
1795
1807
|
formData: PostCreateFormData;
|
|
1796
1808
|
}) => Promise<Result<{
|
|
@@ -2213,7 +2225,19 @@ declare const postUpdateValidator: ({ id, type, topicId, schemas, tocItemSchema,
|
|
|
2213
2225
|
}[];
|
|
2214
2226
|
}>>;
|
|
2215
2227
|
|
|
2216
|
-
type PostUpdateFormData = zod__default.infer<ReturnType<typeof postUpdateValidator
|
|
2228
|
+
type PostUpdateFormData = Omit<zod__default.infer<ReturnType<typeof postUpdateValidator>>, "author" | "parents" | "tags" | "relatedPosts" | "coverImage" | "contentImageIds" | "images1" | "images2" | "image1" | "image2" | "image3" | "image4"> & {
|
|
2229
|
+
author: AdminCard | null;
|
|
2230
|
+
parents: PostListCard[];
|
|
2231
|
+
tags: PostListCard[];
|
|
2232
|
+
relatedPosts: PostListCard[];
|
|
2233
|
+
coverImage: FileCard | null;
|
|
2234
|
+
images1: FileCard[];
|
|
2235
|
+
images2: FileCard[];
|
|
2236
|
+
image1: FileCard | null;
|
|
2237
|
+
image2: FileCard | null;
|
|
2238
|
+
image3: FileCard | null;
|
|
2239
|
+
image4: FileCard | null;
|
|
2240
|
+
};
|
|
2217
2241
|
declare function createPostUpdateAction(ctx: ActionContext): ({ id, formData, }: {
|
|
2218
2242
|
id: string;
|
|
2219
2243
|
formData: PostUpdateFormData;
|