@sayren/storefront-sdk 0.20.8 → 0.20.10
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-DJjcGd_M.mjs} +83 -6
- package/dist/{index-Bv49jTFH.d.mts → index-BVJvoppI.d.mts} +699 -120
- 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 +39 -0
- package/src/schemas/commerce-flow.ts +95 -1
- package/src/schemas/order.ts +17 -1
|
@@ -1822,6 +1822,123 @@ declare const wishlistAddResultSchema: z.ZodObject<{
|
|
|
1822
1822
|
}, z.core.$strip>;
|
|
1823
1823
|
type WishlistAddResult = z.infer<typeof wishlistAddResultSchema>;
|
|
1824
1824
|
//#endregion
|
|
1825
|
+
//#region src/schemas/product-options.d.ts
|
|
1826
|
+
/**
|
|
1827
|
+
* 추가 선택·직접 입력 (이슈 #59) — 상품 상세의 옵션 표시, 장바구니 담기·바로 구매 요청, 줄 스냅샷의 공통 모양.
|
|
1828
|
+
*
|
|
1829
|
+
* 추가 선택은 재고가 없는 옵션이다. 구매자가 조합(옵션이 없으면 상품)을 고른 뒤 옵션명마다 값 하나를 더 고르고, 값의 추가금이
|
|
1830
|
+
* 단가에 더해진다. 직접 입력은 구매자가 글자를 적는 항목(각인 문구 등)이다. 추가 선택 값이나 직접 입력값이 다르면 장바구니에서 다른 줄이다.
|
|
1831
|
+
*/
|
|
1832
|
+
declare const addonGroupViewSchema: z.ZodObject<{
|
|
1833
|
+
groupId: z.ZodString;
|
|
1834
|
+
name: z.ZodString;
|
|
1835
|
+
required: z.ZodBoolean;
|
|
1836
|
+
values: z.ZodArray<z.ZodObject<{
|
|
1837
|
+
valueId: z.ZodString;
|
|
1838
|
+
name: z.ZodString;
|
|
1839
|
+
additionalPrice: z.ZodNumber;
|
|
1840
|
+
}, z.core.$strip>>;
|
|
1841
|
+
}, z.core.$strip>;
|
|
1842
|
+
type AddonGroupView = z.infer<typeof addonGroupViewSchema>;
|
|
1843
|
+
declare const customInputViewSchema: z.ZodObject<{
|
|
1844
|
+
inputId: z.ZodString;
|
|
1845
|
+
label: z.ZodString;
|
|
1846
|
+
placeholder: z.ZodNullable<z.ZodString>;
|
|
1847
|
+
maxLength: z.ZodNumber;
|
|
1848
|
+
required: z.ZodBoolean;
|
|
1849
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1850
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1851
|
+
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
1852
|
+
}, z.core.$strip>;
|
|
1853
|
+
type CustomInputView = z.infer<typeof customInputViewSchema>;
|
|
1854
|
+
/**
|
|
1855
|
+
* 직접 입력값을 타입대로 검사하고 저장할 모양으로 바꾼다(정규화 뒤 값). 서버 판정(400 `CUSTOM_INPUT_INVALID`)과 스토어프론트
|
|
1856
|
+
* 입력 검사가 이 함수 하나를 쓴다. 모르는 타입은 `text`로 본다. 맞지 않으면 null
|
|
1857
|
+
*/
|
|
1858
|
+
declare function parseCustomInputValue(type: string | null | undefined, options: readonly string[] | null | undefined, raw: string): string | null;
|
|
1859
|
+
/**
|
|
1860
|
+
* 직접 입력값 정규화 — NFC로 모으고, 제어 문자(C0·C1·줄바꿈·줄·문단 구분자)는 공백으로, 제로폭·양방향 제어 문자는 지운 뒤
|
|
1861
|
+
* 앞뒤 공백을 지운다. 서버가 저장하는 값이 이것이다. 빈 문자열이면 입력하지 않은 것으로 본다.
|
|
1862
|
+
* (양방향 제어 문자를 두면 셀러 주문 화면의 각인 문구가 뒤집혀 보이게 할 수 있다.)
|
|
1863
|
+
*/
|
|
1864
|
+
declare function normalizeCustomInputValue(value: string): string;
|
|
1865
|
+
/**
|
|
1866
|
+
* 직접 입력값의 글자 수 — 정규화한 값의 **코드 포인트 수**다(이모지 하나가 1자). 서버의 최대 글자 수 판정(`CUSTOM_INPUT_TOO_LONG`)과
|
|
1867
|
+
* 스토어프론트·상점 플랫폼의 글자 수 표시가 이 함수 하나를 쓴다. `String.length`(UTF-16)로 세면 이모지가 2자로 세어 판정이 갈린다.
|
|
1868
|
+
*/
|
|
1869
|
+
declare function customInputLength(value: string): number;
|
|
1870
|
+
/** 담기·바로 구매 요청의 직접 입력값 한 칸. 앞뒤 공백을 지우고, 빈 값은 입력하지 않은 것으로 본다 */
|
|
1871
|
+
declare const customInputEntrySchema: z.ZodObject<{
|
|
1872
|
+
inputId: z.ZodString;
|
|
1873
|
+
value: z.ZodString;
|
|
1874
|
+
}, z.core.$strip>;
|
|
1875
|
+
type CustomInputEntry = z.infer<typeof customInputEntrySchema>;
|
|
1876
|
+
/** 고른 추가 선택 한 칸 — 옵션명(`groupId`)과 그 옵션명의 값(`valueId`) */
|
|
1877
|
+
declare const addonSelectionSchema: z.ZodObject<{
|
|
1878
|
+
groupId: z.ZodString;
|
|
1879
|
+
valueId: z.ZodString;
|
|
1880
|
+
}, z.core.$strip>;
|
|
1881
|
+
type AddonSelection = z.infer<typeof addonSelectionSchema>;
|
|
1882
|
+
/** 요청의 추가 선택·직접 입력 필드 — 담기·장바구니 수정·바로 구매가 같은 이름을 쓴다 */
|
|
1883
|
+
declare const lineSelectionRequestShape: {
|
|
1884
|
+
addons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1885
|
+
groupId: z.ZodString;
|
|
1886
|
+
valueId: z.ZodString;
|
|
1887
|
+
}, z.core.$strip>>>;
|
|
1888
|
+
customInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1889
|
+
inputId: z.ZodString;
|
|
1890
|
+
value: z.ZodString;
|
|
1891
|
+
}, z.core.$strip>>>;
|
|
1892
|
+
stay: z.ZodOptional<z.ZodObject<{
|
|
1893
|
+
checkIn: z.ZodString;
|
|
1894
|
+
checkOut: z.ZodString;
|
|
1895
|
+
}, z.core.$strip>>;
|
|
1896
|
+
};
|
|
1897
|
+
/** 줄의 옵션 선택 스냅샷 한 칸 — 조합 옵션은 옵션명마다 한 칸이고 추가금이 0이다(조합 추가금은 단가에 들어 있다) */
|
|
1898
|
+
declare const optionSelectionViewSchema: z.ZodObject<{
|
|
1899
|
+
kind: z.ZodString;
|
|
1900
|
+
groupName: z.ZodString;
|
|
1901
|
+
valueName: z.ZodString;
|
|
1902
|
+
additionalPrice: z.ZodNumber;
|
|
1903
|
+
}, z.core.$strip>;
|
|
1904
|
+
type OptionSelectionView = z.infer<typeof optionSelectionViewSchema>;
|
|
1905
|
+
declare const customInputValueViewSchema: z.ZodObject<{
|
|
1906
|
+
label: z.ZodString;
|
|
1907
|
+
value: z.ZodString;
|
|
1908
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1909
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1910
|
+
}, z.core.$strip>;
|
|
1911
|
+
type CustomInputValueView = z.infer<typeof customInputValueViewSchema>;
|
|
1912
|
+
/** 응답 줄의 표시 필드 — 장바구니·주문서·주문상품이 같은 이름을 쓴다 */
|
|
1913
|
+
declare const lineSelectionResponseShape: {
|
|
1914
|
+
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1915
|
+
kind: z.ZodString;
|
|
1916
|
+
groupName: z.ZodString;
|
|
1917
|
+
valueName: z.ZodString;
|
|
1918
|
+
additionalPrice: z.ZodNumber;
|
|
1919
|
+
}, z.core.$strip>>>>;
|
|
1920
|
+
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1921
|
+
label: z.ZodString;
|
|
1922
|
+
value: z.ZodString;
|
|
1923
|
+
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1924
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1925
|
+
}, z.core.$strip>>>>;
|
|
1926
|
+
stay: z.ZodOptional<z.ZodObject<{
|
|
1927
|
+
checkIn: z.ZodString;
|
|
1928
|
+
checkOut: z.ZodString;
|
|
1929
|
+
nights: z.ZodArray<z.ZodObject<{
|
|
1930
|
+
date: z.ZodString;
|
|
1931
|
+
price: z.ZodNumber;
|
|
1932
|
+
}, z.core.$strip>>;
|
|
1933
|
+
}, z.core.$strip>>;
|
|
1934
|
+
};
|
|
1935
|
+
/** 주문 입력 이미지 업로드 자리 요청(#115 E4) — 파일명은 확장자만 쓰인다 */
|
|
1936
|
+
declare const orderInputUploadRequestSchema: z.ZodObject<{
|
|
1937
|
+
filename: z.ZodString;
|
|
1938
|
+
size: z.ZodOptional<z.ZodNumber>;
|
|
1939
|
+
}, z.core.$strip>;
|
|
1940
|
+
type OrderInputUploadRequest = z.infer<typeof orderInputUploadRequestSchema>;
|
|
1941
|
+
//#endregion
|
|
1825
1942
|
//#region src/schemas/review.d.ts
|
|
1826
1943
|
declare const publicReviewSchema: z.ZodObject<{
|
|
1827
1944
|
reviewId: z.ZodString;
|
|
@@ -2613,6 +2730,15 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
2613
2730
|
};
|
|
2614
2731
|
}>;
|
|
2615
2732
|
removeItem: (cartItemId: string) => Promise<void>;
|
|
2733
|
+
/**
|
|
2734
|
+
* 직접 입력 이미지(`type: "image"`) 업로드 자리 — 응답 `uploadUrl`에 파일을 PUT한 뒤 `url`을 담기·바로 구매의
|
|
2735
|
+
* `customInputs` 값에 넣는다(여러 장이면 줄바꿈으로 잇는다). 비회원도 부를 수 있다.
|
|
2736
|
+
* 형식·크기가 맞지 않으면 400 `UNSUPPORTED_FILE_TYPE`·413 `FILE_TOO_LARGE`, 연타하면 429 `TOO_MANY_REQUESTS`다
|
|
2737
|
+
*/
|
|
2738
|
+
createInputImageUpload: (body: OrderInputUploadRequest) => Promise<{
|
|
2739
|
+
url: string;
|
|
2740
|
+
uploadUrl: string;
|
|
2741
|
+
}>;
|
|
2616
2742
|
};
|
|
2617
2743
|
checkout: {
|
|
2618
2744
|
create: (body: CreateCheckoutRequest) => Promise<{
|
|
@@ -3006,6 +3132,15 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3006
3132
|
message?: string | undefined;
|
|
3007
3133
|
deadlineAt?: string | undefined;
|
|
3008
3134
|
attachments?: string[] | undefined;
|
|
3135
|
+
inputs?: {
|
|
3136
|
+
by: string;
|
|
3137
|
+
values: {
|
|
3138
|
+
key: string;
|
|
3139
|
+
label: string;
|
|
3140
|
+
type: string;
|
|
3141
|
+
value: string | number | boolean | string[];
|
|
3142
|
+
}[];
|
|
3143
|
+
} | undefined;
|
|
3009
3144
|
progress?: boolean | undefined;
|
|
3010
3145
|
} | undefined;
|
|
3011
3146
|
actions?: {
|
|
@@ -3024,12 +3159,80 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3024
3159
|
type: string;
|
|
3025
3160
|
required: boolean;
|
|
3026
3161
|
label: string;
|
|
3162
|
+
placeholder?: string | undefined;
|
|
3027
3163
|
maxLength?: number | undefined;
|
|
3028
3164
|
maxFiles?: number | undefined;
|
|
3029
3165
|
options?: (string | number)[] | undefined;
|
|
3030
3166
|
}[] | undefined;
|
|
3031
3167
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3032
3168
|
}[] | undefined;
|
|
3169
|
+
flowBranches?: {
|
|
3170
|
+
key: string;
|
|
3171
|
+
label: string;
|
|
3172
|
+
enteredAt: string;
|
|
3173
|
+
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3174
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3175
|
+
message?: string | undefined;
|
|
3176
|
+
deadlineAt?: string | undefined;
|
|
3177
|
+
attachments?: string[] | undefined;
|
|
3178
|
+
inputs?: {
|
|
3179
|
+
by: string;
|
|
3180
|
+
values: {
|
|
3181
|
+
key: string;
|
|
3182
|
+
label: string;
|
|
3183
|
+
type: string;
|
|
3184
|
+
value: string | number | boolean | string[];
|
|
3185
|
+
}[];
|
|
3186
|
+
} | undefined;
|
|
3187
|
+
progress?: boolean | undefined;
|
|
3188
|
+
}[] | undefined;
|
|
3189
|
+
step?: {
|
|
3190
|
+
type: string;
|
|
3191
|
+
label: string;
|
|
3192
|
+
actions: {
|
|
3193
|
+
key: string;
|
|
3194
|
+
label: string;
|
|
3195
|
+
mode: "INSTANT" | "REQUEST" | "VIEW";
|
|
3196
|
+
enabled: boolean;
|
|
3197
|
+
disabled?: {
|
|
3198
|
+
reason: string;
|
|
3199
|
+
message?: string | undefined;
|
|
3200
|
+
} | undefined;
|
|
3201
|
+
availableUntil?: string | undefined;
|
|
3202
|
+
subflow?: string | undefined;
|
|
3203
|
+
input?: {
|
|
3204
|
+
key: string;
|
|
3205
|
+
type: string;
|
|
3206
|
+
required: boolean;
|
|
3207
|
+
label: string;
|
|
3208
|
+
placeholder?: string | undefined;
|
|
3209
|
+
maxLength?: number | undefined;
|
|
3210
|
+
maxFiles?: number | undefined;
|
|
3211
|
+
options?: (string | number)[] | undefined;
|
|
3212
|
+
}[] | undefined;
|
|
3213
|
+
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3214
|
+
}[];
|
|
3215
|
+
message?: string | undefined;
|
|
3216
|
+
deadlineAt?: string | undefined;
|
|
3217
|
+
attachments?: string[] | undefined;
|
|
3218
|
+
inputs?: {
|
|
3219
|
+
by: string;
|
|
3220
|
+
values: {
|
|
3221
|
+
key: string;
|
|
3222
|
+
label: string;
|
|
3223
|
+
type: string;
|
|
3224
|
+
value: string | number | boolean | string[];
|
|
3225
|
+
}[];
|
|
3226
|
+
} | undefined;
|
|
3227
|
+
data?: {
|
|
3228
|
+
delivery?: {
|
|
3229
|
+
carrierName: string | null;
|
|
3230
|
+
trackingNumber: string | null;
|
|
3231
|
+
trackingUrl: string | null;
|
|
3232
|
+
dispatchedAt: string;
|
|
3233
|
+
} | undefined;
|
|
3234
|
+
} | undefined;
|
|
3235
|
+
} | undefined;
|
|
3033
3236
|
stay?: {
|
|
3034
3237
|
checkIn: string;
|
|
3035
3238
|
checkOut: string;
|
|
@@ -3066,6 +3269,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3066
3269
|
receiptUrl: string | null;
|
|
3067
3270
|
};
|
|
3068
3271
|
testPayment: boolean;
|
|
3272
|
+
progressStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3069
3273
|
}[];
|
|
3070
3274
|
}>;
|
|
3071
3275
|
get: (orderId: string) => Promise<{
|
|
@@ -3138,6 +3342,15 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3138
3342
|
message?: string | undefined;
|
|
3139
3343
|
deadlineAt?: string | undefined;
|
|
3140
3344
|
attachments?: string[] | undefined;
|
|
3345
|
+
inputs?: {
|
|
3346
|
+
by: string;
|
|
3347
|
+
values: {
|
|
3348
|
+
key: string;
|
|
3349
|
+
label: string;
|
|
3350
|
+
type: string;
|
|
3351
|
+
value: string | number | boolean | string[];
|
|
3352
|
+
}[];
|
|
3353
|
+
} | undefined;
|
|
3141
3354
|
progress?: boolean | undefined;
|
|
3142
3355
|
} | undefined;
|
|
3143
3356
|
actions?: {
|
|
@@ -3156,12 +3369,80 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3156
3369
|
type: string;
|
|
3157
3370
|
required: boolean;
|
|
3158
3371
|
label: string;
|
|
3372
|
+
placeholder?: string | undefined;
|
|
3159
3373
|
maxLength?: number | undefined;
|
|
3160
3374
|
maxFiles?: number | undefined;
|
|
3161
3375
|
options?: (string | number)[] | undefined;
|
|
3162
3376
|
}[] | undefined;
|
|
3163
3377
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3164
3378
|
}[] | undefined;
|
|
3379
|
+
flowBranches?: {
|
|
3380
|
+
key: string;
|
|
3381
|
+
label: string;
|
|
3382
|
+
enteredAt: string;
|
|
3383
|
+
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3384
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3385
|
+
message?: string | undefined;
|
|
3386
|
+
deadlineAt?: string | undefined;
|
|
3387
|
+
attachments?: string[] | undefined;
|
|
3388
|
+
inputs?: {
|
|
3389
|
+
by: string;
|
|
3390
|
+
values: {
|
|
3391
|
+
key: string;
|
|
3392
|
+
label: string;
|
|
3393
|
+
type: string;
|
|
3394
|
+
value: string | number | boolean | string[];
|
|
3395
|
+
}[];
|
|
3396
|
+
} | undefined;
|
|
3397
|
+
progress?: boolean | undefined;
|
|
3398
|
+
}[] | undefined;
|
|
3399
|
+
step?: {
|
|
3400
|
+
type: string;
|
|
3401
|
+
label: string;
|
|
3402
|
+
actions: {
|
|
3403
|
+
key: string;
|
|
3404
|
+
label: string;
|
|
3405
|
+
mode: "INSTANT" | "REQUEST" | "VIEW";
|
|
3406
|
+
enabled: boolean;
|
|
3407
|
+
disabled?: {
|
|
3408
|
+
reason: string;
|
|
3409
|
+
message?: string | undefined;
|
|
3410
|
+
} | undefined;
|
|
3411
|
+
availableUntil?: string | undefined;
|
|
3412
|
+
subflow?: string | undefined;
|
|
3413
|
+
input?: {
|
|
3414
|
+
key: string;
|
|
3415
|
+
type: string;
|
|
3416
|
+
required: boolean;
|
|
3417
|
+
label: string;
|
|
3418
|
+
placeholder?: string | undefined;
|
|
3419
|
+
maxLength?: number | undefined;
|
|
3420
|
+
maxFiles?: number | undefined;
|
|
3421
|
+
options?: (string | number)[] | undefined;
|
|
3422
|
+
}[] | undefined;
|
|
3423
|
+
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3424
|
+
}[];
|
|
3425
|
+
message?: string | undefined;
|
|
3426
|
+
deadlineAt?: string | undefined;
|
|
3427
|
+
attachments?: string[] | undefined;
|
|
3428
|
+
inputs?: {
|
|
3429
|
+
by: string;
|
|
3430
|
+
values: {
|
|
3431
|
+
key: string;
|
|
3432
|
+
label: string;
|
|
3433
|
+
type: string;
|
|
3434
|
+
value: string | number | boolean | string[];
|
|
3435
|
+
}[];
|
|
3436
|
+
} | undefined;
|
|
3437
|
+
data?: {
|
|
3438
|
+
delivery?: {
|
|
3439
|
+
carrierName: string | null;
|
|
3440
|
+
trackingNumber: string | null;
|
|
3441
|
+
trackingUrl: string | null;
|
|
3442
|
+
dispatchedAt: string;
|
|
3443
|
+
} | undefined;
|
|
3444
|
+
} | undefined;
|
|
3445
|
+
} | undefined;
|
|
3165
3446
|
stay?: {
|
|
3166
3447
|
checkIn: string;
|
|
3167
3448
|
checkOut: string;
|
|
@@ -3198,6 +3479,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3198
3479
|
receiptUrl: string | null;
|
|
3199
3480
|
};
|
|
3200
3481
|
testPayment: boolean;
|
|
3482
|
+
progressStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3201
3483
|
}>;
|
|
3202
3484
|
/**
|
|
3203
3485
|
* 비회원 주문 조회 — 주문 id(`ord_…`) 또는 숫자 주문번호(`orderNo`, 하이픈 허용, 이슈 #107) + 주문할 때 적은 연락처·주문 조회 비밀번호.
|
|
@@ -3281,6 +3563,15 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3281
3563
|
message?: string | undefined;
|
|
3282
3564
|
deadlineAt?: string | undefined;
|
|
3283
3565
|
attachments?: string[] | undefined;
|
|
3566
|
+
inputs?: {
|
|
3567
|
+
by: string;
|
|
3568
|
+
values: {
|
|
3569
|
+
key: string;
|
|
3570
|
+
label: string;
|
|
3571
|
+
type: string;
|
|
3572
|
+
value: string | number | boolean | string[];
|
|
3573
|
+
}[];
|
|
3574
|
+
} | undefined;
|
|
3284
3575
|
progress?: boolean | undefined;
|
|
3285
3576
|
} | undefined;
|
|
3286
3577
|
actions?: {
|
|
@@ -3299,12 +3590,80 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3299
3590
|
type: string;
|
|
3300
3591
|
required: boolean;
|
|
3301
3592
|
label: string;
|
|
3593
|
+
placeholder?: string | undefined;
|
|
3302
3594
|
maxLength?: number | undefined;
|
|
3303
3595
|
maxFiles?: number | undefined;
|
|
3304
3596
|
options?: (string | number)[] | undefined;
|
|
3305
3597
|
}[] | undefined;
|
|
3306
3598
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3307
3599
|
}[] | undefined;
|
|
3600
|
+
flowBranches?: {
|
|
3601
|
+
key: string;
|
|
3602
|
+
label: string;
|
|
3603
|
+
enteredAt: string;
|
|
3604
|
+
fields: Record<string, string | number | boolean | string[] | null>;
|
|
3605
|
+
coreStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3606
|
+
message?: string | undefined;
|
|
3607
|
+
deadlineAt?: string | undefined;
|
|
3608
|
+
attachments?: string[] | undefined;
|
|
3609
|
+
inputs?: {
|
|
3610
|
+
by: string;
|
|
3611
|
+
values: {
|
|
3612
|
+
key: string;
|
|
3613
|
+
label: string;
|
|
3614
|
+
type: string;
|
|
3615
|
+
value: string | number | boolean | string[];
|
|
3616
|
+
}[];
|
|
3617
|
+
} | undefined;
|
|
3618
|
+
progress?: boolean | undefined;
|
|
3619
|
+
}[] | undefined;
|
|
3620
|
+
step?: {
|
|
3621
|
+
type: string;
|
|
3622
|
+
label: string;
|
|
3623
|
+
actions: {
|
|
3624
|
+
key: string;
|
|
3625
|
+
label: string;
|
|
3626
|
+
mode: "INSTANT" | "REQUEST" | "VIEW";
|
|
3627
|
+
enabled: boolean;
|
|
3628
|
+
disabled?: {
|
|
3629
|
+
reason: string;
|
|
3630
|
+
message?: string | undefined;
|
|
3631
|
+
} | undefined;
|
|
3632
|
+
availableUntil?: string | undefined;
|
|
3633
|
+
subflow?: string | undefined;
|
|
3634
|
+
input?: {
|
|
3635
|
+
key: string;
|
|
3636
|
+
type: string;
|
|
3637
|
+
required: boolean;
|
|
3638
|
+
label: string;
|
|
3639
|
+
placeholder?: string | undefined;
|
|
3640
|
+
maxLength?: number | undefined;
|
|
3641
|
+
maxFiles?: number | undefined;
|
|
3642
|
+
options?: (string | number)[] | undefined;
|
|
3643
|
+
}[] | undefined;
|
|
3644
|
+
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3645
|
+
}[];
|
|
3646
|
+
message?: string | undefined;
|
|
3647
|
+
deadlineAt?: string | undefined;
|
|
3648
|
+
attachments?: string[] | undefined;
|
|
3649
|
+
inputs?: {
|
|
3650
|
+
by: string;
|
|
3651
|
+
values: {
|
|
3652
|
+
key: string;
|
|
3653
|
+
label: string;
|
|
3654
|
+
type: string;
|
|
3655
|
+
value: string | number | boolean | string[];
|
|
3656
|
+
}[];
|
|
3657
|
+
} | undefined;
|
|
3658
|
+
data?: {
|
|
3659
|
+
delivery?: {
|
|
3660
|
+
carrierName: string | null;
|
|
3661
|
+
trackingNumber: string | null;
|
|
3662
|
+
trackingUrl: string | null;
|
|
3663
|
+
dispatchedAt: string;
|
|
3664
|
+
} | undefined;
|
|
3665
|
+
} | undefined;
|
|
3666
|
+
} | undefined;
|
|
3308
3667
|
stay?: {
|
|
3309
3668
|
checkIn: string;
|
|
3310
3669
|
checkOut: string;
|
|
@@ -3341,6 +3700,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3341
3700
|
receiptUrl: string | null;
|
|
3342
3701
|
};
|
|
3343
3702
|
testPayment: boolean;
|
|
3703
|
+
progressStatus?: "CANCELED" | "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
3344
3704
|
}>;
|
|
3345
3705
|
getDelivery: (orderItemId: string) => Promise<{
|
|
3346
3706
|
carrierName: string;
|
|
@@ -3372,8 +3732,17 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3372
3732
|
message?: string | undefined;
|
|
3373
3733
|
deadlineAt?: string | undefined;
|
|
3374
3734
|
attachments?: string[] | undefined;
|
|
3375
|
-
|
|
3376
|
-
|
|
3735
|
+
inputs?: {
|
|
3736
|
+
by: string;
|
|
3737
|
+
values: {
|
|
3738
|
+
key: string;
|
|
3739
|
+
label: string;
|
|
3740
|
+
type: string;
|
|
3741
|
+
value: string | number | boolean | string[];
|
|
3742
|
+
}[];
|
|
3743
|
+
} | undefined;
|
|
3744
|
+
progress?: boolean | undefined;
|
|
3745
|
+
};
|
|
3377
3746
|
actions: {
|
|
3378
3747
|
key: string;
|
|
3379
3748
|
label: string;
|
|
@@ -3390,6 +3759,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3390
3759
|
type: string;
|
|
3391
3760
|
required: boolean;
|
|
3392
3761
|
label: string;
|
|
3762
|
+
placeholder?: string | undefined;
|
|
3393
3763
|
maxLength?: number | undefined;
|
|
3394
3764
|
maxFiles?: number | undefined;
|
|
3395
3765
|
options?: (string | number)[] | undefined;
|
|
@@ -3418,6 +3788,15 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3418
3788
|
message?: string | undefined;
|
|
3419
3789
|
deadlineAt?: string | undefined;
|
|
3420
3790
|
attachments?: string[] | undefined;
|
|
3791
|
+
inputs?: {
|
|
3792
|
+
by: string;
|
|
3793
|
+
values: {
|
|
3794
|
+
key: string;
|
|
3795
|
+
label: string;
|
|
3796
|
+
type: string;
|
|
3797
|
+
value: string | number | boolean | string[];
|
|
3798
|
+
}[];
|
|
3799
|
+
} | undefined;
|
|
3421
3800
|
progress?: boolean | undefined;
|
|
3422
3801
|
};
|
|
3423
3802
|
actions: {
|
|
@@ -3436,6 +3815,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3436
3815
|
type: string;
|
|
3437
3816
|
required: boolean;
|
|
3438
3817
|
label: string;
|
|
3818
|
+
placeholder?: string | undefined;
|
|
3439
3819
|
maxLength?: number | undefined;
|
|
3440
3820
|
maxFiles?: number | undefined;
|
|
3441
3821
|
options?: (string | number)[] | undefined;
|
|
@@ -3448,6 +3828,35 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3448
3828
|
claimNo: string | null;
|
|
3449
3829
|
} | undefined;
|
|
3450
3830
|
}>;
|
|
3831
|
+
/**
|
|
3832
|
+
* `POST /me/orders/{id}/actions/{key}` — 주문 전체 행동(#115, 예: 주문 전체 취소). 그 행동이 켜진 주문상품마다 실행하고 결과를
|
|
3833
|
+
* 주문상품별로 준다(부분 실행). 켜진 주문상품이 하나도 없으면 409 `ACTION_NOT_AVAILABLE`
|
|
3834
|
+
*/
|
|
3835
|
+
actOnOrder: (orderId: string, key: string, input?: Record<string, unknown>) => Promise<{
|
|
3836
|
+
orderId: string;
|
|
3837
|
+
key: string;
|
|
3838
|
+
results: {
|
|
3839
|
+
orderItemId: string;
|
|
3840
|
+
status: "COMPLETED" | "FAILED" | "SKIPPED";
|
|
3841
|
+
reason?: string | undefined;
|
|
3842
|
+
message?: string | undefined;
|
|
3843
|
+
}[];
|
|
3844
|
+
}>;
|
|
3845
|
+
/** 비회원 주문 전체 행동 — 비회원 주문 조회와 같은 확인·시도 한도 */
|
|
3846
|
+
guestActOnOrder: (orderId: string, key: string, body: {
|
|
3847
|
+
phone: string;
|
|
3848
|
+
orderPassword: string;
|
|
3849
|
+
input?: Record<string, unknown>;
|
|
3850
|
+
}) => Promise<{
|
|
3851
|
+
orderId: string;
|
|
3852
|
+
key: string;
|
|
3853
|
+
results: {
|
|
3854
|
+
orderItemId: string;
|
|
3855
|
+
status: "COMPLETED" | "FAILED" | "SKIPPED";
|
|
3856
|
+
reason?: string | undefined;
|
|
3857
|
+
message?: string | undefined;
|
|
3858
|
+
}[];
|
|
3859
|
+
}>;
|
|
3451
3860
|
};
|
|
3452
3861
|
myClaims: {
|
|
3453
3862
|
create: (orderItemId: string, body: CreateClaimRequest) => Promise<{
|
|
@@ -3934,6 +4343,7 @@ declare const flowInputFieldSchema: z.ZodObject<{
|
|
|
3934
4343
|
type: z.ZodString;
|
|
3935
4344
|
required: z.ZodBoolean;
|
|
3936
4345
|
label: z.ZodString;
|
|
4346
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
3937
4347
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
3938
4348
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
3939
4349
|
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -3959,6 +4369,7 @@ declare const flowActionSchema: z.ZodObject<{
|
|
|
3959
4369
|
type: z.ZodString;
|
|
3960
4370
|
required: z.ZodBoolean;
|
|
3961
4371
|
label: z.ZodString;
|
|
4372
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
3962
4373
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
3963
4374
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
3964
4375
|
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -3986,10 +4397,76 @@ declare const flowStateSchema: z.ZodObject<{
|
|
|
3986
4397
|
enteredAt: z.ZodString;
|
|
3987
4398
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
3988
4399
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4400
|
+
inputs: z.ZodOptional<z.ZodObject<{
|
|
4401
|
+
by: z.ZodString;
|
|
4402
|
+
values: z.ZodArray<z.ZodObject<{
|
|
4403
|
+
key: z.ZodString;
|
|
4404
|
+
label: z.ZodString;
|
|
4405
|
+
type: z.ZodString;
|
|
4406
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4407
|
+
}, z.core.$strip>>;
|
|
4408
|
+
}, z.core.$strip>>;
|
|
3989
4409
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
3990
4410
|
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
3991
4411
|
}, z.core.$strip>;
|
|
3992
4412
|
type FlowState = z.infer<typeof flowStateSchema>;
|
|
4413
|
+
/**
|
|
4414
|
+
* 주문상품의 지금 단계(#115) — 구매자 화면이 흐름 구조를 몰라도 그릴 수 있게 서버가 정리한 값이다. `type`으로 화면 모양을 고르고,
|
|
4415
|
+
* `actions`(입력 칸 포함)로 버튼·폼을 그린다. 판정은 서버다.
|
|
4416
|
+
*/
|
|
4417
|
+
declare const ORDER_STEP_TYPES: readonly ["BUYER_ACTION", "SELLER_PROCESSING", "IN_DELIVERY", "DELIVERED", "COMPLETED", "CANCELED", "CLAIM_IN_PROGRESS"];
|
|
4418
|
+
declare const orderStepSchema: z.ZodObject<{
|
|
4419
|
+
type: z.ZodString;
|
|
4420
|
+
label: z.ZodString;
|
|
4421
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4422
|
+
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4423
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4424
|
+
inputs: z.ZodOptional<z.ZodObject<{
|
|
4425
|
+
by: z.ZodString;
|
|
4426
|
+
values: z.ZodArray<z.ZodObject<{
|
|
4427
|
+
key: z.ZodString;
|
|
4428
|
+
label: z.ZodString;
|
|
4429
|
+
type: z.ZodString;
|
|
4430
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4431
|
+
}, z.core.$strip>>;
|
|
4432
|
+
}, z.core.$strip>>;
|
|
4433
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
4434
|
+
key: z.ZodString;
|
|
4435
|
+
label: z.ZodString;
|
|
4436
|
+
mode: z.ZodEnum<{
|
|
4437
|
+
INSTANT: "INSTANT";
|
|
4438
|
+
REQUEST: "REQUEST";
|
|
4439
|
+
VIEW: "VIEW";
|
|
4440
|
+
}>;
|
|
4441
|
+
enabled: z.ZodBoolean;
|
|
4442
|
+
disabled: z.ZodOptional<z.ZodObject<{
|
|
4443
|
+
reason: z.ZodString;
|
|
4444
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4445
|
+
}, z.core.$strip>>;
|
|
4446
|
+
availableUntil: z.ZodOptional<z.ZodString>;
|
|
4447
|
+
subflow: z.ZodOptional<z.ZodString>;
|
|
4448
|
+
input: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4449
|
+
key: z.ZodString;
|
|
4450
|
+
type: z.ZodString;
|
|
4451
|
+
required: z.ZodBoolean;
|
|
4452
|
+
label: z.ZodString;
|
|
4453
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
4454
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4455
|
+
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4456
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
4457
|
+
}, z.core.$strip>>>;
|
|
4458
|
+
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4459
|
+
}, z.core.$strip>>;
|
|
4460
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
4461
|
+
delivery: z.ZodOptional<z.ZodObject<{
|
|
4462
|
+
carrierName: z.ZodNullable<z.ZodString>;
|
|
4463
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
4464
|
+
trackingUrl: z.ZodNullable<z.ZodString>;
|
|
4465
|
+
dispatchedAt: z.ZodString;
|
|
4466
|
+
}, z.core.$strip>>;
|
|
4467
|
+
}, z.core.$strip>>;
|
|
4468
|
+
}, z.core.$strip>;
|
|
4469
|
+
type OrderStep = z.infer<typeof orderStepSchema>;
|
|
3993
4470
|
declare const flowActionRequestSchema: z.ZodObject<{
|
|
3994
4471
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3995
4472
|
}, z.core.$strip>;
|
|
@@ -4020,6 +4497,15 @@ declare const flowActionResultSchema: z.ZodObject<{
|
|
|
4020
4497
|
enteredAt: z.ZodString;
|
|
4021
4498
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4022
4499
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4500
|
+
inputs: z.ZodOptional<z.ZodObject<{
|
|
4501
|
+
by: z.ZodString;
|
|
4502
|
+
values: z.ZodArray<z.ZodObject<{
|
|
4503
|
+
key: z.ZodString;
|
|
4504
|
+
label: z.ZodString;
|
|
4505
|
+
type: z.ZodString;
|
|
4506
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4507
|
+
}, z.core.$strip>>;
|
|
4508
|
+
}, z.core.$strip>>;
|
|
4023
4509
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
4024
4510
|
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
4025
4511
|
}, z.core.$strip>;
|
|
@@ -4043,6 +4529,7 @@ declare const flowActionResultSchema: z.ZodObject<{
|
|
|
4043
4529
|
type: z.ZodString;
|
|
4044
4530
|
required: z.ZodBoolean;
|
|
4045
4531
|
label: z.ZodString;
|
|
4532
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
4046
4533
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4047
4534
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4048
4535
|
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -4056,6 +4543,25 @@ declare const flowActionResultSchema: z.ZodObject<{
|
|
|
4056
4543
|
}, z.core.$strip>>;
|
|
4057
4544
|
}, z.core.$strip>;
|
|
4058
4545
|
type FlowActionResult = z.infer<typeof flowActionResultSchema>;
|
|
4546
|
+
/**
|
|
4547
|
+
* 주문 전체 행동 결과(#115) — 같은 행동을 주문의 주문상품마다 실행한다. 한 주문상품의 실패가 다른 주문상품을 되돌리지 않는다(부분 실행).
|
|
4548
|
+
* 묶음 진행이면 한 번 실행이 묶음의 주문상품을 함께 움직인다(COMPLETED로 함께 나온다). 그 행동이 없는 주문상품은 SKIPPED다
|
|
4549
|
+
*/
|
|
4550
|
+
declare const orderFlowActionResultSchema: z.ZodObject<{
|
|
4551
|
+
orderId: z.ZodString;
|
|
4552
|
+
key: z.ZodString;
|
|
4553
|
+
results: z.ZodArray<z.ZodObject<{
|
|
4554
|
+
orderItemId: z.ZodString;
|
|
4555
|
+
status: z.ZodEnum<{
|
|
4556
|
+
COMPLETED: "COMPLETED";
|
|
4557
|
+
FAILED: "FAILED";
|
|
4558
|
+
SKIPPED: "SKIPPED";
|
|
4559
|
+
}>;
|
|
4560
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4561
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4562
|
+
}, z.core.$strip>>;
|
|
4563
|
+
}, z.core.$strip>;
|
|
4564
|
+
type OrderFlowActionResult = z.infer<typeof orderFlowActionResultSchema>;
|
|
4059
4565
|
//#endregion
|
|
4060
4566
|
//#region src/schemas/commerce-number.d.ts
|
|
4061
4567
|
/**
|
|
@@ -4146,6 +4652,15 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4146
4652
|
enteredAt: z.ZodString;
|
|
4147
4653
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4148
4654
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4655
|
+
inputs: z.ZodOptional<z.ZodObject<{
|
|
4656
|
+
by: z.ZodString;
|
|
4657
|
+
values: z.ZodArray<z.ZodObject<{
|
|
4658
|
+
key: z.ZodString;
|
|
4659
|
+
label: z.ZodString;
|
|
4660
|
+
type: z.ZodString;
|
|
4661
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4662
|
+
}, z.core.$strip>>;
|
|
4663
|
+
}, z.core.$strip>>;
|
|
4149
4664
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
4150
4665
|
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
4151
4666
|
}, z.core.$strip>>;
|
|
@@ -4169,12 +4684,93 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4169
4684
|
type: z.ZodString;
|
|
4170
4685
|
required: z.ZodBoolean;
|
|
4171
4686
|
label: z.ZodString;
|
|
4687
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
4172
4688
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4173
4689
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4174
4690
|
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
4175
4691
|
}, z.core.$strip>>>;
|
|
4176
4692
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4177
4693
|
}, z.core.$strip>>>;
|
|
4694
|
+
flowBranches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4695
|
+
key: z.ZodString;
|
|
4696
|
+
label: z.ZodString;
|
|
4697
|
+
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
4698
|
+
CANCELED: "CANCELED";
|
|
4699
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4700
|
+
PAID: "PAID";
|
|
4701
|
+
CONFIRMED: "CONFIRMED";
|
|
4702
|
+
DISPATCHED: "DISPATCHED";
|
|
4703
|
+
DELIVERING: "DELIVERING";
|
|
4704
|
+
DELIVERED: "DELIVERED";
|
|
4705
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4706
|
+
}>>;
|
|
4707
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4708
|
+
enteredAt: z.ZodString;
|
|
4709
|
+
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4710
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4711
|
+
inputs: z.ZodOptional<z.ZodObject<{
|
|
4712
|
+
by: z.ZodString;
|
|
4713
|
+
values: z.ZodArray<z.ZodObject<{
|
|
4714
|
+
key: z.ZodString;
|
|
4715
|
+
label: z.ZodString;
|
|
4716
|
+
type: z.ZodString;
|
|
4717
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4718
|
+
}, z.core.$strip>>;
|
|
4719
|
+
}, z.core.$strip>>;
|
|
4720
|
+
progress: z.ZodOptional<z.ZodBoolean>;
|
|
4721
|
+
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
4722
|
+
}, z.core.$strip>>>;
|
|
4723
|
+
step: z.ZodOptional<z.ZodObject<{
|
|
4724
|
+
type: z.ZodString;
|
|
4725
|
+
label: z.ZodString;
|
|
4726
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4727
|
+
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4728
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4729
|
+
inputs: z.ZodOptional<z.ZodObject<{
|
|
4730
|
+
by: z.ZodString;
|
|
4731
|
+
values: z.ZodArray<z.ZodObject<{
|
|
4732
|
+
key: z.ZodString;
|
|
4733
|
+
label: z.ZodString;
|
|
4734
|
+
type: z.ZodString;
|
|
4735
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4736
|
+
}, z.core.$strip>>;
|
|
4737
|
+
}, z.core.$strip>>;
|
|
4738
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
4739
|
+
key: z.ZodString;
|
|
4740
|
+
label: z.ZodString;
|
|
4741
|
+
mode: z.ZodEnum<{
|
|
4742
|
+
INSTANT: "INSTANT";
|
|
4743
|
+
REQUEST: "REQUEST";
|
|
4744
|
+
VIEW: "VIEW";
|
|
4745
|
+
}>;
|
|
4746
|
+
enabled: z.ZodBoolean;
|
|
4747
|
+
disabled: z.ZodOptional<z.ZodObject<{
|
|
4748
|
+
reason: z.ZodString;
|
|
4749
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4750
|
+
}, z.core.$strip>>;
|
|
4751
|
+
availableUntil: z.ZodOptional<z.ZodString>;
|
|
4752
|
+
subflow: z.ZodOptional<z.ZodString>;
|
|
4753
|
+
input: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4754
|
+
key: z.ZodString;
|
|
4755
|
+
type: z.ZodString;
|
|
4756
|
+
required: z.ZodBoolean;
|
|
4757
|
+
label: z.ZodString;
|
|
4758
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
4759
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4760
|
+
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4761
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
4762
|
+
}, z.core.$strip>>>;
|
|
4763
|
+
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4764
|
+
}, z.core.$strip>>;
|
|
4765
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
4766
|
+
delivery: z.ZodOptional<z.ZodObject<{
|
|
4767
|
+
carrierName: z.ZodNullable<z.ZodString>;
|
|
4768
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
4769
|
+
trackingUrl: z.ZodNullable<z.ZodString>;
|
|
4770
|
+
dispatchedAt: z.ZodString;
|
|
4771
|
+
}, z.core.$strip>>;
|
|
4772
|
+
}, z.core.$strip>>;
|
|
4773
|
+
}, z.core.$strip>>;
|
|
4178
4774
|
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4179
4775
|
kind: z.ZodString;
|
|
4180
4776
|
groupName: z.ZodString;
|
|
@@ -4219,6 +4815,16 @@ declare const orderShippingAddressSchema: z.ZodObject<{
|
|
|
4219
4815
|
type OrderShippingAddress = z.infer<typeof orderShippingAddressSchema>;
|
|
4220
4816
|
declare const myOrderSchema: z.ZodObject<{
|
|
4221
4817
|
orderId: z.ZodString;
|
|
4818
|
+
progressStatus: z.ZodOptional<z.ZodEnum<{
|
|
4819
|
+
CANCELED: "CANCELED";
|
|
4820
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4821
|
+
PAID: "PAID";
|
|
4822
|
+
CONFIRMED: "CONFIRMED";
|
|
4823
|
+
DISPATCHED: "DISPATCHED";
|
|
4824
|
+
DELIVERING: "DELIVERING";
|
|
4825
|
+
DELIVERED: "DELIVERED";
|
|
4826
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4827
|
+
}>>;
|
|
4222
4828
|
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
4223
4829
|
orderedAt: z.ZodString;
|
|
4224
4830
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -4293,6 +4899,15 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
4293
4899
|
enteredAt: z.ZodString;
|
|
4294
4900
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4295
4901
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4902
|
+
inputs: z.ZodOptional<z.ZodObject<{
|
|
4903
|
+
by: z.ZodString;
|
|
4904
|
+
values: z.ZodArray<z.ZodObject<{
|
|
4905
|
+
key: z.ZodString;
|
|
4906
|
+
label: z.ZodString;
|
|
4907
|
+
type: z.ZodString;
|
|
4908
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4909
|
+
}, z.core.$strip>>;
|
|
4910
|
+
}, z.core.$strip>>;
|
|
4296
4911
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
4297
4912
|
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
4298
4913
|
}, z.core.$strip>>;
|
|
@@ -4316,12 +4931,93 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
4316
4931
|
type: z.ZodString;
|
|
4317
4932
|
required: z.ZodBoolean;
|
|
4318
4933
|
label: z.ZodString;
|
|
4934
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
4319
4935
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4320
4936
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4321
4937
|
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
4322
4938
|
}, z.core.$strip>>>;
|
|
4323
4939
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4324
4940
|
}, z.core.$strip>>>;
|
|
4941
|
+
flowBranches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4942
|
+
key: z.ZodString;
|
|
4943
|
+
label: z.ZodString;
|
|
4944
|
+
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
4945
|
+
CANCELED: "CANCELED";
|
|
4946
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4947
|
+
PAID: "PAID";
|
|
4948
|
+
CONFIRMED: "CONFIRMED";
|
|
4949
|
+
DISPATCHED: "DISPATCHED";
|
|
4950
|
+
DELIVERING: "DELIVERING";
|
|
4951
|
+
DELIVERED: "DELIVERED";
|
|
4952
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4953
|
+
}>>;
|
|
4954
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4955
|
+
enteredAt: z.ZodString;
|
|
4956
|
+
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4957
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4958
|
+
inputs: z.ZodOptional<z.ZodObject<{
|
|
4959
|
+
by: z.ZodString;
|
|
4960
|
+
values: z.ZodArray<z.ZodObject<{
|
|
4961
|
+
key: z.ZodString;
|
|
4962
|
+
label: z.ZodString;
|
|
4963
|
+
type: z.ZodString;
|
|
4964
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4965
|
+
}, z.core.$strip>>;
|
|
4966
|
+
}, z.core.$strip>>;
|
|
4967
|
+
progress: z.ZodOptional<z.ZodBoolean>;
|
|
4968
|
+
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
4969
|
+
}, z.core.$strip>>>;
|
|
4970
|
+
step: z.ZodOptional<z.ZodObject<{
|
|
4971
|
+
type: z.ZodString;
|
|
4972
|
+
label: z.ZodString;
|
|
4973
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4974
|
+
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4975
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4976
|
+
inputs: z.ZodOptional<z.ZodObject<{
|
|
4977
|
+
by: z.ZodString;
|
|
4978
|
+
values: z.ZodArray<z.ZodObject<{
|
|
4979
|
+
key: z.ZodString;
|
|
4980
|
+
label: z.ZodString;
|
|
4981
|
+
type: z.ZodString;
|
|
4982
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4983
|
+
}, z.core.$strip>>;
|
|
4984
|
+
}, z.core.$strip>>;
|
|
4985
|
+
actions: z.ZodArray<z.ZodObject<{
|
|
4986
|
+
key: z.ZodString;
|
|
4987
|
+
label: z.ZodString;
|
|
4988
|
+
mode: z.ZodEnum<{
|
|
4989
|
+
INSTANT: "INSTANT";
|
|
4990
|
+
REQUEST: "REQUEST";
|
|
4991
|
+
VIEW: "VIEW";
|
|
4992
|
+
}>;
|
|
4993
|
+
enabled: z.ZodBoolean;
|
|
4994
|
+
disabled: z.ZodOptional<z.ZodObject<{
|
|
4995
|
+
reason: z.ZodString;
|
|
4996
|
+
message: z.ZodOptional<z.ZodString>;
|
|
4997
|
+
}, z.core.$strip>>;
|
|
4998
|
+
availableUntil: z.ZodOptional<z.ZodString>;
|
|
4999
|
+
subflow: z.ZodOptional<z.ZodString>;
|
|
5000
|
+
input: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5001
|
+
key: z.ZodString;
|
|
5002
|
+
type: z.ZodString;
|
|
5003
|
+
required: z.ZodBoolean;
|
|
5004
|
+
label: z.ZodString;
|
|
5005
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
5006
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
5007
|
+
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
5008
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
5009
|
+
}, z.core.$strip>>>;
|
|
5010
|
+
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
5011
|
+
}, z.core.$strip>>;
|
|
5012
|
+
data: z.ZodOptional<z.ZodObject<{
|
|
5013
|
+
delivery: z.ZodOptional<z.ZodObject<{
|
|
5014
|
+
carrierName: z.ZodNullable<z.ZodString>;
|
|
5015
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
5016
|
+
trackingUrl: z.ZodNullable<z.ZodString>;
|
|
5017
|
+
dispatchedAt: z.ZodString;
|
|
5018
|
+
}, z.core.$strip>>;
|
|
5019
|
+
}, z.core.$strip>>;
|
|
5020
|
+
}, z.core.$strip>>;
|
|
4325
5021
|
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4326
5022
|
kind: z.ZodString;
|
|
4327
5023
|
groupName: z.ZodString;
|
|
@@ -4468,123 +5164,6 @@ declare const memberPointEntryPageSchema: z.ZodObject<{
|
|
|
4468
5164
|
}, z.core.$strip>>;
|
|
4469
5165
|
}, z.core.$strip>;
|
|
4470
5166
|
//#endregion
|
|
4471
|
-
//#region src/schemas/product-options.d.ts
|
|
4472
|
-
/**
|
|
4473
|
-
* 추가 선택·직접 입력 (이슈 #59) — 상품 상세의 옵션 표시, 장바구니 담기·바로 구매 요청, 줄 스냅샷의 공통 모양.
|
|
4474
|
-
*
|
|
4475
|
-
* 추가 선택은 재고가 없는 옵션이다. 구매자가 조합(옵션이 없으면 상품)을 고른 뒤 옵션명마다 값 하나를 더 고르고, 값의 추가금이
|
|
4476
|
-
* 단가에 더해진다. 직접 입력은 구매자가 글자를 적는 항목(각인 문구 등)이다. 추가 선택 값이나 직접 입력값이 다르면 장바구니에서 다른 줄이다.
|
|
4477
|
-
*/
|
|
4478
|
-
declare const addonGroupViewSchema: z.ZodObject<{
|
|
4479
|
-
groupId: z.ZodString;
|
|
4480
|
-
name: z.ZodString;
|
|
4481
|
-
required: z.ZodBoolean;
|
|
4482
|
-
values: z.ZodArray<z.ZodObject<{
|
|
4483
|
-
valueId: z.ZodString;
|
|
4484
|
-
name: z.ZodString;
|
|
4485
|
-
additionalPrice: z.ZodNumber;
|
|
4486
|
-
}, z.core.$strip>>;
|
|
4487
|
-
}, z.core.$strip>;
|
|
4488
|
-
type AddonGroupView = z.infer<typeof addonGroupViewSchema>;
|
|
4489
|
-
declare const customInputViewSchema: z.ZodObject<{
|
|
4490
|
-
inputId: z.ZodString;
|
|
4491
|
-
label: z.ZodString;
|
|
4492
|
-
placeholder: z.ZodNullable<z.ZodString>;
|
|
4493
|
-
maxLength: z.ZodNumber;
|
|
4494
|
-
required: z.ZodBoolean;
|
|
4495
|
-
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4496
|
-
type: z.ZodOptional<z.ZodString>;
|
|
4497
|
-
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
4498
|
-
}, z.core.$strip>;
|
|
4499
|
-
type CustomInputView = z.infer<typeof customInputViewSchema>;
|
|
4500
|
-
/**
|
|
4501
|
-
* 직접 입력값을 타입대로 검사하고 저장할 모양으로 바꾼다(정규화 뒤 값). 서버 판정(400 `CUSTOM_INPUT_INVALID`)과 스토어프론트
|
|
4502
|
-
* 입력 검사가 이 함수 하나를 쓴다. 모르는 타입은 `text`로 본다. 맞지 않으면 null
|
|
4503
|
-
*/
|
|
4504
|
-
declare function parseCustomInputValue(type: string | null | undefined, options: readonly string[] | null | undefined, raw: string): string | null;
|
|
4505
|
-
/**
|
|
4506
|
-
* 직접 입력값 정규화 — NFC로 모으고, 제어 문자(C0·C1·줄바꿈·줄·문단 구분자)는 공백으로, 제로폭·양방향 제어 문자는 지운 뒤
|
|
4507
|
-
* 앞뒤 공백을 지운다. 서버가 저장하는 값이 이것이다. 빈 문자열이면 입력하지 않은 것으로 본다.
|
|
4508
|
-
* (양방향 제어 문자를 두면 셀러 주문 화면의 각인 문구가 뒤집혀 보이게 할 수 있다.)
|
|
4509
|
-
*/
|
|
4510
|
-
declare function normalizeCustomInputValue(value: string): string;
|
|
4511
|
-
/**
|
|
4512
|
-
* 직접 입력값의 글자 수 — 정규화한 값의 **코드 포인트 수**다(이모지 하나가 1자). 서버의 최대 글자 수 판정(`CUSTOM_INPUT_TOO_LONG`)과
|
|
4513
|
-
* 스토어프론트·상점 플랫폼의 글자 수 표시가 이 함수 하나를 쓴다. `String.length`(UTF-16)로 세면 이모지가 2자로 세어 판정이 갈린다.
|
|
4514
|
-
*/
|
|
4515
|
-
declare function customInputLength(value: string): number;
|
|
4516
|
-
/** 담기·바로 구매 요청의 직접 입력값 한 칸. 앞뒤 공백을 지우고, 빈 값은 입력하지 않은 것으로 본다 */
|
|
4517
|
-
declare const customInputEntrySchema: z.ZodObject<{
|
|
4518
|
-
inputId: z.ZodString;
|
|
4519
|
-
value: z.ZodString;
|
|
4520
|
-
}, z.core.$strip>;
|
|
4521
|
-
type CustomInputEntry = z.infer<typeof customInputEntrySchema>;
|
|
4522
|
-
/** 고른 추가 선택 한 칸 — 옵션명(`groupId`)과 그 옵션명의 값(`valueId`) */
|
|
4523
|
-
declare const addonSelectionSchema: z.ZodObject<{
|
|
4524
|
-
groupId: z.ZodString;
|
|
4525
|
-
valueId: z.ZodString;
|
|
4526
|
-
}, z.core.$strip>;
|
|
4527
|
-
type AddonSelection = z.infer<typeof addonSelectionSchema>;
|
|
4528
|
-
/** 요청의 추가 선택·직접 입력 필드 — 담기·장바구니 수정·바로 구매가 같은 이름을 쓴다 */
|
|
4529
|
-
declare const lineSelectionRequestShape: {
|
|
4530
|
-
addons: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4531
|
-
groupId: z.ZodString;
|
|
4532
|
-
valueId: z.ZodString;
|
|
4533
|
-
}, z.core.$strip>>>;
|
|
4534
|
-
customInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4535
|
-
inputId: z.ZodString;
|
|
4536
|
-
value: z.ZodString;
|
|
4537
|
-
}, z.core.$strip>>>;
|
|
4538
|
-
stay: z.ZodOptional<z.ZodObject<{
|
|
4539
|
-
checkIn: z.ZodString;
|
|
4540
|
-
checkOut: z.ZodString;
|
|
4541
|
-
}, z.core.$strip>>;
|
|
4542
|
-
};
|
|
4543
|
-
/** 줄의 옵션 선택 스냅샷 한 칸 — 조합 옵션은 옵션명마다 한 칸이고 추가금이 0이다(조합 추가금은 단가에 들어 있다) */
|
|
4544
|
-
declare const optionSelectionViewSchema: z.ZodObject<{
|
|
4545
|
-
kind: z.ZodString;
|
|
4546
|
-
groupName: z.ZodString;
|
|
4547
|
-
valueName: z.ZodString;
|
|
4548
|
-
additionalPrice: z.ZodNumber;
|
|
4549
|
-
}, z.core.$strip>;
|
|
4550
|
-
type OptionSelectionView = z.infer<typeof optionSelectionViewSchema>;
|
|
4551
|
-
declare const customInputValueViewSchema: z.ZodObject<{
|
|
4552
|
-
label: z.ZodString;
|
|
4553
|
-
value: z.ZodString;
|
|
4554
|
-
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4555
|
-
type: z.ZodOptional<z.ZodString>;
|
|
4556
|
-
}, z.core.$strip>;
|
|
4557
|
-
type CustomInputValueView = z.infer<typeof customInputValueViewSchema>;
|
|
4558
|
-
/** 응답 줄의 표시 필드 — 장바구니·주문서·주문상품이 같은 이름을 쓴다 */
|
|
4559
|
-
declare const lineSelectionResponseShape: {
|
|
4560
|
-
optionSelections: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4561
|
-
kind: z.ZodString;
|
|
4562
|
-
groupName: z.ZodString;
|
|
4563
|
-
valueName: z.ZodString;
|
|
4564
|
-
additionalPrice: z.ZodNumber;
|
|
4565
|
-
}, z.core.$strip>>>>;
|
|
4566
|
-
customInputs: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4567
|
-
label: z.ZodString;
|
|
4568
|
-
value: z.ZodString;
|
|
4569
|
-
key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4570
|
-
type: z.ZodOptional<z.ZodString>;
|
|
4571
|
-
}, z.core.$strip>>>>;
|
|
4572
|
-
stay: z.ZodOptional<z.ZodObject<{
|
|
4573
|
-
checkIn: z.ZodString;
|
|
4574
|
-
checkOut: z.ZodString;
|
|
4575
|
-
nights: z.ZodArray<z.ZodObject<{
|
|
4576
|
-
date: z.ZodString;
|
|
4577
|
-
price: z.ZodNumber;
|
|
4578
|
-
}, z.core.$strip>>;
|
|
4579
|
-
}, z.core.$strip>>;
|
|
4580
|
-
};
|
|
4581
|
-
/** 주문 입력 이미지 업로드 자리 요청(#115 E4) — 파일명은 확장자만 쓰인다 */
|
|
4582
|
-
declare const orderInputUploadRequestSchema: z.ZodObject<{
|
|
4583
|
-
filename: z.ZodString;
|
|
4584
|
-
size: z.ZodOptional<z.ZodNumber>;
|
|
4585
|
-
}, z.core.$strip>;
|
|
4586
|
-
type OrderInputUploadRequest = z.infer<typeof orderInputUploadRequestSchema>;
|
|
4587
|
-
//#endregion
|
|
4588
5167
|
//#region src/schemas/stay.d.ts
|
|
4589
5168
|
/**
|
|
4590
5169
|
* 숙박 기간·날짜별 달력(이슈 #118) — 날짜별 재고 상품(상품 상세 `inventoryMode: "DATED"`)은 담기·바로 구매에 기간을 함께 보내고,
|
|
@@ -4649,4 +5228,4 @@ declare const storefrontStoreSchema: z.ZodObject<{
|
|
|
4649
5228
|
}, z.core.$strip>;
|
|
4650
5229
|
type StorefrontStore = z.infer<typeof storefrontStoreSchema>;
|
|
4651
5230
|
//#endregion
|
|
4652
|
-
export {
|
|
5231
|
+
export { ANALYTICS_VISITOR_HEADER as $, storefrontCollectionSchema as $i, storefrontCouponListQuerySchema as $n, RetryPaymentRequest as $r, customInputEntrySchema as $t, FlowAction as A, CategoryNode as Ai, createCustomerInquiryRequestSchema as An, CashReceiptType as Ar, WritableReview as At, flowActionRequestSchema as B, StorefrontCollection as Bi, MyCoupon as Bn, KnownPaymentStatus as Br, updateReviewRequestSchema as Bt, myOrderSchema as C, addCartItemRequestSchema as Ca, pgProviderSchema as Ci, createInquiryRequestSchema as Cn, createClaimRequestSchema as Cr, PublicReview as Ct, commerceNumberField as D, analyticsIdsFromCookie as Da, retryPaymentRequestSchema as Di, CreateCustomerInquiryRequest as Dn, CASH_RECEIPT_METHODS as Dr, UpdateReviewRequest as Dt, trackingStageResponseSchema as E, updateCartItemRequestSchema as Ea, responsePaymentMethodSchema as Ei, publicInquirySchema as En, AvailablePaymentOption as Er, ReviewSummary as Et, FlowState as F, ProductDetail as Fi, CheckoutPricingRequest as Fn, DeliveryQuoteResult as Fr, productReviewSortSchema as Ft, flowStateSchema as G, collectionProductSortSchema as Gi, checkoutPricingSchema as Gn, PaymentMessage as Gr, AddonSelection as Gt, flowActionSchema as H, categoryNodeSchema as Hi, StorefrontCouponListParams as Hn, PAYMENT_START_STATUS_VALUES as Hr, uploadTicketSchema as Ht, GuestFlowActionRequest as I, ProductFacets as Ii, CouponApplication as In, EasyPayProvider as Ir, publicReviewSchema as It, orderStepSchema as J, productFacetsSchema as Ji, couponBenefitViewSchema as Jn, PaymentStart as Jr, CustomInputView as Jt, guestFlowActionRequestSchema as K, productCardSchema as Ki, couponApplicationListSchema as Kn, PaymentMethod as Kr, CustomInputEntry as Kt, ORDER_STEP_TYPES as L, ProductPage as Li, CouponResult as Ln, GuestInfo as Lr, reviewImageUploadRequestSchema as Lt, FlowActionResult as M, CollectionProductParams as Mi, customerInquirySchema as Mn, CheckoutSession as Mr, createReviewResultSchema as Mt, FlowFieldValue as N, CollectionProductSortParam as Ni, ApplicableCoupon as Nn, CreateCheckoutRequest as Nr, myReviewSchema as Nt, formatOrderNo as O, shippingAddressInputSchema as Oi, CustomerInquiry as On, CashReceiptIdentityType as Or, UpdateReviewResult as Ot, FlowInputField as P, ProductCard as Pi, CheckoutPricing as Pn, DeliveryQuoteRequest as Pr, productReviewQuerySchema as Pt, ANALYTICS_VISITOR_COOKIE as Q, storefrontCollectionListQuerySchema as Qi, pricingAmountsSchema as Qn, ResponsePaymentMethod as Qr, addonSelectionSchema as Qt, OrderFlowActionResult as R, ProductSearchParams as Ri, MAX_COUPONS_PER_CHECKOUT as Rn, KnownPaymentResult as Rr, reviewPageSchema as Rt, myOrderItemSchema as S, UpdateCartItemRequest as Sa, paymentStatusSchema as Si, PublicInquiry as Sn, claimTypeSchema as Sr, ProductReviewSort as St, purchaseDecisionResultSchema as T, cartSchema as Ta, residentNumberLike as Ti, productInquiryCategorySchema as Tn, myClaimSchema as Tr, ReviewPage as Tt, flowFieldValueSchema as U, collectionProductPageSchema as Ui, applicableCouponSchema as Un, PAYMENT_STATUS_VALUES as Ur, writableReviewSchema as Ut, flowActionResultSchema as V, StorefrontCollectionDetail as Vi, StorefrontCoupon as Vn, PAYMENT_RESULT_VALUES as Vr, updateReviewResultSchema as Vt, flowInputFieldSchema as W, collectionProductQuerySchema as Wi, checkoutPricingRequestSchema as Wn, PaymentFailureCategory as Wr, AddonGroupView as Wt, ANALYTICS_SESSION_COOKIE as X, productSortSchema as Xi, myCouponListQuerySchema as Xn, PgProvider as Xr, OrderInputUploadRequest as Xt, ANALYTICS_MAX_BATCH_BYTES as Y, productPageSchema as Yi, couponResultSchema as Yn, PaymentStatus as Yr, OptionSelectionView as Yt, ANALYTICS_SESSION_HEADER as Z, storefrontCollectionDetailSchema as Zi, myCouponSchema as Zn, RemoteArea as Zr, addonGroupViewSchema as Zt, MyOrder as _, productCardFulfillmentSchema as _a, paymentMethodSchema as _i, updateProfileRequestSchema as _n, CreateClaimRequest as _r, createStorefrontSession as _t, StayView as a, orderItemStatusSchema as aa, cashReceiptRequestSchema as ai, normalizeCustomInputValue as an, ConsentState as ar, analyticsBatchSchema as at, PurchaseDecisionResult as b, Cart as ba, paymentOptionSchema as bi, CreateInquiryResult as bn, claimReasonSchema as br, MyReview as bt, stayViewSchema as c, LineFulfillment as ca, checkoutSessionSchema as ci, parseCustomInputValue as cn, consentActionSchema as cr, analyticsIdSchema as ct, StorefrontPointPolicy as d, ProductCardFulfillment as da, deliveryQuoteSchema as di, MemberAddressRequest as dn, consentStateSchema as dr, StorefrontClientOptions as dt, ClaimStatus as ea, ShippingAddressInput as ei, customInputLength as en, storefrontCouponSchema as er, AnalyticsBatch as et, memberPointEntryPageSchema as f, ProductFulfillmentView as fa, easyPayProviderResponseSchema as fi, UpdateProfileRequest as fn, consentUpdateRequestSchema as fr, createStorefrontClient as ft, DeliveryTracking as g, pickupLocationViewSchema as ga, paymentMessageSchema as gi, memberSchema as gn, ClaimType as gr, StorefrontSessionOptions as gt, storefrontPointPolicySchema as h, myOrderItemFulfillmentSnapshotSchema as ha, paymentFailureCategorySchema as hi, memberAddressSchema as hn, ClaimReturnAddress as hr, StorefrontSession as ht, StayRequest as i, claimStatusSchema as ia, cashReceiptIdentityTypeOf as ii, lineSelectionResponseShape as in, ConsentSource as ir, AnalyticsServerEventName as it, FlowActionRequest as j, CollectionProductPage as ji, customerInquiryCategorySchema as jn, CheckoutDelivery as jr, createReviewRequestSchema as jt, parseOrderNo as k, startPaymentRequestSchema as ki, CustomerInquiryCategory as kn, CashReceiptRequest as kr, UploadTicket as kt, MemberPointEntry as l, MyOrderItemFulfillmentSnapshot as la, createCheckoutRequestSchema as li, Member as ln, consentKindSchema as lr, analyticsServerEventNameSchema as lt, memberPointsSchema as m, lineFulfillmentSchema as ma, guestInfoSchema as mi, memberAddressRequestSchema as mn, ClaimReason as mr, SessionStorage as mt, storefrontStoreSchema as n, PageInfo as na, availablePaymentOptionSchema as ni, customInputViewSchema as nn, ConsentAction as nr, AnalyticsClientEventName as nt, calendarDayViewSchema as o, pageInfoSchema as oa, cashReceiptTypeSchema as oi, optionSelectionViewSchema as on, ConsentUpdateRequest as or, analyticsClientEventNameSchema as ot, memberPointEntrySchema as p, UnknownFulfillmentView as pa, easyPayProviderSchema as pi, WishlistAddResult as pn, memberConsentsSchema as pr, STOREFRONT_SESSION_KEYS as pt, orderFlowActionResultSchema as q, productDetailSchema as qi, couponApplicationSchema as qn, PaymentOption as qr, CustomInputValueView as qt, CalendarDayView as r, PageParams as ra, cashReceiptAvailable as ri, lineSelectionRequestShape as rn, ConsentKind as rr, AnalyticsEventName as rt, stayRequestSchema as s, pageSchema as sa, checkoutDeliverySchema as si, orderInputUploadRequestSchema as sn, MemberConsents as sr, analyticsClientEventSchema as st, StorefrontStore as t, OrderItemStatus as ta, StartPaymentRequest as ti, customInputValueViewSchema as tn, storefrontCouponTargetSchema as tr, AnalyticsClientEvent as tt, MemberPoints as u, PickupLocationView as ua, deliveryQuoteRequestSchema as ui, MemberAddress as un, consentSourceSchema as ur, StorefrontClient as ut, MyOrderItem as v, productFulfillmentViewSchema as va, paymentOptionKey as vi, wishlistAddResultSchema as vn, CreateClaimResult as vr, CreateReviewRequest as vt, orderShippingAddressSchema as w, cartItemSchema as wa, remoteAreaSchema as wi, createInquiryResultSchema as wn, createClaimResultSchema as wr, ReviewImageUploadRequest as wt, deliveryTrackingSchema as x, CartItem as xa, paymentStartSchema as xi, ProductInquiryCategory as xn, claimReturnAddressSchema as xr, ProductReviewParams as xt, OrderShippingAddress as y, AddCartItemRequest as ya, paymentOptionListSchema as yi, CreateInquiryRequest as yn, MyClaim as yr, CreateReviewResult as yt, OrderStep as z, ProductSort as zi, MIN_PAYMENT_AMOUNT as zn, KnownPaymentStartStatus as zr, reviewSummarySchema as zt };
|