@sayren/storefront-sdk 0.20.6 → 0.20.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/index.mjs +1 -1
- package/dist/{checkout-CE-r7SFw.mjs → checkout-Bt6j2eDw.mjs} +36 -2
- package/dist/{client-D8DDKutm.mjs → client-Dn_JdIqv.mjs} +14 -1
- package/dist/{index-Ca0AyapE.d.mts → index-atHaDBC3.d.mts} +115 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +3 -3
- package/dist/payments/index.d.mts +1 -1
- package/dist/payments/index.mjs +1 -1
- package/package.json +1 -1
- package/src/client.ts +19 -0
- package/src/schemas/coupon.ts +73 -0
package/dist/auth/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mt as ApiError, t as createStorefrontClient } from "../client-
|
|
1
|
+
import { Mt as ApiError, t as createStorefrontClient } from "../client-Dn_JdIqv.mjs";
|
|
2
2
|
//#region src/auth/index.ts
|
|
3
3
|
/** 소셜 로그인 실패 — 구매자가 취소했거나(`access_denied`) state가 맞지 않는다 */
|
|
4
4
|
var IdpCallbackError = class extends Error {
|
|
@@ -234,13 +234,47 @@ const myCouponSchema = z.object({
|
|
|
234
234
|
validFrom: z.string(),
|
|
235
235
|
validUntil: z.string().nullable(),
|
|
236
236
|
usedOrderId: z.string().nullable(),
|
|
237
|
-
issuedAt: z.string()
|
|
237
|
+
issuedAt: z.string(),
|
|
238
|
+
source: z.string().optional().describe("받은 경로(이슈 #110). 현재 값은 `MANUAL`(셀러 지급)·`DOWNLOAD`(직접 받음)·`SIGNUP`(회원가입 축하)이고 값이 늘 수 있다. 서버는 항상 싣는다")
|
|
238
239
|
});
|
|
239
240
|
const myCouponListQuerySchema = z.object({ status: z.enum([
|
|
240
241
|
"available",
|
|
241
242
|
"used",
|
|
242
243
|
"expired"
|
|
243
244
|
]).optional().describe("`available`=사용 가능(결제 중 포함), `used`=사용함, `expired`=기간 지남. 생략하면 전부") });
|
|
245
|
+
/**
|
|
246
|
+
* 받을 수 있는 쿠폰 (이슈 #110) — `GET /coupons`. 셀러가 「다운로드」 방식으로 만든 쿠폰 중 지금 받을 수 있는 것
|
|
247
|
+
* (사용 중, 기간 안, 총 발급 한도가 남음)이다. 받은 쿠폰은 내 쿠폰(`GET /me/coupons`)과 주문서의 적용 가능 쿠폰에 그대로 뜬다.
|
|
248
|
+
*/
|
|
249
|
+
const storefrontCouponTargetSchema = z.object({
|
|
250
|
+
allProducts: z.boolean().describe("전 상품 대상인가(포함 목록이 비어 있다). 제외 목록은 따로 본다"),
|
|
251
|
+
includeProductIds: z.array(z.string()).describe("대상 상품 id"),
|
|
252
|
+
includeCategoryIds: z.array(z.string()).describe("대상 카테고리 id. 하위 카테고리 상품도 대상이다"),
|
|
253
|
+
excludeProductIds: z.array(z.string()).describe("제외 상품 id. 포함보다 우선한다"),
|
|
254
|
+
excludeCategoryIds: z.array(z.string()).describe("제외 카테고리 id. 포함보다 우선한다")
|
|
255
|
+
});
|
|
256
|
+
const storefrontCouponSchema = z.object({
|
|
257
|
+
couponId: z.string(),
|
|
258
|
+
name: z.string(),
|
|
259
|
+
description: z.string().nullable(),
|
|
260
|
+
kind: z.string().describe("쿠폰 종류. 현재 값은 `ORDER`(주문 쿠폰)·`PRODUCT`(상품 쿠폰)"),
|
|
261
|
+
benefit: couponBenefitViewSchema,
|
|
262
|
+
minOrderAmount: z.number().int().describe("최소 주문 금액(원). 0이면 조건 없음"),
|
|
263
|
+
stackWithInstantDiscount: z.boolean().describe("즉시할인 중인 상품에도 쓰는가. false면 할인 중인 상품에는 적용되지 않는다"),
|
|
264
|
+
target: storefrontCouponTargetSchema,
|
|
265
|
+
startsAt: z.string().nullable().describe("사용 시작 시각. 없으면 null"),
|
|
266
|
+
endsAt: z.string().nullable().describe("사용 종료 시각(이 시각부터 받거나 쓸 수 없다). 없으면 null"),
|
|
267
|
+
validDaysAfterIssue: z.number().int().nullable().describe("받은 뒤 유효 일수. 쿠폰 종료 시각과 둘 중 먼저 끝나는 쪽이 적용된다. 없으면 null"),
|
|
268
|
+
perMemberIssueLimit: z.number().int().describe("1인이 받을 수 있는 장수"),
|
|
269
|
+
loginRequired: z.boolean().describe("받으려면 로그인이 필요한가 — 회원 토큰 없이 부르면 true"),
|
|
270
|
+
downloaded: z.boolean().nullable().describe("이미 받았는가(회수되지 않은 발급이 있다). 회원 토큰이 없으면 null"),
|
|
271
|
+
downloadable: z.boolean().nullable().describe("지금 더 받을 수 있는가(1인 장수가 남았다). 회원 토큰이 없으면 null")
|
|
272
|
+
});
|
|
273
|
+
const storefrontCouponListQuerySchema = z.object({
|
|
274
|
+
productId: z.string().optional().describe("이 상품에 쓸 수 있는 쿠폰만(대상 상품·카테고리 기준). 주문 쿠폰은 제외 대상이 아니면 싣는다"),
|
|
275
|
+
page: z.string().optional().describe("페이지 번호 (1부터, 기본 1)"),
|
|
276
|
+
size: z.string().optional().describe("페이지 크기 (기본 20, 최대 100)")
|
|
277
|
+
});
|
|
244
278
|
//#endregion
|
|
245
279
|
//#region src/schemas/checkout.ts
|
|
246
280
|
const createCheckoutRequestSchema = z.object({
|
|
@@ -588,4 +622,4 @@ const paymentMessageSchema = z.object({
|
|
|
588
622
|
orderId: z.string().optional()
|
|
589
623
|
});
|
|
590
624
|
//#endregion
|
|
591
|
-
export {
|
|
625
|
+
export { customInputViewSchema as $, retryPaymentRequestSchema as A, couponBenefitViewSchema as B, paymentOptionSchema as C, remoteAreaSchema as D, pgProviderSchema as E, applicableCouponSchema as F, storefrontCouponListQuerySchema as G, myCouponListQuerySchema as H, checkoutPricingRequestSchema as I, addonGroupViewSchema as J, storefrontCouponSchema as K, checkoutPricingSchema as L, startPaymentRequestSchema as M, MAX_COUPONS_PER_CHECKOUT as N, residentNumberLike as O, MIN_PAYMENT_AMOUNT as P, customInputValueViewSchema as Q, couponApplicationListSchema as R, paymentOptionListSchema as S, paymentStatusSchema as T, myCouponSchema as U, couponResultSchema as V, pricingAmountsSchema as W, customInputEntrySchema as X, addonSelectionSchema as Y, customInputLength as Z, guestInfoSchema as _, availablePaymentOptionSchema as a, myOrderItemFulfillmentSnapshotSchema as at, paymentMethodSchema as b, cashReceiptRequestSchema as c, checkoutSessionSchema as d, lineSelectionRequestShape as et, createCheckoutRequestSchema as f, easyPayProviderSchema as g, easyPayProviderResponseSchema as h, PAYMENT_STATUS_VALUES as i, lineFulfillmentSchema as it, shippingAddressInputSchema as j, responsePaymentMethodSchema as k, cashReceiptTypeSchema as l, deliveryQuoteSchema as m, PAYMENT_RESULT_VALUES as n, normalizeCustomInputValue as nt, cashReceiptAvailable as o, productCardFulfillmentSchema as ot, deliveryQuoteRequestSchema as p, storefrontCouponTargetSchema as q, PAYMENT_START_STATUS_VALUES as r, optionSelectionViewSchema as rt, cashReceiptIdentityTypeOf as s, productFulfillmentViewSchema as st, CASH_RECEIPT_METHODS as t, lineSelectionResponseShape as tt, checkoutDeliverySchema as u, paymentFailureCategorySchema as v, paymentStartSchema as w, paymentOptionKey as x, paymentMessageSchema as y, couponApplicationSchema as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as ANALYTICS_VISITOR_HEADER, r as ANALYTICS_SESSION_HEADER } from "./analytics-CgD70OqH.mjs";
|
|
2
|
-
import { A as retryPaymentRequestSchema, F as applicableCouponSchema,
|
|
2
|
+
import { $ as customInputViewSchema, A as retryPaymentRequestSchema, F as applicableCouponSchema, I as checkoutPricingRequestSchema, J as addonGroupViewSchema, K as storefrontCouponSchema, L as checkoutPricingSchema, M as startPaymentRequestSchema, T as paymentStatusSchema, U as myCouponSchema, at as myOrderItemFulfillmentSnapshotSchema, d as checkoutSessionSchema, et as lineSelectionRequestShape, f as createCheckoutRequestSchema, h as easyPayProviderResponseSchema, it as lineFulfillmentSchema, k as responsePaymentMethodSchema, m as deliveryQuoteSchema, ot as productCardFulfillmentSchema, p as deliveryQuoteRequestSchema, st as productFulfillmentViewSchema, tt as lineSelectionResponseShape, w as paymentStartSchema } from "./checkout-Bt6j2eDw.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/http.ts
|
|
5
5
|
/** 표준 엔벨로프의 $.error 상세 */
|
|
@@ -1054,6 +1054,11 @@ get: () => http.request("GET", "/store", storefrontStoreSchema) },
|
|
|
1054
1054
|
createInquiry: (productId, body) => http.requestVoid("POST", path`/products/${productId}/inquiries`, { body }),
|
|
1055
1055
|
/** 노출 중인 컬렉션(노출 켜짐 + 기간 안) — 셀러가 정한 순서 */
|
|
1056
1056
|
listCollections: (params) => http.request("GET", "/collections", pageSchema(storefrontCollectionSchema), { query: params }),
|
|
1057
|
+
/**
|
|
1058
|
+
* `GET /coupons` — 지금 받을 수 있는 쿠폰(이슈 #110). `productId`를 주면 그 상품에 쓸 수 있는 쿠폰만 싣는다.
|
|
1059
|
+
* 회원 토큰이 있으면 항목마다 `downloaded`·`downloadable`을 싣는다. 받기는 `me.downloadCoupon`이다
|
|
1060
|
+
*/
|
|
1061
|
+
listCoupons: (params) => http.request("GET", "/coupons", pageSchema(storefrontCouponSchema), { query: params }),
|
|
1057
1062
|
/** 숨김·기간 밖·없음은 모두 404 `COLLECTION_NOT_FOUND` */
|
|
1058
1063
|
getCollection: (slug) => http.request("GET", path`/collections/${slug}`, storefrontCollectionDetailSchema),
|
|
1059
1064
|
/** 컬렉션 상품(판매 중만). `sort`를 생략하면 컬렉션의 기본 정렬이다 */
|
|
@@ -1172,6 +1177,14 @@ get: () => http.request("GET", "/store", storefrontStoreSchema) },
|
|
|
1172
1177
|
me: {
|
|
1173
1178
|
/** `GET /me/coupons` — 내 쿠폰(이슈 #47). `status`로 사용 가능·사용함·기간 지남을 거른다 */
|
|
1174
1179
|
coupons: (params) => http.request("GET", "/me/coupons", z.array(myCouponSchema), { query: params }),
|
|
1180
|
+
/**
|
|
1181
|
+
* `POST /coupons/{couponId}/download` — 쿠폰 받기(이슈 #110, 회원 전용). 받은 쿠폰 한 장(내 쿠폰 항목)을 돌려준다.
|
|
1182
|
+
*
|
|
1183
|
+
* 에러(`ApiError.code`): 401 `UNAUTHORIZED`, 404 `COUPON_NOT_FOUND`(없음·중지·종료·다운로드 쿠폰 아님),
|
|
1184
|
+
* 409 `COUPON_ALREADY_DOWNLOADED`(1인 장수를 다 받음)·`COUPON_SOLD_OUT`(총 발급 한도 소진)·`COUPON_NOT_STARTED`·
|
|
1185
|
+
* `COUPON_EXPIRED`·`COUPONS_UNAVAILABLE`, 429 `TOO_MANY_REQUESTS`
|
|
1186
|
+
*/
|
|
1187
|
+
downloadCoupon: (couponId) => http.request("POST", path`/coupons/${couponId}/download`, myCouponSchema),
|
|
1175
1188
|
customerInquiries: {
|
|
1176
1189
|
create: (body) => http.request("POST", "/me/customer-inquiries", customerInquirySchema, { body: createCustomerInquiryRequestSchema.parse(body) }),
|
|
1177
1190
|
list: (params) => http.request("GET", "/me/customer-inquiries", pageSchema(customerInquirySchema), { query: params }),
|
|
@@ -1534,6 +1534,7 @@ declare const myCouponSchema: z.ZodObject<{
|
|
|
1534
1534
|
validUntil: z.ZodNullable<z.ZodString>;
|
|
1535
1535
|
usedOrderId: z.ZodNullable<z.ZodString>;
|
|
1536
1536
|
issuedAt: z.ZodString;
|
|
1537
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1537
1538
|
}, z.core.$strip>;
|
|
1538
1539
|
type MyCoupon = z.infer<typeof myCouponSchema>;
|
|
1539
1540
|
declare const myCouponListQuerySchema: z.ZodObject<{
|
|
@@ -1543,6 +1544,55 @@ declare const myCouponListQuerySchema: z.ZodObject<{
|
|
|
1543
1544
|
used: "used";
|
|
1544
1545
|
}>>;
|
|
1545
1546
|
}, z.core.$strip>;
|
|
1547
|
+
/**
|
|
1548
|
+
* 받을 수 있는 쿠폰 (이슈 #110) — `GET /coupons`. 셀러가 「다운로드」 방식으로 만든 쿠폰 중 지금 받을 수 있는 것
|
|
1549
|
+
* (사용 중, 기간 안, 총 발급 한도가 남음)이다. 받은 쿠폰은 내 쿠폰(`GET /me/coupons`)과 주문서의 적용 가능 쿠폰에 그대로 뜬다.
|
|
1550
|
+
*/
|
|
1551
|
+
declare const storefrontCouponTargetSchema: z.ZodObject<{
|
|
1552
|
+
allProducts: z.ZodBoolean;
|
|
1553
|
+
includeProductIds: z.ZodArray<z.ZodString>;
|
|
1554
|
+
includeCategoryIds: z.ZodArray<z.ZodString>;
|
|
1555
|
+
excludeProductIds: z.ZodArray<z.ZodString>;
|
|
1556
|
+
excludeCategoryIds: z.ZodArray<z.ZodString>;
|
|
1557
|
+
}, z.core.$strip>;
|
|
1558
|
+
declare const storefrontCouponSchema: z.ZodObject<{
|
|
1559
|
+
couponId: z.ZodString;
|
|
1560
|
+
name: z.ZodString;
|
|
1561
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1562
|
+
kind: z.ZodString;
|
|
1563
|
+
benefit: z.ZodObject<{
|
|
1564
|
+
type: z.ZodString;
|
|
1565
|
+
value: z.ZodNumber;
|
|
1566
|
+
maxDiscountAmount: z.ZodNullable<z.ZodNumber>;
|
|
1567
|
+
}, z.core.$strip>;
|
|
1568
|
+
minOrderAmount: z.ZodNumber;
|
|
1569
|
+
stackWithInstantDiscount: z.ZodBoolean;
|
|
1570
|
+
target: z.ZodObject<{
|
|
1571
|
+
allProducts: z.ZodBoolean;
|
|
1572
|
+
includeProductIds: z.ZodArray<z.ZodString>;
|
|
1573
|
+
includeCategoryIds: z.ZodArray<z.ZodString>;
|
|
1574
|
+
excludeProductIds: z.ZodArray<z.ZodString>;
|
|
1575
|
+
excludeCategoryIds: z.ZodArray<z.ZodString>;
|
|
1576
|
+
}, z.core.$strip>;
|
|
1577
|
+
startsAt: z.ZodNullable<z.ZodString>;
|
|
1578
|
+
endsAt: z.ZodNullable<z.ZodString>;
|
|
1579
|
+
validDaysAfterIssue: z.ZodNullable<z.ZodNumber>;
|
|
1580
|
+
perMemberIssueLimit: z.ZodNumber;
|
|
1581
|
+
loginRequired: z.ZodBoolean;
|
|
1582
|
+
downloaded: z.ZodNullable<z.ZodBoolean>;
|
|
1583
|
+
downloadable: z.ZodNullable<z.ZodBoolean>;
|
|
1584
|
+
}, z.core.$strip>;
|
|
1585
|
+
type StorefrontCoupon = z.infer<typeof storefrontCouponSchema>;
|
|
1586
|
+
declare const storefrontCouponListQuerySchema: z.ZodObject<{
|
|
1587
|
+
productId: z.ZodOptional<z.ZodString>;
|
|
1588
|
+
page: z.ZodOptional<z.ZodString>;
|
|
1589
|
+
size: z.ZodOptional<z.ZodString>;
|
|
1590
|
+
}, z.core.$strip>;
|
|
1591
|
+
interface StorefrontCouponListParams {
|
|
1592
|
+
productId?: string;
|
|
1593
|
+
page?: number;
|
|
1594
|
+
size?: number;
|
|
1595
|
+
}
|
|
1546
1596
|
//#endregion
|
|
1547
1597
|
//#region src/schemas/customer-inquiry.d.ts
|
|
1548
1598
|
declare const customerInquiryCategorySchema: z.ZodEnum<{
|
|
@@ -2227,6 +2277,43 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2227
2277
|
endsAt: string | null;
|
|
2228
2278
|
}[];
|
|
2229
2279
|
}>;
|
|
2280
|
+
/**
|
|
2281
|
+
* `GET /coupons` — 지금 받을 수 있는 쿠폰(이슈 #110). `productId`를 주면 그 상품에 쓸 수 있는 쿠폰만 싣는다.
|
|
2282
|
+
* 회원 토큰이 있으면 항목마다 `downloaded`·`downloadable`을 싣는다. 받기는 `me.downloadCoupon`이다
|
|
2283
|
+
*/
|
|
2284
|
+
listCoupons: (params?: StorefrontCouponListParams) => Promise<{
|
|
2285
|
+
page: number;
|
|
2286
|
+
size: number;
|
|
2287
|
+
totalElements: number;
|
|
2288
|
+
totalPages: number;
|
|
2289
|
+
contents: {
|
|
2290
|
+
couponId: string;
|
|
2291
|
+
name: string;
|
|
2292
|
+
description: string | null;
|
|
2293
|
+
kind: string;
|
|
2294
|
+
benefit: {
|
|
2295
|
+
type: string;
|
|
2296
|
+
value: number;
|
|
2297
|
+
maxDiscountAmount: number | null;
|
|
2298
|
+
};
|
|
2299
|
+
minOrderAmount: number;
|
|
2300
|
+
stackWithInstantDiscount: boolean;
|
|
2301
|
+
target: {
|
|
2302
|
+
allProducts: boolean;
|
|
2303
|
+
includeProductIds: string[];
|
|
2304
|
+
includeCategoryIds: string[];
|
|
2305
|
+
excludeProductIds: string[];
|
|
2306
|
+
excludeCategoryIds: string[];
|
|
2307
|
+
};
|
|
2308
|
+
startsAt: string | null;
|
|
2309
|
+
endsAt: string | null;
|
|
2310
|
+
validDaysAfterIssue: number | null;
|
|
2311
|
+
perMemberIssueLimit: number;
|
|
2312
|
+
loginRequired: boolean;
|
|
2313
|
+
downloaded: boolean | null;
|
|
2314
|
+
downloadable: boolean | null;
|
|
2315
|
+
}[];
|
|
2316
|
+
}>;
|
|
2230
2317
|
/** 숨김·기간 밖·없음은 모두 404 `COLLECTION_NOT_FOUND` */
|
|
2231
2318
|
getCollection: (slug: string) => Promise<{
|
|
2232
2319
|
collectionId: string;
|
|
@@ -3213,7 +3300,34 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3213
3300
|
validUntil: string | null;
|
|
3214
3301
|
usedOrderId: string | null;
|
|
3215
3302
|
issuedAt: string;
|
|
3303
|
+
source?: string | undefined;
|
|
3216
3304
|
}[]>;
|
|
3305
|
+
/**
|
|
3306
|
+
* `POST /coupons/{couponId}/download` — 쿠폰 받기(이슈 #110, 회원 전용). 받은 쿠폰 한 장(내 쿠폰 항목)을 돌려준다.
|
|
3307
|
+
*
|
|
3308
|
+
* 에러(`ApiError.code`): 401 `UNAUTHORIZED`, 404 `COUPON_NOT_FOUND`(없음·중지·종료·다운로드 쿠폰 아님),
|
|
3309
|
+
* 409 `COUPON_ALREADY_DOWNLOADED`(1인 장수를 다 받음)·`COUPON_SOLD_OUT`(총 발급 한도 소진)·`COUPON_NOT_STARTED`·
|
|
3310
|
+
* `COUPON_EXPIRED`·`COUPONS_UNAVAILABLE`, 429 `TOO_MANY_REQUESTS`
|
|
3311
|
+
*/
|
|
3312
|
+
downloadCoupon: (couponId: string) => Promise<{
|
|
3313
|
+
issueId: string;
|
|
3314
|
+
couponId: string;
|
|
3315
|
+
name: string;
|
|
3316
|
+
description: string | null;
|
|
3317
|
+
kind: string;
|
|
3318
|
+
benefit: {
|
|
3319
|
+
type: string;
|
|
3320
|
+
value: number;
|
|
3321
|
+
maxDiscountAmount: number | null;
|
|
3322
|
+
};
|
|
3323
|
+
minOrderAmount: number;
|
|
3324
|
+
status: string;
|
|
3325
|
+
validFrom: string;
|
|
3326
|
+
validUntil: string | null;
|
|
3327
|
+
usedOrderId: string | null;
|
|
3328
|
+
issuedAt: string;
|
|
3329
|
+
source?: string | undefined;
|
|
3330
|
+
}>;
|
|
3217
3331
|
customerInquiries: {
|
|
3218
3332
|
create: (body: CreateCustomerInquiryRequest) => Promise<{
|
|
3219
3333
|
inquiryId: string;
|
|
@@ -3776,4 +3890,4 @@ declare const storefrontStoreSchema: z.ZodObject<{
|
|
|
3776
3890
|
}, z.core.$strip>;
|
|
3777
3891
|
type StorefrontStore = z.infer<typeof storefrontStoreSchema>;
|
|
3778
3892
|
//#endregion
|
|
3779
|
-
export { analyticsIdSchema as $,
|
|
3893
|
+
export { analyticsIdSchema as $, CASH_RECEIPT_METHODS as $n, retryPaymentRequestSchema as $r, CreateCustomerInquiryRequest as $t, PurchaseDecisionResult as A, claimStatusSchema as Ai, ConsentSource as An, cashReceiptIdentityTypeOf as Ar, reviewSummarySchema as At, ANALYTICS_MAX_BATCH_BYTES as B, myOrderItemFulfillmentSnapshotSchema as Bi, ClaimReason as Bn, guestInfoSchema as Br, memberAddressRequestSchema as Bt, memberPointEntrySchema as C, storefrontCollectionDetailSchema as Ci, myCouponSchema as Cn, RemoteArea as Cr, createReviewResultSchema as Ct, MyOrder as D, OrderItemStatus as Di, storefrontCouponTargetSchema as Dn, StartPaymentRequest as Dr, publicReviewSchema as Dt, DeliveryTracking as E, ClaimStatus as Ei, storefrontCouponSchema as En, ShippingAddressInput as Er, productReviewSortSchema as Et, purchaseDecisionResultSchema as F, MyOrderItemFulfillmentSnapshot as Fi, consentKindSchema as Fn, createCheckoutRequestSchema as Fr, Member as Ft, AnalyticsBatch as G, CartItem as Gi, MyClaim as Gn, paymentOptionListSchema as Gr, CreateInquiryRequest as Gt, ANALYTICS_SESSION_HEADER as H, productFulfillmentViewSchema as Hi, ClaimType as Hn, paymentMessageSchema as Hr, memberSchema as Ht, trackingStageResponseSchema as I, ProductCardFulfillment as Ii, consentSourceSchema as In, deliveryQuoteRequestSchema as Ir, MemberAddress as It, AnalyticsEventName as J, cartItemSchema as Ji, claimTypeSchema as Jn, paymentStatusSchema as Jr, PublicInquiry as Jt, AnalyticsClientEvent as K, UpdateCartItemRequest as Ki, claimReasonSchema as Kn, paymentOptionSchema as Kr, CreateInquiryResult as Kt, commerceNumberField as L, ProductFulfillmentView as Li, consentStateSchema as Ln, deliveryQuoteSchema as Lr, MemberAddressRequest as Lt, myOrderItemSchema as M, pageInfoSchema as Mi, ConsentUpdateRequest as Mn, cashReceiptTypeSchema as Mr, updateReviewResultSchema as Mt, myOrderSchema as N, pageSchema as Ni, MemberConsents as Nn, checkoutDeliverySchema as Nr, uploadTicketSchema as Nt, MyOrderItem as O, PageInfo as Oi, ConsentAction as On, availablePaymentOptionSchema as Or, reviewImageUploadRequestSchema as Ot, orderShippingAddressSchema as P, LineFulfillment as Pi, consentActionSchema as Pn, checkoutSessionSchema as Pr, writableReviewSchema as Pt, analyticsClientEventSchema as Q, AvailablePaymentOption as Qn, responsePaymentMethodSchema as Qr, publicInquirySchema as Qt, formatOrderNo as R, UnknownFulfillmentView as Ri, consentUpdateRequestSchema as Rn, easyPayProviderResponseSchema as Rr, UpdateProfileRequest as Rt, memberPointEntryPageSchema as S, productSortSchema as Si, myCouponListQuerySchema as Sn, PgProvider as Sr, createReviewRequestSchema as St, storefrontPointPolicySchema as T, storefrontCollectionSchema as Ti, storefrontCouponListQuerySchema as Tn, RetryPaymentRequest as Tr, productReviewQuerySchema as Tt, ANALYTICS_VISITOR_COOKIE as U, AddCartItemRequest as Ui, CreateClaimRequest as Un, paymentMethodSchema as Ur, updateProfileRequestSchema as Ut, ANALYTICS_SESSION_COOKIE as V, productCardFulfillmentSchema as Vi, ClaimReturnAddress as Vn, paymentFailureCategorySchema as Vr, memberAddressSchema as Vt, ANALYTICS_VISITOR_HEADER as W, Cart as Wi, CreateClaimResult as Wn, paymentOptionKey as Wr, wishlistAddResultSchema as Wt, analyticsBatchSchema as X, updateCartItemRequestSchema as Xi, createClaimResultSchema as Xn, remoteAreaSchema as Xr, createInquiryResultSchema as Xt, AnalyticsServerEventName as Y, cartSchema as Yi, createClaimRequestSchema as Yn, pgProviderSchema as Yr, createInquiryRequestSchema as Yt, analyticsClientEventNameSchema as Z, analyticsIdsFromCookie as Zi, myClaimSchema as Zn, residentNumberLike as Zr, productInquiryCategorySchema as Zt, normalizeCustomInputValue as _, collectionProductSortSchema as _i, checkoutPricingSchema as _n, PaymentMessage as _r, ReviewSummary as _t, CustomInputEntry as a, CollectionProductSortParam as ai, ApplicableCoupon as an, CreateCheckoutRequest as ar, SessionStorage as at, MemberPoints as b, productFacetsSchema as bi, couponBenefitViewSchema as bn, PaymentStart as br, UploadTicket as bt, OptionSelectionView as c, ProductFacets as ci, CouponApplication as cn, EasyPayProvider as cr, createStorefrontSession as ct, customInputEntrySchema as d, ProductSort as di, MIN_PAYMENT_AMOUNT as dn, KnownPaymentStartStatus as dr, MyReview as dt, shippingAddressInputSchema as ei, CustomerInquiry as en, CashReceiptIdentityType as er, analyticsServerEventNameSchema as et, customInputLength as f, StorefrontCollection as fi, MyCoupon as fn, KnownPaymentStatus as fr, ProductReviewParams as ft, lineSelectionResponseShape as g, collectionProductQuerySchema as gi, checkoutPricingRequestSchema as gn, PaymentFailureCategory as gr, ReviewPage as gt, lineSelectionRequestShape as h, collectionProductPageSchema as hi, applicableCouponSchema as hn, PAYMENT_STATUS_VALUES as hr, ReviewImageUploadRequest as ht, AddonSelection as i, CollectionProductParams as ii, customerInquirySchema as in, CheckoutSession as ir, STOREFRONT_SESSION_KEYS as it, deliveryTrackingSchema as j, orderItemStatusSchema as ji, ConsentState as jn, cashReceiptRequestSchema as jr, updateReviewRequestSchema as jt, OrderShippingAddress as k, PageParams as ki, ConsentKind as kn, cashReceiptAvailable as kr, reviewPageSchema as kt, addonGroupViewSchema as l, ProductPage as li, CouponResult as ln, GuestInfo as lr, CreateReviewRequest as lt, customInputViewSchema as m, categoryNodeSchema as mi, StorefrontCouponListParams as mn, PAYMENT_START_STATUS_VALUES as mr, PublicReview as mt, storefrontStoreSchema as n, CategoryNode as ni, createCustomerInquiryRequestSchema as nn, CashReceiptType as nr, StorefrontClientOptions as nt, CustomInputValueView as o, ProductCard as oi, CheckoutPricing as on, DeliveryQuoteRequest as or, StorefrontSession as ot, customInputValueViewSchema as p, StorefrontCollectionDetail as pi, StorefrontCoupon as pn, PAYMENT_RESULT_VALUES as pr, ProductReviewSort as pt, AnalyticsClientEventName as q, addCartItemRequestSchema as qi, claimReturnAddressSchema as qn, paymentStartSchema as qr, ProductInquiryCategory as qt, AddonGroupView as r, CollectionProductPage as ri, customerInquiryCategorySchema as rn, CheckoutDelivery as rr, createStorefrontClient as rt, CustomInputView as s, ProductDetail as si, CheckoutPricingRequest as sn, DeliveryQuoteResult as sr, StorefrontSessionOptions as st, StorefrontStore as t, startPaymentRequestSchema as ti, CustomerInquiryCategory as tn, CashReceiptRequest as tr, StorefrontClient as tt, addonSelectionSchema as u, ProductSearchParams as ui, MAX_COUPONS_PER_CHECKOUT as un, KnownPaymentResult as ur, CreateReviewResult as ut, optionSelectionViewSchema as v, productCardSchema as vi, couponApplicationListSchema as vn, PaymentMethod as vr, UpdateReviewRequest as vt, memberPointsSchema as w, storefrontCollectionListQuerySchema as wi, pricingAmountsSchema as wn, ResponsePaymentMethod as wr, myReviewSchema as wt, StorefrontPointPolicy as x, productPageSchema as xi, couponResultSchema as xn, PaymentStatus as xr, WritableReview as xt, MemberPointEntry as y, productDetailSchema as yi, couponApplicationSchema as yn, PaymentOption as yr, UpdateReviewResult as yt, parseOrderNo as z, lineFulfillmentSchema as zi, memberConsentsSchema as zn, easyPayProviderSchema 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 analyticsIdSchema, $n as
|
|
3
|
-
export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, AddCartItemRequest, AddonGroupView, AddonSelection, AnalyticsBatch, AnalyticsClientEvent, AnalyticsClientEventName, AnalyticsEventName, AnalyticsServerEventName, AnonymousSession, ApiError, ApplicableCoupon, AvailablePaymentOption, CASH_RECEIPT_METHODS, 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 };
|
|
2
|
+
import { $ as analyticsIdSchema, $n as CASH_RECEIPT_METHODS, $r as retryPaymentRequestSchema, $t as CreateCustomerInquiryRequest, A as PurchaseDecisionResult, Ai as claimStatusSchema, An as ConsentSource, Ar as cashReceiptIdentityTypeOf, At as reviewSummarySchema, B as ANALYTICS_MAX_BATCH_BYTES, Bi as myOrderItemFulfillmentSnapshotSchema, Bn as ClaimReason, Br as guestInfoSchema, Bt as memberAddressRequestSchema, C as memberPointEntrySchema, Ci as storefrontCollectionDetailSchema, Cn as myCouponSchema, Cr as RemoteArea, Ct as createReviewResultSchema, D as MyOrder, Di as OrderItemStatus, Dn as storefrontCouponTargetSchema, Dr as StartPaymentRequest, Dt as publicReviewSchema, E as DeliveryTracking, Ei as ClaimStatus, En as storefrontCouponSchema, Er as ShippingAddressInput, Et as productReviewSortSchema, F as purchaseDecisionResultSchema, Fi as MyOrderItemFulfillmentSnapshot, Fn as consentKindSchema, Fr as createCheckoutRequestSchema, Ft as Member, G as AnalyticsBatch, Gi as CartItem, Gn as MyClaim, Gr as paymentOptionListSchema, Gt as CreateInquiryRequest, H as ANALYTICS_SESSION_HEADER, Hi as productFulfillmentViewSchema, Hn as ClaimType, Hr as paymentMessageSchema, Ht as memberSchema, I as trackingStageResponseSchema, Ii as ProductCardFulfillment, In as consentSourceSchema, Ir as deliveryQuoteRequestSchema, It as MemberAddress, J as AnalyticsEventName, Ji as cartItemSchema, Jn as claimTypeSchema, Jr as paymentStatusSchema, Jt as PublicInquiry, K as AnalyticsClientEvent, Ki as UpdateCartItemRequest, Kn as claimReasonSchema, Kr as paymentOptionSchema, Kt as CreateInquiryResult, L as commerceNumberField, Li as ProductFulfillmentView, Ln as consentStateSchema, Lr as deliveryQuoteSchema, Lt as MemberAddressRequest, M as myOrderItemSchema, Mi as pageInfoSchema, Mn as ConsentUpdateRequest, Mr as cashReceiptTypeSchema, Mt as updateReviewResultSchema, N as myOrderSchema, Ni as pageSchema, Nn as MemberConsents, Nr as checkoutDeliverySchema, Nt as uploadTicketSchema, O as MyOrderItem, Oi as PageInfo, On as ConsentAction, Or as availablePaymentOptionSchema, Ot as reviewImageUploadRequestSchema, P as orderShippingAddressSchema, Pi as LineFulfillment, Pn as consentActionSchema, Pr as checkoutSessionSchema, Pt as writableReviewSchema, Q as analyticsClientEventSchema, Qn as AvailablePaymentOption, Qr as responsePaymentMethodSchema, Qt as publicInquirySchema, R as formatOrderNo, Ri as UnknownFulfillmentView, Rn as consentUpdateRequestSchema, Rr as easyPayProviderResponseSchema, Rt as UpdateProfileRequest, S as memberPointEntryPageSchema, Si as productSortSchema, Sn as myCouponListQuerySchema, Sr as PgProvider, St as createReviewRequestSchema, T as storefrontPointPolicySchema, Ti as storefrontCollectionSchema, Tn as storefrontCouponListQuerySchema, Tr as RetryPaymentRequest, Tt as productReviewQuerySchema, U as ANALYTICS_VISITOR_COOKIE, Ui as AddCartItemRequest, Un as CreateClaimRequest, Ur as paymentMethodSchema, Ut as updateProfileRequestSchema, V as ANALYTICS_SESSION_COOKIE, Vi as productCardFulfillmentSchema, Vn as ClaimReturnAddress, Vr as paymentFailureCategorySchema, Vt as memberAddressSchema, W as ANALYTICS_VISITOR_HEADER, Wi as Cart, Wn as CreateClaimResult, Wr as paymentOptionKey, Wt as wishlistAddResultSchema, X as analyticsBatchSchema, Xi as updateCartItemRequestSchema, Xn as createClaimResultSchema, Xr as remoteAreaSchema, Xt as createInquiryResultSchema, Y as AnalyticsServerEventName, Yi as cartSchema, Yn as createClaimRequestSchema, Yr as pgProviderSchema, Yt as createInquiryRequestSchema, Z as analyticsClientEventNameSchema, Zi as analyticsIdsFromCookie, Zn as myClaimSchema, Zr as residentNumberLike, Zt as productInquiryCategorySchema, _ as normalizeCustomInputValue, _i as collectionProductSortSchema, _n as checkoutPricingSchema, _r as PaymentMessage, _t as ReviewSummary, a as CustomInputEntry, ai as CollectionProductSortParam, an as ApplicableCoupon, ar as CreateCheckoutRequest, at as SessionStorage, b as MemberPoints, bi as productFacetsSchema, bn as couponBenefitViewSchema, br as PaymentStart, bt as UploadTicket, c as OptionSelectionView, ci as ProductFacets, cn as CouponApplication, cr as EasyPayProvider, ct as createStorefrontSession, d as customInputEntrySchema, di as ProductSort, dn as MIN_PAYMENT_AMOUNT, dr as KnownPaymentStartStatus, dt as MyReview, ei as shippingAddressInputSchema, en as CustomerInquiry, er as CashReceiptIdentityType, et as analyticsServerEventNameSchema, f as customInputLength, fi as StorefrontCollection, fn as MyCoupon, fr as KnownPaymentStatus, ft as ProductReviewParams, g as lineSelectionResponseShape, gi as collectionProductQuerySchema, gn as checkoutPricingRequestSchema, gr as PaymentFailureCategory, gt as ReviewPage, h as lineSelectionRequestShape, hi as collectionProductPageSchema, hn as applicableCouponSchema, hr as PAYMENT_STATUS_VALUES, ht as ReviewImageUploadRequest, i as AddonSelection, ii as CollectionProductParams, in as customerInquirySchema, ir as CheckoutSession, it as STOREFRONT_SESSION_KEYS, j as deliveryTrackingSchema, ji as orderItemStatusSchema, jn as ConsentState, jr as cashReceiptRequestSchema, jt as updateReviewRequestSchema, k as OrderShippingAddress, ki as PageParams, kn as ConsentKind, kr as cashReceiptAvailable, kt as reviewPageSchema, l as addonGroupViewSchema, li as ProductPage, ln as CouponResult, lr as GuestInfo, lt as CreateReviewRequest, m as customInputViewSchema, mi as categoryNodeSchema, mn as StorefrontCouponListParams, mr as PAYMENT_START_STATUS_VALUES, mt as PublicReview, n as storefrontStoreSchema, ni as CategoryNode, nn as createCustomerInquiryRequestSchema, nr as CashReceiptType, nt as StorefrontClientOptions, o as CustomInputValueView, oi as ProductCard, on as CheckoutPricing, or as DeliveryQuoteRequest, ot as StorefrontSession, p as customInputValueViewSchema, pi as StorefrontCollectionDetail, pn as StorefrontCoupon, pr as PAYMENT_RESULT_VALUES, pt as ProductReviewSort, q as AnalyticsClientEventName, qi as addCartItemRequestSchema, qn as claimReturnAddressSchema, qr as paymentStartSchema, qt as ProductInquiryCategory, r as AddonGroupView, ri as CollectionProductPage, rn as customerInquiryCategorySchema, rr as CheckoutDelivery, rt as createStorefrontClient, s as CustomInputView, si as ProductDetail, sn as CheckoutPricingRequest, sr as DeliveryQuoteResult, st as StorefrontSessionOptions, t as StorefrontStore, ti as startPaymentRequestSchema, tn as CustomerInquiryCategory, tr as CashReceiptRequest, tt as StorefrontClient, u as addonSelectionSchema, ui as ProductSearchParams, un as MAX_COUPONS_PER_CHECKOUT, ur as KnownPaymentResult, ut as CreateReviewResult, v as optionSelectionViewSchema, vi as productCardSchema, vn as couponApplicationListSchema, vr as PaymentMethod, vt as UpdateReviewRequest, w as memberPointsSchema, wi as storefrontCollectionListQuerySchema, wn as pricingAmountsSchema, wr as ResponsePaymentMethod, wt as myReviewSchema, x as StorefrontPointPolicy, xi as productPageSchema, xn as couponResultSchema, xr as PaymentStatus, xt as WritableReview, y as MemberPointEntry, yi as productDetailSchema, yn as couponApplicationSchema, yr as PaymentOption, yt as UpdateReviewResult, z as parseOrderNo, zi as lineFulfillmentSchema, zn as memberConsentsSchema, zr as easyPayProviderSchema, zt as WishlistAddResult } from "./index-atHaDBC3.mjs";
|
|
3
|
+
export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, AddCartItemRequest, AddonGroupView, AddonSelection, AnalyticsBatch, AnalyticsClientEvent, AnalyticsClientEventName, AnalyticsEventName, AnalyticsServerEventName, AnonymousSession, ApiError, ApplicableCoupon, AvailablePaymentOption, CASH_RECEIPT_METHODS, Cart, CartItem, CashReceiptIdentityType, CashReceiptRequest, CashReceiptType, CategoryNode, CheckoutDelivery, CheckoutPricing, CheckoutPricingRequest, CheckoutSession, ClaimReason, ClaimReturnAddress, ClaimStatus, ClaimType, CollectionProductPage, CollectionProductParams, CollectionProductSortParam, ConsentAction, ConsentKind, ConsentSource, ConsentState, ConsentUpdateRequest, CouponApplication, CouponResult, CreateCheckoutRequest, CreateClaimRequest, CreateClaimResult, CreateCustomerInquiryRequest, CreateInquiryRequest, CreateInquiryResult, CreateReviewRequest, CreateReviewResult, CustomInputEntry, CustomInputValueView, CustomInputView, CustomerInquiry, CustomerInquiryCategory, DeliveryQuoteRequest, DeliveryQuoteResult, DeliveryTracking, EasyPayProvider, GuestInfo, IdpAgreements, IdpAuthorizeRequest, IdpTokenRequest, KnownPaymentResult, KnownPaymentStartStatus, KnownPaymentStatus, LineFulfillment, LinkIdentityRequest, LoginRequest, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, Member, MemberAddress, MemberAddressRequest, MemberConsents, MemberIdentities, MemberPointEntry, MemberPoints, MyClaim, MyCoupon, MyOrder, MyOrderItem, MyOrderItemFulfillmentSnapshot, MyReview, OptionSelectionView, OrderItemStatus, OrderShippingAddress, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, PageInfo, PageParams, PaymentFailureCategory, PaymentMessage, PaymentMethod, PaymentOption, PaymentStart, PaymentStatus, PgProvider, ProductCard, ProductCardFulfillment, ProductDetail, ProductFacets, ProductFulfillmentView, ProductInquiryCategory, ProductPage, ProductReviewParams, ProductReviewSort, ProductSearchParams, ProductSort, PublicInquiry, PublicReview, PurchaseDecisionResult, type Query, RemoteArea, ResponsePaymentMethod, RetryPaymentRequest, ReviewImageUploadRequest, ReviewPage, ReviewSummary, STOREFRONT_SESSION_KEYS, type SessionStorage, ShippingAddressInput, SignupRequest, SocialProvider, StartPaymentRequest, type StorefrontClient, type StorefrontClientOptions, StorefrontCollection, StorefrontCollectionDetail, StorefrontCoupon, StorefrontCouponListParams, StorefrontPointPolicy, type StorefrontSession, type StorefrontSessionOptions, StorefrontStore, TokenPair, type TokenSource, UnknownFulfillmentView, UpdateCartItemRequest, UpdateProfileRequest, UpdateReviewRequest, UpdateReviewResult, UploadTicket, WishlistAddResult, WithdrawRequest, WithdrawalBlockedDetails, WritableReview, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, formatOrderNo, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderItemStatusSchema, orderShippingAddressSchema, pageInfoSchema, pageSchema, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as ANALYTICS_VISITOR_HEADER, c as analyticsClientEventSchema, i as ANALYTICS_VISITOR_COOKIE, l as analyticsIdSchema, n as ANALYTICS_SESSION_COOKIE, o as analyticsBatchSchema, r as ANALYTICS_SESSION_HEADER, s as analyticsClientEventNameSchema, t as ANALYTICS_MAX_BATCH_BYTES, u as analyticsServerEventNameSchema } from "./analytics-CgD70OqH.mjs";
|
|
2
2
|
import { t as analyticsIdsFromCookie } from "./analytics-ids-COElZiI3.mjs";
|
|
3
|
-
import { $ as categoryNodeSchema, A as wishlistAddResultSchema, At as withdrawRequestSchema, B as consentSourceSchema, C as orderShippingAddressSchema, Ct as idpTokenRequestSchema, D as memberAddressSchema, Dt as signupRequestSchema, E as memberAddressRequestSchema, Et as memberIdentitiesSchema, F as createCustomerInquiryRequestSchema, Ft as unwrapData, G as claimReturnAddressSchema, H as consentUpdateRequestSchema, I as customerInquiryCategorySchema, J as createClaimResultSchema, K as claimTypeSchema, L as customerInquirySchema, M as createInquiryResultSchema, Mt as ApiError, N as productInquiryCategorySchema, Nt as buildQuery, O as memberSchema, Ot as socialProviderSchema, P as publicInquirySchema, Pt as toApiError, Q as parseOrderNo, R as consentActionSchema, S as myOrderSchema, St as idpAuthorizeResponseSchema, T as trackingStageResponseSchema, Tt as loginRequestSchema, U as memberConsentsSchema, V as consentStateSchema, W as claimReasonSchema, X as commerceNumberField, Y as myClaimSchema, Z as formatOrderNo, _ as memberPointEntrySchema, _t as cartSchema, a as myReviewSchema, at as productFacetsSchema, b as deliveryTrackingSchema, bt as idpAgreementsSchema, c as publicReviewSchema, ct as storefrontCollectionDetailSchema, d as reviewSummarySchema, dt as claimStatusSchema, et as collectionProductPageSchema, f as updateReviewRequestSchema, ft as orderItemStatusSchema, g as memberPointEntryPageSchema, gt as cartItemSchema, h as writableReviewSchema, ht as addCartItemRequestSchema, i as createReviewResultSchema, it as productDetailSchema, j as createInquiryRequestSchema, jt as withdrawalBlockedDetailsSchema, k as updateProfileRequestSchema, kt as tokenPairSchema, l as reviewImageUploadRequestSchema, lt as storefrontCollectionListQuerySchema, m as uploadTicketSchema, mt as pageSchema, n as storefrontStoreSchema, nt as collectionProductSortSchema, o as productReviewQuerySchema, ot as productPageSchema, p as updateReviewResultSchema, pt as pageInfoSchema, q as createClaimRequestSchema, r as createReviewRequestSchema, rt as productCardSchema, s as productReviewSortSchema, st as productSortSchema, t as createStorefrontClient, tt as collectionProductQuerySchema, u as reviewPageSchema, ut as storefrontCollectionSchema, v as memberPointsSchema, vt as updateCartItemRequestSchema, w as purchaseDecisionResultSchema, wt as linkIdentityRequestSchema, x as myOrderItemSchema, xt as idpAuthorizeRequestSchema, y as storefrontPointPolicySchema, yt as anonymousSessionSchema, z as consentKindSchema } from "./client-
|
|
4
|
-
import { $ as
|
|
3
|
+
import { $ as categoryNodeSchema, A as wishlistAddResultSchema, At as withdrawRequestSchema, B as consentSourceSchema, C as orderShippingAddressSchema, Ct as idpTokenRequestSchema, D as memberAddressSchema, Dt as signupRequestSchema, E as memberAddressRequestSchema, Et as memberIdentitiesSchema, F as createCustomerInquiryRequestSchema, Ft as unwrapData, G as claimReturnAddressSchema, H as consentUpdateRequestSchema, I as customerInquiryCategorySchema, J as createClaimResultSchema, K as claimTypeSchema, L as customerInquirySchema, M as createInquiryResultSchema, Mt as ApiError, N as productInquiryCategorySchema, Nt as buildQuery, O as memberSchema, Ot as socialProviderSchema, P as publicInquirySchema, Pt as toApiError, Q as parseOrderNo, R as consentActionSchema, S as myOrderSchema, St as idpAuthorizeResponseSchema, T as trackingStageResponseSchema, Tt as loginRequestSchema, U as memberConsentsSchema, V as consentStateSchema, W as claimReasonSchema, X as commerceNumberField, Y as myClaimSchema, Z as formatOrderNo, _ as memberPointEntrySchema, _t as cartSchema, a as myReviewSchema, at as productFacetsSchema, b as deliveryTrackingSchema, bt as idpAgreementsSchema, c as publicReviewSchema, ct as storefrontCollectionDetailSchema, d as reviewSummarySchema, dt as claimStatusSchema, et as collectionProductPageSchema, f as updateReviewRequestSchema, ft as orderItemStatusSchema, g as memberPointEntryPageSchema, gt as cartItemSchema, h as writableReviewSchema, ht as addCartItemRequestSchema, i as createReviewResultSchema, it as productDetailSchema, j as createInquiryRequestSchema, jt as withdrawalBlockedDetailsSchema, k as updateProfileRequestSchema, kt as tokenPairSchema, l as reviewImageUploadRequestSchema, lt as storefrontCollectionListQuerySchema, m as uploadTicketSchema, mt as pageSchema, n as storefrontStoreSchema, nt as collectionProductSortSchema, o as productReviewQuerySchema, ot as productPageSchema, p as updateReviewResultSchema, pt as pageInfoSchema, q as createClaimRequestSchema, r as createReviewRequestSchema, rt as productCardSchema, s as productReviewSortSchema, st as productSortSchema, t as createStorefrontClient, tt as collectionProductQuerySchema, u as reviewPageSchema, ut as storefrontCollectionSchema, v as memberPointsSchema, vt as updateCartItemRequestSchema, w as purchaseDecisionResultSchema, wt as linkIdentityRequestSchema, x as myOrderItemSchema, xt as idpAuthorizeRequestSchema, y as storefrontPointPolicySchema, yt as anonymousSessionSchema, z as consentKindSchema } from "./client-Dn_JdIqv.mjs";
|
|
4
|
+
import { $ as customInputViewSchema, A as retryPaymentRequestSchema, B as couponBenefitViewSchema, C as paymentOptionSchema, D as remoteAreaSchema, E as pgProviderSchema, F as applicableCouponSchema, G as storefrontCouponListQuerySchema, H as myCouponListQuerySchema, I as checkoutPricingRequestSchema, J as addonGroupViewSchema, K as storefrontCouponSchema, L as checkoutPricingSchema, M as startPaymentRequestSchema, N as MAX_COUPONS_PER_CHECKOUT, O as residentNumberLike, P as MIN_PAYMENT_AMOUNT, Q as customInputValueViewSchema, R as couponApplicationListSchema, S as paymentOptionListSchema, T as paymentStatusSchema, U as myCouponSchema, V as couponResultSchema, W as pricingAmountsSchema, X as customInputEntrySchema, Y as addonSelectionSchema, Z as customInputLength, _ as guestInfoSchema, a as availablePaymentOptionSchema, at as myOrderItemFulfillmentSnapshotSchema, b as paymentMethodSchema, c as cashReceiptRequestSchema, d as checkoutSessionSchema, et as lineSelectionRequestShape, f as createCheckoutRequestSchema, g as easyPayProviderSchema, h as easyPayProviderResponseSchema, i as PAYMENT_STATUS_VALUES, it as lineFulfillmentSchema, j as shippingAddressInputSchema, k as responsePaymentMethodSchema, l as cashReceiptTypeSchema, m as deliveryQuoteSchema, n as PAYMENT_RESULT_VALUES, nt as normalizeCustomInputValue, o as cashReceiptAvailable, ot as productCardFulfillmentSchema, p as deliveryQuoteRequestSchema, q as storefrontCouponTargetSchema, r as PAYMENT_START_STATUS_VALUES, rt as optionSelectionViewSchema, s as cashReceiptIdentityTypeOf, st as productFulfillmentViewSchema, t as CASH_RECEIPT_METHODS, tt as lineSelectionResponseShape, u as checkoutDeliverySchema, v as paymentFailureCategorySchema, w as paymentStartSchema, x as paymentOptionKey, y as paymentMessageSchema, z as couponApplicationSchema } from "./checkout-Bt6j2eDw.mjs";
|
|
5
5
|
//#region src/session.ts
|
|
6
6
|
/** 세션 키 상수 — SDK가 소유한다. store-sdk와 겹치지 않는 별도 네임스페이스. */
|
|
7
7
|
const STOREFRONT_SESSION_KEYS = {
|
|
@@ -125,4 +125,4 @@ function createStorefrontSession(options) {
|
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
//#endregion
|
|
128
|
-
export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, ApiError, CASH_RECEIPT_METHODS, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, STOREFRONT_SESSION_KEYS, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, formatOrderNo, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderItemStatusSchema, orderShippingAddressSchema, pageInfoSchema, pageSchema, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, 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, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dr as StartPaymentRequest, Er as ShippingAddressInput, br as PaymentStart, lr as GuestInfo, rt as createStorefrontClient, tr as CashReceiptRequest, xr as PaymentStatus, yr as PaymentOption } from "../index-atHaDBC3.mjs";
|
|
2
2
|
//#region src/payments/index.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* 스토어프론트 결제 — 브라우저 전용(`@sayren/storefront-sdk/payments`).
|
package/dist/payments/index.mjs
CHANGED
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -74,6 +74,8 @@ import {
|
|
|
74
74
|
checkoutPricingRequestSchema,
|
|
75
75
|
checkoutPricingSchema,
|
|
76
76
|
myCouponSchema,
|
|
77
|
+
type StorefrontCouponListParams,
|
|
78
|
+
storefrontCouponSchema,
|
|
77
79
|
} from "./schemas/coupon";
|
|
78
80
|
import {
|
|
79
81
|
type CreateCustomerInquiryRequest,
|
|
@@ -281,6 +283,14 @@ export function createStorefrontClient(options: StorefrontClientOptions) {
|
|
|
281
283
|
http.request("GET", "/collections", pageSchema(storefrontCollectionSchema), {
|
|
282
284
|
query: params as Query,
|
|
283
285
|
}),
|
|
286
|
+
/**
|
|
287
|
+
* `GET /coupons` — 지금 받을 수 있는 쿠폰(이슈 #110). `productId`를 주면 그 상품에 쓸 수 있는 쿠폰만 싣는다.
|
|
288
|
+
* 회원 토큰이 있으면 항목마다 `downloaded`·`downloadable`을 싣는다. 받기는 `me.downloadCoupon`이다
|
|
289
|
+
*/
|
|
290
|
+
listCoupons: (params?: StorefrontCouponListParams) =>
|
|
291
|
+
http.request("GET", "/coupons", pageSchema(storefrontCouponSchema), {
|
|
292
|
+
query: params as Query,
|
|
293
|
+
}),
|
|
284
294
|
/** 숨김·기간 밖·없음은 모두 404 `COLLECTION_NOT_FOUND` */
|
|
285
295
|
getCollection: (slug: string) =>
|
|
286
296
|
http.request("GET", path`/collections/${slug}`, storefrontCollectionDetailSchema),
|
|
@@ -485,6 +495,15 @@ export function createStorefrontClient(options: StorefrontClientOptions) {
|
|
|
485
495
|
/** `GET /me/coupons` — 내 쿠폰(이슈 #47). `status`로 사용 가능·사용함·기간 지남을 거른다 */
|
|
486
496
|
coupons: (params?: { status?: "available" | "used" | "expired" }) =>
|
|
487
497
|
http.request("GET", "/me/coupons", z.array(myCouponSchema), { query: params as Query }),
|
|
498
|
+
/**
|
|
499
|
+
* `POST /coupons/{couponId}/download` — 쿠폰 받기(이슈 #110, 회원 전용). 받은 쿠폰 한 장(내 쿠폰 항목)을 돌려준다.
|
|
500
|
+
*
|
|
501
|
+
* 에러(`ApiError.code`): 401 `UNAUTHORIZED`, 404 `COUPON_NOT_FOUND`(없음·중지·종료·다운로드 쿠폰 아님),
|
|
502
|
+
* 409 `COUPON_ALREADY_DOWNLOADED`(1인 장수를 다 받음)·`COUPON_SOLD_OUT`(총 발급 한도 소진)·`COUPON_NOT_STARTED`·
|
|
503
|
+
* `COUPON_EXPIRED`·`COUPONS_UNAVAILABLE`, 429 `TOO_MANY_REQUESTS`
|
|
504
|
+
*/
|
|
505
|
+
downloadCoupon: (couponId: string) =>
|
|
506
|
+
http.request("POST", path`/coupons/${couponId}/download`, myCouponSchema),
|
|
488
507
|
customerInquiries: {
|
|
489
508
|
create: (body: CreateCustomerInquiryRequest) =>
|
|
490
509
|
http.request("POST", "/me/customer-inquiries", customerInquirySchema, {
|
package/src/schemas/coupon.ts
CHANGED
|
@@ -220,6 +220,12 @@ export const myCouponSchema = z.object({
|
|
|
220
220
|
validUntil: z.string().nullable(),
|
|
221
221
|
usedOrderId: z.string().nullable(),
|
|
222
222
|
issuedAt: z.string(),
|
|
223
|
+
source: z
|
|
224
|
+
.string()
|
|
225
|
+
.optional()
|
|
226
|
+
.describe(
|
|
227
|
+
"받은 경로(이슈 #110). 현재 값은 `MANUAL`(셀러 지급)·`DOWNLOAD`(직접 받음)·`SIGNUP`(회원가입 축하)이고 값이 늘 수 있다. 서버는 항상 싣는다",
|
|
228
|
+
),
|
|
223
229
|
});
|
|
224
230
|
export type MyCoupon = z.infer<typeof myCouponSchema>;
|
|
225
231
|
|
|
@@ -231,3 +237,70 @@ export const myCouponListQuerySchema = z.object({
|
|
|
231
237
|
"`available`=사용 가능(결제 중 포함), `used`=사용함, `expired`=기간 지남. 생략하면 전부",
|
|
232
238
|
),
|
|
233
239
|
});
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* 받을 수 있는 쿠폰 (이슈 #110) — `GET /coupons`. 셀러가 「다운로드」 방식으로 만든 쿠폰 중 지금 받을 수 있는 것
|
|
243
|
+
* (사용 중, 기간 안, 총 발급 한도가 남음)이다. 받은 쿠폰은 내 쿠폰(`GET /me/coupons`)과 주문서의 적용 가능 쿠폰에 그대로 뜬다.
|
|
244
|
+
*/
|
|
245
|
+
export const storefrontCouponTargetSchema = z.object({
|
|
246
|
+
allProducts: z
|
|
247
|
+
.boolean()
|
|
248
|
+
.describe("전 상품 대상인가(포함 목록이 비어 있다). 제외 목록은 따로 본다"),
|
|
249
|
+
includeProductIds: z.array(z.string()).describe("대상 상품 id"),
|
|
250
|
+
includeCategoryIds: z
|
|
251
|
+
.array(z.string())
|
|
252
|
+
.describe("대상 카테고리 id. 하위 카테고리 상품도 대상이다"),
|
|
253
|
+
excludeProductIds: z.array(z.string()).describe("제외 상품 id. 포함보다 우선한다"),
|
|
254
|
+
excludeCategoryIds: z.array(z.string()).describe("제외 카테고리 id. 포함보다 우선한다"),
|
|
255
|
+
});
|
|
256
|
+
|
|
257
|
+
export const storefrontCouponSchema = z.object({
|
|
258
|
+
couponId: z.string(),
|
|
259
|
+
name: z.string(),
|
|
260
|
+
description: z.string().nullable(),
|
|
261
|
+
kind: z.string().describe("쿠폰 종류. 현재 값은 `ORDER`(주문 쿠폰)·`PRODUCT`(상품 쿠폰)"),
|
|
262
|
+
benefit: couponBenefitViewSchema,
|
|
263
|
+
minOrderAmount: z.number().int().describe("최소 주문 금액(원). 0이면 조건 없음"),
|
|
264
|
+
stackWithInstantDiscount: z
|
|
265
|
+
.boolean()
|
|
266
|
+
.describe("즉시할인 중인 상품에도 쓰는가. false면 할인 중인 상품에는 적용되지 않는다"),
|
|
267
|
+
target: storefrontCouponTargetSchema,
|
|
268
|
+
startsAt: z.string().nullable().describe("사용 시작 시각. 없으면 null"),
|
|
269
|
+
endsAt: z
|
|
270
|
+
.string()
|
|
271
|
+
.nullable()
|
|
272
|
+
.describe("사용 종료 시각(이 시각부터 받거나 쓸 수 없다). 없으면 null"),
|
|
273
|
+
validDaysAfterIssue: z
|
|
274
|
+
.number()
|
|
275
|
+
.int()
|
|
276
|
+
.nullable()
|
|
277
|
+
.describe("받은 뒤 유효 일수. 쿠폰 종료 시각과 둘 중 먼저 끝나는 쪽이 적용된다. 없으면 null"),
|
|
278
|
+
perMemberIssueLimit: z.number().int().describe("1인이 받을 수 있는 장수"),
|
|
279
|
+
loginRequired: z.boolean().describe("받으려면 로그인이 필요한가 — 회원 토큰 없이 부르면 true"),
|
|
280
|
+
downloaded: z
|
|
281
|
+
.boolean()
|
|
282
|
+
.nullable()
|
|
283
|
+
.describe("이미 받았는가(회수되지 않은 발급이 있다). 회원 토큰이 없으면 null"),
|
|
284
|
+
downloadable: z
|
|
285
|
+
.boolean()
|
|
286
|
+
.nullable()
|
|
287
|
+
.describe("지금 더 받을 수 있는가(1인 장수가 남았다). 회원 토큰이 없으면 null"),
|
|
288
|
+
});
|
|
289
|
+
export type StorefrontCoupon = z.infer<typeof storefrontCouponSchema>;
|
|
290
|
+
|
|
291
|
+
export const storefrontCouponListQuerySchema = z.object({
|
|
292
|
+
productId: z
|
|
293
|
+
.string()
|
|
294
|
+
.optional()
|
|
295
|
+
.describe(
|
|
296
|
+
"이 상품에 쓸 수 있는 쿠폰만(대상 상품·카테고리 기준). 주문 쿠폰은 제외 대상이 아니면 싣는다",
|
|
297
|
+
),
|
|
298
|
+
page: z.string().optional().describe("페이지 번호 (1부터, 기본 1)"),
|
|
299
|
+
size: z.string().optional().describe("페이지 크기 (기본 20, 최대 100)"),
|
|
300
|
+
});
|
|
301
|
+
|
|
302
|
+
export interface StorefrontCouponListParams {
|
|
303
|
+
productId?: string;
|
|
304
|
+
page?: number;
|
|
305
|
+
size?: number;
|
|
306
|
+
}
|