@sayren/store-sdk 0.41.0 → 0.42.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 +74 -74
- package/dist/index.mjs +156 -156
- package/dist/server.mjs +1 -1
- package/dist/{webhook-headers-D974dE4T.mjs → webhook-headers-D0E3wPpS.mjs} +80 -2
- package/package.json +1 -1
- package/src/schemas/ai.ts +39 -32
- package/src/schemas/apps.ts +18 -15
- package/src/schemas/audit.ts +6 -3
- package/src/schemas/category.ts +36 -31
- package/src/schemas/claim.ts +14 -11
- package/src/schemas/collection.ts +75 -64
- package/src/schemas/commerce-flow.ts +106 -85
- package/src/schemas/coupon.ts +87 -79
- package/src/schemas/customer-delegation.ts +30 -27
- package/src/schemas/customer.ts +9 -6
- package/src/schemas/inventory.ts +28 -23
- package/src/schemas/login.ts +17 -10
- package/src/schemas/misc.ts +6 -3
- package/src/schemas/order.ts +69 -58
- package/src/schemas/payment.ts +107 -88
- package/src/schemas/points.ts +32 -27
- package/src/schemas/product-info.ts +12 -9
- package/src/schemas/product.ts +17 -14
- package/src/schemas/saved-option-set.ts +5 -5
- package/src/schemas/starter.ts +15 -12
- package/src/schemas/stay.ts +15 -12
- package/src/schemas/store.ts +122 -111
- package/src/schemas/storefront-hosting.ts +271 -219
- package/src/schemas/strict.ts +84 -0
- package/src/schemas/upload.ts +15 -12
package/dist/index.d.mts
CHANGED
|
@@ -165,8 +165,8 @@ export declare const auditLogPageSchema: z.ZodObject<{
|
|
|
165
165
|
}, z.core.$strip>;
|
|
166
166
|
export type AuditLogPage = z.infer<typeof auditLogPageSchema>;
|
|
167
167
|
export declare const agentPolicyDecisionSchema: z.ZodEnum<{
|
|
168
|
-
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
169
168
|
DENIED: "DENIED";
|
|
169
|
+
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
170
170
|
ALLOW: "ALLOW";
|
|
171
171
|
}>;
|
|
172
172
|
export type AgentPolicyDecision = z.infer<typeof agentPolicyDecisionSchema>;
|
|
@@ -191,8 +191,8 @@ export type WritePreview = z.infer<typeof writePreviewSchema>;
|
|
|
191
191
|
export declare const writeDryRunResultSchema: z.ZodObject<{
|
|
192
192
|
dryRun: z.ZodLiteral<true>;
|
|
193
193
|
decision: z.ZodEnum<{
|
|
194
|
-
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
195
194
|
DENIED: "DENIED";
|
|
195
|
+
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
196
196
|
ALLOW: "ALLOW";
|
|
197
197
|
}>;
|
|
198
198
|
reason: z.ZodNullable<z.ZodString>;
|
|
@@ -500,9 +500,9 @@ export type AiRun = z.infer<typeof aiRunSchema>;
|
|
|
500
500
|
*/
|
|
501
501
|
export declare const aiActivitySchema: z.ZodEnum<{
|
|
502
502
|
code: "code";
|
|
503
|
-
status: "status";
|
|
504
503
|
check: "check";
|
|
505
504
|
version: "version";
|
|
505
|
+
status: "status";
|
|
506
506
|
shipping: "shipping";
|
|
507
507
|
category: "category";
|
|
508
508
|
brief: "brief";
|
|
@@ -755,9 +755,9 @@ export declare const aiMessagePartSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
755
755
|
summary: z.ZodNullable<z.ZodString>;
|
|
756
756
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
757
757
|
code: "code";
|
|
758
|
-
status: "status";
|
|
759
758
|
check: "check";
|
|
760
759
|
version: "version";
|
|
760
|
+
status: "status";
|
|
761
761
|
shipping: "shipping";
|
|
762
762
|
category: "category";
|
|
763
763
|
brief: "brief";
|
|
@@ -911,9 +911,9 @@ export declare const aiMessageSchema: z.ZodObject<{
|
|
|
911
911
|
summary: z.ZodNullable<z.ZodString>;
|
|
912
912
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
913
913
|
code: "code";
|
|
914
|
-
status: "status";
|
|
915
914
|
check: "check";
|
|
916
915
|
version: "version";
|
|
916
|
+
status: "status";
|
|
917
917
|
shipping: "shipping";
|
|
918
918
|
category: "category";
|
|
919
919
|
brief: "brief";
|
|
@@ -1082,9 +1082,9 @@ export declare const aiConversationSchema: z.ZodObject<{
|
|
|
1082
1082
|
summary: z.ZodNullable<z.ZodString>;
|
|
1083
1083
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
1084
1084
|
code: "code";
|
|
1085
|
-
status: "status";
|
|
1086
1085
|
check: "check";
|
|
1087
1086
|
version: "version";
|
|
1087
|
+
status: "status";
|
|
1088
1088
|
shipping: "shipping";
|
|
1089
1089
|
category: "category";
|
|
1090
1090
|
brief: "brief";
|
|
@@ -1578,9 +1578,9 @@ export declare const aiStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1578
1578
|
}, z.core.$strip>>;
|
|
1579
1579
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
1580
1580
|
code: "code";
|
|
1581
|
-
status: "status";
|
|
1582
1581
|
check: "check";
|
|
1583
1582
|
version: "version";
|
|
1583
|
+
status: "status";
|
|
1584
1584
|
shipping: "shipping";
|
|
1585
1585
|
category: "category";
|
|
1586
1586
|
brief: "brief";
|
|
@@ -1706,9 +1706,9 @@ export declare const aiStreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
1706
1706
|
summary: z.ZodNullable<z.ZodString>;
|
|
1707
1707
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
1708
1708
|
code: "code";
|
|
1709
|
-
status: "status";
|
|
1710
1709
|
check: "check";
|
|
1711
1710
|
version: "version";
|
|
1711
|
+
status: "status";
|
|
1712
1712
|
shipping: "shipping";
|
|
1713
1713
|
category: "category";
|
|
1714
1714
|
brief: "brief";
|
|
@@ -1934,9 +1934,9 @@ export declare const aiStreamRecordSchema: z.ZodObject<{
|
|
|
1934
1934
|
}, z.core.$strip>>;
|
|
1935
1935
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
1936
1936
|
code: "code";
|
|
1937
|
-
status: "status";
|
|
1938
1937
|
check: "check";
|
|
1939
1938
|
version: "version";
|
|
1939
|
+
status: "status";
|
|
1940
1940
|
shipping: "shipping";
|
|
1941
1941
|
category: "category";
|
|
1942
1942
|
brief: "brief";
|
|
@@ -2062,9 +2062,9 @@ export declare const aiStreamRecordSchema: z.ZodObject<{
|
|
|
2062
2062
|
summary: z.ZodNullable<z.ZodString>;
|
|
2063
2063
|
activity: z.ZodOptional<z.ZodEnum<{
|
|
2064
2064
|
code: "code";
|
|
2065
|
-
status: "status";
|
|
2066
2065
|
check: "check";
|
|
2067
2066
|
version: "version";
|
|
2067
|
+
status: "status";
|
|
2068
2068
|
shipping: "shipping";
|
|
2069
2069
|
category: "category";
|
|
2070
2070
|
brief: "brief";
|
|
@@ -4349,8 +4349,8 @@ export declare const appManifestSchema: z.ZodObject<{
|
|
|
4349
4349
|
icon: z.ZodOptional<z.ZodString>;
|
|
4350
4350
|
readme: z.ZodOptional<z.ZodString>;
|
|
4351
4351
|
runtime: z.ZodDefault<z.ZodEnum<{
|
|
4352
|
-
code: "code";
|
|
4353
4352
|
external: "external";
|
|
4353
|
+
code: "code";
|
|
4354
4354
|
}>>;
|
|
4355
4355
|
external: z.ZodOptional<z.ZodObject<{
|
|
4356
4356
|
url: z.ZodURL;
|
|
@@ -11957,7 +11957,7 @@ export declare const addonValueRequestSchema: z.ZodObject<{
|
|
|
11957
11957
|
additionalPrice: z.ZodNumber;
|
|
11958
11958
|
}, z.core.$strict>>>;
|
|
11959
11959
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
11960
|
-
}, z.core.$
|
|
11960
|
+
}, z.core.$strict>;
|
|
11961
11961
|
export type AddonValueRequest = z.infer<typeof addonValueRequestSchema>;
|
|
11962
11962
|
export declare const addonGroupRequestSchema: z.ZodObject<{
|
|
11963
11963
|
groupId: z.ZodOptional<z.ZodString>;
|
|
@@ -11989,8 +11989,8 @@ export declare const addonGroupRequestSchema: z.ZodObject<{
|
|
|
11989
11989
|
additionalPrice: z.ZodNumber;
|
|
11990
11990
|
}, z.core.$strict>>>;
|
|
11991
11991
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
11992
|
-
}, z.core.$
|
|
11993
|
-
}, z.core.$
|
|
11992
|
+
}, z.core.$strict>>;
|
|
11993
|
+
}, z.core.$strict>;
|
|
11994
11994
|
export type AddonGroupRequest = z.infer<typeof addonGroupRequestSchema>;
|
|
11995
11995
|
export declare const customInputRequestSchema: z.ZodObject<{
|
|
11996
11996
|
inputId: z.ZodOptional<z.ZodString>;
|
|
@@ -12009,7 +12009,7 @@ export declare const customInputRequestSchema: z.ZodObject<{
|
|
|
12009
12009
|
image: "image";
|
|
12010
12010
|
}>>;
|
|
12011
12011
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
12012
|
-
}, z.core.$
|
|
12012
|
+
}, z.core.$strict>;
|
|
12013
12013
|
export type CustomInputRequest = z.infer<typeof customInputRequestSchema>;
|
|
12014
12014
|
/**
|
|
12015
12015
|
* 주문상품·장바구니·주문서 줄의 옵션 선택 스냅샷 한 칸 — 주문 시점 이름이다(상품을 고쳐도 바뀌지 않는다).
|
|
@@ -12043,13 +12043,13 @@ export declare const discountSchema: z.ZodObject<{
|
|
|
12043
12043
|
}, z.core.$strip>;
|
|
12044
12044
|
export type Discount = z.infer<typeof discountSchema>;
|
|
12045
12045
|
export declare const productSchema: z.ZodObject<{
|
|
12046
|
+
salePrice: z.ZodNumber;
|
|
12046
12047
|
status: z.ZodEnum<{
|
|
12047
12048
|
SALE: "SALE";
|
|
12048
12049
|
SUSPENDED: "SUSPENDED";
|
|
12049
12050
|
OUT_OF_STOCK: "OUT_OF_STOCK";
|
|
12050
12051
|
CLOSED: "CLOSED";
|
|
12051
12052
|
}>;
|
|
12052
|
-
salePrice: z.ZodNumber;
|
|
12053
12053
|
name: z.ZodString;
|
|
12054
12054
|
stockQuantity: z.ZodNumber;
|
|
12055
12055
|
categoryId: z.ZodNullable<z.ZodString>;
|
|
@@ -12261,7 +12261,7 @@ export declare function productImageRejection(url: string): ProductImageRejectio
|
|
|
12261
12261
|
export declare const optionValueRequestSchema: z.ZodObject<{
|
|
12262
12262
|
valueId: z.ZodOptional<z.ZodString>;
|
|
12263
12263
|
name: z.ZodString;
|
|
12264
|
-
}, z.core.$
|
|
12264
|
+
}, z.core.$strict>;
|
|
12265
12265
|
export type OptionValueRequest = z.infer<typeof optionValueRequestSchema>;
|
|
12266
12266
|
export declare const optionGroupRequestSchema: z.ZodObject<{
|
|
12267
12267
|
groupId: z.ZodOptional<z.ZodString>;
|
|
@@ -12269,8 +12269,8 @@ export declare const optionGroupRequestSchema: z.ZodObject<{
|
|
|
12269
12269
|
values: z.ZodArray<z.ZodObject<{
|
|
12270
12270
|
valueId: z.ZodOptional<z.ZodString>;
|
|
12271
12271
|
name: z.ZodString;
|
|
12272
|
-
}, z.core.$
|
|
12273
|
-
}, z.core.$
|
|
12272
|
+
}, z.core.$strict>>;
|
|
12273
|
+
}, z.core.$strict>;
|
|
12274
12274
|
export type OptionGroupRequest = z.infer<typeof optionGroupRequestSchema>;
|
|
12275
12275
|
export declare const productVariantRequestSchema: z.ZodObject<{
|
|
12276
12276
|
variantId: z.ZodOptional<z.ZodString>;
|
|
@@ -12305,7 +12305,7 @@ export declare const productVariantRequestSchema: z.ZodObject<{
|
|
|
12305
12305
|
sellerCode: z.ZodOptional<z.ZodString>;
|
|
12306
12306
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
12307
12307
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12308
|
-
}, z.core.$
|
|
12308
|
+
}, z.core.$strict>;
|
|
12309
12309
|
export type ProductVariantRequest = z.infer<typeof productVariantRequestSchema>;
|
|
12310
12310
|
/** 축 × 값 → variant 전체 교체 요청 (PUT /products/{productId}/options) */
|
|
12311
12311
|
export declare const optionModelRequestSchema: z.ZodObject<{
|
|
@@ -12315,8 +12315,8 @@ export declare const optionModelRequestSchema: z.ZodObject<{
|
|
|
12315
12315
|
values: z.ZodArray<z.ZodObject<{
|
|
12316
12316
|
valueId: z.ZodOptional<z.ZodString>;
|
|
12317
12317
|
name: z.ZodString;
|
|
12318
|
-
}, z.core.$
|
|
12319
|
-
}, z.core.$
|
|
12318
|
+
}, z.core.$strict>>;
|
|
12319
|
+
}, z.core.$strict>>>;
|
|
12320
12320
|
variants: z.ZodArray<z.ZodObject<{
|
|
12321
12321
|
variantId: z.ZodOptional<z.ZodString>;
|
|
12322
12322
|
valueNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -12350,7 +12350,7 @@ export declare const optionModelRequestSchema: z.ZodObject<{
|
|
|
12350
12350
|
sellerCode: z.ZodOptional<z.ZodString>;
|
|
12351
12351
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
12352
12352
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12353
|
-
}, z.core.$
|
|
12353
|
+
}, z.core.$strict>>;
|
|
12354
12354
|
addonGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12355
12355
|
groupId: z.ZodOptional<z.ZodString>;
|
|
12356
12356
|
name: z.ZodString;
|
|
@@ -12381,8 +12381,8 @@ export declare const optionModelRequestSchema: z.ZodObject<{
|
|
|
12381
12381
|
additionalPrice: z.ZodNumber;
|
|
12382
12382
|
}, z.core.$strict>>>;
|
|
12383
12383
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
12384
|
-
}, z.core.$
|
|
12385
|
-
}, z.core.$
|
|
12384
|
+
}, z.core.$strict>>;
|
|
12385
|
+
}, z.core.$strict>>>;
|
|
12386
12386
|
customInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12387
12387
|
inputId: z.ZodOptional<z.ZodString>;
|
|
12388
12388
|
label: z.ZodString;
|
|
@@ -12400,14 +12400,14 @@ export declare const optionModelRequestSchema: z.ZodObject<{
|
|
|
12400
12400
|
image: "image";
|
|
12401
12401
|
}>>;
|
|
12402
12402
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
12403
|
-
}, z.core.$
|
|
12403
|
+
}, z.core.$strict>>>;
|
|
12404
12404
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
12405
12405
|
REGISTERED: "REGISTERED";
|
|
12406
12406
|
NAME: "NAME";
|
|
12407
12407
|
PRICE_ASC: "PRICE_ASC";
|
|
12408
12408
|
PRICE_DESC: "PRICE_DESC";
|
|
12409
12409
|
}>>;
|
|
12410
|
-
}, z.core.$
|
|
12410
|
+
}, z.core.$strict>;
|
|
12411
12411
|
export type OptionModelRequest = z.infer<typeof optionModelRequestSchema>;
|
|
12412
12412
|
/** GET /products/{productId}/options 응답 */
|
|
12413
12413
|
export declare const optionModelSchema: z.ZodObject<{
|
|
@@ -12561,8 +12561,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
12561
12561
|
values: z.ZodArray<z.ZodObject<{
|
|
12562
12562
|
valueId: z.ZodOptional<z.ZodString>;
|
|
12563
12563
|
name: z.ZodString;
|
|
12564
|
-
}, z.core.$
|
|
12565
|
-
}, z.core.$
|
|
12564
|
+
}, z.core.$strict>>;
|
|
12565
|
+
}, z.core.$strict>>>;
|
|
12566
12566
|
variants: z.ZodArray<z.ZodObject<{
|
|
12567
12567
|
variantId: z.ZodOptional<z.ZodString>;
|
|
12568
12568
|
valueNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -12596,7 +12596,7 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
12596
12596
|
sellerCode: z.ZodOptional<z.ZodString>;
|
|
12597
12597
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
12598
12598
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12599
|
-
}, z.core.$
|
|
12599
|
+
}, z.core.$strict>>;
|
|
12600
12600
|
addonGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12601
12601
|
groupId: z.ZodOptional<z.ZodString>;
|
|
12602
12602
|
name: z.ZodString;
|
|
@@ -12627,8 +12627,8 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
12627
12627
|
additionalPrice: z.ZodNumber;
|
|
12628
12628
|
}, z.core.$strict>>>;
|
|
12629
12629
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
12630
|
-
}, z.core.$
|
|
12631
|
-
}, z.core.$
|
|
12630
|
+
}, z.core.$strict>>;
|
|
12631
|
+
}, z.core.$strict>>>;
|
|
12632
12632
|
customInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12633
12633
|
inputId: z.ZodOptional<z.ZodString>;
|
|
12634
12634
|
label: z.ZodString;
|
|
@@ -12646,7 +12646,7 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
12646
12646
|
image: "image";
|
|
12647
12647
|
}>>;
|
|
12648
12648
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
12649
|
-
}, z.core.$
|
|
12649
|
+
}, z.core.$strict>>>;
|
|
12650
12650
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
12651
12651
|
REGISTERED: "REGISTERED";
|
|
12652
12652
|
NAME: "NAME";
|
|
@@ -12687,7 +12687,7 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
12687
12687
|
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12688
12688
|
attributeId: z.ZodString;
|
|
12689
12689
|
value: z.ZodString;
|
|
12690
|
-
}, z.core.$
|
|
12690
|
+
}, z.core.$strict>>>;
|
|
12691
12691
|
refundPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12692
12692
|
preShipmentDeliveryFeeRefund: z.ZodOptional<z.ZodBoolean>;
|
|
12693
12693
|
returnDeliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
@@ -12720,7 +12720,7 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
12720
12720
|
schemaId: z.ZodString;
|
|
12721
12721
|
version: z.ZodOptional<z.ZodNumber>;
|
|
12722
12722
|
values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12723
|
-
}, z.core.$
|
|
12723
|
+
}, z.core.$strict>>>;
|
|
12724
12724
|
certifications: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12725
12725
|
subjects: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12726
12726
|
subject: z.ZodString;
|
|
@@ -12730,13 +12730,13 @@ export declare const productCreateRequestSchema: z.ZodObject<{
|
|
|
12730
12730
|
EXEMPT: "EXEMPT";
|
|
12731
12731
|
}>;
|
|
12732
12732
|
exemption: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12733
|
-
}, z.core.$
|
|
12733
|
+
}, z.core.$strict>>>;
|
|
12734
12734
|
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12735
12735
|
kind: z.ZodString;
|
|
12736
12736
|
agency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12737
12737
|
number: z.ZodString;
|
|
12738
|
-
}, z.core.$
|
|
12739
|
-
}, z.core.$
|
|
12738
|
+
}, z.core.$strict>>>;
|
|
12739
|
+
}, z.core.$strict>>>;
|
|
12740
12740
|
infoSectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12741
12741
|
}, z.core.$strict>;
|
|
12742
12742
|
export type ProductCreateRequest = z.infer<typeof productCreateRequestSchema>;
|
|
@@ -12805,8 +12805,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
12805
12805
|
values: z.ZodArray<z.ZodObject<{
|
|
12806
12806
|
valueId: z.ZodOptional<z.ZodString>;
|
|
12807
12807
|
name: z.ZodString;
|
|
12808
|
-
}, z.core.$
|
|
12809
|
-
}, z.core.$
|
|
12808
|
+
}, z.core.$strict>>;
|
|
12809
|
+
}, z.core.$strict>>>;
|
|
12810
12810
|
variants: z.ZodArray<z.ZodObject<{
|
|
12811
12811
|
variantId: z.ZodOptional<z.ZodString>;
|
|
12812
12812
|
valueNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
@@ -12840,7 +12840,7 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
12840
12840
|
sellerCode: z.ZodOptional<z.ZodString>;
|
|
12841
12841
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
12842
12842
|
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12843
|
-
}, z.core.$
|
|
12843
|
+
}, z.core.$strict>>;
|
|
12844
12844
|
addonGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12845
12845
|
groupId: z.ZodOptional<z.ZodString>;
|
|
12846
12846
|
name: z.ZodString;
|
|
@@ -12871,8 +12871,8 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
12871
12871
|
additionalPrice: z.ZodNumber;
|
|
12872
12872
|
}, z.core.$strict>>>;
|
|
12873
12873
|
usable: z.ZodDefault<z.ZodBoolean>;
|
|
12874
|
-
}, z.core.$
|
|
12875
|
-
}, z.core.$
|
|
12874
|
+
}, z.core.$strict>>;
|
|
12875
|
+
}, z.core.$strict>>>;
|
|
12876
12876
|
customInputs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12877
12877
|
inputId: z.ZodOptional<z.ZodString>;
|
|
12878
12878
|
label: z.ZodString;
|
|
@@ -12890,7 +12890,7 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
12890
12890
|
image: "image";
|
|
12891
12891
|
}>>;
|
|
12892
12892
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
12893
|
-
}, z.core.$
|
|
12893
|
+
}, z.core.$strict>>>;
|
|
12894
12894
|
optionSort: z.ZodOptional<z.ZodEnum<{
|
|
12895
12895
|
REGISTERED: "REGISTERED";
|
|
12896
12896
|
NAME: "NAME";
|
|
@@ -12931,7 +12931,7 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
12931
12931
|
attributes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12932
12932
|
attributeId: z.ZodString;
|
|
12933
12933
|
value: z.ZodString;
|
|
12934
|
-
}, z.core.$
|
|
12934
|
+
}, z.core.$strict>>>;
|
|
12935
12935
|
refundPolicy: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12936
12936
|
preShipmentDeliveryFeeRefund: z.ZodOptional<z.ZodBoolean>;
|
|
12937
12937
|
returnDeliveryFee: z.ZodOptional<z.ZodNumber>;
|
|
@@ -12964,7 +12964,7 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
12964
12964
|
schemaId: z.ZodString;
|
|
12965
12965
|
version: z.ZodOptional<z.ZodNumber>;
|
|
12966
12966
|
values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
12967
|
-
}, z.core.$
|
|
12967
|
+
}, z.core.$strict>>>;
|
|
12968
12968
|
certifications: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
12969
12969
|
subjects: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12970
12970
|
subject: z.ZodString;
|
|
@@ -12974,13 +12974,13 @@ export declare const productReplaceRequestSchema: z.ZodObject<{
|
|
|
12974
12974
|
EXEMPT: "EXEMPT";
|
|
12975
12975
|
}>;
|
|
12976
12976
|
exemption: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12977
|
-
}, z.core.$
|
|
12977
|
+
}, z.core.$strict>>>;
|
|
12978
12978
|
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
12979
12979
|
kind: z.ZodString;
|
|
12980
12980
|
agency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12981
12981
|
number: z.ZodString;
|
|
12982
|
-
}, z.core.$
|
|
12983
|
-
}, z.core.$
|
|
12982
|
+
}, z.core.$strict>>>;
|
|
12983
|
+
}, z.core.$strict>>>;
|
|
12984
12984
|
infoSectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12985
12985
|
}, z.core.$strict>;
|
|
12986
12986
|
export type ProductReplaceRequest = z.infer<typeof productReplaceRequestSchema>;
|
|
@@ -13103,9 +13103,9 @@ export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
|
|
|
13103
13103
|
export declare const productSortSchema: z.ZodEnum<{
|
|
13104
13104
|
"createdAt.desc": "createdAt.desc";
|
|
13105
13105
|
"createdAt.asc": "createdAt.asc";
|
|
13106
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
13106
13107
|
"salePrice.asc": "salePrice.asc";
|
|
13107
13108
|
"salePrice.desc": "salePrice.desc";
|
|
13108
|
-
"updatedAt.desc": "updatedAt.desc";
|
|
13109
13109
|
}>;
|
|
13110
13110
|
export type ProductSort = z.infer<typeof productSortSchema>;
|
|
13111
13111
|
export interface ProductListParams extends PageParams {
|
|
@@ -13134,9 +13134,9 @@ export declare const productListQuerySchema: z.ZodObject<{
|
|
|
13134
13134
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
13135
13135
|
"createdAt.desc": "createdAt.desc";
|
|
13136
13136
|
"createdAt.asc": "createdAt.asc";
|
|
13137
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
13137
13138
|
"salePrice.asc": "salePrice.asc";
|
|
13138
13139
|
"salePrice.desc": "salePrice.desc";
|
|
13139
|
-
"updatedAt.desc": "updatedAt.desc";
|
|
13140
13140
|
}>>;
|
|
13141
13141
|
}, z.core.$strip>;
|
|
13142
13142
|
export declare const discountRequestSchema: z.ZodObject<{
|
|
@@ -13229,7 +13229,7 @@ export declare const productNoticeRequestSchema: z.ZodObject<{
|
|
|
13229
13229
|
schemaId: z.ZodString;
|
|
13230
13230
|
version: z.ZodOptional<z.ZodNumber>;
|
|
13231
13231
|
values: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
13232
|
-
}, z.core.$
|
|
13232
|
+
}, z.core.$strict>;
|
|
13233
13233
|
export type ProductNoticeRequest = z.infer<typeof productNoticeRequestSchema>;
|
|
13234
13234
|
/** 인증 대상 상태 — 서버가 분기한다(대상이면 인증서 필수, 면제면 사유 필수) */
|
|
13235
13235
|
export declare const CERTIFICATION_STATUSES: readonly ["REQUIRED", "NOT_REQUIRED", "EXEMPT"];
|
|
@@ -13257,13 +13257,13 @@ export declare const productCertificationsRequestSchema: z.ZodObject<{
|
|
|
13257
13257
|
EXEMPT: "EXEMPT";
|
|
13258
13258
|
}>;
|
|
13259
13259
|
exemption: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13260
|
-
}, z.core.$
|
|
13260
|
+
}, z.core.$strict>>>;
|
|
13261
13261
|
items: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
13262
13262
|
kind: z.ZodString;
|
|
13263
13263
|
agency: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13264
13264
|
number: z.ZodString;
|
|
13265
|
-
}, z.core.$
|
|
13266
|
-
}, z.core.$
|
|
13265
|
+
}, z.core.$strict>>>;
|
|
13266
|
+
}, z.core.$strict>;
|
|
13267
13267
|
export type ProductCertificationsRequest = z.infer<typeof productCertificationsRequestSchema>;
|
|
13268
13268
|
export type ProductCertificationsRequestInput = z.input<typeof productCertificationsRequestSchema>;
|
|
13269
13269
|
/** 상품 하나에 연결할 수 있는 안내 섹션 수 */
|
|
@@ -13474,7 +13474,7 @@ export type SavedOptionSet = z.infer<typeof savedOptionSetSchema>;
|
|
|
13474
13474
|
export declare const savedOptionValueRequestSchema: z.ZodObject<{
|
|
13475
13475
|
name: z.ZodString;
|
|
13476
13476
|
additionalPrice: z.ZodDefault<z.ZodNumber>;
|
|
13477
|
-
}, z.core.$
|
|
13477
|
+
}, z.core.$strict>;
|
|
13478
13478
|
export declare const savedOptionGroupRequestSchema: z.ZodObject<{
|
|
13479
13479
|
name: z.ZodString;
|
|
13480
13480
|
kind: z.ZodEnum<{
|
|
@@ -13485,8 +13485,8 @@ export declare const savedOptionGroupRequestSchema: z.ZodObject<{
|
|
|
13485
13485
|
values: z.ZodArray<z.ZodObject<{
|
|
13486
13486
|
name: z.ZodString;
|
|
13487
13487
|
additionalPrice: z.ZodDefault<z.ZodNumber>;
|
|
13488
|
-
}, z.core.$
|
|
13489
|
-
}, z.core.$
|
|
13488
|
+
}, z.core.$strict>>;
|
|
13489
|
+
}, z.core.$strict>;
|
|
13490
13490
|
export type SavedOptionGroupRequest = z.infer<typeof savedOptionGroupRequestSchema>;
|
|
13491
13491
|
export declare const savedCustomInputRequestSchema: z.ZodObject<{
|
|
13492
13492
|
label: z.ZodString;
|
|
@@ -13503,7 +13503,7 @@ export declare const savedCustomInputRequestSchema: z.ZodObject<{
|
|
|
13503
13503
|
image: "image";
|
|
13504
13504
|
}>>;
|
|
13505
13505
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
13506
|
-
}, z.core.$
|
|
13506
|
+
}, z.core.$strict>;
|
|
13507
13507
|
/**
|
|
13508
13508
|
* 저장 옵션 만들기·수정 본문. 조합 옵션명은 최대 `MAX_OPTION_GROUPS`개, 추가 선택은 최대 `MAX_ADDON_GROUPS`개이고
|
|
13509
13509
|
* 옵션명과 직접 입력 항목이 모두 비면 400이다. 수정(PUT)은 통째로 바꾼다.
|
|
@@ -13526,8 +13526,8 @@ export declare const savedOptionSetRequestSchema: z.ZodObject<{
|
|
|
13526
13526
|
values: z.ZodArray<z.ZodObject<{
|
|
13527
13527
|
name: z.ZodString;
|
|
13528
13528
|
additionalPrice: z.ZodDefault<z.ZodNumber>;
|
|
13529
|
-
}, z.core.$
|
|
13530
|
-
}, z.core.$
|
|
13529
|
+
}, z.core.$strict>>;
|
|
13530
|
+
}, z.core.$strict>>>;
|
|
13531
13531
|
customInputs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
13532
13532
|
label: z.ZodString;
|
|
13533
13533
|
placeholder: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -13543,8 +13543,8 @@ export declare const savedOptionSetRequestSchema: z.ZodObject<{
|
|
|
13543
13543
|
image: "image";
|
|
13544
13544
|
}>>;
|
|
13545
13545
|
options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
13546
|
-
}, z.core.$
|
|
13547
|
-
}, z.core.$
|
|
13546
|
+
}, z.core.$strict>>>;
|
|
13547
|
+
}, z.core.$strict>;
|
|
13548
13548
|
export type SavedOptionSetRequest = z.infer<typeof savedOptionSetRequestSchema>;
|
|
13549
13549
|
export type SavedOptionSetRequestInput = z.input<typeof savedOptionSetRequestSchema>;
|
|
13550
13550
|
/**
|
|
@@ -13559,7 +13559,7 @@ export declare const savedOptionSetFromProductRequestSchema: z.ZodObject<{
|
|
|
13559
13559
|
includeOptions: z.ZodDefault<z.ZodBoolean>;
|
|
13560
13560
|
includeCustomInputs: z.ZodDefault<z.ZodBoolean>;
|
|
13561
13561
|
replaceOptionSetId: z.ZodOptional<z.ZodString>;
|
|
13562
|
-
}, z.core.$
|
|
13562
|
+
}, z.core.$strict>;
|
|
13563
13563
|
export type SavedOptionSetFromProductRequest = z.infer<typeof savedOptionSetFromProductRequestSchema>;
|
|
13564
13564
|
export type SavedOptionSetFromProductRequestInput = z.input<typeof savedOptionSetFromProductRequestSchema>;
|
|
13565
13565
|
export declare const savedOptionSetFromProductResultSchema: z.ZodObject<{
|
|
@@ -15677,8 +15677,8 @@ export type SetStorefrontDeployApprovalRequest = z.infer<typeof setStorefrontDep
|
|
|
15677
15677
|
* - `ai-attachment`: 상점 플랫폼 AI 채팅에 붙이는 자료(이슈 #124). 모델이 읽는 정지 이미지와 PDF만 받는다.
|
|
15678
15678
|
*/
|
|
15679
15679
|
export declare const uploadPurposeSchema: z.ZodEnum<{
|
|
15680
|
-
"product-image": "product-image";
|
|
15681
15680
|
description: "description";
|
|
15681
|
+
"product-image": "product-image";
|
|
15682
15682
|
"flow-attachment": "flow-attachment";
|
|
15683
15683
|
"ai-attachment": "ai-attachment";
|
|
15684
15684
|
}>;
|
|
@@ -15718,8 +15718,8 @@ export declare function uploadRejection(purpose: UploadPurpose, filename: string
|
|
|
15718
15718
|
export declare const uploadRequestSchema: z.ZodObject<{
|
|
15719
15719
|
filename: z.ZodString;
|
|
15720
15720
|
purpose: z.ZodDefault<z.ZodEnum<{
|
|
15721
|
-
"product-image": "product-image";
|
|
15722
15721
|
description: "description";
|
|
15722
|
+
"product-image": "product-image";
|
|
15723
15723
|
"flow-attachment": "flow-attachment";
|
|
15724
15724
|
"ai-attachment": "ai-attachment";
|
|
15725
15725
|
}>>;
|
|
@@ -15966,8 +15966,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
15966
15966
|
}[];
|
|
15967
15967
|
}>;
|
|
15968
15968
|
get: (productId: string) => Promise<{
|
|
15969
|
-
status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
|
|
15970
15969
|
salePrice: number;
|
|
15970
|
+
status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
|
|
15971
15971
|
name: string;
|
|
15972
15972
|
stockQuantity: number;
|
|
15973
15973
|
categoryId: string | null;
|
|
@@ -16115,8 +16115,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
16115
16115
|
createdAt?: string | undefined;
|
|
16116
16116
|
}>;
|
|
16117
16117
|
create: (body: ProductCreateRequestInput, idempotencyKey?: string) => Promise<{
|
|
16118
|
-
status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
|
|
16119
16118
|
salePrice: number;
|
|
16119
|
+
status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
|
|
16120
16120
|
name: string;
|
|
16121
16121
|
stockQuantity: number;
|
|
16122
16122
|
categoryId: string | null;
|
|
@@ -16264,8 +16264,8 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
16264
16264
|
createdAt?: string | undefined;
|
|
16265
16265
|
}>;
|
|
16266
16266
|
update: (productId: string, body: ProductReplaceRequestInput) => Promise<{
|
|
16267
|
-
status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
|
|
16268
16267
|
salePrice: number;
|
|
16268
|
+
status: "SALE" | "SUSPENDED" | "OUT_OF_STOCK" | "CLOSED";
|
|
16269
16269
|
name: string;
|
|
16270
16270
|
stockQuantity: number;
|
|
16271
16271
|
categoryId: string | null;
|
|
@@ -23167,7 +23167,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
23167
23167
|
label: string;
|
|
23168
23168
|
status: "unknown" | "error" | "ok";
|
|
23169
23169
|
summary: string | null;
|
|
23170
|
-
activity?: "code" | "
|
|
23170
|
+
activity?: "code" | "check" | "version" | "status" | "shipping" | "category" | "brief" | "files" | "preview" | "template" | "site" | "info" | "upload" | "design" | "product" | "verify" | undefined;
|
|
23171
23171
|
target?: string | undefined;
|
|
23172
23172
|
changes?: {
|
|
23173
23173
|
path: string;
|
|
@@ -26640,10 +26640,10 @@ export declare const storeIndustrySchema: z.ZodEnum<{
|
|
|
26640
26640
|
export type StoreIndustry = z.infer<typeof storeIndustrySchema>;
|
|
26641
26641
|
/** 상품 자료 — 인터뷰의 「상품 자료」 답. 상품 등록 단계의 방법을 고른다 */
|
|
26642
26642
|
export declare const brandBriefProductSourceSchema: z.ZodEnum<{
|
|
26643
|
-
NONE: "NONE";
|
|
26644
26643
|
SPREADSHEET: "SPREADSHEET";
|
|
26645
26644
|
EXISTING_STORE: "EXISTING_STORE";
|
|
26646
26645
|
PHOTOS: "PHOTOS";
|
|
26646
|
+
NONE: "NONE";
|
|
26647
26647
|
}>;
|
|
26648
26648
|
export type BrandBriefProductSource = z.infer<typeof brandBriefProductSourceSchema>;
|
|
26649
26649
|
export declare const BRAND_BRIEF_MAX_REFERENCES = 5;
|
|
@@ -26668,10 +26668,10 @@ export declare const brandBriefSchema: z.ZodObject<{
|
|
|
26668
26668
|
summary: z.ZodString;
|
|
26669
26669
|
}, z.core.$strip>>;
|
|
26670
26670
|
productSource: z.ZodNullable<z.ZodEnum<{
|
|
26671
|
-
NONE: "NONE";
|
|
26672
26671
|
SPREADSHEET: "SPREADSHEET";
|
|
26673
26672
|
EXISTING_STORE: "EXISTING_STORE";
|
|
26674
26673
|
PHOTOS: "PHOTOS";
|
|
26674
|
+
NONE: "NONE";
|
|
26675
26675
|
}>>;
|
|
26676
26676
|
notes: z.ZodNullable<z.ZodString>;
|
|
26677
26677
|
}, z.core.$strip>;
|
|
@@ -26691,10 +26691,10 @@ export declare const putBrandBriefRequestSchema: z.ZodObject<{
|
|
|
26691
26691
|
summary: z.ZodString;
|
|
26692
26692
|
}, z.core.$strip>>>;
|
|
26693
26693
|
productSource: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
|
|
26694
|
-
NONE: "NONE";
|
|
26695
26694
|
SPREADSHEET: "SPREADSHEET";
|
|
26696
26695
|
EXISTING_STORE: "EXISTING_STORE";
|
|
26697
26696
|
PHOTOS: "PHOTOS";
|
|
26697
|
+
NONE: "NONE";
|
|
26698
26698
|
}>>>;
|
|
26699
26699
|
notes: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
26700
26700
|
}, z.core.$strip>;
|
|
@@ -26715,10 +26715,10 @@ export declare const brandBriefViewSchema: z.ZodObject<{
|
|
|
26715
26715
|
summary: z.ZodString;
|
|
26716
26716
|
}, z.core.$strip>>;
|
|
26717
26717
|
productSource: z.ZodNullable<z.ZodEnum<{
|
|
26718
|
-
NONE: "NONE";
|
|
26719
26718
|
SPREADSHEET: "SPREADSHEET";
|
|
26720
26719
|
EXISTING_STORE: "EXISTING_STORE";
|
|
26721
26720
|
PHOTOS: "PHOTOS";
|
|
26721
|
+
NONE: "NONE";
|
|
26722
26722
|
}>>;
|
|
26723
26723
|
notes: z.ZodNullable<z.ZodString>;
|
|
26724
26724
|
}, z.core.$strip>>;
|