webflow-api 2.3.2 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +4 -0
- package/api/errors/BadRequestError.d.ts +1 -1
- package/api/errors/BadRequestError.js +1 -1
- package/api/errors/ConflictError.d.ts +1 -1
- package/api/errors/ConflictError.js +1 -1
- package/api/errors/ForbiddenError.d.ts +1 -1
- package/api/errors/ForbiddenError.js +1 -1
- package/api/errors/InternalServerError.d.ts +1 -1
- package/api/errors/InternalServerError.js +1 -1
- package/api/errors/NotFoundError.d.ts +1 -1
- package/api/errors/NotFoundError.js +1 -1
- package/api/errors/TooManyRequestsError.d.ts +3 -2
- package/api/errors/TooManyRequestsError.js +1 -1
- package/api/errors/UnauthorizedError.d.ts +1 -1
- package/api/errors/UnauthorizedError.js +1 -1
- package/api/errors/index.d.ts +2 -2
- package/api/errors/index.js +2 -2
- package/api/resources/accessGroups/client/Client.d.ts +11 -2
- package/api/resources/accessGroups/client/Client.js +19 -7
- package/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +1 -1
- package/api/resources/accessGroups/client/requests/index.d.ts +1 -1
- package/api/resources/assets/client/Client.d.ts +50 -13
- package/api/resources/assets/client/Client.js +128 -39
- package/api/resources/assets/client/requests/AssetsCreateFolderRequest.d.ts +1 -2
- package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -2
- package/api/resources/assets/client/requests/index.d.ts +3 -3
- package/api/resources/collections/client/Client.d.ts +32 -6
- package/api/resources/collections/client/Client.js +80 -23
- package/api/resources/collections/client/requests/index.d.ts +1 -1
- package/api/resources/collections/resources/fields/client/Client.d.ts +18 -3
- package/api/resources/collections/resources/fields/client/Client.js +36 -11
- package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
- package/api/resources/collections/resources/fields/client/requests/index.d.ts +2 -2
- package/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +2 -2
- package/api/resources/collections/resources/fields/types/FieldCreateType.js +1 -1
- package/api/resources/collections/resources/items/client/Client.d.ts +98 -22
- package/api/resources/collections/resources/items/client/Client.js +318 -81
- package/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +2 -8
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.d.ts +13 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +2 -2
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.d.ts +13 -0
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +1 -1
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +19 -2
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +19 -2
- package/api/resources/collections/resources/items/client/requests/index.d.ts +8 -6
- package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +9 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +11 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +8 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +10 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +9 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +11 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +8 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +10 -0
- package/api/resources/collections/resources/items/types/index.d.ts +4 -0
- package/api/resources/collections/resources/items/types/index.js +4 -0
- package/api/resources/ecommerce/client/Client.d.ts +10 -2
- package/api/resources/ecommerce/client/Client.js +18 -7
- package/api/resources/forms/client/Client.d.ts +34 -7
- package/api/resources/forms/client/Client.js +91 -24
- package/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
- package/{dist/api/resources/webhooks/client/requests/index.js → api/resources/forms/client/requests/FormsListSubmissionsRequest.js} +3 -0
- package/api/resources/forms/client/requests/index.d.ts +3 -2
- package/api/resources/index.d.ts +0 -1
- package/api/resources/index.js +0 -1
- package/api/resources/inventory/client/Client.d.ts +19 -6
- package/api/resources/inventory/client/Client.js +37 -14
- package/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +2 -4
- package/api/resources/inventory/client/requests/index.d.ts +1 -1
- package/api/resources/orders/client/Client.d.ts +44 -12
- package/api/resources/orders/client/Client.js +102 -32
- package/api/resources/orders/client/requests/OrdersListRequest.d.ts +2 -1
- package/api/resources/orders/client/requests/OrdersRefundRequest.d.ts +1 -1
- package/api/resources/orders/client/requests/OrdersUpdateRequest.d.ts +1 -6
- package/api/resources/orders/client/requests/index.d.ts +4 -4
- package/api/resources/orders/types/OrdersListRequestStatus.d.ts +12 -0
- package/api/resources/orders/types/OrdersListRequestStatus.js +14 -0
- package/api/resources/orders/types/index.d.ts +1 -0
- package/api/resources/orders/types/index.js +1 -0
- package/api/resources/pages/client/Client.d.ts +42 -13
- package/api/resources/pages/client/Client.js +97 -31
- package/api/resources/pages/client/requests/DomWrite.d.ts +1 -4
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +8 -0
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +1 -2
- package/api/resources/pages/client/requests/index.d.ts +5 -5
- package/api/resources/pages/resources/scripts/client/Client.d.ts +24 -11
- package/api/resources/pages/resources/scripts/client/Client.js +52 -22
- package/api/resources/products/client/Client.d.ts +47 -89
- package/api/resources/products/client/Client.js +105 -109
- package/api/resources/products/client/requests/ProductSkuCreate.d.ts +2 -27
- package/api/resources/products/client/requests/ProductSkuUpdate.d.ts +2 -27
- package/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +2 -17
- package/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +2 -17
- package/api/resources/products/client/requests/index.d.ts +5 -5
- package/api/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
- package/api/resources/scripts/client/Client.d.ts +25 -7
- package/api/resources/scripts/client/Client.js +53 -18
- package/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +1 -1
- package/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +1 -1
- package/api/resources/scripts/client/requests/index.d.ts +2 -2
- package/api/resources/sites/client/Client.d.ts +26 -11
- package/api/resources/sites/client/Client.js +63 -28
- package/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -4
- package/api/resources/sites/client/requests/index.d.ts +1 -1
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +11 -2
- package/api/resources/sites/resources/activityLogs/client/Client.js +19 -7
- package/api/resources/sites/resources/activityLogs/client/requests/index.d.ts +1 -1
- package/api/resources/sites/resources/scripts/client/Client.d.ts +31 -13
- package/api/resources/sites/resources/scripts/client/Client.js +69 -27
- package/api/resources/sites/resources/scripts/client/requests/index.d.ts +1 -1
- package/api/resources/token/client/Client.d.ts +14 -4
- package/api/resources/token/client/Client.js +16 -8
- package/api/resources/users/client/Client.d.ts +38 -8
- package/api/resources/users/client/Client.js +86 -25
- package/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -1
- package/api/resources/users/client/requests/UsersListRequest.d.ts +1 -1
- package/api/resources/users/client/requests/UsersUpdateRequest.d.ts +2 -2
- package/api/resources/users/client/requests/index.d.ts +3 -3
- package/api/resources/webhooks/client/Client.d.ts +34 -8
- package/api/resources/webhooks/client/Client.js +72 -22
- package/api/resources/webhooks/client/index.d.ts +1 -1
- package/api/resources/webhooks/client/index.js +0 -15
- package/api/types/AccessGroupList.d.ts +1 -1
- package/api/types/Asset.d.ts +11 -9
- package/api/types/AssetFolderList.d.ts +1 -1
- package/api/types/AssetUpload.d.ts +1 -1
- package/api/types/Assets.d.ts +1 -1
- package/api/types/Authorization.d.ts +1 -1
- package/api/types/AuthorizationAuthorization.d.ts +1 -1
- package/api/types/BadRequestErrorBody.d.ts +5 -0
- package/api/{resources/webhooks/client/requests/index.js → types/BadRequestErrorBody.js} +3 -0
- package/api/types/Collection.d.ts +2 -1
- package/api/types/CollectionItem.d.ts +1 -1
- package/api/types/CollectionItemList.d.ts +1 -1
- package/api/types/CollectionList.d.ts +1 -1
- package/api/types/ConflictErrorBody.d.ts +5 -0
- package/api/types/ConflictErrorBody.js +5 -0
- package/api/types/CustomCodeBlock.d.ts +1 -1
- package/api/types/CustomCodeHostedResponse.d.ts +1 -1
- package/api/types/CustomCodeInlineResponse.d.ts +1 -1
- package/api/types/Dom.d.ts +1 -1
- package/api/types/Domains.d.ts +1 -1
- package/api/types/DuplicateUserEmail.d.ts +2 -11
- package/api/types/Error_.d.ts +1 -1
- package/api/types/Field.d.ts +1 -1
- package/api/types/FieldType.d.ts +2 -2
- package/api/types/FieldType.js +1 -1
- package/api/types/ForbiddenErrorBody.d.ts +10 -0
- package/api/types/ForbiddenErrorBody.js +5 -0
- package/api/types/Form.d.ts +3 -1
- package/api/types/FormField.d.ts +1 -1
- package/api/types/FormFieldValue.d.ts +1 -1
- package/api/types/FormList.d.ts +1 -1
- package/api/types/FormSubmissionList.d.ts +2 -2
- package/api/types/InventoryItem.d.ts +1 -1
- package/api/types/ListCustomCodeBlocks.d.ts +1 -1
- package/api/types/Locales.d.ts +1 -1
- package/api/types/MissingScopes.d.ts +2 -11
- package/api/types/Node.d.ts +1 -1
- package/api/types/NotEnterprisePlanSite.d.ts +2 -11
- package/api/types/OauthScope.d.ts +9 -1
- package/api/types/OauthScope.js +2 -0
- package/api/types/Order.d.ts +1 -1
- package/api/types/OrderAddress.d.ts +1 -1
- package/api/types/OrderList.d.ts +1 -1
- package/api/types/OrderPurchasedItem.d.ts +1 -1
- package/api/types/OrderPurchasedItemVariantImage.d.ts +1 -1
- package/api/types/OrderPurchasedItemVariantImageFile.d.ts +1 -1
- package/api/types/OrderTotals.d.ts +1 -1
- package/api/types/OrderTotalsExtrasItem.d.ts +1 -1
- package/api/types/Page.d.ts +1 -1
- package/api/types/PageDetails.d.ts +41 -0
- package/api/types/PageDetails.js +5 -0
- package/api/types/PageDetailsOpenGraph.d.ts +16 -0
- package/api/types/PageDetailsOpenGraph.js +5 -0
- package/api/types/PageDetailsSeo.d.ts +12 -0
- package/api/types/PageDetailsSeo.js +5 -0
- package/api/types/PageList.d.ts +1 -1
- package/api/types/Product.d.ts +1 -1
- package/api/types/ProductAndSkUs.d.ts +1 -1
- package/api/types/ProductAndSkUsList.d.ts +1 -1
- package/api/types/ProductFieldData.d.ts +1 -1
- package/api/types/RegisteredScriptList.d.ts +1 -1
- package/api/types/ScriptApply.d.ts +1 -1
- package/api/types/ScriptApplyList.d.ts +1 -1
- package/api/types/Scripts.d.ts +1 -1
- package/api/types/Site.d.ts +1 -1
- package/api/types/SiteActivityLogItem.d.ts +1 -1
- package/api/types/SiteActivityLogResponse.d.ts +1 -1
- package/api/types/Sites.d.ts +1 -1
- package/api/types/Sku.d.ts +1 -1
- package/api/types/SkuFieldData.d.ts +1 -1
- package/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -1
- package/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +2 -1
- package/api/types/SkuPropertyList.d.ts +1 -1
- package/api/types/StripeCard.d.ts +1 -1
- package/api/types/TooManyRequestsErrorBody.d.ts +9 -0
- package/api/types/TooManyRequestsErrorBody.js +5 -0
- package/api/types/User.d.ts +1 -1
- package/api/types/UserAccessGroupsItem.d.ts +1 -1
- package/api/types/UserData.d.ts +1 -1
- package/api/types/UserLimitReached.d.ts +2 -11
- package/api/types/UserList.d.ts +1 -1
- package/api/types/UsersNotEnabled.d.ts +2 -11
- package/api/types/Webhook.d.ts +6 -6
- package/api/types/WebhookFilter.d.ts +10 -0
- package/api/types/WebhookFilter.js +5 -0
- package/api/types/WebhookList.d.ts +1 -1
- package/api/types/index.d.ts +8 -0
- package/api/types/index.js +8 -0
- package/core/fetcher/Fetcher.d.ts +2 -1
- package/core/fetcher/Fetcher.js +126 -19
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +11 -1
- package/core/schemas/builders/object/object.js +11 -15
- package/dist/Client.d.ts +4 -0
- package/dist/api/errors/BadRequestError.d.ts +1 -1
- package/dist/api/errors/BadRequestError.js +1 -1
- package/dist/api/errors/ConflictError.d.ts +1 -1
- package/dist/api/errors/ConflictError.js +1 -1
- package/dist/api/errors/ForbiddenError.d.ts +1 -1
- package/dist/api/errors/ForbiddenError.js +1 -1
- package/dist/api/errors/InternalServerError.d.ts +1 -1
- package/dist/api/errors/InternalServerError.js +1 -1
- package/dist/api/errors/NotFoundError.d.ts +1 -1
- package/dist/api/errors/NotFoundError.js +1 -1
- package/dist/api/errors/TooManyRequestsError.d.ts +3 -2
- package/dist/api/errors/TooManyRequestsError.js +1 -1
- package/dist/api/errors/UnauthorizedError.d.ts +1 -1
- package/dist/api/errors/UnauthorizedError.js +1 -1
- package/dist/api/errors/index.d.ts +2 -2
- package/dist/api/errors/index.js +2 -2
- package/dist/api/resources/accessGroups/client/Client.d.ts +11 -2
- package/dist/api/resources/accessGroups/client/Client.js +19 -7
- package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +1 -1
- package/dist/api/resources/accessGroups/client/requests/index.d.ts +1 -1
- package/dist/api/resources/assets/client/Client.d.ts +50 -13
- package/dist/api/resources/assets/client/Client.js +128 -39
- package/dist/api/resources/assets/client/requests/AssetsCreateFolderRequest.d.ts +1 -2
- package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -2
- package/dist/api/resources/assets/client/requests/index.d.ts +3 -3
- package/dist/api/resources/collections/client/Client.d.ts +32 -6
- package/dist/api/resources/collections/client/Client.js +80 -23
- package/dist/api/resources/collections/client/requests/index.d.ts +1 -1
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +18 -3
- package/dist/api/resources/collections/resources/fields/client/Client.js +36 -11
- package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
- package/dist/api/resources/collections/resources/fields/client/requests/index.d.ts +2 -2
- package/dist/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +2 -2
- package/dist/api/resources/collections/resources/fields/types/FieldCreateType.js +1 -1
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +98 -22
- package/dist/api/resources/collections/resources/items/client/Client.js +318 -81
- package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +2 -8
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.d.ts +13 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +2 -2
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.d.ts +13 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +19 -2
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +19 -2
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +8 -6
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +11 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +10 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +11 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +10 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +4 -0
- package/dist/api/resources/collections/resources/items/types/index.js +4 -0
- package/dist/api/resources/ecommerce/client/Client.d.ts +10 -2
- package/dist/api/resources/ecommerce/client/Client.js +18 -7
- package/dist/api/resources/forms/client/Client.d.ts +34 -7
- package/dist/api/resources/forms/client/Client.js +91 -24
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.js +5 -0
- package/dist/api/resources/forms/client/requests/index.d.ts +3 -2
- package/dist/api/resources/index.d.ts +0 -1
- package/dist/api/resources/index.js +0 -1
- package/dist/api/resources/inventory/client/Client.d.ts +19 -6
- package/dist/api/resources/inventory/client/Client.js +37 -14
- package/dist/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +2 -4
- package/dist/api/resources/inventory/client/requests/index.d.ts +1 -1
- package/dist/api/resources/orders/client/Client.d.ts +44 -12
- package/dist/api/resources/orders/client/Client.js +102 -32
- package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +2 -1
- package/dist/api/resources/orders/client/requests/OrdersRefundRequest.d.ts +1 -1
- package/dist/api/resources/orders/client/requests/OrdersUpdateRequest.d.ts +1 -6
- package/dist/api/resources/orders/client/requests/index.d.ts +4 -4
- package/dist/api/resources/orders/types/OrdersListRequestStatus.d.ts +12 -0
- package/dist/api/resources/orders/types/OrdersListRequestStatus.js +14 -0
- package/dist/api/resources/orders/types/index.d.ts +1 -0
- package/dist/api/resources/orders/types/index.js +1 -0
- package/dist/api/resources/pages/client/Client.d.ts +42 -13
- package/dist/api/resources/pages/client/Client.js +97 -31
- package/dist/api/resources/pages/client/requests/DomWrite.d.ts +1 -4
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +8 -0
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +1 -2
- package/dist/api/resources/pages/client/requests/index.d.ts +5 -5
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +24 -11
- package/dist/api/resources/pages/resources/scripts/client/Client.js +52 -22
- package/dist/api/resources/products/client/Client.d.ts +47 -89
- package/dist/api/resources/products/client/Client.js +105 -109
- package/dist/api/resources/products/client/requests/ProductSkuCreate.d.ts +2 -27
- package/dist/api/resources/products/client/requests/ProductSkuUpdate.d.ts +2 -27
- package/dist/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +2 -17
- package/dist/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +2 -17
- package/dist/api/resources/products/client/requests/index.d.ts +5 -5
- package/dist/api/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
- package/dist/api/resources/scripts/client/Client.d.ts +25 -7
- package/dist/api/resources/scripts/client/Client.js +53 -18
- package/dist/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +1 -1
- package/dist/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +1 -1
- package/dist/api/resources/scripts/client/requests/index.d.ts +2 -2
- package/dist/api/resources/sites/client/Client.d.ts +26 -11
- package/dist/api/resources/sites/client/Client.js +63 -28
- package/dist/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -4
- package/dist/api/resources/sites/client/requests/index.d.ts +1 -1
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +11 -2
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +19 -7
- package/dist/api/resources/sites/resources/activityLogs/client/requests/index.d.ts +1 -1
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +31 -13
- package/dist/api/resources/sites/resources/scripts/client/Client.js +69 -27
- package/dist/api/resources/sites/resources/scripts/client/requests/index.d.ts +1 -1
- package/dist/api/resources/token/client/Client.d.ts +14 -4
- package/dist/api/resources/token/client/Client.js +16 -8
- package/dist/api/resources/users/client/Client.d.ts +38 -8
- package/dist/api/resources/users/client/Client.js +86 -25
- package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -1
- package/dist/api/resources/users/client/requests/UsersListRequest.d.ts +1 -1
- package/dist/api/resources/users/client/requests/UsersUpdateRequest.d.ts +2 -2
- package/dist/api/resources/users/client/requests/index.d.ts +3 -3
- package/dist/api/resources/webhooks/client/Client.d.ts +34 -8
- package/dist/api/resources/webhooks/client/Client.js +72 -22
- package/dist/api/resources/webhooks/client/index.d.ts +1 -1
- package/dist/api/resources/webhooks/client/index.js +0 -15
- package/dist/api/types/AccessGroupList.d.ts +1 -1
- package/dist/api/types/Asset.d.ts +11 -9
- package/dist/api/types/AssetFolderList.d.ts +1 -1
- package/dist/api/types/AssetUpload.d.ts +1 -1
- package/dist/api/types/Assets.d.ts +1 -1
- package/dist/api/types/Authorization.d.ts +1 -1
- package/dist/api/types/AuthorizationAuthorization.d.ts +1 -1
- package/dist/api/types/BadRequestErrorBody.d.ts +5 -0
- package/dist/api/types/BadRequestErrorBody.js +5 -0
- package/dist/api/types/Collection.d.ts +2 -1
- package/dist/api/types/CollectionItem.d.ts +1 -1
- package/dist/api/types/CollectionItemList.d.ts +1 -1
- package/dist/api/types/CollectionList.d.ts +1 -1
- package/dist/api/types/ConflictErrorBody.d.ts +5 -0
- package/dist/api/types/ConflictErrorBody.js +5 -0
- package/dist/api/types/CustomCodeBlock.d.ts +1 -1
- package/dist/api/types/CustomCodeHostedResponse.d.ts +1 -1
- package/dist/api/types/CustomCodeInlineResponse.d.ts +1 -1
- package/dist/api/types/Dom.d.ts +1 -1
- package/dist/api/types/Domains.d.ts +1 -1
- package/dist/api/types/DuplicateUserEmail.d.ts +2 -11
- package/dist/api/types/Error_.d.ts +1 -1
- package/dist/api/types/Field.d.ts +1 -1
- package/dist/api/types/FieldType.d.ts +2 -2
- package/dist/api/types/FieldType.js +1 -1
- package/dist/api/types/ForbiddenErrorBody.d.ts +10 -0
- package/dist/api/types/ForbiddenErrorBody.js +5 -0
- package/dist/api/types/Form.d.ts +3 -1
- package/dist/api/types/FormField.d.ts +1 -1
- package/dist/api/types/FormFieldValue.d.ts +1 -1
- package/dist/api/types/FormList.d.ts +1 -1
- package/dist/api/types/FormSubmissionList.d.ts +2 -2
- package/dist/api/types/InventoryItem.d.ts +1 -1
- package/dist/api/types/ListCustomCodeBlocks.d.ts +1 -1
- package/dist/api/types/Locales.d.ts +1 -1
- package/dist/api/types/MissingScopes.d.ts +2 -11
- package/dist/api/types/Node.d.ts +1 -1
- package/dist/api/types/NotEnterprisePlanSite.d.ts +2 -11
- package/dist/api/types/OauthScope.d.ts +9 -1
- package/dist/api/types/OauthScope.js +2 -0
- package/dist/api/types/Order.d.ts +1 -1
- package/dist/api/types/OrderAddress.d.ts +1 -1
- package/dist/api/types/OrderList.d.ts +1 -1
- package/dist/api/types/OrderPurchasedItem.d.ts +1 -1
- package/dist/api/types/OrderPurchasedItemVariantImage.d.ts +1 -1
- package/dist/api/types/OrderPurchasedItemVariantImageFile.d.ts +1 -1
- package/dist/api/types/OrderTotals.d.ts +1 -1
- package/dist/api/types/OrderTotalsExtrasItem.d.ts +1 -1
- package/dist/api/types/Page.d.ts +1 -1
- package/dist/api/types/PageDetails.d.ts +41 -0
- package/dist/api/types/PageDetails.js +5 -0
- package/dist/api/types/PageDetailsOpenGraph.d.ts +16 -0
- package/dist/api/types/PageDetailsOpenGraph.js +5 -0
- package/dist/api/types/PageDetailsSeo.d.ts +12 -0
- package/dist/api/types/PageDetailsSeo.js +5 -0
- package/dist/api/types/PageList.d.ts +1 -1
- package/dist/api/types/Product.d.ts +1 -1
- package/dist/api/types/ProductAndSkUs.d.ts +1 -1
- package/dist/api/types/ProductAndSkUsList.d.ts +1 -1
- package/dist/api/types/ProductFieldData.d.ts +1 -1
- package/dist/api/types/RegisteredScriptList.d.ts +1 -1
- package/dist/api/types/ScriptApply.d.ts +1 -1
- package/dist/api/types/ScriptApplyList.d.ts +1 -1
- package/dist/api/types/Scripts.d.ts +1 -1
- package/dist/api/types/Site.d.ts +1 -1
- package/dist/api/types/SiteActivityLogItem.d.ts +1 -1
- package/dist/api/types/SiteActivityLogResponse.d.ts +1 -1
- package/dist/api/types/Sites.d.ts +1 -1
- package/dist/api/types/Sku.d.ts +1 -1
- package/dist/api/types/SkuFieldData.d.ts +1 -1
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -1
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +2 -1
- package/dist/api/types/SkuPropertyList.d.ts +1 -1
- package/dist/api/types/StripeCard.d.ts +1 -1
- package/dist/api/types/TooManyRequestsErrorBody.d.ts +9 -0
- package/dist/api/types/TooManyRequestsErrorBody.js +5 -0
- package/dist/api/types/User.d.ts +1 -1
- package/dist/api/types/UserAccessGroupsItem.d.ts +1 -1
- package/dist/api/types/UserData.d.ts +1 -1
- package/dist/api/types/UserLimitReached.d.ts +2 -11
- package/dist/api/types/UserList.d.ts +1 -1
- package/dist/api/types/UsersNotEnabled.d.ts +2 -11
- package/dist/api/types/Webhook.d.ts +6 -6
- package/dist/api/types/WebhookFilter.d.ts +10 -0
- package/dist/api/types/WebhookFilter.js +5 -0
- package/dist/api/types/WebhookList.d.ts +1 -1
- package/dist/api/types/index.d.ts +8 -0
- package/dist/api/types/index.js +8 -0
- package/dist/core/fetcher/Fetcher.d.ts +2 -1
- package/dist/core/fetcher/Fetcher.js +126 -19
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +11 -1
- package/dist/core/schemas/builders/object/object.js +11 -15
- package/dist/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +2 -2
- package/dist/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.d.ts +2 -2
- package/dist/serialization/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -2
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +2 -2
- package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +4 -3
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js +2 -10
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +3 -3
- package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.js +1 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +4 -3
- package/dist/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.js +2 -12
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +10 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +31 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +10 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +31 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +10 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +31 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +10 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +31 -0
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +4 -0
- package/dist/serialization/resources/collections/resources/items/types/index.js +4 -0
- package/dist/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.d.ts +2 -2
- package/dist/serialization/resources/index.d.ts +0 -2
- package/dist/serialization/resources/index.js +1 -3
- package/dist/serialization/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +4 -3
- package/dist/serialization/resources/inventory/client/requests/InventoryUpdateRequest.js +2 -10
- package/dist/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.d.ts +2 -2
- package/dist/serialization/resources/orders/client/requests/OrdersRefundRequest.d.ts +4 -3
- package/dist/serialization/resources/orders/client/requests/OrdersRefundRequest.js +2 -10
- package/dist/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.d.ts +2 -2
- package/dist/serialization/resources/orders/client/requests/OrdersUpdateRequest.d.ts +2 -2
- package/dist/serialization/resources/orders/types/OrdersListRequestStatus.d.ts +10 -0
- package/dist/serialization/resources/orders/types/OrdersListRequestStatus.js +31 -0
- package/dist/serialization/resources/orders/types/OrdersRefundRequestReason.d.ts +2 -2
- package/dist/serialization/resources/orders/types/index.d.ts +1 -0
- package/dist/serialization/resources/orders/types/index.js +1 -0
- package/dist/serialization/resources/pages/client/requests/DomWrite.d.ts +4 -3
- package/dist/serialization/resources/pages/client/requests/DomWrite.js +2 -10
- package/dist/serialization/resources/pages/types/DomWriteNodesItem.d.ts +2 -2
- package/dist/serialization/resources/pages/types/UpdateStaticContentResponse.d.ts +2 -2
- package/dist/serialization/resources/products/client/requests/ProductSkuCreate.d.ts +8 -5
- package/dist/serialization/resources/products/client/requests/ProductSkuCreate.js +6 -12
- package/dist/serialization/resources/products/client/requests/ProductSkuUpdate.d.ts +8 -5
- package/dist/serialization/resources/products/client/requests/ProductSkuUpdate.js +6 -12
- package/dist/serialization/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +6 -4
- package/dist/serialization/resources/products/client/requests/ProductsCreateSkuRequest.js +4 -11
- package/dist/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +6 -4
- package/dist/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.js +4 -11
- package/dist/serialization/resources/products/types/ProductsCreateSkuResponse.d.ts +4 -3
- package/dist/serialization/resources/products/types/ProductsCreateSkuResponse.js +2 -10
- package/dist/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +2 -2
- package/dist/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +2 -2
- package/dist/serialization/resources/sites/client/requests/SitesPublishRequest.d.ts +2 -2
- package/dist/serialization/resources/users/client/requests/UsersInviteRequest.d.ts +2 -2
- package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +4 -3
- package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.js +2 -10
- package/dist/serialization/resources/users/types/UsersListRequestSort.d.ts +2 -2
- package/dist/serialization/resources/users/types/UsersUpdateRequestData.d.ts +2 -2
- package/dist/serialization/types/AccessGroup.d.ts +2 -2
- package/dist/serialization/types/AccessGroupList.d.ts +4 -3
- package/dist/serialization/types/AccessGroupList.js +2 -12
- package/dist/serialization/types/Application.d.ts +2 -2
- package/dist/serialization/types/Asset.d.ts +9 -7
- package/dist/serialization/types/Asset.js +7 -16
- package/dist/serialization/types/AssetFolder.d.ts +2 -2
- package/dist/serialization/types/AssetFolderList.d.ts +6 -4
- package/dist/serialization/types/AssetFolderList.js +4 -13
- package/dist/serialization/types/AssetUpload.d.ts +4 -3
- package/dist/serialization/types/AssetUpload.js +2 -12
- package/dist/serialization/types/AssetUploadUploadDetails.d.ts +2 -2
- package/dist/serialization/types/AssetVariant.d.ts +2 -2
- package/dist/serialization/types/Assets.d.ts +4 -3
- package/dist/serialization/types/Assets.js +2 -12
- package/dist/serialization/types/Authorization.d.ts +6 -4
- package/dist/serialization/types/Authorization.js +4 -13
- package/dist/serialization/types/AuthorizationAuthorization.d.ts +4 -3
- package/dist/serialization/types/AuthorizationAuthorization.js +2 -12
- package/dist/serialization/types/AuthorizationAuthorizationAuthorizedTo.d.ts +2 -2
- package/dist/serialization/types/AuthorizedUser.d.ts +2 -2
- package/dist/serialization/types/BadRequestErrorBody.d.ts +12 -0
- package/dist/serialization/types/BadRequestErrorBody.js +33 -0
- package/dist/serialization/types/Collection.d.ts +4 -3
- package/dist/serialization/types/Collection.js +2 -1
- package/dist/serialization/types/CollectionItem.d.ts +4 -3
- package/dist/serialization/types/CollectionItem.js +2 -10
- package/dist/serialization/types/CollectionItemFieldData.d.ts +2 -2
- package/dist/serialization/types/CollectionItemList.d.ts +6 -4
- package/dist/serialization/types/CollectionItemList.js +4 -13
- package/dist/serialization/types/CollectionItemListPagination.d.ts +2 -2
- package/dist/serialization/types/CollectionList.d.ts +4 -3
- package/dist/serialization/types/CollectionList.js +2 -12
- package/dist/serialization/types/CollectionListArrayItem.d.ts +2 -2
- package/dist/serialization/types/ConflictErrorBody.d.ts +12 -0
- package/dist/serialization/types/ConflictErrorBody.js +33 -0
- package/dist/serialization/types/CustomCodeBlock.d.ts +6 -4
- package/dist/serialization/types/CustomCodeBlock.js +4 -11
- package/dist/serialization/types/CustomCodeBlockType.d.ts +2 -2
- package/dist/serialization/types/CustomCodeHostedResponse.d.ts +2 -2
- package/dist/serialization/types/CustomCodeInlineResponse.d.ts +2 -2
- package/dist/serialization/types/Dom.d.ts +6 -4
- package/dist/serialization/types/Dom.js +4 -11
- package/dist/serialization/types/Domain.d.ts +2 -2
- package/dist/serialization/types/Domains.d.ts +4 -3
- package/dist/serialization/types/Domains.js +2 -12
- package/dist/serialization/types/DuplicateUserEmail.d.ts +4 -8
- package/dist/serialization/types/DuplicateUserEmail.js +2 -41
- package/dist/serialization/types/EcommerceSettings.d.ts +2 -2
- package/dist/serialization/types/ErrorDetailsItem.d.ts +2 -2
- package/dist/serialization/types/Error_.d.ts +4 -3
- package/dist/serialization/types/Error_.js +2 -12
- package/dist/serialization/types/Field.d.ts +4 -3
- package/dist/serialization/types/Field.js +2 -10
- package/dist/serialization/types/FieldType.d.ts +3 -3
- package/dist/serialization/types/FieldType.js +1 -1
- package/dist/serialization/types/ForbiddenErrorBody.d.ts +16 -0
- package/dist/serialization/types/ForbiddenErrorBody.js +37 -0
- package/dist/serialization/types/Form.d.ts +7 -4
- package/dist/serialization/types/Form.js +5 -11
- package/dist/serialization/types/FormField.d.ts +4 -3
- package/dist/serialization/types/FormField.js +2 -10
- package/dist/serialization/types/FormFieldValue.d.ts +4 -3
- package/dist/serialization/types/FormFieldValue.js +2 -10
- package/dist/serialization/types/FormFieldValueType.d.ts +2 -2
- package/dist/serialization/types/FormList.d.ts +6 -4
- package/dist/serialization/types/FormList.js +4 -11
- package/dist/serialization/types/FormResponseSettings.d.ts +2 -2
- package/dist/serialization/types/FormSubmission.d.ts +2 -2
- package/dist/serialization/types/FormSubmissionList.d.ts +6 -4
- package/dist/serialization/types/FormSubmissionList.js +4 -13
- package/dist/serialization/types/ImageNode.d.ts +2 -2
- package/dist/serialization/types/InvalidDomain.d.ts +2 -2
- package/dist/serialization/types/InventoryItem.d.ts +4 -3
- package/dist/serialization/types/InventoryItem.js +2 -10
- package/dist/serialization/types/InventoryItemInventoryType.d.ts +2 -2
- package/dist/serialization/types/ListCustomCodeBlocks.d.ts +6 -4
- package/dist/serialization/types/ListCustomCodeBlocks.js +4 -13
- package/dist/serialization/types/Locale.d.ts +2 -2
- package/dist/serialization/types/Locales.d.ts +5 -4
- package/dist/serialization/types/Locales.js +3 -13
- package/dist/serialization/types/MissingScopes.d.ts +4 -9
- package/dist/serialization/types/MissingScopes.js +2 -42
- package/dist/serialization/types/NoDomains.d.ts +2 -2
- package/dist/serialization/types/Node.d.ts +8 -5
- package/dist/serialization/types/Node.js +6 -12
- package/dist/serialization/types/NodeType.d.ts +2 -2
- package/dist/serialization/types/NotEnterprisePlanSite.d.ts +4 -9
- package/dist/serialization/types/NotEnterprisePlanSite.js +2 -42
- package/dist/serialization/types/OauthScope.d.ts +3 -3
- package/dist/serialization/types/OauthScope.js +2 -0
- package/dist/serialization/types/Order.d.ts +30 -18
- package/dist/serialization/types/Order.js +28 -31
- package/dist/serialization/types/OrderAddress.d.ts +6 -4
- package/dist/serialization/types/OrderAddress.js +4 -11
- package/dist/serialization/types/OrderAddressJapanType.d.ts +2 -2
- package/dist/serialization/types/OrderAddressType.d.ts +2 -2
- package/dist/serialization/types/OrderCustomerInfo.d.ts +2 -2
- package/dist/serialization/types/OrderDisputeLastStatus.d.ts +2 -2
- package/dist/serialization/types/OrderDownloadFilesItem.d.ts +2 -2
- package/dist/serialization/types/OrderList.d.ts +6 -4
- package/dist/serialization/types/OrderList.js +4 -13
- package/dist/serialization/types/OrderMetadata.d.ts +2 -2
- package/dist/serialization/types/OrderPrice.d.ts +2 -2
- package/dist/serialization/types/OrderPurchasedItem.d.ts +7 -5
- package/dist/serialization/types/OrderPurchasedItem.js +5 -14
- package/dist/serialization/types/OrderPurchasedItemVariantImage.d.ts +4 -3
- package/dist/serialization/types/OrderPurchasedItemVariantImage.js +2 -10
- package/dist/serialization/types/OrderPurchasedItemVariantImageFile.d.ts +4 -3
- package/dist/serialization/types/OrderPurchasedItemVariantImageFile.js +2 -12
- package/dist/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.d.ts +2 -2
- package/dist/serialization/types/OrderStatus.d.ts +2 -2
- package/dist/serialization/types/OrderTotals.d.ts +7 -5
- package/dist/serialization/types/OrderTotals.js +5 -14
- package/dist/serialization/types/OrderTotalsExtrasItem.d.ts +6 -4
- package/dist/serialization/types/OrderTotalsExtrasItem.js +4 -11
- package/dist/serialization/types/OrderTotalsExtrasItemType.d.ts +2 -2
- package/dist/serialization/types/Page.d.ts +6 -4
- package/dist/serialization/types/Page.js +4 -11
- package/dist/serialization/types/PageDetails.d.ts +29 -0
- package/dist/serialization/types/PageDetails.js +50 -0
- package/dist/serialization/types/PageDetailsOpenGraph.d.ts +15 -0
- package/dist/serialization/types/PageDetailsOpenGraph.js +36 -0
- package/dist/serialization/types/PageDetailsSeo.d.ts +13 -0
- package/dist/serialization/types/PageDetailsSeo.js +34 -0
- package/dist/serialization/types/PageList.d.ts +6 -4
- package/dist/serialization/types/PageList.js +4 -11
- package/dist/serialization/types/PageOpenGraph.d.ts +2 -2
- package/dist/serialization/types/PageSeo.d.ts +2 -2
- package/dist/serialization/types/Pagination.d.ts +2 -2
- package/dist/serialization/types/PaypalDetails.d.ts +2 -2
- package/dist/serialization/types/Product.d.ts +4 -3
- package/dist/serialization/types/Product.js +2 -10
- package/dist/serialization/types/ProductAndSkUs.d.ts +6 -4
- package/dist/serialization/types/ProductAndSkUs.js +4 -11
- package/dist/serialization/types/ProductAndSkUsList.d.ts +6 -4
- package/dist/serialization/types/ProductAndSkUsList.js +4 -13
- package/dist/serialization/types/ProductFieldData.d.ts +8 -5
- package/dist/serialization/types/ProductFieldData.js +6 -14
- package/dist/serialization/types/ProductFieldDataEcProductType.d.ts +2 -2
- package/dist/serialization/types/ProductFieldDataTaxCategory.d.ts +2 -2
- package/dist/serialization/types/PublishStatus.d.ts +2 -2
- package/dist/serialization/types/RegisteredScriptList.d.ts +4 -3
- package/dist/serialization/types/RegisteredScriptList.js +2 -12
- package/dist/serialization/types/ScriptApply.d.ts +4 -3
- package/dist/serialization/types/ScriptApply.js +2 -10
- package/dist/serialization/types/ScriptApplyList.d.ts +4 -3
- package/dist/serialization/types/ScriptApplyList.js +2 -12
- package/dist/serialization/types/ScriptApplyLocation.d.ts +2 -2
- package/dist/serialization/types/Scripts.d.ts +4 -3
- package/dist/serialization/types/Scripts.js +2 -10
- package/dist/serialization/types/Site.d.ts +6 -4
- package/dist/serialization/types/Site.js +4 -13
- package/dist/serialization/types/SiteActivityLogItem.d.ts +6 -4
- package/dist/serialization/types/SiteActivityLogItem.js +4 -13
- package/dist/serialization/types/SiteActivityLogItemResourceOperation.d.ts +2 -2
- package/dist/serialization/types/SiteActivityLogItemUser.d.ts +2 -2
- package/dist/serialization/types/SiteActivityLogResponse.d.ts +6 -4
- package/dist/serialization/types/SiteActivityLogResponse.js +4 -13
- package/dist/serialization/types/Sites.d.ts +4 -3
- package/dist/serialization/types/Sites.js +2 -10
- package/dist/serialization/types/Sku.d.ts +4 -3
- package/dist/serialization/types/Sku.js +2 -10
- package/dist/serialization/types/SkuFieldData.d.ts +12 -7
- package/dist/serialization/types/SkuFieldData.js +10 -14
- package/dist/serialization/types/SkuFieldDataCompareAtPrice.d.ts +2 -2
- package/dist/serialization/types/SkuFieldDataEcSkuBillingMethod.d.ts +2 -2
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +6 -4
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +4 -15
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +2 -2
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +4 -3
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js +2 -12
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +2 -2
- package/dist/serialization/types/SkuFieldDataPrice.d.ts +2 -2
- package/dist/serialization/types/SkuPropertyList.d.ts +4 -3
- package/dist/serialization/types/SkuPropertyList.js +2 -10
- package/dist/serialization/types/SkuPropertyListEnumItem.d.ts +2 -2
- package/dist/serialization/types/SkuValueList.d.ts +2 -2
- package/dist/serialization/types/StripeCard.d.ts +6 -4
- package/dist/serialization/types/StripeCard.js +4 -11
- package/dist/serialization/types/StripeCardBrand.d.ts +2 -2
- package/dist/serialization/types/StripeCardExpires.d.ts +2 -2
- package/dist/serialization/types/StripeDetails.d.ts +2 -2
- package/dist/serialization/types/TextNode.d.ts +2 -2
- package/dist/serialization/types/TooManyRequestsErrorBody.d.ts +15 -0
- package/dist/serialization/types/TooManyRequestsErrorBody.js +36 -0
- package/dist/serialization/types/TriggerType.d.ts +2 -2
- package/dist/serialization/types/User.d.ts +8 -5
- package/dist/serialization/types/User.js +6 -14
- package/dist/serialization/types/UserAccessGroupsItem.d.ts +4 -3
- package/dist/serialization/types/UserAccessGroupsItem.js +2 -10
- package/dist/serialization/types/UserAccessGroupsItemType.d.ts +2 -2
- package/dist/serialization/types/UserData.d.ts +4 -3
- package/dist/serialization/types/UserData.js +2 -10
- package/dist/serialization/types/UserDataData.d.ts +2 -2
- package/dist/serialization/types/UserLimitReached.d.ts +4 -8
- package/dist/serialization/types/UserLimitReached.js +2 -41
- package/dist/serialization/types/UserList.d.ts +4 -3
- package/dist/serialization/types/UserList.js +2 -10
- package/dist/serialization/types/UserStatus.d.ts +2 -2
- package/dist/serialization/types/UsersNotEnabled.d.ts +4 -8
- package/dist/serialization/types/UsersNotEnabled.js +2 -41
- package/dist/serialization/types/Webhook.d.ts +7 -5
- package/dist/serialization/types/Webhook.js +5 -12
- package/dist/serialization/types/WebhookFilter.d.ts +12 -0
- package/dist/serialization/types/WebhookFilter.js +33 -0
- package/dist/serialization/types/WebhookList.d.ts +6 -4
- package/dist/serialization/types/WebhookList.js +4 -13
- package/dist/serialization/types/index.d.ts +8 -0
- package/dist/serialization/types/index.js +8 -0
- package/dist/wrapper/ItemsClient.js +7 -1
- package/jest.config.js +2 -2
- package/package.json +13 -6
- package/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +2 -2
- package/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.d.ts +2 -2
- package/serialization/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -2
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +2 -2
- package/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -2
- package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +4 -3
- package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js +2 -10
- package/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +2 -2
- package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +3 -3
- package/serialization/resources/collections/resources/fields/types/FieldCreateType.js +1 -1
- package/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +4 -3
- package/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.js +2 -12
- package/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +2 -2
- package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +2 -2
- package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +10 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +31 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +10 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +31 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +10 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +31 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +10 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +31 -0
- package/serialization/resources/collections/resources/items/types/index.d.ts +4 -0
- package/serialization/resources/collections/resources/items/types/index.js +4 -0
- package/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.d.ts +2 -2
- package/serialization/resources/index.d.ts +0 -2
- package/serialization/resources/index.js +1 -3
- package/serialization/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +4 -3
- package/serialization/resources/inventory/client/requests/InventoryUpdateRequest.js +2 -10
- package/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.d.ts +2 -2
- package/serialization/resources/orders/client/requests/OrdersRefundRequest.d.ts +4 -3
- package/serialization/resources/orders/client/requests/OrdersRefundRequest.js +2 -10
- package/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.d.ts +2 -2
- package/serialization/resources/orders/client/requests/OrdersUpdateRequest.d.ts +2 -2
- package/serialization/resources/orders/types/OrdersListRequestStatus.d.ts +10 -0
- package/serialization/resources/orders/types/OrdersListRequestStatus.js +31 -0
- package/serialization/resources/orders/types/OrdersRefundRequestReason.d.ts +2 -2
- package/serialization/resources/orders/types/index.d.ts +1 -0
- package/serialization/resources/orders/types/index.js +1 -0
- package/serialization/resources/pages/client/requests/DomWrite.d.ts +4 -3
- package/serialization/resources/pages/client/requests/DomWrite.js +2 -10
- package/serialization/resources/pages/types/DomWriteNodesItem.d.ts +2 -2
- package/serialization/resources/pages/types/UpdateStaticContentResponse.d.ts +2 -2
- package/serialization/resources/products/client/requests/ProductSkuCreate.d.ts +8 -5
- package/serialization/resources/products/client/requests/ProductSkuCreate.js +6 -12
- package/serialization/resources/products/client/requests/ProductSkuUpdate.d.ts +8 -5
- package/serialization/resources/products/client/requests/ProductSkuUpdate.js +6 -12
- package/serialization/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +6 -4
- package/serialization/resources/products/client/requests/ProductsCreateSkuRequest.js +4 -11
- package/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +6 -4
- package/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.js +4 -11
- package/serialization/resources/products/types/ProductsCreateSkuResponse.d.ts +4 -3
- package/serialization/resources/products/types/ProductsCreateSkuResponse.js +2 -10
- package/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +2 -2
- package/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +2 -2
- package/serialization/resources/sites/client/requests/SitesPublishRequest.d.ts +2 -2
- package/serialization/resources/users/client/requests/UsersInviteRequest.d.ts +2 -2
- package/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +4 -3
- package/serialization/resources/users/client/requests/UsersUpdateRequest.js +2 -10
- package/serialization/resources/users/types/UsersListRequestSort.d.ts +2 -2
- package/serialization/resources/users/types/UsersUpdateRequestData.d.ts +2 -2
- package/serialization/types/AccessGroup.d.ts +2 -2
- package/serialization/types/AccessGroupList.d.ts +4 -3
- package/serialization/types/AccessGroupList.js +2 -12
- package/serialization/types/Application.d.ts +2 -2
- package/serialization/types/Asset.d.ts +9 -7
- package/serialization/types/Asset.js +7 -16
- package/serialization/types/AssetFolder.d.ts +2 -2
- package/serialization/types/AssetFolderList.d.ts +6 -4
- package/serialization/types/AssetFolderList.js +4 -13
- package/serialization/types/AssetUpload.d.ts +4 -3
- package/serialization/types/AssetUpload.js +2 -12
- package/serialization/types/AssetUploadUploadDetails.d.ts +2 -2
- package/serialization/types/AssetVariant.d.ts +2 -2
- package/serialization/types/Assets.d.ts +4 -3
- package/serialization/types/Assets.js +2 -12
- package/serialization/types/Authorization.d.ts +6 -4
- package/serialization/types/Authorization.js +4 -13
- package/serialization/types/AuthorizationAuthorization.d.ts +4 -3
- package/serialization/types/AuthorizationAuthorization.js +2 -12
- package/serialization/types/AuthorizationAuthorizationAuthorizedTo.d.ts +2 -2
- package/serialization/types/AuthorizedUser.d.ts +2 -2
- package/serialization/types/BadRequestErrorBody.d.ts +12 -0
- package/serialization/types/BadRequestErrorBody.js +33 -0
- package/serialization/types/Collection.d.ts +4 -3
- package/serialization/types/Collection.js +2 -1
- package/serialization/types/CollectionItem.d.ts +4 -3
- package/serialization/types/CollectionItem.js +2 -10
- package/serialization/types/CollectionItemFieldData.d.ts +2 -2
- package/serialization/types/CollectionItemList.d.ts +6 -4
- package/serialization/types/CollectionItemList.js +4 -13
- package/serialization/types/CollectionItemListPagination.d.ts +2 -2
- package/serialization/types/CollectionList.d.ts +4 -3
- package/serialization/types/CollectionList.js +2 -12
- package/serialization/types/CollectionListArrayItem.d.ts +2 -2
- package/serialization/types/ConflictErrorBody.d.ts +12 -0
- package/serialization/types/ConflictErrorBody.js +33 -0
- package/serialization/types/CustomCodeBlock.d.ts +6 -4
- package/serialization/types/CustomCodeBlock.js +4 -11
- package/serialization/types/CustomCodeBlockType.d.ts +2 -2
- package/serialization/types/CustomCodeHostedResponse.d.ts +2 -2
- package/serialization/types/CustomCodeInlineResponse.d.ts +2 -2
- package/serialization/types/Dom.d.ts +6 -4
- package/serialization/types/Dom.js +4 -11
- package/serialization/types/Domain.d.ts +2 -2
- package/serialization/types/Domains.d.ts +4 -3
- package/serialization/types/Domains.js +2 -12
- package/serialization/types/DuplicateUserEmail.d.ts +4 -8
- package/serialization/types/DuplicateUserEmail.js +2 -41
- package/serialization/types/EcommerceSettings.d.ts +2 -2
- package/serialization/types/ErrorDetailsItem.d.ts +2 -2
- package/serialization/types/Error_.d.ts +4 -3
- package/serialization/types/Error_.js +2 -12
- package/serialization/types/Field.d.ts +4 -3
- package/serialization/types/Field.js +2 -10
- package/serialization/types/FieldType.d.ts +3 -3
- package/serialization/types/FieldType.js +1 -1
- package/serialization/types/ForbiddenErrorBody.d.ts +16 -0
- package/serialization/types/ForbiddenErrorBody.js +37 -0
- package/serialization/types/Form.d.ts +7 -4
- package/serialization/types/Form.js +5 -11
- package/serialization/types/FormField.d.ts +4 -3
- package/serialization/types/FormField.js +2 -10
- package/serialization/types/FormFieldValue.d.ts +4 -3
- package/serialization/types/FormFieldValue.js +2 -10
- package/serialization/types/FormFieldValueType.d.ts +2 -2
- package/serialization/types/FormList.d.ts +6 -4
- package/serialization/types/FormList.js +4 -11
- package/serialization/types/FormResponseSettings.d.ts +2 -2
- package/serialization/types/FormSubmission.d.ts +2 -2
- package/serialization/types/FormSubmissionList.d.ts +6 -4
- package/serialization/types/FormSubmissionList.js +4 -13
- package/serialization/types/ImageNode.d.ts +2 -2
- package/serialization/types/InvalidDomain.d.ts +2 -2
- package/serialization/types/InventoryItem.d.ts +4 -3
- package/serialization/types/InventoryItem.js +2 -10
- package/serialization/types/InventoryItemInventoryType.d.ts +2 -2
- package/serialization/types/ListCustomCodeBlocks.d.ts +6 -4
- package/serialization/types/ListCustomCodeBlocks.js +4 -13
- package/serialization/types/Locale.d.ts +2 -2
- package/serialization/types/Locales.d.ts +5 -4
- package/serialization/types/Locales.js +3 -13
- package/serialization/types/MissingScopes.d.ts +4 -9
- package/serialization/types/MissingScopes.js +2 -42
- package/serialization/types/NoDomains.d.ts +2 -2
- package/serialization/types/Node.d.ts +8 -5
- package/serialization/types/Node.js +6 -12
- package/serialization/types/NodeType.d.ts +2 -2
- package/serialization/types/NotEnterprisePlanSite.d.ts +4 -9
- package/serialization/types/NotEnterprisePlanSite.js +2 -42
- package/serialization/types/OauthScope.d.ts +3 -3
- package/serialization/types/OauthScope.js +2 -0
- package/serialization/types/Order.d.ts +30 -18
- package/serialization/types/Order.js +28 -31
- package/serialization/types/OrderAddress.d.ts +6 -4
- package/serialization/types/OrderAddress.js +4 -11
- package/serialization/types/OrderAddressJapanType.d.ts +2 -2
- package/serialization/types/OrderAddressType.d.ts +2 -2
- package/serialization/types/OrderCustomerInfo.d.ts +2 -2
- package/serialization/types/OrderDisputeLastStatus.d.ts +2 -2
- package/serialization/types/OrderDownloadFilesItem.d.ts +2 -2
- package/serialization/types/OrderList.d.ts +6 -4
- package/serialization/types/OrderList.js +4 -13
- package/serialization/types/OrderMetadata.d.ts +2 -2
- package/serialization/types/OrderPrice.d.ts +2 -2
- package/serialization/types/OrderPurchasedItem.d.ts +7 -5
- package/serialization/types/OrderPurchasedItem.js +5 -14
- package/serialization/types/OrderPurchasedItemVariantImage.d.ts +4 -3
- package/serialization/types/OrderPurchasedItemVariantImage.js +2 -10
- package/serialization/types/OrderPurchasedItemVariantImageFile.d.ts +4 -3
- package/serialization/types/OrderPurchasedItemVariantImageFile.js +2 -12
- package/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.d.ts +2 -2
- package/serialization/types/OrderStatus.d.ts +2 -2
- package/serialization/types/OrderTotals.d.ts +7 -5
- package/serialization/types/OrderTotals.js +5 -14
- package/serialization/types/OrderTotalsExtrasItem.d.ts +6 -4
- package/serialization/types/OrderTotalsExtrasItem.js +4 -11
- package/serialization/types/OrderTotalsExtrasItemType.d.ts +2 -2
- package/serialization/types/Page.d.ts +6 -4
- package/serialization/types/Page.js +4 -11
- package/serialization/types/PageDetails.d.ts +29 -0
- package/serialization/types/PageDetails.js +50 -0
- package/serialization/types/PageDetailsOpenGraph.d.ts +15 -0
- package/serialization/types/PageDetailsOpenGraph.js +36 -0
- package/serialization/types/PageDetailsSeo.d.ts +13 -0
- package/serialization/types/PageDetailsSeo.js +34 -0
- package/serialization/types/PageList.d.ts +6 -4
- package/serialization/types/PageList.js +4 -11
- package/serialization/types/PageOpenGraph.d.ts +2 -2
- package/serialization/types/PageSeo.d.ts +2 -2
- package/serialization/types/Pagination.d.ts +2 -2
- package/serialization/types/PaypalDetails.d.ts +2 -2
- package/serialization/types/Product.d.ts +4 -3
- package/serialization/types/Product.js +2 -10
- package/serialization/types/ProductAndSkUs.d.ts +6 -4
- package/serialization/types/ProductAndSkUs.js +4 -11
- package/serialization/types/ProductAndSkUsList.d.ts +6 -4
- package/serialization/types/ProductAndSkUsList.js +4 -13
- package/serialization/types/ProductFieldData.d.ts +8 -5
- package/serialization/types/ProductFieldData.js +6 -14
- package/serialization/types/ProductFieldDataEcProductType.d.ts +2 -2
- package/serialization/types/ProductFieldDataTaxCategory.d.ts +2 -2
- package/serialization/types/PublishStatus.d.ts +2 -2
- package/serialization/types/RegisteredScriptList.d.ts +4 -3
- package/serialization/types/RegisteredScriptList.js +2 -12
- package/serialization/types/ScriptApply.d.ts +4 -3
- package/serialization/types/ScriptApply.js +2 -10
- package/serialization/types/ScriptApplyList.d.ts +4 -3
- package/serialization/types/ScriptApplyList.js +2 -12
- package/serialization/types/ScriptApplyLocation.d.ts +2 -2
- package/serialization/types/Scripts.d.ts +4 -3
- package/serialization/types/Scripts.js +2 -10
- package/serialization/types/Site.d.ts +6 -4
- package/serialization/types/Site.js +4 -13
- package/serialization/types/SiteActivityLogItem.d.ts +6 -4
- package/serialization/types/SiteActivityLogItem.js +4 -13
- package/serialization/types/SiteActivityLogItemResourceOperation.d.ts +2 -2
- package/serialization/types/SiteActivityLogItemUser.d.ts +2 -2
- package/serialization/types/SiteActivityLogResponse.d.ts +6 -4
- package/serialization/types/SiteActivityLogResponse.js +4 -13
- package/serialization/types/Sites.d.ts +4 -3
- package/serialization/types/Sites.js +2 -10
- package/serialization/types/Sku.d.ts +4 -3
- package/serialization/types/Sku.js +2 -10
- package/serialization/types/SkuFieldData.d.ts +12 -7
- package/serialization/types/SkuFieldData.js +10 -14
- package/serialization/types/SkuFieldDataCompareAtPrice.d.ts +2 -2
- package/serialization/types/SkuFieldDataEcSkuBillingMethod.d.ts +2 -2
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +6 -4
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +4 -15
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +2 -2
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +4 -3
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js +2 -12
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +2 -2
- package/serialization/types/SkuFieldDataPrice.d.ts +2 -2
- package/serialization/types/SkuPropertyList.d.ts +4 -3
- package/serialization/types/SkuPropertyList.js +2 -10
- package/serialization/types/SkuPropertyListEnumItem.d.ts +2 -2
- package/serialization/types/SkuValueList.d.ts +2 -2
- package/serialization/types/StripeCard.d.ts +6 -4
- package/serialization/types/StripeCard.js +4 -11
- package/serialization/types/StripeCardBrand.d.ts +2 -2
- package/serialization/types/StripeCardExpires.d.ts +2 -2
- package/serialization/types/StripeDetails.d.ts +2 -2
- package/serialization/types/TextNode.d.ts +2 -2
- package/serialization/types/TooManyRequestsErrorBody.d.ts +15 -0
- package/serialization/types/TooManyRequestsErrorBody.js +36 -0
- package/serialization/types/TriggerType.d.ts +2 -2
- package/serialization/types/User.d.ts +8 -5
- package/serialization/types/User.js +6 -14
- package/serialization/types/UserAccessGroupsItem.d.ts +4 -3
- package/serialization/types/UserAccessGroupsItem.js +2 -10
- package/serialization/types/UserAccessGroupsItemType.d.ts +2 -2
- package/serialization/types/UserData.d.ts +4 -3
- package/serialization/types/UserData.js +2 -10
- package/serialization/types/UserDataData.d.ts +2 -2
- package/serialization/types/UserLimitReached.d.ts +4 -8
- package/serialization/types/UserLimitReached.js +2 -41
- package/serialization/types/UserList.d.ts +4 -3
- package/serialization/types/UserList.js +2 -10
- package/serialization/types/UserStatus.d.ts +2 -2
- package/serialization/types/UsersNotEnabled.d.ts +4 -8
- package/serialization/types/UsersNotEnabled.js +2 -41
- package/serialization/types/Webhook.d.ts +7 -5
- package/serialization/types/Webhook.js +5 -12
- package/serialization/types/WebhookFilter.d.ts +12 -0
- package/serialization/types/WebhookFilter.js +33 -0
- package/serialization/types/WebhookList.d.ts +6 -4
- package/serialization/types/WebhookList.js +4 -13
- package/serialization/types/index.d.ts +8 -0
- package/serialization/types/index.js +8 -0
- package/wrapper/ItemsClient.js +7 -1
- package/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
- package/api/resources/webhooks/client/requests/index.d.ts +0 -1
- package/dist/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
- package/dist/api/resources/webhooks/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/index.js +0 -17
- package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -14
- package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js +0 -44
- package/dist/serialization/resources/webhooks/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/requests/index.js +0 -5
- package/dist/serialization/resources/webhooks/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/index.js +0 -17
- package/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/serialization/resources/webhooks/client/index.js +0 -17
- package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -14
- package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js +0 -44
- package/serialization/resources/webhooks/client/requests/index.d.ts +0 -1
- package/serialization/resources/webhooks/client/requests/index.js +0 -5
- package/serialization/resources/webhooks/index.d.ts +0 -1
- package/serialization/resources/webhooks/index.js +0 -17
- package/tests/client.test.ts +0 -11
- /package/api/resources/{webhooks/client/requests/WebhooksCreateRequest.js → collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.js} +0 -0
- /package/{dist/api/resources/webhooks/client/requests/WebhooksCreateRequest.js → api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.js} +0 -0
|
@@ -41,16 +41,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.Items = 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 Items {
|
|
49
49
|
constructor(_options) {
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* List of all Items within a Collection. </br></br> Required scope | `CMS:read`
|
|
54
|
+
*
|
|
55
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
56
|
+
* @param {Webflow.collections.ItemsListItemsRequest} request
|
|
57
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
58
|
+
*
|
|
54
59
|
* @throws {@link Webflow.BadRequestError}
|
|
55
60
|
* @throws {@link Webflow.UnauthorizedError}
|
|
56
61
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -58,20 +63,15 @@ class Items {
|
|
|
58
63
|
* @throws {@link Webflow.InternalServerError}
|
|
59
64
|
*
|
|
60
65
|
* @example
|
|
61
|
-
* await
|
|
66
|
+
* await client.collections.items.listItems("collection_id")
|
|
62
67
|
*/
|
|
63
68
|
listItems(collectionId, request = {}, requestOptions) {
|
|
64
69
|
var _a;
|
|
65
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
const {
|
|
71
|
+
const { cmsLocaleId, offset, limit, name, slug, sortBy, sortOrder } = request;
|
|
67
72
|
const _queryParams = {};
|
|
68
|
-
if (
|
|
69
|
-
|
|
70
|
-
_queryParams["cmsLocaleIds"] = cmsLocaleIds.map((item) => item);
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
_queryParams["cmsLocaleIds"] = cmsLocaleIds;
|
|
74
|
-
}
|
|
73
|
+
if (cmsLocaleId != null) {
|
|
74
|
+
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
75
75
|
}
|
|
76
76
|
if (offset != null) {
|
|
77
77
|
_queryParams["offset"] = offset.toString();
|
|
@@ -79,14 +79,26 @@ class Items {
|
|
|
79
79
|
if (limit != null) {
|
|
80
80
|
_queryParams["limit"] = limit.toString();
|
|
81
81
|
}
|
|
82
|
+
if (name != null) {
|
|
83
|
+
_queryParams["name"] = name;
|
|
84
|
+
}
|
|
85
|
+
if (slug != null) {
|
|
86
|
+
_queryParams["slug"] = slug;
|
|
87
|
+
}
|
|
88
|
+
if (sortBy != null) {
|
|
89
|
+
_queryParams["sortBy"] = sortBy;
|
|
90
|
+
}
|
|
91
|
+
if (sortOrder != null) {
|
|
92
|
+
_queryParams["sortOrder"] = sortOrder;
|
|
93
|
+
}
|
|
82
94
|
const _response = yield core.fetcher({
|
|
83
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items`),
|
|
95
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items`),
|
|
84
96
|
method: "GET",
|
|
85
97
|
headers: {
|
|
86
98
|
Authorization: yield this._getAuthorizationHeader(),
|
|
87
99
|
"X-Fern-Language": "JavaScript",
|
|
88
100
|
"X-Fern-SDK-Name": "webflow-api",
|
|
89
|
-
"X-Fern-SDK-Version": "2.3.
|
|
101
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
90
102
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
91
103
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
92
104
|
},
|
|
@@ -94,6 +106,7 @@ class Items {
|
|
|
94
106
|
queryParameters: _queryParams,
|
|
95
107
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
96
108
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
109
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
97
110
|
});
|
|
98
111
|
if (_response.ok) {
|
|
99
112
|
return yield serializers.CollectionItemList.parseOrThrow(_response.body, {
|
|
@@ -113,7 +126,13 @@ class Items {
|
|
|
113
126
|
case 404:
|
|
114
127
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
115
128
|
case 429:
|
|
116
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
129
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
130
|
+
unrecognizedObjectKeys: "passthrough",
|
|
131
|
+
allowUnrecognizedUnionMembers: true,
|
|
132
|
+
allowUnrecognizedEnumValues: true,
|
|
133
|
+
skipValidation: true,
|
|
134
|
+
breadcrumbsPrefix: ["response"],
|
|
135
|
+
}));
|
|
117
136
|
case 500:
|
|
118
137
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
119
138
|
default:
|
|
@@ -139,7 +158,12 @@ class Items {
|
|
|
139
158
|
});
|
|
140
159
|
}
|
|
141
160
|
/**
|
|
142
|
-
* Create Item in a Collection.</br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use
|
|
161
|
+
* <style>.rm-Markdown.markdown-body a{color: #146EF5 !important;}</style> Create Item in a Collection.</br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use the bulk item endpoint.</a> </br></br> Required scope | <code>CMS:write</code>
|
|
162
|
+
*
|
|
163
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
164
|
+
* @param {Webflow.CollectionItem} request
|
|
165
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
166
|
+
*
|
|
143
167
|
* @throws {@link Webflow.BadRequestError}
|
|
144
168
|
* @throws {@link Webflow.UnauthorizedError}
|
|
145
169
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -147,7 +171,7 @@ class Items {
|
|
|
147
171
|
* @throws {@link Webflow.InternalServerError}
|
|
148
172
|
*
|
|
149
173
|
* @example
|
|
150
|
-
* await
|
|
174
|
+
* await client.collections.items.createItem("collection_id", {
|
|
151
175
|
* id: "42b720ef280c7a7a3be8cabe",
|
|
152
176
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
153
177
|
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
@@ -165,13 +189,13 @@ class Items {
|
|
|
165
189
|
var _a;
|
|
166
190
|
return __awaiter(this, void 0, void 0, function* () {
|
|
167
191
|
const _response = yield core.fetcher({
|
|
168
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items`),
|
|
192
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items`),
|
|
169
193
|
method: "POST",
|
|
170
194
|
headers: {
|
|
171
195
|
Authorization: yield this._getAuthorizationHeader(),
|
|
172
196
|
"X-Fern-Language": "JavaScript",
|
|
173
197
|
"X-Fern-SDK-Name": "webflow-api",
|
|
174
|
-
"X-Fern-SDK-Version": "2.3.
|
|
198
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
175
199
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
176
200
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
177
201
|
},
|
|
@@ -179,6 +203,7 @@ class Items {
|
|
|
179
203
|
body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
180
204
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
181
205
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
206
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
182
207
|
});
|
|
183
208
|
if (_response.ok) {
|
|
184
209
|
return;
|
|
@@ -192,7 +217,13 @@ class Items {
|
|
|
192
217
|
case 404:
|
|
193
218
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
194
219
|
case 429:
|
|
195
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
220
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
221
|
+
unrecognizedObjectKeys: "passthrough",
|
|
222
|
+
allowUnrecognizedUnionMembers: true,
|
|
223
|
+
allowUnrecognizedEnumValues: true,
|
|
224
|
+
skipValidation: true,
|
|
225
|
+
breadcrumbsPrefix: ["response"],
|
|
226
|
+
}));
|
|
196
227
|
case 500:
|
|
197
228
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
198
229
|
default:
|
|
@@ -219,6 +250,11 @@ class Items {
|
|
|
219
250
|
}
|
|
220
251
|
/**
|
|
221
252
|
* List of all live Items within a Collection. </br></br> Required scope | `CMS:read`
|
|
253
|
+
*
|
|
254
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
255
|
+
* @param {Webflow.collections.ItemsListItemsLiveRequest} request
|
|
256
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
257
|
+
*
|
|
222
258
|
* @throws {@link Webflow.BadRequestError}
|
|
223
259
|
* @throws {@link Webflow.UnauthorizedError}
|
|
224
260
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -226,20 +262,15 @@ class Items {
|
|
|
226
262
|
* @throws {@link Webflow.InternalServerError}
|
|
227
263
|
*
|
|
228
264
|
* @example
|
|
229
|
-
* await
|
|
265
|
+
* await client.collections.items.listItemsLive("collection_id")
|
|
230
266
|
*/
|
|
231
267
|
listItemsLive(collectionId, request = {}, requestOptions) {
|
|
232
268
|
var _a;
|
|
233
269
|
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
-
const {
|
|
270
|
+
const { cmsLocaleId, offset, limit, name, slug, sortBy, sortOrder } = request;
|
|
235
271
|
const _queryParams = {};
|
|
236
|
-
if (
|
|
237
|
-
|
|
238
|
-
_queryParams["cmsLocaleIds"] = cmsLocaleIds.map((item) => item);
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
_queryParams["cmsLocaleIds"] = cmsLocaleIds;
|
|
242
|
-
}
|
|
272
|
+
if (cmsLocaleId != null) {
|
|
273
|
+
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
243
274
|
}
|
|
244
275
|
if (offset != null) {
|
|
245
276
|
_queryParams["offset"] = offset.toString();
|
|
@@ -247,14 +278,26 @@ class Items {
|
|
|
247
278
|
if (limit != null) {
|
|
248
279
|
_queryParams["limit"] = limit.toString();
|
|
249
280
|
}
|
|
281
|
+
if (name != null) {
|
|
282
|
+
_queryParams["name"] = name;
|
|
283
|
+
}
|
|
284
|
+
if (slug != null) {
|
|
285
|
+
_queryParams["slug"] = slug;
|
|
286
|
+
}
|
|
287
|
+
if (sortBy != null) {
|
|
288
|
+
_queryParams["sortBy"] = sortBy;
|
|
289
|
+
}
|
|
290
|
+
if (sortOrder != null) {
|
|
291
|
+
_queryParams["sortOrder"] = sortOrder;
|
|
292
|
+
}
|
|
250
293
|
const _response = yield core.fetcher({
|
|
251
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/live`),
|
|
294
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/live`),
|
|
252
295
|
method: "GET",
|
|
253
296
|
headers: {
|
|
254
297
|
Authorization: yield this._getAuthorizationHeader(),
|
|
255
298
|
"X-Fern-Language": "JavaScript",
|
|
256
299
|
"X-Fern-SDK-Name": "webflow-api",
|
|
257
|
-
"X-Fern-SDK-Version": "2.3.
|
|
300
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
258
301
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
259
302
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
260
303
|
},
|
|
@@ -262,6 +305,7 @@ class Items {
|
|
|
262
305
|
queryParameters: _queryParams,
|
|
263
306
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
264
307
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
308
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
265
309
|
});
|
|
266
310
|
if (_response.ok) {
|
|
267
311
|
return yield serializers.CollectionItemList.parseOrThrow(_response.body, {
|
|
@@ -281,7 +325,13 @@ class Items {
|
|
|
281
325
|
case 404:
|
|
282
326
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
283
327
|
case 429:
|
|
284
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
328
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
329
|
+
unrecognizedObjectKeys: "passthrough",
|
|
330
|
+
allowUnrecognizedUnionMembers: true,
|
|
331
|
+
allowUnrecognizedEnumValues: true,
|
|
332
|
+
skipValidation: true,
|
|
333
|
+
breadcrumbsPrefix: ["response"],
|
|
334
|
+
}));
|
|
285
335
|
case 500:
|
|
286
336
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
287
337
|
default:
|
|
@@ -308,6 +358,11 @@ class Items {
|
|
|
308
358
|
}
|
|
309
359
|
/**
|
|
310
360
|
* Create live Item in a Collection. This Item will be published to the live site. </br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use this endpoint.</a> </br></br> Required scope | `CMS:write`
|
|
361
|
+
*
|
|
362
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
363
|
+
* @param {Webflow.CollectionItem} request
|
|
364
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
365
|
+
*
|
|
311
366
|
* @throws {@link Webflow.BadRequestError}
|
|
312
367
|
* @throws {@link Webflow.UnauthorizedError}
|
|
313
368
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -315,7 +370,7 @@ class Items {
|
|
|
315
370
|
* @throws {@link Webflow.InternalServerError}
|
|
316
371
|
*
|
|
317
372
|
* @example
|
|
318
|
-
* await
|
|
373
|
+
* await client.collections.items.createItemLive("collection_id", {
|
|
319
374
|
* id: "42b720ef280c7a7a3be8cabe",
|
|
320
375
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
321
376
|
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
@@ -333,13 +388,13 @@ class Items {
|
|
|
333
388
|
var _a;
|
|
334
389
|
return __awaiter(this, void 0, void 0, function* () {
|
|
335
390
|
const _response = yield core.fetcher({
|
|
336
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/live`),
|
|
391
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/live`),
|
|
337
392
|
method: "POST",
|
|
338
393
|
headers: {
|
|
339
394
|
Authorization: yield this._getAuthorizationHeader(),
|
|
340
395
|
"X-Fern-Language": "JavaScript",
|
|
341
396
|
"X-Fern-SDK-Name": "webflow-api",
|
|
342
|
-
"X-Fern-SDK-Version": "2.3.
|
|
397
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
343
398
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
344
399
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
345
400
|
},
|
|
@@ -347,6 +402,7 @@ class Items {
|
|
|
347
402
|
body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
348
403
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
349
404
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
405
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
350
406
|
});
|
|
351
407
|
if (_response.ok) {
|
|
352
408
|
return;
|
|
@@ -360,7 +416,13 @@ class Items {
|
|
|
360
416
|
case 404:
|
|
361
417
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
362
418
|
case 429:
|
|
363
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
419
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
420
|
+
unrecognizedObjectKeys: "passthrough",
|
|
421
|
+
allowUnrecognizedUnionMembers: true,
|
|
422
|
+
allowUnrecognizedEnumValues: true,
|
|
423
|
+
skipValidation: true,
|
|
424
|
+
breadcrumbsPrefix: ["response"],
|
|
425
|
+
}));
|
|
364
426
|
case 500:
|
|
365
427
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
366
428
|
default:
|
|
@@ -387,6 +449,11 @@ class Items {
|
|
|
387
449
|
}
|
|
388
450
|
/**
|
|
389
451
|
* Create single Item in a Collection with multiple corresponding locales. </br></br> Required scope | `CMS:write`
|
|
452
|
+
*
|
|
453
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
454
|
+
* @param {Webflow.collections.BulkCollectionItem} request
|
|
455
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
456
|
+
*
|
|
390
457
|
* @throws {@link Webflow.BadRequestError}
|
|
391
458
|
* @throws {@link Webflow.UnauthorizedError}
|
|
392
459
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -394,27 +461,21 @@ class Items {
|
|
|
394
461
|
* @throws {@link Webflow.InternalServerError}
|
|
395
462
|
*
|
|
396
463
|
* @example
|
|
397
|
-
* await
|
|
398
|
-
* id: "580e64008c9a982ac9b8b754"
|
|
399
|
-
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
400
|
-
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
401
|
-
* fieldData: {
|
|
402
|
-
* name: "My new item",
|
|
403
|
-
* slug: "my-new-item"
|
|
404
|
-
* }
|
|
464
|
+
* await client.collections.items.createItemForMultipleLocales("collection_id", {
|
|
465
|
+
* id: "580e64008c9a982ac9b8b754"
|
|
405
466
|
* })
|
|
406
467
|
*/
|
|
407
468
|
createItemForMultipleLocales(collectionId, request, requestOptions) {
|
|
408
469
|
var _a;
|
|
409
470
|
return __awaiter(this, void 0, void 0, function* () {
|
|
410
471
|
const _response = yield core.fetcher({
|
|
411
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/bulk`),
|
|
472
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/bulk`),
|
|
412
473
|
method: "POST",
|
|
413
474
|
headers: {
|
|
414
475
|
Authorization: yield this._getAuthorizationHeader(),
|
|
415
476
|
"X-Fern-Language": "JavaScript",
|
|
416
477
|
"X-Fern-SDK-Name": "webflow-api",
|
|
417
|
-
"X-Fern-SDK-Version": "2.3.
|
|
478
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
418
479
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
419
480
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
420
481
|
},
|
|
@@ -424,6 +485,7 @@ class Items {
|
|
|
424
485
|
}),
|
|
425
486
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
426
487
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
488
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
427
489
|
});
|
|
428
490
|
if (_response.ok) {
|
|
429
491
|
return;
|
|
@@ -437,7 +499,13 @@ class Items {
|
|
|
437
499
|
case 404:
|
|
438
500
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
439
501
|
case 429:
|
|
440
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
502
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
503
|
+
unrecognizedObjectKeys: "passthrough",
|
|
504
|
+
allowUnrecognizedUnionMembers: true,
|
|
505
|
+
allowUnrecognizedEnumValues: true,
|
|
506
|
+
skipValidation: true,
|
|
507
|
+
breadcrumbsPrefix: ["response"],
|
|
508
|
+
}));
|
|
441
509
|
case 500:
|
|
442
510
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
443
511
|
default:
|
|
@@ -464,6 +532,12 @@ class Items {
|
|
|
464
532
|
}
|
|
465
533
|
/**
|
|
466
534
|
* Get details of a selected Collection Item. </br></br> Required scope | `CMS:read`
|
|
535
|
+
*
|
|
536
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
537
|
+
* @param {string} itemId - Unique identifier for an Item
|
|
538
|
+
* @param {Webflow.collections.ItemsGetItemRequest} request
|
|
539
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
540
|
+
*
|
|
467
541
|
* @throws {@link Webflow.BadRequestError}
|
|
468
542
|
* @throws {@link Webflow.UnauthorizedError}
|
|
469
543
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -471,7 +545,7 @@ class Items {
|
|
|
471
545
|
* @throws {@link Webflow.InternalServerError}
|
|
472
546
|
*
|
|
473
547
|
* @example
|
|
474
|
-
* await
|
|
548
|
+
* await client.collections.items.getItem("collection_id", "item_id")
|
|
475
549
|
*/
|
|
476
550
|
getItem(collectionId, itemId, request = {}, requestOptions) {
|
|
477
551
|
var _a;
|
|
@@ -482,13 +556,13 @@ class Items {
|
|
|
482
556
|
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
483
557
|
}
|
|
484
558
|
const _response = yield core.fetcher({
|
|
485
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/${itemId}`),
|
|
559
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
|
|
486
560
|
method: "GET",
|
|
487
561
|
headers: {
|
|
488
562
|
Authorization: yield this._getAuthorizationHeader(),
|
|
489
563
|
"X-Fern-Language": "JavaScript",
|
|
490
564
|
"X-Fern-SDK-Name": "webflow-api",
|
|
491
|
-
"X-Fern-SDK-Version": "2.3.
|
|
565
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
492
566
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
493
567
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
494
568
|
},
|
|
@@ -496,6 +570,7 @@ class Items {
|
|
|
496
570
|
queryParameters: _queryParams,
|
|
497
571
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
498
572
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
573
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
499
574
|
});
|
|
500
575
|
if (_response.ok) {
|
|
501
576
|
return yield serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
@@ -515,7 +590,13 @@ class Items {
|
|
|
515
590
|
case 404:
|
|
516
591
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
517
592
|
case 429:
|
|
518
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
593
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
594
|
+
unrecognizedObjectKeys: "passthrough",
|
|
595
|
+
allowUnrecognizedUnionMembers: true,
|
|
596
|
+
allowUnrecognizedEnumValues: true,
|
|
597
|
+
skipValidation: true,
|
|
598
|
+
breadcrumbsPrefix: ["response"],
|
|
599
|
+
}));
|
|
519
600
|
case 500:
|
|
520
601
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
521
602
|
default:
|
|
@@ -542,6 +623,12 @@ class Items {
|
|
|
542
623
|
}
|
|
543
624
|
/**
|
|
544
625
|
* Delete an Item from a Collection. This endpoint does not currently support bulk deletion. </br></br> Required scope | `CMS:write`
|
|
626
|
+
*
|
|
627
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
628
|
+
* @param {string} itemId - Unique identifier for an Item
|
|
629
|
+
* @param {Webflow.collections.ItemsDeleteItemRequest} request
|
|
630
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
631
|
+
*
|
|
545
632
|
* @throws {@link Webflow.BadRequestError}
|
|
546
633
|
* @throws {@link Webflow.UnauthorizedError}
|
|
547
634
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -549,29 +636,24 @@ class Items {
|
|
|
549
636
|
* @throws {@link Webflow.InternalServerError}
|
|
550
637
|
*
|
|
551
638
|
* @example
|
|
552
|
-
* await
|
|
639
|
+
* await client.collections.items.deleteItem("collection_id", "item_id")
|
|
553
640
|
*/
|
|
554
641
|
deleteItem(collectionId, itemId, request = {}, requestOptions) {
|
|
555
642
|
var _a;
|
|
556
643
|
return __awaiter(this, void 0, void 0, function* () {
|
|
557
|
-
const {
|
|
644
|
+
const { cmsLocaleId } = request;
|
|
558
645
|
const _queryParams = {};
|
|
559
|
-
if (
|
|
560
|
-
|
|
561
|
-
_queryParams["cmsLocaleIds"] = cmsLocaleIds.map((item) => item);
|
|
562
|
-
}
|
|
563
|
-
else {
|
|
564
|
-
_queryParams["cmsLocaleIds"] = cmsLocaleIds;
|
|
565
|
-
}
|
|
646
|
+
if (cmsLocaleId != null) {
|
|
647
|
+
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
566
648
|
}
|
|
567
649
|
const _response = yield core.fetcher({
|
|
568
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/${itemId}`),
|
|
650
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
|
|
569
651
|
method: "DELETE",
|
|
570
652
|
headers: {
|
|
571
653
|
Authorization: yield this._getAuthorizationHeader(),
|
|
572
654
|
"X-Fern-Language": "JavaScript",
|
|
573
655
|
"X-Fern-SDK-Name": "webflow-api",
|
|
574
|
-
"X-Fern-SDK-Version": "2.3.
|
|
656
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
575
657
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
576
658
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
577
659
|
},
|
|
@@ -579,6 +661,7 @@ class Items {
|
|
|
579
661
|
queryParameters: _queryParams,
|
|
580
662
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
581
663
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
664
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
582
665
|
});
|
|
583
666
|
if (_response.ok) {
|
|
584
667
|
return;
|
|
@@ -592,7 +675,13 @@ class Items {
|
|
|
592
675
|
case 404:
|
|
593
676
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
594
677
|
case 429:
|
|
595
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
678
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
679
|
+
unrecognizedObjectKeys: "passthrough",
|
|
680
|
+
allowUnrecognizedUnionMembers: true,
|
|
681
|
+
allowUnrecognizedEnumValues: true,
|
|
682
|
+
skipValidation: true,
|
|
683
|
+
breadcrumbsPrefix: ["response"],
|
|
684
|
+
}));
|
|
596
685
|
case 500:
|
|
597
686
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
598
687
|
default:
|
|
@@ -619,6 +708,12 @@ class Items {
|
|
|
619
708
|
}
|
|
620
709
|
/**
|
|
621
710
|
* Update a selected Item in a Collection. </br></br> Required scope | `CMS:write`
|
|
711
|
+
*
|
|
712
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
713
|
+
* @param {string} itemId - Unique identifier for an Item
|
|
714
|
+
* @param {Webflow.CollectionItem} request
|
|
715
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
716
|
+
*
|
|
622
717
|
* @throws {@link Webflow.BadRequestError}
|
|
623
718
|
* @throws {@link Webflow.UnauthorizedError}
|
|
624
719
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -626,7 +721,7 @@ class Items {
|
|
|
626
721
|
* @throws {@link Webflow.InternalServerError}
|
|
627
722
|
*
|
|
628
723
|
* @example
|
|
629
|
-
* await
|
|
724
|
+
* await client.collections.items.updateItem("collection_id", "item_id", {
|
|
630
725
|
* id: "42b720ef280c7a7a3be8cabe",
|
|
631
726
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
632
727
|
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
@@ -644,13 +739,13 @@ class Items {
|
|
|
644
739
|
var _a;
|
|
645
740
|
return __awaiter(this, void 0, void 0, function* () {
|
|
646
741
|
const _response = yield core.fetcher({
|
|
647
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/${itemId}`),
|
|
742
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
|
|
648
743
|
method: "PATCH",
|
|
649
744
|
headers: {
|
|
650
745
|
Authorization: yield this._getAuthorizationHeader(),
|
|
651
746
|
"X-Fern-Language": "JavaScript",
|
|
652
747
|
"X-Fern-SDK-Name": "webflow-api",
|
|
653
|
-
"X-Fern-SDK-Version": "2.3.
|
|
748
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
654
749
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
655
750
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
656
751
|
},
|
|
@@ -658,6 +753,7 @@ class Items {
|
|
|
658
753
|
body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
659
754
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
660
755
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
756
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
661
757
|
});
|
|
662
758
|
if (_response.ok) {
|
|
663
759
|
return yield serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
@@ -677,7 +773,13 @@ class Items {
|
|
|
677
773
|
case 404:
|
|
678
774
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
679
775
|
case 429:
|
|
680
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
776
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
777
|
+
unrecognizedObjectKeys: "passthrough",
|
|
778
|
+
allowUnrecognizedUnionMembers: true,
|
|
779
|
+
allowUnrecognizedEnumValues: true,
|
|
780
|
+
skipValidation: true,
|
|
781
|
+
breadcrumbsPrefix: ["response"],
|
|
782
|
+
}));
|
|
681
783
|
case 500:
|
|
682
784
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
683
785
|
default:
|
|
@@ -703,7 +805,13 @@ class Items {
|
|
|
703
805
|
});
|
|
704
806
|
}
|
|
705
807
|
/**
|
|
706
|
-
*
|
|
808
|
+
* Get details of a selected Collection live Item. </br></br> Required scope | `CMS:read`
|
|
809
|
+
*
|
|
810
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
811
|
+
* @param {string} itemId - Unique identifier for an Item
|
|
812
|
+
* @param {Webflow.collections.ItemsGetItemLiveRequest} request
|
|
813
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
814
|
+
*
|
|
707
815
|
* @throws {@link Webflow.BadRequestError}
|
|
708
816
|
* @throws {@link Webflow.UnauthorizedError}
|
|
709
817
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -711,25 +819,123 @@ class Items {
|
|
|
711
819
|
* @throws {@link Webflow.InternalServerError}
|
|
712
820
|
*
|
|
713
821
|
* @example
|
|
714
|
-
* await
|
|
822
|
+
* await client.collections.items.getItemLive("collection_id", "item_id")
|
|
715
823
|
*/
|
|
716
|
-
|
|
824
|
+
getItemLive(collectionId, itemId, request = {}, requestOptions) {
|
|
717
825
|
var _a;
|
|
718
826
|
return __awaiter(this, void 0, void 0, function* () {
|
|
827
|
+
const { cmsLocaleId } = request;
|
|
828
|
+
const _queryParams = {};
|
|
829
|
+
if (cmsLocaleId != null) {
|
|
830
|
+
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
831
|
+
}
|
|
719
832
|
const _response = yield core.fetcher({
|
|
720
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/${itemId}/live`),
|
|
833
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
|
|
834
|
+
method: "GET",
|
|
835
|
+
headers: {
|
|
836
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
837
|
+
"X-Fern-Language": "JavaScript",
|
|
838
|
+
"X-Fern-SDK-Name": "webflow-api",
|
|
839
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
840
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
841
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
842
|
+
},
|
|
843
|
+
contentType: "application/json",
|
|
844
|
+
queryParameters: _queryParams,
|
|
845
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
846
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
847
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
848
|
+
});
|
|
849
|
+
if (_response.ok) {
|
|
850
|
+
return yield serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
851
|
+
unrecognizedObjectKeys: "passthrough",
|
|
852
|
+
allowUnrecognizedUnionMembers: true,
|
|
853
|
+
allowUnrecognizedEnumValues: true,
|
|
854
|
+
skipValidation: true,
|
|
855
|
+
breadcrumbsPrefix: ["response"],
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
if (_response.error.reason === "status-code") {
|
|
859
|
+
switch (_response.error.statusCode) {
|
|
860
|
+
case 400:
|
|
861
|
+
throw new Webflow.BadRequestError(_response.error.body);
|
|
862
|
+
case 401:
|
|
863
|
+
throw new Webflow.UnauthorizedError(_response.error.body);
|
|
864
|
+
case 404:
|
|
865
|
+
throw new Webflow.NotFoundError(_response.error.body);
|
|
866
|
+
case 429:
|
|
867
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
868
|
+
unrecognizedObjectKeys: "passthrough",
|
|
869
|
+
allowUnrecognizedUnionMembers: true,
|
|
870
|
+
allowUnrecognizedEnumValues: true,
|
|
871
|
+
skipValidation: true,
|
|
872
|
+
breadcrumbsPrefix: ["response"],
|
|
873
|
+
}));
|
|
874
|
+
case 500:
|
|
875
|
+
throw new Webflow.InternalServerError(_response.error.body);
|
|
876
|
+
default:
|
|
877
|
+
throw new errors.WebflowError({
|
|
878
|
+
statusCode: _response.error.statusCode,
|
|
879
|
+
body: _response.error.body,
|
|
880
|
+
});
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
switch (_response.error.reason) {
|
|
884
|
+
case "non-json":
|
|
885
|
+
throw new errors.WebflowError({
|
|
886
|
+
statusCode: _response.error.statusCode,
|
|
887
|
+
body: _response.error.rawBody,
|
|
888
|
+
});
|
|
889
|
+
case "timeout":
|
|
890
|
+
throw new errors.WebflowTimeoutError();
|
|
891
|
+
case "unknown":
|
|
892
|
+
throw new errors.WebflowError({
|
|
893
|
+
message: _response.error.errorMessage,
|
|
894
|
+
});
|
|
895
|
+
}
|
|
896
|
+
});
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* Remove a live item from the site. Removing a published item will unpublish the item from the live site and set it to draft. This endpoint does not currently support bulk deletion.</br></br> Required scope | `CMS:write`
|
|
900
|
+
*
|
|
901
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
902
|
+
* @param {string} itemId - Unique identifier for an Item
|
|
903
|
+
* @param {Webflow.collections.ItemsDeleteItemLiveRequest} request
|
|
904
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
905
|
+
*
|
|
906
|
+
* @throws {@link Webflow.BadRequestError}
|
|
907
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
908
|
+
* @throws {@link Webflow.NotFoundError}
|
|
909
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
910
|
+
* @throws {@link Webflow.InternalServerError}
|
|
911
|
+
*
|
|
912
|
+
* @example
|
|
913
|
+
* await client.collections.items.deleteItemLive("collection_id", "item_id")
|
|
914
|
+
*/
|
|
915
|
+
deleteItemLive(collectionId, itemId, request = {}, requestOptions) {
|
|
916
|
+
var _a;
|
|
917
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
918
|
+
const { cmsLocaleId } = request;
|
|
919
|
+
const _queryParams = {};
|
|
920
|
+
if (cmsLocaleId != null) {
|
|
921
|
+
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
922
|
+
}
|
|
923
|
+
const _response = yield core.fetcher({
|
|
924
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
|
|
721
925
|
method: "DELETE",
|
|
722
926
|
headers: {
|
|
723
927
|
Authorization: yield this._getAuthorizationHeader(),
|
|
724
928
|
"X-Fern-Language": "JavaScript",
|
|
725
929
|
"X-Fern-SDK-Name": "webflow-api",
|
|
726
|
-
"X-Fern-SDK-Version": "2.3.
|
|
930
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
727
931
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
728
932
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
729
933
|
},
|
|
730
934
|
contentType: "application/json",
|
|
935
|
+
queryParameters: _queryParams,
|
|
731
936
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
732
937
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
938
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
733
939
|
});
|
|
734
940
|
if (_response.ok) {
|
|
735
941
|
return;
|
|
@@ -743,7 +949,13 @@ class Items {
|
|
|
743
949
|
case 404:
|
|
744
950
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
745
951
|
case 429:
|
|
746
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
952
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
953
|
+
unrecognizedObjectKeys: "passthrough",
|
|
954
|
+
allowUnrecognizedUnionMembers: true,
|
|
955
|
+
allowUnrecognizedEnumValues: true,
|
|
956
|
+
skipValidation: true,
|
|
957
|
+
breadcrumbsPrefix: ["response"],
|
|
958
|
+
}));
|
|
747
959
|
case 500:
|
|
748
960
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
749
961
|
default:
|
|
@@ -770,6 +982,12 @@ class Items {
|
|
|
770
982
|
}
|
|
771
983
|
/**
|
|
772
984
|
* Update a selected live Item in a Collection. The updates for this Item will be published to the live site. </br></br> Required scope | `CMS:write`
|
|
985
|
+
*
|
|
986
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
987
|
+
* @param {string} itemId - Unique identifier for an Item
|
|
988
|
+
* @param {Webflow.CollectionItem} request
|
|
989
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
990
|
+
*
|
|
773
991
|
* @throws {@link Webflow.BadRequestError}
|
|
774
992
|
* @throws {@link Webflow.UnauthorizedError}
|
|
775
993
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -777,7 +995,7 @@ class Items {
|
|
|
777
995
|
* @throws {@link Webflow.InternalServerError}
|
|
778
996
|
*
|
|
779
997
|
* @example
|
|
780
|
-
* await
|
|
998
|
+
* await client.collections.items.updateItemLive("collection_id", "item_id", {
|
|
781
999
|
* id: "42b720ef280c7a7a3be8cabe",
|
|
782
1000
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
783
1001
|
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
@@ -795,13 +1013,13 @@ class Items {
|
|
|
795
1013
|
var _a;
|
|
796
1014
|
return __awaiter(this, void 0, void 0, function* () {
|
|
797
1015
|
const _response = yield core.fetcher({
|
|
798
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/${itemId}/live`),
|
|
1016
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
|
|
799
1017
|
method: "PATCH",
|
|
800
1018
|
headers: {
|
|
801
1019
|
Authorization: yield this._getAuthorizationHeader(),
|
|
802
1020
|
"X-Fern-Language": "JavaScript",
|
|
803
1021
|
"X-Fern-SDK-Name": "webflow-api",
|
|
804
|
-
"X-Fern-SDK-Version": "2.3.
|
|
1022
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
805
1023
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
806
1024
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
807
1025
|
},
|
|
@@ -809,6 +1027,7 @@ class Items {
|
|
|
809
1027
|
body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
810
1028
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
811
1029
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1030
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
812
1031
|
});
|
|
813
1032
|
if (_response.ok) {
|
|
814
1033
|
return yield serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
@@ -828,7 +1047,13 @@ class Items {
|
|
|
828
1047
|
case 404:
|
|
829
1048
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
830
1049
|
case 429:
|
|
831
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
1050
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
1051
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1052
|
+
allowUnrecognizedUnionMembers: true,
|
|
1053
|
+
allowUnrecognizedEnumValues: true,
|
|
1054
|
+
skipValidation: true,
|
|
1055
|
+
breadcrumbsPrefix: ["response"],
|
|
1056
|
+
}));
|
|
832
1057
|
case 500:
|
|
833
1058
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
834
1059
|
default:
|
|
@@ -855,6 +1080,11 @@ class Items {
|
|
|
855
1080
|
}
|
|
856
1081
|
/**
|
|
857
1082
|
* Publish an item or multiple items. </br></br> Required scope | `cms:write`
|
|
1083
|
+
*
|
|
1084
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
1085
|
+
* @param {Webflow.collections.ItemsPublishItemRequest} request
|
|
1086
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
1087
|
+
*
|
|
858
1088
|
* @throws {@link Webflow.BadRequestError}
|
|
859
1089
|
* @throws {@link Webflow.UnauthorizedError}
|
|
860
1090
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -862,7 +1092,7 @@ class Items {
|
|
|
862
1092
|
* @throws {@link Webflow.InternalServerError}
|
|
863
1093
|
*
|
|
864
1094
|
* @example
|
|
865
|
-
* await
|
|
1095
|
+
* await client.collections.items.publishItem("collection_id", {
|
|
866
1096
|
* itemIds: ["itemIds"]
|
|
867
1097
|
* })
|
|
868
1098
|
*/
|
|
@@ -870,13 +1100,13 @@ class Items {
|
|
|
870
1100
|
var _a;
|
|
871
1101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
872
1102
|
const _response = yield core.fetcher({
|
|
873
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${collectionId}/items/publish`),
|
|
1103
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}/items/publish`),
|
|
874
1104
|
method: "POST",
|
|
875
1105
|
headers: {
|
|
876
1106
|
Authorization: yield this._getAuthorizationHeader(),
|
|
877
1107
|
"X-Fern-Language": "JavaScript",
|
|
878
1108
|
"X-Fern-SDK-Name": "webflow-api",
|
|
879
|
-
"X-Fern-SDK-Version": "2.3.
|
|
1109
|
+
"X-Fern-SDK-Version": "2.3.6",
|
|
880
1110
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
881
1111
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
882
1112
|
},
|
|
@@ -886,6 +1116,7 @@ class Items {
|
|
|
886
1116
|
}),
|
|
887
1117
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
888
1118
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1119
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
889
1120
|
});
|
|
890
1121
|
if (_response.ok) {
|
|
891
1122
|
return;
|
|
@@ -899,7 +1130,13 @@ class Items {
|
|
|
899
1130
|
case 404:
|
|
900
1131
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
901
1132
|
case 429:
|
|
902
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
1133
|
+
throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
1134
|
+
unrecognizedObjectKeys: "passthrough",
|
|
1135
|
+
allowUnrecognizedUnionMembers: true,
|
|
1136
|
+
allowUnrecognizedEnumValues: true,
|
|
1137
|
+
skipValidation: true,
|
|
1138
|
+
breadcrumbsPrefix: ["response"],
|
|
1139
|
+
}));
|
|
903
1140
|
case 500:
|
|
904
1141
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
905
1142
|
default:
|