@sayren/store-sdk 0.29.4 → 0.29.5
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 +123 -121
- package/dist/index.mjs +29 -10
- package/package.json +1 -1
- package/src/schemas/promotion.ts +27 -14
package/dist/index.d.mts
CHANGED
|
@@ -165,8 +165,8 @@ export declare const auditLogPageSchema: z.ZodObject<{
|
|
|
165
165
|
}, z.core.$strip>;
|
|
166
166
|
export type AuditLogPage = z.infer<typeof auditLogPageSchema>;
|
|
167
167
|
export declare const agentPolicyDecisionSchema: z.ZodEnum<{
|
|
168
|
-
DENIED: "DENIED";
|
|
169
168
|
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
169
|
+
DENIED: "DENIED";
|
|
170
170
|
ALLOW: "ALLOW";
|
|
171
171
|
}>;
|
|
172
172
|
export type AgentPolicyDecision = z.infer<typeof agentPolicyDecisionSchema>;
|
|
@@ -190,8 +190,8 @@ export type WritePreview = z.infer<typeof writePreviewSchema>;
|
|
|
190
190
|
export declare const writeDryRunResultSchema: z.ZodObject<{
|
|
191
191
|
dryRun: z.ZodLiteral<true>;
|
|
192
192
|
decision: z.ZodEnum<{
|
|
193
|
-
DENIED: "DENIED";
|
|
194
193
|
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
194
|
+
DENIED: "DENIED";
|
|
195
195
|
ALLOW: "ALLOW";
|
|
196
196
|
}>;
|
|
197
197
|
reason: z.ZodNullable<z.ZodString>;
|
|
@@ -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";
|
|
216
217
|
PENDING: "PENDING";
|
|
217
218
|
FAILED: "FAILED";
|
|
218
219
|
SUCCEEDED: "SUCCEEDED";
|
|
219
220
|
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";
|
|
228
229
|
PENDING: "PENDING";
|
|
229
230
|
FAILED: "FAILED";
|
|
230
231
|
SUCCEEDED: "SUCCEEDED";
|
|
231
232
|
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";
|
|
290
291
|
PENDING: "PENDING";
|
|
291
292
|
FAILED: "FAILED";
|
|
292
293
|
SUCCEEDED: "SUCCEEDED";
|
|
293
294
|
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";
|
|
309
310
|
PENDING: "PENDING";
|
|
310
311
|
FAILED: "FAILED";
|
|
311
312
|
SUCCEEDED: "SUCCEEDED";
|
|
312
313
|
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";
|
|
452
451
|
SESSION: "SESSION";
|
|
453
452
|
PRODUCT_VIEW: "PRODUCT_VIEW";
|
|
454
453
|
ADD_TO_CART: "ADD_TO_CART";
|
|
455
454
|
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";
|
|
481
480
|
SESSION: "SESSION";
|
|
482
481
|
PRODUCT_VIEW: "PRODUCT_VIEW";
|
|
483
482
|
ADD_TO_CART: "ADD_TO_CART";
|
|
484
483
|
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";
|
|
585
584
|
DIRECT: "DIRECT";
|
|
586
|
-
CAMPAIGN: "CAMPAIGN";
|
|
587
|
-
UNKNOWN: "UNKNOWN";
|
|
588
585
|
ORGANIC_SEARCH: "ORGANIC_SEARCH";
|
|
589
586
|
SOCIAL: "SOCIAL";
|
|
587
|
+
PAID: "PAID";
|
|
590
588
|
EMAIL: "EMAIL";
|
|
589
|
+
CAMPAIGN: "CAMPAIGN";
|
|
591
590
|
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";
|
|
595
596
|
CHANNEL: "CHANNEL";
|
|
596
597
|
SOURCE: "SOURCE";
|
|
597
|
-
CAMPAIGN: "CAMPAIGN";
|
|
598
598
|
DEVICE: "DEVICE";
|
|
599
599
|
}>;
|
|
600
600
|
export type AnalyticsSourceGroupBy = z.infer<typeof analyticsSourceGroupBySchema>;
|
|
@@ -606,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";
|
|
609
610
|
CHANNEL: "CHANNEL";
|
|
610
611
|
SOURCE: "SOURCE";
|
|
611
|
-
CAMPAIGN: "CAMPAIGN";
|
|
612
612
|
DEVICE: "DEVICE";
|
|
613
613
|
}>>;
|
|
614
614
|
}, z.core.$strip>;
|
|
615
615
|
export type AnalyticsSourcesParams = z.infer<typeof analyticsSourcesQuerySchema>;
|
|
616
616
|
export declare const analyticsSourceRowSchema: z.ZodObject<{
|
|
617
617
|
channel: z.ZodNullable<z.ZodEnum<{
|
|
618
|
-
PAID: "PAID";
|
|
619
618
|
DIRECT: "DIRECT";
|
|
620
|
-
CAMPAIGN: "CAMPAIGN";
|
|
621
|
-
UNKNOWN: "UNKNOWN";
|
|
622
619
|
ORGANIC_SEARCH: "ORGANIC_SEARCH";
|
|
623
620
|
SOCIAL: "SOCIAL";
|
|
621
|
+
PAID: "PAID";
|
|
624
622
|
EMAIL: "EMAIL";
|
|
623
|
+
CAMPAIGN: "CAMPAIGN";
|
|
625
624
|
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";
|
|
647
648
|
CHANNEL: "CHANNEL";
|
|
648
649
|
SOURCE: "SOURCE";
|
|
649
|
-
CAMPAIGN: "CAMPAIGN";
|
|
650
650
|
DEVICE: "DEVICE";
|
|
651
651
|
}>;
|
|
652
652
|
rows: z.ZodArray<z.ZodObject<{
|
|
653
653
|
channel: z.ZodNullable<z.ZodEnum<{
|
|
654
|
-
PAID: "PAID";
|
|
655
654
|
DIRECT: "DIRECT";
|
|
656
|
-
CAMPAIGN: "CAMPAIGN";
|
|
657
|
-
UNKNOWN: "UNKNOWN";
|
|
658
655
|
ORGANIC_SEARCH: "ORGANIC_SEARCH";
|
|
659
656
|
SOCIAL: "SOCIAL";
|
|
657
|
+
PAID: "PAID";
|
|
660
658
|
EMAIL: "EMAIL";
|
|
659
|
+
CAMPAIGN: "CAMPAIGN";
|
|
661
660
|
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";
|
|
811
810
|
COMPLETED: "COMPLETED";
|
|
812
811
|
NOT_OPENED: "NOT_OPENED";
|
|
813
812
|
USER_CANCELED: "USER_CANCELED";
|
|
814
813
|
DECLINED: "DECLINED";
|
|
815
814
|
PREPARE_FAILURE: "PREPARE_FAILURE";
|
|
815
|
+
OTHER: "OTHER";
|
|
816
816
|
IN_PROGRESS: "IN_PROGRESS";
|
|
817
817
|
}>;
|
|
818
818
|
export type AnalyticsCheckoutOutcome = z.infer<typeof analyticsCheckoutOutcomeSchema>;
|
|
@@ -820,12 +820,12 @@ export declare const analyticsCheckoutSchema: z.ZodObject<{
|
|
|
820
820
|
sessions: z.ZodNumber;
|
|
821
821
|
outcomes: z.ZodArray<z.ZodObject<{
|
|
822
822
|
outcome: z.ZodEnum<{
|
|
823
|
-
OTHER: "OTHER";
|
|
824
823
|
COMPLETED: "COMPLETED";
|
|
825
824
|
NOT_OPENED: "NOT_OPENED";
|
|
826
825
|
USER_CANCELED: "USER_CANCELED";
|
|
827
826
|
DECLINED: "DECLINED";
|
|
828
827
|
PREPARE_FAILURE: "PREPARE_FAILURE";
|
|
828
|
+
OTHER: "OTHER";
|
|
829
829
|
IN_PROGRESS: "IN_PROGRESS";
|
|
830
830
|
}>;
|
|
831
831
|
sessions: z.ZodNumber;
|
|
@@ -966,11 +966,11 @@ export type ApiLogSummary = z.infer<typeof apiLogSummarySchema>;
|
|
|
966
966
|
//#endregion
|
|
967
967
|
//#region src/schemas/category.d.ts
|
|
968
968
|
export declare const categoryProductSortSchema: z.ZodEnum<{
|
|
969
|
+
NAME: "NAME";
|
|
969
970
|
RECENT: "RECENT";
|
|
970
971
|
POPULAR: "POPULAR";
|
|
971
972
|
PRICE_LOW: "PRICE_LOW";
|
|
972
973
|
PRICE_HIGH: "PRICE_HIGH";
|
|
973
|
-
NAME: "NAME";
|
|
974
974
|
}>;
|
|
975
975
|
export type CategoryProductSort = z.infer<typeof categoryProductSortSchema>;
|
|
976
976
|
export declare const categorySchema: z.ZodObject<{
|
|
@@ -986,11 +986,11 @@ export declare const categorySchema: z.ZodObject<{
|
|
|
986
986
|
showPc: z.ZodBoolean;
|
|
987
987
|
showMobile: z.ZodBoolean;
|
|
988
988
|
productSort: z.ZodEnum<{
|
|
989
|
+
NAME: "NAME";
|
|
989
990
|
RECENT: "RECENT";
|
|
990
991
|
POPULAR: "POPULAR";
|
|
991
992
|
PRICE_LOW: "PRICE_LOW";
|
|
992
993
|
PRICE_HIGH: "PRICE_HIGH";
|
|
993
|
-
NAME: "NAME";
|
|
994
994
|
}>;
|
|
995
995
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
996
996
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1016,11 +1016,11 @@ export declare const categoryWithPathSchema: z.ZodObject<{
|
|
|
1016
1016
|
showPc: z.ZodBoolean;
|
|
1017
1017
|
showMobile: z.ZodBoolean;
|
|
1018
1018
|
productSort: z.ZodEnum<{
|
|
1019
|
+
NAME: "NAME";
|
|
1019
1020
|
RECENT: "RECENT";
|
|
1020
1021
|
POPULAR: "POPULAR";
|
|
1021
1022
|
PRICE_LOW: "PRICE_LOW";
|
|
1022
1023
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1023
|
-
NAME: "NAME";
|
|
1024
1024
|
}>;
|
|
1025
1025
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1026
1026
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1041,11 +1041,11 @@ export declare const categoryWithPathSchema: z.ZodObject<{
|
|
|
1041
1041
|
showPc: z.ZodBoolean;
|
|
1042
1042
|
showMobile: z.ZodBoolean;
|
|
1043
1043
|
productSort: z.ZodEnum<{
|
|
1044
|
+
NAME: "NAME";
|
|
1044
1045
|
RECENT: "RECENT";
|
|
1045
1046
|
POPULAR: "POPULAR";
|
|
1046
1047
|
PRICE_LOW: "PRICE_LOW";
|
|
1047
1048
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1048
|
-
NAME: "NAME";
|
|
1049
1049
|
}>;
|
|
1050
1050
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1051
1051
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1069,11 +1069,11 @@ export declare const categorySearchResultSchema: z.ZodObject<{
|
|
|
1069
1069
|
showPc: z.ZodBoolean;
|
|
1070
1070
|
showMobile: z.ZodBoolean;
|
|
1071
1071
|
productSort: z.ZodEnum<{
|
|
1072
|
+
NAME: "NAME";
|
|
1072
1073
|
RECENT: "RECENT";
|
|
1073
1074
|
POPULAR: "POPULAR";
|
|
1074
1075
|
PRICE_LOW: "PRICE_LOW";
|
|
1075
1076
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1076
|
-
NAME: "NAME";
|
|
1077
1077
|
}>;
|
|
1078
1078
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1079
1079
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1094,11 +1094,11 @@ export declare const categorySearchResultSchema: z.ZodObject<{
|
|
|
1094
1094
|
showPc: z.ZodBoolean;
|
|
1095
1095
|
showMobile: z.ZodBoolean;
|
|
1096
1096
|
productSort: z.ZodEnum<{
|
|
1097
|
+
NAME: "NAME";
|
|
1097
1098
|
RECENT: "RECENT";
|
|
1098
1099
|
POPULAR: "POPULAR";
|
|
1099
1100
|
PRICE_LOW: "PRICE_LOW";
|
|
1100
1101
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1101
|
-
NAME: "NAME";
|
|
1102
1102
|
}>;
|
|
1103
1103
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1104
1104
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1130,11 +1130,11 @@ export declare const categoryCreateRequestSchema: z.ZodObject<{
|
|
|
1130
1130
|
showPc: z.ZodOptional<z.ZodBoolean>;
|
|
1131
1131
|
showMobile: z.ZodOptional<z.ZodBoolean>;
|
|
1132
1132
|
productSort: z.ZodOptional<z.ZodEnum<{
|
|
1133
|
+
NAME: "NAME";
|
|
1133
1134
|
RECENT: "RECENT";
|
|
1134
1135
|
POPULAR: "POPULAR";
|
|
1135
1136
|
PRICE_LOW: "PRICE_LOW";
|
|
1136
1137
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1137
|
-
NAME: "NAME";
|
|
1138
1138
|
}>>;
|
|
1139
1139
|
metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1140
1140
|
metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1149,11 +1149,11 @@ export declare const categoryPatchRequestSchema: z.ZodObject<{
|
|
|
1149
1149
|
showPc: z.ZodOptional<z.ZodBoolean>;
|
|
1150
1150
|
showMobile: z.ZodOptional<z.ZodBoolean>;
|
|
1151
1151
|
productSort: z.ZodOptional<z.ZodEnum<{
|
|
1152
|
+
NAME: "NAME";
|
|
1152
1153
|
RECENT: "RECENT";
|
|
1153
1154
|
POPULAR: "POPULAR";
|
|
1154
1155
|
PRICE_LOW: "PRICE_LOW";
|
|
1155
1156
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1156
|
-
NAME: "NAME";
|
|
1157
1157
|
}>>;
|
|
1158
1158
|
metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1159
1159
|
metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1264,6 +1264,7 @@ 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";
|
|
1267
1268
|
REJECTED: "REJECTED";
|
|
1268
1269
|
REQUESTED: "REQUESTED";
|
|
1269
1270
|
HELD: "HELD";
|
|
@@ -1271,7 +1272,6 @@ export declare const claimStatusSchema: z.ZodEnum<{
|
|
|
1271
1272
|
COLLECTED: "COLLECTED";
|
|
1272
1273
|
REDELIVERING: "REDELIVERING";
|
|
1273
1274
|
APPROVED: "APPROVED";
|
|
1274
|
-
COMPLETED: "COMPLETED";
|
|
1275
1275
|
WITHDRAWN: "WITHDRAWN";
|
|
1276
1276
|
}>;
|
|
1277
1277
|
export type ClaimStatus = z.infer<typeof claimStatusSchema>;
|
|
@@ -1308,6 +1308,7 @@ export declare const claimSchema: z.ZodObject<{
|
|
|
1308
1308
|
CANCEL: "CANCEL";
|
|
1309
1309
|
}>;
|
|
1310
1310
|
status: z.ZodEnum<{
|
|
1311
|
+
COMPLETED: "COMPLETED";
|
|
1311
1312
|
REJECTED: "REJECTED";
|
|
1312
1313
|
REQUESTED: "REQUESTED";
|
|
1313
1314
|
HELD: "HELD";
|
|
@@ -1315,7 +1316,6 @@ export declare const claimSchema: z.ZodObject<{
|
|
|
1315
1316
|
COLLECTED: "COLLECTED";
|
|
1316
1317
|
REDELIVERING: "REDELIVERING";
|
|
1317
1318
|
APPROVED: "APPROVED";
|
|
1318
|
-
COMPLETED: "COMPLETED";
|
|
1319
1319
|
WITHDRAWN: "WITHDRAWN";
|
|
1320
1320
|
}>;
|
|
1321
1321
|
orderId: z.ZodString;
|
|
@@ -1397,6 +1397,7 @@ export declare const claimDetailSchema: z.ZodObject<{
|
|
|
1397
1397
|
CANCEL: "CANCEL";
|
|
1398
1398
|
}>;
|
|
1399
1399
|
status: z.ZodEnum<{
|
|
1400
|
+
COMPLETED: "COMPLETED";
|
|
1400
1401
|
REJECTED: "REJECTED";
|
|
1401
1402
|
REQUESTED: "REQUESTED";
|
|
1402
1403
|
HELD: "HELD";
|
|
@@ -1404,7 +1405,6 @@ export declare const claimDetailSchema: z.ZodObject<{
|
|
|
1404
1405
|
COLLECTED: "COLLECTED";
|
|
1405
1406
|
REDELIVERING: "REDELIVERING";
|
|
1406
1407
|
APPROVED: "APPROVED";
|
|
1407
|
-
COMPLETED: "COMPLETED";
|
|
1408
1408
|
WITHDRAWN: "WITHDRAWN";
|
|
1409
1409
|
}>;
|
|
1410
1410
|
orderId: z.ZodString;
|
|
@@ -1455,6 +1455,7 @@ export declare const claimDetailSchema: z.ZodObject<{
|
|
|
1455
1455
|
}, z.core.$strip>>;
|
|
1456
1456
|
histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1457
1457
|
status: z.ZodEnum<{
|
|
1458
|
+
COMPLETED: "COMPLETED";
|
|
1458
1459
|
REJECTED: "REJECTED";
|
|
1459
1460
|
REQUESTED: "REQUESTED";
|
|
1460
1461
|
HELD: "HELD";
|
|
@@ -1462,7 +1463,6 @@ export declare const claimDetailSchema: z.ZodObject<{
|
|
|
1462
1463
|
COLLECTED: "COLLECTED";
|
|
1463
1464
|
REDELIVERING: "REDELIVERING";
|
|
1464
1465
|
APPROVED: "APPROVED";
|
|
1465
|
-
COMPLETED: "COMPLETED";
|
|
1466
1466
|
WITHDRAWN: "WITHDRAWN";
|
|
1467
1467
|
}>;
|
|
1468
1468
|
actor: z.ZodEnum<{
|
|
@@ -2595,10 +2595,10 @@ export type CustomerOrder = z.infer<typeof customerOrderSchema>;
|
|
|
2595
2595
|
/** `POST /v1/customers/{id}/withdraw` 본문 */
|
|
2596
2596
|
export declare const withdrawCustomerRequestSchema: z.ZodObject<{
|
|
2597
2597
|
reason: z.ZodEnum<{
|
|
2598
|
+
OTHER: "OTHER";
|
|
2598
2599
|
BUYER_REQUEST: "BUYER_REQUEST";
|
|
2599
2600
|
DORMANT: "DORMANT";
|
|
2600
2601
|
ABUSE: "ABUSE";
|
|
2601
|
-
OTHER: "OTHER";
|
|
2602
2602
|
}>;
|
|
2603
2603
|
memo: z.ZodOptional<z.ZodString>;
|
|
2604
2604
|
}, z.core.$strip>;
|
|
@@ -3332,8 +3332,8 @@ export declare function requiresCollection(type: string | null | undefined): boo
|
|
|
3332
3332
|
export declare const NO_SHIPPING_BUNDLE_KEY = "none";
|
|
3333
3333
|
/** 배송비 유형 — 무료·유료·조건부 무료 */
|
|
3334
3334
|
export declare const deliveryTypeSchema: z.ZodEnum<{
|
|
3335
|
-
FREE: "FREE";
|
|
3336
3335
|
PAID: "PAID";
|
|
3336
|
+
FREE: "FREE";
|
|
3337
3337
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
3338
3338
|
}>;
|
|
3339
3339
|
export type DeliveryType = z.infer<typeof deliveryTypeSchema>;
|
|
@@ -3344,8 +3344,8 @@ export declare const productFulfillmentCreateSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
3344
3344
|
type: z.ZodLiteral<"SHIPPING">;
|
|
3345
3345
|
shipping: z.ZodOptional<z.ZodObject<{
|
|
3346
3346
|
deliveryType: z.ZodDefault<z.ZodEnum<{
|
|
3347
|
-
FREE: "FREE";
|
|
3348
3347
|
PAID: "PAID";
|
|
3348
|
+
FREE: "FREE";
|
|
3349
3349
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
3350
3350
|
}>>;
|
|
3351
3351
|
deliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
@@ -3367,8 +3367,8 @@ export declare const productFulfillmentUpdateSchema: z.ZodDiscriminatedUnion<[z.
|
|
|
3367
3367
|
type: z.ZodLiteral<"SHIPPING">;
|
|
3368
3368
|
shipping: z.ZodObject<{
|
|
3369
3369
|
deliveryType: z.ZodEnum<{
|
|
3370
|
-
FREE: "FREE";
|
|
3371
3370
|
PAID: "PAID";
|
|
3371
|
+
FREE: "FREE";
|
|
3372
3372
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
3373
3373
|
}>;
|
|
3374
3374
|
deliveryFee: z.ZodNumber;
|
|
@@ -3388,8 +3388,8 @@ export declare const productFulfillmentSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
3388
3388
|
type: z.ZodLiteral<"SHIPPING">;
|
|
3389
3389
|
shipping: z.ZodObject<{
|
|
3390
3390
|
deliveryType: z.ZodEnum<{
|
|
3391
|
-
FREE: "FREE";
|
|
3392
3391
|
PAID: "PAID";
|
|
3392
|
+
FREE: "FREE";
|
|
3393
3393
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
3394
3394
|
}>;
|
|
3395
3395
|
deliveryFee: z.ZodNumber;
|
|
@@ -3427,8 +3427,8 @@ export declare const productFulfillmentResponseSchema: z.ZodUnion<readonly [z.Zo
|
|
|
3427
3427
|
type: z.ZodLiteral<"SHIPPING">;
|
|
3428
3428
|
shipping: z.ZodObject<{
|
|
3429
3429
|
deliveryType: z.ZodEnum<{
|
|
3430
|
-
FREE: "FREE";
|
|
3431
3430
|
PAID: "PAID";
|
|
3431
|
+
FREE: "FREE";
|
|
3432
3432
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
3433
3433
|
}>;
|
|
3434
3434
|
deliveryFee: z.ZodNumber;
|
|
@@ -3947,16 +3947,16 @@ export interface OrderItemListParams extends PageParams {
|
|
|
3947
3947
|
testPayment?: "true" | "false";
|
|
3948
3948
|
}
|
|
3949
3949
|
export declare const deliveryMethodSchema: z.ZodEnum<{
|
|
3950
|
-
COURIER: "COURIER";
|
|
3951
3950
|
DIRECT: "DIRECT";
|
|
3951
|
+
COURIER: "COURIER";
|
|
3952
3952
|
QUICK: "QUICK";
|
|
3953
3953
|
NOTHING: "NOTHING";
|
|
3954
3954
|
}>;
|
|
3955
3955
|
export type DeliveryMethod = z.infer<typeof deliveryMethodSchema>;
|
|
3956
3956
|
export declare const dispatchRequestSchema: z.ZodObject<{
|
|
3957
3957
|
deliveryMethod: z.ZodEnum<{
|
|
3958
|
-
COURIER: "COURIER";
|
|
3959
3958
|
DIRECT: "DIRECT";
|
|
3959
|
+
COURIER: "COURIER";
|
|
3960
3960
|
QUICK: "QUICK";
|
|
3961
3961
|
NOTHING: "NOTHING";
|
|
3962
3962
|
}>;
|
|
@@ -3968,8 +3968,8 @@ export type DispatchRequest = z.infer<typeof dispatchRequestSchema>;
|
|
|
3968
3968
|
export declare const deliveryInfoSchema: z.ZodObject<{
|
|
3969
3969
|
orderItemId: z.ZodString;
|
|
3970
3970
|
deliveryMethod: z.ZodEnum<{
|
|
3971
|
-
COURIER: "COURIER";
|
|
3972
3971
|
DIRECT: "DIRECT";
|
|
3972
|
+
COURIER: "COURIER";
|
|
3973
3973
|
QUICK: "QUICK";
|
|
3974
3974
|
NOTHING: "NOTHING";
|
|
3975
3975
|
}>;
|
|
@@ -3995,8 +3995,8 @@ export declare const trackingStageResponseSchema: z.ZodString;
|
|
|
3995
3995
|
export declare const deliveryStatusSchema: z.ZodObject<{
|
|
3996
3996
|
orderItemId: z.ZodString;
|
|
3997
3997
|
deliveryMethod: z.ZodEnum<{
|
|
3998
|
-
COURIER: "COURIER";
|
|
3999
3998
|
DIRECT: "DIRECT";
|
|
3999
|
+
COURIER: "COURIER";
|
|
4000
4000
|
QUICK: "QUICK";
|
|
4001
4001
|
NOTHING: "NOTHING";
|
|
4002
4002
|
}>;
|
|
@@ -5342,11 +5342,11 @@ export type PointEntry = z.infer<typeof pointEntrySchema>;
|
|
|
5342
5342
|
export declare const pointLotSchema: z.ZodObject<{
|
|
5343
5343
|
lotId: z.ZodString;
|
|
5344
5344
|
source: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5345
|
+
PURCHASE: "PURCHASE";
|
|
5345
5346
|
REFUND_RESTORE: "REFUND_RESTORE";
|
|
5346
5347
|
ADJUST: "ADJUST";
|
|
5347
5348
|
OPENING: "OPENING";
|
|
5348
5349
|
REVIEW: "REVIEW";
|
|
5349
|
-
PURCHASE: "PURCHASE";
|
|
5350
5350
|
}>, z.ZodString]>;
|
|
5351
5351
|
amount: z.ZodNumber;
|
|
5352
5352
|
remaining: z.ZodNumber;
|
|
@@ -5361,11 +5361,11 @@ export declare const customerPointsSchema: z.ZodObject<{
|
|
|
5361
5361
|
lots: z.ZodArray<z.ZodObject<{
|
|
5362
5362
|
lotId: z.ZodString;
|
|
5363
5363
|
source: z.ZodUnion<readonly [z.ZodEnum<{
|
|
5364
|
+
PURCHASE: "PURCHASE";
|
|
5364
5365
|
REFUND_RESTORE: "REFUND_RESTORE";
|
|
5365
5366
|
ADJUST: "ADJUST";
|
|
5366
5367
|
OPENING: "OPENING";
|
|
5367
5368
|
REVIEW: "REVIEW";
|
|
5368
|
-
PURCHASE: "PURCHASE";
|
|
5369
5369
|
}>, z.ZodString]>;
|
|
5370
5370
|
amount: z.ZodNumber;
|
|
5371
5371
|
remaining: z.ZodNumber;
|
|
@@ -5535,8 +5535,8 @@ export declare const VARIANT_COUNT_WARNING = 100;
|
|
|
5535
5535
|
* 추가금순은 추가 선택 값이면 값의 추가금, 조합 값이면 그 값이 든 조합 추가금의 최솟값으로 비교하고 같으면 등록순이다.
|
|
5536
5536
|
*/
|
|
5537
5537
|
export declare const optionSortSchema: z.ZodEnum<{
|
|
5538
|
-
NAME: "NAME";
|
|
5539
5538
|
REGISTERED: "REGISTERED";
|
|
5539
|
+
NAME: "NAME";
|
|
5540
5540
|
PRICE_ASC: "PRICE_ASC";
|
|
5541
5541
|
PRICE_DESC: "PRICE_DESC";
|
|
5542
5542
|
}>;
|
|
@@ -5716,8 +5716,8 @@ export declare const productSchema: z.ZodObject<{
|
|
|
5716
5716
|
sortOrder: z.ZodNumber;
|
|
5717
5717
|
}, z.core.$strip>>>>;
|
|
5718
5718
|
optionSort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
5719
|
-
NAME: "NAME";
|
|
5720
5719
|
REGISTERED: "REGISTERED";
|
|
5720
|
+
NAME: "NAME";
|
|
5721
5721
|
PRICE_ASC: "PRICE_ASC";
|
|
5722
5722
|
PRICE_DESC: "PRICE_DESC";
|
|
5723
5723
|
}>>>;
|
|
@@ -5725,8 +5725,8 @@ export declare const productSchema: z.ZodObject<{
|
|
|
5725
5725
|
type: z.ZodLiteral<"SHIPPING">;
|
|
5726
5726
|
shipping: z.ZodObject<{
|
|
5727
5727
|
deliveryType: z.ZodEnum<{
|
|
5728
|
-
FREE: "FREE";
|
|
5729
5728
|
PAID: "PAID";
|
|
5729
|
+
FREE: "FREE";
|
|
5730
5730
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
5731
5731
|
}>;
|
|
5732
5732
|
deliveryFee: z.ZodNumber;
|
|
@@ -5860,8 +5860,8 @@ export declare const optionModelRequestSchema: z.ZodObject<{
|
|
|
5860
5860
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
5861
5861
|
}, z.core.$strip>>>;
|
|
5862
5862
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
5863
|
-
NAME: "NAME";
|
|
5864
5863
|
REGISTERED: "REGISTERED";
|
|
5864
|
+
NAME: "NAME";
|
|
5865
5865
|
PRICE_ASC: "PRICE_ASC";
|
|
5866
5866
|
PRICE_DESC: "PRICE_DESC";
|
|
5867
5867
|
}>>;
|
|
@@ -5916,8 +5916,8 @@ export declare const optionModelSchema: z.ZodObject<{
|
|
|
5916
5916
|
sortOrder: z.ZodNumber;
|
|
5917
5917
|
}, z.core.$strip>>>>;
|
|
5918
5918
|
optionSort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
5919
|
-
NAME: "NAME";
|
|
5920
5919
|
REGISTERED: "REGISTERED";
|
|
5920
|
+
NAME: "NAME";
|
|
5921
5921
|
PRICE_ASC: "PRICE_ASC";
|
|
5922
5922
|
PRICE_DESC: "PRICE_DESC";
|
|
5923
5923
|
}>>>;
|
|
@@ -5948,8 +5948,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
5948
5948
|
type: z.ZodLiteral<"SHIPPING">;
|
|
5949
5949
|
shipping: z.ZodOptional<z.ZodObject<{
|
|
5950
5950
|
deliveryType: z.ZodDefault<z.ZodEnum<{
|
|
5951
|
-
FREE: "FREE";
|
|
5952
5951
|
PAID: "PAID";
|
|
5952
|
+
FREE: "FREE";
|
|
5953
5953
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
5954
5954
|
}>>;
|
|
5955
5955
|
deliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
@@ -6001,8 +6001,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
6001
6001
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
6002
6002
|
}, z.core.$strip>>>;
|
|
6003
6003
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
6004
|
-
NAME: "NAME";
|
|
6005
6004
|
REGISTERED: "REGISTERED";
|
|
6005
|
+
NAME: "NAME";
|
|
6006
6006
|
PRICE_ASC: "PRICE_ASC";
|
|
6007
6007
|
PRICE_DESC: "PRICE_DESC";
|
|
6008
6008
|
}>>;
|
|
@@ -6034,8 +6034,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
6034
6034
|
type: z.ZodLiteral<"SHIPPING">;
|
|
6035
6035
|
shipping: z.ZodObject<{
|
|
6036
6036
|
deliveryType: z.ZodEnum<{
|
|
6037
|
-
FREE: "FREE";
|
|
6038
6037
|
PAID: "PAID";
|
|
6038
|
+
FREE: "FREE";
|
|
6039
6039
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
6040
6040
|
}>;
|
|
6041
6041
|
deliveryFee: z.ZodNumber;
|
|
@@ -6087,8 +6087,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
6087
6087
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
6088
6088
|
}, z.core.$strip>>>;
|
|
6089
6089
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
6090
|
-
NAME: "NAME";
|
|
6091
6090
|
REGISTERED: "REGISTERED";
|
|
6091
|
+
NAME: "NAME";
|
|
6092
6092
|
PRICE_ASC: "PRICE_ASC";
|
|
6093
6093
|
PRICE_DESC: "PRICE_DESC";
|
|
6094
6094
|
}>>;
|
|
@@ -6128,8 +6128,8 @@ export declare const productPatchRequestSchema: z.ZodObject<{
|
|
|
6128
6128
|
type: z.ZodLiteral<"SHIPPING">;
|
|
6129
6129
|
shipping: z.ZodObject<{
|
|
6130
6130
|
deliveryType: z.ZodEnum<{
|
|
6131
|
-
FREE: "FREE";
|
|
6132
6131
|
PAID: "PAID";
|
|
6132
|
+
FREE: "FREE";
|
|
6133
6133
|
CONDITIONAL_FREE: "CONDITIONAL_FREE";
|
|
6134
6134
|
}>;
|
|
6135
6135
|
deliveryFee: z.ZodNumber;
|
|
@@ -6151,11 +6151,11 @@ export declare const productPatchRequestSchema: z.ZodObject<{
|
|
|
6151
6151
|
}, z.core.$strict>;
|
|
6152
6152
|
export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
|
|
6153
6153
|
export declare const productSortSchema: z.ZodEnum<{
|
|
6154
|
-
"updatedAt.desc": "updatedAt.desc";
|
|
6155
6154
|
"createdAt.desc": "createdAt.desc";
|
|
6156
6155
|
"createdAt.asc": "createdAt.asc";
|
|
6157
6156
|
"salePrice.asc": "salePrice.asc";
|
|
6158
6157
|
"salePrice.desc": "salePrice.desc";
|
|
6158
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
6159
6159
|
}>;
|
|
6160
6160
|
export type ProductSort = z.infer<typeof productSortSchema>;
|
|
6161
6161
|
export interface ProductListParams extends PageParams {
|
|
@@ -6179,11 +6179,11 @@ export declare const productListQuerySchema: z.ZodObject<{
|
|
|
6179
6179
|
keyword: z.ZodOptional<z.ZodString>;
|
|
6180
6180
|
sellerCode: z.ZodOptional<z.ZodString>;
|
|
6181
6181
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
6182
|
-
"updatedAt.desc": "updatedAt.desc";
|
|
6183
6182
|
"createdAt.desc": "createdAt.desc";
|
|
6184
6183
|
"createdAt.asc": "createdAt.asc";
|
|
6185
6184
|
"salePrice.asc": "salePrice.asc";
|
|
6186
6185
|
"salePrice.desc": "salePrice.desc";
|
|
6186
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
6187
6187
|
}>>;
|
|
6188
6188
|
}, z.core.$strip>;
|
|
6189
6189
|
export declare const discountRequestSchema: z.ZodObject<{
|
|
@@ -6239,8 +6239,8 @@ export declare const savedOptionSetSchema: z.ZodObject<{
|
|
|
6239
6239
|
optionSetId: z.ZodString;
|
|
6240
6240
|
name: z.ZodString;
|
|
6241
6241
|
optionSort: z.ZodEnum<{
|
|
6242
|
-
NAME: "NAME";
|
|
6243
6242
|
REGISTERED: "REGISTERED";
|
|
6243
|
+
NAME: "NAME";
|
|
6244
6244
|
PRICE_ASC: "PRICE_ASC";
|
|
6245
6245
|
PRICE_DESC: "PRICE_DESC";
|
|
6246
6246
|
}>;
|
|
@@ -6294,8 +6294,8 @@ export declare const savedCustomInputRequestSchema: z.ZodObject<{
|
|
|
6294
6294
|
export declare const savedOptionSetRequestSchema: z.ZodObject<{
|
|
6295
6295
|
name: z.ZodString;
|
|
6296
6296
|
optionSort: z.ZodDefault<z.ZodEnum<{
|
|
6297
|
-
NAME: "NAME";
|
|
6298
6297
|
REGISTERED: "REGISTERED";
|
|
6298
|
+
NAME: "NAME";
|
|
6299
6299
|
PRICE_ASC: "PRICE_ASC";
|
|
6300
6300
|
PRICE_DESC: "PRICE_DESC";
|
|
6301
6301
|
}>>;
|
|
@@ -6340,8 +6340,8 @@ export declare const savedOptionSetFromProductResultSchema: z.ZodObject<{
|
|
|
6340
6340
|
optionSetId: z.ZodString;
|
|
6341
6341
|
name: z.ZodString;
|
|
6342
6342
|
optionSort: z.ZodEnum<{
|
|
6343
|
-
NAME: "NAME";
|
|
6344
6343
|
REGISTERED: "REGISTERED";
|
|
6344
|
+
NAME: "NAME";
|
|
6345
6345
|
PRICE_ASC: "PRICE_ASC";
|
|
6346
6346
|
PRICE_DESC: "PRICE_DESC";
|
|
6347
6347
|
}>;
|
|
@@ -6564,9 +6564,9 @@ export declare const storeMemberSchema: z.ZodObject<{
|
|
|
6564
6564
|
name: z.ZodString;
|
|
6565
6565
|
email: z.ZodEmail;
|
|
6566
6566
|
role: z.ZodEnum<{
|
|
6567
|
-
OWNER: "OWNER";
|
|
6568
6567
|
ADMIN: "ADMIN";
|
|
6569
6568
|
STAFF: "STAFF";
|
|
6569
|
+
OWNER: "OWNER";
|
|
6570
6570
|
}>;
|
|
6571
6571
|
joinedAt: z.ZodString;
|
|
6572
6572
|
lastActiveAt: z.ZodNullable<z.ZodString>;
|
|
@@ -7090,9 +7090,9 @@ export type StorefrontDeploymentLog = z.infer<typeof storefrontDeploymentLogSche
|
|
|
7090
7090
|
export declare const storefrontDeploymentSchema: z.ZodObject<{
|
|
7091
7091
|
siteId: z.ZodString;
|
|
7092
7092
|
status: z.ZodEnum<{
|
|
7093
|
+
IN_PROGRESS: "IN_PROGRESS";
|
|
7093
7094
|
FAILED: "FAILED";
|
|
7094
7095
|
SUCCEEDED: "SUCCEEDED";
|
|
7095
|
-
IN_PROGRESS: "IN_PROGRESS";
|
|
7096
7096
|
}>;
|
|
7097
7097
|
url: z.ZodString;
|
|
7098
7098
|
startedAt: z.ZodString;
|
|
@@ -7550,8 +7550,8 @@ export declare const runStorefrontCheckRequestSchema: z.ZodObject<{
|
|
|
7550
7550
|
}, z.core.$strip>;
|
|
7551
7551
|
export type RunStorefrontCheckRequest = z.infer<typeof runStorefrontCheckRequestSchema>;
|
|
7552
7552
|
export declare const storefrontCheckStatusSchema: z.ZodEnum<{
|
|
7553
|
-
FAILED: "FAILED";
|
|
7554
7553
|
UNKNOWN: "UNKNOWN";
|
|
7554
|
+
FAILED: "FAILED";
|
|
7555
7555
|
RUNNING: "RUNNING";
|
|
7556
7556
|
QUEUED: "QUEUED";
|
|
7557
7557
|
PASSED: "PASSED";
|
|
@@ -7564,8 +7564,8 @@ export declare const storefrontCheckSchema: z.ZodObject<{
|
|
|
7564
7564
|
checkId: z.ZodString;
|
|
7565
7565
|
check: z.ZodString;
|
|
7566
7566
|
status: z.ZodEnum<{
|
|
7567
|
-
FAILED: "FAILED";
|
|
7568
7567
|
UNKNOWN: "UNKNOWN";
|
|
7568
|
+
FAILED: "FAILED";
|
|
7569
7569
|
RUNNING: "RUNNING";
|
|
7570
7570
|
QUEUED: "QUEUED";
|
|
7571
7571
|
PASSED: "PASSED";
|
|
@@ -8099,9 +8099,9 @@ export type UploadTicket = z.infer<typeof uploadTicketSchema>;
|
|
|
8099
8099
|
//#endregion
|
|
8100
8100
|
//#region src/schemas/auth.d.ts
|
|
8101
8101
|
export declare const storeRoleSchema: z.ZodEnum<{
|
|
8102
|
-
OWNER: "OWNER";
|
|
8103
8102
|
ADMIN: "ADMIN";
|
|
8104
8103
|
STAFF: "STAFF";
|
|
8104
|
+
OWNER: "OWNER";
|
|
8105
8105
|
}>;
|
|
8106
8106
|
export type StoreRole = z.infer<typeof storeRoleSchema>;
|
|
8107
8107
|
export declare const myStoreSchema: z.ZodObject<{
|
|
@@ -8109,9 +8109,9 @@ export declare const myStoreSchema: z.ZodObject<{
|
|
|
8109
8109
|
storeName: z.ZodString;
|
|
8110
8110
|
storeCode: z.ZodString;
|
|
8111
8111
|
role: z.ZodEnum<{
|
|
8112
|
-
OWNER: "OWNER";
|
|
8113
8112
|
ADMIN: "ADMIN";
|
|
8114
8113
|
STAFF: "STAFF";
|
|
8114
|
+
OWNER: "OWNER";
|
|
8115
8115
|
}>;
|
|
8116
8116
|
status: z.ZodEnum<{
|
|
8117
8117
|
SUSPENDED: "SUSPENDED";
|
|
@@ -8271,7 +8271,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8271
8271
|
storeId: string;
|
|
8272
8272
|
storeName: string;
|
|
8273
8273
|
storeCode: string;
|
|
8274
|
-
role: "
|
|
8274
|
+
role: "ADMIN" | "STAFF" | "OWNER";
|
|
8275
8275
|
status: "SUSPENDED" | "CLOSED" | "ACTIVE";
|
|
8276
8276
|
}[]>;
|
|
8277
8277
|
me: () => Promise<{
|
|
@@ -8382,11 +8382,11 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8382
8382
|
usable: boolean;
|
|
8383
8383
|
sortOrder: number;
|
|
8384
8384
|
}[];
|
|
8385
|
-
optionSort: "
|
|
8385
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
8386
8386
|
fulfillment: UnknownFulfillment | {
|
|
8387
8387
|
type: "SHIPPING";
|
|
8388
8388
|
shipping: {
|
|
8389
|
-
deliveryType: "
|
|
8389
|
+
deliveryType: "PAID" | "FREE" | "CONDITIONAL_FREE";
|
|
8390
8390
|
deliveryFee: number;
|
|
8391
8391
|
conditionalFreeAmount: number | null;
|
|
8392
8392
|
shippingAddressId: string | null;
|
|
@@ -8480,11 +8480,11 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8480
8480
|
usable: boolean;
|
|
8481
8481
|
sortOrder: number;
|
|
8482
8482
|
}[];
|
|
8483
|
-
optionSort: "
|
|
8483
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
8484
8484
|
fulfillment: UnknownFulfillment | {
|
|
8485
8485
|
type: "SHIPPING";
|
|
8486
8486
|
shipping: {
|
|
8487
|
-
deliveryType: "
|
|
8487
|
+
deliveryType: "PAID" | "FREE" | "CONDITIONAL_FREE";
|
|
8488
8488
|
deliveryFee: number;
|
|
8489
8489
|
conditionalFreeAmount: number | null;
|
|
8490
8490
|
shippingAddressId: string | null;
|
|
@@ -8578,11 +8578,11 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8578
8578
|
usable: boolean;
|
|
8579
8579
|
sortOrder: number;
|
|
8580
8580
|
}[];
|
|
8581
|
-
optionSort: "
|
|
8581
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
8582
8582
|
fulfillment: UnknownFulfillment | {
|
|
8583
8583
|
type: "SHIPPING";
|
|
8584
8584
|
shipping: {
|
|
8585
|
-
deliveryType: "
|
|
8585
|
+
deliveryType: "PAID" | "FREE" | "CONDITIONAL_FREE";
|
|
8586
8586
|
deliveryFee: number;
|
|
8587
8587
|
conditionalFreeAmount: number | null;
|
|
8588
8588
|
shippingAddressId: string | null;
|
|
@@ -8679,7 +8679,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8679
8679
|
usable: boolean;
|
|
8680
8680
|
sortOrder: number;
|
|
8681
8681
|
}[];
|
|
8682
|
-
optionSort: "
|
|
8682
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
8683
8683
|
}>;
|
|
8684
8684
|
/**
|
|
8685
8685
|
* 옵션 모델 전체 교체 — variants는 valueNames로 축 값을 지목한다.
|
|
@@ -8732,7 +8732,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8732
8732
|
usable: boolean;
|
|
8733
8733
|
sortOrder: number;
|
|
8734
8734
|
}[];
|
|
8735
|
-
optionSort: "
|
|
8735
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
8736
8736
|
}>;
|
|
8737
8737
|
/** 재고 변경 — stockQuantity(절대값) 또는 adjustment(증감) 하나만 전달한다 */
|
|
8738
8738
|
updateVariantStock: (productId: string, variantId: string, body: VariantStockRequest) => Promise<{
|
|
@@ -8770,7 +8770,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8770
8770
|
contents: {
|
|
8771
8771
|
optionSetId: string;
|
|
8772
8772
|
name: string;
|
|
8773
|
-
optionSort: "
|
|
8773
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
8774
8774
|
groups: {
|
|
8775
8775
|
name: string;
|
|
8776
8776
|
kind: string;
|
|
@@ -8794,7 +8794,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8794
8794
|
get: (optionSetId: string) => Promise<{
|
|
8795
8795
|
optionSetId: string;
|
|
8796
8796
|
name: string;
|
|
8797
|
-
optionSort: "
|
|
8797
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
8798
8798
|
groups: {
|
|
8799
8799
|
name: string;
|
|
8800
8800
|
kind: string;
|
|
@@ -8818,7 +8818,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8818
8818
|
create: (body: SavedOptionSetRequestInput) => Promise<{
|
|
8819
8819
|
optionSetId: string;
|
|
8820
8820
|
name: string;
|
|
8821
|
-
optionSort: "
|
|
8821
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
8822
8822
|
groups: {
|
|
8823
8823
|
name: string;
|
|
8824
8824
|
kind: string;
|
|
@@ -8842,7 +8842,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8842
8842
|
update: (optionSetId: string, body: SavedOptionSetRequestInput) => Promise<{
|
|
8843
8843
|
optionSetId: string;
|
|
8844
8844
|
name: string;
|
|
8845
|
-
optionSort: "
|
|
8845
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
8846
8846
|
groups: {
|
|
8847
8847
|
name: string;
|
|
8848
8848
|
kind: string;
|
|
@@ -8868,7 +8868,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8868
8868
|
optionSet: {
|
|
8869
8869
|
optionSetId: string;
|
|
8870
8870
|
name: string;
|
|
8871
|
-
optionSort: "
|
|
8871
|
+
optionSort: "REGISTERED" | "NAME" | "PRICE_ASC" | "PRICE_DESC";
|
|
8872
8872
|
groups: {
|
|
8873
8873
|
name: string;
|
|
8874
8874
|
kind: string;
|
|
@@ -8924,7 +8924,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8924
8924
|
value: true;
|
|
8925
8925
|
} | {
|
|
8926
8926
|
field: "bestSelling";
|
|
8927
|
-
days:
|
|
8927
|
+
days: 7 | 30 | 90;
|
|
8928
8928
|
top: number;
|
|
8929
8929
|
} | {
|
|
8930
8930
|
[x: string]: unknown;
|
|
@@ -8974,7 +8974,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
8974
8974
|
value: true;
|
|
8975
8975
|
} | {
|
|
8976
8976
|
field: "bestSelling";
|
|
8977
|
-
days:
|
|
8977
|
+
days: 7 | 30 | 90;
|
|
8978
8978
|
top: number;
|
|
8979
8979
|
} | {
|
|
8980
8980
|
[x: string]: unknown;
|
|
@@ -9017,7 +9017,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9017
9017
|
value: true;
|
|
9018
9018
|
} | {
|
|
9019
9019
|
field: "bestSelling";
|
|
9020
|
-
days:
|
|
9020
|
+
days: 7 | 30 | 90;
|
|
9021
9021
|
top: number;
|
|
9022
9022
|
} | {
|
|
9023
9023
|
[x: string]: unknown;
|
|
@@ -9059,7 +9059,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9059
9059
|
value: true;
|
|
9060
9060
|
} | {
|
|
9061
9061
|
field: "bestSelling";
|
|
9062
|
-
days:
|
|
9062
|
+
days: 7 | 30 | 90;
|
|
9063
9063
|
top: number;
|
|
9064
9064
|
} | {
|
|
9065
9065
|
[x: string]: unknown;
|
|
@@ -9122,7 +9122,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9122
9122
|
value: true;
|
|
9123
9123
|
} | {
|
|
9124
9124
|
field: "bestSelling";
|
|
9125
|
-
days:
|
|
9125
|
+
days: 7 | 30 | 90;
|
|
9126
9126
|
top: number;
|
|
9127
9127
|
} | {
|
|
9128
9128
|
[x: string]: unknown;
|
|
@@ -9165,7 +9165,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9165
9165
|
value: true;
|
|
9166
9166
|
} | {
|
|
9167
9167
|
field: "bestSelling";
|
|
9168
|
-
days:
|
|
9168
|
+
days: 7 | 30 | 90;
|
|
9169
9169
|
top: number;
|
|
9170
9170
|
} | {
|
|
9171
9171
|
[x: string]: unknown;
|
|
@@ -9216,7 +9216,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9216
9216
|
visible: boolean;
|
|
9217
9217
|
showPc: boolean;
|
|
9218
9218
|
showMobile: boolean;
|
|
9219
|
-
productSort: "
|
|
9219
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
9220
9220
|
metaTitle: string | null;
|
|
9221
9221
|
metaDescription: string | null;
|
|
9222
9222
|
metaKeywords: string | null;
|
|
@@ -9236,7 +9236,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9236
9236
|
visible: boolean;
|
|
9237
9237
|
showPc: boolean;
|
|
9238
9238
|
showMobile: boolean;
|
|
9239
|
-
productSort: "
|
|
9239
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
9240
9240
|
metaTitle: string | null;
|
|
9241
9241
|
metaDescription: string | null;
|
|
9242
9242
|
metaKeywords: string | null;
|
|
@@ -9255,7 +9255,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9255
9255
|
visible: boolean;
|
|
9256
9256
|
showPc: boolean;
|
|
9257
9257
|
showMobile: boolean;
|
|
9258
|
-
productSort: "
|
|
9258
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
9259
9259
|
metaTitle: string | null;
|
|
9260
9260
|
metaDescription: string | null;
|
|
9261
9261
|
metaKeywords: string | null;
|
|
@@ -9275,7 +9275,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9275
9275
|
visible: boolean;
|
|
9276
9276
|
showPc: boolean;
|
|
9277
9277
|
showMobile: boolean;
|
|
9278
|
-
productSort: "
|
|
9278
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
9279
9279
|
metaTitle: string | null;
|
|
9280
9280
|
metaDescription: string | null;
|
|
9281
9281
|
metaKeywords: string | null;
|
|
@@ -9294,7 +9294,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9294
9294
|
visible: boolean;
|
|
9295
9295
|
showPc: boolean;
|
|
9296
9296
|
showMobile: boolean;
|
|
9297
|
-
productSort: "
|
|
9297
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
9298
9298
|
metaTitle: string | null;
|
|
9299
9299
|
metaDescription: string | null;
|
|
9300
9300
|
metaKeywords: string | null;
|
|
@@ -9323,7 +9323,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9323
9323
|
visible: boolean;
|
|
9324
9324
|
showPc: boolean;
|
|
9325
9325
|
showMobile: boolean;
|
|
9326
|
-
productSort: "
|
|
9326
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
9327
9327
|
metaTitle: string | null;
|
|
9328
9328
|
metaDescription: string | null;
|
|
9329
9329
|
metaKeywords: string | null;
|
|
@@ -9342,7 +9342,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9342
9342
|
visible: boolean;
|
|
9343
9343
|
showPc: boolean;
|
|
9344
9344
|
showMobile: boolean;
|
|
9345
|
-
productSort: "
|
|
9345
|
+
productSort: "NAME" | "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH";
|
|
9346
9346
|
metaTitle: string | null;
|
|
9347
9347
|
metaDescription: string | null;
|
|
9348
9348
|
metaKeywords: string | null;
|
|
@@ -9606,7 +9606,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9606
9606
|
}>;
|
|
9607
9607
|
dispatch: (orderItemId: string, body: DispatchRequest, idempotencyKey?: string) => Promise<{
|
|
9608
9608
|
orderItemId: string;
|
|
9609
|
-
deliveryMethod: "
|
|
9609
|
+
deliveryMethod: "DIRECT" | "COURIER" | "QUICK" | "NOTHING";
|
|
9610
9610
|
carrierCode: string | null;
|
|
9611
9611
|
carrierName: string | null;
|
|
9612
9612
|
trackingNumber: string | null;
|
|
@@ -9768,7 +9768,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9768
9768
|
}>;
|
|
9769
9769
|
getDelivery: (orderItemId: string) => Promise<{
|
|
9770
9770
|
orderItemId: string;
|
|
9771
|
-
deliveryMethod: "
|
|
9771
|
+
deliveryMethod: "DIRECT" | "COURIER" | "QUICK" | "NOTHING";
|
|
9772
9772
|
carrierCode: string | null;
|
|
9773
9773
|
carrierName: string | null;
|
|
9774
9774
|
trackingNumber: string | null;
|
|
@@ -9806,7 +9806,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9806
9806
|
contents: {
|
|
9807
9807
|
claimId: string;
|
|
9808
9808
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
9809
|
-
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
9809
|
+
status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
|
|
9810
9810
|
orderId: string;
|
|
9811
9811
|
orderItemId: string;
|
|
9812
9812
|
productName: string;
|
|
@@ -9845,7 +9845,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9845
9845
|
get: (claimId: string) => Promise<{
|
|
9846
9846
|
claimId: string;
|
|
9847
9847
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
9848
|
-
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
9848
|
+
status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
|
|
9849
9849
|
orderId: string;
|
|
9850
9850
|
orderItemId: string;
|
|
9851
9851
|
productName: string;
|
|
@@ -9880,7 +9880,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9880
9880
|
address2: string | null;
|
|
9881
9881
|
} | null;
|
|
9882
9882
|
histories?: {
|
|
9883
|
-
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
9883
|
+
status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
|
|
9884
9884
|
actor: "SYSTEM" | "BUYER" | "SELLER";
|
|
9885
9885
|
occurredAt: string;
|
|
9886
9886
|
}[] | undefined;
|
|
@@ -9913,7 +9913,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9913
9913
|
completeExchange: (claimId: string) => Promise<{
|
|
9914
9914
|
claimId: string;
|
|
9915
9915
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
9916
|
-
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
9916
|
+
status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
|
|
9917
9917
|
orderId: string;
|
|
9918
9918
|
orderItemId: string;
|
|
9919
9919
|
productName: string;
|
|
@@ -10834,7 +10834,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10834
10834
|
conversionRate: number | null;
|
|
10835
10835
|
};
|
|
10836
10836
|
funnel: {
|
|
10837
|
-
step: "
|
|
10837
|
+
step: "SESSION" | "PRODUCT_VIEW" | "ADD_TO_CART" | "BEGIN_CHECKOUT" | "PURCHASE";
|
|
10838
10838
|
sessions: number;
|
|
10839
10839
|
rateFromPrevious: number | null;
|
|
10840
10840
|
}[];
|
|
@@ -10888,9 +10888,9 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10888
10888
|
}>;
|
|
10889
10889
|
/** `GET /v1/analytics/sources` — 채널·소스·캠페인·기기별 세션과 구매 */
|
|
10890
10890
|
sources: (params: AnalyticsSourcesParams) => Promise<{
|
|
10891
|
-
groupBy: "
|
|
10891
|
+
groupBy: "CAMPAIGN" | "CHANNEL" | "SOURCE" | "DEVICE";
|
|
10892
10892
|
rows: {
|
|
10893
|
-
channel: "
|
|
10893
|
+
channel: "DIRECT" | "ORGANIC_SEARCH" | "SOCIAL" | "PAID" | "EMAIL" | "CAMPAIGN" | "REFERRAL" | "UNKNOWN" | null;
|
|
10894
10894
|
source: string | null;
|
|
10895
10895
|
medium: string | null;
|
|
10896
10896
|
campaign: string | null;
|
|
@@ -10995,7 +10995,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10995
10995
|
checkout: (params: AnalyticsRangeParams) => Promise<{
|
|
10996
10996
|
sessions: number;
|
|
10997
10997
|
outcomes: {
|
|
10998
|
-
outcome: "
|
|
10998
|
+
outcome: "COMPLETED" | "NOT_OPENED" | "USER_CANCELED" | "DECLINED" | "PREPARE_FAILURE" | "OTHER" | "IN_PROGRESS";
|
|
10999
10999
|
sessions: number;
|
|
11000
11000
|
}[];
|
|
11001
11001
|
from: string;
|
|
@@ -12096,7 +12096,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12096
12096
|
list: (params?: ApprovalListOptions) => Promise<{
|
|
12097
12097
|
items: {
|
|
12098
12098
|
approvalId: string;
|
|
12099
|
-
status: "
|
|
12099
|
+
status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
|
|
12100
12100
|
operationId: string;
|
|
12101
12101
|
method: string;
|
|
12102
12102
|
path: string;
|
|
@@ -12146,7 +12146,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12146
12146
|
}>;
|
|
12147
12147
|
get: (approvalId: string) => Promise<{
|
|
12148
12148
|
approvalId: string;
|
|
12149
|
-
status: "
|
|
12149
|
+
status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
|
|
12150
12150
|
operationId: string;
|
|
12151
12151
|
method: string;
|
|
12152
12152
|
path: string;
|
|
@@ -12198,7 +12198,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12198
12198
|
*/
|
|
12199
12199
|
approve: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
|
|
12200
12200
|
approvalId: string;
|
|
12201
|
-
status: "
|
|
12201
|
+
status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
|
|
12202
12202
|
operationId: string;
|
|
12203
12203
|
method: string;
|
|
12204
12204
|
path: string;
|
|
@@ -12246,7 +12246,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12246
12246
|
}>;
|
|
12247
12247
|
reject: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
|
|
12248
12248
|
approvalId: string;
|
|
12249
|
-
status: "
|
|
12249
|
+
status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
|
|
12250
12250
|
operationId: string;
|
|
12251
12251
|
method: string;
|
|
12252
12252
|
path: string;
|
|
@@ -12490,7 +12490,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12490
12490
|
/** `GET /v1/storefront/site/deployment` — 배포 진행(단계·기록). 만든 뒤 반영이 끝날 때까지 폴링한다 */
|
|
12491
12491
|
getDeployment: () => Promise<{
|
|
12492
12492
|
siteId: string;
|
|
12493
|
-
status: "
|
|
12493
|
+
status: "IN_PROGRESS" | "FAILED" | "SUCCEEDED";
|
|
12494
12494
|
url: string;
|
|
12495
12495
|
startedAt: string;
|
|
12496
12496
|
finishedAt: string | null;
|
|
@@ -12512,7 +12512,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
12512
12512
|
/** `POST /v1/storefront/site/deployment/retry` (202) — 밀린 반영을 곧바로 다시 시도한다. 이미 반영됐으면 그대로다 */
|
|
12513
12513
|
retryDeployment: () => Promise<{
|
|
12514
12514
|
siteId: string;
|
|
12515
|
-
status: "
|
|
12515
|
+
status: "IN_PROGRESS" | "FAILED" | "SUCCEEDED";
|
|
12516
12516
|
url: string;
|
|
12517
12517
|
startedAt: string;
|
|
12518
12518
|
finishedAt: string | null;
|
|
@@ -13087,7 +13087,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13087
13087
|
runCheck: (body: RunStorefrontCheckRequest) => Promise<{
|
|
13088
13088
|
checkId: string;
|
|
13089
13089
|
check: string;
|
|
13090
|
-
status: "
|
|
13090
|
+
status: "UNKNOWN" | "FAILED" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
|
|
13091
13091
|
exitCode: number | null;
|
|
13092
13092
|
durationMs: number | null;
|
|
13093
13093
|
outputTail: string | null;
|
|
@@ -13101,7 +13101,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13101
13101
|
getCheck: (checkId: string) => Promise<{
|
|
13102
13102
|
checkId: string;
|
|
13103
13103
|
check: string;
|
|
13104
|
-
status: "
|
|
13104
|
+
status: "UNKNOWN" | "FAILED" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
|
|
13105
13105
|
exitCode: number | null;
|
|
13106
13106
|
durationMs: number | null;
|
|
13107
13107
|
outputTail: string | null;
|
|
@@ -13725,7 +13725,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13725
13725
|
userId: string;
|
|
13726
13726
|
name: string;
|
|
13727
13727
|
email: string;
|
|
13728
|
-
role: "
|
|
13728
|
+
role: "ADMIN" | "STAFF" | "OWNER";
|
|
13729
13729
|
joinedAt: string;
|
|
13730
13730
|
lastActiveAt: string | null;
|
|
13731
13731
|
}[]>;
|
|
@@ -14092,7 +14092,7 @@ export interface PricingResult {
|
|
|
14092
14092
|
pointAmount: number;
|
|
14093
14093
|
/** 지금 쓸 수 있는 최대 적립금 — 주문서 안내값(잔액을 모두 요청했을 때의 금액). 적립금 입력이 없으면 0 */
|
|
14094
14094
|
pointMaxUsable: number;
|
|
14095
|
-
/** 요청보다 적게 썼다면 그 이유 — `MIN_PAYMENT`: 결제
|
|
14095
|
+
/** 요청보다 적게 썼다면 그 이유 — `MIN_PAYMENT`: 남는 결제 금액이 1~99원이라 100원을 남기려고 줄였다(전액이면 0원 결제) */
|
|
14096
14096
|
pointAdjustReason: "MIN_PAYMENT" | null;
|
|
14097
14097
|
/** 요청했지만 쓰지 못했다면 그 이유 */
|
|
14098
14098
|
pointRejectReason: PointRejectReason | null;
|
|
@@ -14126,8 +14126,10 @@ export declare function isCouponTargetLine(rule: Pick<CouponRule, "target" | "co
|
|
|
14126
14126
|
*/
|
|
14127
14127
|
export declare function quotePricing(input: PricingInput): PricingResult;
|
|
14128
14128
|
/**
|
|
14129
|
-
* 사용 적립금 금액(순수) — 요청·잔액·최대
|
|
14130
|
-
*
|
|
14129
|
+
* 사용 적립금 금액(순수) — 요청·잔액·최대 비율 중 작은 값을 쓴다(#93 P3·P4).
|
|
14130
|
+
* - 결제 금액 전체를 덮을 수 있으면 전액을 쓴다(0원 결제, 이때만 사용 단위를 보지 않는다)
|
|
14131
|
+
* - 그 밖에는 사용 단위로 내리고, 남는 결제 금액이 1~99원이면 적립금을 줄여 100원을 남긴다(`MIN_PAYMENT`)
|
|
14132
|
+
* 최소 보유액·최소 사용액에 못 미치면 0이다.
|
|
14131
14133
|
*/
|
|
14132
14134
|
export declare function pointUseOf(points: PricingPoints | null, amounts: {
|
|
14133
14135
|
productPaid: number;
|
|
@@ -14365,14 +14367,14 @@ export declare const STORE_SCOPE_RESOURCES: {
|
|
|
14365
14367
|
};
|
|
14366
14368
|
export type StoreScopeResource = keyof typeof STORE_SCOPE_RESOURCES;
|
|
14367
14369
|
export declare const storeScopeResourceSchema: z.ZodEnum<{
|
|
14368
|
-
product: "product";
|
|
14369
14370
|
category: "category";
|
|
14371
|
+
analytics: "analytics";
|
|
14372
|
+
product: "product";
|
|
14370
14373
|
order: "order";
|
|
14371
14374
|
claim: "claim";
|
|
14372
14375
|
inquiry: "inquiry";
|
|
14373
14376
|
review: "review";
|
|
14374
14377
|
settlement: "settlement";
|
|
14375
|
-
analytics: "analytics";
|
|
14376
14378
|
webhook: "webhook";
|
|
14377
14379
|
store: "store";
|
|
14378
14380
|
member: "member";
|
|
@@ -15088,6 +15090,7 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
|
|
|
15088
15090
|
CANCEL: "CANCEL";
|
|
15089
15091
|
}>;
|
|
15090
15092
|
status: z.ZodEnum<{
|
|
15093
|
+
COMPLETED: "COMPLETED";
|
|
15091
15094
|
REJECTED: "REJECTED";
|
|
15092
15095
|
REQUESTED: "REQUESTED";
|
|
15093
15096
|
HELD: "HELD";
|
|
@@ -15095,7 +15098,6 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
|
|
|
15095
15098
|
COLLECTED: "COLLECTED";
|
|
15096
15099
|
REDELIVERING: "REDELIVERING";
|
|
15097
15100
|
APPROVED: "APPROVED";
|
|
15098
|
-
COMPLETED: "COMPLETED";
|
|
15099
15101
|
WITHDRAWN: "WITHDRAWN";
|
|
15100
15102
|
}>;
|
|
15101
15103
|
quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -15281,6 +15283,7 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
|
|
|
15281
15283
|
CANCEL: "CANCEL";
|
|
15282
15284
|
}>;
|
|
15283
15285
|
status: z.ZodEnum<{
|
|
15286
|
+
COMPLETED: "COMPLETED";
|
|
15284
15287
|
REJECTED: "REJECTED";
|
|
15285
15288
|
REQUESTED: "REQUESTED";
|
|
15286
15289
|
HELD: "HELD";
|
|
@@ -15288,7 +15291,6 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
|
|
|
15288
15291
|
COLLECTED: "COLLECTED";
|
|
15289
15292
|
REDELIVERING: "REDELIVERING";
|
|
15290
15293
|
APPROVED: "APPROVED";
|
|
15291
|
-
COMPLETED: "COMPLETED";
|
|
15292
15294
|
WITHDRAWN: "WITHDRAWN";
|
|
15293
15295
|
}>;
|
|
15294
15296
|
quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -15494,6 +15496,7 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
15494
15496
|
CANCEL: "CANCEL";
|
|
15495
15497
|
}>;
|
|
15496
15498
|
status: z.ZodEnum<{
|
|
15499
|
+
COMPLETED: "COMPLETED";
|
|
15497
15500
|
REJECTED: "REJECTED";
|
|
15498
15501
|
REQUESTED: "REQUESTED";
|
|
15499
15502
|
HELD: "HELD";
|
|
@@ -15501,7 +15504,6 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
15501
15504
|
COLLECTED: "COLLECTED";
|
|
15502
15505
|
REDELIVERING: "REDELIVERING";
|
|
15503
15506
|
APPROVED: "APPROVED";
|
|
15504
|
-
COMPLETED: "COMPLETED";
|
|
15505
15507
|
WITHDRAWN: "WITHDRAWN";
|
|
15506
15508
|
}>;
|
|
15507
15509
|
quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
package/dist/index.mjs
CHANGED
|
@@ -2730,8 +2730,10 @@ function quotePricing(input) {
|
|
|
2730
2730
|
};
|
|
2731
2731
|
}
|
|
2732
2732
|
/**
|
|
2733
|
-
* 사용 적립금 금액(순수) — 요청·잔액·최대
|
|
2734
|
-
*
|
|
2733
|
+
* 사용 적립금 금액(순수) — 요청·잔액·최대 비율 중 작은 값을 쓴다(#93 P3·P4).
|
|
2734
|
+
* - 결제 금액 전체를 덮을 수 있으면 전액을 쓴다(0원 결제, 이때만 사용 단위를 보지 않는다)
|
|
2735
|
+
* - 그 밖에는 사용 단위로 내리고, 남는 결제 금액이 1~99원이면 적립금을 줄여 100원을 남긴다(`MIN_PAYMENT`)
|
|
2736
|
+
* 최소 보유액·최소 사용액에 못 미치면 0이다.
|
|
2735
2737
|
*/
|
|
2736
2738
|
function pointUseOf(points, amounts) {
|
|
2737
2739
|
const none = {
|
|
@@ -2745,12 +2747,29 @@ function pointUseOf(points, amounts) {
|
|
|
2745
2747
|
const unit = Math.max(1, Math.floor(rules.unit));
|
|
2746
2748
|
const base = amounts.productPaid + (rules.includeDeliveryFee ? amounts.deliveryPaid : 0);
|
|
2747
2749
|
const byRatio = Math.floor(base * rules.maxRatioBp / 1e4);
|
|
2748
|
-
const byPayment = Math.max(0, amounts.total - 100);
|
|
2749
2750
|
const balance = Math.max(0, points.balance);
|
|
2751
|
+
const total = Math.max(0, amounts.total);
|
|
2750
2752
|
const floorUnit = (value) => Math.floor(Math.max(0, value) / unit) * unit;
|
|
2753
|
+
/** 상한 `cap`으로 쓸 수 있는 금액 — 전액이면 0원 결제, 아니면 단위 내림 + 100원 남기기 */
|
|
2754
|
+
const usableWithin = (cap) => {
|
|
2755
|
+
if (total > 0 && cap >= total) return {
|
|
2756
|
+
amount: total,
|
|
2757
|
+
adjusted: false
|
|
2758
|
+
};
|
|
2759
|
+
const amount = floorUnit(Math.min(cap, total));
|
|
2760
|
+
const remaining = total - amount;
|
|
2761
|
+
if (remaining > 0 && remaining < 100) return {
|
|
2762
|
+
amount: floorUnit(total - 100),
|
|
2763
|
+
adjusted: true
|
|
2764
|
+
};
|
|
2765
|
+
return {
|
|
2766
|
+
amount,
|
|
2767
|
+
adjusted: false
|
|
2768
|
+
};
|
|
2769
|
+
};
|
|
2751
2770
|
const eligible = balance >= rules.minBalance;
|
|
2752
|
-
const ceiling = Math.min(balance, byRatio
|
|
2753
|
-
const maxUsable = eligible &&
|
|
2771
|
+
const ceiling = usableWithin(Math.min(balance, byRatio)).amount;
|
|
2772
|
+
const maxUsable = eligible && ceiling > 0 && ceiling >= rules.minAmount ? ceiling : 0;
|
|
2754
2773
|
const requested = Math.max(0, Math.floor(points.requested));
|
|
2755
2774
|
if (requested === 0) return {
|
|
2756
2775
|
...none,
|
|
@@ -2762,23 +2781,23 @@ function pointUseOf(points, amounts) {
|
|
|
2762
2781
|
adjustReason: null,
|
|
2763
2782
|
rejectReason: "MIN_BALANCE"
|
|
2764
2783
|
};
|
|
2765
|
-
const
|
|
2766
|
-
if (amount <= 0) return {
|
|
2784
|
+
const used = usableWithin(Math.min(requested, balance, byRatio));
|
|
2785
|
+
if (used.amount <= 0) return {
|
|
2767
2786
|
amount: 0,
|
|
2768
2787
|
maxUsable,
|
|
2769
2788
|
adjustReason: null,
|
|
2770
2789
|
rejectReason: "NOT_PAYABLE"
|
|
2771
2790
|
};
|
|
2772
|
-
if (amount < rules.minAmount) return {
|
|
2791
|
+
if (used.amount < rules.minAmount) return {
|
|
2773
2792
|
amount: 0,
|
|
2774
2793
|
maxUsable,
|
|
2775
2794
|
adjustReason: null,
|
|
2776
2795
|
rejectReason: "MIN_AMOUNT"
|
|
2777
2796
|
};
|
|
2778
2797
|
return {
|
|
2779
|
-
amount,
|
|
2798
|
+
amount: used.amount,
|
|
2780
2799
|
maxUsable,
|
|
2781
|
-
adjustReason:
|
|
2800
|
+
adjustReason: used.adjusted ? "MIN_PAYMENT" : null,
|
|
2782
2801
|
rejectReason: null
|
|
2783
2802
|
};
|
|
2784
2803
|
}
|
package/package.json
CHANGED
package/src/schemas/promotion.ts
CHANGED
|
@@ -316,7 +316,7 @@ export interface PricingResult {
|
|
|
316
316
|
pointAmount: number;
|
|
317
317
|
/** 지금 쓸 수 있는 최대 적립금 — 주문서 안내값(잔액을 모두 요청했을 때의 금액). 적립금 입력이 없으면 0 */
|
|
318
318
|
pointMaxUsable: number;
|
|
319
|
-
/** 요청보다 적게 썼다면 그 이유 — `MIN_PAYMENT`: 결제
|
|
319
|
+
/** 요청보다 적게 썼다면 그 이유 — `MIN_PAYMENT`: 남는 결제 금액이 1~99원이라 100원을 남기려고 줄였다(전액이면 0원 결제) */
|
|
320
320
|
pointAdjustReason: "MIN_PAYMENT" | null;
|
|
321
321
|
/** 요청했지만 쓰지 못했다면 그 이유 */
|
|
322
322
|
pointRejectReason: PointRejectReason | null;
|
|
@@ -662,8 +662,10 @@ export function quotePricing(input: PricingInput): PricingResult {
|
|
|
662
662
|
}
|
|
663
663
|
|
|
664
664
|
/**
|
|
665
|
-
* 사용 적립금 금액(순수) — 요청·잔액·최대
|
|
666
|
-
*
|
|
665
|
+
* 사용 적립금 금액(순수) — 요청·잔액·최대 비율 중 작은 값을 쓴다(#93 P3·P4).
|
|
666
|
+
* - 결제 금액 전체를 덮을 수 있으면 전액을 쓴다(0원 결제, 이때만 사용 단위를 보지 않는다)
|
|
667
|
+
* - 그 밖에는 사용 단위로 내리고, 남는 결제 금액이 1~99원이면 적립금을 줄여 100원을 남긴다(`MIN_PAYMENT`)
|
|
668
|
+
* 최소 보유액·최소 사용액에 못 미치면 0이다.
|
|
667
669
|
*/
|
|
668
670
|
export function pointUseOf(
|
|
669
671
|
points: PricingPoints | null,
|
|
@@ -680,27 +682,38 @@ export function pointUseOf(
|
|
|
680
682
|
const unit = Math.max(1, Math.floor(rules.unit));
|
|
681
683
|
const base = amounts.productPaid + (rules.includeDeliveryFee ? amounts.deliveryPaid : 0);
|
|
682
684
|
const byRatio = Math.floor((base * rules.maxRatioBp) / 10_000);
|
|
683
|
-
// 결제 금액은 0원 또는 100원 이상이어야 하고, 지금은 0원 결제를 받지 않으므로 100원을 남긴다
|
|
684
|
-
const byPayment = Math.max(0, amounts.total - MIN_PAYMENT_AMOUNT);
|
|
685
685
|
const balance = Math.max(0, points.balance);
|
|
686
|
+
const total = Math.max(0, amounts.total);
|
|
686
687
|
const floorUnit = (value: number) => Math.floor(Math.max(0, value) / unit) * unit;
|
|
688
|
+
/** 상한 `cap`으로 쓸 수 있는 금액 — 전액이면 0원 결제, 아니면 단위 내림 + 100원 남기기 */
|
|
689
|
+
const usableWithin = (cap: number): { amount: number; adjusted: boolean } => {
|
|
690
|
+
if (total > 0 && cap >= total) return { amount: total, adjusted: false };
|
|
691
|
+
const amount = floorUnit(Math.min(cap, total));
|
|
692
|
+
const remaining = total - amount;
|
|
693
|
+
if (remaining > 0 && remaining < MIN_PAYMENT_AMOUNT) {
|
|
694
|
+
return { amount: floorUnit(total - MIN_PAYMENT_AMOUNT), adjusted: true };
|
|
695
|
+
}
|
|
696
|
+
return { amount, adjusted: false };
|
|
697
|
+
};
|
|
687
698
|
const eligible = balance >= rules.minBalance;
|
|
688
|
-
const ceiling = Math.min(balance, byRatio
|
|
689
|
-
const maxUsable = eligible &&
|
|
699
|
+
const ceiling = usableWithin(Math.min(balance, byRatio)).amount;
|
|
700
|
+
const maxUsable = eligible && ceiling > 0 && ceiling >= rules.minAmount ? ceiling : 0;
|
|
690
701
|
const requested = Math.max(0, Math.floor(points.requested));
|
|
691
702
|
if (requested === 0) return { ...none, maxUsable };
|
|
692
703
|
if (!eligible) return { amount: 0, maxUsable, adjustReason: null, rejectReason: "MIN_BALANCE" };
|
|
693
|
-
const
|
|
694
|
-
if (amount <= 0) {
|
|
704
|
+
const used = usableWithin(Math.min(requested, balance, byRatio));
|
|
705
|
+
if (used.amount <= 0) {
|
|
695
706
|
return { amount: 0, maxUsable, adjustReason: null, rejectReason: "NOT_PAYABLE" };
|
|
696
707
|
}
|
|
697
|
-
if (amount < rules.minAmount) {
|
|
708
|
+
if (used.amount < rules.minAmount) {
|
|
698
709
|
return { amount: 0, maxUsable, adjustReason: null, rejectReason: "MIN_AMOUNT" };
|
|
699
710
|
}
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
711
|
+
return {
|
|
712
|
+
amount: used.amount,
|
|
713
|
+
maxUsable,
|
|
714
|
+
adjustReason: used.adjusted ? "MIN_PAYMENT" : null,
|
|
715
|
+
rejectReason: null,
|
|
716
|
+
};
|
|
704
717
|
}
|
|
705
718
|
|
|
706
719
|
// ─── 환불 정산: 조건 미달 차감 ─────────────────────────────
|