webflow-api 3.2.1 → 3.2.2
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/.mock/definition/__package__.yml +20 -20
- package/.mock/definition/accessGroups.yml +12 -5
- package/.mock/definition/assets.yml +7 -4
- package/.mock/definition/collections/items.yml +14 -16
- package/.mock/definition/collections.yml +3 -0
- package/.mock/definition/comments.yml +1 -0
- package/.mock/definition/components.yml +16 -12
- package/.mock/definition/forms.yml +15 -88
- package/.mock/definition/items.yml +1 -0
- package/.mock/definition/orders.yml +82 -4
- package/.mock/definition/pages.yml +17 -8
- package/.mock/definition/products.yml +4 -4
- package/.mock/definition/scripts.yml +5 -1
- package/.mock/definition/sites/activityLogs.yml +8 -4
- package/.mock/definition/sites/comments.yml +14 -12
- package/.mock/definition/sites/forms.yml +316 -0
- package/.mock/definition/sites/scripts.yml +5 -4
- package/.mock/definition/sites.yml +24 -0
- package/.mock/definition/users.yml +66 -14
- package/.mock/definition/webhooks.yml +4 -0
- package/.mock/definition/workspaces/auditLogs.yml +4 -4
- package/.mock/fern.config.json +1 -1
- package/Client.js +2 -2
- package/LICENSE +21 -0
- package/api/resources/accessGroups/client/Client.d.ts +4 -2
- package/api/resources/accessGroups/client/Client.js +4 -2
- package/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +2 -2
- package/api/resources/assets/client/Client.d.ts +2 -2
- package/api/resources/assets/client/Client.js +2 -2
- package/api/resources/assets/client/requests/AssetsListRequest.d.ts +2 -2
- package/api/resources/collections/resources/items/client/Client.d.ts +10 -12
- package/api/resources/collections/resources/items/client/Client.js +10 -12
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +2 -2
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +2 -2
- package/api/resources/components/client/Client.d.ts +6 -6
- package/api/resources/components/client/Client.js +6 -6
- package/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +2 -2
- package/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +2 -2
- package/api/resources/components/client/requests/ComponentsListRequest.d.ts +2 -2
- package/api/resources/forms/client/Client.d.ts +4 -31
- package/api/resources/forms/client/Client.js +4 -131
- package/api/resources/forms/client/requests/FormsListRequest.d.ts +2 -2
- package/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +2 -2
- package/api/resources/forms/client/requests/index.d.ts +0 -1
- package/api/resources/orders/client/Client.d.ts +2 -2
- package/api/resources/orders/client/Client.js +2 -2
- package/api/resources/orders/client/requests/OrdersListRequest.d.ts +2 -2
- package/api/resources/pages/client/Client.d.ts +4 -4
- package/api/resources/pages/client/Client.js +4 -4
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +2 -2
- package/api/resources/pages/client/requests/PagesListRequest.d.ts +2 -2
- package/api/resources/products/client/Client.d.ts +2 -2
- package/api/resources/products/client/Client.js +2 -2
- package/api/resources/products/client/requests/ProductsListRequest.d.ts +2 -2
- package/api/resources/sites/client/Client.d.ts +3 -0
- package/api/resources/sites/client/Client.js +5 -0
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +2 -2
- package/api/resources/sites/resources/activityLogs/client/Client.js +2 -2
- package/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +2 -2
- package/api/resources/sites/resources/comments/client/Client.d.ts +6 -6
- package/api/resources/sites/resources/comments/client/Client.js +6 -6
- package/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.d.ts +2 -2
- package/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.d.ts +2 -2
- package/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.d.ts +2 -2
- package/api/resources/sites/resources/forms/client/Client.d.ts +157 -0
- package/api/resources/sites/resources/forms/client/Client.js +662 -0
- package/api/resources/sites/resources/forms/client/index.d.ts +2 -0
- package/api/resources/sites/resources/forms/client/index.js +17 -0
- package/api/resources/{forms → sites/resources/forms}/client/requests/FormsListSubmissionsBySiteRequest.d.ts +2 -2
- package/api/resources/sites/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +20 -0
- package/api/resources/sites/resources/forms/client/requests/FormsUpdateSubmissionRequest.d.ts +11 -0
- package/api/resources/sites/resources/forms/client/requests/FormsUpdateSubmissionRequest.js +5 -0
- package/api/resources/sites/resources/forms/client/requests/index.d.ts +3 -0
- package/api/resources/sites/resources/forms/client/requests/index.js +2 -0
- package/api/resources/sites/resources/forms/index.d.ts +1 -0
- package/api/resources/sites/resources/forms/index.js +17 -0
- package/api/resources/sites/resources/index.d.ts +2 -0
- package/api/resources/sites/resources/index.js +3 -1
- package/api/resources/sites/resources/scripts/client/Client.d.ts +2 -2
- package/api/resources/sites/resources/scripts/client/Client.js +2 -2
- package/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.d.ts +2 -2
- package/api/resources/users/client/Client.d.ts +12 -2
- package/api/resources/users/client/Client.js +12 -2
- package/api/resources/users/client/requests/UsersListRequest.d.ts +2 -2
- package/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +2 -2
- package/api/resources/workspaces/resources/auditLogs/client/Client.js +2 -2
- package/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +2 -2
- package/dist/Client.js +2 -2
- package/dist/api/resources/accessGroups/client/Client.d.ts +4 -2
- package/dist/api/resources/accessGroups/client/Client.js +4 -2
- package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +2 -2
- package/dist/api/resources/assets/client/Client.d.ts +2 -2
- package/dist/api/resources/assets/client/Client.js +2 -2
- package/dist/api/resources/assets/client/requests/AssetsListRequest.d.ts +2 -2
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +10 -12
- package/dist/api/resources/collections/resources/items/client/Client.js +10 -12
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +2 -2
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +2 -2
- package/dist/api/resources/components/client/Client.d.ts +6 -6
- package/dist/api/resources/components/client/Client.js +6 -6
- package/dist/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +2 -2
- package/dist/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +2 -2
- package/dist/api/resources/components/client/requests/ComponentsListRequest.d.ts +2 -2
- package/dist/api/resources/forms/client/Client.d.ts +4 -31
- package/dist/api/resources/forms/client/Client.js +4 -131
- package/dist/api/resources/forms/client/requests/FormsListRequest.d.ts +2 -2
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +2 -2
- package/dist/api/resources/forms/client/requests/index.d.ts +0 -1
- package/dist/api/resources/orders/client/Client.d.ts +2 -2
- package/dist/api/resources/orders/client/Client.js +2 -2
- package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +2 -2
- package/dist/api/resources/pages/client/Client.d.ts +4 -4
- package/dist/api/resources/pages/client/Client.js +4 -4
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +2 -2
- package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +2 -2
- package/dist/api/resources/products/client/Client.d.ts +2 -2
- package/dist/api/resources/products/client/Client.js +2 -2
- package/dist/api/resources/products/client/requests/ProductsListRequest.d.ts +2 -2
- package/dist/api/resources/sites/client/Client.d.ts +3 -0
- package/dist/api/resources/sites/client/Client.js +5 -0
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +2 -2
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +2 -2
- package/dist/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +2 -2
- package/dist/api/resources/sites/resources/comments/client/Client.d.ts +6 -6
- package/dist/api/resources/sites/resources/comments/client/Client.js +6 -6
- package/dist/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.d.ts +2 -2
- package/dist/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.d.ts +2 -2
- package/dist/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.d.ts +2 -2
- package/dist/api/resources/sites/resources/forms/client/Client.d.ts +157 -0
- package/dist/api/resources/sites/resources/forms/client/Client.js +662 -0
- package/dist/api/resources/sites/resources/forms/client/index.d.ts +2 -0
- package/dist/api/resources/sites/resources/forms/client/index.js +17 -0
- package/dist/api/resources/{forms → sites/resources/forms}/client/requests/FormsListSubmissionsBySiteRequest.d.ts +2 -2
- package/dist/api/resources/sites/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.js +5 -0
- package/dist/api/resources/sites/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +20 -0
- package/dist/api/resources/sites/resources/forms/client/requests/FormsListSubmissionsRequest.js +5 -0
- package/dist/api/resources/sites/resources/forms/client/requests/FormsUpdateSubmissionRequest.d.ts +11 -0
- package/dist/api/resources/sites/resources/forms/client/requests/FormsUpdateSubmissionRequest.js +5 -0
- package/dist/api/resources/sites/resources/forms/client/requests/index.d.ts +3 -0
- package/dist/api/resources/sites/resources/forms/client/requests/index.js +2 -0
- package/dist/api/resources/sites/resources/forms/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/forms/index.js +17 -0
- package/dist/api/resources/sites/resources/index.d.ts +2 -0
- package/dist/api/resources/sites/resources/index.js +3 -1
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +2 -2
- package/dist/api/resources/sites/resources/scripts/client/Client.js +2 -2
- package/dist/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.d.ts +2 -2
- package/dist/api/resources/users/client/Client.d.ts +12 -2
- package/dist/api/resources/users/client/Client.js +12 -2
- package/dist/api/resources/users/client/requests/UsersListRequest.d.ts +2 -2
- package/dist/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +2 -2
- package/dist/api/resources/workspaces/resources/auditLogs/client/Client.js +2 -2
- package/dist/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +2 -2
- package/dist/serialization/resources/sites/resources/forms/client/index.d.ts +1 -0
- package/dist/serialization/resources/sites/resources/forms/client/index.js +17 -0
- package/dist/serialization/resources/sites/resources/forms/client/requests/FormsUpdateSubmissionRequest.d.ts +12 -0
- package/dist/serialization/resources/sites/resources/forms/client/requests/FormsUpdateSubmissionRequest.js +43 -0
- package/dist/serialization/resources/sites/resources/forms/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/sites/resources/forms/client/requests/index.js +5 -0
- package/dist/serialization/resources/sites/resources/forms/index.d.ts +1 -0
- package/dist/serialization/resources/sites/resources/forms/index.js +17 -0
- package/dist/serialization/resources/sites/resources/index.d.ts +2 -0
- package/dist/serialization/resources/sites/resources/index.js +3 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/FormsClient.d.ts +37 -0
- package/dist/wrapper/FormsClient.js +193 -0
- package/dist/wrapper/ItemsClient.js +18 -14
- package/dist/wrapper/PagesClient.js +6 -5
- package/dist/wrapper/WebflowClient.d.ts +3 -0
- package/dist/wrapper/WebflowClient.js +6 -5
- package/jest.config.mjs +26 -5
- package/package.json +3 -2
- package/reference.md +458 -125
- package/serialization/resources/sites/resources/forms/client/index.d.ts +1 -0
- package/serialization/resources/sites/resources/forms/client/index.js +17 -0
- package/serialization/resources/sites/resources/forms/client/requests/FormsUpdateSubmissionRequest.d.ts +12 -0
- package/serialization/resources/sites/resources/forms/client/requests/FormsUpdateSubmissionRequest.js +43 -0
- package/serialization/resources/sites/resources/forms/client/requests/index.d.ts +1 -0
- package/serialization/resources/sites/resources/forms/client/requests/index.js +5 -0
- package/serialization/resources/sites/resources/forms/index.d.ts +1 -0
- package/serialization/resources/sites/resources/forms/index.js +17 -0
- package/serialization/resources/sites/resources/index.d.ts +2 -0
- package/serialization/resources/sites/resources/index.js +3 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/FormsClient.d.ts +37 -0
- package/wrapper/FormsClient.js +193 -0
- package/wrapper/ItemsClient.js +18 -14
- package/wrapper/PagesClient.js +6 -5
- package/wrapper/WebflowClient.d.ts +3 -0
- package/wrapper/WebflowClient.js +6 -5
- /package/api/resources/{forms → sites/resources/forms}/client/requests/FormsListSubmissionsBySiteRequest.js +0 -0
- /package/{dist/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.js → api/resources/sites/resources/forms/client/requests/FormsListSubmissionsRequest.js} +0 -0
|
@@ -49,8 +49,8 @@ export declare class Products {
|
|
|
49
49
|
*
|
|
50
50
|
* @example
|
|
51
51
|
* await client.products.list("580e63e98c9a982ac9b8b741", {
|
|
52
|
-
* offset: 1
|
|
53
|
-
* limit: 1
|
|
52
|
+
* offset: 1,
|
|
53
|
+
* limit: 1
|
|
54
54
|
* })
|
|
55
55
|
*/
|
|
56
56
|
list(siteId: string, request?: Webflow.ProductsListRequest, requestOptions?: Products.RequestOptions): core.HttpResponsePromise<Webflow.ProductAndSkUsList>;
|
|
@@ -11,6 +11,7 @@ import { WellKnown } from "../resources/wellKnown/client/Client";
|
|
|
11
11
|
import { ActivityLogs } from "../resources/activityLogs/client/Client";
|
|
12
12
|
import { Comments } from "../resources/comments/client/Client";
|
|
13
13
|
import { Scripts } from "../resources/scripts/client/Client";
|
|
14
|
+
import { Forms } from "../resources/forms/client/Client";
|
|
14
15
|
export declare namespace Sites {
|
|
15
16
|
interface Options {
|
|
16
17
|
environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
|
|
@@ -43,6 +44,7 @@ export declare class Sites {
|
|
|
43
44
|
protected _activityLogs: ActivityLogs | undefined;
|
|
44
45
|
protected _comments: Comments | undefined;
|
|
45
46
|
protected _scripts: Scripts | undefined;
|
|
47
|
+
protected _forms: Forms | undefined;
|
|
46
48
|
constructor(_options?: Sites.Options);
|
|
47
49
|
get redirects(): Redirects;
|
|
48
50
|
get plans(): Plans;
|
|
@@ -51,6 +53,7 @@ export declare class Sites {
|
|
|
51
53
|
get activityLogs(): ActivityLogs;
|
|
52
54
|
get comments(): Comments;
|
|
53
55
|
get scripts(): Scripts;
|
|
56
|
+
get forms(): Forms;
|
|
54
57
|
/**
|
|
55
58
|
* Create a site.
|
|
56
59
|
*
|
|
@@ -63,6 +63,7 @@ const Client_4 = require("../resources/wellKnown/client/Client");
|
|
|
63
63
|
const Client_5 = require("../resources/activityLogs/client/Client");
|
|
64
64
|
const Client_6 = require("../resources/comments/client/Client");
|
|
65
65
|
const Client_7 = require("../resources/scripts/client/Client");
|
|
66
|
+
const Client_8 = require("../resources/forms/client/Client");
|
|
66
67
|
/**
|
|
67
68
|
* Sites are the sites in your Webflow workspace.
|
|
68
69
|
*/
|
|
@@ -98,6 +99,10 @@ class Sites {
|
|
|
98
99
|
var _a;
|
|
99
100
|
return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new Client_7.Scripts(this._options)));
|
|
100
101
|
}
|
|
102
|
+
get forms() {
|
|
103
|
+
var _a;
|
|
104
|
+
return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new Client_8.Forms(this._options)));
|
|
105
|
+
}
|
|
101
106
|
/**
|
|
102
107
|
* Create a site.
|
|
103
108
|
*
|
|
@@ -45,8 +45,8 @@ export declare class ActivityLogs {
|
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
47
|
* await client.sites.activityLogs.list("580e63e98c9a982ac9b8b741", {
|
|
48
|
-
* limit: 1
|
|
49
|
-
* offset: 1
|
|
48
|
+
* limit: 1,
|
|
49
|
+
* offset: 1
|
|
50
50
|
* })
|
|
51
51
|
*/
|
|
52
52
|
list(siteId: string, request?: Webflow.sites.ActivityLogsListRequest, requestOptions?: ActivityLogs.RequestOptions): core.HttpResponsePromise<Webflow.SiteActivityLogResponse>;
|
|
@@ -49,8 +49,8 @@ export declare class Comments {
|
|
|
49
49
|
* @example
|
|
50
50
|
* await client.sites.comments.listCommentThreads("580e63e98c9a982ac9b8b741", {
|
|
51
51
|
* localeId: "65427cf400e02b306eaa04a0",
|
|
52
|
-
* offset: 1
|
|
53
|
-
* limit: 1
|
|
52
|
+
* offset: 1,
|
|
53
|
+
* limit: 1,
|
|
54
54
|
* sortBy: "createdOn",
|
|
55
55
|
* sortOrder: "asc"
|
|
56
56
|
* })
|
|
@@ -80,8 +80,8 @@ export declare class Comments {
|
|
|
80
80
|
* @example
|
|
81
81
|
* await client.sites.comments.getCommentThread("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
|
|
82
82
|
* localeId: "65427cf400e02b306eaa04a0",
|
|
83
|
-
* offset: 1
|
|
84
|
-
* limit: 1
|
|
83
|
+
* offset: 1,
|
|
84
|
+
* limit: 1,
|
|
85
85
|
* sortBy: "createdOn",
|
|
86
86
|
* sortOrder: "asc"
|
|
87
87
|
* })
|
|
@@ -111,8 +111,8 @@ export declare class Comments {
|
|
|
111
111
|
* @example
|
|
112
112
|
* await client.sites.comments.listCommentReplies("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
|
|
113
113
|
* localeId: "65427cf400e02b306eaa04a0",
|
|
114
|
-
* offset: 1
|
|
115
|
-
* limit: 1
|
|
114
|
+
* offset: 1,
|
|
115
|
+
* limit: 1,
|
|
116
116
|
* sortBy: "createdOn",
|
|
117
117
|
* sortOrder: "asc"
|
|
118
118
|
* })
|
|
@@ -82,8 +82,8 @@ class Comments {
|
|
|
82
82
|
* @example
|
|
83
83
|
* await client.sites.comments.listCommentThreads("580e63e98c9a982ac9b8b741", {
|
|
84
84
|
* localeId: "65427cf400e02b306eaa04a0",
|
|
85
|
-
* offset: 1
|
|
86
|
-
* limit: 1
|
|
85
|
+
* offset: 1,
|
|
86
|
+
* limit: 1,
|
|
87
87
|
* sortBy: "createdOn",
|
|
88
88
|
* sortOrder: "asc"
|
|
89
89
|
* })
|
|
@@ -225,8 +225,8 @@ class Comments {
|
|
|
225
225
|
* @example
|
|
226
226
|
* await client.sites.comments.getCommentThread("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
|
|
227
227
|
* localeId: "65427cf400e02b306eaa04a0",
|
|
228
|
-
* offset: 1
|
|
229
|
-
* limit: 1
|
|
228
|
+
* offset: 1,
|
|
229
|
+
* limit: 1,
|
|
230
230
|
* sortBy: "createdOn",
|
|
231
231
|
* sortOrder: "asc"
|
|
232
232
|
* })
|
|
@@ -368,8 +368,8 @@ class Comments {
|
|
|
368
368
|
* @example
|
|
369
369
|
* await client.sites.comments.listCommentReplies("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
|
|
370
370
|
* localeId: "65427cf400e02b306eaa04a0",
|
|
371
|
-
* offset: 1
|
|
372
|
-
* limit: 1
|
|
371
|
+
* offset: 1,
|
|
372
|
+
* limit: 1,
|
|
373
373
|
* sortBy: "createdOn",
|
|
374
374
|
* sortOrder: "asc"
|
|
375
375
|
* })
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as environments from "../../../../../../environments";
|
|
5
|
+
import * as core from "../../../../../../core";
|
|
6
|
+
import * as Webflow from "../../../../../index";
|
|
7
|
+
export declare namespace Forms {
|
|
8
|
+
interface Options {
|
|
9
|
+
environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
accessToken?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
15
|
+
}
|
|
16
|
+
interface RequestOptions {
|
|
17
|
+
/** The maximum time to wait for a response in seconds. */
|
|
18
|
+
timeoutInSeconds?: number;
|
|
19
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
20
|
+
maxRetries?: number;
|
|
21
|
+
/** A hook to abort the request. */
|
|
22
|
+
abortSignal?: AbortSignal;
|
|
23
|
+
/** Additional headers to include in the request. */
|
|
24
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export declare class Forms {
|
|
28
|
+
protected readonly _options: Forms.Options;
|
|
29
|
+
constructor(_options?: Forms.Options);
|
|
30
|
+
/**
|
|
31
|
+
* List all form submissions for a given site with the ability to filter submissions by a centralized `elementId`.
|
|
32
|
+
*
|
|
33
|
+
* Add `elementId` when you want to filter form submissions to a specific form in a site. You can get the `elementId` from the [List forms endpoint](/data/reference/forms/forms/list) (displayed as `formElementId` in the response).
|
|
34
|
+
*
|
|
35
|
+
* <Note title="Forms in components">
|
|
36
|
+
* When a form is used in a Webflow component definition, each instance of the component will yield a unique form. Adding the `elementId` in this request ensures this API response includes all submissions from that core form, wherever that form is used in instantiated components.
|
|
37
|
+
* </Note>
|
|
38
|
+
*
|
|
39
|
+
* Use the [List Form Submissions endpoint](/data/reference/forms/form-submissions/list-submissions) to list form submissions for a given form ID.
|
|
40
|
+
*
|
|
41
|
+
* Required scope | `forms:read`
|
|
42
|
+
*
|
|
43
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
44
|
+
* @param {Webflow.sites.FormsListSubmissionsBySiteRequest} request
|
|
45
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
|
+
*
|
|
47
|
+
* @throws {@link Webflow.BadRequestError}
|
|
48
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
49
|
+
* @throws {@link Webflow.ForbiddenError}
|
|
50
|
+
* @throws {@link Webflow.NotFoundError}
|
|
51
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
52
|
+
* @throws {@link Webflow.InternalServerError}
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* await client.sites.forms.listSubmissionsBySite("580e63e98c9a982ac9b8b741", {
|
|
56
|
+
* elementId: "18259716-3e5a-646a-5f41-5dc4b9405aa0",
|
|
57
|
+
* offset: 1,
|
|
58
|
+
* limit: 1
|
|
59
|
+
* })
|
|
60
|
+
*/
|
|
61
|
+
listSubmissionsBySite(siteId: string, request?: Webflow.sites.FormsListSubmissionsBySiteRequest, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise<Webflow.FormSubmissionList>;
|
|
62
|
+
private __listSubmissionsBySite;
|
|
63
|
+
/**
|
|
64
|
+
* List form submissions for a given form ID within a specific site.
|
|
65
|
+
*
|
|
66
|
+
* Use the [List Form Submissions by Site endpoint](/data/reference/forms/form-submissions/list-submissions-by-site) to list form submissions for a given site with the ability to filter by a `formElementId`.
|
|
67
|
+
*
|
|
68
|
+
* Required scope | `forms:read`
|
|
69
|
+
*
|
|
70
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
71
|
+
* @param {string} formId - Unique identifier for a Form
|
|
72
|
+
* @param {Webflow.sites.FormsListSubmissionsRequest} request
|
|
73
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
74
|
+
*
|
|
75
|
+
* @throws {@link Webflow.BadRequestError}
|
|
76
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
77
|
+
* @throws {@link Webflow.ForbiddenError}
|
|
78
|
+
* @throws {@link Webflow.NotFoundError}
|
|
79
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
80
|
+
* @throws {@link Webflow.InternalServerError}
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* await client.sites.forms.listSubmissions("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
|
|
84
|
+
* offset: 1,
|
|
85
|
+
* limit: 1
|
|
86
|
+
* })
|
|
87
|
+
*/
|
|
88
|
+
listSubmissions(siteId: string, formId: string, request?: Webflow.sites.FormsListSubmissionsRequest, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise<Webflow.FormSubmissionList>;
|
|
89
|
+
private __listSubmissions;
|
|
90
|
+
/**
|
|
91
|
+
* Get information about a form submission within a specific site.
|
|
92
|
+
*
|
|
93
|
+
* Required scope | `forms:read`
|
|
94
|
+
*
|
|
95
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
96
|
+
* @param {string} formSubmissionId - Unique identifier for a Form Submission
|
|
97
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link Webflow.BadRequestError}
|
|
100
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
101
|
+
* @throws {@link Webflow.ForbiddenError}
|
|
102
|
+
* @throws {@link Webflow.NotFoundError}
|
|
103
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
104
|
+
* @throws {@link Webflow.InternalServerError}
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* await client.sites.forms.getSubmission("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741")
|
|
108
|
+
*/
|
|
109
|
+
getSubmission(siteId: string, formSubmissionId: string, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise<Webflow.FormSubmission>;
|
|
110
|
+
private __getSubmission;
|
|
111
|
+
/**
|
|
112
|
+
* Delete a form submission within a specific site.
|
|
113
|
+
*
|
|
114
|
+
* Required scope | `forms:write`
|
|
115
|
+
*
|
|
116
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
117
|
+
* @param {string} formSubmissionId - Unique identifier for a Form Submission
|
|
118
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
119
|
+
*
|
|
120
|
+
* @throws {@link Webflow.BadRequestError}
|
|
121
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
122
|
+
* @throws {@link Webflow.ForbiddenError}
|
|
123
|
+
* @throws {@link Webflow.NotFoundError}
|
|
124
|
+
* @throws {@link Webflow.ConflictError}
|
|
125
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
126
|
+
* @throws {@link Webflow.InternalServerError}
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* await client.sites.forms.deleteSubmission("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741")
|
|
130
|
+
*/
|
|
131
|
+
deleteSubmission(siteId: string, formSubmissionId: string, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise<void>;
|
|
132
|
+
private __deleteSubmission;
|
|
133
|
+
/**
|
|
134
|
+
* Update hidden fields on a form submission within a specific site.
|
|
135
|
+
*
|
|
136
|
+
* Required scope | `forms:write`
|
|
137
|
+
*
|
|
138
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
139
|
+
* @param {string} formSubmissionId - Unique identifier for a Form Submission
|
|
140
|
+
* @param {Webflow.sites.FormsUpdateSubmissionRequest} request
|
|
141
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
142
|
+
*
|
|
143
|
+
* @throws {@link Webflow.BadRequestError}
|
|
144
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
145
|
+
* @throws {@link Webflow.ForbiddenError}
|
|
146
|
+
* @throws {@link Webflow.NotFoundError}
|
|
147
|
+
* @throws {@link Webflow.ConflictError}
|
|
148
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
149
|
+
* @throws {@link Webflow.InternalServerError}
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* await client.sites.forms.updateSubmission("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741")
|
|
153
|
+
*/
|
|
154
|
+
updateSubmission(siteId: string, formSubmissionId: string, request?: Webflow.sites.FormsUpdateSubmissionRequest, requestOptions?: Forms.RequestOptions): core.HttpResponsePromise<Webflow.FormSubmission>;
|
|
155
|
+
private __updateSubmission;
|
|
156
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
157
|
+
}
|