@sayren/storefront-sdk 0.18.3 → 0.19.0

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 { t as createStorefrontClient, yt as ApiError } from "../client-nLYVG_HJ.mjs";
1
+ import { Tt as ApiError, t as createStorefrontClient } from "../client-Dgpp9T8r.mjs";
2
2
  //#region src/auth/index.ts
3
3
  /** 소셜 로그인 실패 — 구매자가 취소했거나(`access_denied`) state가 맞지 않는다 */
4
4
  var IdpCallbackError = class extends Error {
@@ -536,7 +536,8 @@ const paymentStatusSchema = z.object({
536
536
  attemptId: z.string(),
537
537
  category: z.string().describe("`PREPARE_FAILURE`·`DECLINED`·`USER_CANCELED`(값이 추가될 수 있다)"),
538
538
  code: z.string().nullable().describe("PG가 준 실패 코드. 내부 사유는 null입니다. 화면 분기는 `category`로 하십시오"),
539
- message: z.string().nullable().describe("구매자에게 보여 줄 안내 문구")
539
+ message: z.string().nullable().describe("구매자에게 보여 줄 안내 문구"),
540
+ optionUnavailable: z.boolean().optional().describe("true면 상점의 PG 설정 문제처럼 구매자가 고칠 수 없는 실패입니다(이슈 #86). 같은 결제 옵션으로 다시 시도해도 실패하므로 그 옵션을 고르지 못하게 하고 다른 결제수단을 고르게 하십시오. 이때 `message`는 그 안내입니다. 서버는 항상 싣습니다")
540
541
  }).nullable().describe("현재 결제 시도가 실패·취소로 끝났으면 그 내용, 아니면 null"),
541
542
  testPayment: z.boolean().describe("테스트 결제(샌드박스)인가. true면 실제로 돈이 나가지 않았습니다"),
542
543
  expiresAt: z.string().describe("결제 요청 만료 시각")
@@ -1,5 +1,5 @@
1
1
  import { a as ANALYTICS_VISITOR_HEADER, r as ANALYTICS_SESSION_HEADER } from "./analytics-CgD70OqH.mjs";
2
- import { $ as lineFulfillmentSchema, A as startPaymentRequestSchema, C as paymentStartSchema, F as checkoutPricingSchema, J as customInputViewSchema, N as applicableCouponSchema, O as retryPaymentRequestSchema, P as checkoutPricingRequestSchema, U as addonGroupViewSchema, V as myCouponSchema, X as lineSelectionResponseShape, Y as lineSelectionRequestShape, d as createCheckoutRequestSchema, et as myOrderItemFulfillmentSnapshotSchema, f as deliveryQuoteRequestSchema, m as easyPayProviderResponseSchema, nt as productFulfillmentViewSchema, p as deliveryQuoteSchema, tt as productCardFulfillmentSchema, u as checkoutSessionSchema, w as paymentStatusSchema, y as paymentMethodSchema } from "./checkout-PJk8g5DY.mjs";
2
+ import { $ as lineFulfillmentSchema, A as startPaymentRequestSchema, C as paymentStartSchema, F as checkoutPricingSchema, J as customInputViewSchema, N as applicableCouponSchema, O as retryPaymentRequestSchema, P as checkoutPricingRequestSchema, U as addonGroupViewSchema, V as myCouponSchema, X as lineSelectionResponseShape, Y as lineSelectionRequestShape, d as createCheckoutRequestSchema, et as myOrderItemFulfillmentSnapshotSchema, f as deliveryQuoteRequestSchema, m as easyPayProviderResponseSchema, nt as productFulfillmentViewSchema, p as deliveryQuoteSchema, tt as productCardFulfillmentSchema, u as checkoutSessionSchema, w as paymentStatusSchema, y as paymentMethodSchema } from "./checkout-CCsO8PY2.mjs";
3
3
  import { z } from "zod";
4
4
  //#region src/http.ts
5
5
  /** 표준 엔벨로프의 $.error 상세 */
@@ -382,6 +382,42 @@ const productFacetsSchema = z.object({
382
382
  });
383
383
  /** `GET /products` 응답 — 상품 카드 페이지와 검색 패싯 */
384
384
  const productPageSchema = pageSchema(productCardSchema).extend({ facets: productFacetsSchema.optional() });
385
+ /**
386
+ * 컬렉션 (이슈 #83) — 셀러가 묶은 상품 목록(기획전·이벤트·신상품 등). 노출 중인 것(노출 켜짐 + 기간 안)만 보인다.
387
+ * 주소 값은 `slug`이고 상품 목록은 `GET /collections/{slug}/products`다.
388
+ */
389
+ const storefrontCollectionSchema = z.object({
390
+ collectionId: z.string(),
391
+ slug: z.string(),
392
+ title: z.string(),
393
+ description: z.string(),
394
+ imageUrl: z.string().nullable().describe("대표 이미지 주소. 없으면 null"),
395
+ startsAt: z.string().nullable().describe("노출 시작 시각. 없으면 null"),
396
+ endsAt: z.string().nullable().describe("노출 종료 시각. 없으면 null(끝나지 않는다)")
397
+ });
398
+ /** 컬렉션 상품 정렬 — 상품 검색 정렬 + `manual`(셀러가 정한 순서) */
399
+ const collectionProductSortSchema = z.enum(["manual", ...productSortSchema.options]);
400
+ /** `GET /collections/{slug}` — 목록 항목 + 기본 정렬·검색 메타 */
401
+ const storefrontCollectionDetailSchema = storefrontCollectionSchema.extend({
402
+ productSort: z.string().describe("상품 목록 기본 정렬(`sort`를 생략하면 이 정렬이다). 현재 값은 `CollectionProductSortParam`이고 값이 늘 수 있어 문자열이다"),
403
+ metaTitle: z.string().nullable(),
404
+ metaDescription: z.string().nullable()
405
+ });
406
+ /** `GET /collections/{slug}/products` 쿼리 — OpenAPI 문서용 형태(값은 쿼리 문자열) */
407
+ const collectionProductQuerySchema = z.object({
408
+ sort: collectionProductSortSchema.optional().describe("정렬. 생략하면 컬렉션의 기본 정렬"),
409
+ minPrice: z.string().optional().describe("최소 판매가(즉시할인 반영)"),
410
+ maxPrice: z.string().optional().describe("최대 판매가(즉시할인 반영)"),
411
+ page: z.string().optional().describe("페이지 번호 (1부터, 기본 1)"),
412
+ size: z.string().optional().describe("페이지 크기 (기본 20, 최대 60)")
413
+ });
414
+ /** 컬렉션 상품 페이지 — 상품 검색과 같은 카드다(판매 중 상품만) */
415
+ const collectionProductPageSchema = pageSchema(productCardSchema);
416
+ /** `GET /collections` 쿼리 */
417
+ const storefrontCollectionListQuerySchema = z.object({
418
+ page: z.string().optional().describe("페이지 번호 (1부터, 기본 1)"),
419
+ size: z.string().optional().describe("페이지 크기 (기본 20, 최대 100)")
420
+ });
385
421
  //#endregion
386
422
  //#region src/schemas/claim.ts
387
423
  const claimTypeSchema = z.enum([
@@ -771,7 +807,7 @@ const updateReviewRequestSchema = z.object({
771
807
  content: z.string().min(10).max(2e3).optional(),
772
808
  images: z.array(z.url()).max(5).optional()
773
809
  }).refine((value) => Object.values(value).some((v) => v !== void 0), { message: "최소 1개 필드가 필요합니다" });
774
- /** 리뷰 정렬 — `helpful`은 도움 데이터가 없어 평점 높은 순과 같다 */
810
+ /** 리뷰 정렬 — `helpful`(랭킹순)은 사진 있는 리뷰 → 평점 높은 순 → 최신 순이다(도움돼요 수 데이터는 없다, #97) */
775
811
  const productReviewSortSchema = z.enum([
776
812
  "latest",
777
813
  "ratingDesc",
@@ -783,7 +819,7 @@ const productReviewQuerySchema = z.object({
783
819
  rating: z.string().optional().describe("이 평점(1~5)의 리뷰만"),
784
820
  hasImage: z.string().optional().describe("`true`면 사진이 있는 리뷰만"),
785
821
  variantId: z.string().optional().describe("이 옵션(조합)으로 산 리뷰만(이슈 #91). 상품 상세 `variants[].variantId`이고 리뷰 응답의 `variantId`와 같은 값이다. 다른 필터와 함께 쓰면 모두 만족하는 리뷰만 온다"),
786
- sort: z.string().optional().describe("정렬. `latest`(기본)·`ratingDesc`·`ratingAsc`·`helpful`(평점 높은 순과 같다)"),
822
+ sort: z.string().optional().describe("정렬. `latest`(기본, 최신 순)·`ratingDesc`(평점 높은 순)·`ratingAsc`(평점 낮은 순)·`helpful`(랭킹순 — 사진 있는 리뷰 먼저, 그다음 평점 높은 순, 같으면 최신 순. 도움돼요 수는 반영하지 않는다)"),
787
823
  page: z.string().optional().describe("페이지 번호 (1부터)"),
788
824
  size: z.string().optional().describe("페이지 크기")
789
825
  });
@@ -937,7 +973,13 @@ get: () => http.request("GET", "/store", storefrontStoreSchema) },
937
973
  /** 상품 리뷰 목록 — `variantId`로 옵션(조합)별 리뷰만 받는다(상품 상세 `variants[].variantId`) */
938
974
  listProductReviews: (productId, params) => http.request("GET", path`/products/${productId}/reviews`, reviewPageSchema, { query: params }),
939
975
  listProductInquiries: (productId, params) => http.request("GET", path`/products/${productId}/inquiries`, pageSchema(publicInquirySchema), { query: params }),
940
- createInquiry: (productId, body) => http.requestVoid("POST", path`/products/${productId}/inquiries`, { body })
976
+ createInquiry: (productId, body) => http.requestVoid("POST", path`/products/${productId}/inquiries`, { body }),
977
+ /** 노출 중인 컬렉션(노출 켜짐 + 기간 안) — 셀러가 정한 순서 */
978
+ listCollections: (params) => http.request("GET", "/collections", pageSchema(storefrontCollectionSchema), { query: params }),
979
+ /** 숨김·기간 밖·없음은 모두 404 `COLLECTION_NOT_FOUND` */
980
+ getCollection: (slug) => http.request("GET", path`/collections/${slug}`, storefrontCollectionDetailSchema),
981
+ /** 컬렉션 상품(판매 중만). `sort`를 생략하면 컬렉션의 기본 정렬이다 */
982
+ listCollectionProducts: (slug, params) => http.request("GET", path`/collections/${slug}/products`, collectionProductPageSchema, { query: params })
941
983
  },
942
984
  cart: {
943
985
  get: () => http.request("GET", "/cart", cartSchema),
@@ -1057,4 +1099,4 @@ get: () => http.request("GET", "/store", storefrontStoreSchema) },
1057
1099
  };
1058
1100
  }
1059
1101
  //#endregion
1060
- export { orderItemStatusSchema as $, publicInquirySchema as A, claimReasonSchema as B, memberAddressSchema as C, createInquiryRequestSchema as D, wishlistAddResultSchema as E, consentKindSchema as F, myClaimSchema as G, claimTypeSchema as H, consentSourceSchema as I, productDetailSchema as J, categoryNodeSchema as K, consentStateSchema as L, customerInquiryCategorySchema as M, customerInquirySchema as N, createInquiryResultSchema as O, consentActionSchema as P, claimStatusSchema as Q, consentUpdateRequestSchema as R, memberAddressRequestSchema as S, unwrapData as St, updateProfileRequestSchema as T, createClaimRequestSchema as U, claimReturnAddressSchema as V, createClaimResultSchema as W, productPageSchema as X, productFacetsSchema as Y, productSortSchema as Z, myOrderItemSchema as _, withdrawRequestSchema as _t, myReviewSchema as a, updateCartItemRequestSchema as at, purchaseDecisionResultSchema as b, buildQuery as bt, publicReviewSchema as c, idpAuthorizeRequestSchema as ct, reviewSummarySchema as d, linkIdentityRequestSchema as dt, pageInfoSchema as et, updateReviewRequestSchema as f, loginRequestSchema as ft, deliveryTrackingSchema as g, tokenPairSchema as gt, writableReviewSchema as h, socialProviderSchema as ht, createReviewResultSchema as i, cartSchema as it, createCustomerInquiryRequestSchema as j, productInquiryCategorySchema as k, reviewImageUploadRequestSchema as l, idpAuthorizeResponseSchema as lt, uploadTicketSchema as m, signupRequestSchema as mt, storefrontStoreSchema as n, addCartItemRequestSchema as nt, productReviewQuerySchema as o, anonymousSessionSchema as ot, updateReviewResultSchema as p, memberIdentitiesSchema as pt, productCardSchema as q, createReviewRequestSchema as r, cartItemSchema as rt, productReviewSortSchema as s, idpAgreementsSchema as st, createStorefrontClient as t, pageSchema as tt, reviewPageSchema as u, idpTokenRequestSchema as ut, myOrderSchema as v, withdrawalBlockedDetailsSchema as vt, memberSchema as w, trackingStageResponseSchema as x, toApiError as xt, orderShippingAddressSchema as y, ApiError as yt, memberConsentsSchema as z };
1102
+ export { productPageSchema as $, publicInquirySchema as A, claimReasonSchema as B, memberAddressSchema as C, withdrawRequestSchema as Ct, createInquiryRequestSchema as D, toApiError as Dt, wishlistAddResultSchema as E, buildQuery as Et, consentKindSchema as F, myClaimSchema as G, claimTypeSchema as H, consentSourceSchema as I, collectionProductQuerySchema as J, categoryNodeSchema as K, consentStateSchema as L, customerInquiryCategorySchema as M, customerInquirySchema as N, createInquiryResultSchema as O, unwrapData as Ot, consentActionSchema as P, productFacetsSchema as Q, consentUpdateRequestSchema as R, memberAddressRequestSchema as S, tokenPairSchema as St, updateProfileRequestSchema as T, ApiError as Tt, createClaimRequestSchema as U, claimReturnAddressSchema as V, createClaimResultSchema as W, productCardSchema as X, collectionProductSortSchema as Y, productDetailSchema as Z, myOrderItemSchema as _, linkIdentityRequestSchema as _t, myReviewSchema as a, orderItemStatusSchema as at, purchaseDecisionResultSchema as b, signupRequestSchema as bt, publicReviewSchema as c, addCartItemRequestSchema as ct, reviewSummarySchema as d, updateCartItemRequestSchema as dt, productSortSchema as et, updateReviewRequestSchema as f, anonymousSessionSchema as ft, deliveryTrackingSchema as g, idpTokenRequestSchema as gt, writableReviewSchema as h, idpAuthorizeResponseSchema as ht, createReviewResultSchema as i, claimStatusSchema as it, createCustomerInquiryRequestSchema as j, productInquiryCategorySchema as k, reviewImageUploadRequestSchema as l, cartItemSchema as lt, uploadTicketSchema as m, idpAuthorizeRequestSchema as mt, storefrontStoreSchema as n, storefrontCollectionListQuerySchema as nt, productReviewQuerySchema as o, pageInfoSchema as ot, updateReviewResultSchema as p, idpAgreementsSchema as pt, collectionProductPageSchema as q, createReviewRequestSchema as r, storefrontCollectionSchema as rt, productReviewSortSchema as s, pageSchema as st, createStorefrontClient as t, storefrontCollectionDetailSchema as tt, reviewPageSchema as u, cartSchema as ut, myOrderSchema as v, loginRequestSchema as vt, memberSchema as w, withdrawalBlockedDetailsSchema as wt, trackingStageResponseSchema as x, socialProviderSchema as xt, orderShippingAddressSchema as y, memberIdentitiesSchema as yt, memberConsentsSchema as z };
@@ -392,6 +392,96 @@ declare const productPageSchema: z.ZodObject<{
392
392
  }, z.core.$strip>>;
393
393
  }, z.core.$strip>;
