@sayren/storefront-sdk 0.20.15 → 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-ZwNr8sU-.mjs → client-C3JB8ime.mjs} +1 -1
- package/dist/{index-DkZFHWq7.d.mts → index-C3wcSykm.d.mts} +6 -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/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 상세 */
|
|
@@ -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;
|
|
@@ -5464,4 +5469,4 @@ declare const storefrontStoreSchema: z.ZodObject<{
|
|
|
5464
5469
|
}, z.core.$strip>;
|
|
5465
5470
|
type StorefrontStore = z.infer<typeof storefrontStoreSchema>;
|
|
5466
5471
|
//#endregion
|
|
5467
|
-
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()
|