deliveryapi 0.2.0 → 0.2.1

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.cts CHANGED
@@ -60,22 +60,23 @@ interface IssueApiKeyResult {
60
60
  interface Post {
61
61
  id: string;
62
62
  title: string;
63
- content: string;
63
+ content?: string;
64
64
  authorUid: string;
65
65
  authorName: string;
66
66
  isSecret: boolean;
67
67
  commentCount: number;
68
- dateCreated: string;
69
- dateModified: string;
68
+ viewCount: number;
69
+ dateCreated: string | null;
70
+ dateModified?: string | null;
70
71
  }
71
72
  interface Comment {
72
73
  id: string;
73
- postId: string;
74
+ postId?: string;
74
75
  content: string;
75
76
  authorUid: string;
76
77
  authorName: string;
77
78
  isAdmin: boolean;
78
- dateCreated: string;
79
+ dateCreated: string | null;
79
80
  }
80
81
  interface ListPostsParams {
81
82
  cursor?: string;
@@ -84,7 +85,7 @@ interface ListPostsParams {
84
85
  interface ListPostsResult {
85
86
  posts: Post[];
86
87
  nextCursor: string | null;
87
- total: number;
88
+ hasMore: boolean;
88
89
  }
89
90
  interface CreatePostParams {
90
91
  title: string;
@@ -362,7 +363,9 @@ declare class QnaResource {
362
363
  /** 게시글 상세 조회 */
363
364
  getPost(postId: string): Promise<Post>;
364
365
  /** 게시글 작성 (로그인 필요) */
365
- createPost(params: CreatePostParams): Promise<Post>;
366
+ createPost(params: CreatePostParams): Promise<{
367
+ id: string;
368
+ }>;
366
369
  /** 게시글 수정 (작성자/관리자만) */
367
370
  updatePost(postId: string, params: UpdatePostParams): Promise<Post>;
368
371
  /** 게시글 삭제 (작성자/관리자만) */
package/dist/index.d.ts CHANGED
@@ -60,22 +60,23 @@ interface IssueApiKeyResult {
60
60
  interface Post {
61
61
  id: string;
62
62
  title: string;
63
- content: string;
63
+ content?: string;
64
64
  authorUid: string;
65
65
  authorName: string;
66
66
  isSecret: boolean;
67
67
  commentCount: number;
68
- dateCreated: string;
69
- dateModified: string;
68
+ viewCount: number;
69
+ dateCreated: string | null;
70
+ dateModified?: string | null;
70
71
  }
71
72
  interface Comment {
72
73
  id: string;
73
- postId: string;
74
+ postId?: string;
74
75
  content: string;
75
76
  authorUid: string;
76
77
  authorName: string;
77
78
  isAdmin: boolean;
78
- dateCreated: string;
79
+ dateCreated: string | null;
79
80
  }
80
81
  interface ListPostsParams {
81
82
  cursor?: string;
@@ -84,7 +85,7 @@ interface ListPostsParams {
84
85
  interface ListPostsResult {
85
86
  posts: Post[];
86
87
  nextCursor: string | null;
87
- total: number;
88
+ hasMore: boolean;
88
89
  }
89
90
  interface CreatePostParams {
90
91
  title: string;
@@ -362,7 +363,9 @@ declare class QnaResource {
362
363
  /** 게시글 상세 조회 */
363
364
  getPost(postId: string): Promise<Post>;
364
365
  /** 게시글 작성 (로그인 필요) */
365
- createPost(params: CreatePostParams): Promise<Post>;
366
+ createPost(params: CreatePostParams): Promise<{
367
+ id: string;
368
+ }>;
366
369
  /** 게시글 수정 (작성자/관리자만) */
367
370
  updatePost(postId: string, params: UpdatePostParams): Promise<Post>;
368
371
  /** 게시글 삭제 (작성자/관리자만) */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deliveryapi",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Official JavaScript/TypeScript SDK for the DeliveryAPI",
5
5
  "keywords": [
6
6
  "delivery",