webflow-api 2.3.6 → 2.4.0
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/api/resources/accessGroups/client/Client.d.ts +1 -1
- package/api/resources/accessGroups/client/Client.js +6 -4
- package/api/resources/assets/client/Client.d.ts +8 -8
- package/api/resources/assets/client/Client.js +50 -34
- package/api/resources/collections/client/Client.d.ts +5 -5
- package/api/resources/collections/client/Client.js +29 -19
- package/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
- package/api/resources/collections/resources/fields/client/Client.js +15 -11
- package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
- package/api/resources/collections/resources/items/client/Client.d.ts +17 -17
- package/api/resources/collections/resources/items/client/Client.js +101 -55
- package/api/resources/collections/resources/items/client/requests/index.d.ts +0 -1
- package/api/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +7 -0
- package/api/resources/collections/resources/items/types/index.d.ts +1 -1
- package/api/resources/collections/resources/items/types/index.js +1 -1
- package/api/resources/ecommerce/client/Client.d.ts +1 -1
- package/api/resources/ecommerce/client/Client.js +6 -4
- package/api/resources/forms/client/Client.d.ts +5 -5
- package/api/resources/forms/client/Client.js +31 -23
- package/api/resources/index.d.ts +3 -2
- package/api/resources/index.js +4 -3
- package/api/resources/inventory/client/Client.d.ts +3 -3
- package/api/resources/inventory/client/Client.js +14 -10
- package/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +1 -1
- package/api/resources/orders/client/Client.d.ts +6 -6
- package/api/resources/orders/client/Client.js +39 -29
- package/api/resources/pages/client/Client.d.ts +19 -10
- package/api/resources/pages/client/Client.js +44 -25
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +3 -1
- package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
- package/api/resources/pages/client/requests/PagesListRequest.d.ts +3 -1
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +6 -3
- package/api/resources/pages/resources/scripts/client/Client.d.ts +5 -5
- package/api/resources/pages/resources/scripts/client/Client.js +20 -14
- package/api/resources/products/client/Client.d.ts +6 -6
- package/api/resources/products/client/Client.js +40 -28
- package/api/resources/scripts/client/Client.d.ts +3 -3
- package/api/resources/scripts/client/Client.js +20 -14
- package/api/resources/sites/client/Client.d.ts +4 -4
- package/api/resources/sites/client/Client.js +30 -16
- package/api/resources/sites/index.d.ts +1 -0
- package/api/resources/sites/index.js +1 -0
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +1 -1
- package/api/resources/sites/resources/activityLogs/client/Client.js +6 -4
- package/api/resources/sites/resources/scripts/client/Client.d.ts +6 -6
- package/api/resources/sites/resources/scripts/client/Client.js +26 -18
- package/api/resources/sites/types/SitesPublishResponse.d.ts +10 -0
- package/api/resources/sites/types/index.d.ts +1 -0
- package/api/resources/sites/types/index.js +17 -0
- package/api/resources/token/client/Client.js +8 -4
- package/api/resources/users/client/Client.d.ts +5 -5
- package/api/resources/users/client/Client.js +31 -21
- package/api/resources/webhooks/client/Client.d.ts +7 -7
- package/api/resources/webhooks/client/Client.js +27 -19
- package/api/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +3 -6
- package/api/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.d.ts +2 -0
- package/api/types/CollectionItemFieldData.d.ts +2 -0
- package/api/types/ConflictErrorBody.d.ts +10 -1
- package/api/types/DuplicateUserEmail.d.ts +10 -1
- package/api/types/MissingScopes.d.ts +10 -1
- package/api/types/NotEnterprisePlanSite.d.ts +10 -1
- package/api/types/Page.d.ts +5 -1
- package/api/types/UserLimitReached.d.ts +10 -1
- package/api/types/UsersNotEnabled.d.ts +10 -1
- package/api/types/index.d.ts +4 -5
- package/api/types/index.js +4 -5
- package/core/fetcher/Fetcher.d.ts +4 -1
- package/core/fetcher/Fetcher.js +19 -185
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +13 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +59 -0
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +52 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +42 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +32 -0
- package/core/fetcher/signals.d.ts +12 -0
- package/core/fetcher/signals.js +37 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
- package/core/runtime/runtime.d.ts +1 -0
- package/core/runtime/runtime.js +1 -0
- package/core/schemas/Schema.d.ts +8 -4
- package/core/schemas/Schema.js +1 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +50 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.js +1 -0
- package/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/core/schemas/builders/lazy/lazy.js +8 -19
- package/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/core/schemas/builders/list/list.js +31 -44
- package/core/schemas/builders/object/object.js +90 -111
- package/core/schemas/builders/object/types.d.ts +2 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/core/schemas/builders/record/record.js +49 -60
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/core/schemas/builders/set/set.js +6 -15
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/core/schemas/builders/union/union.js +51 -62
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/api/resources/accessGroups/client/Client.d.ts +1 -1
- package/dist/api/resources/accessGroups/client/Client.js +6 -4
- package/dist/api/resources/assets/client/Client.d.ts +8 -8
- package/dist/api/resources/assets/client/Client.js +50 -34
- package/dist/api/resources/collections/client/Client.d.ts +5 -5
- package/dist/api/resources/collections/client/Client.js +29 -19
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
- package/dist/api/resources/collections/resources/fields/client/Client.js +15 -11
- package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +17 -17
- package/dist/api/resources/collections/resources/items/client/Client.js +101 -55
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +0 -1
- package/dist/api/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +7 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/index.js +1 -1
- package/dist/api/resources/ecommerce/client/Client.d.ts +1 -1
- package/dist/api/resources/ecommerce/client/Client.js +6 -4
- package/dist/api/resources/forms/client/Client.d.ts +5 -5
- package/dist/api/resources/forms/client/Client.js +31 -23
- package/dist/api/resources/index.d.ts +3 -2
- package/dist/api/resources/index.js +4 -3
- package/dist/api/resources/inventory/client/Client.d.ts +3 -3
- package/dist/api/resources/inventory/client/Client.js +14 -10
- package/dist/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +1 -1
- package/dist/api/resources/orders/client/Client.d.ts +6 -6
- package/dist/api/resources/orders/client/Client.js +39 -29
- package/dist/api/resources/pages/client/Client.d.ts +19 -10
- package/dist/api/resources/pages/client/Client.js +44 -25
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +3 -1
- package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
- package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +3 -1
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +6 -3
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +5 -5
- package/dist/api/resources/pages/resources/scripts/client/Client.js +20 -14
- package/dist/api/resources/products/client/Client.d.ts +6 -6
- package/dist/api/resources/products/client/Client.js +40 -28
- package/dist/api/resources/scripts/client/Client.d.ts +3 -3
- package/dist/api/resources/scripts/client/Client.js +20 -14
- package/dist/api/resources/sites/client/Client.d.ts +4 -4
- package/dist/api/resources/sites/client/Client.js +30 -16
- package/dist/api/resources/sites/index.d.ts +1 -0
- package/dist/api/resources/sites/index.js +1 -0
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +1 -1
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +6 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +6 -6
- package/dist/api/resources/sites/resources/scripts/client/Client.js +26 -18
- package/dist/api/resources/sites/types/SitesPublishResponse.d.ts +10 -0
- package/dist/api/resources/sites/types/index.d.ts +1 -0
- package/dist/api/resources/sites/types/index.js +17 -0
- package/dist/api/resources/token/client/Client.js +8 -4
- package/dist/api/resources/users/client/Client.d.ts +5 -5
- package/dist/api/resources/users/client/Client.js +31 -21
- package/dist/api/resources/webhooks/client/Client.d.ts +7 -7
- package/dist/api/resources/webhooks/client/Client.js +27 -19
- package/dist/api/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +3 -6
- package/dist/api/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.d.ts +2 -0
- package/dist/api/types/CollectionItemFieldData.d.ts +2 -0
- package/dist/api/types/ConflictErrorBody.d.ts +10 -1
- package/dist/api/types/DuplicateUserEmail.d.ts +10 -1
- package/dist/api/types/MissingScopes.d.ts +10 -1
- package/dist/api/types/NotEnterprisePlanSite.d.ts +10 -1
- package/dist/api/types/Page.d.ts +5 -1
- package/dist/api/types/UserLimitReached.d.ts +10 -1
- package/dist/api/types/UsersNotEnabled.d.ts +10 -1
- package/dist/api/types/index.d.ts +4 -5
- package/dist/api/types/index.js +4 -5
- package/dist/core/fetcher/Fetcher.d.ts +4 -1
- package/dist/core/fetcher/Fetcher.js +19 -185
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +13 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +59 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +52 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +32 -0
- package/dist/core/fetcher/signals.d.ts +12 -0
- package/dist/core/fetcher/signals.js +37 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
- package/dist/core/runtime/runtime.d.ts +1 -0
- package/dist/core/runtime/runtime.js +1 -0
- package/dist/core/schemas/Schema.d.ts +8 -4
- package/dist/core/schemas/Schema.js +1 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +50 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +1 -0
- package/dist/core/schemas/builders/index.js +1 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/dist/core/schemas/builders/lazy/lazy.js +8 -19
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/dist/core/schemas/builders/list/list.js +31 -44
- package/dist/core/schemas/builders/object/object.js +90 -111
- package/dist/core/schemas/builders/object/types.d.ts +2 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/dist/core/schemas/builders/record/record.js +49 -60
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/dist/core/schemas/builders/set/set.js +6 -15
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/dist/core/schemas/builders/union/union.js +51 -62
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/serialization/resources/collections/resources/items/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/index.js +1 -3
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +13 -0
- package/dist/serialization/{types/PageDetailsSeo.js → resources/collections/resources/items/types/ItemsPublishItemResponse.js} +5 -5
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +1 -1
- package/dist/serialization/resources/collections/resources/items/types/index.js +1 -1
- package/dist/serialization/resources/index.d.ts +3 -2
- package/dist/serialization/resources/index.js +4 -3
- package/dist/serialization/resources/sites/index.d.ts +1 -0
- package/dist/serialization/resources/sites/index.js +1 -0
- package/dist/serialization/resources/sites/types/SitesPublishResponse.d.ts +14 -0
- package/dist/serialization/resources/sites/types/SitesPublishResponse.js +35 -0
- package/dist/serialization/resources/sites/types/index.d.ts +1 -0
- package/dist/serialization/resources/sites/types/index.js +17 -0
- package/dist/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +5 -5
- package/{serialization/resources/collections/resources/items/client/requests → dist/serialization/types}/BulkCollectionItem.js +2 -2
- package/dist/serialization/types/BulkCollectionItemFieldData.d.ts +14 -0
- package/dist/serialization/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.js +1 -1
- package/dist/serialization/types/CollectionItemFieldData.d.ts +1 -0
- package/dist/serialization/types/ConflictErrorBody.d.ts +8 -4
- package/dist/serialization/types/ConflictErrorBody.js +7 -3
- package/dist/serialization/types/DuplicateUserEmail.d.ts +7 -2
- package/dist/serialization/types/DuplicateUserEmail.js +31 -2
- package/dist/serialization/types/MissingScopes.d.ts +7 -2
- package/dist/serialization/types/MissingScopes.js +31 -2
- package/dist/serialization/types/NotEnterprisePlanSite.d.ts +7 -2
- package/dist/serialization/types/NotEnterprisePlanSite.js +31 -2
- package/dist/serialization/types/Page.d.ts +3 -1
- package/dist/serialization/types/Page.js +3 -1
- package/dist/serialization/types/UserLimitReached.d.ts +7 -2
- package/dist/serialization/types/UserLimitReached.js +31 -2
- package/dist/serialization/types/UsersNotEnabled.d.ts +7 -2
- package/dist/serialization/types/UsersNotEnabled.js +31 -2
- package/dist/serialization/types/index.d.ts +3 -5
- package/dist/serialization/types/index.js +3 -5
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/dist/wrapper/ItemsClient.d.ts +49 -1
- package/dist/wrapper/ItemsClient.js +213 -6
- package/package.json +7 -2
- package/reference.md +5790 -0
- package/serialization/resources/collections/resources/items/client/requests/index.d.ts +0 -1
- package/serialization/resources/collections/resources/items/client/requests/index.js +1 -3
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +13 -0
- package/serialization/{types/PageDetailsSeo.js → resources/collections/resources/items/types/ItemsPublishItemResponse.js} +5 -5
- package/serialization/resources/collections/resources/items/types/index.d.ts +1 -1
- package/serialization/resources/collections/resources/items/types/index.js +1 -1
- package/serialization/resources/index.d.ts +3 -2
- package/serialization/resources/index.js +4 -3
- package/serialization/resources/sites/index.d.ts +1 -0
- package/serialization/resources/sites/index.js +1 -0
- package/serialization/resources/sites/types/SitesPublishResponse.d.ts +14 -0
- package/serialization/resources/sites/types/SitesPublishResponse.js +35 -0
- package/serialization/resources/sites/types/index.d.ts +1 -0
- package/serialization/resources/sites/types/index.js +17 -0
- package/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +5 -5
- package/{dist/serialization/resources/collections/resources/items/client/requests → serialization/types}/BulkCollectionItem.js +2 -2
- package/serialization/types/BulkCollectionItemFieldData.d.ts +14 -0
- package/serialization/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.js +1 -1
- package/serialization/types/CollectionItemFieldData.d.ts +1 -0
- package/serialization/types/ConflictErrorBody.d.ts +8 -4
- package/serialization/types/ConflictErrorBody.js +7 -3
- package/serialization/types/DuplicateUserEmail.d.ts +7 -2
- package/serialization/types/DuplicateUserEmail.js +31 -2
- package/serialization/types/MissingScopes.d.ts +7 -2
- package/serialization/types/MissingScopes.js +31 -2
- package/serialization/types/NotEnterprisePlanSite.d.ts +7 -2
- package/serialization/types/NotEnterprisePlanSite.js +31 -2
- package/serialization/types/Page.d.ts +3 -1
- package/serialization/types/Page.js +3 -1
- package/serialization/types/UserLimitReached.d.ts +7 -2
- package/serialization/types/UserLimitReached.js +31 -2
- package/serialization/types/UsersNotEnabled.d.ts +7 -2
- package/serialization/types/UsersNotEnabled.js +31 -2
- package/serialization/types/index.d.ts +3 -5
- package/serialization/types/index.js +3 -5
- package/version.d.ts +1 -0
- package/version.js +4 -0
- package/wrapper/ItemsClient.d.ts +49 -1
- package/wrapper/ItemsClient.js +213 -6
- package/api/types/PageDetails.d.ts +0 -41
- package/api/types/PageDetailsOpenGraph.d.ts +0 -16
- package/api/types/PageDetailsSeo.d.ts +0 -12
- package/dist/api/types/PageDetails.d.ts +0 -41
- package/dist/api/types/PageDetailsOpenGraph.d.ts +0 -16
- package/dist/api/types/PageDetailsOpenGraph.js +0 -5
- package/dist/api/types/PageDetailsSeo.d.ts +0 -12
- package/dist/api/types/PageDetailsSeo.js +0 -5
- package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +0 -13
- package/dist/serialization/types/OauthScope.d.ts +0 -10
- package/dist/serialization/types/OauthScope.js +0 -54
- package/dist/serialization/types/PageDetails.d.ts +0 -29
- package/dist/serialization/types/PageDetails.js +0 -50
- package/dist/serialization/types/PageDetailsOpenGraph.d.ts +0 -15
- package/dist/serialization/types/PageDetailsOpenGraph.js +0 -36
- package/dist/serialization/types/PageDetailsSeo.d.ts +0 -13
- package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +0 -13
- package/serialization/types/OauthScope.d.ts +0 -10
- package/serialization/types/OauthScope.js +0 -54
- package/serialization/types/PageDetails.d.ts +0 -29
- package/serialization/types/PageDetails.js +0 -50
- package/serialization/types/PageDetailsOpenGraph.d.ts +0 -15
- package/serialization/types/PageDetailsOpenGraph.js +0 -36
- package/serialization/types/PageDetailsSeo.d.ts +0 -13
- /package/api/resources/collections/resources/items/{client/requests/BulkCollectionItem.js → types/ItemsPublishItemResponse.js} +0 -0
- /package/api/resources/{collections/resources/items/types/BulkCollectionItemFieldData.js → sites/types/SitesPublishResponse.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/client/requests → api/types}/BulkCollectionItem.js +0 -0
- /package/{dist/api/resources/collections/resources/items → api}/types/BulkCollectionItemFieldData.js +0 -0
- /package/api/types/{OauthScope.d.ts → OAuthScope.d.ts} +0 -0
- /package/api/types/{OauthScope.js → OAuthScope.js} +0 -0
- /package/{api/types/PageDetails.js → dist/api/resources/collections/resources/items/types/ItemsPublishItemResponse.js} +0 -0
- /package/{api/types/PageDetailsOpenGraph.js → dist/api/resources/sites/types/SitesPublishResponse.js} +0 -0
- /package/{api/types/PageDetailsSeo.js → dist/api/types/BulkCollectionItem.js} +0 -0
- /package/dist/api/types/{PageDetails.js → BulkCollectionItemFieldData.js} +0 -0
- /package/dist/api/types/{OauthScope.d.ts → OAuthScope.d.ts} +0 -0
- /package/dist/api/types/{OauthScope.js → OAuthScope.js} +0 -0
|
@@ -67,7 +67,7 @@ class Orders {
|
|
|
67
67
|
* @throws {@link Webflow.InternalServerError}
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
|
-
* await client.orders.list("
|
|
70
|
+
* await client.orders.list("580e63e98c9a982ac9b8b741")
|
|
71
71
|
*/
|
|
72
72
|
list(siteId, request = {}, requestOptions) {
|
|
73
73
|
var _a;
|
|
@@ -90,18 +90,20 @@ class Orders {
|
|
|
90
90
|
Authorization: yield this._getAuthorizationHeader(),
|
|
91
91
|
"X-Fern-Language": "JavaScript",
|
|
92
92
|
"X-Fern-SDK-Name": "webflow-api",
|
|
93
|
-
"X-Fern-SDK-Version": "2.
|
|
93
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
94
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
94
95
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
95
96
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
96
97
|
},
|
|
97
98
|
contentType: "application/json",
|
|
98
99
|
queryParameters: _queryParams,
|
|
100
|
+
requestType: "json",
|
|
99
101
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
100
102
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
101
103
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
102
104
|
});
|
|
103
105
|
if (_response.ok) {
|
|
104
|
-
return
|
|
106
|
+
return serializers.OrderList.parseOrThrow(_response.body, {
|
|
105
107
|
unrecognizedObjectKeys: "passthrough",
|
|
106
108
|
allowUnrecognizedUnionMembers: true,
|
|
107
109
|
allowUnrecognizedEnumValues: true,
|
|
@@ -122,7 +124,7 @@ class Orders {
|
|
|
122
124
|
case 409:
|
|
123
125
|
throw new Webflow.ConflictError(_response.error.body);
|
|
124
126
|
case 429:
|
|
125
|
-
throw new Webflow.TooManyRequestsError(
|
|
127
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
126
128
|
unrecognizedObjectKeys: "passthrough",
|
|
127
129
|
allowUnrecognizedUnionMembers: true,
|
|
128
130
|
allowUnrecognizedEnumValues: true,
|
|
@@ -171,7 +173,7 @@ class Orders {
|
|
|
171
173
|
* @throws {@link Webflow.InternalServerError}
|
|
172
174
|
*
|
|
173
175
|
* @example
|
|
174
|
-
* await client.orders.get("
|
|
176
|
+
* await client.orders.get("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
175
177
|
*/
|
|
176
178
|
get(siteId, orderId, requestOptions) {
|
|
177
179
|
var _a;
|
|
@@ -183,17 +185,19 @@ class Orders {
|
|
|
183
185
|
Authorization: yield this._getAuthorizationHeader(),
|
|
184
186
|
"X-Fern-Language": "JavaScript",
|
|
185
187
|
"X-Fern-SDK-Name": "webflow-api",
|
|
186
|
-
"X-Fern-SDK-Version": "2.
|
|
188
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
189
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
187
190
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
188
191
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
189
192
|
},
|
|
190
193
|
contentType: "application/json",
|
|
194
|
+
requestType: "json",
|
|
191
195
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
192
196
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
193
197
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
194
198
|
});
|
|
195
199
|
if (_response.ok) {
|
|
196
|
-
return
|
|
200
|
+
return serializers.Order.parseOrThrow(_response.body, {
|
|
197
201
|
unrecognizedObjectKeys: "passthrough",
|
|
198
202
|
allowUnrecognizedUnionMembers: true,
|
|
199
203
|
allowUnrecognizedEnumValues: true,
|
|
@@ -214,7 +218,7 @@ class Orders {
|
|
|
214
218
|
case 409:
|
|
215
219
|
throw new Webflow.ConflictError(_response.error.body);
|
|
216
220
|
case 429:
|
|
217
|
-
throw new Webflow.TooManyRequestsError(
|
|
221
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
218
222
|
unrecognizedObjectKeys: "passthrough",
|
|
219
223
|
allowUnrecognizedUnionMembers: true,
|
|
220
224
|
allowUnrecognizedEnumValues: true,
|
|
@@ -264,7 +268,7 @@ class Orders {
|
|
|
264
268
|
* @throws {@link Webflow.InternalServerError}
|
|
265
269
|
*
|
|
266
270
|
* @example
|
|
267
|
-
* await client.orders.update("
|
|
271
|
+
* await client.orders.update("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
268
272
|
*/
|
|
269
273
|
update(siteId, orderId, request = {}, requestOptions) {
|
|
270
274
|
var _a;
|
|
@@ -276,18 +280,20 @@ class Orders {
|
|
|
276
280
|
Authorization: yield this._getAuthorizationHeader(),
|
|
277
281
|
"X-Fern-Language": "JavaScript",
|
|
278
282
|
"X-Fern-SDK-Name": "webflow-api",
|
|
279
|
-
"X-Fern-SDK-Version": "2.
|
|
283
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
284
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
280
285
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
281
286
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
282
287
|
},
|
|
283
288
|
contentType: "application/json",
|
|
284
|
-
|
|
289
|
+
requestType: "json",
|
|
290
|
+
body: serializers.OrdersUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
285
291
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
286
292
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
287
293
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
288
294
|
});
|
|
289
295
|
if (_response.ok) {
|
|
290
|
-
return
|
|
296
|
+
return serializers.Order.parseOrThrow(_response.body, {
|
|
291
297
|
unrecognizedObjectKeys: "passthrough",
|
|
292
298
|
allowUnrecognizedUnionMembers: true,
|
|
293
299
|
allowUnrecognizedEnumValues: true,
|
|
@@ -308,7 +314,7 @@ class Orders {
|
|
|
308
314
|
case 409:
|
|
309
315
|
throw new Webflow.ConflictError(_response.error.body);
|
|
310
316
|
case 429:
|
|
311
|
-
throw new Webflow.TooManyRequestsError(
|
|
317
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
312
318
|
unrecognizedObjectKeys: "passthrough",
|
|
313
319
|
allowUnrecognizedUnionMembers: true,
|
|
314
320
|
allowUnrecognizedEnumValues: true,
|
|
@@ -358,7 +364,7 @@ class Orders {
|
|
|
358
364
|
* @throws {@link Webflow.InternalServerError}
|
|
359
365
|
*
|
|
360
366
|
* @example
|
|
361
|
-
* await client.orders.updateFulfill("
|
|
367
|
+
* await client.orders.updateFulfill("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
362
368
|
*/
|
|
363
369
|
updateFulfill(siteId, orderId, request = {}, requestOptions) {
|
|
364
370
|
var _a;
|
|
@@ -370,20 +376,20 @@ class Orders {
|
|
|
370
376
|
Authorization: yield this._getAuthorizationHeader(),
|
|
371
377
|
"X-Fern-Language": "JavaScript",
|
|
372
378
|
"X-Fern-SDK-Name": "webflow-api",
|
|
373
|
-
"X-Fern-SDK-Version": "2.
|
|
379
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
380
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
374
381
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
375
382
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
376
383
|
},
|
|
377
384
|
contentType: "application/json",
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
}),
|
|
385
|
+
requestType: "json",
|
|
386
|
+
body: serializers.OrdersUpdateFulfillRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
381
387
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
382
388
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
383
389
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
384
390
|
});
|
|
385
391
|
if (_response.ok) {
|
|
386
|
-
return
|
|
392
|
+
return serializers.Order.parseOrThrow(_response.body, {
|
|
387
393
|
unrecognizedObjectKeys: "passthrough",
|
|
388
394
|
allowUnrecognizedUnionMembers: true,
|
|
389
395
|
allowUnrecognizedEnumValues: true,
|
|
@@ -404,7 +410,7 @@ class Orders {
|
|
|
404
410
|
case 409:
|
|
405
411
|
throw new Webflow.ConflictError(_response.error.body);
|
|
406
412
|
case 429:
|
|
407
|
-
throw new Webflow.TooManyRequestsError(
|
|
413
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
408
414
|
unrecognizedObjectKeys: "passthrough",
|
|
409
415
|
allowUnrecognizedUnionMembers: true,
|
|
410
416
|
allowUnrecognizedEnumValues: true,
|
|
@@ -453,7 +459,7 @@ class Orders {
|
|
|
453
459
|
* @throws {@link Webflow.InternalServerError}
|
|
454
460
|
*
|
|
455
461
|
* @example
|
|
456
|
-
* await client.orders.updateUnfulfill("
|
|
462
|
+
* await client.orders.updateUnfulfill("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
457
463
|
*/
|
|
458
464
|
updateUnfulfill(siteId, orderId, requestOptions) {
|
|
459
465
|
var _a;
|
|
@@ -465,17 +471,19 @@ class Orders {
|
|
|
465
471
|
Authorization: yield this._getAuthorizationHeader(),
|
|
466
472
|
"X-Fern-Language": "JavaScript",
|
|
467
473
|
"X-Fern-SDK-Name": "webflow-api",
|
|
468
|
-
"X-Fern-SDK-Version": "2.
|
|
474
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
475
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
469
476
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
470
477
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
471
478
|
},
|
|
472
479
|
contentType: "application/json",
|
|
480
|
+
requestType: "json",
|
|
473
481
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
474
482
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
475
483
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
476
484
|
});
|
|
477
485
|
if (_response.ok) {
|
|
478
|
-
return
|
|
486
|
+
return serializers.Order.parseOrThrow(_response.body, {
|
|
479
487
|
unrecognizedObjectKeys: "passthrough",
|
|
480
488
|
allowUnrecognizedUnionMembers: true,
|
|
481
489
|
allowUnrecognizedEnumValues: true,
|
|
@@ -496,7 +504,7 @@ class Orders {
|
|
|
496
504
|
case 409:
|
|
497
505
|
throw new Webflow.ConflictError(_response.error.body);
|
|
498
506
|
case 429:
|
|
499
|
-
throw new Webflow.TooManyRequestsError(
|
|
507
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
500
508
|
unrecognizedObjectKeys: "passthrough",
|
|
501
509
|
allowUnrecognizedUnionMembers: true,
|
|
502
510
|
allowUnrecognizedEnumValues: true,
|
|
@@ -547,7 +555,7 @@ class Orders {
|
|
|
547
555
|
* @throws {@link Webflow.InternalServerError}
|
|
548
556
|
*
|
|
549
557
|
* @example
|
|
550
|
-
* await client.orders.refund("
|
|
558
|
+
* await client.orders.refund("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
551
559
|
*/
|
|
552
560
|
refund(siteId, orderId, request = {}, requestOptions) {
|
|
553
561
|
var _a;
|
|
@@ -559,18 +567,20 @@ class Orders {
|
|
|
559
567
|
Authorization: yield this._getAuthorizationHeader(),
|
|
560
568
|
"X-Fern-Language": "JavaScript",
|
|
561
569
|
"X-Fern-SDK-Name": "webflow-api",
|
|
562
|
-
"X-Fern-SDK-Version": "2.
|
|
570
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
571
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
563
572
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
564
573
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
565
574
|
},
|
|
566
575
|
contentType: "application/json",
|
|
567
|
-
|
|
576
|
+
requestType: "json",
|
|
577
|
+
body: serializers.OrdersRefundRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
568
578
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
569
579
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
570
580
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
571
581
|
});
|
|
572
582
|
if (_response.ok) {
|
|
573
|
-
return
|
|
583
|
+
return serializers.Order.parseOrThrow(_response.body, {
|
|
574
584
|
unrecognizedObjectKeys: "passthrough",
|
|
575
585
|
allowUnrecognizedUnionMembers: true,
|
|
576
586
|
allowUnrecognizedEnumValues: true,
|
|
@@ -591,7 +601,7 @@ class Orders {
|
|
|
591
601
|
case 409:
|
|
592
602
|
throw new Webflow.ConflictError(_response.error.body);
|
|
593
603
|
case 429:
|
|
594
|
-
throw new Webflow.TooManyRequestsError(
|
|
604
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
595
605
|
unrecognizedObjectKeys: "passthrough",
|
|
596
606
|
allowUnrecognizedUnionMembers: true,
|
|
597
607
|
allowUnrecognizedEnumValues: true,
|
|
@@ -36,7 +36,9 @@ export declare class Pages {
|
|
|
36
36
|
* @throws {@link Webflow.InternalServerError}
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.pages.list("
|
|
39
|
+
* await client.pages.list("580e63e98c9a982ac9b8b741", {
|
|
40
|
+
* locale: "65427cf400e02b306eaa04a0"
|
|
41
|
+
* })
|
|
40
42
|
*/
|
|
41
43
|
list(siteId: string, request?: Webflow.PagesListRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.PageList>;
|
|
42
44
|
/**
|
|
@@ -53,9 +55,11 @@ export declare class Pages {
|
|
|
53
55
|
* @throws {@link Webflow.InternalServerError}
|
|
54
56
|
*
|
|
55
57
|
* @example
|
|
56
|
-
* await client.pages.getMetadata("
|
|
58
|
+
* await client.pages.getMetadata("63c720f9347c2139b248e552", {
|
|
59
|
+
* locale: "65427cf400e02b306eaa04a0"
|
|
60
|
+
* })
|
|
57
61
|
*/
|
|
58
|
-
getMetadata(pageId: string, request?: Webflow.PagesGetMetadataRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.
|
|
62
|
+
getMetadata(pageId: string, request?: Webflow.PagesGetMetadataRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.Page>;
|
|
59
63
|
/**
|
|
60
64
|
* Update Page-level metadata, including SEO and Open Graph fields. </br></br> Required scope | `pages:write`
|
|
61
65
|
*
|
|
@@ -70,7 +74,8 @@ export declare class Pages {
|
|
|
70
74
|
* @throws {@link Webflow.InternalServerError}
|
|
71
75
|
*
|
|
72
76
|
* @example
|
|
73
|
-
* await client.pages.updatePageSettings("
|
|
77
|
+
* await client.pages.updatePageSettings("63c720f9347c2139b248e552", {
|
|
78
|
+
* locale: "65427cf400e02b306eaa04a0",
|
|
74
79
|
* body: {
|
|
75
80
|
* id: "6596da6045e56dee495bcbba",
|
|
76
81
|
* siteId: "6258612d1ee792848f805dcf",
|
|
@@ -78,8 +83,8 @@ export declare class Pages {
|
|
|
78
83
|
* slug: "guide-to-the-galaxy",
|
|
79
84
|
* parentId: "6419db964a9c435aa3af6251",
|
|
80
85
|
* collectionId: "6390c49774a71f12831a08e3",
|
|
81
|
-
* createdOn:
|
|
82
|
-
* lastUpdated:
|
|
86
|
+
* createdOn: "2024-03-11T10:42:00Z",
|
|
87
|
+
* lastUpdated: "2024-03-11T10:42:42Z",
|
|
83
88
|
* archived: false,
|
|
84
89
|
* draft: false,
|
|
85
90
|
* canBranch: true,
|
|
@@ -92,11 +97,13 @@ export declare class Pages {
|
|
|
92
97
|
* titleCopied: false,
|
|
93
98
|
* description: "Dive deep into the mysteries of the universe with your guide to everything galactic.",
|
|
94
99
|
* descriptionCopied: false
|
|
95
|
-
* }
|
|
100
|
+
* },
|
|
101
|
+
* localeId: "653fd9af6a07fc9cfd7a5e57",
|
|
102
|
+
* publishedPath: "/en-us/guide-to-the-galaxy"
|
|
96
103
|
* }
|
|
97
104
|
* })
|
|
98
105
|
*/
|
|
99
|
-
updatePageSettings(pageId: string, request: Webflow.UpdatePageSettingsRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.
|
|
106
|
+
updatePageSettings(pageId: string, request: Webflow.UpdatePageSettingsRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.Page>;
|
|
100
107
|
/**
|
|
101
108
|
* Get static content from a static page. </br> If you do not provide a Locale ID in your request, the response will return any content that can be localized from the Primary locale</br></br> Required scope | `pages:read`
|
|
102
109
|
*
|
|
@@ -112,7 +119,9 @@ export declare class Pages {
|
|
|
112
119
|
* @throws {@link Webflow.InternalServerError}
|
|
113
120
|
*
|
|
114
121
|
* @example
|
|
115
|
-
* await client.pages.getContent("
|
|
122
|
+
* await client.pages.getContent("63c720f9347c2139b248e552", {
|
|
123
|
+
* locale: "65427cf400e02b306eaa04a0"
|
|
124
|
+
* })
|
|
116
125
|
*/
|
|
117
126
|
getContent(pageId: string, request?: Webflow.PagesGetContentRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.Dom>;
|
|
118
127
|
/**
|
|
@@ -134,7 +143,7 @@ export declare class Pages {
|
|
|
134
143
|
* @throws {@link Webflow.InternalServerError}
|
|
135
144
|
*
|
|
136
145
|
* @example
|
|
137
|
-
* await client.pages.updateStaticContent("
|
|
146
|
+
* await client.pages.updateStaticContent("63c720f9347c2139b248e552", {
|
|
138
147
|
* locale: "locale",
|
|
139
148
|
* nodes: [{
|
|
140
149
|
* nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623",
|
|
@@ -75,7 +75,9 @@ class Pages {
|
|
|
75
75
|
* @throws {@link Webflow.InternalServerError}
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
78
|
-
* await client.pages.list("
|
|
78
|
+
* await client.pages.list("580e63e98c9a982ac9b8b741", {
|
|
79
|
+
* locale: "65427cf400e02b306eaa04a0"
|
|
80
|
+
* })
|
|
79
81
|
*/
|
|
80
82
|
list(siteId, request = {}, requestOptions) {
|
|
81
83
|
var _a;
|
|
@@ -98,18 +100,20 @@ class Pages {
|
|
|
98
100
|
Authorization: yield this._getAuthorizationHeader(),
|
|
99
101
|
"X-Fern-Language": "JavaScript",
|
|
100
102
|
"X-Fern-SDK-Name": "webflow-api",
|
|
101
|
-
"X-Fern-SDK-Version": "2.
|
|
103
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
104
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
102
105
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
103
106
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
104
107
|
},
|
|
105
108
|
contentType: "application/json",
|
|
106
109
|
queryParameters: _queryParams,
|
|
110
|
+
requestType: "json",
|
|
107
111
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
108
112
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
109
113
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
110
114
|
});
|
|
111
115
|
if (_response.ok) {
|
|
112
|
-
return
|
|
116
|
+
return serializers.PageList.parseOrThrow(_response.body, {
|
|
113
117
|
unrecognizedObjectKeys: "passthrough",
|
|
114
118
|
allowUnrecognizedUnionMembers: true,
|
|
115
119
|
allowUnrecognizedEnumValues: true,
|
|
@@ -126,7 +130,7 @@ class Pages {
|
|
|
126
130
|
case 404:
|
|
127
131
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
128
132
|
case 429:
|
|
129
|
-
throw new Webflow.TooManyRequestsError(
|
|
133
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
130
134
|
unrecognizedObjectKeys: "passthrough",
|
|
131
135
|
allowUnrecognizedUnionMembers: true,
|
|
132
136
|
allowUnrecognizedEnumValues: true,
|
|
@@ -171,7 +175,9 @@ class Pages {
|
|
|
171
175
|
* @throws {@link Webflow.InternalServerError}
|
|
172
176
|
*
|
|
173
177
|
* @example
|
|
174
|
-
* await client.pages.getMetadata("
|
|
178
|
+
* await client.pages.getMetadata("63c720f9347c2139b248e552", {
|
|
179
|
+
* locale: "65427cf400e02b306eaa04a0"
|
|
180
|
+
* })
|
|
175
181
|
*/
|
|
176
182
|
getMetadata(pageId, request = {}, requestOptions) {
|
|
177
183
|
var _a;
|
|
@@ -188,18 +194,20 @@ class Pages {
|
|
|
188
194
|
Authorization: yield this._getAuthorizationHeader(),
|
|
189
195
|
"X-Fern-Language": "JavaScript",
|
|
190
196
|
"X-Fern-SDK-Name": "webflow-api",
|
|
191
|
-
"X-Fern-SDK-Version": "2.
|
|
197
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
198
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
192
199
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
193
200
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
194
201
|
},
|
|
195
202
|
contentType: "application/json",
|
|
196
203
|
queryParameters: _queryParams,
|
|
204
|
+
requestType: "json",
|
|
197
205
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
198
206
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
199
207
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
200
208
|
});
|
|
201
209
|
if (_response.ok) {
|
|
202
|
-
return
|
|
210
|
+
return serializers.Page.parseOrThrow(_response.body, {
|
|
203
211
|
unrecognizedObjectKeys: "passthrough",
|
|
204
212
|
allowUnrecognizedUnionMembers: true,
|
|
205
213
|
allowUnrecognizedEnumValues: true,
|
|
@@ -216,7 +224,7 @@ class Pages {
|
|
|
216
224
|
case 404:
|
|
217
225
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
218
226
|
case 429:
|
|
219
|
-
throw new Webflow.TooManyRequestsError(
|
|
227
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
220
228
|
unrecognizedObjectKeys: "passthrough",
|
|
221
229
|
allowUnrecognizedUnionMembers: true,
|
|
222
230
|
allowUnrecognizedEnumValues: true,
|
|
@@ -261,7 +269,8 @@ class Pages {
|
|
|
261
269
|
* @throws {@link Webflow.InternalServerError}
|
|
262
270
|
*
|
|
263
271
|
* @example
|
|
264
|
-
* await client.pages.updatePageSettings("
|
|
272
|
+
* await client.pages.updatePageSettings("63c720f9347c2139b248e552", {
|
|
273
|
+
* locale: "65427cf400e02b306eaa04a0",
|
|
265
274
|
* body: {
|
|
266
275
|
* id: "6596da6045e56dee495bcbba",
|
|
267
276
|
* siteId: "6258612d1ee792848f805dcf",
|
|
@@ -269,8 +278,8 @@ class Pages {
|
|
|
269
278
|
* slug: "guide-to-the-galaxy",
|
|
270
279
|
* parentId: "6419db964a9c435aa3af6251",
|
|
271
280
|
* collectionId: "6390c49774a71f12831a08e3",
|
|
272
|
-
* createdOn:
|
|
273
|
-
* lastUpdated:
|
|
281
|
+
* createdOn: "2024-03-11T10:42:00Z",
|
|
282
|
+
* lastUpdated: "2024-03-11T10:42:42Z",
|
|
274
283
|
* archived: false,
|
|
275
284
|
* draft: false,
|
|
276
285
|
* canBranch: true,
|
|
@@ -283,7 +292,9 @@ class Pages {
|
|
|
283
292
|
* titleCopied: false,
|
|
284
293
|
* description: "Dive deep into the mysteries of the universe with your guide to everything galactic.",
|
|
285
294
|
* descriptionCopied: false
|
|
286
|
-
* }
|
|
295
|
+
* },
|
|
296
|
+
* localeId: "653fd9af6a07fc9cfd7a5e57",
|
|
297
|
+
* publishedPath: "/en-us/guide-to-the-galaxy"
|
|
287
298
|
* }
|
|
288
299
|
* })
|
|
289
300
|
*/
|
|
@@ -302,19 +313,21 @@ class Pages {
|
|
|
302
313
|
Authorization: yield this._getAuthorizationHeader(),
|
|
303
314
|
"X-Fern-Language": "JavaScript",
|
|
304
315
|
"X-Fern-SDK-Name": "webflow-api",
|
|
305
|
-
"X-Fern-SDK-Version": "2.
|
|
316
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
317
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
306
318
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
307
319
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
308
320
|
},
|
|
309
321
|
contentType: "application/json",
|
|
310
322
|
queryParameters: _queryParams,
|
|
311
|
-
|
|
323
|
+
requestType: "json",
|
|
324
|
+
body: serializers.Page.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
312
325
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
313
326
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
314
327
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
315
328
|
});
|
|
316
329
|
if (_response.ok) {
|
|
317
|
-
return
|
|
330
|
+
return serializers.Page.parseOrThrow(_response.body, {
|
|
318
331
|
unrecognizedObjectKeys: "passthrough",
|
|
319
332
|
allowUnrecognizedUnionMembers: true,
|
|
320
333
|
allowUnrecognizedEnumValues: true,
|
|
@@ -331,7 +344,7 @@ class Pages {
|
|
|
331
344
|
case 404:
|
|
332
345
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
333
346
|
case 429:
|
|
334
|
-
throw new Webflow.TooManyRequestsError(
|
|
347
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
335
348
|
unrecognizedObjectKeys: "passthrough",
|
|
336
349
|
allowUnrecognizedUnionMembers: true,
|
|
337
350
|
allowUnrecognizedEnumValues: true,
|
|
@@ -377,7 +390,9 @@ class Pages {
|
|
|
377
390
|
* @throws {@link Webflow.InternalServerError}
|
|
378
391
|
*
|
|
379
392
|
* @example
|
|
380
|
-
* await client.pages.getContent("
|
|
393
|
+
* await client.pages.getContent("63c720f9347c2139b248e552", {
|
|
394
|
+
* locale: "65427cf400e02b306eaa04a0"
|
|
395
|
+
* })
|
|
381
396
|
*/
|
|
382
397
|
getContent(pageId, request = {}, requestOptions) {
|
|
383
398
|
var _a;
|
|
@@ -400,18 +415,20 @@ class Pages {
|
|
|
400
415
|
Authorization: yield this._getAuthorizationHeader(),
|
|
401
416
|
"X-Fern-Language": "JavaScript",
|
|
402
417
|
"X-Fern-SDK-Name": "webflow-api",
|
|
403
|
-
"X-Fern-SDK-Version": "2.
|
|
418
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
419
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
404
420
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
405
421
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
406
422
|
},
|
|
407
423
|
contentType: "application/json",
|
|
408
424
|
queryParameters: _queryParams,
|
|
425
|
+
requestType: "json",
|
|
409
426
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
410
427
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
411
428
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
412
429
|
});
|
|
413
430
|
if (_response.ok) {
|
|
414
|
-
return
|
|
431
|
+
return serializers.Dom.parseOrThrow(_response.body, {
|
|
415
432
|
unrecognizedObjectKeys: "passthrough",
|
|
416
433
|
allowUnrecognizedUnionMembers: true,
|
|
417
434
|
allowUnrecognizedEnumValues: true,
|
|
@@ -430,7 +447,7 @@ class Pages {
|
|
|
430
447
|
case 404:
|
|
431
448
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
432
449
|
case 429:
|
|
433
|
-
throw new Webflow.TooManyRequestsError(
|
|
450
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
434
451
|
unrecognizedObjectKeys: "passthrough",
|
|
435
452
|
allowUnrecognizedUnionMembers: true,
|
|
436
453
|
allowUnrecognizedEnumValues: true,
|
|
@@ -480,7 +497,7 @@ class Pages {
|
|
|
480
497
|
* @throws {@link Webflow.InternalServerError}
|
|
481
498
|
*
|
|
482
499
|
* @example
|
|
483
|
-
* await client.pages.updateStaticContent("
|
|
500
|
+
* await client.pages.updateStaticContent("63c720f9347c2139b248e552", {
|
|
484
501
|
* locale: "locale",
|
|
485
502
|
* nodes: [{
|
|
486
503
|
* nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623",
|
|
@@ -507,19 +524,21 @@ class Pages {
|
|
|
507
524
|
Authorization: yield this._getAuthorizationHeader(),
|
|
508
525
|
"X-Fern-Language": "JavaScript",
|
|
509
526
|
"X-Fern-SDK-Name": "webflow-api",
|
|
510
|
-
"X-Fern-SDK-Version": "2.
|
|
527
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
528
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
511
529
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
512
530
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
513
531
|
},
|
|
514
532
|
contentType: "application/json",
|
|
515
533
|
queryParameters: _queryParams,
|
|
516
|
-
|
|
534
|
+
requestType: "json",
|
|
535
|
+
body: serializers.DomWrite.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
517
536
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
518
537
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
519
538
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
520
539
|
});
|
|
521
540
|
if (_response.ok) {
|
|
522
|
-
return
|
|
541
|
+
return serializers.UpdateStaticContentResponse.parseOrThrow(_response.body, {
|
|
523
542
|
unrecognizedObjectKeys: "passthrough",
|
|
524
543
|
allowUnrecognizedUnionMembers: true,
|
|
525
544
|
allowUnrecognizedEnumValues: true,
|
|
@@ -538,7 +557,7 @@ class Pages {
|
|
|
538
557
|
case 404:
|
|
539
558
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
540
559
|
case 429:
|
|
541
|
-
throw new Webflow.TooManyRequestsError(
|
|
560
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
542
561
|
unrecognizedObjectKeys: "passthrough",
|
|
543
562
|
allowUnrecognizedUnionMembers: true,
|
|
544
563
|
allowUnrecognizedEnumValues: true,
|
|
@@ -5,6 +5,7 @@ import * as Webflow from "../../../../index";
|
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
+
* locale: "65427cf400e02b306eaa04a0",
|
|
8
9
|
* body: {
|
|
9
10
|
* id: "6596da6045e56dee495bcbba",
|
|
10
11
|
* siteId: "6258612d1ee792848f805dcf",
|
|
@@ -12,8 +13,8 @@ import * as Webflow from "../../../../index";
|
|
|
12
13
|
* slug: "guide-to-the-galaxy",
|
|
13
14
|
* parentId: "6419db964a9c435aa3af6251",
|
|
14
15
|
* collectionId: "6390c49774a71f12831a08e3",
|
|
15
|
-
* createdOn:
|
|
16
|
-
* lastUpdated:
|
|
16
|
+
* createdOn: "2024-03-11T10:42:00Z",
|
|
17
|
+
* lastUpdated: "2024-03-11T10:42:42Z",
|
|
17
18
|
* archived: false,
|
|
18
19
|
* draft: false,
|
|
19
20
|
* canBranch: true,
|
|
@@ -26,7 +27,9 @@ import * as Webflow from "../../../../index";
|
|
|
26
27
|
* titleCopied: false,
|
|
27
28
|
* description: "Dive deep into the mysteries of the universe with your guide to everything galactic.",
|
|
28
29
|
* descriptionCopied: false
|
|
29
|
-
* }
|
|
30
|
+
* },
|
|
31
|
+
* localeId: "653fd9af6a07fc9cfd7a5e57",
|
|
32
|
+
* publishedPath: "/en-us/guide-to-the-galaxy"
|
|
30
33
|
* }
|
|
31
34
|
* }
|
|
32
35
|
*/
|