@sayren/store-sdk 0.28.2 → 0.29.0

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
@@ -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";
585
584
  UNKNOWN: "UNKNOWN";
586
585
  DIRECT: "DIRECT";
587
- CAMPAIGN: "CAMPAIGN";
588
586
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
589
587
  SOCIAL: "SOCIAL";
588
+ PAID: "PAID";
590
589
  EMAIL: "EMAIL";
590
+ CAMPAIGN: "CAMPAIGN";
591
591
  REFERRAL: "REFERRAL";
592
592
  }>;
593
593
  export type AnalyticsChannel = z.infer<typeof analyticsChannelSchema>;
594
594
  export declare const analyticsSourceGroupBySchema: z.ZodEnum<{
595
+ CAMPAIGN: "CAMPAIGN";
595
596
  CHANNEL: "CHANNEL";
596
597
  SOURCE: "SOURCE";
597
- CAMPAIGN: "CAMPAIGN";
598
598
  DEVICE: "DEVICE";
599
599
  }>;
600
600
  export type AnalyticsSourceGroupBy = z.infer<typeof analyticsSourceGroupBySchema>;
@@ -606,22 +606,22 @@ export declare const analyticsSourcesQuerySchema: z.ZodObject<{
606
606
  false: "false";
607
607
  }>>;
608
608
  groupBy: z.ZodOptional<z.ZodEnum<{
609
+ CAMPAIGN: "CAMPAIGN";
609
610
  CHANNEL: "CHANNEL";
610
611
  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";
619
618
  UNKNOWN: "UNKNOWN";
620
619
  DIRECT: "DIRECT";
621
- CAMPAIGN: "CAMPAIGN";
622
620
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
623
621
  SOCIAL: "SOCIAL";
622
+ PAID: "PAID";
624
623
  EMAIL: "EMAIL";
624
+ CAMPAIGN: "CAMPAIGN";
625
625
  REFERRAL: "REFERRAL";
626
626
  }>>;
627
627
  source: z.ZodNullable<z.ZodString>;
@@ -644,20 +644,20 @@ 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";
647
648
  CHANNEL: "CHANNEL";
648
649
  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";
655
654
  UNKNOWN: "UNKNOWN";
656
655
  DIRECT: "DIRECT";
657
- CAMPAIGN: "CAMPAIGN";
658
656
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
659
657
  SOCIAL: "SOCIAL";
658
+ PAID: "PAID";
660
659
  EMAIL: "EMAIL";
660
+ CAMPAIGN: "CAMPAIGN";
661
661
  REFERRAL: "REFERRAL";
662
662
  }>>;
663
663
  source: 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";
811
810
  COMPLETED: "COMPLETED";
812
811
  NOT_OPENED: "NOT_OPENED";
813
812
  USER_CANCELED: "USER_CANCELED";
814
813
  DECLINED: "DECLINED";
815
814
  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";
824
823
  COMPLETED: "COMPLETED";
825
824
  NOT_OPENED: "NOT_OPENED";
826
825
  USER_CANCELED: "USER_CANCELED";
827
826
  DECLINED: "DECLINED";
828
827
  PREPARE_FAILURE: "PREPARE_FAILURE";
828
+ OTHER: "OTHER";
829
829
  IN_PROGRESS: "IN_PROGRESS";
830
830
  }>;
831
831
  sessions: z.ZodNumber;
@@ -1232,14 +1232,14 @@ export declare const bulkResultSchema: z.ZodObject<{
1232
1232
  }, z.core.$strip>;
1233
1233
  export type BulkResult = z.infer<typeof bulkResultSchema>;
1234
1234
  export declare const orderItemStatusSchema: z.ZodEnum<{
1235
- PAYMENT_WAITING: "PAYMENT_WAITING";
1236
1235
  PAID: "PAID";
1236
+ CANCELED: "CANCELED";
1237
+ PAYMENT_WAITING: "PAYMENT_WAITING";
1237
1238
  CONFIRMED: "CONFIRMED";
1238
1239
  DISPATCHED: "DISPATCHED";
1239
1240
  DELIVERING: "DELIVERING";
1240
1241
  DELIVERED: "DELIVERED";
1241
1242
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
1242
- CANCELED: "CANCELED";
1243
1243
  }>;
1244
1244
  export type OrderItemStatus = z.infer<typeof orderItemStatusSchema>;
1245
1245
  export declare const changeTypeSchema: z.ZodEnum<{
@@ -1264,15 +1264,15 @@ 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
- WITHDRAWN: "WITHDRAWN";
1268
1267
  REJECTED: "REJECTED";
1268
+ COMPLETED: "COMPLETED";
1269
1269
  REQUESTED: "REQUESTED";
1270
1270
  HELD: "HELD";
1271
1271
  COLLECTING: "COLLECTING";
1272
1272
  COLLECTED: "COLLECTED";
1273
1273
  REDELIVERING: "REDELIVERING";
1274
1274
  APPROVED: "APPROVED";
1275
- COMPLETED: "COMPLETED";
1275
+ WITHDRAWN: "WITHDRAWN";
1276
1276
  }>;
1277
1277
  export type ClaimStatus = z.infer<typeof claimStatusSchema>;
1278
1278
  export declare const claimReasonSchema: z.ZodEnum<{
@@ -1308,15 +1308,15 @@ export declare const claimSchema: z.ZodObject<{
1308
1308
  CANCEL: "CANCEL";
1309
1309
  }>;
1310
1310
  status: z.ZodEnum<{
1311
- WITHDRAWN: "WITHDRAWN";
1312
1311
  REJECTED: "REJECTED";
1312
+ COMPLETED: "COMPLETED";
1313
1313
  REQUESTED: "REQUESTED";
1314
1314
  HELD: "HELD";
1315
1315
  COLLECTING: "COLLECTING";
1316
1316
  COLLECTED: "COLLECTED";
1317
1317
  REDELIVERING: "REDELIVERING";
1318
1318
  APPROVED: "APPROVED";
1319
- COMPLETED: "COMPLETED";
1319
+ WITHDRAWN: "WITHDRAWN";
1320
1320
  }>;
1321
1321
  orderId: z.ZodString;
1322
1322
  orderItemId: z.ZodString;
@@ -1332,8 +1332,8 @@ export declare const claimSchema: z.ZodObject<{
1332
1332
  }>;
1333
1333
  reasonDetail: z.ZodNullable<z.ZodString>;
1334
1334
  responsibility: z.ZodEnum<{
1335
- SELLER: "SELLER";
1336
1335
  BUYER: "BUYER";
1336
+ SELLER: "SELLER";
1337
1337
  }>;
1338
1338
  claimDeliveryFee: z.ZodNumber;
1339
1339
  expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
@@ -1396,15 +1396,15 @@ export declare const claimDetailSchema: z.ZodObject<{
1396
1396
  CANCEL: "CANCEL";
1397
1397
  }>;
1398
1398
  status: z.ZodEnum<{
1399
- WITHDRAWN: "WITHDRAWN";
1400
1399
  REJECTED: "REJECTED";
1400
+ COMPLETED: "COMPLETED";
1401
1401
  REQUESTED: "REQUESTED";
1402
1402
  HELD: "HELD";
1403
1403
  COLLECTING: "COLLECTING";
1404
1404
  COLLECTED: "COLLECTED";
1405
1405
  REDELIVERING: "REDELIVERING";
1406
1406
  APPROVED: "APPROVED";
1407
- COMPLETED: "COMPLETED";
1407
+ WITHDRAWN: "WITHDRAWN";
1408
1408
  }>;
1409
1409
  orderId: z.ZodString;
1410
1410
  orderItemId: z.ZodString;
@@ -1420,8 +1420,8 @@ export declare const claimDetailSchema: z.ZodObject<{
1420
1420
  }>;
1421
1421
  reasonDetail: z.ZodNullable<z.ZodString>;
1422
1422
  responsibility: z.ZodEnum<{
1423
- SELLER: "SELLER";
1424
1423
  BUYER: "BUYER";
1424
+ SELLER: "SELLER";
1425
1425
  }>;
1426
1426
  claimDeliveryFee: z.ZodNumber;
1427
1427
  expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
@@ -1453,20 +1453,20 @@ export declare const claimDetailSchema: z.ZodObject<{
1453
1453
  }, z.core.$strip>>;
1454
1454
  histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
1455
1455
  status: z.ZodEnum<{
1456
- WITHDRAWN: "WITHDRAWN";
1457
1456
  REJECTED: "REJECTED";
1457
+ COMPLETED: "COMPLETED";
1458
1458
  REQUESTED: "REQUESTED";
1459
1459
  HELD: "HELD";
1460
1460
  COLLECTING: "COLLECTING";
1461
1461
  COLLECTED: "COLLECTED";
1462
1462
  REDELIVERING: "REDELIVERING";
1463
1463
  APPROVED: "APPROVED";
1464
- COMPLETED: "COMPLETED";
1464
+ WITHDRAWN: "WITHDRAWN";
1465
1465
  }>;
1466
1466
  actor: z.ZodEnum<{
1467
- SELLER: "SELLER";
1468
1467
  SYSTEM: "SYSTEM";
1469
1468
  BUYER: "BUYER";
1469
+ SELLER: "SELLER";
1470
1470
  }>;
1471
1471
  occurredAt: z.ZodString;
1472
1472
  }, z.core.$strip>>>;
@@ -1503,6 +1503,241 @@ export declare const approveClaimResultSchema: z.ZodObject<{
1503
1503
  }, z.core.$strip>;
1504
1504
  export type ApproveClaimResult = z.infer<typeof approveClaimResultSchema>;
1505
1505
  //#endregion
