@sayren/store-sdk 0.30.0 → 0.30.2
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 +690 -61
- package/dist/index.mjs +220 -9
- package/package.json +1 -1
- package/src/client.ts +98 -0
- package/src/schemas/commerce-flow.ts +253 -1
- package/src/schemas/misc.ts +2 -0
- package/src/schemas/order.ts +10 -0
- package/src/schemas/webhook-event.ts +26 -0
package/dist/index.d.mts
CHANGED
|
@@ -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";
|
|
970
969
|
RECENT: "RECENT";
|
|
971
970
|
POPULAR: "POPULAR";
|
|
972
971
|
PRICE_LOW: "PRICE_LOW";
|
|
973
972
|
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";
|
|
990
989
|
RECENT: "RECENT";
|
|
991
990
|
POPULAR: "POPULAR";
|
|
992
991
|
PRICE_LOW: "PRICE_LOW";
|
|
993
992
|
PRICE_HIGH: "PRICE_HIGH";
|
|
993
|
+
NAME: "NAME";
|
|
994
994
|
}>;
|
|
995
995
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
996
996
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1017,11 +1017,11 @@ export declare const categoryWithPathSchema: z.ZodObject<{
|
|
|
1017
1017
|
showPc: z.ZodBoolean;
|
|
1018
1018
|
showMobile: z.ZodBoolean;
|
|
1019
1019
|
productSort: z.ZodEnum<{
|
|
1020
|
-
NAME: "NAME";
|
|
1021
1020
|
RECENT: "RECENT";
|
|
1022
1021
|
POPULAR: "POPULAR";
|
|
1023
1022
|
PRICE_LOW: "PRICE_LOW";
|
|
1024
1023
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1024
|
+
NAME: "NAME";
|
|
1025
1025
|
}>;
|
|
1026
1026
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1027
1027
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1043,11 +1043,11 @@ export declare const categoryWithPathSchema: z.ZodObject<{
|
|
|
1043
1043
|
showPc: z.ZodBoolean;
|
|
1044
1044
|
showMobile: z.ZodBoolean;
|
|
1045
1045
|
productSort: z.ZodEnum<{
|
|
1046
|
-
NAME: "NAME";
|
|
1047
1046
|
RECENT: "RECENT";
|
|
1048
1047
|
POPULAR: "POPULAR";
|
|
1049
1048
|
PRICE_LOW: "PRICE_LOW";
|
|
1050
1049
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1050
|
+
NAME: "NAME";
|
|
1051
1051
|
}>;
|
|
1052
1052
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1053
1053
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1072,11 +1072,11 @@ export declare const categorySearchResultSchema: z.ZodObject<{
|
|
|
1072
1072
|
showPc: z.ZodBoolean;
|
|
1073
1073
|
showMobile: z.ZodBoolean;
|
|
1074
1074
|
productSort: z.ZodEnum<{
|
|
1075
|
-
NAME: "NAME";
|
|
1076
1075
|
RECENT: "RECENT";
|
|
1077
1076
|
POPULAR: "POPULAR";
|
|
1078
1077
|
PRICE_LOW: "PRICE_LOW";
|
|
1079
1078
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1079
|
+
NAME: "NAME";
|
|
1080
1080
|
}>;
|
|
1081
1081
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1082
1082
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1098,11 +1098,11 @@ export declare const categorySearchResultSchema: z.ZodObject<{
|
|
|
1098
1098
|
showPc: z.ZodBoolean;
|
|
1099
1099
|
showMobile: z.ZodBoolean;
|
|
1100
1100
|
productSort: z.ZodEnum<{
|
|
1101
|
-
NAME: "NAME";
|
|
1102
1101
|
RECENT: "RECENT";
|
|
1103
1102
|
POPULAR: "POPULAR";
|
|
1104
1103
|
PRICE_LOW: "PRICE_LOW";
|
|
1105
1104
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1105
|
+
NAME: "NAME";
|
|
1106
1106
|
}>;
|
|
1107
1107
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1108
1108
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
@@ -1135,11 +1135,11 @@ export declare const categoryCreateRequestSchema: z.ZodObject<{
|
|
|
1135
1135
|
showPc: z.ZodOptional<z.ZodBoolean>;
|
|
1136
1136
|
showMobile: z.ZodOptional<z.ZodBoolean>;
|
|
1137
1137
|
productSort: z.ZodOptional<z.ZodEnum<{
|
|
1138
|
-
NAME: "NAME";
|
|
1139
1138
|
RECENT: "RECENT";
|
|
1140
1139
|
POPULAR: "POPULAR";
|
|
1141
1140
|
PRICE_LOW: "PRICE_LOW";
|
|
1142
1141
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1142
|
+
NAME: "NAME";
|
|
1143
1143
|
}>>;
|
|
1144
1144
|
metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1145
1145
|
metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1154,11 +1154,11 @@ export declare const categoryPatchRequestSchema: z.ZodObject<{
|
|
|
1154
1154
|
showPc: z.ZodOptional<z.ZodBoolean>;
|
|
1155
1155
|
showMobile: z.ZodOptional<z.ZodBoolean>;
|
|
1156
1156
|
productSort: z.ZodOptional<z.ZodEnum<{
|
|
1157
|
-
NAME: "NAME";
|
|
1158
1157
|
RECENT: "RECENT";
|
|
1159
1158
|
POPULAR: "POPULAR";
|
|
1160
1159
|
PRICE_LOW: "PRICE_LOW";
|
|
1161
1160
|
PRICE_HIGH: "PRICE_HIGH";
|
|
1161
|
+
NAME: "NAME";
|
|
1162
1162
|
}>>;
|
|
1163
1163
|
metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1164
1164
|
metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -1271,13 +1271,13 @@ export declare const claimTypeSchema: z.ZodEnum<{
|
|
|
1271
1271
|
export type ClaimType = z.infer<typeof claimTypeSchema>;
|
|
1272
1272
|
export declare const claimStatusSchema: z.ZodEnum<{
|
|
1273
1273
|
REJECTED: "REJECTED";
|
|
1274
|
+
COMPLETED: "COMPLETED";
|
|
1274
1275
|
REQUESTED: "REQUESTED";
|
|
1275
1276
|
HELD: "HELD";
|
|
1276
1277
|
COLLECTING: "COLLECTING";
|
|
1277
1278
|
COLLECTED: "COLLECTED";
|
|
1278
1279
|
REDELIVERING: "REDELIVERING";
|
|
1279
1280
|
APPROVED: "APPROVED";
|
|
1280
|
-
COMPLETED: "COMPLETED";
|
|
1281
1281
|
WITHDRAWN: "WITHDRAWN";
|
|
1282
1282
|
}>;
|
|
1283
1283
|
export type ClaimStatus = z.infer<typeof claimStatusSchema>;
|
|
@@ -1316,13 +1316,13 @@ export declare const claimSchema: z.ZodObject<{
|
|
|
1316
1316
|
}>;
|
|
1317
1317
|
status: z.ZodEnum<{
|
|
1318
1318
|
REJECTED: "REJECTED";
|
|
1319
|
+
COMPLETED: "COMPLETED";
|
|
1319
1320
|
REQUESTED: "REQUESTED";
|
|
1320
1321
|
HELD: "HELD";
|
|
1321
1322
|
COLLECTING: "COLLECTING";
|
|
1322
1323
|
COLLECTED: "COLLECTED";
|
|
1323
1324
|
REDELIVERING: "REDELIVERING";
|
|
1324
1325
|
APPROVED: "APPROVED";
|
|
1325
|
-
COMPLETED: "COMPLETED";
|
|
1326
1326
|
WITHDRAWN: "WITHDRAWN";
|
|
1327
1327
|
}>;
|
|
1328
1328
|
orderId: z.ZodString;
|
|
@@ -1406,13 +1406,13 @@ export declare const claimDetailSchema: z.ZodObject<{
|
|
|
1406
1406
|
}>;
|
|
1407
1407
|
status: z.ZodEnum<{
|
|
1408
1408
|
REJECTED: "REJECTED";
|
|
1409
|
+
COMPLETED: "COMPLETED";
|
|
1409
1410
|
REQUESTED: "REQUESTED";
|
|
1410
1411
|
HELD: "HELD";
|
|
1411
1412
|
COLLECTING: "COLLECTING";
|
|
1412
1413
|
COLLECTED: "COLLECTED";
|
|
1413
1414
|
REDELIVERING: "REDELIVERING";
|
|
1414
1415
|
APPROVED: "APPROVED";
|
|
1415
|
-
COMPLETED: "COMPLETED";
|
|
1416
1416
|
WITHDRAWN: "WITHDRAWN";
|
|
1417
1417
|
}>;
|
|
1418
1418
|
orderId: z.ZodString;
|
|
@@ -1464,13 +1464,13 @@ export declare const claimDetailSchema: z.ZodObject<{
|
|
|
1464
1464
|
histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1465
1465
|
status: z.ZodEnum<{
|
|
1466
1466
|
REJECTED: "REJECTED";
|
|
1467
|
+
COMPLETED: "COMPLETED";
|
|
1467
1468
|
REQUESTED: "REQUESTED";
|
|
1468
1469
|
HELD: "HELD";
|
|
1469
1470
|
COLLECTING: "COLLECTING";
|
|
1470
1471
|
COLLECTED: "COLLECTED";
|
|
1471
1472
|
REDELIVERING: "REDELIVERING";
|
|
1472
1473
|
APPROVED: "APPROVED";
|
|
1473
|
-
COMPLETED: "COMPLETED";
|
|
1474
1474
|
WITHDRAWN: "WITHDRAWN";
|
|
1475
1475
|
}>;
|
|
1476
1476
|
actor: z.ZodEnum<{
|
|
@@ -2024,6 +2024,7 @@ export declare const flowInputFieldSchema: z.ZodObject<{
|
|
|
2024
2024
|
type: z.ZodString;
|
|
2025
2025
|
required: z.ZodBoolean;
|
|
2026
2026
|
label: z.ZodString;
|
|
2027
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
2027
2028
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
2028
2029
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
2029
2030
|
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -2049,6 +2050,7 @@ export declare const flowActionSchema: z.ZodObject<{
|
|
|
2049
2050
|
type: z.ZodString;
|
|
2050
2051
|
required: z.ZodBoolean;
|
|
2051
2052
|
label: z.ZodString;
|
|
2053
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
2052
2054
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
2053
2055
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
2054
2056
|
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -2074,19 +2076,28 @@ export declare const flowStateSchema: z.ZodObject<{
|
|
|
2074
2076
|
}>>;
|
|
2075
2077
|
claimStatus: z.ZodOptional<z.ZodEnum<{
|
|
2076
2078
|
REJECTED: "REJECTED";
|
|
2079
|
+
COMPLETED: "COMPLETED";
|
|
2077
2080
|
REQUESTED: "REQUESTED";
|
|
2078
2081
|
HELD: "HELD";
|
|
2079
2082
|
COLLECTING: "COLLECTING";
|
|
2080
2083
|
COLLECTED: "COLLECTED";
|
|
2081
2084
|
REDELIVERING: "REDELIVERING";
|
|
2082
2085
|
APPROVED: "APPROVED";
|
|
2083
|
-
COMPLETED: "COMPLETED";
|
|
2084
2086
|
WITHDRAWN: "WITHDRAWN";
|
|
2085
2087
|
}>>;
|
|
2086
2088
|
message: z.ZodOptional<z.ZodString>;
|
|
2087
2089
|
enteredAt: z.ZodString;
|
|
2088
2090
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
2089
2091
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2092
|
+
inputs: z.ZodOptional<z.ZodObject<{
|
|
2093
|
+
by: z.ZodString;
|
|
2094
|
+
values: z.ZodArray<z.ZodObject<{
|
|
2095
|
+
key: z.ZodString;
|
|
2096
|
+
label: z.ZodString;
|
|
2097
|
+
type: z.ZodString;
|
|
2098
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
2099
|
+
}, z.core.$strip>>;
|
|
2100
|
+
}, z.core.$strip>>;
|
|
2090
2101
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
2091
2102
|
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
2092
2103
|
}, z.core.$strip>;
|
|
@@ -2112,19 +2123,28 @@ export declare const orderItemFlowSchema: z.ZodObject<{
|
|
|
2112
2123
|
}>>;
|
|
2113
2124
|
claimStatus: z.ZodOptional<z.ZodEnum<{
|
|
2114
2125
|
REJECTED: "REJECTED";
|
|
2126
|
+
COMPLETED: "COMPLETED";
|
|
2115
2127
|
REQUESTED: "REQUESTED";
|
|
2116
2128
|
HELD: "HELD";
|
|
2117
2129
|
COLLECTING: "COLLECTING";
|
|
2118
2130
|
COLLECTED: "COLLECTED";
|
|
2119
2131
|
REDELIVERING: "REDELIVERING";
|
|
2120
2132
|
APPROVED: "APPROVED";
|
|
2121
|
-
COMPLETED: "COMPLETED";
|
|
2122
2133
|
WITHDRAWN: "WITHDRAWN";
|
|
2123
2134
|
}>>;
|
|
2124
2135
|
message: z.ZodOptional<z.ZodString>;
|
|
2125
2136
|
enteredAt: z.ZodString;
|
|
2126
2137
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
2127
2138
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2139
|
+
inputs: z.ZodOptional<z.ZodObject<{
|
|
2140
|
+
by: z.ZodString;
|
|
2141
|
+
values: z.ZodArray<z.ZodObject<{
|
|
2142
|
+
key: z.ZodString;
|
|
2143
|
+
label: z.ZodString;
|
|
2144
|
+
type: z.ZodString;
|
|
2145
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
2146
|
+
}, z.core.$strip>>;
|
|
2147
|
+
}, z.core.$strip>>;
|
|
2128
2148
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
2129
2149
|
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
2130
2150
|
}, z.core.$strip>;
|
|
@@ -2148,6 +2168,7 @@ export declare const orderItemFlowSchema: z.ZodObject<{
|
|
|
2148
2168
|
type: z.ZodString;
|
|
2149
2169
|
required: z.ZodBoolean;
|
|
2150
2170
|
label: z.ZodString;
|
|
2171
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
2151
2172
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
2152
2173
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
2153
2174
|
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -2160,8 +2181,100 @@ export declare const orderItemFlowSchema: z.ZodObject<{
|
|
|
2160
2181
|
paused: z.ZodBoolean;
|
|
2161
2182
|
}, z.core.$strip>>;
|
|
2162
2183
|
ended: z.ZodBoolean;
|
|
2184
|
+
moveTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2185
|
+
key: z.ZodString;
|
|
2186
|
+
label: z.ZodString;
|
|
2187
|
+
coreStatus: z.ZodNullable<z.ZodEnum<{
|
|
2188
|
+
PAID: "PAID";
|
|
2189
|
+
CANCELED: "CANCELED";
|
|
2190
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
2191
|
+
CONFIRMED: "CONFIRMED";
|
|
2192
|
+
DISPATCHED: "DISPATCHED";
|
|
2193
|
+
DELIVERING: "DELIVERING";
|
|
2194
|
+
DELIVERED: "DELIVERED";
|
|
2195
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
2196
|
+
}>>;
|
|
2197
|
+
}, z.core.$strip>>>;
|
|
2198
|
+
branches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2199
|
+
key: z.ZodString;
|
|
2200
|
+
label: z.ZodString;
|
|
2201
|
+
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
2202
|
+
PAID: "PAID";
|
|
2203
|
+
CANCELED: "CANCELED";
|
|
2204
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
2205
|
+
CONFIRMED: "CONFIRMED";
|
|
2206
|
+
DISPATCHED: "DISPATCHED";
|
|
2207
|
+
DELIVERING: "DELIVERING";
|
|
2208
|
+
DELIVERED: "DELIVERED";
|
|
2209
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
2210
|
+
}>>;
|
|
2211
|
+
claimStatus: z.ZodOptional<z.ZodEnum<{
|
|
2212
|
+
REJECTED: "REJECTED";
|
|
2213
|
+
COMPLETED: "COMPLETED";
|
|
2214
|
+
REQUESTED: "REQUESTED";
|
|
2215
|
+
HELD: "HELD";
|
|
2216
|
+
COLLECTING: "COLLECTING";
|
|
2217
|
+
COLLECTED: "COLLECTED";
|
|
2218
|
+
REDELIVERING: "REDELIVERING";
|
|
2219
|
+
APPROVED: "APPROVED";
|
|
2220
|
+
WITHDRAWN: "WITHDRAWN";
|
|
2221
|
+
}>>;
|
|
2222
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2223
|
+
enteredAt: z.ZodString;
|
|
2224
|
+
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
2225
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2226
|
+
inputs: z.ZodOptional<z.ZodObject<{
|
|
2227
|
+
by: z.ZodString;
|
|
2228
|
+
values: z.ZodArray<z.ZodObject<{
|
|
2229
|
+
key: z.ZodString;
|
|
2230
|
+
label: z.ZodString;
|
|
2231
|
+
type: z.ZodString;
|
|
2232
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
2233
|
+
}, z.core.$strip>>;
|
|
2234
|
+
}, z.core.$strip>>;
|
|
2235
|
+
progress: z.ZodOptional<z.ZodBoolean>;
|
|
2236
|
+
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
2237
|
+
}, z.core.$strip>>>;
|
|
2163
2238
|
}, z.core.$strip>;
|
|
2164
2239
|
export type OrderItemFlow = z.infer<typeof orderItemFlowSchema>;
|
|
2240
|
+
/** 상태 직접 이동(#115) — 연결선을 지나지 않고 다른 상태로 옮긴다. 블록(재고·환불·송장)은 실행하지 않는다 */
|
|
2241
|
+
export declare const moveFlowStateRequestSchema: z.ZodObject<{
|
|
2242
|
+
to: z.ZodString;
|
|
2243
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2244
|
+
}, z.core.$strip>;
|
|
2245
|
+
export type MoveFlowStateRequest = z.infer<typeof moveFlowStateRequestSchema>;
|
|
2246
|
+
export declare const flowRunStepSchema: z.ZodObject<{
|
|
2247
|
+
step: z.ZodNumber;
|
|
2248
|
+
block: z.ZodString;
|
|
2249
|
+
edgeId: z.ZodString;
|
|
2250
|
+
status: z.ZodString;
|
|
2251
|
+
output: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2252
|
+
at: z.ZodString;
|
|
2253
|
+
}, z.core.$strip>;
|
|
2254
|
+
/** 흐름 실행 기록 — 사건 하나가 일으킨 전이(시작·행동·사건·시간·이동·취소) */
|
|
2255
|
+
export declare const flowRunSchema: z.ZodObject<{
|
|
2256
|
+
runId: z.ZodString;
|
|
2257
|
+
orderItemId: z.ZodOptional<z.ZodString>;
|
|
2258
|
+
trigger: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2259
|
+
status: z.ZodString;
|
|
2260
|
+
fromState: z.ZodNullable<z.ZodString>;
|
|
2261
|
+
fromLabel: z.ZodNullable<z.ZodString>;
|
|
2262
|
+
toState: z.ZodString;
|
|
2263
|
+
toLabel: z.ZodString;
|
|
2264
|
+
path: z.ZodArray<z.ZodString>;
|
|
2265
|
+
error: z.ZodNullable<z.ZodUnknown>;
|
|
2266
|
+
startedAt: z.ZodString;
|
|
2267
|
+
finishedAt: z.ZodNullable<z.ZodString>;
|
|
2268
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
2269
|
+
step: z.ZodNumber;
|
|
2270
|
+
block: z.ZodString;
|
|
2271
|
+
edgeId: z.ZodString;
|
|
2272
|
+
status: z.ZodString;
|
|
2273
|
+
output: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2274
|
+
at: z.ZodString;
|
|
2275
|
+
}, z.core.$strip>>;
|
|
2276
|
+
}, z.core.$strip>;
|
|
2277
|
+
export type FlowRun = z.infer<typeof flowRunSchema>;
|
|
2165
2278
|
export declare const flowActionRequestSchema: z.ZodObject<{
|
|
2166
2279
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2167
2280
|
}, z.core.$strip>;
|
|
@@ -2187,19 +2300,28 @@ export declare const flowActionResultSchema: z.ZodObject<{
|
|
|
2187
2300
|
}>>;
|
|
2188
2301
|
claimStatus: z.ZodOptional<z.ZodEnum<{
|
|
2189
2302
|
REJECTED: "REJECTED";
|
|
2303
|
+
COMPLETED: "COMPLETED";
|
|
2190
2304
|
REQUESTED: "REQUESTED";
|
|
2191
2305
|
HELD: "HELD";
|
|
2192
2306
|
COLLECTING: "COLLECTING";
|
|
2193
2307
|
COLLECTED: "COLLECTED";
|
|
2194
2308
|
REDELIVERING: "REDELIVERING";
|
|
2195
2309
|
APPROVED: "APPROVED";
|
|
2196
|
-
COMPLETED: "COMPLETED";
|
|
2197
2310
|
WITHDRAWN: "WITHDRAWN";
|
|
2198
2311
|
}>>;
|
|
2199
2312
|
message: z.ZodOptional<z.ZodString>;
|
|
2200
2313
|
enteredAt: z.ZodString;
|
|
2201
2314
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
2202
2315
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2316
|
+
inputs: z.ZodOptional<z.ZodObject<{
|
|
2317
|
+
by: z.ZodString;
|
|
2318
|
+
values: z.ZodArray<z.ZodObject<{
|
|
2319
|
+
key: z.ZodString;
|
|
2320
|
+
label: z.ZodString;
|
|
2321
|
+
type: z.ZodString;
|
|
2322
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
2323
|
+
}, z.core.$strip>>;
|
|
2324
|
+
}, z.core.$strip>>;
|
|
2203
2325
|
progress: z.ZodOptional<z.ZodBoolean>;
|
|
2204
2326
|
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
2205
2327
|
}, z.core.$strip>;
|
|
@@ -2223,6 +2345,7 @@ export declare const flowActionResultSchema: z.ZodObject<{
|
|
|
2223
2345
|
type: z.ZodString;
|
|
2224
2346
|
required: z.ZodBoolean;
|
|
2225
2347
|
label: z.ZodString;
|
|
2348
|
+
placeholder: z.ZodOptional<z.ZodString>;
|
|
2226
2349
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
2227
2350
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
2228
2351
|
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
|
|
@@ -2325,9 +2448,28 @@ export declare const commerceFlowSchema: z.ZodObject<{
|
|
|
2325
2448
|
LEGACY: "LEGACY";
|
|
2326
2449
|
}>;
|
|
2327
2450
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
2451
|
+
inProgress: z.ZodOptional<z.ZodNumber>;
|
|
2328
2452
|
}, z.core.$strip>>;
|
|
2329
2453
|
}, z.core.$strip>;
|
|
2330
2454
|
export type CommerceFlow = z.infer<typeof commerceFlowSchema>;
|
|
2455
|
+
export type CommerceFlowVersionView = z.infer<typeof commerceFlowVersionViewSchema>;
|
|
2456
|
+
/** 진행 중 주문을 활성 버전으로 옮기기(#115) — 한 번에 `limit`개까지. 남으면 다시 부른다 */
|
|
2457
|
+
export declare const migrateFlowVersionRequestSchema: z.ZodObject<{
|
|
2458
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2459
|
+
}, z.core.$strip>;
|
|
2460
|
+
export type MigrateFlowVersionRequest = z.infer<typeof migrateFlowVersionRequestSchema>;
|
|
2461
|
+
export declare const migrateFlowVersionResultSchema: z.ZodObject<{
|
|
2462
|
+
fromVersion: z.ZodNumber;
|
|
2463
|
+
toVersion: z.ZodNumber;
|
|
2464
|
+
migrated: z.ZodNumber;
|
|
2465
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
2466
|
+
orderItemIds: z.ZodArray<z.ZodString>;
|
|
2467
|
+
state: z.ZodString;
|
|
2468
|
+
reason: z.ZodString;
|
|
2469
|
+
}, z.core.$strip>>;
|
|
2470
|
+
remaining: z.ZodNumber;
|
|
2471
|
+
}, z.core.$strip>;
|
|
2472
|
+
export type MigrateFlowVersionResult = z.infer<typeof migrateFlowVersionResultSchema>;
|
|
2331
2473
|
export declare const createCommerceFlowRequestSchema: z.ZodObject<{
|
|
2332
2474
|
key: z.ZodString;
|
|
2333
2475
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2382,6 +2524,137 @@ export declare const saveFlowSecretRequestSchema: z.ZodObject<{
|
|
|
2382
2524
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2383
2525
|
}, z.core.$strip>;
|
|
2384
2526
|
export type SaveFlowSecretRequest = z.input<typeof saveFlowSecretRequestSchema>;
|
|
2527
|
+
/**
|
|
2528
|
+
* 주문 전체 행동 결과(#115) — 같은 행동을 주문의 주문상품마다 실행한다. 한 주문상품의 실패가 다른 주문상품을 되돌리지 않는다(부분 실행).
|
|
2529
|
+
* 묶음 진행이면 한 번 실행이 묶음의 주문상품을 함께 움직인다(COMPLETED로 함께 나온다). 그 행동이 없는 주문상품은 SKIPPED다
|
|
2530
|
+
*/
|
|
2531
|
+
export declare const orderFlowActionResultSchema: z.ZodObject<{
|
|
2532
|
+
orderId: z.ZodString;
|
|
2533
|
+
key: z.ZodString;
|
|
2534
|
+
results: z.ZodArray<z.ZodObject<{
|
|
2535
|
+
orderItemId: z.ZodString;
|
|
2536
|
+
status: z.ZodEnum<{
|
|
2537
|
+
FAILED: "FAILED";
|
|
2538
|
+
COMPLETED: "COMPLETED";
|
|
2539
|
+
SKIPPED: "SKIPPED";
|
|
2540
|
+
}>;
|
|
2541
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2542
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2543
|
+
}, z.core.$strip>>;
|
|
2544
|
+
}, z.core.$strip>;
|
|
2545
|
+
export type OrderFlowActionResult = z.infer<typeof orderFlowActionResultSchema>;
|
|
2546
|
+
export declare const simulateFlowRequestSchema: z.ZodObject<{
|
|
2547
|
+
startAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2548
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2549
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2550
|
+
event: z.ZodObject<{
|
|
2551
|
+
type: z.ZodEnum<{
|
|
2552
|
+
event: "event";
|
|
2553
|
+
start: "start";
|
|
2554
|
+
"seller.action": "seller.action";
|
|
2555
|
+
"buyer.action": "buyer.action";
|
|
2556
|
+
timer: "timer";
|
|
2557
|
+
}>;
|
|
2558
|
+
key: z.ZodOptional<z.ZodString>;
|
|
2559
|
+
}, z.core.$strip>;
|
|
2560
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2561
|
+
advance: z.ZodString;
|
|
2562
|
+
}, z.core.$strip>]>>;
|
|
2563
|
+
}, z.core.$strip>;
|
|
2564
|
+
export type SimulateFlowRequest = z.infer<typeof simulateFlowRequestSchema>;
|
|
2565
|
+
export declare const simulationStepSchema: z.ZodObject<{
|
|
2566
|
+
step: z.ZodNumber;
|
|
2567
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2568
|
+
at: z.ZodString;
|
|
2569
|
+
node: z.ZodNullable<z.ZodString>;
|
|
2570
|
+
label: z.ZodNullable<z.ZodString>;
|
|
2571
|
+
coreStatus: z.ZodOptional<z.ZodString>;
|
|
2572
|
+
ended: z.ZodBoolean;
|
|
2573
|
+
path: z.ZodArray<z.ZodString>;
|
|
2574
|
+
blocks: z.ZodArray<z.ZodString>;
|
|
2575
|
+
timers: z.ZodArray<z.ZodObject<{
|
|
2576
|
+
key: z.ZodString;
|
|
2577
|
+
dueAt: z.ZodString;
|
|
2578
|
+
}, z.core.$strip>>;
|
|
2579
|
+
leaves: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2580
|
+
node: z.ZodNullable<z.ZodString>;
|
|
2581
|
+
kind: z.ZodString;
|
|
2582
|
+
}, z.core.$strip>>>;
|
|
2583
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2584
|
+
}, z.core.$strip>;
|
|
2585
|
+
export type SimulationStep = z.infer<typeof simulationStepSchema>;
|
|
2586
|
+
export declare const simulateFlowResultSchema: z.ZodObject<{
|
|
2587
|
+
compiled: z.ZodBoolean;
|
|
2588
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2589
|
+
code: z.ZodString;
|
|
2590
|
+
message: z.ZodString;
|
|
2591
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
2592
|
+
edgeId: z.ZodOptional<z.ZodString>;
|
|
2593
|
+
}, z.core.$strip>>;
|
|
2594
|
+
trace: z.ZodArray<z.ZodObject<{
|
|
2595
|
+
step: z.ZodNumber;
|
|
2596
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2597
|
+
at: z.ZodString;
|
|
2598
|
+
node: z.ZodNullable<z.ZodString>;
|
|
2599
|
+
label: z.ZodNullable<z.ZodString>;
|
|
2600
|
+
coreStatus: z.ZodOptional<z.ZodString>;
|
|
2601
|
+
ended: z.ZodBoolean;
|
|
2602
|
+
path: z.ZodArray<z.ZodString>;
|
|
2603
|
+
blocks: z.ZodArray<z.ZodString>;
|
|
2604
|
+
timers: z.ZodArray<z.ZodObject<{
|
|
2605
|
+
key: z.ZodString;
|
|
2606
|
+
dueAt: z.ZodString;
|
|
2607
|
+
}, z.core.$strip>>;
|
|
2608
|
+
leaves: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2609
|
+
node: z.ZodNullable<z.ZodString>;
|
|
2610
|
+
kind: z.ZodString;
|
|
2611
|
+
}, z.core.$strip>>>;
|
|
2612
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2613
|
+
}, z.core.$strip>>;
|
|
2614
|
+
}, z.core.$strip>;
|
|
2615
|
+
export type SimulateFlowResult = z.infer<typeof simulateFlowResultSchema>;
|
|
2616
|
+
export declare const replayFlowRequestSchema: z.ZodObject<{
|
|
2617
|
+
orderItemId: z.ZodString;
|
|
2618
|
+
}, z.core.$strip>;
|
|
2619
|
+
export type ReplayFlowRequest = z.infer<typeof replayFlowRequestSchema>;
|
|
2620
|
+
export declare const replayFlowResultSchema: z.ZodObject<{
|
|
2621
|
+
orderItemId: z.ZodString;
|
|
2622
|
+
compiled: z.ZodBoolean;
|
|
2623
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2624
|
+
code: z.ZodString;
|
|
2625
|
+
message: z.ZodString;
|
|
2626
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
2627
|
+
edgeId: z.ZodOptional<z.ZodString>;
|
|
2628
|
+
}, z.core.$strip>>;
|
|
2629
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
2630
|
+
runId: z.ZodString;
|
|
2631
|
+
trigger: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2632
|
+
recordedState: z.ZodString;
|
|
2633
|
+
simulatedState: z.ZodNullable<z.ZodString>;
|
|
2634
|
+
match: z.ZodBoolean;
|
|
2635
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2636
|
+
}, z.core.$strip>>;
|
|
2637
|
+
divergedAt: z.ZodNullable<z.ZodNumber>;
|
|
2638
|
+
unsupported: z.ZodNumber;
|
|
2639
|
+
}, z.core.$strip>;
|
|
2640
|
+
export type ReplayFlowResult = z.infer<typeof replayFlowResultSchema>;
|
|
2641
|
+
/** 노드·블록 종류 목록(#115) — 흐름을 API·AI로 짤 때 쓸 수 있는 종류와 설정 형식(JSON Schema) */
|
|
2642
|
+
export declare const flowNodeTypesSchema: z.ZodObject<{
|
|
2643
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
2644
|
+
type: z.ZodString;
|
|
2645
|
+
version: z.ZodNumber;
|
|
2646
|
+
kind: z.ZodString;
|
|
2647
|
+
outputs: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2648
|
+
configSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2649
|
+
}, z.core.$strip>>;
|
|
2650
|
+
blocks: z.ZodArray<z.ZodObject<{
|
|
2651
|
+
type: z.ZodString;
|
|
2652
|
+
version: z.ZodNumber;
|
|
2653
|
+
effect: z.ZodString;
|
|
2654
|
+
configSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2655
|
+
}, z.core.$strip>>;
|
|
2656
|
+
}, z.core.$strip>;
|
|
2657
|
+
export type FlowNodeTypes = z.infer<typeof flowNodeTypesSchema>;
|
|
2385
2658
|
//#endregion
|
|
2386
2659
|
//#region src/schemas/coupon.d.ts
|
|
2387
2660
|
/**
|
|
@@ -3606,6 +3879,7 @@ export declare const eventTypeSchema: z.ZodEnum<{
|
|
|
3606
3879
|
"REVIEW.CREATED": "REVIEW.CREATED";
|
|
3607
3880
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
3608
3881
|
"ORDER.FLOW_NOTIFICATION": "ORDER.FLOW_NOTIFICATION";
|
|
3882
|
+
"ORDER.FLOW_STATE_CHANGED": "ORDER.FLOW_STATE_CHANGED";
|
|
3609
3883
|
}>;
|
|
3610
3884
|
export type EventType = z.infer<typeof eventTypeSchema>;
|
|
3611
3885
|
export declare const webhookStatusSchema: z.ZodEnum<{
|
|
@@ -3633,6 +3907,7 @@ export declare const webhookSchema: z.ZodObject<{
|
|
|
3633
3907
|
"REVIEW.CREATED": "REVIEW.CREATED";
|
|
3634
3908
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
3635
3909
|
"ORDER.FLOW_NOTIFICATION": "ORDER.FLOW_NOTIFICATION";
|
|
3910
|
+
"ORDER.FLOW_STATE_CHANGED": "ORDER.FLOW_STATE_CHANGED";
|
|
3636
3911
|
}>>;
|
|
3637
3912
|
status: z.ZodEnum<{
|
|
3638
3913
|
SUSPENDED: "SUSPENDED";
|
|
@@ -3664,6 +3939,7 @@ export declare const webhookCreatedSchema: z.ZodObject<{
|
|
|
3664
3939
|
"REVIEW.CREATED": "REVIEW.CREATED";
|
|
3665
3940
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
3666
3941
|
"ORDER.FLOW_NOTIFICATION": "ORDER.FLOW_NOTIFICATION";
|
|
3942
|
+
"ORDER.FLOW_STATE_CHANGED": "ORDER.FLOW_STATE_CHANGED";
|
|
3667
3943
|
}>>;
|
|
3668
3944
|
status: z.ZodEnum<{
|
|
3669
3945
|
SUSPENDED: "SUSPENDED";
|
|
@@ -3745,6 +4021,7 @@ export declare const webhookDeliverySchema: z.ZodObject<{
|
|
|
3745
4021
|
"REVIEW.CREATED": "REVIEW.CREATED";
|
|
3746
4022
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
3747
4023
|
"ORDER.FLOW_NOTIFICATION": "ORDER.FLOW_NOTIFICATION";
|
|
4024
|
+
"ORDER.FLOW_STATE_CHANGED": "ORDER.FLOW_STATE_CHANGED";
|
|
3748
4025
|
}>;
|
|
3749
4026
|
url: z.ZodString;
|
|
3750
4027
|
status: z.ZodEnum<{
|
|
@@ -3799,6 +4076,7 @@ export declare const webhookDeliveryDetailSchema: z.ZodObject<{
|
|
|
3799
4076
|
"REVIEW.CREATED": "REVIEW.CREATED";
|
|
3800
4077
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
3801
4078
|
"ORDER.FLOW_NOTIFICATION": "ORDER.FLOW_NOTIFICATION";
|
|
4079
|
+
"ORDER.FLOW_STATE_CHANGED": "ORDER.FLOW_STATE_CHANGED";
|
|
3802
4080
|
}>;
|
|
3803
4081
|
url: z.ZodString;
|
|
3804
4082
|
status: z.ZodEnum<{
|
|
@@ -3862,6 +4140,7 @@ export declare const webhookDeliveryListQuerySchema: z.ZodObject<{
|
|
|
3862
4140
|
"REVIEW.CREATED": "REVIEW.CREATED";
|
|
3863
4141
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
3864
4142
|
"ORDER.FLOW_NOTIFICATION": "ORDER.FLOW_NOTIFICATION";
|
|
4143
|
+
"ORDER.FLOW_STATE_CHANGED": "ORDER.FLOW_STATE_CHANGED";
|
|
3865
4144
|
}>>;
|
|
3866
4145
|
resourceId: z.ZodOptional<z.ZodString>;
|
|
3867
4146
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3890,6 +4169,7 @@ export declare const webhookTestRequestSchema: z.ZodObject<{
|
|
|
3890
4169
|
"REVIEW.CREATED": "REVIEW.CREATED";
|
|
3891
4170
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
3892
4171
|
"ORDER.FLOW_NOTIFICATION": "ORDER.FLOW_NOTIFICATION";
|
|
4172
|
+
"ORDER.FLOW_STATE_CHANGED": "ORDER.FLOW_STATE_CHANGED";
|
|
3893
4173
|
}>;
|
|
3894
4174
|
}, z.core.$strip>;
|
|
3895
4175
|
export type WebhookTestRequest = z.infer<typeof webhookTestRequestSchema>;
|
|
@@ -3932,6 +4212,7 @@ export declare const webhookRequestSchema: z.ZodObject<{
|
|
|
3932
4212
|
"REVIEW.CREATED": "REVIEW.CREATED";
|
|
3933
4213
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
3934
4214
|
"ORDER.FLOW_NOTIFICATION": "ORDER.FLOW_NOTIFICATION";
|
|
4215
|
+
"ORDER.FLOW_STATE_CHANGED": "ORDER.FLOW_STATE_CHANGED";
|
|
3935
4216
|
}>>;
|
|
3936
4217
|
}, z.core.$strip>;
|
|
3937
4218
|
export type WebhookRequest = z.infer<typeof webhookRequestSchema>;
|
|
@@ -4021,6 +4302,16 @@ export declare const orderSummarySchema: z.ZodObject<{
|
|
|
4021
4302
|
DELIVERED: "DELIVERED";
|
|
4022
4303
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4023
4304
|
}>;
|
|
4305
|
+
progressStatus: z.ZodOptional<z.ZodEnum<{
|
|
4306
|
+
PAID: "PAID";
|
|
4307
|
+
CANCELED: "CANCELED";
|
|
4308
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4309
|
+
CONFIRMED: "CONFIRMED";
|
|
4310
|
+
DISPATCHED: "DISPATCHED";
|
|
4311
|
+
DELIVERING: "DELIVERING";
|
|
4312
|
+
DELIVERED: "DELIVERED";
|
|
4313
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4314
|
+
}>>;
|
|
4024
4315
|
orderedAt: z.ZodString;
|
|
4025
4316
|
testPayment: z.ZodBoolean;
|
|
4026
4317
|
}, z.core.$strip>;
|
|
@@ -4165,6 +4456,16 @@ export declare const orderDiscountSchema: z.ZodObject<{
|
|
|
4165
4456
|
export type OrderDiscount = z.infer<typeof orderDiscountSchema>;
|
|
4166
4457
|
export declare const orderSchema: z.ZodObject<{
|
|
4167
4458
|
orderId: z.ZodString;
|
|
4459
|
+
progressStatus: z.ZodOptional<z.ZodEnum<{
|
|
4460
|
+
PAID: "PAID";
|
|
4461
|
+
CANCELED: "CANCELED";
|
|
4462
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4463
|
+
CONFIRMED: "CONFIRMED";
|
|
4464
|
+
DISPATCHED: "DISPATCHED";
|
|
4465
|
+
DELIVERING: "DELIVERING";
|
|
4466
|
+
DELIVERED: "DELIVERED";
|
|
4467
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4468
|
+
}>>;
|
|
4168
4469
|
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
4169
4470
|
orderedAt: z.ZodString;
|
|
4170
4471
|
orderer: z.ZodObject<{
|
|
@@ -4366,6 +4667,16 @@ export declare const orderSummaryPageSchema: z.ZodObject<{
|
|
|
4366
4667
|
DELIVERED: "DELIVERED";
|
|
4367
4668
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4368
4669
|
}>;
|
|
4670
|
+
progressStatus: z.ZodOptional<z.ZodEnum<{
|
|
4671
|
+
PAID: "PAID";
|
|
4672
|
+
CANCELED: "CANCELED";
|
|
4673
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4674
|
+
CONFIRMED: "CONFIRMED";
|
|
4675
|
+
DISPATCHED: "DISPATCHED";
|
|
4676
|
+
DELIVERING: "DELIVERING";
|
|
4677
|
+
DELIVERED: "DELIVERED";
|
|
4678
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4679
|
+
}>>;
|
|
4369
4680
|
orderedAt: z.ZodString;
|
|
4370
4681
|
testPayment: z.ZodBoolean;
|
|
4371
4682
|
}, z.core.$strip>>;
|
|
@@ -6160,8 +6471,8 @@ export declare const VARIANT_COUNT_WARNING = 100;
|
|
|
6160
6471
|
* 추가금순은 추가 선택 값이면 값의 추가금, 조합 값이면 그 값이 든 조합 추가금의 최솟값으로 비교하고 같으면 등록순이다.
|
|
6161
6472
|
*/
|
|
6162
6473
|
export declare const optionSortSchema: z.ZodEnum<{
|
|
6163
|
-
REGISTERED: "REGISTERED";
|
|
6164
6474
|
NAME: "NAME";
|
|
6475
|
+
REGISTERED: "REGISTERED";
|
|
6165
6476
|
PRICE_ASC: "PRICE_ASC";
|
|
6166
6477
|
PRICE_DESC: "PRICE_DESC";
|
|
6167
6478
|
}>;
|
|
@@ -6368,8 +6679,8 @@ export declare const productSchema: z.ZodObject<{
|
|
|
6368
6679
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
6369
6680
|
}, z.core.$strip>>>>;
|
|
6370
6681
|
optionSort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
6371
|
-
REGISTERED: "REGISTERED";
|
|
6372
6682
|
NAME: "NAME";
|
|
6683
|
+
REGISTERED: "REGISTERED";
|
|
6373
6684
|
PRICE_ASC: "PRICE_ASC";
|
|
6374
6685
|
PRICE_DESC: "PRICE_DESC";
|
|
6375
6686
|
}>>>;
|
|
@@ -6528,8 +6839,8 @@ export declare const optionModelRequestSchema: z.ZodObject<{
|
|
|
6528
6839
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
6529
6840
|
}, z.core.$strip>>>;
|
|
6530
6841
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
6531
|
-
REGISTERED: "REGISTERED";
|
|
6532
6842
|
NAME: "NAME";
|
|
6843
|
+
REGISTERED: "REGISTERED";
|
|
6533
6844
|
PRICE_ASC: "PRICE_ASC";
|
|
6534
6845
|
PRICE_DESC: "PRICE_DESC";
|
|
6535
6846
|
}>>;
|
|
@@ -6589,8 +6900,8 @@ export declare const optionModelSchema: z.ZodObject<{
|
|
|
6589
6900
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
6590
6901
|
}, z.core.$strip>>>>;
|
|
6591
6902
|
optionSort: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
6592
|
-
REGISTERED: "REGISTERED";
|
|
6593
6903
|
NAME: "NAME";
|
|
6904
|
+
REGISTERED: "REGISTERED";
|
|
6594
6905
|
PRICE_ASC: "PRICE_ASC";
|
|
6595
6906
|
PRICE_DESC: "PRICE_DESC";
|
|
6596
6907
|
}>>>;
|
|
@@ -6702,8 +7013,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
6702
7013
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
6703
7014
|
}, z.core.$strip>>>;
|
|
6704
7015
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
6705
|
-
REGISTERED: "REGISTERED";
|
|
6706
7016
|
NAME: "NAME";
|
|
7017
|
+
REGISTERED: "REGISTERED";
|
|
6707
7018
|
PRICE_ASC: "PRICE_ASC";
|
|
6708
7019
|
PRICE_DESC: "PRICE_DESC";
|
|
6709
7020
|
}>>;
|
|
@@ -6816,8 +7127,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
6816
7127
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
6817
7128
|
}, z.core.$strip>>>;
|
|
6818
7129
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
6819
|
-
REGISTERED: "REGISTERED";
|
|
6820
7130
|
NAME: "NAME";
|
|
7131
|
+
REGISTERED: "REGISTERED";
|
|
6821
7132
|
PRICE_ASC: "PRICE_ASC";
|
|
6822
7133
|
PRICE_DESC: "PRICE_DESC";
|
|
6823
7134
|
}>>;
|
|
@@ -6893,11 +7204,11 @@ export declare const productPatchRequestSchema: z.ZodObject<{
|
|
|
6893
7204
|
}, z.core.$strict>;
|
|
6894
7205
|
export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
|
|
6895
7206
|
export declare const productSortSchema: z.ZodEnum<{
|
|
7207
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
6896
7208
|
"createdAt.desc": "createdAt.desc";
|
|
6897
7209
|
"createdAt.asc": "createdAt.asc";
|
|
6898
7210
|
"salePrice.asc": "salePrice.asc";
|
|
6899
7211
|
"salePrice.desc": "salePrice.desc";
|
|
6900
|
-
"updatedAt.desc": "updatedAt.desc";
|
|
6901
7212
|
}>;
|
|
6902
7213
|
export type ProductSort = z.infer<typeof productSortSchema>;
|
|
6903
7214
|
export interface ProductListParams extends PageParams {
|
|
@@ -6924,11 +7235,11 @@ export declare const productListQuerySchema: z.ZodObject<{
|
|
|
6924
7235
|
sellerCode: z.ZodOptional<z.ZodString>;
|
|
6925
7236
|
productNo: z.ZodOptional<z.ZodString>;
|
|
6926
7237
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
7238
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
6927
7239
|
"createdAt.desc": "createdAt.desc";
|
|
6928
7240
|
"createdAt.asc": "createdAt.asc";
|
|
6929
7241
|
"salePrice.asc": "salePrice.asc";
|
|
6930
7242
|
"salePrice.desc": "salePrice.desc";
|
|
6931
|
-
"updatedAt.desc": "updatedAt.desc";
|
|
6932
7243
|
}>>;
|
|
6933
7244
|
}, z.core.$strip>;
|
|
6934
7245
|
export declare const discountRequestSchema: z.ZodObject<{
|
|
@@ -6987,8 +7298,8 @@ export declare const savedOptionSetSchema: z.ZodObject<{
|
|
|
6987
7298
|
optionSetId: z.ZodString;
|
|
6988
7299
|
name: z.ZodString;
|
|
6989
7300
|
optionSort: z.ZodEnum<{
|
|
6990
|
-
REGISTERED: "REGISTERED";
|
|
6991
7301
|
NAME: "NAME";
|
|
7302
|
+
REGISTERED: "REGISTERED";
|
|
6992
7303
|
PRICE_ASC: "PRICE_ASC";
|
|
6993
7304
|
PRICE_DESC: "PRICE_DESC";
|
|
6994
7305
|
}>;
|
|
@@ -7055,8 +7366,8 @@ export declare const savedCustomInputRequestSchema: z.ZodObject<{
|
|
|
7055
7366
|
export declare const savedOptionSetRequestSchema: z.ZodObject<{
|
|
7056
7367
|
name: z.ZodString;
|
|
7057
7368
|
optionSort: z.ZodDefault<z.ZodEnum<{
|
|
7058
|
-
REGISTERED: "REGISTERED";
|
|
7059
7369
|
NAME: "NAME";
|
|
7370
|
+
REGISTERED: "REGISTERED";
|
|
7060
7371
|
PRICE_ASC: "PRICE_ASC";
|
|
7061
7372
|
PRICE_DESC: "PRICE_DESC";
|
|
7062
7373
|
}>>;
|
|
@@ -7111,8 +7422,8 @@ export declare const savedOptionSetFromProductResultSchema: z.ZodObject<{
|
|
|
7111
7422
|
optionSetId: z.ZodString;
|
|
7112
7423
|
name: z.ZodString;
|
|
7113
7424
|
optionSort: z.ZodEnum<{
|
|
7114
|
-
REGISTERED: "REGISTERED";
|
|
7115
7425
|
NAME: "NAME";
|
|
7426
|
+
REGISTERED: "REGISTERED";
|
|
7116
7427
|
PRICE_ASC: "PRICE_ASC";
|
|
7117
7428
|
PRICE_DESC: "PRICE_DESC";
|
|
7118
7429
|
}>;
|
|
@@ -9227,7 +9538,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9227
9538
|
type?: string | undefined;
|
|
9228
9539
|
options?: string[] | null | undefined;
|
|
9229
9540
|
}[];
|
|
9230
|
-
optionSort: "
|
|
9541
|
+
optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
|
|
9231
9542
|
fulfillment: UnknownFulfillment | {
|
|
9232
9543
|
type: "SHIPPING";
|
|
9233
9544
|
shipping: {
|
|
@@ -9335,7 +9646,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9335
9646
|
type?: string | undefined;
|
|
9336
9647
|
options?: string[] | null | undefined;
|
|
9337
9648
|
}[];
|
|
9338
|
-
optionSort: "
|
|
9649
|
+
optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
|
|
9339
9650
|
fulfillment: UnknownFulfillment | {
|
|
9340
9651
|
type: "SHIPPING";
|
|
9341
9652
|
shipping: {
|
|
@@ -9443,7 +9754,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9443
9754
|
type?: string | undefined;
|
|
9444
9755
|
options?: string[] | null | undefined;
|
|
9445
9756
|
}[];
|
|
9446
|
-
optionSort: "
|
|
9757
|
+
optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
|
|
9447
9758
|
fulfillment: UnknownFulfillment | {
|
|
9448
9759
|
type: "SHIPPING";
|
|
9449
9760
|
shipping: {
|
|
@@ -9553,7 +9864,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9553
9864
|
type?: string | undefined;
|
|
9554
9865
|
options?: string[] | null | undefined;
|
|
9555
9866
|
}[];
|
|
9556
|
-
optionSort: "
|
|
9867
|
+
optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
|
|
9557
9868
|
}>;
|
|
9558
9869
|
/**
|
|
9559
9870
|
* 옵션 모델 전체 교체 — variants는 valueNames로 축 값을 지목한다.
|
|
@@ -9611,7 +9922,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9611
9922
|
type?: string | undefined;
|
|
9612
9923
|
options?: string[] | null | undefined;
|
|
9613
9924
|
}[];
|
|
9614
|
-
optionSort: "
|
|
9925
|
+
optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
|
|
9615
9926
|
}>;
|
|
9616
9927
|
/** 재고 변경 — stockQuantity(절대값) 또는 adjustment(증감) 하나만 전달한다 */
|
|
9617
9928
|
updateVariantStock: (productId: string, variantId: string, body: VariantStockRequest) => Promise<{
|
|
@@ -9660,7 +9971,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9660
9971
|
contents: {
|
|
9661
9972
|
optionSetId: string;
|
|
9662
9973
|
name: string;
|
|
9663
|
-
optionSort: "
|
|
9974
|
+
optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
|
|
9664
9975
|
groups: {
|
|
9665
9976
|
name: string;
|
|
9666
9977
|
kind: string;
|
|
@@ -9687,7 +9998,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9687
9998
|
get: (optionSetId: string) => Promise<{
|
|
9688
9999
|
optionSetId: string;
|
|
9689
10000
|
name: string;
|
|
9690
|
-
optionSort: "
|
|
10001
|
+
optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
|
|
9691
10002
|
groups: {
|
|
9692
10003
|
name: string;
|
|
9693
10004
|
kind: string;
|
|
@@ -9714,7 +10025,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9714
10025
|
create: (body: SavedOptionSetRequestInput) => Promise<{
|
|
9715
10026
|
optionSetId: string;
|
|
9716
10027
|
name: string;
|
|
9717
|
-
optionSort: "
|
|
10028
|
+
optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
|
|
9718
10029
|
groups: {
|
|
9719
10030
|
name: string;
|
|
9720
10031
|
kind: string;
|
|
@@ -9741,7 +10052,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9741
10052
|
update: (optionSetId: string, body: SavedOptionSetRequestInput) => Promise<{
|
|
9742
10053
|
optionSetId: string;
|
|
9743
10054
|
name: string;
|
|
9744
|
-
optionSort: "
|
|
10055
|
+
optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
|
|
9745
10056
|
groups: {
|
|
9746
10057
|
name: string;
|
|
9747
10058
|
kind: string;
|
|
@@ -9770,7 +10081,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9770
10081
|
optionSet: {
|
|
9771
10082
|
optionSetId: string;
|
|
9772
10083
|
name: string;
|
|
9773
|
-
optionSort: "
|
|
10084
|
+
optionSort: "NAME" | "REGISTERED" | "PRICE_ASC" | "PRICE_DESC";
|
|
9774
10085
|
groups: {
|
|
9775
10086
|
name: string;
|
|
9776
10087
|
kind: string;
|
|
@@ -10121,7 +10432,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10121
10432
|
visible: boolean;
|
|
10122
10433
|
showPc: boolean;
|
|
10123
10434
|
showMobile: boolean;
|
|
10124
|
-
productSort: "
|
|
10435
|
+
productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
|
|
10125
10436
|
metaTitle: string | null;
|
|
10126
10437
|
metaDescription: string | null;
|
|
10127
10438
|
metaKeywords: string | null;
|
|
@@ -10142,7 +10453,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10142
10453
|
visible: boolean;
|
|
10143
10454
|
showPc: boolean;
|
|
10144
10455
|
showMobile: boolean;
|
|
10145
|
-
productSort: "
|
|
10456
|
+
productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
|
|
10146
10457
|
metaTitle: string | null;
|
|
10147
10458
|
metaDescription: string | null;
|
|
10148
10459
|
metaKeywords: string | null;
|
|
@@ -10161,7 +10472,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10161
10472
|
visible: boolean;
|
|
10162
10473
|
showPc: boolean;
|
|
10163
10474
|
showMobile: boolean;
|
|
10164
|
-
productSort: "
|
|
10475
|
+
productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
|
|
10165
10476
|
metaTitle: string | null;
|
|
10166
10477
|
metaDescription: string | null;
|
|
10167
10478
|
metaKeywords: string | null;
|
|
@@ -10183,7 +10494,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10183
10494
|
visible: boolean;
|
|
10184
10495
|
showPc: boolean;
|
|
10185
10496
|
showMobile: boolean;
|
|
10186
|
-
productSort: "
|
|
10497
|
+
productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
|
|
10187
10498
|
metaTitle: string | null;
|
|
10188
10499
|
metaDescription: string | null;
|
|
10189
10500
|
metaKeywords: string | null;
|
|
@@ -10202,7 +10513,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10202
10513
|
visible: boolean;
|
|
10203
10514
|
showPc: boolean;
|
|
10204
10515
|
showMobile: boolean;
|
|
10205
|
-
productSort: "
|
|
10516
|
+
productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
|
|
10206
10517
|
metaTitle: string | null;
|
|
10207
10518
|
metaDescription: string | null;
|
|
10208
10519
|
metaKeywords: string | null;
|
|
@@ -10233,7 +10544,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10233
10544
|
visible: boolean;
|
|
10234
10545
|
showPc: boolean;
|
|
10235
10546
|
showMobile: boolean;
|
|
10236
|
-
productSort: "
|
|
10547
|
+
productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
|
|
10237
10548
|
metaTitle: string | null;
|
|
10238
10549
|
metaDescription: string | null;
|
|
10239
10550
|
metaKeywords: string | null;
|
|
@@ -10253,7 +10564,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10253
10564
|
visible: boolean;
|
|
10254
10565
|
showPc: boolean;
|
|
10255
10566
|
showMobile: boolean;
|
|
10256
|
-
productSort: "
|
|
10567
|
+
productSort: "RECENT" | "POPULAR" | "PRICE_LOW" | "PRICE_HIGH" | "NAME";
|
|
10257
10568
|
metaTitle: string | null;
|
|
10258
10569
|
metaDescription: string | null;
|
|
10259
10570
|
metaKeywords: string | null;
|
|
@@ -10284,6 +10595,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10284
10595
|
representativeStatus: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
|
|
10285
10596
|
orderedAt: string;
|
|
10286
10597
|
testPayment: boolean;
|
|
10598
|
+
progressStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
10287
10599
|
}[];
|
|
10288
10600
|
}>;
|
|
10289
10601
|
get: (orderId: string) => Promise<{
|
|
@@ -10426,6 +10738,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10426
10738
|
}[];
|
|
10427
10739
|
} | undefined;
|
|
10428
10740
|
}[];
|
|
10741
|
+
progressStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
10429
10742
|
}>;
|
|
10430
10743
|
/**
|
|
10431
10744
|
* `POST /v1/orders/{orderId}/cash-receipt/reissue` — 실패했거나 재시도 대기 중인 현금영수증을 지금 다시 발급·취소한다.
|
|
@@ -10450,6 +10763,20 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10450
10763
|
requestedAt: string;
|
|
10451
10764
|
updatedAt: string;
|
|
10452
10765
|
}>;
|
|
10766
|
+
/**
|
|
10767
|
+
* `POST /orders/{id}/actions/{key}` — 주문 전체 행동(#115). 그 행동이 켜진 주문상품마다 실행하고 결과를 주문상품별로 준다(부분 실행).
|
|
10768
|
+
* 켜진 주문상품이 하나도 없으면 409 `ACTION_NOT_AVAILABLE`
|
|
10769
|
+
*/
|
|
10770
|
+
act: (orderId: string, key: string, input?: Record<string, unknown>, idempotencyKey?: string) => Promise<{
|
|
10771
|
+
orderId: string;
|
|
10772
|
+
key: string;
|
|
10773
|
+
results: {
|
|
10774
|
+
orderItemId: string;
|
|
10775
|
+
status: "FAILED" | "COMPLETED" | "SKIPPED";
|
|
10776
|
+
reason?: string | undefined;
|
|
10777
|
+
message?: string | undefined;
|
|
10778
|
+
}[];
|
|
10779
|
+
}>;
|
|
10453
10780
|
};
|
|
10454
10781
|
orderItems: {
|
|
10455
10782
|
/** `GET /v1/order-items`. `testPayment` 필터는 `orders.list`와 같다 */
|
|
@@ -10824,10 +11151,19 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10824
11151
|
enteredAt: string;
|
|
10825
11152
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
10826
11153
|
coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
10827
|
-
claimStatus?: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
11154
|
+
claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
|
|
10828
11155
|
message?: string | undefined;
|
|
10829
11156
|
deadlineAt?: string | undefined;
|
|
10830
11157
|
attachments?: string[] | undefined;
|
|
11158
|
+
inputs?: {
|
|
11159
|
+
by: string;
|
|
11160
|
+
values: {
|
|
11161
|
+
key: string;
|
|
11162
|
+
label: string;
|
|
11163
|
+
type: string;
|
|
11164
|
+
value: string | number | boolean | string[];
|
|
11165
|
+
}[];
|
|
11166
|
+
} | undefined;
|
|
10831
11167
|
progress?: boolean | undefined;
|
|
10832
11168
|
};
|
|
10833
11169
|
actions: {
|
|
@@ -10846,6 +11182,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10846
11182
|
type: string;
|
|
10847
11183
|
required: boolean;
|
|
10848
11184
|
label: string;
|
|
11185
|
+
placeholder?: string | undefined;
|
|
10849
11186
|
maxLength?: number | undefined;
|
|
10850
11187
|
maxFiles?: number | undefined;
|
|
10851
11188
|
options?: (string | number)[] | undefined;
|
|
@@ -10858,6 +11195,32 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10858
11195
|
paused: boolean;
|
|
10859
11196
|
}[];
|
|
10860
11197
|
ended: boolean;
|
|
11198
|
+
moveTargets?: {
|
|
11199
|
+
key: string;
|
|
11200
|
+
label: string;
|
|
11201
|
+
coreStatus: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | null;
|
|
11202
|
+
}[] | undefined;
|
|
11203
|
+
branches?: {
|
|
11204
|
+
key: string;
|
|
11205
|
+
label: string;
|
|
11206
|
+
enteredAt: string;
|
|
11207
|
+
fields: Record<string, string | number | boolean | string[] | null>;
|
|
11208
|
+
coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
11209
|
+
claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
|
|
11210
|
+
message?: string | undefined;
|
|
11211
|
+
deadlineAt?: string | undefined;
|
|
11212
|
+
attachments?: string[] | undefined;
|
|
11213
|
+
inputs?: {
|
|
11214
|
+
by: string;
|
|
11215
|
+
values: {
|
|
11216
|
+
key: string;
|
|
11217
|
+
label: string;
|
|
11218
|
+
type: string;
|
|
11219
|
+
value: string | number | boolean | string[];
|
|
11220
|
+
}[];
|
|
11221
|
+
} | undefined;
|
|
11222
|
+
progress?: boolean | undefined;
|
|
11223
|
+
}[] | undefined;
|
|
10861
11224
|
}>;
|
|
10862
11225
|
/**
|
|
10863
11226
|
* `POST /order-items/{id}/actions/{key}` — `getFlow().actions`에 켜진 행동을 실행한다(#115). 묶음 진행이면
|
|
@@ -10871,10 +11234,19 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10871
11234
|
enteredAt: string;
|
|
10872
11235
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
10873
11236
|
coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
10874
|
-
claimStatus?: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
11237
|
+
claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
|
|
10875
11238
|
message?: string | undefined;
|
|
10876
11239
|
deadlineAt?: string | undefined;
|
|
10877
11240
|
attachments?: string[] | undefined;
|
|
11241
|
+
inputs?: {
|
|
11242
|
+
by: string;
|
|
11243
|
+
values: {
|
|
11244
|
+
key: string;
|
|
11245
|
+
label: string;
|
|
11246
|
+
type: string;
|
|
11247
|
+
value: string | number | boolean | string[];
|
|
11248
|
+
}[];
|
|
11249
|
+
} | undefined;
|
|
10878
11250
|
progress?: boolean | undefined;
|
|
10879
11251
|
};
|
|
10880
11252
|
actions: {
|
|
@@ -10893,6 +11265,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10893
11265
|
type: string;
|
|
10894
11266
|
required: boolean;
|
|
10895
11267
|
label: string;
|
|
11268
|
+
placeholder?: string | undefined;
|
|
10896
11269
|
maxLength?: number | undefined;
|
|
10897
11270
|
maxFiles?: number | undefined;
|
|
10898
11271
|
options?: (string | number)[] | undefined;
|
|
@@ -10913,10 +11286,71 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10913
11286
|
enteredAt: string;
|
|
10914
11287
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
10915
11288
|
coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
10916
|
-
claimStatus?: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
11289
|
+
claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
|
|
11290
|
+
message?: string | undefined;
|
|
11291
|
+
deadlineAt?: string | undefined;
|
|
11292
|
+
attachments?: string[] | undefined;
|
|
11293
|
+
inputs?: {
|
|
11294
|
+
by: string;
|
|
11295
|
+
values: {
|
|
11296
|
+
key: string;
|
|
11297
|
+
label: string;
|
|
11298
|
+
type: string;
|
|
11299
|
+
value: string | number | boolean | string[];
|
|
11300
|
+
}[];
|
|
11301
|
+
} | undefined;
|
|
11302
|
+
progress?: boolean | undefined;
|
|
11303
|
+
};
|
|
11304
|
+
actions: {
|
|
11305
|
+
key: string;
|
|
11306
|
+
label: string;
|
|
11307
|
+
mode: "REQUEST" | "INSTANT" | "VIEW";
|
|
11308
|
+
enabled: boolean;
|
|
11309
|
+
disabled?: {
|
|
11310
|
+
reason: string;
|
|
11311
|
+
message?: string | undefined;
|
|
11312
|
+
} | undefined;
|
|
11313
|
+
availableUntil?: string | undefined;
|
|
11314
|
+
subflow?: string | undefined;
|
|
11315
|
+
input?: {
|
|
11316
|
+
key: string;
|
|
11317
|
+
type: string;
|
|
11318
|
+
required: boolean;
|
|
11319
|
+
label: string;
|
|
11320
|
+
placeholder?: string | undefined;
|
|
11321
|
+
maxLength?: number | undefined;
|
|
11322
|
+
maxFiles?: number | undefined;
|
|
11323
|
+
options?: (string | number)[] | undefined;
|
|
11324
|
+
}[] | undefined;
|
|
11325
|
+
partialQuantity?: boolean | "UNIT" | undefined;
|
|
11326
|
+
}[];
|
|
11327
|
+
affectedOrderItemIds: string[];
|
|
11328
|
+
}>;
|
|
11329
|
+
/**
|
|
11330
|
+
* `POST /order-items/{id}/flow/move` — 상태 직접 이동(#115). 연결선을 지나지 않으므로 블록(재고·환불·송장)은 실행하지 않는다.
|
|
11331
|
+
* 옮길 수 있는 상태는 `getFlow().moveTargets`. 에러: 409 `FLOW_MOVE_NOT_ALLOWED`
|
|
11332
|
+
*/
|
|
11333
|
+
moveFlow: (orderItemId: string, body: MoveFlowStateRequest, idempotencyKey?: string) => Promise<{
|
|
11334
|
+
status: "COMPLETED";
|
|
11335
|
+
flowState: {
|
|
11336
|
+
key: string;
|
|
11337
|
+
label: string;
|
|
11338
|
+
enteredAt: string;
|
|
11339
|
+
fields: Record<string, string | number | boolean | string[] | null>;
|
|
11340
|
+
coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
11341
|
+
claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
|
|
10917
11342
|
message?: string | undefined;
|
|
10918
11343
|
deadlineAt?: string | undefined;
|
|
10919
11344
|
attachments?: string[] | undefined;
|
|
11345
|
+
inputs?: {
|
|
11346
|
+
by: string;
|
|
11347
|
+
values: {
|
|
11348
|
+
key: string;
|
|
11349
|
+
label: string;
|
|
11350
|
+
type: string;
|
|
11351
|
+
value: string | number | boolean | string[];
|
|
11352
|
+
}[];
|
|
11353
|
+
} | undefined;
|
|
10920
11354
|
progress?: boolean | undefined;
|
|
10921
11355
|
};
|
|
10922
11356
|
actions: {
|
|
@@ -10935,6 +11369,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10935
11369
|
type: string;
|
|
10936
11370
|
required: boolean;
|
|
10937
11371
|
label: string;
|
|
11372
|
+
placeholder?: string | undefined;
|
|
10938
11373
|
maxLength?: number | undefined;
|
|
10939
11374
|
maxFiles?: number | undefined;
|
|
10940
11375
|
options?: (string | number)[] | undefined;
|
|
@@ -10943,6 +11378,54 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10943
11378
|
}[];
|
|
10944
11379
|
affectedOrderItemIds: string[];
|
|
10945
11380
|
}>;
|
|
11381
|
+
/** `GET /order-items/{id}/flow/runs` — 흐름 실행 기록(최근 것부터 50개, #115). 스코프 `order:r` */
|
|
11382
|
+
flowRuns: (orderItemId: string) => Promise<{
|
|
11383
|
+
runId: string;
|
|
11384
|
+
trigger: Record<string, unknown>;
|
|
11385
|
+
status: string;
|
|
11386
|
+
fromState: string | null;
|
|
11387
|
+
fromLabel: string | null;
|
|
11388
|
+
toState: string;
|
|
11389
|
+
toLabel: string;
|
|
11390
|
+
path: string[];
|
|
11391
|
+
error: unknown;
|
|
11392
|
+
startedAt: string;
|
|
11393
|
+
finishedAt: string | null;
|
|
11394
|
+
steps: {
|
|
11395
|
+
step: number;
|
|
11396
|
+
block: string;
|
|
11397
|
+
edgeId: string;
|
|
11398
|
+
status: string;
|
|
11399
|
+
output: Record<string, unknown> | null;
|
|
11400
|
+
at: string;
|
|
11401
|
+
}[];
|
|
11402
|
+
orderItemId?: string | undefined;
|
|
11403
|
+
}[]>;
|
|
11404
|
+
};
|
|
11405
|
+
/** `GET /flow-runs/{runId}` — 흐름 실행 기록 하나와 실행한 블록(#115). 스코프 `order:r` */
|
|
11406
|
+
flowRuns: {
|
|
11407
|
+
get: (runId: string) => Promise<{
|
|
11408
|
+
runId: string;
|
|
11409
|
+
trigger: Record<string, unknown>;
|
|
11410
|
+
status: string;
|
|
11411
|
+
fromState: string | null;
|
|
11412
|
+
fromLabel: string | null;
|
|
11413
|
+
toState: string;
|
|
11414
|
+
toLabel: string;
|
|
11415
|
+
path: string[];
|
|
11416
|
+
error: unknown;
|
|
11417
|
+
startedAt: string;
|
|
11418
|
+
finishedAt: string | null;
|
|
11419
|
+
steps: {
|
|
11420
|
+
step: number;
|
|
11421
|
+
block: string;
|
|
11422
|
+
edgeId: string;
|
|
11423
|
+
status: string;
|
|
11424
|
+
output: Record<string, unknown> | null;
|
|
11425
|
+
at: string;
|
|
11426
|
+
}[];
|
|
11427
|
+
orderItemId?: string | undefined;
|
|
11428
|
+
}>;
|
|
10946
11429
|
};
|
|
10947
11430
|
/**
|
|
10948
11431
|
* 커머스 플로우 (이슈 #115) — 프리셋 설치·초안 저장·검사·게시와 상품 할당 규칙. 조회 `flow:r`, 쓰기 `flow:rw`.
|
|
@@ -11006,6 +11489,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11006
11489
|
version: number;
|
|
11007
11490
|
status: "ACTIVE" | "DRAFT" | "LEGACY";
|
|
11008
11491
|
publishedAt: string | null;
|
|
11492
|
+
inProgress?: number | undefined;
|
|
11009
11493
|
}[];
|
|
11010
11494
|
}>;
|
|
11011
11495
|
/** 프리셋 설치 또는 빈 플로우. 에러: 409 `FLOW_KEY_TAKEN`·`FLOW_PRESET_UNAVAILABLE` */
|
|
@@ -11043,6 +11527,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11043
11527
|
version: number;
|
|
11044
11528
|
status: "ACTIVE" | "DRAFT" | "LEGACY";
|
|
11045
11529
|
publishedAt: string | null;
|
|
11530
|
+
inProgress?: number | undefined;
|
|
11046
11531
|
}[];
|
|
11047
11532
|
}>;
|
|
11048
11533
|
/** 초안 저장. `revision`을 주면 그 초안일 때만 저장한다(409 `FLOW_REVISION_CONFLICT`) */
|
|
@@ -11080,6 +11565,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11080
11565
|
version: number;
|
|
11081
11566
|
status: "ACTIVE" | "DRAFT" | "LEGACY";
|
|
11082
11567
|
publishedAt: string | null;
|
|
11568
|
+
inProgress?: number | undefined;
|
|
11083
11569
|
}[];
|
|
11084
11570
|
}>;
|
|
11085
11571
|
check: (flowId: string) => Promise<{
|
|
@@ -11132,6 +11618,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11132
11618
|
version: number;
|
|
11133
11619
|
status: "ACTIVE" | "DRAFT" | "LEGACY";
|
|
11134
11620
|
publishedAt: string | null;
|
|
11621
|
+
inProgress?: number | undefined;
|
|
11135
11622
|
}[];
|
|
11136
11623
|
}>;
|
|
11137
11624
|
/** 이 상품에 지금 붙을 플로우 */
|
|
@@ -11155,6 +11642,98 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11155
11642
|
updatedAt: string;
|
|
11156
11643
|
}>;
|
|
11157
11644
|
removeSecret: (name: string) => Promise<void>;
|
|
11645
|
+
/** `GET /commerce-flows/{id}/versions/{n}` — 게시했던 버전 하나(그래프·정의). 옛 버전 보기용 */
|
|
11646
|
+
getVersion: (flowId: string, version: number) => Promise<{
|
|
11647
|
+
version: number;
|
|
11648
|
+
status: "ACTIVE" | "DRAFT" | "LEGACY";
|
|
11649
|
+
revision: number;
|
|
11650
|
+
graph: Record<string, unknown>;
|
|
11651
|
+
definition: Record<string, unknown>;
|
|
11652
|
+
variables: Record<string, unknown>;
|
|
11653
|
+
publishedAt: string | null;
|
|
11654
|
+
}>;
|
|
11655
|
+
/**
|
|
11656
|
+
* `POST /commerce-flows/{id}/versions/{n}/migrate` — 버전 n을 따르는 진행 중 주문을 지금 게시 버전으로 옮긴다. 같은 상태가 새 버전에
|
|
11657
|
+
* 있어야 하고, 진행 중 클레임·외부 API 대기는 건너뛴다(`skipped`). `remaining`이 0이 될 때까지 다시 부른다
|
|
11658
|
+
*/
|
|
11659
|
+
migrateVersion: (flowId: string, version: number, body?: MigrateFlowVersionRequest) => Promise<{
|
|
11660
|
+
fromVersion: number;
|
|
11661
|
+
toVersion: number;
|
|
11662
|
+
migrated: number;
|
|
11663
|
+
skipped: {
|
|
11664
|
+
orderItemIds: string[];
|
|
11665
|
+
state: string;
|
|
11666
|
+
reason: string;
|
|
11667
|
+
}[];
|
|
11668
|
+
remaining: number;
|
|
11669
|
+
}>;
|
|
11670
|
+
/** `POST /commerce-flows/{id}/draft/simulate` — 초안을 가상 시계로 돌려 단계별 결과를 본다(주문·돈·재고는 건드리지 않는다) */
|
|
11671
|
+
simulate: (flowId: string, body: SimulateFlowRequest) => Promise<{
|
|
11672
|
+
compiled: boolean;
|
|
11673
|
+
errors: {
|
|
11674
|
+
code: string;
|
|
11675
|
+
message: string;
|
|
11676
|
+
nodeId?: string | undefined;
|
|
11677
|
+
edgeId?: string | undefined;
|
|
11678
|
+
}[];
|
|
11679
|
+
trace: {
|
|
11680
|
+
step: number;
|
|
11681
|
+
input: Record<string, unknown>;
|
|
11682
|
+
at: string;
|
|
11683
|
+
node: string | null;
|
|
11684
|
+
label: string | null;
|
|
11685
|
+
ended: boolean;
|
|
11686
|
+
path: string[];
|
|
11687
|
+
blocks: string[];
|
|
11688
|
+
timers: {
|
|
11689
|
+
key: string;
|
|
11690
|
+
dueAt: string;
|
|
11691
|
+
}[];
|
|
11692
|
+
coreStatus?: string | undefined;
|
|
11693
|
+
leaves?: {
|
|
11694
|
+
node: string | null;
|
|
11695
|
+
kind: string;
|
|
11696
|
+
}[] | undefined;
|
|
11697
|
+
error?: string | undefined;
|
|
11698
|
+
}[];
|
|
11699
|
+
}>;
|
|
11700
|
+
/** `POST /commerce-flows/{id}/draft/replay` — 실제 주문상품의 실행 기록을 초안으로 다시 돌려 갈라지는 곳을 찾는다 */
|
|
11701
|
+
replay: (flowId: string, body: ReplayFlowRequest) => Promise<{
|
|
11702
|
+
orderItemId: string;
|
|
11703
|
+
compiled: boolean;
|
|
11704
|
+
errors: {
|
|
11705
|
+
code: string;
|
|
11706
|
+
message: string;
|
|
11707
|
+
nodeId?: string | undefined;
|
|
11708
|
+
edgeId?: string | undefined;
|
|
11709
|
+
}[];
|
|
11710
|
+
steps: {
|
|
11711
|
+
runId: string;
|
|
11712
|
+
trigger: Record<string, unknown>;
|
|
11713
|
+
recordedState: string;
|
|
11714
|
+
simulatedState: string | null;
|
|
11715
|
+
match: boolean;
|
|
11716
|
+
error?: string | undefined;
|
|
11717
|
+
}[];
|
|
11718
|
+
divergedAt: number | null;
|
|
11719
|
+
unsupported: number;
|
|
11720
|
+
}>;
|
|
11721
|
+
/** `GET /flow-node-types` — 쓸 수 있는 노드·블록 종류와 설정 형식(JSON Schema) */
|
|
11722
|
+
nodeTypes: () => Promise<{
|
|
11723
|
+
nodes: {
|
|
11724
|
+
type: string;
|
|
11725
|
+
version: number;
|
|
11726
|
+
kind: string;
|
|
11727
|
+
outputs: string[] | null;
|
|
11728
|
+
configSchema: Record<string, unknown>;
|
|
11729
|
+
}[];
|
|
11730
|
+
blocks: {
|
|
11731
|
+
type: string;
|
|
11732
|
+
version: number;
|
|
11733
|
+
effect: string;
|
|
11734
|
+
configSchema: Record<string, unknown>;
|
|
11735
|
+
}[];
|
|
11736
|
+
}>;
|
|
11158
11737
|
};
|
|
11159
11738
|
carriers: {
|
|
11160
11739
|
list: () => Promise<{
|
|
@@ -11173,7 +11752,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11173
11752
|
claimId: string;
|
|
11174
11753
|
claimNo: string | null;
|
|
11175
11754
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
11176
|
-
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
11755
|
+
status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
|
|
11177
11756
|
orderId: string;
|
|
11178
11757
|
orderItemId: string;
|
|
11179
11758
|
productName: string;
|
|
@@ -11213,7 +11792,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11213
11792
|
claimId: string;
|
|
11214
11793
|
claimNo: string | null;
|
|
11215
11794
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
11216
|
-
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
11795
|
+
status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
|
|
11217
11796
|
orderId: string;
|
|
11218
11797
|
orderItemId: string;
|
|
11219
11798
|
productName: string;
|
|
@@ -11248,7 +11827,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11248
11827
|
address2: string | null;
|
|
11249
11828
|
} | null;
|
|
11250
11829
|
histories?: {
|
|
11251
|
-
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
11830
|
+
status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
|
|
11252
11831
|
actor: "SYSTEM" | "BUYER" | "SELLER";
|
|
11253
11832
|
occurredAt: string;
|
|
11254
11833
|
}[] | undefined;
|
|
@@ -11282,7 +11861,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11282
11861
|
claimId: string;
|
|
11283
11862
|
claimNo: string | null;
|
|
11284
11863
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
11285
|
-
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
11864
|
+
status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
|
|
11286
11865
|
orderId: string;
|
|
11287
11866
|
orderItemId: string;
|
|
11288
11867
|
productName: string;
|
|
@@ -13238,7 +13817,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13238
13817
|
list: () => Promise<{
|
|
13239
13818
|
webhookId: string;
|
|
13240
13819
|
url: string;
|
|
13241
|
-
eventTypes: ("ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION")[];
|
|
13820
|
+
eventTypes: ("ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION" | "ORDER.FLOW_STATE_CHANGED")[];
|
|
13242
13821
|
status: "SUSPENDED" | "ACTIVE";
|
|
13243
13822
|
secretPrefix: string;
|
|
13244
13823
|
suspendedAt: string | null;
|
|
@@ -13248,7 +13827,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13248
13827
|
create: (body: WebhookRequest) => Promise<{
|
|
13249
13828
|
webhookId: string;
|
|
13250
13829
|
url: string;
|
|
13251
|
-
eventTypes: ("ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION")[];
|
|
13830
|
+
eventTypes: ("ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION" | "ORDER.FLOW_STATE_CHANGED")[];
|
|
13252
13831
|
status: "SUSPENDED" | "ACTIVE";
|
|
13253
13832
|
secretPrefix: string;
|
|
13254
13833
|
suspendedAt: string | null;
|
|
@@ -13258,7 +13837,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13258
13837
|
get: (webhookId: string) => Promise<{
|
|
13259
13838
|
webhookId: string;
|
|
13260
13839
|
url: string;
|
|
13261
|
-
eventTypes: ("ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION")[];
|
|
13840
|
+
eventTypes: ("ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION" | "ORDER.FLOW_STATE_CHANGED")[];
|
|
13262
13841
|
status: "SUSPENDED" | "ACTIVE";
|
|
13263
13842
|
secretPrefix: string;
|
|
13264
13843
|
suspendedAt: string | null;
|
|
@@ -13268,7 +13847,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13268
13847
|
update: (webhookId: string, body: WebhookRequest) => Promise<{
|
|
13269
13848
|
webhookId: string;
|
|
13270
13849
|
url: string;
|
|
13271
|
-
eventTypes: ("ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION")[];
|
|
13850
|
+
eventTypes: ("ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION" | "ORDER.FLOW_STATE_CHANGED")[];
|
|
13272
13851
|
status: "SUSPENDED" | "ACTIVE";
|
|
13273
13852
|
secretPrefix: string;
|
|
13274
13853
|
suspendedAt: string | null;
|
|
@@ -13283,7 +13862,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13283
13862
|
resume: (webhookId: string) => Promise<{
|
|
13284
13863
|
webhookId: string;
|
|
13285
13864
|
url: string;
|
|
13286
|
-
eventTypes: ("ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION")[];
|
|
13865
|
+
eventTypes: ("ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION" | "ORDER.FLOW_STATE_CHANGED")[];
|
|
13287
13866
|
status: "SUSPENDED" | "ACTIVE";
|
|
13288
13867
|
secretPrefix: string;
|
|
13289
13868
|
suspendedAt: string | null;
|
|
@@ -13293,7 +13872,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13293
13872
|
listDeliveries: (webhookId: string, params?: WebhookDeliveryListParams) => Promise<{
|
|
13294
13873
|
deliveryId: string;
|
|
13295
13874
|
eventId: string;
|
|
13296
|
-
eventType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION";
|
|
13875
|
+
eventType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION" | "ORDER.FLOW_STATE_CHANGED";
|
|
13297
13876
|
url: string;
|
|
13298
13877
|
status: "PENDING" | "PENDING_RETRY" | "SUCCESS" | "FAILED";
|
|
13299
13878
|
responseStatusCode: number | null;
|
|
@@ -13320,7 +13899,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13320
13899
|
getDelivery: (webhookId: string, deliveryId: string) => Promise<{
|
|
13321
13900
|
deliveryId: string;
|
|
13322
13901
|
eventId: string;
|
|
13323
|
-
eventType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION";
|
|
13902
|
+
eventType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION" | "ORDER.FLOW_STATE_CHANGED";
|
|
13324
13903
|
url: string;
|
|
13325
13904
|
status: "PENDING" | "PENDING_RETRY" | "SUCCESS" | "FAILED";
|
|
13326
13905
|
responseStatusCode: number | null;
|
|
@@ -13355,7 +13934,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13355
13934
|
redeliver: (webhookId: string, deliveryId: string) => Promise<{
|
|
13356
13935
|
deliveryId: string;
|
|
13357
13936
|
eventId: string;
|
|
13358
|
-
eventType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION";
|
|
13937
|
+
eventType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "ORDER.CANCELED" | "ORDER.FULFILLED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED" | "INQUIRY.CREATED" | "REVIEW.CREATED" | "PRODUCT.OUT_OF_STOCK" | "ORDER.FLOW_NOTIFICATION" | "ORDER.FLOW_STATE_CHANGED";
|
|
13359
13938
|
url: string;
|
|
13360
13939
|
status: "PENDING" | "PENDING_RETRY" | "SUCCESS" | "FAILED";
|
|
13361
13940
|
responseStatusCode: number | null;
|
|
@@ -16558,13 +17137,13 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
|
|
|
16558
17137
|
}>;
|
|
16559
17138
|
status: z.ZodEnum<{
|
|
16560
17139
|
REJECTED: "REJECTED";
|
|
17140
|
+
COMPLETED: "COMPLETED";
|
|
16561
17141
|
REQUESTED: "REQUESTED";
|
|
16562
17142
|
HELD: "HELD";
|
|
16563
17143
|
COLLECTING: "COLLECTING";
|
|
16564
17144
|
COLLECTED: "COLLECTED";
|
|
16565
17145
|
REDELIVERING: "REDELIVERING";
|
|
16566
17146
|
APPROVED: "APPROVED";
|
|
16567
|
-
COMPLETED: "COMPLETED";
|
|
16568
17147
|
WITHDRAWN: "WITHDRAWN";
|
|
16569
17148
|
}>;
|
|
16570
17149
|
quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -16789,13 +17368,13 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
|
|
|
16789
17368
|
}>;
|
|
16790
17369
|
status: z.ZodEnum<{
|
|
16791
17370
|
REJECTED: "REJECTED";
|
|
17371
|
+
COMPLETED: "COMPLETED";
|
|
16792
17372
|
REQUESTED: "REQUESTED";
|
|
16793
17373
|
HELD: "HELD";
|
|
16794
17374
|
COLLECTING: "COLLECTING";
|
|
16795
17375
|
COLLECTED: "COLLECTED";
|
|
16796
17376
|
REDELIVERING: "REDELIVERING";
|
|
16797
17377
|
APPROVED: "APPROVED";
|
|
16798
|
-
COMPLETED: "COMPLETED";
|
|
16799
17378
|
WITHDRAWN: "WITHDRAWN";
|
|
16800
17379
|
}>;
|
|
16801
17380
|
quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -16874,6 +17453,39 @@ export declare const flowNotificationWebhookEventSchema: z.ZodObject<{
|
|
|
16874
17453
|
storeId: z.ZodString;
|
|
16875
17454
|
sequence: z.ZodOptional<z.ZodNumber>;
|
|
16876
17455
|
}, z.core.$strip>;
|
|
17456
|
+
/**
|
|
17457
|
+
* 흐름 상태 변경(이슈 #115) — 주문상품의 흐름 상태(노드)가 바뀔 때마다 온다. 공개 상태(`ORDER.*`)가 같아도 상점 흐름의 단계가 바뀌면 온다
|
|
17458
|
+
* (시안 확인 → 제작중). 묶음 진행이면 `orderItemIds`가 여럿이다. 개인정보는 싣지 않는다
|
|
17459
|
+
*/
|
|
17460
|
+
export declare const flowStateChangedWebhookEventDataSchema: z.ZodObject<{
|
|
17461
|
+
orderId: z.ZodString;
|
|
17462
|
+
orderItemIds: z.ZodArray<z.ZodString>;
|
|
17463
|
+
flowId: z.ZodString;
|
|
17464
|
+
flowVersion: z.ZodNumber;
|
|
17465
|
+
from: z.ZodNullable<z.ZodString>;
|
|
17466
|
+
to: z.ZodString;
|
|
17467
|
+
label: z.ZodString;
|
|
17468
|
+
coreStatus: z.ZodNullable<z.ZodString>;
|
|
17469
|
+
changedAt: z.ZodString;
|
|
17470
|
+
}, z.core.$strip>;
|
|
17471
|
+
export declare const flowStateChangedWebhookEventSchema: z.ZodObject<{
|
|
17472
|
+
type: z.ZodLiteral<"ORDER.FLOW_STATE_CHANGED">;
|
|
17473
|
+
data: z.ZodObject<{
|
|
17474
|
+
orderId: z.ZodString;
|
|
17475
|
+
orderItemIds: z.ZodArray<z.ZodString>;
|
|
17476
|
+
flowId: z.ZodString;
|
|
17477
|
+
flowVersion: z.ZodNumber;
|
|
17478
|
+
from: z.ZodNullable<z.ZodString>;
|
|
17479
|
+
to: z.ZodString;
|
|
17480
|
+
label: z.ZodString;
|
|
17481
|
+
coreStatus: z.ZodNullable<z.ZodString>;
|
|
17482
|
+
changedAt: z.ZodString;
|
|
17483
|
+
}, z.core.$strip>;
|
|
17484
|
+
id: z.ZodString;
|
|
17485
|
+
createdAt: z.ZodString;
|
|
17486
|
+
storeId: z.ZodString;
|
|
17487
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
17488
|
+
}, z.core.$strip>;
|
|
16877
17489
|
/** 웹훅 요청 본문. `type`으로 판별하며 `data` 형태가 타입별로 다르다 */
|
|
16878
17490
|
export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16879
17491
|
type: z.ZodEnum<{
|
|
@@ -17067,13 +17679,13 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
17067
17679
|
}>;
|
|
17068
17680
|
status: z.ZodEnum<{
|
|
17069
17681
|
REJECTED: "REJECTED";
|
|
17682
|
+
COMPLETED: "COMPLETED";
|
|
17070
17683
|
REQUESTED: "REQUESTED";
|
|
17071
17684
|
HELD: "HELD";
|
|
17072
17685
|
COLLECTING: "COLLECTING";
|
|
17073
17686
|
COLLECTED: "COLLECTED";
|
|
17074
17687
|
REDELIVERING: "REDELIVERING";
|
|
17075
17688
|
APPROVED: "APPROVED";
|
|
17076
|
-
COMPLETED: "COMPLETED";
|
|
17077
17689
|
WITHDRAWN: "WITHDRAWN";
|
|
17078
17690
|
}>;
|
|
17079
17691
|
quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -17135,6 +17747,23 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
17135
17747
|
createdAt: z.ZodString;
|
|
17136
17748
|
storeId: z.ZodString;
|
|
17137
17749
|
sequence: z.ZodOptional<z.ZodNumber>;
|
|
17750
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17751
|
+
type: z.ZodLiteral<"ORDER.FLOW_STATE_CHANGED">;
|
|
17752
|
+
data: z.ZodObject<{
|
|
17753
|
+
orderId: z.ZodString;
|
|
17754
|
+
orderItemIds: z.ZodArray<z.ZodString>;
|
|
17755
|
+
flowId: z.ZodString;
|
|
17756
|
+
flowVersion: z.ZodNumber;
|
|
17757
|
+
from: z.ZodNullable<z.ZodString>;
|
|
17758
|
+
to: z.ZodString;
|
|
17759
|
+
label: z.ZodString;
|
|
17760
|
+
coreStatus: z.ZodNullable<z.ZodString>;
|
|
17761
|
+
changedAt: z.ZodString;
|
|
17762
|
+
}, z.core.$strip>;
|
|
17763
|
+
id: z.ZodString;
|
|
17764
|
+
createdAt: z.ZodString;
|
|
17765
|
+
storeId: z.ZodString;
|
|
17766
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
17138
17767
|
}, z.core.$strip>], "type">;
|
|
17139
17768
|
export type WebhookEvent = z.infer<typeof webhookEventSchema>;
|
|
17140
17769
|
export type WebhookEventType = WebhookEvent["type"];
|