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
|
@@ -63,7 +63,7 @@ class Items {
|
|
|
63
63
|
* @throws {@link Webflow.InternalServerError}
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
|
-
* await client.collections.items.listItems("
|
|
66
|
+
* await client.collections.items.listItems("580e63fc8c9a982ac9b8b745")
|
|
67
67
|
*/
|
|
68
68
|
listItems(collectionId, request = {}, requestOptions) {
|
|
69
69
|
var _a;
|
|
@@ -98,18 +98,20 @@ class Items {
|
|
|
98
98
|
Authorization: yield this._getAuthorizationHeader(),
|
|
99
99
|
"X-Fern-Language": "JavaScript",
|
|
100
100
|
"X-Fern-SDK-Name": "webflow-api",
|
|
101
|
-
"X-Fern-SDK-Version": "2.
|
|
101
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
102
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
102
103
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
103
104
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
104
105
|
},
|
|
105
106
|
contentType: "application/json",
|
|
106
107
|
queryParameters: _queryParams,
|
|
108
|
+
requestType: "json",
|
|
107
109
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
108
110
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
109
111
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
110
112
|
});
|
|
111
113
|
if (_response.ok) {
|
|
112
|
-
return
|
|
114
|
+
return serializers.CollectionItemList.parseOrThrow(_response.body, {
|
|
113
115
|
unrecognizedObjectKeys: "passthrough",
|
|
114
116
|
allowUnrecognizedUnionMembers: true,
|
|
115
117
|
allowUnrecognizedEnumValues: true,
|
|
@@ -126,7 +128,7 @@ class Items {
|
|
|
126
128
|
case 404:
|
|
127
129
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
128
130
|
case 429:
|
|
129
|
-
throw new Webflow.TooManyRequestsError(
|
|
131
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
130
132
|
unrecognizedObjectKeys: "passthrough",
|
|
131
133
|
allowUnrecognizedUnionMembers: true,
|
|
132
134
|
allowUnrecognizedEnumValues: true,
|
|
@@ -171,7 +173,7 @@ class Items {
|
|
|
171
173
|
* @throws {@link Webflow.InternalServerError}
|
|
172
174
|
*
|
|
173
175
|
* @example
|
|
174
|
-
* await client.collections.items.createItem("
|
|
176
|
+
* await client.collections.items.createItem("580e63fc8c9a982ac9b8b745", {
|
|
175
177
|
* id: "42b720ef280c7a7a3be8cabe",
|
|
176
178
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
177
179
|
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
@@ -195,18 +197,26 @@ class Items {
|
|
|
195
197
|
Authorization: yield this._getAuthorizationHeader(),
|
|
196
198
|
"X-Fern-Language": "JavaScript",
|
|
197
199
|
"X-Fern-SDK-Name": "webflow-api",
|
|
198
|
-
"X-Fern-SDK-Version": "2.
|
|
200
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
201
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
199
202
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
200
203
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
201
204
|
},
|
|
202
205
|
contentType: "application/json",
|
|
203
|
-
|
|
206
|
+
requestType: "json",
|
|
207
|
+
body: serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
204
208
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
205
209
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
206
210
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
207
211
|
});
|
|
208
212
|
if (_response.ok) {
|
|
209
|
-
return
|
|
213
|
+
return serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
214
|
+
unrecognizedObjectKeys: "passthrough",
|
|
215
|
+
allowUnrecognizedUnionMembers: true,
|
|
216
|
+
allowUnrecognizedEnumValues: true,
|
|
217
|
+
skipValidation: true,
|
|
218
|
+
breadcrumbsPrefix: ["response"],
|
|
219
|
+
});
|
|
210
220
|
}
|
|
211
221
|
if (_response.error.reason === "status-code") {
|
|
212
222
|
switch (_response.error.statusCode) {
|
|
@@ -217,7 +227,7 @@ class Items {
|
|
|
217
227
|
case 404:
|
|
218
228
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
219
229
|
case 429:
|
|
220
|
-
throw new Webflow.TooManyRequestsError(
|
|
230
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
221
231
|
unrecognizedObjectKeys: "passthrough",
|
|
222
232
|
allowUnrecognizedUnionMembers: true,
|
|
223
233
|
allowUnrecognizedEnumValues: true,
|
|
@@ -262,7 +272,7 @@ class Items {
|
|
|
262
272
|
* @throws {@link Webflow.InternalServerError}
|
|
263
273
|
*
|
|
264
274
|
* @example
|
|
265
|
-
* await client.collections.items.listItemsLive("
|
|
275
|
+
* await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745")
|
|
266
276
|
*/
|
|
267
277
|
listItemsLive(collectionId, request = {}, requestOptions) {
|
|
268
278
|
var _a;
|
|
@@ -297,18 +307,20 @@ class Items {
|
|
|
297
307
|
Authorization: yield this._getAuthorizationHeader(),
|
|
298
308
|
"X-Fern-Language": "JavaScript",
|
|
299
309
|
"X-Fern-SDK-Name": "webflow-api",
|
|
300
|
-
"X-Fern-SDK-Version": "2.
|
|
310
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
311
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
301
312
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
302
313
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
303
314
|
},
|
|
304
315
|
contentType: "application/json",
|
|
305
316
|
queryParameters: _queryParams,
|
|
317
|
+
requestType: "json",
|
|
306
318
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
307
319
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
308
320
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
309
321
|
});
|
|
310
322
|
if (_response.ok) {
|
|
311
|
-
return
|
|
323
|
+
return serializers.CollectionItemList.parseOrThrow(_response.body, {
|
|
312
324
|
unrecognizedObjectKeys: "passthrough",
|
|
313
325
|
allowUnrecognizedUnionMembers: true,
|
|
314
326
|
allowUnrecognizedEnumValues: true,
|
|
@@ -325,7 +337,7 @@ class Items {
|
|
|
325
337
|
case 404:
|
|
326
338
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
327
339
|
case 429:
|
|
328
|
-
throw new Webflow.TooManyRequestsError(
|
|
340
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
329
341
|
unrecognizedObjectKeys: "passthrough",
|
|
330
342
|
allowUnrecognizedUnionMembers: true,
|
|
331
343
|
allowUnrecognizedEnumValues: true,
|
|
@@ -370,7 +382,7 @@ class Items {
|
|
|
370
382
|
* @throws {@link Webflow.InternalServerError}
|
|
371
383
|
*
|
|
372
384
|
* @example
|
|
373
|
-
* await client.collections.items.createItemLive("
|
|
385
|
+
* await client.collections.items.createItemLive("580e63fc8c9a982ac9b8b745", {
|
|
374
386
|
* id: "42b720ef280c7a7a3be8cabe",
|
|
375
387
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
376
388
|
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
@@ -394,18 +406,26 @@ class Items {
|
|
|
394
406
|
Authorization: yield this._getAuthorizationHeader(),
|
|
395
407
|
"X-Fern-Language": "JavaScript",
|
|
396
408
|
"X-Fern-SDK-Name": "webflow-api",
|
|
397
|
-
"X-Fern-SDK-Version": "2.
|
|
409
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
410
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
398
411
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
399
412
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
400
413
|
},
|
|
401
414
|
contentType: "application/json",
|
|
402
|
-
|
|
415
|
+
requestType: "json",
|
|
416
|
+
body: serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
403
417
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
404
418
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
405
419
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
406
420
|
});
|
|
407
421
|
if (_response.ok) {
|
|
408
|
-
return
|
|
422
|
+
return serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
423
|
+
unrecognizedObjectKeys: "passthrough",
|
|
424
|
+
allowUnrecognizedUnionMembers: true,
|
|
425
|
+
allowUnrecognizedEnumValues: true,
|
|
426
|
+
skipValidation: true,
|
|
427
|
+
breadcrumbsPrefix: ["response"],
|
|
428
|
+
});
|
|
409
429
|
}
|
|
410
430
|
if (_response.error.reason === "status-code") {
|
|
411
431
|
switch (_response.error.statusCode) {
|
|
@@ -416,7 +436,7 @@ class Items {
|
|
|
416
436
|
case 404:
|
|
417
437
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
418
438
|
case 429:
|
|
419
|
-
throw new Webflow.TooManyRequestsError(
|
|
439
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
420
440
|
unrecognizedObjectKeys: "passthrough",
|
|
421
441
|
allowUnrecognizedUnionMembers: true,
|
|
422
442
|
allowUnrecognizedEnumValues: true,
|
|
@@ -451,7 +471,7 @@ class Items {
|
|
|
451
471
|
* Create single Item in a Collection with multiple corresponding locales. </br></br> Required scope | `CMS:write`
|
|
452
472
|
*
|
|
453
473
|
* @param {string} collectionId - Unique identifier for a Collection
|
|
454
|
-
* @param {Webflow.
|
|
474
|
+
* @param {Webflow.BulkCollectionItem} request
|
|
455
475
|
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
456
476
|
*
|
|
457
477
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -461,7 +481,7 @@ class Items {
|
|
|
461
481
|
* @throws {@link Webflow.InternalServerError}
|
|
462
482
|
*
|
|
463
483
|
* @example
|
|
464
|
-
* await client.collections.items.createItemForMultipleLocales("
|
|
484
|
+
* await client.collections.items.createItemForMultipleLocales("580e63fc8c9a982ac9b8b745", {
|
|
465
485
|
* id: "580e64008c9a982ac9b8b754"
|
|
466
486
|
* })
|
|
467
487
|
*/
|
|
@@ -475,20 +495,26 @@ class Items {
|
|
|
475
495
|
Authorization: yield this._getAuthorizationHeader(),
|
|
476
496
|
"X-Fern-Language": "JavaScript",
|
|
477
497
|
"X-Fern-SDK-Name": "webflow-api",
|
|
478
|
-
"X-Fern-SDK-Version": "2.
|
|
498
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
499
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
479
500
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
480
501
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
481
502
|
},
|
|
482
503
|
contentType: "application/json",
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
}),
|
|
504
|
+
requestType: "json",
|
|
505
|
+
body: serializers.BulkCollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "passthrough" }),
|
|
486
506
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
487
507
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
488
508
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
489
509
|
});
|
|
490
510
|
if (_response.ok) {
|
|
491
|
-
return
|
|
511
|
+
return serializers.BulkCollectionItem.parseOrThrow(_response.body, {
|
|
512
|
+
unrecognizedObjectKeys: "passthrough",
|
|
513
|
+
allowUnrecognizedUnionMembers: true,
|
|
514
|
+
allowUnrecognizedEnumValues: true,
|
|
515
|
+
skipValidation: true,
|
|
516
|
+
breadcrumbsPrefix: ["response"],
|
|
517
|
+
});
|
|
492
518
|
}
|
|
493
519
|
if (_response.error.reason === "status-code") {
|
|
494
520
|
switch (_response.error.statusCode) {
|
|
@@ -499,7 +525,7 @@ class Items {
|
|
|
499
525
|
case 404:
|
|
500
526
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
501
527
|
case 429:
|
|
502
|
-
throw new Webflow.TooManyRequestsError(
|
|
528
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
503
529
|
unrecognizedObjectKeys: "passthrough",
|
|
504
530
|
allowUnrecognizedUnionMembers: true,
|
|
505
531
|
allowUnrecognizedEnumValues: true,
|
|
@@ -545,7 +571,7 @@ class Items {
|
|
|
545
571
|
* @throws {@link Webflow.InternalServerError}
|
|
546
572
|
*
|
|
547
573
|
* @example
|
|
548
|
-
* await client.collections.items.getItem("
|
|
574
|
+
* await client.collections.items.getItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
|
|
549
575
|
*/
|
|
550
576
|
getItem(collectionId, itemId, request = {}, requestOptions) {
|
|
551
577
|
var _a;
|
|
@@ -562,18 +588,20 @@ class Items {
|
|
|
562
588
|
Authorization: yield this._getAuthorizationHeader(),
|
|
563
589
|
"X-Fern-Language": "JavaScript",
|
|
564
590
|
"X-Fern-SDK-Name": "webflow-api",
|
|
565
|
-
"X-Fern-SDK-Version": "2.
|
|
591
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
592
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
566
593
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
567
594
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
568
595
|
},
|
|
569
596
|
contentType: "application/json",
|
|
570
597
|
queryParameters: _queryParams,
|
|
598
|
+
requestType: "json",
|
|
571
599
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
572
600
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
573
601
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
574
602
|
});
|
|
575
603
|
if (_response.ok) {
|
|
576
|
-
return
|
|
604
|
+
return serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
577
605
|
unrecognizedObjectKeys: "passthrough",
|
|
578
606
|
allowUnrecognizedUnionMembers: true,
|
|
579
607
|
allowUnrecognizedEnumValues: true,
|
|
@@ -590,7 +618,7 @@ class Items {
|
|
|
590
618
|
case 404:
|
|
591
619
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
592
620
|
case 429:
|
|
593
|
-
throw new Webflow.TooManyRequestsError(
|
|
621
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
594
622
|
unrecognizedObjectKeys: "passthrough",
|
|
595
623
|
allowUnrecognizedUnionMembers: true,
|
|
596
624
|
allowUnrecognizedEnumValues: true,
|
|
@@ -636,7 +664,7 @@ class Items {
|
|
|
636
664
|
* @throws {@link Webflow.InternalServerError}
|
|
637
665
|
*
|
|
638
666
|
* @example
|
|
639
|
-
* await client.collections.items.deleteItem("
|
|
667
|
+
* await client.collections.items.deleteItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
|
|
640
668
|
*/
|
|
641
669
|
deleteItem(collectionId, itemId, request = {}, requestOptions) {
|
|
642
670
|
var _a;
|
|
@@ -653,12 +681,14 @@ class Items {
|
|
|
653
681
|
Authorization: yield this._getAuthorizationHeader(),
|
|
654
682
|
"X-Fern-Language": "JavaScript",
|
|
655
683
|
"X-Fern-SDK-Name": "webflow-api",
|
|
656
|
-
"X-Fern-SDK-Version": "2.
|
|
684
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
685
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
657
686
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
658
687
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
659
688
|
},
|
|
660
689
|
contentType: "application/json",
|
|
661
690
|
queryParameters: _queryParams,
|
|
691
|
+
requestType: "json",
|
|
662
692
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
663
693
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
664
694
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -675,7 +705,7 @@ class Items {
|
|
|
675
705
|
case 404:
|
|
676
706
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
677
707
|
case 429:
|
|
678
|
-
throw new Webflow.TooManyRequestsError(
|
|
708
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
679
709
|
unrecognizedObjectKeys: "passthrough",
|
|
680
710
|
allowUnrecognizedUnionMembers: true,
|
|
681
711
|
allowUnrecognizedEnumValues: true,
|
|
@@ -721,7 +751,7 @@ class Items {
|
|
|
721
751
|
* @throws {@link Webflow.InternalServerError}
|
|
722
752
|
*
|
|
723
753
|
* @example
|
|
724
|
-
* await client.collections.items.updateItem("
|
|
754
|
+
* await client.collections.items.updateItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
|
|
725
755
|
* id: "42b720ef280c7a7a3be8cabe",
|
|
726
756
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
727
757
|
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
@@ -745,18 +775,20 @@ class Items {
|
|
|
745
775
|
Authorization: yield this._getAuthorizationHeader(),
|
|
746
776
|
"X-Fern-Language": "JavaScript",
|
|
747
777
|
"X-Fern-SDK-Name": "webflow-api",
|
|
748
|
-
"X-Fern-SDK-Version": "2.
|
|
778
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
779
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
749
780
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
750
781
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
751
782
|
},
|
|
752
783
|
contentType: "application/json",
|
|
753
|
-
|
|
784
|
+
requestType: "json",
|
|
785
|
+
body: serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "passthrough" }),
|
|
754
786
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
755
787
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
756
788
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
757
789
|
});
|
|
758
790
|
if (_response.ok) {
|
|
759
|
-
return
|
|
791
|
+
return serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
760
792
|
unrecognizedObjectKeys: "passthrough",
|
|
761
793
|
allowUnrecognizedUnionMembers: true,
|
|
762
794
|
allowUnrecognizedEnumValues: true,
|
|
@@ -773,7 +805,7 @@ class Items {
|
|
|
773
805
|
case 404:
|
|
774
806
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
775
807
|
case 429:
|
|
776
|
-
throw new Webflow.TooManyRequestsError(
|
|
808
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
777
809
|
unrecognizedObjectKeys: "passthrough",
|
|
778
810
|
allowUnrecognizedUnionMembers: true,
|
|
779
811
|
allowUnrecognizedEnumValues: true,
|
|
@@ -819,7 +851,7 @@ class Items {
|
|
|
819
851
|
* @throws {@link Webflow.InternalServerError}
|
|
820
852
|
*
|
|
821
853
|
* @example
|
|
822
|
-
* await client.collections.items.getItemLive("
|
|
854
|
+
* await client.collections.items.getItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
|
|
823
855
|
*/
|
|
824
856
|
getItemLive(collectionId, itemId, request = {}, requestOptions) {
|
|
825
857
|
var _a;
|
|
@@ -836,18 +868,20 @@ class Items {
|
|
|
836
868
|
Authorization: yield this._getAuthorizationHeader(),
|
|
837
869
|
"X-Fern-Language": "JavaScript",
|
|
838
870
|
"X-Fern-SDK-Name": "webflow-api",
|
|
839
|
-
"X-Fern-SDK-Version": "2.
|
|
871
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
872
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
840
873
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
841
874
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
842
875
|
},
|
|
843
876
|
contentType: "application/json",
|
|
844
877
|
queryParameters: _queryParams,
|
|
878
|
+
requestType: "json",
|
|
845
879
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
846
880
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
847
881
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
848
882
|
});
|
|
849
883
|
if (_response.ok) {
|
|
850
|
-
return
|
|
884
|
+
return serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
851
885
|
unrecognizedObjectKeys: "passthrough",
|
|
852
886
|
allowUnrecognizedUnionMembers: true,
|
|
853
887
|
allowUnrecognizedEnumValues: true,
|
|
@@ -864,7 +898,7 @@ class Items {
|
|
|
864
898
|
case 404:
|
|
865
899
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
866
900
|
case 429:
|
|
867
|
-
throw new Webflow.TooManyRequestsError(
|
|
901
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
868
902
|
unrecognizedObjectKeys: "passthrough",
|
|
869
903
|
allowUnrecognizedUnionMembers: true,
|
|
870
904
|
allowUnrecognizedEnumValues: true,
|
|
@@ -910,7 +944,7 @@ class Items {
|
|
|
910
944
|
* @throws {@link Webflow.InternalServerError}
|
|
911
945
|
*
|
|
912
946
|
* @example
|
|
913
|
-
* await client.collections.items.deleteItemLive("
|
|
947
|
+
* await client.collections.items.deleteItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
|
|
914
948
|
*/
|
|
915
949
|
deleteItemLive(collectionId, itemId, request = {}, requestOptions) {
|
|
916
950
|
var _a;
|
|
@@ -927,12 +961,14 @@ class Items {
|
|
|
927
961
|
Authorization: yield this._getAuthorizationHeader(),
|
|
928
962
|
"X-Fern-Language": "JavaScript",
|
|
929
963
|
"X-Fern-SDK-Name": "webflow-api",
|
|
930
|
-
"X-Fern-SDK-Version": "2.
|
|
964
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
965
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
931
966
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
932
967
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
933
968
|
},
|
|
934
969
|
contentType: "application/json",
|
|
935
970
|
queryParameters: _queryParams,
|
|
971
|
+
requestType: "json",
|
|
936
972
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
937
973
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
938
974
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -949,7 +985,7 @@ class Items {
|
|
|
949
985
|
case 404:
|
|
950
986
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
951
987
|
case 429:
|
|
952
|
-
throw new Webflow.TooManyRequestsError(
|
|
988
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
953
989
|
unrecognizedObjectKeys: "passthrough",
|
|
954
990
|
allowUnrecognizedUnionMembers: true,
|
|
955
991
|
allowUnrecognizedEnumValues: true,
|
|
@@ -995,7 +1031,7 @@ class Items {
|
|
|
995
1031
|
* @throws {@link Webflow.InternalServerError}
|
|
996
1032
|
*
|
|
997
1033
|
* @example
|
|
998
|
-
* await client.collections.items.updateItemLive("
|
|
1034
|
+
* await client.collections.items.updateItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
|
|
999
1035
|
* id: "42b720ef280c7a7a3be8cabe",
|
|
1000
1036
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
1001
1037
|
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
@@ -1019,18 +1055,20 @@ class Items {
|
|
|
1019
1055
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1020
1056
|
"X-Fern-Language": "JavaScript",
|
|
1021
1057
|
"X-Fern-SDK-Name": "webflow-api",
|
|
1022
|
-
"X-Fern-SDK-Version": "2.
|
|
1058
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
1059
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
1023
1060
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1024
1061
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1025
1062
|
},
|
|
1026
1063
|
contentType: "application/json",
|
|
1027
|
-
|
|
1064
|
+
requestType: "json",
|
|
1065
|
+
body: serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "passthrough" }),
|
|
1028
1066
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
1029
1067
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1030
1068
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1031
1069
|
});
|
|
1032
1070
|
if (_response.ok) {
|
|
1033
|
-
return
|
|
1071
|
+
return serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
1034
1072
|
unrecognizedObjectKeys: "passthrough",
|
|
1035
1073
|
allowUnrecognizedUnionMembers: true,
|
|
1036
1074
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1047,7 +1085,7 @@ class Items {
|
|
|
1047
1085
|
case 404:
|
|
1048
1086
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
1049
1087
|
case 429:
|
|
1050
|
-
throw new Webflow.TooManyRequestsError(
|
|
1088
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
1051
1089
|
unrecognizedObjectKeys: "passthrough",
|
|
1052
1090
|
allowUnrecognizedUnionMembers: true,
|
|
1053
1091
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1092,7 +1130,7 @@ class Items {
|
|
|
1092
1130
|
* @throws {@link Webflow.InternalServerError}
|
|
1093
1131
|
*
|
|
1094
1132
|
* @example
|
|
1095
|
-
* await client.collections.items.publishItem("
|
|
1133
|
+
* await client.collections.items.publishItem("580e63fc8c9a982ac9b8b745", {
|
|
1096
1134
|
* itemIds: ["itemIds"]
|
|
1097
1135
|
* })
|
|
1098
1136
|
*/
|
|
@@ -1106,12 +1144,14 @@ class Items {
|
|
|
1106
1144
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1107
1145
|
"X-Fern-Language": "JavaScript",
|
|
1108
1146
|
"X-Fern-SDK-Name": "webflow-api",
|
|
1109
|
-
"X-Fern-SDK-Version": "2.
|
|
1147
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
1148
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
1110
1149
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1111
1150
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1112
1151
|
},
|
|
1113
1152
|
contentType: "application/json",
|
|
1114
|
-
|
|
1153
|
+
requestType: "json",
|
|
1154
|
+
body: serializers.collections.ItemsPublishItemRequest.jsonOrThrow(request, {
|
|
1115
1155
|
unrecognizedObjectKeys: "strip",
|
|
1116
1156
|
}),
|
|
1117
1157
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1119,7 +1159,13 @@ class Items {
|
|
|
1119
1159
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1120
1160
|
});
|
|
1121
1161
|
if (_response.ok) {
|
|
1122
|
-
return
|
|
1162
|
+
return serializers.collections.ItemsPublishItemResponse.parseOrThrow(_response.body, {
|
|
1163
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1164
|
+
allowUnrecognizedUnionMembers: true,
|
|
1165
|
+
allowUnrecognizedEnumValues: true,
|
|
1166
|
+
skipValidation: true,
|
|
1167
|
+
breadcrumbsPrefix: ["response"],
|
|
1168
|
+
});
|
|
1123
1169
|
}
|
|
1124
1170
|
if (_response.error.reason === "status-code") {
|
|
1125
1171
|
switch (_response.error.statusCode) {
|
|
@@ -1130,7 +1176,7 @@ class Items {
|
|
|
1130
1176
|
case 404:
|
|
1131
1177
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
1132
1178
|
case 429:
|
|
1133
|
-
throw new Webflow.TooManyRequestsError(
|
|
1179
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
1134
1180
|
unrecognizedObjectKeys: "passthrough",
|
|
1135
1181
|
allowUnrecognizedUnionMembers: true,
|
|
1136
1182
|
allowUnrecognizedEnumValues: true,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export { type ItemsListItemsRequest } from "./ItemsListItemsRequest";
|
|
2
2
|
export { type ItemsListItemsLiveRequest } from "./ItemsListItemsLiveRequest";
|
|
3
|
-
export { type BulkCollectionItem } from "./BulkCollectionItem";
|
|
4
3
|
export { type ItemsGetItemRequest } from "./ItemsGetItemRequest";
|
|
5
4
|
export { type ItemsDeleteItemRequest } from "./ItemsDeleteItemRequest";
|
|
6
5
|
export { type ItemsGetItemLiveRequest } from "./ItemsGetItemLiveRequest";
|
|
@@ -2,4 +2,4 @@ export * from "./ItemsListItemsRequestSortBy";
|
|
|
2
2
|
export * from "./ItemsListItemsRequestSortOrder";
|
|
3
3
|
export * from "./ItemsListItemsLiveRequestSortBy";
|
|
4
4
|
export * from "./ItemsListItemsLiveRequestSortOrder";
|
|
5
|
-
export * from "./
|
|
5
|
+
export * from "./ItemsPublishItemResponse";
|
|
@@ -18,4 +18,4 @@ __exportStar(require("./ItemsListItemsRequestSortBy"), exports);
|
|
|
18
18
|
__exportStar(require("./ItemsListItemsRequestSortOrder"), exports);
|
|
19
19
|
__exportStar(require("./ItemsListItemsLiveRequestSortBy"), exports);
|
|
20
20
|
__exportStar(require("./ItemsListItemsLiveRequestSortOrder"), exports);
|
|
21
|
-
__exportStar(require("./
|
|
21
|
+
__exportStar(require("./ItemsPublishItemResponse"), exports);
|
|
@@ -38,7 +38,7 @@ export declare class Ecommerce {
|
|
|
38
38
|
* @throws {@link Webflow.InternalServerError}
|
|
39
39
|
*
|
|
40
40
|
* @example
|
|
41
|
-
* await client.ecommerce.getSettings("
|
|
41
|
+
* await client.ecommerce.getSettings("580e63e98c9a982ac9b8b741")
|
|
42
42
|
*/
|
|
43
43
|
getSettings(siteId: string, requestOptions?: Ecommerce.RequestOptions): Promise<Webflow.EcommerceSettings>;
|
|
44
44
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -66,7 +66,7 @@ class Ecommerce {
|
|
|
66
66
|
* @throws {@link Webflow.InternalServerError}
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
|
-
* await client.ecommerce.getSettings("
|
|
69
|
+
* await client.ecommerce.getSettings("580e63e98c9a982ac9b8b741")
|
|
70
70
|
*/
|
|
71
71
|
getSettings(siteId, requestOptions) {
|
|
72
72
|
var _a;
|
|
@@ -78,17 +78,19 @@ class Ecommerce {
|
|
|
78
78
|
Authorization: yield this._getAuthorizationHeader(),
|
|
79
79
|
"X-Fern-Language": "JavaScript",
|
|
80
80
|
"X-Fern-SDK-Name": "webflow-api",
|
|
81
|
-
"X-Fern-SDK-Version": "2.
|
|
81
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
82
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
82
83
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
83
84
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
84
85
|
},
|
|
85
86
|
contentType: "application/json",
|
|
87
|
+
requestType: "json",
|
|
86
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
87
89
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
88
90
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
89
91
|
});
|
|
90
92
|
if (_response.ok) {
|
|
91
|
-
return
|
|
93
|
+
return serializers.EcommerceSettings.parseOrThrow(_response.body, {
|
|
92
94
|
unrecognizedObjectKeys: "passthrough",
|
|
93
95
|
allowUnrecognizedUnionMembers: true,
|
|
94
96
|
allowUnrecognizedEnumValues: true,
|
|
@@ -109,7 +111,7 @@ class Ecommerce {
|
|
|
109
111
|
case 409:
|
|
110
112
|
throw new Webflow.ConflictError(_response.error.body);
|
|
111
113
|
case 429:
|
|
112
|
-
throw new Webflow.TooManyRequestsError(
|
|
114
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
113
115
|
unrecognizedObjectKeys: "passthrough",
|
|
114
116
|
allowUnrecognizedUnionMembers: true,
|
|
115
117
|
allowUnrecognizedEnumValues: true,
|
|
@@ -37,7 +37,7 @@ export declare class Forms {
|
|
|
37
37
|
* @throws {@link Webflow.InternalServerError}
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
|
-
* await client.forms.list("
|
|
40
|
+
* await client.forms.list("580e63e98c9a982ac9b8b741")
|
|
41
41
|
*/
|
|
42
42
|
list(siteId: string, request?: Webflow.FormsListRequest, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormList>;
|
|
43
43
|
/**
|
|
@@ -54,7 +54,7 @@ export declare class Forms {
|
|
|
54
54
|
* @throws {@link Webflow.InternalServerError}
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
|
-
* await client.forms.get("
|
|
57
|
+
* await client.forms.get("580e63e98c9a982ac9b8b741")
|
|
58
58
|
*/
|
|
59
59
|
get(formId: string, requestOptions?: Forms.RequestOptions): Promise<Webflow.Form>;
|
|
60
60
|
/**
|
|
@@ -72,7 +72,7 @@ export declare class Forms {
|
|
|
72
72
|
* @throws {@link Webflow.InternalServerError}
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
|
-
* await client.forms.listSubmissions("
|
|
75
|
+
* await client.forms.listSubmissions("580e63e98c9a982ac9b8b741")
|
|
76
76
|
*/
|
|
77
77
|
listSubmissions(formId: string, request?: Webflow.FormsListSubmissionsRequest, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormSubmissionList>;
|
|
78
78
|
/**
|
|
@@ -89,7 +89,7 @@ export declare class Forms {
|
|
|
89
89
|
* @throws {@link Webflow.InternalServerError}
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
|
-
* await client.forms.getSubmission("
|
|
92
|
+
* await client.forms.getSubmission("580e63e98c9a982ac9b8b741")
|
|
93
93
|
*/
|
|
94
94
|
getSubmission(formSubmissionId: string, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormSubmission>;
|
|
95
95
|
/**
|
|
@@ -108,7 +108,7 @@ export declare class Forms {
|
|
|
108
108
|
* @throws {@link Webflow.InternalServerError}
|
|
109
109
|
*
|
|
110
110
|
* @example
|
|
111
|
-
* await client.forms.updateSubmission("
|
|
111
|
+
* await client.forms.updateSubmission("580e63e98c9a982ac9b8b741")
|
|
112
112
|
*/
|
|
113
113
|
updateSubmission(formSubmissionId: string, request?: Webflow.FormsUpdateSubmissionRequest, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormSubmission>;
|
|
114
114
|
protected _getAuthorizationHeader(): Promise<string>;
|