@rawfli/types 0.0.1 → 0.0.2
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.cjs.map +1 -1
- package/dist/index.d.ts +114 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -131,7 +131,7 @@ export declare type ArticleControllerGetPopularArticlesQueryResult = NonNullable
|
|
|
131
131
|
/**
|
|
132
132
|
* @summary 게시글 좋아요 토글
|
|
133
133
|
*/
|
|
134
|
-
export declare const articleControllerToggleLike: (boardId: number, articleId: number, signal?: AbortSignal) => Promise<ArticleControllerToggleLike201 |
|
|
134
|
+
export declare const articleControllerToggleLike: (boardId: number, articleId: number, signal?: AbortSignal) => Promise<ArticleControllerToggleLike201 | LikePostResponseDto>;
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
137
|
* Generated by orval v8.5.1 🍺
|
|
@@ -267,6 +267,20 @@ export declare type AwsControllerUploadFileMutationError = unknown;
|
|
|
267
267
|
|
|
268
268
|
export declare type AwsControllerUploadFileMutationResult = NonNullable<Awaited<ReturnType<typeof awsControllerUploadFile>>>;
|
|
269
269
|
|
|
270
|
+
/**
|
|
271
|
+
* Generated by orval v8.5.1 🍺
|
|
272
|
+
* Do not edit manually.
|
|
273
|
+
* Rawfli API
|
|
274
|
+
* The Rawfli API description
|
|
275
|
+
* OpenAPI spec version: 1.0
|
|
276
|
+
*/
|
|
277
|
+
export declare interface BoardResponseDto {
|
|
278
|
+
id: number;
|
|
279
|
+
type: string;
|
|
280
|
+
name: string;
|
|
281
|
+
description: string;
|
|
282
|
+
}
|
|
283
|
+
|
|
270
284
|
export declare const boardsControllerGetBoard: (boardId: number, signal?: AbortSignal) => Promise<BoardsControllerGetBoard200>;
|
|
271
285
|
|
|
272
286
|
/**
|
|
@@ -512,6 +526,26 @@ export declare interface DeletedCommentResponseDto {
|
|
|
512
526
|
deletedAt: string;
|
|
513
527
|
}
|
|
514
528
|
|
|
529
|
+
/**
|
|
530
|
+
* Generated by orval v8.5.1 🍺
|
|
531
|
+
* Do not edit manually.
|
|
532
|
+
* Rawfli API
|
|
533
|
+
* The Rawfli API description
|
|
534
|
+
* OpenAPI spec version: 1.0
|
|
535
|
+
*/
|
|
536
|
+
export declare interface DeletedPostResponseDto {
|
|
537
|
+
id: number;
|
|
538
|
+
originalPostId: number;
|
|
539
|
+
boardId: number;
|
|
540
|
+
authorId: number;
|
|
541
|
+
title: string;
|
|
542
|
+
content: string;
|
|
543
|
+
type: string;
|
|
544
|
+
views: number;
|
|
545
|
+
originalCreatedAt: string;
|
|
546
|
+
deletedAt: string;
|
|
547
|
+
}
|
|
548
|
+
|
|
515
549
|
export declare const getArticleControllerCreateArticleMutationOptions: <TError = unknown, TContext = unknown>(options?: {
|
|
516
550
|
mutation?: UseMutationOptions<Awaited<ReturnType<typeof articleControllerCreateArticle>>, TError, {
|
|
517
551
|
boardId: number;
|
|
@@ -827,6 +861,17 @@ export declare interface LikeArticleResponseDto {
|
|
|
827
861
|
liked: boolean;
|
|
828
862
|
}
|
|
829
863
|
|
|
864
|
+
/**
|
|
865
|
+
* Generated by orval v8.5.1 🍺
|
|
866
|
+
* Do not edit manually.
|
|
867
|
+
* Rawfli API
|
|
868
|
+
* The Rawfli API description
|
|
869
|
+
* OpenAPI spec version: 1.0
|
|
870
|
+
*/
|
|
871
|
+
export declare interface LikePostResponseDto {
|
|
872
|
+
liked: boolean;
|
|
873
|
+
}
|
|
874
|
+
|
|
830
875
|
/**
|
|
831
876
|
* Generated by orval v8.5.1 🍺
|
|
832
877
|
* Do not edit manually.
|
|
@@ -839,6 +884,32 @@ export declare interface LoginUserDto {
|
|
|
839
884
|
password: string;
|
|
840
885
|
}
|
|
841
886
|
|
|
887
|
+
export declare interface PostListItemResponseDto {
|
|
888
|
+
id: number;
|
|
889
|
+
title: string;
|
|
890
|
+
author: UserResponseDto;
|
|
891
|
+
views: number;
|
|
892
|
+
commentCount: number;
|
|
893
|
+
createdAt: string;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
export declare interface PostListResponseDto {
|
|
897
|
+
posts: PostListItemResponseDto[];
|
|
898
|
+
total: number;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
export declare interface PostResponseDto {
|
|
902
|
+
id: number;
|
|
903
|
+
title: string;
|
|
904
|
+
content: string;
|
|
905
|
+
author: UserResponseDto;
|
|
906
|
+
views: number;
|
|
907
|
+
likesCount: number;
|
|
908
|
+
comments: CommentResponseDto[];
|
|
909
|
+
createdAt: string;
|
|
910
|
+
updatedAt: string;
|
|
911
|
+
}
|
|
912
|
+
|
|
842
913
|
export declare const postsControllerCreateComment: (boardId: number, postId: number, createCommentDto: CreateCommentDto, signal?: AbortSignal) => Promise<PostsControllerCreateComment201>;
|
|
843
914
|
|
|
844
915
|
/**
|
|
@@ -1016,6 +1087,48 @@ export declare interface ReferencedPhotoDto {
|
|
|
1016
1087
|
imageKey: string;
|
|
1017
1088
|
}
|
|
1018
1089
|
|
|
1090
|
+
/**
|
|
1091
|
+
* Generated by orval v8.5.1 🍺
|
|
1092
|
+
* Do not edit manually.
|
|
1093
|
+
* Rawfli API
|
|
1094
|
+
* The Rawfli API description
|
|
1095
|
+
* OpenAPI spec version: 1.0
|
|
1096
|
+
*/
|
|
1097
|
+
export declare interface SearchAuthorResponseDto {
|
|
1098
|
+
id: number;
|
|
1099
|
+
username: string;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
export declare interface SearchResultItemResponseDto {
|
|
1103
|
+
type: SearchResultItemResponseDtoType;
|
|
1104
|
+
id: number;
|
|
1105
|
+
boardId: number;
|
|
1106
|
+
boardName: string;
|
|
1107
|
+
title: string;
|
|
1108
|
+
content: string;
|
|
1109
|
+
author: SearchAuthorResponseDto;
|
|
1110
|
+
views: number;
|
|
1111
|
+
likesCount: number;
|
|
1112
|
+
commentCount: number;
|
|
1113
|
+
createdAt: string;
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* Generated by orval v8.5.1 🍺
|
|
1118
|
+
* Do not edit manually.
|
|
1119
|
+
* Rawfli API
|
|
1120
|
+
* The Rawfli API description
|
|
1121
|
+
* OpenAPI spec version: 1.0
|
|
1122
|
+
*/
|
|
1123
|
+
export declare type SearchResultItemResponseDtoType = {
|
|
1124
|
+
[key: string]: unknown;
|
|
1125
|
+
};
|
|
1126
|
+
|
|
1127
|
+
export declare interface SearchResultsResponseDto {
|
|
1128
|
+
results: SearchResultItemResponseDto[];
|
|
1129
|
+
total: number;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1019
1132
|
/**
|
|
1020
1133
|
* @summary 게시글 작성
|
|
1021
1134
|
*/
|