@sayren/store-sdk 0.15.0 → 0.15.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 +3 -3
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/schemas/common.ts +1 -0
- package/src/schemas/misc.ts +20 -15
- package/src/schemas/webhook-event.ts +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -166,8 +166,8 @@ export declare const auditLogPageSchema: z.ZodObject<{
|
|
|
166
166
|
export type AuditLogPage = z.infer<typeof auditLogPageSchema>;
|
|
167
167
|
export declare const agentPolicyDecisionSchema: z.ZodEnum<{
|
|
168
168
|
DENIED: "DENIED";
|
|
169
|
-
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
170
169
|
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,8 +191,8 @@ export declare const writeDryRunResultSchema: z.ZodObject<{
|
|
|
191
191
|
dryRun: z.ZodLiteral<true>;
|
|
192
192
|
decision: z.ZodEnum<{
|
|
193
193
|
DENIED: "DENIED";
|
|
194
|
-
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
195
194
|
ALLOW: "ALLOW";
|
|
195
|
+
APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
|
|
196
196
|
}>;
|
|
197
197
|
reason: z.ZodNullable<z.ZodString>;
|
|
198
198
|
preview: z.ZodObject<{
|
|
@@ -921,8 +921,8 @@ export declare const oauthClientRegistrationRequestSchema: z.ZodObject<{
|
|
|
921
921
|
}>>;
|
|
922
922
|
redirect_uris: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
923
923
|
grant_types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
924
|
-
authorization_code: "authorization_code";
|
|
925
924
|
refresh_token: "refresh_token";
|
|
925
|
+
authorization_code: "authorization_code";
|
|
926
926
|
client_credentials: "client_credentials";
|
|
927
927
|
"urn:ietf:params:oauth:grant-type:token-exchange": "urn:ietf:params:oauth:grant-type:token-exchange";
|
|
928
928
|
}>>>;
|
package/dist/index.mjs
CHANGED
|
@@ -1364,7 +1364,7 @@ const eventTypeSchema = z.enum([
|
|
|
1364
1364
|
"INQUIRY.CREATED",
|
|
1365
1365
|
"REVIEW.CREATED",
|
|
1366
1366
|
"PRODUCT.OUT_OF_STOCK"
|
|
1367
|
-
]);
|
|
1367
|
+
]).describe("웹훅 이벤트 타입. `ORDER.ADDRESS_CHANGE_REQUESTED`는 현재 발송하지 않음(호환을 위해 값만 남았고, 구독해도 이벤트가 오지 않는다)");
|
|
1368
1368
|
const webhookStatusSchema = z.enum(["ACTIVE", "SUSPENDED"]).describe("구독 상태. `ACTIVE`=발송 대상, `SUSPENDED`=24시간 이상 연속 전송 실패로 발송이 정지된 상태. 정지 중 발생한 이벤트는 적재하지 않는다. 재개(`POST /webhooks/{id}/resume`)하거나 구독을 수정하면 ACTIVE로 돌아간다");
|
|
1369
1369
|
const webhookSchema = z.object({
|
|
1370
1370
|
webhookId: z.string(),
|
package/package.json
CHANGED
package/src/schemas/common.ts
CHANGED
package/src/schemas/misc.ts
CHANGED
|
@@ -138,21 +138,26 @@ export interface SettlementListParams extends PageParams {
|
|
|
138
138
|
status?: SettlementStatus;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
export const eventTypeSchema = z
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
141
|
+
export const eventTypeSchema = z
|
|
142
|
+
.enum([
|
|
143
|
+
"ORDER.PAID",
|
|
144
|
+
"ORDER.CONFIRMED",
|
|
145
|
+
"ORDER.DISPATCHED",
|
|
146
|
+
"ORDER.DELIVERED",
|
|
147
|
+
"ORDER.PURCHASE_DECIDED",
|
|
148
|
+
// 현재 발송하지 않음. 공개 계약 호환을 위해 값만 남겼다(구독해도 이벤트가 오지 않는다)
|
|
149
|
+
"ORDER.ADDRESS_CHANGE_REQUESTED",
|
|
150
|
+
"CLAIM.CANCEL_REQUESTED",
|
|
151
|
+
"CLAIM.RETURN_REQUESTED",
|
|
152
|
+
"CLAIM.EXCHANGE_REQUESTED",
|
|
153
|
+
"CLAIM.COMPLETED",
|
|
154
|
+
"INQUIRY.CREATED",
|
|
155
|
+
"REVIEW.CREATED",
|
|
156
|
+
"PRODUCT.OUT_OF_STOCK",
|
|
157
|
+
])
|
|
158
|
+
.describe(
|
|
159
|
+
"웹훅 이벤트 타입. `ORDER.ADDRESS_CHANGE_REQUESTED`는 현재 발송하지 않음(호환을 위해 값만 남았고, 구독해도 이벤트가 오지 않는다)",
|
|
160
|
+
);
|
|
156
161
|
|
|
157
162
|
export type EventType = z.infer<typeof eventTypeSchema>;
|
|
158
163
|
|