@sayren/storefront-sdk 0.20.14 → 0.20.16
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-BjJ4Efbn.mjs → checkout-CmFcG8TT.mjs} +8 -3
- package/dist/{client-Se5Bcaow.mjs → client-C3JB8ime.mjs} +8 -4
- package/dist/{index-CPAkDqew.d.mts → index-C3wcSykm.d.mts} +37 -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/schemas/checkout.ts +11 -2
- package/src/schemas/claim.ts +8 -0
- package/src/schemas/commerce-flow.ts +17 -1
- package/src/schemas/order.ts +8 -0
package/dist/auth/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ut as ApiError, t as createStorefrontClient } from "../client-
|
|
1
|
+
import { Ut as ApiError, t as createStorefrontClient } from "../client-C3JB8ime.mjs";
|
|
2
2
|
//#region src/auth/index.ts
|
|
3
3
|
/** 소셜 로그인 실패 — 구매자가 취소했거나(`access_denied`) state가 맞지 않는다 */
|
|
4
4
|
var IdpCallbackError = class extends Error {
|
|
@@ -525,10 +525,15 @@ const paymentOptionListSchema = z.preprocess((value) => Array.isArray(value) ? v
|
|
|
525
525
|
function paymentOptionKey(option) {
|
|
526
526
|
return option.method === "EASY_PAY" ? `${option.pg}:EASY_PAY:${option.provider}` : `${option.pg}:${option.method}`;
|
|
527
527
|
}
|
|
528
|
+
/**
|
|
529
|
+
* 배송·주문 연락처 — 휴대폰(010 등), 050 안심번호(0503~0508), 070, 지역번호 일반 전화. 숫자만 받는다(하이픈 없이).
|
|
530
|
+
* 회원 가입의 휴대폰(`auth.ts`)은 본인 확인용이라 휴대폰만 받는다
|
|
531
|
+
*/
|
|
532
|
+
const CONTACT_PHONE_PATTERN = /^(?:01[0-9]{8,9}|050[0-9]{8,9}|070[0-9]{8}|02[0-9]{7,8}|0[3-6][1-5][0-9]{7,8})$/;
|
|
528
533
|
const shippingAddressInputSchema = z.object({
|
|
529
534
|
addressId: z.string().optional(),
|
|
530
535
|
receiverName: z.string().min(1, "수령인명을 입력해주십시오").max(50),
|
|
531
|
-
phone: z.string().regex(
|
|
536
|
+
phone: z.string().regex(CONTACT_PHONE_PATTERN, "연락처 형식이 아닙니다 (예: 01012345678, 050712345678)"),
|
|
532
537
|
zipCode: z.string().regex(/^[0-9]{5}$/, "우편번호는 5자리 숫자입니다"),
|
|
533
538
|
address1: z.string().min(1, "기본 주소를 입력해주십시오"),
|
|
534
539
|
address2: z.string().optional(),
|
|
@@ -537,7 +542,7 @@ const shippingAddressInputSchema = z.object({
|
|
|
537
542
|
});
|
|
538
543
|
const guestInfoSchema = z.object({
|
|
539
544
|
name: z.string().min(1),
|
|
540
|
-
phone: z.string().regex(
|
|
545
|
+
phone: z.string().regex(CONTACT_PHONE_PATTERN),
|
|
541
546
|
email: z.email(),
|
|
542
547
|
orderPassword: z.string().min(6, "주문 조회 비밀번호는 6자 이상이어야 합니다").max(128, "주문 조회 비밀번호는 128자까지입니다")
|
|
543
548
|
});
|
|
@@ -710,4 +715,4 @@ const paymentMessageSchema = z.object({
|
|
|
710
715
|
orderId: z.string().optional()
|
|
711
716
|
});
|
|
712
717
|
//#endregion
|
|
713
|
-
export {
|
|
718
|
+
export { customInputValueViewSchema as $, responsePaymentMethodSchema as A, couponApplicationSchema as B, paymentOptionListSchema as C, pgProviderSchema as D, paymentStatusSchema as E, MIN_PAYMENT_AMOUNT as F, pricingAmountsSchema as G, couponResultSchema as H, applicableCouponSchema as I, storefrontCouponTargetSchema as J, storefrontCouponListQuerySchema as K, checkoutPricingRequestSchema as L, shippingAddressInputSchema as M, startPaymentRequestSchema as N, remoteAreaSchema as O, MAX_COUPONS_PER_CHECKOUT as P, customInputLength as Q, checkoutPricingSchema as R, paymentOptionKey as S, paymentStartSchema as T, myCouponListQuerySchema as U, couponBenefitViewSchema as V, myCouponSchema as W, addonSelectionSchema as X, addonGroupViewSchema as Y, customInputEntrySchema as Z, easyPayProviderSchema as _, PAYMENT_STATUS_VALUES as a, orderInputUploadRequestSchema as at, paymentMessageSchema as b, cashReceiptIdentityTypeOf as c, stayRequestSchema as ct, checkoutDeliverySchema as d, myOrderItemFulfillmentSnapshotSchema as dt, customInputViewSchema as et, checkoutSessionSchema as f, pickupLocationViewSchema as ft, easyPayProviderResponseSchema as g, deliveryQuoteSchema as h, PAYMENT_START_STATUS_VALUES as i, optionSelectionViewSchema as it, retryPaymentRequestSchema as j, residentNumberLike as k, cashReceiptRequestSchema as l, stayViewSchema as lt, deliveryQuoteRequestSchema as m, productFulfillmentViewSchema as mt, CONTACT_PHONE_PATTERN as n, lineSelectionResponseShape as nt, availablePaymentOptionSchema as o, parseCustomInputValue as ot, createCheckoutRequestSchema as p, productCardFulfillmentSchema as pt, storefrontCouponSchema as q, PAYMENT_RESULT_VALUES as r, normalizeCustomInputValue as rt, cashReceiptAvailable as s, calendarDayViewSchema as st, CASH_RECEIPT_METHODS as t, lineSelectionRequestShape as tt, cashReceiptTypeSchema as u, lineFulfillmentSchema as ut, guestInfoSchema as v, paymentOptionSchema as w, paymentMethodSchema as x, paymentFailureCategorySchema as y, couponApplicationListSchema as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ANALYTICS_VISITOR_HEADER, r as ANALYTICS_SESSION_HEADER } from "./analytics-CgD70OqH.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { A as responsePaymentMethodSchema, E as paymentStatusSchema, I as applicableCouponSchema, L as checkoutPricingRequestSchema, N as startPaymentRequestSchema, R as checkoutPricingSchema, T as paymentStartSchema, W as myCouponSchema, Y as addonGroupViewSchema, at as orderInputUploadRequestSchema, dt as myOrderItemFulfillmentSnapshotSchema, et as customInputViewSchema, f as checkoutSessionSchema, ft as pickupLocationViewSchema, g as easyPayProviderResponseSchema, h as deliveryQuoteSchema, j as retryPaymentRequestSchema, m as deliveryQuoteRequestSchema, mt as productFulfillmentViewSchema, nt as lineSelectionResponseShape, p as createCheckoutRequestSchema, pt as productCardFulfillmentSchema, q as storefrontCouponSchema, st as calendarDayViewSchema, tt as lineSelectionRequestShape, ut as lineFulfillmentSchema } from "./checkout-CmFcG8TT.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/http.ts
|
|
5
5
|
/** 표준 엔벨로프의 $.error 상세 */
|
|
@@ -477,6 +477,7 @@ const createClaimResultSchema = z.object({
|
|
|
477
477
|
claimId: z.string(),
|
|
478
478
|
claimNo: commerceNumberField("클레임번호(이슈 #107) — `C` + YYMMDD(KST) + 숫자 8자리. 취소·반품·교환 접수 단위 번호이고 생성 후 바뀌지 않습니다"),
|
|
479
479
|
status: z.literal("REQUESTED"),
|
|
480
|
+
approved: z.boolean().optional().default(false).describe("접수와 함께 승인됐는가(#115) — 주문 흐름이 이 단계의 취소를 「주문 취소」(즉시)로 켰으면 판매자 승인 없이 바로 취소·환불된다. false면 판매자 확인을 기다린다. 서버는 항상 싣는다"),
|
|
480
481
|
expectedRefundAmount: z.number().int().nullable().describe("예상 환불액 — 수량 비율 상품 실결제 금액(쿠폰 할인을 뺀 금액) − 반품 배송비 − 조건부 무료배송 미달 차감 − 쿠폰 조건 미달 차감(`couponChargeAmount`) + 되돌릴 쿠폰 차감. **배송비 환불은 여기 포함되지 않고 `deliveryFeeRefundAmount`로 따로 온다**(승인 시점의 배송 묶음 상태로 확정되기 때문이다). 교환은 환불이 없어 null이다"),
|
|
481
482
|
claimDeliveryFee: z.number().int().describe("구매자가 부담하는 반품·교환 배송비. 원 단위"),
|
|
482
483
|
quantity: z.number().int().describe("접수된 수량. 요청에서 생략하면 남은 수량 전체다"),
|
|
@@ -599,7 +600,8 @@ const flowStateSchema = z.object({
|
|
|
599
600
|
z.number(),
|
|
600
601
|
z.boolean(),
|
|
601
602
|
z.array(z.string())
|
|
602
|
-
])
|
|
603
|
+
]),
|
|
604
|
+
display: z.string().optional().describe("화면에 보일 값 — 이름 붙인 선택지(`{ value, label }`)면 이름. 없으면 `value`를 그대로 보인다")
|
|
603
605
|
}))
|
|
604
606
|
}).optional().describe("이 상태로 오게 한 행동의 입력값(수정 내용 등, #115). 없으면 생략"),
|
|
605
607
|
progress: z.boolean().optional(),
|
|
@@ -656,7 +658,8 @@ const flowActionResultSchema = z.object({
|
|
|
656
658
|
affectedOrderItemIds: z.array(z.string()),
|
|
657
659
|
claim: z.object({
|
|
658
660
|
claimId: z.string(),
|
|
659
|
-
claimNo: z.string().nullable()
|
|
661
|
+
claimNo: z.string().nullable(),
|
|
662
|
+
approved: z.boolean().optional().default(false).describe("즉시 취소(권한 방식 INSTANT)라 판매자 승인 없이 취소·환불했다. 서버는 항상 싣는다")
|
|
660
663
|
}).optional().describe("취소·반품·교환 행동(하위 플로우 `core.claim.*`)이 접수한 클레임(#115). 클레임 API(`POST /me/order-items/{id}/claims`)와 같은 접수다. 다른 행동은 생략")
|
|
661
664
|
});
|
|
662
665
|
/**
|
|
@@ -916,7 +919,8 @@ const myOrderSchema = z.object({
|
|
|
916
919
|
paidAt: z.string().nullable(),
|
|
917
920
|
receiptUrl: z.url().nullable(),
|
|
918
921
|
refundedAmount: z.number().int().optional().default(0).describe("환불된 결제 금액 합계 (원, #115) — 결제 대행사 환불이 끝난 몫이다. 적립금 반환은 포함하지 않는다. 서버는 항상 싣는다"),
|
|
919
|
-
refundPendingAmount: z.number().int().optional().default(0).describe("환불 예정 금액 (원, #115) — 판매자가 취소·반품을 승인했지만 결제 환불이 아직 끝나지 않은 몫이다. 판매자가 처리하면 `refundedAmount`로 옮겨진다. 서버는 항상 싣는다")
|
|
922
|
+
refundPendingAmount: z.number().int().optional().default(0).describe("환불 예정 금액 (원, #115) — 판매자가 취소·반품을 승인했지만 결제 환불이 아직 끝나지 않은 몫이다. 판매자가 처리하면 `refundedAmount`로 옮겨진다. 서버는 항상 싣는다"),
|
|
923
|
+
pointRefundedAmount: z.number().int().optional().default(0).describe("취소·반품으로 돌려준 적립금 합계 (원, #93) — 현금 환불(`refundedAmount`)과 별개다. 적립금을 쓰지 않았거나 돌려준 것이 없으면 0. 서버는 항상 싣는다")
|
|
920
924
|
}),
|
|
921
925
|
testPayment: z.boolean().describe("테스트 결제(샌드박스 결제) 주문인가. true면 실제로 돈이 나가지 않았습니다 — 주문 화면에 테스트 결제 배지를 표시합니다")
|
|
922
926
|
});
|
|
@@ -938,6 +938,11 @@ declare const paymentOptionListSchema: z.ZodPreprocess<z.ZodArray<z.ZodIntersect
|
|
|
938
938
|
}, z.core.$strip>>>, unknown>;
|
|
939
939
|
/** 결제 옵션을 화면 키로 — 라디오 value·React key. 예: `tosspayments:CARD`, `portone:EASY_PAY:NAVERPAY` */
|
|
940
940
|
declare function paymentOptionKey(option: PaymentOption): string;
|
|
941
|
+
/**
|
|
942
|
+
* 배송·주문 연락처 — 휴대폰(010 등), 050 안심번호(0503~0508), 070, 지역번호 일반 전화. 숫자만 받는다(하이픈 없이).
|
|
943
|
+
* 회원 가입의 휴대폰(`auth.ts`)은 본인 확인용이라 휴대폰만 받는다
|
|
944
|
+
*/
|
|
945
|
+
declare const CONTACT_PHONE_PATTERN: RegExp;
|
|
941
946
|
declare const shippingAddressInputSchema: z.ZodObject<{
|
|
942
947
|
addressId: z.ZodOptional<z.ZodString>;
|
|
943
948
|
receiverName: z.ZodString;
|
|
@@ -1298,6 +1303,7 @@ declare const createClaimResultSchema: z.ZodObject<{
|
|
|
1298
1303
|
claimId: z.ZodString;
|
|
1299
1304
|
claimNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1300
1305
|
status: z.ZodLiteral<"REQUESTED">;
|
|
1306
|
+
approved: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1301
1307
|
expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
|
|
1302
1308
|
claimDeliveryFee: z.ZodNumber;
|
|
1303
1309
|
quantity: z.ZodNumber;
|
|
@@ -1313,6 +1319,7 @@ type CreateClaimResult = z.infer<typeof createClaimResultSchema>;
|
|
|
1313
1319
|
*/
|
|
1314
1320
|
declare const claimPreviewSchema: z.ZodObject<{
|
|
1315
1321
|
quantity: z.ZodNumber;
|
|
1322
|
+
approved: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1316
1323
|
expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
|
|
1317
1324
|
claimDeliveryFee: z.ZodNumber;
|
|
1318
1325
|
deliveryFeeRefundAmount: z.ZodNumber;
|
|
@@ -3155,6 +3162,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3155
3162
|
label: string;
|
|
3156
3163
|
type: string;
|
|
3157
3164
|
value: string | number | boolean | string[];
|
|
3165
|
+
display?: string | undefined;
|
|
3158
3166
|
}[];
|
|
3159
3167
|
} | undefined;
|
|
3160
3168
|
progress?: boolean | undefined;
|
|
@@ -3206,6 +3214,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3206
3214
|
label: string;
|
|
3207
3215
|
type: string;
|
|
3208
3216
|
value: string | number | boolean | string[];
|
|
3217
|
+
display?: string | undefined;
|
|
3209
3218
|
}[];
|
|
3210
3219
|
} | undefined;
|
|
3211
3220
|
progress?: boolean | undefined;
|
|
@@ -3258,6 +3267,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3258
3267
|
label: string;
|
|
3259
3268
|
type: string;
|
|
3260
3269
|
value: string | number | boolean | string[];
|
|
3270
|
+
display?: string | undefined;
|
|
3261
3271
|
}[];
|
|
3262
3272
|
} | undefined;
|
|
3263
3273
|
data?: {
|
|
@@ -3305,6 +3315,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3305
3315
|
receiptUrl: string | null;
|
|
3306
3316
|
refundedAmount: number;
|
|
3307
3317
|
refundPendingAmount: number;
|
|
3318
|
+
pointRefundedAmount: number;
|
|
3308
3319
|
};
|
|
3309
3320
|
testPayment: boolean;
|
|
3310
3321
|
progressStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
@@ -3388,6 +3399,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3388
3399
|
label: string;
|
|
3389
3400
|
type: string;
|
|
3390
3401
|
value: string | number | boolean | string[];
|
|
3402
|
+
display?: string | undefined;
|
|
3391
3403
|
}[];
|
|
3392
3404
|
} | undefined;
|
|
3393
3405
|
progress?: boolean | undefined;
|
|
@@ -3439,6 +3451,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3439
3451
|
label: string;
|
|
3440
3452
|
type: string;
|
|
3441
3453
|
value: string | number | boolean | string[];
|
|
3454
|
+
display?: string | undefined;
|
|
3442
3455
|
}[];
|
|
3443
3456
|
} | undefined;
|
|
3444
3457
|
progress?: boolean | undefined;
|
|
@@ -3491,6 +3504,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3491
3504
|
label: string;
|
|
3492
3505
|
type: string;
|
|
3493
3506
|
value: string | number | boolean | string[];
|
|
3507
|
+
display?: string | undefined;
|
|
3494
3508
|
}[];
|
|
3495
3509
|
} | undefined;
|
|
3496
3510
|
data?: {
|
|
@@ -3538,6 +3552,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3538
3552
|
receiptUrl: string | null;
|
|
3539
3553
|
refundedAmount: number;
|
|
3540
3554
|
refundPendingAmount: number;
|
|
3555
|
+
pointRefundedAmount: number;
|
|
3541
3556
|
};
|
|
3542
3557
|
testPayment: boolean;
|
|
3543
3558
|
progressStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
@@ -3632,6 +3647,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3632
3647
|
label: string;
|
|
3633
3648
|
type: string;
|
|
3634
3649
|
value: string | number | boolean | string[];
|
|
3650
|
+
display?: string | undefined;
|
|
3635
3651
|
}[];
|
|
3636
3652
|
} | undefined;
|
|
3637
3653
|
progress?: boolean | undefined;
|
|
@@ -3683,6 +3699,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3683
3699
|
label: string;
|
|
3684
3700
|
type: string;
|
|
3685
3701
|
value: string | number | boolean | string[];
|
|
3702
|
+
display?: string | undefined;
|
|
3686
3703
|
}[];
|
|
3687
3704
|
} | undefined;
|
|
3688
3705
|
progress?: boolean | undefined;
|
|
@@ -3735,6 +3752,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3735
3752
|
label: string;
|
|
3736
3753
|
type: string;
|
|
3737
3754
|
value: string | number | boolean | string[];
|
|
3755
|
+
display?: string | undefined;
|
|
3738
3756
|
}[];
|
|
3739
3757
|
} | undefined;
|
|
3740
3758
|
data?: {
|
|
@@ -3782,6 +3800,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3782
3800
|
receiptUrl: string | null;
|
|
3783
3801
|
refundedAmount: number;
|
|
3784
3802
|
refundPendingAmount: number;
|
|
3803
|
+
pointRefundedAmount: number;
|
|
3785
3804
|
};
|
|
3786
3805
|
testPayment: boolean;
|
|
3787
3806
|
progressStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
@@ -3824,6 +3843,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3824
3843
|
label: string;
|
|
3825
3844
|
type: string;
|
|
3826
3845
|
value: string | number | boolean | string[];
|
|
3846
|
+
display?: string | undefined;
|
|
3827
3847
|
}[];
|
|
3828
3848
|
} | undefined;
|
|
3829
3849
|
progress?: boolean | undefined;
|
|
@@ -3862,6 +3882,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3862
3882
|
claim?: {
|
|
3863
3883
|
claimId: string;
|
|
3864
3884
|
claimNo: string | null;
|
|
3885
|
+
approved: boolean;
|
|
3865
3886
|
} | undefined;
|
|
3866
3887
|
}>;
|
|
3867
3888
|
/** 비회원 행동 — 비회원 주문 조회와 같은 연락처·비밀번호 확인과 시도 한도를 지난다 */
|
|
@@ -3888,6 +3909,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3888
3909
|
label: string;
|
|
3889
3910
|
type: string;
|
|
3890
3911
|
value: string | number | boolean | string[];
|
|
3912
|
+
display?: string | undefined;
|
|
3891
3913
|
}[];
|
|
3892
3914
|
} | undefined;
|
|
3893
3915
|
progress?: boolean | undefined;
|
|
@@ -3926,6 +3948,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3926
3948
|
claim?: {
|
|
3927
3949
|
claimId: string;
|
|
3928
3950
|
claimNo: string | null;
|
|
3951
|
+
approved: boolean;
|
|
3929
3952
|
} | undefined;
|
|
3930
3953
|
}>;
|
|
3931
3954
|
/**
|
|
@@ -3963,6 +3986,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3963
3986
|
claimId: string;
|
|
3964
3987
|
claimNo: string | null;
|
|
3965
3988
|
status: "REQUESTED";
|
|
3989
|
+
approved: boolean;
|
|
3966
3990
|
expectedRefundAmount: number | null;
|
|
3967
3991
|
claimDeliveryFee: number;
|
|
3968
3992
|
quantity: number;
|
|
@@ -3974,6 +3998,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3974
3998
|
/** `POST /me/order-items/{id}/claims/preview` — 신청 전 예상 환불·차감. 접수하지 않는다(#115) */
|
|
3975
3999
|
preview: (orderItemId: string, body: CreateClaimRequest) => Promise<{
|
|
3976
4000
|
quantity: number;
|
|
4001
|
+
approved: boolean;
|
|
3977
4002
|
expectedRefundAmount: number | null;
|
|
3978
4003
|
claimDeliveryFee: number;
|
|
3979
4004
|
deliveryFeeRefundAmount: number;
|
|
@@ -4530,6 +4555,7 @@ declare const flowStateSchema: z.ZodObject<{
|
|
|
4530
4555
|
label: z.ZodString;
|
|
4531
4556
|
type: z.ZodString;
|
|
4532
4557
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4558
|
+
display: z.ZodOptional<z.ZodString>;
|
|
4533
4559
|
}, z.core.$strip>>;
|
|
4534
4560
|
}, z.core.$strip>>;
|
|
4535
4561
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4555,6 +4581,7 @@ declare const orderStepSchema: z.ZodObject<{
|
|
|
4555
4581
|
label: z.ZodString;
|
|
4556
4582
|
type: z.ZodString;
|
|
4557
4583
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4584
|
+
display: z.ZodOptional<z.ZodString>;
|
|
4558
4585
|
}, z.core.$strip>>;
|
|
4559
4586
|
}, z.core.$strip>>;
|
|
4560
4587
|
actions: z.ZodArray<z.ZodObject<{
|
|
@@ -4648,6 +4675,7 @@ declare const flowActionResultSchema: z.ZodObject<{
|
|
|
4648
4675
|
label: z.ZodString;
|
|
4649
4676
|
type: z.ZodString;
|
|
4650
4677
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4678
|
+
display: z.ZodOptional<z.ZodString>;
|
|
4651
4679
|
}, z.core.$strip>>;
|
|
4652
4680
|
}, z.core.$strip>>;
|
|
4653
4681
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4691,6 +4719,7 @@ declare const flowActionResultSchema: z.ZodObject<{
|
|
|
4691
4719
|
claim: z.ZodOptional<z.ZodObject<{
|
|
4692
4720
|
claimId: z.ZodString;
|
|
4693
4721
|
claimNo: z.ZodNullable<z.ZodString>;
|
|
4722
|
+
approved: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
4694
4723
|
}, z.core.$strip>>;
|
|
4695
4724
|
}, z.core.$strip>;
|
|
4696
4725
|
type FlowActionResult = z.infer<typeof flowActionResultSchema>;
|
|
@@ -4811,6 +4840,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4811
4840
|
label: z.ZodString;
|
|
4812
4841
|
type: z.ZodString;
|
|
4813
4842
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4843
|
+
display: z.ZodOptional<z.ZodString>;
|
|
4814
4844
|
}, z.core.$strip>>;
|
|
4815
4845
|
}, z.core.$strip>>;
|
|
4816
4846
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4875,6 +4905,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4875
4905
|
label: z.ZodString;
|
|
4876
4906
|
type: z.ZodString;
|
|
4877
4907
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4908
|
+
display: z.ZodOptional<z.ZodString>;
|
|
4878
4909
|
}, z.core.$strip>>;
|
|
4879
4910
|
}, z.core.$strip>>;
|
|
4880
4911
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4894,6 +4925,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4894
4925
|
label: z.ZodString;
|
|
4895
4926
|
type: z.ZodString;
|
|
4896
4927
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4928
|
+
display: z.ZodOptional<z.ZodString>;
|
|
4897
4929
|
}, z.core.$strip>>;
|
|
4898
4930
|
}, z.core.$strip>>;
|
|
4899
4931
|
actions: z.ZodArray<z.ZodObject<{
|
|
@@ -5084,6 +5116,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5084
5116
|
label: z.ZodString;
|
|
5085
5117
|
type: z.ZodString;
|
|
5086
5118
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
5119
|
+
display: z.ZodOptional<z.ZodString>;
|
|
5087
5120
|
}, z.core.$strip>>;
|
|
5088
5121
|
}, z.core.$strip>>;
|
|
5089
5122
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5148,6 +5181,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5148
5181
|
label: z.ZodString;
|
|
5149
5182
|
type: z.ZodString;
|
|
5150
5183
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
5184
|
+
display: z.ZodOptional<z.ZodString>;
|
|
5151
5185
|
}, z.core.$strip>>;
|
|
5152
5186
|
}, z.core.$strip>>;
|
|
5153
5187
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5167,6 +5201,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5167
5201
|
label: z.ZodString;
|
|
5168
5202
|
type: z.ZodString;
|
|
5169
5203
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
5204
|
+
display: z.ZodOptional<z.ZodString>;
|
|
5170
5205
|
}, z.core.$strip>>;
|
|
5171
5206
|
}, z.core.$strip>>;
|
|
5172
5207
|
actions: z.ZodArray<z.ZodObject<{
|
|
@@ -5281,6 +5316,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5281
5316
|
receiptUrl: z.ZodNullable<z.ZodURL>;
|
|
5282
5317
|
refundedAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5283
5318
|
refundPendingAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5319
|
+
pointRefundedAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5284
5320
|
}, z.core.$strip>;
|
|
5285
5321
|
testPayment: z.ZodBoolean;
|
|
5286
5322
|
}, z.core.$strip>;
|
|
@@ -5433,4 +5469,4 @@ declare const storefrontStoreSchema: z.ZodObject<{
|
|
|
5433
5469
|
}, z.core.$strip>;
|
|
5434
5470
|
type StorefrontStore = z.infer<typeof storefrontStoreSchema>;
|
|
5435
5471
|
//#endregion
|
|
5436
|
-
export { ANALYTICS_VISITOR_HEADER as $,
|
|
5472
|
+
export { ANALYTICS_VISITOR_HEADER as $, productSortSchema as $i, storefrontCouponListQuerySchema as $n, PgProvider as $r, customInputEntrySchema as $t, FlowAction as A, analyticsIdsFromCookie as Aa, retryPaymentRequestSchema as Ai, createCustomerInquiryRequestSchema as An, CONTACT_PHONE_PATTERN as Ar, WritableReview as At, flowActionRequestSchema as B, ProductPage as Bi, MyCoupon as Bn, GuestInfo as Br, updateReviewRequestSchema as Bt, myOrderSchema as C, Cart as Ca, paymentOptionSchema as Ci, createInquiryRequestSchema as Cn, claimReturnAddressSchema as Cr, PublicReview as Ct, commerceNumberField as D, cartItemSchema as Da, remoteAreaSchema as Di, CreateCustomerInquiryRequest as Dn, myClaimSchema as Dr, UpdateReviewRequest as Dt, trackingStageResponseSchema as E, addCartItemRequestSchema as Ea, pgProviderSchema as Ei, publicInquirySchema as En, createClaimResultSchema as Er, ReviewSummary as Et, FlowState as F, CollectionProductParams as Fi, CheckoutPricingRequest as Fn, CheckoutSession as Fr, productReviewSortSchema as Ft, flowStateSchema as G, categoryNodeSchema as Gi, checkoutPricingSchema as Gn, PAYMENT_START_STATUS_VALUES as Gr, AddonSelection as Gt, flowActionSchema as H, ProductSort as Hi, StorefrontCouponListParams as Hn, KnownPaymentStartStatus as Hr, uploadTicketSchema as Ht, GuestFlowActionRequest as I, CollectionProductSortParam as Ii, CouponApplication as In, CreateCheckoutRequest as Ir, publicReviewSchema as It, orderStepSchema as J, collectionProductSortSchema as Ji, couponBenefitViewSchema as Jn, PaymentMessage as Jr, CustomInputView as Jt, guestFlowActionRequestSchema as K, collectionProductPageSchema as Ki, couponApplicationListSchema as Kn, PAYMENT_STATUS_VALUES as Kr, CustomInputEntry as Kt, ORDER_STEP_TYPES as L, ProductCard as Li, CouponResult as Ln, DeliveryQuoteRequest as Lr, reviewImageUploadRequestSchema as Lt, FlowActionResult as M, startPaymentRequestSchema as Mi, customerInquirySchema as Mn, CashReceiptRequest as Mr, createReviewResultSchema as Mt, FlowFieldValue as N, CategoryNode as Ni, ApplicableCoupon as Nn, CashReceiptType as Nr, myReviewSchema as Nt, formatOrderNo as O, cartSchema as Oa, residentNumberLike as Oi, CustomerInquiry as On, AvailablePaymentOption as Or, UpdateReviewResult as Ot, FlowInputField as P, CollectionProductPage as Pi, CheckoutPricing as Pn, CheckoutDelivery as Pr, productReviewQuerySchema as Pt, ANALYTICS_VISITOR_COOKIE as Q, productPageSchema as Qi, pricingAmountsSchema as Qn, PaymentStatus as Qr, addonSelectionSchema as Qt, OrderFlowActionResult as R, ProductDetail as Ri, MAX_COUPONS_PER_CHECKOUT as Rn, DeliveryQuoteResult as Rr, reviewPageSchema as Rt, myOrderItemSchema as S, AddCartItemRequest as Sa, paymentOptionListSchema as Si, PublicInquiry as Sn, claimReasonSchema as Sr, ProductReviewSort as St, purchaseDecisionResultSchema as T, UpdateCartItemRequest as Ta, paymentStatusSchema as Ti, productInquiryCategorySchema as Tn, createClaimRequestSchema as Tr, ReviewPage as Tt, flowFieldValueSchema as U, StorefrontCollection as Ui, applicableCouponSchema as Un, KnownPaymentStatus as Ur, writableReviewSchema as Ut, flowActionResultSchema as V, ProductSearchParams as Vi, StorefrontCoupon as Vn, KnownPaymentResult as Vr, updateReviewResultSchema as Vt, flowInputFieldSchema as W, StorefrontCollectionDetail as Wi, checkoutPricingRequestSchema as Wn, PAYMENT_RESULT_VALUES as Wr, AddonGroupView as Wt, ANALYTICS_SESSION_COOKIE as X, productDetailSchema as Xi, myCouponListQuerySchema as Xn, PaymentOption as Xr, OrderInputUploadRequest as Xt, ANALYTICS_MAX_BATCH_BYTES as Y, productCardSchema as Yi, couponResultSchema as Yn, PaymentMethod as Yr, OptionSelectionView as Yt, ANALYTICS_SESSION_HEADER as Z, productFacetsSchema as Zi, myCouponSchema as Zn, PaymentStart as Zr, addonGroupViewSchema as Zt, MyOrder as _, lineFulfillmentSchema as _a, guestInfoSchema as _i, updateProfileRequestSchema as _n, ClaimType as _r, createStorefrontSession as _t, StayView as a, PageInfo as aa, availablePaymentOptionSchema as ai, normalizeCustomInputValue as an, ConsentState as ar, analyticsBatchSchema as at, PurchaseDecisionResult as b, productCardFulfillmentSchema as ba, paymentMethodSchema as bi, CreateInquiryResult as bn, MyClaim as br, MyReview as bt, stayViewSchema as c, orderItemStatusSchema as ca, cashReceiptRequestSchema as ci, parseCustomInputValue as cn, consentActionSchema as cr, analyticsIdSchema as ct, StorefrontPointPolicy as d, LineFulfillment as da, checkoutSessionSchema as di, MemberAddressRequest as dn, consentStateSchema as dr, StorefrontClientOptions as dt, storefrontCollectionDetailSchema as ea, RemoteArea as ei, customInputLength as en, storefrontCouponSchema as er, AnalyticsBatch as et, memberPointEntryPageSchema as f, MyOrderItemFulfillmentSnapshot as fa, createCheckoutRequestSchema as fi, UpdateProfileRequest as fn, consentUpdateRequestSchema as fr, createStorefrontClient as ft, DeliveryTracking as g, UnknownFulfillmentView as ga, easyPayProviderSchema as gi, memberSchema as gn, ClaimReturnAddress as gr, StorefrontSessionOptions as gt, storefrontPointPolicySchema as h, ProductFulfillmentView as ha, easyPayProviderResponseSchema as hi, memberAddressSchema as hn, ClaimReason as hr, StorefrontSession as ht, StayRequest as i, OrderItemStatus as ia, StartPaymentRequest as ii, lineSelectionResponseShape as in, ConsentSource as ir, AnalyticsServerEventName as it, FlowActionRequest as j, shippingAddressInputSchema as ji, customerInquiryCategorySchema as jn, CashReceiptIdentityType as jr, createReviewRequestSchema as jt, parseOrderNo as k, updateCartItemRequestSchema as ka, responsePaymentMethodSchema as ki, CustomerInquiryCategory as kn, CASH_RECEIPT_METHODS as kr, UploadTicket as kt, MemberPointEntry as l, pageInfoSchema as la, cashReceiptTypeSchema as li, Member as ln, consentKindSchema as lr, analyticsServerEventNameSchema as lt, memberPointsSchema as m, ProductCardFulfillment as ma, deliveryQuoteSchema as mi, memberAddressRequestSchema as mn, ClaimPreview as mr, SessionStorage as mt, storefrontStoreSchema as n, storefrontCollectionSchema as na, RetryPaymentRequest as ni, customInputViewSchema as nn, ConsentAction as nr, AnalyticsClientEventName as nt, calendarDayViewSchema as o, PageParams as oa, cashReceiptAvailable as oi, optionSelectionViewSchema as on, ConsentUpdateRequest as or, analyticsClientEventNameSchema as ot, memberPointEntrySchema as p, PickupLocationView as pa, deliveryQuoteRequestSchema as pi, WishlistAddResult as pn, memberConsentsSchema as pr, STOREFRONT_SESSION_KEYS as pt, orderFlowActionResultSchema as q, collectionProductQuerySchema as qi, couponApplicationSchema as qn, PaymentFailureCategory as qr, CustomInputValueView as qt, CalendarDayView as r, ClaimStatus as ra, ShippingAddressInput as ri, lineSelectionRequestShape as rn, ConsentKind as rr, AnalyticsEventName as rt, stayRequestSchema as s, claimStatusSchema as sa, cashReceiptIdentityTypeOf as si, orderInputUploadRequestSchema as sn, MemberConsents as sr, analyticsClientEventSchema as st, StorefrontStore as t, storefrontCollectionListQuerySchema as ta, ResponsePaymentMethod as ti, customInputValueViewSchema as tn, storefrontCouponTargetSchema as tr, AnalyticsClientEvent as tt, MemberPoints as u, pageSchema as ua, checkoutDeliverySchema as ui, MemberAddress as un, consentSourceSchema as ur, StorefrontClient as ut, MyOrderItem as v, myOrderItemFulfillmentSnapshotSchema as va, paymentFailureCategorySchema as vi, wishlistAddResultSchema as vn, CreateClaimRequest as vr, CreateReviewRequest as vt, orderShippingAddressSchema as w, CartItem as wa, paymentStartSchema as wi, createInquiryResultSchema as wn, claimTypeSchema as wr, ReviewImageUploadRequest as wt, deliveryTrackingSchema as x, productFulfillmentViewSchema as xa, paymentOptionKey as xi, ProductInquiryCategory as xn, claimPreviewSchema as xr, ProductReviewParams as xt, OrderShippingAddress as y, pickupLocationViewSchema as ya, paymentMessageSchema as yi, CreateInquiryRequest as yn, CreateClaimResult as yr, CreateReviewResult as yt, OrderStep as z, ProductFacets as zi, MIN_PAYMENT_AMOUNT as zn, EasyPayProvider 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, 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 };
|
|
2
|
+
import { $ as ANALYTICS_VISITOR_HEADER, $i as productSortSchema, $n as storefrontCouponListQuerySchema, $r as PgProvider, $t as customInputEntrySchema, A as FlowAction, Aa as analyticsIdsFromCookie, Ai as retryPaymentRequestSchema, An as createCustomerInquiryRequestSchema, Ar as CONTACT_PHONE_PATTERN, At as WritableReview, B as flowActionRequestSchema, Bi as ProductPage, Bn as MyCoupon, Br as GuestInfo, Bt as updateReviewRequestSchema, C as myOrderSchema, Ca as Cart, Ci as paymentOptionSchema, Cn as createInquiryRequestSchema, Cr as claimReturnAddressSchema, Ct as PublicReview, D as commerceNumberField, Da as cartItemSchema, Di as remoteAreaSchema, Dn as CreateCustomerInquiryRequest, Dr as myClaimSchema, Dt as UpdateReviewRequest, E as trackingStageResponseSchema, Ea as addCartItemRequestSchema, Ei as pgProviderSchema, En as publicInquirySchema, Er as createClaimResultSchema, Et as ReviewSummary, F as FlowState, Fi as CollectionProductParams, Fn as CheckoutPricingRequest, Fr as CheckoutSession, Ft as productReviewSortSchema, G as flowStateSchema, Gi as categoryNodeSchema, Gn as checkoutPricingSchema, Gr as PAYMENT_START_STATUS_VALUES, Gt as AddonSelection, H as flowActionSchema, Hi as ProductSort, Hn as StorefrontCouponListParams, Hr as KnownPaymentStartStatus, Ht as uploadTicketSchema, I as GuestFlowActionRequest, Ii as CollectionProductSortParam, In as CouponApplication, Ir as CreateCheckoutRequest, It as publicReviewSchema, J as orderStepSchema, Ji as collectionProductSortSchema, Jn as couponBenefitViewSchema, Jr as PaymentMessage, Jt as CustomInputView, K as guestFlowActionRequestSchema, Ki as collectionProductPageSchema, Kn as couponApplicationListSchema, Kr as PAYMENT_STATUS_VALUES, Kt as CustomInputEntry, L as ORDER_STEP_TYPES, Li as ProductCard, Ln as CouponResult, Lr as DeliveryQuoteRequest, Lt as reviewImageUploadRequestSchema, M as FlowActionResult, Mi as startPaymentRequestSchema, Mn as customerInquirySchema, Mr as CashReceiptRequest, Mt as createReviewResultSchema, N as FlowFieldValue, Ni as CategoryNode, Nn as ApplicableCoupon, Nr as CashReceiptType, Nt as myReviewSchema, O as formatOrderNo, Oa as cartSchema, Oi as residentNumberLike, On as CustomerInquiry, Or as AvailablePaymentOption, Ot as UpdateReviewResult, P as FlowInputField, Pi as CollectionProductPage, Pn as CheckoutPricing, Pr as CheckoutDelivery, Pt as productReviewQuerySchema, Q as ANALYTICS_VISITOR_COOKIE, Qi as productPageSchema, Qn as pricingAmountsSchema, Qr as PaymentStatus, Qt as addonSelectionSchema, R as OrderFlowActionResult, Ri as ProductDetail, Rn as MAX_COUPONS_PER_CHECKOUT, Rr as DeliveryQuoteResult, Rt as reviewPageSchema, S as myOrderItemSchema, Sa as AddCartItemRequest, Si as paymentOptionListSchema, Sn as PublicInquiry, Sr as claimReasonSchema, St as ProductReviewSort, T as purchaseDecisionResultSchema, Ta as UpdateCartItemRequest, Ti as paymentStatusSchema, Tn as productInquiryCategorySchema, Tr as createClaimRequestSchema, Tt as ReviewPage, U as flowFieldValueSchema, Ui as StorefrontCollection, Un as applicableCouponSchema, Ur as KnownPaymentStatus, Ut as writableReviewSchema, V as flowActionResultSchema, Vi as ProductSearchParams, Vn as StorefrontCoupon, Vr as KnownPaymentResult, Vt as updateReviewResultSchema, W as flowInputFieldSchema, Wi as StorefrontCollectionDetail, Wn as checkoutPricingRequestSchema, Wr as PAYMENT_RESULT_VALUES, Wt as AddonGroupView, X as ANALYTICS_SESSION_COOKIE, Xi as productDetailSchema, Xn as myCouponListQuerySchema, Xr as PaymentOption, Xt as OrderInputUploadRequest, Y as ANALYTICS_MAX_BATCH_BYTES, Yi as productCardSchema, Yn as couponResultSchema, Yr as PaymentMethod, Yt as OptionSelectionView, Z as ANALYTICS_SESSION_HEADER, Zi as productFacetsSchema, Zn as myCouponSchema, Zr as PaymentStart, Zt as addonGroupViewSchema, _ as MyOrder, _a as lineFulfillmentSchema, _i as guestInfoSchema, _n as updateProfileRequestSchema, _r as ClaimType, _t as createStorefrontSession, a as StayView, aa as PageInfo, ai as availablePaymentOptionSchema, an as normalizeCustomInputValue, ar as ConsentState, at as analyticsBatchSchema, b as PurchaseDecisionResult, ba as productCardFulfillmentSchema, bi as paymentMethodSchema, bn as CreateInquiryResult, br as MyClaim, bt as MyReview, c as stayViewSchema, ca as orderItemStatusSchema, ci as cashReceiptRequestSchema, cn as parseCustomInputValue, cr as consentActionSchema, ct as analyticsIdSchema, d as StorefrontPointPolicy, da as LineFulfillment, di as checkoutSessionSchema, dn as MemberAddressRequest, dr as consentStateSchema, dt as StorefrontClientOptions, ea as storefrontCollectionDetailSchema, ei as RemoteArea, en as customInputLength, er as storefrontCouponSchema, et as AnalyticsBatch, f as memberPointEntryPageSchema, fa as MyOrderItemFulfillmentSnapshot, fi as createCheckoutRequestSchema, fn as UpdateProfileRequest, fr as consentUpdateRequestSchema, ft as createStorefrontClient, g as DeliveryTracking, ga as UnknownFulfillmentView, gi as easyPayProviderSchema, gn as memberSchema, gr as ClaimReturnAddress, gt as StorefrontSessionOptions, h as storefrontPointPolicySchema, ha as ProductFulfillmentView, hi as easyPayProviderResponseSchema, hn as memberAddressSchema, hr as ClaimReason, ht as StorefrontSession, i as StayRequest, ia as OrderItemStatus, ii as StartPaymentRequest, in as lineSelectionResponseShape, ir as ConsentSource, it as AnalyticsServerEventName, j as FlowActionRequest, ji as shippingAddressInputSchema, jn as customerInquiryCategorySchema, jr as CashReceiptIdentityType, jt as createReviewRequestSchema, k as parseOrderNo, ka as updateCartItemRequestSchema, ki as responsePaymentMethodSchema, kn as CustomerInquiryCategory, kr as CASH_RECEIPT_METHODS, kt as UploadTicket, l as MemberPointEntry, la as pageInfoSchema, li as cashReceiptTypeSchema, ln as Member, lr as consentKindSchema, lt as analyticsServerEventNameSchema, m as memberPointsSchema, ma as ProductCardFulfillment, mi as deliveryQuoteSchema, mn as memberAddressRequestSchema, mr as ClaimPreview, mt as SessionStorage, n as storefrontStoreSchema, na as storefrontCollectionSchema, ni as RetryPaymentRequest, nn as customInputViewSchema, nr as ConsentAction, nt as AnalyticsClientEventName, o as calendarDayViewSchema, oa as PageParams, oi as cashReceiptAvailable, on as optionSelectionViewSchema, or as ConsentUpdateRequest, ot as analyticsClientEventNameSchema, p as memberPointEntrySchema, pa as PickupLocationView, pi as deliveryQuoteRequestSchema, pn as WishlistAddResult, pr as memberConsentsSchema, pt as STOREFRONT_SESSION_KEYS, q as orderFlowActionResultSchema, qi as collectionProductQuerySchema, qn as couponApplicationSchema, qr as PaymentFailureCategory, qt as CustomInputValueView, r as CalendarDayView, ra as ClaimStatus, ri as ShippingAddressInput, rn as lineSelectionRequestShape, rr as ConsentKind, rt as AnalyticsEventName, s as stayRequestSchema, sa as claimStatusSchema, si as cashReceiptIdentityTypeOf, sn as orderInputUploadRequestSchema, sr as MemberConsents, st as analyticsClientEventSchema, t as StorefrontStore, ta as storefrontCollectionListQuerySchema, ti as ResponsePaymentMethod, tn as customInputValueViewSchema, tr as storefrontCouponTargetSchema, tt as AnalyticsClientEvent, u as MemberPoints, ua as pageSchema, ui as checkoutDeliverySchema, un as MemberAddress, ur as consentSourceSchema, ut as StorefrontClient, v as MyOrderItem, va as myOrderItemFulfillmentSnapshotSchema, vi as paymentFailureCategorySchema, vn as wishlistAddResultSchema, vr as CreateClaimRequest, vt as CreateReviewRequest, w as orderShippingAddressSchema, wa as CartItem, wi as paymentStartSchema, wn as createInquiryResultSchema, wr as claimTypeSchema, wt as ReviewImageUploadRequest, x as deliveryTrackingSchema, xa as productFulfillmentViewSchema, xi as paymentOptionKey, xn as ProductInquiryCategory, xr as claimPreviewSchema, xt as ProductReviewParams, y as OrderShippingAddress, ya as pickupLocationViewSchema, yi as paymentMessageSchema, yn as CreateInquiryRequest, yr as CreateClaimResult, yt as CreateReviewResult, z as OrderStep, zi as ProductFacets, zn as MIN_PAYMENT_AMOUNT, zr as EasyPayProvider, zt as reviewSummarySchema } from "./index-C3wcSykm.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, CONTACT_PHONE_PATTERN, 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,7 +1,7 @@
|
|
|
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 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-
|
|
4
|
-
import { $ 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-C3JB8ime.mjs";
|
|
4
|
+
import { $ as customInputValueViewSchema, A as responsePaymentMethodSchema, B as couponApplicationSchema, C as paymentOptionListSchema, D as pgProviderSchema, E as paymentStatusSchema, F as MIN_PAYMENT_AMOUNT, G as pricingAmountsSchema, H as couponResultSchema, I as applicableCouponSchema, J as storefrontCouponTargetSchema, K as storefrontCouponListQuerySchema, L as checkoutPricingRequestSchema, M as shippingAddressInputSchema, N as startPaymentRequestSchema, O as remoteAreaSchema, P as MAX_COUPONS_PER_CHECKOUT, Q as customInputLength, R as checkoutPricingSchema, S as paymentOptionKey, T as paymentStartSchema, U as myCouponListQuerySchema, V as couponBenefitViewSchema, W as myCouponSchema, X as addonSelectionSchema, Y as addonGroupViewSchema, Z as customInputEntrySchema, _ as easyPayProviderSchema, a as PAYMENT_STATUS_VALUES, at as orderInputUploadRequestSchema, b as paymentMessageSchema, c as cashReceiptIdentityTypeOf, ct as stayRequestSchema, d as checkoutDeliverySchema, dt as myOrderItemFulfillmentSnapshotSchema, et as customInputViewSchema, f as checkoutSessionSchema, ft as pickupLocationViewSchema, g as easyPayProviderResponseSchema, h as deliveryQuoteSchema, i as PAYMENT_START_STATUS_VALUES, it as optionSelectionViewSchema, j as retryPaymentRequestSchema, k as residentNumberLike, l as cashReceiptRequestSchema, lt as stayViewSchema, m as deliveryQuoteRequestSchema, mt as productFulfillmentViewSchema, n as CONTACT_PHONE_PATTERN, nt as lineSelectionResponseShape, o as availablePaymentOptionSchema, ot as parseCustomInputValue, p as createCheckoutRequestSchema, pt as productCardFulfillmentSchema, q as storefrontCouponSchema, r as PAYMENT_RESULT_VALUES, rt as normalizeCustomInputValue, s as cashReceiptAvailable, st as calendarDayViewSchema, t as CASH_RECEIPT_METHODS, tt as lineSelectionRequestShape, u as cashReceiptTypeSchema, ut as lineFulfillmentSchema, v as guestInfoSchema, w as paymentOptionSchema, x as paymentMethodSchema, y as paymentFailureCategorySchema, z as couponApplicationListSchema } from "./checkout-CmFcG8TT.mjs";
|
|
5
5
|
//#region src/session.ts
|
|
6
6
|
/** 세션 키 상수 — SDK가 소유한다. store-sdk와 겹치지 않는 별도 네임스페이스. */
|
|
7
7
|
const STOREFRONT_SESSION_KEYS = {
|
|
@@ -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, 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 };
|
|
128
|
+
export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, ApiError, CASH_RECEIPT_METHODS, CONTACT_PHONE_PATTERN, 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 { Br as GuestInfo, Mr as CashReceiptRequest, Qr as PaymentStatus, Xr as PaymentOption, Zr as PaymentStart, ft as createStorefrontClient, ii as StartPaymentRequest, ri as ShippingAddressInput } from "../index-C3wcSykm.mjs";
|
|
2
2
|
//#region src/payments/index.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* 스토어프론트 결제 — 브라우저 전용(`@sayren/storefront-sdk/payments`).
|
package/dist/payments/index.mjs
CHANGED
package/package.json
CHANGED
package/src/schemas/checkout.ts
CHANGED
|
@@ -288,10 +288,19 @@ export function paymentOptionKey(option: PaymentOption): string {
|
|
|
288
288
|
: `${option.pg}:${option.method}`;
|
|
289
289
|
}
|
|
290
290
|
|
|
291
|
+
/**
|
|
292
|
+
* 배송·주문 연락처 — 휴대폰(010 등), 050 안심번호(0503~0508), 070, 지역번호 일반 전화. 숫자만 받는다(하이픈 없이).
|
|
293
|
+
* 회원 가입의 휴대폰(`auth.ts`)은 본인 확인용이라 휴대폰만 받는다
|
|
294
|
+
*/
|
|
295
|
+
export const CONTACT_PHONE_PATTERN =
|
|
296
|
+
/^(?:01[0-9]{8,9}|050[0-9]{8,9}|070[0-9]{8}|02[0-9]{7,8}|0[3-6][1-5][0-9]{7,8})$/;
|
|
297
|
+
|
|
291
298
|
export const shippingAddressInputSchema = z.object({
|
|
292
299
|
addressId: z.string().optional(),
|
|
293
300
|
receiverName: z.string().min(1, "수령인명을 입력해주십시오").max(50),
|
|
294
|
-
phone: z
|
|
301
|
+
phone: z
|
|
302
|
+
.string()
|
|
303
|
+
.regex(CONTACT_PHONE_PATTERN, "연락처 형식이 아닙니다 (예: 01012345678, 050712345678)"),
|
|
295
304
|
zipCode: z.string().regex(/^[0-9]{5}$/, "우편번호는 5자리 숫자입니다"),
|
|
296
305
|
address1: z.string().min(1, "기본 주소를 입력해주십시오"),
|
|
297
306
|
address2: z.string().optional(),
|
|
@@ -303,7 +312,7 @@ export type ShippingAddressInput = z.infer<typeof shippingAddressInputSchema>;
|
|
|
303
312
|
|
|
304
313
|
export const guestInfoSchema = z.object({
|
|
305
314
|
name: z.string().min(1),
|
|
306
|
-
phone: z.string().regex(
|
|
315
|
+
phone: z.string().regex(CONTACT_PHONE_PATTERN),
|
|
307
316
|
email: z.email(),
|
|
308
317
|
orderPassword: z
|
|
309
318
|
.string()
|
package/src/schemas/claim.ts
CHANGED
|
@@ -41,6 +41,14 @@ export const createClaimResultSchema = z.object({
|
|
|
41
41
|
"클레임번호(이슈 #107) — `C` + YYMMDD(KST) + 숫자 8자리. 취소·반품·교환 접수 단위 번호이고 생성 후 바뀌지 않습니다",
|
|
42
42
|
),
|
|
43
43
|
status: z.literal("REQUESTED"),
|
|
44
|
+
approved: z
|
|
45
|
+
.boolean()
|
|
46
|
+
.optional()
|
|
47
|
+
.default(false)
|
|
48
|
+
.describe(
|
|
49
|
+
"접수와 함께 승인됐는가(#115) — 주문 흐름이 이 단계의 취소를 「주문 취소」(즉시)로 켰으면 판매자 승인 없이 바로 취소·환불된다. " +
|
|
50
|
+
"false면 판매자 확인을 기다린다. 서버는 항상 싣는다",
|
|
51
|
+
),
|
|
44
52
|
expectedRefundAmount: z
|
|
45
53
|
.number()
|
|
46
54
|
.int()
|
|
@@ -89,6 +89,12 @@ export const flowStateSchema = z.object({
|
|
|
89
89
|
label: z.string(),
|
|
90
90
|
type: z.string(),
|
|
91
91
|
value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]),
|
|
92
|
+
display: z
|
|
93
|
+
.string()
|
|
94
|
+
.optional()
|
|
95
|
+
.describe(
|
|
96
|
+
"화면에 보일 값 — 이름 붙인 선택지(`{ value, label }`)면 이름. 없으면 `value`를 그대로 보인다",
|
|
97
|
+
),
|
|
92
98
|
}),
|
|
93
99
|
),
|
|
94
100
|
})
|
|
@@ -188,7 +194,17 @@ export const flowActionResultSchema = z.object({
|
|
|
188
194
|
actions: z.array(flowActionSchema),
|
|
189
195
|
affectedOrderItemIds: z.array(z.string()),
|
|
190
196
|
claim: z
|
|
191
|
-
.object({
|
|
197
|
+
.object({
|
|
198
|
+
claimId: z.string(),
|
|
199
|
+
claimNo: z.string().nullable(),
|
|
200
|
+
approved: z
|
|
201
|
+
.boolean()
|
|
202
|
+
.optional()
|
|
203
|
+
.default(false)
|
|
204
|
+
.describe(
|
|
205
|
+
"즉시 취소(권한 방식 INSTANT)라 판매자 승인 없이 취소·환불했다. 서버는 항상 싣는다",
|
|
206
|
+
),
|
|
207
|
+
})
|
|
192
208
|
.optional()
|
|
193
209
|
.describe(
|
|
194
210
|
"취소·반품·교환 행동(하위 플로우 `core.claim.*`)이 접수한 클레임(#115). 클레임 API(`POST /me/order-items/{id}/claims`)와 같은 접수다. 다른 행동은 생략",
|
package/src/schemas/order.ts
CHANGED
|
@@ -199,6 +199,14 @@ export const myOrderSchema = z.object({
|
|
|
199
199
|
.describe(
|
|
200
200
|
"환불 예정 금액 (원, #115) — 판매자가 취소·반품을 승인했지만 결제 환불이 아직 끝나지 않은 몫이다. 판매자가 처리하면 `refundedAmount`로 옮겨진다. 서버는 항상 싣는다",
|
|
201
201
|
),
|
|
202
|
+
pointRefundedAmount: z
|
|
203
|
+
.number()
|
|
204
|
+
.int()
|
|
205
|
+
.optional()
|
|
206
|
+
.default(0)
|
|
207
|
+
.describe(
|
|
208
|
+
"취소·반품으로 돌려준 적립금 합계 (원, #93) — 현금 환불(`refundedAmount`)과 별개다. 적립금을 쓰지 않았거나 돌려준 것이 없으면 0. 서버는 항상 싣는다",
|
|
209
|
+
),
|
|
202
210
|
}),
|
|
203
211
|
testPayment: z
|
|
204
212
|
.boolean()
|