@sayren/store-sdk 0.28.3 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +532 -134
- package/dist/index.mjs +2313 -2112
- package/package.json +1 -1
- package/src/client.ts +58 -0
- package/src/index.ts +1 -0
- package/src/schemas/collection.ts +250 -0
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
|
-
FAILED: "FAILED";
|
|
37
36
|
SUCCEEDED: "SUCCEEDED";
|
|
37
|
+
FAILED: "FAILED";
|
|
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
|
-
FAILED: "FAILED";
|
|
73
72
|
SUCCEEDED: "SUCCEEDED";
|
|
73
|
+
FAILED: "FAILED";
|
|
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
|
-
FAILED: "FAILED";
|
|
106
105
|
SUCCEEDED: "SUCCEEDED";
|
|
106
|
+
FAILED: "FAILED";
|
|
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
|
-
FAILED: "FAILED";
|
|
153
152
|
SUCCEEDED: "SUCCEEDED";
|
|
153
|
+
FAILED: "FAILED";
|
|
154
154
|
PENDING_APPROVAL: "PENDING_APPROVAL";
|
|
155
155
|
DENIED: "DENIED";
|
|
156
156
|
DRY_RUN: "DRY_RUN";
|
|
@@ -166,8 +166,8 @@ export declare const auditLogPageSchema: z.ZodObject<{
|
|
|
166
166
|
export type AuditLogPage = z.infer<typeof auditLogPageSchema>;
|
|
167
167
|
export declare const agentPolicyDecisionSchema: z.ZodEnum<{
|
|
168
168
|
DENIED: "DENIED";
|
|
169
|
-
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
170
169
|
ALLOW: "ALLOW";
|
|
170
|
+
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
171
171
|
}>;
|
|
172
172
|
export type AgentPolicyDecision = z.infer<typeof agentPolicyDecisionSchema>;
|
|
173
173
|
export declare const writePreviewSchema: z.ZodObject<{
|
|
@@ -191,8 +191,8 @@ export declare const writeDryRunResultSchema: z.ZodObject<{
|
|
|
191
191
|
dryRun: z.ZodLiteral<true>;
|
|
192
192
|
decision: z.ZodEnum<{
|
|
193
193
|
DENIED: "DENIED";
|
|
194
|
-
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
195
194
|
ALLOW: "ALLOW";
|
|
195
|
+
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
196
196
|
}>;
|
|
197
197
|
reason: z.ZodNullable<z.ZodString>;
|
|
198
198
|
preview: z.ZodObject<{
|
|
@@ -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
|
-
PENDING: "PENDING";
|
|
218
|
-
FAILED: "FAILED";
|
|
219
216
|
SUCCEEDED: "SUCCEEDED";
|
|
217
|
+
FAILED: "FAILED";
|
|
218
|
+
PENDING: "PENDING";
|
|
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
|
-
PENDING: "PENDING";
|
|
230
|
-
FAILED: "FAILED";
|
|
231
228
|
SUCCEEDED: "SUCCEEDED";
|
|
229
|
+
FAILED: "FAILED";
|
|
230
|
+
PENDING: "PENDING";
|
|
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
|
-
PENDING: "PENDING";
|
|
292
|
-
FAILED: "FAILED";
|
|
293
290
|
SUCCEEDED: "SUCCEEDED";
|
|
291
|
+
FAILED: "FAILED";
|
|
292
|
+
PENDING: "PENDING";
|
|
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
|
-
PENDING: "PENDING";
|
|
311
|
-
FAILED: "FAILED";
|
|
312
309
|
SUCCEEDED: "SUCCEEDED";
|
|
310
|
+
FAILED: "FAILED";
|
|
311
|
+
PENDING: "PENDING";
|
|
313
312
|
EXECUTING: "EXECUTING";
|
|
313
|
+
UNKNOWN: "UNKNOWN";
|
|
314
314
|
REJECTED: "REJECTED";
|
|
315
315
|
EXPIRED: "EXPIRED";
|
|
316
316
|
}>;
|
|
@@ -581,6 +581,7 @@ 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
|
+
UNKNOWN: "UNKNOWN";
|
|
584
585
|
DIRECT: "DIRECT";
|
|
585
586
|
ORGANIC_SEARCH: "ORGANIC_SEARCH";
|
|
586
587
|
SOCIAL: "SOCIAL";
|
|
@@ -588,7 +589,6 @@ export declare const analyticsChannelSchema: z.ZodEnum<{
|
|
|
588
589
|
EMAIL: "EMAIL";
|
|
589
590
|
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<{
|
|
@@ -615,6 +615,7 @@ export declare const analyticsSourcesQuerySchema: z.ZodObject<{
|
|
|
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
|
+
UNKNOWN: "UNKNOWN";
|
|
618
619
|
DIRECT: "DIRECT";
|
|
619
620
|
ORGANIC_SEARCH: "ORGANIC_SEARCH";
|
|
620
621
|
SOCIAL: "SOCIAL";
|
|
@@ -622,7 +623,6 @@ export declare const analyticsSourceRowSchema: z.ZodObject<{
|
|
|
622
623
|
EMAIL: "EMAIL";
|
|
623
624
|
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>;
|
|
@@ -651,6 +651,7 @@ export declare const analyticsSourcesSchema: z.ZodObject<{
|
|
|
651
651
|
}>;
|
|
652
652
|
rows: z.ZodArray<z.ZodObject<{
|
|
653
653
|
channel: z.ZodNullable<z.ZodEnum<{
|
|
654
|
+
UNKNOWN: "UNKNOWN";
|
|
654
655
|
DIRECT: "DIRECT";
|
|
655
656
|
ORGANIC_SEARCH: "ORGANIC_SEARCH";
|
|
656
657
|
SOCIAL: "SOCIAL";
|
|
@@ -658,7 +659,6 @@ export declare const analyticsSourcesSchema: z.ZodObject<{
|
|
|
658
659
|
EMAIL: "EMAIL";
|
|
659
660
|
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>;
|
|
@@ -1264,8 +1264,8 @@ export declare const claimTypeSchema: z.ZodEnum<{
|
|
|
1264
1264
|
}>;
|
|
1265
1265
|
export type ClaimType = z.infer<typeof claimTypeSchema>;
|
|
1266
1266
|
export declare const claimStatusSchema: z.ZodEnum<{
|
|
1267
|
-
COMPLETED: "COMPLETED";
|
|
1268
1267
|
REJECTED: "REJECTED";
|
|
1268
|
+
COMPLETED: "COMPLETED";
|
|
1269
1269
|
REQUESTED: "REQUESTED";
|
|
1270
1270
|
HELD: "HELD";
|
|
1271
1271
|
COLLECTING: "COLLECTING";
|
|
@@ -1308,8 +1308,8 @@ export declare const claimSchema: z.ZodObject<{
|
|
|
1308
1308
|
CANCEL: "CANCEL";
|
|
1309
1309
|
}>;
|
|
1310
1310
|
status: z.ZodEnum<{
|
|
1311
|
-
COMPLETED: "COMPLETED";
|
|
1312
1311
|
REJECTED: "REJECTED";
|
|
1312
|
+
COMPLETED: "COMPLETED";
|
|
1313
1313
|
REQUESTED: "REQUESTED";
|
|
1314
1314
|
HELD: "HELD";
|
|
1315
1315
|
COLLECTING: "COLLECTING";
|
|
@@ -1396,8 +1396,8 @@ export declare const claimDetailSchema: z.ZodObject<{
|
|
|
1396
1396
|
CANCEL: "CANCEL";
|
|
1397
1397
|
}>;
|
|
1398
1398
|
status: z.ZodEnum<{
|
|
1399
|
-
COMPLETED: "COMPLETED";
|
|
1400
1399
|
REJECTED: "REJECTED";
|
|
1400
|
+
COMPLETED: "COMPLETED";
|
|
1401
1401
|
REQUESTED: "REQUESTED";
|
|
1402
1402
|
HELD: "HELD";
|
|
1403
1403
|
COLLECTING: "COLLECTING";
|
|
@@ -1453,8 +1453,8 @@ 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";
|
|
1457
|
+
COMPLETED: "COMPLETED";
|
|
1458
1458
|
REQUESTED: "REQUESTED";
|
|
1459
1459
|
HELD: "HELD";
|
|
1460
1460
|
COLLECTING: "COLLECTING";
|
|
@@ -1503,6 +1503,241 @@ export declare const approveClaimResultSchema: z.ZodObject<{
|
|
|
1503
1503
|
}, z.core.$strip>;
|
|
1504
1504
|
export type ApproveClaimResult = z.infer<typeof approveClaimResultSchema>;
|
|
1505
1505
|
//#endregion
|
|
1506
|
+
//#region src/schemas/collection.d.ts
|
|
1507
|
+
/**
|
|
1508
|
+
* 컬렉션 (이슈 #83) — 상품을 어디에 보여 줄지 정하는 묶음이다. 카테고리는 상품이 무엇인지를 정하고 상품당 하나지만, 컬렉션은
|
|
1509
|
+
* 다대다다. 이벤트·기획전은 기간이 있는 직접 선택 컬렉션이다. 권한은 카테고리와 같다(`category:r`·`category:rw`).
|
|
1510
|
+
*
|
|
1511
|
+
* 유형은 만들 때 정하고 바꿀 수 없다. 지금은 직접 선택(`MANUAL`)만 만들 수 있다. 조건 자동(`AUTOMATIC`)은 다음 단계에서 열리고,
|
|
1512
|
+
* 응답의 `type`은 값이 늘 수 있어 문자열이다.
|
|
1513
|
+
*/
|
|
1514
|
+
/** 상점당 컬렉션 최대 개수 — 넘으면 409 `COLLECTION_LIMIT_EXCEEDED` */
|
|
1515
|
+
export declare const MAX_COLLECTIONS = 200;
|
|
1516
|
+
/** 직접 선택 컬렉션 하나에 담는 상품 최대 개수 — 넘으면 409 `COLLECTION_PRODUCT_LIMIT_EXCEEDED` */
|
|
1517
|
+
export declare const MAX_COLLECTION_PRODUCTS = 1000;
|
|
1518
|
+
/** 상품 뒤에 붙이기(`POST /v1/collections/{id}/products`) 한 번에 보내는 상품 최대 개수 */
|
|
1519
|
+
export declare const MAX_COLLECTION_PRODUCTS_PER_ADD = 500;
|
|
1520
|
+
/** 제목 최대 글자 수 */
|
|
1521
|
+
export declare const MAX_COLLECTION_TITLE = 60;
|
|
1522
|
+
/** 설명 최대 글자 수 */
|
|
1523
|
+
export declare const MAX_COLLECTION_DESCRIPTION = 500;
|
|
1524
|
+
/** 주소(slug) 형식 — 영문 소문자·숫자·하이픈, 첫 글자는 영문 소문자나 숫자, 64자까지 */
|
|
1525
|
+
export declare const COLLECTION_SLUG_PATTERN: RegExp;
|
|
1526
|
+
/** 유형 — `MANUAL`(직접 선택)·`AUTOMATIC`(조건 자동, 아직 만들 수 없다) */
|
|
1527
|
+
export declare const COLLECTION_TYPES: readonly ["MANUAL", "AUTOMATIC"];
|
|
1528
|
+
export type CollectionType = (typeof COLLECTION_TYPES)[number];
|
|
1529
|
+
/**
|
|
1530
|
+
* 상품 정렬 — `MANUAL`은 직접 정한 순서(직접 선택 컬렉션만)다. `BEST_SELLING`(판매량순)은 판매량 집계가 열릴 때 받는다.
|
|
1531
|
+
* 저장 값 전체 목록이고, 쓰기에서 받는 값은 `collectionProductSortRequestSchema`다.
|
|
1532
|
+
*/
|
|
1533
|
+
export declare const COLLECTION_PRODUCT_SORTS: readonly ["MANUAL", "LATEST", "BEST_SELLING", "PRICE_ASC", "PRICE_DESC", "REVIEW_COUNT", "RATING_DESC", "RECOMMEND"];
|
|
1534
|
+
export type CollectionProductSort = (typeof COLLECTION_PRODUCT_SORTS)[number];
|
|
1535
|
+
export declare const collectionProductSortRequestSchema: z.ZodEnum<{
|
|
1536
|
+
PRICE_ASC: "PRICE_ASC";
|
|
1537
|
+
PRICE_DESC: "PRICE_DESC";
|
|
1538
|
+
MANUAL: "MANUAL";
|
|
1539
|
+
LATEST: "LATEST";
|
|
1540
|
+
REVIEW_COUNT: "REVIEW_COUNT";
|
|
1541
|
+
RATING_DESC: "RATING_DESC";
|
|
1542
|
+
RECOMMEND: "RECOMMEND";
|
|
1543
|
+
}>;
|
|
1544
|
+
/** 노출 상태 — 노출 여부와 기간에서 나온 값이다. 숨김이 기간보다 앞선다 */
|
|
1545
|
+
export declare const collectionStateSchema: z.ZodEnum<{
|
|
1546
|
+
ACTIVE: "ACTIVE";
|
|
1547
|
+
ENDED: "ENDED";
|
|
1548
|
+
SCHEDULED: "SCHEDULED";
|
|
1549
|
+
HIDDEN: "HIDDEN";
|
|
1550
|
+
}>;
|
|
1551
|
+
export type CollectionState = z.infer<typeof collectionStateSchema>;
|
|
1552
|
+
/** 노출 상태 판정 — 숨김 → 시작 전(예약) → 종료 → 노출 중. `now`는 판정 시각이다 */
|
|
1553
|
+
export declare function collectionStateOf(collection: {
|
|
1554
|
+
visible: boolean;
|
|
1555
|
+
startsAt: string | null;
|
|
1556
|
+
endsAt: string | null;
|
|
1557
|
+
}, now: Date): CollectionState;
|
|
1558
|
+
export declare const collectionSchema: z.ZodObject<{
|
|
1559
|
+
collectionId: z.ZodString;
|
|
1560
|
+
type: z.ZodString;
|
|
1561
|
+
title: z.ZodString;
|
|
1562
|
+
slug: z.ZodString;
|
|
1563
|
+
description: z.ZodString;
|
|
1564
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
1565
|
+
productSort: z.ZodString;
|
|
1566
|
+
visible: z.ZodBoolean;
|
|
1567
|
+
startsAt: z.ZodNullable<z.ZodString>;
|
|
1568
|
+
endsAt: z.ZodNullable<z.ZodString>;
|
|
1569
|
+
sortOrder: z.ZodNumber;
|
|
1570
|
+
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1571
|
+
metaDescription: z.ZodNullable<z.ZodString>;
|
|
1572
|
+
state: z.ZodEnum<{
|
|
1573
|
+
ACTIVE: "ACTIVE";
|
|
1574
|
+
ENDED: "ENDED";
|
|
1575
|
+
SCHEDULED: "SCHEDULED";
|
|
1576
|
+
HIDDEN: "HIDDEN";
|
|
1577
|
+
}>;
|
|
1578
|
+
productCount: z.ZodNumber;
|
|
1579
|
+
revision: z.ZodNumber;
|
|
1580
|
+
createdAt: z.ZodString;
|
|
1581
|
+
updatedAt: z.ZodString;
|
|
1582
|
+
}, z.core.$strip>;
|
|
1583
|
+
export type Collection = z.infer<typeof collectionSchema>;
|
|
1584
|
+
/**
|
|
1585
|
+
* `POST /v1/collections` — 직접 선택 컬렉션을 만든다. `slug`를 생략하면 `c-{id 뒤 8자}`로 만든다.
|
|
1586
|
+
* `productIds`는 처음 담을 상품과 순서다.
|
|
1587
|
+
*/
|
|
1588
|
+
export declare const collectionCreateRequestSchema: z.ZodObject<{
|
|
1589
|
+
title: z.ZodString;
|
|
1590
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1591
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
1592
|
+
MANUAL: "MANUAL";
|
|
1593
|
+
}>>;
|
|
1594
|
+
description: z.ZodDefault<z.ZodString>;
|
|
1595
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
1596
|
+
productSort: z.ZodDefault<z.ZodEnum<{
|
|
1597
|
+
PRICE_ASC: "PRICE_ASC";
|
|
1598
|
+
PRICE_DESC: "PRICE_DESC";
|
|
1599
|
+
MANUAL: "MANUAL";
|
|
1600
|
+
LATEST: "LATEST";
|
|
1601
|
+
REVIEW_COUNT: "REVIEW_COUNT";
|
|
1602
|
+
RATING_DESC: "RATING_DESC";
|
|
1603
|
+
RECOMMEND: "RECOMMEND";
|
|
1604
|
+
}>>;
|
|
1605
|
+
visible: z.ZodDefault<z.ZodBoolean>;
|
|
1606
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
1607
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
1608
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
1609
|
+
metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1610
|
+
metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1611
|
+
productIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1612
|
+
}, z.core.$strip>;
|
|
1613
|
+
export type CollectionCreateRequest = z.infer<typeof collectionCreateRequestSchema>;
|
|
1614
|
+
export type CollectionCreateRequestInput = z.input<typeof collectionCreateRequestSchema>;
|
|
1615
|
+
/**
|
|
1616
|
+
* `PATCH /v1/collections/{collectionId}` — 준 항목만 바뀐다. `type`을 주면 400 `COLLECTION_TYPE_IMMUTABLE`이다.
|
|
1617
|
+
* `revision`을 주면 그 번호일 때만 바뀌고, 그 사이 다른 수정이 있었으면 409 `COLLECTION_CHANGED`다.
|
|
1618
|
+
*/
|
|
1619
|
+
export declare const collectionPatchRequestSchema: z.ZodObject<{
|
|
1620
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1621
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
1622
|
+
type: z.ZodOptional<z.ZodString>;
|
|
1623
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1624
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
1625
|
+
productSort: z.ZodOptional<z.ZodEnum<{
|
|
1626
|
+
PRICE_ASC: "PRICE_ASC";
|
|
1627
|
+
PRICE_DESC: "PRICE_DESC";
|
|
1628
|
+
MANUAL: "MANUAL";
|
|
1629
|
+
LATEST: "LATEST";
|
|
1630
|
+
REVIEW_COUNT: "REVIEW_COUNT";
|
|
1631
|
+
RATING_DESC: "RATING_DESC";
|
|
1632
|
+
RECOMMEND: "RECOMMEND";
|
|
1633
|
+
}>>;
|
|
1634
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
1635
|
+
startsAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
1636
|
+
endsAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
1637
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
1638
|
+
metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1639
|
+
metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1640
|
+
revision: z.ZodOptional<z.ZodNumber>;
|
|
1641
|
+
}, z.core.$strip>;
|
|
1642
|
+
export type CollectionPatchRequest = z.infer<typeof collectionPatchRequestSchema>;
|
|
1643
|
+
/** `PUT /v1/collections/{collectionId}/products` — 담긴 상품을 통째로 바꾼다(순서 포함) */
|
|
1644
|
+
export declare const collectionProductsReplaceRequestSchema: z.ZodObject<{
|
|
1645
|
+
productIds: z.ZodArray<z.ZodString>;
|
|
1646
|
+
revision: z.ZodOptional<z.ZodNumber>;
|
|
1647
|
+
}, z.core.$strip>;
|
|
1648
|
+
export type CollectionProductsReplaceRequest = z.infer<typeof collectionProductsReplaceRequestSchema>;
|
|
1649
|
+
/** `POST /v1/collections/{collectionId}/products` — 뒤에 붙인다. 이미 담긴 상품은 그 자리에 둔다 */
|
|
1650
|
+
export declare const collectionProductsAddRequestSchema: z.ZodObject<{
|
|
1651
|
+
productIds: z.ZodArray<z.ZodString>;
|
|
1652
|
+
}, z.core.$strip>;
|
|
1653
|
+
export type CollectionProductsAddRequest = z.infer<typeof collectionProductsAddRequestSchema>;
|
|
1654
|
+
/** 컬렉션에 담긴 상품 한 줄 */
|
|
1655
|
+
export declare const collectionProductSchema: z.ZodObject<{
|
|
1656
|
+
productId: z.ZodString;
|
|
1657
|
+
name: z.ZodString;
|
|
1658
|
+
thumbnailUrl: z.ZodNullable<z.ZodString>;
|
|
1659
|
+
status: z.ZodString;
|
|
1660
|
+
salePrice: z.ZodNumber;
|
|
1661
|
+
position: z.ZodNumber;
|
|
1662
|
+
addedAt: z.ZodString;
|
|
1663
|
+
}, z.core.$strip>;
|
|
1664
|
+
export type CollectionProduct = z.infer<typeof collectionProductSchema>;
|
|
1665
|
+
export declare const collectionStateCountsSchema: z.ZodObject<{
|
|
1666
|
+
ALL: z.ZodNumber;
|
|
1667
|
+
ACTIVE: z.ZodNumber;
|
|
1668
|
+
SCHEDULED: z.ZodNumber;
|
|
1669
|
+
ENDED: z.ZodNumber;
|
|
1670
|
+
HIDDEN: z.ZodNumber;
|
|
1671
|
+
}, z.core.$strip>;
|
|
1672
|
+
/** 목록 응답 — 페이지 + 상태별 건수(`q`·`type`·`productId`를 적용하고 `state`는 적용하기 전) */
|
|
1673
|
+
export declare const collectionPageSchema: z.ZodObject<{
|
|
1674
|
+
page: z.ZodNumber;
|
|
1675
|
+
size: z.ZodNumber;
|
|
1676
|
+
totalElements: z.ZodNumber;
|
|
1677
|
+
totalPages: z.ZodNumber;
|
|
1678
|
+
contents: z.ZodArray<z.ZodObject<{
|
|
1679
|
+
collectionId: z.ZodString;
|
|
1680
|
+
type: z.ZodString;
|
|
1681
|
+
title: z.ZodString;
|
|
1682
|
+
slug: z.ZodString;
|
|
1683
|
+
description: z.ZodString;
|
|
1684
|
+
imageUrl: z.ZodNullable<z.ZodString>;
|
|
1685
|
+
productSort: z.ZodString;
|
|
1686
|
+
visible: z.ZodBoolean;
|
|
1687
|
+
startsAt: z.ZodNullable<z.ZodString>;
|
|
1688
|
+
endsAt: z.ZodNullable<z.ZodString>;
|
|
1689
|
+
sortOrder: z.ZodNumber;
|
|
1690
|
+
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1691
|
+
metaDescription: z.ZodNullable<z.ZodString>;
|
|
1692
|
+
state: z.ZodEnum<{
|
|
1693
|
+
ACTIVE: "ACTIVE";
|
|
1694
|
+
ENDED: "ENDED";
|
|
1695
|
+
SCHEDULED: "SCHEDULED";
|
|
1696
|
+
HIDDEN: "HIDDEN";
|
|
1697
|
+
}>;
|
|
1698
|
+
productCount: z.ZodNumber;
|
|
1699
|
+
revision: z.ZodNumber;
|
|
1700
|
+
createdAt: z.ZodString;
|
|
1701
|
+
updatedAt: z.ZodString;
|
|
1702
|
+
}, z.core.$strip>>;
|
|
1703
|
+
stateCounts: z.ZodObject<{
|
|
1704
|
+
ALL: z.ZodNumber;
|
|
1705
|
+
ACTIVE: z.ZodNumber;
|
|
1706
|
+
SCHEDULED: z.ZodNumber;
|
|
1707
|
+
ENDED: z.ZodNumber;
|
|
1708
|
+
HIDDEN: z.ZodNumber;
|
|
1709
|
+
}, z.core.$strip>;
|
|
1710
|
+
}, z.core.$strip>;
|
|
1711
|
+
export type CollectionPage = z.infer<typeof collectionPageSchema>;
|
|
1712
|
+
export interface CollectionListParams extends PageParams {
|
|
1713
|
+
q?: string;
|
|
1714
|
+
type?: CollectionType;
|
|
1715
|
+
state?: CollectionState;
|
|
1716
|
+
productId?: string;
|
|
1717
|
+
}
|
|
1718
|
+
/** `GET /v1/collections` 쿼리 — OpenAPI 문서용 형태(값은 쿼리 문자열) */
|
|
1719
|
+
export declare const collectionListQuerySchema: z.ZodObject<{
|
|
1720
|
+
page: z.ZodOptional<z.ZodString>;
|
|
1721
|
+
size: z.ZodOptional<z.ZodString>;
|
|
1722
|
+
q: z.ZodOptional<z.ZodString>;
|
|
1723
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1724
|
+
MANUAL: "MANUAL";
|
|
1725
|
+
AUTOMATIC: "AUTOMATIC";
|
|
1726
|
+
}>>;
|
|
1727
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
1728
|
+
ACTIVE: "ACTIVE";
|
|
1729
|
+
ENDED: "ENDED";
|
|
1730
|
+
SCHEDULED: "SCHEDULED";
|
|
1731
|
+
HIDDEN: "HIDDEN";
|
|
1732
|
+
}>>;
|
|
1733
|
+
productId: z.ZodOptional<z.ZodString>;
|
|
1734
|
+
}, z.core.$strip>;
|
|
1735
|
+
/** `GET /v1/collections/{collectionId}/products` 쿼리 */
|
|
1736
|
+
export declare const collectionProductListQuerySchema: z.ZodObject<{
|
|
1737
|
+
page: z.ZodOptional<z.ZodString>;
|
|
1738
|
+
size: z.ZodOptional<z.ZodString>;
|
|
1739
|
+
}, z.core.$strip>;
|
|
1740
|
+
//#endregion
|
|
1506
1741
|
//#region src/schemas/coupon.d.ts
|
|
1507
1742
|
/**
|
|
1508
1743
|
* 쿠폰 관리 API 계약 (이슈 #47) — `/v1/coupons/**`, 스코프 `promotion:r|rw`.
|
|
@@ -2270,8 +2505,8 @@ export declare const customerInquiryListQuerySchema: z.ZodObject<{
|
|
|
2270
2505
|
}, z.core.$strip>;
|
|
2271
2506
|
export declare const settlementStatusSchema: z.ZodEnum<{
|
|
2272
2507
|
PAID: "PAID";
|
|
2273
|
-
HELD: "HELD";
|
|
2274
2508
|
SCHEDULED: "SCHEDULED";
|
|
2509
|
+
HELD: "HELD";
|
|
2275
2510
|
}>;
|
|
2276
2511
|
export type SettlementStatus = z.infer<typeof settlementStatusSchema>;
|
|
2277
2512
|
export declare const settlementSummarySchema: z.ZodObject<{
|
|
@@ -2280,8 +2515,8 @@ export declare const settlementSummarySchema: z.ZodObject<{
|
|
|
2280
2515
|
payoutDate: z.ZodNullable<z.ZodString>;
|
|
2281
2516
|
status: z.ZodEnum<{
|
|
2282
2517
|
PAID: "PAID";
|
|
2283
|
-
HELD: "HELD";
|
|
2284
2518
|
SCHEDULED: "SCHEDULED";
|
|
2519
|
+
HELD: "HELD";
|
|
2285
2520
|
}>;
|
|
2286
2521
|
totalPaymentAmount: z.ZodNumber;
|
|
2287
2522
|
totalCommission: z.ZodNumber;
|
|
@@ -2315,8 +2550,8 @@ export declare const settlementWithDetailsSchema: z.ZodObject<{
|
|
|
2315
2550
|
payoutDate: z.ZodNullable<z.ZodString>;
|
|
2316
2551
|
status: z.ZodEnum<{
|
|
2317
2552
|
PAID: "PAID";
|
|
2318
|
-
HELD: "HELD";
|
|
2319
2553
|
SCHEDULED: "SCHEDULED";
|
|
2554
|
+
HELD: "HELD";
|
|
2320
2555
|
}>;
|
|
2321
2556
|
totalPaymentAmount: z.ZodNumber;
|
|
2322
2557
|
totalCommission: z.ZodNumber;
|
|
@@ -2350,8 +2585,8 @@ export declare const settlementListQuerySchema: z.ZodObject<{
|
|
|
2350
2585
|
to: z.ZodOptional<z.ZodString>;
|
|
2351
2586
|
status: z.ZodOptional<z.ZodEnum<{
|
|
2352
2587
|
PAID: "PAID";
|
|
2353
|
-
HELD: "HELD";
|
|
2354
2588
|
SCHEDULED: "SCHEDULED";
|
|
2589
|
+
HELD: "HELD";
|
|
2355
2590
|
}>>;
|
|
2356
2591
|
}, z.core.$strip>;
|
|
2357
2592
|
/** `GET /v1/settlements/{settlementId}` 쿼리 — `size`는 돌려줄 상세 내역 건수다(`page`는 무시) */
|
|
@@ -2454,10 +2689,10 @@ export declare const webhookSecretRotatedSchema: z.ZodObject<{
|
|
|
2454
2689
|
}, z.core.$strip>;
|
|
2455
2690
|
export type WebhookSecretRotated = z.infer<typeof webhookSecretRotatedSchema>;
|
|
2456
2691
|
export declare const webhookDeliveryStatusSchema: z.ZodEnum<{
|
|
2692
|
+
FAILED: "FAILED";
|
|
2457
2693
|
PENDING: "PENDING";
|
|
2458
2694
|
PENDING_RETRY: "PENDING_RETRY";
|
|
2459
2695
|
SUCCESS: "SUCCESS";
|
|
2460
|
-
FAILED: "FAILED";
|
|
2461
2696
|
}>;
|
|
2462
2697
|
export type WebhookDeliveryStatus = z.infer<typeof webhookDeliveryStatusSchema>;
|
|
2463
2698
|
export declare const webhookDeliveryErrorCodeSchema: z.ZodEnum<{
|
|
@@ -2519,10 +2754,10 @@ export declare const webhookDeliverySchema: z.ZodObject<{
|
|
|
2519
2754
|
}>;
|
|
2520
2755
|
url: z.ZodString;
|
|
2521
2756
|
status: z.ZodEnum<{
|
|
2757
|
+
FAILED: "FAILED";
|
|
2522
2758
|
PENDING: "PENDING";
|
|
2523
2759
|
PENDING_RETRY: "PENDING_RETRY";
|
|
2524
2760
|
SUCCESS: "SUCCESS";
|
|
2525
|
-
FAILED: "FAILED";
|
|
2526
2761
|
}>;
|
|
2527
2762
|
responseStatusCode: z.ZodNullable<z.ZodNumber>;
|
|
2528
2763
|
responseTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
@@ -2572,10 +2807,10 @@ export declare const webhookDeliveryDetailSchema: z.ZodObject<{
|
|
|
2572
2807
|
}>;
|
|
2573
2808
|
url: z.ZodString;
|
|
2574
2809
|
status: z.ZodEnum<{
|
|
2810
|
+
FAILED: "FAILED";
|
|
2575
2811
|
PENDING: "PENDING";
|
|
2576
2812
|
PENDING_RETRY: "PENDING_RETRY";
|
|
2577
2813
|
SUCCESS: "SUCCESS";
|
|
2578
|
-
FAILED: "FAILED";
|
|
2579
2814
|
}>;
|
|
2580
2815
|
responseStatusCode: z.ZodNullable<z.ZodNumber>;
|
|
2581
2816
|
responseTimeMs: z.ZodNullable<z.ZodNumber>;
|
|
@@ -2610,10 +2845,10 @@ export type WebhookDeliveryDetail = z.infer<typeof webhookDeliveryDetailSchema>;
|
|
|
2610
2845
|
/** 전송 기록 조회 쿼리 — `GET /webhooks/{id}/deliveries` */
|
|
2611
2846
|
export declare const webhookDeliveryListQuerySchema: z.ZodObject<{
|
|
2612
2847
|
status: z.ZodOptional<z.ZodEnum<{
|
|
2848
|
+
FAILED: "FAILED";
|
|
2613
2849
|
PENDING: "PENDING";
|
|
2614
2850
|
PENDING_RETRY: "PENDING_RETRY";
|
|
2615
2851
|
SUCCESS: "SUCCESS";
|
|
2616
|
-
FAILED: "FAILED";
|
|
2617
2852
|
}>>;
|
|
2618
2853
|
eventType: z.ZodOptional<z.ZodEnum<{
|
|
2619
2854
|
"ORDER.PAID": "ORDER.PAID";
|
|
@@ -3650,8 +3885,8 @@ export declare const pgEnvironmentSchema: z.ZodEnum<{
|
|
|
3650
3885
|
}>;
|
|
3651
3886
|
export type PgEnvironment = z.infer<typeof pgEnvironmentSchema>;
|
|
3652
3887
|
export declare const pgVerificationResultSchema: z.ZodEnum<{
|
|
3653
|
-
SUCCESS: "SUCCESS";
|
|
3654
3888
|
FAILED: "FAILED";
|
|
3889
|
+
SUCCESS: "SUCCESS";
|
|
3655
3890
|
}>;
|
|
3656
3891
|
export type PgVerificationResult = z.infer<typeof pgVerificationResultSchema>;
|
|
3657
3892
|
/**
|
|
@@ -3800,8 +4035,8 @@ export declare const paymentCredentialSetSchema: z.ZodObject<{
|
|
|
3800
4035
|
}, z.core.$strip>>;
|
|
3801
4036
|
lastVerification: z.ZodNullable<z.ZodObject<{
|
|
3802
4037
|
result: z.ZodEnum<{
|
|
3803
|
-
SUCCESS: "SUCCESS";
|
|
3804
4038
|
FAILED: "FAILED";
|
|
4039
|
+
SUCCESS: "SUCCESS";
|
|
3805
4040
|
}>;
|
|
3806
4041
|
message: z.ZodNullable<z.ZodString>;
|
|
3807
4042
|
checkedAt: z.ZodString;
|
|
@@ -3902,8 +4137,8 @@ export declare const paymentProviderSchema: z.ZodObject<{
|
|
|
3902
4137
|
}, z.core.$strip>>;
|
|
3903
4138
|
lastVerification: z.ZodNullable<z.ZodObject<{
|
|
3904
4139
|
result: z.ZodEnum<{
|
|
3905
|
-
SUCCESS: "SUCCESS";
|
|
3906
4140
|
FAILED: "FAILED";
|
|
4141
|
+
SUCCESS: "SUCCESS";
|
|
3907
4142
|
}>;
|
|
3908
4143
|
message: z.ZodNullable<z.ZodString>;
|
|
3909
4144
|
checkedAt: z.ZodString;
|
|
@@ -3939,8 +4174,8 @@ export declare const paymentProviderSchema: z.ZodObject<{
|
|
|
3939
4174
|
}, z.core.$strip>>;
|
|
3940
4175
|
lastVerification: z.ZodNullable<z.ZodObject<{
|
|
3941
4176
|
result: z.ZodEnum<{
|
|
3942
|
-
SUCCESS: "SUCCESS";
|
|
3943
4177
|
FAILED: "FAILED";
|
|
4178
|
+
SUCCESS: "SUCCESS";
|
|
3944
4179
|
}>;
|
|
3945
4180
|
message: z.ZodNullable<z.ZodString>;
|
|
3946
4181
|
checkedAt: z.ZodString;
|
|
@@ -3975,8 +4210,8 @@ export declare const paymentProviderSchema: z.ZodObject<{
|
|
|
3975
4210
|
}, z.core.$strip>>;
|
|
3976
4211
|
lastVerification: z.ZodNullable<z.ZodObject<{
|
|
3977
4212
|
result: z.ZodEnum<{
|
|
3978
|
-
SUCCESS: "SUCCESS";
|
|
3979
4213
|
FAILED: "FAILED";
|
|
4214
|
+
SUCCESS: "SUCCESS";
|
|
3980
4215
|
}>;
|
|
3981
4216
|
message: z.ZodNullable<z.ZodString>;
|
|
3982
4217
|
checkedAt: z.ZodString;
|
|
@@ -4066,8 +4301,8 @@ export declare const paymentSettingsSchema: z.ZodObject<{
|
|
|
4066
4301
|
}, z.core.$strip>>;
|
|
4067
4302
|
lastVerification: z.ZodNullable<z.ZodObject<{
|
|
4068
4303
|
result: z.ZodEnum<{
|
|
4069
|
-
SUCCESS: "SUCCESS";
|
|
4070
4304
|
FAILED: "FAILED";
|
|
4305
|
+
SUCCESS: "SUCCESS";
|
|
4071
4306
|
}>;
|
|
4072
4307
|
message: z.ZodNullable<z.ZodString>;
|
|
4073
4308
|
checkedAt: z.ZodString;
|
|
@@ -4103,8 +4338,8 @@ export declare const paymentSettingsSchema: z.ZodObject<{
|
|
|
4103
4338
|
}, z.core.$strip>>;
|
|
4104
4339
|
lastVerification: z.ZodNullable<z.ZodObject<{
|
|
4105
4340
|
result: z.ZodEnum<{
|
|
4106
|
-
SUCCESS: "SUCCESS";
|
|
4107
4341
|
FAILED: "FAILED";
|
|
4342
|
+
SUCCESS: "SUCCESS";
|
|
4108
4343
|
}>;
|
|
4109
4344
|
message: z.ZodNullable<z.ZodString>;
|
|
4110
4345
|
checkedAt: z.ZodString;
|
|
@@ -4139,8 +4374,8 @@ export declare const paymentSettingsSchema: z.ZodObject<{
|
|
|
4139
4374
|
}, z.core.$strip>>;
|
|
4140
4375
|
lastVerification: z.ZodNullable<z.ZodObject<{
|
|
4141
4376
|
result: z.ZodEnum<{
|
|
4142
|
-
SUCCESS: "SUCCESS";
|
|
4143
4377
|
FAILED: "FAILED";
|
|
4378
|
+
SUCCESS: "SUCCESS";
|
|
4144
4379
|
}>;
|
|
4145
4380
|
message: z.ZodNullable<z.ZodString>;
|
|
4146
4381
|
checkedAt: z.ZodString;
|
|
@@ -4196,8 +4431,8 @@ export declare const paymentProviderVerificationSchema: z.ZodObject<{
|
|
|
4196
4431
|
LIVE: "LIVE";
|
|
4197
4432
|
}>;
|
|
4198
4433
|
result: z.ZodEnum<{
|
|
4199
|
-
SUCCESS: "SUCCESS";
|
|
4200
4434
|
FAILED: "FAILED";
|
|
4435
|
+
SUCCESS: "SUCCESS";
|
|
4201
4436
|
}>;
|
|
4202
4437
|
message: z.ZodNullable<z.ZodString>;
|
|
4203
4438
|
checkedAt: z.ZodString;
|
|
@@ -4327,8 +4562,8 @@ export type SalesReport = z.infer<typeof salesReportSchema>;
|
|
|
4327
4562
|
* - `FAILED`: 승인되지 않고 끝났다(거절·준비 장애·구매자 취소·만료)
|
|
4328
4563
|
*/
|
|
4329
4564
|
export declare const paymentRecordStatusSchema: z.ZodEnum<{
|
|
4330
|
-
PENDING: "PENDING";
|
|
4331
4565
|
FAILED: "FAILED";
|
|
4566
|
+
PENDING: "PENDING";
|
|
4332
4567
|
APPROVED: "APPROVED";
|
|
4333
4568
|
PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
|
|
4334
4569
|
REFUNDED: "REFUNDED";
|
|
@@ -4375,8 +4610,8 @@ export declare const paymentRecordSchema: z.ZodObject<{
|
|
|
4375
4610
|
orderName: z.ZodString;
|
|
4376
4611
|
customerName: z.ZodString;
|
|
4377
4612
|
status: z.ZodEnum<{
|
|
4378
|
-
PENDING: "PENDING";
|
|
4379
4613
|
FAILED: "FAILED";
|
|
4614
|
+
PENDING: "PENDING";
|
|
4380
4615
|
APPROVED: "APPROVED";
|
|
4381
4616
|
PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
|
|
4382
4617
|
REFUNDED: "REFUNDED";
|
|
@@ -4421,8 +4656,8 @@ export declare const paymentRecordPageSchema: z.ZodObject<{
|
|
|
4421
4656
|
orderName: z.ZodString;
|
|
4422
4657
|
customerName: z.ZodString;
|
|
4423
4658
|
status: z.ZodEnum<{
|
|
4424
|
-
PENDING: "PENDING";
|
|
4425
4659
|
FAILED: "FAILED";
|
|
4660
|
+
PENDING: "PENDING";
|
|
4426
4661
|
APPROVED: "APPROVED";
|
|
4427
4662
|
PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
|
|
4428
4663
|
REFUNDED: "REFUNDED";
|
|
@@ -4510,8 +4745,8 @@ export declare const paymentRecordDetailSchema: z.ZodObject<{
|
|
|
4510
4745
|
orderName: z.ZodString;
|
|
4511
4746
|
customerName: z.ZodString;
|
|
4512
4747
|
status: z.ZodEnum<{
|
|
4513
|
-
PENDING: "PENDING";
|
|
4514
4748
|
FAILED: "FAILED";
|
|
4749
|
+
PENDING: "PENDING";
|
|
4515
4750
|
APPROVED: "APPROVED";
|
|
4516
4751
|
PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
|
|
4517
4752
|
REFUNDED: "REFUNDED";
|
|
@@ -5335,11 +5570,11 @@ export declare const productPatchRequestSchema: z.ZodObject<{
|
|
|
5335
5570
|
}, z.core.$strict>;
|
|
5336
5571
|
export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
|
|
5337
5572
|
export declare const productSortSchema: z.ZodEnum<{
|
|
5338
|
-
"updatedAt.desc": "updatedAt.desc";
|
|
5339
5573
|
"createdAt.desc": "createdAt.desc";
|
|
5340
5574
|
"createdAt.asc": "createdAt.asc";
|
|
5341
5575
|
"salePrice.asc": "salePrice.asc";
|
|
5342
5576
|
"salePrice.desc": "salePrice.desc";
|
|
5577
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
5343
5578
|
}>;
|
|
5344
5579
|
export type ProductSort = z.infer<typeof productSortSchema>;
|
|
5345
5580
|
export interface ProductListParams extends PageParams {
|
|
@@ -5363,11 +5598,11 @@ export declare const productListQuerySchema: z.ZodObject<{
|
|
|
5363
5598
|
keyword: z.ZodOptional<z.ZodString>;
|
|
5364
5599
|
sellerCode: z.ZodOptional<z.ZodString>;
|
|
5365
5600
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
5366
|
-
"updatedAt.desc": "updatedAt.desc";
|
|
5367
5601
|
"createdAt.desc": "createdAt.desc";
|
|
5368
5602
|
"createdAt.asc": "createdAt.asc";
|
|
5369
5603
|
"salePrice.asc": "salePrice.asc";
|
|
5370
5604
|
"salePrice.desc": "salePrice.desc";
|
|
5605
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
5371
5606
|
}>>;
|
|
5372
5607
|
}, z.core.$strip>;
|
|
5373
5608
|
export declare const discountRequestSchema: z.ZodObject<{
|
|
@@ -6048,8 +6283,8 @@ export type StorefrontDomain = z.infer<typeof storefrontDomainSchema>;
|
|
|
6048
6283
|
*/
|
|
6049
6284
|
export declare const storefrontProvisioningSchema: z.ZodObject<{
|
|
6050
6285
|
status: z.ZodEnum<{
|
|
6051
|
-
PENDING: "PENDING";
|
|
6052
6286
|
FAILED: "FAILED";
|
|
6287
|
+
PENDING: "PENDING";
|
|
6053
6288
|
SYNCED: "SYNCED";
|
|
6054
6289
|
}>;
|
|
6055
6290
|
lastErrorCode: z.ZodNullable<z.ZodString>;
|
|
@@ -6129,8 +6364,8 @@ export declare const storefrontSiteSchema: z.ZodObject<{
|
|
|
6129
6364
|
}, z.core.$strip>>;
|
|
6130
6365
|
provisioning: z.ZodObject<{
|
|
6131
6366
|
status: z.ZodEnum<{
|
|
6132
|
-
PENDING: "PENDING";
|
|
6133
6367
|
FAILED: "FAILED";
|
|
6368
|
+
PENDING: "PENDING";
|
|
6134
6369
|
SYNCED: "SYNCED";
|
|
6135
6370
|
}>;
|
|
6136
6371
|
lastErrorCode: z.ZodNullable<z.ZodString>;
|
|
@@ -6209,8 +6444,8 @@ export declare const storefrontHostingSchema: z.ZodObject<{
|
|
|
6209
6444
|
}, z.core.$strip>>;
|
|
6210
6445
|
provisioning: z.ZodObject<{
|
|
6211
6446
|
status: z.ZodEnum<{
|
|
6212
|
-
PENDING: "PENDING";
|
|
6213
6447
|
FAILED: "FAILED";
|
|
6448
|
+
PENDING: "PENDING";
|
|
6214
6449
|
SYNCED: "SYNCED";
|
|
6215
6450
|
}>;
|
|
6216
6451
|
lastErrorCode: z.ZodNullable<z.ZodString>;
|
|
@@ -6252,8 +6487,8 @@ export declare const storefrontDeploymentStepSchema: z.ZodObject<{
|
|
|
6252
6487
|
PUBLISH: "PUBLISH";
|
|
6253
6488
|
}>;
|
|
6254
6489
|
status: z.ZodEnum<{
|
|
6255
|
-
PENDING: "PENDING";
|
|
6256
6490
|
FAILED: "FAILED";
|
|
6491
|
+
PENDING: "PENDING";
|
|
6257
6492
|
RUNNING: "RUNNING";
|
|
6258
6493
|
DONE: "DONE";
|
|
6259
6494
|
}>;
|
|
@@ -6274,9 +6509,9 @@ export type StorefrontDeploymentLog = z.infer<typeof storefrontDeploymentLogSche
|
|
|
6274
6509
|
export declare const storefrontDeploymentSchema: z.ZodObject<{
|
|
6275
6510
|
siteId: z.ZodString;
|
|
6276
6511
|
status: z.ZodEnum<{
|
|
6277
|
-
IN_PROGRESS: "IN_PROGRESS";
|
|
6278
|
-
FAILED: "FAILED";
|
|
6279
6512
|
SUCCEEDED: "SUCCEEDED";
|
|
6513
|
+
FAILED: "FAILED";
|
|
6514
|
+
IN_PROGRESS: "IN_PROGRESS";
|
|
6280
6515
|
}>;
|
|
6281
6516
|
url: z.ZodString;
|
|
6282
6517
|
startedAt: z.ZodString;
|
|
@@ -6288,8 +6523,8 @@ export declare const storefrontDeploymentSchema: z.ZodObject<{
|
|
|
6288
6523
|
PUBLISH: "PUBLISH";
|
|
6289
6524
|
}>;
|
|
6290
6525
|
status: z.ZodEnum<{
|
|
6291
|
-
PENDING: "PENDING";
|
|
6292
6526
|
FAILED: "FAILED";
|
|
6527
|
+
PENDING: "PENDING";
|
|
6293
6528
|
RUNNING: "RUNNING";
|
|
6294
6529
|
DONE: "DONE";
|
|
6295
6530
|
}>;
|
|
@@ -6409,8 +6644,8 @@ export declare function storefrontCustomHostnameProblem(hostname: string, hostin
|
|
|
6409
6644
|
/** 소유 확인 TXT 레코드의 전체 이름 */
|
|
6410
6645
|
export declare function storefrontDomainTxtNameOf(hostname: string): string;
|
|
6411
6646
|
export declare const storefrontCustomDomainStatusSchema: z.ZodEnum<{
|
|
6412
|
-
ACTIVE: "ACTIVE";
|
|
6413
6647
|
FAILED: "FAILED";
|
|
6648
|
+
ACTIVE: "ACTIVE";
|
|
6414
6649
|
PENDING_DNS: "PENDING_DNS";
|
|
6415
6650
|
PENDING_VALIDATION: "PENDING_VALIDATION";
|
|
6416
6651
|
}>;
|
|
@@ -6436,8 +6671,8 @@ export declare const storefrontSiteDomainSchema: z.ZodObject<{
|
|
|
6436
6671
|
CUSTOM: "CUSTOM";
|
|
6437
6672
|
}>;
|
|
6438
6673
|
status: z.ZodEnum<{
|
|
6439
|
-
ACTIVE: "ACTIVE";
|
|
6440
6674
|
FAILED: "FAILED";
|
|
6675
|
+
ACTIVE: "ACTIVE";
|
|
6441
6676
|
PENDING_DNS: "PENDING_DNS";
|
|
6442
6677
|
PENDING_VALIDATION: "PENDING_VALIDATION";
|
|
6443
6678
|
}>;
|
|
@@ -6455,9 +6690,9 @@ export declare const storefrontSiteDomainSchema: z.ZodObject<{
|
|
|
6455
6690
|
}>;
|
|
6456
6691
|
}, z.core.$strip>>;
|
|
6457
6692
|
certificateStatus: z.ZodNullable<z.ZodEnum<{
|
|
6458
|
-
ACTIVE: "ACTIVE";
|
|
6459
|
-
PENDING: "PENDING";
|
|
6460
6693
|
FAILED: "FAILED";
|
|
6694
|
+
PENDING: "PENDING";
|
|
6695
|
+
ACTIVE: "ACTIVE";
|
|
6461
6696
|
}>>;
|
|
6462
6697
|
failureCode: z.ZodNullable<z.ZodString>;
|
|
6463
6698
|
verifiedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -6479,8 +6714,8 @@ export declare const storefrontSiteDomainsSchema: z.ZodObject<{
|
|
|
6479
6714
|
CUSTOM: "CUSTOM";
|
|
6480
6715
|
}>;
|
|
6481
6716
|
status: z.ZodEnum<{
|
|
6482
|
-
ACTIVE: "ACTIVE";
|
|
6483
6717
|
FAILED: "FAILED";
|
|
6718
|
+
ACTIVE: "ACTIVE";
|
|
6484
6719
|
PENDING_DNS: "PENDING_DNS";
|
|
6485
6720
|
PENDING_VALIDATION: "PENDING_VALIDATION";
|
|
6486
6721
|
}>;
|
|
@@ -6498,9 +6733,9 @@ export declare const storefrontSiteDomainsSchema: z.ZodObject<{
|
|
|
6498
6733
|
}>;
|
|
6499
6734
|
}, z.core.$strip>>;
|
|
6500
6735
|
certificateStatus: z.ZodNullable<z.ZodEnum<{
|
|
6501
|
-
ACTIVE: "ACTIVE";
|
|
6502
|
-
PENDING: "PENDING";
|
|
6503
6736
|
FAILED: "FAILED";
|
|
6737
|
+
PENDING: "PENDING";
|
|
6738
|
+
ACTIVE: "ACTIVE";
|
|
6504
6739
|
}>>;
|
|
6505
6740
|
failureCode: z.ZodNullable<z.ZodString>;
|
|
6506
6741
|
verifiedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -6734,8 +6969,8 @@ export declare const runStorefrontCheckRequestSchema: z.ZodObject<{
|
|
|
6734
6969
|
}, z.core.$strip>;
|
|
6735
6970
|
export type RunStorefrontCheckRequest = z.infer<typeof runStorefrontCheckRequestSchema>;
|
|
6736
6971
|
export declare const storefrontCheckStatusSchema: z.ZodEnum<{
|
|
6737
|
-
UNKNOWN: "UNKNOWN";
|
|
6738
6972
|
FAILED: "FAILED";
|
|
6973
|
+
UNKNOWN: "UNKNOWN";
|
|
6739
6974
|
RUNNING: "RUNNING";
|
|
6740
6975
|
QUEUED: "QUEUED";
|
|
6741
6976
|
PASSED: "PASSED";
|
|
@@ -6748,8 +6983,8 @@ export declare const storefrontCheckSchema: z.ZodObject<{
|
|
|
6748
6983
|
checkId: z.ZodString;
|
|
6749
6984
|
check: z.ZodString;
|
|
6750
6985
|
status: z.ZodEnum<{
|
|
6751
|
-
UNKNOWN: "UNKNOWN";
|
|
6752
6986
|
FAILED: "FAILED";
|
|
6987
|
+
UNKNOWN: "UNKNOWN";
|
|
6753
6988
|
RUNNING: "RUNNING";
|
|
6754
6989
|
QUEUED: "QUEUED";
|
|
6755
6990
|
PASSED: "PASSED";
|
|
@@ -6833,8 +7068,8 @@ export declare const storefrontVerifyReportSchema: z.ZodObject<{
|
|
|
6833
7068
|
}, z.core.$strip>;
|
|
6834
7069
|
export type StorefrontVerifyReport = z.infer<typeof storefrontVerifyReportSchema>;
|
|
6835
7070
|
export declare const storefrontBuildStatusSchema: z.ZodEnum<{
|
|
6836
|
-
FAILED: "FAILED";
|
|
6837
7071
|
SUCCEEDED: "SUCCEEDED";
|
|
7072
|
+
FAILED: "FAILED";
|
|
6838
7073
|
RUNNING: "RUNNING";
|
|
6839
7074
|
QUEUED: "QUEUED";
|
|
6840
7075
|
TIMED_OUT: "TIMED_OUT";
|
|
@@ -6901,8 +7136,8 @@ export declare const storefrontBuildSchema: z.ZodObject<{
|
|
|
6901
7136
|
versionId: z.ZodString;
|
|
6902
7137
|
versionNumber: z.ZodNumber;
|
|
6903
7138
|
status: z.ZodEnum<{
|
|
6904
|
-
FAILED: "FAILED";
|
|
6905
7139
|
SUCCEEDED: "SUCCEEDED";
|
|
7140
|
+
FAILED: "FAILED";
|
|
6906
7141
|
RUNNING: "RUNNING";
|
|
6907
7142
|
QUEUED: "QUEUED";
|
|
6908
7143
|
TIMED_OUT: "TIMED_OUT";
|
|
@@ -7030,8 +7265,8 @@ export declare const storefrontVersionCreatedSchema: z.ZodObject<{
|
|
|
7030
7265
|
versionId: z.ZodString;
|
|
7031
7266
|
versionNumber: z.ZodNumber;
|
|
7032
7267
|
status: z.ZodEnum<{
|
|
7033
|
-
FAILED: "FAILED";
|
|
7034
7268
|
SUCCEEDED: "SUCCEEDED";
|
|
7269
|
+
FAILED: "FAILED";
|
|
7035
7270
|
RUNNING: "RUNNING";
|
|
7036
7271
|
QUEUED: "QUEUED";
|
|
7037
7272
|
TIMED_OUT: "TIMED_OUT";
|
|
@@ -8072,6 +8307,169 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8072
8307
|
additionalPriceDropped: boolean;
|
|
8073
8308
|
}>;
|
|
8074
8309
|
};
|
|
8310
|
+
/**
|
|
8311
|
+
* 컬렉션 (이슈 #83) — 상품을 어디에 보여 줄지 정하는 묶음(다대다). 권한은 카테고리와 같다(`category:r`·`category:rw`).
|
|
8312
|
+
* 쓰기마다 `revision`이 오른다. 수정 본문에 읽은 `revision`을 주면 그 사이 다른 수정이 있을 때 409 `COLLECTION_CHANGED`다.
|
|
8313
|
+
*/
|
|
8314
|
+
collections: {
|
|
8315
|
+
list: (params?: CollectionListParams) => Promise<{
|
|
8316
|
+
page: number;
|
|
8317
|
+
size: number;
|
|
8318
|
+
totalElements: number;
|
|
8319
|
+
totalPages: number;
|
|
8320
|
+
contents: {
|
|
8321
|
+
collectionId: string;
|
|
8322
|
+
type: string;
|
|
8323
|
+
title: string;
|
|
8324
|
+
slug: string;
|
|
8325
|
+
description: string;
|
|
8326
|
+
imageUrl: string | null;
|
|
8327
|
+
productSort: string;
|
|
8328
|
+
visible: boolean;
|
|
8329
|
+
startsAt: string | null;
|
|
8330
|
+
endsAt: string | null;
|
|
8331
|
+
sortOrder: number;
|
|
8332
|
+
metaTitle: string | null;
|
|
8333
|
+
metaDescription: string | null;
|
|
8334
|
+
state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
|
|
8335
|
+
productCount: number;
|
|
8336
|
+
revision: number;
|
|
8337
|
+
createdAt: string;
|
|
8338
|
+
updatedAt: string;
|
|
8339
|
+
}[];
|
|
8340
|
+
stateCounts: {
|
|
8341
|
+
ALL: number;
|
|
8342
|
+
ACTIVE: number;
|
|
8343
|
+
SCHEDULED: number;
|
|
8344
|
+
ENDED: number;
|
|
8345
|
+
HIDDEN: number;
|
|
8346
|
+
};
|
|
8347
|
+
}>;
|
|
8348
|
+
get: (collectionId: string) => Promise<{
|
|
8349
|
+
collectionId: string;
|
|
8350
|
+
type: string;
|
|
8351
|
+
title: string;
|
|
8352
|
+
slug: string;
|
|
8353
|
+
description: string;
|
|
8354
|
+
imageUrl: string | null;
|
|
8355
|
+
productSort: string;
|
|
8356
|
+
visible: boolean;
|
|
8357
|
+
startsAt: string | null;
|
|
8358
|
+
endsAt: string | null;
|
|
8359
|
+
sortOrder: number;
|
|
8360
|
+
metaTitle: string | null;
|
|
8361
|
+
metaDescription: string | null;
|
|
8362
|
+
state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
|
|
8363
|
+
productCount: number;
|
|
8364
|
+
revision: number;
|
|
8365
|
+
createdAt: string;
|
|
8366
|
+
updatedAt: string;
|
|
8367
|
+
}>;
|
|
8368
|
+
/** 주소가 겹치면 409 `COLLECTION_SLUG_TAKEN`, 상점당 200개를 넘으면 409 `COLLECTION_LIMIT_EXCEEDED` */
|
|
8369
|
+
create: (body: CollectionCreateRequestInput) => Promise<{
|
|
8370
|
+
collectionId: string;
|
|
8371
|
+
type: string;
|
|
8372
|
+
title: string;
|
|
8373
|
+
slug: string;
|
|
8374
|
+
description: string;
|
|
8375
|
+
imageUrl: string | null;
|
|
8376
|
+
productSort: string;
|
|
8377
|
+
visible: boolean;
|
|
8378
|
+
startsAt: string | null;
|
|
8379
|
+
endsAt: string | null;
|
|
8380
|
+
sortOrder: number;
|
|
8381
|
+
metaTitle: string | null;
|
|
8382
|
+
metaDescription: string | null;
|
|
8383
|
+
state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
|
|
8384
|
+
productCount: number;
|
|
8385
|
+
revision: number;
|
|
8386
|
+
createdAt: string;
|
|
8387
|
+
updatedAt: string;
|
|
8388
|
+
}>;
|
|
8389
|
+
update: (collectionId: string, body: CollectionPatchRequest) => Promise<{
|
|
8390
|
+
collectionId: string;
|
|
8391
|
+
type: string;
|
|
8392
|
+
title: string;
|
|
8393
|
+
slug: string;
|
|
8394
|
+
description: string;
|
|
8395
|
+
imageUrl: string | null;
|
|
8396
|
+
productSort: string;
|
|
8397
|
+
visible: boolean;
|
|
8398
|
+
startsAt: string | null;
|
|
8399
|
+
endsAt: string | null;
|
|
8400
|
+
sortOrder: number;
|
|
8401
|
+
metaTitle: string | null;
|
|
8402
|
+
metaDescription: string | null;
|
|
8403
|
+
state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
|
|
8404
|
+
productCount: number;
|
|
8405
|
+
revision: number;
|
|
8406
|
+
createdAt: string;
|
|
8407
|
+
updatedAt: string;
|
|
8408
|
+
}>;
|
|
8409
|
+
remove: (collectionId: string) => Promise<void>;
|
|
8410
|
+
/** 담긴 상품 — 직접 정한 순서 */
|
|
8411
|
+
listProducts: (collectionId: string, params?: {
|
|
8412
|
+
page?: number;
|
|
8413
|
+
size?: number;
|
|
8414
|
+
}) => Promise<{
|
|
8415
|
+
page: number;
|
|
8416
|
+
size: number;
|
|
8417
|
+
totalElements: number;
|
|
8418
|
+
totalPages: number;
|
|
8419
|
+
contents: {
|
|
8420
|
+
productId: string;
|
|
8421
|
+
name: string;
|
|
8422
|
+
thumbnailUrl: string | null;
|
|
8423
|
+
status: string;
|
|
8424
|
+
salePrice: number;
|
|
8425
|
+
position: number;
|
|
8426
|
+
addedAt: string;
|
|
8427
|
+
}[];
|
|
8428
|
+
}>;
|
|
8429
|
+
/** 담긴 상품을 통째로 바꾼다(순서 포함) */
|
|
8430
|
+
replaceProducts: (collectionId: string, body: CollectionProductsReplaceRequest) => Promise<{
|
|
8431
|
+
collectionId: string;
|
|
8432
|
+
type: string;
|
|
8433
|
+
title: string;
|
|
8434
|
+
slug: string;
|
|
8435
|
+
description: string;
|
|
8436
|
+
imageUrl: string | null;
|
|
8437
|
+
productSort: string;
|
|
8438
|
+
visible: boolean;
|
|
8439
|
+
startsAt: string | null;
|
|
8440
|
+
endsAt: string | null;
|
|
8441
|
+
sortOrder: number;
|
|
8442
|
+
metaTitle: string | null;
|
|
8443
|
+
metaDescription: string | null;
|
|
8444
|
+
state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
|
|
8445
|
+
productCount: number;
|
|
8446
|
+
revision: number;
|
|
8447
|
+
createdAt: string;
|
|
8448
|
+
updatedAt: string;
|
|
8449
|
+
}>;
|
|
8450
|
+
/** 뒤에 붙인다. 이미 담긴 상품은 그 자리에 둔다 */
|
|
8451
|
+
addProducts: (collectionId: string, body: CollectionProductsAddRequest) => Promise<{
|
|
8452
|
+
collectionId: string;
|
|
8453
|
+
type: string;
|
|
8454
|
+
title: string;
|
|
8455
|
+
slug: string;
|
|
8456
|
+
description: string;
|
|
8457
|
+
imageUrl: string | null;
|
|
8458
|
+
productSort: string;
|
|
8459
|
+
visible: boolean;
|
|
8460
|
+
startsAt: string | null;
|
|
8461
|
+
endsAt: string | null;
|
|
8462
|
+
sortOrder: number;
|
|
8463
|
+
metaTitle: string | null;
|
|
8464
|
+
metaDescription: string | null;
|
|
8465
|
+
state: "ACTIVE" | "ENDED" | "SCHEDULED" | "HIDDEN";
|
|
8466
|
+
productCount: number;
|
|
8467
|
+
revision: number;
|
|
8468
|
+
createdAt: string;
|
|
8469
|
+
updatedAt: string;
|
|
8470
|
+
}>;
|
|
8471
|
+
removeProduct: (collectionId: string, productId: string) => Promise<void>;
|
|
8472
|
+
};
|
|
8075
8473
|
categories: {
|
|
8076
8474
|
list: (params?: {
|
|
8077
8475
|
parentId?: string;
|
|
@@ -8672,7 +9070,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8672
9070
|
contents: {
|
|
8673
9071
|
claimId: string;
|
|
8674
9072
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
8675
|
-
status: "
|
|
9073
|
+
status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
|
|
8676
9074
|
orderId: string;
|
|
8677
9075
|
orderItemId: string;
|
|
8678
9076
|
productName: string;
|
|
@@ -8710,7 +9108,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8710
9108
|
get: (claimId: string) => Promise<{
|
|
8711
9109
|
claimId: string;
|
|
8712
9110
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
8713
|
-
status: "
|
|
9111
|
+
status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
|
|
8714
9112
|
orderId: string;
|
|
8715
9113
|
orderItemId: string;
|
|
8716
9114
|
productName: string;
|
|
@@ -8744,7 +9142,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8744
9142
|
address2: string | null;
|
|
8745
9143
|
} | null;
|
|
8746
9144
|
histories?: {
|
|
8747
|
-
status: "
|
|
9145
|
+
status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
|
|
8748
9146
|
actor: "SYSTEM" | "BUYER" | "SELLER";
|
|
8749
9147
|
occurredAt: string;
|
|
8750
9148
|
}[] | undefined;
|
|
@@ -8776,7 +9174,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8776
9174
|
completeExchange: (claimId: string) => Promise<{
|
|
8777
9175
|
claimId: string;
|
|
8778
9176
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
8779
|
-
status: "
|
|
9177
|
+
status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
|
|
8780
9178
|
orderId: string;
|
|
8781
9179
|
orderItemId: string;
|
|
8782
9180
|
productName: string;
|
|
@@ -9523,7 +9921,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9523
9921
|
settlementId: string;
|
|
9524
9922
|
settlementDate: string;
|
|
9525
9923
|
payoutDate: string | null;
|
|
9526
|
-
status: "PAID" | "
|
|
9924
|
+
status: "PAID" | "SCHEDULED" | "HELD";
|
|
9527
9925
|
totalPaymentAmount: number;
|
|
9528
9926
|
totalCommission: number;
|
|
9529
9927
|
totalDeliveryFee: number;
|
|
@@ -9537,7 +9935,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9537
9935
|
settlementId: string;
|
|
9538
9936
|
settlementDate: string;
|
|
9539
9937
|
payoutDate: string | null;
|
|
9540
|
-
status: "PAID" | "
|
|
9938
|
+
status: "PAID" | "SCHEDULED" | "HELD";
|
|
9541
9939
|
totalPaymentAmount: number;
|
|
9542
9940
|
totalCommission: number;
|
|
9543
9941
|
totalDeliveryFee: number;
|
|
@@ -9679,7 +10077,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9679
10077
|
sources: (params: AnalyticsSourcesParams) => Promise<{
|
|
9680
10078
|
groupBy: "CAMPAIGN" | "CHANNEL" | "SOURCE" | "DEVICE";
|
|
9681
10079
|
rows: {
|
|
9682
|
-
channel: "DIRECT" | "ORGANIC_SEARCH" | "SOCIAL" | "PAID" | "EMAIL" | "CAMPAIGN" | "REFERRAL" |
|
|
10080
|
+
channel: "UNKNOWN" | "DIRECT" | "ORGANIC_SEARCH" | "SOCIAL" | "PAID" | "EMAIL" | "CAMPAIGN" | "REFERRAL" | null;
|
|
9683
10081
|
source: string | null;
|
|
9684
10082
|
medium: string | null;
|
|
9685
10083
|
campaign: string | null;
|
|
@@ -9814,7 +10212,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9814
10212
|
orderId: string | null;
|
|
9815
10213
|
orderName: string;
|
|
9816
10214
|
customerName: string;
|
|
9817
|
-
status: "
|
|
10215
|
+
status: "FAILED" | "PENDING" | "APPROVED" | "PARTIALLY_REFUNDED" | "REFUNDED";
|
|
9818
10216
|
amount: number;
|
|
9819
10217
|
refundedAmount: number;
|
|
9820
10218
|
provider: "tosspayments" | "portone" | null;
|
|
@@ -9838,7 +10236,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9838
10236
|
orderId: string | null;
|
|
9839
10237
|
orderName: string;
|
|
9840
10238
|
customerName: string;
|
|
9841
|
-
status: "
|
|
10239
|
+
status: "FAILED" | "PENDING" | "APPROVED" | "PARTIALLY_REFUNDED" | "REFUNDED";
|
|
9842
10240
|
amount: number;
|
|
9843
10241
|
refundedAmount: number;
|
|
9844
10242
|
provider: "tosspayments" | "portone" | null;
|
|
@@ -9937,7 +10335,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9937
10335
|
masked: string | null;
|
|
9938
10336
|
}[];
|
|
9939
10337
|
lastVerification: {
|
|
9940
|
-
result: "
|
|
10338
|
+
result: "FAILED" | "SUCCESS";
|
|
9941
10339
|
message: string | null;
|
|
9942
10340
|
checkedAt: string;
|
|
9943
10341
|
} | null;
|
|
@@ -9962,7 +10360,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9962
10360
|
masked: string | null;
|
|
9963
10361
|
}[];
|
|
9964
10362
|
lastVerification: {
|
|
9965
|
-
result: "
|
|
10363
|
+
result: "FAILED" | "SUCCESS";
|
|
9966
10364
|
message: string | null;
|
|
9967
10365
|
checkedAt: string;
|
|
9968
10366
|
} | null;
|
|
@@ -9986,7 +10384,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9986
10384
|
masked: string | null;
|
|
9987
10385
|
}[];
|
|
9988
10386
|
lastVerification: {
|
|
9989
|
-
result: "
|
|
10387
|
+
result: "FAILED" | "SUCCESS";
|
|
9990
10388
|
message: string | null;
|
|
9991
10389
|
checkedAt: string;
|
|
9992
10390
|
} | null;
|
|
@@ -10047,7 +10445,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10047
10445
|
masked: string | null;
|
|
10048
10446
|
}[];
|
|
10049
10447
|
lastVerification: {
|
|
10050
|
-
result: "
|
|
10448
|
+
result: "FAILED" | "SUCCESS";
|
|
10051
10449
|
message: string | null;
|
|
10052
10450
|
checkedAt: string;
|
|
10053
10451
|
} | null;
|
|
@@ -10072,7 +10470,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10072
10470
|
masked: string | null;
|
|
10073
10471
|
}[];
|
|
10074
10472
|
lastVerification: {
|
|
10075
|
-
result: "
|
|
10473
|
+
result: "FAILED" | "SUCCESS";
|
|
10076
10474
|
message: string | null;
|
|
10077
10475
|
checkedAt: string;
|
|
10078
10476
|
} | null;
|
|
@@ -10096,7 +10494,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10096
10494
|
masked: string | null;
|
|
10097
10495
|
}[];
|
|
10098
10496
|
lastVerification: {
|
|
10099
|
-
result: "
|
|
10497
|
+
result: "FAILED" | "SUCCESS";
|
|
10100
10498
|
message: string | null;
|
|
10101
10499
|
checkedAt: string;
|
|
10102
10500
|
} | null;
|
|
@@ -10162,7 +10560,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10162
10560
|
masked: string | null;
|
|
10163
10561
|
}[];
|
|
10164
10562
|
lastVerification: {
|
|
10165
|
-
result: "
|
|
10563
|
+
result: "FAILED" | "SUCCESS";
|
|
10166
10564
|
message: string | null;
|
|
10167
10565
|
checkedAt: string;
|
|
10168
10566
|
} | null;
|
|
@@ -10187,7 +10585,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10187
10585
|
masked: string | null;
|
|
10188
10586
|
}[];
|
|
10189
10587
|
lastVerification: {
|
|
10190
|
-
result: "
|
|
10588
|
+
result: "FAILED" | "SUCCESS";
|
|
10191
10589
|
message: string | null;
|
|
10192
10590
|
checkedAt: string;
|
|
10193
10591
|
} | null;
|
|
@@ -10211,7 +10609,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10211
10609
|
masked: string | null;
|
|
10212
10610
|
}[];
|
|
10213
10611
|
lastVerification: {
|
|
10214
|
-
result: "
|
|
10612
|
+
result: "FAILED" | "SUCCESS";
|
|
10215
10613
|
message: string | null;
|
|
10216
10614
|
checkedAt: string;
|
|
10217
10615
|
} | null;
|
|
@@ -10258,7 +10656,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10258
10656
|
masked: string | null;
|
|
10259
10657
|
}[];
|
|
10260
10658
|
lastVerification: {
|
|
10261
|
-
result: "
|
|
10659
|
+
result: "FAILED" | "SUCCESS";
|
|
10262
10660
|
message: string | null;
|
|
10263
10661
|
checkedAt: string;
|
|
10264
10662
|
} | null;
|
|
@@ -10283,7 +10681,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10283
10681
|
masked: string | null;
|
|
10284
10682
|
}[];
|
|
10285
10683
|
lastVerification: {
|
|
10286
|
-
result: "
|
|
10684
|
+
result: "FAILED" | "SUCCESS";
|
|
10287
10685
|
message: string | null;
|
|
10288
10686
|
checkedAt: string;
|
|
10289
10687
|
} | null;
|
|
@@ -10307,7 +10705,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10307
10705
|
masked: string | null;
|
|
10308
10706
|
}[];
|
|
10309
10707
|
lastVerification: {
|
|
10310
|
-
result: "
|
|
10708
|
+
result: "FAILED" | "SUCCESS";
|
|
10311
10709
|
message: string | null;
|
|
10312
10710
|
checkedAt: string;
|
|
10313
10711
|
} | null;
|
|
@@ -10364,7 +10762,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10364
10762
|
masked: string | null;
|
|
10365
10763
|
}[];
|
|
10366
10764
|
lastVerification: {
|
|
10367
|
-
result: "
|
|
10765
|
+
result: "FAILED" | "SUCCESS";
|
|
10368
10766
|
message: string | null;
|
|
10369
10767
|
checkedAt: string;
|
|
10370
10768
|
} | null;
|
|
@@ -10389,7 +10787,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10389
10787
|
masked: string | null;
|
|
10390
10788
|
}[];
|
|
10391
10789
|
lastVerification: {
|
|
10392
|
-
result: "
|
|
10790
|
+
result: "FAILED" | "SUCCESS";
|
|
10393
10791
|
message: string | null;
|
|
10394
10792
|
checkedAt: string;
|
|
10395
10793
|
} | null;
|
|
@@ -10413,7 +10811,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10413
10811
|
masked: string | null;
|
|
10414
10812
|
}[];
|
|
10415
10813
|
lastVerification: {
|
|
10416
|
-
result: "
|
|
10814
|
+
result: "FAILED" | "SUCCESS";
|
|
10417
10815
|
message: string | null;
|
|
10418
10816
|
checkedAt: string;
|
|
10419
10817
|
} | null;
|
|
@@ -10460,7 +10858,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10460
10858
|
masked: string | null;
|
|
10461
10859
|
}[];
|
|
10462
10860
|
lastVerification: {
|
|
10463
|
-
result: "
|
|
10861
|
+
result: "FAILED" | "SUCCESS";
|
|
10464
10862
|
message: string | null;
|
|
10465
10863
|
checkedAt: string;
|
|
10466
10864
|
} | null;
|
|
@@ -10485,7 +10883,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10485
10883
|
masked: string | null;
|
|
10486
10884
|
}[];
|
|
10487
10885
|
lastVerification: {
|
|
10488
|
-
result: "
|
|
10886
|
+
result: "FAILED" | "SUCCESS";
|
|
10489
10887
|
message: string | null;
|
|
10490
10888
|
checkedAt: string;
|
|
10491
10889
|
} | null;
|
|
@@ -10509,7 +10907,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10509
10907
|
masked: string | null;
|
|
10510
10908
|
}[];
|
|
10511
10909
|
lastVerification: {
|
|
10512
|
-
result: "
|
|
10910
|
+
result: "FAILED" | "SUCCESS";
|
|
10513
10911
|
message: string | null;
|
|
10514
10912
|
checkedAt: string;
|
|
10515
10913
|
} | null;
|
|
@@ -10565,7 +10963,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10565
10963
|
masked: string | null;
|
|
10566
10964
|
}[];
|
|
10567
10965
|
lastVerification: {
|
|
10568
|
-
result: "
|
|
10966
|
+
result: "FAILED" | "SUCCESS";
|
|
10569
10967
|
message: string | null;
|
|
10570
10968
|
checkedAt: string;
|
|
10571
10969
|
} | null;
|
|
@@ -10590,7 +10988,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10590
10988
|
masked: string | null;
|
|
10591
10989
|
}[];
|
|
10592
10990
|
lastVerification: {
|
|
10593
|
-
result: "
|
|
10991
|
+
result: "FAILED" | "SUCCESS";
|
|
10594
10992
|
message: string | null;
|
|
10595
10993
|
checkedAt: string;
|
|
10596
10994
|
} | null;
|
|
@@ -10614,7 +11012,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10614
11012
|
masked: string | null;
|
|
10615
11013
|
}[];
|
|
10616
11014
|
lastVerification: {
|
|
10617
|
-
result: "
|
|
11015
|
+
result: "FAILED" | "SUCCESS";
|
|
10618
11016
|
message: string | null;
|
|
10619
11017
|
checkedAt: string;
|
|
10620
11018
|
} | null;
|
|
@@ -10642,7 +11040,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10642
11040
|
verify: (provider: PgProvider, body?: VerifyPaymentProviderRequest) => Promise<{
|
|
10643
11041
|
provider: "tosspayments" | "portone";
|
|
10644
11042
|
environment: "TEST" | "LIVE";
|
|
10645
|
-
result: "
|
|
11043
|
+
result: "FAILED" | "SUCCESS";
|
|
10646
11044
|
message: string | null;
|
|
10647
11045
|
checkedAt: string;
|
|
10648
11046
|
}>;
|
|
@@ -10708,7 +11106,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10708
11106
|
eventId: string;
|
|
10709
11107
|
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";
|
|
10710
11108
|
url: string;
|
|
10711
|
-
status: "
|
|
11109
|
+
status: "FAILED" | "PENDING" | "PENDING_RETRY" | "SUCCESS";
|
|
10712
11110
|
responseStatusCode: number | null;
|
|
10713
11111
|
responseTimeMs: number | null;
|
|
10714
11112
|
responseBodyExcerpt: string | null;
|
|
@@ -10735,7 +11133,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10735
11133
|
eventId: string;
|
|
10736
11134
|
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";
|
|
10737
11135
|
url: string;
|
|
10738
|
-
status: "
|
|
11136
|
+
status: "FAILED" | "PENDING" | "PENDING_RETRY" | "SUCCESS";
|
|
10739
11137
|
responseStatusCode: number | null;
|
|
10740
11138
|
responseTimeMs: number | null;
|
|
10741
11139
|
responseBodyExcerpt: string | null;
|
|
@@ -10770,7 +11168,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10770
11168
|
eventId: string;
|
|
10771
11169
|
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";
|
|
10772
11170
|
url: string;
|
|
10773
|
-
status: "
|
|
11171
|
+
status: "FAILED" | "PENDING" | "PENDING_RETRY" | "SUCCESS";
|
|
10774
11172
|
responseStatusCode: number | null;
|
|
10775
11173
|
responseTimeMs: number | null;
|
|
10776
11174
|
responseBodyExcerpt: string | null;
|
|
@@ -10866,7 +11264,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10866
11264
|
method: string | null;
|
|
10867
11265
|
path: string | null;
|
|
10868
11266
|
statusCode: number | null;
|
|
10869
|
-
outcome: "
|
|
11267
|
+
outcome: "SUCCEEDED" | "FAILED" | "PENDING_APPROVAL" | "DENIED" | "DRY_RUN" | null;
|
|
10870
11268
|
errorCode: string | null;
|
|
10871
11269
|
traceId: string | null;
|
|
10872
11270
|
idempotencyKey: string | null;
|
|
@@ -10884,7 +11282,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10884
11282
|
list: (params?: ApprovalListOptions) => Promise<{
|
|
10885
11283
|
items: {
|
|
10886
11284
|
approvalId: string;
|
|
10887
|
-
status: "
|
|
11285
|
+
status: "SUCCEEDED" | "FAILED" | "PENDING" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
|
|
10888
11286
|
operationId: string;
|
|
10889
11287
|
method: string;
|
|
10890
11288
|
path: string;
|
|
@@ -10934,7 +11332,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10934
11332
|
}>;
|
|
10935
11333
|
get: (approvalId: string) => Promise<{
|
|
10936
11334
|
approvalId: string;
|
|
10937
|
-
status: "
|
|
11335
|
+
status: "SUCCEEDED" | "FAILED" | "PENDING" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
|
|
10938
11336
|
operationId: string;
|
|
10939
11337
|
method: string;
|
|
10940
11338
|
path: string;
|
|
@@ -10986,7 +11384,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10986
11384
|
*/
|
|
10987
11385
|
approve: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
|
|
10988
11386
|
approvalId: string;
|
|
10989
|
-
status: "
|
|
11387
|
+
status: "SUCCEEDED" | "FAILED" | "PENDING" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
|
|
10990
11388
|
operationId: string;
|
|
10991
11389
|
method: string;
|
|
10992
11390
|
path: string;
|
|
@@ -11034,7 +11432,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11034
11432
|
}>;
|
|
11035
11433
|
reject: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
|
|
11036
11434
|
approvalId: string;
|
|
11037
|
-
status: "
|
|
11435
|
+
status: "SUCCEEDED" | "FAILED" | "PENDING" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
|
|
11038
11436
|
operationId: string;
|
|
11039
11437
|
method: string;
|
|
11040
11438
|
path: string;
|
|
@@ -11202,7 +11600,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11202
11600
|
createdVia?: string | null | undefined;
|
|
11203
11601
|
} | null;
|
|
11204
11602
|
provisioning: {
|
|
11205
|
-
status: "
|
|
11603
|
+
status: "FAILED" | "PENDING" | "SYNCED";
|
|
11206
11604
|
lastErrorCode: string | null;
|
|
11207
11605
|
syncedAt: string | null;
|
|
11208
11606
|
};
|
|
@@ -11260,7 +11658,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11260
11658
|
createdVia?: string | null | undefined;
|
|
11261
11659
|
} | null;
|
|
11262
11660
|
provisioning: {
|
|
11263
|
-
status: "
|
|
11661
|
+
status: "FAILED" | "PENDING" | "SYNCED";
|
|
11264
11662
|
lastErrorCode: string | null;
|
|
11265
11663
|
syncedAt: string | null;
|
|
11266
11664
|
};
|
|
@@ -11278,13 +11676,13 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11278
11676
|
/** `GET /v1/storefront/site/deployment` — 배포 진행(단계·기록). 만든 뒤 반영이 끝날 때까지 폴링한다 */
|
|
11279
11677
|
getDeployment: () => Promise<{
|
|
11280
11678
|
siteId: string;
|
|
11281
|
-
status: "
|
|
11679
|
+
status: "SUCCEEDED" | "FAILED" | "IN_PROGRESS";
|
|
11282
11680
|
url: string;
|
|
11283
11681
|
startedAt: string;
|
|
11284
11682
|
finishedAt: string | null;
|
|
11285
11683
|
steps: {
|
|
11286
11684
|
key: "SITE" | "UPLOAD" | "PUBLISH";
|
|
11287
|
-
status: "
|
|
11685
|
+
status: "FAILED" | "PENDING" | "RUNNING" | "DONE";
|
|
11288
11686
|
finishedAt: string | null;
|
|
11289
11687
|
}[];
|
|
11290
11688
|
log: {
|
|
@@ -11300,13 +11698,13 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11300
11698
|
/** `POST /v1/storefront/site/deployment/retry` (202) — 밀린 반영을 곧바로 다시 시도한다. 이미 반영됐으면 그대로다 */
|
|
11301
11699
|
retryDeployment: () => Promise<{
|
|
11302
11700
|
siteId: string;
|
|
11303
|
-
status: "
|
|
11701
|
+
status: "SUCCEEDED" | "FAILED" | "IN_PROGRESS";
|
|
11304
11702
|
url: string;
|
|
11305
11703
|
startedAt: string;
|
|
11306
11704
|
finishedAt: string | null;
|
|
11307
11705
|
steps: {
|
|
11308
11706
|
key: "SITE" | "UPLOAD" | "PUBLISH";
|
|
11309
|
-
status: "
|
|
11707
|
+
status: "FAILED" | "PENDING" | "RUNNING" | "DONE";
|
|
11310
11708
|
finishedAt: string | null;
|
|
11311
11709
|
}[];
|
|
11312
11710
|
log: {
|
|
@@ -11356,7 +11754,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11356
11754
|
createdVia?: string | null | undefined;
|
|
11357
11755
|
} | null;
|
|
11358
11756
|
provisioning: {
|
|
11359
|
-
status: "
|
|
11757
|
+
status: "FAILED" | "PENDING" | "SYNCED";
|
|
11360
11758
|
lastErrorCode: string | null;
|
|
11361
11759
|
syncedAt: string | null;
|
|
11362
11760
|
};
|
|
@@ -11420,7 +11818,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11420
11818
|
createdVia?: string | null | undefined;
|
|
11421
11819
|
} | null;
|
|
11422
11820
|
provisioning: {
|
|
11423
|
-
status: "
|
|
11821
|
+
status: "FAILED" | "PENDING" | "SYNCED";
|
|
11424
11822
|
lastErrorCode: string | null;
|
|
11425
11823
|
syncedAt: string | null;
|
|
11426
11824
|
};
|
|
@@ -11468,7 +11866,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11468
11866
|
createdVia?: string | null | undefined;
|
|
11469
11867
|
} | null;
|
|
11470
11868
|
provisioning: {
|
|
11471
|
-
status: "
|
|
11869
|
+
status: "FAILED" | "PENDING" | "SYNCED";
|
|
11472
11870
|
lastErrorCode: string | null;
|
|
11473
11871
|
syncedAt: string | null;
|
|
11474
11872
|
};
|
|
@@ -11516,7 +11914,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11516
11914
|
createdVia?: string | null | undefined;
|
|
11517
11915
|
} | null;
|
|
11518
11916
|
provisioning: {
|
|
11519
|
-
status: "
|
|
11917
|
+
status: "FAILED" | "PENDING" | "SYNCED";
|
|
11520
11918
|
lastErrorCode: string | null;
|
|
11521
11919
|
syncedAt: string | null;
|
|
11522
11920
|
};
|
|
@@ -11564,7 +11962,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11564
11962
|
createdVia?: string | null | undefined;
|
|
11565
11963
|
} | null;
|
|
11566
11964
|
provisioning: {
|
|
11567
|
-
status: "
|
|
11965
|
+
status: "FAILED" | "PENDING" | "SYNCED";
|
|
11568
11966
|
lastErrorCode: string | null;
|
|
11569
11967
|
syncedAt: string | null;
|
|
11570
11968
|
};
|
|
@@ -11596,7 +11994,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11596
11994
|
domainId: string;
|
|
11597
11995
|
hostname: string;
|
|
11598
11996
|
kind: "PLATFORM" | "CUSTOM";
|
|
11599
|
-
status: "
|
|
11997
|
+
status: "FAILED" | "ACTIVE" | "PENDING_DNS" | "PENDING_VALIDATION";
|
|
11600
11998
|
isPrimary: boolean;
|
|
11601
11999
|
dnsRecords: {
|
|
11602
12000
|
type: "CNAME" | "TXT";
|
|
@@ -11604,7 +12002,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11604
12002
|
value: string;
|
|
11605
12003
|
purpose: "ROUTING" | "OWNERSHIP";
|
|
11606
12004
|
}[];
|
|
11607
|
-
certificateStatus: "
|
|
12005
|
+
certificateStatus: "FAILED" | "PENDING" | "ACTIVE" | null;
|
|
11608
12006
|
failureCode: string | null;
|
|
11609
12007
|
verifiedAt: string | null;
|
|
11610
12008
|
activatedAt: string | null;
|
|
@@ -11620,7 +12018,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11620
12018
|
domainId: string;
|
|
11621
12019
|
hostname: string;
|
|
11622
12020
|
kind: "PLATFORM" | "CUSTOM";
|
|
11623
|
-
status: "
|
|
12021
|
+
status: "FAILED" | "ACTIVE" | "PENDING_DNS" | "PENDING_VALIDATION";
|
|
11624
12022
|
isPrimary: boolean;
|
|
11625
12023
|
dnsRecords: {
|
|
11626
12024
|
type: "CNAME" | "TXT";
|
|
@@ -11628,7 +12026,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11628
12026
|
value: string;
|
|
11629
12027
|
purpose: "ROUTING" | "OWNERSHIP";
|
|
11630
12028
|
}[];
|
|
11631
|
-
certificateStatus: "
|
|
12029
|
+
certificateStatus: "FAILED" | "PENDING" | "ACTIVE" | null;
|
|
11632
12030
|
failureCode: string | null;
|
|
11633
12031
|
verifiedAt: string | null;
|
|
11634
12032
|
activatedAt: string | null;
|
|
@@ -11640,7 +12038,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11640
12038
|
domainId: string;
|
|
11641
12039
|
hostname: string;
|
|
11642
12040
|
kind: "PLATFORM" | "CUSTOM";
|
|
11643
|
-
status: "
|
|
12041
|
+
status: "FAILED" | "ACTIVE" | "PENDING_DNS" | "PENDING_VALIDATION";
|
|
11644
12042
|
isPrimary: boolean;
|
|
11645
12043
|
dnsRecords: {
|
|
11646
12044
|
type: "CNAME" | "TXT";
|
|
@@ -11648,7 +12046,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11648
12046
|
value: string;
|
|
11649
12047
|
purpose: "ROUTING" | "OWNERSHIP";
|
|
11650
12048
|
}[];
|
|
11651
|
-
certificateStatus: "
|
|
12049
|
+
certificateStatus: "FAILED" | "PENDING" | "ACTIVE" | null;
|
|
11652
12050
|
failureCode: string | null;
|
|
11653
12051
|
verifiedAt: string | null;
|
|
11654
12052
|
activatedAt: string | null;
|
|
@@ -11664,7 +12062,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11664
12062
|
domainId: string;
|
|
11665
12063
|
hostname: string;
|
|
11666
12064
|
kind: "PLATFORM" | "CUSTOM";
|
|
11667
|
-
status: "
|
|
12065
|
+
status: "FAILED" | "ACTIVE" | "PENDING_DNS" | "PENDING_VALIDATION";
|
|
11668
12066
|
isPrimary: boolean;
|
|
11669
12067
|
dnsRecords: {
|
|
11670
12068
|
type: "CNAME" | "TXT";
|
|
@@ -11672,7 +12070,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11672
12070
|
value: string;
|
|
11673
12071
|
purpose: "ROUTING" | "OWNERSHIP";
|
|
11674
12072
|
}[];
|
|
11675
|
-
certificateStatus: "
|
|
12073
|
+
certificateStatus: "FAILED" | "PENDING" | "ACTIVE" | null;
|
|
11676
12074
|
failureCode: string | null;
|
|
11677
12075
|
verifiedAt: string | null;
|
|
11678
12076
|
activatedAt: string | null;
|
|
@@ -11715,7 +12113,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11715
12113
|
createdVia?: string | null | undefined;
|
|
11716
12114
|
} | null;
|
|
11717
12115
|
provisioning: {
|
|
11718
|
-
status: "
|
|
12116
|
+
status: "FAILED" | "PENDING" | "SYNCED";
|
|
11719
12117
|
lastErrorCode: string | null;
|
|
11720
12118
|
syncedAt: string | null;
|
|
11721
12119
|
};
|
|
@@ -11875,7 +12273,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11875
12273
|
runCheck: (body: RunStorefrontCheckRequest) => Promise<{
|
|
11876
12274
|
checkId: string;
|
|
11877
12275
|
check: string;
|
|
11878
|
-
status: "
|
|
12276
|
+
status: "FAILED" | "UNKNOWN" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
|
|
11879
12277
|
exitCode: number | null;
|
|
11880
12278
|
durationMs: number | null;
|
|
11881
12279
|
outputTail: string | null;
|
|
@@ -11889,7 +12287,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11889
12287
|
getCheck: (checkId: string) => Promise<{
|
|
11890
12288
|
checkId: string;
|
|
11891
12289
|
check: string;
|
|
11892
|
-
status: "
|
|
12290
|
+
status: "FAILED" | "UNKNOWN" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
|
|
11893
12291
|
exitCode: number | null;
|
|
11894
12292
|
durationMs: number | null;
|
|
11895
12293
|
outputTail: string | null;
|
|
@@ -11956,7 +12354,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11956
12354
|
buildId: string;
|
|
11957
12355
|
versionId: string;
|
|
11958
12356
|
versionNumber: number;
|
|
11959
|
-
status: "
|
|
12357
|
+
status: "SUCCEEDED" | "FAILED" | "RUNNING" | "QUEUED" | "TIMED_OUT";
|
|
11960
12358
|
failureStage: string | null;
|
|
11961
12359
|
errorCode: string | null;
|
|
11962
12360
|
logTail: string | null;
|
|
@@ -12037,7 +12435,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12037
12435
|
buildId: string;
|
|
12038
12436
|
versionId: string;
|
|
12039
12437
|
versionNumber: number;
|
|
12040
|
-
status: "
|
|
12438
|
+
status: "SUCCEEDED" | "FAILED" | "RUNNING" | "QUEUED" | "TIMED_OUT";
|
|
12041
12439
|
failureStage: string | null;
|
|
12042
12440
|
errorCode: string | null;
|
|
12043
12441
|
logTail: string | null;
|
|
@@ -12115,7 +12513,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12115
12513
|
buildId: string;
|
|
12116
12514
|
versionId: string;
|
|
12117
12515
|
versionNumber: number;
|
|
12118
|
-
status: "
|
|
12516
|
+
status: "SUCCEEDED" | "FAILED" | "RUNNING" | "QUEUED" | "TIMED_OUT";
|
|
12119
12517
|
failureStage: string | null;
|
|
12120
12518
|
errorCode: string | null;
|
|
12121
12519
|
logTail: string | null;
|
|
@@ -13761,8 +14159,8 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
|
|
|
13761
14159
|
CANCEL: "CANCEL";
|
|
13762
14160
|
}>;
|
|
13763
14161
|
status: z.ZodEnum<{
|
|
13764
|
-
COMPLETED: "COMPLETED";
|
|
13765
14162
|
REJECTED: "REJECTED";
|
|
14163
|
+
COMPLETED: "COMPLETED";
|
|
13766
14164
|
REQUESTED: "REQUESTED";
|
|
13767
14165
|
HELD: "HELD";
|
|
13768
14166
|
COLLECTING: "COLLECTING";
|
|
@@ -13951,8 +14349,8 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
|
|
|
13951
14349
|
CANCEL: "CANCEL";
|
|
13952
14350
|
}>;
|
|
13953
14351
|
status: z.ZodEnum<{
|
|
13954
|
-
COMPLETED: "COMPLETED";
|
|
13955
14352
|
REJECTED: "REJECTED";
|
|
14353
|
+
COMPLETED: "COMPLETED";
|
|
13956
14354
|
REQUESTED: "REQUESTED";
|
|
13957
14355
|
HELD: "HELD";
|
|
13958
14356
|
COLLECTING: "COLLECTING";
|
|
@@ -14161,8 +14559,8 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
14161
14559
|
CANCEL: "CANCEL";
|
|
14162
14560
|
}>;
|
|
14163
14561
|
status: z.ZodEnum<{
|
|
14164
|
-
COMPLETED: "COMPLETED";
|
|
14165
14562
|
REJECTED: "REJECTED";
|
|
14563
|
+
COMPLETED: "COMPLETED";
|
|
14166
14564
|
REQUESTED: "REQUESTED";
|
|
14167
14565
|
HELD: "HELD";
|
|
14168
14566
|
COLLECTING: "COLLECTING";
|