@sayren/store-sdk 0.30.15 → 0.30.16
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 +5 -2
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
- package/src/schemas/storefront-hosting.ts +6 -0
package/dist/index.d.mts
CHANGED
|
@@ -10339,9 +10339,9 @@ export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
|
|
|
10339
10339
|
export declare const productSortSchema: z.ZodEnum<{
|
|
10340
10340
|
"createdAt.desc": "createdAt.desc";
|
|
10341
10341
|
"createdAt.asc": "createdAt.asc";
|
|
10342
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
10342
10343
|
"salePrice.asc": "salePrice.asc";
|
|
10343
10344
|
"salePrice.desc": "salePrice.desc";
|
|
10344
|
-
"updatedAt.desc": "updatedAt.desc";
|
|
10345
10345
|
}>;
|
|
10346
10346
|
export type ProductSort = z.infer<typeof productSortSchema>;
|
|
10347
10347
|
export interface ProductListParams extends PageParams {
|
|
@@ -10370,9 +10370,9 @@ export declare const productListQuerySchema: z.ZodObject<{
|
|
|
10370
10370
|
sort: z.ZodOptional<z.ZodEnum<{
|
|
10371
10371
|
"createdAt.desc": "createdAt.desc";
|
|
10372
10372
|
"createdAt.asc": "createdAt.asc";
|
|
10373
|
+
"updatedAt.desc": "updatedAt.desc";
|
|
10373
10374
|
"salePrice.asc": "salePrice.asc";
|
|
10374
10375
|
"salePrice.desc": "salePrice.desc";
|
|
10375
|
-
"updatedAt.desc": "updatedAt.desc";
|
|
10376
10376
|
}>>;
|
|
10377
10377
|
}, z.core.$strip>;
|
|
10378
10378
|
export declare const discountRequestSchema: z.ZodObject<{
|
|
@@ -11528,6 +11528,7 @@ export declare const createStorefrontPreviewLinkRequestSchema: z.ZodObject<{
|
|
|
11528
11528
|
export type CreateStorefrontPreviewLinkRequest = z.infer<typeof createStorefrontPreviewLinkRequestSchema>;
|
|
11529
11529
|
export declare const storefrontPreviewLinkSchema: z.ZodObject<{
|
|
11530
11530
|
url: z.ZodString;
|
|
11531
|
+
editorUrl: z.ZodOptional<z.ZodString>;
|
|
11531
11532
|
expiresAt: z.ZodString;
|
|
11532
11533
|
}, z.core.$strip>;
|
|
11533
11534
|
export type StorefrontPreviewLink = z.infer<typeof storefrontPreviewLinkSchema>;
|
|
@@ -18874,6 +18875,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
18874
18875
|
createPreviewLink: (body?: CreateStorefrontPreviewLinkRequest) => Promise<{
|
|
18875
18876
|
url: string;
|
|
18876
18877
|
expiresAt: string;
|
|
18878
|
+
editorUrl?: string | undefined;
|
|
18877
18879
|
}>;
|
|
18878
18880
|
/** `GET /v1/storefront/site/domains` — 주소 목록(기본 주소 + 내 도메인)과 DNS 안내 */
|
|
18879
18881
|
listDomains: () => Promise<{
|
|
@@ -19109,6 +19111,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
|
|
|
19109
19111
|
createEditPreviewLink: (body?: CreateStorefrontEditPreviewLinkRequest) => Promise<{
|
|
19110
19112
|
url: string;
|
|
19111
19113
|
expiresAt: string;
|
|
19114
|
+
editorUrl?: string | undefined;
|
|
19112
19115
|
}>;
|
|
19113
19116
|
/** `GET /v1/storefront/site/files?prefix=` — 작업 트리 파일 목록 */
|
|
19114
19117
|
listFiles: (params?: {
|
package/dist/index.mjs
CHANGED
|
@@ -7846,6 +7846,7 @@ const createStorefrontPreviewLinkRequestSchema = z.object({
|
|
|
7846
7846
|
});
|
|
7847
7847
|
const storefrontPreviewLinkSchema = z.object({
|
|
7848
7848
|
url: z.string().describe("미리보기 링크 — 5분 안에 연다"),
|
|
7849
|
+
editorUrl: z.string().optional().describe("편집 미리보기만: AI 편집 패널이 있는 미리보기 화면 링크(5분). 사이트는 그 안에 따로 뜨고 AI 자격은 사이트 코드에 닿지 않는다"),
|
|
7849
7850
|
expiresAt: z.string().describe("링크 만료 시각 (ISO 8601)")
|
|
7850
7851
|
});
|
|
7851
7852
|
/**
|
package/package.json
CHANGED
|
@@ -549,6 +549,12 @@ export type CreateStorefrontPreviewLinkRequest = z.infer<
|
|
|
549
549
|
|
|
550
550
|
export const storefrontPreviewLinkSchema = z.object({
|
|
551
551
|
url: z.string().describe("미리보기 링크 — 5분 안에 연다"),
|
|
552
|
+
editorUrl: z
|
|
553
|
+
.string()
|
|
554
|
+
.optional()
|
|
555
|
+
.describe(
|
|
556
|
+
"편집 미리보기만: AI 편집 패널이 있는 미리보기 화면 링크(5분). 사이트는 그 안에 따로 뜨고 AI 자격은 사이트 코드에 닿지 않는다",
|
|
557
|
+
),
|
|
552
558
|
expiresAt: z.string().describe("링크 만료 시각 (ISO 8601)"),
|
|
553
559
|
});
|
|
554
560
|
export type StorefrontPreviewLink = z.infer<typeof storefrontPreviewLinkSchema>;
|