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
|
@@ -66,7 +66,7 @@ class Ecommerce {
|
|
|
66
66
|
* @throws {@link Webflow.InternalServerError}
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
|
-
* await client.ecommerce.getSettings("
|
|
69
|
+
* await client.ecommerce.getSettings("580e63e98c9a982ac9b8b741")
|
|
70
70
|
*/
|
|
71
71
|
getSettings(siteId, requestOptions) {
|
|
72
72
|
var _a;
|
|
@@ -78,17 +78,19 @@ class Ecommerce {
|
|
|
78
78
|
Authorization: yield this._getAuthorizationHeader(),
|
|
79
79
|
"X-Fern-Language": "JavaScript",
|
|
80
80
|
"X-Fern-SDK-Name": "webflow-api",
|
|
81
|
-
"X-Fern-SDK-Version": "2.
|
|
81
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
82
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
82
83
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
83
84
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
84
85
|
},
|
|
85
86
|
contentType: "application/json",
|
|
87
|
+
requestType: "json",
|
|
86
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
87
89
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
88
90
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
89
91
|
});
|
|
90
92
|
if (_response.ok) {
|
|
91
|
-
return
|
|
93
|
+
return serializers.EcommerceSettings.parseOrThrow(_response.body, {
|
|
92
94
|
unrecognizedObjectKeys: "passthrough",
|
|
93
95
|
allowUnrecognizedUnionMembers: true,
|
|
94
96
|
allowUnrecognizedEnumValues: true,
|
|
@@ -109,7 +111,13 @@ class Ecommerce {
|
|
|
109
111
|
case 409:
|
|
110
112
|
throw new Webflow.ConflictError(_response.error.body);
|
|
111
113
|
case 429:
|
|
112
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
114
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
115
|
+
unrecognizedObjectKeys: "passthrough",
|
|
116
|
+
allowUnrecognizedUnionMembers: true,
|
|
117
|
+
allowUnrecognizedEnumValues: true,
|
|
118
|
+
skipValidation: true,
|
|
119
|
+
breadcrumbsPrefix: ["response"],
|
|
120
|
+
}));
|
|
113
121
|
case 500:
|
|
114
122
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
115
123
|
default:
|
|
@@ -37,7 +37,7 @@ export declare class Forms {
|
|
|
37
37
|
* @throws {@link Webflow.InternalServerError}
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
|
-
* await client.forms.list("
|
|
40
|
+
* await client.forms.list("580e63e98c9a982ac9b8b741")
|
|
41
41
|
*/
|
|
42
42
|
list(siteId: string, request?: Webflow.FormsListRequest, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormList>;
|
|
43
43
|
/**
|
|
@@ -54,13 +54,14 @@ export declare class Forms {
|
|
|
54
54
|
* @throws {@link Webflow.InternalServerError}
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
|
-
* await client.forms.get("
|
|
57
|
+
* await client.forms.get("580e63e98c9a982ac9b8b741")
|
|
58
58
|
*/
|
|
59
59
|
get(formId: string, requestOptions?: Forms.RequestOptions): Promise<Webflow.Form>;
|
|
60
60
|
/**
|
|
61
61
|
* List form submissions for a given form </br></br> Required scope | `forms:read`
|
|
62
62
|
*
|
|
63
63
|
* @param {string} formId - Unique identifier for a Form
|
|
64
|
+
* @param {Webflow.FormsListSubmissionsRequest} request
|
|
64
65
|
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
66
|
*
|
|
66
67
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -71,9 +72,9 @@ export declare class Forms {
|
|
|
71
72
|
* @throws {@link Webflow.InternalServerError}
|
|
72
73
|
*
|
|
73
74
|
* @example
|
|
74
|
-
* await client.forms.listSubmissions("
|
|
75
|
+
* await client.forms.listSubmissions("580e63e98c9a982ac9b8b741")
|
|
75
76
|
*/
|
|
76
|
-
listSubmissions(formId: string, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormSubmissionList>;
|
|
77
|
+
listSubmissions(formId: string, request?: Webflow.FormsListSubmissionsRequest, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormSubmissionList>;
|
|
77
78
|
/**
|
|
78
79
|
* Get information about a given form submission</br></br> Required scope | `forms:read`
|
|
79
80
|
*
|
|
@@ -88,7 +89,7 @@ export declare class Forms {
|
|
|
88
89
|
* @throws {@link Webflow.InternalServerError}
|
|
89
90
|
*
|
|
90
91
|
* @example
|
|
91
|
-
* await client.forms.getSubmission("
|
|
92
|
+
* await client.forms.getSubmission("580e63e98c9a982ac9b8b741")
|
|
92
93
|
*/
|
|
93
94
|
getSubmission(formSubmissionId: string, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormSubmission>;
|
|
94
95
|
/**
|
|
@@ -107,7 +108,7 @@ export declare class Forms {
|
|
|
107
108
|
* @throws {@link Webflow.InternalServerError}
|
|
108
109
|
*
|
|
109
110
|
* @example
|
|
110
|
-
* await client.forms.updateSubmission("
|
|
111
|
+
* await client.forms.updateSubmission("580e63e98c9a982ac9b8b741")
|
|
111
112
|
*/
|
|
112
113
|
updateSubmission(formSubmissionId: string, request?: Webflow.FormsUpdateSubmissionRequest, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormSubmission>;
|
|
113
114
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -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,13 @@ class Forms {
|
|
|
117
119
|
case 409:
|
|
118
120
|
throw new Webflow.ConflictError(_response.error.body);
|
|
119
121
|
case 429:
|
|
120
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
122
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
123
|
+
unrecognizedObjectKeys: "passthrough",
|
|
124
|
+
allowUnrecognizedUnionMembers: true,
|
|
125
|
+
allowUnrecognizedEnumValues: true,
|
|
126
|
+
skipValidation: true,
|
|
127
|
+
breadcrumbsPrefix: ["response"],
|
|
128
|
+
}));
|
|
121
129
|
case 500:
|
|
122
130
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
123
131
|
default:
|
|
@@ -156,7 +164,7 @@ class Forms {
|
|
|
156
164
|
* @throws {@link Webflow.InternalServerError}
|
|
157
165
|
*
|
|
158
166
|
* @example
|
|
159
|
-
* await client.forms.get("
|
|
167
|
+
* await client.forms.get("580e63e98c9a982ac9b8b741")
|
|
160
168
|
*/
|
|
161
169
|
get(formId, requestOptions) {
|
|
162
170
|
var _a;
|
|
@@ -168,17 +176,19 @@ class Forms {
|
|
|
168
176
|
Authorization: yield this._getAuthorizationHeader(),
|
|
169
177
|
"X-Fern-Language": "JavaScript",
|
|
170
178
|
"X-Fern-SDK-Name": "webflow-api",
|
|
171
|
-
"X-Fern-SDK-Version": "2.
|
|
179
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
180
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
172
181
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
173
182
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
174
183
|
},
|
|
175
184
|
contentType: "application/json",
|
|
185
|
+
requestType: "json",
|
|
176
186
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
177
187
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
178
188
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
179
189
|
});
|
|
180
190
|
if (_response.ok) {
|
|
181
|
-
return
|
|
191
|
+
return serializers.Form.parseOrThrow(_response.body, {
|
|
182
192
|
unrecognizedObjectKeys: "passthrough",
|
|
183
193
|
allowUnrecognizedUnionMembers: true,
|
|
184
194
|
allowUnrecognizedEnumValues: true,
|
|
@@ -197,7 +207,13 @@ class Forms {
|
|
|
197
207
|
case 404:
|
|
198
208
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
199
209
|
case 429:
|
|
200
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
210
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
211
|
+
unrecognizedObjectKeys: "passthrough",
|
|
212
|
+
allowUnrecognizedUnionMembers: true,
|
|
213
|
+
allowUnrecognizedEnumValues: true,
|
|
214
|
+
skipValidation: true,
|
|
215
|
+
breadcrumbsPrefix: ["response"],
|
|
216
|
+
}));
|
|
201
217
|
case 500:
|
|
202
218
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
203
219
|
default:
|
|
@@ -226,6 +242,7 @@ class Forms {
|
|
|
226
242
|
* List form submissions for a given form </br></br> Required scope | `forms:read`
|
|
227
243
|
*
|
|
228
244
|
* @param {string} formId - Unique identifier for a Form
|
|
245
|
+
* @param {Webflow.FormsListSubmissionsRequest} request
|
|
229
246
|
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
230
247
|
*
|
|
231
248
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -236,11 +253,19 @@ class Forms {
|
|
|
236
253
|
* @throws {@link Webflow.InternalServerError}
|
|
237
254
|
*
|
|
238
255
|
* @example
|
|
239
|
-
* await client.forms.listSubmissions("
|
|
256
|
+
* await client.forms.listSubmissions("580e63e98c9a982ac9b8b741")
|
|
240
257
|
*/
|
|
241
|
-
listSubmissions(formId, requestOptions) {
|
|
258
|
+
listSubmissions(formId, request = {}, requestOptions) {
|
|
242
259
|
var _a;
|
|
243
260
|
return __awaiter(this, void 0, void 0, function* () {
|
|
261
|
+
const { offset, limit } = request;
|
|
262
|
+
const _queryParams = {};
|
|
263
|
+
if (offset != null) {
|
|
264
|
+
_queryParams["offset"] = offset.toString();
|
|
265
|
+
}
|
|
266
|
+
if (limit != null) {
|
|
267
|
+
_queryParams["limit"] = limit.toString();
|
|
268
|
+
}
|
|
244
269
|
const _response = yield core.fetcher({
|
|
245
270
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `forms/${encodeURIComponent(formId)}/submissions`),
|
|
246
271
|
method: "GET",
|
|
@@ -248,17 +273,20 @@ class Forms {
|
|
|
248
273
|
Authorization: yield this._getAuthorizationHeader(),
|
|
249
274
|
"X-Fern-Language": "JavaScript",
|
|
250
275
|
"X-Fern-SDK-Name": "webflow-api",
|
|
251
|
-
"X-Fern-SDK-Version": "2.
|
|
276
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
277
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
252
278
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
253
279
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
254
280
|
},
|
|
255
281
|
contentType: "application/json",
|
|
282
|
+
queryParameters: _queryParams,
|
|
283
|
+
requestType: "json",
|
|
256
284
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
257
285
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
258
286
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
259
287
|
});
|
|
260
288
|
if (_response.ok) {
|
|
261
|
-
return
|
|
289
|
+
return serializers.FormSubmissionList.parseOrThrow(_response.body, {
|
|
262
290
|
unrecognizedObjectKeys: "passthrough",
|
|
263
291
|
allowUnrecognizedUnionMembers: true,
|
|
264
292
|
allowUnrecognizedEnumValues: true,
|
|
@@ -277,7 +305,13 @@ class Forms {
|
|
|
277
305
|
case 404:
|
|
278
306
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
279
307
|
case 429:
|
|
280
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
308
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
309
|
+
unrecognizedObjectKeys: "passthrough",
|
|
310
|
+
allowUnrecognizedUnionMembers: true,
|
|
311
|
+
allowUnrecognizedEnumValues: true,
|
|
312
|
+
skipValidation: true,
|
|
313
|
+
breadcrumbsPrefix: ["response"],
|
|
314
|
+
}));
|
|
281
315
|
case 500:
|
|
282
316
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
283
317
|
default:
|
|
@@ -316,7 +350,7 @@ class Forms {
|
|
|
316
350
|
* @throws {@link Webflow.InternalServerError}
|
|
317
351
|
*
|
|
318
352
|
* @example
|
|
319
|
-
* await client.forms.getSubmission("
|
|
353
|
+
* await client.forms.getSubmission("580e63e98c9a982ac9b8b741")
|
|
320
354
|
*/
|
|
321
355
|
getSubmission(formSubmissionId, requestOptions) {
|
|
322
356
|
var _a;
|
|
@@ -328,17 +362,19 @@ class Forms {
|
|
|
328
362
|
Authorization: yield this._getAuthorizationHeader(),
|
|
329
363
|
"X-Fern-Language": "JavaScript",
|
|
330
364
|
"X-Fern-SDK-Name": "webflow-api",
|
|
331
|
-
"X-Fern-SDK-Version": "2.
|
|
365
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
366
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
332
367
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
333
368
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
334
369
|
},
|
|
335
370
|
contentType: "application/json",
|
|
371
|
+
requestType: "json",
|
|
336
372
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
337
373
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
338
374
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
339
375
|
});
|
|
340
376
|
if (_response.ok) {
|
|
341
|
-
return
|
|
377
|
+
return serializers.FormSubmission.parseOrThrow(_response.body, {
|
|
342
378
|
unrecognizedObjectKeys: "passthrough",
|
|
343
379
|
allowUnrecognizedUnionMembers: true,
|
|
344
380
|
allowUnrecognizedEnumValues: true,
|
|
@@ -357,7 +393,13 @@ class Forms {
|
|
|
357
393
|
case 404:
|
|
358
394
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
359
395
|
case 429:
|
|
360
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
396
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
397
|
+
unrecognizedObjectKeys: "passthrough",
|
|
398
|
+
allowUnrecognizedUnionMembers: true,
|
|
399
|
+
allowUnrecognizedEnumValues: true,
|
|
400
|
+
skipValidation: true,
|
|
401
|
+
breadcrumbsPrefix: ["response"],
|
|
402
|
+
}));
|
|
361
403
|
case 500:
|
|
362
404
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
363
405
|
default:
|
|
@@ -398,7 +440,7 @@ class Forms {
|
|
|
398
440
|
* @throws {@link Webflow.InternalServerError}
|
|
399
441
|
*
|
|
400
442
|
* @example
|
|
401
|
-
* await client.forms.updateSubmission("
|
|
443
|
+
* await client.forms.updateSubmission("580e63e98c9a982ac9b8b741")
|
|
402
444
|
*/
|
|
403
445
|
updateSubmission(formSubmissionId, request = {}, requestOptions) {
|
|
404
446
|
var _a;
|
|
@@ -410,20 +452,20 @@ class Forms {
|
|
|
410
452
|
Authorization: yield this._getAuthorizationHeader(),
|
|
411
453
|
"X-Fern-Language": "JavaScript",
|
|
412
454
|
"X-Fern-SDK-Name": "webflow-api",
|
|
413
|
-
"X-Fern-SDK-Version": "2.
|
|
455
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
456
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
414
457
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
415
458
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
416
459
|
},
|
|
417
460
|
contentType: "application/json",
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}),
|
|
461
|
+
requestType: "json",
|
|
462
|
+
body: serializers.FormsUpdateSubmissionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
421
463
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
422
464
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
423
465
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
424
466
|
});
|
|
425
467
|
if (_response.ok) {
|
|
426
|
-
return
|
|
468
|
+
return serializers.FormSubmission.parseOrThrow(_response.body, {
|
|
427
469
|
unrecognizedObjectKeys: "passthrough",
|
|
428
470
|
allowUnrecognizedUnionMembers: true,
|
|
429
471
|
allowUnrecognizedEnumValues: true,
|
|
@@ -444,7 +486,13 @@ class Forms {
|
|
|
444
486
|
case 409:
|
|
445
487
|
throw new Webflow.ConflictError(_response.error.body);
|
|
446
488
|
case 429:
|
|
447
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
489
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
490
|
+
unrecognizedObjectKeys: "passthrough",
|
|
491
|
+
allowUnrecognizedUnionMembers: true,
|
|
492
|
+
allowUnrecognizedEnumValues: true,
|
|
493
|
+
skipValidation: true,
|
|
494
|
+
breadcrumbsPrefix: ["response"],
|
|
495
|
+
}));
|
|
448
496
|
case 500:
|
|
449
497
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
450
498
|
default:
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {}
|
|
7
|
+
*/
|
|
8
|
+
export interface FormsListSubmissionsRequest {
|
|
9
|
+
/**
|
|
10
|
+
* Offset used for pagination if the results have more than limit records
|
|
11
|
+
*/
|
|
12
|
+
offset?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Maximum number of records to be returned (max limit: 100)
|
|
15
|
+
*/
|
|
16
|
+
limit?: number;
|
|
17
|
+
}
|
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";
|
|
@@ -23,7 +24,6 @@ export * from "./collections/client/requests";
|
|
|
23
24
|
export * from "./pages/client/requests";
|
|
24
25
|
export * from "./scripts/client/requests";
|
|
25
26
|
export * from "./assets/client/requests";
|
|
26
|
-
export * from "./webhooks/client/requests";
|
|
27
27
|
export * from "./forms/client/requests";
|
|
28
28
|
export * from "./users/client/requests";
|
|
29
29
|
export * from "./accessGroups/client/requests";
|
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"));
|
|
@@ -52,7 +53,6 @@ __exportStar(require("./collections/client/requests"), exports);
|
|
|
52
53
|
__exportStar(require("./pages/client/requests"), exports);
|
|
53
54
|
__exportStar(require("./scripts/client/requests"), exports);
|
|
54
55
|
__exportStar(require("./assets/client/requests"), exports);
|
|
55
|
-
__exportStar(require("./webhooks/client/requests"), exports);
|
|
56
56
|
__exportStar(require("./forms/client/requests"), exports);
|
|
57
57
|
__exportStar(require("./users/client/requests"), exports);
|
|
58
58
|
__exportStar(require("./accessGroups/client/requests"), exports);
|
|
@@ -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,13 @@ class Inventory {
|
|
|
110
112
|
case 409:
|
|
111
113
|
throw new Webflow.ConflictError(_response.error.body);
|
|
112
114
|
case 429:
|
|
113
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
115
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
116
|
+
unrecognizedObjectKeys: "passthrough",
|
|
117
|
+
allowUnrecognizedUnionMembers: true,
|
|
118
|
+
allowUnrecognizedEnumValues: true,
|
|
119
|
+
skipValidation: true,
|
|
120
|
+
breadcrumbsPrefix: ["response"],
|
|
121
|
+
}));
|
|
114
122
|
case 500:
|
|
115
123
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
116
124
|
default:
|
|
@@ -154,8 +162,8 @@ class Inventory {
|
|
|
154
162
|
* @throws {@link Webflow.InternalServerError}
|
|
155
163
|
*
|
|
156
164
|
* @example
|
|
157
|
-
* await client.inventory.update("
|
|
158
|
-
* inventoryType:
|
|
165
|
+
* await client.inventory.update("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
|
|
166
|
+
* inventoryType: "infinite"
|
|
159
167
|
* })
|
|
160
168
|
*/
|
|
161
169
|
update(collectionId, itemId, request, requestOptions) {
|
|
@@ -168,18 +176,20 @@ class Inventory {
|
|
|
168
176
|
Authorization: yield this._getAuthorizationHeader(),
|
|
169
177
|
"X-Fern-Language": "JavaScript",
|
|
170
178
|
"X-Fern-SDK-Name": "webflow-api",
|
|
171
|
-
"X-Fern-SDK-Version": "2.
|
|
179
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
180
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
172
181
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
173
182
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
174
183
|
},
|
|
175
184
|
contentType: "application/json",
|
|
176
|
-
|
|
185
|
+
requestType: "json",
|
|
186
|
+
body: serializers.InventoryUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
177
187
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
178
188
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
179
189
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
180
190
|
});
|
|
181
191
|
if (_response.ok) {
|
|
182
|
-
return
|
|
192
|
+
return serializers.InventoryItem.parseOrThrow(_response.body, {
|
|
183
193
|
unrecognizedObjectKeys: "passthrough",
|
|
184
194
|
allowUnrecognizedUnionMembers: true,
|
|
185
195
|
allowUnrecognizedEnumValues: true,
|
|
@@ -200,7 +210,13 @@ class Inventory {
|
|
|
200
210
|
case 409:
|
|
201
211
|
throw new Webflow.ConflictError(_response.error.body);
|
|
202
212
|
case 429:
|
|
203
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
213
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
214
|
+
unrecognizedObjectKeys: "passthrough",
|
|
215
|
+
allowUnrecognizedUnionMembers: true,
|
|
216
|
+
allowUnrecognizedEnumValues: true,
|
|
217
|
+
skipValidation: true,
|
|
218
|
+
breadcrumbsPrefix: ["response"],
|
|
219
|
+
}));
|
|
204
220
|
case 500:
|
|
205
221
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
206
222
|
default:
|
|
@@ -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>;
|