1506
+ //#region src/schemas/collection.d.ts
1507
+ /**
1508
+ * 컬렉션 (이슈 #83) — 상품을 어디에 보여 줄지 정하는 묶음이다. 카테고리는 상품이 무엇인지를 정하고 상품당 하나지만, 컬렉션은
1509
+ * 다대다다. 이벤트·기획전은 기간이 있는 직접 선택 컬렉션이다. 권한은 카테고리와 같다(`category:r`·`category:rw`).
1510
+ *
1511
+ * 유형은 만들 때 정하고 바꿀 수 없다. 지금은 직접 선택(`MANUAL`)만 만들 수 있다. 조건 자동(`AUTOMATIC`)은 다음 단계에서 열리고,
1512
+ * 응답의 `type`은 값이 늘 수 있어 문자열이다.
1513
+ */
1514
+ /** 상점당 컬렉션 최대 개수 — 넘으면 409 `COLLECTION_LIMIT_EXCEEDED` */
1515
+ export declare const MAX_COLLECTIONS = 200;
1516
+ /** 직접 선택 컬렉션 하나에 담는 상품 최대 개수 — 넘으면 409 `COLLECTION_PRODUCT_LIMIT_EXCEEDED` */
1517
+ export declare const MAX_COLLECTION_PRODUCTS = 1000;
1518
+ /** 상품 뒤에 붙이기(`POST /v1/collections/{id}/products`) 한 번에 보내는 상품 최대 개수 */
1519
+ export declare const MAX_COLLECTION_PRODUCTS_PER_ADD = 500;
1520
+ /** 제목 최대 글자 수 */
1521
+ export declare const MAX_COLLECTION_TITLE = 60;
1522
+ /** 설명 최대 글자 수 */
1523
+ export declare const MAX_COLLECTION_DESCRIPTION = 500;
1524
+ /** 주소(slug) 형식 — 영문 소문자·숫자·하이픈, 첫 글자는 영문 소문자나 숫자, 64자까지 */
1525
+ export declare const COLLECTION_SLUG_PATTERN: RegExp;
1526
+ /** 유형 — `MANUAL`(직접 선택)·`AUTOMATIC`(조건 자동, 아직 만들 수 없다) */
1527
+ export declare const COLLECTION_TYPES: readonly ["MANUAL", "AUTOMATIC"];
1528
+ export type CollectionType = (typeof COLLECTION_TYPES)[number];
1529
+ /**
1530
+ * 상품 정렬 — `MANUAL`은 직접 정한 순서(직접 선택 컬렉션만)다. `BEST_SELLING`(판매량순)은 판매량 집계가 열릴 때 받는다.
1531
+ * 저장 값 전체 목록이고, 쓰기에서 받는 값은 `collectionProductSortRequestSchema`다.
1532
+ */
1533
+ export declare const COLLECTION_PRODUCT_SORTS: readonly ["MANUAL", "LATEST", "BEST_SELLING", "PRICE_ASC", "PRICE_DESC", "REVIEW_COUNT", "RATING_DESC", "RECOMMEND"];
1534
+ export type CollectionProductSort = (typeof COLLECTION_PRODUCT_SORTS)[number];
1535
+ export declare const collectionProductSortRequestSchema: z.ZodEnum<{
1536
+ PRICE_ASC: "PRICE_ASC";
1537
+ PRICE_DESC: "PRICE_DESC";
1538
+ MANUAL: "MANUAL";
1539
+ LATEST: "LATEST";
1540
+ REVIEW_COUNT: "REVIEW_COUNT";
1541
+ RATING_DESC: "RATING_DESC";
1542
+ RECOMMEND: "RECOMMEND";
1543
+ }>;
1544
+ /** 노출 상태 — 노출 여부와 기간에서 나온 값이다. 숨김이 기간보다 앞선다 */
1545
+ export declare const collectionStateSchema: z.ZodEnum<{
1546
+ ACTIVE: "ACTIVE";
1547
+ ENDED: "ENDED";
1548
+ SCHEDULED: "SCHEDULED";
1549
+ HIDDEN: "HIDDEN";
1550
+ }>;
1551
+ export type CollectionState = z.infer<typeof collectionStateSchema>;
1552
+ /** 노출 상태 판정 — 숨김 → 시작 전(예약) → 종료 → 노출 중. `now`는 판정 시각이다 */
1553
+ export declare function collectionStateOf(collection: {
1554
+ visible: boolean;
1555
+ startsAt: string | null;
1556
+ endsAt: string | null;
1557
+ }, now: Date): CollectionState;
1558
+ export declare const collectionSchema: z.ZodObject<{
1559
+ collectionId: z.ZodString;
1560
+ type: z.ZodString;
1561
+ title: z.ZodString;
1562
+ slug: z.ZodString;
1563
+ description: z.ZodString;
1564
+ imageUrl: z.ZodNullable<z.ZodString>;
1565
+ productSort: z.ZodString;
1566
+ visible: z.ZodBoolean;
1567
+ startsAt: z.ZodNullable<z.ZodString>;
1568
+ endsAt: z.ZodNullable<z.ZodString>;
1569
+ sortOrder: z.ZodNumber;
1570
+ metaTitle: z.ZodNullable<z.ZodString>;
1571
+ metaDescription: z.ZodNullable<z.ZodString>;
1572
+ state: z.ZodEnum<{
1573
+ ACTIVE: "ACTIVE";
1574
+ ENDED: "ENDED";
1575
+ SCHEDULED: "SCHEDULED";
1576
+ HIDDEN: "HIDDEN";
1577
+ }>;
1578
+ productCount: z.ZodNumber;
1579
+ revision: z.ZodNumber;
1580
+ createdAt: z.ZodString;
1581
+ updatedAt: z.ZodString;
1582
+ }, z.core.$strip>;
1583
+ export type Collection = z.infer<typeof collectionSchema>;
1584
+ /**
1585
+ * `POST /v1/collections` — 직접 선택 컬렉션을 만든다. `slug`를 생략하면 `c-{id 뒤 8자}`로 만든다.
1586
+ * `productIds`는 처음 담을 상품과 순서다.
1587
+ */
1588
+ export declare const collectionCreateRequestSchema: z.ZodObject<{
1589
+ title: z.ZodString;
1590
+ slug: z.ZodOptional<z.ZodString>;
1591
+ type: z.ZodDefault<z.ZodEnum<{
1592
+ MANUAL: "MANUAL";
1593
+ }>>;
1594
+ description: z.ZodDefault<z.ZodString>;
1595
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
1596
+ productSort: z.ZodDefault<z.ZodEnum<{
1597
+ PRICE_ASC: "PRICE_ASC";
1598
+ PRICE_DESC: "PRICE_DESC";
1599
+ MANUAL: "MANUAL";
1600
+ LATEST: "LATEST";
1601
+ REVIEW_COUNT: "REVIEW_COUNT";
1602
+ RATING_DESC: "RATING_DESC";
1603
+ RECOMMEND: "RECOMMEND";
1604
+ }>>;
1605
+ visible: z.ZodDefault<z.ZodBoolean>;
1606
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
1607
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
1608
+ sortOrder: z.ZodOptional<z.ZodNumber>;
1609
+ metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1610
+ metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1611
+ productIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
1612
+ }, z.core.$strip>;
1613
+ export type CollectionCreateRequest = z.infer<typeof collectionCreateRequestSchema>;
1614
+ export type CollectionCreateRequestInput = z.input<typeof collectionCreateRequestSchema>;
1615
+ /**
1616
+ * `PATCH /v1/collections/{collectionId}` — 준 항목만 바뀐다. `type`을 주면 400 `COLLECTION_TYPE_IMMUTABLE`이다.
1617
+ * `revision`을 주면 그 번호일 때만 바뀌고, 그 사이 다른 수정이 있었으면 409 `COLLECTION_CHANGED`다.
1618
+ */
1619
+ export declare const collectionPatchRequestSchema: z.ZodObject<{
1620
+ title: z.ZodOptional<z.ZodString>;
1621
+ slug: z.ZodOptional<z.ZodString>;
1622
+ type: z.ZodOptional<z.ZodString>;
1623
+ description: z.ZodOptional<z.ZodString>;
1624
+ imageUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
1625
+ productSort: z.ZodOptional<z.ZodEnum<{
1626
+ PRICE_ASC: "PRICE_ASC";
1627
+ PRICE_DESC: "PRICE_DESC";
1628
+ MANUAL: "MANUAL";
1629
+ LATEST: "LATEST";
1630
+ REVIEW_COUNT: "REVIEW_COUNT";
1631
+ RATING_DESC: "RATING_DESC";
1632
+ RECOMMEND: "RECOMMEND";
1633
+ }>>;
1634
+ visible: z.ZodOptional<z.ZodBoolean>;
1635
+ startsAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
1636
+ endsAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
1637
+ sortOrder: z.ZodOptional<z.ZodNumber>;
1638
+ metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1639
+ metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1640
+ revision: z.ZodOptional<z.ZodNumber>;
1641
+ }, z.core.$strip>;
1642
+ export type CollectionPatchRequest = z.infer<typeof collectionPatchRequestSchema>;
1643
+ /** `PUT /v1/collections/{collectionId}/products` — 담긴 상품을 통째로 바꾼다(순서 포함) */
1644
+ export declare const collectionProductsReplaceRequestSchema: z.ZodObject<{
1645
+ productIds: z.ZodArray<z.ZodString>;
1646
+ revision: z.ZodOptional<z.ZodNumber>;
1647
+ }, z.core.$strip>;
1648
+ export type CollectionProductsReplaceRequest = z.infer<typeof collectionProductsReplaceRequestSchema>;
1649
+ /** `POST /v1/collections/{collectionId}/products` — 뒤에 붙인다. 이미 담긴 상품은 그 자리에 둔다 */
1650
+ export declare const collectionProductsAddRequestSchema: z.ZodObject<{
1651
+ productIds: z.ZodArray<z.ZodString>;
1652
+ }, z.core.$strip>;
1653
+ export type CollectionProductsAddRequest = z.infer<typeof collectionProductsAddRequestSchema>;
1654
+ /** 컬렉션에 담긴 상품 한 줄 */
1655
+ export declare const collectionProductSchema: z.ZodObject<{
1656
+ productId: z.ZodString;
1657
+ name: z.ZodString;
1658
+ thumbnailUrl: z.ZodNullable<z.ZodString>;
1659
+ status: z.ZodString;
1660
+ salePrice: z.ZodNumber;
1661
+ position: z.ZodNumber;
1662
+ addedAt: z.ZodString;
1663
+ }, z.core.$strip>;
1664
+ export type CollectionProduct = z.infer<typeof collectionProductSchema>;
1665
+ export declare const collectionStateCountsSchema: z.ZodObject<{
1666
+ ALL: z.ZodNumber;
1667
+ ACTIVE: z.ZodNumber;
1668
+ SCHEDULED: z.ZodNumber;
1669
+ ENDED: z.ZodNumber;
1670
+ HIDDEN: z.ZodNumber;
1671
+ }, z.core.$strip>;
1672
+ /** 목록 응답 — 페이지 + 상태별 건수(`q`·`type`·`productId`를 적용하고 `state`는 적용하기 전) */
1673
+ export declare const collectionPageSchema: z.ZodObject<{
1674
+ page: z.ZodNumber;
1675
+ size: z.ZodNumber;
1676
+ totalElements: z.ZodNumber;
1677
+ totalPages: z.ZodNumber;
1678
+ contents: z.ZodArray<z.ZodObject<{
1679
+ collectionId: z.ZodString;
1680
+ type: z.ZodString;
1681
+ title: z.ZodString;
1682
+ slug: z.ZodString;
1683
+ description: z.ZodString;
1684
+ imageUrl: z.ZodNullable<z.ZodString>;
1685
+ productSort: z.ZodString;
1686
+ visible: z.ZodBoolean;
1687
+ startsAt: z.ZodNullable<z.ZodString>;
1688
+ endsAt: z.ZodNullable<z.ZodString>;
1689
+ sortOrder: z.ZodNumber;
1690
+ metaTitle: z.ZodNullable<z.ZodString>;
1691
+ metaDescription: z.ZodNullable<z.ZodString>;
1692
+ state: z.ZodEnum<{
1693
+ ACTIVE: "ACTIVE";
1694
+ ENDED: "ENDED";
1695
+ SCHEDULED: "SCHEDULED";
1696
+ HIDDEN: "HIDDEN";
1697
+ }>;
1698
+ productCount: z.ZodNumber;
1699
+ revision: z.ZodNumber;
1700
+ createdAt: z.ZodString;
1701
+ updatedAt: z.ZodString;
1702
+ }, z.core.$strip>>;
1703
+ stateCounts: z.ZodObject<{
1704
+ ALL: z.ZodNumber;
1705
+ ACTIVE: z.ZodNumber;
1706
+ SCHEDULED: z.ZodNumber;
1707
+ ENDED: z.ZodNumber;
1708
+ HIDDEN: z.ZodNumber;
1709
+ }, z.core.$strip>;
1710
+ }, z.core.$strip>;
1711
+ export type CollectionPage = z.infer<typeof collectionPageSchema>;
1712
+ export interface CollectionListParams extends PageParams {
1713
+ q?: string;
1714
+ type?: CollectionType;
1715
+ state?: CollectionState;
1716
+ productId?: string;
1717
+ }
1718
+ /** `GET /v1/collections` 쿼리 — OpenAPI 문서용 형태(값은 쿼리 문자열) */
1719
+ export declare const collectionListQuerySchema: z.ZodObject<{
1720
+ page: z.ZodOptional<z.ZodString>;
1721
+ size: z.ZodOptional<z.ZodString>;
1722
+ q: z.ZodOptional<z.ZodString>;
1723
+ type: z.ZodOptional<z.ZodEnum<{
1724
+ MANUAL: "MANUAL";
1725
+ AUTOMATIC: "AUTOMATIC";
1726
+ }>>;
1727
+ state: z.ZodOptional<z.ZodEnum<{
1728
+ ACTIVE: "ACTIVE";
1729
+ ENDED: "ENDED";
1730
+ SCHEDULED: "SCHEDULED";
1731
+ HIDDEN: "HIDDEN";
1732
+ }>>;
1733
+ productId: z.ZodOptional<z.ZodString>;
1734
+ }, z.core.$strip>;
1735
+ /** `GET /v1/collections/{collectionId}/products` 쿼리 */
1736
+ export declare const collectionProductListQuerySchema: z.ZodObject<{
1737
+ page: z.ZodOptional<z.ZodString>;
1738
+ size: z.ZodOptional<z.ZodString>;
1739
+ }, z.core.$strip>;
1740
+ //#endregion
1506
1741
  //#region src/schemas/coupon.d.ts
