@sayren/storefront-sdk 0.20.7 → 0.20.8
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-Bt6j2eDw.mjs → checkout-BjJ4Efbn.mjs} +98 -10
- package/dist/{client-Dn_JdIqv.mjs → client-S_gOAeBM.mjs} +91 -5
- package/dist/{index-atHaDBC3.d.mts → index-Bv49jTFH.d.mts} +760 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/payments/index.d.mts +1 -1
- package/dist/payments/index.mjs +1 -1
- package/package.json +1 -1
- package/src/client.ts +49 -0
- package/src/index.ts +2 -0
- package/src/schemas/catalog.ts +10 -0
- package/src/schemas/checkout.ts +12 -0
- package/src/schemas/commerce-flow.ts +88 -0
- package/src/schemas/fulfillment.ts +53 -3
- package/src/schemas/order.ts +10 -0
- package/src/schemas/product-options.ts +72 -2
- package/src/schemas/stay.ts +32 -0
|
@@ -23,6 +23,7 @@ declare const cartItemSchema: z.ZodObject<{
|
|
|
23
23
|
fulfillment: z.ZodObject<{
|
|
24
24
|
type: z.ZodString;
|
|
25
25
|
requiresShipping: z.ZodBoolean;
|
|
26
|
+
method: z.ZodOptional<z.ZodString>;
|
|
26
27
|
withdrawalRestricted: z.ZodOptional<z.ZodBoolean>;
|
|
27
28
|
}, z.core.$strip>;
|
|
28
29
|
purchasable: z.ZodBoolean;
|
|
@@ -40,7 +41,17 @@ declare const cartItemSchema: z.ZodObject<{
|
|
|
40
41
|
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
41
42
|
label: z.ZodString;
|
|
42
43
|
value: z.ZodString;
|
|
44
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
45
|
+
type: z.ZodOptional<z.ZodString>;
|
|
43
46
|
}, z.core.$strip>>>>;
|
|
47
|
+
stay: z.ZodOptional<z.ZodObject<{
|
|
48
|
+
checkIn: z.ZodString;
|
|
49
|
+
checkOut: z.ZodString;
|
|
50
|
+
nights: z.ZodArray<z.ZodObject<{
|
|
51
|
+
date: z.ZodString;
|
|
52
|
+
price: z.ZodNumber;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
44
55
|
cartItemId: z.ZodString;
|
|
45
56
|
productId: z.ZodString;
|
|
46
57
|
productNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -58,6 +69,7 @@ declare const cartSchema: z.ZodObject<{
|
|
|
58
69
|
fulfillment: z.ZodObject<{
|
|
59
70
|
type: z.ZodString;
|
|
60
71
|
requiresShipping: z.ZodBoolean;
|
|
72
|
+
method: z.ZodOptional<z.ZodString>;
|
|
61
73
|
withdrawalRestricted: z.ZodOptional<z.ZodBoolean>;
|
|
62
74
|
}, z.core.$strip>;
|
|
63
75
|
purchasable: z.ZodBoolean;
|
|
@@ -75,7 +87,17 @@ declare const cartSchema: z.ZodObject<{
|
|
|
75
87
|
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
76
88
|
label: z.ZodString;
|
|
77
89
|
value: z.ZodString;
|
|
90
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
type: z.ZodOptional<z.ZodString>;
|
|
78
92
|
}, z.core.$strip>>>>;
|
|
93
|
+
stay: z.ZodOptional<z.ZodObject<{
|
|
94
|
+
checkIn: z.ZodString;
|
|
95
|
+
checkOut: z.ZodString;
|
|
96
|
+
nights: z.ZodArray<z.ZodObject<{
|
|
97
|
+
date: z.ZodString;
|
|
98
|
+
price: z.ZodNumber;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
}, z.core.$strip>>;
|
|
79
101
|
cartItemId: z.ZodString;
|
|
80
102
|
productId: z.ZodString;
|
|
81
103
|
productNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
@@ -101,6 +123,10 @@ declare const addCartItemRequestSchema: z.ZodObject<{
|
|
|
101
123
|
inputId: z.ZodString;
|
|
102
124
|
value: z.ZodString;
|
|
103
125
|
}, z.core.$strip>>>;
|
|
126
|
+
stay: z.ZodOptional<z.ZodObject<{
|
|
127
|
+
checkIn: z.ZodString;
|
|
128
|
+
checkOut: z.ZodString;
|
|
129
|
+
}, z.core.$strip>>;
|
|
104
130
|
productId: z.ZodString;
|
|
105
131
|
optionId: z.ZodOptional<z.ZodString>;
|
|
106
132
|
quantity: z.ZodNumber;
|
|
@@ -146,9 +172,11 @@ declare const productFulfillmentViewSchema: z.ZodUnion<readonly [z.ZodDiscrimina
|
|
|
146
172
|
returnDeliveryFee: z.ZodNumber;
|
|
147
173
|
exchangeDeliveryFee: z.ZodNumber;
|
|
148
174
|
}, z.core.$strip>;
|
|
175
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
149
176
|
}, z.core.$strip>, z.ZodObject<{
|
|
150
177
|
type: z.ZodLiteral<"MANUAL">;
|
|
151
178
|
requiresShipping: z.ZodLiteral<false>;
|
|
179
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
152
180
|
}, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
|
|
153
181
|
type: z.ZodString;
|
|
154
182
|
requiresShipping: z.ZodBoolean;
|
|
@@ -162,9 +190,19 @@ type ProductFulfillmentView = z.infer<typeof productFulfillmentViewSchema>;
|
|
|
162
190
|
declare const lineFulfillmentSchema: z.ZodObject<{
|
|
163
191
|
type: z.ZodString;
|
|
164
192
|
requiresShipping: z.ZodBoolean;
|
|
193
|
+
method: z.ZodOptional<z.ZodString>;
|
|
165
194
|
withdrawalRestricted: z.ZodOptional<z.ZodBoolean>;
|
|
166
195
|
}, z.core.$strip>;
|
|
167
196
|
type LineFulfillment = z.infer<typeof lineFulfillmentSchema>;
|
|
197
|
+
/** 픽업 장소 — 방문 수령(`PICKUP`) 주문서에서 고른다 */
|
|
198
|
+
declare const pickupLocationViewSchema: z.ZodObject<{
|
|
199
|
+
locationId: z.ZodString;
|
|
200
|
+
name: z.ZodString;
|
|
201
|
+
address: z.ZodString;
|
|
202
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
203
|
+
hours: z.ZodNullable<z.ZodString>;
|
|
204
|
+
}, z.core.$strip>;
|
|
205
|
+
type PickupLocationView = z.infer<typeof pickupLocationViewSchema>;
|
|
168
206
|
/**
|
|
169
207
|
* 내 주문 주문상품의 주문 시점 이행 스냅샷. 상품을 나중에 고쳐도 바뀌지 않는다. 제공 기록(제공 시각·판매자 안내)은
|
|
170
208
|
* 주문상품의 `fulfillment`다.
|
|
@@ -172,9 +210,25 @@ type LineFulfillment = z.infer<typeof lineFulfillmentSchema>;
|
|
|
172
210
|
declare const myOrderItemFulfillmentSnapshotSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
173
211
|
type: z.ZodLiteral<"SHIPPING">;
|
|
174
212
|
requiresShipping: z.ZodLiteral<true>;
|
|
213
|
+
method: z.ZodOptional<z.ZodString>;
|
|
214
|
+
pickupLocation: z.ZodOptional<z.ZodObject<{
|
|
215
|
+
locationId: z.ZodString;
|
|
216
|
+
name: z.ZodString;
|
|
217
|
+
address: z.ZodString;
|
|
218
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
219
|
+
hours: z.ZodNullable<z.ZodString>;
|
|
220
|
+
}, z.core.$strip>>;
|
|
175
221
|
}, z.core.$strip>, z.ZodObject<{
|
|
176
222
|
type: z.ZodLiteral<"MANUAL">;
|
|
177
223
|
requiresShipping: z.ZodLiteral<false>;
|
|
224
|
+
method: z.ZodOptional<z.ZodString>;
|
|
225
|
+
pickupLocation: z.ZodOptional<z.ZodObject<{
|
|
226
|
+
locationId: z.ZodString;
|
|
227
|
+
name: z.ZodString;
|
|
228
|
+
address: z.ZodString;
|
|
229
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
230
|
+
hours: z.ZodNullable<z.ZodString>;
|
|
231
|
+
}, z.core.$strip>>;
|
|
178
232
|
}, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
|
|
179
233
|
type: z.ZodString;
|
|
180
234
|
requiresShipping: z.ZodBoolean;
|
|
@@ -285,6 +339,7 @@ declare const productDetailSchema: z.ZodObject<{
|
|
|
285
339
|
name: z.ZodString;
|
|
286
340
|
additionalPrice: z.ZodNumber;
|
|
287
341
|
soldOut: z.ZodBoolean;
|
|
342
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
288
343
|
}, z.core.$strip>>;
|
|
289
344
|
addonGroups: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
290
345
|
groupId: z.ZodString;
|
|
@@ -296,12 +351,16 @@ declare const productDetailSchema: z.ZodObject<{
|
|
|
296
351
|
additionalPrice: z.ZodNumber;
|
|
297
352
|
}, z.core.$strip>>;
|
|
298
353
|
}, z.core.$strip>>>>;
|
|
354
|
+
inventoryMode: z.ZodOptional<z.ZodString>;
|
|
299
355
|
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
300
356
|
inputId: z.ZodString;
|
|
301
357
|
label: z.ZodString;
|
|
302
358
|
placeholder: z.ZodNullable<z.ZodString>;
|
|
303
359
|
maxLength: z.ZodNumber;
|
|
304
360
|
required: z.ZodBoolean;
|
|
361
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
362
|
+
type: z.ZodOptional<z.ZodString>;
|
|
363
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
305
364
|
}, z.core.$strip>>>>;
|
|
306
365
|
fulfillment: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
307
366
|
type: z.ZodLiteral<"SHIPPING">;
|
|
@@ -314,9 +373,11 @@ declare const productDetailSchema: z.ZodObject<{
|
|
|
314
373
|
returnDeliveryFee: z.ZodNumber;
|
|
315
374
|
exchangeDeliveryFee: z.ZodNumber;
|
|
316
375
|
}, z.core.$strip>;
|
|
376
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
317
377
|
}, z.core.$strip>, z.ZodObject<{
|
|
318
378
|
type: z.ZodLiteral<"MANUAL">;
|
|
319
379
|
requiresShipping: z.ZodLiteral<false>;
|
|
380
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
320
381
|
}, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
|
|
321
382
|
type: z.ZodString;
|
|
322
383
|
requiresShipping: z.ZodBoolean;
|
|
@@ -504,10 +565,21 @@ declare const createCheckoutRequestSchema: z.ZodObject<{
|
|
|
504
565
|
inputId: z.ZodString;
|
|
505
566
|
value: z.ZodString;
|
|
506
567
|
}, z.core.$strip>>>;
|
|
568
|
+
stay: z.ZodOptional<z.ZodObject<{
|
|
569
|
+
checkIn: z.ZodString;
|
|
570
|
+
checkOut: z.ZodString;
|
|
571
|
+
}, z.core.$strip>>;
|
|
507
572
|
productId: z.ZodString;
|
|
508
573
|
optionId: z.ZodOptional<z.ZodString>;
|
|
509
574
|
quantity: z.ZodNumber;
|
|
510
575
|
}, z.core.$strip>>;
|
|
576
|
+
fulfillmentMethod: z.ZodOptional<z.ZodEnum<{
|
|
577
|
+
CARRIER: "CARRIER";
|
|
578
|
+
DIRECT: "DIRECT";
|
|
579
|
+
PICKUP: "PICKUP";
|
|
580
|
+
PROVIDED: "PROVIDED";
|
|
581
|
+
}>>;
|
|
582
|
+
pickupLocationId: z.ZodOptional<z.ZodString>;
|
|
511
583
|
}, z.core.$strip>;
|
|
512
584
|
type CreateCheckoutRequest = z.infer<typeof createCheckoutRequestSchema>;
|
|
513
585
|
/** 지역 추가 배송비 구분 — 우편번호로 판정한다 */
|
|
@@ -550,6 +622,7 @@ declare const checkoutSessionSchema: z.ZodObject<{
|
|
|
550
622
|
fulfillment: z.ZodObject<{
|
|
551
623
|
type: z.ZodString;
|
|
552
624
|
requiresShipping: z.ZodBoolean;
|
|
625
|
+
method: z.ZodOptional<z.ZodString>;
|
|
553
626
|
withdrawalRestricted: z.ZodOptional<z.ZodBoolean>;
|
|
554
627
|
}, z.core.$strip>;
|
|
555
628
|
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -561,7 +634,17 @@ declare const checkoutSessionSchema: z.ZodObject<{
|
|
|
561
634
|
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
562
635
|
label: z.ZodString;
|
|
563
636
|
value: z.ZodString;
|
|
637
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
638
|
+
type: z.ZodOptional<z.ZodString>;
|
|
564
639
|
}, z.core.$strip>>>>;
|
|
640
|
+
stay: z.ZodOptional<z.ZodObject<{
|
|
641
|
+
checkIn: z.ZodString;
|
|
642
|
+
checkOut: z.ZodString;
|
|
643
|
+
nights: z.ZodArray<z.ZodObject<{
|
|
644
|
+
date: z.ZodString;
|
|
645
|
+
price: z.ZodNumber;
|
|
646
|
+
}, z.core.$strip>>;
|
|
647
|
+
}, z.core.$strip>>;
|
|
565
648
|
lineId: z.ZodOptional<z.ZodString>;
|
|
566
649
|
productId: z.ZodString;
|
|
567
650
|
productName: z.ZodString;
|
|
@@ -2172,6 +2255,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2172
2255
|
name: string;
|
|
2173
2256
|
additionalPrice: number;
|
|
2174
2257
|
soldOut: boolean;
|
|
2258
|
+
attributes?: Record<string, string> | undefined;
|
|
2175
2259
|
}[];
|
|
2176
2260
|
addonGroups: {
|
|
2177
2261
|
groupId: string;
|
|
@@ -2189,6 +2273,9 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2189
2273
|
placeholder: string | null;
|
|
2190
2274
|
maxLength: number;
|
|
2191
2275
|
required: boolean;
|
|
2276
|
+
key?: string | null | undefined;
|
|
2277
|
+
type?: string | undefined;
|
|
2278
|
+
options?: string[] | null | undefined;
|
|
2192
2279
|
}[];
|
|
2193
2280
|
fulfillment: UnknownFulfillmentView | {
|
|
2194
2281
|
type: "SHIPPING";
|
|
@@ -2201,9 +2288,11 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2201
2288
|
returnDeliveryFee: number;
|
|
2202
2289
|
exchangeDeliveryFee: number;
|
|
2203
2290
|
};
|
|
2291
|
+
methods?: string[] | undefined;
|
|
2204
2292
|
} | {
|
|
2205
2293
|
type: "MANUAL";
|
|
2206
2294
|
requiresShipping: false;
|
|
2295
|
+
methods?: string[] | undefined;
|
|
2207
2296
|
};
|
|
2208
2297
|
returnPeriodDays: number;
|
|
2209
2298
|
purchasePoint: number | null;
|
|
@@ -2211,6 +2300,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2211
2300
|
categoryId: string;
|
|
2212
2301
|
name: string;
|
|
2213
2302
|
}[];
|
|
2303
|
+
inventoryMode?: string | undefined;
|
|
2214
2304
|
}>;
|
|
2215
2305
|
/** 상품 리뷰 목록 — `variantId`로 옵션(조합)별 리뷰만 받는다(상품 상세 `variants[].variantId`) */
|
|
2216
2306
|
listProductReviews: (productId: string, params?: ProductReviewParams) => Promise<{
|
|
@@ -2260,6 +2350,19 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2260
2350
|
category: "PRODUCT" | "DELIVERY" | "RETURN" | "EXCHANGE" | "ETC";
|
|
2261
2351
|
}[];
|
|
2262
2352
|
}>;
|
|
2353
|
+
/**
|
|
2354
|
+
* `GET /products/{productId}/calendar` — 날짜별 재고 상품(상세 `inventoryMode: "DATED"`, 이슈 #118)의 날마다 예약 가능 여부·가격.
|
|
2355
|
+
* 기간은 포함이고 최대 120일이다. `variantId`를 생략하면 기본 조합이다
|
|
2356
|
+
*/
|
|
2357
|
+
getProductCalendar: (productId: string, params: {
|
|
2358
|
+
from: string;
|
|
2359
|
+
to: string;
|
|
2360
|
+
variantId?: string;
|
|
2361
|
+
}) => Promise<{
|
|
2362
|
+
date: string;
|
|
2363
|
+
available: boolean;
|
|
2364
|
+
price: number;
|
|
2365
|
+
}[]>;
|
|
2263
2366
|
createInquiry: (productId: string, body: CreateInquiryRequest) => Promise<void>;
|
|
2264
2367
|
/** 노출 중인 컬렉션(노출 켜짐 + 기간 안) — 셀러가 정한 순서 */
|
|
2265
2368
|
listCollections: (params?: PageParams) => Promise<{
|
|
@@ -2354,6 +2457,16 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2354
2457
|
}[];
|
|
2355
2458
|
}>;
|
|
2356
2459
|
};
|
|
2460
|
+
/** `GET /pickup-locations` — 방문 수령 장소(이슈 #115). 주문서의 `pickupLocationId`로 고른다 */
|
|
2461
|
+
pickupLocations: {
|
|
2462
|
+
list: () => Promise<{
|
|
2463
|
+
locationId: string;
|
|
2464
|
+
name: string;
|
|
2465
|
+
address: string;
|
|
2466
|
+
phone: string | null;
|
|
2467
|
+
hours: string | null;
|
|
2468
|
+
}[]>;
|
|
2469
|
+
};
|
|
2357
2470
|
cart: {
|
|
2358
2471
|
get: () => Promise<{
|
|
2359
2472
|
items: {
|
|
@@ -2363,6 +2476,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2363
2476
|
fulfillment: {
|
|
2364
2477
|
type: string;
|
|
2365
2478
|
requiresShipping: boolean;
|
|
2479
|
+
method?: string | undefined;
|
|
2366
2480
|
withdrawalRestricted?: boolean | undefined;
|
|
2367
2481
|
};
|
|
2368
2482
|
purchasable: boolean;
|
|
@@ -2376,6 +2490,8 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2376
2490
|
customInputs: {
|
|
2377
2491
|
label: string;
|
|
2378
2492
|
value: string;
|
|
2493
|
+
key?: string | null | undefined;
|
|
2494
|
+
type?: string | undefined;
|
|
2379
2495
|
}[];
|
|
2380
2496
|
cartItemId: string;
|
|
2381
2497
|
productId: string;
|
|
@@ -2384,6 +2500,14 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2384
2500
|
thumbnailUrl: string | null;
|
|
2385
2501
|
optionId: string | null;
|
|
2386
2502
|
optionName: string | null;
|
|
2503
|
+
stay?: {
|
|
2504
|
+
checkIn: string;
|
|
2505
|
+
checkOut: string;
|
|
2506
|
+
nights: {
|
|
2507
|
+
date: string;
|
|
2508
|
+
price: number;
|
|
2509
|
+
}[];
|
|
2510
|
+
} | undefined;
|
|
2387
2511
|
}[];
|
|
2388
2512
|
summary: {
|
|
2389
2513
|
productAmount: number;
|
|
@@ -2400,6 +2524,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2400
2524
|
fulfillment: {
|
|
2401
2525
|
type: string;
|
|
2402
2526
|
requiresShipping: boolean;
|
|
2527
|
+
method?: string | undefined;
|
|
2403
2528
|
withdrawalRestricted?: boolean | undefined;
|
|
2404
2529
|
};
|
|
2405
2530
|
purchasable: boolean;
|
|
@@ -2413,6 +2538,8 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2413
2538
|
customInputs: {
|
|
2414
2539
|
label: string;
|
|
2415
2540
|
value: string;
|
|
2541
|
+
key?: string | null | undefined;
|
|
2542
|
+
type?: string | undefined;
|
|
2416
2543
|
}[];
|
|
2417
2544
|
cartItemId: string;
|
|
2418
2545
|
productId: string;
|
|
@@ -2421,6 +2548,14 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2421
2548
|
thumbnailUrl: string | null;
|
|
2422
2549
|
optionId: string | null;
|
|
2423
2550
|
optionName: string | null;
|
|
2551
|
+
stay?: {
|
|
2552
|
+
checkIn: string;
|
|
2553
|
+
checkOut: string;
|
|
2554
|
+
nights: {
|
|
2555
|
+
date: string;
|
|
2556
|
+
price: number;
|
|
2557
|
+
}[];
|
|
2558
|
+
} | undefined;
|
|
2424
2559
|
}[];
|
|
2425
2560
|
summary: {
|
|
2426
2561
|
productAmount: number;
|
|
@@ -2437,6 +2572,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2437
2572
|
fulfillment: {
|
|
2438
2573
|
type: string;
|
|
2439
2574
|
requiresShipping: boolean;
|
|
2575
|
+
method?: string | undefined;
|
|
2440
2576
|
withdrawalRestricted?: boolean | undefined;
|
|
2441
2577
|
};
|
|
2442
2578
|
purchasable: boolean;
|
|
@@ -2450,6 +2586,8 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2450
2586
|
customInputs: {
|
|
2451
2587
|
label: string;
|
|
2452
2588
|
value: string;
|
|
2589
|
+
key?: string | null | undefined;
|
|
2590
|
+
type?: string | undefined;
|
|
2453
2591
|
}[];
|
|
2454
2592
|
cartItemId: string;
|
|
2455
2593
|
productId: string;
|
|
@@ -2458,6 +2596,14 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2458
2596
|
thumbnailUrl: string | null;
|
|
2459
2597
|
optionId: string | null;
|
|
2460
2598
|
optionName: string | null;
|
|
2599
|
+
stay?: {
|
|
2600
|
+
checkIn: string;
|
|
2601
|
+
checkOut: string;
|
|
2602
|
+
nights: {
|
|
2603
|
+
date: string;
|
|
2604
|
+
price: number;
|
|
2605
|
+
}[];
|
|
2606
|
+
} | undefined;
|
|
2461
2607
|
}[];
|
|
2462
2608
|
summary: {
|
|
2463
2609
|
productAmount: number;
|
|
@@ -2478,6 +2624,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2478
2624
|
fulfillment: {
|
|
2479
2625
|
type: string;
|
|
2480
2626
|
requiresShipping: boolean;
|
|
2627
|
+
method?: string | undefined;
|
|
2481
2628
|
withdrawalRestricted?: boolean | undefined;
|
|
2482
2629
|
};
|
|
2483
2630
|
optionSelections: {
|
|
@@ -2489,11 +2636,21 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2489
2636
|
customInputs: {
|
|
2490
2637
|
label: string;
|
|
2491
2638
|
value: string;
|
|
2639
|
+
key?: string | null | undefined;
|
|
2640
|
+
type?: string | undefined;
|
|
2492
2641
|
}[];
|
|
2493
2642
|
productId: string;
|
|
2494
2643
|
productName: string;
|
|
2495
2644
|
optionId: string | null;
|
|
2496
2645
|
optionName: string | null;
|
|
2646
|
+
stay?: {
|
|
2647
|
+
checkIn: string;
|
|
2648
|
+
checkOut: string;
|
|
2649
|
+
nights: {
|
|
2650
|
+
date: string;
|
|
2651
|
+
price: number;
|
|
2652
|
+
}[];
|
|
2653
|
+
} | undefined;
|
|
2497
2654
|
lineId?: string | undefined;
|
|
2498
2655
|
thumbnailUrl?: string | null | undefined;
|
|
2499
2656
|
}[];
|
|
@@ -2794,9 +2951,25 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2794
2951
|
fulfillmentSnapshot: UnknownFulfillmentView | {
|
|
2795
2952
|
type: "SHIPPING";
|
|
2796
2953
|
requiresShipping: true;
|
|
2954
|
+
method?: string | undefined;
|
|
2955
|
+
pickupLocation?: {
|
|
2956
|
+
locationId: string;
|
|
2957
|
+
name: string;
|
|
2958
|
+
address: string;
|
|
2959
|
+
phone: string | null;
|
|
2960
|
+
hours: string | null;
|
|
2961
|
+
} | undefined;
|
|
2797
2962
|
} | {
|
|
2798
2963
|
type: "MANUAL";
|
|
2799
2964
|
requiresShipping: false;
|
|
2965
|
+
method?: string | undefined;
|
|
2966
|
+
pickupLocation?: {
|
|
2967
|
+
locationId: string;
|
|
2968
|
+
name: string;
|
|
2969
|
+
address: string;
|
|
2970
|
+
phone: string | null;
|
|
2971
|
+
hours: string | null;
|
|
2972
|
+
} | undefined;
|
|
2800
2973
|
};
|
|
2801
2974
|
fulfillment: {
|
|
2802
2975
|
status: string;
|
|
@@ -2815,6 +2988,8 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2815
2988
|
customInputs: {
|
|
2816
2989
|
label: string;
|
|
2817
2990
|
value: string;
|
|
2991
|
+
key?: string | null | undefined;
|
|
2992
|
+
type?: string | undefined;
|
|
2818
2993
|
}[];
|
|
2819
2994
|
orderItemId: string;
|
|
2820
2995
|
orderItemNo: string | null;
|
|
@@ -2822,6 +2997,47 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2822
2997
|
productName: string;
|
|
2823
2998
|
thumbnailUrl: string | null;
|
|
2824
2999
|
optionName: string | null;
|
|
3000
|
+
flowState?: {
|
|
3001
|
+
key: string;
|
|
3002
|
+
label: string;
|
|
3003
|
+
enteredAt: string;
|
|
3004
|
+
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3005
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3006
|
+
message?: string | undefined;
|
|
3007
|
+
deadlineAt?: string | undefined;
|
|
3008
|
+
attachments?: string[] | undefined;
|
|
3009
|
+
progress?: boolean | undefined;
|
|
3010
|
+
} | undefined;
|
|
3011
|
+
actions?: {
|
|
3012
|
+
key: string;
|
|
3013
|
+
label: string;
|
|
3014
|
+
mode: "INSTANT" | "REQUEST" | "VIEW";
|
|
3015
|
+
enabled: boolean;
|
|
3016
|
+
disabled?: {
|
|
3017
|
+
reason: string;
|
|
3018
|
+
message?: string | undefined;
|
|
3019
|
+
} | undefined;
|
|
3020
|
+
availableUntil?: string | undefined;
|
|
3021
|
+
subflow?: string | undefined;
|
|
3022
|
+
input?: {
|
|
3023
|
+
key: string;
|
|
3024
|
+
type: string;
|
|
3025
|
+
required: boolean;
|
|
3026
|
+
label: string;
|
|
3027
|
+
maxLength?: number | undefined;
|
|
3028
|
+
maxFiles?: number | undefined;
|
|
3029
|
+
options?: (string | number)[] | undefined;
|
|
3030
|
+
}[] | undefined;
|
|
3031
|
+
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3032
|
+
}[] | undefined;
|
|
3033
|
+
stay?: {
|
|
3034
|
+
checkIn: string;
|
|
3035
|
+
checkOut: string;
|
|
3036
|
+
nights: {
|
|
3037
|
+
date: string;
|
|
3038
|
+
price: number;
|
|
3039
|
+
}[];
|
|
3040
|
+
} | undefined;
|
|
2825
3041
|
}[];
|
|
2826
3042
|
requiresShipping: boolean;
|
|
2827
3043
|
shippingAddress: {
|
|
@@ -2867,9 +3083,25 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2867
3083
|
fulfillmentSnapshot: UnknownFulfillmentView | {
|
|
2868
3084
|
type: "SHIPPING";
|
|
2869
3085
|
requiresShipping: true;
|
|
3086
|
+
method?: string | undefined;
|
|
3087
|
+
pickupLocation?: {
|
|
3088
|
+
locationId: string;
|
|
3089
|
+
name: string;
|
|
3090
|
+
address: string;
|
|
3091
|
+
phone: string | null;
|
|
3092
|
+
hours: string | null;
|
|
3093
|
+
} | undefined;
|
|
2870
3094
|
} | {
|
|
2871
3095
|
type: "MANUAL";
|
|
2872
3096
|
requiresShipping: false;
|
|
3097
|
+
method?: string | undefined;
|
|
3098
|
+
pickupLocation?: {
|
|
3099
|
+
locationId: string;
|
|
3100
|
+
name: string;
|
|
3101
|
+
address: string;
|
|
3102
|
+
phone: string | null;
|
|
3103
|
+
hours: string | null;
|
|
3104
|
+
} | undefined;
|
|
2873
3105
|
};
|
|
2874
3106
|
fulfillment: {
|
|
2875
3107
|
status: string;
|
|
@@ -2888,6 +3120,8 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2888
3120
|
customInputs: {
|
|
2889
3121
|
label: string;
|
|
2890
3122
|
value: string;
|
|
3123
|
+
key?: string | null | undefined;
|
|
3124
|
+
type?: string | undefined;
|
|
2891
3125
|
}[];
|
|
2892
3126
|
orderItemId: string;
|
|
2893
3127
|
orderItemNo: string | null;
|
|
@@ -2895,6 +3129,47 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2895
3129
|
productName: string;
|
|
2896
3130
|
thumbnailUrl: string | null;
|
|
2897
3131
|
optionName: string | null;
|
|
3132
|
+
flowState?: {
|
|
3133
|
+
key: string;
|
|
3134
|
+
label: string;
|
|
3135
|
+
enteredAt: string;
|
|
3136
|
+
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3137
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3138
|
+
message?: string | undefined;
|
|
3139
|
+
deadlineAt?: string | undefined;
|
|
3140
|
+
attachments?: string[] | undefined;
|
|
3141
|
+
progress?: boolean | undefined;
|
|
3142
|
+
} | undefined;
|
|
3143
|
+
actions?: {
|
|
3144
|
+
key: string;
|
|
3145
|
+
label: string;
|
|
3146
|
+
mode: "INSTANT" | "REQUEST" | "VIEW";
|
|
3147
|
+
enabled: boolean;
|
|
3148
|
+
disabled?: {
|
|
3149
|
+
reason: string;
|
|
3150
|
+
message?: string | undefined;
|
|
3151
|
+
} | undefined;
|
|
3152
|
+
availableUntil?: string | undefined;
|
|
3153
|
+
subflow?: string | undefined;
|
|
3154
|
+
input?: {
|
|
3155
|
+
key: string;
|
|
3156
|
+
type: string;
|
|
3157
|
+
required: boolean;
|
|
3158
|
+
label: string;
|
|
3159
|
+
maxLength?: number | undefined;
|
|
3160
|
+
maxFiles?: number | undefined;
|
|
3161
|
+
options?: (string | number)[] | undefined;
|
|
3162
|
+
}[] | undefined;
|
|
3163
|
+
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3164
|
+
}[] | undefined;
|
|
3165
|
+
stay?: {
|
|
3166
|
+
checkIn: string;
|
|
3167
|
+
checkOut: string;
|
|
3168
|
+
nights: {
|
|
3169
|
+
date: string;
|
|
3170
|
+
price: number;
|
|
3171
|
+
}[];
|
|
3172
|
+
} | undefined;
|
|
2898
3173
|
}[];
|
|
2899
3174
|
requiresShipping: boolean;
|
|
2900
3175
|
shippingAddress: {
|
|
@@ -2951,9 +3226,25 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2951
3226
|
fulfillmentSnapshot: UnknownFulfillmentView | {
|
|
2952
3227
|
type: "SHIPPING";
|
|
2953
3228
|
requiresShipping: true;
|
|
3229
|
+
method?: string | undefined;
|
|
3230
|
+
pickupLocation?: {
|
|
3231
|
+
locationId: string;
|
|
3232
|
+
name: string;
|
|
3233
|
+
address: string;
|
|
3234
|
+
phone: string | null;
|
|
3235
|
+
hours: string | null;
|
|
3236
|
+
} | undefined;
|
|
2954
3237
|
} | {
|
|
2955
3238
|
type: "MANUAL";
|
|
2956
3239
|
requiresShipping: false;
|
|
3240
|
+
method?: string | undefined;
|
|
3241
|
+
pickupLocation?: {
|
|
3242
|
+
locationId: string;
|
|
3243
|
+
name: string;
|
|
3244
|
+
address: string;
|
|
3245
|
+
phone: string | null;
|
|
3246
|
+
hours: string | null;
|
|
3247
|
+
} | undefined;
|
|
2957
3248
|
};
|
|
2958
3249
|
fulfillment: {
|
|
2959
3250
|
status: string;
|
|
@@ -2972,6 +3263,8 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2972
3263
|
customInputs: {
|
|
2973
3264
|
label: string;
|
|
2974
3265
|
value: string;
|
|
3266
|
+
key?: string | null | undefined;
|
|
3267
|
+
type?: string | undefined;
|
|
2975
3268
|
}[];
|
|
2976
3269
|
orderItemId: string;
|
|
2977
3270
|
orderItemNo: string | null;
|
|
@@ -2979,6 +3272,47 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2979
3272
|
productName: string;
|
|
2980
3273
|
thumbnailUrl: string | null;
|
|
2981
3274
|
optionName: string | null;
|
|
3275
|
+
flowState?: {
|
|
3276
|
+
key: string;
|
|
3277
|
+
label: string;
|
|
3278
|
+
enteredAt: string;
|
|
3279
|
+
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3280
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3281
|
+
message?: string | undefined;
|
|
3282
|
+
deadlineAt?: string | undefined;
|
|
3283
|
+
attachments?: string[] | undefined;
|
|
3284
|
+
progress?: boolean | undefined;
|
|
3285
|
+
} | undefined;
|
|
3286
|
+
actions?: {
|
|
3287
|
+
key: string;
|
|
3288
|
+
label: string;
|
|
3289
|
+
mode: "INSTANT" | "REQUEST" | "VIEW";
|
|
3290
|
+
enabled: boolean;
|
|
3291
|
+
disabled?: {
|
|
3292
|
+
reason: string;
|
|
3293
|
+
message?: string | undefined;
|
|
3294
|
+
} | undefined;
|
|
3295
|
+
availableUntil?: string | undefined;
|
|
3296
|
+
subflow?: string | undefined;
|
|
3297
|
+
input?: {
|
|
3298
|
+
key: string;
|
|
3299
|
+
type: string;
|
|
3300
|
+
required: boolean;
|
|
3301
|
+
label: string;
|
|
3302
|
+
maxLength?: number | undefined;
|
|
3303
|
+
maxFiles?: number | undefined;
|
|
3304
|
+
options?: (string | number)[] | undefined;
|
|
3305
|
+
}[] | undefined;
|
|
3306
|
+
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3307
|
+
}[] | undefined;
|
|
3308
|
+
stay?: {
|
|
3309
|
+
checkIn: string;
|
|
3310
|
+
checkOut: string;
|
|
3311
|
+
nights: {
|
|
3312
|
+
date: string;
|
|
3313
|
+
price: number;
|
|
3314
|
+
}[];
|
|
3315
|
+
} | undefined;
|
|
2982
3316
|
}[];
|
|
2983
3317
|
requiresShipping: boolean;
|
|
2984
3318
|
shippingAddress: {
|
|
@@ -3023,6 +3357,97 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3023
3357
|
trackingCheckedAt: string | null;
|
|
3024
3358
|
}>;
|
|
3025
3359
|
decidePurchase: (orderItemId: string) => Promise<void>;
|
|
3360
|
+
/**
|
|
3361
|
+
* `POST /me/order-items/{id}/actions/{key}` — 주문상품 `actions`에 켜진 행동을 실행한다(#115, 시안 승인 등).
|
|
3362
|
+
* 응답의 `flowState`·`actions`로 화면을 바로 바꾼다. 에러: 409 `ACTION_NOT_AVAILABLE`(`details.reason`)
|
|
3363
|
+
*/
|
|
3364
|
+
act: (orderItemId: string, key: string, input?: Record<string, unknown>) => Promise<{
|
|
3365
|
+
status: "COMPLETED";
|
|
3366
|
+
flowState: {
|
|
3367
|
+
key: string;
|
|
3368
|
+
label: string;
|
|
3369
|
+
enteredAt: string;
|
|
3370
|
+
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3371
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3372
|
+
message?: string | undefined;
|
|
3373
|
+
deadlineAt?: string | undefined;
|
|
3374
|
+
attachments?: string[] | undefined;
|
|
3375
|
+
progress?: boolean | undefined;
|
|
3376
|
+
};
|
|
3377
|
+
actions: {
|
|
3378
|
+
key: string;
|
|
3379
|
+
label: string;
|
|
3380
|
+
mode: "INSTANT" | "REQUEST" | "VIEW";
|
|
3381
|
+
enabled: boolean;
|
|
3382
|
+
disabled?: {
|
|
3383
|
+
reason: string;
|
|
3384
|
+
message?: string | undefined;
|
|
3385
|
+
} | undefined;
|
|
3386
|
+
availableUntil?: string | undefined;
|
|
3387
|
+
subflow?: string | undefined;
|
|
3388
|
+
input?: {
|
|
3389
|
+
key: string;
|
|
3390
|
+
type: string;
|
|
3391
|
+
required: boolean;
|
|
3392
|
+
label: string;
|
|
3393
|
+
maxLength?: number | undefined;
|
|
3394
|
+
maxFiles?: number | undefined;
|
|
3395
|
+
options?: (string | number)[] | undefined;
|
|
3396
|
+
}[] | undefined;
|
|
3397
|
+
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3398
|
+
}[];
|
|
3399
|
+
affectedOrderItemIds: string[];
|
|
3400
|
+
claim?: {
|
|
3401
|
+
claimId: string;
|
|
3402
|
+
claimNo: string | null;
|
|
3403
|
+
} | undefined;
|
|
3404
|
+
}>;
|
|
3405
|
+
/** 비회원 행동 — 비회원 주문 조회와 같은 연락처·비밀번호 확인과 시도 한도를 지난다 */
|
|
3406
|
+
guestAct: (orderId: string, orderItemId: string, key: string, body: {
|
|
3407
|
+
phone: string;
|
|
3408
|
+
orderPassword: string;
|
|
3409
|
+
input?: Record<string, unknown>;
|
|
3410
|
+
}) => Promise<{
|
|
3411
|
+
status: "COMPLETED";
|
|
3412
|
+
flowState: {
|
|
3413
|
+
key: string;
|
|
3414
|
+
label: string;
|
|
3415
|
+
enteredAt: string;
|
|
3416
|
+
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3417
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3418
|
+
message?: string | undefined;
|
|
3419
|
+
deadlineAt?: string | undefined;
|
|
3420
|
+
attachments?: string[] | undefined;
|
|
3421
|
+
progress?: boolean | undefined;
|
|
3422
|
+
};
|
|
3423
|
+
actions: {
|
|
3424
|
+
key: string;
|
|
3425
|
+
label: string;
|
|
3426
|
+
mode: "INSTANT" | "REQUEST" | "VIEW";
|
|
3427
|
+
enabled: boolean;
|
|
3428
|
+
disabled?: {
|
|
3429
|
+
reason: string;
|
|
3430
|
+
message?: string | undefined;
|
|
3431
|
+
} | undefined;
|
|
3432
|
+
availableUntil?: string | undefined;
|
|
3433
|
+
subflow?: string | undefined;
|
|
3434
|
+
input?: {
|
|
3435
|
+
key: string;
|
|
3436
|
+
type: string;
|
|
3437
|
+
required: boolean;
|
|
3438
|
+
label: string;
|
|
3439
|
+
maxLength?: number | undefined;
|
|
3440
|
+
maxFiles?: number | undefined;
|
|
3441
|
+
options?: (string | number)[] | undefined;
|
|
3442
|
+
}[] | undefined;
|
|
3443
|
+
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3444
|
+
}[];
|
|
3445
|
+
affectedOrderItemIds: string[];
|
|
3446
|
+
claim?: {
|
|
3447
|
+
claimId: string;
|
|
3448
|
+
claimNo: string | null;
|
|
3449
|
+
} | undefined;
|
|
3450
|
+
}>;
|
|
3026
3451
|
};
|
|
3027
3452
|
myClaims: {
|
|
3028
3453
|
create: (orderItemId: string, body: CreateClaimRequest) => Promise<{
|
|
@@ -3499,6 +3924,139 @@ type AnalyticsBatch = z.infer<typeof analyticsBatchSchema>;
|
|
|
3499
3924
|
/** 배치 본문 상한(바이트) — 서버가 넘는 요청을 거부한다 */
|
|
3500
3925
|
declare const ANALYTICS_MAX_BATCH_BYTES: number;
|
|
3501
3926
|
//#endregion
|
|
3927
|
+
//#region src/schemas/commerce-flow.d.ts
|
|
3928
|
+
/**
|
|
3929
|
+
* 커머스 플로우(이슈 #115) — 구매자가 보는 주문상품의 지금 상태와 할 수 있는 행동. 화면은 이 값만 그리고 상태 이름(`key`)으로
|
|
3930
|
+
* 분기하지 않는다. 행동 키·필드 키·꺼진 이유는 열린 문자열이다(모르는 값도 파싱한다). 공개 상태(`coreStatus`)만 닫힌 값이다.
|
|
3931
|
+
*/
|
|
3932
|
+
declare const flowInputFieldSchema: z.ZodObject<{
|
|
3933
|
+
key: z.ZodString;
|
|
3934
|
+
type: z.ZodString;
|
|
3935
|
+
required: z.ZodBoolean;
|
|
3936
|
+
label: z.ZodString;
|
|
3937
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
3938
|
+
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
3939
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
3940
|
+
}, z.core.$strip>;
|
|
3941
|
+
type FlowInputField = z.infer<typeof flowInputFieldSchema>;
|
|
3942
|
+
declare const flowActionSchema: z.ZodObject<{
|
|
3943
|
+
key: z.ZodString;
|
|
3944
|
+
label: z.ZodString;
|
|
3945
|
+
mode: z.ZodEnum<{
|
|
3946
|
+
INSTANT: "INSTANT";
|
|
3947
|
+
REQUEST: "REQUEST";
|
|
3948
|
+
VIEW: "VIEW";
|
|
3949
|
+
}>;
|
|
3950
|
+
enabled: z.ZodBoolean;
|
|
3951
|
+
disabled: z.ZodOptional<z.ZodObject<{
|
|
3952
|
+
reason: z.ZodString;
|
|
3953
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3954
|
+
}, z.core.$strip>>;
|
|
3955
|
+
availableUntil: z.ZodOptional<z.ZodString>;
|
|
3956
|
+
subflow: z.ZodOptional<z.ZodString>;
|
|
3957
|
+
input: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3958
|
+
key: z.ZodString;
|
|
3959
|
+
type: z.ZodString;
|
|
3960
|
+
required: z.ZodBoolean;
|
|
3961
|
+
label: z.ZodString;
|
|
3962
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
3963
|
+
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
3964
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
3965
|
+
}, z.core.$strip>>>;
|
|
3966
|
+
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
3967
|
+
}, z.core.$strip>;
|
|
3968
|
+
type FlowAction = z.infer<typeof flowActionSchema>;
|
|
3969
|
+
/** 커스텀 필드 값 — 문자열(날짜·일시는 ISO 8601)·숫자·참거짓·null, 수량 단위 필드는 문자열 배열 */
|
|
3970
|
+
declare const flowFieldValueSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>;
|
|
3971
|
+
type FlowFieldValue = z.infer<typeof flowFieldValueSchema>;
|
|
3972
|
+
declare const flowStateSchema: z.ZodObject<{
|
|
3973
|
+
key: z.ZodString;
|
|
3974
|
+
label: z.ZodString;
|
|
3975
|
+
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
3976
|
+
CANCELED: "CANCELED";
|
|
3977
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
3978
|
+
PAID: "PAID";
|
|
3979
|
+
CONFIRMED: "CONFIRMED";
|
|
3980
|
+
DISPATCHED: "DISPATCHED";
|
|
3981
|
+
DELIVERING: "DELIVERING";
|
|
3982
|
+
DELIVERED: "DELIVERED";
|
|
3983
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
3984
|
+
}>>;
|
|
3985
|
+
message: z.ZodOptional<z.ZodString>;
|
|
3986
|
+
enteredAt: z.ZodString;
|
|
3987
|
+
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
3988
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3989
|
+
progress: z.ZodOptional<z.ZodBoolean>;
|
|
3990
|
+
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
3991
|
+
}, z.core.$strip>;
|
|
3992
|
+
type FlowState = z.infer<typeof flowStateSchema>;
|
|
3993
|
+
declare const flowActionRequestSchema: z.ZodObject<{
|
|
3994
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3995
|
+
}, z.core.$strip>;
|
|
3996
|
+
type FlowActionRequest = z.infer<typeof flowActionRequestSchema>;
|
|
3997
|
+
/** 비회원 행동 — 비회원 주문 조회와 같은 확인(연락처·주문 조회 비밀번호)을 함께 보낸다 */
|
|
3998
|
+
declare const guestFlowActionRequestSchema: z.ZodObject<{
|
|
3999
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4000
|
+
phone: z.ZodString;
|
|
4001
|
+
orderPassword: z.ZodString;
|
|
4002
|
+
}, z.core.$strip>;
|
|
4003
|
+
type GuestFlowActionRequest = z.infer<typeof guestFlowActionRequestSchema>;
|
|
4004
|
+
declare const flowActionResultSchema: z.ZodObject<{
|
|
4005
|
+
status: z.ZodLiteral<"COMPLETED">;
|
|
4006
|
+
flowState: z.ZodObject<{
|
|
4007
|
+
key: z.ZodString;
|
|
4008
|
+
label: z.ZodString;
|
|
4009
|
+
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
4010
|
+
CANCELED: "CANCELED";
|
|
4011
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4012
|
+
PAID: "PAID";
|
|
4013
|
+
CONFIRMED: "CONFIRMED";
|
|
4014
|
+
DISPATCHED: "DISPATCHED";
|
|
4015
|
+
DELIVERING: "DELIVERING";
|
|
4016
|
+
DELIVERED: "DELIVERED";
|
|
4017
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4018
|
+
}>>;
|
|
4019
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4020
|
+
enteredAt: z.ZodString;
|
|
4021
|
+
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4022
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4023
|
+
progress: z.ZodOptional<z.ZodBoolean>;
|
|
4024
|
+
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
4025
|
+
}, z.core.$strip>;
|
|
4026
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
4027
|
+
key: z.ZodString;
|
|
4028
|
+
label: z.ZodString;
|
|
4029
|
+
mode: z.ZodEnum<{
|
|
4030
|
+
INSTANT: "INSTANT";
|
|
4031
|
+
REQUEST: "REQUEST";
|
|
4032
|
+
VIEW: "VIEW";
|
|
4033
|
+
}>;
|
|
4034
|
+
enabled: z.ZodBoolean;
|
|
4035
|
+
disabled: z.ZodOptional<z.ZodObject<{
|
|
4036
|
+
reason: z.ZodString;
|
|
4037
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4038
|
+
}, z.core.$strip>>;
|
|
4039
|
+
availableUntil: z.ZodOptional<z.ZodString>;
|
|
4040
|
+
subflow: z.ZodOptional<z.ZodString>;
|
|
4041
|
+
input: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4042
|
+
key: z.ZodString;
|
|
4043
|
+
type: z.ZodString;
|
|
4044
|
+
required: z.ZodBoolean;
|
|
4045
|
+
label: z.ZodString;
|
|
4046
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4047
|
+
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4048
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
4049
|
+
}, z.core.$strip>>>;
|
|
4050
|
+
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4051
|
+
}, z.core.$strip>>;
|
|
4052
|
+
affectedOrderItemIds: z.ZodArray<z.ZodString>;
|
|
4053
|
+
claim: z.ZodOptional<z.ZodObject<{
|
|
4054
|
+
claimId: z.ZodString;
|
|
4055
|
+
claimNo: z.ZodNullable<z.ZodString>;
|
|
4056
|
+
}, z.core.$strip>>;
|
|
4057
|
+
}, z.core.$strip>;
|
|
4058
|
+
type FlowActionResult = z.infer<typeof flowActionResultSchema>;
|
|
4059
|
+
//#endregion
|
|
3502
4060
|
//#region src/schemas/commerce-number.d.ts
|
|
3503
4061
|
/**
|
|
3504
4062
|
* 국내 쇼핑몰 번호 체계(이슈 #107) — 공개 ID(`ord_…` 등)와 따로 싣는 숫자 번호의 표기·필드.
|
|
@@ -3536,9 +4094,25 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
3536
4094
|
fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3537
4095
|
type: z.ZodLiteral<"SHIPPING">;
|
|
3538
4096
|
requiresShipping: z.ZodLiteral<true>;
|
|
4097
|
+
method: z.ZodOptional<z.ZodString>;
|
|
4098
|
+
pickupLocation: z.ZodOptional<z.ZodObject<{
|
|
4099
|
+
locationId: z.ZodString;
|
|
4100
|
+
name: z.ZodString;
|
|
4101
|
+
address: z.ZodString;
|
|
4102
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
4103
|
+
hours: z.ZodNullable<z.ZodString>;
|
|
4104
|
+
}, z.core.$strip>>;
|
|
3539
4105
|
}, z.core.$strip>, z.ZodObject<{
|
|
3540
4106
|
type: z.ZodLiteral<"MANUAL">;
|
|
3541
4107
|
requiresShipping: z.ZodLiteral<false>;
|
|
4108
|
+
method: z.ZodOptional<z.ZodString>;
|
|
4109
|
+
pickupLocation: z.ZodOptional<z.ZodObject<{
|
|
4110
|
+
locationId: z.ZodString;
|
|
4111
|
+
name: z.ZodString;
|
|
4112
|
+
address: z.ZodString;
|
|
4113
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
4114
|
+
hours: z.ZodNullable<z.ZodString>;
|
|
4115
|
+
}, z.core.$strip>>;
|
|
3542
4116
|
}, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
|
|
3543
4117
|
type: z.ZodString;
|
|
3544
4118
|
requiresShipping: z.ZodBoolean;
|
|
@@ -3555,6 +4129,52 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
3555
4129
|
claimStatus: z.ZodNullable<z.ZodString>;
|
|
3556
4130
|
reviewWritten: z.ZodBoolean;
|
|
3557
4131
|
autoDecisionDate: z.ZodNullable<z.ZodString>;
|
|
4132
|
+
flowState: z.ZodOptional<z.ZodObject<{
|
|
4133
|
+
key: z.ZodString;
|
|
4134
|
+
label: z.ZodString;
|
|
4135
|
+
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
4136
|
+
CANCELED: "CANCELED";
|
|
4137
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4138
|
+
PAID: "PAID";
|
|
4139
|
+
CONFIRMED: "CONFIRMED";
|
|
4140
|
+
DISPATCHED: "DISPATCHED";
|
|
4141
|
+
DELIVERING: "DELIVERING";
|
|
4142
|
+
DELIVERED: "DELIVERED";
|
|
4143
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4144
|
+
}>>;
|
|
4145
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4146
|
+
enteredAt: z.ZodString;
|
|
4147
|
+
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4148
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4149
|
+
progress: z.ZodOptional<z.ZodBoolean>;
|
|
4150
|
+
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
4151
|
+
}, z.core.$strip>>;
|
|
4152
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4153
|
+
key: z.ZodString;
|
|
4154
|
+
label: z.ZodString;
|
|
4155
|
+
mode: z.ZodEnum<{
|
|
4156
|
+
INSTANT: "INSTANT";
|
|
4157
|
+
REQUEST: "REQUEST";
|
|
4158
|
+
VIEW: "VIEW";
|
|
4159
|
+
}>;
|
|
4160
|
+
enabled: z.ZodBoolean;
|
|
4161
|
+
disabled: z.ZodOptional<z.ZodObject<{
|
|
4162
|
+
reason: z.ZodString;
|
|
4163
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4164
|
+
}, z.core.$strip>>;
|
|
4165
|
+
availableUntil: z.ZodOptional<z.ZodString>;
|
|
4166
|
+
subflow: z.ZodOptional<z.ZodString>;
|
|
4167
|
+
input: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4168
|
+
key: z.ZodString;
|
|
4169
|
+
type: z.ZodString;
|
|
4170
|
+
required: z.ZodBoolean;
|
|
4171
|
+
label: z.ZodString;
|
|
4172
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4173
|
+
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4174
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
4175
|
+
}, z.core.$strip>>>;
|
|
4176
|
+
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4177
|
+
}, z.core.$strip>>>;
|
|
3558
4178
|
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3559
4179
|
kind: z.ZodString;
|
|
3560
4180
|
groupName: z.ZodString;
|
|
@@ -3564,7 +4184,17 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
3564
4184
|
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3565
4185
|
label: z.ZodString;
|
|
3566
4186
|
value: z.ZodString;
|
|
4187
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4188
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3567
4189
|
}, z.core.$strip>>>>;
|
|
4190
|
+
stay: z.ZodOptional<z.ZodObject<{
|
|
4191
|
+
checkIn: z.ZodString;
|
|
4192
|
+
checkOut: z.ZodString;
|
|
4193
|
+
nights: z.ZodArray<z.ZodObject<{
|
|
4194
|
+
date: z.ZodString;
|
|
4195
|
+
price: z.ZodNumber;
|
|
4196
|
+
}, z.core.$strip>>;
|
|
4197
|
+
}, z.core.$strip>>;
|
|
3568
4198
|
orderItemId: z.ZodString;
|
|
3569
4199
|
orderItemNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
3570
4200
|
productId: z.ZodString;
|
|
@@ -3611,9 +4241,25 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
3611
4241
|
fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3612
4242
|
type: z.ZodLiteral<"SHIPPING">;
|
|
3613
4243
|
requiresShipping: z.ZodLiteral<true>;
|
|
4244
|
+
method: z.ZodOptional<z.ZodString>;
|
|
4245
|
+
pickupLocation: z.ZodOptional<z.ZodObject<{
|
|
4246
|
+
locationId: z.ZodString;
|
|
4247
|
+
name: z.ZodString;
|
|
4248
|
+
address: z.ZodString;
|
|
4249
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
4250
|
+
hours: z.ZodNullable<z.ZodString>;
|
|
4251
|
+
}, z.core.$strip>>;
|
|
3614
4252
|
}, z.core.$strip>, z.ZodObject<{
|
|
3615
4253
|
type: z.ZodLiteral<"MANUAL">;
|
|
3616
4254
|
requiresShipping: z.ZodLiteral<false>;
|
|
4255
|
+
method: z.ZodOptional<z.ZodString>;
|
|
4256
|
+
pickupLocation: z.ZodOptional<z.ZodObject<{
|
|
4257
|
+
locationId: z.ZodString;
|
|
4258
|
+
name: z.ZodString;
|
|
4259
|
+
address: z.ZodString;
|
|
4260
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
4261
|
+
hours: z.ZodNullable<z.ZodString>;
|
|
4262
|
+
}, z.core.$strip>>;
|
|
3617
4263
|
}, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
|
|
3618
4264
|
type: z.ZodString;
|
|
3619
4265
|
requiresShipping: z.ZodBoolean;
|
|
@@ -3630,6 +4276,52 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
3630
4276
|
claimStatus: z.ZodNullable<z.ZodString>;
|
|
3631
4277
|
reviewWritten: z.ZodBoolean;
|
|
3632
4278
|
autoDecisionDate: z.ZodNullable<z.ZodString>;
|
|
4279
|
+
flowState: z.ZodOptional<z.ZodObject<{
|
|
4280
|
+
key: z.ZodString;
|
|
4281
|
+
label: z.ZodString;
|
|
4282
|
+
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
4283
|
+
CANCELED: "CANCELED";
|
|
4284
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4285
|
+
PAID: "PAID";
|
|
4286
|
+
CONFIRMED: "CONFIRMED";
|
|
4287
|
+
DISPATCHED: "DISPATCHED";
|
|
4288
|
+
DELIVERING: "DELIVERING";
|
|
4289
|
+
DELIVERED: "DELIVERED";
|
|
4290
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4291
|
+
}>>;
|
|
4292
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4293
|
+
enteredAt: z.ZodString;
|
|
4294
|
+
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4295
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4296
|
+
progress: z.ZodOptional<z.ZodBoolean>;
|
|
4297
|
+
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
4298
|
+
}, z.core.$strip>>;
|
|
4299
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4300
|
+
key: z.ZodString;
|
|
4301
|
+
label: z.ZodString;
|
|
4302
|
+
mode: z.ZodEnum<{
|
|
4303
|
+
INSTANT: "INSTANT";
|
|
4304
|
+
REQUEST: "REQUEST";
|
|
4305
|
+
VIEW: "VIEW";
|
|
4306
|
+
}>;
|
|
4307
|
+
enabled: z.ZodBoolean;
|
|
4308
|
+
disabled: z.ZodOptional<z.ZodObject<{
|
|
4309
|
+
reason: z.ZodString;
|
|
4310
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4311
|
+
}, z.core.$strip>>;
|
|
4312
|
+
availableUntil: z.ZodOptional<z.ZodString>;
|
|
4313
|
+
subflow: z.ZodOptional<z.ZodString>;
|
|
4314
|
+
input: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4315
|
+
key: z.ZodString;
|
|
4316
|
+
type: z.ZodString;
|
|
4317
|
+
required: z.ZodBoolean;
|
|
4318
|
+
label: z.ZodString;
|
|
4319
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4320
|
+
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4321
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
4322
|
+
}, z.core.$strip>>>;
|
|
4323
|
+
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4324
|
+
}, z.core.$strip>>>;
|
|
3633
4325
|
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3634
4326
|
kind: z.ZodString;
|
|
3635
4327
|
groupName: z.ZodString;
|
|
@@ -3639,7 +4331,17 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
3639
4331
|
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3640
4332
|
label: z.ZodString;
|
|
3641
4333
|
value: z.ZodString;
|
|
4334
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4335
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3642
4336
|
}, z.core.$strip>>>>;
|
|
4337
|
+
stay: z.ZodOptional<z.ZodObject<{
|
|
4338
|
+
checkIn: z.ZodString;
|
|
4339
|
+
checkOut: z.ZodString;
|
|
4340
|
+
nights: z.ZodArray<z.ZodObject<{
|
|
4341
|
+
date: z.ZodString;
|
|
4342
|
+
price: z.ZodNumber;
|
|
4343
|
+
}, z.core.$strip>>;
|
|
4344
|
+
}, z.core.$strip>>;
|
|
3643
4345
|
orderItemId: z.ZodString;
|
|
3644
4346
|
orderItemNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
3645
4347
|
productId: z.ZodString;
|
|
@@ -3790,8 +4492,16 @@ declare const customInputViewSchema: z.ZodObject<{
|
|
|
3790
4492
|
placeholder: z.ZodNullable<z.ZodString>;
|
|
3791
4493
|
maxLength: z.ZodNumber;
|
|
3792
4494
|
required: z.ZodBoolean;
|
|
4495
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4496
|
+
type: z.ZodOptional<z.ZodString>;
|
|
4497
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
3793
4498
|
}, z.core.$strip>;
|
|
3794
4499
|
type CustomInputView = z.infer<typeof customInputViewSchema>;
|
|
4500
|
+
/**
|
|
4501
|
+
* 직접 입력값을 타입대로 검사하고 저장할 모양으로 바꾼다(정규화 뒤 값). 서버 판정(400 `CUSTOM_INPUT_INVALID`)과 스토어프론트
|
|
4502
|
+
* 입력 검사가 이 함수 하나를 쓴다. 모르는 타입은 `text`로 본다. 맞지 않으면 null
|
|
4503
|
+
*/
|
|
4504
|
+
declare function parseCustomInputValue(type: string | null | undefined, options: readonly string[] | null | undefined, raw: string): string | null;
|
|
3795
4505
|
/**
|
|
3796
4506
|
* 직접 입력값 정규화 — NFC로 모으고, 제어 문자(C0·C1·줄바꿈·줄·문단 구분자)는 공백으로, 제로폭·양방향 제어 문자는 지운 뒤
|
|
3797
4507
|
* 앞뒤 공백을 지운다. 서버가 저장하는 값이 이것이다. 빈 문자열이면 입력하지 않은 것으로 본다.
|
|
@@ -3825,6 +4535,10 @@ declare const lineSelectionRequestShape: {
|
|
|
3825
4535
|
inputId: z.ZodString;
|
|
3826
4536
|
value: z.ZodString;
|
|
3827
4537
|
}, z.core.$strip>>>;
|
|
4538
|
+
stay: z.ZodOptional<z.ZodObject<{
|
|
4539
|
+
checkIn: z.ZodString;
|
|
4540
|
+
checkOut: z.ZodString;
|
|
4541
|
+
}, z.core.$strip>>;
|
|
3828
4542
|
};
|
|
3829
4543
|
/** 줄의 옵션 선택 스냅샷 한 칸 — 조합 옵션은 옵션명마다 한 칸이고 추가금이 0이다(조합 추가금은 단가에 들어 있다) */
|
|
3830
4544
|
declare const optionSelectionViewSchema: z.ZodObject<{
|
|
@@ -3837,6 +4551,8 @@ type OptionSelectionView = z.infer<typeof optionSelectionViewSchema>;
|
|
|
3837
4551
|
declare const customInputValueViewSchema: z.ZodObject<{
|
|
3838
4552
|
label: z.ZodString;
|
|
3839
4553
|
value: z.ZodString;
|
|
4554
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4555
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3840
4556
|
}, z.core.$strip>;
|
|
3841
4557
|
type CustomInputValueView = z.infer<typeof customInputValueViewSchema>;
|
|
3842
4558
|
/** 응답 줄의 표시 필드 — 장바구니·주문서·주문상품이 같은 이름을 쓴다 */
|
|
@@ -3850,8 +4566,51 @@ declare const lineSelectionResponseShape: {
|
|
|
3850
4566
|
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3851
4567
|
label: z.ZodString;
|
|
3852
4568
|
value: z.ZodString;
|
|
4569
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4570
|
+
type: z.ZodOptional<z.ZodString>;
|
|
3853
4571
|
}, z.core.$strip>>>>;
|
|
4572
|
+
stay: z.ZodOptional<z.ZodObject<{
|
|
4573
|
+
checkIn: z.ZodString;
|
|
4574
|
+
checkOut: z.ZodString;
|
|
4575
|
+
nights: z.ZodArray<z.ZodObject<{
|
|
4576
|
+
date: z.ZodString;
|
|
4577
|
+
price: z.ZodNumber;
|
|
4578
|
+
}, z.core.$strip>>;
|
|
4579
|
+
}, z.core.$strip>>;
|
|
3854
4580
|
};
|
|
4581
|
+
/** 주문 입력 이미지 업로드 자리 요청(#115 E4) — 파일명은 확장자만 쓰인다 */
|
|
4582
|
+
declare const orderInputUploadRequestSchema: z.ZodObject<{
|
|
4583
|
+
filename: z.ZodString;
|
|
4584
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
4585
|
+
}, z.core.$strip>;
|
|
4586
|
+
type OrderInputUploadRequest = z.infer<typeof orderInputUploadRequestSchema>;
|
|
4587
|
+
//#endregion
|
|
4588
|
+
//#region src/schemas/stay.d.ts
|
|
4589
|
+
/**
|
|
4590
|
+
* 숙박 기간·날짜별 달력(이슈 #118) — 날짜별 재고 상품(상품 상세 `inventoryMode: "DATED"`)은 담기·바로 구매에 기간을 함께 보내고,
|
|
4591
|
+
* 가격은 박마다 달력의 가격을 더한 값이다. 날짜는 한국 날짜 `YYYY-MM-DD`다.
|
|
4592
|
+
*/
|
|
4593
|
+
declare const stayRequestSchema: z.ZodObject<{
|
|
4594
|
+
checkIn: z.ZodString;
|
|
4595
|
+
checkOut: z.ZodString;
|
|
4596
|
+
}, z.core.$strip>;
|
|
4597
|
+
type StayRequest = z.infer<typeof stayRequestSchema>;
|
|
4598
|
+
declare const stayViewSchema: z.ZodObject<{
|
|
4599
|
+
checkIn: z.ZodString;
|
|
4600
|
+
checkOut: z.ZodString;
|
|
4601
|
+
nights: z.ZodArray<z.ZodObject<{
|
|
4602
|
+
date: z.ZodString;
|
|
4603
|
+
price: z.ZodNumber;
|
|
4604
|
+
}, z.core.$strip>>;
|
|
4605
|
+
}, z.core.$strip>;
|
|
4606
|
+
type StayView = z.infer<typeof stayViewSchema>;
|
|
4607
|
+
/** 구매자 달력 한 칸 — 재고 수는 보이지 않고 예약 가능 여부만 */
|
|
4608
|
+
declare const calendarDayViewSchema: z.ZodObject<{
|
|
4609
|
+
date: z.ZodString;
|
|
4610
|
+
available: z.ZodBoolean;
|
|
4611
|
+
price: z.ZodNumber;
|
|
4612
|
+
}, z.core.$strip>;
|
|
4613
|
+
type CalendarDayView = z.infer<typeof calendarDayViewSchema>;
|
|
3855
4614
|
//#endregion
|
|
3856
4615
|
//#region src/schemas/store.d.ts
|
|
3857
4616
|
/**
|
|
@@ -3890,4 +4649,4 @@ declare const storefrontStoreSchema: z.ZodObject<{
|
|
|
3890
4649
|
}, z.core.$strip>;
|
|
3891
4650
|
type StorefrontStore = z.infer<typeof storefrontStoreSchema>;
|
|
3892
4651
|
//#endregion
|
|
3893
|
-
export {
|
|
4652
|
+
export { FlowInputField as $, claimStatusSchema as $i, ConsentSource as $n, cashReceiptIdentityTypeOf as $r, reviewSummarySchema as $t, StorefrontPointPolicy as A, ProductDetail as Ai, CheckoutPricingRequest as An, DeliveryQuoteResult as Ar, StorefrontSessionOptions as At, deliveryTrackingSchema as B, collectionProductSortSchema as Bi, checkoutPricingSchema as Bn, PaymentMessage as Br, ReviewSummary as Bt, lineSelectionResponseShape as C, shippingAddressInputSchema as Ci, CustomerInquiry as Cn, CashReceiptIdentityType as Cr, analyticsServerEventNameSchema as Ct, parseCustomInputValue as D, CollectionProductParams as Di, customerInquirySchema as Dn, CheckoutSession as Dr, STOREFRONT_SESSION_KEYS as Dt, orderInputUploadRequestSchema as E, CollectionProductPage as Ei, customerInquiryCategorySchema as En, CheckoutDelivery as Er, createStorefrontClient as Et, DeliveryTracking as F, StorefrontCollection as Fi, MyCoupon as Fn, KnownPaymentStatus as Fr, ProductReviewParams as Ft, trackingStageResponseSchema as G, productSortSchema as Gi, myCouponListQuerySchema as Gn, PgProvider as Gr, createReviewRequestSchema as Gt, myOrderSchema as H, productDetailSchema as Hi, couponApplicationSchema as Hn, PaymentOption as Hr, UpdateReviewResult as Ht, MyOrder as I, StorefrontCollectionDetail as Ii, StorefrontCoupon as In, PAYMENT_RESULT_VALUES as Ir, ProductReviewSort as It, parseOrderNo as J, storefrontCollectionSchema as Ji, storefrontCouponListQuerySchema as Jn, RetryPaymentRequest as Jr, productReviewQuerySchema as Jt, commerceNumberField as K, storefrontCollectionDetailSchema as Ki, myCouponSchema as Kn, RemoteArea as Kr, createReviewResultSchema as Kt, MyOrderItem as L, categoryNodeSchema as Li, StorefrontCouponListParams as Ln, PAYMENT_START_STATUS_VALUES as Lr, PublicReview as Lt, memberPointEntrySchema as M, ProductPage as Mi, CouponResult as Mn, GuestInfo as Mr, CreateReviewRequest as Mt, memberPointsSchema as N, ProductSearchParams as Ni, MAX_COUPONS_PER_CHECKOUT as Nn, KnownPaymentResult as Nr, CreateReviewResult as Nt, MemberPointEntry as O, CollectionProductSortParam as Oi, ApplicableCoupon as On, CreateCheckoutRequest as Or, SessionStorage as Ot, storefrontPointPolicySchema as P, ProductSort as Pi, MIN_PAYMENT_AMOUNT as Pn, KnownPaymentStartStatus as Pr, MyReview as Pt, FlowFieldValue as Q, PageParams as Qi, ConsentKind as Qn, cashReceiptAvailable as Qr, reviewPageSchema as Qt, OrderShippingAddress as R, collectionProductPageSchema as Ri, applicableCouponSchema as Rn, PAYMENT_STATUS_VALUES as Rr, ReviewImageUploadRequest as Rt, lineSelectionRequestShape as S, analyticsIdsFromCookie as Sa, retryPaymentRequestSchema as Si, CreateCustomerInquiryRequest as Sn, CASH_RECEIPT_METHODS as Sr, analyticsIdSchema as St, optionSelectionViewSchema as T, CategoryNode as Ti, createCustomerInquiryRequestSchema as Tn, CashReceiptType as Tr, StorefrontClientOptions as Tt, orderShippingAddressSchema as U, productFacetsSchema as Ui, couponBenefitViewSchema as Un, PaymentStart as Ur, UploadTicket as Ut, myOrderItemSchema as V, productCardSchema as Vi, couponApplicationListSchema as Vn, PaymentMethod as Vr, UpdateReviewRequest as Vt, purchaseDecisionResultSchema as W, productPageSchema as Wi, couponResultSchema as Wn, PaymentStatus as Wr, WritableReview as Wt, FlowActionRequest as X, OrderItemStatus as Xi, storefrontCouponTargetSchema as Xn, StartPaymentRequest as Xr, publicReviewSchema as Xt, FlowAction as Y, ClaimStatus as Yi, storefrontCouponSchema as Yn, ShippingAddressInput as Yr, productReviewSortSchema as Yt, FlowActionResult as Z, PageInfo as Zi, ConsentAction as Zn, availablePaymentOptionSchema as Zr, reviewImageUploadRequestSchema as Zt, addonSelectionSchema as _, UpdateCartItemRequest as _a, paymentStatusSchema as _i, PublicInquiry as _n, claimTypeSchema as _r, AnalyticsEventName as _t, StayView as a, PickupLocationView as aa, deliveryQuoteRequestSchema as ai, MemberAddress as an, consentSourceSchema as ar, flowFieldValueSchema as at, customInputValueViewSchema as b, cartSchema as ba, residentNumberLike as bi, productInquiryCategorySchema as bn, myClaimSchema as br, analyticsClientEventNameSchema as bt, stayViewSchema as c, UnknownFulfillmentView as ca, easyPayProviderSchema as ci, WishlistAddResult as cn, memberConsentsSchema as cr, guestFlowActionRequestSchema as ct, CustomInputEntry as d, pickupLocationViewSchema as da, paymentMessageSchema as di, memberSchema as dn, ClaimType as dr, ANALYTICS_SESSION_HEADER as dt, orderItemStatusSchema as ea, cashReceiptRequestSchema as ei, updateReviewRequestSchema as en, ConsentState as er, FlowState as et, CustomInputValueView as f, productCardFulfillmentSchema as fa, paymentMethodSchema as fi, updateProfileRequestSchema as fn, CreateClaimRequest as fr, ANALYTICS_VISITOR_COOKIE as ft, addonGroupViewSchema as g, CartItem as ga, paymentStartSchema as gi, ProductInquiryCategory as gn, claimReturnAddressSchema as gr, AnalyticsClientEventName as gt, OrderInputUploadRequest as h, Cart as ha, paymentOptionSchema as hi, CreateInquiryResult as hn, claimReasonSchema as hr, AnalyticsClientEvent as ht, StayRequest as i, MyOrderItemFulfillmentSnapshot as ia, createCheckoutRequestSchema as ii, Member as in, consentKindSchema as ir, flowActionSchema as it, memberPointEntryPageSchema as j, ProductFacets as ji, CouponApplication as jn, EasyPayProvider as jr, createStorefrontSession as jt, MemberPoints as k, ProductCard as ki, CheckoutPricing as kn, DeliveryQuoteRequest as kr, StorefrontSession as kt, AddonGroupView as l, lineFulfillmentSchema as la, guestInfoSchema as li, memberAddressRequestSchema as ln, ClaimReason as lr, ANALYTICS_MAX_BATCH_BYTES as lt, OptionSelectionView as m, AddCartItemRequest as ma, paymentOptionListSchema as mi, CreateInquiryRequest as mn, MyClaim as mr, AnalyticsBatch as mt, storefrontStoreSchema as n, pageSchema as na, checkoutDeliverySchema as ni, uploadTicketSchema as nn, MemberConsents as nr, flowActionRequestSchema as nt, calendarDayViewSchema as o, ProductCardFulfillment as oa, deliveryQuoteSchema as oi, MemberAddressRequest as on, consentStateSchema as or, flowInputFieldSchema as ot, CustomInputView as p, productFulfillmentViewSchema as pa, paymentOptionKey as pi, wishlistAddResultSchema as pn, CreateClaimResult as pr, ANALYTICS_VISITOR_HEADER as pt, formatOrderNo as q, storefrontCollectionListQuerySchema as qi, pricingAmountsSchema as qn, ResponsePaymentMethod as qr, myReviewSchema as qt, CalendarDayView as r, LineFulfillment as ra, checkoutSessionSchema as ri, writableReviewSchema as rn, consentActionSchema as rr, flowActionResultSchema as rt, stayRequestSchema as s, ProductFulfillmentView as sa, easyPayProviderResponseSchema as si, UpdateProfileRequest as sn, consentUpdateRequestSchema as sr, flowStateSchema as st, StorefrontStore as t, pageInfoSchema as ta, cashReceiptTypeSchema as ti, updateReviewResultSchema as tn, ConsentUpdateRequest as tr, GuestFlowActionRequest as tt, AddonSelection as u, myOrderItemFulfillmentSnapshotSchema as ua, paymentFailureCategorySchema as ui, memberAddressSchema as un, ClaimReturnAddress as ur, ANALYTICS_SESSION_COOKIE as ut, customInputEntrySchema as v, addCartItemRequestSchema as va, pgProviderSchema as vi, createInquiryRequestSchema as vn, createClaimRequestSchema as vr, AnalyticsServerEventName as vt, normalizeCustomInputValue as w, startPaymentRequestSchema as wi, CustomerInquiryCategory as wn, CashReceiptRequest as wr, StorefrontClient as wt, customInputViewSchema as x, updateCartItemRequestSchema as xa, responsePaymentMethodSchema as xi, publicInquirySchema as xn, AvailablePaymentOption as xr, analyticsClientEventSchema as xt, customInputLength as y, cartItemSchema as ya, remoteAreaSchema as yi, createInquiryResultSchema as yn, createClaimResultSchema as yr, analyticsBatchSchema as yt, PurchaseDecisionResult as z, collectionProductQuerySchema as zi, checkoutPricingRequestSchema as zn, PaymentFailureCategory as zr, ReviewPage as zt };
|