@sayren/store-sdk 0.30.6 → 0.30.8

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 CHANGED
@@ -165,8 +165,8 @@ export declare const auditLogPageSchema: z.ZodObject<{
165
165
  }, z.core.$strip>;
166
166
  export type AuditLogPage = z.infer<typeof auditLogPageSchema>;
167
167
  export declare const agentPolicyDecisionSchema: z.ZodEnum<{
168
- DENIED: "DENIED";
169
168
  APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
169
+ DENIED: "DENIED";
170
170
  ALLOW: "ALLOW";
171
171
  }>;
172
172
  export type AgentPolicyDecision = z.infer<typeof agentPolicyDecisionSchema>;
@@ -191,8 +191,8 @@ export type WritePreview = z.infer<typeof writePreviewSchema>;
191
191
  export declare const writeDryRunResultSchema: z.ZodObject<{
192
192
  dryRun: z.ZodLiteral<true>;
193
193
  decision: z.ZodEnum<{
194
- DENIED: "DENIED";
195
194
  APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
195
+ DENIED: "DENIED";
196
196
  ALLOW: "ALLOW";
197
197
  }>;
198
198
  reason: z.ZodNullable<z.ZodString>;
@@ -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
  }>>;
@@ -7297,9 +7326,9 @@ export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
7297
7326
  export declare const productSortSchema: z.ZodEnum<{
7298
7327
  "createdAt.desc": "createdAt.desc";
7299
7328
  "createdAt.asc": "createdAt.asc";
7329
+ "updatedAt.desc": "updatedAt.desc";
7300
7330
  "salePrice.asc": "salePrice.asc";
7301
7331
  "salePrice.desc": "salePrice.desc";
7302
- "updatedAt.desc": "updatedAt.desc";
7303
7332
  }>;
7304
7333
  export type ProductSort = z.infer<typeof productSortSchema>;
