@sayren/store-sdk 0.29.8 → 0.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +593 -74
- package/dist/index.mjs +216 -32
- package/package.json +1 -1
- package/src/client.ts +98 -23
- package/src/schemas/category.ts +14 -0
- package/src/schemas/commerce-flow.ts +236 -32
- package/src/schemas/misc.ts +2 -0
- package/src/schemas/order.ts +10 -0
- package/src/schemas/product.ts +21 -0
- package/src/schemas/webhook-event.ts +26 -0
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>;
|
|
@@ -995,6 +995,7 @@ export declare const categorySchema: z.ZodObject<{
|
|
|
995
995
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
996
996
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
997
997
|
metaKeywords: z.ZodNullable<z.ZodString>;
|
|
998
|
+
flowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
998
999
|
createdAt: z.ZodString;
|
|
999
1000
|
updatedAt: z.ZodString;
|
|
1000
1001
|
}, z.core.$strip>;
|
|
@@ -1025,6 +1026,7 @@ export declare const categoryWithPathSchema: z.ZodObject<{
|
|
|
1025
1026
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1026
1027
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
1027
1028
|
metaKeywords: z.ZodNullable<z.ZodString>;
|
|
1029
|
+
flowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1028
1030
|
createdAt: z.ZodString;
|
|
1029
1031
|
updatedAt: z.ZodString;
|
|
1030
1032
|
fullPath: z.ZodString;
|
|
@@ -1050,6 +1052,7 @@ export declare const categoryWithPathSchema: z.ZodObject<{
|
|
|
1050
1052
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1051
1053
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
1052
1054
|
metaKeywords: z.ZodNullable<z.ZodString>;
|
|
1055
|
+
flowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1053
1056
|
createdAt: z.ZodString;
|
|
1054
1057
|
updatedAt: z.ZodString;
|
|
1055
1058
|
}, z.core.$strip>>;
|
|
@@ -1078,6 +1081,7 @@ export declare const categorySearchResultSchema: z.ZodObject<{
|
|
|
1078
1081
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1079
1082
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
1080
1083
|
metaKeywords: z.ZodNullable<z.ZodString>;
|
|
1084
|
+
flowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1081
1085
|
createdAt: z.ZodString;
|
|
1082
1086
|
updatedAt: z.ZodString;
|
|
1083
1087
|
fullPath: z.ZodString;
|
|
@@ -1103,6 +1107,7 @@ export declare const categorySearchResultSchema: z.ZodObject<{
|
|
|
1103
1107
|
metaTitle: z.ZodNullable<z.ZodString>;
|
|
1104
1108
|
metaDescription: z.ZodNullable<z.ZodString>;
|
|
1105
1109
|
metaKeywords: z.ZodNullable<z.ZodString>;
|
|
1110
|
+
flowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1106
1111
|
createdAt: z.ZodString;
|
|
1107
1112
|
updatedAt: z.ZodString;
|
|
1108
1113
|
}, z.core.$strip>>;
|
|
@@ -1158,6 +1163,7 @@ export declare const categoryPatchRequestSchema: z.ZodObject<{
|
|
|
1158
1163
|
metaTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1159
1164
|
metaDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1160
1165
|
metaKeywords: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1166
|
+
flowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1161
1167
|
}, z.core.$strip>;
|
|
1162
1168
|
export type CategoryPatchRequest = z.infer<typeof categoryPatchRequestSchema>;
|
|
1163
1169
|
export declare const categoryDeleteStrategySchema: z.ZodEnum<{
|
|
@@ -1265,13 +1271,13 @@ export declare const claimTypeSchema: z.ZodEnum<{
|
|
|
1265
1271
|
export type ClaimType = z.infer<typeof claimTypeSchema>;
|
|
1266
1272
|
export declare const claimStatusSchema: z.ZodEnum<{
|
|
1267
1273
|
REJECTED: "REJECTED";
|
|
1274
|
+
COMPLETED: "COMPLETED";
|
|
1268
1275
|
REQUESTED: "REQUESTED";
|
|
1269
1276
|
HELD: "HELD";
|
|
1270
1277
|
COLLECTING: "COLLECTING";
|
|
1271
1278
|
COLLECTED: "COLLECTED";
|
|
1272
1279
|
REDELIVERING: "REDELIVERING";
|
|
1273
1280
|
APPROVED: "APPROVED";
|
|
1274
|
-
COMPLETED: "COMPLETED";
|
|
1275
1281
|
WITHDRAWN: "WITHDRAWN";
|
|
1276
1282
|
}>;
|
|
1277
1283
|
export type ClaimStatus = z.infer<typeof claimStatusSchema>;
|
|
@@ -1310,13 +1316,13 @@ export declare const claimSchema: z.ZodObject<{
|
|
|
1310
1316
|
}>;
|
|
1311
1317
|
status: z.ZodEnum<{
|
|
1312
1318
|
REJECTED: "REJECTED";
|
|
1319
|
+
COMPLETED: "COMPLETED";
|
|
1313
1320
|
REQUESTED: "REQUESTED";
|
|
1314
1321
|
HELD: "HELD";
|
|
1315
1322
|
COLLECTING: "COLLECTING";
|
|
1316
1323
|
COLLECTED: "COLLECTED";
|
|
1317
1324
|
REDELIVERING: "REDELIVERING";
|
|
1318
1325
|
APPROVED: "APPROVED";
|
|
1319
|
-
COMPLETED: "COMPLETED";
|
|
1320
1326
|
WITHDRAWN: "WITHDRAWN";
|
|
1321
1327
|
}>;
|
|
1322
1328
|
orderId: z.ZodString;
|
|
@@ -1400,13 +1406,13 @@ export declare const claimDetailSchema: z.ZodObject<{
|
|
|
1400
1406
|
}>;
|
|
1401
1407
|
status: z.ZodEnum<{
|
|
1402
1408
|
REJECTED: "REJECTED";
|
|
1409
|
+
COMPLETED: "COMPLETED";
|
|
1403
1410
|
REQUESTED: "REQUESTED";
|
|
1404
1411
|
HELD: "HELD";
|
|
1405
1412
|
COLLECTING: "COLLECTING";
|
|
1406
1413
|
COLLECTED: "COLLECTED";
|
|
1407
1414
|
REDELIVERING: "REDELIVERING";
|
|
1408
1415
|
APPROVED: "APPROVED";
|
|
1409
|
-
COMPLETED: "COMPLETED";
|
|
1410
1416
|
WITHDRAWN: "WITHDRAWN";
|
|
1411
1417
|
}>;
|
|
1412
1418
|
orderId: z.ZodString;
|
|
@@ -1458,13 +1464,13 @@ export declare const claimDetailSchema: z.ZodObject<{
|
|
|
1458
1464
|
histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1459
1465
|
status: z.ZodEnum<{
|
|
1460
1466
|
REJECTED: "REJECTED";
|
|
1467
|
+
COMPLETED: "COMPLETED";
|
|
1461
1468
|
REQUESTED: "REQUESTED";
|
|
1462
1469
|
HELD: "HELD";
|
|
1463
1470
|
COLLECTING: "COLLECTING";
|
|
1464
1471
|
COLLECTED: "COLLECTED";
|
|
1465
1472
|
REDELIVERING: "REDELIVERING";
|
|
1466
1473
|
APPROVED: "APPROVED";
|
|
1467
|
-
COMPLETED: "COMPLETED";
|
|
1468
1474
|
WITHDRAWN: "WITHDRAWN";
|
|
1469
1475
|
}>;
|
|
1470
1476
|
actor: z.ZodEnum<{
|
|
@@ -2068,13 +2074,13 @@ export declare const flowStateSchema: z.ZodObject<{
|
|
|
2068
2074
|
}>>;
|
|
2069
2075
|
claimStatus: z.ZodOptional<z.ZodEnum<{
|
|
2070
2076
|
REJECTED: "REJECTED";
|
|
2077
|
+
COMPLETED: "COMPLETED";
|
|
2071
2078
|
REQUESTED: "REQUESTED";
|
|
2072
2079
|
HELD: "HELD";
|
|
2073
2080
|
COLLECTING: "COLLECTING";
|
|
2074
2081
|
COLLECTED: "COLLECTED";
|
|
2075
2082
|
REDELIVERING: "REDELIVERING";
|
|
2076
2083
|
APPROVED: "APPROVED";
|
|
2077
|
-
COMPLETED: "COMPLETED";
|
|
2078
2084
|
WITHDRAWN: "WITHDRAWN";
|
|
2079
2085
|
}>>;
|
|
2080
2086
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -2106,13 +2112,13 @@ export declare const orderItemFlowSchema: z.ZodObject<{
|
|
|
2106
2112
|
}>>;
|
|
2107
2113
|
claimStatus: z.ZodOptional<z.ZodEnum<{
|
|
2108
2114
|
REJECTED: "REJECTED";
|
|
2115
|
+
COMPLETED: "COMPLETED";
|
|
2109
2116
|
REQUESTED: "REQUESTED";
|
|
2110
2117
|
HELD: "HELD";
|
|
2111
2118
|
COLLECTING: "COLLECTING";
|
|
2112
2119
|
COLLECTED: "COLLECTED";
|
|
2113
2120
|
REDELIVERING: "REDELIVERING";
|
|
2114
2121
|
APPROVED: "APPROVED";
|
|
2115
|
-
COMPLETED: "COMPLETED";
|
|
2116
2122
|
WITHDRAWN: "WITHDRAWN";
|
|
2117
2123
|
}>>;
|
|
2118
2124
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -2154,8 +2160,91 @@ export declare const orderItemFlowSchema: z.ZodObject<{
|
|
|
2154
2160
|
paused: z.ZodBoolean;
|
|
2155
2161
|
}, z.core.$strip>>;
|
|
2156
2162
|
ended: z.ZodBoolean;
|
|
2163
|
+
moveTargets: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2164
|
+
key: z.ZodString;
|
|
2165
|
+
label: z.ZodString;
|
|
2166
|
+
coreStatus: z.ZodNullable<z.ZodEnum<{
|
|
2167
|
+
PAID: "PAID";
|
|
2168
|
+
CANCELED: "CANCELED";
|
|
2169
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
2170
|
+
CONFIRMED: "CONFIRMED";
|
|
2171
|
+
DISPATCHED: "DISPATCHED";
|
|
2172
|
+
DELIVERING: "DELIVERING";
|
|
2173
|
+
DELIVERED: "DELIVERED";
|
|
2174
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
2175
|
+
}>>;
|
|
2176
|
+
}, z.core.$strip>>>;
|
|
2177
|
+
branches: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2178
|
+
key: z.ZodString;
|
|
2179
|
+
label: z.ZodString;
|
|
2180
|
+
coreStatus: z.ZodOptional<z.ZodEnum<{
|
|
2181
|
+
PAID: "PAID";
|
|
2182
|
+
CANCELED: "CANCELED";
|
|
2183
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
2184
|
+
CONFIRMED: "CONFIRMED";
|
|
2185
|
+
DISPATCHED: "DISPATCHED";
|
|
2186
|
+
DELIVERING: "DELIVERING";
|
|
2187
|
+
DELIVERED: "DELIVERED";
|
|
2188
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
2189
|
+
}>>;
|
|
2190
|
+
claimStatus: z.ZodOptional<z.ZodEnum<{
|
|
2191
|
+
REJECTED: "REJECTED";
|
|
2192
|
+
COMPLETED: "COMPLETED";
|
|
2193
|
+
REQUESTED: "REQUESTED";
|
|
2194
|
+
HELD: "HELD";
|
|
2195
|
+
COLLECTING: "COLLECTING";
|
|
2196
|
+
COLLECTED: "COLLECTED";
|
|
2197
|
+
REDELIVERING: "REDELIVERING";
|
|
2198
|
+
APPROVED: "APPROVED";
|
|
2199
|
+
WITHDRAWN: "WITHDRAWN";
|
|
2200
|
+
}>>;
|
|
2201
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2202
|
+
enteredAt: z.ZodString;
|
|
2203
|
+
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
2204
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
2205
|
+
progress: z.ZodOptional<z.ZodBoolean>;
|
|
2206
|
+
fields: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodArray<z.ZodString>]>>;
|
|
2207
|
+
}, z.core.$strip>>>;
|
|
2157
2208
|
}, z.core.$strip>;
|
|
2158
2209
|
export type OrderItemFlow = z.infer<typeof orderItemFlowSchema>;
|
|
2210
|
+
/** 상태 직접 이동(#115) — 연결선을 지나지 않고 다른 상태로 옮긴다. 블록(재고·환불·송장)은 실행하지 않는다 */
|
|
2211
|
+
export declare const moveFlowStateRequestSchema: z.ZodObject<{
|
|
2212
|
+
to: z.ZodString;
|
|
2213
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2214
|
+
}, z.core.$strip>;
|
|
2215
|
+
export type MoveFlowStateRequest = z.infer<typeof moveFlowStateRequestSchema>;
|
|
2216
|
+
export declare const flowRunStepSchema: z.ZodObject<{
|
|
2217
|
+
step: z.ZodNumber;
|
|
2218
|
+
block: z.ZodString;
|
|
2219
|
+
edgeId: z.ZodString;
|
|
2220
|
+
status: z.ZodString;
|
|
2221
|
+
output: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2222
|
+
at: z.ZodString;
|
|
2223
|
+
}, z.core.$strip>;
|
|
2224
|
+
/** 흐름 실행 기록 — 사건 하나가 일으킨 전이(시작·행동·사건·시간·이동·취소) */
|
|
2225
|
+
export declare const flowRunSchema: z.ZodObject<{
|
|
2226
|
+
runId: z.ZodString;
|
|
2227
|
+
orderItemId: z.ZodOptional<z.ZodString>;
|
|
2228
|
+
trigger: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2229
|
+
status: z.ZodString;
|
|
2230
|
+
fromState: z.ZodNullable<z.ZodString>;
|
|
2231
|
+
fromLabel: z.ZodNullable<z.ZodString>;
|
|
2232
|
+
toState: z.ZodString;
|
|
2233
|
+
toLabel: z.ZodString;
|
|
2234
|
+
path: z.ZodArray<z.ZodString>;
|
|
2235
|
+
error: z.ZodNullable<z.ZodUnknown>;
|
|
2236
|
+
startedAt: z.ZodString;
|
|
2237
|
+
finishedAt: z.ZodNullable<z.ZodString>;
|
|
2238
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
2239
|
+
step: z.ZodNumber;
|
|
2240
|
+
block: z.ZodString;
|
|
2241
|
+
edgeId: z.ZodString;
|
|
2242
|
+
status: z.ZodString;
|
|
2243
|
+
output: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2244
|
+
at: z.ZodString;
|
|
2245
|
+
}, z.core.$strip>>;
|
|
2246
|
+
}, z.core.$strip>;
|
|
2247
|
+
export type FlowRun = z.infer<typeof flowRunSchema>;
|
|
2159
2248
|
export declare const flowActionRequestSchema: z.ZodObject<{
|
|
2160
2249
|
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2161
2250
|
}, z.core.$strip>;
|
|
@@ -2181,13 +2270,13 @@ export declare const flowActionResultSchema: z.ZodObject<{
|
|
|
2181
2270
|
}>>;
|
|
2182
2271
|
claimStatus: z.ZodOptional<z.ZodEnum<{
|
|
2183
2272
|
REJECTED: "REJECTED";
|
|
2273
|
+
COMPLETED: "COMPLETED";
|
|
2184
2274
|
REQUESTED: "REQUESTED";
|
|
2185
2275
|
HELD: "HELD";
|
|
2186
2276
|
COLLECTING: "COLLECTING";
|
|
2187
2277
|
COLLECTED: "COLLECTED";
|
|
2188
2278
|
REDELIVERING: "REDELIVERING";
|
|
2189
2279
|
APPROVED: "APPROVED";
|
|
2190
|
-
COMPLETED: "COMPLETED";
|
|
2191
2280
|
WITHDRAWN: "WITHDRAWN";
|
|
2192
2281
|
}>>;
|
|
2193
2282
|
message: z.ZodOptional<z.ZodString>;
|
|
@@ -2319,9 +2408,28 @@ export declare const commerceFlowSchema: z.ZodObject<{
|
|
|
2319
2408
|
LEGACY: "LEGACY";
|
|
2320
2409
|
}>;
|
|
2321
2410
|
publishedAt: z.ZodNullable<z.ZodString>;
|
|
2411
|
+
inProgress: z.ZodOptional<z.ZodNumber>;
|
|
2322
2412
|
}, z.core.$strip>>;
|
|
2323
2413
|
}, z.core.$strip>;
|
|
2324
2414
|
export type CommerceFlow = z.infer<typeof commerceFlowSchema>;
|
|
2415
|
+
export type CommerceFlowVersionView = z.infer<typeof commerceFlowVersionViewSchema>;
|
|
2416
|
+
/** 진행 중 주문을 활성 버전으로 옮기기(#115) — 한 번에 `limit`개까지. 남으면 다시 부른다 */
|
|
2417
|
+
export declare const migrateFlowVersionRequestSchema: z.ZodObject<{
|
|
2418
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
2419
|
+
}, z.core.$strip>;
|
|
2420
|
+
export type MigrateFlowVersionRequest = z.infer<typeof migrateFlowVersionRequestSchema>;
|
|
2421
|
+
export declare const migrateFlowVersionResultSchema: z.ZodObject<{
|
|
2422
|
+
fromVersion: z.ZodNumber;
|
|
2423
|
+
toVersion: z.ZodNumber;
|
|
2424
|
+
migrated: z.ZodNumber;
|
|
2425
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
2426
|
+
orderItemIds: z.ZodArray<z.ZodString>;
|
|
2427
|
+
state: z.ZodString;
|
|
2428
|
+
reason: z.ZodString;
|
|
2429
|
+
}, z.core.$strip>>;
|
|
2430
|
+
remaining: z.ZodNumber;
|
|
2431
|
+
}, z.core.$strip>;
|
|
2432
|
+
export type MigrateFlowVersionResult = z.infer<typeof migrateFlowVersionResultSchema>;
|
|
2325
2433
|
export declare const createCommerceFlowRequestSchema: z.ZodObject<{
|
|
2326
2434
|
key: z.ZodString;
|
|
2327
2435
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2351,37 +2459,16 @@ export declare const commerceFlowCheckSchema: z.ZodObject<{
|
|
|
2351
2459
|
}, z.core.$strip>>;
|
|
2352
2460
|
}, z.core.$strip>;
|
|
2353
2461
|
export type CommerceFlowCheck = z.infer<typeof commerceFlowCheckSchema>;
|
|
2354
|
-
export declare const flowAssignmentRuleSchema: z.ZodObject<{
|
|
2355
|
-
ruleId: z.ZodString;
|
|
2356
|
-
priority: z.ZodNumber;
|
|
2357
|
-
condition: z.ZodString;
|
|
2358
|
-
flowId: z.ZodString;
|
|
2359
|
-
}, z.core.$strip>;
|
|
2360
|
-
export type FlowAssignmentRule = z.infer<typeof flowAssignmentRuleSchema>;
|
|
2361
|
-
export declare const saveFlowAssignmentRulesRequestSchema: z.ZodObject<{
|
|
2362
|
-
rules: z.ZodArray<z.ZodObject<{
|
|
2363
|
-
condition: z.ZodString;
|
|
2364
|
-
flowId: z.ZodString;
|
|
2365
|
-
}, z.core.$strip>>;
|
|
2366
|
-
}, z.core.$strip>;
|
|
2367
|
-
export type SaveFlowAssignmentRulesRequest = z.infer<typeof saveFlowAssignmentRulesRequestSchema>;
|
|
2368
2462
|
export declare const resolvedFlowSchema: z.ZodObject<{
|
|
2369
2463
|
flowId: z.ZodString;
|
|
2370
2464
|
version: z.ZodNumber;
|
|
2371
2465
|
source: z.ZodEnum<{
|
|
2372
|
-
|
|
2466
|
+
PRODUCT: "PRODUCT";
|
|
2467
|
+
CATEGORY: "CATEGORY";
|
|
2373
2468
|
PLATFORM: "PLATFORM";
|
|
2374
2469
|
}>;
|
|
2375
|
-
ruleId: z.ZodOptional<z.ZodString>;
|
|
2376
2470
|
}, z.core.$strip>;
|
|
2377
2471
|
export type ResolvedFlow = z.infer<typeof resolvedFlowSchema>;
|
|
2378
|
-
export declare const testFlowAssignmentRequestSchema: z.ZodObject<{
|
|
2379
|
-
productId: z.ZodString;
|
|
2380
|
-
orderAmount: z.ZodOptional<z.ZodNumber>;
|
|
2381
|
-
paymentMethod: z.ZodOptional<z.ZodString>;
|
|
2382
|
-
member: z.ZodOptional<z.ZodBoolean>;
|
|
2383
|
-
}, z.core.$strip>;
|
|
2384
|
-
export type TestFlowAssignmentRequest = z.infer<typeof testFlowAssignmentRequestSchema>;
|
|
2385
2472
|
/** 시크릿 이름 — 플로우 변수 `secretRef`의 값이다 */
|
|
2386
2473
|
export declare const flowSecretNameSchema: z.ZodString;
|
|
2387
2474
|
/** HTTP 노드가 부를 셀러 API — 헤더 값은 응답에 싣지 않는다 */
|
|
@@ -2397,6 +2484,137 @@ export declare const saveFlowSecretRequestSchema: z.ZodObject<{
|
|
|
2397
2484
|
headers: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2398
2485
|
}, z.core.$strip>;
|
|
2399
2486
|
export type SaveFlowSecretRequest = z.input<typeof saveFlowSecretRequestSchema>;
|
|
2487
|
+
/**
|
|
2488
|
+
* 주문 전체 행동 결과(#115) — 같은 행동을 주문의 주문상품마다 실행한다. 한 주문상품의 실패가 다른 주문상품을 되돌리지 않는다(부분 실행).
|
|
2489
|
+
* 묶음 진행이면 한 번 실행이 묶음의 주문상품을 함께 움직인다(COMPLETED로 함께 나온다). 그 행동이 없는 주문상품은 SKIPPED다
|
|
2490
|
+
*/
|
|
2491
|
+
export declare const orderFlowActionResultSchema: z.ZodObject<{
|
|
2492
|
+
orderId: z.ZodString;
|
|
2493
|
+
key: z.ZodString;
|
|
2494
|
+
results: z.ZodArray<z.ZodObject<{
|
|
2495
|
+
orderItemId: z.ZodString;
|
|
2496
|
+
status: z.ZodEnum<{
|
|
2497
|
+
FAILED: "FAILED";
|
|
2498
|
+
COMPLETED: "COMPLETED";
|
|
2499
|
+
SKIPPED: "SKIPPED";
|
|
2500
|
+
}>;
|
|
2501
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
2502
|
+
message: z.ZodOptional<z.ZodString>;
|
|
2503
|
+
}, z.core.$strip>>;
|
|
2504
|
+
}, z.core.$strip>;
|
|
2505
|
+
export type OrderFlowActionResult = z.infer<typeof orderFlowActionResultSchema>;
|
|
2506
|
+
export declare const simulateFlowRequestSchema: z.ZodObject<{
|
|
2507
|
+
startAt: z.ZodOptional<z.ZodISODateTime>;
|
|
2508
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2509
|
+
steps: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
2510
|
+
event: z.ZodObject<{
|
|
2511
|
+
type: z.ZodEnum<{
|
|
2512
|
+
event: "event";
|
|
2513
|
+
start: "start";
|
|
2514
|
+
"seller.action": "seller.action";
|
|
2515
|
+
"buyer.action": "buyer.action";
|
|
2516
|
+
timer: "timer";
|
|
2517
|
+
}>;
|
|
2518
|
+
key: z.ZodOptional<z.ZodString>;
|
|
2519
|
+
}, z.core.$strip>;
|
|
2520
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2521
|
+
advance: z.ZodString;
|
|
2522
|
+
}, z.core.$strip>]>>;
|
|
2523
|
+
}, z.core.$strip>;
|
|
2524
|
+
export type SimulateFlowRequest = z.infer<typeof simulateFlowRequestSchema>;
|
|
2525
|
+
export declare const simulationStepSchema: z.ZodObject<{
|
|
2526
|
+
step: z.ZodNumber;
|
|
2527
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2528
|
+
at: z.ZodString;
|
|
2529
|
+
node: z.ZodNullable<z.ZodString>;
|
|
2530
|
+
label: z.ZodNullable<z.ZodString>;
|
|
2531
|
+
coreStatus: z.ZodOptional<z.ZodString>;
|
|
2532
|
+
ended: z.ZodBoolean;
|
|
2533
|
+
path: z.ZodArray<z.ZodString>;
|
|
2534
|
+
blocks: z.ZodArray<z.ZodString>;
|
|
2535
|
+
timers: z.ZodArray<z.ZodObject<{
|
|
2536
|
+
key: z.ZodString;
|
|
2537
|
+
dueAt: z.ZodString;
|
|
2538
|
+
}, z.core.$strip>>;
|
|
2539
|
+
leaves: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2540
|
+
node: z.ZodNullable<z.ZodString>;
|
|
2541
|
+
kind: z.ZodString;
|
|
2542
|
+
}, z.core.$strip>>>;
|
|
2543
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2544
|
+
}, z.core.$strip>;
|
|
2545
|
+
export type SimulationStep = z.infer<typeof simulationStepSchema>;
|
|
2546
|
+
export declare const simulateFlowResultSchema: z.ZodObject<{
|
|
2547
|
+
compiled: z.ZodBoolean;
|
|
2548
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2549
|
+
code: z.ZodString;
|
|
2550
|
+
message: z.ZodString;
|
|
2551
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
2552
|
+
edgeId: z.ZodOptional<z.ZodString>;
|
|
2553
|
+
}, z.core.$strip>>;
|
|
2554
|
+
trace: z.ZodArray<z.ZodObject<{
|
|
2555
|
+
step: z.ZodNumber;
|
|
2556
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2557
|
+
at: z.ZodString;
|
|
2558
|
+
node: z.ZodNullable<z.ZodString>;
|
|
2559
|
+
label: z.ZodNullable<z.ZodString>;
|
|
2560
|
+
coreStatus: z.ZodOptional<z.ZodString>;
|
|
2561
|
+
ended: z.ZodBoolean;
|
|
2562
|
+
path: z.ZodArray<z.ZodString>;
|
|
2563
|
+
blocks: z.ZodArray<z.ZodString>;
|
|
2564
|
+
timers: z.ZodArray<z.ZodObject<{
|
|
2565
|
+
key: z.ZodString;
|
|
2566
|
+
dueAt: z.ZodString;
|
|
2567
|
+
}, z.core.$strip>>;
|
|
2568
|
+
leaves: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2569
|
+
node: z.ZodNullable<z.ZodString>;
|
|
2570
|
+
kind: z.ZodString;
|
|
2571
|
+
}, z.core.$strip>>>;
|
|
2572
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2573
|
+
}, z.core.$strip>>;
|
|
2574
|
+
}, z.core.$strip>;
|
|
2575
|
+
export type SimulateFlowResult = z.infer<typeof simulateFlowResultSchema>;
|
|
2576
|
+
export declare const replayFlowRequestSchema: z.ZodObject<{
|
|
2577
|
+
orderItemId: z.ZodString;
|
|
2578
|
+
}, z.core.$strip>;
|
|
2579
|
+
export type ReplayFlowRequest = z.infer<typeof replayFlowRequestSchema>;
|
|
2580
|
+
export declare const replayFlowResultSchema: z.ZodObject<{
|
|
2581
|
+
orderItemId: z.ZodString;
|
|
2582
|
+
compiled: z.ZodBoolean;
|
|
2583
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2584
|
+
code: z.ZodString;
|
|
2585
|
+
message: z.ZodString;
|
|
2586
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
2587
|
+
edgeId: z.ZodOptional<z.ZodString>;
|
|
2588
|
+
}, z.core.$strip>>;
|
|
2589
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
2590
|
+
runId: z.ZodString;
|
|
2591
|
+
trigger: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2592
|
+
recordedState: z.ZodString;
|
|
2593
|
+
simulatedState: z.ZodNullable<z.ZodString>;
|
|
2594
|
+
match: z.ZodBoolean;
|
|
2595
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2596
|
+
}, z.core.$strip>>;
|
|
2597
|
+
divergedAt: z.ZodNullable<z.ZodNumber>;
|
|
2598
|
+
unsupported: z.ZodNumber;
|
|
2599
|
+
}, z.core.$strip>;
|
|
2600
|
+
export type ReplayFlowResult = z.infer<typeof replayFlowResultSchema>;
|
|
2601
|
+
/** 노드·블록 종류 목록(#115) — 흐름을 API·AI로 짤 때 쓸 수 있는 종류와 설정 형식(JSON Schema) */
|
|
2602
|
+
export declare const flowNodeTypesSchema: z.ZodObject<{
|
|
2603
|
+
nodes: z.ZodArray<z.ZodObject<{
|
|
2604
|
+
type: z.ZodString;
|
|
2605
|
+
version: z.ZodNumber;
|
|
2606
|
+
kind: z.ZodString;
|
|
2607
|
+
outputs: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
2608
|
+
configSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2609
|
+
}, z.core.$strip>>;
|
|
2610
|
+
blocks: z.ZodArray<z.ZodObject<{
|
|
2611
|
+
type: z.ZodString;
|
|
2612
|
+
version: z.ZodNumber;
|
|
2613
|
+
effect: z.ZodString;
|
|
2614
|
+
configSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
2615
|
+
}, z.core.$strip>>;
|
|
2616
|
+
}, z.core.$strip>;
|
|
2617
|
+
export type FlowNodeTypes = z.infer<typeof flowNodeTypesSchema>;
|
|
2400
2618
|
//#endregion
|
|
2401
2619
|
//#region src/schemas/coupon.d.ts
|
|
2402
2620
|
/**
|
|
@@ -3621,6 +3839,7 @@ export declare const eventTypeSchema: z.ZodEnum<{
|
|
|
3621
3839
|
"REVIEW.CREATED": "REVIEW.CREATED";
|
|
3622
3840
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
3623
3841
|
"ORDER.FLOW_NOTIFICATION": "ORDER.FLOW_NOTIFICATION";
|
|
3842
|
+
"ORDER.FLOW_STATE_CHANGED": "ORDER.FLOW_STATE_CHANGED";
|
|
3624
3843
|
}>;
|
|
3625
3844
|
export type EventType = z.infer<typeof eventTypeSchema>;
|
|
3626
3845
|
export declare const webhookStatusSchema: z.ZodEnum<{
|
|
@@ -3648,6 +3867,7 @@ export declare const webhookSchema: z.ZodObject<{
|
|
|
3648
3867
|
"REVIEW.CREATED": "REVIEW.CREATED";
|
|
3649
3868
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
3650
3869
|
"ORDER.FLOW_NOTIFICATION": "ORDER.FLOW_NOTIFICATION";
|
|
3870
|
+
"ORDER.FLOW_STATE_CHANGED": "ORDER.FLOW_STATE_CHANGED";
|
|
3651
3871
|
}>>;
|
|
3652
3872
|
status: z.ZodEnum<{
|
|
3653
3873
|
SUSPENDED: "SUSPENDED";
|
|
@@ -3679,6 +3899,7 @@ export declare const webhookCreatedSchema: z.ZodObject<{
|
|
|
3679
3899
|
"REVIEW.CREATED": "REVIEW.CREATED";
|
|
3680
3900
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
3681
3901
|
"ORDER.FLOW_NOTIFICATION": "ORDER.FLOW_NOTIFICATION";
|
|
3902
|
+
"ORDER.FLOW_STATE_CHANGED": "ORDER.FLOW_STATE_CHANGED";
|
|
3682
3903
|
}>>;
|
|
3683
3904
|
status: z.ZodEnum<{
|
|
3684
3905
|
SUSPENDED: "SUSPENDED";
|
|
@@ -3760,6 +3981,7 @@ export declare const webhookDeliverySchema: z.ZodObject<{
|
|
|
3760
3981
|
"REVIEW.CREATED": "REVIEW.CREATED";
|
|
3761
3982
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
3762
3983
|
"ORDER.FLOW_NOTIFICATION": "ORDER.FLOW_NOTIFICATION";
|
|
3984
|
+
"ORDER.FLOW_STATE_CHANGED": "ORDER.FLOW_STATE_CHANGED";
|
|
3763
3985
|
}>;
|
|
3764
3986
|
url: z.ZodString;
|
|
3765
3987
|
status: z.ZodEnum<{
|
|
@@ -3814,6 +4036,7 @@ export declare const webhookDeliveryDetailSchema: z.ZodObject<{
|
|
|
3814
4036
|
"REVIEW.CREATED": "REVIEW.CREATED";
|
|
3815
4037
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
3816
4038
|
"ORDER.FLOW_NOTIFICATION": "ORDER.FLOW_NOTIFICATION";
|
|
4039
|
+
"ORDER.FLOW_STATE_CHANGED": "ORDER.FLOW_STATE_CHANGED";
|
|
3817
4040
|
}>;
|
|
3818
4041
|
url: z.ZodString;
|
|
3819
4042
|
status: z.ZodEnum<{
|
|
@@ -3877,6 +4100,7 @@ export declare const webhookDeliveryListQuerySchema: z.ZodObject<{
|
|
|
3877
4100
|
"REVIEW.CREATED": "REVIEW.CREATED";
|
|
3878
4101
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
3879
4102
|
"ORDER.FLOW_NOTIFICATION": "ORDER.FLOW_NOTIFICATION";
|
|
4103
|
+
"ORDER.FLOW_STATE_CHANGED": "ORDER.FLOW_STATE_CHANGED";
|
|
3880
4104
|
}>>;
|
|
3881
4105
|
resourceId: z.ZodOptional<z.ZodString>;
|
|
3882
4106
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
@@ -3905,6 +4129,7 @@ export declare const webhookTestRequestSchema: z.ZodObject<{
|
|
|
3905
4129
|
"REVIEW.CREATED": "REVIEW.CREATED";
|
|
3906
4130
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
3907
4131
|
"ORDER.FLOW_NOTIFICATION": "ORDER.FLOW_NOTIFICATION";
|
|
4132
|
+
"ORDER.FLOW_STATE_CHANGED": "ORDER.FLOW_STATE_CHANGED";
|
|
3908
4133
|
}>;
|
|
3909
4134
|
}, z.core.$strip>;
|
|
3910
4135
|
export type WebhookTestRequest = z.infer<typeof webhookTestRequestSchema>;
|
|
@@ -3947,6 +4172,7 @@ export declare const webhookRequestSchema: z.ZodObject<{
|
|
|
3947
4172
|
"REVIEW.CREATED": "REVIEW.CREATED";
|
|
3948
4173
|
"PRODUCT.OUT_OF_STOCK": "PRODUCT.OUT_OF_STOCK";
|
|
3949
4174
|
"ORDER.FLOW_NOTIFICATION": "ORDER.FLOW_NOTIFICATION";
|
|
4175
|
+
"ORDER.FLOW_STATE_CHANGED": "ORDER.FLOW_STATE_CHANGED";
|
|
3950
4176
|
}>>;
|
|
3951
4177
|
}, z.core.$strip>;
|
|
3952
4178
|
export type WebhookRequest = z.infer<typeof webhookRequestSchema>;
|
|
@@ -4036,6 +4262,16 @@ export declare const orderSummarySchema: z.ZodObject<{
|
|
|
4036
4262
|
DELIVERED: "DELIVERED";
|
|
4037
4263
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4038
4264
|
}>;
|
|
4265
|
+
progressStatus: z.ZodOptional<z.ZodEnum<{
|
|
4266
|
+
PAID: "PAID";
|
|
4267
|
+
CANCELED: "CANCELED";
|
|
4268
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4269
|
+
CONFIRMED: "CONFIRMED";
|
|
4270
|
+
DISPATCHED: "DISPATCHED";
|
|
4271
|
+
DELIVERING: "DELIVERING";
|
|
4272
|
+
DELIVERED: "DELIVERED";
|
|
4273
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4274
|
+
}>>;
|
|
4039
4275
|
orderedAt: z.ZodString;
|
|
4040
4276
|
testPayment: z.ZodBoolean;
|
|
4041
4277
|
}, z.core.$strip>;
|
|
@@ -4180,6 +4416,16 @@ export declare const orderDiscountSchema: z.ZodObject<{
|
|
|
4180
4416
|
export type OrderDiscount = z.infer<typeof orderDiscountSchema>;
|
|
4181
4417
|
export declare const orderSchema: z.ZodObject<{
|
|
4182
4418
|
orderId: z.ZodString;
|
|
4419
|
+
progressStatus: z.ZodOptional<z.ZodEnum<{
|
|
4420
|
+
PAID: "PAID";
|
|
4421
|
+
CANCELED: "CANCELED";
|
|
4422
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4423
|
+
CONFIRMED: "CONFIRMED";
|
|
4424
|
+
DISPATCHED: "DISPATCHED";
|
|
4425
|
+
DELIVERING: "DELIVERING";
|
|
4426
|
+
DELIVERED: "DELIVERED";
|
|
4427
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4428
|
+
}>>;
|
|
4183
4429
|
orderNo: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
4184
4430
|
orderedAt: z.ZodString;
|
|
4185
4431
|
orderer: z.ZodObject<{
|
|
@@ -4381,6 +4627,16 @@ export declare const orderSummaryPageSchema: z.ZodObject<{
|
|
|
4381
4627
|
DELIVERED: "DELIVERED";
|
|
4382
4628
|
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4383
4629
|
}>;
|
|
4630
|
+
progressStatus: z.ZodOptional<z.ZodEnum<{
|
|
4631
|
+
PAID: "PAID";
|
|
4632
|
+
CANCELED: "CANCELED";
|
|
4633
|
+
PAYMENT_WAITING: "PAYMENT_WAITING";
|
|
4634
|
+
CONFIRMED: "CONFIRMED";
|
|
4635
|
+
DISPATCHED: "DISPATCHED";
|
|
4636
|
+
DELIVERING: "DELIVERING";
|
|
4637
|
+
DELIVERED: "DELIVERED";
|
|
4638
|
+
PURCHASE_DECIDED: "PURCHASE_DECIDED";
|
|
4639
|
+
}>>;
|
|
4384
4640
|
orderedAt: z.ZodString;
|
|
4385
4641
|
testPayment: z.ZodBoolean;
|
|
4386
4642
|
}, z.core.$strip>>;
|
|
@@ -6412,6 +6668,7 @@ export declare const productSchema: z.ZodObject<{
|
|
|
6412
6668
|
type: string;
|
|
6413
6669
|
}>>]>;
|
|
6414
6670
|
inventoryMode: z.ZodOptional<z.ZodString>;
|
|
6671
|
+
flowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6415
6672
|
fulfillmentTypeLocked: z.ZodBoolean;
|
|
6416
6673
|
refundPolicy: z.ZodNullable<z.ZodObject<{
|
|
6417
6674
|
preShipmentDeliveryFeeRefund: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -6664,6 +6921,7 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
6664
6921
|
STANDARD: "STANDARD";
|
|
6665
6922
|
DATED: "DATED";
|
|
6666
6923
|
}>>;
|
|
6924
|
+
flowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6667
6925
|
optionGroups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
6668
6926
|
groupId: z.ZodOptional<z.ZodString>;
|
|
6669
6927
|
name: z.ZodString;
|
|
@@ -6777,6 +7035,7 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
6777
7035
|
STANDARD: "STANDARD";
|
|
6778
7036
|
DATED: "DATED";
|
|
6779
7037
|
}>>;
|
|
7038
|
+
flowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6780
7039
|
optionGroups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
6781
7040
|
groupId: z.ZodOptional<z.ZodString>;
|
|
6782
7041
|
name: z.ZodString;
|
|
@@ -6864,6 +7123,7 @@ export declare const productPatchRequestSchema: z.ZodObject<{
|
|
|
6864
7123
|
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
6865
7124
|
CLOSED: "CLOSED";
|
|
6866
7125
|
}>>;
|
|
7126
|
+
flowId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6867
7127
|
images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
|
|
6868
7128
|
fulfillment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
6869
7129
|
type: z.ZodLiteral<"SHIPPING">;
|
|
@@ -6906,9 +7166,9 @@ export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
|
|
|
6906
7166
|
export declare const productSortSchema: z.ZodEnum<{
|
|
6907
7167
|
"createdAt.desc": "createdAt.desc";
|
|
6908
7168
|
"createdAt.asc": "createdAt.asc";
|
|
7169
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
6909
7170
|
"salePrice.asc": "salePrice.asc";
|
|
6910
7171
|
"salePrice.desc": "salePrice.desc";
|
|
6911
|
-
"updatedAt.desc": "updatedAt.desc";
|
|
6912
7172
|
}>;
|
|
6913
7173
|
export type ProductSort = z.infer<typeof productSortSchema>;
|
|
6914
7174
|
export interface ProductListParams extends PageParams {
|
|
@@ -6937,9 +7197,9 @@ export declare const productListQuerySchema: z.ZodObject<{
|
|
|
6937
7197
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
6938
7198
|
"createdAt.desc": "createdAt.desc";
|
|
6939
7199
|
"createdAt.asc": "createdAt.asc";
|
|
7200
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
6940
7201
|
"salePrice.asc": "salePrice.asc";
|
|
6941
7202
|
"salePrice.desc": "salePrice.desc";
|
|
6942
|
-
"updatedAt.desc": "updatedAt.desc";
|
|
6943
7203
|
}>>;
|
|
6944
7204
|
}, z.core.$strip>;
|
|
6945
7205
|
export declare const discountRequestSchema: z.ZodObject<{
|
|
@@ -9272,6 +9532,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9272
9532
|
value: string;
|
|
9273
9533
|
}[] | undefined;
|
|
9274
9534
|
inventoryMode?: string | undefined;
|
|
9535
|
+
flowId?: string | null | undefined;
|
|
9275
9536
|
discount?: {
|
|
9276
9537
|
productId: string;
|
|
9277
9538
|
discountType: "RATE" | "AMOUNT";
|
|
@@ -9379,6 +9640,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9379
9640
|
value: string;
|
|
9380
9641
|
}[] | undefined;
|
|
9381
9642
|
inventoryMode?: string | undefined;
|
|
9643
|
+
flowId?: string | null | undefined;
|
|
9382
9644
|
discount?: {
|
|
9383
9645
|
productId: string;
|
|
9384
9646
|
discountType: "RATE" | "AMOUNT";
|
|
@@ -9486,6 +9748,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
9486
9748
|
value: string;
|
|
9487
9749
|
}[] | undefined;
|
|
9488
9750
|
inventoryMode?: string | undefined;
|
|
9751
|
+
flowId?: string | null | undefined;
|
|
9489
9752
|
discount?: {
|
|
9490
9753
|
productId: string;
|
|
9491
9754
|
discountType: "RATE" | "AMOUNT";
|
|
@@ -10135,6 +10398,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10135
10398
|
metaKeywords: string | null;
|
|
10136
10399
|
createdAt: string;
|
|
10137
10400
|
updatedAt: string;
|
|
10401
|
+
flowId?: string | null | undefined;
|
|
10138
10402
|
}[]>;
|
|
10139
10403
|
tree: () => Promise<CategoryTreeNode[]>;
|
|
10140
10404
|
search: (q: string) => Promise<{
|
|
@@ -10174,7 +10438,9 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10174
10438
|
metaKeywords: string | null;
|
|
10175
10439
|
createdAt: string;
|
|
10176
10440
|
updatedAt: string;
|
|
10441
|
+
flowId?: string | null | undefined;
|
|
10177
10442
|
}[];
|
|
10443
|
+
flowId?: string | null | undefined;
|
|
10178
10444
|
}[]>;
|
|
10179
10445
|
get: (categoryId: string) => Promise<{
|
|
10180
10446
|
categoryId: string;
|
|
@@ -10213,8 +10479,10 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10213
10479
|
metaKeywords: string | null;
|
|
10214
10480
|
createdAt: string;
|
|
10215
10481
|
updatedAt: string;
|
|
10482
|
+
flowId?: string | null | undefined;
|
|
10216
10483
|
}[];
|
|
10217
10484
|
childCount: number;
|
|
10485
|
+
flowId?: string | null | undefined;
|
|
10218
10486
|
}>;
|
|
10219
10487
|
listAttributes: (categoryId: string) => Promise<{
|
|
10220
10488
|
attributeId: string;
|
|
@@ -10242,6 +10510,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10242
10510
|
metaKeywords: string | null;
|
|
10243
10511
|
createdAt: string;
|
|
10244
10512
|
updatedAt: string;
|
|
10513
|
+
flowId?: string | null | undefined;
|
|
10245
10514
|
}>;
|
|
10246
10515
|
update: (categoryId: string, body: CategoryPatchRequest) => Promise<{
|
|
10247
10516
|
categoryId: string;
|
|
@@ -10261,6 +10530,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10261
10530
|
metaKeywords: string | null;
|
|
10262
10531
|
createdAt: string;
|
|
10263
10532
|
updatedAt: string;
|
|
10533
|
+
flowId?: string | null | undefined;
|
|
10264
10534
|
}>;
|
|
10265
10535
|
remove: (categoryId: string, opts?: {
|
|
10266
10536
|
strategy?: CategoryDeleteStrategy;
|
|
@@ -10285,6 +10555,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10285
10555
|
representativeStatus: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED";
|
|
10286
10556
|
orderedAt: string;
|
|
10287
10557
|
testPayment: boolean;
|
|
10558
|
+
progressStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
10288
10559
|
}[];
|
|
10289
10560
|
}>;
|
|
10290
10561
|
get: (orderId: string) => Promise<{
|
|
@@ -10427,6 +10698,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10427
10698
|
}[];
|
|
10428
10699
|
} | undefined;
|
|
10429
10700
|
}[];
|
|
10701
|
+
progressStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
10430
10702
|
}>;
|
|
10431
10703
|
/**
|
|
10432
10704
|
* `POST /v1/orders/{orderId}/cash-receipt/reissue` — 실패했거나 재시도 대기 중인 현금영수증을 지금 다시 발급·취소한다.
|
|
@@ -10451,6 +10723,20 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10451
10723
|
requestedAt: string;
|
|
10452
10724
|
updatedAt: string;
|
|
10453
10725
|
}>;
|
|
10726
|
+
/**
|
|
10727
|
+
* `POST /orders/{id}/actions/{key}` — 주문 전체 행동(#115). 그 행동이 켜진 주문상품마다 실행하고 결과를 주문상품별로 준다(부분 실행).
|
|
10728
|
+
* 켜진 주문상품이 하나도 없으면 409 `ACTION_NOT_AVAILABLE`
|
|
10729
|
+
*/
|
|
10730
|
+
act: (orderId: string, key: string, input?: Record<string, unknown>, idempotencyKey?: string) => Promise<{
|
|
10731
|
+
orderId: string;
|
|
10732
|
+
key: string;
|
|
10733
|
+
results: {
|
|
10734
|
+
orderItemId: string;
|
|
10735
|
+
status: "FAILED" | "COMPLETED" | "SKIPPED";
|
|
10736
|
+
reason?: string | undefined;
|
|
10737
|
+
message?: string | undefined;
|
|
10738
|
+
}[];
|
|
10739
|
+
}>;
|
|
10454
10740
|
};
|
|
10455
10741
|
orderItems: {
|
|
10456
10742
|
/** `GET /v1/order-items`. `testPayment` 필터는 `orders.list`와 같다 */
|
|
@@ -10825,7 +11111,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10825
11111
|
enteredAt: string;
|
|
10826
11112
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
10827
11113
|
coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
10828
|
-
claimStatus?: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
11114
|
+
claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
|
|
10829
11115
|
message?: string | undefined;
|
|
10830
11116
|
deadlineAt?: string | undefined;
|
|
10831
11117
|
attachments?: string[] | undefined;
|
|
@@ -10859,6 +11145,23 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10859
11145
|
paused: boolean;
|
|
10860
11146
|
}[];
|
|
10861
11147
|
ended: boolean;
|
|
11148
|
+
moveTargets?: {
|
|
11149
|
+
key: string;
|
|
11150
|
+
label: string;
|
|
11151
|
+
coreStatus: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | null;
|
|
11152
|
+
}[] | undefined;
|
|
11153
|
+
branches?: {
|
|
11154
|
+
key: string;
|
|
11155
|
+
label: string;
|
|
11156
|
+
enteredAt: string;
|
|
11157
|
+
fields: Record<string, string | number | boolean | string[] | null>;
|
|
11158
|
+
coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
11159
|
+
claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
|
|
11160
|
+
message?: string | undefined;
|
|
11161
|
+
deadlineAt?: string | undefined;
|
|
11162
|
+
attachments?: string[] | undefined;
|
|
11163
|
+
progress?: boolean | undefined;
|
|
11164
|
+
}[] | undefined;
|
|
10862
11165
|
}>;
|
|
10863
11166
|
/**
|
|
10864
11167
|
* `POST /order-items/{id}/actions/{key}` — `getFlow().actions`에 켜진 행동을 실행한다(#115). 묶음 진행이면
|
|
@@ -10872,7 +11175,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10872
11175
|
enteredAt: string;
|
|
10873
11176
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
10874
11177
|
coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
10875
|
-
claimStatus?: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
11178
|
+
claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
|
|
10876
11179
|
message?: string | undefined;
|
|
10877
11180
|
deadlineAt?: string | undefined;
|
|
10878
11181
|
attachments?: string[] | undefined;
|
|
@@ -10914,7 +11217,49 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10914
11217
|
enteredAt: string;
|
|
10915
11218
|
fields: Record<string, string | number | boolean | string[] | null>;
|
|
10916
11219
|
coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
10917
|
-
claimStatus?: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
11220
|
+
claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
|
|
11221
|
+
message?: string | undefined;
|
|
11222
|
+
deadlineAt?: string | undefined;
|
|
11223
|
+
attachments?: string[] | undefined;
|
|
11224
|
+
progress?: boolean | undefined;
|
|
11225
|
+
};
|
|
11226
|
+
actions: {
|
|
11227
|
+
key: string;
|
|
11228
|
+
label: string;
|
|
11229
|
+
mode: "REQUEST" | "INSTANT" | "VIEW";
|
|
11230
|
+
enabled: boolean;
|
|
11231
|
+
disabled?: {
|
|
11232
|
+
reason: string;
|
|
11233
|
+
message?: string | undefined;
|
|
11234
|
+
} | undefined;
|
|
11235
|
+
availableUntil?: string | undefined;
|
|
11236
|
+
subflow?: string | undefined;
|
|
11237
|
+
input?: {
|
|
11238
|
+
key: string;
|
|
11239
|
+
type: string;
|
|
11240
|
+
required: boolean;
|
|
11241
|
+
label: string;
|
|
11242
|
+
maxLength?: number | undefined;
|
|
11243
|
+
maxFiles?: number | undefined;
|
|
11244
|
+
options?: (string | number)[] | undefined;
|
|
11245
|
+
}[] | undefined;
|
|
11246
|
+
partialQuantity?: boolean | "UNIT" | undefined;
|
|
11247
|
+
}[];
|
|
11248
|
+
affectedOrderItemIds: string[];
|
|
11249
|
+
}>;
|
|
11250
|
+
/**
|
|
11251
|
+
* `POST /order-items/{id}/flow/move` — 상태 직접 이동(#115). 연결선을 지나지 않으므로 블록(재고·환불·송장)은 실행하지 않는다.
|
|
11252
|
+
* 옮길 수 있는 상태는 `getFlow().moveTargets`. 에러: 409 `FLOW_MOVE_NOT_ALLOWED`
|
|
11253
|
+
*/
|
|
11254
|
+
moveFlow: (orderItemId: string, body: MoveFlowStateRequest, idempotencyKey?: string) => Promise<{
|
|
11255
|
+
status: "COMPLETED";
|
|
11256
|
+
flowState: {
|
|
11257
|
+
key: string;
|
|
11258
|
+
label: string;
|
|
11259
|
+
enteredAt: string;
|
|
11260
|
+
fields: Record<string, string | number | boolean | string[] | null>;
|
|
11261
|
+
coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
|
|
11262
|
+
claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
|
|
10918
11263
|
message?: string | undefined;
|
|
10919
11264
|
deadlineAt?: string | undefined;
|
|
10920
11265
|
attachments?: string[] | undefined;
|
|
@@ -10944,6 +11289,54 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
10944
11289
|
}[];
|
|
10945
11290
|
affectedOrderItemIds: string[];
|
|
10946
11291
|
}>;
|
|
11292
|
+
/** `GET /order-items/{id}/flow/runs` — 흐름 실행 기록(최근 것부터 50개, #115). 스코프 `order:r` */
|
|
11293
|
+
flowRuns: (orderItemId: string) => Promise<{
|
|
11294
|
+
runId: string;
|
|
11295
|
+
trigger: Record<string, unknown>;
|
|
11296
|
+
status: string;
|
|
11297
|
+
fromState: string | null;
|
|
11298
|
+
fromLabel: string | null;
|
|
11299
|
+
toState: string;
|
|
11300
|
+
toLabel: string;
|
|
11301
|
+
path: string[];
|
|
11302
|
+
error: unknown;
|
|
11303
|
+
startedAt: string;
|
|
11304
|
+
finishedAt: string | null;
|
|
11305
|
+
steps: {
|
|
11306
|
+
step: number;
|
|
11307
|
+
block: string;
|
|
11308
|
+
edgeId: string;
|
|
11309
|
+
status: string;
|
|
11310
|
+
output: Record<string, unknown> | null;
|
|
11311
|
+
at: string;
|
|
11312
|
+
}[];
|
|
11313
|
+
orderItemId?: string | undefined;
|
|
11314
|
+
}[]>;
|
|
11315
|
+
};
|
|
11316
|
+
/** `GET /flow-runs/{runId}` — 흐름 실행 기록 하나와 실행한 블록(#115). 스코프 `order:r` */
|
|
11317
|
+
flowRuns: {
|
|
11318
|
+
get: (runId: string) => Promise<{
|
|
11319
|
+
runId: string;
|
|
11320
|
+
trigger: Record<string, unknown>;
|
|
11321
|
+
status: string;
|
|
11322
|
+
fromState: string | null;
|
|
11323
|
+
fromLabel: string | null;
|
|
11324
|
+
toState: string;
|
|
11325
|
+
toLabel: string;
|
|
11326
|
+
path: string[];
|
|
11327
|
+
error: unknown;
|
|
11328
|
+
startedAt: string;
|
|
11329
|
+
finishedAt: string | null;
|
|
11330
|
+
steps: {
|
|
11331
|
+
step: number;
|
|
11332
|
+
block: string;
|
|
11333
|
+
edgeId: string;
|
|
11334
|
+
status: string;
|
|
11335
|
+
output: Record<string, unknown> | null;
|
|
11336
|
+
at: string;
|
|
11337
|
+
}[];
|
|
11338
|
+
orderItemId?: string | undefined;
|
|
11339
|
+
}>;
|
|
10947
11340
|
};
|
|
10948
11341
|
/**
|
|
10949
11342
|
* 커머스 플로우 (이슈 #115) — 프리셋 설치·초안 저장·검사·게시와 상품 할당 규칙. 조회 `flow:r`, 쓰기 `flow:rw`.
|
|
@@ -11007,6 +11400,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11007
11400
|
version: number;
|
|
11008
11401
|
status: "ACTIVE" | "DRAFT" | "LEGACY";
|
|
11009
11402
|
publishedAt: string | null;
|
|
11403
|
+
inProgress?: number | undefined;
|
|
11010
11404
|
}[];
|
|
11011
11405
|
}>;
|
|
11012
11406
|
/** 프리셋 설치 또는 빈 플로우. 에러: 409 `FLOW_KEY_TAKEN`·`FLOW_PRESET_UNAVAILABLE` */
|
|
@@ -11044,6 +11438,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11044
11438
|
version: number;
|
|
11045
11439
|
status: "ACTIVE" | "DRAFT" | "LEGACY";
|
|
11046
11440
|
publishedAt: string | null;
|
|
11441
|
+
inProgress?: number | undefined;
|
|
11047
11442
|
}[];
|
|
11048
11443
|
}>;
|
|
11049
11444
|
/** 초안 저장. `revision`을 주면 그 초안일 때만 저장한다(409 `FLOW_REVISION_CONFLICT`) */
|
|
@@ -11081,6 +11476,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11081
11476
|
version: number;
|
|
11082
11477
|
status: "ACTIVE" | "DRAFT" | "LEGACY";
|
|
11083
11478
|
publishedAt: string | null;
|
|
11479
|
+
inProgress?: number | undefined;
|
|
11084
11480
|
}[];
|
|
11085
11481
|
}>;
|
|
11086
11482
|
check: (flowId: string) => Promise<{
|
|
@@ -11133,33 +11529,14 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11133
11529
|
version: number;
|
|
11134
11530
|
status: "ACTIVE" | "DRAFT" | "LEGACY";
|
|
11135
11531
|
publishedAt: string | null;
|
|
11532
|
+
inProgress?: number | undefined;
|
|
11136
11533
|
}[];
|
|
11137
11534
|
}>;
|
|
11138
|
-
rules: () => Promise<{
|
|
11139
|
-
ruleId: string;
|
|
11140
|
-
priority: number;
|
|
11141
|
-
condition: string;
|
|
11142
|
-
flowId: string;
|
|
11143
|
-
}[]>;
|
|
11144
|
-
/** 할당 규칙 전체 교체(우선순위는 배열 순서). 에러: 400 `FLOW_ASSIGNMENT_CONDITION_INVALID`, 409 `FLOW_NOT_PUBLISHED` */
|
|
11145
|
-
saveRules: (body: SaveFlowAssignmentRulesRequest) => Promise<{
|
|
11146
|
-
ruleId: string;
|
|
11147
|
-
priority: number;
|
|
11148
|
-
condition: string;
|
|
11149
|
-
flowId: string;
|
|
11150
|
-
}[]>;
|
|
11151
|
-
testRules: (body: TestFlowAssignmentRequest) => Promise<{
|
|
11152
|
-
flowId: string;
|
|
11153
|
-
version: number;
|
|
11154
|
-
source: "RULE" | "PLATFORM";
|
|
11155
|
-
ruleId?: string | undefined;
|
|
11156
|
-
}>;
|
|
11157
11535
|
/** 이 상품에 지금 붙을 플로우 */
|
|
11158
11536
|
forProduct: (productId: string) => Promise<{
|
|
11159
11537
|
flowId: string;
|
|
11160
11538
|
version: number;
|
|
11161
|
-
source: "
|
|
11162
|
-
ruleId?: string | undefined;
|
|
11539
|
+
source: "PRODUCT" | "CATEGORY" | "PLATFORM";
|
|
11163
11540
|
}>;
|
|
11164
11541
|
/** HTTP 노드 시크릿 목록(헤더 값 제외) */
|
|
11165
11542
|
secrets: () => Promise<{
|
|
@@ -11176,6 +11553,98 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11176
11553
|
updatedAt: string;
|
|
11177
11554
|
}>;
|
|
11178
11555
|
removeSecret: (name: string) => Promise<void>;
|
|
11556
|
+
/** `GET /commerce-flows/{id}/versions/{n}` — 게시했던 버전 하나(그래프·정의). 옛 버전 보기용 */
|
|
11557
|
+
getVersion: (flowId: string, version: number) => Promise<{
|
|
11558
|
+
version: number;
|
|
11559
|
+
status: "ACTIVE" | "DRAFT" | "LEGACY";
|
|
11560
|
+
revision: number;
|
|
11561
|
+
graph: Record<string, unknown>;
|
|
11562
|
+
definition: Record<string, unknown>;
|
|
11563
|
+
variables: Record<string, unknown>;
|
|
11564
|
+
publishedAt: string | null;
|
|
11565
|
+
}>;
|
|
11566
|
+
/**
|
|
11567
|
+
* `POST /commerce-flows/{id}/versions/{n}/migrate` — 버전 n을 따르는 진행 중 주문을 지금 게시 버전으로 옮긴다. 같은 상태가 새 버전에
|
|
11568
|
+
* 있어야 하고, 진행 중 클레임·외부 API 대기는 건너뛴다(`skipped`). `remaining`이 0이 될 때까지 다시 부른다
|
|
11569
|
+
*/
|
|
11570
|
+
migrateVersion: (flowId: string, version: number, body?: MigrateFlowVersionRequest) => Promise<{
|
|
11571
|
+
fromVersion: number;
|
|
11572
|
+
toVersion: number;
|
|
11573
|
+
migrated: number;
|
|
11574
|
+
skipped: {
|
|
11575
|
+
orderItemIds: string[];
|
|
11576
|
+
state: string;
|
|
11577
|
+
reason: string;
|
|
11578
|
+
}[];
|
|
11579
|
+
remaining: number;
|
|
11580
|
+
}>;
|
|
11581
|
+
/** `POST /commerce-flows/{id}/draft/simulate` — 초안을 가상 시계로 돌려 단계별 결과를 본다(주문·돈·재고는 건드리지 않는다) */
|
|
11582
|
+
simulate: (flowId: string, body: SimulateFlowRequest) => Promise<{
|
|
11583
|
+
compiled: boolean;
|
|
11584
|
+
errors: {
|
|
11585
|
+
code: string;
|
|
11586
|
+
message: string;
|
|
11587
|
+
nodeId?: string | undefined;
|
|
11588
|
+
edgeId?: string | undefined;
|
|
11589
|
+
}[];
|
|
11590
|
+
trace: {
|
|
11591
|
+
step: number;
|
|
11592
|
+
input: Record<string, unknown>;
|
|
11593
|
+
at: string;
|
|
11594
|
+
node: string | null;
|
|
11595
|
+
label: string | null;
|
|
11596
|
+
ended: boolean;
|
|
11597
|
+
path: string[];
|
|
11598
|
+
blocks: string[];
|
|
11599
|
+
timers: {
|
|
11600
|
+
key: string;
|
|
11601
|
+
dueAt: string;
|
|
11602
|
+
}[];
|
|
11603
|
+
coreStatus?: string | undefined;
|
|
11604
|
+
leaves?: {
|
|
11605
|
+
node: string | null;
|
|
11606
|
+
kind: string;
|
|
11607
|
+
}[] | undefined;
|
|
11608
|
+
error?: string | undefined;
|
|
11609
|
+
}[];
|
|
11610
|
+
}>;
|
|
11611
|
+
/** `POST /commerce-flows/{id}/draft/replay` — 실제 주문상품의 실행 기록을 초안으로 다시 돌려 갈라지는 곳을 찾는다 */
|
|
11612
|
+
replay: (flowId: string, body: ReplayFlowRequest) => Promise<{
|
|
11613
|
+
orderItemId: string;
|
|
11614
|
+
compiled: boolean;
|
|
11615
|
+
errors: {
|
|
11616
|
+
code: string;
|
|
11617
|
+
message: string;
|
|
11618
|
+
nodeId?: string | undefined;
|
|
11619
|
+
edgeId?: string | undefined;
|
|
11620
|
+
}[];
|
|
11621
|
+
steps: {
|
|
11622
|
+
runId: string;
|
|
11623
|
+
trigger: Record<string, unknown>;
|
|
11624
|
+
recordedState: string;
|
|
11625
|
+
simulatedState: string | null;
|
|
11626
|
+
match: boolean;
|
|
11627
|
+
error?: string | undefined;
|
|
11628
|
+
}[];
|
|
11629
|
+
divergedAt: number | null;
|
|
11630
|
+
unsupported: number;
|
|
11631
|
+
}>;
|
|
11632
|
+
/** `GET /flow-node-types` — 쓸 수 있는 노드·블록 종류와 설정 형식(JSON Schema) */
|
|
11633
|
+
nodeTypes: () => Promise<{
|
|
11634
|
+
nodes: {
|
|
11635
|
+
type: string;
|
|
11636
|
+
version: number;
|
|
11637
|
+
kind: string;
|
|
11638
|
+
outputs: string[] | null;
|
|
11639
|
+
configSchema: Record<string, unknown>;
|
|
11640
|
+
}[];
|
|
11641
|
+
blocks: {
|
|
11642
|
+
type: string;
|
|
11643
|
+
version: number;
|
|
11644
|
+
effect: string;
|
|
11645
|
+
configSchema: Record<string, unknown>;
|
|
11646
|
+
}[];
|
|
11647
|
+
}>;
|
|
11179
11648
|
};
|
|
11180
11649
|
carriers: {
|
|
11181
11650
|
list: () => Promise<{
|
|
@@ -11194,7 +11663,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11194
11663
|
claimId: string;
|
|
11195
11664
|
claimNo: string | null;
|
|
11196
11665
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
11197
|
-
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
11666
|
+
status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
|
|
11198
11667
|
orderId: string;
|
|
11199
11668
|
orderItemId: string;
|
|
11200
11669
|
productName: string;
|
|
@@ -11234,7 +11703,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11234
11703
|
claimId: string;
|
|
11235
11704
|
claimNo: string | null;
|
|
11236
11705
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
11237
|
-
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
11706
|
+
status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
|
|
11238
11707
|
orderId: string;
|
|
11239
11708
|
orderItemId: string;
|
|
11240
11709
|
productName: string;
|
|
@@ -11269,7 +11738,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11269
11738
|
address2: string | null;
|
|
11270
11739
|
} | null;
|
|
11271
11740
|
histories?: {
|
|
11272
|
-
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
11741
|
+
status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
|
|
11273
11742
|
actor: "SYSTEM" | "BUYER" | "SELLER";
|
|
11274
11743
|
occurredAt: string;
|
|
11275
11744
|
}[] | undefined;
|
|
@@ -11303,7 +11772,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
11303
11772
|
claimId: string;
|
|
11304
11773
|
claimNo: string | null;
|
|
11305
11774
|
type: "RETURN" | "EXCHANGE" | "CANCEL";
|
|
11306
|
-
status: "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "
|
|
11775
|
+
status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
|
|
11307
11776
|
orderId: string;
|
|
11308
11777
|
orderItemId: string;
|
|
11309
11778
|
productName: string;
|
|
@@ -13259,7 +13728,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13259
13728
|
list: () => Promise<{
|
|
13260
13729
|
webhookId: string;
|
|
13261
13730
|
url: string;
|
|
13262
|
-
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")[];
|
|
13731
|
+
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")[];
|
|
13263
13732
|
status: "SUSPENDED" | "ACTIVE";
|
|
13264
13733
|
secretPrefix: string;
|
|
13265
13734
|
suspendedAt: string | null;
|
|
@@ -13269,7 +13738,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13269
13738
|
create: (body: WebhookRequest) => Promise<{
|
|
13270
13739
|
webhookId: string;
|
|
13271
13740
|
url: string;
|
|
13272
|
-
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")[];
|
|
13741
|
+
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")[];
|
|
13273
13742
|
status: "SUSPENDED" | "ACTIVE";
|
|
13274
13743
|
secretPrefix: string;
|
|
13275
13744
|
suspendedAt: string | null;
|
|
@@ -13279,7 +13748,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13279
13748
|
get: (webhookId: string) => Promise<{
|
|
13280
13749
|
webhookId: string;
|
|
13281
13750
|
url: string;
|
|
13282
|
-
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")[];
|
|
13751
|
+
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")[];
|
|
13283
13752
|
status: "SUSPENDED" | "ACTIVE";
|
|
13284
13753
|
secretPrefix: string;
|
|
13285
13754
|
suspendedAt: string | null;
|
|
@@ -13289,7 +13758,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13289
13758
|
update: (webhookId: string, body: WebhookRequest) => Promise<{
|
|
13290
13759
|
webhookId: string;
|
|
13291
13760
|
url: string;
|
|
13292
|
-
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")[];
|
|
13761
|
+
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")[];
|
|
13293
13762
|
status: "SUSPENDED" | "ACTIVE";
|
|
13294
13763
|
secretPrefix: string;
|
|
13295
13764
|
suspendedAt: string | null;
|
|
@@ -13304,7 +13773,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13304
13773
|
resume: (webhookId: string) => Promise<{
|
|
13305
13774
|
webhookId: string;
|
|
13306
13775
|
url: string;
|
|
13307
|
-
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")[];
|
|
13776
|
+
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")[];
|
|
13308
13777
|
status: "SUSPENDED" | "ACTIVE";
|
|
13309
13778
|
secretPrefix: string;
|
|
13310
13779
|
suspendedAt: string | null;
|
|
@@ -13314,7 +13783,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13314
13783
|
listDeliveries: (webhookId: string, params?: WebhookDeliveryListParams) => Promise<{
|
|
13315
13784
|
deliveryId: string;
|
|
13316
13785
|
eventId: string;
|
|
13317
|
-
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";
|
|
13786
|
+
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";
|
|
13318
13787
|
url: string;
|
|
13319
13788
|
status: "PENDING" | "PENDING_RETRY" | "SUCCESS" | "FAILED";
|
|
13320
13789
|
responseStatusCode: number | null;
|
|
@@ -13341,7 +13810,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13341
13810
|
getDelivery: (webhookId: string, deliveryId: string) => Promise<{
|
|
13342
13811
|
deliveryId: string;
|
|
13343
13812
|
eventId: string;
|
|
13344
|
-
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";
|
|
13813
|
+
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";
|
|
13345
13814
|
url: string;
|
|
13346
13815
|
status: "PENDING" | "PENDING_RETRY" | "SUCCESS" | "FAILED";
|
|
13347
13816
|
responseStatusCode: number | null;
|
|
@@ -13376,7 +13845,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
13376
13845
|
redeliver: (webhookId: string, deliveryId: string) => Promise<{
|
|
13377
13846
|
deliveryId: string;
|
|
13378
13847
|
eventId: string;
|
|
13379
|
-
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";
|
|
13848
|
+
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";
|
|
13380
13849
|
url: string;
|
|
13381
13850
|
status: "PENDING" | "PENDING_RETRY" | "SUCCESS" | "FAILED";
|
|
13382
13851
|
responseStatusCode: number | null;
|
|
@@ -15815,7 +16284,6 @@ export declare const STORE_SCOPE_RESOURCES: {
|
|
|
15815
16284
|
export type StoreScopeResource = keyof typeof STORE_SCOPE_RESOURCES;
|
|
15816
16285
|
export declare const storeScopeResourceSchema: z.ZodEnum<{
|
|
15817
16286
|
category: "category";
|
|
15818
|
-
member: "member";
|
|
15819
16287
|
flow: "flow";
|
|
15820
16288
|
analytics: "analytics";
|
|
15821
16289
|
product: "product";
|
|
@@ -15826,6 +16294,7 @@ export declare const storeScopeResourceSchema: z.ZodEnum<{
|
|
|
15826
16294
|
settlement: "settlement";
|
|
15827
16295
|
webhook: "webhook";
|
|
15828
16296
|
store: "store";
|
|
16297
|
+
member: "member";
|
|
15829
16298
|
customer: "customer";
|
|
15830
16299
|
audit: "audit";
|
|
15831
16300
|
promotion: "promotion";
|
|
@@ -16579,13 +17048,13 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
|
|
|
16579
17048
|
}>;
|
|
16580
17049
|
status: z.ZodEnum<{
|
|
16581
17050
|
REJECTED: "REJECTED";
|
|
17051
|
+
COMPLETED: "COMPLETED";
|
|
16582
17052
|
REQUESTED: "REQUESTED";
|
|
16583
17053
|
HELD: "HELD";
|
|
16584
17054
|
COLLECTING: "COLLECTING";
|
|
16585
17055
|
COLLECTED: "COLLECTED";
|
|
16586
17056
|
REDELIVERING: "REDELIVERING";
|
|
16587
17057
|
APPROVED: "APPROVED";
|
|
16588
|
-
COMPLETED: "COMPLETED";
|
|
16589
17058
|
WITHDRAWN: "WITHDRAWN";
|
|
16590
17059
|
}>;
|
|
16591
17060
|
quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -16810,13 +17279,13 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
|
|
|
16810
17279
|
}>;
|
|
16811
17280
|
status: z.ZodEnum<{
|
|
16812
17281
|
REJECTED: "REJECTED";
|
|
17282
|
+
COMPLETED: "COMPLETED";
|
|
16813
17283
|
REQUESTED: "REQUESTED";
|
|
16814
17284
|
HELD: "HELD";
|
|
16815
17285
|
COLLECTING: "COLLECTING";
|
|
16816
17286
|
COLLECTED: "COLLECTED";
|
|
16817
17287
|
REDELIVERING: "REDELIVERING";
|
|
16818
17288
|
APPROVED: "APPROVED";
|
|
16819
|
-
COMPLETED: "COMPLETED";
|
|
16820
17289
|
WITHDRAWN: "WITHDRAWN";
|
|
16821
17290
|
}>;
|
|
16822
17291
|
quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -16895,6 +17364,39 @@ export declare const flowNotificationWebhookEventSchema: z.ZodObject<{
|
|
|
16895
17364
|
storeId: z.ZodString;
|
|
16896
17365
|
sequence: z.ZodOptional<z.ZodNumber>;
|
|
16897
17366
|
}, z.core.$strip>;
|
|
17367
|
+
/**
|
|
17368
|
+
* 흐름 상태 변경(이슈 #115) — 주문상품의 흐름 상태(노드)가 바뀔 때마다 온다. 공개 상태(`ORDER.*`)가 같아도 상점 흐름의 단계가 바뀌면 온다
|
|
17369
|
+
* (시안 확인 → 제작중). 묶음 진행이면 `orderItemIds`가 여럿이다. 개인정보는 싣지 않는다
|
|
17370
|
+
*/
|
|
17371
|
+
export declare const flowStateChangedWebhookEventDataSchema: z.ZodObject<{
|
|
17372
|
+
orderId: z.ZodString;
|
|
17373
|
+
orderItemIds: z.ZodArray<z.ZodString>;
|
|
17374
|
+
flowId: z.ZodString;
|
|
17375
|
+
flowVersion: z.ZodNumber;
|
|
17376
|
+
from: z.ZodNullable<z.ZodString>;
|
|
17377
|
+
to: z.ZodString;
|
|
17378
|
+
label: z.ZodString;
|
|
17379
|
+
coreStatus: z.ZodNullable<z.ZodString>;
|
|
17380
|
+
changedAt: z.ZodString;
|
|
17381
|
+
}, z.core.$strip>;
|
|
17382
|
+
export declare const flowStateChangedWebhookEventSchema: z.ZodObject<{
|
|
17383
|
+
type: z.ZodLiteral<"ORDER.FLOW_STATE_CHANGED">;
|
|
17384
|
+
data: z.ZodObject<{
|
|
17385
|
+
orderId: z.ZodString;
|
|
17386
|
+
orderItemIds: z.ZodArray<z.ZodString>;
|
|
17387
|
+
flowId: z.ZodString;
|
|
17388
|
+
flowVersion: z.ZodNumber;
|
|
17389
|
+
from: z.ZodNullable<z.ZodString>;
|
|
17390
|
+
to: z.ZodString;
|
|
17391
|
+
label: z.ZodString;
|
|
17392
|
+
coreStatus: z.ZodNullable<z.ZodString>;
|
|
17393
|
+
changedAt: z.ZodString;
|
|
17394
|
+
}, z.core.$strip>;
|
|
17395
|
+
id: z.ZodString;
|
|
17396
|
+
createdAt: z.ZodString;
|
|
17397
|
+
storeId: z.ZodString;
|
|
17398
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
17399
|
+
}, z.core.$strip>;
|
|
16898
17400
|
/** 웹훅 요청 본문. `type`으로 판별하며 `data` 형태가 타입별로 다르다 */
|
|
16899
17401
|
export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
16900
17402
|
type: z.ZodEnum<{
|
|
@@ -17088,13 +17590,13 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
17088
17590
|
}>;
|
|
17089
17591
|
status: z.ZodEnum<{
|
|
17090
17592
|
REJECTED: "REJECTED";
|
|
17593
|
+
COMPLETED: "COMPLETED";
|
|
17091
17594
|
REQUESTED: "REQUESTED";
|
|
17092
17595
|
HELD: "HELD";
|
|
17093
17596
|
COLLECTING: "COLLECTING";
|
|
17094
17597
|
COLLECTED: "COLLECTED";
|
|
17095
17598
|
REDELIVERING: "REDELIVERING";
|
|
17096
17599
|
APPROVED: "APPROVED";
|
|
17097
|
-
COMPLETED: "COMPLETED";
|
|
17098
17600
|
WITHDRAWN: "WITHDRAWN";
|
|
17099
17601
|
}>;
|
|
17100
17602
|
quantity: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -17156,6 +17658,23 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
17156
17658
|
createdAt: z.ZodString;
|
|
17157
17659
|
storeId: z.ZodString;
|
|
17158
17660
|
sequence: z.ZodOptional<z.ZodNumber>;
|
|
17661
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
17662
|
+
type: z.ZodLiteral<"ORDER.FLOW_STATE_CHANGED">;
|
|
17663
|
+
data: z.ZodObject<{
|
|
17664
|
+
orderId: z.ZodString;
|
|
17665
|
+
orderItemIds: z.ZodArray<z.ZodString>;
|
|
17666
|
+
flowId: z.ZodString;
|
|
17667
|
+
flowVersion: z.ZodNumber;
|
|
17668
|
+
from: z.ZodNullable<z.ZodString>;
|
|
17669
|
+
to: z.ZodString;
|
|
17670
|
+
label: z.ZodString;
|
|
17671
|
+
coreStatus: z.ZodNullable<z.ZodString>;
|
|
17672
|
+
changedAt: z.ZodString;
|
|
17673
|
+
}, z.core.$strip>;
|
|
17674
|
+
id: z.ZodString;
|
|
17675
|
+
createdAt: z.ZodString;
|
|
17676
|
+
storeId: z.ZodString;
|
|
17677
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
17159
17678
|
}, z.core.$strip>], "type">;
|
|
17160
17679
|
export type WebhookEvent = z.infer<typeof webhookEventSchema>;
|
|
17161
17680
|
export type WebhookEventType = WebhookEvent["type"];
|