@sayren/store-sdk 0.17.0 → 0.18.0

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
@@ -33,8 +33,8 @@ export declare const auditLogSourceSchema: z.ZodEnum<{
33
33
  }>;
34
34
  export type AuditLogSource = z.infer<typeof auditLogSourceSchema>;
35
35
  export declare const auditLogOutcomeSchema: z.ZodEnum<{
36
- SUCCEEDED: "SUCCEEDED";
37
36
  FAILED: "FAILED";
37
+ SUCCEEDED: "SUCCEEDED";
38
38
  PENDING_APPROVAL: "PENDING_APPROVAL";
39
39
  DENIED: "DENIED";
40
40
  DRY_RUN: "DRY_RUN";
@@ -69,8 +69,8 @@ export declare const auditLogSchema: z.ZodObject<{
69
69
  path: z.ZodNullable<z.ZodString>;
70
70
  statusCode: z.ZodNullable<z.ZodNumber>;
71
71
  outcome: z.ZodNullable<z.ZodEnum<{
72
- SUCCEEDED: "SUCCEEDED";
73
72
  FAILED: "FAILED";
73
+ SUCCEEDED: "SUCCEEDED";
74
74
  PENDING_APPROVAL: "PENDING_APPROVAL";
75
75
  DENIED: "DENIED";
76
76
  DRY_RUN: "DRY_RUN";
@@ -102,8 +102,8 @@ export declare const auditLogListQuerySchema: z.ZodObject<{
102
102
  DOMAIN: "DOMAIN";
103
103
  }>>;
104
104
  outcome: z.ZodOptional<z.ZodEnum<{
105
- SUCCEEDED: "SUCCEEDED";
106
105
  FAILED: "FAILED";
106
+ SUCCEEDED: "SUCCEEDED";
107
107
  PENDING_APPROVAL: "PENDING_APPROVAL";
108
108
  DENIED: "DENIED";
109
109
  DRY_RUN: "DRY_RUN";
@@ -149,8 +149,8 @@ export declare const auditLogPageSchema: z.ZodObject<{
149
149
  path: z.ZodNullable<z.ZodString>;
150
150
  statusCode: z.ZodNullable<z.ZodNumber>;
151
151
  outcome: z.ZodNullable<z.ZodEnum<{
152
- SUCCEEDED: "SUCCEEDED";
153
152
  FAILED: "FAILED";
153
+ SUCCEEDED: "SUCCEEDED";
154
154
  PENDING_APPROVAL: "PENDING_APPROVAL";
155
155
  DENIED: "DENIED";
156
156
  DRY_RUN: "DRY_RUN";
@@ -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";
168
169
  DENIED: "DENIED";
169
170
  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<{
@@ -190,9 +190,9 @@ 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
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
193
194
  DENIED: "DENIED";
194
195
  ALLOW: "ALLOW";
195
- APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
196
196
  }>;
197
197
  reason: z.ZodNullable<z.ZodString>;
198
198
  preview: z.ZodObject<{
@@ -213,25 +213,25 @@ export declare const writeDryRunResultSchema: z.ZodObject<{
213
213
  }, z.core.$strip>;
214
214
  export type WriteDryRunResult = z.infer<typeof writeDryRunResultSchema>;
215
215
  export declare const approvalStatusSchema: z.ZodEnum<{
216
- SUCCEEDED: "SUCCEEDED";
217
- FAILED: "FAILED";
216
+ EXPIRED: "EXPIRED";
218
217
  PENDING: "PENDING";
218
+ FAILED: "FAILED";
219
+ SUCCEEDED: "SUCCEEDED";
219
220
  EXECUTING: "EXECUTING";
220
221
  UNKNOWN: "UNKNOWN";
221
222
  REJECTED: "REJECTED";
222
- EXPIRED: "EXPIRED";
223
223
  }>;
224
224
  export type ApprovalStatus = z.infer<typeof approvalStatusSchema>;
225
225
  export declare const approvalRequestSchema: z.ZodObject<{
226
226
  approvalId: z.ZodString;
227
227
  status: z.ZodEnum<{
228
- SUCCEEDED: "SUCCEEDED";
229
- FAILED: "FAILED";
228
+ EXPIRED: "EXPIRED";
230
229
  PENDING: "PENDING";
230
+ FAILED: "FAILED";
231
+ SUCCEEDED: "SUCCEEDED";
231
232
  EXECUTING: "EXECUTING";
232
233
  UNKNOWN: "UNKNOWN";
233
234
  REJECTED: "REJECTED";
234
- EXPIRED: "EXPIRED";
235
235
  }>;
236
236
  operationId: z.ZodString;
237
237
  method: z.ZodString;
@@ -287,13 +287,13 @@ export declare const approvalRequestSchema: z.ZodObject<{
287
287
  export type ApprovalRequest = z.infer<typeof approvalRequestSchema>;
288
288
  export declare const approvalListQuerySchema: z.ZodObject<{
289
289
  status: z.ZodOptional<z.ZodPipe<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>, z.ZodTransform<string[], string | string[]>>, z.ZodArray<z.ZodEnum<{
290
- SUCCEEDED: "SUCCEEDED";
291
- FAILED: "FAILED";
290
+ EXPIRED: "EXPIRED";
292
291
  PENDING: "PENDING";
292
+ FAILED: "FAILED";
293
+ SUCCEEDED: "SUCCEEDED";
293
294
  EXECUTING: "EXECUTING";
294
295
  UNKNOWN: "UNKNOWN";
295
296
  REJECTED: "REJECTED";
296
- EXPIRED: "EXPIRED";
297
297
  }>>>>;
298
298
  cursor: z.ZodOptional<z.ZodString>;
299
299
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
@@ -306,13 +306,13 @@ export declare const approvalPageSchema: z.ZodObject<{
306
306
  items: z.ZodArray<z.ZodObject<{
307
307
  approvalId: z.ZodString;
308
308
  status: z.ZodEnum<{
309
- SUCCEEDED: "SUCCEEDED";
310
- FAILED: "FAILED";
309
+ EXPIRED: "EXPIRED";
311
310
  PENDING: "PENDING";
311
+ FAILED: "FAILED";
312
+ SUCCEEDED: "SUCCEEDED";
312
313
  EXECUTING: "EXECUTING";
313
314
  UNKNOWN: "UNKNOWN";
314
315
  REJECTED: "REJECTED";
315
- EXPIRED: "EXPIRED";
316
316
  }>;
317
317
  operationId: z.ZodString;
318
318
  method: z.ZodString;
@@ -581,10 +581,10 @@ export declare const analyticsProductsSchema: z.ZodObject<{
581
581
  }, z.core.$strip>;
582
582
  export type AnalyticsProducts = z.infer<typeof analyticsProductsSchema>;
583
583
  export declare const analyticsChannelSchema: z.ZodEnum<{
584
- UNKNOWN: "UNKNOWN";
585
584
  PAID: "PAID";
586
585
  DIRECT: "DIRECT";
587
586
  CAMPAIGN: "CAMPAIGN";
587
+ UNKNOWN: "UNKNOWN";
588
588
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
589
589
  SOCIAL: "SOCIAL";
590
590
  EMAIL: "EMAIL";
@@ -615,10 +615,10 @@ export declare const analyticsSourcesQuerySchema: z.ZodObject<{
615
615
  export type AnalyticsSourcesParams = z.infer<typeof analyticsSourcesQuerySchema>;
616
616
  export declare const analyticsSourceRowSchema: z.ZodObject<{
617
617
  channel: z.ZodNullable<z.ZodEnum<{
618
- UNKNOWN: "UNKNOWN";
619
618
  PAID: "PAID";
620
619
  DIRECT: "DIRECT";
621
620
  CAMPAIGN: "CAMPAIGN";
621
+ UNKNOWN: "UNKNOWN";
622
622
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
623
623
  SOCIAL: "SOCIAL";
624
624
  EMAIL: "EMAIL";
@@ -651,10 +651,10 @@ export declare const analyticsSourcesSchema: z.ZodObject<{
651
651
  }>;
652
652
  rows: z.ZodArray<z.ZodObject<{
653
653
  channel: z.ZodNullable<z.ZodEnum<{
654
- UNKNOWN: "UNKNOWN";
655
654
  PAID: "PAID";
656
655
  DIRECT: "DIRECT";
657
656
  CAMPAIGN: "CAMPAIGN";
657
+ UNKNOWN: "UNKNOWN";
658
658
  ORGANIC_SEARCH: "ORGANIC_SEARCH";
659
659
  SOCIAL: "SOCIAL";
660
660
  EMAIL: "EMAIL";
@@ -1073,9 +1073,9 @@ export type ApiLogSummary = z.infer<typeof apiLogSummarySchema>;
1073
1073
  //#endregion
1074
1074
  //#region src/schemas/auth.d.ts
1075
1075
  export declare const storeRoleSchema: z.ZodEnum<{
1076
+ OWNER: "OWNER";
1076
1077
  ADMIN: "ADMIN";
1077
1078
  STAFF: "STAFF";
1078
- OWNER: "OWNER";
1079
1079
  }>;
1080
1080
  export type StoreRole = z.infer<typeof storeRoleSchema>;
1081
1081
  export declare const userTokenResponseSchema: z.ZodObject<{
@@ -1099,9 +1099,9 @@ export declare const storeTokenResponseSchema: z.ZodObject<{
1099
1099
  expires_in: z.ZodNumber;
1100
1100
  storeId: z.ZodString;
1101
1101
  role: z.ZodEnum<{
1102
+ OWNER: "OWNER";
1102
1103
  ADMIN: "ADMIN";
1103
1104
  STAFF: "STAFF";
1104
- OWNER: "OWNER";
1105
1105
  }>;
1106
1106
  scopes: z.ZodArray<z.ZodString>;
1107
1107
  }, z.core.$strip>;
@@ -1111,9 +1111,9 @@ export declare const myStoreSchema: z.ZodObject<{
1111
1111
  storeName: z.ZodString;
1112
1112
  storeCode: z.ZodString;
1113
1113
  role: z.ZodEnum<{
1114
+ OWNER: "OWNER";
1114
1115
  ADMIN: "ADMIN";
1115
1116
  STAFF: "STAFF";
1116
- OWNER: "OWNER";
1117
1117
  }>;
1118
1118
  status: z.ZodEnum<{
1119
1119
  ACTIVE: "ACTIVE";
@@ -2379,10 +2379,10 @@ export type OrderItemDownload = z.infer<typeof orderItemDownloadSchema>;
2379
2379
  * - `VOID` 셀러가 폐기함
2380
2380
  */
2381
2381
  export declare const fulfillmentCodeStatusSchema: z.ZodEnum<{
2382
- EXPIRED: "EXPIRED";
2383
2382
  REVOKED: "REVOKED";
2384
2383
  AVAILABLE: "AVAILABLE";
2385
2384
  ASSIGNED: "ASSIGNED";
2385
+ EXPIRED: "EXPIRED";
2386
2386
  VOID: "VOID";
2387
2387
  }>;
2388
2388
  export type FulfillmentCodeStatus = z.infer<typeof fulfillmentCodeStatusSchema>;
@@ -2463,10 +2463,10 @@ export declare const fulfillmentCodeListQuerySchema: z.ZodObject<{
2463
2463
  page: z.ZodOptional<z.ZodString>;
2464
2464
  size: z.ZodOptional<z.ZodString>;
2465
2465
  status: z.ZodOptional<z.ZodEnum<{
2466
- EXPIRED: "EXPIRED";
2467
2466
  REVOKED: "REVOKED";
2468
2467
  AVAILABLE: "AVAILABLE";
2469
2468
  ASSIGNED: "ASSIGNED";
2469
+ EXPIRED: "EXPIRED";
2470
2470
  VOID: "VOID";
2471
2471
  }>>;
2472
2472
  variantId: z.ZodOptional<z.ZodString>;
@@ -2833,10 +2833,10 @@ export declare const webhookSecretRotatedSchema: z.ZodObject<{
2833
2833
  }, z.core.$strip>;
2834
2834
  export type WebhookSecretRotated = z.infer<typeof webhookSecretRotatedSchema>;
2835
2835
  export declare const webhookDeliveryStatusSchema: z.ZodEnum<{
2836
- FAILED: "FAILED";
2837
2836
  PENDING: "PENDING";
2838
2837
  PENDING_RETRY: "PENDING_RETRY";
2839
2838
  SUCCESS: "SUCCESS";
2839
+ FAILED: "FAILED";
2840
2840
  }>;
2841
2841
  export type WebhookDeliveryStatus = z.infer<typeof webhookDeliveryStatusSchema>;
2842
2842
  export declare const webhookDeliveryErrorCodeSchema: z.ZodEnum<{
@@ -2898,10 +2898,10 @@ export declare const webhookDeliverySchema: z.ZodObject<{
2898
2898
  }>;
2899
2899
  url: z.ZodString;
2900
2900
  status: z.ZodEnum<{
2901
- FAILED: "FAILED";
2902
2901
  PENDING: "PENDING";
2903
2902
  PENDING_RETRY: "PENDING_RETRY";
2904
2903
  SUCCESS: "SUCCESS";
2904
+ FAILED: "FAILED";
2905
2905
  }>;
2906
2906
  responseStatusCode: z.ZodNullable<z.ZodNumber>;
2907
2907
  responseTimeMs: z.ZodNullable<z.ZodNumber>;
@@ -2951,10 +2951,10 @@ export declare const webhookDeliveryDetailSchema: z.ZodObject<{
2951
2951
  }>;
2952
2952
  url: z.ZodString;
2953
2953
  status: z.ZodEnum<{
2954
- FAILED: "FAILED";
2955
2954
  PENDING: "PENDING";
2956
2955
  PENDING_RETRY: "PENDING_RETRY";
2957
2956
  SUCCESS: "SUCCESS";
2957
+ FAILED: "FAILED";
2958
2958
  }>;
2959
2959
  responseStatusCode: z.ZodNullable<z.ZodNumber>;
2960
2960
  responseTimeMs: z.ZodNullable<z.ZodNumber>;
@@ -2989,10 +2989,10 @@ export type WebhookDeliveryDetail = z.infer<typeof webhookDeliveryDetailSchema>;
2989
2989
  /** 전송 기록 조회 쿼리 — `GET /webhooks/{id}/deliveries` */
2990
2990
  export declare const webhookDeliveryListQuerySchema: z.ZodObject<{
2991
2991
  status: z.ZodOptional<z.ZodEnum<{
2992
- FAILED: "FAILED";
2993
2992
  PENDING: "PENDING";
2994
2993
  PENDING_RETRY: "PENDING_RETRY";
2995
2994
  SUCCESS: "SUCCESS";
2995
+ FAILED: "FAILED";
2996
2996
  }>>;
2997
2997
  eventType: z.ZodOptional<z.ZodEnum<{
2998
2998
  "ORDER.PAID": "ORDER.PAID";
@@ -3232,6 +3232,323 @@ export declare function resolveFulfillmentMode(type: FulfillmentType, mode: Fulf
3232
3232
  * 정책 지문 키(`b:…`)와 겹치지 않는다.
3233
3233
  */
3234
3234
  export declare const NO_SHIPPING_BUNDLE_KEY = "none";
3235
+ /** 배송비 유형 — 무료·유료·조건부 무료 */
3236
+ export declare const deliveryTypeSchema: z.ZodEnum<{
3237
+ FREE: "FREE";
3238
+ PAID: "PAID";
3239
+ CONDITIONAL_FREE: "CONDITIONAL_FREE";
3240
+ }>;
3241
+ export type DeliveryType = z.infer<typeof deliveryTypeSchema>;
3242
+ /** 파일 다운로드 기본값 — 횟수 5회·기간 30일(#48 결정 8) */
3243
+ export declare const DOWNLOAD_DEFAULTS: {
3244
+ readonly limit: 5;
3245
+ readonly days: 30;
3246
+ };
3247
+ /**
3248
+ * 상품 이행 — 등록(POST). 유형 키를 생략하면 그 유형의 기본값이다(`{ "type": "DOWNLOAD" }`만으로 등록할 수 있다).
3249
+ */
3250
+ export declare const productFulfillmentCreateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3251
+ type: z.ZodLiteral<"SHIPPING">;
3252
+ shipping: z.ZodOptional<z.ZodObject<{
3253
+ deliveryType: z.ZodDefault<z.ZodEnum<{
3254
+ FREE: "FREE";
3255
+ PAID: "PAID";
3256
+ CONDITIONAL_FREE: "CONDITIONAL_FREE";
3257
+ }>>;
3258
+ deliveryFee: z.ZodOptional<z.ZodNumber>;
3259
+ conditionalFreeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3260
+ shippingAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3261
+ returnAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3262
+ }, z.core.$strict>>;
3263
+ }, z.core.$strict>, z.ZodObject<{
3264
+ type: z.ZodLiteral<"DOWNLOAD">;
3265
+ download: z.ZodDefault<z.ZodObject<{
3266
+ limit: z.ZodDefault<z.ZodNumber>;
3267
+ days: z.ZodDefault<z.ZodNumber>;
3268
+ stockTracking: z.ZodDefault<z.ZodBoolean>;
3269
+ withdrawalRestricted: z.ZodDefault<z.ZodBoolean>;
3270
+ }, z.core.$strict>>;
3271
+ }, z.core.$strict>, z.ZodObject<{
3272
+ type: z.ZodLiteral<"CODE">;
3273
+ code: z.ZodDefault<z.ZodObject<{
3274
+ mode: z.ZodDefault<z.ZodEnum<{
3275
+ AUTO: "AUTO";
3276
+ MANUAL: "MANUAL";
3277
+ }>>;
3278
+ withdrawalRestricted: z.ZodDefault<z.ZodBoolean>;
3279
+ }, z.core.$strict>>;
3280
+ }, z.core.$strict>, z.ZodObject<{
3281
+ type: z.ZodLiteral<"SERVICE">;
3282
+ service: z.ZodDefault<z.ZodObject<{
3283
+ mode: z.ZodDefault<z.ZodEnum<{
3284
+ AUTO: "AUTO";
3285
+ MANUAL: "MANUAL";
3286
+ }>>;
3287
+ }, z.core.$strict>>;
3288
+ }, z.core.$strict>, z.ZodObject<{
3289
+ type: z.ZodLiteral<"PICKUP">;
3290
+ pickup: z.ZodDefault<z.ZodObject<{
3291
+ addressId: z.ZodOptional<z.ZodString>;
3292
+ }, z.core.$strict>>;
3293
+ }, z.core.$strict>], "type">;
3294
+ export type ProductFulfillmentCreate = z.infer<typeof productFulfillmentCreateSchema>;
3295
+ /** 등록 요청의 입력 모양 — 기본값이 채워지기 전(생략 가능한 필드가 optional) */
3296
+ export type ProductFulfillmentCreateInput = z.input<typeof productFulfillmentCreateSchema>;
3297
+ /**
3298
+ * 상품 이행 — 수정(PUT·PATCH). 통째 교체이고 유형 키와 그 안의 필드가 **모두 필수**다. 서버는 현재 값과 병합하지 않는다.
3299
+ * `fulfillment` 자체를 생략하면 이행을 바꾸지 않는다.
3300
+ */
3301
+ export declare const productFulfillmentUpdateSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3302
+ type: z.ZodLiteral<"SHIPPING">;
3303
+ shipping: z.ZodObject<{
3304
+ deliveryType: z.ZodEnum<{
3305
+ FREE: "FREE";
3306
+ PAID: "PAID";
3307
+ CONDITIONAL_FREE: "CONDITIONAL_FREE";
3308
+ }>;
3309
+ deliveryFee: z.ZodNumber;
3310
+ conditionalFreeAmount: z.ZodNullable<z.ZodNumber>;
3311
+ shippingAddressId: z.ZodNullable<z.ZodString>;
3312
+ returnAddressId: z.ZodNullable<z.ZodString>;
3313
+ }, z.core.$strict>;
3314
+ }, z.core.$strict>, z.ZodObject<{
3315
+ type: z.ZodLiteral<"DOWNLOAD">;
3316
+ download: z.ZodObject<{
3317
+ limit: z.ZodNumber;
3318
+ days: z.ZodNumber;
3319
+ stockTracking: z.ZodBoolean;
3320
+ withdrawalRestricted: z.ZodBoolean;
3321
+ }, z.core.$strict>;
3322
+ }, z.core.$strict>, z.ZodObject<{
3323
+ type: z.ZodLiteral<"CODE">;
3324
+ code: z.ZodObject<{
3325
+ mode: z.ZodEnum<{
3326
+ AUTO: "AUTO";
3327
+ MANUAL: "MANUAL";
3328
+ }>;
3329
+ withdrawalRestricted: z.ZodBoolean;
3330
+ }, z.core.$strict>;
3331
+ }, z.core.$strict>, z.ZodObject<{
3332
+ type: z.ZodLiteral<"SERVICE">;
3333
+ service: z.ZodObject<{
3334
+ mode: z.ZodEnum<{
3335
+ AUTO: "AUTO";
3336
+ MANUAL: "MANUAL";
3337
+ }>;
3338
+ }, z.core.$strict>;
3339
+ }, z.core.$strict>, z.ZodObject<{
3340
+ type: z.ZodLiteral<"PICKUP">;
3341
+ pickup: z.ZodObject<{
3342
+ addressId: z.ZodString;
3343
+ }, z.core.$strict>;
3344
+ }, z.core.$strict>], "type">;
3345
+ export type ProductFulfillmentUpdate = z.infer<typeof productFulfillmentUpdateSchema>;
3346
+ /**
3347
+ * 저장된 상품 이행 — 알려진 유형의 닫힌 유니온. 서버의 상품 엔티티와 응답이 이 모양을 쓴다.
3348
+ * 응답 파싱은 `productFulfillmentResponseSchema`(열린 유니온)를 쓴다.
3349
+ */
3350
+ export declare const productFulfillmentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3351
+ type: z.ZodLiteral<"SHIPPING">;
3352
+ shipping: z.ZodObject<{
3353
+ deliveryType: z.ZodEnum<{
3354
+ FREE: "FREE";
3355
+ PAID: "PAID";
3356
+ CONDITIONAL_FREE: "CONDITIONAL_FREE";
3357
+ }>;
3358
+ deliveryFee: z.ZodNumber;
3359
+ conditionalFreeAmount: z.ZodNullable<z.ZodNumber>;
3360
+ shippingAddressId: z.ZodNullable<z.ZodString>;
3361
+ returnAddressId: z.ZodNullable<z.ZodString>;
3362
+ }, z.core.$strip>;
3363
+ }, z.core.$strip>, z.ZodObject<{
3364
+ type: z.ZodLiteral<"DOWNLOAD">;
3365
+ download: z.ZodObject<{
3366
+ limit: z.ZodNumber;
3367
+ days: z.ZodNumber;
3368
+ stockTracking: z.ZodBoolean;
3369
+ withdrawalRestricted: z.ZodBoolean;
3370
+ }, z.core.$strip>;
3371
+ }, z.core.$strip>, z.ZodObject<{
3372
+ type: z.ZodLiteral<"CODE">;
3373
+ code: z.ZodObject<{
3374
+ mode: z.ZodEnum<{
3375
+ AUTO: "AUTO";
3376
+ MANUAL: "MANUAL";
3377
+ }>;
3378
+ withdrawalRestricted: z.ZodBoolean;
3379
+ }, z.core.$strip>;
3380
+ }, z.core.$strip>, z.ZodObject<{
3381
+ type: z.ZodLiteral<"SERVICE">;
3382
+ service: z.ZodObject<{
3383
+ mode: z.ZodEnum<{
3384
+ AUTO: "AUTO";
3385
+ MANUAL: "MANUAL";
3386
+ }>;
3387
+ }, z.core.$strip>;
3388
+ }, z.core.$strip>, z.ZodObject<{
3389
+ type: z.ZodLiteral<"PICKUP">;
3390
+ pickup: z.ZodObject<{
3391
+ addressId: z.ZodNullable<z.ZodString>;
3392
+ }, z.core.$strip>;
3393
+ }, z.core.$strip>], "type">;
3394
+ export type ProductFulfillment = z.infer<typeof productFulfillmentSchema>;
3395
+ /** 유형 이름 → 그 유형의 저장된 이행 */
3396
+ export type ProductFulfillmentOf<T extends FulfillmentType> = Extract<ProductFulfillment, {
3397
+ type: T;
3398
+ }>;
3399
+ /** 응답이 알려 주는 모르는 유형 — SDK가 아직 모르는 유형(서버가 나중에 더한 유형) */
3400
+ export interface UnknownFulfillment {
3401
+ type: "OTHER";
3402
+ /** 서버가 보낸 유형 이름 */
3403
+ rawType: string;
3404
+ }
3405
+ /**
3406
+ * 열린 응답 유니온 — 알려진 유형은 판별 유니온으로 검사하고, **모르는 유형만** `{ type: "OTHER", rawType }`로 읽는다.
3407
+ *
3408
+ * `type: z.string()` 가지를 그대로 두면 TS가 `type === "SHIPPING"`으로 좁혀도 문자열 가지가 남는다. `OTHER` 리터럴로 바꿔 좁히기를
3409
+ * 지킨다. 알려진 유형의 모양이 틀린 응답은 폴백으로 숨기지 않고 파싱 오류로 둔다.
3410
+ */
3411
+ export declare function openFulfillmentUnion<T extends z.ZodType>(known: T): z.ZodUnion<readonly [T, z.ZodPipe<z.ZodObject<{
3412
+ type: z.ZodString;
3413
+ }, z.core.$loose>, z.ZodTransform<UnknownFulfillment, {
3414
+ [x: string]: unknown;
3415
+ type: string;
3416
+ }>>]>;
3417
+ export declare const productFulfillmentResponseSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
3418
+ type: z.ZodLiteral<"SHIPPING">;
3419
+ shipping: z.ZodObject<{
3420
+ deliveryType: z.ZodEnum<{
3421
+ FREE: "FREE";
3422
+ PAID: "PAID";
3423
+ CONDITIONAL_FREE: "CONDITIONAL_FREE";
3424
+ }>;
3425
+ deliveryFee: z.ZodNumber;
3426
+ conditionalFreeAmount: z.ZodNullable<z.ZodNumber>;
3427
+ shippingAddressId: z.ZodNullable<z.ZodString>;
3428
+ returnAddressId: z.ZodNullable<z.ZodString>;
3429
+ }, z.core.$strip>;
3430
+ }, z.core.$strip>, z.ZodObject<{
3431
+ type: z.ZodLiteral<"DOWNLOAD">;
3432
+ download: z.ZodObject<{
3433
+ limit: z.ZodNumber;
3434
+ days: z.ZodNumber;
3435
+ stockTracking: z.ZodBoolean;
3436
+ withdrawalRestricted: z.ZodBoolean;
3437
+ }, z.core.$strip>;
3438
+ }, z.core.$strip>, z.ZodObject<{
3439
+ type: z.ZodLiteral<"CODE">;
3440
+ code: z.ZodObject<{
3441
+ mode: z.ZodEnum<{
3442
+ AUTO: "AUTO";
3443
+ MANUAL: "MANUAL";
3444
+ }>;
3445
+ withdrawalRestricted: z.ZodBoolean;
3446
+ }, z.core.$strip>;
3447
+ }, z.core.$strip>, z.ZodObject<{
3448
+ type: z.ZodLiteral<"SERVICE">;
3449
+ service: z.ZodObject<{
3450
+ mode: z.ZodEnum<{
3451
+ AUTO: "AUTO";
3452
+ MANUAL: "MANUAL";
3453
+ }>;
3454
+ }, z.core.$strip>;
3455
+ }, z.core.$strip>, z.ZodObject<{
3456
+ type: z.ZodLiteral<"PICKUP">;
3457
+ pickup: z.ZodObject<{
3458
+ addressId: z.ZodNullable<z.ZodString>;
3459
+ }, z.core.$strip>;
3460
+ }, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
3461
+ type: z.ZodString;
3462
+ }, z.core.$loose>, z.ZodTransform<UnknownFulfillment, {
3463
+ [x: string]: unknown;
3464
+ type: string;
3465
+ }>>]>;
3466
+ export type ProductFulfillmentView = z.infer<typeof productFulfillmentResponseSchema>;
3467
+ /** 제공 방식 — CODE·SERVICE는 저장된 값, DOWNLOAD는 AUTO, PICKUP은 MANUAL, 배송 상품은 null */
3468
+ export declare function fulfillmentModeOf(fulfillment: ProductFulfillment): FulfillmentMode | null;
3469
+ /** 재고를 세는가 — 파일 다운로드만 끌 수 있다 */
3470
+ export declare function stockTrackingOf(fulfillment: ProductFulfillment): boolean;
3471
+ /** 청약철회 제한 대상인가 — 파일 다운로드·코드 발급만 켤 수 있다(전자상거래법 제17조 제2항 제5호, 디지털 콘텐츠) */
3472
+ export declare function withdrawalRestrictedOf(fulfillment: ProductFulfillment): boolean;
3473
+ /** 코드 풀을 쓰는가 — 코드 발급 + 자동 제공. 재고가 판매 가능 코드 수다 */
3474
+ export declare function usesCodePool(fulfillment: ProductFulfillment): boolean;
3475
+ /** 결제 확정과 함께 제공까지 끝내는가 — 비실물 + 자동 제공 */
3476
+ export declare function autoFulfillableOf(fulfillment: ProductFulfillment): boolean;
3477
+ /**
3478
+ * 주문상품의 주문 시점 이행 — 결제 확정이 주문서 줄에서 굳힌다. 상품의 현재 값이 아니다. 서버는 주문상품 컬럼
3479
+ * (`fulfillment_type`·`delivery_bundle_key`·`stock_tracked`·`withdrawal_restricted`)과 jsonb(`fulfillment_snapshot`)를 합쳐 이 모양을 만든다.
3480
+ *
3481
+ * `mode`는 **주문 시점 상품의 방식**이다. 실제 제공 방식은 제공 기록(`fulfillment.mode`)에 있고 다를 수 있다(자동 제공 상품의 수동 복구).
3482
+ */
3483
+ export declare const orderItemFulfillmentSnapshotSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3484
+ type: z.ZodLiteral<"SHIPPING">;
3485
+ shipping: z.ZodObject<{
3486
+ bundleKey: z.ZodNullable<z.ZodString>;
3487
+ returnAddressId: z.ZodNullable<z.ZodString>;
3488
+ }, z.core.$strip>;
3489
+ }, z.core.$strip>, z.ZodObject<{
3490
+ type: z.ZodLiteral<"DOWNLOAD">;
3491
+ download: z.ZodObject<{
3492
+ limit: z.ZodNumber;
3493
+ days: z.ZodNumber;
3494
+ stockTracked: z.ZodBoolean;
3495
+ withdrawalRestricted: z.ZodBoolean;
3496
+ }, z.core.$strip>;
3497
+ }, z.core.$strip>, z.ZodObject<{
3498
+ type: z.ZodLiteral<"CODE">;
3499
+ code: z.ZodObject<{
3500
+ mode: z.ZodString;
3501
+ withdrawalRestricted: z.ZodBoolean;
3502
+ }, z.core.$strip>;
3503
+ }, z.core.$strip>, z.ZodObject<{
3504
+ type: z.ZodLiteral<"SERVICE">;
3505
+ service: z.ZodObject<{
3506
+ mode: z.ZodString;
3507
+ }, z.core.$strip>;
3508
+ }, z.core.$strip>, z.ZodObject<{
3509
+ type: z.ZodLiteral<"PICKUP">;
3510
+ pickup: z.ZodObject<{
3511
+ addressId: z.ZodNullable<z.ZodString>;
3512
+ }, z.core.$strip>;
3513
+ }, z.core.$strip>], "type">;
3514
+ export type OrderItemFulfillmentSnapshot = z.infer<typeof orderItemFulfillmentSnapshotSchema>;
3515
+ export declare const orderItemFulfillmentSnapshotResponseSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
3516
+ type: z.ZodLiteral<"SHIPPING">;
3517
+ shipping: z.ZodObject<{
3518
+ bundleKey: z.ZodNullable<z.ZodString>;
3519
+ returnAddressId: z.ZodNullable<z.ZodString>;
3520
+ }, z.core.$strip>;
3521
+ }, z.core.$strip>, z.ZodObject<{
3522
+ type: z.ZodLiteral<"DOWNLOAD">;
3523
+ download: z.ZodObject<{
3524
+ limit: z.ZodNumber;
3525
+ days: z.ZodNumber;
3526
+ stockTracked: z.ZodBoolean;
3527
+ withdrawalRestricted: z.ZodBoolean;
3528
+ }, z.core.$strip>;
3529
+ }, z.core.$strip>, z.ZodObject<{
3530
+ type: z.ZodLiteral<"CODE">;
3531
+ code: z.ZodObject<{
3532
+ mode: z.ZodString;
3533
+ withdrawalRestricted: z.ZodBoolean;
3534
+ }, z.core.$strip>;
3535
+ }, z.core.$strip>, z.ZodObject<{
3536
+ type: z.ZodLiteral<"SERVICE">;
3537
+ service: z.ZodObject<{
3538
+ mode: z.ZodString;
3539
+ }, z.core.$strip>;
3540
+ }, z.core.$strip>, z.ZodObject<{
3541
+ type: z.ZodLiteral<"PICKUP">;
3542
+ pickup: z.ZodObject<{
3543
+ addressId: z.ZodNullable<z.ZodString>;
3544
+ }, z.core.$strip>;
3545
+ }, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
3546
+ type: z.ZodString;
3547
+ }, z.core.$loose>, z.ZodTransform<UnknownFulfillment, {
3548
+ [x: string]: unknown;
3549
+ type: string;
3550
+ }>>]>;
3551
+ export type OrderItemFulfillmentSnapshotView = z.infer<typeof orderItemFulfillmentSnapshotResponseSchema>;
3235
3552
  //#endregion
3236
3553
  //#region src/schemas/order.d.ts
3237
3554
  export declare const orderSummarySchema: z.ZodObject<{
@@ -3321,7 +3638,42 @@ export declare const orderItemSchema: z.ZodObject<{
3321
3638
  optionId: z.ZodNullable<z.ZodString>;
3322
3639
  optionName: z.ZodNullable<z.ZodString>;
3323
3640
  sellerCode: z.ZodNullable<z.ZodString>;
3324
- fulfillmentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3641
+ fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
3642
+ type: z.ZodLiteral<"SHIPPING">;
3643
+ shipping: z.ZodObject<{
3644
+ bundleKey: z.ZodNullable<z.ZodString>;
3645
+ returnAddressId: z.ZodNullable<z.ZodString>;
3646
+ }, z.core.$strip>;
3647
+ }, z.core.$strip>, z.ZodObject<{
3648
+ type: z.ZodLiteral<"DOWNLOAD">;
3649
+ download: z.ZodObject<{
3650
+ limit: z.ZodNumber;
3651
+ days: z.ZodNumber;
3652
+ stockTracked: z.ZodBoolean;
3653
+ withdrawalRestricted: z.ZodBoolean;
3654
+ }, z.core.$strip>;
3655
+ }, z.core.$strip>, z.ZodObject<{
3656
+ type: z.ZodLiteral<"CODE">;
3657
+ code: z.ZodObject<{
3658
+ mode: z.ZodString;
3659
+ withdrawalRestricted: z.ZodBoolean;
3660
+ }, z.core.$strip>;
3661
+ }, z.core.$strip>, z.ZodObject<{
3662
+ type: z.ZodLiteral<"SERVICE">;
3663
+ service: z.ZodObject<{
3664
+ mode: z.ZodString;
3665
+ }, z.core.$strip>;
3666
+ }, z.core.$strip>, z.ZodObject<{
3667
+ type: z.ZodLiteral<"PICKUP">;
3668
+ pickup: z.ZodObject<{
3669
+ addressId: z.ZodNullable<z.ZodString>;
3670
+ }, z.core.$strip>;
3671
+ }, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
3672
+ type: z.ZodString;
3673
+ }, z.core.$loose>, z.ZodTransform<UnknownFulfillment, {
3674
+ [x: string]: unknown;
3675
+ type: string;
3676
+ }>>]>;
3325
3677
  quantity: z.ZodNumber;
3326
3678
  canceledQuantity: z.ZodNumber;
3327
3679
  activeQuantity: z.ZodNumber;
@@ -3377,7 +3729,6 @@ export declare const orderItemSchema: z.ZodObject<{
3377
3729
  "CLAIM.EXCHANGE_REQUESTED": "CLAIM.EXCHANGE_REQUESTED";
3378
3730
  "CLAIM.COMPLETED": "CLAIM.COMPLETED";
3379
3731
  }>;
3380
- withdrawalRestricted: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3381
3732
  testPayment: z.ZodBoolean;
3382
3733
  }, z.core.$strip>;
3383
3734
  export type OrderItem = z.infer<typeof orderItemSchema>;
@@ -3481,7 +3832,42 @@ export declare const orderSchema: z.ZodObject<{
3481
3832
  optionId: z.ZodNullable<z.ZodString>;
3482
3833
  optionName: z.ZodNullable<z.ZodString>;
3483
3834
  sellerCode: z.ZodNullable<z.ZodString>;
3484
- fulfillmentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3835
+ fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
3836
+ type: z.ZodLiteral<"SHIPPING">;
3837
+ shipping: z.ZodObject<{
3838
+ bundleKey: z.ZodNullable<z.ZodString>;
3839
+ returnAddressId: z.ZodNullable<z.ZodString>;
3840
+ }, z.core.$strip>;
3841
+ }, z.core.$strip>, z.ZodObject<{
3842
+ type: z.ZodLiteral<"DOWNLOAD">;
3843
+ download: z.ZodObject<{
3844
+ limit: z.ZodNumber;
3845
+ days: z.ZodNumber;
3846
+ stockTracked: z.ZodBoolean;
3847
+ withdrawalRestricted: z.ZodBoolean;
3848
+ }, z.core.$strip>;
3849
+ }, z.core.$strip>, z.ZodObject<{
3850
+ type: z.ZodLiteral<"CODE">;
3851
+ code: z.ZodObject<{
3852
+ mode: z.ZodString;
3853
+ withdrawalRestricted: z.ZodBoolean;
3854
+ }, z.core.$strip>;
3855
+ }, z.core.$strip>, z.ZodObject<{
3856
+ type: z.ZodLiteral<"SERVICE">;
3857
+ service: z.ZodObject<{
3858
+ mode: z.ZodString;
3859
+ }, z.core.$strip>;
3860
+ }, z.core.$strip>, z.ZodObject<{
3861
+ type: z.ZodLiteral<"PICKUP">;
3862
+ pickup: z.ZodObject<{
3863
+ addressId: z.ZodNullable<z.ZodString>;
3864
+ }, z.core.$strip>;
3865
+ }, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
3866
+ type: z.ZodString;
3867
+ }, z.core.$loose>, z.ZodTransform<UnknownFulfillment, {
3868
+ [x: string]: unknown;
3869
+ type: string;
3870
+ }>>]>;
3485
3871
  quantity: z.ZodNumber;
3486
3872
  canceledQuantity: z.ZodNumber;
3487
3873
  activeQuantity: z.ZodNumber;
@@ -3537,7 +3923,6 @@ export declare const orderSchema: z.ZodObject<{
3537
3923
  "CLAIM.EXCHANGE_REQUESTED": "CLAIM.EXCHANGE_REQUESTED";
3538
3924
  "CLAIM.COMPLETED": "CLAIM.COMPLETED";
3539
3925
  }>;
3540
- withdrawalRestricted: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3541
3926
  testPayment: z.ZodBoolean;
3542
3927
  }, z.core.$strip>>;
3543
3928
  }, z.core.$strip>;
@@ -3597,7 +3982,42 @@ export declare const orderItemPageSchema: z.ZodObject<{
3597
3982
  optionId: z.ZodNullable<z.ZodString>;
3598
3983
  optionName: z.ZodNullable<z.ZodString>;
3599
3984
  sellerCode: z.ZodNullable<z.ZodString>;
3600
- fulfillmentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
3985
+ fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
3986
+ type: z.ZodLiteral<"SHIPPING">;
3987
+ shipping: z.ZodObject<{
3988
+ bundleKey: z.ZodNullable<z.ZodString>;
3989
+ returnAddressId: z.ZodNullable<z.ZodString>;
3990
+ }, z.core.$strip>;
3991
+ }, z.core.$strip>, z.ZodObject<{
3992
+ type: z.ZodLiteral<"DOWNLOAD">;
3993
+ download: z.ZodObject<{
3994
+ limit: z.ZodNumber;
3995
+ days: z.ZodNumber;
3996
+ stockTracked: z.ZodBoolean;
3997
+ withdrawalRestricted: z.ZodBoolean;
3998
+ }, z.core.$strip>;
3999
+ }, z.core.$strip>, z.ZodObject<{
4000
+ type: z.ZodLiteral<"CODE">;
4001
+ code: z.ZodObject<{
4002
+ mode: z.ZodString;
4003
+ withdrawalRestricted: z.ZodBoolean;
4004
+ }, z.core.$strip>;
4005
+ }, z.core.$strip>, z.ZodObject<{
4006
+ type: z.ZodLiteral<"SERVICE">;
4007
+ service: z.ZodObject<{
4008
+ mode: z.ZodString;
4009
+ }, z.core.$strip>;
4010
+ }, z.core.$strip>, z.ZodObject<{
4011
+ type: z.ZodLiteral<"PICKUP">;
4012
+ pickup: z.ZodObject<{
4013
+ addressId: z.ZodNullable<z.ZodString>;
4014
+ }, z.core.$strip>;
4015
+ }, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
4016
+ type: z.ZodString;
4017
+ }, z.core.$loose>, z.ZodTransform<UnknownFulfillment, {
4018
+ [x: string]: unknown;
4019
+ type: string;
4020
+ }>>]>;
3601
4021
  quantity: z.ZodNumber;
3602
4022
  canceledQuantity: z.ZodNumber;
3603
4023
  activeQuantity: z.ZodNumber;
@@ -3653,7 +4073,6 @@ export declare const orderItemPageSchema: z.ZodObject<{
3653
4073
  "CLAIM.EXCHANGE_REQUESTED": "CLAIM.EXCHANGE_REQUESTED";
3654
4074
  "CLAIM.COMPLETED": "CLAIM.COMPLETED";
3655
4075
  }>;
3656
- withdrawalRestricted: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3657
4076
  testPayment: z.ZodBoolean;
3658
4077
  }, z.core.$strip>>;
3659
4078
  }, z.core.$strip>;
@@ -3717,7 +4136,7 @@ export interface OrderListParams extends PageParams {
3717
4136
  status?: z.infer<typeof orderItemStatusSchema>;
3718
4137
  keyword?: string;
3719
4138
  /** 상품 유형 필터 — 이 유형의 주문상품이 하나라도 있는 주문(이슈 #48) */
3720
- fulfillmentType?: z.infer<typeof fulfillmentTypeResponseSchema>;
4139
+ fulfillmentType?: string;
3721
4140
  /** 테스트 결제 필터 — `"true"` 테스트 결제만, `"false"` 실결제만, 생략하면 전부 */
3722
4141
  testPayment?: "true" | "false";
3723
4142
  }
@@ -3939,8 +4358,8 @@ export declare const pgEnvironmentSchema: z.ZodEnum<{
3939
4358
  }>;
3940
4359
  export type PgEnvironment = z.infer<typeof pgEnvironmentSchema>;
3941
4360
  export declare const pgVerificationResultSchema: z.ZodEnum<{
3942
- FAILED: "FAILED";
3943
4361
  SUCCESS: "SUCCESS";
4362
+ FAILED: "FAILED";
3944
4363
  }>;
3945
4364
  export type PgVerificationResult = z.infer<typeof pgVerificationResultSchema>;
3946
4365
  /**
@@ -4089,8 +4508,8 @@ export declare const paymentCredentialSetSchema: z.ZodObject<{
4089
4508
  }, z.core.$strip>>;
4090
4509
  lastVerification: z.ZodNullable<z.ZodObject<{
4091
4510
  result: z.ZodEnum<{
4092
- FAILED: "FAILED";
4093
4511
  SUCCESS: "SUCCESS";
4512
+ FAILED: "FAILED";
4094
4513
  }>;
4095
4514
  message: z.ZodNullable<z.ZodString>;
4096
4515
  checkedAt: z.ZodString;
@@ -4191,8 +4610,8 @@ export declare const paymentProviderSchema: z.ZodObject<{
4191
4610
  }, z.core.$strip>>;
4192
4611
  lastVerification: z.ZodNullable<z.ZodObject<{
4193
4612
  result: z.ZodEnum<{
4194
- FAILED: "FAILED";
4195
4613
  SUCCESS: "SUCCESS";
4614
+ FAILED: "FAILED";
4196
4615
  }>;
4197
4616
  message: z.ZodNullable<z.ZodString>;
4198
4617
  checkedAt: z.ZodString;
@@ -4228,8 +4647,8 @@ export declare const paymentProviderSchema: z.ZodObject<{
4228
4647
  }, z.core.$strip>>;
4229
4648
  lastVerification: z.ZodNullable<z.ZodObject<{
4230
4649
  result: z.ZodEnum<{
4231
- FAILED: "FAILED";
4232
4650
  SUCCESS: "SUCCESS";
4651
+ FAILED: "FAILED";
4233
4652
  }>;
4234
4653
  message: z.ZodNullable<z.ZodString>;
4235
4654
  checkedAt: z.ZodString;
@@ -4264,8 +4683,8 @@ export declare const paymentProviderSchema: z.ZodObject<{
4264
4683
  }, z.core.$strip>>;
4265
4684
  lastVerification: z.ZodNullable<z.ZodObject<{
4266
4685
  result: z.ZodEnum<{
4267
- FAILED: "FAILED";
4268
4686
  SUCCESS: "SUCCESS";
4687
+ FAILED: "FAILED";
4269
4688
  }>;
4270
4689
  message: z.ZodNullable<z.ZodString>;
4271
4690
  checkedAt: z.ZodString;
@@ -4340,8 +4759,8 @@ export declare const paymentSettingsSchema: z.ZodObject<{
4340
4759
  }, z.core.$strip>>;
4341
4760
  lastVerification: z.ZodNullable<z.ZodObject<{
4342
4761
  result: z.ZodEnum<{
4343
- FAILED: "FAILED";
4344
4762
  SUCCESS: "SUCCESS";
4763
+ FAILED: "FAILED";
4345
4764
  }>;
4346
4765
  message: z.ZodNullable<z.ZodString>;
4347
4766
  checkedAt: z.ZodString;
@@ -4377,8 +4796,8 @@ export declare const paymentSettingsSchema: z.ZodObject<{
4377
4796
  }, z.core.$strip>>;
4378
4797
  lastVerification: z.ZodNullable<z.ZodObject<{
4379
4798
  result: z.ZodEnum<{
4380
- FAILED: "FAILED";
4381
4799
  SUCCESS: "SUCCESS";
4800
+ FAILED: "FAILED";
4382
4801
  }>;
4383
4802
  message: z.ZodNullable<z.ZodString>;
4384
4803
  checkedAt: z.ZodString;
@@ -4413,8 +4832,8 @@ export declare const paymentSettingsSchema: z.ZodObject<{
4413
4832
  }, z.core.$strip>>;
4414
4833
  lastVerification: z.ZodNullable<z.ZodObject<{
4415
4834
  result: z.ZodEnum<{
4416
- FAILED: "FAILED";
4417
4835
  SUCCESS: "SUCCESS";
4836
+ FAILED: "FAILED";
4418
4837
  }>;
4419
4838
  message: z.ZodNullable<z.ZodString>;
4420
4839
  checkedAt: z.ZodString;
@@ -4461,8 +4880,8 @@ export declare const paymentProviderVerificationSchema: z.ZodObject<{
4461
4880
  LIVE: "LIVE";
4462
4881
  }>;
4463
4882
  result: z.ZodEnum<{
4464
- FAILED: "FAILED";
4465
4883
  SUCCESS: "SUCCESS";
4884
+ FAILED: "FAILED";
4466
4885
  }>;
4467
4886
  message: z.ZodNullable<z.ZodString>;
4468
4887
  checkedAt: z.ZodString;
@@ -4592,8 +5011,8 @@ export type SalesReport = z.infer<typeof salesReportSchema>;
4592
5011
  * - `FAILED`: 승인되지 않고 끝났다(거절·준비 장애·구매자 취소·만료)
4593
5012
  */
4594
5013
  export declare const paymentRecordStatusSchema: z.ZodEnum<{
4595
- FAILED: "FAILED";
4596
5014
  PENDING: "PENDING";
5015
+ FAILED: "FAILED";
4597
5016
  APPROVED: "APPROVED";
4598
5017
  PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
4599
5018
  REFUNDED: "REFUNDED";
@@ -4640,8 +5059,8 @@ export declare const paymentRecordSchema: z.ZodObject<{
4640
5059
  orderName: z.ZodString;
4641
5060
  customerName: z.ZodString;
4642
5061
  status: z.ZodEnum<{
4643
- FAILED: "FAILED";
4644
5062
  PENDING: "PENDING";
5063
+ FAILED: "FAILED";
4645
5064
  APPROVED: "APPROVED";
4646
5065
  PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
4647
5066
  REFUNDED: "REFUNDED";
@@ -4686,8 +5105,8 @@ export declare const paymentRecordPageSchema: z.ZodObject<{
4686
5105
  orderName: z.ZodString;
4687
5106
  customerName: z.ZodString;
4688
5107
  status: z.ZodEnum<{
4689
- FAILED: "FAILED";
4690
5108
  PENDING: "PENDING";
5109
+ FAILED: "FAILED";
4691
5110
  APPROVED: "APPROVED";
4692
5111
  PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
4693
5112
  REFUNDED: "REFUNDED";
@@ -4775,8 +5194,8 @@ export declare const paymentRecordDetailSchema: z.ZodObject<{
4775
5194
  orderName: z.ZodString;
4776
5195
  customerName: z.ZodString;
4777
5196
  status: z.ZodEnum<{
4778
- FAILED: "FAILED";
4779
5197
  PENDING: "PENDING";
5198
+ FAILED: "FAILED";
4780
5199
  APPROVED: "APPROVED";
4781
5200
  PARTIALLY_REFUNDED: "PARTIALLY_REFUNDED";
4782
5201
  REFUNDED: "REFUNDED";
@@ -4903,26 +5322,20 @@ export interface PaymentListParams extends PageParams {
4903
5322
  //#endregion
4904
5323
  //#region src/schemas/product.d.ts
4905
5324
  export declare const productStatusSchema: z.ZodEnum<{
4906
- SALE: "SALE";
4907
5325
  SUSPENDED: "SUSPENDED";
4908
- OUT_OF_STOCK: "OUT_OF_STOCK";
4909
5326
  CLOSED: "CLOSED";
5327
+ SALE: "SALE";
5328
+ OUT_OF_STOCK: "OUT_OF_STOCK";
4910
5329
  }>;
4911
5330
  export type ProductStatus = z.infer<typeof productStatusSchema>;
4912
- export declare const deliveryTypeSchema: z.ZodEnum<{
4913
- FREE: "FREE";
4914
- PAID: "PAID";
4915
- CONDITIONAL_FREE: "CONDITIONAL_FREE";
4916
- }>;
4917
- export type DeliveryType = z.infer<typeof deliveryTypeSchema>;
4918
5331
  export declare const productSummarySchema: z.ZodObject<{
4919
5332
  productId: z.ZodString;
4920
5333
  name: z.ZodString;
4921
5334
  status: z.ZodEnum<{
4922
- SALE: "SALE";
4923
5335
  SUSPENDED: "SUSPENDED";
4924
- OUT_OF_STOCK: "OUT_OF_STOCK";
4925
5336
  CLOSED: "CLOSED";
5337
+ SALE: "SALE";
5338
+ OUT_OF_STOCK: "OUT_OF_STOCK";
4926
5339
  }>;
4927
5340
  salePrice: z.ZodNumber;
4928
5341
  discountedPrice: z.ZodNullable<z.ZodNumber>;
@@ -4930,7 +5343,9 @@ export declare const productSummarySchema: z.ZodObject<{
4930
5343
  categoryId: z.ZodNullable<z.ZodString>;
4931
5344
  thumbnailUrl: z.ZodOptional<z.ZodURL>;
4932
5345
  hasOptions: z.ZodBoolean;
4933
- fulfillmentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
5346
+ fulfillment: z.ZodObject<{
5347
+ type: z.ZodString;
5348
+ }, z.core.$strip>;
4934
5349
  updatedAt: z.ZodString;
4935
5350
  }, z.core.$strip>;
4936
5351
  export type ProductSummary = z.infer<typeof productSummarySchema>;
@@ -4987,10 +5402,10 @@ export declare const productSchema: z.ZodObject<{
4987
5402
  productId: z.ZodString;
4988
5403
  name: z.ZodString;
4989
5404
  status: z.ZodEnum<{
4990
- SALE: "SALE";
4991
5405
  SUSPENDED: "SUSPENDED";
4992
- OUT_OF_STOCK: "OUT_OF_STOCK";
4993
5406
  CLOSED: "CLOSED";
5407
+ SALE: "SALE";
5408
+ OUT_OF_STOCK: "OUT_OF_STOCK";
4994
5409
  }>;
4995
5410
  salePrice: z.ZodNumber;
4996
5411
  discountedPrice: z.ZodNullable<z.ZodNumber>;
@@ -4999,25 +5414,6 @@ export declare const productSchema: z.ZodObject<{
4999
5414
  thumbnailUrl: z.ZodOptional<z.ZodURL>;
5000
5415
  hasOptions: z.ZodBoolean;
5001
5416
  updatedAt: z.ZodString;
5002
- discount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5003
- productId: z.ZodString;
5004
- discountType: z.ZodEnum<{
5005
- RATE: "RATE";
5006
- AMOUNT: "AMOUNT";
5007
- }>;
5008
- discountValue: z.ZodNumber;
5009
- discountedPrice: z.ZodNumber;
5010
- startAt: z.ZodNullable<z.ZodString>;
5011
- endAt: z.ZodNullable<z.ZodString>;
5012
- }, z.core.$strip>>>;
5013
- createdAt: z.ZodOptional<z.ZodString>;
5014
- fulfillmentType: z.ZodDefault<z.ZodOptional<z.ZodString>>;
5015
- fulfillmentMode: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5016
- stockTracking: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5017
- downloadLimit: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
5018
- downloadDays: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
5019
- withdrawalRestricted: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
5020
- pickupAddressId: z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
5021
5417
  description: z.ZodOptional<z.ZodString>;
5022
5418
  descriptionJson: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5023
5419
  originalPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -5049,24 +5445,75 @@ export declare const productSchema: z.ZodObject<{
5049
5445
  sellerCode: z.ZodNullable<z.ZodString>;
5050
5446
  usable: z.ZodBoolean;
5051
5447
  }, z.core.$strip>>;
5052
- deliveryType: z.ZodOptional<z.ZodEnum<{
5053
- FREE: "FREE";
5054
- PAID: "PAID";
5055
- CONDITIONAL_FREE: "CONDITIONAL_FREE";
5056
- }>>;
5057
- deliveryFee: z.ZodOptional<z.ZodNumber>;
5058
- conditionalFreeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5059
- returnFee: z.ZodOptional<z.ZodNumber>;
5060
- exchangeFee: z.ZodOptional<z.ZodNumber>;
5061
- refundPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5448
+ fulfillment: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
5449
+ type: z.ZodLiteral<"SHIPPING">;
5450
+ shipping: z.ZodObject<{
5451
+ deliveryType: z.ZodEnum<{
5452
+ FREE: "FREE";
5453
+ PAID: "PAID";
5454
+ CONDITIONAL_FREE: "CONDITIONAL_FREE";
5455
+ }>;
5456
+ deliveryFee: z.ZodNumber;
5457
+ conditionalFreeAmount: z.ZodNullable<z.ZodNumber>;
5458
+ shippingAddressId: z.ZodNullable<z.ZodString>;
5459
+ returnAddressId: z.ZodNullable<z.ZodString>;
5460
+ }, z.core.$strip>;
5461
+ }, z.core.$strip>, z.ZodObject<{
5462
+ type: z.ZodLiteral<"DOWNLOAD">;
5463
+ download: z.ZodObject<{
5464
+ limit: z.ZodNumber;
5465
+ days: z.ZodNumber;
5466
+ stockTracking: z.ZodBoolean;
5467
+ withdrawalRestricted: z.ZodBoolean;
5468
+ }, z.core.$strip>;
5469
+ }, z.core.$strip>, z.ZodObject<{
5470
+ type: z.ZodLiteral<"CODE">;
5471
+ code: z.ZodObject<{
5472
+ mode: z.ZodEnum<{
5473
+ AUTO: "AUTO";
5474
+ MANUAL: "MANUAL";
5475
+ }>;
5476
+ withdrawalRestricted: z.ZodBoolean;
5477
+ }, z.core.$strip>;
5478
+ }, z.core.$strip>, z.ZodObject<{
5479
+ type: z.ZodLiteral<"SERVICE">;
5480
+ service: z.ZodObject<{
5481
+ mode: z.ZodEnum<{
5482
+ AUTO: "AUTO";
5483
+ MANUAL: "MANUAL";
5484
+ }>;
5485
+ }, z.core.$strip>;
5486
+ }, z.core.$strip>, z.ZodObject<{
5487
+ type: z.ZodLiteral<"PICKUP">;
5488
+ pickup: z.ZodObject<{
5489
+ addressId: z.ZodNullable<z.ZodString>;
5490
+ }, z.core.$strip>;
5491
+ }, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
5492
+ type: z.ZodString;
5493
+ }, z.core.$loose>, z.ZodTransform<UnknownFulfillment, {
5494
+ [x: string]: unknown;
5495
+ type: string;
5496
+ }>>]>;
5497
+ fulfillmentTypeLocked: z.ZodBoolean;
5498
+ refundPolicy: z.ZodNullable<z.ZodObject<{
5062
5499
  preShipmentDeliveryFeeRefund: z.ZodOptional<z.ZodBoolean>;
5063
5500
  returnDeliveryFee: z.ZodOptional<z.ZodNumber>;
5064
5501
  exchangeDeliveryFee: z.ZodOptional<z.ZodNumber>;
5065
5502
  sellerFaultFreeShipping: z.ZodOptional<z.ZodBoolean>;
5066
5503
  conditionalFreeShortfallCharge: z.ZodOptional<z.ZodBoolean>;
5067
- }, z.core.$strict>>>;
5068
- shippingAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5069
- returnAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5504
+ }, z.core.$strict>>;
5505
+ discount: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5506
+ productId: z.ZodString;
5507
+ discountType: z.ZodEnum<{
5508
+ RATE: "RATE";
5509
+ AMOUNT: "AMOUNT";
5510
+ }>;
5511
+ discountValue: z.ZodNumber;
5512
+ discountedPrice: z.ZodNumber;
5513
+ startAt: z.ZodNullable<z.ZodString>;
5514
+ endAt: z.ZodNullable<z.ZodString>;
5515
+ }, z.core.$strip>>>;
5516
+ createdAt: z.ZodOptional<z.ZodString>;
5070
5517
  }, z.core.$strip>;
5071
5518
  export type Product = z.infer<typeof productSchema>;
5072
5519
  /** 상품 하나에 등록할 수 있는 이미지 최대 장수 — 첫 장이 대표(썸네일)다 */
@@ -5201,22 +5648,70 @@ export declare const variantStockSchema: z.ZodObject<{
5201
5648
  }, z.core.$strip>;
5202
5649
  export type VariantStock = z.infer<typeof variantStockSchema>;
5203
5650
  export declare const productCreateRequestSchema: z.ZodObject<{
5204
- fulfillmentType: z.ZodOptional<z.ZodEnum<{
5205
- SHIPPING: "SHIPPING";
5206
- DOWNLOAD: "DOWNLOAD";
5207
- CODE: "CODE";
5208
- SERVICE: "SERVICE";
5209
- PICKUP: "PICKUP";
5210
- }>>;
5211
- fulfillmentMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
5212
- AUTO: "AUTO";
5213
- MANUAL: "MANUAL";
5214
- }>>>;
5215
- stockTracking: z.ZodOptional<z.ZodBoolean>;
5216
- downloadLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5217
- downloadDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5218
- withdrawalRestricted: z.ZodOptional<z.ZodBoolean>;
5219
- pickupAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5651
+ fulfillment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5652
+ type: z.ZodLiteral<"SHIPPING">;
5653
+ shipping: z.ZodOptional<z.ZodObject<{
5654
+ deliveryType: z.ZodDefault<z.ZodEnum<{
5655
+ FREE: "FREE";
5656
+ PAID: "PAID";
5657
+ CONDITIONAL_FREE: "CONDITIONAL_FREE";
5658
+ }>>;
5659
+ deliveryFee: z.ZodOptional<z.ZodNumber>;
5660
+ conditionalFreeAmount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5661
+ shippingAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5662
+ returnAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5663
+ }, z.core.$strict>>;
5664
+ }, z.core.$strict>, z.ZodObject<{
5665
+ type: z.ZodLiteral<"DOWNLOAD">;
5666
+ download: z.ZodDefault<z.ZodObject<{
5667
+ limit: z.ZodDefault<z.ZodNumber>;
5668
+ days: z.ZodDefault<z.ZodNumber>;
5669
+ stockTracking: z.ZodDefault<z.ZodBoolean>;
5670
+ withdrawalRestricted: z.ZodDefault<z.ZodBoolean>;
5671
+ }, z.core.$strict>>;
5672
+ }, z.core.$strict>, z.ZodObject<{
5673
+ type: z.ZodLiteral<"CODE">;
5674
+ code: z.ZodDefault<z.ZodObject<{
5675
+ mode: z.ZodDefault<z.ZodEnum<{
5676
+ AUTO: "AUTO";
5677
+ MANUAL: "MANUAL";
5678
+ }>>;
5679
+ withdrawalRestricted: z.ZodDefault<z.ZodBoolean>;
5680
+ }, z.core.$strict>>;
5681
+ }, z.core.$strict>, z.ZodObject<{
5682
+ type: z.ZodLiteral<"SERVICE">;
5683
+ service: z.ZodDefault<z.ZodObject<{
5684
+ mode: z.ZodDefault<z.ZodEnum<{
5685
+ AUTO: "AUTO";
5686
+ MANUAL: "MANUAL";
5687
+ }>>;
5688
+ }, z.core.$strict>>;
5689
+ }, z.core.$strict>, z.ZodObject<{
5690
+ type: z.ZodLiteral<"PICKUP">;
5691
+ pickup: z.ZodDefault<z.ZodObject<{
5692
+ addressId: z.ZodOptional<z.ZodString>;
5693
+ }, z.core.$strict>>;
5694
+ }, z.core.$strict>], "type">>;
5695
+ optionGroups: z.ZodDefault<z.ZodArray<z.ZodObject<{
5696
+ groupId: z.ZodOptional<z.ZodString>;
5697
+ name: z.ZodString;
5698
+ values: z.ZodArray<z.ZodObject<{
5699
+ valueId: z.ZodOptional<z.ZodString>;
5700
+ name: z.ZodString;
5701
+ }, z.core.$strip>>;
5702
+ }, z.core.$strip>>>;
5703
+ variants: z.ZodArray<z.ZodObject<{
5704
+ variantId: z.ZodOptional<z.ZodString>;
5705
+ valueNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
5706
+ additionalPrice: z.ZodDefault<z.ZodNumber>;
5707
+ stockQuantity: z.ZodOptional<z.ZodNumber>;
5708
+ sku: z.ZodOptional<z.ZodString>;
5709
+ barcode: z.ZodOptional<z.ZodString>;
5710
+ costPrice: z.ZodOptional<z.ZodNumber>;
5711
+ weightGram: z.ZodOptional<z.ZodNumber>;
5712
+ sellerCode: z.ZodOptional<z.ZodString>;
5713
+ usable: z.ZodDefault<z.ZodBoolean>;
5714
+ }, z.core.$strip>>;
5220
5715
  name: z.ZodString;
5221
5716
  categoryId: z.ZodString;
5222
5717
  salePrice: z.ZodNumber;
@@ -5228,15 +5723,6 @@ export declare const productCreateRequestSchema: z.ZodObject<{
5228
5723
  attributeId: z.ZodString;
5229
5724
  value: z.ZodString;
5230
5725
  }, z.core.$strip>>>;
5231
- deliveryType: z.ZodDefault<z.ZodEnum<{
5232
- FREE: "FREE";
5233
- PAID: "PAID";
5234
- CONDITIONAL_FREE: "CONDITIONAL_FREE";
5235
- }>>;
5236
- deliveryFee: z.ZodOptional<z.ZodNumber>;
5237
- conditionalFreeAmount: z.ZodOptional<z.ZodNumber>;
5238
- returnFee: z.ZodDefault<z.ZodNumber>;
5239
- exchangeFee: z.ZodDefault<z.ZodNumber>;
5240
5726
  refundPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5241
5727
  preShipmentDeliveryFeeRefund: z.ZodOptional<z.ZodBoolean>;
5242
5728
  returnDeliveryFee: z.ZodOptional<z.ZodNumber>;
@@ -5244,8 +5730,55 @@ export declare const productCreateRequestSchema: z.ZodObject<{
5244
5730
  sellerFaultFreeShipping: z.ZodOptional<z.ZodBoolean>;
5245
5731
  conditionalFreeShortfallCharge: z.ZodOptional<z.ZodBoolean>;
5246
5732
  }, z.core.$strict>>>;
5247
- shippingAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5248
- returnAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5733
+ }, z.core.$strict>;
5734
+ export type ProductCreateRequest = z.infer<typeof productCreateRequestSchema>;
5735
+ export type ProductCreateRequestInput = z.input<typeof productCreateRequestSchema>;
5736
+ /** 전체 수정(PUT) — 공통 필드는 등록과 같고, 이행은 생략하면 현재 값 유지, 주면 필드가 모두 필수다 */
5737
+ export declare const productReplaceRequestSchema: z.ZodObject<{
5738
+ fulfillment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5739
+ type: z.ZodLiteral<"SHIPPING">;
5740
+ shipping: z.ZodObject<{
5741
+ deliveryType: z.ZodEnum<{
5742
+ FREE: "FREE";
5743
+ PAID: "PAID";
5744
+ CONDITIONAL_FREE: "CONDITIONAL_FREE";
5745
+ }>;
5746
+ deliveryFee: z.ZodNumber;
5747
+ conditionalFreeAmount: z.ZodNullable<z.ZodNumber>;
5748
+ shippingAddressId: z.ZodNullable<z.ZodString>;
5749
+ returnAddressId: z.ZodNullable<z.ZodString>;
5750
+ }, z.core.$strict>;
5751
+ }, z.core.$strict>, z.ZodObject<{
5752
+ type: z.ZodLiteral<"DOWNLOAD">;
5753
+ download: z.ZodObject<{
5754
+ limit: z.ZodNumber;
5755
+ days: z.ZodNumber;
5756
+ stockTracking: z.ZodBoolean;
5757
+ withdrawalRestricted: z.ZodBoolean;
5758
+ }, z.core.$strict>;
5759
+ }, z.core.$strict>, z.ZodObject<{
5760
+ type: z.ZodLiteral<"CODE">;
5761
+ code: z.ZodObject<{
5762
+ mode: z.ZodEnum<{
5763
+ AUTO: "AUTO";
5764
+ MANUAL: "MANUAL";
5765
+ }>;
5766
+ withdrawalRestricted: z.ZodBoolean;
5767
+ }, z.core.$strict>;
5768
+ }, z.core.$strict>, z.ZodObject<{
5769
+ type: z.ZodLiteral<"SERVICE">;
5770
+ service: z.ZodObject<{
5771
+ mode: z.ZodEnum<{
5772
+ AUTO: "AUTO";
5773
+ MANUAL: "MANUAL";
5774
+ }>;
5775
+ }, z.core.$strict>;
5776
+ }, z.core.$strict>, z.ZodObject<{
5777
+ type: z.ZodLiteral<"PICKUP">;
5778
+ pickup: z.ZodObject<{
5779
+ addressId: z.ZodString;
5780
+ }, z.core.$strict>;
5781
+ }, z.core.$strict>], "type">>;
5249
5782
  optionGroups: z.ZodDefault<z.ZodArray<z.ZodObject<{
5250
5783
  groupId: z.ZodOptional<z.ZodString>;
5251
5784
  name: z.ZodString;
@@ -5266,37 +5799,88 @@ export declare const productCreateRequestSchema: z.ZodObject<{
5266
5799
  sellerCode: z.ZodOptional<z.ZodString>;
5267
5800
  usable: z.ZodDefault<z.ZodBoolean>;
5268
5801
  }, z.core.$strip>>;
5269
- }, z.core.$strip>;
5270
- export type ProductCreateRequest = z.infer<typeof productCreateRequestSchema>;
5802
+ name: z.ZodString;
5803
+ categoryId: z.ZodString;
5804
+ salePrice: z.ZodNumber;
5805
+ originalPrice: z.ZodOptional<z.ZodNumber>;
5806
+ description: z.ZodOptional<z.ZodString>;
5807
+ descriptionJson: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5808
+ images: z.ZodOptional<z.ZodArray<z.ZodURL>>;
5809
+ attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
5810
+ attributeId: z.ZodString;
5811
+ value: z.ZodString;
5812
+ }, z.core.$strip>>>;
5813
+ refundPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5814
+ preShipmentDeliveryFeeRefund: z.ZodOptional<z.ZodBoolean>;
5815
+ returnDeliveryFee: z.ZodOptional<z.ZodNumber>;
5816
+ exchangeDeliveryFee: z.ZodOptional<z.ZodNumber>;
5817
+ sellerFaultFreeShipping: z.ZodOptional<z.ZodBoolean>;
5818
+ conditionalFreeShortfallCharge: z.ZodOptional<z.ZodBoolean>;
5819
+ }, z.core.$strict>>>;
5820
+ }, z.core.$strict>;
5821
+ export type ProductReplaceRequest = z.infer<typeof productReplaceRequestSchema>;
5822
+ export type ProductReplaceRequestInput = z.input<typeof productReplaceRequestSchema>;
5271
5823
  export declare const productPatchRequestSchema: z.ZodObject<{
5272
- fulfillmentType: z.ZodOptional<z.ZodEnum<{
5273
- SHIPPING: "SHIPPING";
5274
- DOWNLOAD: "DOWNLOAD";
5275
- CODE: "CODE";
5276
- SERVICE: "SERVICE";
5277
- PICKUP: "PICKUP";
5278
- }>>;
5279
- fulfillmentMode: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
5280
- AUTO: "AUTO";
5281
- MANUAL: "MANUAL";
5282
- }>>>;
5283
- stockTracking: z.ZodOptional<z.ZodBoolean>;
5284
- downloadLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5285
- downloadDays: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
5286
- withdrawalRestricted: z.ZodOptional<z.ZodBoolean>;
5287
- pickupAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5288
5824
  name: z.ZodOptional<z.ZodString>;
