@sayren/storefront-sdk 0.20.7 → 0.20.9

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/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 CASH_RECEIPT_METHODS, $r as retryPaymentRequestSchema, $t as CreateCustomerInquiryRequest, A as PurchaseDecisionResult, Ai as claimStatusSchema, An as ConsentSource, Ar as cashReceiptIdentityTypeOf, At as reviewSummarySchema, B as ANALYTICS_MAX_BATCH_BYTES, Bi as myOrderItemFulfillmentSnapshotSchema, Bn as ClaimReason, Br as guestInfoSchema, Bt as memberAddressRequestSchema, C as memberPointEntrySchema, Ci as storefrontCollectionDetailSchema, Cn as myCouponSchema, Cr as RemoteArea, Ct as createReviewResultSchema, D as MyOrder, Di as OrderItemStatus, Dn as storefrontCouponTargetSchema, Dr as StartPaymentRequest, Dt as publicReviewSchema, E as DeliveryTracking, Ei as ClaimStatus, En as storefrontCouponSchema, Er as ShippingAddressInput, Et as productReviewSortSchema, F as purchaseDecisionResultSchema, Fi as MyOrderItemFulfillmentSnapshot, Fn as consentKindSchema, Fr as createCheckoutRequestSchema, Ft as Member, G as AnalyticsBatch, Gi as CartItem, Gn as MyClaim, Gr as paymentOptionListSchema, Gt as CreateInquiryRequest, H as ANALYTICS_SESSION_HEADER, Hi as productFulfillmentViewSchema, Hn as ClaimType, Hr as paymentMessageSchema, Ht as memberSchema, I as trackingStageResponseSchema, Ii as ProductCardFulfillment, In as consentSourceSchema, Ir as deliveryQuoteRequestSchema, It as MemberAddress, J as AnalyticsEventName, Ji as cartItemSchema, Jn as claimTypeSchema, Jr as paymentStatusSchema, Jt as PublicInquiry, K as AnalyticsClientEvent, Ki as UpdateCartItemRequest, Kn as claimReasonSchema, Kr as paymentOptionSchema, Kt as CreateInquiryResult, L as commerceNumberField, Li as ProductFulfillmentView, Ln as consentStateSchema, Lr as deliveryQuoteSchema, Lt as MemberAddressRequest, M as myOrderItemSchema, Mi as pageInfoSchema, Mn as ConsentUpdateRequest, Mr as cashReceiptTypeSchema, Mt as updateReviewResultSchema, N as myOrderSchema, Ni as pageSchema, Nn as MemberConsents, Nr as checkoutDeliverySchema, Nt as uploadTicketSchema, O as MyOrderItem, Oi as PageInfo, On as ConsentAction, Or as availablePaymentOptionSchema, Ot as reviewImageUploadRequestSchema, P as orderShippingAddressSchema, Pi as LineFulfillment, Pn as consentActionSchema, Pr as checkoutSessionSchema, Pt as writableReviewSchema, Q as analyticsClientEventSchema, Qn as AvailablePaymentOption, Qr as responsePaymentMethodSchema, Qt as publicInquirySchema, R as formatOrderNo, Ri as UnknownFulfillmentView, Rn as consentUpdateRequestSchema, Rr as easyPayProviderResponseSchema, Rt as UpdateProfileRequest, S as memberPointEntryPageSchema, Si as productSortSchema, Sn as myCouponListQuerySchema, Sr as PgProvider, St as createReviewRequestSchema, T as storefrontPointPolicySchema, Ti as storefrontCollectionSchema, Tn as storefrontCouponListQuerySchema, Tr as RetryPaymentRequest, Tt as productReviewQuerySchema, U as ANALYTICS_VISITOR_COOKIE, Ui as AddCartItemRequest, Un as CreateClaimRequest, Ur as paymentMethodSchema, Ut as updateProfileRequestSchema, V as ANALYTICS_SESSION_COOKIE, Vi as productCardFulfillmentSchema, Vn as ClaimReturnAddress, Vr as paymentFailureCategorySchema, Vt as memberAddressSchema, W as ANALYTICS_VISITOR_HEADER, Wi as Cart, Wn as CreateClaimResult, Wr as paymentOptionKey, Wt as wishlistAddResultSchema, X as analyticsBatchSchema, Xi as updateCartItemRequestSchema, Xn as createClaimResultSchema, Xr as remoteAreaSchema, Xt as createInquiryResultSchema, Y as AnalyticsServerEventName, Yi as cartSchema, Yn as createClaimRequestSchema, Yr as pgProviderSchema, Yt as createInquiryRequestSchema, Z as analyticsClientEventNameSchema, Zi as analyticsIdsFromCookie, Zn as myClaimSchema, Zr as residentNumberLike, Zt as productInquiryCategorySchema, _ as normalizeCustomInputValue, _i as collectionProductSortSchema, _n as checkoutPricingSchema, _r as PaymentMessage, _t as ReviewSummary, a as CustomInputEntry, ai as CollectionProductSortParam, an as ApplicableCoupon, ar as CreateCheckoutRequest, at as SessionStorage, b as MemberPoints, bi as productFacetsSchema, bn as couponBenefitViewSchema, br as PaymentStart, bt as UploadTicket, c as OptionSelectionView, ci as ProductFacets, cn as CouponApplication, cr as EasyPayProvider, ct as createStorefrontSession, d as customInputEntrySchema, di as ProductSort, dn as MIN_PAYMENT_AMOUNT, dr as KnownPaymentStartStatus, dt as MyReview, ei as shippingAddressInputSchema, en as CustomerInquiry, er as CashReceiptIdentityType, et as analyticsServerEventNameSchema, f as customInputLength, fi as StorefrontCollection, fn as MyCoupon, fr as KnownPaymentStatus, ft as ProductReviewParams, g as lineSelectionResponseShape, gi as collectionProductQuerySchema, gn as checkoutPricingRequestSchema, gr as PaymentFailureCategory, gt as ReviewPage, h as lineSelectionRequestShape, hi as collectionProductPageSchema, hn as applicableCouponSchema, hr as PAYMENT_STATUS_VALUES, ht as ReviewImageUploadRequest, i as AddonSelection, ii as CollectionProductParams, in as customerInquirySchema, ir as CheckoutSession, it as STOREFRONT_SESSION_KEYS, j as deliveryTrackingSchema, ji as orderItemStatusSchema, jn as ConsentState, jr as cashReceiptRequestSchema, jt as updateReviewRequestSchema, k as OrderShippingAddress, ki as PageParams, kn as ConsentKind, kr as cashReceiptAvailable, kt as reviewPageSchema, l as addonGroupViewSchema, li as ProductPage, ln as CouponResult, lr as GuestInfo, lt as CreateReviewRequest, m as customInputViewSchema, mi as categoryNodeSchema, mn as StorefrontCouponListParams, mr as PAYMENT_START_STATUS_VALUES, mt as PublicReview, n as storefrontStoreSchema, ni as CategoryNode, nn as createCustomerInquiryRequestSchema, nr as CashReceiptType, nt as StorefrontClientOptions, o as CustomInputValueView, oi as ProductCard, on as CheckoutPricing, or as DeliveryQuoteRequest, ot as StorefrontSession, p as customInputValueViewSchema, pi as StorefrontCollectionDetail, pn as StorefrontCoupon, pr as PAYMENT_RESULT_VALUES, pt as ProductReviewSort, q as AnalyticsClientEventName, qi as addCartItemRequestSchema, qn as claimReturnAddressSchema, qr as paymentStartSchema, qt as ProductInquiryCategory, r as AddonGroupView, ri as CollectionProductPage, rn as customerInquiryCategorySchema, rr as CheckoutDelivery, rt as createStorefrontClient, s as CustomInputView, si as ProductDetail, sn as CheckoutPricingRequest, sr as DeliveryQuoteResult, st as StorefrontSessionOptions, t as StorefrontStore, ti as startPaymentRequestSchema, tn as CustomerInquiryCategory, tr as CashReceiptRequest, tt as StorefrontClient, u as addonSelectionSchema, ui as ProductSearchParams, un as MAX_COUPONS_PER_CHECKOUT, ur as KnownPaymentResult, ut as CreateReviewResult, v as optionSelectionViewSchema, vi as productCardSchema, vn as couponApplicationListSchema, vr as PaymentMethod, vt as UpdateReviewRequest, w as memberPointsSchema, wi as storefrontCollectionListQuerySchema, wn as pricingAmountsSchema, wr as ResponsePaymentMethod, wt as myReviewSchema, x as StorefrontPointPolicy, xi as productPageSchema, xn as couponResultSchema, xr as PaymentStatus, xt as WritableReview, y as MemberPointEntry, yi as productDetailSchema, yn as couponApplicationSchema, yr as PaymentOption, yt as UpdateReviewResult, z as parseOrderNo, zi as lineFulfillmentSchema, zn as memberConsentsSchema, zr as easyPayProviderSchema, zt as WishlistAddResult } from "./index-atHaDBC3.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, 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, 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, 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, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
2
+ import { $ as FlowInputField, $i as PageInfo, $n as ConsentAction, $r as availablePaymentOptionSchema, $t as reviewImageUploadRequestSchema, A as StorefrontPointPolicy, Ai as CollectionProductSortParam, An as ApplicableCoupon, Ar as CreateCheckoutRequest, At as SessionStorage, B as deliveryTrackingSchema, Bi as collectionProductPageSchema, Bn as applicableCouponSchema, Br as PAYMENT_STATUS_VALUES, Bt as ReviewImageUploadRequest, C as lineSelectionResponseShape, Ca as updateCartItemRequestSchema, Ci as responsePaymentMethodSchema, Cn as publicInquirySchema, Cr as AvailablePaymentOption, Ct as analyticsClientEventSchema, D as parseCustomInputValue, Di as CategoryNode, Dn as createCustomerInquiryRequestSchema, Dr as CashReceiptType, Dt as StorefrontClientOptions, E as orderInputUploadRequestSchema, Ei as startPaymentRequestSchema, En as CustomerInquiryCategory, Er as CashReceiptRequest, Et as StorefrontClient, F as DeliveryTracking, Fi as ProductSearchParams, Fn as MAX_COUPONS_PER_CHECKOUT, Fr as KnownPaymentResult, Ft as CreateReviewResult, G as trackingStageResponseSchema, Gi as productFacetsSchema, Gn as couponBenefitViewSchema, Gr as PaymentStart, Gt as UploadTicket, H as myOrderSchema, Hi as collectionProductSortSchema, Hn as checkoutPricingSchema, Hr as PaymentMessage, Ht as ReviewSummary, I as MyOrder, Ii as ProductSort, In as MIN_PAYMENT_AMOUNT, Ir as KnownPaymentStartStatus, It as MyReview, J as parseOrderNo, Ji as storefrontCollectionDetailSchema, Jn as myCouponSchema, Jr as RemoteArea, Jt as createReviewResultSchema, K as commerceNumberField, Ki as productPageSchema, Kn as couponResultSchema, Kr as PaymentStatus, Kt as WritableReview, L as MyOrderItem, Li as StorefrontCollection, Ln as MyCoupon, Lr as KnownPaymentStatus, Lt as ProductReviewParams, M as memberPointEntrySchema, Mi as ProductDetail, Mn as CheckoutPricingRequest, Mr as DeliveryQuoteResult, Mt as StorefrontSessionOptions, N as memberPointsSchema, Ni as ProductFacets, Nn as CouponApplication, Nr as EasyPayProvider, Nt as createStorefrontSession, O as MemberPointEntry, Oi as CollectionProductPage, On as customerInquiryCategorySchema, Or as CheckoutDelivery, Ot as createStorefrontClient, P as storefrontPointPolicySchema, Pi as ProductPage, Pn as CouponResult, Pr as GuestInfo, Pt as CreateReviewRequest, Q as FlowFieldValue, Qi as OrderItemStatus, Qn as storefrontCouponTargetSchema, Qr as StartPaymentRequest, Qt as publicReviewSchema, R as OrderShippingAddress, Ri as StorefrontCollectionDetail, Rn as StorefrontCoupon, Rr as PAYMENT_RESULT_VALUES, Rt as ProductReviewSort, S as lineSelectionRequestShape, Sa as cartSchema, Si as residentNumberLike, Sn as productInquiryCategorySchema, Sr as myClaimSchema, St as analyticsClientEventNameSchema, T as optionSelectionViewSchema, Ti as shippingAddressInputSchema, Tn as CustomerInquiry, Tr as CashReceiptIdentityType, Tt as analyticsServerEventNameSchema, U as orderShippingAddressSchema, Ui as productCardSchema, Un as couponApplicationListSchema, Ur as PaymentMethod, Ut as UpdateReviewRequest, V as myOrderItemSchema, Vi as collectionProductQuerySchema, Vn as checkoutPricingRequestSchema, Vr as PaymentFailureCategory, Vt as ReviewPage, W as purchaseDecisionResultSchema, Wi as productDetailSchema, Wn as couponApplicationSchema, Wr as PaymentOption, Wt as UpdateReviewResult, X as FlowActionRequest, Xi as storefrontCollectionSchema, Xn as storefrontCouponListQuerySchema, Xr as RetryPaymentRequest, Xt as productReviewQuerySchema, Y as FlowAction, Yi as storefrontCollectionListQuerySchema, Yn as pricingAmountsSchema, Yr as ResponsePaymentMethod, Yt as myReviewSchema, Z as FlowActionResult, Zi as ClaimStatus, Zn as storefrontCouponSchema, Zr as ShippingAddressInput, Zt as productReviewSortSchema, _ as addonSelectionSchema, _a as Cart, _i as paymentOptionSchema, _n as CreateInquiryResult, _r as claimReasonSchema, _t as AnalyticsClientEvent, a as StayView, aa as LineFulfillment, ai as checkoutSessionSchema, an as writableReviewSchema, ar as consentActionSchema, at as flowActionSchema, b as customInputValueViewSchema, ba as addCartItemRequestSchema, bi as pgProviderSchema, bn as createInquiryRequestSchema, br as createClaimRequestSchema, bt as AnalyticsServerEventName, c as stayViewSchema, ca as ProductCardFulfillment, ci as deliveryQuoteSchema, cn as MemberAddressRequest, cr as consentStateSchema, ct as flowStateSchema, d as CustomInputEntry, da as lineFulfillmentSchema, di as guestInfoSchema, dn as memberAddressRequestSchema, dr as ClaimReason, dt as ANALYTICS_MAX_BATCH_BYTES, ea as PageParams, ei as cashReceiptAvailable, en as reviewPageSchema, er as ConsentKind, et as FlowState, f as CustomInputValueView, fa as myOrderItemFulfillmentSnapshotSchema, fi as paymentFailureCategorySchema, fn as memberAddressSchema, fr as ClaimReturnAddress, ft as ANALYTICS_SESSION_COOKIE, g as addonGroupViewSchema, ga as AddCartItemRequest, gi as paymentOptionListSchema, gn as CreateInquiryRequest, gr as MyClaim, gt as AnalyticsBatch, h as OrderInputUploadRequest, ha as productFulfillmentViewSchema, hi as paymentOptionKey, hn as wishlistAddResultSchema, hr as CreateClaimResult, ht as ANALYTICS_VISITOR_HEADER, i as StayRequest, ia as pageSchema, ii as checkoutDeliverySchema, in as uploadTicketSchema, ir as MemberConsents, it as flowActionResultSchema, j as memberPointEntryPageSchema, ji as ProductCard, jn as CheckoutPricing, jr as DeliveryQuoteRequest, jt as StorefrontSession, k as MemberPoints, ki as CollectionProductParams, kn as customerInquirySchema, kr as CheckoutSession, kt as STOREFRONT_SESSION_KEYS, l as AddonGroupView, la as ProductFulfillmentView, li as easyPayProviderResponseSchema, ln as UpdateProfileRequest, lr as consentUpdateRequestSchema, lt as guestFlowActionRequestSchema, m as OptionSelectionView, ma as productCardFulfillmentSchema, mi as paymentMethodSchema, mn as updateProfileRequestSchema, mr as CreateClaimRequest, mt as ANALYTICS_VISITOR_COOKIE, n as storefrontStoreSchema, na as orderItemStatusSchema, ni as cashReceiptRequestSchema, nn as updateReviewRequestSchema, nr as ConsentState, nt as OrderFlowActionResult, o as calendarDayViewSchema, oa as MyOrderItemFulfillmentSnapshot, oi as createCheckoutRequestSchema, on as Member, or as consentKindSchema, ot as flowFieldValueSchema, p as CustomInputView, pa as pickupLocationViewSchema, pi as paymentMessageSchema, pn as memberSchema, pr as ClaimType, pt as ANALYTICS_SESSION_HEADER, q as formatOrderNo, qi as productSortSchema, qn as myCouponListQuerySchema, qr as PgProvider, qt as createReviewRequestSchema, r as CalendarDayView, ra as pageInfoSchema, ri as cashReceiptTypeSchema, rn as updateReviewResultSchema, rr as ConsentUpdateRequest, rt as flowActionRequestSchema, s as stayRequestSchema, sa as PickupLocationView, si as deliveryQuoteRequestSchema, sn as MemberAddress, sr as consentSourceSchema, st as flowInputFieldSchema, t as StorefrontStore, ta as claimStatusSchema, ti as cashReceiptIdentityTypeOf, tn as reviewSummarySchema, tr as ConsentSource, tt as GuestFlowActionRequest, u as AddonSelection, ua as UnknownFulfillmentView, ui as easyPayProviderSchema, un as WishlistAddResult, ur as memberConsentsSchema, ut as orderFlowActionResultSchema, v as customInputEntrySchema, va as CartItem, vi as paymentStartSchema, vn as ProductInquiryCategory, vr as claimReturnAddressSchema, vt as AnalyticsClientEventName, w as normalizeCustomInputValue, wa as analyticsIdsFromCookie, wi as retryPaymentRequestSchema, wn as CreateCustomerInquiryRequest, wr as CASH_RECEIPT_METHODS, wt as analyticsIdSchema, x as customInputViewSchema, xa as cartItemSchema, xi as remoteAreaSchema, xn as createInquiryResultSchema, xr as createClaimResultSchema, xt as analyticsBatchSchema, y as customInputLength, ya as UpdateCartItemRequest, yi as paymentStatusSchema, yn as PublicInquiry, yr as claimTypeSchema, yt as AnalyticsEventName, z as PurchaseDecisionResult, zi as categoryNodeSchema, zn as StorefrontCouponListParams, zr as PAYMENT_START_STATUS_VALUES, zt as PublicReview } from "./index-BLjQQj49.mjs";
3
+ export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, AddCartItemRequest, AddonGroupView, AddonSelection, AnalyticsBatch, AnalyticsClientEvent, AnalyticsClientEventName, AnalyticsEventName, AnalyticsServerEventName, AnonymousSession, ApiError, ApplicableCoupon, AvailablePaymentOption, CASH_RECEIPT_METHODS, CalendarDayView, Cart, CartItem, CashReceiptIdentityType, CashReceiptRequest, CashReceiptType, CategoryNode, CheckoutDelivery, CheckoutPricing, CheckoutPricingRequest, CheckoutSession, 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, OptionSelectionView, OrderFlowActionResult, OrderInputUploadRequest, OrderItemStatus, OrderShippingAddress, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, PageInfo, PageParams, PaymentFailureCategory, PaymentMessage, PaymentMethod, PaymentOption, PaymentStart, PaymentStatus, PgProvider, PickupLocationView, ProductCard, ProductCardFulfillment, ProductDetail, ProductFacets, ProductFulfillmentView, ProductInquiryCategory, ProductPage, ProductReviewParams, ProductReviewSort, ProductSearchParams, ProductSort, PublicInquiry, PublicReview, PurchaseDecisionResult, type Query, RemoteArea, ResponsePaymentMethod, RetryPaymentRequest, ReviewImageUploadRequest, ReviewPage, ReviewSummary, STOREFRONT_SESSION_KEYS, type SessionStorage, ShippingAddressInput, SignupRequest, SocialProvider, StartPaymentRequest, StayRequest, StayView, type StorefrontClient, type StorefrontClientOptions, StorefrontCollection, StorefrontCollectionDetail, StorefrontCoupon, StorefrontCouponListParams, StorefrontPointPolicy, type StorefrontSession, type StorefrontSessionOptions, StorefrontStore, TokenPair, type TokenSource, UnknownFulfillmentView, UpdateCartItemRequest, UpdateProfileRequest, UpdateReviewRequest, UpdateReviewResult, UploadTicket, WishlistAddResult, WithdrawRequest, WithdrawalBlockedDetails, WritableReview, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, calendarDayViewSchema, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowStateSchema, formatOrderNo, guestFlowActionRequestSchema, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderFlowActionResultSchema, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, 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 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-Dn_JdIqv.mjs";
4
- import { $ as customInputViewSchema, A as retryPaymentRequestSchema, B as couponBenefitViewSchema, C as paymentOptionSchema, D as remoteAreaSchema, E as pgProviderSchema, F as applicableCouponSchema, G as storefrontCouponListQuerySchema, H as myCouponListQuerySchema, I as checkoutPricingRequestSchema, J as addonGroupViewSchema, K as storefrontCouponSchema, L as checkoutPricingSchema, M as startPaymentRequestSchema, N as MAX_COUPONS_PER_CHECKOUT, O as residentNumberLike, P as MIN_PAYMENT_AMOUNT, Q as customInputValueViewSchema, R as couponApplicationListSchema, S as paymentOptionListSchema, T as paymentStatusSchema, U as myCouponSchema, V as couponResultSchema, W as pricingAmountsSchema, X as customInputEntrySchema, Y as addonSelectionSchema, Z as customInputLength, _ as guestInfoSchema, a as availablePaymentOptionSchema, at as myOrderItemFulfillmentSnapshotSchema, b as paymentMethodSchema, c as cashReceiptRequestSchema, d as checkoutSessionSchema, et as lineSelectionRequestShape, f as createCheckoutRequestSchema, g as easyPayProviderSchema, h as easyPayProviderResponseSchema, i as PAYMENT_STATUS_VALUES, it as lineFulfillmentSchema, j as shippingAddressInputSchema, k as responsePaymentMethodSchema, l as cashReceiptTypeSchema, m as deliveryQuoteSchema, n as PAYMENT_RESULT_VALUES, nt as normalizeCustomInputValue, o as cashReceiptAvailable, ot as productCardFulfillmentSchema, p as deliveryQuoteRequestSchema, q as storefrontCouponTargetSchema, r as PAYMENT_START_STATUS_VALUES, rt as optionSelectionViewSchema, s as cashReceiptIdentityTypeOf, st as productFulfillmentViewSchema, t as CASH_RECEIPT_METHODS, tt as lineSelectionResponseShape, u as checkoutDeliverySchema, v as paymentFailureCategorySchema, w as paymentStartSchema, x as paymentOptionKey, y as paymentMessageSchema, z as couponApplicationSchema } from "./checkout-Bt6j2eDw.mjs";
3
+ import { $ as claimReturnAddressSchema, A as wishlistAddResultSchema, At as idpAuthorizeResponseSchema, B as consentSourceSchema, Bt as ApiError, C as orderShippingAddressSchema, Ct as addCartItemRequestSchema, D as memberAddressSchema, Dt as anonymousSessionSchema, E as memberAddressRequestSchema, Et as updateCartItemRequestSchema, F as createCustomerInquiryRequestSchema, Ft as signupRequestSchema, G as flowActionResultSchema, H as consentUpdateRequestSchema, Ht as toApiError, I as customerInquiryCategorySchema, It as socialProviderSchema, J as flowInputFieldSchema, K as flowActionSchema, L as customerInquirySchema, Lt as tokenPairSchema, M as createInquiryResultSchema, Mt as linkIdentityRequestSchema, N as productInquiryCategorySchema, Nt as loginRequestSchema, O as memberSchema, Ot as idpAgreementsSchema, P as publicInquirySchema, Pt as memberIdentitiesSchema, Q as claimReasonSchema, R as consentActionSchema, Rt as withdrawRequestSchema, S as myOrderSchema, St as pageSchema, T as trackingStageResponseSchema, Tt as cartSchema, U as memberConsentsSchema, Ut as unwrapData, V as consentStateSchema, Vt as buildQuery, W as flowActionRequestSchema, X as guestFlowActionRequestSchema, Y as flowStateSchema, Z as orderFlowActionResultSchema, _ as memberPointEntrySchema, _t as storefrontCollectionListQuerySchema, a as myReviewSchema, at as formatOrderNo, b as deliveryTrackingSchema, bt as orderItemStatusSchema, c as publicReviewSchema, ct as collectionProductPageSchema, d as reviewSummarySchema, dt as productCardSchema, et as claimTypeSchema, f as updateReviewRequestSchema, ft as productDetailSchema, g as memberPointEntryPageSchema, gt as storefrontCollectionDetailSchema, h as writableReviewSchema, ht as productSortSchema, i as createReviewResultSchema, it as commerceNumberField, j as createInquiryRequestSchema, jt as idpTokenRequestSchema, k as updateProfileRequestSchema, kt as idpAuthorizeRequestSchema, l as reviewImageUploadRequestSchema, lt as collectionProductQuerySchema, m as uploadTicketSchema, mt as productPageSchema, n as storefrontStoreSchema, nt as createClaimResultSchema, o as productReviewQuerySchema, ot as parseOrderNo, p as updateReviewResultSchema, pt as productFacetsSchema, q as flowFieldValueSchema, r as createReviewRequestSchema, rt as myClaimSchema, s as productReviewSortSchema, st as categoryNodeSchema, t as createStorefrontClient, tt as createClaimRequestSchema, u as reviewPageSchema, ut as collectionProductSortSchema, v as memberPointsSchema, vt as storefrontCollectionSchema, w as purchaseDecisionResultSchema, wt as cartItemSchema, x as myOrderItemSchema, xt as pageInfoSchema, y as storefrontPointPolicySchema, yt as claimStatusSchema, z as consentKindSchema, zt as withdrawalBlockedDetailsSchema } from "./client-vjq513VD.mjs";
4
+ import { $ as customInputViewSchema, A as retryPaymentRequestSchema, B as couponBenefitViewSchema, C as paymentOptionSchema, D as remoteAreaSchema, E as pgProviderSchema, F as applicableCouponSchema, G as storefrontCouponListQuerySchema, H as myCouponListQuerySchema, I as checkoutPricingRequestSchema, J as addonGroupViewSchema, K as storefrontCouponSchema, L as checkoutPricingSchema, M as startPaymentRequestSchema, N as MAX_COUPONS_PER_CHECKOUT, O as residentNumberLike, P as MIN_PAYMENT_AMOUNT, Q as customInputValueViewSchema, R as couponApplicationListSchema, S as paymentOptionListSchema, T as paymentStatusSchema, U as myCouponSchema, V as couponResultSchema, W as pricingAmountsSchema, X as customInputEntrySchema, Y as addonSelectionSchema, Z as customInputLength, _ as guestInfoSchema, a as availablePaymentOptionSchema, at as parseCustomInputValue, b as paymentMethodSchema, c as cashReceiptRequestSchema, ct as stayViewSchema, d as checkoutSessionSchema, dt as pickupLocationViewSchema, et as lineSelectionRequestShape, f as createCheckoutRequestSchema, ft as productCardFulfillmentSchema, g as easyPayProviderSchema, h as easyPayProviderResponseSchema, i as PAYMENT_STATUS_VALUES, it as orderInputUploadRequestSchema, j as shippingAddressInputSchema, k as responsePaymentMethodSchema, l as cashReceiptTypeSchema, lt as lineFulfillmentSchema, m as deliveryQuoteSchema, n as PAYMENT_RESULT_VALUES, nt as normalizeCustomInputValue, o as cashReceiptAvailable, ot as calendarDayViewSchema, p as deliveryQuoteRequestSchema, pt as productFulfillmentViewSchema, q as storefrontCouponTargetSchema, r as PAYMENT_START_STATUS_VALUES, rt as optionSelectionViewSchema, s as cashReceiptIdentityTypeOf, st as stayRequestSchema, t as CASH_RECEIPT_METHODS, tt as lineSelectionResponseShape, u as checkoutDeliverySchema, ut as myOrderItemFulfillmentSnapshotSchema, v as paymentFailureCategorySchema, w as paymentStartSchema, x as paymentOptionKey, y as paymentMessageSchema, z as couponApplicationSchema } from "./checkout-BjJ4Efbn.mjs";
5
5
  //#region src/session.ts
