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
|
@@ -1 +1 @@
|
|
|
1
|
-
export { AccessGroupsListRequest } from "./AccessGroupsListRequest";
|
|
1
|
+
export { type AccessGroupsListRequest } from "./AccessGroupsListRequest";
|
|
@@ -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 Assets {
|
|
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 Assets {
|
|
@@ -19,6 +23,10 @@ export declare class Assets {
|
|
|
19
23
|
constructor(_options: Assets.Options);
|
|
20
24
|
/**
|
|
21
25
|
* List assets for a given site </br></br> Required scope | `assets:read`
|
|
26
|
+
*
|
|
27
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
28
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
|
+
*
|
|
22
30
|
* @throws {@link Webflow.BadRequestError}
|
|
23
31
|
* @throws {@link Webflow.UnauthorizedError}
|
|
24
32
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -26,11 +34,16 @@ export declare class Assets {
|
|
|
26
34
|
* @throws {@link Webflow.InternalServerError}
|
|
27
35
|
*
|
|
28
36
|
* @example
|
|
29
|
-
* await
|
|
37
|
+
* await client.assets.list("site_id")
|
|
30
38
|
*/
|
|
31
39
|
list(siteId: string, requestOptions?: Assets.RequestOptions): Promise<Webflow.Assets>;
|
|
32
40
|
/**
|
|
33
41
|
* Create a new asset entry. </br></br> This endpoint generates a response with the following information: `uploadUrl` and `uploadDetails`. You can use these two properties to [upload the file to Amazon s3 by making a POST](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html) request to the `uploadUrl` with the `uploadDetails` object as your header information in the request. </br></br> Required scope | `assets:write`
|
|
42
|
+
*
|
|
43
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
44
|
+
* @param {Webflow.AssetsCreateRequest} request
|
|
45
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
|
+
*
|
|
34
47
|
* @throws {@link Webflow.BadRequestError}
|
|
35
48
|
* @throws {@link Webflow.UnauthorizedError}
|
|
36
49
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -38,15 +51,18 @@ export declare class Assets {
|
|
|
38
51
|
* @throws {@link Webflow.InternalServerError}
|
|
39
52
|
*
|
|
40
53
|
* @example
|
|
41
|
-
* await
|
|
54
|
+
* await client.assets.create("site_id", {
|
|
42
55
|
* fileName: "file.png",
|
|
43
|
-
* fileHash: "3c7d87c9575702bc3b1e991f4d3c638e"
|
|
44
|
-
* parentFolder: "6436b1ce5281cace05b65aea"
|
|
56
|
+
* fileHash: "3c7d87c9575702bc3b1e991f4d3c638e"
|
|
45
57
|
* })
|
|
46
58
|
*/
|
|
47
59
|
create(siteId: string, request: Webflow.AssetsCreateRequest, requestOptions?: Assets.RequestOptions): Promise<Webflow.AssetUpload>;
|
|
48
60
|
/**
|
|
49
61
|
* Get an Asset </br></br> Required scope | `assets:read`
|
|
62
|
+
*
|
|
63
|
+
* @param {string} assetId - Unique identifier for an Asset on a site
|
|
64
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
65
|
+
*
|
|
50
66
|
* @throws {@link Webflow.BadRequestError}
|
|
51
67
|
* @throws {@link Webflow.UnauthorizedError}
|
|
52
68
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -54,11 +70,15 @@ export declare class Assets {
|
|
|
54
70
|
* @throws {@link Webflow.InternalServerError}
|
|
55
71
|
*
|
|
56
72
|
* @example
|
|
57
|
-
* await
|
|
73
|
+
* await client.assets.get("asset_id")
|
|
58
74
|
*/
|
|
59
75
|
get(assetId: string, requestOptions?: Assets.RequestOptions): Promise<Webflow.Asset>;
|
|
60
76
|
/**
|
|
61
77
|
* Delete an Asset
|
|
78
|
+
*
|
|
79
|
+
* @param {string} assetId - Unique identifier for an Asset on a site
|
|
80
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
|
+
*
|
|
62
82
|
* @throws {@link Webflow.BadRequestError}
|
|
63
83
|
* @throws {@link Webflow.UnauthorizedError}
|
|
64
84
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -66,11 +86,16 @@ export declare class Assets {
|
|
|
66
86
|
* @throws {@link Webflow.InternalServerError}
|
|
67
87
|
*
|
|
68
88
|
* @example
|
|
69
|
-
* await
|
|
89
|
+
* await client.assets.delete("asset_id")
|
|
70
90
|
*/
|
|
71
91
|
delete(assetId: string, requestOptions?: Assets.RequestOptions): Promise<void>;
|
|
72
92
|
/**
|
|
73
93
|
* Update an Asset </br></br> Required scope | `assets:write`
|
|
94
|
+
*
|
|
95
|
+
* @param {string} assetId - Unique identifier for an Asset on a site
|
|
96
|
+
* @param {Webflow.AssetsUpdateRequest} request
|
|
97
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
98
|
+
*
|
|
74
99
|
* @throws {@link Webflow.BadRequestError}
|
|
75
100
|
* @throws {@link Webflow.UnauthorizedError}
|
|
76
101
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -78,13 +103,17 @@ export declare class Assets {
|
|
|
78
103
|
* @throws {@link Webflow.InternalServerError}
|
|
79
104
|
*
|
|
80
105
|
* @example
|
|
81
|
-
* await
|
|
106
|
+
* await client.assets.update("asset_id", {
|
|
82
107
|
* displayName: "bulldoze.png"
|
|
83
108
|
* })
|
|
84
109
|
*/
|
|
85
110
|
update(assetId: string, request: Webflow.AssetsUpdateRequest, requestOptions?: Assets.RequestOptions): Promise<Webflow.Asset>;
|
|
86
111
|
/**
|
|
87
112
|
* List Asset Folders within a given site <br><br> Required scope | `assets:read`
|
|
113
|
+
*
|
|
114
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
115
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
116
|
+
*
|
|
88
117
|
* @throws {@link Webflow.BadRequestError}
|
|
89
118
|
* @throws {@link Webflow.UnauthorizedError}
|
|
90
119
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -92,11 +121,16 @@ export declare class Assets {
|
|
|
92
121
|
* @throws {@link Webflow.InternalServerError}
|
|
93
122
|
*
|
|
94
123
|
* @example
|
|
95
|
-
* await
|
|
124
|
+
* await client.assets.listFolders("site_id")
|
|
96
125
|
*/
|
|
97
126
|
listFolders(siteId: string, requestOptions?: Assets.RequestOptions): Promise<Webflow.AssetFolderList>;
|
|
98
127
|
/**
|
|
99
128
|
* Create an Asset Folder within a given site <br><br> Required scope | `assets:write`
|
|
129
|
+
*
|
|
130
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
131
|
+
* @param {Webflow.AssetsCreateFolderRequest} request
|
|
132
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
133
|
+
*
|
|
100
134
|
* @throws {@link Webflow.BadRequestError}
|
|
101
135
|
* @throws {@link Webflow.UnauthorizedError}
|
|
102
136
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -104,14 +138,17 @@ export declare class Assets {
|
|
|
104
138
|
* @throws {@link Webflow.InternalServerError}
|
|
105
139
|
*
|
|
106
140
|
* @example
|
|
107
|
-
* await
|
|
108
|
-
* displayName: "my asset folder"
|
|
109
|
-
* parentFolder: "6390c49774a71f99f21a08eb"
|
|
141
|
+
* await client.assets.createFolder("site_id", {
|
|
142
|
+
* displayName: "my asset folder"
|
|
110
143
|
* })
|
|
111
144
|
*/
|
|
112
145
|
createFolder(siteId: string, request: Webflow.AssetsCreateFolderRequest, requestOptions?: Assets.RequestOptions): Promise<Webflow.AssetFolder>;
|
|
113
146
|
/**
|
|
114
147
|
* Get details about a specific Asset Folder <br><br> Required scope | `assets:read`
|
|
148
|
+
*
|
|
149
|
+
* @param {string} assetFolderId - Unique identifier for an Asset Folder
|
|
150
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
151
|
+
*
|
|
115
152
|
* @throws {@link Webflow.BadRequestError}
|
|
116
153
|
* @throws {@link Webflow.UnauthorizedError}
|
|
117
154
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -119,7 +156,7 @@ export declare class Assets {
|
|
|
119
156
|
* @throws {@link Webflow.InternalServerError}
|
|
120
157
|
*
|
|
121
158
|
* @example
|
|
122
|
-
* await
|
|
159
|
+
* await client.assets.getFolder("asset_folder_id")
|
|
123
160
|
*/
|
|
124
161
|
getFolder(assetFolderId: string, requestOptions?: Assets.RequestOptions): Promise<Webflow.AssetFolder>;
|
|
125
162
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -41,16 +41,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.Assets = 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 Assets {
|
|
49
49
|
constructor(_options) {
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* List assets for a given site </br></br> Required scope | `assets:read`
|
|
54
|
+
*
|
|
55
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
56
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
|
+
*
|
|
54
58
|
* @throws {@link Webflow.BadRequestError}
|
|
55
59
|
* @throws {@link Webflow.UnauthorizedError}
|
|
56
60
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -58,25 +62,26 @@ class Assets {
|
|
|
58
62
|
* @throws {@link Webflow.InternalServerError}
|
|
59
63
|
*
|
|
60
64
|
* @example
|
|
61
|
-
* await
|
|
65
|
+
* await client.assets.list("site_id")
|
|
62
66
|
*/
|
|
63
67
|
list(siteId, requestOptions) {
|
|
64
68
|
var _a;
|
|
65
69
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
70
|
const _response = yield core.fetcher({
|
|
67
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/assets`),
|
|
71
|
+
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)}/assets`),
|
|
68
72
|
method: "GET",
|
|
69
73
|
headers: {
|
|
70
74
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
75
|
"X-Fern-Language": "JavaScript",
|
|
72
76
|
"X-Fern-SDK-Name": "webflow-api",
|
|
73
|
-
"X-Fern-SDK-Version": "2.3.
|
|
77
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
74
78
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
79
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
80
|
},
|
|
77
81
|
contentType: "application/json",
|
|
78
82
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
79
83
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
84
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
80
85
|
});
|
|
81
86
|
if (_response.ok) {
|
|
82
87
|
return yield serializers.Assets.parseOrThrow(_response.body, {
|
|
@@ -96,7 +101,13 @@ class Assets {
|
|
|
96
101
|
case 404:
|
|
97
102
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
98
103
|
case 429:
|
|
99
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
104
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
105
|
+
unrecognizedObjectKeys: "passthrough",
|
|
106
|
+
allowUnrecognizedUnionMembers: true,
|
|
107
|
+
allowUnrecognizedEnumValues: true,
|
|
108
|
+
skipValidation: true,
|
|
109
|
+
breadcrumbsPrefix: ["response"],
|
|
110
|
+
}));
|
|
100
111
|
case 500:
|
|
101
112
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
102
113
|
default:
|
|
@@ -123,6 +134,11 @@ class Assets {
|
|
|
123
134
|
}
|
|
124
135
|
/**
|
|
125
136
|
* Create a new asset entry. </br></br> This endpoint generates a response with the following information: `uploadUrl` and `uploadDetails`. You can use these two properties to [upload the file to Amazon s3 by making a POST](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html) request to the `uploadUrl` with the `uploadDetails` object as your header information in the request. </br></br> Required scope | `assets:write`
|
|
137
|
+
*
|
|
138
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
139
|
+
* @param {Webflow.AssetsCreateRequest} request
|
|
140
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
141
|
+
*
|
|
126
142
|
* @throws {@link Webflow.BadRequestError}
|
|
127
143
|
* @throws {@link Webflow.UnauthorizedError}
|
|
128
144
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -130,23 +146,22 @@ class Assets {
|
|
|
130
146
|
* @throws {@link Webflow.InternalServerError}
|
|
131
147
|
*
|
|
132
148
|
* @example
|
|
133
|
-
* await
|
|
149
|
+
* await client.assets.create("site_id", {
|
|
134
150
|
* fileName: "file.png",
|
|
135
|
-
* fileHash: "3c7d87c9575702bc3b1e991f4d3c638e"
|
|
136
|
-
* parentFolder: "6436b1ce5281cace05b65aea"
|
|
151
|
+
* fileHash: "3c7d87c9575702bc3b1e991f4d3c638e"
|
|
137
152
|
* })
|
|
138
153
|
*/
|
|
139
154
|
create(siteId, request, requestOptions) {
|
|
140
155
|
var _a;
|
|
141
156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
142
157
|
const _response = yield core.fetcher({
|
|
143
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/assets`),
|
|
158
|
+
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)}/assets`),
|
|
144
159
|
method: "POST",
|
|
145
160
|
headers: {
|
|
146
161
|
Authorization: yield this._getAuthorizationHeader(),
|
|
147
162
|
"X-Fern-Language": "JavaScript",
|
|
148
163
|
"X-Fern-SDK-Name": "webflow-api",
|
|
149
|
-
"X-Fern-SDK-Version": "2.3.
|
|
164
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
150
165
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
151
166
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
152
167
|
},
|
|
@@ -154,6 +169,7 @@ class Assets {
|
|
|
154
169
|
body: yield serializers.AssetsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
155
170
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
156
171
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
172
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
157
173
|
});
|
|
158
174
|
if (_response.ok) {
|
|
159
175
|
return yield serializers.AssetUpload.parseOrThrow(_response.body, {
|
|
@@ -173,7 +189,13 @@ class Assets {
|
|
|
173
189
|
case 404:
|
|
174
190
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
175
191
|
case 429:
|
|
176
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
192
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
193
|
+
unrecognizedObjectKeys: "passthrough",
|
|
194
|
+
allowUnrecognizedUnionMembers: true,
|
|
195
|
+
allowUnrecognizedEnumValues: true,
|
|
196
|
+
skipValidation: true,
|
|
197
|
+
breadcrumbsPrefix: ["response"],
|
|
198
|
+
}));
|
|
177
199
|
case 500:
|
|
178
200
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
179
201
|
default:
|
|
@@ -200,6 +222,10 @@ class Assets {
|
|
|
200
222
|
}
|
|
201
223
|
/**
|
|
202
224
|
* Get an Asset </br></br> Required scope | `assets:read`
|
|
225
|
+
*
|
|
226
|
+
* @param {string} assetId - Unique identifier for an Asset on a site
|
|
227
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
228
|
+
*
|
|
203
229
|
* @throws {@link Webflow.BadRequestError}
|
|
204
230
|
* @throws {@link Webflow.UnauthorizedError}
|
|
205
231
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -207,25 +233,26 @@ class Assets {
|
|
|
207
233
|
* @throws {@link Webflow.InternalServerError}
|
|
208
234
|
*
|
|
209
235
|
* @example
|
|
210
|
-
* await
|
|
236
|
+
* await client.assets.get("asset_id")
|
|
211
237
|
*/
|
|
212
238
|
get(assetId, requestOptions) {
|
|
213
239
|
var _a;
|
|
214
240
|
return __awaiter(this, void 0, void 0, function* () {
|
|
215
241
|
const _response = yield core.fetcher({
|
|
216
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `assets/${assetId}`),
|
|
242
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `assets/${encodeURIComponent(assetId)}`),
|
|
217
243
|
method: "GET",
|
|
218
244
|
headers: {
|
|
219
245
|
Authorization: yield this._getAuthorizationHeader(),
|
|
220
246
|
"X-Fern-Language": "JavaScript",
|
|
221
247
|
"X-Fern-SDK-Name": "webflow-api",
|
|
222
|
-
"X-Fern-SDK-Version": "2.3.
|
|
248
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
223
249
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
224
250
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
225
251
|
},
|
|
226
252
|
contentType: "application/json",
|
|
227
253
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
228
254
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
255
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
229
256
|
});
|
|
230
257
|
if (_response.ok) {
|
|
231
258
|
return yield serializers.Asset.parseOrThrow(_response.body, {
|
|
@@ -245,7 +272,13 @@ class Assets {
|
|
|
245
272
|
case 404:
|
|
246
273
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
247
274
|
case 429:
|
|
248
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
275
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
276
|
+
unrecognizedObjectKeys: "passthrough",
|
|
277
|
+
allowUnrecognizedUnionMembers: true,
|
|
278
|
+
allowUnrecognizedEnumValues: true,
|
|
279
|
+
skipValidation: true,
|
|
280
|
+
breadcrumbsPrefix: ["response"],
|
|
281
|
+
}));
|
|
249
282
|
case 500:
|
|
250
283
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
251
284
|
default:
|
|
@@ -272,6 +305,10 @@ class Assets {
|
|
|
272
305
|
}
|
|
273
306
|
/**
|
|
274
307
|
* Delete an Asset
|
|
308
|
+
*
|
|
309
|
+
* @param {string} assetId - Unique identifier for an Asset on a site
|
|
310
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
311
|
+
*
|
|
275
312
|
* @throws {@link Webflow.BadRequestError}
|
|
276
313
|
* @throws {@link Webflow.UnauthorizedError}
|
|
277
314
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -279,25 +316,26 @@ class Assets {
|
|
|
279
316
|
* @throws {@link Webflow.InternalServerError}
|
|
280
317
|
*
|
|
281
318
|
* @example
|
|
282
|
-
* await
|
|
319
|
+
* await client.assets.delete("asset_id")
|
|
283
320
|
*/
|
|
284
321
|
delete(assetId, requestOptions) {
|
|
285
322
|
var _a;
|
|
286
323
|
return __awaiter(this, void 0, void 0, function* () {
|
|
287
324
|
const _response = yield core.fetcher({
|
|
288
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `assets/${assetId}`),
|
|
325
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `assets/${encodeURIComponent(assetId)}`),
|
|
289
326
|
method: "DELETE",
|
|
290
327
|
headers: {
|
|
291
328
|
Authorization: yield this._getAuthorizationHeader(),
|
|
292
329
|
"X-Fern-Language": "JavaScript",
|
|
293
330
|
"X-Fern-SDK-Name": "webflow-api",
|
|
294
|
-
"X-Fern-SDK-Version": "2.3.
|
|
331
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
295
332
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
296
333
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
297
334
|
},
|
|
298
335
|
contentType: "application/json",
|
|
299
336
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
300
337
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
338
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
301
339
|
});
|
|
302
340
|
if (_response.ok) {
|
|
303
341
|
return;
|
|
@@ -311,7 +349,13 @@ class Assets {
|
|
|
311
349
|
case 404:
|
|
312
350
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
313
351
|
case 429:
|
|
314
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
352
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
353
|
+
unrecognizedObjectKeys: "passthrough",
|
|
354
|
+
allowUnrecognizedUnionMembers: true,
|
|
355
|
+
allowUnrecognizedEnumValues: true,
|
|
356
|
+
skipValidation: true,
|
|
357
|
+
breadcrumbsPrefix: ["response"],
|
|
358
|
+
}));
|
|
315
359
|
case 500:
|
|
316
360
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
317
361
|
default:
|
|
@@ -338,6 +382,11 @@ class Assets {
|
|
|
338
382
|
}
|
|
339
383
|
/**
|
|
340
384
|
* Update an Asset </br></br> Required scope | `assets:write`
|
|
385
|
+
*
|
|
386
|
+
* @param {string} assetId - Unique identifier for an Asset on a site
|
|
387
|
+
* @param {Webflow.AssetsUpdateRequest} request
|
|
388
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
389
|
+
*
|
|
341
390
|
* @throws {@link Webflow.BadRequestError}
|
|
342
391
|
* @throws {@link Webflow.UnauthorizedError}
|
|
343
392
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -345,7 +394,7 @@ class Assets {
|
|
|
345
394
|
* @throws {@link Webflow.InternalServerError}
|
|
346
395
|
*
|
|
347
396
|
* @example
|
|
348
|
-
* await
|
|
397
|
+
* await client.assets.update("asset_id", {
|
|
349
398
|
* displayName: "bulldoze.png"
|
|
350
399
|
* })
|
|
351
400
|
*/
|
|
@@ -353,13 +402,13 @@ class Assets {
|
|
|
353
402
|
var _a;
|
|
354
403
|
return __awaiter(this, void 0, void 0, function* () {
|
|
355
404
|
const _response = yield core.fetcher({
|
|
356
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `assets/${assetId}`),
|
|
405
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `assets/${encodeURIComponent(assetId)}`),
|
|
357
406
|
method: "PATCH",
|
|
358
407
|
headers: {
|
|
359
408
|
Authorization: yield this._getAuthorizationHeader(),
|
|
360
409
|
"X-Fern-Language": "JavaScript",
|
|
361
410
|
"X-Fern-SDK-Name": "webflow-api",
|
|
362
|
-
"X-Fern-SDK-Version": "2.3.
|
|
411
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
363
412
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
364
413
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
365
414
|
},
|
|
@@ -367,6 +416,7 @@ class Assets {
|
|
|
367
416
|
body: yield serializers.AssetsUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
368
417
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
369
418
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
419
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
370
420
|
});
|
|
371
421
|
if (_response.ok) {
|
|
372
422
|
return yield serializers.Asset.parseOrThrow(_response.body, {
|
|
@@ -386,7 +436,13 @@ class Assets {
|
|
|
386
436
|
case 404:
|
|
387
437
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
388
438
|
case 429:
|
|
389
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
439
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
440
|
+
unrecognizedObjectKeys: "passthrough",
|
|
441
|
+
allowUnrecognizedUnionMembers: true,
|
|
442
|
+
allowUnrecognizedEnumValues: true,
|
|
443
|
+
skipValidation: true,
|
|
444
|
+
breadcrumbsPrefix: ["response"],
|
|
445
|
+
}));
|
|
390
446
|
case 500:
|
|
391
447
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
392
448
|
default:
|
|
@@ -413,6 +469,10 @@ class Assets {
|
|
|
413
469
|
}
|
|
414
470
|
/**
|
|
415
471
|
* List Asset Folders within a given site <br><br> Required scope | `assets:read`
|
|
472
|
+
*
|
|
473
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
474
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
475
|
+
*
|
|
416
476
|
* @throws {@link Webflow.BadRequestError}
|
|
417
477
|
* @throws {@link Webflow.UnauthorizedError}
|
|
418
478
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -420,25 +480,26 @@ class Assets {
|
|
|
420
480
|
* @throws {@link Webflow.InternalServerError}
|
|
421
481
|
*
|
|
422
482
|
* @example
|
|
423
|
-
* await
|
|
483
|
+
* await client.assets.listFolders("site_id")
|
|
424
484
|
*/
|
|
425
485
|
listFolders(siteId, requestOptions) {
|
|
426
486
|
var _a;
|
|
427
487
|
return __awaiter(this, void 0, void 0, function* () {
|
|
428
488
|
const _response = yield core.fetcher({
|
|
429
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/asset_folders`),
|
|
489
|
+
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)}/asset_folders`),
|
|
430
490
|
method: "GET",
|
|
431
491
|
headers: {
|
|
432
492
|
Authorization: yield this._getAuthorizationHeader(),
|
|
433
493
|
"X-Fern-Language": "JavaScript",
|
|
434
494
|
"X-Fern-SDK-Name": "webflow-api",
|
|
435
|
-
"X-Fern-SDK-Version": "2.3.
|
|
495
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
436
496
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
437
497
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
438
498
|
},
|
|
439
499
|
contentType: "application/json",
|
|
440
500
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
441
501
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
502
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
442
503
|
});
|
|
443
504
|
if (_response.ok) {
|
|
444
505
|
return yield serializers.AssetFolderList.parseOrThrow(_response.body, {
|
|
@@ -458,7 +519,13 @@ class Assets {
|
|
|
458
519
|
case 404:
|
|
459
520
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
460
521
|
case 429:
|
|
461
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
522
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
523
|
+
unrecognizedObjectKeys: "passthrough",
|
|
524
|
+
allowUnrecognizedUnionMembers: true,
|
|
525
|
+
allowUnrecognizedEnumValues: true,
|
|
526
|
+
skipValidation: true,
|
|
527
|
+
breadcrumbsPrefix: ["response"],
|
|
528
|
+
}));
|
|
462
529
|
case 500:
|
|
463
530
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
464
531
|
default:
|
|
@@ -485,6 +552,11 @@ class Assets {
|
|
|
485
552
|
}
|
|
486
553
|
/**
|
|
487
554
|
* Create an Asset Folder within a given site <br><br> Required scope | `assets:write`
|
|
555
|
+
*
|
|
556
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
557
|
+
* @param {Webflow.AssetsCreateFolderRequest} request
|
|
558
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
559
|
+
*
|
|
488
560
|
* @throws {@link Webflow.BadRequestError}
|
|
489
561
|
* @throws {@link Webflow.UnauthorizedError}
|
|
490
562
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -492,22 +564,21 @@ class Assets {
|
|
|
492
564
|
* @throws {@link Webflow.InternalServerError}
|
|
493
565
|
*
|
|
494
566
|
* @example
|
|
495
|
-
* await
|
|
496
|
-
* displayName: "my asset folder"
|
|
497
|
-
* parentFolder: "6390c49774a71f99f21a08eb"
|
|
567
|
+
* await client.assets.createFolder("site_id", {
|
|
568
|
+
* displayName: "my asset folder"
|
|
498
569
|
* })
|
|
499
570
|
*/
|
|
500
571
|
createFolder(siteId, request, requestOptions) {
|
|
501
572
|
var _a;
|
|
502
573
|
return __awaiter(this, void 0, void 0, function* () {
|
|
503
574
|
const _response = yield core.fetcher({
|
|
504
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/asset_folders`),
|
|
575
|
+
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)}/asset_folders`),
|
|
505
576
|
method: "POST",
|
|
506
577
|
headers: {
|
|
507
578
|
Authorization: yield this._getAuthorizationHeader(),
|
|
508
579
|
"X-Fern-Language": "JavaScript",
|
|
509
580
|
"X-Fern-SDK-Name": "webflow-api",
|
|
510
|
-
"X-Fern-SDK-Version": "2.3.
|
|
581
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
511
582
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
512
583
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
513
584
|
},
|
|
@@ -515,6 +586,7 @@ class Assets {
|
|
|
515
586
|
body: yield serializers.AssetsCreateFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
516
587
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
517
588
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
589
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
518
590
|
});
|
|
519
591
|
if (_response.ok) {
|
|
520
592
|
return yield serializers.AssetFolder.parseOrThrow(_response.body, {
|
|
@@ -534,7 +606,13 @@ class Assets {
|
|
|
534
606
|
case 404:
|
|
535
607
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
536
608
|
case 429:
|
|
537
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
609
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
610
|
+
unrecognizedObjectKeys: "passthrough",
|
|
611
|
+
allowUnrecognizedUnionMembers: true,
|
|
612
|
+
allowUnrecognizedEnumValues: true,
|
|
613
|
+
skipValidation: true,
|
|
614
|
+
breadcrumbsPrefix: ["response"],
|
|
615
|
+
}));
|
|
538
616
|
case 500:
|
|
539
617
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
540
618
|
default:
|
|
@@ -561,6 +639,10 @@ class Assets {
|
|
|
561
639
|
}
|
|
562
640
|
/**
|
|
563
641
|
* Get details about a specific Asset Folder <br><br> Required scope | `assets:read`
|
|
642
|
+
*
|
|
643
|
+
* @param {string} assetFolderId - Unique identifier for an Asset Folder
|
|
644
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
645
|
+
*
|
|
564
646
|
* @throws {@link Webflow.BadRequestError}
|
|
565
647
|
* @throws {@link Webflow.UnauthorizedError}
|
|
566
648
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -568,25 +650,26 @@ class Assets {
|
|
|
568
650
|
* @throws {@link Webflow.InternalServerError}
|
|
569
651
|
*
|
|
570
652
|
* @example
|
|
571
|
-
* await
|
|
653
|
+
* await client.assets.getFolder("asset_folder_id")
|
|
572
654
|
*/
|
|
573
655
|
getFolder(assetFolderId, requestOptions) {
|
|
574
656
|
var _a;
|
|
575
657
|
return __awaiter(this, void 0, void 0, function* () {
|
|
576
658
|
const _response = yield core.fetcher({
|
|
577
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `asset_folders/${assetFolderId}`),
|
|
659
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `asset_folders/${encodeURIComponent(assetFolderId)}`),
|
|
578
660
|
method: "GET",
|
|
579
661
|
headers: {
|
|
580
662
|
Authorization: yield this._getAuthorizationHeader(),
|
|
581
663
|
"X-Fern-Language": "JavaScript",
|
|
582
664
|
"X-Fern-SDK-Name": "webflow-api",
|
|
583
|
-
"X-Fern-SDK-Version": "2.3.
|
|
665
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
584
666
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
585
667
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
586
668
|
},
|
|
587
669
|
contentType: "application/json",
|
|
588
670
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
589
671
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
672
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
590
673
|
});
|
|
591
674
|
if (_response.ok) {
|
|
592
675
|
return yield serializers.AssetFolder.parseOrThrow(_response.body, {
|
|
@@ -606,7 +689,13 @@ class Assets {
|
|
|
606
689
|
case 404:
|
|
607
690
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
608
691
|
case 429:
|
|
609
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
692
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
693
|
+
unrecognizedObjectKeys: "passthrough",
|
|
694
|
+
allowUnrecognizedUnionMembers: true,
|
|
695
|
+
allowUnrecognizedEnumValues: true,
|
|
696
|
+
skipValidation: true,
|
|
697
|
+
breadcrumbsPrefix: ["response"],
|
|
698
|
+
}));
|
|
610
699
|
case 500:
|
|
611
700
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
612
701
|
default:
|