@sayren/storefront-sdk 0.20.13 → 0.20.15
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-OJc5DOIJ.mjs → client-ZwNr8sU-.mjs} +9 -3
- package/dist/{index-D4WBJ-rs.d.mts → index-DkZFHWq7.d.mts} +70 -31
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/payments/index.d.mts +1 -1
- package/package.json +1 -1
- package/src/schemas/claim.ts +8 -0
- package/src/schemas/commerce-flow.ts +17 -1
- package/src/schemas/order.ts +24 -0
package/dist/auth/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ut as ApiError, t as createStorefrontClient } from "../client-
|
|
1
|
+
import { Ut as ApiError, t as createStorefrontClient } from "../client-ZwNr8sU-.mjs";
|
|
2
2
|
//#region src/auth/index.ts
|
|
3
3
|
/** 소셜 로그인 실패 — 구매자가 취소했거나(`access_denied`) state가 맞지 않는다 */
|
|
4
4
|
var IdpCallbackError = class extends Error {
|
|
@@ -477,6 +477,7 @@ const createClaimResultSchema = z.object({
|
|
|
477
477
|
claimId: z.string(),
|
|
478
478
|
claimNo: commerceNumberField("클레임번호(이슈 #107) — `C` + YYMMDD(KST) + 숫자 8자리. 취소·반품·교환 접수 단위 번호이고 생성 후 바뀌지 않습니다"),
|
|
479
479
|
status: z.literal("REQUESTED"),
|
|
480
|
+
approved: z.boolean().optional().default(false).describe("접수와 함께 승인됐는가(#115) — 주문 흐름이 이 단계의 취소를 「주문 취소」(즉시)로 켰으면 판매자 승인 없이 바로 취소·환불된다. false면 판매자 확인을 기다린다. 서버는 항상 싣는다"),
|
|
480
481
|
expectedRefundAmount: z.number().int().nullable().describe("예상 환불액 — 수량 비율 상품 실결제 금액(쿠폰 할인을 뺀 금액) − 반품 배송비 − 조건부 무료배송 미달 차감 − 쿠폰 조건 미달 차감(`couponChargeAmount`) + 되돌릴 쿠폰 차감. **배송비 환불은 여기 포함되지 않고 `deliveryFeeRefundAmount`로 따로 온다**(승인 시점의 배송 묶음 상태로 확정되기 때문이다). 교환은 환불이 없어 null이다"),
|
|
481
482
|
claimDeliveryFee: z.number().int().describe("구매자가 부담하는 반품·교환 배송비. 원 단위"),
|
|
482
483
|
quantity: z.number().int().describe("접수된 수량. 요청에서 생략하면 남은 수량 전체다"),
|
|
@@ -599,7 +600,8 @@ const flowStateSchema = z.object({
|
|
|
599
600
|
z.number(),
|
|
600
601
|
z.boolean(),
|
|
601
602
|
z.array(z.string())
|
|
602
|
-
])
|
|
603
|
+
]),
|
|
604
|
+
display: z.string().optional().describe("화면에 보일 값 — 이름 붙인 선택지(`{ value, label }`)면 이름. 없으면 `value`를 그대로 보인다")
|
|
603
605
|
}))
|
|
604
606
|
}).optional().describe("이 상태로 오게 한 행동의 입력값(수정 내용 등, #115). 없으면 생략"),
|
|
605
607
|
progress: z.boolean().optional(),
|
|
@@ -656,7 +658,8 @@ const flowActionResultSchema = z.object({
|
|
|
656
658
|
affectedOrderItemIds: z.array(z.string()),
|
|
657
659
|
claim: z.object({
|
|
658
660
|
claimId: z.string(),
|
|
659
|
-
claimNo: z.string().nullable()
|
|
661
|
+
claimNo: z.string().nullable(),
|
|
662
|
+
approved: z.boolean().optional().default(false).describe("즉시 취소(권한 방식 INSTANT)라 판매자 승인 없이 취소·환불했다. 서버는 항상 싣는다")
|
|
660
663
|
}).optional().describe("취소·반품·교환 행동(하위 플로우 `core.claim.*`)이 접수한 클레임(#115). 클레임 API(`POST /me/order-items/{id}/claims`)와 같은 접수다. 다른 행동은 생략")
|
|
661
664
|
});
|
|
662
665
|
/**
|
|
@@ -914,7 +917,10 @@ const myOrderSchema = z.object({
|
|
|
914
917
|
})).optional().default([]).describe("주문이 받은 쿠폰. 쿠폰이 없으면 빈 배열. 서버는 항상 싣는다"),
|
|
915
918
|
totalAmount: z.number().int().describe("결제 금액 (쿠폰 할인 반영)"),
|
|
916
919
|
paidAt: z.string().nullable(),
|
|
917
|
-
receiptUrl: z.url().nullable()
|
|
920
|
+
receiptUrl: z.url().nullable(),
|
|
921
|
+
refundedAmount: z.number().int().optional().default(0).describe("환불된 결제 금액 합계 (원, #115) — 결제 대행사 환불이 끝난 몫이다. 적립금 반환은 포함하지 않는다. 서버는 항상 싣는다"),
|
|
922
|
+
refundPendingAmount: z.number().int().optional().default(0).describe("환불 예정 금액 (원, #115) — 판매자가 취소·반품을 승인했지만 결제 환불이 아직 끝나지 않은 몫이다. 판매자가 처리하면 `refundedAmount`로 옮겨진다. 서버는 항상 싣는다"),
|
|
923
|
+
pointRefundedAmount: z.number().int().optional().default(0).describe("취소·반품으로 돌려준 적립금 합계 (원, #93) — 현금 환불(`refundedAmount`)과 별개다. 적립금을 쓰지 않았거나 돌려준 것이 없으면 0. 서버는 항상 싣는다")
|
|
918
924
|
}),
|
|
919
925
|
testPayment: z.boolean().describe("테스트 결제(샌드박스 결제) 주문인가. true면 실제로 돈이 나가지 않았습니다 — 주문 화면에 테스트 결제 배지를 표시합니다")
|
|
920
926
|
});
|
|
@@ -259,6 +259,7 @@ interface PageParams {
|
|
|
259
259
|
size?: number;
|
|
260
260
|
}
|
|
261
261
|
declare const orderItemStatusSchema: z.ZodEnum<{
|
|
262
|
+
CANCELED: "CANCELED";
|
|
262
263
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
263
264
|
PAID: "PAID";
|
|
264
265
|
CONFIRMED: "CONFIRMED";
|
|
@@ -266,10 +267,10 @@ declare const orderItemStatusSchema: z.ZodEnum<{
|
|
|
266
267
|
DELIVERING: "DELIVERING";
|
|
267
268
|
DELIVERED: "DELIVERED";
|
|
268
269
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
269
|
-
CANCELED: "CANCELED";
|
|
270
270
|
}>;
|
|
271
271
|
type OrderItemStatus = z.infer<typeof orderItemStatusSchema>;
|
|
272
272
|
declare const claimStatusSchema: z.ZodEnum<{
|
|
273
|
+
COMPLETED: "COMPLETED";
|
|
273
274
|
REQUESTED: "REQUESTED";
|
|
274
275
|
HELD: "HELD";
|
|
275
276
|
COLLECTING: "COLLECTING";
|
|
@@ -277,7 +278,6 @@ declare const claimStatusSchema: z.ZodEnum<{
|
|
|
277
278
|
REDELIVERING: "REDELIVERING";
|
|
278
279
|
APPROVED: "APPROVED";
|
|
279
280
|
REJECTED: "REJECTED";
|
|
280
|
-
COMPLETED: "COMPLETED";
|
|
281
281
|
WITHDRAWN: "WITHDRAWN";
|
|
282
282
|
}>;
|
|
283
283
|
type ClaimStatus = z.infer<typeof claimStatusSchema>;
|
|
@@ -1298,6 +1298,7 @@ declare const createClaimResultSchema: z.ZodObject<{
|
|
|
1298
1298
|
claimId: z.ZodString;
|
|
1299
1299
|
claimNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1300
1300
|
status: z.ZodLiteral<"REQUESTED">;
|
|
1301
|
+
approved: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1301
1302
|
expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
|
|
1302
1303
|
claimDeliveryFee: z.ZodNumber;
|
|
1303
1304
|
quantity: z.ZodNumber;
|
|
@@ -1313,6 +1314,7 @@ type CreateClaimResult = z.infer<typeof createClaimResultSchema>;
|
|
|
1313
1314
|
*/
|
|
1314
1315
|
declare const claimPreviewSchema: z.ZodObject<{
|
|
1315
1316
|
quantity: z.ZodNumber;
|
|
1317
|
+
approved: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1316
1318
|
expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
|
|
1317
1319
|
claimDeliveryFee: z.ZodNumber;
|
|
1318
1320
|
deliveryFeeRefundAmount: z.ZodNumber;
|
|
@@ -1347,6 +1349,7 @@ declare const myClaimSchema: z.ZodObject<{
|
|
|
1347
1349
|
CANCEL: "CANCEL";
|
|
1348
1350
|
}>;
|
|
1349
1351
|
status: z.ZodEnum<{
|
|
1352
|
+
COMPLETED: "COMPLETED";
|
|
1350
1353
|
REQUESTED: "REQUESTED";
|
|
1351
1354
|
HELD: "HELD";
|
|
1352
1355
|
COLLECTING: "COLLECTING";
|
|
@@ -1354,7 +1357,6 @@ declare const myClaimSchema: z.ZodObject<{
|
|
|
1354
1357
|
REDELIVERING: "REDELIVERING";
|
|
1355
1358
|
APPROVED: "APPROVED";
|
|
1356
1359
|
REJECTED: "REJECTED";
|
|
1357
|
-
COMPLETED: "COMPLETED";
|
|
1358
1360
|
WITHDRAWN: "WITHDRAWN";
|
|
1359
1361
|
}>;
|
|
1360
1362
|
orderItemId: z.ZodString;
|
|
@@ -1637,9 +1639,9 @@ declare const myCouponSchema: z.ZodObject<{
|
|
|
1637
1639
|
type MyCoupon = z.infer<typeof myCouponSchema>;
|
|
1638
1640
|
declare const myCouponListQuerySchema: z.ZodObject<{
|
|
1639
1641
|
status: z.ZodOptional<z.ZodEnum<{
|
|
1642
|
+
expired: "expired";
|
|
1640
1643
|
available: "available";
|
|
1641
1644
|
used: "used";
|
|
1642
|
-
expired: "expired";
|
|
1643
1645
|
}>>;
|
|
1644
1646
|
}, z.core.$strip>;
|
|
1645
1647
|
/**
|
|
@@ -3088,7 +3090,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3088
3090
|
totalPrice: number;
|
|
3089
3091
|
couponDiscountAmount: number;
|
|
3090
3092
|
pointAllocation: number;
|
|
3091
|
-
status: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED"
|
|
3093
|
+
status: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
|
|
3092
3094
|
fulfillmentSnapshot: UnknownFulfillmentView | {
|
|
3093
3095
|
type: "SHIPPING";
|
|
3094
3096
|
requiresShipping: true;
|
|
@@ -3143,7 +3145,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3143
3145
|
label: string;
|
|
3144
3146
|
enteredAt: string;
|
|
3145
3147
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3146
|
-
coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" |
|
|
3148
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3147
3149
|
message?: string | undefined;
|
|
3148
3150
|
deadlineAt?: string | undefined;
|
|
3149
3151
|
attachments?: string[] | undefined;
|
|
@@ -3155,6 +3157,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3155
3157
|
label: string;
|
|
3156
3158
|
type: string;
|
|
3157
3159
|
value: string | number | boolean | string[];
|
|
3160
|
+
display?: string | undefined;
|
|
3158
3161
|
}[];
|
|
3159
3162
|
} | undefined;
|
|
3160
3163
|
progress?: boolean | undefined;
|
|
@@ -3194,7 +3197,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3194
3197
|
label: string;
|
|
3195
3198
|
enteredAt: string;
|
|
3196
3199
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3197
|
-
coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" |
|
|
3200
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3198
3201
|
message?: string | undefined;
|
|
3199
3202
|
deadlineAt?: string | undefined;
|
|
3200
3203
|
attachments?: string[] | undefined;
|
|
@@ -3206,6 +3209,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3206
3209
|
label: string;
|
|
3207
3210
|
type: string;
|
|
3208
3211
|
value: string | number | boolean | string[];
|
|
3212
|
+
display?: string | undefined;
|
|
3209
3213
|
}[];
|
|
3210
3214
|
} | undefined;
|
|
3211
3215
|
progress?: boolean | undefined;
|
|
@@ -3258,6 +3262,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3258
3262
|
label: string;
|
|
3259
3263
|
type: string;
|
|
3260
3264
|
value: string | number | boolean | string[];
|
|
3265
|
+
display?: string | undefined;
|
|
3261
3266
|
}[];
|
|
3262
3267
|
} | undefined;
|
|
3263
3268
|
data?: {
|
|
@@ -3303,9 +3308,12 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3303
3308
|
totalAmount: number;
|
|
3304
3309
|
paidAt: string | null;
|
|
3305
3310
|
receiptUrl: string | null;
|
|
3311
|
+
refundedAmount: number;
|
|
3312
|
+
refundPendingAmount: number;
|
|
3313
|
+
pointRefundedAmount: number;
|
|
3306
3314
|
};
|
|
3307
3315
|
testPayment: boolean;
|
|
3308
|
-
progressStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" |
|
|
3316
|
+
progressStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3309
3317
|
}[];
|
|
3310
3318
|
}>;
|
|
3311
3319
|
get: (orderId: string) => Promise<{
|
|
@@ -3319,7 +3327,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3319
3327
|
totalPrice: number;
|
|
3320
3328
|
couponDiscountAmount: number;
|
|
3321
3329
|
pointAllocation: number;
|
|
3322
|
-
status: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED"
|
|
3330
|
+
status: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
|
|
3323
3331
|
fulfillmentSnapshot: UnknownFulfillmentView | {
|
|
3324
3332
|
type: "SHIPPING";
|
|
3325
3333
|
requiresShipping: true;
|
|
@@ -3374,7 +3382,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3374
3382
|
label: string;
|
|
3375
3383
|
enteredAt: string;
|
|
3376
3384
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3377
|
-
coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" |
|
|
3385
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3378
3386
|
message?: string | undefined;
|
|
3379
3387
|
deadlineAt?: string | undefined;
|
|
3380
3388
|
attachments?: string[] | undefined;
|
|
@@ -3386,6 +3394,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3386
3394
|
label: string;
|
|
3387
3395
|
type: string;
|
|
3388
3396
|
value: string | number | boolean | string[];
|
|
3397
|
+
display?: string | undefined;
|
|
3389
3398
|
}[];
|
|
3390
3399
|
} | undefined;
|
|
3391
3400
|
progress?: boolean | undefined;
|
|
@@ -3425,7 +3434,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3425
3434
|
label: string;
|
|
3426
3435
|
enteredAt: string;
|
|
3427
3436
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3428
|
-
coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" |
|
|
3437
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3429
3438
|
message?: string | undefined;
|
|
3430
3439
|
deadlineAt?: string | undefined;
|
|
3431
3440
|
attachments?: string[] | undefined;
|
|
@@ -3437,6 +3446,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3437
3446
|
label: string;
|
|
3438
3447
|
type: string;
|
|
3439
3448
|
value: string | number | boolean | string[];
|
|
3449
|
+
display?: string | undefined;
|
|
3440
3450
|
}[];
|
|
3441
3451
|
} | undefined;
|
|
3442
3452
|
progress?: boolean | undefined;
|
|
@@ -3489,6 +3499,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3489
3499
|
label: string;
|
|
3490
3500
|
type: string;
|
|
3491
3501
|
value: string | number | boolean | string[];
|
|
3502
|
+
display?: string | undefined;
|
|
3492
3503
|
}[];
|
|
3493
3504
|
} | undefined;
|
|
3494
3505
|
data?: {
|
|
@@ -3534,9 +3545,12 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3534
3545
|
totalAmount: number;
|
|
3535
3546
|
paidAt: string | null;
|
|
3536
3547
|
receiptUrl: string | null;
|
|
3548
|
+
refundedAmount: number;
|
|
3549
|
+
refundPendingAmount: number;
|
|
3550
|
+
pointRefundedAmount: number;
|
|
3537
3551
|
};
|
|
3538
3552
|
testPayment: boolean;
|
|
3539
|
-
progressStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" |
|
|
3553
|
+
progressStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3540
3554
|
}>;
|
|
3541
3555
|
/**
|
|
3542
3556
|
* 비회원 주문 조회 — 주문 id(`ord_…`) 또는 숫자 주문번호(`orderNo`, 하이픈 허용, 이슈 #107) + 주문할 때 적은 연락처·주문 조회 비밀번호.
|
|
@@ -3561,7 +3575,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3561
3575
|
totalPrice: number;
|
|
3562
3576
|
couponDiscountAmount: number;
|
|
3563
3577
|
pointAllocation: number;
|
|
3564
|
-
status: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED"
|
|
3578
|
+
status: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
|
|
3565
3579
|
fulfillmentSnapshot: UnknownFulfillmentView | {
|
|
3566
3580
|
type: "SHIPPING";
|
|
3567
3581
|
requiresShipping: true;
|
|
@@ -3616,7 +3630,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3616
3630
|
label: string;
|
|
3617
3631
|
enteredAt: string;
|
|
3618
3632
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3619
|
-
coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" |
|
|
3633
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3620
3634
|
message?: string | undefined;
|
|
3621
3635
|
deadlineAt?: string | undefined;
|
|
3622
3636
|
attachments?: string[] | undefined;
|
|
@@ -3628,6 +3642,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3628
3642
|
label: string;
|
|
3629
3643
|
type: string;
|
|
3630
3644
|
value: string | number | boolean | string[];
|
|
3645
|
+
display?: string | undefined;
|
|
3631
3646
|
}[];
|
|
3632
3647
|
} | undefined;
|
|
3633
3648
|
progress?: boolean | undefined;
|
|
@@ -3667,7 +3682,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3667
3682
|
label: string;
|
|
3668
3683
|
enteredAt: string;
|
|
3669
3684
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3670
|
-
coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" |
|
|
3685
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3671
3686
|
message?: string | undefined;
|
|
3672
3687
|
deadlineAt?: string | undefined;
|
|
3673
3688
|
attachments?: string[] | undefined;
|
|
@@ -3679,6 +3694,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3679
3694
|
label: string;
|
|
3680
3695
|
type: string;
|
|
3681
3696
|
value: string | number | boolean | string[];
|
|
3697
|
+
display?: string | undefined;
|
|
3682
3698
|
}[];
|
|
3683
3699
|
} | undefined;
|
|
3684
3700
|
progress?: boolean | undefined;
|
|
@@ -3731,6 +3747,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3731
3747
|
label: string;
|
|
3732
3748
|
type: string;
|
|
3733
3749
|
value: string | number | boolean | string[];
|
|
3750
|
+
display?: string | undefined;
|
|
3734
3751
|
}[];
|
|
3735
3752
|
} | undefined;
|
|
3736
3753
|
data?: {
|
|
@@ -3776,9 +3793,12 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3776
3793
|
totalAmount: number;
|
|
3777
3794
|
paidAt: string | null;
|
|
3778
3795
|
receiptUrl: string | null;
|
|
3796
|
+
refundedAmount: number;
|
|
3797
|
+
refundPendingAmount: number;
|
|
3798
|
+
pointRefundedAmount: number;
|
|
3779
3799
|
};
|
|
3780
3800
|
testPayment: boolean;
|
|
3781
|
-
progressStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" |
|
|
3801
|
+
progressStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3782
3802
|
}>;
|
|
3783
3803
|
getDelivery: (orderItemId: string) => Promise<{
|
|
3784
3804
|
carrierName: string;
|
|
@@ -3806,7 +3826,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3806
3826
|
label: string;
|
|
3807
3827
|
enteredAt: string;
|
|
3808
3828
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3809
|
-
coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" |
|
|
3829
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3810
3830
|
message?: string | undefined;
|
|
3811
3831
|
deadlineAt?: string | undefined;
|
|
3812
3832
|
attachments?: string[] | undefined;
|
|
@@ -3818,6 +3838,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3818
3838
|
label: string;
|
|
3819
3839
|
type: string;
|
|
3820
3840
|
value: string | number | boolean | string[];
|
|
3841
|
+
display?: string | undefined;
|
|
3821
3842
|
}[];
|
|
3822
3843
|
} | undefined;
|
|
3823
3844
|
progress?: boolean | undefined;
|
|
@@ -3856,6 +3877,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3856
3877
|
claim?: {
|
|
3857
3878
|
claimId: string;
|
|
3858
3879
|
claimNo: string | null;
|
|
3880
|
+
approved: boolean;
|
|
3859
3881
|
} | undefined;
|
|
3860
3882
|
}>;
|
|
3861
3883
|
/** 비회원 행동 — 비회원 주문 조회와 같은 연락처·비밀번호 확인과 시도 한도를 지난다 */
|
|
@@ -3870,7 +3892,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3870
3892
|
label: string;
|
|
3871
3893
|
enteredAt: string;
|
|
3872
3894
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3873
|
-
coreStatus?: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" |
|
|
3895
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3874
3896
|
message?: string | undefined;
|
|
3875
3897
|
deadlineAt?: string | undefined;
|
|
3876
3898
|
attachments?: string[] | undefined;
|
|
@@ -3882,6 +3904,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3882
3904
|
label: string;
|
|
3883
3905
|
type: string;
|
|
3884
3906
|
value: string | number | boolean | string[];
|
|
3907
|
+
display?: string | undefined;
|
|
3885
3908
|
}[];
|
|
3886
3909
|
} | undefined;
|
|
3887
3910
|
progress?: boolean | undefined;
|
|
@@ -3920,6 +3943,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3920
3943
|
claim?: {
|
|
3921
3944
|
claimId: string;
|
|
3922
3945
|
claimNo: string | null;
|
|
3946
|
+
approved: boolean;
|
|
3923
3947
|
} | undefined;
|
|
3924
3948
|
}>;
|
|
3925
3949
|
/**
|
|
@@ -3931,7 +3955,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3931
3955
|
key: string;
|
|
3932
3956
|
results: {
|
|
3933
3957
|
orderItemId: string;
|
|
3934
|
-
status: "COMPLETED" | "
|
|
3958
|
+
status: "COMPLETED" | "FAILED" | "SKIPPED";
|
|
3935
3959
|
reason?: string | undefined;
|
|
3936
3960
|
message?: string | undefined;
|
|
3937
3961
|
}[];
|
|
@@ -3946,7 +3970,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3946
3970
|
key: string;
|
|
3947
3971
|
results: {
|
|
3948
3972
|
orderItemId: string;
|
|
3949
|
-
status: "COMPLETED" | "
|
|
3973
|
+
status: "COMPLETED" | "FAILED" | "SKIPPED";
|
|
3950
3974
|
reason?: string | undefined;
|
|
3951
3975
|
message?: string | undefined;
|
|
3952
3976
|
}[];
|
|
@@ -3957,6 +3981,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3957
3981
|
claimId: string;
|
|
3958
3982
|
claimNo: string | null;
|
|
3959
3983
|
status: "REQUESTED";
|
|
3984
|
+
approved: boolean;
|
|
3960
3985
|
expectedRefundAmount: number | null;
|
|
3961
3986
|
claimDeliveryFee: number;
|
|
3962
3987
|
quantity: number;
|
|
@@ -3968,6 +3993,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3968
3993
|
/** `POST /me/order-items/{id}/claims/preview` — 신청 전 예상 환불·차감. 접수하지 않는다(#115) */
|
|
3969
3994
|
preview: (orderItemId: string, body: CreateClaimRequest) => Promise<{
|
|
3970
3995
|
quantity: number;
|
|
3996
|
+
approved: boolean;
|
|
3971
3997
|
expectedRefundAmount: number | null;
|
|
3972
3998
|
claimDeliveryFee: number;
|
|
3973
3999
|
deliveryFeeRefundAmount: number;
|
|
@@ -3987,7 +4013,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3987
4013
|
claimId: string;
|
|
3988
4014
|
claimNo: string | null;
|
|
3989
4015
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
3990
|
-
status: "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "REJECTED" | "
|
|
4016
|
+
status: "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "REJECTED" | "WITHDRAWN";
|
|
3991
4017
|
orderItemId: string;
|
|
3992
4018
|
productName: string;
|
|
3993
4019
|
quantity: number;
|
|
@@ -4503,6 +4529,7 @@ declare const flowStateSchema: z.ZodObject<{
|
|
|
4503
4529
|
key: z.ZodString;
|
|
4504
4530
|
label: z.ZodString;
|
|
4505
4531
|
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
4532
|
+
CANCELED: "CANCELED";
|
|
4506
4533
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4507
4534
|
PAID: "PAID";
|
|
4508
4535
|
CONFIRMED: "CONFIRMED";
|
|
@@ -4510,7 +4537,6 @@ declare const flowStateSchema: z.ZodObject<{
|
|
|
4510
4537
|
DELIVERING: "DELIVERING";
|
|
4511
4538
|
DELIVERED: "DELIVERED";
|
|
4512
4539
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4513
|
-
CANCELED: "CANCELED";
|
|
4514
4540
|
}>>;
|
|
4515
4541
|
message: z.ZodOptional<z.ZodString>;
|
|
4516
4542
|
enteredAt: z.ZodString;
|
|
@@ -4524,6 +4550,7 @@ declare const flowStateSchema: z.ZodObject<{
|
|
|
4524
4550
|
label: z.ZodString;
|
|
4525
4551
|
type: z.ZodString;
|
|
4526
4552
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4553
|
+
display: z.ZodOptional<z.ZodString>;
|
|
4527
4554
|
}, z.core.$strip>>;
|
|
4528
4555
|
}, z.core.$strip>>;
|
|
4529
4556
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4549,6 +4576,7 @@ declare const orderStepSchema: z.ZodObject<{
|
|
|
4549
4576
|
label: z.ZodString;
|
|
4550
4577
|
type: z.ZodString;
|
|
4551
4578
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4579
|
+
display: z.ZodOptional<z.ZodString>;
|
|
4552
4580
|
}, z.core.$strip>>;
|
|
4553
4581
|
}, z.core.$strip>>;
|
|
4554
4582
|
actions: z.ZodArray<z.ZodObject<{
|
|
@@ -4621,6 +4649,7 @@ declare const flowActionResultSchema: z.ZodObject<{
|
|
|
4621
4649
|
key: z.ZodString;
|
|
4622
4650
|
label: z.ZodString;
|
|
4623
4651
|
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
4652
|
+
CANCELED: "CANCELED";
|
|
4624
4653
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4625
4654
|
PAID: "PAID";
|
|
4626
4655
|
CONFIRMED: "CONFIRMED";
|
|
@@ -4628,7 +4657,6 @@ declare const flowActionResultSchema: z.ZodObject<{
|
|
|
4628
4657
|
DELIVERING: "DELIVERING";
|
|
4629
4658
|
DELIVERED: "DELIVERED";
|
|
4630
4659
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4631
|
-
CANCELED: "CANCELED";
|
|
4632
4660
|
}>>;
|
|
4633
4661
|
message: z.ZodOptional<z.ZodString>;
|
|
4634
4662
|
enteredAt: z.ZodString;
|
|
@@ -4642,6 +4670,7 @@ declare const flowActionResultSchema: z.ZodObject<{
|
|
|
4642
4670
|
label: z.ZodString;
|
|
4643
4671
|
type: z.ZodString;
|
|
4644
4672
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4673
|
+
display: z.ZodOptional<z.ZodString>;
|
|
4645
4674
|
}, z.core.$strip>>;
|
|
4646
4675
|
}, z.core.$strip>>;
|
|
4647
4676
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4685,6 +4714,7 @@ declare const flowActionResultSchema: z.ZodObject<{
|
|
|
4685
4714
|
claim: z.ZodOptional<z.ZodObject<{
|
|
4686
4715
|
claimId: z.ZodString;
|
|
4687
4716
|
claimNo: z.ZodNullable<z.ZodString>;
|
|
4717
|
+
approved: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
4688
4718
|
}, z.core.$strip>>;
|
|
4689
4719
|
}, z.core.$strip>;
|
|
4690
4720
|
type FlowActionResult = z.infer<typeof flowActionResultSchema>;
|
|
@@ -4699,8 +4729,8 @@ declare const orderFlowActionResultSchema: z.ZodObject<{
|
|
|
4699
4729
|
orderItemId: z.ZodString;
|
|
4700
4730
|
status: z.ZodEnum<{
|
|
4701
4731
|
COMPLETED: "COMPLETED";
|
|
4702
|
-
SKIPPED: "SKIPPED";
|
|
4703
4732
|
FAILED: "FAILED";
|
|
4733
|
+
SKIPPED: "SKIPPED";
|
|
4704
4734
|
}>;
|
|
4705
4735
|
reason: z.ZodOptional<z.ZodString>;
|
|
4706
4736
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -4733,6 +4763,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4733
4763
|
couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
4734
4764
|
pointAllocation: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
4735
4765
|
status: z.ZodEnum<{
|
|
4766
|
+
CANCELED: "CANCELED";
|
|
4736
4767
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4737
4768
|
PAID: "PAID";
|
|
4738
4769
|
CONFIRMED: "CONFIRMED";
|
|
@@ -4740,7 +4771,6 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4740
4771
|
DELIVERING: "DELIVERING";
|
|
4741
4772
|
DELIVERED: "DELIVERED";
|
|
4742
4773
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4743
|
-
CANCELED: "CANCELED";
|
|
4744
4774
|
}>;
|
|
4745
4775
|
fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
4746
4776
|
type: z.ZodLiteral<"SHIPPING">;
|
|
@@ -4784,6 +4814,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4784
4814
|
key: z.ZodString;
|
|
4785
4815
|
label: z.ZodString;
|
|
4786
4816
|
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
4817
|
+
CANCELED: "CANCELED";
|
|
4787
4818
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4788
4819
|
PAID: "PAID";
|
|
4789
4820
|
CONFIRMED: "CONFIRMED";
|
|
@@ -4791,7 +4822,6 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4791
4822
|
DELIVERING: "DELIVERING";
|
|
4792
4823
|
DELIVERED: "DELIVERED";
|
|
4793
4824
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4794
|
-
CANCELED: "CANCELED";
|
|
4795
4825
|
}>>;
|
|
4796
4826
|
message: z.ZodOptional<z.ZodString>;
|
|
4797
4827
|
enteredAt: z.ZodString;
|
|
@@ -4805,6 +4835,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4805
4835
|
label: z.ZodString;
|
|
4806
4836
|
type: z.ZodString;
|
|
4807
4837
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4838
|
+
display: z.ZodOptional<z.ZodString>;
|
|
4808
4839
|
}, z.core.$strip>>;
|
|
4809
4840
|
}, z.core.$strip>>;
|
|
4810
4841
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4848,6 +4879,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4848
4879
|
key: z.ZodString;
|
|
4849
4880
|
label: z.ZodString;
|
|
4850
4881
|
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
4882
|
+
CANCELED: "CANCELED";
|
|
4851
4883
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4852
4884
|
PAID: "PAID";
|
|
4853
4885
|
CONFIRMED: "CONFIRMED";
|
|
@@ -4855,7 +4887,6 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4855
4887
|
DELIVERING: "DELIVERING";
|
|
4856
4888
|
DELIVERED: "DELIVERED";
|
|
4857
4889
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4858
|
-
CANCELED: "CANCELED";
|
|
4859
4890
|
}>>;
|
|
4860
4891
|
message: z.ZodOptional<z.ZodString>;
|
|
4861
4892
|
enteredAt: z.ZodString;
|
|
@@ -4869,6 +4900,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4869
4900
|
label: z.ZodString;
|
|
4870
4901
|
type: z.ZodString;
|
|
4871
4902
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4903
|
+
display: z.ZodOptional<z.ZodString>;
|
|
4872
4904
|
}, z.core.$strip>>;
|
|
4873
4905
|
}, z.core.$strip>>;
|
|
4874
4906
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4888,6 +4920,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4888
4920
|
label: z.ZodString;
|
|
4889
4921
|
type: z.ZodString;
|
|
4890
4922
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4923
|
+
display: z.ZodOptional<z.ZodString>;
|
|
4891
4924
|
}, z.core.$strip>>;
|
|
4892
4925
|
}, z.core.$strip>>;
|
|
4893
4926
|
actions: z.ZodArray<z.ZodObject<{
|
|
@@ -4987,6 +5020,7 @@ type OrderShippingAddress = z.infer<typeof orderShippingAddressSchema>;
|
|
|
4987
5020
|
declare const myOrderSchema: z.ZodObject<{
|
|
4988
5021
|
orderId: z.ZodString;
|
|
4989
5022
|
progressStatus: z.ZodOptional<z.ZodEnum<{
|
|
5023
|
+
CANCELED: "CANCELED";
|
|
4990
5024
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4991
5025
|
PAID: "PAID";
|
|
4992
5026
|
CONFIRMED: "CONFIRMED";
|
|
@@ -4994,7 +5028,6 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
4994
5028
|
DELIVERING: "DELIVERING";
|
|
4995
5029
|
DELIVERED: "DELIVERED";
|
|
4996
5030
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4997
|
-
CANCELED: "CANCELED";
|
|
4998
5031
|
}>>;
|
|
4999
5032
|
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
5000
5033
|
orderedAt: z.ZodString;
|
|
@@ -5006,6 +5039,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5006
5039
|
couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5007
5040
|
pointAllocation: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5008
5041
|
status: z.ZodEnum<{
|
|
5042
|
+
CANCELED: "CANCELED";
|
|
5009
5043
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
5010
5044
|
PAID: "PAID";
|
|
5011
5045
|
CONFIRMED: "CONFIRMED";
|
|
@@ -5013,7 +5047,6 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5013
5047
|
DELIVERING: "DELIVERING";
|
|
5014
5048
|
DELIVERED: "DELIVERED";
|
|
5015
5049
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
5016
|
-
CANCELED: "CANCELED";
|
|
5017
5050
|
}>;
|
|
5018
5051
|
fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5019
5052
|
type: z.ZodLiteral<"SHIPPING">;
|
|
@@ -5057,6 +5090,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5057
5090
|
key: z.ZodString;
|
|
5058
5091
|
label: z.ZodString;
|
|
5059
5092
|
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
5093
|
+
CANCELED: "CANCELED";
|
|
5060
5094
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
5061
5095
|
PAID: "PAID";
|
|
5062
5096
|
CONFIRMED: "CONFIRMED";
|
|
@@ -5064,7 +5098,6 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5064
5098
|
DELIVERING: "DELIVERING";
|
|
5065
5099
|
DELIVERED: "DELIVERED";
|
|
5066
5100
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
5067
|
-
CANCELED: "CANCELED";
|
|
5068
5101
|
}>>;
|
|
5069
5102
|
message: z.ZodOptional<z.ZodString>;
|
|
5070
5103
|
enteredAt: z.ZodString;
|
|
@@ -5078,6 +5111,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5078
5111
|
label: z.ZodString;
|
|
5079
5112
|
type: z.ZodString;
|
|
5080
5113
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
5114
|
+
display: z.ZodOptional<z.ZodString>;
|
|
5081
5115
|
}, z.core.$strip>>;
|
|
5082
5116
|
}, z.core.$strip>>;
|
|
5083
5117
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5121,6 +5155,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5121
5155
|
key: z.ZodString;
|
|
5122
5156
|
label: z.ZodString;
|
|
5123
5157
|
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
5158
|
+
CANCELED: "CANCELED";
|
|
5124
5159
|
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
5125
5160
|
PAID: "PAID";
|
|
5126
5161
|
CONFIRMED: "CONFIRMED";
|
|
@@ -5128,7 +5163,6 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5128
5163
|
DELIVERING: "DELIVERING";
|
|
5129
5164
|
DELIVERED: "DELIVERED";
|
|
5130
5165
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
5131
|
-
CANCELED: "CANCELED";
|
|
5132
5166
|
}>>;
|
|
5133
5167
|
message: z.ZodOptional<z.ZodString>;
|
|
5134
5168
|
enteredAt: z.ZodString;
|
|
@@ -5142,6 +5176,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5142
5176
|
label: z.ZodString;
|
|
5143
5177
|
type: z.ZodString;
|
|
5144
5178
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
5179
|
+
display: z.ZodOptional<z.ZodString>;
|
|
5145
5180
|
}, z.core.$strip>>;
|
|
5146
5181
|
}, z.core.$strip>>;
|
|
5147
5182
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5161,6 +5196,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5161
5196
|
label: z.ZodString;
|
|
5162
5197
|
type: z.ZodString;
|
|
5163
5198
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
5199
|
+
display: z.ZodOptional<z.ZodString>;
|
|
5164
5200
|
}, z.core.$strip>>;
|
|
5165
5201
|
}, z.core.$strip>>;
|
|
5166
5202
|
actions: z.ZodArray<z.ZodObject<{
|
|
@@ -5273,6 +5309,9 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5273
5309
|
totalAmount: z.ZodNumber;
|
|
5274
5310
|
paidAt: z.ZodNullable<z.ZodString>;
|
|
5275
5311
|
receiptUrl: z.ZodNullable<z.ZodURL>;
|
|
5312
|
+
refundedAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5313
|
+
refundPendingAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5314
|
+
pointRefundedAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
5276
5315
|
}, z.core.$strip>;
|
|
5277
5316
|
testPayment: z.ZodBoolean;
|
|
5278
5317
|
}, z.core.$strip>;
|
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 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-
|
|
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-DkZFHWq7.mjs";
|
|
3
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 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-
|
|
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-ZwNr8sU-.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와 겹치지 않는 별도 네임스페이스. */
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-DkZFHWq7.mjs";
|
|
2
2
|
//#region src/payments/index.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* 스토어프론트 결제 — 브라우저 전용(`@sayren/storefront-sdk/payments`).
|
package/package.json
CHANGED
package/src/schemas/claim.ts
CHANGED
|
@@ -41,6 +41,14 @@ export const createClaimResultSchema = z.object({
|
|
|
41
41
|
"클레임번호(이슈 #107) — `C` + YYMMDD(KST) + 숫자 8자리. 취소·반품·교환 접수 단위 번호이고 생성 후 바뀌지 않습니다",
|
|
42
42
|
),
|
|
43
43
|
status: z.literal("REQUESTED"),
|
|
44
|
+
approved: z
|
|
45
|
+
.boolean()
|
|
46
|
+
.optional()
|
|
47
|
+
.default(false)
|
|
48
|
+
.describe(
|
|
49
|
+
"접수와 함께 승인됐는가(#115) — 주문 흐름이 이 단계의 취소를 「주문 취소」(즉시)로 켰으면 판매자 승인 없이 바로 취소·환불된다. " +
|
|
50
|
+
"false면 판매자 확인을 기다린다. 서버는 항상 싣는다",
|
|
51
|
+
),
|
|
44
52
|
expectedRefundAmount: z
|
|
45
53
|
.number()
|
|
46
54
|
.int()
|
|
@@ -89,6 +89,12 @@ export const flowStateSchema = z.object({
|
|
|
89
89
|
label: z.string(),
|
|
90
90
|
type: z.string(),
|
|
91
91
|
value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]),
|
|
92
|
+
display: z
|
|
93
|
+
.string()
|
|
94
|
+
.optional()
|
|
95
|
+
.describe(
|
|
96
|
+
"화면에 보일 값 — 이름 붙인 선택지(`{ value, label }`)면 이름. 없으면 `value`를 그대로 보인다",
|
|
97
|
+
),
|
|
92
98
|
}),
|
|
93
99
|
),
|
|
94
100
|
})
|
|
@@ -188,7 +194,17 @@ export const flowActionResultSchema = z.object({
|
|
|
188
194
|
actions: z.array(flowActionSchema),
|
|
189
195
|
affectedOrderItemIds: z.array(z.string()),
|
|
190
196
|
claim: z
|
|
191
|
-
.object({
|
|
197
|
+
.object({
|
|
198
|
+
claimId: z.string(),
|
|
199
|
+
claimNo: z.string().nullable(),
|
|
200
|
+
approved: z
|
|
201
|
+
.boolean()
|
|
202
|
+
.optional()
|
|
203
|
+
.default(false)
|
|
204
|
+
.describe(
|
|
205
|
+
"즉시 취소(권한 방식 INSTANT)라 판매자 승인 없이 취소·환불했다. 서버는 항상 싣는다",
|
|
206
|
+
),
|
|
207
|
+
})
|
|
192
208
|
.optional()
|
|
193
209
|
.describe(
|
|
194
210
|
"취소·반품·교환 행동(하위 플로우 `core.claim.*`)이 접수한 클레임(#115). 클레임 API(`POST /me/order-items/{id}/claims`)와 같은 접수다. 다른 행동은 생략",
|
package/src/schemas/order.ts
CHANGED
|
@@ -183,6 +183,30 @@ export const myOrderSchema = z.object({
|
|
|
183
183
|
totalAmount: z.number().int().describe("결제 금액 (쿠폰 할인 반영)"),
|
|
184
184
|
paidAt: z.string().nullable(),
|
|
185
185
|
receiptUrl: z.url().nullable(),
|
|
186
|
+
refundedAmount: z
|
|
187
|
+
.number()
|
|
188
|
+
.int()
|
|
189
|
+
.optional()
|
|
190
|
+
.default(0)
|
|
191
|
+
.describe(
|
|
192
|
+
"환불된 결제 금액 합계 (원, #115) — 결제 대행사 환불이 끝난 몫이다. 적립금 반환은 포함하지 않는다. 서버는 항상 싣는다",
|
|
193
|
+
),
|
|
194
|
+
refundPendingAmount: z
|
|
195
|
+
.number()
|
|
196
|
+
.int()
|
|
197
|
+
.optional()
|
|
198
|
+
.default(0)
|
|
199
|
+
.describe(
|
|
200
|
+
"환불 예정 금액 (원, #115) — 판매자가 취소·반품을 승인했지만 결제 환불이 아직 끝나지 않은 몫이다. 판매자가 처리하면 `refundedAmount`로 옮겨진다. 서버는 항상 싣는다",
|
|
201
|
+
),
|
|
202
|
+
pointRefundedAmount: z
|
|
203
|
+
.number()
|
|
204
|
+
.int()
|
|
205
|
+
.optional()
|
|
206
|
+
.default(0)
|
|
207
|
+
.describe(
|
|
208
|
+
"취소·반품으로 돌려준 적립금 합계 (원, #93) — 현금 환불(`refundedAmount`)과 별개다. 적립금을 쓰지 않았거나 돌려준 것이 없으면 0. 서버는 항상 싣는다",
|
|
209
|
+
),
|
|
186
210
|
}),
|
|
187
211
|
testPayment: z
|
|
188
212
|
.boolean()
|