5289
5825
  salePrice: z.ZodOptional<z.ZodNumber>;
5290
5826
  status: z.ZodOptional<z.ZodEnum<{
5291
- SALE: "SALE";
5292
5827
  SUSPENDED: "SUSPENDED";
5293
- OUT_OF_STOCK: "OUT_OF_STOCK";
5294
5828
  CLOSED: "CLOSED";
5829
+ SALE: "SALE";
5830
+ OUT_OF_STOCK: "OUT_OF_STOCK";
5295
5831
  }>>;
5296
- deliveryFee: z.ZodOptional<z.ZodNumber>;
5297
- shippingAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5298
- returnAddressId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5299
- }, z.core.$strip>;
5832
+ fulfillment: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
5833
+ type: z.ZodLiteral<"SHIPPING">;
5834
+ shipping: z.ZodObject<{
5835
+ deliveryType: z.ZodEnum<{
5836
+ FREE: "FREE";
5837
+ PAID: "PAID";
5838
+ CONDITIONAL_FREE: "CONDITIONAL_FREE";
5839
+ }>;
5840
+ deliveryFee: z.ZodNumber;
5841
+ conditionalFreeAmount: z.ZodNullable<z.ZodNumber>;
5842
+ shippingAddressId: z.ZodNullable<z.ZodString>;
5843
+ returnAddressId: z.ZodNullable<z.ZodString>;
5844
+ }, z.core.$strict>;
5845
+ }, z.core.$strict>, z.ZodObject<{
5846
+ type: z.ZodLiteral<"DOWNLOAD">;
5847
+ download: z.ZodObject<{
5848
+ limit: z.ZodNumber;
5849
+ days: z.ZodNumber;
5850
+ stockTracking: z.ZodBoolean;
5851
+ withdrawalRestricted: z.ZodBoolean;
5852
+ }, z.core.$strict>;
5853
+ }, z.core.$strict>, z.ZodObject<{
5854
+ type: z.ZodLiteral<"CODE">;
5855
+ code: z.ZodObject<{
5856
+ mode: z.ZodEnum<{
5857
+ AUTO: "AUTO";
5858
+ MANUAL: "MANUAL";
5859
+ }>;
5860
+ withdrawalRestricted: z.ZodBoolean;
5861
+ }, z.core.$strict>;
5862
+ }, z.core.$strict>, z.ZodObject<{
5863
+ type: z.ZodLiteral<"SERVICE">;
5864
+ service: z.ZodObject<{
5865
+ mode: z.ZodEnum<{
5866
+ AUTO: "AUTO";
5867
+ MANUAL: "MANUAL";
5868
+ }>;
5869
+ }, z.core.$strict>;
5870
+ }, z.core.$strict>, z.ZodObject<{
5871
+ type: z.ZodLiteral<"PICKUP">;
5872
+ pickup: z.ZodObject<{
5873
+ addressId: z.ZodString;
5874
+ }, z.core.$strict>;
5875
+ }, z.core.$strict>], "type">>;
5876
+ refundPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
5877
+ preShipmentDeliveryFeeRefund: z.ZodOptional<z.ZodBoolean>;
5878
+ returnDeliveryFee: z.ZodOptional<z.ZodNumber>;
5879
+ exchangeDeliveryFee: z.ZodOptional<z.ZodNumber>;
5880
+ sellerFaultFreeShipping: z.ZodOptional<z.ZodBoolean>;
5881
+ conditionalFreeShortfallCharge: z.ZodOptional<z.ZodBoolean>;
5882
+ }, z.core.$strict>>>;
5883
+ }, z.core.$strict>;
5300
5884
  export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
