@sayren/storefront-sdk 0.20.10 → 0.20.11
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/auth/index.mjs +1 -1
- package/dist/{client-DJjcGd_M.mjs → client-TokSE7D9.mjs} +14 -1
- package/dist/{index-BVJvoppI.d.mts → index-ilVVBQUs.d.mts} +148 -16
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/payments/index.d.mts +1 -1
- package/package.json +1 -1
- package/src/schemas/commerce-flow.ts +24 -1
package/dist/auth/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ht as ApiError, t as createStorefrontClient } from "../client-
|
|
1
|
+
import { Ht as ApiError, t as createStorefrontClient } from "../client-TokSE7D9.mjs";
|
|
2
2
|
//#region src/auth/index.ts
|
|
3
3
|
/** 소셜 로그인 실패 — 구매자가 취소했거나(`access_denied`) state가 맞지 않는다 */
|
|
4
4
|
var IdpCallbackError = class extends Error {
|
|
@@ -531,7 +531,18 @@ const flowInputFieldSchema = z.object({
|
|
|
531
531
|
placeholder: z.string().optional().describe("입력 안내"),
|
|
532
532
|
maxLength: z.number().int().optional(),
|
|
533
533
|
maxFiles: z.number().int().optional(),
|
|
534
|
-
options: z.array(z.union([
|
|
534
|
+
options: z.array(z.union([
|
|
535
|
+
z.string(),
|
|
536
|
+
z.number(),
|
|
537
|
+
z.object({
|
|
538
|
+
value: z.string(),
|
|
539
|
+
label: z.string()
|
|
540
|
+
}).describe("값과 보여 줄 이름")
|
|
541
|
+
])).optional().describe("고르는 형식의 선택지. 값만 있거나 값·이름 쌍이다(보낼 때는 값)"),
|
|
542
|
+
when: z.object({
|
|
543
|
+
key: z.string(),
|
|
544
|
+
in: z.array(z.string())
|
|
545
|
+
}).optional().describe("다른 칸(`key`)의 값이 `in` 중 하나일 때만 보이고 받는 칸. 없으면 늘 받는다")
|
|
535
546
|
});
|
|
536
547
|
const flowActionSchema = z.object({
|
|
537
548
|
key: z.string(),
|
|
@@ -567,6 +578,7 @@ const flowStateSchema = z.object({
|
|
|
567
578
|
enteredAt: z.string(),
|
|
568
579
|
deadlineAt: z.string().optional().describe("가장 가까운 기한(ISO 8601)"),
|
|
569
580
|
attachments: z.array(z.string()).optional().describe("가장 최근 행동이 붙인 첨부 주소(시안 등, #115). 없으면 생략"),
|
|
581
|
+
earlierAttachments: z.array(z.string()).optional().describe("앞 상태에서 붙인 첨부(수정 요청 뒤의 이전 시안 등). 다음 첨부가 오면 바뀐다. 없으면 생략"),
|
|
570
582
|
inputs: z.object({
|
|
571
583
|
by: z.string().describe("적은 사람 — seller · buyer"),
|
|
572
584
|
values: z.array(z.object({
|
|
@@ -603,6 +615,7 @@ const orderStepSchema = z.object({
|
|
|
603
615
|
message: z.string().optional().describe("판매자가 둔 안내문"),
|
|
604
616
|
deadlineAt: z.string().optional().describe("가장 가까운 기한(ISO 8601)"),
|
|
605
617
|
attachments: z.array(z.string()).optional().describe("판매자가 올린 자료(시안 등)"),
|
|
618
|
+
earlierAttachments: z.array(z.string()).optional().describe("앞 단계에서 올린 자료(수정 요청 뒤의 이전 시안 등)"),
|
|
606
619
|
inputs: flowStateSchema.shape.inputs,
|
|
607
620
|
actions: z.array(flowActionSchema).describe("이 단계에서 구매자가 할 행동(입력 칸 포함). `BUYER_ACTION`이면 하나 이상이다. 취소·반품 요청·구매확정은 `actions`(주문상품)에 있다"),
|
|
608
621
|
data: z.object({ delivery: z.object({
|
|
@@ -3132,6 +3132,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3132
3132
|
message?: string | undefined;
|
|
3133
3133
|
deadlineAt?: string | undefined;
|
|
3134
3134
|
attachments?: string[] | undefined;
|
|
3135
|
+
earlierAttachments?: string[] | undefined;
|
|
3135
3136
|
inputs?: {
|
|
3136
3137
|
by: string;
|
|
3137
3138
|
values: {
|
|
@@ -3162,7 +3163,14 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3162
3163
|
placeholder?: string | undefined;
|
|
3163
3164
|
maxLength?: number | undefined;
|
|
3164
3165
|
maxFiles?: number | undefined;
|
|
3165
|
-
options?: (string | number
|
|
3166
|
+
options?: (string | number | {
|
|
3167
|
+
value: string;
|
|
3168
|
+
label: string;
|
|
3169
|
+
})[] | undefined;
|
|
3170
|
+
when?: {
|
|
3171
|
+
key: string;
|
|
3172
|
+
in: string[];
|
|
3173
|
+
} | undefined;
|
|
3166
3174
|
}[] | undefined;
|
|
3167
3175
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3168
3176
|
}[] | undefined;
|
|
@@ -3175,6 +3183,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3175
3183
|
message?: string | undefined;
|
|
3176
3184
|
deadlineAt?: string | undefined;
|
|
3177
3185
|
attachments?: string[] | undefined;
|
|
3186
|
+
earlierAttachments?: string[] | undefined;
|
|
3178
3187
|
inputs?: {
|
|
3179
3188
|
by: string;
|
|
3180
3189
|
values: {
|
|
@@ -3208,13 +3217,21 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3208
3217
|
placeholder?: string | undefined;
|
|
3209
3218
|
maxLength?: number | undefined;
|
|
3210
3219
|
maxFiles?: number | undefined;
|
|
3211
|
-
options?: (string | number
|
|
3220
|
+
options?: (string | number | {
|
|
3221
|
+
value: string;
|
|
3222
|
+
label: string;
|
|
3223
|
+
})[] | undefined;
|
|
3224
|
+
when?: {
|
|
3225
|
+
key: string;
|
|
3226
|
+
in: string[];
|
|
3227
|
+
} | undefined;
|
|
3212
3228
|
}[] | undefined;
|
|
3213
3229
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3214
3230
|
}[];
|
|
3215
3231
|
message?: string | undefined;
|
|
3216
3232
|
deadlineAt?: string | undefined;
|
|
3217
3233
|
attachments?: string[] | undefined;
|
|
3234
|
+
earlierAttachments?: string[] | undefined;
|
|
3218
3235
|
inputs?: {
|
|
3219
3236
|
by: string;
|
|
3220
3237
|
values: {
|
|
@@ -3342,6 +3359,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3342
3359
|
message?: string | undefined;
|
|
3343
3360
|
deadlineAt?: string | undefined;
|
|
3344
3361
|
attachments?: string[] | undefined;
|
|
3362
|
+
earlierAttachments?: string[] | undefined;
|
|
3345
3363
|
inputs?: {
|
|
3346
3364
|
by: string;
|
|
3347
3365
|
values: {
|
|
@@ -3372,7 +3390,14 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3372
3390
|
placeholder?: string | undefined;
|
|
3373
3391
|
maxLength?: number | undefined;
|
|
3374
3392
|
maxFiles?: number | undefined;
|
|
3375
|
-
options?: (string | number
|
|
3393
|
+
options?: (string | number | {
|
|
3394
|
+
value: string;
|
|
3395
|
+
label: string;
|
|
3396
|
+
})[] | undefined;
|
|
3397
|
+
when?: {
|
|
3398
|
+
key: string;
|
|
3399
|
+
in: string[];
|
|
3400
|
+
} | undefined;
|
|
3376
3401
|
}[] | undefined;
|
|
3377
3402
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3378
3403
|
}[] | undefined;
|
|
@@ -3385,6 +3410,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3385
3410
|
message?: string | undefined;
|
|
3386
3411
|
deadlineAt?: string | undefined;
|
|
3387
3412
|
attachments?: string[] | undefined;
|
|
3413
|
+
earlierAttachments?: string[] | undefined;
|
|
3388
3414
|
inputs?: {
|
|
3389
3415
|
by: string;
|
|
3390
3416
|
values: {
|
|
@@ -3418,13 +3444,21 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3418
3444
|
placeholder?: string | undefined;
|
|
3419
3445
|
maxLength?: number | undefined;
|
|
3420
3446
|
maxFiles?: number | undefined;
|
|
3421
|
-
options?: (string | number
|
|
3447
|
+
options?: (string | number | {
|
|
3448
|
+
value: string;
|
|
3449
|
+
label: string;
|
|
3450
|
+
})[] | undefined;
|
|
3451
|
+
when?: {
|
|
3452
|
+
key: string;
|
|
3453
|
+
in: string[];
|
|
3454
|
+
} | undefined;
|
|
3422
3455
|
}[] | undefined;
|
|
3423
3456
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3424
3457
|
}[];
|
|
3425
3458
|
message?: string | undefined;
|
|
3426
3459
|
deadlineAt?: string | undefined;
|
|
3427
3460
|
attachments?: string[] | undefined;
|
|
3461
|
+
earlierAttachments?: string[] | undefined;
|
|
3428
3462
|
inputs?: {
|
|
3429
3463
|
by: string;
|
|
3430
3464
|
values: {
|
|
@@ -3563,6 +3597,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3563
3597
|
message?: string | undefined;
|
|
3564
3598
|
deadlineAt?: string | undefined;
|
|
3565
3599
|
attachments?: string[] | undefined;
|
|
3600
|
+
earlierAttachments?: string[] | undefined;
|
|
3566
3601
|
inputs?: {
|
|
3567
3602
|
by: string;
|
|
3568
3603
|
values: {
|
|
@@ -3593,7 +3628,14 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3593
3628
|
placeholder?: string | undefined;
|
|
3594
3629
|
maxLength?: number | undefined;
|
|
3595
3630
|
maxFiles?: number | undefined;
|
|
3596
|
-
options?: (string | number
|
|
3631
|
+
options?: (string | number | {
|
|
3632
|
+
value: string;
|
|
3633
|
+
label: string;
|
|
3634
|
+
})[] | undefined;
|
|
3635
|
+
when?: {
|
|
3636
|
+
key: string;
|
|
3637
|
+
in: string[];
|
|
3638
|
+
} | undefined;
|
|
3597
3639
|
}[] | undefined;
|
|
3598
3640
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3599
3641
|
}[] | undefined;
|
|
@@ -3606,6 +3648,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3606
3648
|
message?: string | undefined;
|
|
3607
3649
|
deadlineAt?: string | undefined;
|
|
3608
3650
|
attachments?: string[] | undefined;
|
|
3651
|
+
earlierAttachments?: string[] | undefined;
|
|
3609
3652
|
inputs?: {
|
|
3610
3653
|
by: string;
|
|
3611
3654
|
values: {
|
|
@@ -3639,13 +3682,21 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3639
3682
|
placeholder?: string | undefined;
|
|
3640
3683
|
maxLength?: number | undefined;
|
|
3641
3684
|
maxFiles?: number | undefined;
|
|
3642
|
-
options?: (string | number
|
|
3685
|
+
options?: (string | number | {
|
|
3686
|
+
value: string;
|
|
3687
|
+
label: string;
|
|
3688
|
+
})[] | undefined;
|
|
3689
|
+
when?: {
|
|
3690
|
+
key: string;
|
|
3691
|
+
in: string[];
|
|
3692
|
+
} | undefined;
|
|
3643
3693
|
}[] | undefined;
|
|
3644
3694
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3645
3695
|
}[];
|
|
3646
3696
|
message?: string | undefined;
|
|
3647
3697
|
deadlineAt?: string | undefined;
|
|
3648
3698
|
attachments?: string[] | undefined;
|
|
3699
|
+
earlierAttachments?: string[] | undefined;
|
|
3649
3700
|
inputs?: {
|
|
3650
3701
|
by: string;
|
|
3651
3702
|
values: {
|
|
@@ -3732,6 +3783,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3732
3783
|
message?: string | undefined;
|
|
3733
3784
|
deadlineAt?: string | undefined;
|
|
3734
3785
|
attachments?: string[] | undefined;
|
|
3786
|
+
earlierAttachments?: string[] | undefined;
|
|
3735
3787
|
inputs?: {
|
|
3736
3788
|
by: string;
|
|
3737
3789
|
values: {
|
|
@@ -3762,7 +3814,14 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3762
3814
|
placeholder?: string | undefined;
|
|
3763
3815
|
maxLength?: number | undefined;
|
|
3764
3816
|
maxFiles?: number | undefined;
|
|
3765
|
-
options?: (string | number
|
|
3817
|
+
options?: (string | number | {
|
|
3818
|
+
value: string;
|
|
3819
|
+
label: string;
|
|
3820
|
+
})[] | undefined;
|
|
3821
|
+
when?: {
|
|
3822
|
+
key: string;
|
|
3823
|
+
in: string[];
|
|
3824
|
+
} | undefined;
|
|
3766
3825
|
}[] | undefined;
|
|
3767
3826
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3768
3827
|
}[];
|
|
@@ -3788,6 +3847,7 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3788
3847
|
message?: string | undefined;
|
|
3789
3848
|
deadlineAt?: string | undefined;
|
|
3790
3849
|
attachments?: string[] | undefined;
|
|
3850
|
+
earlierAttachments?: string[] | undefined;
|
|
3791
3851
|
inputs?: {
|
|
3792
3852
|
by: string;
|
|
3793
3853
|
values: {
|
|
@@ -3818,7 +3878,14 @@ declare function createStorefrontClient(options: StorefrontClientOptions): {
|
|
|
3818
3878
|
placeholder?: string | undefined;
|
|
3819
3879
|
maxLength?: number | undefined;
|
|
3820
3880
|
maxFiles?: number | undefined;
|
|
3821
|
-
options?: (string | number
|
|
3881
|
+
options?: (string | number | {
|
|
3882
|
+
value: string;
|
|
3883
|
+
label: string;
|
|
3884
|
+
})[] | undefined;
|
|
3885
|
+
when?: {
|
|
3886
|
+
key: string;
|
|
3887
|
+
in: string[];
|
|
3888
|
+
} | undefined;
|
|
3822
3889
|
}[] | undefined;
|
|
3823
3890
|
partialQuantity?: boolean | "UNIT" | undefined;
|
|
3824
3891
|
}[];
|
|
@@ -4346,7 +4413,14 @@ declare const flowInputFieldSchema: z.ZodObject<{
|
|
|
4346
4413
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
4347
4414
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4348
4415
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4349
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber
|
|
4416
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
4417
|
+
value: z.ZodString;
|
|
4418
|
+
label: z.ZodString;
|
|
4419
|
+
}, z.core.$strip>]>>>;
|
|
4420
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4421
|
+
key: z.ZodString;
|
|
4422
|
+
in: z.ZodArray<z.ZodString>;
|
|
4423
|
+
}, z.core.$strip>>;
|
|
4350
4424
|
}, z.core.$strip>;
|
|
4351
4425
|
type FlowInputField = z.infer<typeof flowInputFieldSchema>;
|
|
4352
4426
|
declare const flowActionSchema: z.ZodObject<{
|
|
@@ -4372,7 +4446,14 @@ declare const flowActionSchema: z.ZodObject<{
|
|
|
4372
4446
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
4373
4447
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4374
4448
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4375
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber
|
|
4449
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
4450
|
+
value: z.ZodString;
|
|
4451
|
+
label: z.ZodString;
|
|
4452
|
+
}, z.core.$strip>]>>>;
|
|
4453
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4454
|
+
key: z.ZodString;
|
|
4455
|
+
in: z.ZodArray<z.ZodString>;
|
|
4456
|
+
}, z.core.$strip>>;
|
|
4376
4457
|
}, z.core.$strip>>>;
|
|
4377
4458
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4378
4459
|
}, z.core.$strip>;
|
|
@@ -4397,6 +4478,7 @@ declare const flowStateSchema: z.ZodObject<{
|
|
|
4397
4478
|
enteredAt: z.ZodString;
|
|
4398
4479
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4399
4480
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4481
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4400
4482
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4401
4483
|
by: z.ZodString;
|
|
4402
4484
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -4421,6 +4503,7 @@ declare const orderStepSchema: z.ZodObject<{
|
|
|
4421
4503
|
message: z.ZodOptional<z.ZodString>;
|
|
4422
4504
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4423
4505
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4506
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4424
4507
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4425
4508
|
by: z.ZodString;
|
|
4426
4509
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -4453,7 +4536,14 @@ declare const orderStepSchema: z.ZodObject<{
|
|
|
4453
4536
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
4454
4537
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4455
4538
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4456
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber
|
|
4539
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
4540
|
+
value: z.ZodString;
|
|
4541
|
+
label: z.ZodString;
|
|
4542
|
+
}, z.core.$strip>]>>>;
|
|
4543
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4544
|
+
key: z.ZodString;
|
|
4545
|
+
in: z.ZodArray<z.ZodString>;
|
|
4546
|
+
}, z.core.$strip>>;
|
|
4457
4547
|
}, z.core.$strip>>>;
|
|
4458
4548
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4459
4549
|
}, z.core.$strip>>;
|
|
@@ -4497,6 +4587,7 @@ declare const flowActionResultSchema: z.ZodObject<{
|
|
|
4497
4587
|
enteredAt: z.ZodString;
|
|
4498
4588
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4499
4589
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4590
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4500
4591
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4501
4592
|
by: z.ZodString;
|
|
4502
4593
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -4532,7 +4623,14 @@ declare const flowActionResultSchema: z.ZodObject<{
|
|
|
4532
4623
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
4533
4624
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4534
4625
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4535
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber
|
|
4626
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
4627
|
+
value: z.ZodString;
|
|
4628
|
+
label: z.ZodString;
|
|
4629
|
+
}, z.core.$strip>]>>>;
|
|
4630
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4631
|
+
key: z.ZodString;
|
|
4632
|
+
in: z.ZodArray<z.ZodString>;
|
|
4633
|
+
}, z.core.$strip>>;
|
|
4536
4634
|
}, z.core.$strip>>>;
|
|
4537
4635
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4538
4636
|
}, z.core.$strip>>;
|
|
@@ -4652,6 +4750,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4652
4750
|
enteredAt: z.ZodString;
|
|
4653
4751
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4654
4752
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4753
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4655
4754
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4656
4755
|
by: z.ZodString;
|
|
4657
4756
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -4687,7 +4786,14 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4687
4786
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
4688
4787
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4689
4788
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4690
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber
|
|
4789
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
4790
|
+
value: z.ZodString;
|
|
4791
|
+
label: z.ZodString;
|
|
4792
|
+
}, z.core.$strip>]>>>;
|
|
4793
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4794
|
+
key: z.ZodString;
|
|
4795
|
+
in: z.ZodArray<z.ZodString>;
|
|
4796
|
+
}, z.core.$strip>>;
|
|
4691
4797
|
}, z.core.$strip>>>;
|
|
4692
4798
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4693
4799
|
}, z.core.$strip>>>;
|
|
@@ -4708,6 +4814,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4708
4814
|
enteredAt: z.ZodString;
|
|
4709
4815
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4710
4816
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4817
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4711
4818
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4712
4819
|
by: z.ZodString;
|
|
4713
4820
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -4726,6 +4833,7 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4726
4833
|
message: z.ZodOptional<z.ZodString>;
|
|
4727
4834
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4728
4835
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4836
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4729
4837
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4730
4838
|
by: z.ZodString;
|
|
4731
4839
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -4758,7 +4866,14 @@ declare const myOrderItemSchema: z.ZodObject<{
|
|
|
4758
4866
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
4759
4867
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4760
4868
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4761
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber
|
|
4869
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
4870
|
+
value: z.ZodString;
|
|
4871
|
+
label: z.ZodString;
|
|
4872
|
+
}, z.core.$strip>]>>>;
|
|
4873
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
4874
|
+
key: z.ZodString;
|
|
4875
|
+
in: z.ZodArray<z.ZodString>;
|
|
4876
|
+
}, z.core.$strip>>;
|
|
4762
4877
|
}, z.core.$strip>>>;
|
|
4763
4878
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4764
4879
|
}, z.core.$strip>>;
|
|
@@ -4899,6 +5014,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
4899
5014
|
enteredAt: z.ZodString;
|
|
4900
5015
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4901
5016
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5017
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4902
5018
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4903
5019
|
by: z.ZodString;
|
|
4904
5020
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -4934,7 +5050,14 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
4934
5050
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
4935
5051
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4936
5052
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
4937
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber
|
|
5053
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
5054
|
+
value: z.ZodString;
|
|
5055
|
+
label: z.ZodString;
|
|
5056
|
+
}, z.core.$strip>]>>>;
|
|
5057
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
5058
|
+
key: z.ZodString;
|
|
5059
|
+
in: z.ZodArray<z.ZodString>;
|
|
5060
|
+
}, z.core.$strip>>;
|
|
4938
5061
|
}, z.core.$strip>>>;
|
|
4939
5062
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
4940
5063
|
}, z.core.$strip>>>;
|
|
@@ -4955,6 +5078,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
4955
5078
|
enteredAt: z.ZodString;
|
|
4956
5079
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4957
5080
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5081
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4958
5082
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4959
5083
|
by: z.ZodString;
|
|
4960
5084
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -4973,6 +5097,7 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
4973
5097
|
message: z.ZodOptional<z.ZodString>;
|
|
4974
5098
|
deadlineAt: z.ZodOptional<z.ZodString>;
|
|
4975
5099
|
attachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5100
|
+
earlierAttachments: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4976
5101
|
inputs: z.ZodOptional<z.ZodObject<{
|
|
4977
5102
|
by: z.ZodString;
|
|
4978
5103
|
values: z.ZodArray<z.ZodObject<{
|
|
@@ -5005,7 +5130,14 @@ declare const myOrderSchema: z.ZodObject<{
|
|
|
5005
5130
|
placeholder: z.ZodOptional<z.ZodString>;
|
|
5006
5131
|
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
5007
5132
|
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
5008
|
-
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber
|
|
5133
|
+
options: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodObject<{
|
|
5134
|
+
value: z.ZodString;
|
|
5135
|
+
label: z.ZodString;
|
|
5136
|
+
}, z.core.$strip>]>>>;
|
|
5137
|
+
when: z.ZodOptional<z.ZodObject<{
|
|
5138
|
+
key: z.ZodString;
|
|
5139
|
+
in: z.ZodArray<z.ZodString>;
|
|
5140
|
+
}, z.core.$strip>>;
|
|
5009
5141
|
}, z.core.$strip>>>;
|
|
5010
5142
|
partialQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodBoolean, z.ZodLiteral<"UNIT">]>>;
|
|
5011
5143
|
}, z.core.$strip>>;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { C as loginRequestSchema, D as tokenPairSchema, E as socialProviderSchema, O as withdrawRequestSchema, S as linkIdentityRequestSchema, T as signupRequestSchema, _ as anonymousSessionSchema, a as AnonymousSession, b as idpAuthorizeResponseSchema, c as IdpTokenRequest, d as MemberIdentities, f as SignupRequest, g as WithdrawalBlockedDetails, h as WithdrawRequest, i as buildQuery, k as withdrawalBlockedDetailsSchema, l as LinkIdentityRequest, m as TokenPair, n as Query, o as IdpAgreements, p as SocialProvider, r as TokenSource, s as IdpAuthorizeRequest, t as ApiError, u as LoginRequest, v as idpAgreementsSchema, w as memberIdentitiesSchema, x as idpTokenRequestSchema, y as idpAuthorizeRequestSchema } from "./http-1ab7tP4-.mjs";
|
|
2
|
-
import { $ as ANALYTICS_VISITOR_HEADER, $i as storefrontCollectionSchema, $n as storefrontCouponListQuerySchema, $r as RetryPaymentRequest, $t as customInputEntrySchema, A as FlowAction, Ai as CategoryNode, An as createCustomerInquiryRequestSchema, Ar as CashReceiptType, At as WritableReview, B as flowActionRequestSchema, Bi as StorefrontCollection, Bn as MyCoupon, Br as KnownPaymentStatus, Bt as updateReviewRequestSchema, C as myOrderSchema, Ca as addCartItemRequestSchema, Ci as pgProviderSchema, Cn as createInquiryRequestSchema, Cr as createClaimRequestSchema, Ct as PublicReview, D as commerceNumberField, Da as analyticsIdsFromCookie, Di as retryPaymentRequestSchema, Dn as CreateCustomerInquiryRequest, Dr as CASH_RECEIPT_METHODS, Dt as UpdateReviewRequest, E as trackingStageResponseSchema, Ea as updateCartItemRequestSchema, Ei as responsePaymentMethodSchema, En as publicInquirySchema, Er as AvailablePaymentOption, Et as ReviewSummary, F as FlowState, Fi as ProductDetail, Fn as CheckoutPricingRequest, Fr as DeliveryQuoteResult, Ft as productReviewSortSchema, G as flowStateSchema, Gi as collectionProductSortSchema, Gn as checkoutPricingSchema, Gr as PaymentMessage, Gt as AddonSelection, H as flowActionSchema, Hi as categoryNodeSchema, Hn as StorefrontCouponListParams, Hr as PAYMENT_START_STATUS_VALUES, Ht as uploadTicketSchema, I as GuestFlowActionRequest, Ii as ProductFacets, In as CouponApplication, Ir as EasyPayProvider, It as publicReviewSchema, J as orderStepSchema, Ji as productFacetsSchema, Jn as couponBenefitViewSchema, Jr as PaymentStart, Jt as CustomInputView, K as guestFlowActionRequestSchema, Ki as productCardSchema, Kn as couponApplicationListSchema, Kr as PaymentMethod, Kt as CustomInputEntry, L as ORDER_STEP_TYPES, Li as ProductPage, Ln as CouponResult, Lr as GuestInfo, Lt as reviewImageUploadRequestSchema, M as FlowActionResult, Mi as CollectionProductParams, Mn as customerInquirySchema, Mr as CheckoutSession, Mt as createReviewResultSchema, N as FlowFieldValue, Ni as CollectionProductSortParam, Nn as ApplicableCoupon, Nr as CreateCheckoutRequest, Nt as myReviewSchema, O as formatOrderNo, Oi as shippingAddressInputSchema, On as CustomerInquiry, Or as CashReceiptIdentityType, Ot as UpdateReviewResult, P as FlowInputField, Pi as ProductCard, Pn as CheckoutPricing, Pr as DeliveryQuoteRequest, Pt as productReviewQuerySchema, Q as ANALYTICS_VISITOR_COOKIE, Qi as storefrontCollectionListQuerySchema, Qn as pricingAmountsSchema, Qr as ResponsePaymentMethod, Qt as addonSelectionSchema, R as OrderFlowActionResult, Ri as ProductSearchParams, Rn as MAX_COUPONS_PER_CHECKOUT, Rr as KnownPaymentResult, Rt as reviewPageSchema, S as myOrderItemSchema, Sa as UpdateCartItemRequest, Si as paymentStatusSchema, Sn as PublicInquiry, Sr as claimTypeSchema, St as ProductReviewSort, T as purchaseDecisionResultSchema, Ta as cartSchema, Ti as residentNumberLike, Tn as productInquiryCategorySchema, Tr as myClaimSchema, Tt as ReviewPage, U as flowFieldValueSchema, Ui as collectionProductPageSchema, Un as applicableCouponSchema, Ur as PAYMENT_STATUS_VALUES, Ut as writableReviewSchema, V as flowActionResultSchema, Vi as StorefrontCollectionDetail, Vn as StorefrontCoupon, Vr as PAYMENT_RESULT_VALUES, Vt as updateReviewResultSchema, W as flowInputFieldSchema, Wi as collectionProductQuerySchema, Wn as checkoutPricingRequestSchema, Wr as PaymentFailureCategory, Wt as AddonGroupView, X as ANALYTICS_SESSION_COOKIE, Xi as productSortSchema, Xn as myCouponListQuerySchema, Xr as PgProvider, Xt as OrderInputUploadRequest, Y as ANALYTICS_MAX_BATCH_BYTES, Yi as productPageSchema, Yn as couponResultSchema, Yr as PaymentStatus, Yt as OptionSelectionView, Z as ANALYTICS_SESSION_HEADER, Zi as storefrontCollectionDetailSchema, Zn as myCouponSchema, Zr as RemoteArea, Zt as addonGroupViewSchema, _ as MyOrder, _a as productCardFulfillmentSchema, _i as paymentMethodSchema, _n as updateProfileRequestSchema, _r as CreateClaimRequest, _t as createStorefrontSession, a as StayView, aa as orderItemStatusSchema, ai as cashReceiptRequestSchema, an as normalizeCustomInputValue, ar as ConsentState, at as analyticsBatchSchema, b as PurchaseDecisionResult, ba as Cart, bi as paymentOptionSchema, bn as CreateInquiryResult, br as claimReasonSchema, bt as MyReview, c as stayViewSchema, ca as LineFulfillment, ci as checkoutSessionSchema, cn as parseCustomInputValue, cr as consentActionSchema, ct as analyticsIdSchema, d as StorefrontPointPolicy, da as ProductCardFulfillment, di as deliveryQuoteSchema, dn as MemberAddressRequest, dr as consentStateSchema, dt as StorefrontClientOptions, ea as ClaimStatus, ei as ShippingAddressInput, en as customInputLength, er as storefrontCouponSchema, et as AnalyticsBatch, f as memberPointEntryPageSchema, fa as ProductFulfillmentView, fi as easyPayProviderResponseSchema, fn as UpdateProfileRequest, fr as consentUpdateRequestSchema, ft as createStorefrontClient, g as DeliveryTracking, ga as pickupLocationViewSchema, gi as paymentMessageSchema, gn as memberSchema, gr as ClaimType, gt as StorefrontSessionOptions, h as storefrontPointPolicySchema, ha as myOrderItemFulfillmentSnapshotSchema, hi as paymentFailureCategorySchema, hn as memberAddressSchema, hr as ClaimReturnAddress, ht as StorefrontSession, i as StayRequest, ia as claimStatusSchema, ii as cashReceiptIdentityTypeOf, in as lineSelectionResponseShape, ir as ConsentSource, it as AnalyticsServerEventName, j as FlowActionRequest, ji as CollectionProductPage, jn as customerInquiryCategorySchema, jr as CheckoutDelivery, jt as createReviewRequestSchema, k as parseOrderNo, ki as startPaymentRequestSchema, kn as CustomerInquiryCategory, kr as CashReceiptRequest, kt as UploadTicket, l as MemberPointEntry, la as MyOrderItemFulfillmentSnapshot, li as createCheckoutRequestSchema, ln as Member, lr as consentKindSchema, lt as analyticsServerEventNameSchema, m as memberPointsSchema, ma as lineFulfillmentSchema, mi as guestInfoSchema, mn as memberAddressRequestSchema, mr as ClaimReason, mt as SessionStorage, n as storefrontStoreSchema, na as PageInfo, ni as availablePaymentOptionSchema, nn as customInputViewSchema, nr as ConsentAction, nt as AnalyticsClientEventName, o as calendarDayViewSchema, oa as pageInfoSchema, oi as cashReceiptTypeSchema, on as optionSelectionViewSchema, or as ConsentUpdateRequest, ot as analyticsClientEventNameSchema, p as memberPointEntrySchema, pa as UnknownFulfillmentView, pi as easyPayProviderSchema, pn as WishlistAddResult, pr as memberConsentsSchema, pt as STOREFRONT_SESSION_KEYS, q as orderFlowActionResultSchema, qi as productDetailSchema, qn as couponApplicationSchema, qr as PaymentOption, qt as CustomInputValueView, r as CalendarDayView, ra as PageParams, ri as cashReceiptAvailable, rn as lineSelectionRequestShape, rr as ConsentKind, rt as AnalyticsEventName, s as stayRequestSchema, sa as pageSchema, si as checkoutDeliverySchema, sn as orderInputUploadRequestSchema, sr as MemberConsents, st as analyticsClientEventSchema, t as StorefrontStore, ta as OrderItemStatus, ti as StartPaymentRequest, tn as customInputValueViewSchema, tr as storefrontCouponTargetSchema, tt as AnalyticsClientEvent, u as MemberPoints, ua as PickupLocationView, ui as deliveryQuoteRequestSchema, un as MemberAddress, ur as consentSourceSchema, ut as StorefrontClient, v as MyOrderItem, va as productFulfillmentViewSchema, vi as paymentOptionKey, vn as wishlistAddResultSchema, vr as CreateClaimResult, vt as CreateReviewRequest, w as orderShippingAddressSchema, wa as cartItemSchema, wi as remoteAreaSchema, wn as createInquiryResultSchema, wr as createClaimResultSchema, wt as ReviewImageUploadRequest, x as deliveryTrackingSchema, xa as CartItem, xi as paymentStartSchema, xn as ProductInquiryCategory, xr as claimReturnAddressSchema, xt as ProductReviewParams, y as OrderShippingAddress, ya as AddCartItemRequest, yi as paymentOptionListSchema, yn as CreateInquiryRequest, yr as MyClaim, yt as CreateReviewResult, z as OrderStep, zi as ProductSort, zn as MIN_PAYMENT_AMOUNT, zr as KnownPaymentStartStatus, zt as reviewSummarySchema } from "./index-
|
|
2
|
+
import { $ as ANALYTICS_VISITOR_HEADER, $i as storefrontCollectionSchema, $n as storefrontCouponListQuerySchema, $r as RetryPaymentRequest, $t as customInputEntrySchema, A as FlowAction, Ai as CategoryNode, An as createCustomerInquiryRequestSchema, Ar as CashReceiptType, At as WritableReview, B as flowActionRequestSchema, Bi as StorefrontCollection, Bn as MyCoupon, Br as KnownPaymentStatus, Bt as updateReviewRequestSchema, C as myOrderSchema, Ca as addCartItemRequestSchema, Ci as pgProviderSchema, Cn as createInquiryRequestSchema, Cr as createClaimRequestSchema, Ct as PublicReview, D as commerceNumberField, Da as analyticsIdsFromCookie, Di as retryPaymentRequestSchema, Dn as CreateCustomerInquiryRequest, Dr as CASH_RECEIPT_METHODS, Dt as UpdateReviewRequest, E as trackingStageResponseSchema, Ea as updateCartItemRequestSchema, Ei as responsePaymentMethodSchema, En as publicInquirySchema, Er as AvailablePaymentOption, Et as ReviewSummary, F as FlowState, Fi as ProductDetail, Fn as CheckoutPricingRequest, Fr as DeliveryQuoteResult, Ft as productReviewSortSchema, G as flowStateSchema, Gi as collectionProductSortSchema, Gn as checkoutPricingSchema, Gr as PaymentMessage, Gt as AddonSelection, H as flowActionSchema, Hi as categoryNodeSchema, Hn as StorefrontCouponListParams, Hr as PAYMENT_START_STATUS_VALUES, Ht as uploadTicketSchema, I as GuestFlowActionRequest, Ii as ProductFacets, In as CouponApplication, Ir as EasyPayProvider, It as publicReviewSchema, J as orderStepSchema, Ji as productFacetsSchema, Jn as couponBenefitViewSchema, Jr as PaymentStart, Jt as CustomInputView, K as guestFlowActionRequestSchema, Ki as productCardSchema, Kn as couponApplicationListSchema, Kr as PaymentMethod, Kt as CustomInputEntry, L as ORDER_STEP_TYPES, Li as ProductPage, Ln as CouponResult, Lr as GuestInfo, Lt as reviewImageUploadRequestSchema, M as FlowActionResult, Mi as CollectionProductParams, Mn as customerInquirySchema, Mr as CheckoutSession, Mt as createReviewResultSchema, N as FlowFieldValue, Ni as CollectionProductSortParam, Nn as ApplicableCoupon, Nr as CreateCheckoutRequest, Nt as myReviewSchema, O as formatOrderNo, Oi as shippingAddressInputSchema, On as CustomerInquiry, Or as CashReceiptIdentityType, Ot as UpdateReviewResult, P as FlowInputField, Pi as ProductCard, Pn as CheckoutPricing, Pr as DeliveryQuoteRequest, Pt as productReviewQuerySchema, Q as ANALYTICS_VISITOR_COOKIE, Qi as storefrontCollectionListQuerySchema, Qn as pricingAmountsSchema, Qr as ResponsePaymentMethod, Qt as addonSelectionSchema, R as OrderFlowActionResult, Ri as ProductSearchParams, Rn as MAX_COUPONS_PER_CHECKOUT, Rr as KnownPaymentResult, Rt as reviewPageSchema, S as myOrderItemSchema, Sa as UpdateCartItemRequest, Si as paymentStatusSchema, Sn as PublicInquiry, Sr as claimTypeSchema, St as ProductReviewSort, T as purchaseDecisionResultSchema, Ta as cartSchema, Ti as residentNumberLike, Tn as productInquiryCategorySchema, Tr as myClaimSchema, Tt as ReviewPage, U as flowFieldValueSchema, Ui as collectionProductPageSchema, Un as applicableCouponSchema, Ur as PAYMENT_STATUS_VALUES, Ut as writableReviewSchema, V as flowActionResultSchema, Vi as StorefrontCollectionDetail, Vn as StorefrontCoupon, Vr as PAYMENT_RESULT_VALUES, Vt as updateReviewResultSchema, W as flowInputFieldSchema, Wi as collectionProductQuerySchema, Wn as checkoutPricingRequestSchema, Wr as PaymentFailureCategory, Wt as AddonGroupView, X as ANALYTICS_SESSION_COOKIE, Xi as productSortSchema, Xn as myCouponListQuerySchema, Xr as PgProvider, Xt as OrderInputUploadRequest, Y as ANALYTICS_MAX_BATCH_BYTES, Yi as productPageSchema, Yn as couponResultSchema, Yr as PaymentStatus, Yt as OptionSelectionView, Z as ANALYTICS_SESSION_HEADER, Zi as storefrontCollectionDetailSchema, Zn as myCouponSchema, Zr as RemoteArea, Zt as addonGroupViewSchema, _ as MyOrder, _a as productCardFulfillmentSchema, _i as paymentMethodSchema, _n as updateProfileRequestSchema, _r as CreateClaimRequest, _t as createStorefrontSession, a as StayView, aa as orderItemStatusSchema, ai as cashReceiptRequestSchema, an as normalizeCustomInputValue, ar as ConsentState, at as analyticsBatchSchema, b as PurchaseDecisionResult, ba as Cart, bi as paymentOptionSchema, bn as CreateInquiryResult, br as claimReasonSchema, bt as MyReview, c as stayViewSchema, ca as LineFulfillment, ci as checkoutSessionSchema, cn as parseCustomInputValue, cr as consentActionSchema, ct as analyticsIdSchema, d as StorefrontPointPolicy, da as ProductCardFulfillment, di as deliveryQuoteSchema, dn as MemberAddressRequest, dr as consentStateSchema, dt as StorefrontClientOptions, ea as ClaimStatus, ei as ShippingAddressInput, en as customInputLength, er as storefrontCouponSchema, et as AnalyticsBatch, f as memberPointEntryPageSchema, fa as ProductFulfillmentView, fi as easyPayProviderResponseSchema, fn as UpdateProfileRequest, fr as consentUpdateRequestSchema, ft as createStorefrontClient, g as DeliveryTracking, ga as pickupLocationViewSchema, gi as paymentMessageSchema, gn as memberSchema, gr as ClaimType, gt as StorefrontSessionOptions, h as storefrontPointPolicySchema, ha as myOrderItemFulfillmentSnapshotSchema, hi as paymentFailureCategorySchema, hn as memberAddressSchema, hr as ClaimReturnAddress, ht as StorefrontSession, i as StayRequest, ia as claimStatusSchema, ii as cashReceiptIdentityTypeOf, in as lineSelectionResponseShape, ir as ConsentSource, it as AnalyticsServerEventName, j as FlowActionRequest, ji as CollectionProductPage, jn as customerInquiryCategorySchema, jr as CheckoutDelivery, jt as createReviewRequestSchema, k as parseOrderNo, ki as startPaymentRequestSchema, kn as CustomerInquiryCategory, kr as CashReceiptRequest, kt as UploadTicket, l as MemberPointEntry, la as MyOrderItemFulfillmentSnapshot, li as createCheckoutRequestSchema, ln as Member, lr as consentKindSchema, lt as analyticsServerEventNameSchema, m as memberPointsSchema, ma as lineFulfillmentSchema, mi as guestInfoSchema, mn as memberAddressRequestSchema, mr as ClaimReason, mt as SessionStorage, n as storefrontStoreSchema, na as PageInfo, ni as availablePaymentOptionSchema, nn as customInputViewSchema, nr as ConsentAction, nt as AnalyticsClientEventName, o as calendarDayViewSchema, oa as pageInfoSchema, oi as cashReceiptTypeSchema, on as optionSelectionViewSchema, or as ConsentUpdateRequest, ot as analyticsClientEventNameSchema, p as memberPointEntrySchema, pa as UnknownFulfillmentView, pi as easyPayProviderSchema, pn as WishlistAddResult, pr as memberConsentsSchema, pt as STOREFRONT_SESSION_KEYS, q as orderFlowActionResultSchema, qi as productDetailSchema, qn as couponApplicationSchema, qr as PaymentOption, qt as CustomInputValueView, r as CalendarDayView, ra as PageParams, ri as cashReceiptAvailable, rn as lineSelectionRequestShape, rr as ConsentKind, rt as AnalyticsEventName, s as stayRequestSchema, sa as pageSchema, si as checkoutDeliverySchema, sn as orderInputUploadRequestSchema, sr as MemberConsents, st as analyticsClientEventSchema, t as StorefrontStore, ta as OrderItemStatus, ti as StartPaymentRequest, tn as customInputValueViewSchema, tr as storefrontCouponTargetSchema, tt as AnalyticsClientEvent, u as MemberPoints, ua as PickupLocationView, ui as deliveryQuoteRequestSchema, un as MemberAddress, ur as consentSourceSchema, ut as StorefrontClient, v as MyOrderItem, va as productFulfillmentViewSchema, vi as paymentOptionKey, vn as wishlistAddResultSchema, vr as CreateClaimResult, vt as CreateReviewRequest, w as orderShippingAddressSchema, wa as cartItemSchema, wi as remoteAreaSchema, wn as createInquiryResultSchema, wr as createClaimResultSchema, wt as ReviewImageUploadRequest, x as deliveryTrackingSchema, xa as CartItem, xi as paymentStartSchema, xn as ProductInquiryCategory, xr as claimReturnAddressSchema, xt as ProductReviewParams, y as OrderShippingAddress, ya as AddCartItemRequest, yi as paymentOptionListSchema, yn as CreateInquiryRequest, yr as MyClaim, yt as CreateReviewResult, z as OrderStep, zi as ProductSort, zn as MIN_PAYMENT_AMOUNT, zr as KnownPaymentStartStatus, zt as reviewSummarySchema } from "./index-ilVVBQUs.mjs";
|
|
3
3
|
export { ANALYTICS_MAX_BATCH_BYTES, ANALYTICS_SESSION_COOKIE, ANALYTICS_SESSION_HEADER, ANALYTICS_VISITOR_COOKIE, ANALYTICS_VISITOR_HEADER, AddCartItemRequest, AddonGroupView, AddonSelection, AnalyticsBatch, AnalyticsClientEvent, AnalyticsClientEventName, AnalyticsEventName, AnalyticsServerEventName, AnonymousSession, ApiError, ApplicableCoupon, AvailablePaymentOption, CASH_RECEIPT_METHODS, CalendarDayView, Cart, CartItem, CashReceiptIdentityType, CashReceiptRequest, CashReceiptType, CategoryNode, CheckoutDelivery, CheckoutPricing, CheckoutPricingRequest, CheckoutSession, ClaimReason, ClaimReturnAddress, ClaimStatus, ClaimType, CollectionProductPage, CollectionProductParams, CollectionProductSortParam, ConsentAction, ConsentKind, ConsentSource, ConsentState, ConsentUpdateRequest, CouponApplication, CouponResult, CreateCheckoutRequest, CreateClaimRequest, CreateClaimResult, CreateCustomerInquiryRequest, CreateInquiryRequest, CreateInquiryResult, CreateReviewRequest, CreateReviewResult, CustomInputEntry, CustomInputValueView, CustomInputView, CustomerInquiry, CustomerInquiryCategory, DeliveryQuoteRequest, DeliveryQuoteResult, DeliveryTracking, EasyPayProvider, FlowAction, FlowActionRequest, FlowActionResult, FlowFieldValue, FlowInputField, FlowState, GuestFlowActionRequest, GuestInfo, IdpAgreements, IdpAuthorizeRequest, IdpTokenRequest, KnownPaymentResult, KnownPaymentStartStatus, KnownPaymentStatus, LineFulfillment, LinkIdentityRequest, LoginRequest, MAX_COUPONS_PER_CHECKOUT, MIN_PAYMENT_AMOUNT, Member, MemberAddress, MemberAddressRequest, MemberConsents, MemberIdentities, MemberPointEntry, MemberPoints, MyClaim, MyCoupon, MyOrder, MyOrderItem, MyOrderItemFulfillmentSnapshot, MyReview, ORDER_STEP_TYPES, OptionSelectionView, OrderFlowActionResult, OrderInputUploadRequest, OrderItemStatus, OrderShippingAddress, OrderStep, PAYMENT_RESULT_VALUES, PAYMENT_START_STATUS_VALUES, PAYMENT_STATUS_VALUES, PageInfo, PageParams, PaymentFailureCategory, PaymentMessage, PaymentMethod, PaymentOption, PaymentStart, PaymentStatus, PgProvider, PickupLocationView, ProductCard, ProductCardFulfillment, ProductDetail, ProductFacets, ProductFulfillmentView, ProductInquiryCategory, ProductPage, ProductReviewParams, ProductReviewSort, ProductSearchParams, ProductSort, PublicInquiry, PublicReview, PurchaseDecisionResult, type Query, RemoteArea, ResponsePaymentMethod, RetryPaymentRequest, ReviewImageUploadRequest, ReviewPage, ReviewSummary, STOREFRONT_SESSION_KEYS, type SessionStorage, ShippingAddressInput, SignupRequest, SocialProvider, StartPaymentRequest, StayRequest, StayView, type StorefrontClient, type StorefrontClientOptions, StorefrontCollection, StorefrontCollectionDetail, StorefrontCoupon, StorefrontCouponListParams, StorefrontPointPolicy, type StorefrontSession, type StorefrontSessionOptions, StorefrontStore, TokenPair, type TokenSource, UnknownFulfillmentView, UpdateCartItemRequest, UpdateProfileRequest, UpdateReviewRequest, UpdateReviewResult, UploadTicket, WishlistAddResult, WithdrawRequest, WithdrawalBlockedDetails, WritableReview, addCartItemRequestSchema, addonGroupViewSchema, addonSelectionSchema, analyticsBatchSchema, analyticsClientEventNameSchema, analyticsClientEventSchema, analyticsIdSchema, analyticsIdsFromCookie, analyticsServerEventNameSchema, anonymousSessionSchema, applicableCouponSchema, availablePaymentOptionSchema, buildQuery, calendarDayViewSchema, cartItemSchema, cartSchema, cashReceiptAvailable, cashReceiptIdentityTypeOf, cashReceiptRequestSchema, cashReceiptTypeSchema, categoryNodeSchema, checkoutDeliverySchema, checkoutPricingRequestSchema, checkoutPricingSchema, checkoutSessionSchema, claimReasonSchema, claimReturnAddressSchema, claimStatusSchema, claimTypeSchema, collectionProductPageSchema, collectionProductQuerySchema, collectionProductSortSchema, commerceNumberField, consentActionSchema, consentKindSchema, consentSourceSchema, consentStateSchema, consentUpdateRequestSchema, couponApplicationListSchema, couponApplicationSchema, couponBenefitViewSchema, couponResultSchema, createCheckoutRequestSchema, createClaimRequestSchema, createClaimResultSchema, createCustomerInquiryRequestSchema, createInquiryRequestSchema, createInquiryResultSchema, createReviewRequestSchema, createReviewResultSchema, createStorefrontClient, createStorefrontSession, customInputEntrySchema, customInputLength, customInputValueViewSchema, customInputViewSchema, customerInquiryCategorySchema, customerInquirySchema, deliveryQuoteRequestSchema, deliveryQuoteSchema, deliveryTrackingSchema, easyPayProviderResponseSchema, easyPayProviderSchema, flowActionRequestSchema, flowActionResultSchema, flowActionSchema, flowFieldValueSchema, flowInputFieldSchema, flowStateSchema, formatOrderNo, guestFlowActionRequestSchema, guestInfoSchema, idpAgreementsSchema, idpAuthorizeRequestSchema, idpAuthorizeResponseSchema, idpTokenRequestSchema, lineFulfillmentSchema, lineSelectionRequestShape, lineSelectionResponseShape, linkIdentityRequestSchema, loginRequestSchema, memberAddressRequestSchema, memberAddressSchema, memberConsentsSchema, memberIdentitiesSchema, memberPointEntryPageSchema, memberPointEntrySchema, memberPointsSchema, memberSchema, myClaimSchema, myCouponListQuerySchema, myCouponSchema, myOrderItemFulfillmentSnapshotSchema, myOrderItemSchema, myOrderSchema, myReviewSchema, normalizeCustomInputValue, optionSelectionViewSchema, orderFlowActionResultSchema, orderInputUploadRequestSchema, orderItemStatusSchema, orderShippingAddressSchema, orderStepSchema, pageInfoSchema, pageSchema, parseCustomInputValue, parseOrderNo, paymentFailureCategorySchema, paymentMessageSchema, paymentMethodSchema, paymentOptionKey, paymentOptionListSchema, paymentOptionSchema, paymentStartSchema, paymentStatusSchema, pgProviderSchema, pickupLocationViewSchema, pricingAmountsSchema, productCardFulfillmentSchema, productCardSchema, productDetailSchema, productFacetsSchema, productFulfillmentViewSchema, productInquiryCategorySchema, productPageSchema, productReviewQuerySchema, productReviewSortSchema, productSortSchema, publicInquirySchema, publicReviewSchema, purchaseDecisionResultSchema, remoteAreaSchema, residentNumberLike, responsePaymentMethodSchema, retryPaymentRequestSchema, reviewImageUploadRequestSchema, reviewPageSchema, reviewSummarySchema, shippingAddressInputSchema, signupRequestSchema, socialProviderSchema, startPaymentRequestSchema, stayRequestSchema, stayViewSchema, storefrontCollectionDetailSchema, storefrontCollectionListQuerySchema, storefrontCollectionSchema, storefrontCouponListQuerySchema, storefrontCouponSchema, storefrontCouponTargetSchema, storefrontPointPolicySchema, storefrontStoreSchema, tokenPairSchema, trackingStageResponseSchema, updateCartItemRequestSchema, updateProfileRequestSchema, updateReviewRequestSchema, updateReviewResultSchema, uploadTicketSchema, wishlistAddResultSchema, withdrawRequestSchema, withdrawalBlockedDetailsSchema, writableReviewSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as ANALYTICS_VISITOR_HEADER, c as analyticsClientEventSchema, i as ANALYTICS_VISITOR_COOKIE, l as analyticsIdSchema, n as ANALYTICS_SESSION_COOKIE, o as analyticsBatchSchema, r as ANALYTICS_SESSION_HEADER, s as analyticsClientEventNameSchema, t as ANALYTICS_MAX_BATCH_BYTES, u as analyticsServerEventNameSchema } from "./analytics-CgD70OqH.mjs";
|
|
2
2
|
import { t as analyticsIdsFromCookie } from "./analytics-ids-COElZiI3.mjs";
|
|
3
|
-
import { $ as orderStepSchema, A as wishlistAddResultSchema, At as idpAgreementsSchema, B as consentSourceSchema, Bt as withdrawRequestSchema, C as orderShippingAddressSchema, Ct as pageInfoSchema, D as memberAddressSchema, Dt as cartSchema, E as memberAddressRequestSchema, Et as cartItemSchema, F as createCustomerInquiryRequestSchema, Ft as loginRequestSchema, G as flowActionRequestSchema, Gt as unwrapData, H as consentUpdateRequestSchema, Ht as ApiError, I as customerInquiryCategorySchema, It as memberIdentitiesSchema, J as flowFieldValueSchema, K as flowActionResultSchema, L as customerInquirySchema, Lt as signupRequestSchema, M as createInquiryResultSchema, Mt as idpAuthorizeResponseSchema, N as productInquiryCategorySchema, Nt as idpTokenRequestSchema, O as memberSchema, Ot as updateCartItemRequestSchema, P as publicInquirySchema, Pt as linkIdentityRequestSchema, Q as orderFlowActionResultSchema, R as consentActionSchema, Rt as socialProviderSchema, S as myOrderSchema, St as orderItemStatusSchema, T as trackingStageResponseSchema, Tt as addCartItemRequestSchema, U as memberConsentsSchema, Ut as buildQuery, V as consentStateSchema, Vt as withdrawalBlockedDetailsSchema, W as ORDER_STEP_TYPES, Wt as toApiError, X as flowStateSchema, Y as flowInputFieldSchema, Z as guestFlowActionRequestSchema, _ as memberPointEntrySchema, _t as productSortSchema, a as myReviewSchema, at as myClaimSchema, b as deliveryTrackingSchema, bt as storefrontCollectionSchema, c as publicReviewSchema, ct as parseOrderNo, d as reviewSummarySchema, dt as collectionProductQuerySchema, et as claimReasonSchema, f as updateReviewRequestSchema, ft as collectionProductSortSchema, g as memberPointEntryPageSchema, gt as productPageSchema, h as writableReviewSchema, ht as productFacetsSchema, i as createReviewResultSchema, it as createClaimResultSchema, j as createInquiryRequestSchema, jt as idpAuthorizeRequestSchema, k as updateProfileRequestSchema, kt as anonymousSessionSchema, l as reviewImageUploadRequestSchema, lt as categoryNodeSchema, m as uploadTicketSchema, mt as productDetailSchema, n as storefrontStoreSchema, nt as claimTypeSchema, o as productReviewQuerySchema, ot as commerceNumberField, p as updateReviewResultSchema, pt as productCardSchema, q as flowActionSchema, r as createReviewRequestSchema, rt as createClaimRequestSchema, s as productReviewSortSchema, st as formatOrderNo, t as createStorefrontClient, tt as claimReturnAddressSchema, u as reviewPageSchema, ut as collectionProductPageSchema, v as memberPointsSchema, vt as storefrontCollectionDetailSchema, w as purchaseDecisionResultSchema, wt as pageSchema, x as myOrderItemSchema, xt as claimStatusSchema, y as storefrontPointPolicySchema, yt as storefrontCollectionListQuerySchema, z as consentKindSchema, zt as tokenPairSchema } from "./client-
|
|
3
|
+
import { $ as orderStepSchema, A as wishlistAddResultSchema, At as idpAgreementsSchema, B as consentSourceSchema, Bt as withdrawRequestSchema, C as orderShippingAddressSchema, Ct as pageInfoSchema, D as memberAddressSchema, Dt as cartSchema, E as memberAddressRequestSchema, Et as cartItemSchema, F as createCustomerInquiryRequestSchema, Ft as loginRequestSchema, G as flowActionRequestSchema, Gt as unwrapData, H as consentUpdateRequestSchema, Ht as ApiError, I as customerInquiryCategorySchema, It as memberIdentitiesSchema, J as flowFieldValueSchema, K as flowActionResultSchema, L as customerInquirySchema, Lt as signupRequestSchema, M as createInquiryResultSchema, Mt as idpAuthorizeResponseSchema, N as productInquiryCategorySchema, Nt as idpTokenRequestSchema, O as memberSchema, Ot as updateCartItemRequestSchema, P as publicInquirySchema, Pt as linkIdentityRequestSchema, Q as orderFlowActionResultSchema, R as consentActionSchema, Rt as socialProviderSchema, S as myOrderSchema, St as orderItemStatusSchema, T as trackingStageResponseSchema, Tt as addCartItemRequestSchema, U as memberConsentsSchema, Ut as buildQuery, V as consentStateSchema, Vt as withdrawalBlockedDetailsSchema, W as ORDER_STEP_TYPES, Wt as toApiError, X as flowStateSchema, Y as flowInputFieldSchema, Z as guestFlowActionRequestSchema, _ as memberPointEntrySchema, _t as productSortSchema, a as myReviewSchema, at as myClaimSchema, b as deliveryTrackingSchema, bt as storefrontCollectionSchema, c as publicReviewSchema, ct as parseOrderNo, d as reviewSummarySchema, dt as collectionProductQuerySchema, et as claimReasonSchema, f as updateReviewRequestSchema, ft as collectionProductSortSchema, g as memberPointEntryPageSchema, gt as productPageSchema, h as writableReviewSchema, ht as productFacetsSchema, i as createReviewResultSchema, it as createClaimResultSchema, j as createInquiryRequestSchema, jt as idpAuthorizeRequestSchema, k as updateProfileRequestSchema, kt as anonymousSessionSchema, l as reviewImageUploadRequestSchema, lt as categoryNodeSchema, m as uploadTicketSchema, mt as productDetailSchema, n as storefrontStoreSchema, nt as claimTypeSchema, o as productReviewQuerySchema, ot as commerceNumberField, p as updateReviewResultSchema, pt as productCardSchema, q as flowActionSchema, r as createReviewRequestSchema, rt as createClaimRequestSchema, s as productReviewSortSchema, st as formatOrderNo, t as createStorefrontClient, tt as claimReturnAddressSchema, u as reviewPageSchema, ut as collectionProductPageSchema, v as memberPointsSchema, vt as storefrontCollectionDetailSchema, w as purchaseDecisionResultSchema, wt as pageSchema, x as myOrderItemSchema, xt as claimStatusSchema, y as storefrontPointPolicySchema, yt as storefrontCollectionListQuerySchema, z as consentKindSchema, zt as tokenPairSchema } from "./client-TokSE7D9.mjs";
|
|
4
4
|
import { $ as customInputViewSchema, A as retryPaymentRequestSchema, B as couponBenefitViewSchema, C as paymentOptionSchema, D as remoteAreaSchema, E as pgProviderSchema, F as applicableCouponSchema, G as storefrontCouponListQuerySchema, H as myCouponListQuerySchema, I as checkoutPricingRequestSchema, J as addonGroupViewSchema, K as storefrontCouponSchema, L as checkoutPricingSchema, M as startPaymentRequestSchema, N as MAX_COUPONS_PER_CHECKOUT, O as residentNumberLike, P as MIN_PAYMENT_AMOUNT, Q as customInputValueViewSchema, R as couponApplicationListSchema, S as paymentOptionListSchema, T as paymentStatusSchema, U as myCouponSchema, V as couponResultSchema, W as pricingAmountsSchema, X as customInputEntrySchema, Y as addonSelectionSchema, Z as customInputLength, _ as guestInfoSchema, a as availablePaymentOptionSchema, at as parseCustomInputValue, b as paymentMethodSchema, c as cashReceiptRequestSchema, ct as stayViewSchema, d as checkoutSessionSchema, dt as pickupLocationViewSchema, et as lineSelectionRequestShape, f as createCheckoutRequestSchema, ft as productCardFulfillmentSchema, g as easyPayProviderSchema, h as easyPayProviderResponseSchema, i as PAYMENT_STATUS_VALUES, it as orderInputUploadRequestSchema, j as shippingAddressInputSchema, k as responsePaymentMethodSchema, l as cashReceiptTypeSchema, lt as lineFulfillmentSchema, m as deliveryQuoteSchema, n as PAYMENT_RESULT_VALUES, nt as normalizeCustomInputValue, o as cashReceiptAvailable, ot as calendarDayViewSchema, p as deliveryQuoteRequestSchema, pt as productFulfillmentViewSchema, q as storefrontCouponTargetSchema, r as PAYMENT_START_STATUS_VALUES, rt as optionSelectionViewSchema, s as cashReceiptIdentityTypeOf, st as stayRequestSchema, t as CASH_RECEIPT_METHODS, tt as lineSelectionResponseShape, u as checkoutDeliverySchema, ut as myOrderItemFulfillmentSnapshotSchema, v as paymentFailureCategorySchema, w as paymentStartSchema, x as paymentOptionKey, y as paymentMessageSchema, z as couponApplicationSchema } from "./checkout-BjJ4Efbn.mjs";
|
|
5
5
|
//#region src/session.ts
|
|
6
6
|
/** 세션 키 상수 — SDK가 소유한다. store-sdk와 겹치지 않는 별도 네임스페이스. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Jr as PaymentStart, Lr as GuestInfo, Yr as PaymentStatus, ei as ShippingAddressInput, ft as createStorefrontClient, kr as CashReceiptRequest, qr as PaymentOption, ti as StartPaymentRequest } from "../index-
|
|
1
|
+
import { Jr as PaymentStart, Lr as GuestInfo, Yr as PaymentStatus, ei as ShippingAddressInput, ft as createStorefrontClient, kr as CashReceiptRequest, qr as PaymentOption, ti as StartPaymentRequest } from "../index-ilVVBQUs.mjs";
|
|
2
2
|
//#region src/payments/index.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* 스토어프론트 결제 — 브라우저 전용(`@sayren/storefront-sdk/payments`).
|
package/package.json
CHANGED
|
@@ -18,7 +18,20 @@ export const flowInputFieldSchema = z.object({
|
|
|
18
18
|
placeholder: z.string().optional().describe("입력 안내"),
|
|
19
19
|
maxLength: z.number().int().optional(),
|
|
20
20
|
maxFiles: z.number().int().optional(),
|
|
21
|
-
options: z
|
|
21
|
+
options: z
|
|
22
|
+
.array(
|
|
23
|
+
z.union([
|
|
24
|
+
z.string(),
|
|
25
|
+
z.number(),
|
|
26
|
+
z.object({ value: z.string(), label: z.string() }).describe("값과 보여 줄 이름"),
|
|
27
|
+
]),
|
|
28
|
+
)
|
|
29
|
+
.optional()
|
|
30
|
+
.describe("고르는 형식의 선택지. 값만 있거나 값·이름 쌍이다(보낼 때는 값)"),
|
|
31
|
+
when: z
|
|
32
|
+
.object({ key: z.string(), in: z.array(z.string()) })
|
|
33
|
+
.optional()
|
|
34
|
+
.describe("다른 칸(`key`)의 값이 `in` 중 하나일 때만 보이고 받는 칸. 없으면 늘 받는다"),
|
|
22
35
|
});
|
|
23
36
|
export type FlowInputField = z.infer<typeof flowInputFieldSchema>;
|
|
24
37
|
|
|
@@ -61,6 +74,12 @@ export const flowStateSchema = z.object({
|
|
|
61
74
|
.array(z.string())
|
|
62
75
|
.optional()
|
|
63
76
|
.describe("가장 최근 행동이 붙인 첨부 주소(시안 등, #115). 없으면 생략"),
|
|
77
|
+
earlierAttachments: z
|
|
78
|
+
.array(z.string())
|
|
79
|
+
.optional()
|
|
80
|
+
.describe(
|
|
81
|
+
"앞 상태에서 붙인 첨부(수정 요청 뒤의 이전 시안 등). 다음 첨부가 오면 바뀐다. 없으면 생략",
|
|
82
|
+
),
|
|
64
83
|
inputs: z
|
|
65
84
|
.object({
|
|
66
85
|
by: z.string().describe("적은 사람 — seller · buyer"),
|
|
@@ -105,6 +124,10 @@ export const orderStepSchema = z.object({
|
|
|
105
124
|
message: z.string().optional().describe("판매자가 둔 안내문"),
|
|
106
125
|
deadlineAt: z.string().optional().describe("가장 가까운 기한(ISO 8601)"),
|
|
107
126
|
attachments: z.array(z.string()).optional().describe("판매자가 올린 자료(시안 등)"),
|
|
127
|
+
earlierAttachments: z
|
|
128
|
+
.array(z.string())
|
|
129
|
+
.optional()
|
|
130
|
+
.describe("앞 단계에서 올린 자료(수정 요청 뒤의 이전 시안 등)"),
|
|
108
131
|
inputs: flowStateSchema.shape.inputs,
|
|
109
132
|
actions: z
|
|
110
133
|
.array(flowActionSchema)
|