6
6
  /** 세션 키 상수 — SDK가 소유한다. store-sdk와 겹치지 않는 별도 네임스페이스. */
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, 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, 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, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
128
+ export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, ApiError, CASH_RECEIPT_METHODS, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, STOREFRONT_SESSION_KEYS, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, calendarDayViewSchema, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowStateSchema, formatOrderNo, guestFlowActionRequestSchema, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderFlowActionResultSchema, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, 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 { Dr as StartPaymentRequest, Er as ShippingAddressInput, br as PaymentStart, lr as GuestInfo, rt as createStorefrontClient, tr as CashReceiptRequest, xr as PaymentStatus, yr as PaymentOption } from "../index-atHaDBC3.mjs";
1
+ import { Er as CashReceiptRequest, Gr as PaymentStart, Kr as PaymentStatus, Ot as createStorefrontClient, Pr as GuestInfo, Qr as StartPaymentRequest, Wr as PaymentOption, Zr as ShippingAddressInput } from "../index-BLjQQj49.mjs";
2
2
  //#region src/payments/index.d.ts
3
3
  /**
4
4
  * 스토어프론트 결제 — 브라우저 전용(`@sayren/storefront-sdk/payments`).
@@ -1,4 +1,4 @@
1
- import { y as paymentMessageSchema } from "../checkout-Bt6j2eDw.mjs";
1
+ import { y as paymentMessageSchema } from "../checkout-BjJ4Efbn.mjs";
2
2
  //#region src/payments/index.ts
3
3
  /** 복귀 주소에 결제 서비스가 붙이는 쿼리 */
