webflow-api 2.3.2 → 2.3.6
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/Client.d.ts +4 -0
- package/api/errors/BadRequestError.d.ts +1 -1
- package/api/errors/BadRequestError.js +1 -1
- package/api/errors/ConflictError.d.ts +1 -1
- package/api/errors/ConflictError.js +1 -1
- package/api/errors/ForbiddenError.d.ts +1 -1
- package/api/errors/ForbiddenError.js +1 -1
- package/api/errors/InternalServerError.d.ts +1 -1
- package/api/errors/InternalServerError.js +1 -1
- package/api/errors/NotFoundError.d.ts +1 -1
- package/api/errors/NotFoundError.js +1 -1
- package/api/errors/TooManyRequestsError.d.ts +3 -2
- package/api/errors/TooManyRequestsError.js +1 -1
- package/api/errors/UnauthorizedError.d.ts +1 -1
- package/api/errors/UnauthorizedError.js +1 -1
- package/api/errors/index.d.ts +2 -2
- package/api/errors/index.js +2 -2
- package/api/resources/accessGroups/client/Client.d.ts +11 -2
- package/api/resources/accessGroups/client/Client.js +19 -7
- package/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +1 -1
- package/api/resources/accessGroups/client/requests/index.d.ts +1 -1
- package/api/resources/assets/client/Client.d.ts +50 -13
- package/api/resources/assets/client/Client.js +128 -39
- package/api/resources/assets/client/requests/AssetsCreateFolderRequest.d.ts +1 -2
- package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -2
- package/api/resources/assets/client/requests/index.d.ts +3 -3
- package/api/resources/collections/client/Client.d.ts +32 -6
- package/api/resources/collections/client/Client.js +80 -23
- package/api/resources/collections/client/requests/index.d.ts +1 -1
- package/api/resources/collections/resources/fields/client/Client.d.ts +18 -3
- package/api/resources/collections/resources/fields/client/Client.js +36 -11
- package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
- package/api/resources/collections/resources/fields/client/requests/index.d.ts +2 -2
- package/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +2 -2
- package/api/resources/collections/resources/fields/types/FieldCreateType.js +1 -1
- package/api/resources/collections/resources/items/client/Client.d.ts +98 -22
- package/api/resources/collections/resources/items/client/Client.js +318 -81
- package/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +2 -8
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.d.ts +13 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +2 -2
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.d.ts +13 -0
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +1 -1
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +19 -2
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +19 -2
- package/api/resources/collections/resources/items/client/requests/index.d.ts +8 -6
- package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +9 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +11 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +8 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +10 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +9 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +11 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +8 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +10 -0
- package/api/resources/collections/resources/items/types/index.d.ts +4 -0
- package/api/resources/collections/resources/items/types/index.js +4 -0
- package/api/resources/ecommerce/client/Client.d.ts +10 -2
- package/api/resources/ecommerce/client/Client.js +18 -7
- package/api/resources/forms/client/Client.d.ts +34 -7
- package/api/resources/forms/client/Client.js +91 -24
- package/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
- package/{dist/api/resources/webhooks/client/requests/index.js → api/resources/forms/client/requests/FormsListSubmissionsRequest.js} +3 -0
- package/api/resources/forms/client/requests/index.d.ts +3 -2
- package/api/resources/index.d.ts +0 -1
- package/api/resources/index.js +0 -1
- package/api/resources/inventory/client/Client.d.ts +19 -6
- package/api/resources/inventory/client/Client.js +37 -14
- package/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +2 -4
- package/api/resources/inventory/client/requests/index.d.ts +1 -1
- package/api/resources/orders/client/Client.d.ts +44 -12
- package/api/resources/orders/client/Client.js +102 -32
- package/api/resources/orders/client/requests/OrdersListRequest.d.ts +2 -1
- package/api/resources/orders/client/requests/OrdersRefundRequest.d.ts +1 -1
- package/api/resources/orders/client/requests/OrdersUpdateRequest.d.ts +1 -6
- package/api/resources/orders/client/requests/index.d.ts +4 -4
- package/api/resources/orders/types/OrdersListRequestStatus.d.ts +12 -0
- package/api/resources/orders/types/OrdersListRequestStatus.js +14 -0
- package/api/resources/orders/types/index.d.ts +1 -0
- package/api/resources/orders/types/index.js +1 -0
- package/api/resources/pages/client/Client.d.ts +42 -13
- package/api/resources/pages/client/Client.js +97 -31
- package/api/resources/pages/client/requests/DomWrite.d.ts +1 -4
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +8 -0
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +1 -2
- package/api/resources/pages/client/requests/index.d.ts +5 -5
- package/api/resources/pages/resources/scripts/client/Client.d.ts +24 -11
- package/api/resources/pages/resources/scripts/client/Client.js +52 -22
- package/api/resources/products/client/Client.d.ts +47 -89
- package/api/resources/products/client/Client.js +105 -109
- package/api/resources/products/client/requests/ProductSkuCreate.d.ts +2 -27
- package/api/resources/products/client/requests/ProductSkuUpdate.d.ts +2 -27
- package/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +2 -17
- package/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +2 -17
- package/api/resources/products/client/requests/index.d.ts +5 -5
- package/api/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
- package/api/resources/scripts/client/Client.d.ts +25 -7
- package/api/resources/scripts/client/Client.js +53 -18
- package/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +1 -1
- package/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +1 -1
- package/api/resources/scripts/client/requests/index.d.ts +2 -2
- package/api/resources/sites/client/Client.d.ts +26 -11
- package/api/resources/sites/client/Client.js +63 -28
- package/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -4
- package/api/resources/sites/client/requests/index.d.ts +1 -1
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +11 -2
- package/api/resources/sites/resources/activityLogs/client/Client.js +19 -7
- package/api/resources/sites/resources/activityLogs/client/requests/index.d.ts +1 -1
- package/api/resources/sites/resources/scripts/client/Client.d.ts +31 -13
- package/api/resources/sites/resources/scripts/client/Client.js +69 -27
- package/api/resources/sites/resources/scripts/client/requests/index.d.ts +1 -1
- package/api/resources/token/client/Client.d.ts +14 -4
- package/api/resources/token/client/Client.js +16 -8
- package/api/resources/users/client/Client.d.ts +38 -8
- package/api/resources/users/client/Client.js +86 -25
- package/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -1
- package/api/resources/users/client/requests/UsersListRequest.d.ts +1 -1
- package/api/resources/users/client/requests/UsersUpdateRequest.d.ts +2 -2
- package/api/resources/users/client/requests/index.d.ts +3 -3
- package/api/resources/webhooks/client/Client.d.ts +34 -8
- package/api/resources/webhooks/client/Client.js +72 -22
- package/api/resources/webhooks/client/index.d.ts +1 -1
- package/api/resources/webhooks/client/index.js +0 -15
- package/api/types/AccessGroupList.d.ts +1 -1
- package/api/types/Asset.d.ts +11 -9
- package/api/types/AssetFolderList.d.ts +1 -1
- package/api/types/AssetUpload.d.ts +1 -1
- package/api/types/Assets.d.ts +1 -1
- package/api/types/Authorization.d.ts +1 -1
- package/api/types/AuthorizationAuthorization.d.ts +1 -1
- package/api/types/BadRequestErrorBody.d.ts +5 -0
- package/api/{resources/webhooks/client/requests/index.js → types/BadRequestErrorBody.js} +3 -0
- package/api/types/Collection.d.ts +2 -1
- package/api/types/CollectionItem.d.ts +1 -1
- package/api/types/CollectionItemList.d.ts +1 -1
- package/api/types/CollectionList.d.ts +1 -1
- package/api/types/ConflictErrorBody.d.ts +5 -0
- package/api/types/ConflictErrorBody.js +5 -0
- package/api/types/CustomCodeBlock.d.ts +1 -1
- package/api/types/CustomCodeHostedResponse.d.ts +1 -1
- package/api/types/CustomCodeInlineResponse.d.ts +1 -1
- package/api/types/Dom.d.ts +1 -1
- package/api/types/Domains.d.ts +1 -1
- package/api/types/DuplicateUserEmail.d.ts +2 -11
- package/api/types/Error_.d.ts +1 -1
- package/api/types/Field.d.ts +1 -1
- package/api/types/FieldType.d.ts +2 -2
- package/api/types/FieldType.js +1 -1
- package/api/types/ForbiddenErrorBody.d.ts +10 -0
- package/api/types/ForbiddenErrorBody.js +5 -0
- package/api/types/Form.d.ts +3 -1
- package/api/types/FormField.d.ts +1 -1
- package/api/types/FormFieldValue.d.ts +1 -1
- package/api/types/FormList.d.ts +1 -1
- package/api/types/FormSubmissionList.d.ts +2 -2
- package/api/types/InventoryItem.d.ts +1 -1
- package/api/types/ListCustomCodeBlocks.d.ts +1 -1
- package/api/types/Locales.d.ts +1 -1
- package/api/types/MissingScopes.d.ts +2 -11
- package/api/types/Node.d.ts +1 -1
- package/api/types/NotEnterprisePlanSite.d.ts +2 -11
- package/api/types/OauthScope.d.ts +9 -1
- package/api/types/OauthScope.js +2 -0
- package/api/types/Order.d.ts +1 -1
- package/api/types/OrderAddress.d.ts +1 -1
- package/api/types/OrderList.d.ts +1 -1
- package/api/types/OrderPurchasedItem.d.ts +1 -1
- package/api/types/OrderPurchasedItemVariantImage.d.ts +1 -1
- package/api/types/OrderPurchasedItemVariantImageFile.d.ts +1 -1
- package/api/types/OrderTotals.d.ts +1 -1
- package/api/types/OrderTotalsExtrasItem.d.ts +1 -1
- package/api/types/Page.d.ts +1 -1
- package/api/types/PageDetails.d.ts +41 -0
- package/api/types/PageDetails.js +5 -0
- package/api/types/PageDetailsOpenGraph.d.ts +16 -0
- package/api/types/PageDetailsOpenGraph.js +5 -0
- package/api/types/PageDetailsSeo.d.ts +12 -0
- package/api/types/PageDetailsSeo.js +5 -0
- package/api/types/PageList.d.ts +1 -1
- package/api/types/Product.d.ts +1 -1
- package/api/types/ProductAndSkUs.d.ts +1 -1
- package/api/types/ProductAndSkUsList.d.ts +1 -1
- package/api/types/ProductFieldData.d.ts +1 -1
- package/api/types/RegisteredScriptList.d.ts +1 -1
- package/api/types/ScriptApply.d.ts +1 -1
- package/api/types/ScriptApplyList.d.ts +1 -1
- package/api/types/Scripts.d.ts +1 -1
- package/api/types/Site.d.ts +1 -1
- package/api/types/SiteActivityLogItem.d.ts +1 -1
- package/api/types/SiteActivityLogResponse.d.ts +1 -1
- package/api/types/Sites.d.ts +1 -1
- package/api/types/Sku.d.ts +1 -1
- package/api/types/SkuFieldData.d.ts +1 -1
- package/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -1
- package/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +2 -1
- package/api/types/SkuPropertyList.d.ts +1 -1
- package/api/types/StripeCard.d.ts +1 -1
- package/api/types/TooManyRequestsErrorBody.d.ts +9 -0
- package/api/types/TooManyRequestsErrorBody.js +5 -0
- package/api/types/User.d.ts +1 -1
- package/api/types/UserAccessGroupsItem.d.ts +1 -1
- package/api/types/UserData.d.ts +1 -1
- package/api/types/UserLimitReached.d.ts +2 -11
- package/api/types/UserList.d.ts +1 -1
- package/api/types/UsersNotEnabled.d.ts +2 -11
- package/api/types/Webhook.d.ts +6 -6
- package/api/types/WebhookFilter.d.ts +10 -0
- package/api/types/WebhookFilter.js +5 -0
- package/api/types/WebhookList.d.ts +1 -1
- package/api/types/index.d.ts +8 -0
- package/api/types/index.js +8 -0
- package/core/fetcher/Fetcher.d.ts +2 -1
- package/core/fetcher/Fetcher.js +126 -19
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +11 -1
- package/core/schemas/builders/object/object.js +11 -15
- package/dist/Client.d.ts +4 -0
- package/dist/api/errors/BadRequestError.d.ts +1 -1
- package/dist/api/errors/BadRequestError.js +1 -1
- package/dist/api/errors/ConflictError.d.ts +1 -1
- package/dist/api/errors/ConflictError.js +1 -1
- package/dist/api/errors/ForbiddenError.d.ts +1 -1
- package/dist/api/errors/ForbiddenError.js +1 -1
- package/dist/api/errors/InternalServerError.d.ts +1 -1
- package/dist/api/errors/InternalServerError.js +1 -1
- package/dist/api/errors/NotFoundError.d.ts +1 -1
- package/dist/api/errors/NotFoundError.js +1 -1
- package/dist/api/errors/TooManyRequestsError.d.ts +3 -2
- package/dist/api/errors/TooManyRequestsError.js +1 -1
- package/dist/api/errors/UnauthorizedError.d.ts +1 -1
- package/dist/api/errors/UnauthorizedError.js +1 -1
- package/dist/api/errors/index.d.ts +2 -2
- package/dist/api/errors/index.js +2 -2
- package/dist/api/resources/accessGroups/client/Client.d.ts +11 -2
- package/dist/api/resources/accessGroups/client/Client.js +19 -7
- package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +1 -1
- package/dist/api/resources/accessGroups/client/requests/index.d.ts +1 -1
- package/dist/api/resources/assets/client/Client.d.ts +50 -13
- package/dist/api/resources/assets/client/Client.js +128 -39
- package/dist/api/resources/assets/client/requests/AssetsCreateFolderRequest.d.ts +1 -2
- package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -2
- package/dist/api/resources/assets/client/requests/index.d.ts +3 -3
- package/dist/api/resources/collections/client/Client.d.ts +32 -6
- package/dist/api/resources/collections/client/Client.js +80 -23
- package/dist/api/resources/collections/client/requests/index.d.ts +1 -1
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +18 -3
- package/dist/api/resources/collections/resources/fields/client/Client.js +36 -11
- package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
- package/dist/api/resources/collections/resources/fields/client/requests/index.d.ts +2 -2
- package/dist/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +2 -2
- package/dist/api/resources/collections/resources/fields/types/FieldCreateType.js +1 -1
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +98 -22
- package/dist/api/resources/collections/resources/items/client/Client.js +318 -81
- package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +2 -8
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.d.ts +13 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +2 -2
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.d.ts +13 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +19 -2
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +19 -2
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +8 -6
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +11 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +10 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +11 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +10 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +4 -0
- package/dist/api/resources/collections/resources/items/types/index.js +4 -0
- package/dist/api/resources/ecommerce/client/Client.d.ts +10 -2
- package/dist/api/resources/ecommerce/client/Client.js +18 -7
- package/dist/api/resources/forms/client/Client.d.ts +34 -7
- package/dist/api/resources/forms/client/Client.js +91 -24
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.js +5 -0
- package/dist/api/resources/forms/client/requests/index.d.ts +3 -2
- package/dist/api/resources/index.d.ts +0 -1
- package/dist/api/resources/index.js +0 -1
- package/dist/api/resources/inventory/client/Client.d.ts +19 -6
- package/dist/api/resources/inventory/client/Client.js +37 -14
- package/dist/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +2 -4
- package/dist/api/resources/inventory/client/requests/index.d.ts +1 -1
- package/dist/api/resources/orders/client/Client.d.ts +44 -12
- package/dist/api/resources/orders/client/Client.js +102 -32
- package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +2 -1
- package/dist/api/resources/orders/client/requests/OrdersRefundRequest.d.ts +1 -1
- package/dist/api/resources/orders/client/requests/OrdersUpdateRequest.d.ts +1 -6
- package/dist/api/resources/orders/client/requests/index.d.ts +4 -4
- package/dist/api/resources/orders/types/OrdersListRequestStatus.d.ts +12 -0
- package/dist/api/resources/orders/types/OrdersListRequestStatus.js +14 -0
- package/dist/api/resources/orders/types/index.d.ts +1 -0
- package/dist/api/resources/orders/types/index.js +1 -0
- package/dist/api/resources/pages/client/Client.d.ts +42 -13
- package/dist/api/resources/pages/client/Client.js +97 -31
- package/dist/api/resources/pages/client/requests/DomWrite.d.ts +1 -4
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +8 -0
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +1 -2
- package/dist/api/resources/pages/client/requests/index.d.ts +5 -5
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +24 -11
- package/dist/api/resources/pages/resources/scripts/client/Client.js +52 -22
- package/dist/api/resources/products/client/Client.d.ts +47 -89
- package/dist/api/resources/products/client/Client.js +105 -109
- package/dist/api/resources/products/client/requests/ProductSkuCreate.d.ts +2 -27
- package/dist/api/resources/products/client/requests/ProductSkuUpdate.d.ts +2 -27
- package/dist/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +2 -17
- package/dist/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +2 -17
- package/dist/api/resources/products/client/requests/index.d.ts +5 -5
- package/dist/api/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
- package/dist/api/resources/scripts/client/Client.d.ts +25 -7
- package/dist/api/resources/scripts/client/Client.js +53 -18
- package/dist/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +1 -1
- package/dist/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +1 -1
- package/dist/api/resources/scripts/client/requests/index.d.ts +2 -2
- package/dist/api/resources/sites/client/Client.d.ts +26 -11
- package/dist/api/resources/sites/client/Client.js +63 -28
- package/dist/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -4
- package/dist/api/resources/sites/client/requests/index.d.ts +1 -1
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +11 -2
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +19 -7
- package/dist/api/resources/sites/resources/activityLogs/client/requests/index.d.ts +1 -1
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +31 -13
- package/dist/api/resources/sites/resources/scripts/client/Client.js +69 -27
- package/dist/api/resources/sites/resources/scripts/client/requests/index.d.ts +1 -1
- package/dist/api/resources/token/client/Client.d.ts +14 -4
- package/dist/api/resources/token/client/Client.js +16 -8
- package/dist/api/resources/users/client/Client.d.ts +38 -8
- package/dist/api/resources/users/client/Client.js +86 -25
- package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -1
- package/dist/api/resources/users/client/requests/UsersListRequest.d.ts +1 -1
- package/dist/api/resources/users/client/requests/UsersUpdateRequest.d.ts +2 -2
- package/dist/api/resources/users/client/requests/index.d.ts +3 -3
- package/dist/api/resources/webhooks/client/Client.d.ts +34 -8
- package/dist/api/resources/webhooks/client/Client.js +72 -22
- 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/AccessGroupList.d.ts +1 -1
- package/dist/api/types/Asset.d.ts +11 -9
- package/dist/api/types/AssetFolderList.d.ts +1 -1
- package/dist/api/types/AssetUpload.d.ts +1 -1
- package/dist/api/types/Assets.d.ts +1 -1
- package/dist/api/types/Authorization.d.ts +1 -1
- package/dist/api/types/AuthorizationAuthorization.d.ts +1 -1
- package/dist/api/types/BadRequestErrorBody.d.ts +5 -0
- package/dist/api/types/BadRequestErrorBody.js +5 -0
- package/dist/api/types/Collection.d.ts +2 -1
- package/dist/api/types/CollectionItem.d.ts +1 -1
- package/dist/api/types/CollectionItemList.d.ts +1 -1
- package/dist/api/types/CollectionList.d.ts +1 -1
- package/dist/api/types/ConflictErrorBody.d.ts +5 -0
- package/dist/api/types/ConflictErrorBody.js +5 -0
- package/dist/api/types/CustomCodeBlock.d.ts +1 -1
- package/dist/api/types/CustomCodeHostedResponse.d.ts +1 -1
- package/dist/api/types/CustomCodeInlineResponse.d.ts +1 -1
- package/dist/api/types/Dom.d.ts +1 -1
- package/dist/api/types/Domains.d.ts +1 -1
- package/dist/api/types/DuplicateUserEmail.d.ts +2 -11
- package/dist/api/types/Error_.d.ts +1 -1
- package/dist/api/types/Field.d.ts +1 -1
- package/dist/api/types/FieldType.d.ts +2 -2
- package/dist/api/types/FieldType.js +1 -1
- package/dist/api/types/ForbiddenErrorBody.d.ts +10 -0
- package/dist/api/types/ForbiddenErrorBody.js +5 -0
- package/dist/api/types/Form.d.ts +3 -1
- package/dist/api/types/FormField.d.ts +1 -1
- package/dist/api/types/FormFieldValue.d.ts +1 -1
- package/dist/api/types/FormList.d.ts +1 -1
- package/dist/api/types/FormSubmissionList.d.ts +2 -2
- package/dist/api/types/InventoryItem.d.ts +1 -1
- package/dist/api/types/ListCustomCodeBlocks.d.ts +1 -1
- package/dist/api/types/Locales.d.ts +1 -1
- package/dist/api/types/MissingScopes.d.ts +2 -11
- package/dist/api/types/Node.d.ts +1 -1
- package/dist/api/types/NotEnterprisePlanSite.d.ts +2 -11
- package/dist/api/types/OauthScope.d.ts +9 -1
- package/dist/api/types/OauthScope.js +2 -0
- package/dist/api/types/Order.d.ts +1 -1
- package/dist/api/types/OrderAddress.d.ts +1 -1
- package/dist/api/types/OrderList.d.ts +1 -1
- package/dist/api/types/OrderPurchasedItem.d.ts +1 -1
- package/dist/api/types/OrderPurchasedItemVariantImage.d.ts +1 -1
- package/dist/api/types/OrderPurchasedItemVariantImageFile.d.ts +1 -1
- package/dist/api/types/OrderTotals.d.ts +1 -1
- package/dist/api/types/OrderTotalsExtrasItem.d.ts +1 -1
- package/dist/api/types/Page.d.ts +1 -1
- package/dist/api/types/PageDetails.d.ts +41 -0
- package/dist/api/types/PageDetails.js +5 -0
- package/dist/api/types/PageDetailsOpenGraph.d.ts +16 -0
- package/dist/api/types/PageDetailsOpenGraph.js +5 -0
- package/dist/api/types/PageDetailsSeo.d.ts +12 -0
- package/dist/api/types/PageDetailsSeo.js +5 -0
- package/dist/api/types/PageList.d.ts +1 -1
- package/dist/api/types/Product.d.ts +1 -1
- package/dist/api/types/ProductAndSkUs.d.ts +1 -1
- package/dist/api/types/ProductAndSkUsList.d.ts +1 -1
- package/dist/api/types/ProductFieldData.d.ts +1 -1
- package/dist/api/types/RegisteredScriptList.d.ts +1 -1
- package/dist/api/types/ScriptApply.d.ts +1 -1
- package/dist/api/types/ScriptApplyList.d.ts +1 -1
- package/dist/api/types/Scripts.d.ts +1 -1
- package/dist/api/types/Site.d.ts +1 -1
- package/dist/api/types/SiteActivityLogItem.d.ts +1 -1
- package/dist/api/types/SiteActivityLogResponse.d.ts +1 -1
- package/dist/api/types/Sites.d.ts +1 -1
- package/dist/api/types/Sku.d.ts +1 -1
- package/dist/api/types/SkuFieldData.d.ts +1 -1
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -1
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +2 -1
- package/dist/api/types/SkuPropertyList.d.ts +1 -1
- package/dist/api/types/StripeCard.d.ts +1 -1
- package/dist/api/types/TooManyRequestsErrorBody.d.ts +9 -0
- package/dist/api/types/TooManyRequestsErrorBody.js +5 -0
- package/dist/api/types/User.d.ts +1 -1
- package/dist/api/types/UserAccessGroupsItem.d.ts +1 -1
- package/dist/api/types/UserData.d.ts +1 -1
- package/dist/api/types/UserLimitReached.d.ts +2 -11
- package/dist/api/types/UserList.d.ts +1 -1
- package/dist/api/types/UsersNotEnabled.d.ts +2 -11
- package/dist/api/types/Webhook.d.ts +6 -6
- package/dist/api/types/WebhookFilter.d.ts +10 -0
- package/dist/api/types/WebhookFilter.js +5 -0
- package/dist/api/types/WebhookList.d.ts +1 -1
- package/dist/api/types/index.d.ts +8 -0
- package/dist/api/types/index.js +8 -0
- package/dist/core/fetcher/Fetcher.d.ts +2 -1
- package/dist/core/fetcher/Fetcher.js +126 -19
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +11 -1
- package/dist/core/schemas/builders/object/object.js +11 -15
- package/dist/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +2 -2
- package/dist/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.d.ts +2 -2
- package/dist/serialization/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -2
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +2 -2
- package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +4 -3
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js +2 -10
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +3 -3
- package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.js +1 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +4 -3
- package/dist/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.js +2 -12
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +10 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +31 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +10 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +31 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +10 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +31 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +10 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +31 -0
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +4 -0
- package/dist/serialization/resources/collections/resources/items/types/index.js +4 -0
- package/dist/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.d.ts +2 -2
- package/dist/serialization/resources/index.d.ts +0 -2
- package/dist/serialization/resources/index.js +1 -3
- package/dist/serialization/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +4 -3
- package/dist/serialization/resources/inventory/client/requests/InventoryUpdateRequest.js +2 -10
- package/dist/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.d.ts +2 -2
- package/dist/serialization/resources/orders/client/requests/OrdersRefundRequest.d.ts +4 -3
- package/dist/serialization/resources/orders/client/requests/OrdersRefundRequest.js +2 -10
- package/dist/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.d.ts +2 -2
- package/dist/serialization/resources/orders/client/requests/OrdersUpdateRequest.d.ts +2 -2
- package/dist/serialization/resources/orders/types/OrdersListRequestStatus.d.ts +10 -0
- package/dist/serialization/resources/orders/types/OrdersListRequestStatus.js +31 -0
- package/dist/serialization/resources/orders/types/OrdersRefundRequestReason.d.ts +2 -2
- package/dist/serialization/resources/orders/types/index.d.ts +1 -0
- package/dist/serialization/resources/orders/types/index.js +1 -0
- package/dist/serialization/resources/pages/client/requests/DomWrite.d.ts +4 -3
- package/dist/serialization/resources/pages/client/requests/DomWrite.js +2 -10
- package/dist/serialization/resources/pages/types/DomWriteNodesItem.d.ts +2 -2
- package/dist/serialization/resources/pages/types/UpdateStaticContentResponse.d.ts +2 -2
- package/dist/serialization/resources/products/client/requests/ProductSkuCreate.d.ts +8 -5
- package/dist/serialization/resources/products/client/requests/ProductSkuCreate.js +6 -12
- package/dist/serialization/resources/products/client/requests/ProductSkuUpdate.d.ts +8 -5
- package/dist/serialization/resources/products/client/requests/ProductSkuUpdate.js +6 -12
- package/dist/serialization/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +6 -4
- package/dist/serialization/resources/products/client/requests/ProductsCreateSkuRequest.js +4 -11
- package/dist/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +6 -4
- package/dist/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.js +4 -11
- package/dist/serialization/resources/products/types/ProductsCreateSkuResponse.d.ts +4 -3
- package/dist/serialization/resources/products/types/ProductsCreateSkuResponse.js +2 -10
- package/dist/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +2 -2
- package/dist/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +2 -2
- package/dist/serialization/resources/sites/client/requests/SitesPublishRequest.d.ts +2 -2
- package/dist/serialization/resources/users/client/requests/UsersInviteRequest.d.ts +2 -2
- package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +4 -3
- package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.js +2 -10
- package/dist/serialization/resources/users/types/UsersListRequestSort.d.ts +2 -2
- package/dist/serialization/resources/users/types/UsersUpdateRequestData.d.ts +2 -2
- package/dist/serialization/types/AccessGroup.d.ts +2 -2
- package/dist/serialization/types/AccessGroupList.d.ts +4 -3
- package/dist/serialization/types/AccessGroupList.js +2 -12
- package/dist/serialization/types/Application.d.ts +2 -2
- package/dist/serialization/types/Asset.d.ts +9 -7
- package/dist/serialization/types/Asset.js +7 -16
- package/dist/serialization/types/AssetFolder.d.ts +2 -2
- package/dist/serialization/types/AssetFolderList.d.ts +6 -4
- package/dist/serialization/types/AssetFolderList.js +4 -13
- package/dist/serialization/types/AssetUpload.d.ts +4 -3
- package/dist/serialization/types/AssetUpload.js +2 -12
- package/dist/serialization/types/AssetUploadUploadDetails.d.ts +2 -2
- package/dist/serialization/types/AssetVariant.d.ts +2 -2
- package/dist/serialization/types/Assets.d.ts +4 -3
- package/dist/serialization/types/Assets.js +2 -12
- package/dist/serialization/types/Authorization.d.ts +6 -4
- package/dist/serialization/types/Authorization.js +4 -13
- package/dist/serialization/types/AuthorizationAuthorization.d.ts +4 -3
- package/dist/serialization/types/AuthorizationAuthorization.js +2 -12
- package/dist/serialization/types/AuthorizationAuthorizationAuthorizedTo.d.ts +2 -2
- package/dist/serialization/types/AuthorizedUser.d.ts +2 -2
- package/dist/serialization/types/BadRequestErrorBody.d.ts +12 -0
- package/dist/serialization/types/BadRequestErrorBody.js +33 -0
- package/dist/serialization/types/Collection.d.ts +4 -3
- package/dist/serialization/types/Collection.js +2 -1
- package/dist/serialization/types/CollectionItem.d.ts +4 -3
- package/dist/serialization/types/CollectionItem.js +2 -10
- package/dist/serialization/types/CollectionItemFieldData.d.ts +2 -2
- package/dist/serialization/types/CollectionItemList.d.ts +6 -4
- package/dist/serialization/types/CollectionItemList.js +4 -13
- package/dist/serialization/types/CollectionItemListPagination.d.ts +2 -2
- package/dist/serialization/types/CollectionList.d.ts +4 -3
- package/dist/serialization/types/CollectionList.js +2 -12
- package/dist/serialization/types/CollectionListArrayItem.d.ts +2 -2
- package/dist/serialization/types/ConflictErrorBody.d.ts +12 -0
- package/dist/serialization/types/ConflictErrorBody.js +33 -0
- package/dist/serialization/types/CustomCodeBlock.d.ts +6 -4
- package/dist/serialization/types/CustomCodeBlock.js +4 -11
- package/dist/serialization/types/CustomCodeBlockType.d.ts +2 -2
- package/dist/serialization/types/CustomCodeHostedResponse.d.ts +2 -2
- package/dist/serialization/types/CustomCodeInlineResponse.d.ts +2 -2
- package/dist/serialization/types/Dom.d.ts +6 -4
- package/dist/serialization/types/Dom.js +4 -11
- package/dist/serialization/types/Domain.d.ts +2 -2
- package/dist/serialization/types/Domains.d.ts +4 -3
- package/dist/serialization/types/Domains.js +2 -12
- package/dist/serialization/types/DuplicateUserEmail.d.ts +4 -8
- package/dist/serialization/types/DuplicateUserEmail.js +2 -41
- package/dist/serialization/types/EcommerceSettings.d.ts +2 -2
- package/dist/serialization/types/ErrorDetailsItem.d.ts +2 -2
- package/dist/serialization/types/Error_.d.ts +4 -3
- package/dist/serialization/types/Error_.js +2 -12
- package/dist/serialization/types/Field.d.ts +4 -3
- package/dist/serialization/types/Field.js +2 -10
- package/dist/serialization/types/FieldType.d.ts +3 -3
- package/dist/serialization/types/FieldType.js +1 -1
- package/dist/serialization/types/ForbiddenErrorBody.d.ts +16 -0
- package/dist/serialization/types/ForbiddenErrorBody.js +37 -0
- package/dist/serialization/types/Form.d.ts +7 -4
- package/dist/serialization/types/Form.js +5 -11
- package/dist/serialization/types/FormField.d.ts +4 -3
- package/dist/serialization/types/FormField.js +2 -10
- package/dist/serialization/types/FormFieldValue.d.ts +4 -3
- package/dist/serialization/types/FormFieldValue.js +2 -10
- package/dist/serialization/types/FormFieldValueType.d.ts +2 -2
- package/dist/serialization/types/FormList.d.ts +6 -4
- package/dist/serialization/types/FormList.js +4 -11
- package/dist/serialization/types/FormResponseSettings.d.ts +2 -2
- package/dist/serialization/types/FormSubmission.d.ts +2 -2
- package/dist/serialization/types/FormSubmissionList.d.ts +6 -4
- package/dist/serialization/types/FormSubmissionList.js +4 -13
- package/dist/serialization/types/ImageNode.d.ts +2 -2
- package/dist/serialization/types/InvalidDomain.d.ts +2 -2
- package/dist/serialization/types/InventoryItem.d.ts +4 -3
- package/dist/serialization/types/InventoryItem.js +2 -10
- package/dist/serialization/types/InventoryItemInventoryType.d.ts +2 -2
- package/dist/serialization/types/ListCustomCodeBlocks.d.ts +6 -4
- package/dist/serialization/types/ListCustomCodeBlocks.js +4 -13
- package/dist/serialization/types/Locale.d.ts +2 -2
- package/dist/serialization/types/Locales.d.ts +5 -4
- package/dist/serialization/types/Locales.js +3 -13
- package/dist/serialization/types/MissingScopes.d.ts +4 -9
- package/dist/serialization/types/MissingScopes.js +2 -42
- package/dist/serialization/types/NoDomains.d.ts +2 -2
- package/dist/serialization/types/Node.d.ts +8 -5
- package/dist/serialization/types/Node.js +6 -12
- package/dist/serialization/types/NodeType.d.ts +2 -2
- package/dist/serialization/types/NotEnterprisePlanSite.d.ts +4 -9
- package/dist/serialization/types/NotEnterprisePlanSite.js +2 -42
- package/dist/serialization/types/OauthScope.d.ts +3 -3
- package/dist/serialization/types/OauthScope.js +2 -0
- package/dist/serialization/types/Order.d.ts +30 -18
- package/dist/serialization/types/Order.js +28 -31
- package/dist/serialization/types/OrderAddress.d.ts +6 -4
- package/dist/serialization/types/OrderAddress.js +4 -11
- package/dist/serialization/types/OrderAddressJapanType.d.ts +2 -2
- package/dist/serialization/types/OrderAddressType.d.ts +2 -2
- package/dist/serialization/types/OrderCustomerInfo.d.ts +2 -2
- package/dist/serialization/types/OrderDisputeLastStatus.d.ts +2 -2
- package/dist/serialization/types/OrderDownloadFilesItem.d.ts +2 -2
- package/dist/serialization/types/OrderList.d.ts +6 -4
- package/dist/serialization/types/OrderList.js +4 -13
- package/dist/serialization/types/OrderMetadata.d.ts +2 -2
- package/dist/serialization/types/OrderPrice.d.ts +2 -2
- package/dist/serialization/types/OrderPurchasedItem.d.ts +7 -5
- package/dist/serialization/types/OrderPurchasedItem.js +5 -14
- package/dist/serialization/types/OrderPurchasedItemVariantImage.d.ts +4 -3
- package/dist/serialization/types/OrderPurchasedItemVariantImage.js +2 -10
- package/dist/serialization/types/OrderPurchasedItemVariantImageFile.d.ts +4 -3
- package/dist/serialization/types/OrderPurchasedItemVariantImageFile.js +2 -12
- package/dist/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.d.ts +2 -2
- package/dist/serialization/types/OrderStatus.d.ts +2 -2
- package/dist/serialization/types/OrderTotals.d.ts +7 -5
- package/dist/serialization/types/OrderTotals.js +5 -14
- package/dist/serialization/types/OrderTotalsExtrasItem.d.ts +6 -4
- package/dist/serialization/types/OrderTotalsExtrasItem.js +4 -11
- package/dist/serialization/types/OrderTotalsExtrasItemType.d.ts +2 -2
- package/dist/serialization/types/Page.d.ts +6 -4
- package/dist/serialization/types/Page.js +4 -11
- package/dist/serialization/types/PageDetails.d.ts +29 -0
- package/dist/serialization/types/PageDetails.js +50 -0
- package/dist/serialization/types/PageDetailsOpenGraph.d.ts +15 -0
- package/dist/serialization/types/PageDetailsOpenGraph.js +36 -0
- package/dist/serialization/types/PageDetailsSeo.d.ts +13 -0
- package/dist/serialization/types/PageDetailsSeo.js +34 -0
- package/dist/serialization/types/PageList.d.ts +6 -4
- package/dist/serialization/types/PageList.js +4 -11
- package/dist/serialization/types/PageOpenGraph.d.ts +2 -2
- package/dist/serialization/types/PageSeo.d.ts +2 -2
- package/dist/serialization/types/Pagination.d.ts +2 -2
- package/dist/serialization/types/PaypalDetails.d.ts +2 -2
- package/dist/serialization/types/Product.d.ts +4 -3
- package/dist/serialization/types/Product.js +2 -10
- package/dist/serialization/types/ProductAndSkUs.d.ts +6 -4
- package/dist/serialization/types/ProductAndSkUs.js +4 -11
- package/dist/serialization/types/ProductAndSkUsList.d.ts +6 -4
- package/dist/serialization/types/ProductAndSkUsList.js +4 -13
- package/dist/serialization/types/ProductFieldData.d.ts +8 -5
- package/dist/serialization/types/ProductFieldData.js +6 -14
- package/dist/serialization/types/ProductFieldDataEcProductType.d.ts +2 -2
- package/dist/serialization/types/ProductFieldDataTaxCategory.d.ts +2 -2
- package/dist/serialization/types/PublishStatus.d.ts +2 -2
- package/dist/serialization/types/RegisteredScriptList.d.ts +4 -3
- package/dist/serialization/types/RegisteredScriptList.js +2 -12
- package/dist/serialization/types/ScriptApply.d.ts +4 -3
- package/dist/serialization/types/ScriptApply.js +2 -10
- package/dist/serialization/types/ScriptApplyList.d.ts +4 -3
- package/dist/serialization/types/ScriptApplyList.js +2 -12
- package/dist/serialization/types/ScriptApplyLocation.d.ts +2 -2
- package/dist/serialization/types/Scripts.d.ts +4 -3
- package/dist/serialization/types/Scripts.js +2 -10
- package/dist/serialization/types/Site.d.ts +6 -4
- package/dist/serialization/types/Site.js +4 -13
- package/dist/serialization/types/SiteActivityLogItem.d.ts +6 -4
- package/dist/serialization/types/SiteActivityLogItem.js +4 -13
- package/dist/serialization/types/SiteActivityLogItemResourceOperation.d.ts +2 -2
- package/dist/serialization/types/SiteActivityLogItemUser.d.ts +2 -2
- package/dist/serialization/types/SiteActivityLogResponse.d.ts +6 -4
- package/dist/serialization/types/SiteActivityLogResponse.js +4 -13
- package/dist/serialization/types/Sites.d.ts +4 -3
- package/dist/serialization/types/Sites.js +2 -10
- package/dist/serialization/types/Sku.d.ts +4 -3
- package/dist/serialization/types/Sku.js +2 -10
- package/dist/serialization/types/SkuFieldData.d.ts +12 -7
- package/dist/serialization/types/SkuFieldData.js +10 -14
- package/dist/serialization/types/SkuFieldDataCompareAtPrice.d.ts +2 -2
- package/dist/serialization/types/SkuFieldDataEcSkuBillingMethod.d.ts +2 -2
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +6 -4
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +4 -15
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +2 -2
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +4 -3
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js +2 -12
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +2 -2
- package/dist/serialization/types/SkuFieldDataPrice.d.ts +2 -2
- package/dist/serialization/types/SkuPropertyList.d.ts +4 -3
- package/dist/serialization/types/SkuPropertyList.js +2 -10
- package/dist/serialization/types/SkuPropertyListEnumItem.d.ts +2 -2
- package/dist/serialization/types/SkuValueList.d.ts +2 -2
- package/dist/serialization/types/StripeCard.d.ts +6 -4
- package/dist/serialization/types/StripeCard.js +4 -11
- package/dist/serialization/types/StripeCardBrand.d.ts +2 -2
- package/dist/serialization/types/StripeCardExpires.d.ts +2 -2
- package/dist/serialization/types/StripeDetails.d.ts +2 -2
- package/dist/serialization/types/TextNode.d.ts +2 -2
- package/dist/serialization/types/TooManyRequestsErrorBody.d.ts +15 -0
- package/dist/serialization/types/TooManyRequestsErrorBody.js +36 -0
- package/dist/serialization/types/TriggerType.d.ts +2 -2
- package/dist/serialization/types/User.d.ts +8 -5
- package/dist/serialization/types/User.js +6 -14
- package/dist/serialization/types/UserAccessGroupsItem.d.ts +4 -3
- package/dist/serialization/types/UserAccessGroupsItem.js +2 -10
- package/dist/serialization/types/UserAccessGroupsItemType.d.ts +2 -2
- package/dist/serialization/types/UserData.d.ts +4 -3
- package/dist/serialization/types/UserData.js +2 -10
- package/dist/serialization/types/UserDataData.d.ts +2 -2
- package/dist/serialization/types/UserLimitReached.d.ts +4 -8
- package/dist/serialization/types/UserLimitReached.js +2 -41
- package/dist/serialization/types/UserList.d.ts +4 -3
- package/dist/serialization/types/UserList.js +2 -10
- package/dist/serialization/types/UserStatus.d.ts +2 -2
- package/dist/serialization/types/UsersNotEnabled.d.ts +4 -8
- package/dist/serialization/types/UsersNotEnabled.js +2 -41
- package/dist/serialization/types/Webhook.d.ts +7 -5
- package/dist/serialization/types/Webhook.js +5 -12
- package/dist/serialization/types/WebhookFilter.d.ts +12 -0
- package/dist/serialization/types/WebhookFilter.js +33 -0
- package/dist/serialization/types/WebhookList.d.ts +6 -4
- package/dist/serialization/types/WebhookList.js +4 -13
- package/dist/serialization/types/index.d.ts +8 -0
- package/dist/serialization/types/index.js +8 -0
- package/dist/wrapper/ItemsClient.js +7 -1
- package/jest.config.js +2 -2
- package/package.json +13 -6
- package/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +2 -2
- package/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.d.ts +2 -2
- package/serialization/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -2
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +2 -2
- package/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -2
- package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +4 -3
- package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js +2 -10
- package/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +2 -2
- package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +3 -3
- package/serialization/resources/collections/resources/fields/types/FieldCreateType.js +1 -1
- package/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +4 -3
- package/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.js +2 -12
- package/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +2 -2
- package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +2 -2
- package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +10 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +31 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +10 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +31 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +10 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +31 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +10 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +31 -0
- package/serialization/resources/collections/resources/items/types/index.d.ts +4 -0
- package/serialization/resources/collections/resources/items/types/index.js +4 -0
- package/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.d.ts +2 -2
- package/serialization/resources/index.d.ts +0 -2
- package/serialization/resources/index.js +1 -3
- package/serialization/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +4 -3
- package/serialization/resources/inventory/client/requests/InventoryUpdateRequest.js +2 -10
- package/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.d.ts +2 -2
- package/serialization/resources/orders/client/requests/OrdersRefundRequest.d.ts +4 -3
- package/serialization/resources/orders/client/requests/OrdersRefundRequest.js +2 -10
- package/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.d.ts +2 -2
- package/serialization/resources/orders/client/requests/OrdersUpdateRequest.d.ts +2 -2
- package/serialization/resources/orders/types/OrdersListRequestStatus.d.ts +10 -0
- package/serialization/resources/orders/types/OrdersListRequestStatus.js +31 -0
- package/serialization/resources/orders/types/OrdersRefundRequestReason.d.ts +2 -2
- package/serialization/resources/orders/types/index.d.ts +1 -0
- package/serialization/resources/orders/types/index.js +1 -0
- package/serialization/resources/pages/client/requests/DomWrite.d.ts +4 -3
- package/serialization/resources/pages/client/requests/DomWrite.js +2 -10
- package/serialization/resources/pages/types/DomWriteNodesItem.d.ts +2 -2
- package/serialization/resources/pages/types/UpdateStaticContentResponse.d.ts +2 -2
- package/serialization/resources/products/client/requests/ProductSkuCreate.d.ts +8 -5
- package/serialization/resources/products/client/requests/ProductSkuCreate.js +6 -12
- package/serialization/resources/products/client/requests/ProductSkuUpdate.d.ts +8 -5
- package/serialization/resources/products/client/requests/ProductSkuUpdate.js +6 -12
- package/serialization/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +6 -4
- package/serialization/resources/products/client/requests/ProductsCreateSkuRequest.js +4 -11
- package/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +6 -4
- package/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.js +4 -11
- package/serialization/resources/products/types/ProductsCreateSkuResponse.d.ts +4 -3
- package/serialization/resources/products/types/ProductsCreateSkuResponse.js +2 -10
- package/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +2 -2
- package/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +2 -2
- package/serialization/resources/sites/client/requests/SitesPublishRequest.d.ts +2 -2
- package/serialization/resources/users/client/requests/UsersInviteRequest.d.ts +2 -2
- package/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +4 -3
- package/serialization/resources/users/client/requests/UsersUpdateRequest.js +2 -10
- package/serialization/resources/users/types/UsersListRequestSort.d.ts +2 -2
- package/serialization/resources/users/types/UsersUpdateRequestData.d.ts +2 -2
- package/serialization/types/AccessGroup.d.ts +2 -2
- package/serialization/types/AccessGroupList.d.ts +4 -3
- package/serialization/types/AccessGroupList.js +2 -12
- package/serialization/types/Application.d.ts +2 -2
- package/serialization/types/Asset.d.ts +9 -7
- package/serialization/types/Asset.js +7 -16
- package/serialization/types/AssetFolder.d.ts +2 -2
- package/serialization/types/AssetFolderList.d.ts +6 -4
- package/serialization/types/AssetFolderList.js +4 -13
- package/serialization/types/AssetUpload.d.ts +4 -3
- package/serialization/types/AssetUpload.js +2 -12
- package/serialization/types/AssetUploadUploadDetails.d.ts +2 -2
- package/serialization/types/AssetVariant.d.ts +2 -2
- package/serialization/types/Assets.d.ts +4 -3
- package/serialization/types/Assets.js +2 -12
- package/serialization/types/Authorization.d.ts +6 -4
- package/serialization/types/Authorization.js +4 -13
- package/serialization/types/AuthorizationAuthorization.d.ts +4 -3
- package/serialization/types/AuthorizationAuthorization.js +2 -12
- package/serialization/types/AuthorizationAuthorizationAuthorizedTo.d.ts +2 -2
- package/serialization/types/AuthorizedUser.d.ts +2 -2
- package/serialization/types/BadRequestErrorBody.d.ts +12 -0
- package/serialization/types/BadRequestErrorBody.js +33 -0
- package/serialization/types/Collection.d.ts +4 -3
- package/serialization/types/Collection.js +2 -1
- package/serialization/types/CollectionItem.d.ts +4 -3
- package/serialization/types/CollectionItem.js +2 -10
- package/serialization/types/CollectionItemFieldData.d.ts +2 -2
- package/serialization/types/CollectionItemList.d.ts +6 -4
- package/serialization/types/CollectionItemList.js +4 -13
- package/serialization/types/CollectionItemListPagination.d.ts +2 -2
- package/serialization/types/CollectionList.d.ts +4 -3
- package/serialization/types/CollectionList.js +2 -12
- package/serialization/types/CollectionListArrayItem.d.ts +2 -2
- package/serialization/types/ConflictErrorBody.d.ts +12 -0
- package/serialization/types/ConflictErrorBody.js +33 -0
- package/serialization/types/CustomCodeBlock.d.ts +6 -4
- package/serialization/types/CustomCodeBlock.js +4 -11
- package/serialization/types/CustomCodeBlockType.d.ts +2 -2
- package/serialization/types/CustomCodeHostedResponse.d.ts +2 -2
- package/serialization/types/CustomCodeInlineResponse.d.ts +2 -2
- package/serialization/types/Dom.d.ts +6 -4
- package/serialization/types/Dom.js +4 -11
- package/serialization/types/Domain.d.ts +2 -2
- package/serialization/types/Domains.d.ts +4 -3
- package/serialization/types/Domains.js +2 -12
- package/serialization/types/DuplicateUserEmail.d.ts +4 -8
- package/serialization/types/DuplicateUserEmail.js +2 -41
- package/serialization/types/EcommerceSettings.d.ts +2 -2
- package/serialization/types/ErrorDetailsItem.d.ts +2 -2
- package/serialization/types/Error_.d.ts +4 -3
- package/serialization/types/Error_.js +2 -12
- package/serialization/types/Field.d.ts +4 -3
- package/serialization/types/Field.js +2 -10
- package/serialization/types/FieldType.d.ts +3 -3
- package/serialization/types/FieldType.js +1 -1
- package/serialization/types/ForbiddenErrorBody.d.ts +16 -0
- package/serialization/types/ForbiddenErrorBody.js +37 -0
- package/serialization/types/Form.d.ts +7 -4
- package/serialization/types/Form.js +5 -11
- package/serialization/types/FormField.d.ts +4 -3
- package/serialization/types/FormField.js +2 -10
- package/serialization/types/FormFieldValue.d.ts +4 -3
- package/serialization/types/FormFieldValue.js +2 -10
- package/serialization/types/FormFieldValueType.d.ts +2 -2
- package/serialization/types/FormList.d.ts +6 -4
- package/serialization/types/FormList.js +4 -11
- package/serialization/types/FormResponseSettings.d.ts +2 -2
- package/serialization/types/FormSubmission.d.ts +2 -2
- package/serialization/types/FormSubmissionList.d.ts +6 -4
- package/serialization/types/FormSubmissionList.js +4 -13
- package/serialization/types/ImageNode.d.ts +2 -2
- package/serialization/types/InvalidDomain.d.ts +2 -2
- package/serialization/types/InventoryItem.d.ts +4 -3
- package/serialization/types/InventoryItem.js +2 -10
- package/serialization/types/InventoryItemInventoryType.d.ts +2 -2
- package/serialization/types/ListCustomCodeBlocks.d.ts +6 -4
- package/serialization/types/ListCustomCodeBlocks.js +4 -13
- package/serialization/types/Locale.d.ts +2 -2
- package/serialization/types/Locales.d.ts +5 -4
- package/serialization/types/Locales.js +3 -13
- package/serialization/types/MissingScopes.d.ts +4 -9
- package/serialization/types/MissingScopes.js +2 -42
- package/serialization/types/NoDomains.d.ts +2 -2
- package/serialization/types/Node.d.ts +8 -5
- package/serialization/types/Node.js +6 -12
- package/serialization/types/NodeType.d.ts +2 -2
- package/serialization/types/NotEnterprisePlanSite.d.ts +4 -9
- package/serialization/types/NotEnterprisePlanSite.js +2 -42
- package/serialization/types/OauthScope.d.ts +3 -3
- package/serialization/types/OauthScope.js +2 -0
- package/serialization/types/Order.d.ts +30 -18
- package/serialization/types/Order.js +28 -31
- package/serialization/types/OrderAddress.d.ts +6 -4
- package/serialization/types/OrderAddress.js +4 -11
- package/serialization/types/OrderAddressJapanType.d.ts +2 -2
- package/serialization/types/OrderAddressType.d.ts +2 -2
- package/serialization/types/OrderCustomerInfo.d.ts +2 -2
- package/serialization/types/OrderDisputeLastStatus.d.ts +2 -2
- package/serialization/types/OrderDownloadFilesItem.d.ts +2 -2
- package/serialization/types/OrderList.d.ts +6 -4
- package/serialization/types/OrderList.js +4 -13
- package/serialization/types/OrderMetadata.d.ts +2 -2
- package/serialization/types/OrderPrice.d.ts +2 -2
- package/serialization/types/OrderPurchasedItem.d.ts +7 -5
- package/serialization/types/OrderPurchasedItem.js +5 -14
- package/serialization/types/OrderPurchasedItemVariantImage.d.ts +4 -3
- package/serialization/types/OrderPurchasedItemVariantImage.js +2 -10
- package/serialization/types/OrderPurchasedItemVariantImageFile.d.ts +4 -3
- package/serialization/types/OrderPurchasedItemVariantImageFile.js +2 -12
- package/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.d.ts +2 -2
- package/serialization/types/OrderStatus.d.ts +2 -2
- package/serialization/types/OrderTotals.d.ts +7 -5
- package/serialization/types/OrderTotals.js +5 -14
- package/serialization/types/OrderTotalsExtrasItem.d.ts +6 -4
- package/serialization/types/OrderTotalsExtrasItem.js +4 -11
- package/serialization/types/OrderTotalsExtrasItemType.d.ts +2 -2
- package/serialization/types/Page.d.ts +6 -4
- package/serialization/types/Page.js +4 -11
- package/serialization/types/PageDetails.d.ts +29 -0
- package/serialization/types/PageDetails.js +50 -0
- package/serialization/types/PageDetailsOpenGraph.d.ts +15 -0
- package/serialization/types/PageDetailsOpenGraph.js +36 -0
- package/serialization/types/PageDetailsSeo.d.ts +13 -0
- package/serialization/types/PageDetailsSeo.js +34 -0
- package/serialization/types/PageList.d.ts +6 -4
- package/serialization/types/PageList.js +4 -11
- package/serialization/types/PageOpenGraph.d.ts +2 -2
- package/serialization/types/PageSeo.d.ts +2 -2
- package/serialization/types/Pagination.d.ts +2 -2
- package/serialization/types/PaypalDetails.d.ts +2 -2
- package/serialization/types/Product.d.ts +4 -3
- package/serialization/types/Product.js +2 -10
- package/serialization/types/ProductAndSkUs.d.ts +6 -4
- package/serialization/types/ProductAndSkUs.js +4 -11
- package/serialization/types/ProductAndSkUsList.d.ts +6 -4
- package/serialization/types/ProductAndSkUsList.js +4 -13
- package/serialization/types/ProductFieldData.d.ts +8 -5
- package/serialization/types/ProductFieldData.js +6 -14
- package/serialization/types/ProductFieldDataEcProductType.d.ts +2 -2
- package/serialization/types/ProductFieldDataTaxCategory.d.ts +2 -2
- package/serialization/types/PublishStatus.d.ts +2 -2
- package/serialization/types/RegisteredScriptList.d.ts +4 -3
- package/serialization/types/RegisteredScriptList.js +2 -12
- package/serialization/types/ScriptApply.d.ts +4 -3
- package/serialization/types/ScriptApply.js +2 -10
- package/serialization/types/ScriptApplyList.d.ts +4 -3
- package/serialization/types/ScriptApplyList.js +2 -12
- package/serialization/types/ScriptApplyLocation.d.ts +2 -2
- package/serialization/types/Scripts.d.ts +4 -3
- package/serialization/types/Scripts.js +2 -10
- package/serialization/types/Site.d.ts +6 -4
- package/serialization/types/Site.js +4 -13
- package/serialization/types/SiteActivityLogItem.d.ts +6 -4
- package/serialization/types/SiteActivityLogItem.js +4 -13
- package/serialization/types/SiteActivityLogItemResourceOperation.d.ts +2 -2
- package/serialization/types/SiteActivityLogItemUser.d.ts +2 -2
- package/serialization/types/SiteActivityLogResponse.d.ts +6 -4
- package/serialization/types/SiteActivityLogResponse.js +4 -13
- package/serialization/types/Sites.d.ts +4 -3
- package/serialization/types/Sites.js +2 -10
- package/serialization/types/Sku.d.ts +4 -3
- package/serialization/types/Sku.js +2 -10
- package/serialization/types/SkuFieldData.d.ts +12 -7
- package/serialization/types/SkuFieldData.js +10 -14
- package/serialization/types/SkuFieldDataCompareAtPrice.d.ts +2 -2
- package/serialization/types/SkuFieldDataEcSkuBillingMethod.d.ts +2 -2
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +6 -4
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +4 -15
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +2 -2
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +4 -3
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js +2 -12
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +2 -2
- package/serialization/types/SkuFieldDataPrice.d.ts +2 -2
- package/serialization/types/SkuPropertyList.d.ts +4 -3
- package/serialization/types/SkuPropertyList.js +2 -10
- package/serialization/types/SkuPropertyListEnumItem.d.ts +2 -2
- package/serialization/types/SkuValueList.d.ts +2 -2
- package/serialization/types/StripeCard.d.ts +6 -4
- package/serialization/types/StripeCard.js +4 -11
- package/serialization/types/StripeCardBrand.d.ts +2 -2
- package/serialization/types/StripeCardExpires.d.ts +2 -2
- package/serialization/types/StripeDetails.d.ts +2 -2
- package/serialization/types/TextNode.d.ts +2 -2
- package/serialization/types/TooManyRequestsErrorBody.d.ts +15 -0
- package/serialization/types/TooManyRequestsErrorBody.js +36 -0
- package/serialization/types/TriggerType.d.ts +2 -2
- package/serialization/types/User.d.ts +8 -5
- package/serialization/types/User.js +6 -14
- package/serialization/types/UserAccessGroupsItem.d.ts +4 -3
- package/serialization/types/UserAccessGroupsItem.js +2 -10
- package/serialization/types/UserAccessGroupsItemType.d.ts +2 -2
- package/serialization/types/UserData.d.ts +4 -3
- package/serialization/types/UserData.js +2 -10
- package/serialization/types/UserDataData.d.ts +2 -2
- package/serialization/types/UserLimitReached.d.ts +4 -8
- package/serialization/types/UserLimitReached.js +2 -41
- package/serialization/types/UserList.d.ts +4 -3
- package/serialization/types/UserList.js +2 -10
- package/serialization/types/UserStatus.d.ts +2 -2
- package/serialization/types/UsersNotEnabled.d.ts +4 -8
- package/serialization/types/UsersNotEnabled.js +2 -41
- package/serialization/types/Webhook.d.ts +7 -5
- package/serialization/types/Webhook.js +5 -12
- package/serialization/types/WebhookFilter.d.ts +12 -0
- package/serialization/types/WebhookFilter.js +33 -0
- package/serialization/types/WebhookList.d.ts +6 -4
- package/serialization/types/WebhookList.js +4 -13
- package/serialization/types/index.d.ts +8 -0
- package/serialization/types/index.js +8 -0
- package/wrapper/ItemsClient.js +7 -1
- package/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
- package/api/resources/webhooks/client/requests/index.d.ts +0 -1
- 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/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/index.js +0 -17
- package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -14
- package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js +0 -44
- 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/resources/webhooks/index.js +0 -17
- package/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/serialization/resources/webhooks/client/index.js +0 -17
- package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -14
- package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js +0 -44
- 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/resources/webhooks/index.js +0 -17
- package/tests/client.test.ts +0 -11
- /package/api/resources/{webhooks/client/requests/WebhooksCreateRequest.js → collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.js} +0 -0
- /package/{dist/api/resources/webhooks/client/requests/WebhooksCreateRequest.js → api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.js} +0 -0
|
@@ -41,16 +41,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.Forms = void 0;
|
|
42
42
|
const environments = __importStar(require("../../../../environments"));
|
|
43
43
|
const core = __importStar(require("../../../../core"));
|
|
44
|
-
const Webflow = __importStar(require("
|
|
44
|
+
const Webflow = __importStar(require("../../../index"));
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
|
-
const serializers = __importStar(require("../../../../serialization"));
|
|
47
|
-
const errors = __importStar(require("../../../../errors"));
|
|
46
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
47
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
48
48
|
class Forms {
|
|
49
49
|
constructor(_options) {
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* List forms for a given site </br></br> Required scope | `forms:read`
|
|
54
|
+
*
|
|
55
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
56
|
+
* @param {Webflow.FormsListRequest} request
|
|
57
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
58
|
+
*
|
|
54
59
|
* @throws {@link Webflow.BadRequestError}
|
|
55
60
|
* @throws {@link Webflow.UnauthorizedError}
|
|
56
61
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -60,7 +65,7 @@ class Forms {
|
|
|
60
65
|
* @throws {@link Webflow.InternalServerError}
|
|
61
66
|
*
|
|
62
67
|
* @example
|
|
63
|
-
* await
|
|
68
|
+
* await client.forms.list("site_id")
|
|
64
69
|
*/
|
|
65
70
|
list(siteId, request = {}, requestOptions) {
|
|
66
71
|
var _a;
|
|
@@ -74,13 +79,13 @@ class Forms {
|
|
|
74
79
|
_queryParams["offset"] = offset.toString();
|
|
75
80
|
}
|
|
76
81
|
const _response = yield core.fetcher({
|
|
77
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/forms`),
|
|
82
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/forms`),
|
|
78
83
|
method: "GET",
|
|
79
84
|
headers: {
|
|
80
85
|
Authorization: yield this._getAuthorizationHeader(),
|
|
81
86
|
"X-Fern-Language": "JavaScript",
|
|
82
87
|
"X-Fern-SDK-Name": "webflow-api",
|
|
83
|
-
"X-Fern-SDK-Version": "2.3.
|
|
88
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
84
89
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
85
90
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
86
91
|
},
|
|
@@ -88,6 +93,7 @@ class Forms {
|
|
|
88
93
|
queryParameters: _queryParams,
|
|
89
94
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
90
95
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
96
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
91
97
|
});
|
|
92
98
|
if (_response.ok) {
|
|
93
99
|
return yield serializers.FormList.parseOrThrow(_response.body, {
|
|
@@ -111,7 +117,13 @@ class Forms {
|
|
|
111
117
|
case 409:
|
|
112
118
|
throw new Webflow.ConflictError(_response.error.body);
|
|
113
119
|
case 429:
|
|
114
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
120
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
121
|
+
unrecognizedObjectKeys: "passthrough",
|
|
122
|
+
allowUnrecognizedUnionMembers: true,
|
|
123
|
+
allowUnrecognizedEnumValues: true,
|
|
124
|
+
skipValidation: true,
|
|
125
|
+
breadcrumbsPrefix: ["response"],
|
|
126
|
+
}));
|
|
115
127
|
case 500:
|
|
116
128
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
117
129
|
default:
|
|
@@ -138,6 +150,10 @@ class Forms {
|
|
|
138
150
|
}
|
|
139
151
|
/**
|
|
140
152
|
* Get information about a given form</br></br> Required scope | `forms:read`
|
|
153
|
+
*
|
|
154
|
+
* @param {string} formId - Unique identifier for a Form
|
|
155
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
156
|
+
*
|
|
141
157
|
* @throws {@link Webflow.BadRequestError}
|
|
142
158
|
* @throws {@link Webflow.UnauthorizedError}
|
|
143
159
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -146,25 +162,26 @@ class Forms {
|
|
|
146
162
|
* @throws {@link Webflow.InternalServerError}
|
|
147
163
|
*
|
|
148
164
|
* @example
|
|
149
|
-
* await
|
|
165
|
+
* await client.forms.get("form_id")
|
|
150
166
|
*/
|
|
151
167
|
get(formId, requestOptions) {
|
|
152
168
|
var _a;
|
|
153
169
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
170
|
const _response = yield core.fetcher({
|
|
155
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `forms/${formId}`),
|
|
171
|
+
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)}`),
|
|
156
172
|
method: "GET",
|
|
157
173
|
headers: {
|
|
158
174
|
Authorization: yield this._getAuthorizationHeader(),
|
|
159
175
|
"X-Fern-Language": "JavaScript",
|
|
160
176
|
"X-Fern-SDK-Name": "webflow-api",
|
|
161
|
-
"X-Fern-SDK-Version": "2.3.
|
|
177
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
162
178
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
163
179
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
164
180
|
},
|
|
165
181
|
contentType: "application/json",
|
|
166
182
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
167
183
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
184
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
168
185
|
});
|
|
169
186
|
if (_response.ok) {
|
|
170
187
|
return yield serializers.Form.parseOrThrow(_response.body, {
|
|
@@ -186,7 +203,13 @@ class Forms {
|
|
|
186
203
|
case 404:
|
|
187
204
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
188
205
|
case 429:
|
|
189
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
206
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
207
|
+
unrecognizedObjectKeys: "passthrough",
|
|
208
|
+
allowUnrecognizedUnionMembers: true,
|
|
209
|
+
allowUnrecognizedEnumValues: true,
|
|
210
|
+
skipValidation: true,
|
|
211
|
+
breadcrumbsPrefix: ["response"],
|
|
212
|
+
}));
|
|
190
213
|
case 500:
|
|
191
214
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
192
215
|
default:
|
|
@@ -213,6 +236,11 @@ class Forms {
|
|
|
213
236
|
}
|
|
214
237
|
/**
|
|
215
238
|
* List form submissions for a given form </br></br> Required scope | `forms:read`
|
|
239
|
+
*
|
|
240
|
+
* @param {string} formId - Unique identifier for a Form
|
|
241
|
+
* @param {Webflow.FormsListSubmissionsRequest} request
|
|
242
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
243
|
+
*
|
|
216
244
|
* @throws {@link Webflow.BadRequestError}
|
|
217
245
|
* @throws {@link Webflow.UnauthorizedError}
|
|
218
246
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -221,25 +249,35 @@ class Forms {
|
|
|
221
249
|
* @throws {@link Webflow.InternalServerError}
|
|
222
250
|
*
|
|
223
251
|
* @example
|
|
224
|
-
* await
|
|
252
|
+
* await client.forms.listSubmissions("form_id")
|
|
225
253
|
*/
|
|
226
|
-
listSubmissions(formId, requestOptions) {
|
|
254
|
+
listSubmissions(formId, request = {}, requestOptions) {
|
|
227
255
|
var _a;
|
|
228
256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
257
|
+
const { offset, limit } = request;
|
|
258
|
+
const _queryParams = {};
|
|
259
|
+
if (offset != null) {
|
|
260
|
+
_queryParams["offset"] = offset.toString();
|
|
261
|
+
}
|
|
262
|
+
if (limit != null) {
|
|
263
|
+
_queryParams["limit"] = limit.toString();
|
|
264
|
+
}
|
|
229
265
|
const _response = yield core.fetcher({
|
|
230
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `forms/${formId}/submissions`),
|
|
266
|
+
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`),
|
|
231
267
|
method: "GET",
|
|
232
268
|
headers: {
|
|
233
269
|
Authorization: yield this._getAuthorizationHeader(),
|
|
234
270
|
"X-Fern-Language": "JavaScript",
|
|
235
271
|
"X-Fern-SDK-Name": "webflow-api",
|
|
236
|
-
"X-Fern-SDK-Version": "2.3.
|
|
272
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
237
273
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
238
274
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
239
275
|
},
|
|
240
276
|
contentType: "application/json",
|
|
277
|
+
queryParameters: _queryParams,
|
|
241
278
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
242
279
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
280
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
243
281
|
});
|
|
244
282
|
if (_response.ok) {
|
|
245
283
|
return yield serializers.FormSubmissionList.parseOrThrow(_response.body, {
|
|
@@ -261,7 +299,13 @@ class Forms {
|
|
|
261
299
|
case 404:
|
|
262
300
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
263
301
|
case 429:
|
|
264
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
302
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
303
|
+
unrecognizedObjectKeys: "passthrough",
|
|
304
|
+
allowUnrecognizedUnionMembers: true,
|
|
305
|
+
allowUnrecognizedEnumValues: true,
|
|
306
|
+
skipValidation: true,
|
|
307
|
+
breadcrumbsPrefix: ["response"],
|
|
308
|
+
}));
|
|
265
309
|
case 500:
|
|
266
310
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
267
311
|
default:
|
|
@@ -288,6 +332,10 @@ class Forms {
|
|
|
288
332
|
}
|
|
289
333
|
/**
|
|
290
334
|
* Get information about a given form submission</br></br> Required scope | `forms:read`
|
|
335
|
+
*
|
|
336
|
+
* @param {string} formSubmissionId - Unique identifier for a Form Submission
|
|
337
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
338
|
+
*
|
|
291
339
|
* @throws {@link Webflow.BadRequestError}
|
|
292
340
|
* @throws {@link Webflow.UnauthorizedError}
|
|
293
341
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -296,25 +344,26 @@ class Forms {
|
|
|
296
344
|
* @throws {@link Webflow.InternalServerError}
|
|
297
345
|
*
|
|
298
346
|
* @example
|
|
299
|
-
* await
|
|
347
|
+
* await client.forms.getSubmission("form_submission_id")
|
|
300
348
|
*/
|
|
301
349
|
getSubmission(formSubmissionId, requestOptions) {
|
|
302
350
|
var _a;
|
|
303
351
|
return __awaiter(this, void 0, void 0, function* () {
|
|
304
352
|
const _response = yield core.fetcher({
|
|
305
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `form_submissions/${formSubmissionId}`),
|
|
353
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `form_submissions/${encodeURIComponent(formSubmissionId)}`),
|
|
306
354
|
method: "GET",
|
|
307
355
|
headers: {
|
|
308
356
|
Authorization: yield this._getAuthorizationHeader(),
|
|
309
357
|
"X-Fern-Language": "JavaScript",
|
|
310
358
|
"X-Fern-SDK-Name": "webflow-api",
|
|
311
|
-
"X-Fern-SDK-Version": "2.3.
|
|
359
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
312
360
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
313
361
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
314
362
|
},
|
|
315
363
|
contentType: "application/json",
|
|
316
364
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
317
365
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
366
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
318
367
|
});
|
|
319
368
|
if (_response.ok) {
|
|
320
369
|
return yield serializers.FormSubmission.parseOrThrow(_response.body, {
|
|
@@ -336,7 +385,13 @@ class Forms {
|
|
|
336
385
|
case 404:
|
|
337
386
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
338
387
|
case 429:
|
|
339
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
388
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
389
|
+
unrecognizedObjectKeys: "passthrough",
|
|
390
|
+
allowUnrecognizedUnionMembers: true,
|
|
391
|
+
allowUnrecognizedEnumValues: true,
|
|
392
|
+
skipValidation: true,
|
|
393
|
+
breadcrumbsPrefix: ["response"],
|
|
394
|
+
}));
|
|
340
395
|
case 500:
|
|
341
396
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
342
397
|
default:
|
|
@@ -363,6 +418,11 @@ class Forms {
|
|
|
363
418
|
}
|
|
364
419
|
/**
|
|
365
420
|
* Update hidden fields on a form submission</br></br> Required scope | `forms:write`
|
|
421
|
+
*
|
|
422
|
+
* @param {string} formSubmissionId - Unique identifier for a Form Submission
|
|
423
|
+
* @param {Webflow.FormsUpdateSubmissionRequest} request
|
|
424
|
+
* @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
|
|
425
|
+
*
|
|
366
426
|
* @throws {@link Webflow.BadRequestError}
|
|
367
427
|
* @throws {@link Webflow.UnauthorizedError}
|
|
368
428
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -372,19 +432,19 @@ class Forms {
|
|
|
372
432
|
* @throws {@link Webflow.InternalServerError}
|
|
373
433
|
*
|
|
374
434
|
* @example
|
|
375
|
-
* await
|
|
435
|
+
* await client.forms.updateSubmission("form_submission_id")
|
|
376
436
|
*/
|
|
377
437
|
updateSubmission(formSubmissionId, request = {}, requestOptions) {
|
|
378
438
|
var _a;
|
|
379
439
|
return __awaiter(this, void 0, void 0, function* () {
|
|
380
440
|
const _response = yield core.fetcher({
|
|
381
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `form_submissions/${formSubmissionId}`),
|
|
441
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `form_submissions/${encodeURIComponent(formSubmissionId)}`),
|
|
382
442
|
method: "PATCH",
|
|
383
443
|
headers: {
|
|
384
444
|
Authorization: yield this._getAuthorizationHeader(),
|
|
385
445
|
"X-Fern-Language": "JavaScript",
|
|
386
446
|
"X-Fern-SDK-Name": "webflow-api",
|
|
387
|
-
"X-Fern-SDK-Version": "2.3.
|
|
447
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
388
448
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
389
449
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
390
450
|
},
|
|
@@ -394,6 +454,7 @@ class Forms {
|
|
|
394
454
|
}),
|
|
395
455
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
396
456
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
457
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
397
458
|
});
|
|
398
459
|
if (_response.ok) {
|
|
399
460
|
return yield serializers.FormSubmission.parseOrThrow(_response.body, {
|
|
@@ -417,7 +478,13 @@ class Forms {
|
|
|
417
478
|
case 409:
|
|
418
479
|
throw new Webflow.ConflictError(_response.error.body);
|
|
419
480
|
case 429:
|
|
420
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
481
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
482
|
+
unrecognizedObjectKeys: "passthrough",
|
|
483
|
+
allowUnrecognizedUnionMembers: true,
|
|
484
|
+
allowUnrecognizedEnumValues: true,
|
|
485
|
+
skipValidation: true,
|
|
486
|
+
breadcrumbsPrefix: ["response"],
|
|
487
|
+
}));
|
|
421
488
|
case 500:
|
|
422
489
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
423
490
|
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
|
+
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { FormsListRequest } from "./FormsListRequest";
|
|
2
|
-
export {
|
|
1
|
+
export { type FormsListRequest } from "./FormsListRequest";
|
|
2
|
+
export { type FormsListSubmissionsRequest } from "./FormsListSubmissionsRequest";
|
|
3
|
+
export { type FormsUpdateSubmissionRequest } from "./FormsUpdateSubmissionRequest";
|
package/api/resources/index.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ export * from "./collections/client/requests";
|
|
|
23
23
|
export * from "./pages/client/requests";
|
|
24
24
|
export * from "./scripts/client/requests";
|
|
25
25
|
export * from "./assets/client/requests";
|
|
26
|
-
export * from "./webhooks/client/requests";
|
|
27
26
|
export * from "./forms/client/requests";
|
|
28
27
|
export * from "./users/client/requests";
|
|
29
28
|
export * from "./accessGroups/client/requests";
|
package/api/resources/index.js
CHANGED
|
@@ -52,7 +52,6 @@ __exportStar(require("./collections/client/requests"), exports);
|
|
|
52
52
|
__exportStar(require("./pages/client/requests"), exports);
|
|
53
53
|
__exportStar(require("./scripts/client/requests"), exports);
|
|
54
54
|
__exportStar(require("./assets/client/requests"), exports);
|
|
55
|
-
__exportStar(require("./webhooks/client/requests"), exports);
|
|
56
55
|
__exportStar(require("./forms/client/requests"), exports);
|
|
57
56
|
__exportStar(require("./users/client/requests"), exports);
|
|
58
57
|
__exportStar(require("./accessGroups/client/requests"), exports);
|
|
@@ -3,15 +3,19 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
import * as Webflow from "
|
|
6
|
+
import * as Webflow from "../../../index";
|
|
7
7
|
export declare namespace Inventory {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.WebflowEnvironment | string>;
|
|
10
10
|
accessToken: core.Supplier<core.BearerToken>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
14
|
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
14
16
|
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
18
|
+
abortSignal?: AbortSignal;
|
|
15
19
|
}
|
|
16
20
|
}
|
|
17
21
|
export declare class Inventory {
|
|
@@ -21,6 +25,11 @@ export declare class Inventory {
|
|
|
21
25
|
* List the current inventory levels for a particular SKU item.
|
|
22
26
|
*
|
|
23
27
|
* Required scope | `ecommerce:read`
|
|
28
|
+
*
|
|
29
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
30
|
+
* @param {string} itemId - Unique identifier for an Item
|
|
31
|
+
* @param {Inventory.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
|
+
*
|
|
24
33
|
* @throws {@link Webflow.BadRequestError}
|
|
25
34
|
* @throws {@link Webflow.UnauthorizedError}
|
|
26
35
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -30,13 +39,19 @@ export declare class Inventory {
|
|
|
30
39
|
* @throws {@link Webflow.InternalServerError}
|
|
31
40
|
*
|
|
32
41
|
* @example
|
|
33
|
-
* await
|
|
42
|
+
* await client.inventory.list("collection_id", "item_id")
|
|
34
43
|
*/
|
|
35
44
|
list(collectionId: string, itemId: string, requestOptions?: Inventory.RequestOptions): Promise<Webflow.InventoryItem>;
|
|
36
45
|
/**
|
|
37
46
|
* Updates the current inventory levels for a particular SKU item. Updates may be given in one or two methods, absolutely or incrementally. Absolute updates are done by setting `quantity` directly. Incremental updates are by specifying the inventory delta in `updateQuantity` which is then added to the `quantity` stored on the server.
|
|
38
47
|
*
|
|
39
48
|
* Required scope | `ecommerce:write`
|
|
49
|
+
*
|
|
50
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
51
|
+
* @param {string} itemId - Unique identifier for an Item
|
|
52
|
+
* @param {Webflow.InventoryUpdateRequest} request
|
|
53
|
+
* @param {Inventory.RequestOptions} requestOptions - Request-specific configuration.
|
|
54
|
+
*
|
|
40
55
|
* @throws {@link Webflow.BadRequestError}
|
|
41
56
|
* @throws {@link Webflow.UnauthorizedError}
|
|
42
57
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -46,10 +61,8 @@ export declare class Inventory {
|
|
|
46
61
|
* @throws {@link Webflow.InternalServerError}
|
|
47
62
|
*
|
|
48
63
|
* @example
|
|
49
|
-
* await
|
|
50
|
-
* inventoryType: Webflow.InventoryUpdateRequestInventoryType.Infinite
|
|
51
|
-
* updateQuantity: 1,
|
|
52
|
-
* quantity: 100
|
|
64
|
+
* await client.inventory.update("collection_id", "item_id", {
|
|
65
|
+
* inventoryType: Webflow.InventoryUpdateRequestInventoryType.Infinite
|
|
53
66
|
* })
|
|
54
67
|
*/
|
|
55
68
|
update(collectionId: string, itemId: string, request: Webflow.InventoryUpdateRequest, requestOptions?: Inventory.RequestOptions): Promise<Webflow.InventoryItem>;
|
|
@@ -41,10 +41,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.Inventory = void 0;
|
|
42
42
|
const environments = __importStar(require("../../../../environments"));
|
|
43
43
|
const core = __importStar(require("../../../../core"));
|
|
44
|
-
const Webflow = __importStar(require("
|
|
44
|
+
const Webflow = __importStar(require("../../../index"));
|
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
|
-
const serializers = __importStar(require("../../../../serialization"));
|
|
47
|
-
const errors = __importStar(require("../../../../errors"));
|
|
46
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
47
|
+
const errors = __importStar(require("../../../../errors/index"));
|
|
48
48
|
class Inventory {
|
|
49
49
|
constructor(_options) {
|
|
50
50
|
this._options = _options;
|
|
@@ -53,6 +53,11 @@ class Inventory {
|
|
|
53
53
|
* List the current inventory levels for a particular SKU item.
|
|
54
54
|
*
|
|
55
55
|
* Required scope | `ecommerce:read`
|
|
56
|
+
*
|
|
57
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
58
|
+
* @param {string} itemId - Unique identifier for an Item
|
|
59
|
+
* @param {Inventory.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
|
+
*
|
|
56
61
|
* @throws {@link Webflow.BadRequestError}
|
|
57
62
|
* @throws {@link Webflow.UnauthorizedError}
|
|
58
63
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -62,25 +67,26 @@ class Inventory {
|
|
|
62
67
|
* @throws {@link Webflow.InternalServerError}
|
|
63
68
|
*
|
|
64
69
|
* @example
|
|
65
|
-
* await
|
|
70
|
+
* await client.inventory.list("collection_id", "item_id")
|
|
66
71
|
*/
|
|
67
72
|
list(collectionId, itemId, requestOptions) {
|
|
68
73
|
var _a;
|
|
69
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
70
75
|
const _response = yield core.fetcher({
|
|
71
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/${itemId}/inventory`),
|
|
76
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/inventory`),
|
|
72
77
|
method: "GET",
|
|
73
78
|
headers: {
|
|
74
79
|
Authorization: yield this._getAuthorizationHeader(),
|
|
75
80
|
"X-Fern-Language": "JavaScript",
|
|
76
81
|
"X-Fern-SDK-Name": "webflow-api",
|
|
77
|
-
"X-Fern-SDK-Version": "2.3.
|
|
82
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
78
83
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
79
84
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
80
85
|
},
|
|
81
86
|
contentType: "application/json",
|
|
82
87
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
83
88
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
89
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
84
90
|
});
|
|
85
91
|
if (_response.ok) {
|
|
86
92
|
return yield serializers.InventoryItem.parseOrThrow(_response.body, {
|
|
@@ -104,7 +110,13 @@ class Inventory {
|
|
|
104
110
|
case 409:
|
|
105
111
|
throw new Webflow.ConflictError(_response.error.body);
|
|
106
112
|
case 429:
|
|
107
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
113
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
114
|
+
unrecognizedObjectKeys: "passthrough",
|
|
115
|
+
allowUnrecognizedUnionMembers: true,
|
|
116
|
+
allowUnrecognizedEnumValues: true,
|
|
117
|
+
skipValidation: true,
|
|
118
|
+
breadcrumbsPrefix: ["response"],
|
|
119
|
+
}));
|
|
108
120
|
case 500:
|
|
109
121
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
110
122
|
default:
|
|
@@ -133,6 +145,12 @@ class Inventory {
|
|
|
133
145
|
* Updates the current inventory levels for a particular SKU item. Updates may be given in one or two methods, absolutely or incrementally. Absolute updates are done by setting `quantity` directly. Incremental updates are by specifying the inventory delta in `updateQuantity` which is then added to the `quantity` stored on the server.
|
|
134
146
|
*
|
|
135
147
|
* Required scope | `ecommerce:write`
|
|
148
|
+
*
|
|
149
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
150
|
+
* @param {string} itemId - Unique identifier for an Item
|
|
151
|
+
* @param {Webflow.InventoryUpdateRequest} request
|
|
152
|
+
* @param {Inventory.RequestOptions} requestOptions - Request-specific configuration.
|
|
153
|
+
*
|
|
136
154
|
* @throws {@link Webflow.BadRequestError}
|
|
137
155
|
* @throws {@link Webflow.UnauthorizedError}
|
|
138
156
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -142,23 +160,21 @@ class Inventory {
|
|
|
142
160
|
* @throws {@link Webflow.InternalServerError}
|
|
143
161
|
*
|
|
144
162
|
* @example
|
|
145
|
-
* await
|
|
146
|
-
* inventoryType: Webflow.InventoryUpdateRequestInventoryType.Infinite
|
|
147
|
-
* updateQuantity: 1,
|
|
148
|
-
* quantity: 100
|
|
163
|
+
* await client.inventory.update("collection_id", "item_id", {
|
|
164
|
+
* inventoryType: Webflow.InventoryUpdateRequestInventoryType.Infinite
|
|
149
165
|
* })
|
|
150
166
|
*/
|
|
151
167
|
update(collectionId, itemId, request, requestOptions) {
|
|
152
168
|
var _a;
|
|
153
169
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
170
|
const _response = yield core.fetcher({
|
|
155
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/${itemId}/inventory`),
|
|
171
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/inventory`),
|
|
156
172
|
method: "PATCH",
|
|
157
173
|
headers: {
|
|
158
174
|
Authorization: yield this._getAuthorizationHeader(),
|
|
159
175
|
"X-Fern-Language": "JavaScript",
|
|
160
176
|
"X-Fern-SDK-Name": "webflow-api",
|
|
161
|
-
"X-Fern-SDK-Version": "2.3.
|
|
177
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
162
178
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
163
179
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
164
180
|
},
|
|
@@ -166,6 +182,7 @@ class Inventory {
|
|
|
166
182
|
body: yield serializers.InventoryUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
167
183
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
168
184
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
185
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
169
186
|
});
|
|
170
187
|
if (_response.ok) {
|
|
171
188
|
return yield serializers.InventoryItem.parseOrThrow(_response.body, {
|
|
@@ -189,7 +206,13 @@ class Inventory {
|
|
|
189
206
|
case 409:
|
|
190
207
|
throw new Webflow.ConflictError(_response.error.body);
|
|
191
208
|
case 429:
|
|
192
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
209
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
210
|
+
unrecognizedObjectKeys: "passthrough",
|
|
211
|
+
allowUnrecognizedUnionMembers: true,
|
|
212
|
+
allowUnrecognizedEnumValues: true,
|
|
213
|
+
skipValidation: true,
|
|
214
|
+
breadcrumbsPrefix: ["response"],
|
|
215
|
+
}));
|
|
193
216
|
case 500:
|
|
194
217
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
195
218
|
default:
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Webflow from "
|
|
4
|
+
import * as Webflow from "../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
7
|
* {
|
|
8
|
-
* inventoryType: Webflow.InventoryUpdateRequestInventoryType.Infinite
|
|
9
|
-
* updateQuantity: 1,
|
|
10
|
-
* quantity: 100
|
|
8
|
+
* inventoryType: Webflow.InventoryUpdateRequestInventoryType.Infinite
|
|
11
9
|
* }
|
|
12
10
|
*/
|
|
13
11
|
export interface InventoryUpdateRequest {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { InventoryUpdateRequest } from "./InventoryUpdateRequest";
|
|
1
|
+
export { type InventoryUpdateRequest } from "./InventoryUpdateRequest";
|