@aifeatures/backend 0.20.0 → 0.22.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 +15 -3
- package/dist/index.d.ts +15 -3
- package/package.json +9 -10
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
|
};
|
|
@@ -2599,7 +2599,7 @@ type ConsentConfigResult = {
|
|
|
2599
2599
|
};
|
|
2600
2600
|
type UpsertConsentConfig = {
|
|
2601
2601
|
/**
|
|
2602
|
-
* 'adaptive' (default) follows the server's geographic policy: EEA, UK, Switzerland, or unknown country is strict; US risk, missing, or unrecognized region is strict-trackers; every other country and other recognized US states/DC are opt-out without a banner. 'adaptive-with-notice' adds a notice in that opt-out group. 'strict-everywhere' requires a choice globally. 'off' hides the banner; stored decisions and GPC still apply.
|
|
2602
|
+
* 'adaptive' (default) follows the server's geographic policy: EEA, UK, Switzerland, Brazil, or unknown country is strict; US risk, missing, or unrecognized region is strict-trackers; every other country and other recognized US states/DC are opt-out without a banner. 'adaptive-with-notice' adds a notice in that opt-out group. 'strict-everywhere' requires a choice globally. 'off' hides the banner; stored decisions and GPC still apply.
|
|
2603
2603
|
*/
|
|
2604
2604
|
mode: "adaptive" | "adaptive-with-notice" | "strict-everywhere" | "off";
|
|
2605
2605
|
/**
|
|
@@ -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
|
};
|
|
@@ -2599,7 +2599,7 @@ type ConsentConfigResult = {
|
|
|
2599
2599
|
};
|
|
2600
2600
|
type UpsertConsentConfig = {
|
|
2601
2601
|
/**
|
|
2602
|
-
* 'adaptive' (default) follows the server's geographic policy: EEA, UK, Switzerland, or unknown country is strict; US risk, missing, or unrecognized region is strict-trackers; every other country and other recognized US states/DC are opt-out without a banner. 'adaptive-with-notice' adds a notice in that opt-out group. 'strict-everywhere' requires a choice globally. 'off' hides the banner; stored decisions and GPC still apply.
|
|
2602
|
+
* 'adaptive' (default) follows the server's geographic policy: EEA, UK, Switzerland, Brazil, or unknown country is strict; US risk, missing, or unrecognized region is strict-trackers; every other country and other recognized US states/DC are opt-out without a banner. 'adaptive-with-notice' adds a notice in that opt-out group. 'strict-everywhere' requires a choice globally. 'off' hides the banner; stored decisions and GPC still apply.
|
|
2603
2603
|
*/
|
|
2604
2604
|
mode: "adaptive" | "adaptive-with-notice" | "strict-everywhere" | "off";
|
|
2605
2605
|
/**
|
|
@@ -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.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "TypeScript API client for aifeatures backend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -21,14 +21,6 @@
|
|
|
21
21
|
"files": [
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
|
-
"scripts": {
|
|
25
|
-
"generate": "openapi-ts",
|
|
26
|
-
"build": "tsup",
|
|
27
|
-
"prepack": "pnpm build",
|
|
28
|
-
"dev": "tsup --watch",
|
|
29
|
-
"typecheck": "tsc --noEmit",
|
|
30
|
-
"test": "vitest run"
|
|
31
|
-
},
|
|
32
24
|
"devDependencies": {
|
|
33
25
|
"@hey-api/openapi-ts": "0.89.2",
|
|
34
26
|
"tsup": "^8.3.5",
|
|
@@ -37,5 +29,12 @@
|
|
|
37
29
|
},
|
|
38
30
|
"dependencies": {
|
|
39
31
|
"@hey-api/client-fetch": "0.13.1"
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"generate": "openapi-ts",
|
|
35
|
+
"build": "tsup",
|
|
36
|
+
"dev": "tsup --watch",
|
|
37
|
+
"typecheck": "tsc --noEmit",
|
|
38
|
+
"test": "vitest run"
|
|
40
39
|
}
|
|
41
|
-
}
|
|
40
|
+
}
|