5301
5885
  export declare const productSortSchema: z.ZodEnum<{
5302
5886
  "createdAt.desc": "createdAt.desc";
@@ -5318,10 +5902,10 @@ export declare const productListQuerySchema: z.ZodObject<{
5318
5902
  page: z.ZodOptional<z.ZodString>;
5319
5903
  size: z.ZodOptional<z.ZodString>;
5320
5904
  status: z.ZodOptional<z.ZodEnum<{
5321
- SALE: "SALE";
5322
5905
  SUSPENDED: "SUSPENDED";
5323
- OUT_OF_STOCK: "OUT_OF_STOCK";
5324
5906
  CLOSED: "CLOSED";
5907
+ SALE: "SALE";
5908
+ OUT_OF_STOCK: "OUT_OF_STOCK";
5325
5909
  }>>;
5326
5910
  categoryId: z.ZodOptional<z.ZodString>;
5327
5911
  keyword: z.ZodOptional<z.ZodString>;
@@ -5458,9 +6042,9 @@ export declare const storeMemberSchema: z.ZodObject<{
5458
6042
  name: z.ZodString;
5459
6043
  email: z.ZodEmail;
5460
6044
  role: z.ZodEnum<{
6045
+ OWNER: "OWNER";
5461
6046
  ADMIN: "ADMIN";
5462
6047
  STAFF: "STAFF";
5463
- OWNER: "OWNER";
5464
6048
  }>;
5465
6049
  joinedAt: z.ZodString;
5466
6050
  lastActiveAt: z.ZodNullable<z.ZodString>;
@@ -5485,8 +6069,8 @@ export declare const invitationSchema: z.ZodObject<{
5485
6069
  STAFF: "STAFF";
5486
6070
  }>;
5487
6071
  status: z.ZodEnum<{
5488
- PENDING: "PENDING";
5489
6072
  EXPIRED: "EXPIRED";
6073
+ PENDING: "PENDING";
5490
6074
  ACCEPTED: "ACCEPTED";
5491
6075
  CANCELED: "CANCELED";
5492
6076
  }>;
@@ -5525,8 +6109,8 @@ export type UpdateMemberRoleRequest = z.infer<typeof updateMemberRoleRequestSche
5525
6109
  /** `GET /v1/store/invitations` 쿼리 — OpenAPI 문서용 형태 */
5526
6110
  export declare const invitationListQuerySchema: z.ZodObject<{
5527
6111
  status: z.ZodOptional<z.ZodEnum<{
5528
- PENDING: "PENDING";
5529
6112
  EXPIRED: "EXPIRED";
6113
+ PENDING: "PENDING";
5530
6114
  ACCEPTED: "ACCEPTED";
5531
6115
  CANCELED: "CANCELED";
5532
6116
  }>>;
@@ -5798,7 +6382,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
5798
6382
  storeId: string;
5799
6383
  storeName: string;
5800
6384
  storeCode: string;
5801
- role: "ADMIN" | "STAFF" | "OWNER";
6385
+ role: "OWNER" | "ADMIN" | "STAFF";
5802
6386
  status: "ACTIVE" | "SUSPENDED" | "CLOSED";
5803
6387
  }[]>;
5804
6388
  /** RFC 7009 — token을 폐기한다 (public client는 client_id만 동반) */
@@ -5958,13 +6542,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
5958
6542
  contents: {
5959
6543
  productId: string;
5960
6544
  name: string;
5961
- status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
6545
+ status: "SUSPENDED" | "CLOSED" | "SALE" | "OUT_OF_STOCK";
5962
6546
  salePrice: number;
5963
6547
  discountedPrice: number | null;
5964
6548
  stockQuantity: number;
5965
6549
  categoryId: string | null;
5966
6550
  hasOptions: boolean;
5967
- fulfillmentType: string;
6551
+ fulfillment: {
6552
+ type: string;
6553
+ };
5968
6554
  updatedAt: string;
5969
6555
  thumbnailUrl?: string | undefined;
5970
6556
  }[];
@@ -5972,20 +6558,13 @@ export declare function createStoreClient(options: StoreClientOptions): {
5972
6558
  get: (productId: string) => Promise<{
5973
6559
  productId: string;
5974
6560
  name: string;
5975
- status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
6561
+ status: "SUSPENDED" | "CLOSED" | "SALE" | "OUT_OF_STOCK";
5976
6562
  salePrice: number;
5977
6563
  discountedPrice: number | null;
5978
6564
  stockQuantity: number;
5979
6565
  categoryId: string | null;
5980
6566
  hasOptions: boolean;
5981
6567
  updatedAt: string;
5982
- fulfillmentType: string;
5983
- fulfillmentMode: string | null;
5984
- stockTracking: boolean;
5985
- downloadLimit: number | null;
5986
- downloadDays: number | null;
5987
- withdrawalRestricted: boolean;
5988
- pickupAddressId: string | null;
5989
6568
  optionGroups: {
5990
6569
  groupId: string;
5991
6570
  name: string;
@@ -6009,16 +6588,49 @@ export declare function createStoreClient(options: StoreClientOptions): {
6009
6588
  sellerCode: string | null;
6010
6589
  usable: boolean;
6011
6590
  }[];
6591
+ fulfillment: UnknownFulfillment | {
6592
+ type: "SHIPPING";
6593
+ shipping: {
6594
+ deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
6595
+ deliveryFee: number;
6596
+ conditionalFreeAmount: number | null;
6597
+ shippingAddressId: string | null;
6598
+ returnAddressId: string | null;
6599
+ };
6600
+ } | {
6601
+ type: "DOWNLOAD";
6602
+ download: {
6603
+ limit: number;
6604
+ days: number;
6605
+ stockTracking: boolean;
6606
+ withdrawalRestricted: boolean;
6607
+ };
6608
+ } | {
6609
+ type: "CODE";
6610
+ code: {
6611
+ mode: "AUTO" | "MANUAL";
6612
+ withdrawalRestricted: boolean;
6613
+ };
6614
+ } | {
6615
+ type: "SERVICE";
6616
+ service: {
6617
+ mode: "AUTO" | "MANUAL";
6618
+ };
6619
+ } | {
6620
+ type: "PICKUP";
6621
+ pickup: {
6622
+ addressId: string | null;
6623
+ };
6624
+ };
6625
+ fulfillmentTypeLocked: boolean;
6626
+ refundPolicy: {
6627
+ preShipmentDeliveryFeeRefund?: boolean | undefined;
6628
+ returnDeliveryFee?: number | undefined;
6629
+ exchangeDeliveryFee?: number | undefined;
6630
+ sellerFaultFreeShipping?: boolean | undefined;
6631
+ conditionalFreeShortfallCharge?: boolean | undefined;
6632
+ } | null;
6012
6633
  thumbnailUrl?: string | undefined;
6013
- discount?: {
6014
- productId: string;
6015
- discountType: "RATE" | "AMOUNT";
6016
- discountValue: number;
6017
- discountedPrice: number;
6018
- startAt: string | null;
6019
- endAt: string | null;
6020
- } | null | undefined;
6021
- createdAt?: string | undefined;
6022
6634
  description?: string | undefined;
6023
6635
  descriptionJson?: string | null | undefined;
6024
6636
  originalPrice?: number | null | undefined;
@@ -6027,38 +6639,26 @@ export declare function createStoreClient(options: StoreClientOptions): {
6027
6639
  attributeId: string;
6028
6640
  value: string;
6029
6641
  }[] | undefined;
6030
- deliveryType?: "FREE" | "PAID" | "CONDITIONAL_FREE" | undefined;
6031
- deliveryFee?: number | undefined;
6032
- conditionalFreeAmount?: number | null | undefined;
6033
- returnFee?: number | undefined;
6034
- exchangeFee?: number | undefined;
6035
- refundPolicy?: {
6036
- preShipmentDeliveryFeeRefund?: boolean | undefined;
6037
- returnDeliveryFee?: number | undefined;
6038
- exchangeDeliveryFee?: number | undefined;
6039
- sellerFaultFreeShipping?: boolean | undefined;
6040
- conditionalFreeShortfallCharge?: boolean | undefined;
6642
+ discount?: {
6643
+ productId: string;
6644
+ discountType: "RATE" | "AMOUNT";
6645
+ discountValue: number;
6646
+ discountedPrice: number;
6647
+ startAt: string | null;
6648
+ endAt: string | null;
6041
6649
  } | null | undefined;
6042
- shippingAddressId?: string | null | undefined;
6043
- returnAddressId?: string | null | undefined;
6650
+ createdAt?: string | undefined;
6044
6651
  }>;
6045
- create: (body: ProductCreateRequest, idempotencyKey?: string) => Promise<{
6652
+ create: (body: ProductCreateRequestInput, idempotencyKey?: string) => Promise<{
6046
6653
  productId: string;
6047
6654
  name: string;
6048
- status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
6655
+ status: "SUSPENDED" | "CLOSED" | "SALE" | "OUT_OF_STOCK";
6049
6656
  salePrice: number;
6050
6657
  discountedPrice: number | null;
6051
6658
  stockQuantity: number;
6052
6659
  categoryId: string | null;
6053
6660
  hasOptions: boolean;
6054
6661
  updatedAt: string;
6055
- fulfillmentType: string;
6056
- fulfillmentMode: string | null;
6057
- stockTracking: boolean;
6058
- downloadLimit: number | null;
6059
- downloadDays: number | null;
6060
- withdrawalRestricted: boolean;
6061
- pickupAddressId: string | null;
6062
6662
  optionGroups: {
6063
6663
  groupId: string;
6064
6664
  name: string;
@@ -6082,16 +6682,49 @@ export declare function createStoreClient(options: StoreClientOptions): {
6082
6682
  sellerCode: string | null;
6083
6683
  usable: boolean;
6084
6684
  }[];
6685
+ fulfillment: UnknownFulfillment | {
6686
+ type: "SHIPPING";
6687
+ shipping: {
6688
+ deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
6689
+ deliveryFee: number;
6690
+ conditionalFreeAmount: number | null;
6691
+ shippingAddressId: string | null;
6692
+ returnAddressId: string | null;
6693
+ };
6694
+ } | {
6695
+ type: "DOWNLOAD";
6696
+ download: {
6697
+ limit: number;
6698
+ days: number;
6699
+ stockTracking: boolean;
6700
+ withdrawalRestricted: boolean;
6701
+ };
6702
+ } | {
6703
+ type: "CODE";
6704
+ code: {
6705
+ mode: "AUTO" | "MANUAL";
6706
+ withdrawalRestricted: boolean;
6707
+ };
6708
+ } | {
6709
+ type: "SERVICE";
6710
+ service: {
6711
+ mode: "AUTO" | "MANUAL";
6712
+ };
6713
+ } | {
6714
+ type: "PICKUP";
6715
+ pickup: {
6716
+ addressId: string | null;
6717
+ };
6718
+ };
6719
+ fulfillmentTypeLocked: boolean;
6720
+ refundPolicy: {
6721
+ preShipmentDeliveryFeeRefund?: boolean | undefined;
6722
+ returnDeliveryFee?: number | undefined;
6723
+ exchangeDeliveryFee?: number | undefined;
6724
+ sellerFaultFreeShipping?: boolean | undefined;
6725
+ conditionalFreeShortfallCharge?: boolean | undefined;
6726
+ } | null;
6085
6727
  thumbnailUrl?: string | undefined;
6086
- discount?: {
6087
- productId: string;
6088
- discountType: "RATE" | "AMOUNT";
6089
- discountValue: number;
6090
- discountedPrice: number;
6091
- startAt: string | null;
6092
- endAt: string | null;
6093
- } | null | undefined;
6094
- createdAt?: string | undefined;
6095
6728
  description?: string | undefined;
6096
6729
  descriptionJson?: string | null | undefined;
6097
6730
  originalPrice?: number | null | undefined;
@@ -6100,38 +6733,26 @@ export declare function createStoreClient(options: StoreClientOptions): {
6100
6733
  attributeId: string;
6101
6734
  value: string;
6102
6735
  }[] | undefined;
6103
- deliveryType?: "FREE" | "PAID" | "CONDITIONAL_FREE" | undefined;
6104
- deliveryFee?: number | undefined;
6105
- conditionalFreeAmount?: number | null | undefined;
6106
- returnFee?: number | undefined;
6107
- exchangeFee?: number | undefined;
6108
- refundPolicy?: {
6109
- preShipmentDeliveryFeeRefund?: boolean | undefined;
6110
- returnDeliveryFee?: number | undefined;
6111
- exchangeDeliveryFee?: number | undefined;
6112
- sellerFaultFreeShipping?: boolean | undefined;
6113
- conditionalFreeShortfallCharge?: boolean | undefined;
6736
+ discount?: {
6737
+ productId: string;
6738
+ discountType: "RATE" | "AMOUNT";
6739
+ discountValue: number;
6740
+ discountedPrice: number;
6741
+ startAt: string | null;
6742
+ endAt: string | null;
6114
6743
  } | null | undefined;
6115
- shippingAddressId?: string | null | undefined;
6116
- returnAddressId?: string | null | undefined;
6744
+ createdAt?: string | undefined;
6117
6745
  }>;
6118
- update: (productId: string, body: ProductCreateRequest) => Promise<{
6746
+ update: (productId: string, body: ProductReplaceRequestInput) => Promise<{
6119
6747
  productId: string;
6120
6748
  name: string;
6121
- status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
6749
+ status: "SUSPENDED" | "CLOSED" | "SALE" | "OUT_OF_STOCK";
6122
6750
  salePrice: number;
6123
6751
  discountedPrice: number | null;
6124
6752
  stockQuantity: number;
6125
6753
  categoryId: string | null;
6126
6754
  hasOptions: boolean;
6127
6755
  updatedAt: string;
6128
- fulfillmentType: string;
6129
- fulfillmentMode: string | null;
6130
- stockTracking: boolean;
6131
- downloadLimit: number | null;
6132
- downloadDays: number | null;
6133
- withdrawalRestricted: boolean;
6134
- pickupAddressId: string | null;
6135
6756
  optionGroups: {
6136
6757
  groupId: string;
6137
6758
  name: string;
@@ -6155,16 +6776,49 @@ export declare function createStoreClient(options: StoreClientOptions): {
6155
6776
  sellerCode: string | null;
6156
6777
  usable: boolean;
6157
6778
  }[];
6779
+ fulfillment: UnknownFulfillment | {
6780
+ type: "SHIPPING";
6781
+ shipping: {
6782
+ deliveryType: "FREE" | "PAID" | "CONDITIONAL_FREE";
6783
+ deliveryFee: number;
6784
+ conditionalFreeAmount: number | null;
6785
+ shippingAddressId: string | null;
6786
+ returnAddressId: string | null;
6787
+ };
6788
+ } | {
6789
+ type: "DOWNLOAD";
6790
+ download: {
6791
+ limit: number;
6792
+ days: number;
6793
+ stockTracking: boolean;
6794
+ withdrawalRestricted: boolean;
6795
+ };
6796
+ } | {
6797
+ type: "CODE";
6798
+ code: {
6799
+ mode: "AUTO" | "MANUAL";
6800
+ withdrawalRestricted: boolean;
6801
+ };
6802
+ } | {
6803
+ type: "SERVICE";
6804
+ service: {
6805
+ mode: "AUTO" | "MANUAL";
6806
+ };
6807
+ } | {
6808
+ type: "PICKUP";
6809
+ pickup: {
6810
+ addressId: string | null;
6811
+ };
6812
+ };
6813
+ fulfillmentTypeLocked: boolean;
6814
+ refundPolicy: {
6815
+ preShipmentDeliveryFeeRefund?: boolean | undefined;
6816
+ returnDeliveryFee?: number | undefined;
6817
+ exchangeDeliveryFee?: number | undefined;
6818
+ sellerFaultFreeShipping?: boolean | undefined;
6819
+ conditionalFreeShortfallCharge?: boolean | undefined;
6820
+ } | null;
6158
6821
  thumbnailUrl?: string | undefined;
6159
- discount?: {
6160
- productId: string;
6161
- discountType: "RATE" | "AMOUNT";
6162
- discountValue: number;
6163
- discountedPrice: number;
6164
- startAt: string | null;
6165
- endAt: string | null;
6166
- } | null | undefined;
6167
- createdAt?: string | undefined;
6168
6822
  description?: string | undefined;
6169
6823
  descriptionJson?: string | null | undefined;
6170
6824
  originalPrice?: number | null | undefined;
@@ -6173,20 +6827,15 @@ export declare function createStoreClient(options: StoreClientOptions): {
6173
6827
  attributeId: string;
6174
6828
  value: string;
6175
6829
  }[] | undefined;
6176
- deliveryType?: "FREE" | "PAID" | "CONDITIONAL_FREE" | undefined;
6177
- deliveryFee?: number | undefined;
6178
- conditionalFreeAmount?: number | null | undefined;
6179
- returnFee?: number | undefined;
6180
- exchangeFee?: number | undefined;
6181
- refundPolicy?: {
6182
- preShipmentDeliveryFeeRefund?: boolean | undefined;
6183
- returnDeliveryFee?: number | undefined;
6184
- exchangeDeliveryFee?: number | undefined;
6185
- sellerFaultFreeShipping?: boolean | undefined;
6186
- conditionalFreeShortfallCharge?: boolean | undefined;
6830
+ discount?: {
6831
+ productId: string;
6832
+ discountType: "RATE" | "AMOUNT";
6833
+ discountValue: number;
6834
+ discountedPrice: number;
6835
+ startAt: string | null;
6836
+ endAt: string | null;
6187
6837
  } | null | undefined;
6188
- shippingAddressId?: string | null | undefined;
6189
- returnAddressId?: string | null | undefined;
6838
+ createdAt?: string | undefined;
6190
6839
  }>;
6191
6840
  patch: (productId: string, body: ProductPatchRequest) => Promise<void>;
6192
6841
  remove: (productId: string) => Promise<void>;
@@ -6623,7 +7272,37 @@ export declare function createStoreClient(options: StoreClientOptions): {
6623
7272
  optionId: string | null;
6624
7273
  optionName: string | null;
6625
7274
  sellerCode: string | null;
6626
- fulfillmentType: string;
7275
+ fulfillmentSnapshot: UnknownFulfillment | {
7276
+ type: "SHIPPING";
7277
+ shipping: {
7278
+ bundleKey: string | null;
7279
+ returnAddressId: string | null;
7280
+ };
7281
+ } | {
7282
+ type: "DOWNLOAD";
7283
+ download: {
7284
+ limit: number;
7285
+ days: number;
7286
+ stockTracked: boolean;
7287
+ withdrawalRestricted: boolean;
7288
+ };
7289
+ } | {
7290
+ type: "CODE";
7291
+ code: {
7292
+ mode: string;
7293
+ withdrawalRestricted: boolean;
7294
+ };
7295
+ } | {
7296
+ type: "SERVICE";
7297
+ service: {
7298
+ mode: string;
7299
+ };
7300
+ } | {
7301
+ type: "PICKUP";
7302
+ pickup: {
7303
+ addressId: string | null;
7304
+ };
7305
+ };
6627
7306
  quantity: number;
6628
7307
  canceledQuantity: number;
6629
7308
  activeQuantity: number;
@@ -6668,7 +7347,6 @@ export declare function createStoreClient(options: StoreClientOptions): {
6668
7347
  orderedAt: string;
6669
7348
  lastChangedAt: string;
6670
7349
  lastChangedType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED";
6671
- withdrawalRestricted: boolean;
6672
7350
  testPayment: boolean;
6673
7351
  }[];
6674
7352
  }>;
@@ -6713,7 +7391,37 @@ export declare function createStoreClient(options: StoreClientOptions): {
6713
7391
  optionId: string | null;
6714
7392
  optionName: string | null;
6715
7393
  sellerCode: string | null;
6716
- fulfillmentType: string;
7394
+ fulfillmentSnapshot: UnknownFulfillment | {
7395
+ type: "SHIPPING";
7396
+ shipping: {
7397
+ bundleKey: string | null;
7398
+ returnAddressId: string | null;
7399
+ };
7400
+ } | {
7401
+ type: "DOWNLOAD";
7402
+ download: {
7403
+ limit: number;
7404
+ days: number;
7405
+ stockTracked: boolean;
7406
+ withdrawalRestricted: boolean;
7407
+ };
7408
+ } | {
7409
+ type: "CODE";
7410
+ code: {
7411
+ mode: string;
7412
+ withdrawalRestricted: boolean;
7413
+ };
7414
+ } | {
7415
+ type: "SERVICE";
7416
+ service: {
7417
+ mode: string;
7418
+ };
7419
+ } | {
7420
+ type: "PICKUP";
7421
+ pickup: {
7422
+ addressId: string | null;
7423
+ };
7424
+ };
6717
7425
  quantity: number;
6718
7426
  canceledQuantity: number;
6719
7427
  activeQuantity: number;
@@ -6758,7 +7466,6 @@ export declare function createStoreClient(options: StoreClientOptions): {
6758
7466
  orderedAt: string;
6759
7467
  lastChangedAt: string;
6760
7468
  lastChangedType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED";
6761
- withdrawalRestricted: boolean;
6762
7469
  testPayment: boolean;
6763
7470
  }[];
6764
7471
  }>;
@@ -6831,7 +7538,37 @@ export declare function createStoreClient(options: StoreClientOptions): {
6831
7538
  optionId: string | null;
6832
7539
  optionName: string | null;
6833
7540
  sellerCode: string | null;
6834
- fulfillmentType: string;
7541
+ fulfillmentSnapshot: UnknownFulfillment | {
7542
+ type: "SHIPPING";
7543
+ shipping: {
7544
+ bundleKey: string | null;
7545
+ returnAddressId: string | null;
7546
+ };
7547
+ } | {
7548
+ type: "DOWNLOAD";
7549
+ download: {
7550
+ limit: number;
7551
+ days: number;
7552
+ stockTracked: boolean;
7553
+ withdrawalRestricted: boolean;
7554
+ };
7555
+ } | {
7556
+ type: "CODE";
7557
+ code: {
7558
+ mode: string;
7559
+ withdrawalRestricted: boolean;
7560
+ };
7561
+ } | {
7562
+ type: "SERVICE";
7563
+ service: {
7564
+ mode: string;
7565
+ };
7566
+ } | {
7567
+ type: "PICKUP";
7568
+ pickup: {
7569
+ addressId: string | null;
7570
+ };
7571
+ };
6835
7572
  quantity: number;
6836
7573
  canceledQuantity: number;
6837
7574
  activeQuantity: number;
@@ -6876,7 +7613,6 @@ export declare function createStoreClient(options: StoreClientOptions): {
6876
7613
  orderedAt: string;
6877
7614
  lastChangedAt: string;
6878
7615
  lastChangedType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED";
6879
- withdrawalRestricted: boolean;
6880
7616
  testPayment: boolean;
6881
7617
  }>;
6882
7618
  /** 배송완료 일괄 처리 — 항목별 부분 성공이다 */
@@ -6911,7 +7647,37 @@ export declare function createStoreClient(options: StoreClientOptions): {
6911
7647
  optionId: string | null;
6912
7648
  optionName: string | null;
6913
7649
  sellerCode: string | null;
6914
- fulfillmentType: string;
7650
+ fulfillmentSnapshot: UnknownFulfillment | {
7651
+ type: "SHIPPING";
7652
+ shipping: {
7653
+ bundleKey: string | null;
7654
+ returnAddressId: string | null;
7655
+ };
7656
+ } | {
7657
+ type: "DOWNLOAD";
7658
+ download: {
7659
+ limit: number;
7660
+ days: number;
7661
+ stockTracked: boolean;
7662
+ withdrawalRestricted: boolean;
7663
+ };
7664
+ } | {
7665
+ type: "CODE";
7666
+ code: {
7667
+ mode: string;
7668
+ withdrawalRestricted: boolean;
7669
+ };
7670
+ } | {
7671
+ type: "SERVICE";
7672
+ service: {
7673
+ mode: string;
7674
+ };
7675
+ } | {
7676
+ type: "PICKUP";
7677
+ pickup: {
7678
+ addressId: string | null;
7679
+ };
7680
+ };
6915
7681
  quantity: number;
6916
7682
  canceledQuantity: number;
6917
7683
  activeQuantity: number;
@@ -6956,7 +7722,6 @@ export declare function createStoreClient(options: StoreClientOptions): {
6956
7722
  orderedAt: string;
6957
7723
  lastChangedAt: string;
6958
7724
  lastChangedType: "ORDER.PAID" | "ORDER.CONFIRMED" | "ORDER.DISPATCHED" | "ORDER.DELIVERED" | "ORDER.PURCHASE_DECIDED" | "ORDER.ADDRESS_CHANGE_REQUESTED" | "CLAIM.CANCEL_REQUESTED" | "CLAIM.RETURN_REQUESTED" | "CLAIM.EXCHANGE_REQUESTED" | "CLAIM.COMPLETED";
6959
- withdrawalRestricted: boolean;
6960
7725
  testPayment: boolean;
6961
7726
  }>;
6962
7727
  /** 제공 처리 일괄 — 항목별 부분 성공이다 */
@@ -8017,7 +8782,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8017
8782
  sources: (params: AnalyticsSourcesParams) => Promise<{
8018
8783
  groupBy: "CHANNEL" | "SOURCE" | "CAMPAIGN" | "DEVICE";
8019
8784
  rows: {
8020
- channel: "UNKNOWN" | "PAID" | "DIRECT" | "CAMPAIGN" | "ORGANIC_SEARCH" | "SOCIAL" | "EMAIL" | "REFERRAL" | null;
8785
+ channel: "PAID" | "DIRECT" | "CAMPAIGN" | "UNKNOWN" | "ORGANIC_SEARCH" | "SOCIAL" | "EMAIL" | "REFERRAL" | null;
8021
8786
  source: string | null;
8022
8787
  medium: string | null;
8023
8788
  campaign: string | null;
@@ -8152,7 +8917,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8152
8917
  orderId: string | null;
8153
8918
  orderName: string;
8154
8919
  customerName: string;
8155
- status: "FAILED" | "PENDING" | "APPROVED" | "PARTIALLY_REFUNDED" | "REFUNDED";
8920
+ status: "PENDING" | "FAILED" | "APPROVED" | "PARTIALLY_REFUNDED" | "REFUNDED";
8156
8921
  amount: number;
8157
8922
  refundedAmount: number;
8158
8923
  provider: "tosspayments" | "portone" | null;
@@ -8176,7 +8941,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8176
8941
  orderId: string | null;
8177
8942
  orderName: string;
8178
8943
  customerName: string;
8179
- status: "FAILED" | "PENDING" | "APPROVED" | "PARTIALLY_REFUNDED" | "REFUNDED";
8944
+ status: "PENDING" | "FAILED" | "APPROVED" | "PARTIALLY_REFUNDED" | "REFUNDED";
8180
8945
  amount: number;
8181
8946
  refundedAmount: number;
8182
8947
  provider: "tosspayments" | "portone" | null;
@@ -8275,7 +9040,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8275
9040
  masked: string | null;
8276
9041
  }[];
8277
9042
  lastVerification: {
8278
- result: "FAILED" | "SUCCESS";
9043
+ result: "SUCCESS" | "FAILED";
8279
9044
  message: string | null;
8280
9045
  checkedAt: string;
8281
9046
  } | null;
@@ -8300,7 +9065,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8300
9065
  masked: string | null;
8301
9066
  }[];
8302
9067
  lastVerification: {
8303
- result: "FAILED" | "SUCCESS";
9068
+ result: "SUCCESS" | "FAILED";
8304
9069
  message: string | null;
8305
9070
  checkedAt: string;
8306
9071
  } | null;
@@ -8324,7 +9089,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8324
9089
  masked: string | null;
8325
9090
  }[];
8326
9091
  lastVerification: {
8327
- result: "FAILED" | "SUCCESS";
9092
+ result: "SUCCESS" | "FAILED";
8328
9093
  message: string | null;
8329
9094
  checkedAt: string;
8330
9095
  } | null;
@@ -8376,7 +9141,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8376
9141
  masked: string | null;
8377
9142
  }[];
8378
9143
  lastVerification: {
8379
- result: "FAILED" | "SUCCESS";
9144
+ result: "SUCCESS" | "FAILED";
8380
9145
  message: string | null;
8381
9146
  checkedAt: string;
8382
9147
  } | null;
@@ -8401,7 +9166,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8401
9166
  masked: string | null;
8402
9167
  }[];
8403
9168
  lastVerification: {
8404
- result: "FAILED" | "SUCCESS";
9169
+ result: "SUCCESS" | "FAILED";
8405
9170
  message: string | null;
8406
9171
  checkedAt: string;
8407
9172
  } | null;
@@ -8425,7 +9190,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8425
9190
  masked: string | null;
8426
9191
  }[];
8427
9192
  lastVerification: {
8428
- result: "FAILED" | "SUCCESS";
9193
+ result: "SUCCESS" | "FAILED";
8429
9194
  message: string | null;
8430
9195
  checkedAt: string;
8431
9196
  } | null;
@@ -8482,7 +9247,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8482
9247
  masked: string | null;
8483
9248
  }[];
8484
9249
  lastVerification: {
8485
- result: "FAILED" | "SUCCESS";
9250
+ result: "SUCCESS" | "FAILED";
8486
9251
  message: string | null;
8487
9252
  checkedAt: string;
8488
9253
  } | null;
@@ -8507,7 +9272,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8507
9272
  masked: string | null;
8508
9273
  }[];
8509
9274
  lastVerification: {
8510
- result: "FAILED" | "SUCCESS";
9275
+ result: "SUCCESS" | "FAILED";
8511
9276
  message: string | null;
8512
9277
  checkedAt: string;
8513
9278
  } | null;
@@ -8531,7 +9296,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8531
9296
  masked: string | null;
8532
9297
  }[];
8533
9298
  lastVerification: {
8534
- result: "FAILED" | "SUCCESS";
9299
+ result: "SUCCESS" | "FAILED";
8535
9300
  message: string | null;
8536
9301
  checkedAt: string;
8537
9302
  } | null;
@@ -8578,7 +9343,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8578
9343
  masked: string | null;
8579
9344
  }[];
8580
9345
  lastVerification: {
8581
- result: "FAILED" | "SUCCESS";
9346
+ result: "SUCCESS" | "FAILED";
8582
9347
  message: string | null;
8583
9348
  checkedAt: string;
8584
9349
  } | null;
@@ -8603,7 +9368,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8603
9368
  masked: string | null;
8604
9369
  }[];
8605
9370
  lastVerification: {
8606
- result: "FAILED" | "SUCCESS";
9371
+ result: "SUCCESS" | "FAILED";
8607
9372
  message: string | null;
8608
9373
  checkedAt: string;
8609
9374
  } | null;
@@ -8627,7 +9392,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8627
9392
  masked: string | null;
8628
9393
  }[];
8629
9394
  lastVerification: {
8630
- result: "FAILED" | "SUCCESS";
9395
+ result: "SUCCESS" | "FAILED";
8631
9396
  message: string | null;
8632
9397
  checkedAt: string;
8633
9398
  } | null;
@@ -8684,7 +9449,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8684
9449
  masked: string | null;
8685
9450
  }[];
8686
9451
  lastVerification: {
8687
- result: "FAILED" | "SUCCESS";
9452
+ result: "SUCCESS" | "FAILED";
8688
9453
  message: string | null;
8689
9454
  checkedAt: string;
8690
9455
  } | null;
@@ -8709,7 +9474,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8709
9474
  masked: string | null;
8710
9475
  }[];
8711
9476
  lastVerification: {
8712
- result: "FAILED" | "SUCCESS";
9477
+ result: "SUCCESS" | "FAILED";
8713
9478
  message: string | null;
8714
9479
  checkedAt: string;
8715
9480
  } | null;
@@ -8733,7 +9498,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8733
9498
  masked: string | null;
8734
9499
  }[];
8735
9500
  lastVerification: {
8736
- result: "FAILED" | "SUCCESS";
9501
+ result: "SUCCESS" | "FAILED";
8737
9502
  message: string | null;
8738
9503
  checkedAt: string;
8739
9504
  } | null;
@@ -8780,7 +9545,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8780
9545
  masked: string | null;
8781
9546
  }[];
