@sayren/store-sdk 0.42.0 → 0.44.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 +698 -463
- package/dist/index.mjs +79 -6
- package/dist/server.mjs +1 -1
- package/dist/{webhook-headers-D0E3wPpS.mjs → webhook-headers-CTez3xDY.mjs} +1 -1
- package/package.json +1 -1
- package/src/client.ts +25 -1
- package/src/http.ts +1 -1
- package/src/index.ts +1 -0
- package/src/oauth.ts +1 -1
- package/src/schemas/ai.ts +1 -1
- package/src/schemas/analytics.ts +1 -1
- package/src/schemas/api-log.ts +1 -1
- package/src/schemas/app-manifest.ts +1 -1
- package/src/schemas/apps.ts +1 -1
- package/src/schemas/audit.ts +1 -1
- package/src/schemas/auth.ts +1 -1
- package/src/schemas/category.ts +1 -1
- package/src/schemas/checkout.ts +124 -0
- package/src/schemas/claim.ts +1 -1
- package/src/schemas/collection.ts +1 -1
- package/src/schemas/commerce-flow.ts +1 -1
- package/src/schemas/commerce-number.ts +1 -1
- package/src/schemas/common.ts +1 -1
- package/src/schemas/coupon.ts +1 -1
- package/src/schemas/currency-prices.ts +1 -1
- package/src/schemas/currency.ts +1 -1
- package/src/schemas/customer-delegation.ts +1 -1
- package/src/schemas/customer.ts +1 -1
- package/src/schemas/fulfillment.ts +1 -1
- package/src/schemas/inventory.ts +1 -1
- package/src/schemas/locale.ts +1 -1
- package/src/schemas/login.ts +1 -1
- package/src/schemas/market.ts +1 -1
- package/src/schemas/misc.ts +1 -1
- package/src/schemas/order.ts +1 -1
- package/src/schemas/payment.ts +1 -1
- package/src/schemas/plans.ts +1 -1
- package/src/schemas/points.ts +1 -1
- package/src/schemas/product-info.ts +1 -1
- package/src/schemas/product-localization.ts +1 -1
- package/src/schemas/product.ts +1 -1
- package/src/schemas/promotion.ts +1 -1
- package/src/schemas/refund-policy.ts +1 -1
- package/src/schemas/saved-option-set.ts +1 -1
- package/src/schemas/scope.ts +1 -1
- package/src/schemas/shipping-policy.ts +1 -1
- package/src/schemas/starter.ts +1 -1
- package/src/schemas/stay.ts +1 -1
- package/src/schemas/store.ts +9 -4
- package/src/schemas/storefront-hosting.ts +1 -1
- package/src/schemas/strict.ts +1 -1
- package/src/schemas/subscription.ts +1 -1
- package/src/schemas/telemetry.ts +1 -1
- package/src/schemas/upload.ts +1 -1
- package/src/schemas/webhook-event.ts +1 -1
package/src/schemas/misc.ts
CHANGED
package/src/schemas/order.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod";
|
|
2
2
|
import { commerceNumberField } from "./commerce-number";
|
|
3
3
|
import { changeTypeSchema, orderItemStatusSchema, type PageParams, pageSchema } from "./common";
|
|
4
4
|
import { orderItemFulfillmentSnapshotResponseSchema } from "./fulfillment";
|
package/src/schemas/payment.ts
CHANGED
package/src/schemas/plans.ts
CHANGED
package/src/schemas/points.ts
CHANGED
package/src/schemas/product.ts
CHANGED
package/src/schemas/promotion.ts
CHANGED
package/src/schemas/scope.ts
CHANGED
package/src/schemas/starter.ts
CHANGED
package/src/schemas/stay.ts
CHANGED
package/src/schemas/store.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as z from "zod";
|
|
2
2
|
import { storeRoleSchema } from "./auth";
|
|
3
3
|
import { localeCodeSchema } from "./locale";
|
|
4
4
|
import { refundPolicyPatchSchema, refundPolicySchema } from "./refund-policy";
|
|
@@ -267,7 +267,7 @@ export const updateStoreRequestSchema = strictRequest(
|
|
|
267
267
|
.boolean()
|
|
268
268
|
.optional()
|
|
269
269
|
.describe(
|
|
270
|
-
"
|
|
270
|
+
"@deprecated 효과 없음. 테스트 결제 주문도 실주문과 같이 리뷰를 쓸 수 있다. 호환을 위해 받기만 한다",
|
|
271
271
|
),
|
|
272
272
|
autoDeliverDays: z
|
|
273
273
|
.number()
|
|
@@ -326,7 +326,10 @@ export const storeSchema = z.object({
|
|
|
326
326
|
storeId: z.string(),
|
|
327
327
|
name: z.string(),
|
|
328
328
|
storeCode: z.string(),
|
|
329
|
-
storefrontUrl: z
|
|
329
|
+
storefrontUrl: z
|
|
330
|
+
.url()
|
|
331
|
+
.nullable()
|
|
332
|
+
.describe("스토어프론트 호스팅 사이트의 대표 주소. 사이트가 없으면 null"),
|
|
330
333
|
status: z.enum(["ACTIVE", "SUSPENDED", "CLOSED"]),
|
|
331
334
|
logoUrl: z.url().nullable(),
|
|
332
335
|
businessNumber: z.string().nullable().describe("사업자등록번호(숫자 10자리). 없으면 null"),
|
|
@@ -345,7 +348,9 @@ export const storeSchema = z.object({
|
|
|
345
348
|
.boolean()
|
|
346
349
|
.optional()
|
|
347
350
|
.default(false)
|
|
348
|
-
.describe(
|
|
351
|
+
.describe(
|
|
352
|
+
"@deprecated 효과 없음. 테스트 결제 주문도 실주문과 같이 리뷰를 쓸 수 있다. 호환을 위해 저장한 값을 싣는다",
|
|
353
|
+
),
|
|
349
354
|
autoDeliverDays: z.number().int().describe(autoDeliverDaysDescription),
|
|
350
355
|
autoConfirmDays: z.number().int().describe(autoConfirmDaysDescription),
|
|
351
356
|
refundPolicy: refundPolicySchema.describe(
|
package/src/schemas/strict.ts
CHANGED
package/src/schemas/telemetry.ts
CHANGED
package/src/schemas/upload.ts
CHANGED