@sayren/store-sdk 0.30.6 → 0.30.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +83 -36
- package/dist/index.mjs +21 -5
- package/package.json +1 -1
- package/src/client.ts +9 -0
- package/src/schemas/commerce-flow.ts +16 -2
- package/src/schemas/order.ts +15 -0
package/dist/index.d.mts
CHANGED
|
@@ -166,8 +166,8 @@ export declare const auditLogPageSchema: z.ZodObject<{
|
|
|
166
166
|
export type AuditLogPage = z.infer<typeof auditLogPageSchema>;
|
|
167
167
|
export declare const agentPolicyDecisionSchema: z.ZodEnum<{
|
|
168
168
|
DENIED: "DENIED";
|
|
169
|
-
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
170
169
|
ALLOW: "ALLOW";
|
|
170
|
+
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
171
171
|
}>;
|
|
172
172
|
export type AgentPolicyDecision = z.infer<typeof agentPolicyDecisionSchema>;
|
|
173
173
|
export declare const writePreviewSchema: z.ZodObject<{
|
|
@@ -192,8 +192,8 @@ export declare const writeDryRunResultSchema: z.ZodObject<{
|
|
|
192
192
|
dryRun: z.ZodLiteral<true>;
|
|
193
193
|
decision: z.ZodEnum<{
|
|
194
194
|
DENIED: "DENIED";
|
|
195
|
-
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
196
195
|
ALLOW: "ALLOW";
|
|
196
|
+
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
197
197
|
}>;
|
|
198
198
|
reason: z.ZodNullable<z.ZodString>;
|
|
199
199
|
preview: z.ZodObject<{
|
|
@@ -972,11 +972,11 @@ export type ApiLogSummary = z.infer<typeof apiLogSummarySchema>;
|
|
|
972
972
|
//#endregion
|
|
973
973
|
//#region src/schemas/category.d.ts
|
|
974
974
|
export declare const categoryProductSortSchema: z.ZodEnum<{
|
|
975
|
+
NAME: "NAME";
|
|
975
976
|
RECENT: "RECENT";
|
|
976
977
|
POPULAR: "POPULAR";
|
|
977
978
|
PRICE_LOW: "PRICE_LOW";
|
|
978
979
|
PRICE_HIGH: "PRICE_HIGH";
|
|
979
|
-
NAME: "NAME";
|
|
980
980
|
}>;
|
|
981
981
|
export type CategoryProductSort = z.infer<typeof categoryProductSortSchema>;
|
|
982
982
|
export declare const categorySchema: z.ZodObject<{
|
|
@@ -992,11 +992,11 @@ export declare const categorySchema: z.ZodObject<{
|
|
|
992
992
|
showPc: z.ZodBoolean;
|
|
993
993
|
showMobile: z.ZodBoolean;
|
|
994
994
|
productSort: z.ZodEnum<{
|
|
995
|
+
NAME: "NAME";
|
|
995
996
|
RECENT: "RECENT";
|
|
996
997
|
POPULAR: "POPULAR";
|
|
997
998
|
PRICE_LOW: "PRICE_LOW";
|
|
998
999
|
PRICE_HIGH: "PRICE_HIGH";
|
|
999
|
-
NAME: "NAME";
|
|
1000
1000
|
}>;
|
|
1001
1001
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1002
1002
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1023,11 +1023,11 @@ export declare const categoryWithPathSchema: z.ZodObject<{
|
|
|
1023
1023
|
showPc: z.ZodBoolean;
|
|
1024
1024
|
showMobile: z.ZodBoolean;
|
|
1025
1025
|
productSort: z.ZodEnum<{
|
|
1026
|
+
NAME: "NAME";
|
|
1026
1027
|
RECENT: "RECENT";
|
|
1027
1028
|
POPULAR: "POPULAR";
|
|
1028
1029
|
PRICE_LOW: "PRICE_LOW";
|
|
1029
1030
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1030
|
-
NAME: "NAME";
|
|
1031
1031
|
}>;
|
|
1032
1032
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1033
1033
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1049,11 +1049,11 @@ export declare const categoryWithPathSchema: z.ZodObject<{
|
|
|
1049
1049
|
showPc: z.ZodBoolean;
|
|
1050
1050
|
showMobile: z.ZodBoolean;
|
|
1051
1051
|
productSort: z.ZodEnum<{
|
|
1052
|
+
NAME: "NAME";
|
|
1052
1053
|
RECENT: "RECENT";
|
|
1053
1054
|
POPULAR: "POPULAR";
|
|
1054
1055
|
PRICE_LOW: "PRICE_LOW";
|
|
1055
1056
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1056
|
-
NAME: "NAME";
|
|
1057
1057
|
}>;
|
|
1058
1058
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1059
1059
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1078,11 +1078,11 @@ export declare const categorySearchResultSchema: z.ZodObject<{
|
|
|
1078
1078
|
showPc: z.ZodBoolean;
|
|
1079
1079
|
showMobile: z.ZodBoolean;
|
|
1080
1080
|
productSort: z.ZodEnum<{
|
|
1081
|
+
NAME: "NAME";
|
|
1081
1082
|
RECENT: "RECENT";
|
|
1082
1083
|
POPULAR: "POPULAR";
|
|
1083
1084
|
PRICE_LOW: "PRICE_LOW";
|
|
1084
1085
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1085
|
-
NAME: "NAME";
|
|
1086
1086
|
}>;
|
|
1087
1087
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1088
1088
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1104,11 +1104,11 @@ export declare const categorySearchResultSchema: z.ZodObject<{
|
|
|
1104
1104
|
showPc: z.ZodBoolean;
|
|
1105
1105
|
showMobile: z.ZodBoolean;
|
|
1106
1106
|
productSort: z.ZodEnum<{
|
|
1107
|
+
NAME: "NAME";
|
|
1107
1108
|
RECENT: "RECENT";
|
|
1108
1109
|
POPULAR: "POPULAR";
|
|
1109
1110
|
PRICE_LOW: "PRICE_LOW";
|
|
1110
1111
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1111
|
-
NAME: "NAME";
|
|
1112
1112
|
}>;
|
|
1113
1113
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1114
1114
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1141,11 +1141,11 @@ export declare const categoryCreateRequestSchema: z.ZodObject<{
|
|
|
1141
1141
|
showPc: z.ZodOptional<z.ZodBoolean>;
|
|
1142
1142
|
showMobile: z.ZodOptional<z.ZodBoolean>;
|
|
1143
1143
|
productSort: z.ZodOptional<z.ZodEnum<{
|
|
1144
|
+
NAME: "NAME";
|
|
1144
1145
|
RECENT: "RECENT";
|
|
1145
1146
|
POPULAR: "POPULAR";
|
|
1146
1147
|
PRICE_LOW: "PRICE_LOW";
|
|
1147
1148
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1148
|
-
NAME: "NAME";
|
|
1149
1149
|
}>>;
|
|
1150
1150
|
metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1151
1151
|
metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1160,11 +1160,11 @@ export declare const categoryPatchRequestSchema: z.ZodObject<{
|
|
|
1160
1160
|
showPc: z.ZodOptional<z.ZodBoolean>;
|
|
1161
1161
|
showMobile: z.ZodOptional<z.ZodBoolean>;
|
|
1162
1162
|
productSort: z.ZodOptional<z.ZodEnum<{
|
|
1163
|
+
NAME: "NAME";
|
|
1163
1164
|
RECENT: "RECENT";
|
|
1164
1165
|
POPULAR: "POPULAR";
|
|
1165
1166
|
PRICE_LOW: "PRICE_LOW";
|
|
1166
1167
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1167
|
-
NAME: "NAME";
|
|
1168
1168
|
}>>;
|
|
1169
1169
|
metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1170
1170
|
metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2077,6 +2077,10 @@ export declare const flowActionSchema: z.ZodObject<{
|
|
|
2077
2077
|
}, z.core.$strip>>;
|
|
2078
2078
|
}, z.core.$strip>>>;
|
|
2079
2079
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
2080
|
+
attachments: z.ZodOptional<z.ZodEnum<{
|
|
2081
|
+
REQUIRED: "REQUIRED";
|
|
2082
|
+
OPTIONAL: "OPTIONAL";
|
|
2083
|
+
}>>;
|
|
2080
2084
|
}, z.core.$strip>;
|
|
2081
2085
|
export type FlowAction = z.infer<typeof flowActionSchema>;
|
|
2082
2086
|
/** 커스텀 필드 값 — 문자열(날짜·일시는 ISO 8601)·숫자·참거짓·null, 수량 단위 필드는 문자열 배열 */
|
|
@@ -2118,6 +2122,7 @@ export declare const flowStateSchema: z.ZodObject<{
|
|
|
2118
2122
|
label: z.ZodString;
|
|
2119
2123
|
type: z.ZodString;
|
|
2120
2124
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
2125
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2121
2126
|
}, z.core.$strip>>;
|
|
2122
2127
|
}, z.core.$strip>>;
|
|
2123
2128
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2166,6 +2171,7 @@ export declare const orderItemFlowSchema: z.ZodObject<{
|
|
|
2166
2171
|
label: z.ZodString;
|
|
2167
2172
|
type: z.ZodString;
|
|
2168
2173
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
2174
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2169
2175
|
}, z.core.$strip>>;
|
|
2170
2176
|
}, z.core.$strip>>;
|
|
2171
2177
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2204,6 +2210,10 @@ export declare const orderItemFlowSchema: z.ZodObject<{
|
|
|
2204
2210
|
}, z.core.$strip>>;
|
|
2205
2211
|
}, z.core.$strip>>>;
|
|
2206
2212
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
2213
|
+
attachments: z.ZodOptional<z.ZodEnum<{
|
|
2214
|
+
REQUIRED: "REQUIRED";
|
|
2215
|
+
OPTIONAL: "OPTIONAL";
|
|
2216
|
+
}>>;
|
|
2207
2217
|
}, z.core.$strip>>;
|
|
2208
2218
|
timers: z.ZodArray<z.ZodObject<{
|
|
2209
2219
|
key: z.ZodString;
|
|
@@ -2261,6 +2271,7 @@ export declare const orderItemFlowSchema: z.ZodObject<{
|
|
|
2261
2271
|
label: z.ZodString;
|
|
2262
2272
|
type: z.ZodString;
|
|
2263
2273
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
2274
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2264
2275
|
}, z.core.$strip>>;
|
|
2265
2276
|
}, z.core.$strip>>;
|
|
2266
2277
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2352,6 +2363,7 @@ export declare const flowActionResultSchema: z.ZodObject<{
|
|
|
2352
2363
|
label: z.ZodString;
|
|
2353
2364
|
type: z.ZodString;
|
|
2354
2365
|
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
2366
|
+
display: z.ZodOptional<z.ZodString>;
|
|
2355
2367
|
}, z.core.$strip>>;
|
|
2356
2368
|
}, z.core.$strip>>;
|
|
2357
2369
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -2390,6 +2402,10 @@ export declare const flowActionResultSchema: z.ZodObject<{
|
|
|
2390
2402
|
}, z.core.$strip>>;
|
|
2391
2403
|
}, z.core.$strip>>>;
|
|
2392
2404
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
2405
|
+
attachments: z.ZodOptional<z.ZodEnum<{
|
|
2406
|
+
REQUIRED: "REQUIRED";
|
|
2407
|
+
OPTIONAL: "OPTIONAL";
|
|
2408
|
+
}>>;
|
|
2393
2409
|
}, z.core.$strip>>;
|
|
2394
2410
|
affectedOrderItemIds: z.ZodArray<z.ZodString>;
|
|
2395
2411
|
}, z.core.$strip>;
|
|
@@ -5101,6 +5117,19 @@ export declare const cancelBySellerResultSchema: z.ZodObject<{
|
|
|
5101
5117
|
refundHeld: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
5102
5118
|
}, z.core.$strip>;
|
|
5103
5119
|
export type CancelBySellerResult = z.infer<typeof cancelBySellerResultSchema>;
|
|
5120
|
+
/**
|
|
5121
|
+
* `GET /v1/order-items/{orderItemId}/cancel-preview` 응답(#115) — 판매자 취소를 하면 돌려줄 금액. 실제 취소와 같은 계산을
|
|
5122
|
+
* 쓰기 없이 돌린 결과다. 취소할 수 없는 주문상품은 취소와 같은 409다
|
|
5123
|
+
*/
|
|
5124
|
+
export declare const sellerCancelPreviewSchema: z.ZodObject<{
|
|
5125
|
+
orderItemId: z.ZodString;
|
|
5126
|
+
quantity: z.ZodNumber;
|
|
5127
|
+
refundAmount: z.ZodNumber;
|
|
5128
|
+
pointRefundAmount: z.ZodNumber;
|
|
5129
|
+
deliveryFeeRefundAmount: z.ZodNumber;
|
|
5130
|
+
deliveryFeeChargeAmount: z.ZodNumber;
|
|
5131
|
+
}, z.core.$strip>;
|
|
5132
|
+
export type SellerCancelPreview = z.infer<typeof sellerCancelPreviewSchema>;
|
|
5104
5133
|
/** `PUT /v1/order-items/{orderItemId}/memo` 응답 — 빈 문자열로 저장하면 메모가 지워져 `null`이다 */
|
|
5105
5134
|
export declare const orderItemMemoResultSchema: z.ZodObject<{
|
|
5106
5135
|
orderItemId: z.ZodString;
|
|
@@ -6562,8 +6591,8 @@ export declare const VARIANT_COUNT_WARNING = 100;
|
|
|
6562
6591
|
* 추가금순은 추가 선택 값이면 값의 추가금, 조합 값이면 그 값이 든 조합 추가금의 최솟값으로 비교하고 같으면 등록순이다.
|
|
6563
6592
|
*/
|
|
6564
6593
|
export declare const optionSortSchema: z.ZodEnum<{
|
|
6565
|
-
NAME: "NAME";
|
|
6566
6594
|
REGISTERED: "REGISTERED";
|
|
6595
|
+
NAME: "NAME";
|
|
6567
6596
|
PRICE_ASC: "PRICE_ASC";
|
|
6568
6597
|
PRICE_DESC: "PRICE_DESC";
|
|
6569
6598
|
}>;
|
|
@@ -6770,8 +6799,8 @@ export declare const productSchema: z.ZodObject<{
|
|
|
6770
6799
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
6771
6800
|
}, z.core.$strip>>>>;
|
|
6772
6801
|
optionSort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
6773
|
-
NAME: "NAME";
|
|
6774
6802
|
REGISTERED: "REGISTERED";
|
|
6803
|
+
NAME: "NAME";
|
|
6775
6804
|
PRICE_ASC: "PRICE_ASC";
|
|
6776
6805
|
PRICE_DESC: "PRICE_DESC";
|
|
6777
6806
|
}>>>;
|
|
@@ -6930,8 +6959,8 @@ export declare const optionModelRequestSchema: z.ZodObject<{
|
|
|
6930
6959
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
6931
6960
|
}, z.core.$strip>>>;
|
|
6932
6961
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
6933
|
-
NAME: "NAME";
|
|
6934
6962
|
REGISTERED: "REGISTERED";
|
|
6963
|
+
NAME: "NAME";
|
|
6935
6964
|
PRICE_ASC: "PRICE_ASC";
|
|
6936
6965
|
PRICE_DESC: "PRICE_DESC";
|
|
6937
6966
|
}>>;
|
|
@@ -6991,8 +7020,8 @@ export declare const optionModelSchema: z.ZodObject<{
|
|
|
6991
7020
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
6992
7021
|
}, z.core.$strip>>>>;
|
|
6993
7022
|
optionSort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
6994
|
-
NAME: "NAME";
|
|
6995
7023
|
REGISTERED: "REGISTERED";
|
|
7024
|
+
NAME: "NAME";
|
|
6996
7025
|
PRICE_ASC: "PRICE_ASC";
|
|
6997
7026
|
PRICE_DESC: "PRICE_DESC";
|
|
6998
7027
|
}>>>;
|
|
@@ -7104,8 +7133,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
7104
7133
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
7105
7134
|
}, z.core.$strip>>>;
|
|
7106
7135
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
7107
|
-
NAME: "NAME";
|
|
7108
7136
|
REGISTERED: "REGISTERED";
|
|
7137
|
+
NAME: "NAME";
|
|
7109
7138
|
PRICE_ASC: "PRICE_ASC";
|
|
7110
7139
|
PRICE_DESC: "PRICE_DESC";
|
|
7111
7140
|
}>>;
|
|
@@ -7218,8 +7247,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
7218
7247
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
7219
7248
|
}, z.core.$strip>>>;
|
|
7220
7249
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
7221
|
-
NAME: "NAME";
|
|
7222
7250
|
REGISTERED: "REGISTERED";
|
|
7251
|
+
NAME: "NAME";
|
|
7223
7252
|
PRICE_ASC: "PRICE_ASC";
|
|
7224
7253
|
PRICE_DESC: "PRICE_DESC";
|
|
7225
7254
|
}>>;
|
|
@@ -7389,8 +7418,8 @@ export declare const savedOptionSetSchema: z.ZodObject<{
|
|
|
7389
7418
|
optionSetId: z.ZodString;
|
|
7390
7419
|
name: z.ZodString;
|
|
7391
7420
|
optionSort: z.ZodEnum<{
|
|
7392
|
-
NAME: "NAME";
|
|
7393
7421
|
REGISTERED: "REGISTERED";
|
|
7422
|
+
NAME: "NAME";
|
|
7394
7423
|
PRICE_ASC: "PRICE_ASC";
|
|
7395
7424
|
PRICE_DESC: "PRICE_DESC";
|
|
7396
7425
|
}>;
|
|
@@ -7457,8 +7486,8 @@ export declare const savedCustomInputRequestSchema: z.ZodObject<{
|
|
|
7457
7486
|
export declare const savedOptionSetRequestSchema: z.ZodObject<{
|
|
7458
7487
|
name: z.ZodString;
|
|
7459
7488
|
optionSort: z.ZodDefault<z.ZodEnum<{
|
|
7460
|
-
NAME: "NAME";
|
|
7461
7489
|
REGISTERED: "REGISTERED";
|
|
7490
|
+
NAME: "NAME";
|
|
7462
7491
|
PRICE_ASC: "PRICE_ASC";
|
|
7463
7492
|
PRICE_DESC: "PRICE_DESC";
|
|
7464
7493
|
}>>;
|
|
@@ -7513,8 +7542,8 @@ export declare const savedOptionSetFromProductResultSchema: z.ZodObject<{
|
|
|
7513
7542
|
optionSetId: z.ZodString;
|
|
7514
7543
|
name: z.ZodString;
|
|
7515
7544
|
optionSort: z.ZodEnum<{
|
|
7516
|
-
NAME: "NAME";
|
|
7517
7545
|
REGISTERED: "REGISTERED";
|
|
7546
|
+
NAME: "NAME";
|
|
7518
7547
|
PRICE_ASC: "PRICE_ASC";
|
|
7519
7548
|
PRICE_DESC: "PRICE_DESC";
|
|
7520
7549
|
}>;
|
|
@@ -9629,7 +9658,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9629
9658
|
type?: string | undefined;
|
|
9630
9659
|
options?: string[] | null | undefined;
|
|
9631
9660
|
}[];
|
|
9632
|
-
optionSort: "
|
|
9661
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
9633
9662
|
fulfillment: UnknownFulfillment | {
|
|
9634
9663
|
type: "SHIPPING";
|
|
9635
9664
|
shipping: {
|
|
@@ -9737,7 +9766,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9737
9766
|
type?: string | undefined;
|
|
9738
9767
|
options?: string[] | null | undefined;
|
|
9739
9768
|
}[];
|
|
9740
|
-
optionSort: "
|
|
9769
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
9741
9770
|
fulfillment: UnknownFulfillment | {
|
|
9742
9771
|
type: "SHIPPING";
|
|
9743
9772
|
shipping: {
|
|
@@ -9845,7 +9874,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9845
9874
|
type?: string | undefined;
|
|
9846
9875
|
options?: string[] | null | undefined;
|
|
9847
9876
|
}[];
|
|
9848
|
-
optionSort: "
|
|
9877
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
9849
9878
|
fulfillment: UnknownFulfillment | {
|
|
9850
9879
|
type: "SHIPPING";
|
|
9851
9880
|
shipping: {
|
|
@@ -9955,7 +9984,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9955
9984
|
type?: string | undefined;
|
|
9956
9985
|
options?: string[] | null | undefined;
|
|
9957
9986
|
}[];
|
|
9958
|
-
optionSort: "
|
|
9987
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
9959
9988
|
}>;
|
|
9960
9989
|
/**
|
|
9961
9990
|
* 옵션 모델 전체 교체 — variants는 valueNames로 축 값을 지목한다.
|
|
@@ -10013,7 +10042,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10013
10042
|
type?: string | undefined;
|
|
10014
10043
|
options?: string[] | null | undefined;
|
|
10015
10044
|
}[];
|
|
10016
|
-
optionSort: "
|
|
10045
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
10017
10046
|
}>;
|
|
10018
10047
|
/** 재고 변경 — stockQuantity(절대값) 또는 adjustment(증감) 하나만 전달한다 */
|
|
10019
10048
|
updateVariantStock: (productId: string, variantId: string, body: VariantStockRequest) => Promise<{
|
|
@@ -10062,7 +10091,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10062
10091
|
contents: {
|
|
10063
10092
|
optionSetId: string;
|
|
10064
10093
|
name: string;
|
|
10065
|
-
optionSort: "
|
|
10094
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
10066
10095
|
groups: {
|
|
10067
10096
|
name: string;
|
|
10068
10097
|
kind: string;
|
|
@@ -10089,7 +10118,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10089
10118
|
get: (optionSetId: string) => Promise<{
|
|
10090
10119
|
optionSetId: string;
|
|
10091
10120
|
name: string;
|
|
10092
|
-
optionSort: "
|
|
10121
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
10093
10122
|
groups: {
|
|
10094
10123
|
name: string;
|
|
10095
10124
|
kind: string;
|
|
@@ -10116,7 +10145,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10116
10145
|
create: (body: SavedOptionSetRequestInput) => Promise<{
|
|
10117
10146
|
optionSetId: string;
|
|
10118
10147
|
name: string;
|
|
10119
|
-
optionSort: "
|
|
10148
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
10120
10149
|
groups: {
|
|
10121
10150
|
name: string;
|
|
10122
10151
|
kind: string;
|
|
@@ -10143,7 +10172,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10143
10172
|
update: (optionSetId: string, body: SavedOptionSetRequestInput) => Promise<{
|
|
10144
10173
|
optionSetId: string;
|
|
10145
10174
|
name: string;
|
|
10146
|
-
optionSort: "
|
|
10175
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
10147
10176
|
groups: {
|
|
10148
10177
|
name: string;
|
|
10149
10178
|
kind: string;
|
|
@@ -10172,7 +10201,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10172
10201
|
optionSet: {
|
|
10173
10202
|
optionSetId: string;
|
|
10174
10203
|
name: string;
|
|
10175
|
-
optionSort: "
|
|
10204
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
10176
10205
|
groups: {
|
|
10177
10206
|
name: string;
|
|
10178
10207
|
kind: string;
|
|
@@ -10523,7 +10552,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10523
10552
|
visible: boolean;
|
|
10524
10553
|
showPc: boolean;
|
|
10525
10554
|
showMobile: boolean;
|
|
10526
|
-
productSort: "
|
|
10555
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
10527
10556
|
metaTitle: string | null;
|
|
10528
10557
|
metaDescription: string | null;
|
|
10529
10558
|
metaKeywords: string | null;
|
|
@@ -10544,7 +10573,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10544
10573
|
visible: boolean;
|
|
10545
10574
|
showPc: boolean;
|
|
10546
10575
|
showMobile: boolean;
|
|
10547
|
-
productSort: "
|
|
10576
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
10548
10577
|
metaTitle: string | null;
|
|
10549
10578
|
metaDescription: string | null;
|
|
10550
10579
|
metaKeywords: string | null;
|
|
@@ -10563,7 +10592,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10563
10592
|
visible: boolean;
|
|
10564
10593
|
showPc: boolean;
|
|
10565
10594
|
showMobile: boolean;
|
|
10566
|
-
productSort: "
|
|
10595
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
10567
10596
|
metaTitle: string | null;
|
|
10568
10597
|
metaDescription: string | null;
|
|
10569
10598
|
metaKeywords: string | null;
|
|
@@ -10585,7 +10614,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10585
10614
|
visible: boolean;
|
|
10586
10615
|
showPc: boolean;
|
|
10587
10616
|
showMobile: boolean;
|
|
10588
|
-
productSort: "
|
|
10617
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
10589
10618
|
metaTitle: string | null;
|
|
10590
10619
|
metaDescription: string | null;
|
|
10591
10620
|
metaKeywords: string | null;
|
|
@@ -10604,7 +10633,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10604
10633
|
visible: boolean;
|
|
10605
10634
|
showPc: boolean;
|
|
10606
10635
|
showMobile: boolean;
|
|
10607
|
-
productSort: "
|
|
10636
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
10608
10637
|
metaTitle: string | null;
|
|
10609
10638
|
metaDescription: string | null;
|
|
10610
10639
|
metaKeywords: string | null;
|
|
@@ -10635,7 +10664,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10635
10664
|
visible: boolean;
|
|
10636
10665
|
showPc: boolean;
|
|
10637
10666
|
showMobile: boolean;
|
|
10638
|
-
productSort: "
|
|
10667
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
10639
10668
|
metaTitle: string | null;
|
|
10640
10669
|
metaDescription: string | null;
|
|
10641
10670
|
metaKeywords: string | null;
|
|
@@ -10655,7 +10684,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10655
10684
|
visible: boolean;
|
|
10656
10685
|
showPc: boolean;
|
|
10657
10686
|
showMobile: boolean;
|
|
10658
|
-
productSort: "
|
|
10687
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
10659
10688
|
metaTitle: string | null;
|
|
10660
10689
|
metaDescription: string | null;
|
|
10661
10690
|
metaKeywords: string | null;
|
|
@@ -10971,6 +11000,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10971
11000
|
}>;
|
|
10972
11001
|
hold: (orderItemId: string, body: HoldOrderItemRequest) => Promise<void>;
|
|
10973
11002
|
releaseHold: (orderItemId: string) => Promise<void>;
|
|
11003
|
+
/** 판매자 취소 미리보기(#115) — 취소하면 돌려줄 현금·적립금. 생략한 수량은 남은 수량 전체다 */
|
|
11004
|
+
cancelPreview: (orderItemId: string, quantity?: number) => Promise<{
|
|
11005
|
+
orderItemId: string;
|
|
11006
|
+
quantity: number;
|
|
11007
|
+
refundAmount: number;
|
|
11008
|
+
pointRefundAmount: number;
|
|
11009
|
+
deliveryFeeRefundAmount: number;
|
|
11010
|
+
deliveryFeeChargeAmount: number;
|
|
11011
|
+
}>;
|
|
10974
11012
|
cancelBySeller: (orderItemId: string, body: CancelBySellerRequest, idempotencyKey?: string) => Promise<{
|
|
10975
11013
|
orderItemId: string;
|
|
10976
11014
|
refundAmount: number;
|
|
@@ -11255,6 +11293,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11255
11293
|
label: string;
|
|
11256
11294
|
type: string;
|
|
11257
11295
|
value: string | number | boolean | string[];
|
|
11296
|
+
display?: string | undefined;
|
|
11258
11297
|
}[];
|
|
11259
11298
|
} | undefined;
|
|
11260
11299
|
progress?: boolean | undefined;
|
|
@@ -11288,6 +11327,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11288
11327
|
} | undefined;
|
|
11289
11328
|
}[] | undefined;
|
|
11290
11329
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
11330
|
+
attachments?: "REQUIRED" | "OPTIONAL" | undefined;
|
|
11291
11331
|
}[];
|
|
11292
11332
|
timers: {
|
|
11293
11333
|
key: string;
|
|
@@ -11318,6 +11358,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11318
11358
|
label: string;
|
|
11319
11359
|
type: string;
|
|
11320
11360
|
value: string | number | boolean | string[];
|
|
11361
|
+
display?: string | undefined;
|
|
11321
11362
|
}[];
|
|
11322
11363
|
} | undefined;
|
|
11323
11364
|
progress?: boolean | undefined;
|
|
@@ -11347,6 +11388,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11347
11388
|
label: string;
|
|
11348
11389
|
type: string;
|
|
11349
11390
|
value: string | number | boolean | string[];
|
|
11391
|
+
display?: string | undefined;
|
|
11350
11392
|
}[];
|
|
11351
11393
|
} | undefined;
|
|
11352
11394
|
progress?: boolean | undefined;
|
|
@@ -11380,6 +11422,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11380
11422
|
} | undefined;
|
|
11381
11423
|
}[] | undefined;
|
|
11382
11424
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
11425
|
+
attachments?: "REQUIRED" | "OPTIONAL" | undefined;
|
|
11383
11426
|
}[];
|
|
11384
11427
|
affectedOrderItemIds: string[];
|
|
11385
11428
|
}>;
|
|
@@ -11407,6 +11450,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11407
11450
|
label: string;
|
|
11408
11451
|
type: string;
|
|
11409
11452
|
value: string | number | boolean | string[];
|
|
11453
|
+
display?: string | undefined;
|
|
11410
11454
|
}[];
|
|
11411
11455
|
} | undefined;
|
|
11412
11456
|
progress?: boolean | undefined;
|
|
@@ -11440,6 +11484,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11440
11484
|
} | undefined;
|
|
11441
11485
|
}[] | undefined;
|
|
11442
11486
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
11487
|
+
attachments?: "REQUIRED" | "OPTIONAL" | undefined;
|
|
11443
11488
|
}[];
|
|
11444
11489
|
affectedOrderItemIds: string[];
|
|
11445
11490
|
}>;
|
|
@@ -11467,6 +11512,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11467
11512
|
label: string;
|
|
11468
11513
|
type: string;
|
|
11469
11514
|
value: string | number | boolean | string[];
|
|
11515
|
+
display?: string | undefined;
|
|
11470
11516
|
}[];
|
|
11471
11517
|
} | undefined;
|
|
11472
11518
|
progress?: boolean | undefined;
|
|
@@ -11500,6 +11546,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11500
11546
|
} | undefined;
|
|
11501
11547
|
}[] | undefined;
|
|
11502
11548
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
11549
|
+
attachments?: "REQUIRED" | "OPTIONAL" | undefined;
|
|
11503
11550
|
}[];
|
|
11504
11551
|
affectedOrderItemIds: string[];
|
|
11505
11552
|
}>;
|
package/dist/index.mjs
CHANGED
|
@@ -2630,7 +2630,8 @@ const flowActionSchema = z.object({
|
|
|
2630
2630
|
availableUntil: z.string().optional().describe("이 시각까지만 할 수 있다(ISO 8601)"),
|
|
2631
2631
|
subflow: z.string().optional().describe("이 행동이 시작하는 하위 플로우(클레임)"),
|
|
2632
2632
|
input: z.array(flowInputFieldSchema).optional().describe("받는 입력 폼"),
|
|
2633
|
-
partialQuantity: z.union([z.boolean(), z.literal("UNIT")]).optional()
|
|
2633
|
+
partialQuantity: z.union([z.boolean(), z.literal("UNIT")]).optional(),
|
|
2634
|
+
attachments: z.enum(["REQUIRED", "OPTIONAL"]).optional().describe("첨부(#115) — 이 행동이 들어가는 단계가 자료를 받으면 있다(시안 확인 등). REQUIRED면 입력 `attachments`(첨부 업로드 주소) 없이 실행하면 409. 없으면 첨부를 받지 않는다")
|
|
2634
2635
|
});
|
|
2635
2636
|
/** 커스텀 필드 값 — 문자열(날짜·일시는 ISO 8601)·숫자·참거짓·null, 수량 단위 필드는 문자열 배열 */
|
|
2636
2637
|
const flowFieldValueSchema = z.union([
|
|
@@ -2661,7 +2662,8 @@ const flowStateSchema = z.object({
|
|
|
2661
2662
|
z.number(),
|
|
2662
2663
|
z.boolean(),
|
|
2663
2664
|
z.array(z.string())
|
|
2664
|
-
])
|
|
2665
|
+
]),
|
|
2666
|
+
display: z.string().optional().describe("화면에 보일 값 — 이름 붙인 선택지(`{ value, label }`)면 이름. 없으면 `value`를 그대로 보인다")
|
|
2665
2667
|
}))
|
|
2666
2668
|
}).optional().describe("이 상태로 오게 한 행동의 입력값(수정 내용 등, #115). 없으면 생략"),
|
|
2667
2669
|
progress: z.boolean().optional().describe("진행 단계 표시에 넣는 상태인가"),
|
|
@@ -2805,12 +2807,12 @@ const createCommerceFlowRequestSchema = z.object({
|
|
|
2805
2807
|
name: z.string().min(1).max(60).optional(),
|
|
2806
2808
|
presetKey: z.string().optional().describe("출발한 프리셋(출처로 남는다). 없으면 빈 플로우"),
|
|
2807
2809
|
graph: flowDocumentSchema.optional().describe("편집기에서 고친 그래프(#115). 없으면 프리셋 그래프 그대로, 프리셋도 없으면 빈 흐름(결제 완료 노드 하나)이다"),
|
|
2808
|
-
definition: flowDocumentSchema.optional().describe("흐름 설정 `requires`(progression·fulfillmentMethods). 없으면 프리셋의 설정"),
|
|
2810
|
+
definition: flowDocumentSchema.optional().describe("흐름 설정 `requires`(progression·groupClaim·fulfillmentMethods). 없으면 프리셋의 설정"),
|
|
2809
2811
|
variables: z.record(z.string(), z.unknown()).optional().describe("쓰지 않는다(무시). 값은 그래프의 노드 설정 안에 있다(#115)")
|
|
2810
2812
|
});
|
|
2811
2813
|
const saveFlowDraftRequestSchema = z.object({
|
|
2812
2814
|
graph: flowDocumentSchema,
|
|
2813
|
-
definition: flowDocumentSchema.optional().describe("흐름 설정 `requires`(progression·fulfillmentMethods)
|
|
2815
|
+
definition: flowDocumentSchema.optional().describe("흐름 설정 `requires`(progression·groupClaim·fulfillmentMethods)"),
|
|
2814
2816
|
variables: z.record(z.string(), z.unknown()).optional().describe("쓰지 않는다(무시). 값은 그래프의 노드 설정 안에 있다(#115)")
|
|
2815
2817
|
});
|
|
2816
2818
|
const flowIssueSchema = z.object({
|
|
@@ -4921,6 +4923,18 @@ const cancelBySellerResultSchema = z.object({
|
|
|
4921
4923
|
refundedAt: z.string().describe("환불을 요청한 시각. `refundHeld`면 취소 시각이고 환불은 아직 하지 않았다"),
|
|
4922
4924
|
refundHeld: z.boolean().optional().default(false).describe("결제 환불을 대기로 남겼다(`holdRefund`). 결제 상세에서 환불 처리한다")
|
|
4923
4925
|
});
|
|
4926
|
+
/**
|
|
4927
|
+
* `GET /v1/order-items/{orderItemId}/cancel-preview` 응답(#115) — 판매자 취소를 하면 돌려줄 금액. 실제 취소와 같은 계산을
|
|
4928
|
+
* 쓰기 없이 돌린 결과다. 취소할 수 없는 주문상품은 취소와 같은 409다
|
|
4929
|
+
*/
|
|
4930
|
+
const sellerCancelPreviewSchema = z.object({
|
|
4931
|
+
orderItemId: z.string(),
|
|
4932
|
+
quantity: z.number().int().describe("취소할 수량"),
|
|
4933
|
+
refundAmount: z.number().int().describe("현금 환불 예정 금액(배송비 환불·차감 포함)"),
|
|
4934
|
+
pointRefundAmount: z.number().int().describe("돌려줄 적립금 (원)"),
|
|
4935
|
+
deliveryFeeRefundAmount: z.number().int().describe("환불에 포함될 배송비"),
|
|
4936
|
+
deliveryFeeChargeAmount: z.number().int().describe("조건부 무료배송 기준 미달로 뺄 배송비")
|
|
4937
|
+
});
|
|
4924
4938
|
/** `PUT /v1/order-items/{orderItemId}/memo` 응답 — 빈 문자열로 저장하면 메모가 지워져 `null`이다 */
|
|
4925
4939
|
const orderItemMemoResultSchema = z.object({
|
|
4926
4940
|
orderItemId: z.string(),
|
|
@@ -7045,6 +7059,8 @@ function createStoreClient(options) {
|
|
|
7045
7059
|
}),
|
|
7046
7060
|
hold: (orderItemId, body) => storeHttp.requestVoid("POST", path`/order-items/${orderItemId}/hold`, { body: holdOrderItemRequestSchema.parse(body) }),
|
|
7047
7061
|
releaseHold: (orderItemId) => storeHttp.requestVoid("DELETE", path`/order-items/${orderItemId}/hold`),
|
|
7062
|
+
/** 판매자 취소 미리보기(#115) — 취소하면 돌려줄 현금·적립금. 생략한 수량은 남은 수량 전체다 */
|
|
7063
|
+
cancelPreview: (orderItemId, quantity) => storeHttp.request("GET", path`/order-items/${orderItemId}/cancel-preview`, sellerCancelPreviewSchema, { query: quantity ? { quantity } : {} }),
|
|
7048
7064
|
cancelBySeller: (orderItemId, body, idempotencyKey) => storeHttp.request("POST", path`/order-items/${orderItemId}/cancel`, cancelBySellerResultSchema, {
|
|
7049
7065
|
body: cancelBySellerRequestSchema.parse(body),
|
|
7050
7066
|
headers: idempotency(idempotencyKey)
|
|
@@ -8280,4 +8296,4 @@ function createStoreSession(options) {
|
|
|
8280
8296
|
};
|
|
8281
8297
|
}
|
|
8282
8298
|
//#endregion
|
|
8283
|
-
export { APPROVAL_ALREADY_DECIDED_CODE, APPROVAL_REQUIRED_CODE, ApiError, ApprovalPendingError, BUSINESS_INFO_MAX_LENGTH, BUSINESS_NUMBER_PATTERN, CASH_RECEIPT_STATUS_VALUES, COLLECTION_BEST_SELLING_DAYS, COLLECTION_PREVIEW_SIZE, COLLECTION_PRODUCT_SORTS, COLLECTION_SALES_SORT_DEFAULT_DAYS, COLLECTION_SLUG_PATTERN, COLLECTION_TYPES, COUPON_CODE_PATTERN, COUPON_CONDITIONS_DEFAULTS, COUPON_TARGET_ALL, COUPON_TARGET_LIST_MAX, CUSTOM_INPUT_FORBIDDEN_WORDS, CUSTOM_INPUT_TYPES, FULFILLMENT_METHODS, FULFILLMENT_METHODS_BY_TYPE, FULFILLMENT_METHOD_RULES, FULFILLMENT_RULES, KNOWN_WEBHOOK_EVENT_TYPES, MAX_ADDON_GROUPS, MAX_ANALYTICS_ALLOWED_ORIGINS, MAX_AUTO_TRANSITION_DAYS, MAX_CALENDAR_DAYS, MAX_COLLECTIONS, MAX_COLLECTION_BEST_SELLING_TOP, MAX_COLLECTION_CREATED_WITHIN_DAYS, MAX_COLLECTION_DESCRIPTION, MAX_COLLECTION_PRODUCTS, MAX_COLLECTION_PRODUCTS_PER_ADD, MAX_COLLECTION_RULES, MAX_COLLECTION_RULE_CATEGORIES, MAX_COLLECTION_TITLE, MAX_CUSTOM_INPUTS, MAX_CUSTOM_INPUT_LENGTH, MAX_OPTION_GROUPS, MAX_PICKUP_LOCATIONS, MAX_PRODUCT_IMAGES, MAX_SAVED_OPTION_SETS, MAX_SAVED_OPTION_SET_NAME, MAX_STAY_NIGHTS, MAX_VALUES_PER_GROUP, MAX_VARIANTS, MCP_TELEMETRY_MAX_RESULTS, MIN_PAYMENT_AMOUNT, NO_COUPON_SETTLEMENT, NO_SHIPPING_BUNDLE_KEY, PAYMENT_ROUTING_EXCLUSION_CODES, POINT_ADJUSTMENT_MAX, POINT_EARN_RATE_BP_MAX, POINT_ENTRY_TYPES, POINT_EXPIRY_DAYS_MAX, POINT_EXPIRY_DAYS_MIN, POINT_LOT_SOURCES, POINT_POLICY_DEFAULTS, POINT_REVIEW_REWARD_MAX, POINT_USE_UNITS, PORTONE_CHANNEL_NAME_MAX_LENGTH, PORTONE_MAX_CHANNELS, PORTONE_MIN_CHANNELS, REFUND_POLICY_DEFAULTS, REFUND_POLICY_DELIVERY_FEE_KEYS, REMOTE_AREA_ZIP_RANGES, RESERVED_STOREFRONT_SLUGS, RESERVED_STORE_CODES, SHIPPING_POLICY_DEFAULTS, STOREFRONT_BLOCKED_PATH_SEGMENTS, STOREFRONT_BUILD_STAGES, STOREFRONT_BUILD_TERMINAL_STATUSES, STOREFRONT_CHECK_TERMINAL_STATUSES, STOREFRONT_CUSTOM_DOMAIN_LIMIT_DEFAULT, STOREFRONT_DOMAIN_DNS_GRACE_DAYS, STOREFRONT_DOMAIN_DNS_WAIT_DAYS, STOREFRONT_DOMAIN_TXT_LABEL, STOREFRONT_EDIT_ACTIVITY_TIMEOUT_MINUTES, STOREFRONT_EDIT_CAPACITY, STOREFRONT_EDIT_IDLE_MINUTES, STOREFRONT_EDIT_PREVIEW_SUFFIX, STOREFRONT_EDIT_START_STAGES, STOREFRONT_FILE_BATCH_MAX, STOREFRONT_FILE_MAX_BYTES, STOREFRONT_PATH_SEGMENT_PATTERN, STOREFRONT_PLATFORM_DOMAINS, STOREFRONT_PUBLIC_SUFFIXES, STOREFRONT_SEARCH_REGEX_MAX_LENGTH, STOREFRONT_SHOWCASE_SLUG_PREFIX, STOREFRONT_SITE_CREATE_LIMIT, STOREFRONT_SLUG_CHANGE_LIMIT, STOREFRONT_SLUG_CHANGE_WINDOW_DAYS, STOREFRONT_SLUG_HOLD_DAYS, STOREFRONT_SLUG_PATTERN, STOREFRONT_SOURCE_BLOB_BATCH_MAX, STOREFRONT_SOURCE_PART_BYTES, STOREFRONT_WORKSPACE_MAX_BYTES, STOREFRONT_WORKSPACE_MAX_FILES, STORE_CODE_PATTERN, STORE_ROLE_SCOPES, STORE_SCOPE_RESOURCES, STORE_SESSION_KEYS, TOSS_WIDGET_CLIENT_KEY_PATTERN, TOSS_WIDGET_KEY_MESSAGE, TOSS_WIDGET_SECRET_KEY_PATTERN, UPLOAD_PURPOSE_LIMITS, VARIANT_COUNT_WARNING, VARIANT_STOCK_EXCLUSIVE_MESSAGE, WEBHOOK_DEFAULT_TOLERANCE_SEC, WEBHOOK_DELIVERY_ID_HEADER, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_EVENT_TYPE_HEADER, WEBHOOK_FAILURE_REASONS, WEBHOOK_HEADERS, WEBHOOK_PAYLOAD_EXCERPT_MAX_BYTES, WEBHOOK_RESOURCE_TYPES, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_USER_AGENT, addStorefrontDomainRequestSchema, addonGroupRequestSchema, addonGroupSchema, addonValueRequestSchema, addonValueSchema, addressChangeRequestListSchema, addressTypeSchema, agentPolicyDecisionSchema, allocateByWeight, analyticsChannelSchema, analyticsCheckoutOutcomeSchema, analyticsCheckoutSchema, analyticsDeviceRowSchema, analyticsDevicesSchema, analyticsFunnelStepSchema, analyticsOriginSchema, analyticsOverviewSchema, analyticsPagesQuerySchema, analyticsPagesSchema, analyticsProductRowSchema, analyticsProductSortSchema, analyticsProductsQuerySchema, analyticsProductsSchema, analyticsRangeQuerySchema, analyticsRealtimeSchema, analyticsSearchQuerySchema, analyticsSearchSchema, analyticsSourceGroupBySchema, analyticsSourceRowSchema, analyticsSourcesQuerySchema, analyticsSourcesSchema, analyticsTotalsSchema, apiLogErrorSchema, apiLogListQuerySchema, apiLogPageSchema, apiLogPrincipalSchema, apiLogPrincipalTypeSchema, apiLogSchema, apiLogStatusFilterSchema, apiLogSummarySchema, approvalDecisionRequestSchema, approvalListQuerySchema, approvalPageSchema, approvalRequestSchema, approvalStatusSchema, approveClaimResultSchema, auditActorSchema, auditActorTypeSchema, auditLogListQuerySchema, auditLogOutcomeSchema, auditLogPageSchema, auditLogSchema, auditLogSourceSchema, bestSellingRuleOf, buildAuthorizeUrl, buildQuery, bulkResultSchema, businessInfoPatchShape, businessInfoResponseShape, businessNumberSchema, calendarDateSchema, calendarDaySchema, calendarQuerySchema, cancelBySellerRequestSchema, cancelBySellerResultSchema, carrierSchema, cashReceiptSchema, categoryAttributeSchema, categoryCreateRequestSchema, categoryDeleteQuerySchema, categoryDeleteStrategySchema, categoryListQuerySchema, categoryPatchRequestSchema, categoryProductSortSchema, categorySchema, categorySearchResultSchema, categoryTreeNodeSchema, categoryWithPathSchema, changeStorefrontSlugRequestSchema, changeStorefrontTemplateRequestSchema, changeTypeSchema, claimDetailSchema, claimHoldResultSchema, claimListQuerySchema, claimReasonSchema, claimReturnAddressSchema, claimSchema, claimStatusSchema, claimTypeSchema, claimWebhookEventDataSchema, claimWebhookEventSchema, collectionCreateRequestSchema, collectionListQuerySchema, collectionPageSchema, collectionPatchRequestSchema, collectionPreviewRequestSchema, collectionPreviewSchema, collectionProductListQuerySchema, collectionProductSchema, collectionProductSortRequestSchema, collectionProductsAddRequestSchema, collectionProductsReplaceRequestSchema, collectionRuleCategoryIds, collectionRuleSchema, collectionRuleViewSchema, collectionRulesPredicate, collectionRulesSchema, collectionSchema, collectionStateCountsSchema, collectionStateOf, collectionStateSchema, commerceFlowCheckSchema, commerceFlowSchema, commerceFlowSummarySchema, commerceFlowVersionViewSchema, commerceNumberField, compareBySales, consentActionSchema, consentKindSchema, consentSourceSchema, couponBenefitSchema, couponConditionsInputSchema, couponConditionsSchema, couponDiscountOf, couponIssueListQuerySchema, couponIssueMethodSchema, couponIssueSchema, couponIssueStatusSchema, couponKindSchema, couponListQuerySchema, couponRedemptionListQuerySchema, couponRedemptionSchema, couponRejectReasonSchema, couponRuleSchema, couponSchema, couponStatsSchema, couponStatusSchema, couponTargetInputSchema, couponTargetSchema, createCommerceFlowRequestSchema, createCouponRequestSchema, createPkcePair, createStoreClient, createStoreSession, createStorefrontEditPreviewLinkRequestSchema, createStorefrontPreviewLinkRequestSchema, createStorefrontSiteRequestSchema, createStorefrontVersionRequestSchema, customInputLabelForbiddenWord, customInputRequestSchema, customInputSchema, customInputValueSchema, customerAddressSchema, customerConsentListQuerySchema, customerConsentSchema, customerConsentStateSchema, customerConsentsSchema, customerCouponSchema, customerDelegationRequestSchema, customerDelegationSchema, customerDetailSchema, customerInquiryCategorySchema, customerInquiryListQuerySchema, customerListQuerySchema, customerOrderSchema, customerPointsSchema, customerSortSchema, customerStatsSchema, customerSummarySchema, customerWithdrawalBlockedDetailsSchema, defaultFulfillmentMethodOf, deleteStorefrontFileRequestSchema, deliveryBundleKeyOf, deliveryFeeWaiverSchema, deliveryInfoSchema, deliveryMethodSchema, deliveryStatusSchema, deliveryTypeSchema, descendantCategoryIdsOf, disableStorefrontHostingRequestSchema, discountRequestSchema, discountSchema, dispatchRequestSchema, easyPayProviderResponseSchema, easyPayProviderSchema, eventTypeSchema, exchangeAuthorizationCode, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowNodeTypesSchema, flowNotificationWebhookEventDataSchema, flowNotificationWebhookEventSchema, flowPresetDetailSchema, flowPresetSummarySchema, flowRunSchema, flowRunStepSchema, flowSecretNameSchema, flowSecretSchema, flowStateChangedWebhookEventDataSchema, flowStateChangedWebhookEventSchema, flowStateSchema, formatOrderNo, fulfillBulkRequestSchema, fulfillRequestSchema, fulfillmentMethodOf, fulfillmentMethodSchema, fulfillmentMethodsOf, fulfillmentRuleOf, fulfillmentTypeOf, fulfillmentTypeResponseSchema, fulfillmentTypeSchema, holdOrderItemRequestSchema, inquiryListQuerySchema, inquirySchema, inquiryWebhookEventDataSchema, inquiryWebhookEventSchema, inventoryModeSchema, invitationDeliveryStatusSchema, invitationListQuerySchema, invitationSchema, inviteMemberRequestSchema, isCouponTargetLine, isEditableStorefrontPath, isReservedStoreCode, isReservedStorefrontSlug, isShowcaseStorefrontSlug, isStoreScope, isWebOrigin, issueCouponRequestSchema, issueCouponResultSchema, liveGateConditionCodeSchema, liveGateConditionSchema, liveGateErrorDetailsSchema, liveGateSchema, loginProviderSchema, loginProviderStatusSchema, loginProviderTestSchema, loginSettingsSchema, maskedSecretSchema, matchesCollectionRules, mcpRuleResultSchema, mcpToolEventSchema, migrateFlowVersionRequestSchema, migrateFlowVersionResultSchema, moveFlowStateRequestSchema, moveStorefrontFileRequestSchema, myAccountSchema, myStoreSchema, nightsOf, normalizeBusinessNumber, normalizeCouponCode, normalizeStorefrontHostname, normalizeStorefrontPath, oauthTokenResponseSchema, openFulfillmentUnion, optionGroupKindSchema, optionGroupRequestSchema, optionGroupSchema, optionModelRequestSchema, optionModelSchema, optionSelectionSchema, optionSortSchema, optionValueRequestSchema, optionValueSchema, orderCanceledWebhookEventDataSchema, orderCanceledWebhookEventSchema, orderDiscountSchema, orderFlowActionResultSchema, orderFulfilledWebhookEventDataSchema, orderFulfilledWebhookEventSchema, orderItemFlowSchema, orderItemFulfillmentSchema, orderItemFulfillmentSnapshotResponseSchema, orderItemFulfillmentSnapshotSchema, orderItemListQuerySchema, orderItemMemoResultSchema, orderItemPageSchema, orderItemSchema, orderItemStatusSchema, orderListQuerySchema, orderSchema, orderSummaryPageSchema, orderSummarySchema, orderWebhookEventDataSchema, orderWebhookEventSchema, pageInfoSchema, pageQueryShape, pageSchema, parseOrderNo, parseWebhookEvent, paymentAttemptRecordSchema, paymentAttemptStatusSchema, paymentCredentialSetSchema, paymentFailureWarningSchema, paymentListQuerySchema, paymentProviderSchema, paymentProviderVerificationSchema, paymentRecordDetailSchema, paymentRecordPageSchema, paymentRecordSchema, paymentRecordStatusSchema, paymentRefundRecordSchema, paymentSettingsSchema, pgEnvironmentSchema, pgPaymentMethodSchema, pgProviderSchema, pgVerificationResultSchema, pickupLocationRequestSchema, pickupLocationSchema, pickupLocationSnapshotSchema, planCodeSchema, planEntitlementsSchema, planErrorDetailsSchema, pointAdjustmentRequestSchema, pointAdjustmentResultSchema, pointEarnOf, pointEarnRateBpSchema, pointEarningEnabled, pointEntrySchema, pointExpiresAtOf, pointHistoryQuerySchema, pointLotSchema, pointPolicyNoticeSchema, pointPolicySchema, pointRestoreExpiresAtOf, pointUseOf, pointUsePolicySchema, policyDocumentUrlSchema, policyVersionSchema, portOneChannelSchema, portOneCredentialsInputSchema, productCreateRequestSchema, productFulfillmentCreateSchema, productFulfillmentResponseSchema, productFulfillmentSchema, productFulfillmentUpdateSchema, productImageRejection, productImageUrlSchema, productListQuerySchema, productOutOfStockWebhookEventDataSchema, productOutOfStockWebhookEventSchema, productPatchRequestSchema, productRefundPolicyOverride, productRefundPolicyPatchSchema, productReplaceRequestSchema, productSchema, productSortSchema, productStatusSchema, productSummarySchema, productVariantRequestSchema, productVariantSchema, proratedPaidRefundBase, proratedPointRefund, proratedRefundBase, publicPlanSchema, publicPlansSchema, publishStorefrontVersionRequestSchema, purchaseDecisionExtendResultSchema, purchaseDecisionRequestResultSchema, purchaseEarnPolicySchema, purchaseEarnRateOf, quoteDelivery, quotePricing, rankBestSelling, refreshUserToken, refundPolicyPatchSchema, refundPolicySchema, rejectClaimRequestSchema, remoteAreaLabelOf, remoteAreaOf, remoteAreaSchema, remoteSurchargeOf, replaceStorefrontSourceRequestSchema, replayFlowRequestSchema, replayFlowResultSchema, requiresCollection, requiresShipping, resolvePointPolicy, resolveRefundPolicy, resolveShippingPolicy, resolvedFlowSchema, responsePlanCodeSchema, responsePointEntryTypeSchema, reviewListQuerySchema, reviewReportResultSchema, reviewRewardPointOf, reviewRewardPolicySchema, reviewSchema, reviewSortSchema, reviewWebhookEventDataSchema, reviewWebhookEventSchema, rollbackStorefrontRequestSchema, runStorefrontCheckRequestSchema, salesReportGroupBySchema, salesReportQuerySchema, salesReportRowSchema, salesReportSchema, salesTotalsSchema, saveFlowDraftRequestSchema, saveFlowSecretRequestSchema, saveLoginProviderRequestSchema, savedCustomInputRequestSchema, savedCustomInputSchema, savedOptionGroupRequestSchema, savedOptionGroupSchema, savedOptionSetCompositionSchema, savedOptionSetFromProductRequestSchema, savedOptionSetFromProductResultSchema, savedOptionSetListQuerySchema, savedOptionSetRequestSchema, savedOptionSetSchema, savedOptionSetSortSchema, savedOptionValueRequestSchema, savedOptionValueSchema, scopeAccessSchema, searchStorefrontFilesRequestSchema, sellerAddressListQuerySchema, sellerAddressRequestSchema, sellerAddressSchema, sellerCustomerInquirySchema, setCalendarRequestSchema, setStorefrontVisibilityRequestSchema, settleCouponShortfall, settlementDetailQuerySchema, settlementDetailSchema, settlementListQuerySchema, settlementStatusSchema, settlementSummarySchema, settlementWithDetailsSchema, shippingAddressSchema, shippingPolicyPatchSchema, shippingPolicySchema, simulateFlowRequestSchema, simulateFlowResultSchema, simulationStepSchema, splitRefund, stayRangeSchema, staySnapshotSchema, storeCodeSchema, storeMemberRoleUpdatedSchema, storeMemberSchema, storePointPolicySchema, storeRoleSchema, storeSchema, storeScopeResourceSchema, storeSubscriptionSchema, storefrontBuildDependenciesSchema, storefrontBuildListQuerySchema, storefrontBuildSchema, storefrontBuildStatusSchema, storefrontCheckSchema, storefrontCheckStatusSchema, storefrontCustomDomainStatusSchema, storefrontCustomHostnameProblem, storefrontDependencyFindingSchema, storefrontDeploymentLogSchema, storefrontDeploymentSchema, storefrontDeploymentStepSchema, storefrontDnsRecordSchema, storefrontDomainSchema, storefrontDomainTxtNameOf, storefrontEditPreviewLabelOf, storefrontEditPreviewSchema, storefrontEditSessionSchema, storefrontEditSessionStatusSchema, storefrontEditingSchema, storefrontFileConflictDetailsSchema, storefrontFileContentQuerySchema, storefrontFileContentSchema, storefrontFileDeleteResultSchema, storefrontFileEncodingSchema, storefrontFileEntrySchema, storefrontFileHashSchema, storefrontFileListQuerySchema, storefrontFileListSchema, storefrontFileMoveResultSchema, storefrontFilePathSchema, storefrontFileSearchResultSchema, storefrontFileWriteResultSchema, storefrontHostingSchema, storefrontPreviewLinkSchema, storefrontProvisioningSchema, storefrontRuleResultSchema, storefrontRuleSeveritySchema, storefrontSiteDomainSchema, storefrontSiteDomainsSchema, storefrontSiteSchema, storefrontSiteStatusSchema, storefrontSlugAvailabilityQuerySchema, storefrontSlugAvailabilitySchema, storefrontSlugSchema, storefrontSourceArchivePartSchema, storefrontSourceArchiveQuerySchema, storefrontSourceBlobsResultSchema, storefrontSourceModeSchema, storefrontSourceRefSchema, storefrontSourceReplacedSchema, storefrontSourceSchema, storefrontSuspensionSchema, storefrontTemplateSchema, storefrontVerifyReportSchema, storefrontVersionCreatedSchema, storefrontVersionSchema, storefrontVersionStatusSchema, storefrontVisibilitySchema, subscriptionLimitsSchema, subscriptionStatusSchema, subscriptionUsageSchema, tossPaymentsCredentialsInputSchema, trackingStageResponseSchema, trackingUpdateResultSchema, unknownWebhookEventSchema, updateCouponRequestSchema, updateLoginProviderRequestSchema, updateLoginSettingsRequestSchema, updateMemberRoleRequestSchema, updatePaymentProviderRequestSchema, updatePaymentSettingsRequestSchema, updatePointPolicyRequestSchema, updateStoreRequestSchema, uploadExtensionOf, uploadPurposeSchema, uploadRejection, uploadRequestSchema, uploadStorefrontSourceBlobsRequestSchema, uploadTicketSchema, upsertPortOneProviderRequestSchema, upsertTossPaymentsProviderRequestSchema, variantStockRequestSchema, variantStockSchema, verifyPaymentProviderRequestSchema, webhookCreatedSchema, webhookDeliveryDetailSchema, webhookDeliveryErrorCodeSchema, webhookDeliveryListQuerySchema, webhookDeliveryResourceSchema, webhookDeliverySchema, webhookDeliveryStatusSchema, webhookEventSchema, webhookFailureReasonSchema, webhookRedeliverFailedResultSchema, webhookRequestHeaderSchema, webhookRequestSchema, webhookResourceTypeSchema, webhookSchema, webhookSecretRotatedSchema, webhookStatusSchema, webhookTestRequestSchema, webhookTestResultSchema, withdrawCustomerRequestSchema, writeDryRunResultSchema, writePreviewSchema, writeStorefrontFilesRequestSchema };
|
|
8299
|
+
export { APPROVAL_ALREADY_DECIDED_CODE, APPROVAL_REQUIRED_CODE, ApiError, ApprovalPendingError, BUSINESS_INFO_MAX_LENGTH, BUSINESS_NUMBER_PATTERN, CASH_RECEIPT_STATUS_VALUES, COLLECTION_BEST_SELLING_DAYS, COLLECTION_PREVIEW_SIZE, COLLECTION_PRODUCT_SORTS, COLLECTION_SALES_SORT_DEFAULT_DAYS, COLLECTION_SLUG_PATTERN, COLLECTION_TYPES, COUPON_CODE_PATTERN, COUPON_CONDITIONS_DEFAULTS, COUPON_TARGET_ALL, COUPON_TARGET_LIST_MAX, CUSTOM_INPUT_FORBIDDEN_WORDS, CUSTOM_INPUT_TYPES, FULFILLMENT_METHODS, FULFILLMENT_METHODS_BY_TYPE, FULFILLMENT_METHOD_RULES, FULFILLMENT_RULES, KNOWN_WEBHOOK_EVENT_TYPES, MAX_ADDON_GROUPS, MAX_ANALYTICS_ALLOWED_ORIGINS, MAX_AUTO_TRANSITION_DAYS, MAX_CALENDAR_DAYS, MAX_COLLECTIONS, MAX_COLLECTION_BEST_SELLING_TOP, MAX_COLLECTION_CREATED_WITHIN_DAYS, MAX_COLLECTION_DESCRIPTION, MAX_COLLECTION_PRODUCTS, MAX_COLLECTION_PRODUCTS_PER_ADD, MAX_COLLECTION_RULES, MAX_COLLECTION_RULE_CATEGORIES, MAX_COLLECTION_TITLE, MAX_CUSTOM_INPUTS, MAX_CUSTOM_INPUT_LENGTH, MAX_OPTION_GROUPS, MAX_PICKUP_LOCATIONS, MAX_PRODUCT_IMAGES, MAX_SAVED_OPTION_SETS, MAX_SAVED_OPTION_SET_NAME, MAX_STAY_NIGHTS, MAX_VALUES_PER_GROUP, MAX_VARIANTS, MCP_TELEMETRY_MAX_RESULTS, MIN_PAYMENT_AMOUNT, NO_COUPON_SETTLEMENT, NO_SHIPPING_BUNDLE_KEY, PAYMENT_ROUTING_EXCLUSION_CODES, POINT_ADJUSTMENT_MAX, POINT_EARN_RATE_BP_MAX, POINT_ENTRY_TYPES, POINT_EXPIRY_DAYS_MAX, POINT_EXPIRY_DAYS_MIN, POINT_LOT_SOURCES, POINT_POLICY_DEFAULTS, POINT_REVIEW_REWARD_MAX, POINT_USE_UNITS, PORTONE_CHANNEL_NAME_MAX_LENGTH, PORTONE_MAX_CHANNELS, PORTONE_MIN_CHANNELS, REFUND_POLICY_DEFAULTS, REFUND_POLICY_DELIVERY_FEE_KEYS, REMOTE_AREA_ZIP_RANGES, RESERVED_STOREFRONT_SLUGS, RESERVED_STORE_CODES, SHIPPING_POLICY_DEFAULTS, STOREFRONT_BLOCKED_PATH_SEGMENTS, STOREFRONT_BUILD_STAGES, STOREFRONT_BUILD_TERMINAL_STATUSES, STOREFRONT_CHECK_TERMINAL_STATUSES, STOREFRONT_CUSTOM_DOMAIN_LIMIT_DEFAULT, STOREFRONT_DOMAIN_DNS_GRACE_DAYS, STOREFRONT_DOMAIN_DNS_WAIT_DAYS, STOREFRONT_DOMAIN_TXT_LABEL, STOREFRONT_EDIT_ACTIVITY_TIMEOUT_MINUTES, STOREFRONT_EDIT_CAPACITY, STOREFRONT_EDIT_IDLE_MINUTES, STOREFRONT_EDIT_PREVIEW_SUFFIX, STOREFRONT_EDIT_START_STAGES, STOREFRONT_FILE_BATCH_MAX, STOREFRONT_FILE_MAX_BYTES, STOREFRONT_PATH_SEGMENT_PATTERN, STOREFRONT_PLATFORM_DOMAINS, STOREFRONT_PUBLIC_SUFFIXES, STOREFRONT_SEARCH_REGEX_MAX_LENGTH, STOREFRONT_SHOWCASE_SLUG_PREFIX, STOREFRONT_SITE_CREATE_LIMIT, STOREFRONT_SLUG_CHANGE_LIMIT, STOREFRONT_SLUG_CHANGE_WINDOW_DAYS, STOREFRONT_SLUG_HOLD_DAYS, STOREFRONT_SLUG_PATTERN, STOREFRONT_SOURCE_BLOB_BATCH_MAX, STOREFRONT_SOURCE_PART_BYTES, STOREFRONT_WORKSPACE_MAX_BYTES, STOREFRONT_WORKSPACE_MAX_FILES, STORE_CODE_PATTERN, STORE_ROLE_SCOPES, STORE_SCOPE_RESOURCES, STORE_SESSION_KEYS, TOSS_WIDGET_CLIENT_KEY_PATTERN, TOSS_WIDGET_KEY_MESSAGE, TOSS_WIDGET_SECRET_KEY_PATTERN, UPLOAD_PURPOSE_LIMITS, VARIANT_COUNT_WARNING, VARIANT_STOCK_EXCLUSIVE_MESSAGE, WEBHOOK_DEFAULT_TOLERANCE_SEC, WEBHOOK_DELIVERY_ID_HEADER, WEBHOOK_EVENT_ID_HEADER, WEBHOOK_EVENT_TYPE_HEADER, WEBHOOK_FAILURE_REASONS, WEBHOOK_HEADERS, WEBHOOK_PAYLOAD_EXCERPT_MAX_BYTES, WEBHOOK_RESOURCE_TYPES, WEBHOOK_SIGNATURE_HEADER, WEBHOOK_USER_AGENT, addStorefrontDomainRequestSchema, addonGroupRequestSchema, addonGroupSchema, addonValueRequestSchema, addonValueSchema, addressChangeRequestListSchema, addressTypeSchema, agentPolicyDecisionSchema, allocateByWeight, analyticsChannelSchema, analyticsCheckoutOutcomeSchema, analyticsCheckoutSchema, analyticsDeviceRowSchema, analyticsDevicesSchema, analyticsFunnelStepSchema, analyticsOriginSchema, analyticsOverviewSchema, analyticsPagesQuerySchema, analyticsPagesSchema, analyticsProductRowSchema, analyticsProductSortSchema, analyticsProductsQuerySchema, analyticsProductsSchema, analyticsRangeQuerySchema, analyticsRealtimeSchema, analyticsSearchQuerySchema, analyticsSearchSchema, analyticsSourceGroupBySchema, analyticsSourceRowSchema, analyticsSourcesQuerySchema, analyticsSourcesSchema, analyticsTotalsSchema, apiLogErrorSchema, apiLogListQuerySchema, apiLogPageSchema, apiLogPrincipalSchema, apiLogPrincipalTypeSchema, apiLogSchema, apiLogStatusFilterSchema, apiLogSummarySchema, approvalDecisionRequestSchema, approvalListQuerySchema, approvalPageSchema, approvalRequestSchema, approvalStatusSchema, approveClaimResultSchema, auditActorSchema, auditActorTypeSchema, auditLogListQuerySchema, auditLogOutcomeSchema, auditLogPageSchema, auditLogSchema, auditLogSourceSchema, bestSellingRuleOf, buildAuthorizeUrl, buildQuery, bulkResultSchema, businessInfoPatchShape, businessInfoResponseShape, businessNumberSchema, calendarDateSchema, calendarDaySchema, calendarQuerySchema, cancelBySellerRequestSchema, cancelBySellerResultSchema, carrierSchema, cashReceiptSchema, categoryAttributeSchema, categoryCreateRequestSchema, categoryDeleteQuerySchema, categoryDeleteStrategySchema, categoryListQuerySchema, categoryPatchRequestSchema, categoryProductSortSchema, categorySchema, categorySearchResultSchema, categoryTreeNodeSchema, categoryWithPathSchema, changeStorefrontSlugRequestSchema, changeStorefrontTemplateRequestSchema, changeTypeSchema, claimDetailSchema, claimHoldResultSchema, claimListQuerySchema, claimReasonSchema, claimReturnAddressSchema, claimSchema, claimStatusSchema, claimTypeSchema, claimWebhookEventDataSchema, claimWebhookEventSchema, collectionCreateRequestSchema, collectionListQuerySchema, collectionPageSchema, collectionPatchRequestSchema, collectionPreviewRequestSchema, collectionPreviewSchema, collectionProductListQuerySchema, collectionProductSchema, collectionProductSortRequestSchema, collectionProductsAddRequestSchema, collectionProductsReplaceRequestSchema, collectionRuleCategoryIds, collectionRuleSchema, collectionRuleViewSchema, collectionRulesPredicate, collectionRulesSchema, collectionSchema, collectionStateCountsSchema, collectionStateOf, collectionStateSchema, commerceFlowCheckSchema, commerceFlowSchema, commerceFlowSummarySchema, commerceFlowVersionViewSchema, commerceNumberField, compareBySales, consentActionSchema, consentKindSchema, consentSourceSchema, couponBenefitSchema, couponConditionsInputSchema, couponConditionsSchema, couponDiscountOf, couponIssueListQuerySchema, couponIssueMethodSchema, couponIssueSchema, couponIssueStatusSchema, couponKindSchema, couponListQuerySchema, couponRedemptionListQuerySchema, couponRedemptionSchema, couponRejectReasonSchema, couponRuleSchema, couponSchema, couponStatsSchema, couponStatusSchema, couponTargetInputSchema, couponTargetSchema, createCommerceFlowRequestSchema, createCouponRequestSchema, createPkcePair, createStoreClient, createStoreSession, createStorefrontEditPreviewLinkRequestSchema, createStorefrontPreviewLinkRequestSchema, createStorefrontSiteRequestSchema, createStorefrontVersionRequestSchema, customInputLabelForbiddenWord, customInputRequestSchema, customInputSchema, customInputValueSchema, customerAddressSchema, customerConsentListQuerySchema, customerConsentSchema, customerConsentStateSchema, customerConsentsSchema, customerCouponSchema, customerDelegationRequestSchema, customerDelegationSchema, customerDetailSchema, customerInquiryCategorySchema, customerInquiryListQuerySchema, customerListQuerySchema, customerOrderSchema, customerPointsSchema, customerSortSchema, customerStatsSchema, customerSummarySchema, customerWithdrawalBlockedDetailsSchema, defaultFulfillmentMethodOf, deleteStorefrontFileRequestSchema, deliveryBundleKeyOf, deliveryFeeWaiverSchema, deliveryInfoSchema, deliveryMethodSchema, deliveryStatusSchema, deliveryTypeSchema, descendantCategoryIdsOf, disableStorefrontHostingRequestSchema, discountRequestSchema, discountSchema, dispatchRequestSchema, easyPayProviderResponseSchema, easyPayProviderSchema, eventTypeSchema, exchangeAuthorizationCode, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowNodeTypesSchema, flowNotificationWebhookEventDataSchema, flowNotificationWebhookEventSchema, flowPresetDetailSchema, flowPresetSummarySchema, flowRunSchema, flowRunStepSchema, flowSecretNameSchema, flowSecretSchema, flowStateChangedWebhookEventDataSchema, flowStateChangedWebhookEventSchema, flowStateSchema, formatOrderNo, fulfillBulkRequestSchema, fulfillRequestSchema, fulfillmentMethodOf, fulfillmentMethodSchema, fulfillmentMethodsOf, fulfillmentRuleOf, fulfillmentTypeOf, fulfillmentTypeResponseSchema, fulfillmentTypeSchema, holdOrderItemRequestSchema, inquiryListQuerySchema, inquirySchema, inquiryWebhookEventDataSchema, inquiryWebhookEventSchema, inventoryModeSchema, invitationDeliveryStatusSchema, invitationListQuerySchema, invitationSchema, inviteMemberRequestSchema, isCouponTargetLine, isEditableStorefrontPath, isReservedStoreCode, isReservedStorefrontSlug, isShowcaseStorefrontSlug, isStoreScope, isWebOrigin, issueCouponRequestSchema, issueCouponResultSchema, liveGateConditionCodeSchema, liveGateConditionSchema, liveGateErrorDetailsSchema, liveGateSchema, loginProviderSchema, loginProviderStatusSchema, loginProviderTestSchema, loginSettingsSchema, maskedSecretSchema, matchesCollectionRules, mcpRuleResultSchema, mcpToolEventSchema, migrateFlowVersionRequestSchema, migrateFlowVersionResultSchema, moveFlowStateRequestSchema, moveStorefrontFileRequestSchema, myAccountSchema, myStoreSchema, nightsOf, normalizeBusinessNumber, normalizeCouponCode, normalizeStorefrontHostname, normalizeStorefrontPath, oauthTokenResponseSchema, openFulfillmentUnion, optionGroupKindSchema, optionGroupRequestSchema, optionGroupSchema, optionModelRequestSchema, optionModelSchema, optionSelectionSchema, optionSortSchema, optionValueRequestSchema, optionValueSchema, orderCanceledWebhookEventDataSchema, orderCanceledWebhookEventSchema, orderDiscountSchema, orderFlowActionResultSchema, orderFulfilledWebhookEventDataSchema, orderFulfilledWebhookEventSchema, orderItemFlowSchema, orderItemFulfillmentSchema, orderItemFulfillmentSnapshotResponseSchema, orderItemFulfillmentSnapshotSchema, orderItemListQuerySchema, orderItemMemoResultSchema, orderItemPageSchema, orderItemSchema, orderItemStatusSchema, orderListQuerySchema, orderSchema, orderSummaryPageSchema, orderSummarySchema, orderWebhookEventDataSchema, orderWebhookEventSchema, pageInfoSchema, pageQueryShape, pageSchema, parseOrderNo, parseWebhookEvent, paymentAttemptRecordSchema, paymentAttemptStatusSchema, paymentCredentialSetSchema, paymentFailureWarningSchema, paymentListQuerySchema, paymentProviderSchema, paymentProviderVerificationSchema, paymentRecordDetailSchema, paymentRecordPageSchema, paymentRecordSchema, paymentRecordStatusSchema, paymentRefundRecordSchema, paymentSettingsSchema, pgEnvironmentSchema, pgPaymentMethodSchema, pgProviderSchema, pgVerificationResultSchema, pickupLocationRequestSchema, pickupLocationSchema, pickupLocationSnapshotSchema, planCodeSchema, planEntitlementsSchema, planErrorDetailsSchema, pointAdjustmentRequestSchema, pointAdjustmentResultSchema, pointEarnOf, pointEarnRateBpSchema, pointEarningEnabled, pointEntrySchema, pointExpiresAtOf, pointHistoryQuerySchema, pointLotSchema, pointPolicyNoticeSchema, pointPolicySchema, pointRestoreExpiresAtOf, pointUseOf, pointUsePolicySchema, policyDocumentUrlSchema, policyVersionSchema, portOneChannelSchema, portOneCredentialsInputSchema, productCreateRequestSchema, productFulfillmentCreateSchema, productFulfillmentResponseSchema, productFulfillmentSchema, productFulfillmentUpdateSchema, productImageRejection, productImageUrlSchema, productListQuerySchema, productOutOfStockWebhookEventDataSchema, productOutOfStockWebhookEventSchema, productPatchRequestSchema, productRefundPolicyOverride, productRefundPolicyPatchSchema, productReplaceRequestSchema, productSchema, productSortSchema, productStatusSchema, productSummarySchema, productVariantRequestSchema, productVariantSchema, proratedPaidRefundBase, proratedPointRefund, proratedRefundBase, publicPlanSchema, publicPlansSchema, publishStorefrontVersionRequestSchema, purchaseDecisionExtendResultSchema, purchaseDecisionRequestResultSchema, purchaseEarnPolicySchema, purchaseEarnRateOf, quoteDelivery, quotePricing, rankBestSelling, refreshUserToken, refundPolicyPatchSchema, refundPolicySchema, rejectClaimRequestSchema, remoteAreaLabelOf, remoteAreaOf, remoteAreaSchema, remoteSurchargeOf, replaceStorefrontSourceRequestSchema, replayFlowRequestSchema, replayFlowResultSchema, requiresCollection, requiresShipping, resolvePointPolicy, resolveRefundPolicy, resolveShippingPolicy, resolvedFlowSchema, responsePlanCodeSchema, responsePointEntryTypeSchema, reviewListQuerySchema, reviewReportResultSchema, reviewRewardPointOf, reviewRewardPolicySchema, reviewSchema, reviewSortSchema, reviewWebhookEventDataSchema, reviewWebhookEventSchema, rollbackStorefrontRequestSchema, runStorefrontCheckRequestSchema, salesReportGroupBySchema, salesReportQuerySchema, salesReportRowSchema, salesReportSchema, salesTotalsSchema, saveFlowDraftRequestSchema, saveFlowSecretRequestSchema, saveLoginProviderRequestSchema, savedCustomInputRequestSchema, savedCustomInputSchema, savedOptionGroupRequestSchema, savedOptionGroupSchema, savedOptionSetCompositionSchema, savedOptionSetFromProductRequestSchema, savedOptionSetFromProductResultSchema, savedOptionSetListQuerySchema, savedOptionSetRequestSchema, savedOptionSetSchema, savedOptionSetSortSchema, savedOptionValueRequestSchema, savedOptionValueSchema, scopeAccessSchema, searchStorefrontFilesRequestSchema, sellerAddressListQuerySchema, sellerAddressRequestSchema, sellerAddressSchema, sellerCancelPreviewSchema, sellerCustomerInquirySchema, setCalendarRequestSchema, setStorefrontVisibilityRequestSchema, settleCouponShortfall, settlementDetailQuerySchema, settlementDetailSchema, settlementListQuerySchema, settlementStatusSchema, settlementSummarySchema, settlementWithDetailsSchema, shippingAddressSchema, shippingPolicyPatchSchema, shippingPolicySchema, simulateFlowRequestSchema, simulateFlowResultSchema, simulationStepSchema, splitRefund, stayRangeSchema, staySnapshotSchema, storeCodeSchema, storeMemberRoleUpdatedSchema, storeMemberSchema, storePointPolicySchema, storeRoleSchema, storeSchema, storeScopeResourceSchema, storeSubscriptionSchema, storefrontBuildDependenciesSchema, storefrontBuildListQuerySchema, storefrontBuildSchema, storefrontBuildStatusSchema, storefrontCheckSchema, storefrontCheckStatusSchema, storefrontCustomDomainStatusSchema, storefrontCustomHostnameProblem, storefrontDependencyFindingSchema, storefrontDeploymentLogSchema, storefrontDeploymentSchema, storefrontDeploymentStepSchema, storefrontDnsRecordSchema, storefrontDomainSchema, storefrontDomainTxtNameOf, storefrontEditPreviewLabelOf, storefrontEditPreviewSchema, storefrontEditSessionSchema, storefrontEditSessionStatusSchema, storefrontEditingSchema, storefrontFileConflictDetailsSchema, storefrontFileContentQuerySchema, storefrontFileContentSchema, storefrontFileDeleteResultSchema, storefrontFileEncodingSchema, storefrontFileEntrySchema, storefrontFileHashSchema, storefrontFileListQuerySchema, storefrontFileListSchema, storefrontFileMoveResultSchema, storefrontFilePathSchema, storefrontFileSearchResultSchema, storefrontFileWriteResultSchema, storefrontHostingSchema, storefrontPreviewLinkSchema, storefrontProvisioningSchema, storefrontRuleResultSchema, storefrontRuleSeveritySchema, storefrontSiteDomainSchema, storefrontSiteDomainsSchema, storefrontSiteSchema, storefrontSiteStatusSchema, storefrontSlugAvailabilityQuerySchema, storefrontSlugAvailabilitySchema, storefrontSlugSchema, storefrontSourceArchivePartSchema, storefrontSourceArchiveQuerySchema, storefrontSourceBlobsResultSchema, storefrontSourceModeSchema, storefrontSourceRefSchema, storefrontSourceReplacedSchema, storefrontSourceSchema, storefrontSuspensionSchema, storefrontTemplateSchema, storefrontVerifyReportSchema, storefrontVersionCreatedSchema, storefrontVersionSchema, storefrontVersionStatusSchema, storefrontVisibilitySchema, subscriptionLimitsSchema, subscriptionStatusSchema, subscriptionUsageSchema, tossPaymentsCredentialsInputSchema, trackingStageResponseSchema, trackingUpdateResultSchema, unknownWebhookEventSchema, updateCouponRequestSchema, updateLoginProviderRequestSchema, updateLoginSettingsRequestSchema, updateMemberRoleRequestSchema, updatePaymentProviderRequestSchema, updatePaymentSettingsRequestSchema, updatePointPolicyRequestSchema, updateStoreRequestSchema, uploadExtensionOf, uploadPurposeSchema, uploadRejection, uploadRequestSchema, uploadStorefrontSourceBlobsRequestSchema, uploadTicketSchema, upsertPortOneProviderRequestSchema, upsertTossPaymentsProviderRequestSchema, variantStockRequestSchema, variantStockSchema, verifyPaymentProviderRequestSchema, webhookCreatedSchema, webhookDeliveryDetailSchema, webhookDeliveryErrorCodeSchema, webhookDeliveryListQuerySchema, webhookDeliveryResourceSchema, webhookDeliverySchema, webhookDeliveryStatusSchema, webhookEventSchema, webhookFailureReasonSchema, webhookRedeliverFailedResultSchema, webhookRequestHeaderSchema, webhookRequestSchema, webhookResourceTypeSchema, webhookSchema, webhookSecretRotatedSchema, webhookStatusSchema, webhookTestRequestSchema, webhookTestResultSchema, withdrawCustomerRequestSchema, writeDryRunResultSchema, writePreviewSchema, writeStorefrontFilesRequestSchema };
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -184,6 +184,7 @@ import {
|
|
|
184
184
|
orderSchema,
|
|
185
185
|
orderSummarySchema,
|
|
186
186
|
purchaseDecisionExtendResultSchema,
|
|
187
|
+
sellerCancelPreviewSchema,
|
|
187
188
|
} from "./schemas/order";
|
|
188
189
|
import {
|
|
189
190
|
cashReceiptSchema,
|
|
@@ -747,6 +748,14 @@ export function createStoreClient(options: StoreClientOptions) {
|
|
|
747
748
|
}),
|
|
748
749
|
releaseHold: (orderItemId: string) =>
|
|
749
750
|
storeHttp.requestVoid("DELETE", path`/order-items/${orderItemId}/hold`),
|
|
751
|
+
/** 판매자 취소 미리보기(#115) — 취소하면 돌려줄 현금·적립금. 생략한 수량은 남은 수량 전체다 */
|
|
752
|
+
cancelPreview: (orderItemId: string, quantity?: number) =>
|
|
753
|
+
storeHttp.request(
|
|
754
|
+
"GET",
|
|
755
|
+
path`/order-items/${orderItemId}/cancel-preview`,
|
|
756
|
+
sellerCancelPreviewSchema,
|
|
757
|
+
{ query: (quantity ? { quantity } : {}) as Query },
|
|
758
|
+
),
|
|
750
759
|
cancelBySeller: (orderItemId: string, body: CancelBySellerRequest, idempotencyKey?: string) =>
|
|
751
760
|
storeHttp.request(
|
|
752
761
|
"POST",
|
|
@@ -55,6 +55,12 @@ export const flowActionSchema = z.object({
|
|
|
55
55
|
subflow: z.string().optional().describe("이 행동이 시작하는 하위 플로우(클레임)"),
|
|
56
56
|
input: z.array(flowInputFieldSchema).optional().describe("받는 입력 폼"),
|
|
57
57
|
partialQuantity: z.union([z.boolean(), z.literal("UNIT")]).optional(),
|
|
58
|
+
attachments: z
|
|
59
|
+
.enum(["REQUIRED", "OPTIONAL"])
|
|
60
|
+
.optional()
|
|
61
|
+
.describe(
|
|
62
|
+
"첨부(#115) — 이 행동이 들어가는 단계가 자료를 받으면 있다(시안 확인 등). REQUIRED면 입력 `attachments`(첨부 업로드 주소) 없이 실행하면 409. 없으면 첨부를 받지 않는다",
|
|
63
|
+
),
|
|
58
64
|
});
|
|
59
65
|
export type FlowAction = z.infer<typeof flowActionSchema>;
|
|
60
66
|
|
|
@@ -95,6 +101,12 @@ export const flowStateSchema = z.object({
|
|
|
95
101
|
label: z.string(),
|
|
96
102
|
type: z.string(),
|
|
97
103
|
value: z.union([z.string(), z.number(), z.boolean(), z.array(z.string())]),
|
|
104
|
+
display: z
|
|
105
|
+
.string()
|
|
106
|
+
.optional()
|
|
107
|
+
.describe(
|
|
108
|
+
"화면에 보일 값 — 이름 붙인 선택지(`{ value, label }`)면 이름. 없으면 `value`를 그대로 보인다",
|
|
109
|
+
),
|
|
98
110
|
}),
|
|
99
111
|
),
|
|
100
112
|
})
|
|
@@ -323,7 +335,9 @@ export const createCommerceFlowRequestSchema = z.object({
|
|
|
323
335
|
),
|
|
324
336
|
definition: flowDocumentSchema
|
|
325
337
|
.optional()
|
|
326
|
-
.describe(
|
|
338
|
+
.describe(
|
|
339
|
+
"흐름 설정 `requires`(progression·groupClaim·fulfillmentMethods). 없으면 프리셋의 설정",
|
|
340
|
+
),
|
|
327
341
|
variables: z
|
|
328
342
|
.record(z.string(), z.unknown())
|
|
329
343
|
.optional()
|
|
@@ -335,7 +349,7 @@ export const saveFlowDraftRequestSchema = z.object({
|
|
|
335
349
|
graph: flowDocumentSchema,
|
|
336
350
|
definition: flowDocumentSchema
|
|
337
351
|
.optional()
|
|
338
|
-
.describe("흐름 설정 `requires`(progression·fulfillmentMethods)
|
|
352
|
+
.describe("흐름 설정 `requires`(progression·groupClaim·fulfillmentMethods)"),
|
|
339
353
|
variables: z
|
|
340
354
|
.record(z.string(), z.unknown())
|
|
341
355
|
.optional()
|
package/src/schemas/order.ts
CHANGED
|
@@ -602,6 +602,21 @@ export const cancelBySellerResultSchema = z.object({
|
|
|
602
602
|
|
|
603
603
|
export type CancelBySellerResult = z.infer<typeof cancelBySellerResultSchema>;
|
|
604
604
|
|
|
605
|
+
/**
|
|
606
|
+
* `GET /v1/order-items/{orderItemId}/cancel-preview` 응답(#115) — 판매자 취소를 하면 돌려줄 금액. 실제 취소와 같은 계산을
|
|
607
|
+
* 쓰기 없이 돌린 결과다. 취소할 수 없는 주문상품은 취소와 같은 409다
|
|
608
|
+
*/
|
|
609
|
+
export const sellerCancelPreviewSchema = z.object({
|
|
610
|
+
orderItemId: z.string(),
|
|
611
|
+
quantity: z.number().int().describe("취소할 수량"),
|
|
612
|
+
refundAmount: z.number().int().describe("현금 환불 예정 금액(배송비 환불·차감 포함)"),
|
|
613
|
+
pointRefundAmount: z.number().int().describe("돌려줄 적립금 (원)"),
|
|
614
|
+
deliveryFeeRefundAmount: z.number().int().describe("환불에 포함될 배송비"),
|
|
615
|
+
deliveryFeeChargeAmount: z.number().int().describe("조건부 무료배송 기준 미달로 뺄 배송비"),
|
|
616
|
+
});
|
|
617
|
+
|
|
618
|
+
export type SellerCancelPreview = z.infer<typeof sellerCancelPreviewSchema>;
|
|
619
|
+
|
|
605
620
|
/** `PUT /v1/order-items/{orderItemId}/memo` 응답 — 빈 문자열로 저장하면 메모가 지워져 `null`이다 */
|
|
606
621
|
export const orderItemMemoResultSchema = z.object({
|
|
607
622
|
orderItemId: z.string(),
|