@sayren/storefront-sdk 0.15.0 → 0.17.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/dist/auth/index.mjs +1 -1
- package/dist/{checkout-Dsv9C9Zp.mjs → checkout-C25liqdW.mjs} +113 -98
- package/dist/{client-ZPNEEeRT.mjs → client-CBAgQuTc.mjs} +15 -72
- package/dist/{index-D5uvtiOl.d.mts → index-BsHuMzBD.d.mts} +577 -698
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/payments/index.d.mts +1 -3
- package/dist/payments/index.mjs +1 -2
- package/package.json +1 -1
- package/src/client.ts +1 -57
- package/src/index.ts +1 -0
- package/src/payments/index.ts +0 -5
- package/src/schemas/cart.ts +9 -0
- package/src/schemas/catalog.ts +15 -0
- package/src/schemas/checkout.ts +20 -22
- package/src/schemas/coupon.ts +19 -2
- package/src/schemas/fulfillment.ts +14 -76
- package/src/schemas/order.ts +7 -86
- package/src/schemas/product-options.ts +128 -0
|
@@ -17,19 +17,13 @@ declare function analyticsIdsFromCookie(cookieHeader: string | null | undefined)
|
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/schemas/cart.d.ts
|
|
19
19
|
declare const cartItemSchema: z.ZodObject<{
|
|
20
|
-
cartItemId: z.ZodString;
|
|
21
|
-
productId: z.ZodString;
|
|
22
|
-
productName: z.ZodString;
|
|
23
|
-
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
24
|
-
optionId: z.ZodNullable<z.ZodString>;
|
|
25
|
-
optionName: z.ZodNullable<z.ZodString>;
|
|
26
20
|
quantity: z.ZodNumber;
|
|
27
21
|
unitPrice: z.ZodNumber;
|
|
28
22
|
totalPrice: z.ZodNumber;
|
|
29
23
|
fulfillment: z.ZodObject<{
|
|
30
24
|
type: z.ZodString;
|
|
31
25
|
requiresShipping: z.ZodBoolean;
|
|
32
|
-
withdrawalRestricted: z.ZodBoolean
|
|
26
|
+
withdrawalRestricted: z.ZodOptional<z.ZodBoolean>;
|
|
33
27
|
}, z.core.$strip>;
|
|
34
28
|
purchasable: z.ZodBoolean;
|
|
35
29
|
unpurchasableReason: z.ZodNullable<z.ZodEnum<{
|
|
@@ -37,23 +31,33 @@ declare const cartItemSchema: z.ZodObject<{
|
|
|
37
31
|
SUSPENDED: "SUSPENDED";
|
|
38
32
|
CLOSED: "CLOSED";
|
|
39
33
|
}>>;
|
|
34
|
+
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
35
|
+
kind: z.ZodString;
|
|
36
|
+
groupName: z.ZodString;
|
|
37
|
+
valueName: z.ZodString;
|
|
38
|
+
additionalPrice: z.ZodNumber;
|
|
39
|
+
}, z.core.$strip>>>>;
|
|
40
|
+
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41
|
+
label: z.ZodString;
|
|
42
|
+
value: z.ZodString;
|
|
43
|
+
}, z.core.$strip>>>>;
|
|
44
|
+
cartItemId: z.ZodString;
|
|
45
|
+
productId: z.ZodString;
|
|
46
|
+
productName: z.ZodString;
|
|
47
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
48
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
49
|
+
optionName: z.ZodNullable<z.ZodString>;
|
|
40
50
|
}, z.core.$strip>;
|
|
41
51
|
type CartItem = z.infer<typeof cartItemSchema>;
|
|
42
52
|
declare const cartSchema: z.ZodObject<{
|
|
43
53
|
items: z.ZodArray<z.ZodObject<{
|
|
44
|
-
cartItemId: z.ZodString;
|
|
45
|
-
productId: z.ZodString;
|
|
46
|
-
productName: z.ZodString;
|
|
47
|
-
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
48
|
-
optionId: z.ZodNullable<z.ZodString>;
|
|
49
|
-
optionName: z.ZodNullable<z.ZodString>;
|
|
50
54
|
quantity: z.ZodNumber;
|
|
51
55
|
unitPrice: z.ZodNumber;
|
|
52
56
|
totalPrice: z.ZodNumber;
|
|
53
57
|
fulfillment: z.ZodObject<{
|
|
54
58
|
type: z.ZodString;
|
|
55
59
|
requiresShipping: z.ZodBoolean;
|
|
56
|
-
withdrawalRestricted: z.ZodBoolean
|
|
60
|
+
withdrawalRestricted: z.ZodOptional<z.ZodBoolean>;
|
|
57
61
|
}, z.core.$strip>;
|
|
58
62
|
purchasable: z.ZodBoolean;
|
|
59
63
|
unpurchasableReason: z.ZodNullable<z.ZodEnum<{
|
|
@@ -61,6 +65,22 @@ declare const cartSchema: z.ZodObject<{
|
|
|
61
65
|
SUSPENDED: "SUSPENDED";
|
|
62
66
|
CLOSED: "CLOSED";
|
|
63
67
|
}>>;
|
|
68
|
+
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
69
|
+
kind: z.ZodString;
|
|
70
|
+
groupName: z.ZodString;
|
|
71
|
+
valueName: z.ZodString;
|
|
72
|
+
additionalPrice: z.ZodNumber;
|
|
73
|
+
}, z.core.$strip>>>>;
|
|
74
|
+
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
75
|
+
label: z.ZodString;
|
|
76
|
+
value: z.ZodString;
|
|
77
|
+
}, z.core.$strip>>>>;
|
|
78
|
+
cartItemId: z.ZodString;
|
|
79
|
+
productId: z.ZodString;
|
|
80
|
+
productName: z.ZodString;
|
|
81
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
82
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
83
|
+
optionName: z.ZodNullable<z.ZodString>;
|
|
64
84
|
}, z.core.$strip>>;
|
|
65
85
|
summary: z.ZodObject<{
|
|
66
86
|
productAmount: z.ZodNumber;
|
|
@@ -71,6 +91,14 @@ declare const cartSchema: z.ZodObject<{
|
|
|
71
91
|
}, z.core.$strip>;
|
|
72
92
|
type Cart = z.infer<typeof cartSchema>;
|
|
73
93
|
declare const addCartItemRequestSchema: z.ZodObject<{
|
|
94
|
+
addons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
95
|
+
groupId: z.ZodString;
|
|
96
|
+
valueId: z.ZodString;
|
|
97
|
+
}, z.core.$strip>>>;
|
|
98
|
+
customInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
99
|
+
inputId: z.ZodString;
|
|
100
|
+
value: z.ZodString;
|
|
101
|
+
}, z.core.$strip>>>;
|
|
74
102
|
productId: z.ZodString;
|
|
75
103
|
optionId: z.ZodOptional<z.ZodString>;
|
|
76
104
|
quantity: z.ZodNumber;
|
|
@@ -79,6 +107,14 @@ type AddCartItemRequest = z.infer<typeof addCartItemRequestSchema>;
|
|
|
79
107
|
declare const updateCartItemRequestSchema: z.ZodObject<{
|
|
80
108
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
81
109
|
optionId: z.ZodOptional<z.ZodString>;
|
|
110
|
+
addons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
111
|
+
groupId: z.ZodString;
|
|
112
|
+
valueId: z.ZodString;
|
|
113
|
+
}, z.core.$strip>>>;
|
|
114
|
+
customInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
115
|
+
inputId: z.ZodString;
|
|
116
|
+
value: z.ZodString;
|
|
117
|
+
}, z.core.$strip>>>;
|
|
82
118
|
}, z.core.$strip>;
|
|
83
119
|
type UpdateCartItemRequest = z.infer<typeof updateCartItemRequestSchema>;
|
|
84
120
|
//#endregion
|
|
@@ -90,15 +126,6 @@ interface UnknownFulfillmentView {
|
|
|
90
126
|
rawType: string;
|
|
91
127
|
requiresShipping: boolean;
|
|
92
128
|
}
|
|
93
|
-
/** 방문 수령 장소 표시값 — 주소 id는 싣지 않는다 */
|
|
94
|
-
declare const pickupLocationSchema: z.ZodObject<{
|
|
95
|
-
name: z.ZodString;
|
|
96
|
-
zipCode: z.ZodString;
|
|
97
|
-
address1: z.ZodString;
|
|
98
|
-
address2: z.ZodNullable<z.ZodString>;
|
|
99
|
-
phone: z.ZodString;
|
|
100
|
-
}, z.core.$strip>;
|
|
101
|
-
type PickupLocation = z.infer<typeof pickupLocationSchema>;
|
|
102
129
|
/** 상품 카드(목록·찜)의 이행 — 유형과 배송 필요 여부만. 배송비·환불 정책은 상세에서 본다 */
|
|
103
130
|
declare const productCardFulfillmentSchema: z.ZodObject<{
|
|
104
131
|
type: z.ZodString;
|
|
@@ -118,34 +145,8 @@ declare const productFulfillmentViewSchema: z.ZodUnion<readonly [z.ZodDiscrimina
|
|
|
118
145
|
exchangeDeliveryFee: z.ZodNumber;
|
|
119
146
|
}, z.core.$strip>;
|
|
120
147
|
}, z.core.$strip>, z.ZodObject<{
|
|
121
|
-
type: z.ZodLiteral<"
|
|
122
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
123
|
-
download: z.ZodObject<{
|
|
124
|
-
limit: z.ZodNumber;
|
|
125
|
-
days: z.ZodNumber;
|
|
126
|
-
withdrawalRestricted: z.ZodBoolean;
|
|
127
|
-
}, z.core.$strip>;
|
|
128
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
129
|
-
type: z.ZodLiteral<"CODE">;
|
|
130
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
131
|
-
code: z.ZodObject<{
|
|
132
|
-
withdrawalRestricted: z.ZodBoolean;
|
|
133
|
-
}, z.core.$strip>;
|
|
134
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
135
|
-
type: z.ZodLiteral<"SERVICE">;
|
|
136
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
137
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
138
|
-
type: z.ZodLiteral<"PICKUP">;
|
|
148
|
+
type: z.ZodLiteral<"MANUAL">;
|
|
139
149
|
requiresShipping: z.ZodLiteral<false>;
|
|
140
|
-
pickup: z.ZodObject<{
|
|
141
|
-
location: z.ZodNullable<z.ZodObject<{
|
|
142
|
-
name: z.ZodString;
|
|
143
|
-
zipCode: z.ZodString;
|
|
144
|
-
address1: z.ZodString;
|
|
145
|
-
address2: z.ZodNullable<z.ZodString>;
|
|
146
|
-
phone: z.ZodString;
|
|
147
|
-
}, z.core.$strip>>;
|
|
148
|
-
}, z.core.$strip>;
|
|
149
150
|
}, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
|
|
150
151
|
type: z.ZodString;
|
|
151
152
|
requiresShipping: z.ZodBoolean;
|
|
@@ -159,43 +160,19 @@ type ProductFulfillmentView = z.infer<typeof productFulfillmentViewSchema>;
|
|
|
159
160
|
declare const lineFulfillmentSchema: z.ZodObject<{
|
|
160
161
|
type: z.ZodString;
|
|
161
162
|
requiresShipping: z.ZodBoolean;
|
|
162
|
-
withdrawalRestricted: z.ZodBoolean
|
|
163
|
+
withdrawalRestricted: z.ZodOptional<z.ZodBoolean>;
|
|
163
164
|
}, z.core.$strip>;
|
|
164
165
|
type LineFulfillment = z.infer<typeof lineFulfillmentSchema>;
|
|
165
166
|
/**
|
|
166
|
-
* 내 주문 주문상품의 주문 시점 이행 스냅샷. 상품을 나중에 고쳐도 바뀌지 않는다.
|
|
167
|
+
* 내 주문 주문상품의 주문 시점 이행 스냅샷. 상품을 나중에 고쳐도 바뀌지 않는다. 제공 기록(제공 시각·판매자 안내)은
|
|
167
168
|
* 주문상품의 `fulfillment`다.
|
|
168
169
|
*/
|
|
169
170
|
declare const myOrderItemFulfillmentSnapshotSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
170
171
|
type: z.ZodLiteral<"SHIPPING">;
|
|
171
172
|
requiresShipping: z.ZodLiteral<true>;
|
|
172
173
|
}, z.core.$strip>, z.ZodObject<{
|
|
173
|
-
type: z.ZodLiteral<"
|
|
174
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
175
|
-
download: z.ZodObject<{
|
|
176
|
-
withdrawalRestricted: z.ZodBoolean;
|
|
177
|
-
}, z.core.$strip>;
|
|
178
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
179
|
-
type: z.ZodLiteral<"CODE">;
|
|
180
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
181
|
-
code: z.ZodObject<{
|
|
182
|
-
withdrawalRestricted: z.ZodBoolean;
|
|
183
|
-
}, z.core.$strip>;
|
|
184
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
185
|
-
type: z.ZodLiteral<"SERVICE">;
|
|
186
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
187
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
188
|
-
type: z.ZodLiteral<"PICKUP">;
|
|
174
|
+
type: z.ZodLiteral<"MANUAL">;
|
|
189
175
|
requiresShipping: z.ZodLiteral<false>;
|
|
190
|
-
pickup: z.ZodObject<{
|
|
191
|
-
location: z.ZodNullable<z.ZodObject<{
|
|
192
|
-
name: z.ZodString;
|
|
193
|
-
zipCode: z.ZodString;
|
|
194
|
-
address1: z.ZodString;
|
|
195
|
-
address2: z.ZodNullable<z.ZodString>;
|
|
196
|
-
phone: z.ZodString;
|
|
197
|
-
}, z.core.$strip>>;
|
|
198
|
-
}, z.core.$strip>;
|
|
199
176
|
}, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
|
|
200
177
|
type: z.ZodString;
|
|
201
178
|
requiresShipping: z.ZodBoolean;
|
|
@@ -205,8 +182,6 @@ declare const myOrderItemFulfillmentSnapshotSchema: z.ZodUnion<readonly [z.ZodDi
|
|
|
205
182
|
requiresShipping: boolean;
|
|
206
183
|
}>>]>;
|
|
207
184
|
type MyOrderItemFulfillmentSnapshot = z.infer<typeof myOrderItemFulfillmentSnapshotSchema>;
|
|
208
|
-
/** 청약철회 제한 대상인가 — 파일 다운로드·코드 발급만 켤 수 있다 */
|
|
209
|
-
declare function withdrawalRestrictedOfView(fulfillment: ProductFulfillmentView | MyOrderItemFulfillmentSnapshot): boolean;
|
|
210
185
|
//#endregion
|
|
211
186
|
//#region src/schemas/common.d.ts
|
|
212
187
|
declare const pageInfoSchema: z.ZodObject<{
|
|
@@ -304,6 +279,23 @@ declare const productDetailSchema: z.ZodObject<{
|
|
|
304
279
|
additionalPrice: z.ZodNumber;
|
|
305
280
|
soldOut: z.ZodBoolean;
|
|
306
281
|
}, z.core.$strip>>;
|
|
282
|
+
addonGroups: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
283
|
+
groupId: z.ZodString;
|
|
284
|
+
name: z.ZodString;
|
|
285
|
+
required: z.ZodBoolean;
|
|
286
|
+
values: z.ZodArray<z.ZodObject<{
|
|
287
|
+
valueId: z.ZodString;
|
|
288
|
+
name: z.ZodString;
|
|
289
|
+
additionalPrice: z.ZodNumber;
|
|
290
|
+
}, z.core.$strip>>;
|
|
291
|
+
}, z.core.$strip>>>>;
|
|
292
|
+
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
293
|
+
inputId: z.ZodString;
|
|
294
|
+
label: z.ZodString;
|
|
295
|
+
placeholder: z.ZodNullable<z.ZodString>;
|
|
296
|
+
maxLength: z.ZodNumber;
|
|
297
|
+
required: z.ZodBoolean;
|
|
298
|
+
}, z.core.$strip>>>>;
|
|
307
299
|
fulfillment: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
308
300
|
type: z.ZodLiteral<"SHIPPING">;
|
|
309
301
|
requiresShipping: z.ZodLiteral<true>;
|
|
@@ -316,34 +308,8 @@ declare const productDetailSchema: z.ZodObject<{
|
|
|
316
308
|
exchangeDeliveryFee: z.ZodNumber;
|
|
317
309
|
}, z.core.$strip>;
|
|
318
310
|
}, z.core.$strip>, z.ZodObject<{
|
|
319
|
-
type: z.ZodLiteral<"
|
|
320
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
321
|
-
download: z.ZodObject<{
|
|
322
|
-
limit: z.ZodNumber;
|
|
323
|
-
days: z.ZodNumber;
|
|
324
|
-
withdrawalRestricted: z.ZodBoolean;
|
|
325
|
-
}, z.core.$strip>;
|
|
326
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
327
|
-
type: z.ZodLiteral<"CODE">;
|
|
311
|
+
type: z.ZodLiteral<"MANUAL">;
|
|
328
312
|
requiresShipping: z.ZodLiteral<false>;
|
|
329
|
-
code: z.ZodObject<{
|
|
330
|
-
withdrawalRestricted: z.ZodBoolean;
|
|
331
|
-
}, z.core.$strip>;
|
|
332
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
333
|
-
type: z.ZodLiteral<"SERVICE">;
|
|
334
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
335
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
336
|
-
type: z.ZodLiteral<"PICKUP">;
|
|
337
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
338
|
-
pickup: z.ZodObject<{
|
|
339
|
-
location: z.ZodNullable<z.ZodObject<{
|
|
340
|
-
name: z.ZodString;
|
|
341
|
-
zipCode: z.ZodString;
|
|
342
|
-
address1: z.ZodString;
|
|
343
|
-
address2: z.ZodNullable<z.ZodString>;
|
|
344
|
-
phone: z.ZodString;
|
|
345
|
-
}, z.core.$strip>>;
|
|
346
|
-
}, z.core.$strip>;
|
|
347
313
|
}, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
|
|
348
314
|
type: z.ZodString;
|
|
349
315
|
requiresShipping: z.ZodBoolean;
|
|
@@ -428,6 +394,14 @@ type ProductPage = z.infer<typeof productPageSchema>;
|
|
|
428
394
|
declare const createCheckoutRequestSchema: z.ZodObject<{
|
|
429
395
|
cartItemIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
430
396
|
directItem: z.ZodOptional<z.ZodObject<{
|
|
397
|
+
addons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
398
|
+
groupId: z.ZodString;
|
|
399
|
+
valueId: z.ZodString;
|
|
400
|
+
}, z.core.$strip>>>;
|
|
401
|
+
customInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
402
|
+
inputId: z.ZodString;
|
|
403
|
+
value: z.ZodString;
|
|
404
|
+
}, z.core.$strip>>>;
|
|
431
405
|
productId: z.ZodString;
|
|
432
406
|
optionId: z.ZodOptional<z.ZodString>;
|
|
433
407
|
quantity: z.ZodNumber;
|
|
@@ -468,18 +442,29 @@ type CheckoutDelivery = z.infer<typeof checkoutDeliverySchema>;
|
|
|
468
442
|
declare const checkoutSessionSchema: z.ZodObject<{
|
|
469
443
|
checkoutId: z.ZodString;
|
|
470
444
|
items: z.ZodArray<z.ZodObject<{
|
|
471
|
-
productId: z.ZodString;
|
|
472
|
-
productName: z.ZodString;
|
|
473
|
-
optionId: z.ZodNullable<z.ZodString>;
|
|
474
|
-
optionName: z.ZodNullable<z.ZodString>;
|
|
475
445
|
quantity: z.ZodNumber;
|
|
476
446
|
unitPrice: z.ZodNumber;
|
|
477
447
|
totalPrice: z.ZodNumber;
|
|
478
448
|
fulfillment: z.ZodObject<{
|
|
479
449
|
type: z.ZodString;
|
|
480
450
|
requiresShipping: z.ZodBoolean;
|
|
481
|
-
withdrawalRestricted: z.ZodBoolean
|
|
451
|
+
withdrawalRestricted: z.ZodOptional<z.ZodBoolean>;
|
|
482
452
|
}, z.core.$strip>;
|
|
453
|
+
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
454
|
+
kind: z.ZodString;
|
|
455
|
+
groupName: z.ZodString;
|
|
456
|
+
valueName: z.ZodString;
|
|
457
|
+
additionalPrice: z.ZodNumber;
|
|
458
|
+
}, z.core.$strip>>>>;
|
|
459
|
+
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
460
|
+
label: z.ZodString;
|
|
461
|
+
value: z.ZodString;
|
|
462
|
+
}, z.core.$strip>>>>;
|
|
463
|
+
lineId: z.ZodOptional<z.ZodString>;
|
|
464
|
+
productId: z.ZodString;
|
|
465
|
+
productName: z.ZodString;
|
|
466
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
467
|
+
optionName: z.ZodNullable<z.ZodString>;
|
|
483
468
|
}, z.core.$strip>>;
|
|
484
469
|
amounts: z.ZodObject<{
|
|
485
470
|
productAmount: z.ZodNumber;
|
|
@@ -502,10 +487,10 @@ declare const checkoutSessionSchema: z.ZodObject<{
|
|
|
502
487
|
zipCode: z.ZodNullable<z.ZodString>;
|
|
503
488
|
}, z.core.$strip>;
|
|
504
489
|
requiresShipping: z.ZodBoolean;
|
|
505
|
-
withdrawal: z.ZodObject<{
|
|
490
|
+
withdrawal: z.ZodOptional<z.ZodObject<{
|
|
506
491
|
required: z.ZodBoolean;
|
|
507
492
|
notice: z.ZodNullable<z.ZodString>;
|
|
508
|
-
}, z.core.$strip
|
|
493
|
+
}, z.core.$strip>>;
|
|
509
494
|
expiresAt: z.ZodString;
|
|
510
495
|
paymentOptions: z.ZodLazy<z.ZodPreprocess<z.ZodArray<z.ZodIntersection<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
511
496
|
pg: z.ZodEnum<{
|
|
@@ -876,7 +861,6 @@ declare const startPaymentRequestSchema: z.ZodObject<{
|
|
|
876
861
|
email: z.ZodEmail;
|
|
877
862
|
orderPassword: z.ZodString;
|
|
878
863
|
}, z.core.$strip>>;
|
|
879
|
-
withdrawalAgreement: z.ZodOptional<z.ZodBoolean>;
|
|
880
864
|
cashReceipt: z.ZodOptional<z.ZodObject<{
|
|
881
865
|
type: z.ZodEnum<{
|
|
882
866
|
INCOME_DEDUCTION: "INCOME_DEDUCTION";
|
|
@@ -888,6 +872,7 @@ declare const startPaymentRequestSchema: z.ZodObject<{
|
|
|
888
872
|
issueId: z.ZodOptional<z.ZodString>;
|
|
889
873
|
code: z.ZodOptional<z.ZodString>;
|
|
890
874
|
optionId: z.ZodOptional<z.ZodString>;
|
|
875
|
+
lineId: z.ZodOptional<z.ZodString>;
|
|
891
876
|
}, z.core.$strip>>>;
|
|
892
877
|
}, z.core.$strip>;
|
|
893
878
|
type StartPaymentRequest = z.infer<typeof startPaymentRequestSchema>;
|
|
@@ -1269,6 +1254,7 @@ declare const couponApplicationSchema: z.ZodObject<{
|
|
|
1269
1254
|
issueId: z.ZodOptional<z.ZodString>;
|
|
1270
1255
|
code: z.ZodOptional<z.ZodString>;
|
|
1271
1256
|
optionId: z.ZodOptional<z.ZodString>;
|
|
1257
|
+
lineId: z.ZodOptional<z.ZodString>;
|
|
1272
1258
|
}, z.core.$strip>;
|
|
1273
1259
|
type CouponApplication = z.infer<typeof couponApplicationSchema>;
|
|
1274
1260
|
/** 한 번에 적용할 수 있는 쿠폰 수 */
|
|
@@ -1277,6 +1263,7 @@ declare const couponApplicationListSchema: z.ZodArray<z.ZodObject<{
|
|
|
1277
1263
|
issueId: z.ZodOptional<z.ZodString>;
|
|
1278
1264
|
code: z.ZodOptional<z.ZodString>;
|
|
1279
1265
|
optionId: z.ZodOptional<z.ZodString>;
|
|
1266
|
+
lineId: z.ZodOptional<z.ZodString>;
|
|
1280
1267
|
}, z.core.$strip>>;
|
|
1281
1268
|
/** 쿠폰 혜택 — 응답 표시용. 값이 늘 수 있어 방식은 문자열이다 */
|
|
1282
1269
|
declare const couponBenefitViewSchema: z.ZodObject<{
|
|
@@ -1300,6 +1287,7 @@ declare const couponResultSchema: z.ZodObject<{
|
|
|
1300
1287
|
discountAmount: z.ZodNumber;
|
|
1301
1288
|
rejectReason: z.ZodNullable<z.ZodString>;
|
|
1302
1289
|
optionId: z.ZodNullable<z.ZodString>;
|
|
1290
|
+
lineId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1303
1291
|
}, z.core.$strip>;
|
|
1304
1292
|
type CouponResult = z.infer<typeof couponResultSchema>;
|
|
1305
1293
|
/** 쿠폰을 반영한 금액 — 결제 금액 = productAmount − couponDiscountAmount + deliveryFee − deliveryDiscountAmount */
|
|
@@ -1317,6 +1305,7 @@ declare const checkoutPricingRequestSchema: z.ZodObject<{
|
|
|
1317
1305
|
issueId: z.ZodOptional<z.ZodString>;
|
|
1318
1306
|
code: z.ZodOptional<z.ZodString>;
|
|
1319
1307
|
optionId: z.ZodOptional<z.ZodString>;
|
|
1308
|
+
lineId: z.ZodOptional<z.ZodString>;
|
|
1320
1309
|
}, z.core.$strip>>;
|
|
1321
1310
|
}, z.core.$strip>;
|
|
1322
1311
|
type CheckoutPricingRequest = z.infer<typeof checkoutPricingRequestSchema>;
|
|
@@ -1345,9 +1334,11 @@ declare const checkoutPricingSchema: z.ZodObject<{
|
|
|
1345
1334
|
discountAmount: z.ZodNumber;
|
|
1346
1335
|
rejectReason: z.ZodNullable<z.ZodString>;
|
|
1347
1336
|
optionId: z.ZodNullable<z.ZodString>;
|
|
1337
|
+
lineId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1348
1338
|
}, z.core.$strip>>;
|
|
1349
1339
|
items: z.ZodArray<z.ZodObject<{
|
|
1350
1340
|
optionId: z.ZodNullable<z.ZodString>;
|
|
1341
|
+
lineId: z.ZodOptional<z.ZodString>;
|
|
1351
1342
|
couponDiscountAmount: z.ZodNumber;
|
|
1352
1343
|
}, z.core.$strip>>;
|
|
1353
1344
|
payable: z.ZodBoolean;
|
|
@@ -1516,348 +1507,64 @@ declare const wishlistAddResultSchema: z.ZodObject<{
|
|
|
1516
1507
|
}, z.core.$strip>;
|
|
1517
1508
|
type WishlistAddResult = z.infer<typeof wishlistAddResultSchema>;
|
|
1518
1509
|
//#endregion
|
|
1519
|
-
//#region src/schemas/
|
|
1520
|
-
declare const
|
|
1510
|
+
//#region src/schemas/review.d.ts
|
|
1511
|
+
declare const publicReviewSchema: z.ZodObject<{
|
|
1512
|
+
reviewId: z.ZodString;
|
|
1513
|
+
rating: z.ZodNumber;
|
|
1514
|
+
content: z.ZodString;
|
|
1515
|
+
images: z.ZodArray<z.ZodURL>;
|
|
1516
|
+
optionName: z.ZodNullable<z.ZodString>;
|
|
1517
|
+
writerMaskedName: z.ZodString;
|
|
1518
|
+
sellerReply: z.ZodNullable<z.ZodObject<{
|
|
1519
|
+
content: z.ZodString;
|
|
1520
|
+
repliedAt: z.ZodString;
|
|
1521
|
+
}, z.core.$strip>>;
|
|
1522
|
+
createdAt: z.ZodString;
|
|
1523
|
+
}, z.core.$strip>;
|
|
1524
|
+
type PublicReview = z.infer<typeof publicReviewSchema>;
|
|
1525
|
+
declare const reviewSummarySchema: z.ZodObject<{
|
|
1526
|
+
averageRating: z.ZodNumber;
|
|
1527
|
+
totalCount: z.ZodNumber;
|
|
1528
|
+
distribution: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1529
|
+
}, z.core.$strip>;
|
|
1530
|
+
type ReviewSummary = z.infer<typeof reviewSummarySchema>;
|
|
1531
|
+
declare const writableReviewSchema: z.ZodObject<{
|
|
1521
1532
|
orderItemId: z.ZodString;
|
|
1522
1533
|
productId: z.ZodString;
|
|
1523
1534
|
productName: z.ZodString;
|
|
1524
|
-
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
1525
1535
|
optionName: z.ZodNullable<z.ZodString>;
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
activeQuantity: z.ZodNumber;
|
|
1529
|
-
totalPrice: z.ZodNumber;
|
|
1530
|
-
couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1531
|
-
status: z.ZodEnum<{
|
|
1532
|
-
CANCELED: "CANCELED";
|
|
1533
|
-
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
1534
|
-
PAID: "PAID";
|
|
1535
|
-
CONFIRMED: "CONFIRMED";
|
|
1536
|
-
DISPATCHED: "DISPATCHED";
|
|
1537
|
-
DELIVERING: "DELIVERING";
|
|
1538
|
-
DELIVERED: "DELIVERED";
|
|
1539
|
-
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
1540
|
-
}>;
|
|
1541
|
-
fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1542
|
-
type: z.ZodLiteral<"SHIPPING">;
|
|
1543
|
-
requiresShipping: z.ZodLiteral<true>;
|
|
1544
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1545
|
-
type: z.ZodLiteral<"DOWNLOAD">;
|
|
1546
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
1547
|
-
download: z.ZodObject<{
|
|
1548
|
-
withdrawalRestricted: z.ZodBoolean;
|
|
1549
|
-
}, z.core.$strip>;
|
|
1550
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1551
|
-
type: z.ZodLiteral<"CODE">;
|
|
1552
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
1553
|
-
code: z.ZodObject<{
|
|
1554
|
-
withdrawalRestricted: z.ZodBoolean;
|
|
1555
|
-
}, z.core.$strip>;
|
|
1556
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1557
|
-
type: z.ZodLiteral<"SERVICE">;
|
|
1558
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
1559
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1560
|
-
type: z.ZodLiteral<"PICKUP">;
|
|
1561
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
1562
|
-
pickup: z.ZodObject<{
|
|
1563
|
-
location: z.ZodNullable<z.ZodObject<{
|
|
1564
|
-
name: z.ZodString;
|
|
1565
|
-
zipCode: z.ZodString;
|
|
1566
|
-
address1: z.ZodString;
|
|
1567
|
-
address2: z.ZodNullable<z.ZodString>;
|
|
1568
|
-
phone: z.ZodString;
|
|
1569
|
-
}, z.core.$strip>>;
|
|
1570
|
-
}, z.core.$strip>;
|
|
1571
|
-
}, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
|
|
1572
|
-
type: z.ZodString;
|
|
1573
|
-
requiresShipping: z.ZodBoolean;
|
|
1574
|
-
}, z.core.$loose>, z.ZodTransform<UnknownFulfillmentView, {
|
|
1575
|
-
[x: string]: unknown;
|
|
1576
|
-
type: string;
|
|
1577
|
-
requiresShipping: boolean;
|
|
1578
|
-
}>>]>;
|
|
1579
|
-
fulfillment: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1580
|
-
status: z.ZodString;
|
|
1581
|
-
fulfilledAt: z.ZodString;
|
|
1582
|
-
note: z.ZodNullable<z.ZodString>;
|
|
1583
|
-
codes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1584
|
-
codeId: z.ZodString;
|
|
1585
|
-
hint: z.ZodString;
|
|
1586
|
-
revealedAt: z.ZodNullable<z.ZodString>;
|
|
1587
|
-
}, z.core.$strip>>>>;
|
|
1588
|
-
download: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1589
|
-
count: z.ZodNumber;
|
|
1590
|
-
limit: z.ZodNumber;
|
|
1591
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
1592
|
-
files: z.ZodArray<z.ZodObject<{
|
|
1593
|
-
assetId: z.ZodString;
|
|
1594
|
-
fileName: z.ZodString;
|
|
1595
|
-
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
1596
|
-
}, z.core.$strip>>;
|
|
1597
|
-
}, z.core.$strip>>>>;
|
|
1598
|
-
}, z.core.$strip>>>>;
|
|
1599
|
-
claimStatus: z.ZodNullable<z.ZodString>;
|
|
1600
|
-
reviewWritten: z.ZodBoolean;
|
|
1601
|
-
autoDecisionDate: z.ZodNullable<z.ZodString>;
|
|
1536
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
1537
|
+
writableUntil: z.ZodString;
|
|
1602
1538
|
}, z.core.$strip>;
|
|
1603
|
-
type
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
declare const orderShippingAddressSchema: z.ZodObject<{
|
|
1609
|
-
receiverName: z.ZodString;
|
|
1610
|
-
phone: z.ZodString;
|
|
1611
|
-
zipCode: z.ZodString;
|
|
1612
|
-
address1: z.ZodString;
|
|
1613
|
-
address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1614
|
-
deliveryMemo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1615
|
-
entranceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1539
|
+
type WritableReview = z.infer<typeof writableReviewSchema>;
|
|
1540
|
+
declare const createReviewRequestSchema: z.ZodObject<{
|
|
1541
|
+
rating: z.ZodNumber;
|
|
1542
|
+
content: z.ZodString;
|
|
1543
|
+
images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
1616
1544
|
}, z.core.$strip>;
|
|
1617
|
-
type
|
|
1618
|
-
declare const
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
1641
|
-
}>;
|
|
1642
|
-
fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1643
|
-
type: z.ZodLiteral<"SHIPPING">;
|
|
1644
|
-
requiresShipping: z.ZodLiteral<true>;
|
|
1645
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1646
|
-
type: z.ZodLiteral<"DOWNLOAD">;
|
|
1647
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
1648
|
-
download: z.ZodObject<{
|
|
1649
|
-
withdrawalRestricted: z.ZodBoolean;
|
|
1650
|
-
}, z.core.$strip>;
|
|
1651
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1652
|
-
type: z.ZodLiteral<"CODE">;
|
|
1653
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
1654
|
-
code: z.ZodObject<{
|
|
1655
|
-
withdrawalRestricted: z.ZodBoolean;
|
|
1656
|
-
}, z.core.$strip>;
|
|
1657
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1658
|
-
type: z.ZodLiteral<"SERVICE">;
|
|
1659
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
1660
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
1661
|
-
type: z.ZodLiteral<"PICKUP">;
|
|
1662
|
-
requiresShipping: z.ZodLiteral<false>;
|
|
1663
|
-
pickup: z.ZodObject<{
|
|
1664
|
-
location: z.ZodNullable<z.ZodObject<{
|
|
1665
|
-
name: z.ZodString;
|
|
1666
|
-
zipCode: z.ZodString;
|
|
1667
|
-
address1: z.ZodString;
|
|
1668
|
-
address2: z.ZodNullable<z.ZodString>;
|
|
1669
|
-
phone: z.ZodString;
|
|
1670
|
-
}, z.core.$strip>>;
|
|
1671
|
-
}, z.core.$strip>;
|
|
1672
|
-
}, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
|
|
1673
|
-
type: z.ZodString;
|
|
1674
|
-
requiresShipping: z.ZodBoolean;
|
|
1675
|
-
}, z.core.$loose>, z.ZodTransform<UnknownFulfillmentView, {
|
|
1676
|
-
[x: string]: unknown;
|
|
1677
|
-
type: string;
|
|
1678
|
-
requiresShipping: boolean;
|
|
1679
|
-
}>>]>;
|
|
1680
|
-
fulfillment: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1681
|
-
status: z.ZodString;
|
|
1682
|
-
fulfilledAt: z.ZodString;
|
|
1683
|
-
note: z.ZodNullable<z.ZodString>;
|
|
1684
|
-
codes: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1685
|
-
codeId: z.ZodString;
|
|
1686
|
-
hint: z.ZodString;
|
|
1687
|
-
revealedAt: z.ZodNullable<z.ZodString>;
|
|
1688
|
-
}, z.core.$strip>>>>;
|
|
1689
|
-
download: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1690
|
-
count: z.ZodNumber;
|
|
1691
|
-
limit: z.ZodNumber;
|
|
1692
|
-
expiresAt: z.ZodNullable<z.ZodString>;
|
|
1693
|
-
files: z.ZodArray<z.ZodObject<{
|
|
1694
|
-
assetId: z.ZodString;
|
|
1695
|
-
fileName: z.ZodString;
|
|
1696
|
-
sizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
1697
|
-
}, z.core.$strip>>;
|
|
1698
|
-
}, z.core.$strip>>>>;
|
|
1699
|
-
}, z.core.$strip>>>>;
|
|
1700
|
-
claimStatus: z.ZodNullable<z.ZodString>;
|
|
1701
|
-
reviewWritten: z.ZodBoolean;
|
|
1702
|
-
autoDecisionDate: z.ZodNullable<z.ZodString>;
|
|
1703
|
-
}, z.core.$strip>>;
|
|
1704
|
-
requiresShipping: z.ZodBoolean;
|
|
1705
|
-
shippingAddress: z.ZodObject<{
|
|
1706
|
-
receiverName: z.ZodString;
|
|
1707
|
-
phone: z.ZodString;
|
|
1708
|
-
zipCode: z.ZodString;
|
|
1709
|
-
address1: z.ZodString;
|
|
1710
|
-
address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1711
|
-
deliveryMemo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1712
|
-
entranceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1713
|
-
}, z.core.$strip>;
|
|
1714
|
-
payment: z.ZodObject<{
|
|
1715
|
-
method: z.ZodEnum<{
|
|
1716
|
-
CARD: "CARD";
|
|
1717
|
-
EASY_PAY: "EASY_PAY";
|
|
1718
|
-
BANK_TRANSFER: "BANK_TRANSFER";
|
|
1719
|
-
VIRTUAL_ACCOUNT: "VIRTUAL_ACCOUNT";
|
|
1720
|
-
MOBILE: "MOBILE";
|
|
1721
|
-
}>;
|
|
1722
|
-
easyPayProvider: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1723
|
-
couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1724
|
-
deliveryDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1725
|
-
discounts: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1726
|
-
couponId: z.ZodString;
|
|
1727
|
-
name: z.ZodString;
|
|
1728
|
-
kind: z.ZodString;
|
|
1729
|
-
discountAmount: z.ZodNumber;
|
|
1730
|
-
}, z.core.$strip>>>>;
|
|
1731
|
-
totalAmount: z.ZodNumber;
|
|
1732
|
-
paidAt: z.ZodNullable<z.ZodString>;
|
|
1733
|
-
receiptUrl: z.ZodNullable<z.ZodURL>;
|
|
1734
|
-
}, z.core.$strip>;
|
|
1735
|
-
withdrawalAgreedAt: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1736
|
-
testPayment: z.ZodBoolean;
|
|
1737
|
-
}, z.core.$strip>;
|
|
1738
|
-
type MyOrder = z.infer<typeof myOrderSchema>;
|
|
1739
|
-
/**
|
|
1740
|
-
* 택배 추적 단계. 응답에서는 문자열로 받는다(값이 추가될 수 있다) — 현재 값은 `ACCEPTED`(접수)·`IN_TRANSIT`(이동 중)·
|
|
1741
|
-
* `OUT_FOR_DELIVERY`(배송 출발)·`DELIVERED`(배송완료)다.
|
|
1742
|
-
*/
|
|
1743
|
-
declare const trackingStageResponseSchema: z.ZodString;
|
|
1744
|
-
declare const deliveryTrackingSchema: z.ZodObject<{
|
|
1745
|
-
carrierName: z.ZodString;
|
|
1746
|
-
trackingNumber: z.ZodString;
|
|
1747
|
-
trackingUrl: z.ZodURL;
|
|
1748
|
-
status: z.ZodEnum<{
|
|
1749
|
-
DISPATCHED: "DISPATCHED";
|
|
1750
|
-
DELIVERING: "DELIVERING";
|
|
1751
|
-
DELIVERED: "DELIVERED";
|
|
1752
|
-
}>;
|
|
1753
|
-
trackingEvents: z.ZodArray<z.ZodObject<{
|
|
1754
|
-
status: z.ZodString;
|
|
1755
|
-
location: z.ZodString;
|
|
1756
|
-
occurredAt: z.ZodString;
|
|
1757
|
-
stage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1758
|
-
}, z.core.$strip>>;
|
|
1759
|
-
trackingStage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1760
|
-
trackingCheckedAt: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1761
|
-
}, z.core.$strip>;
|
|
1762
|
-
type DeliveryTracking = z.infer<typeof deliveryTrackingSchema>;
|
|
1763
|
-
/** `POST /me/order-items/{orderItemId}/purchase-decision` 응답 */
|
|
1764
|
-
declare const purchaseDecisionResultSchema: z.ZodObject<{
|
|
1765
|
-
orderItemId: z.ZodString;
|
|
1766
|
-
status: z.ZodLiteral<"PURCHASE_DECIDED">;
|
|
1767
|
-
decidedAt: z.ZodString;
|
|
1768
|
-
}, z.core.$strip>;
|
|
1769
|
-
type PurchaseDecisionResult = z.infer<typeof purchaseDecisionResultSchema>;
|
|
1770
|
-
/**
|
|
1771
|
-
* 코드 열람 응답 (이슈 #48) — `POST /storefront/v1/me/order-items/{orderItemId}/fulfillment/reveal`(회원)·
|
|
1772
|
-
* `POST /storefront/v1/guest/orders/{orderId}/order-items/{orderItemId}/fulfillment/reveal`(비회원).
|
|
1773
|
-
* 평문 코드는 이 응답에만 있다. 화면에 보인 뒤 저장하지 않는다(응답은 `Cache-Control: no-store`).
|
|
1774
|
-
* 첫 열람 시각은 청약철회 판단의 근거(제공 개시)로 남는다.
|
|
1775
|
-
*/
|
|
1776
|
-
declare const fulfillmentRevealSchema: z.ZodObject<{
|
|
1777
|
-
orderItemId: z.ZodString;
|
|
1778
|
-
codes: z.ZodArray<z.ZodObject<{
|
|
1779
|
-
codeId: z.ZodString;
|
|
1780
|
-
code: z.ZodString;
|
|
1781
|
-
revealedAt: z.ZodString;
|
|
1782
|
-
}, z.core.$strip>>;
|
|
1783
|
-
}, z.core.$strip>;
|
|
1784
|
-
type FulfillmentReveal = z.infer<typeof fulfillmentRevealSchema>;
|
|
1785
|
-
/**
|
|
1786
|
-
* 다운로드 요청 (이슈 #48) — `POST /storefront/v1/me/order-items/{orderItemId}/downloads`(회원)·
|
|
1787
|
-
* `POST /storefront/v1/guest/orders/{orderId}/order-items/{orderItemId}/downloads`(비회원, 연락처·비밀번호를 함께 보낸다).
|
|
1788
|
-
* 파일이 하나면 `assetId`를 생략할 수 있다.
|
|
1789
|
-
*/
|
|
1790
|
-
declare const downloadRequestSchema: z.ZodObject<{
|
|
1791
|
-
assetId: z.ZodOptional<z.ZodString>;
|
|
1792
|
-
}, z.core.$strip>;
|
|
1793
|
-
type DownloadRequest = z.infer<typeof downloadRequestSchema>;
|
|
1794
|
-
/** 다운로드 응답 — 수명 300초의 서명 주소. 받을 때마다 횟수가 하나 준다 */
|
|
1795
|
-
declare const downloadLinkSchema: z.ZodObject<{
|
|
1796
|
-
url: z.ZodURL;
|
|
1797
|
-
expiresAt: z.ZodString;
|
|
1798
|
-
fileName: z.ZodString;
|
|
1799
|
-
remaining: z.ZodNumber;
|
|
1800
|
-
}, z.core.$strip>;
|
|
1801
|
-
type DownloadLink = z.infer<typeof downloadLinkSchema>;
|
|
1802
|
-
//#endregion
|
|
1803
|
-
//#region src/schemas/review.d.ts
|
|
1804
|
-
declare const publicReviewSchema: z.ZodObject<{
|
|
1805
|
-
reviewId: z.ZodString;
|
|
1806
|
-
rating: z.ZodNumber;
|
|
1807
|
-
content: z.ZodString;
|
|
1808
|
-
images: z.ZodArray<z.ZodURL>;
|
|
1809
|
-
optionName: z.ZodNullable<z.ZodString>;
|
|
1810
|
-
writerMaskedName: z.ZodString;
|
|
1811
|
-
sellerReply: z.ZodNullable<z.ZodObject<{
|
|
1812
|
-
content: z.ZodString;
|
|
1813
|
-
repliedAt: z.ZodString;
|
|
1814
|
-
}, z.core.$strip>>;
|
|
1815
|
-
createdAt: z.ZodString;
|
|
1816
|
-
}, z.core.$strip>;
|
|
1817
|
-
type PublicReview = z.infer<typeof publicReviewSchema>;
|
|
1818
|
-
declare const reviewSummarySchema: z.ZodObject<{
|
|
1819
|
-
averageRating: z.ZodNumber;
|
|
1820
|
-
totalCount: z.ZodNumber;
|
|
1821
|
-
distribution: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
1822
|
-
}, z.core.$strip>;
|
|
1823
|
-
type ReviewSummary = z.infer<typeof reviewSummarySchema>;
|
|
1824
|
-
declare const writableReviewSchema: z.ZodObject<{
|
|
1825
|
-
orderItemId: z.ZodString;
|
|
1826
|
-
productId: z.ZodString;
|
|
1827
|
-
productName: z.ZodString;
|
|
1828
|
-
optionName: z.ZodNullable<z.ZodString>;
|
|
1829
|
-
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
1830
|
-
writableUntil: z.ZodString;
|
|
1831
|
-
}, z.core.$strip>;
|
|
1832
|
-
type WritableReview = z.infer<typeof writableReviewSchema>;
|
|
1833
|
-
declare const createReviewRequestSchema: z.ZodObject<{
|
|
1834
|
-
rating: z.ZodNumber;
|
|
1835
|
-
content: z.ZodString;
|
|
1836
|
-
images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
1837
|
-
}, z.core.$strip>;
|
|
1838
|
-
type CreateReviewRequest = z.infer<typeof createReviewRequestSchema>;
|
|
1839
|
-
declare const createReviewResultSchema: z.ZodObject<{
|
|
1840
|
-
reviewId: z.ZodString;
|
|
1841
|
-
rewardPoint: z.ZodNumber;
|
|
1842
|
-
}, z.core.$strip>;
|
|
1843
|
-
type CreateReviewResult = z.infer<typeof createReviewResultSchema>;
|
|
1844
|
-
declare const updateReviewRequestSchema: z.ZodObject<{
|
|
1845
|
-
rating: z.ZodOptional<z.ZodNumber>;
|
|
1846
|
-
content: z.ZodOptional<z.ZodString>;
|
|
1847
|
-
images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
1848
|
-
}, z.core.$strip>;
|
|
1849
|
-
type UpdateReviewRequest = z.infer<typeof updateReviewRequestSchema>;
|
|
1850
|
-
/** `GET /products/{productId}/reviews` 응답 — 리뷰 페이지와 평점 분포 */
|
|
1851
|
-
declare const reviewPageSchema: z.ZodObject<{
|
|
1852
|
-
page: z.ZodNumber;
|
|
1853
|
-
size: z.ZodNumber;
|
|
1854
|
-
totalElements: z.ZodNumber;
|
|
1855
|
-
totalPages: z.ZodNumber;
|
|
1856
|
-
contents: z.ZodArray<z.ZodObject<{
|
|
1857
|
-
reviewId: z.ZodString;
|
|
1858
|
-
rating: z.ZodNumber;
|
|
1859
|
-
content: z.ZodString;
|
|
1860
|
-
images: z.ZodArray<z.ZodURL>;
|
|
1545
|
+
type CreateReviewRequest = z.infer<typeof createReviewRequestSchema>;
|
|
1546
|
+
declare const createReviewResultSchema: z.ZodObject<{
|
|
1547
|
+
reviewId: z.ZodString;
|
|
1548
|
+
rewardPoint: z.ZodNumber;
|
|
1549
|
+
}, z.core.$strip>;
|
|
1550
|
+
type CreateReviewResult = z.infer<typeof createReviewResultSchema>;
|
|
1551
|
+
declare const updateReviewRequestSchema: z.ZodObject<{
|
|
1552
|
+
rating: z.ZodOptional<z.ZodNumber>;
|
|
1553
|
+
content: z.ZodOptional<z.ZodString>;
|
|
1554
|
+
images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
1555
|
+
}, z.core.$strip>;
|
|
1556
|
+
type UpdateReviewRequest = z.infer<typeof updateReviewRequestSchema>;
|
|
1557
|
+
/** `GET /products/{productId}/reviews` 응답 — 리뷰 페이지와 평점 분포 */
|
|
1558
|
+
declare const reviewPageSchema: z.ZodObject<{
|
|
1559
|
+
page: z.ZodNumber;
|
|
1560
|
+
size: z.ZodNumber;
|
|
1561
|
+
totalElements: z.ZodNumber;
|
|
1562
|
+
totalPages: z.ZodNumber;
|
|
1563
|
+
contents: z.ZodArray<z.ZodObject<{
|
|
1564
|
+
reviewId: z.ZodString;
|
|
1565
|
+
rating: z.ZodNumber;
|
|
1566
|
+
content: z.ZodString;
|
|
1567
|
+
images: z.ZodArray<z.ZodURL>;
|
|
1861
1568
|
optionName: z.ZodNullable<z.ZodString>;
|
|
1862
1569
|
writerMaskedName: z.ZodString;
|
|
1863
1570
|
sellerReply: z.ZodNullable<z.ZodObject<{
|
|
@@ -2131,6 +1838,23 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2131
1838
|
additionalPrice: number;
|
|
2132
1839
|
soldOut: boolean;
|
|
2133
1840
|
}[];
|
|
1841
|
+
addonGroups: {
|
|
1842
|
+
groupId: string;
|
|
1843
|
+
name: string;
|
|
1844
|
+
required: boolean;
|
|
1845
|
+
values: {
|
|
1846
|
+
valueId: string;
|
|
1847
|
+
name: string;
|
|
1848
|
+
additionalPrice: number;
|
|
1849
|
+
}[];
|
|
1850
|
+
}[];
|
|
1851
|
+
customInputs: {
|
|
1852
|
+
inputId: string;
|
|
1853
|
+
label: string;
|
|
1854
|
+
placeholder: string | null;
|
|
1855
|
+
maxLength: number;
|
|
1856
|
+
required: boolean;
|
|
1857
|
+
}[];
|
|
2134
1858
|
fulfillment: UnknownFulfillmentView | {
|
|
2135
1859
|
type: "SHIPPING";
|
|
2136
1860
|
requiresShipping: true;
|
|
@@ -2143,34 +1867,8 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2143
1867
|
exchangeDeliveryFee: number;
|
|
2144
1868
|
};
|
|
2145
1869
|
} | {
|
|
2146
|
-
type: "
|
|
2147
|
-
requiresShipping: false;
|
|
2148
|
-
download: {
|
|
2149
|
-
limit: number;
|
|
2150
|
-
days: number;
|
|
2151
|
-
withdrawalRestricted: boolean;
|
|
2152
|
-
};
|
|
2153
|
-
} | {
|
|
2154
|
-
type: "CODE";
|
|
2155
|
-
requiresShipping: false;
|
|
2156
|
-
code: {
|
|
2157
|
-
withdrawalRestricted: boolean;
|
|
2158
|
-
};
|
|
2159
|
-
} | {
|
|
2160
|
-
type: "SERVICE";
|
|
2161
|
-
requiresShipping: false;
|
|
2162
|
-
} | {
|
|
2163
|
-
type: "PICKUP";
|
|
1870
|
+
type: "MANUAL";
|
|
2164
1871
|
requiresShipping: false;
|
|
2165
|
-
pickup: {
|
|
2166
|
-
location: {
|
|
2167
|
-
name: string;
|
|
2168
|
-
zipCode: string;
|
|
2169
|
-
address1: string;
|
|
2170
|
-
address2: string | null;
|
|
2171
|
-
phone: string;
|
|
2172
|
-
} | null;
|
|
2173
|
-
};
|
|
2174
1872
|
};
|
|
2175
1873
|
returnPeriodDays: number;
|
|
2176
1874
|
categoryPath: {
|
|
@@ -2229,22 +1927,32 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2229
1927
|
cart: {
|
|
2230
1928
|
get: () => Promise<{
|
|
2231
1929
|
items: {
|
|
2232
|
-
cartItemId: string;
|
|
2233
|
-
productId: string;
|
|
2234
|
-
productName: string;
|
|
2235
|
-
thumbnailUrl: string | null;
|
|
2236
|
-
optionId: string | null;
|
|
2237
|
-
optionName: string | null;
|
|
2238
1930
|
quantity: number;
|
|
2239
1931
|
unitPrice: number;
|
|
2240
1932
|
totalPrice: number;
|
|
2241
1933
|
fulfillment: {
|
|
2242
1934
|
type: string;
|
|
2243
1935
|
requiresShipping: boolean;
|
|
2244
|
-
withdrawalRestricted
|
|
1936
|
+
withdrawalRestricted?: boolean | undefined;
|
|
2245
1937
|
};
|
|
2246
1938
|
purchasable: boolean;
|
|
2247
1939
|
unpurchasableReason: "SOLD_OUT" | "SUSPENDED" | "CLOSED" | null;
|
|
1940
|
+
optionSelections: {
|
|
1941
|
+
kind: string;
|
|
1942
|
+
groupName: string;
|
|
1943
|
+
valueName: string;
|
|
1944
|
+
additionalPrice: number;
|
|
1945
|
+
}[];
|
|
1946
|
+
customInputs: {
|
|
1947
|
+
label: string;
|
|
1948
|
+
value: string;
|
|
1949
|
+
}[];
|
|
1950
|
+
cartItemId: string;
|
|
1951
|
+
productId: string;
|
|
1952
|
+
productName: string;
|
|
1953
|
+
thumbnailUrl: string | null;
|
|
1954
|
+
optionId: string | null;
|
|
1955
|
+
optionName: string | null;
|
|
2248
1956
|
}[];
|
|
2249
1957
|
summary: {
|
|
2250
1958
|
productAmount: number;
|
|
@@ -2255,22 +1963,32 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2255
1963
|
}>;
|
|
2256
1964
|
addItem: (body: AddCartItemRequest) => Promise<{
|
|
2257
1965
|
items: {
|
|
2258
|
-
cartItemId: string;
|
|
2259
|
-
productId: string;
|
|
2260
|
-
productName: string;
|
|
2261
|
-
thumbnailUrl: string | null;
|
|
2262
|
-
optionId: string | null;
|
|
2263
|
-
optionName: string | null;
|
|
2264
1966
|
quantity: number;
|
|
2265
1967
|
unitPrice: number;
|
|
2266
1968
|
totalPrice: number;
|
|
2267
1969
|
fulfillment: {
|
|
2268
1970
|
type: string;
|
|
2269
1971
|
requiresShipping: boolean;
|
|
2270
|
-
withdrawalRestricted
|
|
1972
|
+
withdrawalRestricted?: boolean | undefined;
|
|
2271
1973
|
};
|
|
2272
1974
|
purchasable: boolean;
|
|
2273
1975
|
unpurchasableReason: "SOLD_OUT" | "SUSPENDED" | "CLOSED" | null;
|
|
1976
|
+
optionSelections: {
|
|
1977
|
+
kind: string;
|
|
1978
|
+
groupName: string;
|
|
1979
|
+
valueName: string;
|
|
1980
|
+
additionalPrice: number;
|
|
1981
|
+
}[];
|
|
1982
|
+
customInputs: {
|
|
1983
|
+
label: string;
|
|
1984
|
+
value: string;
|
|
1985
|
+
}[];
|
|
1986
|
+
cartItemId: string;
|
|
1987
|
+
productId: string;
|
|
1988
|
+
productName: string;
|
|
1989
|
+
thumbnailUrl: string | null;
|
|
1990
|
+
optionId: string | null;
|
|
1991
|
+
optionName: string | null;
|
|
2274
1992
|
}[];
|
|
2275
1993
|
summary: {
|
|
2276
1994
|
productAmount: number;
|
|
@@ -2281,22 +1999,32 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2281
1999
|
}>;
|
|
2282
2000
|
updateItem: (cartItemId: string, body: UpdateCartItemRequest) => Promise<{
|
|
2283
2001
|
items: {
|
|
2284
|
-
cartItemId: string;
|
|
2285
|
-
productId: string;
|
|
2286
|
-
productName: string;
|
|
2287
|
-
thumbnailUrl: string | null;
|
|
2288
|
-
optionId: string | null;
|
|
2289
|
-
optionName: string | null;
|
|
2290
2002
|
quantity: number;
|
|
2291
2003
|
unitPrice: number;
|
|
2292
2004
|
totalPrice: number;
|
|
2293
2005
|
fulfillment: {
|
|
2294
2006
|
type: string;
|
|
2295
2007
|
requiresShipping: boolean;
|
|
2296
|
-
withdrawalRestricted
|
|
2008
|
+
withdrawalRestricted?: boolean | undefined;
|
|
2297
2009
|
};
|
|
2298
2010
|
purchasable: boolean;
|
|
2299
2011
|
unpurchasableReason: "SOLD_OUT" | "SUSPENDED" | "CLOSED" | null;
|
|
2012
|
+
optionSelections: {
|
|
2013
|
+
kind: string;
|
|
2014
|
+
groupName: string;
|
|
2015
|
+
valueName: string;
|
|
2016
|
+
additionalPrice: number;
|
|
2017
|
+
}[];
|
|
2018
|
+
customInputs: {
|
|
2019
|
+
label: string;
|
|
2020
|
+
value: string;
|
|
2021
|
+
}[];
|
|
2022
|
+
cartItemId: string;
|
|
2023
|
+
productId: string;
|
|
2024
|
+
productName: string;
|
|
2025
|
+
thumbnailUrl: string | null;
|
|
2026
|
+
optionId: string | null;
|
|
2027
|
+
optionName: string | null;
|
|
2300
2028
|
}[];
|
|
2301
2029
|
summary: {
|
|
2302
2030
|
productAmount: number;
|
|
@@ -2311,18 +2039,29 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2311
2039
|
create: (body: CreateCheckoutRequest) => Promise<{
|
|
2312
2040
|
checkoutId: string;
|
|
2313
2041
|
items: {
|
|
2314
|
-
productId: string;
|
|
2315
|
-
productName: string;
|
|
2316
|
-
optionId: string | null;
|
|
2317
|
-
optionName: string | null;
|
|
2318
2042
|
quantity: number;
|
|
2319
2043
|
unitPrice: number;
|
|
2320
2044
|
totalPrice: number;
|
|
2321
2045
|
fulfillment: {
|
|
2322
2046
|
type: string;
|
|
2323
2047
|
requiresShipping: boolean;
|
|
2324
|
-
withdrawalRestricted
|
|
2048
|
+
withdrawalRestricted?: boolean | undefined;
|
|
2325
2049
|
};
|
|
2050
|
+
optionSelections: {
|
|
2051
|
+
kind: string;
|
|
2052
|
+
groupName: string;
|
|
2053
|
+
valueName: string;
|
|
2054
|
+
additionalPrice: number;
|
|
2055
|
+
}[];
|
|
2056
|
+
customInputs: {
|
|
2057
|
+
label: string;
|
|
2058
|
+
value: string;
|
|
2059
|
+
}[];
|
|
2060
|
+
productId: string;
|
|
2061
|
+
productName: string;
|
|
2062
|
+
optionId: string | null;
|
|
2063
|
+
optionName: string | null;
|
|
2064
|
+
lineId?: string | undefined;
|
|
2326
2065
|
}[];
|
|
2327
2066
|
amounts: {
|
|
2328
2067
|
productAmount: number;
|
|
@@ -2341,10 +2080,6 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2341
2080
|
zipCode: string | null;
|
|
2342
2081
|
};
|
|
2343
2082
|
requiresShipping: boolean;
|
|
2344
|
-
withdrawal: {
|
|
2345
|
-
required: boolean;
|
|
2346
|
-
notice: string | null;
|
|
2347
|
-
};
|
|
2348
2083
|
expiresAt: string;
|
|
2349
2084
|
paymentOptions: (({
|
|
2350
2085
|
pg: "tosspayments" | "portone";
|
|
@@ -2367,6 +2102,10 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2367
2102
|
pgName: string;
|
|
2368
2103
|
})[];
|
|
2369
2104
|
testPayment: boolean;
|
|
2105
|
+
withdrawal?: {
|
|
2106
|
+
required: boolean;
|
|
2107
|
+
notice: string | null;
|
|
2108
|
+
} | undefined;
|
|
2370
2109
|
}>;
|
|
2371
2110
|
/**
|
|
2372
2111
|
* `POST /checkout/{checkoutId}/delivery-quote` — 배송비 미리보기. 배송지 우편번호로 배송비를 다시 계산한다.
|
|
@@ -2476,10 +2215,12 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2476
2215
|
discountAmount: number;
|
|
2477
2216
|
rejectReason: string | null;
|
|
2478
2217
|
optionId: string | null;
|
|
2218
|
+
lineId: string | null;
|
|
2479
2219
|
}[];
|
|
2480
2220
|
items: {
|
|
2481
2221
|
optionId: string | null;
|
|
2482
2222
|
couponDiscountAmount: number;
|
|
2223
|
+
lineId?: string | undefined;
|
|
2483
2224
|
}[];
|
|
2484
2225
|
payable: boolean;
|
|
2485
2226
|
}>;
|
|
@@ -2582,11 +2323,6 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2582
2323
|
orderId: string;
|
|
2583
2324
|
orderedAt: string;
|
|
2584
2325
|
items: {
|
|
2585
|
-
orderItemId: string;
|
|
2586
|
-
productId: string;
|
|
2587
|
-
productName: string;
|
|
2588
|
-
thumbnailUrl: string | null;
|
|
2589
|
-
optionName: string | null;
|
|
2590
2326
|
quantity: number;
|
|
2591
2327
|
canceledQuantity: number;
|
|
2592
2328
|
activeQuantity: number;
|
|
@@ -2597,56 +2333,32 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2597
2333
|
type: "SHIPPING";
|
|
2598
2334
|
requiresShipping: true;
|
|
2599
2335
|
} | {
|
|
2600
|
-
type: "
|
|
2601
|
-
requiresShipping: false;
|
|
2602
|
-
download: {
|
|
2603
|
-
withdrawalRestricted: boolean;
|
|
2604
|
-
};
|
|
2605
|
-
} | {
|
|
2606
|
-
type: "CODE";
|
|
2607
|
-
requiresShipping: false;
|
|
2608
|
-
code: {
|
|
2609
|
-
withdrawalRestricted: boolean;
|
|
2610
|
-
};
|
|
2611
|
-
} | {
|
|
2612
|
-
type: "SERVICE";
|
|
2613
|
-
requiresShipping: false;
|
|
2614
|
-
} | {
|
|
2615
|
-
type: "PICKUP";
|
|
2336
|
+
type: "MANUAL";
|
|
2616
2337
|
requiresShipping: false;
|
|
2617
|
-
pickup: {
|
|
2618
|
-
location: {
|
|
2619
|
-
name: string;
|
|
2620
|
-
zipCode: string;
|
|
2621
|
-
address1: string;
|
|
2622
|
-
address2: string | null;
|
|
2623
|
-
phone: string;
|
|
2624
|
-
} | null;
|
|
2625
|
-
};
|
|
2626
2338
|
};
|
|
2627
2339
|
fulfillment: {
|
|
2628
2340
|
status: string;
|
|
2629
2341
|
fulfilledAt: string;
|
|
2630
2342
|
note: string | null;
|
|
2631
|
-
codes: {
|
|
2632
|
-
codeId: string;
|
|
2633
|
-
hint: string;
|
|
2634
|
-
revealedAt: string | null;
|
|
2635
|
-
}[];
|
|
2636
|
-
download: {
|
|
2637
|
-
count: number;
|
|
2638
|
-
limit: number;
|
|
2639
|
-
expiresAt: string | null;
|
|
2640
|
-
files: {
|
|
2641
|
-
assetId: string;
|
|
2642
|
-
fileName: string;
|
|
2643
|
-
sizeBytes: number | null;
|
|
2644
|
-
}[];
|
|
2645
|
-
} | null;
|
|
2646
2343
|
} | null;
|
|
2647
2344
|
claimStatus: string | null;
|
|
2648
2345
|
reviewWritten: boolean;
|
|
2649
2346
|
autoDecisionDate: string | null;
|
|
2347
|
+
optionSelections: {
|
|
2348
|
+
kind: string;
|
|
2349
|
+
groupName: string;
|
|
2350
|
+
valueName: string;
|
|
2351
|
+
additionalPrice: number;
|
|
2352
|
+
}[];
|
|
2353
|
+
customInputs: {
|
|
2354
|
+
label: string;
|
|
2355
|
+
value: string;
|
|
2356
|
+
}[];
|
|
2357
|
+
orderItemId: string;
|
|
2358
|
+
productId: string;
|
|
2359
|
+
productName: string;
|
|
2360
|
+
thumbnailUrl: string | null;
|
|
2361
|
+
optionName: string | null;
|
|
2650
2362
|
}[];
|
|
2651
2363
|
requiresShipping: boolean;
|
|
2652
2364
|
shippingAddress: {
|
|
@@ -2673,7 +2385,6 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2673
2385
|
paidAt: string | null;
|
|
2674
2386
|
receiptUrl: string | null;
|
|
2675
2387
|
};
|
|
2676
|
-
withdrawalAgreedAt: string | null;
|
|
2677
2388
|
testPayment: boolean;
|
|
2678
2389
|
}[];
|
|
2679
2390
|
}>;
|
|
@@ -2681,11 +2392,6 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2681
2392
|
orderId: string;
|
|
2682
2393
|
orderedAt: string;
|
|
2683
2394
|
items: {
|
|
2684
|
-
orderItemId: string;
|
|
2685
|
-
productId: string;
|
|
2686
|
-
productName: string;
|
|
2687
|
-
thumbnailUrl: string | null;
|
|
2688
|
-
optionName: string | null;
|
|
2689
2395
|
quantity: number;
|
|
2690
2396
|
canceledQuantity: number;
|
|
2691
2397
|
activeQuantity: number;
|
|
@@ -2696,56 +2402,32 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2696
2402
|
type: "SHIPPING";
|
|
2697
2403
|
requiresShipping: true;
|
|
2698
2404
|
} | {
|
|
2699
|
-
type: "
|
|
2700
|
-
requiresShipping: false;
|
|
2701
|
-
download: {
|
|
2702
|
-
withdrawalRestricted: boolean;
|
|
2703
|
-
};
|
|
2704
|
-
} | {
|
|
2705
|
-
type: "CODE";
|
|
2706
|
-
requiresShipping: false;
|
|
2707
|
-
code: {
|
|
2708
|
-
withdrawalRestricted: boolean;
|
|
2709
|
-
};
|
|
2710
|
-
} | {
|
|
2711
|
-
type: "SERVICE";
|
|
2712
|
-
requiresShipping: false;
|
|
2713
|
-
} | {
|
|
2714
|
-
type: "PICKUP";
|
|
2405
|
+
type: "MANUAL";
|
|
2715
2406
|
requiresShipping: false;
|
|
2716
|
-
pickup: {
|
|
2717
|
-
location: {
|
|
2718
|
-
name: string;
|
|
2719
|
-
zipCode: string;
|
|
2720
|
-
address1: string;
|
|
2721
|
-
address2: string | null;
|
|
2722
|
-
phone: string;
|
|
2723
|
-
} | null;
|
|
2724
|
-
};
|
|
2725
2407
|
};
|
|
2726
2408
|
fulfillment: {
|
|
2727
2409
|
status: string;
|
|
2728
2410
|
fulfilledAt: string;
|
|
2729
2411
|
note: string | null;
|
|
2730
|
-
codes: {
|
|
2731
|
-
codeId: string;
|
|
2732
|
-
hint: string;
|
|
2733
|
-
revealedAt: string | null;
|
|
2734
|
-
}[];
|
|
2735
|
-
download: {
|
|
2736
|
-
count: number;
|
|
2737
|
-
limit: number;
|
|
2738
|
-
expiresAt: string | null;
|
|
2739
|
-
files: {
|
|
2740
|
-
assetId: string;
|
|
2741
|
-
fileName: string;
|
|
2742
|
-
sizeBytes: number | null;
|
|
2743
|
-
}[];
|
|
2744
|
-
} | null;
|
|
2745
2412
|
} | null;
|
|
2746
2413
|
claimStatus: string | null;
|
|
2747
2414
|
reviewWritten: boolean;
|
|
2748
2415
|
autoDecisionDate: string | null;
|
|
2416
|
+
optionSelections: {
|
|
2417
|
+
kind: string;
|
|
2418
|
+
groupName: string;
|
|
2419
|
+
valueName: string;
|
|
2420
|
+
additionalPrice: number;
|
|
2421
|
+
}[];
|
|
2422
|
+
customInputs: {
|
|
2423
|
+
label: string;
|
|
2424
|
+
value: string;
|
|
2425
|
+
}[];
|
|
2426
|
+
orderItemId: string;
|
|
2427
|
+
productId: string;
|
|
2428
|
+
productName: string;
|
|
2429
|
+
thumbnailUrl: string | null;
|
|
2430
|
+
optionName: string | null;
|
|
2749
2431
|
}[];
|
|
2750
2432
|
requiresShipping: boolean;
|
|
2751
2433
|
shippingAddress: {
|
|
@@ -2772,7 +2454,6 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2772
2454
|
paidAt: string | null;
|
|
2773
2455
|
receiptUrl: string | null;
|
|
2774
2456
|
};
|
|
2775
|
-
withdrawalAgreedAt: string | null;
|
|
2776
2457
|
testPayment: boolean;
|
|
2777
2458
|
}>;
|
|
2778
2459
|
/**
|
|
@@ -2791,11 +2472,6 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2791
2472
|
orderId: string;
|
|
2792
2473
|
orderedAt: string;
|
|
2793
2474
|
items: {
|
|
2794
|
-
orderItemId: string;
|
|
2795
|
-
productId: string;
|
|
2796
|
-
productName: string;
|
|
2797
|
-
thumbnailUrl: string | null;
|
|
2798
|
-
optionName: string | null;
|
|
2799
2475
|
quantity: number;
|
|
2800
2476
|
canceledQuantity: number;
|
|
2801
2477
|
activeQuantity: number;
|
|
@@ -2806,56 +2482,32 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2806
2482
|
type: "SHIPPING";
|
|
2807
2483
|
requiresShipping: true;
|
|
2808
2484
|
} | {
|
|
2809
|
-
type: "
|
|
2485
|
+
type: "MANUAL";
|
|
2810
2486
|
requiresShipping: false;
|
|
2811
|
-
download: {
|
|
2812
|
-
withdrawalRestricted: boolean;
|
|
2813
|
-
};
|
|
2814
|
-
} | {
|
|
2815
|
-
type: "CODE";
|
|
2816
|
-
requiresShipping: false;
|
|
2817
|
-
code: {
|
|
2818
|
-
withdrawalRestricted: boolean;
|
|
2819
|
-
};
|
|
2820
|
-
} | {
|
|
2821
|
-
type: "SERVICE";
|
|
2822
|
-
requiresShipping: false;
|
|
2823
|
-
} | {
|
|
2824
|
-
type: "PICKUP";
|
|
2825
|
-
requiresShipping: false;
|
|
2826
|
-
pickup: {
|
|
2827
|
-
location: {
|
|
2828
|
-
name: string;
|
|
2829
|
-
zipCode: string;
|
|
2830
|
-
address1: string;
|
|
2831
|
-
address2: string | null;
|
|
2832
|
-
phone: string;
|
|
2833
|
-
} | null;
|
|
2834
|
-
};
|
|
2835
2487
|
};
|
|
2836
2488
|
fulfillment: {
|
|
2837
2489
|
status: string;
|
|
2838
2490
|
fulfilledAt: string;
|
|
2839
2491
|
note: string | null;
|
|
2840
|
-
codes: {
|
|
2841
|
-
codeId: string;
|
|
2842
|
-
hint: string;
|
|
2843
|
-
revealedAt: string | null;
|
|
2844
|
-
}[];
|
|
2845
|
-
download: {
|
|
2846
|
-
count: number;
|
|
2847
|
-
limit: number;
|
|
2848
|
-
expiresAt: string | null;
|
|
2849
|
-
files: {
|
|
2850
|
-
assetId: string;
|
|
2851
|
-
fileName: string;
|
|
2852
|
-
sizeBytes: number | null;
|
|
2853
|
-
}[];
|
|
2854
|
-
} | null;
|
|
2855
2492
|
} | null;
|
|
2856
2493
|
claimStatus: string | null;
|
|
2857
2494
|
reviewWritten: boolean;
|
|
2858
2495
|
autoDecisionDate: string | null;
|
|
2496
|
+
optionSelections: {
|
|
2497
|
+
kind: string;
|
|
2498
|
+
groupName: string;
|
|
2499
|
+
valueName: string;
|
|
2500
|
+
additionalPrice: number;
|
|
2501
|
+
}[];
|
|
2502
|
+
customInputs: {
|
|
2503
|
+
label: string;
|
|
2504
|
+
value: string;
|
|
2505
|
+
}[];
|
|
2506
|
+
orderItemId: string;
|
|
2507
|
+
productId: string;
|
|
2508
|
+
productName: string;
|
|
2509
|
+
thumbnailUrl: string | null;
|
|
2510
|
+
optionName: string | null;
|
|
2859
2511
|
}[];
|
|
2860
2512
|
requiresShipping: boolean;
|
|
2861
2513
|
shippingAddress: {
|
|
@@ -2882,7 +2534,6 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2882
2534
|
paidAt: string | null;
|
|
2883
2535
|
receiptUrl: string | null;
|
|
2884
2536
|
};
|
|
2885
|
-
withdrawalAgreedAt: string | null;
|
|
2886
2537
|
testPayment: boolean;
|
|
2887
2538
|
}>;
|
|
2888
2539
|
getDelivery: (orderItemId: string) => Promise<{
|
|
@@ -2899,58 +2550,6 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2899
2550
|
trackingStage: string | null;
|
|
2900
2551
|
trackingCheckedAt: string | null;
|
|
2901
2552
|
}>;
|
|
2902
|
-
/**
|
|
2903
|
-
* 코드 열람 (이슈 #48) — 코드 발급 상품의 평문 코드. 처음 열람한 시각이 제공 개시 증거로 남는다.
|
|
2904
|
-
*
|
|
2905
|
-
* 에러: 404 `ORDER_ITEM_NOT_FOUND`(없거나 남의 주문상품) · 404 `FULFILLMENT_NOT_FOUND`(제공 전·회수됨·코드 상품 아님) ·
|
|
2906
|
-
* 429 `TOO_MANY_REQUESTS`
|
|
2907
|
-
*/
|
|
2908
|
-
revealCode: (orderItemId: string) => Promise<{
|
|
2909
|
-
orderItemId: string;
|
|
2910
|
-
codes: {
|
|
2911
|
-
codeId: string;
|
|
2912
|
-
code: string;
|
|
2913
|
-
revealedAt: string;
|
|
2914
|
-
}[];
|
|
2915
|
-
}>;
|
|
2916
|
-
/**
|
|
2917
|
-
* 파일 다운로드 (이슈 #48) — 수명 300초의 서명 주소를 받는다. 받을 때마다 남은 횟수가 준다.
|
|
2918
|
-
*
|
|
2919
|
-
* 에러: 404 `FULFILLMENT_NOT_FOUND`(제공 전·회수됨·파일 상품 아님) · 409 `DOWNLOAD_LIMIT_REACHED`(횟수 소진) ·
|
|
2920
|
-
* 409 `DOWNLOAD_EXPIRED`(기한 지남) · 400 `ASSET_REQUIRED`(파일이 여러 개인데 `assetId` 없음)
|
|
2921
|
-
*/
|
|
2922
|
-
createDownload: (orderItemId: string, body?: DownloadRequest) => Promise<{
|
|
2923
|
-
url: string;
|
|
2924
|
-
expiresAt: string;
|
|
2925
|
-
fileName: string;
|
|
2926
|
-
remaining: number;
|
|
2927
|
-
}>;
|
|
2928
|
-
/** 비회원 다운로드 — 비회원 주문 조회와 같은 연락처·주문 조회 비밀번호로 확인한다 */
|
|
2929
|
-
createGuestDownload: (orderId: string, orderItemId: string, body: {
|
|
2930
|
-
phone: string;
|
|
2931
|
-
orderPassword: string;
|
|
2932
|
-
assetId?: string;
|
|
2933
|
-
}) => Promise<{
|
|
2934
|
-
url: string;
|
|
2935
|
-
expiresAt: string;
|
|
2936
|
-
fileName: string;
|
|
2937
|
-
remaining: number;
|
|
2938
|
-
}>;
|
|
2939
|
-
/**
|
|
2940
|
-
* 비회원 코드 열람 — 비회원 주문 조회와 같은 연락처·주문 조회 비밀번호로 확인하고 같은 시도 한도를 쓴다.
|
|
2941
|
-
* 틀리면 구분 없이 404 `ORDER_NOT_FOUND`다.
|
|
2942
|
-
*/
|
|
2943
|
-
revealGuestCode: (orderId: string, orderItemId: string, body: {
|
|
2944
|
-
phone: string;
|
|
2945
|
-
orderPassword: string;
|
|
2946
|
-
}) => Promise<{
|
|
2947
|
-
orderItemId: string;
|
|
2948
|
-
codes: {
|
|
2949
|
-
codeId: string;
|
|
2950
|
-
code: string;
|
|
2951
|
-
revealedAt: string;
|
|
2952
|
-
}[];
|
|
2953
|
-
}>;
|
|
2954
2553
|
decidePurchase: (orderItemId: string) => Promise<void>;
|
|
2955
2554
|
};
|
|
2956
2555
|
myClaims: {
|
|
@@ -3339,6 +2938,286 @@ type AnalyticsBatch = z.infer<typeof analyticsBatchSchema>;
|
|
|
3339
2938
|
/** 배치 본문 상한(바이트) — 서버가 넘는 요청을 거부한다 */
|
|
3340
2939
|
declare const ANALYTICS_MAX_BATCH_BYTES: number;
|
|
3341
2940
|
//#endregion
|
|
2941
|
+
//#region src/schemas/order.d.ts
|
|
2942
|
+
declare const myOrderItemSchema: z.ZodObject<{
|
|
2943
|
+
quantity: z.ZodNumber;
|
|
2944
|
+
canceledQuantity: z.ZodNumber;
|
|
2945
|
+
activeQuantity: z.ZodNumber;
|
|
2946
|
+
totalPrice: z.ZodNumber;
|
|
2947
|
+
couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
2948
|
+
status: z.ZodEnum<{
|
|
2949
|
+
CANCELED: "CANCELED";
|
|
2950
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
2951
|
+
PAID: "PAID";
|
|
2952
|
+
CONFIRMED: "CONFIRMED";
|
|
2953
|
+
DISPATCHED: "DISPATCHED";
|
|
2954
|
+
DELIVERING: "DELIVERING";
|
|
2955
|
+
DELIVERED: "DELIVERED";
|
|
2956
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
2957
|
+
}>;
|
|
2958
|
+
fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2959
|
+
type: z.ZodLiteral<"SHIPPING">;
|
|
2960
|
+
requiresShipping: z.ZodLiteral<true>;
|
|
2961
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2962
|
+
type: z.ZodLiteral<"MANUAL">;
|
|
2963
|
+
requiresShipping: z.ZodLiteral<false>;
|
|
2964
|
+
}, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
|
|
2965
|
+
type: z.ZodString;
|
|
2966
|
+
requiresShipping: z.ZodBoolean;
|
|
2967
|
+
}, z.core.$loose>, z.ZodTransform<UnknownFulfillmentView, {
|
|
2968
|
+
[x: string]: unknown;
|
|
2969
|
+
type: string;
|
|
2970
|
+
requiresShipping: boolean;
|
|
2971
|
+
}>>]>;
|
|
2972
|
+
fulfillment: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2973
|
+
status: z.ZodString;
|
|
2974
|
+
fulfilledAt: z.ZodString;
|
|
2975
|
+
note: z.ZodNullable<z.ZodString>;
|
|
2976
|
+
}, z.core.$strip>>>>;
|
|
2977
|
+
claimStatus: z.ZodNullable<z.ZodString>;
|
|
2978
|
+
reviewWritten: z.ZodBoolean;
|
|
2979
|
+
autoDecisionDate: z.ZodNullable<z.ZodString>;
|
|
2980
|
+
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2981
|
+
kind: z.ZodString;
|
|
2982
|
+
groupName: z.ZodString;
|
|
2983
|
+
valueName: z.ZodString;
|
|
2984
|
+
additionalPrice: z.ZodNumber;
|
|
2985
|
+
}, z.core.$strip>>>>;
|
|
2986
|
+
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2987
|
+
label: z.ZodString;
|
|
2988
|
+
value: z.ZodString;
|
|
2989
|
+
}, z.core.$strip>>>>;
|
|
2990
|
+
orderItemId: z.ZodString;
|
|
2991
|
+
productId: z.ZodString;
|
|
2992
|
+
productName: z.ZodString;
|
|
2993
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
2994
|
+
optionName: z.ZodNullable<z.ZodString>;
|
|
2995
|
+
}, z.core.$strip>;
|
|
2996
|
+
type MyOrderItem = z.infer<typeof myOrderItemSchema>;
|
|
2997
|
+
/**
|
|
2998
|
+
* 주문 응답의 배송지 — 결제 요청 시 저장된 스냅샷. 요청 스키마(`shippingAddressInputSchema`)와 분리한 응답 스키마라
|
|
2999
|
+
* 형식 검증(regex·길이)을 하지 않는다. 입력하지 않은 선택 필드는 null로 오거나 빠질 수 있다.
|
|
3000
|
+
*/
|
|
3001
|
+
declare const orderShippingAddressSchema: z.ZodObject<{
|
|
3002
|
+
receiverName: z.ZodString;
|
|
3003
|
+
phone: z.ZodString;
|
|
3004
|
+
zipCode: z.ZodString;
|
|
3005
|
+
address1: z.ZodString;
|
|
3006
|
+
address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3007
|
+
deliveryMemo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3008
|
+
entranceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3009
|
+
}, z.core.$strip>;
|
|
3010
|
+
type OrderShippingAddress = z.infer<typeof orderShippingAddressSchema>;
|
|
3011
|
+
declare const myOrderSchema: z.ZodObject<{
|
|
3012
|
+
orderId: z.ZodString;
|
|
3013
|
+
orderedAt: z.ZodString;
|
|
3014
|
+
items: z.ZodArray<z.ZodObject<{
|
|
3015
|
+
quantity: z.ZodNumber;
|
|
3016
|
+
canceledQuantity: z.ZodNumber;
|
|
3017
|
+
activeQuantity: z.ZodNumber;
|
|
3018
|
+
totalPrice: z.ZodNumber;
|
|
3019
|
+
couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3020
|
+
status: z.ZodEnum<{
|
|
3021
|
+
CANCELED: "CANCELED";
|
|
3022
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
3023
|
+
PAID: "PAID";
|
|
3024
|
+
CONFIRMED: "CONFIRMED";
|
|
3025
|
+
DISPATCHED: "DISPATCHED";
|
|
3026
|
+
DELIVERING: "DELIVERING";
|
|
3027
|
+
DELIVERED: "DELIVERED";
|
|
3028
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
3029
|
+
}>;
|
|
3030
|
+
fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3031
|
+
type: z.ZodLiteral<"SHIPPING">;
|
|
3032
|
+
requiresShipping: z.ZodLiteral<true>;
|
|
3033
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3034
|
+
type: z.ZodLiteral<"MANUAL">;
|
|
3035
|
+
requiresShipping: z.ZodLiteral<false>;
|
|
3036
|
+
}, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
|
|
3037
|
+
type: z.ZodString;
|
|
3038
|
+
requiresShipping: z.ZodBoolean;
|
|
3039
|
+
}, z.core.$loose>, z.ZodTransform<UnknownFulfillmentView, {
|
|
3040
|
+
[x: string]: unknown;
|
|
3041
|
+
type: string;
|
|
3042
|
+
requiresShipping: boolean;
|
|
3043
|
+
}>>]>;
|
|
3044
|
+
fulfillment: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3045
|
+
status: z.ZodString;
|
|
3046
|
+
fulfilledAt: z.ZodString;
|
|
3047
|
+
note: z.ZodNullable<z.ZodString>;
|
|
3048
|
+
}, z.core.$strip>>>>;
|
|
3049
|
+
claimStatus: z.ZodNullable<z.ZodString>;
|
|
3050
|
+
reviewWritten: z.ZodBoolean;
|
|
3051
|
+
autoDecisionDate: z.ZodNullable<z.ZodString>;
|
|
3052
|
+
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3053
|
+
kind: z.ZodString;
|
|
3054
|
+
groupName: z.ZodString;
|
|
3055
|
+
valueName: z.ZodString;
|
|
3056
|
+
additionalPrice: z.ZodNumber;
|
|
3057
|
+
}, z.core.$strip>>>>;
|
|
3058
|
+
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3059
|
+
label: z.ZodString;
|
|
3060
|
+
value: z.ZodString;
|
|
3061
|
+
}, z.core.$strip>>>>;
|
|
3062
|
+
orderItemId: z.ZodString;
|
|
3063
|
+
productId: z.ZodString;
|
|
3064
|
+
productName: z.ZodString;
|
|
3065
|
+
thumbnailUrl: z.ZodNullable<z.ZodURL>;
|
|
3066
|
+
optionName: z.ZodNullable<z.ZodString>;
|
|
3067
|
+
}, z.core.$strip>>;
|
|
3068
|
+
requiresShipping: z.ZodBoolean;
|
|
3069
|
+
shippingAddress: z.ZodObject<{
|
|
3070
|
+
receiverName: z.ZodString;
|
|
3071
|
+
phone: z.ZodString;
|
|
3072
|
+
zipCode: z.ZodString;
|
|
3073
|
+
address1: z.ZodString;
|
|
3074
|
+
address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3075
|
+
deliveryMemo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3076
|
+
entranceCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3077
|
+
}, z.core.$strip>;
|
|
3078
|
+
payment: z.ZodObject<{
|
|
3079
|
+
method: z.ZodEnum<{
|
|
3080
|
+
CARD: "CARD";
|
|
3081
|
+
EASY_PAY: "EASY_PAY";
|
|
3082
|
+
BANK_TRANSFER: "BANK_TRANSFER";
|
|
3083
|
+
VIRTUAL_ACCOUNT: "VIRTUAL_ACCOUNT";
|
|
3084
|
+
MOBILE: "MOBILE";
|
|
3085
|
+
}>;
|
|
3086
|
+
easyPayProvider: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
3087
|
+
couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3088
|
+
deliveryDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
3089
|
+
discounts: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3090
|
+
couponId: z.ZodString;
|
|
3091
|
+
name: z.ZodString;
|
|
3092
|
+
kind: z.ZodString;
|
|
3093
|
+
discountAmount: z.ZodNumber;
|
|
3094
|
+
}, z.core.$strip>>>>;
|
|
3095
|
+
totalAmount: z.ZodNumber;
|
|
3096
|
+
paidAt: z.ZodNullable<z.ZodString>;
|
|
3097
|
+
receiptUrl: z.ZodNullable<z.ZodURL>;
|
|
3098
|
+
}, z.core.$strip>;
|
|
3099
|
+
testPayment: z.ZodBoolean;
|
|
3100
|
+
}, z.core.$strip>;
|
|
3101
|
+
type MyOrder = z.infer<typeof myOrderSchema>;
|
|
3102
|
+
/**
|
|
3103
|
+
* 택배 추적 단계. 응답에서는 문자열로 받는다(값이 추가될 수 있다) — 현재 값은 `ACCEPTED`(접수)·`IN_TRANSIT`(이동 중)·
|
|
3104
|
+
* `OUT_FOR_DELIVERY`(배송 출발)·`DELIVERED`(배송완료)다.
|
|
3105
|
+
*/
|
|
3106
|
+
declare const trackingStageResponseSchema: z.ZodString;
|
|
3107
|
+
declare const deliveryTrackingSchema: z.ZodObject<{
|
|
3108
|
+
carrierName: z.ZodString;
|
|
3109
|
+
trackingNumber: z.ZodString;
|
|
3110
|
+
trackingUrl: z.ZodURL;
|
|
3111
|
+
status: z.ZodEnum<{
|
|
3112
|
+
DISPATCHED: "DISPATCHED";
|
|
3113
|
+
DELIVERING: "DELIVERING";
|
|
3114
|
+
DELIVERED: "DELIVERED";
|
|
3115
|
+
}>;
|
|
3116
|
+
trackingEvents: z.ZodArray<z.ZodObject<{
|
|
3117
|
+
status: z.ZodString;
|
|
3118
|
+
location: z.ZodString;
|
|
3119
|
+
occurredAt: z.ZodString;
|
|
3120
|
+
stage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
3121
|
+
}, z.core.$strip>>;
|
|
3122
|
+
trackingStage: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
3123
|
+
trackingCheckedAt: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
3124
|
+
}, z.core.$strip>;
|
|
3125
|
+
type DeliveryTracking = z.infer<typeof deliveryTrackingSchema>;
|
|
3126
|
+
/** `POST /me/order-items/{orderItemId}/purchase-decision` 응답 */
|
|
3127
|
+
declare const purchaseDecisionResultSchema: z.ZodObject<{
|
|
3128
|
+
orderItemId: z.ZodString;
|
|
3129
|
+
status: z.ZodLiteral<"PURCHASE_DECIDED">;
|
|
3130
|
+
decidedAt: z.ZodString;
|
|
3131
|
+
}, z.core.$strip>;
|
|
3132
|
+
type PurchaseDecisionResult = z.infer<typeof purchaseDecisionResultSchema>;
|
|
3133
|
+
//#endregion
|
|
3134
|
+
//#region src/schemas/product-options.d.ts
|
|
3135
|
+
/**
|
|
3136
|
+
* 추가 선택·직접 입력 (이슈 #59) — 상품 상세의 옵션 표시, 장바구니 담기·바로 구매 요청, 줄 스냅샷의 공통 모양.
|
|
3137
|
+
*
|
|
3138
|
+
* 추가 선택은 재고가 없는 옵션이다. 구매자가 조합(옵션이 없으면 상품)을 고른 뒤 옵션명마다 값 하나를 더 고르고, 값의 추가금이
|
|
3139
|
+
* 단가에 더해진다. 직접 입력은 구매자가 글자를 적는 항목(각인 문구 등)이다. 추가 선택 값이나 직접 입력값이 다르면 장바구니에서 다른 줄이다.
|
|
3140
|
+
*/
|
|
3141
|
+
declare const addonGroupViewSchema: z.ZodObject<{
|
|
3142
|
+
groupId: z.ZodString;
|
|
3143
|
+
name: z.ZodString;
|
|
3144
|
+
required: z.ZodBoolean;
|
|
3145
|
+
values: z.ZodArray<z.ZodObject<{
|
|
3146
|
+
valueId: z.ZodString;
|
|
3147
|
+
name: z.ZodString;
|
|
3148
|
+
additionalPrice: z.ZodNumber;
|
|
3149
|
+
}, z.core.$strip>>;
|
|
3150
|
+
}, z.core.$strip>;
|
|
3151
|
+
type AddonGroupView = z.infer<typeof addonGroupViewSchema>;
|
|
3152
|
+
declare const customInputViewSchema: z.ZodObject<{
|
|
3153
|
+
inputId: z.ZodString;
|
|
3154
|
+
label: z.ZodString;
|
|
3155
|
+
placeholder: z.ZodNullable<z.ZodString>;
|
|
3156
|
+
maxLength: z.ZodNumber;
|
|
3157
|
+
required: z.ZodBoolean;
|
|
3158
|
+
}, z.core.$strip>;
|
|
3159
|
+
type CustomInputView = z.infer<typeof customInputViewSchema>;
|
|
3160
|
+
/**
|
|
3161
|
+
* 직접 입력값 정규화 — NFC로 모으고, 제어 문자(C0·C1·줄바꿈·줄·문단 구분자)는 공백으로, 제로폭·양방향 제어 문자는 지운 뒤
|
|
3162
|
+
* 앞뒤 공백을 지운다. 서버가 저장하는 값이 이것이다. 빈 문자열이면 입력하지 않은 것으로 본다.
|
|
3163
|
+
* (양방향 제어 문자를 두면 셀러 주문 화면의 각인 문구가 뒤집혀 보이게 할 수 있다.)
|
|
3164
|
+
*/
|
|
3165
|
+
declare function normalizeCustomInputValue(value: string): string;
|
|
3166
|
+
/**
|
|
3167
|
+
* 직접 입력값의 글자 수 — 정규화한 값의 **코드 포인트 수**다(이모지 하나가 1자). 서버의 최대 글자 수 판정(`CUSTOM_INPUT_TOO_LONG`)과
|
|
3168
|
+
* 스토어프론트·콘솔의 글자 수 표시가 이 함수 하나를 쓴다. `String.length`(UTF-16)로 세면 이모지가 2자로 세어 판정이 갈린다.
|
|
3169
|
+
*/
|
|
3170
|
+
declare function customInputLength(value: string): number;
|
|
3171
|
+
/** 담기·바로 구매 요청의 직접 입력값 한 칸. 앞뒤 공백을 지우고, 빈 값은 입력하지 않은 것으로 본다 */
|
|
3172
|
+
declare const customInputEntrySchema: z.ZodObject<{
|
|
3173
|
+
inputId: z.ZodString;
|
|
3174
|
+
value: z.ZodString;
|
|
3175
|
+
}, z.core.$strip>;
|
|
3176
|
+
type CustomInputEntry = z.infer<typeof customInputEntrySchema>;
|
|
3177
|
+
/** 고른 추가 선택 한 칸 — 옵션명(`groupId`)과 그 옵션명의 값(`valueId`) */
|
|
3178
|
+
declare const addonSelectionSchema: z.ZodObject<{
|
|
3179
|
+
groupId: z.ZodString;
|
|
3180
|
+
valueId: z.ZodString;
|
|
3181
|
+
}, z.core.$strip>;
|
|
3182
|
+
type AddonSelection = z.infer<typeof addonSelectionSchema>;
|
|
3183
|
+
/** 요청의 추가 선택·직접 입력 필드 — 담기·장바구니 수정·바로 구매가 같은 이름을 쓴다 */
|
|
3184
|
+
declare const lineSelectionRequestShape: {
|
|
3185
|
+
addons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3186
|
+
groupId: z.ZodString;
|
|
3187
|
+
valueId: z.ZodString;
|
|
3188
|
+
}, z.core.$strip>>>;
|
|
3189
|
+
customInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3190
|
+
inputId: z.ZodString;
|
|
3191
|
+
value: z.ZodString;
|
|
3192
|
+
}, z.core.$strip>>>;
|
|
3193
|
+
};
|
|
3194
|
+
/** 줄의 옵션 선택 스냅샷 한 칸 — 조합 옵션은 옵션명마다 한 칸이고 추가금이 0이다(조합 추가금은 단가에 들어 있다) */
|
|
3195
|
+
declare const optionSelectionViewSchema: z.ZodObject<{
|
|
3196
|
+
kind: z.ZodString;
|
|
3197
|
+
groupName: z.ZodString;
|
|
3198
|
+
valueName: z.ZodString;
|
|
3199
|
+
additionalPrice: z.ZodNumber;
|
|
3200
|
+
}, z.core.$strip>;
|
|
3201
|
+
type OptionSelectionView = z.infer<typeof optionSelectionViewSchema>;
|
|
3202
|
+
declare const customInputValueViewSchema: z.ZodObject<{
|
|
3203
|
+
label: z.ZodString;
|
|
3204
|
+
value: z.ZodString;
|
|
3205
|
+
}, z.core.$strip>;
|
|
3206
|
+
type CustomInputValueView = z.infer<typeof customInputValueViewSchema>;
|
|
3207
|
+
/** 응답 줄의 표시 필드 — 장바구니·주문서·주문상품이 같은 이름을 쓴다 */
|
|
3208
|
+
declare const lineSelectionResponseShape: {
|
|
3209
|
+
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3210
|
+
kind: z.ZodString;
|
|
3211
|
+
groupName: z.ZodString;
|
|
3212
|
+
valueName: z.ZodString;
|
|
3213
|
+
additionalPrice: z.ZodNumber;
|
|
3214
|
+
}, z.core.$strip>>>>;
|
|
3215
|
+
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3216
|
+
label: z.ZodString;
|
|
3217
|
+
value: z.ZodString;
|
|
3218
|
+
}, z.core.$strip>>>>;
|
|
3219
|
+
};
|
|
3220
|
+
//#endregion
|
|
3342
3221
|
//#region src/schemas/store.d.ts
|
|
3343
3222
|
/**
|
|
3344
3223
|
* 스토어 공개 설정 — `GET /store`. 스토어프론트가 화면을 그릴 때 읽는 값만 담는다.
|
|
@@ -3359,4 +3238,4 @@ declare const storefrontStoreSchema: z.ZodObject<{
|
|
|
3359
3238
|
}, z.core.$strip>;
|
|
3360
3239
|
type StorefrontStore = z.infer<typeof storefrontStoreSchema>;
|
|
3361
3240
|
//#endregion
|
|
3362
|
-
export {
|
|
3241
|
+
export { CreateReviewRequest as $, cashReceiptAvailable as $n, productCardFulfillmentSchema as $r, myCouponSchema as $t, ANALYTICS_MAX_BATCH_BYTES as A, CheckoutDelivery as An, ProductSearchParams as Ar, publicInquirySchema as At, analyticsBatchSchema as B, PAYMENT_STATUS_VALUES as Bn, PageInfo as Br, CouponApplication as Bt, PurchaseDecisionResult as C, createClaimResultSchema as Cn, shippingAddressInputSchema as Cr, updateProfileRequestSchema as Ct, orderShippingAddressSchema as D, CashReceiptIdentityType as Dn, ProductDetail as Dr, PublicInquiry as Dt, myOrderSchema as E, CASH_RECEIPT_METHODS as En, ProductCard as Er, CreateInquiryResult as Et, AnalyticsBatch as F, EasyPayProvider as Fn, productFacetsSchema as Fr, customerInquiryCategorySchema as Ft, StorefrontClient as G, PaymentStart as Gn, pageSchema as Gr, applicableCouponSchema as Gt, analyticsClientEventSchema as H, PaymentMessage as Hn, claimStatusSchema as Hr, MAX_COUPONS_PER_CHECKOUT as Ht, AnalyticsClientEvent as I, GuestInfo as In, productPageSchema as Ir, customerInquirySchema as It, STOREFRONT_SESSION_KEYS as J, RemoteArea as Jn, ProductCardFulfillment as Jr, couponApplicationListSchema as Jt, StorefrontClientOptions as K, PaymentStatus as Kn, LineFulfillment as Kr, checkoutPricingRequestSchema as Kt, AnalyticsClientEventName as L, KnownPaymentResult as Ln, productSortSchema as Lr, ApplicableCoupon as Lt, ANALYTICS_SESSION_HEADER as M, CreateCheckoutRequest as Mn, categoryNodeSchema as Mr, CustomerInquiry as Mt, ANALYTICS_VISITOR_COOKIE as N, DeliveryQuoteRequest as Nn, productCardSchema as Nr, CustomerInquiryCategory as Nt, purchaseDecisionResultSchema as O, CashReceiptRequest as On, ProductFacets as Or, createInquiryRequestSchema as Ot, ANALYTICS_VISITOR_HEADER as P, DeliveryQuoteResult as Pn, productDetailSchema as Pr, createCustomerInquiryRequestSchema as Pt, createStorefrontSession as Q, availablePaymentOptionSchema as Qn, myOrderItemFulfillmentSnapshotSchema as Qr, myCouponListQuerySchema as Qt, AnalyticsEventName as R, KnownPaymentStatus as Rn, ClaimStatus as Rr, CheckoutPricing as Rt, OrderShippingAddress as S, createClaimRequestSchema as Sn, retryPaymentRequestSchema as Sr, memberSchema as St, myOrderItemSchema as T, AvailablePaymentOption as Tn, CategoryNode as Tr, CreateInquiryRequest as Tt, analyticsIdSchema as U, PaymentMethod as Un, orderItemStatusSchema as Ur, MIN_PAYMENT_AMOUNT as Ut, analyticsClientEventNameSchema as V, PaymentFailureCategory as Vn, PageParams as Vr, CouponResult as Vt, analyticsServerEventNameSchema as W, PaymentOption as Wn, pageInfoSchema as Wr, MyCoupon as Wt, StorefrontSession as X, ShippingAddressInput as Xn, UnknownFulfillmentView as Xr, couponBenefitViewSchema as Xt, SessionStorage as Y, RetryPaymentRequest as Yn, ProductFulfillmentView as Yr, couponApplicationSchema as Yt, StorefrontSessionOptions as Z, StartPaymentRequest as Zn, lineFulfillmentSchema as Zr, couponResultSchema as Zt, normalizeCustomInputValue as _, CreateClaimResult as _n, paymentStartSchema as _r, MemberAddressRequest as _t, CustomInputEntry as a, addCartItemRequestSchema as ai, ConsentUpdateRequest as an, createCheckoutRequestSchema as ar, UpdateReviewResult as at, MyOrder as b, claimReturnAddressSchema as bn, remoteAreaSchema as br, memberAddressRequestSchema as bt, OptionSelectionView as c, updateCartItemRequestSchema as ci, consentKindSchema as cn, easyPayProviderResponseSchema as cr, createReviewResultSchema as ct, customInputEntrySchema as d, consentUpdateRequestSchema as dn, paymentFailureCategorySchema as dr, reviewSummarySchema as dt, productFulfillmentViewSchema as ei, pricingAmountsSchema as en, cashReceiptIdentityTypeOf as er, CreateReviewResult as et, customInputLength as f, memberConsentsSchema as fn, paymentMessageSchema as fr, updateReviewRequestSchema as ft, lineSelectionResponseShape as g, CreateClaimRequest as gn, paymentOptionSchema as gr, MemberAddress as gt, lineSelectionRequestShape as h, ClaimType as hn, paymentOptionListSchema as hr, Member as ht, AddonSelection as i, UpdateCartItemRequest as ii, ConsentState as in, checkoutSessionSchema as ir, UpdateReviewRequest as it, ANALYTICS_SESSION_COOKIE as j, CheckoutSession as jn, ProductSort as jr, CreateCustomerInquiryRequest as jt, trackingStageResponseSchema as k, CashReceiptType as kn, ProductPage as kr, createInquiryResultSchema as kt, addonGroupViewSchema as l, analyticsIdsFromCookie as li, consentSourceSchema as ln, easyPayProviderSchema as lr, publicReviewSchema as lt, customInputViewSchema as m, ClaimReturnAddress as mn, paymentOptionKey as mr, writableReviewSchema as mt, storefrontStoreSchema as n, Cart as ni, ConsentKind as nn, cashReceiptTypeSchema as nr, ReviewPage as nt, CustomInputValueView as o, cartItemSchema as oi, MemberConsents as on, deliveryQuoteRequestSchema as or, WritableReview as ot, customInputValueViewSchema as p, ClaimReason as pn, paymentMethodSchema as pr, updateReviewResultSchema as pt, createStorefrontClient as q, PgProvider as qn, MyOrderItemFulfillmentSnapshot as qr, checkoutPricingSchema as qt, AddonGroupView as r, CartItem as ri, ConsentSource as rn, checkoutDeliverySchema as rr, ReviewSummary as rt, CustomInputView as s, cartSchema as si, consentActionSchema as sn, deliveryQuoteSchema as sr, createReviewRequestSchema as st, StorefrontStore as t, AddCartItemRequest as ti, ConsentAction as tn, cashReceiptRequestSchema as tr, PublicReview as tt, addonSelectionSchema as u, consentStateSchema as un, guestInfoSchema as ur, reviewPageSchema as ut, optionSelectionViewSchema as v, MyClaim as vn, paymentStatusSchema as vr, UpdateProfileRequest as vt, deliveryTrackingSchema as w, myClaimSchema as wn, startPaymentRequestSchema as wr, wishlistAddResultSchema as wt, MyOrderItem as x, claimTypeSchema as xn, residentNumberLike as xr, memberAddressSchema as xt, DeliveryTracking as y, claimReasonSchema as yn, pgProviderSchema as yr, WishlistAddResult as yt, AnalyticsServerEventName as z, PAYMENT_RESULT_VALUES as zn, OrderItemStatus as zr, CheckoutPricingRequest as zt };
|