4
4
  const RETURN_PAYMENT_ID = "sayrenPaymentId";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sayren/storefront-sdk",
3
- "version": "0.20.7",
3
+ "version": "0.20.9",
4
4
  "main": "./dist/index.mjs",
5
5
  "types": "./dist/index.d.mts",
6
6
  "exports": {
package/src/client.ts CHANGED
@@ -57,6 +57,12 @@ import {
57
57
  createClaimResultSchema,
58
58
  myClaimSchema,
59
59
  } from "./schemas/claim";
60
+ import {
61
+ flowActionRequestSchema,
62
+ flowActionResultSchema,
63
+ guestFlowActionRequestSchema,
64
+ orderFlowActionResultSchema,
65
+ } from "./schemas/commerce-flow";
60
66
  import {
61
67
  type ClaimStatus,
62
68
  type OrderItemStatus,
@@ -83,6 +89,7 @@ import {
83
89
  createCustomerInquiryRequestSchema,
84
90
  customerInquirySchema,
85
91
  } from "./schemas/customer-inquiry";
92
+ import { pickupLocationViewSchema } from "./schemas/fulfillment";
86
93
  import { type CreateInquiryRequest, publicInquirySchema } from "./schemas/inquiry";
87
94
  import {
88
95
  type MemberAddressRequest,
@@ -112,6 +119,7 @@ import {
112
119
  uploadTicketSchema,
113
120
  writableReviewSchema,
114
121
  } from "./schemas/review";
122
+ import { calendarDayViewSchema } from "./schemas/stay";
115
123
  import { storefrontStoreSchema } from "./schemas/store";
116
124
  import type { StorefrontSession } from "./session";
117
125
 
@@ -276,6 +284,17 @@ export function createStorefrontClient(options: StorefrontClientOptions) {
276
284
  query: params as Query,
277
285
  },
278
286
  ),
287
+ /**
288
+ * `GET /products/{productId}/calendar` — 날짜별 재고 상품(상세 `inventoryMode: "DATED"`, 이슈 #118)의 날마다 예약 가능 여부·가격.
289
+ * 기간은 포함이고 최대 120일이다. `variantId`를 생략하면 기본 조합이다
290
+ */
291
+ getProductCalendar: (
292
+ productId: string,
293
+ params: { from: string; to: string; variantId?: string },
294
+ ) =>
295
+ http.request("GET", path`/products/${productId}/calendar`, z.array(calendarDayViewSchema), {
296
+ query: params as Query,
297
+ }),
279
298
  createInquiry: (productId: string, body: CreateInquiryRequest) =>
280
299
  http.requestVoid("POST", path`/products/${productId}/inquiries`, { body }),
281
300
  /** 노출 중인 컬렉션(노출 켜짐 + 기간 안) — 셀러가 정한 순서 */
@@ -301,6 +320,11 @@ export function createStorefrontClient(options: StorefrontClientOptions) {
301
320
  }),
302
321
  },