7305
7334
  export interface ProductListParams extends PageParams {
@@ -7328,9 +7357,9 @@ export declare const productListQuerySchema: z.ZodObject<{
7328
7357
  sort: z.ZodOptional<z.ZodEnum<{
7329
7358
  "createdAt.desc": "createdAt.desc";
7330
7359
  "createdAt.asc": "createdAt.asc";
7360
+ "updatedAt.desc": "updatedAt.desc";
7331
7361
  "salePrice.asc": "salePrice.asc";
7332
7362
  "salePrice.desc": "salePrice.desc";
7333
- "updatedAt.desc": "updatedAt.desc";
7334
7363
  }>>;
7335
7364
  }, z.core.$strip>;
7336
7365
  export declare const discountRequestSchema: z.ZodObject<{
@@ -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
  }>;
@@ -7713,6 +7742,7 @@ export declare const updateStoreRequestSchema: z.ZodObject<{
7713
7742
  analyticsAllowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
7714
7743
  storefrontOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
7715
7744
  guestCheckoutEnabled: z.ZodOptional<z.ZodBoolean>;
7745
+ testOrderReviewsAllowed: z.ZodOptional<z.ZodBoolean>;
7716
7746
  autoDeliverDays: z.ZodOptional<z.ZodNumber>;
7717
7747
  autoConfirmDays: z.ZodOptional<z.ZodNumber>;
7718
7748
  refundPolicy: z.ZodOptional<z.ZodObject<{
@@ -7751,6 +7781,7 @@ export declare const storeSchema: z.ZodObject<{
7751
7781
  analyticsAllowedOrigins: z.ZodArray<z.ZodString>;
7752
7782
  storefrontOrigins: z.ZodArray<z.ZodString>;
7753
7783
  guestCheckoutEnabled: z.ZodBoolean;
7784
+ testOrderReviewsAllowed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7754
7785
  autoDeliverDays: z.ZodNumber;
7755
7786
  autoConfirmDays: z.ZodNumber;
7756
7787
  refundPolicy: z.ZodObject<{
@@ -9629,7 +9660,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9629
9660
  type?: string | undefined;
9630
9661
  options?: string[] | null | undefined;
9631
9662
  }[];
9632
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
9663
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
9633
9664
  fulfillment: UnknownFulfillment | {
9634
9665
  type: "SHIPPING";
9635
9666
  shipping: {
@@ -9737,7 +9768,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9737
9768
  type?: string | undefined;
9738
9769
  options?: string[] | null | undefined;
9739
9770
  }[];
9740
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
9771
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
9741
9772
  fulfillment: UnknownFulfillment | {
9742
9773
  type: "SHIPPING";
9743
9774
  shipping: {
@@ -9845,7 +9876,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9845
9876
  type?: string | undefined;
9846
9877
  options?: string[] | null | undefined;
9847
9878
  }[];
9848
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
9879
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
9849
9880
  fulfillment: UnknownFulfillment | {
9850
9881
  type: "SHIPPING";
9851
9882
  shipping: {
@@ -9955,7 +9986,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9955
9986
  type?: string | undefined;
9956
9987
  options?: string[] | null | undefined;
9957
9988
  }[];
9958
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
9989
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
9959
9990
  }>;
9960
9991
  /**
9961
9992
  * 옵션 모델 전체 교체 — variants는 valueNames로 축 값을 지목한다.
@@ -10013,7 +10044,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10013
10044
  type?: string | undefined;
10014
10045
  options?: string[] | null | undefined;
10015
10046
  }[];
10016
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
10047
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
10017
10048
  }>;
10018
10049
  /** 재고 변경 — stockQuantity(절대값) 또는 adjustment(증감) 하나만 전달한다 */
10019
10050
  updateVariantStock: (productId: string, variantId: string, body: VariantStockRequest) => Promise<{
@@ -10062,7 +10093,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10062
10093
  contents: {
10063
10094
  optionSetId: string;
10064
10095
  name: string;
10065
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
10096
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
10066
10097
  groups: {
10067
10098
  name: string;
10068
10099
  kind: string;
@@ -10089,7 +10120,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10089
10120
  get: (optionSetId: string) => Promise<{
10090
10121
  optionSetId: string;
10091
10122
  name: string;
10092
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
10123
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
10093
10124
  groups: {
10094
10125
  name: string;
10095
10126
  kind: string;
@@ -10116,7 +10147,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10116
10147
  create: (body: SavedOptionSetRequestInput) => Promise<{
10117
10148
  optionSetId: string;
10118
10149
  name: string;
10119
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
10150
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
10120
10151
  groups: {
10121
10152
  name: string;
10122
10153
  kind: string;
@@ -10143,7 +10174,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10143
10174
  update: (optionSetId: string, body: SavedOptionSetRequestInput) => Promise<{
10144
10175
  optionSetId: string;
10145
10176
  name: string;
10146
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
10177
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
10147
10178
  groups: {
10148
10179
  name: string;
10149
10180
  kind: string;
@@ -10172,7 +10203,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10172
10203
  optionSet: {
10173
10204
  optionSetId: string;
10174
10205
  name: string;
10175
- optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
10206
+ optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
10176
10207
  groups: {
10177
10208
  name: string;
10178
10209
  kind: string;
@@ -10523,7 +10554,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10523
10554
  visible: boolean;
10524
10555
  showPc: boolean;
10525
10556
  showMobile: boolean;
10526
- productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
10557
+ productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
10527
10558
  metaTitle: string | null;
10528
10559
  metaDescription: string | null;
10529
10560
  metaKeywords: string | null;
@@ -10544,7 +10575,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10544
10575
  visible: boolean;
10545
10576
  showPc: boolean;
10546
10577
  showMobile: boolean;
10547
- productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
10578
+ productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
10548
10579
  metaTitle: string | null;
10549
10580
  metaDescription: string | null;
10550
10581
  metaKeywords: string | null;
@@ -10563,7 +10594,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10563
10594
  visible: boolean;
10564
10595
  showPc: boolean;
10565
10596
  showMobile: boolean;
10566
- productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
10597
+ productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
10567
10598
  metaTitle: string | null;
10568
10599
  metaDescription: string | null;
10569
10600
  metaKeywords: string | null;
@@ -10585,7 +10616,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10585
10616
  visible: boolean;
10586
10617
  showPc: boolean;
10587
10618
  showMobile: boolean;
10588
- productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
10619
+ productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
10589
10620
  metaTitle: string | null;
10590
10621
  metaDescription: string | null;
10591
10622
  metaKeywords: string | null;
@@ -10604,7 +10635,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10604
10635
  visible: boolean;
10605
10636
  showPc: boolean;
10606
10637
  showMobile: boolean;
10607
- productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
10638
+ productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
10608
10639
  metaTitle: string | null;
10609
10640
  metaDescription: string | null;
10610
10641
  metaKeywords: string | null;
@@ -10635,7 +10666,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10635
10666
  visible: boolean;
10636
10667
  showPc: boolean;
10637
10668
  showMobile: boolean;
10638
- productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
10669
+ productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
10639
10670
  metaTitle: string | null;
10640
10671
  metaDescription: string | null;
10641
10672
  metaKeywords: string | null;
@@ -10655,7 +10686,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10655
10686
  visible: boolean;
10656
10687
  showPc: boolean;
10657
10688
  showMobile: boolean;
10658
- productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
10689
+ productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
10659
10690
  metaTitle: string | null;
10660
10691
  metaDescription: string | null;
10661
10692
  metaKeywords: string | null;
@@ -10971,6 +11002,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
10971
11002
  }>;
10972
11003
  hold: (orderItemId: string, body: HoldOrderItemRequest) => Promise<void>;
10973
11004
  releaseHold: (orderItemId: string) => Promise<void>;
11005
+ /** 판매자 취소 미리보기(#115) — 취소하면 돌려줄 현금·적립금. 생략한 수량은 남은 수량 전체다 */
11006
+ cancelPreview: (orderItemId: string, quantity?: number) => Promise<{
11007
+ orderItemId: string;
11008
+ quantity: number;
11009
+ refundAmount: number;
11010
+ pointRefundAmount: number;
11011
+ deliveryFeeRefundAmount: number;
11012
+ deliveryFeeChargeAmount: number;
11013
+ }>;
10974
11014
  cancelBySeller: (orderItemId: string, body: CancelBySellerRequest, idempotencyKey?: string) => Promise<{
10975
11015
  orderItemId: string;
10976
11016
  refundAmount: number;
@@ -11255,6 +11295,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11255
11295
  label: string;
11256
11296
  type: string;
11257
11297
  value: string | number | boolean | string[];
11298
+ display?: string | undefined;
11258
11299
  }[];
11259
11300
  } | undefined;
11260
11301
  progress?: boolean | undefined;
@@ -11288,6 +11329,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11288
11329
  } | undefined;
11289
11330
  }[] | undefined;
11290
11331
  partialQuantity?: boolean | "UNIT" | undefined;
11332
+ attachments?: "REQUIRED" | "OPTIONAL" | undefined;
11291
11333
  }[];
11292
11334
  timers: {
11293
11335
  key: string;
@@ -11318,6 +11360,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11318
11360
  label: string;
11319
11361
  type: string;
11320
11362
  value: string | number | boolean | string[];
11363
+ display?: string | undefined;
11321
11364
  }[];
11322
11365
  } | undefined;
11323
11366
  progress?: boolean | undefined;
@@ -11347,6 +11390,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11347
11390
  label: string;
11348
11391
  type: string;
11349
11392
  value: string | number | boolean | string[];
11393
+ display?: string | undefined;
11350
11394
  }[];
11351
11395
  } | undefined;
11352
11396
  progress?: boolean | undefined;
@@ -11380,6 +11424,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11380
11424
  } | undefined;
11381
11425
  }[] | undefined;
11382
11426
  partialQuantity?: boolean | "UNIT" | undefined;
11427
+ attachments?: "REQUIRED" | "OPTIONAL" | undefined;
11383
11428
  }[];
11384
11429
  affectedOrderItemIds: string[];
11385
11430
  }>;
@@ -11407,6 +11452,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11407
11452
  label: string;
11408
11453
  type: string;
11409
11454
  value: string | number | boolean | string[];
11455
+ display?: string | undefined;
11410
11456
  }[];
11411
11457
  } | undefined;
11412
11458
  progress?: boolean | undefined;
@@ -11440,6 +11486,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11440
11486
  } | undefined;
11441
11487
  }[] | undefined;
11442
11488
  partialQuantity?: boolean | "UNIT" | undefined;
11489
+ attachments?: "REQUIRED" | "OPTIONAL" | undefined;
11443
11490
  }[];
