webflow-api 3.1.0 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mock/definition/__package__.yml +363 -79
- package/.mock/definition/accessGroups.yml +1 -0
- package/.mock/definition/assets.yml +86 -47
- package/.mock/definition/collections/fields.yml +63 -46
- package/.mock/definition/collections/items.yml +58 -30
- package/.mock/definition/collections.yml +42 -7
- package/.mock/definition/components.yml +43 -50
- package/.mock/definition/ecommerce.yml +1 -0
- package/.mock/definition/forms.yml +114 -2
- package/.mock/definition/inventory.yml +2 -0
- package/.mock/definition/orders.yml +6 -68
- package/.mock/definition/pages/scripts.yml +10 -44
- package/.mock/definition/pages.yml +36 -41
- package/.mock/definition/products.yml +9 -0
- package/.mock/definition/scripts.yml +18 -49
- package/.mock/definition/sites/activityLogs.yml +10 -7
- package/.mock/definition/sites/plans.yml +7 -1
- package/.mock/definition/sites/redirects.yml +24 -1
- package/.mock/definition/sites/robotsTxt.yml +202 -0
- package/.mock/definition/sites/scripts.yml +22 -30
- package/.mock/definition/sites.yml +27 -30
- package/.mock/definition/token.yml +2 -0
- package/.mock/definition/users.yml +4 -0
- package/.mock/definition/webhooks.yml +7 -8
- package/.mock/fern.config.json +1 -1
- package/api/resources/accessGroups/client/Client.js +1 -1
- package/api/resources/assets/client/Client.d.ts +10 -7
- package/api/resources/assets/client/Client.js +18 -15
- package/api/resources/collections/client/Client.d.ts +21 -1
- package/api/resources/collections/client/Client.js +27 -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 +19 -12
- package/api/resources/collections/resources/items/client/Client.js +39 -28
- 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/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
- package/api/resources/components/client/Client.d.ts +5 -6
- package/api/resources/components/client/Client.js +10 -11
- package/api/resources/ecommerce/client/Client.js +1 -1
- package/api/resources/forms/client/Client.d.ts +51 -0
- package/api/resources/forms/client/Client.js +226 -5
- package/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +23 -0
- package/api/resources/forms/client/requests/index.d.ts +1 -0
- package/api/resources/inventory/client/Client.js +2 -2
- package/api/resources/orders/client/Client.js +6 -6
- package/api/resources/pages/client/Client.d.ts +8 -3
- package/api/resources/pages/client/Client.js +13 -8
- package/api/resources/pages/resources/scripts/client/Client.d.ts +6 -20
- package/api/resources/pages/resources/scripts/client/Client.js +9 -23
- package/api/resources/products/client/Client.js +6 -6
- 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 +12 -3
- package/api/resources/sites/client/Client.js +25 -14
- 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 +1 -0
- package/api/resources/sites/resources/index.js +2 -1
- package/api/resources/sites/resources/plans/client/Client.d.ts +2 -0
- package/api/resources/sites/resources/plans/client/Client.js +3 -1
- package/api/resources/sites/resources/redirects/client/Client.d.ts +10 -0
- package/api/resources/sites/resources/redirects/client/Client.js +14 -4
- 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/api/resources/{collections/resources/fields/types → 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.js +2 -2
- package/api/resources/users/client/Client.js +5 -5
- 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.js +4 -4
- 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/ComponentNode.d.ts +2 -2
- package/api/types/Conflict.d.ts +4 -0
- package/api/types/Dom.d.ts +2 -0
- package/api/types/FieldCreate.d.ts +8 -0
- package/api/types/FieldCreate.js +5 -0
- package/api/types/FieldType.d.ts +3 -1
- package/api/types/FieldType.js +2 -0
- package/api/types/ImageNode.d.ts +1 -0
- package/api/types/ImageNodeImage.d.ts +3 -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/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/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/ReferenceFieldType.js +10 -0
- 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/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} +2 -3
- package/{dist/api/resources/collections/resources/fields/types/FieldCreateType.js → api/types/StaticFieldType.js} +2 -3
- package/api/types/Text.d.ts +3 -0
- package/api/types/TextNode.d.ts +1 -0
- package/api/types/TextNodeText.d.ts +3 -0
- package/api/types/TriggerType.d.ts +1 -15
- package/api/types/WebhookList.d.ts +1 -1
- package/api/types/index.d.ts +12 -0
- package/api/types/index.js +12 -0
- package/dist/api/resources/accessGroups/client/Client.js +1 -1
- package/dist/api/resources/assets/client/Client.d.ts +10 -7
- package/dist/api/resources/assets/client/Client.js +18 -15
- package/dist/api/resources/collections/client/Client.d.ts +21 -1
- package/dist/api/resources/collections/client/Client.js +27 -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 +19 -12
- package/dist/api/resources/collections/resources/items/client/Client.js +39 -28
- 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/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
- package/dist/api/resources/components/client/Client.d.ts +5 -6
- package/dist/api/resources/components/client/Client.js +10 -11
- package/dist/api/resources/ecommerce/client/Client.js +1 -1
- package/dist/api/resources/forms/client/Client.d.ts +51 -0
- package/dist/api/resources/forms/client/Client.js +226 -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/inventory/client/Client.js +2 -2
- package/dist/api/resources/orders/client/Client.js +6 -6
- package/dist/api/resources/pages/client/Client.d.ts +8 -3
- package/dist/api/resources/pages/client/Client.js +13 -8
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +6 -20
- package/dist/api/resources/pages/resources/scripts/client/Client.js +9 -23
- package/dist/api/resources/products/client/Client.js +6 -6
- 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 +12 -3
- package/dist/api/resources/sites/client/Client.js +25 -14
- 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 +1 -0
- package/dist/api/resources/sites/resources/index.js +2 -1
- package/dist/api/resources/sites/resources/plans/client/Client.d.ts +2 -0
- package/dist/api/resources/sites/resources/plans/client/Client.js +3 -1
- package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +10 -0
- package/dist/api/resources/sites/resources/redirects/client/Client.js +14 -4
- 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/{serialization/resources/collections/resources/fields/types → api/resources/sites/resources/robotsTxt}/index.js +1 -1
- 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.js +2 -2
- package/dist/api/resources/users/client/Client.js +5 -5
- 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.js +4 -4
- 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/ComponentNode.d.ts +2 -2
- package/dist/api/types/Conflict.d.ts +4 -0
- package/dist/api/types/Conflict.js +5 -0
- package/dist/api/types/Dom.d.ts +2 -0
- package/dist/api/types/FieldCreate.d.ts +8 -0
- package/dist/api/types/FieldCreate.js +5 -0
- package/dist/api/types/FieldType.d.ts +3 -1
- package/dist/api/types/FieldType.js +2 -0
- package/dist/api/types/ImageNode.d.ts +1 -0
- package/dist/api/types/ImageNodeImage.d.ts +3 -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/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/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/ReferenceFieldType.js +10 -0
- 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/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} +2 -3
- package/{api/resources/collections/resources/fields/types/FieldCreateType.js → dist/api/types/StaticFieldType.js} +2 -3
- package/dist/api/types/Text.d.ts +3 -0
- package/dist/api/types/TextNode.d.ts +1 -0
- package/dist/api/types/TextNodeText.d.ts +3 -0
- package/dist/api/types/TriggerType.d.ts +1 -15
- package/dist/api/types/WebhookList.d.ts +1 -1
- package/dist/api/types/index.d.ts +12 -0
- package/dist/api/types/index.js +12 -0
- 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/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +1 -1
- package/dist/serialization/types/Assets.d.ts +2 -0
- package/dist/serialization/types/Assets.js +2 -0
- package/dist/serialization/types/Conflict.d.ts +10 -0
- package/dist/serialization/types/Conflict.js +31 -0
- package/dist/serialization/types/Dom.d.ts +1 -0
- package/dist/serialization/types/Dom.js +1 -0
- 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 +2 -0
- 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/OptionField.d.ts +19 -0
- package/dist/serialization/types/OptionField.js +40 -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/StaticField.d.ts +18 -0
- package/dist/serialization/{resources/collections/resources/fields/client/requests/FieldCreate.js → types/StaticField.js} +7 -5
- package/dist/serialization/types/StaticFieldType.d.ts +10 -0
- package/dist/serialization/{resources/collections/resources/fields/types/FieldCreateType.js → types/StaticFieldType.js} +3 -4
- package/dist/serialization/types/WebhookList.d.ts +2 -2
- package/dist/serialization/types/WebhookList.js +2 -2
- package/dist/serialization/types/index.d.ts +12 -0
- package/dist/serialization/types/index.js +12 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/AssetsClient.d.ts +12 -0
- package/dist/wrapper/AssetsClient.js +16 -0
- package/dist/wrapper/AssetsUtilitiesClient.d.ts +49 -0
- package/dist/wrapper/AssetsUtilitiesClient.js +121 -0
- package/dist/wrapper/WebflowClient.d.ts +6 -0
- package/dist/wrapper/WebflowClient.js +10 -0
- package/dist/wrapper/WebhooksClient.d.ts +39 -0
- package/dist/wrapper/WebhooksClient.js +66 -0
- package/package.json +15 -12
- package/reference.md +585 -91
- 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/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +1 -1
- package/serialization/types/Assets.d.ts +2 -0
- package/serialization/types/Assets.js +2 -0
- package/serialization/types/Conflict.d.ts +10 -0
- package/serialization/types/Conflict.js +31 -0
- package/serialization/types/Dom.d.ts +1 -0
- package/serialization/types/Dom.js +1 -0
- 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 +2 -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/OptionField.d.ts +19 -0
- package/serialization/types/OptionField.js +40 -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/StaticField.d.ts +18 -0
- package/serialization/{resources/collections/resources/fields/client/requests/FieldCreate.js → types/StaticField.js} +7 -5
- package/serialization/types/StaticFieldType.d.ts +10 -0
- package/serialization/{resources/collections/resources/fields/types/FieldCreateType.js → types/StaticFieldType.js} +3 -4
- package/serialization/types/WebhookList.d.ts +2 -2
- package/serialization/types/WebhookList.js +2 -2
- package/serialization/types/index.d.ts +12 -0
- package/serialization/types/index.js +12 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/AssetsClient.d.ts +12 -0
- package/wrapper/AssetsClient.js +16 -0
- package/wrapper/AssetsUtilitiesClient.d.ts +49 -0
- package/wrapper/AssetsUtilitiesClient.js +121 -0
- package/wrapper/WebflowClient.d.ts +6 -0
- package/wrapper/WebflowClient.js +10 -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/dist/api/resources/collections/resources/fields/types/index.d.ts +0 -1
- package/dist/api/resources/collections/resources/fields/types/index.js +0 -17
- 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/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/collections/resources/fields/types/index.js +0 -17
- /package/api/resources/{collections/resources/fields/client/requests/FieldCreate.js → forms/client/requests/FormsListSubmissionsBySiteRequest.js} +0 -0
- /package/{dist/api/resources/collections/resources/fields/client/requests/FieldCreate.js → api/types/Conflict.js} +0 -0
|
@@ -101,7 +101,7 @@ class Pages {
|
|
|
101
101
|
const _response = yield core.fetcher({
|
|
102
102
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/pages`),
|
|
103
103
|
method: "GET",
|
|
104
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
104
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
105
105
|
contentType: "application/json",
|
|
106
106
|
queryParameters: _queryParams,
|
|
107
107
|
requestType: "json",
|
|
@@ -207,7 +207,7 @@ class Pages {
|
|
|
207
207
|
const _response = yield core.fetcher({
|
|
208
208
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${encodeURIComponent(pageId)}`),
|
|
209
209
|
method: "GET",
|
|
210
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
210
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
211
211
|
contentType: "application/json",
|
|
212
212
|
queryParameters: _queryParams,
|
|
213
213
|
requestType: "json",
|
|
@@ -285,6 +285,10 @@ class Pages {
|
|
|
285
285
|
/**
|
|
286
286
|
* Update Page-level metadata, including SEO and Open Graph fields.
|
|
287
287
|
*
|
|
288
|
+
* <Note>
|
|
289
|
+
* Note: When updating Page Metadata in secondary locales, you may only add `slug` to the request if your Site has the [Advanced or Enterprise Localization](https://webflow.com/localization) add-on.
|
|
290
|
+
* </Note>
|
|
291
|
+
*
|
|
288
292
|
* Required scope | `pages:write`
|
|
289
293
|
*
|
|
290
294
|
* @param {string} pageId - Unique identifier for a Page
|
|
@@ -337,7 +341,7 @@ class Pages {
|
|
|
337
341
|
const _response = yield core.fetcher({
|
|
338
342
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${encodeURIComponent(pageId)}`),
|
|
339
343
|
method: "PUT",
|
|
340
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
344
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
341
345
|
contentType: "application/json",
|
|
342
346
|
queryParameters: _queryParams,
|
|
343
347
|
requestType: "json",
|
|
@@ -418,10 +422,11 @@ class Pages {
|
|
|
418
422
|
});
|
|
419
423
|
}
|
|
420
424
|
/**
|
|
421
|
-
* Get
|
|
422
|
-
*
|
|
425
|
+
* Get content from a static page. This includes text nodes, image nodes, and component instances with [property overrides](https://help.webflow.com/hc/en-us/articles/33961219350547-Component-properties#how-to-modify-property-values-on-component-instances).
|
|
426
|
+
*
|
|
427
|
+
* To retrieve the static content of a component instance, use the [Get Component Content](/data/reference/pages-and-components/components/get-content) endpoint.
|
|
423
428
|
*
|
|
424
|
-
* <Note>If you do not
|
|
429
|
+
* <Note>If you do not include a `localeId` in your request, the response will return any content that can be localized from the Primary locale.</Note>
|
|
425
430
|
*
|
|
426
431
|
* Required scope | `pages:read`
|
|
427
432
|
*
|
|
@@ -458,7 +463,7 @@ class Pages {
|
|
|
458
463
|
const _response = yield core.fetcher({
|
|
459
464
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${encodeURIComponent(pageId)}/dom`),
|
|
460
465
|
method: "GET",
|
|
461
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
466
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
462
467
|
contentType: "application/json",
|
|
463
468
|
queryParameters: _queryParams,
|
|
464
469
|
requestType: "json",
|
|
@@ -589,7 +594,7 @@ class Pages {
|
|
|
589
594
|
const _response = yield core.fetcher({
|
|
590
595
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${encodeURIComponent(pageId)}/dom`),
|
|
591
596
|
method: "POST",
|
|
592
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
597
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
593
598
|
contentType: "application/json",
|
|
594
599
|
queryParameters: _queryParams,
|
|
595
600
|
requestType: "json",
|
|
@@ -24,13 +24,7 @@ export declare class Scripts {
|
|
|
24
24
|
protected readonly _options: Scripts.Options;
|
|
25
25
|
constructor(_options: Scripts.Options);
|
|
26
26
|
/**
|
|
27
|
-
* Get all
|
|
28
|
-
*
|
|
29
|
-
* In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered
|
|
30
|
-
* to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate
|
|
31
|
-
* `custom_code` endpoints.
|
|
32
|
-
*
|
|
33
|
-
* <Note>Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients).</Note>
|
|
27
|
+
* Get all scripts applied to a page.
|
|
34
28
|
*
|
|
35
29
|
* Required scope | `custom_code:read`
|
|
36
30
|
*
|
|
@@ -48,15 +42,11 @@ export declare class Scripts {
|
|
|
48
42
|
*/
|
|
49
43
|
getCustomCode(pageId: string, requestOptions?: Scripts.RequestOptions): Promise<Webflow.ScriptApplyList>;
|
|
50
44
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered
|
|
54
|
-
* to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate
|
|
55
|
-
* `custom_code` endpoints.
|
|
45
|
+
* Apply scripts to a page.
|
|
56
46
|
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
47
|
+
* <Note title="Script Registration">
|
|
48
|
+
* To apply a script to a page, the script must first be registered to a Site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information.
|
|
49
|
+
* </Note>
|
|
60
50
|
*
|
|
61
51
|
* Required scope | `custom_code:write`
|
|
62
52
|
*
|
|
@@ -89,11 +79,7 @@ export declare class Scripts {
|
|
|
89
79
|
*/
|
|
90
80
|
upsertCustomCode(pageId: string, request: Webflow.ScriptApplyList, requestOptions?: Scripts.RequestOptions): Promise<Webflow.ScriptApplyList>;
|
|
91
81
|
/**
|
|
92
|
-
* Delete
|
|
93
|
-
*
|
|
94
|
-
* In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered
|
|
95
|
-
* to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate
|
|
96
|
-
* `custom_code` endpoints.
|
|
82
|
+
* Delete a custom code block that the App created on a page.
|
|
97
83
|
*
|
|
98
84
|
* <Note>Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients).</Note>
|
|
99
85
|
*
|
|
@@ -50,13 +50,7 @@ class Scripts {
|
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* Get all
|
|
54
|
-
*
|
|
55
|
-
* In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered
|
|
56
|
-
* to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate
|
|
57
|
-
* `custom_code` endpoints.
|
|
58
|
-
*
|
|
59
|
-
* <Note>Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients).</Note>
|
|
53
|
+
* Get all scripts applied to a page.
|
|
60
54
|
*
|
|
61
55
|
* Required scope | `custom_code:read`
|
|
62
56
|
*
|
|
@@ -78,7 +72,7 @@ class Scripts {
|
|
|
78
72
|
const _response = yield core.fetcher({
|
|
79
73
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${encodeURIComponent(pageId)}/custom_code`),
|
|
80
74
|
method: "GET",
|
|
81
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
75
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
76
|
contentType: "application/json",
|
|
83
77
|
requestType: "json",
|
|
84
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -153,15 +147,11 @@ class Scripts {
|
|
|
153
147
|
});
|
|
154
148
|
}
|
|
155
149
|
/**
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
* In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered
|
|
159
|
-
* to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate
|
|
160
|
-
* `custom_code` endpoints.
|
|
150
|
+
* Apply scripts to a page.
|
|
161
151
|
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
152
|
+
* <Note title="Script Registration">
|
|
153
|
+
* To apply a script to a page, the script must first be registered to a Site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information.
|
|
154
|
+
* </Note>
|
|
165
155
|
*
|
|
166
156
|
* Required scope | `custom_code:write`
|
|
167
157
|
*
|
|
@@ -198,7 +188,7 @@ class Scripts {
|
|
|
198
188
|
const _response = yield core.fetcher({
|
|
199
189
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${encodeURIComponent(pageId)}/custom_code`),
|
|
200
190
|
method: "PUT",
|
|
201
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
191
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
202
192
|
contentType: "application/json",
|
|
203
193
|
requestType: "json",
|
|
204
194
|
body: serializers.ScriptApplyList.jsonOrThrow(request, {
|
|
@@ -280,11 +270,7 @@ class Scripts {
|
|
|
280
270
|
});
|
|
281
271
|
}
|
|
282
272
|
/**
|
|
283
|
-
* Delete
|
|
284
|
-
*
|
|
285
|
-
* In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered
|
|
286
|
-
* to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate
|
|
287
|
-
* `custom_code` endpoints.
|
|
273
|
+
* Delete a custom code block that the App created on a page.
|
|
288
274
|
*
|
|
289
275
|
* <Note>Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients).</Note>
|
|
290
276
|
*
|
|
@@ -308,7 +294,7 @@ class Scripts {
|
|
|
308
294
|
const _response = yield core.fetcher({
|
|
309
295
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `pages/${encodeURIComponent(pageId)}/custom_code`),
|
|
310
296
|
method: "DELETE",
|
|
311
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
297
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
312
298
|
contentType: "application/json",
|
|
313
299
|
requestType: "json",
|
|
314
300
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -86,7 +86,7 @@ class Products {
|
|
|
86
86
|
const _response = yield core.fetcher({
|
|
87
87
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/products`),
|
|
88
88
|
method: "GET",
|
|
89
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
89
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
90
90
|
contentType: "application/json",
|
|
91
91
|
queryParameters: _queryParams,
|
|
92
92
|
requestType: "json",
|
|
@@ -202,7 +202,7 @@ class Products {
|
|
|
202
202
|
const _response = yield core.fetcher({
|
|
203
203
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/products`),
|
|
204
204
|
method: "POST",
|
|
205
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
205
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
206
206
|
contentType: "application/json",
|
|
207
207
|
requestType: "json",
|
|
208
208
|
body: serializers.ProductSkuCreate.jsonOrThrow(request, {
|
|
@@ -312,7 +312,7 @@ class Products {
|
|
|
312
312
|
const _response = yield core.fetcher({
|
|
313
313
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/products/${encodeURIComponent(productId)}`),
|
|
314
314
|
method: "GET",
|
|
315
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
315
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
316
316
|
contentType: "application/json",
|
|
317
317
|
requestType: "json",
|
|
318
318
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -419,7 +419,7 @@ class Products {
|
|
|
419
419
|
const _response = yield core.fetcher({
|
|
420
420
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/products/${encodeURIComponent(productId)}`),
|
|
421
421
|
method: "PATCH",
|
|
422
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
422
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
423
423
|
contentType: "application/json",
|
|
424
424
|
requestType: "json",
|
|
425
425
|
body: serializers.ProductSkuUpdate.jsonOrThrow(request, {
|
|
@@ -533,7 +533,7 @@ class Products {
|
|
|
533
533
|
const _response = yield core.fetcher({
|
|
534
534
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/products/${encodeURIComponent(productId)}/skus`),
|
|
535
535
|
method: "POST",
|
|
536
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
536
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
537
537
|
contentType: "application/json",
|
|
538
538
|
requestType: "json",
|
|
539
539
|
body: serializers.ProductsCreateSkuRequest.jsonOrThrow(request, {
|
|
@@ -648,7 +648,7 @@ class Products {
|
|
|
648
648
|
const _response = yield core.fetcher({
|
|
649
649
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/products/${encodeURIComponent(productId)}/skus/${encodeURIComponent(skuId)}`),
|
|
650
650
|
method: "PATCH",
|
|
651
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
651
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
652
652
|
contentType: "application/json",
|
|
653
653
|
requestType: "json",
|
|
654
654
|
body: serializers.ProductsUpdateSkuRequest.jsonOrThrow(request, {
|
|
@@ -24,14 +24,11 @@ export declare class Scripts {
|
|
|
24
24
|
protected readonly _options: Scripts.Options;
|
|
25
25
|
constructor(_options: Scripts.Options);
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Get a list of scripts that have been registered to a site. A site can have a maximum of 800 registered scripts.
|
|
28
28
|
*
|
|
29
|
-
*
|
|
30
|
-
* to a
|
|
31
|
-
*
|
|
32
|
-
* Additionally, Scripts can be remotely hosted, or registered as inline snippets.
|
|
33
|
-
*
|
|
34
|
-
* <Note>Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients).</Note>
|
|
29
|
+
* <Note title="Script Registration">
|
|
30
|
+
* To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information.
|
|
31
|
+
* </Note>
|
|
35
32
|
*
|
|
36
33
|
* Required scope | `custom_code:read`
|
|
37
34
|
*
|
|
@@ -49,14 +46,11 @@ export declare class Scripts {
|
|
|
49
46
|
*/
|
|
50
47
|
list(siteId: string, requestOptions?: Scripts.RequestOptions): Promise<Webflow.RegisteredScriptList>;
|
|
51
48
|
/**
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
* In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered
|
|
55
|
-
* to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate
|
|
56
|
-
* `custom_code` endpoints.
|
|
57
|
-
* Additionally, Scripts can be remotely hosted, or registered as inline snippets.
|
|
49
|
+
* Register a hosted script to a site.
|
|
58
50
|
*
|
|
59
|
-
* <Note
|
|
51
|
+
* <Note title="Script Registration">
|
|
52
|
+
* To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information.
|
|
53
|
+
* </Note>
|
|
60
54
|
*
|
|
61
55
|
* Required scope | `custom_code:write`
|
|
62
56
|
*
|
|
@@ -80,13 +74,11 @@ export declare class Scripts {
|
|
|
80
74
|
*/
|
|
81
75
|
registerHosted(siteId: string, request: Webflow.CustomCodeHostedRequest, requestOptions?: Scripts.RequestOptions): Promise<Webflow.CustomCodeHostedResponse>;
|
|
82
76
|
/**
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered
|
|
86
|
-
* to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate
|
|
87
|
-
* `custom_code` endpoints.
|
|
77
|
+
* Register an inline script to a site. Inline scripts are limited to 2000 characters.
|
|
88
78
|
*
|
|
89
|
-
* <Note
|
|
79
|
+
* <Note title="Script Registration">
|
|
80
|
+
* To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information.
|
|
81
|
+
* </Note>
|
|
90
82
|
*
|
|
91
83
|
* Required scope | `custom_code:write`
|
|
92
84
|
*
|
|
@@ -50,14 +50,11 @@ class Scripts {
|
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Get a list of scripts that have been registered to a site. A site can have a maximum of 800 registered scripts.
|
|
54
54
|
*
|
|
55
|
-
*
|
|
56
|
-
* to a
|
|
57
|
-
*
|
|
58
|
-
* Additionally, Scripts can be remotely hosted, or registered as inline snippets.
|
|
59
|
-
*
|
|
60
|
-
* <Note>Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients).</Note>
|
|
55
|
+
* <Note title="Script Registration">
|
|
56
|
+
* To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information.
|
|
57
|
+
* </Note>
|
|
61
58
|
*
|
|
62
59
|
* Required scope | `custom_code:read`
|
|
63
60
|
*
|
|
@@ -79,7 +76,7 @@ class Scripts {
|
|
|
79
76
|
const _response = yield core.fetcher({
|
|
80
77
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/registered_scripts`),
|
|
81
78
|
method: "GET",
|
|
82
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
79
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
83
80
|
contentType: "application/json",
|
|
84
81
|
requestType: "json",
|
|
85
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -154,14 +151,11 @@ class Scripts {
|
|
|
154
151
|
});
|
|
155
152
|
}
|
|
156
153
|
/**
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
* In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered
|
|
160
|
-
* to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate
|
|
161
|
-
* `custom_code` endpoints.
|
|
162
|
-
* Additionally, Scripts can be remotely hosted, or registered as inline snippets.
|
|
154
|
+
* Register a hosted script to a site.
|
|
163
155
|
*
|
|
164
|
-
* <Note
|
|
156
|
+
* <Note title="Script Registration">
|
|
157
|
+
* To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information.
|
|
158
|
+
* </Note>
|
|
165
159
|
*
|
|
166
160
|
* Required scope | `custom_code:write`
|
|
167
161
|
*
|
|
@@ -189,7 +183,7 @@ class Scripts {
|
|
|
189
183
|
const _response = yield core.fetcher({
|
|
190
184
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/registered_scripts/hosted`),
|
|
191
185
|
method: "POST",
|
|
192
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
186
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
193
187
|
contentType: "application/json",
|
|
194
188
|
requestType: "json",
|
|
195
189
|
body: serializers.CustomCodeHostedRequest.jsonOrThrow(request, {
|
|
@@ -269,13 +263,11 @@ class Scripts {
|
|
|
269
263
|
});
|
|
270
264
|
}
|
|
271
265
|
/**
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
* In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered
|
|
275
|
-
* to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate
|
|
276
|
-
* `custom_code` endpoints.
|
|
266
|
+
* Register an inline script to a site. Inline scripts are limited to 2000 characters.
|
|
277
267
|
*
|
|
278
|
-
* <Note
|
|
268
|
+
* <Note title="Script Registration">
|
|
269
|
+
* To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information.
|
|
270
|
+
* </Note>
|
|
279
271
|
*
|
|
280
272
|
* Required scope | `custom_code:write`
|
|
281
273
|
*
|
|
@@ -302,7 +294,7 @@ class Scripts {
|
|
|
302
294
|
const _response = yield core.fetcher({
|
|
303
295
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/registered_scripts/inline`),
|
|
304
296
|
method: "POST",
|
|
305
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
297
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
306
298
|
contentType: "application/json",
|
|
307
299
|
requestType: "json",
|
|
308
300
|
body: serializers.CustomCodeInlineRequest.jsonOrThrow(request, {
|
|
@@ -6,6 +6,7 @@ import * as core from "../../../../core";
|
|
|
6
6
|
import * as Webflow from "../../../index";
|
|
7
7
|
import { Redirects } from "../resources/redirects/client/Client";
|
|
8
8
|
import { Plans } from "../resources/plans/client/Client";
|
|
9
|
+
import { RobotsTxt } from "../resources/robotsTxt/client/Client";
|
|
9
10
|
import { ActivityLogs } from "../resources/activityLogs/client/Client";
|
|
10
11
|
import { Scripts } from "../resources/scripts/client/Client";
|
|
11
12
|
export declare namespace Sites {
|
|
@@ -31,7 +32,9 @@ export declare class Sites {
|
|
|
31
32
|
protected readonly _options: Sites.Options;
|
|
32
33
|
constructor(_options: Sites.Options);
|
|
33
34
|
/**
|
|
34
|
-
* Create a site.
|
|
35
|
+
* Create a site.
|
|
36
|
+
*
|
|
37
|
+
* <Warning title="Enterprise Only">This endpoint requires an Enterprise workspace.</Warning>
|
|
35
38
|
*
|
|
36
39
|
* Required scope | `workspace:write`
|
|
37
40
|
*
|
|
@@ -86,7 +89,9 @@ export declare class Sites {
|
|
|
86
89
|
*/
|
|
87
90
|
get(siteId: string, requestOptions?: Sites.RequestOptions): Promise<Webflow.Site>;
|
|
88
91
|
/**
|
|
89
|
-
* Delete a site.
|
|
92
|
+
* Delete a site.
|
|
93
|
+
*
|
|
94
|
+
* <Warning title="Enterprise Only">This endpoint requires an Enterprise workspace.</Warning>
|
|
90
95
|
*
|
|
91
96
|
* Required scope | `sites:write`
|
|
92
97
|
*
|
|
@@ -105,7 +110,9 @@ export declare class Sites {
|
|
|
105
110
|
*/
|
|
106
111
|
delete(siteId: string, requestOptions?: Sites.RequestOptions): Promise<void>;
|
|
107
112
|
/**
|
|
108
|
-
* Update a site.
|
|
113
|
+
* Update a site.
|
|
114
|
+
*
|
|
115
|
+
* <Warning title="Enterprise Only">This endpoint requires an Enterprise workspace.</Warning>
|
|
109
116
|
*
|
|
110
117
|
* Required scope | `sites:write`
|
|
111
118
|
*
|
|
@@ -167,6 +174,8 @@ export declare class Sites {
|
|
|
167
174
|
get redirects(): Redirects;
|
|
168
175
|
protected _plans: Plans | undefined;
|
|
169
176
|
get plans(): Plans;
|
|
177
|
+
protected _robotsTxt: RobotsTxt | undefined;
|
|
178
|
+
get robotsTxt(): RobotsTxt;
|
|
170
179
|
protected _activityLogs: ActivityLogs | undefined;
|
|
171
180
|
get activityLogs(): ActivityLogs;
|
|
172
181
|
protected _scripts: Scripts | undefined;
|
|
@@ -47,8 +47,9 @@ const url_join_1 = __importDefault(require("url-join"));
|
|
|
47
47
|
const errors = __importStar(require("../../../../errors/index"));
|
|
48
48
|
const Client_1 = require("../resources/redirects/client/Client");
|
|
49
49
|
const Client_2 = require("../resources/plans/client/Client");
|
|
50
|
-
const Client_3 = require("../resources/
|
|
51
|
-
const Client_4 = require("../resources/
|
|
50
|
+
const Client_3 = require("../resources/robotsTxt/client/Client");
|
|
51
|
+
const Client_4 = require("../resources/activityLogs/client/Client");
|
|
52
|
+
const Client_5 = require("../resources/scripts/client/Client");
|
|
52
53
|
/**
|
|
53
54
|
* Sites are the sites in your Webflow workspace.
|
|
54
55
|
*/
|
|
@@ -57,7 +58,9 @@ class Sites {
|
|
|
57
58
|
this._options = _options;
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
|
-
* Create a site.
|
|
61
|
+
* Create a site.
|
|
62
|
+
*
|
|
63
|
+
* <Warning title="Enterprise Only">This endpoint requires an Enterprise workspace.</Warning>
|
|
61
64
|
*
|
|
62
65
|
* Required scope | `workspace:write`
|
|
63
66
|
*
|
|
@@ -83,7 +86,7 @@ class Sites {
|
|
|
83
86
|
const _response = yield core.fetcher({
|
|
84
87
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `workspaces/${encodeURIComponent(workspaceId)}/sites`),
|
|
85
88
|
method: "POST",
|
|
86
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
89
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
87
90
|
contentType: "application/json",
|
|
88
91
|
requestType: "json",
|
|
89
92
|
body: serializers.SitesCreateRequest.jsonOrThrow(request, {
|
|
@@ -184,7 +187,7 @@ class Sites {
|
|
|
184
187
|
const _response = yield core.fetcher({
|
|
185
188
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, "sites"),
|
|
186
189
|
method: "GET",
|
|
187
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
190
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
188
191
|
contentType: "application/json",
|
|
189
192
|
requestType: "json",
|
|
190
193
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -271,7 +274,7 @@ class Sites {
|
|
|
271
274
|
const _response = yield core.fetcher({
|
|
272
275
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}`),
|
|
273
276
|
method: "GET",
|
|
274
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
277
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
275
278
|
contentType: "application/json",
|
|
276
279
|
requestType: "json",
|
|
277
280
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -346,7 +349,9 @@ class Sites {
|
|
|
346
349
|
});
|
|
347
350
|
}
|
|
348
351
|
/**
|
|
349
|
-
* Delete a site.
|
|
352
|
+
* Delete a site.
|
|
353
|
+
*
|
|
354
|
+
* <Warning title="Enterprise Only">This endpoint requires an Enterprise workspace.</Warning>
|
|
350
355
|
*
|
|
351
356
|
* Required scope | `sites:write`
|
|
352
357
|
*
|
|
@@ -369,7 +374,7 @@ class Sites {
|
|
|
369
374
|
const _response = yield core.fetcher({
|
|
370
375
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}`),
|
|
371
376
|
method: "DELETE",
|
|
372
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
377
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
373
378
|
contentType: "application/json",
|
|
374
379
|
requestType: "json",
|
|
375
380
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -440,7 +445,9 @@ class Sites {
|
|
|
440
445
|
});
|
|
441
446
|
}
|
|
442
447
|
/**
|
|
443
|
-
* Update a site.
|
|
448
|
+
* Update a site.
|
|
449
|
+
*
|
|
450
|
+
* <Warning title="Enterprise Only">This endpoint requires an Enterprise workspace.</Warning>
|
|
444
451
|
*
|
|
445
452
|
* Required scope | `sites:write`
|
|
446
453
|
*
|
|
@@ -464,7 +471,7 @@ class Sites {
|
|
|
464
471
|
const _response = yield core.fetcher({
|
|
465
472
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}`),
|
|
466
473
|
method: "PATCH",
|
|
467
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
474
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
468
475
|
contentType: "application/json",
|
|
469
476
|
requestType: "json",
|
|
470
477
|
body: serializers.SitesUpdateRequest.jsonOrThrow(request, {
|
|
@@ -568,7 +575,7 @@ class Sites {
|
|
|
568
575
|
const _response = yield core.fetcher({
|
|
569
576
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/custom_domains`),
|
|
570
577
|
method: "GET",
|
|
571
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
578
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
572
579
|
contentType: "application/json",
|
|
573
580
|
requestType: "json",
|
|
574
581
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -668,7 +675,7 @@ class Sites {
|
|
|
668
675
|
const _response = yield core.fetcher({
|
|
669
676
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/publish`),
|
|
670
677
|
method: "POST",
|
|
671
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
678
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.2", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
672
679
|
contentType: "application/json",
|
|
673
680
|
requestType: "json",
|
|
674
681
|
body: serializers.SitesPublishRequest.jsonOrThrow(request, {
|
|
@@ -749,13 +756,17 @@ class Sites {
|
|
|
749
756
|
var _a;
|
|
750
757
|
return ((_a = this._plans) !== null && _a !== void 0 ? _a : (this._plans = new Client_2.Plans(this._options)));
|
|
751
758
|
}
|
|
759
|
+
get robotsTxt() {
|
|
760
|
+
var _a;
|
|
761
|
+
return ((_a = this._robotsTxt) !== null && _a !== void 0 ? _a : (this._robotsTxt = new Client_3.RobotsTxt(this._options)));
|
|
762
|
+
}
|
|
752
763
|
get activityLogs() {
|
|
753
764
|
var _a;
|
|
754
|
-
return ((_a = this._activityLogs) !== null && _a !== void 0 ? _a : (this._activityLogs = new
|
|
765
|
+
return ((_a = this._activityLogs) !== null && _a !== void 0 ? _a : (this._activityLogs = new Client_4.ActivityLogs(this._options)));
|
|
755
766
|
}
|
|
756
767
|
get scripts() {
|
|
757
768
|
var _a;
|
|
758
|
-
return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new
|
|
769
|
+
return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new Client_5.Scripts(this._options)));
|
|
759
770
|
}
|
|
760
771
|
_getAuthorizationHeader() {
|
|
761
772
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -24,7 +24,11 @@ export declare class ActivityLogs {
|
|
|
24
24
|
protected readonly _options: ActivityLogs.Options;
|
|
25
25
|
constructor(_options: ActivityLogs.Options);
|
|
26
26
|
/**
|
|
27
|
-
* Retrieve Activity Logs for a specific Site.
|
|
27
|
+
* Retrieve Activity Logs for a specific Site.
|
|
28
|
+
*
|
|
29
|
+
* <Warning title="Enterprise Only">This endpoint requires an Enterprise workspace.</Warning>
|
|
30
|
+
*
|
|
31
|
+
* Required scope: `site_activity:read`
|
|
28
32
|
*
|
|
29
33
|
* @param {string} siteId - Unique identifier for a Site
|
|
30
34
|
* @param {Webflow.sites.ActivityLogsListRequest} request
|