@back23/promptly-sdk 2.3.2 → 2.5.0
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/README.md +19 -0
- package/dist/index.d.mts +48 -57
- package/dist/index.d.ts +48 -57
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,6 +24,23 @@ const { data: posts } = await client.blog.list();
|
|
|
24
24
|
const products = await client.shop.listProducts();
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
+
## v2.5.0 Changes
|
|
28
|
+
|
|
29
|
+
### BoardPost 타입 확장
|
|
30
|
+
|
|
31
|
+
게시글에 `is_secret`, `is_mine` 필드가 추가되었습니다.
|
|
32
|
+
|
|
33
|
+
```typescript
|
|
34
|
+
interface BoardPost {
|
|
35
|
+
// ... 기존 필드
|
|
36
|
+
is_notice: boolean; // 공지 여부
|
|
37
|
+
is_secret: boolean; // 비밀글 여부
|
|
38
|
+
is_mine: boolean; // 현재 로그인 사용자의 글 여부
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
27
44
|
## v2.3.1 Changes (Bug Fix)
|
|
28
45
|
|
|
29
46
|
### Dual Authentication Support Fixed
|
|
@@ -823,6 +840,8 @@ interface BoardPost {
|
|
|
823
840
|
author: string;
|
|
824
841
|
views: number;
|
|
825
842
|
is_notice: boolean;
|
|
843
|
+
is_secret: boolean;
|
|
844
|
+
is_mine: boolean;
|
|
826
845
|
is_private: boolean;
|
|
827
846
|
comment_count: number;
|
|
828
847
|
attachments?: Media[];
|
package/dist/index.d.mts
CHANGED
|
@@ -94,16 +94,15 @@ interface Member {
|
|
|
94
94
|
id: number;
|
|
95
95
|
name: string;
|
|
96
96
|
email: string;
|
|
97
|
-
phone
|
|
98
|
-
avatar
|
|
99
|
-
|
|
97
|
+
phone: string | null;
|
|
98
|
+
avatar: string | null;
|
|
99
|
+
provider: string | null;
|
|
100
|
+
is_social_login: boolean;
|
|
100
101
|
created_at: string;
|
|
101
|
-
updated_at: string;
|
|
102
102
|
}
|
|
103
103
|
interface AuthResponse {
|
|
104
|
-
member: Member;
|
|
105
104
|
token: string;
|
|
106
|
-
|
|
105
|
+
user: Member;
|
|
107
106
|
}
|
|
108
107
|
interface ForgotPasswordData {
|
|
109
108
|
email: string;
|
|
@@ -137,49 +136,46 @@ interface UpdateProfileData {
|
|
|
137
136
|
|
|
138
137
|
interface Board {
|
|
139
138
|
id: number;
|
|
140
|
-
slug: string;
|
|
141
139
|
name: string;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
140
|
+
slug: string;
|
|
141
|
+
description: string | null;
|
|
142
|
+
is_active: boolean;
|
|
145
143
|
created_at: string;
|
|
146
|
-
updated_at: string;
|
|
147
|
-
}
|
|
148
|
-
interface BoardSettings {
|
|
149
|
-
allow_comments: boolean;
|
|
150
|
-
allow_attachments: boolean;
|
|
151
|
-
require_login_to_view: boolean;
|
|
152
|
-
require_login_to_write: boolean;
|
|
153
|
-
posts_per_page: number;
|
|
154
144
|
}
|
|
155
145
|
interface BoardPost {
|
|
156
146
|
id: number;
|
|
157
|
-
board_id: number;
|
|
158
|
-
board?: Board;
|
|
159
|
-
member_id?: number;
|
|
160
|
-
member?: Member;
|
|
161
147
|
title: string;
|
|
162
|
-
|
|
163
|
-
excerpt?: string;
|
|
148
|
+
excerpt: string;
|
|
164
149
|
author: string;
|
|
165
|
-
is_notice: boolean;
|
|
166
|
-
is_private: boolean;
|
|
167
150
|
views: number;
|
|
168
|
-
|
|
169
|
-
|
|
151
|
+
is_notice: boolean;
|
|
152
|
+
is_secret: boolean;
|
|
153
|
+
is_mine: boolean;
|
|
170
154
|
created_at: string;
|
|
171
|
-
|
|
155
|
+
content?: string;
|
|
156
|
+
updated_at?: string;
|
|
157
|
+
board?: {
|
|
158
|
+
id: number;
|
|
159
|
+
name: string;
|
|
160
|
+
slug: string;
|
|
161
|
+
};
|
|
172
162
|
}
|
|
173
163
|
interface BoardComment {
|
|
174
164
|
id: number;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
165
|
+
parent_id: number | null;
|
|
166
|
+
depth: number;
|
|
167
|
+
author: {
|
|
168
|
+
name: string;
|
|
169
|
+
is_member: boolean;
|
|
170
|
+
};
|
|
179
171
|
content: string;
|
|
180
|
-
|
|
172
|
+
is_secret: boolean;
|
|
173
|
+
is_pinned: boolean;
|
|
174
|
+
likes: number;
|
|
175
|
+
is_mine: boolean;
|
|
181
176
|
created_at: string;
|
|
182
177
|
updated_at: string;
|
|
178
|
+
replies: BoardComment[];
|
|
183
179
|
}
|
|
184
180
|
interface BoardListParams extends ListParams {
|
|
185
181
|
}
|
|
@@ -216,21 +212,15 @@ interface UpdateCommentData {
|
|
|
216
212
|
|
|
217
213
|
interface BlogPost {
|
|
218
214
|
id: number;
|
|
219
|
-
slug: string;
|
|
220
215
|
title: string;
|
|
221
|
-
|
|
222
|
-
excerpt
|
|
223
|
-
featured_image
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
author_name?: string;
|
|
227
|
-
is_published: boolean;
|
|
228
|
-
published_at?: string;
|
|
229
|
-
view_count: number;
|
|
230
|
-
seo_title?: string;
|
|
231
|
-
seo_description?: string;
|
|
216
|
+
slug: string;
|
|
217
|
+
excerpt: string;
|
|
218
|
+
featured_image: string | null;
|
|
219
|
+
author: string;
|
|
220
|
+
status: string;
|
|
232
221
|
created_at: string;
|
|
233
|
-
|
|
222
|
+
content?: string;
|
|
223
|
+
updated_at?: string;
|
|
234
224
|
}
|
|
235
225
|
interface BlogListParams extends ListParams {
|
|
236
226
|
category?: string;
|
|
@@ -238,23 +228,24 @@ interface BlogListParams extends ListParams {
|
|
|
238
228
|
search?: string;
|
|
239
229
|
}
|
|
240
230
|
|
|
241
|
-
type CommentType = 'board_post' | 'blog_post' | 'page';
|
|
242
231
|
interface Comment {
|
|
243
232
|
id: number;
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
233
|
+
parent_id: number | null;
|
|
234
|
+
depth: number;
|
|
235
|
+
author: {
|
|
236
|
+
name: string;
|
|
237
|
+
is_member: boolean;
|
|
238
|
+
};
|
|
247
239
|
content: string;
|
|
248
|
-
is_approved: boolean;
|
|
249
|
-
is_pinned: boolean;
|
|
250
240
|
is_secret: boolean;
|
|
241
|
+
is_pinned: boolean;
|
|
251
242
|
likes: number;
|
|
252
|
-
|
|
243
|
+
is_mine: boolean;
|
|
253
244
|
created_at: string;
|
|
245
|
+
updated_at: string;
|
|
254
246
|
replies: Comment[];
|
|
255
247
|
}
|
|
256
|
-
|
|
257
|
-
}
|
|
248
|
+
type CommentListResponse = ListResponse<Comment>;
|
|
258
249
|
interface CommentListParams extends ListParams {
|
|
259
250
|
include_unapproved?: boolean;
|
|
260
251
|
}
|
|
@@ -1604,4 +1595,4 @@ declare class Promptly {
|
|
|
1604
1595
|
getApiKey(): string | null;
|
|
1605
1596
|
}
|
|
1606
1597
|
|
|
1607
|
-
export { type AddToCartData, type ApiError, type ApiResponse, type ApplyCouponData, type AuthResponse, type AvailableDatesParams, type AvailableSlotsParams, type BlogListParams, type BlogPost, type Board, type BoardComment, type BoardListParams, type BoardPost, type
|
|
1598
|
+
export { type AddToCartData, type ApiError, type ApiResponse, type ApplyCouponData, type AuthResponse, type AvailableDatesParams, type AvailableSlotsParams, type BlogListParams, type BlogPost, type Board, type BoardComment, type BoardListParams, type BoardPost, type Cart, type CartItem, type Comment, type CommentCreateData, type CommentDeleteData, type CommentListParams, type CommentListResponse, type CommentUpdateData, type Coupon, type CouponType, type CouponValidation, type CreateCommentData, type CreateEntityData, type CreateEntityRecordData, type CreateOrderData, type CreatePostData, type CreateReservationData, type CreateReservationResult, type CustomEntity, type EntityField, type EntityListParams, type EntityRecord, type EntitySchema, type ForgotPasswordData, type Form, type FormField, type FormFieldOption, type FormFieldType, type FormFieldValidation, type FormListParams, type FormSettings, type FormSubmission, type ListParams, type ListResponse, type LoginCredentials, type Media, type Member, type Order, type OrderItem, type OrderListParams, type OrderStatus, type PaginatedResponse, type PaginationMeta, type Payment, type PaymentCancelData, type PaymentConfirmData, type PaymentMethod, type PaymentReadyData, type PaymentStatus, type PostListParams, type Product, type ProductCategory, type ProductListParams, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductVariant, Promptly, type PromptlyConfig, PromptlyError, type RegisterData, type Reservation, type ReservationListParams, type ReservationService, type ReservationSettings, type ReservationSlot, type ReservationStaff, type ReservationStaffSummary, type ResetPasswordData, type SocialAuthUrl, type SocialProvider, type SubmissionListParams, type SubmitFormData, type UpdateCartItemData, type UpdateCommentData, type UpdateEntityData, type UpdateEntityRecordData, type UpdatePostData, type UpdateProfileData, Promptly as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -94,16 +94,15 @@ interface Member {
|
|
|
94
94
|
id: number;
|
|
95
95
|
name: string;
|
|
96
96
|
email: string;
|
|
97
|
-
phone
|
|
98
|
-
avatar
|
|
99
|
-
|
|
97
|
+
phone: string | null;
|
|
98
|
+
avatar: string | null;
|
|
99
|
+
provider: string | null;
|
|
100
|
+
is_social_login: boolean;
|
|
100
101
|
created_at: string;
|
|
101
|
-
updated_at: string;
|
|
102
102
|
}
|
|
103
103
|
interface AuthResponse {
|
|
104
|
-
member: Member;
|
|
105
104
|
token: string;
|
|
106
|
-
|
|
105
|
+
user: Member;
|
|
107
106
|
}
|
|
108
107
|
interface ForgotPasswordData {
|
|
109
108
|
email: string;
|
|
@@ -137,49 +136,46 @@ interface UpdateProfileData {
|
|
|
137
136
|
|
|
138
137
|
interface Board {
|
|
139
138
|
id: number;
|
|
140
|
-
slug: string;
|
|
141
139
|
name: string;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
140
|
+
slug: string;
|
|
141
|
+
description: string | null;
|
|
142
|
+
is_active: boolean;
|
|
145
143
|
created_at: string;
|
|
146
|
-
updated_at: string;
|
|
147
|
-
}
|
|
148
|
-
interface BoardSettings {
|
|
149
|
-
allow_comments: boolean;
|
|
150
|
-
allow_attachments: boolean;
|
|
151
|
-
require_login_to_view: boolean;
|
|
152
|
-
require_login_to_write: boolean;
|
|
153
|
-
posts_per_page: number;
|
|
154
144
|
}
|
|
155
145
|
interface BoardPost {
|
|
156
146
|
id: number;
|
|
157
|
-
board_id: number;
|
|
158
|
-
board?: Board;
|
|
159
|
-
member_id?: number;
|
|
160
|
-
member?: Member;
|
|
161
147
|
title: string;
|
|
162
|
-
|
|
163
|
-
excerpt?: string;
|
|
148
|
+
excerpt: string;
|
|
164
149
|
author: string;
|
|
165
|
-
is_notice: boolean;
|
|
166
|
-
is_private: boolean;
|
|
167
150
|
views: number;
|
|
168
|
-
|
|
169
|
-
|
|
151
|
+
is_notice: boolean;
|
|
152
|
+
is_secret: boolean;
|
|
153
|
+
is_mine: boolean;
|
|
170
154
|
created_at: string;
|
|
171
|
-
|
|
155
|
+
content?: string;
|
|
156
|
+
updated_at?: string;
|
|
157
|
+
board?: {
|
|
158
|
+
id: number;
|
|
159
|
+
name: string;
|
|
160
|
+
slug: string;
|
|
161
|
+
};
|
|
172
162
|
}
|
|
173
163
|
interface BoardComment {
|
|
174
164
|
id: number;
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
165
|
+
parent_id: number | null;
|
|
166
|
+
depth: number;
|
|
167
|
+
author: {
|
|
168
|
+
name: string;
|
|
169
|
+
is_member: boolean;
|
|
170
|
+
};
|
|
179
171
|
content: string;
|
|
180
|
-
|
|
172
|
+
is_secret: boolean;
|
|
173
|
+
is_pinned: boolean;
|
|
174
|
+
likes: number;
|
|
175
|
+
is_mine: boolean;
|
|
181
176
|
created_at: string;
|
|
182
177
|
updated_at: string;
|
|
178
|
+
replies: BoardComment[];
|
|
183
179
|
}
|
|
184
180
|
interface BoardListParams extends ListParams {
|
|
185
181
|
}
|
|
@@ -216,21 +212,15 @@ interface UpdateCommentData {
|
|
|
216
212
|
|
|
217
213
|
interface BlogPost {
|
|
218
214
|
id: number;
|
|
219
|
-
slug: string;
|
|
220
215
|
title: string;
|
|
221
|
-
|
|
222
|
-
excerpt
|
|
223
|
-
featured_image
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
author_name?: string;
|
|
227
|
-
is_published: boolean;
|
|
228
|
-
published_at?: string;
|
|
229
|
-
view_count: number;
|
|
230
|
-
seo_title?: string;
|
|
231
|
-
seo_description?: string;
|
|
216
|
+
slug: string;
|
|
217
|
+
excerpt: string;
|
|
218
|
+
featured_image: string | null;
|
|
219
|
+
author: string;
|
|
220
|
+
status: string;
|
|
232
221
|
created_at: string;
|
|
233
|
-
|
|
222
|
+
content?: string;
|
|
223
|
+
updated_at?: string;
|
|
234
224
|
}
|
|
235
225
|
interface BlogListParams extends ListParams {
|
|
236
226
|
category?: string;
|
|
@@ -238,23 +228,24 @@ interface BlogListParams extends ListParams {
|
|
|
238
228
|
search?: string;
|
|
239
229
|
}
|
|
240
230
|
|
|
241
|
-
type CommentType = 'board_post' | 'blog_post' | 'page';
|
|
242
231
|
interface Comment {
|
|
243
232
|
id: number;
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
233
|
+
parent_id: number | null;
|
|
234
|
+
depth: number;
|
|
235
|
+
author: {
|
|
236
|
+
name: string;
|
|
237
|
+
is_member: boolean;
|
|
238
|
+
};
|
|
247
239
|
content: string;
|
|
248
|
-
is_approved: boolean;
|
|
249
|
-
is_pinned: boolean;
|
|
250
240
|
is_secret: boolean;
|
|
241
|
+
is_pinned: boolean;
|
|
251
242
|
likes: number;
|
|
252
|
-
|
|
243
|
+
is_mine: boolean;
|
|
253
244
|
created_at: string;
|
|
245
|
+
updated_at: string;
|
|
254
246
|
replies: Comment[];
|
|
255
247
|
}
|
|
256
|
-
|
|
257
|
-
}
|
|
248
|
+
type CommentListResponse = ListResponse<Comment>;
|
|
258
249
|
interface CommentListParams extends ListParams {
|
|
259
250
|
include_unapproved?: boolean;
|
|
260
251
|
}
|
|
@@ -1604,4 +1595,4 @@ declare class Promptly {
|
|
|
1604
1595
|
getApiKey(): string | null;
|
|
1605
1596
|
}
|
|
1606
1597
|
|
|
1607
|
-
export { type AddToCartData, type ApiError, type ApiResponse, type ApplyCouponData, type AuthResponse, type AvailableDatesParams, type AvailableSlotsParams, type BlogListParams, type BlogPost, type Board, type BoardComment, type BoardListParams, type BoardPost, type
|
|
1598
|
+
export { type AddToCartData, type ApiError, type ApiResponse, type ApplyCouponData, type AuthResponse, type AvailableDatesParams, type AvailableSlotsParams, type BlogListParams, type BlogPost, type Board, type BoardComment, type BoardListParams, type BoardPost, type Cart, type CartItem, type Comment, type CommentCreateData, type CommentDeleteData, type CommentListParams, type CommentListResponse, type CommentUpdateData, type Coupon, type CouponType, type CouponValidation, type CreateCommentData, type CreateEntityData, type CreateEntityRecordData, type CreateOrderData, type CreatePostData, type CreateReservationData, type CreateReservationResult, type CustomEntity, type EntityField, type EntityListParams, type EntityRecord, type EntitySchema, type ForgotPasswordData, type Form, type FormField, type FormFieldOption, type FormFieldType, type FormFieldValidation, type FormListParams, type FormSettings, type FormSubmission, type ListParams, type ListResponse, type LoginCredentials, type Media, type Member, type Order, type OrderItem, type OrderListParams, type OrderStatus, type PaginatedResponse, type PaginationMeta, type Payment, type PaymentCancelData, type PaymentConfirmData, type PaymentMethod, type PaymentReadyData, type PaymentStatus, type PostListParams, type Product, type ProductCategory, type ProductListParams, type ProductOption, type ProductOptionValue, type ProductStatus, type ProductVariant, Promptly, type PromptlyConfig, PromptlyError, type RegisterData, type Reservation, type ReservationListParams, type ReservationService, type ReservationSettings, type ReservationSlot, type ReservationStaff, type ReservationStaffSummary, type ResetPasswordData, type SocialAuthUrl, type SocialProvider, type SubmissionListParams, type SubmitFormData, type UpdateCartItemData, type UpdateCommentData, type UpdateEntityData, type UpdateEntityRecordData, type UpdatePostData, type UpdateProfileData, Promptly as default };
|