303
322
 
323
+ /** `GET /pickup-locations` — 방문 수령 장소(이슈 #115). 주문서의 `pickupLocationId`로 고른다 */
324
+ pickupLocations: {
325
+ list: () => http.request("GET", "/pickup-locations", z.array(pickupLocationViewSchema)),
326
+ },
327
+
304
328
  cart: {
305
329
  get: () => http.request("GET", "/cart", cartSchema),
306
330
  addItem: (body: AddCartItemRequest) =>
@@ -403,6 +427,57 @@ export function createStorefrontClient(options: StorefrontClientOptions) {
403
427
  http.request("GET", path`/me/order-items/${orderItemId}/delivery`, deliveryTrackingSchema),
404
428
  decidePurchase: (orderItemId: string) =>
405
429
  http.requestVoid("POST", path`/me/order-items/${orderItemId}/purchase-decision`),
430
+ /**
431
+ * `POST /me/order-items/{id}/actions/{key}` — 주문상품 `actions`에 켜진 행동을 실행한다(#115, 시안 승인 등).
432
+ * 응답의 `flowState`·`actions`로 화면을 바로 바꾼다. 에러: 409 `ACTION_NOT_AVAILABLE`(`details.reason`)
433
+ */
434
+ act: (orderItemId: string, key: string, input: Record<string, unknown> = {}) =>
435
+ http.request(
436
+ "POST",
437
+ path`/me/order-items/${orderItemId}/actions/${key}`,
438
+ flowActionResultSchema,
439
+ {
440
+ body: flowActionRequestSchema.parse({ input }),
441
+ },
442
+ ),
443
+ /** 비회원 행동 — 비회원 주문 조회와 같은 연락처·비밀번호 확인과 시도 한도를 지난다 */
444
+ guestAct: (
445
+ orderId: string,
446
+ orderItemId: string,
447
+ key: string,
448
+ body: { phone: string; orderPassword: string; input?: Record<string, unknown> },
449
+ ) =>
450
+ http.request(
451
+ "POST",
452
+ path`/guest/orders/${orderId}/items/${orderItemId}/actions/${key}`,
453
+ flowActionResultSchema,
454
+ { body: guestFlowActionRequestSchema.parse(body) },
455
+ ),
456
+ /**
457
+ * `POST /me/orders/{id}/actions/{key}` — 주문 전체 행동(#115, 예: 주문 전체 취소). 그 행동이 켜진 주문상품마다 실행하고 결과를
458
+ * 주문상품별로 준다(부분 실행). 켜진 주문상품이 하나도 없으면 409 `ACTION_NOT_AVAILABLE`
459
+ */
460
+ actOnOrder: (orderId: string, key: string, input: Record<string, unknown> = {}) =>
461
+ http.request(
462
+ "POST",
463
+ path`/me/orders/${orderId}/actions/${key}`,
464
+ orderFlowActionResultSchema,
465
+ {
466
+ body: flowActionRequestSchema.parse({ input }),
467
+ },
468
+ ),
469
+ /** 비회원 주문 전체 행동 — 비회원 주문 조회와 같은 확인·시도 한도 */
470
+ guestActOnOrder: (
471
+ orderId: string,
472
+ key: string,
473
+ body: { phone: string; orderPassword: string; input?: Record<string, unknown> },
474
+ ) =>
475
+ http.request(
476
+ "POST",
477
+ path`/guest/orders/${orderId}/actions/${key}`,
478
+ orderFlowActionResultSchema,
479
+ { body: guestFlowActionRequestSchema.parse(body) },
480
+ ),
406
481
  },
407
482
 
408
483
  myClaims: {
package/src/index.ts CHANGED
@@ -9,6 +9,7 @@ export * from "./schemas/cart";
9
9
  export * from "./schemas/catalog";
10
10
  export * from "./schemas/checkout";
11
11
  export * from "./schemas/claim";
12
+ export * from "./schemas/commerce-flow";
12
13
  export * from "./schemas/commerce-number";
13
14
  export * from "./schemas/common";
14
15
  export * from "./schemas/consent";
@@ -21,6 +22,7 @@ export * from "./schemas/order";
21
22
  export * from "./schemas/points";
22
23
  export * from "./schemas/product-options";
23
24
  export * from "./schemas/review";
25
+ export * from "./schemas/stay";
24
26
  export * from "./schemas/store";
25
27
  export {
26
28
  createStorefrontSession,
@@ -104,6 +104,10 @@ export const productDetailSchema = productCardSchema.extend({
104
104
  name: z.string(),
105
105
  additionalPrice: z.number().int(),
106
106
  soldOut: z.boolean(),
107
+ attributes: z
108
+ .record(z.string(), z.string())
109
+ .optional()
110
+ .describe("조합 속성(이슈 #115, 예: 회차 일시 `showAt`). 없으면 생략"),
107
111
  }),
108
112
  ),
109
113
  addonGroups: z
@@ -113,6 +117,12 @@ export const productDetailSchema = productCardSchema.extend({
113
117
  .describe(
114
118
  "추가 선택 옵션명(이슈 #59). 배열 순서가 표시 순서다. 담기·바로 구매의 `addons`로 `{groupId, valueId}`를 보낸다. 없으면 빈 배열. 서버는 항상 싣는다",
115
119
  ),
120
+ inventoryMode: z
121
+ .string()
122
+ .optional()
123
+ .describe(
124
+ "재고 방식(이슈 #118). `DATED`면 날짜별 재고 상품이다 — 달력(`GET /products/{id}/calendar`)으로 날짜를 고르고 담기·바로 구매에 `stay`를 보낸다. 없으면 일반 상품",
125
+ ),
116
126
  customInputs: z
117
127
  .array(customInputViewSchema)
118
128
  .optional()
@@ -14,6 +14,18 @@ export const createCheckoutRequestSchema = z
14
14
  ...lineSelectionRequestShape,
15
15
  })
16
16
  .optional(),
17
+ fulfillmentMethod: z
18
+ .enum(["CARRIER", "DIRECT", "PICKUP", "PROVIDED"])
19
+ .optional()
20
+ .describe(
21
+ "이행 방식(이슈 #115). 모든 줄에 같은 방식을 적용하고, 상품 `fulfillment.methods`에 없는 줄이 있으면 400 `FULFILLMENT_METHOD_NOT_ALLOWED`다. 생략하면 줄마다 상품 허용 방식의 첫 값이다. 방문 수령(`PICKUP`)은 배송지·배송비가 없다",
22
+ ),
23
+ pickupLocationId: z
24
+ .string()
25
+ .optional()
26
+ .describe(
27
+ "방문 수령 장소(`GET /pickup-locations`). 방식이 `PICKUP`이고 상점에 픽업 장소가 있으면 필수(400 `PICKUP_LOCATION_REQUIRED`), 없거나 쓰지 않는 장소면 400 `PICKUP_LOCATION_NOT_FOUND`. 다른 방식에 주면 400 `PICKUP_LOCATION_NOT_APPLICABLE`",
28
+ ),
17
29
  })
