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
|
@@ -13,7 +13,7 @@ service:
|
|
|
13
13
|
|
|
14
14
|
Required scope | `cms: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.CollectionList
|
|
25
|
+
status-code: 200
|
|
25
26
|
errors:
|
|
26
27
|
- root.BadRequestError
|
|
27
28
|
- root.UnauthorizedError
|
|
@@ -61,7 +62,7 @@ service:
|
|
|
61
62
|
|
|
62
63
|
Required scope | `cms:write`
|
|
63
64
|
source:
|
|
64
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
65
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
65
66
|
path-parameters:
|
|
66
67
|
site_id:
|
|
67
68
|
type: string
|
|
@@ -80,14 +81,19 @@ service:
|
|
|
80
81
|
slug:
|
|
81
82
|
type: optional<string>
|
|
82
83
|
docs: Part of a URL that identifier
|
|
84
|
+
fields:
|
|
85
|
+
type: optional<list<root.FieldCreate>>
|
|
86
|
+
docs: An array of custom fields to add to the collection
|
|
83
87
|
content-type: application/json
|
|
84
88
|
response:
|
|
85
89
|
docs: Request was successful
|
|
86
90
|
type: root.Collection
|
|
91
|
+
status-code: 200
|
|
87
92
|
errors:
|
|
88
93
|
- root.BadRequestError
|
|
89
94
|
- root.UnauthorizedError
|
|
90
95
|
- root.NotFoundError
|
|
96
|
+
- root.ConflictError
|
|
91
97
|
- root.TooManyRequestsError
|
|
92
98
|
- root.InternalServerError
|
|
93
99
|
examples:
|
|
@@ -97,22 +103,51 @@ service:
|
|
|
97
103
|
displayName: Blog Posts
|
|
98
104
|
singularName: Blog Post
|
|
99
105
|
slug: posts
|
|
106
|
+
fields:
|
|
107
|
+
- isRequired: true
|
|
108
|
+
type: PlainText
|
|
109
|
+
displayName: Title
|
|
110
|
+
helpText: The title of the blog post
|
|
111
|
+
- isRequired: true
|
|
112
|
+
type: RichText
|
|
113
|
+
displayName: Content
|
|
114
|
+
helpText: The content of the blog post
|
|
115
|
+
- isRequired: true
|
|
116
|
+
type: Reference
|
|
117
|
+
displayName: Author
|
|
118
|
+
helpText: The author of the blog post
|
|
119
|
+
metadata:
|
|
120
|
+
collectionId: 23cc2d952d4e4631ffd4345d2743db4e
|
|
100
121
|
response:
|
|
101
122
|
body:
|
|
102
|
-
id:
|
|
123
|
+
id: 562ac0395358780a1f5e6fbd
|
|
103
124
|
displayName: Blog Posts
|
|
104
125
|
singularName: Blog Post
|
|
105
|
-
slug:
|
|
126
|
+
slug: posts
|
|
106
127
|
createdOn: '2016-10-24T19:41:48Z'
|
|
107
128
|
lastUpdated: '2016-10-24T19:42:38Z'
|
|
108
129
|
fields:
|
|
109
|
-
- id:
|
|
130
|
+
- id: id
|
|
110
131
|
isRequired: true
|
|
111
132
|
isEditable: true
|
|
112
133
|
type: PlainText
|
|
113
|
-
slug:
|
|
114
|
-
displayName:
|
|
115
|
-
helpText:
|
|
134
|
+
slug: title
|
|
135
|
+
displayName: Title
|
|
136
|
+
helpText: The title of the blog post
|
|
137
|
+
- id: id
|
|
138
|
+
isRequired: true
|
|
139
|
+
isEditable: true
|
|
140
|
+
type: RichText
|
|
141
|
+
slug: content
|
|
142
|
+
displayName: Content
|
|
143
|
+
helpText: The content of the blog post
|
|
144
|
+
- id: id
|
|
145
|
+
isRequired: true
|
|
146
|
+
isEditable: true
|
|
147
|
+
type: Reference
|
|
148
|
+
slug: author
|
|
149
|
+
displayName: Author
|
|
150
|
+
helpText: The author of the blog post
|
|
116
151
|
get:
|
|
117
152
|
path: /collections/{collection_id}
|
|
118
153
|
method: GET
|
|
@@ -122,7 +157,7 @@ service:
|
|
|
122
157
|
|
|
123
158
|
Required scope | `cms:read`
|
|
124
159
|
source:
|
|
125
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
160
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
126
161
|
path-parameters:
|
|
127
162
|
collection_id:
|
|
128
163
|
type: string
|
|
@@ -131,6 +166,7 @@ service:
|
|
|
131
166
|
response:
|
|
132
167
|
docs: Request was successful
|
|
133
168
|
type: root.Collection
|
|
169
|
+
status-code: 200
|
|
134
170
|
errors:
|
|
135
171
|
- root.BadRequestError
|
|
136
172
|
- root.UnauthorizedError
|
|
@@ -155,7 +191,6 @@ service:
|
|
|
155
191
|
type: PlainText
|
|
156
192
|
slug: name
|
|
157
193
|
displayName: Name
|
|
158
|
-
helpText: helpText
|
|
159
194
|
delete:
|
|
160
195
|
path: /collections/{collection_id}
|
|
161
196
|
method: DELETE
|
|
@@ -165,7 +200,7 @@ service:
|
|
|
165
200
|
|
|
166
201
|
Required scope | `cms:write`
|
|
167
202
|
source:
|
|
168
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
203
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
169
204
|
path-parameters:
|
|
170
205
|
collection_id:
|
|
171
206
|
type: string
|
|
@@ -181,5 +216,6 @@ service:
|
|
|
181
216
|
- path-parameters:
|
|
182
217
|
collection_id: 580e63fc8c9a982ac9b8b745
|
|
183
218
|
source:
|
|
184
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
219
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
185
220
|
display-name: Collections
|
|
221
|
+
docs: Collections are CMS collections of items.
|
|
@@ -0,0 +1,479 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: __package__.yml
|
|
3
|
+
service:
|
|
4
|
+
auth: false
|
|
5
|
+
base-path: ''
|
|
6
|
+
endpoints:
|
|
7
|
+
list:
|
|
8
|
+
path: /sites/{site_id}/components
|
|
9
|
+
method: GET
|
|
10
|
+
auth: true
|
|
11
|
+
docs: |
|
|
12
|
+
List of all components for a site.
|
|
13
|
+
|
|
14
|
+
Required scope | `components:read`
|
|
15
|
+
source:
|
|
16
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
17
|
+
path-parameters:
|
|
18
|
+
site_id:
|
|
19
|
+
type: string
|
|
20
|
+
docs: Unique identifier for a Site
|
|
21
|
+
display-name: List Components
|
|
22
|
+
request:
|
|
23
|
+
name: ComponentsListRequest
|
|
24
|
+
query-parameters:
|
|
25
|
+
limit:
|
|
26
|
+
type: optional<double>
|
|
27
|
+
docs: 'Maximum number of records to be returned (max limit: 100)'
|
|
28
|
+
offset:
|
|
29
|
+
type: optional<double>
|
|
30
|
+
docs: >-
|
|
31
|
+
Offset used for pagination if the results have more than limit
|
|
32
|
+
records
|
|
33
|
+
response:
|
|
34
|
+
docs: Request was successful
|
|
35
|
+
type: root.ComponentList
|
|
36
|
+
status-code: 200
|
|
37
|
+
errors:
|
|
38
|
+
- root.BadRequestError
|
|
39
|
+
- root.UnauthorizedError
|
|
40
|
+
- root.NotFoundError
|
|
41
|
+
- root.TooManyRequestsError
|
|
42
|
+
- root.InternalServerError
|
|
43
|
+
examples:
|
|
44
|
+
- path-parameters:
|
|
45
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
46
|
+
response:
|
|
47
|
+
body:
|
|
48
|
+
components:
|
|
49
|
+
- id: 6596da6045e56dee495bcbba
|
|
50
|
+
name: Primary Button
|
|
51
|
+
group: Buttons
|
|
52
|
+
description: A default button component that can be used across the site
|
|
53
|
+
readonly: true
|
|
54
|
+
- id: 658205daa3e8206a523b5ad4
|
|
55
|
+
name: Secondary Button
|
|
56
|
+
group: Buttons
|
|
57
|
+
description: >-
|
|
58
|
+
A secondary button component that can be used across the
|
|
59
|
+
site
|
|
60
|
+
readonly: true
|
|
61
|
+
- id: 6258612d1ee792848f805dcf
|
|
62
|
+
name: Card
|
|
63
|
+
readonly: true
|
|
64
|
+
- id: 68a2b1d1ee792848f805dcf
|
|
65
|
+
name: Nav
|
|
66
|
+
readonly: true
|
|
67
|
+
pagination:
|
|
68
|
+
limit: 20
|
|
69
|
+
offset: 0
|
|
70
|
+
total: 4
|
|
71
|
+
get-content:
|
|
72
|
+
path: /sites/{site_id}/components/{component_id}/dom
|
|
73
|
+
method: GET
|
|
74
|
+
auth: true
|
|
75
|
+
docs: >
|
|
76
|
+
Get static content from a component definition. This includes text
|
|
77
|
+
nodes, image nodes and nested component instances.
|
|
78
|
+
|
|
79
|
+
To retrieve dynamic content set by component properties, use the [get
|
|
80
|
+
component
|
|
81
|
+
properties](/data/reference/pages-and-components/components/get-properties)
|
|
82
|
+
endpoint.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
<Note>If you do not provide a Locale ID in your request, the response
|
|
86
|
+
will return any content that can be localized from the Primary
|
|
87
|
+
locale.</Note>
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
Required scope | `components:read`
|
|
91
|
+
source:
|
|
92
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
93
|
+
path-parameters:
|
|
94
|
+
site_id:
|
|
95
|
+
type: string
|
|
96
|
+
docs: Unique identifier for a Site
|
|
97
|
+
component_id:
|
|
98
|
+
type: string
|
|
99
|
+
docs: Unique identifier for a Component
|
|
100
|
+
display-name: Get Component Content
|
|
101
|
+
request:
|
|
102
|
+
name: ComponentsGetContentRequest
|
|
103
|
+
query-parameters:
|
|
104
|
+
localeId:
|
|
105
|
+
type: optional<string>
|
|
106
|
+
docs: >-
|
|
107
|
+
Unique identifier for a specific locale. Applicable, when using
|
|
108
|
+
localization.
|
|
109
|
+
limit:
|
|
110
|
+
type: optional<double>
|
|
111
|
+
docs: 'Maximum number of records to be returned (max limit: 100)'
|
|
112
|
+
offset:
|
|
113
|
+
type: optional<double>
|
|
114
|
+
docs: >-
|
|
115
|
+
Offset used for pagination if the results have more than limit
|
|
116
|
+
records
|
|
117
|
+
response:
|
|
118
|
+
docs: Request was successful
|
|
119
|
+
type: root.ComponentDom
|
|
120
|
+
status-code: 200
|
|
121
|
+
errors:
|
|
122
|
+
- root.BadRequestError
|
|
123
|
+
- root.UnauthorizedError
|
|
124
|
+
- root.NotFoundError
|
|
125
|
+
- root.TooManyRequestsError
|
|
126
|
+
- root.InternalServerError
|
|
127
|
+
examples:
|
|
128
|
+
- name: ComponentDOM
|
|
129
|
+
path-parameters:
|
|
130
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
131
|
+
component_id: 8505ba55-ef72-629e-f85c-33e4b703d48b
|
|
132
|
+
query-parameters:
|
|
133
|
+
localeId: 65427cf400e02b306eaa04a0
|
|
134
|
+
response:
|
|
135
|
+
body:
|
|
136
|
+
componentId: 69118560-d0bc-15fc-bbf8-b8fe5f6535b5
|
|
137
|
+
nodes:
|
|
138
|
+
- id: id
|
|
139
|
+
text: {}
|
|
140
|
+
attributes:
|
|
141
|
+
key: value
|
|
142
|
+
type: text
|
|
143
|
+
- id: id
|
|
144
|
+
text: {}
|
|
145
|
+
attributes:
|
|
146
|
+
key: value
|
|
147
|
+
type: text
|
|
148
|
+
- id: id
|
|
149
|
+
image: {}
|
|
150
|
+
attributes:
|
|
151
|
+
key: value
|
|
152
|
+
type: image
|
|
153
|
+
- id: id
|
|
154
|
+
componentId: componentId
|
|
155
|
+
propertyOverrides:
|
|
156
|
+
- propertyId: 7dd14c08-2e96-8d3d-2b19-b5c03642a0f0
|
|
157
|
+
type: component-instance
|
|
158
|
+
pagination:
|
|
159
|
+
limit: 4
|
|
160
|
+
offset: 0
|
|
161
|
+
total: 4
|
|
162
|
+
- name: LocalizedComponentDOM
|
|
163
|
+
path-parameters:
|
|
164
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
165
|
+
component_id: 8505ba55-ef72-629e-f85c-33e4b703d48b
|
|
166
|
+
query-parameters:
|
|
167
|
+
localeId: 65427cf400e02b306eaa04a0
|
|
168
|
+
response:
|
|
169
|
+
body:
|
|
170
|
+
componentId: 69118560-d0bc-15fc-bbf8-b8fe5f6535b5
|
|
171
|
+
nodes:
|
|
172
|
+
- id: id
|
|
173
|
+
image: {}
|
|
174
|
+
attributes:
|
|
175
|
+
key: value
|
|
176
|
+
type: image
|
|
177
|
+
- id: id
|
|
178
|
+
text: {}
|
|
179
|
+
attributes:
|
|
180
|
+
key: value
|
|
181
|
+
type: text
|
|
182
|
+
- id: id
|
|
183
|
+
componentId: componentId
|
|
184
|
+
propertyOverrides:
|
|
185
|
+
- propertyId: 7dd14c08-2e96-8d3d-2b19-b5c03642a0f0
|
|
186
|
+
type: component-instance
|
|
187
|
+
pagination:
|
|
188
|
+
limit: 100
|
|
189
|
+
offset: 0
|
|
190
|
+
total: 3
|
|
191
|
+
update-content:
|
|
192
|
+
path: /sites/{site_id}/components/{component_id}/dom
|
|
193
|
+
method: POST
|
|
194
|
+
auth: true
|
|
195
|
+
docs: >
|
|
196
|
+
This endpoint updates content within a component defintion for
|
|
197
|
+
**secondary locales**. It supports updating up to 1000 nodes in a single
|
|
198
|
+
request.
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
Before making updates:
|
|
202
|
+
|
|
203
|
+
1. Use the [get component
|
|
204
|
+
content](/data/reference/pages-and-components/components/get-content)
|
|
205
|
+
endpoint to identify available content nodes and their types
|
|
206
|
+
|
|
207
|
+
2. If your component definition has a component instance nested within
|
|
208
|
+
it, retrieve the nested component instance's properties that you'll
|
|
209
|
+
override using the [get component
|
|
210
|
+
properties](/data/reference/pages-and-components/components/get-properties)
|
|
211
|
+
endpoint
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
<Note>
|
|
215
|
+
This endpoint is specifically for localizing component definitions. Ensure that the specified `localeId` is a valid **secondary locale** for the site otherwise the request will fail.
|
|
216
|
+
</Note>
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
Required scope | `components:write`
|
|
220
|
+
source:
|
|
221
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
222
|
+
path-parameters:
|
|
223
|
+
site_id:
|
|
224
|
+
type: string
|
|
225
|
+
docs: Unique identifier for a Site
|
|
226
|
+
component_id:
|
|
227
|
+
type: string
|
|
228
|
+
docs: Unique identifier for a Component
|
|
229
|
+
display-name: Update Component Content
|
|
230
|
+
request:
|
|
231
|
+
name: ComponentDomWrite
|
|
232
|
+
query-parameters:
|
|
233
|
+
localeId:
|
|
234
|
+
type: optional<string>
|
|
235
|
+
docs: >-
|
|
236
|
+
Unique identifier for a specific locale. Applicable, when using
|
|
237
|
+
localization.
|
|
238
|
+
body:
|
|
239
|
+
properties:
|
|
240
|
+
nodes:
|
|
241
|
+
docs: >-
|
|
242
|
+
List of DOM Nodes with the new content that will be updated in
|
|
243
|
+
each node.
|
|
244
|
+
type: list<ComponentDomWriteNodesItem>
|
|
245
|
+
content-type: application/json
|
|
246
|
+
response:
|
|
247
|
+
docs: Request was successful
|
|
248
|
+
type: ComponentsUpdateContentResponse
|
|
249
|
+
status-code: 200
|
|
250
|
+
errors:
|
|
251
|
+
- root.BadRequestError
|
|
252
|
+
- root.UnauthorizedError
|
|
253
|
+
- root.ForbiddenError
|
|
254
|
+
- root.NotFoundError
|
|
255
|
+
- root.TooManyRequestsError
|
|
256
|
+
- root.InternalServerError
|
|
257
|
+
examples:
|
|
258
|
+
- path-parameters:
|
|
259
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
260
|
+
component_id: 8505ba55-ef72-629e-f85c-33e4b703d48b
|
|
261
|
+
query-parameters:
|
|
262
|
+
localeId: 65427cf400e02b306eaa04a0
|
|
263
|
+
request:
|
|
264
|
+
nodes:
|
|
265
|
+
- nodeId: a245c12d-995b-55ee-5ec7-aa36a6cad623
|
|
266
|
+
text: <h1>The Hitchhiker's Guide to the Galaxy</h1>
|
|
267
|
+
- nodeId: a245c12d-995b-55ee-5ec7-aa36a6cad627
|
|
268
|
+
text: >-
|
|
269
|
+
<div><h3>Don't Panic!</h3><p>Always know where your towel
|
|
270
|
+
is.</p></div>
|
|
271
|
+
- nodeId: a245c12d-995b-55ee-5ec7-aa36a6cad629
|
|
272
|
+
propertyOverrides:
|
|
273
|
+
- propertyId: 7dd14c08-2e96-8d3d-2b19-b5c03642a0f0
|
|
274
|
+
text: <div><h1>Time is an <em>illusion</em></h1></div>
|
|
275
|
+
- propertyId: 7dd14c08-2e96-8d3d-2b19-b5c03642a0f1
|
|
276
|
+
text: Life, the Universe and Everything
|
|
277
|
+
response:
|
|
278
|
+
body:
|
|
279
|
+
errors:
|
|
280
|
+
- errors
|
|
281
|
+
get-properties:
|
|
282
|
+
path: /sites/{site_id}/components/{component_id}/properties
|
|
283
|
+
method: GET
|
|
284
|
+
auth: true
|
|
285
|
+
docs: >
|
|
286
|
+
Get the default property values of a component definition.
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
<Note>If you do not include a `localeId` in your request, the response
|
|
290
|
+
will return any properties that can be localized from the Primary
|
|
291
|
+
locale.</Note>
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
Required scope | `components:read`
|
|
295
|
+
source:
|
|
296
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
297
|
+
path-parameters:
|
|
298
|
+
site_id:
|
|
299
|
+
type: string
|
|
300
|
+
docs: Unique identifier for a Site
|
|
301
|
+
component_id:
|
|
302
|
+
type: string
|
|
303
|
+
docs: Unique identifier for a Component
|
|
304
|
+
display-name: Get Component Properties
|
|
305
|
+
request:
|
|
306
|
+
name: ComponentsGetPropertiesRequest
|
|
307
|
+
query-parameters:
|
|
308
|
+
localeId:
|
|
309
|
+
type: optional<string>
|
|
310
|
+
docs: >-
|
|
311
|
+
Unique identifier for a specific locale. Applicable, when using
|
|
312
|
+
localization.
|
|
313
|
+
limit:
|
|
314
|
+
type: optional<double>
|
|
315
|
+
docs: 'Maximum number of records to be returned (max limit: 100)'
|
|
316
|
+
offset:
|
|
317
|
+
type: optional<double>
|
|
318
|
+
docs: >-
|
|
319
|
+
Offset used for pagination if the results have more than limit
|
|
320
|
+
records
|
|
321
|
+
response:
|
|
322
|
+
docs: Request was successful
|
|
323
|
+
type: root.ComponentProperties
|
|
324
|
+
status-code: 200
|
|
325
|
+
errors:
|
|
326
|
+
- root.BadRequestError
|
|
327
|
+
- root.UnauthorizedError
|
|
328
|
+
- root.NotFoundError
|
|
329
|
+
- root.TooManyRequestsError
|
|
330
|
+
- root.InternalServerError
|
|
331
|
+
examples:
|
|
332
|
+
- path-parameters:
|
|
333
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
334
|
+
component_id: 8505ba55-ef72-629e-f85c-33e4b703d48b
|
|
335
|
+
query-parameters:
|
|
336
|
+
localeId: 65427cf400e02b306eaa04a0
|
|
337
|
+
response:
|
|
338
|
+
body:
|
|
339
|
+
componentId: 658205daa3e8206a523b5ad4
|
|
340
|
+
properties:
|
|
341
|
+
- propertyId: a245c12d-995b-55ee-5ec7-aa36a6cad623
|
|
342
|
+
type: Plain Text
|
|
343
|
+
label: Title
|
|
344
|
+
text:
|
|
345
|
+
text: The Hitchhiker's Guide to the Galaxy
|
|
346
|
+
- propertyId: a245c12d-995b-55ee-5ec7-aa36a6cad627
|
|
347
|
+
type: Rich Text
|
|
348
|
+
label: Content
|
|
349
|
+
text:
|
|
350
|
+
html: >-
|
|
351
|
+
<div><h3>Don't Panic!</h3><p>Always know where your towel
|
|
352
|
+
is.</p></div>
|
|
353
|
+
pagination:
|
|
354
|
+
limit: 2
|
|
355
|
+
offset: 0
|
|
356
|
+
total: 2
|
|
357
|
+
update-properties:
|
|
358
|
+
path: /sites/{site_id}/components/{component_id}/properties
|
|
359
|
+
method: POST
|
|
360
|
+
auth: true
|
|
361
|
+
docs: >
|
|
362
|
+
Update the default property values of a component definition in a
|
|
363
|
+
specificed locale.
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
Before making updates, use the [get component
|
|
367
|
+
properties](/data/reference/pages-and-components/components/get-properties)
|
|
368
|
+
endpoint to identify properties that can be updated in a secondary
|
|
369
|
+
locale.
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
<Note>The request requires a secondary locale ID. If a `localeId` is
|
|
373
|
+
missing, the request will not be processed and will result in an
|
|
374
|
+
error.</Note>
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
Required scope | `components:write`
|
|
378
|
+
source:
|
|
379
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
380
|
+
path-parameters:
|
|
381
|
+
site_id:
|
|
382
|
+
type: string
|
|
383
|
+
docs: Unique identifier for a Site
|
|
384
|
+
component_id:
|
|
385
|
+
type: string
|
|
386
|
+
docs: Unique identifier for a Component
|
|
387
|
+
display-name: Update Component Properties
|
|
388
|
+
request:
|
|
389
|
+
name: ComponentPropertiesWrite
|
|
390
|
+
query-parameters:
|
|
391
|
+
localeId:
|
|
392
|
+
type: optional<string>
|
|
393
|
+
docs: >-
|
|
394
|
+
Unique identifier for a specific locale. Applicable, when using
|
|
395
|
+
localization.
|
|
396
|
+
body:
|
|
397
|
+
properties:
|
|
398
|
+
properties:
|
|
399
|
+
docs: >-
|
|
400
|
+
A list of component properties to update within the specified
|
|
401
|
+
secondary locale.
|
|
402
|
+
type: list<ComponentPropertiesWritePropertiesItem>
|
|
403
|
+
content-type: application/json
|
|
404
|
+
response:
|
|
405
|
+
docs: Request was successful
|
|
406
|
+
type: ComponentsUpdatePropertiesResponse
|
|
407
|
+
status-code: 200
|
|
408
|
+
errors:
|
|
409
|
+
- root.BadRequestError
|
|
410
|
+
- root.UnauthorizedError
|
|
411
|
+
- root.NotFoundError
|
|
412
|
+
- root.TooManyRequestsError
|
|
413
|
+
- root.InternalServerError
|
|
414
|
+
examples:
|
|
415
|
+
- path-parameters:
|
|
416
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
417
|
+
component_id: 8505ba55-ef72-629e-f85c-33e4b703d48b
|
|
418
|
+
query-parameters:
|
|
419
|
+
localeId: 65427cf400e02b306eaa04a0
|
|
420
|
+
request:
|
|
421
|
+
properties:
|
|
422
|
+
- propertyId: a245c12d-995b-55ee-5ec7-aa36a6cad623
|
|
423
|
+
text: The Hitchhiker’s Guide to the Galaxy
|
|
424
|
+
- propertyId: a245c12d-995b-55ee-5ec7-aa36a6cad627
|
|
425
|
+
text: >-
|
|
426
|
+
<div><h3>Dont Panic!</h3><p>Always know where your towel
|
|
427
|
+
is.</p></div>
|
|
428
|
+
response:
|
|
429
|
+
body:
|
|
430
|
+
errors:
|
|
431
|
+
- errors
|
|
432
|
+
source:
|
|
433
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
434
|
+
types:
|
|
435
|
+
ComponentDomWriteNodesItem:
|
|
436
|
+
discriminated: false
|
|
437
|
+
union:
|
|
438
|
+
- root.TextNodeWrite
|
|
439
|
+
- root.ComponentInstanceNodePropertyOverridesWrite
|
|
440
|
+
source:
|
|
441
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
442
|
+
inline: true
|
|
443
|
+
ComponentsUpdateContentResponse:
|
|
444
|
+
properties:
|
|
445
|
+
errors:
|
|
446
|
+
docs: A list of error messages, if any.
|
|
447
|
+
type: list<string>
|
|
448
|
+
source:
|
|
449
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
450
|
+
ComponentPropertiesWritePropertiesItem:
|
|
451
|
+
properties:
|
|
452
|
+
propertyId:
|
|
453
|
+
type: string
|
|
454
|
+
docs: The ID of the property.
|
|
455
|
+
text:
|
|
456
|
+
type: string
|
|
457
|
+
docs: >
|
|
458
|
+
The new string or HTML value used to update the component property in
|
|
459
|
+
the secondary locale.
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
The provided value must be compatible with the type of the component
|
|
463
|
+
property.
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
For example, attempting to update a single-line plain-text property
|
|
467
|
+
with a multi-line
|
|
468
|
+
|
|
469
|
+
value will result in an error.
|
|
470
|
+
source:
|
|
471
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
472
|
+
inline: true
|
|
473
|
+
ComponentsUpdatePropertiesResponse:
|
|
474
|
+
properties:
|
|
475
|
+
errors:
|
|
476
|
+
docs: A list of error messages, if any.
|
|
477
|
+
type: list<string>
|
|
478
|
+
source:
|
|
479
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
@@ -13,7 +13,7 @@ service:
|
|
|
13
13
|
|
|
14
14
|
Required scope | `ecommerce: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.EcommerceSettings
|
|
25
|
+
status-code: 200
|
|
25
26
|
errors:
|
|
26
27
|
- root.BadRequestError
|
|
27
28
|
- root.UnauthorizedError
|
|
@@ -39,4 +40,4 @@ service:
|
|
|
39
40
|
createdOn: '2018-10-04T15:21:02Z'
|
|
40
41
|
defaultCurrency: USD
|
|
41
42
|
source:
|
|
42
|
-
openapi: ../../../referenced-specs/v2.yml
|
|
43
|
+
openapi: ../../../openapi/referenced-specs/v2.yml
|