394
394
  type ProductPage = z.infer<typeof productPageSchema>;
395
+ /**
396
+ * 컬렉션 (이슈 #83) — 셀러가 묶은 상품 목록(기획전·이벤트·신상품 등). 노출 중인 것(노출 켜짐 + 기간 안)만 보인다.
397
+ * 주소 값은 `slug`이고 상품 목록은 `GET /collections/{slug}/products`다.
398
+ */
399
+ declare const storefrontCollectionSchema: z.ZodObject<{
400
+ collectionId: z.ZodString;
401
+ slug: z.ZodString;
402
+ title: z.ZodString;
403
+ description: z.ZodString;
404
+ imageUrl: z.ZodNullable<z.ZodString>;
405
+ startsAt: z.ZodNullable<z.ZodString>;
406
+ endsAt: z.ZodNullable<z.ZodString>;
407
+ }, z.core.$strip>;
408
+ type StorefrontCollection = z.infer<typeof storefrontCollectionSchema>;
409
+ /** 컬렉션 상품 정렬 — 상품 검색 정렬 + `manual`(셀러가 정한 순서) */
410
+ declare const collectionProductSortSchema: z.ZodEnum<{
411
+ reviewCount: "reviewCount";
412
+ recommend: "recommend";
413
+ latest: "latest";
414
+ priceAsc: "priceAsc";
415
+ priceDesc: "priceDesc";
416
+ ratingDesc: "ratingDesc";
417
+ manual: "manual";
418
+ }>;
419
+ type CollectionProductSortParam = z.infer<typeof collectionProductSortSchema>;
420
+ /** `GET /collections/{slug}` — 목록 항목 + 기본 정렬·검색 메타 */
421
+ declare const storefrontCollectionDetailSchema: z.ZodObject<{
422
+ collectionId: z.ZodString;
423
+ slug: z.ZodString;
424
+ title: z.ZodString;
425
+ description: z.ZodString;
426
+ imageUrl: z.ZodNullable<z.ZodString>;
427
+ startsAt: z.ZodNullable<z.ZodString>;
428
+ endsAt: z.ZodNullable<z.ZodString>;
429
+ productSort: z.ZodString;
430
+ metaTitle: z.ZodNullable<z.ZodString>;
431
+ metaDescription: z.ZodNullable<z.ZodString>;
432
+ }, z.core.$strip>;
433
+ type StorefrontCollectionDetail = z.infer<typeof storefrontCollectionDetailSchema>;
434
+ interface CollectionProductParams extends PageParams {
435
+ sort?: CollectionProductSortParam;
436
+ minPrice?: number;
437
+ maxPrice?: number;
438
+ }
439
+ /** `GET /collections/{slug}/products` 쿼리 — OpenAPI 문서용 형태(값은 쿼리 문자열) */
440
+ declare const collectionProductQuerySchema: z.ZodObject<{
441
+ sort: z.ZodOptional<z.ZodEnum<{
442
+ reviewCount: "reviewCount";
443
+ recommend: "recommend";
444
+ latest: "latest";
445
+ priceAsc: "priceAsc";
446
+ priceDesc: "priceDesc";
447
+ ratingDesc: "ratingDesc";
448
+ manual: "manual";
449
+ }>>;
450
+ minPrice: z.ZodOptional<z.ZodString>;
451
+ maxPrice: z.ZodOptional<z.ZodString>;
452
+ page: z.ZodOptional<z.ZodString>;
453
+ size: z.ZodOptional<z.ZodString>;
454
+ }, z.core.$strip>;
455
+ /** 컬렉션 상품 페이지 — 상품 검색과 같은 카드다(판매 중 상품만) */
456
+ declare const collectionProductPageSchema: z.ZodObject<{
457
+ page: z.ZodNumber;
458
+ size: z.ZodNumber;
459
+ totalElements: z.ZodNumber;
460
+ totalPages: z.ZodNumber;
461
+ contents: z.ZodArray<z.ZodObject<{
462
+ productId: z.ZodString;
463
+ name: z.ZodString;
464
+ thumbnailUrl: z.ZodNullable<z.ZodURL>;
465
+ salePrice: z.ZodNumber;
466
+ discountedPrice: z.ZodNullable<z.ZodNumber>;
467
+ discountRate: z.ZodNullable<z.ZodNumber>;
468
+ originalPrice: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
469
+ freeShipping: z.ZodBoolean;
470
+ fulfillment: z.ZodObject<{
471
+ type: z.ZodString;
472
+ requiresShipping: z.ZodBoolean;
473
+ }, z.core.$strip>;
474
+ averageRating: z.ZodNumber;
475
+ reviewCount: z.ZodNumber;
476
+ soldOut: z.ZodBoolean;
477
+ }, z.core.$strip>>;
478
+ }, z.core.$strip>;
479
+ type CollectionProductPage = z.infer<typeof collectionProductPageSchema>;
480
+ /** `GET /collections` 쿼리 */
481
+ declare const storefrontCollectionListQuerySchema: z.ZodObject<{
482
+ page: z.ZodOptional<z.ZodString>;
483
+ size: z.ZodOptional<z.ZodString>;
484
+ }, z.core.$strip>;
395
485
  //#endregion
396
486
  //#region src/schemas/checkout.d.ts