8782
9547
  lastVerification: {
8783
- result: "FAILED" | "SUCCESS";
9548
+ result: "SUCCESS" | "FAILED";
8784
9549
  message: string | null;
8785
9550
  checkedAt: string;
8786
9551
  } | null;
@@ -8805,7 +9570,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8805
9570
  masked: string | null;
8806
9571
  }[];
8807
9572
  lastVerification: {
8808
- result: "FAILED" | "SUCCESS";
9573
+ result: "SUCCESS" | "FAILED";
8809
9574
  message: string | null;
8810
9575
  checkedAt: string;
8811
9576
  } | null;
@@ -8829,7 +9594,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8829
9594
  masked: string | null;
8830
9595
  }[];
8831
9596
  lastVerification: {
8832
- result: "FAILED" | "SUCCESS";
9597
+ result: "SUCCESS" | "FAILED";
8833
9598
  message: string | null;
8834
9599
  checkedAt: string;
8835
9600
  } | null;
@@ -8885,7 +9650,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8885
9650
  masked: string | null;
8886
9651
  }[];
8887
9652
  lastVerification: {
8888
- result: "FAILED" | "SUCCESS";
9653
+ result: "SUCCESS" | "FAILED";
8889
9654
  message: string | null;
8890
9655
  checkedAt: string;
8891
9656
  } | null;
