@aifeatures/backend 0.20.0 → 0.21.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
@@ -685,7 +685,7 @@ type AttachProductFileFromUrl = {
685
685
  };
686
686
  type AttachProductFileMultipart = {
687
687
  /**
688
- * The file to attach (max 50 MB; pdf/zip/epub/image/audio/video only).
688
+ * The file to attach (max 50 MB; pdf/zip/epub/docx/xlsx/pptx/csv/image/audio/video only).
689
689
  */
690
690
  file?: Blob | File;
691
691
  };
@@ -2612,6 +2612,10 @@ type Form = {
2612
2612
  name: string;
2613
2613
  endpoint_url: string;
2614
2614
  email_recipients: Array<string>;
2615
+ /**
2616
+ * When false, submissions do not email `email_recipients` (the list stays saved). Submissions are still stored and `form.submission.created` event destinations still fire. Use this when another system notifies the recipients. Defaults to true.
2617
+ */
2618
+ email_notifications: boolean;
2615
2619
  redirect_url: string | null;
2616
2620
  /**
2617
2621
  * Turnstile site key for CAPTCHA. Null if not configured for the org.
@@ -2629,6 +2633,10 @@ type CreateForm = {
2629
2633
  * Email recipients for form submissions. If not provided, uses the site default.
2630
2634
  */
2631
2635
  email_recipients?: Array<string>;
2636
+ /**
2637
+ * When false, submissions do not email `email_recipients` (the list stays saved). Submissions are still stored and `form.submission.created` event destinations still fire. Use this when another system notifies the recipients. Defaults to true.
2638
+ */
2639
+ email_notifications?: boolean;
2632
2640
  redirect_url?: string;
2633
2641
  };
2634
2642
  type Site = {
@@ -2904,6 +2912,10 @@ type UpdateSiteAnalytics = {
2904
2912
  type UpdateForm = {
2905
2913
  name?: string;
2906
2914
  email_recipients?: Array<string>;
2915
+ /**
2916
+ * When false, submissions do not email `email_recipients` (the list stays saved). Submissions are still stored and `form.submission.created` event destinations still fire. Use this when another system notifies the recipients. Defaults to true.
2917
+ */
2918
+ email_notifications?: boolean;
2907
2919
  redirect_url?: string | null;
2908
2920
  };
2909
2921
  type Attachment = {
@@ -11436,7 +11448,7 @@ declare const updateProduct: <ThrowOnError extends boolean = false>(options: Opt
11436
11448
  /**
11437
11449
  * Attach a digital file to a product
11438
11450
  *
11439
- * Attaches a downloadable file to a product, either as a multipart upload (field: file) or by fetching a https source_url server-side. Max 50 MB; pdf/zip/epub/image/audio/video types only. Each attach writes a fresh storage key — previously attached files are never overwritten.
11451
+ * Attaches a downloadable file to a product, either as a multipart upload (field: file) or by fetching a https source_url server-side. Max 50 MB; pdf/zip/epub/docx/xlsx/pptx/csv/image/audio/video types only. Each attach writes a fresh storage key — previously attached files are never overwritten.
11440
11452
  */
11441
11453
  declare const attachProductFile: <ThrowOnError extends boolean = false>(options: Options<AttachProductFileData, ThrowOnError>) => RequestResult<AttachProductFileResponses, AttachProductFileErrors, ThrowOnError, "fields">;
11442
11454
  /**
package/dist/index.d.ts CHANGED
@@ -685,7 +685,7 @@ type AttachProductFileFromUrl = {
685
685
  };
686
686
  type AttachProductFileMultipart = {
687
687
  /**
688
- * The file to attach (max 50 MB; pdf/zip/epub/image/audio/video only).
688
+ * The file to attach (max 50 MB; pdf/zip/epub/docx/xlsx/pptx/csv/image/audio/video only).
689
689
  */
690
690
  file?: Blob | File;
691
691
  };
@@ -2612,6 +2612,10 @@ type Form = {
2612
2612
  name: string;
2613
2613
  endpoint_url: string;
2614
2614
  email_recipients: Array<string>;
2615
+ /**
2616
+ * When false, submissions do not email `email_recipients` (the list stays saved). Submissions are still stored and `form.submission.created` event destinations still fire. Use this when another system notifies the recipients. Defaults to true.
2617
+ */
2618
+ email_notifications: boolean;
2615
2619
  redirect_url: string | null;
2616
2620
  /**
2617
2621
  * Turnstile site key for CAPTCHA. Null if not configured for the org.
@@ -2629,6 +2633,10 @@ type CreateForm = {
2629
2633
  * Email recipients for form submissions. If not provided, uses the site default.
2630
2634
  */
2631
2635
  email_recipients?: Array<string>;
2636
+ /**
2637
+ * When false, submissions do not email `email_recipients` (the list stays saved). Submissions are still stored and `form.submission.created` event destinations still fire. Use this when another system notifies the recipients. Defaults to true.
2638
+ */
2639
+ email_notifications?: boolean;
2632
2640
  redirect_url?: string;
2633
2641
  };
2634
2642
  type Site = {
@@ -2904,6 +2912,10 @@ type UpdateSiteAnalytics = {
2904
2912
  type UpdateForm = {
2905
2913
  name?: string;
2906
2914
  email_recipients?: Array<string>;
2915
+ /**
2916
+ * When false, submissions do not email `email_recipients` (the list stays saved). Submissions are still stored and `form.submission.created` event destinations still fire. Use this when another system notifies the recipients. Defaults to true.
2917
+ */
2918
+ email_notifications?: boolean;
2907
2919
  redirect_url?: string | null;
2908
2920
  };
2909
2921
  type Attachment = {
@@ -11436,7 +11448,7 @@ declare const updateProduct: <ThrowOnError extends boolean = false>(options: Opt
11436
11448
  /**
11437
11449
  * Attach a digital file to a product
11438
11450
  *
11439
- * Attaches a downloadable file to a product, either as a multipart upload (field: file) or by fetching a https source_url server-side. Max 50 MB; pdf/zip/epub/image/audio/video types only. Each attach writes a fresh storage key — previously attached files are never overwritten.
11451
+ * Attaches a downloadable file to a product, either as a multipart upload (field: file) or by fetching a https source_url server-side. Max 50 MB; pdf/zip/epub/docx/xlsx/pptx/csv/image/audio/video types only. Each attach writes a fresh storage key — previously attached files are never overwritten.
11440
11452
  */
11441
11453
  declare const attachProductFile: <ThrowOnError extends boolean = false>(options: Options<AttachProductFileData, ThrowOnError>) => RequestResult<AttachProductFileResponses, AttachProductFileErrors, ThrowOnError, "fields">;
11442
11454
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aifeatures/backend",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "TypeScript API client for aifeatures backend",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",