@sayren/store-sdk 0.55.0 → 0.55.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +794 -782
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
- package/src/schemas/order.ts +11 -0
package/dist/index.mjs
CHANGED
|
@@ -11178,7 +11178,11 @@ const shippingOrderItemSchema = orderItemSchema.extend({
|
|
|
11178
11178
|
ordererName: z$1.string(),
|
|
11179
11179
|
ordererPhone: z$1.string(),
|
|
11180
11180
|
shippingAddress: shippingAddressSchema,
|
|
11181
|
-
delivery: deliveryInfoSchema.nullable().describe("발송 정보. 발송 전이면 null")
|
|
11181
|
+
delivery: deliveryInfoSchema.nullable().describe("발송 정보. 발송 전이면 null"),
|
|
11182
|
+
flowStep: z$1.object({
|
|
11183
|
+
key: z$1.string().describe("주문 흐름 안 단계 키(상점이 정한다). 화면 분기에 쓰지 않는다"),
|
|
11184
|
+
label: z$1.string().describe("셀러용 단계 이름")
|
|
11185
|
+
}).nullable().optional().default(null).describe("주문 흐름의 지금 단계(`GET /v1/order-items/{orderItemId}/flow`의 `flowState` 키·이름). 같은 상태라도 단계가 발송을 받지 않으면 발송은 409 `INVALID_STATUS`다. 흐름이 없으면 null. 서버는 항상 싣는다")
|
|
11182
11186
|
});
|
|
11183
11187
|
const shippingOrderItemPageSchema = pageSchema(shippingOrderItemSchema);
|
|
11184
11188
|
/**
|
package/package.json
CHANGED
package/src/schemas/order.ts
CHANGED
|
@@ -489,6 +489,17 @@ export const shippingOrderItemSchema = orderItemSchema.extend({
|
|
|
489
489
|
ordererPhone: z.string(),
|
|
490
490
|
shippingAddress: shippingAddressSchema,
|
|
491
491
|
delivery: deliveryInfoSchema.nullable().describe("발송 정보. 발송 전이면 null"),
|
|
492
|
+
flowStep: z
|
|
493
|
+
.object({
|
|
494
|
+
key: z.string().describe("주문 흐름 안 단계 키(상점이 정한다). 화면 분기에 쓰지 않는다"),
|
|
495
|
+
label: z.string().describe("셀러용 단계 이름"),
|
|
496
|
+
})
|
|
497
|
+
.nullable()
|
|
498
|
+
.optional()
|
|
499
|
+
.default(null)
|
|
500
|
+
.describe(
|
|
501
|
+
"주문 흐름의 지금 단계(`GET /v1/order-items/{orderItemId}/flow`의 `flowState` 키·이름). 같은 상태라도 단계가 발송을 받지 않으면 발송은 409 `INVALID_STATUS`다. 흐름이 없으면 null. 서버는 항상 싣는다",
|
|
502
|
+
),
|
|
492
503
|
});
|
|
493
504
|
|
|
494
505
|
export type ShippingOrderItem = z.infer<typeof shippingOrderItemSchema>;
|