@@ -8910,7 +9675,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8910
9675
  masked: string | null;
8911
9676
  }[];
8912
9677
  lastVerification: {
8913
- result: "FAILED" | "SUCCESS";
9678
+ result: "SUCCESS" | "FAILED";
8914
9679
  message: string | null;
8915
9680
  checkedAt: string;
8916
9681
  } | null;
@@ -8934,7 +9699,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8934
9699
  masked: string | null;
8935
9700
  }[];
8936
9701
  lastVerification: {
8937
- result: "FAILED" | "SUCCESS";
9702
+ result: "SUCCESS" | "FAILED";
8938
9703
  message: string | null;
8939
9704
  checkedAt: string;
8940
9705
  } | null;
@@ -8962,7 +9727,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
8962
9727
  verify: (provider: PgProvider, body?: VerifyPaymentProviderRequest) => Promise<{
8963
9728
  provider: "tosspayments" | "portone";
8964
9729
  environment: "TEST" | "LIVE";
8965
- result: "FAILED" | "SUCCESS";
9730
+ result: "SUCCESS" | "FAILED";
8966
9731
  message: string | null;
8967
9732
  checkedAt: string;
8968
9733
  }>;
@@ -9028,7 +9793,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9028
9793
  eventId: string;
9029
9794
  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";
