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
|
@@ -8,7 +8,7 @@ types:
|
|
|
8
8
|
name: CreatedOnDescending
|
|
9
9
|
docs: Sorts users in descending order based on their created date
|
|
10
10
|
source:
|
|
11
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
11
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
12
12
|
imports:
|
|
13
13
|
root: __package__.yml
|
|
14
14
|
service:
|
|
@@ -24,7 +24,7 @@ service:
|
|
|
24
24
|
|
|
25
25
|
Required scope | `users:read`
|
|
26
26
|
source:
|
|
27
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
27
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
28
28
|
path-parameters:
|
|
29
29
|
site_id:
|
|
30
30
|
type: string
|
|
@@ -49,6 +49,7 @@ service:
|
|
|
49
49
|
response:
|
|
50
50
|
docs: Request was successful
|
|
51
51
|
type: root.AccessGroupList
|
|
52
|
+
status-code: 200
|
|
52
53
|
errors:
|
|
53
54
|
- root.BadRequestError
|
|
54
55
|
- root.UnauthorizedError
|
|
@@ -77,4 +78,4 @@ service:
|
|
|
77
78
|
slug: admin
|
|
78
79
|
createdOn: '2022-08-01T19:41:48Z'
|
|
79
80
|
source:
|
|
80
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
81
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
@@ -9,11 +9,11 @@ service:
|
|
|
9
9
|
method: GET
|
|
10
10
|
auth: true
|
|
11
11
|
docs: |
|
|
12
|
-
List assets
|
|
12
|
+
List of assets uploaded to a site
|
|
13
13
|
|
|
14
14
|
Required scope | `assets:read`
|
|
15
15
|
source:
|
|
16
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
16
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
17
17
|
path-parameters:
|
|
18
18
|
site_id:
|
|
19
19
|
type: string
|
|
@@ -22,6 +22,7 @@ service:
|
|
|
22
22
|
response:
|
|
23
23
|
docs: Request was successful
|
|
24
24
|
type: root.Assets
|
|
25
|
+
status-code: 200
|
|
25
26
|
errors:
|
|
26
27
|
- root.BadRequestError
|
|
27
28
|
- root.UnauthorizedError
|
|
@@ -55,35 +56,64 @@ service:
|
|
|
55
56
|
width: 500
|
|
56
57
|
height: 900
|
|
57
58
|
quality: 100
|
|
58
|
-
altText: A
|
|
59
|
+
altText: A single candy wrapper
|
|
60
|
+
- id: 63e5889e7fe4eafa7384cea5
|
|
61
|
+
contentType: image/png
|
|
62
|
+
size: 2212772
|
|
63
|
+
siteId: 63938b302ea6b0aa6f3d8745
|
|
64
|
+
hostedUrl: >-
|
|
65
|
+
https://s3.amazonaws.com/webflow-prod-assets/63938b302ea6b0aa6f3d8745/63e5889e7fe4eafa7384cea4_Vectors-Wrapper.svg
|
|
66
|
+
originalFileName: Gum-Wrapper.svg
|
|
67
|
+
displayName: 63e5889e7fe4eafa7384cea5_Gum-Wrapper.png
|
|
68
|
+
lastUpdated: '2023-03-01T23:42:57Z'
|
|
69
|
+
createdOn: '2023-02-09T23:58:22Z'
|
|
70
|
+
variants:
|
|
71
|
+
- hostedUrl: >-
|
|
72
|
+
https://s3.amazonaws.com/webflow-prod-assets/6258612d1ee792848f805dcf/660d83ce30f3a599ddb0bdb3_Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
|
|
73
|
+
originalFileName: >-
|
|
74
|
+
Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
|
|
75
|
+
displayName: >-
|
|
76
|
+
660d83ce30f3a599ddb0bdb3_Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
|
|
77
|
+
format: png
|
|
78
|
+
width: 500
|
|
79
|
+
height: 900
|
|
80
|
+
quality: 100
|
|
81
|
+
altText: A single gum wrapper
|
|
82
|
+
pagination:
|
|
83
|
+
limit: 2
|
|
84
|
+
offset: 0
|
|
85
|
+
total: 2
|
|
59
86
|
create:
|
|
60
87
|
path: /sites/{site_id}/assets
|
|
61
88
|
method: POST
|
|
62
89
|
auth: true
|
|
63
90
|
docs: >
|
|
64
|
-
|
|
91
|
+
The first step in uploading an asset to a site.
|
|
65
92
|
|
|
66
93
|
|
|
67
94
|
|
|
68
95
|
This endpoint generates a response with the following information:
|
|
69
|
-
`uploadUrl` and `uploadDetails`.
|
|
96
|
+
`uploadUrl` and `uploadDetails`.
|
|
70
97
|
|
|
71
|
-
You can use these two properties to [upload the file to Amazon s3 by
|
|
72
|
-
making a
|
|
73
|
-
POST](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html)
|
|
74
98
|
|
|
75
|
-
request to the `uploadUrl` with the `uploadDetails` object as your
|
|
76
|
-
header information in the request.
|
|
77
99
|
|
|
78
|
-
|
|
79
|
-
|
|
100
|
+
Use these properties in the header of a [POST request to Amazson
|
|
101
|
+
s3](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html)
|
|
102
|
+
to complete the upload.
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
To learn more about how to upload assets to Webflow, see our [assets
|
|
107
|
+
guide](/data/docs/working-with-assets).
|
|
108
|
+
|
|
109
|
+
Required scope | `assets:write`
|
|
80
110
|
source:
|
|
81
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
111
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
82
112
|
path-parameters:
|
|
83
113
|
site_id:
|
|
84
114
|
type: string
|
|
85
115
|
docs: Unique identifier for a Site
|
|
86
|
-
display-name:
|
|
116
|
+
display-name: Upload Asset
|
|
87
117
|
request:
|
|
88
118
|
name: AssetsCreateRequest
|
|
89
119
|
body:
|
|
@@ -103,6 +133,7 @@ service:
|
|
|
103
133
|
response:
|
|
104
134
|
docs: Request was successful
|
|
105
135
|
type: root.AssetUpload
|
|
136
|
+
status-code: 200
|
|
106
137
|
errors:
|
|
107
138
|
- root.BadRequestError
|
|
108
139
|
- root.UnauthorizedError
|
|
@@ -146,11 +177,11 @@ service:
|
|
|
146
177
|
method: GET
|
|
147
178
|
auth: true
|
|
148
179
|
docs: |
|
|
149
|
-
Get an
|
|
180
|
+
Get details about an asset
|
|
150
181
|
|
|
151
182
|
Required scope | `assets:read`
|
|
152
183
|
source:
|
|
153
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
184
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
154
185
|
path-parameters:
|
|
155
186
|
asset_id:
|
|
156
187
|
type: string
|
|
@@ -159,6 +190,7 @@ service:
|
|
|
159
190
|
response:
|
|
160
191
|
docs: Request was successful
|
|
161
192
|
type: root.Asset
|
|
193
|
+
status-code: 200
|
|
162
194
|
errors:
|
|
163
195
|
- root.BadRequestError
|
|
164
196
|
- root.UnauthorizedError
|
|
@@ -170,25 +202,27 @@ service:
|
|
|
170
202
|
asset_id: 580e63fc8c9a982ac9b8b745
|
|
171
203
|
response:
|
|
172
204
|
body:
|
|
173
|
-
id:
|
|
205
|
+
id: 63e5889e7fe4eafa7384cea4
|
|
174
206
|
contentType: image/png
|
|
175
|
-
size:
|
|
176
|
-
siteId:
|
|
177
|
-
hostedUrl:
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
207
|
+
size: 2212772
|
|
208
|
+
siteId: 63938b302ea6b0aa6f3d8745
|
|
209
|
+
hostedUrl: >-
|
|
210
|
+
https://s3.amazonaws.com/webflow-prod-assets/63938b302ea6b0aa6f3d8745/63e5889e7fe4eafa7384cea4_Vectors-Wrapper.svg
|
|
211
|
+
originalFileName: Candy-Wrapper.svg
|
|
212
|
+
displayName: 63e5889e7fe4eafa7384cea4_Candy-Wrapper.png
|
|
213
|
+
lastUpdated: '2023-03-01T23:42:57Z'
|
|
214
|
+
createdOn: '2023-02-09T23:58:22Z'
|
|
182
215
|
variants:
|
|
183
|
-
- hostedUrl:
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
216
|
+
- hostedUrl: >-
|
|
217
|
+
https://s3.amazonaws.com/webflow-prod-assets/6258612d1ee792848f805dcf/660d83ce30f3a599ddb0bdb3_Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
|
|
218
|
+
originalFileName: Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
|
|
219
|
+
displayName: >-
|
|
220
|
+
660d83ce30f3a599ddb0bdb3_Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
|
|
221
|
+
format: png
|
|
222
|
+
width: 500
|
|
188
223
|
height: 900
|
|
189
|
-
quality:
|
|
190
|
-
|
|
191
|
-
altText: A red chair
|
|
224
|
+
quality: 100
|
|
225
|
+
altText: A single candy wrapper
|
|
192
226
|
delete:
|
|
193
227
|
path: /assets/{asset_id}
|
|
194
228
|
method: DELETE
|
|
@@ -198,7 +232,7 @@ service:
|
|
|
198
232
|
|
|
199
233
|
Required Scope: `assets: write`
|
|
200
234
|
source:
|
|
201
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
235
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
202
236
|
path-parameters:
|
|
203
237
|
asset_id:
|
|
204
238
|
type: string
|
|
@@ -218,11 +252,11 @@ service:
|
|
|
218
252
|
method: PATCH
|
|
219
253
|
auth: true
|
|
220
254
|
docs: |
|
|
221
|
-
Update an Asset
|
|
255
|
+
Update details of an Asset.
|
|
222
256
|
|
|
223
257
|
Required scope | `assets:write`
|
|
224
258
|
source:
|
|
225
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
259
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
226
260
|
path-parameters:
|
|
227
261
|
asset_id:
|
|
228
262
|
type: string
|
|
@@ -244,6 +278,7 @@ service:
|
|
|
244
278
|
response:
|
|
245
279
|
docs: Request was successful
|
|
246
280
|
type: root.Asset
|
|
281
|
+
status-code: 200
|
|
247
282
|
errors:
|
|
248
283
|
- root.BadRequestError
|
|
249
284
|
- root.UnauthorizedError
|
|
@@ -256,25 +291,27 @@ service:
|
|
|
256
291
|
request: {}
|
|
257
292
|
response:
|
|
258
293
|
body:
|
|
259
|
-
id:
|
|
294
|
+
id: 63e5889e7fe4eafa7384cea4
|
|
260
295
|
contentType: image/png
|
|
261
|
-
size:
|
|
262
|
-
siteId:
|
|
263
|
-
hostedUrl:
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
296
|
+
size: 2212772
|
|
297
|
+
siteId: 63938b302ea6b0aa6f3d8745
|
|
298
|
+
hostedUrl: >-
|
|
299
|
+
https://s3.amazonaws.com/webflow-prod-assets/63938b302ea6b0aa6f3d8745/63e5889e7fe4eafa7384cea4_Vectors-Wrapper.svg
|
|
300
|
+
originalFileName: Candy-Wrapper.svg
|
|
301
|
+
displayName: 63e5889e7fe4eafa7384cea4_Candy-Wrapper.png
|
|
302
|
+
lastUpdated: '2023-03-01T23:42:57Z'
|
|
303
|
+
createdOn: '2023-02-09T23:58:22Z'
|
|
268
304
|
variants:
|
|
269
|
-
- hostedUrl:
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
305
|
+
- hostedUrl: >-
|
|
306
|
+
https://s3.amazonaws.com/webflow-prod-assets/6258612d1ee792848f805dcf/660d83ce30f3a599ddb0bdb3_Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
|
|
307
|
+
originalFileName: Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
|
|
308
|
+
displayName: >-
|
|
309
|
+
660d83ce30f3a599ddb0bdb3_Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
|
|
310
|
+
format: png
|
|
311
|
+
width: 500
|
|
274
312
|
height: 900
|
|
275
|
-
quality:
|
|
276
|
-
|
|
277
|
-
altText: A red chair
|
|
313
|
+
quality: 100
|
|
314
|
+
altText: A single candy wrapper
|
|
278
315
|
list-folders:
|
|
279
316
|
path: /sites/{site_id}/asset_folders
|
|
280
317
|
method: GET
|
|
@@ -284,7 +321,7 @@ service:
|
|
|
284
321
|
|
|
285
322
|
Required scope | `assets:read`
|
|
286
323
|
source:
|
|
287
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
324
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
288
325
|
path-parameters:
|
|
289
326
|
site_id:
|
|
290
327
|
type: string
|
|
@@ -293,6 +330,7 @@ service:
|
|
|
293
330
|
response:
|
|
294
331
|
docs: Request was successful
|
|
295
332
|
type: root.AssetFolderList
|
|
333
|
+
status-code: 200
|
|
296
334
|
errors:
|
|
297
335
|
- root.BadRequestError
|
|
298
336
|
- root.UnauthorizedError
|
|
@@ -307,7 +345,6 @@ service:
|
|
|
307
345
|
assetFolders:
|
|
308
346
|
- id: 6390c49774a71f0e3c1a08ee
|
|
309
347
|
displayName: emoji icons
|
|
310
|
-
parentFolder: 6390c49774a71f99f21a08eb
|
|
311
348
|
assets:
|
|
312
349
|
- 63e5889e7fe4eafa7384cea4
|
|
313
350
|
- 659595234426a9fcbad57043
|
|
@@ -327,7 +364,7 @@ service:
|
|
|
327
364
|
|
|
328
365
|
Required scope | `assets:write`
|
|
329
366
|
source:
|
|
330
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
367
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
331
368
|
path-parameters:
|
|
332
369
|
site_id:
|
|
333
370
|
type: string
|
|
@@ -349,6 +386,7 @@ service:
|
|
|
349
386
|
response:
|
|
350
387
|
docs: Request was successful
|
|
351
388
|
type: root.AssetFolder
|
|
389
|
+
status-code: 200
|
|
352
390
|
errors:
|
|
353
391
|
- root.BadRequestError
|
|
354
392
|
- root.UnauthorizedError
|
|
@@ -380,7 +418,7 @@ service:
|
|
|
380
418
|
|
|
381
419
|
Required scope | `assets:read`
|
|
382
420
|
source:
|
|
383
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
421
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
384
422
|
path-parameters:
|
|
385
423
|
asset_folder_id:
|
|
386
424
|
type: string
|
|
@@ -389,6 +427,7 @@ service:
|
|
|
389
427
|
response:
|
|
390
428
|
docs: Request was successful
|
|
391
429
|
type: root.AssetFolder
|
|
430
|
+
status-code: 200
|
|
392
431
|
errors:
|
|
393
432
|
- root.BadRequestError
|
|
394
433
|
- root.UnauthorizedError
|
|
@@ -410,5 +449,6 @@ service:
|
|
|
410
449
|
createdOn: '2018-10-14T21:55:49Z'
|
|
411
450
|
lastUpdated: '2022-12-07T16:51:37Z'
|
|
412
451
|
source:
|
|
413
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
452
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
414
453
|
display-name: Assets
|
|
454
|
+
docs: Assets are files that are uploaded to your Webflow account.
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
types:
|
|
2
|
-
FieldCreateType:
|
|
3
|
-
enum:
|
|
4
|
-
- PlainText
|
|
5
|
-
- RichText
|
|
6
|
-
- Image
|
|
7
|
-
- MultiImage
|
|
8
|
-
- Video
|
|
9
|
-
- Link
|
|
10
|
-
- Email
|
|
11
|
-
- Phone
|
|
12
|
-
- Number
|
|
13
|
-
- DateTime
|
|
14
|
-
- Switch
|
|
15
|
-
- Color
|
|
16
|
-
- File
|
|
17
|
-
docs: Choose these appropriate field type for your collection data
|
|
18
|
-
source:
|
|
19
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
20
1
|
imports:
|
|
21
2
|
root: ../__package__.yml
|
|
22
3
|
service:
|
|
@@ -28,7 +9,7 @@ service:
|
|
|
28
9
|
method: POST
|
|
29
10
|
auth: true
|
|
30
11
|
docs: >
|
|
31
|
-
Create a custom field in a collection.
|
|
12
|
+
Create a custom field in a collection.
|
|
32
13
|
|
|
33
14
|
|
|
34
15
|
Slugs must be all lowercase letters without spaces.
|
|
@@ -38,63 +19,100 @@ service:
|
|
|
38
19
|
|
|
39
20
|
convert the slug to lowercase and replace spaces with "-."
|
|
40
21
|
|
|
41
|
-
|
|
42
|
-
Only some field types can be created through the API.
|
|
43
|
-
|
|
44
|
-
This endpoint does not currently support bulk creation.
|
|
22
|
+
This endpoint does not currently support bulk creation.
|
|
45
23
|
|
|
46
24
|
|
|
47
25
|
Required scope | `cms:write`
|
|
48
26
|
source:
|
|
49
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
27
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
50
28
|
path-parameters:
|
|
51
29
|
collection_id:
|
|
52
30
|
type: string
|
|
53
31
|
docs: Unique identifier for a Collection
|
|
54
32
|
display-name: Create Collection Field
|
|
55
33
|
request:
|
|
56
|
-
|
|
57
|
-
body:
|
|
58
|
-
properties:
|
|
59
|
-
isRequired:
|
|
60
|
-
type: optional<boolean>
|
|
61
|
-
docs: define whether a field is required in a collection
|
|
62
|
-
type:
|
|
63
|
-
type: FieldCreateType
|
|
64
|
-
docs: Choose these appropriate field type for your collection data
|
|
65
|
-
displayName:
|
|
66
|
-
type: string
|
|
67
|
-
docs: The name of a field
|
|
68
|
-
helpText:
|
|
69
|
-
type: optional<string>
|
|
70
|
-
docs: Additional text to help anyone filling out this field
|
|
34
|
+
body: root.FieldCreate
|
|
71
35
|
content-type: application/json
|
|
72
36
|
response:
|
|
73
37
|
docs: Request was successful
|
|
74
|
-
type: root.
|
|
38
|
+
type: root.FieldCreate
|
|
39
|
+
status-code: 200
|
|
75
40
|
errors:
|
|
76
41
|
- root.BadRequestError
|
|
77
42
|
- root.UnauthorizedError
|
|
78
43
|
- root.NotFoundError
|
|
44
|
+
- root.ConflictError
|
|
79
45
|
- root.TooManyRequestsError
|
|
80
46
|
- root.InternalServerError
|
|
81
47
|
examples:
|
|
82
|
-
-
|
|
48
|
+
- name: StaticField
|
|
49
|
+
path-parameters:
|
|
83
50
|
collection_id: 580e63fc8c9a982ac9b8b745
|
|
84
51
|
request:
|
|
52
|
+
id: 562ac0395358780a1f5e6fbc
|
|
53
|
+
isEditable: true
|
|
85
54
|
isRequired: false
|
|
86
55
|
type: RichText
|
|
87
56
|
displayName: Post Body
|
|
88
57
|
helpText: Add the body of your post here
|
|
89
58
|
response:
|
|
90
59
|
body:
|
|
91
|
-
id:
|
|
92
|
-
isRequired: false
|
|
60
|
+
id: 562ac0395358780a1f5e6fbc
|
|
93
61
|
isEditable: true
|
|
62
|
+
isRequired: false
|
|
94
63
|
type: RichText
|
|
95
|
-
slug: post-body
|
|
96
64
|
displayName: Post Body
|
|
97
65
|
helpText: Add the body of your post here
|
|
66
|
+
- name: OptionField
|
|
67
|
+
path-parameters:
|
|
68
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
69
|
+
request:
|
|
70
|
+
id: 562ac0395358780a1f5e6fbc
|
|
71
|
+
isEditable: true
|
|
72
|
+
isRequired: false
|
|
73
|
+
type: Option
|
|
74
|
+
displayName: Post Type
|
|
75
|
+
helpText: Add the body of your post here
|
|
76
|
+
metadata:
|
|
77
|
+
options:
|
|
78
|
+
- name: Feature
|
|
79
|
+
- name: News
|
|
80
|
+
- name: Product Highlight
|
|
81
|
+
response:
|
|
82
|
+
body:
|
|
83
|
+
id: 562ac0395358780a1f5e6fbc
|
|
84
|
+
isEditable: true
|
|
85
|
+
isRequired: false
|
|
86
|
+
type: Option
|
|
87
|
+
displayName: Post Type
|
|
88
|
+
helpText: Add the body of your post here
|
|
89
|
+
metadata:
|
|
90
|
+
options:
|
|
91
|
+
- name: Feature
|
|
92
|
+
- name: News
|
|
93
|
+
- name: Product Highlight
|
|
94
|
+
- name: ReferenceField
|
|
95
|
+
path-parameters:
|
|
96
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
97
|
+
request:
|
|
98
|
+
id: 562ac0395358780a1f5e6fbd
|
|
99
|
+
isEditable: true
|
|
100
|
+
isRequired: false
|
|
101
|
+
type: Reference
|
|
102
|
+
displayName: Author
|
|
103
|
+
helpText: Add the post author here
|
|
104
|
+
metadata:
|
|
105
|
+
collectionId: 63692ab61fb2852f582ba8f5
|
|
106
|
+
response:
|
|
107
|
+
body:
|
|
108
|
+
id: 562ac0395358780a1f5e6fbd
|
|
109
|
+
isEditable: true
|
|
110
|
+
isRequired: false
|
|
111
|
+
type: Reference
|
|
112
|
+
displayName: Author
|
|
113
|
+
helpText: Add the post author here
|
|
114
|
+
metadata:
|
|
115
|
+
collectionId: 63692ab61fb2852f582ba8f5
|
|
98
116
|
delete:
|
|
99
117
|
path: /collections/{collection_id}/fields/{field_id}
|
|
100
118
|
method: DELETE
|
|
@@ -106,7 +124,7 @@ service:
|
|
|
106
124
|
|
|
107
125
|
Required scope | `cms:write`
|
|
108
126
|
source:
|
|
109
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
127
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
110
128
|
path-parameters:
|
|
111
129
|
collection_id:
|
|
112
130
|
type: string
|
|
@@ -134,7 +152,7 @@ service:
|
|
|
134
152
|
|
|
135
153
|
Required scope | `cms:write`
|
|
136
154
|
source:
|
|
137
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
155
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
138
156
|
path-parameters:
|
|
139
157
|
collection_id:
|
|
140
158
|
type: string
|
|
@@ -160,6 +178,7 @@ service:
|
|
|
160
178
|
response:
|
|
161
179
|
docs: Request was successful
|
|
162
180
|
type: root.Field
|
|
181
|
+
status-code: 200
|
|
163
182
|
errors:
|
|
164
183
|
- root.BadRequestError
|
|
165
184
|
- root.UnauthorizedError
|
|
@@ -184,4 +203,4 @@ service:
|
|
|
184
203
|
displayName: Post Body
|
|
185
204
|
helpText: Add the body of your post here
|
|
186
205
|
source:
|
|
187
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
206
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|