397
487
  declare const createCheckoutRequestSchema: z.ZodObject<{
@@ -1023,6 +1113,7 @@ declare const paymentStatusSchema: z.ZodObject<{
1023
1113
  category: z.ZodString;
1024
1114
  code: z.ZodNullable<z.ZodString>;
1025
1115
  message: z.ZodNullable<z.ZodString>;
1116
+ optionUnavailable: z.ZodOptional<z.ZodBoolean>;
1026
1117
  }, z.core.$strip>>;
1027
1118
  testPayment: z.ZodBoolean;
1028
1119
  expiresAt: z.ZodString;
@@ -1610,7 +1701,7 @@ declare const updateReviewRequestSchema: z.ZodObject<{
1610
1701
  images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
1611
1702
  }, z.core.$strip>;
1612
1703
  type UpdateReviewRequest = z.infer<typeof updateReviewRequestSchema>;
1613
- /** 리뷰 정렬 — `helpful`은 도움 데이터가 없어 평점 높은 순과 같다 */
1704
+ /** 리뷰 정렬 — `helpful`(랭킹순)은 사진 있는 리뷰 → 평점 높은 순 → 최신 순이다(도움돼요 수 데이터는 없다, #97) */
1614
1705
  declare const productReviewSortSchema: z.ZodEnum<{
1615
1706
  latest: "latest";
1616
1707
  ratingDesc: "ratingDesc";
@@ -2039,6 +2130,59 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2039
2130
  }[];
2040
2131
  }>;
2041
2132
  createInquiry: (productId: string, body: CreateInquiryRequest) => Promise<void>;
2133
+ /** 노출 중인 컬렉션(노출 켜짐 + 기간 안) — 셀러가 정한 순서 */
2134
+ listCollections: (params?: PageParams) => Promise<{
2135
+ page: number;
2136
+ size: number;
2137
+ totalElements: number;
2138
+ totalPages: number;
2139
+ contents: {
2140
+ collectionId: string;
2141
+ slug: string;
2142
+ title: string;
2143
+ description: string;
2144
+ imageUrl: string | null;
2145
+ startsAt: string | null;
2146
+ endsAt: string | null;
2147
+ }[];
2148
+ }>;
2149
+ /** 숨김·기간 밖·없음은 모두 404 `COLLECTION_NOT_FOUND` */
2150
+ getCollection: (slug: string) => Promise<{
2151
+ collectionId: string;
2152
+ slug: string;
2153
+ title: string;
2154
+ description: string;
2155
+ imageUrl: string | null;
2156
+ startsAt: string | null;
2157
+ endsAt: string | null;
2158
+ productSort: string;
2159
+ metaTitle: string | null;
2160
+ metaDescription: string | null;
2161
+ }>;
2162
+ /** 컬렉션 상품(판매 중만). `sort`를 생략하면 컬렉션의 기본 정렬이다 */
2163
+ listCollectionProducts: (slug: string, params?: CollectionProductParams) => Promise<{
2164
+ page: number;
2165
+ size: number;
2166
+ totalElements: number;
2167
+ totalPages: number;
2168
+ contents: {
2169
+ productId: string;
2170
+ name: string;
2171
+ thumbnailUrl: string | null;
2172
+ salePrice: number;
2173
+ discountedPrice: number | null;
2174
+ discountRate: number | null;
2175
+ originalPrice: number | null;
2176
+ freeShipping: boolean;
2177
+ fulfillment: {
2178
+ type: string;
2179
+ requiresShipping: boolean;
2180
+ };
2181
+ averageRating: number;
2182
+ reviewCount: number;
2183
+ soldOut: boolean;
2184
+ }[];
2185
+ }>;
2042
2186
  };
