@sayren/storefront-sdk 0.20.10 → 0.20.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/index.mjs +1 -1
- package/dist/{client-DJjcGd_M.mjs → client-CJ2oWniR.mjs} +26 -2
- package/dist/{index-BVJvoppI.d.mts → index-DYKDbtx6.d.mts} +175 -17
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/payments/index.d.mts +1 -1
- package/package.json +1 -1
- package/src/client.ts +9 -0
- package/src/schemas/claim.ts +17 -0
- package/src/schemas/commerce-flow.ts +24 -1
package/dist/auth/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ut as ApiError, t as createStorefrontClient } from "../client-CJ2oWniR.mjs";
|
|
2
2
|
//#region src/auth/index.ts
|
|
3
3
|
/** 소셜 로그인 실패 — 구매자가 취소했거나(`access_denied`) state가 맞지 않는다 */
|
|
4
4
|
var IdpCallbackError = class extends Error {
|
|
@@ -486,6 +486,15 @@ const createClaimResultSchema = z.object({
|
|
|
486
486
|
pointRefundAmount: z.number().int().optional().default(0).describe("돌려받을 적립금 예상액 (원, #93) — 결제에 쓴 적립금 중 이번 취소·반품 수량의 몫이다. 예상 환불액(현금)과 별개다. 차감은 현금에서 먼저 빼고 모자란 몫만 여기서 뺀다. 적립금을 쓰지 않은 주문은 0이다. 서버는 항상 싣는다")
|
|
487
487
|
});
|
|
488
488
|
/**
|
|
489
|
+
* 신청 전 미리보기(#115 G49) — 접수와 같은 판정·계산을 저장 없이 돌린다. 접수할 수 없으면 접수와 같은 오류(409 등)다.
|
|
490
|
+
* 금액은 지금 시점의 예상값이다(차감은 접수 시각의 흐름 식으로 다시 계산한다)
|
|
491
|
+
*/
|
|
492
|
+
const claimPreviewSchema = createClaimResultSchema.omit({
|
|
493
|
+
claimId: true,
|
|
494
|
+
claimNo: true,
|
|
495
|
+
status: true
|
|
496
|
+
}).extend({ deductAmount: z.number().int().describe("흐름이 정한 취소 수수료(체크인·관람일까지 남은 기간 등). 예상 환불액에서 이미 뺐다. 수수료가 없으면 0") });
|
|
497
|
+
/**
|
|
489
498
|
* 반품지 (이슈 #30) — 반품·교환 수거가 안내하는 주소다. 상점 주소록의 기본 반품지이거나,
|
|
490
499
|
* 상품이 반품지를 따로 지정했으면 그 주소다.
|
|
491
500
|
*
|
|
@@ -531,7 +540,18 @@ const flowInputFieldSchema = z.object({
|
|
|
531
540
|
placeholder: z.string().optional().describe("입력 안내"),
|
|
532
541
|
maxLength: z.number().int().optional(),
|
|
533
542
|
maxFiles: z.number().int().optional(),
|
|
534
|
-
options: z.array(z.union([
|
|
543
|
+
options: z.array(z.union([
|
|
544
|
+
z.string(),
|
|
545
|
+
z.number(),
|
|
546
|
+
z.object({
|
|
547
|
+
value: z.string(),
|
|
548
|
+
label: z.string()
|
|
549
|
+
}).describe("값과 보여 줄 이름")
|
|
550
|
+
])).optional().describe("고르는 형식의 선택지. 값만 있거나 값·이름 쌍이다(보낼 때는 값)"),
|
|
551
|
+
when: z.object({
|
|
552
|
+
key: z.string(),
|
|
553
|
+
in: z.array(z.string())
|
|
554
|
+
}).optional().describe("다른 칸(`key`)의 값이 `in` 중 하나일 때만 보이고 받는 칸. 없으면 늘 받는다")
|
|
535
555
|
});
|
|
536
556
|
const flowActionSchema = z.object({
|
|
537
557
|
key: z.string(),
|
|
@@ -567,6 +587,7 @@ const flowStateSchema = z.object({
|
|
|
567
587
|
enteredAt: z.string(),
|
|
568
588
|
deadlineAt: z.string().optional().describe("가장 가까운 기한(ISO 8601)"),
|
|
569
589
|
attachments: z.array(z.string()).optional().describe("가장 최근 행동이 붙인 첨부 주소(시안 등, #115). 없으면 생략"),
|
|
590
|
+
earlierAttachments: z.array(z.string()).optional().describe("앞 상태에서 붙인 첨부(수정 요청 뒤의 이전 시안 등). 다음 첨부가 오면 바뀐다. 없으면 생략"),
|
|
570
591
|
inputs: z.object({
|
|
571
592
|
by: z.string().describe("적은 사람 — seller · buyer"),
|
|
572
593
|
values: z.array(z.object({
|
|
@@ -603,6 +624,7 @@ const orderStepSchema = z.object({
|
|
|
603
624
|
message: z.string().optional().describe("판매자가 둔 안내문"),
|
|
604
625
|
deadlineAt: z.string().optional().describe("가장 가까운 기한(ISO 8601)"),
|
|
605
626
|
attachments: z.array(z.string()).optional().describe("판매자가 올린 자료(시안 등)"),
|
|
627
|
+
earlierAttachments: z.array(z.string()).optional().describe("앞 단계에서 올린 자료(수정 요청 뒤의 이전 시안 등)"),
|
|
606
628
|
inputs: flowStateSchema.shape.inputs,
|
|
607
629
|
actions: z.array(flowActionSchema).describe("이 단계에서 구매자가 할 행동(입력 칸 포함). `BUYER_ACTION`이면 하나 이상이다. 취소·반품 요청·구매확정은 `actions`(주문상품)에 있다"),
|
|
608
630
|
data: z.object({ delivery: z.object({
|
|
@@ -1301,6 +1323,8 @@ get: () => http.request("GET", "/store", storefrontStoreSchema) },
|
|
|
1301
1323
|
},
|
|
1302
1324
|
myClaims: {
|
|
1303
1325
|
create: (orderItemId, body) => http.request("POST", path`/me/order-items/${orderItemId}/claims`, createClaimResultSchema, { body: createClaimRequestSchema.parse(body) }),
|
|
1326
|
+
/** `POST /me/order-items/{id}/claims/preview` — 신청 전 예상 환불·차감. 접수하지 않는다(#115) */
|
|
1327
|
+
preview: (orderItemId, body) => http.request("POST", path`/me/order-items/${orderItemId}/claims/preview`, claimPreviewSchema, { body: createClaimRequestSchema.parse(body) }),
|
|
1304
1328
|
list: (params) => http.request("GET", "/me/claims", pageSchema(myClaimSchema), { query: params }),
|
|
1305
1329
|
withdraw: (claimId) => http.requestVoid("POST", path`/me/claims/${claimId}/withdraw`)
|
|
1306
1330
|
},
|
|
@@ -1357,4 +1381,4 @@ get: () => http.request("GET", "/store", storefrontStoreSchema) },
|
|
|
1357
1381
|
};
|
|
1358
1382
|
}
|
|
1359
1383
|
//#endregion
|
|
1360
|
-
export { orderStepSchema as $, wishlistAddResultSchema as A,
|
|
1384
|
+
export { orderStepSchema as $, wishlistAddResultSchema as A, anonymousSessionSchema as At, consentSourceSchema as B, tokenPairSchema as Bt, orderShippingAddressSchema as C, orderItemStatusSchema as Ct, memberAddressSchema as D, cartItemSchema as Dt, memberAddressRequestSchema as E, addCartItemRequestSchema as Et, createCustomerInquiryRequestSchema as F, linkIdentityRequestSchema as Ft, flowActionRequestSchema as G, toApiError as Gt, consentUpdateRequestSchema as H, withdrawalBlockedDetailsSchema as Ht, customerInquiryCategorySchema as I, loginRequestSchema as It, flowFieldValueSchema as J, flowActionResultSchema as K, unwrapData as Kt, customerInquirySchema as L, memberIdentitiesSchema as Lt, createInquiryResultSchema as M, idpAuthorizeRequestSchema as Mt, productInquiryCategorySchema as N, idpAuthorizeResponseSchema as Nt, memberSchema as O, cartSchema as Ot, publicInquirySchema as P, idpTokenRequestSchema as Pt, orderFlowActionResultSchema as Q, consentActionSchema as R, signupRequestSchema as Rt, myOrderSchema as S, claimStatusSchema as St, trackingStageResponseSchema as T, pageSchema as Tt, memberConsentsSchema as U, ApiError as Ut, consentStateSchema as V, withdrawRequestSchema as Vt, ORDER_STEP_TYPES as W, buildQuery as Wt, flowStateSchema as X, flowInputFieldSchema as Y, guestFlowActionRequestSchema as Z, memberPointEntrySchema as _, productPageSchema as _t, myReviewSchema as a, createClaimResultSchema as at, deliveryTrackingSchema as b, storefrontCollectionListQuerySchema as bt, publicReviewSchema as c, formatOrderNo as ct, reviewSummarySchema as d, collectionProductPageSchema as dt, claimPreviewSchema as et, updateReviewRequestSchema as f, collectionProductQuerySchema as ft, memberPointEntryPageSchema as g, productFacetsSchema as gt, writableReviewSchema as h, productDetailSchema as ht, createReviewResultSchema as i, createClaimRequestSchema as it, createInquiryRequestSchema as j, idpAgreementsSchema as jt, updateProfileRequestSchema as k, updateCartItemRequestSchema as kt, reviewImageUploadRequestSchema as l, parseOrderNo as lt, uploadTicketSchema as m, productCardSchema as mt, storefrontStoreSchema as n, claimReturnAddressSchema as nt, productReviewQuerySchema as o, myClaimSchema as ot, updateReviewResultSchema as p, collectionProductSortSchema as pt, flowActionSchema as q, createReviewRequestSchema as r, claimTypeSchema as rt, productReviewSortSchema as s, commerceNumberField as st, createStorefrontClient as t, claimReasonSchema as tt, reviewPageSchema as u, categoryNodeSchema as ut, memberPointsSchema as v, productSortSchema as vt, purchaseDecisionResultSchema as w, pageInfoSchema as wt, myOrderItemSchema as x, storefrontCollectionSchema as xt, storefrontPointPolicySchema as y, storefrontCollectionDetailSchema as yt, consentKindSchema as z, socialProviderSchema as zt };
|
|
@@ -1307,6 +1307,21 @@ declare const createClaimResultSchema: z.ZodObject<{
|
|
|
1307
1307
|
pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1308
1308
|
}, z.core.$strip>;
|
|
1309
1309
|
type CreateClaimResult = z.infer<typeof createClaimResultSchema>;
|
|
1310
|
+
/**
|
|
1311
|
+
* 신청 전 미리보기(#115 G49) — 접수와 같은 판정·계산을 저장 없이 돌린다. 접수할 수 없으면 접수와 같은 오류(409 등)다.
|
|
1312
|
+
* 금액은 지금 시점의 예상값이다(차감은 접수 시각의 흐름 식으로 다시 계산한다)
|
|
1313
|
+
*/
|
|
1314
|
+
declare const claimPreviewSchema: z.ZodObject<{
|
|
1315
|
+
quantity: z.ZodNumber;
|
|
1316
|
+
expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
|
|
1317
|
+
claimDeliveryFee: z.ZodNumber;
|
|
1318
|
+
deliveryFeeRefundAmount: z.ZodNumber;
|
|
1319
|
+
couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1320
|
+
couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1321
|
+
pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1322
|
+
deductAmount: z.ZodNumber;
|
|
1323
|
+
}, z.core.$strip>;
|
|
1324
|
+
type ClaimPreview = z.infer<typeof claimPreviewSchema>;
|
|
1310
1325
|
/**
|
|
1311
1326
|
* 반품지 (이슈 #30) — 반품·교환 수거가 안내하는 주소다. 상점 주소록의 기본 반품지이거나,
|
|
1312
1327
|
* 상품이 반품지를 따로 지정했으면 그 주소다.
|
|
@@ -3132,6 +3147,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3132
3147
|
message?: string | undefined;
|
|
3133
3148
|
deadlineAt?: string | undefined;
|
|
3134
3149
|
attachments?: string[] | undefined;
|
|
3150
|
+
earlierAttachments?: string[] | undefined;
|
|
3135
3151
|
inputs?: {
|
|
3136
3152
|
by: string;
|
|
3137
3153
|
values: {
|
|
@@ -3162,7 +3178,14 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3162
3178
|
placeholder?: string | undefined;
|
|
3163
3179
|
maxLength?: number | undefined;
|
|
3164
3180
|
maxFiles?: number | undefined;
|
|
3165
|
-
options?: (string | number
|
|
3181
|
+
options?: (string | number | {
|
|
3182
|
+
value: string;
|
|
3183
|
+
label: string;
|
|
3184
|
+
})[] | undefined;
|
|
3185
|
+
when?: {
|
|
3186
|
+
key: string;
|
|
3187
|
+
in: string[];
|
|
3188
|
+
} | undefined;
|
|
3166
3189
|
}[] | undefined;
|
|
3167
3190
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3168
3191
|
}[] | undefined;
|
|
@@ -3175,6 +3198,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3175
3198
|
message?: string | undefined;
|
|
3176
3199
|
deadlineAt?: string | undefined;
|
|
3177
3200
|
attachments?: string[] | undefined;
|
|
3201
|
+
earlierAttachments?: string[] | undefined;
|
|
3178
3202
|
inputs?: {
|
|
3179
3203
|
by: string;
|
|
3180
3204
|
values: {
|
|
@@ -3208,13 +3232,21 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3208
3232
|
placeholder?: string | undefined;
|
|
3209
3233
|
maxLength?: number | undefined;
|
|
3210
3234
|
maxFiles?: number | undefined;
|
|
3211
|
-
options?: (string | number
|
|
3235
|
+
options?: (string | number | {
|
|
3236
|
+
value: string;
|
|
3237
|
+
label: string;
|
|
3238
|
+
})[] | undefined;
|
|
3239
|
+
when?: {
|
|
3240
|
+
key: string;
|
|
3241
|
+
in: string[];
|
|
3242
|
+
} | undefined;
|
|
3212
3243
|
}[] | undefined;
|
|
3213
3244
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3214
3245
|
}[];
|
|
3215
3246
|
message?: string | undefined;
|
|
3216
3247
|
deadlineAt?: string | undefined;
|
|
3217
3248
|
attachments?: string[] | undefined;
|
|
3249
|
+
earlierAttachments?: string[] | undefined;
|
|
3218
3250
|
inputs?: {
|
|
3219
3251
|
by: string;
|
|
3220
3252
|
values: {
|
|
@@ -3342,6 +3374,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3342
3374
|
message?: string | undefined;
|
|
3343
3375
|
deadlineAt?: string | undefined;
|
|
3344
3376
|
attachments?: string[] | undefined;
|
|
3377
|
+
earlierAttachments?: string[] | undefined;
|
|
3345
3378
|
inputs?: {
|
|
3346
3379
|
by: string;
|
|
3347
3380
|
values: {
|
|
@@ -3372,7 +3405,14 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3372
3405
|
placeholder?: string | undefined;
|
|
3373
3406
|
maxLength?: number | undefined;
|
|
3374
3407
|
maxFiles?: number | undefined;
|
|
3375
|
-
options?: (string | number
|
|
3408
|
+
options?: (string | number | {
|
|
3409
|
+
value: string;
|
|
3410
|
+
label: string;
|
|
3411
|
+
})[] | undefined;
|
|
3412
|
+
when?: {
|
|
3413
|
+
key: string;
|
|
3414
|
+
in: string[];
|
|
3415
|
+
} | undefined;
|
|
3376
3416
|
}[] | undefined;
|
|
3377
3417
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3378
3418
|
}[] | undefined;
|
|
@@ -3385,6 +3425,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3385
3425
|
message?: string | undefined;
|
|
3386
3426
|
deadlineAt?: string | undefined;
|
|
3387
3427
|
attachments?: string[] | undefined;
|
|
3428
|
+
earlierAttachments?: string[] | undefined;
|
|
3388
3429
|
inputs?: {
|
|
3389
3430
|
by: string;
|
|
3390
3431
|
values: {
|
|
@@ -3418,13 +3459,21 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3418
3459
|
placeholder?: string | undefined;
|
|
3419
3460
|
maxLength?: number | undefined;
|
|
3420
3461
|
maxFiles?: number | undefined;
|
|
3421
|
-
options?: (string | number
|
|
3462
|
+
options?: (string | number | {
|
|
3463
|
+
value: string;
|
|
3464
|
+
label: string;
|
|
3465
|
+
})[] | undefined;
|
|
3466
|
+
when?: {
|
|
3467
|
+
key: string;
|
|
3468
|
+
in: string[];
|
|
3469
|
+
} | undefined;
|
|
3422
3470
|
}[] | undefined;
|
|
3423
3471
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3424
3472
|
}[];
|
|
3425
3473
|
message?: string | undefined;
|
|
3426
3474
|
deadlineAt?: string | undefined;
|
|
3427
3475
|
attachments?: string[] | undefined;
|
|
3476
|
+
earlierAttachments?: string[] | undefined;
|
|
3428
3477
|
inputs?: {
|
|
3429
3478
|
by: string;
|
|
3430
3479
|
values: {
|
|
@@ -3563,6 +3612,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3563
3612
|
message?: string | undefined;
|
|
3564
3613
|
deadlineAt?: string | undefined;
|
|
3565
3614
|
attachments?: string[] | undefined;
|
|
3615
|
+
earlierAttachments?: string[] | undefined;
|
|
3566
3616
|
inputs?: {
|
|
3567
3617
|
by: string;
|
|
3568
3618
|
values: {
|
|
@@ -3593,7 +3643,14 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3593
3643
|
placeholder?: string | undefined;
|
|
3594
3644
|
maxLength?: number | undefined;
|
|
3595
3645
|
maxFiles?: number | undefined;
|
|
3596
|
-
options?: (string | number
|
|
3646
|
+
options?: (string | number | {
|
|
3647
|
+
value: string;
|
|
3648
|
+
label: string;
|
|
3649
|
+
})[] | undefined;
|
|
3650
|
+
when?: {
|
|
3651
|
+
key: string;
|
|
3652
|
+
in: string[];
|
|
3653
|
+
} | undefined;
|
|
3597
3654
|
}[] | undefined;
|
|
3598
3655
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3599
3656
|
}[] | undefined;
|
|
@@ -3606,6 +3663,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3606
3663
|
message?: string | undefined;
|
|
3607
3664
|
deadlineAt?: string | undefined;
|
|
3608
3665
|
attachments?: string[] | undefined;
|
|
3666
|
+
earlierAttachments?: string[] | undefined;
|
|
3609
3667
|
inputs?: {
|
|
3610
3668
|
by: string;
|
|
3611
3669
|
values: {
|
|
@@ -3639,13 +3697,21 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3639
3697
|
placeholder?: string | undefined;
|
|
3640
3698
|
maxLength?: number | undefined;
|
|
3641
3699
|
maxFiles?: number | undefined;
|
|
3642
|
-
options?: (string | number
|
|
3700
|
+
options?: (string | number | {
|
|
3701
|
+
value: string;
|
|
3702
|
+
label: string;
|
|
3703
|
+
})[] | undefined;
|
|
3704
|
+
when?: {
|
|
3705
|
+
key: string;
|
|
3706
|
+
in: string[];
|
|
3707
|
+
} | undefined;
|
|
3643
3708
|
}[] | undefined;
|
|
3644
3709
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3645
3710
|
}[];
|
|
3646
3711
|
message?: string | undefined;
|
|
3647
3712
|
deadlineAt?: string | undefined;
|
|
3648
3713
|
attachments?: string[] | undefined;
|
|
3714
|
+
earlierAttachments?: string[] | undefined;
|
|
3649
3715
|
inputs?: {
|
|
3650
3716
|
by: string;
|
|
3651
3717
|
values: {
|
|
@@ -3732,6 +3798,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3732
3798
|
message?: string | undefined;
|
|
3733
3799
|
deadlineAt?: string | undefined;
|
|
3734
3800
|
attachments?: string[] | undefined;
|
|
3801
|
+
earlierAttachments?: string[] | undefined;
|
|
3735
3802
|
inputs?: {
|
|
3736
3803
|
by: string;
|
|
3737
3804
|
values: {
|
|
@@ -3762,7 +3829,14 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3762
3829
|
placeholder?: string | undefined;
|
|
3763
3830
|
maxLength?: number | undefined;
|
|
3764
3831
|
maxFiles?: number | undefined;
|
|
3765
|
-
options?: (string | number
|
|
3832
|
+
options?: (string | number | {
|
|
3833
|
+
value: string;
|
|
3834
|
+
label: string;
|
|
3835
|
+
})[] | undefined;
|
|
3836
|
+
when?: {
|
|
3837
|
+
key: string;
|
|
3838
|
+
in: string[];
|
|
3839
|
+
} | undefined;
|
|
3766
3840
|
}[] | undefined;
|
|
3767
3841
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3768
3842
|
}[];
|
|
@@ -3788,6 +3862,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3788
3862
|
message?: string | undefined;
|
|
3789
3863
|
deadlineAt?: string | undefined;
|
|
3790
3864
|
attachments?: string[] | undefined;
|
|
3865
|
+
earlierAttachments?: string[] | undefined;
|
|
3791
3866
|
inputs?: {
|
|
3792
3867
|
by: string;
|
|
3793
3868
|
values: {
|
|
@@ -3818,7 +3893,14 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3818
3893
|
placeholder?: string | undefined;
|
|
3819
3894
|
maxLength?: number | undefined;
|
|
3820
3895
|
maxFiles?: number | undefined;
|
|
3821
|
-
options?: (string | number
|
|
3896
|
+
options?: (string | number | {
|
|
3897
|
+
value: string;
|
|
3898
|
+
label: string;
|
|
3899
|
+
})[] | undefined;
|
|
3900
|
+
when?: {
|
|
3901
|
+
key: string;
|
|
3902
|
+
in: string[];
|
|
3903
|
+
} | undefined;
|
|
3822
3904
|
}[] | undefined;
|
|
3823
3905
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3824
3906
|
}[];
|
|
@@ -3871,6 +3953,17 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3871
3953
|
couponChargeRefundAmount: number;
|
|
3872
3954
|
pointRefundAmount: number;
|
|
3873
3955
|
}>;
|
|
3956
|
+
/** `POST /me/order-items/{id}/claims/preview` — 신청 전 예상 환불·차감. 접수하지 않는다(#115) */
|
|
3957
|
+
preview: (orderItemId: string, body: CreateClaimRequest) => Promise<{
|
|
3958
|
+
quantity: number;
|
|
3959
|
+
expectedRefundAmount: number | null;
|
|
3960
|
+
claimDeliveryFee: number;
|
|
3961
|
+
deliveryFeeRefundAmount: number;
|
|
3962
|
+
couponChargeAmount: number;
|
|
3963
|
+
couponChargeRefundAmount: number;
|
|
3964
|
+
pointRefundAmount: number;
|
|
3965
|
+
deductAmount: number;
|
|
3966
|
+
}>;
|
|
3874
3967
|
list: (params?: PageParams & {
|
|
3875
3968
|
status?: ClaimStatus;
|
|
3876
3969
|
}) => Promise<{
|
|
@@ -4346,7 +4439,14 @@ declare const flowInputFieldSchema: z.ZodObject<{
|
|
|
4346
4439
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
4347
4440
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4348
4441
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4349
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber
|
|
4442
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
4443
|
+
value: z.ZodString;
|
|
4444
|
+
label: z.ZodString;
|
|
4445
|
+
}, z.core.$strip>]>>>;
|
|
4446
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4447
|
+
key: z.ZodString;
|
|
4448
|
+
in: z.ZodArray<z.ZodString>;
|
|
4449
|
+
}, z.core.$strip>>;
|
|
4350
4450
|
}, z.core.$strip>;
|
|
4351
4451
|
type FlowInputField = z.infer<typeof flowInputFieldSchema>;
|
|
4352
4452
|
declare const flowActionSchema: z.ZodObject<{
|
|
@@ -4372,7 +4472,14 @@ declare const flowActionSchema: z.ZodObject<{
|
|
|
4372
4472
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
4373
4473
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4374
4474
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4375
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber
|
|
4475
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
4476
|
+
value: z.ZodString;
|
|
4477
|
+
label: z.ZodString;
|
|
4478
|
+
}, z.core.$strip>]>>>;
|
|
4479
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4480
|
+
key: z.ZodString;
|
|
4481
|
+
in: z.ZodArray<z.ZodString>;
|
|
4482
|
+
}, z.core.$strip>>;
|
|
4376
4483
|
}, z.core.$strip>>>;
|
|
4377
4484
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4378
4485
|
}, z.core.$strip>;
|
|
@@ -4397,6 +4504,7 @@ declare const flowStateSchema: z.ZodObject<{
|
|
|
4397
4504
|
enteredAt: z.ZodString;
|
|
4398
4505
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4399
4506
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4507
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4400
4508
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4401
4509
|
by: z.ZodString;
|
|
4402
4510
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -4421,6 +4529,7 @@ declare const orderStepSchema: z.ZodObject<{
|
|
|
4421
4529
|
message: z.ZodOptional<z.ZodString>;
|
|
4422
4530
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4423
4531
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4532
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4424
4533
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4425
4534
|
by: z.ZodString;
|
|
4426
4535
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -4453,7 +4562,14 @@ declare const orderStepSchema: z.ZodObject<{
|
|
|
4453
4562
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
4454
4563
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4455
4564
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4456
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber
|
|
4565
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
4566
|
+
value: z.ZodString;
|
|
4567
|
+
label: z.ZodString;
|
|
4568
|
+
}, z.core.$strip>]>>>;
|
|
4569
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4570
|
+
key: z.ZodString;
|
|
4571
|
+
in: z.ZodArray<z.ZodString>;
|
|
4572
|
+
}, z.core.$strip>>;
|
|
4457
4573
|
}, z.core.$strip>>>;
|
|
4458
4574
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4459
4575
|
}, z.core.$strip>>;
|
|
@@ -4497,6 +4613,7 @@ declare const flowActionResultSchema: z.ZodObject<{
|
|
|
4497
4613
|
enteredAt: z.ZodString;
|
|
4498
4614
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4499
4615
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4616
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4500
4617
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4501
4618
|
by: z.ZodString;
|
|
4502
4619
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -4532,7 +4649,14 @@ declare const flowActionResultSchema: z.ZodObject<{
|
|
|
4532
4649
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
4533
4650
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4534
4651
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4535
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber
|
|
4652
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
4653
|
+
value: z.ZodString;
|
|
4654
|
+
label: z.ZodString;
|
|
4655
|
+
}, z.core.$strip>]>>>;
|
|
4656
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4657
|
+
key: z.ZodString;
|
|
4658
|
+
in: z.ZodArray<z.ZodString>;
|
|
4659
|
+
}, z.core.$strip>>;
|
|
4536
4660
|
}, z.core.$strip>>>;
|
|
4537
4661
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4538
4662
|
}, z.core.$strip>>;
|
|
@@ -4652,6 +4776,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4652
4776
|
enteredAt: z.ZodString;
|
|
4653
4777
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4654
4778
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4779
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4655
4780
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4656
4781
|
by: z.ZodString;
|
|
4657
4782
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -4687,7 +4812,14 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4687
4812
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
4688
4813
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4689
4814
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4690
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber
|
|
4815
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
4816
|
+
value: z.ZodString;
|
|
4817
|
+
label: z.ZodString;
|
|
4818
|
+
}, z.core.$strip>]>>>;
|
|
4819
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4820
|
+
key: z.ZodString;
|
|
4821
|
+
in: z.ZodArray<z.ZodString>;
|
|
4822
|
+
}, z.core.$strip>>;
|
|
4691
4823
|
}, z.core.$strip>>>;
|
|
4692
4824
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4693
4825
|
}, z.core.$strip>>>;
|
|
@@ -4708,6 +4840,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4708
4840
|
enteredAt: z.ZodString;
|
|
4709
4841
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4710
4842
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4843
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4711
4844
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4712
4845
|
by: z.ZodString;
|
|
4713
4846
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -4726,6 +4859,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4726
4859
|
message: z.ZodOptional<z.ZodString>;
|
|
4727
4860
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4728
4861
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4862
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4729
4863
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4730
4864
|
by: z.ZodString;
|
|
4731
4865
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -4758,7 +4892,14 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4758
4892
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
4759
4893
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4760
4894
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4761
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber
|
|
4895
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
4896
|
+
value: z.ZodString;
|
|
4897
|
+
label: z.ZodString;
|
|
4898
|
+
}, z.core.$strip>]>>>;
|
|
4899
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4900
|
+
key: z.ZodString;
|
|
4901
|
+
in: z.ZodArray<z.ZodString>;
|
|
4902
|
+
}, z.core.$strip>>;
|
|
4762
4903
|
}, z.core.$strip>>>;
|
|
4763
4904
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4764
4905
|
}, z.core.$strip>>;
|
|
@@ -4899,6 +5040,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
4899
5040
|
enteredAt: z.ZodString;
|
|
4900
5041
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4901
5042
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5043
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4902
5044
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4903
5045
|
by: z.ZodString;
|
|
4904
5046
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -4934,7 +5076,14 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
4934
5076
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
4935
5077
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4936
5078
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4937
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber
|
|
5079
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
5080
|
+
value: z.ZodString;
|
|
5081
|
+
label: z.ZodString;
|
|
5082
|
+
}, z.core.$strip>]>>>;
|
|
5083
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
5084
|
+
key: z.ZodString;
|
|
5085
|
+
in: z.ZodArray<z.ZodString>;
|
|
5086
|
+
}, z.core.$strip>>;
|
|
4938
5087
|
}, z.core.$strip>>>;
|
|
4939
5088
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4940
5089
|
}, z.core.$strip>>>;
|
|
@@ -4955,6 +5104,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
4955
5104
|
enteredAt: z.ZodString;
|
|
4956
5105
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4957
5106
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5107
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4958
5108
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4959
5109
|
by: z.ZodString;
|
|
4960
5110
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -4973,6 +5123,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
4973
5123
|
message: z.ZodOptional<z.ZodString>;
|
|
4974
5124
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4975
5125
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5126
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4976
5127
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4977
5128
|
by: z.ZodString;
|
|
4978
5129
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -5005,7 +5156,14 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5005
5156
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
5006
5157
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
5007
5158
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
5008
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber
|
|
5159
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
5160
|
+
value: z.ZodString;
|
|
5161
|
+
label: z.ZodString;
|
|
5162
|
+
}, z.core.$strip>]>>>;
|
|
5163
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
5164
|
+
key: z.ZodString;
|
|
5165
|
+
in: z.ZodArray<z.ZodString>;
|
|
5166
|
+
}, z.core.$strip>>;
|
|
5009
5167
|
}, z.core.$strip>>>;
|
|
5010
5168
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
5011
5169
|
}, z.core.$strip>>;
|
|
@@ -5228,4 +5386,4 @@ declare const storefrontStoreSchema: z.ZodObject<{
|
|
|
5228
5386
|
}, z.core.$strip>;
|
|
5229
5387
|
type StorefrontStore = z.infer<typeof storefrontStoreSchema>;
|
|
5230
5388
|
//#endregion
|
|
5231
|
-
export { ANALYTICS_VISITOR_HEADER as $,
|
|
5389
|
+
export { ANALYTICS_VISITOR_HEADER as $, storefrontCollectionDetailSchema as $i, storefrontCouponListQuerySchema as $n, RemoteArea as $r, customInputEntrySchema as $t, FlowAction as A, shippingAddressInputSchema as Ai, createCustomerInquiryRequestSchema as An, CashReceiptIdentityType as Ar, WritableReview as At, flowActionRequestSchema as B, ProductSearchParams as Bi, MyCoupon as Bn, KnownPaymentResult as Br, updateReviewRequestSchema as Bt, myOrderSchema as C, CartItem as Ca, paymentStartSchema as Ci, createInquiryRequestSchema as Cn, claimReturnAddressSchema as Cr, PublicReview as Ct, commerceNumberField as D, cartSchema as Da, residentNumberLike as Di, CreateCustomerInquiryRequest as Dn, myClaimSchema as Dr, UpdateReviewRequest as Dt, trackingStageResponseSchema as E, cartItemSchema as Ea, remoteAreaSchema as Ei, publicInquirySchema as En, createClaimResultSchema as Er, ReviewSummary as Et, FlowState as F, CollectionProductSortParam as Fi, CheckoutPricingRequest as Fn, CreateCheckoutRequest as Fr, productReviewSortSchema as Ft, flowStateSchema as G, collectionProductPageSchema as Gi, checkoutPricingSchema as Gn, PAYMENT_STATUS_VALUES as Gr, AddonSelection as Gt, flowActionSchema as H, StorefrontCollection as Hi, StorefrontCouponListParams as Hn, KnownPaymentStatus as Hr, uploadTicketSchema as Ht, GuestFlowActionRequest as I, ProductCard as Ii, CouponApplication as In, DeliveryQuoteRequest as Ir, publicReviewSchema as It, orderStepSchema as J, productCardSchema as Ji, couponBenefitViewSchema as Jn, PaymentMethod as Jr, CustomInputView as Jt, guestFlowActionRequestSchema as K, collectionProductQuerySchema as Ki, couponApplicationListSchema as Kn, PaymentFailureCategory as Kr, CustomInputEntry as Kt, ORDER_STEP_TYPES as L, ProductDetail as Li, CouponResult as Ln, DeliveryQuoteResult as Lr, reviewImageUploadRequestSchema as Lt, FlowActionResult as M, CategoryNode as Mi, customerInquirySchema as Mn, CashReceiptType as Mr, createReviewResultSchema as Mt, FlowFieldValue as N, CollectionProductPage as Ni, ApplicableCoupon as Nn, CheckoutDelivery as Nr, myReviewSchema as Nt, formatOrderNo as O, updateCartItemRequestSchema as Oa, responsePaymentMethodSchema as Oi, CustomerInquiry as On, AvailablePaymentOption as Or, UpdateReviewResult as Ot, FlowInputField as P, CollectionProductParams as Pi, CheckoutPricing as Pn, CheckoutSession as Pr, productReviewQuerySchema as Pt, ANALYTICS_VISITOR_COOKIE as Q, productSortSchema as Qi, pricingAmountsSchema as Qn, PgProvider as Qr, addonSelectionSchema as Qt, OrderFlowActionResult as R, ProductFacets as Ri, MAX_COUPONS_PER_CHECKOUT as Rn, EasyPayProvider as Rr, reviewPageSchema as Rt, myOrderItemSchema as S, Cart as Sa, paymentOptionSchema as Si, PublicInquiry as Sn, claimReasonSchema as Sr, ProductReviewSort as St, purchaseDecisionResultSchema as T, addCartItemRequestSchema as Ta, pgProviderSchema as Ti, productInquiryCategorySchema as Tn, createClaimRequestSchema as Tr, ReviewPage as Tt, flowFieldValueSchema as U, StorefrontCollectionDetail as Ui, applicableCouponSchema as Un, PAYMENT_RESULT_VALUES as Ur, writableReviewSchema as Ut, flowActionResultSchema as V, ProductSort as Vi, StorefrontCoupon as Vn, KnownPaymentStartStatus as Vr, updateReviewResultSchema as Vt, flowInputFieldSchema as W, categoryNodeSchema as Wi, checkoutPricingRequestSchema as Wn, PAYMENT_START_STATUS_VALUES as Wr, AddonGroupView as Wt, ANALYTICS_SESSION_COOKIE as X, productFacetsSchema as Xi, myCouponListQuerySchema as Xn, PaymentStart as Xr, OrderInputUploadRequest as Xt, ANALYTICS_MAX_BATCH_BYTES as Y, productDetailSchema as Yi, couponResultSchema as Yn, PaymentOption as Yr, OptionSelectionView as Yt, ANALYTICS_SESSION_HEADER as Z, productPageSchema as Zi, myCouponSchema as Zn, PaymentStatus as Zr, addonGroupViewSchema as Zt, MyOrder as _, myOrderItemFulfillmentSnapshotSchema as _a, paymentFailureCategorySchema as _i, updateProfileRequestSchema as _n, ClaimType as _r, createStorefrontSession as _t, StayView as a, PageParams as aa, cashReceiptAvailable as ai, normalizeCustomInputValue as an, ConsentState as ar, analyticsBatchSchema as at, PurchaseDecisionResult as b, productFulfillmentViewSchema as ba, paymentOptionKey as bi, CreateInquiryResult as bn, MyClaim as br, MyReview as bt, stayViewSchema as c, pageInfoSchema as ca, cashReceiptTypeSchema as ci, parseCustomInputValue as cn, consentActionSchema as cr, analyticsIdSchema as ct, StorefrontPointPolicy as d, MyOrderItemFulfillmentSnapshot as da, createCheckoutRequestSchema as di, MemberAddressRequest as dn, consentStateSchema as dr, StorefrontClientOptions as dt, storefrontCollectionListQuerySchema as ea, ResponsePaymentMethod as ei, customInputLength as en, storefrontCouponSchema as er, AnalyticsBatch as et, memberPointEntryPageSchema as f, PickupLocationView as fa, deliveryQuoteRequestSchema as fi, UpdateProfileRequest as fn, consentUpdateRequestSchema as fr, createStorefrontClient as ft, DeliveryTracking as g, lineFulfillmentSchema as ga, guestInfoSchema as gi, memberSchema as gn, ClaimReturnAddress as gr, StorefrontSessionOptions as gt, storefrontPointPolicySchema as h, UnknownFulfillmentView as ha, easyPayProviderSchema as hi, memberAddressSchema as hn, ClaimReason as hr, StorefrontSession as ht, StayRequest as i, PageInfo as ia, availablePaymentOptionSchema as ii, lineSelectionResponseShape as in, ConsentSource as ir, AnalyticsServerEventName as it, FlowActionRequest as j, startPaymentRequestSchema as ji, customerInquiryCategorySchema as jn, CashReceiptRequest as jr, createReviewRequestSchema as jt, parseOrderNo as k, analyticsIdsFromCookie as ka, retryPaymentRequestSchema as ki, CustomerInquiryCategory as kn, CASH_RECEIPT_METHODS as kr, UploadTicket as kt, MemberPointEntry as l, pageSchema as la, checkoutDeliverySchema as li, Member as ln, consentKindSchema as lr, analyticsServerEventNameSchema as lt, memberPointsSchema as m, ProductFulfillmentView as ma, easyPayProviderResponseSchema as mi, memberAddressRequestSchema as mn, ClaimPreview as mr, SessionStorage as mt, storefrontStoreSchema as n, ClaimStatus as na, ShippingAddressInput as ni, customInputViewSchema as nn, ConsentAction as nr, AnalyticsClientEventName as nt, calendarDayViewSchema as o, claimStatusSchema as oa, cashReceiptIdentityTypeOf as oi, optionSelectionViewSchema as on, ConsentUpdateRequest as or, analyticsClientEventNameSchema as ot, memberPointEntrySchema as p, ProductCardFulfillment as pa, deliveryQuoteSchema as pi, WishlistAddResult as pn, memberConsentsSchema as pr, STOREFRONT_SESSION_KEYS as pt, orderFlowActionResultSchema as q, collectionProductSortSchema as qi, couponApplicationSchema as qn, PaymentMessage as qr, CustomInputValueView as qt, CalendarDayView as r, OrderItemStatus as ra, StartPaymentRequest as ri, lineSelectionRequestShape as rn, ConsentKind as rr, AnalyticsEventName as rt, stayRequestSchema as s, orderItemStatusSchema as sa, cashReceiptRequestSchema as si, orderInputUploadRequestSchema as sn, MemberConsents as sr, analyticsClientEventSchema as st, StorefrontStore as t, storefrontCollectionSchema as ta, RetryPaymentRequest as ti, customInputValueViewSchema as tn, storefrontCouponTargetSchema as tr, AnalyticsClientEvent as tt, MemberPoints as u, LineFulfillment as ua, checkoutSessionSchema as ui, MemberAddress as un, consentSourceSchema as ur, StorefrontClient as ut, MyOrderItem as v, pickupLocationViewSchema as va, paymentMessageSchema as vi, wishlistAddResultSchema as vn, CreateClaimRequest as vr, CreateReviewRequest as vt, orderShippingAddressSchema as w, UpdateCartItemRequest as wa, paymentStatusSchema as wi, createInquiryResultSchema as wn, claimTypeSchema as wr, ReviewImageUploadRequest as wt, deliveryTrackingSchema as x, AddCartItemRequest as xa, paymentOptionListSchema as xi, ProductInquiryCategory as xn, claimPreviewSchema as xr, ProductReviewParams as xt, OrderShippingAddress as y, productCardFulfillmentSchema as ya, paymentMethodSchema as yi, CreateInquiryRequest as yn, CreateClaimResult as yr, CreateReviewResult as yt, OrderStep as z, ProductPage as zi, MIN_PAYMENT_AMOUNT as zn, GuestInfo as zr, reviewSummarySchema as zt };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { C as loginRequestSchema, D as tokenPairSchema, E as socialProviderSchema, O as withdrawRequestSchema, S as linkIdentityRequestSchema, T as signupRequestSchema, _ as anonymousSessionSchema, a as AnonymousSession, b as idpAuthorizeResponseSchema, c as IdpTokenRequest, d as MemberIdentities, f as SignupRequest, g as WithdrawalBlockedDetails, h as WithdrawRequest, i as buildQuery, k as withdrawalBlockedDetailsSchema, l as LinkIdentityRequest, m as TokenPair, n as Query, o as IdpAgreements, p as SocialProvider, r as TokenSource, s as IdpAuthorizeRequest, t as ApiError, u as LoginRequest, v as idpAgreementsSchema, w as memberIdentitiesSchema, x as idpTokenRequestSchema, y as idpAuthorizeRequestSchema } from "./http-1ab7tP4-.mjs";
|
|
2
|
-
import { $ as ANALYTICS_VISITOR_HEADER, $i as
|
|
3
|
-
export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, AddCartItemRequest, AddonGroupView, AddonSelection, AnalyticsBatch, AnalyticsClientEvent, AnalyticsClientEventName, AnalyticsEventName, AnalyticsServerEventName, AnonymousSession, ApiError, ApplicableCoupon, AvailablePaymentOption, CASH_RECEIPT_METHODS, CalendarDayView, Cart, CartItem, CashReceiptIdentityType, CashReceiptRequest, CashReceiptType, CategoryNode, CheckoutDelivery, CheckoutPricing, CheckoutPricingRequest, CheckoutSession, ClaimReason, ClaimReturnAddress, ClaimStatus, ClaimType, CollectionProductPage, CollectionProductParams, CollectionProductSortParam, ConsentAction, ConsentKind, ConsentSource, ConsentState, ConsentUpdateRequest, CouponApplication, CouponResult, CreateCheckoutRequest, CreateClaimRequest, CreateClaimResult, CreateCustomerInquiryRequest, CreateInquiryRequest, CreateInquiryResult, CreateReviewRequest, CreateReviewResult, CustomInputEntry, CustomInputValueView, CustomInputView, CustomerInquiry, CustomerInquiryCategory, DeliveryQuoteRequest, DeliveryQuoteResult, DeliveryTracking, EasyPayProvider, FlowAction, FlowActionRequest, FlowActionResult, FlowFieldValue, FlowInputField, FlowState, GuestFlowActionRequest, GuestInfo, IdpAgreements, IdpAuthorizeRequest, IdpTokenRequest, KnownPaymentResult, KnownPaymentStartStatus, KnownPaymentStatus, LineFulfillment, LinkIdentityRequest, LoginRequest, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, Member, MemberAddress, MemberAddressRequest, MemberConsents, MemberIdentities, MemberPointEntry, MemberPoints, MyClaim, MyCoupon, MyOrder, MyOrderItem, MyOrderItemFulfillmentSnapshot, MyReview, ORDER_STEP_TYPES, OptionSelectionView, OrderFlowActionResult, OrderInputUploadRequest, OrderItemStatus, OrderShippingAddress, OrderStep, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, PageInfo, PageParams, PaymentFailureCategory, PaymentMessage, PaymentMethod, PaymentOption, PaymentStart, PaymentStatus, PgProvider, PickupLocationView, ProductCard, ProductCardFulfillment, ProductDetail, ProductFacets, ProductFulfillmentView, ProductInquiryCategory, ProductPage, ProductReviewParams, ProductReviewSort, ProductSearchParams, ProductSort, PublicInquiry, PublicReview, PurchaseDecisionResult, type Query, RemoteArea, ResponsePaymentMethod, RetryPaymentRequest, ReviewImageUploadRequest, ReviewPage, ReviewSummary, STOREFRONT_SESSION_KEYS, type SessionStorage, ShippingAddressInput, SignupRequest, SocialProvider, StartPaymentRequest, StayRequest, StayView, type StorefrontClient, type StorefrontClientOptions, StorefrontCollection, StorefrontCollectionDetail, StorefrontCoupon, StorefrontCouponListParams, StorefrontPointPolicy, type StorefrontSession, type StorefrontSessionOptions, StorefrontStore, TokenPair, type TokenSource, UnknownFulfillmentView, UpdateCartItemRequest, UpdateProfileRequest, UpdateReviewRequest, UpdateReviewResult, UploadTicket, WishlistAddResult, WithdrawRequest, WithdrawalBlockedDetails, WritableReview, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, calendarDayViewSchema, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowStateSchema, formatOrderNo, guestFlowActionRequestSchema, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderFlowActionResultSchema, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, orderStepSchema, pageInfoSchema, pageSchema, parseCustomInputValue, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pickupLocationViewSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, stayRequestSchema, stayViewSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
|
|
2
|
+
import { $ as ANALYTICS_VISITOR_HEADER, $i as storefrontCollectionDetailSchema, $n as storefrontCouponListQuerySchema, $r as RemoteArea, $t as customInputEntrySchema, A as FlowAction, Ai as shippingAddressInputSchema, An as createCustomerInquiryRequestSchema, Ar as CashReceiptIdentityType, At as WritableReview, B as flowActionRequestSchema, Bi as ProductSearchParams, Bn as MyCoupon, Br as KnownPaymentResult, Bt as updateReviewRequestSchema, C as myOrderSchema, Ca as CartItem, Ci as paymentStartSchema, Cn as createInquiryRequestSchema, Cr as claimReturnAddressSchema, Ct as PublicReview, D as commerceNumberField, Da as cartSchema, Di as residentNumberLike, Dn as CreateCustomerInquiryRequest, Dr as myClaimSchema, Dt as UpdateReviewRequest, E as trackingStageResponseSchema, Ea as cartItemSchema, Ei as remoteAreaSchema, En as publicInquirySchema, Er as createClaimResultSchema, Et as ReviewSummary, F as FlowState, Fi as CollectionProductSortParam, Fn as CheckoutPricingRequest, Fr as CreateCheckoutRequest, Ft as productReviewSortSchema, G as flowStateSchema, Gi as collectionProductPageSchema, Gn as checkoutPricingSchema, Gr as PAYMENT_STATUS_VALUES, Gt as AddonSelection, H as flowActionSchema, Hi as StorefrontCollection, Hn as StorefrontCouponListParams, Hr as KnownPaymentStatus, Ht as uploadTicketSchema, I as GuestFlowActionRequest, Ii as ProductCard, In as CouponApplication, Ir as DeliveryQuoteRequest, It as publicReviewSchema, J as orderStepSchema, Ji as productCardSchema, Jn as couponBenefitViewSchema, Jr as PaymentMethod, Jt as CustomInputView, K as guestFlowActionRequestSchema, Ki as collectionProductQuerySchema, Kn as couponApplicationListSchema, Kr as PaymentFailureCategory, Kt as CustomInputEntry, L as ORDER_STEP_TYPES, Li as ProductDetail, Ln as CouponResult, Lr as DeliveryQuoteResult, Lt as reviewImageUploadRequestSchema, M as FlowActionResult, Mi as CategoryNode, Mn as customerInquirySchema, Mr as CashReceiptType, Mt as createReviewResultSchema, N as FlowFieldValue, Ni as CollectionProductPage, Nn as ApplicableCoupon, Nr as CheckoutDelivery, Nt as myReviewSchema, O as formatOrderNo, Oa as updateCartItemRequestSchema, Oi as responsePaymentMethodSchema, On as CustomerInquiry, Or as AvailablePaymentOption, Ot as UpdateReviewResult, P as FlowInputField, Pi as CollectionProductParams, Pn as CheckoutPricing, Pr as CheckoutSession, Pt as productReviewQuerySchema, Q as ANALYTICS_VISITOR_COOKIE, Qi as productSortSchema, Qn as pricingAmountsSchema, Qr as PgProvider, Qt as addonSelectionSchema, R as OrderFlowActionResult, Ri as ProductFacets, Rn as MAX_COUPONS_PER_CHECKOUT, Rr as EasyPayProvider, Rt as reviewPageSchema, S as myOrderItemSchema, Sa as Cart, Si as paymentOptionSchema, Sn as PublicInquiry, Sr as claimReasonSchema, St as ProductReviewSort, T as purchaseDecisionResultSchema, Ta as addCartItemRequestSchema, Ti as pgProviderSchema, Tn as productInquiryCategorySchema, Tr as createClaimRequestSchema, Tt as ReviewPage, U as flowFieldValueSchema, Ui as StorefrontCollectionDetail, Un as applicableCouponSchema, Ur as PAYMENT_RESULT_VALUES, Ut as writableReviewSchema, V as flowActionResultSchema, Vi as ProductSort, Vn as StorefrontCoupon, Vr as KnownPaymentStartStatus, Vt as updateReviewResultSchema, W as flowInputFieldSchema, Wi as categoryNodeSchema, Wn as checkoutPricingRequestSchema, Wr as PAYMENT_START_STATUS_VALUES, Wt as AddonGroupView, X as ANALYTICS_SESSION_COOKIE, Xi as productFacetsSchema, Xn as myCouponListQuerySchema, Xr as PaymentStart, Xt as OrderInputUploadRequest, Y as ANALYTICS_MAX_BATCH_BYTES, Yi as productDetailSchema, Yn as couponResultSchema, Yr as PaymentOption, Yt as OptionSelectionView, Z as ANALYTICS_SESSION_HEADER, Zi as productPageSchema, Zn as myCouponSchema, Zr as PaymentStatus, Zt as addonGroupViewSchema, _ as MyOrder, _a as myOrderItemFulfillmentSnapshotSchema, _i as paymentFailureCategorySchema, _n as updateProfileRequestSchema, _r as ClaimType, _t as createStorefrontSession, a as StayView, aa as PageParams, ai as cashReceiptAvailable, an as normalizeCustomInputValue, ar as ConsentState, at as analyticsBatchSchema, b as PurchaseDecisionResult, ba as productFulfillmentViewSchema, bi as paymentOptionKey, bn as CreateInquiryResult, br as MyClaim, bt as MyReview, c as stayViewSchema, ca as pageInfoSchema, ci as cashReceiptTypeSchema, cn as parseCustomInputValue, cr as consentActionSchema, ct as analyticsIdSchema, d as StorefrontPointPolicy, da as MyOrderItemFulfillmentSnapshot, di as createCheckoutRequestSchema, dn as MemberAddressRequest, dr as consentStateSchema, dt as StorefrontClientOptions, ea as storefrontCollectionListQuerySchema, ei as ResponsePaymentMethod, en as customInputLength, er as storefrontCouponSchema, et as AnalyticsBatch, f as memberPointEntryPageSchema, fa as PickupLocationView, fi as deliveryQuoteRequestSchema, fn as UpdateProfileRequest, fr as consentUpdateRequestSchema, ft as createStorefrontClient, g as DeliveryTracking, ga as lineFulfillmentSchema, gi as guestInfoSchema, gn as memberSchema, gr as ClaimReturnAddress, gt as StorefrontSessionOptions, h as storefrontPointPolicySchema, ha as UnknownFulfillmentView, hi as easyPayProviderSchema, hn as memberAddressSchema, hr as ClaimReason, ht as StorefrontSession, i as StayRequest, ia as PageInfo, ii as availablePaymentOptionSchema, in as lineSelectionResponseShape, ir as ConsentSource, it as AnalyticsServerEventName, j as FlowActionRequest, ji as startPaymentRequestSchema, jn as customerInquiryCategorySchema, jr as CashReceiptRequest, jt as createReviewRequestSchema, k as parseOrderNo, ka as analyticsIdsFromCookie, ki as retryPaymentRequestSchema, kn as CustomerInquiryCategory, kr as CASH_RECEIPT_METHODS, kt as UploadTicket, l as MemberPointEntry, la as pageSchema, li as checkoutDeliverySchema, ln as Member, lr as consentKindSchema, lt as analyticsServerEventNameSchema, m as memberPointsSchema, ma as ProductFulfillmentView, mi as easyPayProviderResponseSchema, mn as memberAddressRequestSchema, mr as ClaimPreview, mt as SessionStorage, n as storefrontStoreSchema, na as ClaimStatus, ni as ShippingAddressInput, nn as customInputViewSchema, nr as ConsentAction, nt as AnalyticsClientEventName, o as calendarDayViewSchema, oa as claimStatusSchema, oi as cashReceiptIdentityTypeOf, on as optionSelectionViewSchema, or as ConsentUpdateRequest, ot as analyticsClientEventNameSchema, p as memberPointEntrySchema, pa as ProductCardFulfillment, pi as deliveryQuoteSchema, pn as WishlistAddResult, pr as memberConsentsSchema, pt as STOREFRONT_SESSION_KEYS, q as orderFlowActionResultSchema, qi as collectionProductSortSchema, qn as couponApplicationSchema, qr as PaymentMessage, qt as CustomInputValueView, r as CalendarDayView, ra as OrderItemStatus, ri as StartPaymentRequest, rn as lineSelectionRequestShape, rr as ConsentKind, rt as AnalyticsEventName, s as stayRequestSchema, sa as orderItemStatusSchema, si as cashReceiptRequestSchema, sn as orderInputUploadRequestSchema, sr as MemberConsents, st as analyticsClientEventSchema, t as StorefrontStore, ta as storefrontCollectionSchema, ti as RetryPaymentRequest, tn as customInputValueViewSchema, tr as storefrontCouponTargetSchema, tt as AnalyticsClientEvent, u as MemberPoints, ua as LineFulfillment, ui as checkoutSessionSchema, un as MemberAddress, ur as consentSourceSchema, ut as StorefrontClient, v as MyOrderItem, va as pickupLocationViewSchema, vi as paymentMessageSchema, vn as wishlistAddResultSchema, vr as CreateClaimRequest, vt as CreateReviewRequest, w as orderShippingAddressSchema, wa as UpdateCartItemRequest, wi as paymentStatusSchema, wn as createInquiryResultSchema, wr as claimTypeSchema, wt as ReviewImageUploadRequest, x as deliveryTrackingSchema, xa as AddCartItemRequest, xi as paymentOptionListSchema, xn as ProductInquiryCategory, xr as claimPreviewSchema, xt as ProductReviewParams, y as OrderShippingAddress, ya as productCardFulfillmentSchema, yi as paymentMethodSchema, yn as CreateInquiryRequest, yr as CreateClaimResult, yt as CreateReviewResult, z as OrderStep, zi as ProductPage, zn as MIN_PAYMENT_AMOUNT, zr as GuestInfo, zt as reviewSummarySchema } from "./index-DYKDbtx6.mjs";
|
|
3
|
+
export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, AddCartItemRequest, AddonGroupView, AddonSelection, AnalyticsBatch, AnalyticsClientEvent, AnalyticsClientEventName, AnalyticsEventName, AnalyticsServerEventName, AnonymousSession, ApiError, ApplicableCoupon, AvailablePaymentOption, CASH_RECEIPT_METHODS, CalendarDayView, Cart, CartItem, CashReceiptIdentityType, CashReceiptRequest, CashReceiptType, CategoryNode, CheckoutDelivery, CheckoutPricing, CheckoutPricingRequest, CheckoutSession, ClaimPreview, ClaimReason, ClaimReturnAddress, ClaimStatus, ClaimType, CollectionProductPage, CollectionProductParams, CollectionProductSortParam, ConsentAction, ConsentKind, ConsentSource, ConsentState, ConsentUpdateRequest, CouponApplication, CouponResult, CreateCheckoutRequest, CreateClaimRequest, CreateClaimResult, CreateCustomerInquiryRequest, CreateInquiryRequest, CreateInquiryResult, CreateReviewRequest, CreateReviewResult, CustomInputEntry, CustomInputValueView, CustomInputView, CustomerInquiry, CustomerInquiryCategory, DeliveryQuoteRequest, DeliveryQuoteResult, DeliveryTracking, EasyPayProvider, FlowAction, FlowActionRequest, FlowActionResult, FlowFieldValue, FlowInputField, FlowState, GuestFlowActionRequest, GuestInfo, IdpAgreements, IdpAuthorizeRequest, IdpTokenRequest, KnownPaymentResult, KnownPaymentStartStatus, KnownPaymentStatus, LineFulfillment, LinkIdentityRequest, LoginRequest, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, Member, MemberAddress, MemberAddressRequest, MemberConsents, MemberIdentities, MemberPointEntry, MemberPoints, MyClaim, MyCoupon, MyOrder, MyOrderItem, MyOrderItemFulfillmentSnapshot, MyReview, ORDER_STEP_TYPES, OptionSelectionView, OrderFlowActionResult, OrderInputUploadRequest, OrderItemStatus, OrderShippingAddress, OrderStep, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, PageInfo, PageParams, PaymentFailureCategory, PaymentMessage, PaymentMethod, PaymentOption, PaymentStart, PaymentStatus, PgProvider, PickupLocationView, ProductCard, ProductCardFulfillment, ProductDetail, ProductFacets, ProductFulfillmentView, ProductInquiryCategory, ProductPage, ProductReviewParams, ProductReviewSort, ProductSearchParams, ProductSort, PublicInquiry, PublicReview, PurchaseDecisionResult, type Query, RemoteArea, ResponsePaymentMethod, RetryPaymentRequest, ReviewImageUploadRequest, ReviewPage, ReviewSummary, STOREFRONT_SESSION_KEYS, type SessionStorage, ShippingAddressInput, SignupRequest, SocialProvider, StartPaymentRequest, StayRequest, StayView, type StorefrontClient, type StorefrontClientOptions, StorefrontCollection, StorefrontCollectionDetail, StorefrontCoupon, StorefrontCouponListParams, StorefrontPointPolicy, type StorefrontSession, type StorefrontSessionOptions, StorefrontStore, TokenPair, type TokenSource, UnknownFulfillmentView, UpdateCartItemRequest, UpdateProfileRequest, UpdateReviewRequest, UpdateReviewResult, UploadTicket, WishlistAddResult, WithdrawRequest, WithdrawalBlockedDetails, WritableReview, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, calendarDayViewSchema, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimPreviewSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowStateSchema, formatOrderNo, guestFlowActionRequestSchema, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderFlowActionResultSchema, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, orderStepSchema, pageInfoSchema, pageSchema, parseCustomInputValue, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pickupLocationViewSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, stayRequestSchema, stayViewSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as ANALYTICS_VISITOR_HEADER, c as analyticsClientEventSchema, i as ANALYTICS_VISITOR_COOKIE, l as analyticsIdSchema, n as ANALYTICS_SESSION_COOKIE, o as analyticsBatchSchema, r as ANALYTICS_SESSION_HEADER, s as analyticsClientEventNameSchema, t as ANALYTICS_MAX_BATCH_BYTES, u as analyticsServerEventNameSchema } from "./analytics-CgD70OqH.mjs";
|
|
2
2
|
import { t as analyticsIdsFromCookie } from "./analytics-ids-COElZiI3.mjs";
|
|
3
|
-
import { $ as orderStepSchema, A as wishlistAddResultSchema, At as
|
|
3
|
+
import { $ as orderStepSchema, A as wishlistAddResultSchema, At as anonymousSessionSchema, B as consentSourceSchema, Bt as tokenPairSchema, C as orderShippingAddressSchema, Ct as orderItemStatusSchema, D as memberAddressSchema, Dt as cartItemSchema, E as memberAddressRequestSchema, Et as addCartItemRequestSchema, F as createCustomerInquiryRequestSchema, Ft as linkIdentityRequestSchema, G as flowActionRequestSchema, Gt as toApiError, H as consentUpdateRequestSchema, Ht as withdrawalBlockedDetailsSchema, I as customerInquiryCategorySchema, It as loginRequestSchema, J as flowFieldValueSchema, K as flowActionResultSchema, Kt as unwrapData, L as customerInquirySchema, Lt as memberIdentitiesSchema, M as createInquiryResultSchema, Mt as idpAuthorizeRequestSchema, N as productInquiryCategorySchema, Nt as idpAuthorizeResponseSchema, O as memberSchema, Ot as cartSchema, P as publicInquirySchema, Pt as idpTokenRequestSchema, Q as orderFlowActionResultSchema, R as consentActionSchema, Rt as signupRequestSchema, S as myOrderSchema, St as claimStatusSchema, T as trackingStageResponseSchema, Tt as pageSchema, U as memberConsentsSchema, Ut as ApiError, V as consentStateSchema, Vt as withdrawRequestSchema, W as ORDER_STEP_TYPES, Wt as buildQuery, X as flowStateSchema, Y as flowInputFieldSchema, Z as guestFlowActionRequestSchema, _ as memberPointEntrySchema, _t as productPageSchema, a as myReviewSchema, at as createClaimResultSchema, b as deliveryTrackingSchema, bt as storefrontCollectionListQuerySchema, c as publicReviewSchema, ct as formatOrderNo, d as reviewSummarySchema, dt as collectionProductPageSchema, et as claimPreviewSchema, f as updateReviewRequestSchema, ft as collectionProductQuerySchema, g as memberPointEntryPageSchema, gt as productFacetsSchema, h as writableReviewSchema, ht as productDetailSchema, i as createReviewResultSchema, it as createClaimRequestSchema, j as createInquiryRequestSchema, jt as idpAgreementsSchema, k as updateProfileRequestSchema, kt as updateCartItemRequestSchema, l as reviewImageUploadRequestSchema, lt as parseOrderNo, m as uploadTicketSchema, mt as productCardSchema, n as storefrontStoreSchema, nt as claimReturnAddressSchema, o as productReviewQuerySchema, ot as myClaimSchema, p as updateReviewResultSchema, pt as collectionProductSortSchema, q as flowActionSchema, r as createReviewRequestSchema, rt as claimTypeSchema, s as productReviewSortSchema, st as commerceNumberField, t as createStorefrontClient, tt as claimReasonSchema, u as reviewPageSchema, ut as categoryNodeSchema, v as memberPointsSchema, vt as productSortSchema, w as purchaseDecisionResultSchema, wt as pageInfoSchema, x as myOrderItemSchema, xt as storefrontCollectionSchema, y as storefrontPointPolicySchema, yt as storefrontCollectionDetailSchema, z as consentKindSchema, zt as socialProviderSchema } from "./client-CJ2oWniR.mjs";
|
|
4
4
|
import { $ as customInputViewSchema, A as retryPaymentRequestSchema, B as couponBenefitViewSchema, C as paymentOptionSchema, D as remoteAreaSchema, E as pgProviderSchema, F as applicableCouponSchema, G as storefrontCouponListQuerySchema, H as myCouponListQuerySchema, I as checkoutPricingRequestSchema, J as addonGroupViewSchema, K as storefrontCouponSchema, L as checkoutPricingSchema, M as startPaymentRequestSchema, N as MAX_COUPONS_PER_CHECKOUT, O as residentNumberLike, P as MIN_PAYMENT_AMOUNT, Q as customInputValueViewSchema, R as couponApplicationListSchema, S as paymentOptionListSchema, T as paymentStatusSchema, U as myCouponSchema, V as couponResultSchema, W as pricingAmountsSchema, X as customInputEntrySchema, Y as addonSelectionSchema, Z as customInputLength, _ as guestInfoSchema, a as availablePaymentOptionSchema, at as parseCustomInputValue, b as paymentMethodSchema, c as cashReceiptRequestSchema, ct as stayViewSchema, d as checkoutSessionSchema, dt as pickupLocationViewSchema, et as lineSelectionRequestShape, f as createCheckoutRequestSchema, ft as productCardFulfillmentSchema, g as easyPayProviderSchema, h as easyPayProviderResponseSchema, i as PAYMENT_STATUS_VALUES, it as orderInputUploadRequestSchema, j as shippingAddressInputSchema, k as responsePaymentMethodSchema, l as cashReceiptTypeSchema, lt as lineFulfillmentSchema, m as deliveryQuoteSchema, n as PAYMENT_RESULT_VALUES, nt as normalizeCustomInputValue, o as cashReceiptAvailable, ot as calendarDayViewSchema, p as deliveryQuoteRequestSchema, pt as productFulfillmentViewSchema, q as storefrontCouponTargetSchema, r as PAYMENT_START_STATUS_VALUES, rt as optionSelectionViewSchema, s as cashReceiptIdentityTypeOf, st as stayRequestSchema, t as CASH_RECEIPT_METHODS, tt as lineSelectionResponseShape, u as checkoutDeliverySchema, ut as myOrderItemFulfillmentSnapshotSchema, v as paymentFailureCategorySchema, w as paymentStartSchema, x as paymentOptionKey, y as paymentMessageSchema, z as couponApplicationSchema } from "./checkout-BjJ4Efbn.mjs";
|
|
5
5
|
//#region src/session.ts
|
|
6
6
|
/** 세션 키 상수 — SDK가 소유한다. store-sdk와 겹치지 않는 별도 네임스페이스. */
|
|
@@ -125,4 +125,4 @@ function createStorefrontSession(options) {
|
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
127
|
//#endregion
|
|
128
|
-
export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, ApiError, CASH_RECEIPT_METHODS, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, ORDER_STEP_TYPES, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, STOREFRONT_SESSION_KEYS, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, calendarDayViewSchema, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowStateSchema, formatOrderNo, guestFlowActionRequestSchema, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderFlowActionResultSchema, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, orderStepSchema, pageInfoSchema, pageSchema, parseCustomInputValue, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pickupLocationViewSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, stayRequestSchema, stayViewSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
|
|
128
|
+
export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, ApiError, CASH_RECEIPT_METHODS, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, ORDER_STEP_TYPES, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, STOREFRONT_SESSION_KEYS, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, calendarDayViewSchema, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimPreviewSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowStateSchema, formatOrderNo, guestFlowActionRequestSchema, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderFlowActionResultSchema, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, orderStepSchema, pageInfoSchema, pageSchema, parseCustomInputValue, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pickupLocationViewSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, stayRequestSchema, stayViewSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Xr as PaymentStart, Yr as PaymentOption, Zr as PaymentStatus, ft as createStorefrontClient, jr as CashReceiptRequest, ni as ShippingAddressInput, ri as StartPaymentRequest, zr as GuestInfo } from "../index-DYKDbtx6.mjs";
|
|
2
2
|
//#region src/payments/index.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* 스토어프론트 결제 — 브라우저 전용(`@sayren/storefront-sdk/payments`).
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -53,6 +53,7 @@ import {
|
|
|
53
53
|
} from "./schemas/checkout";
|
|
54
54
|
import {
|
|
55
55
|
type CreateClaimRequest,
|
|
56
|
+
claimPreviewSchema,
|
|
56
57
|
createClaimRequestSchema,
|
|
57
58
|
createClaimResultSchema,
|
|
58
59
|
myClaimSchema,
|
|
@@ -498,6 +499,14 @@ export function createStorefrontClient(options: StorefrontClientOptions) {
|
|
|
498
499
|
http.request("POST", path`/me/order-items/${orderItemId}/claims`, createClaimResultSchema, {
|
|
499
500
|
body: createClaimRequestSchema.parse(body),
|
|
500
501
|
}),
|
|
502
|
+
/** `POST /me/order-items/{id}/claims/preview` — 신청 전 예상 환불·차감. 접수하지 않는다(#115) */
|
|
503
|
+
preview: (orderItemId: string, body: CreateClaimRequest) =>
|
|
504
|
+
http.request(
|
|
505
|
+
"POST",
|
|
506
|
+
path`/me/order-items/${orderItemId}/claims/preview`,
|
|
507
|
+
claimPreviewSchema,
|
|
508
|
+
{ body: createClaimRequestSchema.parse(body) },
|
|
509
|
+
),
|
|
501
510
|
list: (params?: PageParams & { status?: ClaimStatus }) =>
|
|
502
511
|
http.request("GET", "/me/claims", pageSchema(myClaimSchema), { query: params as Query }),
|
|
503
512
|
withdraw: (claimId: string) => http.requestVoid("POST", path`/me/claims/${claimId}/withdraw`),
|
package/src/schemas/claim.ts
CHANGED
|
@@ -88,6 +88,23 @@ export const createClaimResultSchema = z.object({
|
|
|
88
88
|
|
|
89
89
|
export type CreateClaimResult = z.infer<typeof createClaimResultSchema>;
|
|
90
90
|
|
|
91
|
+
/**
|
|
92
|
+
* 신청 전 미리보기(#115 G49) — 접수와 같은 판정·계산을 저장 없이 돌린다. 접수할 수 없으면 접수와 같은 오류(409 등)다.
|
|
93
|
+
* 금액은 지금 시점의 예상값이다(차감은 접수 시각의 흐름 식으로 다시 계산한다)
|
|
94
|
+
*/
|
|
95
|
+
export const claimPreviewSchema = createClaimResultSchema
|
|
96
|
+
.omit({ claimId: true, claimNo: true, status: true })
|
|
97
|
+
.extend({
|
|
98
|
+
deductAmount: z
|
|
99
|
+
.number()
|
|
100
|
+
.int()
|
|
101
|
+
.describe(
|
|
102
|
+
"흐름이 정한 취소 수수료(체크인·관람일까지 남은 기간 등). 예상 환불액에서 이미 뺐다. 수수료가 없으면 0",
|
|
103
|
+
),
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
export type ClaimPreview = z.infer<typeof claimPreviewSchema>;
|
|
107
|
+
|
|
91
108
|
/**
|
|
92
109
|
* 반품지 (이슈 #30) — 반품·교환 수거가 안내하는 주소다. 상점 주소록의 기본 반품지이거나,
|
|
93
110
|
* 상품이 반품지를 따로 지정했으면 그 주소다.
|
|
@@ -18,7 +18,20 @@ export const flowInputFieldSchema = z.object({
|
|
|
18
18
|
placeholder: z.string().optional().describe("입력 안내"),
|
|
19
19
|
maxLength: z.number().int().optional(),
|
|
20
20
|
maxFiles: z.number().int().optional(),
|
|
21
|
-
options: z
|
|
21
|
+
options: z
|
|
22
|
+
.array(
|
|
23
|
+
z.union([
|
|
24
|
+
z.string(),
|
|
25
|
+
z.number(),
|
|
26
|
+
z.object({ value: z.string(), label: z.string() }).describe("값과 보여 줄 이름"),
|
|
27
|
+
]),
|
|
28
|
+
)
|
|
29
|
+
.optional()
|
|
30
|
+
.describe("고르는 형식의 선택지. 값만 있거나 값·이름 쌍이다(보낼 때는 값)"),
|
|
31
|
+
when: z
|
|
32
|
+
.object({ key: z.string(), in: z.array(z.string()) })
|
|
33
|
+
.optional()
|
|
34
|
+
.describe("다른 칸(`key`)의 값이 `in` 중 하나일 때만 보이고 받는 칸. 없으면 늘 받는다"),
|
|
22
35
|
});
|
|
23
36
|
export type FlowInputField = z.infer<typeof flowInputFieldSchema>;
|
|
24
37
|
|
|
@@ -61,6 +74,12 @@ export const flowStateSchema = z.object({
|
|
|
61
74
|
.array(z.string())
|
|
62
75
|
.optional()
|
|
63
76
|
.describe("가장 최근 행동이 붙인 첨부 주소(시안 등, #115). 없으면 생략"),
|
|
77
|
+
earlierAttachments: z
|
|
78
|
+
.array(z.string())
|
|
79
|
+
.optional()
|
|
80
|
+
.describe(
|
|
81
|
+
"앞 상태에서 붙인 첨부(수정 요청 뒤의 이전 시안 등). 다음 첨부가 오면 바뀐다. 없으면 생략",
|
|
82
|
+
),
|
|
64
83
|
inputs: z
|
|
65
84
|
.object({
|
|
66
85
|
by: z.string().describe("적은 사람 — seller · buyer"),
|
|
@@ -105,6 +124,10 @@ export const orderStepSchema = z.object({
|
|
|
105
124
|
message: z.string().optional().describe("판매자가 둔 안내문"),
|
|
106
125
|
deadlineAt: z.string().optional().describe("가장 가까운 기한(ISO 8601)"),
|
|
107
126
|
attachments: z.array(z.string()).optional().describe("판매자가 올린 자료(시안 등)"),
|
|
127
|
+
earlierAttachments: z
|
|
128
|
+
.array(z.string())
|
|
129
|
+
.optional()
|
|
130
|
+
.describe("앞 단계에서 올린 자료(수정 요청 뒤의 이전 시안 등)"),
|
|
108
131
|
inputs: flowStateSchema.shape.inputs,
|
|
109
132
|
actions: z
|
|
110
133
|
.array(flowActionSchema)
|