18
30
  .refine((value) => (value.cartItemIds ? !value.directItem : !!value.directItem), {
19
31
  message: "cartItemIds와 directItem 중 하나만 전달해야 합니다",
@@ -0,0 +1,115 @@
1
+ import { z } from "zod";
2
+ import { orderItemStatusSchema } from "./common";
3
+
4
+ /**
5
+ * 커머스 플로우(이슈 #115) — 구매자가 보는 주문상품의 지금 상태와 할 수 있는 행동. 화면은 이 값만 그리고 상태 이름(`key`)으로
6
+ * 분기하지 않는다. 행동 키·필드 키·꺼진 이유는 열린 문자열이다(모르는 값도 파싱한다). 공개 상태(`coreStatus`)만 닫힌 값이다.
7
+ */
8
+
9
+ export const flowInputFieldSchema = z.object({
10
+ key: z.string(),
11
+ type: z.string().describe("text · number · select · date · datetime · image (늘어날 수 있다)"),
12
+ required: z.boolean(),
13
+ label: z.string(),
14
+ maxLength: z.number().int().optional(),
15
+ maxFiles: z.number().int().optional(),
16
+ options: z.array(z.union([z.string(), z.number()])).optional(),
17
+ });
18
+ export type FlowInputField = z.infer<typeof flowInputFieldSchema>;
19
+
20
+ export const flowActionSchema = z.object({
21
+ key: z.string(),
22
+ label: z.string().describe("버튼에 쓸 이름"),
23
+ mode: z.enum(["INSTANT", "REQUEST", "VIEW"]),
24
+ enabled: z.boolean(),
25
+ disabled: z.object({ reason: z.string(), message: z.string().optional() }).optional(),
26
+ availableUntil: z.string().optional().describe("이 시각까지만 할 수 있다(ISO 8601)"),
27
+ subflow: z
28
+ .string()
29
+ .optional()
30
+ .describe(
31
+ "취소·반품·교환 요청처럼 하위 플로우를 시작하는 행동. 지금은 클레임 API(`POST /me/order-items/{id}/claims`)로 실행한다",
32
+ ),
33
+ input: z.array(flowInputFieldSchema).optional().describe("받는 입력 폼"),
34
+ partialQuantity: z.union([z.boolean(), z.literal("UNIT")]).optional(),
35
+ });
36
+ export type FlowAction = z.infer<typeof flowActionSchema>;
37
+
38
+ /** 커스텀 필드 값 — 문자열(날짜·일시는 ISO 8601)·숫자·참거짓·null, 수량 단위 필드는 문자열 배열 */
39
+ export const flowFieldValueSchema = z.union([
40
+ z.string(),
41
+ z.number(),
42
+ z.boolean(),
43
+ z.null(),
44
+ z.array(z.string()),
45
+ ]);
46
+ export type FlowFieldValue = z.infer<typeof flowFieldValueSchema>;
47
+
48
+ export const flowStateSchema = z.object({
49
+ key: z.string(),
50
+ label: z.string().describe("구매자에게 보여 줄 상태 이름"),
51
+ coreStatus: orderItemStatusSchema.optional(),
52
+ message: z.string().optional().describe("구매자 안내문"),
53
+ enteredAt: z.string(),
54
+ deadlineAt: z.string().optional().describe("가장 가까운 기한(ISO 8601)"),
55
+ attachments: z
56
+ .array(z.string())
57
+ .optional()
58
+ .describe("가장 최근 행동이 붙인 첨부 주소(시안 등, #115). 없으면 생략"),
59
+ progress: z.boolean().optional(),
60
+ fields: z.record(z.string(), flowFieldValueSchema).describe("구매자 공개 범위의 커스텀 필드"),
61
+ });
62
+ export type FlowState = z.infer<typeof flowStateSchema>;
63
+
64
+ export const flowActionRequestSchema = z.object({
65
+ input: z.record(z.string(), z.unknown()).optional(),
66
+ });
67
+ export type FlowActionRequest = z.infer<typeof flowActionRequestSchema>;
68
+
69
+ /** 비회원 행동 — 비회원 주문 조회와 같은 확인(연락처·주문 조회 비밀번호)을 함께 보낸다 */
70
+ export const guestFlowActionRequestSchema = flowActionRequestSchema.extend({
71
+ phone: z.string(),
72
+ orderPassword: z.string(),
73
+ });
74
+ export type GuestFlowActionRequest = z.infer<typeof guestFlowActionRequestSchema>;
75
+
76
+ export const flowActionResultSchema = z.object({
77
+ status: z.literal("COMPLETED"),
78
+ flowState: flowStateSchema,
79
+ actions: z.array(flowActionSchema),
80
+ affectedOrderItemIds: z.array(z.string()),
81
+ claim: z
82
+ .object({ claimId: z.string(), claimNo: z.string().nullable() })
83
+ .optional()
84
+ .describe(
85
+ "취소·반품·교환 행동(하위 플로우 `core.claim.*`)이 접수한 클레임(#115). 클레임 API(`POST /me/order-items/{id}/claims`)와 같은 접수다. 다른 행동은 생략",
86
+ ),
87
+ });
88
+ export type FlowActionResult = z.infer<typeof flowActionResultSchema>;
89
+
90
+ /**
91
+ * 주문 전체 행동 결과(#115) — 같은 행동을 주문의 주문상품마다 실행한다. 한 주문상품의 실패가 다른 주문상품을 되돌리지 않는다(부분 실행).
92
+ * 묶음 진행이면 한 번 실행이 묶음의 주문상품을 함께 움직인다(COMPLETED로 함께 나온다). 그 행동이 없는 주문상품은 SKIPPED다
93
+ */
94
+ export const orderFlowActionResultSchema = z.object({
95
+ orderId: z.string(),
96
+ key: z.string(),
97
+ results: z.array(
98
+ z.object({
99
+ orderItemId: z.string(),
100
+ status: z
101
+ .enum(["COMPLETED", "SKIPPED", "FAILED"])
102
+ .describe(
103
+ "COMPLETED 실행 · SKIPPED 이 주문상품에는 그 행동이 없다 · FAILED 실행하다 거절됐다",
104
+ ),
105
+ reason: z
106
+ .string()
107
+ .optional()
108
+ .describe(
109
+ "SKIPPED·FAILED의 이유 — 꺼진 이유(EXPIRED·CONDITION·NOT_IN_STATE) 또는 오류 코드",
110
+ ),
111
+ message: z.string().optional(),
112
+ }),
113
+ ),
114
+ });
115
+ export type OrderFlowActionResult = z.infer<typeof orderFlowActionResultSchema>;
@@ -41,6 +41,13 @@ function openUnion<T extends z.ZodType>(known: T) {
41
41
  ]);
42
42
  }
