@sayren/store-sdk 0.29.5 → 0.29.6
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 +150 -76
- package/dist/index.mjs +45 -6
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/schemas/claim.ts +4 -0
- package/src/schemas/commerce-number.ts +28 -0
- package/src/schemas/order.ts +29 -4
- package/src/schemas/payment.ts +21 -2
- package/src/schemas/product.ts +25 -0
- package/src/schemas/webhook-event.ts +32 -0
package/dist/index.d.mts
CHANGED
|
@@ -213,11 +213,11 @@ export declare const writeDryRunResultSchema: z.ZodObject<{
|
|
|
213
213
|
}, z.core.$strip>;
|
|
214
214
|
export type WriteDryRunResult = z.infer<typeof writeDryRunResultSchema>;
|
|
215
215
|
export declare const approvalStatusSchema: z.ZodEnum<{
|
|
216
|
-
UNKNOWN: "UNKNOWN";
|
|
217
216
|
PENDING: "PENDING";
|
|
218
217
|
FAILED: "FAILED";
|
|
219
218
|
SUCCEEDED: "SUCCEEDED";
|
|
220
219
|
EXECUTING: "EXECUTING";
|
|
220
|
+
UNKNOWN: "UNKNOWN";
|
|
221
221
|
REJECTED: "REJECTED";
|
|
222
222
|
EXPIRED: "EXPIRED";
|
|
223
223
|
}>;
|
|
@@ -225,11 +225,11 @@ export type ApprovalStatus = z.infer<typeof approvalStatusSchema>;
|
|
|
225
225
|
export declare const approvalRequestSchema: z.ZodObject<{
|
|
226
226
|
approvalId: z.ZodString;
|
|
227
227
|
status: z.ZodEnum<{
|
|
228
|
-
UNKNOWN: "UNKNOWN";
|
|
229
228
|
PENDING: "PENDING";
|
|
230
229
|
FAILED: "FAILED";
|
|
231
230
|
SUCCEEDED: "SUCCEEDED";
|
|
232
231
|
EXECUTING: "EXECUTING";
|
|
232
|
+
UNKNOWN: "UNKNOWN";
|
|
233
233
|
REJECTED: "REJECTED";
|
|
234
234
|
EXPIRED: "EXPIRED";
|
|
235
235
|
}>;
|
|
@@ -287,11 +287,11 @@ export declare const approvalRequestSchema: z.ZodObject<{
|
|
|
287
287
|
export type ApprovalRequest = z.infer<typeof approvalRequestSchema>;
|
|
288
288
|
export declare const approvalListQuerySchema: z.ZodObject<{
|
|
289
289
|
status: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodEnum<{
|
|
290
|
-
UNKNOWN: "UNKNOWN";
|
|
291
290
|
PENDING: "PENDING";
|
|
292
291
|
FAILED: "FAILED";
|
|
293
292
|
SUCCEEDED: "SUCCEEDED";
|
|
294
293
|
EXECUTING: "EXECUTING";
|
|
294
|
+
UNKNOWN: "UNKNOWN";
|
|
295
295
|
REJECTED: "REJECTED";
|
|
296
296
|
EXPIRED: "EXPIRED";
|
|
297
297
|
}>>>>;
|
|
@@ -306,11 +306,11 @@ export declare const approvalPageSchema: z.ZodObject<{
|
|
|
306
306
|
items: z.ZodArray<z.ZodObject<{
|
|
307
307
|
approvalId: z.ZodString;
|
|
308
308
|
status: z.ZodEnum<{
|
|
309
|
-
UNKNOWN: "UNKNOWN";
|
|
310
309
|
PENDING: "PENDING";
|
|
311
310
|
FAILED: "FAILED";
|
|
312
311
|
SUCCEEDED: "SUCCEEDED";
|
|
313
312
|
EXECUTING: "EXECUTING";
|
|
313
|
+
UNKNOWN: "UNKNOWN";
|
|
314
314
|
REJECTED: "REJECTED";
|
|
315
315
|
EXPIRED: "EXPIRED";
|
|
316
316
|
}>;
|
|
@@ -448,11 +448,11 @@ export declare const analyticsTotalsSchema: z.ZodObject<{
|
|
|
448
448
|
export type AnalyticsTotals = z.infer<typeof analyticsTotalsSchema>;
|
|
449
449
|
export declare const analyticsFunnelStepSchema: z.ZodObject<{
|
|
450
450
|
step: z.ZodEnum<{
|
|
451
|
+
PURCHASE: "PURCHASE";
|
|
451
452
|
SESSION: "SESSION";
|
|
452
453
|
PRODUCT_VIEW: "PRODUCT_VIEW";
|
|
453
454
|
ADD_TO_CART: "ADD_TO_CART";
|
|
454
455
|
BEGIN_CHECKOUT: "BEGIN_CHECKOUT";
|
|
455
|
-
PURCHASE: "PURCHASE";
|
|
456
456
|
}>;
|
|
457
457
|
sessions: z.ZodNumber;
|
|
458
458
|
rateFromPrevious: z.ZodNullable<z.ZodNumber>;
|
|
@@ -477,11 +477,11 @@ export declare const analyticsOverviewSchema: z.ZodObject<{
|
|
|
477
477
|
}, z.core.$strip>;
|
|
478
478
|
funnel: z.ZodArray<z.ZodObject<{
|
|
479
479
|
step: z.ZodEnum<{
|
|
480
|
+
PURCHASE: "PURCHASE";
|
|
480
481
|
SESSION: "SESSION";
|
|
481
482
|
PRODUCT_VIEW: "PRODUCT_VIEW";
|
|
482
483
|
ADD_TO_CART: "ADD_TO_CART";
|
|
483
484
|
BEGIN_CHECKOUT: "BEGIN_CHECKOUT";
|
|
484
|
-
PURCHASE: "PURCHASE";
|
|
485
485
|
}>;
|
|
486
486
|
sessions: z.ZodNumber;
|
|
487
487
|
rateFromPrevious: z.ZodNullable<z.ZodNumber>;
|
|
@@ -581,20 +581,20 @@ export declare const analyticsProductsSchema: z.ZodObject<{
|
|
|
581
581
|
}, z.core.$strip>;
|
|
582
582
|
export type AnalyticsProducts = z.infer<typeof analyticsProductsSchema>;
|
|
583
583
|
export declare const analyticsChannelSchema: z.ZodEnum<{
|
|
584
|
+
PAID: "PAID";
|
|
584
585
|
DIRECT: "DIRECT";
|
|
586
|
+
CAMPAIGN: "CAMPAIGN";
|
|
587
|
+
UNKNOWN: "UNKNOWN";
|
|
585
588
|
ORGANIC_SEARCH: "ORGANIC_SEARCH";
|
|
586
589
|
SOCIAL: "SOCIAL";
|
|
587
|
-
PAID: "PAID";
|
|
588
590
|
EMAIL: "EMAIL";
|
|
589
|
-
CAMPAIGN: "CAMPAIGN";
|
|
590
591
|
REFERRAL: "REFERRAL";
|
|
591
|
-
UNKNOWN: "UNKNOWN";
|
|
592
592
|
}>;
|
|
593
593
|
export type AnalyticsChannel = z.infer<typeof analyticsChannelSchema>;
|
|
594
594
|
export declare const analyticsSourceGroupBySchema: z.ZodEnum<{
|
|
595
|
-
CAMPAIGN: "CAMPAIGN";
|
|
596
595
|
CHANNEL: "CHANNEL";
|
|
597
596
|
SOURCE: "SOURCE";
|
|
597
|
+
CAMPAIGN: "CAMPAIGN";
|
|
598
598
|
DEVICE: "DEVICE";
|
|
599
599
|
}>;
|
|
600
600
|
export type AnalyticsSourceGroupBy = z.infer<typeof analyticsSourceGroupBySchema>;
|
|
@@ -606,23 +606,23 @@ export declare const analyticsSourcesQuerySchema: z.ZodObject<{
|
|
|
606
606
|
false: "false";
|
|
607
607
|
}>>;
|
|
608
608
|
groupBy: z.ZodOptional<z.ZodEnum<{
|
|
609
|
-
CAMPAIGN: "CAMPAIGN";
|
|
610
609
|
CHANNEL: "CHANNEL";
|
|
611
610
|
SOURCE: "SOURCE";
|
|
611
|
+
CAMPAIGN: "CAMPAIGN";
|
|
612
612
|
DEVICE: "DEVICE";
|
|
613
613
|
}>>;
|
|
614
614
|
}, z.core.$strip>;
|
|
615
615
|
export type AnalyticsSourcesParams = z.infer<typeof analyticsSourcesQuerySchema>;
|
|
616
616
|
export declare const analyticsSourceRowSchema: z.ZodObject<{
|
|
617
617
|
channel: z.ZodNullable<z.ZodEnum<{
|
|
618
|
+
PAID: "PAID";
|
|
618
619
|
DIRECT: "DIRECT";
|
|
620
|
+
CAMPAIGN: "CAMPAIGN";
|
|
621
|
+
UNKNOWN: "UNKNOWN";
|
|
619
622
|
ORGANIC_SEARCH: "ORGANIC_SEARCH";
|
|
620
623
|
SOCIAL: "SOCIAL";
|
|
621
|
-
PAID: "PAID";
|
|
622
624
|
EMAIL: "EMAIL";
|
|
623
|
-
CAMPAIGN: "CAMPAIGN";
|
|
624
625
|
REFERRAL: "REFERRAL";
|
|
625
|
-
UNKNOWN: "UNKNOWN";
|
|
626
626
|
}>>;
|
|
627
627
|
source: z.ZodNullable<z.ZodString>;
|
|
628
628
|
medium: z.ZodNullable<z.ZodString>;
|
|
@@ -644,21 +644,21 @@ export declare const analyticsSourceRowSchema: z.ZodObject<{
|
|
|
644
644
|
export type AnalyticsSourceRow = z.infer<typeof analyticsSourceRowSchema>;
|
|
645
645
|
export declare const analyticsSourcesSchema: z.ZodObject<{
|
|
646
646
|
groupBy: z.ZodEnum<{
|
|
647
|
-
CAMPAIGN: "CAMPAIGN";
|
|
648
647
|
CHANNEL: "CHANNEL";
|
|
649
648
|
SOURCE: "SOURCE";
|
|
649
|
+
CAMPAIGN: "CAMPAIGN";
|
|
650
650
|
DEVICE: "DEVICE";
|
|
651
651
|
}>;
|
|
652
652
|
rows: z.ZodArray<z.ZodObject<{
|
|
653
653
|
channel: z.ZodNullable<z.ZodEnum<{
|
|
654
|
+
PAID: "PAID";
|
|
654
655
|
DIRECT: "DIRECT";
|
|
656
|
+
CAMPAIGN: "CAMPAIGN";
|
|
657
|
+
UNKNOWN: "UNKNOWN";
|
|
655
658
|
ORGANIC_SEARCH: "ORGANIC_SEARCH";
|
|
656
659
|
SOCIAL: "SOCIAL";
|
|
657
|
-
PAID: "PAID";
|
|
658
660
|
EMAIL: "EMAIL";
|
|
659
|
-
CAMPAIGN: "CAMPAIGN";
|
|
660
661
|
REFERRAL: "REFERRAL";
|
|
661
|
-
UNKNOWN: "UNKNOWN";
|
|
662
662
|
}>>;
|
|
663
663
|
source: z.ZodNullable<z.ZodString>;
|
|
664
664
|
medium: z.ZodNullable<z.ZodString>;
|
|
@@ -807,12 +807,12 @@ export declare const analyticsSearchSchema: z.ZodObject<{
|
|
|
807
807
|
}, z.core.$strip>;
|
|
808
808
|
export type AnalyticsSearch = z.infer<typeof analyticsSearchSchema>;
|
|
809
809
|
export declare const analyticsCheckoutOutcomeSchema: z.ZodEnum<{
|
|
810
|
+
OTHER: "OTHER";
|
|
810
811
|
COMPLETED: "COMPLETED";
|
|
811
812
|
NOT_OPENED: "NOT_OPENED";
|
|
812
813
|
USER_CANCELED: "USER_CANCELED";
|
|
813
814
|
DECLINED: "DECLINED";
|
|
814
815
|
PREPARE_FAILURE: "PREPARE_FAILURE";
|
|
815
|
-
OTHER: "OTHER";
|
|
816
816
|
IN_PROGRESS: "IN_PROGRESS";
|
|
817
817
|
}>;
|
|
818
818
|
export type AnalyticsCheckoutOutcome = z.infer<typeof analyticsCheckoutOutcomeSchema>;
|
|
@@ -820,12 +820,12 @@ export declare const analyticsCheckoutSchema: z.ZodObject<{
|
|
|
820
820
|
sessions: z.ZodNumber;
|
|
821
821
|
outcomes: z.ZodArray<z.ZodObject<{
|
|
822
822
|
outcome: z.ZodEnum<{
|
|
823
|
+
OTHER: "OTHER";
|
|
823
824
|
COMPLETED: "COMPLETED";
|
|
824
825
|
NOT_OPENED: "NOT_OPENED";
|
|
825
826
|
USER_CANCELED: "USER_CANCELED";
|
|
826
827
|
DECLINED: "DECLINED";
|
|
827
828
|
PREPARE_FAILURE: "PREPARE_FAILURE";
|
|
828
|
-
OTHER: "OTHER";
|
|
829
829
|
IN_PROGRESS: "IN_PROGRESS";
|
|
830
830
|
}>;
|
|
831
831
|
sessions: z.ZodNumber;
|
|
@@ -1264,7 +1264,6 @@ export declare const claimTypeSchema: z.ZodEnum<{
|
|
|
1264
1264
|
}>;
|
|
1265
1265
|
export type ClaimType = z.infer<typeof claimTypeSchema>;
|
|
1266
1266
|
export declare const claimStatusSchema: z.ZodEnum<{
|
|
1267
|
-
COMPLETED: "COMPLETED";
|
|
1268
1267
|
REJECTED: "REJECTED";
|
|
1269
1268
|
REQUESTED: "REQUESTED";
|
|
1270
1269
|
HELD: "HELD";
|
|
@@ -1272,6 +1271,7 @@ export declare const claimStatusSchema: z.ZodEnum<{
|
|
|
1272
1271
|
COLLECTED: "COLLECTED";
|
|
1273
1272
|
REDELIVERING: "REDELIVERING";
|
|
1274
1273
|
APPROVED: "APPROVED";
|
|
1274
|
+
COMPLETED: "COMPLETED";
|
|
1275
1275
|
WITHDRAWN: "WITHDRAWN";
|
|
1276
1276
|
}>;
|
|
1277
1277
|
export type ClaimStatus = z.infer<typeof claimStatusSchema>;
|
|
@@ -1302,13 +1302,13 @@ export declare const claimReturnAddressSchema: z.ZodObject<{
|
|
|
1302
1302
|
export type ClaimReturnAddress = z.infer<typeof claimReturnAddressSchema>;
|
|
1303
1303
|
export declare const claimSchema: z.ZodObject<{
|
|
1304
1304
|
claimId: z.ZodString;
|
|
1305
|
+
claimNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1305
1306
|
type: z.ZodEnum<{
|
|
1306
1307
|
RETURN: "RETURN";
|
|
1307
1308
|
EXCHANGE: "EXCHANGE";
|
|
1308
1309
|
CANCEL: "CANCEL";
|
|
1309
1310
|
}>;
|
|
1310
1311
|
status: z.ZodEnum<{
|
|
1311
|
-
COMPLETED: "COMPLETED";
|
|
1312
1312
|
REJECTED: "REJECTED";
|
|
1313
1313
|
REQUESTED: "REQUESTED";
|
|
1314
1314
|
HELD: "HELD";
|
|
@@ -1316,6 +1316,7 @@ export declare const claimSchema: z.ZodObject<{
|
|
|
1316
1316
|
COLLECTED: "COLLECTED";
|
|
1317
1317
|
REDELIVERING: "REDELIVERING";
|
|
1318
1318
|
APPROVED: "APPROVED";
|
|
1319
|
+
COMPLETED: "COMPLETED";
|
|
1319
1320
|
WITHDRAWN: "WITHDRAWN";
|
|
1320
1321
|
}>;
|
|
1321
1322
|
orderId: z.ZodString;
|
|
@@ -1391,13 +1392,13 @@ export declare const claimListQuerySchema: z.ZodObject<{
|
|
|
1391
1392
|
/** `GET /v1/claims/{claimId}` 응답 — 클레임 + 상태 이력 */
|
|
1392
1393
|
export declare const claimDetailSchema: z.ZodObject<{
|
|
1393
1394
|
claimId: z.ZodString;
|
|
1395
|
+
claimNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
1394
1396
|
type: z.ZodEnum<{
|
|
1395
1397
|
RETURN: "RETURN";
|
|
1396
1398
|
EXCHANGE: "EXCHANGE";
|
|
1397
1399
|
CANCEL: "CANCEL";
|
|
1398
1400
|
}>;
|
|
1399
1401
|
status: z.ZodEnum<{
|
|
1400
|
-
COMPLETED: "COMPLETED";
|
|
1401
1402
|
REJECTED: "REJECTED";
|
|
1402
1403
|
REQUESTED: "REQUESTED";
|
|
1403
1404
|
HELD: "HELD";
|
|
@@ -1405,6 +1406,7 @@ export declare const claimDetailSchema: z.ZodObject<{
|
|
|
1405
1406
|
COLLECTED: "COLLECTED";
|
|
1406
1407
|
REDELIVERING: "REDELIVERING";
|
|
1407
1408
|
APPROVED: "APPROVED";
|
|
1409
|
+
COMPLETED: "COMPLETED";
|
|
1408
1410
|
WITHDRAWN: "WITHDRAWN";
|
|
1409
1411
|
}>;
|
|
1410
1412
|
orderId: z.ZodString;
|
|
@@ -1455,7 +1457,6 @@ export declare const claimDetailSchema: z.ZodObject<{
|
|
|
1455
1457
|
}, z.core.$strip>>;
|
|
1456
1458
|
histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1457
1459
|
status: z.ZodEnum<{
|
|
1458
|
-
COMPLETED: "COMPLETED";
|
|
1459
1460
|
REJECTED: "REJECTED";
|
|
1460
1461
|
REQUESTED: "REQUESTED";
|
|
1461
1462
|
HELD: "HELD";
|
|
@@ -1463,6 +1464,7 @@ export declare const claimDetailSchema: z.ZodObject<{
|
|
|
1463
1464
|
COLLECTED: "COLLECTED";
|
|
1464
1465
|
REDELIVERING: "REDELIVERING";
|
|
1465
1466
|
APPROVED: "APPROVED";
|
|
1467
|
+
COMPLETED: "COMPLETED";
|
|
1466
1468
|
WITHDRAWN: "WITHDRAWN";
|
|
1467
1469
|
}>;
|
|
1468
1470
|
actor: z.ZodEnum<{
|
|
@@ -2595,10 +2597,10 @@ export type CustomerOrder = z.infer<typeof customerOrderSchema>;
|
|
|
2595
2597
|
/** `POST /v1/customers/{id}/withdraw` 본문 */
|
|
2596
2598
|
export declare const withdrawCustomerRequestSchema: z.ZodObject<{
|
|
2597
2599
|
reason: z.ZodEnum<{
|
|
2598
|
-
OTHER: "OTHER";
|
|
2599
2600
|
BUYER_REQUEST: "BUYER_REQUEST";
|
|
2600
2601
|
DORMANT: "DORMANT";
|
|
2601
2602
|
ABUSE: "ABUSE";
|
|
2603
|
+
OTHER: "OTHER";
|
|
2602
2604
|
}>;
|
|
2603
2605
|
memo: z.ZodOptional<z.ZodString>;
|
|
2604
2606
|
}, z.core.$strip>;
|
|
@@ -3332,8 +3334,8 @@ export declare function requiresCollection(type: string | null | undefined): boo
|
|
|
3332
3334
|
export declare const NO_SHIPPING_BUNDLE_KEY = "none";
|
|
3333
3335
|
/** 배송비 유형 — 무료·유료·조건부 무료 */
|
|
3334
3336
|
export declare const deliveryTypeSchema: z.ZodEnum<{
|
|
3335
|
-
PAID: "PAID";
|
|
3336
3337
|
FREE: "FREE";
|
|
3338
|
+
PAID: "PAID";
|
|
3337
3339
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
3338
3340
|
}>;
|
|
3339
3341
|
export type DeliveryType = z.infer<typeof deliveryTypeSchema>;
|
|
@@ -3344,8 +3346,8 @@ export declare const productFulfillmentCreateSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
3344
3346
|
type: z.ZodLiteral<"SHIPPING">;
|
|
3345
3347
|
shipping: z.ZodOptional<z.ZodObject<{
|
|
3346
3348
|
deliveryType: z.ZodDefault<z.ZodEnum<{
|
|
3347
|
-
PAID: "PAID";
|
|
3348
3349
|
FREE: "FREE";
|
|
3350
|
+
PAID: "PAID";
|
|
3349
3351
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
3350
3352
|
}>>;
|
|
3351
3353
|
deliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3367,8 +3369,8 @@ export declare const productFulfillmentUpdateSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
3367
3369
|
type: z.ZodLiteral<"SHIPPING">;
|
|
3368
3370
|
shipping: z.ZodObject<{
|
|
3369
3371
|
deliveryType: z.ZodEnum<{
|
|
3370
|
-
PAID: "PAID";
|
|
3371
3372
|
FREE: "FREE";
|
|
3373
|
+
PAID: "PAID";
|
|
3372
3374
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
3373
3375
|
}>;
|
|
3374
3376
|
deliveryFee: z.ZodNumber;
|
|
@@ -3388,8 +3390,8 @@ export declare const productFulfillmentSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
3388
3390
|
type: z.ZodLiteral<"SHIPPING">;
|
|
3389
3391
|
shipping: z.ZodObject<{
|
|
3390
3392
|
deliveryType: z.ZodEnum<{
|
|
3391
|
-
PAID: "PAID";
|
|
3392
3393
|
FREE: "FREE";
|
|
3394
|
+
PAID: "PAID";
|
|
3393
3395
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
3394
3396
|
}>;
|
|
3395
3397
|
deliveryFee: z.ZodNumber;
|
|
@@ -3427,8 +3429,8 @@ export declare const productFulfillmentResponseSchema: z.ZodUnion<readonly [z.Zo
|
|
|
3427
3429
|
type: z.ZodLiteral<"SHIPPING">;
|
|
3428
3430
|
shipping: z.ZodObject<{
|
|
3429
3431
|
deliveryType: z.ZodEnum<{
|
|
3430
|
-
PAID: "PAID";
|
|
3431
3432
|
FREE: "FREE";
|
|
3433
|
+
PAID: "PAID";
|
|
3432
3434
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
3433
3435
|
}>;
|
|
3434
3436
|
deliveryFee: z.ZodNumber;
|
|
@@ -3478,6 +3480,7 @@ export type OrderItemFulfillmentSnapshotView = z.infer<typeof orderItemFulfillme
|
|
|
3478
3480
|
//#region src/schemas/order.d.ts
|
|
3479
3481
|
export declare const orderSummarySchema: z.ZodObject<{
|
|
3480
3482
|
orderId: z.ZodString;
|
|
3483
|
+
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
3481
3484
|
ordererName: z.ZodString;
|
|
3482
3485
|
itemCount: z.ZodNumber;
|
|
3483
3486
|
totalAmount: z.ZodNumber;
|
|
@@ -3515,6 +3518,7 @@ export declare const orderItemFulfillmentSchema: z.ZodObject<{
|
|
|
3515
3518
|
export type OrderItemFulfillment = z.infer<typeof orderItemFulfillmentSchema>;
|
|
3516
3519
|
export declare const orderItemSchema: z.ZodObject<{
|
|
3517
3520
|
orderItemId: z.ZodString;
|
|
3521
|
+
orderItemNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
3518
3522
|
orderId: z.ZodString;
|
|
3519
3523
|
status: z.ZodEnum<{
|
|
3520
3524
|
PAID: "PAID";
|
|
@@ -3608,6 +3612,7 @@ export declare const orderDiscountSchema: z.ZodObject<{
|
|
|
3608
3612
|
export type OrderDiscount = z.infer<typeof orderDiscountSchema>;
|
|
3609
3613
|
export declare const orderSchema: z.ZodObject<{
|
|
3610
3614
|
orderId: z.ZodString;
|
|
3615
|
+
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
3611
3616
|
orderedAt: z.ZodString;
|
|
3612
3617
|
orderer: z.ZodObject<{
|
|
3613
3618
|
name: z.ZodString;
|
|
@@ -3676,6 +3681,7 @@ export declare const orderSchema: z.ZodObject<{
|
|
|
3676
3681
|
testPayment: z.ZodBoolean;
|
|
3677
3682
|
items: z.ZodArray<z.ZodObject<{
|
|
3678
3683
|
orderItemId: z.ZodString;
|
|
3684
|
+
orderItemNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
3679
3685
|
orderId: z.ZodString;
|
|
3680
3686
|
status: z.ZodEnum<{
|
|
3681
3687
|
PAID: "PAID";
|
|
@@ -3767,6 +3773,7 @@ export declare const orderSummaryPageSchema: z.ZodObject<{
|
|
|
3767
3773
|
totalPages: z.ZodNumber;
|
|
3768
3774
|
contents: z.ZodArray<z.ZodObject<{
|
|
3769
3775
|
orderId: z.ZodString;
|
|
3776
|
+
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
3770
3777
|
ordererName: z.ZodString;
|
|
3771
3778
|
itemCount: z.ZodNumber;
|
|
3772
3779
|
totalAmount: z.ZodNumber;
|
|
@@ -3793,6 +3800,7 @@ export declare const orderItemPageSchema: z.ZodObject<{
|
|
|
3793
3800
|
totalPages: z.ZodNumber;
|
|
3794
3801
|
contents: z.ZodArray<z.ZodObject<{
|
|
3795
3802
|
orderItemId: z.ZodString;
|
|
3803
|
+
orderItemNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
3796
3804
|
orderId: z.ZodString;
|
|
3797
3805
|
status: z.ZodEnum<{
|
|
3798
3806
|
PAID: "PAID";
|
|
@@ -3878,13 +3886,13 @@ export declare const orderItemPageSchema: z.ZodObject<{
|
|
|
3878
3886
|
export type OrderItemPage = z.infer<typeof orderItemPageSchema>;
|
|
3879
3887
|
/**
|
|
3880
3888
|
* `GET /v1/orders` 쿼리 — OpenAPI 문서용 형태(값은 쿼리 문자열). 검증 규칙은 서버가 적용한다:
|
|
3881
|
-
* `orderedFrom` 누락 400 `MISSING_PARAMETER`,
|
|
3889
|
+
* `orderNo` 없이 `orderedFrom` 누락 400 `MISSING_PARAMETER`, 날짜·`orderNo` 형식 오류 400 `INVALID_PARAMETER`, 31일 초과 400 `RANGE_TOO_WIDE`,
|
|
3882
3890
|
* `testPayment`가 `true`·`false`가 아니면 400 `INVALID_PARAMETER`
|
|
3883
3891
|
*/
|
|
3884
3892
|
export declare const orderListQuerySchema: z.ZodObject<{
|
|
3885
3893
|
size: z.ZodOptional<z.ZodString>;
|
|
3886
3894
|
page: z.ZodOptional<z.ZodString>;
|
|
3887
|
-
orderedFrom: z.ZodString
|
|
3895
|
+
orderedFrom: z.ZodOptional<z.ZodString>;
|
|
3888
3896
|
orderedTo: z.ZodOptional<z.ZodString>;
|
|
3889
3897
|
status: z.ZodOptional<z.ZodEnum<{
|
|
3890
3898
|
PAID: "PAID";
|
|
@@ -3897,6 +3905,7 @@ export declare const orderListQuerySchema: z.ZodObject<{
|
|
|
3897
3905
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
3898
3906
|
}>>;
|
|
3899
3907
|
keyword: z.ZodOptional<z.ZodString>;
|
|
3908
|
+
orderNo: z.ZodOptional<z.ZodString>;
|
|
3900
3909
|
fulfillmentType: z.ZodOptional<z.ZodString>;
|
|
3901
3910
|
testPayment: z.ZodOptional<z.ZodEnum<{
|
|
3902
3911
|
true: "true";
|
|
@@ -3930,7 +3939,10 @@ export declare const orderItemListQuerySchema: z.ZodObject<{
|
|
|
3930
3939
|
}>>;
|
|
3931
3940
|
}, z.core.$strip>;
|
|
3932
3941
|
export interface OrderListParams extends PageParams {
|
|
3933
|
-
|
|
3942
|
+
/** 조회 시작 시각 — `orderNo`가 없으면 필수 */
|
|
3943
|
+
orderedFrom?: string;
|
|
3944
|
+
/** 주문번호 조회(이슈 #107) — 주면 기간 없이 그 주문만 찾는다 */
|
|
3945
|
+
orderNo?: string;
|
|
3934
3946
|
orderedTo?: string;
|
|
3935
3947
|
status?: z.infer<typeof orderItemStatusSchema>;
|
|
3936
3948
|
keyword?: string;
|
|
@@ -3947,16 +3959,16 @@ export interface OrderItemListParams extends PageParams {
|
|
|
3947
3959
|
testPayment?: "true" | "false";
|
|
3948
3960
|
}
|
|
3949
3961
|
export declare const deliveryMethodSchema: z.ZodEnum<{
|
|
3950
|
-
DIRECT: "DIRECT";
|
|
3951
3962
|
COURIER: "COURIER";
|
|
3963
|
+
DIRECT: "DIRECT";
|
|
3952
3964
|
QUICK: "QUICK";
|
|
3953
3965
|
NOTHING: "NOTHING";
|
|
3954
3966
|
}>;
|
|
3955
3967
|
export type DeliveryMethod = z.infer<typeof deliveryMethodSchema>;
|
|
3956
3968
|
export declare const dispatchRequestSchema: z.ZodObject<{
|
|
3957
3969
|
deliveryMethod: z.ZodEnum<{
|
|
3958
|
-
DIRECT: "DIRECT";
|
|
3959
3970
|
COURIER: "COURIER";
|
|
3971
|
+
DIRECT: "DIRECT";
|
|
3960
3972
|
QUICK: "QUICK";
|
|
3961
3973
|
NOTHING: "NOTHING";
|
|
3962
3974
|
}>;
|
|
@@ -3968,8 +3980,8 @@ export type DispatchRequest = z.infer<typeof dispatchRequestSchema>;
|
|
|
3968
3980
|
export declare const deliveryInfoSchema: z.ZodObject<{
|
|
3969
3981
|
orderItemId: z.ZodString;
|
|
3970
3982
|
deliveryMethod: z.ZodEnum<{
|
|
3971
|
-
DIRECT: "DIRECT";
|
|
3972
3983
|
COURIER: "COURIER";
|
|
3984
|
+
DIRECT: "DIRECT";
|
|
3973
3985
|
QUICK: "QUICK";
|
|
3974
3986
|
NOTHING: "NOTHING";
|
|
3975
3987
|
}>;
|
|
@@ -3995,8 +4007,8 @@ export declare const trackingStageResponseSchema: z.ZodString;
|
|
|
3995
4007
|
export declare const deliveryStatusSchema: z.ZodObject<{
|
|
3996
4008
|
orderItemId: z.ZodString;
|
|
3997
4009
|
deliveryMethod: z.ZodEnum<{
|
|
3998
|
-
DIRECT: "DIRECT";
|
|
3999
4010
|
COURIER: "COURIER";
|
|
4011
|
+
DIRECT: "DIRECT";
|
|
4000
4012
|
QUICK: "QUICK";
|
|
4001
4013
|
NOTHING: "NOTHING";
|
|
4002
4014
|
}>;
|
|
@@ -4909,6 +4921,7 @@ export declare const paymentRecordSchema: z.ZodObject<{
|
|
|
4909
4921
|
testPayment: z.ZodBoolean;
|
|
4910
4922
|
pgTransactionId: z.ZodNullable<z.ZodString>;
|
|
4911
4923
|
attemptId: z.ZodNullable<z.ZodString>;
|
|
4924
|
+
pgOrderId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
4912
4925
|
attemptCount: z.ZodNumber;
|
|
4913
4926
|
failCode: z.ZodNullable<z.ZodString>;
|
|
4914
4927
|
failMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -4955,6 +4968,7 @@ export declare const paymentRecordPageSchema: z.ZodObject<{
|
|
|
4955
4968
|
testPayment: z.ZodBoolean;
|
|
4956
4969
|
pgTransactionId: z.ZodNullable<z.ZodString>;
|
|
4957
4970
|
attemptId: z.ZodNullable<z.ZodString>;
|
|
4971
|
+
pgOrderId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
4958
4972
|
attemptCount: z.ZodNumber;
|
|
4959
4973
|
failCode: z.ZodNullable<z.ZodString>;
|
|
4960
4974
|
failMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -4966,6 +4980,7 @@ export declare const paymentRecordPageSchema: z.ZodObject<{
|
|
|
4966
4980
|
export type PaymentRecordPage = z.infer<typeof paymentRecordPageSchema>;
|
|
4967
4981
|
export declare const paymentAttemptRecordSchema: z.ZodObject<{
|
|
4968
4982
|
attemptId: z.ZodString;
|
|
4983
|
+
pgOrderId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
4969
4984
|
sequence: z.ZodNumber;
|
|
4970
4985
|
provider: z.ZodEnum<{
|
|
4971
4986
|
tosspayments: "tosspayments";
|
|
@@ -5045,6 +5060,7 @@ export declare const paymentRecordDetailSchema: z.ZodObject<{
|
|
|
5045
5060
|
testPayment: z.ZodBoolean;
|
|
5046
5061
|
pgTransactionId: z.ZodNullable<z.ZodString>;
|
|
5047
5062
|
attemptId: z.ZodNullable<z.ZodString>;
|
|
5063
|
+
pgOrderId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
5048
5064
|
attemptCount: z.ZodNumber;
|
|
5049
5065
|
failCode: z.ZodNullable<z.ZodString>;
|
|
5050
5066
|
failMessage: z.ZodNullable<z.ZodString>;
|
|
@@ -5055,6 +5071,7 @@ export declare const paymentRecordDetailSchema: z.ZodObject<{
|
|
|
5055
5071
|
merchantId: z.ZodNullable<z.ZodString>;
|
|
5056
5072
|
attempts: z.ZodArray<z.ZodObject<{
|
|
5057
5073
|
attemptId: z.ZodString;
|
|
5074
|
+
pgOrderId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
5058
5075
|
sequence: z.ZodNumber;
|
|
5059
5076
|
provider: z.ZodEnum<{
|
|
5060
5077
|
tosspayments: "tosspayments";
|
|
@@ -5342,11 +5359,11 @@ export type PointEntry = z.infer<typeof pointEntrySchema>;
|
|
|
5342
5359
|
export declare const pointLotSchema: z.ZodObject<{
|
|
5343
5360
|
lotId: z.ZodString;
|
|
5344
5361
|
source: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5345
|
-
PURCHASE: "PURCHASE";
|
|
5346
5362
|
REFUND_RESTORE: "REFUND_RESTORE";
|
|
5347
5363
|
ADJUST: "ADJUST";
|
|
5348
5364
|
OPENING: "OPENING";
|
|
5349
5365
|
REVIEW: "REVIEW";
|
|
5366
|
+
PURCHASE: "PURCHASE";
|
|
5350
5367
|
}>, z.ZodString]>;
|
|
5351
5368
|
amount: z.ZodNumber;
|
|
5352
5369
|
remaining: z.ZodNumber;
|
|
@@ -5361,11 +5378,11 @@ export declare const customerPointsSchema: z.ZodObject<{
|
|
|
5361
5378
|
lots: z.ZodArray<z.ZodObject<{
|
|
5362
5379
|
lotId: z.ZodString;
|
|
5363
5380
|
source: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5364
|
-
PURCHASE: "PURCHASE";
|
|
5365
5381
|
REFUND_RESTORE: "REFUND_RESTORE";
|
|
5366
5382
|
ADJUST: "ADJUST";
|
|
5367
5383
|
OPENING: "OPENING";
|
|
5368
5384
|
REVIEW: "REVIEW";
|
|
5385
|
+
PURCHASE: "PURCHASE";
|
|
5369
5386
|
}>, z.ZodString]>;
|
|
5370
5387
|
amount: z.ZodNumber;
|
|
5371
5388
|
remaining: z.ZodNumber;
|
|
@@ -5458,6 +5475,7 @@ export declare const productStatusSchema: z.ZodEnum<{
|
|
|
5458
5475
|
export type ProductStatus = z.infer<typeof productStatusSchema>;
|
|
5459
5476
|
export declare const productSummarySchema: z.ZodObject<{
|
|
5460
5477
|
productId: z.ZodString;
|
|
5478
|
+
productNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
5461
5479
|
name: z.ZodString;
|
|
5462
5480
|
status: z.ZodEnum<{
|
|
5463
5481
|
SALE: "SALE";
|
|
@@ -5503,6 +5521,7 @@ export type OptionGroup = z.infer<typeof optionGroupSchema>;
|
|
|
5503
5521
|
*/
|
|
5504
5522
|
export declare const productVariantSchema: z.ZodObject<{
|
|
5505
5523
|
variantId: z.ZodString;
|
|
5524
|
+
variantNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
5506
5525
|
valueIds: z.ZodArray<z.ZodString>;
|
|
5507
5526
|
name: z.ZodString;
|
|
5508
5527
|
additionalPrice: z.ZodNumber;
|
|
@@ -5645,6 +5664,7 @@ export declare const discountSchema: z.ZodObject<{
|
|
|
5645
5664
|
export type Discount = z.infer<typeof discountSchema>;
|
|
5646
5665
|
export declare const productSchema: z.ZodObject<{
|
|
5647
5666
|
productId: z.ZodString;
|
|
5667
|
+
productNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
|
|
5648
5668
|
name: z.ZodString;
|
|
5649
5669
|
status: z.ZodEnum<{
|
|
5650
5670
|
SALE: "SALE";
|
|
@@ -5681,6 +5701,7 @@ export declare const productSchema: z.ZodObject<{
|
|
|
5681
5701
|
}, z.core.$strip>>;
|
|
5682
5702
|
variants: z.ZodArray<z.ZodObject<{
|
|
5683
5703
|
variantId: z.ZodString;
|
|
5704
|
+
variantNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
5684
5705
|
valueIds: z.ZodArray<z.ZodString>;
|
|
5685
5706
|
name: z.ZodString;
|
|
5686
5707
|
additionalPrice: z.ZodNumber;
|
|
@@ -5725,8 +5746,8 @@ export declare const productSchema: z.ZodObject<{
|
|
|
5725
5746
|
type: z.ZodLiteral<"SHIPPING">;
|
|
5726
5747
|
shipping: z.ZodObject<{
|
|
5727
5748
|
deliveryType: z.ZodEnum<{
|
|
5728
|
-
PAID: "PAID";
|
|
5729
5749
|
FREE: "FREE";
|
|
5750
|
+
PAID: "PAID";
|
|
5730
5751
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
5731
5752
|
}>;
|
|
5732
5753
|
deliveryFee: z.ZodNumber;
|
|
@@ -5881,6 +5902,7 @@ export declare const optionModelSchema: z.ZodObject<{
|
|
|
5881
5902
|
}, z.core.$strip>>;
|
|
5882
5903
|
variants: z.ZodArray<z.ZodObject<{
|
|
5883
5904
|
variantId: z.ZodString;
|
|
5905
|
+
variantNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
5884
5906
|
valueIds: z.ZodArray<z.ZodString>;
|
|
5885
5907
|
name: z.ZodString;
|
|
5886
5908
|
additionalPrice: z.ZodNumber;
|
|
@@ -5948,8 +5970,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
5948
5970
|
type: z.ZodLiteral<"SHIPPING">;
|
|
5949
5971
|
shipping: z.ZodOptional<z.ZodObject<{
|
|
5950
5972
|
deliveryType: z.ZodDefault<z.ZodEnum<{
|
|
5951
|
-
PAID: "PAID";
|
|
5952
5973
|
FREE: "FREE";
|
|
5974
|
+
PAID: "PAID";
|
|
5953
5975
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
5954
5976
|
}>>;
|
|
5955
5977
|
deliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6034,8 +6056,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
6034
6056
|
type: z.ZodLiteral<"SHIPPING">;
|
|
6035
6057
|
shipping: z.ZodObject<{
|
|
6036
6058
|
deliveryType: z.ZodEnum<{
|
|
6037
|
-
PAID: "PAID";
|
|
6038
6059
|
FREE: "FREE";
|
|
6060
|
+
PAID: "PAID";
|
|
6039
6061
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
6040
6062
|
}>;
|
|
6041
6063
|
deliveryFee: z.ZodNumber;
|
|
@@ -6128,8 +6150,8 @@ export declare const productPatchRequestSchema: z.ZodObject<{
|
|
|
6128
6150
|
type: z.ZodLiteral<"SHIPPING">;
|
|
6129
6151
|
shipping: z.ZodObject<{
|
|
6130
6152
|
deliveryType: z.ZodEnum<{
|
|
6131
|
-
PAID: "PAID";
|
|
6132
6153
|
FREE: "FREE";
|
|
6154
|
+
PAID: "PAID";
|
|
6133
6155
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
6134
6156
|
}>;
|
|
6135
6157
|
deliveryFee: z.ZodNumber;
|
|
@@ -6163,6 +6185,8 @@ export interface ProductListParams extends PageParams {
|
|
|
6163
6185
|
categoryId?: string;
|
|
6164
6186
|
keyword?: string;
|
|
6165
6187
|
sellerCode?: string;
|
|
6188
|
+
/** 상품번호(이슈 #107, 상점 범위) — 그 상품만 */
|
|
6189
|
+
productNo?: number;
|
|
6166
6190
|
sort?: ProductSort;
|
|
6167
6191
|
}
|
|
6168
6192
|
/** `GET /v1/products` 쿼리 — OpenAPI 문서용 형태(값은 쿼리 문자열) */
|
|
@@ -6178,6 +6202,7 @@ export declare const productListQuerySchema: z.ZodObject<{
|
|
|
6178
6202
|
categoryId: z.ZodOptional<z.ZodString>;
|
|
6179
6203
|
keyword: z.ZodOptional<z.ZodString>;
|
|
6180
6204
|
sellerCode: z.ZodOptional<z.ZodString>;
|
|
6205
|
+
productNo: z.ZodOptional<z.ZodString>;
|
|
6181
6206
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
6182
6207
|
"createdAt.desc": "createdAt.desc";
|
|
6183
6208
|
"createdAt.asc": "createdAt.asc";
|
|
@@ -7090,9 +7115,9 @@ export type StorefrontDeploymentLog = z.infer<typeof storefrontDeploymentLogSche
|
|
|
7090
7115
|
export declare const storefrontDeploymentSchema: z.ZodObject<{
|
|
7091
7116
|
siteId: z.ZodString;
|
|
7092
7117
|
status: z.ZodEnum<{
|
|
7093
|
-
IN_PROGRESS: "IN_PROGRESS";
|
|
7094
7118
|
FAILED: "FAILED";
|
|
7095
7119
|
SUCCEEDED: "SUCCEEDED";
|
|
7120
|
+
IN_PROGRESS: "IN_PROGRESS";
|
|
7096
7121
|
}>;
|
|
7097
7122
|
url: z.ZodString;
|
|
7098
7123
|
startedAt: z.ZodString;
|
|
@@ -7550,8 +7575,8 @@ export declare const runStorefrontCheckRequestSchema: z.ZodObject<{
|
|
|
7550
7575
|
}, z.core.$strip>;
|
|
7551
7576
|
export type RunStorefrontCheckRequest = z.infer<typeof runStorefrontCheckRequestSchema>;
|
|
7552
7577
|
export declare const storefrontCheckStatusSchema: z.ZodEnum<{
|
|
7553
|
-
UNKNOWN: "UNKNOWN";
|
|
7554
7578
|
FAILED: "FAILED";
|
|
7579
|
+
UNKNOWN: "UNKNOWN";
|
|
7555
7580
|
RUNNING: "RUNNING";
|
|
7556
7581
|
QUEUED: "QUEUED";
|
|
7557
7582
|
PASSED: "PASSED";
|
|
@@ -7564,8 +7589,8 @@ export declare const storefrontCheckSchema: z.ZodObject<{
|
|
|
7564
7589
|
checkId: z.ZodString;
|
|
7565
7590
|
check: z.ZodString;
|
|
7566
7591
|
status: z.ZodEnum<{
|
|
7567
|
-
UNKNOWN: "UNKNOWN";
|
|
7568
7592
|
FAILED: "FAILED";
|
|
7593
|
+
UNKNOWN: "UNKNOWN";
|
|
7569
7594
|
RUNNING: "RUNNING";
|
|
7570
7595
|
QUEUED: "QUEUED";
|
|
7571
7596
|
PASSED: "PASSED";
|
|
@@ -8310,6 +8335,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8310
8335
|
totalPages: number;
|
|
8311
8336
|
contents: {
|
|
8312
8337
|
productId: string;
|
|
8338
|
+
productNo: number | null;
|
|
8313
8339
|
name: string;
|
|
8314
8340
|
status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
|
|
8315
8341
|
salePrice: number;
|
|
@@ -8327,6 +8353,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8327
8353
|
}>;
|
|
8328
8354
|
get: (productId: string) => Promise<{
|
|
8329
8355
|
productId: string;
|
|
8356
|
+
productNo: number | null;
|
|
8330
8357
|
name: string;
|
|
8331
8358
|
status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
|
|
8332
8359
|
salePrice: number;
|
|
@@ -8348,6 +8375,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8348
8375
|
}[];
|
|
8349
8376
|
variants: {
|
|
8350
8377
|
variantId: string;
|
|
8378
|
+
variantNo: string | null;
|
|
8351
8379
|
valueIds: string[];
|
|
8352
8380
|
name: string;
|
|
8353
8381
|
additionalPrice: number;
|
|
@@ -8386,7 +8414,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8386
8414
|
fulfillment: UnknownFulfillment | {
|
|
8387
8415
|
type: "SHIPPING";
|
|
8388
8416
|
shipping: {
|
|
8389
|
-
deliveryType: "
|
|
8417
|
+
deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
|
|
8390
8418
|
deliveryFee: number;
|
|
8391
8419
|
conditionalFreeAmount: number | null;
|
|
8392
8420
|
shippingAddressId: string | null;
|
|
@@ -8425,6 +8453,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8425
8453
|
}>;
|
|
8426
8454
|
create: (body: ProductCreateRequestInput, idempotencyKey?: string) => Promise<{
|
|
8427
8455
|
productId: string;
|
|
8456
|
+
productNo: number | null;
|
|
8428
8457
|
name: string;
|
|
8429
8458
|
status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
|
|
8430
8459
|
salePrice: number;
|
|
@@ -8446,6 +8475,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8446
8475
|
}[];
|
|
8447
8476
|
variants: {
|
|
8448
8477
|
variantId: string;
|
|
8478
|
+
variantNo: string | null;
|
|
8449
8479
|
valueIds: string[];
|
|
8450
8480
|
name: string;
|
|
8451
8481
|
additionalPrice: number;
|
|
@@ -8484,7 +8514,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8484
8514
|
fulfillment: UnknownFulfillment | {
|
|
8485
8515
|
type: "SHIPPING";
|
|
8486
8516
|
shipping: {
|
|
8487
|
-
deliveryType: "
|
|
8517
|
+
deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
|
|
8488
8518
|
deliveryFee: number;
|
|
8489
8519
|
conditionalFreeAmount: number | null;
|
|
8490
8520
|
shippingAddressId: string | null;
|
|
@@ -8523,6 +8553,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8523
8553
|
}>;
|
|
8524
8554
|
update: (productId: string, body: ProductReplaceRequestInput) => Promise<{
|
|
8525
8555
|
productId: string;
|
|
8556
|
+
productNo: number | null;
|
|
8526
8557
|
name: string;
|
|
8527
8558
|
status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
|
|
8528
8559
|
salePrice: number;
|
|
@@ -8544,6 +8575,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8544
8575
|
}[];
|
|
8545
8576
|
variants: {
|
|
8546
8577
|
variantId: string;
|
|
8578
|
+
variantNo: string | null;
|
|
8547
8579
|
valueIds: string[];
|
|
8548
8580
|
name: string;
|
|
8549
8581
|
additionalPrice: number;
|
|
@@ -8582,7 +8614,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8582
8614
|
fulfillment: UnknownFulfillment | {
|
|
8583
8615
|
type: "SHIPPING";
|
|
8584
8616
|
shipping: {
|
|
8585
|
-
deliveryType: "
|
|
8617
|
+
deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
|
|
8586
8618
|
deliveryFee: number;
|
|
8587
8619
|
conditionalFreeAmount: number | null;
|
|
8588
8620
|
shippingAddressId: string | null;
|
|
@@ -8645,6 +8677,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8645
8677
|
}[];
|
|
8646
8678
|
variants: {
|
|
8647
8679
|
variantId: string;
|
|
8680
|
+
variantNo: string | null;
|
|
8648
8681
|
valueIds: string[];
|
|
8649
8682
|
name: string;
|
|
8650
8683
|
additionalPrice: number;
|
|
@@ -8698,6 +8731,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8698
8731
|
}[];
|
|
8699
8732
|
variants: {
|
|
8700
8733
|
variantId: string;
|
|
8734
|
+
variantNo: string | null;
|
|
8701
8735
|
valueIds: string[];
|
|
8702
8736
|
name: string;
|
|
8703
8737
|
additionalPrice: number;
|
|
@@ -8924,7 +8958,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8924
8958
|
value: true;
|
|
8925
8959
|
} | {
|
|
8926
8960
|
field: "bestSelling";
|
|
8927
|
-
days:
|
|
8961
|
+
days: 30 | 7 | 90;
|
|
8928
8962
|
top: number;
|
|
8929
8963
|
} | {
|
|
8930
8964
|
[x: string]: unknown;
|
|
@@ -8974,7 +9008,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8974
9008
|
value: true;
|
|
8975
9009
|
} | {
|
|
8976
9010
|
field: "bestSelling";
|
|
8977
|
-
days:
|
|
9011
|
+
days: 30 | 7 | 90;
|
|
8978
9012
|
top: number;
|
|
8979
9013
|
} | {
|
|
8980
9014
|
[x: string]: unknown;
|
|
@@ -9017,7 +9051,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9017
9051
|
value: true;
|
|
9018
9052
|
} | {
|
|
9019
9053
|
field: "bestSelling";
|
|
9020
|
-
days:
|
|
9054
|
+
days: 30 | 7 | 90;
|
|
9021
9055
|
top: number;
|
|
9022
9056
|
} | {
|
|
9023
9057
|
[x: string]: unknown;
|
|
@@ -9059,7 +9093,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9059
9093
|
value: true;
|
|
9060
9094
|
} | {
|
|
9061
9095
|
field: "bestSelling";
|
|
9062
|
-
days:
|
|
9096
|
+
days: 30 | 7 | 90;
|
|
9063
9097
|
top: number;
|
|
9064
9098
|
} | {
|
|
9065
9099
|
[x: string]: unknown;
|
|
@@ -9122,7 +9156,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9122
9156
|
value: true;
|
|
9123
9157
|
} | {
|
|
9124
9158
|
field: "bestSelling";
|
|
9125
|
-
days:
|
|
9159
|
+
days: 30 | 7 | 90;
|
|
9126
9160
|
top: number;
|
|
9127
9161
|
} | {
|
|
9128
9162
|
[x: string]: unknown;
|
|
@@ -9165,7 +9199,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9165
9199
|
value: true;
|
|
9166
9200
|
} | {
|
|
9167
9201
|
field: "bestSelling";
|
|
9168
|
-
days:
|
|
9202
|
+
days: 30 | 7 | 90;
|
|
9169
9203
|
top: number;
|
|
9170
9204
|
} | {
|
|
9171
9205
|
[x: string]: unknown;
|
|
@@ -9365,6 +9399,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9365
9399
|
totalPages: number;
|
|
9366
9400
|
contents: {
|
|
9367
9401
|
orderId: string;
|
|
9402
|
+
orderNo: string | null;
|
|
9368
9403
|
ordererName: string;
|
|
9369
9404
|
itemCount: number;
|
|
9370
9405
|
totalAmount: number;
|
|
@@ -9375,6 +9410,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9375
9410
|
}>;
|
|
9376
9411
|
get: (orderId: string) => Promise<{
|
|
9377
9412
|
orderId: string;
|
|
9413
|
+
orderNo: string | null;
|
|
9378
9414
|
orderedAt: string;
|
|
9379
9415
|
orderer: {
|
|
9380
9416
|
name: string;
|
|
@@ -9433,6 +9469,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9433
9469
|
testPayment: boolean;
|
|
9434
9470
|
items: {
|
|
9435
9471
|
orderItemId: string;
|
|
9472
|
+
orderItemNo: string | null;
|
|
9436
9473
|
orderId: string;
|
|
9437
9474
|
status: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
|
|
9438
9475
|
claimStatus: "CANCEL_REQUESTED" | "RETURN_REQUESTED" | "EXCHANGE_REQUESTED" | null;
|
|
@@ -9519,6 +9556,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9519
9556
|
totalPages: number;
|
|
9520
9557
|
contents: {
|
|
9521
9558
|
orderItemId: string;
|
|
9559
|
+
orderItemNo: string | null;
|
|
9522
9560
|
orderId: string;
|
|
9523
9561
|
status: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
|
|
9524
9562
|
claimStatus: "CANCEL_REQUESTED" | "RETURN_REQUESTED" | "EXCHANGE_REQUESTED" | null;
|
|
@@ -9606,7 +9644,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9606
9644
|
}>;
|
|
9607
9645
|
dispatch: (orderItemId: string, body: DispatchRequest, idempotencyKey?: string) => Promise<{
|
|
9608
9646
|
orderItemId: string;
|
|
9609
|
-
deliveryMethod: "
|
|
9647
|
+
deliveryMethod: "COURIER" | "DIRECT" | "QUICK" | "NOTHING";
|
|
9610
9648
|
carrierCode: string | null;
|
|
9611
9649
|
carrierName: string | null;
|
|
9612
9650
|
trackingNumber: string | null;
|
|
@@ -9634,6 +9672,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9634
9672
|
*/
|
|
9635
9673
|
markDelivered: (orderItemId: string, idempotencyKey?: string) => Promise<{
|
|
9636
9674
|
orderItemId: string;
|
|
9675
|
+
orderItemNo: string | null;
|
|
9637
9676
|
orderId: string;
|
|
9638
9677
|
status: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
|
|
9639
9678
|
claimStatus: "CANCEL_REQUESTED" | "RETURN_REQUESTED" | "EXCHANGE_REQUESTED" | null;
|
|
@@ -9703,6 +9742,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9703
9742
|
*/
|
|
9704
9743
|
fulfill: (orderItemId: string, body?: FulfillRequest, idempotencyKey?: string) => Promise<{
|
|
9705
9744
|
orderItemId: string;
|
|
9745
|
+
orderItemNo: string | null;
|
|
9706
9746
|
orderId: string;
|
|
9707
9747
|
status: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
|
|
9708
9748
|
claimStatus: "CANCEL_REQUESTED" | "RETURN_REQUESTED" | "EXCHANGE_REQUESTED" | null;
|
|
@@ -9768,7 +9808,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9768
9808
|
}>;
|
|
9769
9809
|
getDelivery: (orderItemId: string) => Promise<{
|
|
9770
9810
|
orderItemId: string;
|
|
9771
|
-
deliveryMethod: "
|
|
9811
|
+
deliveryMethod: "COURIER" | "DIRECT" | "QUICK" | "NOTHING";
|
|
9772
9812
|
carrierCode: string | null;
|
|
9773
9813
|
carrierName: string | null;
|
|
9774
9814
|
trackingNumber: string | null;
|
|
@@ -9805,8 +9845,9 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9805
9845
|
totalPages: number;
|
|
9806
9846
|
contents: {
|
|
9807
9847
|
claimId: string;
|
|
9848
|
+
claimNo: string | null;
|
|
9808
9849
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
9809
|
-
status: "
|
|
9850
|
+
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
|
|
9810
9851
|
orderId: string;
|
|
9811
9852
|
orderItemId: string;
|
|
9812
9853
|
productName: string;
|
|
@@ -9844,8 +9885,9 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9844
9885
|
}>;
|
|
9845
9886
|
get: (claimId: string) => Promise<{
|
|
9846
9887
|
claimId: string;
|
|
9888
|
+
claimNo: string | null;
|
|
9847
9889
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
9848
|
-
status: "
|
|
9890
|
+
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
|
|
9849
9891
|
orderId: string;
|
|
9850
9892
|
orderItemId: string;
|
|
9851
9893
|
productName: string;
|
|
@@ -9880,7 +9922,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9880
9922
|
address2: string | null;
|
|
9881
9923
|
} | null;
|
|
9882
9924
|
histories?: {
|
|
9883
|
-
status: "
|
|
9925
|
+
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
|
|
9884
9926
|
actor: "SYSTEM" | "BUYER" | "SELLER";
|
|
9885
9927
|
occurredAt: string;
|
|
9886
9928
|
}[] | undefined;
|
|
@@ -9912,8 +9954,9 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9912
9954
|
/** 교환 완료 — 재배송 중인 교환을 셀러가 명시적으로 끝낸다 */
|
|
9913
9955
|
completeExchange: (claimId: string) => Promise<{
|
|
9914
9956
|
claimId: string;
|
|
9957
|
+
claimNo: string | null;
|
|
9915
9958
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
9916
|
-
status: "
|
|
9959
|
+
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "COMPLETED" | "WITHDRAWN";
|
|
9917
9960
|
orderId: string;
|
|
9918
9961
|
orderItemId: string;
|
|
9919
9962
|
productName: string;
|
|
@@ -10834,7 +10877,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10834
10877
|
conversionRate: number | null;
|
|
10835
10878
|
};
|
|
10836
10879
|
funnel: {
|
|
10837
|
-
step: "
|
|
10880
|
+
step: "PURCHASE" | "SESSION" | "PRODUCT_VIEW" | "ADD_TO_CART" | "BEGIN_CHECKOUT";
|
|
10838
10881
|
sessions: number;
|
|
10839
10882
|
rateFromPrevious: number | null;
|
|
10840
10883
|
}[];
|
|
@@ -10888,9 +10931,9 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10888
10931
|
}>;
|
|
10889
10932
|
/** `GET /v1/analytics/sources` — 채널·소스·캠페인·기기별 세션과 구매 */
|
|
10890
10933
|
sources: (params: AnalyticsSourcesParams) => Promise<{
|
|
10891
|
-
groupBy: "
|
|
10934
|
+
groupBy: "CHANNEL" | "SOURCE" | "CAMPAIGN" | "DEVICE";
|
|
10892
10935
|
rows: {
|
|
10893
|
-
channel: "
|
|
10936
|
+
channel: "PAID" | "DIRECT" | "CAMPAIGN" | "UNKNOWN" | "ORGANIC_SEARCH" | "SOCIAL" | "EMAIL" | "REFERRAL" | null;
|
|
10894
10937
|
source: string | null;
|
|
10895
10938
|
medium: string | null;
|
|
10896
10939
|
campaign: string | null;
|
|
@@ -10995,7 +11038,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10995
11038
|
checkout: (params: AnalyticsRangeParams) => Promise<{
|
|
10996
11039
|
sessions: number;
|
|
10997
11040
|
outcomes: {
|
|
10998
|
-
outcome: "COMPLETED" | "NOT_OPENED" | "USER_CANCELED" | "DECLINED" | "PREPARE_FAILURE" | "
|
|
11041
|
+
outcome: "OTHER" | "COMPLETED" | "NOT_OPENED" | "USER_CANCELED" | "DECLINED" | "PREPARE_FAILURE" | "IN_PROGRESS";
|
|
10999
11042
|
sessions: number;
|
|
11000
11043
|
}[];
|
|
11001
11044
|
from: string;
|
|
@@ -11035,6 +11078,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11035
11078
|
testPayment: boolean;
|
|
11036
11079
|
pgTransactionId: string | null;
|
|
11037
11080
|
attemptId: string | null;
|
|
11081
|
+
pgOrderId: string | null;
|
|
11038
11082
|
attemptCount: number;
|
|
11039
11083
|
failCode: string | null;
|
|
11040
11084
|
failMessage: string | null;
|
|
@@ -11059,6 +11103,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11059
11103
|
testPayment: boolean;
|
|
11060
11104
|
pgTransactionId: string | null;
|
|
11061
11105
|
attemptId: string | null;
|
|
11106
|
+
pgOrderId: string | null;
|
|
11062
11107
|
attemptCount: number;
|
|
11063
11108
|
failCode: string | null;
|
|
11064
11109
|
failMessage: string | null;
|
|
@@ -11069,6 +11114,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11069
11114
|
merchantId: string | null;
|
|
11070
11115
|
attempts: {
|
|
11071
11116
|
attemptId: string;
|
|
11117
|
+
pgOrderId: string | null;
|
|
11072
11118
|
sequence: number;
|
|
11073
11119
|
provider: "tosspayments" | "portone";
|
|
11074
11120
|
status: string;
|
|
@@ -12096,7 +12142,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12096
12142
|
list: (params?: ApprovalListOptions) => Promise<{
|
|
12097
12143
|
items: {
|
|
12098
12144
|
approvalId: string;
|
|
12099
|
-
status: "
|
|
12145
|
+
status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
|
|
12100
12146
|
operationId: string;
|
|
12101
12147
|
method: string;
|
|
12102
12148
|
path: string;
|
|
@@ -12146,7 +12192,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12146
12192
|
}>;
|
|
12147
12193
|
get: (approvalId: string) => Promise<{
|
|
12148
12194
|
approvalId: string;
|
|
12149
|
-
status: "
|
|
12195
|
+
status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
|
|
12150
12196
|
operationId: string;
|
|
12151
12197
|
method: string;
|
|
12152
12198
|
path: string;
|
|
@@ -12198,7 +12244,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12198
12244
|
*/
|
|
12199
12245
|
approve: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
|
|
12200
12246
|
approvalId: string;
|
|
12201
|
-
status: "
|
|
12247
|
+
status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
|
|
12202
12248
|
operationId: string;
|
|
12203
12249
|
method: string;
|
|
12204
12250
|
path: string;
|
|
@@ -12246,7 +12292,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12246
12292
|
}>;
|
|
12247
12293
|
reject: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
|
|
12248
12294
|
approvalId: string;
|
|
12249
|
-
status: "
|
|
12295
|
+
status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
|
|
12250
12296
|
operationId: string;
|
|
12251
12297
|
method: string;
|
|
12252
12298
|
path: string;
|
|
@@ -12490,7 +12536,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12490
12536
|
/** `GET /v1/storefront/site/deployment` — 배포 진행(단계·기록). 만든 뒤 반영이 끝날 때까지 폴링한다 */
|
|
12491
12537
|
getDeployment: () => Promise<{
|
|
12492
12538
|
siteId: string;
|
|
12493
|
-
status: "
|
|
12539
|
+
status: "FAILED" | "SUCCEEDED" | "IN_PROGRESS";
|
|
12494
12540
|
url: string;
|
|
12495
12541
|
startedAt: string;
|
|
12496
12542
|
finishedAt: string | null;
|
|
@@ -12512,7 +12558,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12512
12558
|
/** `POST /v1/storefront/site/deployment/retry` (202) — 밀린 반영을 곧바로 다시 시도한다. 이미 반영됐으면 그대로다 */
|
|
12513
12559
|
retryDeployment: () => Promise<{
|
|
12514
12560
|
siteId: string;
|
|
12515
|
-
status: "
|
|
12561
|
+
status: "FAILED" | "SUCCEEDED" | "IN_PROGRESS";
|
|
12516
12562
|
url: string;
|
|
12517
12563
|
startedAt: string;
|
|
12518
12564
|
finishedAt: string | null;
|
|
@@ -13087,7 +13133,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13087
13133
|
runCheck: (body: RunStorefrontCheckRequest) => Promise<{
|
|
13088
13134
|
checkId: string;
|
|
13089
13135
|
check: string;
|
|
13090
|
-
status: "
|
|
13136
|
+
status: "FAILED" | "UNKNOWN" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
|
|
13091
13137
|
exitCode: number | null;
|
|
13092
13138
|
durationMs: number | null;
|
|
13093
13139
|
outputTail: string | null;
|
|
@@ -13101,7 +13147,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13101
13147
|
getCheck: (checkId: string) => Promise<{
|
|
13102
13148
|
checkId: string;
|
|
13103
13149
|
check: string;
|
|
13104
|
-
status: "
|
|
13150
|
+
status: "FAILED" | "UNKNOWN" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
|
|
13105
13151
|
exitCode: number | null;
|
|
13106
13152
|
durationMs: number | null;
|
|
13107
13153
|
outputTail: string | null;
|
|
@@ -13850,6 +13896,22 @@ export declare function refreshUserToken(options: {
|
|
|
13850
13896
|
fetch?: typeof globalThis.fetch;
|
|
13851
13897
|
}): Promise<OAuthTokenResponse>;
|
|
13852
13898
|
//#endregion
|
|
13899
|
+
//#region src/schemas/commerce-number.d.ts
|
|
13900
|
+
/**
|
|
13901
|
+
* 국내 쇼핑몰 번호 체계(이슈 #107) — 공개 ID(`ord_…` 등)와 따로 싣는 숫자 번호의 표기·필드.
|
|
13902
|
+
* 번호는 서버가 만들고 생성 후 바뀌지 않는다. 새 필드라 옛 서버 응답에는 없다 — 파싱은 null로 채운다.
|
|
13903
|
+
*/
|
|
13904
|
+
/**
|
|
13905
|
+
* 번호 표기 — 숫자를 앞에서부터 4자리씩 하이픈으로 나눈다. 주문번호 `26100284731592` → `2610-0284-7315-92`,
|
|
13906
|
+
* 상품주문번호 `2610028473159201` → `2610-0284-7315-9201`. 숫자만으로 된 값이 아니면(클레임번호 `C…`) 그대로, 없으면 빈 문자열이다.
|
|
13907
|
+
* 화면 표기 전용이다 — API에 보낼 때는 원래 값을 쓴다(주문번호 조회는 하이픈도 받는다)
|
|
13908
|
+
*/
|
|
13909
|
+
export declare function formatOrderNo(no: string | null | undefined): string;
|
|
13910
|
+
/** 표기 하이픈·공백을 지운 숫자 번호. 숫자가 아닌 글자가 남거나 비면 null */
|
|
13911
|
+
export declare function parseOrderNo(value: string): string | null;
|
|
13912
|
+
/** 응답 번호 필드 — 서버는 항상 싣고, 번호 체계 이전 행(백필 전)·옛 서버 응답은 null이다 */
|
|
13913
|
+
export declare function commerceNumberField(description: string): z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
13914
|
+
//#endregion
|
|
13853
13915
|
//#region src/schemas/customer-delegation.d.ts
|
|
13854
13916
|
export declare const customerDelegationRequestSchema: z.ZodObject<{
|
|
13855
13917
|
uid: z.ZodOptional<z.ZodString>;
|
|
@@ -14959,6 +15021,7 @@ export type McpToolEvent = z.infer<typeof mcpToolEventSchema>;
|
|
|
14959
15021
|
//#region src/schemas/webhook-event.d.ts
|
|
14960
15022
|
export declare const orderWebhookEventDataSchema: z.ZodObject<{
|
|
14961
15023
|
orderId: z.ZodString;
|
|
15024
|
+
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
14962
15025
|
status: z.ZodEnum<{
|
|
14963
15026
|
PAID: "PAID";
|
|
14964
15027
|
CANCELED: "CANCELED";
|
|
@@ -15008,6 +15071,7 @@ export type OrderWebhookEventData = z.infer<typeof orderWebhookEventDataSchema>;
|
|
|
15008
15071
|
*/
|
|
15009
15072
|
export declare const orderFulfilledWebhookEventDataSchema: z.ZodObject<{
|
|
15010
15073
|
orderId: z.ZodString;
|
|
15074
|
+
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
15011
15075
|
orderItemId: z.ZodString;
|
|
15012
15076
|
status: z.ZodEnum<{
|
|
15013
15077
|
PAID: "PAID";
|
|
@@ -15047,6 +15111,7 @@ export type OrderFulfilledWebhookEventData = z.infer<typeof orderFulfilledWebhoo
|
|
|
15047
15111
|
*/
|
|
15048
15112
|
export declare const orderCanceledWebhookEventDataSchema: z.ZodObject<{
|
|
15049
15113
|
orderId: z.ZodString;
|
|
15114
|
+
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
15050
15115
|
orderItemId: z.ZodString;
|
|
15051
15116
|
status: z.ZodEnum<{
|
|
15052
15117
|
PAID: "PAID";
|
|
@@ -15082,6 +15147,7 @@ export declare const orderCanceledWebhookEventDataSchema: z.ZodObject<{
|
|
|
15082
15147
|
export type OrderCanceledWebhookEventData = z.infer<typeof orderCanceledWebhookEventDataSchema>;
|
|
15083
15148
|
export declare const claimWebhookEventDataSchema: z.ZodObject<{
|
|
15084
15149
|
claimId: z.ZodString;
|
|
15150
|
+
claimNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
15085
15151
|
orderId: z.ZodString;
|
|
15086
15152
|
orderItemId: z.ZodString;
|
|
15087
15153
|
claimType: z.ZodEnum<{
|
|
@@ -15090,7 +15156,6 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
|
|
|
15090
15156
|
CANCEL: "CANCEL";
|
|
15091
15157
|
}>;
|
|
15092
15158
|
status: z.ZodEnum<{
|
|
15093
|
-
COMPLETED: "COMPLETED";
|
|
15094
15159
|
REJECTED: "REJECTED";
|
|
15095
15160
|
REQUESTED: "REQUESTED";
|
|
15096
15161
|
HELD: "HELD";
|
|
@@ -15098,6 +15163,7 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
|
|
|
15098
15163
|
COLLECTED: "COLLECTED";
|
|
15099
15164
|
REDELIVERING: "REDELIVERING";
|
|
15100
15165
|
APPROVED: "APPROVED";
|
|
15166
|
+
COMPLETED: "COMPLETED";
|
|
15101
15167
|
WITHDRAWN: "WITHDRAWN";
|
|
15102
15168
|
}>;
|
|
15103
15169
|
quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -15138,6 +15204,7 @@ export declare const orderWebhookEventSchema: z.ZodObject<{
|
|
|
15138
15204
|
}>;
|
|
15139
15205
|
data: z.ZodObject<{
|
|
15140
15206
|
orderId: z.ZodString;
|
|
15207
|
+
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
15141
15208
|
status: z.ZodEnum<{
|
|
15142
15209
|
PAID: "PAID";
|
|
15143
15210
|
CANCELED: "CANCELED";
|
|
@@ -15189,6 +15256,7 @@ export declare const orderFulfilledWebhookEventSchema: z.ZodObject<{
|
|
|
15189
15256
|
type: z.ZodLiteral<"ORDER.FULFILLED">;
|
|
15190
15257
|
data: z.ZodObject<{
|
|
15191
15258
|
orderId: z.ZodString;
|
|
15259
|
+
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
15192
15260
|
orderItemId: z.ZodString;
|
|
15193
15261
|
status: z.ZodEnum<{
|
|
15194
15262
|
PAID: "PAID";
|
|
@@ -15229,6 +15297,7 @@ export declare const orderCanceledWebhookEventSchema: z.ZodObject<{
|
|
|
15229
15297
|
type: z.ZodLiteral<"ORDER.CANCELED">;
|
|
15230
15298
|
data: z.ZodObject<{
|
|
15231
15299
|
orderId: z.ZodString;
|
|
15300
|
+
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
15232
15301
|
orderItemId: z.ZodString;
|
|
15233
15302
|
status: z.ZodEnum<{
|
|
15234
15303
|
PAID: "PAID";
|
|
@@ -15275,6 +15344,7 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
|
|
|
15275
15344
|
}>;
|
|
15276
15345
|
data: z.ZodObject<{
|
|
15277
15346
|
claimId: z.ZodString;
|
|
15347
|
+
claimNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
15278
15348
|
orderId: z.ZodString;
|
|
15279
15349
|
orderItemId: z.ZodString;
|
|
15280
15350
|
claimType: z.ZodEnum<{
|
|
@@ -15283,7 +15353,6 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
|
|
|
15283
15353
|
CANCEL: "CANCEL";
|
|
15284
15354
|
}>;
|
|
15285
15355
|
status: z.ZodEnum<{
|
|
15286
|
-
COMPLETED: "COMPLETED";
|
|
15287
15356
|
REJECTED: "REJECTED";
|
|
15288
15357
|
REQUESTED: "REQUESTED";
|
|
15289
15358
|
HELD: "HELD";
|
|
@@ -15291,6 +15360,7 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
|
|
|
15291
15360
|
COLLECTED: "COLLECTED";
|
|
15292
15361
|
REDELIVERING: "REDELIVERING";
|
|
15293
15362
|
APPROVED: "APPROVED";
|
|
15363
|
+
COMPLETED: "COMPLETED";
|
|
15294
15364
|
WITHDRAWN: "WITHDRAWN";
|
|
15295
15365
|
}>;
|
|
15296
15366
|
quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -15354,6 +15424,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
15354
15424
|
}>;
|
|
15355
15425
|
data: z.ZodObject<{
|
|
15356
15426
|
orderId: z.ZodString;
|
|
15427
|
+
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
15357
15428
|
status: z.ZodEnum<{
|
|
15358
15429
|
PAID: "PAID";
|
|
15359
15430
|
CANCELED: "CANCELED";
|
|
@@ -15404,6 +15475,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
15404
15475
|
type: z.ZodLiteral<"ORDER.FULFILLED">;
|
|
15405
15476
|
data: z.ZodObject<{
|
|
15406
15477
|
orderId: z.ZodString;
|
|
15478
|
+
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
15407
15479
|
orderItemId: z.ZodString;
|
|
15408
15480
|
status: z.ZodEnum<{
|
|
15409
15481
|
PAID: "PAID";
|
|
@@ -15443,6 +15515,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
15443
15515
|
type: z.ZodLiteral<"ORDER.CANCELED">;
|
|
15444
15516
|
data: z.ZodObject<{
|
|
15445
15517
|
orderId: z.ZodString;
|
|
15518
|
+
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
15446
15519
|
orderItemId: z.ZodString;
|
|
15447
15520
|
status: z.ZodEnum<{
|
|
15448
15521
|
PAID: "PAID";
|
|
@@ -15488,6 +15561,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
15488
15561
|
}>;
|
|
15489
15562
|
data: z.ZodObject<{
|
|
15490
15563
|
claimId: z.ZodString;
|
|
15564
|
+
claimNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
15491
15565
|
orderId: z.ZodString;
|
|
15492
15566
|
orderItemId: z.ZodString;
|
|
15493
15567
|
claimType: z.ZodEnum<{
|
|
@@ -15496,7 +15570,6 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
15496
15570
|
CANCEL: "CANCEL";
|
|
15497
15571
|
}>;
|
|
15498
15572
|
status: z.ZodEnum<{
|
|
15499
|
-
COMPLETED: "COMPLETED";
|
|
15500
15573
|
REJECTED: "REJECTED";
|
|
15501
15574
|
REQUESTED: "REQUESTED";
|
|
15502
15575
|
HELD: "HELD";
|
|
@@ -15504,6 +15577,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
15504
15577
|
COLLECTED: "COLLECTED";
|
|
15505
15578
|
REDELIVERING: "REDELIVERING";
|
|
15506
15579
|
APPROVED: "APPROVED";
|
|
15580
|
+
COMPLETED: "COMPLETED";
|
|
15507
15581
|
WITHDRAWN: "WITHDRAWN";
|
|
15508
15582
|
}>;
|
|
15509
15583
|
quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|