@sayren/store-sdk 0.1.0 → 0.1.1
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 +387 -2
- package/dist/index.mjs +223 -72
- package/package.json +2 -2
- package/src/client.ts +16 -48
- package/src/schemas/category.ts +36 -0
- package/src/schemas/claim.ts +31 -1
- package/src/schemas/common.ts +12 -0
- package/src/schemas/misc.ts +77 -2
- package/src/schemas/order.ts +60 -0
- package/src/schemas/product.ts +30 -7
- package/src/schemas/store.ts +18 -0
package/dist/index.d.mts
CHANGED
|
@@ -543,6 +543,30 @@ export declare const categoryDeleteStrategySchema: z.ZodEnum<{
|
|
|
543
543
|
cascade: "cascade";
|
|
544
544
|
}>;
|
|
545
545
|
export type CategoryDeleteStrategy = z.infer<typeof categoryDeleteStrategySchema>;
|
|
546
|
+
/**
|
|
547
|
+
* `GET /v1/categories` 쿼리 — OpenAPI 문서용 형태(값은 쿼리 문자열). 응답 형태가 쿼리로 갈린다:
|
|
548
|
+
* `q`가 있으면 검색 결과(`CategorySearchResult[]`), 아니면 `tree=true`일 때 트리(`CategoryTreeNode[]`),
|
|
549
|
+
* 둘 다 아니면 목록(`Category[]`)이다.
|
|
550
|
+
*/
|
|
551
|
+
export declare const categoryListQuerySchema: z.ZodObject<{
|
|
552
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
553
|
+
flat: z.ZodOptional<z.ZodEnum<{
|
|
554
|
+
true: "true";
|
|
555
|
+
false: "false";
|
|
556
|
+
}>>;
|
|
557
|
+
tree: z.ZodOptional<z.ZodEnum<{
|
|
558
|
+
true: "true";
|
|
559
|
+
false: "false";
|
|
560
|
+
}>>;
|
|
561
|
+
q: z.ZodOptional<z.ZodString>;
|
|
562
|
+
}, z.core.$strip>;
|
|
563
|
+
/** `DELETE /v1/categories/{categoryId}` 쿼리 — OpenAPI 문서용 형태 */
|
|
564
|
+
export declare const categoryDeleteQuerySchema: z.ZodObject<{
|
|
565
|
+
strategy: z.ZodOptional<z.ZodEnum<{
|
|
566
|
+
reparent: "reparent";
|
|
567
|
+
cascade: "cascade";
|
|
568
|
+
}>>;
|
|
569
|
+
}, z.core.$strip>;
|
|
546
570
|
//#endregion
|
|
547
571
|
//#region src/schemas/common.d.ts
|
|
548
572
|
export declare const pageInfoSchema: z.ZodObject<{
|
|
@@ -559,6 +583,17 @@ export declare function pageSchema<T extends z.ZodType>(item: T): z.ZodObject<{
|
|
|
559
583
|
totalPages: z.ZodNumber;
|
|
560
584
|
contents: z.ZodArray<T>;
|
|
561
585
|
}, z.core.$strip>;
|
|
586
|
+
/**
|
|
587
|
+
* 목록 쿼리의 `page`·`size` — OpenAPI 문서용 형태(값은 쿼리 문자열). 서버는 숫자가 아니거나 범위를 벗어난
|
|
588
|
+
* 값을 기본값·상한으로 보정한다.
|
|
589
|
+
*/
|
|
590
|
+
export declare function pageQueryShape(options?: {
|
|
591
|
+
defaultSize?: number;
|
|
592
|
+
maxSize?: number;
|
|
593
|
+
}): {
|
|
594
|
+
page: z.ZodOptional<z.ZodString>;
|
|
595
|
+
size: z.ZodOptional<z.ZodString>;
|
|
596
|
+
};
|
|
562
597
|
export interface PageParams {
|
|
563
598
|
page?: number;
|
|
564
599
|
size?: number;
|
|
@@ -686,6 +721,109 @@ export interface ClaimListParams extends PageParams {
|
|
|
686
721
|
requestedFrom?: string;
|
|
687
722
|
requestedTo?: string;
|
|
688
723
|
}
|
|
724
|
+
/** `GET /v1/claims` 쿼리 — OpenAPI 문서용 형태(값은 쿼리 문자열) */
|
|
725
|
+
export declare const claimListQuerySchema: z.ZodObject<{
|
|
726
|
+
page: z.ZodOptional<z.ZodString>;
|
|
727
|
+
size: z.ZodOptional<z.ZodString>;
|
|
728
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
729
|
+
RETURN: "RETURN";
|
|
730
|
+
EXCHANGE: "EXCHANGE";
|
|
731
|
+
CANCEL: "CANCEL";
|
|
732
|
+
}>>;
|
|
733
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
734
|
+
REQUESTED: "REQUESTED";
|
|
735
|
+
HELD: "HELD";
|
|
736
|
+
COLLECTING: "COLLECTING";
|
|
737
|
+
COLLECTED: "COLLECTED";
|
|
738
|
+
REDELIVERING: "REDELIVERING";
|
|
739
|
+
APPROVED: "APPROVED";
|
|
740
|
+
REJECTED: "REJECTED";
|
|
741
|
+
COMPLETED: "COMPLETED";
|
|
742
|
+
WITHDRAWN: "WITHDRAWN";
|
|
743
|
+
}>>;
|
|
744
|
+
orderItemId: z.ZodOptional<z.ZodString>;
|
|
745
|
+
requestedFrom: z.ZodOptional<z.ZodString>;
|
|
746
|
+
requestedTo: z.ZodOptional<z.ZodString>;
|
|
747
|
+
}, z.core.$strip>;
|
|
748
|
+
/** `GET /v1/claims/{claimId}` 응답 — 클레임 + 상태 이력 */
|
|
749
|
+
export declare const claimDetailSchema: z.ZodObject<{
|
|
750
|
+
claimId: z.ZodString;
|
|
751
|
+
type: z.ZodEnum<{
|
|
752
|
+
RETURN: "RETURN";
|
|
753
|
+
EXCHANGE: "EXCHANGE";
|
|
754
|
+
CANCEL: "CANCEL";
|
|
755
|
+
}>;
|
|
756
|
+
status: z.ZodEnum<{
|
|
757
|
+
REQUESTED: "REQUESTED";
|
|
758
|
+
HELD: "HELD";
|
|
759
|
+
COLLECTING: "COLLECTING";
|
|
760
|
+
COLLECTED: "COLLECTED";
|
|
761
|
+
REDELIVERING: "REDELIVERING";
|
|
762
|
+
APPROVED: "APPROVED";
|
|
763
|
+
REJECTED: "REJECTED";
|
|
764
|
+
COMPLETED: "COMPLETED";
|
|
765
|
+
WITHDRAWN: "WITHDRAWN";
|
|
766
|
+
}>;
|
|
767
|
+
orderId: z.ZodString;
|
|
768
|
+
orderItemId: z.ZodString;
|
|
769
|
+
productName: z.ZodString;
|
|
770
|
+
quantity: z.ZodNumber;
|
|
771
|
+
reason: z.ZodEnum<{
|
|
772
|
+
CHANGE_OF_MIND: "CHANGE_OF_MIND";
|
|
773
|
+
WRONG_ORDER: "WRONG_ORDER";
|
|
774
|
+
DEFECTIVE: "DEFECTIVE";
|
|
775
|
+
WRONG_DELIVERY: "WRONG_DELIVERY";
|
|
776
|
+
DIFFERENT_FROM_PAGE: "DIFFERENT_FROM_PAGE";
|
|
777
|
+
DELAY: "DELAY";
|
|
778
|
+
}>;
|
|
779
|
+
reasonDetail: z.ZodNullable<z.ZodString>;
|
|
780
|
+
responsibility: z.ZodEnum<{
|
|
781
|
+
BUYER: "BUYER";
|
|
782
|
+
SELLER: "SELLER";
|
|
783
|
+
}>;
|
|
784
|
+
claimDeliveryFee: z.ZodNumber;
|
|
785
|
+
expectedRefundAmount: z.ZodNullable<z.ZodNumber>;
|
|
786
|
+
exchangeOption: z.ZodNullable<z.ZodObject<{
|
|
787
|
+
optionId: z.ZodString;
|
|
788
|
+
optionName: z.ZodString;
|
|
789
|
+
}, z.core.$strip>>;
|
|
790
|
+
collect: z.ZodNullable<z.ZodObject<{
|
|
791
|
+
method: z.ZodEnum<{
|
|
792
|
+
SELLER_PICKUP: "SELLER_PICKUP";
|
|
793
|
+
BUYER_SEND: "BUYER_SEND";
|
|
794
|
+
}>;
|
|
795
|
+
carrierCode: z.ZodNullable<z.ZodString>;
|
|
796
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
797
|
+
}, z.core.$strip>>;
|
|
798
|
+
requestedAt: z.ZodString;
|
|
799
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
800
|
+
histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
801
|
+
status: z.ZodEnum<{
|
|
802
|
+
REQUESTED: "REQUESTED";
|
|
803
|
+
HELD: "HELD";
|
|
804
|
+
COLLECTING: "COLLECTING";
|
|
805
|
+
COLLECTED: "COLLECTED";
|
|
806
|
+
REDELIVERING: "REDELIVERING";
|
|
807
|
+
APPROVED: "APPROVED";
|
|
808
|
+
REJECTED: "REJECTED";
|
|
809
|
+
COMPLETED: "COMPLETED";
|
|
810
|
+
WITHDRAWN: "WITHDRAWN";
|
|
811
|
+
}>;
|
|
812
|
+
actor: z.ZodEnum<{
|
|
813
|
+
BUYER: "BUYER";
|
|
814
|
+
SELLER: "SELLER";
|
|
815
|
+
SYSTEM: "SYSTEM";
|
|
816
|
+
}>;
|
|
817
|
+
occurredAt: z.ZodString;
|
|
818
|
+
}, z.core.$strip>>>;
|
|
819
|
+
}, z.core.$strip>;
|
|
820
|
+
export type ClaimDetail = z.infer<typeof claimDetailSchema>;
|
|
821
|
+
/** `POST /v1/claims/{claimId}/hold` 응답 */
|
|
822
|
+
export declare const claimHoldResultSchema: z.ZodObject<{
|
|
823
|
+
claimId: z.ZodString;
|
|
824
|
+
holdExpiresAt: z.ZodString;
|
|
825
|
+
}, z.core.$strip>;
|
|
826
|
+
export type ClaimHoldResult = z.infer<typeof claimHoldResultSchema>;
|
|
689
827
|
export declare const rejectClaimRequestSchema: z.ZodObject<{
|
|
690
828
|
reason: z.ZodEnum<{
|
|
691
829
|
ETC: "ETC";
|
|
@@ -762,6 +900,34 @@ export declare const sellerCustomerInquirySchema: z.ZodObject<{
|
|
|
762
900
|
createdAt: z.ZodString;
|
|
763
901
|
}, z.core.$strip>;
|
|
764
902
|
export type SellerCustomerInquiry = z.infer<typeof sellerCustomerInquirySchema>;
|
|
903
|
+
/** `GET /v1/inquiries` 쿼리(상품 문의) — OpenAPI 문서용 형태(값은 쿼리 문자열). 최신순이다 */
|
|
904
|
+
export declare const inquiryListQuerySchema: z.ZodObject<{
|
|
905
|
+
page: z.ZodOptional<z.ZodString>;
|
|
906
|
+
size: z.ZodOptional<z.ZodString>;
|
|
907
|
+
answered: z.ZodOptional<z.ZodEnum<{
|
|
908
|
+
true: "true";
|
|
909
|
+
false: "false";
|
|
910
|
+
}>>;
|
|
911
|
+
productId: z.ZodOptional<z.ZodString>;
|
|
912
|
+
from: z.ZodOptional<z.ZodString>;
|
|
913
|
+
}, z.core.$strip>;
|
|
914
|
+
/** `GET /v1/customer-inquiries` 쿼리(1:1 문의) — OpenAPI 문서용 형태(값은 쿼리 문자열). 최신순이다 */
|
|
915
|
+
export declare const customerInquiryListQuerySchema: z.ZodObject<{
|
|
916
|
+
page: z.ZodOptional<z.ZodString>;
|
|
917
|
+
size: z.ZodOptional<z.ZodString>;
|
|
918
|
+
answered: z.ZodOptional<z.ZodEnum<{
|
|
919
|
+
true: "true";
|
|
920
|
+
false: "false";
|
|
921
|
+
}>>;
|
|
922
|
+
category: z.ZodOptional<z.ZodEnum<{
|
|
923
|
+
ETC: "ETC";
|
|
924
|
+
DELIVERY: "DELIVERY";
|
|
925
|
+
RETURN: "RETURN";
|
|
926
|
+
EXCHANGE: "EXCHANGE";
|
|
927
|
+
PAYMENT: "PAYMENT";
|
|
928
|
+
}>>;
|
|
929
|
+
from: z.ZodOptional<z.ZodString>;
|
|
930
|
+
}, z.core.$strip>;
|
|
765
931
|
export declare const settlementStatusSchema: z.ZodEnum<{
|
|
766
932
|
PAID: "PAID";
|
|
767
933
|
HELD: "HELD";
|
|
@@ -802,6 +968,57 @@ export declare const settlementDetailSchema: z.ZodObject<{
|
|
|
802
968
|
purchaseDecidedAt: z.ZodNullable<z.ZodString>;
|
|
803
969
|
}, z.core.$strip>;
|
|
804
970
|
export type SettlementDetail = z.infer<typeof settlementDetailSchema>;
|
|
971
|
+
/** `GET /v1/settlements/{settlementId}` 응답 — 정산 요약 + 상세 내역(`size`건까지) */
|
|
972
|
+
export declare const settlementWithDetailsSchema: z.ZodObject<{
|
|
973
|
+
settlementId: z.ZodString;
|
|
974
|
+
settlementDate: z.ZodString;
|
|
975
|
+
payoutDate: z.ZodNullable<z.ZodString>;
|
|
976
|
+
status: z.ZodEnum<{
|
|
977
|
+
PAID: "PAID";
|
|
978
|
+
HELD: "HELD";
|
|
979
|
+
SCHEDULED: "SCHEDULED";
|
|
980
|
+
}>;
|
|
981
|
+
totalPaymentAmount: z.ZodNumber;
|
|
982
|
+
totalCommission: z.ZodNumber;
|
|
983
|
+
totalDeliveryFee: z.ZodNumber;
|
|
984
|
+
adjustmentAmount: z.ZodNumber;
|
|
985
|
+
settlementAmount: z.ZodNumber;
|
|
986
|
+
itemCount: z.ZodNumber;
|
|
987
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
988
|
+
orderItemId: z.ZodString;
|
|
989
|
+
productName: z.ZodString;
|
|
990
|
+
settlementType: z.ZodEnum<{
|
|
991
|
+
SALE: "SALE";
|
|
992
|
+
REFUND_DEDUCTION: "REFUND_DEDUCTION";
|
|
993
|
+
ADJUSTMENT: "ADJUSTMENT";
|
|
994
|
+
}>;
|
|
995
|
+
paymentAmount: z.ZodNumber;
|
|
996
|
+
salesCommission: z.ZodNumber;
|
|
997
|
+
paymentCommission: z.ZodNumber;
|
|
998
|
+
commissionRate: z.ZodNumber;
|
|
999
|
+
deliveryFee: z.ZodNumber;
|
|
1000
|
+
settlementAmount: z.ZodNumber;
|
|
1001
|
+
purchaseDecidedAt: z.ZodNullable<z.ZodString>;
|
|
1002
|
+
}, z.core.$strip>>>;
|
|
1003
|
+
}, z.core.$strip>;
|
|
1004
|
+
export type SettlementWithDetails = z.infer<typeof settlementWithDetailsSchema>;
|
|
1005
|
+
/** `GET /v1/settlements` 쿼리 — OpenAPI 문서용 형태(값은 쿼리 문자열). 정산일 최신순이다 */
|
|
1006
|
+
export declare const settlementListQuerySchema: z.ZodObject<{
|
|
1007
|
+
page: z.ZodOptional<z.ZodString>;
|
|
1008
|
+
size: z.ZodOptional<z.ZodString>;
|
|
1009
|
+
from: z.ZodString;
|
|
1010
|
+
to: z.ZodOptional<z.ZodString>;
|
|
1011
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
1012
|
+
PAID: "PAID";
|
|
1013
|
+
HELD: "HELD";
|
|
1014
|
+
SCHEDULED: "SCHEDULED";
|
|
1015
|
+
}>>;
|
|
1016
|
+
}, z.core.$strip>;
|
|
1017
|
+
/** `GET /v1/settlements/{settlementId}` 쿼리 — `size`는 돌려줄 상세 내역 건수다(`page`는 무시) */
|
|
1018
|
+
export declare const settlementDetailQuerySchema: z.ZodObject<{
|
|
1019
|
+
page: z.ZodOptional<z.ZodString>;
|
|
1020
|
+
size: z.ZodOptional<z.ZodString>;
|
|
1021
|
+
}, z.core.$strip>;
|
|
805
1022
|
export interface SettlementListParams extends PageParams {
|
|
806
1023
|
from: string;
|
|
807
1024
|
to?: string;
|
|
@@ -1034,14 +1251,55 @@ export declare const reviewSchema: z.ZodObject<{
|
|
|
1034
1251
|
createdAt: z.ZodString;
|
|
1035
1252
|
}, z.core.$strip>;
|
|
1036
1253
|
export type Review = z.infer<typeof reviewSchema>;
|
|
1254
|
+
export declare const reviewSortSchema: z.ZodEnum<{
|
|
1255
|
+
"createdAt.desc": "createdAt.desc";
|
|
1256
|
+
"createdAt.asc": "createdAt.asc";
|
|
1257
|
+
"rating.asc": "rating.asc";
|
|
1258
|
+
"rating.desc": "rating.desc";
|
|
1259
|
+
}>;
|
|
1260
|
+
export type ReviewSort = z.infer<typeof reviewSortSchema>;
|
|
1037
1261
|
export interface ReviewListParams extends PageParams {
|
|
1038
1262
|
productId?: string;
|
|
1039
1263
|
rating?: number;
|
|
1040
1264
|
replied?: boolean;
|
|
1041
1265
|
hasImage?: boolean;
|
|
1042
1266
|
from?: string;
|
|
1043
|
-
sort?:
|
|
1267
|
+
sort?: ReviewSort;
|
|
1044
1268
|
}
|
|
1269
|
+
/** `GET /v1/reviews` 쿼리 — OpenAPI 문서용 형태(값은 쿼리 문자열) */
|
|
1270
|
+
export declare const reviewListQuerySchema: z.ZodObject<{
|
|
1271
|
+
page: z.ZodOptional<z.ZodString>;
|
|
1272
|
+
size: z.ZodOptional<z.ZodString>;
|
|
1273
|
+
productId: z.ZodOptional<z.ZodString>;
|
|
1274
|
+
rating: z.ZodOptional<z.ZodEnum<{
|
|
1275
|
+
1: "1";
|
|
1276
|
+
2: "2";
|
|
1277
|
+
3: "3";
|
|
1278
|
+
4: "4";
|
|
1279
|
+
5: "5";
|
|
1280
|
+
}>>;
|
|
1281
|
+
replied: z.ZodOptional<z.ZodEnum<{
|
|
1282
|
+
true: "true";
|
|
1283
|
+
false: "false";
|
|
1284
|
+
}>>;
|
|
1285
|
+
hasImage: z.ZodOptional<z.ZodEnum<{
|
|
1286
|
+
true: "true";
|
|
1287
|
+
false: "false";
|
|
1288
|
+
}>>;
|
|
1289
|
+
from: z.ZodOptional<z.ZodString>;
|
|
1290
|
+
sort: z.ZodOptional<z.ZodEnum<{
|
|
1291
|
+
"createdAt.desc": "createdAt.desc";
|
|
1292
|
+
"createdAt.asc": "createdAt.asc";
|
|
1293
|
+
"rating.asc": "rating.asc";
|
|
1294
|
+
"rating.desc": "rating.desc";
|
|
1295
|
+
}>>;
|
|
1296
|
+
}, z.core.$strip>;
|
|
1297
|
+
/** `POST /v1/reviews/{reviewId}/report` 응답(202) — 신고 접수 */
|
|
1298
|
+
export declare const reviewReportResultSchema: z.ZodObject<{
|
|
1299
|
+
reviewId: z.ZodString;
|
|
1300
|
+
status: z.ZodLiteral<"PENDING_REVIEW">;
|
|
1301
|
+
}, z.core.$strip>;
|
|
1302
|
+
export type ReviewReportResult = z.infer<typeof reviewReportResultSchema>;
|
|
1045
1303
|
//#endregion
|
|
1046
1304
|
//#region src/schemas/order.d.ts
|
|
1047
1305
|
export declare const orderSummarySchema: z.ZodObject<{
|
|
@@ -1394,6 +1652,40 @@ export declare const deliveryInfoSchema: z.ZodObject<{
|
|
|
1394
1652
|
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
1395
1653
|
}, z.core.$strip>;
|
|
1396
1654
|
export type DeliveryInfo = z.infer<typeof deliveryInfoSchema>;
|
|
1655
|
+
/** `GET /v1/order-items/{orderItemId}/delivery` 응답 — 배송 정보 + 배송 추적 이벤트 */
|
|
1656
|
+
export declare const deliveryStatusSchema: z.ZodObject<{
|
|
1657
|
+
orderItemId: z.ZodString;
|
|
1658
|
+
deliveryMethod: z.ZodEnum<{
|
|
1659
|
+
COURIER: "COURIER";
|
|
1660
|
+
DIRECT: "DIRECT";
|
|
1661
|
+
QUICK: "QUICK";
|
|
1662
|
+
NOTHING: "NOTHING";
|
|
1663
|
+
}>;
|
|
1664
|
+
carrierCode: z.ZodNullable<z.ZodString>;
|
|
1665
|
+
carrierName: z.ZodNullable<z.ZodString>;
|
|
1666
|
+
trackingNumber: z.ZodNullable<z.ZodString>;
|
|
1667
|
+
trackingUrl: z.ZodNullable<z.ZodURL>;
|
|
1668
|
+
status: z.ZodEnum<{
|
|
1669
|
+
DISPATCHED: "DISPATCHED";
|
|
1670
|
+
DELIVERING: "DELIVERING";
|
|
1671
|
+
DELIVERED: "DELIVERED";
|
|
1672
|
+
}>;
|
|
1673
|
+
dispatchedAt: z.ZodString;
|
|
1674
|
+
deliveredAt: z.ZodNullable<z.ZodString>;
|
|
1675
|
+
trackingEvents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1676
|
+
status: z.ZodString;
|
|
1677
|
+
location: z.ZodString;
|
|
1678
|
+
occurredAt: z.ZodString;
|
|
1679
|
+
}, z.core.$strip>>>;
|
|
1680
|
+
}, z.core.$strip>;
|
|
1681
|
+
export type DeliveryStatus = z.infer<typeof deliveryStatusSchema>;
|
|
1682
|
+
/** `PUT /v1/order-items/{orderItemId}/dispatch/tracking` 응답 — 바뀐 송장 */
|
|
1683
|
+
export declare const trackingUpdateResultSchema: z.ZodObject<{
|
|
1684
|
+
orderItemId: z.ZodString;
|
|
1685
|
+
carrierCode: z.ZodString;
|
|
1686
|
+
trackingNumber: z.ZodString;
|
|
1687
|
+
}, z.core.$strip>;
|
|
1688
|
+
export type TrackingUpdateResult = z.infer<typeof trackingUpdateResultSchema>;
|
|
1397
1689
|
export declare const carrierSchema: z.ZodObject<{
|
|
1398
1690
|
carrierCode: z.ZodString;
|
|
1399
1691
|
name: z.ZodString;
|
|
@@ -1421,6 +1713,37 @@ export declare const cancelBySellerRequestSchema: z.ZodObject<{
|
|
|
1421
1713
|
detail: z.ZodOptional<z.ZodString>;
|
|
1422
1714
|
}, z.core.$strip>;
|
|
1423
1715
|
export type CancelBySellerRequest = z.infer<typeof cancelBySellerRequestSchema>;
|
|
1716
|
+
/** `POST /v1/order-items/{orderItemId}/cancel` 응답 — 셀러 직권취소 환불 결과 */
|
|
1717
|
+
export declare const cancelBySellerResultSchema: z.ZodObject<{
|
|
1718
|
+
orderItemId: z.ZodString;
|
|
1719
|
+
refundAmount: z.ZodNumber;
|
|
1720
|
+
refundedAt: z.ZodString;
|
|
1721
|
+
}, z.core.$strip>;
|
|
1722
|
+
export type CancelBySellerResult = z.infer<typeof cancelBySellerResultSchema>;
|
|
1723
|
+
/** `PUT /v1/order-items/{orderItemId}/memo` 응답 — 빈 문자열로 저장하면 메모가 지워져 `null`이다 */
|
|
1724
|
+
export declare const orderItemMemoResultSchema: z.ZodObject<{
|
|
1725
|
+
orderItemId: z.ZodString;
|
|
1726
|
+
sellerMemo: z.ZodNullable<z.ZodString>;
|
|
1727
|
+
}, z.core.$strip>;
|
|
1728
|
+
export type OrderItemMemoResult = z.infer<typeof orderItemMemoResultSchema>;
|
|
1729
|
+
/** `POST /v1/order-items/{orderItemId}/purchase-decision/request` 응답 */
|
|
1730
|
+
export declare const purchaseDecisionRequestResultSchema: z.ZodObject<{
|
|
1731
|
+
orderItemId: z.ZodString;
|
|
1732
|
+
requestedAt: z.ZodString;
|
|
1733
|
+
}, z.core.$strip>;
|
|
1734
|
+
export type PurchaseDecisionRequestResult = z.infer<typeof purchaseDecisionRequestResultSchema>;
|
|
1735
|
+
/** `POST /v1/order-items/{orderItemId}/purchase-decision/extend` 응답 — 연장은 최대 2회 */
|
|
1736
|
+
export declare const purchaseDecisionExtendResultSchema: z.ZodObject<{
|
|
1737
|
+
orderItemId: z.ZodString;
|
|
1738
|
+
autoDecisionDate: z.ZodString;
|
|
1739
|
+
extendCount: z.ZodNumber;
|
|
1740
|
+
}, z.core.$strip>;
|
|
1741
|
+
export type PurchaseDecisionExtendResult = z.infer<typeof purchaseDecisionExtendResultSchema>;
|
|
1742
|
+
/**
|
|
1743
|
+
* `GET /v1/orders/{orderId}/address-change-requests` 응답 — 배송지 변경 요청 플로우는 아직 제공하지 않아
|
|
1744
|
+
* 현재는 항상 빈 배열이다
|
|
1745
|
+
*/
|
|
1746
|
+
export declare const addressChangeRequestListSchema: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1424
1747
|
//#endregion
|
|
1425
1748
|
//#region src/schemas/payment.d.ts
|
|
1426
1749
|
/**
|
|
@@ -2652,7 +2975,14 @@ export declare const productPatchRequestSchema: z.ZodObject<{
|
|
|
2652
2975
|
deliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
2653
2976
|
}, z.core.$strip>;
|
|
2654
2977
|
export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
|
|
2655
|
-
export
|
|
2978
|
+
export declare const productSortSchema: z.ZodEnum<{
|
|
2979
|
+
"createdAt.desc": "createdAt.desc";
|
|
2980
|
+
"createdAt.asc": "createdAt.asc";
|
|
2981
|
+
"salePrice.asc": "salePrice.asc";
|
|
2982
|
+
"salePrice.desc": "salePrice.desc";
|
|
2983
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
2984
|
+
}>;
|
|
2985
|
+
export type ProductSort = z.infer<typeof productSortSchema>;
|
|
2656
2986
|
export interface ProductListParams extends PageParams {
|
|
2657
2987
|
status?: ProductStatus;
|
|
2658
2988
|
categoryId?: string;
|
|
@@ -2660,6 +2990,36 @@ export interface ProductListParams extends PageParams {
|
|
|
2660
2990
|
sellerCode?: string;
|
|
2661
2991
|
sort?: ProductSort;
|
|
2662
2992
|
}
|
|
2993
|
+
/** `GET /v1/products` 쿼리 — OpenAPI 문서용 형태(값은 쿼리 문자열) */
|
|
2994
|
+
export declare const productListQuerySchema: z.ZodObject<{
|
|
2995
|
+
page: z.ZodOptional<z.ZodString>;
|
|
2996
|
+
size: z.ZodOptional<z.ZodString>;
|
|
2997
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
2998
|
+
SALE: "SALE";
|
|
2999
|
+
SUSPENDED: "SUSPENDED";
|
|
3000
|
+
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
3001
|
+
CLOSED: "CLOSED";
|
|
3002
|
+
}>>;
|
|
3003
|
+
categoryId: z.ZodOptional<z.ZodString>;
|
|
3004
|
+
keyword: z.ZodOptional<z.ZodString>;
|
|
3005
|
+
sellerCode: z.ZodOptional<z.ZodString>;
|
|
3006
|
+
sort: z.ZodOptional<z.ZodEnum<{
|
|
3007
|
+
"createdAt.desc": "createdAt.desc";
|
|
3008
|
+
"createdAt.asc": "createdAt.asc";
|
|
3009
|
+
"salePrice.asc": "salePrice.asc";
|
|
3010
|
+
"salePrice.desc": "salePrice.desc";
|
|
3011
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
3012
|
+
}>>;
|
|
3013
|
+
}, z.core.$strip>;
|
|
3014
|
+
/** `POST /v1/product-images` 응답 — 업로드된 이미지의 CDN 주소 */
|
|
3015
|
+
export declare const productImageUploadResultSchema: z.ZodObject<{
|
|
3016
|
+
images: z.ZodArray<z.ZodObject<{
|
|
3017
|
+
url: z.ZodURL;
|
|
3018
|
+
width: z.ZodNumber;
|
|
3019
|
+
height: z.ZodNumber;
|
|
3020
|
+
}, z.core.$strip>>;
|
|
3021
|
+
}, z.core.$strip>;
|
|
3022
|
+
export type ProductImageUploadResult = z.infer<typeof productImageUploadResultSchema>;
|
|
2663
3023
|
export declare const discountSchema: z.ZodObject<{
|
|
2664
3024
|
productId: z.ZodString;
|
|
2665
3025
|
discountType: z.ZodEnum<{
|
|
@@ -2744,11 +3104,36 @@ export declare const invitationSchema: z.ZodObject<{
|
|
|
2744
3104
|
createdAt: z.ZodString;
|
|
2745
3105
|
}, z.core.$strip>;
|
|
2746
3106
|
export type Invitation = z.infer<typeof invitationSchema>;
|
|
3107
|
+
/** `GET /v1/store/invitations` 쿼리 — OpenAPI 문서용 형태 */
|
|
3108
|
+
export declare const invitationListQuerySchema: z.ZodObject<{
|
|
3109
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
3110
|
+
PENDING: "PENDING";
|
|
3111
|
+
CANCELED: "CANCELED";
|
|
3112
|
+
ACCEPTED: "ACCEPTED";
|
|
3113
|
+
EXPIRED: "EXPIRED";
|
|
3114
|
+
}>>;
|
|
3115
|
+
}, z.core.$strip>;
|
|
3116
|
+
/** `PATCH /v1/store/members/{userId}` 응답 — 바뀐 역할 */
|
|
3117
|
+
export declare const storeMemberRoleUpdatedSchema: z.ZodObject<{
|
|
3118
|
+
userId: z.ZodString;
|
|
3119
|
+
role: z.ZodEnum<{
|
|
3120
|
+
ADMIN: "ADMIN";
|
|
3121
|
+
STAFF: "STAFF";
|
|
3122
|
+
}>;
|
|
3123
|
+
}, z.core.$strip>;
|
|
3124
|
+
export type StoreMemberRoleUpdated = z.infer<typeof storeMemberRoleUpdatedSchema>;
|
|
2747
3125
|
export declare const addressTypeSchema: z.ZodEnum<{
|
|
2748
3126
|
RETURN: "RETURN";
|
|
2749
3127
|
SHIPPING: "SHIPPING";
|
|
2750
3128
|
}>;
|
|
2751
3129
|
export type AddressType = z.infer<typeof addressTypeSchema>;
|
|
3130
|
+
/** `GET /v1/seller-addresses` 쿼리 — OpenAPI 문서용 형태. 기본 주소 우선, 그다음 등록순이다 */
|
|
3131
|
+
export declare const sellerAddressListQuerySchema: z.ZodObject<{
|
|
3132
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3133
|
+
RETURN: "RETURN";
|
|
3134
|
+
SHIPPING: "SHIPPING";
|
|
3135
|
+
}>>;
|
|
3136
|
+
}, z.core.$strip>;
|
|
2752
3137
|
export declare const sellerAddressSchema: z.ZodObject<{
|
|
2753
3138
|
addressId: z.ZodString;
|
|
2754
3139
|
type: z.ZodEnum<{
|