43
43
 
44
+ const methodsViewSchema = z
45
+ .array(z.string())
46
+ .optional()
47
+ .describe(
48
+ "고를 수 있는 이행 방식(이슈 #115). 현재 값은 `CARRIER`(택배)·`DIRECT`(직접 배달)·`PICKUP`(방문 수령)·`PROVIDED`(제공 처리)이고 값이 추가될 수 있어 문자열로 받는다. 첫 값이 기본이다. 서버는 항상 싣는다",
49
+ );
50
+
44
51
  const requiresShippingDescription =
45
52
  "택배 배송이 필요한가. false면 배송비가 없고 주문서가 배송지를 받지 않는다";
46
53
 
@@ -81,8 +88,13 @@ export const productFulfillmentViewSchema = openUnion(
81
88
  .int()
82
89
  .describe("단순 변심 교환 배송비(유효 환불 정책). 원 단위"),
83
90
  }),
91
+ methods: methodsViewSchema,
92
+ }),
93
+ z.object({
94
+ type: z.literal("MANUAL"),
95
+ requiresShipping: z.literal(false),
96
+ methods: methodsViewSchema,
84
97
  }),
85
- z.object({ type: z.literal("MANUAL"), requiresShipping: z.literal(false) }),
86
98
  ]),
87
99
  ).describe(
88
100
  "상품 이행. `type`이 유형이고 같은 이름의 키가 유형별 안내다. 값이 추가될 수 있어 SDK는 모르는 유형을 `OTHER`로 읽는다",
@@ -94,6 +106,12 @@ export type ProductFulfillmentView = z.infer<typeof productFulfillmentViewSchema
94
106
  export const lineFulfillmentSchema = z.object({
95
107
  type: z.string().describe("상품 유형. 값이 추가될 수 있어 문자열로 받는다"),
96
108
  requiresShipping: z.boolean().describe(requiresShippingDescription),
109
+ method: z
110
+ .string()
111
+ .optional()
112
+ .describe(
113
+ "이행 방식(이슈 #115). 주문서 줄은 고른 방식, 장바구니 줄은 기본 방식이다. 값이 추가될 수 있어 문자열로 받는다",
114
+ ),
97
115
  withdrawalRestricted: z
98
116
  .boolean()
99
117
  .optional()
@@ -105,14 +123,46 @@ export const lineFulfillmentSchema = z.object({
105
123
 
106
124
  export type LineFulfillment = z.infer<typeof lineFulfillmentSchema>;
107
125
 
126
+ /** 픽업 장소 — 방문 수령(`PICKUP`) 주문서에서 고른다 */
127
+ export const pickupLocationViewSchema = z.object({
128
+ locationId: z.string(),
129
+ name: z.string(),
130
+ address: z.string(),
131
+ phone: z.string().nullable(),
132
+ hours: z.string().nullable().describe("수령 가능 시간 안내"),
133
+ });
134
+
135
+ export type PickupLocationView = z.infer<typeof pickupLocationViewSchema>;
136
+
137
+ const snapshotMethodSchema = z
138
+ .string()
139
+ .optional()
140
+ .describe(
141
+ "주문 시점 이행 방식(이슈 #115). 값이 추가될 수 있어 문자열로 받는다. `requiresShipping`은 유형 규칙이고, 방문 수령(`PICKUP`)이면 배송지가 없다",
142
+ );
143
+
144
+ const snapshotPickupSchema = pickupLocationViewSchema
145
+ .optional()
146
+ .describe("방문 수령에서 고른 장소(주문 시점 값). 없으면 생략");
147
+
108
148
  /**
109
149
  * 내 주문 주문상품의 주문 시점 이행 스냅샷. 상품을 나중에 고쳐도 바뀌지 않는다. 제공 기록(제공 시각·판매자 안내)은
110
150
  * 주문상품의 `fulfillment`다.
111
151
  */
112
152
  export const myOrderItemFulfillmentSnapshotSchema = openUnion(
113
153
  z.discriminatedUnion("type", [
114
- z.object({ type: z.literal("SHIPPING"), requiresShipping: z.literal(true) }),
115
- z.object({ type: z.literal("MANUAL"), requiresShipping: z.literal(false) }),
154
+ z.object({
155
+ type: z.literal("SHIPPING"),
156
+ requiresShipping: z.literal(true),
157
+ method: snapshotMethodSchema,
158
+ pickupLocation: snapshotPickupSchema,
159
+ }),
160
+ z.object({
161
+ type: z.literal("MANUAL"),
162
+ requiresShipping: z.literal(false),
163
+ method: snapshotMethodSchema,
164
+ pickupLocation: snapshotPickupSchema,
165
+ }),
116
166
  ]),
117
167
  ).describe("주문 시점 이행 스냅샷. 값이 추가될 수 있어 SDK는 모르는 유형을 `OTHER`로 읽는다");
118
168
 
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { easyPayProviderResponseSchema, responsePaymentMethodSchema } from "./checkout";
3
+ import { flowActionSchema, flowStateSchema } from "./commerce-flow";
3
4
  import { commerceNumberField } from "./commerce-number";
4
5
  import { orderItemStatusSchema } from "./common";
5
6
  import { myOrderItemFulfillmentSnapshotSchema } from "./fulfillment";
@@ -68,6 +69,21 @@ export const myOrderItemSchema = z.object({
68
69
  claimStatus: z.string().nullable(),
69
70
  reviewWritten: z.boolean(),
70
71
  autoDecisionDate: z.string().nullable(),
72
+ flowState: flowStateSchema
73
+ .optional()
74
+ .describe("주문 플로우의 지금 상태(이슈 #115). 플로우가 없는 주문상품은 없다"),
75
+ actions: z
76
+ .array(flowActionSchema)
77
+ .optional()
78
+ .describe(
79
+ "지금 할 수 있는 행동. 화면은 이 목록으로 버튼을 그린다(상태 이름으로 분기하지 않는다)",
80
+ ),
81
+ flowBranches: z
82
+ .array(flowStateSchema)
83
+ .optional()
84
+ .describe(
85
+ "진행 위치가 둘 이상(병렬 진행·하위 흐름)이면 각 위치의 상태. `flowState`는 그 가운데 가장 앞 단계다",
86
+ ),
71
87
  });
72
88
 
73
89
  export type MyOrderItem = z.infer<typeof myOrderItemSchema>;
@@ -93,6 +109,11 @@ export type OrderShippingAddress = z.infer<typeof orderShippingAddressSchema>;
93
109
 
94
110
  export const myOrderSchema = z.object({
95
111
  orderId: z.string(),
112
+ progressStatus: orderItemStatusSchema
113
+ .optional()
114
+ .describe(
115
+ "진행 중 주문상품 가운데 가장 앞 단계(취소 제외, 모두 취소면 CANCELED, #115). 섞인 주문에서 아직 기다리는 단계다. 서버는 항상 싣는다",
116
+ ),
96
117
  orderNo: commerceNumberField(
97
118
  "주문번호(이슈 #107) — 숫자 14자리, 생성 후 바뀌지 않습니다. 구매자 화면에는 `formatOrderNo`(4자리 하이픈)로 표시하십시오. 비회원 주문 조회 경로에도 쓸 수 있습니다",
98
119
  ),