@sayren/store-sdk 0.30.7 → 0.30.8

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 CHANGED
@@ -165,9 +165,9 @@ 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";
168
169
  DENIED: "DENIED";
169
170
  ALLOW: "ALLOW";
170
- APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
171
171
  }>;
172
172
  export type AgentPolicyDecision = z.infer<typeof agentPolicyDecisionSchema>;
173
173
  export declare const writePreviewSchema: z.ZodObject<{
@@ -191,9 +191,9 @@ 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";
194
195
  DENIED: "DENIED";
195
196
  ALLOW: "ALLOW";
196
- APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
197
197
  }>;
198
198
  reason: z.ZodNullable<z.ZodString>;
199
199
  preview: z.ZodObject<{
@@ -7326,9 +7326,9 @@ export type ProductPatchRequest = z.infer<typeof productPatchRequestSchema>;
7326
7326
  export declare const productSortSchema: z.ZodEnum<{
7327
7327
  "createdAt.desc": "createdAt.desc";
7328
7328
  "createdAt.asc": "createdAt.asc";
7329
+ "updatedAt.desc": "updatedAt.desc";
7329
7330
  "salePrice.asc": "salePrice.asc";
7330
7331
  "salePrice.desc": "salePrice.desc";
7331
- "updatedAt.desc": "updatedAt.desc";
7332
7332
  }>;
7333
7333
  export type ProductSort = z.infer<typeof productSortSchema>;
7334
7334
  export interface ProductListParams extends PageParams {
@@ -7357,9 +7357,9 @@ export declare const productListQuerySchema: z.ZodObject<{
7357
7357
  sort: z.ZodOptional<z.ZodEnum<{
7358
7358
  "createdAt.desc": "createdAt.desc";
7359
7359
  "createdAt.asc": "createdAt.asc";
7360
+ "updatedAt.desc": "updatedAt.desc";
7360
7361
  "salePrice.asc": "salePrice.asc";
7361
7362
  "salePrice.desc": "salePrice.desc";
7362
- "updatedAt.desc": "updatedAt.desc";
7363
7363
  }>>;
7364
7364
  }, z.core.$strip>;
7365
7365
  export declare const discountRequestSchema: z.ZodObject<{
@@ -7742,6 +7742,7 @@ export declare const updateStoreRequestSchema: z.ZodObject<{
7742
7742
  analyticsAllowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
7743
7743
  storefrontOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
7744
7744
  guestCheckoutEnabled: z.ZodOptional<z.ZodBoolean>;
7745
+ testOrderReviewsAllowed: z.ZodOptional<z.ZodBoolean>;
7745
7746
  autoDeliverDays: z.ZodOptional<z.ZodNumber>;
7746
7747
  autoConfirmDays: z.ZodOptional<z.ZodNumber>;
7747
7748
  refundPolicy: z.ZodOptional<z.ZodObject<{
@@ -7780,6 +7781,7 @@ export declare const storeSchema: z.ZodObject<{
7780
7781
  analyticsAllowedOrigins: z.ZodArray<z.ZodString>;
7781
7782
  storefrontOrigins: z.ZodArray<z.ZodString>;
7782
7783
  guestCheckoutEnabled: z.ZodBoolean;
7784
+ testOrderReviewsAllowed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
7783
7785
  autoDeliverDays: z.ZodNumber;
7784
7786
  autoConfirmDays: z.ZodNumber;
7785
7787
  refundPolicy: z.ZodObject<{
@@ -15791,6 +15793,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
15791
15793
  analyticsAllowedOrigins: string[];
15792
15794
  storefrontOrigins: string[];
15793
15795
  guestCheckoutEnabled: boolean;
15796
+ testOrderReviewsAllowed: boolean;
15794
15797
  autoDeliverDays: number;
15795
15798
  autoConfirmDays: number;
15796
15799
  refundPolicy: {
@@ -15839,6 +15842,7 @@ export declare function createStoreClient(options: StoreClientOptions): {
15839
15842
  analyticsAllowedOrigins: string[];
15840
15843
  storefrontOrigins: string[];
15841
15844
  guestCheckoutEnabled: boolean;
15845
+ testOrderReviewsAllowed: boolean;
15842
15846
  autoDeliverDays: number;
15843
15847
  autoConfirmDays: number;
15844
15848
  refundPolicy: {
package/dist/index.mjs CHANGED
@@ -5652,6 +5652,7 @@ const updateStoreRequestSchema = z.object({
5652
5652
  analyticsAllowedOrigins: z.array(analyticsOriginSchema).max(20).optional().describe("@deprecated `storefrontOrigins`를 쓴다(같은 목록). 방문 분석 수집을 받을 스토어프론트 오리진(최대 20개). 비우면 모든 오리진에서 받는다. 넣으면 목록에 없는 오리진의 수집 요청은 403 `ORIGIN_NOT_ALLOWED`이고, 페이지 URL이 목록 밖인 이벤트는 버린다"),
5653
5653
  storefrontOrigins: z.array(analyticsOriginSchema).max(20).optional().describe("스토어프론트 도메인(최대 20개) — 소셜 로그인 뒤 돌아갈 주소와 방문 분석 수집을 함께 제한한다. `analyticsAllowedOrigins`와 같은 목록이다(둘 다 주면 이 값이 이긴다)"),
5654
5654
  guestCheckoutEnabled: z.boolean().optional().describe("비회원 주문 허용. false(회원만)면 로그인하지 않은 구매자의 주문서 생성·결제 요청이 403 `GUEST_CHECKOUT_DISABLED`다. 장바구니 담기와 이미 받은 비회원 주문의 조회·취소는 막지 않는다"),
5655
+ testOrderReviewsAllowed: z.boolean().optional().describe("테스트 결제(샌드박스) 주문의 리뷰 허용. 기본 false — 돈을 내지 않은 주문으로 구매 인증 리뷰가 쌓이지 않게 막는다"),
5655
5656
  autoDeliverDays: z.number().int().min(0).max(30).optional().describe(autoDeliverDaysDescription),
5656
5657
  autoConfirmDays: z.number().int().min(0).max(30).optional().describe(autoConfirmDaysDescription),
5657
5658
  refundPolicy: refundPolicyPatchSchema.optional().describe("상점 기본 환불 정책 — 준 항목만 바꾼다. 상품별 정책(`products.refundPolicy`)이 없는 상품에 적용된다"),
@@ -5678,6 +5679,7 @@ const storeSchema = z.object({
5678
5679
  analyticsAllowedOrigins: z.array(z.string()).describe("방문 분석 수집을 받는 스토어프론트 오리진. 비어 있으면 모든 오리진에서 받는다"),
5679
5680
  storefrontOrigins: z.array(z.string()).describe("스토어프론트 도메인 — 소셜 로그인 리디렉트와 방문 분석 수집이 함께 쓴다(`analyticsAllowedOrigins`와 같은 값)"),
5680
5681
  guestCheckoutEnabled: z.boolean().describe("비회원 주문 허용. false면 회원만 주문할 수 있다"),
5682
+ testOrderReviewsAllowed: z.boolean().optional().default(false).describe("테스트 결제(샌드박스) 주문의 리뷰 허용. 서버는 항상 싣는다"),
5681
5683
  autoDeliverDays: z.number().int().describe(autoDeliverDaysDescription),
5682
5684
  autoConfirmDays: z.number().int().describe(autoConfirmDaysDescription),
5683
5685
  refundPolicy: refundPolicySchema.describe("상점 기본 환불 정책. 상점이 정하지 않은 항목은 플랫폼 기본값으로 채워 항상 전부 싣는다"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sayren/store-sdk",
3
- "version": "0.30.7",
3
+ "version": "0.30.8",
4
4
  "main": "./dist/index.mjs",
5
5
  "types": "./dist/index.d.mts",
6
6
  "exports": {
@@ -260,6 +260,12 @@ export const updateStoreRequestSchema = z
260
260
  "비회원 주문 허용. false(회원만)면 로그인하지 않은 구매자의 주문서 생성·결제 요청이 403 `GUEST_CHECKOUT_DISABLED`다. " +
261
261
  "장바구니 담기와 이미 받은 비회원 주문의 조회·취소는 막지 않는다",
262
262
  ),
263
+ testOrderReviewsAllowed: z
264
+ .boolean()
265
+ .optional()
266
+ .describe(
267
+ "테스트 결제(샌드박스) 주문의 리뷰 허용. 기본 false — 돈을 내지 않은 주문으로 구매 인증 리뷰가 쌓이지 않게 막는다",
268
+ ),
263
269
  autoDeliverDays: z
264
270
  .number()
265
271
  .int()
@@ -326,6 +332,11 @@ export const storeSchema = z.object({
326
332
  "스토어프론트 도메인 — 소셜 로그인 리디렉트와 방문 분석 수집이 함께 쓴다(`analyticsAllowedOrigins`와 같은 값)",
327
333
  ),
328
334
  guestCheckoutEnabled: z.boolean().describe("비회원 주문 허용. false면 회원만 주문할 수 있다"),
335
+ testOrderReviewsAllowed: z
336
+ .boolean()
337
+ .optional()
338
+ .default(false)
339
+ .describe("테스트 결제(샌드박스) 주문의 리뷰 허용. 서버는 항상 싣는다"),
329
340
  autoDeliverDays: z.number().int().describe(autoDeliverDaysDescription),
330
341
  autoConfirmDays: z.number().int().describe(autoConfirmDaysDescription),
331
342
  refundPolicy: refundPolicySchema.describe(