9030
9795
  url: string;
9031
- status: "FAILED" | "PENDING" | "PENDING_RETRY" | "SUCCESS";
9796
+ status: "PENDING" | "PENDING_RETRY" | "SUCCESS" | "FAILED";
9032
9797
  responseStatusCode: number | null;
9033
9798
  responseTimeMs: number | null;
9034
9799
  responseBodyExcerpt: string | null;
@@ -9055,7 +9820,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9055
9820
  eventId: string;
9056
9821
  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";
9057
9822
  url: string;
9058
- status: "FAILED" | "PENDING" | "PENDING_RETRY" | "SUCCESS";
9823
+ status: "PENDING" | "PENDING_RETRY" | "SUCCESS" | "FAILED";
9059
9824
  responseStatusCode: number | null;
9060
9825
  responseTimeMs: number | null;
9061
9826
  responseBodyExcerpt: string | null;
@@ -9090,7 +9855,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9090
9855
  eventId: string;
9091
9856
  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";
9092
9857
  url: string;
9093
- status: "FAILED" | "PENDING" | "PENDING_RETRY" | "SUCCESS";
9858
+ status: "PENDING" | "PENDING_RETRY" | "SUCCESS" | "FAILED";
9094
9859
  responseStatusCode: number | null;
9095
9860
  responseTimeMs: number | null;
