@sayren/storefront-sdk 0.20.8 → 0.20.9
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-S_gOAeBM.mjs → client-vjq513VD.mjs} +30 -3
- package/dist/{index-Bv49jTFH.d.mts → index-BLjQQj49.d.mts} +135 -1
- 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 +26 -0
- package/src/schemas/commerce-flow.ts +27 -0
- package/src/schemas/order.ts +11 -0
package/dist/auth/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bt as ApiError, t as createStorefrontClient } from "../client-vjq513VD.mjs";
|
|
2
2
|
//#region src/auth/index.ts
|
|
3
3
|
/** 소셜 로그인 실패 — 구매자가 취소했거나(`access_denied`) state가 맞지 않는다 */
|
|
4
4
|
var IdpCallbackError = class extends Error {
|
|
@@ -585,6 +585,24 @@ const flowActionResultSchema = z.object({
|
|
|
585
585
|
claimNo: z.string().nullable()
|
|
586
586
|
}).optional().describe("취소·반품·교환 행동(하위 플로우 `core.claim.*`)이 접수한 클레임(#115). 클레임 API(`POST /me/order-items/{id}/claims`)와 같은 접수다. 다른 행동은 생략")
|
|
587
587
|
});
|
|
588
|
+
/**
|
|
589
|
+
* 주문 전체 행동 결과(#115) — 같은 행동을 주문의 주문상품마다 실행한다. 한 주문상품의 실패가 다른 주문상품을 되돌리지 않는다(부분 실행).
|
|
590
|
+
* 묶음 진행이면 한 번 실행이 묶음의 주문상품을 함께 움직인다(COMPLETED로 함께 나온다). 그 행동이 없는 주문상품은 SKIPPED다
|
|
591
|
+
*/
|
|
592
|
+
const orderFlowActionResultSchema = z.object({
|
|
593
|
+
orderId: z.string(),
|
|
594
|
+
key: z.string(),
|
|
595
|
+
results: z.array(z.object({
|
|
596
|
+
orderItemId: z.string(),
|
|
597
|
+
status: z.enum([
|
|
598
|
+
"COMPLETED",
|
|
599
|
+
"SKIPPED",
|
|
600
|
+
"FAILED"
|
|
601
|
+
]).describe("COMPLETED 실행 · SKIPPED 이 주문상품에는 그 행동이 없다 · FAILED 실행하다 거절됐다"),
|
|
602
|
+
reason: z.string().optional().describe("SKIPPED·FAILED의 이유 — 꺼진 이유(EXPIRED·CONDITION·NOT_IN_STATE) 또는 오류 코드"),
|
|
603
|
+
message: z.string().optional()
|
|
604
|
+
}))
|
|
605
|
+
});
|
|
588
606
|
//#endregion
|
|
589
607
|
//#region src/schemas/consent.ts
|
|
590
608
|
/**
|
|
@@ -783,7 +801,8 @@ const myOrderItemSchema = z.object({
|
|
|
783
801
|
reviewWritten: z.boolean(),
|
|
784
802
|
autoDecisionDate: z.string().nullable(),
|
|
785
803
|
flowState: flowStateSchema.optional().describe("주문 플로우의 지금 상태(이슈 #115). 플로우가 없는 주문상품은 없다"),
|
|
786
|
-
actions: z.array(flowActionSchema).optional().describe("지금 할 수 있는 행동. 화면은 이 목록으로 버튼을 그린다(상태 이름으로 분기하지 않는다)")
|
|
804
|
+
actions: z.array(flowActionSchema).optional().describe("지금 할 수 있는 행동. 화면은 이 목록으로 버튼을 그린다(상태 이름으로 분기하지 않는다)"),
|
|
805
|
+
flowBranches: z.array(flowStateSchema).optional().describe("진행 위치가 둘 이상(병렬 진행·하위 흐름)이면 각 위치의 상태. `flowState`는 그 가운데 가장 앞 단계다")
|
|
787
806
|
});
|
|
788
807
|
/**
|
|
789
808
|
* 주문 응답의 배송지 — 결제 요청 시 저장된 스냅샷. 요청 스키마(`shippingAddressInputSchema`)와 분리한 응답 스키마라
|
|
@@ -800,6 +819,7 @@ const orderShippingAddressSchema = z.object({
|
|
|
800
819
|
});
|
|
801
820
|
const myOrderSchema = z.object({
|
|
802
821
|
orderId: z.string(),
|
|
822
|
+
progressStatus: orderItemStatusSchema.optional().describe("진행 중 주문상품 가운데 가장 앞 단계(취소 제외, 모두 취소면 CANCELED, #115). 섞인 주문에서 아직 기다리는 단계다. 서버는 항상 싣는다"),
|
|
803
823
|
orderNo: commerceNumberField("주문번호(이슈 #107) — 숫자 14자리, 생성 후 바뀌지 않습니다. 구매자 화면에는 `formatOrderNo`(4자리 하이픈)로 표시하십시오. 비회원 주문 조회 경로에도 쓸 수 있습니다"),
|
|
804
824
|
orderedAt: z.string(),
|
|
805
825
|
items: z.array(myOrderItemSchema),
|
|
@@ -1220,7 +1240,14 @@ get: () => http.request("GET", "/store", storefrontStoreSchema) },
|
|
|
1220
1240
|
*/
|
|
1221
1241
|
act: (orderItemId, key, input = {}) => http.request("POST", path`/me/order-items/${orderItemId}/actions/${key}`, flowActionResultSchema, { body: flowActionRequestSchema.parse({ input }) }),
|
|
1222
1242
|
/** 비회원 행동 — 비회원 주문 조회와 같은 연락처·비밀번호 확인과 시도 한도를 지난다 */
|
|
1223
|
-
guestAct: (orderId, orderItemId, key, body) => http.request("POST", path`/guest/orders/${orderId}/items/${orderItemId}/actions/${key}`, flowActionResultSchema, { body: guestFlowActionRequestSchema.parse(body) })
|
|
1243
|
+
guestAct: (orderId, orderItemId, key, body) => http.request("POST", path`/guest/orders/${orderId}/items/${orderItemId}/actions/${key}`, flowActionResultSchema, { body: guestFlowActionRequestSchema.parse(body) }),
|
|
1244
|
+
/**
|
|
1245
|
+
* `POST /me/orders/{id}/actions/{key}` — 주문 전체 행동(#115, 예: 주문 전체 취소). 그 행동이 켜진 주문상품마다 실행하고 결과를
|
|
1246
|
+
* 주문상품별로 준다(부분 실행). 켜진 주문상품이 하나도 없으면 409 `ACTION_NOT_AVAILABLE`
|
|
1247
|
+
*/
|
|
1248
|
+
actOnOrder: (orderId, key, input = {}) => http.request("POST", path`/me/orders/${orderId}/actions/${key}`, orderFlowActionResultSchema, { body: flowActionRequestSchema.parse({ input }) }),
|
|
1249
|
+
/** 비회원 주문 전체 행동 — 비회원 주문 조회와 같은 확인·시도 한도 */
|
|
1250
|
+
guestActOnOrder: (orderId, key, body) => http.request("POST", path`/guest/orders/${orderId}/actions/${key}`, orderFlowActionResultSchema, { body: guestFlowActionRequestSchema.parse(body) })
|
|
1224
1251
|
},
|
|
1225
1252
|
myClaims: {
|
|
1226
1253
|
create: (orderItemId, body) => http.request("POST", path`/me/order-items/${orderItemId}/claims`, createClaimResultSchema, { body: createClaimRequestSchema.parse(body) }),
|
|
@@ -1280,4 +1307,4 @@ get: () => http.request("GET", "/store", storefrontStoreSchema) },
|
|
|
1280
1307
|
};
|
|
1281
1308
|
}
|
|
1282
1309
|
//#endregion
|
|
1283
|
-
export {
|
|
1310
|
+
export { claimReturnAddressSchema as $, wishlistAddResultSchema as A, idpAuthorizeResponseSchema as At, consentSourceSchema as B, ApiError as Bt, orderShippingAddressSchema as C, addCartItemRequestSchema as Ct, memberAddressSchema as D, anonymousSessionSchema as Dt, memberAddressRequestSchema as E, updateCartItemRequestSchema as Et, createCustomerInquiryRequestSchema as F, signupRequestSchema as Ft, flowActionResultSchema as G, consentUpdateRequestSchema as H, toApiError as Ht, customerInquiryCategorySchema as I, socialProviderSchema as It, flowInputFieldSchema as J, flowActionSchema as K, customerInquirySchema as L, tokenPairSchema as Lt, createInquiryResultSchema as M, linkIdentityRequestSchema as Mt, productInquiryCategorySchema as N, loginRequestSchema as Nt, memberSchema as O, idpAgreementsSchema as Ot, publicInquirySchema as P, memberIdentitiesSchema as Pt, claimReasonSchema as Q, consentActionSchema as R, withdrawRequestSchema as Rt, myOrderSchema as S, pageSchema as St, trackingStageResponseSchema as T, cartSchema as Tt, memberConsentsSchema as U, unwrapData as Ut, consentStateSchema as V, buildQuery as Vt, flowActionRequestSchema as W, guestFlowActionRequestSchema as X, flowStateSchema as Y, orderFlowActionResultSchema as Z, memberPointEntrySchema as _, storefrontCollectionListQuerySchema as _t, myReviewSchema as a, formatOrderNo as at, deliveryTrackingSchema as b, orderItemStatusSchema as bt, publicReviewSchema as c, collectionProductPageSchema as ct, reviewSummarySchema as d, productCardSchema as dt, claimTypeSchema as et, updateReviewRequestSchema as f, productDetailSchema as ft, memberPointEntryPageSchema as g, storefrontCollectionDetailSchema as gt, writableReviewSchema as h, productSortSchema as ht, createReviewResultSchema as i, commerceNumberField as it, createInquiryRequestSchema as j, idpTokenRequestSchema as jt, updateProfileRequestSchema as k, idpAuthorizeRequestSchema as kt, reviewImageUploadRequestSchema as l, collectionProductQuerySchema as lt, uploadTicketSchema as m, productPageSchema as mt, storefrontStoreSchema as n, createClaimResultSchema as nt, productReviewQuerySchema as o, parseOrderNo as ot, updateReviewResultSchema as p, productFacetsSchema as pt, flowFieldValueSchema as q, createReviewRequestSchema as r, myClaimSchema as rt, productReviewSortSchema as s, categoryNodeSchema as st, createStorefrontClient as t, createClaimRequestSchema as tt, reviewPageSchema as u, collectionProductSortSchema as ut, memberPointsSchema as v, storefrontCollectionSchema as vt, purchaseDecisionResultSchema as w, cartItemSchema as wt, myOrderItemSchema as x, pageInfoSchema as xt, storefrontPointPolicySchema as y, claimStatusSchema as yt, consentKindSchema as z, withdrawalBlockedDetailsSchema as zt };
|
|
@@ -3030,6 +3030,17 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3030
3030
|
}[] | undefined;
|
|
3031
3031
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3032
3032
|
}[] | undefined;
|
|
3033
|
+
flowBranches?: {
|
|
3034
|
+
key: string;
|
|
3035
|
+
label: string;
|
|
3036
|
+
enteredAt: string;
|
|
3037
|
+
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3038
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3039
|
+
message?: string | undefined;
|
|
3040
|
+
deadlineAt?: string | undefined;
|
|
3041
|
+
attachments?: string[] | undefined;
|
|
3042
|
+
progress?: boolean | undefined;
|
|
3043
|
+
}[] | undefined;
|
|
3033
3044
|
stay?: {
|
|
3034
3045
|
checkIn: string;
|
|
3035
3046
|
checkOut: string;
|
|
@@ -3066,6 +3077,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3066
3077
|
receiptUrl: string | null;
|
|
3067
3078
|
};
|
|
3068
3079
|
testPayment: boolean;
|
|
3080
|
+
progressStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3069
3081
|
}[];
|
|
3070
3082
|
}>;
|
|
3071
3083
|
get: (orderId: string) => Promise<{
|
|
@@ -3162,6 +3174,17 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3162
3174
|
}[] | undefined;
|
|
3163
3175
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3164
3176
|
}[] | undefined;
|
|
3177
|
+
flowBranches?: {
|
|
3178
|
+
key: string;
|
|
3179
|
+
label: string;
|
|
3180
|
+
enteredAt: string;
|
|
3181
|
+
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3182
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3183
|
+
message?: string | undefined;
|
|
3184
|
+
deadlineAt?: string | undefined;
|
|
3185
|
+
attachments?: string[] | undefined;
|
|
3186
|
+
progress?: boolean | undefined;
|
|
3187
|
+
}[] | undefined;
|
|
3165
3188
|
stay?: {
|
|
3166
3189
|
checkIn: string;
|
|
3167
3190
|
checkOut: string;
|
|
@@ -3198,6 +3221,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3198
3221
|
receiptUrl: string | null;
|
|
3199
3222
|
};
|
|
3200
3223
|
testPayment: boolean;
|
|
3224
|
+
progressStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3201
3225
|
}>;
|
|
3202
3226
|
/**
|
|
3203
3227
|
* 비회원 주문 조회 — 주문 id(`ord_…`) 또는 숫자 주문번호(`orderNo`, 하이픈 허용, 이슈 #107) + 주문할 때 적은 연락처·주문 조회 비밀번호.
|
|
@@ -3305,6 +3329,17 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3305
3329
|
}[] | undefined;
|
|
3306
3330
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3307
3331
|
}[] | undefined;
|
|
3332
|
+
flowBranches?: {
|
|
3333
|
+
key: string;
|
|
3334
|
+
label: string;
|
|
3335
|
+
enteredAt: string;
|
|
3336
|
+
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3337
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3338
|
+
message?: string | undefined;
|
|
3339
|
+
deadlineAt?: string | undefined;
|
|
3340
|
+
attachments?: string[] | undefined;
|
|
3341
|
+
progress?: boolean | undefined;
|
|
3342
|
+
}[] | undefined;
|
|
3308
3343
|
stay?: {
|
|
3309
3344
|
checkIn: string;
|
|
3310
3345
|
checkOut: string;
|
|
@@ -3341,6 +3376,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3341
3376
|
receiptUrl: string | null;
|
|
3342
3377
|
};
|
|
3343
3378
|
testPayment: boolean;
|
|
3379
|
+
progressStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3344
3380
|
}>;
|
|
3345
3381
|
getDelivery: (orderItemId: string) => Promise<{
|
|
3346
3382
|
carrierName: string;
|
|
@@ -3448,6 +3484,35 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3448
3484
|
claimNo: string | null;
|
|
3449
3485
|
} | undefined;
|
|
3450
3486
|
}>;
|
|
3487
|
+
/**
|
|
3488
|
+
* `POST /me/orders/{id}/actions/{key}` — 주문 전체 행동(#115, 예: 주문 전체 취소). 그 행동이 켜진 주문상품마다 실행하고 결과를
|
|
3489
|
+
* 주문상품별로 준다(부분 실행). 켜진 주문상품이 하나도 없으면 409 `ACTION_NOT_AVAILABLE`
|
|
3490
|
+
*/
|
|
3491
|
+
actOnOrder: (orderId: string, key: string, input?: Record<string, unknown>) => Promise<{
|
|
3492
|
+
orderId: string;
|
|
3493
|
+
key: string;
|
|
3494
|
+
results: {
|
|
3495
|
+
orderItemId: string;
|
|
3496
|
+
status: "COMPLETED" | "FAILED" | "SKIPPED";
|
|
3497
|
+
reason?: string | undefined;
|
|
3498
|
+
message?: string | undefined;
|
|
3499
|
+
}[];
|
|
3500
|
+
}>;
|
|
3501
|
+
/** 비회원 주문 전체 행동 — 비회원 주문 조회와 같은 확인·시도 한도 */
|
|
3502
|
+
guestActOnOrder: (orderId: string, key: string, body: {
|
|
3503
|
+
phone: string;
|
|
3504
|
+
orderPassword: string;
|
|
3505
|
+
input?: Record<string, unknown>;
|
|
3506
|
+
}) => Promise<{
|
|
3507
|
+
orderId: string;
|
|
3508
|
+
key: string;
|
|
3509
|
+
results: {
|
|
3510
|
+
orderItemId: string;
|
|
3511
|
+
status: "COMPLETED" | "FAILED" | "SKIPPED";
|
|
3512
|
+
reason?: string | undefined;
|
|
3513
|
+
message?: string | undefined;
|
|
3514
|
+
}[];
|
|
3515
|
+
}>;
|
|
3451
3516
|
};
|
|
3452
3517
|
myClaims: {
|
|
3453
3518
|
create: (orderItemId: string, body: CreateClaimRequest) => Promise<{
|
|
@@ -4056,6 +4121,25 @@ declare const flowActionResultSchema: z.ZodObject<{
|
|
|
4056
4121
|
}, z.core.$strip>>;
|
|
4057
4122
|
}, z.core.$strip>;
|
|
4058
4123
|
type FlowActionResult = z.infer<typeof flowActionResultSchema>;
|
|
4124
|
+
/**
|
|
4125
|
+
* 주문 전체 행동 결과(#115) — 같은 행동을 주문의 주문상품마다 실행한다. 한 주문상품의 실패가 다른 주문상품을 되돌리지 않는다(부분 실행).
|
|
4126
|
+
* 묶음 진행이면 한 번 실행이 묶음의 주문상품을 함께 움직인다(COMPLETED로 함께 나온다). 그 행동이 없는 주문상품은 SKIPPED다
|
|
4127
|
+
*/
|
|
4128
|
+
declare const orderFlowActionResultSchema: z.ZodObject<{
|
|
4129
|
+
orderId: z.ZodString;
|
|
4130
|
+
key: z.ZodString;
|
|
4131
|
+
results: z.ZodArray<z.ZodObject<{
|
|
4132
|
+
orderItemId: z.ZodString;
|
|
4133
|
+
status: z.ZodEnum<{
|
|
4134
|
+
COMPLETED: "COMPLETED";
|
|
4135
|
+
FAILED: "FAILED";
|
|
4136
|
+
SKIPPED: "SKIPPED";
|
|
4137
|
+
}>;
|
|
4138
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4139
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4140
|
+
}, z.core.$strip>>;
|
|
4141
|
+
}, z.core.$strip>;
|
|
4142
|
+
type OrderFlowActionResult = z.infer<typeof orderFlowActionResultSchema>;
|
|
4059
4143
|
//#endregion
|
|
4060
4144
|
//#region src/schemas/commerce-number.d.ts
|
|
4061
4145
|
/**
|
|
@@ -4175,6 +4259,26 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4175
4259
|
}, z.core.$strip>>>;
|
|
4176
4260
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4177
4261
|
}, z.core.$strip>>>;
|
|
4262
|
+
flowBranches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4263
|
+
key: z.ZodString;
|
|
4264
|
+
label: z.ZodString;
|
|
4265
|
+
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
4266
|
+
CANCELED: "CANCELED";
|
|
4267
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4268
|
+
PAID: "PAID";
|
|
4269
|
+
CONFIRMED: "CONFIRMED";
|
|
4270
|
+
DISPATCHED: "DISPATCHED";
|
|
4271
|
+
DELIVERING: "DELIVERING";
|
|
4272
|
+
DELIVERED: "DELIVERED";
|
|
4273
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4274
|
+
}>>;
|
|
4275
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4276
|
+
enteredAt: z.ZodString;
|
|
4277
|
+
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4278
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4279
|
+
progress: z.ZodOptional<z.ZodBoolean>;
|
|
4280
|
+
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
4281
|
+
}, z.core.$strip>>>;
|
|
4178
4282
|
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4179
4283
|
kind: z.ZodString;
|
|
4180
4284
|
groupName: z.ZodString;
|
|
@@ -4219,6 +4323,16 @@ declare const orderShippingAddressSchema: z.ZodObject<{
|
|
|
4219
4323
|
type OrderShippingAddress = z.infer<typeof orderShippingAddressSchema>;
|
|
4220
4324
|
declare const myOrderSchema: z.ZodObject<{
|
|
4221
4325
|
orderId: z.ZodString;
|
|
4326
|
+
progressStatus: z.ZodOptional<z.ZodEnum<{
|
|
4327
|
+
CANCELED: "CANCELED";
|
|
4328
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4329
|
+
PAID: "PAID";
|
|
4330
|
+
CONFIRMED: "CONFIRMED";
|
|
4331
|
+
DISPATCHED: "DISPATCHED";
|
|
4332
|
+
DELIVERING: "DELIVERING";
|
|
4333
|
+
DELIVERED: "DELIVERED";
|
|
4334
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4335
|
+
}>>;
|
|
4222
4336
|
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
4223
4337
|
orderedAt: z.ZodString;
|
|
4224
4338
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -4322,6 +4436,26 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
4322
4436
|
}, z.core.$strip>>>;
|
|
4323
4437
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4324
4438
|
}, z.core.$strip>>>;
|
|
4439
|
+
flowBranches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4440
|
+
key: z.ZodString;
|
|
4441
|
+
label: z.ZodString;
|
|
4442
|
+
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
4443
|
+
CANCELED: "CANCELED";
|
|
4444
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4445
|
+
PAID: "PAID";
|
|
4446
|
+
CONFIRMED: "CONFIRMED";
|
|
4447
|
+
DISPATCHED: "DISPATCHED";
|
|
4448
|
+
DELIVERING: "DELIVERING";
|
|
4449
|
+
DELIVERED: "DELIVERED";
|
|
4450
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4451
|
+
}>>;
|
|
4452
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4453
|
+
enteredAt: z.ZodString;
|
|
4454
|
+
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4455
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4456
|
+
progress: z.ZodOptional<z.ZodBoolean>;
|
|
4457
|
+
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
4458
|
+
}, z.core.$strip>>>;
|
|
4325
4459
|
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4326
4460
|
kind: z.ZodString;
|
|
4327
4461
|
groupName: z.ZodString;
|
|
@@ -4649,4 +4783,4 @@ declare const storefrontStoreSchema: z.ZodObject<{
|
|
|
4649
4783
|
}, z.core.$strip>;
|
|
4650
4784
|
type StorefrontStore = z.infer<typeof storefrontStoreSchema>;
|
|
4651
4785
|
//#endregion
|
|
4652
|
-
export { FlowInputField as $,
|
|
4786
|
+
export { FlowInputField as $, PageInfo as $i, ConsentAction as $n, availablePaymentOptionSchema as $r, reviewImageUploadRequestSchema as $t, StorefrontPointPolicy as A, CollectionProductSortParam as Ai, ApplicableCoupon as An, CreateCheckoutRequest as Ar, SessionStorage as At, deliveryTrackingSchema as B, collectionProductPageSchema as Bi, applicableCouponSchema as Bn, PAYMENT_STATUS_VALUES as Br, ReviewImageUploadRequest as Bt, lineSelectionResponseShape as C, updateCartItemRequestSchema as Ca, responsePaymentMethodSchema as Ci, publicInquirySchema as Cn, AvailablePaymentOption as Cr, analyticsClientEventSchema as Ct, parseCustomInputValue as D, CategoryNode as Di, createCustomerInquiryRequestSchema as Dn, CashReceiptType as Dr, StorefrontClientOptions as Dt, orderInputUploadRequestSchema as E, startPaymentRequestSchema as Ei, CustomerInquiryCategory as En, CashReceiptRequest as Er, StorefrontClient as Et, DeliveryTracking as F, ProductSearchParams as Fi, MAX_COUPONS_PER_CHECKOUT as Fn, KnownPaymentResult as Fr, CreateReviewResult as Ft, trackingStageResponseSchema as G, productFacetsSchema as Gi, couponBenefitViewSchema as Gn, PaymentStart as Gr, UploadTicket as Gt, myOrderSchema as H, collectionProductSortSchema as Hi, checkoutPricingSchema as Hn, PaymentMessage as Hr, ReviewSummary as Ht, MyOrder as I, ProductSort as Ii, MIN_PAYMENT_AMOUNT as In, KnownPaymentStartStatus as Ir, MyReview as It, parseOrderNo as J, storefrontCollectionDetailSchema as Ji, myCouponSchema as Jn, RemoteArea as Jr, createReviewResultSchema as Jt, commerceNumberField as K, productPageSchema as Ki, couponResultSchema as Kn, PaymentStatus as Kr, WritableReview as Kt, MyOrderItem as L, StorefrontCollection as Li, MyCoupon as Ln, KnownPaymentStatus as Lr, ProductReviewParams as Lt, memberPointEntrySchema as M, ProductDetail as Mi, CheckoutPricingRequest as Mn, DeliveryQuoteResult as Mr, StorefrontSessionOptions as Mt, memberPointsSchema as N, ProductFacets as Ni, CouponApplication as Nn, EasyPayProvider as Nr, createStorefrontSession as Nt, MemberPointEntry as O, CollectionProductPage as Oi, customerInquiryCategorySchema as On, CheckoutDelivery as Or, createStorefrontClient as Ot, storefrontPointPolicySchema as P, ProductPage as Pi, CouponResult as Pn, GuestInfo as Pr, CreateReviewRequest as Pt, FlowFieldValue as Q, OrderItemStatus as Qi, storefrontCouponTargetSchema as Qn, StartPaymentRequest as Qr, publicReviewSchema as Qt, OrderShippingAddress as R, StorefrontCollectionDetail as Ri, StorefrontCoupon as Rn, PAYMENT_RESULT_VALUES as Rr, ProductReviewSort as Rt, lineSelectionRequestShape as S, cartSchema as Sa, residentNumberLike as Si, productInquiryCategorySchema as Sn, myClaimSchema as Sr, analyticsClientEventNameSchema as St, optionSelectionViewSchema as T, shippingAddressInputSchema as Ti, CustomerInquiry as Tn, CashReceiptIdentityType as Tr, analyticsServerEventNameSchema as Tt, orderShippingAddressSchema as U, productCardSchema as Ui, couponApplicationListSchema as Un, PaymentMethod as Ur, UpdateReviewRequest as Ut, myOrderItemSchema as V, collectionProductQuerySchema as Vi, checkoutPricingRequestSchema as Vn, PaymentFailureCategory as Vr, ReviewPage as Vt, purchaseDecisionResultSchema as W, productDetailSchema as Wi, couponApplicationSchema as Wn, PaymentOption as Wr, UpdateReviewResult as Wt, FlowActionRequest as X, storefrontCollectionSchema as Xi, storefrontCouponListQuerySchema as Xn, RetryPaymentRequest as Xr, productReviewQuerySchema as Xt, FlowAction as Y, storefrontCollectionListQuerySchema as Yi, pricingAmountsSchema as Yn, ResponsePaymentMethod as Yr, myReviewSchema as Yt, FlowActionResult as Z, ClaimStatus as Zi, storefrontCouponSchema as Zn, ShippingAddressInput as Zr, productReviewSortSchema as Zt, addonSelectionSchema as _, Cart as _a, paymentOptionSchema as _i, CreateInquiryResult as _n, claimReasonSchema as _r, AnalyticsClientEvent as _t, StayView as a, LineFulfillment as aa, checkoutSessionSchema as ai, writableReviewSchema as an, consentActionSchema as ar, flowActionSchema as at, customInputValueViewSchema as b, addCartItemRequestSchema as ba, pgProviderSchema as bi, createInquiryRequestSchema as bn, createClaimRequestSchema as br, AnalyticsServerEventName as bt, stayViewSchema as c, ProductCardFulfillment as ca, deliveryQuoteSchema as ci, MemberAddressRequest as cn, consentStateSchema as cr, flowStateSchema as ct, CustomInputEntry as d, lineFulfillmentSchema as da, guestInfoSchema as di, memberAddressRequestSchema as dn, ClaimReason as dr, ANALYTICS_MAX_BATCH_BYTES as dt, PageParams as ea, cashReceiptAvailable as ei, reviewPageSchema as en, ConsentKind as er, FlowState as et, CustomInputValueView as f, myOrderItemFulfillmentSnapshotSchema as fa, paymentFailureCategorySchema as fi, memberAddressSchema as fn, ClaimReturnAddress as fr, ANALYTICS_SESSION_COOKIE as ft, addonGroupViewSchema as g, AddCartItemRequest as ga, paymentOptionListSchema as gi, CreateInquiryRequest as gn, MyClaim as gr, AnalyticsBatch as gt, OrderInputUploadRequest as h, productFulfillmentViewSchema as ha, paymentOptionKey as hi, wishlistAddResultSchema as hn, CreateClaimResult as hr, ANALYTICS_VISITOR_HEADER as ht, StayRequest as i, pageSchema as ia, checkoutDeliverySchema as ii, uploadTicketSchema as in, MemberConsents as ir, flowActionResultSchema as it, memberPointEntryPageSchema as j, ProductCard as ji, CheckoutPricing as jn, DeliveryQuoteRequest as jr, StorefrontSession as jt, MemberPoints as k, CollectionProductParams as ki, customerInquirySchema as kn, CheckoutSession as kr, STOREFRONT_SESSION_KEYS as kt, AddonGroupView as l, ProductFulfillmentView as la, easyPayProviderResponseSchema as li, UpdateProfileRequest as ln, consentUpdateRequestSchema as lr, guestFlowActionRequestSchema as lt, OptionSelectionView as m, productCardFulfillmentSchema as ma, paymentMethodSchema as mi, updateProfileRequestSchema as mn, CreateClaimRequest as mr, ANALYTICS_VISITOR_COOKIE as mt, storefrontStoreSchema as n, orderItemStatusSchema as na, cashReceiptRequestSchema as ni, updateReviewRequestSchema as nn, ConsentState as nr, OrderFlowActionResult as nt, calendarDayViewSchema as o, MyOrderItemFulfillmentSnapshot as oa, createCheckoutRequestSchema as oi, Member as on, consentKindSchema as or, flowFieldValueSchema as ot, CustomInputView as p, pickupLocationViewSchema as pa, paymentMessageSchema as pi, memberSchema as pn, ClaimType as pr, ANALYTICS_SESSION_HEADER as pt, formatOrderNo as q, productSortSchema as qi, myCouponListQuerySchema as qn, PgProvider as qr, createReviewRequestSchema as qt, CalendarDayView as r, pageInfoSchema as ra, cashReceiptTypeSchema as ri, updateReviewResultSchema as rn, ConsentUpdateRequest as rr, flowActionRequestSchema as rt, stayRequestSchema as s, PickupLocationView as sa, deliveryQuoteRequestSchema as si, MemberAddress as sn, consentSourceSchema as sr, flowInputFieldSchema as st, StorefrontStore as t, claimStatusSchema as ta, cashReceiptIdentityTypeOf as ti, reviewSummarySchema as tn, ConsentSource as tr, GuestFlowActionRequest as tt, AddonSelection as u, UnknownFulfillmentView as ua, easyPayProviderSchema as ui, WishlistAddResult as un, memberConsentsSchema as ur, orderFlowActionResultSchema as ut, customInputEntrySchema as v, CartItem as va, paymentStartSchema as vi, ProductInquiryCategory as vn, claimReturnAddressSchema as vr, AnalyticsClientEventName as vt, normalizeCustomInputValue as w, analyticsIdsFromCookie as wa, retryPaymentRequestSchema as wi, CreateCustomerInquiryRequest as wn, CASH_RECEIPT_METHODS as wr, analyticsIdSchema as wt, customInputViewSchema as x, cartItemSchema as xa, remoteAreaSchema as xi, createInquiryResultSchema as xn, createClaimResultSchema as xr, analyticsBatchSchema as xt, customInputLength as y, UpdateCartItemRequest as ya, paymentStatusSchema as yi, PublicInquiry as yn, claimTypeSchema as yr, AnalyticsEventName as yt, PurchaseDecisionResult as z, categoryNodeSchema as zi, StorefrontCouponListParams as zn, PAYMENT_START_STATUS_VALUES as zr, PublicReview 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 FlowInputField, $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, OptionSelectionView, OrderInputUploadRequest, OrderItemStatus, OrderShippingAddress, 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, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, 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 FlowInputField, $i as PageInfo, $n as ConsentAction, $r as availablePaymentOptionSchema, $t as reviewImageUploadRequestSchema, A as StorefrontPointPolicy, Ai as CollectionProductSortParam, An as ApplicableCoupon, Ar as CreateCheckoutRequest, At as SessionStorage, B as deliveryTrackingSchema, Bi as collectionProductPageSchema, Bn as applicableCouponSchema, Br as PAYMENT_STATUS_VALUES, Bt as ReviewImageUploadRequest, C as lineSelectionResponseShape, Ca as updateCartItemRequestSchema, Ci as responsePaymentMethodSchema, Cn as publicInquirySchema, Cr as AvailablePaymentOption, Ct as analyticsClientEventSchema, D as parseCustomInputValue, Di as CategoryNode, Dn as createCustomerInquiryRequestSchema, Dr as CashReceiptType, Dt as StorefrontClientOptions, E as orderInputUploadRequestSchema, Ei as startPaymentRequestSchema, En as CustomerInquiryCategory, Er as CashReceiptRequest, Et as StorefrontClient, F as DeliveryTracking, Fi as ProductSearchParams, Fn as MAX_COUPONS_PER_CHECKOUT, Fr as KnownPaymentResult, Ft as CreateReviewResult, G as trackingStageResponseSchema, Gi as productFacetsSchema, Gn as couponBenefitViewSchema, Gr as PaymentStart, Gt as UploadTicket, H as myOrderSchema, Hi as collectionProductSortSchema, Hn as checkoutPricingSchema, Hr as PaymentMessage, Ht as ReviewSummary, I as MyOrder, Ii as ProductSort, In as MIN_PAYMENT_AMOUNT, Ir as KnownPaymentStartStatus, It as MyReview, J as parseOrderNo, Ji as storefrontCollectionDetailSchema, Jn as myCouponSchema, Jr as RemoteArea, Jt as createReviewResultSchema, K as commerceNumberField, Ki as productPageSchema, Kn as couponResultSchema, Kr as PaymentStatus, Kt as WritableReview, L as MyOrderItem, Li as StorefrontCollection, Ln as MyCoupon, Lr as KnownPaymentStatus, Lt as ProductReviewParams, M as memberPointEntrySchema, Mi as ProductDetail, Mn as CheckoutPricingRequest, Mr as DeliveryQuoteResult, Mt as StorefrontSessionOptions, N as memberPointsSchema, Ni as ProductFacets, Nn as CouponApplication, Nr as EasyPayProvider, Nt as createStorefrontSession, O as MemberPointEntry, Oi as CollectionProductPage, On as customerInquiryCategorySchema, Or as CheckoutDelivery, Ot as createStorefrontClient, P as storefrontPointPolicySchema, Pi as ProductPage, Pn as CouponResult, Pr as GuestInfo, Pt as CreateReviewRequest, Q as FlowFieldValue, Qi as OrderItemStatus, Qn as storefrontCouponTargetSchema, Qr as StartPaymentRequest, Qt as publicReviewSchema, R as OrderShippingAddress, Ri as StorefrontCollectionDetail, Rn as StorefrontCoupon, Rr as PAYMENT_RESULT_VALUES, Rt as ProductReviewSort, S as lineSelectionRequestShape, Sa as cartSchema, Si as residentNumberLike, Sn as productInquiryCategorySchema, Sr as myClaimSchema, St as analyticsClientEventNameSchema, T as optionSelectionViewSchema, Ti as shippingAddressInputSchema, Tn as CustomerInquiry, Tr as CashReceiptIdentityType, Tt as analyticsServerEventNameSchema, U as orderShippingAddressSchema, Ui as productCardSchema, Un as couponApplicationListSchema, Ur as PaymentMethod, Ut as UpdateReviewRequest, V as myOrderItemSchema, Vi as collectionProductQuerySchema, Vn as checkoutPricingRequestSchema, Vr as PaymentFailureCategory, Vt as ReviewPage, W as purchaseDecisionResultSchema, Wi as productDetailSchema, Wn as couponApplicationSchema, Wr as PaymentOption, Wt as UpdateReviewResult, X as FlowActionRequest, Xi as storefrontCollectionSchema, Xn as storefrontCouponListQuerySchema, Xr as RetryPaymentRequest, Xt as productReviewQuerySchema, Y as FlowAction, Yi as storefrontCollectionListQuerySchema, Yn as pricingAmountsSchema, Yr as ResponsePaymentMethod, Yt as myReviewSchema, Z as FlowActionResult, Zi as ClaimStatus, Zn as storefrontCouponSchema, Zr as ShippingAddressInput, Zt as productReviewSortSchema, _ as addonSelectionSchema, _a as Cart, _i as paymentOptionSchema, _n as CreateInquiryResult, _r as claimReasonSchema, _t as AnalyticsClientEvent, a as StayView, aa as LineFulfillment, ai as checkoutSessionSchema, an as writableReviewSchema, ar as consentActionSchema, at as flowActionSchema, b as customInputValueViewSchema, ba as addCartItemRequestSchema, bi as pgProviderSchema, bn as createInquiryRequestSchema, br as createClaimRequestSchema, bt as AnalyticsServerEventName, c as stayViewSchema, ca as ProductCardFulfillment, ci as deliveryQuoteSchema, cn as MemberAddressRequest, cr as consentStateSchema, ct as flowStateSchema, d as CustomInputEntry, da as lineFulfillmentSchema, di as guestInfoSchema, dn as memberAddressRequestSchema, dr as ClaimReason, dt as ANALYTICS_MAX_BATCH_BYTES, ea as PageParams, ei as cashReceiptAvailable, en as reviewPageSchema, er as ConsentKind, et as FlowState, f as CustomInputValueView, fa as myOrderItemFulfillmentSnapshotSchema, fi as paymentFailureCategorySchema, fn as memberAddressSchema, fr as ClaimReturnAddress, ft as ANALYTICS_SESSION_COOKIE, g as addonGroupViewSchema, ga as AddCartItemRequest, gi as paymentOptionListSchema, gn as CreateInquiryRequest, gr as MyClaim, gt as AnalyticsBatch, h as OrderInputUploadRequest, ha as productFulfillmentViewSchema, hi as paymentOptionKey, hn as wishlistAddResultSchema, hr as CreateClaimResult, ht as ANALYTICS_VISITOR_HEADER, i as StayRequest, ia as pageSchema, ii as checkoutDeliverySchema, in as uploadTicketSchema, ir as MemberConsents, it as flowActionResultSchema, j as memberPointEntryPageSchema, ji as ProductCard, jn as CheckoutPricing, jr as DeliveryQuoteRequest, jt as StorefrontSession, k as MemberPoints, ki as CollectionProductParams, kn as customerInquirySchema, kr as CheckoutSession, kt as STOREFRONT_SESSION_KEYS, l as AddonGroupView, la as ProductFulfillmentView, li as easyPayProviderResponseSchema, ln as UpdateProfileRequest, lr as consentUpdateRequestSchema, lt as guestFlowActionRequestSchema, m as OptionSelectionView, ma as productCardFulfillmentSchema, mi as paymentMethodSchema, mn as updateProfileRequestSchema, mr as CreateClaimRequest, mt as ANALYTICS_VISITOR_COOKIE, n as storefrontStoreSchema, na as orderItemStatusSchema, ni as cashReceiptRequestSchema, nn as updateReviewRequestSchema, nr as ConsentState, nt as OrderFlowActionResult, o as calendarDayViewSchema, oa as MyOrderItemFulfillmentSnapshot, oi as createCheckoutRequestSchema, on as Member, or as consentKindSchema, ot as flowFieldValueSchema, p as CustomInputView, pa as pickupLocationViewSchema, pi as paymentMessageSchema, pn as memberSchema, pr as ClaimType, pt as ANALYTICS_SESSION_HEADER, q as formatOrderNo, qi as productSortSchema, qn as myCouponListQuerySchema, qr as PgProvider, qt as createReviewRequestSchema, r as CalendarDayView, ra as pageInfoSchema, ri as cashReceiptTypeSchema, rn as updateReviewResultSchema, rr as ConsentUpdateRequest, rt as flowActionRequestSchema, s as stayRequestSchema, sa as PickupLocationView, si as deliveryQuoteRequestSchema, sn as MemberAddress, sr as consentSourceSchema, st as flowInputFieldSchema, t as StorefrontStore, ta as claimStatusSchema, ti as cashReceiptIdentityTypeOf, tn as reviewSummarySchema, tr as ConsentSource, tt as GuestFlowActionRequest, u as AddonSelection, ua as UnknownFulfillmentView, ui as easyPayProviderSchema, un as WishlistAddResult, ur as memberConsentsSchema, ut as orderFlowActionResultSchema, v as customInputEntrySchema, va as CartItem, vi as paymentStartSchema, vn as ProductInquiryCategory, vr as claimReturnAddressSchema, vt as AnalyticsClientEventName, w as normalizeCustomInputValue, wa as analyticsIdsFromCookie, wi as retryPaymentRequestSchema, wn as CreateCustomerInquiryRequest, wr as CASH_RECEIPT_METHODS, wt as analyticsIdSchema, x as customInputViewSchema, xa as cartItemSchema, xi as remoteAreaSchema, xn as createInquiryResultSchema, xr as createClaimResultSchema, xt as analyticsBatchSchema, y as customInputLength, ya as UpdateCartItemRequest, yi as paymentStatusSchema, yn as PublicInquiry, yr as claimTypeSchema, yt as AnalyticsEventName, z as PurchaseDecisionResult, zi as categoryNodeSchema, zn as StorefrontCouponListParams, zr as PAYMENT_START_STATUS_VALUES, zt as PublicReview } from "./index-BLjQQj49.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, 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, OptionSelectionView, OrderFlowActionResult, OrderInputUploadRequest, OrderItemStatus, OrderShippingAddress, 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, 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
|
|
3
|
+
import { $ as claimReturnAddressSchema, A as wishlistAddResultSchema, At as idpAuthorizeResponseSchema, B as consentSourceSchema, Bt as ApiError, C as orderShippingAddressSchema, Ct as addCartItemRequestSchema, D as memberAddressSchema, Dt as anonymousSessionSchema, E as memberAddressRequestSchema, Et as updateCartItemRequestSchema, F as createCustomerInquiryRequestSchema, Ft as signupRequestSchema, G as flowActionResultSchema, H as consentUpdateRequestSchema, Ht as toApiError, I as customerInquiryCategorySchema, It as socialProviderSchema, J as flowInputFieldSchema, K as flowActionSchema, L as customerInquirySchema, Lt as tokenPairSchema, M as createInquiryResultSchema, Mt as linkIdentityRequestSchema, N as productInquiryCategorySchema, Nt as loginRequestSchema, O as memberSchema, Ot as idpAgreementsSchema, P as publicInquirySchema, Pt as memberIdentitiesSchema, Q as claimReasonSchema, R as consentActionSchema, Rt as withdrawRequestSchema, S as myOrderSchema, St as pageSchema, T as trackingStageResponseSchema, Tt as cartSchema, U as memberConsentsSchema, Ut as unwrapData, V as consentStateSchema, Vt as buildQuery, W as flowActionRequestSchema, X as guestFlowActionRequestSchema, Y as flowStateSchema, Z as orderFlowActionResultSchema, _ as memberPointEntrySchema, _t as storefrontCollectionListQuerySchema, a as myReviewSchema, at as formatOrderNo, b as deliveryTrackingSchema, bt as orderItemStatusSchema, c as publicReviewSchema, ct as collectionProductPageSchema, d as reviewSummarySchema, dt as productCardSchema, et as claimTypeSchema, f as updateReviewRequestSchema, ft as productDetailSchema, g as memberPointEntryPageSchema, gt as storefrontCollectionDetailSchema, h as writableReviewSchema, ht as productSortSchema, i as createReviewResultSchema, it as commerceNumberField, j as createInquiryRequestSchema, jt as idpTokenRequestSchema, k as updateProfileRequestSchema, kt as idpAuthorizeRequestSchema, l as reviewImageUploadRequestSchema, lt as collectionProductQuerySchema, m as uploadTicketSchema, mt as productPageSchema, n as storefrontStoreSchema, nt as createClaimResultSchema, o as productReviewQuerySchema, ot as parseOrderNo, p as updateReviewResultSchema, pt as productFacetsSchema, q as flowFieldValueSchema, r as createReviewRequestSchema, rt as myClaimSchema, s as productReviewSortSchema, st as categoryNodeSchema, t as createStorefrontClient, tt as createClaimRequestSchema, u as reviewPageSchema, ut as collectionProductSortSchema, v as memberPointsSchema, vt as storefrontCollectionSchema, w as purchaseDecisionResultSchema, wt as cartItemSchema, x as myOrderItemSchema, xt as pageInfoSchema, y as storefrontPointPolicySchema, yt as claimStatusSchema, z as consentKindSchema, zt as withdrawalBlockedDetailsSchema } from "./client-vjq513VD.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, 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, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, 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, 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, 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 { Er as CashReceiptRequest, Gr as PaymentStart, Kr as PaymentStatus, Ot as createStorefrontClient, Pr as GuestInfo, Qr as StartPaymentRequest, Wr as PaymentOption, Zr as ShippingAddressInput } from "../index-BLjQQj49.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
|
@@ -61,6 +61,7 @@ import {
|
|
|
61
61
|
flowActionRequestSchema,
|
|
62
62
|
flowActionResultSchema,
|
|
63
63
|
guestFlowActionRequestSchema,
|
|
64
|
+
orderFlowActionResultSchema,
|
|
64
65
|
} from "./schemas/commerce-flow";
|
|
65
66
|
import {
|
|
66
67
|
type ClaimStatus,
|
|
@@ -452,6 +453,31 @@ export function createStorefrontClient(options: StorefrontClientOptions) {
|
|
|
452
453
|
flowActionResultSchema,
|
|
453
454
|
{ body: guestFlowActionRequestSchema.parse(body) },
|
|
454
455
|
),
|
|
456
|
+
/**
|
|
457
|
+
* `POST /me/orders/{id}/actions/{key}` — 주문 전체 행동(#115, 예: 주문 전체 취소). 그 행동이 켜진 주문상품마다 실행하고 결과를
|
|
458
|
+
* 주문상품별로 준다(부분 실행). 켜진 주문상품이 하나도 없으면 409 `ACTION_NOT_AVAILABLE`
|
|
459
|
+
*/
|
|
460
|
+
actOnOrder: (orderId: string, key: string, input: Record<string, unknown> = {}) =>
|
|
461
|
+
http.request(
|
|
462
|
+
"POST",
|
|
463
|
+
path`/me/orders/${orderId}/actions/${key}`,
|
|
464
|
+
orderFlowActionResultSchema,
|
|
465
|
+
{
|
|
466
|
+
body: flowActionRequestSchema.parse({ input }),
|
|
467
|
+
},
|
|
468
|
+
),
|
|
469
|
+
/** 비회원 주문 전체 행동 — 비회원 주문 조회와 같은 확인·시도 한도 */
|
|
470
|
+
guestActOnOrder: (
|
|
471
|
+
orderId: string,
|
|
472
|
+
key: string,
|
|
473
|
+
body: { phone: string; orderPassword: string; input?: Record<string, unknown> },
|
|
474
|
+
) =>
|
|
475
|
+
http.request(
|
|
476
|
+
"POST",
|
|
477
|
+
path`/guest/orders/${orderId}/actions/${key}`,
|
|
478
|
+
orderFlowActionResultSchema,
|
|
479
|
+
{ body: guestFlowActionRequestSchema.parse(body) },
|
|
480
|
+
),
|
|
455
481
|
},
|
|
456
482
|
|
|
457
483
|
myClaims: {
|
|
@@ -86,3 +86,30 @@ export const flowActionResultSchema = z.object({
|
|
|
86
86
|
),
|
|
87
87
|
});
|
|
88
88
|
export type FlowActionResult = z.infer<typeof flowActionResultSchema>;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* 주문 전체 행동 결과(#115) — 같은 행동을 주문의 주문상품마다 실행한다. 한 주문상품의 실패가 다른 주문상품을 되돌리지 않는다(부분 실행).
|
|
92
|
+
* 묶음 진행이면 한 번 실행이 묶음의 주문상품을 함께 움직인다(COMPLETED로 함께 나온다). 그 행동이 없는 주문상품은 SKIPPED다
|
|
93
|
+
*/
|
|
94
|
+
export const orderFlowActionResultSchema = z.object({
|
|
95
|
+
orderId: z.string(),
|
|
96
|
+
key: z.string(),
|
|
97
|
+
results: z.array(
|
|
98
|
+
z.object({
|
|
99
|
+
orderItemId: z.string(),
|
|
100
|
+
status: z
|
|
101
|
+
.enum(["COMPLETED", "SKIPPED", "FAILED"])
|
|
102
|
+
.describe(
|
|
103
|
+
"COMPLETED 실행 · SKIPPED 이 주문상품에는 그 행동이 없다 · FAILED 실행하다 거절됐다",
|
|
104
|
+
),
|
|
105
|
+
reason: z
|
|
106
|
+
.string()
|
|
107
|
+
.optional()
|
|
108
|
+
.describe(
|
|
109
|
+
"SKIPPED·FAILED의 이유 — 꺼진 이유(EXPIRED·CONDITION·NOT_IN_STATE) 또는 오류 코드",
|
|
110
|
+
),
|
|
111
|
+
message: z.string().optional(),
|
|
112
|
+
}),
|
|
113
|
+
),
|
|
114
|
+
});
|
|
115
|
+
export type OrderFlowActionResult = z.infer<typeof orderFlowActionResultSchema>;
|
package/src/schemas/order.ts
CHANGED
|
@@ -78,6 +78,12 @@ export const myOrderItemSchema = z.object({
|
|
|
78
78
|
.describe(
|
|
79
79
|
"지금 할 수 있는 행동. 화면은 이 목록으로 버튼을 그린다(상태 이름으로 분기하지 않는다)",
|
|
80
80
|
),
|
|
81
|
+
flowBranches: z
|
|
82
|
+
.array(flowStateSchema)
|
|
83
|
+
.optional()
|
|
84
|
+
.describe(
|
|
85
|
+
"진행 위치가 둘 이상(병렬 진행·하위 흐름)이면 각 위치의 상태. `flowState`는 그 가운데 가장 앞 단계다",
|
|
86
|
+
),
|
|
81
87
|
});
|
|
82
88
|
|
|
83
89
|
export type MyOrderItem = z.infer<typeof myOrderItemSchema>;
|
|
@@ -103,6 +109,11 @@ export type OrderShippingAddress = z.infer<typeof orderShippingAddressSchema>;
|
|
|
103
109
|
|
|
104
110
|
export const myOrderSchema = z.object({
|
|
105
111
|
orderId: z.string(),
|
|
112
|
+
progressStatus: orderItemStatusSchema
|
|
113
|
+
.optional()
|
|
114
|
+
.describe(
|
|
115
|
+
"진행 중 주문상품 가운데 가장 앞 단계(취소 제외, 모두 취소면 CANCELED, #115). 섞인 주문에서 아직 기다리는 단계다. 서버는 항상 싣는다",
|
|
116
|
+
),
|
|
106
117
|
orderNo: commerceNumberField(
|
|
107
118
|
"주문번호(이슈 #107) — 숫자 14자리, 생성 후 바뀌지 않습니다. 구매자 화면에는 `formatOrderNo`(4자리 하이픈)로 표시하십시오. 비회원 주문 조회 경로에도 쓸 수 있습니다",
|
|
108
119
|
),
|