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
|
@@ -65,7 +65,7 @@ class Forms {
|
|
|
65
65
|
* @throws {@link Webflow.InternalServerError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await client.forms.list("
|
|
68
|
+
* await client.forms.list("580e63e98c9a982ac9b8b741")
|
|
69
69
|
*/
|
|
70
70
|
list(siteId, request = {}, requestOptions) {
|
|
71
71
|
var _a;
|
|
@@ -85,18 +85,20 @@ class Forms {
|
|
|
85
85
|
Authorization: yield this._getAuthorizationHeader(),
|
|
86
86
|
"X-Fern-Language": "JavaScript",
|
|
87
87
|
"X-Fern-SDK-Name": "webflow-api",
|
|
88
|
-
"X-Fern-SDK-Version": "2.
|
|
88
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
89
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
89
90
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
90
91
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
91
92
|
},
|
|
92
93
|
contentType: "application/json",
|
|
93
94
|
queryParameters: _queryParams,
|
|
95
|
+
requestType: "json",
|
|
94
96
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
95
97
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
96
98
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
97
99
|
});
|
|
98
100
|
if (_response.ok) {
|
|
99
|
-
return
|
|
101
|
+
return serializers.FormList.parseOrThrow(_response.body, {
|
|
100
102
|
unrecognizedObjectKeys: "passthrough",
|
|
101
103
|
allowUnrecognizedUnionMembers: true,
|
|
102
104
|
allowUnrecognizedEnumValues: true,
|
|
@@ -117,7 +119,7 @@ class Forms {
|
|
|
117
119
|
case 409:
|
|
118
120
|
throw new Webflow.ConflictError(_response.error.body);
|
|
119
121
|
case 429:
|
|
120
|
-
throw new Webflow.TooManyRequestsError(
|
|
122
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
121
123
|
unrecognizedObjectKeys: "passthrough",
|
|
122
124
|
allowUnrecognizedUnionMembers: true,
|
|
123
125
|
allowUnrecognizedEnumValues: true,
|
|
@@ -162,7 +164,7 @@ class Forms {
|
|
|
162
164
|
* @throws {@link Webflow.InternalServerError}
|
|
163
165
|
*
|
|
164
166
|
* @example
|
|
165
|
-
* await client.forms.get("
|
|
167
|
+
* await client.forms.get("580e63e98c9a982ac9b8b741")
|
|
166
168
|
*/
|
|
167
169
|
get(formId, requestOptions) {
|
|
168
170
|
var _a;
|
|
@@ -174,17 +176,19 @@ class Forms {
|
|
|
174
176
|
Authorization: yield this._getAuthorizationHeader(),
|
|
175
177
|
"X-Fern-Language": "JavaScript",
|
|
176
178
|
"X-Fern-SDK-Name": "webflow-api",
|
|
177
|
-
"X-Fern-SDK-Version": "2.
|
|
179
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
180
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
178
181
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
179
182
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
180
183
|
},
|
|
181
184
|
contentType: "application/json",
|
|
185
|
+
requestType: "json",
|
|
182
186
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
183
187
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
184
188
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
185
189
|
});
|
|
186
190
|
if (_response.ok) {
|
|
187
|
-
return
|
|
191
|
+
return serializers.Form.parseOrThrow(_response.body, {
|
|
188
192
|
unrecognizedObjectKeys: "passthrough",
|
|
189
193
|
allowUnrecognizedUnionMembers: true,
|
|
190
194
|
allowUnrecognizedEnumValues: true,
|
|
@@ -203,7 +207,7 @@ class Forms {
|
|
|
203
207
|
case 404:
|
|
204
208
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
205
209
|
case 429:
|
|
206
|
-
throw new Webflow.TooManyRequestsError(
|
|
210
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
207
211
|
unrecognizedObjectKeys: "passthrough",
|
|
208
212
|
allowUnrecognizedUnionMembers: true,
|
|
209
213
|
allowUnrecognizedEnumValues: true,
|
|
@@ -249,7 +253,7 @@ class Forms {
|
|
|
249
253
|
* @throws {@link Webflow.InternalServerError}
|
|
250
254
|
*
|
|
251
255
|
* @example
|
|
252
|
-
* await client.forms.listSubmissions("
|
|
256
|
+
* await client.forms.listSubmissions("580e63e98c9a982ac9b8b741")
|
|
253
257
|
*/
|
|
254
258
|
listSubmissions(formId, request = {}, requestOptions) {
|
|
255
259
|
var _a;
|
|
@@ -269,18 +273,20 @@ class Forms {
|
|
|
269
273
|
Authorization: yield this._getAuthorizationHeader(),
|
|
270
274
|
"X-Fern-Language": "JavaScript",
|
|
271
275
|
"X-Fern-SDK-Name": "webflow-api",
|
|
272
|
-
"X-Fern-SDK-Version": "2.
|
|
276
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
277
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
273
278
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
274
279
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
275
280
|
},
|
|
276
281
|
contentType: "application/json",
|
|
277
282
|
queryParameters: _queryParams,
|
|
283
|
+
requestType: "json",
|
|
278
284
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
279
285
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
280
286
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
281
287
|
});
|
|
282
288
|
if (_response.ok) {
|
|
283
|
-
return
|
|
289
|
+
return serializers.FormSubmissionList.parseOrThrow(_response.body, {
|
|
284
290
|
unrecognizedObjectKeys: "passthrough",
|
|
285
291
|
allowUnrecognizedUnionMembers: true,
|
|
286
292
|
allowUnrecognizedEnumValues: true,
|
|
@@ -299,7 +305,7 @@ class Forms {
|
|
|
299
305
|
case 404:
|
|
300
306
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
301
307
|
case 429:
|
|
302
|
-
throw new Webflow.TooManyRequestsError(
|
|
308
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
303
309
|
unrecognizedObjectKeys: "passthrough",
|
|
304
310
|
allowUnrecognizedUnionMembers: true,
|
|
305
311
|
allowUnrecognizedEnumValues: true,
|
|
@@ -344,7 +350,7 @@ class Forms {
|
|
|
344
350
|
* @throws {@link Webflow.InternalServerError}
|
|
345
351
|
*
|
|
346
352
|
* @example
|
|
347
|
-
* await client.forms.getSubmission("
|
|
353
|
+
* await client.forms.getSubmission("580e63e98c9a982ac9b8b741")
|
|
348
354
|
*/
|
|
349
355
|
getSubmission(formSubmissionId, requestOptions) {
|
|
350
356
|
var _a;
|
|
@@ -356,17 +362,19 @@ class Forms {
|
|
|
356
362
|
Authorization: yield this._getAuthorizationHeader(),
|
|
357
363
|
"X-Fern-Language": "JavaScript",
|
|
358
364
|
"X-Fern-SDK-Name": "webflow-api",
|
|
359
|
-
"X-Fern-SDK-Version": "2.
|
|
365
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
366
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
360
367
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
361
368
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
362
369
|
},
|
|
363
370
|
contentType: "application/json",
|
|
371
|
+
requestType: "json",
|
|
364
372
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
365
373
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
366
374
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
367
375
|
});
|
|
368
376
|
if (_response.ok) {
|
|
369
|
-
return
|
|
377
|
+
return serializers.FormSubmission.parseOrThrow(_response.body, {
|
|
370
378
|
unrecognizedObjectKeys: "passthrough",
|
|
371
379
|
allowUnrecognizedUnionMembers: true,
|
|
372
380
|
allowUnrecognizedEnumValues: true,
|
|
@@ -385,7 +393,7 @@ class Forms {
|
|
|
385
393
|
case 404:
|
|
386
394
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
387
395
|
case 429:
|
|
388
|
-
throw new Webflow.TooManyRequestsError(
|
|
396
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
389
397
|
unrecognizedObjectKeys: "passthrough",
|
|
390
398
|
allowUnrecognizedUnionMembers: true,
|
|
391
399
|
allowUnrecognizedEnumValues: true,
|
|
@@ -432,7 +440,7 @@ class Forms {
|
|
|
432
440
|
* @throws {@link Webflow.InternalServerError}
|
|
433
441
|
*
|
|
434
442
|
* @example
|
|
435
|
-
* await client.forms.updateSubmission("
|
|
443
|
+
* await client.forms.updateSubmission("580e63e98c9a982ac9b8b741")
|
|
436
444
|
*/
|
|
437
445
|
updateSubmission(formSubmissionId, request = {}, requestOptions) {
|
|
438
446
|
var _a;
|
|
@@ -444,20 +452,20 @@ class Forms {
|
|
|
444
452
|
Authorization: yield this._getAuthorizationHeader(),
|
|
445
453
|
"X-Fern-Language": "JavaScript",
|
|
446
454
|
"X-Fern-SDK-Name": "webflow-api",
|
|
447
|
-
"X-Fern-SDK-Version": "2.
|
|
455
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
456
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
448
457
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
449
458
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
450
459
|
},
|
|
451
460
|
contentType: "application/json",
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
}),
|
|
461
|
+
requestType: "json",
|
|
462
|
+
body: serializers.FormsUpdateSubmissionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
455
463
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
456
464
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
457
465
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
458
466
|
});
|
|
459
467
|
if (_response.ok) {
|
|
460
|
-
return
|
|
468
|
+
return serializers.FormSubmission.parseOrThrow(_response.body, {
|
|
461
469
|
unrecognizedObjectKeys: "passthrough",
|
|
462
470
|
allowUnrecognizedUnionMembers: true,
|
|
463
471
|
allowUnrecognizedEnumValues: true,
|
|
@@ -478,7 +486,7 @@ class Forms {
|
|
|
478
486
|
case 409:
|
|
479
487
|
throw new Webflow.ConflictError(_response.error.body);
|
|
480
488
|
case 429:
|
|
481
|
-
throw new Webflow.TooManyRequestsError(
|
|
489
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
482
490
|
unrecognizedObjectKeys: "passthrough",
|
|
483
491
|
allowUnrecognizedUnionMembers: true,
|
|
484
492
|
allowUnrecognizedEnumValues: true,
|
package/api/resources/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export * as
|
|
1
|
+
export * as sites from "./sites";
|
|
2
|
+
export * from "./sites/types";
|
|
2
3
|
export * as pages from "./pages";
|
|
3
4
|
export * from "./pages/types";
|
|
4
5
|
export * as users from "./users";
|
|
@@ -11,8 +12,8 @@ export * as orders from "./orders";
|
|
|
11
12
|
export * from "./orders/types";
|
|
12
13
|
export * as inventory from "./inventory";
|
|
13
14
|
export * from "./inventory/types";
|
|
15
|
+
export * as collections from "./collections";
|
|
14
16
|
export * as token from "./token";
|
|
15
|
-
export * as sites from "./sites";
|
|
16
17
|
export * as scripts from "./scripts";
|
|
17
18
|
export * as assets from "./assets";
|
|
18
19
|
export * as webhooks from "./webhooks";
|
package/api/resources/index.js
CHANGED
|
@@ -26,8 +26,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ecommerce = exports.forms = exports.webhooks = exports.assets = exports.scripts = exports.
|
|
30
|
-
exports.
|
|
29
|
+
exports.ecommerce = exports.forms = exports.webhooks = exports.assets = exports.scripts = exports.token = exports.collections = exports.inventory = exports.orders = exports.products = exports.accessGroups = exports.users = exports.pages = exports.sites = void 0;
|
|
30
|
+
exports.sites = __importStar(require("./sites"));
|
|
31
|
+
__exportStar(require("./sites/types"), exports);
|
|
31
32
|
exports.pages = __importStar(require("./pages"));
|
|
32
33
|
__exportStar(require("./pages/types"), exports);
|
|
33
34
|
exports.users = __importStar(require("./users"));
|
|
@@ -40,8 +41,8 @@ exports.orders = __importStar(require("./orders"));
|
|
|
40
41
|
__exportStar(require("./orders/types"), exports);
|
|
41
42
|
exports.inventory = __importStar(require("./inventory"));
|
|
42
43
|
__exportStar(require("./inventory/types"), exports);
|
|
44
|
+
exports.collections = __importStar(require("./collections"));
|
|
43
45
|
exports.token = __importStar(require("./token"));
|
|
44
|
-
exports.sites = __importStar(require("./sites"));
|
|
45
46
|
exports.scripts = __importStar(require("./scripts"));
|
|
46
47
|
exports.assets = __importStar(require("./assets"));
|
|
47
48
|
exports.webhooks = __importStar(require("./webhooks"));
|
|
@@ -39,7 +39,7 @@ export declare class Inventory {
|
|
|
39
39
|
* @throws {@link Webflow.InternalServerError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await client.inventory.list("
|
|
42
|
+
* await client.inventory.list("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
|
|
43
43
|
*/
|
|
44
44
|
list(collectionId: string, itemId: string, requestOptions?: Inventory.RequestOptions): Promise<Webflow.InventoryItem>;
|
|
45
45
|
/**
|
|
@@ -61,8 +61,8 @@ export declare class Inventory {
|
|
|
61
61
|
* @throws {@link Webflow.InternalServerError}
|
|
62
62
|
*
|
|
63
63
|
* @example
|
|
64
|
-
* await client.inventory.update("
|
|
65
|
-
* inventoryType:
|
|
64
|
+
* await client.inventory.update("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
|
|
65
|
+
* inventoryType: "infinite"
|
|
66
66
|
* })
|
|
67
67
|
*/
|
|
68
68
|
update(collectionId: string, itemId: string, request: Webflow.InventoryUpdateRequest, requestOptions?: Inventory.RequestOptions): Promise<Webflow.InventoryItem>;
|
|
@@ -67,7 +67,7 @@ class Inventory {
|
|
|
67
67
|
* @throws {@link Webflow.InternalServerError}
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
|
-
* await client.inventory.list("
|
|
70
|
+
* await client.inventory.list("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
|
|
71
71
|
*/
|
|
72
72
|
list(collectionId, itemId, requestOptions) {
|
|
73
73
|
var _a;
|
|
@@ -79,17 +79,19 @@ class Inventory {
|
|
|
79
79
|
Authorization: yield this._getAuthorizationHeader(),
|
|
80
80
|
"X-Fern-Language": "JavaScript",
|
|
81
81
|
"X-Fern-SDK-Name": "webflow-api",
|
|
82
|
-
"X-Fern-SDK-Version": "2.
|
|
82
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
83
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
83
84
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
84
85
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
85
86
|
},
|
|
86
87
|
contentType: "application/json",
|
|
88
|
+
requestType: "json",
|
|
87
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
88
90
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
89
91
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
90
92
|
});
|
|
91
93
|
if (_response.ok) {
|
|
92
|
-
return
|
|
94
|
+
return serializers.InventoryItem.parseOrThrow(_response.body, {
|
|
93
95
|
unrecognizedObjectKeys: "passthrough",
|
|
94
96
|
allowUnrecognizedUnionMembers: true,
|
|
95
97
|
allowUnrecognizedEnumValues: true,
|
|
@@ -110,7 +112,7 @@ class Inventory {
|
|
|
110
112
|
case 409:
|
|
111
113
|
throw new Webflow.ConflictError(_response.error.body);
|
|
112
114
|
case 429:
|
|
113
|
-
throw new Webflow.TooManyRequestsError(
|
|
115
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
114
116
|
unrecognizedObjectKeys: "passthrough",
|
|
115
117
|
allowUnrecognizedUnionMembers: true,
|
|
116
118
|
allowUnrecognizedEnumValues: true,
|
|
@@ -160,8 +162,8 @@ class Inventory {
|
|
|
160
162
|
* @throws {@link Webflow.InternalServerError}
|
|
161
163
|
*
|
|
162
164
|
* @example
|
|
163
|
-
* await client.inventory.update("
|
|
164
|
-
* inventoryType:
|
|
165
|
+
* await client.inventory.update("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
|
|
166
|
+
* inventoryType: "infinite"
|
|
165
167
|
* })
|
|
166
168
|
*/
|
|
167
169
|
update(collectionId, itemId, request, requestOptions) {
|
|
@@ -174,18 +176,20 @@ class Inventory {
|
|
|
174
176
|
Authorization: yield this._getAuthorizationHeader(),
|
|
175
177
|
"X-Fern-Language": "JavaScript",
|
|
176
178
|
"X-Fern-SDK-Name": "webflow-api",
|
|
177
|
-
"X-Fern-SDK-Version": "2.
|
|
179
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
180
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
178
181
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
179
182
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
180
183
|
},
|
|
181
184
|
contentType: "application/json",
|
|
182
|
-
|
|
185
|
+
requestType: "json",
|
|
186
|
+
body: serializers.InventoryUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
183
187
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
184
188
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
185
189
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
186
190
|
});
|
|
187
191
|
if (_response.ok) {
|
|
188
|
-
return
|
|
192
|
+
return serializers.InventoryItem.parseOrThrow(_response.body, {
|
|
189
193
|
unrecognizedObjectKeys: "passthrough",
|
|
190
194
|
allowUnrecognizedUnionMembers: true,
|
|
191
195
|
allowUnrecognizedEnumValues: true,
|
|
@@ -206,7 +210,7 @@ class Inventory {
|
|
|
206
210
|
case 409:
|
|
207
211
|
throw new Webflow.ConflictError(_response.error.body);
|
|
208
212
|
case 429:
|
|
209
|
-
throw new Webflow.TooManyRequestsError(
|
|
213
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
210
214
|
unrecognizedObjectKeys: "passthrough",
|
|
211
215
|
allowUnrecognizedUnionMembers: true,
|
|
212
216
|
allowUnrecognizedEnumValues: true,
|
|
@@ -39,7 +39,7 @@ export declare class Orders {
|
|
|
39
39
|
* @throws {@link Webflow.InternalServerError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await client.orders.list("
|
|
42
|
+
* await client.orders.list("580e63e98c9a982ac9b8b741")
|
|
43
43
|
*/
|
|
44
44
|
list(siteId: string, request?: Webflow.OrdersListRequest, requestOptions?: Orders.RequestOptions): Promise<Webflow.OrderList>;
|
|
45
45
|
/**
|
|
@@ -60,7 +60,7 @@ export declare class Orders {
|
|
|
60
60
|
* @throws {@link Webflow.InternalServerError}
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
|
-
* await client.orders.get("
|
|
63
|
+
* await client.orders.get("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
64
64
|
*/
|
|
65
65
|
get(siteId: string, orderId: string, requestOptions?: Orders.RequestOptions): Promise<Webflow.Order>;
|
|
66
66
|
/**
|
|
@@ -82,7 +82,7 @@ export declare class Orders {
|
|
|
82
82
|
* @throws {@link Webflow.InternalServerError}
|
|
83
83
|
*
|
|
84
84
|
* @example
|
|
85
|
-
* await client.orders.update("
|
|
85
|
+
* await client.orders.update("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
86
86
|
*/
|
|
87
87
|
update(siteId: string, orderId: string, request?: Webflow.OrdersUpdateRequest, requestOptions?: Orders.RequestOptions): Promise<Webflow.Order>;
|
|
88
88
|
/**
|
|
@@ -104,7 +104,7 @@ export declare class Orders {
|
|
|
104
104
|
* @throws {@link Webflow.InternalServerError}
|
|
105
105
|
*
|
|
106
106
|
* @example
|
|
107
|
-
* await client.orders.updateFulfill("
|
|
107
|
+
* await client.orders.updateFulfill("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
108
108
|
*/
|
|
109
109
|
updateFulfill(siteId: string, orderId: string, request?: Webflow.OrdersUpdateFulfillRequest, requestOptions?: Orders.RequestOptions): Promise<Webflow.Order>;
|
|
110
110
|
/**
|
|
@@ -125,7 +125,7 @@ export declare class Orders {
|
|
|
125
125
|
* @throws {@link Webflow.InternalServerError}
|
|
126
126
|
*
|
|
127
127
|
* @example
|
|
128
|
-
* await client.orders.updateUnfulfill("
|
|
128
|
+
* await client.orders.updateUnfulfill("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
129
129
|
*/
|
|
130
130
|
updateUnfulfill(siteId: string, orderId: string, requestOptions?: Orders.RequestOptions): Promise<Webflow.Order>;
|
|
131
131
|
/**
|
|
@@ -148,7 +148,7 @@ export declare class Orders {
|
|
|
148
148
|
* @throws {@link Webflow.InternalServerError}
|
|
149
149
|
*
|
|
150
150
|
* @example
|
|
151
|
-
* await client.orders.refund("
|
|
151
|
+
* await client.orders.refund("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
152
152
|
*/
|
|
153
153
|
refund(siteId: string, orderId: string, request?: Webflow.OrdersRefundRequest, requestOptions?: Orders.RequestOptions): Promise<Webflow.Order>;
|
|
154
154
|
protected _getAuthorizationHeader(): Promise<string>;
|