webflow-api 2.3.5 → 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/errors/TooManyRequestsError.d.ts +2 -1
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/accessGroups/client/Client.d.ts +1 -1
- package/api/resources/accessGroups/client/Client.js +12 -4
- package/api/resources/assets/client/Client.d.ts +8 -8
- package/api/resources/assets/client/Client.js +98 -34
- package/api/resources/collections/client/Client.d.ts +5 -5
- package/api/resources/collections/client/Client.js +59 -19
- package/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
- package/api/resources/collections/resources/fields/client/Client.js +27 -11
- package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
- package/api/resources/collections/resources/items/client/Client.d.ts +19 -19
- package/api/resources/collections/resources/items/client/Client.js +175 -57
- 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 +12 -4
- package/api/resources/forms/client/Client.d.ts +7 -6
- package/api/resources/forms/client/Client.js +72 -24
- package/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
- package/api/resources/forms/client/requests/index.d.ts +1 -0
- package/api/resources/index.d.ts +3 -3
- package/api/resources/index.js +4 -4
- package/api/resources/inventory/client/Client.d.ts +3 -3
- package/api/resources/inventory/client/Client.js +26 -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 +75 -29
- package/api/resources/pages/client/Client.d.ts +24 -11
- package/api/resources/pages/client/Client.js +79 -26
- 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 +38 -14
- package/api/resources/products/client/Client.d.ts +6 -6
- package/api/resources/products/client/Client.js +76 -28
- package/api/resources/scripts/client/Client.d.ts +3 -3
- package/api/resources/scripts/client/Client.js +38 -14
- package/api/resources/sites/client/Client.d.ts +5 -7
- package/api/resources/sites/client/Client.js +55 -23
- 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 +12 -4
- package/api/resources/sites/resources/scripts/client/Client.d.ts +6 -6
- package/api/resources/sites/resources/scripts/client/Client.js +50 -18
- package/api/resources/sites/types/SitesPublishResponse.d.ts +10 -0
- package/api/resources/sites/types/index.d.ts +1 -0
- package/{serialization/resources/webhooks/client → api/resources/sites/types}/index.js +1 -1
- 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 +61 -21
- package/api/resources/webhooks/client/Client.d.ts +13 -8
- package/api/resources/webhooks/client/Client.js +56 -19
- package/api/resources/webhooks/client/index.d.ts +1 -1
- package/api/resources/webhooks/client/index.js +0 -15
- package/api/types/Asset.d.ts +10 -8
- package/api/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +3 -6
- package/{dist/api/resources/collections/resources/items → api}/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/Form.d.ts +2 -0
- package/api/types/FormSubmissionList.d.ts +1 -1
- package/api/types/MissingScopes.d.ts +10 -1
- package/api/types/NotEnterprisePlanSite.d.ts +10 -1
- package/api/types/{OauthScope.d.ts → OAuthScope.d.ts} +9 -1
- package/{dist/api/types/OauthScope.js → api/types/OAuthScope.js} +2 -0
- package/api/types/Page.d.ts +5 -1
- package/api/types/TooManyRequestsErrorBody.d.ts +9 -0
- package/api/types/UserLimitReached.d.ts +10 -1
- package/api/types/UsersNotEnabled.d.ts +10 -1
- package/api/types/Webhook.d.ts +5 -5
- package/api/types/WebhookFilter.d.ts +10 -0
- package/api/types/index.d.ts +6 -5
- package/api/types/index.js +6 -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/errors/TooManyRequestsError.d.ts +2 -1
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/accessGroups/client/Client.d.ts +1 -1
- package/dist/api/resources/accessGroups/client/Client.js +12 -4
- package/dist/api/resources/assets/client/Client.d.ts +8 -8
- package/dist/api/resources/assets/client/Client.js +98 -34
- package/dist/api/resources/collections/client/Client.d.ts +5 -5
- package/dist/api/resources/collections/client/Client.js +59 -19
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
- package/dist/api/resources/collections/resources/fields/client/Client.js +27 -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 +19 -19
- package/dist/api/resources/collections/resources/items/client/Client.js +175 -57
- 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 +12 -4
- package/dist/api/resources/forms/client/Client.d.ts +7 -6
- package/dist/api/resources/forms/client/Client.js +72 -24
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
- package/dist/api/resources/forms/client/requests/index.d.ts +1 -0
- package/dist/api/resources/index.d.ts +3 -3
- package/dist/api/resources/index.js +4 -4
- package/dist/api/resources/inventory/client/Client.d.ts +3 -3
- package/dist/api/resources/inventory/client/Client.js +26 -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 +75 -29
- package/dist/api/resources/pages/client/Client.d.ts +24 -11
- package/dist/api/resources/pages/client/Client.js +79 -26
- 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 +38 -14
- package/dist/api/resources/products/client/Client.d.ts +6 -6
- package/dist/api/resources/products/client/Client.js +76 -28
- package/dist/api/resources/scripts/client/Client.d.ts +3 -3
- package/dist/api/resources/scripts/client/Client.js +38 -14
- package/dist/api/resources/sites/client/Client.d.ts +5 -7
- package/dist/api/resources/sites/client/Client.js +55 -23
- 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 +12 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +6 -6
- package/dist/api/resources/sites/resources/scripts/client/Client.js +50 -18
- package/dist/api/resources/sites/types/SitesPublishResponse.d.ts +10 -0
- package/dist/api/resources/sites/types/index.d.ts +1 -0
- package/{serialization/resources/webhooks → dist/api/resources/sites/types}/index.js +1 -1
- 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 +61 -21
- package/dist/api/resources/webhooks/client/Client.d.ts +13 -8
- package/dist/api/resources/webhooks/client/Client.js +56 -19
- package/dist/api/resources/webhooks/client/index.d.ts +1 -1
- package/dist/api/resources/webhooks/client/index.js +0 -15
- package/dist/api/types/Asset.d.ts +10 -8
- package/dist/api/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +3 -6
- package/{api/resources/collections/resources/items → dist/api}/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/Form.d.ts +2 -0
- package/dist/api/types/FormSubmissionList.d.ts +1 -1
- package/dist/api/types/MissingScopes.d.ts +10 -1
- package/dist/api/types/NotEnterprisePlanSite.d.ts +10 -1
- package/dist/api/types/{OauthScope.d.ts → OAuthScope.d.ts} +9 -1
- package/{api/types/OauthScope.js → dist/api/types/OAuthScope.js} +2 -0
- package/dist/api/types/Page.d.ts +5 -1
- package/dist/api/types/TooManyRequestsErrorBody.d.ts +9 -0
- package/dist/api/types/TooManyRequestsErrorBody.js +5 -0
- package/dist/api/types/UserLimitReached.d.ts +10 -1
- package/dist/api/types/UsersNotEnabled.d.ts +10 -1
- package/dist/api/types/Webhook.d.ts +5 -5
- package/dist/api/types/WebhookFilter.d.ts +10 -0
- package/dist/api/types/WebhookFilter.js +5 -0
- package/dist/api/types/index.d.ts +6 -5
- package/dist/api/types/index.js +6 -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/resources/collections/resources/items/types/ItemsPublishItemResponse.js +34 -0
- 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 -4
- package/dist/serialization/resources/index.js +4 -5
- 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/{webhooks/client → sites/types}/index.js +1 -1
- package/dist/serialization/types/Asset.d.ts +5 -4
- package/dist/serialization/types/Asset.js +5 -4
- package/dist/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +5 -5
- package/dist/serialization/{resources/collections/resources/items/client/requests → 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/Form.d.ts +1 -0
- package/dist/serialization/types/Form.js +1 -0
- package/dist/serialization/types/FormSubmissionList.d.ts +1 -1
- package/dist/serialization/types/FormSubmissionList.js +1 -1
- 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/TooManyRequestsErrorBody.d.ts +15 -0
- package/{serialization/types/PageDetailsOpenGraph.js → dist/serialization/types/TooManyRequestsErrorBody.js} +6 -6
- 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/Webhook.d.ts +4 -3
- package/dist/serialization/types/Webhook.js +4 -3
- package/dist/serialization/types/WebhookFilter.d.ts +12 -0
- package/{serialization/types/PageDetailsSeo.js → dist/serialization/types/WebhookFilter.js} +3 -4
- package/dist/serialization/types/index.d.ts +5 -5
- package/dist/serialization/types/index.js +5 -5
- package/dist/version.d.ts +1 -0
- package/dist/{api/resources/webhooks/client/requests/index.js → version.js} +2 -0
- package/dist/wrapper/ItemsClient.d.ts +49 -1
- package/dist/wrapper/ItemsClient.js +219 -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/resources/collections/resources/items/types/ItemsPublishItemResponse.js +34 -0
- 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 -4
- package/serialization/resources/index.js +4 -5
- 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/{dist/serialization/resources/webhooks → serialization/resources/sites/types}/index.js +1 -1
- package/serialization/types/Asset.d.ts +5 -4
- package/serialization/types/Asset.js +5 -4
- package/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +5 -5
- package/serialization/{resources/collections/resources/items/client/requests → 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/Form.d.ts +1 -0
- package/serialization/types/Form.js +1 -0
- package/serialization/types/FormSubmissionList.d.ts +1 -1
- package/serialization/types/FormSubmissionList.js +1 -1
- 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/TooManyRequestsErrorBody.d.ts +15 -0
- package/{dist/serialization/types/PageDetailsOpenGraph.js → serialization/types/TooManyRequestsErrorBody.js} +6 -6
- 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/Webhook.d.ts +4 -3
- package/serialization/types/Webhook.js +4 -3
- package/serialization/types/WebhookFilter.d.ts +12 -0
- package/{dist/serialization/types/PageDetailsSeo.js → serialization/types/WebhookFilter.js} +3 -4
- package/serialization/types/index.d.ts +5 -5
- package/serialization/types/index.js +5 -5
- package/version.d.ts +1 -0
- package/{api/resources/webhooks/client/requests/index.js → version.js} +2 -0
- package/wrapper/ItemsClient.d.ts +49 -1
- package/wrapper/ItemsClient.js +219 -6
- package/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
- package/api/resources/webhooks/client/requests/index.d.ts +0 -1
- 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/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
- package/dist/api/resources/webhooks/client/requests/index.d.ts +0 -1
- package/dist/api/types/PageDetails.d.ts +0 -41
- package/dist/api/types/PageDetailsOpenGraph.d.ts +0 -16
- package/dist/api/types/PageDetailsSeo.d.ts +0 -12
- package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +0 -13
- package/dist/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -15
- package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js +0 -36
- package/dist/serialization/resources/webhooks/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/requests/index.js +0 -5
- package/dist/serialization/resources/webhooks/index.d.ts +0 -1
- package/dist/serialization/types/OauthScope.d.ts +0 -10
- package/dist/serialization/types/OauthScope.js +0 -52
- 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/PageDetailsSeo.d.ts +0 -13
- package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +0 -13
- package/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -15
- package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js +0 -36
- package/serialization/resources/webhooks/client/requests/index.d.ts +0 -1
- package/serialization/resources/webhooks/client/requests/index.js +0 -5
- package/serialization/resources/webhooks/index.d.ts +0 -1
- package/serialization/types/OauthScope.d.ts +0 -10
- package/serialization/types/OauthScope.js +0 -52
- 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/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 → forms/client/requests/FormsListSubmissionsRequest.js} +0 -0
- /package/api/resources/{webhooks/client/requests/WebhooksCreateRequest.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/{PageDetails.js → TooManyRequestsErrorBody.js} +0 -0
- /package/api/types/{PageDetailsOpenGraph.js → WebhookFilter.js} +0 -0
- /package/{api/types/PageDetailsSeo.js → dist/api/resources/collections/resources/items/types/ItemsPublishItemResponse.js} +0 -0
- /package/dist/api/resources/{webhooks/client/requests/WebhooksCreateRequest.js → forms/client/requests/FormsListSubmissionsRequest.js} +0 -0
- /package/dist/api/{types/PageDetails.js → resources/sites/types/SitesPublishResponse.js} +0 -0
- /package/dist/api/types/{PageDetailsOpenGraph.js → BulkCollectionItem.js} +0 -0
- /package/dist/api/types/{PageDetailsSeo.js → BulkCollectionItemFieldData.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,13 @@ class Items {
|
|
|
126
128
|
case 404:
|
|
127
129
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
128
130
|
case 429:
|
|
129
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
131
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
132
|
+
unrecognizedObjectKeys: "passthrough",
|
|
133
|
+
allowUnrecognizedUnionMembers: true,
|
|
134
|
+
allowUnrecognizedEnumValues: true,
|
|
135
|
+
skipValidation: true,
|
|
136
|
+
breadcrumbsPrefix: ["response"],
|
|
137
|
+
}));
|
|
130
138
|
case 500:
|
|
131
139
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
132
140
|
default:
|
|
@@ -152,7 +160,7 @@ class Items {
|
|
|
152
160
|
});
|
|
153
161
|
}
|
|
154
162
|
/**
|
|
155
|
-
* Create Item in a Collection.</br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use
|
|
163
|
+
* <style>.rm-Markdown.markdown-body a{color: #146EF5 !important;}</style> Create Item in a Collection.</br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use the bulk item endpoint.</a> </br></br> Required scope | <code>CMS:write</code>
|
|
156
164
|
*
|
|
157
165
|
* @param {string} collectionId - Unique identifier for a Collection
|
|
158
166
|
* @param {Webflow.CollectionItem} request
|
|
@@ -165,7 +173,7 @@ class Items {
|
|
|
165
173
|
* @throws {@link Webflow.InternalServerError}
|
|
166
174
|
*
|
|
167
175
|
* @example
|
|
168
|
-
* await client.collections.items.createItem("
|
|
176
|
+
* await client.collections.items.createItem("580e63fc8c9a982ac9b8b745", {
|
|
169
177
|
* id: "42b720ef280c7a7a3be8cabe",
|
|
170
178
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
171
179
|
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
@@ -189,18 +197,26 @@ class Items {
|
|
|
189
197
|
Authorization: yield this._getAuthorizationHeader(),
|
|
190
198
|
"X-Fern-Language": "JavaScript",
|
|
191
199
|
"X-Fern-SDK-Name": "webflow-api",
|
|
192
|
-
"X-Fern-SDK-Version": "2.
|
|
200
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
201
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
193
202
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
194
203
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
195
204
|
},
|
|
196
205
|
contentType: "application/json",
|
|
197
|
-
|
|
206
|
+
requestType: "json",
|
|
207
|
+
body: serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
198
208
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
199
209
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
200
210
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
201
211
|
});
|
|
202
212
|
if (_response.ok) {
|
|
203
|
-
return
|
|
213
|
+
return serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
214
|
+
unrecognizedObjectKeys: "passthrough",
|
|
215
|
+
allowUnrecognizedUnionMembers: true,
|
|
216
|
+
allowUnrecognizedEnumValues: true,
|
|
217
|
+
skipValidation: true,
|
|
218
|
+
breadcrumbsPrefix: ["response"],
|
|
219
|
+
});
|
|
204
220
|
}
|
|
205
221
|
if (_response.error.reason === "status-code") {
|
|
206
222
|
switch (_response.error.statusCode) {
|
|
@@ -211,7 +227,13 @@ class Items {
|
|
|
211
227
|
case 404:
|
|
212
228
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
213
229
|
case 429:
|
|
214
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
230
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
231
|
+
unrecognizedObjectKeys: "passthrough",
|
|
232
|
+
allowUnrecognizedUnionMembers: true,
|
|
233
|
+
allowUnrecognizedEnumValues: true,
|
|
234
|
+
skipValidation: true,
|
|
235
|
+
breadcrumbsPrefix: ["response"],
|
|
236
|
+
}));
|
|
215
237
|
case 500:
|
|
216
238
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
217
239
|
default:
|
|
@@ -250,7 +272,7 @@ class Items {
|
|
|
250
272
|
* @throws {@link Webflow.InternalServerError}
|
|
251
273
|
*
|
|
252
274
|
* @example
|
|
253
|
-
* await client.collections.items.listItemsLive("
|
|
275
|
+
* await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745")
|
|
254
276
|
*/
|
|
255
277
|
listItemsLive(collectionId, request = {}, requestOptions) {
|
|
256
278
|
var _a;
|
|
@@ -285,18 +307,20 @@ class Items {
|
|
|
285
307
|
Authorization: yield this._getAuthorizationHeader(),
|
|
286
308
|
"X-Fern-Language": "JavaScript",
|
|
287
309
|
"X-Fern-SDK-Name": "webflow-api",
|
|
288
|
-
"X-Fern-SDK-Version": "2.
|
|
310
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
311
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
289
312
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
290
313
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
291
314
|
},
|
|
292
315
|
contentType: "application/json",
|
|
293
316
|
queryParameters: _queryParams,
|
|
317
|
+
requestType: "json",
|
|
294
318
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
295
319
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
296
320
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
297
321
|
});
|
|
298
322
|
if (_response.ok) {
|
|
299
|
-
return
|
|
323
|
+
return serializers.CollectionItemList.parseOrThrow(_response.body, {
|
|
300
324
|
unrecognizedObjectKeys: "passthrough",
|
|
301
325
|
allowUnrecognizedUnionMembers: true,
|
|
302
326
|
allowUnrecognizedEnumValues: true,
|
|
@@ -313,7 +337,13 @@ class Items {
|
|
|
313
337
|
case 404:
|
|
314
338
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
315
339
|
case 429:
|
|
316
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
340
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
341
|
+
unrecognizedObjectKeys: "passthrough",
|
|
342
|
+
allowUnrecognizedUnionMembers: true,
|
|
343
|
+
allowUnrecognizedEnumValues: true,
|
|
344
|
+
skipValidation: true,
|
|
345
|
+
breadcrumbsPrefix: ["response"],
|
|
346
|
+
}));
|
|
317
347
|
case 500:
|
|
318
348
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
319
349
|
default:
|
|
@@ -352,7 +382,7 @@ class Items {
|
|
|
352
382
|
* @throws {@link Webflow.InternalServerError}
|
|
353
383
|
*
|
|
354
384
|
* @example
|
|
355
|
-
* await client.collections.items.createItemLive("
|
|
385
|
+
* await client.collections.items.createItemLive("580e63fc8c9a982ac9b8b745", {
|
|
356
386
|
* id: "42b720ef280c7a7a3be8cabe",
|
|
357
387
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
358
388
|
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
@@ -376,18 +406,26 @@ class Items {
|
|
|
376
406
|
Authorization: yield this._getAuthorizationHeader(),
|
|
377
407
|
"X-Fern-Language": "JavaScript",
|
|
378
408
|
"X-Fern-SDK-Name": "webflow-api",
|
|
379
|
-
"X-Fern-SDK-Version": "2.
|
|
409
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
410
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
380
411
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
381
412
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
382
413
|
},
|
|
383
414
|
contentType: "application/json",
|
|
384
|
-
|
|
415
|
+
requestType: "json",
|
|
416
|
+
body: serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
385
417
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
386
418
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
387
419
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
388
420
|
});
|
|
389
421
|
if (_response.ok) {
|
|
390
|
-
return
|
|
422
|
+
return serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
423
|
+
unrecognizedObjectKeys: "passthrough",
|
|
424
|
+
allowUnrecognizedUnionMembers: true,
|
|
425
|
+
allowUnrecognizedEnumValues: true,
|
|
426
|
+
skipValidation: true,
|
|
427
|
+
breadcrumbsPrefix: ["response"],
|
|
428
|
+
});
|
|
391
429
|
}
|
|
392
430
|
if (_response.error.reason === "status-code") {
|
|
393
431
|
switch (_response.error.statusCode) {
|
|
@@ -398,7 +436,13 @@ class Items {
|
|
|
398
436
|
case 404:
|
|
399
437
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
400
438
|
case 429:
|
|
401
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
439
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
440
|
+
unrecognizedObjectKeys: "passthrough",
|
|
441
|
+
allowUnrecognizedUnionMembers: true,
|
|
442
|
+
allowUnrecognizedEnumValues: true,
|
|
443
|
+
skipValidation: true,
|
|
444
|
+
breadcrumbsPrefix: ["response"],
|
|
445
|
+
}));
|
|
402
446
|
case 500:
|
|
403
447
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
404
448
|
default:
|
|
@@ -427,7 +471,7 @@ class Items {
|
|
|
427
471
|
* Create single Item in a Collection with multiple corresponding locales. </br></br> Required scope | `CMS:write`
|
|
428
472
|
*
|
|
429
473
|
* @param {string} collectionId - Unique identifier for a Collection
|
|
430
|
-
* @param {Webflow.
|
|
474
|
+
* @param {Webflow.BulkCollectionItem} request
|
|
431
475
|
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
432
476
|
*
|
|
433
477
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -437,7 +481,7 @@ class Items {
|
|
|
437
481
|
* @throws {@link Webflow.InternalServerError}
|
|
438
482
|
*
|
|
439
483
|
* @example
|
|
440
|
-
* await client.collections.items.createItemForMultipleLocales("
|
|
484
|
+
* await client.collections.items.createItemForMultipleLocales("580e63fc8c9a982ac9b8b745", {
|
|
441
485
|
* id: "580e64008c9a982ac9b8b754"
|
|
442
486
|
* })
|
|
443
487
|
*/
|
|
@@ -451,20 +495,26 @@ class Items {
|
|
|
451
495
|
Authorization: yield this._getAuthorizationHeader(),
|
|
452
496
|
"X-Fern-Language": "JavaScript",
|
|
453
497
|
"X-Fern-SDK-Name": "webflow-api",
|
|
454
|
-
"X-Fern-SDK-Version": "2.
|
|
498
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
499
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
455
500
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
456
501
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
457
502
|
},
|
|
458
503
|
contentType: "application/json",
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
}),
|
|
504
|
+
requestType: "json",
|
|
505
|
+
body: serializers.BulkCollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "passthrough" }),
|
|
462
506
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
463
507
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
464
508
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
465
509
|
});
|
|
466
510
|
if (_response.ok) {
|
|
467
|
-
return
|
|
511
|
+
return serializers.BulkCollectionItem.parseOrThrow(_response.body, {
|
|
512
|
+
unrecognizedObjectKeys: "passthrough",
|
|
513
|
+
allowUnrecognizedUnionMembers: true,
|
|
514
|
+
allowUnrecognizedEnumValues: true,
|
|
515
|
+
skipValidation: true,
|
|
516
|
+
breadcrumbsPrefix: ["response"],
|
|
517
|
+
});
|
|
468
518
|
}
|
|
469
519
|
if (_response.error.reason === "status-code") {
|
|
470
520
|
switch (_response.error.statusCode) {
|
|
@@ -475,7 +525,13 @@ class Items {
|
|
|
475
525
|
case 404:
|
|
476
526
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
477
527
|
case 429:
|
|
478
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
528
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
529
|
+
unrecognizedObjectKeys: "passthrough",
|
|
530
|
+
allowUnrecognizedUnionMembers: true,
|
|
531
|
+
allowUnrecognizedEnumValues: true,
|
|
532
|
+
skipValidation: true,
|
|
533
|
+
breadcrumbsPrefix: ["response"],
|
|
534
|
+
}));
|
|
479
535
|
case 500:
|
|
480
536
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
481
537
|
default:
|
|
@@ -515,7 +571,7 @@ class Items {
|
|
|
515
571
|
* @throws {@link Webflow.InternalServerError}
|
|
516
572
|
*
|
|
517
573
|
* @example
|
|
518
|
-
* await client.collections.items.getItem("
|
|
574
|
+
* await client.collections.items.getItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
|
|
519
575
|
*/
|
|
520
576
|
getItem(collectionId, itemId, request = {}, requestOptions) {
|
|
521
577
|
var _a;
|
|
@@ -532,18 +588,20 @@ class Items {
|
|
|
532
588
|
Authorization: yield this._getAuthorizationHeader(),
|
|
533
589
|
"X-Fern-Language": "JavaScript",
|
|
534
590
|
"X-Fern-SDK-Name": "webflow-api",
|
|
535
|
-
"X-Fern-SDK-Version": "2.
|
|
591
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
592
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
536
593
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
537
594
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
538
595
|
},
|
|
539
596
|
contentType: "application/json",
|
|
540
597
|
queryParameters: _queryParams,
|
|
598
|
+
requestType: "json",
|
|
541
599
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
542
600
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
543
601
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
544
602
|
});
|
|
545
603
|
if (_response.ok) {
|
|
546
|
-
return
|
|
604
|
+
return serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
547
605
|
unrecognizedObjectKeys: "passthrough",
|
|
548
606
|
allowUnrecognizedUnionMembers: true,
|
|
549
607
|
allowUnrecognizedEnumValues: true,
|
|
@@ -560,7 +618,13 @@ class Items {
|
|
|
560
618
|
case 404:
|
|
561
619
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
562
620
|
case 429:
|
|
563
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
621
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
622
|
+
unrecognizedObjectKeys: "passthrough",
|
|
623
|
+
allowUnrecognizedUnionMembers: true,
|
|
624
|
+
allowUnrecognizedEnumValues: true,
|
|
625
|
+
skipValidation: true,
|
|
626
|
+
breadcrumbsPrefix: ["response"],
|
|
627
|
+
}));
|
|
564
628
|
case 500:
|
|
565
629
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
566
630
|
default:
|
|
@@ -600,7 +664,7 @@ class Items {
|
|
|
600
664
|
* @throws {@link Webflow.InternalServerError}
|
|
601
665
|
*
|
|
602
666
|
* @example
|
|
603
|
-
* await client.collections.items.deleteItem("
|
|
667
|
+
* await client.collections.items.deleteItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
|
|
604
668
|
*/
|
|
605
669
|
deleteItem(collectionId, itemId, request = {}, requestOptions) {
|
|
606
670
|
var _a;
|
|
@@ -617,12 +681,14 @@ class Items {
|
|
|
617
681
|
Authorization: yield this._getAuthorizationHeader(),
|
|
618
682
|
"X-Fern-Language": "JavaScript",
|
|
619
683
|
"X-Fern-SDK-Name": "webflow-api",
|
|
620
|
-
"X-Fern-SDK-Version": "2.
|
|
684
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
685
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
621
686
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
622
687
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
623
688
|
},
|
|
624
689
|
contentType: "application/json",
|
|
625
690
|
queryParameters: _queryParams,
|
|
691
|
+
requestType: "json",
|
|
626
692
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
627
693
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
628
694
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -639,7 +705,13 @@ class Items {
|
|
|
639
705
|
case 404:
|
|
640
706
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
641
707
|
case 429:
|
|
642
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
708
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
709
|
+
unrecognizedObjectKeys: "passthrough",
|
|
710
|
+
allowUnrecognizedUnionMembers: true,
|
|
711
|
+
allowUnrecognizedEnumValues: true,
|
|
712
|
+
skipValidation: true,
|
|
713
|
+
breadcrumbsPrefix: ["response"],
|
|
714
|
+
}));
|
|
643
715
|
case 500:
|
|
644
716
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
645
717
|
default:
|
|
@@ -679,7 +751,7 @@ class Items {
|
|
|
679
751
|
* @throws {@link Webflow.InternalServerError}
|
|
680
752
|
*
|
|
681
753
|
* @example
|
|
682
|
-
* await client.collections.items.updateItem("
|
|
754
|
+
* await client.collections.items.updateItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
|
|
683
755
|
* id: "42b720ef280c7a7a3be8cabe",
|
|
684
756
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
685
757
|
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
@@ -703,18 +775,20 @@ class Items {
|
|
|
703
775
|
Authorization: yield this._getAuthorizationHeader(),
|
|
704
776
|
"X-Fern-Language": "JavaScript",
|
|
705
777
|
"X-Fern-SDK-Name": "webflow-api",
|
|
706
|
-
"X-Fern-SDK-Version": "2.
|
|
778
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
779
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
707
780
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
708
781
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
709
782
|
},
|
|
710
783
|
contentType: "application/json",
|
|
711
|
-
|
|
784
|
+
requestType: "json",
|
|
785
|
+
body: serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "passthrough" }),
|
|
712
786
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
713
787
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
714
788
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
715
789
|
});
|
|
716
790
|
if (_response.ok) {
|
|
717
|
-
return
|
|
791
|
+
return serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
718
792
|
unrecognizedObjectKeys: "passthrough",
|
|
719
793
|
allowUnrecognizedUnionMembers: true,
|
|
720
794
|
allowUnrecognizedEnumValues: true,
|
|
@@ -731,7 +805,13 @@ class Items {
|
|
|
731
805
|
case 404:
|
|
732
806
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
733
807
|
case 429:
|
|
734
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
808
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
809
|
+
unrecognizedObjectKeys: "passthrough",
|
|
810
|
+
allowUnrecognizedUnionMembers: true,
|
|
811
|
+
allowUnrecognizedEnumValues: true,
|
|
812
|
+
skipValidation: true,
|
|
813
|
+
breadcrumbsPrefix: ["response"],
|
|
814
|
+
}));
|
|
735
815
|
case 500:
|
|
736
816
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
737
817
|
default:
|
|
@@ -771,7 +851,7 @@ class Items {
|
|
|
771
851
|
* @throws {@link Webflow.InternalServerError}
|
|
772
852
|
*
|
|
773
853
|
* @example
|
|
774
|
-
* await client.collections.items.getItemLive("
|
|
854
|
+
* await client.collections.items.getItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
|
|
775
855
|
*/
|
|
776
856
|
getItemLive(collectionId, itemId, request = {}, requestOptions) {
|
|
777
857
|
var _a;
|
|
@@ -788,18 +868,20 @@ class Items {
|
|
|
788
868
|
Authorization: yield this._getAuthorizationHeader(),
|
|
789
869
|
"X-Fern-Language": "JavaScript",
|
|
790
870
|
"X-Fern-SDK-Name": "webflow-api",
|
|
791
|
-
"X-Fern-SDK-Version": "2.
|
|
871
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
872
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
792
873
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
793
874
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
794
875
|
},
|
|
795
876
|
contentType: "application/json",
|
|
796
877
|
queryParameters: _queryParams,
|
|
878
|
+
requestType: "json",
|
|
797
879
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
798
880
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
799
881
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
800
882
|
});
|
|
801
883
|
if (_response.ok) {
|
|
802
|
-
return
|
|
884
|
+
return serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
803
885
|
unrecognizedObjectKeys: "passthrough",
|
|
804
886
|
allowUnrecognizedUnionMembers: true,
|
|
805
887
|
allowUnrecognizedEnumValues: true,
|
|
@@ -816,7 +898,13 @@ class Items {
|
|
|
816
898
|
case 404:
|
|
817
899
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
818
900
|
case 429:
|
|
819
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
901
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
902
|
+
unrecognizedObjectKeys: "passthrough",
|
|
903
|
+
allowUnrecognizedUnionMembers: true,
|
|
904
|
+
allowUnrecognizedEnumValues: true,
|
|
905
|
+
skipValidation: true,
|
|
906
|
+
breadcrumbsPrefix: ["response"],
|
|
907
|
+
}));
|
|
820
908
|
case 500:
|
|
821
909
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
822
910
|
default:
|
|
@@ -842,7 +930,7 @@ class Items {
|
|
|
842
930
|
});
|
|
843
931
|
}
|
|
844
932
|
/**
|
|
845
|
-
* Remove a live item from the site. Removing a published item will unpublish the item from the live site and set it to draft. This endpoint does not currently support bulk deletion
|
|
933
|
+
* Remove a live item from the site. Removing a published item will unpublish the item from the live site and set it to draft. This endpoint does not currently support bulk deletion.</br></br> Required scope | `CMS:write`
|
|
846
934
|
*
|
|
847
935
|
* @param {string} collectionId - Unique identifier for a Collection
|
|
848
936
|
* @param {string} itemId - Unique identifier for an Item
|
|
@@ -856,7 +944,7 @@ class Items {
|
|
|
856
944
|
* @throws {@link Webflow.InternalServerError}
|
|
857
945
|
*
|
|
858
946
|
* @example
|
|
859
|
-
* await client.collections.items.deleteItemLive("
|
|
947
|
+
* await client.collections.items.deleteItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
|
|
860
948
|
*/
|
|
861
949
|
deleteItemLive(collectionId, itemId, request = {}, requestOptions) {
|
|
862
950
|
var _a;
|
|
@@ -873,12 +961,14 @@ class Items {
|
|
|
873
961
|
Authorization: yield this._getAuthorizationHeader(),
|
|
874
962
|
"X-Fern-Language": "JavaScript",
|
|
875
963
|
"X-Fern-SDK-Name": "webflow-api",
|
|
876
|
-
"X-Fern-SDK-Version": "2.
|
|
964
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
965
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
877
966
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
878
967
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
879
968
|
},
|
|
880
969
|
contentType: "application/json",
|
|
881
970
|
queryParameters: _queryParams,
|
|
971
|
+
requestType: "json",
|
|
882
972
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
883
973
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
884
974
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -895,7 +985,13 @@ class Items {
|
|
|
895
985
|
case 404:
|
|
896
986
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
897
987
|
case 429:
|
|
898
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
988
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
989
|
+
unrecognizedObjectKeys: "passthrough",
|
|
990
|
+
allowUnrecognizedUnionMembers: true,
|
|
991
|
+
allowUnrecognizedEnumValues: true,
|
|
992
|
+
skipValidation: true,
|
|
993
|
+
breadcrumbsPrefix: ["response"],
|
|
994
|
+
}));
|
|
899
995
|
case 500:
|
|
900
996
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
901
997
|
default:
|
|
@@ -935,7 +1031,7 @@ class Items {
|
|
|
935
1031
|
* @throws {@link Webflow.InternalServerError}
|
|
936
1032
|
*
|
|
937
1033
|
* @example
|
|
938
|
-
* await client.collections.items.updateItemLive("
|
|
1034
|
+
* await client.collections.items.updateItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
|
|
939
1035
|
* id: "42b720ef280c7a7a3be8cabe",
|
|
940
1036
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
941
1037
|
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
@@ -959,18 +1055,20 @@ class Items {
|
|
|
959
1055
|
Authorization: yield this._getAuthorizationHeader(),
|
|
960
1056
|
"X-Fern-Language": "JavaScript",
|
|
961
1057
|
"X-Fern-SDK-Name": "webflow-api",
|
|
962
|
-
"X-Fern-SDK-Version": "2.
|
|
1058
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
1059
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
963
1060
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
964
1061
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
965
1062
|
},
|
|
966
1063
|
contentType: "application/json",
|
|
967
|
-
|
|
1064
|
+
requestType: "json",
|
|
1065
|
+
body: serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "passthrough" }),
|
|
968
1066
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
969
1067
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
970
1068
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
971
1069
|
});
|
|
972
1070
|
if (_response.ok) {
|
|
973
|
-
return
|
|
1071
|
+
return serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
974
1072
|
unrecognizedObjectKeys: "passthrough",
|
|
975
1073
|
allowUnrecognizedUnionMembers: true,
|
|
976
1074
|
allowUnrecognizedEnumValues: true,
|
|
@@ -987,7 +1085,13 @@ class Items {
|
|
|
987
1085
|
case 404:
|
|
988
1086
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
989
1087
|
case 429:
|
|
990
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
1088
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
1089
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1090
|
+
allowUnrecognizedUnionMembers: true,
|
|
1091
|
+
allowUnrecognizedEnumValues: true,
|
|
1092
|
+
skipValidation: true,
|
|
1093
|
+
breadcrumbsPrefix: ["response"],
|
|
1094
|
+
}));
|
|
991
1095
|
case 500:
|
|
992
1096
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
993
1097
|
default:
|
|
@@ -1026,7 +1130,7 @@ class Items {
|
|
|
1026
1130
|
* @throws {@link Webflow.InternalServerError}
|
|
1027
1131
|
*
|
|
1028
1132
|
* @example
|
|
1029
|
-
* await client.collections.items.publishItem("
|
|
1133
|
+
* await client.collections.items.publishItem("580e63fc8c9a982ac9b8b745", {
|
|
1030
1134
|
* itemIds: ["itemIds"]
|
|
1031
1135
|
* })
|
|
1032
1136
|
*/
|
|
@@ -1040,12 +1144,14 @@ class Items {
|
|
|
1040
1144
|
Authorization: yield this._getAuthorizationHeader(),
|
|
1041
1145
|
"X-Fern-Language": "JavaScript",
|
|
1042
1146
|
"X-Fern-SDK-Name": "webflow-api",
|
|
1043
|
-
"X-Fern-SDK-Version": "2.
|
|
1147
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
1148
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
1044
1149
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
1045
1150
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
1046
1151
|
},
|
|
1047
1152
|
contentType: "application/json",
|
|
1048
|
-
|
|
1153
|
+
requestType: "json",
|
|
1154
|
+
body: serializers.collections.ItemsPublishItemRequest.jsonOrThrow(request, {
|
|
1049
1155
|
unrecognizedObjectKeys: "strip",
|
|
1050
1156
|
}),
|
|
1051
1157
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1053,7 +1159,13 @@ class Items {
|
|
|
1053
1159
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1054
1160
|
});
|
|
1055
1161
|
if (_response.ok) {
|
|
1056
|
-
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
|
+
});
|
|
1057
1169
|
}
|
|
1058
1170
|
if (_response.error.reason === "status-code") {
|
|
1059
1171
|
switch (_response.error.statusCode) {
|
|
@@ -1064,7 +1176,13 @@ class Items {
|
|
|
1064
1176
|
case 404:
|
|
1065
1177
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
1066
1178
|
case 429:
|
|
1067
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
1179
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
1180
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1181
|
+
allowUnrecognizedUnionMembers: true,
|
|
1182
|
+
allowUnrecognizedEnumValues: true,
|
|
1183
|
+
skipValidation: true,
|
|
1184
|
+
breadcrumbsPrefix: ["response"],
|
|
1185
|
+
}));
|
|
1068
1186
|
case 500:
|
|
1069
1187
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
1070
1188
|
default:
|
|
@@ -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>;
|