9096
9861
  responseBodyExcerpt: string | null;
@@ -9186,7 +9951,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9186
9951
  method: string | null;
9187
9952
  path: string | null;
9188
9953
  statusCode: number | null;
9189
- outcome: "SUCCEEDED" | "FAILED" | "PENDING_APPROVAL" | "DENIED" | "DRY_RUN" | null;
9954
+ outcome: "FAILED" | "SUCCEEDED" | "PENDING_APPROVAL" | "DENIED" | "DRY_RUN" | null;
9190
9955
  errorCode: string | null;
9191
9956
  traceId: string | null;
9192
9957
  idempotencyKey: string | null;
@@ -9204,7 +9969,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9204
9969
  list: (params?: ApprovalListOptions) => Promise<{
9205
9970
  items: {
9206
9971
  approvalId: string;
9207
- status: "SUCCEEDED" | "FAILED" | "PENDING" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
9972
+ status: "EXPIRED" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED";
9208
9973
  operationId: string;
9209
9974
  method: string;
9210
9975
  path: string;
@@ -9254,7 +10019,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9254
10019
  }>;
9255
10020
  get: (approvalId: string) => Promise<{
9256
10021
  approvalId: string;
9257
- status: "SUCCEEDED" | "FAILED" | "PENDING" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
10022
+ status: "EXPIRED" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED";
9258
10023
  operationId: string;
9259
10024
  method: string;
9260
10025
  path: string;
@@ -9306,7 +10071,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9306
10071
  */
9307
10072
  approve: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
9308
10073
  approvalId: string;
9309
- status: "SUCCEEDED" | "FAILED" | "PENDING" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
10074
+ status: "EXPIRED" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED";
9310
10075
  operationId: string;
9311
10076
  method: string;
9312
10077
  path: string;
@@ -9354,7 +10119,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9354
10119
  }>;
9355
10120
  reject: (approvalId: string, body?: ApprovalDecisionRequest) => Promise<{
9356
10121
  approvalId: string;
9357
- status: "SUCCEEDED" | "FAILED" | "PENDING" | "EXECUTING" | "UNKNOWN" | "REJECTED" | "EXPIRED";
10122
+ status: "EXPIRED" | "PENDING" | "FAILED" | "SUCCEEDED" | "EXECUTING" | "UNKNOWN" | "REJECTED";
9358
10123
  operationId: string;
9359
10124
  method: string;
9360
10125
  path: string;
@@ -9553,7 +10318,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9553
10318
  userId: string;
9554
10319
  name: string;
9555
10320
  email: string;
9556
- role: "ADMIN" | "STAFF" | "OWNER";
10321
+ role: "OWNER" | "ADMIN" | "STAFF";
9557
10322
  joinedAt: string;
9558
10323
  lastActiveAt: string | null;
9559
10324
  }[]>;
@@ -9570,7 +10335,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9570
10335
  invitationId: string;
9571
10336
  email: string;
9572
10337
  role: "ADMIN" | "STAFF";
9573
- status: "PENDING" | "EXPIRED" | "ACCEPTED" | "CANCELED";
10338
+ status: "EXPIRED" | "PENDING" | "ACCEPTED" | "CANCELED";
9574
10339
  invitedBy: string;
9575
10340
  expiresAt: string;
9576
10341
  createdAt: string;
@@ -9588,7 +10353,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9588
10353
  invitationId: string;
9589
10354
  email: string;
9590
10355
  role: "ADMIN" | "STAFF";
9591
- status: "PENDING" | "EXPIRED" | "ACCEPTED" | "CANCELED";
10356
+ status: "EXPIRED" | "PENDING" | "ACCEPTED" | "CANCELED";
9592
10357
  invitedBy: string;
9593
10358
  expiresAt: string;
9594
10359
  createdAt: string;
@@ -9603,7 +10368,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
9603
10368
  invitationId: string;
9604
10369
  email: string;
9605
10370
  role: "ADMIN" | "STAFF";
9606
- status: "PENDING" | "EXPIRED" | "ACCEPTED" | "CANCELED";
10371
+ status: "EXPIRED" | "PENDING" | "ACCEPTED" | "CANCELED";
9607
10372
  invitedBy: string;
9608
10373
  expiresAt: string;
9609
10374
  createdAt: string;
@@ -10049,32 +10814,28 @@ export declare const productRefundPolicyPatchSchema: z.ZodObject<{
10049
10814
  sellerFaultFreeShipping: z.ZodOptional<z.ZodBoolean>;
10050
10815
  conditionalFreeShortfallCharge: z.ZodOptional<z.ZodBoolean>;
10051
10816
  }, z.core.$strict>;
10052
- /** 정책 해석에 쓰는 상품 값 — 상품별 덮어쓰기와 레거시 배송비 필드 */
10817
+ /** 정책 해석에 쓰는 상품 값 — 상품별 덮어쓰기 */
10053
10818
  export interface RefundPolicyProductInput {
10054
10819
  /** 상품별 덮어쓰기. 없으면 스토어 기본을 그대로 쓴다 */
10055
10820
  refundPolicy?: RefundPolicyPatch | null;
10056
- /** @deprecated 레거시 상품 반품비 — `refundPolicy`가 없는 옛 상품의 값이다 */
10057
- returnFee?: number | null;
10058
- /** @deprecated 레거시 상품 교환비 — `refundPolicy`가 없는 옛 상품의 값이다 */
10059
- exchangeFee?: number | null;
10060
10821
  }
10061
10822
  /**
10062
10823
  * 유효 정책 해석 — 상품별 덮어쓰기 → 스토어 기본 → `REFUND_POLICY_DEFAULTS` 순이다.
10063
10824
  *
10064
- * 반품비·교환비는 레거시 필드(`products.returnFee`·`exchangeFee`)와 **연결**한다. 상품이
10065
- * `refundPolicy.returnDeliveryFee`를 정하면 그 값이 원천이고(서버가 `returnFee`도 같은 값으로 맞춘다),
10066
- * 정하지 않았으면 레거시 값이 0보다 클 때 그 값을 쓴다. 0이면 스토어 기본을 따른다 —
10067
- * 정책이 생기기 전에 만든 상품(반품비 0)이 스토어 기본을 물려받게 하는 규칙이다.
10825
+ * 반품·교환 배송비의 원천은 정책 하나다(이슈 #57 결정 3). 상품의 레거시 반품비·교환비 필드와의 연결은 없앴고,
10826
+ * 레거시 값은 마이그레이션이 상품별 정책으로 옮겼다.
10068
10827
  */
10069
10828
  export declare function resolveRefundPolicy(storePolicy?: RefundPolicyPatch | null, product?: RefundPolicyProductInput | null): RefundPolicy;
10070
10829
  /**
10071
- * 상품의 **덮어쓰기 자체** — 레거시 반품비·교환비를 같은 형태로 승격한 값이다. 덮어쓰기가 없으면 null.
10830
+ * 상품의 **덮어쓰기 자체** — 덮어쓰기가 없으면 null.
10072
10831
  *
10073
10832
  * `resolveRefundPolicy`가 합친 결과로는 "상품이 정한 값"과 "스토어 기본을 물려받은 값"을 가를 수 없다.
10074
10833
  * 관리 API 응답의 `refundPolicy`와 콘솔 폼의 덮어쓰기 스위치가 이 함수를 원천으로 쓴다 — 가르지 못하면
10075
- * 스토어 기본을 쓰는 상품을 저장할 때 그 순간의 기본값이 상품에 박히거나, 레거시 값이 조용히 사라진다.
10834
+ * 스토어 기본을 쓰는 상품을 저장할 때 그 순간의 기본값이 상품에 박힌다.
10076
10835
  */
10077
10836
  export declare function productRefundPolicyOverride(product?: RefundPolicyProductInput | null): RefundPolicyPatch | null;
10837
+ /** 반품·교환 배송비 키 — 배송이 없는 상품의 정책에는 두지 않는다 */
10838
+ export declare const REFUND_POLICY_DELIVERY_FEE_KEYS: readonly ["returnDeliveryFee", "exchangeDeliveryFee"];
10078
10839
  /**
10079
10840
  * 수량 단위 부분 취소의 환불 기준액 — **누적 내림의 차분**이다.
10080
10841
  *
@@ -10421,7 +11182,42 @@ export declare const orderWebhookEventDataSchema: z.ZodObject<{
10421
11182
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10422
11183
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10423
11184
  orderItemId: z.ZodOptional<z.ZodString>;
10424
- fulfillmentType: z.ZodOptional<z.ZodString>;
11185
+ fulfillmentSnapshot: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
11186
+ type: z.ZodLiteral<"SHIPPING">;
11187
+ shipping: z.ZodObject<{
11188
+ bundleKey: z.ZodNullable<z.ZodString>;
11189
+ returnAddressId: z.ZodNullable<z.ZodString>;
11190
+ }, z.core.$strip>;
11191
+ }, z.core.$strip>, z.ZodObject<{
11192
+ type: z.ZodLiteral<"DOWNLOAD">;
11193
+ download: z.ZodObject<{
11194
+ limit: z.ZodNumber;
11195
+ days: z.ZodNumber;
11196
+ stockTracked: z.ZodBoolean;
11197
+ withdrawalRestricted: z.ZodBoolean;
11198
+ }, z.core.$strip>;
11199
+ }, z.core.$strip>, z.ZodObject<{
11200
+ type: z.ZodLiteral<"CODE">;
11201
+ code: z.ZodObject<{
11202
+ mode: z.ZodString;
11203
+ withdrawalRestricted: z.ZodBoolean;
11204
+ }, z.core.$strip>;
11205
+ }, z.core.$strip>, z.ZodObject<{
11206
+ type: z.ZodLiteral<"SERVICE">;
11207
+ service: z.ZodObject<{
11208
+ mode: z.ZodString;
11209
+ }, z.core.$strip>;
11210
+ }, z.core.$strip>, z.ZodObject<{
11211
+ type: z.ZodLiteral<"PICKUP">;
11212
+ pickup: z.ZodObject<{
11213
+ addressId: z.ZodNullable<z.ZodString>;
11214
+ }, z.core.$strip>;
11215
+ }, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
11216
+ type: z.ZodString;
11217
+ }, z.core.$loose>, z.ZodTransform<UnknownFulfillment, {
11218
+ [x: string]: unknown;
11219
+ type: string;
11220
+ }>>]>>;
10425
11221
  }, z.core.$strip>;
10426
11222
  export type OrderWebhookEventData = z.infer<typeof orderWebhookEventDataSchema>;
10427
11223
  /**
@@ -10442,8 +11238,45 @@ export declare const orderFulfilledWebhookEventDataSchema: z.ZodObject<{
10442
11238
  DELIVERED: "DELIVERED";
10443
11239
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
10444
11240
  }>;
10445
- fulfillmentType: z.ZodString;
10446
- fulfillmentMode: z.ZodNullable<z.ZodString>;
11241
+ fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
11242
+ type: z.ZodLiteral<"SHIPPING">;
11243
+ shipping: z.ZodObject<{
11244
+ bundleKey: z.ZodNullable<z.ZodString>;
11245
+ returnAddressId: z.ZodNullable<z.ZodString>;
11246
+ }, z.core.$strip>;
11247
+ }, z.core.$strip>, z.ZodObject<{
11248
+ type: z.ZodLiteral<"DOWNLOAD">;
11249
+ download: z.ZodObject<{
11250
+ limit: z.ZodNumber;
11251
+ days: z.ZodNumber;
11252
+ stockTracked: z.ZodBoolean;
11253
+ withdrawalRestricted: z.ZodBoolean;
11254
+ }, z.core.$strip>;
11255
+ }, z.core.$strip>, z.ZodObject<{
11256
+ type: z.ZodLiteral<"CODE">;
11257
+ code: z.ZodObject<{
11258
+ mode: z.ZodString;
11259
+ withdrawalRestricted: z.ZodBoolean;
11260
+ }, z.core.$strip>;
11261
+ }, z.core.$strip>, z.ZodObject<{
11262
+ type: z.ZodLiteral<"SERVICE">;
11263
+ service: z.ZodObject<{
11264
+ mode: z.ZodString;
11265
+ }, z.core.$strip>;
11266
+ }, z.core.$strip>, z.ZodObject<{
11267
+ type: z.ZodLiteral<"PICKUP">;
11268
+ pickup: z.ZodObject<{
11269
+ addressId: z.ZodNullable<z.ZodString>;
11270
+ }, z.core.$strip>;
11271
+ }, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
11272
+ type: z.ZodString;
11273
+ }, z.core.$loose>, z.ZodTransform<UnknownFulfillment, {
11274
+ [x: string]: unknown;
11275
+ type: string;
11276
+ }>>]>;
11277
+ fulfillment: z.ZodObject<{
11278
+ mode: z.ZodString;
11279
+ }, z.core.$strip>;
10447
11280
  fulfilledAt: z.ZodString;
10448
11281
  testPayment: z.ZodBoolean;
10449
11282
  }, z.core.$strip>;
@@ -10557,7 +11390,42 @@ export declare const orderWebhookEventSchema: z.ZodObject<{
10557
11390
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10558
11391
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10559
11392
  orderItemId: z.ZodOptional<z.ZodString>;
10560
- fulfillmentType: z.ZodOptional<z.ZodString>;
11393
+ fulfillmentSnapshot: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
11394
+ type: z.ZodLiteral<"SHIPPING">;
11395
+ shipping: z.ZodObject<{
11396
+ bundleKey: z.ZodNullable<z.ZodString>;
11397
+ returnAddressId: z.ZodNullable<z.ZodString>;
11398
+ }, z.core.$strip>;
11399
+ }, z.core.$strip>, z.ZodObject<{
11400
+ type: z.ZodLiteral<"DOWNLOAD">;
11401
+ download: z.ZodObject<{
11402
+ limit: z.ZodNumber;
11403
+ days: z.ZodNumber;
11404
+ stockTracked: z.ZodBoolean;
11405
+ withdrawalRestricted: z.ZodBoolean;
11406
+ }, z.core.$strip>;
11407
+ }, z.core.$strip>, z.ZodObject<{
11408
+ type: z.ZodLiteral<"CODE">;
11409
+ code: z.ZodObject<{
11410
+ mode: z.ZodString;
11411
+ withdrawalRestricted: z.ZodBoolean;
11412
+ }, z.core.$strip>;
11413
+ }, z.core.$strip>, z.ZodObject<{
11414
+ type: z.ZodLiteral<"SERVICE">;
11415
+ service: z.ZodObject<{
11416
+ mode: z.ZodString;
11417
+ }, z.core.$strip>;
11418
+ }, z.core.$strip>, z.ZodObject<{
11419
+ type: z.ZodLiteral<"PICKUP">;
11420
+ pickup: z.ZodObject<{
11421
+ addressId: z.ZodNullable<z.ZodString>;
11422
+ }, z.core.$strip>;
11423
+ }, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
11424
+ type: z.ZodString;
11425
+ }, z.core.$loose>, z.ZodTransform<UnknownFulfillment, {
11426
+ [x: string]: unknown;
11427
+ type: string;
11428
+ }>>]>>;
10561
11429
  }, z.core.$strip>;
10562
11430
  id: z.ZodString;
10563
11431
  createdAt: z.ZodString;
@@ -10579,8 +11447,45 @@ export declare const orderFulfilledWebhookEventSchema: z.ZodObject<{
10579
11447
  DELIVERED: "DELIVERED";
10580
11448
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
10581
11449
  }>;
10582
- fulfillmentType: z.ZodString;
10583
- fulfillmentMode: z.ZodNullable<z.ZodString>;
11450
+ fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
11451
+ type: z.ZodLiteral<"SHIPPING">;
11452
+ shipping: z.ZodObject<{
11453
+ bundleKey: z.ZodNullable<z.ZodString>;
11454
+ returnAddressId: z.ZodNullable<z.ZodString>;
11455
+ }, z.core.$strip>;
11456
+ }, z.core.$strip>, z.ZodObject<{
11457
+ type: z.ZodLiteral<"DOWNLOAD">;
11458
+ download: z.ZodObject<{
11459
+ limit: z.ZodNumber;
11460
+ days: z.ZodNumber;
11461
+ stockTracked: z.ZodBoolean;
11462
+ withdrawalRestricted: z.ZodBoolean;
11463
+ }, z.core.$strip>;
11464
+ }, z.core.$strip>, z.ZodObject<{
11465
+ type: z.ZodLiteral<"CODE">;
11466
+ code: z.ZodObject<{
11467
+ mode: z.ZodString;
11468
+ withdrawalRestricted: z.ZodBoolean;
11469
+ }, z.core.$strip>;
11470
+ }, z.core.$strip>, z.ZodObject<{
11471
+ type: z.ZodLiteral<"SERVICE">;
11472
+ service: z.ZodObject<{
11473
+ mode: z.ZodString;
11474
+ }, z.core.$strip>;
11475
+ }, z.core.$strip>, z.ZodObject<{
11476
+ type: z.ZodLiteral<"PICKUP">;
11477
+ pickup: z.ZodObject<{
11478
+ addressId: z.ZodNullable<z.ZodString>;
11479
+ }, z.core.$strip>;
11480
+ }, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
11481
+ type: z.ZodString;
11482
+ }, z.core.$loose>, z.ZodTransform<UnknownFulfillment, {
11483
+ [x: string]: unknown;
11484
+ type: string;
11485
+ }>>]>;
11486
+ fulfillment: z.ZodObject<{
11487
+ mode: z.ZodString;
11488
+ }, z.core.$strip>;
10584
11489
  fulfilledAt: z.ZodString;
10585
11490
  testPayment: z.ZodBoolean;
10586
11491
  }, z.core.$strip>;
@@ -10729,7 +11634,42 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
10729
11634
  testPayment: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
10730
11635
  couponDiscountAmount: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
10731
11636
  orderItemId: z.ZodOptional<z.ZodString>;
10732
- fulfillmentType: z.ZodOptional<z.ZodString>;
11637
+ fulfillmentSnapshot: z.ZodOptional<z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
11638
+ type: z.ZodLiteral<"SHIPPING">;
11639
+ shipping: z.ZodObject<{
11640
+ bundleKey: z.ZodNullable<z.ZodString>;
11641
+ returnAddressId: z.ZodNullable<z.ZodString>;
11642
+ }, z.core.$strip>;
11643
+ }, z.core.$strip>, z.ZodObject<{
11644
+ type: z.ZodLiteral<"DOWNLOAD">;
11645
+ download: z.ZodObject<{
11646
+ limit: z.ZodNumber;
11647
+ days: z.ZodNumber;
11648
+ stockTracked: z.ZodBoolean;
11649
+ withdrawalRestricted: z.ZodBoolean;
11650
+ }, z.core.$strip>;
11651
+ }, z.core.$strip>, z.ZodObject<{
11652
+ type: z.ZodLiteral<"CODE">;
11653
+ code: z.ZodObject<{
11654
+ mode: z.ZodString;
11655
+ withdrawalRestricted: z.ZodBoolean;
11656
+ }, z.core.$strip>;
11657
+ }, z.core.$strip>, z.ZodObject<{
11658
+ type: z.ZodLiteral<"SERVICE">;
11659
+ service: z.ZodObject<{
11660
+ mode: z.ZodString;
11661
+ }, z.core.$strip>;
11662
+ }, z.core.$strip>, z.ZodObject<{
11663
+ type: z.ZodLiteral<"PICKUP">;
11664
+ pickup: z.ZodObject<{
11665
+ addressId: z.ZodNullable<z.ZodString>;
11666
+ }, z.core.$strip>;
11667
+ }, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
11668
+ type: z.ZodString;
11669
+ }, z.core.$loose>, z.ZodTransform<UnknownFulfillment, {
11670
+ [x: string]: unknown;
11671
+ type: string;
11672
+ }>>]>>;
10733
11673
  }, z.core.$strip>;
10734
11674
  id: z.ZodString;
10735
11675
  createdAt: z.ZodString;
@@ -10750,8 +11690,45 @@ export declare const webhookEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
10750
11690
  DELIVERED: "DELIVERED";
10751
11691
  PURCHASE_DECIDED: "PURCHASE_DECIDED";
10752
11692
  }>;
10753
- fulfillmentType: z.ZodString;
10754
- fulfillmentMode: z.ZodNullable<z.ZodString>;
11693
+ fulfillmentSnapshot: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
11694
+ type: z.ZodLiteral<"SHIPPING">;
11695
+ shipping: z.ZodObject<{
11696
+ bundleKey: z.ZodNullable<z.ZodString>;
11697
+ returnAddressId: z.ZodNullable<z.ZodString>;
11698
+ }, z.core.$strip>;
11699
+ }, z.core.$strip>, z.ZodObject<{
11700
+ type: z.ZodLiteral<"DOWNLOAD">;
11701
+ download: z.ZodObject<{
11702
+ limit: z.ZodNumber;
11703
+ days: z.ZodNumber;
11704
+ stockTracked: z.ZodBoolean;
11705
+ withdrawalRestricted: z.ZodBoolean;
11706
+ }, z.core.$strip>;
11707
+ }, z.core.$strip>, z.ZodObject<{
11708
+ type: z.ZodLiteral<"CODE">;
11709
+ code: z.ZodObject<{
11710
+ mode: z.ZodString;
11711
+ withdrawalRestricted: z.ZodBoolean;
11712
+ }, z.core.$strip>;
11713
+ }, z.core.$strip>, z.ZodObject<{
11714
+ type: z.ZodLiteral<"SERVICE">;
11715
+ service: z.ZodObject<{
11716
+ mode: z.ZodString;
11717
+ }, z.core.$strip>;
11718
+ }, z.core.$strip>, z.ZodObject<{
11719
+ type: z.ZodLiteral<"PICKUP">;
11720
+ pickup: z.ZodObject<{
11721
+ addressId: z.ZodNullable<z.ZodString>;
11722
+ }, z.core.$strip>;
11723
+ }, z.core.$strip>], "type">, z.ZodPipe<z.ZodObject<{
11724
+ type: z.ZodString;
11725
+ }, z.core.$loose>, z.ZodTransform<UnknownFulfillment, {
11726
+ [x: string]: unknown;
11727
+ type: string;
11728
+ }>>]>;
11729
+ fulfillment: z.ZodObject<{
11730
+ mode: z.ZodString;
11731
+ }, z.core.$strip>;
10755
11732
  fulfilledAt: z.ZodString;
10756
11733
  testPayment: z.ZodBoolean;
10757
11734
  }, z.core.$strip>;