@sayren/storefront-sdk 0.20.11 → 0.20.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/index.mjs +1 -1
- package/dist/{client-TokSE7D9.mjs → client-CJ2oWniR.mjs} +12 -1
- package/dist/{index-ilVVBQUs.d.mts → index-DYKDbtx6.d.mts} +27 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/payments/index.d.mts +1 -1
- package/package.json +1 -1
- package/src/client.ts +9 -0
- package/src/schemas/claim.ts +17 -0
package/dist/auth/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ut as ApiError, t as createStorefrontClient } from "../client-CJ2oWniR.mjs";
|
|
2
2
|
//#region src/auth/index.ts
|
|
3
3
|
/** 소셜 로그인 실패 — 구매자가 취소했거나(`access_denied`) state가 맞지 않는다 */
|
|
4
4
|
var IdpCallbackError = class extends Error {
|
|
@@ -486,6 +486,15 @@ const createClaimResultSchema = z.object({
|
|
|
486
486
|
pointRefundAmount: z.number().int().optional().default(0).describe("돌려받을 적립금 예상액 (원, #93) — 결제에 쓴 적립금 중 이번 취소·반품 수량의 몫이다. 예상 환불액(현금)과 별개다. 차감은 현금에서 먼저 빼고 모자란 몫만 여기서 뺀다. 적립금을 쓰지 않은 주문은 0이다. 서버는 항상 싣는다")
|
|
487
487
|
});
|
|
488
488
|
/**
|
|
489
|
+
* 신청 전 미리보기(#115 G49) — 접수와 같은 판정·계산을 저장 없이 돌린다. 접수할 수 없으면 접수와 같은 오류(409 등)다.
|
|
490
|
+
* 금액은 지금 시점의 예상값이다(차감은 접수 시각의 흐름 식으로 다시 계산한다)
|
|
491
|
+
*/
|
|
492
|
+
const claimPreviewSchema = createClaimResultSchema.omit({
|
|
493
|
+
claimId: true,
|
|
494
|
+
claimNo: true,
|
|
495
|
+
status: true
|
|
496
|
+
}).extend({ deductAmount: z.number().int().describe("흐름이 정한 취소 수수료(체크인·관람일까지 남은 기간 등). 예상 환불액에서 이미 뺐다. 수수료가 없으면 0") });
|
|
497
|
+
/**
|
|
489
498
|
* 반품지 (이슈 #30) — 반품·교환 수거가 안내하는 주소다. 상점 주소록의 기본 반품지이거나,
|
|
490
499
|
* 상품이 반품지를 따로 지정했으면 그 주소다.
|
|
491
500
|
*
|
|
@@ -1314,6 +1323,8 @@ get: () => http.request("GET", "/store", storefrontStoreSchema) },
|
|
|
1314
1323
|
},
|
|
1315
1324
|
myClaims: {
|
|
1316
1325
|
create: (orderItemId, body) => http.request("POST", path`/me/order-items/${orderItemId}/claims`, createClaimResultSchema, { body: createClaimRequestSchema.parse(body) }),
|
|
1326
|
+
/** `POST /me/order-items/{id}/claims/preview` — 신청 전 예상 환불·차감. 접수하지 않는다(#115) */
|
|
1327
|
+
preview: (orderItemId, body) => http.request("POST", path`/me/order-items/${orderItemId}/claims/preview`, claimPreviewSchema, { body: createClaimRequestSchema.parse(body) }),
|
|
1317
1328
|
list: (params) => http.request("GET", "/me/claims", pageSchema(myClaimSchema), { query: params }),
|
|
1318
1329
|
withdraw: (claimId) => http.requestVoid("POST", path`/me/claims/${claimId}/withdraw`)
|
|
1319
1330
|
},
|
|
@@ -1370,4 +1381,4 @@ get: () => http.request("GET", "/store", storefrontStoreSchema) },
|
|
|
1370
1381
|
};
|
|
1371
1382
|
}
|
|
1372
1383
|
//#endregion
|
|
1373
|
-
export { orderStepSchema as $, wishlistAddResultSchema as A,
|
|
1384
|
+
export { orderStepSchema as $, wishlistAddResultSchema as A, anonymousSessionSchema as At, consentSourceSchema as B, tokenPairSchema as Bt, orderShippingAddressSchema as C, orderItemStatusSchema as Ct, memberAddressSchema as D, cartItemSchema as Dt, memberAddressRequestSchema as E, addCartItemRequestSchema as Et, createCustomerInquiryRequestSchema as F, linkIdentityRequestSchema as Ft, flowActionRequestSchema as G, toApiError as Gt, consentUpdateRequestSchema as H, withdrawalBlockedDetailsSchema as Ht, customerInquiryCategorySchema as I, loginRequestSchema as It, flowFieldValueSchema as J, flowActionResultSchema as K, unwrapData as Kt, customerInquirySchema as L, memberIdentitiesSchema as Lt, createInquiryResultSchema as M, idpAuthorizeRequestSchema as Mt, productInquiryCategorySchema as N, idpAuthorizeResponseSchema as Nt, memberSchema as O, cartSchema as Ot, publicInquirySchema as P, idpTokenRequestSchema as Pt, orderFlowActionResultSchema as Q, consentActionSchema as R, signupRequestSchema as Rt, myOrderSchema as S, claimStatusSchema as St, trackingStageResponseSchema as T, pageSchema as Tt, memberConsentsSchema as U, ApiError as Ut, consentStateSchema as V, withdrawRequestSchema as Vt, ORDER_STEP_TYPES as W, buildQuery as Wt, flowStateSchema as X, flowInputFieldSchema as Y, guestFlowActionRequestSchema as Z, memberPointEntrySchema as _, productPageSchema as _t, myReviewSchema as a, createClaimResultSchema as at, deliveryTrackingSchema as b, storefrontCollectionListQuerySchema as bt, publicReviewSchema as c, formatOrderNo as ct, reviewSummarySchema as d, collectionProductPageSchema as dt, claimPreviewSchema as et, updateReviewRequestSchema as f, collectionProductQuerySchema as ft, memberPointEntryPageSchema as g, productFacetsSchema as gt, writableReviewSchema as h, productDetailSchema as ht, createReviewResultSchema as i, createClaimRequestSchema as it, createInquiryRequestSchema as j, idpAgreementsSchema as jt, updateProfileRequestSchema as k, updateCartItemRequestSchema as kt, reviewImageUploadRequestSchema as l, parseOrderNo as lt, uploadTicketSchema as m, productCardSchema as mt, storefrontStoreSchema as n, claimReturnAddressSchema as nt, productReviewQuerySchema as o, myClaimSchema as ot, updateReviewResultSchema as p, collectionProductSortSchema as pt, flowActionSchema as q, createReviewRequestSchema as r, claimTypeSchema as rt, productReviewSortSchema as s, commerceNumberField as st, createStorefrontClient as t, claimReasonSchema as tt, reviewPageSchema as u, categoryNodeSchema as ut, memberPointsSchema as v, productSortSchema as vt, purchaseDecisionResultSchema as w, pageInfoSchema as wt, myOrderItemSchema as x, storefrontCollectionSchema as xt, storefrontPointPolicySchema as y, storefrontCollectionDetailSchema as yt, consentKindSchema as z, socialProviderSchema as zt };
|
|
@@ -1307,6 +1307,21 @@ declare const createClaimResultSchema: z.ZodObject<{
|
|
|
1307
1307
|
pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1308
1308
|
}, z.core.$strip>;
|
|
1309
1309
|
type CreateClaimResult = z.infer<typeof createClaimResultSchema>;
|
|
1310
|
+
/**
|
|
1311
|
+
* 신청 전 미리보기(#115 G49) — 접수와 같은 판정·계산을 저장 없이 돌린다. 접수할 수 없으면 접수와 같은 오류(409 등)다.
|
|
1312
|
+
* 금액은 지금 시점의 예상값이다(차감은 접수 시각의 흐름 식으로 다시 계산한다)
|
|
1313
|
+
*/
|
|
1314
|
+
declare const claimPreviewSchema: z.ZodObject<{
|
|
1315
|
+
quantity: z.ZodNumber;
|
|
1316
|
+
expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
|
|
1317
|
+
claimDeliveryFee: z.ZodNumber;
|
|
1318
|
+
deliveryFeeRefundAmount: z.ZodNumber;
|
|
1319
|
+
couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1320
|
+
couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1321
|
+
pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1322
|
+
deductAmount: z.ZodNumber;
|
|
1323
|
+
}, z.core.$strip>;
|
|
1324
|
+
type ClaimPreview = z.infer<typeof claimPreviewSchema>;
|
|
1310
1325
|
/**
|
|
1311
1326
|
* 반품지 (이슈 #30) — 반품·교환 수거가 안내하는 주소다. 상점 주소록의 기본 반품지이거나,
|
|
1312
1327
|
* 상품이 반품지를 따로 지정했으면 그 주소다.
|
|
@@ -3938,6 +3953,17 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3938
3953
|
couponChargeRefundAmount: number;
|
|
3939
3954
|
pointRefundAmount: number;
|
|
3940
3955
|
}>;
|
|
3956
|
+
/** `POST /me/order-items/{id}/claims/preview` — 신청 전 예상 환불·차감. 접수하지 않는다(#115) */
|
|
3957
|
+
preview: (orderItemId: string, body: CreateClaimRequest) => Promise<{
|
|
3958
|
+
quantity: number;
|
|
3959
|
+
expectedRefundAmount: number | null;
|
|
3960
|
+
claimDeliveryFee: number;
|
|
3961
|
+
deliveryFeeRefundAmount: number;
|
|
3962
|
+
couponChargeAmount: number;
|
|
3963
|
+
couponChargeRefundAmount: number;
|
|
3964
|
+
pointRefundAmount: number;
|
|
3965
|
+
deductAmount: number;
|
|
3966
|
+
}>;
|
|
3941
3967
|
list: (params?: PageParams & {
|
|
3942
3968
|
status?: ClaimStatus;
|
|
3943
3969
|
}) => Promise<{
|
|
@@ -5360,4 +5386,4 @@ declare const storefrontStoreSchema: z.ZodObject<{
|
|
|
5360
5386
|
}, z.core.$strip>;
|
|
5361
5387
|
type StorefrontStore = z.infer<typeof storefrontStoreSchema>;
|
|
5362
5388
|
//#endregion
|
|
5363
|
-
export { ANALYTICS_VISITOR_HEADER as $,
|
|
5389
|
+
export { ANALYTICS_VISITOR_HEADER as $, storefrontCollectionDetailSchema as $i, storefrontCouponListQuerySchema as $n, RemoteArea as $r, customInputEntrySchema as $t, FlowAction as A, shippingAddressInputSchema as Ai, createCustomerInquiryRequestSchema as An, CashReceiptIdentityType as Ar, WritableReview as At, flowActionRequestSchema as B, ProductSearchParams as Bi, MyCoupon as Bn, KnownPaymentResult as Br, updateReviewRequestSchema as Bt, myOrderSchema as C, CartItem as Ca, paymentStartSchema as Ci, createInquiryRequestSchema as Cn, claimReturnAddressSchema as Cr, PublicReview as Ct, commerceNumberField as D, cartSchema as Da, residentNumberLike as Di, CreateCustomerInquiryRequest as Dn, myClaimSchema as Dr, UpdateReviewRequest as Dt, trackingStageResponseSchema as E, cartItemSchema as Ea, remoteAreaSchema as Ei, publicInquirySchema as En, createClaimResultSchema as Er, ReviewSummary as Et, FlowState as F, CollectionProductSortParam as Fi, CheckoutPricingRequest as Fn, CreateCheckoutRequest as Fr, productReviewSortSchema as Ft, flowStateSchema as G, collectionProductPageSchema as Gi, checkoutPricingSchema as Gn, PAYMENT_STATUS_VALUES as Gr, AddonSelection as Gt, flowActionSchema as H, StorefrontCollection as Hi, StorefrontCouponListParams as Hn, KnownPaymentStatus as Hr, uploadTicketSchema as Ht, GuestFlowActionRequest as I, ProductCard as Ii, CouponApplication as In, DeliveryQuoteRequest as Ir, publicReviewSchema as It, orderStepSchema as J, productCardSchema as Ji, couponBenefitViewSchema as Jn, PaymentMethod as Jr, CustomInputView as Jt, guestFlowActionRequestSchema as K, collectionProductQuerySchema as Ki, couponApplicationListSchema as Kn, PaymentFailureCategory as Kr, CustomInputEntry as Kt, ORDER_STEP_TYPES as L, ProductDetail as Li, CouponResult as Ln, DeliveryQuoteResult as Lr, reviewImageUploadRequestSchema as Lt, FlowActionResult as M, CategoryNode as Mi, customerInquirySchema as Mn, CashReceiptType as Mr, createReviewResultSchema as Mt, FlowFieldValue as N, CollectionProductPage as Ni, ApplicableCoupon as Nn, CheckoutDelivery as Nr, myReviewSchema as Nt, formatOrderNo as O, updateCartItemRequestSchema as Oa, responsePaymentMethodSchema as Oi, CustomerInquiry as On, AvailablePaymentOption as Or, UpdateReviewResult as Ot, FlowInputField as P, CollectionProductParams as Pi, CheckoutPricing as Pn, CheckoutSession as Pr, productReviewQuerySchema as Pt, ANALYTICS_VISITOR_COOKIE as Q, productSortSchema as Qi, pricingAmountsSchema as Qn, PgProvider as Qr, addonSelectionSchema as Qt, OrderFlowActionResult as R, ProductFacets as Ri, MAX_COUPONS_PER_CHECKOUT as Rn, EasyPayProvider as Rr, reviewPageSchema as Rt, myOrderItemSchema as S, Cart as Sa, paymentOptionSchema as Si, PublicInquiry as Sn, claimReasonSchema as Sr, ProductReviewSort as St, purchaseDecisionResultSchema as T, addCartItemRequestSchema as Ta, pgProviderSchema as Ti, productInquiryCategorySchema as Tn, createClaimRequestSchema as Tr, ReviewPage as Tt, flowFieldValueSchema as U, StorefrontCollectionDetail as Ui, applicableCouponSchema as Un, PAYMENT_RESULT_VALUES as Ur, writableReviewSchema as Ut, flowActionResultSchema as V, ProductSort as Vi, StorefrontCoupon as Vn, KnownPaymentStartStatus as Vr, updateReviewResultSchema as Vt, flowInputFieldSchema as W, categoryNodeSchema as Wi, checkoutPricingRequestSchema as Wn, PAYMENT_START_STATUS_VALUES as Wr, AddonGroupView as Wt, ANALYTICS_SESSION_COOKIE as X, productFacetsSchema as Xi, myCouponListQuerySchema as Xn, PaymentStart as Xr, OrderInputUploadRequest as Xt, ANALYTICS_MAX_BATCH_BYTES as Y, productDetailSchema as Yi, couponResultSchema as Yn, PaymentOption as Yr, OptionSelectionView as Yt, ANALYTICS_SESSION_HEADER as Z, productPageSchema as Zi, myCouponSchema as Zn, PaymentStatus as Zr, addonGroupViewSchema as Zt, MyOrder as _, myOrderItemFulfillmentSnapshotSchema as _a, paymentFailureCategorySchema as _i, updateProfileRequestSchema as _n, ClaimType as _r, createStorefrontSession as _t, StayView as a, PageParams as aa, cashReceiptAvailable as ai, normalizeCustomInputValue as an, ConsentState as ar, analyticsBatchSchema as at, PurchaseDecisionResult as b, productFulfillmentViewSchema as ba, paymentOptionKey as bi, CreateInquiryResult as bn, MyClaim as br, MyReview as bt, stayViewSchema as c, pageInfoSchema as ca, cashReceiptTypeSchema as ci, parseCustomInputValue as cn, consentActionSchema as cr, analyticsIdSchema as ct, StorefrontPointPolicy as d, MyOrderItemFulfillmentSnapshot as da, createCheckoutRequestSchema as di, MemberAddressRequest as dn, consentStateSchema as dr, StorefrontClientOptions as dt, storefrontCollectionListQuerySchema as ea, ResponsePaymentMethod as ei, customInputLength as en, storefrontCouponSchema as er, AnalyticsBatch as et, memberPointEntryPageSchema as f, PickupLocationView as fa, deliveryQuoteRequestSchema as fi, UpdateProfileRequest as fn, consentUpdateRequestSchema as fr, createStorefrontClient as ft, DeliveryTracking as g, lineFulfillmentSchema as ga, guestInfoSchema as gi, memberSchema as gn, ClaimReturnAddress as gr, StorefrontSessionOptions as gt, storefrontPointPolicySchema as h, UnknownFulfillmentView as ha, easyPayProviderSchema as hi, memberAddressSchema as hn, ClaimReason as hr, StorefrontSession as ht, StayRequest as i, PageInfo as ia, availablePaymentOptionSchema as ii, lineSelectionResponseShape as in, ConsentSource as ir, AnalyticsServerEventName as it, FlowActionRequest as j, startPaymentRequestSchema as ji, customerInquiryCategorySchema as jn, CashReceiptRequest as jr, createReviewRequestSchema as jt, parseOrderNo as k, analyticsIdsFromCookie as ka, retryPaymentRequestSchema as ki, CustomerInquiryCategory as kn, CASH_RECEIPT_METHODS as kr, UploadTicket as kt, MemberPointEntry as l, pageSchema as la, checkoutDeliverySchema as li, Member as ln, consentKindSchema as lr, analyticsServerEventNameSchema as lt, memberPointsSchema as m, ProductFulfillmentView as ma, easyPayProviderResponseSchema as mi, memberAddressRequestSchema as mn, ClaimPreview as mr, SessionStorage as mt, storefrontStoreSchema as n, ClaimStatus as na, ShippingAddressInput as ni, customInputViewSchema as nn, ConsentAction as nr, AnalyticsClientEventName as nt, calendarDayViewSchema as o, claimStatusSchema as oa, cashReceiptIdentityTypeOf as oi, optionSelectionViewSchema as on, ConsentUpdateRequest as or, analyticsClientEventNameSchema as ot, memberPointEntrySchema as p, ProductCardFulfillment as pa, deliveryQuoteSchema as pi, WishlistAddResult as pn, memberConsentsSchema as pr, STOREFRONT_SESSION_KEYS as pt, orderFlowActionResultSchema as q, collectionProductSortSchema as qi, couponApplicationSchema as qn, PaymentMessage as qr, CustomInputValueView as qt, CalendarDayView as r, OrderItemStatus as ra, StartPaymentRequest as ri, lineSelectionRequestShape as rn, ConsentKind as rr, AnalyticsEventName as rt, stayRequestSchema as s, orderItemStatusSchema as sa, cashReceiptRequestSchema as si, orderInputUploadRequestSchema as sn, MemberConsents as sr, analyticsClientEventSchema as st, StorefrontStore as t, storefrontCollectionSchema as ta, RetryPaymentRequest as ti, customInputValueViewSchema as tn, storefrontCouponTargetSchema as tr, AnalyticsClientEvent as tt, MemberPoints as u, LineFulfillment as ua, checkoutSessionSchema as ui, MemberAddress as un, consentSourceSchema as ur, StorefrontClient as ut, MyOrderItem as v, pickupLocationViewSchema as va, paymentMessageSchema as vi, wishlistAddResultSchema as vn, CreateClaimRequest as vr, CreateReviewRequest as vt, orderShippingAddressSchema as w, UpdateCartItemRequest as wa, paymentStatusSchema as wi, createInquiryResultSchema as wn, claimTypeSchema as wr, ReviewImageUploadRequest as wt, deliveryTrackingSchema as x, AddCartItemRequest as xa, paymentOptionListSchema as xi, ProductInquiryCategory as xn, claimPreviewSchema as xr, ProductReviewParams as xt, OrderShippingAddress as y, productCardFulfillmentSchema as ya, paymentMethodSchema as yi, CreateInquiryRequest as yn, CreateClaimResult as yr, CreateReviewResult as yt, OrderStep as z, ProductPage as zi, MIN_PAYMENT_AMOUNT as zn, GuestInfo as zr, reviewSummarySchema as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { C as loginRequestSchema, D as tokenPairSchema, E as socialProviderSchema, O as withdrawRequestSchema, S as linkIdentityRequestSchema, T as signupRequestSchema, _ as anonymousSessionSchema, a as AnonymousSession, b as idpAuthorizeResponseSchema, c as IdpTokenRequest, d as MemberIdentities, f as SignupRequest, g as WithdrawalBlockedDetails, h as WithdrawRequest, i as buildQuery, k as withdrawalBlockedDetailsSchema, l as LinkIdentityRequest, m as TokenPair, n as Query, o as IdpAgreements, p as SocialProvider, r as TokenSource, s as IdpAuthorizeRequest, t as ApiError, u as LoginRequest, v as idpAgreementsSchema, w as memberIdentitiesSchema, x as idpTokenRequestSchema, y as idpAuthorizeRequestSchema } from "./http-1ab7tP4-.mjs";
|
|
2
|
-
import { $ as ANALYTICS_VISITOR_HEADER, $i as
|
|
3
|
-
export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, AddCartItemRequest, AddonGroupView, AddonSelection, AnalyticsBatch, AnalyticsClientEvent, AnalyticsClientEventName, AnalyticsEventName, AnalyticsServerEventName, AnonymousSession, ApiError, ApplicableCoupon, AvailablePaymentOption, CASH_RECEIPT_METHODS, CalendarDayView, Cart, CartItem, CashReceiptIdentityType, CashReceiptRequest, CashReceiptType, CategoryNode, CheckoutDelivery, CheckoutPricing, CheckoutPricingRequest, CheckoutSession, 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, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowStateSchema, formatOrderNo, guestFlowActionRequestSchema, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderFlowActionResultSchema, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, orderStepSchema, pageInfoSchema, pageSchema, parseCustomInputValue, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pickupLocationViewSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, stayRequestSchema, stayViewSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
|
|
2
|
+
import { $ as ANALYTICS_VISITOR_HEADER, $i as storefrontCollectionDetailSchema, $n as storefrontCouponListQuerySchema, $r as RemoteArea, $t as customInputEntrySchema, A as FlowAction, Ai as shippingAddressInputSchema, An as createCustomerInquiryRequestSchema, Ar as CashReceiptIdentityType, At as WritableReview, B as flowActionRequestSchema, Bi as ProductSearchParams, Bn as MyCoupon, Br as KnownPaymentResult, Bt as updateReviewRequestSchema, C as myOrderSchema, Ca as CartItem, Ci as paymentStartSchema, Cn as createInquiryRequestSchema, Cr as claimReturnAddressSchema, Ct as PublicReview, D as commerceNumberField, Da as cartSchema, Di as residentNumberLike, Dn as CreateCustomerInquiryRequest, Dr as myClaimSchema, Dt as UpdateReviewRequest, E as trackingStageResponseSchema, Ea as cartItemSchema, Ei as remoteAreaSchema, En as publicInquirySchema, Er as createClaimResultSchema, Et as ReviewSummary, F as FlowState, Fi as CollectionProductSortParam, Fn as CheckoutPricingRequest, Fr as CreateCheckoutRequest, Ft as productReviewSortSchema, G as flowStateSchema, Gi as collectionProductPageSchema, Gn as checkoutPricingSchema, Gr as PAYMENT_STATUS_VALUES, Gt as AddonSelection, H as flowActionSchema, Hi as StorefrontCollection, Hn as StorefrontCouponListParams, Hr as KnownPaymentStatus, Ht as uploadTicketSchema, I as GuestFlowActionRequest, Ii as ProductCard, In as CouponApplication, Ir as DeliveryQuoteRequest, It as publicReviewSchema, J as orderStepSchema, Ji as productCardSchema, Jn as couponBenefitViewSchema, Jr as PaymentMethod, Jt as CustomInputView, K as guestFlowActionRequestSchema, Ki as collectionProductQuerySchema, Kn as couponApplicationListSchema, Kr as PaymentFailureCategory, Kt as CustomInputEntry, L as ORDER_STEP_TYPES, Li as ProductDetail, Ln as CouponResult, Lr as DeliveryQuoteResult, Lt as reviewImageUploadRequestSchema, M as FlowActionResult, Mi as CategoryNode, Mn as customerInquirySchema, Mr as CashReceiptType, Mt as createReviewResultSchema, N as FlowFieldValue, Ni as CollectionProductPage, Nn as ApplicableCoupon, Nr as CheckoutDelivery, Nt as myReviewSchema, O as formatOrderNo, Oa as updateCartItemRequestSchema, Oi as responsePaymentMethodSchema, On as CustomerInquiry, Or as AvailablePaymentOption, Ot as UpdateReviewResult, P as FlowInputField, Pi as CollectionProductParams, Pn as CheckoutPricing, Pr as CheckoutSession, Pt as productReviewQuerySchema, Q as ANALYTICS_VISITOR_COOKIE, Qi as productSortSchema, Qn as pricingAmountsSchema, Qr as PgProvider, Qt as addonSelectionSchema, R as OrderFlowActionResult, Ri as ProductFacets, Rn as MAX_COUPONS_PER_CHECKOUT, Rr as EasyPayProvider, Rt as reviewPageSchema, S as myOrderItemSchema, Sa as Cart, Si as paymentOptionSchema, Sn as PublicInquiry, Sr as claimReasonSchema, St as ProductReviewSort, T as purchaseDecisionResultSchema, Ta as addCartItemRequestSchema, Ti as pgProviderSchema, Tn as productInquiryCategorySchema, Tr as createClaimRequestSchema, Tt as ReviewPage, U as flowFieldValueSchema, Ui as StorefrontCollectionDetail, Un as applicableCouponSchema, Ur as PAYMENT_RESULT_VALUES, Ut as writableReviewSchema, V as flowActionResultSchema, Vi as ProductSort, Vn as StorefrontCoupon, Vr as KnownPaymentStartStatus, Vt as updateReviewResultSchema, W as flowInputFieldSchema, Wi as categoryNodeSchema, Wn as checkoutPricingRequestSchema, Wr as PAYMENT_START_STATUS_VALUES, Wt as AddonGroupView, X as ANALYTICS_SESSION_COOKIE, Xi as productFacetsSchema, Xn as myCouponListQuerySchema, Xr as PaymentStart, Xt as OrderInputUploadRequest, Y as ANALYTICS_MAX_BATCH_BYTES, Yi as productDetailSchema, Yn as couponResultSchema, Yr as PaymentOption, Yt as OptionSelectionView, Z as ANALYTICS_SESSION_HEADER, Zi as productPageSchema, Zn as myCouponSchema, Zr as PaymentStatus, Zt as addonGroupViewSchema, _ as MyOrder, _a as myOrderItemFulfillmentSnapshotSchema, _i as paymentFailureCategorySchema, _n as updateProfileRequestSchema, _r as ClaimType, _t as createStorefrontSession, a as StayView, aa as PageParams, ai as cashReceiptAvailable, an as normalizeCustomInputValue, ar as ConsentState, at as analyticsBatchSchema, b as PurchaseDecisionResult, ba as productFulfillmentViewSchema, bi as paymentOptionKey, bn as CreateInquiryResult, br as MyClaim, bt as MyReview, c as stayViewSchema, ca as pageInfoSchema, ci as cashReceiptTypeSchema, cn as parseCustomInputValue, cr as consentActionSchema, ct as analyticsIdSchema, d as StorefrontPointPolicy, da as MyOrderItemFulfillmentSnapshot, di as createCheckoutRequestSchema, dn as MemberAddressRequest, dr as consentStateSchema, dt as StorefrontClientOptions, ea as storefrontCollectionListQuerySchema, ei as ResponsePaymentMethod, en as customInputLength, er as storefrontCouponSchema, et as AnalyticsBatch, f as memberPointEntryPageSchema, fa as PickupLocationView, fi as deliveryQuoteRequestSchema, fn as UpdateProfileRequest, fr as consentUpdateRequestSchema, ft as createStorefrontClient, g as DeliveryTracking, ga as lineFulfillmentSchema, gi as guestInfoSchema, gn as memberSchema, gr as ClaimReturnAddress, gt as StorefrontSessionOptions, h as storefrontPointPolicySchema, ha as UnknownFulfillmentView, hi as easyPayProviderSchema, hn as memberAddressSchema, hr as ClaimReason, ht as StorefrontSession, i as StayRequest, ia as PageInfo, ii as availablePaymentOptionSchema, in as lineSelectionResponseShape, ir as ConsentSource, it as AnalyticsServerEventName, j as FlowActionRequest, ji as startPaymentRequestSchema, jn as customerInquiryCategorySchema, jr as CashReceiptRequest, jt as createReviewRequestSchema, k as parseOrderNo, ka as analyticsIdsFromCookie, ki as retryPaymentRequestSchema, kn as CustomerInquiryCategory, kr as CASH_RECEIPT_METHODS, kt as UploadTicket, l as MemberPointEntry, la as pageSchema, li as checkoutDeliverySchema, ln as Member, lr as consentKindSchema, lt as analyticsServerEventNameSchema, m as memberPointsSchema, ma as ProductFulfillmentView, mi as easyPayProviderResponseSchema, mn as memberAddressRequestSchema, mr as ClaimPreview, mt as SessionStorage, n as storefrontStoreSchema, na as ClaimStatus, ni as ShippingAddressInput, nn as customInputViewSchema, nr as ConsentAction, nt as AnalyticsClientEventName, o as calendarDayViewSchema, oa as claimStatusSchema, oi as cashReceiptIdentityTypeOf, on as optionSelectionViewSchema, or as ConsentUpdateRequest, ot as analyticsClientEventNameSchema, p as memberPointEntrySchema, pa as ProductCardFulfillment, pi as deliveryQuoteSchema, pn as WishlistAddResult, pr as memberConsentsSchema, pt as STOREFRONT_SESSION_KEYS, q as orderFlowActionResultSchema, qi as collectionProductSortSchema, qn as couponApplicationSchema, qr as PaymentMessage, qt as CustomInputValueView, r as CalendarDayView, ra as OrderItemStatus, ri as StartPaymentRequest, rn as lineSelectionRequestShape, rr as ConsentKind, rt as AnalyticsEventName, s as stayRequestSchema, sa as orderItemStatusSchema, si as cashReceiptRequestSchema, sn as orderInputUploadRequestSchema, sr as MemberConsents, st as analyticsClientEventSchema, t as StorefrontStore, ta as storefrontCollectionSchema, ti as RetryPaymentRequest, tn as customInputValueViewSchema, tr as storefrontCouponTargetSchema, tt as AnalyticsClientEvent, u as MemberPoints, ua as LineFulfillment, ui as checkoutSessionSchema, un as MemberAddress, ur as consentSourceSchema, ut as StorefrontClient, v as MyOrderItem, va as pickupLocationViewSchema, vi as paymentMessageSchema, vn as wishlistAddResultSchema, vr as CreateClaimRequest, vt as CreateReviewRequest, w as orderShippingAddressSchema, wa as UpdateCartItemRequest, wi as paymentStatusSchema, wn as createInquiryResultSchema, wr as claimTypeSchema, wt as ReviewImageUploadRequest, x as deliveryTrackingSchema, xa as AddCartItemRequest, xi as paymentOptionListSchema, xn as ProductInquiryCategory, xr as claimPreviewSchema, xt as ProductReviewParams, y as OrderShippingAddress, ya as productCardFulfillmentSchema, yi as paymentMethodSchema, yn as CreateInquiryRequest, yr as CreateClaimResult, yt as CreateReviewResult, z as OrderStep, zi as ProductPage, zn as MIN_PAYMENT_AMOUNT, zr as GuestInfo, zt as reviewSummarySchema } from "./index-DYKDbtx6.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, 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
|
|
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-CJ2oWniR.mjs";
|
|
4
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와 겹치지 않는 별도 네임스페이스. */
|
|
@@ -125,4 +125,4 @@ function createStorefrontSession(options) {
|
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
//#endregion
|
|
128
|
-
export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, ApiError, CASH_RECEIPT_METHODS, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, ORDER_STEP_TYPES, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, STOREFRONT_SESSION_KEYS, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, calendarDayViewSchema, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowStateSchema, formatOrderNo, guestFlowActionRequestSchema, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderFlowActionResultSchema, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, orderStepSchema, pageInfoSchema, pageSchema, parseCustomInputValue, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pickupLocationViewSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, stayRequestSchema, stayViewSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
|
|
128
|
+
export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, ApiError, CASH_RECEIPT_METHODS, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, ORDER_STEP_TYPES, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, STOREFRONT_SESSION_KEYS, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, calendarDayViewSchema, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimPreviewSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowStateSchema, formatOrderNo, guestFlowActionRequestSchema, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderFlowActionResultSchema, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, orderStepSchema, pageInfoSchema, pageSchema, parseCustomInputValue, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pickupLocationViewSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, stayRequestSchema, stayViewSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Xr as PaymentStart, Yr as PaymentOption, Zr as PaymentStatus, ft as createStorefrontClient, jr as CashReceiptRequest, ni as ShippingAddressInput, ri as StartPaymentRequest, zr as GuestInfo } from "../index-DYKDbtx6.mjs";
|
|
2
2
|
//#region src/payments/index.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* 스토어프론트 결제 — 브라우저 전용(`@sayren/storefront-sdk/payments`).
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -53,6 +53,7 @@ import {
|
|
|
53
53
|
} from "./schemas/checkout";
|
|
54
54
|
import {
|
|
55
55
|
type CreateClaimRequest,
|
|
56
|
+
claimPreviewSchema,
|
|
56
57
|
createClaimRequestSchema,
|
|
57
58
|
createClaimResultSchema,
|
|
58
59
|
myClaimSchema,
|
|
@@ -498,6 +499,14 @@ export function createStorefrontClient(options: StorefrontClientOptions) {
|
|
|
498
499
|
http.request("POST", path`/me/order-items/${orderItemId}/claims`, createClaimResultSchema, {
|
|
499
500
|
body: createClaimRequestSchema.parse(body),
|
|
500
501
|
}),
|
|
502
|
+
/** `POST /me/order-items/{id}/claims/preview` — 신청 전 예상 환불·차감. 접수하지 않는다(#115) */
|
|
503
|
+
preview: (orderItemId: string, body: CreateClaimRequest) =>
|
|
504
|
+
http.request(
|
|
505
|
+
"POST",
|
|
506
|
+
path`/me/order-items/${orderItemId}/claims/preview`,
|
|
507
|
+
claimPreviewSchema,
|
|
508
|
+
{ body: createClaimRequestSchema.parse(body) },
|
|
509
|
+
),
|
|
501
510
|
list: (params?: PageParams & { status?: ClaimStatus }) =>
|
|
502
511
|
http.request("GET", "/me/claims", pageSchema(myClaimSchema), { query: params as Query }),
|
|
503
512
|
withdraw: (claimId: string) => http.requestVoid("POST", path`/me/claims/${claimId}/withdraw`),
|
package/src/schemas/claim.ts
CHANGED
|
@@ -88,6 +88,23 @@ export const createClaimResultSchema = z.object({
|
|
|
88
88
|
|
|
89
89
|
export type CreateClaimResult = z.infer<typeof createClaimResultSchema>;
|
|
90
90
|
|
|
91
|
+
/**
|
|
92
|
+
* 신청 전 미리보기(#115 G49) — 접수와 같은 판정·계산을 저장 없이 돌린다. 접수할 수 없으면 접수와 같은 오류(409 등)다.
|
|
93
|
+
* 금액은 지금 시점의 예상값이다(차감은 접수 시각의 흐름 식으로 다시 계산한다)
|
|
94
|
+
*/
|
|
95
|
+
export const claimPreviewSchema = createClaimResultSchema
|
|
96
|
+
.omit({ claimId: true, claimNo: true, status: true })
|
|
97
|
+
.extend({
|
|
98
|
+
deductAmount: z
|
|
99
|
+
.number()
|
|
100
|
+
.int()
|
|
101
|
+
.describe(
|
|
102
|
+
"흐름이 정한 취소 수수료(체크인·관람일까지 남은 기간 등). 예상 환불액에서 이미 뺐다. 수수료가 없으면 0",
|
|
103
|
+
),
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
export type ClaimPreview = z.infer<typeof claimPreviewSchema>;
|
|
107
|
+
|
|
91
108
|
/**
|
|
92
109
|
* 반품지 (이슈 #30) — 반품·교환 수거가 안내하는 주소다. 상점 주소록의 기본 반품지이거나,
|
|
93
110
|
* 상품이 반품지를 따로 지정했으면 그 주소다.
|