1507
1742
  /**
1508
1743
  * 쿠폰 관리 API 계약 (이슈 #47) — `/v1/coupons/**`, 스코프 `promotion:r|rw`.
@@ -1870,8 +2105,8 @@ export declare const consentKindSchema: z.ZodEnum<{
1870
2105
  }>;
1871
2106
  export type ConsentKind = z.infer<typeof consentKindSchema>;
1872
2107
  export declare const consentActionSchema: z.ZodEnum<{
1873
- AGREED: "AGREED";
1874
2108
  WITHDRAWN: "WITHDRAWN";
2109
+ AGREED: "AGREED";
1875
2110
  }>;
1876
2111
  export type ConsentAction = z.infer<typeof consentActionSchema>;
1877
2112
  /**
@@ -1880,12 +2115,12 @@ export type ConsentAction = z.infer<typeof consentActionSchema>;
1880
2115
  * `RECONSENT` 약관 개정 재동의 · `MEMBER_UPDATE` 구매자가 직접 변경 · `SELLER` 셀러가 처리
1881
2116
  */
1882
2117
  export declare const consentSourceSchema: z.ZodEnum<{
2118
+ SELLER: "SELLER";
1883
2119
  SIGNUP: "SIGNUP";
1884
2120
  SOCIAL_SIGNUP: "SOCIAL_SIGNUP";
1885
2121
  DELEGATED: "DELEGATED";
1886
2122
  RECONSENT: "RECONSENT";
1887
2123
  MEMBER_UPDATE: "MEMBER_UPDATE";
1888
- SELLER: "SELLER";
1889
2124
  }>;
1890
2125
  export type ConsentSource = z.infer<typeof consentSourceSchema>;
1891
2126
  /** 동의 이력 한 줄 — 추가만 되고 지워지지 않는다(구매자 탈퇴 시에만 함께 지워진다) */
@@ -1899,16 +2134,16 @@ export declare const customerConsentSchema: z.ZodObject<{
1899
2134
  version: z.ZodNullable<z.ZodString>;
1900
2135
  documentUrl: z.ZodNullable<z.ZodString>;
1901
2136
  action: z.ZodEnum<{
1902
- AGREED: "AGREED";
1903
2137
  WITHDRAWN: "WITHDRAWN";
2138
+ AGREED: "AGREED";
1904
2139
  }>;
1905
2140
  source: z.ZodEnum<{
2141
+ SELLER: "SELLER";
1906
2142
  SIGNUP: "SIGNUP";
1907
2143
  SOCIAL_SIGNUP: "SOCIAL_SIGNUP";
1908
2144
  DELEGATED: "DELEGATED";
1909
2145
  RECONSENT: "RECONSENT";
1910
2146
  MEMBER_UPDATE: "MEMBER_UPDATE";
1911
- SELLER: "SELLER";
1912
2147
  }>;
1913
2148
  occurredAt: z.ZodString;
1914
2149
  }, z.core.$strip>;
