webflow-api 3.0.1 → 3.1.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/.mock/definition/__package__.yml +876 -287
- package/.mock/definition/accessGroups.yml +4 -3
- package/.mock/definition/assets.yml +96 -56
- package/.mock/definition/collections/fields.yml +67 -48
- package/.mock/definition/collections/items.yml +226 -65
- package/.mock/definition/collections.yml +48 -12
- package/.mock/definition/components.yml +479 -0
- package/.mock/definition/ecommerce.yml +3 -2
- package/.mock/definition/forms.yml +121 -8
- package/.mock/definition/inventory.yml +8 -4
- package/.mock/definition/orders.yml +17 -77
- package/.mock/definition/pages/scripts.yml +17 -50
- package/.mock/definition/pages.yml +87 -65
- package/.mock/definition/products.yml +18 -9
- package/.mock/definition/scripts.yml +22 -57
- package/.mock/definition/sites/activityLogs.yml +12 -9
- package/.mock/definition/sites/plans.yml +46 -0
- package/.mock/definition/sites/redirects.yml +213 -0
- package/.mock/definition/sites/robotsTxt.yml +202 -0
- package/.mock/definition/sites/scripts.yml +28 -41
- package/.mock/definition/sites.yml +201 -8
- package/.mock/definition/token.yml +7 -4
- package/.mock/definition/users.yml +12 -8
- package/.mock/definition/webhooks.yml +16 -17
- package/.mock/fern.config.json +1 -1
- package/Client.d.ts +3 -0
- package/Client.js +25 -20
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/accessGroups/client/Client.js +1 -1
- package/api/resources/assets/client/Client.d.ts +15 -7
- package/api/resources/assets/client/Client.js +23 -15
- package/api/resources/collections/client/Client.d.ts +24 -1
- package/api/resources/collections/client/Client.js +30 -5
- package/api/resources/collections/client/requests/CollectionsCreateRequest.d.ts +23 -1
- package/api/resources/collections/resources/fields/client/Client.d.ts +34 -4
- package/api/resources/collections/resources/fields/client/Client.js +40 -8
- package/api/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
- package/api/resources/collections/resources/fields/index.d.ts +0 -1
- package/api/resources/collections/resources/fields/index.js +0 -1
- package/api/resources/collections/resources/index.d.ts +1 -2
- package/api/resources/collections/resources/index.js +2 -3
- package/api/resources/collections/resources/items/client/Client.d.ts +26 -16
- package/api/resources/collections/resources/items/client/Client.js +48 -32
- 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/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +1 -1
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
- package/api/resources/collections/resources/items/types/MultipleItems.d.ts +2 -2
- package/api/resources/collections/resources/items/types/MultipleLiveItems.d.ts +8 -0
- package/api/resources/collections/resources/items/types/index.d.ts +1 -0
- package/api/resources/collections/resources/items/types/index.js +1 -0
- package/api/resources/components/client/Client.d.ts +175 -0
- package/api/resources/components/client/Client.js +669 -0
- package/api/resources/components/client/index.d.ts +1 -0
- package/api/resources/{collections/resources/fields/types → components/client}/index.js +1 -1
- package/api/resources/components/client/requests/ComponentDomWrite.d.ts +34 -0
- package/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +25 -0
- package/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +28 -0
- package/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +23 -0
- package/api/resources/components/client/requests/ComponentsListRequest.d.ts +17 -0
- package/api/resources/components/client/requests/index.d.ts +5 -0
- package/api/resources/components/client/requests/index.js +2 -0
- package/api/resources/components/index.d.ts +2 -0
- package/api/resources/components/index.js +18 -0
- package/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +5 -0
- package/api/resources/components/types/ComponentPropertiesWritePropertiesItem.d.ts +16 -0
- package/api/resources/components/types/ComponentsUpdateContentResponse.d.ts +7 -0
- package/api/resources/components/types/ComponentsUpdateContentResponse.js +5 -0
- package/api/resources/components/types/ComponentsUpdatePropertiesResponse.d.ts +7 -0
- package/api/resources/components/types/ComponentsUpdatePropertiesResponse.js +5 -0
- package/api/resources/components/types/index.d.ts +4 -0
- package/api/resources/components/types/index.js +20 -0
- package/api/resources/ecommerce/client/Client.js +1 -1
- package/api/resources/forms/client/Client.d.ts +54 -0
- package/api/resources/forms/client/Client.js +229 -5
- package/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +23 -0
- package/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.js +5 -0
- package/api/resources/forms/client/requests/index.d.ts +1 -0
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/inventory/client/Client.d.ts +3 -1
- package/api/resources/inventory/client/Client.js +5 -3
- package/api/resources/orders/client/Client.d.ts +3 -0
- package/api/resources/orders/client/Client.js +9 -6
- package/api/resources/pages/client/Client.d.ts +31 -10
- package/api/resources/pages/client/Client.js +37 -18
- package/api/resources/pages/client/requests/PageDomWrite.d.ts +34 -0
- package/api/resources/pages/client/requests/PageDomWrite.js +5 -0
- package/api/resources/pages/client/requests/index.d.ts +1 -1
- package/api/resources/pages/resources/scripts/client/Client.d.ts +8 -19
- package/api/resources/pages/resources/scripts/client/Client.js +13 -22
- package/api/resources/pages/types/PageDomWriteNodesItem.d.ts +5 -0
- package/api/resources/pages/types/PageDomWriteNodesItem.js +5 -0
- package/api/resources/pages/types/index.d.ts +1 -1
- package/api/resources/pages/types/index.js +1 -1
- package/api/resources/products/client/Client.d.ts +5 -6
- package/api/resources/products/client/Client.js +11 -12
- package/api/resources/scripts/client/Client.d.ts +12 -20
- package/api/resources/scripts/client/Client.js +15 -23
- package/api/resources/sites/client/Client.d.ts +79 -0
- package/api/resources/sites/client/Client.js +341 -9
- package/api/resources/sites/client/requests/SitesCreateRequest.d.ts +17 -0
- package/api/resources/sites/client/requests/SitesCreateRequest.js +5 -0
- package/api/resources/sites/client/requests/SitesUpdateRequest.d.ts +13 -0
- package/api/resources/sites/client/requests/SitesUpdateRequest.js +5 -0
- package/api/resources/sites/client/requests/index.d.ts +2 -0
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +5 -1
- package/api/resources/sites/resources/activityLogs/client/Client.js +6 -2
- package/api/resources/sites/resources/index.d.ts +3 -0
- package/api/resources/sites/resources/index.js +4 -1
- package/api/resources/sites/resources/plans/client/Client.d.ts +47 -0
- package/api/resources/sites/resources/plans/client/Client.js +157 -0
- package/api/resources/sites/resources/plans/client/index.d.ts +1 -0
- package/api/resources/sites/resources/plans/client/index.js +2 -0
- package/api/resources/sites/resources/plans/index.d.ts +1 -0
- package/{dist/serialization/resources/collections/resources/fields/types → api/resources/sites/resources/plans}/index.js +1 -1
- package/api/resources/sites/resources/redirects/client/Client.d.ts +125 -0
- package/api/resources/sites/resources/redirects/client/Client.js +482 -0
- package/api/resources/sites/resources/redirects/client/index.d.ts +1 -0
- package/api/resources/sites/resources/redirects/client/index.js +2 -0
- package/api/resources/sites/resources/redirects/index.d.ts +1 -0
- package/{dist/api/resources/collections/resources/fields/types → api/resources/sites/resources/redirects}/index.js +1 -1
- package/api/resources/sites/resources/robotsTxt/client/Client.d.ts +124 -0
- package/api/resources/sites/resources/robotsTxt/client/Client.js +486 -0
- package/api/resources/sites/resources/robotsTxt/client/index.d.ts +1 -0
- package/api/resources/sites/resources/robotsTxt/client/index.js +2 -0
- package/api/resources/sites/resources/robotsTxt/index.d.ts +1 -0
- package/{serialization/resources/collections/resources/fields/types → api/resources/sites/resources/robotsTxt}/index.js +1 -1
- package/api/resources/sites/resources/scripts/client/Client.d.ts +15 -13
- package/api/resources/sites/resources/scripts/client/Client.js +19 -17
- package/api/resources/token/client/Client.d.ts +2 -1
- package/api/resources/token/client/Client.js +4 -3
- package/api/resources/users/client/Client.d.ts +1 -1
- package/api/resources/users/client/Client.js +6 -6
- package/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -4
- package/api/resources/users/client/requests/UsersUpdateRequest.d.ts +1 -4
- package/api/resources/webhooks/client/Client.d.ts +4 -1
- package/api/resources/webhooks/client/Client.js +8 -5
- package/api/types/Asset.d.ts +4 -0
- package/api/types/AssetVariant.d.ts +3 -0
- package/api/types/Assets.d.ts +1 -0
- package/api/types/CollectionItem.d.ts +5 -1
- package/api/types/CollectionItemPostSingle.d.ts +7 -3
- package/api/types/Component.d.ts +18 -0
- package/api/types/Component.js +5 -0
- package/api/types/ComponentDom.d.ts +13 -0
- package/api/types/ComponentDom.js +5 -0
- package/api/types/ComponentInstanceNodePropertyOverridesWrite.d.ts +13 -0
- package/api/types/ComponentInstanceNodePropertyOverridesWrite.js +5 -0
- package/api/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.d.ts +14 -0
- package/api/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +5 -0
- package/api/types/ComponentList.d.ts +11 -0
- package/api/types/ComponentList.js +5 -0
- package/api/types/ComponentNode.d.ts +15 -0
- package/api/types/ComponentNode.js +5 -0
- package/api/types/ComponentProperties.d.ts +13 -0
- package/api/types/ComponentProperties.js +5 -0
- package/api/types/ComponentProperty.d.ts +17 -0
- package/api/types/ComponentProperty.js +5 -0
- package/api/types/ComponentPropertyType.d.ts +12 -0
- package/api/types/ComponentPropertyType.js +11 -0
- package/{dist/api/types/ErrorDetailsItem.d.ts → api/types/Conflict.d.ts} +1 -1
- package/api/types/Conflict.js +5 -0
- package/api/types/Dom.d.ts +3 -1
- package/api/types/Domain.d.ts +2 -0
- package/api/types/Error_.d.ts +1 -1
- package/api/types/FieldCreate.d.ts +8 -0
- package/api/types/FieldCreate.js +5 -0
- package/api/types/FieldType.d.ts +12 -10
- package/api/types/FieldType.js +11 -9
- package/api/types/ImageNode.d.ts +7 -2
- package/api/types/ImageNodeImage.d.ts +10 -0
- package/api/types/ImageNodeImage.js +5 -0
- package/api/types/Metadata.d.ts +11 -0
- package/api/types/Metadata.js +5 -0
- package/api/types/MetadataOptionsItem.d.ts +12 -0
- package/api/types/MetadataOptionsItem.js +5 -0
- package/api/types/Node.d.ts +11 -8
- package/api/types/{ErrorDetailsItem.d.ts → NotEnterprisePlanWorkspace.d.ts} +1 -1
- package/api/types/NotEnterprisePlanWorkspace.js +5 -0
- package/api/types/OAuthScope.d.ts +8 -0
- package/api/types/OAuthScope.js +2 -0
- package/api/types/OptionField.d.ts +19 -0
- package/api/types/OptionField.js +5 -0
- package/api/types/ProductFieldData.d.ts +1 -1
- package/api/types/Redirect.d.ts +14 -0
- package/api/types/Redirect.js +5 -0
- package/api/types/Redirects.d.ts +12 -0
- package/api/types/Redirects.js +5 -0
- package/api/types/ReferenceField.d.ts +20 -0
- package/api/types/ReferenceField.js +5 -0
- package/api/types/ReferenceFieldMetadata.d.ts +10 -0
- package/api/types/ReferenceFieldMetadata.js +5 -0
- package/api/types/ReferenceFieldType.d.ts +11 -0
- package/api/types/{NodeType.js → ReferenceFieldType.js} +4 -4
- package/api/types/Robots.d.ts +13 -0
- package/api/types/Robots.js +5 -0
- package/api/types/RobotsRulesItem.d.ts +11 -0
- package/api/types/RobotsRulesItem.js +5 -0
- package/api/types/ScriptApply.d.ts +1 -1
- package/api/types/SitePlan.d.ts +12 -0
- package/api/types/SitePlan.js +5 -0
- package/api/types/SitePlanId.d.ts +21 -0
- package/api/types/SitePlanId.js +20 -0
- package/api/types/SitePlanName.d.ts +15 -0
- package/api/types/SitePlanName.js +14 -0
- package/api/types/SkuFieldData.d.ts +2 -0
- package/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +3 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +3 -0
- package/api/{resources/collections/resources/fields/client/requests/FieldCreate.d.ts → types/StaticField.d.ts} +7 -12
- package/api/types/StaticField.js +5 -0
- package/api/{resources/collections/resources/fields/types/FieldCreateType.d.ts → types/StaticFieldType.d.ts} +11 -11
- package/{dist/api/resources/collections/resources/fields/types/FieldCreateType.js → api/types/StaticFieldType.js} +11 -11
- package/api/types/Text.d.ts +12 -0
- package/api/types/Text.js +5 -0
- package/api/types/TextNode.d.ts +8 -3
- package/api/types/TextNodeText.d.ts +12 -0
- package/api/types/TextNodeText.js +5 -0
- package/api/{resources/pages/types/DomWriteNodesItem.d.ts → types/TextNodeWrite.d.ts} +4 -1
- package/api/types/TextNodeWrite.js +5 -0
- package/api/types/TriggerType.d.ts +1 -15
- package/api/types/UserAccessGroupsItem.d.ts +2 -3
- package/api/types/UserAccessGroupsItemType.d.ts +2 -3
- package/api/types/WebhookList.d.ts +1 -1
- package/api/types/index.d.ts +35 -6
- package/api/types/index.js +35 -6
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +25 -20
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/accessGroups/client/Client.js +1 -1
- package/dist/api/resources/assets/client/Client.d.ts +15 -7
- package/dist/api/resources/assets/client/Client.js +23 -15
- package/dist/api/resources/collections/client/Client.d.ts +24 -1
- package/dist/api/resources/collections/client/Client.js +30 -5
- package/dist/api/resources/collections/client/requests/CollectionsCreateRequest.d.ts +23 -1
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +34 -4
- package/dist/api/resources/collections/resources/fields/client/Client.js +40 -8
- package/dist/api/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
- package/dist/api/resources/collections/resources/fields/index.d.ts +0 -1
- package/dist/api/resources/collections/resources/fields/index.js +0 -1
- package/dist/api/resources/collections/resources/index.d.ts +1 -2
- package/dist/api/resources/collections/resources/index.js +2 -3
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +26 -16
- package/dist/api/resources/collections/resources/items/client/Client.js +48 -32
- 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/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/MultipleItems.d.ts +2 -2
- package/dist/api/resources/collections/resources/items/types/MultipleLiveItems.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/types/MultipleLiveItems.js +5 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/items/types/index.js +1 -0
- package/dist/api/resources/components/client/Client.d.ts +175 -0
- package/dist/api/resources/components/client/Client.js +669 -0
- package/dist/api/resources/components/client/index.d.ts +1 -0
- package/dist/api/resources/components/client/index.js +17 -0
- package/dist/api/resources/components/client/requests/ComponentDomWrite.d.ts +34 -0
- package/dist/api/resources/components/client/requests/ComponentDomWrite.js +5 -0
- package/dist/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +25 -0
- package/dist/api/resources/components/client/requests/ComponentPropertiesWrite.js +5 -0
- package/dist/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +28 -0
- package/dist/api/resources/components/client/requests/ComponentsGetContentRequest.js +5 -0
- package/dist/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +23 -0
- package/dist/api/resources/components/client/requests/ComponentsGetPropertiesRequest.js +5 -0
- package/dist/api/resources/components/client/requests/ComponentsListRequest.d.ts +17 -0
- package/dist/api/resources/components/client/requests/ComponentsListRequest.js +5 -0
- package/dist/api/resources/components/client/requests/index.d.ts +5 -0
- package/dist/api/resources/components/client/requests/index.js +2 -0
- package/dist/api/resources/components/index.d.ts +2 -0
- package/dist/api/resources/components/index.js +18 -0
- package/dist/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +5 -0
- package/dist/api/resources/components/types/ComponentDomWriteNodesItem.js +5 -0
- package/dist/api/resources/components/types/ComponentPropertiesWritePropertiesItem.d.ts +16 -0
- package/dist/api/resources/components/types/ComponentPropertiesWritePropertiesItem.js +5 -0
- package/dist/api/resources/components/types/ComponentsUpdateContentResponse.d.ts +7 -0
- package/dist/api/resources/components/types/ComponentsUpdateContentResponse.js +5 -0
- package/dist/api/resources/components/types/ComponentsUpdatePropertiesResponse.d.ts +7 -0
- package/dist/api/resources/components/types/ComponentsUpdatePropertiesResponse.js +5 -0
- package/dist/api/resources/components/types/index.d.ts +4 -0
- package/dist/api/resources/components/types/index.js +20 -0
- package/dist/api/resources/ecommerce/client/Client.js +1 -1
- package/dist/api/resources/forms/client/Client.d.ts +54 -0
- package/dist/api/resources/forms/client/Client.js +229 -5
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +23 -0
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.js +5 -0
- package/dist/api/resources/forms/client/requests/index.d.ts +1 -0
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/inventory/client/Client.d.ts +3 -1
- package/dist/api/resources/inventory/client/Client.js +5 -3
- package/dist/api/resources/orders/client/Client.d.ts +3 -0
- package/dist/api/resources/orders/client/Client.js +9 -6
- package/dist/api/resources/pages/client/Client.d.ts +31 -10
- package/dist/api/resources/pages/client/Client.js +37 -18
- package/dist/api/resources/pages/client/requests/PageDomWrite.d.ts +34 -0
- package/dist/api/resources/pages/client/requests/PageDomWrite.js +5 -0
- package/dist/api/resources/pages/client/requests/index.d.ts +1 -1
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +8 -19
- package/dist/api/resources/pages/resources/scripts/client/Client.js +13 -22
- package/dist/api/resources/pages/types/PageDomWriteNodesItem.d.ts +5 -0
- package/dist/api/resources/pages/types/PageDomWriteNodesItem.js +5 -0
- package/dist/api/resources/pages/types/index.d.ts +1 -1
- package/dist/api/resources/pages/types/index.js +1 -1
- package/dist/api/resources/products/client/Client.d.ts +5 -6
- package/dist/api/resources/products/client/Client.js +11 -12
- package/dist/api/resources/scripts/client/Client.d.ts +12 -20
- package/dist/api/resources/scripts/client/Client.js +15 -23
- package/dist/api/resources/sites/client/Client.d.ts +79 -0
- package/dist/api/resources/sites/client/Client.js +341 -9
- package/dist/api/resources/sites/client/requests/SitesCreateRequest.d.ts +17 -0
- package/dist/api/resources/sites/client/requests/SitesCreateRequest.js +5 -0
- package/dist/api/resources/sites/client/requests/SitesUpdateRequest.d.ts +13 -0
- package/dist/api/resources/sites/client/requests/SitesUpdateRequest.js +5 -0
- package/dist/api/resources/sites/client/requests/index.d.ts +2 -0
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +5 -1
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +6 -2
- package/dist/api/resources/sites/resources/index.d.ts +3 -0
- package/dist/api/resources/sites/resources/index.js +4 -1
- package/dist/api/resources/sites/resources/plans/client/Client.d.ts +47 -0
- package/dist/api/resources/sites/resources/plans/client/Client.js +157 -0
- package/dist/api/resources/sites/resources/plans/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/plans/client/index.js +2 -0
- package/dist/api/resources/sites/resources/plans/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/plans/index.js +17 -0
- package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +125 -0
- package/dist/api/resources/sites/resources/redirects/client/Client.js +482 -0
- package/dist/api/resources/sites/resources/redirects/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/redirects/client/index.js +2 -0
- package/dist/api/resources/sites/resources/redirects/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/redirects/index.js +17 -0
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.d.ts +124 -0
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.js +486 -0
- package/dist/api/resources/sites/resources/robotsTxt/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/robotsTxt/client/index.js +2 -0
- package/dist/api/resources/sites/resources/robotsTxt/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/robotsTxt/index.js +17 -0
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +15 -13
- package/dist/api/resources/sites/resources/scripts/client/Client.js +19 -17
- package/dist/api/resources/token/client/Client.d.ts +2 -1
- package/dist/api/resources/token/client/Client.js +4 -3
- package/dist/api/resources/users/client/Client.d.ts +1 -1
- package/dist/api/resources/users/client/Client.js +6 -6
- package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -4
- package/dist/api/resources/users/client/requests/UsersUpdateRequest.d.ts +1 -4
- package/dist/api/resources/webhooks/client/Client.d.ts +4 -1
- package/dist/api/resources/webhooks/client/Client.js +8 -5
- package/dist/api/types/Asset.d.ts +4 -0
- package/dist/api/types/AssetVariant.d.ts +3 -0
- package/dist/api/types/Assets.d.ts +1 -0
- package/dist/api/types/CollectionItem.d.ts +5 -1
- package/dist/api/types/CollectionItemPostSingle.d.ts +7 -3
- package/dist/api/types/Component.d.ts +18 -0
- package/dist/api/types/Component.js +5 -0
- package/dist/api/types/ComponentDom.d.ts +13 -0
- package/dist/api/types/ComponentDom.js +5 -0
- package/dist/api/types/ComponentInstanceNodePropertyOverridesWrite.d.ts +13 -0
- package/dist/api/types/ComponentInstanceNodePropertyOverridesWrite.js +5 -0
- package/dist/api/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.d.ts +14 -0
- package/dist/api/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +5 -0
- package/dist/api/types/ComponentList.d.ts +11 -0
- package/dist/api/types/ComponentList.js +5 -0
- package/dist/api/types/ComponentNode.d.ts +15 -0
- package/dist/api/types/ComponentNode.js +5 -0
- package/dist/api/types/ComponentProperties.d.ts +13 -0
- package/dist/api/types/ComponentProperties.js +5 -0
- package/dist/api/types/ComponentProperty.d.ts +17 -0
- package/dist/api/types/ComponentProperty.js +5 -0
- package/dist/api/types/ComponentPropertyType.d.ts +12 -0
- package/dist/api/types/ComponentPropertyType.js +11 -0
- package/dist/api/types/Conflict.d.ts +4 -0
- package/dist/api/types/Conflict.js +5 -0
- package/dist/api/types/Dom.d.ts +3 -1
- package/dist/api/types/Domain.d.ts +2 -0
- package/dist/api/types/Error_.d.ts +1 -1
- package/dist/api/types/FieldCreate.d.ts +8 -0
- package/dist/api/types/FieldCreate.js +5 -0
- package/dist/api/types/FieldType.d.ts +12 -10
- package/dist/api/types/FieldType.js +11 -9
- package/dist/api/types/ImageNode.d.ts +7 -2
- package/dist/api/types/ImageNodeImage.d.ts +10 -0
- package/dist/api/types/ImageNodeImage.js +5 -0
- package/dist/api/types/Metadata.d.ts +11 -0
- package/dist/api/types/Metadata.js +5 -0
- package/dist/api/types/MetadataOptionsItem.d.ts +12 -0
- package/dist/api/types/MetadataOptionsItem.js +5 -0
- package/dist/api/types/Node.d.ts +11 -8
- package/dist/api/types/NotEnterprisePlanWorkspace.d.ts +4 -0
- package/dist/api/types/NotEnterprisePlanWorkspace.js +5 -0
- package/dist/api/types/OAuthScope.d.ts +8 -0
- package/dist/api/types/OAuthScope.js +2 -0
- package/dist/api/types/OptionField.d.ts +19 -0
- package/dist/api/types/OptionField.js +5 -0
- package/dist/api/types/ProductFieldData.d.ts +1 -1
- package/dist/api/types/Redirect.d.ts +14 -0
- package/dist/api/types/Redirect.js +5 -0
- package/dist/api/types/Redirects.d.ts +12 -0
- package/dist/api/types/Redirects.js +5 -0
- package/dist/api/types/ReferenceField.d.ts +20 -0
- package/dist/api/types/ReferenceField.js +5 -0
- package/dist/api/types/ReferenceFieldMetadata.d.ts +10 -0
- package/dist/api/types/ReferenceFieldMetadata.js +5 -0
- package/dist/api/types/ReferenceFieldType.d.ts +11 -0
- package/dist/api/types/{NodeType.js → ReferenceFieldType.js} +4 -4
- package/dist/api/types/Robots.d.ts +13 -0
- package/dist/api/types/Robots.js +5 -0
- package/dist/api/types/RobotsRulesItem.d.ts +11 -0
- package/dist/api/types/RobotsRulesItem.js +5 -0
- package/dist/api/types/ScriptApply.d.ts +1 -1
- package/dist/api/types/SitePlan.d.ts +12 -0
- package/dist/api/types/SitePlan.js +5 -0
- package/dist/api/types/SitePlanId.d.ts +21 -0
- package/dist/api/types/SitePlanId.js +20 -0
- package/dist/api/types/SitePlanName.d.ts +15 -0
- package/dist/api/types/SitePlanName.js +14 -0
- package/dist/api/types/SkuFieldData.d.ts +2 -0
- package/dist/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +3 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +3 -0
- package/dist/api/{resources/collections/resources/fields/client/requests/FieldCreate.d.ts → types/StaticField.d.ts} +7 -12
- package/dist/api/types/StaticField.js +5 -0
- package/dist/api/{resources/collections/resources/fields/types/FieldCreateType.d.ts → types/StaticFieldType.d.ts} +11 -11
- package/{api/resources/collections/resources/fields/types/FieldCreateType.js → dist/api/types/StaticFieldType.js} +11 -11
- package/dist/api/types/Text.d.ts +12 -0
- package/dist/api/types/Text.js +5 -0
- package/dist/api/types/TextNode.d.ts +8 -3
- package/dist/api/types/TextNodeText.d.ts +12 -0
- package/dist/api/types/TextNodeText.js +5 -0
- package/dist/api/{resources/pages/types/DomWriteNodesItem.d.ts → types/TextNodeWrite.d.ts} +4 -1
- package/dist/api/types/TextNodeWrite.js +5 -0
- package/dist/api/types/TriggerType.d.ts +1 -15
- package/dist/api/types/UserAccessGroupsItem.d.ts +2 -3
- package/dist/api/types/UserAccessGroupsItemType.d.ts +2 -3
- package/dist/api/types/WebhookList.d.ts +1 -1
- package/dist/api/types/index.d.ts +35 -6
- package/dist/api/types/index.js +35 -6
- package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -0
- package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +2 -0
- package/dist/serialization/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/collections/resources/fields/client/requests/index.js +1 -3
- package/dist/serialization/resources/collections/resources/fields/index.d.ts +0 -1
- package/dist/serialization/resources/collections/resources/fields/index.js +0 -1
- package/dist/serialization/resources/collections/resources/index.d.ts +1 -2
- package/dist/serialization/resources/collections/resources/index.js +2 -3
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +2 -2
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +1 -1
- package/dist/serialization/resources/collections/resources/items/types/MultipleItems.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/items/types/MultipleItems.js +2 -2
- package/dist/serialization/resources/collections/resources/items/types/MultipleLiveItems.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/MultipleLiveItems.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/items/types/index.js +1 -0
- package/dist/serialization/resources/components/client/index.d.ts +1 -0
- package/dist/serialization/resources/components/client/index.js +17 -0
- package/dist/serialization/resources/components/client/requests/ComponentDomWrite.d.ts +13 -0
- package/dist/serialization/resources/components/client/requests/ComponentDomWrite.js +34 -0
- package/dist/serialization/resources/components/client/requests/ComponentPropertiesWrite.d.ts +13 -0
- package/dist/serialization/resources/components/client/requests/ComponentPropertiesWrite.js +34 -0
- package/dist/serialization/resources/components/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/components/client/requests/index.js +7 -0
- package/dist/serialization/resources/components/index.d.ts +2 -0
- package/dist/serialization/resources/components/index.js +18 -0
- package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.d.ts +12 -0
- package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.js +33 -0
- package/dist/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.d.ts +13 -0
- package/dist/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.js +34 -0
- package/dist/serialization/resources/components/types/ComponentsUpdateContentResponse.d.ts +12 -0
- package/dist/serialization/resources/components/types/ComponentsUpdateContentResponse.js +33 -0
- package/dist/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.d.ts +12 -0
- package/dist/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.js +33 -0
- package/dist/serialization/resources/components/types/index.d.ts +4 -0
- package/dist/serialization/resources/components/types/index.js +20 -0
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/pages/client/requests/PageDomWrite.d.ts +13 -0
- package/dist/serialization/resources/pages/client/requests/PageDomWrite.js +34 -0
- package/dist/serialization/resources/pages/client/requests/index.d.ts +1 -1
- package/dist/serialization/resources/pages/client/requests/index.js +3 -3
- package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.d.ts +12 -0
- package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.js +33 -0
- package/dist/serialization/resources/pages/types/index.d.ts +1 -1
- package/dist/serialization/resources/pages/types/index.js +1 -1
- package/dist/serialization/resources/sites/client/requests/SitesCreateRequest.d.ts +14 -0
- package/dist/serialization/resources/sites/client/requests/SitesCreateRequest.js +35 -0
- package/dist/serialization/resources/sites/client/requests/SitesUpdateRequest.d.ts +13 -0
- package/dist/serialization/resources/{pages/client/requests/DomWrite.js → sites/client/requests/SitesUpdateRequest.js} +4 -4
- package/dist/serialization/resources/sites/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/sites/client/requests/index.js +5 -1
- package/dist/serialization/types/Assets.d.ts +2 -0
- package/dist/serialization/types/Assets.js +2 -0
- package/dist/serialization/types/Component.d.ts +16 -0
- package/dist/serialization/types/Component.js +37 -0
- package/dist/serialization/types/ComponentDom.d.ts +16 -0
- package/dist/serialization/types/ComponentDom.js +37 -0
- package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.d.ts +14 -0
- package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.js +35 -0
- package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.d.ts +13 -0
- package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +34 -0
- package/dist/serialization/types/ComponentList.d.ts +15 -0
- package/dist/serialization/types/ComponentList.js +36 -0
- package/dist/serialization/types/ComponentNode.d.ts +15 -0
- package/dist/serialization/types/ComponentNode.js +36 -0
- package/dist/serialization/types/ComponentProperties.d.ts +16 -0
- package/dist/serialization/types/ComponentProperties.js +37 -0
- package/dist/serialization/types/ComponentProperty.d.ts +17 -0
- package/dist/serialization/types/ComponentProperty.js +38 -0
- package/dist/serialization/types/ComponentPropertyType.d.ts +10 -0
- package/dist/serialization/types/{ErrorDetailsItem.js → ComponentPropertyType.js} +2 -5
- package/dist/serialization/types/{NodeType.d.ts → Conflict.d.ts} +3 -3
- package/dist/serialization/types/{NodeType.js → Conflict.js} +2 -2
- package/dist/serialization/types/Dom.d.ts +1 -0
- package/dist/serialization/types/Dom.js +1 -0
- package/dist/serialization/types/Domain.d.ts +1 -0
- package/dist/serialization/types/Domain.js +1 -0
- package/dist/serialization/types/Error_.d.ts +1 -2
- package/dist/serialization/types/Error_.js +1 -2
- package/dist/serialization/types/FieldCreate.d.ts +13 -0
- package/dist/serialization/types/FieldCreate.js +34 -0
- package/dist/serialization/types/FieldType.d.ts +1 -1
- package/dist/serialization/types/FieldType.js +11 -9
- package/dist/serialization/types/ImageNode.d.ts +4 -2
- package/dist/serialization/types/ImageNode.js +4 -2
- package/dist/serialization/types/ImageNodeImage.d.ts +13 -0
- package/{serialization/types/ErrorDetailsItem.js → dist/serialization/types/ImageNodeImage.js} +5 -5
- package/dist/serialization/types/Metadata.d.ts +13 -0
- package/dist/serialization/types/Metadata.js +34 -0
- package/dist/serialization/types/MetadataOptionsItem.d.ts +13 -0
- package/dist/serialization/types/MetadataOptionsItem.js +34 -0
- package/dist/serialization/types/Node.d.ts +11 -8
- package/dist/serialization/types/Node.js +10 -7
- package/dist/serialization/types/NotEnterprisePlanWorkspace.d.ts +10 -0
- package/dist/serialization/types/NotEnterprisePlanWorkspace.js +31 -0
- package/dist/serialization/types/OptionField.d.ts +19 -0
- package/dist/serialization/types/OptionField.js +40 -0
- package/dist/serialization/types/Redirect.d.ts +14 -0
- package/dist/serialization/types/Redirect.js +35 -0
- package/dist/serialization/types/Redirects.d.ts +15 -0
- package/dist/serialization/types/Redirects.js +36 -0
- package/dist/serialization/types/ReferenceField.d.ts +20 -0
- package/dist/serialization/types/ReferenceField.js +41 -0
- package/dist/serialization/types/ReferenceFieldMetadata.d.ts +12 -0
- package/dist/serialization/types/ReferenceFieldMetadata.js +33 -0
- package/dist/serialization/types/ReferenceFieldType.d.ts +10 -0
- package/dist/serialization/types/ReferenceFieldType.js +31 -0
- package/dist/serialization/types/Robots.d.ts +14 -0
- package/dist/serialization/types/Robots.js +35 -0
- package/dist/serialization/types/RobotsRulesItem.d.ts +14 -0
- package/dist/serialization/types/RobotsRulesItem.js +35 -0
- package/dist/serialization/types/SitePlan.d.ts +16 -0
- package/dist/serialization/types/SitePlan.js +37 -0
- package/dist/serialization/types/SitePlanId.d.ts +10 -0
- package/dist/serialization/types/SitePlanId.js +44 -0
- package/dist/serialization/types/SitePlanName.d.ts +10 -0
- package/dist/serialization/types/SitePlanName.js +38 -0
- package/dist/serialization/types/StaticField.d.ts +18 -0
- package/{serialization/resources/collections/resources/fields/client/requests/FieldCreate.js → dist/serialization/types/StaticField.js} +7 -5
- package/dist/serialization/types/StaticFieldType.d.ts +10 -0
- package/{serialization/resources/collections/resources/fields/types/FieldCreateType.js → dist/serialization/types/StaticFieldType.js} +12 -12
- package/dist/serialization/types/Text.d.ts +13 -0
- package/dist/serialization/types/Text.js +34 -0
- package/dist/serialization/types/TextNode.d.ts +4 -2
- package/dist/serialization/types/TextNode.js +4 -2
- package/dist/serialization/types/TextNodeText.d.ts +13 -0
- package/dist/serialization/types/TextNodeText.js +34 -0
- package/dist/serialization/types/TextNodeWrite.d.ts +13 -0
- package/{serialization/resources/pages/types/DomWriteNodesItem.js → dist/serialization/types/TextNodeWrite.js} +3 -3
- package/dist/serialization/types/WebhookList.d.ts +2 -2
- package/dist/serialization/types/WebhookList.js +2 -2
- package/dist/serialization/types/index.d.ts +35 -6
- package/dist/serialization/types/index.js +35 -6
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/WebflowClient.d.ts +3 -0
- package/dist/wrapper/WebflowClient.js +5 -0
- package/dist/wrapper/WebhooksClient.d.ts +39 -0
- package/dist/wrapper/WebhooksClient.js +66 -0
- package/package.json +5 -3
- package/reference.md +2407 -847
- package/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -0
- package/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +2 -0
- package/serialization/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
- package/serialization/resources/collections/resources/fields/client/requests/index.js +1 -3
- package/serialization/resources/collections/resources/fields/index.d.ts +0 -1
- package/serialization/resources/collections/resources/fields/index.js +0 -1
- package/serialization/resources/collections/resources/index.d.ts +1 -2
- package/serialization/resources/collections/resources/index.js +2 -3
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +2 -2
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +2 -2
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +1 -1
- package/serialization/resources/collections/resources/items/types/MultipleItems.d.ts +2 -2
- package/serialization/resources/collections/resources/items/types/MultipleItems.js +2 -2
- package/serialization/resources/collections/resources/items/types/MultipleLiveItems.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/MultipleLiveItems.js +34 -0
- package/serialization/resources/collections/resources/items/types/index.d.ts +1 -0
- package/serialization/resources/collections/resources/items/types/index.js +1 -0
- package/serialization/resources/components/client/index.d.ts +1 -0
- package/serialization/resources/components/client/index.js +17 -0
- package/serialization/resources/components/client/requests/ComponentDomWrite.d.ts +13 -0
- package/serialization/resources/components/client/requests/ComponentDomWrite.js +34 -0
- package/serialization/resources/components/client/requests/ComponentPropertiesWrite.d.ts +13 -0
- package/serialization/resources/components/client/requests/ComponentPropertiesWrite.js +34 -0
- package/serialization/resources/components/client/requests/index.d.ts +2 -0
- package/serialization/resources/components/client/requests/index.js +7 -0
- package/serialization/resources/components/index.d.ts +2 -0
- package/serialization/resources/components/index.js +18 -0
- package/serialization/resources/components/types/ComponentDomWriteNodesItem.d.ts +12 -0
- package/serialization/resources/components/types/ComponentDomWriteNodesItem.js +33 -0
- package/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.d.ts +13 -0
- package/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.js +34 -0
- package/serialization/resources/components/types/ComponentsUpdateContentResponse.d.ts +12 -0
- package/serialization/resources/components/types/ComponentsUpdateContentResponse.js +33 -0
- package/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.d.ts +12 -0
- package/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.js +33 -0
- package/serialization/resources/components/types/index.d.ts +4 -0
- package/serialization/resources/components/types/index.js +20 -0
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/pages/client/requests/PageDomWrite.d.ts +13 -0
- package/serialization/resources/pages/client/requests/PageDomWrite.js +34 -0
- package/serialization/resources/pages/client/requests/index.d.ts +1 -1
- package/serialization/resources/pages/client/requests/index.js +3 -3
- package/serialization/resources/pages/types/PageDomWriteNodesItem.d.ts +12 -0
- package/serialization/resources/pages/types/PageDomWriteNodesItem.js +33 -0
- package/serialization/resources/pages/types/index.d.ts +1 -1
- package/serialization/resources/pages/types/index.js +1 -1
- package/serialization/resources/sites/client/requests/SitesCreateRequest.d.ts +14 -0
- package/serialization/resources/sites/client/requests/SitesCreateRequest.js +35 -0
- package/serialization/resources/sites/client/requests/SitesUpdateRequest.d.ts +13 -0
- package/serialization/resources/{pages/client/requests/DomWrite.js → sites/client/requests/SitesUpdateRequest.js} +4 -4
- package/serialization/resources/sites/client/requests/index.d.ts +2 -0
- package/serialization/resources/sites/client/requests/index.js +5 -1
- package/serialization/types/Assets.d.ts +2 -0
- package/serialization/types/Assets.js +2 -0
- package/serialization/types/Component.d.ts +16 -0
- package/serialization/types/Component.js +37 -0
- package/serialization/types/ComponentDom.d.ts +16 -0
- package/serialization/types/ComponentDom.js +37 -0
- package/serialization/types/ComponentInstanceNodePropertyOverridesWrite.d.ts +14 -0
- package/serialization/types/ComponentInstanceNodePropertyOverridesWrite.js +35 -0
- package/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.d.ts +13 -0
- package/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +34 -0
- package/serialization/types/ComponentList.d.ts +15 -0
- package/serialization/types/ComponentList.js +36 -0
- package/serialization/types/ComponentNode.d.ts +15 -0
- package/serialization/types/ComponentNode.js +36 -0
- package/serialization/types/ComponentProperties.d.ts +16 -0
- package/serialization/types/ComponentProperties.js +37 -0
- package/serialization/types/ComponentProperty.d.ts +17 -0
- package/serialization/types/ComponentProperty.js +38 -0
- package/serialization/types/ComponentPropertyType.d.ts +10 -0
- package/serialization/types/ComponentPropertyType.js +31 -0
- package/serialization/types/{NodeType.d.ts → Conflict.d.ts} +3 -3
- package/serialization/types/{NodeType.js → Conflict.js} +2 -2
- package/serialization/types/Dom.d.ts +1 -0
- package/serialization/types/Dom.js +1 -0
- package/serialization/types/Domain.d.ts +1 -0
- package/serialization/types/Domain.js +1 -0
- package/serialization/types/Error_.d.ts +1 -2
- package/serialization/types/Error_.js +1 -2
- package/serialization/types/FieldCreate.d.ts +13 -0
- package/serialization/types/FieldCreate.js +34 -0
- package/serialization/types/FieldType.d.ts +1 -1
- package/serialization/types/FieldType.js +11 -9
- package/serialization/types/ImageNode.d.ts +4 -2
- package/serialization/types/ImageNode.js +4 -2
- package/serialization/types/ImageNodeImage.d.ts +13 -0
- package/serialization/types/ImageNodeImage.js +34 -0
- package/serialization/types/Metadata.d.ts +13 -0
- package/serialization/types/Metadata.js +34 -0
- package/serialization/types/MetadataOptionsItem.d.ts +13 -0
- package/serialization/types/MetadataOptionsItem.js +34 -0
- package/serialization/types/Node.d.ts +11 -8
- package/serialization/types/Node.js +10 -7
- package/serialization/types/NotEnterprisePlanWorkspace.d.ts +10 -0
- package/serialization/types/NotEnterprisePlanWorkspace.js +31 -0
- package/serialization/types/OptionField.d.ts +19 -0
- package/serialization/types/OptionField.js +40 -0
- package/serialization/types/Redirect.d.ts +14 -0
- package/serialization/types/Redirect.js +35 -0
- package/serialization/types/Redirects.d.ts +15 -0
- package/serialization/types/Redirects.js +36 -0
- package/serialization/types/ReferenceField.d.ts +20 -0
- package/serialization/types/ReferenceField.js +41 -0
- package/serialization/types/ReferenceFieldMetadata.d.ts +12 -0
- package/serialization/types/ReferenceFieldMetadata.js +33 -0
- package/serialization/types/ReferenceFieldType.d.ts +10 -0
- package/serialization/types/ReferenceFieldType.js +31 -0
- package/serialization/types/Robots.d.ts +14 -0
- package/serialization/types/Robots.js +35 -0
- package/serialization/types/RobotsRulesItem.d.ts +14 -0
- package/serialization/types/RobotsRulesItem.js +35 -0
- package/serialization/types/SitePlan.d.ts +16 -0
- package/serialization/types/SitePlan.js +37 -0
- package/serialization/types/SitePlanId.d.ts +10 -0
- package/serialization/types/SitePlanId.js +44 -0
- package/serialization/types/SitePlanName.d.ts +10 -0
- package/serialization/types/SitePlanName.js +38 -0
- package/serialization/types/StaticField.d.ts +18 -0
- package/{dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js → serialization/types/StaticField.js} +7 -5
- package/serialization/types/StaticFieldType.d.ts +10 -0
- package/{dist/serialization/resources/collections/resources/fields/types/FieldCreateType.js → serialization/types/StaticFieldType.js} +12 -12
- package/serialization/types/Text.d.ts +13 -0
- package/serialization/types/Text.js +34 -0
- package/serialization/types/TextNode.d.ts +4 -2
- package/serialization/types/TextNode.js +4 -2
- package/serialization/types/TextNodeText.d.ts +13 -0
- package/serialization/types/TextNodeText.js +34 -0
- package/serialization/types/TextNodeWrite.d.ts +13 -0
- package/{dist/serialization/resources/pages/types/DomWriteNodesItem.js → serialization/types/TextNodeWrite.js} +3 -3
- package/serialization/types/WebhookList.d.ts +2 -2
- package/serialization/types/WebhookList.js +2 -2
- package/serialization/types/index.d.ts +35 -6
- package/serialization/types/index.js +35 -6
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/WebflowClient.d.ts +3 -0
- package/wrapper/WebflowClient.js +5 -0
- package/wrapper/WebhooksClient.d.ts +39 -0
- package/wrapper/WebhooksClient.js +66 -0
- package/api/resources/collections/resources/fields/types/index.d.ts +0 -1
- package/api/resources/pages/client/requests/DomWrite.d.ts +0 -27
- package/api/types/NodeType.d.ts +0 -8
- package/dist/api/resources/collections/resources/fields/types/index.d.ts +0 -1
- package/dist/api/resources/pages/client/requests/DomWrite.d.ts +0 -27
- package/dist/api/types/NodeType.d.ts +0 -8
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +0 -16
- package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +0 -10
- package/dist/serialization/resources/collections/resources/fields/types/index.d.ts +0 -1
- package/dist/serialization/resources/pages/client/requests/DomWrite.d.ts +0 -13
- package/dist/serialization/resources/pages/types/DomWriteNodesItem.d.ts +0 -13
- package/dist/serialization/types/ErrorDetailsItem.d.ts +0 -10
- package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +0 -16
- package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +0 -10
- package/serialization/resources/collections/resources/fields/types/index.d.ts +0 -1
- package/serialization/resources/pages/client/requests/DomWrite.d.ts +0 -13
- package/serialization/resources/pages/types/DomWriteNodesItem.d.ts +0 -13
- package/serialization/types/ErrorDetailsItem.d.ts +0 -10
- /package/api/resources/collections/resources/{fields/client/requests/FieldCreate.js → items/types/MultipleLiveItems.js} +0 -0
- /package/api/resources/{pages/client/requests/DomWrite.js → components/client/requests/ComponentDomWrite.js} +0 -0
- /package/api/resources/{pages/types/DomWriteNodesItem.js → components/client/requests/ComponentPropertiesWrite.js} +0 -0
- /package/api/{types/ErrorDetailsItem.js → resources/components/client/requests/ComponentsGetContentRequest.js} +0 -0
- /package/{dist/api/resources/collections/resources/fields/client/requests/FieldCreate.js → api/resources/components/client/requests/ComponentsGetPropertiesRequest.js} +0 -0
- /package/{dist/api/resources/pages/client/requests/DomWrite.js → api/resources/components/client/requests/ComponentsListRequest.js} +0 -0
- /package/{dist/api/resources/pages/types/DomWriteNodesItem.js → api/resources/components/types/ComponentDomWriteNodesItem.js} +0 -0
- /package/{dist/api/types/ErrorDetailsItem.js → api/resources/components/types/ComponentPropertiesWritePropertiesItem.js} +0 -0
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* localeId: "65427cf400e02b306eaa04a0",
|
|
9
|
+
* nodes: [{
|
|
10
|
+
* nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623",
|
|
11
|
+
* text: "<h1>The Hitchhiker's Guide to the Galaxy</h1>"
|
|
12
|
+
* }, {
|
|
13
|
+
* nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad627",
|
|
14
|
+
* text: "<div><h3>Don't Panic!</h3><p>Always know where your towel is.</p></div>"
|
|
15
|
+
* }, {
|
|
16
|
+
* nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad629",
|
|
17
|
+
* propertyOverrides: [{
|
|
18
|
+
* propertyId: "7dd14c08-2e96-8d3d-2b19-b5c03642a0f0",
|
|
19
|
+
* text: "<div><h1>Time is an <em>illusion</em></h1></div>"
|
|
20
|
+
* }, {
|
|
21
|
+
* propertyId: "7dd14c08-2e96-8d3d-2b19-b5c03642a0f1",
|
|
22
|
+
* text: "Life, the Universe and Everything"
|
|
23
|
+
* }]
|
|
24
|
+
* }]
|
|
25
|
+
* }
|
|
26
|
+
*/
|
|
27
|
+
export interface ComponentDomWrite {
|
|
28
|
+
/**
|
|
29
|
+
* Unique identifier for a specific locale. Applicable, when using localization.
|
|
30
|
+
*/
|
|
31
|
+
localeId?: string;
|
|
32
|
+
/** List of DOM Nodes with the new content that will be updated in each node. */
|
|
33
|
+
nodes: Webflow.ComponentDomWriteNodesItem[];
|
|
34
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* localeId: "65427cf400e02b306eaa04a0",
|
|
9
|
+
* properties: [{
|
|
10
|
+
* propertyId: "a245c12d-995b-55ee-5ec7-aa36a6cad623",
|
|
11
|
+
* text: "The Hitchhiker\u2019s Guide to the Galaxy"
|
|
12
|
+
* }, {
|
|
13
|
+
* propertyId: "a245c12d-995b-55ee-5ec7-aa36a6cad627",
|
|
14
|
+
* text: "<div><h3>Dont Panic!</h3><p>Always know where your towel is.</p></div>"
|
|
15
|
+
* }]
|
|
16
|
+
* }
|
|
17
|
+
*/
|
|
18
|
+
export interface ComponentPropertiesWrite {
|
|
19
|
+
/**
|
|
20
|
+
* Unique identifier for a specific locale. Applicable, when using localization.
|
|
21
|
+
*/
|
|
22
|
+
localeId?: string;
|
|
23
|
+
/** A list of component properties to update within the specified secondary locale. */
|
|
24
|
+
properties: Webflow.ComponentPropertiesWritePropertiesItem[];
|
|
25
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* localeId: "65427cf400e02b306eaa04a0"
|
|
8
|
+
* }
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* {
|
|
12
|
+
* localeId: "65427cf400e02b306eaa04a0"
|
|
13
|
+
* }
|
|
14
|
+
*/
|
|
15
|
+
export interface ComponentsGetContentRequest {
|
|
16
|
+
/**
|
|
17
|
+
* Unique identifier for a specific locale. Applicable, when using localization.
|
|
18
|
+
*/
|
|
19
|
+
localeId?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Maximum number of records to be returned (max limit: 100)
|
|
22
|
+
*/
|
|
23
|
+
limit?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Offset used for pagination if the results have more than limit records
|
|
26
|
+
*/
|
|
27
|
+
offset?: number;
|
|
28
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* localeId: "65427cf400e02b306eaa04a0"
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export interface ComponentsGetPropertiesRequest {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier for a specific locale. Applicable, when using localization.
|
|
13
|
+
*/
|
|
14
|
+
localeId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Maximum number of records to be returned (max limit: 100)
|
|
17
|
+
*/
|
|
18
|
+
limit?: number;
|
|
19
|
+
/**
|
|
20
|
+
* Offset used for pagination if the results have more than limit records
|
|
21
|
+
*/
|
|
22
|
+
offset?: number;
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface ComponentsListRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Maximum number of records to be returned (max limit: 100)
|
|
11
|
+
*/
|
|
12
|
+
limit?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Offset used for pagination if the results have more than limit records
|
|
15
|
+
*/
|
|
16
|
+
offset?: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { type ComponentsListRequest } from "./ComponentsListRequest";
|
|
2
|
+
export { type ComponentsGetContentRequest } from "./ComponentsGetContentRequest";
|
|
3
|
+
export { type ComponentDomWrite } from "./ComponentDomWrite";
|
|
4
|
+
export { type ComponentsGetPropertiesRequest } from "./ComponentsGetPropertiesRequest";
|
|
5
|
+
export { type ComponentPropertiesWrite } from "./ComponentPropertiesWrite";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
export interface ComponentPropertiesWritePropertiesItem {
|
|
5
|
+
/** The ID of the property. */
|
|
6
|
+
propertyId: string;
|
|
7
|
+
/**
|
|
8
|
+
* The new string or HTML value used to update the component property in the secondary locale.
|
|
9
|
+
*
|
|
10
|
+
* The provided value must be compatible with the type of the component property.
|
|
11
|
+
*
|
|
12
|
+
* For example, attempting to update a single-line plain-text property with a multi-line
|
|
13
|
+
* value will result in an error.
|
|
14
|
+
*/
|
|
15
|
+
text: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ComponentDomWriteNodesItem"), exports);
|
|
18
|
+
__exportStar(require("./ComponentsUpdateContentResponse"), exports);
|
|
19
|
+
__exportStar(require("./ComponentPropertiesWritePropertiesItem"), exports);
|
|
20
|
+
__exportStar(require("./ComponentsUpdatePropertiesResponse"), exports);
|
|
@@ -74,7 +74,7 @@ class Ecommerce {
|
|
|
74
74
|
const _response = yield core.fetcher({
|
|
75
75
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/ecommerce/settings`),
|
|
76
76
|
method: "GET",
|
|
77
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.
|
|
77
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
requestType: "json",
|
|
80
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -20,6 +20,9 @@ export declare namespace Forms {
|
|
|
20
20
|
headers?: Record<string, string>;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Forms are forms that are created on your Webflow site.
|
|
25
|
+
*/
|
|
23
26
|
export declare class Forms {
|
|
24
27
|
protected readonly _options: Forms.Options;
|
|
25
28
|
constructor(_options: Forms.Options);
|
|
@@ -66,6 +69,12 @@ export declare class Forms {
|
|
|
66
69
|
/**
|
|
67
70
|
* List form submissions for a given form
|
|
68
71
|
*
|
|
72
|
+
* <Note title="Forms in components">
|
|
73
|
+
* When a form is used in a component definition, each instance of the form is considered a unique form.
|
|
74
|
+
*
|
|
75
|
+
* To get a combined list of submissions for a form that appears across multiple component instances, use the [List Form Submissions by Site](/data/reference/forms/form-submissions/list-submissions-by-site) endpoint.
|
|
76
|
+
* </Note>
|
|
77
|
+
*
|
|
69
78
|
* Required scope | `forms:read`
|
|
70
79
|
*
|
|
71
80
|
* @param {string} formId - Unique identifier for a Form
|
|
@@ -102,6 +111,27 @@ export declare class Forms {
|
|
|
102
111
|
* await client.forms.getSubmission("580e63e98c9a982ac9b8b741")
|
|
103
112
|
*/
|
|
104
113
|
getSubmission(formSubmissionId: string, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormSubmission>;
|
|
114
|
+
/**
|
|
115
|
+
* Delete a form submission
|
|
116
|
+
*
|
|
117
|
+
*
|
|
118
|
+
* Required scope | `forms:write`
|
|
119
|
+
*
|
|
120
|
+
* @param {string} formSubmissionId - Unique identifier for a Form Submission
|
|
121
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link Webflow.BadRequestError}
|
|
124
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
125
|
+
* @throws {@link Webflow.ForbiddenError}
|
|
126
|
+
* @throws {@link Webflow.NotFoundError}
|
|
127
|
+
* @throws {@link Webflow.ConflictError}
|
|
128
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
129
|
+
* @throws {@link Webflow.InternalServerError}
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* await client.forms.deleteSubmission("580e63e98c9a982ac9b8b741")
|
|
133
|
+
*/
|
|
134
|
+
deleteSubmission(formSubmissionId: string, requestOptions?: Forms.RequestOptions): Promise<void>;
|
|
105
135
|
/**
|
|
106
136
|
* Update hidden fields on a form submission
|
|
107
137
|
*
|
|
@@ -123,5 +153,29 @@ export declare class Forms {
|
|
|
123
153
|
* await client.forms.updateSubmission("580e63e98c9a982ac9b8b741")
|
|
124
154
|
*/
|
|
125
155
|
updateSubmission(formSubmissionId: string, request?: Webflow.FormsUpdateSubmissionRequest, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormSubmission>;
|
|
156
|
+
/**
|
|
157
|
+
* List form submissions for a given site. This endpoint differs from the existing [List Form Submissions endpoint](/data/reference/forms/form-submissions/list-submissions) by accepting `siteId` as a path parameter and `elementId` as a query parameter. You can get the `elementId` from the [List forms endpoint](/data/reference/forms/forms/list).
|
|
158
|
+
*
|
|
159
|
+
*
|
|
160
|
+
*
|
|
161
|
+
* Required scope | `forms:read`
|
|
162
|
+
*
|
|
163
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
164
|
+
* @param {Webflow.FormsListSubmissionsBySiteRequest} request
|
|
165
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
166
|
+
*
|
|
167
|
+
* @throws {@link Webflow.BadRequestError}
|
|
168
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
169
|
+
* @throws {@link Webflow.ForbiddenError}
|
|
170
|
+
* @throws {@link Webflow.NotFoundError}
|
|
171
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
172
|
+
* @throws {@link Webflow.InternalServerError}
|
|
173
|
+
*
|
|
174
|
+
* @example
|
|
175
|
+
* await client.forms.listSubmissionsBySite("580e63e98c9a982ac9b8b741", {
|
|
176
|
+
* elementId: "18259716-3e5a-646a-5f41-5dc4b9405aa0"
|
|
177
|
+
* })
|
|
178
|
+
*/
|
|
179
|
+
listSubmissionsBySite(siteId: string, request?: Webflow.FormsListSubmissionsBySiteRequest, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormSubmissionList>;
|
|
126
180
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
127
181
|
}
|
|
@@ -45,6 +45,9 @@ const Webflow = __importStar(require("../../../index"));
|
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
46
|
const serializers = __importStar(require("../../../../serialization/index"));
|
|
47
47
|
const errors = __importStar(require("../../../../errors/index"));
|
|
48
|
+
/**
|
|
49
|
+
* Forms are forms that are created on your Webflow site.
|
|
50
|
+
*/
|
|
48
51
|
class Forms {
|
|
49
52
|
constructor(_options) {
|
|
50
53
|
this._options = _options;
|
|
@@ -83,7 +86,7 @@ class Forms {
|
|
|
83
86
|
const _response = yield core.fetcher({
|
|
84
87
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/forms`),
|
|
85
88
|
method: "GET",
|
|
86
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.
|
|
89
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
90
|
contentType: "application/json",
|
|
88
91
|
queryParameters: _queryParams,
|
|
89
92
|
requestType: "json",
|
|
@@ -186,7 +189,7 @@ class Forms {
|
|
|
186
189
|
const _response = yield core.fetcher({
|
|
187
190
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `forms/${encodeURIComponent(formId)}`),
|
|
188
191
|
method: "GET",
|
|
189
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.
|
|
192
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
190
193
|
contentType: "application/json",
|
|
191
194
|
requestType: "json",
|
|
192
195
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -265,6 +268,12 @@ class Forms {
|
|
|
265
268
|
/**
|
|
266
269
|
* List form submissions for a given form
|
|
267
270
|
*
|
|
271
|
+
* <Note title="Forms in components">
|
|
272
|
+
* When a form is used in a component definition, each instance of the form is considered a unique form.
|
|
273
|
+
*
|
|
274
|
+
* To get a combined list of submissions for a form that appears across multiple component instances, use the [List Form Submissions by Site](/data/reference/forms/form-submissions/list-submissions-by-site) endpoint.
|
|
275
|
+
* </Note>
|
|
276
|
+
*
|
|
268
277
|
* Required scope | `forms:read`
|
|
269
278
|
*
|
|
270
279
|
* @param {string} formId - Unique identifier for a Form
|
|
@@ -295,7 +304,7 @@ class Forms {
|
|
|
295
304
|
const _response = yield core.fetcher({
|
|
296
305
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `forms/${encodeURIComponent(formId)}/submissions`),
|
|
297
306
|
method: "GET",
|
|
298
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.
|
|
307
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
299
308
|
contentType: "application/json",
|
|
300
309
|
queryParameters: _queryParams,
|
|
301
310
|
requestType: "json",
|
|
@@ -396,7 +405,7 @@ class Forms {
|
|
|
396
405
|
const _response = yield core.fetcher({
|
|
397
406
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `form_submissions/${encodeURIComponent(formSubmissionId)}`),
|
|
398
407
|
method: "GET",
|
|
399
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.
|
|
408
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
400
409
|
contentType: "application/json",
|
|
401
410
|
requestType: "json",
|
|
402
411
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -472,6 +481,104 @@ class Forms {
|
|
|
472
481
|
}
|
|
473
482
|
});
|
|
474
483
|
}
|
|
484
|
+
/**
|
|
485
|
+
* Delete a form submission
|
|
486
|
+
*
|
|
487
|
+
*
|
|
488
|
+
* Required scope | `forms:write`
|
|
489
|
+
*
|
|
490
|
+
* @param {string} formSubmissionId - Unique identifier for a Form Submission
|
|
491
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
492
|
+
*
|
|
493
|
+
* @throws {@link Webflow.BadRequestError}
|
|
494
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
495
|
+
* @throws {@link Webflow.ForbiddenError}
|
|
496
|
+
* @throws {@link Webflow.NotFoundError}
|
|
497
|
+
* @throws {@link Webflow.ConflictError}
|
|
498
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
499
|
+
* @throws {@link Webflow.InternalServerError}
|
|
500
|
+
*
|
|
501
|
+
* @example
|
|
502
|
+
* await client.forms.deleteSubmission("580e63e98c9a982ac9b8b741")
|
|
503
|
+
*/
|
|
504
|
+
deleteSubmission(formSubmissionId, requestOptions) {
|
|
505
|
+
var _a;
|
|
506
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
507
|
+
const _response = yield core.fetcher({
|
|
508
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `form_submissions/${encodeURIComponent(formSubmissionId)}`),
|
|
509
|
+
method: "DELETE",
|
|
510
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
511
|
+
contentType: "application/json",
|
|
512
|
+
requestType: "json",
|
|
513
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
514
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
515
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
516
|
+
});
|
|
517
|
+
if (_response.ok) {
|
|
518
|
+
return;
|
|
519
|
+
}
|
|
520
|
+
if (_response.error.reason === "status-code") {
|
|
521
|
+
switch (_response.error.statusCode) {
|
|
522
|
+
case 400:
|
|
523
|
+
throw new Webflow.BadRequestError(_response.error.body);
|
|
524
|
+
case 401:
|
|
525
|
+
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
526
|
+
unrecognizedObjectKeys: "passthrough",
|
|
527
|
+
allowUnrecognizedUnionMembers: true,
|
|
528
|
+
allowUnrecognizedEnumValues: true,
|
|
529
|
+
skipValidation: true,
|
|
530
|
+
breadcrumbsPrefix: ["response"],
|
|
531
|
+
}));
|
|
532
|
+
case 403:
|
|
533
|
+
throw new Webflow.ForbiddenError(_response.error.body);
|
|
534
|
+
case 404:
|
|
535
|
+
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
536
|
+
unrecognizedObjectKeys: "passthrough",
|
|
537
|
+
allowUnrecognizedUnionMembers: true,
|
|
538
|
+
allowUnrecognizedEnumValues: true,
|
|
539
|
+
skipValidation: true,
|
|
540
|
+
breadcrumbsPrefix: ["response"],
|
|
541
|
+
}));
|
|
542
|
+
case 409:
|
|
543
|
+
throw new Webflow.ConflictError(_response.error.body);
|
|
544
|
+
case 429:
|
|
545
|
+
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
546
|
+
unrecognizedObjectKeys: "passthrough",
|
|
547
|
+
allowUnrecognizedUnionMembers: true,
|
|
548
|
+
allowUnrecognizedEnumValues: true,
|
|
549
|
+
skipValidation: true,
|
|
550
|
+
breadcrumbsPrefix: ["response"],
|
|
551
|
+
}));
|
|
552
|
+
case 500:
|
|
553
|
+
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
554
|
+
unrecognizedObjectKeys: "passthrough",
|
|
555
|
+
allowUnrecognizedUnionMembers: true,
|
|
556
|
+
allowUnrecognizedEnumValues: true,
|
|
557
|
+
skipValidation: true,
|
|
558
|
+
breadcrumbsPrefix: ["response"],
|
|
559
|
+
}));
|
|
560
|
+
default:
|
|
561
|
+
throw new errors.WebflowError({
|
|
562
|
+
statusCode: _response.error.statusCode,
|
|
563
|
+
body: _response.error.body,
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
switch (_response.error.reason) {
|
|
568
|
+
case "non-json":
|
|
569
|
+
throw new errors.WebflowError({
|
|
570
|
+
statusCode: _response.error.statusCode,
|
|
571
|
+
body: _response.error.rawBody,
|
|
572
|
+
});
|
|
573
|
+
case "timeout":
|
|
574
|
+
throw new errors.WebflowTimeoutError("Timeout exceeded when calling DELETE /form_submissions/{form_submission_id}.");
|
|
575
|
+
case "unknown":
|
|
576
|
+
throw new errors.WebflowError({
|
|
577
|
+
message: _response.error.errorMessage,
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
});
|
|
581
|
+
}
|
|
475
582
|
/**
|
|
476
583
|
* Update hidden fields on a form submission
|
|
477
584
|
*
|
|
@@ -498,7 +605,7 @@ class Forms {
|
|
|
498
605
|
const _response = yield core.fetcher({
|
|
499
606
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `form_submissions/${encodeURIComponent(formSubmissionId)}`),
|
|
500
607
|
method: "PATCH",
|
|
501
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.
|
|
608
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
502
609
|
contentType: "application/json",
|
|
503
610
|
requestType: "json",
|
|
504
611
|
body: serializers.FormsUpdateSubmissionRequest.jsonOrThrow(request, {
|
|
@@ -581,6 +688,123 @@ class Forms {
|
|
|
581
688
|
}
|
|
582
689
|
});
|
|
583
690
|
}
|
|
691
|
+
/**
|
|
692
|
+
* List form submissions for a given site. This endpoint differs from the existing [List Form Submissions endpoint](/data/reference/forms/form-submissions/list-submissions) by accepting `siteId` as a path parameter and `elementId` as a query parameter. You can get the `elementId` from the [List forms endpoint](/data/reference/forms/forms/list).
|
|
693
|
+
*
|
|
694
|
+
*
|
|
695
|
+
*
|
|
696
|
+
* Required scope | `forms:read`
|
|
697
|
+
*
|
|
698
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
699
|
+
* @param {Webflow.FormsListSubmissionsBySiteRequest} request
|
|
700
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
701
|
+
*
|
|
702
|
+
* @throws {@link Webflow.BadRequestError}
|
|
703
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
704
|
+
* @throws {@link Webflow.ForbiddenError}
|
|
705
|
+
* @throws {@link Webflow.NotFoundError}
|
|
706
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
707
|
+
* @throws {@link Webflow.InternalServerError}
|
|
708
|
+
*
|
|
709
|
+
* @example
|
|
710
|
+
* await client.forms.listSubmissionsBySite("580e63e98c9a982ac9b8b741", {
|
|
711
|
+
* elementId: "18259716-3e5a-646a-5f41-5dc4b9405aa0"
|
|
712
|
+
* })
|
|
713
|
+
*/
|
|
714
|
+
listSubmissionsBySite(siteId, request = {}, requestOptions) {
|
|
715
|
+
var _a;
|
|
716
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
717
|
+
const { elementId, offset, limit } = request;
|
|
718
|
+
const _queryParams = {};
|
|
719
|
+
if (elementId != null) {
|
|
720
|
+
_queryParams["elementId"] = elementId;
|
|
721
|
+
}
|
|
722
|
+
if (offset != null) {
|
|
723
|
+
_queryParams["offset"] = offset.toString();
|
|
724
|
+
}
|
|
725
|
+
if (limit != null) {
|
|
726
|
+
_queryParams["limit"] = limit.toString();
|
|
727
|
+
}
|
|
728
|
+
const _response = yield core.fetcher({
|
|
729
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/form_submissions`),
|
|
730
|
+
method: "GET",
|
|
731
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
732
|
+
contentType: "application/json",
|
|
733
|
+
queryParameters: _queryParams,
|
|
734
|
+
requestType: "json",
|
|
735
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
736
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
737
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
738
|
+
});
|
|
739
|
+
if (_response.ok) {
|
|
740
|
+
return serializers.FormSubmissionList.parseOrThrow(_response.body, {
|
|
741
|
+
unrecognizedObjectKeys: "passthrough",
|
|
742
|
+
allowUnrecognizedUnionMembers: true,
|
|
743
|
+
allowUnrecognizedEnumValues: true,
|
|
744
|
+
skipValidation: true,
|
|
745
|
+
breadcrumbsPrefix: ["response"],
|
|
746
|
+
});
|
|
747
|
+
}
|
|
748
|
+
if (_response.error.reason === "status-code") {
|
|
749
|
+
switch (_response.error.statusCode) {
|
|
750
|
+
case 400:
|
|
751
|
+
throw new Webflow.BadRequestError(_response.error.body);
|
|
752
|
+
case 401:
|
|
753
|
+
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
754
|
+
unrecognizedObjectKeys: "passthrough",
|
|
755
|
+
allowUnrecognizedUnionMembers: true,
|
|
756
|
+
allowUnrecognizedEnumValues: true,
|
|
757
|
+
skipValidation: true,
|
|
758
|
+
breadcrumbsPrefix: ["response"],
|
|
759
|
+
}));
|
|
760
|
+
case 403:
|
|
761
|
+
throw new Webflow.ForbiddenError(_response.error.body);
|
|
762
|
+
case 404:
|
|
763
|
+
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
764
|
+
unrecognizedObjectKeys: "passthrough",
|
|
765
|
+
allowUnrecognizedUnionMembers: true,
|
|
766
|
+
allowUnrecognizedEnumValues: true,
|
|
767
|
+
skipValidation: true,
|
|
768
|
+
breadcrumbsPrefix: ["response"],
|
|
769
|
+
}));
|
|
770
|
+
case 429:
|
|
771
|
+
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
772
|
+
unrecognizedObjectKeys: "passthrough",
|
|
773
|
+
allowUnrecognizedUnionMembers: true,
|
|
774
|
+
allowUnrecognizedEnumValues: true,
|
|
775
|
+
skipValidation: true,
|
|
776
|
+
breadcrumbsPrefix: ["response"],
|
|
777
|
+
}));
|
|
778
|
+
case 500:
|
|
779
|
+
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
780
|
+
unrecognizedObjectKeys: "passthrough",
|
|
781
|
+
allowUnrecognizedUnionMembers: true,
|
|
782
|
+
allowUnrecognizedEnumValues: true,
|
|
783
|
+
skipValidation: true,
|
|
784
|
+
breadcrumbsPrefix: ["response"],
|
|
785
|
+
}));
|
|
786
|
+
default:
|
|
787
|
+
throw new errors.WebflowError({
|
|
788
|
+
statusCode: _response.error.statusCode,
|
|
789
|
+
body: _response.error.body,
|
|
790
|
+
});
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
switch (_response.error.reason) {
|
|
794
|
+
case "non-json":
|
|
795
|
+
throw new errors.WebflowError({
|
|
796
|
+
statusCode: _response.error.statusCode,
|
|
797
|
+
body: _response.error.rawBody,
|
|
798
|
+
});
|
|
799
|
+
case "timeout":
|
|
800
|
+
throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /sites/{site_id}/form_submissions.");
|
|
801
|
+
case "unknown":
|
|
802
|
+
throw new errors.WebflowError({
|
|
803
|
+
message: _response.error.errorMessage,
|
|
804
|
+
});
|
|
805
|
+
}
|
|
806
|
+
});
|
|
807
|
+
}
|
|
584
808
|
_getAuthorizationHeader() {
|
|
585
809
|
return __awaiter(this, void 0, void 0, function* () {
|
|
586
810
|
return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
|