@sayren/storefront-sdk 0.20.11 → 0.20.13
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/{client-TokSE7D9.mjs → client-OJc5DOIJ.mjs} +21 -1
- package/dist/{index-ilVVBQUs.d.mts → index-D4WBJ-rs.d.mts} +97 -32
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/payments/index.d.mts +1 -1
- package/package.json +1 -1
- package/src/client.ts +9 -0
- package/src/schemas/claim.ts +17 -0
- package/src/schemas/commerce-flow.ts +19 -0
package/dist/auth/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ut as ApiError, t as createStorefrontClient } from "../client-OJc5DOIJ.mjs";
|
|
2
2
|
//#region src/auth/index.ts
|
|
3
3
|
/** 소셜 로그인 실패 — 구매자가 취소했거나(`access_denied`) state가 맞지 않는다 */
|
|
4
4
|
var IdpCallbackError = class extends Error {
|
|
@@ -486,6 +486,15 @@ const createClaimResultSchema = z.object({
|
|
|
486
486
|
pointRefundAmount: z.number().int().optional().default(0).describe("돌려받을 적립금 예상액 (원, #93) — 결제에 쓴 적립금 중 이번 취소·반품 수량의 몫이다. 예상 환불액(현금)과 별개다. 차감은 현금에서 먼저 빼고 모자란 몫만 여기서 뺀다. 적립금을 쓰지 않은 주문은 0이다. 서버는 항상 싣는다")
|
|
487
487
|
});
|
|
488
488
|
/**
|
|
489
|
+
* 신청 전 미리보기(#115 G49) — 접수와 같은 판정·계산을 저장 없이 돌린다. 접수할 수 없으면 접수와 같은 오류(409 등)다.
|
|
490
|
+
* 금액은 지금 시점의 예상값이다(차감은 접수 시각의 흐름 식으로 다시 계산한다)
|
|
491
|
+
*/
|
|
492
|
+
const claimPreviewSchema = createClaimResultSchema.omit({
|
|
493
|
+
claimId: true,
|
|
494
|
+
claimNo: true,
|
|
495
|
+
status: true
|
|
496
|
+
}).extend({ deductAmount: z.number().int().describe("흐름이 정한 취소 수수료(체크인·관람일까지 남은 기간 등). 예상 환불액에서 이미 뺐다. 수수료가 없으면 0") });
|
|
497
|
+
/**
|
|
489
498
|
* 반품지 (이슈 #30) — 반품·교환 수거가 안내하는 주소다. 상점 주소록의 기본 반품지이거나,
|
|
490
499
|
* 상품이 반품지를 따로 지정했으면 그 주소다.
|
|
491
500
|
*
|
|
@@ -618,6 +627,15 @@ const orderStepSchema = z.object({
|
|
|
618
627
|
earlierAttachments: z.array(z.string()).optional().describe("앞 단계에서 올린 자료(수정 요청 뒤의 이전 시안 등)"),
|
|
619
628
|
inputs: flowStateSchema.shape.inputs,
|
|
620
629
|
actions: z.array(flowActionSchema).describe("이 단계에서 구매자가 할 행동(입력 칸 포함). `BUYER_ACTION`이면 하나 이상이다. 취소·반품 요청·구매확정은 `actions`(주문상품)에 있다"),
|
|
630
|
+
claimable: z.array(z.object({
|
|
631
|
+
action: z.enum([
|
|
632
|
+
"CANCEL",
|
|
633
|
+
"CANCEL_REQUEST",
|
|
634
|
+
"RETURN_REQUEST",
|
|
635
|
+
"EXCHANGE_REQUEST"
|
|
636
|
+
]).describe("CANCEL 바로 취소 · CANCEL_REQUEST 취소 요청(판매자 확인) · RETURN_REQUEST 반품 요청 · EXCHANGE_REQUEST 교환 요청"),
|
|
637
|
+
until: z.string().optional().describe("이 시각까지만 신청할 수 있다(ISO 8601). 없으면 이 단계 동안")
|
|
638
|
+
})).optional().default([]).describe("지금 신청할 수 있는 취소·반품·교환(#115) — 흐름 노드의 권한 표가 정한다. 화면은 이 목록으로 「지금 취소할 수 있습니다」 같은 안내를 그린다. 진행 중 클레임이 있으면 빈 목록"),
|
|
621
639
|
data: z.object({ delivery: z.object({
|
|
622
640
|
carrierName: z.string().nullable(),
|
|
623
641
|
trackingNumber: z.string().nullable(),
|
|
@@ -1314,6 +1332,8 @@ get: () => http.request("GET", "/store", storefrontStoreSchema) },
|
|
|
1314
1332
|
},
|
|
1315
1333
|
myClaims: {
|
|
1316
1334
|
create: (orderItemId, body) => http.request("POST", path`/me/order-items/${orderItemId}/claims`, createClaimResultSchema, { body: createClaimRequestSchema.parse(body) }),
|
|
1335
|
+
/** `POST /me/order-items/{id}/claims/preview` — 신청 전 예상 환불·차감. 접수하지 않는다(#115) */
|
|
1336
|
+
preview: (orderItemId, body) => http.request("POST", path`/me/order-items/${orderItemId}/claims/preview`, claimPreviewSchema, { body: createClaimRequestSchema.parse(body) }),
|
|
1317
1337
|
list: (params) => http.request("GET", "/me/claims", pageSchema(myClaimSchema), { query: params }),
|
|
1318
1338
|
withdraw: (claimId) => http.requestVoid("POST", path`/me/claims/${claimId}/withdraw`)
|
|
1319
1339
|
},
|
|
@@ -1370,4 +1390,4 @@ get: () => http.request("GET", "/store", storefrontStoreSchema) },
|
|
|
1370
1390
|
};
|
|
1371
1391
|
}
|
|
1372
1392
|
//#endregion
|
|
1373
|
-
export { orderStepSchema as $, wishlistAddResultSchema as A,
|
|
1393
|
+
export { orderStepSchema as $, wishlistAddResultSchema as A, anonymousSessionSchema as At, consentSourceSchema as B, tokenPairSchema as Bt, orderShippingAddressSchema as C, orderItemStatusSchema as Ct, memberAddressSchema as D, cartItemSchema as Dt, memberAddressRequestSchema as E, addCartItemRequestSchema as Et, createCustomerInquiryRequestSchema as F, linkIdentityRequestSchema as Ft, flowActionRequestSchema as G, toApiError as Gt, consentUpdateRequestSchema as H, withdrawalBlockedDetailsSchema as Ht, customerInquiryCategorySchema as I, loginRequestSchema as It, flowFieldValueSchema as J, flowActionResultSchema as K, unwrapData as Kt, customerInquirySchema as L, memberIdentitiesSchema as Lt, createInquiryResultSchema as M, idpAuthorizeRequestSchema as Mt, productInquiryCategorySchema as N, idpAuthorizeResponseSchema as Nt, memberSchema as O, cartSchema as Ot, publicInquirySchema as P, idpTokenRequestSchema as Pt, orderFlowActionResultSchema as Q, consentActionSchema as R, signupRequestSchema as Rt, myOrderSchema as S, claimStatusSchema as St, trackingStageResponseSchema as T, pageSchema as Tt, memberConsentsSchema as U, ApiError as Ut, consentStateSchema as V, withdrawRequestSchema as Vt, ORDER_STEP_TYPES as W, buildQuery as Wt, flowStateSchema as X, flowInputFieldSchema as Y, guestFlowActionRequestSchema as Z, memberPointEntrySchema as _, productPageSchema as _t, myReviewSchema as a, createClaimResultSchema as at, deliveryTrackingSchema as b, storefrontCollectionListQuerySchema as bt, publicReviewSchema as c, formatOrderNo as ct, reviewSummarySchema as d, collectionProductPageSchema as dt, claimPreviewSchema as et, updateReviewRequestSchema as f, collectionProductQuerySchema as ft, memberPointEntryPageSchema as g, productFacetsSchema as gt, writableReviewSchema as h, productDetailSchema as ht, createReviewResultSchema as i, createClaimRequestSchema as it, createInquiryRequestSchema as j, idpAgreementsSchema as jt, updateProfileRequestSchema as k, updateCartItemRequestSchema as kt, reviewImageUploadRequestSchema as l, parseOrderNo as lt, uploadTicketSchema as m, productCardSchema as mt, storefrontStoreSchema as n, claimReturnAddressSchema as nt, productReviewQuerySchema as o, myClaimSchema as ot, updateReviewResultSchema as p, collectionProductSortSchema as pt, flowActionSchema as q, createReviewRequestSchema as r, claimTypeSchema as rt, productReviewSortSchema as s, commerceNumberField as st, createStorefrontClient as t, claimReasonSchema as tt, reviewPageSchema as u, categoryNodeSchema as ut, memberPointsSchema as v, productSortSchema as vt, purchaseDecisionResultSchema as w, pageInfoSchema as wt, myOrderItemSchema as x, storefrontCollectionSchema as xt, storefrontPointPolicySchema as y, storefrontCollectionDetailSchema as yt, consentKindSchema as z, socialProviderSchema as zt };
|
|
@@ -259,7 +259,6 @@ interface PageParams {
|
|
|
259
259
|
size?: number;
|
|
260
260
|
}
|
|
261
261
|
declare const orderItemStatusSchema: z.ZodEnum<{
|
|
262
|
-
CANCELED: "CANCELED";
|
|
263
262
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
264
263
|
PAID: "PAID";
|
|
265
264
|
CONFIRMED: "CONFIRMED";
|
|
@@ -267,10 +266,10 @@ declare const orderItemStatusSchema: z.ZodEnum<{
|
|
|
267
266
|
DELIVERING: "DELIVERING";
|
|
268
267
|
DELIVERED: "DELIVERED";
|
|
269
268
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
269
|
+
CANCELED: "CANCELED";
|
|
270
270
|
}>;
|
|
271
271
|
type OrderItemStatus = z.infer<typeof orderItemStatusSchema>;
|
|
272
272
|
declare const claimStatusSchema: z.ZodEnum<{
|
|
273
|
-
COMPLETED: "COMPLETED";
|
|
274
273
|
REQUESTED: "REQUESTED";
|
|
275
274
|
HELD: "HELD";
|
|
276
275
|
COLLECTING: "COLLECTING";
|
|
@@ -278,6 +277,7 @@ declare const claimStatusSchema: z.ZodEnum<{
|
|
|
278
277
|
REDELIVERING: "REDELIVERING";
|
|
279
278
|
APPROVED: "APPROVED";
|
|
280
279
|
REJECTED: "REJECTED";
|
|
280
|
+
COMPLETED: "COMPLETED";
|
|
281
281
|
WITHDRAWN: "WITHDRAWN";
|
|
282
282
|
}>;
|
|
283
283
|
type ClaimStatus = z.infer<typeof claimStatusSchema>;
|
|
@@ -1307,6 +1307,21 @@ declare const createClaimResultSchema: z.ZodObject<{
|
|
|
1307
1307
|
pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1308
1308
|
}, z.core.$strip>;
|
|
1309
1309
|
type CreateClaimResult = z.infer<typeof createClaimResultSchema>;
|
|
1310
|
+
/**
|
|
1311
|
+
* 신청 전 미리보기(#115 G49) — 접수와 같은 판정·계산을 저장 없이 돌린다. 접수할 수 없으면 접수와 같은 오류(409 등)다.
|
|
1312
|
+
* 금액은 지금 시점의 예상값이다(차감은 접수 시각의 흐름 식으로 다시 계산한다)
|
|
1313
|
+
*/
|
|
1314
|
+
declare const claimPreviewSchema: z.ZodObject<{
|
|
1315
|
+
quantity: z.ZodNumber;
|
|
1316
|
+
expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
|
|
1317
|
+
claimDeliveryFee: z.ZodNumber;
|
|
1318
|
+
deliveryFeeRefundAmount: z.ZodNumber;
|
|
1319
|
+
couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1320
|
+
couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1321
|
+
pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1322
|
+
deductAmount: z.ZodNumber;
|
|
1323
|
+
}, z.core.$strip>;
|
|
1324
|
+
type ClaimPreview = z.infer<typeof claimPreviewSchema>;
|
|
1310
1325
|
/**
|
|
1311
1326
|
* 반품지 (이슈 #30) — 반품·교환 수거가 안내하는 주소다. 상점 주소록의 기본 반품지이거나,
|
|
1312
1327
|
* 상품이 반품지를 따로 지정했으면 그 주소다.
|
|
@@ -1332,7 +1347,6 @@ declare const myClaimSchema: z.ZodObject<{
|
|
|
1332
1347
|
CANCEL: "CANCEL";
|
|
1333
1348
|
}>;
|
|
1334
1349
|
status: z.ZodEnum<{
|
|
1335
|
-
COMPLETED: "COMPLETED";
|
|
1336
1350
|
REQUESTED: "REQUESTED";
|
|
1337
1351
|
HELD: "HELD";
|
|
1338
1352
|
COLLECTING: "COLLECTING";
|
|
@@ -1340,6 +1354,7 @@ declare const myClaimSchema: z.ZodObject<{
|
|
|
1340
1354
|
REDELIVERING: "REDELIVERING";
|
|
1341
1355
|
APPROVED: "APPROVED";
|
|
1342
1356
|
REJECTED: "REJECTED";
|
|
1357
|
+
COMPLETED: "COMPLETED";
|
|
1343
1358
|
WITHDRAWN: "WITHDRAWN";
|
|
1344
1359
|
}>;
|
|
1345
1360
|
orderItemId: z.ZodString;
|
|
@@ -1622,9 +1637,9 @@ declare const myCouponSchema: z.ZodObject<{
|
|
|
1622
1637
|
type MyCoupon = z.infer<typeof myCouponSchema>;
|
|
1623
1638
|
declare const myCouponListQuerySchema: z.ZodObject<{
|
|
1624
1639
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1625
|
-
expired: "expired";
|
|
1626
1640
|
available: "available";
|
|
1627
1641
|
used: "used";
|
|
1642
|
+
expired: "expired";
|
|
1628
1643
|
}>>;
|
|
1629
1644
|
}, z.core.$strip>;
|
|
1630
1645
|
/**
|
|
@@ -3073,7 +3088,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3073
3088
|
totalPrice: number;
|
|
3074
3089
|
couponDiscountAmount: number;
|
|
3075
3090
|
pointAllocation: number;
|
|
3076
|
-
status: "
|
|
3091
|
+
status: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED";
|
|
3077
3092
|
fulfillmentSnapshot: UnknownFulfillmentView | {
|
|
3078
3093
|
type: "SHIPPING";
|
|
3079
3094
|
requiresShipping: true;
|
|
@@ -3128,7 +3143,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3128
3143
|
label: string;
|
|
3129
3144
|
enteredAt: string;
|
|
3130
3145
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3131
|
-
coreStatus?: "
|
|
3146
|
+
coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
|
|
3132
3147
|
message?: string | undefined;
|
|
3133
3148
|
deadlineAt?: string | undefined;
|
|
3134
3149
|
attachments?: string[] | undefined;
|
|
@@ -3179,7 +3194,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3179
3194
|
label: string;
|
|
3180
3195
|
enteredAt: string;
|
|
3181
3196
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3182
|
-
coreStatus?: "
|
|
3197
|
+
coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
|
|
3183
3198
|
message?: string | undefined;
|
|
3184
3199
|
deadlineAt?: string | undefined;
|
|
3185
3200
|
attachments?: string[] | undefined;
|
|
@@ -3228,6 +3243,10 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3228
3243
|
}[] | undefined;
|
|
3229
3244
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3230
3245
|
}[];
|
|
3246
|
+
claimable: {
|
|
3247
|
+
action: "CANCEL" | "CANCEL_REQUEST" | "RETURN_REQUEST" | "EXCHANGE_REQUEST";
|
|
3248
|
+
until?: string | undefined;
|
|
3249
|
+
}[];
|
|
3231
3250
|
message?: string | undefined;
|
|
3232
3251
|
deadlineAt?: string | undefined;
|
|
3233
3252
|
attachments?: string[] | undefined;
|
|
@@ -3286,7 +3305,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3286
3305
|
receiptUrl: string | null;
|
|
3287
3306
|
};
|
|
3288
3307
|
testPayment: boolean;
|
|
3289
|
-
progressStatus?: "
|
|
3308
|
+
progressStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
|
|
3290
3309
|
}[];
|
|
3291
3310
|
}>;
|
|
3292
3311
|
get: (orderId: string) => Promise<{
|
|
@@ -3300,7 +3319,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3300
3319
|
totalPrice: number;
|
|
3301
3320
|
couponDiscountAmount: number;
|
|
3302
3321
|
pointAllocation: number;
|
|
3303
|
-
status: "
|
|
3322
|
+
status: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED";
|
|
3304
3323
|
fulfillmentSnapshot: UnknownFulfillmentView | {
|
|
3305
3324
|
type: "SHIPPING";
|
|
3306
3325
|
requiresShipping: true;
|
|
@@ -3355,7 +3374,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3355
3374
|
label: string;
|
|
3356
3375
|
enteredAt: string;
|
|
3357
3376
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3358
|
-
coreStatus?: "
|
|
3377
|
+
coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
|
|
3359
3378
|
message?: string | undefined;
|
|
3360
3379
|
deadlineAt?: string | undefined;
|
|
3361
3380
|
attachments?: string[] | undefined;
|
|
@@ -3406,7 +3425,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3406
3425
|
label: string;
|
|
3407
3426
|
enteredAt: string;
|
|
3408
3427
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3409
|
-
coreStatus?: "
|
|
3428
|
+
coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
|
|
3410
3429
|
message?: string | undefined;
|
|
3411
3430
|
deadlineAt?: string | undefined;
|
|
3412
3431
|
attachments?: string[] | undefined;
|
|
@@ -3455,6 +3474,10 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3455
3474
|
}[] | undefined;
|
|
3456
3475
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3457
3476
|
}[];
|
|
3477
|
+
claimable: {
|
|
3478
|
+
action: "CANCEL" | "CANCEL_REQUEST" | "RETURN_REQUEST" | "EXCHANGE_REQUEST";
|
|
3479
|
+
until?: string | undefined;
|
|
3480
|
+
}[];
|
|
3458
3481
|
message?: string | undefined;
|
|
3459
3482
|
deadlineAt?: string | undefined;
|
|
3460
3483
|
attachments?: string[] | undefined;
|
|
@@ -3513,7 +3536,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3513
3536
|
receiptUrl: string | null;
|
|
3514
3537
|
};
|
|
3515
3538
|
testPayment: boolean;
|
|
3516
|
-
progressStatus?: "
|
|
3539
|
+
progressStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
|
|
3517
3540
|
}>;
|
|
3518
3541
|
/**
|
|
3519
3542
|
* 비회원 주문 조회 — 주문 id(`ord_…`) 또는 숫자 주문번호(`orderNo`, 하이픈 허용, 이슈 #107) + 주문할 때 적은 연락처·주문 조회 비밀번호.
|
|
@@ -3538,7 +3561,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3538
3561
|
totalPrice: number;
|
|
3539
3562
|
couponDiscountAmount: number;
|
|
3540
3563
|
pointAllocation: number;
|
|
3541
|
-
status: "
|
|
3564
|
+
status: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED";
|
|
3542
3565
|
fulfillmentSnapshot: UnknownFulfillmentView | {
|
|
3543
3566
|
type: "SHIPPING";
|
|
3544
3567
|
requiresShipping: true;
|
|
@@ -3593,7 +3616,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3593
3616
|
label: string;
|
|
3594
3617
|
enteredAt: string;
|
|
3595
3618
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3596
|
-
coreStatus?: "
|
|
3619
|
+
coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
|
|
3597
3620
|
message?: string | undefined;
|
|
3598
3621
|
deadlineAt?: string | undefined;
|
|
3599
3622
|
attachments?: string[] | undefined;
|
|
@@ -3644,7 +3667,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3644
3667
|
label: string;
|
|
3645
3668
|
enteredAt: string;
|
|
3646
3669
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3647
|
-
coreStatus?: "
|
|
3670
|
+
coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
|
|
3648
3671
|
message?: string | undefined;
|
|
3649
3672
|
deadlineAt?: string | undefined;
|
|
3650
3673
|
attachments?: string[] | undefined;
|
|
@@ -3693,6 +3716,10 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3693
3716
|
}[] | undefined;
|
|
3694
3717
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3695
3718
|
}[];
|
|
3719
|
+
claimable: {
|
|
3720
|
+
action: "CANCEL" | "CANCEL_REQUEST" | "RETURN_REQUEST" | "EXCHANGE_REQUEST";
|
|
3721
|
+
until?: string | undefined;
|
|
3722
|
+
}[];
|
|
3696
3723
|
message?: string | undefined;
|
|
3697
3724
|
deadlineAt?: string | undefined;
|
|
3698
3725
|
attachments?: string[] | undefined;
|
|
@@ -3751,7 +3778,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3751
3778
|
receiptUrl: string | null;
|
|
3752
3779
|
};
|
|
3753
3780
|
testPayment: boolean;
|
|
3754
|
-
progressStatus?: "
|
|
3781
|
+
progressStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
|
|
3755
3782
|
}>;
|
|
3756
3783
|
getDelivery: (orderItemId: string) => Promise<{
|
|
3757
3784
|
carrierName: string;
|
|
@@ -3779,7 +3806,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3779
3806
|
label: string;
|
|
3780
3807
|
enteredAt: string;
|
|
3781
3808
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3782
|
-
coreStatus?: "
|
|
3809
|
+
coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
|
|
3783
3810
|
message?: string | undefined;
|
|
3784
3811
|
deadlineAt?: string | undefined;
|
|
3785
3812
|
attachments?: string[] | undefined;
|
|
@@ -3843,7 +3870,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3843
3870
|
label: string;
|
|
3844
3871
|
enteredAt: string;
|
|
3845
3872
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3846
|
-
coreStatus?: "
|
|
3873
|
+
coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED" | undefined;
|
|
3847
3874
|
message?: string | undefined;
|
|
3848
3875
|
deadlineAt?: string | undefined;
|
|
3849
3876
|
attachments?: string[] | undefined;
|
|
@@ -3904,7 +3931,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3904
3931
|
key: string;
|
|
3905
3932
|
results: {
|
|
3906
3933
|
orderItemId: string;
|
|
3907
|
-
status: "COMPLETED" | "
|
|
3934
|
+
status: "COMPLETED" | "SKIPPED" | "FAILED";
|
|
3908
3935
|
reason?: string | undefined;
|
|
3909
3936
|
message?: string | undefined;
|
|
3910
3937
|
}[];
|
|
@@ -3919,7 +3946,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3919
3946
|
key: string;
|
|
3920
3947
|
results: {
|
|
3921
3948
|
orderItemId: string;
|
|
3922
|
-
status: "COMPLETED" | "
|
|
3949
|
+
status: "COMPLETED" | "SKIPPED" | "FAILED";
|
|
3923
3950
|
reason?: string | undefined;
|
|
3924
3951
|
message?: string | undefined;
|
|
3925
3952
|
}[];
|
|
@@ -3938,6 +3965,17 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3938
3965
|
couponChargeRefundAmount: number;
|
|
3939
3966
|
pointRefundAmount: number;
|
|
3940
3967
|
}>;
|
|
3968
|
+
/** `POST /me/order-items/{id}/claims/preview` — 신청 전 예상 환불·차감. 접수하지 않는다(#115) */
|
|
3969
|
+
preview: (orderItemId: string, body: CreateClaimRequest) => Promise<{
|
|
3970
|
+
quantity: number;
|
|
3971
|
+
expectedRefundAmount: number | null;
|
|
3972
|
+
claimDeliveryFee: number;
|
|
3973
|
+
deliveryFeeRefundAmount: number;
|
|
3974
|
+
couponChargeAmount: number;
|
|
3975
|
+
couponChargeRefundAmount: number;
|
|
3976
|
+
pointRefundAmount: number;
|
|
3977
|
+
deductAmount: number;
|
|
3978
|
+
}>;
|
|
3941
3979
|
list: (params?: PageParams & {
|
|
3942
3980
|
status?: ClaimStatus;
|
|
3943
3981
|
}) => Promise<{
|
|
@@ -3949,7 +3987,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3949
3987
|
claimId: string;
|
|
3950
3988
|
claimNo: string | null;
|
|
3951
3989
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
3952
|
-
status: "
|
|
3990
|
+
status: "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "REJECTED" | "COMPLETED" | "WITHDRAWN";
|
|
3953
3991
|
orderItemId: string;
|
|
3954
3992
|
productName: string;
|
|
3955
3993
|
quantity: number;
|
|
@@ -4465,7 +4503,6 @@ declare const flowStateSchema: z.ZodObject<{
|
|
|
4465
4503
|
key: z.ZodString;
|
|
4466
4504
|
label: z.ZodString;
|
|
4467
4505
|
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
4468
|
-
CANCELED: "CANCELED";
|
|
4469
4506
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4470
4507
|
PAID: "PAID";
|
|
4471
4508
|
CONFIRMED: "CONFIRMED";
|
|
@@ -4473,6 +4510,7 @@ declare const flowStateSchema: z.ZodObject<{
|
|
|
4473
4510
|
DELIVERING: "DELIVERING";
|
|
4474
4511
|
DELIVERED: "DELIVERED";
|
|
4475
4512
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4513
|
+
CANCELED: "CANCELED";
|
|
4476
4514
|
}>>;
|
|
4477
4515
|
message: z.ZodOptional<z.ZodString>;
|
|
4478
4516
|
enteredAt: z.ZodString;
|
|
@@ -4547,6 +4585,15 @@ declare const orderStepSchema: z.ZodObject<{
|
|
|
4547
4585
|
}, z.core.$strip>>>;
|
|
4548
4586
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4549
4587
|
}, z.core.$strip>>;
|
|
4588
|
+
claimable: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4589
|
+
action: z.ZodEnum<{
|
|
4590
|
+
CANCEL: "CANCEL";
|
|
4591
|
+
CANCEL_REQUEST: "CANCEL_REQUEST";
|
|
4592
|
+
RETURN_REQUEST: "RETURN_REQUEST";
|
|
4593
|
+
EXCHANGE_REQUEST: "EXCHANGE_REQUEST";
|
|
4594
|
+
}>;
|
|
4595
|
+
until: z.ZodOptional<z.ZodString>;
|
|
4596
|
+
}, z.core.$strip>>>>;
|
|
4550
4597
|
data: z.ZodOptional<z.ZodObject<{
|
|
4551
4598
|
delivery: z.ZodOptional<z.ZodObject<{
|
|
4552
4599
|
carrierName: z.ZodNullable<z.ZodString>;
|
|
@@ -4574,7 +4621,6 @@ declare const flowActionResultSchema: z.ZodObject<{
|
|
|
4574
4621
|
key: z.ZodString;
|
|
4575
4622
|
label: z.ZodString;
|
|
4576
4623
|
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
4577
|
-
CANCELED: "CANCELED";
|
|
4578
4624
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4579
4625
|
PAID: "PAID";
|
|
4580
4626
|
CONFIRMED: "CONFIRMED";
|
|
@@ -4582,6 +4628,7 @@ declare const flowActionResultSchema: z.ZodObject<{
|
|
|
4582
4628
|
DELIVERING: "DELIVERING";
|
|
4583
4629
|
DELIVERED: "DELIVERED";
|
|
4584
4630
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4631
|
+
CANCELED: "CANCELED";
|
|
4585
4632
|
}>>;
|
|
4586
4633
|
message: z.ZodOptional<z.ZodString>;
|
|
4587
4634
|
enteredAt: z.ZodString;
|
|
@@ -4652,8 +4699,8 @@ declare const orderFlowActionResultSchema: z.ZodObject<{
|
|
|
4652
4699
|
orderItemId: z.ZodString;
|
|
4653
4700
|
status: z.ZodEnum<{
|
|
4654
4701
|
COMPLETED: "COMPLETED";
|
|
4655
|
-
FAILED: "FAILED";
|
|
4656
4702
|
SKIPPED: "SKIPPED";
|
|
4703
|
+
FAILED: "FAILED";
|
|
4657
4704
|
}>;
|
|
4658
4705
|
reason: z.ZodOptional<z.ZodString>;
|
|
4659
4706
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -4686,7 +4733,6 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4686
4733
|
couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
4687
4734
|
pointAllocation: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
4688
4735
|
status: z.ZodEnum<{
|
|
4689
|
-
CANCELED: "CANCELED";
|
|
4690
4736
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4691
4737
|
PAID: "PAID";
|
|
4692
4738
|
CONFIRMED: "CONFIRMED";
|
|
@@ -4694,6 +4740,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4694
4740
|
DELIVERING: "DELIVERING";
|
|
4695
4741
|
DELIVERED: "DELIVERED";
|
|
4696
4742
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4743
|
+
CANCELED: "CANCELED";
|
|
4697
4744
|
}>;
|
|
4698
4745
|
fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4699
4746
|
type: z.ZodLiteral<"SHIPPING">;
|
|
@@ -4737,7 +4784,6 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4737
4784
|
key: z.ZodString;
|
|
4738
4785
|
label: z.ZodString;
|
|
4739
4786
|
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
4740
|
-
CANCELED: "CANCELED";
|
|
4741
4787
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4742
4788
|
PAID: "PAID";
|
|
4743
4789
|
CONFIRMED: "CONFIRMED";
|
|
@@ -4745,6 +4791,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4745
4791
|
DELIVERING: "DELIVERING";
|
|
4746
4792
|
DELIVERED: "DELIVERED";
|
|
4747
4793
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4794
|
+
CANCELED: "CANCELED";
|
|
4748
4795
|
}>>;
|
|
4749
4796
|
message: z.ZodOptional<z.ZodString>;
|
|
4750
4797
|
enteredAt: z.ZodString;
|
|
@@ -4801,7 +4848,6 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4801
4848
|
key: z.ZodString;
|
|
4802
4849
|
label: z.ZodString;
|
|
4803
4850
|
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
4804
|
-
CANCELED: "CANCELED";
|
|
4805
4851
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4806
4852
|
PAID: "PAID";
|
|
4807
4853
|
CONFIRMED: "CONFIRMED";
|
|
@@ -4809,6 +4855,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4809
4855
|
DELIVERING: "DELIVERING";
|
|
4810
4856
|
DELIVERED: "DELIVERED";
|
|
4811
4857
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4858
|
+
CANCELED: "CANCELED";
|
|
4812
4859
|
}>>;
|
|
4813
4860
|
message: z.ZodOptional<z.ZodString>;
|
|
4814
4861
|
enteredAt: z.ZodString;
|
|
@@ -4877,6 +4924,15 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4877
4924
|
}, z.core.$strip>>>;
|
|
4878
4925
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4879
4926
|
}, z.core.$strip>>;
|
|
4927
|
+
claimable: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4928
|
+
action: z.ZodEnum<{
|
|
4929
|
+
CANCEL: "CANCEL";
|
|
4930
|
+
CANCEL_REQUEST: "CANCEL_REQUEST";
|
|
4931
|
+
RETURN_REQUEST: "RETURN_REQUEST";
|
|
4932
|
+
EXCHANGE_REQUEST: "EXCHANGE_REQUEST";
|
|
4933
|
+
}>;
|
|
4934
|
+
until: z.ZodOptional<z.ZodString>;
|
|
4935
|
+
}, z.core.$strip>>>>;
|
|
4880
4936
|
data: z.ZodOptional<z.ZodObject<{
|
|
4881
4937
|
delivery: z.ZodOptional<z.ZodObject<{
|
|
4882
4938
|
carrierName: z.ZodNullable<z.ZodString>;
|
|
@@ -4931,7 +4987,6 @@ type OrderShippingAddress = z.infer<typeof orderShippingAddressSchema>;
|
|
|
4931
4987
|
declare const myOrderSchema: z.ZodObject<{
|
|
4932
4988
|
orderId: z.ZodString;
|
|
4933
4989
|
progressStatus: z.ZodOptional<z.ZodEnum<{
|
|
4934
|
-
CANCELED: "CANCELED";
|
|
4935
4990
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4936
4991
|
PAID: "PAID";
|
|
4937
4992
|
CONFIRMED: "CONFIRMED";
|
|
@@ -4939,6 +4994,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
4939
4994
|
DELIVERING: "DELIVERING";
|
|
4940
4995
|
DELIVERED: "DELIVERED";
|
|
4941
4996
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4997
|
+
CANCELED: "CANCELED";
|
|
4942
4998
|
}>>;
|
|
4943
4999
|
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
4944
5000
|
orderedAt: z.ZodString;
|
|
@@ -4950,7 +5006,6 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
4950
5006
|
couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
4951
5007
|
pointAllocation: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
4952
5008
|
status: z.ZodEnum<{
|
|
4953
|
-
CANCELED: "CANCELED";
|
|
4954
5009
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4955
5010
|
PAID: "PAID";
|
|
4956
5011
|
CONFIRMED: "CONFIRMED";
|
|
@@ -4958,6 +5013,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
4958
5013
|
DELIVERING: "DELIVERING";
|
|
4959
5014
|
DELIVERED: "DELIVERED";
|
|
4960
5015
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
5016
|
+
CANCELED: "CANCELED";
|
|
4961
5017
|
}>;
|
|
4962
5018
|
fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4963
5019
|
type: z.ZodLiteral<"SHIPPING">;
|
|
@@ -5001,7 +5057,6 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5001
5057
|
key: z.ZodString;
|
|
5002
5058
|
label: z.ZodString;
|
|
5003
5059
|
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
5004
|
-
CANCELED: "CANCELED";
|
|
5005
5060
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
5006
5061
|
PAID: "PAID";
|
|
5007
5062
|
CONFIRMED: "CONFIRMED";
|
|
@@ -5009,6 +5064,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5009
5064
|
DELIVERING: "DELIVERING";
|
|
5010
5065
|
DELIVERED: "DELIVERED";
|
|
5011
5066
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
5067
|
+
CANCELED: "CANCELED";
|
|
5012
5068
|
}>>;
|
|
5013
5069
|
message: z.ZodOptional<z.ZodString>;
|
|
5014
5070
|
enteredAt: z.ZodString;
|
|
@@ -5065,7 +5121,6 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5065
5121
|
key: z.ZodString;
|
|
5066
5122
|
label: z.ZodString;
|
|
5067
5123
|
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
5068
|
-
CANCELED: "CANCELED";
|
|
5069
5124
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
5070
5125
|
PAID: "PAID";
|
|
5071
5126
|
CONFIRMED: "CONFIRMED";
|
|
@@ -5073,6 +5128,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5073
5128
|
DELIVERING: "DELIVERING";
|
|
5074
5129
|
DELIVERED: "DELIVERED";
|
|
5075
5130
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
5131
|
+
CANCELED: "CANCELED";
|
|
5076
5132
|
}>>;
|
|
5077
5133
|
message: z.ZodOptional<z.ZodString>;
|
|
5078
5134
|
enteredAt: z.ZodString;
|
|
@@ -5141,6 +5197,15 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5141
5197
|
}, z.core.$strip>>>;
|
|
5142
5198
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
5143
5199
|
}, z.core.$strip>>;
|
|
5200
|
+
claimable: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5201
|
+
action: z.ZodEnum<{
|
|
5202
|
+
CANCEL: "CANCEL";
|
|
5203
|
+
CANCEL_REQUEST: "CANCEL_REQUEST";
|
|
5204
|
+
RETURN_REQUEST: "RETURN_REQUEST";
|
|
5205
|
+
EXCHANGE_REQUEST: "EXCHANGE_REQUEST";
|
|
5206
|
+
}>;
|
|
5207
|
+
until: z.ZodOptional<z.ZodString>;
|
|
5208
|
+
}, z.core.$strip>>>>;
|
|
5144
5209
|
data: z.ZodOptional<z.ZodObject<{
|
|
5145
5210
|
delivery: z.ZodOptional<z.ZodObject<{
|
|
5146
5211
|
carrierName: z.ZodNullable<z.ZodString>;
|
|
@@ -5360,4 +5425,4 @@ declare const storefrontStoreSchema: z.ZodObject<{
|
|
|
5360
5425
|
}, z.core.$strip>;
|
|
5361
5426
|
type StorefrontStore = z.infer<typeof storefrontStoreSchema>;
|
|
5362
5427
|
//#endregion
|
|
5363
|
-
export { ANALYTICS_VISITOR_HEADER as $,
|
|
5428
|
+
export { ANALYTICS_VISITOR_HEADER as $, storefrontCollectionDetailSchema as $i, storefrontCouponListQuerySchema as $n, RemoteArea as $r, customInputEntrySchema as $t, FlowAction as A, shippingAddressInputSchema as Ai, createCustomerInquiryRequestSchema as An, CashReceiptIdentityType as Ar, WritableReview as At, flowActionRequestSchema as B, ProductSearchParams as Bi, MyCoupon as Bn, KnownPaymentResult as Br, updateReviewRequestSchema as Bt, myOrderSchema as C, CartItem as Ca, paymentStartSchema as Ci, createInquiryRequestSchema as Cn, claimReturnAddressSchema as Cr, PublicReview as Ct, commerceNumberField as D, cartSchema as Da, residentNumberLike as Di, CreateCustomerInquiryRequest as Dn, myClaimSchema as Dr, UpdateReviewRequest as Dt, trackingStageResponseSchema as E, cartItemSchema as Ea, remoteAreaSchema as Ei, publicInquirySchema as En, createClaimResultSchema as Er, ReviewSummary as Et, FlowState as F, CollectionProductSortParam as Fi, CheckoutPricingRequest as Fn, CreateCheckoutRequest as Fr, productReviewSortSchema as Ft, flowStateSchema as G, collectionProductPageSchema as Gi, checkoutPricingSchema as Gn, PAYMENT_STATUS_VALUES as Gr, AddonSelection as Gt, flowActionSchema as H, StorefrontCollection as Hi, StorefrontCouponListParams as Hn, KnownPaymentStatus as Hr, uploadTicketSchema as Ht, GuestFlowActionRequest as I, ProductCard as Ii, CouponApplication as In, DeliveryQuoteRequest as Ir, publicReviewSchema as It, orderStepSchema as J, productCardSchema as Ji, couponBenefitViewSchema as Jn, PaymentMethod as Jr, CustomInputView as Jt, guestFlowActionRequestSchema as K, collectionProductQuerySchema as Ki, couponApplicationListSchema as Kn, PaymentFailureCategory as Kr, CustomInputEntry as Kt, ORDER_STEP_TYPES as L, ProductDetail as Li, CouponResult as Ln, DeliveryQuoteResult as Lr, reviewImageUploadRequestSchema as Lt, FlowActionResult as M, CategoryNode as Mi, customerInquirySchema as Mn, CashReceiptType as Mr, createReviewResultSchema as Mt, FlowFieldValue as N, CollectionProductPage as Ni, ApplicableCoupon as Nn, CheckoutDelivery as Nr, myReviewSchema as Nt, formatOrderNo as O, updateCartItemRequestSchema as Oa, responsePaymentMethodSchema as Oi, CustomerInquiry as On, AvailablePaymentOption as Or, UpdateReviewResult as Ot, FlowInputField as P, CollectionProductParams as Pi, CheckoutPricing as Pn, CheckoutSession as Pr, productReviewQuerySchema as Pt, ANALYTICS_VISITOR_COOKIE as Q, productSortSchema as Qi, pricingAmountsSchema as Qn, PgProvider as Qr, addonSelectionSchema as Qt, OrderFlowActionResult as R, ProductFacets as Ri, MAX_COUPONS_PER_CHECKOUT as Rn, EasyPayProvider as Rr, reviewPageSchema as Rt, myOrderItemSchema as S, Cart as Sa, paymentOptionSchema as Si, PublicInquiry as Sn, claimReasonSchema as Sr, ProductReviewSort as St, purchaseDecisionResultSchema as T, addCartItemRequestSchema as Ta, pgProviderSchema as Ti, productInquiryCategorySchema as Tn, createClaimRequestSchema as Tr, ReviewPage as Tt, flowFieldValueSchema as U, StorefrontCollectionDetail as Ui, applicableCouponSchema as Un, PAYMENT_RESULT_VALUES as Ur, writableReviewSchema as Ut, flowActionResultSchema as V, ProductSort as Vi, StorefrontCoupon as Vn, KnownPaymentStartStatus as Vr, updateReviewResultSchema as Vt, flowInputFieldSchema as W, categoryNodeSchema as Wi, checkoutPricingRequestSchema as Wn, PAYMENT_START_STATUS_VALUES as Wr, AddonGroupView as Wt, ANALYTICS_SESSION_COOKIE as X, productFacetsSchema as Xi, myCouponListQuerySchema as Xn, PaymentStart as Xr, OrderInputUploadRequest as Xt, ANALYTICS_MAX_BATCH_BYTES as Y, productDetailSchema as Yi, couponResultSchema as Yn, PaymentOption as Yr, OptionSelectionView as Yt, ANALYTICS_SESSION_HEADER as Z, productPageSchema as Zi, myCouponSchema as Zn, PaymentStatus as Zr, addonGroupViewSchema as Zt, MyOrder as _, myOrderItemFulfillmentSnapshotSchema as _a, paymentFailureCategorySchema as _i, updateProfileRequestSchema as _n, ClaimType as _r, createStorefrontSession as _t, StayView as a, PageParams as aa, cashReceiptAvailable as ai, normalizeCustomInputValue as an, ConsentState as ar, analyticsBatchSchema as at, PurchaseDecisionResult as b, productFulfillmentViewSchema as ba, paymentOptionKey as bi, CreateInquiryResult as bn, MyClaim as br, MyReview as bt, stayViewSchema as c, pageInfoSchema as ca, cashReceiptTypeSchema as ci, parseCustomInputValue as cn, consentActionSchema as cr, analyticsIdSchema as ct, StorefrontPointPolicy as d, MyOrderItemFulfillmentSnapshot as da, createCheckoutRequestSchema as di, MemberAddressRequest as dn, consentStateSchema as dr, StorefrontClientOptions as dt, storefrontCollectionListQuerySchema as ea, ResponsePaymentMethod as ei, customInputLength as en, storefrontCouponSchema as er, AnalyticsBatch as et, memberPointEntryPageSchema as f, PickupLocationView as fa, deliveryQuoteRequestSchema as fi, UpdateProfileRequest as fn, consentUpdateRequestSchema as fr, createStorefrontClient as ft, DeliveryTracking as g, lineFulfillmentSchema as ga, guestInfoSchema as gi, memberSchema as gn, ClaimReturnAddress as gr, StorefrontSessionOptions as gt, storefrontPointPolicySchema as h, UnknownFulfillmentView as ha, easyPayProviderSchema as hi, memberAddressSchema as hn, ClaimReason as hr, StorefrontSession as ht, StayRequest as i, PageInfo as ia, availablePaymentOptionSchema as ii, lineSelectionResponseShape as in, ConsentSource as ir, AnalyticsServerEventName as it, FlowActionRequest as j, startPaymentRequestSchema as ji, customerInquiryCategorySchema as jn, CashReceiptRequest as jr, createReviewRequestSchema as jt, parseOrderNo as k, analyticsIdsFromCookie as ka, retryPaymentRequestSchema as ki, CustomerInquiryCategory as kn, CASH_RECEIPT_METHODS as kr, UploadTicket as kt, MemberPointEntry as l, pageSchema as la, checkoutDeliverySchema as li, Member as ln, consentKindSchema as lr, analyticsServerEventNameSchema as lt, memberPointsSchema as m, ProductFulfillmentView as ma, easyPayProviderResponseSchema as mi, memberAddressRequestSchema as mn, ClaimPreview as mr, SessionStorage as mt, storefrontStoreSchema as n, ClaimStatus as na, ShippingAddressInput as ni, customInputViewSchema as nn, ConsentAction as nr, AnalyticsClientEventName as nt, calendarDayViewSchema as o, claimStatusSchema as oa, cashReceiptIdentityTypeOf as oi, optionSelectionViewSchema as on, ConsentUpdateRequest as or, analyticsClientEventNameSchema as ot, memberPointEntrySchema as p, ProductCardFulfillment as pa, deliveryQuoteSchema as pi, WishlistAddResult as pn, memberConsentsSchema as pr, STOREFRONT_SESSION_KEYS as pt, orderFlowActionResultSchema as q, collectionProductSortSchema as qi, couponApplicationSchema as qn, PaymentMessage as qr, CustomInputValueView as qt, CalendarDayView as r, OrderItemStatus as ra, StartPaymentRequest as ri, lineSelectionRequestShape as rn, ConsentKind as rr, AnalyticsEventName as rt, stayRequestSchema as s, orderItemStatusSchema as sa, cashReceiptRequestSchema as si, orderInputUploadRequestSchema as sn, MemberConsents as sr, analyticsClientEventSchema as st, StorefrontStore as t, storefrontCollectionSchema as ta, RetryPaymentRequest as ti, customInputValueViewSchema as tn, storefrontCouponTargetSchema as tr, AnalyticsClientEvent as tt, MemberPoints as u, LineFulfillment as ua, checkoutSessionSchema as ui, MemberAddress as un, consentSourceSchema as ur, StorefrontClient as ut, MyOrderItem as v, pickupLocationViewSchema as va, paymentMessageSchema as vi, wishlistAddResultSchema as vn, CreateClaimRequest as vr, CreateReviewRequest as vt, orderShippingAddressSchema as w, UpdateCartItemRequest as wa, paymentStatusSchema as wi, createInquiryResultSchema as wn, claimTypeSchema as wr, ReviewImageUploadRequest as wt, deliveryTrackingSchema as x, AddCartItemRequest as xa, paymentOptionListSchema as xi, ProductInquiryCategory as xn, claimPreviewSchema as xr, ProductReviewParams as xt, OrderShippingAddress as y, productCardFulfillmentSchema as ya, paymentMethodSchema as yi, CreateInquiryRequest as yn, CreateClaimResult as yr, CreateReviewResult as yt, OrderStep as z, ProductPage as zi, MIN_PAYMENT_AMOUNT as zn, GuestInfo as zr, reviewSummarySchema as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { C as loginRequestSchema, D as tokenPairSchema, E as socialProviderSchema, O as withdrawRequestSchema, S as linkIdentityRequestSchema, T as signupRequestSchema, _ as anonymousSessionSchema, a as AnonymousSession, b as idpAuthorizeResponseSchema, c as IdpTokenRequest, d as MemberIdentities, f as SignupRequest, g as WithdrawalBlockedDetails, h as WithdrawRequest, i as buildQuery, k as withdrawalBlockedDetailsSchema, l as LinkIdentityRequest, m as TokenPair, n as Query, o as IdpAgreements, p as SocialProvider, r as TokenSource, s as IdpAuthorizeRequest, t as ApiError, u as LoginRequest, v as idpAgreementsSchema, w as memberIdentitiesSchema, x as idpTokenRequestSchema, y as idpAuthorizeRequestSchema } from "./http-1ab7tP4-.mjs";
|
|
2
|
-
import { $ as ANALYTICS_VISITOR_HEADER, $i as
|
|
3
|
-
export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, AddCartItemRequest, AddonGroupView, AddonSelection, AnalyticsBatch, AnalyticsClientEvent, AnalyticsClientEventName, AnalyticsEventName, AnalyticsServerEventName, AnonymousSession, ApiError, ApplicableCoupon, AvailablePaymentOption, CASH_RECEIPT_METHODS, CalendarDayView, Cart, CartItem, CashReceiptIdentityType, CashReceiptRequest, CashReceiptType, CategoryNode, CheckoutDelivery, CheckoutPricing, CheckoutPricingRequest, CheckoutSession, ClaimReason, ClaimReturnAddress, ClaimStatus, ClaimType, CollectionProductPage, CollectionProductParams, CollectionProductSortParam, ConsentAction, ConsentKind, ConsentSource, ConsentState, ConsentUpdateRequest, CouponApplication, CouponResult, CreateCheckoutRequest, CreateClaimRequest, CreateClaimResult, CreateCustomerInquiryRequest, CreateInquiryRequest, CreateInquiryResult, CreateReviewRequest, CreateReviewResult, CustomInputEntry, CustomInputValueView, CustomInputView, CustomerInquiry, CustomerInquiryCategory, DeliveryQuoteRequest, DeliveryQuoteResult, DeliveryTracking, EasyPayProvider, FlowAction, FlowActionRequest, FlowActionResult, FlowFieldValue, FlowInputField, FlowState, GuestFlowActionRequest, GuestInfo, IdpAgreements, IdpAuthorizeRequest, IdpTokenRequest, KnownPaymentResult, KnownPaymentStartStatus, KnownPaymentStatus, LineFulfillment, LinkIdentityRequest, LoginRequest, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, Member, MemberAddress, MemberAddressRequest, MemberConsents, MemberIdentities, MemberPointEntry, MemberPoints, MyClaim, MyCoupon, MyOrder, MyOrderItem, MyOrderItemFulfillmentSnapshot, MyReview, ORDER_STEP_TYPES, OptionSelectionView, OrderFlowActionResult, OrderInputUploadRequest, OrderItemStatus, OrderShippingAddress, OrderStep, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, PageInfo, PageParams, PaymentFailureCategory, PaymentMessage, PaymentMethod, PaymentOption, PaymentStart, PaymentStatus, PgProvider, PickupLocationView, ProductCard, ProductCardFulfillment, ProductDetail, ProductFacets, ProductFulfillmentView, ProductInquiryCategory, ProductPage, ProductReviewParams, ProductReviewSort, ProductSearchParams, ProductSort, PublicInquiry, PublicReview, PurchaseDecisionResult, type Query, RemoteArea, ResponsePaymentMethod, RetryPaymentRequest, ReviewImageUploadRequest, ReviewPage, ReviewSummary, STOREFRONT_SESSION_KEYS, type SessionStorage, ShippingAddressInput, SignupRequest, SocialProvider, StartPaymentRequest, StayRequest, StayView, type StorefrontClient, type StorefrontClientOptions, StorefrontCollection, StorefrontCollectionDetail, StorefrontCoupon, StorefrontCouponListParams, StorefrontPointPolicy, type StorefrontSession, type StorefrontSessionOptions, StorefrontStore, TokenPair, type TokenSource, UnknownFulfillmentView, UpdateCartItemRequest, UpdateProfileRequest, UpdateReviewRequest, UpdateReviewResult, UploadTicket, WishlistAddResult, WithdrawRequest, WithdrawalBlockedDetails, WritableReview, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, calendarDayViewSchema, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowStateSchema, formatOrderNo, guestFlowActionRequestSchema, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderFlowActionResultSchema, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, orderStepSchema, pageInfoSchema, pageSchema, parseCustomInputValue, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pickupLocationViewSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, stayRequestSchema, stayViewSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
|
|
2
|
+
import { $ as ANALYTICS_VISITOR_HEADER, $i as storefrontCollectionDetailSchema, $n as storefrontCouponListQuerySchema, $r as RemoteArea, $t as customInputEntrySchema, A as FlowAction, Ai as shippingAddressInputSchema, An as createCustomerInquiryRequestSchema, Ar as CashReceiptIdentityType, At as WritableReview, B as flowActionRequestSchema, Bi as ProductSearchParams, Bn as MyCoupon, Br as KnownPaymentResult, Bt as updateReviewRequestSchema, C as myOrderSchema, Ca as CartItem, Ci as paymentStartSchema, Cn as createInquiryRequestSchema, Cr as claimReturnAddressSchema, Ct as PublicReview, D as commerceNumberField, Da as cartSchema, Di as residentNumberLike, Dn as CreateCustomerInquiryRequest, Dr as myClaimSchema, Dt as UpdateReviewRequest, E as trackingStageResponseSchema, Ea as cartItemSchema, Ei as remoteAreaSchema, En as publicInquirySchema, Er as createClaimResultSchema, Et as ReviewSummary, F as FlowState, Fi as CollectionProductSortParam, Fn as CheckoutPricingRequest, Fr as CreateCheckoutRequest, Ft as productReviewSortSchema, G as flowStateSchema, Gi as collectionProductPageSchema, Gn as checkoutPricingSchema, Gr as PAYMENT_STATUS_VALUES, Gt as AddonSelection, H as flowActionSchema, Hi as StorefrontCollection, Hn as StorefrontCouponListParams, Hr as KnownPaymentStatus, Ht as uploadTicketSchema, I as GuestFlowActionRequest, Ii as ProductCard, In as CouponApplication, Ir as DeliveryQuoteRequest, It as publicReviewSchema, J as orderStepSchema, Ji as productCardSchema, Jn as couponBenefitViewSchema, Jr as PaymentMethod, Jt as CustomInputView, K as guestFlowActionRequestSchema, Ki as collectionProductQuerySchema, Kn as couponApplicationListSchema, Kr as PaymentFailureCategory, Kt as CustomInputEntry, L as ORDER_STEP_TYPES, Li as ProductDetail, Ln as CouponResult, Lr as DeliveryQuoteResult, Lt as reviewImageUploadRequestSchema, M as FlowActionResult, Mi as CategoryNode, Mn as customerInquirySchema, Mr as CashReceiptType, Mt as createReviewResultSchema, N as FlowFieldValue, Ni as CollectionProductPage, Nn as ApplicableCoupon, Nr as CheckoutDelivery, Nt as myReviewSchema, O as formatOrderNo, Oa as updateCartItemRequestSchema, Oi as responsePaymentMethodSchema, On as CustomerInquiry, Or as AvailablePaymentOption, Ot as UpdateReviewResult, P as FlowInputField, Pi as CollectionProductParams, Pn as CheckoutPricing, Pr as CheckoutSession, Pt as productReviewQuerySchema, Q as ANALYTICS_VISITOR_COOKIE, Qi as productSortSchema, Qn as pricingAmountsSchema, Qr as PgProvider, Qt as addonSelectionSchema, R as OrderFlowActionResult, Ri as ProductFacets, Rn as MAX_COUPONS_PER_CHECKOUT, Rr as EasyPayProvider, Rt as reviewPageSchema, S as myOrderItemSchema, Sa as Cart, Si as paymentOptionSchema, Sn as PublicInquiry, Sr as claimReasonSchema, St as ProductReviewSort, T as purchaseDecisionResultSchema, Ta as addCartItemRequestSchema, Ti as pgProviderSchema, Tn as productInquiryCategorySchema, Tr as createClaimRequestSchema, Tt as ReviewPage, U as flowFieldValueSchema, Ui as StorefrontCollectionDetail, Un as applicableCouponSchema, Ur as PAYMENT_RESULT_VALUES, Ut as writableReviewSchema, V as flowActionResultSchema, Vi as ProductSort, Vn as StorefrontCoupon, Vr as KnownPaymentStartStatus, Vt as updateReviewResultSchema, W as flowInputFieldSchema, Wi as categoryNodeSchema, Wn as checkoutPricingRequestSchema, Wr as PAYMENT_START_STATUS_VALUES, Wt as AddonGroupView, X as ANALYTICS_SESSION_COOKIE, Xi as productFacetsSchema, Xn as myCouponListQuerySchema, Xr as PaymentStart, Xt as OrderInputUploadRequest, Y as ANALYTICS_MAX_BATCH_BYTES, Yi as productDetailSchema, Yn as couponResultSchema, Yr as PaymentOption, Yt as OptionSelectionView, Z as ANALYTICS_SESSION_HEADER, Zi as productPageSchema, Zn as myCouponSchema, Zr as PaymentStatus, Zt as addonGroupViewSchema, _ as MyOrder, _a as myOrderItemFulfillmentSnapshotSchema, _i as paymentFailureCategorySchema, _n as updateProfileRequestSchema, _r as ClaimType, _t as createStorefrontSession, a as StayView, aa as PageParams, ai as cashReceiptAvailable, an as normalizeCustomInputValue, ar as ConsentState, at as analyticsBatchSchema, b as PurchaseDecisionResult, ba as productFulfillmentViewSchema, bi as paymentOptionKey, bn as CreateInquiryResult, br as MyClaim, bt as MyReview, c as stayViewSchema, ca as pageInfoSchema, ci as cashReceiptTypeSchema, cn as parseCustomInputValue, cr as consentActionSchema, ct as analyticsIdSchema, d as StorefrontPointPolicy, da as MyOrderItemFulfillmentSnapshot, di as createCheckoutRequestSchema, dn as MemberAddressRequest, dr as consentStateSchema, dt as StorefrontClientOptions, ea as storefrontCollectionListQuerySchema, ei as ResponsePaymentMethod, en as customInputLength, er as storefrontCouponSchema, et as AnalyticsBatch, f as memberPointEntryPageSchema, fa as PickupLocationView, fi as deliveryQuoteRequestSchema, fn as UpdateProfileRequest, fr as consentUpdateRequestSchema, ft as createStorefrontClient, g as DeliveryTracking, ga as lineFulfillmentSchema, gi as guestInfoSchema, gn as memberSchema, gr as ClaimReturnAddress, gt as StorefrontSessionOptions, h as storefrontPointPolicySchema, ha as UnknownFulfillmentView, hi as easyPayProviderSchema, hn as memberAddressSchema, hr as ClaimReason, ht as StorefrontSession, i as StayRequest, ia as PageInfo, ii as availablePaymentOptionSchema, in as lineSelectionResponseShape, ir as ConsentSource, it as AnalyticsServerEventName, j as FlowActionRequest, ji as startPaymentRequestSchema, jn as customerInquiryCategorySchema, jr as CashReceiptRequest, jt as createReviewRequestSchema, k as parseOrderNo, ka as analyticsIdsFromCookie, ki as retryPaymentRequestSchema, kn as CustomerInquiryCategory, kr as CASH_RECEIPT_METHODS, kt as UploadTicket, l as MemberPointEntry, la as pageSchema, li as checkoutDeliverySchema, ln as Member, lr as consentKindSchema, lt as analyticsServerEventNameSchema, m as memberPointsSchema, ma as ProductFulfillmentView, mi as easyPayProviderResponseSchema, mn as memberAddressRequestSchema, mr as ClaimPreview, mt as SessionStorage, n as storefrontStoreSchema, na as ClaimStatus, ni as ShippingAddressInput, nn as customInputViewSchema, nr as ConsentAction, nt as AnalyticsClientEventName, o as calendarDayViewSchema, oa as claimStatusSchema, oi as cashReceiptIdentityTypeOf, on as optionSelectionViewSchema, or as ConsentUpdateRequest, ot as analyticsClientEventNameSchema, p as memberPointEntrySchema, pa as ProductCardFulfillment, pi as deliveryQuoteSchema, pn as WishlistAddResult, pr as memberConsentsSchema, pt as STOREFRONT_SESSION_KEYS, q as orderFlowActionResultSchema, qi as collectionProductSortSchema, qn as couponApplicationSchema, qr as PaymentMessage, qt as CustomInputValueView, r as CalendarDayView, ra as OrderItemStatus, ri as StartPaymentRequest, rn as lineSelectionRequestShape, rr as ConsentKind, rt as AnalyticsEventName, s as stayRequestSchema, sa as orderItemStatusSchema, si as cashReceiptRequestSchema, sn as orderInputUploadRequestSchema, sr as MemberConsents, st as analyticsClientEventSchema, t as StorefrontStore, ta as storefrontCollectionSchema, ti as RetryPaymentRequest, tn as customInputValueViewSchema, tr as storefrontCouponTargetSchema, tt as AnalyticsClientEvent, u as MemberPoints, ua as LineFulfillment, ui as checkoutSessionSchema, un as MemberAddress, ur as consentSourceSchema, ut as StorefrontClient, v as MyOrderItem, va as pickupLocationViewSchema, vi as paymentMessageSchema, vn as wishlistAddResultSchema, vr as CreateClaimRequest, vt as CreateReviewRequest, w as orderShippingAddressSchema, wa as UpdateCartItemRequest, wi as paymentStatusSchema, wn as createInquiryResultSchema, wr as claimTypeSchema, wt as ReviewImageUploadRequest, x as deliveryTrackingSchema, xa as AddCartItemRequest, xi as paymentOptionListSchema, xn as ProductInquiryCategory, xr as claimPreviewSchema, xt as ProductReviewParams, y as OrderShippingAddress, ya as productCardFulfillmentSchema, yi as paymentMethodSchema, yn as CreateInquiryRequest, yr as CreateClaimResult, yt as CreateReviewResult, z as OrderStep, zi as ProductPage, zn as MIN_PAYMENT_AMOUNT, zr as GuestInfo, zt as reviewSummarySchema } from "./index-D4WBJ-rs.mjs";
|
|
3
|
+
export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, AddCartItemRequest, AddonGroupView, AddonSelection, AnalyticsBatch, AnalyticsClientEvent, AnalyticsClientEventName, AnalyticsEventName, AnalyticsServerEventName, AnonymousSession, ApiError, ApplicableCoupon, AvailablePaymentOption, CASH_RECEIPT_METHODS, CalendarDayView, Cart, CartItem, CashReceiptIdentityType, CashReceiptRequest, CashReceiptType, CategoryNode, CheckoutDelivery, CheckoutPricing, CheckoutPricingRequest, CheckoutSession, ClaimPreview, ClaimReason, ClaimReturnAddress, ClaimStatus, ClaimType, CollectionProductPage, CollectionProductParams, CollectionProductSortParam, ConsentAction, ConsentKind, ConsentSource, ConsentState, ConsentUpdateRequest, CouponApplication, CouponResult, CreateCheckoutRequest, CreateClaimRequest, CreateClaimResult, CreateCustomerInquiryRequest, CreateInquiryRequest, CreateInquiryResult, CreateReviewRequest, CreateReviewResult, CustomInputEntry, CustomInputValueView, CustomInputView, CustomerInquiry, CustomerInquiryCategory, DeliveryQuoteRequest, DeliveryQuoteResult, DeliveryTracking, EasyPayProvider, FlowAction, FlowActionRequest, FlowActionResult, FlowFieldValue, FlowInputField, FlowState, GuestFlowActionRequest, GuestInfo, IdpAgreements, IdpAuthorizeRequest, IdpTokenRequest, KnownPaymentResult, KnownPaymentStartStatus, KnownPaymentStatus, LineFulfillment, LinkIdentityRequest, LoginRequest, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, Member, MemberAddress, MemberAddressRequest, MemberConsents, MemberIdentities, MemberPointEntry, MemberPoints, MyClaim, MyCoupon, MyOrder, MyOrderItem, MyOrderItemFulfillmentSnapshot, MyReview, ORDER_STEP_TYPES, OptionSelectionView, OrderFlowActionResult, OrderInputUploadRequest, OrderItemStatus, OrderShippingAddress, OrderStep, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, PageInfo, PageParams, PaymentFailureCategory, PaymentMessage, PaymentMethod, PaymentOption, PaymentStart, PaymentStatus, PgProvider, PickupLocationView, ProductCard, ProductCardFulfillment, ProductDetail, ProductFacets, ProductFulfillmentView, ProductInquiryCategory, ProductPage, ProductReviewParams, ProductReviewSort, ProductSearchParams, ProductSort, PublicInquiry, PublicReview, PurchaseDecisionResult, type Query, RemoteArea, ResponsePaymentMethod, RetryPaymentRequest, ReviewImageUploadRequest, ReviewPage, ReviewSummary, STOREFRONT_SESSION_KEYS, type SessionStorage, ShippingAddressInput, SignupRequest, SocialProvider, StartPaymentRequest, StayRequest, StayView, type StorefrontClient, type StorefrontClientOptions, StorefrontCollection, StorefrontCollectionDetail, StorefrontCoupon, StorefrontCouponListParams, StorefrontPointPolicy, type StorefrontSession, type StorefrontSessionOptions, StorefrontStore, TokenPair, type TokenSource, UnknownFulfillmentView, UpdateCartItemRequest, UpdateProfileRequest, UpdateReviewRequest, UpdateReviewResult, UploadTicket, WishlistAddResult, WithdrawRequest, WithdrawalBlockedDetails, WritableReview, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, calendarDayViewSchema, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimPreviewSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowStateSchema, formatOrderNo, guestFlowActionRequestSchema, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderFlowActionResultSchema, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, orderStepSchema, pageInfoSchema, pageSchema, parseCustomInputValue, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pickupLocationViewSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, stayRequestSchema, stayViewSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as ANALYTICS_VISITOR_HEADER, c as analyticsClientEventSchema, i as ANALYTICS_VISITOR_COOKIE, l as analyticsIdSchema, n as ANALYTICS_SESSION_COOKIE, o as analyticsBatchSchema, r as ANALYTICS_SESSION_HEADER, s as analyticsClientEventNameSchema, t as ANALYTICS_MAX_BATCH_BYTES, u as analyticsServerEventNameSchema } from "./analytics-CgD70OqH.mjs";
|
|
2
2
|
import { t as analyticsIdsFromCookie } from "./analytics-ids-COElZiI3.mjs";
|
|
3
|
-
import { $ as orderStepSchema, A as wishlistAddResultSchema, At as
|
|
3
|
+
import { $ as orderStepSchema, A as wishlistAddResultSchema, At as anonymousSessionSchema, B as consentSourceSchema, Bt as tokenPairSchema, C as orderShippingAddressSchema, Ct as orderItemStatusSchema, D as memberAddressSchema, Dt as cartItemSchema, E as memberAddressRequestSchema, Et as addCartItemRequestSchema, F as createCustomerInquiryRequestSchema, Ft as linkIdentityRequestSchema, G as flowActionRequestSchema, Gt as toApiError, H as consentUpdateRequestSchema, Ht as withdrawalBlockedDetailsSchema, I as customerInquiryCategorySchema, It as loginRequestSchema, J as flowFieldValueSchema, K as flowActionResultSchema, Kt as unwrapData, L as customerInquirySchema, Lt as memberIdentitiesSchema, M as createInquiryResultSchema, Mt as idpAuthorizeRequestSchema, N as productInquiryCategorySchema, Nt as idpAuthorizeResponseSchema, O as memberSchema, Ot as cartSchema, P as publicInquirySchema, Pt as idpTokenRequestSchema, Q as orderFlowActionResultSchema, R as consentActionSchema, Rt as signupRequestSchema, S as myOrderSchema, St as claimStatusSchema, T as trackingStageResponseSchema, Tt as pageSchema, U as memberConsentsSchema, Ut as ApiError, V as consentStateSchema, Vt as withdrawRequestSchema, W as ORDER_STEP_TYPES, Wt as buildQuery, X as flowStateSchema, Y as flowInputFieldSchema, Z as guestFlowActionRequestSchema, _ as memberPointEntrySchema, _t as productPageSchema, a as myReviewSchema, at as createClaimResultSchema, b as deliveryTrackingSchema, bt as storefrontCollectionListQuerySchema, c as publicReviewSchema, ct as formatOrderNo, d as reviewSummarySchema, dt as collectionProductPageSchema, et as claimPreviewSchema, f as updateReviewRequestSchema, ft as collectionProductQuerySchema, g as memberPointEntryPageSchema, gt as productFacetsSchema, h as writableReviewSchema, ht as productDetailSchema, i as createReviewResultSchema, it as createClaimRequestSchema, j as createInquiryRequestSchema, jt as idpAgreementsSchema, k as updateProfileRequestSchema, kt as updateCartItemRequestSchema, l as reviewImageUploadRequestSchema, lt as parseOrderNo, m as uploadTicketSchema, mt as productCardSchema, n as storefrontStoreSchema, nt as claimReturnAddressSchema, o as productReviewQuerySchema, ot as myClaimSchema, p as updateReviewResultSchema, pt as collectionProductSortSchema, q as flowActionSchema, r as createReviewRequestSchema, rt as claimTypeSchema, s as productReviewSortSchema, st as commerceNumberField, t as createStorefrontClient, tt as claimReasonSchema, u as reviewPageSchema, ut as categoryNodeSchema, v as memberPointsSchema, vt as productSortSchema, w as purchaseDecisionResultSchema, wt as pageInfoSchema, x as myOrderItemSchema, xt as storefrontCollectionSchema, y as storefrontPointPolicySchema, yt as storefrontCollectionDetailSchema, z as consentKindSchema, zt as socialProviderSchema } from "./client-OJc5DOIJ.mjs";
|
|
4
4
|
import { $ as customInputViewSchema, A as retryPaymentRequestSchema, B as couponBenefitViewSchema, C as paymentOptionSchema, D as remoteAreaSchema, E as pgProviderSchema, F as applicableCouponSchema, G as storefrontCouponListQuerySchema, H as myCouponListQuerySchema, I as checkoutPricingRequestSchema, J as addonGroupViewSchema, K as storefrontCouponSchema, L as checkoutPricingSchema, M as startPaymentRequestSchema, N as MAX_COUPONS_PER_CHECKOUT, O as residentNumberLike, P as MIN_PAYMENT_AMOUNT, Q as customInputValueViewSchema, R as couponApplicationListSchema, S as paymentOptionListSchema, T as paymentStatusSchema, U as myCouponSchema, V as couponResultSchema, W as pricingAmountsSchema, X as customInputEntrySchema, Y as addonSelectionSchema, Z as customInputLength, _ as guestInfoSchema, a as availablePaymentOptionSchema, at as parseCustomInputValue, b as paymentMethodSchema, c as cashReceiptRequestSchema, ct as stayViewSchema, d as checkoutSessionSchema, dt as pickupLocationViewSchema, et as lineSelectionRequestShape, f as createCheckoutRequestSchema, ft as productCardFulfillmentSchema, g as easyPayProviderSchema, h as easyPayProviderResponseSchema, i as PAYMENT_STATUS_VALUES, it as orderInputUploadRequestSchema, j as shippingAddressInputSchema, k as responsePaymentMethodSchema, l as cashReceiptTypeSchema, lt as lineFulfillmentSchema, m as deliveryQuoteSchema, n as PAYMENT_RESULT_VALUES, nt as normalizeCustomInputValue, o as cashReceiptAvailable, ot as calendarDayViewSchema, p as deliveryQuoteRequestSchema, pt as productFulfillmentViewSchema, q as storefrontCouponTargetSchema, r as PAYMENT_START_STATUS_VALUES, rt as optionSelectionViewSchema, s as cashReceiptIdentityTypeOf, st as stayRequestSchema, t as CASH_RECEIPT_METHODS, tt as lineSelectionResponseShape, u as checkoutDeliverySchema, ut as myOrderItemFulfillmentSnapshotSchema, v as paymentFailureCategorySchema, w as paymentStartSchema, x as paymentOptionKey, y as paymentMessageSchema, z as couponApplicationSchema } from "./checkout-BjJ4Efbn.mjs";
|
|
5
5
|
//#region src/session.ts
|
|
6
6
|
/** 세션 키 상수 — SDK가 소유한다. store-sdk와 겹치지 않는 별도 네임스페이스. */
|
|
@@ -125,4 +125,4 @@ function createStorefrontSession(options) {
|
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
//#endregion
|
|
128
|
-
export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, ApiError, CASH_RECEIPT_METHODS, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, ORDER_STEP_TYPES, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, STOREFRONT_SESSION_KEYS, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, calendarDayViewSchema, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowStateSchema, formatOrderNo, guestFlowActionRequestSchema, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderFlowActionResultSchema, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, orderStepSchema, pageInfoSchema, pageSchema, parseCustomInputValue, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pickupLocationViewSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, stayRequestSchema, stayViewSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
|
|
128
|
+
export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, ApiError, CASH_RECEIPT_METHODS, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, ORDER_STEP_TYPES, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, STOREFRONT_SESSION_KEYS, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, calendarDayViewSchema, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimPreviewSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowStateSchema, formatOrderNo, guestFlowActionRequestSchema, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderFlowActionResultSchema, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, orderStepSchema, pageInfoSchema, pageSchema, parseCustomInputValue, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pickupLocationViewSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, stayRequestSchema, stayViewSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Xr as PaymentStart, Yr as PaymentOption, Zr as PaymentStatus, ft as createStorefrontClient, jr as CashReceiptRequest, ni as ShippingAddressInput, ri as StartPaymentRequest, zr as GuestInfo } from "../index-D4WBJ-rs.mjs";
|
|
2
2
|
//#region src/payments/index.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* 스토어프론트 결제 — 브라우저 전용(`@sayren/storefront-sdk/payments`).
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -53,6 +53,7 @@ import {
|
|
|
53
53
|
} from "./schemas/checkout";
|
|
54
54
|
import {
|
|
55
55
|
type CreateClaimRequest,
|
|
56
|
+
claimPreviewSchema,
|
|
56
57
|
createClaimRequestSchema,
|
|
57
58
|
createClaimResultSchema,
|
|
58
59
|
myClaimSchema,
|
|
@@ -498,6 +499,14 @@ export function createStorefrontClient(options: StorefrontClientOptions) {
|
|
|
498
499
|
http.request("POST", path`/me/order-items/${orderItemId}/claims`, createClaimResultSchema, {
|
|
499
500
|
body: createClaimRequestSchema.parse(body),
|
|
500
501
|
}),
|
|
502
|
+
/** `POST /me/order-items/{id}/claims/preview` — 신청 전 예상 환불·차감. 접수하지 않는다(#115) */
|
|
503
|
+
preview: (orderItemId: string, body: CreateClaimRequest) =>
|
|
504
|
+
http.request(
|
|
505
|
+
"POST",
|
|
506
|
+
path`/me/order-items/${orderItemId}/claims/preview`,
|
|
507
|
+
claimPreviewSchema,
|
|
508
|
+
{ body: createClaimRequestSchema.parse(body) },
|
|
509
|
+
),
|
|
501
510
|
list: (params?: PageParams & { status?: ClaimStatus }) =>
|
|
502
511
|
http.request("GET", "/me/claims", pageSchema(myClaimSchema), { query: params as Query }),
|
|
503
512
|
withdraw: (claimId: string) => http.requestVoid("POST", path`/me/claims/${claimId}/withdraw`),
|
package/src/schemas/claim.ts
CHANGED
|
@@ -88,6 +88,23 @@ export const createClaimResultSchema = z.object({
|
|
|
88
88
|
|
|
89
89
|
export type CreateClaimResult = z.infer<typeof createClaimResultSchema>;
|
|
90
90
|
|
|
91
|
+
/**
|
|
92
|
+
* 신청 전 미리보기(#115 G49) — 접수와 같은 판정·계산을 저장 없이 돌린다. 접수할 수 없으면 접수와 같은 오류(409 등)다.
|
|
93
|
+
* 금액은 지금 시점의 예상값이다(차감은 접수 시각의 흐름 식으로 다시 계산한다)
|
|
94
|
+
*/
|
|
95
|
+
export const claimPreviewSchema = createClaimResultSchema
|
|
96
|
+
.omit({ claimId: true, claimNo: true, status: true })
|
|
97
|
+
.extend({
|
|
98
|
+
deductAmount: z
|
|
99
|
+
.number()
|
|
100
|
+
.int()
|
|
101
|
+
.describe(
|
|
102
|
+
"흐름이 정한 취소 수수료(체크인·관람일까지 남은 기간 등). 예상 환불액에서 이미 뺐다. 수수료가 없으면 0",
|
|
103
|
+
),
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
export type ClaimPreview = z.infer<typeof claimPreviewSchema>;
|
|
107
|
+
|
|
91
108
|
/**
|
|
92
109
|
* 반품지 (이슈 #30) — 반품·교환 수거가 안내하는 주소다. 상점 주소록의 기본 반품지이거나,
|
|
93
110
|
* 상품이 반품지를 따로 지정했으면 그 주소다.
|
|
@@ -134,6 +134,25 @@ export const orderStepSchema = z.object({
|
|
|
134
134
|
.describe(
|
|
135
135
|
"이 단계에서 구매자가 할 행동(입력 칸 포함). `BUYER_ACTION`이면 하나 이상이다. 취소·반품 요청·구매확정은 `actions`(주문상품)에 있다",
|
|
136
136
|
),
|
|
137
|
+
claimable: z
|
|
138
|
+
.array(
|
|
139
|
+
z.object({
|
|
140
|
+
action: z
|
|
141
|
+
.enum(["CANCEL", "CANCEL_REQUEST", "RETURN_REQUEST", "EXCHANGE_REQUEST"])
|
|
142
|
+
.describe(
|
|
143
|
+
"CANCEL 바로 취소 · CANCEL_REQUEST 취소 요청(판매자 확인) · RETURN_REQUEST 반품 요청 · EXCHANGE_REQUEST 교환 요청",
|
|
144
|
+
),
|
|
145
|
+
until: z
|
|
146
|
+
.string()
|
|
147
|
+
.optional()
|
|
148
|
+
.describe("이 시각까지만 신청할 수 있다(ISO 8601). 없으면 이 단계 동안"),
|
|
149
|
+
}),
|
|
150
|
+
)
|
|
151
|
+
.optional()
|
|
152
|
+
.default([])
|
|
153
|
+
.describe(
|
|
154
|
+
"지금 신청할 수 있는 취소·반품·교환(#115) — 흐름 노드의 권한 표가 정한다. 화면은 이 목록으로 「지금 취소할 수 있습니다」 같은 안내를 그린다. 진행 중 클레임이 있으면 빈 목록",
|
|
155
|
+
),
|
|
137
156
|
data: z
|
|
138
157
|
.object({
|
|
139
158
|
delivery: z
|