@@ -1992,10 +2227,10 @@ export declare const customerDetailSchema: z.ZodObject<{
1992
2227
  marketingAgreed: z.ZodBoolean;
1993
2228
  loginMethods: z.ZodArray<z.ZodObject<{
1994
2229
  method: z.ZodEnum<{
1995
- password: "password";
1996
2230
  kakao: "kakao";
1997
2231
  naver: "naver";
1998
2232
  google: "google";
2233
+ password: "password";
1999
2234
  }>;
2000
2235
  linkedAt: z.ZodString;
2001
2236
  }, z.core.$strip>>;
@@ -2073,14 +2308,14 @@ export declare const customerOrderSchema: z.ZodObject<{
2073
2308
  optionName: z.ZodNullable<z.ZodString>;
2074
2309
  quantity: z.ZodNumber;
2075
2310
  status: z.ZodEnum<{
2076
- PAYMENT_WAITING: "PAYMENT_WAITING";
2077
2311
  PAID: "PAID";
2312
+ CANCELED: "CANCELED";
2313
+ PAYMENT_WAITING: "PAYMENT_WAITING";
2078
2314
  CONFIRMED: "CONFIRMED";
2079
2315
  DISPATCHED: "DISPATCHED";
2080
2316
  DELIVERING: "DELIVERING";
2081
2317
  DELIVERED: "DELIVERED";
2082
2318
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
2083
- CANCELED: "CANCELED";
2084
2319
  }>;
2085
2320
  claimStatus: z.ZodNullable<z.ZodEnum<{
2086
2321
  CANCEL_REQUESTED: "CANCEL_REQUESTED";
@@ -2093,10 +2328,10 @@ export type CustomerOrder = z.infer<typeof customerOrderSchema>;
2093
2328
  /** `POST /v1/customers/{id}/withdraw` 본문 */
2094
2329
  export declare const withdrawCustomerRequestSchema: z.ZodObject<{
2095
2330
  reason: z.ZodEnum<{
2331
+ OTHER: "OTHER";
2096
2332
  BUYER_REQUEST: "BUYER_REQUEST";
2097
2333
  DORMANT: "DORMANT";
2098
2334
  ABUSE: "ABUSE";
2099
- OTHER: "OTHER";
2100
2335
  }>;
2101
2336
  memo: z.ZodOptional<z.ZodString>;
2102
2337
  }, z.core.$strip>;
@@ -2270,8 +2505,8 @@ export declare const customerInquiryListQuerySchema: z.ZodObject<{
2270
2505
  }, z.core.$strip>;
2271
2506
  export declare const settlementStatusSchema: z.ZodEnum<{
2272
2507
  PAID: "PAID";
2273
- HELD: "HELD";
2274
2508
  SCHEDULED: "SCHEDULED";
2509
+ HELD: "HELD";
2275
2510
  }>;
2276
2511
  export type SettlementStatus = z.infer<typeof settlementStatusSchema>;
2277
2512
  export declare const settlementSummarySchema: z.ZodObject<{
@@ -2280,8 +2515,8 @@ export declare const settlementSummarySchema: z.ZodObject<{
2280
2515
  payoutDate: z.ZodNullable<z.ZodString>;
2281
2516
  status: z.ZodEnum<{
2282
2517
  PAID: "PAID";
2283
- HELD: "HELD";
2284
2518
  SCHEDULED: "SCHEDULED";
2519
+ HELD: "HELD";
2285
2520
  }>;
2286
2521
  totalPaymentAmount: z.ZodNumber;
2287
2522
  totalCommission: z.ZodNumber;
@@ -2315,8 +2550,8 @@ export declare const settlementWithDetailsSchema: z.ZodObject<{
2315
2550
  payoutDate: z.ZodNullable<z.ZodString>;
2316
2551
  status: z.ZodEnum<{
2317
2552
  PAID: "PAID";
2318
- HELD: "HELD";
2319
2553
  SCHEDULED: "SCHEDULED";
2554
+ HELD: "HELD";
2320
2555
  }>;
2321
2556
  totalPaymentAmount: z.ZodNumber;
2322
2557
  totalCommission: z.ZodNumber;
@@ -2350,8 +2585,8 @@ export declare const settlementListQuerySchema: z.ZodObject<{
2350
2585
  to: z.ZodOptional<z.ZodString>;
2351
2586
  status: z.ZodOptional<z.ZodEnum<{
2352
2587
  PAID: "PAID";
2353
- HELD: "HELD";
2354
2588
  SCHEDULED: "SCHEDULED";
2589
+ HELD: "HELD";
2355
2590
  }>>;
2356
2591
  }, z.core.$strip>;
2357
2592
  /** `GET /v1/settlements/{settlementId}` 쿼리 — `size`는 돌려줄 상세 내역 건수다(`page`는 무시) */
@@ -2383,8 +2618,8 @@ export declare const eventTypeSchema: z.ZodEnum<{
2383
2618
  }>;
2384
2619
  export type EventType = z.infer<typeof eventTypeSchema>;
2385
2620
  export declare const webhookStatusSchema: z.ZodEnum<{
2386
- ACTIVE: "ACTIVE";
2387
2621
  SUSPENDED: "SUSPENDED";
2622
+ ACTIVE: "ACTIVE";
2388
2623
  }>;
2389
2624
  export type WebhookStatus = z.infer<typeof webhookStatusSchema>;
2390
2625
  export declare const webhookSchema: z.ZodObject<{
@@ -2408,8 +2643,8 @@ export declare const webhookSchema: z.ZodObject<{
2408
2643
  "PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
2409
2644
  }>>;
2410
2645
  status: z.ZodEnum<{
2411
- ACTIVE: "ACTIVE";
2412
2646
  SUSPENDED: "SUSPENDED";
2647
+ ACTIVE: "ACTIVE";
2413
2648
  }>;
2414
2649
  secretPrefix: z.ZodString;
2415
2650
  suspendedAt: z.ZodNullable<z.ZodString>;
@@ -2438,8 +2673,8 @@ export declare const webhookCreatedSchema: z.ZodObject<{
2438
2673
  "PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
2439
2674
  }>>;
2440
2675
  status: z.ZodEnum<{
2441
- ACTIVE: "ACTIVE";
2442
2676
  SUSPENDED: "SUSPENDED";
2677
+ ACTIVE: "ACTIVE";
2443
2678
  }>;
2444
2679
  secretPrefix: z.ZodString;
2445
2680
  suspendedAt: z.ZodNullable<z.ZodString>;
@@ -2980,14 +3215,14 @@ export declare const orderSummarySchema: z.ZodObject<{
2980
3215
  itemCount: z.ZodNumber;
2981
3216
  totalAmount: z.ZodNumber;
2982
3217
  representativeStatus: z.ZodEnum<{
2983
- PAYMENT_WAITING: "PAYMENT_WAITING";
2984
3218
  PAID: "PAID";
3219
+ CANCELED: "CANCELED";
3220
+ PAYMENT_WAITING: "PAYMENT_WAITING";
2985
3221
  CONFIRMED: "CONFIRMED";
2986
3222
  DISPATCHED: "DISPATCHED";
2987
3223
  DELIVERING: "DELIVERING";
2988
3224
  DELIVERED: "DELIVERED";
2989
3225
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
2990
- CANCELED: "CANCELED";
2991
3226
  }>;
2992
3227
  orderedAt: z.ZodString;
2993
3228
  testPayment: z.ZodBoolean;
@@ -3015,14 +3250,14 @@ export declare const orderItemSchema: z.ZodObject<{
3015
3250
  orderItemId: z.ZodString;
3016
3251
  orderId: z.ZodString;
3017
3252
  status: z.ZodEnum<{
3018
- PAYMENT_WAITING: "PAYMENT_WAITING";
3019
3253
  PAID: "PAID";
3254
+ CANCELED: "CANCELED";
3255
+ PAYMENT_WAITING: "PAYMENT_WAITING";
3020
3256
  CONFIRMED: "CONFIRMED";
3021
3257
  DISPATCHED: "DISPATCHED";
3022
3258
  DELIVERING: "DELIVERING";
3023
3259
  DELIVERED: "DELIVERED";
3024
3260
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
3025
- CANCELED: "CANCELED";
3026
3261
  }>;
3027
3262
  claimStatus: z.ZodNullable<z.ZodEnum<{
3028
3263
  CANCEL_REQUESTED: "CANCEL_REQUESTED";
@@ -3174,14 +3409,14 @@ export declare const orderSchema: z.ZodObject<{
3174
3409
  orderItemId: z.ZodString;
3175
3410
  orderId: z.ZodString;
3176
3411
  status: z.ZodEnum<{
3177
- PAYMENT_WAITING: "PAYMENT_WAITING";
3178
3412
  PAID: "PAID";
3413
+ CANCELED: "CANCELED";
3414
+ PAYMENT_WAITING: "PAYMENT_WAITING";
3179
3415
  CONFIRMED: "CONFIRMED";
3180
3416
  DISPATCHED: "DISPATCHED";
3181
3417
  DELIVERING: "DELIVERING";
3182
3418
  DELIVERED: "DELIVERED";
3183
3419
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
3184
- CANCELED: "CANCELED";
3185
3420
  }>;
3186
3421
  claimStatus: z.ZodNullable<z.ZodEnum<{
3187
3422
  CANCEL_REQUESTED: "CANCEL_REQUESTED";
@@ -3266,14 +3501,14 @@ export declare const orderSummaryPageSchema: z.ZodObject<{
3266
3501
  itemCount: z.ZodNumber;
3267
3502
  totalAmount: z.ZodNumber;
3268
3503
  representativeStatus: z.ZodEnum<{
3269
- PAYMENT_WAITING: "PAYMENT_WAITING";
3270
3504
  PAID: "PAID";
3505
+ CANCELED: "CANCELED";
3506
+ PAYMENT_WAITING: "PAYMENT_WAITING";
3271
3507
  CONFIRMED: "CONFIRMED";
3272
3508
  DISPATCHED: "DISPATCHED";
3273
3509
  DELIVERING: "DELIVERING";
3274
3510
  DELIVERED: "DELIVERED";
3275
3511
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
3276
- CANCELED: "CANCELED";
3277
3512
  }>;
3278
3513
  orderedAt: z.ZodString;
3279
3514
  testPayment: z.ZodBoolean;
@@ -3290,14 +3525,14 @@ export declare const orderItemPageSchema: z.ZodObject<{
3290
3525
  orderItemId: z.ZodString;
3291
3526
  orderId: z.ZodString;
3292
3527
  status: z.ZodEnum<{
3293
- PAYMENT_WAITING: "PAYMENT_WAITING";
3294
3528
  PAID: "PAID";
3529
+ CANCELED: "CANCELED";
3530
+ PAYMENT_WAITING: "PAYMENT_WAITING";
3295
3531
  CONFIRMED: "CONFIRMED";
3296
3532
  DISPATCHED: "DISPATCHED";
3297
3533
  DELIVERING: "DELIVERING";
3298
3534
  DELIVERED: "DELIVERED";
3299
3535
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
3300
- CANCELED: "CANCELED";
3301
3536
  }>;
3302
3537
  claimStatus: z.ZodNullable<z.ZodEnum<{
3303
3538
  CANCEL_REQUESTED: "CANCEL_REQUESTED";
@@ -3381,14 +3616,14 @@ export declare const orderListQuerySchema: z.ZodObject<{
3381
3616
  orderedFrom: z.ZodString;
3382
3617
  orderedTo: z.ZodOptional<z.ZodString>;
3383
3618
  status: z.ZodOptional<z.ZodEnum<{
3384
- PAYMENT_WAITING: "PAYMENT_WAITING";
3385
3619
  PAID: "PAID";
3620
+ CANCELED: "CANCELED";
3621
+ PAYMENT_WAITING: "PAYMENT_WAITING";
3386
3622
  CONFIRMED: "CONFIRMED";
3387
3623
  DISPATCHED: "DISPATCHED";
3388
3624
  DELIVERING: "DELIVERING";
3389
3625
  DELIVERED: "DELIVERED";
3390
3626
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
3391
- CANCELED: "CANCELED";
3392
3627
  }>>;
3393
3628
  keyword: z.ZodOptional<z.ZodString>;
3394
3629
  fulfillmentType: z.ZodOptional<z.ZodString>;
@@ -3441,16 +3676,16 @@ export interface OrderItemListParams extends PageParams {
3441
3676
  testPayment?: "true" | "false";
3442
3677
  }
3443
3678
  export declare const deliveryMethodSchema: z.ZodEnum<{
3444
- COURIER: "COURIER";
3445
3679
  DIRECT: "DIRECT";
3680
+ COURIER: "COURIER";
3446
3681
  QUICK: "QUICK";
3447
3682
  NOTHING: "NOTHING";
3448
3683
  }>;
3449
3684
  export type DeliveryMethod = z.infer<typeof deliveryMethodSchema>;
3450
3685
  export declare const dispatchRequestSchema: z.ZodObject<{
3451
3686
  deliveryMethod: z.ZodEnum<{
3452
- COURIER: "COURIER";
3453
3687
  DIRECT: "DIRECT";
3688
+ COURIER: "COURIER";
3454
3689
  QUICK: "QUICK";
3455
3690
  NOTHING: "NOTHING";
3456
3691
  }>;
@@ -3462,8 +3697,8 @@ export type DispatchRequest = z.infer<typeof dispatchRequestSchema>;
3462
3697
  export declare const deliveryInfoSchema: z.ZodObject<{
3463
3698
  orderItemId: z.ZodString;
3464
3699
  deliveryMethod: z.ZodEnum<{
3465
- COURIER: "COURIER";
3466
3700
  DIRECT: "DIRECT";
3701
+ COURIER: "COURIER";
3467
3702
  QUICK: "QUICK";
3468
3703
  NOTHING: "NOTHING";
3469
3704
  }>;
@@ -3489,8 +3724,8 @@ export declare const trackingStageResponseSchema: z.ZodString;
3489
3724
  export declare const deliveryStatusSchema: z.ZodObject<{
3490
3725
  orderItemId: z.ZodString;
3491
3726
  deliveryMethod: z.ZodEnum<{
3492
- COURIER: "COURIER";
3493
3727
  DIRECT: "DIRECT";
3728
+ COURIER: "COURIER";
3494
3729
  QUICK: "QUICK";
3495
3730
  NOTHING: "NOTHING";
3496
3731
  }>;
@@ -4013,6 +4248,21 @@ export type PaymentProvider = z.infer<typeof paymentProviderSchema>;
4013
4248
  */
4014
4249
  export declare const PAYMENT_ROUTING_EXCLUSION_CODES: readonly ["NOT_CONNECTED", "DISABLED", "CREDENTIAL_MISSING", "SANDBOX_IN_LIVE_STORE", "PLATFORM_BLOCKED", "MODE_MISMATCH"];
4015
4250
  export type KnownPaymentRoutingExclusion = (typeof PAYMENT_ROUTING_EXCLUSION_CODES)[number];
4251
+ /**
4252
+ * 결제수단 반복 실패 경고(#86 후속) — 같은 PG·결제수단(·간편결제사)이 가맹점 설정 문제(구매자가 고칠 수 없는 실패, 예: KG이니시스
4253
+ * `V105 [NO MPI SET] 전용화면 미설정`)로 기간 안에 여러 번 실패했다. 구매자에게는 「이 결제수단은 지금 사용할 수 없습니다」가 보이고,
4254
+ * PG 관리자에서 그 결제수단의 전용 화면·채널을 설정해야 다시 쓸 수 있다
4255
+ */
4256
+ export declare const paymentFailureWarningSchema: z.ZodObject<{
4257
+ provider: z.ZodString;
4258
+ method: z.ZodString;
4259
+ easyPayProvider: z.ZodNullable<z.ZodString>;
4260
+ code: z.ZodNullable<z.ZodString>;
4261
+ count: z.ZodNumber;
4262
+ lastAt: z.ZodString;
4263
+ message: z.ZodNullable<z.ZodString>;
4264
+ }, z.core.$strip>;
4265
+ export type PaymentFailureWarning = z.infer<typeof paymentFailureWarningSchema>;
4016
4266
  export declare const paymentSettingsSchema: z.ZodObject<{
4017
4267
  checkoutOrigins: z.ZodArray<z.ZodString>;
4018
4268
  providers: z.ZodArray<z.ZodObject<{
@@ -4160,6 +4410,15 @@ export declare const paymentSettingsSchema: z.ZodObject<{
4160
4410
  LIVE: "LIVE";
4161
4411
  }>>>>;
4162
4412
  candidates: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
4413
+ warnings: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
4414
+ provider: z.ZodString;
4415
+ method: z.ZodString;
4416
+ easyPayProvider: z.ZodNullable<z.ZodString>;
4417
+ code: z.ZodNullable<z.ZodString>;
4418
+ count: z.ZodNumber;
4419
+ lastAt: z.ZodString;
4420
+ message: z.ZodNullable<z.ZodString>;
4421
+ }, z.core.$strip>>>>;
4163
4422
  }, z.core.$strip>;
4164
4423
  export type PaymentSettings = z.infer<typeof paymentSettingsSchema>;
4165
4424
  export declare const paymentProviderVerificationSchema: z.ZodObject<{
@@ -4614,20 +4873,20 @@ export interface PaymentListParams extends PageParams {
4614
4873
  //#endregion
4615
4874
  //#region src/schemas/product.d.ts
4616
4875
  export declare const productStatusSchema: z.ZodEnum<{
4617
- SUSPENDED: "SUSPENDED";
4618
- CLOSED: "CLOSED";
4619
4876
  SALE: "SALE";
4877
+ SUSPENDED: "SUSPENDED";
4620
4878
  OUT_OF_STOCK: "OUT_OF_STOCK";
4879
+ CLOSED: "CLOSED";
4621
4880
  }>;
4622
4881
  export type ProductStatus = z.infer<typeof productStatusSchema>;
4623
4882
  export declare const productSummarySchema: z.ZodObject<{
4624
4883
  productId: z.ZodString;
4625
4884
  name: z.ZodString;
4626
4885
  status: z.ZodEnum<{
4627
- SUSPENDED: "SUSPENDED";
4628
- CLOSED: "CLOSED";
4629
4886
  SALE: "SALE";
4887
+ SUSPENDED: "SUSPENDED";
4630
4888
  OUT_OF_STOCK: "OUT_OF_STOCK";
4889
+ CLOSED: "CLOSED";
4631
4890
  }>;
4632
4891
  salePrice: z.ZodNumber;
4633
4892
  discountedPrice: z.ZodNullable<z.ZodNumber>;
@@ -4811,10 +5070,10 @@ export declare const productSchema: z.ZodObject<{
4811
5070
  productId: z.ZodString;
4812
5071
  name: z.ZodString;
4813
5072
  status: z.ZodEnum<{
4814
- SUSPENDED: "SUSPENDED";
4815
- CLOSED: "CLOSED";
4816
5073
  SALE: "SALE";
5074
+ SUSPENDED: "SUSPENDED";
4817
5075
  OUT_OF_STOCK: "OUT_OF_STOCK";
5076
+ CLOSED: "CLOSED";
4818
5077
  }>;
4819
5078
  salePrice: z.ZodNumber;
4820
5079
  discountedPrice: z.ZodNullable<z.ZodNumber>;
@@ -5279,10 +5538,10 @@ export declare const productPatchRequestSchema: z.ZodObject<{
5279
5538
  name: z.ZodOptional<z.ZodString>;
5280
5539
  salePrice: z.ZodOptional<z.ZodNumber>;
5281
5540
  status: z.ZodOptional<z.ZodEnum<{
5282
- SUSPENDED: "SUSPENDED";
5283
- CLOSED: "CLOSED";
5284
5541
  SALE: "SALE";
5542
+ SUSPENDED: "SUSPENDED";
5285
5543
  OUT_OF_STOCK: "OUT_OF_STOCK";
5544
+ CLOSED: "CLOSED";
5286
5545
  }>>;
5287
5546
  images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
5288
5547
  fulfillment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -5311,11 +5570,11 @@ export declare const productPatchRequestSchema: z.ZodObject<{
5311
5570
  }, z.core.$strict>;
5312
5571
  export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
5313
5572
  export declare const productSortSchema: z.ZodEnum<{
5314
- "updatedAt.desc": "updatedAt.desc";
5315
5573
  "createdAt.desc": "createdAt.desc";
5316
5574
  "createdAt.asc": "createdAt.asc";
5317
5575
  "salePrice.asc": "salePrice.asc";
5318
5576
  "salePrice.desc": "salePrice.desc";
5577
+ "updatedAt.desc": "updatedAt.desc";
5319
5578
  }>;
5320
5579
  export type ProductSort = z.infer<typeof productSortSchema>;
5321
5580
  export interface ProductListParams extends PageParams {
@@ -5330,20 +5589,20 @@ export declare const productListQuerySchema: z.ZodObject<{
5330
5589
  page: z.ZodOptional<z.ZodString>;
5331
5590
  size: z.ZodOptional<z.ZodString>;
5332
5591
  status: z.ZodOptional<z.ZodEnum<{
5333
- SUSPENDED: "SUSPENDED";
5334
- CLOSED: "CLOSED";
5335
5592
  SALE: "SALE";
5593
+ SUSPENDED: "SUSPENDED";
5336
5594
  OUT_OF_STOCK: "OUT_OF_STOCK";
5595
+ CLOSED: "CLOSED";
5337
5596
  }>>;
5338
5597
  categoryId: z.ZodOptional<z.ZodString>;
5339
5598
  keyword: z.ZodOptional<z.ZodString>;
5340
5599
  sellerCode: z.ZodOptional<z.ZodString>;
5341
5600
  sort: z.ZodOptional<z.ZodEnum<{
5342
- "updatedAt.desc": "updatedAt.desc";
5343
5601
  "createdAt.desc": "createdAt.desc";
5344
5602
  "createdAt.asc": "createdAt.asc";
5345
5603
  "salePrice.asc": "salePrice.asc";
5346
5604
  "salePrice.desc": "salePrice.desc";
5605
+ "updatedAt.desc": "updatedAt.desc";
5347
5606
  }>>;
5348
5607
  }, z.core.$strip>;
5349
5608
  export declare const discountRequestSchema: z.ZodObject<{
@@ -5710,9 +5969,9 @@ export declare const storeSchema: z.ZodObject<{
5710
5969
  storeCode: z.ZodString;
5711
5970
  storefrontUrl: z.ZodURL;
5712
5971
  status: z.ZodEnum<{
5713
- ACTIVE: "ACTIVE";
5714
5972
  SUSPENDED: "SUSPENDED";
5715
5973
  CLOSED: "CLOSED";
5974
+ ACTIVE: "ACTIVE";
5716
5975
  }>;
5717
5976
  logoUrl: z.ZodNullable<z.ZodURL>;
5718
5977
  businessNumber: z.ZodNullable<z.ZodString>;
@@ -5724,9 +5983,9 @@ export declare const storeMemberSchema: z.ZodObject<{
5724
5983
  name: z.ZodString;
5725
5984
  email: z.ZodEmail;
5726
5985
  role: z.ZodEnum<{
5727
- OWNER: "OWNER";
5728
5986
  ADMIN: "ADMIN";
5729
5987
  STAFF: "STAFF";
5988
+ OWNER: "OWNER";
5730
5989
  }>;
5731
5990
  joinedAt: z.ZodString;
5732
5991
  lastActiveAt: z.ZodNullable<z.ZodString>;
@@ -5751,10 +6010,10 @@ export declare const invitationSchema: z.ZodObject<{
5751
6010
  STAFF: "STAFF";
5752
6011
  }>;
5753
6012
  status: z.ZodEnum<{
5754
- CANCELED: "CANCELED";
5755
6013
  PENDING: "PENDING";
5756
6014
  EXPIRED: "EXPIRED";
5757
6015
  ACCEPTED: "ACCEPTED";
6016
+ CANCELED: "CANCELED";
5758
6017
  }>;
5759
6018
  invitedBy: z.ZodString;
5760
6019
  expiresAt: z.ZodString;
@@ -5791,10 +6050,10 @@ export type UpdateMemberRoleRequest = z.infer<typeof updateMemberRoleRequestSche
5791
6050
  /** `GET /v1/store/invitations` 쿼리 — OpenAPI 문서용 형태 */
5792
6051
  export declare const invitationListQuerySchema: z.ZodObject<{
5793
6052
  status: z.ZodOptional<z.ZodEnum<{
5794
- CANCELED: "CANCELED";
5795
6053
  PENDING: "PENDING";
5796
6054
  EXPIRED: "EXPIRED";
5797
6055
  ACCEPTED: "ACCEPTED";
6056
+ CANCELED: "CANCELED";
5798
6057
  }>>;
5799
6058
  }, z.core.$strip>;
5800
6059
  /** `PATCH /v1/store/members/{userId}` 응답 — 바뀐 역할 */
@@ -5990,9 +6249,9 @@ export declare const storefrontVersionSchema: z.ZodObject<{
5990
6249
  }, z.core.$strip>;
5991
6250
  export type StorefrontVersion = z.infer<typeof storefrontVersionSchema>;
5992
6251
  export declare const storefrontSiteStatusSchema: z.ZodEnum<{
5993
- ACTIVE: "ACTIVE";
5994
6252
  SUSPENDED: "SUSPENDED";
5995
6253
  CLOSED: "CLOSED";
6254
+ ACTIVE: "ACTIVE";
5996
6255
  }>;
5997
6256
  export type StorefrontSiteStatus = z.infer<typeof storefrontSiteStatusSchema>;
5998
6257
  export declare const storefrontVisibilitySchema: z.ZodEnum<{
@@ -6073,9 +6332,9 @@ export declare const storefrontSiteSchema: z.ZodObject<{
6073
6332
  MANAGED: "MANAGED";
6074
6333
  }>;
6075
6334
  status: z.ZodEnum<{
6076
- ACTIVE: "ACTIVE";
6077
6335
  SUSPENDED: "SUSPENDED";
6078
6336
  CLOSED: "CLOSED";
6337
+ ACTIVE: "ACTIVE";
6079
6338
  }>;
6080
6339
  visibility: z.ZodEnum<{
6081
6340
  COMING_SOON: "COMING_SOON";
@@ -6153,9 +6412,9 @@ export declare const storefrontHostingSchema: z.ZodObject<{
6153
6412
  MANAGED: "MANAGED";
6154
6413
  }>;
6155
6414
  status: z.ZodEnum<{
6156
- ACTIVE: "ACTIVE";
6157
6415
  SUSPENDED: "SUSPENDED";
6158
6416
  CLOSED: "CLOSED";
6417
+ ACTIVE: "ACTIVE";
6159
6418
  }>;
6160
6419
  visibility: z.ZodEnum<{
6161
6420
  COMING_SOON: "COMING_SOON";
@@ -7259,9 +7518,9 @@ export type UploadTicket = z.infer<typeof uploadTicketSchema>;
7259
7518
  //#endregion
7260
7519
  //#region src/schemas/auth.d.ts
7261
7520
  export declare const storeRoleSchema: z.ZodEnum<{
7262
- OWNER: "OWNER";
7263
7521
  ADMIN: "ADMIN";
7264
7522
  STAFF: "STAFF";
7523
+ OWNER: "OWNER";
7265
7524
  }>;
7266
7525
  export type StoreRole = z.infer<typeof storeRoleSchema>;
7267
7526
  export declare const myStoreSchema: z.ZodObject<{
@@ -7269,14 +7528,14 @@ export declare const myStoreSchema: z.ZodObject<{
7269
7528
  storeName: z.ZodString;
7270
7529
  storeCode: z.ZodString;
7271
7530
  role: z.ZodEnum<{
7272
- OWNER: "OWNER";
7273
7531
  ADMIN: "ADMIN";
7274
7532
  STAFF: "STAFF";
7533
+ OWNER: "OWNER";
7275
7534
  }>;
7276
7535
  status: z.ZodEnum<{
7277
- ACTIVE: "ACTIVE";
7278
7536
  SUSPENDED: "SUSPENDED";
7279
7537
  CLOSED: "CLOSED";
7538
+ ACTIVE: "ACTIVE";
7280
7539
  }>;
7281
7540
  }, z.core.$strip>;
7282
7541
  export type MyStore = z.infer<typeof myStoreSchema>;
@@ -7431,8 +7690,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
7431
7690
  storeId: string;
7432
7691
  storeName: string;
7433
7692
  storeCode: string;
7434
- role: "OWNER" | "ADMIN" | "STAFF";
7435
- status: "ACTIVE" | "SUSPENDED" | "CLOSED";
7693
+ role: "ADMIN" | "STAFF" | "OWNER";
7694
+ status: "SUSPENDED" | "CLOSED" | "ACTIVE";
7436
7695
  }[]>;
7437
7696
  me: () => Promise<{
7438
7697
  userId: string;
@@ -7471,7 +7730,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
7471
7730
  contents: {
7472
7731
  productId: string;
7473
7732
  name: string;
7474
- status: "SUSPENDED" | "CLOSED" | "SALE" | "OUT_OF_STOCK";
7733
+ status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
7475
7734
  salePrice: number;
7476
7735
  discountedPrice: number | null;
7477
7736
  stockQuantity: number;
@@ -7488,7 +7747,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
7488
7747
  get: (productId: string) => Promise<{
7489
7748
  productId: string;
7490
7749
  name: string;
7491
- status: "SUSPENDED" | "CLOSED" | "SALE" | "OUT_OF_STOCK";
7750
+ status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
7492
7751
  salePrice: number;
7493
7752
  discountedPrice: number | null;
7494
7753
  stockQuantity: number;
@@ -7585,7 +7844,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
7585
7844
  create: (body: ProductCreateRequestInput, idempotencyKey?: string) => Promise<{
7586
7845
  productId: string;
7587
7846
  name: string;
7588
- status: "SUSPENDED" | "CLOSED" | "SALE" | "OUT_OF_STOCK";
7847
+ status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
7589
7848
  salePrice: number;
7590
7849
  discountedPrice: number | null;
7591
7850
  stockQuantity: number;
@@ -7682,7 +7941,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
7682
7941
  update: (productId: string, body: ProductReplaceRequestInput) => Promise<{
7683
7942
  productId: string;
7684
7943
  name: string;
7685
- status: "SUSPENDED" | "CLOSED" | "SALE" | "OUT_OF_STOCK";
7944
+ status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
7686
7945
  salePrice: number;
7687
7946
  discountedPrice: number | null;
7688
7947
  stockQuantity: number;
@@ -8048,6 +8307,169 @@ export declare function createStoreClient(options: StoreClientOptions): {
8048
8307
  additionalPriceDropped: boolean;
8049
8308
  }>;
8050
8309
  };
8310
+ /**
8311
+ * 컬렉션 (이슈 #83) — 상품을 어디에 보여 줄지 정하는 묶음(다대다). 권한은 카테고리와 같다(`category:r`·`category:rw`).
8312
+ * 쓰기마다 `revision`이 오른다. 수정 본문에 읽은 `revision`을 주면 그 사이 다른 수정이 있을 때 409 `COLLECTION_CHANGED`다.
8313
+ */
8314
+ collections: {
8315
+ list: (params?: CollectionListParams) => Promise<{
8316
+ page: number;
8317
+ size: number;
8318
+ totalElements: number;
8319
+ totalPages: number;
8320
+ contents: {
8321
+ collectionId: string;
8322
+ type: string;
8323
+ title: string;
8324
+ slug: string;
8325
+ description: string;
8326
+ imageUrl: string | null;
8327
+ productSort: string;
8328
+ visible: boolean;
8329
+ startsAt: string | null;
8330
+ endsAt: string | null;
8331
+ sortOrder: number;
8332
+ metaTitle: string | null;
8333
+ metaDescription: string | null;
8334
+ state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
8335
+ productCount: number;
8336
+ revision: number;
8337
+ createdAt: string;
8338
+ updatedAt: string;
8339
+ }[];
8340
+ stateCounts: {
8341
+ ALL: number;
8342
+ ACTIVE: number;
8343
+ SCHEDULED: number;
8344
+ ENDED: number;
8345
+ HIDDEN: number;
8346
+ };
8347
+ }>;
8348
+ get: (collectionId: string) => Promise<{
8349
+ collectionId: string;
8350
+ type: string;
8351
+ title: string;
8352
+ slug: string;
8353
+ description: string;
8354
+ imageUrl: string | null;
8355
+ productSort: string;
8356
+ visible: boolean;
8357
+ startsAt: string | null;
8358
+ endsAt: string | null;
8359
+ sortOrder: number;
8360
+ metaTitle: string | null;
8361
+ metaDescription: string | null;
8362
+ state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
8363
+ productCount: number;
8364
+ revision: number;
8365
+ createdAt: string;
8366
+ updatedAt: string;
8367
+ }>;
8368
+ /** 주소가 겹치면 409 `COLLECTION_SLUG_TAKEN`, 상점당 200개를 넘으면 409 `COLLECTION_LIMIT_EXCEEDED` */
8369
+ create: (body: CollectionCreateRequestInput) => Promise<{
8370
+ collectionId: string;
8371
+ type: string;
8372
+ title: string;
8373
+ slug: string;
8374
+ description: string;
8375
+ imageUrl: string | null;
8376
+ productSort: string;
8377
+ visible: boolean;
8378
+ startsAt: string | null;
8379
+ endsAt: string | null;
8380
+ sortOrder: number;
8381
+ metaTitle: string | null;
8382
+ metaDescription: string | null;
8383
+ state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
8384
+ productCount: number;
8385
+ revision: number;
8386
+ createdAt: string;
8387
+ updatedAt: string;
8388
+ }>;
8389
+ update: (collectionId: string, body: CollectionPatchRequest) => Promise<{
8390
+ collectionId: string;
8391
+ type: string;
8392
+ title: string;
8393
+ slug: string;
8394
+ description: string;
8395
+ imageUrl: string | null;
8396
+ productSort: string;
8397
+ visible: boolean;
8398
+ startsAt: string | null;
8399
+ endsAt: string | null;
8400
+ sortOrder: number;
8401
+ metaTitle: string | null;
8402
+ metaDescription: string | null;
8403
+ state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
8404
+ productCount: number;
8405
+ revision: number;
8406
+ createdAt: string;
8407
+ updatedAt: string;
8408
+ }>;
8409
+ remove: (collectionId: string) => Promise<void>;
8410
+ /** 담긴 상품 — 직접 정한 순서 */
8411
+ listProducts: (collectionId: string, params?: {
8412
+ page?: number;
8413
+ size?: number;
8414
+ }) => Promise<{
8415
+ page: number;
8416
+ size: number;
8417
+ totalElements: number;
8418
+ totalPages: number;
8419
+ contents: {
8420
+ productId: string;
8421
+ name: string;
8422
+ thumbnailUrl: string | null;
8423
+ status: string;
8424
+ salePrice: number;
8425
+ position: number;
8426
+ addedAt: string;
8427
+ }[];
8428
+ }>;
8429
+ /** 담긴 상품을 통째로 바꾼다(순서 포함) */
8430
+ replaceProducts: (collectionId: string, body: CollectionProductsReplaceRequest) => Promise<{
8431
+ collectionId: string;
8432
+ type: string;
8433
+ title: string;
8434
+ slug: string;
8435
+ description: string;
8436
+ imageUrl: string | null;
8437
+ productSort: string;
8438
+ visible: boolean;
8439
+ startsAt: string | null;
8440
+ endsAt: string | null;
8441
+ sortOrder: number;
8442
+ metaTitle: string | null;
8443
+ metaDescription: string | null;
8444
+ state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
8445
+ productCount: number;
8446
+ revision: number;
8447
+ createdAt: string;
8448
+ updatedAt: string;
8449
+ }>;
8450
+ /** 뒤에 붙인다. 이미 담긴 상품은 그 자리에 둔다 */
8451
+ addProducts: (collectionId: string, body: CollectionProductsAddRequest) => Promise<{
8452
+ collectionId: string;
8453
+ type: string;
8454
+ title: string;
8455
+ slug: string;
8456
+ description: string;
8457
+ imageUrl: string | null;
8458
+ productSort: string;
8459
+ visible: boolean;
8460
+ startsAt: string | null;
8461
+ endsAt: string | null;
8462
+ sortOrder: number;
8463
+ metaTitle: string | null;
8464
+ metaDescription: string | null;
8465
+ state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
8466
+ productCount: number;
8467
+ revision: number;
8468
+ createdAt: string;
8469
+ updatedAt: string;
8470
+ }>;
8471
+ removeProduct: (collectionId: string, productId: string) => Promise<void>;
8472
+ };
8051
8473
  categories: {
8052
8474
  list: (params?: {
8053
8475
  parentId?: string;
@@ -8216,7 +8638,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8216
8638
  ordererName: string;
8217
8639
  itemCount: number;
8218
8640
  totalAmount: number;
8219
- representativeStatus: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED";
8641
+ representativeStatus: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
8220
8642
  orderedAt: string;
8221
8643
  testPayment: boolean;
8222
8644
  }[];
@@ -8281,7 +8703,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8281
8703
  items: {
8282
8704
  orderItemId: string;
8283
8705
  orderId: string;
8284
- status: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED";
8706
+ status: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
8285
8707
  claimStatus: "CANCEL_REQUESTED" | "RETURN_REQUESTED" | "EXCHANGE_REQUESTED" | null;
8286
8708
  productId: string;
8287
8709
  productName: string;
@@ -8366,7 +8788,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8366
8788
  contents: {
8367
8789
  orderItemId: string;
8368
8790
  orderId: string;
8369
- status: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED";
8791
+ status: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
8370
8792
  claimStatus: "CANCEL_REQUESTED" | "RETURN_REQUESTED" | "EXCHANGE_REQUESTED" | null;
8371
8793
  productId: string;
8372
8794
  productName: string;
@@ -8450,7 +8872,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8450
8872
  }>;
8451
8873
  dispatch: (orderItemId: string, body: DispatchRequest, idempotencyKey?: string) => Promise<{
8452
8874
  orderItemId: string;
8453
- deliveryMethod: "COURIER" | "DIRECT" | "QUICK" | "NOTHING";
8875
+ deliveryMethod: "DIRECT" | "COURIER" | "QUICK" | "NOTHING";
8454
8876
  carrierCode: string | null;
8455
8877
  carrierName: string | null;
8456
8878
  trackingNumber: string | null;
@@ -8479,7 +8901,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8479
8901
  markDelivered: (orderItemId: string, idempotencyKey?: string) => Promise<{
8480
8902
  orderItemId: string;
8481
8903
  orderId: string;
8482
- status: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED";
8904
+ status: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
8483
8905
  claimStatus: "CANCEL_REQUESTED" | "RETURN_REQUESTED" | "EXCHANGE_REQUESTED" | null;
8484
8906
  productId: string;
8485
8907
  productName: string;
@@ -8547,7 +8969,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8547
8969
  fulfill: (orderItemId: string, body?: FulfillRequest, idempotencyKey?: string) => Promise<{
8548
8970
  orderItemId: string;
8549
8971
  orderId: string;
8550
- status: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED";
8972
+ status: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
8551
8973
  claimStatus: "CANCEL_REQUESTED" | "RETURN_REQUESTED" | "EXCHANGE_REQUESTED" | null;
8552
8974
  productId: string;
8553
8975
  productName: string;
@@ -8610,7 +9032,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8610
9032
  }>;
8611
9033
  getDelivery: (orderItemId: string) => Promise<{
8612
9034
  orderItemId: string;
8613
- deliveryMethod: "COURIER" | "DIRECT" | "QUICK" | "NOTHING";
9035
+ deliveryMethod: "DIRECT" | "COURIER" | "QUICK" | "NOTHING";
8614
9036
  carrierCode: string | null;
8615
9037
  carrierName: string | null;
8616
9038
  trackingNumber: string | null;
@@ -8648,14 +9070,14 @@ export declare function createStoreClient(options: StoreClientOptions): {
8648
9070
  contents: {
8649
9071
  claimId: string;
8650
9072
  type: "RETURN" | "EXCHANGE" | "CANCEL";
8651
- status: "WITHDRAWN" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED";
9073
+ status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
8652
9074
  orderId: string;
8653
9075
  orderItemId: string;
8654
9076
  productName: string;
8655
9077
  quantity: number;
8656
9078
  reason: "CHANGE_OF_MIND" | "WRONG_ORDER" | "DEFECTIVE" | "WRONG_DELIVERY" | "DIFFERENT_FROM_PAGE" | "DELAY";
8657
9079
  reasonDetail: string | null;
8658
- responsibility: "SELLER" | "BUYER";
9080
+ responsibility: "BUYER" | "SELLER";
8659
9081
  claimDeliveryFee: number;
8660
9082
  expectedRefundAmount: number | null;
8661
9083
  expectedDeliveryFeeRefundAmount: number | null;
@@ -8686,14 +9108,14 @@ export declare function createStoreClient(options: StoreClientOptions): {
8686
9108
  get: (claimId: string) => Promise<{
8687
9109
  claimId: string;
8688
9110
  type: "RETURN" | "EXCHANGE" | "CANCEL";
8689
- status: "WITHDRAWN" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED";
9111
+ status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
8690
9112
  orderId: string;
8691
9113
  orderItemId: string;
8692
9114
  productName: string;
8693
9115
  quantity: number;
8694
9116
  reason: "CHANGE_OF_MIND" | "WRONG_ORDER" | "DEFECTIVE" | "WRONG_DELIVERY" | "DIFFERENT_FROM_PAGE" | "DELAY";
8695
9117
  reasonDetail: string | null;
8696
- responsibility: "SELLER" | "BUYER";
9118
+ responsibility: "BUYER" | "SELLER";
8697
9119
  claimDeliveryFee: number;
8698
9120
  expectedRefundAmount: number | null;
8699
9121
  expectedDeliveryFeeRefundAmount: number | null;
@@ -8720,8 +9142,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
8720
9142
  address2: string | null;
8721
9143
  } | null;
8722
9144
  histories?: {
8723
- status: "WITHDRAWN" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED";
8724
- actor: "SELLER" | "SYSTEM" | "BUYER";
9145
+ status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
9146
+ actor: "SYSTEM" | "BUYER" | "SELLER";
8725
9147
  occurredAt: string;
8726
9148
  }[] | undefined;
8727
9149
  }>;
@@ -8752,14 +9174,14 @@ export declare function createStoreClient(options: StoreClientOptions): {
8752
9174
  completeExchange: (claimId: string) => Promise<{
8753
9175
  claimId: string;
8754
9176
  type: "RETURN" | "EXCHANGE" | "CANCEL";
8755
- status: "WITHDRAWN" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED";
9177
+ status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
8756
9178
  orderId: string;
8757
9179
  orderItemId: string;
8758
9180
  productName: string;
8759
9181
  quantity: number;
8760
9182
  reason: "CHANGE_OF_MIND" | "WRONG_ORDER" | "DEFECTIVE" | "WRONG_DELIVERY" | "DIFFERENT_FROM_PAGE" | "DELAY";
8761
9183
  reasonDetail: string | null;
8762
- responsibility: "SELLER" | "BUYER";
9184
+ responsibility: "BUYER" | "SELLER";
8763
9185
  claimDeliveryFee: number;
8764
9186
  expectedRefundAmount: number | null;
8765
9187
  expectedDeliveryFeeRefundAmount: number | null;
@@ -8961,7 +9383,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8961
9383
  point: number;
8962
9384
  marketingAgreed: boolean;
8963
9385
  loginMethods: {
8964
- method: "password" | "kakao" | "naver" | "google";
9386
+ method: "kakao" | "naver" | "google" | "password";
8965
9387
  linkedAt: string;
8966
9388
  }[];
8967
9389
  consents: {
@@ -9028,7 +9450,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9028
9450
  productName: string;
9029
9451
  optionName: string | null;
9030
9452
  quantity: number;
9031
- status: "PAYMENT_WAITING" | "PAID" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | "CANCELED";
9453
+ status: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
9032
9454
  claimStatus: "CANCEL_REQUESTED" | "RETURN_REQUESTED" | "EXCHANGE_REQUESTED" | null;
9033
9455
  }[];
9034
9456
  }[];
@@ -9046,8 +9468,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
9046
9468
  kind: "TERMS" | "PRIVACY" | "MARKETING";
9047
9469
  version: string | null;
9048
9470
  documentUrl: string | null;
9049
- action: "AGREED" | "WITHDRAWN";
9050
- source: "SIGNUP" | "SOCIAL_SIGNUP" | "DELEGATED" | "RECONSENT" | "MEMBER_UPDATE" | "SELLER";
9471
+ action: "WITHDRAWN" | "AGREED";
9472
+ source: "SELLER" | "SIGNUP" | "SOCIAL_SIGNUP" | "DELEGATED" | "RECONSENT" | "MEMBER_UPDATE";
9051
9473
  occurredAt: string;
9052
9474
  }[];
9053
9475
  }>;
@@ -9499,7 +9921,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9499
9921
  settlementId: string;
9500
9922
  settlementDate: string;
9501
9923
  payoutDate: string | null;
9502
- status: "PAID" | "HELD" | "SCHEDULED";
9924
+ status: "PAID" | "SCHEDULED" | "HELD";
9503
9925
  totalPaymentAmount: number;
9504
9926
  totalCommission: number;
9505
9927
  totalDeliveryFee: number;
@@ -9513,7 +9935,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9513
9935
  settlementId: string;
9514
9936
  settlementDate: string;
9515
9937
  payoutDate: string | null;
9516
- status: "PAID" | "HELD" | "SCHEDULED";
9938
+ status: "PAID" | "SCHEDULED" | "HELD";
9517
9939
  totalPaymentAmount: number;
9518
9940
  totalCommission: number;
9519
9941
  totalDeliveryFee: number;
@@ -9653,9 +10075,9 @@ export declare function createStoreClient(options: StoreClientOptions): {
9653
10075
  }>;
9654
10076
  /** `GET /v1/analytics/sources` — 채널·소스·캠페인·기기별 세션과 구매 */
9655
10077
  sources: (params: AnalyticsSourcesParams) => Promise<{
9656
- groupBy: "CHANNEL" | "SOURCE" | "CAMPAIGN" | "DEVICE";
10078
+ groupBy: "CAMPAIGN" | "CHANNEL" | "SOURCE" | "DEVICE";
9657
10079
  rows: {
9658
- channel: "PAID" | "UNKNOWN" | "DIRECT" | "CAMPAIGN" | "ORGANIC_SEARCH" | "SOCIAL" | "EMAIL" | "REFERRAL" | null;
10080
+ channel: "UNKNOWN" | "DIRECT" | "ORGANIC_SEARCH" | "SOCIAL" | "PAID" | "EMAIL" | "CAMPAIGN" | "REFERRAL" | null;
9659
10081
  source: string | null;
9660
10082
  medium: string | null;
9661
10083
  campaign: string | null;
@@ -9760,7 +10182,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9760
10182
  checkout: (params: AnalyticsRangeParams) => Promise<{
9761
10183
  sessions: number;
9762
10184
  outcomes: {
9763
- outcome: "OTHER" | "COMPLETED" | "NOT_OPENED" | "USER_CANCELED" | "DECLINED" | "PREPARE_FAILURE" | "IN_PROGRESS";
10185
+ outcome: "COMPLETED" | "NOT_OPENED" | "USER_CANCELED" | "DECLINED" | "PREPARE_FAILURE" | "OTHER" | "IN_PROGRESS";
9764
10186
  sessions: number;
9765
10187
  }[];
9766
10188
  from: string;
@@ -9984,6 +10406,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
9984
10406
  }[];
9985
10407
  environment: "TEST" | "LIVE" | null;
9986
10408
  candidates: string[];
10409
+ warnings: {
10410
+ provider: string;
10411
+ method: string;
10412
+ easyPayProvider: string | null;
10413
+ code: string | null;
10414
+ count: number;
10415
+ lastAt: string;
10416
+ message: string | null;
10417
+ }[];
9987
10418
  }>;
9988
10419
  /**
9989
10420
  * `PUT /v1/store/payment-settings` — `priority`에는 연결된 PG를 개수와 무관하게 모두 한 번씩 나열한다
@@ -10085,6 +10516,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
10085
10516
  }[];
10086
10517
  environment: "TEST" | "LIVE" | null;
10087
10518
  candidates: string[];
10519
+ warnings: {
10520
+ provider: string;
10521
+ method: string;
10522
+ easyPayProvider: string | null;
10523
+ code: string | null;
10524
+ count: number;
10525
+ lastAt: string;
10526
+ message: string | null;
10527
+ }[];
10088
10528
  }>;
10089
10529
  /**
10090
10530
  * `PUT /v1/store/payment-providers/tosspayments` — 자격 증명 세트 저장. `environment`는 **저장할 세트**(`TEST`·`LIVE`)이고
@@ -10610,7 +11050,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10610
11050
  webhookId: string;
10611
11051
  url: string;
10612
11052
  eventTypes: ("ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK")[];
10613
- status: "ACTIVE" | "SUSPENDED";
11053
+ status: "SUSPENDED" | "ACTIVE";
10614
11054
  secretPrefix: string;
10615
11055
  suspendedAt: string | null;
10616
11056
  createdAt: string;
@@ -10620,7 +11060,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10620
11060
  webhookId: string;
10621
11061
  url: string;
10622
11062
  eventTypes: ("ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK")[];
10623
- status: "ACTIVE" | "SUSPENDED";
11063
+ status: "SUSPENDED" | "ACTIVE";
10624
11064
  secretPrefix: string;
10625
11065
  suspendedAt: string | null;
10626
11066
  createdAt: string;
@@ -10630,7 +11070,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10630
11070
  webhookId: string;
10631
11071
  url: string;
10632
11072
  eventTypes: ("ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK")[];
10633
- status: "ACTIVE" | "SUSPENDED";
11073
+ status: "SUSPENDED" | "ACTIVE";
10634
11074
  secretPrefix: string;
10635
11075
  suspendedAt: string | null;
10636
11076
  createdAt: string;
@@ -10640,7 +11080,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10640
11080
  webhookId: string;
10641
11081
  url: string;
10642
11082
  eventTypes: ("ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK")[];
10643
- status: "ACTIVE" | "SUSPENDED";
11083
+ status: "SUSPENDED" | "ACTIVE";
10644
11084
  secretPrefix: string;
10645
11085
  suspendedAt: string | null;
10646
11086
  createdAt: string;
@@ -10655,7 +11095,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10655
11095
  webhookId: string;
10656
11096
  url: string;
10657
11097
  eventTypes: ("ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK")[];
10658
- status: "ACTIVE" | "SUSPENDED";
11098
+ status: "SUSPENDED" | "ACTIVE";
10659
11099
  secretPrefix: string;
10660
11100
  suspendedAt: string | null;
10661
11101
  createdAt: string;
@@ -11142,7 +11582,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11142
11582
  }[];
11143
11583
  templateId: string;
11144
11584
  sourceMode: "CUSTOM" | "MANAGED";
11145
- status: "ACTIVE" | "SUSPENDED" | "CLOSED";
11585
+ status: "SUSPENDED" | "CLOSED" | "ACTIVE";
11146
11586
  visibility: "COMING_SOON" | "PUBLIC";
11147
11587
  publishedVersion: {
11148
11588
  versionId: string;
@@ -11200,7 +11640,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11200
11640
  }[];
11201
11641
  templateId: string;
11202
11642
  sourceMode: "CUSTOM" | "MANAGED";
11203
- status: "ACTIVE" | "SUSPENDED" | "CLOSED";
11643
+ status: "SUSPENDED" | "CLOSED" | "ACTIVE";
11204
11644
  visibility: "COMING_SOON" | "PUBLIC";
11205
11645
  publishedVersion: {
11206
11646
  versionId: string;
@@ -11296,7 +11736,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11296
11736
  }[];
11297
11737
  templateId: string;
11298
11738
  sourceMode: "CUSTOM" | "MANAGED";
11299
- status: "ACTIVE" | "SUSPENDED" | "CLOSED";
11739
+ status: "SUSPENDED" | "CLOSED" | "ACTIVE";
11300
11740
  visibility: "COMING_SOON" | "PUBLIC";
11301
11741
  publishedVersion: {
11302
11742
  versionId: string;
@@ -11360,7 +11800,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11360
11800
  }[];
11361
11801
  templateId: string;
11362
11802
  sourceMode: "CUSTOM" | "MANAGED";
11363
- status: "ACTIVE" | "SUSPENDED" | "CLOSED";
11803
+ status: "SUSPENDED" | "CLOSED" | "ACTIVE";
11364
11804
  visibility: "COMING_SOON" | "PUBLIC";
11365
11805
  publishedVersion: {
11366
11806
  versionId: string;
@@ -11408,7 +11848,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11408
11848
  }[];
11409
11849
  templateId: string;
11410
11850
  sourceMode: "CUSTOM" | "MANAGED";
11411
- status: "ACTIVE" | "SUSPENDED" | "CLOSED";
11851
+ status: "SUSPENDED" | "CLOSED" | "ACTIVE";
11412
11852
  visibility: "COMING_SOON" | "PUBLIC";
11413
11853
  publishedVersion: {
11414
11854
  versionId: string;
@@ -11456,7 +11896,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11456
11896
  }[];
11457
11897
  templateId: string;
11458
11898
  sourceMode: "CUSTOM" | "MANAGED";
11459
- status: "ACTIVE" | "SUSPENDED" | "CLOSED";
11899
+ status: "SUSPENDED" | "CLOSED" | "ACTIVE";
11460
11900
  visibility: "COMING_SOON" | "PUBLIC";
11461
11901
  publishedVersion: {
11462
11902
  versionId: string;
@@ -11504,7 +11944,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11504
11944
  }[];
11505
11945
  templateId: string;
11506
11946
  sourceMode: "CUSTOM" | "MANAGED";
11507
- status: "ACTIVE" | "SUSPENDED" | "CLOSED";
11947
+ status: "SUSPENDED" | "CLOSED" | "ACTIVE";
11508
11948
  visibility: "COMING_SOON" | "PUBLIC";
11509
11949
  publishedVersion: {
11510
11950
  versionId: string;
@@ -11655,7 +12095,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11655
12095
  }[];
11656
12096
  templateId: string;
11657
12097
  sourceMode: "CUSTOM" | "MANAGED";
11658
- status: "ACTIVE" | "SUSPENDED" | "CLOSED";
12098
+ status: "SUSPENDED" | "CLOSED" | "ACTIVE";
11659
12099
  visibility: "COMING_SOON" | "PUBLIC";
11660
12100
  publishedVersion: {
11661
12101
  versionId: string;
@@ -12218,7 +12658,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12218
12658
  code: string;
12219
12659
  name: string;
12220
12660
  };
12221
- status: "CANCELED" | "ACTIVE" | "PAST_DUE" | "INCOMPLETE";
12661
+ status: "ACTIVE" | "CANCELED" | "PAST_DUE" | "INCOMPLETE";
12222
12662
  interval: "MONTH" | null;
12223
12663
  cancelAtPeriodEnd: boolean;
12224
12664
  period: {
@@ -12358,7 +12798,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12358
12798
  name: string;
12359
12799
  storeCode: string;
12360
12800
  storefrontUrl: string;
12361
- status: "ACTIVE" | "SUSPENDED" | "CLOSED";
12801
+ status: "SUSPENDED" | "CLOSED" | "ACTIVE";
12362
12802
  logoUrl: string | null;
12363
12803
  businessNumber: string | null;
12364
12804
  customerCenterPhone: string | null;
@@ -12406,7 +12846,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12406
12846
  name: string;
12407
12847
  storeCode: string;
12408
12848
  storefrontUrl: string;
12409
- status: "ACTIVE" | "SUSPENDED" | "CLOSED";
12849
+ status: "SUSPENDED" | "CLOSED" | "ACTIVE";
12410
12850
  logoUrl: string | null;
12411
12851
  businessNumber: string | null;
12412
12852
  customerCenterPhone: string | null;
@@ -12415,7 +12855,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12415
12855
  userId: string;
12416
12856
  name: string;
12417
12857
  email: string;
12418
- role: "OWNER" | "ADMIN" | "STAFF";
12858
+ role: "ADMIN" | "STAFF" | "OWNER";
12419
12859
  joinedAt: string;
12420
12860
  lastActiveAt: string | null;
12421
12861
  }[]>;
@@ -12432,7 +12872,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12432
12872
  invitationId: string;
12433
12873
  email: string;
12434
12874
  role: "ADMIN" | "STAFF";
12435
- status: "CANCELED" | "PENDING" | "EXPIRED" | "ACCEPTED";
12875
+ status: "PENDING" | "EXPIRED" | "ACCEPTED" | "CANCELED";
12436
12876
  invitedBy: string;
12437
12877
  expiresAt: string;
12438
12878
  createdAt: string;
@@ -12450,7 +12890,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12450
12890
  invitationId: string;
12451
12891
  email: string;
12452
12892
  role: "ADMIN" | "STAFF";
12453
- status: "CANCELED" | "PENDING" | "EXPIRED" | "ACCEPTED";
12893
+ status: "PENDING" | "EXPIRED" | "ACCEPTED" | "CANCELED";
12454
12894
  invitedBy: string;
12455
12895
  expiresAt: string;
12456
12896
  createdAt: string;
@@ -12465,7 +12905,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12465
12905
  invitationId: string;
12466
12906
  email: string;
12467
12907
  role: "ADMIN" | "STAFF";
12468
- status: "CANCELED" | "PENDING" | "EXPIRED" | "ACCEPTED";
12908
+ status: "PENDING" | "EXPIRED" | "ACCEPTED" | "CANCELED";
12469
12909
  invitedBy: string;
12470
12910
  expiresAt: string;
12471
12911
  createdAt: string;
@@ -13262,8 +13702,8 @@ export declare const responsePlanCodeSchema: z.ZodUnion<readonly [z.ZodEnum<{
13262
13702
  }>, z.ZodString]>;
13263
13703
  export type ResponsePlanCode = PlanCode | (string & {});
13264
13704
  export declare const subscriptionStatusSchema: z.ZodEnum<{
13265
- CANCELED: "CANCELED";
13266
13705
  ACTIVE: "ACTIVE";
13706
+ CANCELED: "CANCELED";
13267
13707
  PAST_DUE: "PAST_DUE";
13268
13708
  INCOMPLETE: "INCOMPLETE";
13269
13709
  }>;
@@ -13313,8 +13753,8 @@ export declare const storeSubscriptionSchema: z.ZodObject<{
13313
13753
  name: z.ZodString;
13314
13754
  }, z.core.$strip>;
13315
13755
  status: z.ZodEnum<{
13316
- CANCELED: "CANCELED";
13317
13756
  ACTIVE: "ACTIVE";
13757
+ CANCELED: "CANCELED";
13318
13758
  PAST_DUE: "PAST_DUE";
13319
13759
  INCOMPLETE: "INCOMPLETE";
13320
13760
  }>;
@@ -13591,14 +14031,14 @@ export type McpToolEvent = z.infer<typeof mcpToolEventSchema>;
13591
14031
  export declare const orderWebhookEventDataSchema: z.ZodObject<{
13592
14032
  orderId: z.ZodString;
13593
14033
  status: z.ZodEnum<{
13594
- PAYMENT_WAITING: "PAYMENT_WAITING";
13595
14034
  PAID: "PAID";
14035
+ CANCELED: "CANCELED";
14036
+ PAYMENT_WAITING: "PAYMENT_WAITING";
13596
14037
  CONFIRMED: "CONFIRMED";
13597
14038
  DISPATCHED: "DISPATCHED";
13598
14039
  DELIVERING: "DELIVERING";
13599
14040
  DELIVERED: "DELIVERED";
13600
14041
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
13601
- CANCELED: "CANCELED";
13602
14042
  }>;
13603
14043
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13604
14044
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -13640,14 +14080,14 @@ export declare const orderFulfilledWebhookEventDataSchema: z.ZodObject<{
13640
14080
  orderId: z.ZodString;
13641
14081
  orderItemId: z.ZodString;
13642
14082
  status: z.ZodEnum<{
13643
- PAYMENT_WAITING: "PAYMENT_WAITING";
13644
14083
  PAID: "PAID";
14084
+ CANCELED: "CANCELED";
14085
+ PAYMENT_WAITING: "PAYMENT_WAITING";
13645
14086
  CONFIRMED: "CONFIRMED";
13646
14087
  DISPATCHED: "DISPATCHED";
13647
14088
  DELIVERING: "DELIVERING";
13648
14089
  DELIVERED: "DELIVERED";
13649
14090
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
13650
- CANCELED: "CANCELED";
13651
14091
  }>;
13652
14092
  fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
13653
14093
  type: z.ZodLiteral<"SHIPPING">;
@@ -13679,24 +14119,24 @@ export declare const orderCanceledWebhookEventDataSchema: z.ZodObject<{
13679
14119
  orderId: z.ZodString;
13680
14120
  orderItemId: z.ZodString;
13681
14121
  status: z.ZodEnum<{
13682
- PAYMENT_WAITING: "PAYMENT_WAITING";
13683
14122
  PAID: "PAID";
14123
+ CANCELED: "CANCELED";
14124
+ PAYMENT_WAITING: "PAYMENT_WAITING";
13684
14125
  CONFIRMED: "CONFIRMED";
13685
14126
  DISPATCHED: "DISPATCHED";
13686
14127
  DELIVERING: "DELIVERING";
13687
14128
  DELIVERED: "DELIVERED";
13688
14129
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
13689
- CANCELED: "CANCELED";
13690
14130
  }>;
13691
14131
  itemStatus: z.ZodEnum<{
13692
- PAYMENT_WAITING: "PAYMENT_WAITING";
13693
14132
  PAID: "PAID";
14133
+ CANCELED: "CANCELED";
14134
+ PAYMENT_WAITING: "PAYMENT_WAITING";
13694
14135
  CONFIRMED: "CONFIRMED";
13695
14136
  DISPATCHED: "DISPATCHED";
13696
14137
  DELIVERING: "DELIVERING";
13697
14138
  DELIVERED: "DELIVERED";
13698
14139
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
13699
- CANCELED: "CANCELED";
13700
14140
  }>;
13701
14141
  reason: z.ZodString;
13702
14142
  quantity: z.ZodNumber;
@@ -13719,15 +14159,15 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
13719
14159
  CANCEL: "CANCEL";
13720
14160
  }>;
13721
14161
  status: z.ZodEnum<{
13722
- WITHDRAWN: "WITHDRAWN";
13723
14162
  REJECTED: "REJECTED";
14163
+ COMPLETED: "COMPLETED";
13724
14164
  REQUESTED: "REQUESTED";
13725
14165
  HELD: "HELD";
13726
14166
  COLLECTING: "COLLECTING";
13727
14167
  COLLECTED: "COLLECTED";
13728
14168
  REDELIVERING: "REDELIVERING";
13729
14169
  APPROVED: "APPROVED";
13730
- COMPLETED: "COMPLETED";
14170
+ WITHDRAWN: "WITHDRAWN";
13731
14171
  }>;
13732
14172
  quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
13733
14173
  refundAmount: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -13767,14 +14207,14 @@ export declare const orderWebhookEventSchema: z.ZodObject<{
13767
14207
  data: z.ZodObject<{
13768
14208
  orderId: z.ZodString;
13769
14209
  status: z.ZodEnum<{
13770
- PAYMENT_WAITING: "PAYMENT_WAITING";
13771
14210
  PAID: "PAID";
14211
+ CANCELED: "CANCELED";
14212
+ PAYMENT_WAITING: "PAYMENT_WAITING";
13772
14213
  CONFIRMED: "CONFIRMED";
13773
14214
  DISPATCHED: "DISPATCHED";
13774
14215
  DELIVERING: "DELIVERING";
13775
14216
  DELIVERED: "DELIVERED";
13776
14217
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
13777
- CANCELED: "CANCELED";
13778
14218
  }>;
13779
14219
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13780
14220
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -13818,14 +14258,14 @@ export declare const orderFulfilledWebhookEventSchema: z.ZodObject<{
13818
14258
  orderId: z.ZodString;
13819
14259
  orderItemId: z.ZodString;
13820
14260
  status: z.ZodEnum<{
13821
- PAYMENT_WAITING: "PAYMENT_WAITING";
13822
14261
  PAID: "PAID";
14262
+ CANCELED: "CANCELED";
14263
+ PAYMENT_WAITING: "PAYMENT_WAITING";
13823
14264
  CONFIRMED: "CONFIRMED";
13824
14265
  DISPATCHED: "DISPATCHED";
13825
14266
  DELIVERING: "DELIVERING";
13826
14267
  DELIVERED: "DELIVERED";
13827
14268
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
13828
- CANCELED: "CANCELED";
13829
14269
  }>;
13830
14270
  fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
13831
14271
  type: z.ZodLiteral<"SHIPPING">;
@@ -13858,24 +14298,24 @@ export declare const orderCanceledWebhookEventSchema: z.ZodObject<{
13858
14298
  orderId: z.ZodString;
13859
14299
  orderItemId: z.ZodString;
13860
14300
  status: z.ZodEnum<{
13861
- PAYMENT_WAITING: "PAYMENT_WAITING";
13862
14301
  PAID: "PAID";
14302
+ CANCELED: "CANCELED";
14303
+ PAYMENT_WAITING: "PAYMENT_WAITING";
13863
14304
  CONFIRMED: "CONFIRMED";
13864
14305
  DISPATCHED: "DISPATCHED";
13865
14306
  DELIVERING: "DELIVERING";
13866
14307
  DELIVERED: "DELIVERED";
13867
14308
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
13868
- CANCELED: "CANCELED";
13869
14309
  }>;
13870
14310
  itemStatus: z.ZodEnum<{
13871
- PAYMENT_WAITING: "PAYMENT_WAITING";
13872
14311
  PAID: "PAID";
14312
+ CANCELED: "CANCELED";
14313
+ PAYMENT_WAITING: "PAYMENT_WAITING";
13873
14314
  CONFIRMED: "CONFIRMED";
13874
14315
  DISPATCHED: "DISPATCHED";
13875
14316
  DELIVERING: "DELIVERING";
13876
14317
  DELIVERED: "DELIVERED";
13877
14318
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
13878
- CANCELED: "CANCELED";
13879
14319
  }>;
13880
14320
  reason: z.ZodString;
13881
14321
  quantity: z.ZodNumber;
@@ -13909,15 +14349,15 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
13909
14349
  CANCEL: "CANCEL";
13910
14350
  }>;
13911
14351
  status: z.ZodEnum<{
13912
- WITHDRAWN: "WITHDRAWN";
13913
14352
  REJECTED: "REJECTED";
14353
+ COMPLETED: "COMPLETED";
13914
14354
  REQUESTED: "REQUESTED";
13915
14355
  HELD: "HELD";
13916
14356
  COLLECTING: "COLLECTING";
13917
14357
  COLLECTED: "COLLECTED";
13918
14358
  REDELIVERING: "REDELIVERING";
13919
14359
  APPROVED: "APPROVED";
13920
- COMPLETED: "COMPLETED";
14360
+ WITHDRAWN: "WITHDRAWN";
13921
14361
  }>;
13922
14362
  quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
13923
14363
  refundAmount: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
@@ -13980,14 +14420,14 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
13980
14420
  data: z.ZodObject<{
13981
14421
  orderId: z.ZodString;
13982
14422
  status: z.ZodEnum<{
13983
- PAYMENT_WAITING: "PAYMENT_WAITING";
13984
14423
  PAID: "PAID";
14424
+ CANCELED: "CANCELED";
14425
+ PAYMENT_WAITING: "PAYMENT_WAITING";
13985
14426
  CONFIRMED: "CONFIRMED";
13986
14427
  DISPATCHED: "DISPATCHED";
13987
14428
  DELIVERING: "DELIVERING";
13988
14429
  DELIVERED: "DELIVERED";
13989
14430
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
13990
- CANCELED: "CANCELED";
13991
14431
  }>;
13992
14432
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
13993
14433
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
@@ -14030,14 +14470,14 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
14030
14470
  orderId: z.ZodString;
14031
14471
  orderItemId: z.ZodString;
14032
14472
  status: z.ZodEnum<{
14033
- PAYMENT_WAITING: "PAYMENT_WAITING";
14034
14473
  PAID: "PAID";
14474
+ CANCELED: "CANCELED";
14475
+ PAYMENT_WAITING: "PAYMENT_WAITING";
14035
14476
  CONFIRMED: "CONFIRMED";
14036
14477
  DISPATCHED: "DISPATCHED";
14037
14478
  DELIVERING: "DELIVERING";
14038
14479
  DELIVERED: "DELIVERED";
14039
14480
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
14040
- CANCELED: "CANCELED";
14041
14481
  }>;
14042
14482
  fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
14043
14483
  type: z.ZodLiteral<"SHIPPING">;
@@ -14069,24 +14509,24 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
14069
14509
  orderId: z.ZodString;
14070
14510
  orderItemId: z.ZodString;
14071
14511
  status: z.ZodEnum<{
14072
- PAYMENT_WAITING: "PAYMENT_WAITING";
14073
14512
  PAID: "PAID";
14513
+ CANCELED: "CANCELED";
14514
+ PAYMENT_WAITING: "PAYMENT_WAITING";
14074
14515
  CONFIRMED: "CONFIRMED";
14075
14516
  DISPATCHED: "DISPATCHED";
14076
14517
  DELIVERING: "DELIVERING";
14077
14518
  DELIVERED: "DELIVERED";
14078
14519
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
14079
- CANCELED: "CANCELED";
14080
14520
  }>;
14081
14521
  itemStatus: z.ZodEnum<{
14082
- PAYMENT_WAITING: "PAYMENT_WAITING";
14083
14522
  PAID: "PAID";
14523
+ CANCELED: "CANCELED";
14524
+ PAYMENT_WAITING: "PAYMENT_WAITING";
14084
14525
  CONFIRMED: "CONFIRMED";
14085
14526
  DISPATCHED: "DISPATCHED";
14086
14527
  DELIVERING: "DELIVERING";
14087
14528
  DELIVERED: "DELIVERED";
14088
14529
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
14089
- CANCELED: "CANCELED";
14090
14530
  }>;
14091
14531
  reason: z.ZodString;
14092
14532
  quantity: z.ZodNumber;
@@ -14119,15 +14559,15 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
14119
14559
  CANCEL: "CANCEL";
14120
14560
  }>;
14121
14561
  status: z.ZodEnum<{
14122
- WITHDRAWN: "WITHDRAWN";
14123
14562
  REJECTED: "REJECTED";
14563
+ COMPLETED: "COMPLETED";
14124
14564
  REQUESTED: "REQUESTED";
14125
14565
  HELD: "HELD";
14126
14566
  COLLECTING: "COLLECTING";
14127
14567
  COLLECTED: "COLLECTED";
14128
14568
  REDELIVERING: "REDELIVERING";
14129
14569
  APPROVED: "APPROVED";
14130
- COMPLETED: "COMPLETED";
14570
+ WITHDRAWN: "WITHDRAWN";
14131
14571
  }>;
14132
14572
  quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
14133
14573
  refundAmount: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;