11444
11491
  affectedOrderItemIds: string[];
11445
11492
  }>;
@@ -11467,6 +11514,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11467
11514
  label: string;
11468
11515
  type: string;
11469
11516
  value: string | number | boolean | string[];
11517
+ display?: string | undefined;
11470
11518
  }[];
11471
11519
  } | undefined;
11472
11520
  progress?: boolean | undefined;
@@ -11500,6 +11548,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11500
11548
  } | undefined;
11501
11549
  }[] | undefined;
11502
11550
  partialQuantity?: boolean | "UNIT" | undefined;
11551
+ attachments?: "REQUIRED" | "OPTIONAL" | undefined;
11503
11552
  }[];
11504
11553
  affectedOrderItemIds: string[];
11505
11554
  }>;
@@ -15744,6 +15793,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
15744
15793
  analyticsAllowedOrigins: string[];
15745
15794
  storefrontOrigins: string[];
15746
15795
  guestCheckoutEnabled: boolean;
15796
+ testOrderReviewsAllowed: boolean;
15747
15797
  autoDeliverDays: number;
15748
15798
  autoConfirmDays: number;
15749
15799
  refundPolicy: {
@@ -15792,6 +15842,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
15792
15842
  analyticsAllowedOrigins: string[];
15793
15843
  storefrontOrigins: string[];
15794
15844
  guestCheckoutEnabled: boolean;
15845
+ testOrderReviewsAllowed: boolean;
15795
15846
  autoDeliverDays: number;
15796
15847
  autoConfirmDays: number;
15797
15848
  refundPolicy: {
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)와 행동 입력 칸 `actionInputs`"),
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(),
@@ -5638,6 +5652,7 @@ const updateStoreRequestSchema = z.object({
5638
5652
  analyticsAllowedOrigins: z.array(analyticsOriginSchema).max(20).optional().describe("@deprecated `storefrontOrigins`를 쓴다(같은 목록). 방문 분석 수집을 받을 스토어프론트 오리진(최대 20개). 비우면 모든 오리진에서 받는다. 넣으면 목록에 없는 오리진의 수집 요청은 403 `ORIGIN_NOT_ALLOWED`이고, 페이지 URL이 목록 밖인 이벤트는 버린다"),
5639
5653
  storefrontOrigins: z.array(analyticsOriginSchema).max(20).optional().describe("스토어프론트 도메인(최대 20개) — 소셜 로그인 뒤 돌아갈 주소와 방문 분석 수집을 함께 제한한다. `analyticsAllowedOrigins`와 같은 목록이다(둘 다 주면 이 값이 이긴다)"),
5640
5654
  guestCheckoutEnabled: z.boolean().optional().describe("비회원 주문 허용. false(회원만)면 로그인하지 않은 구매자의 주문서 생성·결제 요청이 403 `GUEST_CHECKOUT_DISABLED`다. 장바구니 담기와 이미 받은 비회원 주문의 조회·취소는 막지 않는다"),
5655
+ testOrderReviewsAllowed: z.boolean().optional().describe("테스트 결제(샌드박스) 주문의 리뷰 허용. 기본 false — 돈을 내지 않은 주문으로 구매 인증 리뷰가 쌓이지 않게 막는다"),
5641
5656
  autoDeliverDays: z.number().int().min(0).max(30).optional().describe(autoDeliverDaysDescription),
5642
5657
  autoConfirmDays: z.number().int().min(0).max(30).optional().describe(autoConfirmDaysDescription),
5643
5658
  refundPolicy: refundPolicyPatchSchema.optional().describe("상점 기본 환불 정책 — 준 항목만 바꾼다. 상품별 정책(`products.refundPolicy`)이 없는 상품에 적용된다"),
@@ -5664,6 +5679,7 @@ const storeSchema = z.object({
5664
5679
  analyticsAllowedOrigins: z.array(z.string()).describe("방문 분석 수집을 받는 스토어프론트 오리진. 비어 있으면 모든 오리진에서 받는다"),
5665
5680
  storefrontOrigins: z.array(z.string()).describe("스토어프론트 도메인 — 소셜 로그인 리디렉트와 방문 분석 수집이 함께 쓴다(`analyticsAllowedOrigins`와 같은 값)"),
5666
5681
  guestCheckoutEnabled: z.boolean().describe("비회원 주문 허용. false면 회원만 주문할 수 있다"),
5682
+ testOrderReviewsAllowed: z.boolean().optional().default(false).describe("테스트 결제(샌드박스) 주문의 리뷰 허용. 서버는 항상 싣는다"),
5667
5683
  autoDeliverDays: z.number().int().describe(autoDeliverDaysDescription),
5668
5684
  autoConfirmDays: z.number().int().describe(autoConfirmDaysDescription),
5669
5685
  refundPolicy: refundPolicySchema.describe("상점 기본 환불 정책. 상점이 정하지 않은 항목은 플랫폼 기본값으로 채워 항상 전부 싣는다"),
@@ -7045,6 +7061,8 @@ function createStoreClient(options) {
7045
7061
  }),
7046
7062
  hold: (orderItemId, body) => storeHttp.requestVoid("POST", path`/order-items/${orderItemId}/hold`, { body: holdOrderItemRequestSchema.parse(body) }),
7047
7063
  releaseHold: (orderItemId) => storeHttp.requestVoid("DELETE", path`/order-items/${orderItemId}/hold`),
7064
+ /** 판매자 취소 미리보기(#115) — 취소하면 돌려줄 현금·적립금. 생략한 수량은 남은 수량 전체다 */
7065
+ cancelPreview: (orderItemId, quantity) => storeHttp.request("GET", path`/order-items/${orderItemId}/cancel-preview`, sellerCancelPreviewSchema, { query: quantity ? { quantity } : {} }),
7048
7066
  cancelBySeller: (orderItemId, body, idempotencyKey) => storeHttp.request("POST", path`/order-items/${orderItemId}/cancel`, cancelBySellerResultSchema, {
7049
7067
  body: cancelBySellerRequestSchema.parse(body),
7050
7068
  headers: idempotency(idempotencyKey)
@@ -8280,4 +8298,4 @@ function createStoreSession(options) {
8280
8298
  };
8281
8299
  }
8282
8300
  //#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 };
8301
+ 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sayren/store-sdk",
3
- "version": "0.30.6",
3
+ "version": "0.30.8",
4
4
  "main": "./dist/index.mjs",
5
5
  "types": "./dist/index.d.mts",
6
6
  "exports": {
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("흐름 설정 `requires`(progression·fulfillmentMethods). 없으면 프리셋의 설정"),
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)와 행동 입력 칸 `actionInputs`"),
352
+ .describe("흐름 설정 `requires`(progression·groupClaim·fulfillmentMethods)"),
339
353
  variables: z
340
354
  .record(z.string(), z.unknown())
341
355
  .optional()
@@ -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(),
@@ -260,6 +260,12 @@ export const updateStoreRequestSchema = z
260
260
  "비회원 주문 허용. false(회원만)면 로그인하지 않은 구매자의 주문서 생성·결제 요청이 403 `GUEST_CHECKOUT_DISABLED`다. " +
261
261
  "장바구니 담기와 이미 받은 비회원 주문의 조회·취소는 막지 않는다",
262
262
  ),
263
+ testOrderReviewsAllowed: z
264
+ .boolean()
265
+ .optional()
266
+ .describe(
267
+ "테스트 결제(샌드박스) 주문의 리뷰 허용. 기본 false — 돈을 내지 않은 주문으로 구매 인증 리뷰가 쌓이지 않게 막는다",
268
+ ),
263
269
  autoDeliverDays: z
264
270
  .number()
265
271
  .int()
@@ -326,6 +332,11 @@ export const storeSchema = z.object({
326
332
  "스토어프론트 도메인 — 소셜 로그인 리디렉트와 방문 분석 수집이 함께 쓴다(`analyticsAllowedOrigins`와 같은 값)",
327
333
  ),
328
334
  guestCheckoutEnabled: z.boolean().describe("비회원 주문 허용. false면 회원만 주문할 수 있다"),
335
+ testOrderReviewsAllowed: z
336
+ .boolean()
337
+ .optional()
338
+ .default(false)
339
+ .describe("테스트 결제(샌드박스) 주문의 리뷰 허용. 서버는 항상 싣는다"),
329
340
  autoDeliverDays: z.number().int().describe(autoDeliverDaysDescription),
330
341
  autoConfirmDays: z.number().int().describe(autoConfirmDaysDescription),
331
342
  refundPolicy: refundPolicySchema.describe(