@sayren/storefront-sdk 0.20.16 → 0.20.17

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.
@@ -1,4 +1,4 @@
1
- import { Ut as ApiError, t as createStorefrontClient } from "../client-C3JB8ime.mjs";
1
+ import { Ut as ApiError, t as createStorefrontClient } from "../client-CQpUWTzR.mjs";
2
2
  //#region src/auth/index.ts
3
3
  /** 소셜 로그인 실패 — 구매자가 취소했거나(`access_denied`) state가 맞지 않는다 */
4
4
  var IdpCallbackError = class extends Error {
@@ -876,6 +876,7 @@ const myOrderItemSchema = z.object({
876
876
  }).nullable().optional().default(null).describe("배송 없는 상품의 제공 기록(이슈 #48). 제공 전이거나 배송 상품이면 null이다. 배송 없는 상품의 `DELIVERED`는 제공 완료로 표시한다. 서버는 항상 싣는다"),
877
877
  claimStatus: z.string().nullable(),
878
878
  reviewWritten: z.boolean(),
879
+ reviewWritable: z.boolean().optional().describe("지금 리뷰를 쓸 수 있는가 — 구매확정·미작성·작성 기한 안이고, 테스트 결제 주문이면 상점이 테스트 주문 리뷰를 허용했을 때만 true. 비회원 주문은 false. 서버는 항상 싣는다"),
879
880
  autoDecisionDate: z.string().nullable(),
880
881
  flowState: flowStateSchema.optional().describe("주문 플로우의 지금 상태(이슈 #115). 플로우가 없는 주문상품은 없다"),
881
882
  actions: z.array(flowActionSchema).optional().describe("지금 할 수 있는 행동. 화면은 이 목록으로 버튼을 그린다(상태 이름으로 분기하지 않는다)"),
@@ -3145,6 +3145,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3145
3145
  productName: string;
3146
3146
  thumbnailUrl: string | null;
3147
3147
  optionName: string | null;
3148
+ reviewWritable?: boolean | undefined;
3148
3149
  flowState?: {
3149
3150
  key: string;
3150
3151
  label: string;
@@ -3382,6 +3383,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3382
3383
  productName: string;
3383
3384
  thumbnailUrl: string | null;
3384
3385
  optionName: string | null;
3386
+ reviewWritable?: boolean | undefined;
3385
3387
  flowState?: {
3386
3388
  key: string;
3387
3389
  label: string;
@@ -3630,6 +3632,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3630
3632
  productName: string;
3631
3633
  thumbnailUrl: string | null;
3632
3634
  optionName: string | null;
3635
+ reviewWritable?: boolean | undefined;
3633
3636
  flowState?: {
3634
3637
  key: string;
3635
3638
  label: string;
@@ -4814,6 +4817,7 @@ declare const myOrderItemSchema: z.ZodObject<{
4814
4817
  }, z.core.$strip>>>>;
4815
4818
  claimStatus: z.ZodNullable<z.ZodString>;
4816
4819
  reviewWritten: z.ZodBoolean;
4820
+ reviewWritable: z.ZodOptional<z.ZodBoolean>;
4817
4821
  autoDecisionDate: z.ZodNullable<z.ZodString>;
4818
4822
  flowState: z.ZodOptional<z.ZodObject<{
4819
4823
  key: z.ZodString;
@@ -5090,6 +5094,7 @@ declare const myOrderSchema: z.ZodObject<{
5090
5094
  }, z.core.$strip>>>>;
5091
5095
  claimStatus: z.ZodNullable<z.ZodString>;
5092
5096
  reviewWritten: z.ZodBoolean;
5097
+ reviewWritable: z.ZodOptional<z.ZodBoolean>;
5093
5098
  autoDecisionDate: z.ZodNullable<z.ZodString>;
5094
5099
  flowState: z.ZodOptional<z.ZodObject<{
5095
5100
  key: z.ZodString;
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { C as loginRequestSchema, D as tokenPairSchema, E as socialProviderSchema, O as withdrawRequestSchema, S as linkIdentityRequestSchema, T as signupRequestSchema, _ as anonymousSessionSchema, a as AnonymousSession, b as idpAuthorizeResponseSchema, c as IdpTokenRequest, d as MemberIdentities, f as SignupRequest, g as WithdrawalBlockedDetails, h as WithdrawRequest, i as buildQuery, k as withdrawalBlockedDetailsSchema, l as LinkIdentityRequest, m as TokenPair, n as Query, o as IdpAgreements, p as SocialProvider, r as TokenSource, s as IdpAuthorizeRequest, t as ApiError, u as LoginRequest, v as idpAgreementsSchema, w as memberIdentitiesSchema, x as idpTokenRequestSchema, y as idpAuthorizeRequestSchema } from "./http-1ab7tP4-.mjs";
2
- import { $ as ANALYTICS_VISITOR_HEADER, $i as productSortSchema, $n as storefrontCouponListQuerySchema, $r as PgProvider, $t as customInputEntrySchema, A as FlowAction, Aa as analyticsIdsFromCookie, Ai as retryPaymentRequestSchema, An as createCustomerInquiryRequestSchema, Ar as CONTACT_PHONE_PATTERN, At as WritableReview, B as flowActionRequestSchema, Bi as ProductPage, Bn as MyCoupon, Br as GuestInfo, Bt as updateReviewRequestSchema, C as myOrderSchema, Ca as Cart, Ci as paymentOptionSchema, Cn as createInquiryRequestSchema, Cr as claimReturnAddressSchema, Ct as PublicReview, D as commerceNumberField, Da as cartItemSchema, Di as remoteAreaSchema, Dn as CreateCustomerInquiryRequest, Dr as myClaimSchema, Dt as UpdateReviewRequest, E as trackingStageResponseSchema, Ea as addCartItemRequestSchema, Ei as pgProviderSchema, En as publicInquirySchema, Er as createClaimResultSchema, Et as ReviewSummary, F as FlowState, Fi as CollectionProductParams, Fn as CheckoutPricingRequest, Fr as CheckoutSession, Ft as productReviewSortSchema, G as flowStateSchema, Gi as categoryNodeSchema, Gn as checkoutPricingSchema, Gr as PAYMENT_START_STATUS_VALUES, Gt as AddonSelection, H as flowActionSchema, Hi as ProductSort, Hn as StorefrontCouponListParams, Hr as KnownPaymentStartStatus, Ht as uploadTicketSchema, I as GuestFlowActionRequest, Ii as CollectionProductSortParam, In as CouponApplication, Ir as CreateCheckoutRequest, It as publicReviewSchema, J as orderStepSchema, Ji as collectionProductSortSchema, Jn as couponBenefitViewSchema, Jr as PaymentMessage, Jt as CustomInputView, K as guestFlowActionRequestSchema, Ki as collectionProductPageSchema, Kn as couponApplicationListSchema, Kr as PAYMENT_STATUS_VALUES, Kt as CustomInputEntry, L as ORDER_STEP_TYPES, Li as ProductCard, Ln as CouponResult, Lr as DeliveryQuoteRequest, Lt as reviewImageUploadRequestSchema, M as FlowActionResult, Mi as startPaymentRequestSchema, Mn as customerInquirySchema, Mr as CashReceiptRequest, Mt as createReviewResultSchema, N as FlowFieldValue, Ni as CategoryNode, Nn as ApplicableCoupon, Nr as CashReceiptType, Nt as myReviewSchema, O as formatOrderNo, Oa as cartSchema, Oi as residentNumberLike, On as CustomerInquiry, Or as AvailablePaymentOption, Ot as UpdateReviewResult, P as FlowInputField, Pi as CollectionProductPage, Pn as CheckoutPricing, Pr as CheckoutDelivery, Pt as productReviewQuerySchema, Q as ANALYTICS_VISITOR_COOKIE, Qi as productPageSchema, Qn as pricingAmountsSchema, Qr as PaymentStatus, Qt as addonSelectionSchema, R as OrderFlowActionResult, Ri as ProductDetail, Rn as MAX_COUPONS_PER_CHECKOUT, Rr as DeliveryQuoteResult, Rt as reviewPageSchema, S as myOrderItemSchema, Sa as AddCartItemRequest, Si as paymentOptionListSchema, Sn as PublicInquiry, Sr as claimReasonSchema, St as ProductReviewSort, T as purchaseDecisionResultSchema, Ta as UpdateCartItemRequest, Ti as paymentStatusSchema, Tn as productInquiryCategorySchema, Tr as createClaimRequestSchema, Tt as ReviewPage, U as flowFieldValueSchema, Ui as StorefrontCollection, Un as applicableCouponSchema, Ur as KnownPaymentStatus, Ut as writableReviewSchema, V as flowActionResultSchema, Vi as ProductSearchParams, Vn as StorefrontCoupon, Vr as KnownPaymentResult, Vt as updateReviewResultSchema, W as flowInputFieldSchema, Wi as StorefrontCollectionDetail, Wn as checkoutPricingRequestSchema, Wr as PAYMENT_RESULT_VALUES, Wt as AddonGroupView, X as ANALYTICS_SESSION_COOKIE, Xi as productDetailSchema, Xn as myCouponListQuerySchema, Xr as PaymentOption, Xt as OrderInputUploadRequest, Y as ANALYTICS_MAX_BATCH_BYTES, Yi as productCardSchema, Yn as couponResultSchema, Yr as PaymentMethod, Yt as OptionSelectionView, Z as ANALYTICS_SESSION_HEADER, Zi as productFacetsSchema, Zn as myCouponSchema, Zr as PaymentStart, Zt as addonGroupViewSchema, _ as MyOrder, _a as lineFulfillmentSchema, _i as guestInfoSchema, _n as updateProfileRequestSchema, _r as ClaimType, _t as createStorefrontSession, a as StayView, aa as PageInfo, ai as availablePaymentOptionSchema, an as normalizeCustomInputValue, ar as ConsentState, at as analyticsBatchSchema, b as PurchaseDecisionResult, ba as productCardFulfillmentSchema, bi as paymentMethodSchema, bn as CreateInquiryResult, br as MyClaim, bt as MyReview, c as stayViewSchema, ca as orderItemStatusSchema, ci as cashReceiptRequestSchema, cn as parseCustomInputValue, cr as consentActionSchema, ct as analyticsIdSchema, d as StorefrontPointPolicy, da as LineFulfillment, di as checkoutSessionSchema, dn as MemberAddressRequest, dr as consentStateSchema, dt as StorefrontClientOptions, ea as storefrontCollectionDetailSchema, ei as RemoteArea, en as customInputLength, er as storefrontCouponSchema, et as AnalyticsBatch, f as memberPointEntryPageSchema, fa as MyOrderItemFulfillmentSnapshot, fi as createCheckoutRequestSchema, fn as UpdateProfileRequest, fr as consentUpdateRequestSchema, ft as createStorefrontClient, g as DeliveryTracking, ga as UnknownFulfillmentView, gi as easyPayProviderSchema, gn as memberSchema, gr as ClaimReturnAddress, gt as StorefrontSessionOptions, h as storefrontPointPolicySchema, ha as ProductFulfillmentView, hi as easyPayProviderResponseSchema, hn as memberAddressSchema, hr as ClaimReason, ht as StorefrontSession, i as StayRequest, ia as OrderItemStatus, ii as StartPaymentRequest, in as lineSelectionResponseShape, ir as ConsentSource, it as AnalyticsServerEventName, j as FlowActionRequest, ji as shippingAddressInputSchema, jn as customerInquiryCategorySchema, jr as CashReceiptIdentityType, jt as createReviewRequestSchema, k as parseOrderNo, ka as updateCartItemRequestSchema, ki as responsePaymentMethodSchema, kn as CustomerInquiryCategory, kr as CASH_RECEIPT_METHODS, kt as UploadTicket, l as MemberPointEntry, la as pageInfoSchema, li as cashReceiptTypeSchema, ln as Member, lr as consentKindSchema, lt as analyticsServerEventNameSchema, m as memberPointsSchema, ma as ProductCardFulfillment, mi as deliveryQuoteSchema, mn as memberAddressRequestSchema, mr as ClaimPreview, mt as SessionStorage, n as storefrontStoreSchema, na as storefrontCollectionSchema, ni as RetryPaymentRequest, nn as customInputViewSchema, nr as ConsentAction, nt as AnalyticsClientEventName, o as calendarDayViewSchema, oa as PageParams, oi as cashReceiptAvailable, on as optionSelectionViewSchema, or as ConsentUpdateRequest, ot as analyticsClientEventNameSchema, p as memberPointEntrySchema, pa as PickupLocationView, pi as deliveryQuoteRequestSchema, pn as WishlistAddResult, pr as memberConsentsSchema, pt as STOREFRONT_SESSION_KEYS, q as orderFlowActionResultSchema, qi as collectionProductQuerySchema, qn as couponApplicationSchema, qr as PaymentFailureCategory, qt as CustomInputValueView, r as CalendarDayView, ra as ClaimStatus, ri as ShippingAddressInput, rn as lineSelectionRequestShape, rr as ConsentKind, rt as AnalyticsEventName, s as stayRequestSchema, sa as claimStatusSchema, si as cashReceiptIdentityTypeOf, sn as orderInputUploadRequestSchema, sr as MemberConsents, st as analyticsClientEventSchema, t as StorefrontStore, ta as storefrontCollectionListQuerySchema, ti as ResponsePaymentMethod, tn as customInputValueViewSchema, tr as storefrontCouponTargetSchema, tt as AnalyticsClientEvent, u as MemberPoints, ua as pageSchema, ui as checkoutDeliverySchema, un as MemberAddress, ur as consentSourceSchema, ut as StorefrontClient, v as MyOrderItem, va as myOrderItemFulfillmentSnapshotSchema, vi as paymentFailureCategorySchema, vn as wishlistAddResultSchema, vr as CreateClaimRequest, vt as CreateReviewRequest, w as orderShippingAddressSchema, wa as CartItem, wi as paymentStartSchema, wn as createInquiryResultSchema, wr as claimTypeSchema, wt as ReviewImageUploadRequest, x as deliveryTrackingSchema, xa as productFulfillmentViewSchema, xi as paymentOptionKey, xn as ProductInquiryCategory, xr as claimPreviewSchema, xt as ProductReviewParams, y as OrderShippingAddress, ya as pickupLocationViewSchema, yi as paymentMessageSchema, yn as CreateInquiryRequest, yr as CreateClaimResult, yt as CreateReviewResult, z as OrderStep, zi as ProductFacets, zn as MIN_PAYMENT_AMOUNT, zr as EasyPayProvider, zt as reviewSummarySchema } from "./index-C3wcSykm.mjs";
2
+ import { $ as ANALYTICS_VISITOR_HEADER, $i as productSortSchema, $n as storefrontCouponListQuerySchema, $r as PgProvider, $t as customInputEntrySchema, A as FlowAction, Aa as analyticsIdsFromCookie, Ai as retryPaymentRequestSchema, An as createCustomerInquiryRequestSchema, Ar as CONTACT_PHONE_PATTERN, At as WritableReview, B as flowActionRequestSchema, Bi as ProductPage, Bn as MyCoupon, Br as GuestInfo, Bt as updateReviewRequestSchema, C as myOrderSchema, Ca as Cart, Ci as paymentOptionSchema, Cn as createInquiryRequestSchema, Cr as claimReturnAddressSchema, Ct as PublicReview, D as commerceNumberField, Da as cartItemSchema, Di as remoteAreaSchema, Dn as CreateCustomerInquiryRequest, Dr as myClaimSchema, Dt as UpdateReviewRequest, E as trackingStageResponseSchema, Ea as addCartItemRequestSchema, Ei as pgProviderSchema, En as publicInquirySchema, Er as createClaimResultSchema, Et as ReviewSummary, F as FlowState, Fi as CollectionProductParams, Fn as CheckoutPricingRequest, Fr as CheckoutSession, Ft as productReviewSortSchema, G as flowStateSchema, Gi as categoryNodeSchema, Gn as checkoutPricingSchema, Gr as PAYMENT_START_STATUS_VALUES, Gt as AddonSelection, H as flowActionSchema, Hi as ProductSort, Hn as StorefrontCouponListParams, Hr as KnownPaymentStartStatus, Ht as uploadTicketSchema, I as GuestFlowActionRequest, Ii as CollectionProductSortParam, In as CouponApplication, Ir as CreateCheckoutRequest, It as publicReviewSchema, J as orderStepSchema, Ji as collectionProductSortSchema, Jn as couponBenefitViewSchema, Jr as PaymentMessage, Jt as CustomInputView, K as guestFlowActionRequestSchema, Ki as collectionProductPageSchema, Kn as couponApplicationListSchema, Kr as PAYMENT_STATUS_VALUES, Kt as CustomInputEntry, L as ORDER_STEP_TYPES, Li as ProductCard, Ln as CouponResult, Lr as DeliveryQuoteRequest, Lt as reviewImageUploadRequestSchema, M as FlowActionResult, Mi as startPaymentRequestSchema, Mn as customerInquirySchema, Mr as CashReceiptRequest, Mt as createReviewResultSchema, N as FlowFieldValue, Ni as CategoryNode, Nn as ApplicableCoupon, Nr as CashReceiptType, Nt as myReviewSchema, O as formatOrderNo, Oa as cartSchema, Oi as residentNumberLike, On as CustomerInquiry, Or as AvailablePaymentOption, Ot as UpdateReviewResult, P as FlowInputField, Pi as CollectionProductPage, Pn as CheckoutPricing, Pr as CheckoutDelivery, Pt as productReviewQuerySchema, Q as ANALYTICS_VISITOR_COOKIE, Qi as productPageSchema, Qn as pricingAmountsSchema, Qr as PaymentStatus, Qt as addonSelectionSchema, R as OrderFlowActionResult, Ri as ProductDetail, Rn as MAX_COUPONS_PER_CHECKOUT, Rr as DeliveryQuoteResult, Rt as reviewPageSchema, S as myOrderItemSchema, Sa as AddCartItemRequest, Si as paymentOptionListSchema, Sn as PublicInquiry, Sr as claimReasonSchema, St as ProductReviewSort, T as purchaseDecisionResultSchema, Ta as UpdateCartItemRequest, Ti as paymentStatusSchema, Tn as productInquiryCategorySchema, Tr as createClaimRequestSchema, Tt as ReviewPage, U as flowFieldValueSchema, Ui as StorefrontCollection, Un as applicableCouponSchema, Ur as KnownPaymentStatus, Ut as writableReviewSchema, V as flowActionResultSchema, Vi as ProductSearchParams, Vn as StorefrontCoupon, Vr as KnownPaymentResult, Vt as updateReviewResultSchema, W as flowInputFieldSchema, Wi as StorefrontCollectionDetail, Wn as checkoutPricingRequestSchema, Wr as PAYMENT_RESULT_VALUES, Wt as AddonGroupView, X as ANALYTICS_SESSION_COOKIE, Xi as productDetailSchema, Xn as myCouponListQuerySchema, Xr as PaymentOption, Xt as OrderInputUploadRequest, Y as ANALYTICS_MAX_BATCH_BYTES, Yi as productCardSchema, Yn as couponResultSchema, Yr as PaymentMethod, Yt as OptionSelectionView, Z as ANALYTICS_SESSION_HEADER, Zi as productFacetsSchema, Zn as myCouponSchema, Zr as PaymentStart, Zt as addonGroupViewSchema, _ as MyOrder, _a as lineFulfillmentSchema, _i as guestInfoSchema, _n as updateProfileRequestSchema, _r as ClaimType, _t as createStorefrontSession, a as StayView, aa as PageInfo, ai as availablePaymentOptionSchema, an as normalizeCustomInputValue, ar as ConsentState, at as analyticsBatchSchema, b as PurchaseDecisionResult, ba as productCardFulfillmentSchema, bi as paymentMethodSchema, bn as CreateInquiryResult, br as MyClaim, bt as MyReview, c as stayViewSchema, ca as orderItemStatusSchema, ci as cashReceiptRequestSchema, cn as parseCustomInputValue, cr as consentActionSchema, ct as analyticsIdSchema, d as StorefrontPointPolicy, da as LineFulfillment, di as checkoutSessionSchema, dn as MemberAddressRequest, dr as consentStateSchema, dt as StorefrontClientOptions, ea as storefrontCollectionDetailSchema, ei as RemoteArea, en as customInputLength, er as storefrontCouponSchema, et as AnalyticsBatch, f as memberPointEntryPageSchema, fa as MyOrderItemFulfillmentSnapshot, fi as createCheckoutRequestSchema, fn as UpdateProfileRequest, fr as consentUpdateRequestSchema, ft as createStorefrontClient, g as DeliveryTracking, ga as UnknownFulfillmentView, gi as easyPayProviderSchema, gn as memberSchema, gr as ClaimReturnAddress, gt as StorefrontSessionOptions, h as storefrontPointPolicySchema, ha as ProductFulfillmentView, hi as easyPayProviderResponseSchema, hn as memberAddressSchema, hr as ClaimReason, ht as StorefrontSession, i as StayRequest, ia as OrderItemStatus, ii as StartPaymentRequest, in as lineSelectionResponseShape, ir as ConsentSource, it as AnalyticsServerEventName, j as FlowActionRequest, ji as shippingAddressInputSchema, jn as customerInquiryCategorySchema, jr as CashReceiptIdentityType, jt as createReviewRequestSchema, k as parseOrderNo, ka as updateCartItemRequestSchema, ki as responsePaymentMethodSchema, kn as CustomerInquiryCategory, kr as CASH_RECEIPT_METHODS, kt as UploadTicket, l as MemberPointEntry, la as pageInfoSchema, li as cashReceiptTypeSchema, ln as Member, lr as consentKindSchema, lt as analyticsServerEventNameSchema, m as memberPointsSchema, ma as ProductCardFulfillment, mi as deliveryQuoteSchema, mn as memberAddressRequestSchema, mr as ClaimPreview, mt as SessionStorage, n as storefrontStoreSchema, na as storefrontCollectionSchema, ni as RetryPaymentRequest, nn as customInputViewSchema, nr as ConsentAction, nt as AnalyticsClientEventName, o as calendarDayViewSchema, oa as PageParams, oi as cashReceiptAvailable, on as optionSelectionViewSchema, or as ConsentUpdateRequest, ot as analyticsClientEventNameSchema, p as memberPointEntrySchema, pa as PickupLocationView, pi as deliveryQuoteRequestSchema, pn as WishlistAddResult, pr as memberConsentsSchema, pt as STOREFRONT_SESSION_KEYS, q as orderFlowActionResultSchema, qi as collectionProductQuerySchema, qn as couponApplicationSchema, qr as PaymentFailureCategory, qt as CustomInputValueView, r as CalendarDayView, ra as ClaimStatus, ri as ShippingAddressInput, rn as lineSelectionRequestShape, rr as ConsentKind, rt as AnalyticsEventName, s as stayRequestSchema, sa as claimStatusSchema, si as cashReceiptIdentityTypeOf, sn as orderInputUploadRequestSchema, sr as MemberConsents, st as analyticsClientEventSchema, t as StorefrontStore, ta as storefrontCollectionListQuerySchema, ti as ResponsePaymentMethod, tn as customInputValueViewSchema, tr as storefrontCouponTargetSchema, tt as AnalyticsClientEvent, u as MemberPoints, ua as pageSchema, ui as checkoutDeliverySchema, un as MemberAddress, ur as consentSourceSchema, ut as StorefrontClient, v as MyOrderItem, va as myOrderItemFulfillmentSnapshotSchema, vi as paymentFailureCategorySchema, vn as wishlistAddResultSchema, vr as CreateClaimRequest, vt as CreateReviewRequest, w as orderShippingAddressSchema, wa as CartItem, wi as paymentStartSchema, wn as createInquiryResultSchema, wr as claimTypeSchema, wt as ReviewImageUploadRequest, x as deliveryTrackingSchema, xa as productFulfillmentViewSchema, xi as paymentOptionKey, xn as ProductInquiryCategory, xr as claimPreviewSchema, xt as ProductReviewParams, y as OrderShippingAddress, ya as pickupLocationViewSchema, yi as paymentMessageSchema, yn as CreateInquiryRequest, yr as CreateClaimResult, yt as CreateReviewResult, z as OrderStep, zi as ProductFacets, zn as MIN_PAYMENT_AMOUNT, zr as EasyPayProvider, zt as reviewSummarySchema } from "./index-3acexKKz.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, CONTACT_PHONE_PATTERN, CalendarDayView, Cart, CartItem, CashReceiptIdentityType, CashReceiptRequest, CashReceiptType, CategoryNode, CheckoutDelivery, CheckoutPricing, CheckoutPricingRequest, CheckoutSession, ClaimPreview, ClaimReason, ClaimReturnAddress, ClaimStatus, ClaimType, CollectionProductPage, CollectionProductParams, CollectionProductSortParam, ConsentAction, ConsentKind, ConsentSource, ConsentState, ConsentUpdateRequest, CouponApplication, CouponResult, CreateCheckoutRequest, CreateClaimRequest, CreateClaimResult, CreateCustomerInquiryRequest, CreateInquiryRequest, CreateInquiryResult, CreateReviewRequest, CreateReviewResult, CustomInputEntry, CustomInputValueView, CustomInputView, CustomerInquiry, CustomerInquiryCategory, DeliveryQuoteRequest, DeliveryQuoteResult, DeliveryTracking, EasyPayProvider, FlowAction, FlowActionRequest, FlowActionResult, FlowFieldValue, FlowInputField, FlowState, GuestFlowActionRequest, GuestInfo, IdpAgreements, IdpAuthorizeRequest, IdpTokenRequest, KnownPaymentResult, KnownPaymentStartStatus, KnownPaymentStatus, LineFulfillment, LinkIdentityRequest, LoginRequest, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, Member, MemberAddress, MemberAddressRequest, MemberConsents, MemberIdentities, MemberPointEntry, MemberPoints, MyClaim, MyCoupon, MyOrder, MyOrderItem, MyOrderItemFulfillmentSnapshot, MyReview, ORDER_STEP_TYPES, OptionSelectionView, OrderFlowActionResult, OrderInputUploadRequest, OrderItemStatus, OrderShippingAddress, OrderStep, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, PageInfo, PageParams, PaymentFailureCategory, PaymentMessage, PaymentMethod, PaymentOption, PaymentStart, PaymentStatus, PgProvider, PickupLocationView, ProductCard, ProductCardFulfillment, ProductDetail, ProductFacets, ProductFulfillmentView, ProductInquiryCategory, ProductPage, ProductReviewParams, ProductReviewSort, ProductSearchParams, ProductSort, PublicInquiry, PublicReview, PurchaseDecisionResult, type Query, RemoteArea, ResponsePaymentMethod, RetryPaymentRequest, ReviewImageUploadRequest, ReviewPage, ReviewSummary, STOREFRONT_SESSION_KEYS, type SessionStorage, ShippingAddressInput, SignupRequest, SocialProvider, StartPaymentRequest, StayRequest, StayView, type StorefrontClient, type StorefrontClientOptions, StorefrontCollection, StorefrontCollectionDetail, StorefrontCoupon, StorefrontCouponListParams, StorefrontPointPolicy, type StorefrontSession, type StorefrontSessionOptions, StorefrontStore, TokenPair, type TokenSource, UnknownFulfillmentView, UpdateCartItemRequest, UpdateProfileRequest, UpdateReviewRequest, UpdateReviewResult, UploadTicket, WishlistAddResult, WithdrawRequest, WithdrawalBlockedDetails, WritableReview, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, calendarDayViewSchema, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimPreviewSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowStateSchema, formatOrderNo, guestFlowActionRequestSchema, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderFlowActionResultSchema, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, orderStepSchema, pageInfoSchema, pageSchema, parseCustomInputValue, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pickupLocationViewSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, stayRequestSchema, stayViewSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { a as ANALYTICS_VISITOR_HEADER, c as analyticsClientEventSchema, i as ANALYTICS_VISITOR_COOKIE, l as analyticsIdSchema, n as ANALYTICS_SESSION_COOKIE, o as analyticsBatchSchema, r as ANALYTICS_SESSION_HEADER, s as analyticsClientEventNameSchema, t as ANALYTICS_MAX_BATCH_BYTES, u as analyticsServerEventNameSchema } from "./analytics-CgD70OqH.mjs";
2
2
  import { t as analyticsIdsFromCookie } from "./analytics-ids-COElZiI3.mjs";
3
- import { $ as orderStepSchema, A as wishlistAddResultSchema, At as anonymousSessionSchema, B as consentSourceSchema, Bt as tokenPairSchema, C as orderShippingAddressSchema, Ct as orderItemStatusSchema, D as memberAddressSchema, Dt as cartItemSchema, E as memberAddressRequestSchema, Et as addCartItemRequestSchema, F as createCustomerInquiryRequestSchema, Ft as linkIdentityRequestSchema, G as flowActionRequestSchema, Gt as toApiError, H as consentUpdateRequestSchema, Ht as withdrawalBlockedDetailsSchema, I as customerInquiryCategorySchema, It as loginRequestSchema, J as flowFieldValueSchema, K as flowActionResultSchema, Kt as unwrapData, L as customerInquirySchema, Lt as memberIdentitiesSchema, M as createInquiryResultSchema, Mt as idpAuthorizeRequestSchema, N as productInquiryCategorySchema, Nt as idpAuthorizeResponseSchema, O as memberSchema, Ot as cartSchema, P as publicInquirySchema, Pt as idpTokenRequestSchema, Q as orderFlowActionResultSchema, R as consentActionSchema, Rt as signupRequestSchema, S as myOrderSchema, St as claimStatusSchema, T as trackingStageResponseSchema, Tt as pageSchema, U as memberConsentsSchema, Ut as ApiError, V as consentStateSchema, Vt as withdrawRequestSchema, W as ORDER_STEP_TYPES, Wt as buildQuery, X as flowStateSchema, Y as flowInputFieldSchema, Z as guestFlowActionRequestSchema, _ as memberPointEntrySchema, _t as productPageSchema, a as myReviewSchema, at as createClaimResultSchema, b as deliveryTrackingSchema, bt as storefrontCollectionListQuerySchema, c as publicReviewSchema, ct as formatOrderNo, d as reviewSummarySchema, dt as collectionProductPageSchema, et as claimPreviewSchema, f as updateReviewRequestSchema, ft as collectionProductQuerySchema, g as memberPointEntryPageSchema, gt as productFacetsSchema, h as writableReviewSchema, ht as productDetailSchema, i as createReviewResultSchema, it as createClaimRequestSchema, j as createInquiryRequestSchema, jt as idpAgreementsSchema, k as updateProfileRequestSchema, kt as updateCartItemRequestSchema, l as reviewImageUploadRequestSchema, lt as parseOrderNo, m as uploadTicketSchema, mt as productCardSchema, n as storefrontStoreSchema, nt as claimReturnAddressSchema, o as productReviewQuerySchema, ot as myClaimSchema, p as updateReviewResultSchema, pt as collectionProductSortSchema, q as flowActionSchema, r as createReviewRequestSchema, rt as claimTypeSchema, s as productReviewSortSchema, st as commerceNumberField, t as createStorefrontClient, tt as claimReasonSchema, u as reviewPageSchema, ut as categoryNodeSchema, v as memberPointsSchema, vt as productSortSchema, w as purchaseDecisionResultSchema, wt as pageInfoSchema, x as myOrderItemSchema, xt as storefrontCollectionSchema, y as storefrontPointPolicySchema, yt as storefrontCollectionDetailSchema, z as consentKindSchema, zt as socialProviderSchema } from "./client-C3JB8ime.mjs";
3
+ import { $ as orderStepSchema, A as wishlistAddResultSchema, At as anonymousSessionSchema, B as consentSourceSchema, Bt as tokenPairSchema, C as orderShippingAddressSchema, Ct as orderItemStatusSchema, D as memberAddressSchema, Dt as cartItemSchema, E as memberAddressRequestSchema, Et as addCartItemRequestSchema, F as createCustomerInquiryRequestSchema, Ft as linkIdentityRequestSchema, G as flowActionRequestSchema, Gt as toApiError, H as consentUpdateRequestSchema, Ht as withdrawalBlockedDetailsSchema, I as customerInquiryCategorySchema, It as loginRequestSchema, J as flowFieldValueSchema, K as flowActionResultSchema, Kt as unwrapData, L as customerInquirySchema, Lt as memberIdentitiesSchema, M as createInquiryResultSchema, Mt as idpAuthorizeRequestSchema, N as productInquiryCategorySchema, Nt as idpAuthorizeResponseSchema, O as memberSchema, Ot as cartSchema, P as publicInquirySchema, Pt as idpTokenRequestSchema, Q as orderFlowActionResultSchema, R as consentActionSchema, Rt as signupRequestSchema, S as myOrderSchema, St as claimStatusSchema, T as trackingStageResponseSchema, Tt as pageSchema, U as memberConsentsSchema, Ut as ApiError, V as consentStateSchema, Vt as withdrawRequestSchema, W as ORDER_STEP_TYPES, Wt as buildQuery, X as flowStateSchema, Y as flowInputFieldSchema, Z as guestFlowActionRequestSchema, _ as memberPointEntrySchema, _t as productPageSchema, a as myReviewSchema, at as createClaimResultSchema, b as deliveryTrackingSchema, bt as storefrontCollectionListQuerySchema, c as publicReviewSchema, ct as formatOrderNo, d as reviewSummarySchema, dt as collectionProductPageSchema, et as claimPreviewSchema, f as updateReviewRequestSchema, ft as collectionProductQuerySchema, g as memberPointEntryPageSchema, gt as productFacetsSchema, h as writableReviewSchema, ht as productDetailSchema, i as createReviewResultSchema, it as createClaimRequestSchema, j as createInquiryRequestSchema, jt as idpAgreementsSchema, k as updateProfileRequestSchema, kt as updateCartItemRequestSchema, l as reviewImageUploadRequestSchema, lt as parseOrderNo, m as uploadTicketSchema, mt as productCardSchema, n as storefrontStoreSchema, nt as claimReturnAddressSchema, o as productReviewQuerySchema, ot as myClaimSchema, p as updateReviewResultSchema, pt as collectionProductSortSchema, q as flowActionSchema, r as createReviewRequestSchema, rt as claimTypeSchema, s as productReviewSortSchema, st as commerceNumberField, t as createStorefrontClient, tt as claimReasonSchema, u as reviewPageSchema, ut as categoryNodeSchema, v as memberPointsSchema, vt as productSortSchema, w as purchaseDecisionResultSchema, wt as pageInfoSchema, x as myOrderItemSchema, xt as storefrontCollectionSchema, y as storefrontPointPolicySchema, yt as storefrontCollectionDetailSchema, z as consentKindSchema, zt as socialProviderSchema } from "./client-CQpUWTzR.mjs";
4
4
  import { $ as customInputValueViewSchema, A as responsePaymentMethodSchema, B as couponApplicationSchema, C as paymentOptionListSchema, D as pgProviderSchema, E as paymentStatusSchema, F as MIN_PAYMENT_AMOUNT, G as pricingAmountsSchema, H as couponResultSchema, I as applicableCouponSchema, J as storefrontCouponTargetSchema, K as storefrontCouponListQuerySchema, L as checkoutPricingRequestSchema, M as shippingAddressInputSchema, N as startPaymentRequestSchema, O as remoteAreaSchema, P as MAX_COUPONS_PER_CHECKOUT, Q as customInputLength, R as checkoutPricingSchema, S as paymentOptionKey, T as paymentStartSchema, U as myCouponListQuerySchema, V as couponBenefitViewSchema, W as myCouponSchema, X as addonSelectionSchema, Y as addonGroupViewSchema, Z as customInputEntrySchema, _ as easyPayProviderSchema, a as PAYMENT_STATUS_VALUES, at as orderInputUploadRequestSchema, b as paymentMessageSchema, c as cashReceiptIdentityTypeOf, ct as stayRequestSchema, d as checkoutDeliverySchema, dt as myOrderItemFulfillmentSnapshotSchema, et as customInputViewSchema, f as checkoutSessionSchema, ft as pickupLocationViewSchema, g as easyPayProviderResponseSchema, h as deliveryQuoteSchema, i as PAYMENT_START_STATUS_VALUES, it as optionSelectionViewSchema, j as retryPaymentRequestSchema, k as residentNumberLike, l as cashReceiptRequestSchema, lt as stayViewSchema, m as deliveryQuoteRequestSchema, mt as productFulfillmentViewSchema, n as CONTACT_PHONE_PATTERN, nt as lineSelectionResponseShape, o as availablePaymentOptionSchema, ot as parseCustomInputValue, p as createCheckoutRequestSchema, pt as productCardFulfillmentSchema, q as storefrontCouponSchema, r as PAYMENT_RESULT_VALUES, rt as normalizeCustomInputValue, s as cashReceiptAvailable, st as calendarDayViewSchema, t as CASH_RECEIPT_METHODS, tt as lineSelectionRequestShape, u as cashReceiptTypeSchema, ut as lineFulfillmentSchema, v as guestInfoSchema, w as paymentOptionSchema, x as paymentMethodSchema, y as paymentFailureCategorySchema, z as couponApplicationListSchema } from "./checkout-CmFcG8TT.mjs";
5
5
  //#region src/session.ts
6
6
  /** 세션 키 상수 — SDK가 소유한다. store-sdk와 겹치지 않는 별도 네임스페이스. */
@@ -1,4 +1,4 @@
1
- import { Br as GuestInfo, Mr as CashReceiptRequest, Qr as PaymentStatus, Xr as PaymentOption, Zr as PaymentStart, ft as createStorefrontClient, ii as StartPaymentRequest, ri as ShippingAddressInput } from "../index-C3wcSykm.mjs";
1
+ import { Br as GuestInfo, Mr as CashReceiptRequest, Qr as PaymentStatus, Xr as PaymentOption, Zr as PaymentStart, ft as createStorefrontClient, ii as StartPaymentRequest, ri as ShippingAddressInput } from "../index-3acexKKz.mjs";
2
2
  //#region src/payments/index.d.ts
3
3
  /**
4
4
  * 스토어프론트 결제 — 브라우저 전용(`@sayren/storefront-sdk/payments`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sayren/storefront-sdk",
3
- "version": "0.20.16",
3
+ "version": "0.20.17",
4
4
  "main": "./dist/index.mjs",
5
5
  "types": "./dist/index.d.mts",
6
6
  "exports": {
@@ -68,6 +68,12 @@ export const myOrderItemSchema = z.object({
68
68
  ),
69
69
  claimStatus: z.string().nullable(),
70
70
  reviewWritten: z.boolean(),
71
+ reviewWritable: z
72
+ .boolean()
73
+ .optional()
74
+ .describe(
75
+ "지금 리뷰를 쓸 수 있는가 — 구매확정·미작성·작성 기한 안이고, 테스트 결제 주문이면 상점이 테스트 주문 리뷰를 허용했을 때만 true. 비회원 주문은 false. 서버는 항상 싣는다",
76
+ ),
71
77
  autoDecisionDate: z.string().nullable(),
72
78
  flowState: flowStateSchema
73
79
  .optional()