@yimingliao/cms 0.0.4 → 0.0.5
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/index.d.ts +9 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -163,7 +163,7 @@ declare const FILE_TYPES: {
|
|
|
163
163
|
};
|
|
164
164
|
type FileType = (typeof FILE_TYPES)[keyof typeof FILE_TYPES];
|
|
165
165
|
|
|
166
|
-
interface File
|
|
166
|
+
interface File {
|
|
167
167
|
id: string;
|
|
168
168
|
key: string;
|
|
169
169
|
checksum: string;
|
|
@@ -205,10 +205,10 @@ interface Folder {
|
|
|
205
205
|
type FolderFull = Folder & {
|
|
206
206
|
parentFolder: (Folder & {
|
|
207
207
|
subFolders: Folder[];
|
|
208
|
-
files: File
|
|
208
|
+
files: File[];
|
|
209
209
|
}) | null;
|
|
210
210
|
subFolders: Folder[];
|
|
211
|
-
files: File
|
|
211
|
+
files: File[];
|
|
212
212
|
};
|
|
213
213
|
|
|
214
214
|
declare const POST_TYPES: {
|
|
@@ -320,7 +320,7 @@ type PostListCard = Post & {
|
|
|
320
320
|
postsInTopic: Post[];
|
|
321
321
|
children: Post[];
|
|
322
322
|
taggedPosts: Post[];
|
|
323
|
-
coverImage: File
|
|
323
|
+
coverImage: File | null;
|
|
324
324
|
translations: PostTranslation[];
|
|
325
325
|
};
|
|
326
326
|
|
|
@@ -344,7 +344,7 @@ type PostFull = Post & {
|
|
|
344
344
|
translations: PostTranslation[];
|
|
345
345
|
};
|
|
346
346
|
|
|
347
|
-
type FileFull = File
|
|
347
|
+
type FileFull = File & {
|
|
348
348
|
folder: Folder | null;
|
|
349
349
|
adminAsAvatarImage: Admin[];
|
|
350
350
|
postsAsCoverImage: Post[];
|
|
@@ -358,13 +358,13 @@ type FileFull = File$1 & {
|
|
|
358
358
|
translations: FileTranslation[];
|
|
359
359
|
};
|
|
360
360
|
|
|
361
|
-
type FileCard = File
|
|
361
|
+
type FileCard = File & {
|
|
362
362
|
translations: FileTranslation[];
|
|
363
363
|
};
|
|
364
364
|
|
|
365
365
|
type AdminFull = AdminSafe & {
|
|
366
366
|
adminRefreshTokens: AdminRefreshToken[];
|
|
367
|
-
avatarImage: (File
|
|
367
|
+
avatarImage: (File & {
|
|
368
368
|
translations: FileTranslation[];
|
|
369
369
|
}) | null;
|
|
370
370
|
posts: Post[];
|
|
@@ -498,7 +498,7 @@ interface CreateParams$2 {
|
|
|
498
498
|
}
|
|
499
499
|
interface UpdateParams$2 {
|
|
500
500
|
id: string;
|
|
501
|
-
file: File
|
|
501
|
+
file: File;
|
|
502
502
|
key: string;
|
|
503
503
|
checksum: string;
|
|
504
504
|
fileMeta: {
|
|
@@ -875,4 +875,4 @@ declare function createSeoMetadataCommandRepository(prisma: any): {
|
|
|
875
875
|
upsert: ({ postId, translations, }: UpsertParams) => Promise<void>;
|
|
876
876
|
};
|
|
877
877
|
|
|
878
|
-
export { ADMIN_ROLES, type Admin, type AdminCard, type AdminFull, type AdminRefreshToken, type AdminRole, type AdminSafe, type AdminTranslation, type Alternate, type BaseTranslation, type DeviceInfo, type ExternalLink, FILE_TYPES, type Faq, type File
|
|
878
|
+
export { ADMIN_ROLES, type Admin, type AdminCard, type AdminFull, type AdminRefreshToken, type AdminRole, type AdminSafe, type AdminTranslation, type Alternate, type BaseTranslation, type DeviceInfo, type ExternalLink, FILE_TYPES, type Faq, type File, type FileCard, type FileFull, type FileTranslation, type FileType, type Folder, type FolderFull, type MultiItems, POST_TYPES, type Post, type PostFull, type PostListCard, type PostTranslation, type PostType, type SeoMetadata, type SingleItem, type TocItem, type Translation, createAdminCommandRepository, createAdminQueryRepository, createAdminRefreshTokenCommandRepository, createAdminRefreshTokenQueryRepository, createArgon2Service, createCookieService, createCryptoService, createFileCommandRepository, createFileQueryRepository, createFolderCommandRepository, createFolderQueryRepository, createJwtService, createPostCommandRepository, createPostQueryRepository, createSeoMetadataCommandRepository };
|