@sayren/store-sdk 0.28.0 → 0.28.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 +343 -343
- package/dist/index.mjs +128 -128
- package/dist/server.d.mts +1 -1
- package/dist/server.mjs +1 -1
- package/package.json +1 -1
- package/src/client.ts +21 -21
- package/src/http.ts +1 -1
- package/src/member-delegation.ts +1 -1
- package/src/schemas/api-log.ts +7 -5
- package/src/schemas/audit.ts +5 -5
- package/src/schemas/claim.ts +4 -4
- package/src/schemas/coupon.ts +2 -2
- package/src/schemas/customer.ts +3 -3
- package/src/schemas/fulfillment.ts +9 -11
- package/src/schemas/order.ts +1 -1
- package/src/schemas/payment.ts +7 -5
- package/src/schemas/product.ts +6 -6
- package/src/schemas/promotion.ts +4 -4
- package/src/schemas/refund-policy.ts +12 -12
- package/src/schemas/saved-option-set.ts +1 -1
- package/src/schemas/scope.ts +3 -3
- package/src/schemas/shipping-policy.ts +18 -18
- package/src/schemas/store.ts +9 -9
- package/src/schemas/storefront-hosting.ts +35 -39
- package/src/schemas/subscription.ts +8 -8
- package/src/schemas/telemetry.ts +2 -2
- package/src/schemas/upload.ts +1 -1
- package/src/schemas/webhook-event.ts +1 -1
- package/src/session.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -33,8 +33,8 @@ export declare const auditLogSourceSchema: z.ZodEnum<{
|
|
|
33
33
|
}>;
|
|
34
34
|
export type AuditLogSource = z.infer<typeof auditLogSourceSchema>;
|
|
35
35
|
export declare const auditLogOutcomeSchema: z.ZodEnum<{
|
|
36
|
-
SUCCEEDED: "SUCCEEDED";
|
|
37
36
|
FAILED: "FAILED";
|
|
37
|
+
SUCCEEDED: "SUCCEEDED";
|
|
38
38
|
PENDING_APPROVAL: "PENDING_APPROVAL";
|
|
39
39
|
DENIED: "DENIED";
|
|
40
40
|
DRY_RUN: "DRY_RUN";
|
|
@@ -69,8 +69,8 @@ export declare const auditLogSchema: z.ZodObject<{
|
|
|
69
69
|
path: z.ZodNullable<z.ZodString>;
|
|
70
70
|
statusCode: z.ZodNullable<z.ZodNumber>;
|
|
71
71
|
outcome: z.ZodNullable<z.ZodEnum<{
|
|
72
|
-
SUCCEEDED: "SUCCEEDED";
|
|
73
72
|
FAILED: "FAILED";
|
|
73
|
+
SUCCEEDED: "SUCCEEDED";
|
|
74
74
|
PENDING_APPROVAL: "PENDING_APPROVAL";
|
|
75
75
|
DENIED: "DENIED";
|
|
76
76
|
DRY_RUN: "DRY_RUN";
|
|
@@ -102,8 +102,8 @@ export declare const auditLogListQuerySchema: z.ZodObject<{
|
|
|
102
102
|
DOMAIN: "DOMAIN";
|
|
103
103
|
}>>;
|
|
104
104
|
outcome: z.ZodOptional<z.ZodEnum<{
|
|
105
|
-
SUCCEEDED: "SUCCEEDED";
|
|
106
105
|
FAILED: "FAILED";
|
|
106
|
+
SUCCEEDED: "SUCCEEDED";
|
|
107
107
|
PENDING_APPROVAL: "PENDING_APPROVAL";
|
|
108
108
|
DENIED: "DENIED";
|
|
109
109
|
DRY_RUN: "DRY_RUN";
|
|
@@ -149,8 +149,8 @@ export declare const auditLogPageSchema: z.ZodObject<{
|
|
|
149
149
|
path: z.ZodNullable<z.ZodString>;
|
|
150
150
|
statusCode: z.ZodNullable<z.ZodNumber>;
|
|
151
151
|
outcome: z.ZodNullable<z.ZodEnum<{
|
|
152
|
-
SUCCEEDED: "SUCCEEDED";
|
|
153
152
|
FAILED: "FAILED";
|
|
153
|
+
SUCCEEDED: "SUCCEEDED";
|
|
154
154
|
PENDING_APPROVAL: "PENDING_APPROVAL";
|
|
155
155
|
DENIED: "DENIED";
|
|
156
156
|
DRY_RUN: "DRY_RUN";
|
|
@@ -213,11 +213,11 @@ export declare const writeDryRunResultSchema: z.ZodObject<{
|
|
|
213
213
|
}, z.core.$strip>;
|
|
214
214
|
export type WriteDryRunResult = z.infer<typeof writeDryRunResultSchema>;
|
|
215
215
|
export declare const approvalStatusSchema: z.ZodEnum<{
|
|
216
|
-
UNKNOWN: "UNKNOWN";
|
|
217
|
-
SUCCEEDED: "SUCCEEDED";
|
|
218
|
-
FAILED: "FAILED";
|
|
219
216
|
PENDING: "PENDING";
|
|
217
|
+
FAILED: "FAILED";
|
|
218
|
+
SUCCEEDED: "SUCCEEDED";
|
|
220
219
|
EXECUTING: "EXECUTING";
|
|
220
|
+
UNKNOWN: "UNKNOWN";
|
|
221
221
|
REJECTED: "REJECTED";
|
|
222
222
|
EXPIRED: "EXPIRED";
|
|
223
223
|
}>;
|
|
@@ -225,11 +225,11 @@ export type ApprovalStatus = z.infer<typeof approvalStatusSchema>;
|
|
|
225
225
|
export declare const approvalRequestSchema: z.ZodObject<{
|
|
226
226
|
approvalId: z.ZodString;
|
|
227
227
|
status: z.ZodEnum<{
|
|
228
|
-
UNKNOWN: "UNKNOWN";
|
|
229
|
-
SUCCEEDED: "SUCCEEDED";
|
|
230
|
-
FAILED: "FAILED";
|
|
231
228
|
PENDING: "PENDING";
|
|
229
|
+
FAILED: "FAILED";
|
|
230
|
+
SUCCEEDED: "SUCCEEDED";
|
|
232
231
|
EXECUTING: "EXECUTING";
|
|
232
|
+
UNKNOWN: "UNKNOWN";
|
|
233
233
|
REJECTED: "REJECTED";
|
|
234
234
|
EXPIRED: "EXPIRED";
|
|
235
235
|
}>;
|
|
@@ -287,11 +287,11 @@ export declare const approvalRequestSchema: z.ZodObject<{
|
|
|
287
287
|
export type ApprovalRequest = z.infer<typeof approvalRequestSchema>;
|
|
288
288
|
export declare const approvalListQuerySchema: z.ZodObject<{
|
|
289
289
|
status: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodEnum<{
|
|
290
|
-
UNKNOWN: "UNKNOWN";
|
|
291
|
-
SUCCEEDED: "SUCCEEDED";
|
|
292
|
-
FAILED: "FAILED";
|
|
293
290
|
PENDING: "PENDING";
|
|
291
|
+
FAILED: "FAILED";
|
|
292
|
+
SUCCEEDED: "SUCCEEDED";
|
|
294
293
|
EXECUTING: "EXECUTING";
|
|
294
|
+
UNKNOWN: "UNKNOWN";
|
|
295
295
|
REJECTED: "REJECTED";
|
|
296
296
|
EXPIRED: "EXPIRED";
|
|
297
297
|
}>>>>;
|
|
@@ -306,11 +306,11 @@ export declare const approvalPageSchema: z.ZodObject<{
|
|
|
306
306
|
items: z.ZodArray<z.ZodObject<{
|
|
307
307
|
approvalId: z.ZodString;
|
|
308
308
|
status: z.ZodEnum<{
|
|
309
|
-
UNKNOWN: "UNKNOWN";
|
|
310
|
-
SUCCEEDED: "SUCCEEDED";
|
|
311
|
-
FAILED: "FAILED";
|
|
312
309
|
PENDING: "PENDING";
|
|
310
|
+
FAILED: "FAILED";
|
|
311
|
+
SUCCEEDED: "SUCCEEDED";
|
|
313
312
|
EXECUTING: "EXECUTING";
|
|
313
|
+
UNKNOWN: "UNKNOWN";
|
|
314
314
|
REJECTED: "REJECTED";
|
|
315
315
|
EXPIRED: "EXPIRED";
|
|
316
316
|
}>;
|
|
@@ -398,7 +398,7 @@ export declare const APPROVAL_ALREADY_DECIDED_CODE = "APPROVAL_ALREADY_DECIDED";
|
|
|
398
398
|
* 성공 값으로 돌려주지 않는다 — 돌려주면 호출부가 승인 요청을 상품·주문으로 읽는다.
|
|
399
399
|
*
|
|
400
400
|
* - `code = APPROVAL_REQUIRED`(202): 에이전트의 고위험 쓰기가 보류됐다. 아직 아무것도 바뀌지 않았다.
|
|
401
|
-
* 셀러가
|
|
401
|
+
* 셀러가 상점 플랫폼(`approval.approvalUrl`)에서 승인하면 서버가 원 요청을 실행한다. 같은 요청을 다시 보내지 말고
|
|
402
402
|
* `approvalRequests.get(approvalId)`로 결과를 확인한다.
|
|
403
403
|
* - `code = APPROVAL_ALREADY_DECIDED`(200): 같은 멱등키로 보낸 요청의 승인이 이미 끝났다. `status`가
|
|
404
404
|
* `SUCCEEDED`·`FAILED`·`UNKNOWN`이면 실행 결과(`approval.result`)를 보고, `REJECTED`·`EXPIRED`면 새 멱등키로 다시 요청한다.
|
|
@@ -581,20 +581,20 @@ export declare const analyticsProductsSchema: z.ZodObject<{
|
|
|
581
581
|
}, z.core.$strip>;
|
|
582
582
|
export type AnalyticsProducts = z.infer<typeof analyticsProductsSchema>;
|
|
583
583
|
export declare const analyticsChannelSchema: z.ZodEnum<{
|
|
584
|
+
PAID: "PAID";
|
|
584
585
|
DIRECT: "DIRECT";
|
|
586
|
+
CAMPAIGN: "CAMPAIGN";
|
|
587
|
+
UNKNOWN: "UNKNOWN";
|
|
585
588
|
ORGANIC_SEARCH: "ORGANIC_SEARCH";
|
|
586
589
|
SOCIAL: "SOCIAL";
|
|
587
|
-
PAID: "PAID";
|
|
588
590
|
EMAIL: "EMAIL";
|
|
589
|
-
CAMPAIGN: "CAMPAIGN";
|
|
590
591
|
REFERRAL: "REFERRAL";
|
|
591
|
-
UNKNOWN: "UNKNOWN";
|
|
592
592
|
}>;
|
|
593
593
|
export type AnalyticsChannel = z.infer<typeof analyticsChannelSchema>;
|
|
594
594
|
export declare const analyticsSourceGroupBySchema: z.ZodEnum<{
|
|
595
|
-
CAMPAIGN: "CAMPAIGN";
|
|
596
595
|
CHANNEL: "CHANNEL";
|
|
597
596
|
SOURCE: "SOURCE";
|
|
597
|
+
CAMPAIGN: "CAMPAIGN";
|
|
598
598
|
DEVICE: "DEVICE";
|
|
599
599
|
}>;
|
|
600
600
|
export type AnalyticsSourceGroupBy = z.infer<typeof analyticsSourceGroupBySchema>;
|
|
@@ -606,23 +606,23 @@ export declare const analyticsSourcesQuerySchema: z.ZodObject<{
|
|
|
606
606
|
false: "false";
|
|
607
607
|
}>>;
|
|
608
608
|
groupBy: z.ZodOptional<z.ZodEnum<{
|
|
609
|
-
CAMPAIGN: "CAMPAIGN";
|
|
610
609
|
CHANNEL: "CHANNEL";
|
|
611
610
|
SOURCE: "SOURCE";
|
|
611
|
+
CAMPAIGN: "CAMPAIGN";
|
|
612
612
|
DEVICE: "DEVICE";
|
|
613
613
|
}>>;
|
|
614
614
|
}, z.core.$strip>;
|
|
615
615
|
export type AnalyticsSourcesParams = z.infer<typeof analyticsSourcesQuerySchema>;
|
|
616
616
|
export declare const analyticsSourceRowSchema: z.ZodObject<{
|
|
617
617
|
channel: z.ZodNullable<z.ZodEnum<{
|
|
618
|
+
PAID: "PAID";
|
|
618
619
|
DIRECT: "DIRECT";
|
|
620
|
+
CAMPAIGN: "CAMPAIGN";
|
|
621
|
+
UNKNOWN: "UNKNOWN";
|
|
619
622
|
ORGANIC_SEARCH: "ORGANIC_SEARCH";
|
|
620
623
|
SOCIAL: "SOCIAL";
|
|
621
|
-
PAID: "PAID";
|
|
622
624
|
EMAIL: "EMAIL";
|
|
623
|
-
CAMPAIGN: "CAMPAIGN";
|
|
624
625
|
REFERRAL: "REFERRAL";
|
|
625
|
-
UNKNOWN: "UNKNOWN";
|
|
626
626
|
}>>;
|
|
627
627
|
source: z.ZodNullable<z.ZodString>;
|
|
628
628
|
medium: z.ZodNullable<z.ZodString>;
|
|
@@ -644,21 +644,21 @@ export declare const analyticsSourceRowSchema: z.ZodObject<{
|
|
|
644
644
|
export type AnalyticsSourceRow = z.infer<typeof analyticsSourceRowSchema>;
|
|
645
645
|
export declare const analyticsSourcesSchema: z.ZodObject<{
|
|
646
646
|
groupBy: z.ZodEnum<{
|
|
647
|
-
CAMPAIGN: "CAMPAIGN";
|
|
648
647
|
CHANNEL: "CHANNEL";
|
|
649
648
|
SOURCE: "SOURCE";
|
|
649
|
+
CAMPAIGN: "CAMPAIGN";
|
|
650
650
|
DEVICE: "DEVICE";
|
|
651
651
|
}>;
|
|
652
652
|
rows: z.ZodArray<z.ZodObject<{
|
|
653
653
|
channel: z.ZodNullable<z.ZodEnum<{
|
|
654
|
+
PAID: "PAID";
|
|
654
655
|
DIRECT: "DIRECT";
|
|
656
|
+
CAMPAIGN: "CAMPAIGN";
|
|
657
|
+
UNKNOWN: "UNKNOWN";
|
|
655
658
|
ORGANIC_SEARCH: "ORGANIC_SEARCH";
|
|
656
659
|
SOCIAL: "SOCIAL";
|
|
657
|
-
PAID: "PAID";
|
|
658
660
|
EMAIL: "EMAIL";
|
|
659
|
-
CAMPAIGN: "CAMPAIGN";
|
|
660
661
|
REFERRAL: "REFERRAL";
|
|
661
|
-
UNKNOWN: "UNKNOWN";
|
|
662
662
|
}>>;
|
|
663
663
|
source: z.ZodNullable<z.ZodString>;
|
|
664
664
|
medium: z.ZodNullable<z.ZodString>;
|
|
@@ -807,12 +807,12 @@ export declare const analyticsSearchSchema: z.ZodObject<{
|
|
|
807
807
|
}, z.core.$strip>;
|
|
808
808
|
export type AnalyticsSearch = z.infer<typeof analyticsSearchSchema>;
|
|
809
809
|
export declare const analyticsCheckoutOutcomeSchema: z.ZodEnum<{
|
|
810
|
+
OTHER: "OTHER";
|
|
810
811
|
COMPLETED: "COMPLETED";
|
|
811
812
|
NOT_OPENED: "NOT_OPENED";
|
|
812
813
|
USER_CANCELED: "USER_CANCELED";
|
|
813
814
|
DECLINED: "DECLINED";
|
|
814
815
|
PREPARE_FAILURE: "PREPARE_FAILURE";
|
|
815
|
-
OTHER: "OTHER";
|
|
816
816
|
IN_PROGRESS: "IN_PROGRESS";
|
|
817
817
|
}>;
|
|
818
818
|
export type AnalyticsCheckoutOutcome = z.infer<typeof analyticsCheckoutOutcomeSchema>;
|
|
@@ -820,12 +820,12 @@ export declare const analyticsCheckoutSchema: z.ZodObject<{
|
|
|
820
820
|
sessions: z.ZodNumber;
|
|
821
821
|
outcomes: z.ZodArray<z.ZodObject<{
|
|
822
822
|
outcome: z.ZodEnum<{
|
|
823
|
+
OTHER: "OTHER";
|
|
823
824
|
COMPLETED: "COMPLETED";
|
|
824
825
|
NOT_OPENED: "NOT_OPENED";
|
|
825
826
|
USER_CANCELED: "USER_CANCELED";
|
|
826
827
|
DECLINED: "DECLINED";
|
|
827
828
|
PREPARE_FAILURE: "PREPARE_FAILURE";
|
|
828
|
-
OTHER: "OTHER";
|
|
829
829
|
IN_PROGRESS: "IN_PROGRESS";
|
|
830
830
|
}>;
|
|
831
831
|
sessions: z.ZodNumber;
|
|
@@ -841,8 +841,8 @@ export type AnalyticsCheckout = z.infer<typeof analyticsCheckoutSchema>;
|
|
|
841
841
|
//#endregion
|
|
842
842
|
//#region src/schemas/api-log.d.ts
|
|
843
843
|
/**
|
|
844
|
-
* API 로그 — `/v1/api-logs`.
|
|
845
|
-
* 인증에 실패해
|
|
844
|
+
* API 로그 — `/v1/api-logs`. 상점이 해석된 관리 API(`/v1/**`) 요청을 7일간 보관한다.
|
|
845
|
+
* 인증에 실패해 상점을 알 수 없는 요청(401 등)은 기록되지 않는다.
|
|
846
846
|
* Authorization·쿠키 헤더, 요청 본문, 개인정보는 저장하지 않는다.
|
|
847
847
|
*/
|
|
848
848
|
export declare const apiLogPrincipalTypeSchema: z.ZodEnum<{
|
|
@@ -954,7 +954,7 @@ export declare const apiLogPageSchema: z.ZodObject<{
|
|
|
954
954
|
export type ApiLogPage = z.infer<typeof apiLogPageSchema>;
|
|
955
955
|
/**
|
|
956
956
|
* API 로그 요약 — `GET /api-logs/summary`. 연동 트래픽(호출 주체 `PAT`·`CLIENT`)만 집계하며
|
|
957
|
-
*
|
|
957
|
+
* 상점 플랫폼 사용자(`USER`) 요청은 제외한다
|
|
958
958
|
*/
|
|
959
959
|
export declare const apiLogSummarySchema: z.ZodObject<{
|
|
960
960
|
windowHours: z.ZodNumber;
|
|
@@ -966,11 +966,11 @@ export type ApiLogSummary = z.infer<typeof apiLogSummarySchema>;
|
|
|
966
966
|
//#endregion
|
|
967
967
|
//#region src/schemas/category.d.ts
|
|
968
968
|
export declare const categoryProductSortSchema: z.ZodEnum<{
|
|
969
|
+
NAME: "NAME";
|
|
969
970
|
RECENT: "RECENT";
|
|
970
971
|
POPULAR: "POPULAR";
|
|
971
972
|
PRICE_LOW: "PRICE_LOW";
|
|
972
973
|
PRICE_HIGH: "PRICE_HIGH";
|
|
973
|
-
NAME: "NAME";
|
|
974
974
|
}>;
|
|
975
975
|
export type CategoryProductSort = z.infer<typeof categoryProductSortSchema>;
|
|
976
976
|
export declare const categorySchema: z.ZodObject<{
|
|
@@ -986,11 +986,11 @@ export declare const categorySchema: z.ZodObject<{
|
|
|
986
986
|
showPc: z.ZodBoolean;
|
|
987
987
|
showMobile: z.ZodBoolean;
|
|
988
988
|
productSort: z.ZodEnum<{
|
|
989
|
+
NAME: "NAME";
|
|
989
990
|
RECENT: "RECENT";
|
|
990
991
|
POPULAR: "POPULAR";
|
|
991
992
|
PRICE_LOW: "PRICE_LOW";
|
|
992
993
|
PRICE_HIGH: "PRICE_HIGH";
|
|
993
|
-
NAME: "NAME";
|
|
994
994
|
}>;
|
|
995
995
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
996
996
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1016,11 +1016,11 @@ export declare const categoryWithPathSchema: z.ZodObject<{
|
|
|
1016
1016
|
showPc: z.ZodBoolean;
|
|
1017
1017
|
showMobile: z.ZodBoolean;
|
|
1018
1018
|
productSort: z.ZodEnum<{
|
|
1019
|
+
NAME: "NAME";
|
|
1019
1020
|
RECENT: "RECENT";
|
|
1020
1021
|
POPULAR: "POPULAR";
|
|
1021
1022
|
PRICE_LOW: "PRICE_LOW";
|
|
1022
1023
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1023
|
-
NAME: "NAME";
|
|
1024
1024
|
}>;
|
|
1025
1025
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1026
1026
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1041,11 +1041,11 @@ export declare const categoryWithPathSchema: z.ZodObject<{
|
|
|
1041
1041
|
showPc: z.ZodBoolean;
|
|
1042
1042
|
showMobile: z.ZodBoolean;
|
|
1043
1043
|
productSort: z.ZodEnum<{
|
|
1044
|
+
NAME: "NAME";
|
|
1044
1045
|
RECENT: "RECENT";
|
|
1045
1046
|
POPULAR: "POPULAR";
|
|
1046
1047
|
PRICE_LOW: "PRICE_LOW";
|
|
1047
1048
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1048
|
-
NAME: "NAME";
|
|
1049
1049
|
}>;
|
|
1050
1050
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1051
1051
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1069,11 +1069,11 @@ export declare const categorySearchResultSchema: z.ZodObject<{
|
|
|
1069
1069
|
showPc: z.ZodBoolean;
|
|
1070
1070
|
showMobile: z.ZodBoolean;
|
|
1071
1071
|
productSort: z.ZodEnum<{
|
|
1072
|
+
NAME: "NAME";
|
|
1072
1073
|
RECENT: "RECENT";
|
|
1073
1074
|
POPULAR: "POPULAR";
|
|
1074
1075
|
PRICE_LOW: "PRICE_LOW";
|
|
1075
1076
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1076
|
-
NAME: "NAME";
|
|
1077
1077
|
}>;
|
|
1078
1078
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1079
1079
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1094,11 +1094,11 @@ export declare const categorySearchResultSchema: z.ZodObject<{
|
|
|
1094
1094
|
showPc: z.ZodBoolean;
|
|
1095
1095
|
showMobile: z.ZodBoolean;
|
|
1096
1096
|
productSort: z.ZodEnum<{
|
|
1097
|
+
NAME: "NAME";
|
|
1097
1098
|
RECENT: "RECENT";
|
|
1098
1099
|
POPULAR: "POPULAR";
|
|
1099
1100
|
PRICE_LOW: "PRICE_LOW";
|
|
1100
1101
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1101
|
-
NAME: "NAME";
|
|
1102
1102
|
}>;
|
|
1103
1103
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1104
1104
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1130,11 +1130,11 @@ export declare const categoryCreateRequestSchema: z.ZodObject<{
|
|
|
1130
1130
|
showPc: z.ZodOptional<z.ZodBoolean>;
|
|
1131
1131
|
showMobile: z.ZodOptional<z.ZodBoolean>;
|
|
1132
1132
|
productSort: z.ZodOptional<z.ZodEnum<{
|
|
1133
|
+
NAME: "NAME";
|
|
1133
1134
|
RECENT: "RECENT";
|
|
1134
1135
|
POPULAR: "POPULAR";
|
|
1135
1136
|
PRICE_LOW: "PRICE_LOW";
|
|
1136
1137
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1137
|
-
NAME: "NAME";
|
|
1138
1138
|
}>>;
|
|
1139
1139
|
metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1140
1140
|
metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1149,11 +1149,11 @@ export declare const categoryPatchRequestSchema: z.ZodObject<{
|
|
|
1149
1149
|
showPc: z.ZodOptional<z.ZodBoolean>;
|
|
1150
1150
|
showMobile: z.ZodOptional<z.ZodBoolean>;
|
|
1151
1151
|
productSort: z.ZodOptional<z.ZodEnum<{
|
|
1152
|
+
NAME: "NAME";
|
|
1152
1153
|
RECENT: "RECENT";
|
|
1153
1154
|
POPULAR: "POPULAR";
|
|
1154
1155
|
PRICE_LOW: "PRICE_LOW";
|
|
1155
1156
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1156
|
-
NAME: "NAME";
|
|
1157
1157
|
}>>;
|
|
1158
1158
|
metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1159
1159
|
metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1258,13 +1258,12 @@ export type ChangeType = z.infer<typeof changeTypeSchema>;
|
|
|
1258
1258
|
//#endregion
|
|
1259
1259
|
//#region src/schemas/claim.d.ts
|
|
1260
1260
|
export declare const claimTypeSchema: z.ZodEnum<{
|
|
1261
|
-
CANCEL: "CANCEL";
|
|
1262
1261
|
RETURN: "RETURN";
|
|
1263
1262
|
EXCHANGE: "EXCHANGE";
|
|
1263
|
+
CANCEL: "CANCEL";
|
|
1264
1264
|
}>;
|
|
1265
1265
|
export type ClaimType = z.infer<typeof claimTypeSchema>;
|
|
1266
1266
|
export declare const claimStatusSchema: z.ZodEnum<{
|
|
1267
|
-
COMPLETED: "COMPLETED";
|
|
1268
1267
|
REJECTED: "REJECTED";
|
|
1269
1268
|
REQUESTED: "REQUESTED";
|
|
1270
1269
|
HELD: "HELD";
|
|
@@ -1272,6 +1271,7 @@ export declare const claimStatusSchema: z.ZodEnum<{
|
|
|
1272
1271
|
COLLECTED: "COLLECTED";
|
|
1273
1272
|
REDELIVERING: "REDELIVERING";
|
|
1274
1273
|
APPROVED: "APPROVED";
|
|
1274
|
+
COMPLETED: "COMPLETED";
|
|
1275
1275
|
WITHDRAWN: "WITHDRAWN";
|
|
1276
1276
|
}>;
|
|
1277
1277
|
export type ClaimStatus = z.infer<typeof claimStatusSchema>;
|
|
@@ -1285,10 +1285,10 @@ export declare const claimReasonSchema: z.ZodEnum<{
|
|
|
1285
1285
|
}>;
|
|
1286
1286
|
export type ClaimReason = z.infer<typeof claimReasonSchema>;
|
|
1287
1287
|
/**
|
|
1288
|
-
* 반품지 (이슈 #30) — 반품·교환 수거가 안내하는 주소다.
|
|
1288
|
+
* 반품지 (이슈 #30) — 반품·교환 수거가 안내하는 주소다. 상점 주소록의 기본 반품지이거나,
|
|
1289
1289
|
* 상품이 반품지를 따로 지정했으면 그 주소다.
|
|
1290
1290
|
*
|
|
1291
|
-
* 취소 클레임은 보낼 물건이 없어 null이고, 반품지를 등록하지 않은
|
|
1291
|
+
* 취소 클레임은 보낼 물건이 없어 null이고, 반품지를 등록하지 않은 상점도 null이다.
|
|
1292
1292
|
* 구매자가 직접 보내는 수거(`BUYER_SEND`)에 이 주소가 필요하다.
|
|
1293
1293
|
*/
|
|
1294
1294
|
export declare const claimReturnAddressSchema: z.ZodObject<{
|
|
@@ -1303,12 +1303,11 @@ export type ClaimReturnAddress = z.infer<typeof claimReturnAddressSchema>;
|
|
|
1303
1303
|
export declare const claimSchema: z.ZodObject<{
|
|
1304
1304
|
claimId: z.ZodString;
|
|
1305
1305
|
type: z.ZodEnum<{
|
|
1306
|
-
CANCEL: "CANCEL";
|
|
1307
1306
|
RETURN: "RETURN";
|
|
1308
1307
|
EXCHANGE: "EXCHANGE";
|
|
1308
|
+
CANCEL: "CANCEL";
|
|
1309
1309
|
}>;
|
|
1310
1310
|
status: z.ZodEnum<{
|
|
1311
|
-
COMPLETED: "COMPLETED";
|
|
1312
1311
|
REJECTED: "REJECTED";
|
|
1313
1312
|
REQUESTED: "REQUESTED";
|
|
1314
1313
|
HELD: "HELD";
|
|
@@ -1316,6 +1315,7 @@ export declare const claimSchema: z.ZodObject<{
|
|
|
1316
1315
|
COLLECTED: "COLLECTED";
|
|
1317
1316
|
REDELIVERING: "REDELIVERING";
|
|
1318
1317
|
APPROVED: "APPROVED";
|
|
1318
|
+
COMPLETED: "COMPLETED";
|
|
1319
1319
|
WITHDRAWN: "WITHDRAWN";
|
|
1320
1320
|
}>;
|
|
1321
1321
|
orderId: z.ZodString;
|
|
@@ -1378,9 +1378,9 @@ export declare const claimListQuerySchema: z.ZodObject<{
|
|
|
1378
1378
|
page: z.ZodOptional<z.ZodString>;
|
|
1379
1379
|
size: z.ZodOptional<z.ZodString>;
|
|
1380
1380
|
type: z.ZodOptional<z.ZodEnum<{
|
|
1381
|
-
CANCEL: "CANCEL";
|
|
1382
1381
|
RETURN: "RETURN";
|
|
1383
1382
|
EXCHANGE: "EXCHANGE";
|
|
1383
|
+
CANCEL: "CANCEL";
|
|
1384
1384
|
}>>;
|
|
1385
1385
|
status: z.ZodOptional<z.ZodString>;
|
|
1386
1386
|
orderItemId: z.ZodOptional<z.ZodString>;
|
|
@@ -1391,12 +1391,11 @@ export declare const claimListQuerySchema: z.ZodObject<{
|
|
|
1391
1391
|
export declare const claimDetailSchema: z.ZodObject<{
|
|
1392
1392
|
claimId: z.ZodString;
|
|
1393
1393
|
type: z.ZodEnum<{
|
|
1394
|
-
CANCEL: "CANCEL";
|
|
1395
1394
|
RETURN: "RETURN";
|
|
1396
1395
|
EXCHANGE: "EXCHANGE";
|
|
1396
|
+
CANCEL: "CANCEL";
|
|
1397
1397
|
}>;
|
|
1398
1398
|
status: z.ZodEnum<{
|
|
1399
|
-
COMPLETED: "COMPLETED";
|
|
1400
1399
|
REJECTED: "REJECTED";
|
|
1401
1400
|
REQUESTED: "REQUESTED";
|
|
1402
1401
|
HELD: "HELD";
|
|
@@ -1404,6 +1403,7 @@ export declare const claimDetailSchema: z.ZodObject<{
|
|
|
1404
1403
|
COLLECTED: "COLLECTED";
|
|
1405
1404
|
REDELIVERING: "REDELIVERING";
|
|
1406
1405
|
APPROVED: "APPROVED";
|
|
1406
|
+
COMPLETED: "COMPLETED";
|
|
1407
1407
|
WITHDRAWN: "WITHDRAWN";
|
|
1408
1408
|
}>;
|
|
1409
1409
|
orderId: z.ZodString;
|
|
@@ -1453,7 +1453,6 @@ 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
|
-
COMPLETED: "COMPLETED";
|
|
1457
1456
|
REJECTED: "REJECTED";
|
|
1458
1457
|
REQUESTED: "REQUESTED";
|
|
1459
1458
|
HELD: "HELD";
|
|
@@ -1461,6 +1460,7 @@ export declare const claimDetailSchema: z.ZodObject<{
|
|
|
1461
1460
|
COLLECTED: "COLLECTED";
|
|
1462
1461
|
REDELIVERING: "REDELIVERING";
|
|
1463
1462
|
APPROVED: "APPROVED";
|
|
1463
|
+
COMPLETED: "COMPLETED";
|
|
1464
1464
|
WITHDRAWN: "WITHDRAWN";
|
|
1465
1465
|
}>;
|
|
1466
1466
|
actor: z.ZodEnum<{
|
|
@@ -1480,11 +1480,11 @@ export declare const claimHoldResultSchema: z.ZodObject<{
|
|
|
1480
1480
|
export type ClaimHoldResult = z.infer<typeof claimHoldResultSchema>;
|
|
1481
1481
|
export declare const rejectClaimRequestSchema: z.ZodObject<{
|
|
1482
1482
|
reason: z.ZodEnum<{
|
|
1483
|
+
ETC: "ETC";
|
|
1483
1484
|
USED_PRODUCT: "USED_PRODUCT";
|
|
1484
1485
|
MISSING_COMPONENT: "MISSING_COMPONENT";
|
|
1485
1486
|
PERIOD_EXPIRED: "PERIOD_EXPIRED";
|
|
1486
1487
|
BUYER_FAULT_DAMAGE: "BUYER_FAULT_DAMAGE";
|
|
1487
|
-
ETC: "ETC";
|
|
1488
1488
|
}>;
|
|
1489
1489
|
detail: z.ZodString;
|
|
1490
1490
|
evidenceImages: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
@@ -1520,8 +1520,8 @@ export declare const couponStatusSchema: z.ZodEnum<{
|
|
|
1520
1520
|
export type CouponStatus = z.infer<typeof couponStatusSchema>;
|
|
1521
1521
|
/** 지금 만들 수 있는 발급 방식 — 다운로드·가입 자동 지급은 뒤 단계다 */
|
|
1522
1522
|
export declare const couponIssueMethodSchema: z.ZodEnum<{
|
|
1523
|
-
CODE: "CODE";
|
|
1524
1523
|
MANUAL: "MANUAL";
|
|
1524
|
+
CODE: "CODE";
|
|
1525
1525
|
}>;
|
|
1526
1526
|
export type CouponIssueMethod = z.infer<typeof couponIssueMethodSchema>;
|
|
1527
1527
|
/** 코드 형식 — 영문·숫자·`-`·`_` 6~30자. 대소문자를 구분하지 않고 서버가 대문자로 저장한다 */
|
|
@@ -1572,8 +1572,8 @@ export declare const createCouponRequestSchema: z.ZodObject<{
|
|
|
1572
1572
|
excludeCategoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1573
1573
|
}, z.core.$strict>>;
|
|
1574
1574
|
issueMethod: z.ZodEnum<{
|
|
1575
|
-
CODE: "CODE";
|
|
1576
1575
|
MANUAL: "MANUAL";
|
|
1576
|
+
CODE: "CODE";
|
|
1577
1577
|
}>;
|
|
1578
1578
|
code: z.ZodOptional<z.ZodString>;
|
|
1579
1579
|
startsAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
@@ -1690,8 +1690,8 @@ export declare const couponListQuerySchema: z.ZodObject<{
|
|
|
1690
1690
|
DELIVERY: "DELIVERY";
|
|
1691
1691
|
}>>;
|
|
1692
1692
|
issueMethod: z.ZodOptional<z.ZodEnum<{
|
|
1693
|
-
CODE: "CODE";
|
|
1694
1693
|
MANUAL: "MANUAL";
|
|
1694
|
+
CODE: "CODE";
|
|
1695
1695
|
}>>;
|
|
1696
1696
|
q: z.ZodOptional<z.ZodString>;
|
|
1697
1697
|
}, z.core.$strip>;
|
|
@@ -2093,10 +2093,10 @@ export type CustomerOrder = z.infer<typeof customerOrderSchema>;
|
|
|
2093
2093
|
/** `POST /v1/customers/{id}/withdraw` 본문 */
|
|
2094
2094
|
export declare const withdrawCustomerRequestSchema: z.ZodObject<{
|
|
2095
2095
|
reason: z.ZodEnum<{
|
|
2096
|
-
OTHER: "OTHER";
|
|
2097
2096
|
BUYER_REQUEST: "BUYER_REQUEST";
|
|
2098
2097
|
DORMANT: "DORMANT";
|
|
2099
2098
|
ABUSE: "ABUSE";
|
|
2099
|
+
OTHER: "OTHER";
|
|
2100
2100
|
}>;
|
|
2101
2101
|
memo: z.ZodOptional<z.ZodString>;
|
|
2102
2102
|
}, z.core.$strip>;
|
|
@@ -2191,11 +2191,11 @@ export declare const inquirySchema: z.ZodObject<{
|
|
|
2191
2191
|
productName: z.ZodString;
|
|
2192
2192
|
orderItemId: z.ZodNullable<z.ZodString>;
|
|
2193
2193
|
category: z.ZodEnum<{
|
|
2194
|
+
ETC: "ETC";
|
|
2194
2195
|
PRODUCT: "PRODUCT";
|
|
2195
2196
|
DELIVERY: "DELIVERY";
|
|
2196
2197
|
RETURN: "RETURN";
|
|
2197
2198
|
EXCHANGE: "EXCHANGE";
|
|
2198
|
-
ETC: "ETC";
|
|
2199
2199
|
}>;
|
|
2200
2200
|
content: z.ZodString;
|
|
2201
2201
|
secret: z.ZodBoolean;
|
|
@@ -2210,10 +2210,10 @@ export declare const inquirySchema: z.ZodObject<{
|
|
|
2210
2210
|
}, z.core.$strip>;
|
|
2211
2211
|
export type Inquiry = z.infer<typeof inquirySchema>;
|
|
2212
2212
|
export declare const customerInquiryCategorySchema: z.ZodEnum<{
|
|
2213
|
+
ETC: "ETC";
|
|
2213
2214
|
DELIVERY: "DELIVERY";
|
|
2214
2215
|
RETURN: "RETURN";
|
|
2215
2216
|
EXCHANGE: "EXCHANGE";
|
|
2216
|
-
ETC: "ETC";
|
|
2217
2217
|
PAYMENT: "PAYMENT";
|
|
2218
2218
|
}>;
|
|
2219
2219
|
export type CustomerInquiryCategory = z.infer<typeof customerInquiryCategorySchema>;
|
|
@@ -2222,10 +2222,10 @@ export declare const sellerCustomerInquirySchema: z.ZodObject<{
|
|
|
2222
2222
|
inquiryId: z.ZodString;
|
|
2223
2223
|
memberMaskedName: z.ZodString;
|
|
2224
2224
|
category: z.ZodEnum<{
|
|
2225
|
+
ETC: "ETC";
|
|
2225
2226
|
DELIVERY: "DELIVERY";
|
|
2226
2227
|
RETURN: "RETURN";
|
|
2227
2228
|
EXCHANGE: "EXCHANGE";
|
|
2228
|
-
ETC: "ETC";
|
|
2229
2229
|
PAYMENT: "PAYMENT";
|
|
2230
2230
|
}>;
|
|
2231
2231
|
title: z.ZodString;
|
|
@@ -2260,10 +2260,10 @@ export declare const customerInquiryListQuerySchema: z.ZodObject<{
|
|
|
2260
2260
|
false: "false";
|
|
2261
2261
|
}>>;
|
|
2262
2262
|
category: z.ZodOptional<z.ZodEnum<{
|
|
2263
|
+
ETC: "ETC";
|
|
2263
2264
|
DELIVERY: "DELIVERY";
|
|
2264
2265
|
RETURN: "RETURN";
|
|
2265
2266
|
EXCHANGE: "EXCHANGE";
|
|
2266
|
-
ETC: "ETC";
|
|
2267
2267
|
PAYMENT: "PAYMENT";
|
|
2268
2268
|
}>>;
|
|
2269
2269
|
from: z.ZodOptional<z.ZodString>;
|
|
@@ -2383,8 +2383,8 @@ export declare const eventTypeSchema: z.ZodEnum<{
|
|
|
2383
2383
|
}>;
|
|
2384
2384
|
export type EventType = z.infer<typeof eventTypeSchema>;
|
|
2385
2385
|
export declare const webhookStatusSchema: z.ZodEnum<{
|
|
2386
|
-
ACTIVE: "ACTIVE";
|
|
2387
2386
|
SUSPENDED: "SUSPENDED";
|
|
2387
|
+
ACTIVE: "ACTIVE";
|
|
2388
2388
|
}>;
|
|
2389
2389
|
export type WebhookStatus = z.infer<typeof webhookStatusSchema>;
|
|
2390
2390
|
export declare const webhookSchema: z.ZodObject<{
|
|
@@ -2408,8 +2408,8 @@ export declare const webhookSchema: z.ZodObject<{
|
|
|
2408
2408
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
2409
2409
|
}>>;
|
|
2410
2410
|
status: z.ZodEnum<{
|
|
2411
|
-
ACTIVE: "ACTIVE";
|
|
2412
2411
|
SUSPENDED: "SUSPENDED";
|
|
2412
|
+
ACTIVE: "ACTIVE";
|
|
2413
2413
|
}>;
|
|
2414
2414
|
secretPrefix: z.ZodString;
|
|
2415
2415
|
suspendedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -2438,8 +2438,8 @@ export declare const webhookCreatedSchema: z.ZodObject<{
|
|
|
2438
2438
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
2439
2439
|
}>>;
|
|
2440
2440
|
status: z.ZodEnum<{
|
|
2441
|
-
ACTIVE: "ACTIVE";
|
|
2442
2441
|
SUSPENDED: "SUSPENDED";
|
|
2442
|
+
ACTIVE: "ACTIVE";
|
|
2443
2443
|
}>;
|
|
2444
2444
|
secretPrefix: z.ZodString;
|
|
2445
2445
|
suspendedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -2454,10 +2454,10 @@ export declare const webhookSecretRotatedSchema: z.ZodObject<{
|
|
|
2454
2454
|
}, z.core.$strip>;
|
|
2455
2455
|
export type WebhookSecretRotated = z.infer<typeof webhookSecretRotatedSchema>;
|
|
2456
2456
|
export declare const webhookDeliveryStatusSchema: z.ZodEnum<{
|
|
2457
|
-
FAILED: "FAILED";
|
|
2458
2457
|
PENDING: "PENDING";
|
|
2459
2458
|
PENDING_RETRY: "PENDING_RETRY";
|
|
2460
2459
|
SUCCESS: "SUCCESS";
|
|
2460
|
+
FAILED: "FAILED";
|
|
2461
2461
|
}>;
|
|
2462
2462
|
export type WebhookDeliveryStatus = z.infer<typeof webhookDeliveryStatusSchema>;
|
|
2463
2463
|
export declare const webhookDeliveryErrorCodeSchema: z.ZodEnum<{
|
|
@@ -2519,10 +2519,10 @@ export declare const webhookDeliverySchema: z.ZodObject<{
|
|
|
2519
2519
|
}>;
|
|
2520
2520
|
url: z.ZodString;
|
|
2521
2521
|
status: z.ZodEnum<{
|
|
2522
|
-
FAILED: "FAILED";
|
|
2523
2522
|
PENDING: "PENDING";
|
|
2524
2523
|
PENDING_RETRY: "PENDING_RETRY";
|
|
2525
2524
|
SUCCESS: "SUCCESS";
|
|
2525
|
+
FAILED: "FAILED";
|
|
2526
2526
|
}>;
|
|
2527
2527
|
responseStatusCode: z.ZodNullable<z.ZodNumber>;
|
|
2528
2528
|
responseTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
@@ -2572,10 +2572,10 @@ export declare const webhookDeliveryDetailSchema: z.ZodObject<{
|
|
|
2572
2572
|
}>;
|
|
2573
2573
|
url: z.ZodString;
|
|
2574
2574
|
status: z.ZodEnum<{
|
|
2575
|
-
FAILED: "FAILED";
|
|
2576
2575
|
PENDING: "PENDING";
|
|
2577
2576
|
PENDING_RETRY: "PENDING_RETRY";
|
|
2578
2577
|
SUCCESS: "SUCCESS";
|
|
2578
|
+
FAILED: "FAILED";
|
|
2579
2579
|
}>;
|
|
2580
2580
|
responseStatusCode: z.ZodNullable<z.ZodNumber>;
|
|
2581
2581
|
responseTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
@@ -2610,10 +2610,10 @@ export type WebhookDeliveryDetail = z.infer<typeof webhookDeliveryDetailSchema>;
|
|
|
2610
2610
|
/** 전송 기록 조회 쿼리 — `GET /webhooks/{id}/deliveries` */
|
|
2611
2611
|
export declare const webhookDeliveryListQuerySchema: z.ZodObject<{
|
|
2612
2612
|
status: z.ZodOptional<z.ZodEnum<{
|
|
2613
|
-
FAILED: "FAILED";
|
|
2614
2613
|
PENDING: "PENDING";
|
|
2615
2614
|
PENDING_RETRY: "PENDING_RETRY";
|
|
2616
2615
|
SUCCESS: "SUCCESS";
|
|
2616
|
+
FAILED: "FAILED";
|
|
2617
2617
|
}>>;
|
|
2618
2618
|
eventType: z.ZodOptional<z.ZodEnum<{
|
|
2619
2619
|
"ORDER.PAID": "ORDER.PAID";
|
|
@@ -2790,8 +2790,8 @@ export type ReviewReportResult = z.infer<typeof reviewReportResultSchema>;
|
|
|
2790
2790
|
* 이름은 이행 방식이다 — `SHIPPING`이 택배 발송이듯 `MANUAL`은 셀러가 직접 제공한다는 뜻이다.
|
|
2791
2791
|
*/
|
|
2792
2792
|
export declare const fulfillmentTypeSchema: z.ZodEnum<{
|
|
2793
|
-
MANUAL: "MANUAL";
|
|
2794
2793
|
SHIPPING: "SHIPPING";
|
|
2794
|
+
MANUAL: "MANUAL";
|
|
2795
2795
|
}>;
|
|
2796
2796
|
export type FulfillmentType = z.infer<typeof fulfillmentTypeSchema>;
|
|
2797
2797
|
/**
|
|
@@ -2830,20 +2830,20 @@ export declare function requiresCollection(type: string | null | undefined): boo
|
|
|
2830
2830
|
export declare const NO_SHIPPING_BUNDLE_KEY = "none";
|
|
2831
2831
|
/** 배송비 유형 — 무료·유료·조건부 무료 */
|
|
2832
2832
|
export declare const deliveryTypeSchema: z.ZodEnum<{
|
|
2833
|
-
PAID: "PAID";
|
|
2834
2833
|
FREE: "FREE";
|
|
2834
|
+
PAID: "PAID";
|
|
2835
2835
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
2836
2836
|
}>;
|
|
2837
2837
|
export type DeliveryType = z.infer<typeof deliveryTypeSchema>;
|
|
2838
2838
|
/**
|
|
2839
|
-
* 상품 이행 — 등록(POST). 배송 상품의 `shipping`을 생략하면 기본값(유료
|
|
2839
|
+
* 상품 이행 — 등록(POST). 배송 상품의 `shipping`을 생략하면 기본값(유료 배송·상점 기본 배송비·기본 출고지·반품지)이다.
|
|
2840
2840
|
*/
|
|
2841
2841
|
export declare const productFulfillmentCreateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2842
2842
|
type: z.ZodLiteral<"SHIPPING">;
|
|
2843
2843
|
shipping: z.ZodOptional<z.ZodObject<{
|
|
2844
2844
|
deliveryType: z.ZodDefault<z.ZodEnum<{
|
|
2845
|
-
PAID: "PAID";
|
|
2846
2845
|
FREE: "FREE";
|
|
2846
|
+
PAID: "PAID";
|
|
2847
2847
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
2848
2848
|
}>>;
|
|
2849
2849
|
deliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2865,8 +2865,8 @@ export declare const productFulfillmentUpdateSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
2865
2865
|
type: z.ZodLiteral<"SHIPPING">;
|
|
2866
2866
|
shipping: z.ZodObject<{
|
|
2867
2867
|
deliveryType: z.ZodEnum<{
|
|
2868
|
-
PAID: "PAID";
|
|
2869
2868
|
FREE: "FREE";
|
|
2869
|
+
PAID: "PAID";
|
|
2870
2870
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
2871
2871
|
}>;
|
|
2872
2872
|
deliveryFee: z.ZodNumber;
|
|
@@ -2886,8 +2886,8 @@ export declare const productFulfillmentSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
2886
2886
|
type: z.ZodLiteral<"SHIPPING">;
|
|
2887
2887
|
shipping: z.ZodObject<{
|
|
2888
2888
|
deliveryType: z.ZodEnum<{
|
|
2889
|
-
PAID: "PAID";
|
|
2890
2889
|
FREE: "FREE";
|
|
2890
|
+
PAID: "PAID";
|
|
2891
2891
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
2892
2892
|
}>;
|
|
2893
2893
|
deliveryFee: z.ZodNumber;
|
|
@@ -2925,8 +2925,8 @@ export declare const productFulfillmentResponseSchema: z.ZodUnion<readonly [z.Zo
|
|
|
2925
2925
|
type: z.ZodLiteral<"SHIPPING">;
|
|
2926
2926
|
shipping: z.ZodObject<{
|
|
2927
2927
|
deliveryType: z.ZodEnum<{
|
|
2928
|
-
PAID: "PAID";
|
|
2929
2928
|
FREE: "FREE";
|
|
2929
|
+
PAID: "PAID";
|
|
2930
2930
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
2931
2931
|
}>;
|
|
2932
2932
|
deliveryFee: z.ZodNumber;
|
|
@@ -3441,16 +3441,16 @@ export interface OrderItemListParams extends PageParams {
|
|
|
3441
3441
|
testPayment?: "true" | "false";
|
|
3442
3442
|
}
|
|
3443
3443
|
export declare const deliveryMethodSchema: z.ZodEnum<{
|
|
3444
|
-
DIRECT: "DIRECT";
|
|
3445
3444
|
COURIER: "COURIER";
|
|
3445
|
+
DIRECT: "DIRECT";
|
|
3446
3446
|
QUICK: "QUICK";
|
|
3447
3447
|
NOTHING: "NOTHING";
|
|
3448
3448
|
}>;
|
|
3449
3449
|
export type DeliveryMethod = z.infer<typeof deliveryMethodSchema>;
|
|
3450
3450
|
export declare const dispatchRequestSchema: z.ZodObject<{
|
|
3451
3451
|
deliveryMethod: z.ZodEnum<{
|
|
3452
|
-
DIRECT: "DIRECT";
|
|
3453
3452
|
COURIER: "COURIER";
|
|
3453
|
+
DIRECT: "DIRECT";
|
|
3454
3454
|
QUICK: "QUICK";
|
|
3455
3455
|
NOTHING: "NOTHING";
|
|
3456
3456
|
}>;
|
|
@@ -3462,8 +3462,8 @@ export type DispatchRequest = z.infer<typeof dispatchRequestSchema>;
|
|
|
3462
3462
|
export declare const deliveryInfoSchema: z.ZodObject<{
|
|
3463
3463
|
orderItemId: z.ZodString;
|
|
3464
3464
|
deliveryMethod: z.ZodEnum<{
|
|
3465
|
-
DIRECT: "DIRECT";
|
|
3466
3465
|
COURIER: "COURIER";
|
|
3466
|
+
DIRECT: "DIRECT";
|
|
3467
3467
|
QUICK: "QUICK";
|
|
3468
3468
|
NOTHING: "NOTHING";
|
|
3469
3469
|
}>;
|
|
@@ -3489,8 +3489,8 @@ export declare const trackingStageResponseSchema: z.ZodString;
|
|
|
3489
3489
|
export declare const deliveryStatusSchema: z.ZodObject<{
|
|
3490
3490
|
orderItemId: z.ZodString;
|
|
3491
3491
|
deliveryMethod: z.ZodEnum<{
|
|
3492
|
-
DIRECT: "DIRECT";
|
|
3493
3492
|
COURIER: "COURIER";
|
|
3493
|
+
DIRECT: "DIRECT";
|
|
3494
3494
|
QUICK: "QUICK";
|
|
3495
3495
|
NOTHING: "NOTHING";
|
|
3496
3496
|
}>;
|
|
@@ -3534,10 +3534,10 @@ export declare const carrierSchema: z.ZodObject<{
|
|
|
3534
3534
|
export type Carrier = z.infer<typeof carrierSchema>;
|
|
3535
3535
|
export declare const holdOrderItemRequestSchema: z.ZodObject<{
|
|
3536
3536
|
reason: z.ZodEnum<{
|
|
3537
|
-
ETC: "ETC";
|
|
3538
3537
|
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
3539
3538
|
CUSTOMER_REQUEST: "CUSTOMER_REQUEST";
|
|
3540
3539
|
CUSTOMS: "CUSTOMS";
|
|
3540
|
+
ETC: "ETC";
|
|
3541
3541
|
}>;
|
|
3542
3542
|
detail: z.ZodOptional<z.ZodString>;
|
|
3543
3543
|
expectedDispatchDate: z.ZodString;
|
|
@@ -3545,8 +3545,8 @@ export declare const holdOrderItemRequestSchema: z.ZodObject<{
|
|
|
3545
3545
|
export type HoldOrderItemRequest = z.infer<typeof holdOrderItemRequestSchema>;
|
|
3546
3546
|
export declare const cancelBySellerRequestSchema: z.ZodObject<{
|
|
3547
3547
|
reason: z.ZodEnum<{
|
|
3548
|
-
ETC: "ETC";
|
|
3549
3548
|
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
3549
|
+
ETC: "ETC";
|
|
3550
3550
|
PRICE_ERROR: "PRICE_ERROR";
|
|
3551
3551
|
DELIVERY_IMPOSSIBLE: "DELIVERY_IMPOSSIBLE";
|
|
3552
3552
|
}>;
|
|
@@ -3608,9 +3608,9 @@ export declare const addressChangeRequestListSchema: z.ZodArray<z.ZodRecord<z.Zo
|
|
|
3608
3608
|
//#endregion
|
|
3609
3609
|
//#region src/schemas/payment.d.ts
|
|
3610
3610
|
/**
|
|
3611
|
-
*
|
|
3611
|
+
* 상점 결제(PG) 설정과 매출 리포트 계약.
|
|
3612
3612
|
*
|
|
3613
|
-
* PG는 셀러가 직접 계약한다. 자격 증명은
|
|
3613
|
+
* PG는 셀러가 직접 계약한다. 자격 증명은 상점별로 저장되고, 비밀 값(시크릿 키·API Secret·
|
|
3614
3614
|
* 웹훅 시크릿)은 저장 후 다시 조회할 수 없다. 응답에는 앞 4자리 마스킹만 나온다. 공개 값
|
|
3615
3615
|
* (클라이언트 키·Store ID·채널 키)은 원래 브라우저 결제창에 노출되는 값이라 그대로 돌려준다.
|
|
3616
3616
|
*/
|
|
@@ -3650,14 +3650,14 @@ export declare const pgEnvironmentSchema: z.ZodEnum<{
|
|
|
3650
3650
|
}>;
|
|
3651
3651
|
export type PgEnvironment = z.infer<typeof pgEnvironmentSchema>;
|
|
3652
3652
|
export declare const pgVerificationResultSchema: z.ZodEnum<{
|
|
3653
|
-
FAILED: "FAILED";
|
|
3654
3653
|
SUCCESS: "SUCCESS";
|
|
3654
|
+
FAILED: "FAILED";
|
|
3655
3655
|
}>;
|
|
3656
3656
|
export type PgVerificationResult = z.infer<typeof pgVerificationResultSchema>;
|
|
3657
3657
|
/**
|
|
3658
3658
|
* 토스페이먼츠 결제위젯 키 접두사. 결제창은 API 개별 연동(`*_ck_`·`*_sk_`)만 쓴다. 위젯 키는 결제창 SDK가
|
|
3659
3659
|
* `NOT_SUPPORTED_WIDGET_KEY`로, 서버 API가 404 `NOT_FOUND_MERCHANT`로 거부하므로 저장 전에 막는다.
|
|
3660
|
-
* 요청 스키마·api
|
|
3660
|
+
* 요청 스키마·api 어댑터·상점 플랫폼 폼이 같은 상수를 쓴다(원천). `g` 플래그가 없어 `.test()`가 상태를 갖지 않는다.
|
|
3661
3661
|
*/
|
|
3662
3662
|
export declare const TOSS_WIDGET_CLIENT_KEY_PATTERN: RegExp;
|
|
3663
3663
|
/** 토스페이먼츠 결제위젯 시크릿 키 접두사. {@link TOSS_WIDGET_CLIENT_KEY_PATTERN} 참고 */
|
|
@@ -3800,8 +3800,8 @@ export declare const paymentCredentialSetSchema: z.ZodObject<{
|
|
|
3800
3800
|
}, z.core.$strip>>;
|
|
3801
3801
|
lastVerification: z.ZodNullable<z.ZodObject<{
|
|
3802
3802
|
result: z.ZodEnum<{
|
|
3803
|
-
FAILED: "FAILED";
|
|
3804
3803
|
SUCCESS: "SUCCESS";
|
|
3804
|
+
FAILED: "FAILED";
|
|
3805
3805
|
}>;
|
|
3806
3806
|
message: z.ZodNullable<z.ZodString>;
|
|
3807
3807
|
checkedAt: z.ZodString;
|
|
@@ -3902,8 +3902,8 @@ export declare const paymentProviderSchema: z.ZodObject<{
|
|
|
3902
3902
|
}, z.core.$strip>>;
|
|
3903
3903
|
lastVerification: z.ZodNullable<z.ZodObject<{
|
|
3904
3904
|
result: z.ZodEnum<{
|
|
3905
|
-
FAILED: "FAILED";
|
|
3906
3905
|
SUCCESS: "SUCCESS";
|
|
3906
|
+
FAILED: "FAILED";
|
|
3907
3907
|
}>;
|
|
3908
3908
|
message: z.ZodNullable<z.ZodString>;
|
|
3909
3909
|
checkedAt: z.ZodString;
|
|
@@ -3939,8 +3939,8 @@ export declare const paymentProviderSchema: z.ZodObject<{
|
|
|
3939
3939
|
}, z.core.$strip>>;
|
|
3940
3940
|
lastVerification: z.ZodNullable<z.ZodObject<{
|
|
3941
3941
|
result: z.ZodEnum<{
|
|
3942
|
-
FAILED: "FAILED";
|
|
3943
3942
|
SUCCESS: "SUCCESS";
|
|
3943
|
+
FAILED: "FAILED";
|
|
3944
3944
|
}>;
|
|
3945
3945
|
message: z.ZodNullable<z.ZodString>;
|
|
3946
3946
|
checkedAt: z.ZodString;
|
|
@@ -3975,8 +3975,8 @@ export declare const paymentProviderSchema: z.ZodObject<{
|
|
|
3975
3975
|
}, z.core.$strip>>;
|
|
3976
3976
|
lastVerification: z.ZodNullable<z.ZodObject<{
|
|
3977
3977
|
result: z.ZodEnum<{
|
|
3978
|
-
FAILED: "FAILED";
|
|
3979
3978
|
SUCCESS: "SUCCESS";
|
|
3979
|
+
FAILED: "FAILED";
|
|
3980
3980
|
}>;
|
|
3981
3981
|
message: z.ZodNullable<z.ZodString>;
|
|
3982
3982
|
checkedAt: z.ZodString;
|
|
@@ -4051,8 +4051,8 @@ export declare const paymentSettingsSchema: z.ZodObject<{
|
|
|
4051
4051
|
}, z.core.$strip>>;
|
|
4052
4052
|
lastVerification: z.ZodNullable<z.ZodObject<{
|
|
4053
4053
|
result: z.ZodEnum<{
|
|
4054
|
-
FAILED: "FAILED";
|
|
4055
4054
|
SUCCESS: "SUCCESS";
|
|
4055
|
+
FAILED: "FAILED";
|
|
4056
4056
|
}>;
|
|
4057
4057
|
message: z.ZodNullable<z.ZodString>;
|
|
4058
4058
|
checkedAt: z.ZodString;
|
|
@@ -4088,8 +4088,8 @@ export declare const paymentSettingsSchema: z.ZodObject<{
|
|
|
4088
4088
|
}, z.core.$strip>>;
|
|
4089
4089
|
lastVerification: z.ZodNullable<z.ZodObject<{
|
|
4090
4090
|
result: z.ZodEnum<{
|
|
4091
|
-
FAILED: "FAILED";
|
|
4092
4091
|
SUCCESS: "SUCCESS";
|
|
4092
|
+
FAILED: "FAILED";
|
|
4093
4093
|
}>;
|
|
4094
4094
|
message: z.ZodNullable<z.ZodString>;
|
|
4095
4095
|
checkedAt: z.ZodString;
|
|
@@ -4124,8 +4124,8 @@ export declare const paymentSettingsSchema: z.ZodObject<{
|
|
|
4124
4124
|
}, z.core.$strip>>;
|
|
4125
4125
|
lastVerification: z.ZodNullable<z.ZodObject<{
|
|
4126
4126
|
result: z.ZodEnum<{
|
|
4127
|
-
FAILED: "FAILED";
|
|
4128
4127
|
SUCCESS: "SUCCESS";
|
|
4128
|
+
FAILED: "FAILED";
|
|
4129
4129
|
}>;
|
|
4130
4130
|
message: z.ZodNullable<z.ZodString>;
|
|
4131
4131
|
checkedAt: z.ZodString;
|
|
@@ -4172,8 +4172,8 @@ export declare const paymentProviderVerificationSchema: z.ZodObject<{
|
|
|
4172
4172
|
LIVE: "LIVE";
|
|
4173
4173
|
}>;
|
|
4174
4174
|
result: z.ZodEnum<{
|
|
4175
|
-
FAILED: "FAILED";
|
|
4176
4175
|
SUCCESS: "SUCCESS";
|
|
4176
|
+
FAILED: "FAILED";
|
|
4177
4177
|
}>;
|
|
4178
4178
|
message: z.ZodNullable<z.ZodString>;
|
|
4179
4179
|
checkedAt: z.ZodString;
|
|
@@ -4303,8 +4303,8 @@ export type SalesReport = z.infer<typeof salesReportSchema>;
|
|
|
4303
4303
|
* - `FAILED`: 승인되지 않고 끝났다(거절·준비 장애·구매자 취소·만료)
|
|
4304
4304
|
*/
|
|
4305
4305
|
export declare const paymentRecordStatusSchema: z.ZodEnum<{
|
|
4306
|
-
FAILED: "FAILED";
|
|
4307
4306
|
PENDING: "PENDING";
|
|
4307
|
+
FAILED: "FAILED";
|
|
4308
4308
|
APPROVED: "APPROVED";
|
|
4309
4309
|
PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
|
|
4310
4310
|
REFUNDED: "REFUNDED";
|
|
@@ -4351,8 +4351,8 @@ export declare const paymentRecordSchema: z.ZodObject<{
|
|
|
4351
4351
|
orderName: z.ZodString;
|
|
4352
4352
|
customerName: z.ZodString;
|
|
4353
4353
|
status: z.ZodEnum<{
|
|
4354
|
-
FAILED: "FAILED";
|
|
4355
4354
|
PENDING: "PENDING";
|
|
4355
|
+
FAILED: "FAILED";
|
|
4356
4356
|
APPROVED: "APPROVED";
|
|
4357
4357
|
PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
|
|
4358
4358
|
REFUNDED: "REFUNDED";
|
|
@@ -4397,8 +4397,8 @@ export declare const paymentRecordPageSchema: z.ZodObject<{
|
|
|
4397
4397
|
orderName: z.ZodString;
|
|
4398
4398
|
customerName: z.ZodString;
|
|
4399
4399
|
status: z.ZodEnum<{
|
|
4400
|
-
FAILED: "FAILED";
|
|
4401
4400
|
PENDING: "PENDING";
|
|
4401
|
+
FAILED: "FAILED";
|
|
4402
4402
|
APPROVED: "APPROVED";
|
|
4403
4403
|
PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
|
|
4404
4404
|
REFUNDED: "REFUNDED";
|
|
@@ -4486,8 +4486,8 @@ export declare const paymentRecordDetailSchema: z.ZodObject<{
|
|
|
4486
4486
|
orderName: z.ZodString;
|
|
4487
4487
|
customerName: z.ZodString;
|
|
4488
4488
|
status: z.ZodEnum<{
|
|
4489
|
-
FAILED: "FAILED";
|
|
4490
4489
|
PENDING: "PENDING";
|
|
4490
|
+
FAILED: "FAILED";
|
|
4491
4491
|
APPROVED: "APPROVED";
|
|
4492
4492
|
PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
|
|
4493
4493
|
REFUNDED: "REFUNDED";
|
|
@@ -4614,20 +4614,20 @@ export interface PaymentListParams extends PageParams {
|
|
|
4614
4614
|
//#endregion
|
|
4615
4615
|
//#region src/schemas/product.d.ts
|
|
4616
4616
|
export declare const productStatusSchema: z.ZodEnum<{
|
|
4617
|
-
SUSPENDED: "SUSPENDED";
|
|
4618
|
-
CLOSED: "CLOSED";
|
|
4619
4617
|
SALE: "SALE";
|
|
4618
|
+
SUSPENDED: "SUSPENDED";
|
|
4620
4619
|
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
4620
|
+
CLOSED: "CLOSED";
|
|
4621
4621
|
}>;
|
|
4622
4622
|
export type ProductStatus = z.infer<typeof productStatusSchema>;
|
|
4623
4623
|
export declare const productSummarySchema: z.ZodObject<{
|
|
4624
4624
|
productId: z.ZodString;
|
|
4625
4625
|
name: z.ZodString;
|
|
4626
4626
|
status: z.ZodEnum<{
|
|
4627
|
-
SUSPENDED: "SUSPENDED";
|
|
4628
|
-
CLOSED: "CLOSED";
|
|
4629
4627
|
SALE: "SALE";
|
|
4628
|
+
SUSPENDED: "SUSPENDED";
|
|
4630
4629
|
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
4630
|
+
CLOSED: "CLOSED";
|
|
4631
4631
|
}>;
|
|
4632
4632
|
salePrice: z.ZodNumber;
|
|
4633
4633
|
discountedPrice: z.ZodNullable<z.ZodNumber>;
|
|
@@ -4692,15 +4692,15 @@ export declare const MAX_ADDON_GROUPS = 5;
|
|
|
4692
4692
|
export declare const MAX_CUSTOM_INPUTS = 5;
|
|
4693
4693
|
/** 직접 입력 항목 최대 글자 수의 상한 */
|
|
4694
4694
|
export declare const MAX_CUSTOM_INPUT_LENGTH = 200;
|
|
4695
|
-
/** 조합 수가 이 값 이상이면
|
|
4695
|
+
/** 조합 수가 이 값 이상이면 상점 플랫폼이 경고한다(상한은 `MAX_VARIANTS`) */
|
|
4696
4696
|
export declare const VARIANT_COUNT_WARNING = 100;
|
|
4697
4697
|
/**
|
|
4698
4698
|
* 옵션 값 정렬 순서 — 등록순·가나다순·낮은 추가금순·높은 추가금순. 서버가 저장할 때 이 순서로 값의 `sortOrder`를 매긴다.
|
|
4699
4699
|
* 추가금순은 추가 선택 값이면 값의 추가금, 조합 값이면 그 값이 든 조합 추가금의 최솟값으로 비교하고 같으면 등록순이다.
|
|
4700
4700
|
*/
|
|
4701
4701
|
export declare const optionSortSchema: z.ZodEnum<{
|
|
4702
|
-
NAME: "NAME";
|
|
4703
4702
|
REGISTERED: "REGISTERED";
|
|
4703
|
+
NAME: "NAME";
|
|
4704
4704
|
PRICE_ASC: "PRICE_ASC";
|
|
4705
4705
|
PRICE_DESC: "PRICE_DESC";
|
|
4706
4706
|
}>;
|
|
@@ -4741,7 +4741,7 @@ export declare const customInputSchema: z.ZodObject<{
|
|
|
4741
4741
|
}, z.core.$strip>;
|
|
4742
4742
|
export type CustomInput = z.infer<typeof customInputSchema>;
|
|
4743
4743
|
/**
|
|
4744
|
-
* 직접 입력 항목명에 쓸 수 없는 개인정보성 단어 —
|
|
4744
|
+
* 직접 입력 항목명에 쓸 수 없는 개인정보성 단어 — 상점 플랫폼 검사와 서버 400(`CUSTOM_INPUT_LABEL_FORBIDDEN`)이 이 목록 하나를 쓴다.
|
|
4745
4745
|
* 구매자 개인정보는 주문 정보로 받는다. 직접 입력 항목으로 받으면 보관·파기 규칙 밖에 남는다.
|
|
4746
4746
|
*/
|
|
4747
4747
|
export declare const CUSTOM_INPUT_FORBIDDEN_WORDS: readonly ["연락처", "전화", "휴대폰", "핸드폰", "폰번호", "메일", "주소", "주민", "생년월일", "생일", "실명", "계좌", "카드번호", "비밀번호", "여권", "통관", "phone", "mobile", "mail", "address"];
|
|
@@ -4811,10 +4811,10 @@ export declare const productSchema: z.ZodObject<{
|
|
|
4811
4811
|
productId: z.ZodString;
|
|
4812
4812
|
name: z.ZodString;
|
|
4813
4813
|
status: z.ZodEnum<{
|
|
4814
|
-
SUSPENDED: "SUSPENDED";
|
|
4815
|
-
CLOSED: "CLOSED";
|
|
4816
4814
|
SALE: "SALE";
|
|
4815
|
+
SUSPENDED: "SUSPENDED";
|
|
4817
4816
|
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
4817
|
+
CLOSED: "CLOSED";
|
|
4818
4818
|
}>;
|
|
4819
4819
|
salePrice: z.ZodNumber;
|
|
4820
4820
|
discountedPrice: z.ZodNullable<z.ZodNumber>;
|
|
@@ -4879,8 +4879,8 @@ export declare const productSchema: z.ZodObject<{
|
|
|
4879
4879
|
sortOrder: z.ZodNumber;
|
|
4880
4880
|
}, z.core.$strip>>>>;
|
|
4881
4881
|
optionSort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
4882
|
-
NAME: "NAME";
|
|
4883
4882
|
REGISTERED: "REGISTERED";
|
|
4883
|
+
NAME: "NAME";
|
|
4884
4884
|
PRICE_ASC: "PRICE_ASC";
|
|
4885
4885
|
PRICE_DESC: "PRICE_DESC";
|
|
4886
4886
|
}>>>;
|
|
@@ -4888,8 +4888,8 @@ export declare const productSchema: z.ZodObject<{
|
|
|
4888
4888
|
type: z.ZodLiteral<"SHIPPING">;
|
|
4889
4889
|
shipping: z.ZodObject<{
|
|
4890
4890
|
deliveryType: z.ZodEnum<{
|
|
4891
|
-
PAID: "PAID";
|
|
4892
4891
|
FREE: "FREE";
|
|
4892
|
+
PAID: "PAID";
|
|
4893
4893
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
4894
4894
|
}>;
|
|
4895
4895
|
deliveryFee: z.ZodNumber;
|
|
@@ -5023,8 +5023,8 @@ export declare const optionModelRequestSchema: z.ZodObject<{
|
|
|
5023
5023
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
5024
5024
|
}, z.core.$strip>>>;
|
|
5025
5025
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
5026
|
-
NAME: "NAME";
|
|
5027
5026
|
REGISTERED: "REGISTERED";
|
|
5027
|
+
NAME: "NAME";
|
|
5028
5028
|
PRICE_ASC: "PRICE_ASC";
|
|
5029
5029
|
PRICE_DESC: "PRICE_DESC";
|
|
5030
5030
|
}>>;
|
|
@@ -5079,8 +5079,8 @@ export declare const optionModelSchema: z.ZodObject<{
|
|
|
5079
5079
|
sortOrder: z.ZodNumber;
|
|
5080
5080
|
}, z.core.$strip>>>>;
|
|
5081
5081
|
optionSort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
5082
|
-
NAME: "NAME";
|
|
5083
5082
|
REGISTERED: "REGISTERED";
|
|
5083
|
+
NAME: "NAME";
|
|
5084
5084
|
PRICE_ASC: "PRICE_ASC";
|
|
5085
5085
|
PRICE_DESC: "PRICE_DESC";
|
|
5086
5086
|
}>>>;
|
|
@@ -5111,8 +5111,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
5111
5111
|
type: z.ZodLiteral<"SHIPPING">;
|
|
5112
5112
|
shipping: z.ZodOptional<z.ZodObject<{
|
|
5113
5113
|
deliveryType: z.ZodDefault<z.ZodEnum<{
|
|
5114
|
-
PAID: "PAID";
|
|
5115
5114
|
FREE: "FREE";
|
|
5115
|
+
PAID: "PAID";
|
|
5116
5116
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
5117
5117
|
}>>;
|
|
5118
5118
|
deliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
@@ -5164,8 +5164,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
5164
5164
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
5165
5165
|
}, z.core.$strip>>>;
|
|
5166
5166
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
5167
|
-
NAME: "NAME";
|
|
5168
5167
|
REGISTERED: "REGISTERED";
|
|
5168
|
+
NAME: "NAME";
|
|
5169
5169
|
PRICE_ASC: "PRICE_ASC";
|
|
5170
5170
|
PRICE_DESC: "PRICE_DESC";
|
|
5171
5171
|
}>>;
|
|
@@ -5196,8 +5196,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
5196
5196
|
type: z.ZodLiteral<"SHIPPING">;
|
|
5197
5197
|
shipping: z.ZodObject<{
|
|
5198
5198
|
deliveryType: z.ZodEnum<{
|
|
5199
|
-
PAID: "PAID";
|
|
5200
5199
|
FREE: "FREE";
|
|
5200
|
+
PAID: "PAID";
|
|
5201
5201
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
5202
5202
|
}>;
|
|
5203
5203
|
deliveryFee: z.ZodNumber;
|
|
@@ -5249,8 +5249,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
5249
5249
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
5250
5250
|
}, z.core.$strip>>>;
|
|
5251
5251
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
5252
|
-
NAME: "NAME";
|
|
5253
5252
|
REGISTERED: "REGISTERED";
|
|
5253
|
+
NAME: "NAME";
|
|
5254
5254
|
PRICE_ASC: "PRICE_ASC";
|
|
5255
5255
|
PRICE_DESC: "PRICE_DESC";
|
|
5256
5256
|
}>>;
|
|
@@ -5279,17 +5279,17 @@ export declare const productPatchRequestSchema: z.ZodObject<{
|
|
|
5279
5279
|
name: z.ZodOptional<z.ZodString>;
|
|
5280
5280
|
salePrice: z.ZodOptional<z.ZodNumber>;
|
|
5281
5281
|
status: z.ZodOptional<z.ZodEnum<{
|
|
5282
|
-
SUSPENDED: "SUSPENDED";
|
|
5283
|
-
CLOSED: "CLOSED";
|
|
5284
5282
|
SALE: "SALE";
|
|
5283
|
+
SUSPENDED: "SUSPENDED";
|
|
5285
5284
|
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
5285
|
+
CLOSED: "CLOSED";
|
|
5286
5286
|
}>>;
|
|
5287
5287
|
fulfillment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
5288
5288
|
type: z.ZodLiteral<"SHIPPING">;
|
|
5289
5289
|
shipping: z.ZodObject<{
|
|
5290
5290
|
deliveryType: z.ZodEnum<{
|
|
5291
|
-
PAID: "PAID";
|
|
5292
5291
|
FREE: "FREE";
|
|
5292
|
+
PAID: "PAID";
|
|
5293
5293
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
5294
5294
|
}>;
|
|
5295
5295
|
deliveryFee: z.ZodNumber;
|
|
@@ -5310,11 +5310,11 @@ export declare const productPatchRequestSchema: z.ZodObject<{
|
|
|
5310
5310
|
}, z.core.$strict>;
|
|
5311
5311
|
export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
|
|
5312
5312
|
export declare const productSortSchema: z.ZodEnum<{
|
|
5313
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
5313
5314
|
"createdAt.desc": "createdAt.desc";
|
|
5314
5315
|
"createdAt.asc": "createdAt.asc";
|
|
5315
5316
|
"salePrice.asc": "salePrice.asc";
|
|
5316
5317
|
"salePrice.desc": "salePrice.desc";
|
|
5317
|
-
"updatedAt.desc": "updatedAt.desc";
|
|
5318
5318
|
}>;
|
|
5319
5319
|
export type ProductSort = z.infer<typeof productSortSchema>;
|
|
5320
5320
|
export interface ProductListParams extends PageParams {
|
|
@@ -5329,20 +5329,20 @@ export declare const productListQuerySchema: z.ZodObject<{
|
|
|
5329
5329
|
page: z.ZodOptional<z.ZodString>;
|
|
5330
5330
|
size: z.ZodOptional<z.ZodString>;
|
|
5331
5331
|
status: z.ZodOptional<z.ZodEnum<{
|
|
5332
|
-
SUSPENDED: "SUSPENDED";
|
|
5333
|
-
CLOSED: "CLOSED";
|
|
5334
5332
|
SALE: "SALE";
|
|
5333
|
+
SUSPENDED: "SUSPENDED";
|
|
5335
5334
|
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
5335
|
+
CLOSED: "CLOSED";
|
|
5336
5336
|
}>>;
|
|
5337
5337
|
categoryId: z.ZodOptional<z.ZodString>;
|
|
5338
5338
|
keyword: z.ZodOptional<z.ZodString>;
|
|
5339
5339
|
sellerCode: z.ZodOptional<z.ZodString>;
|
|
5340
5340
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
5341
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
5341
5342
|
"createdAt.desc": "createdAt.desc";
|
|
5342
5343
|
"createdAt.asc": "createdAt.asc";
|
|
5343
5344
|
"salePrice.asc": "salePrice.asc";
|
|
5344
5345
|
"salePrice.desc": "salePrice.desc";
|
|
5345
|
-
"updatedAt.desc": "updatedAt.desc";
|
|
5346
5346
|
}>>;
|
|
5347
5347
|
}, z.core.$strip>;
|
|
5348
5348
|
export declare const discountRequestSchema: z.ZodObject<{
|
|
@@ -5363,7 +5363,7 @@ export type DiscountRequest = z.infer<typeof discountRequestSchema>;
|
|
|
5363
5363
|
* **불러오기는 복사다.** 저장 옵션을 고치거나 지워도 이미 불러온 상품의 옵션은 그대로다. 재고·SKU·사용 여부는 상품마다
|
|
5364
5364
|
* 달라 저장하지 않는다. 추가금은 조합별이 아니라 **값별**로 둔다 — 조합 옵션으로 불러오면 조합 추가금은 고른 값 추가금의 합이다.
|
|
5365
5365
|
*/
|
|
5366
|
-
/**
|
|
5366
|
+
/** 상점당 저장 옵션 최대 개수 */
|
|
5367
5367
|
export declare const MAX_SAVED_OPTION_SETS = 200;
|
|
5368
5368
|
/** 저장 옵션 이름 최대 글자 수 */
|
|
5369
5369
|
export declare const MAX_SAVED_OPTION_SET_NAME = 50;
|
|
@@ -5398,8 +5398,8 @@ export declare const savedOptionSetSchema: z.ZodObject<{
|
|
|
5398
5398
|
optionSetId: z.ZodString;
|
|
5399
5399
|
name: z.ZodString;
|
|
5400
5400
|
optionSort: z.ZodEnum<{
|
|
5401
|
-
NAME: "NAME";
|
|
5402
5401
|
REGISTERED: "REGISTERED";
|
|
5402
|
+
NAME: "NAME";
|
|
5403
5403
|
PRICE_ASC: "PRICE_ASC";
|
|
5404
5404
|
PRICE_DESC: "PRICE_DESC";
|
|
5405
5405
|
}>;
|
|
@@ -5453,8 +5453,8 @@ export declare const savedCustomInputRequestSchema: z.ZodObject<{
|
|
|
5453
5453
|
export declare const savedOptionSetRequestSchema: z.ZodObject<{
|
|
5454
5454
|
name: z.ZodString;
|
|
5455
5455
|
optionSort: z.ZodDefault<z.ZodEnum<{
|
|
5456
|
-
NAME: "NAME";
|
|
5457
5456
|
REGISTERED: "REGISTERED";
|
|
5457
|
+
NAME: "NAME";
|
|
5458
5458
|
PRICE_ASC: "PRICE_ASC";
|
|
5459
5459
|
PRICE_DESC: "PRICE_DESC";
|
|
5460
5460
|
}>>;
|
|
@@ -5499,8 +5499,8 @@ export declare const savedOptionSetFromProductResultSchema: z.ZodObject<{
|
|
|
5499
5499
|
optionSetId: z.ZodString;
|
|
5500
5500
|
name: z.ZodString;
|
|
5501
5501
|
optionSort: z.ZodEnum<{
|
|
5502
|
-
NAME: "NAME";
|
|
5503
5502
|
REGISTERED: "REGISTERED";
|
|
5503
|
+
NAME: "NAME";
|
|
5504
5504
|
PRICE_ASC: "PRICE_ASC";
|
|
5505
5505
|
PRICE_DESC: "PRICE_DESC";
|
|
5506
5506
|
}>;
|
|
@@ -5562,14 +5562,14 @@ export declare const savedOptionSetListQuerySchema: z.ZodObject<{
|
|
|
5562
5562
|
//#endregion
|
|
5563
5563
|
//#region src/schemas/store.d.ts
|
|
5564
5564
|
/**
|
|
5565
|
-
*
|
|
5565
|
+
* 상점 코드 규칙 — 스토어프론트 API가 테넌트를 가르는 값이다(`X-Store-Code` 헤더).
|
|
5566
5566
|
* **개설할 때 서버가 랜덤으로 발급하고** 이후 바꿀 수 없다. 이미 나간 링크와 승인된 결제가
|
|
5567
5567
|
* 이 값에 묶여 있어서 바꾸면 함께 깨진다.
|
|
5568
5568
|
*
|
|
5569
5569
|
* 호스트 라벨로도 쓸 수 있게 DNS 라벨 규칙까지 좁힌다. 하이픈으로 시작하거나 끝나는 라벨은 호스트가 될 수 없다.
|
|
5570
5570
|
*/
|
|
5571
5571
|
export declare const STORE_CODE_PATTERN: RegExp;
|
|
5572
|
-
/** 플랫폼이 쓰거나 쓸 호스트 이름 —
|
|
5572
|
+
/** 플랫폼이 쓰거나 쓸 호스트 이름 — 상점 코드로 내주지 않는다 */
|
|
5573
5573
|
export declare const RESERVED_STORE_CODES: readonly string[];
|
|
5574
5574
|
export declare function isReservedStoreCode(code: string): boolean;
|
|
5575
5575
|
export declare const storeCodeSchema: z.ZodString;
|
|
@@ -5582,7 +5582,7 @@ export declare const MAX_ANALYTICS_ALLOWED_ORIGINS = 20;
|
|
|
5582
5582
|
/** 자동 배송완료·자동 구매확정 대기일 상한 */
|
|
5583
5583
|
export declare const MAX_AUTO_TRANSITION_DAYS = 30;
|
|
5584
5584
|
/**
|
|
5585
|
-
* 약관 버전 —
|
|
5585
|
+
* 약관 버전 — 상점이 정하는 문자열이다(`1`·`2`·`2026-09-26`·`v1.2` 등). 형식은 강제하지 않고 값이 다르면 다른 버전이다.
|
|
5586
5586
|
* 올리면 그 약관에 동의한 구매자의 `reconsentRequired`가 켜지고, 재동의가 이력에 남는다. 되돌리면 재동의 요구도 풀린다.
|
|
5587
5587
|
*/
|
|
5588
5588
|
export declare const policyVersionSchema: z.ZodString;
|
|
@@ -5628,9 +5628,9 @@ export declare const storeSchema: z.ZodObject<{
|
|
|
5628
5628
|
storeCode: z.ZodString;
|
|
5629
5629
|
storefrontUrl: z.ZodURL;
|
|
5630
5630
|
status: z.ZodEnum<{
|
|
5631
|
-
ACTIVE: "ACTIVE";
|
|
5632
5631
|
SUSPENDED: "SUSPENDED";
|
|
5633
5632
|
CLOSED: "CLOSED";
|
|
5633
|
+
ACTIVE: "ACTIVE";
|
|
5634
5634
|
}>;
|
|
5635
5635
|
logoUrl: z.ZodNullable<z.ZodURL>;
|
|
5636
5636
|
businessNumber: z.ZodNullable<z.ZodString>;
|
|
@@ -5669,9 +5669,9 @@ export declare const storeMemberSchema: z.ZodObject<{
|
|
|
5669
5669
|
name: z.ZodString;
|
|
5670
5670
|
email: z.ZodEmail;
|
|
5671
5671
|
role: z.ZodEnum<{
|
|
5672
|
-
OWNER: "OWNER";
|
|
5673
5672
|
ADMIN: "ADMIN";
|
|
5674
5673
|
STAFF: "STAFF";
|
|
5674
|
+
OWNER: "OWNER";
|
|
5675
5675
|
}>;
|
|
5676
5676
|
joinedAt: z.ZodString;
|
|
5677
5677
|
lastActiveAt: z.ZodNullable<z.ZodString>;
|
|
@@ -5679,7 +5679,7 @@ export declare const storeMemberSchema: z.ZodObject<{
|
|
|
5679
5679
|
export type StoreMember = z.infer<typeof storeMemberSchema>;
|
|
5680
5680
|
/**
|
|
5681
5681
|
* 초대 메일 발송 결과 — `SENDING`은 발송 요청 중(결과를 아직 적지 못함), `NOT_CONFIGURED`는 메일 발송이 설정되지 않아
|
|
5682
|
-
* 보내지 않은 것이다.
|
|
5682
|
+
* 보내지 않은 것이다. 상점의 월 메일 한도(요금제)를 다 써서 보내지 않았으면 `FAILED` + `deliveryErrorCode: MAIL_QUOTA_EXCEEDED`다. 발송 실패는 초대를 무효로 만들지 않는다 — 재발송으로 다시 보낸다
|
|
5683
5683
|
*/
|
|
5684
5684
|
export declare const invitationDeliveryStatusSchema: z.ZodEnum<{
|
|
5685
5685
|
FAILED: "FAILED";
|
|
@@ -5755,22 +5755,22 @@ export type StoreMemberRoleUpdated = z.infer<typeof storeMemberRoleUpdatedSchema
|
|
|
5755
5755
|
* 주소 유형 — 출고지·반품지.
|
|
5756
5756
|
*/
|
|
5757
5757
|
export declare const addressTypeSchema: z.ZodEnum<{
|
|
5758
|
-
RETURN: "RETURN";
|
|
5759
5758
|
SHIPPING: "SHIPPING";
|
|
5759
|
+
RETURN: "RETURN";
|
|
5760
5760
|
}>;
|
|
5761
5761
|
export type AddressType = z.infer<typeof addressTypeSchema>;
|
|
5762
5762
|
/** `GET /v1/seller-addresses` 쿼리 — OpenAPI 문서용 형태. 기본 주소 우선, 그다음 등록순이다 */
|
|
5763
5763
|
export declare const sellerAddressListQuerySchema: z.ZodObject<{
|
|
5764
5764
|
type: z.ZodOptional<z.ZodEnum<{
|
|
5765
|
-
RETURN: "RETURN";
|
|
5766
5765
|
SHIPPING: "SHIPPING";
|
|
5766
|
+
RETURN: "RETURN";
|
|
5767
5767
|
}>>;
|
|
5768
5768
|
}, z.core.$strip>;
|
|
5769
5769
|
export declare const sellerAddressSchema: z.ZodObject<{
|
|
5770
5770
|
addressId: z.ZodString;
|
|
5771
5771
|
type: z.ZodEnum<{
|
|
5772
|
-
RETURN: "RETURN";
|
|
5773
5772
|
SHIPPING: "SHIPPING";
|
|
5773
|
+
RETURN: "RETURN";
|
|
5774
5774
|
}>;
|
|
5775
5775
|
name: z.ZodString;
|
|
5776
5776
|
isDefault: z.ZodBoolean;
|
|
@@ -5784,8 +5784,8 @@ export declare const sellerAddressSchema: z.ZodObject<{
|
|
|
5784
5784
|
export type SellerAddress = z.infer<typeof sellerAddressSchema>;
|
|
5785
5785
|
export declare const sellerAddressRequestSchema: z.ZodObject<{
|
|
5786
5786
|
type: z.ZodEnum<{
|
|
5787
|
-
RETURN: "RETURN";
|
|
5788
5787
|
SHIPPING: "SHIPPING";
|
|
5788
|
+
RETURN: "RETURN";
|
|
5789
5789
|
}>;
|
|
5790
5790
|
name: z.ZodString;
|
|
5791
5791
|
contactName: z.ZodString;
|
|
@@ -5800,7 +5800,7 @@ export type SellerAddressRequest = z.infer<typeof sellerAddressRequestSchema>;
|
|
|
5800
5800
|
/**
|
|
5801
5801
|
* 스토어프론트 호스팅 (이슈 #53, M1: 템플릿 발행) — 관리 API `/v1/storefront/**`의 계약이다.
|
|
5802
5802
|
*
|
|
5803
|
-
* 셀러는 템플릿을 골라 사이트를 만들고 `{slug}.{호스팅 도메인}` 주소를 받는다.
|
|
5803
|
+
* 셀러는 템플릿을 골라 사이트를 만들고 `{slug}.{호스팅 도메인}` 주소를 받는다. 상점을 만들어도 사이트는 생기지 않고
|
|
5804
5804
|
* `POST /v1/storefront/site`가 유일한 생성 경로다. 템플릿은 만들 때만 고르고 바꾸지 않는다. 발행은 버전 단위이고,
|
|
5805
5805
|
* 되돌리기는 이전 버전을 다시 발행하는 것이다(재빌드 없음). 상태의 원천은 api DB이고 Cloudflare 쪽 반영
|
|
5806
5806
|
* (라우팅 표·사이트 Worker)은 커밋 뒤 비동기다 — 반영 상태는 `provisioning`으로 본다.
|
|
@@ -5811,13 +5811,13 @@ export type SellerAddressRequest = z.infer<typeof sellerAddressRequestSchema>;
|
|
|
5811
5811
|
* 오류 코드:
|
|
5812
5812
|
* - 403 `STOREFRONT_HOSTING_DISABLED` — 플랫폼 스위치가 꺼져 새 사이트를 만들 수 없다
|
|
5813
5813
|
* - 404 `STOREFRONT_SITE_NOT_FOUND` · `STOREFRONT_TEMPLATE_NOT_FOUND` · `STOREFRONT_VERSION_NOT_FOUND`
|
|
5814
|
-
* - 409 `STOREFRONT_SITE_EXISTS` — 이미 사이트가 있다(
|
|
5814
|
+
* - 409 `STOREFRONT_SITE_EXISTS` — 이미 사이트가 있다(상점당 1개)
|
|
5815
5815
|
* - 409 `STOREFRONT_SLUG_TAKEN` — 다른 사이트가 쓰거나 보류 중인 슬러그다
|
|
5816
|
-
* - 409 `STOREFRONT_SLUG_CHANGE_LIMIT` — 슬러그는
|
|
5817
|
-
* - 409 `STOREFRONT_SITE_CREATE_LIMIT` — 사이트는
|
|
5816
|
+
* - 409 `STOREFRONT_SLUG_CHANGE_LIMIT` — 슬러그는 상점당 30일에 3번까지 바꾼다
|
|
5817
|
+
* - 409 `STOREFRONT_SITE_CREATE_LIMIT` — 사이트는 상점당 30일에 3번까지 만든다
|
|
5818
5818
|
* - 409 `STOREFRONT_SITE_CHANGED` — 읽은 상태(`expected*`)와 현재 상태가 다르다. 다시 읽고 시도한다
|
|
5819
5819
|
* - 409 `STOREFRONT_SITE_NOT_ACTIVE` — 정지(`SUSPENDED`)된 사이트는 바꾸거나 끌 수 없다
|
|
5820
|
-
* - 409 `STORE_SUSPENDED` — 정지된
|
|
5820
|
+
* - 409 `STORE_SUSPENDED` — 정지된 상점에는 사이트를 만들 수 없다
|
|
5821
5821
|
* - 409 `STOREFRONT_VERSION_NOT_READY` — 빌드가 끝나지 않았거나 실패한 버전은 발행할 수 없다
|
|
5822
5822
|
* - 409 `STOREFRONT_NO_ROLLBACK_TARGET` — 되돌릴 이전 발행 버전이 없다
|
|
5823
5823
|
* - 409 `STOREFRONT_NOT_READY` — 공개 전환: 판매 중인 상품(샘플 제외)이 없다(이슈 #70). 상품을 등록한 뒤 공개한다
|
|
@@ -5843,7 +5843,7 @@ export type SellerAddressRequest = z.infer<typeof sellerAddressRequestSchema>;
|
|
|
5843
5843
|
* - 502 `STOREFRONT_SANDBOX_UNAVAILABLE` — 편집 Sandbox 호출이 실패했다. 잠시 뒤 다시 한다
|
|
5844
5844
|
*
|
|
5845
5845
|
* 소스 내려받기·올리기(#60, `/v1/storefront/site/source/**`, `sayren` CLI):
|
|
5846
|
-
* - 409 `SOURCE_CHANGED` — 작업 트리가 내려받은 뒤(`expectedBaseRef`) 바뀌었다(
|
|
5846
|
+
* - 409 `SOURCE_CHANGED` — 작업 트리가 내려받은 뒤(`expectedBaseRef`) 바뀌었다(상점 플랫폼·AI 편집). `error.details.currentRef`
|
|
5847
5847
|
* - 409 `EDIT_SESSION_OPEN` — 편집 환경이 열려 있다. `endEditSession: true`로 끄고 진행할 수 있다
|
|
5848
5848
|
* - 409 `SOURCE_BLOBS_MISSING` — 올리지 않은 파일 내용이 있다(`error.details.hashes`). `POST source/blobs`로 올리고 다시 한다
|
|
5849
5849
|
* - 409 `DEPENDENCY_REJECTED` — 쓸 수 없는 npm 의존성이다(`error.details.rejected: [{ name, version, reason, detail }]`)
|
|
@@ -5853,11 +5853,11 @@ export type SellerAddressRequest = z.infer<typeof sellerAddressRequestSchema>;
|
|
|
5853
5853
|
* - 404 `STOREFRONT_SOURCE_NOT_FOUND` — 그 스냅샷이 없다
|
|
5854
5854
|
*/
|
|
5855
5855
|
/**
|
|
5856
|
-
* 슬러그 형식 —
|
|
5856
|
+
* 슬러그 형식 — 상점 코드와 같은 DNS 라벨 규칙(소문자·숫자·하이픈 3~30자, 하이픈으로 시작·끝 불가)에
|
|
5857
5857
|
* 연속 하이픈 금지를 더한다. `--`는 버전 미리보기 주소(`v3--{slug}`)와 punycode(`xn--`)가 쓰는 구분자다.
|
|
5858
5858
|
*/
|
|
5859
5859
|
export declare const STOREFRONT_SLUG_PATTERN: RegExp;
|
|
5860
|
-
/** 호스팅 도메인에서 플랫폼이 쓰거나 쓸 이름 —
|
|
5860
|
+
/** 호스팅 도메인에서 플랫폼이 쓰거나 쓸 이름 — 상점 코드 예약어에 호스팅 전용 이름을 더한다 */
|
|
5861
5861
|
export declare const RESERVED_STOREFRONT_SLUGS: readonly string[];
|
|
5862
5862
|
/**
|
|
5863
5863
|
* 편집 미리보기 호스트 접미사 — 편집 미리보기 주소는 `{사이트 id 정규화}-preview.{호스팅 도메인}`이다(M2b). 사이트 주소와 같은
|
|
@@ -5866,7 +5866,7 @@ export declare const RESERVED_STOREFRONT_SLUGS: readonly string[];
|
|
|
5866
5866
|
export declare const STOREFRONT_EDIT_PREVIEW_SUFFIX = "-preview";
|
|
5867
5867
|
/**
|
|
5868
5868
|
* 공식 쇼케이스 슬러그 접두사(이슈 #72) — `demo-{템플릿 id}`는 템플릿 미리보기용 쇼케이스 사이트 주소다. 쇼케이스로 지정된
|
|
5869
|
-
*
|
|
5869
|
+
* 상점만 쓸 수 있다(서버가 상점 용도로 판정한다). 공식 미리보기를 흉내 내는 주소를 막는다
|
|
5870
5870
|
*/
|
|
5871
5871
|
export declare const STOREFRONT_SHOWCASE_SLUG_PREFIX = "demo-";
|
|
5872
5872
|
export declare function isShowcaseStorefrontSlug(slug: string): boolean;
|
|
@@ -5882,9 +5882,9 @@ export declare const storefrontSlugSchema: z.ZodString;
|
|
|
5882
5882
|
export declare const STOREFRONT_SLUG_HOLD_DAYS = 90;
|
|
5883
5883
|
/** 슬러그 변경 한도 — 이 기간(일) 안에 */
|
|
5884
5884
|
export declare const STOREFRONT_SLUG_CHANGE_WINDOW_DAYS = 30;
|
|
5885
|
-
/** 슬러그 변경 한도 — 횟수(
|
|
5885
|
+
/** 슬러그 변경 한도 — 횟수(상점 단위. 끄고 다시 만들어도 이어서 센다) */
|
|
5886
5886
|
export declare const STOREFRONT_SLUG_CHANGE_LIMIT = 3;
|
|
5887
|
-
/** 사이트 만들기 한도 — 같은 창(30일) 안의 횟수(
|
|
5887
|
+
/** 사이트 만들기 한도 — 같은 창(30일) 안의 횟수(상점 단위). 끄고 만들기를 되풀이해 이름을 묶어 두지 못하게 한다 */
|
|
5888
5888
|
export declare const STOREFRONT_SITE_CREATE_LIMIT = 3;
|
|
5889
5889
|
export declare const storefrontTemplateSchema: z.ZodObject<{
|
|
5890
5890
|
templateId: z.ZodString;
|
|
@@ -5935,9 +5935,9 @@ export declare const storefrontVersionSchema: z.ZodObject<{
|
|
|
5935
5935
|
}, z.core.$strip>;
|
|
5936
5936
|
export type StorefrontVersion = z.infer<typeof storefrontVersionSchema>;
|
|
5937
5937
|
export declare const storefrontSiteStatusSchema: z.ZodEnum<{
|
|
5938
|
-
ACTIVE: "ACTIVE";
|
|
5939
5938
|
SUSPENDED: "SUSPENDED";
|
|
5940
5939
|
CLOSED: "CLOSED";
|
|
5940
|
+
ACTIVE: "ACTIVE";
|
|
5941
5941
|
}>;
|
|
5942
5942
|
export type StorefrontSiteStatus = z.infer<typeof storefrontSiteStatusSchema>;
|
|
5943
5943
|
export declare const storefrontVisibilitySchema: z.ZodEnum<{
|
|
@@ -5969,8 +5969,8 @@ export type StorefrontDomain = z.infer<typeof storefrontDomainSchema>;
|
|
|
5969
5969
|
*/
|
|
5970
5970
|
export declare const storefrontProvisioningSchema: z.ZodObject<{
|
|
5971
5971
|
status: z.ZodEnum<{
|
|
5972
|
-
FAILED: "FAILED";
|
|
5973
5972
|
PENDING: "PENDING";
|
|
5973
|
+
FAILED: "FAILED";
|
|
5974
5974
|
SYNCED: "SYNCED";
|
|
5975
5975
|
}>;
|
|
5976
5976
|
lastErrorCode: z.ZodNullable<z.ZodString>;
|
|
@@ -5979,7 +5979,7 @@ export declare const storefrontProvisioningSchema: z.ZodObject<{
|
|
|
5979
5979
|
export type StorefrontProvisioning = z.infer<typeof storefrontProvisioningSchema>;
|
|
5980
5980
|
/**
|
|
5981
5981
|
* 편집 미리보기 주소(M2b) — 사이트마다 `{사이트 id 정규화}-preview.{호스팅 도메인}` 호스트 하나다. 호스팅 도메인의 와일드카드
|
|
5982
|
-
* 인증서가 덮으므로 따로 준비할 것이 없다. 이 주소는 편집 미리보기 링크(
|
|
5982
|
+
* 인증서가 덮으므로 따로 준비할 것이 없다. 이 주소는 편집 미리보기 링크(상점 플랫폼 전용)로 받은 쿠키가 있어야 열린다.
|
|
5983
5983
|
*/
|
|
5984
5984
|
export declare const storefrontEditPreviewSchema: z.ZodObject<{
|
|
5985
5985
|
hostname: z.ZodNullable<z.ZodString>;
|
|
@@ -6018,9 +6018,9 @@ export declare const storefrontSiteSchema: z.ZodObject<{
|
|
|
6018
6018
|
MANAGED: "MANAGED";
|
|
6019
6019
|
}>;
|
|
6020
6020
|
status: z.ZodEnum<{
|
|
6021
|
-
ACTIVE: "ACTIVE";
|
|
6022
6021
|
SUSPENDED: "SUSPENDED";
|
|
6023
6022
|
CLOSED: "CLOSED";
|
|
6023
|
+
ACTIVE: "ACTIVE";
|
|
6024
6024
|
}>;
|
|
6025
6025
|
visibility: z.ZodEnum<{
|
|
6026
6026
|
COMING_SOON: "COMING_SOON";
|
|
@@ -6050,8 +6050,8 @@ export declare const storefrontSiteSchema: z.ZodObject<{
|
|
|
6050
6050
|
}, z.core.$strip>>;
|
|
6051
6051
|
provisioning: z.ZodObject<{
|
|
6052
6052
|
status: z.ZodEnum<{
|
|
6053
|
-
FAILED: "FAILED";
|
|
6054
6053
|
PENDING: "PENDING";
|
|
6054
|
+
FAILED: "FAILED";
|
|
6055
6055
|
SYNCED: "SYNCED";
|
|
6056
6056
|
}>;
|
|
6057
6057
|
lastErrorCode: z.ZodNullable<z.ZodString>;
|
|
@@ -6098,9 +6098,9 @@ export declare const storefrontHostingSchema: z.ZodObject<{
|
|
|
6098
6098
|
MANAGED: "MANAGED";
|
|
6099
6099
|
}>;
|
|
6100
6100
|
status: z.ZodEnum<{
|
|
6101
|
-
ACTIVE: "ACTIVE";
|
|
6102
6101
|
SUSPENDED: "SUSPENDED";
|
|
6103
6102
|
CLOSED: "CLOSED";
|
|
6103
|
+
ACTIVE: "ACTIVE";
|
|
6104
6104
|
}>;
|
|
6105
6105
|
visibility: z.ZodEnum<{
|
|
6106
6106
|
COMING_SOON: "COMING_SOON";
|
|
@@ -6130,8 +6130,8 @@ export declare const storefrontHostingSchema: z.ZodObject<{
|
|
|
6130
6130
|
}, z.core.$strip>>;
|
|
6131
6131
|
provisioning: z.ZodObject<{
|
|
6132
6132
|
status: z.ZodEnum<{
|
|
6133
|
-
FAILED: "FAILED";
|
|
6134
6133
|
PENDING: "PENDING";
|
|
6134
|
+
FAILED: "FAILED";
|
|
6135
6135
|
SYNCED: "SYNCED";
|
|
6136
6136
|
}>;
|
|
6137
6137
|
lastErrorCode: z.ZodNullable<z.ZodString>;
|
|
@@ -6162,7 +6162,7 @@ export declare const storefrontSlugAvailabilitySchema: z.ZodObject<{
|
|
|
6162
6162
|
}, z.core.$strip>;
|
|
6163
6163
|
export type StorefrontSlugAvailability = z.infer<typeof storefrontSlugAvailabilitySchema>;
|
|
6164
6164
|
/**
|
|
6165
|
-
* 배포 진행 — 사이트의 지금 발행 상태가 공개 주소에 반영되기까지의 단계와 기록이다(
|
|
6165
|
+
* 배포 진행 — 사이트의 지금 발행 상태가 공개 주소에 반영되기까지의 단계와 기록이다(상점 플랫폼의 스토어프론트 만들기 3단계가 폴링한다).
|
|
6166
6166
|
* 만들기(`POST /v1/storefront/site`)는 곧바로 201로 답하고 반영은 그 뒤에 비동기로 하므로, 끝났는지는 이 조회로 본다.
|
|
6167
6167
|
* 템플릿 사이트는 미리 빌드한 템플릿 산출물을 올리므로 빌드 단계가 없다. 기록은 사이트 상태에서 만든 요약이다.
|
|
6168
6168
|
*/
|
|
@@ -6173,8 +6173,8 @@ export declare const storefrontDeploymentStepSchema: z.ZodObject<{
|
|
|
6173
6173
|
PUBLISH: "PUBLISH";
|
|
6174
6174
|
}>;
|
|
6175
6175
|
status: z.ZodEnum<{
|
|
6176
|
-
FAILED: "FAILED";
|
|
6177
6176
|
PENDING: "PENDING";
|
|
6177
|
+
FAILED: "FAILED";
|
|
6178
6178
|
RUNNING: "RUNNING";
|
|
6179
6179
|
DONE: "DONE";
|
|
6180
6180
|
}>;
|
|
@@ -6195,9 +6195,9 @@ export type StorefrontDeploymentLog = z.infer<typeof storefrontDeploymentLogSche
|
|
|
6195
6195
|
export declare const storefrontDeploymentSchema: z.ZodObject<{
|
|
6196
6196
|
siteId: z.ZodString;
|
|
6197
6197
|
status: z.ZodEnum<{
|
|
6198
|
-
IN_PROGRESS: "IN_PROGRESS";
|
|
6199
|
-
SUCCEEDED: "SUCCEEDED";
|
|
6200
6198
|
FAILED: "FAILED";
|
|
6199
|
+
SUCCEEDED: "SUCCEEDED";
|
|
6200
|
+
IN_PROGRESS: "IN_PROGRESS";
|
|
6201
6201
|
}>;
|
|
6202
6202
|
url: z.ZodString;
|
|
6203
6203
|
startedAt: z.ZodString;
|
|
@@ -6209,8 +6209,8 @@ export declare const storefrontDeploymentSchema: z.ZodObject<{
|
|
|
6209
6209
|
PUBLISH: "PUBLISH";
|
|
6210
6210
|
}>;
|
|
6211
6211
|
status: z.ZodEnum<{
|
|
6212
|
-
FAILED: "FAILED";
|
|
6213
6212
|
PENDING: "PENDING";
|
|
6213
|
+
FAILED: "FAILED";
|
|
6214
6214
|
RUNNING: "RUNNING";
|
|
6215
6215
|
DONE: "DONE";
|
|
6216
6216
|
}>;
|
|
@@ -6282,7 +6282,7 @@ export declare const storefrontSlugAvailabilityQuerySchema: z.ZodObject<{
|
|
|
6282
6282
|
slug: z.ZodString;
|
|
6283
6283
|
}, z.core.$strip>;
|
|
6284
6284
|
/**
|
|
6285
|
-
* 오픈 준비 중 미리보기 링크 —
|
|
6285
|
+
* 오픈 준비 중 미리보기 링크 — 상점 플랫폼에서 로그인한 OWNER·ADMIN만 받는다(PAT·에이전트 불가). 링크는 5분 안에 한 번 열면
|
|
6286
6286
|
* 그 브라우저에 12시간짜리 미리보기 쿠키가 생기고 오픈 준비 중인 사이트의 실제 화면을 본다. 링크를 남에게 넘기면 그 사람도
|
|
6287
6287
|
* 볼 수 있으므로 공유하지 않는다.
|
|
6288
6288
|
*/
|
|
@@ -6305,7 +6305,7 @@ export declare const STOREFRONT_PLATFORM_DOMAINS: readonly string[];
|
|
|
6305
6305
|
* 것만 둔다(여기 없는 접미사도 TXT 소유 확인을 통과할 수 없어 연결되지 않는다 — 이 목록은 추가 단계에서 빨리 알려 주는 안내다).
|
|
6306
6306
|
*/
|
|
6307
6307
|
export declare const STOREFRONT_PUBLIC_SUFFIXES: readonly string[];
|
|
6308
|
-
/**
|
|
6308
|
+
/** 상점당 연결할 수 있는 도메인 수 기본값 — 요금제(#44) 전의 상한이다. 실제 값은 `GET …/domains`의 `limit` */
|
|
6309
6309
|
export declare const STOREFRONT_CUSTOM_DOMAIN_LIMIT_DEFAULT = 2;
|
|
6310
6310
|
/** DNS를 넣을 때까지 기다리는 기간(일) — 지나면 `FAILED`(`DNS_NOT_CONFIGURED`) */
|
|
6311
6311
|
export declare const STOREFRONT_DOMAIN_DNS_WAIT_DAYS = 7;
|
|
@@ -6377,8 +6377,8 @@ export declare const storefrontSiteDomainSchema: z.ZodObject<{
|
|
|
6377
6377
|
}, z.core.$strip>>;
|
|
6378
6378
|
certificateStatus: z.ZodNullable<z.ZodEnum<{
|
|
6379
6379
|
ACTIVE: "ACTIVE";
|
|
6380
|
-
FAILED: "FAILED";
|
|
6381
6380
|
PENDING: "PENDING";
|
|
6381
|
+
FAILED: "FAILED";
|
|
6382
6382
|
}>>;
|
|
6383
6383
|
failureCode: z.ZodNullable<z.ZodString>;
|
|
6384
6384
|
verifiedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -6420,8 +6420,8 @@ export declare const storefrontSiteDomainsSchema: z.ZodObject<{
|
|
|
6420
6420
|
}, z.core.$strip>>;
|
|
6421
6421
|
certificateStatus: z.ZodNullable<z.ZodEnum<{
|
|
6422
6422
|
ACTIVE: "ACTIVE";
|
|
6423
|
-
FAILED: "FAILED";
|
|
6424
6423
|
PENDING: "PENDING";
|
|
6424
|
+
FAILED: "FAILED";
|
|
6425
6425
|
}>>;
|
|
6426
6426
|
failureCode: z.ZodNullable<z.ZodString>;
|
|
6427
6427
|
verifiedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -6480,7 +6480,7 @@ export declare const storefrontEditSessionStatusSchema: z.ZodEnum<{
|
|
|
6480
6480
|
RUNNING: "RUNNING";
|
|
6481
6481
|
STARTING: "STARTING";
|
|
6482
6482
|
}>;
|
|
6483
|
-
/** 편집 환경을 띄우는 단계 —
|
|
6483
|
+
/** 편집 환경을 띄우는 단계 — 상점 플랫폼 진행 표시용이다. 값은 늘어날 수 있다 */
|
|
6484
6484
|
export declare const STOREFRONT_EDIT_START_STAGES: readonly ["CONTAINER", "RESTORE", "DEV_SERVER"];
|
|
6485
6485
|
export declare const storefrontEditSessionSchema: z.ZodObject<{
|
|
6486
6486
|
sessionId: z.ZodString;
|
|
@@ -6655,8 +6655,8 @@ export declare const runStorefrontCheckRequestSchema: z.ZodObject<{
|
|
|
6655
6655
|
}, z.core.$strip>;
|
|
6656
6656
|
export type RunStorefrontCheckRequest = z.infer<typeof runStorefrontCheckRequestSchema>;
|
|
6657
6657
|
export declare const storefrontCheckStatusSchema: z.ZodEnum<{
|
|
6658
|
-
UNKNOWN: "UNKNOWN";
|
|
6659
6658
|
FAILED: "FAILED";
|
|
6659
|
+
UNKNOWN: "UNKNOWN";
|
|
6660
6660
|
RUNNING: "RUNNING";
|
|
6661
6661
|
QUEUED: "QUEUED";
|
|
6662
6662
|
PASSED: "PASSED";
|
|
@@ -6669,8 +6669,8 @@ export declare const storefrontCheckSchema: z.ZodObject<{
|
|
|
6669
6669
|
checkId: z.ZodString;
|
|
6670
6670
|
check: z.ZodString;
|
|
6671
6671
|
status: z.ZodEnum<{
|
|
6672
|
-
UNKNOWN: "UNKNOWN";
|
|
6673
6672
|
FAILED: "FAILED";
|
|
6673
|
+
UNKNOWN: "UNKNOWN";
|
|
6674
6674
|
RUNNING: "RUNNING";
|
|
6675
6675
|
QUEUED: "QUEUED";
|
|
6676
6676
|
PASSED: "PASSED";
|
|
@@ -6754,8 +6754,8 @@ export declare const storefrontVerifyReportSchema: z.ZodObject<{
|
|
|
6754
6754
|
}, z.core.$strip>;
|
|
6755
6755
|
export type StorefrontVerifyReport = z.infer<typeof storefrontVerifyReportSchema>;
|
|
6756
6756
|
export declare const storefrontBuildStatusSchema: z.ZodEnum<{
|
|
6757
|
-
SUCCEEDED: "SUCCEEDED";
|
|
6758
6757
|
FAILED: "FAILED";
|
|
6758
|
+
SUCCEEDED: "SUCCEEDED";
|
|
6759
6759
|
RUNNING: "RUNNING";
|
|
6760
6760
|
QUEUED: "QUEUED";
|
|
6761
6761
|
TIMED_OUT: "TIMED_OUT";
|
|
@@ -6822,8 +6822,8 @@ export declare const storefrontBuildSchema: z.ZodObject<{
|
|
|
6822
6822
|
versionId: z.ZodString;
|
|
6823
6823
|
versionNumber: z.ZodNumber;
|
|
6824
6824
|
status: z.ZodEnum<{
|
|
6825
|
-
SUCCEEDED: "SUCCEEDED";
|
|
6826
6825
|
FAILED: "FAILED";
|
|
6826
|
+
SUCCEEDED: "SUCCEEDED";
|
|
6827
6827
|
RUNNING: "RUNNING";
|
|
6828
6828
|
QUEUED: "QUEUED";
|
|
6829
6829
|
TIMED_OUT: "TIMED_OUT";
|
|
@@ -6951,8 +6951,8 @@ export declare const storefrontVersionCreatedSchema: z.ZodObject<{
|
|
|
6951
6951
|
versionId: z.ZodString;
|
|
6952
6952
|
versionNumber: z.ZodNumber;
|
|
6953
6953
|
status: z.ZodEnum<{
|
|
6954
|
-
SUCCEEDED: "SUCCEEDED";
|
|
6955
6954
|
FAILED: "FAILED";
|
|
6955
|
+
SUCCEEDED: "SUCCEEDED";
|
|
6956
6956
|
RUNNING: "RUNNING";
|
|
6957
6957
|
QUEUED: "QUEUED";
|
|
6958
6958
|
TIMED_OUT: "TIMED_OUT";
|
|
@@ -7041,7 +7041,7 @@ export declare const storefrontVersionCreatedSchema: z.ZodObject<{
|
|
|
7041
7041
|
}, z.core.$strip>;
|
|
7042
7042
|
export type StorefrontVersionCreated = z.infer<typeof storefrontVersionCreatedSchema>;
|
|
7043
7043
|
/**
|
|
7044
|
-
* `POST /v1/storefront/site/editing/preview-link` — 편집 미리보기(dev 서버) 링크.
|
|
7044
|
+
* `POST /v1/storefront/site/editing/preview-link` — 편집 미리보기(dev 서버) 링크. 상점 플랫폼에서 로그인한 OWNER·ADMIN만
|
|
7045
7045
|
* 받는다(PAT·에이전트 불가). 5분 안에 열면 그 브라우저에 미리보기 호스트 전용 쿠키(12시간)가 생긴다. 편집 환경이
|
|
7046
7046
|
* 없으면 409 `EDIT_SESSION_REQUIRED`다(편집 환경이 `STARTING`이면 링크는 주고, 미리보기 화면이 기동 대기를 보여 준다).
|
|
7047
7047
|
*/
|
|
@@ -7151,8 +7151,8 @@ export type StorefrontSourceReplaced = z.infer<typeof storefrontSourceReplacedSc
|
|
|
7151
7151
|
* - `description`: 상세설명 본문에 삽입하는 미디어. 동영상과 svg도 받는다.
|
|
7152
7152
|
*/
|
|
7153
7153
|
export declare const uploadPurposeSchema: z.ZodEnum<{
|
|
7154
|
-
description: "description";
|
|
7155
7154
|
"product-image": "product-image";
|
|
7155
|
+
description: "description";
|
|
7156
7156
|
}>;
|
|
7157
7157
|
export type UploadPurpose = z.infer<typeof uploadPurposeSchema>;
|
|
7158
7158
|
export interface UploadPurposeLimit {
|
|
@@ -7177,7 +7177,7 @@ export interface UploadRejection {
|
|
|
7177
7177
|
}
|
|
7178
7178
|
/**
|
|
7179
7179
|
* 용도 제한 위반 여부. 통과하면 `null`.
|
|
7180
|
-
* 서버가 던지는 오류와
|
|
7180
|
+
* 서버가 던지는 오류와 상점 플랫폼이 먼저 띄우는 안내가 갈리지 않도록 한 함수로 판정한다.
|
|
7181
7181
|
*/
|
|
7182
7182
|
export declare function uploadRejection(purpose: UploadPurpose, filename: string, size?: number): UploadRejection | null;
|
|
7183
7183
|
/**
|
|
@@ -7190,8 +7190,8 @@ export declare function uploadRejection(purpose: UploadPurpose, filename: string
|
|
|
7190
7190
|
export declare const uploadRequestSchema: z.ZodObject<{
|
|
7191
7191
|
filename: z.ZodString;
|
|
7192
7192
|
purpose: z.ZodDefault<z.ZodEnum<{
|
|
7193
|
-
description: "description";
|
|
7194
7193
|
"product-image": "product-image";
|
|
7194
|
+
description: "description";
|
|
7195
7195
|
}>>;
|
|
7196
7196
|
size: z.ZodOptional<z.ZodNumber>;
|
|
7197
7197
|
}, z.core.$strip>;
|
|
@@ -7204,9 +7204,9 @@ export type UploadTicket = z.infer<typeof uploadTicketSchema>;
|
|
|
7204
7204
|
//#endregion
|
|
7205
7205
|
//#region src/schemas/auth.d.ts
|
|
7206
7206
|
export declare const storeRoleSchema: z.ZodEnum<{
|
|
7207
|
-
OWNER: "OWNER";
|
|
7208
7207
|
ADMIN: "ADMIN";
|
|
7209
7208
|
STAFF: "STAFF";
|
|
7209
|
+
OWNER: "OWNER";
|
|
7210
7210
|
}>;
|
|
7211
7211
|
export type StoreRole = z.infer<typeof storeRoleSchema>;
|
|
7212
7212
|
export declare const myStoreSchema: z.ZodObject<{
|
|
@@ -7214,14 +7214,14 @@ export declare const myStoreSchema: z.ZodObject<{
|
|
|
7214
7214
|
storeName: z.ZodString;
|
|
7215
7215
|
storeCode: z.ZodString;
|
|
7216
7216
|
role: z.ZodEnum<{
|
|
7217
|
-
OWNER: "OWNER";
|
|
7218
7217
|
ADMIN: "ADMIN";
|
|
7219
7218
|
STAFF: "STAFF";
|
|
7219
|
+
OWNER: "OWNER";
|
|
7220
7220
|
}>;
|
|
7221
7221
|
status: z.ZodEnum<{
|
|
7222
|
-
ACTIVE: "ACTIVE";
|
|
7223
7222
|
SUSPENDED: "SUSPENDED";
|
|
7224
7223
|
CLOSED: "CLOSED";
|
|
7224
|
+
ACTIVE: "ACTIVE";
|
|
7225
7225
|
}>;
|
|
7226
7226
|
}, z.core.$strip>;
|
|
7227
7227
|
export type MyStore = z.infer<typeof myStoreSchema>;
|
|
@@ -7236,7 +7236,7 @@ export type MyAccount = z.infer<typeof myAccountSchema>;
|
|
|
7236
7236
|
//#endregion
|
|
7237
7237
|
//#region src/session.d.ts
|
|
7238
7238
|
/**
|
|
7239
|
-
* SDK 세션 매니저 —
|
|
7239
|
+
* SDK 세션 매니저 — 상점 플랫폼(액세스 토큰)의 저장·무음 갱신·회전을 캡슐화한다.
|
|
7240
7240
|
*
|
|
7241
7241
|
* 저장 매체(쿠키/localStorage/…)와 그 속성(Max-Age·SameSite·Secure·Path)은 **어댑터(앱) 책임**이다.
|
|
7242
7242
|
* SDK는 "무엇을 어떤 키로 저장할지"만 알고, "어떻게 저장할지"는 SessionStorage 어댑터에 위임한다.
|
|
@@ -7338,11 +7338,11 @@ interface StoreClientOptions {
|
|
|
7338
7338
|
/** 예: https://api.example.com/v1 */
|
|
7339
7339
|
baseUrl: string;
|
|
7340
7340
|
/**
|
|
7341
|
-
* 계정 토큰(accounts가 발급한 JWT —
|
|
7342
|
-
* 계정 API(`/me/*`)와
|
|
7341
|
+
* 계정 토큰(accounts가 발급한 JWT — 상점 플랫폼 로그인, 개인 액세스 토큰, 연결된 앱의 토큰).
|
|
7342
|
+
* 계정 API(`/me/*`)와 상점 API 모두에 Bearer로 싣는다. `session`을 주면 생략해도 세션 토큰을 쓴다.
|
|
7343
7343
|
*/
|
|
7344
7344
|
accessToken?: TokenSource;
|
|
7345
|
-
/** 대상
|
|
7345
|
+
/** 대상 상점 id — 상점 API 요청에 `X-Store-Id`로 싣는다. 계정 API(`/me/*`)에는 싣지 않는다 */
|
|
7346
7346
|
storeId?: TokenSource;
|
|
7347
7347
|
/**
|
|
7348
7348
|
* SDK 세션 매니저 — 전달하면 Bearer 토큰·401 refresh·복구 불가 시 clear를
|
|
@@ -7371,13 +7371,13 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
7371
7371
|
createdAt: string;
|
|
7372
7372
|
} | null>;
|
|
7373
7373
|
auth: {
|
|
7374
|
-
/** 소속
|
|
7374
|
+
/** 소속 상점 목록 */
|
|
7375
7375
|
listMyStores: () => Promise<{
|
|
7376
7376
|
storeId: string;
|
|
7377
7377
|
storeName: string;
|
|
7378
7378
|
storeCode: string;
|
|
7379
|
-
role: "
|
|
7380
|
-
status: "
|
|
7379
|
+
role: "ADMIN" | "STAFF" | "OWNER";
|
|
7380
|
+
status: "SUSPENDED" | "CLOSED" | "ACTIVE";
|
|
7381
7381
|
}[]>;
|
|
7382
7382
|
me: () => Promise<{
|
|
7383
7383
|
userId: string;
|
|
@@ -7416,7 +7416,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
7416
7416
|
contents: {
|
|
7417
7417
|
productId: string;
|
|
7418
7418
|
name: string;
|
|
7419
|
-
status: "
|
|
7419
|
+
status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
|
|
7420
7420
|
salePrice: number;
|
|
7421
7421
|
discountedPrice: number | null;
|
|
7422
7422
|
stockQuantity: number;
|
|
@@ -7433,7 +7433,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
7433
7433
|
get: (productId: string) => Promise<{
|
|
7434
7434
|
productId: string;
|
|
7435
7435
|
name: string;
|
|
7436
|
-
status: "
|
|
7436
|
+
status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
|
|
7437
7437
|
salePrice: number;
|
|
7438
7438
|
discountedPrice: number | null;
|
|
7439
7439
|
stockQuantity: number;
|
|
@@ -7487,11 +7487,11 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
7487
7487
|
usable: boolean;
|
|
7488
7488
|
sortOrder: number;
|
|
7489
7489
|
}[];
|
|
7490
|
-
optionSort: "
|
|
7490
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
7491
7491
|
fulfillment: UnknownFulfillment | {
|
|
7492
7492
|
type: "SHIPPING";
|
|
7493
7493
|
shipping: {
|
|
7494
|
-
deliveryType: "
|
|
7494
|
+
deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
|
|
7495
7495
|
deliveryFee: number;
|
|
7496
7496
|
conditionalFreeAmount: number | null;
|
|
7497
7497
|
shippingAddressId: string | null;
|
|
@@ -7530,7 +7530,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
7530
7530
|
create: (body: ProductCreateRequestInput, idempotencyKey?: string) => Promise<{
|
|
7531
7531
|
productId: string;
|
|
7532
7532
|
name: string;
|
|
7533
|
-
status: "
|
|
7533
|
+
status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
|
|
7534
7534
|
salePrice: number;
|
|
7535
7535
|
discountedPrice: number | null;
|
|
7536
7536
|
stockQuantity: number;
|
|
@@ -7584,11 +7584,11 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
7584
7584
|
usable: boolean;
|
|
7585
7585
|
sortOrder: number;
|
|
7586
7586
|
}[];
|
|
7587
|
-
optionSort: "
|
|
7587
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
7588
7588
|
fulfillment: UnknownFulfillment | {
|
|
7589
7589
|
type: "SHIPPING";
|
|
7590
7590
|
shipping: {
|
|
7591
|
-
deliveryType: "
|
|
7591
|
+
deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
|
|
7592
7592
|
deliveryFee: number;
|
|
7593
7593
|
conditionalFreeAmount: number | null;
|
|
7594
7594
|
shippingAddressId: string | null;
|
|
@@ -7627,7 +7627,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
7627
7627
|
update: (productId: string, body: ProductReplaceRequestInput) => Promise<{
|
|
7628
7628
|
productId: string;
|
|
7629
7629
|
name: string;
|
|
7630
|
-
status: "
|
|
7630
|
+
status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
|
|
7631
7631
|
salePrice: number;
|
|
7632
7632
|
discountedPrice: number | null;
|
|
7633
7633
|
stockQuantity: number;
|
|
@@ -7681,11 +7681,11 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
7681
7681
|
usable: boolean;
|
|
7682
7682
|
sortOrder: number;
|
|
7683
7683
|
}[];
|
|
7684
|
-
optionSort: "
|
|
7684
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
7685
7685
|
fulfillment: UnknownFulfillment | {
|
|
7686
7686
|
type: "SHIPPING";
|
|
7687
7687
|
shipping: {
|
|
7688
|
-
deliveryType: "
|
|
7688
|
+
deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
|
|
7689
7689
|
deliveryFee: number;
|
|
7690
7690
|
conditionalFreeAmount: number | null;
|
|
7691
7691
|
shippingAddressId: string | null;
|
|
@@ -7781,7 +7781,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
7781
7781
|
usable: boolean;
|
|
7782
7782
|
sortOrder: number;
|
|
7783
7783
|
}[];
|
|
7784
|
-
optionSort: "
|
|
7784
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
7785
7785
|
}>;
|
|
7786
7786
|
/**
|
|
7787
7787
|
* 옵션 모델 전체 교체 — variants는 valueNames로 축 값을 지목한다.
|
|
@@ -7834,7 +7834,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
7834
7834
|
usable: boolean;
|
|
7835
7835
|
sortOrder: number;
|
|
7836
7836
|
}[];
|
|
7837
|
-
optionSort: "
|
|
7837
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
7838
7838
|
}>;
|
|
7839
7839
|
/** 재고 변경 — stockQuantity(절대값) 또는 adjustment(증감) 하나만 전달한다 */
|
|
7840
7840
|
updateVariantStock: (productId: string, variantId: string, body: VariantStockRequest) => Promise<{
|
|
@@ -7872,7 +7872,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
7872
7872
|
contents: {
|
|
7873
7873
|
optionSetId: string;
|
|
7874
7874
|
name: string;
|
|
7875
|
-
optionSort: "
|
|
7875
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
7876
7876
|
groups: {
|
|
7877
7877
|
name: string;
|
|
7878
7878
|
kind: string;
|
|
@@ -7896,7 +7896,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
7896
7896
|
get: (optionSetId: string) => Promise<{
|
|
7897
7897
|
optionSetId: string;
|
|
7898
7898
|
name: string;
|
|
7899
|
-
optionSort: "
|
|
7899
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
7900
7900
|
groups: {
|
|
7901
7901
|
name: string;
|
|
7902
7902
|
kind: string;
|
|
@@ -7916,11 +7916,11 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
7916
7916
|
createdAt: string;
|
|
7917
7917
|
updatedAt: string;
|
|
7918
7918
|
}>;
|
|
7919
|
-
/** 이름이 겹치면 409 `OPTION_SET_NAME_TAKEN`,
|
|
7919
|
+
/** 이름이 겹치면 409 `OPTION_SET_NAME_TAKEN`, 상점당 200개를 넘으면 409 `OPTION_SET_LIMIT_EXCEEDED` */
|
|
7920
7920
|
create: (body: SavedOptionSetRequestInput) => Promise<{
|
|
7921
7921
|
optionSetId: string;
|
|
7922
7922
|
name: string;
|
|
7923
|
-
optionSort: "
|
|
7923
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
7924
7924
|
groups: {
|
|
7925
7925
|
name: string;
|
|
7926
7926
|
kind: string;
|
|
@@ -7944,7 +7944,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
7944
7944
|
update: (optionSetId: string, body: SavedOptionSetRequestInput) => Promise<{
|
|
7945
7945
|
optionSetId: string;
|
|
7946
7946
|
name: string;
|
|
7947
|
-
optionSort: "
|
|
7947
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
7948
7948
|
groups: {
|
|
7949
7949
|
name: string;
|
|
7950
7950
|
kind: string;
|
|
@@ -7970,7 +7970,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
7970
7970
|
optionSet: {
|
|
7971
7971
|
optionSetId: string;
|
|
7972
7972
|
name: string;
|
|
7973
|
-
optionSort: "
|
|
7973
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
7974
7974
|
groups: {
|
|
7975
7975
|
name: string;
|
|
7976
7976
|
kind: string;
|
|
@@ -8009,7 +8009,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8009
8009
|
visible: boolean;
|
|
8010
8010
|
showPc: boolean;
|
|
8011
8011
|
showMobile: boolean;
|
|
8012
|
-
productSort: "
|
|
8012
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
8013
8013
|
metaTitle: string | null;
|
|
8014
8014
|
metaDescription: string | null;
|
|
8015
8015
|
metaKeywords: string | null;
|
|
@@ -8029,7 +8029,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8029
8029
|
visible: boolean;
|
|
8030
8030
|
showPc: boolean;
|
|
8031
8031
|
showMobile: boolean;
|
|
8032
|
-
productSort: "
|
|
8032
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
8033
8033
|
metaTitle: string | null;
|
|
8034
8034
|
metaDescription: string | null;
|
|
8035
8035
|
metaKeywords: string | null;
|
|
@@ -8048,7 +8048,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8048
8048
|
visible: boolean;
|
|
8049
8049
|
showPc: boolean;
|
|
8050
8050
|
showMobile: boolean;
|
|
8051
|
-
productSort: "
|
|
8051
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
8052
8052
|
metaTitle: string | null;
|
|
8053
8053
|
metaDescription: string | null;
|
|
8054
8054
|
metaKeywords: string | null;
|
|
@@ -8068,7 +8068,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8068
8068
|
visible: boolean;
|
|
8069
8069
|
showPc: boolean;
|
|
8070
8070
|
showMobile: boolean;
|
|
8071
|
-
productSort: "
|
|
8071
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
8072
8072
|
metaTitle: string | null;
|
|
8073
8073
|
metaDescription: string | null;
|
|
8074
8074
|
metaKeywords: string | null;
|
|
@@ -8087,7 +8087,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8087
8087
|
visible: boolean;
|
|
8088
8088
|
showPc: boolean;
|
|
8089
8089
|
showMobile: boolean;
|
|
8090
|
-
productSort: "
|
|
8090
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
8091
8091
|
metaTitle: string | null;
|
|
8092
8092
|
metaDescription: string | null;
|
|
8093
8093
|
metaKeywords: string | null;
|
|
@@ -8116,7 +8116,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8116
8116
|
visible: boolean;
|
|
8117
8117
|
showPc: boolean;
|
|
8118
8118
|
showMobile: boolean;
|
|
8119
|
-
productSort: "
|
|
8119
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
8120
8120
|
metaTitle: string | null;
|
|
8121
8121
|
metaDescription: string | null;
|
|
8122
8122
|
metaKeywords: string | null;
|
|
@@ -8135,7 +8135,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8135
8135
|
visible: boolean;
|
|
8136
8136
|
showPc: boolean;
|
|
8137
8137
|
showMobile: boolean;
|
|
8138
|
-
productSort: "
|
|
8138
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
8139
8139
|
metaTitle: string | null;
|
|
8140
8140
|
metaDescription: string | null;
|
|
8141
8141
|
metaKeywords: string | null;
|
|
@@ -8279,7 +8279,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8279
8279
|
}>;
|
|
8280
8280
|
/**
|
|
8281
8281
|
* `POST /v1/orders/{orderId}/cash-receipt/reissue` — 실패했거나 재시도 대기 중인 현금영수증을 지금 다시 발급·취소한다.
|
|
8282
|
-
*
|
|
8282
|
+
* 상점 플랫폼 OWNER·ADMIN 전용(PAT·M2M 403 `INSUFFICIENT_ROLE`). 404 `CASH_RECEIPT_NOT_FOUND`, 409 `CASH_RECEIPT_NOT_REISSUABLE`
|
|
8283
8283
|
*/
|
|
8284
8284
|
reissueCashReceipt: (orderId: string) => Promise<{
|
|
8285
8285
|
cashReceiptId: string;
|
|
@@ -8395,7 +8395,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8395
8395
|
}>;
|
|
8396
8396
|
dispatch: (orderItemId: string, body: DispatchRequest, idempotencyKey?: string) => Promise<{
|
|
8397
8397
|
orderItemId: string;
|
|
8398
|
-
deliveryMethod: "
|
|
8398
|
+
deliveryMethod: "COURIER" | "DIRECT" | "QUICK" | "NOTHING";
|
|
8399
8399
|
carrierCode: string | null;
|
|
8400
8400
|
carrierName: string | null;
|
|
8401
8401
|
trackingNumber: string | null;
|
|
@@ -8419,7 +8419,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8419
8419
|
updateTracking: (orderItemId: string, carrierCode: string, trackingNumber: string) => Promise<void>;
|
|
8420
8420
|
/**
|
|
8421
8421
|
* 배송완료 처리 — `DISPATCHED`·`DELIVERING`만 넘어간다. 응답의 `autoDecisionDate`가 자동 구매확정 예정일이다
|
|
8422
|
-
* (
|
|
8422
|
+
* (상점 설정 `autoConfirmDays`가 0이면 null).
|
|
8423
8423
|
*/
|
|
8424
8424
|
markDelivered: (orderItemId: string, idempotencyKey?: string) => Promise<{
|
|
8425
8425
|
orderItemId: string;
|
|
@@ -8555,7 +8555,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8555
8555
|
}>;
|
|
8556
8556
|
getDelivery: (orderItemId: string) => Promise<{
|
|
8557
8557
|
orderItemId: string;
|
|
8558
|
-
deliveryMethod: "
|
|
8558
|
+
deliveryMethod: "COURIER" | "DIRECT" | "QUICK" | "NOTHING";
|
|
8559
8559
|
carrierCode: string | null;
|
|
8560
8560
|
carrierName: string | null;
|
|
8561
8561
|
trackingNumber: string | null;
|
|
@@ -8592,8 +8592,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8592
8592
|
totalPages: number;
|
|
8593
8593
|
contents: {
|
|
8594
8594
|
claimId: string;
|
|
8595
|
-
type: "
|
|
8596
|
-
status: "
|
|
8595
|
+
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
8596
|
+
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
|
|
8597
8597
|
orderId: string;
|
|
8598
8598
|
orderItemId: string;
|
|
8599
8599
|
productName: string;
|
|
@@ -8630,8 +8630,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8630
8630
|
}>;
|
|
8631
8631
|
get: (claimId: string) => Promise<{
|
|
8632
8632
|
claimId: string;
|
|
8633
|
-
type: "
|
|
8634
|
-
status: "
|
|
8633
|
+
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
8634
|
+
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
|
|
8635
8635
|
orderId: string;
|
|
8636
8636
|
orderItemId: string;
|
|
8637
8637
|
productName: string;
|
|
@@ -8665,7 +8665,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8665
8665
|
address2: string | null;
|
|
8666
8666
|
} | null;
|
|
8667
8667
|
histories?: {
|
|
8668
|
-
status: "
|
|
8668
|
+
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
|
|
8669
8669
|
actor: "SYSTEM" | "BUYER" | "SELLER";
|
|
8670
8670
|
occurredAt: string;
|
|
8671
8671
|
}[] | undefined;
|
|
@@ -8696,8 +8696,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8696
8696
|
/** 교환 완료 — 재배송 중인 교환을 셀러가 명시적으로 끝낸다 */
|
|
8697
8697
|
completeExchange: (claimId: string) => Promise<{
|
|
8698
8698
|
claimId: string;
|
|
8699
|
-
type: "
|
|
8700
|
-
status: "
|
|
8699
|
+
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
8700
|
+
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
|
|
8701
8701
|
orderId: string;
|
|
8702
8702
|
orderItemId: string;
|
|
8703
8703
|
productName: string;
|
|
@@ -8747,7 +8747,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8747
8747
|
productId: string;
|
|
8748
8748
|
productName: string;
|
|
8749
8749
|
orderItemId: string | null;
|
|
8750
|
-
category: "
|
|
8750
|
+
category: "ETC" | "PRODUCT" | "DELIVERY" | "RETURN" | "EXCHANGE";
|
|
8751
8751
|
content: string;
|
|
8752
8752
|
secret: boolean;
|
|
8753
8753
|
writerMaskedName: string;
|
|
@@ -8765,7 +8765,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8765
8765
|
productId: string;
|
|
8766
8766
|
productName: string;
|
|
8767
8767
|
orderItemId: string | null;
|
|
8768
|
-
category: "
|
|
8768
|
+
category: "ETC" | "PRODUCT" | "DELIVERY" | "RETURN" | "EXCHANGE";
|
|
8769
8769
|
content: string;
|
|
8770
8770
|
secret: boolean;
|
|
8771
8771
|
writerMaskedName: string;
|
|
@@ -8781,7 +8781,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8781
8781
|
updateAnswer: (inquiryId: string, content: string) => Promise<void>;
|
|
8782
8782
|
};
|
|
8783
8783
|
/**
|
|
8784
|
-
* 구매자 로그인 설정 — 이메일·비밀번호 허용, 소셜 공급자 연결. 비밀 값을 다루므로
|
|
8784
|
+
* 구매자 로그인 설정 — 이메일·비밀번호 허용, 소셜 공급자 연결. 비밀 값을 다루므로 상점 플랫폼에 로그인한 OWNER만 호출할 수 있다
|
|
8785
8785
|
*/
|
|
8786
8786
|
loginSettings: {
|
|
8787
8787
|
get: () => Promise<{
|
|
@@ -8877,7 +8877,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8877
8877
|
}[];
|
|
8878
8878
|
}>;
|
|
8879
8879
|
};
|
|
8880
|
-
/** 구매자 관리 — 조회 `customer:r`, 탈퇴 처리 `customer:rw`(
|
|
8880
|
+
/** 구매자 관리 — 조회 `customer:r`, 탈퇴 처리 `customer:rw`(상점 플랫폼 OWNER·ADMIN) */
|
|
8881
8881
|
customers: {
|
|
8882
8882
|
list: (params?: PageParams & Omit<z.input<typeof customerListQuerySchema>, "page" | "size">) => Promise<{
|
|
8883
8883
|
page: number;
|
|
@@ -9398,7 +9398,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9398
9398
|
contents: {
|
|
9399
9399
|
inquiryId: string;
|
|
9400
9400
|
memberMaskedName: string;
|
|
9401
|
-
category: "
|
|
9401
|
+
category: "ETC" | "DELIVERY" | "RETURN" | "EXCHANGE" | "PAYMENT";
|
|
9402
9402
|
title: string;
|
|
9403
9403
|
content: string;
|
|
9404
9404
|
orderItemId: string | null;
|
|
@@ -9414,7 +9414,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9414
9414
|
get: (inquiryId: string) => Promise<{
|
|
9415
9415
|
inquiryId: string;
|
|
9416
9416
|
memberMaskedName: string;
|
|
9417
|
-
category: "
|
|
9417
|
+
category: "ETC" | "DELIVERY" | "RETURN" | "EXCHANGE" | "PAYMENT";
|
|
9418
9418
|
title: string;
|
|
9419
9419
|
content: string;
|
|
9420
9420
|
orderItemId: string | null;
|
|
@@ -9598,9 +9598,9 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9598
9598
|
}>;
|
|
9599
9599
|
/** `GET /v1/analytics/sources` — 채널·소스·캠페인·기기별 세션과 구매 */
|
|
9600
9600
|
sources: (params: AnalyticsSourcesParams) => Promise<{
|
|
9601
|
-
groupBy: "
|
|
9601
|
+
groupBy: "CHANNEL" | "SOURCE" | "CAMPAIGN" | "DEVICE";
|
|
9602
9602
|
rows: {
|
|
9603
|
-
channel: "
|
|
9603
|
+
channel: "PAID" | "DIRECT" | "CAMPAIGN" | "UNKNOWN" | "ORGANIC_SEARCH" | "SOCIAL" | "EMAIL" | "REFERRAL" | null;
|
|
9604
9604
|
source: string | null;
|
|
9605
9605
|
medium: string | null;
|
|
9606
9606
|
campaign: string | null;
|
|
@@ -9705,7 +9705,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9705
9705
|
checkout: (params: AnalyticsRangeParams) => Promise<{
|
|
9706
9706
|
sessions: number;
|
|
9707
9707
|
outcomes: {
|
|
9708
|
-
outcome: "COMPLETED" | "NOT_OPENED" | "USER_CANCELED" | "DECLINED" | "PREPARE_FAILURE" | "
|
|
9708
|
+
outcome: "OTHER" | "COMPLETED" | "NOT_OPENED" | "USER_CANCELED" | "DECLINED" | "PREPARE_FAILURE" | "IN_PROGRESS";
|
|
9709
9709
|
sessions: number;
|
|
9710
9710
|
}[];
|
|
9711
9711
|
from: string;
|
|
@@ -9735,7 +9735,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9735
9735
|
orderId: string | null;
|
|
9736
9736
|
orderName: string;
|
|
9737
9737
|
customerName: string;
|
|
9738
|
-
status: "
|
|
9738
|
+
status: "PENDING" | "FAILED" | "APPROVED" | "PARTIALLY_REFUNDED" | "REFUNDED";
|
|
9739
9739
|
amount: number;
|
|
9740
9740
|
refundedAmount: number;
|
|
9741
9741
|
provider: "tosspayments" | "portone" | null;
|
|
@@ -9759,7 +9759,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9759
9759
|
orderId: string | null;
|
|
9760
9760
|
orderName: string;
|
|
9761
9761
|
customerName: string;
|
|
9762
|
-
status: "
|
|
9762
|
+
status: "PENDING" | "FAILED" | "APPROVED" | "PARTIALLY_REFUNDED" | "REFUNDED";
|
|
9763
9763
|
amount: number;
|
|
9764
9764
|
refundedAmount: number;
|
|
9765
9765
|
provider: "tosspayments" | "portone" | null;
|
|
@@ -9826,8 +9826,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9826
9826
|
}>;
|
|
9827
9827
|
};
|
|
9828
9828
|
/**
|
|
9829
|
-
* 결제(PG) 설정 —
|
|
9830
|
-
* 403 `INSUFFICIENT_ROLE`이다(조회 포함). OWNER 여부는 요청 시점의
|
|
9829
|
+
* 결제(PG) 설정 — **상점 플랫폼 OWNER 전용**. ADMIN·STAFF·PAT·M2M·3rd-party 앱 토큰은 스코프가 있어도
|
|
9830
|
+
* 403 `INSUFFICIENT_ROLE`이다(조회 포함). OWNER 여부는 요청 시점의 상점 멤버십으로 다시 확인하므로
|
|
9831
9831
|
* 양도·강등 직후에도 바로 403이다. 비밀 값(시크릿 키·API Secret·웹훅 시크릿)은 요청으로만 보내고
|
|
9832
9832
|
* 응답에는 `secrets[].masked`(앞 4자리 마스킹)만 나온다.
|
|
9833
9833
|
*/
|
|
@@ -9858,7 +9858,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9858
9858
|
masked: string | null;
|
|
9859
9859
|
}[];
|
|
9860
9860
|
lastVerification: {
|
|
9861
|
-
result: "
|
|
9861
|
+
result: "SUCCESS" | "FAILED";
|
|
9862
9862
|
message: string | null;
|
|
9863
9863
|
checkedAt: string;
|
|
9864
9864
|
} | null;
|
|
@@ -9883,7 +9883,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9883
9883
|
masked: string | null;
|
|
9884
9884
|
}[];
|
|
9885
9885
|
lastVerification: {
|
|
9886
|
-
result: "
|
|
9886
|
+
result: "SUCCESS" | "FAILED";
|
|
9887
9887
|
message: string | null;
|
|
9888
9888
|
checkedAt: string;
|
|
9889
9889
|
} | null;
|
|
@@ -9907,7 +9907,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9907
9907
|
masked: string | null;
|
|
9908
9908
|
}[];
|
|
9909
9909
|
lastVerification: {
|
|
9910
|
-
result: "
|
|
9910
|
+
result: "SUCCESS" | "FAILED";
|
|
9911
9911
|
message: string | null;
|
|
9912
9912
|
checkedAt: string;
|
|
9913
9913
|
} | null;
|
|
@@ -9959,7 +9959,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9959
9959
|
masked: string | null;
|
|
9960
9960
|
}[];
|
|
9961
9961
|
lastVerification: {
|
|
9962
|
-
result: "
|
|
9962
|
+
result: "SUCCESS" | "FAILED";
|
|
9963
9963
|
message: string | null;
|
|
9964
9964
|
checkedAt: string;
|
|
9965
9965
|
} | null;
|
|
@@ -9984,7 +9984,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9984
9984
|
masked: string | null;
|
|
9985
9985
|
}[];
|
|
9986
9986
|
lastVerification: {
|
|
9987
|
-
result: "
|
|
9987
|
+
result: "SUCCESS" | "FAILED";
|
|
9988
9988
|
message: string | null;
|
|
9989
9989
|
checkedAt: string;
|
|
9990
9990
|
} | null;
|
|
@@ -10008,7 +10008,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10008
10008
|
masked: string | null;
|
|
10009
10009
|
}[];
|
|
10010
10010
|
lastVerification: {
|
|
10011
|
-
result: "
|
|
10011
|
+
result: "SUCCESS" | "FAILED";
|
|
10012
10012
|
message: string | null;
|
|
10013
10013
|
checkedAt: string;
|
|
10014
10014
|
} | null;
|
|
@@ -10065,7 +10065,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10065
10065
|
masked: string | null;
|
|
10066
10066
|
}[];
|
|
10067
10067
|
lastVerification: {
|
|
10068
|
-
result: "
|
|
10068
|
+
result: "SUCCESS" | "FAILED";
|
|
10069
10069
|
message: string | null;
|
|
10070
10070
|
checkedAt: string;
|
|
10071
10071
|
} | null;
|
|
@@ -10090,7 +10090,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10090
10090
|
masked: string | null;
|
|
10091
10091
|
}[];
|
|
10092
10092
|
lastVerification: {
|
|
10093
|
-
result: "
|
|
10093
|
+
result: "SUCCESS" | "FAILED";
|
|
10094
10094
|
message: string | null;
|
|
10095
10095
|
checkedAt: string;
|
|
10096
10096
|
} | null;
|
|
@@ -10114,7 +10114,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10114
10114
|
masked: string | null;
|
|
10115
10115
|
}[];
|
|
10116
10116
|
lastVerification: {
|
|
10117
|
-
result: "
|
|
10117
|
+
result: "SUCCESS" | "FAILED";
|
|
10118
10118
|
message: string | null;
|
|
10119
10119
|
checkedAt: string;
|
|
10120
10120
|
} | null;
|
|
@@ -10161,7 +10161,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10161
10161
|
masked: string | null;
|
|
10162
10162
|
}[];
|
|
10163
10163
|
lastVerification: {
|
|
10164
|
-
result: "
|
|
10164
|
+
result: "SUCCESS" | "FAILED";
|
|
10165
10165
|
message: string | null;
|
|
10166
10166
|
checkedAt: string;
|
|
10167
10167
|
} | null;
|
|
@@ -10186,7 +10186,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10186
10186
|
masked: string | null;
|
|
10187
10187
|
}[];
|
|
10188
10188
|
lastVerification: {
|
|
10189
|
-
result: "
|
|
10189
|
+
result: "SUCCESS" | "FAILED";
|
|
10190
10190
|
message: string | null;
|
|
10191
10191
|
checkedAt: string;
|
|
10192
10192
|
} | null;
|
|
@@ -10210,7 +10210,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10210
10210
|
masked: string | null;
|
|
10211
10211
|
}[];
|
|
10212
10212
|
lastVerification: {
|
|
10213
|
-
result: "
|
|
10213
|
+
result: "SUCCESS" | "FAILED";
|
|
10214
10214
|
message: string | null;
|
|
10215
10215
|
checkedAt: string;
|
|
10216
10216
|
} | null;
|
|
@@ -10267,7 +10267,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10267
10267
|
masked: string | null;
|
|
10268
10268
|
}[];
|
|
10269
10269
|
lastVerification: {
|
|
10270
|
-
result: "
|
|
10270
|
+
result: "SUCCESS" | "FAILED";
|
|
10271
10271
|
message: string | null;
|
|
10272
10272
|
checkedAt: string;
|
|
10273
10273
|
} | null;
|
|
@@ -10292,7 +10292,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10292
10292
|
masked: string | null;
|
|
10293
10293
|
}[];
|
|
10294
10294
|
lastVerification: {
|
|
10295
|
-
result: "
|
|
10295
|
+
result: "SUCCESS" | "FAILED";
|
|
10296
10296
|
message: string | null;
|
|
10297
10297
|
checkedAt: string;
|
|
10298
10298
|
} | null;
|
|
@@ -10316,7 +10316,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10316
10316
|
masked: string | null;
|
|
10317
10317
|
}[];
|
|
10318
10318
|
lastVerification: {
|
|
10319
|
-
result: "
|
|
10319
|
+
result: "SUCCESS" | "FAILED";
|
|
10320
10320
|
message: string | null;
|
|
10321
10321
|
checkedAt: string;
|
|
10322
10322
|
} | null;
|
|
@@ -10363,7 +10363,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10363
10363
|
masked: string | null;
|
|
10364
10364
|
}[];
|
|
10365
10365
|
lastVerification: {
|
|
10366
|
-
result: "
|
|
10366
|
+
result: "SUCCESS" | "FAILED";
|
|
10367
10367
|
message: string | null;
|
|
10368
10368
|
checkedAt: string;
|
|
10369
10369
|
} | null;
|
|
@@ -10388,7 +10388,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10388
10388
|
masked: string | null;
|
|
10389
10389
|
}[];
|
|
10390
10390
|
lastVerification: {
|
|
10391
|
-
result: "
|
|
10391
|
+
result: "SUCCESS" | "FAILED";
|
|
10392
10392
|
message: string | null;
|
|
10393
10393
|
checkedAt: string;
|
|
10394
10394
|
} | null;
|
|
@@ -10412,7 +10412,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10412
10412
|
masked: string | null;
|
|
10413
10413
|
}[];
|
|
10414
10414
|
lastVerification: {
|
|
10415
|
-
result: "
|
|
10415
|
+
result: "SUCCESS" | "FAILED";
|
|
10416
10416
|
message: string | null;
|
|
10417
10417
|
checkedAt: string;
|
|
10418
10418
|
} | null;
|
|
@@ -10468,7 +10468,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10468
10468
|
masked: string | null;
|
|
10469
10469
|
}[];
|
|
10470
10470
|
lastVerification: {
|
|
10471
|
-
result: "
|
|
10471
|
+
result: "SUCCESS" | "FAILED";
|
|
10472
10472
|
message: string | null;
|
|
10473
10473
|
checkedAt: string;
|
|
10474
10474
|
} | null;
|
|
@@ -10493,7 +10493,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10493
10493
|
masked: string | null;
|
|
10494
10494
|
}[];
|
|
10495
10495
|
lastVerification: {
|
|
10496
|
-
result: "
|
|
10496
|
+
result: "SUCCESS" | "FAILED";
|
|
10497
10497
|
message: string | null;
|
|
10498
10498
|
checkedAt: string;
|
|
10499
10499
|
} | null;
|
|
@@ -10517,7 +10517,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10517
10517
|
masked: string | null;
|
|
10518
10518
|
}[];
|
|
10519
10519
|
lastVerification: {
|
|
10520
|
-
result: "
|
|
10520
|
+
result: "SUCCESS" | "FAILED";
|
|
10521
10521
|
message: string | null;
|
|
10522
10522
|
checkedAt: string;
|
|
10523
10523
|
} | null;
|
|
@@ -10545,7 +10545,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10545
10545
|
verify: (provider: PgProvider, body?: VerifyPaymentProviderRequest) => Promise<{
|
|
10546
10546
|
provider: "tosspayments" | "portone";
|
|
10547
10547
|
environment: "TEST" | "LIVE";
|
|
10548
|
-
result: "
|
|
10548
|
+
result: "SUCCESS" | "FAILED";
|
|
10549
10549
|
message: string | null;
|
|
10550
10550
|
checkedAt: string;
|
|
10551
10551
|
}>;
|
|
@@ -10555,7 +10555,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10555
10555
|
webhookId: string;
|
|
10556
10556
|
url: string;
|
|
10557
10557
|
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")[];
|
|
10558
|
-
status: "
|
|
10558
|
+
status: "SUSPENDED" | "ACTIVE";
|
|
10559
10559
|
secretPrefix: string;
|
|
10560
10560
|
suspendedAt: string | null;
|
|
10561
10561
|
createdAt: string;
|
|
@@ -10565,7 +10565,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10565
10565
|
webhookId: string;
|
|
10566
10566
|
url: string;
|
|
10567
10567
|
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")[];
|
|
10568
|
-
status: "
|
|
10568
|
+
status: "SUSPENDED" | "ACTIVE";
|
|
10569
10569
|
secretPrefix: string;
|
|
10570
10570
|
suspendedAt: string | null;
|
|
10571
10571
|
createdAt: string;
|
|
@@ -10575,7 +10575,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10575
10575
|
webhookId: string;
|
|
10576
10576
|
url: string;
|
|
10577
10577
|
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")[];
|
|
10578
|
-
status: "
|
|
10578
|
+
status: "SUSPENDED" | "ACTIVE";
|
|
10579
10579
|
secretPrefix: string;
|
|
10580
10580
|
suspendedAt: string | null;
|
|
10581
10581
|
createdAt: string;
|
|
@@ -10585,7 +10585,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10585
10585
|
webhookId: string;
|
|
10586
10586
|
url: string;
|
|
10587
10587
|
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")[];
|
|
10588
|
-
status: "
|
|
10588
|
+
status: "SUSPENDED" | "ACTIVE";
|
|
10589
10589
|
secretPrefix: string;
|
|
10590
10590
|
suspendedAt: string | null;
|
|
10591
10591
|
createdAt: string;
|
|
@@ -10600,7 +10600,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10600
10600
|
webhookId: string;
|
|
10601
10601
|
url: string;
|
|
10602
10602
|
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")[];
|
|
10603
|
-
status: "
|
|
10603
|
+
status: "SUSPENDED" | "ACTIVE";
|
|
10604
10604
|
secretPrefix: string;
|
|
10605
10605
|
suspendedAt: string | null;
|
|
10606
10606
|
createdAt: string;
|
|
@@ -10611,7 +10611,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10611
10611
|
eventId: string;
|
|
10612
10612
|
eventType: "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
10613
|
url: string;
|
|
10614
|
-
status: "
|
|
10614
|
+
status: "PENDING" | "PENDING_RETRY" | "SUCCESS" | "FAILED";
|
|
10615
10615
|
responseStatusCode: number | null;
|
|
10616
10616
|
responseTimeMs: number | null;
|
|
10617
10617
|
responseBodyExcerpt: string | null;
|
|
@@ -10638,7 +10638,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10638
10638
|
eventId: string;
|
|
10639
10639
|
eventType: "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";
|
|
10640
10640
|
url: string;
|
|
10641
|
-
status: "
|
|
10641
|
+
status: "PENDING" | "PENDING_RETRY" | "SUCCESS" | "FAILED";
|
|
10642
10642
|
responseStatusCode: number | null;
|
|
10643
10643
|
responseTimeMs: number | null;
|
|
10644
10644
|
responseBodyExcerpt: string | null;
|
|
@@ -10673,7 +10673,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10673
10673
|
eventId: string;
|
|
10674
10674
|
eventType: "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";
|
|
10675
10675
|
url: string;
|
|
10676
|
-
status: "
|
|
10676
|
+
status: "PENDING" | "PENDING_RETRY" | "SUCCESS" | "FAILED";
|
|
10677
10677
|
responseStatusCode: number | null;
|
|
10678
10678
|
responseTimeMs: number | null;
|
|
10679
10679
|
responseBodyExcerpt: string | null;
|
|
@@ -10714,7 +10714,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10714
10714
|
payload: string;
|
|
10715
10715
|
}>;
|
|
10716
10716
|
};
|
|
10717
|
-
/** API 로그 (보관 7일,
|
|
10717
|
+
/** API 로그 (보관 7일, 상점 플랫폼 OWNER/ADMIN) */
|
|
10718
10718
|
apiLogs: {
|
|
10719
10719
|
/** 최신순 커서 페이지네이션. 다음 페이지는 응답의 `nextCursor`를 `cursor`로 넘긴다 */
|
|
10720
10720
|
list: (params?: ApiLogListOptions) => Promise<{
|
|
@@ -10746,7 +10746,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10746
10746
|
serverErrors: number;
|
|
10747
10747
|
}>;
|
|
10748
10748
|
};
|
|
10749
|
-
/** 감사 로그 (관리 API 쓰기의 행위자·대상·결과,
|
|
10749
|
+
/** 감사 로그 (관리 API 쓰기의 행위자·대상·결과, 상점 플랫폼 OWNER/ADMIN, `audit:r`) */
|
|
10750
10750
|
auditLogs: {
|
|
10751
10751
|
/** 최신순 커서 페이지네이션. 다음 페이지는 응답의 `nextCursor`를 `cursor`로 넘긴다 */
|
|
10752
10752
|
list: (params?: AuditLogListOptions) => Promise<{
|
|
@@ -10769,7 +10769,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10769
10769
|
method: string | null;
|
|
10770
10770
|
path: string | null;
|
|
10771
10771
|
statusCode: number | null;
|
|
10772
|
-
outcome: "
|
|
10772
|
+
outcome: "FAILED" | "SUCCEEDED" | "PENDING_APPROVAL" | "DENIED" | "DRY_RUN" | null;
|
|
10773
10773
|
errorCode: string | null;
|
|
10774
10774
|
traceId: string | null;
|
|
10775
10775
|
idempotencyKey: string | null;
|
|
@@ -10780,14 +10780,14 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10780
10780
|
}>;
|
|
10781
10781
|
};
|
|
10782
10782
|
/**
|
|
10783
|
-
* 승인 요청 — 에이전트의 고위험 쓰기가 202로 보류된 건. 목록·승인·거절은
|
|
10783
|
+
* 승인 요청 — 에이전트의 고위험 쓰기가 202로 보류된 건. 목록·승인·거절은 상점 플랫폼 OWNER/ADMIN,
|
|
10784
10784
|
* 단건 조회는 요청한 토큰도 할 수 있다(상태 확인용).
|
|
10785
10785
|
*/
|
|
10786
10786
|
approvalRequests: {
|
|
10787
10787
|
list: (params?: ApprovalListOptions) => Promise<{
|
|
10788
10788
|
items: {
|
|
10789
10789
|
approvalId: string;
|
|
10790
|
-
status: "
|
|
10790
|
+
status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
|
|
10791
10791
|
operationId: string;
|
|
10792
10792
|
method: string;
|
|
10793
10793
|
path: string;
|
|
@@ -10837,7 +10837,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10837
10837
|
}>;
|
|
10838
10838
|
get: (approvalId: string) => Promise<{
|
|
10839
10839
|
approvalId: string;
|
|
10840
|
-
status: "
|
|
10840
|
+
status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
|
|
10841
10841
|
operationId: string;
|
|
10842
10842
|
method: string;
|
|
10843
10843
|
path: string;
|
|
@@ -10889,7 +10889,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10889
10889
|
*/
|
|
10890
10890
|
approve: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
|
|
10891
10891
|
approvalId: string;
|
|
10892
|
-
status: "
|
|
10892
|
+
status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
|
|
10893
10893
|
operationId: string;
|
|
10894
10894
|
method: string;
|
|
10895
10895
|
path: string;
|
|
@@ -10937,7 +10937,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10937
10937
|
}>;
|
|
10938
10938
|
reject: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
|
|
10939
10939
|
approvalId: string;
|
|
10940
|
-
status: "
|
|
10940
|
+
status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
|
|
10941
10941
|
operationId: string;
|
|
10942
10942
|
method: string;
|
|
10943
10943
|
path: string;
|
|
@@ -11034,7 +11034,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11034
11034
|
sellerAddresses: {
|
|
11035
11035
|
list: (type?: AddressType) => Promise<{
|
|
11036
11036
|
addressId: string;
|
|
11037
|
-
type: "
|
|
11037
|
+
type: "SHIPPING" | "RETURN";
|
|
11038
11038
|
name: string;
|
|
11039
11039
|
isDefault: boolean;
|
|
11040
11040
|
contactName: string;
|
|
@@ -11087,7 +11087,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11087
11087
|
}[];
|
|
11088
11088
|
templateId: string;
|
|
11089
11089
|
sourceMode: "CUSTOM" | "MANAGED";
|
|
11090
|
-
status: "
|
|
11090
|
+
status: "SUSPENDED" | "CLOSED" | "ACTIVE";
|
|
11091
11091
|
visibility: "COMING_SOON" | "PUBLIC";
|
|
11092
11092
|
publishedVersion: {
|
|
11093
11093
|
versionId: string;
|
|
@@ -11105,7 +11105,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11105
11105
|
createdVia?: string | null | undefined;
|
|
11106
11106
|
} | null;
|
|
11107
11107
|
provisioning: {
|
|
11108
|
-
status: "
|
|
11108
|
+
status: "PENDING" | "FAILED" | "SYNCED";
|
|
11109
11109
|
lastErrorCode: string | null;
|
|
11110
11110
|
syncedAt: string | null;
|
|
11111
11111
|
};
|
|
@@ -11129,7 +11129,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11129
11129
|
}>;
|
|
11130
11130
|
/**
|
|
11131
11131
|
* `POST /v1/storefront/site` (201) — 템플릿으로 사이트를 만들고 v1을 발행한다. 공개 상태는 오픈 준비 중이다.
|
|
11132
|
-
* 사이트를 만드는 유일한 경로다(
|
|
11132
|
+
* 사이트를 만드는 유일한 경로다(상점을 만들어도 사이트는 생기지 않는다). 템플릿은 여기서만 고른다
|
|
11133
11133
|
*/
|
|
11134
11134
|
create: (body: CreateStorefrontSiteRequest) => Promise<{
|
|
11135
11135
|
siteId: string;
|
|
@@ -11145,7 +11145,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11145
11145
|
}[];
|
|
11146
11146
|
templateId: string;
|
|
11147
11147
|
sourceMode: "CUSTOM" | "MANAGED";
|
|
11148
|
-
status: "
|
|
11148
|
+
status: "SUSPENDED" | "CLOSED" | "ACTIVE";
|
|
11149
11149
|
visibility: "COMING_SOON" | "PUBLIC";
|
|
11150
11150
|
publishedVersion: {
|
|
11151
11151
|
versionId: string;
|
|
@@ -11163,7 +11163,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11163
11163
|
createdVia?: string | null | undefined;
|
|
11164
11164
|
} | null;
|
|
11165
11165
|
provisioning: {
|
|
11166
|
-
status: "
|
|
11166
|
+
status: "PENDING" | "FAILED" | "SYNCED";
|
|
11167
11167
|
lastErrorCode: string | null;
|
|
11168
11168
|
syncedAt: string | null;
|
|
11169
11169
|
};
|
|
@@ -11181,13 +11181,13 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11181
11181
|
/** `GET /v1/storefront/site/deployment` — 배포 진행(단계·기록). 만든 뒤 반영이 끝날 때까지 폴링한다 */
|
|
11182
11182
|
getDeployment: () => Promise<{
|
|
11183
11183
|
siteId: string;
|
|
11184
|
-
status: "
|
|
11184
|
+
status: "FAILED" | "SUCCEEDED" | "IN_PROGRESS";
|
|
11185
11185
|
url: string;
|
|
11186
11186
|
startedAt: string;
|
|
11187
11187
|
finishedAt: string | null;
|
|
11188
11188
|
steps: {
|
|
11189
11189
|
key: "SITE" | "UPLOAD" | "PUBLISH";
|
|
11190
|
-
status: "
|
|
11190
|
+
status: "PENDING" | "FAILED" | "RUNNING" | "DONE";
|
|
11191
11191
|
finishedAt: string | null;
|
|
11192
11192
|
}[];
|
|
11193
11193
|
log: {
|
|
@@ -11203,13 +11203,13 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11203
11203
|
/** `POST /v1/storefront/site/deployment/retry` (202) — 밀린 반영을 곧바로 다시 시도한다. 이미 반영됐으면 그대로다 */
|
|
11204
11204
|
retryDeployment: () => Promise<{
|
|
11205
11205
|
siteId: string;
|
|
11206
|
-
status: "
|
|
11206
|
+
status: "FAILED" | "SUCCEEDED" | "IN_PROGRESS";
|
|
11207
11207
|
url: string;
|
|
11208
11208
|
startedAt: string;
|
|
11209
11209
|
finishedAt: string | null;
|
|
11210
11210
|
steps: {
|
|
11211
11211
|
key: "SITE" | "UPLOAD" | "PUBLISH";
|
|
11212
|
-
status: "
|
|
11212
|
+
status: "PENDING" | "FAILED" | "RUNNING" | "DONE";
|
|
11213
11213
|
finishedAt: string | null;
|
|
11214
11214
|
}[];
|
|
11215
11215
|
log: {
|
|
@@ -11241,7 +11241,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11241
11241
|
}[];
|
|
11242
11242
|
templateId: string;
|
|
11243
11243
|
sourceMode: "CUSTOM" | "MANAGED";
|
|
11244
|
-
status: "
|
|
11244
|
+
status: "SUSPENDED" | "CLOSED" | "ACTIVE";
|
|
11245
11245
|
visibility: "COMING_SOON" | "PUBLIC";
|
|
11246
11246
|
publishedVersion: {
|
|
11247
11247
|
versionId: string;
|
|
@@ -11259,7 +11259,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11259
11259
|
createdVia?: string | null | undefined;
|
|
11260
11260
|
} | null;
|
|
11261
11261
|
provisioning: {
|
|
11262
|
-
status: "
|
|
11262
|
+
status: "PENDING" | "FAILED" | "SYNCED";
|
|
11263
11263
|
lastErrorCode: string | null;
|
|
11264
11264
|
syncedAt: string | null;
|
|
11265
11265
|
};
|
|
@@ -11305,7 +11305,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11305
11305
|
}[];
|
|
11306
11306
|
templateId: string;
|
|
11307
11307
|
sourceMode: "CUSTOM" | "MANAGED";
|
|
11308
|
-
status: "
|
|
11308
|
+
status: "SUSPENDED" | "CLOSED" | "ACTIVE";
|
|
11309
11309
|
visibility: "COMING_SOON" | "PUBLIC";
|
|
11310
11310
|
publishedVersion: {
|
|
11311
11311
|
versionId: string;
|
|
@@ -11323,7 +11323,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11323
11323
|
createdVia?: string | null | undefined;
|
|
11324
11324
|
} | null;
|
|
11325
11325
|
provisioning: {
|
|
11326
|
-
status: "
|
|
11326
|
+
status: "PENDING" | "FAILED" | "SYNCED";
|
|
11327
11327
|
lastErrorCode: string | null;
|
|
11328
11328
|
syncedAt: string | null;
|
|
11329
11329
|
};
|
|
@@ -11353,7 +11353,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11353
11353
|
}[];
|
|
11354
11354
|
templateId: string;
|
|
11355
11355
|
sourceMode: "CUSTOM" | "MANAGED";
|
|
11356
|
-
status: "
|
|
11356
|
+
status: "SUSPENDED" | "CLOSED" | "ACTIVE";
|
|
11357
11357
|
visibility: "COMING_SOON" | "PUBLIC";
|
|
11358
11358
|
publishedVersion: {
|
|
11359
11359
|
versionId: string;
|
|
@@ -11371,7 +11371,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11371
11371
|
createdVia?: string | null | undefined;
|
|
11372
11372
|
} | null;
|
|
11373
11373
|
provisioning: {
|
|
11374
|
-
status: "
|
|
11374
|
+
status: "PENDING" | "FAILED" | "SYNCED";
|
|
11375
11375
|
lastErrorCode: string | null;
|
|
11376
11376
|
syncedAt: string | null;
|
|
11377
11377
|
};
|
|
@@ -11401,7 +11401,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11401
11401
|
}[];
|
|
11402
11402
|
templateId: string;
|
|
11403
11403
|
sourceMode: "CUSTOM" | "MANAGED";
|
|
11404
|
-
status: "
|
|
11404
|
+
status: "SUSPENDED" | "CLOSED" | "ACTIVE";
|
|
11405
11405
|
visibility: "COMING_SOON" | "PUBLIC";
|
|
11406
11406
|
publishedVersion: {
|
|
11407
11407
|
versionId: string;
|
|
@@ -11419,7 +11419,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11419
11419
|
createdVia?: string | null | undefined;
|
|
11420
11420
|
} | null;
|
|
11421
11421
|
provisioning: {
|
|
11422
|
-
status: "
|
|
11422
|
+
status: "PENDING" | "FAILED" | "SYNCED";
|
|
11423
11423
|
lastErrorCode: string | null;
|
|
11424
11424
|
syncedAt: string | null;
|
|
11425
11425
|
};
|
|
@@ -11449,7 +11449,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11449
11449
|
}[];
|
|
11450
11450
|
templateId: string;
|
|
11451
11451
|
sourceMode: "CUSTOM" | "MANAGED";
|
|
11452
|
-
status: "
|
|
11452
|
+
status: "SUSPENDED" | "CLOSED" | "ACTIVE";
|
|
11453
11453
|
visibility: "COMING_SOON" | "PUBLIC";
|
|
11454
11454
|
publishedVersion: {
|
|
11455
11455
|
versionId: string;
|
|
@@ -11467,7 +11467,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11467
11467
|
createdVia?: string | null | undefined;
|
|
11468
11468
|
} | null;
|
|
11469
11469
|
provisioning: {
|
|
11470
|
-
status: "
|
|
11470
|
+
status: "PENDING" | "FAILED" | "SYNCED";
|
|
11471
11471
|
lastErrorCode: string | null;
|
|
11472
11472
|
syncedAt: string | null;
|
|
11473
11473
|
};
|
|
@@ -11484,7 +11484,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11484
11484
|
}>;
|
|
11485
11485
|
/**
|
|
11486
11486
|
* `POST /v1/storefront/site/preview-link` — 오픈 준비 중인 사이트를 구성원이 볼 수 있는 5분짜리 링크.
|
|
11487
|
-
*
|
|
11487
|
+
* 상점 플랫폼에서 로그인한 OWNER·ADMIN만 받는다
|
|
11488
11488
|
*/
|
|
11489
11489
|
createPreviewLink: (body?: CreateStorefrontPreviewLinkRequest) => Promise<{
|
|
11490
11490
|
url: string;
|
|
@@ -11507,7 +11507,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11507
11507
|
value: string;
|
|
11508
11508
|
purpose: "ROUTING" | "OWNERSHIP";
|
|
11509
11509
|
}[];
|
|
11510
|
-
certificateStatus: "ACTIVE" | "
|
|
11510
|
+
certificateStatus: "ACTIVE" | "PENDING" | "FAILED" | null;
|
|
11511
11511
|
failureCode: string | null;
|
|
11512
11512
|
verifiedAt: string | null;
|
|
11513
11513
|
activatedAt: string | null;
|
|
@@ -11531,7 +11531,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11531
11531
|
value: string;
|
|
11532
11532
|
purpose: "ROUTING" | "OWNERSHIP";
|
|
11533
11533
|
}[];
|
|
11534
|
-
certificateStatus: "ACTIVE" | "
|
|
11534
|
+
certificateStatus: "ACTIVE" | "PENDING" | "FAILED" | null;
|
|
11535
11535
|
failureCode: string | null;
|
|
11536
11536
|
verifiedAt: string | null;
|
|
11537
11537
|
activatedAt: string | null;
|
|
@@ -11551,7 +11551,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11551
11551
|
value: string;
|
|
11552
11552
|
purpose: "ROUTING" | "OWNERSHIP";
|
|
11553
11553
|
}[];
|
|
11554
|
-
certificateStatus: "ACTIVE" | "
|
|
11554
|
+
certificateStatus: "ACTIVE" | "PENDING" | "FAILED" | null;
|
|
11555
11555
|
failureCode: string | null;
|
|
11556
11556
|
verifiedAt: string | null;
|
|
11557
11557
|
activatedAt: string | null;
|
|
@@ -11575,7 +11575,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11575
11575
|
value: string;
|
|
11576
11576
|
purpose: "ROUTING" | "OWNERSHIP";
|
|
11577
11577
|
}[];
|
|
11578
|
-
certificateStatus: "ACTIVE" | "
|
|
11578
|
+
certificateStatus: "ACTIVE" | "PENDING" | "FAILED" | null;
|
|
11579
11579
|
failureCode: string | null;
|
|
11580
11580
|
verifiedAt: string | null;
|
|
11581
11581
|
activatedAt: string | null;
|
|
@@ -11600,7 +11600,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11600
11600
|
}[];
|
|
11601
11601
|
templateId: string;
|
|
11602
11602
|
sourceMode: "CUSTOM" | "MANAGED";
|
|
11603
|
-
status: "
|
|
11603
|
+
status: "SUSPENDED" | "CLOSED" | "ACTIVE";
|
|
11604
11604
|
visibility: "COMING_SOON" | "PUBLIC";
|
|
11605
11605
|
publishedVersion: {
|
|
11606
11606
|
versionId: string;
|
|
@@ -11618,7 +11618,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11618
11618
|
createdVia?: string | null | undefined;
|
|
11619
11619
|
} | null;
|
|
11620
11620
|
provisioning: {
|
|
11621
|
-
status: "
|
|
11621
|
+
status: "PENDING" | "FAILED" | "SYNCED";
|
|
11622
11622
|
lastErrorCode: string | null;
|
|
11623
11623
|
syncedAt: string | null;
|
|
11624
11624
|
};
|
|
@@ -11713,7 +11713,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11713
11713
|
}>;
|
|
11714
11714
|
/**
|
|
11715
11715
|
* `POST /v1/storefront/site/editing/preview-link` — 편집 미리보기(dev 서버) 5분짜리 링크.
|
|
11716
|
-
*
|
|
11716
|
+
* 상점 플랫폼에서 로그인한 OWNER·ADMIN만 받는다(에이전트 불가)
|
|
11717
11717
|
*/
|
|
11718
11718
|
createEditPreviewLink: (body?: CreateStorefrontEditPreviewLinkRequest) => Promise<{
|
|
11719
11719
|
url: string;
|
|
@@ -11778,7 +11778,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11778
11778
|
runCheck: (body: RunStorefrontCheckRequest) => Promise<{
|
|
11779
11779
|
checkId: string;
|
|
11780
11780
|
check: string;
|
|
11781
|
-
status: "
|
|
11781
|
+
status: "FAILED" | "UNKNOWN" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
|
|
11782
11782
|
exitCode: number | null;
|
|
11783
11783
|
durationMs: number | null;
|
|
11784
11784
|
outputTail: string | null;
|
|
@@ -11792,7 +11792,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11792
11792
|
getCheck: (checkId: string) => Promise<{
|
|
11793
11793
|
checkId: string;
|
|
11794
11794
|
check: string;
|
|
11795
|
-
status: "
|
|
11795
|
+
status: "FAILED" | "UNKNOWN" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
|
|
11796
11796
|
exitCode: number | null;
|
|
11797
11797
|
durationMs: number | null;
|
|
11798
11798
|
outputTail: string | null;
|
|
@@ -11859,7 +11859,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11859
11859
|
buildId: string;
|
|
11860
11860
|
versionId: string;
|
|
11861
11861
|
versionNumber: number;
|
|
11862
|
-
status: "
|
|
11862
|
+
status: "FAILED" | "SUCCEEDED" | "RUNNING" | "QUEUED" | "TIMED_OUT";
|
|
11863
11863
|
failureStage: string | null;
|
|
11864
11864
|
errorCode: string | null;
|
|
11865
11865
|
logTail: string | null;
|
|
@@ -11940,7 +11940,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11940
11940
|
buildId: string;
|
|
11941
11941
|
versionId: string;
|
|
11942
11942
|
versionNumber: number;
|
|
11943
|
-
status: "
|
|
11943
|
+
status: "FAILED" | "SUCCEEDED" | "RUNNING" | "QUEUED" | "TIMED_OUT";
|
|
11944
11944
|
failureStage: string | null;
|
|
11945
11945
|
errorCode: string | null;
|
|
11946
11946
|
logTail: string | null;
|
|
@@ -12018,7 +12018,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12018
12018
|
buildId: string;
|
|
12019
12019
|
versionId: string;
|
|
12020
12020
|
versionNumber: number;
|
|
12021
|
-
status: "
|
|
12021
|
+
status: "FAILED" | "SUCCEEDED" | "RUNNING" | "QUEUED" | "TIMED_OUT";
|
|
12022
12022
|
failureStage: string | null;
|
|
12023
12023
|
errorCode: string | null;
|
|
12024
12024
|
logTail: string | null;
|
|
@@ -12156,7 +12156,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12156
12156
|
subscription: {
|
|
12157
12157
|
/**
|
|
12158
12158
|
* `GET /v1/store/subscription` — 스코프 `store:r`. 현재 요금제·상태·사용량 기간·한도·이번 기간 사용량.
|
|
12159
|
-
* 결제 수단·청구 금액은 싣지 않는다. 요금제 변경은
|
|
12159
|
+
* 결제 수단·청구 금액은 싣지 않는다. 요금제 변경은 상점 플랫폼에서만 한다
|
|
12160
12160
|
*/
|
|
12161
12161
|
get: () => Promise<{
|
|
12162
12162
|
plan: {
|
|
@@ -12269,7 +12269,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12269
12269
|
name: string;
|
|
12270
12270
|
storeCode: string;
|
|
12271
12271
|
storefrontUrl: string;
|
|
12272
|
-
status: "
|
|
12272
|
+
status: "SUSPENDED" | "CLOSED" | "ACTIVE";
|
|
12273
12273
|
logoUrl: string | null;
|
|
12274
12274
|
businessNumber: string | null;
|
|
12275
12275
|
customerCenterPhone: string | null;
|
|
@@ -12310,7 +12310,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12310
12310
|
name: string;
|
|
12311
12311
|
storeCode: string;
|
|
12312
12312
|
storefrontUrl: string;
|
|
12313
|
-
status: "
|
|
12313
|
+
status: "SUSPENDED" | "CLOSED" | "ACTIVE";
|
|
12314
12314
|
logoUrl: string | null;
|
|
12315
12315
|
businessNumber: string | null;
|
|
12316
12316
|
customerCenterPhone: string | null;
|
|
@@ -12346,7 +12346,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12346
12346
|
userId: string;
|
|
12347
12347
|
name: string;
|
|
12348
12348
|
email: string;
|
|
12349
|
-
role: "
|
|
12349
|
+
role: "ADMIN" | "STAFF" | "OWNER";
|
|
12350
12350
|
joinedAt: string;
|
|
12351
12351
|
lastActiveAt: string | null;
|
|
12352
12352
|
}[]>;
|
|
@@ -12375,7 +12375,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12375
12375
|
}[]>;
|
|
12376
12376
|
/**
|
|
12377
12377
|
* `POST /v1/store/invitations` (201) — 스코프 `member:rw`. 초대 메일을 보낸다. 발송 결과는 응답의
|
|
12378
|
-
* `deliveryStatus`다(발송이 실패해도 초대는 만들어진다).
|
|
12378
|
+
* `deliveryStatus`다(발송이 실패해도 초대는 만들어진다). 상점·초대한 사람·받는 주소별 발송 한도가 있다(429, `details.limit`).
|
|
12379
12379
|
*/
|
|
12380
12380
|
invite: (body: InviteMemberRequest) => Promise<{
|
|
12381
12381
|
invitationId: string;
|
|
@@ -12628,7 +12628,7 @@ export interface PricingInput {
|
|
|
12628
12628
|
coupons: readonly PricingCoupon[];
|
|
12629
12629
|
/** 배송비 견적. 없으면 배송비 0으로 계산하고 배송비 쿠폰은 할인할 금액이 없다 */
|
|
12630
12630
|
delivery?: PricingDelivery | null;
|
|
12631
|
-
/** 이
|
|
12631
|
+
/** 이 상점에서 결제 완료 주문이 없는 회원인가 */
|
|
12632
12632
|
firstOrder: boolean;
|
|
12633
12633
|
/** 회원 주문인가 */
|
|
12634
12634
|
isMember: boolean;
|
|
@@ -12750,7 +12750,7 @@ export interface CouponSettlementInput {
|
|
|
12750
12750
|
coupons: readonly AppliedCouponSnapshot[];
|
|
12751
12751
|
lines: readonly CouponSettlementLine[];
|
|
12752
12752
|
settlements: Readonly<Record<string, Partial<CouponSettlementState> | undefined>>;
|
|
12753
|
-
/**
|
|
12753
|
+
/** 상점 환불 정책 `couponShortfallCharge` */
|
|
12754
12754
|
shortfallCharge: boolean;
|
|
12755
12755
|
/** 판매자 귀책(직권취소, 불량·오배송 반품) — 미달분을 청구하지 않는다 */
|
|
12756
12756
|
sellerFault: boolean;
|
|
@@ -12816,7 +12816,7 @@ export declare function proratedPaidRefundBase(item: {
|
|
|
12816
12816
|
}, settledQuantity: number, cancelQuantity: number): number;
|
|
12817
12817
|
//#endregion
|
|
12818
12818
|
//#region src/schemas/refund-policy.d.ts
|
|
12819
|
-
/** 유효 환불 정책 —
|
|
12819
|
+
/** 유효 환불 정책 — 상점 기본 + 상품별 덮어쓰기를 합친 결과 */
|
|
12820
12820
|
export declare const refundPolicySchema: z.ZodObject<{
|
|
12821
12821
|
preShipmentDeliveryFeeRefund: z.ZodBoolean;
|
|
12822
12822
|
returnDeliveryFee: z.ZodNumber;
|
|
@@ -12827,14 +12827,14 @@ export declare const refundPolicySchema: z.ZodObject<{
|
|
|
12827
12827
|
}, z.core.$strip>;
|
|
12828
12828
|
export type RefundPolicy = z.infer<typeof refundPolicySchema>;
|
|
12829
12829
|
/**
|
|
12830
|
-
*
|
|
12830
|
+
* 상점이 정하지 않았을 때 서버가 쓰는 값.
|
|
12831
12831
|
*
|
|
12832
12832
|
* `as const`가 아니라 `RefundPolicy`로 타입을 좁힌다 — 리터럴 타입이면 `Partial<typeof …>`로 일부만 바꿀 때
|
|
12833
12833
|
* `true` 자리에 `false`를 넣을 수 없다.
|
|
12834
12834
|
*/
|
|
12835
12835
|
export declare const REFUND_POLICY_DEFAULTS: RefundPolicy;
|
|
12836
12836
|
/**
|
|
12837
|
-
* 부분 정책 —
|
|
12837
|
+
* 부분 정책 — 상점 설정 요청과 상품별 덮어쓰기가 쓴다. 준 항목만 바뀐다.
|
|
12838
12838
|
*
|
|
12839
12839
|
* `strictObject`라 모르는 키는 400이다. 오타(`returnFee` 등)를 조용히 무시하면 셀러는 저장됐다고
|
|
12840
12840
|
* 믿는데 정책은 기본값으로 남는다.
|
|
@@ -12850,7 +12850,7 @@ export declare const refundPolicyPatchSchema: z.ZodObject<{
|
|
|
12850
12850
|
export type RefundPolicyPatch = z.infer<typeof refundPolicyPatchSchema>;
|
|
12851
12851
|
/**
|
|
12852
12852
|
* 상품별 덮어쓰기 — 쿠폰 조건 미달 차감(`couponShortfallCharge`)은 주문 단위 규칙이라 상품이 정하지 않는다.
|
|
12853
|
-
*
|
|
12853
|
+
* 상점 정책만 읽는다(이슈 #47).
|
|
12854
12854
|
*/
|
|
12855
12855
|
export declare const productRefundPolicyPatchSchema: z.ZodObject<{
|
|
12856
12856
|
preShipmentDeliveryFeeRefund: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -12861,11 +12861,11 @@ export declare const productRefundPolicyPatchSchema: z.ZodObject<{
|
|
|
12861
12861
|
}, z.core.$strict>;
|
|
12862
12862
|
/** 정책 해석에 쓰는 상품 값 — 상품별 덮어쓰기 */
|
|
12863
12863
|
export interface RefundPolicyProductInput {
|
|
12864
|
-
/** 상품별 덮어쓰기. 없으면
|
|
12864
|
+
/** 상품별 덮어쓰기. 없으면 상점 기본을 그대로 쓴다 */
|
|
12865
12865
|
refundPolicy?: RefundPolicyPatch | null;
|
|
12866
12866
|
}
|
|
12867
12867
|
/**
|
|
12868
|
-
* 유효 정책 해석 — 상품별 덮어쓰기 →
|
|
12868
|
+
* 유효 정책 해석 — 상품별 덮어쓰기 → 상점 기본 → `REFUND_POLICY_DEFAULTS` 순이다.
|
|
12869
12869
|
*
|
|
12870
12870
|
* 반품·교환 배송비의 원천은 정책 하나다(이슈 #57 결정 3). 상품의 레거시 반품비·교환비 필드와의 연결은 없앴고,
|
|
12871
12871
|
* 레거시 값은 마이그레이션이 상품별 정책으로 옮겼다.
|
|
@@ -12874,9 +12874,9 @@ export declare function resolveRefundPolicy(storePolicy?: RefundPolicyPatch | nu
|
|
|
12874
12874
|
/**
|
|
12875
12875
|
* 상품의 **덮어쓰기 자체** — 덮어쓰기가 없으면 null.
|
|
12876
12876
|
*
|
|
12877
|
-
* `resolveRefundPolicy`가 합친 결과로는 "상품이 정한 값"과 "
|
|
12878
|
-
* 관리 API 응답의 `refundPolicy`와
|
|
12879
|
-
*
|
|
12877
|
+
* `resolveRefundPolicy`가 합친 결과로는 "상품이 정한 값"과 "상점 기본을 물려받은 값"을 가를 수 없다.
|
|
12878
|
+
* 관리 API 응답의 `refundPolicy`와 상점 플랫폼 폼의 덮어쓰기 스위치가 이 함수를 원천으로 쓴다 — 가르지 못하면
|
|
12879
|
+
* 상점 기본을 쓰는 상품을 저장할 때 그 순간의 기본값이 상품에 박힌다.
|
|
12880
12880
|
*/
|
|
12881
12881
|
export declare function productRefundPolicyOverride(product?: RefundPolicyProductInput | null): RefundPolicyPatch | null;
|
|
12882
12882
|
/** 반품·교환 배송비 키 — 배송이 없는 상품의 정책에는 두지 않는다 */
|
|
@@ -12898,10 +12898,10 @@ export declare function proratedRefundBase(totalPrice: number, quantity: number,
|
|
|
12898
12898
|
//#endregion
|
|
12899
12899
|
//#region src/schemas/scope.d.ts
|
|
12900
12900
|
/**
|
|
12901
|
-
*
|
|
12901
|
+
* 상점 스코프 카탈로그 (auth-spec §7) — 형식 `{리소스}:{r|rw}`, rw는 r을 함의한다.
|
|
12902
12902
|
*
|
|
12903
12903
|
* 관리 API가 요구하는 스코프와 역할별 자동 부여 스코프의 **단일 원천**이다.
|
|
12904
|
-
* 서버(apps/api)가 이 상수를 그대로 가져다 역할→스코프를 산출하므로,
|
|
12904
|
+
* 서버(apps/api)가 이 상수를 그대로 가져다 역할→스코프를 산출하므로, 상점 플랫폼 권한 매트릭스와
|
|
12905
12905
|
* 서버 인가가 갈라지지 않는다.
|
|
12906
12906
|
*/
|
|
12907
12907
|
export declare const scopeAccessSchema: z.ZodEnum<{
|
|
@@ -12949,7 +12949,7 @@ export declare const storeScopeResourceSchema: z.ZodEnum<{
|
|
|
12949
12949
|
export declare function isStoreScope(scope: string): boolean;
|
|
12950
12950
|
/**
|
|
12951
12951
|
* 역할별 자동 부여 스코프 (auth-spec §7).
|
|
12952
|
-
* 계정 토큰으로
|
|
12952
|
+
* 계정 토큰으로 상점을 호출할 때의 스코프는 그 상점에서의 역할로 이 표에서 결정된다.
|
|
12953
12953
|
*/
|
|
12954
12954
|
export declare const STORE_ROLE_SCOPES: {
|
|
12955
12955
|
readonly OWNER: readonly ["product:rw", "category:rw", "order:rw", "claim:rw", "inquiry:rw", "review:rw", "settlement:r", "analytics:r", "webhook:rw", "store:rw", "member:rw", "customer:rw", "audit:r", "promotion:rw", "storefront:rw"];
|
|
@@ -12958,7 +12958,7 @@ export declare const STORE_ROLE_SCOPES: {
|
|
|
12958
12958
|
};
|
|
12959
12959
|
//#endregion
|
|
12960
12960
|
//#region src/schemas/shipping-policy.d.ts
|
|
12961
|
-
/** 유효 배송비 정책 —
|
|
12961
|
+
/** 유효 배송비 정책 — 상점이 정하지 않은 항목은 `SHIPPING_POLICY_DEFAULTS`로 채운 값이다 */
|
|
12962
12962
|
export declare const shippingPolicySchema: z.ZodObject<{
|
|
12963
12963
|
baseDeliveryFee: z.ZodNumber;
|
|
12964
12964
|
freeThreshold: z.ZodNullable<z.ZodNumber>;
|
|
@@ -12967,7 +12967,7 @@ export declare const shippingPolicySchema: z.ZodObject<{
|
|
|
12967
12967
|
}, z.core.$strip>;
|
|
12968
12968
|
export type ShippingPolicy = z.infer<typeof shippingPolicySchema>;
|
|
12969
12969
|
/**
|
|
12970
|
-
*
|
|
12970
|
+
* 상점이 정하지 않았을 때 서버가 쓰는 값.
|
|
12971
12971
|
*
|
|
12972
12972
|
* `as const`가 아니라 `ShippingPolicy`로 좁힌다 — 리터럴 타입이면 `Partial<typeof …>`로 일부만 바꿀 때
|
|
12973
12973
|
* `null` 자리에 숫자를 넣을 수 없다(`REFUND_POLICY_DEFAULTS`와 같은 이유).
|
|
@@ -12986,7 +12986,7 @@ export declare const shippingPolicyPatchSchema: z.ZodObject<{
|
|
|
12986
12986
|
isolatedSurcharge: z.ZodOptional<z.ZodNumber>;
|
|
12987
12987
|
}, z.core.$strict>;
|
|
12988
12988
|
export type ShippingPolicyPatch = z.infer<typeof shippingPolicyPatchSchema>;
|
|
12989
|
-
/** 유효 정책 해석 —
|
|
12989
|
+
/** 유효 정책 해석 — 상점이 정한 항목 + `SHIPPING_POLICY_DEFAULTS` */
|
|
12990
12990
|
export declare function resolveShippingPolicy(patch?: ShippingPolicyPatch | null): ShippingPolicy;
|
|
12991
12991
|
/** 지역 구분 — 우편번호로 판정한다 */
|
|
12992
12992
|
export declare const remoteAreaSchema: z.ZodEnum<{
|
|
@@ -12996,10 +12996,10 @@ export declare const remoteAreaSchema: z.ZodEnum<{
|
|
|
12996
12996
|
}>;
|
|
12997
12997
|
export type RemoteArea = z.infer<typeof remoteAreaSchema>;
|
|
12998
12998
|
/**
|
|
12999
|
-
* 제주·도서산간 우편번호 범위 — **코드 상수다.** 금액은
|
|
12999
|
+
* 제주·도서산간 우편번호 범위 — **코드 상수다.** 금액은 상점이 정하고 범위는 플랫폼이 고정한다.
|
|
13000
13000
|
*
|
|
13001
13001
|
* 국내 택배사가 공표하는 제주·도서산간 할증 구간을 5자리 우편번호 범위로 옮긴 표다. 셀러마다
|
|
13002
|
-
* 범위가 다르면 같은 주소에 다른 금액이 나가고 CS가 셀러 수만큼 갈라진다.
|
|
13002
|
+
* 범위가 다르면 같은 주소에 다른 금액이 나가고 CS가 셀러 수만큼 갈라진다. 상점별 범위 편집은
|
|
13003
13003
|
* 후속 과제이고, 지금은 이 표가 유일한 원천이다.
|
|
13004
13004
|
*
|
|
13005
13005
|
* ## 근거
|
|
@@ -13038,7 +13038,7 @@ export type RemoteArea = z.infer<typeof remoteAreaSchema>;
|
|
|
13038
13038
|
* 도로명주소·건물관리번호 단위 판정은 후속 과제다.
|
|
13039
13039
|
*
|
|
13040
13040
|
* 범위는 **닫힌 구간**(`from` ≤ zip ≤ `to`)이고 겹치지 않는다. 앞에서부터 처음 맞는 항목을 쓴다.
|
|
13041
|
-
* 순서는
|
|
13041
|
+
* 순서는 상점 플랫폼 「추가 배송비 지역」 표의 행 순서이기도 하다(`remoteAreaGroups`). 제주를 먼저 두고
|
|
13042
13042
|
* 도서산간은 우편번호 오름차순으로 둔다.
|
|
13043
13043
|
*/
|
|
13044
13044
|
export declare const REMOTE_AREA_ZIP_RANGES: ReadonlyArray<{
|
|
@@ -13063,7 +13063,7 @@ export interface DeliveryBundleProduct {
|
|
|
13063
13063
|
deliveryType: DeliveryType;
|
|
13064
13064
|
deliveryFee: number;
|
|
13065
13065
|
conditionalFreeAmount: number | null;
|
|
13066
|
-
/** 출고지 주소 id(`seller_addresses`). null이면
|
|
13066
|
+
/** 출고지 주소 id(`seller_addresses`). null이면 상점 기본 출고지를 쓰는 상품끼리 한 묶음이다 */
|
|
13067
13067
|
shippingAddressId?: string | null;
|
|
13068
13068
|
/**
|
|
13069
13069
|
* 상품 유형 (이슈 #48). 생략·null이면 배송 상품이다. 배송이 필요 없는 유형은 묶음을 만들지 않는다.
|
|
@@ -13097,7 +13097,7 @@ export interface DeliveryFeeLine {
|
|
|
13097
13097
|
* 기본 배송비를 면제한 근거 — 면제하지 않았으면 null이다.
|
|
13098
13098
|
*
|
|
13099
13099
|
* 환불 정산이 근거를 구분해야 한다. 조건부 무료 기준 미달 차감은 **상품별 조건부 무료(`CONDITIONAL`)로
|
|
13100
|
-
* 면제된 묶음만** 대상이다.
|
|
13100
|
+
* 면제된 묶음만** 대상이다. 상점 전체 무료 기준(`STORE_THRESHOLD`)이나 무료배송 상품(`FREE`)은 셀러가
|
|
13101
13101
|
* 배송비를 받지 않기로 한 것이므로, 일부 취소로 기준이 깨져도 구매자에게 배송비를 물리지 않는다.
|
|
13102
13102
|
*
|
|
13103
13103
|
* 세 값이 겹치면 `FREE` → `STORE_THRESHOLD` → `CONDITIONAL` 순으로 센 근거를 남긴다.
|
|
@@ -13111,7 +13111,7 @@ export type DeliveryFeeWaiver = z.infer<typeof deliveryFeeWaiverSchema>;
|
|
|
13111
13111
|
/** 묶음 하나의 견적 */
|
|
13112
13112
|
export interface DeliveryBundleQuote {
|
|
13113
13113
|
bundleKey: string;
|
|
13114
|
-
/** 이 묶음에 든 상품 id — 스냅샷 검증과
|
|
13114
|
+
/** 이 묶음에 든 상품 id — 스냅샷 검증과 상점 플랫폼 안내에 쓴다 */
|
|
13115
13115
|
productIds: string[];
|
|
13116
13116
|
/** 실제 청구한 기본 배송비 — 무료배송·무료 기준 충족이면 0 */
|
|
13117
13117
|
fee: number;
|
|
@@ -13134,10 +13134,10 @@ export interface DeliveryQuote {
|
|
|
13134
13134
|
/** 청구할 배송비 총액 = `baseFee` + `remoteSurcharge` */
|
|
13135
13135
|
deliveryFee: number;
|
|
13136
13136
|
remoteArea: RemoteArea;
|
|
13137
|
-
/**
|
|
13137
|
+
/** 상점 전체 무료 기준(`freeThreshold`) 충족으로 기본 배송비를 면제했는가 */
|
|
13138
13138
|
freeByThreshold: boolean;
|
|
13139
13139
|
/**
|
|
13140
|
-
* 배송이 필요한 줄의 상품 금액 합 —
|
|
13140
|
+
* 배송이 필요한 줄의 상품 금액 합 — 상점 전체 무료 기준의 판정 금액이다(이슈 #48). 비실물 줄은 빠진다.
|
|
13141
13141
|
* 주문 상품 금액 합(`productAmount`)과 다를 수 있다.
|
|
13142
13142
|
*/
|
|
13143
13143
|
shippableAmount: number;
|
|
@@ -13156,7 +13156,7 @@ export interface DeliveryQuoteInput {
|
|
|
13156
13156
|
* 배송비 계산 — **순수 함수다.** 장바구니 요약, 주문서 금액, 결제 시작의 최종 확정,
|
|
13157
13157
|
* 주문 배송비 스냅샷이 모두 이 한 곳을 쓴다.
|
|
13158
13158
|
*
|
|
13159
|
-
* 순서가 규칙이다. 묶음별 조건부 무료를 먼저 보고, 그다음
|
|
13159
|
+
* 순서가 규칙이다. 묶음별 조건부 무료를 먼저 보고, 그다음 상점 전체 무료 기준으로 기본 배송비를
|
|
13160
13160
|
* 한꺼번에 0으로 만들고, 마지막에 지역 추가 배송비를 묶음마다 더한다. 추가 배송비는 무료 기준에
|
|
13161
13161
|
* 걸리지 않는다.
|
|
13162
13162
|
*/
|
|
@@ -13164,8 +13164,8 @@ export declare function quoteDelivery(input: DeliveryQuoteInput): DeliveryQuote;
|
|
|
13164
13164
|
//#endregion
|
|
13165
13165
|
//#region src/schemas/subscription.d.ts
|
|
13166
13166
|
/**
|
|
13167
|
-
* 요금제·구독 — `GET /v1/store/subscription`(스코프 `store:r`). 구독 단위는
|
|
13168
|
-
* 결제 수단·청구 금액은 싣지 않는다. 요금제 변경은
|
|
13167
|
+
* 요금제·구독 — `GET /v1/store/subscription`(스코프 `store:r`). 구독 단위는 상점이다.
|
|
13168
|
+
* 결제 수단·청구 금액은 싣지 않는다. 요금제 변경은 상점 플랫폼에서만 한다.
|
|
13169
13169
|
*/
|
|
13170
13170
|
/** 요금제 코드 — 이름(`plan.name`)이 바뀌어도 코드는 바뀌지 않는다. 값은 추가만 한다 */
|
|
13171
13171
|
export declare const planCodeSchema: z.ZodEnum<{
|
|
@@ -13329,7 +13329,7 @@ export declare const planErrorDetailsSchema: z.ZodObject<{
|
|
|
13329
13329
|
}, z.core.$loose>;
|
|
13330
13330
|
export type PlanErrorDetails = z.infer<typeof planErrorDetailsSchema>;
|
|
13331
13331
|
/**
|
|
13332
|
-
* 요금제 기능 키 값 — 요금제
|
|
13332
|
+
* 요금제 기능 키 값 — 요금제 비교표·상점 플랫폼 요금제 화면이 쓴다. 키는 서버 판정의 기능 키와 같다(추가만 한다). 상위 요금제는 하위 요금제
|
|
13333
13333
|
* 기능을 모두 포함한다
|
|
13334
13334
|
*/
|
|
13335
13335
|
export declare const planEntitlementsSchema: z.ZodObject<{
|
|
@@ -13477,7 +13477,7 @@ export type PublicPlans = z.infer<typeof publicPlansSchema>;
|
|
|
13477
13477
|
* 세는 것이다. 그 숫자가 규칙과 안내를 고치는 근거가 된다.
|
|
13478
13478
|
*
|
|
13479
13479
|
* **보내지 않는 것**: 파일 경로·소스 코드·위반 상세(`detail`)·토큰·사람 식별자. 규칙 id와 개수뿐이다.
|
|
13480
|
-
* 테넌트는 요청 토큰이 정한다(본문에
|
|
13480
|
+
* 테넌트는 요청 토큰이 정한다(본문에 상점 id가 없다). 옵트아웃은 클라이언트의 `SAYREN_TELEMETRY=0`이다.
|
|
13481
13481
|
*
|
|
13482
13482
|
* 알 수 없는 키는 저장하지 않고 버린다(`.strict()`를 쓰지 않는다) — 새 버전 클라이언트가 필드를
|
|
13483
13483
|
* 하나 더 실었다고 계측 전체가 400으로 날아가면 그 버전의 숫자가 통째로 빈다.
|
|
@@ -13645,12 +13645,11 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
|
|
|
13645
13645
|
orderId: z.ZodString;
|
|
13646
13646
|
orderItemId: z.ZodString;
|
|
13647
13647
|
claimType: z.ZodEnum<{
|
|
13648
|
-
CANCEL: "CANCEL";
|
|
13649
13648
|
RETURN: "RETURN";
|
|
13650
13649
|
EXCHANGE: "EXCHANGE";
|
|
13650
|
+
CANCEL: "CANCEL";
|
|
13651
13651
|
}>;
|
|
13652
13652
|
status: z.ZodEnum<{
|
|
13653
|
-
COMPLETED: "COMPLETED";
|
|
13654
13653
|
REJECTED: "REJECTED";
|
|
13655
13654
|
REQUESTED: "REQUESTED";
|
|
13656
13655
|
HELD: "HELD";
|
|
@@ -13658,6 +13657,7 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
|
|
|
13658
13657
|
COLLECTED: "COLLECTED";
|
|
13659
13658
|
REDELIVERING: "REDELIVERING";
|
|
13660
13659
|
APPROVED: "APPROVED";
|
|
13660
|
+
COMPLETED: "COMPLETED";
|
|
13661
13661
|
WITHDRAWN: "WITHDRAWN";
|
|
13662
13662
|
}>;
|
|
13663
13663
|
quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -13835,12 +13835,11 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
|
|
|
13835
13835
|
orderId: z.ZodString;
|
|
13836
13836
|
orderItemId: z.ZodString;
|
|
13837
13837
|
claimType: z.ZodEnum<{
|
|
13838
|
-
CANCEL: "CANCEL";
|
|
13839
13838
|
RETURN: "RETURN";
|
|
13840
13839
|
EXCHANGE: "EXCHANGE";
|
|
13840
|
+
CANCEL: "CANCEL";
|
|
13841
13841
|
}>;
|
|
13842
13842
|
status: z.ZodEnum<{
|
|
13843
|
-
COMPLETED: "COMPLETED";
|
|
13844
13843
|
REJECTED: "REJECTED";
|
|
13845
13844
|
REQUESTED: "REQUESTED";
|
|
13846
13845
|
HELD: "HELD";
|
|
@@ -13848,6 +13847,7 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
|
|
|
13848
13847
|
COLLECTED: "COLLECTED";
|
|
13849
13848
|
REDELIVERING: "REDELIVERING";
|
|
13850
13849
|
APPROVED: "APPROVED";
|
|
13850
|
+
COMPLETED: "COMPLETED";
|
|
13851
13851
|
WITHDRAWN: "WITHDRAWN";
|
|
13852
13852
|
}>;
|
|
13853
13853
|
quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -14045,12 +14045,11 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
14045
14045
|
orderId: z.ZodString;
|
|
14046
14046
|
orderItemId: z.ZodString;
|
|
14047
14047
|
claimType: z.ZodEnum<{
|
|
14048
|
-
CANCEL: "CANCEL";
|
|
14049
14048
|
RETURN: "RETURN";
|
|
14050
14049
|
EXCHANGE: "EXCHANGE";
|
|
14050
|
+
CANCEL: "CANCEL";
|
|
14051
14051
|
}>;
|
|
14052
14052
|
status: z.ZodEnum<{
|
|
14053
|
-
COMPLETED: "COMPLETED";
|
|
14054
14053
|
REJECTED: "REJECTED";
|
|
14055
14054
|
REQUESTED: "REQUESTED";
|
|
14056
14055
|
HELD: "HELD";
|
|
@@ -14058,6 +14057,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
14058
14057
|
COLLECTED: "COLLECTED";
|
|
14059
14058
|
REDELIVERING: "REDELIVERING";
|
|
14060
14059
|
APPROVED: "APPROVED";
|
|
14060
|
+
COMPLETED: "COMPLETED";
|
|
14061
14061
|
WITHDRAWN: "WITHDRAWN";
|
|
14062
14062
|
}>;
|
|
14063
14063
|
quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|