@sayren/storefront-sdk 0.20.3 → 0.20.5

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 { kt as ApiError, t as createStorefrontClient } from "../client-jWHy65r6.mjs";
1
+ import { Mt as ApiError, t as createStorefrontClient } from "../client-BGthSJZn.mjs";
2
2
  //#region src/auth/index.ts
3
3
  /** 소셜 로그인 실패 — 구매자가 취소했거나(`access_denied`) state가 맞지 않는다 */
4
4
  var IdpCallbackError = class extends Error {
@@ -239,6 +239,7 @@ const linkIdentityRequestSchema = z.object({
239
239
  const cartItemSchema = z.object({
240
240
  cartItemId: z.string(),
241
241
  productId: z.string(),
242
+ productNo: z.number().int().nullable().optional().default(null).describe("상품번호(이슈 #107) — 상품 주소(`/products/{productNo}`)에 씁니다. 장바구니 요청에는 계속 `productId`를 보냅니다. 옛 응답은 null"),
242
243
  productName: z.string(),
243
244
  thumbnailUrl: z.url().nullable().describe("담은 상품의 대표 이미지. 없으면 null"),
244
245
  optionId: z.string().nullable(),
@@ -318,6 +319,7 @@ const categoryNodeSchema = z.lazy(() => z.object({
318
319
  }));
319
320
  const productCardSchema = z.object({
320
321
  productId: z.string(),
322
+ productNo: z.number().int().nullable().optional().default(null).describe("상품번호(이슈 #107) — 상점별 1부터 증가하는 숫자, 상점 안에서 유일, 생성 후 바뀌지 않습니다. 상품 주소에 쓰십시오(`GET /products/{productNo}`). 번호 체계 이전 응답은 null"),
321
323
  name: z.string(),
322
324
  thumbnailUrl: z.url().nullable().describe("대표 이미지 주소. 등록된 이미지가 없으면 null"),
323
325
  salePrice: z.number().int().describe("판매가. 원(KRW) 단위 정수. 즉시할인이 없으면 구매자가 내는 한 개 가격(옵션 추가금 제외)이고, 즉시할인의 기준 가격이다"),
@@ -345,6 +347,7 @@ const productDetailSchema = productCardSchema.extend({
345
347
  /** 판매 단위(SKU). variantId는 카트·주문의 optionId와 같은 값 공간이다 */
346
348
  variants: z.array(z.object({
347
349
  variantId: z.string(),
350
+ variantNo: z.string().nullable().optional().default(null).describe("조합 번호(이슈 #107) — `{productNo}-{조합 순번 2자리}`(예: `10482-03`). 시스템이 매기는 SKU이고 상점 안에서 유일합니다. 생성 후 바뀌지 않으며, 지운 조합의 번호는 다시 쓰지 않습니다. 셀러가 입력하는 `sku`와 별개입니다"),
348
351
  /** optionGroups 순서와 1:1 대응. 옵션 없는 상품은 [] */
349
352
  valueIds: z.array(z.string()),
350
353
  /** 값 이름을 " / "로 이은 표시명. 옵션 없으면 "" */
@@ -356,6 +359,7 @@ const productDetailSchema = productCardSchema.extend({
356
359
  customInputs: z.array(customInputViewSchema).optional().default([]).describe("직접 입력 항목(이슈 #59). 배열 순서가 표시 순서다. 담기·바로 구매의 `customInputs`로 값을 보낸다. 없으면 빈 배열. 서버는 항상 싣는다"),
357
360
  fulfillment: productFulfillmentViewSchema,
358
361
  returnPeriodDays: z.number().int().describe("반품·교환을 받는 기간(수령·제공일부터 일수)"),
362
+ purchasePoint: z.number().int().nullable().optional().default(null).describe("구매 적립 예정액(원, 이슈 #93). 상품 1개를 지금 가격(`discountedPrice ?? salePrice`, 옵션 추가금·쿠폰·배송비 제외)으로 샀을 때 구매확정 뒤 받는 적립금이다. 상점 구매 적립률과 상품별 적립률로 서버가 계산한다. 구매 적립이 꺼져 있거나 적립 안 함 상품, 계산값이 0원이면 null이다. 적립은 회원 주문만 받는다. 화면은 값이 있을 때 「구매 시 n원 적립」으로 그대로 보이면 된다"),
359
363
  categoryPath: z.array(z.object({
360
364
  categoryId: z.string(),
361
365
  name: z.string()
@@ -420,6 +424,31 @@ const storefrontCollectionListQuerySchema = z.object({
420
424
  size: z.string().optional().describe("페이지 크기 (기본 20, 최대 100)")
421
425
  });
422
426
  //#endregion
427
+ //#region src/schemas/commerce-number.ts
428
+ /**
429
+ * 국내 쇼핑몰 번호 체계(이슈 #107) — 공개 ID(`ord_…` 등)와 따로 싣는 숫자 번호의 표기·필드.
430
+ * 번호는 서버가 만들고 생성 후 바뀌지 않는다. 새 필드라 옛 서버 응답에는 없다 — 파싱은 null로 채운다.
431
+ */
432
+ /**
433
+ * 번호 표기 — 숫자를 앞에서부터 4자리씩 하이픈으로 나눈다. 주문번호 `26100284731592` → `2610-0284-7315-92`,
434
+ * 상품주문번호 `2610028473159201` → `2610-0284-7315-9201`. 숫자만으로 된 값이 아니면(클레임번호 `C…`) 그대로, 없으면 빈 문자열이다.
435
+ * 화면 표기 전용이다 — API에 보낼 때는 원래 값을 쓴다(주문번호 조회는 하이픈도 받는다)
436
+ */
437
+ function formatOrderNo(no) {
438
+ if (!no) return "";
439
+ if (!/^\d+$/.test(no)) return no;
440
+ return no.match(/.{1,4}/g)?.join("-") ?? no;
441
+ }
442
+ /** 표기 하이픈·공백을 지운 숫자 번호. 숫자가 아닌 글자가 남거나 비면 null */
443
+ function parseOrderNo(value) {
444
+ const digits = value.replace(/[\s-]/g, "");
445
+ return /^\d+$/.test(digits) ? digits : null;
446
+ }
447
+ /** 응답 번호 필드 — 서버는 항상 싣고, 번호 체계 이전 행(백필 전)·옛 서버 응답은 null이다 */
448
+ function commerceNumberField(description) {
449
+ return z.string().nullable().optional().default(null).describe(description);
450
+ }
451
+ //#endregion
423
452
  //#region src/schemas/claim.ts
424
453
  const claimTypeSchema = z.enum([
425
454
  "CANCEL",
@@ -444,6 +473,7 @@ const createClaimRequestSchema = z.object({
444
473
  });
445
474
  const createClaimResultSchema = z.object({
446
475
  claimId: z.string(),
476
+ claimNo: commerceNumberField("클레임번호(이슈 #107) — `C` + YYMMDD(KST) + 숫자 8자리. 취소·반품·교환 접수 단위 번호이고 생성 후 바뀌지 않습니다"),
447
477
  status: z.literal("REQUESTED"),
448
478
  expectedRefundAmount: z.number().int().nullable().describe("예상 환불액 — 수량 비율 상품 실결제 금액(쿠폰 할인을 뺀 금액) − 반품 배송비 − 조건부 무료배송 미달 차감 − 쿠폰 조건 미달 차감(`couponChargeAmount`) + 되돌릴 쿠폰 차감. **배송비 환불은 여기 포함되지 않고 `deliveryFeeRefundAmount`로 따로 온다**(승인 시점의 배송 묶음 상태로 확정되기 때문이다). 교환은 환불이 없어 null이다"),
449
479
  claimDeliveryFee: z.number().int().describe("구매자가 부담하는 반품·교환 배송비. 원 단위"),
@@ -470,6 +500,7 @@ const claimReturnAddressSchema = z.object({
470
500
  });
471
501
  const myClaimSchema = z.object({
472
502
  claimId: z.string(),
503
+ claimNo: commerceNumberField("클레임번호(이슈 #107) — `C` + YYMMDD(KST) + 숫자 8자리. 취소·반품·교환 접수 단위 번호이고 생성 후 바뀌지 않습니다"),
473
504
  type: claimTypeSchema,
474
505
  status: claimStatusSchema,
475
506
  orderItemId: z.string(),
@@ -659,6 +690,7 @@ const wishlistAddResultSchema = z.object({
659
690
  //#region src/schemas/order.ts
660
691
  const myOrderItemSchema = z.object({
661
692
  orderItemId: z.string(),
693
+ orderItemNo: commerceNumberField("상품주문번호(이슈 #107) — 주문번호 + 줄 순번 2자리. 취소·반품·교환 문의에 쓰는 번호입니다"),
662
694
  productId: z.string(),
663
695
  productName: z.string(),
664
696
  thumbnailUrl: z.url().nullable().describe("주문 시점의 대표 이미지. 없었으면 null"),
@@ -696,6 +728,7 @@ const orderShippingAddressSchema = z.object({
696
728
  });
697
729
  const myOrderSchema = z.object({
698
730
  orderId: z.string(),
731
+ orderNo: commerceNumberField("주문번호(이슈 #107) — 숫자 14자리, 생성 후 바뀌지 않습니다. 구매자 화면에는 `formatOrderNo`(4자리 하이픈)로 표시하십시오. 비회원 주문 조회 경로에도 쓸 수 있습니다"),
699
732
  orderedAt: z.string(),
700
733
  items: z.array(myOrderItemSchema),
701
734
  requiresShipping: z.boolean().describe("택배 배송이 필요한 주문상품이 있는가. false면 `shippingAddress`는 주문자 이름·연락처만 있고 주소는 빈 문자열이다"),
@@ -1013,6 +1046,7 @@ get: () => http.request("GET", "/store", storefrontStoreSchema) },
1013
1046
  /** `GET /point-policy` — 상점 적립 정책(리뷰·구매 적립, 유효 기간, 리뷰 작성·수정 기한, #93). 리뷰 혜택 안내에 쓴다 */
1014
1047
  getPointPolicy: () => http.request("GET", "/point-policy", storefrontPointPolicySchema),
1015
1048
  searchProducts: (params) => http.request("GET", "/products", productPageSchema, { query: params }),
1049
+ /** `GET /products/{productId}` — 상품 id(`prod_…`) 또는 숫자 상품번호(`productNo`, 이슈 #107). 번호는 문자열로 넘긴다 */
1016
1050
  getProduct: (productId) => http.request("GET", path`/products/${productId}`, productDetailSchema),
1017
1051
  /** 상품 리뷰 목록 — `variantId`로 옵션(조합)별 리뷰만 받는다(상품 상세 `variants[].variantId`) */
1018
1052
  listProductReviews: (productId, params) => http.request("GET", path`/products/${productId}/reviews`, reviewPageSchema, { query: params }),
@@ -1085,7 +1119,7 @@ get: () => http.request("GET", "/store", storefrontStoreSchema) },
1085
1119
  list: (params) => http.request("GET", "/me/orders", pageSchema(myOrderSchema), { query: params }),
1086
1120
  get: (orderId) => http.request("GET", path`/me/orders/${orderId}`, myOrderSchema),
1087
1121
  /**
1088
- * 비회원 주문 조회 — 주문번호 + 주문할 때 적은 연락처·주문 조회 비밀번호.
1122
+ * 비회원 주문 조회 — 주문 id(`ord_…`) 또는 숫자 주문번호(`orderNo`, 하이픈 허용, 이슈 #107) + 주문할 때 적은 연락처·주문 조회 비밀번호.
1089
1123
  *
1090
1124
  * 에러: 404 `ORDER_NOT_FOUND`(주문이 없거나 연락처·비밀번호가 다름 — 둘을 구분하지 않는다) ·
1091
1125
  * 429 `TOO_MANY_REQUESTS`(주문번호마다 10분에 5번까지 확인하고, 5번째가 틀리면 30분 잠금.
@@ -1147,4 +1181,4 @@ get: () => http.request("GET", "/store", storefrontStoreSchema) },
1147
1181
  };
1148
1182
  }
1149
1183
  //#endregion
1150
- export { collectionProductSortSchema as $, wishlistAddResultSchema as A, buildQuery as At, consentSourceSchema as B, orderShippingAddressSchema as C, memberIdentitiesSchema as Ct, memberAddressSchema as D, withdrawRequestSchema as Dt, memberAddressRequestSchema as E, tokenPairSchema as Et, createCustomerInquiryRequestSchema as F, claimReturnAddressSchema as G, consentUpdateRequestSchema as H, customerInquiryCategorySchema as I, createClaimResultSchema as J, claimTypeSchema as K, customerInquirySchema as L, createInquiryResultSchema as M, unwrapData as Mt, productInquiryCategorySchema as N, memberSchema as O, withdrawalBlockedDetailsSchema as Ot, publicInquirySchema as P, collectionProductQuerySchema as Q, consentActionSchema as R, myOrderSchema as S, loginRequestSchema as St, trackingStageResponseSchema as T, socialProviderSchema as Tt, memberConsentsSchema as U, consentStateSchema as V, claimReasonSchema as W, categoryNodeSchema as X, myClaimSchema as Y, collectionProductPageSchema as Z, memberPointEntrySchema as _, idpAgreementsSchema as _t, myReviewSchema as a, storefrontCollectionDetailSchema as at, deliveryTrackingSchema as b, idpTokenRequestSchema as bt, publicReviewSchema as c, claimStatusSchema as ct, reviewSummarySchema as d, pageSchema as dt, productCardSchema as et, updateReviewRequestSchema as f, addCartItemRequestSchema as ft, memberPointEntryPageSchema as g, anonymousSessionSchema as gt, writableReviewSchema as h, updateCartItemRequestSchema as ht, createReviewResultSchema as i, productSortSchema as it, createInquiryRequestSchema as j, toApiError as jt, updateProfileRequestSchema as k, ApiError as kt, reviewImageUploadRequestSchema as l, orderItemStatusSchema as lt, uploadTicketSchema as m, cartSchema as mt, storefrontStoreSchema as n, productFacetsSchema as nt, productReviewQuerySchema as o, storefrontCollectionListQuerySchema as ot, updateReviewResultSchema as p, cartItemSchema as pt, createClaimRequestSchema as q, createReviewRequestSchema as r, productPageSchema as rt, productReviewSortSchema as s, storefrontCollectionSchema as st, createStorefrontClient as t, productDetailSchema as tt, reviewPageSchema as u, pageInfoSchema as ut, memberPointsSchema as v, idpAuthorizeRequestSchema as vt, purchaseDecisionResultSchema as w, signupRequestSchema as wt, myOrderItemSchema as x, linkIdentityRequestSchema as xt, storefrontPointPolicySchema as y, idpAuthorizeResponseSchema as yt, consentKindSchema as z };
1184
+ export { categoryNodeSchema as $, wishlistAddResultSchema as A, withdrawRequestSchema as At, consentSourceSchema as B, orderShippingAddressSchema as C, idpTokenRequestSchema as Ct, memberAddressSchema as D, signupRequestSchema as Dt, memberAddressRequestSchema as E, memberIdentitiesSchema as Et, createCustomerInquiryRequestSchema as F, unwrapData as Ft, claimReturnAddressSchema as G, consentUpdateRequestSchema as H, customerInquiryCategorySchema as I, createClaimResultSchema as J, claimTypeSchema as K, customerInquirySchema as L, createInquiryResultSchema as M, ApiError as Mt, productInquiryCategorySchema as N, buildQuery as Nt, memberSchema as O, socialProviderSchema as Ot, publicInquirySchema as P, toApiError as Pt, parseOrderNo as Q, consentActionSchema as R, myOrderSchema as S, idpAuthorizeResponseSchema as St, trackingStageResponseSchema as T, loginRequestSchema as Tt, memberConsentsSchema as U, consentStateSchema as V, claimReasonSchema as W, commerceNumberField as X, myClaimSchema as Y, formatOrderNo as Z, memberPointEntrySchema as _, cartSchema as _t, myReviewSchema as a, productFacetsSchema as at, deliveryTrackingSchema as b, idpAgreementsSchema as bt, publicReviewSchema as c, storefrontCollectionDetailSchema as ct, reviewSummarySchema as d, claimStatusSchema as dt, collectionProductPageSchema as et, updateReviewRequestSchema as f, orderItemStatusSchema as ft, memberPointEntryPageSchema as g, cartItemSchema as gt, writableReviewSchema as h, addCartItemRequestSchema as ht, createReviewResultSchema as i, productDetailSchema as it, createInquiryRequestSchema as j, withdrawalBlockedDetailsSchema as jt, updateProfileRequestSchema as k, tokenPairSchema as kt, reviewImageUploadRequestSchema as l, storefrontCollectionListQuerySchema as lt, uploadTicketSchema as m, pageSchema as mt, storefrontStoreSchema as n, collectionProductSortSchema as nt, productReviewQuerySchema as o, productPageSchema as ot, updateReviewResultSchema as p, pageInfoSchema as pt, createClaimRequestSchema as q, createReviewRequestSchema as r, productCardSchema as rt, productReviewSortSchema as s, productSortSchema as st, createStorefrontClient as t, collectionProductQuerySchema as tt, reviewPageSchema as u, storefrontCollectionSchema as ut, memberPointsSchema as v, updateCartItemRequestSchema as vt, purchaseDecisionResultSchema as w, linkIdentityRequestSchema as wt, myOrderItemSchema as x, idpAuthorizeRequestSchema as xt, storefrontPointPolicySchema as y, anonymousSessionSchema as yt, consentKindSchema as z };
@@ -43,6 +43,7 @@ declare const cartItemSchema: z.ZodObject<{
43
43
  }, z.core.$strip>>>>;
44
44
  cartItemId: z.ZodString;
45
45
  productId: z.ZodString;
46
+ productNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
46
47
  productName: z.ZodString;
47
48
  thumbnailUrl: z.ZodNullable<z.ZodURL>;
48
49
  optionId: z.ZodNullable<z.ZodString>;
@@ -77,6 +78,7 @@ declare const cartSchema: z.ZodObject<{
77
78
  }, z.core.$strip>>>>;
78
79
  cartItemId: z.ZodString;
79
80
  productId: z.ZodString;
81
+ productNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
80
82
  productName: z.ZodString;
81
83
  thumbnailUrl: z.ZodNullable<z.ZodURL>;
82
84
  optionId: z.ZodNullable<z.ZodString>;
@@ -236,6 +238,7 @@ interface CategoryNode {
236
238
  declare const categoryNodeSchema: z.ZodType<CategoryNode>;
237
239
  declare const productCardSchema: z.ZodObject<{
238
240
  productId: z.ZodString;
241
+ productNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
239
242
  name: z.ZodString;
240
243
  thumbnailUrl: z.ZodNullable<z.ZodURL>;
241
244
  salePrice: z.ZodNumber;
@@ -254,6 +257,7 @@ declare const productCardSchema: z.ZodObject<{
254
257
  type ProductCard = z.infer<typeof productCardSchema>;
255
258
  declare const productDetailSchema: z.ZodObject<{
256
259
  productId: z.ZodString;
260
+ productNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
257
261
  name: z.ZodString;
258
262
  thumbnailUrl: z.ZodNullable<z.ZodURL>;
259
263
  salePrice: z.ZodNumber;
@@ -276,6 +280,7 @@ declare const productDetailSchema: z.ZodObject<{
276
280
  }, z.core.$strip>>;
277
281
  variants: z.ZodArray<z.ZodObject<{
278
282
  variantId: z.ZodString;
283
+ variantNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
279
284
  valueIds: z.ZodArray<z.ZodString>;
280
285
  name: z.ZodString;
281
286
  additionalPrice: z.ZodNumber;
@@ -321,6 +326,7 @@ declare const productDetailSchema: z.ZodObject<{
321
326
  requiresShipping: boolean;
322
327
  }>>]>;
323
328
  returnPeriodDays: z.ZodNumber;
329
+ purchasePoint: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
324
330
  categoryPath: z.ZodArray<z.ZodObject<{
325
331
  categoryId: z.ZodString;
326
332
  name: z.ZodString;
@@ -329,11 +335,11 @@ declare const productDetailSchema: z.ZodObject<{
329
335
  type ProductDetail = z.infer<typeof productDetailSchema>;
330
336
  declare const productSortSchema: z.ZodEnum<{
331
337
  reviewCount: "reviewCount";
332
- latest: "latest";
333
- ratingDesc: "ratingDesc";
334
338
  recommend: "recommend";
339
+ latest: "latest";
335
340
  priceAsc: "priceAsc";
336
341
  priceDesc: "priceDesc";
342
+ ratingDesc: "ratingDesc";
337
343
  }>;
338
344
  type ProductSort = z.infer<typeof productSortSchema>;
339
345
  interface ProductSearchParams extends PageParams {
@@ -364,6 +370,7 @@ declare const productPageSchema: z.ZodObject<{
364
370
  totalPages: z.ZodNumber;
365
371
  contents: z.ZodArray<z.ZodObject<{
366
372
  productId: z.ZodString;
373
+ productNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
367
374
  name: z.ZodString;
368
375
  thumbnailUrl: z.ZodNullable<z.ZodURL>;
369
376
  salePrice: z.ZodNumber;
@@ -409,11 +416,11 @@ type StorefrontCollection = z.infer<typeof storefrontCollectionSchema>;
409
416
  /** 컬렉션 상품 정렬 — 상품 검색 정렬 + `manual`(셀러가 정한 순서) */
410
417
  declare const collectionProductSortSchema: z.ZodEnum<{
411
418
  reviewCount: "reviewCount";
412
- latest: "latest";
413
- ratingDesc: "ratingDesc";
414
419
  recommend: "recommend";
420
+ latest: "latest";
415
421
  priceAsc: "priceAsc";
416
422
  priceDesc: "priceDesc";
423
+ ratingDesc: "ratingDesc";
417
424
  manual: "manual";
418
425
  }>;
419
426
  type CollectionProductSortParam = z.infer<typeof collectionProductSortSchema>;
@@ -441,11 +448,11 @@ interface CollectionProductParams extends PageParams {
441
448
  declare const collectionProductQuerySchema: z.ZodObject<{
442
449
  sort: z.ZodOptional<z.ZodEnum<{
443
450
  reviewCount: "reviewCount";
444
- latest: "latest";
445
- ratingDesc: "ratingDesc";
446
451
  recommend: "recommend";
452
+ latest: "latest";
447
453
  priceAsc: "priceAsc";
448
454
  priceDesc: "priceDesc";
455
+ ratingDesc: "ratingDesc";
449
456
  manual: "manual";
450
457
  }>>;
451
458
  minPrice: z.ZodOptional<z.ZodString>;
@@ -461,6 +468,7 @@ declare const collectionProductPageSchema: z.ZodObject<{
461
468
  totalPages: z.ZodNumber;
462
469
  contents: z.ZodArray<z.ZodObject<{
463
470
  productId: z.ZodString;
471
+ productNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
464
472
  name: z.ZodString;
465
473
  thumbnailUrl: z.ZodNullable<z.ZodURL>;
466
474
  salePrice: z.ZodNumber;
@@ -1204,6 +1212,7 @@ declare const createClaimRequestSchema: z.ZodObject<{
1204
1212
  type CreateClaimRequest = z.infer<typeof createClaimRequestSchema>;
1205
1213
  declare const createClaimResultSchema: z.ZodObject<{
1206
1214
  claimId: z.ZodString;
1215
+ claimNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1207
1216
  status: z.ZodLiteral<"REQUESTED">;
1208
1217
  expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
1209
1218
  claimDeliveryFee: z.ZodNumber;
@@ -1232,6 +1241,7 @@ declare const claimReturnAddressSchema: z.ZodObject<{
1232
1241
  type ClaimReturnAddress = z.infer<typeof claimReturnAddressSchema>;
1233
1242
  declare const myClaimSchema: z.ZodObject<{
1234
1243
  claimId: z.ZodString;
1244
+ claimNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
1235
1245
  type: z.ZodEnum<{
1236
1246
  RETURN: "RETURN";
1237
1247
  EXCHANGE: "EXCHANGE";
@@ -2052,6 +2062,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2052
2062
  totalPages: number;
2053
2063
  contents: {
2054
2064
  productId: string;
2065
+ productNo: number | null;
2055
2066
  name: string;
2056
2067
  thumbnailUrl: string | null;
2057
2068
  salePrice: number;
@@ -2079,8 +2090,10 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2079
2090
  } | undefined;
2080
2091
  } | undefined;
2081
2092
  }>;
2093
+ /** `GET /products/{productId}` — 상품 id(`prod_…`) 또는 숫자 상품번호(`productNo`, 이슈 #107). 번호는 문자열로 넘긴다 */
2082
2094
  getProduct: (productId: string) => Promise<{
2083
2095
  productId: string;
2096
+ productNo: number | null;
2084
2097
  name: string;
2085
2098
  thumbnailUrl: string | null;
2086
2099
  salePrice: number;
@@ -2103,6 +2116,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2103
2116
  }[];
2104
2117
  variants: {
2105
2118
  variantId: string;
2119
+ variantNo: string | null;
2106
2120
  valueIds: string[];
2107
2121
  name: string;
2108
2122
  additionalPrice: number;
@@ -2141,6 +2155,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2141
2155
  requiresShipping: false;
2142
2156
  };
2143
2157
  returnPeriodDays: number;
2158
+ purchasePoint: number | null;
2144
2159
  categoryPath: {
2145
2160
  categoryId: string;
2146
2161
  name: string;
@@ -2233,6 +2248,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2233
2248
  totalPages: number;
2234
2249
  contents: {
2235
2250
  productId: string;
2251
+ productNo: number | null;
2236
2252
  name: string;
2237
2253
  thumbnailUrl: string | null;
2238
2254
  salePrice: number;
@@ -2275,6 +2291,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2275
2291
  }[];
2276
2292
  cartItemId: string;
2277
2293
  productId: string;
2294
+ productNo: number | null;
2278
2295
  productName: string;
2279
2296
  thumbnailUrl: string | null;
2280
2297
  optionId: string | null;
@@ -2311,6 +2328,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2311
2328
  }[];
2312
2329
  cartItemId: string;
2313
2330
  productId: string;
2331
+ productNo: number | null;
2314
2332
  productName: string;
2315
2333
  thumbnailUrl: string | null;
2316
2334
  optionId: string | null;
@@ -2347,6 +2365,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2347
2365
  }[];
2348
2366
  cartItemId: string;
2349
2367
  productId: string;
2368
+ productNo: number | null;
2350
2369
  productName: string;
2351
2370
  thumbnailUrl: string | null;
2352
2371
  optionId: string | null;
@@ -2673,6 +2692,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2673
2692
  totalPages: number;
2674
2693
  contents: {
2675
2694
  orderId: string;
2695
+ orderNo: string | null;
2676
2696
  orderedAt: string;
2677
2697
  items: {
2678
2698
  quantity: number;
@@ -2708,6 +2728,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2708
2728
  value: string;
2709
2729
  }[];
2710
2730
  orderItemId: string;
2731
+ orderItemNo: string | null;
2711
2732
  productId: string;
2712
2733
  productName: string;
2713
2734
  thumbnailUrl: string | null;
@@ -2744,6 +2765,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2744
2765
  }>;
2745
2766
  get: (orderId: string) => Promise<{
2746
2767
  orderId: string;
2768
+ orderNo: string | null;
2747
2769
  orderedAt: string;
2748
2770
  items: {
2749
2771
  quantity: number;
@@ -2779,6 +2801,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2779
2801
  value: string;
2780
2802
  }[];
2781
2803
  orderItemId: string;
2804
+ orderItemNo: string | null;
2782
2805
  productId: string;
2783
2806
  productName: string;
2784
2807
  thumbnailUrl: string | null;
@@ -2813,7 +2836,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2813
2836
  testPayment: boolean;
2814
2837
  }>;
2815
2838
  /**
2816
- * 비회원 주문 조회 — 주문번호 + 주문할 때 적은 연락처·주문 조회 비밀번호.
2839
+ * 비회원 주문 조회 — 주문 id(`ord_…`) 또는 숫자 주문번호(`orderNo`, 하이픈 허용, 이슈 #107) + 주문할 때 적은 연락처·주문 조회 비밀번호.
2817
2840
  *
2818
2841
  * 에러: 404 `ORDER_NOT_FOUND`(주문이 없거나 연락처·비밀번호가 다름 — 둘을 구분하지 않는다) ·
2819
2842
  * 429 `TOO_MANY_REQUESTS`(주문번호마다 10분에 5번까지 확인하고, 5번째가 틀리면 30분 잠금.
@@ -2826,6 +2849,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2826
2849
  orderPassword: string;
2827
2850
  }) => Promise<{
2828
2851
  orderId: string;
2852
+ orderNo: string | null;
2829
2853
  orderedAt: string;
2830
2854
  items: {
2831
2855
  quantity: number;
@@ -2861,6 +2885,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2861
2885
  value: string;
2862
2886
  }[];
2863
2887
  orderItemId: string;
2888
+ orderItemNo: string | null;
2864
2889
  productId: string;
2865
2890
  productName: string;
2866
2891
  thumbnailUrl: string | null;
@@ -2913,6 +2938,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2913
2938
  myClaims: {
2914
2939
  create: (orderItemId: string, body: CreateClaimRequest) => Promise<{
2915
2940
  claimId: string;
2941
+ claimNo: string | null;
2916
2942
  status: "REQUESTED";
2917
2943
  expectedRefundAmount: number | null;
2918
2944
  claimDeliveryFee: number;
@@ -2931,6 +2957,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
2931
2957
  totalPages: number;
2932
2958
  contents: {
2933
2959
  claimId: string;
2960
+ claimNo: string | null;
2934
2961
  type: "RETURN" | "EXCHANGE" | "CANCEL";
2935
2962
  status: "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "REJECTED" | "WITHDRAWN";
2936
2963
  orderItemId: string;
@@ -3068,6 +3095,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
3068
3095
  totalPages: number;
3069
3096
  contents: {
3070
3097
  productId: string;
3098
+ productNo: number | null;
3071
3099
  name: string;
3072
3100
  thumbnailUrl: string | null;
3073
3101
  salePrice: number;
@@ -3355,6 +3383,22 @@ type AnalyticsBatch = z.infer<typeof analyticsBatchSchema>;
3355
3383
  /** 배치 본문 상한(바이트) — 서버가 넘는 요청을 거부한다 */
3356
3384
  declare const ANALYTICS_MAX_BATCH_BYTES: number;
3357
3385
  //#endregion
3386
+ //#region src/schemas/commerce-number.d.ts
3387
+ /**
3388
+ * 국내 쇼핑몰 번호 체계(이슈 #107) — 공개 ID(`ord_…` 등)와 따로 싣는 숫자 번호의 표기·필드.
3389
+ * 번호는 서버가 만들고 생성 후 바뀌지 않는다. 새 필드라 옛 서버 응답에는 없다 — 파싱은 null로 채운다.
3390
+ */
3391
+ /**
3392
+ * 번호 표기 — 숫자를 앞에서부터 4자리씩 하이픈으로 나눈다. 주문번호 `26100284731592` → `2610-0284-7315-92`,
3393
+ * 상품주문번호 `2610028473159201` → `2610-0284-7315-9201`. 숫자만으로 된 값이 아니면(클레임번호 `C…`) 그대로, 없으면 빈 문자열이다.
3394
+ * 화면 표기 전용이다 — API에 보낼 때는 원래 값을 쓴다(주문번호 조회는 하이픈도 받는다)
3395
+ */
3396
+ declare function formatOrderNo(no: string | null | undefined): string;
3397
+ /** 표기 하이픈·공백을 지운 숫자 번호. 숫자가 아닌 글자가 남거나 비면 null */
3398
+ declare function parseOrderNo(value: string): string | null;
3399
+ /** 응답 번호 필드 — 서버는 항상 싣고, 번호 체계 이전 행(백필 전)·옛 서버 응답은 null이다 */
3400
+ declare function commerceNumberField(description: string): z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3401
+ //#endregion
3358
3402
  //#region src/schemas/order.d.ts
3359
3403
  declare const myOrderItemSchema: z.ZodObject<{
3360
3404
  quantity: z.ZodNumber;
@@ -3406,6 +3450,7 @@ declare const myOrderItemSchema: z.ZodObject<{
3406
3450
  value: z.ZodString;
3407
3451
  }, z.core.$strip>>>>;
3408
3452
  orderItemId: z.ZodString;
3453
+ orderItemNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3409
3454
  productId: z.ZodString;
3410
3455
  productName: z.ZodString;
3411
3456
  thumbnailUrl: z.ZodNullable<z.ZodURL>;
@@ -3428,6 +3473,7 @@ declare const orderShippingAddressSchema: z.ZodObject<{
3428
3473
  type OrderShippingAddress = z.infer<typeof orderShippingAddressSchema>;
3429
3474
  declare const myOrderSchema: z.ZodObject<{
3430
3475
  orderId: z.ZodString;
3476
+ orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3431
3477
  orderedAt: z.ZodString;
3432
3478
  items: z.ZodArray<z.ZodObject<{
3433
3479
  quantity: z.ZodNumber;
@@ -3479,6 +3525,7 @@ declare const myOrderSchema: z.ZodObject<{
3479
3525
  value: z.ZodString;
3480
3526
  }, z.core.$strip>>>>;
3481
3527
  orderItemId: z.ZodString;
3528
+ orderItemNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
3482
3529
  productId: z.ZodString;
3483
3530
  productName: z.ZodString;
3484
3531
  thumbnailUrl: z.ZodNullable<z.ZodURL>;
@@ -3727,4 +3774,4 @@ declare const storefrontStoreSchema: z.ZodObject<{
3727
3774
  }, z.core.$strip>;
3728
3775
  type StorefrontStore = z.infer<typeof storefrontStoreSchema>;
3729
3776
  //#endregion
3730
- export { StorefrontClientOptions as $, DeliveryQuoteResult as $n, ProductDetail as $r, createCustomerInquiryRequestSchema as $t, PurchaseDecisionResult as A, UnknownFulfillmentView as Ai, consentUpdateRequestSchema as An, easyPayProviderResponseSchema as Ar, uploadTicketSchema as At, ANALYTICS_VISITOR_COOKIE as B, cartItemSchema as Bi, claimTypeSchema as Bn, paymentStatusSchema as Br, updateProfileRequestSchema as Bt, memberPointEntrySchema as C, orderItemStatusSchema as Ci, ConsentState as Cn, cashReceiptRequestSchema as Cr, productReviewSortSchema as Ct, MyOrder as D, MyOrderItemFulfillmentSnapshot as Di, consentKindSchema as Dn, createCheckoutRequestSchema as Dr, reviewSummarySchema as Dt, DeliveryTracking as E, LineFulfillment as Ei, consentActionSchema as En, checkoutSessionSchema as Er, reviewPageSchema as Et, purchaseDecisionResultSchema as F, AddCartItemRequest as Fi, CreateClaimRequest as Fn, paymentMethodSchema as Fr, UpdateProfileRequest as Ft, AnalyticsEventName as G, CASH_RECEIPT_METHODS as Gn, retryPaymentRequestSchema as Gr, PublicInquiry as Gt, AnalyticsBatch as H, updateCartItemRequestSchema as Hi, createClaimResultSchema as Hn, remoteAreaSchema as Hr, CreateInquiryRequest as Ht, trackingStageResponseSchema as I, Cart as Ii, CreateClaimResult as In, paymentOptionKey as Ir, WishlistAddResult as It, analyticsClientEventNameSchema as J, CashReceiptType as Jn, CategoryNode as Jr, productInquiryCategorySchema as Jt, AnalyticsServerEventName as K, CashReceiptIdentityType as Kn, shippingAddressInputSchema as Kr, createInquiryRequestSchema as Kt, ANALYTICS_MAX_BATCH_BYTES as L, CartItem as Li, MyClaim as Ln, paymentOptionListSchema as Lr, memberAddressRequestSchema as Lt, myOrderItemSchema as M, myOrderItemFulfillmentSnapshotSchema as Mi, ClaimReason as Mn, guestInfoSchema as Mr, Member as Mt, myOrderSchema as N, productCardFulfillmentSchema as Ni, ClaimReturnAddress as Nn, paymentFailureCategorySchema as Nr, MemberAddress as Nt, MyOrderItem as O, ProductCardFulfillment as Oi, consentSourceSchema as On, deliveryQuoteRequestSchema as Or, updateReviewRequestSchema as Ot, orderShippingAddressSchema as P, productFulfillmentViewSchema as Pi, ClaimType as Pn, paymentMessageSchema as Pr, MemberAddressRequest as Pt, StorefrontClient as Q, DeliveryQuoteRequest as Qn, ProductCard as Qr, CustomerInquiryCategory as Qt, ANALYTICS_SESSION_COOKIE as R, UpdateCartItemRequest as Ri, claimReasonSchema as Rn, paymentOptionSchema as Rr, memberAddressSchema as Rt, memberPointEntryPageSchema as S, claimStatusSchema as Si, ConsentSource as Sn, cashReceiptIdentityTypeOf as Sr, productReviewQuerySchema as St, storefrontPointPolicySchema as T, pageSchema as Ti, MemberConsents as Tn, checkoutDeliverySchema as Tr, reviewImageUploadRequestSchema as Tt, AnalyticsClientEvent as U, analyticsIdsFromCookie as Ui, myClaimSchema as Un, residentNumberLike as Ur, CreateInquiryResult as Ut, ANALYTICS_VISITOR_HEADER as V, cartSchema as Vi, createClaimRequestSchema as Vn, pgProviderSchema as Vr, wishlistAddResultSchema as Vt, AnalyticsClientEventName as W, AvailablePaymentOption as Wn, responsePaymentMethodSchema as Wr, ProductInquiryCategory as Wt, analyticsIdSchema as X, CheckoutSession as Xn, CollectionProductParams as Xr, CreateCustomerInquiryRequest as Xt, analyticsClientEventSchema as Y, CheckoutDelivery as Yn, CollectionProductPage as Yr, publicInquirySchema as Yt, analyticsServerEventNameSchema as Z, CreateCheckoutRequest as Zn, CollectionProductSortParam as Zr, CustomerInquiry as Zt, normalizeCustomInputValue as _, storefrontCollectionSchema as _i, myCouponListQuerySchema as _n, RetryPaymentRequest as _r, UploadTicket as _t, CustomInputEntry as a, StorefrontCollectionDetail as ai, CouponApplication as an, PAYMENT_RESULT_VALUES as ar, createStorefrontSession as at, MemberPoints as b, PageInfo as bi, ConsentAction as bn, availablePaymentOptionSchema as br, createReviewResultSchema as bt, OptionSelectionView as c, collectionProductQuerySchema as ci, MIN_PAYMENT_AMOUNT as cn, PaymentFailureCategory as cr, MyReview as ct, customInputEntrySchema as d, productDetailSchema as di, checkoutPricingRequestSchema as dn, PaymentOption as dr, PublicReview as dt, ProductFacets as ei, customerInquiryCategorySchema as en, EasyPayProvider as er, createStorefrontClient as et, customInputLength as f, productFacetsSchema as fi, checkoutPricingSchema as fn, PaymentStart as fr, ReviewImageUploadRequest as ft, lineSelectionResponseShape as g, storefrontCollectionListQuerySchema as gi, couponResultSchema as gn, ResponsePaymentMethod as gr, UpdateReviewResult as gt, lineSelectionRequestShape as h, storefrontCollectionDetailSchema as hi, couponBenefitViewSchema as hn, RemoteArea as hr, UpdateReviewRequest as ht, AddonSelection as i, StorefrontCollection as ii, CheckoutPricingRequest as in, KnownPaymentStatus as ir, StorefrontSessionOptions as it, deliveryTrackingSchema as j, lineFulfillmentSchema as ji, memberConsentsSchema as jn, easyPayProviderSchema as jr, writableReviewSchema as jt, OrderShippingAddress as k, ProductFulfillmentView as ki, consentStateSchema as kn, deliveryQuoteSchema as kr, updateReviewResultSchema as kt, addonGroupViewSchema as l, collectionProductSortSchema as li, MyCoupon as ln, PaymentMessage as lr, ProductReviewParams as lt, customInputViewSchema as m, productSortSchema as mi, couponApplicationSchema as mn, PgProvider as mr, ReviewSummary as mt, storefrontStoreSchema as n, ProductSearchParams as ni, ApplicableCoupon as nn, KnownPaymentResult as nr, SessionStorage as nt, CustomInputValueView as o, categoryNodeSchema as oi, CouponResult as on, PAYMENT_START_STATUS_VALUES as or, CreateReviewRequest as ot, customInputValueViewSchema as p, productPageSchema as pi, couponApplicationListSchema as pn, PaymentStatus as pr, ReviewPage as pt, analyticsBatchSchema as q, CashReceiptRequest as qn, startPaymentRequestSchema as qr, createInquiryResultSchema as qt, AddonGroupView as r, ProductSort as ri, CheckoutPricing as rn, KnownPaymentStartStatus as rr, StorefrontSession as rt, CustomInputView as s, collectionProductPageSchema as si, MAX_COUPONS_PER_CHECKOUT as sn, PAYMENT_STATUS_VALUES as sr, CreateReviewResult as st, StorefrontStore as t, ProductPage as ti, customerInquirySchema as tn, GuestInfo as tr, STOREFRONT_SESSION_KEYS as tt, addonSelectionSchema as u, productCardSchema as ui, applicableCouponSchema as un, PaymentMethod as ur, ProductReviewSort as ut, optionSelectionViewSchema as v, ClaimStatus as vi, myCouponSchema as vn, ShippingAddressInput as vr, WritableReview as vt, memberPointsSchema as w, pageInfoSchema as wi, ConsentUpdateRequest as wn, cashReceiptTypeSchema as wr, publicReviewSchema as wt, StorefrontPointPolicy as x, PageParams as xi, ConsentKind as xn, cashReceiptAvailable as xr, myReviewSchema as xt, MemberPointEntry as y, OrderItemStatus as yi, pricingAmountsSchema as yn, StartPaymentRequest as yr, createReviewRequestSchema as yt, ANALYTICS_SESSION_HEADER as z, addCartItemRequestSchema as zi, claimReturnAddressSchema as zn, paymentStartSchema as zr, memberSchema as zt };
3777
+ export { analyticsIdSchema as $, CheckoutSession as $n, CollectionProductParams as $r, CreateCustomerInquiryRequest as $t, PurchaseDecisionResult as A, MyOrderItemFulfillmentSnapshot as Ai, consentKindSchema as An, createCheckoutRequestSchema as Ar, reviewSummarySchema as At, ANALYTICS_MAX_BATCH_BYTES as B, CartItem as Bi, MyClaim as Bn, paymentOptionListSchema as Br, memberAddressRequestSchema as Bt, memberPointEntrySchema as C, PageInfo as Ci, ConsentAction as Cn, availablePaymentOptionSchema as Cr, createReviewResultSchema as Ct, MyOrder as D, pageInfoSchema as Di, ConsentUpdateRequest as Dn, cashReceiptTypeSchema as Dr, publicReviewSchema as Dt, DeliveryTracking as E, orderItemStatusSchema as Ei, ConsentState as En, cashReceiptRequestSchema as Er, productReviewSortSchema as Et, purchaseDecisionResultSchema as F, myOrderItemFulfillmentSnapshotSchema as Fi, ClaimReason as Fn, guestInfoSchema as Fr, Member as Ft, AnalyticsBatch as G, updateCartItemRequestSchema as Gi, createClaimResultSchema as Gn, remoteAreaSchema as Gr, CreateInquiryRequest as Gt, ANALYTICS_SESSION_HEADER as H, addCartItemRequestSchema as Hi, claimReturnAddressSchema as Hn, paymentStartSchema as Hr, memberSchema as Ht, trackingStageResponseSchema as I, productCardFulfillmentSchema as Ii, ClaimReturnAddress as In, paymentFailureCategorySchema as Ir, MemberAddress as It, AnalyticsEventName as J, CASH_RECEIPT_METHODS as Jn, retryPaymentRequestSchema as Jr, PublicInquiry as Jt, AnalyticsClientEvent as K, analyticsIdsFromCookie as Ki, myClaimSchema as Kn, residentNumberLike as Kr, CreateInquiryResult as Kt, commerceNumberField as L, productFulfillmentViewSchema as Li, ClaimType as Ln, paymentMessageSchema as Lr, MemberAddressRequest as Lt, myOrderItemSchema as M, ProductFulfillmentView as Mi, consentStateSchema as Mn, deliveryQuoteSchema as Mr, updateReviewResultSchema as Mt, myOrderSchema as N, UnknownFulfillmentView as Ni, consentUpdateRequestSchema as Nn, easyPayProviderResponseSchema as Nr, uploadTicketSchema as Nt, MyOrderItem as O, pageSchema as Oi, MemberConsents as On, checkoutDeliverySchema as Or, reviewImageUploadRequestSchema as Ot, orderShippingAddressSchema as P, lineFulfillmentSchema as Pi, memberConsentsSchema as Pn, easyPayProviderSchema as Pr, writableReviewSchema as Pt, analyticsClientEventSchema as Q, CheckoutDelivery as Qn, CollectionProductPage as Qr, publicInquirySchema as Qt, formatOrderNo as R, AddCartItemRequest as Ri, CreateClaimRequest as Rn, paymentMethodSchema as Rr, UpdateProfileRequest as Rt, memberPointEntryPageSchema as S, OrderItemStatus as Si, pricingAmountsSchema as Sn, StartPaymentRequest as Sr, createReviewRequestSchema as St, storefrontPointPolicySchema as T, claimStatusSchema as Ti, ConsentSource as Tn, cashReceiptIdentityTypeOf as Tr, productReviewQuerySchema as Tt, ANALYTICS_VISITOR_COOKIE as U, cartItemSchema as Ui, claimTypeSchema as Un, paymentStatusSchema as Ur, updateProfileRequestSchema as Ut, ANALYTICS_SESSION_COOKIE as V, UpdateCartItemRequest as Vi, claimReasonSchema as Vn, paymentOptionSchema as Vr, memberAddressSchema as Vt, ANALYTICS_VISITOR_HEADER as W, cartSchema as Wi, createClaimRequestSchema as Wn, pgProviderSchema as Wr, wishlistAddResultSchema as Wt, analyticsBatchSchema as X, CashReceiptRequest as Xn, startPaymentRequestSchema as Xr, createInquiryResultSchema as Xt, AnalyticsServerEventName as Y, CashReceiptIdentityType as Yn, shippingAddressInputSchema as Yr, createInquiryRequestSchema as Yt, analyticsClientEventNameSchema as Z, CashReceiptType as Zn, CategoryNode as Zr, productInquiryCategorySchema as Zt, normalizeCustomInputValue as _, productSortSchema as _i, couponApplicationSchema as _n, PgProvider as _r, ReviewSummary as _t, CustomInputEntry as a, ProductSearchParams as ai, ApplicableCoupon as an, KnownPaymentResult as ar, SessionStorage as at, MemberPoints as b, storefrontCollectionSchema as bi, myCouponListQuerySchema as bn, RetryPaymentRequest as br, UploadTicket as bt, OptionSelectionView as c, StorefrontCollectionDetail as ci, CouponApplication as cn, PAYMENT_RESULT_VALUES as cr, createStorefrontSession as ct, customInputEntrySchema as d, collectionProductQuerySchema as di, MIN_PAYMENT_AMOUNT as dn, PaymentFailureCategory as dr, MyReview as dt, CollectionProductSortParam as ei, CustomerInquiry as en, CreateCheckoutRequest as er, analyticsServerEventNameSchema as et, customInputLength as f, collectionProductSortSchema as fi, MyCoupon as fn, PaymentMessage as fr, ProductReviewParams as ft, lineSelectionResponseShape as g, productPageSchema as gi, couponApplicationListSchema as gn, PaymentStatus as gr, ReviewPage as gt, lineSelectionRequestShape as h, productFacetsSchema as hi, checkoutPricingSchema as hn, PaymentStart as hr, ReviewImageUploadRequest as ht, AddonSelection as i, ProductPage as ii, customerInquirySchema as in, GuestInfo as ir, STOREFRONT_SESSION_KEYS as it, deliveryTrackingSchema as j, ProductCardFulfillment as ji, consentSourceSchema as jn, deliveryQuoteRequestSchema as jr, updateReviewRequestSchema as jt, OrderShippingAddress as k, LineFulfillment as ki, consentActionSchema as kn, checkoutSessionSchema as kr, reviewPageSchema as kt, addonGroupViewSchema as l, categoryNodeSchema as li, CouponResult as ln, PAYMENT_START_STATUS_VALUES as lr, CreateReviewRequest as lt, customInputViewSchema as m, productDetailSchema as mi, checkoutPricingRequestSchema as mn, PaymentOption as mr, PublicReview as mt, storefrontStoreSchema as n, ProductDetail as ni, createCustomerInquiryRequestSchema as nn, DeliveryQuoteResult as nr, StorefrontClientOptions as nt, CustomInputValueView as o, ProductSort as oi, CheckoutPricing as on, KnownPaymentStartStatus as or, StorefrontSession as ot, customInputValueViewSchema as p, productCardSchema as pi, applicableCouponSchema as pn, PaymentMethod as pr, ProductReviewSort as pt, AnalyticsClientEventName as q, AvailablePaymentOption as qn, responsePaymentMethodSchema as qr, ProductInquiryCategory as qt, AddonGroupView as r, ProductFacets as ri, customerInquiryCategorySchema as rn, EasyPayProvider as rr, createStorefrontClient as rt, CustomInputView as s, StorefrontCollection as si, CheckoutPricingRequest as sn, KnownPaymentStatus as sr, StorefrontSessionOptions as st, StorefrontStore as t, ProductCard as ti, CustomerInquiryCategory as tn, DeliveryQuoteRequest as tr, StorefrontClient as tt, addonSelectionSchema as u, collectionProductPageSchema as ui, MAX_COUPONS_PER_CHECKOUT as un, PAYMENT_STATUS_VALUES as ur, CreateReviewResult as ut, optionSelectionViewSchema as v, storefrontCollectionDetailSchema as vi, couponBenefitViewSchema as vn, RemoteArea as vr, UpdateReviewRequest as vt, memberPointsSchema as w, PageParams as wi, ConsentKind as wn, cashReceiptAvailable as wr, myReviewSchema as wt, StorefrontPointPolicy as x, ClaimStatus as xi, myCouponSchema as xn, ShippingAddressInput as xr, WritableReview as xt, MemberPointEntry as y, storefrontCollectionListQuerySchema as yi, couponResultSchema as yn, ResponsePaymentMethod as yr, UpdateReviewResult as yt, parseOrderNo as z, Cart as zi, CreateClaimResult as zn, paymentOptionKey as zr, WishlistAddResult 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 StorefrontClientOptions, $n as DeliveryQuoteResult, $r as ProductDetail, $t as createCustomerInquiryRequestSchema, A as PurchaseDecisionResult, Ai as UnknownFulfillmentView, An as consentUpdateRequestSchema, Ar as easyPayProviderResponseSchema, At as uploadTicketSchema, B as ANALYTICS_VISITOR_COOKIE, Bi as cartItemSchema, Bn as claimTypeSchema, Br as paymentStatusSchema, Bt as updateProfileRequestSchema, C as memberPointEntrySchema, Ci as orderItemStatusSchema, Cn as ConsentState, Cr as cashReceiptRequestSchema, Ct as productReviewSortSchema, D as MyOrder, Di as MyOrderItemFulfillmentSnapshot, Dn as consentKindSchema, Dr as createCheckoutRequestSchema, Dt as reviewSummarySchema, E as DeliveryTracking, Ei as LineFulfillment, En as consentActionSchema, Er as checkoutSessionSchema, Et as reviewPageSchema, F as purchaseDecisionResultSchema, Fi as AddCartItemRequest, Fn as CreateClaimRequest, Fr as paymentMethodSchema, Ft as UpdateProfileRequest, G as AnalyticsEventName, Gn as CASH_RECEIPT_METHODS, Gr as retryPaymentRequestSchema, Gt as PublicInquiry, H as AnalyticsBatch, Hi as updateCartItemRequestSchema, Hn as createClaimResultSchema, Hr as remoteAreaSchema, Ht as CreateInquiryRequest, I as trackingStageResponseSchema, Ii as Cart, In as CreateClaimResult, Ir as paymentOptionKey, It as WishlistAddResult, J as analyticsClientEventNameSchema, Jn as CashReceiptType, Jr as CategoryNode, Jt as productInquiryCategorySchema, K as AnalyticsServerEventName, Kn as CashReceiptIdentityType, Kr as shippingAddressInputSchema, Kt as createInquiryRequestSchema, L as ANALYTICS_MAX_BATCH_BYTES, Li as CartItem, Ln as MyClaim, Lr as paymentOptionListSchema, Lt as memberAddressRequestSchema, M as myOrderItemSchema, Mi as myOrderItemFulfillmentSnapshotSchema, Mn as ClaimReason, Mr as guestInfoSchema, Mt as Member, N as myOrderSchema, Ni as productCardFulfillmentSchema, Nn as ClaimReturnAddress, Nr as paymentFailureCategorySchema, Nt as MemberAddress, O as MyOrderItem, Oi as ProductCardFulfillment, On as consentSourceSchema, Or as deliveryQuoteRequestSchema, Ot as updateReviewRequestSchema, P as orderShippingAddressSchema, Pi as productFulfillmentViewSchema, Pn as ClaimType, Pr as paymentMessageSchema, Pt as MemberAddressRequest, Q as StorefrontClient, Qn as DeliveryQuoteRequest, Qr as ProductCard, Qt as CustomerInquiryCategory, R as ANALYTICS_SESSION_COOKIE, Ri as UpdateCartItemRequest, Rn as claimReasonSchema, Rr as paymentOptionSchema, Rt as memberAddressSchema, S as memberPointEntryPageSchema, Si as claimStatusSchema, Sn as ConsentSource, Sr as cashReceiptIdentityTypeOf, St as productReviewQuerySchema, T as storefrontPointPolicySchema, Ti as pageSchema, Tn as MemberConsents, Tr as checkoutDeliverySchema, Tt as reviewImageUploadRequestSchema, U as AnalyticsClientEvent, Ui as analyticsIdsFromCookie, Un as myClaimSchema, Ur as residentNumberLike, Ut as CreateInquiryResult, V as ANALYTICS_VISITOR_HEADER, Vi as cartSchema, Vn as createClaimRequestSchema, Vr as pgProviderSchema, Vt as wishlistAddResultSchema, W as AnalyticsClientEventName, Wn as AvailablePaymentOption, Wr as responsePaymentMethodSchema, Wt as ProductInquiryCategory, X as analyticsIdSchema, Xn as CheckoutSession, Xr as CollectionProductParams, Xt as CreateCustomerInquiryRequest, Y as analyticsClientEventSchema, Yn as CheckoutDelivery, Yr as CollectionProductPage, Yt as publicInquirySchema, Z as analyticsServerEventNameSchema, Zn as CreateCheckoutRequest, Zr as CollectionProductSortParam, Zt as CustomerInquiry, _ as normalizeCustomInputValue, _i as storefrontCollectionSchema, _n as myCouponListQuerySchema, _r as RetryPaymentRequest, _t as UploadTicket, a as CustomInputEntry, ai as StorefrontCollectionDetail, an as CouponApplication, ar as PAYMENT_RESULT_VALUES, at as createStorefrontSession, b as MemberPoints, bi as PageInfo, bn as ConsentAction, br as availablePaymentOptionSchema, bt as createReviewResultSchema, c as OptionSelectionView, ci as collectionProductQuerySchema, cn as MIN_PAYMENT_AMOUNT, cr as PaymentFailureCategory, ct as MyReview, d as customInputEntrySchema, di as productDetailSchema, dn as checkoutPricingRequestSchema, dr as PaymentOption, dt as PublicReview, ei as ProductFacets, en as customerInquiryCategorySchema, er as EasyPayProvider, et as createStorefrontClient, f as customInputLength, fi as productFacetsSchema, fn as checkoutPricingSchema, fr as PaymentStart, ft as ReviewImageUploadRequest, g as lineSelectionResponseShape, gi as storefrontCollectionListQuerySchema, gn as couponResultSchema, gr as ResponsePaymentMethod, gt as UpdateReviewResult, h as lineSelectionRequestShape, hi as storefrontCollectionDetailSchema, hn as couponBenefitViewSchema, hr as RemoteArea, ht as UpdateReviewRequest, i as AddonSelection, ii as StorefrontCollection, in as CheckoutPricingRequest, ir as KnownPaymentStatus, it as StorefrontSessionOptions, j as deliveryTrackingSchema, ji as lineFulfillmentSchema, jn as memberConsentsSchema, jr as easyPayProviderSchema, jt as writableReviewSchema, k as OrderShippingAddress, ki as ProductFulfillmentView, kn as consentStateSchema, kr as deliveryQuoteSchema, kt as updateReviewResultSchema, l as addonGroupViewSchema, li as collectionProductSortSchema, ln as MyCoupon, lr as PaymentMessage, lt as ProductReviewParams, m as customInputViewSchema, mi as productSortSchema, mn as couponApplicationSchema, mr as PgProvider, mt as ReviewSummary, n as storefrontStoreSchema, ni as ProductSearchParams, nn as ApplicableCoupon, nr as KnownPaymentResult, nt as SessionStorage, o as CustomInputValueView, oi as categoryNodeSchema, on as CouponResult, or as PAYMENT_START_STATUS_VALUES, ot as CreateReviewRequest, p as customInputValueViewSchema, pi as productPageSchema, pn as couponApplicationListSchema, pr as PaymentStatus, pt as ReviewPage, q as analyticsBatchSchema, qn as CashReceiptRequest, qr as startPaymentRequestSchema, qt as createInquiryResultSchema, r as AddonGroupView, ri as ProductSort, rn as CheckoutPricing, rr as KnownPaymentStartStatus, rt as StorefrontSession, s as CustomInputView, si as collectionProductPageSchema, sn as MAX_COUPONS_PER_CHECKOUT, sr as PAYMENT_STATUS_VALUES, st as CreateReviewResult, t as StorefrontStore, ti as ProductPage, tn as customerInquirySchema, tr as GuestInfo, tt as STOREFRONT_SESSION_KEYS, u as addonSelectionSchema, ui as productCardSchema, un as applicableCouponSchema, ur as PaymentMethod, ut as ProductReviewSort, v as optionSelectionViewSchema, vi as ClaimStatus, vn as myCouponSchema, vr as ShippingAddressInput, vt as WritableReview, w as memberPointsSchema, wi as pageInfoSchema, wn as ConsentUpdateRequest, wr as cashReceiptTypeSchema, wt as publicReviewSchema, x as StorefrontPointPolicy, xi as PageParams, xn as ConsentKind, xr as cashReceiptAvailable, xt as myReviewSchema, y as MemberPointEntry, yi as OrderItemStatus, yn as pricingAmountsSchema, yr as StartPaymentRequest, yt as createReviewRequestSchema, z as ANALYTICS_SESSION_HEADER, zi as addCartItemRequestSchema, zn as claimReturnAddressSchema, zr as paymentStartSchema, zt as memberSchema } from "./index-HRjHR88p.mjs";
3
- export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, AddCartItemRequest, AddonGroupView, AddonSelection, AnalyticsBatch, AnalyticsClientEvent, AnalyticsClientEventName, AnalyticsEventName, AnalyticsServerEventName, AnonymousSession, ApiError, ApplicableCoupon, AvailablePaymentOption, CASH_RECEIPT_METHODS, Cart, CartItem, CashReceiptIdentityType, CashReceiptRequest, CashReceiptType, CategoryNode, CheckoutDelivery, CheckoutPricing, CheckoutPricingRequest, CheckoutSession, ClaimReason, ClaimReturnAddress, ClaimStatus, ClaimType, CollectionProductPage, CollectionProductParams, CollectionProductSortParam, ConsentAction, ConsentKind, ConsentSource, ConsentState, ConsentUpdateRequest, CouponApplication, CouponResult, CreateCheckoutRequest, CreateClaimRequest, CreateClaimResult, CreateCustomerInquiryRequest, CreateInquiryRequest, CreateInquiryResult, CreateReviewRequest, CreateReviewResult, CustomInputEntry, CustomInputValueView, CustomInputView, CustomerInquiry, CustomerInquiryCategory, DeliveryQuoteRequest, DeliveryQuoteResult, DeliveryTracking, EasyPayProvider, GuestInfo, IdpAgreements, IdpAuthorizeRequest, IdpTokenRequest, KnownPaymentResult, KnownPaymentStartStatus, KnownPaymentStatus, LineFulfillment, LinkIdentityRequest, LoginRequest, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, Member, MemberAddress, MemberAddressRequest, MemberConsents, MemberIdentities, MemberPointEntry, MemberPoints, MyClaim, MyCoupon, MyOrder, MyOrderItem, MyOrderItemFulfillmentSnapshot, MyReview, OptionSelectionView, OrderItemStatus, OrderShippingAddress, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, PageInfo, PageParams, PaymentFailureCategory, PaymentMessage, PaymentMethod, PaymentOption, PaymentStart, PaymentStatus, PgProvider, ProductCard, ProductCardFulfillment, ProductDetail, ProductFacets, ProductFulfillmentView, ProductInquiryCategory, ProductPage, ProductReviewParams, ProductReviewSort, ProductSearchParams, ProductSort, PublicInquiry, PublicReview, PurchaseDecisionResult, type Query, RemoteArea, ResponsePaymentMethod, RetryPaymentRequest, ReviewImageUploadRequest, ReviewPage, ReviewSummary, STOREFRONT_SESSION_KEYS, type SessionStorage, ShippingAddressInput, SignupRequest, SocialProvider, StartPaymentRequest, type StorefrontClient, type StorefrontClientOptions, StorefrontCollection, StorefrontCollectionDetail, StorefrontPointPolicy, type StorefrontSession, type StorefrontSessionOptions, StorefrontStore, TokenPair, type TokenSource, UnknownFulfillmentView, UpdateCartItemRequest, UpdateProfileRequest, UpdateReviewRequest, UpdateReviewResult, UploadTicket, WishlistAddResult, WithdrawRequest, WithdrawalBlockedDetails, WritableReview, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, 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, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, 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, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
2
+ import { $ as analyticsIdSchema, $n as CheckoutSession, $r as CollectionProductParams, $t as CreateCustomerInquiryRequest, A as PurchaseDecisionResult, Ai as MyOrderItemFulfillmentSnapshot, An as consentKindSchema, Ar as createCheckoutRequestSchema, At as reviewSummarySchema, B as ANALYTICS_MAX_BATCH_BYTES, Bi as CartItem, Bn as MyClaim, Br as paymentOptionListSchema, Bt as memberAddressRequestSchema, C as memberPointEntrySchema, Ci as PageInfo, Cn as ConsentAction, Cr as availablePaymentOptionSchema, Ct as createReviewResultSchema, D as MyOrder, Di as pageInfoSchema, Dn as ConsentUpdateRequest, Dr as cashReceiptTypeSchema, Dt as publicReviewSchema, E as DeliveryTracking, Ei as orderItemStatusSchema, En as ConsentState, Er as cashReceiptRequestSchema, Et as productReviewSortSchema, F as purchaseDecisionResultSchema, Fi as myOrderItemFulfillmentSnapshotSchema, Fn as ClaimReason, Fr as guestInfoSchema, Ft as Member, G as AnalyticsBatch, Gi as updateCartItemRequestSchema, Gn as createClaimResultSchema, Gr as remoteAreaSchema, Gt as CreateInquiryRequest, H as ANALYTICS_SESSION_HEADER, Hi as addCartItemRequestSchema, Hn as claimReturnAddressSchema, Hr as paymentStartSchema, Ht as memberSchema, I as trackingStageResponseSchema, Ii as productCardFulfillmentSchema, In as ClaimReturnAddress, Ir as paymentFailureCategorySchema, It as MemberAddress, J as AnalyticsEventName, Jn as CASH_RECEIPT_METHODS, Jr as retryPaymentRequestSchema, Jt as PublicInquiry, K as AnalyticsClientEvent, Ki as analyticsIdsFromCookie, Kn as myClaimSchema, Kr as residentNumberLike, Kt as CreateInquiryResult, L as commerceNumberField, Li as productFulfillmentViewSchema, Ln as ClaimType, Lr as paymentMessageSchema, Lt as MemberAddressRequest, M as myOrderItemSchema, Mi as ProductFulfillmentView, Mn as consentStateSchema, Mr as deliveryQuoteSchema, Mt as updateReviewResultSchema, N as myOrderSchema, Ni as UnknownFulfillmentView, Nn as consentUpdateRequestSchema, Nr as easyPayProviderResponseSchema, Nt as uploadTicketSchema, O as MyOrderItem, Oi as pageSchema, On as MemberConsents, Or as checkoutDeliverySchema, Ot as reviewImageUploadRequestSchema, P as orderShippingAddressSchema, Pi as lineFulfillmentSchema, Pn as memberConsentsSchema, Pr as easyPayProviderSchema, Pt as writableReviewSchema, Q as analyticsClientEventSchema, Qn as CheckoutDelivery, Qr as CollectionProductPage, Qt as publicInquirySchema, R as formatOrderNo, Ri as AddCartItemRequest, Rn as CreateClaimRequest, Rr as paymentMethodSchema, Rt as UpdateProfileRequest, S as memberPointEntryPageSchema, Si as OrderItemStatus, Sn as pricingAmountsSchema, Sr as StartPaymentRequest, St as createReviewRequestSchema, T as storefrontPointPolicySchema, Ti as claimStatusSchema, Tn as ConsentSource, Tr as cashReceiptIdentityTypeOf, Tt as productReviewQuerySchema, U as ANALYTICS_VISITOR_COOKIE, Ui as cartItemSchema, Un as claimTypeSchema, Ur as paymentStatusSchema, Ut as updateProfileRequestSchema, V as ANALYTICS_SESSION_COOKIE, Vi as UpdateCartItemRequest, Vn as claimReasonSchema, Vr as paymentOptionSchema, Vt as memberAddressSchema, W as ANALYTICS_VISITOR_HEADER, Wi as cartSchema, Wn as createClaimRequestSchema, Wr as pgProviderSchema, Wt as wishlistAddResultSchema, X as analyticsBatchSchema, Xn as CashReceiptRequest, Xr as startPaymentRequestSchema, Xt as createInquiryResultSchema, Y as AnalyticsServerEventName, Yn as CashReceiptIdentityType, Yr as shippingAddressInputSchema, Yt as createInquiryRequestSchema, Z as analyticsClientEventNameSchema, Zn as CashReceiptType, Zr as CategoryNode, Zt as productInquiryCategorySchema, _ as normalizeCustomInputValue, _i as productSortSchema, _n as couponApplicationSchema, _r as PgProvider, _t as ReviewSummary, a as CustomInputEntry, ai as ProductSearchParams, an as ApplicableCoupon, ar as KnownPaymentResult, at as SessionStorage, b as MemberPoints, bi as storefrontCollectionSchema, bn as myCouponListQuerySchema, br as RetryPaymentRequest, bt as UploadTicket, c as OptionSelectionView, ci as StorefrontCollectionDetail, cn as CouponApplication, cr as PAYMENT_RESULT_VALUES, ct as createStorefrontSession, d as customInputEntrySchema, di as collectionProductQuerySchema, dn as MIN_PAYMENT_AMOUNT, dr as PaymentFailureCategory, dt as MyReview, ei as CollectionProductSortParam, en as CustomerInquiry, er as CreateCheckoutRequest, et as analyticsServerEventNameSchema, f as customInputLength, fi as collectionProductSortSchema, fn as MyCoupon, fr as PaymentMessage, ft as ProductReviewParams, g as lineSelectionResponseShape, gi as productPageSchema, gn as couponApplicationListSchema, gr as PaymentStatus, gt as ReviewPage, h as lineSelectionRequestShape, hi as productFacetsSchema, hn as checkoutPricingSchema, hr as PaymentStart, ht as ReviewImageUploadRequest, i as AddonSelection, ii as ProductPage, in as customerInquirySchema, ir as GuestInfo, it as STOREFRONT_SESSION_KEYS, j as deliveryTrackingSchema, ji as ProductCardFulfillment, jn as consentSourceSchema, jr as deliveryQuoteRequestSchema, jt as updateReviewRequestSchema, k as OrderShippingAddress, ki as LineFulfillment, kn as consentActionSchema, kr as checkoutSessionSchema, kt as reviewPageSchema, l as addonGroupViewSchema, li as categoryNodeSchema, ln as CouponResult, lr as PAYMENT_START_STATUS_VALUES, lt as CreateReviewRequest, m as customInputViewSchema, mi as productDetailSchema, mn as checkoutPricingRequestSchema, mr as PaymentOption, mt as PublicReview, n as storefrontStoreSchema, ni as ProductDetail, nn as createCustomerInquiryRequestSchema, nr as DeliveryQuoteResult, nt as StorefrontClientOptions, o as CustomInputValueView, oi as ProductSort, on as CheckoutPricing, or as KnownPaymentStartStatus, ot as StorefrontSession, p as customInputValueViewSchema, pi as productCardSchema, pn as applicableCouponSchema, pr as PaymentMethod, pt as ProductReviewSort, q as AnalyticsClientEventName, qn as AvailablePaymentOption, qr as responsePaymentMethodSchema, qt as ProductInquiryCategory, r as AddonGroupView, ri as ProductFacets, rn as customerInquiryCategorySchema, rr as EasyPayProvider, rt as createStorefrontClient, s as CustomInputView, si as StorefrontCollection, sn as CheckoutPricingRequest, sr as KnownPaymentStatus, st as StorefrontSessionOptions, t as StorefrontStore, ti as ProductCard, tn as CustomerInquiryCategory, tr as DeliveryQuoteRequest, tt as StorefrontClient, u as addonSelectionSchema, ui as collectionProductPageSchema, un as MAX_COUPONS_PER_CHECKOUT, ur as PAYMENT_STATUS_VALUES, ut as CreateReviewResult, v as optionSelectionViewSchema, vi as storefrontCollectionDetailSchema, vn as couponBenefitViewSchema, vr as RemoteArea, vt as UpdateReviewRequest, w as memberPointsSchema, wi as PageParams, wn as ConsentKind, wr as cashReceiptAvailable, wt as myReviewSchema, x as StorefrontPointPolicy, xi as ClaimStatus, xn as myCouponSchema, xr as ShippingAddressInput, xt as WritableReview, y as MemberPointEntry, yi as storefrontCollectionListQuerySchema, yn as couponResultSchema, yr as ResponsePaymentMethod, yt as UpdateReviewResult, z as parseOrderNo, zi as Cart, zn as CreateClaimResult, zr as paymentOptionKey, zt as WishlistAddResult } from "./index-DbEcdwIb.mjs";
3
+ export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, AddCartItemRequest, AddonGroupView, AddonSelection, AnalyticsBatch, AnalyticsClientEvent, AnalyticsClientEventName, AnalyticsEventName, AnalyticsServerEventName, AnonymousSession, ApiError, ApplicableCoupon, AvailablePaymentOption, CASH_RECEIPT_METHODS, Cart, CartItem, CashReceiptIdentityType, CashReceiptRequest, CashReceiptType, CategoryNode, CheckoutDelivery, CheckoutPricing, CheckoutPricingRequest, CheckoutSession, ClaimReason, ClaimReturnAddress, ClaimStatus, ClaimType, CollectionProductPage, CollectionProductParams, CollectionProductSortParam, ConsentAction, ConsentKind, ConsentSource, ConsentState, ConsentUpdateRequest, CouponApplication, CouponResult, CreateCheckoutRequest, CreateClaimRequest, CreateClaimResult, CreateCustomerInquiryRequest, CreateInquiryRequest, CreateInquiryResult, CreateReviewRequest, CreateReviewResult, CustomInputEntry, CustomInputValueView, CustomInputView, CustomerInquiry, CustomerInquiryCategory, DeliveryQuoteRequest, DeliveryQuoteResult, DeliveryTracking, EasyPayProvider, GuestInfo, IdpAgreements, IdpAuthorizeRequest, IdpTokenRequest, KnownPaymentResult, KnownPaymentStartStatus, KnownPaymentStatus, LineFulfillment, LinkIdentityRequest, LoginRequest, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, Member, MemberAddress, MemberAddressRequest, MemberConsents, MemberIdentities, MemberPointEntry, MemberPoints, MyClaim, MyCoupon, MyOrder, MyOrderItem, MyOrderItemFulfillmentSnapshot, MyReview, OptionSelectionView, OrderItemStatus, OrderShippingAddress, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, PageInfo, PageParams, PaymentFailureCategory, PaymentMessage, PaymentMethod, PaymentOption, PaymentStart, PaymentStatus, PgProvider, ProductCard, ProductCardFulfillment, ProductDetail, ProductFacets, ProductFulfillmentView, ProductInquiryCategory, ProductPage, ProductReviewParams, ProductReviewSort, ProductSearchParams, ProductSort, PublicInquiry, PublicReview, PurchaseDecisionResult, type Query, RemoteArea, ResponsePaymentMethod, RetryPaymentRequest, ReviewImageUploadRequest, ReviewPage, ReviewSummary, STOREFRONT_SESSION_KEYS, type SessionStorage, ShippingAddressInput, SignupRequest, SocialProvider, StartPaymentRequest, type StorefrontClient, type StorefrontClientOptions, StorefrontCollection, StorefrontCollectionDetail, StorefrontPointPolicy, type StorefrontSession, type StorefrontSessionOptions, StorefrontStore, TokenPair, type TokenSource, UnknownFulfillmentView, UpdateCartItemRequest, UpdateProfileRequest, UpdateReviewRequest, UpdateReviewResult, UploadTicket, WishlistAddResult, WithdrawRequest, WithdrawalBlockedDetails, WritableReview, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, formatOrderNo, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderItemStatusSchema, orderShippingAddressSchema, pageInfoSchema, pageSchema, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
package/dist/index.mjs CHANGED
@@ -1,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 collectionProductSortSchema, A as wishlistAddResultSchema, At as buildQuery, B as consentSourceSchema, C as orderShippingAddressSchema, Ct as memberIdentitiesSchema, D as memberAddressSchema, Dt as withdrawRequestSchema, E as memberAddressRequestSchema, Et as tokenPairSchema, F as createCustomerInquiryRequestSchema, G as claimReturnAddressSchema, H as consentUpdateRequestSchema, I as customerInquiryCategorySchema, J as createClaimResultSchema, K as claimTypeSchema, L as customerInquirySchema, M as createInquiryResultSchema, Mt as unwrapData, N as productInquiryCategorySchema, O as memberSchema, Ot as withdrawalBlockedDetailsSchema, P as publicInquirySchema, Q as collectionProductQuerySchema, R as consentActionSchema, S as myOrderSchema, St as loginRequestSchema, T as trackingStageResponseSchema, Tt as socialProviderSchema, U as memberConsentsSchema, V as consentStateSchema, W as claimReasonSchema, X as categoryNodeSchema, Y as myClaimSchema, Z as collectionProductPageSchema, _ as memberPointEntrySchema, _t as idpAgreementsSchema, a as myReviewSchema, at as storefrontCollectionDetailSchema, b as deliveryTrackingSchema, bt as idpTokenRequestSchema, c as publicReviewSchema, ct as claimStatusSchema, d as reviewSummarySchema, dt as pageSchema, et as productCardSchema, f as updateReviewRequestSchema, ft as addCartItemRequestSchema, g as memberPointEntryPageSchema, gt as anonymousSessionSchema, h as writableReviewSchema, ht as updateCartItemRequestSchema, i as createReviewResultSchema, it as productSortSchema, j as createInquiryRequestSchema, jt as toApiError, k as updateProfileRequestSchema, kt as ApiError, l as reviewImageUploadRequestSchema, lt as orderItemStatusSchema, m as uploadTicketSchema, mt as cartSchema, n as storefrontStoreSchema, nt as productFacetsSchema, o as productReviewQuerySchema, ot as storefrontCollectionListQuerySchema, p as updateReviewResultSchema, pt as cartItemSchema, q as createClaimRequestSchema, r as createReviewRequestSchema, rt as productPageSchema, s as productReviewSortSchema, st as storefrontCollectionSchema, t as createStorefrontClient, tt as productDetailSchema, u as reviewPageSchema, ut as pageInfoSchema, v as memberPointsSchema, vt as idpAuthorizeRequestSchema, w as purchaseDecisionResultSchema, wt as signupRequestSchema, x as myOrderItemSchema, xt as linkIdentityRequestSchema, y as storefrontPointPolicySchema, yt as idpAuthorizeResponseSchema, z as consentKindSchema } from "./client-jWHy65r6.mjs";
3
+ import { $ as categoryNodeSchema, A as wishlistAddResultSchema, At as withdrawRequestSchema, B as consentSourceSchema, C as orderShippingAddressSchema, Ct as idpTokenRequestSchema, D as memberAddressSchema, Dt as signupRequestSchema, E as memberAddressRequestSchema, Et as memberIdentitiesSchema, F as createCustomerInquiryRequestSchema, Ft as unwrapData, G as claimReturnAddressSchema, H as consentUpdateRequestSchema, I as customerInquiryCategorySchema, J as createClaimResultSchema, K as claimTypeSchema, L as customerInquirySchema, M as createInquiryResultSchema, Mt as ApiError, N as productInquiryCategorySchema, Nt as buildQuery, O as memberSchema, Ot as socialProviderSchema, P as publicInquirySchema, Pt as toApiError, Q as parseOrderNo, R as consentActionSchema, S as myOrderSchema, St as idpAuthorizeResponseSchema, T as trackingStageResponseSchema, Tt as loginRequestSchema, U as memberConsentsSchema, V as consentStateSchema, W as claimReasonSchema, X as commerceNumberField, Y as myClaimSchema, Z as formatOrderNo, _ as memberPointEntrySchema, _t as cartSchema, a as myReviewSchema, at as productFacetsSchema, b as deliveryTrackingSchema, bt as idpAgreementsSchema, c as publicReviewSchema, ct as storefrontCollectionDetailSchema, d as reviewSummarySchema, dt as claimStatusSchema, et as collectionProductPageSchema, f as updateReviewRequestSchema, ft as orderItemStatusSchema, g as memberPointEntryPageSchema, gt as cartItemSchema, h as writableReviewSchema, ht as addCartItemRequestSchema, i as createReviewResultSchema, it as productDetailSchema, j as createInquiryRequestSchema, jt as withdrawalBlockedDetailsSchema, k as updateProfileRequestSchema, kt as tokenPairSchema, l as reviewImageUploadRequestSchema, lt as storefrontCollectionListQuerySchema, m as uploadTicketSchema, mt as pageSchema, n as storefrontStoreSchema, nt as collectionProductSortSchema, o as productReviewQuerySchema, ot as productPageSchema, p as updateReviewResultSchema, pt as pageInfoSchema, q as createClaimRequestSchema, r as createReviewRequestSchema, rt as productCardSchema, s as productReviewSortSchema, st as productSortSchema, t as createStorefrontClient, tt as collectionProductQuerySchema, u as reviewPageSchema, ut as storefrontCollectionSchema, v as memberPointsSchema, vt as updateCartItemRequestSchema, w as purchaseDecisionResultSchema, wt as linkIdentityRequestSchema, x as myOrderItemSchema, xt as idpAuthorizeRequestSchema, y as storefrontPointPolicySchema, yt as anonymousSessionSchema, z as consentKindSchema } from "./client-BGthSJZn.mjs";
4
4
  import { $ as normalizeCustomInputValue, A as retryPaymentRequestSchema, B as couponBenefitViewSchema, C as paymentOptionSchema, D as remoteAreaSchema, E as pgProviderSchema, F as applicableCouponSchema, G as addonGroupViewSchema, H as myCouponListQuerySchema, I as checkoutPricingRequestSchema, J as customInputLength, K as addonSelectionSchema, L as checkoutPricingSchema, M as startPaymentRequestSchema, N as MAX_COUPONS_PER_CHECKOUT, O as residentNumberLike, P as MIN_PAYMENT_AMOUNT, Q as lineSelectionResponseShape, R as couponApplicationListSchema, S as paymentOptionListSchema, T as paymentStatusSchema, U as myCouponSchema, V as couponResultSchema, W as pricingAmountsSchema, X as customInputViewSchema, Y as customInputValueViewSchema, Z as lineSelectionRequestShape, _ as guestInfoSchema, a as availablePaymentOptionSchema, b as paymentMethodSchema, c as cashReceiptRequestSchema, d as checkoutSessionSchema, et as optionSelectionViewSchema, f as createCheckoutRequestSchema, g as easyPayProviderSchema, h as easyPayProviderResponseSchema, i as PAYMENT_STATUS_VALUES, it as productFulfillmentViewSchema, j as shippingAddressInputSchema, k as responsePaymentMethodSchema, l as cashReceiptTypeSchema, m as deliveryQuoteSchema, n as PAYMENT_RESULT_VALUES, nt as myOrderItemFulfillmentSnapshotSchema, o as cashReceiptAvailable, p as deliveryQuoteRequestSchema, q as customInputEntrySchema, r as PAYMENT_START_STATUS_VALUES, rt as productCardFulfillmentSchema, s as cashReceiptIdentityTypeOf, t as CASH_RECEIPT_METHODS, tt as lineFulfillmentSchema, u as checkoutDeliverySchema, v as paymentFailureCategorySchema, w as paymentStartSchema, x as paymentOptionKey, y as paymentMessageSchema, z as couponApplicationSchema } from "./checkout-D-cg8lLE.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, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, STOREFRONT_SESSION_KEYS, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, 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, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, 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, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
128
+ export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, ApiError, CASH_RECEIPT_METHODS, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, STOREFRONT_SESSION_KEYS, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, formatOrderNo, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderItemStatusSchema, orderShippingAddressSchema, pageInfoSchema, pageSchema, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
@@ -1,4 +1,4 @@
1
- import { dr as PaymentOption, et as createStorefrontClient, fr as PaymentStart, pr as PaymentStatus, qn as CashReceiptRequest, tr as GuestInfo, vr as ShippingAddressInput, yr as StartPaymentRequest } from "../index-HRjHR88p.mjs";
1
+ import { Sr as StartPaymentRequest, Xn as CashReceiptRequest, gr as PaymentStatus, hr as PaymentStart, ir as GuestInfo, mr as PaymentOption, rt as createStorefrontClient, xr as ShippingAddressInput } from "../index-DbEcdwIb.mjs";
2
2
  //#region src/payments/index.d.ts
3
3
  /**
4
4
  * 스토어프론트 결제 — 브라우저 전용(`@sayren/storefront-sdk/payments`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sayren/storefront-sdk",
3
- "version": "0.20.3",
3
+ "version": "0.20.5",
4
4
  "main": "./dist/index.mjs",
5
5
  "types": "./dist/index.d.mts",
6
6
  "exports": {
package/src/client.ts CHANGED
@@ -257,6 +257,7 @@ export function createStorefrontClient(options: StorefrontClientOptions) {
257
257
  getPointPolicy: () => http.request("GET", "/point-policy", storefrontPointPolicySchema),
258
258
  searchProducts: (params?: ProductSearchParams) =>
259
259
  http.request("GET", "/products", productPageSchema, { query: params as Query }),
260
+ /** `GET /products/{productId}` — 상품 id(`prod_…`) 또는 숫자 상품번호(`productNo`, 이슈 #107). 번호는 문자열로 넘긴다 */
260
261
  getProduct: (productId: string) =>
261
262
  http.request("GET", path`/products/${productId}`, productDetailSchema),
262
263
  /** 상품 리뷰 목록 — `variantId`로 옵션(조합)별 리뷰만 받는다(상품 상세 `variants[].variantId`) */
@@ -378,7 +379,7 @@ export function createStorefrontClient(options: StorefrontClientOptions) {
378
379
  http.request("GET", "/me/orders", pageSchema(myOrderSchema), { query: params as Query }),
379
380
  get: (orderId: string) => http.request("GET", path`/me/orders/${orderId}`, myOrderSchema),
380
381
  /**
381
- * 비회원 주문 조회 — 주문번호 + 주문할 때 적은 연락처·주문 조회 비밀번호.
382
+ * 비회원 주문 조회 — 주문 id(`ord_…`) 또는 숫자 주문번호(`orderNo`, 하이픈 허용, 이슈 #107) + 주문할 때 적은 연락처·주문 조회 비밀번호.
382
383
  *
383
384
  * 에러: 404 `ORDER_NOT_FOUND`(주문이 없거나 연락처·비밀번호가 다름 — 둘을 구분하지 않는다) ·
384
385
  * 429 `TOO_MANY_REQUESTS`(주문번호마다 10분에 5번까지 확인하고, 5번째가 틀리면 30분 잠금.
package/src/index.ts CHANGED
@@ -9,6 +9,7 @@ export * from "./schemas/cart";
9
9
  export * from "./schemas/catalog";
10
10
  export * from "./schemas/checkout";
11
11
  export * from "./schemas/claim";
12
+ export * from "./schemas/commerce-number";
12
13
  export * from "./schemas/common";
13
14
  export * from "./schemas/consent";
14
15
  export * from "./schemas/coupon";
@@ -5,6 +5,15 @@ import { lineSelectionRequestShape, lineSelectionResponseShape } from "./product
5
5
  export const cartItemSchema = z.object({
6
6
  cartItemId: z.string(),
7
7
  productId: z.string(),
8
+ productNo: z
9
+ .number()
10
+ .int()
11
+ .nullable()
12
+ .optional()
13
+ .default(null)
14
+ .describe(
15
+ "상품번호(이슈 #107) — 상품 주소(`/products/{productNo}`)에 씁니다. 장바구니 요청에는 계속 `productId`를 보냅니다. 옛 응답은 null",
16
+ ),
8
17
  productName: z.string(),
9
18
  thumbnailUrl: z.url().nullable().describe("담은 상품의 대표 이미지. 없으면 null"),
10
19
  optionId: z.string().nullable(),
@@ -21,6 +21,15 @@ export const categoryNodeSchema: z.ZodType<CategoryNode> = z.lazy(() =>
21
21
 
22
22
  export const productCardSchema = z.object({
23
23
  productId: z.string(),
24
+ productNo: z
25
+ .number()
26
+ .int()
27
+ .nullable()
28
+ .optional()
29
+ .default(null)
30
+ .describe(
31
+ "상품번호(이슈 #107) — 상점별 1부터 증가하는 숫자, 상점 안에서 유일, 생성 후 바뀌지 않습니다. 상품 주소에 쓰십시오(`GET /products/{productNo}`). 번호 체계 이전 응답은 null",
32
+ ),
24
33
  name: z.string(),
25
34
  thumbnailUrl: z.url().nullable().describe("대표 이미지 주소. 등록된 이미지가 없으면 null"),
26
35
  salePrice: z
@@ -81,6 +90,14 @@ export const productDetailSchema = productCardSchema.extend({
81
90
  variants: z.array(
82
91
  z.object({
83
92
  variantId: z.string(),
93
+ variantNo: z
94
+ .string()
95
+ .nullable()
96
+ .optional()
97
+ .default(null)
98
+ .describe(
99
+ "조합 번호(이슈 #107) — `{productNo}-{조합 순번 2자리}`(예: `10482-03`). 시스템이 매기는 SKU이고 상점 안에서 유일합니다. 생성 후 바뀌지 않으며, 지운 조합의 번호는 다시 쓰지 않습니다. 셀러가 입력하는 `sku`와 별개입니다",
100
+ ),
84
101
  /** optionGroups 순서와 1:1 대응. 옵션 없는 상품은 [] */
85
102
  valueIds: z.array(z.string()),
86
103
  /** 값 이름을 " / "로 이은 표시명. 옵션 없으면 "" */
@@ -105,6 +122,17 @@ export const productDetailSchema = productCardSchema.extend({
105
122
  ),
106
123
  fulfillment: productFulfillmentViewSchema,
107
124
  returnPeriodDays: z.number().int().describe("반품·교환을 받는 기간(수령·제공일부터 일수)"),
125
+ purchasePoint: z
126
+ .number()
127
+ .int()
128
+ .nullable()
129
+ .optional()
130
+ .default(null)
131
+ .describe(
132
+ "구매 적립 예정액(원, 이슈 #93). 상품 1개를 지금 가격(`discountedPrice ?? salePrice`, 옵션 추가금·쿠폰·배송비 제외)으로 샀을 때 " +
133
+ "구매확정 뒤 받는 적립금이다. 상점 구매 적립률과 상품별 적립률로 서버가 계산한다. 구매 적립이 꺼져 있거나 적립 안 함 상품, " +
134
+ "계산값이 0원이면 null이다. 적립은 회원 주문만 받는다. 화면은 값이 있을 때 「구매 시 n원 적립」으로 그대로 보이면 된다",
135
+ ),
108
136
  categoryPath: z.array(z.object({ categoryId: z.string(), name: z.string() })),
109
137
  });
110
138
 
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { commerceNumberField } from "./commerce-number";
2
3
  import { claimStatusSchema } from "./common";
3
4
 
4
5
  export const claimTypeSchema = z.enum(["CANCEL", "RETURN", "EXCHANGE"]);
@@ -36,6 +37,9 @@ export type CreateClaimRequest = z.infer<typeof createClaimRequestSchema>;
36
37
 
37
38
  export const createClaimResultSchema = z.object({
38
39
  claimId: z.string(),
40
+ claimNo: commerceNumberField(
41
+ "클레임번호(이슈 #107) — `C` + YYMMDD(KST) + 숫자 8자리. 취소·반품·교환 접수 단위 번호이고 생성 후 바뀌지 않습니다",
42
+ ),
39
43
  status: z.literal("REQUESTED"),
40
44
  expectedRefundAmount: z
41
45
  .number()
@@ -104,6 +108,9 @@ export type ClaimReturnAddress = z.infer<typeof claimReturnAddressSchema>;
104
108
 
105
109
  export const myClaimSchema = z.object({
106
110
  claimId: z.string(),
111
+ claimNo: commerceNumberField(
112
+ "클레임번호(이슈 #107) — `C` + YYMMDD(KST) + 숫자 8자리. 취소·반품·교환 접수 단위 번호이고 생성 후 바뀌지 않습니다",
113
+ ),
107
114
  type: claimTypeSchema,
108
115
  status: claimStatusSchema,
109
116
  orderItemId: z.string(),
@@ -0,0 +1,28 @@
1
+ import { z } from "zod";
2
+
3
+ /**
4
+ * 국내 쇼핑몰 번호 체계(이슈 #107) — 공개 ID(`ord_…` 등)와 따로 싣는 숫자 번호의 표기·필드.
5
+ * 번호는 서버가 만들고 생성 후 바뀌지 않는다. 새 필드라 옛 서버 응답에는 없다 — 파싱은 null로 채운다.
6
+ */
7
+
8
+ /**
9
+ * 번호 표기 — 숫자를 앞에서부터 4자리씩 하이픈으로 나눈다. 주문번호 `26100284731592` → `2610-0284-7315-92`,
10
+ * 상품주문번호 `2610028473159201` → `2610-0284-7315-9201`. 숫자만으로 된 값이 아니면(클레임번호 `C…`) 그대로, 없으면 빈 문자열이다.
11
+ * 화면 표기 전용이다 — API에 보낼 때는 원래 값을 쓴다(주문번호 조회는 하이픈도 받는다)
12
+ */
13
+ export function formatOrderNo(no: string | null | undefined): string {
14
+ if (!no) return "";
15
+ if (!/^\d+$/.test(no)) return no;
16
+ return no.match(/.{1,4}/g)?.join("-") ?? no;
17
+ }
18
+
19
+ /** 표기 하이픈·공백을 지운 숫자 번호. 숫자가 아닌 글자가 남거나 비면 null */
20
+ export function parseOrderNo(value: string): string | null {
21
+ const digits = value.replace(/[\s-]/g, "");
22
+ return /^\d+$/.test(digits) ? digits : null;
23
+ }
24
+
25
+ /** 응답 번호 필드 — 서버는 항상 싣고, 번호 체계 이전 행(백필 전)·옛 서버 응답은 null이다 */
26
+ export function commerceNumberField(description: string) {
27
+ return z.string().nullable().optional().default(null).describe(description);
28
+ }
@@ -1,11 +1,15 @@
1
1
  import { z } from "zod";
2
2
  import { easyPayProviderResponseSchema, responsePaymentMethodSchema } from "./checkout";
3
+ import { commerceNumberField } from "./commerce-number";
3
4
  import { orderItemStatusSchema } from "./common";
4
5
  import { myOrderItemFulfillmentSnapshotSchema } from "./fulfillment";
5
6
  import { lineSelectionResponseShape } from "./product-options";
6
7
 
7
8
  export const myOrderItemSchema = z.object({
8
9
  orderItemId: z.string(),
10
+ orderItemNo: commerceNumberField(
11
+ "상품주문번호(이슈 #107) — 주문번호 + 줄 순번 2자리. 취소·반품·교환 문의에 쓰는 번호입니다",
12
+ ),
9
13
  productId: z.string(),
10
14
  productName: z.string(),
11
15
  thumbnailUrl: z.url().nullable().describe("주문 시점의 대표 이미지. 없었으면 null"),
@@ -89,6 +93,9 @@ export type OrderShippingAddress = z.infer<typeof orderShippingAddressSchema>;
89
93
 
90
94
  export const myOrderSchema = z.object({
91
95
  orderId: z.string(),
96
+ orderNo: commerceNumberField(
97
+ "주문번호(이슈 #107) — 숫자 14자리, 생성 후 바뀌지 않습니다. 구매자 화면에는 `formatOrderNo`(4자리 하이픈)로 표시하십시오. 비회원 주문 조회 경로에도 쓸 수 있습니다",
98
+ ),
92
99
  orderedAt: z.string(),
93
100
  items: z.array(myOrderItemSchema),
94
101
  requiresShipping: z