@waffo/pancake-ts 0.6.0 → 0.7.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.cts CHANGED
@@ -253,8 +253,8 @@ interface StoreWebhook {
253
253
  channel: WebhookChannel;
254
254
  /** Target webhook URL */
255
255
  url: string;
256
- /** Subscribed event types (e.g. `order.completed`) */
257
- events: string[];
256
+ /** Subscribed event types (use `WebhookEventType` enum or its string literal) */
257
+ events: `${WebhookEventType}`[];
258
258
  /** Whether this webhook fires in test or prod environment */
259
259
  testMode: boolean;
260
260
  /** Channel-specific credential (e.g. Telegram chat_id) */
@@ -269,8 +269,8 @@ interface AddWebhookParams {
269
269
  channel: WebhookChannel;
270
270
  /** Target webhook URL */
271
271
  url: string;
272
- /** Subscribed event types */
273
- events: string[];
272
+ /** Subscribed event types (use `WebhookEventType` enum or its string literal) */
273
+ events: `${WebhookEventType}`[];
274
274
  /** Whether this webhook fires in test (true) or prod (false) */
275
275
  testMode: boolean;
276
276
  /** Channel-specific credential (e.g. Telegram chat_id) */
@@ -282,8 +282,8 @@ interface UpdateWebhookParams {
282
282
  id: string;
283
283
  /** Replace target URL (must remain on the same channel host) */
284
284
  url?: string;
285
- /** Replace subscribed event types */
286
- events?: string[];
285
+ /** Replace subscribed event types (use `WebhookEventType` enum or its string literal) */
286
+ events?: `${WebhookEventType}`[];
287
287
  /** Replace channel-specific credential */
288
288
  secret?: string | null;
289
289
  }
@@ -885,6 +885,12 @@ interface GraphQLResponse<T = Record<string, unknown>> {
885
885
  column: number;
886
886
  }>;
887
887
  path?: string[];
888
+ aiHint?: string;
889
+ }>;
890
+ warnings?: Array<{
891
+ message: string;
892
+ layer: string;
893
+ aiHint?: string;
888
894
  }>;
889
895
  }
890
896
  /**
package/dist/index.d.ts CHANGED
@@ -253,8 +253,8 @@ interface StoreWebhook {
253
253
  channel: WebhookChannel;
254
254
  /** Target webhook URL */
255
255
  url: string;
256
- /** Subscribed event types (e.g. `order.completed`) */
257
- events: string[];
256
+ /** Subscribed event types (use `WebhookEventType` enum or its string literal) */
257
+ events: `${WebhookEventType}`[];
258
258
  /** Whether this webhook fires in test or prod environment */
259
259
  testMode: boolean;
260
260
  /** Channel-specific credential (e.g. Telegram chat_id) */
@@ -269,8 +269,8 @@ interface AddWebhookParams {
269
269
  channel: WebhookChannel;
270
270
  /** Target webhook URL */
271
271
  url: string;
272
- /** Subscribed event types */
273
- events: string[];
272
+ /** Subscribed event types (use `WebhookEventType` enum or its string literal) */
273
+ events: `${WebhookEventType}`[];
274
274
  /** Whether this webhook fires in test (true) or prod (false) */
275
275
  testMode: boolean;
276
276
  /** Channel-specific credential (e.g. Telegram chat_id) */
@@ -282,8 +282,8 @@ interface UpdateWebhookParams {
282
282
  id: string;
283
283
  /** Replace target URL (must remain on the same channel host) */
284
284
  url?: string;
285
- /** Replace subscribed event types */
286
- events?: string[];
285
+ /** Replace subscribed event types (use `WebhookEventType` enum or its string literal) */
286
+ events?: `${WebhookEventType}`[];
287
287
  /** Replace channel-specific credential */
288
288
  secret?: string | null;
289
289
  }
@@ -885,6 +885,12 @@ interface GraphQLResponse<T = Record<string, unknown>> {
885
885
  column: number;
886
886
  }>;
887
887
  path?: string[];
888
+ aiHint?: string;
889
+ }>;
890
+ warnings?: Array<{
891
+ message: string;
892
+ layer: string;
893
+ aiHint?: string;
888
894
  }>;
889
895
  }
890
896
  /**