@sayren/store-sdk 0.29.2 → 0.29.4

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
@@ -213,11 +213,11 @@ export declare const writeDryRunResultSchema: z.ZodObject<{
213
213
  }, z.core.$strip>;
214
214
  export type WriteDryRunResult = z.infer<typeof writeDryRunResultSchema>;
215
215
  export declare const approvalStatusSchema: z.ZodEnum<{
216
- UNKNOWN: "UNKNOWN";
217
216
  PENDING: "PENDING";
218
217
  FAILED: "FAILED";
219
218
  SUCCEEDED: "SUCCEEDED";
220
219
  EXECUTING: "EXECUTING";
220
+ UNKNOWN: "UNKNOWN";
221
221
  REJECTED: "REJECTED";
222
222
  EXPIRED: "EXPIRED";
223
223
  }>;
@@ -225,11 +225,11 @@ export type ApprovalStatus = z.infer<typeof approvalStatusSchema>;
225
225
  export declare const approvalRequestSchema: z.ZodObject<{
226
226
  approvalId: z.ZodString;
227
227
  status: z.ZodEnum<{
228
- UNKNOWN: "UNKNOWN";
229
228
  PENDING: "PENDING";
230
229
  FAILED: "FAILED";
231
230
  SUCCEEDED: "SUCCEEDED";
232
231
  EXECUTING: "EXECUTING";
232
+ UNKNOWN: "UNKNOWN";
233
233
  REJECTED: "REJECTED";
234
234
  EXPIRED: "EXPIRED";
235
235
  }>;
@@ -287,11 +287,11 @@ export declare const approvalRequestSchema: z.ZodObject<{
287
287
  export type ApprovalRequest = z.infer<typeof approvalRequestSchema>;
288
288
  export declare const approvalListQuerySchema: z.ZodObject<{
289
289
  status: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodEnum<{
290
- UNKNOWN: "UNKNOWN";
291
290
  PENDING: "PENDING";
292
291
  FAILED: "FAILED";
293
292
  SUCCEEDED: "SUCCEEDED";
294
293
  EXECUTING: "EXECUTING";
294
+ UNKNOWN: "UNKNOWN";
295
295
  REJECTED: "REJECTED";
296
296
  EXPIRED: "EXPIRED";
297
297
  }>>>>;
@@ -306,11 +306,11 @@ export declare const approvalPageSchema: z.ZodObject<{
306
306
  items: z.ZodArray<z.ZodObject<{
307
307
  approvalId: z.ZodString;
308
308
  status: z.ZodEnum<{
309
- UNKNOWN: "UNKNOWN";
310
309
  PENDING: "PENDING";
311
310
  FAILED: "FAILED";
312
311
  SUCCEEDED: "SUCCEEDED";
313
312
  EXECUTING: "EXECUTING";
313
+ UNKNOWN: "UNKNOWN";
314
314
  REJECTED: "REJECTED";
315
315
  EXPIRED: "EXPIRED";
316
316
  }>;
@@ -448,11 +448,11 @@ export declare const analyticsTotalsSchema: z.ZodObject<{
448
448
  export type AnalyticsTotals = z.infer<typeof analyticsTotalsSchema>;
449
449
  export declare const analyticsFunnelStepSchema: z.ZodObject<{
450
450
  step: z.ZodEnum<{
451
+ PURCHASE: "PURCHASE";
451
452
  SESSION: "SESSION";
452
453
  PRODUCT_VIEW: "PRODUCT_VIEW";
453
454
  ADD_TO_CART: "ADD_TO_CART";
454
455
  BEGIN_CHECKOUT: "BEGIN_CHECKOUT";
455
- PURCHASE: "PURCHASE";
456
456
  }>;
457
457
  sessions: z.ZodNumber;
458
458
  rateFromPrevious: z.ZodNullable<z.ZodNumber>;
@@ -477,11 +477,11 @@ export declare const analyticsOverviewSchema: z.ZodObject<{
477
477
  }, z.core.$strip>;
478
478
  funnel: z.ZodArray<z.ZodObject<{
479
479
  step: z.ZodEnum<{
480
+ PURCHASE: "PURCHASE";
480
481
  SESSION: "SESSION";
481
482
  PRODUCT_VIEW: "PRODUCT_VIEW";
482
483
  ADD_TO_CART: "ADD_TO_CART";
483
484
  BEGIN_CHECKOUT: "BEGIN_CHECKOUT";
484
- PURCHASE: "PURCHASE";
485
485
  }>;
486
486
  sessions: z.ZodNumber;
487
487
  rateFromPrevious: z.ZodNullable<z.ZodNumber>;
@@ -581,20 +581,20 @@ export declare const analyticsProductsSchema: z.ZodObject<{
581
581
  }, z.core.$strip>;
582
582
  export type AnalyticsProducts = z.infer<typeof analyticsProductsSchema>;
583
583
  export declare const analyticsChannelSchema: z.ZodEnum<{
584
+ PAID: "PAID";
584
585
  DIRECT: "DIRECT";
586
+ CAMPAIGN: "CAMPAIGN";
587
+ UNKNOWN: "UNKNOWN";
585
588
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
586
589
  SOCIAL: "SOCIAL";
587
- PAID: "PAID";
588
590
  EMAIL: "EMAIL";
589
- CAMPAIGN: "CAMPAIGN";
590
591
  REFERRAL: "REFERRAL";
591
- UNKNOWN: "UNKNOWN";
592
592
  }>;
593
593
  export type AnalyticsChannel = z.infer<typeof analyticsChannelSchema>;
594
594
  export declare const analyticsSourceGroupBySchema: z.ZodEnum<{
595
- CAMPAIGN: "CAMPAIGN";
596
595
  CHANNEL: "CHANNEL";
597
596
  SOURCE: "SOURCE";
597
+ CAMPAIGN: "CAMPAIGN";
598
598
  DEVICE: "DEVICE";
599
599
  }>;
600
600
  export type AnalyticsSourceGroupBy = z.infer<typeof analyticsSourceGroupBySchema>;
@@ -606,23 +606,23 @@ export declare const analyticsSourcesQuerySchema: z.ZodObject<{
606
606
  false: "false";
607
607
  }>>;
608
608
  groupBy: z.ZodOptional<z.ZodEnum<{
609
- CAMPAIGN: "CAMPAIGN";
610
609
  CHANNEL: "CHANNEL";
611
610
  SOURCE: "SOURCE";
611
+ CAMPAIGN: "CAMPAIGN";
612
612
  DEVICE: "DEVICE";
613
613
  }>>;
614
614
  }, z.core.$strip>;
615
615
  export type AnalyticsSourcesParams = z.infer<typeof analyticsSourcesQuerySchema>;
616
616
  export declare const analyticsSourceRowSchema: z.ZodObject<{
617
617
  channel: z.ZodNullable<z.ZodEnum<{
618
+ PAID: "PAID";
618
619
  DIRECT: "DIRECT";
620
+ CAMPAIGN: "CAMPAIGN";
621
+ UNKNOWN: "UNKNOWN";
619
622
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
620
623
  SOCIAL: "SOCIAL";
621
- PAID: "PAID";
622
624
  EMAIL: "EMAIL";
623
- CAMPAIGN: "CAMPAIGN";
624
625
  REFERRAL: "REFERRAL";
625
- UNKNOWN: "UNKNOWN";
626
626
  }>>;
627
627
  source: z.ZodNullable<z.ZodString>;
628
628
  medium: z.ZodNullable<z.ZodString>;
@@ -644,21 +644,21 @@ export declare const analyticsSourceRowSchema: z.ZodObject<{
644
644
  export type AnalyticsSourceRow = z.infer<typeof analyticsSourceRowSchema>;
645
645
  export declare const analyticsSourcesSchema: z.ZodObject<{
646
646
  groupBy: z.ZodEnum<{
647
- CAMPAIGN: "CAMPAIGN";
648
647
  CHANNEL: "CHANNEL";
649
648
  SOURCE: "SOURCE";
649
+ CAMPAIGN: "CAMPAIGN";
650
650
  DEVICE: "DEVICE";
651
651
  }>;
652
652
  rows: z.ZodArray<z.ZodObject<{
653
653
  channel: z.ZodNullable<z.ZodEnum<{
654
+ PAID: "PAID";
654
655
  DIRECT: "DIRECT";
656
+ CAMPAIGN: "CAMPAIGN";
657
+ UNKNOWN: "UNKNOWN";
655
658
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
656
659
  SOCIAL: "SOCIAL";
657
- PAID: "PAID";
658
660
  EMAIL: "EMAIL";
659
- CAMPAIGN: "CAMPAIGN";
660
661
  REFERRAL: "REFERRAL";
661
- UNKNOWN: "UNKNOWN";
662
662
  }>>;
663
663
  source: z.ZodNullable<z.ZodString>;
664
664
  medium: z.ZodNullable<z.ZodString>;
@@ -807,12 +807,12 @@ export declare const analyticsSearchSchema: z.ZodObject<{
807
807
  }, z.core.$strip>;
808
808
  export type AnalyticsSearch = z.infer<typeof analyticsSearchSchema>;
809
809
  export declare const analyticsCheckoutOutcomeSchema: z.ZodEnum<{
810
+ OTHER: "OTHER";
810
811
  COMPLETED: "COMPLETED";
811
812
  NOT_OPENED: "NOT_OPENED";
812
813
  USER_CANCELED: "USER_CANCELED";
813
814
  DECLINED: "DECLINED";
814
815
  PREPARE_FAILURE: "PREPARE_FAILURE";
815
- OTHER: "OTHER";
816
816
  IN_PROGRESS: "IN_PROGRESS";
817
817
  }>;
818
818
  export type AnalyticsCheckoutOutcome = z.infer<typeof analyticsCheckoutOutcomeSchema>;
@@ -820,12 +820,12 @@ export declare const analyticsCheckoutSchema: z.ZodObject<{
820
820
  sessions: z.ZodNumber;
821
821
  outcomes: z.ZodArray<z.ZodObject<{
822
822
  outcome: z.ZodEnum<{
823
+ OTHER: "OTHER";
823
824
  COMPLETED: "COMPLETED";
824
825
  NOT_OPENED: "NOT_OPENED";
825
826
  USER_CANCELED: "USER_CANCELED";
826
827
  DECLINED: "DECLINED";
827
828
  PREPARE_FAILURE: "PREPARE_FAILURE";
828
- OTHER: "OTHER";
829
829
  IN_PROGRESS: "IN_PROGRESS";
830
830
  }>;
831
831
  sessions: z.ZodNumber;
@@ -966,11 +966,11 @@ export type ApiLogSummary = z.infer<typeof apiLogSummarySchema>;
966
966
  //#endregion
967
967
  //#region src/schemas/category.d.ts
968
968
  export declare const categoryProductSortSchema: z.ZodEnum<{
969
- NAME: "NAME";
970
969
  RECENT: "RECENT";
971
970
  POPULAR: "POPULAR";
972
971
  PRICE_LOW: "PRICE_LOW";
973
972
  PRICE_HIGH: "PRICE_HIGH";
973
+ NAME: "NAME";
974
974
  }>;
975
975
  export type CategoryProductSort = z.infer<typeof categoryProductSortSchema>;
976
976
  export declare const categorySchema: z.ZodObject<{
@@ -986,11 +986,11 @@ export declare const categorySchema: z.ZodObject<{
986
986
  showPc: z.ZodBoolean;
987
987
  showMobile: z.ZodBoolean;
988
988
  productSort: z.ZodEnum<{
989
- NAME: "NAME";
990
989
  RECENT: "RECENT";
991
990
  POPULAR: "POPULAR";
992
991
  PRICE_LOW: "PRICE_LOW";
993
992
  PRICE_HIGH: "PRICE_HIGH";
993
+ NAME: "NAME";
994
994
  }>;
995
995
  metaTitle: z.ZodNullable<z.ZodString>;
996
996
  metaDescription: z.ZodNullable<z.ZodString>;
@@ -1016,11 +1016,11 @@ export declare const categoryWithPathSchema: z.ZodObject<{
1016
1016
  showPc: z.ZodBoolean;
1017
1017
  showMobile: z.ZodBoolean;
1018
1018
  productSort: z.ZodEnum<{
1019
- NAME: "NAME";
1020
1019
  RECENT: "RECENT";
1021
1020
  POPULAR: "POPULAR";
1022
1021
  PRICE_LOW: "PRICE_LOW";
1023
1022
  PRICE_HIGH: "PRICE_HIGH";
1023
+ NAME: "NAME";
1024
1024
  }>;
1025
1025
  metaTitle: z.ZodNullable<z.ZodString>;
1026
1026
  metaDescription: z.ZodNullable<z.ZodString>;
@@ -1041,11 +1041,11 @@ export declare const categoryWithPathSchema: z.ZodObject<{
1041
1041
  showPc: z.ZodBoolean;
1042
1042
  showMobile: z.ZodBoolean;
1043
1043
  productSort: z.ZodEnum<{
1044
- NAME: "NAME";
1045
1044
  RECENT: "RECENT";
1046
1045
  POPULAR: "POPULAR";
1047
1046
  PRICE_LOW: "PRICE_LOW";
1048
1047
  PRICE_HIGH: "PRICE_HIGH";
1048
+ NAME: "NAME";
1049
1049
  }>;
1050
1050
  metaTitle: z.ZodNullable<z.ZodString>;
1051
1051
  metaDescription: z.ZodNullable<z.ZodString>;
@@ -1069,11 +1069,11 @@ export declare const categorySearchResultSchema: z.ZodObject<{
1069
1069
  showPc: z.ZodBoolean;
1070
1070
  showMobile: z.ZodBoolean;
1071
1071
  productSort: z.ZodEnum<{
1072
- NAME: "NAME";
1073
1072
  RECENT: "RECENT";
1074
1073
  POPULAR: "POPULAR";
1075
1074
  PRICE_LOW: "PRICE_LOW";
1076
1075
  PRICE_HIGH: "PRICE_HIGH";
1076
+ NAME: "NAME";
1077
1077
  }>;
1078
1078
  metaTitle: z.ZodNullable<z.ZodString>;
1079
1079
  metaDescription: z.ZodNullable<z.ZodString>;
@@ -1094,11 +1094,11 @@ export declare const categorySearchResultSchema: z.ZodObject<{
1094
1094
  showPc: z.ZodBoolean;
1095
1095
  showMobile: z.ZodBoolean;
1096
1096
  productSort: z.ZodEnum<{
1097
- NAME: "NAME";
1098
1097
  RECENT: "RECENT";
1099
1098
  POPULAR: "POPULAR";
1100
1099
  PRICE_LOW: "PRICE_LOW";
1101
1100
  PRICE_HIGH: "PRICE_HIGH";
1101
+ NAME: "NAME";
1102
1102
  }>;
1103
1103
  metaTitle: z.ZodNullable<z.ZodString>;
1104
1104
  metaDescription: z.ZodNullable<z.ZodString>;
@@ -1130,11 +1130,11 @@ export declare const categoryCreateRequestSchema: z.ZodObject<{
1130
1130
  showPc: z.ZodOptional<z.ZodBoolean>;
1131
1131
  showMobile: z.ZodOptional<z.ZodBoolean>;
1132
1132
  productSort: z.ZodOptional<z.ZodEnum<{
1133
- NAME: "NAME";
1134
1133
  RECENT: "RECENT";
1135
1134
  POPULAR: "POPULAR";
1136
1135
  PRICE_LOW: "PRICE_LOW";
1137
1136
  PRICE_HIGH: "PRICE_HIGH";
1137
+ NAME: "NAME";
1138
1138
  }>>;
1139
1139
  metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1140
1140
  metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1149,11 +1149,11 @@ export declare const categoryPatchRequestSchema: z.ZodObject<{
1149
1149
  showPc: z.ZodOptional<z.ZodBoolean>;
1150
1150
  showMobile: z.ZodOptional<z.ZodBoolean>;
1151
1151
  productSort: z.ZodOptional<z.ZodEnum<{
1152
- NAME: "NAME";
1153
1152
  RECENT: "RECENT";
1154
1153
  POPULAR: "POPULAR";
1155
1154
  PRICE_LOW: "PRICE_LOW";
1156
1155
  PRICE_HIGH: "PRICE_HIGH";
1156
+ NAME: "NAME";
1157
1157
  }>>;
1158
1158
  metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1159
1159
  metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -1264,7 +1264,6 @@ export declare const claimTypeSchema: z.ZodEnum<{
1264
1264
  }>;
1265
1265
  export type ClaimType = z.infer<typeof claimTypeSchema>;
1266
1266
  export declare const claimStatusSchema: z.ZodEnum<{
1267
- COMPLETED: "COMPLETED";
1268
1267
  REJECTED: "REJECTED";
1269
1268
  REQUESTED: "REQUESTED";
1270
1269
  HELD: "HELD";
@@ -1272,6 +1271,7 @@ export declare const claimStatusSchema: z.ZodEnum<{
1272
1271
  COLLECTED: "COLLECTED";
1273
1272
  REDELIVERING: "REDELIVERING";
1274
1273
  APPROVED: "APPROVED";
1274
+ COMPLETED: "COMPLETED";
1275
1275
  WITHDRAWN: "WITHDRAWN";
1276
1276
  }>;
1277
1277
  export type ClaimStatus = z.infer<typeof claimStatusSchema>;
@@ -1308,7 +1308,6 @@ export declare const claimSchema: z.ZodObject<{
1308
1308
  CANCEL: "CANCEL";
1309
1309
  }>;
1310
1310
  status: z.ZodEnum<{
1311
- COMPLETED: "COMPLETED";
1312
1311
  REJECTED: "REJECTED";
1313
1312
  REQUESTED: "REQUESTED";
1314
1313
  HELD: "HELD";
@@ -1316,6 +1315,7 @@ export declare const claimSchema: z.ZodObject<{
1316
1315
  COLLECTED: "COLLECTED";
1317
1316
  REDELIVERING: "REDELIVERING";
1318
1317
  APPROVED: "APPROVED";
1318
+ COMPLETED: "COMPLETED";
1319
1319
  WITHDRAWN: "WITHDRAWN";
1320
1320
  }>;
1321
1321
  orderId: z.ZodString;
@@ -1338,6 +1338,7 @@ export declare const claimSchema: z.ZodObject<{
1338
1338
  claimDeliveryFee: z.ZodNumber;
1339
1339
  expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
1340
1340
  expectedDeliveryFeeRefundAmount: z.ZodNullable<z.ZodNumber>;
1341
+ expectedPointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1341
1342
  exchangeOption: z.ZodNullable<z.ZodObject<{
1342
1343
  optionId: z.ZodString;
1343
1344
  optionName: z.ZodString;
@@ -1396,7 +1397,6 @@ export declare const claimDetailSchema: z.ZodObject<{
1396
1397
  CANCEL: "CANCEL";
1397
1398
  }>;
1398
1399
  status: z.ZodEnum<{
1399
- COMPLETED: "COMPLETED";
1400
1400
  REJECTED: "REJECTED";
1401
1401
  REQUESTED: "REQUESTED";
1402
1402
  HELD: "HELD";
@@ -1404,6 +1404,7 @@ export declare const claimDetailSchema: z.ZodObject<{
1404
1404
  COLLECTED: "COLLECTED";
1405
1405
  REDELIVERING: "REDELIVERING";
1406
1406
  APPROVED: "APPROVED";
1407
+ COMPLETED: "COMPLETED";
1407
1408
  WITHDRAWN: "WITHDRAWN";
1408
1409
  }>;
1409
1410
  orderId: z.ZodString;
@@ -1426,6 +1427,7 @@ export declare const claimDetailSchema: z.ZodObject<{
1426
1427
  claimDeliveryFee: z.ZodNumber;
1427
1428
  expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
1428
1429
  expectedDeliveryFeeRefundAmount: z.ZodNullable<z.ZodNumber>;
1430
+ expectedPointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1429
1431
  exchangeOption: z.ZodNullable<z.ZodObject<{
1430
1432
  optionId: z.ZodString;
1431
1433
  optionName: z.ZodString;
@@ -1453,7 +1455,6 @@ export declare const claimDetailSchema: z.ZodObject<{
1453
1455
  }, z.core.$strip>>;
1454
1456
  histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
1455
1457
  status: z.ZodEnum<{
1456
- COMPLETED: "COMPLETED";
1457
1458
  REJECTED: "REJECTED";
1458
1459
  REQUESTED: "REQUESTED";
1459
1460
  HELD: "HELD";
@@ -1461,6 +1462,7 @@ export declare const claimDetailSchema: z.ZodObject<{
1461
1462
  COLLECTED: "COLLECTED";
1462
1463
  REDELIVERING: "REDELIVERING";
1463
1464
  APPROVED: "APPROVED";
1465
+ COMPLETED: "COMPLETED";
1464
1466
  WITHDRAWN: "WITHDRAWN";
1465
1467
  }>;
1466
1468
  actor: z.ZodEnum<{
@@ -1499,6 +1501,7 @@ export declare const approveClaimResultSchema: z.ZodObject<{
1499
1501
  deliveryFeeChargeAmount: z.ZodNumber;
1500
1502
  couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1501
1503
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1504
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
1502
1505
  refundedAt: z.ZodString;
1503
1506
  }, z.core.$strip>;
1504
1507
  export type ApproveClaimResult = z.infer<typeof approveClaimResultSchema>;
@@ -1527,7 +1530,7 @@ export declare const COLLECTION_SLUG_PATTERN: RegExp;
1527
1530
  export declare const COLLECTION_TYPES: readonly ["MANUAL", "AUTOMATIC"];
1528
1531
  export type CollectionType = (typeof COLLECTION_TYPES)[number];
1529
1532
  /**
1530
- * 상품 정렬 — `MANUAL`은 직접 정한 순서(직접 선택 컬렉션만)다. `BEST_SELLING`(판매량순)은 판매량 집계가 열릴 때 받는다.
1533
+ * 상품 정렬 — `MANUAL`은 직접 정한 순서(직접 선택 컬렉션만)다. `BEST_SELLING`(판매량순)은 판매 수량이 많은 순이다(M3).
1531
1534
  * 저장 값 전체 목록이고, 쓰기에서 받는 값은 `collectionProductSortRequestSchema`다.
1532
1535
  */
1533
1536
  export declare const COLLECTION_PRODUCT_SORTS: readonly ["MANUAL", "LATEST", "BEST_SELLING", "PRICE_ASC", "PRICE_DESC", "REVIEW_COUNT", "RATING_DESC", "RECOMMEND"];
@@ -1537,6 +1540,7 @@ export declare const collectionProductSortRequestSchema: z.ZodEnum<{
1537
1540
  PRICE_DESC: "PRICE_DESC";
1538
1541
  MANUAL: "MANUAL";
1539
1542
  LATEST: "LATEST";
1543
+ BEST_SELLING: "BEST_SELLING";
1540
1544
  REVIEW_COUNT: "REVIEW_COUNT";
1541
1545
  RATING_DESC: "RATING_DESC";
1542
1546
  RECOMMEND: "RECOMMEND";
@@ -1563,9 +1567,17 @@ export declare const MAX_COLLECTION_RULE_CATEGORIES = 20;
1563
1567
  export declare const MAX_COLLECTION_CREATED_WITHIN_DAYS = 365;
1564
1568
  /** 미리보기(`POST /v1/collections/preview`)가 싣는 상품 최대 개수 */
1565
1569
  export declare const COLLECTION_PREVIEW_SIZE = 20;
1570
+ /** 판매량 상위 조건의 기간 선택지(일, 오늘 포함 한국 날짜) */
1571
+ export declare const COLLECTION_BEST_SELLING_DAYS: readonly [7, 30, 90];
1572
+ export type CollectionBestSellingDays = (typeof COLLECTION_BEST_SELLING_DAYS)[number];
1573
+ /** 판매량 상위 조건이 담는 상품 최대 개수 */
1574
+ export declare const MAX_COLLECTION_BEST_SELLING_TOP = 100;
1575
+ /** 판매량순(`BEST_SELLING`) 정렬의 기간 — 판매량 상위 조건이 없을 때 쓴다 */
1576
+ export declare const COLLECTION_SALES_SORT_DEFAULT_DAYS: CollectionBestSellingDays;
1566
1577
  /**
1567
1578
  * 조건 하나 — `field`로 가른다. 가격은 즉시할인을 반영한 판매가(`discountedPrice ?? salePrice`)다.
1568
- * 판매량 상위(`bestSelling`)는 판매량 집계가 열릴 때 더한다.
1579
+ * 판매량 상위(`bestSelling`)는 술어가 아니라 순위 자르기다. 다른 조건을 모두 만족한 상품 중 판매 수량 상위 N개만 남긴다(`rankBestSelling`).
1580
+ * 판매 수량은 실결제 주문의 결제 수량에서 취소·반품 수량을 뺀 값이고, 날짜는 주문 시각의 한국 날짜다. 집계는 최대 10분 늦다.
1569
1581
  */
1570
1582
  export declare const collectionRuleSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1571
1583
  field: z.ZodLiteral<"createdWithinDays">;
@@ -1580,6 +1592,10 @@ export declare const collectionRuleSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
1580
1592
  }, z.core.$strip>, z.ZodObject<{
1581
1593
  field: z.ZodLiteral<"discounted">;
1582
1594
  value: z.ZodLiteral<true>;
1595
+ }, z.core.$strip>, z.ZodObject<{
1596
+ field: z.ZodLiteral<"bestSelling">;
1597
+ days: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>;
1598
+ top: z.ZodNumber;
1583
1599
  }, z.core.$strip>], "field">;
1584
1600
  export type CollectionRule = z.infer<typeof collectionRuleSchema>;
1585
1601
  export type CollectionRuleField = CollectionRule["field"];
@@ -1597,6 +1613,10 @@ export declare const collectionRulesSchema: z.ZodArray<z.ZodDiscriminatedUnion<[
1597
1613
  }, z.core.$strip>, z.ZodObject<{
1598
1614
  field: z.ZodLiteral<"discounted">;
1599
1615
  value: z.ZodLiteral<true>;
1616
+ }, z.core.$strip>, z.ZodObject<{
1617
+ field: z.ZodLiteral<"bestSelling">;
1618
+ days: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>;
1619
+ top: z.ZodNumber;
1600
1620
  }, z.core.$strip>], "field">>;
1601
1621
  /**
1602
1622
  * 응답의 조건 — 이 SDK가 아는 조건이거나 뒤에 더해질 조건(`field`만 확인한다)이다. 새 조건이 생겨도 옛 SDK의 응답 검증이 깨지지 않는다.
@@ -1614,6 +1634,10 @@ export declare const collectionRuleViewSchema: z.ZodUnion<readonly [z.ZodObject<
1614
1634
  }, z.core.$strip>, z.ZodObject<{
1615
1635
  field: z.ZodLiteral<"discounted">;
1616
1636
  value: z.ZodLiteral<true>;
1637
+ }, z.core.$strip>, z.ZodObject<{
1638
+ field: z.ZodLiteral<"bestSelling">;
1639
+ days: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>;
1640
+ top: z.ZodNumber;
1617
1641
  }, z.core.$strip>, z.ZodObject<{
1618
1642
  field: z.ZodString;
1619
1643
  }, z.core.$loose>]>;
@@ -1640,11 +1664,33 @@ export declare function descendantCategoryIdsOf(roots: readonly string[], catego
1640
1664
  /**
1641
1665
  * 조건 판정 함수를 만든다 — 모든 조건을 만족해야 true다(AND). 카테고리 트리는 여기서 한 번만 푼다.
1642
1666
  * 알 수 없는 조건(`field`)은 만족하지 않는 것으로 본다. 모르는 조건을 건너뛰면 상품이 예고 없이 늘어난다.
1667
+ * 판매량 상위(`bestSelling`)는 여기서 모두 통과시킨다. 순위 자르기는 판매량을 아는 호출부가 `rankBestSelling`으로 한다.
1643
1668
  * 판매 상태는 보지 않는다. 판매 중만 거르는 것은 호출부다.
1644
1669
  */
1645
1670
  export declare function collectionRulesPredicate(rules: readonly CollectionRuleView[], context: CollectionRuleContext): (product: CollectionRuleProduct) => boolean;
1646
1671
  /** 상품 하나가 조건을 모두 만족하는가 — 여러 상품을 판정할 때는 `collectionRulesPredicate`를 한 번 만들어 쓴다 */
1647
1672
  export declare function matchesCollectionRules(product: CollectionRuleProduct, rules: readonly CollectionRuleView[], context: CollectionRuleContext): boolean;
1673
+ /** 판매량 상위 조건 — 없으면 null. 같은 조건은 한 번만 쓰므로 첫 번째다 */
1674
+ export declare function bestSellingRuleOf(rules: readonly CollectionRuleView[]): {
1675
+ days: CollectionBestSellingDays;
1676
+ top: number;
1677
+ } | null;
1678
+ /**
1679
+ * 판매량 비교 — 판매 수량이 많은 순, 같으면 최근 등록 순, 그것도 같으면 상품 id 순이다. 결과가 입력 순서에 기대지 않는다.
1680
+ * `sales`에 없는 상품은 0개다.
1681
+ */
1682
+ export declare function compareBySales<T extends {
1683
+ productId: string;
1684
+ createdAt: string;
1685
+ }>(sales: ReadonlyMap<string, number>): (a: T, b: T) => number;
1686
+ /**
1687
+ * 판매량 상위 자르기 — 다른 조건을 통과한 상품 중 판매 수량이 1개 이상인 상품을 `compareBySales` 순으로 `top`개 남긴다.
1688
+ * 판매가 없는 상품은 넣지 않는다.
1689
+ */
1690
+ export declare function rankBestSelling<T extends {
1691
+ productId: string;
1692
+ createdAt: string;
1693
+ }>(products: readonly T[], sales: ReadonlyMap<string, number>, top: number): T[];
1648
1694
  /** 조건이 참조하는 카테고리 id — 카테고리 삭제의 참조 검사에 쓴다 */
1649
1695
  export declare function collectionRuleCategoryIds(rules: readonly CollectionRuleView[]): string[];
1650
1696
  export declare const collectionSchema: z.ZodObject<{
@@ -1668,6 +1714,10 @@ export declare const collectionSchema: z.ZodObject<{
1668
1714
  }, z.core.$strip>, z.ZodObject<{
1669
1715
  field: z.ZodLiteral<"discounted">;
1670
1716
  value: z.ZodLiteral<true>;
1717
+ }, z.core.$strip>, z.ZodObject<{
1718
+ field: z.ZodLiteral<"bestSelling">;
1719
+ days: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>;
1720
+ top: z.ZodNumber;
1671
1721
  }, z.core.$strip>, z.ZodObject<{
1672
1722
  field: z.ZodString;
1673
1723
  }, z.core.$loose>]>>>;
@@ -1683,6 +1733,7 @@ export declare const collectionSchema: z.ZodObject<{
1683
1733
  SCHEDULED: "SCHEDULED";
1684
1734
  HIDDEN: "HIDDEN";
1685
1735
  }>;
1736
+ salesComputedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1686
1737
  productCount: z.ZodNumber;
1687
1738
  revision: z.ZodNumber;
1688
1739
  createdAt: z.ZodString;
@@ -1692,7 +1743,7 @@ export type Collection = z.infer<typeof collectionSchema>;
1692
1743
  /**
1693
1744
  * `POST /v1/collections` — 컬렉션을 만든다. `slug`를 생략하면 `c-{id 뒤 8자}`로 만든다.
1694
1745
  * 직접 선택(`MANUAL`)은 `productIds`가 처음 담을 상품과 순서다. 조건 자동(`AUTOMATIC`)은 `rules`가 있어야 하고 `productIds`를 받지 않는다.
1695
- * `productSort`를 생략하면 직접 선택은 `MANUAL`, 조건 자동은 `LATEST`다. 조건 자동은 `MANUAL`을 쓸 수 없다.
1746
+ * `productSort`를 생략하면 직접 선택은 `MANUAL`, 조건 자동은 `LATEST`(판매량 상위 조건이 있으면 `BEST_SELLING`)다. 조건 자동은 `MANUAL`을 쓸 수 없다.
1696
1747
  */
1697
1748
  export declare const collectionCreateRequestSchema: z.ZodObject<{
1698
1749
  title: z.ZodString;
@@ -1714,6 +1765,10 @@ export declare const collectionCreateRequestSchema: z.ZodObject<{
1714
1765
  }, z.core.$strip>, z.ZodObject<{
1715
1766
  field: z.ZodLiteral<"discounted">;
1716
1767
  value: z.ZodLiteral<true>;
1768
+ }, z.core.$strip>, z.ZodObject<{
1769
+ field: z.ZodLiteral<"bestSelling">;
1770
+ days: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>;
1771
+ top: z.ZodNumber;
1717
1772
  }, z.core.$strip>], "field">>>;
1718
1773
  description: z.ZodDefault<z.ZodString>;
1719
1774
  imageUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
@@ -1722,6 +1777,7 @@ export declare const collectionCreateRequestSchema: z.ZodObject<{
1722
1777
  PRICE_DESC: "PRICE_DESC";
1723
1778
  MANUAL: "MANUAL";
1724
1779
  LATEST: "LATEST";
1780
+ BEST_SELLING: "BEST_SELLING";
1725
1781
  REVIEW_COUNT: "REVIEW_COUNT";
1726
1782
  RATING_DESC: "RATING_DESC";
1727
1783
  RECOMMEND: "RECOMMEND";
@@ -1757,6 +1813,10 @@ export declare const collectionPatchRequestSchema: z.ZodObject<{
1757
1813
  }, z.core.$strip>, z.ZodObject<{
1758
1814
  field: z.ZodLiteral<"discounted">;
1759
1815
  value: z.ZodLiteral<true>;
1816
+ }, z.core.$strip>, z.ZodObject<{
1817
+ field: z.ZodLiteral<"bestSelling">;
1818
+ days: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>;
1819
+ top: z.ZodNumber;
1760
1820
  }, z.core.$strip>], "field">>>;
1761
1821
  description: z.ZodOptional<z.ZodString>;
1762
1822
  imageUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
@@ -1765,6 +1825,7 @@ export declare const collectionPatchRequestSchema: z.ZodObject<{
1765
1825
  PRICE_DESC: "PRICE_DESC";
1766
1826
  MANUAL: "MANUAL";
1767
1827
  LATEST: "LATEST";
1828
+ BEST_SELLING: "BEST_SELLING";
1768
1829
  REVIEW_COUNT: "REVIEW_COUNT";
1769
1830
  RATING_DESC: "RATING_DESC";
1770
1831
  RECOMMEND: "RECOMMEND";
@@ -1834,6 +1895,10 @@ export declare const collectionPageSchema: z.ZodObject<{
1834
1895
  }, z.core.$strip>, z.ZodObject<{
1835
1896
  field: z.ZodLiteral<"discounted">;
1836
1897
  value: z.ZodLiteral<true>;
1898
+ }, z.core.$strip>, z.ZodObject<{
1899
+ field: z.ZodLiteral<"bestSelling">;
1900
+ days: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>;
1901
+ top: z.ZodNumber;
1837
1902
  }, z.core.$strip>, z.ZodObject<{
1838
1903
  field: z.ZodString;
1839
1904
  }, z.core.$loose>]>>>;
@@ -1849,6 +1914,7 @@ export declare const collectionPageSchema: z.ZodObject<{
1849
1914
  SCHEDULED: "SCHEDULED";
1850
1915
  HIDDEN: "HIDDEN";
1851
1916
  }>;
1917
+ salesComputedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1852
1918
  productCount: z.ZodNumber;
1853
1919
  revision: z.ZodNumber;
1854
1920
  createdAt: z.ZodString;
@@ -1906,12 +1972,17 @@ export declare const collectionPreviewRequestSchema: z.ZodObject<{
1906
1972
  }, z.core.$strip>, z.ZodObject<{
1907
1973
  field: z.ZodLiteral<"discounted">;
1908
1974
  value: z.ZodLiteral<true>;
1975
+ }, z.core.$strip>, z.ZodObject<{
1976
+ field: z.ZodLiteral<"bestSelling">;
1977
+ days: z.ZodUnion<readonly [z.ZodLiteral<7>, z.ZodLiteral<30>, z.ZodLiteral<90>]>;
1978
+ top: z.ZodNumber;
1909
1979
  }, z.core.$strip>], "field">>;
1910
1980
  productSort: z.ZodOptional<z.ZodEnum<{
1911
1981
  PRICE_ASC: "PRICE_ASC";
1912
1982
  PRICE_DESC: "PRICE_DESC";
1913
1983
  MANUAL: "MANUAL";
1914
1984
  LATEST: "LATEST";
1985
+ BEST_SELLING: "BEST_SELLING";
1915
1986
  REVIEW_COUNT: "REVIEW_COUNT";
1916
1987
  RATING_DESC: "RATING_DESC";
1917
1988
  RECOMMEND: "RECOMMEND";
@@ -1930,6 +2001,7 @@ export declare const collectionPreviewSchema: z.ZodObject<{
1930
2001
  position: z.ZodNumber;
1931
2002
  addedAt: z.ZodString;
1932
2003
  }, z.core.$strip>>;
2004
+ salesComputedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1933
2005
  }, z.core.$strip>;
1934
2006
  export type CollectionPreview = z.infer<typeof collectionPreviewSchema>;
1935
2007
  //#endregion
@@ -2523,10 +2595,10 @@ export type CustomerOrder = z.infer<typeof customerOrderSchema>;
2523
2595
  /** `POST /v1/customers/{id}/withdraw` 본문 */
2524
2596
  export declare const withdrawCustomerRequestSchema: z.ZodObject<{
2525
2597
  reason: z.ZodEnum<{
2526
- OTHER: "OTHER";
2527
2598
  BUYER_REQUEST: "BUYER_REQUEST";
2528
2599
  DORMANT: "DORMANT";
2529
2600
  ABUSE: "ABUSE";
2601
+ OTHER: "OTHER";
2530
2602
  }>;
2531
2603
  memo: z.ZodOptional<z.ZodString>;
2532
2604
  }, z.core.$strip>;
@@ -3260,8 +3332,8 @@ export declare function requiresCollection(type: string | null | undefined): boo
3260
3332
  export declare const NO_SHIPPING_BUNDLE_KEY = "none";
3261
3333
  /** 배송비 유형 — 무료·유료·조건부 무료 */
3262
3334
  export declare const deliveryTypeSchema: z.ZodEnum<{
3263
- PAID: "PAID";
3264
3335
  FREE: "FREE";
3336
+ PAID: "PAID";
3265
3337
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
3266
3338
  }>;
3267
3339
  export type DeliveryType = z.infer<typeof deliveryTypeSchema>;
@@ -3272,8 +3344,8 @@ export declare const productFulfillmentCreateSchema: z.ZodDiscriminatedUnion<[z.
3272
3344
  type: z.ZodLiteral<"SHIPPING">;
3273
3345
  shipping: z.ZodOptional<z.ZodObject<{
3274
3346
  deliveryType: z.ZodDefault<z.ZodEnum<{
3275
- PAID: "PAID";
3276
3347
  FREE: "FREE";
3348
+ PAID: "PAID";
3277
3349
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
3278
3350
  }>>;
3279
3351
  deliveryFee: z.ZodOptional<z.ZodNumber>;
@@ -3295,8 +3367,8 @@ export declare const productFulfillmentUpdateSchema: z.ZodDiscriminatedUnion<[z.
3295
3367
  type: z.ZodLiteral<"SHIPPING">;
3296
3368
  shipping: z.ZodObject<{
3297
3369
  deliveryType: z.ZodEnum<{
3298
- PAID: "PAID";
3299
3370
  FREE: "FREE";
3371
+ PAID: "PAID";
3300
3372
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
3301
3373
  }>;
3302
3374
  deliveryFee: z.ZodNumber;
@@ -3316,8 +3388,8 @@ export declare const productFulfillmentSchema: z.ZodDiscriminatedUnion<[z.ZodObj
3316
3388
  type: z.ZodLiteral<"SHIPPING">;
3317
3389
  shipping: z.ZodObject<{
3318
3390
  deliveryType: z.ZodEnum<{
3319
- PAID: "PAID";
3320
3391
  FREE: "FREE";
3392
+ PAID: "PAID";
3321
3393
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
3322
3394
  }>;
3323
3395
  deliveryFee: z.ZodNumber;
@@ -3355,8 +3427,8 @@ export declare const productFulfillmentResponseSchema: z.ZodUnion<readonly [z.Zo
3355
3427
  type: z.ZodLiteral<"SHIPPING">;
3356
3428
  shipping: z.ZodObject<{
3357
3429
  deliveryType: z.ZodEnum<{
3358
- PAID: "PAID";
3359
3430
  FREE: "FREE";
3431
+ PAID: "PAID";
3360
3432
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
3361
3433
  }>;
3362
3434
  deliveryFee: z.ZodNumber;
@@ -3495,6 +3567,7 @@ export declare const orderItemSchema: z.ZodObject<{
3495
3567
  discountAmount: z.ZodNumber;
3496
3568
  totalPrice: z.ZodNumber;
3497
3569
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3570
+ pointAllocation: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3498
3571
  hold: z.ZodNullable<z.ZodObject<{
3499
3572
  reason: z.ZodString;
3500
3573
  expectedDispatchDate: z.ZodString;
@@ -3567,6 +3640,7 @@ export declare const orderSchema: z.ZodObject<{
3567
3640
  discountAmount: z.ZodNumber;
3568
3641
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3569
3642
  deliveryDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3643
+ pointAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3570
3644
  discounts: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
3571
3645
  couponId: z.ZodString;
3572
3646
  name: z.ZodString;
@@ -3654,6 +3728,7 @@ export declare const orderSchema: z.ZodObject<{
3654
3728
  discountAmount: z.ZodNumber;
3655
3729
  totalPrice: z.ZodNumber;
3656
3730
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3731
+ pointAllocation: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3657
3732
  hold: z.ZodNullable<z.ZodObject<{
3658
3733
  reason: z.ZodString;
3659
3734
  expectedDispatchDate: z.ZodString;
@@ -3770,6 +3845,7 @@ export declare const orderItemPageSchema: z.ZodObject<{
3770
3845
  discountAmount: z.ZodNumber;
3771
3846
  totalPrice: z.ZodNumber;
3772
3847
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3848
+ pointAllocation: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3773
3849
  hold: z.ZodNullable<z.ZodObject<{
3774
3850
  reason: z.ZodString;
3775
3851
  expectedDispatchDate: z.ZodString;
@@ -3871,16 +3947,16 @@ export interface OrderItemListParams extends PageParams {
3871
3947
  testPayment?: "true" | "false";
3872
3948
  }
3873
3949
  export declare const deliveryMethodSchema: z.ZodEnum<{
3874
- DIRECT: "DIRECT";
3875
3950
  COURIER: "COURIER";
3951
+ DIRECT: "DIRECT";
3876
3952
  QUICK: "QUICK";
3877
3953
  NOTHING: "NOTHING";
3878
3954
  }>;
3879
3955
  export type DeliveryMethod = z.infer<typeof deliveryMethodSchema>;
3880
3956
  export declare const dispatchRequestSchema: z.ZodObject<{
3881
3957
  deliveryMethod: z.ZodEnum<{
3882
- DIRECT: "DIRECT";
3883
3958
  COURIER: "COURIER";
3959
+ DIRECT: "DIRECT";
3884
3960
  QUICK: "QUICK";
3885
3961
  NOTHING: "NOTHING";
3886
3962
  }>;
@@ -3892,8 +3968,8 @@ export type DispatchRequest = z.infer<typeof dispatchRequestSchema>;
3892
3968
  export declare const deliveryInfoSchema: z.ZodObject<{
3893
3969
  orderItemId: z.ZodString;
3894
3970
  deliveryMethod: z.ZodEnum<{
3895
- DIRECT: "DIRECT";
3896
3971
  COURIER: "COURIER";
3972
+ DIRECT: "DIRECT";
3897
3973
  QUICK: "QUICK";
3898
3974
  NOTHING: "NOTHING";
3899
3975
  }>;
@@ -3919,8 +3995,8 @@ export declare const trackingStageResponseSchema: z.ZodString;
3919
3995
  export declare const deliveryStatusSchema: z.ZodObject<{
3920
3996
  orderItemId: z.ZodString;
3921
3997
  deliveryMethod: z.ZodEnum<{
3922
- DIRECT: "DIRECT";
3923
3998
  COURIER: "COURIER";
3999
+ DIRECT: "DIRECT";
3924
4000
  QUICK: "QUICK";
3925
4001
  NOTHING: "NOTHING";
3926
4002
  }>;
@@ -4008,6 +4084,7 @@ export declare const cancelBySellerResultSchema: z.ZodObject<{
4008
4084
  deliveryFeeChargeAmount: z.ZodNumber;
4009
4085
  couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4010
4086
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4087
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4011
4088
  refundedAt: z.ZodString;
4012
4089
  }, z.core.$strip>;
4013
4090
  export type CancelBySellerResult = z.infer<typeof cancelBySellerResultSchema>;
@@ -4926,6 +5003,7 @@ export type PaymentAttemptRecord = z.infer<typeof paymentAttemptRecordSchema>;
4926
5003
  export declare const paymentRefundRecordSchema: z.ZodObject<{
4927
5004
  refundId: z.ZodString;
4928
5005
  amount: z.ZodNumber;
5006
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
4929
5007
  reason: z.ZodString;
4930
5008
  kind: z.ZodString;
4931
5009
  status: z.ZodString;
@@ -5013,6 +5091,7 @@ export declare const paymentRecordDetailSchema: z.ZodObject<{
5013
5091
  refunds: z.ZodArray<z.ZodObject<{
5014
5092
  refundId: z.ZodString;
5015
5093
  amount: z.ZodNumber;
5094
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
5016
5095
  reason: z.ZodString;
5017
5096
  kind: z.ZodString;
5018
5097
  status: z.ZodString;
@@ -5094,6 +5173,21 @@ export declare const purchaseEarnPolicySchema: z.ZodObject<{
5094
5173
  rateBp: z.ZodNumber;
5095
5174
  }, z.core.$strip>;
5096
5175
  export type PurchaseEarnPolicy = z.infer<typeof purchaseEarnPolicySchema>;
5176
+ /** 사용 단위 — 1·10·100원 */
5177
+ export declare const POINT_USE_UNITS: readonly [1, 10, 100];
5178
+ /**
5179
+ * 적립금 사용 규칙(P3) — 주문서에서 결제 금액을 줄인다. 적용 순서는 즉시할인 → 쿠폰 → 적립금이고, 상품 금액(쿠폰 뒤)에 먼저 쓰고
5180
+ * 남으면 배송비에 쓴다(`includeDeliveryFee`). 결제 금액이 100원 아래로 내려가지 않게 적립금을 줄인다.
5181
+ */
5182
+ export declare const pointUsePolicySchema: z.ZodObject<{
5183
+ enabled: z.ZodBoolean;
5184
+ minBalance: z.ZodNumber;
5185
+ minAmount: z.ZodNumber;
5186
+ unit: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<10>, z.ZodLiteral<100>]>;
5187
+ maxRatioBp: z.ZodNumber;
5188
+ includeDeliveryFee: z.ZodBoolean;
5189
+ }, z.core.$strip>;
5190
+ export type PointUsePolicy = z.infer<typeof pointUsePolicySchema>;
5097
5191
  /** 저장된 상점 정책(`stores.point_policy`) — 해석은 `resolvePointPolicy` */
5098
5192
  export declare const pointPolicySchema: z.ZodObject<{
5099
5193
  reviewReward: z.ZodObject<{
@@ -5105,6 +5199,14 @@ export declare const pointPolicySchema: z.ZodObject<{
5105
5199
  enabled: z.ZodBoolean;
5106
5200
  rateBp: z.ZodNumber;
5107
5201
  }, z.core.$strip>;
5202
+ use: z.ZodObject<{
5203
+ enabled: z.ZodBoolean;
5204
+ minBalance: z.ZodNumber;
5205
+ minAmount: z.ZodNumber;
5206
+ unit: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<10>, z.ZodLiteral<100>]>;
5207
+ maxRatioBp: z.ZodNumber;
5208
+ includeDeliveryFee: z.ZodBoolean;
5209
+ }, z.core.$strip>;
5108
5210
  expiryDays: z.ZodNullable<z.ZodNumber>;
5109
5211
  }, z.core.$strip>;
5110
5212
  export type PointPolicy = z.infer<typeof pointPolicySchema>;
@@ -5137,7 +5239,7 @@ export declare function pointExpiresAtOf(earnedAt: Date, days: number | null): D
5137
5239
  /** 적립 묶음 출처 — 같은 출처 id에는 묶음이 하나뿐이다(DB 부분 유니크) */
5138
5240
  export declare const POINT_LOT_SOURCES: readonly ["REVIEW", "PURCHASE", "ADJUST", "REFUND_RESTORE", "OPENING"];
5139
5241
  export type PointLotSource = (typeof POINT_LOT_SOURCES)[number];
5140
- /** 원장 항목 유형. 지금 쓰는 것은 리뷰 적립·회수이고 나머지는 다음 단계 자리다 */
5242
+ /** 원장 항목 유형 */
5141
5243
  export declare const POINT_ENTRY_TYPES: readonly ["EARN_REVIEW", "REVOKE_REVIEW", "EARN_PURCHASE", "USE_RESERVE", "USE_RELEASE", "REFUND_RESTORE", "EXPIRE", "ADJUST", "OPENING"];
5142
5244
  export type PointEntryType = (typeof POINT_ENTRY_TYPES)[number];
5143
5245
  /** 상점 플랫폼 알림 — `REVIEW_REWARD_PAUSED` 리뷰 자동 적립이 멈춤 · `POINTS_AVAILABLE` 적립금 설정을 쓸 수 있음 */
@@ -5159,6 +5261,15 @@ export declare const storePointPolicySchema: z.ZodObject<{
5159
5261
  enabled: z.ZodBoolean;
5160
5262
  rateBp: z.ZodNumber;
5161
5263
  }, z.core.$strip>;
5264
+ useAvailable: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5265
+ use: z.ZodDefault<z.ZodOptional<z.ZodObject<{
5266
+ enabled: z.ZodBoolean;
5267
+ minBalance: z.ZodNumber;
5268
+ minAmount: z.ZodNumber;
5269
+ unit: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<10>, z.ZodLiteral<100>]>;
5270
+ maxRatioBp: z.ZodNumber;
5271
+ includeDeliveryFee: z.ZodBoolean;
5272
+ }, z.core.$strip>>>;
5162
5273
  expiryDays: z.ZodNullable<z.ZodNumber>;
5163
5274
  notice: z.ZodNullable<z.ZodEnum<{
5164
5275
  REVIEW_REWARD_PAUSED: "REVIEW_REWARD_PAUSED";
@@ -5180,6 +5291,14 @@ export declare const updatePointPolicyRequestSchema: z.ZodObject<{
5180
5291
  enabled: z.ZodBoolean;
5181
5292
  rateBp: z.ZodNumber;
5182
5293
  }, z.core.$strip>>;
5294
+ use: z.ZodOptional<z.ZodObject<{
5295
+ enabled: z.ZodBoolean;
5296
+ minBalance: z.ZodNumber;
5297
+ minAmount: z.ZodNumber;
5298
+ unit: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<10>, z.ZodLiteral<100>]>;
5299
+ maxRatioBp: z.ZodNumber;
5300
+ includeDeliveryFee: z.ZodBoolean;
5301
+ }, z.core.$strip>>;
5183
5302
  expiryDays: z.ZodOptional<z.ZodNumber>;
5184
5303
  }, z.core.$strip>;
5185
5304
  export type UpdatePointPolicyRequest = z.infer<typeof updatePointPolicyRequestSchema>;
@@ -5223,11 +5342,11 @@ export type PointEntry = z.infer<typeof pointEntrySchema>;
5223
5342
  export declare const pointLotSchema: z.ZodObject<{
5224
5343
  lotId: z.ZodString;
5225
5344
  source: z.ZodUnion<readonly [z.ZodEnum<{
5226
- PURCHASE: "PURCHASE";
5227
5345
  REFUND_RESTORE: "REFUND_RESTORE";
5228
5346
  ADJUST: "ADJUST";
5229
5347
  OPENING: "OPENING";
5230
5348
  REVIEW: "REVIEW";
5349
+ PURCHASE: "PURCHASE";
5231
5350
  }>, z.ZodString]>;
5232
5351
  amount: z.ZodNumber;
5233
5352
  remaining: z.ZodNumber;
@@ -5242,11 +5361,11 @@ export declare const customerPointsSchema: z.ZodObject<{
5242
5361
  lots: z.ZodArray<z.ZodObject<{
5243
5362
  lotId: z.ZodString;
5244
5363
  source: z.ZodUnion<readonly [z.ZodEnum<{
5245
- PURCHASE: "PURCHASE";
5246
5364
  REFUND_RESTORE: "REFUND_RESTORE";
5247
5365
  ADJUST: "ADJUST";
5248
5366
  OPENING: "OPENING";
5249
5367
  REVIEW: "REVIEW";
5368
+ PURCHASE: "PURCHASE";
5250
5369
  }>, z.ZodString]>;
5251
5370
  amount: z.ZodNumber;
5252
5371
  remaining: z.ZodNumber;
@@ -5304,6 +5423,30 @@ export declare const pointAdjustmentResultSchema: z.ZodObject<{
5304
5423
  balance: z.ZodNumber;
5305
5424
  }, z.core.$strip>;
5306
5425
  export type PointAdjustmentResult = z.infer<typeof pointAdjustmentResultSchema>;
5426
+ /** 결제 시작에 쓴 적립 묶음 — 해제·환불 반환이 이 값으로 되돌리고 반환 적립금의 만료를 정한다 */
5427
+ export interface PointLotUsage {
5428
+ lotId: string;
5429
+ amount: number;
5430
+ expiresAt: string | null;
5431
+ }
5432
+ /**
5433
+ * 환불로 돌려주는 적립금의 만료 — 결제에 쓴 묶음 중 가장 늦은 만료이고, 그 시각이 이미 지났으면 지금 + 30일(KST 날짜 끝)이다.
5434
+ * 쓴 묶음 중 만료 없는 묶음(기존 잔액 등)이 있으면 만료 없음(null)이다. 쓴 기록이 없으면 지금 + 30일이다(사용자 결정 2026-10-02).
5435
+ */
5436
+ export declare function pointRestoreExpiresAtOf(usages: readonly PointLotUsage[], now: Date): Date | null;
5437
+ /**
5438
+ * 환불 금액 나누기 — 현금 몫·적립금 몫에서 차감(반품 배송비·쿠폰 조건 미달·추가 차감)을 **현금에서 먼저** 빼고 모자란 몫만 적립금에서 뺀다.
5439
+ * 둘 다 모자라면 0에서 멈추고 못 받은 차감액(`uncollected`)을 돌려준다(호출부가 감사 로그에 남긴다).
5440
+ */
5441
+ export declare function splitRefund(input: {
5442
+ cash: number;
5443
+ points: number;
5444
+ charges: number;
5445
+ }): {
5446
+ cashRefund: number;
5447
+ pointRefund: number;
5448
+ uncollected: number;
5449
+ };
5307
5450
  //#endregion
5308
5451
  //#region src/schemas/product.d.ts
5309
5452
  export declare const productStatusSchema: z.ZodEnum<{
@@ -5392,8 +5535,8 @@ export declare const VARIANT_COUNT_WARNING = 100;
5392
5535
  * 추가금순은 추가 선택 값이면 값의 추가금, 조합 값이면 그 값이 든 조합 추가금의 최솟값으로 비교하고 같으면 등록순이다.
5393
5536
  */
5394
5537
  export declare const optionSortSchema: z.ZodEnum<{
5395
- REGISTERED: "REGISTERED";
5396
5538
  NAME: "NAME";
5539
+ REGISTERED: "REGISTERED";
5397
5540
  PRICE_ASC: "PRICE_ASC";
5398
5541
  PRICE_DESC: "PRICE_DESC";
5399
5542
  }>;
@@ -5573,8 +5716,8 @@ export declare const productSchema: z.ZodObject<{
5573
5716
  sortOrder: z.ZodNumber;
5574
5717
  }, z.core.$strip>>>>;
5575
5718
  optionSort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
5576
- REGISTERED: "REGISTERED";
5577
5719
  NAME: "NAME";
5720
+ REGISTERED: "REGISTERED";
5578
5721
  PRICE_ASC: "PRICE_ASC";
5579
5722
  PRICE_DESC: "PRICE_DESC";
5580
5723
  }>>>;
@@ -5582,8 +5725,8 @@ export declare const productSchema: z.ZodObject<{
5582
5725
  type: z.ZodLiteral<"SHIPPING">;
5583
5726
  shipping: z.ZodObject<{
5584
5727
  deliveryType: z.ZodEnum<{
5585
- PAID: "PAID";
5586
5728
  FREE: "FREE";
5729
+ PAID: "PAID";
5587
5730
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
5588
5731
  }>;
5589
5732
  deliveryFee: z.ZodNumber;
@@ -5717,8 +5860,8 @@ export declare const optionModelRequestSchema: z.ZodObject<{
5717
5860
  usable: z.ZodDefault<z.ZodBoolean>;
5718
5861
  }, z.core.$strip>>>;
5719
5862
  optionSort: z.ZodOptional<z.ZodEnum<{
5720
- REGISTERED: "REGISTERED";
5721
5863
  NAME: "NAME";
5864
+ REGISTERED: "REGISTERED";
5722
5865
  PRICE_ASC: "PRICE_ASC";
5723
5866
  PRICE_DESC: "PRICE_DESC";
5724
5867
  }>>;
@@ -5773,8 +5916,8 @@ export declare const optionModelSchema: z.ZodObject<{
5773
5916
  sortOrder: z.ZodNumber;
5774
5917
  }, z.core.$strip>>>>;
5775
5918
  optionSort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
5776
- REGISTERED: "REGISTERED";
5777
5919
  NAME: "NAME";
5920
+ REGISTERED: "REGISTERED";
5778
5921
  PRICE_ASC: "PRICE_ASC";
5779
5922
  PRICE_DESC: "PRICE_DESC";
5780
5923
  }>>>;
@@ -5805,8 +5948,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
5805
5948
  type: z.ZodLiteral<"SHIPPING">;
5806
5949
  shipping: z.ZodOptional<z.ZodObject<{
5807
5950
  deliveryType: z.ZodDefault<z.ZodEnum<{
5808
- PAID: "PAID";
5809
5951
  FREE: "FREE";
5952
+ PAID: "PAID";
5810
5953
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
5811
5954
  }>>;
5812
5955
  deliveryFee: z.ZodOptional<z.ZodNumber>;
@@ -5858,8 +6001,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
5858
6001
  usable: z.ZodDefault<z.ZodBoolean>;
5859
6002
  }, z.core.$strip>>>;
5860
6003
  optionSort: z.ZodOptional<z.ZodEnum<{
5861
- REGISTERED: "REGISTERED";
5862
6004
  NAME: "NAME";
6005
+ REGISTERED: "REGISTERED";
5863
6006
  PRICE_ASC: "PRICE_ASC";
5864
6007
  PRICE_DESC: "PRICE_DESC";
5865
6008
  }>>;
@@ -5891,8 +6034,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
5891
6034
  type: z.ZodLiteral<"SHIPPING">;
5892
6035
  shipping: z.ZodObject<{
5893
6036
  deliveryType: z.ZodEnum<{
5894
- PAID: "PAID";
5895
6037
  FREE: "FREE";
6038
+ PAID: "PAID";
5896
6039
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
5897
6040
  }>;
5898
6041
  deliveryFee: z.ZodNumber;
@@ -5944,8 +6087,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
5944
6087
  usable: z.ZodDefault<z.ZodBoolean>;
5945
6088
  }, z.core.$strip>>>;
5946
6089
  optionSort: z.ZodOptional<z.ZodEnum<{
5947
- REGISTERED: "REGISTERED";
5948
6090
  NAME: "NAME";
6091
+ REGISTERED: "REGISTERED";
5949
6092
  PRICE_ASC: "PRICE_ASC";
5950
6093
  PRICE_DESC: "PRICE_DESC";
5951
6094
  }>>;
@@ -5985,8 +6128,8 @@ export declare const productPatchRequestSchema: z.ZodObject<{
5985
6128
  type: z.ZodLiteral<"SHIPPING">;
5986
6129
  shipping: z.ZodObject<{
5987
6130
  deliveryType: z.ZodEnum<{
5988
- PAID: "PAID";
5989
6131
  FREE: "FREE";
6132
+ PAID: "PAID";
5990
6133
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
5991
6134
  }>;
5992
6135
  deliveryFee: z.ZodNumber;
@@ -6008,11 +6151,11 @@ export declare const productPatchRequestSchema: z.ZodObject<{
6008
6151
  }, z.core.$strict>;
6009
6152
  export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
6010
6153
  export declare const productSortSchema: z.ZodEnum<{
6154
+ "updatedAt.desc": "updatedAt.desc";
6011
6155
  "createdAt.desc": "createdAt.desc";
6012
6156
  "createdAt.asc": "createdAt.asc";
6013
6157
  "salePrice.asc": "salePrice.asc";
6014
6158
  "salePrice.desc": "salePrice.desc";
6015
- "updatedAt.desc": "updatedAt.desc";
6016
6159
  }>;
6017
6160
  export type ProductSort = z.infer<typeof productSortSchema>;
6018
6161
  export interface ProductListParams extends PageParams {
@@ -6036,11 +6179,11 @@ export declare const productListQuerySchema: z.ZodObject<{
6036
6179
  keyword: z.ZodOptional<z.ZodString>;
6037
6180
  sellerCode: z.ZodOptional<z.ZodString>;
6038
6181
  sort: z.ZodOptional<z.ZodEnum<{
6182
+ "updatedAt.desc": "updatedAt.desc";
6039
6183
  "createdAt.desc": "createdAt.desc";
6040
6184
  "createdAt.asc": "createdAt.asc";
6041
6185
  "salePrice.asc": "salePrice.asc";
6042
6186
  "salePrice.desc": "salePrice.desc";
6043
- "updatedAt.desc": "updatedAt.desc";
6044
6187
  }>>;
6045
6188
  }, z.core.$strip>;
6046
6189
  export declare const discountRequestSchema: z.ZodObject<{
@@ -6096,8 +6239,8 @@ export declare const savedOptionSetSchema: z.ZodObject<{
6096
6239
  optionSetId: z.ZodString;
6097
6240
  name: z.ZodString;
6098
6241
  optionSort: z.ZodEnum<{
6099
- REGISTERED: "REGISTERED";
6100
6242
  NAME: "NAME";
6243
+ REGISTERED: "REGISTERED";
6101
6244
  PRICE_ASC: "PRICE_ASC";
6102
6245
  PRICE_DESC: "PRICE_DESC";
6103
6246
  }>;
@@ -6151,8 +6294,8 @@ export declare const savedCustomInputRequestSchema: z.ZodObject<{
6151
6294
  export declare const savedOptionSetRequestSchema: z.ZodObject<{
6152
6295
  name: z.ZodString;
6153
6296
  optionSort: z.ZodDefault<z.ZodEnum<{
6154
- REGISTERED: "REGISTERED";
6155
6297
  NAME: "NAME";
6298
+ REGISTERED: "REGISTERED";
6156
6299
  PRICE_ASC: "PRICE_ASC";
6157
6300
  PRICE_DESC: "PRICE_DESC";
6158
6301
  }>>;
@@ -6197,8 +6340,8 @@ export declare const savedOptionSetFromProductResultSchema: z.ZodObject<{
6197
6340
  optionSetId: z.ZodString;
6198
6341
  name: z.ZodString;
6199
6342
  optionSort: z.ZodEnum<{
6200
- REGISTERED: "REGISTERED";
6201
6343
  NAME: "NAME";
6344
+ REGISTERED: "REGISTERED";
6202
6345
  PRICE_ASC: "PRICE_ASC";
6203
6346
  PRICE_DESC: "PRICE_DESC";
6204
6347
  }>;
@@ -6421,9 +6564,9 @@ export declare const storeMemberSchema: z.ZodObject<{
6421
6564
  name: z.ZodString;
6422
6565
  email: z.ZodEmail;
6423
6566
  role: z.ZodEnum<{
6567
+ OWNER: "OWNER";
6424
6568
  ADMIN: "ADMIN";
6425
6569
  STAFF: "STAFF";
6426
- OWNER: "OWNER";
6427
6570
  }>;
6428
6571
  joinedAt: z.ZodString;
6429
6572
  lastActiveAt: z.ZodNullable<z.ZodString>;
@@ -6947,9 +7090,9 @@ export type StorefrontDeploymentLog = z.infer<typeof storefrontDeploymentLogSche
6947
7090
  export declare const storefrontDeploymentSchema: z.ZodObject<{
6948
7091
  siteId: z.ZodString;
6949
7092
  status: z.ZodEnum<{
6950
- IN_PROGRESS: "IN_PROGRESS";
6951
7093
  FAILED: "FAILED";
6952
7094
  SUCCEEDED: "SUCCEEDED";
7095
+ IN_PROGRESS: "IN_PROGRESS";
6953
7096
  }>;
6954
7097
  url: z.ZodString;
6955
7098
  startedAt: z.ZodString;
@@ -7407,8 +7550,8 @@ export declare const runStorefrontCheckRequestSchema: z.ZodObject<{
7407
7550
  }, z.core.$strip>;
7408
7551
  export type RunStorefrontCheckRequest = z.infer<typeof runStorefrontCheckRequestSchema>;
7409
7552
  export declare const storefrontCheckStatusSchema: z.ZodEnum<{
7410
- UNKNOWN: "UNKNOWN";
7411
7553
  FAILED: "FAILED";
7554
+ UNKNOWN: "UNKNOWN";
7412
7555
  RUNNING: "RUNNING";
7413
7556
  QUEUED: "QUEUED";
7414
7557
  PASSED: "PASSED";
@@ -7421,8 +7564,8 @@ export declare const storefrontCheckSchema: z.ZodObject<{
7421
7564
  checkId: z.ZodString;
7422
7565
  check: z.ZodString;
7423
7566
  status: z.ZodEnum<{
7424
- UNKNOWN: "UNKNOWN";
7425
7567
  FAILED: "FAILED";
7568
+ UNKNOWN: "UNKNOWN";
7426
7569
  RUNNING: "RUNNING";
7427
7570
  QUEUED: "QUEUED";
7428
7571
  PASSED: "PASSED";
@@ -7956,9 +8099,9 @@ export type UploadTicket = z.infer<typeof uploadTicketSchema>;
7956
8099
  //#endregion
7957
8100
  //#region src/schemas/auth.d.ts
7958
8101
  export declare const storeRoleSchema: z.ZodEnum<{
8102
+ OWNER: "OWNER";
7959
8103
  ADMIN: "ADMIN";
7960
8104
  STAFF: "STAFF";
7961
- OWNER: "OWNER";
7962
8105
  }>;
7963
8106
  export type StoreRole = z.infer<typeof storeRoleSchema>;
7964
8107
  export declare const myStoreSchema: z.ZodObject<{
@@ -7966,9 +8109,9 @@ export declare const myStoreSchema: z.ZodObject<{
7966
8109
  storeName: z.ZodString;
7967
8110
  storeCode: z.ZodString;
7968
8111
  role: z.ZodEnum<{
8112
+ OWNER: "OWNER";
7969
8113
  ADMIN: "ADMIN";
7970
8114
  STAFF: "STAFF";
7971
- OWNER: "OWNER";
7972
8115
  }>;
7973
8116
  status: z.ZodEnum<{
7974
8117
  SUSPENDED: "SUSPENDED";
@@ -8128,7 +8271,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8128
8271
  storeId: string;
8129
8272
  storeName: string;
8130
8273
  storeCode: string;
8131
- role: "ADMIN" | "STAFF" | "OWNER";
8274
+ role: "OWNER" | "ADMIN" | "STAFF";
8132
8275
  status: "SUSPENDED" | "CLOSED" | "ACTIVE";
8133
8276
  }[]>;
8134
8277
  me: () => Promise<{
@@ -8239,11 +8382,11 @@ export declare function createStoreClient(options: StoreClientOptions): {
8239
8382
  usable: boolean;
8240
8383
  sortOrder: number;
8241
8384
  }[];
8242
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8385
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8243
8386
  fulfillment: UnknownFulfillment | {
8244
8387
  type: "SHIPPING";
8245
8388
  shipping: {
8246
- deliveryType: "PAID" | "FREE" | "CONDITIONAL_FREE";
8389
+ deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
8247
8390
  deliveryFee: number;
8248
8391
  conditionalFreeAmount: number | null;
8249
8392
  shippingAddressId: string | null;
@@ -8337,11 +8480,11 @@ export declare function createStoreClient(options: StoreClientOptions): {
8337
8480
  usable: boolean;
8338
8481
  sortOrder: number;
8339
8482
  }[];
8340
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8483
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8341
8484
  fulfillment: UnknownFulfillment | {
8342
8485
  type: "SHIPPING";
8343
8486
  shipping: {
8344
- deliveryType: "PAID" | "FREE" | "CONDITIONAL_FREE";
8487
+ deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
8345
8488
  deliveryFee: number;
8346
8489
  conditionalFreeAmount: number | null;
8347
8490
  shippingAddressId: string | null;
@@ -8435,11 +8578,11 @@ export declare function createStoreClient(options: StoreClientOptions): {
8435
8578
  usable: boolean;
8436
8579
  sortOrder: number;
8437
8580
  }[];
8438
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8581
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8439
8582
  fulfillment: UnknownFulfillment | {
8440
8583
  type: "SHIPPING";
8441
8584
  shipping: {
8442
- deliveryType: "PAID" | "FREE" | "CONDITIONAL_FREE";
8585
+ deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
8443
8586
  deliveryFee: number;
8444
8587
  conditionalFreeAmount: number | null;
8445
8588
  shippingAddressId: string | null;
@@ -8536,7 +8679,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8536
8679
  usable: boolean;
8537
8680
  sortOrder: number;
8538
8681
  }[];
8539
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8682
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8540
8683
  }>;
8541
8684
  /**
8542
8685
  * 옵션 모델 전체 교체 — variants는 valueNames로 축 값을 지목한다.
@@ -8589,7 +8732,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8589
8732
  usable: boolean;
8590
8733
  sortOrder: number;
8591
8734
  }[];
8592
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8735
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8593
8736
  }>;
8594
8737
  /** 재고 변경 — stockQuantity(절대값) 또는 adjustment(증감) 하나만 전달한다 */
8595
8738
  updateVariantStock: (productId: string, variantId: string, body: VariantStockRequest) => Promise<{
@@ -8627,7 +8770,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8627
8770
  contents: {
8628
8771
  optionSetId: string;
8629
8772
  name: string;
8630
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8773
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8631
8774
  groups: {
8632
8775
  name: string;
8633
8776
  kind: string;
@@ -8651,7 +8794,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8651
8794
  get: (optionSetId: string) => Promise<{
8652
8795
  optionSetId: string;
8653
8796
  name: string;
8654
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8797
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8655
8798
  groups: {
8656
8799
  name: string;
8657
8800
  kind: string;
@@ -8675,7 +8818,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8675
8818
  create: (body: SavedOptionSetRequestInput) => Promise<{
8676
8819
  optionSetId: string;
8677
8820
  name: string;
8678
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8821
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8679
8822
  groups: {
8680
8823
  name: string;
8681
8824
  kind: string;
@@ -8699,7 +8842,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8699
8842
  update: (optionSetId: string, body: SavedOptionSetRequestInput) => Promise<{
8700
8843
  optionSetId: string;
8701
8844
  name: string;
8702
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8845
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8703
8846
  groups: {
8704
8847
  name: string;
8705
8848
  kind: string;
@@ -8725,7 +8868,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8725
8868
  optionSet: {
8726
8869
  optionSetId: string;
8727
8870
  name: string;
8728
- optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
8871
+ optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
8729
8872
  groups: {
8730
8873
  name: string;
8731
8874
  kind: string;
@@ -8779,6 +8922,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
8779
8922
  } | {
8780
8923
  field: "discounted";
8781
8924
  value: true;
8925
+ } | {
8926
+ field: "bestSelling";
8927
+ days: 30 | 7 | 90;
8928
+ top: number;
8782
8929
  } | {
8783
8930
  [x: string]: unknown;
8784
8931
  field: string;
@@ -8790,6 +8937,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8790
8937
  metaTitle: string | null;
8791
8938
  metaDescription: string | null;
8792
8939
  state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
8940
+ salesComputedAt: string | null;
8793
8941
  productCount: number;
8794
8942
  revision: number;
8795
8943
  createdAt: string;
@@ -8824,6 +8972,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
8824
8972
  } | {
8825
8973
  field: "discounted";
8826
8974
  value: true;
8975
+ } | {
8976
+ field: "bestSelling";
8977
+ days: 30 | 7 | 90;
8978
+ top: number;
8827
8979
  } | {
8828
8980
  [x: string]: unknown;
8829
8981
  field: string;
@@ -8835,6 +8987,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8835
8987
  metaTitle: string | null;
8836
8988
  metaDescription: string | null;
8837
8989
  state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
8990
+ salesComputedAt: string | null;
8838
8991
  productCount: number;
8839
8992
  revision: number;
8840
8993
  createdAt: string;
@@ -8862,6 +9015,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
8862
9015
  } | {
8863
9016
  field: "discounted";
8864
9017
  value: true;
9018
+ } | {
9019
+ field: "bestSelling";
9020
+ days: 30 | 7 | 90;
9021
+ top: number;
8865
9022
  } | {
8866
9023
  [x: string]: unknown;
8867
9024
  field: string;
@@ -8873,6 +9030,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8873
9030
  metaTitle: string | null;
8874
9031
  metaDescription: string | null;
8875
9032
  state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
9033
+ salesComputedAt: string | null;
8876
9034
  productCount: number;
8877
9035
  revision: number;
8878
9036
  createdAt: string;
@@ -8899,6 +9057,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
8899
9057
  } | {
8900
9058
  field: "discounted";
8901
9059
  value: true;
9060
+ } | {
9061
+ field: "bestSelling";
9062
+ days: 30 | 7 | 90;
9063
+ top: number;
8902
9064
  } | {
8903
9065
  [x: string]: unknown;
8904
9066
  field: string;
@@ -8910,6 +9072,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8910
9072
  metaTitle: string | null;
8911
9073
  metaDescription: string | null;
8912
9074
  state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
9075
+ salesComputedAt: string | null;
8913
9076
  productCount: number;
8914
9077
  revision: number;
8915
9078
  createdAt: string;
@@ -8957,6 +9120,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
8957
9120
  } | {
8958
9121
  field: "discounted";
8959
9122
  value: true;
9123
+ } | {
9124
+ field: "bestSelling";
9125
+ days: 30 | 7 | 90;
9126
+ top: number;
8960
9127
  } | {
8961
9128
  [x: string]: unknown;
8962
9129
  field: string;
@@ -8968,6 +9135,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8968
9135
  metaTitle: string | null;
8969
9136
  metaDescription: string | null;
8970
9137
  state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
9138
+ salesComputedAt: string | null;
8971
9139
  productCount: number;
8972
9140
  revision: number;
8973
9141
  createdAt: string;
@@ -8995,6 +9163,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
8995
9163
  } | {
8996
9164
  field: "discounted";
8997
9165
  value: true;
9166
+ } | {
9167
+ field: "bestSelling";
9168
+ days: 30 | 7 | 90;
9169
+ top: number;
8998
9170
  } | {
8999
9171
  [x: string]: unknown;
9000
9172
  field: string;
@@ -9006,6 +9178,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9006
9178
  metaTitle: string | null;
9007
9179
  metaDescription: string | null;
9008
9180
  state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
9181
+ salesComputedAt: string | null;
9009
9182
  productCount: number;
9010
9183
  revision: number;
9011
9184
  createdAt: string;
@@ -9024,6 +9197,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9024
9197
  position: number;
9025
9198
  addedAt: string;
9026
9199
  }[];
9200
+ salesComputedAt: string | null;
9027
9201
  }>;
9028
9202
  };
9029
9203
  categories: {
@@ -9042,7 +9216,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9042
9216
  visible: boolean;
9043
9217
  showPc: boolean;
9044
9218
  showMobile: boolean;
9045
- productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
9219
+ productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
9046
9220
  metaTitle: string | null;
9047
9221
  metaDescription: string | null;
9048
9222
  metaKeywords: string | null;
@@ -9062,7 +9236,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9062
9236
  visible: boolean;
9063
9237
  showPc: boolean;
9064
9238
  showMobile: boolean;
9065
- productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
9239
+ productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
9066
9240
  metaTitle: string | null;
9067
9241
  metaDescription: string | null;
9068
9242
  metaKeywords: string | null;
@@ -9081,7 +9255,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9081
9255
  visible: boolean;
9082
9256
  showPc: boolean;
9083
9257
  showMobile: boolean;
9084
- productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
9258
+ productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
9085
9259
  metaTitle: string | null;
9086
9260
  metaDescription: string | null;
9087
9261
  metaKeywords: string | null;
@@ -9101,7 +9275,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9101
9275
  visible: boolean;
9102
9276
  showPc: boolean;
9103
9277
  showMobile: boolean;
9104
- productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
9278
+ productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
9105
9279
  metaTitle: string | null;
9106
9280
  metaDescription: string | null;
9107
9281
  metaKeywords: string | null;
@@ -9120,7 +9294,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9120
9294
  visible: boolean;
9121
9295
  showPc: boolean;
9122
9296
  showMobile: boolean;
9123
- productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
9297
+ productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
9124
9298
  metaTitle: string | null;
9125
9299
  metaDescription: string | null;
9126
9300
  metaKeywords: string | null;
@@ -9149,7 +9323,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9149
9323
  visible: boolean;
9150
9324
  showPc: boolean;
9151
9325
  showMobile: boolean;
9152
- productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
9326
+ productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
9153
9327
  metaTitle: string | null;
9154
9328
  metaDescription: string | null;
9155
9329
  metaKeywords: string | null;
@@ -9168,7 +9342,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9168
9342
  visible: boolean;
9169
9343
  showPc: boolean;
9170
9344
  showMobile: boolean;
9171
- productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
9345
+ productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
9172
9346
  metaTitle: string | null;
9173
9347
  metaDescription: string | null;
9174
9348
  metaKeywords: string | null;
@@ -9226,6 +9400,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9226
9400
  discountAmount: number;
9227
9401
  couponDiscountAmount: number;
9228
9402
  deliveryDiscountAmount: number;
9403
+ pointAmount: number;
9229
9404
  discounts: {
9230
9405
  couponId: string;
9231
9406
  name: string;
@@ -9292,6 +9467,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9292
9467
  discountAmount: number;
9293
9468
  totalPrice: number;
9294
9469
  couponDiscountAmount: number;
9470
+ pointAllocation: number;
9295
9471
  hold: {
9296
9472
  reason: string;
9297
9473
  expectedDispatchDate: string;
@@ -9377,6 +9553,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9377
9553
  discountAmount: number;
9378
9554
  totalPrice: number;
9379
9555
  couponDiscountAmount: number;
9556
+ pointAllocation: number;
9380
9557
  hold: {
9381
9558
  reason: string;
9382
9559
  expectedDispatchDate: string;
@@ -9417,6 +9594,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9417
9594
  deliveryFeeChargeAmount: number;
9418
9595
  couponChargeAmount: number;
9419
9596
  couponChargeRefundAmount: number;
9597
+ pointRefundAmount: number;
9420
9598
  refundedAt: string;
9421
9599
  }>;
9422
9600
  updateMemo: (orderItemId: string, memo: string) => Promise<void>;
@@ -9428,7 +9606,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9428
9606
  }>;
9429
9607
  dispatch: (orderItemId: string, body: DispatchRequest, idempotencyKey?: string) => Promise<{
9430
9608
  orderItemId: string;
9431
- deliveryMethod: "DIRECT" | "COURIER" | "QUICK" | "NOTHING";
9609
+ deliveryMethod: "COURIER" | "DIRECT" | "QUICK" | "NOTHING";
9432
9610
  carrierCode: string | null;
9433
9611
  carrierName: string | null;
9434
9612
  trackingNumber: string | null;
@@ -9490,6 +9668,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9490
9668
  discountAmount: number;
9491
9669
  totalPrice: number;
9492
9670
  couponDiscountAmount: number;
9671
+ pointAllocation: number;
9493
9672
  hold: {
9494
9673
  reason: string;
9495
9674
  expectedDispatchDate: string;
@@ -9558,6 +9737,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9558
9737
  discountAmount: number;
9559
9738
  totalPrice: number;
9560
9739
  couponDiscountAmount: number;
9740
+ pointAllocation: number;
9561
9741
  hold: {
9562
9742
  reason: string;
9563
9743
  expectedDispatchDate: string;
@@ -9588,7 +9768,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9588
9768
  }>;
9589
9769
  getDelivery: (orderItemId: string) => Promise<{
9590
9770
  orderItemId: string;
9591
- deliveryMethod: "DIRECT" | "COURIER" | "QUICK" | "NOTHING";
9771
+ deliveryMethod: "COURIER" | "DIRECT" | "QUICK" | "NOTHING";
9592
9772
  carrierCode: string | null;
9593
9773
  carrierName: string | null;
9594
9774
  trackingNumber: string | null;
@@ -9626,7 +9806,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9626
9806
  contents: {
9627
9807
  claimId: string;
9628
9808
  type: "RETURN" | "EXCHANGE" | "CANCEL";
9629
- status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
9809
+ status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
9630
9810
  orderId: string;
9631
9811
  orderItemId: string;
9632
9812
  productName: string;
@@ -9637,6 +9817,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9637
9817
  claimDeliveryFee: number;
9638
9818
  expectedRefundAmount: number | null;
9639
9819
  expectedDeliveryFeeRefundAmount: number | null;
9820
+ expectedPointRefundAmount: number;
9640
9821
  exchangeOption: {
9641
9822
  optionId: string;
9642
9823
  optionName: string;
@@ -9664,7 +9845,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9664
9845
  get: (claimId: string) => Promise<{
9665
9846
  claimId: string;
9666
9847
  type: "RETURN" | "EXCHANGE" | "CANCEL";
9667
- status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
9848
+ status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
9668
9849
  orderId: string;
9669
9850
  orderItemId: string;
9670
9851
  productName: string;
@@ -9675,6 +9856,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9675
9856
  claimDeliveryFee: number;
9676
9857
  expectedRefundAmount: number | null;
9677
9858
  expectedDeliveryFeeRefundAmount: number | null;
9859
+ expectedPointRefundAmount: number;
9678
9860
  exchangeOption: {
9679
9861
  optionId: string;
9680
9862
  optionName: string;
@@ -9698,7 +9880,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9698
9880
  address2: string | null;
9699
9881
  } | null;
9700
9882
  histories?: {
9701
- status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
9883
+ status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
9702
9884
  actor: "SYSTEM" | "BUYER" | "SELLER";
9703
9885
  occurredAt: string;
9704
9886
  }[] | undefined;
@@ -9712,6 +9894,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9712
9894
  deliveryFeeChargeAmount: number;
9713
9895
  couponChargeAmount: number;
9714
9896
  couponChargeRefundAmount: number;
9897
+ pointRefundAmount: number;
9715
9898
  refundedAt: string;
9716
9899
  }>;
9717
9900
  reject: (claimId: string, body: RejectClaimRequest) => Promise<void>;
@@ -9730,7 +9913,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9730
9913
  completeExchange: (claimId: string) => Promise<{
9731
9914
  claimId: string;
9732
9915
  type: "RETURN" | "EXCHANGE" | "CANCEL";
9733
- status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
9916
+ status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
9734
9917
  orderId: string;
9735
9918
  orderItemId: string;
9736
9919
  productName: string;
@@ -9741,6 +9924,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9741
9924
  claimDeliveryFee: number;
9742
9925
  expectedRefundAmount: number | null;
9743
9926
  expectedDeliveryFeeRefundAmount: number | null;
9927
+ expectedPointRefundAmount: number;
9744
9928
  exchangeOption: {
9745
9929
  optionId: string;
9746
9930
  optionName: string;
@@ -10650,7 +10834,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10650
10834
  conversionRate: number | null;
10651
10835
  };
10652
10836
  funnel: {
10653
- step: "SESSION" | "PRODUCT_VIEW" | "ADD_TO_CART" | "BEGIN_CHECKOUT" | "PURCHASE";
10837
+ step: "PURCHASE" | "SESSION" | "PRODUCT_VIEW" | "ADD_TO_CART" | "BEGIN_CHECKOUT";
10654
10838
  sessions: number;
10655
10839
  rateFromPrevious: number | null;
10656
10840
  }[];
@@ -10704,9 +10888,9 @@ export declare function createStoreClient(options: StoreClientOptions): {
10704
10888
  }>;
10705
10889
  /** `GET /v1/analytics/sources` — 채널·소스·캠페인·기기별 세션과 구매 */
10706
10890
  sources: (params: AnalyticsSourcesParams) => Promise<{
10707
- groupBy: "CAMPAIGN" | "CHANNEL" | "SOURCE" | "DEVICE";
10891
+ groupBy: "CHANNEL" | "SOURCE" | "CAMPAIGN" | "DEVICE";
10708
10892
  rows: {
10709
- channel: "DIRECT" | "ORGANIC_SEARCH" | "SOCIAL" | "PAID" | "EMAIL" | "CAMPAIGN" | "REFERRAL" | "UNKNOWN" | null;
10893
+ channel: "PAID" | "DIRECT" | "CAMPAIGN" | "UNKNOWN" | "ORGANIC_SEARCH" | "SOCIAL" | "EMAIL" | "REFERRAL" | null;
10710
10894
  source: string | null;
10711
10895
  medium: string | null;
10712
10896
  campaign: string | null;
@@ -10811,7 +10995,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10811
10995
  checkout: (params: AnalyticsRangeParams) => Promise<{
10812
10996
  sessions: number;
10813
10997
  outcomes: {
10814
- outcome: "COMPLETED" | "NOT_OPENED" | "USER_CANCELED" | "DECLINED" | "PREPARE_FAILURE" | "OTHER" | "IN_PROGRESS";
10998
+ outcome: "OTHER" | "COMPLETED" | "NOT_OPENED" | "USER_CANCELED" | "DECLINED" | "PREPARE_FAILURE" | "IN_PROGRESS";
10815
10999
  sessions: number;
10816
11000
  }[];
10817
11001
  from: string;
@@ -10903,6 +11087,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10903
11087
  refunds: {
10904
11088
  refundId: string;
10905
11089
  amount: number;
11090
+ pointRefundAmount: number;
10906
11091
  reason: string;
10907
11092
  kind: string;
10908
11093
  status: string;
@@ -11911,7 +12096,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11911
12096
  list: (params?: ApprovalListOptions) => Promise<{
11912
12097
  items: {
11913
12098
  approvalId: string;
11914
- status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
12099
+ status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
11915
12100
  operationId: string;
11916
12101
  method: string;
11917
12102
  path: string;
@@ -11961,7 +12146,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11961
12146
  }>;
11962
12147
  get: (approvalId: string) => Promise<{
11963
12148
  approvalId: string;
11964
- status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
12149
+ status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
11965
12150
  operationId: string;
11966
12151
  method: string;
11967
12152
  path: string;
@@ -12013,7 +12198,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12013
12198
  */
12014
12199
  approve: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
12015
12200
  approvalId: string;
12016
- status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
12201
+ status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
12017
12202
  operationId: string;
12018
12203
  method: string;
12019
12204
  path: string;
@@ -12061,7 +12246,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12061
12246
  }>;
12062
12247
  reject: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
12063
12248
  approvalId: string;
12064
- status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
12249
+ status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
12065
12250
  operationId: string;
12066
12251
  method: string;
12067
12252
  path: string;
@@ -12305,7 +12490,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12305
12490
  /** `GET /v1/storefront/site/deployment` — 배포 진행(단계·기록). 만든 뒤 반영이 끝날 때까지 폴링한다 */
12306
12491
  getDeployment: () => Promise<{
12307
12492
  siteId: string;
12308
- status: "IN_PROGRESS" | "FAILED" | "SUCCEEDED";
12493
+ status: "FAILED" | "SUCCEEDED" | "IN_PROGRESS";
12309
12494
  url: string;
12310
12495
  startedAt: string;
12311
12496
  finishedAt: string | null;
@@ -12327,7 +12512,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12327
12512
  /** `POST /v1/storefront/site/deployment/retry` (202) — 밀린 반영을 곧바로 다시 시도한다. 이미 반영됐으면 그대로다 */
12328
12513
  retryDeployment: () => Promise<{
12329
12514
  siteId: string;
12330
- status: "IN_PROGRESS" | "FAILED" | "SUCCEEDED";
12515
+ status: "FAILED" | "SUCCEEDED" | "IN_PROGRESS";
12331
12516
  url: string;
12332
12517
  startedAt: string;
12333
12518
  finishedAt: string | null;
@@ -12902,7 +13087,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12902
13087
  runCheck: (body: RunStorefrontCheckRequest) => Promise<{
12903
13088
  checkId: string;
12904
13089
  check: string;
12905
- status: "UNKNOWN" | "FAILED" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
13090
+ status: "FAILED" | "UNKNOWN" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
12906
13091
  exitCode: number | null;
12907
13092
  durationMs: number | null;
12908
13093
  outputTail: string | null;
@@ -12916,7 +13101,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12916
13101
  getCheck: (checkId: string) => Promise<{
12917
13102
  checkId: string;
12918
13103
  check: string;
12919
- status: "UNKNOWN" | "FAILED" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
13104
+ status: "FAILED" | "UNKNOWN" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
12920
13105
  exitCode: number | null;
12921
13106
  durationMs: number | null;
12922
13107
  outputTail: string | null;
@@ -13496,6 +13681,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
13496
13681
  enabled: boolean;
13497
13682
  rateBp: number;
13498
13683
  };
13684
+ useAvailable: boolean;
13685
+ use: {
13686
+ enabled: boolean;
13687
+ minBalance: number;
13688
+ minAmount: number;
13689
+ unit: 1 | 100 | 10;
13690
+ maxRatioBp: number;
13691
+ includeDeliveryFee: boolean;
13692
+ };
13499
13693
  expiryDays: number | null;
13500
13694
  notice: "REVIEW_REWARD_PAUSED" | "POINTS_AVAILABLE" | null;
13501
13695
  }>;
@@ -13515,6 +13709,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
13515
13709
  enabled: boolean;
13516
13710
  rateBp: number;
13517
13711
  };
13712
+ useAvailable: boolean;
13713
+ use: {
13714
+ enabled: boolean;
13715
+ minBalance: number;
13716
+ minAmount: number;
13717
+ unit: 1 | 100 | 10;
13718
+ maxRatioBp: number;
13719
+ includeDeliveryFee: boolean;
13720
+ };
13518
13721
  expiryDays: number | null;
13519
13722
  notice: "REVIEW_REWARD_PAUSED" | "POINTS_AVAILABLE" | null;
13520
13723
  }>;
@@ -13522,7 +13725,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13522
13725
  userId: string;
13523
13726
  name: string;
13524
13727
  email: string;
13525
- role: "ADMIN" | "STAFF" | "OWNER";
13728
+ role: "OWNER" | "ADMIN" | "STAFF";
13526
13729
  joinedAt: string;
13527
13730
  lastActiveAt: string | null;
13528
13731
  }[]>;
@@ -13799,8 +14002,29 @@ export interface PricingDelivery {
13799
14002
  remoteSurcharge: number;
13800
14003
  }>;
13801
14004
  }
14005
+ /**
14006
+ * 적립금 사용 입력(#93 P3) — 쿠폰 뒤 금액에 쓴다. 규칙은 상점 정책 `use`(`PointUsePolicy`)의 값이다.
14007
+ * 금액은 요청·잔액·최대 비율 중 작은 값을 `unit`으로 내리고, 남는 결제 금액이 100원 아래로 내려가지 않게 줄인다(적립금 전액 결제는 아직 받지 않는다).
14008
+ */
14009
+ export interface PricingPoints {
14010
+ /** 구매자가 쓰겠다는 금액 */
14011
+ requested: number;
14012
+ /** 지금 잔액 */
14013
+ balance: number;
14014
+ rules: {
14015
+ minBalance: number;
14016
+ minAmount: number;
14017
+ unit: number;
14018
+ maxRatioBp: number;
14019
+ includeDeliveryFee: boolean;
14020
+ };
14021
+ }
14022
+ /** 적립금을 쓰지 못한 이유 */
14023
+ export type PointRejectReason = "MIN_BALANCE" | "MIN_AMOUNT" | "NOT_PAYABLE";
13802
14024
  export interface PricingInput {
13803
14025
  lines: readonly PricingLine[];
14026
+ /** 적립금 사용(#93 P3). 없으면 쓰지 않는다 — 결과는 적립금 이전과 같다 */
14027
+ points?: PricingPoints | null;
13804
14028
  coupons: readonly PricingCoupon[];
13805
14029
  /** 배송비 견적. 없으면 배송비 0으로 계산하고 배송비 쿠폰은 할인할 금액이 없다 */
13806
14030
  delivery?: PricingDelivery | null;
@@ -13829,6 +14053,8 @@ export interface PricingLineResult {
13829
14053
  /** 이 줄에 들어간 쿠폰 할인 합계 — 상품 쿠폰 + 주문 쿠폰 배분 */
13830
14054
  couponDiscount: number;
13831
14055
  allocations: CouponAllocation[];
14056
+ /** 이 줄에 배분한 사용 적립금(#93 P3). 적립금을 쓰지 않으면 0 */
14057
+ pointAllocation: number;
13832
14058
  }
13833
14059
  export interface PricingCouponResult {
13834
14060
  couponKey: string;
@@ -13846,6 +14072,8 @@ export interface PricingCouponResult {
13846
14072
  export interface PricingBundleResult {
13847
14073
  bundleKey: string;
13848
14074
  couponDiscount: number;
14075
+ /** 이 배송 묶음에 배분한 사용 적립금(#93 P3) */
14076
+ pointAllocation: number;
13849
14077
  }
13850
14078
  export interface PricingResult {
13851
14079
  lines: PricingLineResult[];
@@ -13860,7 +14088,15 @@ export interface PricingResult {
13860
14088
  deliveryFee: number;
13861
14089
  /** 배송비 쿠폰 할인 */
13862
14090
  deliveryDiscountAmount: number;
13863
- /** 결제 금액 = productAmount − couponDiscountAmount + deliveryFee − deliveryDiscountAmount */
14091
+ /** 사용 적립금(#93 P3). 쓰지 않으면 0 */
14092
+ pointAmount: number;
14093
+ /** 지금 쓸 수 있는 최대 적립금 — 주문서 안내값(잔액을 모두 요청했을 때의 금액). 적립금 입력이 없으면 0 */
14094
+ pointMaxUsable: number;
14095
+ /** 요청보다 적게 썼다면 그 이유 — `MIN_PAYMENT`: 결제 금액 100원을 남기려고 줄였다 */
14096
+ pointAdjustReason: "MIN_PAYMENT" | null;
14097
+ /** 요청했지만 쓰지 못했다면 그 이유 */
14098
+ pointRejectReason: PointRejectReason | null;
14099
+ /** 결제 금액 = productAmount − couponDiscountAmount + deliveryFee − deliveryDiscountAmount − pointAmount */
13864
14100
  totalAmount: number;
13865
14101
  }
13866
14102
  /**
@@ -13889,6 +14125,20 @@ export declare function isCouponTargetLine(rule: Pick<CouponRule, "target" | "co
13889
14125
  * 사본 중 앞 장이 만료됐으면 뒤 장이 쓰인다. 결과의 `coupons`는 입력 순서 그대로다. 입력이 같으면 결과도 같다.
13890
14126
  */
13891
14127
  export declare function quotePricing(input: PricingInput): PricingResult;
14128
+ /**
14129
+ * 사용 적립금 금액(순수) — 요청·잔액·최대 비율·「결제 금액 100원 남기기」 중 작은 값을 단위로 내린다.
14130
+ * 최소 보유액·최소 사용액에 못 미치면 0이다. 결제 금액이 0원이 되는 사용(적립금 전액 결제)은 아직 받지 않는다(P4).
14131
+ */
14132
+ export declare function pointUseOf(points: PricingPoints | null, amounts: {
14133
+ productPaid: number;
14134
+ deliveryPaid: number;
14135
+ total: number;
14136
+ }): {
14137
+ amount: number;
14138
+ maxUsable: number;
14139
+ adjustReason: "MIN_PAYMENT" | null;
14140
+ rejectReason: PointRejectReason | null;
14141
+ };
13892
14142
  /**
13893
14143
  * 주문이 받은 쿠폰 한 장 — 주문 시점 규칙과 대상 줄을 굳힌 값이다(`orders.discounts`의 항목).
13894
14144
  * 환불 정산은 이 값만 읽는다. 셀러가 쿠폰을 바꾸거나 상품의 카테고리가 바뀌어도 결과가 같다.
@@ -13988,6 +14238,16 @@ export declare function settleCouponShortfall(input: CouponSettlementInput): Cou
13988
14238
  export declare function proratedPaidRefundBase(item: {
13989
14239
  totalPrice: number;
13990
14240
  couponDiscountAmount?: number | null;
14241
+ /** 주문상품에 배분된 사용 적립금(#93 P3) — 현금 환불 기준에서 뺀다. 없으면 0 */
14242
+ pointAllocation?: number | null;
14243
+ quantity: number;
14244
+ }, settledQuantity: number, cancelQuantity: number): number;
14245
+ /**
14246
+ * 주문상품의 사용 적립금 중 이번 취소 수량의 몫(#93 P3) — 누적 내림의 차분이라 나눠 취소해도 합이 배분액과 같다.
14247
+ * 현금 환불(`proratedPaidRefundBase`)과 따로 돌려준다(`pointRefundAmount`).
14248
+ */
14249
+ export declare function proratedPointRefund(item: {
14250
+ pointAllocation?: number | null;
13991
14251
  quantity: number;
13992
14252
  }, settledQuantity: number, cancelQuantity: number): number;
13993
14253
  //#endregion
@@ -14105,14 +14365,14 @@ export declare const STORE_SCOPE_RESOURCES: {
14105
14365
  };
14106
14366
  export type StoreScopeResource = keyof typeof STORE_SCOPE_RESOURCES;
14107
14367
  export declare const storeScopeResourceSchema: z.ZodEnum<{
14108
- category: "category";
14109
- analytics: "analytics";
14110
14368
  product: "product";
14369
+ category: "category";
14111
14370
  order: "order";
14112
14371
  claim: "claim";
14113
14372
  inquiry: "inquiry";
14114
14373
  review: "review";
14115
14374
  settlement: "settlement";
14375
+ analytics: "analytics";
14116
14376
  webhook: "webhook";
14117
14377
  store: "store";
14118
14378
  member: "member";
@@ -14709,6 +14969,7 @@ export declare const orderWebhookEventDataSchema: z.ZodObject<{
14709
14969
  }>;
14710
14970
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14711
14971
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14972
+ pointAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14712
14973
  orderItemId: z.ZodOptional<z.ZodString>;
14713
14974
  fulfillmentSnapshot: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
14714
14975
  type: z.ZodLiteral<"SHIPPING">;
@@ -14813,6 +15074,7 @@ export declare const orderCanceledWebhookEventDataSchema: z.ZodObject<{
14813
15074
  deliveryFeeChargeAmount: z.ZodNumber;
14814
15075
  couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14815
15076
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15077
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14816
15078
  testPayment: z.ZodBoolean;
14817
15079
  }, z.core.$strip>;
14818
15080
  export type OrderCanceledWebhookEventData = z.infer<typeof orderCanceledWebhookEventDataSchema>;
@@ -14826,7 +15088,6 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
14826
15088
  CANCEL: "CANCEL";
14827
15089
  }>;
14828
15090
  status: z.ZodEnum<{
14829
- COMPLETED: "COMPLETED";
14830
15091
  REJECTED: "REJECTED";
14831
15092
  REQUESTED: "REQUESTED";
14832
15093
  HELD: "HELD";
@@ -14834,6 +15095,7 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
14834
15095
  COLLECTED: "COLLECTED";
14835
15096
  REDELIVERING: "REDELIVERING";
14836
15097
  APPROVED: "APPROVED";
15098
+ COMPLETED: "COMPLETED";
14837
15099
  WITHDRAWN: "WITHDRAWN";
14838
15100
  }>;
14839
15101
  quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -14843,6 +15105,7 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
14843
15105
  deductAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14844
15106
  couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14845
15107
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15108
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14846
15109
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14847
15110
  }, z.core.$strip>;
14848
15111
  export type ClaimWebhookEventData = z.infer<typeof claimWebhookEventDataSchema>;
@@ -14885,6 +15148,7 @@ export declare const orderWebhookEventSchema: z.ZodObject<{
14885
15148
  }>;
14886
15149
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
14887
15150
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15151
+ pointAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14888
15152
  orderItemId: z.ZodOptional<z.ZodString>;
14889
15153
  fulfillmentSnapshot: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
14890
15154
  type: z.ZodLiteral<"SHIPPING">;
@@ -14992,6 +15256,7 @@ export declare const orderCanceledWebhookEventSchema: z.ZodObject<{
14992
15256
  deliveryFeeChargeAmount: z.ZodNumber;
14993
15257
  couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14994
15258
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15259
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14995
15260
  testPayment: z.ZodBoolean;
14996
15261
  }, z.core.$strip>;
14997
15262
  id: z.ZodString;
@@ -15016,7 +15281,6 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
15016
15281
  CANCEL: "CANCEL";
15017
15282
  }>;
15018
15283
  status: z.ZodEnum<{
15019
- COMPLETED: "COMPLETED";
15020
15284
  REJECTED: "REJECTED";
15021
15285
  REQUESTED: "REQUESTED";
15022
15286
  HELD: "HELD";
@@ -15024,6 +15288,7 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
15024
15288
  COLLECTED: "COLLECTED";
15025
15289
  REDELIVERING: "REDELIVERING";
15026
15290
  APPROVED: "APPROVED";
15291
+ COMPLETED: "COMPLETED";
15027
15292
  WITHDRAWN: "WITHDRAWN";
15028
15293
  }>;
15029
15294
  quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -15033,6 +15298,7 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
15033
15298
  deductAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15034
15299
  couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15035
15300
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15301
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15036
15302
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15037
15303
  }, z.core.$strip>;
15038
15304
  id: z.ZodString;
@@ -15098,6 +15364,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15098
15364
  }>;
15099
15365
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15100
15366
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15367
+ pointAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15101
15368
  orderItemId: z.ZodOptional<z.ZodString>;
15102
15369
  fulfillmentSnapshot: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
15103
15370
  type: z.ZodLiteral<"SHIPPING">;
@@ -15203,6 +15470,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15203
15470
  deliveryFeeChargeAmount: z.ZodNumber;
15204
15471
  couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15205
15472
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15473
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15206
15474
  testPayment: z.ZodBoolean;
15207
15475
  }, z.core.$strip>;
15208
15476
  id: z.ZodString;
@@ -15226,7 +15494,6 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15226
15494
  CANCEL: "CANCEL";
15227
15495
  }>;
15228
15496
  status: z.ZodEnum<{
15229
- COMPLETED: "COMPLETED";
15230
15497
  REJECTED: "REJECTED";
15231
15498
  REQUESTED: "REQUESTED";
15232
15499
  HELD: "HELD";
@@ -15234,6 +15501,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15234
15501
  COLLECTED: "COLLECTED";
15235
15502
  REDELIVERING: "REDELIVERING";
15236
15503
  APPROVED: "APPROVED";
15504
+ COMPLETED: "COMPLETED";
15237
15505
  WITHDRAWN: "WITHDRAWN";
15238
15506
  }>;
15239
15507
  quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -15243,6 +15511,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
15243
15511
  deductAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15244
15512
  couponChargeAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15245
15513
  couponChargeRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15514
+ pointRefundAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
15246
15515
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
15247
15516
  }, z.core.$strip>;
15248
15517
  id: z.ZodString;