@sayren/storefront-sdk 0.20.5 → 0.20.6
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-D-cg8lLE.mjs → checkout-CE-r7SFw.mjs} +1 -0
- package/dist/{client-BGthSJZn.mjs → client-D8DDKutm.mjs} +1 -1
- package/dist/{index-DbEcdwIb.d.mts → index-Ca0AyapE.d.mts} +2 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +2 -2
- 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 +5 -0
package/dist/auth/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mt as ApiError, t as createStorefrontClient } from "../client-
|
|
1
|
+
import { Mt as ApiError, t as createStorefrontClient } from "../client-D8DDKutm.mjs";
|
|
2
2
|
//#region src/auth/index.ts
|
|
3
3
|
/** 소셜 로그인 실패 — 구매자가 취소했거나(`access_denied`) state가 맞지 않는다 */
|
|
4
4
|
var IdpCallbackError = class extends Error {
|
|
@@ -283,6 +283,7 @@ const checkoutSessionSchema = z.object({
|
|
|
283
283
|
lineId: z.string().optional().describe("주문서 줄 id(이슈 #59). 같은 `optionId`가 추가 선택·직접 입력이 달라 여러 줄에 나올 수 있어, 상품 쿠폰을 걸 줄은 이 값으로 지목한다. 서버는 항상 싣는다"),
|
|
284
284
|
productId: z.string(),
|
|
285
285
|
productName: z.string(),
|
|
286
|
+
thumbnailUrl: z.url().nullable().optional().describe("주문서 시점의 상품 대표 이미지. 없으면 null(이슈 #114). 옛 서버는 싣지 않는다"),
|
|
286
287
|
/** variantId. 옵션 없는 상품은 default variant id */
|
|
287
288
|
optionId: z.string().nullable(),
|
|
288
289
|
optionName: z.string().nullable(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ANALYTICS_VISITOR_HEADER, r as ANALYTICS_SESSION_HEADER } from "./analytics-CgD70OqH.mjs";
|
|
2
|
-
import { A as retryPaymentRequestSchema, F as applicableCouponSchema, G as addonGroupViewSchema, I as checkoutPricingRequestSchema, L as checkoutPricingSchema, M as startPaymentRequestSchema, Q as lineSelectionResponseShape, T as paymentStatusSchema, U as myCouponSchema, X as customInputViewSchema, Z as lineSelectionRequestShape, d as checkoutSessionSchema, f as createCheckoutRequestSchema, h as easyPayProviderResponseSchema, it as productFulfillmentViewSchema, k as responsePaymentMethodSchema, m as deliveryQuoteSchema, nt as myOrderItemFulfillmentSnapshotSchema, p as deliveryQuoteRequestSchema, rt as productCardFulfillmentSchema, tt as lineFulfillmentSchema, w as paymentStartSchema } from "./checkout-
|
|
2
|
+
import { A as retryPaymentRequestSchema, F as applicableCouponSchema, G as addonGroupViewSchema, I as checkoutPricingRequestSchema, L as checkoutPricingSchema, M as startPaymentRequestSchema, Q as lineSelectionResponseShape, T as paymentStatusSchema, U as myCouponSchema, X as customInputViewSchema, Z as lineSelectionRequestShape, d as checkoutSessionSchema, f as createCheckoutRequestSchema, h as easyPayProviderResponseSchema, it as productFulfillmentViewSchema, k as responsePaymentMethodSchema, m as deliveryQuoteSchema, nt as myOrderItemFulfillmentSnapshotSchema, p as deliveryQuoteRequestSchema, rt as productCardFulfillmentSchema, tt as lineFulfillmentSchema, w as paymentStartSchema } from "./checkout-CE-r7SFw.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/http.ts
|
|
5
5
|
/** 표준 엔벨로프의 $.error 상세 */
|
|
@@ -565,6 +565,7 @@ declare const checkoutSessionSchema: z.ZodObject<{
|
|
|
565
565
|
lineId: z.ZodOptional<z.ZodString>;
|
|
566
566
|
productId: z.ZodString;
|
|
567
567
|
productName: z.ZodString;
|
|
568
|
+
thumbnailUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
568
569
|
optionId: z.ZodNullable<z.ZodString>;
|
|
569
570
|
optionName: z.ZodNullable<z.ZodString>;
|
|
570
571
|
}, z.core.$strip>>;
|
|
@@ -2407,6 +2408,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2407
2408
|
optionId: string | null;
|
|
2408
2409
|
optionName: string | null;
|
|
2409
2410
|
lineId?: string | undefined;
|
|
2411
|
+
thumbnailUrl?: string | null | undefined;
|
|
2410
2412
|
}[];
|
|
2411
2413
|
amounts: {
|
|
2412
2414
|
productAmount: number;
|
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 analyticsIdSchema, $n as CheckoutSession, $r as CollectionProductParams, $t as CreateCustomerInquiryRequest, A as PurchaseDecisionResult, Ai as MyOrderItemFulfillmentSnapshot, An as consentKindSchema, Ar as createCheckoutRequestSchema, At as reviewSummarySchema, B as ANALYTICS_MAX_BATCH_BYTES, Bi as CartItem, Bn as MyClaim, Br as paymentOptionListSchema, Bt as memberAddressRequestSchema, C as memberPointEntrySchema, Ci as PageInfo, Cn as ConsentAction, Cr as availablePaymentOptionSchema, Ct as createReviewResultSchema, D as MyOrder, Di as pageInfoSchema, Dn as ConsentUpdateRequest, Dr as cashReceiptTypeSchema, Dt as publicReviewSchema, E as DeliveryTracking, Ei as orderItemStatusSchema, En as ConsentState, Er as cashReceiptRequestSchema, Et as productReviewSortSchema, F as purchaseDecisionResultSchema, Fi as myOrderItemFulfillmentSnapshotSchema, Fn as ClaimReason, Fr as guestInfoSchema, Ft as Member, G as AnalyticsBatch, Gi as updateCartItemRequestSchema, Gn as createClaimResultSchema, Gr as remoteAreaSchema, Gt as CreateInquiryRequest, H as ANALYTICS_SESSION_HEADER, Hi as addCartItemRequestSchema, Hn as claimReturnAddressSchema, Hr as paymentStartSchema, Ht as memberSchema, I as trackingStageResponseSchema, Ii as productCardFulfillmentSchema, In as ClaimReturnAddress, Ir as paymentFailureCategorySchema, It as MemberAddress, J as AnalyticsEventName, Jn as CASH_RECEIPT_METHODS, Jr as retryPaymentRequestSchema, Jt as PublicInquiry, K as AnalyticsClientEvent, Ki as analyticsIdsFromCookie, Kn as myClaimSchema, Kr as residentNumberLike, Kt as CreateInquiryResult, L as commerceNumberField, Li as productFulfillmentViewSchema, Ln as ClaimType, Lr as paymentMessageSchema, Lt as MemberAddressRequest, M as myOrderItemSchema, Mi as ProductFulfillmentView, Mn as consentStateSchema, Mr as deliveryQuoteSchema, Mt as updateReviewResultSchema, N as myOrderSchema, Ni as UnknownFulfillmentView, Nn as consentUpdateRequestSchema, Nr as easyPayProviderResponseSchema, Nt as uploadTicketSchema, O as MyOrderItem, Oi as pageSchema, On as MemberConsents, Or as checkoutDeliverySchema, Ot as reviewImageUploadRequestSchema, P as orderShippingAddressSchema, Pi as lineFulfillmentSchema, Pn as memberConsentsSchema, Pr as easyPayProviderSchema, Pt as writableReviewSchema, Q as analyticsClientEventSchema, Qn as CheckoutDelivery, Qr as CollectionProductPage, Qt as publicInquirySchema, R as formatOrderNo, Ri as AddCartItemRequest, Rn as CreateClaimRequest, Rr as paymentMethodSchema, Rt as UpdateProfileRequest, S as memberPointEntryPageSchema, Si as OrderItemStatus, Sn as pricingAmountsSchema, Sr as StartPaymentRequest, St as createReviewRequestSchema, T as storefrontPointPolicySchema, Ti as claimStatusSchema, Tn as ConsentSource, Tr as cashReceiptIdentityTypeOf, Tt as productReviewQuerySchema, U as ANALYTICS_VISITOR_COOKIE, Ui as cartItemSchema, Un as claimTypeSchema, Ur as paymentStatusSchema, Ut as updateProfileRequestSchema, V as ANALYTICS_SESSION_COOKIE, Vi as UpdateCartItemRequest, Vn as claimReasonSchema, Vr as paymentOptionSchema, Vt as memberAddressSchema, W as ANALYTICS_VISITOR_HEADER, Wi as cartSchema, Wn as createClaimRequestSchema, Wr as pgProviderSchema, Wt as wishlistAddResultSchema, X as analyticsBatchSchema, Xn as CashReceiptRequest, Xr as startPaymentRequestSchema, Xt as createInquiryResultSchema, Y as AnalyticsServerEventName, Yn as CashReceiptIdentityType, Yr as shippingAddressInputSchema, Yt as createInquiryRequestSchema, Z as analyticsClientEventNameSchema, Zn as CashReceiptType, Zr as CategoryNode, Zt as productInquiryCategorySchema, _ as normalizeCustomInputValue, _i as productSortSchema, _n as couponApplicationSchema, _r as PgProvider, _t as ReviewSummary, a as CustomInputEntry, ai as ProductSearchParams, an as ApplicableCoupon, ar as KnownPaymentResult, at as SessionStorage, b as MemberPoints, bi as storefrontCollectionSchema, bn as myCouponListQuerySchema, br as RetryPaymentRequest, bt as UploadTicket, c as OptionSelectionView, ci as StorefrontCollectionDetail, cn as CouponApplication, cr as PAYMENT_RESULT_VALUES, ct as createStorefrontSession, d as customInputEntrySchema, di as collectionProductQuerySchema, dn as MIN_PAYMENT_AMOUNT, dr as PaymentFailureCategory, dt as MyReview, ei as CollectionProductSortParam, en as CustomerInquiry, er as CreateCheckoutRequest, et as analyticsServerEventNameSchema, f as customInputLength, fi as collectionProductSortSchema, fn as MyCoupon, fr as PaymentMessage, ft as ProductReviewParams, g as lineSelectionResponseShape, gi as productPageSchema, gn as couponApplicationListSchema, gr as PaymentStatus, gt as ReviewPage, h as lineSelectionRequestShape, hi as productFacetsSchema, hn as checkoutPricingSchema, hr as PaymentStart, ht as ReviewImageUploadRequest, i as AddonSelection, ii as ProductPage, in as customerInquirySchema, ir as GuestInfo, it as STOREFRONT_SESSION_KEYS, j as deliveryTrackingSchema, ji as ProductCardFulfillment, jn as consentSourceSchema, jr as deliveryQuoteRequestSchema, jt as updateReviewRequestSchema, k as OrderShippingAddress, ki as LineFulfillment, kn as consentActionSchema, kr as checkoutSessionSchema, kt as reviewPageSchema, l as addonGroupViewSchema, li as categoryNodeSchema, ln as CouponResult, lr as PAYMENT_START_STATUS_VALUES, lt as CreateReviewRequest, m as customInputViewSchema, mi as productDetailSchema, mn as checkoutPricingRequestSchema, mr as PaymentOption, mt as PublicReview, n as storefrontStoreSchema, ni as ProductDetail, nn as createCustomerInquiryRequestSchema, nr as DeliveryQuoteResult, nt as StorefrontClientOptions, o as CustomInputValueView, oi as ProductSort, on as CheckoutPricing, or as KnownPaymentStartStatus, ot as StorefrontSession, p as customInputValueViewSchema, pi as productCardSchema, pn as applicableCouponSchema, pr as PaymentMethod, pt as ProductReviewSort, q as AnalyticsClientEventName, qn as AvailablePaymentOption, qr as responsePaymentMethodSchema, qt as ProductInquiryCategory, r as AddonGroupView, ri as ProductFacets, rn as customerInquiryCategorySchema, rr as EasyPayProvider, rt as createStorefrontClient, s as CustomInputView, si as StorefrontCollection, sn as CheckoutPricingRequest, sr as KnownPaymentStatus, st as StorefrontSessionOptions, t as StorefrontStore, ti as ProductCard, tn as CustomerInquiryCategory, tr as DeliveryQuoteRequest, tt as StorefrontClient, u as addonSelectionSchema, ui as collectionProductPageSchema, un as MAX_COUPONS_PER_CHECKOUT, ur as PAYMENT_STATUS_VALUES, ut as CreateReviewResult, v as optionSelectionViewSchema, vi as storefrontCollectionDetailSchema, vn as couponBenefitViewSchema, vr as RemoteArea, vt as UpdateReviewRequest, w as memberPointsSchema, wi as PageParams, wn as ConsentKind, wr as cashReceiptAvailable, wt as myReviewSchema, x as StorefrontPointPolicy, xi as ClaimStatus, xn as myCouponSchema, xr as ShippingAddressInput, xt as WritableReview, y as MemberPointEntry, yi as storefrontCollectionListQuerySchema, yn as couponResultSchema, yr as ResponsePaymentMethod, yt as UpdateReviewResult, z as parseOrderNo, zi as Cart, zn as CreateClaimResult, zr as paymentOptionKey, zt as WishlistAddResult } from "./index-
|
|
2
|
+
import { $ as analyticsIdSchema, $n as CheckoutSession, $r as CollectionProductParams, $t as CreateCustomerInquiryRequest, A as PurchaseDecisionResult, Ai as MyOrderItemFulfillmentSnapshot, An as consentKindSchema, Ar as createCheckoutRequestSchema, At as reviewSummarySchema, B as ANALYTICS_MAX_BATCH_BYTES, Bi as CartItem, Bn as MyClaim, Br as paymentOptionListSchema, Bt as memberAddressRequestSchema, C as memberPointEntrySchema, Ci as PageInfo, Cn as ConsentAction, Cr as availablePaymentOptionSchema, Ct as createReviewResultSchema, D as MyOrder, Di as pageInfoSchema, Dn as ConsentUpdateRequest, Dr as cashReceiptTypeSchema, Dt as publicReviewSchema, E as DeliveryTracking, Ei as orderItemStatusSchema, En as ConsentState, Er as cashReceiptRequestSchema, Et as productReviewSortSchema, F as purchaseDecisionResultSchema, Fi as myOrderItemFulfillmentSnapshotSchema, Fn as ClaimReason, Fr as guestInfoSchema, Ft as Member, G as AnalyticsBatch, Gi as updateCartItemRequestSchema, Gn as createClaimResultSchema, Gr as remoteAreaSchema, Gt as CreateInquiryRequest, H as ANALYTICS_SESSION_HEADER, Hi as addCartItemRequestSchema, Hn as claimReturnAddressSchema, Hr as paymentStartSchema, Ht as memberSchema, I as trackingStageResponseSchema, Ii as productCardFulfillmentSchema, In as ClaimReturnAddress, Ir as paymentFailureCategorySchema, It as MemberAddress, J as AnalyticsEventName, Jn as CASH_RECEIPT_METHODS, Jr as retryPaymentRequestSchema, Jt as PublicInquiry, K as AnalyticsClientEvent, Ki as analyticsIdsFromCookie, Kn as myClaimSchema, Kr as residentNumberLike, Kt as CreateInquiryResult, L as commerceNumberField, Li as productFulfillmentViewSchema, Ln as ClaimType, Lr as paymentMessageSchema, Lt as MemberAddressRequest, M as myOrderItemSchema, Mi as ProductFulfillmentView, Mn as consentStateSchema, Mr as deliveryQuoteSchema, Mt as updateReviewResultSchema, N as myOrderSchema, Ni as UnknownFulfillmentView, Nn as consentUpdateRequestSchema, Nr as easyPayProviderResponseSchema, Nt as uploadTicketSchema, O as MyOrderItem, Oi as pageSchema, On as MemberConsents, Or as checkoutDeliverySchema, Ot as reviewImageUploadRequestSchema, P as orderShippingAddressSchema, Pi as lineFulfillmentSchema, Pn as memberConsentsSchema, Pr as easyPayProviderSchema, Pt as writableReviewSchema, Q as analyticsClientEventSchema, Qn as CheckoutDelivery, Qr as CollectionProductPage, Qt as publicInquirySchema, R as formatOrderNo, Ri as AddCartItemRequest, Rn as CreateClaimRequest, Rr as paymentMethodSchema, Rt as UpdateProfileRequest, S as memberPointEntryPageSchema, Si as OrderItemStatus, Sn as pricingAmountsSchema, Sr as StartPaymentRequest, St as createReviewRequestSchema, T as storefrontPointPolicySchema, Ti as claimStatusSchema, Tn as ConsentSource, Tr as cashReceiptIdentityTypeOf, Tt as productReviewQuerySchema, U as ANALYTICS_VISITOR_COOKIE, Ui as cartItemSchema, Un as claimTypeSchema, Ur as paymentStatusSchema, Ut as updateProfileRequestSchema, V as ANALYTICS_SESSION_COOKIE, Vi as UpdateCartItemRequest, Vn as claimReasonSchema, Vr as paymentOptionSchema, Vt as memberAddressSchema, W as ANALYTICS_VISITOR_HEADER, Wi as cartSchema, Wn as createClaimRequestSchema, Wr as pgProviderSchema, Wt as wishlistAddResultSchema, X as analyticsBatchSchema, Xn as CashReceiptRequest, Xr as startPaymentRequestSchema, Xt as createInquiryResultSchema, Y as AnalyticsServerEventName, Yn as CashReceiptIdentityType, Yr as shippingAddressInputSchema, Yt as createInquiryRequestSchema, Z as analyticsClientEventNameSchema, Zn as CashReceiptType, Zr as CategoryNode, Zt as productInquiryCategorySchema, _ as normalizeCustomInputValue, _i as productSortSchema, _n as couponApplicationSchema, _r as PgProvider, _t as ReviewSummary, a as CustomInputEntry, ai as ProductSearchParams, an as ApplicableCoupon, ar as KnownPaymentResult, at as SessionStorage, b as MemberPoints, bi as storefrontCollectionSchema, bn as myCouponListQuerySchema, br as RetryPaymentRequest, bt as UploadTicket, c as OptionSelectionView, ci as StorefrontCollectionDetail, cn as CouponApplication, cr as PAYMENT_RESULT_VALUES, ct as createStorefrontSession, d as customInputEntrySchema, di as collectionProductQuerySchema, dn as MIN_PAYMENT_AMOUNT, dr as PaymentFailureCategory, dt as MyReview, ei as CollectionProductSortParam, en as CustomerInquiry, er as CreateCheckoutRequest, et as analyticsServerEventNameSchema, f as customInputLength, fi as collectionProductSortSchema, fn as MyCoupon, fr as PaymentMessage, ft as ProductReviewParams, g as lineSelectionResponseShape, gi as productPageSchema, gn as couponApplicationListSchema, gr as PaymentStatus, gt as ReviewPage, h as lineSelectionRequestShape, hi as productFacetsSchema, hn as checkoutPricingSchema, hr as PaymentStart, ht as ReviewImageUploadRequest, i as AddonSelection, ii as ProductPage, in as customerInquirySchema, ir as GuestInfo, it as STOREFRONT_SESSION_KEYS, j as deliveryTrackingSchema, ji as ProductCardFulfillment, jn as consentSourceSchema, jr as deliveryQuoteRequestSchema, jt as updateReviewRequestSchema, k as OrderShippingAddress, ki as LineFulfillment, kn as consentActionSchema, kr as checkoutSessionSchema, kt as reviewPageSchema, l as addonGroupViewSchema, li as categoryNodeSchema, ln as CouponResult, lr as PAYMENT_START_STATUS_VALUES, lt as CreateReviewRequest, m as customInputViewSchema, mi as productDetailSchema, mn as checkoutPricingRequestSchema, mr as PaymentOption, mt as PublicReview, n as storefrontStoreSchema, ni as ProductDetail, nn as createCustomerInquiryRequestSchema, nr as DeliveryQuoteResult, nt as StorefrontClientOptions, o as CustomInputValueView, oi as ProductSort, on as CheckoutPricing, or as KnownPaymentStartStatus, ot as StorefrontSession, p as customInputValueViewSchema, pi as productCardSchema, pn as applicableCouponSchema, pr as PaymentMethod, pt as ProductReviewSort, q as AnalyticsClientEventName, qn as AvailablePaymentOption, qr as responsePaymentMethodSchema, qt as ProductInquiryCategory, r as AddonGroupView, ri as ProductFacets, rn as customerInquiryCategorySchema, rr as EasyPayProvider, rt as createStorefrontClient, s as CustomInputView, si as StorefrontCollection, sn as CheckoutPricingRequest, sr as KnownPaymentStatus, st as StorefrontSessionOptions, t as StorefrontStore, ti as ProductCard, tn as CustomerInquiryCategory, tr as DeliveryQuoteRequest, tt as StorefrontClient, u as addonSelectionSchema, ui as collectionProductPageSchema, un as MAX_COUPONS_PER_CHECKOUT, ur as PAYMENT_STATUS_VALUES, ut as CreateReviewResult, v as optionSelectionViewSchema, vi as storefrontCollectionDetailSchema, vn as couponBenefitViewSchema, vr as RemoteArea, vt as UpdateReviewRequest, w as memberPointsSchema, wi as PageParams, wn as ConsentKind, wr as cashReceiptAvailable, wt as myReviewSchema, x as StorefrontPointPolicy, xi as ClaimStatus, xn as myCouponSchema, xr as ShippingAddressInput, xt as WritableReview, y as MemberPointEntry, yi as storefrontCollectionListQuerySchema, yn as couponResultSchema, yr as ResponsePaymentMethod, yt as UpdateReviewResult, z as parseOrderNo, zi as Cart, zn as CreateClaimResult, zr as paymentOptionKey, zt as WishlistAddResult } from "./index-Ca0AyapE.mjs";
|
|
3
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, Cart, CartItem, CashReceiptIdentityType, CashReceiptRequest, CashReceiptType, CategoryNode, CheckoutDelivery, CheckoutPricing, CheckoutPricingRequest, CheckoutSession, ClaimReason, ClaimReturnAddress, ClaimStatus, ClaimType, CollectionProductPage, CollectionProductParams, CollectionProductSortParam, ConsentAction, ConsentKind, ConsentSource, ConsentState, ConsentUpdateRequest, CouponApplication, CouponResult, CreateCheckoutRequest, CreateClaimRequest, CreateClaimResult, CreateCustomerInquiryRequest, CreateInquiryRequest, CreateInquiryResult, CreateReviewRequest, CreateReviewResult, CustomInputEntry, CustomInputValueView, CustomInputView, CustomerInquiry, CustomerInquiryCategory, DeliveryQuoteRequest, DeliveryQuoteResult, DeliveryTracking, EasyPayProvider, 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, OptionSelectionView, OrderItemStatus, OrderShippingAddress, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, PageInfo, PageParams, PaymentFailureCategory, PaymentMessage, PaymentMethod, PaymentOption, PaymentStart, PaymentStatus, PgProvider, 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, type StorefrontClient, type StorefrontClientOptions, StorefrontCollection, StorefrontCollectionDetail, 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, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, formatOrderNo, 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, orderItemStatusSchema, orderShippingAddressSchema, pageInfoSchema, pageSchema, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, 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, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, 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 categoryNodeSchema, A as wishlistAddResultSchema, At as withdrawRequestSchema, B as consentSourceSchema, C as orderShippingAddressSchema, Ct as idpTokenRequestSchema, D as memberAddressSchema, Dt as signupRequestSchema, E as memberAddressRequestSchema, Et as memberIdentitiesSchema, F as createCustomerInquiryRequestSchema, Ft as unwrapData, G as claimReturnAddressSchema, H as consentUpdateRequestSchema, I as customerInquiryCategorySchema, J as createClaimResultSchema, K as claimTypeSchema, L as customerInquirySchema, M as createInquiryResultSchema, Mt as ApiError, N as productInquiryCategorySchema, Nt as buildQuery, O as memberSchema, Ot as socialProviderSchema, P as publicInquirySchema, Pt as toApiError, Q as parseOrderNo, R as consentActionSchema, S as myOrderSchema, St as idpAuthorizeResponseSchema, T as trackingStageResponseSchema, Tt as loginRequestSchema, U as memberConsentsSchema, V as consentStateSchema, W as claimReasonSchema, X as commerceNumberField, Y as myClaimSchema, Z as formatOrderNo, _ as memberPointEntrySchema, _t as cartSchema, a as myReviewSchema, at as productFacetsSchema, b as deliveryTrackingSchema, bt as idpAgreementsSchema, c as publicReviewSchema, ct as storefrontCollectionDetailSchema, d as reviewSummarySchema, dt as claimStatusSchema, et as collectionProductPageSchema, f as updateReviewRequestSchema, ft as orderItemStatusSchema, g as memberPointEntryPageSchema, gt as cartItemSchema, h as writableReviewSchema, ht as addCartItemRequestSchema, i as createReviewResultSchema, it as productDetailSchema, j as createInquiryRequestSchema, jt as withdrawalBlockedDetailsSchema, k as updateProfileRequestSchema, kt as tokenPairSchema, l as reviewImageUploadRequestSchema, lt as storefrontCollectionListQuerySchema, m as uploadTicketSchema, mt as pageSchema, n as storefrontStoreSchema, nt as collectionProductSortSchema, o as productReviewQuerySchema, ot as productPageSchema, p as updateReviewResultSchema, pt as pageInfoSchema, q as createClaimRequestSchema, r as createReviewRequestSchema, rt as productCardSchema, s as productReviewSortSchema, st as productSortSchema, t as createStorefrontClient, tt as collectionProductQuerySchema, u as reviewPageSchema, ut as storefrontCollectionSchema, v as memberPointsSchema, vt as updateCartItemRequestSchema, w as purchaseDecisionResultSchema, wt as linkIdentityRequestSchema, x as myOrderItemSchema, xt as idpAuthorizeRequestSchema, y as storefrontPointPolicySchema, yt as anonymousSessionSchema, z as consentKindSchema } from "./client-
|
|
4
|
-
import { $ as normalizeCustomInputValue, A as retryPaymentRequestSchema, B as couponBenefitViewSchema, C as paymentOptionSchema, D as remoteAreaSchema, E as pgProviderSchema, F as applicableCouponSchema, G as addonGroupViewSchema, H as myCouponListQuerySchema, I as checkoutPricingRequestSchema, J as customInputLength, K as addonSelectionSchema, L as checkoutPricingSchema, M as startPaymentRequestSchema, N as MAX_COUPONS_PER_CHECKOUT, O as residentNumberLike, P as MIN_PAYMENT_AMOUNT, Q as lineSelectionResponseShape, R as couponApplicationListSchema, S as paymentOptionListSchema, T as paymentStatusSchema, U as myCouponSchema, V as couponResultSchema, W as pricingAmountsSchema, X as customInputViewSchema, Y as customInputValueViewSchema, Z as lineSelectionRequestShape, _ as guestInfoSchema, a as availablePaymentOptionSchema, b as paymentMethodSchema, c as cashReceiptRequestSchema, d as checkoutSessionSchema, et as optionSelectionViewSchema, f as createCheckoutRequestSchema, g as easyPayProviderSchema, h as easyPayProviderResponseSchema, i as PAYMENT_STATUS_VALUES, it as productFulfillmentViewSchema, j as shippingAddressInputSchema, k as responsePaymentMethodSchema, l as cashReceiptTypeSchema, m as deliveryQuoteSchema, n as PAYMENT_RESULT_VALUES, nt as myOrderItemFulfillmentSnapshotSchema, o as cashReceiptAvailable, p as deliveryQuoteRequestSchema, q as customInputEntrySchema, r as PAYMENT_START_STATUS_VALUES, rt as productCardFulfillmentSchema, s as cashReceiptIdentityTypeOf, t as CASH_RECEIPT_METHODS, tt as lineFulfillmentSchema, u as checkoutDeliverySchema, v as paymentFailureCategorySchema, w as paymentStartSchema, x as paymentOptionKey, y as paymentMessageSchema, z as couponApplicationSchema } from "./checkout-
|
|
3
|
+
import { $ as categoryNodeSchema, A as wishlistAddResultSchema, At as withdrawRequestSchema, B as consentSourceSchema, C as orderShippingAddressSchema, Ct as idpTokenRequestSchema, D as memberAddressSchema, Dt as signupRequestSchema, E as memberAddressRequestSchema, Et as memberIdentitiesSchema, F as createCustomerInquiryRequestSchema, Ft as unwrapData, G as claimReturnAddressSchema, H as consentUpdateRequestSchema, I as customerInquiryCategorySchema, J as createClaimResultSchema, K as claimTypeSchema, L as customerInquirySchema, M as createInquiryResultSchema, Mt as ApiError, N as productInquiryCategorySchema, Nt as buildQuery, O as memberSchema, Ot as socialProviderSchema, P as publicInquirySchema, Pt as toApiError, Q as parseOrderNo, R as consentActionSchema, S as myOrderSchema, St as idpAuthorizeResponseSchema, T as trackingStageResponseSchema, Tt as loginRequestSchema, U as memberConsentsSchema, V as consentStateSchema, W as claimReasonSchema, X as commerceNumberField, Y as myClaimSchema, Z as formatOrderNo, _ as memberPointEntrySchema, _t as cartSchema, a as myReviewSchema, at as productFacetsSchema, b as deliveryTrackingSchema, bt as idpAgreementsSchema, c as publicReviewSchema, ct as storefrontCollectionDetailSchema, d as reviewSummarySchema, dt as claimStatusSchema, et as collectionProductPageSchema, f as updateReviewRequestSchema, ft as orderItemStatusSchema, g as memberPointEntryPageSchema, gt as cartItemSchema, h as writableReviewSchema, ht as addCartItemRequestSchema, i as createReviewResultSchema, it as productDetailSchema, j as createInquiryRequestSchema, jt as withdrawalBlockedDetailsSchema, k as updateProfileRequestSchema, kt as tokenPairSchema, l as reviewImageUploadRequestSchema, lt as storefrontCollectionListQuerySchema, m as uploadTicketSchema, mt as pageSchema, n as storefrontStoreSchema, nt as collectionProductSortSchema, o as productReviewQuerySchema, ot as productPageSchema, p as updateReviewResultSchema, pt as pageInfoSchema, q as createClaimRequestSchema, r as createReviewRequestSchema, rt as productCardSchema, s as productReviewSortSchema, st as productSortSchema, t as createStorefrontClient, tt as collectionProductQuerySchema, u as reviewPageSchema, ut as storefrontCollectionSchema, v as memberPointsSchema, vt as updateCartItemRequestSchema, w as purchaseDecisionResultSchema, wt as linkIdentityRequestSchema, x as myOrderItemSchema, xt as idpAuthorizeRequestSchema, y as storefrontPointPolicySchema, yt as anonymousSessionSchema, z as consentKindSchema } from "./client-D8DDKutm.mjs";
|
|
4
|
+
import { $ as normalizeCustomInputValue, A as retryPaymentRequestSchema, B as couponBenefitViewSchema, C as paymentOptionSchema, D as remoteAreaSchema, E as pgProviderSchema, F as applicableCouponSchema, G as addonGroupViewSchema, H as myCouponListQuerySchema, I as checkoutPricingRequestSchema, J as customInputLength, K as addonSelectionSchema, L as checkoutPricingSchema, M as startPaymentRequestSchema, N as MAX_COUPONS_PER_CHECKOUT, O as residentNumberLike, P as MIN_PAYMENT_AMOUNT, Q as lineSelectionResponseShape, R as couponApplicationListSchema, S as paymentOptionListSchema, T as paymentStatusSchema, U as myCouponSchema, V as couponResultSchema, W as pricingAmountsSchema, X as customInputViewSchema, Y as customInputValueViewSchema, Z as lineSelectionRequestShape, _ as guestInfoSchema, a as availablePaymentOptionSchema, b as paymentMethodSchema, c as cashReceiptRequestSchema, d as checkoutSessionSchema, et as optionSelectionViewSchema, f as createCheckoutRequestSchema, g as easyPayProviderSchema, h as easyPayProviderResponseSchema, i as PAYMENT_STATUS_VALUES, it as productFulfillmentViewSchema, j as shippingAddressInputSchema, k as responsePaymentMethodSchema, l as cashReceiptTypeSchema, m as deliveryQuoteSchema, n as PAYMENT_RESULT_VALUES, nt as myOrderItemFulfillmentSnapshotSchema, o as cashReceiptAvailable, p as deliveryQuoteRequestSchema, q as customInputEntrySchema, r as PAYMENT_START_STATUS_VALUES, rt as productCardFulfillmentSchema, s as cashReceiptIdentityTypeOf, t as CASH_RECEIPT_METHODS, tt as lineFulfillmentSchema, u as checkoutDeliverySchema, v as paymentFailureCategorySchema, w as paymentStartSchema, x as paymentOptionKey, y as paymentMessageSchema, z as couponApplicationSchema } from "./checkout-CE-r7SFw.mjs";
|
|
5
5
|
//#region src/session.ts
|
|
6
6
|
/** 세션 키 상수 — SDK가 소유한다. store-sdk와 겹치지 않는 별도 네임스페이스. */
|
|
7
7
|
const STOREFRONT_SESSION_KEYS = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Sr as StartPaymentRequest, Xn as CashReceiptRequest, gr as PaymentStatus, hr as PaymentStart, ir as GuestInfo, mr as PaymentOption, rt as createStorefrontClient, xr as ShippingAddressInput } from "../index-
|
|
1
|
+
import { Sr as StartPaymentRequest, Xn as CashReceiptRequest, gr as PaymentStatus, hr as PaymentStart, ir as GuestInfo, mr as PaymentOption, rt as createStorefrontClient, xr as ShippingAddressInput } from "../index-Ca0AyapE.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
|
@@ -71,6 +71,11 @@ export const checkoutSessionSchema = z.object({
|
|
|
71
71
|
),
|
|
72
72
|
productId: z.string(),
|
|
73
73
|
productName: z.string(),
|
|
74
|
+
thumbnailUrl: z
|
|
75
|
+
.url()
|
|
76
|
+
.nullable()
|
|
77
|
+
.optional()
|
|
78
|
+
.describe("주문서 시점의 상품 대표 이미지. 없으면 null(이슈 #114). 옛 서버는 싣지 않는다"),
|
|
74
79
|
/** variantId. 옵션 없는 상품은 default variant id */
|
|
75
80
|
optionId: z.string().nullable(),
|
|
76
81
|
optionName: z.string().nullable(),
|