webflow-api 2.3.1 → 2.3.5
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 +1 -1
- 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 +12 -6
- 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 +72 -31
- 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 +45 -18
- 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 +22 -9
- 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 +108 -20
- package/api/resources/collections/resources/items/client/Client.js +312 -58
- 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/ItemsDeleteItemLiveRequest.js +5 -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/ItemsGetItemLiveRequest.js +5 -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 +38 -0
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.js +5 -0
- 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 -5
- 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 +11 -6
- package/api/resources/forms/client/Client.d.ts +32 -6
- package/api/resources/forms/client/Client.js +45 -18
- package/api/resources/forms/client/requests/index.d.ts +2 -2
- package/api/resources/inventory/client/Client.d.ts +19 -6
- package/api/resources/inventory/client/Client.js +23 -12
- 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 +60 -26
- 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 +37 -12
- package/api/resources/pages/client/Client.js +57 -25
- 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 +31 -19
- package/api/resources/products/client/Client.d.ts +47 -89
- package/api/resources/products/client/Client.js +63 -103
- 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 +32 -15
- 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 +25 -8
- package/api/resources/sites/client/Client.js +34 -17
- 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 +12 -6
- 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 +41 -23
- 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 +51 -20
- 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 +27 -6
- package/api/resources/webhooks/client/Client.js +37 -16
- package/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +1 -1
- package/api/resources/webhooks/client/requests/index.d.ts +1 -1
- package/api/types/AccessGroupList.d.ts +1 -1
- package/api/types/Asset.d.ts +1 -1
- 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/types/BadRequestErrorBody.js +5 -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 +1 -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 +1 -1
- 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/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 +1 -1
- package/api/types/WebhookList.d.ts +1 -1
- package/api/types/index.d.ts +6 -0
- package/api/types/index.js +6 -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 +1 -1
- 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 +12 -6
- 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 +72 -31
- 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 +45 -18
- 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 +22 -9
- 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 +108 -20
- package/dist/api/resources/collections/resources/items/client/Client.js +312 -58
- 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 +38 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.js +5 -0
- 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 -5
- 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 +11 -6
- package/dist/api/resources/forms/client/Client.d.ts +32 -6
- package/dist/api/resources/forms/client/Client.js +45 -18
- package/dist/api/resources/forms/client/requests/index.d.ts +2 -2
- package/dist/api/resources/inventory/client/Client.d.ts +19 -6
- package/dist/api/resources/inventory/client/Client.js +23 -12
- 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 +60 -26
- 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 +37 -12
- package/dist/api/resources/pages/client/Client.js +57 -25
- 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 +31 -19
- package/dist/api/resources/products/client/Client.d.ts +47 -89
- package/dist/api/resources/products/client/Client.js +63 -103
- 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 +32 -15
- 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 +25 -8
- package/dist/api/resources/sites/client/Client.js +34 -17
- 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 +12 -6
- 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 +41 -23
- 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 +51 -20
- 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 +27 -6
- package/dist/api/resources/webhooks/client/Client.js +37 -16
- package/dist/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +1 -1
- package/dist/api/resources/webhooks/client/requests/index.d.ts +1 -1
- package/dist/api/types/AccessGroupList.d.ts +1 -1
- package/dist/api/types/Asset.d.ts +1 -1
- 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 +1 -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 +1 -1
- 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/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 +1 -1
- package/dist/api/types/WebhookList.d.ts +1 -1
- package/dist/api/types/index.d.ts +6 -0
- package/dist/api/types/index.js +6 -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/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/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +4 -3
- package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js +2 -10
- 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 +4 -3
- package/dist/serialization/types/Asset.js +2 -12
- 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 +6 -4
- package/dist/serialization/types/Form.js +4 -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/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 +4 -3
- package/dist/serialization/types/Webhook.js +2 -10
- package/dist/serialization/types/WebhookList.d.ts +6 -4
- package/dist/serialization/types/WebhookList.js +4 -13
- package/dist/serialization/types/index.d.ts +6 -0
- package/dist/serialization/types/index.js +6 -0
- 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/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/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +4 -3
- package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js +2 -10
- 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 +4 -3
- package/serialization/types/Asset.js +2 -12
- 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 +6 -4
- package/serialization/types/Form.js +4 -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/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 +4 -3
- package/serialization/types/Webhook.js +2 -10
- package/serialization/types/WebhookList.d.ts +6 -4
- package/serialization/types/WebhookList.js +4 -13
- package/serialization/types/index.d.ts +6 -0
- package/serialization/types/index.js +6 -0
- package/tests/client.test.ts +0 -11
|
@@ -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.5",
|
|
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, {
|
|
@@ -123,6 +128,11 @@ class Assets {
|
|
|
123
128
|
}
|
|
124
129
|
/**
|
|
125
130
|
* 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`
|
|
131
|
+
*
|
|
132
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
133
|
+
* @param {Webflow.AssetsCreateRequest} request
|
|
134
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
135
|
+
*
|
|
126
136
|
* @throws {@link Webflow.BadRequestError}
|
|
127
137
|
* @throws {@link Webflow.UnauthorizedError}
|
|
128
138
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -130,23 +140,22 @@ class Assets {
|
|
|
130
140
|
* @throws {@link Webflow.InternalServerError}
|
|
131
141
|
*
|
|
132
142
|
* @example
|
|
133
|
-
* await
|
|
143
|
+
* await client.assets.create("site_id", {
|
|
134
144
|
* fileName: "file.png",
|
|
135
|
-
* fileHash: "3c7d87c9575702bc3b1e991f4d3c638e"
|
|
136
|
-
* parentFolder: "6436b1ce5281cace05b65aea"
|
|
145
|
+
* fileHash: "3c7d87c9575702bc3b1e991f4d3c638e"
|
|
137
146
|
* })
|
|
138
147
|
*/
|
|
139
148
|
create(siteId, request, requestOptions) {
|
|
140
149
|
var _a;
|
|
141
150
|
return __awaiter(this, void 0, void 0, function* () {
|
|
142
151
|
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`),
|
|
152
|
+
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
153
|
method: "POST",
|
|
145
154
|
headers: {
|
|
146
155
|
Authorization: yield this._getAuthorizationHeader(),
|
|
147
156
|
"X-Fern-Language": "JavaScript",
|
|
148
157
|
"X-Fern-SDK-Name": "webflow-api",
|
|
149
|
-
"X-Fern-SDK-Version": "2.3.
|
|
158
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
150
159
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
151
160
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
152
161
|
},
|
|
@@ -154,6 +163,7 @@ class Assets {
|
|
|
154
163
|
body: yield serializers.AssetsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
155
164
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
156
165
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
166
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
157
167
|
});
|
|
158
168
|
if (_response.ok) {
|
|
159
169
|
return yield serializers.AssetUpload.parseOrThrow(_response.body, {
|
|
@@ -200,6 +210,10 @@ class Assets {
|
|
|
200
210
|
}
|
|
201
211
|
/**
|
|
202
212
|
* Get an Asset </br></br> Required scope | `assets:read`
|
|
213
|
+
*
|
|
214
|
+
* @param {string} assetId - Unique identifier for an Asset on a site
|
|
215
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
216
|
+
*
|
|
203
217
|
* @throws {@link Webflow.BadRequestError}
|
|
204
218
|
* @throws {@link Webflow.UnauthorizedError}
|
|
205
219
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -207,25 +221,26 @@ class Assets {
|
|
|
207
221
|
* @throws {@link Webflow.InternalServerError}
|
|
208
222
|
*
|
|
209
223
|
* @example
|
|
210
|
-
* await
|
|
224
|
+
* await client.assets.get("asset_id")
|
|
211
225
|
*/
|
|
212
226
|
get(assetId, requestOptions) {
|
|
213
227
|
var _a;
|
|
214
228
|
return __awaiter(this, void 0, void 0, function* () {
|
|
215
229
|
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}`),
|
|
230
|
+
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
231
|
method: "GET",
|
|
218
232
|
headers: {
|
|
219
233
|
Authorization: yield this._getAuthorizationHeader(),
|
|
220
234
|
"X-Fern-Language": "JavaScript",
|
|
221
235
|
"X-Fern-SDK-Name": "webflow-api",
|
|
222
|
-
"X-Fern-SDK-Version": "2.3.
|
|
236
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
223
237
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
224
238
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
225
239
|
},
|
|
226
240
|
contentType: "application/json",
|
|
227
241
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
228
242
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
243
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
229
244
|
});
|
|
230
245
|
if (_response.ok) {
|
|
231
246
|
return yield serializers.Asset.parseOrThrow(_response.body, {
|
|
@@ -272,6 +287,10 @@ class Assets {
|
|
|
272
287
|
}
|
|
273
288
|
/**
|
|
274
289
|
* Delete an Asset
|
|
290
|
+
*
|
|
291
|
+
* @param {string} assetId - Unique identifier for an Asset on a site
|
|
292
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
293
|
+
*
|
|
275
294
|
* @throws {@link Webflow.BadRequestError}
|
|
276
295
|
* @throws {@link Webflow.UnauthorizedError}
|
|
277
296
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -279,25 +298,26 @@ class Assets {
|
|
|
279
298
|
* @throws {@link Webflow.InternalServerError}
|
|
280
299
|
*
|
|
281
300
|
* @example
|
|
282
|
-
* await
|
|
301
|
+
* await client.assets.delete("asset_id")
|
|
283
302
|
*/
|
|
284
303
|
delete(assetId, requestOptions) {
|
|
285
304
|
var _a;
|
|
286
305
|
return __awaiter(this, void 0, void 0, function* () {
|
|
287
306
|
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}`),
|
|
307
|
+
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
308
|
method: "DELETE",
|
|
290
309
|
headers: {
|
|
291
310
|
Authorization: yield this._getAuthorizationHeader(),
|
|
292
311
|
"X-Fern-Language": "JavaScript",
|
|
293
312
|
"X-Fern-SDK-Name": "webflow-api",
|
|
294
|
-
"X-Fern-SDK-Version": "2.3.
|
|
313
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
295
314
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
296
315
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
297
316
|
},
|
|
298
317
|
contentType: "application/json",
|
|
299
318
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
300
319
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
320
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
301
321
|
});
|
|
302
322
|
if (_response.ok) {
|
|
303
323
|
return;
|
|
@@ -338,6 +358,11 @@ class Assets {
|
|
|
338
358
|
}
|
|
339
359
|
/**
|
|
340
360
|
* Update an Asset </br></br> Required scope | `assets:write`
|
|
361
|
+
*
|
|
362
|
+
* @param {string} assetId - Unique identifier for an Asset on a site
|
|
363
|
+
* @param {Webflow.AssetsUpdateRequest} request
|
|
364
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
365
|
+
*
|
|
341
366
|
* @throws {@link Webflow.BadRequestError}
|
|
342
367
|
* @throws {@link Webflow.UnauthorizedError}
|
|
343
368
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -345,7 +370,7 @@ class Assets {
|
|
|
345
370
|
* @throws {@link Webflow.InternalServerError}
|
|
346
371
|
*
|
|
347
372
|
* @example
|
|
348
|
-
* await
|
|
373
|
+
* await client.assets.update("asset_id", {
|
|
349
374
|
* displayName: "bulldoze.png"
|
|
350
375
|
* })
|
|
351
376
|
*/
|
|
@@ -353,13 +378,13 @@ class Assets {
|
|
|
353
378
|
var _a;
|
|
354
379
|
return __awaiter(this, void 0, void 0, function* () {
|
|
355
380
|
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}`),
|
|
381
|
+
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
382
|
method: "PATCH",
|
|
358
383
|
headers: {
|
|
359
384
|
Authorization: yield this._getAuthorizationHeader(),
|
|
360
385
|
"X-Fern-Language": "JavaScript",
|
|
361
386
|
"X-Fern-SDK-Name": "webflow-api",
|
|
362
|
-
"X-Fern-SDK-Version": "2.3.
|
|
387
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
363
388
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
364
389
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
365
390
|
},
|
|
@@ -367,6 +392,7 @@ class Assets {
|
|
|
367
392
|
body: yield serializers.AssetsUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
368
393
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
369
394
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
395
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
370
396
|
});
|
|
371
397
|
if (_response.ok) {
|
|
372
398
|
return yield serializers.Asset.parseOrThrow(_response.body, {
|
|
@@ -413,6 +439,10 @@ class Assets {
|
|
|
413
439
|
}
|
|
414
440
|
/**
|
|
415
441
|
* List Asset Folders within a given site <br><br> Required scope | `assets:read`
|
|
442
|
+
*
|
|
443
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
444
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
445
|
+
*
|
|
416
446
|
* @throws {@link Webflow.BadRequestError}
|
|
417
447
|
* @throws {@link Webflow.UnauthorizedError}
|
|
418
448
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -420,25 +450,26 @@ class Assets {
|
|
|
420
450
|
* @throws {@link Webflow.InternalServerError}
|
|
421
451
|
*
|
|
422
452
|
* @example
|
|
423
|
-
* await
|
|
453
|
+
* await client.assets.listFolders("site_id")
|
|
424
454
|
*/
|
|
425
455
|
listFolders(siteId, requestOptions) {
|
|
426
456
|
var _a;
|
|
427
457
|
return __awaiter(this, void 0, void 0, function* () {
|
|
428
458
|
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`),
|
|
459
|
+
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
460
|
method: "GET",
|
|
431
461
|
headers: {
|
|
432
462
|
Authorization: yield this._getAuthorizationHeader(),
|
|
433
463
|
"X-Fern-Language": "JavaScript",
|
|
434
464
|
"X-Fern-SDK-Name": "webflow-api",
|
|
435
|
-
"X-Fern-SDK-Version": "2.3.
|
|
465
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
436
466
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
437
467
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
438
468
|
},
|
|
439
469
|
contentType: "application/json",
|
|
440
470
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
441
471
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
472
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
442
473
|
});
|
|
443
474
|
if (_response.ok) {
|
|
444
475
|
return yield serializers.AssetFolderList.parseOrThrow(_response.body, {
|
|
@@ -485,6 +516,11 @@ class Assets {
|
|
|
485
516
|
}
|
|
486
517
|
/**
|
|
487
518
|
* Create an Asset Folder within a given site <br><br> Required scope | `assets:write`
|
|
519
|
+
*
|
|
520
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
521
|
+
* @param {Webflow.AssetsCreateFolderRequest} request
|
|
522
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
523
|
+
*
|
|
488
524
|
* @throws {@link Webflow.BadRequestError}
|
|
489
525
|
* @throws {@link Webflow.UnauthorizedError}
|
|
490
526
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -492,22 +528,21 @@ class Assets {
|
|
|
492
528
|
* @throws {@link Webflow.InternalServerError}
|
|
493
529
|
*
|
|
494
530
|
* @example
|
|
495
|
-
* await
|
|
496
|
-
* displayName: "my asset folder"
|
|
497
|
-
* parentFolder: "6390c49774a71f99f21a08eb"
|
|
531
|
+
* await client.assets.createFolder("site_id", {
|
|
532
|
+
* displayName: "my asset folder"
|
|
498
533
|
* })
|
|
499
534
|
*/
|
|
500
535
|
createFolder(siteId, request, requestOptions) {
|
|
501
536
|
var _a;
|
|
502
537
|
return __awaiter(this, void 0, void 0, function* () {
|
|
503
538
|
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`),
|
|
539
|
+
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
540
|
method: "POST",
|
|
506
541
|
headers: {
|
|
507
542
|
Authorization: yield this._getAuthorizationHeader(),
|
|
508
543
|
"X-Fern-Language": "JavaScript",
|
|
509
544
|
"X-Fern-SDK-Name": "webflow-api",
|
|
510
|
-
"X-Fern-SDK-Version": "2.3.
|
|
545
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
511
546
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
512
547
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
513
548
|
},
|
|
@@ -515,6 +550,7 @@ class Assets {
|
|
|
515
550
|
body: yield serializers.AssetsCreateFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
516
551
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
517
552
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
553
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
518
554
|
});
|
|
519
555
|
if (_response.ok) {
|
|
520
556
|
return yield serializers.AssetFolder.parseOrThrow(_response.body, {
|
|
@@ -561,6 +597,10 @@ class Assets {
|
|
|
561
597
|
}
|
|
562
598
|
/**
|
|
563
599
|
* Get details about a specific Asset Folder <br><br> Required scope | `assets:read`
|
|
600
|
+
*
|
|
601
|
+
* @param {string} assetFolderId - Unique identifier for an Asset Folder
|
|
602
|
+
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
603
|
+
*
|
|
564
604
|
* @throws {@link Webflow.BadRequestError}
|
|
565
605
|
* @throws {@link Webflow.UnauthorizedError}
|
|
566
606
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -568,25 +608,26 @@ class Assets {
|
|
|
568
608
|
* @throws {@link Webflow.InternalServerError}
|
|
569
609
|
*
|
|
570
610
|
* @example
|
|
571
|
-
* await
|
|
611
|
+
* await client.assets.getFolder("asset_folder_id")
|
|
572
612
|
*/
|
|
573
613
|
getFolder(assetFolderId, requestOptions) {
|
|
574
614
|
var _a;
|
|
575
615
|
return __awaiter(this, void 0, void 0, function* () {
|
|
576
616
|
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}`),
|
|
617
|
+
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
618
|
method: "GET",
|
|
579
619
|
headers: {
|
|
580
620
|
Authorization: yield this._getAuthorizationHeader(),
|
|
581
621
|
"X-Fern-Language": "JavaScript",
|
|
582
622
|
"X-Fern-SDK-Name": "webflow-api",
|
|
583
|
-
"X-Fern-SDK-Version": "2.3.
|
|
623
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
584
624
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
585
625
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
586
626
|
},
|
|
587
627
|
contentType: "application/json",
|
|
588
628
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
589
629
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
630
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
590
631
|
});
|
|
591
632
|
if (_response.ok) {
|
|
592
633
|
return yield serializers.AssetFolder.parseOrThrow(_response.body, {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { AssetsCreateRequest } from "./AssetsCreateRequest";
|
|
2
|
-
export { AssetsUpdateRequest } from "./AssetsUpdateRequest";
|
|
3
|
-
export { AssetsCreateFolderRequest } from "./AssetsCreateFolderRequest";
|
|
1
|
+
export { type AssetsCreateRequest } from "./AssetsCreateRequest";
|
|
2
|
+
export { type AssetsUpdateRequest } from "./AssetsUpdateRequest";
|
|
3
|
+
export { type AssetsCreateFolderRequest } from "./AssetsCreateFolderRequest";
|
|
@@ -3,7 +3,7 @@
|
|
|
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
|
import { Fields } from "../resources/fields/client/Client";
|
|
8
8
|
import { Items } from "../resources/items/client/Client";
|
|
9
9
|
export declare namespace Collections {
|
|
@@ -12,8 +12,12 @@ export declare namespace Collections {
|
|
|
12
12
|
accessToken: core.Supplier<core.BearerToken>;
|
|
13
13
|
}
|
|
14
14
|
interface RequestOptions {
|
|
15
|
+
/** The maximum time to wait for a response in seconds. */
|
|
15
16
|
timeoutInSeconds?: number;
|
|
17
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
16
18
|
maxRetries?: number;
|
|
19
|
+
/** A hook to abort the request. */
|
|
20
|
+
abortSignal?: AbortSignal;
|
|
17
21
|
}
|
|
18
22
|
}
|
|
19
23
|
export declare class Collections {
|
|
@@ -21,6 +25,10 @@ export declare class Collections {
|
|
|
21
25
|
constructor(_options: Collections.Options);
|
|
22
26
|
/**
|
|
23
27
|
* List of all Collections within a Site. </br></br> Required scope | `cms:read`
|
|
28
|
+
*
|
|
29
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
30
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
31
|
+
*
|
|
24
32
|
* @throws {@link Webflow.BadRequestError}
|
|
25
33
|
* @throws {@link Webflow.UnauthorizedError}
|
|
26
34
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -28,11 +36,16 @@ export declare class Collections {
|
|
|
28
36
|
* @throws {@link Webflow.InternalServerError}
|
|
29
37
|
*
|
|
30
38
|
* @example
|
|
31
|
-
* await
|
|
39
|
+
* await client.collections.list("site_id")
|
|
32
40
|
*/
|
|
33
41
|
list(siteId: string, requestOptions?: Collections.RequestOptions): Promise<Webflow.CollectionList>;
|
|
34
42
|
/**
|
|
35
43
|
* Create a Collection for a site. </br></br> Required scope | `cms:write`
|
|
44
|
+
*
|
|
45
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
46
|
+
* @param {Webflow.CollectionsCreateRequest} request
|
|
47
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
48
|
+
*
|
|
36
49
|
* @throws {@link Webflow.BadRequestError}
|
|
37
50
|
* @throws {@link Webflow.UnauthorizedError}
|
|
38
51
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -40,7 +53,7 @@ export declare class Collections {
|
|
|
40
53
|
* @throws {@link Webflow.InternalServerError}
|
|
41
54
|
*
|
|
42
55
|
* @example
|
|
43
|
-
* await
|
|
56
|
+
* await client.collections.create("site_id", {
|
|
44
57
|
* displayName: "Blog Posts",
|
|
45
58
|
* singularName: "Blog Post",
|
|
46
59
|
* slug: "posts"
|
|
@@ -49,6 +62,10 @@ export declare class Collections {
|
|
|
49
62
|
create(siteId: string, request: Webflow.CollectionsCreateRequest, requestOptions?: Collections.RequestOptions): Promise<Webflow.Collection>;
|
|
50
63
|
/**
|
|
51
64
|
* Get the full details of a collection from its ID. </br></br> Required scope | `cms:read`
|
|
65
|
+
*
|
|
66
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
67
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
68
|
+
*
|
|
52
69
|
* @throws {@link Webflow.BadRequestError}
|
|
53
70
|
* @throws {@link Webflow.UnauthorizedError}
|
|
54
71
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -56,11 +73,15 @@ export declare class Collections {
|
|
|
56
73
|
* @throws {@link Webflow.InternalServerError}
|
|
57
74
|
*
|
|
58
75
|
* @example
|
|
59
|
-
* await
|
|
76
|
+
* await client.collections.get("collection_id")
|
|
60
77
|
*/
|
|
61
78
|
get(collectionId: string, requestOptions?: Collections.RequestOptions): Promise<Webflow.Collection>;
|
|
62
79
|
/**
|
|
63
80
|
* Delete a collection using its ID. </br></br> Required scope | `cms:write`
|
|
81
|
+
*
|
|
82
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
83
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
|
+
*
|
|
64
85
|
* @throws {@link Webflow.BadRequestError}
|
|
65
86
|
* @throws {@link Webflow.UnauthorizedError}
|
|
66
87
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -68,11 +89,16 @@ export declare class Collections {
|
|
|
68
89
|
* @throws {@link Webflow.InternalServerError}
|
|
69
90
|
*
|
|
70
91
|
* @example
|
|
71
|
-
* await
|
|
92
|
+
* await client.collections.deleteCollection("collection_id")
|
|
72
93
|
*/
|
|
73
94
|
deleteCollection(collectionId: string, requestOptions?: Collections.RequestOptions): Promise<void>;
|
|
74
95
|
/**
|
|
75
96
|
* Delete a custom field in a collection. This endpoint does not currently support bulk deletion. </br></br> Required scope | `cms:write`
|
|
97
|
+
*
|
|
98
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
99
|
+
* @param {string} fieldId - Unique identifier for a Field in a collection
|
|
100
|
+
* @param {Collections.RequestOptions} requestOptions - Request-specific configuration.
|
|
101
|
+
*
|
|
76
102
|
* @throws {@link Webflow.BadRequestError}
|
|
77
103
|
* @throws {@link Webflow.UnauthorizedError}
|
|
78
104
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -80,7 +106,7 @@ export declare class Collections {
|
|
|
80
106
|
* @throws {@link Webflow.InternalServerError}
|
|
81
107
|
*
|
|
82
108
|
* @example
|
|
83
|
-
* await
|
|
109
|
+
* await client.collections.delete("collection_id", "field_id")
|
|
84
110
|
*/
|
|
85
111
|
delete(collectionId: string, fieldId: string, requestOptions?: Collections.RequestOptions): Promise<void>;
|
|
86
112
|
protected _fields: Fields | undefined;
|