@sayren/store-sdk 0.30.5 → 0.30.7

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 CHANGED
@@ -165,9 +165,9 @@ 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
- APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
169
168
  DENIED: "DENIED";
170
169
  ALLOW: "ALLOW";
170
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
171
171
  }>;
172
172
  export type AgentPolicyDecision = z.infer<typeof agentPolicyDecisionSchema>;
173
173
  export declare const writePreviewSchema: z.ZodObject<{
@@ -191,9 +191,9 @@ export type WritePreview = z.infer<typeof writePreviewSchema>;
191
191
  export declare const writeDryRunResultSchema: z.ZodObject<{
192
192
  dryRun: z.ZodLiteral<true>;
193
193
  decision: z.ZodEnum<{
194
- APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
195
194
  DENIED: "DENIED";
196
195
  ALLOW: "ALLOW";
196
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
197
197
  }>;
198
198
  reason: z.ZodNullable<z.ZodString>;
199
199
  preview: z.ZodObject<{
@@ -215,11 +215,11 @@ export declare const writeDryRunResultSchema: z.ZodObject<{
215
215
  }, z.core.$strip>;
216
216
  export type WriteDryRunResult = z.infer<typeof writeDryRunResultSchema>;
217
217
  export declare const approvalStatusSchema: z.ZodEnum<{
218
- UNKNOWN: "UNKNOWN";
219
218
  PENDING: "PENDING";
220
219
  FAILED: "FAILED";
221
220
  SUCCEEDED: "SUCCEEDED";
222
221
  EXECUTING: "EXECUTING";
222
+ UNKNOWN: "UNKNOWN";
223
223
  REJECTED: "REJECTED";
224
224
  EXPIRED: "EXPIRED";
225
225
  }>;
@@ -227,11 +227,11 @@ export type ApprovalStatus = z.infer<typeof approvalStatusSchema>;
227
227
  export declare const approvalRequestSchema: z.ZodObject<{
228
228
  approvalId: z.ZodString;
229
229
  status: z.ZodEnum<{
230
- UNKNOWN: "UNKNOWN";
231
230
  PENDING: "PENDING";
232
231
  FAILED: "FAILED";
233
232
  SUCCEEDED: "SUCCEEDED";
234
233
  EXECUTING: "EXECUTING";
234
+ UNKNOWN: "UNKNOWN";
235
235
  REJECTED: "REJECTED";
236
236
  EXPIRED: "EXPIRED";
237
237
  }>;
@@ -291,11 +291,11 @@ export declare const approvalRequestSchema: z.ZodObject<{
291
291
  export type ApprovalRequest = z.infer<typeof approvalRequestSchema>;
292
292
  export declare const approvalListQuerySchema: z.ZodObject<{
293
293
  status: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodEnum<{
294
- UNKNOWN: "UNKNOWN";
295
294
  PENDING: "PENDING";
296
295
  FAILED: "FAILED";
297
296
  SUCCEEDED: "SUCCEEDED";
298
297
  EXECUTING: "EXECUTING";
298
+ UNKNOWN: "UNKNOWN";
299
299
  REJECTED: "REJECTED";
300
300
  EXPIRED: "EXPIRED";
301
301
  }>>>>;
@@ -310,11 +310,11 @@ export declare const approvalPageSchema: z.ZodObject<{
310
310
  items: z.ZodArray<z.ZodObject<{
311
311
  approvalId: z.ZodString;
312
312
  status: z.ZodEnum<{
313
- UNKNOWN: "UNKNOWN";
314
313
  PENDING: "PENDING";
315
314
  FAILED: "FAILED";
316
315
  SUCCEEDED: "SUCCEEDED";
317
316
  EXECUTING: "EXECUTING";
317
+ UNKNOWN: "UNKNOWN";
318
318
  REJECTED: "REJECTED";
319
319
  EXPIRED: "EXPIRED";
320
320
  }>;
@@ -454,11 +454,11 @@ export declare const analyticsTotalsSchema: z.ZodObject<{
454
454
  export type AnalyticsTotals = z.infer<typeof analyticsTotalsSchema>;
455
455
  export declare const analyticsFunnelStepSchema: z.ZodObject<{
456
456
  step: z.ZodEnum<{
457
+ PURCHASE: "PURCHASE";
457
458
  SESSION: "SESSION";
458
459
  PRODUCT_VIEW: "PRODUCT_VIEW";
459
460
  ADD_TO_CART: "ADD_TO_CART";
460
461
  BEGIN_CHECKOUT: "BEGIN_CHECKOUT";
461
- PURCHASE: "PURCHASE";
462
462
  }>;
463
463
  sessions: z.ZodNumber;
464
464
  rateFromPrevious: z.ZodNullable<z.ZodNumber>;
@@ -483,11 +483,11 @@ export declare const analyticsOverviewSchema: z.ZodObject<{
483
483
  }, z.core.$strip>;
484
484
  funnel: z.ZodArray<z.ZodObject<{
485
485
  step: z.ZodEnum<{
486
+ PURCHASE: "PURCHASE";
486
487
  SESSION: "SESSION";
487
488
  PRODUCT_VIEW: "PRODUCT_VIEW";
488
489
  ADD_TO_CART: "ADD_TO_CART";
489
490
  BEGIN_CHECKOUT: "BEGIN_CHECKOUT";
490
- PURCHASE: "PURCHASE";
491
491
  }>;
492
492
  sessions: z.ZodNumber;
493
493
  rateFromPrevious: z.ZodNullable<z.ZodNumber>;
@@ -587,20 +587,20 @@ export declare const analyticsProductsSchema: z.ZodObject<{
587
587
  }, z.core.$strip>;
588
588
  export type AnalyticsProducts = z.infer<typeof analyticsProductsSchema>;
589
589
  export declare const analyticsChannelSchema: z.ZodEnum<{
590
+ PAID: "PAID";
590
591
  DIRECT: "DIRECT";
592
+ CAMPAIGN: "CAMPAIGN";
593
+ UNKNOWN: "UNKNOWN";
591
594
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
592
595
  SOCIAL: "SOCIAL";
593
- PAID: "PAID";
594
596
  EMAIL: "EMAIL";
595
- CAMPAIGN: "CAMPAIGN";
596
597
  REFERRAL: "REFERRAL";
597
- UNKNOWN: "UNKNOWN";
598
598
  }>;
599
599
  export type AnalyticsChannel = z.infer<typeof analyticsChannelSchema>;
600
600
  export declare const analyticsSourceGroupBySchema: z.ZodEnum<{
601
- CAMPAIGN: "CAMPAIGN";
602
601
  CHANNEL: "CHANNEL";
603
602
  SOURCE: "SOURCE";
603
+ CAMPAIGN: "CAMPAIGN";
604
604
  DEVICE: "DEVICE";
605
605
  }>;
606
606
  export type AnalyticsSourceGroupBy = z.infer<typeof analyticsSourceGroupBySchema>;
@@ -612,23 +612,23 @@ export declare const analyticsSourcesQuerySchema: z.ZodObject<{
612
612
  false: "false";
613
613
  }>>;
614
614
  groupBy: z.ZodOptional<z.ZodEnum<{
615
- CAMPAIGN: "CAMPAIGN";
616
615
  CHANNEL: "CHANNEL";
617
616
  SOURCE: "SOURCE";
617
+ CAMPAIGN: "CAMPAIGN";
618
618
  DEVICE: "DEVICE";
619
619
  }>>;
620
620
  }, z.core.$strip>;
621
621
  export type AnalyticsSourcesParams = z.infer<typeof analyticsSourcesQuerySchema>;
622
622
  export declare const analyticsSourceRowSchema: z.ZodObject<{
623
623
  channel: z.ZodNullable<z.ZodEnum<{
624
+ PAID: "PAID";
624
625
  DIRECT: "DIRECT";
626
+ CAMPAIGN: "CAMPAIGN";
627
+ UNKNOWN: "UNKNOWN";
625
628
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
626
629
  SOCIAL: "SOCIAL";
627
- PAID: "PAID";
628
630
  EMAIL: "EMAIL";
629
- CAMPAIGN: "CAMPAIGN";
630
631
  REFERRAL: "REFERRAL";
631
- UNKNOWN: "UNKNOWN";
632
632
  }>>;
633
633
  source: z.ZodNullable<z.ZodString>;
634
634
  medium: z.ZodNullable<z.ZodString>;
@@ -650,21 +650,21 @@ export declare const analyticsSourceRowSchema: z.ZodObject<{
650
650
  export type AnalyticsSourceRow = z.infer<typeof analyticsSourceRowSchema>;
651
651
  export declare const analyticsSourcesSchema: z.ZodObject<{
652
652
  groupBy: z.ZodEnum<{
653
- CAMPAIGN: "CAMPAIGN";
654
653
  CHANNEL: "CHANNEL";
655
654
  SOURCE: "SOURCE";
655
+ CAMPAIGN: "CAMPAIGN";
656
656
  DEVICE: "DEVICE";
657
657
  }>;
658
658
  rows: z.ZodArray<z.ZodObject<{
659
659
  channel: z.ZodNullable<z.ZodEnum<{
660
+ PAID: "PAID";
660
661
  DIRECT: "DIRECT";
662
+ CAMPAIGN: "CAMPAIGN";
663
+ UNKNOWN: "UNKNOWN";
661
664
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
662
665
  SOCIAL: "SOCIAL";
663
- PAID: "PAID";
664
666
  EMAIL: "EMAIL";
665
- CAMPAIGN: "CAMPAIGN";
666
667
  REFERRAL: "REFERRAL";
667
- UNKNOWN: "UNKNOWN";
668
668
  }>>;
669
669
  source: z.ZodNullable<z.ZodString>;
670
670
  medium: z.ZodNullable<z.ZodString>;
@@ -813,12 +813,12 @@ export declare const analyticsSearchSchema: z.ZodObject<{
813
813
  }, z.core.$strip>;
814
814
  export type AnalyticsSearch = z.infer<typeof analyticsSearchSchema>;
815
815
  export declare const analyticsCheckoutOutcomeSchema: z.ZodEnum<{
816
+ OTHER: "OTHER";
816
817
  COMPLETED: "COMPLETED";
817
818
  NOT_OPENED: "NOT_OPENED";
818
819
  USER_CANCELED: "USER_CANCELED";
819
820
  DECLINED: "DECLINED";
820
821
  PREPARE_FAILURE: "PREPARE_FAILURE";
821
- OTHER: "OTHER";
822
822
  IN_PROGRESS: "IN_PROGRESS";
823
823
  }>;
824
824
  export type AnalyticsCheckoutOutcome = z.infer<typeof analyticsCheckoutOutcomeSchema>;
@@ -826,12 +826,12 @@ export declare const analyticsCheckoutSchema: z.ZodObject<{
826
826
  sessions: z.ZodNumber;
827
827
  outcomes: z.ZodArray<z.ZodObject<{
828
828
  outcome: z.ZodEnum<{
829
+ OTHER: "OTHER";
829
830
  COMPLETED: "COMPLETED";
830
831
  NOT_OPENED: "NOT_OPENED";
831
832
  USER_CANCELED: "USER_CANCELED";
832
833
  DECLINED: "DECLINED";
833
834
  PREPARE_FAILURE: "PREPARE_FAILURE";
834
- OTHER: "OTHER";
835
835
  IN_PROGRESS: "IN_PROGRESS";
836
836
  }>;
837
837
  sessions: z.ZodNumber;
@@ -1276,8 +1276,8 @@ export declare const claimTypeSchema: z.ZodEnum<{
1276
1276
  }>;
1277
1277
  export type ClaimType = z.infer<typeof claimTypeSchema>;
1278
1278
  export declare const claimStatusSchema: z.ZodEnum<{
1279
- COMPLETED: "COMPLETED";
1280
1279
  REJECTED: "REJECTED";
1280
+ COMPLETED: "COMPLETED";
1281
1281
  REQUESTED: "REQUESTED";
1282
1282
  HELD: "HELD";
1283
1283
  COLLECTING: "COLLECTING";
@@ -1321,8 +1321,8 @@ export declare const claimSchema: z.ZodObject<{
1321
1321
  CANCEL: "CANCEL";
1322
1322
  }>;
1323
1323
  status: z.ZodEnum<{
1324
- COMPLETED: "COMPLETED";
1325
1324
  REJECTED: "REJECTED";
1325
+ COMPLETED: "COMPLETED";
1326
1326
  REQUESTED: "REQUESTED";
1327
1327
  HELD: "HELD";
1328
1328
  COLLECTING: "COLLECTING";
@@ -1411,8 +1411,8 @@ export declare const claimDetailSchema: z.ZodObject<{
1411
1411
  CANCEL: "CANCEL";
1412
1412
  }>;
1413
1413
  status: z.ZodEnum<{
1414
- COMPLETED: "COMPLETED";
1415
1414
  REJECTED: "REJECTED";
1415
+ COMPLETED: "COMPLETED";
1416
1416
  REQUESTED: "REQUESTED";
1417
1417
  HELD: "HELD";
1418
1418
  COLLECTING: "COLLECTING";
@@ -1469,8 +1469,8 @@ export declare const claimDetailSchema: z.ZodObject<{
1469
1469
  }, z.core.$strip>>;
1470
1470
  histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
1471
1471
  status: z.ZodEnum<{
1472
- COMPLETED: "COMPLETED";
1473
1472
  REJECTED: "REJECTED";
1473
+ COMPLETED: "COMPLETED";
1474
1474
  REQUESTED: "REQUESTED";
1475
1475
  HELD: "HELD";
1476
1476
  COLLECTING: "COLLECTING";
@@ -2077,6 +2077,10 @@ export declare const flowActionSchema: z.ZodObject<{
2077
2077
  }, z.core.$strip>>;
2078
2078
  }, z.core.$strip>>>;
2079
2079
  partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
2080
+ attachments: z.ZodOptional<z.ZodEnum<{
2081
+ REQUIRED: "REQUIRED";
2082
+ OPTIONAL: "OPTIONAL";
2083
+ }>>;
2080
2084
  }, z.core.$strip>;
2081
2085
  export type FlowAction = z.infer<typeof flowActionSchema>;
2082
2086
  /** 커스텀 필드 값 — 문자열(날짜·일시는 ISO 8601)·숫자·참거짓·null, 수량 단위 필드는 문자열 배열 */
@@ -2096,8 +2100,8 @@ export declare const flowStateSchema: z.ZodObject<{
2096
2100
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
2097
2101
  }>>;
2098
2102
  claimStatus: z.ZodOptional<z.ZodEnum<{
2099
- COMPLETED: "COMPLETED";
2100
2103
  REJECTED: "REJECTED";
2104
+ COMPLETED: "COMPLETED";
2101
2105
  REQUESTED: "REQUESTED";
2102
2106
  HELD: "HELD";
2103
2107
  COLLECTING: "COLLECTING";
@@ -2118,6 +2122,7 @@ export declare const flowStateSchema: z.ZodObject<{
2118
2122
  label: z.ZodString;
2119
2123
  type: z.ZodString;
2120
2124
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
2125
+ display: z.ZodOptional<z.ZodString>;
2121
2126
  }, z.core.$strip>>;
2122
2127
  }, z.core.$strip>>;
2123
2128
  progress: z.ZodOptional<z.ZodBoolean>;
@@ -2144,8 +2149,8 @@ export declare const orderItemFlowSchema: z.ZodObject<{
2144
2149
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
2145
2150
  }>>;
2146
2151
  claimStatus: z.ZodOptional<z.ZodEnum<{
2147
- COMPLETED: "COMPLETED";
2148
2152
  REJECTED: "REJECTED";
2153
+ COMPLETED: "COMPLETED";
2149
2154
  REQUESTED: "REQUESTED";
2150
2155
  HELD: "HELD";
2151
2156
  COLLECTING: "COLLECTING";
@@ -2166,6 +2171,7 @@ export declare const orderItemFlowSchema: z.ZodObject<{
2166
2171
  label: z.ZodString;
2167
2172
  type: z.ZodString;
2168
2173
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
2174
+ display: z.ZodOptional<z.ZodString>;
2169
2175
  }, z.core.$strip>>;
2170
2176
  }, z.core.$strip>>;
2171
2177
  progress: z.ZodOptional<z.ZodBoolean>;
@@ -2204,6 +2210,10 @@ export declare const orderItemFlowSchema: z.ZodObject<{
2204
2210
  }, z.core.$strip>>;
2205
2211
  }, z.core.$strip>>>;
2206
2212
  partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
2213
+ attachments: z.ZodOptional<z.ZodEnum<{
2214
+ REQUIRED: "REQUIRED";
2215
+ OPTIONAL: "OPTIONAL";
2216
+ }>>;
2207
2217
  }, z.core.$strip>>;
2208
2218
  timers: z.ZodArray<z.ZodObject<{
2209
2219
  key: z.ZodString;
@@ -2239,8 +2249,8 @@ export declare const orderItemFlowSchema: z.ZodObject<{
2239
2249
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
2240
2250
  }>>;
2241
2251
  claimStatus: z.ZodOptional<z.ZodEnum<{
2242
- COMPLETED: "COMPLETED";
2243
2252
  REJECTED: "REJECTED";
2253
+ COMPLETED: "COMPLETED";
2244
2254
  REQUESTED: "REQUESTED";
2245
2255
  HELD: "HELD";
2246
2256
  COLLECTING: "COLLECTING";
@@ -2261,6 +2271,7 @@ export declare const orderItemFlowSchema: z.ZodObject<{
2261
2271
  label: z.ZodString;
2262
2272
  type: z.ZodString;
2263
2273
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
2274
+ display: z.ZodOptional<z.ZodString>;
2264
2275
  }, z.core.$strip>>;
2265
2276
  }, z.core.$strip>>;
2266
2277
  progress: z.ZodOptional<z.ZodBoolean>;
@@ -2330,8 +2341,8 @@ export declare const flowActionResultSchema: z.ZodObject<{
2330
2341
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
2331
2342
  }>>;
2332
2343
  claimStatus: z.ZodOptional<z.ZodEnum<{
2333
- COMPLETED: "COMPLETED";
2334
2344
  REJECTED: "REJECTED";
2345
+ COMPLETED: "COMPLETED";
2335
2346
  REQUESTED: "REQUESTED";
2336
2347
  HELD: "HELD";
2337
2348
  COLLECTING: "COLLECTING";
@@ -2352,6 +2363,7 @@ export declare const flowActionResultSchema: z.ZodObject<{
2352
2363
  label: z.ZodString;
2353
2364
  type: z.ZodString;
2354
2365
  value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
2366
+ display: z.ZodOptional<z.ZodString>;
2355
2367
  }, z.core.$strip>>;
2356
2368
  }, z.core.$strip>>;
2357
2369
  progress: z.ZodOptional<z.ZodBoolean>;
@@ -2390,6 +2402,10 @@ export declare const flowActionResultSchema: z.ZodObject<{
2390
2402
  }, z.core.$strip>>;
2391
2403
  }, z.core.$strip>>>;
2392
2404
  partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
2405
+ attachments: z.ZodOptional<z.ZodEnum<{
2406
+ REQUIRED: "REQUIRED";
2407
+ OPTIONAL: "OPTIONAL";
2408
+ }>>;
2393
2409
  }, z.core.$strip>>;
2394
2410
  affectedOrderItemIds: z.ZodArray<z.ZodString>;
2395
2411
  }, z.core.$strip>;
@@ -2408,6 +2424,23 @@ export declare const flowPresetSummarySchema: z.ZodObject<{
2408
2424
  variables: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2409
2425
  }, z.core.$strip>;
2410
2426
  export type FlowPresetSummary = z.infer<typeof flowPresetSummarySchema>;
2427
+ /** 프리셋 하나(#115) — 흐름 만들기가 고른 프리셋을 저장하지 않고 편집기에 띄운다 */
2428
+ export declare const flowPresetDetailSchema: z.ZodObject<{
2429
+ key: z.ZodString;
2430
+ presetVersion: z.ZodNumber;
2431
+ name: z.ZodString;
2432
+ description: z.ZodString;
2433
+ availability: z.ZodEnum<{
2434
+ AVAILABLE: "AVAILABLE";
2435
+ BLOCKED: "BLOCKED";
2436
+ }>;
2437
+ dependsOn: z.ZodArray<z.ZodString>;
2438
+ requires: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2439
+ variables: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2440
+ graph: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2441
+ definition: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2442
+ }, z.core.$strip>;
2443
+ export type FlowPresetDetail = z.infer<typeof flowPresetDetailSchema>;
2411
2444
  export declare const commerceFlowSummarySchema: z.ZodObject<{
2412
2445
  flowId: z.ZodString;
2413
2446
  key: z.ZodString;
@@ -2420,6 +2453,10 @@ export declare const commerceFlowSummarySchema: z.ZodObject<{
2420
2453
  presetKey: z.ZodNullable<z.ZodString>;
2421
2454
  presetVersion: z.ZodNullable<z.ZodNumber>;
2422
2455
  activeVersion: z.ZodNullable<z.ZodNumber>;
2456
+ defaultFor: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2457
+ SHIPPING: "SHIPPING";
2458
+ MANUAL: "MANUAL";
2459
+ }>>>>;
2423
2460
  archivedAt: z.ZodNullable<z.ZodString>;
2424
2461
  createdAt: z.ZodString;
2425
2462
  updatedAt: z.ZodString;
@@ -2450,6 +2487,10 @@ export declare const commerceFlowSchema: z.ZodObject<{
2450
2487
  presetKey: z.ZodNullable<z.ZodString>;
2451
2488
  presetVersion: z.ZodNullable<z.ZodNumber>;
2452
2489
  activeVersion: z.ZodNullable<z.ZodNumber>;
2490
+ defaultFor: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2491
+ SHIPPING: "SHIPPING";
2492
+ MANUAL: "MANUAL";
2493
+ }>>>>;
2453
2494
  archivedAt: z.ZodNullable<z.ZodString>;
2454
2495
  createdAt: z.ZodString;
2455
2496
  updatedAt: z.ZodString;
@@ -2513,6 +2554,8 @@ export declare const createCommerceFlowRequestSchema: z.ZodObject<{
2513
2554
  key: z.ZodString;
2514
2555
  name: z.ZodOptional<z.ZodString>;
2515
2556
  presetKey: z.ZodOptional<z.ZodString>;
2557
+ graph: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2558
+ definition: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2516
2559
  variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2517
2560
  }, z.core.$strip>;
2518
2561
  export type CreateCommerceFlowRequest = z.infer<typeof createCommerceFlowRequestSchema>;
@@ -2573,8 +2616,8 @@ export declare const orderFlowActionResultSchema: z.ZodObject<{
2573
2616
  results: z.ZodArray<z.ZodObject<{
2574
2617
  orderItemId: z.ZodString;
2575
2618
  status: z.ZodEnum<{
2576
- COMPLETED: "COMPLETED";
2577
2619
  FAILED: "FAILED";
2620
+ COMPLETED: "COMPLETED";
2578
2621
  SKIPPED: "SKIPPED";
2579
2622
  }>;
2580
2623
  reason: z.ZodOptional<z.ZodString>;
@@ -3313,10 +3356,10 @@ export type CustomerOrder = z.infer<typeof customerOrderSchema>;
3313
3356
  /** `POST /v1/customers/{id}/withdraw` 본문 */
3314
3357
  export declare const withdrawCustomerRequestSchema: z.ZodObject<{
3315
3358
  reason: z.ZodEnum<{
3316
- OTHER: "OTHER";
3317
3359
  BUYER_REQUEST: "BUYER_REQUEST";
3318
3360
  DORMANT: "DORMANT";
3319
3361
  ABUSE: "ABUSE";
3362
+ OTHER: "OTHER";
3320
3363
  }>;
3321
3364
  memo: z.ZodOptional<z.ZodString>;
3322
3365
  }, z.core.$strip>;
@@ -3383,8 +3426,8 @@ export declare function fulfillmentRuleOf(type: string | null | undefined): Fulf
3383
3426
  */
3384
3427
  export declare const FULFILLMENT_METHODS: readonly ["CARRIER", "DIRECT", "PICKUP", "PROVIDED"];
3385
3428
  export declare const fulfillmentMethodSchema: z.ZodEnum<{
3386
- DIRECT: "DIRECT";
3387
3429
  CARRIER: "CARRIER";
3430
+ DIRECT: "DIRECT";
3388
3431
  PICKUP: "PICKUP";
3389
3432
  PROVIDED: "PROVIDED";
3390
3433
  }>;
@@ -3428,8 +3471,8 @@ export declare function requiresCollection(type: string | null | undefined): boo
3428
3471
  export declare const NO_SHIPPING_BUNDLE_KEY = "none";
3429
3472
  /** 배송비 유형 — 무료·유료·조건부 무료 */
3430
3473
  export declare const deliveryTypeSchema: z.ZodEnum<{
3431
- PAID: "PAID";
3432
3474
  FREE: "FREE";
3475
+ PAID: "PAID";
3433
3476
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
3434
3477
  }>;
3435
3478
  export type DeliveryType = z.infer<typeof deliveryTypeSchema>;
@@ -3440,8 +3483,8 @@ export declare const productFulfillmentCreateSchema: z.ZodDiscriminatedUnion<[z.
3440
3483
  type: z.ZodLiteral<"SHIPPING">;
3441
3484
  shipping: z.ZodOptional<z.ZodObject<{
3442
3485
  deliveryType: z.ZodDefault<z.ZodEnum<{
3443
- PAID: "PAID";
3444
3486
  FREE: "FREE";
3487
+ PAID: "PAID";
3445
3488
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
3446
3489
  }>>;
3447
3490
  deliveryFee: z.ZodOptional<z.ZodNumber>;
@@ -3450,16 +3493,16 @@ export declare const productFulfillmentCreateSchema: z.ZodDiscriminatedUnion<[z.
3450
3493
  returnAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3451
3494
  }, z.core.$strict>>;
3452
3495
  methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3453
- DIRECT: "DIRECT";
3454
3496
  CARRIER: "CARRIER";
3497
+ DIRECT: "DIRECT";
3455
3498
  PICKUP: "PICKUP";
3456
3499
  PROVIDED: "PROVIDED";
3457
3500
  }>>>;
3458
3501
  }, z.core.$strict>, z.ZodObject<{
3459
3502
  type: z.ZodLiteral<"MANUAL">;
3460
3503
  methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3461
- DIRECT: "DIRECT";
3462
3504
  CARRIER: "CARRIER";
3505
+ DIRECT: "DIRECT";
3463
3506
  PICKUP: "PICKUP";
3464
3507
  PROVIDED: "PROVIDED";
3465
3508
  }>>>;
@@ -3475,8 +3518,8 @@ export declare const productFulfillmentUpdateSchema: z.ZodDiscriminatedUnion<[z.
3475
3518
  type: z.ZodLiteral<"SHIPPING">;
3476
3519
  shipping: z.ZodObject<{
3477
3520
  deliveryType: z.ZodEnum<{
3478
- PAID: "PAID";
3479
3521
  FREE: "FREE";
3522
+ PAID: "PAID";
3480
3523
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
3481
3524
  }>;
3482
3525
  deliveryFee: z.ZodNumber;
@@ -3485,16 +3528,16 @@ export declare const productFulfillmentUpdateSchema: z.ZodDiscriminatedUnion<[z.
3485
3528
  returnAddressId: z.ZodNullable<z.ZodString>;
3486
3529
  }, z.core.$strict>;
3487
3530
  methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3488
- DIRECT: "DIRECT";
3489
3531
  CARRIER: "CARRIER";
3532
+ DIRECT: "DIRECT";
3490
3533
  PICKUP: "PICKUP";
3491
3534
  PROVIDED: "PROVIDED";
3492
3535
  }>>>;
3493
3536
  }, z.core.$strict>, z.ZodObject<{
3494
3537
  type: z.ZodLiteral<"MANUAL">;
3495
3538
  methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
3496
- DIRECT: "DIRECT";
3497
3539
  CARRIER: "CARRIER";
3540
+ DIRECT: "DIRECT";
3498
3541
  PICKUP: "PICKUP";
3499
3542
  PROVIDED: "PROVIDED";
3500
3543
  }>>>;
@@ -3508,8 +3551,8 @@ export declare const productFulfillmentSchema: z.ZodDiscriminatedUnion<[z.ZodObj
3508
3551
  type: z.ZodLiteral<"SHIPPING">;
3509
3552
  shipping: z.ZodObject<{
3510
3553
  deliveryType: z.ZodEnum<{
3511
- PAID: "PAID";
3512
3554
  FREE: "FREE";
3555
+ PAID: "PAID";
3513
3556
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
3514
3557
  }>;
3515
3558
  deliveryFee: z.ZodNumber;
@@ -3549,8 +3592,8 @@ export declare const productFulfillmentResponseSchema: z.ZodUnion<readonly [z.Zo
3549
3592
  type: z.ZodLiteral<"SHIPPING">;
3550
3593
  shipping: z.ZodObject<{
3551
3594
  deliveryType: z.ZodEnum<{
3552
- PAID: "PAID";
3553
3595
  FREE: "FREE";
3596
+ PAID: "PAID";
3554
3597
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
3555
3598
  }>;
3556
3599
  deliveryFee: z.ZodNumber;
@@ -5074,6 +5117,19 @@ export declare const cancelBySellerResultSchema: z.ZodObject<{
5074
5117
  refundHeld: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5075
5118
  }, z.core.$strip>;
5076
5119
  export type CancelBySellerResult = z.infer<typeof cancelBySellerResultSchema>;
5120
+ /**
5121
+ * `GET /v1/order-items/{orderItemId}/cancel-preview` 응답(#115) — 판매자 취소를 하면 돌려줄 금액. 실제 취소와 같은 계산을
5122
+ * 쓰기 없이 돌린 결과다. 취소할 수 없는 주문상품은 취소와 같은 409다
5123
+ */
5124
+ export declare const sellerCancelPreviewSchema: z.ZodObject<{
5125
+ orderItemId: z.ZodString;
5126
+ quantity: z.ZodNumber;
5127
+ refundAmount: z.ZodNumber;
5128
+ pointRefundAmount: z.ZodNumber;
5129
+ deliveryFeeRefundAmount: z.ZodNumber;
5130
+ deliveryFeeChargeAmount: z.ZodNumber;
5131
+ }, z.core.$strip>;
5132
+ export type SellerCancelPreview = z.infer<typeof sellerCancelPreviewSchema>;
5077
5133
  /** `PUT /v1/order-items/{orderItemId}/memo` 응답 — 빈 문자열로 저장하면 메모가 지워져 `null`이다 */
5078
5134
  export declare const orderItemMemoResultSchema: z.ZodObject<{
5079
5135
  orderItemId: z.ZodString;
@@ -6339,11 +6395,11 @@ export type PointEntry = z.infer<typeof pointEntrySchema>;
6339
6395
  export declare const pointLotSchema: z.ZodObject<{
6340
6396
  lotId: z.ZodString;
6341
6397
  source: z.ZodUnion<readonly [z.ZodEnum<{
6342
- PURCHASE: "PURCHASE";
6343
6398
  REFUND_RESTORE: "REFUND_RESTORE";
6344
6399
  ADJUST: "ADJUST";
6345
6400
  OPENING: "OPENING";
6346
6401
  REVIEW: "REVIEW";
6402
+ PURCHASE: "PURCHASE";
6347
6403
  }>, z.ZodString]>;
6348
6404
  amount: z.ZodNumber;
6349
6405
  remaining: z.ZodNumber;
@@ -6358,11 +6414,11 @@ export declare const customerPointsSchema: z.ZodObject<{
6358
6414
  lots: z.ZodArray<z.ZodObject<{
6359
6415
  lotId: z.ZodString;
6360
6416
  source: z.ZodUnion<readonly [z.ZodEnum<{
6361
- PURCHASE: "PURCHASE";
6362
6417
  REFUND_RESTORE: "REFUND_RESTORE";
6363
6418
  ADJUST: "ADJUST";
6364
6419
  OPENING: "OPENING";
6365
6420
  REVIEW: "REVIEW";
6421
+ PURCHASE: "PURCHASE";
6366
6422
  }>, z.ZodString]>;
6367
6423
  amount: z.ZodNumber;
6368
6424
  remaining: z.ZodNumber;
@@ -6752,8 +6808,8 @@ export declare const productSchema: z.ZodObject<{
6752
6808
  type: z.ZodLiteral<"SHIPPING">;
6753
6809
  shipping: z.ZodObject<{
6754
6810
  deliveryType: z.ZodEnum<{
6755
- PAID: "PAID";
6756
6811
  FREE: "FREE";
6812
+ PAID: "PAID";
6757
6813
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
6758
6814
  }>;
6759
6815
  deliveryFee: z.ZodNumber;
@@ -6996,8 +7052,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
6996
7052
  type: z.ZodLiteral<"SHIPPING">;
6997
7053
  shipping: z.ZodOptional<z.ZodObject<{
6998
7054
  deliveryType: z.ZodDefault<z.ZodEnum<{
6999
- PAID: "PAID";
7000
7055
  FREE: "FREE";
7056
+ PAID: "PAID";
7001
7057
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
7002
7058
  }>>;
7003
7059
  deliveryFee: z.ZodOptional<z.ZodNumber>;
@@ -7006,16 +7062,16 @@ export declare const productCreateRequestSchema: z.ZodObject<{
7006
7062
  returnAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7007
7063
  }, z.core.$strict>>;
7008
7064
  methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7009
- DIRECT: "DIRECT";
7010
7065
  CARRIER: "CARRIER";
7066
+ DIRECT: "DIRECT";
7011
7067
  PICKUP: "PICKUP";
7012
7068
  PROVIDED: "PROVIDED";
7013
7069
  }>>>;
7014
7070
  }, z.core.$strict>, z.ZodObject<{
7015
7071
  type: z.ZodLiteral<"MANUAL">;
7016
7072
  methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7017
- DIRECT: "DIRECT";
7018
7073
  CARRIER: "CARRIER";
7074
+ DIRECT: "DIRECT";
7019
7075
  PICKUP: "PICKUP";
7020
7076
  PROVIDED: "PROVIDED";
7021
7077
  }>>>;
@@ -7110,8 +7166,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
7110
7166
  type: z.ZodLiteral<"SHIPPING">;
7111
7167
  shipping: z.ZodObject<{
7112
7168
  deliveryType: z.ZodEnum<{
7113
- PAID: "PAID";
7114
7169
  FREE: "FREE";
7170
+ PAID: "PAID";
7115
7171
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
7116
7172
  }>;
7117
7173
  deliveryFee: z.ZodNumber;
@@ -7120,16 +7176,16 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
7120
7176
  returnAddressId: z.ZodNullable<z.ZodString>;
7121
7177
  }, z.core.$strict>;
7122
7178
  methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7123
- DIRECT: "DIRECT";
7124
7179
  CARRIER: "CARRIER";
7180
+ DIRECT: "DIRECT";
7125
7181
  PICKUP: "PICKUP";
7126
7182
  PROVIDED: "PROVIDED";
7127
7183
  }>>>;
7128
7184
  }, z.core.$strict>, z.ZodObject<{
7129
7185
  type: z.ZodLiteral<"MANUAL">;
7130
7186
  methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7131
- DIRECT: "DIRECT";
7132
7187
  CARRIER: "CARRIER";
7188
+ DIRECT: "DIRECT";
7133
7189
  PICKUP: "PICKUP";
7134
7190
  PROVIDED: "PROVIDED";
7135
7191
  }>>>;
@@ -7233,8 +7289,8 @@ export declare const productPatchRequestSchema: z.ZodObject<{
7233
7289
  type: z.ZodLiteral<"SHIPPING">;
7234
7290
  shipping: z.ZodObject<{
7235
7291
  deliveryType: z.ZodEnum<{
7236
- PAID: "PAID";
7237
7292
  FREE: "FREE";
7293
+ PAID: "PAID";
7238
7294
  CONDITIONAL_FREE: "CONDITIONAL_FREE";
7239
7295
  }>;
7240
7296
  deliveryFee: z.ZodNumber;
@@ -7243,16 +7299,16 @@ export declare const productPatchRequestSchema: z.ZodObject<{
7243
7299
  returnAddressId: z.ZodNullable<z.ZodString>;
7244
7300
  }, z.core.$strict>;
7245
7301
  methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7246
- DIRECT: "DIRECT";
7247
7302
  CARRIER: "CARRIER";
7303
+ DIRECT: "DIRECT";
7248
7304
  PICKUP: "PICKUP";
7249
7305
  PROVIDED: "PROVIDED";
7250
7306
  }>>>;
7251
7307
  }, z.core.$strict>, z.ZodObject<{
7252
7308
  type: z.ZodLiteral<"MANUAL">;
7253
7309
  methods: z.ZodOptional<z.ZodArray<z.ZodEnum<{
7254
- DIRECT: "DIRECT";
7255
7310
  CARRIER: "CARRIER";
7311
+ DIRECT: "DIRECT";
7256
7312
  PICKUP: "PICKUP";
7257
7313
  PROVIDED: "PROVIDED";
7258
7314
  }>>>;
@@ -8300,9 +8356,9 @@ export type StorefrontDeploymentLog = z.infer<typeof storefrontDeploymentLogSche
8300
8356
  export declare const storefrontDeploymentSchema: z.ZodObject<{
8301
8357
  siteId: z.ZodString;
8302
8358
  status: z.ZodEnum<{
8303
- IN_PROGRESS: "IN_PROGRESS";
8304
8359
  FAILED: "FAILED";
8305
8360
  SUCCEEDED: "SUCCEEDED";
8361
+ IN_PROGRESS: "IN_PROGRESS";
8306
8362
  }>;
8307
8363
  url: z.ZodString;
8308
8364
  startedAt: z.ZodString;
@@ -8760,8 +8816,8 @@ export declare const runStorefrontCheckRequestSchema: z.ZodObject<{
8760
8816
  }, z.core.$strip>;
8761
8817
  export type RunStorefrontCheckRequest = z.infer<typeof runStorefrontCheckRequestSchema>;
8762
8818
  export declare const storefrontCheckStatusSchema: z.ZodEnum<{
8763
- UNKNOWN: "UNKNOWN";
8764
8819
  FAILED: "FAILED";
8820
+ UNKNOWN: "UNKNOWN";
8765
8821
  RUNNING: "RUNNING";
8766
8822
  QUEUED: "QUEUED";
8767
8823
  PASSED: "PASSED";
@@ -8774,8 +8830,8 @@ export declare const storefrontCheckSchema: z.ZodObject<{
8774
8830
  checkId: z.ZodString;
8775
8831
  check: z.ZodString;
8776
8832
  status: z.ZodEnum<{
8777
- UNKNOWN: "UNKNOWN";
8778
8833
  FAILED: "FAILED";
8834
+ UNKNOWN: "UNKNOWN";
8779
8835
  RUNNING: "RUNNING";
8780
8836
  QUEUED: "QUEUED";
8781
8837
  PASSED: "PASSED";
@@ -9606,7 +9662,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9606
9662
  fulfillment: UnknownFulfillment | {
9607
9663
  type: "SHIPPING";
9608
9664
  shipping: {
9609
- deliveryType: "PAID" | "FREE" | "CONDITIONAL_FREE";
9665
+ deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
9610
9666
  deliveryFee: number;
9611
9667
  conditionalFreeAmount: number | null;
9612
9668
  shippingAddressId: string | null;
@@ -9714,7 +9770,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9714
9770
  fulfillment: UnknownFulfillment | {
9715
9771
  type: "SHIPPING";
9716
9772
  shipping: {
9717
- deliveryType: "PAID" | "FREE" | "CONDITIONAL_FREE";
9773
+ deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
9718
9774
  deliveryFee: number;
9719
9775
  conditionalFreeAmount: number | null;
9720
9776
  shippingAddressId: string | null;
@@ -9822,7 +9878,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9822
9878
  fulfillment: UnknownFulfillment | {
9823
9879
  type: "SHIPPING";
9824
9880
  shipping: {
9825
- deliveryType: "PAID" | "FREE" | "CONDITIONAL_FREE";
9881
+ deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
9826
9882
  deliveryFee: number;
9827
9883
  conditionalFreeAmount: number | null;
9828
9884
  shippingAddressId: string | null;
@@ -10204,7 +10260,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10204
10260
  value: true;
10205
10261
  } | {
10206
10262
  field: "bestSelling";
10207
- days: 7 | 30 | 90;
10263
+ days: 30 | 7 | 90;
10208
10264
  top: number;
10209
10265
  } | {
10210
10266
  [x: string]: unknown;
@@ -10254,7 +10310,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10254
10310
  value: true;
10255
10311
  } | {
10256
10312
  field: "bestSelling";
10257
- days: 7 | 30 | 90;
10313
+ days: 30 | 7 | 90;
10258
10314
  top: number;
10259
10315
  } | {
10260
10316
  [x: string]: unknown;
@@ -10297,7 +10353,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10297
10353
  value: true;
10298
10354
  } | {
10299
10355
  field: "bestSelling";
10300
- days: 7 | 30 | 90;
10356
+ days: 30 | 7 | 90;
10301
10357
  top: number;
10302
10358
  } | {
10303
10359
  [x: string]: unknown;
@@ -10339,7 +10395,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10339
10395
  value: true;
10340
10396
  } | {
10341
10397
  field: "bestSelling";
10342
- days: 7 | 30 | 90;
10398
+ days: 30 | 7 | 90;
10343
10399
  top: number;
10344
10400
  } | {
10345
10401
  [x: string]: unknown;
@@ -10402,7 +10458,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10402
10458
  value: true;
10403
10459
  } | {
10404
10460
  field: "bestSelling";
10405
- days: 7 | 30 | 90;
10461
+ days: 30 | 7 | 90;
10406
10462
  top: number;
10407
10463
  } | {
10408
10464
  [x: string]: unknown;
@@ -10445,7 +10501,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10445
10501
  value: true;
10446
10502
  } | {
10447
10503
  field: "bestSelling";
10448
- days: 7 | 30 | 90;
10504
+ days: 30 | 7 | 90;
10449
10505
  top: number;
10450
10506
  } | {
10451
10507
  [x: string]: unknown;
@@ -10836,7 +10892,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
10836
10892
  key: string;
10837
10893
  results: {
10838
10894
  orderItemId: string;
10839
- status: "COMPLETED" | "FAILED" | "SKIPPED";
10895
+ status: "FAILED" | "COMPLETED" | "SKIPPED";
10840
10896
  reason?: string | undefined;
10841
10897
  message?: string | undefined;
10842
10898
  }[];
@@ -10944,6 +11000,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
10944
11000
  }>;
10945
11001
  hold: (orderItemId: string, body: HoldOrderItemRequest) => Promise<void>;
10946
11002
  releaseHold: (orderItemId: string) => Promise<void>;
11003
+ /** 판매자 취소 미리보기(#115) — 취소하면 돌려줄 현금·적립금. 생략한 수량은 남은 수량 전체다 */
11004
+ cancelPreview: (orderItemId: string, quantity?: number) => Promise<{
11005
+ orderItemId: string;
11006
+ quantity: number;
11007
+ refundAmount: number;
11008
+ pointRefundAmount: number;
11009
+ deliveryFeeRefundAmount: number;
11010
+ deliveryFeeChargeAmount: number;
11011
+ }>;
10947
11012
  cancelBySeller: (orderItemId: string, body: CancelBySellerRequest, idempotencyKey?: string) => Promise<{
10948
11013
  orderItemId: string;
10949
11014
  refundAmount: number;
@@ -11216,7 +11281,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11216
11281
  enteredAt: string;
11217
11282
  fields: Record<string, string | number | boolean | string[] | null>;
11218
11283
  coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
11219
- claimStatus?: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11284
+ claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11220
11285
  message?: string | undefined;
11221
11286
  deadlineAt?: string | undefined;
11222
11287
  attachments?: string[] | undefined;
@@ -11228,6 +11293,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11228
11293
  label: string;
11229
11294
  type: string;
11230
11295
  value: string | number | boolean | string[];
11296
+ display?: string | undefined;
11231
11297
  }[];
11232
11298
  } | undefined;
11233
11299
  progress?: boolean | undefined;
@@ -11261,6 +11327,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11261
11327
  } | undefined;
11262
11328
  }[] | undefined;
11263
11329
  partialQuantity?: boolean | "UNIT" | undefined;
11330
+ attachments?: "REQUIRED" | "OPTIONAL" | undefined;
11264
11331
  }[];
11265
11332
  timers: {
11266
11333
  key: string;
@@ -11279,7 +11346,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11279
11346
  enteredAt: string;
11280
11347
  fields: Record<string, string | number | boolean | string[] | null>;
11281
11348
  coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
11282
- claimStatus?: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11349
+ claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11283
11350
  message?: string | undefined;
11284
11351
  deadlineAt?: string | undefined;
11285
11352
  attachments?: string[] | undefined;
@@ -11291,6 +11358,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11291
11358
  label: string;
11292
11359
  type: string;
11293
11360
  value: string | number | boolean | string[];
11361
+ display?: string | undefined;
11294
11362
  }[];
11295
11363
  } | undefined;
11296
11364
  progress?: boolean | undefined;
@@ -11308,7 +11376,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11308
11376
  enteredAt: string;
11309
11377
  fields: Record<string, string | number | boolean | string[] | null>;
11310
11378
  coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
11311
- claimStatus?: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11379
+ claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11312
11380
  message?: string | undefined;
11313
11381
  deadlineAt?: string | undefined;
11314
11382
  attachments?: string[] | undefined;
@@ -11320,6 +11388,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11320
11388
  label: string;
11321
11389
  type: string;
11322
11390
  value: string | number | boolean | string[];
11391
+ display?: string | undefined;
11323
11392
  }[];
11324
11393
  } | undefined;
11325
11394
  progress?: boolean | undefined;
@@ -11353,6 +11422,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11353
11422
  } | undefined;
11354
11423
  }[] | undefined;
11355
11424
  partialQuantity?: boolean | "UNIT" | undefined;
11425
+ attachments?: "REQUIRED" | "OPTIONAL" | undefined;
11356
11426
  }[];
11357
11427
  affectedOrderItemIds: string[];
11358
11428
  }>;
@@ -11368,7 +11438,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11368
11438
  enteredAt: string;
11369
11439
  fields: Record<string, string | number | boolean | string[] | null>;
11370
11440
  coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
11371
- claimStatus?: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11441
+ claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11372
11442
  message?: string | undefined;
11373
11443
  deadlineAt?: string | undefined;
11374
11444
  attachments?: string[] | undefined;
@@ -11380,6 +11450,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11380
11450
  label: string;
11381
11451
  type: string;
11382
11452
  value: string | number | boolean | string[];
11453
+ display?: string | undefined;
11383
11454
  }[];
11384
11455
  } | undefined;
11385
11456
  progress?: boolean | undefined;
@@ -11413,6 +11484,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11413
11484
  } | undefined;
11414
11485
  }[] | undefined;
11415
11486
  partialQuantity?: boolean | "UNIT" | undefined;
11487
+ attachments?: "REQUIRED" | "OPTIONAL" | undefined;
11416
11488
  }[];
11417
11489
  affectedOrderItemIds: string[];
11418
11490
  }>;
@@ -11428,7 +11500,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11428
11500
  enteredAt: string;
11429
11501
  fields: Record<string, string | number | boolean | string[] | null>;
11430
11502
  coreStatus?: "PAID" | "CANCELED" | "PAYMENT_WAITING" | "CONFIRMED" | "DISPATCHED" | "DELIVERING" | "DELIVERED" | "PURCHASE_DECIDED" | undefined;
11431
- claimStatus?: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11503
+ claimStatus?: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN" | undefined;
11432
11504
  message?: string | undefined;
11433
11505
  deadlineAt?: string | undefined;
11434
11506
  attachments?: string[] | undefined;
@@ -11440,6 +11512,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11440
11512
  label: string;
11441
11513
  type: string;
11442
11514
  value: string | number | boolean | string[];
11515
+ display?: string | undefined;
11443
11516
  }[];
11444
11517
  } | undefined;
11445
11518
  progress?: boolean | undefined;
@@ -11473,6 +11546,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11473
11546
  } | undefined;
11474
11547
  }[] | undefined;
11475
11548
  partialQuantity?: boolean | "UNIT" | undefined;
11549
+ attachments?: "REQUIRED" | "OPTIONAL" | undefined;
11476
11550
  }[];
11477
11551
  affectedOrderItemIds: string[];
11478
11552
  }>;
@@ -11540,6 +11614,19 @@ export declare function createStoreClient(options: StoreClientOptions): {
11540
11614
  requires: Record<string, unknown>;
11541
11615
  variables: Record<string, unknown>[];
11542
11616
  }[]>;
11617
+ /** `GET /flow-presets/{key}` — 프리셋 그래프(흐름 만들기 편집기, #115) */
11618
+ preset: (key: string) => Promise<{
11619
+ key: string;
11620
+ presetVersion: number;
11621
+ name: string;
11622
+ description: string;
11623
+ availability: "AVAILABLE" | "BLOCKED";
11624
+ dependsOn: string[];
11625
+ requires: Record<string, unknown>;
11626
+ variables: Record<string, unknown>[];
11627
+ graph: Record<string, unknown>;
11628
+ definition: Record<string, unknown>;
11629
+ }>;
11543
11630
  list: () => Promise<{
11544
11631
  flowId: string;
11545
11632
  key: string;
@@ -11549,6 +11636,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11549
11636
  presetKey: string | null;
11550
11637
  presetVersion: number | null;
11551
11638
  activeVersion: number | null;
11639
+ defaultFor: "SHIPPING" | "MANUAL" | null;
11552
11640
  archivedAt: string | null;
11553
11641
  createdAt: string;
11554
11642
  updatedAt: string;
@@ -11562,6 +11650,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11562
11650
  presetKey: string | null;
11563
11651
  presetVersion: number | null;
11564
11652
  activeVersion: number | null;
11653
+ defaultFor: "SHIPPING" | "MANUAL" | null;
11565
11654
  archivedAt: string | null;
11566
11655
  createdAt: string;
11567
11656
  updatedAt: string;
@@ -11600,6 +11689,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11600
11689
  presetKey: string | null;
11601
11690
  presetVersion: number | null;
11602
11691
  activeVersion: number | null;
11692
+ defaultFor: "SHIPPING" | "MANUAL" | null;
11603
11693
  archivedAt: string | null;
11604
11694
  createdAt: string;
11605
11695
  updatedAt: string;
@@ -11638,6 +11728,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11638
11728
  presetKey: string | null;
11639
11729
  presetVersion: number | null;
11640
11730
  activeVersion: number | null;
11731
+ defaultFor: "SHIPPING" | "MANUAL" | null;
11641
11732
  archivedAt: string | null;
11642
11733
  createdAt: string;
11643
11734
  updatedAt: string;
@@ -11691,6 +11782,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11691
11782
  presetKey: string | null;
11692
11783
  presetVersion: number | null;
11693
11784
  activeVersion: number | null;
11785
+ defaultFor: "SHIPPING" | "MANUAL" | null;
11694
11786
  archivedAt: string | null;
11695
11787
  createdAt: string;
11696
11788
  updatedAt: string;
@@ -11860,7 +11952,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11860
11952
  claimId: string;
11861
11953
  claimNo: string | null;
11862
11954
  type: "RETURN" | "EXCHANGE" | "CANCEL";
11863
- status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
11955
+ status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
11864
11956
  orderId: string;
11865
11957
  orderItemId: string;
11866
11958
  productName: string;
@@ -11900,7 +11992,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11900
11992
  claimId: string;
11901
11993
  claimNo: string | null;
11902
11994
  type: "RETURN" | "EXCHANGE" | "CANCEL";
11903
- status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
11995
+ status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
11904
11996
  orderId: string;
11905
11997
  orderItemId: string;
11906
11998
  productName: string;
@@ -11935,7 +12027,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11935
12027
  address2: string | null;
11936
12028
  } | null;
11937
12029
  histories?: {
11938
- status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
12030
+ status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
11939
12031
  actor: "SYSTEM" | "BUYER" | "SELLER";
11940
12032
  occurredAt: string;
11941
12033
  }[] | undefined;
@@ -11973,7 +12065,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
11973
12065
  claimId: string;
11974
12066
  claimNo: string | null;
11975
12067
  type: "RETURN" | "EXCHANGE" | "CANCEL";
11976
- status: "COMPLETED" | "REJECTED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
12068
+ status: "REJECTED" | "COMPLETED" | "REQUESTED" | "HELD" | "COLLECTING" | "COLLECTED" | "REDELIVERING" | "APPROVED" | "WITHDRAWN";
11977
12069
  orderId: string;
11978
12070
  orderItemId: string;
11979
12071
  productName: string;
@@ -12897,7 +12989,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
12897
12989
  conversionRate: number | null;
12898
12990
  };
12899
12991
  funnel: {
12900
- step: "SESSION" | "PRODUCT_VIEW" | "ADD_TO_CART" | "BEGIN_CHECKOUT" | "PURCHASE";
12992
+ step: "PURCHASE" | "SESSION" | "PRODUCT_VIEW" | "ADD_TO_CART" | "BEGIN_CHECKOUT";
12901
12993
  sessions: number;
12902
12994
  rateFromPrevious: number | null;
12903
12995
  }[];
@@ -12951,9 +13043,9 @@ export declare function createStoreClient(options: StoreClientOptions): {
12951
13043
  }>;
12952
13044
  /** `GET /v1/analytics/sources` — 채널·소스·캠페인·기기별 세션과 구매 */
12953
13045
  sources: (params: AnalyticsSourcesParams) => Promise<{
12954
- groupBy: "CAMPAIGN" | "CHANNEL" | "SOURCE" | "DEVICE";
13046
+ groupBy: "CHANNEL" | "SOURCE" | "CAMPAIGN" | "DEVICE";
12955
13047
  rows: {
12956
- channel: "DIRECT" | "ORGANIC_SEARCH" | "SOCIAL" | "PAID" | "EMAIL" | "CAMPAIGN" | "REFERRAL" | "UNKNOWN" | null;
13048
+ channel: "PAID" | "DIRECT" | "CAMPAIGN" | "UNKNOWN" | "ORGANIC_SEARCH" | "SOCIAL" | "EMAIL" | "REFERRAL" | null;
12957
13049
  source: string | null;
12958
13050
  medium: string | null;
12959
13051
  campaign: string | null;
@@ -13058,7 +13150,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
13058
13150
  checkout: (params: AnalyticsRangeParams) => Promise<{
13059
13151
  sessions: number;
13060
13152
  outcomes: {
13061
- outcome: "COMPLETED" | "NOT_OPENED" | "USER_CANCELED" | "DECLINED" | "PREPARE_FAILURE" | "OTHER" | "IN_PROGRESS";
13153
+ outcome: "OTHER" | "COMPLETED" | "NOT_OPENED" | "USER_CANCELED" | "DECLINED" | "PREPARE_FAILURE" | "IN_PROGRESS";
13062
13154
  sessions: number;
13063
13155
  }[];
13064
13156
  from: string;
@@ -14176,7 +14268,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14176
14268
  list: (params?: ApprovalListOptions) => Promise<{
14177
14269
  items: {
14178
14270
  approvalId: string;
14179
- status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
14271
+ status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
14180
14272
  operationId: string;
14181
14273
  method: string;
14182
14274
  path: string;
@@ -14228,7 +14320,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14228
14320
  }>;
14229
14321
  get: (approvalId: string) => Promise<{
14230
14322
  approvalId: string;
14231
- status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
14323
+ status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
14232
14324
  operationId: string;
14233
14325
  method: string;
14234
14326
  path: string;
@@ -14282,7 +14374,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14282
14374
  */
14283
14375
  approve: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
14284
14376
  approvalId: string;
14285
- status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
14377
+ status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
14286
14378
  operationId: string;
14287
14379
  method: string;
14288
14380
  path: string;
@@ -14332,7 +14424,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14332
14424
  }>;
14333
14425
  reject: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
14334
14426
  approvalId: string;
14335
- status: "UNKNOWN" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "REJECTED" | "EXPIRED";
14427
+ status: "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
14336
14428
  operationId: string;
14337
14429
  method: string;
14338
14430
  path: string;
@@ -14612,7 +14704,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14612
14704
  /** `GET /v1/storefront/site/deployment` — 배포 진행(단계·기록). 만든 뒤 반영이 끝날 때까지 폴링한다 */
14613
14705
  getDeployment: () => Promise<{
14614
14706
  siteId: string;
14615
- status: "IN_PROGRESS" | "FAILED" | "SUCCEEDED";
14707
+ status: "FAILED" | "SUCCEEDED" | "IN_PROGRESS";
14616
14708
  url: string;
14617
14709
  startedAt: string;
14618
14710
  finishedAt: string | null;
@@ -14634,7 +14726,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
14634
14726
  /** `POST /v1/storefront/site/deployment/retry` (202) — 밀린 반영을 곧바로 다시 시도한다. 이미 반영됐으면 그대로다 */
14635
14727
  retryDeployment: () => Promise<{
14636
14728
  siteId: string;
14637
- status: "IN_PROGRESS" | "FAILED" | "SUCCEEDED";
14729
+ status: "FAILED" | "SUCCEEDED" | "IN_PROGRESS";
14638
14730
  url: string;
14639
14731
  startedAt: string;
14640
14732
  finishedAt: string | null;
@@ -15209,7 +15301,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
15209
15301
  runCheck: (body: RunStorefrontCheckRequest) => Promise<{
15210
15302
  checkId: string;
15211
15303
  check: string;
15212
- status: "UNKNOWN" | "FAILED" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
15304
+ status: "FAILED" | "UNKNOWN" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
15213
15305
  exitCode: number | null;
15214
15306
  durationMs: number | null;
15215
15307
  outputTail: string | null;
@@ -15223,7 +15315,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
15223
15315
  getCheck: (checkId: string) => Promise<{
15224
15316
  checkId: string;
15225
15317
  check: string;
15226
- status: "UNKNOWN" | "FAILED" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
15318
+ status: "FAILED" | "UNKNOWN" | "RUNNING" | "QUEUED" | "PASSED" | "TIMED_OUT";
15227
15319
  exitCode: number | null;
15228
15320
  durationMs: number | null;
15229
15321
  outputTail: string | null;
@@ -17270,8 +17362,8 @@ export declare const claimWebhookEventDataSchema: z.ZodObject<{
17270
17362
  CANCEL: "CANCEL";
17271
17363
  }>;
17272
17364
  status: z.ZodEnum<{
17273
- COMPLETED: "COMPLETED";
17274
17365
  REJECTED: "REJECTED";
17366
+ COMPLETED: "COMPLETED";
17275
17367
  REQUESTED: "REQUESTED";
17276
17368
  HELD: "HELD";
17277
17369
  COLLECTING: "COLLECTING";
@@ -17501,8 +17593,8 @@ export declare const claimWebhookEventSchema: z.ZodObject<{
17501
17593
  CANCEL: "CANCEL";
17502
17594
  }>;
17503
17595
  status: z.ZodEnum<{
17504
- COMPLETED: "COMPLETED";
17505
17596
  REJECTED: "REJECTED";
17597
+ COMPLETED: "COMPLETED";
17506
17598
  REQUESTED: "REQUESTED";
17507
17599
  HELD: "HELD";
17508
17600
  COLLECTING: "COLLECTING";
@@ -17812,8 +17904,8 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
17812
17904
  CANCEL: "CANCEL";
17813
17905
  }>;
17814
17906
  status: z.ZodEnum<{
17815
- COMPLETED: "COMPLETED";
17816
17907
  REJECTED: "REJECTED";
17908
+ COMPLETED: "COMPLETED";
17817
17909
  REQUESTED: "REQUESTED";
17818
17910
  HELD: "HELD";
17819
17911
  COLLECTING: "COLLECTING";