2043
2187
  cart: {
2044
2188
  get: () => Promise<{
@@ -2377,6 +2521,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2377
2521
  category: string;
2378
2522
  code: string | null;
2379
2523
  message: string | null;
2524
+ optionUnavailable?: boolean | undefined;
2380
2525
  } | null;
2381
2526
  testPayment: boolean;
2382
2527
  expiresAt: string;
@@ -3409,4 +3554,4 @@ declare const storefrontStoreSchema: z.ZodObject<{
3409
3554
  }, z.core.$strip>;
3410
3555
  type StorefrontStore = z.infer<typeof storefrontStoreSchema>;
3411
3556
  //#endregion
3412
- export { CreateReviewRequest as $, PaymentFailureCategory as $n, PageParams as $r, CouponResult as $t, ANALYTICS_MAX_BATCH_BYTES as A, MyClaim as An, paymentStatusSchema as Ar, memberAddressRequestSchema as At, analyticsBatchSchema as B, CashReceiptRequest as Bn, ProductFacets as Br, createInquiryResultSchema as Bt, PurchaseDecisionResult as C, consentUpdateRequestSchema as Cn, paymentFailureCategorySchema as Cr, uploadTicketSchema as Ct, orderShippingAddressSchema as D, ClaimType as Dn, paymentOptionListSchema as Dr, MemberAddressRequest as Dt, myOrderSchema as E, ClaimReturnAddress as En, paymentOptionKey as Er, MemberAddress as Et, AnalyticsBatch as F, createClaimResultSchema as Fn, shippingAddressInputSchema as Fr, CreateInquiryRequest as Ft, StorefrontClient as G, DeliveryQuoteRequest as Gn, productCardSchema as Gr, CustomerInquiryCategory as Gt, analyticsClientEventSchema as H, CheckoutDelivery as Hn, ProductSearchParams as Hr, publicInquirySchema as Ht, AnalyticsClientEvent as I, myClaimSchema as In, startPaymentRequestSchema as Ir, CreateInquiryResult as It, STOREFRONT_SESSION_KEYS as J, GuestInfo as Jn, productPageSchema as Jr, customerInquirySchema as Jt, StorefrontClientOptions as K, DeliveryQuoteResult as Kn, productDetailSchema as Kr, createCustomerInquiryRequestSchema as Kt, AnalyticsClientEventName as L, AvailablePaymentOption as Ln, CategoryNode as Lr, ProductInquiryCategory as Lt, ANALYTICS_SESSION_HEADER as M, claimReturnAddressSchema as Mn, remoteAreaSchema as Mr, memberSchema as Mt, ANALYTICS_VISITOR_COOKIE as N, claimTypeSchema as Nn, residentNumberLike as Nr, updateProfileRequestSchema as Nt, purchaseDecisionResultSchema as O, CreateClaimRequest as On, paymentOptionSchema as Or, UpdateProfileRequest as Ot, ANALYTICS_VISITOR_HEADER as P, createClaimRequestSchema as Pn, retryPaymentRequestSchema as Pr, wishlistAddResultSchema as Pt, createStorefrontSession as Q, PAYMENT_STATUS_VALUES as Qn, PageInfo as Qr, CouponApplication as Qt, AnalyticsEventName as R, CASH_RECEIPT_METHODS as Rn, ProductCard as Rr, PublicInquiry as Rt, OrderShippingAddress as S, consentStateSchema as Sn, guestInfoSchema as Sr, updateReviewResultSchema as St, myOrderItemSchema as T, ClaimReason as Tn, paymentMethodSchema as Tr, Member as Tt, analyticsIdSchema as U, CheckoutSession as Un, ProductSort as Ur, CreateCustomerInquiryRequest as Ut, analyticsClientEventNameSchema as V, CashReceiptType as Vn, ProductPage as Vr, productInquiryCategorySchema as Vt, analyticsServerEventNameSchema as W, CreateCheckoutRequest as Wn, categoryNodeSchema as Wr, CustomerInquiry as Wt, StorefrontSession as X, KnownPaymentStatus as Xn, ClaimStatus as Xr, CheckoutPricing as Xt, SessionStorage as Y, KnownPaymentResult as Yn, productSortSchema as Yr, ApplicableCoupon as Yt, StorefrontSessionOptions as Z, PAYMENT_RESULT_VALUES as Zn, OrderItemStatus as Zr, CheckoutPricingRequest as Zt, normalizeCustomInputValue as _, addCartItemRequestSchema as _i, ConsentUpdateRequest as _n, createCheckoutRequestSchema as _r, publicReviewSchema as _t, CustomInputEntry as a, MyOrderItemFulfillmentSnapshot as ai, checkoutPricingSchema as an, PgProvider as ar, ReviewImageUploadRequest as at, MyOrder as b, updateCartItemRequestSchema as bi, consentKindSchema as bn, easyPayProviderResponseSchema as br, reviewSummarySchema as bt, OptionSelectionView as c, UnknownFulfillmentView as ci, couponBenefitViewSchema as cn, ShippingAddressInput as cr, UpdateReviewRequest as ct, customInputEntrySchema as d, productCardFulfillmentSchema as di, myCouponSchema as dn, cashReceiptAvailable as dr, WritableReview as dt, claimStatusSchema as ei, MAX_COUPONS_PER_CHECKOUT as en, PaymentMessage as er, CreateReviewResult as et, customInputLength as f, productFulfillmentViewSchema as fi, pricingAmountsSchema as fn, cashReceiptIdentityTypeOf as fr, createReviewRequestSchema as ft, lineSelectionResponseShape as g, UpdateCartItemRequest as gi, ConsentState as gn, checkoutSessionSchema as gr, productReviewSortSchema as gt, lineSelectionRequestShape as h, CartItem as hi, ConsentSource as hn, checkoutDeliverySchema as hr, productReviewQuerySchema as ht, AddonSelection as i, LineFulfillment as ii, checkoutPricingRequestSchema as in, PaymentStatus as ir, PublicReview as it, ANALYTICS_SESSION_COOKIE as j, claimReasonSchema as jn, pgProviderSchema as jr, memberAddressSchema as jt, trackingStageResponseSchema as k, CreateClaimResult as kn, paymentStartSchema as kr, WishlistAddResult as kt, addonGroupViewSchema as l, lineFulfillmentSchema as li, couponResultSchema as ln, StartPaymentRequest as lr, UpdateReviewResult as lt, customInputViewSchema as m, Cart as mi, ConsentKind as mn, cashReceiptTypeSchema as mr, myReviewSchema as mt, storefrontStoreSchema as n, pageInfoSchema as ni, MyCoupon as nn, PaymentOption as nr, ProductReviewParams as nt, CustomInputValueView as o, ProductCardFulfillment as oi, couponApplicationListSchema as on, RemoteArea as or, ReviewPage as ot, customInputValueViewSchema as p, AddCartItemRequest as pi, ConsentAction as pn, cashReceiptRequestSchema as pr, createReviewResultSchema as pt, createStorefrontClient as q, EasyPayProvider as qn, productFacetsSchema as qr, customerInquiryCategorySchema as qt, AddonGroupView as r, pageSchema as ri, applicableCouponSchema as rn, PaymentStart as rr, ProductReviewSort as rt, CustomInputView as s, ProductFulfillmentView as si, couponApplicationSchema as sn, RetryPaymentRequest as sr, ReviewSummary as st, StorefrontStore as t, orderItemStatusSchema as ti, MIN_PAYMENT_AMOUNT as tn, PaymentMethod as tr, MyReview as tt, addonSelectionSchema as u, myOrderItemFulfillmentSnapshotSchema as ui, myCouponListQuerySchema as un, availablePaymentOptionSchema as ur, UploadTicket as ut, optionSelectionViewSchema as v, cartItemSchema as vi, MemberConsents as vn, deliveryQuoteRequestSchema as vr, reviewImageUploadRequestSchema as vt, deliveryTrackingSchema as w, memberConsentsSchema as wn, paymentMessageSchema as wr, writableReviewSchema as wt, MyOrderItem as x, analyticsIdsFromCookie as xi, consentSourceSchema as xn, easyPayProviderSchema as xr, updateReviewRequestSchema as xt, DeliveryTracking as y, cartSchema as yi, consentActionSchema as yn, deliveryQuoteSchema as yr, reviewPageSchema as yt, AnalyticsServerEventName as z, CashReceiptIdentityType as zn, ProductDetail as zr, createInquiryRequestSchema as zt };
3557
+ export { CreateReviewRequest as $, PaymentFailureCategory as $n, productCardSchema as $r, CouponResult as $t, ANALYTICS_MAX_BATCH_BYTES as A, cartSchema as Ai, MyClaim as An, paymentStatusSchema as Ar, memberAddressRequestSchema as At, analyticsBatchSchema as B, CashReceiptRequest as Bn, CollectionProductSortParam as Br, createInquiryResultSchema as Bt, PurchaseDecisionResult as C, productFulfillmentViewSchema as Ci, consentUpdateRequestSchema as Cn, paymentFailureCategorySchema as Cr, uploadTicketSchema as Ct, orderShippingAddressSchema as D, UpdateCartItemRequest as Di, ClaimType as Dn, paymentOptionListSchema as Dr, MemberAddressRequest as Dt, myOrderSchema as E, CartItem as Ei, ClaimReturnAddress as En, paymentOptionKey as Er, MemberAddress as Et, AnalyticsBatch as F, createClaimResultSchema as Fn, shippingAddressInputSchema as Fr, CreateInquiryRequest as Ft, StorefrontClient as G, DeliveryQuoteRequest as Gn, ProductSearchParams as Gr, CustomerInquiryCategory as Gt, analyticsClientEventSchema as H, CheckoutDelivery as Hn, ProductDetail as Hr, publicInquirySchema as Ht, AnalyticsClientEvent as I, myClaimSchema as In, startPaymentRequestSchema as Ir, CreateInquiryResult as It, STOREFRONT_SESSION_KEYS as J, GuestInfo as Jn, StorefrontCollectionDetail as Jr, customerInquirySchema as Jt, StorefrontClientOptions as K, DeliveryQuoteResult as Kn, ProductSort as Kr, createCustomerInquiryRequestSchema as Kt, AnalyticsClientEventName as L, AvailablePaymentOption as Ln, CategoryNode as Lr, ProductInquiryCategory as Lt, ANALYTICS_SESSION_HEADER as M, analyticsIdsFromCookie as Mi, claimReturnAddressSchema as Mn, remoteAreaSchema as Mr, memberSchema as Mt, ANALYTICS_VISITOR_COOKIE as N, claimTypeSchema as Nn, residentNumberLike as Nr, updateProfileRequestSchema as Nt, purchaseDecisionResultSchema as O, addCartItemRequestSchema as Oi, CreateClaimRequest as On, paymentOptionSchema as Or, UpdateProfileRequest as Ot, ANALYTICS_VISITOR_HEADER as P, createClaimRequestSchema as Pn, retryPaymentRequestSchema as Pr, wishlistAddResultSchema as Pt, createStorefrontSession as Q, PAYMENT_STATUS_VALUES as Qn, collectionProductSortSchema as Qr, CouponApplication as Qt, AnalyticsEventName as R, CASH_RECEIPT_METHODS as Rn, CollectionProductPage as Rr, PublicInquiry as Rt, OrderShippingAddress as S, productCardFulfillmentSchema as Si, consentStateSchema as Sn, guestInfoSchema as Sr, updateReviewResultSchema as St, myOrderItemSchema as T, Cart as Ti, ClaimReason as Tn, paymentMethodSchema as Tr, Member as Tt, analyticsIdSchema as U, CheckoutSession as Un, ProductFacets as Ur, CreateCustomerInquiryRequest as Ut, analyticsClientEventNameSchema as V, CashReceiptType as Vn, ProductCard as Vr, productInquiryCategorySchema as Vt, analyticsServerEventNameSchema as W, CreateCheckoutRequest as Wn, ProductPage as Wr, CustomerInquiry as Wt, StorefrontSession as X, KnownPaymentStatus as Xn, collectionProductPageSchema as Xr, CheckoutPricing as Xt, SessionStorage as Y, KnownPaymentResult as Yn, categoryNodeSchema as Yr, ApplicableCoupon as Yt, StorefrontSessionOptions as Z, PAYMENT_RESULT_VALUES as Zn, collectionProductQuerySchema as Zr, CheckoutPricingRequest as Zt, normalizeCustomInputValue as _, ProductCardFulfillment as _i, ConsentUpdateRequest as _n, createCheckoutRequestSchema as _r, publicReviewSchema as _t, CustomInputEntry as a, storefrontCollectionListQuerySchema as ai, checkoutPricingSchema as an, PgProvider as ar, ReviewImageUploadRequest as at, MyOrder as b, lineFulfillmentSchema as bi, consentKindSchema as bn, easyPayProviderResponseSchema as br, reviewSummarySchema as bt, OptionSelectionView as c, OrderItemStatus as ci, couponBenefitViewSchema as cn, ShippingAddressInput as cr, UpdateReviewRequest as ct, customInputEntrySchema as d, claimStatusSchema as di, myCouponSchema as dn, cashReceiptAvailable as dr, WritableReview as dt, productDetailSchema as ei, MAX_COUPONS_PER_CHECKOUT as en, PaymentMessage as er, CreateReviewResult as et, customInputLength as f, orderItemStatusSchema as fi, pricingAmountsSchema as fn, cashReceiptIdentityTypeOf as fr, createReviewRequestSchema as ft, lineSelectionResponseShape as g, MyOrderItemFulfillmentSnapshot as gi, ConsentState as gn, checkoutSessionSchema as gr, productReviewSortSchema as gt, lineSelectionRequestShape as h, LineFulfillment as hi, ConsentSource as hn, checkoutDeliverySchema as hr, productReviewQuerySchema as ht, AddonSelection as i, storefrontCollectionDetailSchema as ii, checkoutPricingRequestSchema as in, PaymentStatus as ir, PublicReview as it, ANALYTICS_SESSION_COOKIE as j, updateCartItemRequestSchema as ji, claimReasonSchema as jn, pgProviderSchema as jr, memberAddressSchema as jt, trackingStageResponseSchema as k, cartItemSchema as ki, CreateClaimResult as kn, paymentStartSchema as kr, WishlistAddResult as kt, addonGroupViewSchema as l, PageInfo as li, couponResultSchema as ln, StartPaymentRequest as lr, UpdateReviewResult as lt, customInputViewSchema as m, pageSchema as mi, ConsentKind as mn, cashReceiptTypeSchema as mr, myReviewSchema as mt, storefrontStoreSchema as n, productPageSchema as ni, MyCoupon as nn, PaymentOption as nr, ProductReviewParams as nt, CustomInputValueView as o, storefrontCollectionSchema as oi, couponApplicationListSchema as on, RemoteArea as or, ReviewPage as ot, customInputValueViewSchema as p, pageInfoSchema as pi, ConsentAction as pn, cashReceiptRequestSchema as pr, createReviewResultSchema as pt, createStorefrontClient as q, EasyPayProvider as qn, StorefrontCollection as qr, customerInquiryCategorySchema as qt, AddonGroupView as r, productSortSchema as ri, applicableCouponSchema as rn, PaymentStart as rr, ProductReviewSort as rt, CustomInputView as s, ClaimStatus as si, couponApplicationSchema as sn, RetryPaymentRequest as sr, ReviewSummary as st, StorefrontStore as t, productFacetsSchema as ti, MIN_PAYMENT_AMOUNT as tn, PaymentMethod as tr, MyReview as tt, addonSelectionSchema as u, PageParams as ui, myCouponListQuerySchema as un, availablePaymentOptionSchema as ur, UploadTicket as ut, optionSelectionViewSchema as v, ProductFulfillmentView as vi, MemberConsents as vn, deliveryQuoteRequestSchema as vr, reviewImageUploadRequestSchema as vt, deliveryTrackingSchema as w, AddCartItemRequest as wi, memberConsentsSchema as wn, paymentMessageSchema as wr, writableReviewSchema as wt, MyOrderItem as x, myOrderItemFulfillmentSnapshotSchema as xi, consentSourceSchema as xn, easyPayProviderSchema as xr, updateReviewRequestSchema as xt, DeliveryTracking as y, UnknownFulfillmentView as yi, consentActionSchema as yn, deliveryQuoteSchema as yr, reviewPageSchema as yt, AnalyticsServerEventName as z, CashReceiptIdentityType as zn, CollectionProductParams as zr, createInquiryRequestSchema 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 CreateReviewRequest, $n as PaymentFailureCategory, $r as PageParams, $t as CouponResult, A as ANALYTICS_MAX_BATCH_BYTES, An as MyClaim, Ar as paymentStatusSchema, At as memberAddressRequestSchema, B as analyticsBatchSchema, Bn as CashReceiptRequest, Br as ProductFacets, Bt as createInquiryResultSchema, C as PurchaseDecisionResult, Cn as consentUpdateRequestSchema, Cr as paymentFailureCategorySchema, Ct as uploadTicketSchema, D as orderShippingAddressSchema, Dn as ClaimType, Dr as paymentOptionListSchema, Dt as MemberAddressRequest, E as myOrderSchema, En as ClaimReturnAddress, Er as paymentOptionKey, Et as MemberAddress, F as AnalyticsBatch, Fn as createClaimResultSchema, Fr as shippingAddressInputSchema, Ft as CreateInquiryRequest, G as StorefrontClient, Gn as DeliveryQuoteRequest, Gr as productCardSchema, Gt as CustomerInquiryCategory, H as analyticsClientEventSchema, Hn as CheckoutDelivery, Hr as ProductSearchParams, Ht as publicInquirySchema, I as AnalyticsClientEvent, In as myClaimSchema, Ir as startPaymentRequestSchema, It as CreateInquiryResult, J as STOREFRONT_SESSION_KEYS, Jn as GuestInfo, Jr as productPageSchema, Jt as customerInquirySchema, K as StorefrontClientOptions, Kn as DeliveryQuoteResult, Kr as productDetailSchema, Kt as createCustomerInquiryRequestSchema, L as AnalyticsClientEventName, Ln as AvailablePaymentOption, Lr as CategoryNode, Lt as ProductInquiryCategory, M as ANALYTICS_SESSION_HEADER, Mn as claimReturnAddressSchema, Mr as remoteAreaSchema, Mt as memberSchema, N as ANALYTICS_VISITOR_COOKIE, Nn as claimTypeSchema, Nr as residentNumberLike, Nt as updateProfileRequestSchema, O as purchaseDecisionResultSchema, On as CreateClaimRequest, Or as paymentOptionSchema, Ot as UpdateProfileRequest, P as ANALYTICS_VISITOR_HEADER, Pn as createClaimRequestSchema, Pr as retryPaymentRequestSchema, Pt as wishlistAddResultSchema, Q as createStorefrontSession, Qn as PAYMENT_STATUS_VALUES, Qr as PageInfo, Qt as CouponApplication, R as AnalyticsEventName, Rn as CASH_RECEIPT_METHODS, Rr as ProductCard, Rt as PublicInquiry, S as OrderShippingAddress, Sn as consentStateSchema, Sr as guestInfoSchema, St as updateReviewResultSchema, T as myOrderItemSchema, Tn as ClaimReason, Tr as paymentMethodSchema, Tt as Member, U as analyticsIdSchema, Un as CheckoutSession, Ur as ProductSort, Ut as CreateCustomerInquiryRequest, V as analyticsClientEventNameSchema, Vn as CashReceiptType, Vr as ProductPage, Vt as productInquiryCategorySchema, W as analyticsServerEventNameSchema, Wn as CreateCheckoutRequest, Wr as categoryNodeSchema, Wt as CustomerInquiry, X as StorefrontSession, Xn as KnownPaymentStatus, Xr as ClaimStatus, Xt as CheckoutPricing, Y as SessionStorage, Yn as KnownPaymentResult, Yr as productSortSchema, Yt as ApplicableCoupon, Z as StorefrontSessionOptions, Zn as PAYMENT_RESULT_VALUES, Zr as OrderItemStatus, Zt as CheckoutPricingRequest, _ as normalizeCustomInputValue, _i as addCartItemRequestSchema, _n as ConsentUpdateRequest, _r as createCheckoutRequestSchema, _t as publicReviewSchema, a as CustomInputEntry, ai as MyOrderItemFulfillmentSnapshot, an as checkoutPricingSchema, ar as PgProvider, at as ReviewImageUploadRequest, b as MyOrder, bi as updateCartItemRequestSchema, bn as consentKindSchema, br as easyPayProviderResponseSchema, bt as reviewSummarySchema, c as OptionSelectionView, ci as UnknownFulfillmentView, cn as couponBenefitViewSchema, cr as ShippingAddressInput, ct as UpdateReviewRequest, d as customInputEntrySchema, di as productCardFulfillmentSchema, dn as myCouponSchema, dr as cashReceiptAvailable, dt as WritableReview, ei as claimStatusSchema, en as MAX_COUPONS_PER_CHECKOUT, er as PaymentMessage, et as CreateReviewResult, f as customInputLength, fi as productFulfillmentViewSchema, fn as pricingAmountsSchema, fr as cashReceiptIdentityTypeOf, ft as createReviewRequestSchema, g as lineSelectionResponseShape, gi as UpdateCartItemRequest, gn as ConsentState, gr as checkoutSessionSchema, gt as productReviewSortSchema, h as lineSelectionRequestShape, hi as CartItem, hn as ConsentSource, hr as checkoutDeliverySchema, ht as productReviewQuerySchema, i as AddonSelection, ii as LineFulfillment, in as checkoutPricingRequestSchema, ir as PaymentStatus, it as PublicReview, j as ANALYTICS_SESSION_COOKIE, jn as claimReasonSchema, jr as pgProviderSchema, jt as memberAddressSchema, k as trackingStageResponseSchema, kn as CreateClaimResult, kr as paymentStartSchema, kt as WishlistAddResult, l as addonGroupViewSchema, li as lineFulfillmentSchema, ln as couponResultSchema, lr as StartPaymentRequest, lt as UpdateReviewResult, m as customInputViewSchema, mi as Cart, mn as ConsentKind, mr as cashReceiptTypeSchema, mt as myReviewSchema, n as storefrontStoreSchema, ni as pageInfoSchema, nn as MyCoupon, nr as PaymentOption, nt as ProductReviewParams, o as CustomInputValueView, oi as ProductCardFulfillment, on as couponApplicationListSchema, or as RemoteArea, ot as ReviewPage, p as customInputValueViewSchema, pi as AddCartItemRequest, pn as ConsentAction, pr as cashReceiptRequestSchema, pt as createReviewResultSchema, q as createStorefrontClient, qn as EasyPayProvider, qr as productFacetsSchema, qt as customerInquiryCategorySchema, r as AddonGroupView, ri as pageSchema, rn as applicableCouponSchema, rr as PaymentStart, rt as ProductReviewSort, s as CustomInputView, si as ProductFulfillmentView, sn as couponApplicationSchema, sr as RetryPaymentRequest, st as ReviewSummary, t as StorefrontStore, ti as orderItemStatusSchema, tn as MIN_PAYMENT_AMOUNT, tr as PaymentMethod, tt as MyReview, u as addonSelectionSchema, ui as myOrderItemFulfillmentSnapshotSchema, un as myCouponListQuerySchema, ur as availablePaymentOptionSchema, ut as UploadTicket, v as optionSelectionViewSchema, vi as cartItemSchema, vn as MemberConsents, vr as deliveryQuoteRequestSchema, vt as reviewImageUploadRequestSchema, w as deliveryTrackingSchema, wn as memberConsentsSchema, wr as paymentMessageSchema, wt as writableReviewSchema, x as MyOrderItem, xi as analyticsIdsFromCookie, xn as consentSourceSchema, xr as easyPayProviderSchema, xt as updateReviewRequestSchema, y as DeliveryTracking, yi as cartSchema, yn as consentActionSchema, yr as deliveryQuoteSchema, yt as reviewPageSchema, z as AnalyticsServerEventName, zn as CashReceiptIdentityType, zr as ProductDetail, zt as createInquiryRequestSchema } from "./index-jE8JxvGj.mjs";
3
- export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, AddCartItemRequest, AddonGroupView, AddonSelection, AnalyticsBatch, AnalyticsClientEvent, AnalyticsClientEventName, AnalyticsEventName, AnalyticsServerEventName, AnonymousSession, ApiError, ApplicableCoupon, AvailablePaymentOption, CASH_RECEIPT_METHODS, Cart, CartItem, CashReceiptIdentityType, CashReceiptRequest, CashReceiptType, CategoryNode, CheckoutDelivery, CheckoutPricing, CheckoutPricingRequest, CheckoutSession, ClaimReason, ClaimReturnAddress, ClaimStatus, ClaimType, ConsentAction, ConsentKind, ConsentSource, ConsentState, ConsentUpdateRequest, CouponApplication, CouponResult, CreateCheckoutRequest, CreateClaimRequest, CreateClaimResult, CreateCustomerInquiryRequest, CreateInquiryRequest, CreateInquiryResult, CreateReviewRequest, CreateReviewResult, CustomInputEntry, CustomInputValueView, CustomInputView, CustomerInquiry, CustomerInquiryCategory, DeliveryQuoteRequest, DeliveryQuoteResult, DeliveryTracking, EasyPayProvider, GuestInfo, IdpAgreements, IdpAuthorizeRequest, IdpTokenRequest, KnownPaymentResult, KnownPaymentStatus, LineFulfillment, LinkIdentityRequest, LoginRequest, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, Member, MemberAddress, MemberAddressRequest, MemberConsents, MemberIdentities, MyClaim, MyCoupon, MyOrder, MyOrderItem, MyOrderItemFulfillmentSnapshot, MyReview, OptionSelectionView, OrderItemStatus, OrderShippingAddress, PAYMENT_RESULT_VALUES, PAYMENT_STATUS_VALUES, PageInfo, PageParams, PaymentFailureCategory, PaymentMessage, PaymentMethod, PaymentOption, PaymentStart, PaymentStatus, PgProvider, ProductCard, ProductCardFulfillment, ProductDetail, ProductFacets, ProductFulfillmentView, ProductInquiryCategory, ProductPage, ProductReviewParams, ProductReviewSort, ProductSearchParams, ProductSort, PublicInquiry, PublicReview, PurchaseDecisionResult, type Query, RemoteArea, RetryPaymentRequest, ReviewImageUploadRequest, ReviewPage, ReviewSummary, STOREFRONT_SESSION_KEYS, type SessionStorage, ShippingAddressInput, SignupRequest, SocialProvider, StartPaymentRequest, type StorefrontClient, type StorefrontClientOptions, type StorefrontSession, type StorefrontSessionOptions, StorefrontStore, TokenPair, type TokenSource, UnknownFulfillmentView, UpdateCartItemRequest, UpdateProfileRequest, UpdateReviewRequest, UpdateReviewResult, UploadTicket, WishlistAddResult, WithdrawRequest, WithdrawalBlockedDetails, WritableReview, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, 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, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderItemStatusSchema, orderShippingAddressSchema, pageInfoSchema, pageSchema, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
2
+ import { $ as CreateReviewRequest, $n as PaymentFailureCategory, $r as productCardSchema, $t as CouponResult, A as ANALYTICS_MAX_BATCH_BYTES, Ai as cartSchema, An as MyClaim, Ar as paymentStatusSchema, At as memberAddressRequestSchema, B as analyticsBatchSchema, Bn as CashReceiptRequest, Br as CollectionProductSortParam, Bt as createInquiryResultSchema, C as PurchaseDecisionResult, Ci as productFulfillmentViewSchema, Cn as consentUpdateRequestSchema, Cr as paymentFailureCategorySchema, Ct as uploadTicketSchema, D as orderShippingAddressSchema, Di as UpdateCartItemRequest, Dn as ClaimType, Dr as paymentOptionListSchema, Dt as MemberAddressRequest, E as myOrderSchema, Ei as CartItem, En as ClaimReturnAddress, Er as paymentOptionKey, Et as MemberAddress, F as AnalyticsBatch, Fn as createClaimResultSchema, Fr as shippingAddressInputSchema, Ft as CreateInquiryRequest, G as StorefrontClient, Gn as DeliveryQuoteRequest, Gr as ProductSearchParams, Gt as CustomerInquiryCategory, H as analyticsClientEventSchema, Hn as CheckoutDelivery, Hr as ProductDetail, Ht as publicInquirySchema, I as AnalyticsClientEvent, In as myClaimSchema, Ir as startPaymentRequestSchema, It as CreateInquiryResult, J as STOREFRONT_SESSION_KEYS, Jn as GuestInfo, Jr as StorefrontCollectionDetail, Jt as customerInquirySchema, K as StorefrontClientOptions, Kn as DeliveryQuoteResult, Kr as ProductSort, Kt as createCustomerInquiryRequestSchema, L as AnalyticsClientEventName, Ln as AvailablePaymentOption, Lr as CategoryNode, Lt as ProductInquiryCategory, M as ANALYTICS_SESSION_HEADER, Mi as analyticsIdsFromCookie, Mn as claimReturnAddressSchema, Mr as remoteAreaSchema, Mt as memberSchema, N as ANALYTICS_VISITOR_COOKIE, Nn as claimTypeSchema, Nr as residentNumberLike, Nt as updateProfileRequestSchema, O as purchaseDecisionResultSchema, Oi as addCartItemRequestSchema, On as CreateClaimRequest, Or as paymentOptionSchema, Ot as UpdateProfileRequest, P as ANALYTICS_VISITOR_HEADER, Pn as createClaimRequestSchema, Pr as retryPaymentRequestSchema, Pt as wishlistAddResultSchema, Q as createStorefrontSession, Qn as PAYMENT_STATUS_VALUES, Qr as collectionProductSortSchema, Qt as CouponApplication, R as AnalyticsEventName, Rn as CASH_RECEIPT_METHODS, Rr as CollectionProductPage, Rt as PublicInquiry, S as OrderShippingAddress, Si as productCardFulfillmentSchema, Sn as consentStateSchema, Sr as guestInfoSchema, St as updateReviewResultSchema, T as myOrderItemSchema, Ti as Cart, Tn as ClaimReason, Tr as paymentMethodSchema, Tt as Member, U as analyticsIdSchema, Un as CheckoutSession, Ur as ProductFacets, Ut as CreateCustomerInquiryRequest, V as analyticsClientEventNameSchema, Vn as CashReceiptType, Vr as ProductCard, Vt as productInquiryCategorySchema, W as analyticsServerEventNameSchema, Wn as CreateCheckoutRequest, Wr as ProductPage, Wt as CustomerInquiry, X as StorefrontSession, Xn as KnownPaymentStatus, Xr as collectionProductPageSchema, Xt as CheckoutPricing, Y as SessionStorage, Yn as KnownPaymentResult, Yr as categoryNodeSchema, Yt as ApplicableCoupon, Z as StorefrontSessionOptions, Zn as PAYMENT_RESULT_VALUES, Zr as collectionProductQuerySchema, Zt as CheckoutPricingRequest, _ as normalizeCustomInputValue, _i as ProductCardFulfillment, _n as ConsentUpdateRequest, _r as createCheckoutRequestSchema, _t as publicReviewSchema, a as CustomInputEntry, ai as storefrontCollectionListQuerySchema, an as checkoutPricingSchema, ar as PgProvider, at as ReviewImageUploadRequest, b as MyOrder, bi as lineFulfillmentSchema, bn as consentKindSchema, br as easyPayProviderResponseSchema, bt as reviewSummarySchema, c as OptionSelectionView, ci as OrderItemStatus, cn as couponBenefitViewSchema, cr as ShippingAddressInput, ct as UpdateReviewRequest, d as customInputEntrySchema, di as claimStatusSchema, dn as myCouponSchema, dr as cashReceiptAvailable, dt as WritableReview, ei as productDetailSchema, en as MAX_COUPONS_PER_CHECKOUT, er as PaymentMessage, et as CreateReviewResult, f as customInputLength, fi as orderItemStatusSchema, fn as pricingAmountsSchema, fr as cashReceiptIdentityTypeOf, ft as createReviewRequestSchema, g as lineSelectionResponseShape, gi as MyOrderItemFulfillmentSnapshot, gn as ConsentState, gr as checkoutSessionSchema, gt as productReviewSortSchema, h as lineSelectionRequestShape, hi as LineFulfillment, hn as ConsentSource, hr as checkoutDeliverySchema, ht as productReviewQuerySchema, i as AddonSelection, ii as storefrontCollectionDetailSchema, in as checkoutPricingRequestSchema, ir as PaymentStatus, it as PublicReview, j as ANALYTICS_SESSION_COOKIE, ji as updateCartItemRequestSchema, jn as claimReasonSchema, jr as pgProviderSchema, jt as memberAddressSchema, k as trackingStageResponseSchema, ki as cartItemSchema, kn as CreateClaimResult, kr as paymentStartSchema, kt as WishlistAddResult, l as addonGroupViewSchema, li as PageInfo, ln as couponResultSchema, lr as StartPaymentRequest, lt as UpdateReviewResult, m as customInputViewSchema, mi as pageSchema, mn as ConsentKind, mr as cashReceiptTypeSchema, mt as myReviewSchema, n as storefrontStoreSchema, ni as productPageSchema, nn as MyCoupon, nr as PaymentOption, nt as ProductReviewParams, o as CustomInputValueView, oi as storefrontCollectionSchema, on as couponApplicationListSchema, or as RemoteArea, ot as ReviewPage, p as customInputValueViewSchema, pi as pageInfoSchema, pn as ConsentAction, pr as cashReceiptRequestSchema, pt as createReviewResultSchema, q as createStorefrontClient, qn as EasyPayProvider, qr as StorefrontCollection, qt as customerInquiryCategorySchema, r as AddonGroupView, ri as productSortSchema, rn as applicableCouponSchema, rr as PaymentStart, rt as ProductReviewSort, s as CustomInputView, si as ClaimStatus, sn as couponApplicationSchema, sr as RetryPaymentRequest, st as ReviewSummary, t as StorefrontStore, ti as productFacetsSchema, tn as MIN_PAYMENT_AMOUNT, tr as PaymentMethod, tt as MyReview, u as addonSelectionSchema, ui as PageParams, un as myCouponListQuerySchema, ur as availablePaymentOptionSchema, ut as UploadTicket, v as optionSelectionViewSchema, vi as ProductFulfillmentView, vn as MemberConsents, vr as deliveryQuoteRequestSchema, vt as reviewImageUploadRequestSchema, w as deliveryTrackingSchema, wi as AddCartItemRequest, wn as memberConsentsSchema, wr as paymentMessageSchema, wt as writableReviewSchema, x as MyOrderItem, xi as myOrderItemFulfillmentSnapshotSchema, xn as consentSourceSchema, xr as easyPayProviderSchema, xt as updateReviewRequestSchema, y as DeliveryTracking, yi as UnknownFulfillmentView, yn as consentActionSchema, yr as deliveryQuoteSchema, yt as reviewPageSchema, z as AnalyticsServerEventName, zn as CashReceiptIdentityType, zr as CollectionProductParams, zt as createInquiryRequestSchema } from "./index-CfOZjg2U.mjs";
3
+ export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, AddCartItemRequest, AddonGroupView, AddonSelection, AnalyticsBatch, AnalyticsClientEvent, AnalyticsClientEventName, AnalyticsEventName, AnalyticsServerEventName, AnonymousSession, ApiError, ApplicableCoupon, AvailablePaymentOption, CASH_RECEIPT_METHODS, Cart, CartItem, CashReceiptIdentityType, CashReceiptRequest, CashReceiptType, CategoryNode, CheckoutDelivery, CheckoutPricing, CheckoutPricingRequest, CheckoutSession, ClaimReason, ClaimReturnAddress, ClaimStatus, ClaimType, CollectionProductPage, CollectionProductParams, CollectionProductSortParam, ConsentAction, ConsentKind, ConsentSource, ConsentState, ConsentUpdateRequest, CouponApplication, CouponResult, CreateCheckoutRequest, CreateClaimRequest, CreateClaimResult, CreateCustomerInquiryRequest, CreateInquiryRequest, CreateInquiryResult, CreateReviewRequest, CreateReviewResult, CustomInputEntry, CustomInputValueView, CustomInputView, CustomerInquiry, CustomerInquiryCategory, DeliveryQuoteRequest, DeliveryQuoteResult, DeliveryTracking, EasyPayProvider, GuestInfo, IdpAgreements, IdpAuthorizeRequest, IdpTokenRequest, KnownPaymentResult, KnownPaymentStatus, LineFulfillment, LinkIdentityRequest, LoginRequest, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, Member, MemberAddress, MemberAddressRequest, MemberConsents, MemberIdentities, MyClaim, MyCoupon, MyOrder, MyOrderItem, MyOrderItemFulfillmentSnapshot, MyReview, OptionSelectionView, OrderItemStatus, OrderShippingAddress, PAYMENT_RESULT_VALUES, PAYMENT_STATUS_VALUES, PageInfo, PageParams, PaymentFailureCategory, PaymentMessage, PaymentMethod, PaymentOption, PaymentStart, PaymentStatus, PgProvider, ProductCard, ProductCardFulfillment, ProductDetail, ProductFacets, ProductFulfillmentView, ProductInquiryCategory, ProductPage, ProductReviewParams, ProductReviewSort, ProductSearchParams, ProductSort, PublicInquiry, PublicReview, PurchaseDecisionResult, type Query, RemoteArea, RetryPaymentRequest, ReviewImageUploadRequest, ReviewPage, ReviewSummary, STOREFRONT_SESSION_KEYS, type SessionStorage, ShippingAddressInput, SignupRequest, SocialProvider, StartPaymentRequest, type StorefrontClient, type StorefrontClientOptions, StorefrontCollection, StorefrontCollectionDetail, type StorefrontSession, type StorefrontSessionOptions, StorefrontStore, TokenPair, type TokenSource, UnknownFulfillmentView, UpdateCartItemRequest, UpdateProfileRequest, UpdateReviewRequest, UpdateReviewResult, UploadTicket, WishlistAddResult, WithdrawRequest, WithdrawalBlockedDetails, WritableReview, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, 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, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderItemStatusSchema, orderShippingAddressSchema, pageInfoSchema, pageSchema, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { a as ANALYTICS_VISITOR_HEADER, c as analyticsClientEventSchema, i as ANALYTICS_VISITOR_COOKIE, l as analyticsIdSchema, n as ANALYTICS_SESSION_COOKIE, o as analyticsBatchSchema, r as ANALYTICS_SESSION_HEADER, s as analyticsClientEventNameSchema, t as ANALYTICS_MAX_BATCH_BYTES, u as analyticsServerEventNameSchema } from "./analytics-CgD70OqH.mjs";
2
2
  import { t as analyticsIdsFromCookie } from "./analytics-ids-COElZiI3.mjs";
3
- import { $ as orderItemStatusSchema, A as publicInquirySchema, B as claimReasonSchema, C as memberAddressSchema, D as createInquiryRequestSchema, E as wishlistAddResultSchema, F as consentKindSchema, G as myClaimSchema, H as claimTypeSchema, I as consentSourceSchema, J as productDetailSchema, K as categoryNodeSchema, L as consentStateSchema, M as customerInquiryCategorySchema, N as customerInquirySchema, O as createInquiryResultSchema, P as consentActionSchema, Q as claimStatusSchema, R as consentUpdateRequestSchema, S as memberAddressRequestSchema, St as unwrapData, T as updateProfileRequestSchema, U as createClaimRequestSchema, V as claimReturnAddressSchema, W as createClaimResultSchema, X as productPageSchema, Y as productFacetsSchema, Z as productSortSchema, _ as myOrderItemSchema, _t as withdrawRequestSchema, a as myReviewSchema, at as updateCartItemRequestSchema, b as purchaseDecisionResultSchema, bt as buildQuery, c as publicReviewSchema, ct as idpAuthorizeRequestSchema, d as reviewSummarySchema, dt as linkIdentityRequestSchema, et as pageInfoSchema, f as updateReviewRequestSchema, ft as loginRequestSchema, g as deliveryTrackingSchema, gt as tokenPairSchema, h as writableReviewSchema, ht as socialProviderSchema, i as createReviewResultSchema, it as cartSchema, j as createCustomerInquiryRequestSchema, k as productInquiryCategorySchema, l as reviewImageUploadRequestSchema, lt as idpAuthorizeResponseSchema, m as uploadTicketSchema, mt as signupRequestSchema, n as storefrontStoreSchema, nt as addCartItemRequestSchema, o as productReviewQuerySchema, ot as anonymousSessionSchema, p as updateReviewResultSchema, pt as memberIdentitiesSchema, q as productCardSchema, r as createReviewRequestSchema, rt as cartItemSchema, s as productReviewSortSchema, st as idpAgreementsSchema, t as createStorefrontClient, tt as pageSchema, u as reviewPageSchema, ut as idpTokenRequestSchema, v as myOrderSchema, vt as withdrawalBlockedDetailsSchema, w as memberSchema, x as trackingStageResponseSchema, xt as toApiError, y as orderShippingAddressSchema, yt as ApiError, z as memberConsentsSchema } from "./client-nLYVG_HJ.mjs";
4
- import { $ as lineFulfillmentSchema, A as startPaymentRequestSchema, B as myCouponListQuerySchema, C as paymentStartSchema, D as residentNumberLike, E as remoteAreaSchema, F as checkoutPricingSchema, G as customInputEntrySchema, H as pricingAmountsSchema, I as couponApplicationListSchema, J as customInputViewSchema, K as customInputLength, L as couponApplicationSchema, M as MIN_PAYMENT_AMOUNT, N as applicableCouponSchema, O as retryPaymentRequestSchema, P as checkoutPricingRequestSchema, Q as optionSelectionViewSchema, R as couponBenefitViewSchema, S as paymentOptionSchema, T as pgProviderSchema, U as addonGroupViewSchema, V as myCouponSchema, W as addonSelectionSchema, X as lineSelectionResponseShape, Y as lineSelectionRequestShape, Z as normalizeCustomInputValue, _ as paymentFailureCategorySchema, a as cashReceiptAvailable, b as paymentOptionKey, c as cashReceiptTypeSchema, d as createCheckoutRequestSchema, et as myOrderItemFulfillmentSnapshotSchema, f as deliveryQuoteRequestSchema, g as guestInfoSchema, h as easyPayProviderSchema, i as availablePaymentOptionSchema, j as MAX_COUPONS_PER_CHECKOUT, k as shippingAddressInputSchema, l as checkoutDeliverySchema, m as easyPayProviderResponseSchema, n as PAYMENT_RESULT_VALUES, nt as productFulfillmentViewSchema, o as cashReceiptIdentityTypeOf, p as deliveryQuoteSchema, q as customInputValueViewSchema, r as PAYMENT_STATUS_VALUES, s as cashReceiptRequestSchema, t as CASH_RECEIPT_METHODS, tt as productCardFulfillmentSchema, u as checkoutSessionSchema, v as paymentMessageSchema, w as paymentStatusSchema, x as paymentOptionListSchema, y as paymentMethodSchema, z as couponResultSchema } from "./checkout-PJk8g5DY.mjs";
3
+ import { $ as productPageSchema, A as publicInquirySchema, B as claimReasonSchema, C as memberAddressSchema, Ct as withdrawRequestSchema, D as createInquiryRequestSchema, Dt as toApiError, E as wishlistAddResultSchema, Et as buildQuery, F as consentKindSchema, G as myClaimSchema, H as claimTypeSchema, I as consentSourceSchema, J as collectionProductQuerySchema, K as categoryNodeSchema, L as consentStateSchema, M as customerInquiryCategorySchema, N as customerInquirySchema, O as createInquiryResultSchema, Ot as unwrapData, P as consentActionSchema, Q as productFacetsSchema, R as consentUpdateRequestSchema, S as memberAddressRequestSchema, St as tokenPairSchema, T as updateProfileRequestSchema, Tt as ApiError, U as createClaimRequestSchema, V as claimReturnAddressSchema, W as createClaimResultSchema, X as productCardSchema, Y as collectionProductSortSchema, Z as productDetailSchema, _ as myOrderItemSchema, _t as linkIdentityRequestSchema, a as myReviewSchema, at as orderItemStatusSchema, b as purchaseDecisionResultSchema, bt as signupRequestSchema, c as publicReviewSchema, ct as addCartItemRequestSchema, d as reviewSummarySchema, dt as updateCartItemRequestSchema, et as productSortSchema, f as updateReviewRequestSchema, ft as anonymousSessionSchema, g as deliveryTrackingSchema, gt as idpTokenRequestSchema, h as writableReviewSchema, ht as idpAuthorizeResponseSchema, i as createReviewResultSchema, it as claimStatusSchema, j as createCustomerInquiryRequestSchema, k as productInquiryCategorySchema, l as reviewImageUploadRequestSchema, lt as cartItemSchema, m as uploadTicketSchema, mt as idpAuthorizeRequestSchema, n as storefrontStoreSchema, nt as storefrontCollectionListQuerySchema, o as productReviewQuerySchema, ot as pageInfoSchema, p as updateReviewResultSchema, pt as idpAgreementsSchema, q as collectionProductPageSchema, r as createReviewRequestSchema, rt as storefrontCollectionSchema, s as productReviewSortSchema, st as pageSchema, t as createStorefrontClient, tt as storefrontCollectionDetailSchema, u as reviewPageSchema, ut as cartSchema, v as myOrderSchema, vt as loginRequestSchema, w as memberSchema, wt as withdrawalBlockedDetailsSchema, x as trackingStageResponseSchema, xt as socialProviderSchema, y as orderShippingAddressSchema, yt as memberIdentitiesSchema, z as memberConsentsSchema } from "./client-Dgpp9T8r.mjs";
4
+ import { $ as lineFulfillmentSchema, A as startPaymentRequestSchema, B as myCouponListQuerySchema, C as paymentStartSchema, D as residentNumberLike, E as remoteAreaSchema, F as checkoutPricingSchema, G as customInputEntrySchema, H as pricingAmountsSchema, I as couponApplicationListSchema, J as customInputViewSchema, K as customInputLength, L as couponApplicationSchema, M as MIN_PAYMENT_AMOUNT, N as applicableCouponSchema, O as retryPaymentRequestSchema, P as checkoutPricingRequestSchema, Q as optionSelectionViewSchema, R as couponBenefitViewSchema, S as paymentOptionSchema, T as pgProviderSchema, U as addonGroupViewSchema, V as myCouponSchema, W as addonSelectionSchema, X as lineSelectionResponseShape, Y as lineSelectionRequestShape, Z as normalizeCustomInputValue, _ as paymentFailureCategorySchema, a as cashReceiptAvailable, b as paymentOptionKey, c as cashReceiptTypeSchema, d as createCheckoutRequestSchema, et as myOrderItemFulfillmentSnapshotSchema, f as deliveryQuoteRequestSchema, g as guestInfoSchema, h as easyPayProviderSchema, i as availablePaymentOptionSchema, j as MAX_COUPONS_PER_CHECKOUT, k as shippingAddressInputSchema, l as checkoutDeliverySchema, m as easyPayProviderResponseSchema, n as PAYMENT_RESULT_VALUES, nt as productFulfillmentViewSchema, o as cashReceiptIdentityTypeOf, p as deliveryQuoteSchema, q as customInputValueViewSchema, r as PAYMENT_STATUS_VALUES, s as cashReceiptRequestSchema, t as CASH_RECEIPT_METHODS, tt as productCardFulfillmentSchema, u as checkoutSessionSchema, v as paymentMessageSchema, w as paymentStatusSchema, x as paymentOptionListSchema, y as paymentMethodSchema, z as couponResultSchema } from "./checkout-CCsO8PY2.mjs";
5
5
  //#region src/session.ts
6
6
  /** 세션 키 상수 — SDK가 소유한다. store-sdk와 겹치지 않는 별도 네임스페이스. */
7
7
  const STOREFRONT_SESSION_KEYS = {
@@ -125,4 +125,4 @@ function createStorefrontSession(options) {
125
125
  };
126
126
  }
127
127
  //#endregion
128
- export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, ApiError, CASH_RECEIPT_METHODS, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, PAYMENT_RESULT_VALUES, PAYMENT_STATUS_VALUES, STOREFRONT_SESSION_KEYS, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, 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, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderItemStatusSchema, orderShippingAddressSchema, pageInfoSchema, pageSchema, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
128
+ export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, ApiError, CASH_RECEIPT_METHODS, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, PAYMENT_RESULT_VALUES, PAYMENT_STATUS_VALUES, STOREFRONT_SESSION_KEYS, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, 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, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderItemStatusSchema, orderShippingAddressSchema, pageInfoSchema, pageSchema, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
@@ -1,4 +1,4 @@
1
- import { Bn as CashReceiptRequest, Jn as GuestInfo, cr as ShippingAddressInput, ir as PaymentStatus, lr as StartPaymentRequest, nr as PaymentOption, q as createStorefrontClient, rr as PaymentStart } from "../index-jE8JxvGj.mjs";
1
+ import { Bn as CashReceiptRequest, Jn as GuestInfo, cr as ShippingAddressInput, ir as PaymentStatus, lr as StartPaymentRequest, nr as PaymentOption, q as createStorefrontClient, rr as PaymentStart } from "../index-CfOZjg2U.mjs";
2
2
  //#region src/payments/index.d.ts
3
3
  /**
4
4
  * 스토어프론트 결제 — 브라우저 전용(`@sayren/storefront-sdk/payments`).
@@ -47,6 +47,11 @@ export type PaymentResult = {
47
47
  paymentId: string;
48
48
  code: string;
49
49
  message: string;
50
+ /**
51
+ * 상점의 PG 설정 문제처럼 구매자가 고칠 수 없는 실패다(`lastFailure.optionUnavailable`). 같은 옵션으로 다시 시도해도
52
+ * 실패하므로 그 옵션을 고르지 못하게 하고 다른 결제수단으로 `retry`하게 한다. `message`가 그 안내다
53
+ */
54
+ optionUnavailable?: boolean;
50
55
  } | {
51
56
  /** 결과 확인 중 — `getStatus(paymentId)`로 확정될 때까지 조회한다 */
52
57
  status: "PROCESSING";
@@ -1,4 +1,4 @@
1
- import { v as paymentMessageSchema } from "../checkout-PJk8g5DY.mjs";
1
+ import { v as paymentMessageSchema } from "../checkout-CCsO8PY2.mjs";
2
2
  //#region src/payments/index.ts
3
3
  /** 복귀 주소에 결제 서비스가 붙이는 쿼리 */
4
4
  const RETURN_PAYMENT_ID = "sayrenPaymentId";
@@ -57,7 +57,8 @@ function paymentResultOf(status, options = {}) {
57
57
  status: "FAILED",
58
58
  paymentId,
59
59
  code: lastFailure?.code ?? result,
60
- message: lastFailure?.message ?? (result === "EXPIRED" ? "결제 요청이 만료됐습니다" : "결제에 실패했습니다")
60
+ message: lastFailure?.message ?? (result === "EXPIRED" ? "결제 요청이 만료됐습니다" : "결제에 실패했습니다"),
61
+ ...lastFailure?.optionUnavailable ? { optionUnavailable: true } : {}
61
62
  };
62
63
  if (result === "PENDING") return options.popupClosed ? {
63
64
  status: "CANCELED",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sayren/storefront-sdk",
3
- "version": "0.18.3",
3
+ "version": "0.19.0",
4
4
  "main": "./dist/index.mjs",
5
5
  "types": "./dist/index.d.mts",
6
6
  "exports": {
package/src/client.ts CHANGED
@@ -27,11 +27,15 @@ import {
27
27
  updateCartItemRequestSchema,
28
28
  } from "./schemas/cart";
29
29
  import {
30
+ type CollectionProductParams,
30
31
  categoryNodeSchema,
32
+ collectionProductPageSchema,
31
33
  type ProductSearchParams,
32
34
  productCardSchema,
33
35
  productDetailSchema,
34
36
  productPageSchema,
37
+ storefrontCollectionDetailSchema,
38
+ storefrontCollectionSchema,
35
39
  } from "./schemas/catalog";
36
40
  import {
37
41
  type CreateCheckoutRequest,
@@ -264,6 +268,19 @@ export function createStorefrontClient(options: StorefrontClientOptions) {
264
268
  ),
265
269
  createInquiry: (productId: string, body: CreateInquiryRequest) =>
266
270
  http.requestVoid("POST", path`/products/${productId}/inquiries`, { body }),
271
+ /** 노출 중인 컬렉션(노출 켜짐 + 기간 안) — 셀러가 정한 순서 */
272
+ listCollections: (params?: PageParams) =>
273
+ http.request("GET", "/collections", pageSchema(storefrontCollectionSchema), {
274
+ query: params as Query,
275
+ }),
276
+ /** 숨김·기간 밖·없음은 모두 404 `COLLECTION_NOT_FOUND` */
277
+ getCollection: (slug: string) =>
278
+ http.request("GET", path`/collections/${slug}`, storefrontCollectionDetailSchema),
279
+ /** 컬렉션 상품(판매 중만). `sort`를 생략하면 컬렉션의 기본 정렬이다 */
280
+ listCollectionProducts: (slug: string, params?: CollectionProductParams) =>
281
+ http.request("GET", path`/collections/${slug}/products`, collectionProductPageSchema, {
282
+ query: params as Query,
283
+ }),
267
284
  },
268
285
 
269
286
  cart: {
@@ -64,6 +64,11 @@ export type PaymentResult =
64
64
  paymentId: string;
65
65
  code: string;
66
66
  message: string;
67
+ /**
68
+ * 상점의 PG 설정 문제처럼 구매자가 고칠 수 없는 실패다(`lastFailure.optionUnavailable`). 같은 옵션으로 다시 시도해도
69
+ * 실패하므로 그 옵션을 고르지 못하게 하고 다른 결제수단으로 `retry`하게 한다. `message`가 그 안내다
70
+ */
71
+ optionUnavailable?: boolean;
67
72
  }
68
73
  | {
69
74
  /** 결과 확인 중 — `getStatus(paymentId)`로 확정될 때까지 조회한다 */
@@ -180,6 +185,7 @@ export function paymentResultOf(
180
185
  message:
181
186
  lastFailure?.message ??
182
187
  (result === "EXPIRED" ? "결제 요청이 만료됐습니다" : "결제에 실패했습니다"),
188
+ ...(lastFailure?.optionUnavailable ? { optionUnavailable: true } : {}),
183
189
  };
184
190
  }
185
191
  if (result === "PENDING") {
@@ -145,3 +145,63 @@ export const productPageSchema = pageSchema(productCardSchema).extend({
145
145
  });
146
146
 
147
147
  export type ProductPage = z.infer<typeof productPageSchema>;
148
+
149
+ /**
150
+ * 컬렉션 (이슈 #83) — 셀러가 묶은 상품 목록(기획전·이벤트·신상품 등). 노출 중인 것(노출 켜짐 + 기간 안)만 보인다.
151
+ * 주소 값은 `slug`이고 상품 목록은 `GET /collections/{slug}/products`다.
152
+ */
153
+ export const storefrontCollectionSchema = z.object({
154
+ collectionId: z.string(),
155
+ slug: z.string(),
156
+ title: z.string(),
157
+ description: z.string(),
158
+ imageUrl: z.string().nullable().describe("대표 이미지 주소. 없으면 null"),
159
+ startsAt: z.string().nullable().describe("노출 시작 시각. 없으면 null"),
160
+ endsAt: z.string().nullable().describe("노출 종료 시각. 없으면 null(끝나지 않는다)"),
161
+ });
162
+
163
+ export type StorefrontCollection = z.infer<typeof storefrontCollectionSchema>;
164
+
165
+ /** 컬렉션 상품 정렬 — 상품 검색 정렬 + `manual`(셀러가 정한 순서) */
166
+ export const collectionProductSortSchema = z.enum(["manual", ...productSortSchema.options]);
167
+
168
+ export type CollectionProductSortParam = z.infer<typeof collectionProductSortSchema>;
169
+
170
+ /** `GET /collections/{slug}` — 목록 항목 + 기본 정렬·검색 메타 */
171
+ export const storefrontCollectionDetailSchema = storefrontCollectionSchema.extend({
172
+ productSort: z
173
+ .string()
174
+ .describe(
175
+ "상품 목록 기본 정렬(`sort`를 생략하면 이 정렬이다). 현재 값은 `CollectionProductSortParam`이고 값이 늘 수 있어 문자열이다",
176
+ ),
177
+ metaTitle: z.string().nullable(),
178
+ metaDescription: z.string().nullable(),
179
+ });
180
+
181
+ export type StorefrontCollectionDetail = z.infer<typeof storefrontCollectionDetailSchema>;
182
+
183
+ export interface CollectionProductParams extends PageParams {
184
+ sort?: CollectionProductSortParam;
185
+ minPrice?: number;
186
+ maxPrice?: number;
187
+ }
188
+
189
+ /** `GET /collections/{slug}/products` 쿼리 — OpenAPI 문서용 형태(값은 쿼리 문자열) */
190
+ export const collectionProductQuerySchema = z.object({
191
+ sort: collectionProductSortSchema.optional().describe("정렬. 생략하면 컬렉션의 기본 정렬"),
192
+ minPrice: z.string().optional().describe("최소 판매가(즉시할인 반영)"),
193
+ maxPrice: z.string().optional().describe("최대 판매가(즉시할인 반영)"),
194
+ page: z.string().optional().describe("페이지 번호 (1부터, 기본 1)"),
195
+ size: z.string().optional().describe("페이지 크기 (기본 20, 최대 60)"),
196
+ });
197
+
198
+ /** 컬렉션 상품 페이지 — 상품 검색과 같은 카드다(판매 중 상품만) */
199
+ export const collectionProductPageSchema = pageSchema(productCardSchema);
200
+
201
+ export type CollectionProductPage = z.infer<typeof collectionProductPageSchema>;
202
+
203
+ /** `GET /collections` 쿼리 */
204
+ export const storefrontCollectionListQuerySchema = z.object({
205
+ page: z.string().optional().describe("페이지 번호 (1부터, 기본 1)"),
206
+ size: z.string().optional().describe("페이지 크기 (기본 20, 최대 100)"),
207
+ });
@@ -499,6 +499,13 @@ export const paymentStatusSchema = z.object({
499
499
  .nullable()
500
500
  .describe("PG가 준 실패 코드. 내부 사유는 null입니다. 화면 분기는 `category`로 하십시오"),
501
501
  message: z.string().nullable().describe("구매자에게 보여 줄 안내 문구"),
502
+ optionUnavailable: z
503
+ .boolean()
504
+ .optional()
505
+ .describe(
506
+ "true면 상점의 PG 설정 문제처럼 구매자가 고칠 수 없는 실패입니다(이슈 #86). 같은 결제 옵션으로 다시 시도해도 실패하므로 " +
507
+ "그 옵션을 고르지 못하게 하고 다른 결제수단을 고르게 하십시오. 이때 `message`는 그 안내입니다. 서버는 항상 싣습니다",
508
+ ),
502
509
  })
503
510
  .nullable()
504
511
  .describe("현재 결제 시도가 실패·취소로 끝났으면 그 내용, 아니면 null"),
@@ -106,7 +106,7 @@ export const updateReviewRequestSchema = z
106
106
 
107
107
  export type UpdateReviewRequest = z.infer<typeof updateReviewRequestSchema>;
108
108
 
109
- /** 리뷰 정렬 — `helpful`은 도움 데이터가 없어 평점 높은 순과 같다 */
109
+ /** 리뷰 정렬 — `helpful`(랭킹순)은 사진 있는 리뷰 → 평점 높은 순 → 최신 순이다(도움돼요 수 데이터는 없다, #97) */
110
110
  export const productReviewSortSchema = z.enum(["latest", "ratingDesc", "ratingAsc", "helpful"]);
111
111
 
112
112
  export type ProductReviewSort = z.infer<typeof productReviewSortSchema>;
@@ -125,7 +125,10 @@ export const productReviewQuerySchema = z.object({
125
125
  sort: z
126
126
  .string()
127
127
  .optional()
128
- .describe("정렬. `latest`(기본)·`ratingDesc`·`ratingAsc`·`helpful`(평점 높은 순과 같다)"),
128
+ .describe(
129
+ "정렬. `latest`(기본, 최신 순)·`ratingDesc`(평점 높은 순)·`ratingAsc`(평점 낮은 순)·" +
130
+ "`helpful`(랭킹순 — 사진 있는 리뷰 먼저, 그다음 평점 높은 순, 같으면 최신 순. 도움돼요 수는 반영하지 않는다)",
131
+ ),
129
132
  page: z.string().optional().describe("페이지 번호 (1부터)"),
130
133
  size: z.string().optional().describe("페이지 크기"),
131
134
  });