webflow-api 2.3.1 → 2.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +4 -0
- package/api/errors/BadRequestError.d.ts +1 -1
- package/api/errors/BadRequestError.js +1 -1
- package/api/errors/ConflictError.d.ts +1 -1
- package/api/errors/ConflictError.js +1 -1
- package/api/errors/ForbiddenError.d.ts +1 -1
- package/api/errors/ForbiddenError.js +1 -1
- package/api/errors/InternalServerError.d.ts +1 -1
- package/api/errors/InternalServerError.js +1 -1
- package/api/errors/NotFoundError.d.ts +1 -1
- package/api/errors/NotFoundError.js +1 -1
- package/api/errors/TooManyRequestsError.d.ts +1 -1
- package/api/errors/TooManyRequestsError.js +1 -1
- package/api/errors/UnauthorizedError.d.ts +1 -1
- package/api/errors/UnauthorizedError.js +1 -1
- package/api/errors/index.d.ts +2 -2
- package/api/errors/index.js +2 -2
- package/api/resources/accessGroups/client/Client.d.ts +11 -2
- package/api/resources/accessGroups/client/Client.js +12 -6
- package/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +1 -1
- package/api/resources/accessGroups/client/requests/index.d.ts +1 -1
- package/api/resources/assets/client/Client.d.ts +50 -13
- package/api/resources/assets/client/Client.js +72 -31
- package/api/resources/assets/client/requests/AssetsCreateFolderRequest.d.ts +1 -2
- package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -2
- package/api/resources/assets/client/requests/index.d.ts +3 -3
- package/api/resources/collections/client/Client.d.ts +32 -6
- package/api/resources/collections/client/Client.js +45 -18
- package/api/resources/collections/client/requests/index.d.ts +1 -1
- package/api/resources/collections/resources/fields/client/Client.d.ts +18 -3
- package/api/resources/collections/resources/fields/client/Client.js +22 -9
- package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
- package/api/resources/collections/resources/fields/client/requests/index.d.ts +2 -2
- package/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +2 -2
- package/api/resources/collections/resources/fields/types/FieldCreateType.js +1 -1
- package/api/resources/collections/resources/items/client/Client.d.ts +108 -20
- package/api/resources/collections/resources/items/client/Client.js +312 -58
- package/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +2 -8
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.d.ts +13 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.js +5 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +2 -2
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.d.ts +13 -0
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.js +5 -0
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +1 -1
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +38 -0
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.js +5 -0
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +19 -2
- package/api/resources/collections/resources/items/client/requests/index.d.ts +8 -5
- package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +9 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +11 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +8 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +10 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +9 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +11 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +8 -0
- package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +10 -0
- package/api/resources/collections/resources/items/types/index.d.ts +4 -0
- package/api/resources/collections/resources/items/types/index.js +4 -0
- package/api/resources/ecommerce/client/Client.d.ts +10 -2
- package/api/resources/ecommerce/client/Client.js +11 -6
- package/api/resources/forms/client/Client.d.ts +32 -6
- package/api/resources/forms/client/Client.js +45 -18
- package/api/resources/forms/client/requests/index.d.ts +2 -2
- package/api/resources/inventory/client/Client.d.ts +19 -6
- package/api/resources/inventory/client/Client.js +23 -12
- package/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +2 -4
- package/api/resources/inventory/client/requests/index.d.ts +1 -1
- package/api/resources/orders/client/Client.d.ts +44 -12
- package/api/resources/orders/client/Client.js +60 -26
- package/api/resources/orders/client/requests/OrdersListRequest.d.ts +2 -1
- package/api/resources/orders/client/requests/OrdersRefundRequest.d.ts +1 -1
- package/api/resources/orders/client/requests/OrdersUpdateRequest.d.ts +1 -6
- package/api/resources/orders/client/requests/index.d.ts +4 -4
- package/api/resources/orders/types/OrdersListRequestStatus.d.ts +12 -0
- package/api/resources/orders/types/OrdersListRequestStatus.js +14 -0
- package/api/resources/orders/types/index.d.ts +1 -0
- package/api/resources/orders/types/index.js +1 -0
- package/api/resources/pages/client/Client.d.ts +37 -12
- package/api/resources/pages/client/Client.js +57 -25
- package/api/resources/pages/client/requests/DomWrite.d.ts +1 -4
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +8 -0
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +1 -2
- package/api/resources/pages/client/requests/index.d.ts +5 -5
- package/api/resources/pages/resources/scripts/client/Client.d.ts +24 -11
- package/api/resources/pages/resources/scripts/client/Client.js +31 -19
- package/api/resources/products/client/Client.d.ts +47 -89
- package/api/resources/products/client/Client.js +63 -103
- package/api/resources/products/client/requests/ProductSkuCreate.d.ts +2 -27
- package/api/resources/products/client/requests/ProductSkuUpdate.d.ts +2 -27
- package/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +2 -17
- package/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +2 -17
- package/api/resources/products/client/requests/index.d.ts +5 -5
- package/api/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
- package/api/resources/scripts/client/Client.d.ts +25 -7
- package/api/resources/scripts/client/Client.js +32 -15
- package/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +1 -1
- package/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +1 -1
- package/api/resources/scripts/client/requests/index.d.ts +2 -2
- package/api/resources/sites/client/Client.d.ts +25 -8
- package/api/resources/sites/client/Client.js +34 -17
- package/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -4
- package/api/resources/sites/client/requests/index.d.ts +1 -1
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +11 -2
- package/api/resources/sites/resources/activityLogs/client/Client.js +12 -6
- package/api/resources/sites/resources/activityLogs/client/requests/index.d.ts +1 -1
- package/api/resources/sites/resources/scripts/client/Client.d.ts +31 -13
- package/api/resources/sites/resources/scripts/client/Client.js +41 -23
- package/api/resources/sites/resources/scripts/client/requests/index.d.ts +1 -1
- package/api/resources/token/client/Client.d.ts +14 -4
- package/api/resources/token/client/Client.js +16 -8
- package/api/resources/users/client/Client.d.ts +38 -8
- package/api/resources/users/client/Client.js +51 -20
- package/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -1
- package/api/resources/users/client/requests/UsersListRequest.d.ts +1 -1
- package/api/resources/users/client/requests/UsersUpdateRequest.d.ts +2 -2
- package/api/resources/users/client/requests/index.d.ts +3 -3
- package/api/resources/webhooks/client/Client.d.ts +27 -6
- package/api/resources/webhooks/client/Client.js +37 -16
- package/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +1 -1
- package/api/resources/webhooks/client/requests/index.d.ts +1 -1
- package/api/types/AccessGroupList.d.ts +1 -1
- package/api/types/Asset.d.ts +1 -1
- package/api/types/AssetFolderList.d.ts +1 -1
- package/api/types/AssetUpload.d.ts +1 -1
- package/api/types/Assets.d.ts +1 -1
- package/api/types/Authorization.d.ts +1 -1
- package/api/types/AuthorizationAuthorization.d.ts +1 -1
- package/api/types/BadRequestErrorBody.d.ts +5 -0
- package/api/types/BadRequestErrorBody.js +5 -0
- package/api/types/Collection.d.ts +2 -1
- package/api/types/CollectionItem.d.ts +1 -1
- package/api/types/CollectionItemList.d.ts +1 -1
- package/api/types/CollectionList.d.ts +1 -1
- package/api/types/ConflictErrorBody.d.ts +5 -0
- package/api/types/ConflictErrorBody.js +5 -0
- package/api/types/CustomCodeBlock.d.ts +1 -1
- package/api/types/CustomCodeHostedResponse.d.ts +1 -1
- package/api/types/CustomCodeInlineResponse.d.ts +1 -1
- package/api/types/Dom.d.ts +1 -1
- package/api/types/Domains.d.ts +1 -1
- package/api/types/DuplicateUserEmail.d.ts +2 -11
- package/api/types/Error_.d.ts +1 -1
- package/api/types/Field.d.ts +1 -1
- package/api/types/FieldType.d.ts +2 -2
- package/api/types/FieldType.js +1 -1
- package/api/types/ForbiddenErrorBody.d.ts +10 -0
- package/api/types/ForbiddenErrorBody.js +5 -0
- package/api/types/Form.d.ts +1 -1
- package/api/types/FormField.d.ts +1 -1
- package/api/types/FormFieldValue.d.ts +1 -1
- package/api/types/FormList.d.ts +1 -1
- package/api/types/FormSubmissionList.d.ts +1 -1
- package/api/types/InventoryItem.d.ts +1 -1
- package/api/types/ListCustomCodeBlocks.d.ts +1 -1
- package/api/types/Locales.d.ts +1 -1
- package/api/types/MissingScopes.d.ts +2 -11
- package/api/types/Node.d.ts +1 -1
- package/api/types/NotEnterprisePlanSite.d.ts +2 -11
- package/api/types/OauthScope.d.ts +9 -1
- package/api/types/OauthScope.js +2 -0
- package/api/types/Order.d.ts +1 -1
- package/api/types/OrderAddress.d.ts +1 -1
- package/api/types/OrderList.d.ts +1 -1
- package/api/types/OrderPurchasedItem.d.ts +1 -1
- package/api/types/OrderPurchasedItemVariantImage.d.ts +1 -1
- package/api/types/OrderPurchasedItemVariantImageFile.d.ts +1 -1
- package/api/types/OrderTotals.d.ts +1 -1
- package/api/types/OrderTotalsExtrasItem.d.ts +1 -1
- package/api/types/Page.d.ts +1 -1
- package/api/types/PageDetails.d.ts +41 -0
- package/api/types/PageDetails.js +5 -0
- package/api/types/PageDetailsOpenGraph.d.ts +16 -0
- package/api/types/PageDetailsOpenGraph.js +5 -0
- package/api/types/PageDetailsSeo.d.ts +12 -0
- package/api/types/PageDetailsSeo.js +5 -0
- package/api/types/PageList.d.ts +1 -1
- package/api/types/Product.d.ts +1 -1
- package/api/types/ProductAndSkUs.d.ts +1 -1
- package/api/types/ProductAndSkUsList.d.ts +1 -1
- package/api/types/ProductFieldData.d.ts +1 -1
- package/api/types/RegisteredScriptList.d.ts +1 -1
- package/api/types/ScriptApply.d.ts +1 -1
- package/api/types/ScriptApplyList.d.ts +1 -1
- package/api/types/Scripts.d.ts +1 -1
- package/api/types/Site.d.ts +1 -1
- package/api/types/SiteActivityLogItem.d.ts +1 -1
- package/api/types/SiteActivityLogResponse.d.ts +1 -1
- package/api/types/Sites.d.ts +1 -1
- package/api/types/Sku.d.ts +1 -1
- package/api/types/SkuFieldData.d.ts +1 -1
- package/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -1
- package/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +2 -1
- package/api/types/SkuPropertyList.d.ts +1 -1
- package/api/types/StripeCard.d.ts +1 -1
- package/api/types/User.d.ts +1 -1
- package/api/types/UserAccessGroupsItem.d.ts +1 -1
- package/api/types/UserData.d.ts +1 -1
- package/api/types/UserLimitReached.d.ts +2 -11
- package/api/types/UserList.d.ts +1 -1
- package/api/types/UsersNotEnabled.d.ts +2 -11
- package/api/types/Webhook.d.ts +1 -1
- package/api/types/WebhookList.d.ts +1 -1
- package/api/types/index.d.ts +6 -0
- package/api/types/index.js +6 -0
- package/core/fetcher/Fetcher.d.ts +2 -1
- package/core/fetcher/Fetcher.js +126 -19
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +11 -1
- package/core/schemas/builders/object/object.js +11 -15
- package/dist/Client.d.ts +4 -0
- package/dist/api/errors/BadRequestError.d.ts +1 -1
- package/dist/api/errors/BadRequestError.js +1 -1
- package/dist/api/errors/ConflictError.d.ts +1 -1
- package/dist/api/errors/ConflictError.js +1 -1
- package/dist/api/errors/ForbiddenError.d.ts +1 -1
- package/dist/api/errors/ForbiddenError.js +1 -1
- package/dist/api/errors/InternalServerError.d.ts +1 -1
- package/dist/api/errors/InternalServerError.js +1 -1
- package/dist/api/errors/NotFoundError.d.ts +1 -1
- package/dist/api/errors/NotFoundError.js +1 -1
- package/dist/api/errors/TooManyRequestsError.d.ts +1 -1
- package/dist/api/errors/TooManyRequestsError.js +1 -1
- package/dist/api/errors/UnauthorizedError.d.ts +1 -1
- package/dist/api/errors/UnauthorizedError.js +1 -1
- package/dist/api/errors/index.d.ts +2 -2
- package/dist/api/errors/index.js +2 -2
- package/dist/api/resources/accessGroups/client/Client.d.ts +11 -2
- package/dist/api/resources/accessGroups/client/Client.js +12 -6
- package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +1 -1
- package/dist/api/resources/accessGroups/client/requests/index.d.ts +1 -1
- package/dist/api/resources/assets/client/Client.d.ts +50 -13
- package/dist/api/resources/assets/client/Client.js +72 -31
- package/dist/api/resources/assets/client/requests/AssetsCreateFolderRequest.d.ts +1 -2
- package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -2
- package/dist/api/resources/assets/client/requests/index.d.ts +3 -3
- package/dist/api/resources/collections/client/Client.d.ts +32 -6
- package/dist/api/resources/collections/client/Client.js +45 -18
- package/dist/api/resources/collections/client/requests/index.d.ts +1 -1
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +18 -3
- package/dist/api/resources/collections/resources/fields/client/Client.js +22 -9
- package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
- package/dist/api/resources/collections/resources/fields/client/requests/index.d.ts +2 -2
- package/dist/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +2 -2
- package/dist/api/resources/collections/resources/fields/types/FieldCreateType.js +1 -1
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +108 -20
- package/dist/api/resources/collections/resources/items/client/Client.js +312 -58
- package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +2 -8
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.d.ts +13 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +2 -2
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.d.ts +13 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +38 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +19 -2
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +8 -5
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +11 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +10 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +11 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +10 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +4 -0
- package/dist/api/resources/collections/resources/items/types/index.js +4 -0
- package/dist/api/resources/ecommerce/client/Client.d.ts +10 -2
- package/dist/api/resources/ecommerce/client/Client.js +11 -6
- package/dist/api/resources/forms/client/Client.d.ts +32 -6
- package/dist/api/resources/forms/client/Client.js +45 -18
- package/dist/api/resources/forms/client/requests/index.d.ts +2 -2
- package/dist/api/resources/inventory/client/Client.d.ts +19 -6
- package/dist/api/resources/inventory/client/Client.js +23 -12
- package/dist/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +2 -4
- package/dist/api/resources/inventory/client/requests/index.d.ts +1 -1
- package/dist/api/resources/orders/client/Client.d.ts +44 -12
- package/dist/api/resources/orders/client/Client.js +60 -26
- package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +2 -1
- package/dist/api/resources/orders/client/requests/OrdersRefundRequest.d.ts +1 -1
- package/dist/api/resources/orders/client/requests/OrdersUpdateRequest.d.ts +1 -6
- package/dist/api/resources/orders/client/requests/index.d.ts +4 -4
- package/dist/api/resources/orders/types/OrdersListRequestStatus.d.ts +12 -0
- package/dist/api/resources/orders/types/OrdersListRequestStatus.js +14 -0
- package/dist/api/resources/orders/types/index.d.ts +1 -0
- package/dist/api/resources/orders/types/index.js +1 -0
- package/dist/api/resources/pages/client/Client.d.ts +37 -12
- package/dist/api/resources/pages/client/Client.js +57 -25
- package/dist/api/resources/pages/client/requests/DomWrite.d.ts +1 -4
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +8 -0
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +1 -2
- package/dist/api/resources/pages/client/requests/index.d.ts +5 -5
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +24 -11
- package/dist/api/resources/pages/resources/scripts/client/Client.js +31 -19
- package/dist/api/resources/products/client/Client.d.ts +47 -89
- package/dist/api/resources/products/client/Client.js +63 -103
- package/dist/api/resources/products/client/requests/ProductSkuCreate.d.ts +2 -27
- package/dist/api/resources/products/client/requests/ProductSkuUpdate.d.ts +2 -27
- package/dist/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +2 -17
- package/dist/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +2 -17
- package/dist/api/resources/products/client/requests/index.d.ts +5 -5
- package/dist/api/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
- package/dist/api/resources/scripts/client/Client.d.ts +25 -7
- package/dist/api/resources/scripts/client/Client.js +32 -15
- package/dist/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +1 -1
- package/dist/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +1 -1
- package/dist/api/resources/scripts/client/requests/index.d.ts +2 -2
- package/dist/api/resources/sites/client/Client.d.ts +25 -8
- package/dist/api/resources/sites/client/Client.js +34 -17
- package/dist/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -4
- package/dist/api/resources/sites/client/requests/index.d.ts +1 -1
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +11 -2
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +12 -6
- package/dist/api/resources/sites/resources/activityLogs/client/requests/index.d.ts +1 -1
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +31 -13
- package/dist/api/resources/sites/resources/scripts/client/Client.js +41 -23
- package/dist/api/resources/sites/resources/scripts/client/requests/index.d.ts +1 -1
- package/dist/api/resources/token/client/Client.d.ts +14 -4
- package/dist/api/resources/token/client/Client.js +16 -8
- package/dist/api/resources/users/client/Client.d.ts +38 -8
- package/dist/api/resources/users/client/Client.js +51 -20
- package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -1
- package/dist/api/resources/users/client/requests/UsersListRequest.d.ts +1 -1
- package/dist/api/resources/users/client/requests/UsersUpdateRequest.d.ts +2 -2
- package/dist/api/resources/users/client/requests/index.d.ts +3 -3
- package/dist/api/resources/webhooks/client/Client.d.ts +27 -6
- package/dist/api/resources/webhooks/client/Client.js +37 -16
- package/dist/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +1 -1
- package/dist/api/resources/webhooks/client/requests/index.d.ts +1 -1
- package/dist/api/types/AccessGroupList.d.ts +1 -1
- package/dist/api/types/Asset.d.ts +1 -1
- package/dist/api/types/AssetFolderList.d.ts +1 -1
- package/dist/api/types/AssetUpload.d.ts +1 -1
- package/dist/api/types/Assets.d.ts +1 -1
- package/dist/api/types/Authorization.d.ts +1 -1
- package/dist/api/types/AuthorizationAuthorization.d.ts +1 -1
- package/dist/api/types/BadRequestErrorBody.d.ts +5 -0
- package/dist/api/types/BadRequestErrorBody.js +5 -0
- package/dist/api/types/Collection.d.ts +2 -1
- package/dist/api/types/CollectionItem.d.ts +1 -1
- package/dist/api/types/CollectionItemList.d.ts +1 -1
- package/dist/api/types/CollectionList.d.ts +1 -1
- package/dist/api/types/ConflictErrorBody.d.ts +5 -0
- package/dist/api/types/ConflictErrorBody.js +5 -0
- package/dist/api/types/CustomCodeBlock.d.ts +1 -1
- package/dist/api/types/CustomCodeHostedResponse.d.ts +1 -1
- package/dist/api/types/CustomCodeInlineResponse.d.ts +1 -1
- package/dist/api/types/Dom.d.ts +1 -1
- package/dist/api/types/Domains.d.ts +1 -1
- package/dist/api/types/DuplicateUserEmail.d.ts +2 -11
- package/dist/api/types/Error_.d.ts +1 -1
- package/dist/api/types/Field.d.ts +1 -1
- package/dist/api/types/FieldType.d.ts +2 -2
- package/dist/api/types/FieldType.js +1 -1
- package/dist/api/types/ForbiddenErrorBody.d.ts +10 -0
- package/dist/api/types/ForbiddenErrorBody.js +5 -0
- package/dist/api/types/Form.d.ts +1 -1
- package/dist/api/types/FormField.d.ts +1 -1
- package/dist/api/types/FormFieldValue.d.ts +1 -1
- package/dist/api/types/FormList.d.ts +1 -1
- package/dist/api/types/FormSubmissionList.d.ts +1 -1
- package/dist/api/types/InventoryItem.d.ts +1 -1
- package/dist/api/types/ListCustomCodeBlocks.d.ts +1 -1
- package/dist/api/types/Locales.d.ts +1 -1
- package/dist/api/types/MissingScopes.d.ts +2 -11
- package/dist/api/types/Node.d.ts +1 -1
- package/dist/api/types/NotEnterprisePlanSite.d.ts +2 -11
- package/dist/api/types/OauthScope.d.ts +9 -1
- package/dist/api/types/OauthScope.js +2 -0
- package/dist/api/types/Order.d.ts +1 -1
- package/dist/api/types/OrderAddress.d.ts +1 -1
- package/dist/api/types/OrderList.d.ts +1 -1
- package/dist/api/types/OrderPurchasedItem.d.ts +1 -1
- package/dist/api/types/OrderPurchasedItemVariantImage.d.ts +1 -1
- package/dist/api/types/OrderPurchasedItemVariantImageFile.d.ts +1 -1
- package/dist/api/types/OrderTotals.d.ts +1 -1
- package/dist/api/types/OrderTotalsExtrasItem.d.ts +1 -1
- package/dist/api/types/Page.d.ts +1 -1
- package/dist/api/types/PageDetails.d.ts +41 -0
- package/dist/api/types/PageDetails.js +5 -0
- package/dist/api/types/PageDetailsOpenGraph.d.ts +16 -0
- package/dist/api/types/PageDetailsOpenGraph.js +5 -0
- package/dist/api/types/PageDetailsSeo.d.ts +12 -0
- package/dist/api/types/PageDetailsSeo.js +5 -0
- package/dist/api/types/PageList.d.ts +1 -1
- package/dist/api/types/Product.d.ts +1 -1
- package/dist/api/types/ProductAndSkUs.d.ts +1 -1
- package/dist/api/types/ProductAndSkUsList.d.ts +1 -1
- package/dist/api/types/ProductFieldData.d.ts +1 -1
- package/dist/api/types/RegisteredScriptList.d.ts +1 -1
- package/dist/api/types/ScriptApply.d.ts +1 -1
- package/dist/api/types/ScriptApplyList.d.ts +1 -1
- package/dist/api/types/Scripts.d.ts +1 -1
- package/dist/api/types/Site.d.ts +1 -1
- package/dist/api/types/SiteActivityLogItem.d.ts +1 -1
- package/dist/api/types/SiteActivityLogResponse.d.ts +1 -1
- package/dist/api/types/Sites.d.ts +1 -1
- package/dist/api/types/Sku.d.ts +1 -1
- package/dist/api/types/SkuFieldData.d.ts +1 -1
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -1
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +2 -1
- package/dist/api/types/SkuPropertyList.d.ts +1 -1
- package/dist/api/types/StripeCard.d.ts +1 -1
- package/dist/api/types/User.d.ts +1 -1
- package/dist/api/types/UserAccessGroupsItem.d.ts +1 -1
- package/dist/api/types/UserData.d.ts +1 -1
- package/dist/api/types/UserLimitReached.d.ts +2 -11
- package/dist/api/types/UserList.d.ts +1 -1
- package/dist/api/types/UsersNotEnabled.d.ts +2 -11
- package/dist/api/types/Webhook.d.ts +1 -1
- package/dist/api/types/WebhookList.d.ts +1 -1
- package/dist/api/types/index.d.ts +6 -0
- package/dist/api/types/index.js +6 -0
- package/dist/core/fetcher/Fetcher.d.ts +2 -1
- package/dist/core/fetcher/Fetcher.js +126 -19
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +11 -1
- package/dist/core/schemas/builders/object/object.js +11 -15
- package/dist/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +2 -2
- package/dist/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.d.ts +2 -2
- package/dist/serialization/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -2
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +2 -2
- package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +4 -3
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js +2 -10
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +3 -3
- package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.js +1 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +4 -3
- package/dist/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.js +2 -12
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +2 -2
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +10 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +31 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +10 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +31 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +10 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +31 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +10 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +31 -0
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +4 -0
- package/dist/serialization/resources/collections/resources/items/types/index.js +4 -0
- package/dist/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.d.ts +2 -2
- package/dist/serialization/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +4 -3
- package/dist/serialization/resources/inventory/client/requests/InventoryUpdateRequest.js +2 -10
- package/dist/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.d.ts +2 -2
- package/dist/serialization/resources/orders/client/requests/OrdersRefundRequest.d.ts +4 -3
- package/dist/serialization/resources/orders/client/requests/OrdersRefundRequest.js +2 -10
- package/dist/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.d.ts +2 -2
- package/dist/serialization/resources/orders/client/requests/OrdersUpdateRequest.d.ts +2 -2
- package/dist/serialization/resources/orders/types/OrdersListRequestStatus.d.ts +10 -0
- package/dist/serialization/resources/orders/types/OrdersListRequestStatus.js +31 -0
- package/dist/serialization/resources/orders/types/OrdersRefundRequestReason.d.ts +2 -2
- package/dist/serialization/resources/orders/types/index.d.ts +1 -0
- package/dist/serialization/resources/orders/types/index.js +1 -0
- package/dist/serialization/resources/pages/client/requests/DomWrite.d.ts +4 -3
- package/dist/serialization/resources/pages/client/requests/DomWrite.js +2 -10
- package/dist/serialization/resources/pages/types/DomWriteNodesItem.d.ts +2 -2
- package/dist/serialization/resources/pages/types/UpdateStaticContentResponse.d.ts +2 -2
- package/dist/serialization/resources/products/client/requests/ProductSkuCreate.d.ts +8 -5
- package/dist/serialization/resources/products/client/requests/ProductSkuCreate.js +6 -12
- package/dist/serialization/resources/products/client/requests/ProductSkuUpdate.d.ts +8 -5
- package/dist/serialization/resources/products/client/requests/ProductSkuUpdate.js +6 -12
- package/dist/serialization/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +6 -4
- package/dist/serialization/resources/products/client/requests/ProductsCreateSkuRequest.js +4 -11
- package/dist/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +6 -4
- package/dist/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.js +4 -11
- package/dist/serialization/resources/products/types/ProductsCreateSkuResponse.d.ts +4 -3
- package/dist/serialization/resources/products/types/ProductsCreateSkuResponse.js +2 -10
- package/dist/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +2 -2
- package/dist/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +2 -2
- package/dist/serialization/resources/sites/client/requests/SitesPublishRequest.d.ts +2 -2
- package/dist/serialization/resources/users/client/requests/UsersInviteRequest.d.ts +2 -2
- package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +4 -3
- package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.js +2 -10
- package/dist/serialization/resources/users/types/UsersListRequestSort.d.ts +2 -2
- package/dist/serialization/resources/users/types/UsersUpdateRequestData.d.ts +2 -2
- package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +4 -3
- package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js +2 -10
- package/dist/serialization/types/AccessGroup.d.ts +2 -2
- package/dist/serialization/types/AccessGroupList.d.ts +4 -3
- package/dist/serialization/types/AccessGroupList.js +2 -12
- package/dist/serialization/types/Application.d.ts +2 -2
- package/dist/serialization/types/Asset.d.ts +4 -3
- package/dist/serialization/types/Asset.js +2 -12
- package/dist/serialization/types/AssetFolder.d.ts +2 -2
- package/dist/serialization/types/AssetFolderList.d.ts +6 -4
- package/dist/serialization/types/AssetFolderList.js +4 -13
- package/dist/serialization/types/AssetUpload.d.ts +4 -3
- package/dist/serialization/types/AssetUpload.js +2 -12
- package/dist/serialization/types/AssetUploadUploadDetails.d.ts +2 -2
- package/dist/serialization/types/AssetVariant.d.ts +2 -2
- package/dist/serialization/types/Assets.d.ts +4 -3
- package/dist/serialization/types/Assets.js +2 -12
- package/dist/serialization/types/Authorization.d.ts +6 -4
- package/dist/serialization/types/Authorization.js +4 -13
- package/dist/serialization/types/AuthorizationAuthorization.d.ts +4 -3
- package/dist/serialization/types/AuthorizationAuthorization.js +2 -12
- package/dist/serialization/types/AuthorizationAuthorizationAuthorizedTo.d.ts +2 -2
- package/dist/serialization/types/AuthorizedUser.d.ts +2 -2
- package/dist/serialization/types/BadRequestErrorBody.d.ts +12 -0
- package/dist/serialization/types/BadRequestErrorBody.js +33 -0
- package/dist/serialization/types/Collection.d.ts +4 -3
- package/dist/serialization/types/Collection.js +2 -1
- package/dist/serialization/types/CollectionItem.d.ts +4 -3
- package/dist/serialization/types/CollectionItem.js +2 -10
- package/dist/serialization/types/CollectionItemFieldData.d.ts +2 -2
- package/dist/serialization/types/CollectionItemList.d.ts +6 -4
- package/dist/serialization/types/CollectionItemList.js +4 -13
- package/dist/serialization/types/CollectionItemListPagination.d.ts +2 -2
- package/dist/serialization/types/CollectionList.d.ts +4 -3
- package/dist/serialization/types/CollectionList.js +2 -12
- package/dist/serialization/types/CollectionListArrayItem.d.ts +2 -2
- package/dist/serialization/types/ConflictErrorBody.d.ts +12 -0
- package/dist/serialization/types/ConflictErrorBody.js +33 -0
- package/dist/serialization/types/CustomCodeBlock.d.ts +6 -4
- package/dist/serialization/types/CustomCodeBlock.js +4 -11
- package/dist/serialization/types/CustomCodeBlockType.d.ts +2 -2
- package/dist/serialization/types/CustomCodeHostedResponse.d.ts +2 -2
- package/dist/serialization/types/CustomCodeInlineResponse.d.ts +2 -2
- package/dist/serialization/types/Dom.d.ts +6 -4
- package/dist/serialization/types/Dom.js +4 -11
- package/dist/serialization/types/Domain.d.ts +2 -2
- package/dist/serialization/types/Domains.d.ts +4 -3
- package/dist/serialization/types/Domains.js +2 -12
- package/dist/serialization/types/DuplicateUserEmail.d.ts +4 -8
- package/dist/serialization/types/DuplicateUserEmail.js +2 -41
- package/dist/serialization/types/EcommerceSettings.d.ts +2 -2
- package/dist/serialization/types/ErrorDetailsItem.d.ts +2 -2
- package/dist/serialization/types/Error_.d.ts +4 -3
- package/dist/serialization/types/Error_.js +2 -12
- package/dist/serialization/types/Field.d.ts +4 -3
- package/dist/serialization/types/Field.js +2 -10
- package/dist/serialization/types/FieldType.d.ts +3 -3
- package/dist/serialization/types/FieldType.js +1 -1
- package/dist/serialization/types/ForbiddenErrorBody.d.ts +16 -0
- package/dist/serialization/types/ForbiddenErrorBody.js +37 -0
- package/dist/serialization/types/Form.d.ts +6 -4
- package/dist/serialization/types/Form.js +4 -11
- package/dist/serialization/types/FormField.d.ts +4 -3
- package/dist/serialization/types/FormField.js +2 -10
- package/dist/serialization/types/FormFieldValue.d.ts +4 -3
- package/dist/serialization/types/FormFieldValue.js +2 -10
- package/dist/serialization/types/FormFieldValueType.d.ts +2 -2
- package/dist/serialization/types/FormList.d.ts +6 -4
- package/dist/serialization/types/FormList.js +4 -11
- package/dist/serialization/types/FormResponseSettings.d.ts +2 -2
- package/dist/serialization/types/FormSubmission.d.ts +2 -2
- package/dist/serialization/types/FormSubmissionList.d.ts +6 -4
- package/dist/serialization/types/FormSubmissionList.js +4 -13
- package/dist/serialization/types/ImageNode.d.ts +2 -2
- package/dist/serialization/types/InvalidDomain.d.ts +2 -2
- package/dist/serialization/types/InventoryItem.d.ts +4 -3
- package/dist/serialization/types/InventoryItem.js +2 -10
- package/dist/serialization/types/InventoryItemInventoryType.d.ts +2 -2
- package/dist/serialization/types/ListCustomCodeBlocks.d.ts +6 -4
- package/dist/serialization/types/ListCustomCodeBlocks.js +4 -13
- package/dist/serialization/types/Locale.d.ts +2 -2
- package/dist/serialization/types/Locales.d.ts +5 -4
- package/dist/serialization/types/Locales.js +3 -13
- package/dist/serialization/types/MissingScopes.d.ts +4 -9
- package/dist/serialization/types/MissingScopes.js +2 -42
- package/dist/serialization/types/NoDomains.d.ts +2 -2
- package/dist/serialization/types/Node.d.ts +8 -5
- package/dist/serialization/types/Node.js +6 -12
- package/dist/serialization/types/NodeType.d.ts +2 -2
- package/dist/serialization/types/NotEnterprisePlanSite.d.ts +4 -9
- package/dist/serialization/types/NotEnterprisePlanSite.js +2 -42
- package/dist/serialization/types/OauthScope.d.ts +3 -3
- package/dist/serialization/types/OauthScope.js +2 -0
- package/dist/serialization/types/Order.d.ts +30 -18
- package/dist/serialization/types/Order.js +28 -31
- package/dist/serialization/types/OrderAddress.d.ts +6 -4
- package/dist/serialization/types/OrderAddress.js +4 -11
- package/dist/serialization/types/OrderAddressJapanType.d.ts +2 -2
- package/dist/serialization/types/OrderAddressType.d.ts +2 -2
- package/dist/serialization/types/OrderCustomerInfo.d.ts +2 -2
- package/dist/serialization/types/OrderDisputeLastStatus.d.ts +2 -2
- package/dist/serialization/types/OrderDownloadFilesItem.d.ts +2 -2
- package/dist/serialization/types/OrderList.d.ts +6 -4
- package/dist/serialization/types/OrderList.js +4 -13
- package/dist/serialization/types/OrderMetadata.d.ts +2 -2
- package/dist/serialization/types/OrderPrice.d.ts +2 -2
- package/dist/serialization/types/OrderPurchasedItem.d.ts +7 -5
- package/dist/serialization/types/OrderPurchasedItem.js +5 -14
- package/dist/serialization/types/OrderPurchasedItemVariantImage.d.ts +4 -3
- package/dist/serialization/types/OrderPurchasedItemVariantImage.js +2 -10
- package/dist/serialization/types/OrderPurchasedItemVariantImageFile.d.ts +4 -3
- package/dist/serialization/types/OrderPurchasedItemVariantImageFile.js +2 -12
- package/dist/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.d.ts +2 -2
- package/dist/serialization/types/OrderStatus.d.ts +2 -2
- package/dist/serialization/types/OrderTotals.d.ts +7 -5
- package/dist/serialization/types/OrderTotals.js +5 -14
- package/dist/serialization/types/OrderTotalsExtrasItem.d.ts +6 -4
- package/dist/serialization/types/OrderTotalsExtrasItem.js +4 -11
- package/dist/serialization/types/OrderTotalsExtrasItemType.d.ts +2 -2
- package/dist/serialization/types/Page.d.ts +6 -4
- package/dist/serialization/types/Page.js +4 -11
- package/dist/serialization/types/PageDetails.d.ts +29 -0
- package/dist/serialization/types/PageDetails.js +50 -0
- package/dist/serialization/types/PageDetailsOpenGraph.d.ts +15 -0
- package/dist/serialization/types/PageDetailsOpenGraph.js +36 -0
- package/dist/serialization/types/PageDetailsSeo.d.ts +13 -0
- package/dist/serialization/types/PageDetailsSeo.js +34 -0
- package/dist/serialization/types/PageList.d.ts +6 -4
- package/dist/serialization/types/PageList.js +4 -11
- package/dist/serialization/types/PageOpenGraph.d.ts +2 -2
- package/dist/serialization/types/PageSeo.d.ts +2 -2
- package/dist/serialization/types/Pagination.d.ts +2 -2
- package/dist/serialization/types/PaypalDetails.d.ts +2 -2
- package/dist/serialization/types/Product.d.ts +4 -3
- package/dist/serialization/types/Product.js +2 -10
- package/dist/serialization/types/ProductAndSkUs.d.ts +6 -4
- package/dist/serialization/types/ProductAndSkUs.js +4 -11
- package/dist/serialization/types/ProductAndSkUsList.d.ts +6 -4
- package/dist/serialization/types/ProductAndSkUsList.js +4 -13
- package/dist/serialization/types/ProductFieldData.d.ts +8 -5
- package/dist/serialization/types/ProductFieldData.js +6 -14
- package/dist/serialization/types/ProductFieldDataEcProductType.d.ts +2 -2
- package/dist/serialization/types/ProductFieldDataTaxCategory.d.ts +2 -2
- package/dist/serialization/types/PublishStatus.d.ts +2 -2
- package/dist/serialization/types/RegisteredScriptList.d.ts +4 -3
- package/dist/serialization/types/RegisteredScriptList.js +2 -12
- package/dist/serialization/types/ScriptApply.d.ts +4 -3
- package/dist/serialization/types/ScriptApply.js +2 -10
- package/dist/serialization/types/ScriptApplyList.d.ts +4 -3
- package/dist/serialization/types/ScriptApplyList.js +2 -12
- package/dist/serialization/types/ScriptApplyLocation.d.ts +2 -2
- package/dist/serialization/types/Scripts.d.ts +4 -3
- package/dist/serialization/types/Scripts.js +2 -10
- package/dist/serialization/types/Site.d.ts +6 -4
- package/dist/serialization/types/Site.js +4 -13
- package/dist/serialization/types/SiteActivityLogItem.d.ts +6 -4
- package/dist/serialization/types/SiteActivityLogItem.js +4 -13
- package/dist/serialization/types/SiteActivityLogItemResourceOperation.d.ts +2 -2
- package/dist/serialization/types/SiteActivityLogItemUser.d.ts +2 -2
- package/dist/serialization/types/SiteActivityLogResponse.d.ts +6 -4
- package/dist/serialization/types/SiteActivityLogResponse.js +4 -13
- package/dist/serialization/types/Sites.d.ts +4 -3
- package/dist/serialization/types/Sites.js +2 -10
- package/dist/serialization/types/Sku.d.ts +4 -3
- package/dist/serialization/types/Sku.js +2 -10
- package/dist/serialization/types/SkuFieldData.d.ts +12 -7
- package/dist/serialization/types/SkuFieldData.js +10 -14
- package/dist/serialization/types/SkuFieldDataCompareAtPrice.d.ts +2 -2
- package/dist/serialization/types/SkuFieldDataEcSkuBillingMethod.d.ts +2 -2
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +6 -4
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +4 -15
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +2 -2
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +4 -3
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js +2 -12
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +2 -2
- package/dist/serialization/types/SkuFieldDataPrice.d.ts +2 -2
- package/dist/serialization/types/SkuPropertyList.d.ts +4 -3
- package/dist/serialization/types/SkuPropertyList.js +2 -10
- package/dist/serialization/types/SkuPropertyListEnumItem.d.ts +2 -2
- package/dist/serialization/types/SkuValueList.d.ts +2 -2
- package/dist/serialization/types/StripeCard.d.ts +6 -4
- package/dist/serialization/types/StripeCard.js +4 -11
- package/dist/serialization/types/StripeCardBrand.d.ts +2 -2
- package/dist/serialization/types/StripeCardExpires.d.ts +2 -2
- package/dist/serialization/types/StripeDetails.d.ts +2 -2
- package/dist/serialization/types/TextNode.d.ts +2 -2
- package/dist/serialization/types/TriggerType.d.ts +2 -2
- package/dist/serialization/types/User.d.ts +8 -5
- package/dist/serialization/types/User.js +6 -14
- package/dist/serialization/types/UserAccessGroupsItem.d.ts +4 -3
- package/dist/serialization/types/UserAccessGroupsItem.js +2 -10
- package/dist/serialization/types/UserAccessGroupsItemType.d.ts +2 -2
- package/dist/serialization/types/UserData.d.ts +4 -3
- package/dist/serialization/types/UserData.js +2 -10
- package/dist/serialization/types/UserDataData.d.ts +2 -2
- package/dist/serialization/types/UserLimitReached.d.ts +4 -8
- package/dist/serialization/types/UserLimitReached.js +2 -41
- package/dist/serialization/types/UserList.d.ts +4 -3
- package/dist/serialization/types/UserList.js +2 -10
- package/dist/serialization/types/UserStatus.d.ts +2 -2
- package/dist/serialization/types/UsersNotEnabled.d.ts +4 -8
- package/dist/serialization/types/UsersNotEnabled.js +2 -41
- package/dist/serialization/types/Webhook.d.ts +4 -3
- package/dist/serialization/types/Webhook.js +2 -10
- package/dist/serialization/types/WebhookList.d.ts +6 -4
- package/dist/serialization/types/WebhookList.js +4 -13
- package/dist/serialization/types/index.d.ts +6 -0
- package/dist/serialization/types/index.js +6 -0
- package/jest.config.js +2 -2
- package/package.json +13 -6
- package/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +2 -2
- package/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.d.ts +2 -2
- package/serialization/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -2
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +2 -2
- package/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -2
- package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +4 -3
- package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js +2 -10
- package/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +2 -2
- package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +3 -3
- package/serialization/resources/collections/resources/fields/types/FieldCreateType.js +1 -1
- package/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +4 -3
- package/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.js +2 -12
- package/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +2 -2
- package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +2 -2
- package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +10 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +31 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +10 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +31 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +10 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +31 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +10 -0
- package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +31 -0
- package/serialization/resources/collections/resources/items/types/index.d.ts +4 -0
- package/serialization/resources/collections/resources/items/types/index.js +4 -0
- package/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.d.ts +2 -2
- package/serialization/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +4 -3
- package/serialization/resources/inventory/client/requests/InventoryUpdateRequest.js +2 -10
- package/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.d.ts +2 -2
- package/serialization/resources/orders/client/requests/OrdersRefundRequest.d.ts +4 -3
- package/serialization/resources/orders/client/requests/OrdersRefundRequest.js +2 -10
- package/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.d.ts +2 -2
- package/serialization/resources/orders/client/requests/OrdersUpdateRequest.d.ts +2 -2
- package/serialization/resources/orders/types/OrdersListRequestStatus.d.ts +10 -0
- package/serialization/resources/orders/types/OrdersListRequestStatus.js +31 -0
- package/serialization/resources/orders/types/OrdersRefundRequestReason.d.ts +2 -2
- package/serialization/resources/orders/types/index.d.ts +1 -0
- package/serialization/resources/orders/types/index.js +1 -0
- package/serialization/resources/pages/client/requests/DomWrite.d.ts +4 -3
- package/serialization/resources/pages/client/requests/DomWrite.js +2 -10
- package/serialization/resources/pages/types/DomWriteNodesItem.d.ts +2 -2
- package/serialization/resources/pages/types/UpdateStaticContentResponse.d.ts +2 -2
- package/serialization/resources/products/client/requests/ProductSkuCreate.d.ts +8 -5
- package/serialization/resources/products/client/requests/ProductSkuCreate.js +6 -12
- package/serialization/resources/products/client/requests/ProductSkuUpdate.d.ts +8 -5
- package/serialization/resources/products/client/requests/ProductSkuUpdate.js +6 -12
- package/serialization/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +6 -4
- package/serialization/resources/products/client/requests/ProductsCreateSkuRequest.js +4 -11
- package/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +6 -4
- package/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.js +4 -11
- package/serialization/resources/products/types/ProductsCreateSkuResponse.d.ts +4 -3
- package/serialization/resources/products/types/ProductsCreateSkuResponse.js +2 -10
- package/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +2 -2
- package/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +2 -2
- package/serialization/resources/sites/client/requests/SitesPublishRequest.d.ts +2 -2
- package/serialization/resources/users/client/requests/UsersInviteRequest.d.ts +2 -2
- package/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +4 -3
- package/serialization/resources/users/client/requests/UsersUpdateRequest.js +2 -10
- package/serialization/resources/users/types/UsersListRequestSort.d.ts +2 -2
- package/serialization/resources/users/types/UsersUpdateRequestData.d.ts +2 -2
- package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +4 -3
- package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js +2 -10
- package/serialization/types/AccessGroup.d.ts +2 -2
- package/serialization/types/AccessGroupList.d.ts +4 -3
- package/serialization/types/AccessGroupList.js +2 -12
- package/serialization/types/Application.d.ts +2 -2
- package/serialization/types/Asset.d.ts +4 -3
- package/serialization/types/Asset.js +2 -12
- package/serialization/types/AssetFolder.d.ts +2 -2
- package/serialization/types/AssetFolderList.d.ts +6 -4
- package/serialization/types/AssetFolderList.js +4 -13
- package/serialization/types/AssetUpload.d.ts +4 -3
- package/serialization/types/AssetUpload.js +2 -12
- package/serialization/types/AssetUploadUploadDetails.d.ts +2 -2
- package/serialization/types/AssetVariant.d.ts +2 -2
- package/serialization/types/Assets.d.ts +4 -3
- package/serialization/types/Assets.js +2 -12
- package/serialization/types/Authorization.d.ts +6 -4
- package/serialization/types/Authorization.js +4 -13
- package/serialization/types/AuthorizationAuthorization.d.ts +4 -3
- package/serialization/types/AuthorizationAuthorization.js +2 -12
- package/serialization/types/AuthorizationAuthorizationAuthorizedTo.d.ts +2 -2
- package/serialization/types/AuthorizedUser.d.ts +2 -2
- package/serialization/types/BadRequestErrorBody.d.ts +12 -0
- package/serialization/types/BadRequestErrorBody.js +33 -0
- package/serialization/types/Collection.d.ts +4 -3
- package/serialization/types/Collection.js +2 -1
- package/serialization/types/CollectionItem.d.ts +4 -3
- package/serialization/types/CollectionItem.js +2 -10
- package/serialization/types/CollectionItemFieldData.d.ts +2 -2
- package/serialization/types/CollectionItemList.d.ts +6 -4
- package/serialization/types/CollectionItemList.js +4 -13
- package/serialization/types/CollectionItemListPagination.d.ts +2 -2
- package/serialization/types/CollectionList.d.ts +4 -3
- package/serialization/types/CollectionList.js +2 -12
- package/serialization/types/CollectionListArrayItem.d.ts +2 -2
- package/serialization/types/ConflictErrorBody.d.ts +12 -0
- package/serialization/types/ConflictErrorBody.js +33 -0
- package/serialization/types/CustomCodeBlock.d.ts +6 -4
- package/serialization/types/CustomCodeBlock.js +4 -11
- package/serialization/types/CustomCodeBlockType.d.ts +2 -2
- package/serialization/types/CustomCodeHostedResponse.d.ts +2 -2
- package/serialization/types/CustomCodeInlineResponse.d.ts +2 -2
- package/serialization/types/Dom.d.ts +6 -4
- package/serialization/types/Dom.js +4 -11
- package/serialization/types/Domain.d.ts +2 -2
- package/serialization/types/Domains.d.ts +4 -3
- package/serialization/types/Domains.js +2 -12
- package/serialization/types/DuplicateUserEmail.d.ts +4 -8
- package/serialization/types/DuplicateUserEmail.js +2 -41
- package/serialization/types/EcommerceSettings.d.ts +2 -2
- package/serialization/types/ErrorDetailsItem.d.ts +2 -2
- package/serialization/types/Error_.d.ts +4 -3
- package/serialization/types/Error_.js +2 -12
- package/serialization/types/Field.d.ts +4 -3
- package/serialization/types/Field.js +2 -10
- package/serialization/types/FieldType.d.ts +3 -3
- package/serialization/types/FieldType.js +1 -1
- package/serialization/types/ForbiddenErrorBody.d.ts +16 -0
- package/serialization/types/ForbiddenErrorBody.js +37 -0
- package/serialization/types/Form.d.ts +6 -4
- package/serialization/types/Form.js +4 -11
- package/serialization/types/FormField.d.ts +4 -3
- package/serialization/types/FormField.js +2 -10
- package/serialization/types/FormFieldValue.d.ts +4 -3
- package/serialization/types/FormFieldValue.js +2 -10
- package/serialization/types/FormFieldValueType.d.ts +2 -2
- package/serialization/types/FormList.d.ts +6 -4
- package/serialization/types/FormList.js +4 -11
- package/serialization/types/FormResponseSettings.d.ts +2 -2
- package/serialization/types/FormSubmission.d.ts +2 -2
- package/serialization/types/FormSubmissionList.d.ts +6 -4
- package/serialization/types/FormSubmissionList.js +4 -13
- package/serialization/types/ImageNode.d.ts +2 -2
- package/serialization/types/InvalidDomain.d.ts +2 -2
- package/serialization/types/InventoryItem.d.ts +4 -3
- package/serialization/types/InventoryItem.js +2 -10
- package/serialization/types/InventoryItemInventoryType.d.ts +2 -2
- package/serialization/types/ListCustomCodeBlocks.d.ts +6 -4
- package/serialization/types/ListCustomCodeBlocks.js +4 -13
- package/serialization/types/Locale.d.ts +2 -2
- package/serialization/types/Locales.d.ts +5 -4
- package/serialization/types/Locales.js +3 -13
- package/serialization/types/MissingScopes.d.ts +4 -9
- package/serialization/types/MissingScopes.js +2 -42
- package/serialization/types/NoDomains.d.ts +2 -2
- package/serialization/types/Node.d.ts +8 -5
- package/serialization/types/Node.js +6 -12
- package/serialization/types/NodeType.d.ts +2 -2
- package/serialization/types/NotEnterprisePlanSite.d.ts +4 -9
- package/serialization/types/NotEnterprisePlanSite.js +2 -42
- package/serialization/types/OauthScope.d.ts +3 -3
- package/serialization/types/OauthScope.js +2 -0
- package/serialization/types/Order.d.ts +30 -18
- package/serialization/types/Order.js +28 -31
- package/serialization/types/OrderAddress.d.ts +6 -4
- package/serialization/types/OrderAddress.js +4 -11
- package/serialization/types/OrderAddressJapanType.d.ts +2 -2
- package/serialization/types/OrderAddressType.d.ts +2 -2
- package/serialization/types/OrderCustomerInfo.d.ts +2 -2
- package/serialization/types/OrderDisputeLastStatus.d.ts +2 -2
- package/serialization/types/OrderDownloadFilesItem.d.ts +2 -2
- package/serialization/types/OrderList.d.ts +6 -4
- package/serialization/types/OrderList.js +4 -13
- package/serialization/types/OrderMetadata.d.ts +2 -2
- package/serialization/types/OrderPrice.d.ts +2 -2
- package/serialization/types/OrderPurchasedItem.d.ts +7 -5
- package/serialization/types/OrderPurchasedItem.js +5 -14
- package/serialization/types/OrderPurchasedItemVariantImage.d.ts +4 -3
- package/serialization/types/OrderPurchasedItemVariantImage.js +2 -10
- package/serialization/types/OrderPurchasedItemVariantImageFile.d.ts +4 -3
- package/serialization/types/OrderPurchasedItemVariantImageFile.js +2 -12
- package/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.d.ts +2 -2
- package/serialization/types/OrderStatus.d.ts +2 -2
- package/serialization/types/OrderTotals.d.ts +7 -5
- package/serialization/types/OrderTotals.js +5 -14
- package/serialization/types/OrderTotalsExtrasItem.d.ts +6 -4
- package/serialization/types/OrderTotalsExtrasItem.js +4 -11
- package/serialization/types/OrderTotalsExtrasItemType.d.ts +2 -2
- package/serialization/types/Page.d.ts +6 -4
- package/serialization/types/Page.js +4 -11
- package/serialization/types/PageDetails.d.ts +29 -0
- package/serialization/types/PageDetails.js +50 -0
- package/serialization/types/PageDetailsOpenGraph.d.ts +15 -0
- package/serialization/types/PageDetailsOpenGraph.js +36 -0
- package/serialization/types/PageDetailsSeo.d.ts +13 -0
- package/serialization/types/PageDetailsSeo.js +34 -0
- package/serialization/types/PageList.d.ts +6 -4
- package/serialization/types/PageList.js +4 -11
- package/serialization/types/PageOpenGraph.d.ts +2 -2
- package/serialization/types/PageSeo.d.ts +2 -2
- package/serialization/types/Pagination.d.ts +2 -2
- package/serialization/types/PaypalDetails.d.ts +2 -2
- package/serialization/types/Product.d.ts +4 -3
- package/serialization/types/Product.js +2 -10
- package/serialization/types/ProductAndSkUs.d.ts +6 -4
- package/serialization/types/ProductAndSkUs.js +4 -11
- package/serialization/types/ProductAndSkUsList.d.ts +6 -4
- package/serialization/types/ProductAndSkUsList.js +4 -13
- package/serialization/types/ProductFieldData.d.ts +8 -5
- package/serialization/types/ProductFieldData.js +6 -14
- package/serialization/types/ProductFieldDataEcProductType.d.ts +2 -2
- package/serialization/types/ProductFieldDataTaxCategory.d.ts +2 -2
- package/serialization/types/PublishStatus.d.ts +2 -2
- package/serialization/types/RegisteredScriptList.d.ts +4 -3
- package/serialization/types/RegisteredScriptList.js +2 -12
- package/serialization/types/ScriptApply.d.ts +4 -3
- package/serialization/types/ScriptApply.js +2 -10
- package/serialization/types/ScriptApplyList.d.ts +4 -3
- package/serialization/types/ScriptApplyList.js +2 -12
- package/serialization/types/ScriptApplyLocation.d.ts +2 -2
- package/serialization/types/Scripts.d.ts +4 -3
- package/serialization/types/Scripts.js +2 -10
- package/serialization/types/Site.d.ts +6 -4
- package/serialization/types/Site.js +4 -13
- package/serialization/types/SiteActivityLogItem.d.ts +6 -4
- package/serialization/types/SiteActivityLogItem.js +4 -13
- package/serialization/types/SiteActivityLogItemResourceOperation.d.ts +2 -2
- package/serialization/types/SiteActivityLogItemUser.d.ts +2 -2
- package/serialization/types/SiteActivityLogResponse.d.ts +6 -4
- package/serialization/types/SiteActivityLogResponse.js +4 -13
- package/serialization/types/Sites.d.ts +4 -3
- package/serialization/types/Sites.js +2 -10
- package/serialization/types/Sku.d.ts +4 -3
- package/serialization/types/Sku.js +2 -10
- package/serialization/types/SkuFieldData.d.ts +12 -7
- package/serialization/types/SkuFieldData.js +10 -14
- package/serialization/types/SkuFieldDataCompareAtPrice.d.ts +2 -2
- package/serialization/types/SkuFieldDataEcSkuBillingMethod.d.ts +2 -2
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +6 -4
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +4 -15
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +2 -2
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +4 -3
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js +2 -12
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +2 -2
- package/serialization/types/SkuFieldDataPrice.d.ts +2 -2
- package/serialization/types/SkuPropertyList.d.ts +4 -3
- package/serialization/types/SkuPropertyList.js +2 -10
- package/serialization/types/SkuPropertyListEnumItem.d.ts +2 -2
- package/serialization/types/SkuValueList.d.ts +2 -2
- package/serialization/types/StripeCard.d.ts +6 -4
- package/serialization/types/StripeCard.js +4 -11
- package/serialization/types/StripeCardBrand.d.ts +2 -2
- package/serialization/types/StripeCardExpires.d.ts +2 -2
- package/serialization/types/StripeDetails.d.ts +2 -2
- package/serialization/types/TextNode.d.ts +2 -2
- package/serialization/types/TriggerType.d.ts +2 -2
- package/serialization/types/User.d.ts +8 -5
- package/serialization/types/User.js +6 -14
- package/serialization/types/UserAccessGroupsItem.d.ts +4 -3
- package/serialization/types/UserAccessGroupsItem.js +2 -10
- package/serialization/types/UserAccessGroupsItemType.d.ts +2 -2
- package/serialization/types/UserData.d.ts +4 -3
- package/serialization/types/UserData.js +2 -10
- package/serialization/types/UserDataData.d.ts +2 -2
- package/serialization/types/UserLimitReached.d.ts +4 -8
- package/serialization/types/UserLimitReached.js +2 -41
- package/serialization/types/UserList.d.ts +4 -3
- package/serialization/types/UserList.js +2 -10
- package/serialization/types/UserStatus.d.ts +2 -2
- package/serialization/types/UsersNotEnabled.d.ts +4 -8
- package/serialization/types/UsersNotEnabled.js +2 -41
- package/serialization/types/Webhook.d.ts +4 -3
- package/serialization/types/Webhook.js +2 -10
- package/serialization/types/WebhookList.d.ts +6 -4
- package/serialization/types/WebhookList.js +4 -13
- package/serialization/types/index.d.ts +6 -0
- package/serialization/types/index.js +6 -0
- package/tests/client.test.ts +0 -11
|
@@ -41,16 +41,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.5",
|
|
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, {
|
|
@@ -140,6 +153,11 @@ class Items {
|
|
|
140
153
|
}
|
|
141
154
|
/**
|
|
142
155
|
* 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 this endpoint.</a> </br></br> Required scope | `CMS:write`
|
|
156
|
+
*
|
|
157
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
158
|
+
* @param {Webflow.CollectionItem} request
|
|
159
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
160
|
+
*
|
|
143
161
|
* @throws {@link Webflow.BadRequestError}
|
|
144
162
|
* @throws {@link Webflow.UnauthorizedError}
|
|
145
163
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -147,7 +165,7 @@ class Items {
|
|
|
147
165
|
* @throws {@link Webflow.InternalServerError}
|
|
148
166
|
*
|
|
149
167
|
* @example
|
|
150
|
-
* await
|
|
168
|
+
* await client.collections.items.createItem("collection_id", {
|
|
151
169
|
* id: "42b720ef280c7a7a3be8cabe",
|
|
152
170
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
153
171
|
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
@@ -165,13 +183,13 @@ class Items {
|
|
|
165
183
|
var _a;
|
|
166
184
|
return __awaiter(this, void 0, void 0, function* () {
|
|
167
185
|
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`),
|
|
186
|
+
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
187
|
method: "POST",
|
|
170
188
|
headers: {
|
|
171
189
|
Authorization: yield this._getAuthorizationHeader(),
|
|
172
190
|
"X-Fern-Language": "JavaScript",
|
|
173
191
|
"X-Fern-SDK-Name": "webflow-api",
|
|
174
|
-
"X-Fern-SDK-Version": "2.3.
|
|
192
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
175
193
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
176
194
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
177
195
|
},
|
|
@@ -179,6 +197,7 @@ class Items {
|
|
|
179
197
|
body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
180
198
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
181
199
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
200
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
182
201
|
});
|
|
183
202
|
if (_response.ok) {
|
|
184
203
|
return;
|
|
@@ -217,8 +236,115 @@ class Items {
|
|
|
217
236
|
}
|
|
218
237
|
});
|
|
219
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* List of all live Items within a Collection. </br></br> Required scope | `CMS:read`
|
|
241
|
+
*
|
|
242
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
243
|
+
* @param {Webflow.collections.ItemsListItemsLiveRequest} request
|
|
244
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
245
|
+
*
|
|
246
|
+
* @throws {@link Webflow.BadRequestError}
|
|
247
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
248
|
+
* @throws {@link Webflow.NotFoundError}
|
|
249
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
250
|
+
* @throws {@link Webflow.InternalServerError}
|
|
251
|
+
*
|
|
252
|
+
* @example
|
|
253
|
+
* await client.collections.items.listItemsLive("collection_id")
|
|
254
|
+
*/
|
|
255
|
+
listItemsLive(collectionId, request = {}, requestOptions) {
|
|
256
|
+
var _a;
|
|
257
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
258
|
+
const { cmsLocaleId, offset, limit, name, slug, sortBy, sortOrder } = request;
|
|
259
|
+
const _queryParams = {};
|
|
260
|
+
if (cmsLocaleId != null) {
|
|
261
|
+
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
262
|
+
}
|
|
263
|
+
if (offset != null) {
|
|
264
|
+
_queryParams["offset"] = offset.toString();
|
|
265
|
+
}
|
|
266
|
+
if (limit != null) {
|
|
267
|
+
_queryParams["limit"] = limit.toString();
|
|
268
|
+
}
|
|
269
|
+
if (name != null) {
|
|
270
|
+
_queryParams["name"] = name;
|
|
271
|
+
}
|
|
272
|
+
if (slug != null) {
|
|
273
|
+
_queryParams["slug"] = slug;
|
|
274
|
+
}
|
|
275
|
+
if (sortBy != null) {
|
|
276
|
+
_queryParams["sortBy"] = sortBy;
|
|
277
|
+
}
|
|
278
|
+
if (sortOrder != null) {
|
|
279
|
+
_queryParams["sortOrder"] = sortOrder;
|
|
280
|
+
}
|
|
281
|
+
const _response = yield core.fetcher({
|
|
282
|
+
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`),
|
|
283
|
+
method: "GET",
|
|
284
|
+
headers: {
|
|
285
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
286
|
+
"X-Fern-Language": "JavaScript",
|
|
287
|
+
"X-Fern-SDK-Name": "webflow-api",
|
|
288
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
289
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
290
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
291
|
+
},
|
|
292
|
+
contentType: "application/json",
|
|
293
|
+
queryParameters: _queryParams,
|
|
294
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
295
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
296
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
297
|
+
});
|
|
298
|
+
if (_response.ok) {
|
|
299
|
+
return yield serializers.CollectionItemList.parseOrThrow(_response.body, {
|
|
300
|
+
unrecognizedObjectKeys: "passthrough",
|
|
301
|
+
allowUnrecognizedUnionMembers: true,
|
|
302
|
+
allowUnrecognizedEnumValues: true,
|
|
303
|
+
skipValidation: true,
|
|
304
|
+
breadcrumbsPrefix: ["response"],
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
if (_response.error.reason === "status-code") {
|
|
308
|
+
switch (_response.error.statusCode) {
|
|
309
|
+
case 400:
|
|
310
|
+
throw new Webflow.BadRequestError(_response.error.body);
|
|
311
|
+
case 401:
|
|
312
|
+
throw new Webflow.UnauthorizedError(_response.error.body);
|
|
313
|
+
case 404:
|
|
314
|
+
throw new Webflow.NotFoundError(_response.error.body);
|
|
315
|
+
case 429:
|
|
316
|
+
throw new Webflow.TooManyRequestsError(_response.error.body);
|
|
317
|
+
case 500:
|
|
318
|
+
throw new Webflow.InternalServerError(_response.error.body);
|
|
319
|
+
default:
|
|
320
|
+
throw new errors.WebflowError({
|
|
321
|
+
statusCode: _response.error.statusCode,
|
|
322
|
+
body: _response.error.body,
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
switch (_response.error.reason) {
|
|
327
|
+
case "non-json":
|
|
328
|
+
throw new errors.WebflowError({
|
|
329
|
+
statusCode: _response.error.statusCode,
|
|
330
|
+
body: _response.error.rawBody,
|
|
331
|
+
});
|
|
332
|
+
case "timeout":
|
|
333
|
+
throw new errors.WebflowTimeoutError();
|
|
334
|
+
case "unknown":
|
|
335
|
+
throw new errors.WebflowError({
|
|
336
|
+
message: _response.error.errorMessage,
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
}
|
|
220
341
|
/**
|
|
221
342
|
* 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`
|
|
343
|
+
*
|
|
344
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
345
|
+
* @param {Webflow.CollectionItem} request
|
|
346
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
347
|
+
*
|
|
222
348
|
* @throws {@link Webflow.BadRequestError}
|
|
223
349
|
* @throws {@link Webflow.UnauthorizedError}
|
|
224
350
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -226,7 +352,7 @@ class Items {
|
|
|
226
352
|
* @throws {@link Webflow.InternalServerError}
|
|
227
353
|
*
|
|
228
354
|
* @example
|
|
229
|
-
* await
|
|
355
|
+
* await client.collections.items.createItemLive("collection_id", {
|
|
230
356
|
* id: "42b720ef280c7a7a3be8cabe",
|
|
231
357
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
232
358
|
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
@@ -244,13 +370,13 @@ class Items {
|
|
|
244
370
|
var _a;
|
|
245
371
|
return __awaiter(this, void 0, void 0, function* () {
|
|
246
372
|
const _response = yield core.fetcher({
|
|
247
|
-
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`),
|
|
373
|
+
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`),
|
|
248
374
|
method: "POST",
|
|
249
375
|
headers: {
|
|
250
376
|
Authorization: yield this._getAuthorizationHeader(),
|
|
251
377
|
"X-Fern-Language": "JavaScript",
|
|
252
378
|
"X-Fern-SDK-Name": "webflow-api",
|
|
253
|
-
"X-Fern-SDK-Version": "2.3.
|
|
379
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
254
380
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
255
381
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
256
382
|
},
|
|
@@ -258,6 +384,7 @@ class Items {
|
|
|
258
384
|
body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
259
385
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
260
386
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
387
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
261
388
|
});
|
|
262
389
|
if (_response.ok) {
|
|
263
390
|
return;
|
|
@@ -298,6 +425,11 @@ class Items {
|
|
|
298
425
|
}
|
|
299
426
|
/**
|
|
300
427
|
* Create single Item in a Collection with multiple corresponding locales. </br></br> Required scope | `CMS:write`
|
|
428
|
+
*
|
|
429
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
430
|
+
* @param {Webflow.collections.BulkCollectionItem} request
|
|
431
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
432
|
+
*
|
|
301
433
|
* @throws {@link Webflow.BadRequestError}
|
|
302
434
|
* @throws {@link Webflow.UnauthorizedError}
|
|
303
435
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -305,27 +437,21 @@ class Items {
|
|
|
305
437
|
* @throws {@link Webflow.InternalServerError}
|
|
306
438
|
*
|
|
307
439
|
* @example
|
|
308
|
-
* await
|
|
309
|
-
* id: "580e64008c9a982ac9b8b754"
|
|
310
|
-
* lastUpdated: "2023-03-17T18:47:35.560Z",
|
|
311
|
-
* createdOn: "2023-03-17T18:47:35.560Z",
|
|
312
|
-
* fieldData: {
|
|
313
|
-
* name: "My new item",
|
|
314
|
-
* slug: "my-new-item"
|
|
315
|
-
* }
|
|
440
|
+
* await client.collections.items.createItemForMultipleLocales("collection_id", {
|
|
441
|
+
* id: "580e64008c9a982ac9b8b754"
|
|
316
442
|
* })
|
|
317
443
|
*/
|
|
318
444
|
createItemForMultipleLocales(collectionId, request, requestOptions) {
|
|
319
445
|
var _a;
|
|
320
446
|
return __awaiter(this, void 0, void 0, function* () {
|
|
321
447
|
const _response = yield core.fetcher({
|
|
322
|
-
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`),
|
|
448
|
+
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`),
|
|
323
449
|
method: "POST",
|
|
324
450
|
headers: {
|
|
325
451
|
Authorization: yield this._getAuthorizationHeader(),
|
|
326
452
|
"X-Fern-Language": "JavaScript",
|
|
327
453
|
"X-Fern-SDK-Name": "webflow-api",
|
|
328
|
-
"X-Fern-SDK-Version": "2.3.
|
|
454
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
329
455
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
330
456
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
331
457
|
},
|
|
@@ -335,6 +461,7 @@ class Items {
|
|
|
335
461
|
}),
|
|
336
462
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
337
463
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
464
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
338
465
|
});
|
|
339
466
|
if (_response.ok) {
|
|
340
467
|
return;
|
|
@@ -375,6 +502,12 @@ class Items {
|
|
|
375
502
|
}
|
|
376
503
|
/**
|
|
377
504
|
* Get details of a selected Collection Item. </br></br> Required scope | `CMS:read`
|
|
505
|
+
*
|
|
506
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
507
|
+
* @param {string} itemId - Unique identifier for an Item
|
|
508
|
+
* @param {Webflow.collections.ItemsGetItemRequest} request
|
|
509
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
510
|
+
*
|
|
378
511
|
* @throws {@link Webflow.BadRequestError}
|
|
379
512
|
* @throws {@link Webflow.UnauthorizedError}
|
|
380
513
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -382,7 +515,7 @@ class Items {
|
|
|
382
515
|
* @throws {@link Webflow.InternalServerError}
|
|
383
516
|
*
|
|
384
517
|
* @example
|
|
385
|
-
* await
|
|
518
|
+
* await client.collections.items.getItem("collection_id", "item_id")
|
|
386
519
|
*/
|
|
387
520
|
getItem(collectionId, itemId, request = {}, requestOptions) {
|
|
388
521
|
var _a;
|
|
@@ -393,13 +526,13 @@ class Items {
|
|
|
393
526
|
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
394
527
|
}
|
|
395
528
|
const _response = yield core.fetcher({
|
|
396
|
-
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}`),
|
|
529
|
+
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)}`),
|
|
397
530
|
method: "GET",
|
|
398
531
|
headers: {
|
|
399
532
|
Authorization: yield this._getAuthorizationHeader(),
|
|
400
533
|
"X-Fern-Language": "JavaScript",
|
|
401
534
|
"X-Fern-SDK-Name": "webflow-api",
|
|
402
|
-
"X-Fern-SDK-Version": "2.3.
|
|
535
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
403
536
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
404
537
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
405
538
|
},
|
|
@@ -407,6 +540,7 @@ class Items {
|
|
|
407
540
|
queryParameters: _queryParams,
|
|
408
541
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
409
542
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
543
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
410
544
|
});
|
|
411
545
|
if (_response.ok) {
|
|
412
546
|
return yield serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
@@ -453,6 +587,12 @@ class Items {
|
|
|
453
587
|
}
|
|
454
588
|
/**
|
|
455
589
|
* Delete an Item from a Collection. This endpoint does not currently support bulk deletion. </br></br> Required scope | `CMS:write`
|
|
590
|
+
*
|
|
591
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
592
|
+
* @param {string} itemId - Unique identifier for an Item
|
|
593
|
+
* @param {Webflow.collections.ItemsDeleteItemRequest} request
|
|
594
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
595
|
+
*
|
|
456
596
|
* @throws {@link Webflow.BadRequestError}
|
|
457
597
|
* @throws {@link Webflow.UnauthorizedError}
|
|
458
598
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -460,29 +600,24 @@ class Items {
|
|
|
460
600
|
* @throws {@link Webflow.InternalServerError}
|
|
461
601
|
*
|
|
462
602
|
* @example
|
|
463
|
-
* await
|
|
603
|
+
* await client.collections.items.deleteItem("collection_id", "item_id")
|
|
464
604
|
*/
|
|
465
605
|
deleteItem(collectionId, itemId, request = {}, requestOptions) {
|
|
466
606
|
var _a;
|
|
467
607
|
return __awaiter(this, void 0, void 0, function* () {
|
|
468
|
-
const {
|
|
608
|
+
const { cmsLocaleId } = request;
|
|
469
609
|
const _queryParams = {};
|
|
470
|
-
if (
|
|
471
|
-
|
|
472
|
-
_queryParams["cmsLocaleIds"] = cmsLocaleIds.map((item) => item);
|
|
473
|
-
}
|
|
474
|
-
else {
|
|
475
|
-
_queryParams["cmsLocaleIds"] = cmsLocaleIds;
|
|
476
|
-
}
|
|
610
|
+
if (cmsLocaleId != null) {
|
|
611
|
+
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
477
612
|
}
|
|
478
613
|
const _response = yield core.fetcher({
|
|
479
|
-
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}`),
|
|
614
|
+
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)}`),
|
|
480
615
|
method: "DELETE",
|
|
481
616
|
headers: {
|
|
482
617
|
Authorization: yield this._getAuthorizationHeader(),
|
|
483
618
|
"X-Fern-Language": "JavaScript",
|
|
484
619
|
"X-Fern-SDK-Name": "webflow-api",
|
|
485
|
-
"X-Fern-SDK-Version": "2.3.
|
|
620
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
486
621
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
487
622
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
488
623
|
},
|
|
@@ -490,6 +625,7 @@ class Items {
|
|
|
490
625
|
queryParameters: _queryParams,
|
|
491
626
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
492
627
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
628
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
493
629
|
});
|
|
494
630
|
if (_response.ok) {
|
|
495
631
|
return;
|
|
@@ -530,6 +666,12 @@ class Items {
|
|
|
530
666
|
}
|
|
531
667
|
/**
|
|
532
668
|
* Update a selected Item in a Collection. </br></br> Required scope | `CMS:write`
|
|
669
|
+
*
|
|
670
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
671
|
+
* @param {string} itemId - Unique identifier for an Item
|
|
672
|
+
* @param {Webflow.CollectionItem} request
|
|
673
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
674
|
+
*
|
|
533
675
|
* @throws {@link Webflow.BadRequestError}
|
|
534
676
|
* @throws {@link Webflow.UnauthorizedError}
|
|
535
677
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -537,7 +679,7 @@ class Items {
|
|
|
537
679
|
* @throws {@link Webflow.InternalServerError}
|
|
538
680
|
*
|
|
539
681
|
* @example
|
|
540
|
-
* await
|
|
682
|
+
* await client.collections.items.updateItem("collection_id", "item_id", {
|
|
541
683
|
* id: "42b720ef280c7a7a3be8cabe",
|
|
542
684
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
543
685
|
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
@@ -555,13 +697,13 @@ class Items {
|
|
|
555
697
|
var _a;
|
|
556
698
|
return __awaiter(this, void 0, void 0, function* () {
|
|
557
699
|
const _response = yield core.fetcher({
|
|
558
|
-
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}`),
|
|
700
|
+
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)}`),
|
|
559
701
|
method: "PATCH",
|
|
560
702
|
headers: {
|
|
561
703
|
Authorization: yield this._getAuthorizationHeader(),
|
|
562
704
|
"X-Fern-Language": "JavaScript",
|
|
563
705
|
"X-Fern-SDK-Name": "webflow-api",
|
|
564
|
-
"X-Fern-SDK-Version": "2.3.
|
|
706
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
565
707
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
566
708
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
567
709
|
},
|
|
@@ -569,6 +711,92 @@ class Items {
|
|
|
569
711
|
body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
570
712
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
571
713
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
714
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
715
|
+
});
|
|
716
|
+
if (_response.ok) {
|
|
717
|
+
return yield serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
718
|
+
unrecognizedObjectKeys: "passthrough",
|
|
719
|
+
allowUnrecognizedUnionMembers: true,
|
|
720
|
+
allowUnrecognizedEnumValues: true,
|
|
721
|
+
skipValidation: true,
|
|
722
|
+
breadcrumbsPrefix: ["response"],
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
if (_response.error.reason === "status-code") {
|
|
726
|
+
switch (_response.error.statusCode) {
|
|
727
|
+
case 400:
|
|
728
|
+
throw new Webflow.BadRequestError(_response.error.body);
|
|
729
|
+
case 401:
|
|
730
|
+
throw new Webflow.UnauthorizedError(_response.error.body);
|
|
731
|
+
case 404:
|
|
732
|
+
throw new Webflow.NotFoundError(_response.error.body);
|
|
733
|
+
case 429:
|
|
734
|
+
throw new Webflow.TooManyRequestsError(_response.error.body);
|
|
735
|
+
case 500:
|
|
736
|
+
throw new Webflow.InternalServerError(_response.error.body);
|
|
737
|
+
default:
|
|
738
|
+
throw new errors.WebflowError({
|
|
739
|
+
statusCode: _response.error.statusCode,
|
|
740
|
+
body: _response.error.body,
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
switch (_response.error.reason) {
|
|
745
|
+
case "non-json":
|
|
746
|
+
throw new errors.WebflowError({
|
|
747
|
+
statusCode: _response.error.statusCode,
|
|
748
|
+
body: _response.error.rawBody,
|
|
749
|
+
});
|
|
750
|
+
case "timeout":
|
|
751
|
+
throw new errors.WebflowTimeoutError();
|
|
752
|
+
case "unknown":
|
|
753
|
+
throw new errors.WebflowError({
|
|
754
|
+
message: _response.error.errorMessage,
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
});
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* Get details of a selected Collection live Item. </br></br> Required scope | `CMS:read`
|
|
761
|
+
*
|
|
762
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
763
|
+
* @param {string} itemId - Unique identifier for an Item
|
|
764
|
+
* @param {Webflow.collections.ItemsGetItemLiveRequest} request
|
|
765
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
766
|
+
*
|
|
767
|
+
* @throws {@link Webflow.BadRequestError}
|
|
768
|
+
* @throws {@link Webflow.UnauthorizedError}
|
|
769
|
+
* @throws {@link Webflow.NotFoundError}
|
|
770
|
+
* @throws {@link Webflow.TooManyRequestsError}
|
|
771
|
+
* @throws {@link Webflow.InternalServerError}
|
|
772
|
+
*
|
|
773
|
+
* @example
|
|
774
|
+
* await client.collections.items.getItemLive("collection_id", "item_id")
|
|
775
|
+
*/
|
|
776
|
+
getItemLive(collectionId, itemId, request = {}, requestOptions) {
|
|
777
|
+
var _a;
|
|
778
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
779
|
+
const { cmsLocaleId } = request;
|
|
780
|
+
const _queryParams = {};
|
|
781
|
+
if (cmsLocaleId != null) {
|
|
782
|
+
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
783
|
+
}
|
|
784
|
+
const _response = yield core.fetcher({
|
|
785
|
+
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`),
|
|
786
|
+
method: "GET",
|
|
787
|
+
headers: {
|
|
788
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
789
|
+
"X-Fern-Language": "JavaScript",
|
|
790
|
+
"X-Fern-SDK-Name": "webflow-api",
|
|
791
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
792
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
793
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
794
|
+
},
|
|
795
|
+
contentType: "application/json",
|
|
796
|
+
queryParameters: _queryParams,
|
|
797
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
798
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
799
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
572
800
|
});
|
|
573
801
|
if (_response.ok) {
|
|
574
802
|
return yield serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
@@ -614,7 +842,13 @@ class Items {
|
|
|
614
842
|
});
|
|
615
843
|
}
|
|
616
844
|
/**
|
|
617
|
-
*
|
|
845
|
+
* 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`
|
|
846
|
+
*
|
|
847
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
848
|
+
* @param {string} itemId - Unique identifier for an Item
|
|
849
|
+
* @param {Webflow.collections.ItemsDeleteItemLiveRequest} request
|
|
850
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
851
|
+
*
|
|
618
852
|
* @throws {@link Webflow.BadRequestError}
|
|
619
853
|
* @throws {@link Webflow.UnauthorizedError}
|
|
620
854
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -622,25 +856,32 @@ class Items {
|
|
|
622
856
|
* @throws {@link Webflow.InternalServerError}
|
|
623
857
|
*
|
|
624
858
|
* @example
|
|
625
|
-
* await
|
|
859
|
+
* await client.collections.items.deleteItemLive("collection_id", "item_id")
|
|
626
860
|
*/
|
|
627
|
-
deleteItemLive(collectionId, itemId, requestOptions) {
|
|
861
|
+
deleteItemLive(collectionId, itemId, request = {}, requestOptions) {
|
|
628
862
|
var _a;
|
|
629
863
|
return __awaiter(this, void 0, void 0, function* () {
|
|
864
|
+
const { cmsLocaleId } = request;
|
|
865
|
+
const _queryParams = {};
|
|
866
|
+
if (cmsLocaleId != null) {
|
|
867
|
+
_queryParams["cmsLocaleId"] = cmsLocaleId;
|
|
868
|
+
}
|
|
630
869
|
const _response = yield core.fetcher({
|
|
631
|
-
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`),
|
|
870
|
+
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`),
|
|
632
871
|
method: "DELETE",
|
|
633
872
|
headers: {
|
|
634
873
|
Authorization: yield this._getAuthorizationHeader(),
|
|
635
874
|
"X-Fern-Language": "JavaScript",
|
|
636
875
|
"X-Fern-SDK-Name": "webflow-api",
|
|
637
|
-
"X-Fern-SDK-Version": "2.3.
|
|
876
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
638
877
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
639
878
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
640
879
|
},
|
|
641
880
|
contentType: "application/json",
|
|
881
|
+
queryParameters: _queryParams,
|
|
642
882
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
643
883
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
884
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
644
885
|
});
|
|
645
886
|
if (_response.ok) {
|
|
646
887
|
return;
|
|
@@ -681,6 +922,12 @@ class Items {
|
|
|
681
922
|
}
|
|
682
923
|
/**
|
|
683
924
|
* 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`
|
|
925
|
+
*
|
|
926
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
927
|
+
* @param {string} itemId - Unique identifier for an Item
|
|
928
|
+
* @param {Webflow.CollectionItem} request
|
|
929
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
930
|
+
*
|
|
684
931
|
* @throws {@link Webflow.BadRequestError}
|
|
685
932
|
* @throws {@link Webflow.UnauthorizedError}
|
|
686
933
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -688,7 +935,7 @@ class Items {
|
|
|
688
935
|
* @throws {@link Webflow.InternalServerError}
|
|
689
936
|
*
|
|
690
937
|
* @example
|
|
691
|
-
* await
|
|
938
|
+
* await client.collections.items.updateItemLive("collection_id", "item_id", {
|
|
692
939
|
* id: "42b720ef280c7a7a3be8cabe",
|
|
693
940
|
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
694
941
|
* lastPublished: "2022-11-29T16:22:43.159Z",
|
|
@@ -706,13 +953,13 @@ class Items {
|
|
|
706
953
|
var _a;
|
|
707
954
|
return __awaiter(this, void 0, void 0, function* () {
|
|
708
955
|
const _response = yield core.fetcher({
|
|
709
|
-
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`),
|
|
956
|
+
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`),
|
|
710
957
|
method: "PATCH",
|
|
711
958
|
headers: {
|
|
712
959
|
Authorization: yield this._getAuthorizationHeader(),
|
|
713
960
|
"X-Fern-Language": "JavaScript",
|
|
714
961
|
"X-Fern-SDK-Name": "webflow-api",
|
|
715
|
-
"X-Fern-SDK-Version": "2.3.
|
|
962
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
716
963
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
717
964
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
718
965
|
},
|
|
@@ -720,6 +967,7 @@ class Items {
|
|
|
720
967
|
body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
721
968
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
722
969
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
970
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
723
971
|
});
|
|
724
972
|
if (_response.ok) {
|
|
725
973
|
return yield serializers.CollectionItem.parseOrThrow(_response.body, {
|
|
@@ -766,6 +1014,11 @@ class Items {
|
|
|
766
1014
|
}
|
|
767
1015
|
/**
|
|
768
1016
|
* Publish an item or multiple items. </br></br> Required scope | `cms:write`
|
|
1017
|
+
*
|
|
1018
|
+
* @param {string} collectionId - Unique identifier for a Collection
|
|
1019
|
+
* @param {Webflow.collections.ItemsPublishItemRequest} request
|
|
1020
|
+
* @param {Items.RequestOptions} requestOptions - Request-specific configuration.
|
|
1021
|
+
*
|
|
769
1022
|
* @throws {@link Webflow.BadRequestError}
|
|
770
1023
|
* @throws {@link Webflow.UnauthorizedError}
|
|
771
1024
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -773,7 +1026,7 @@ class Items {
|
|
|
773
1026
|
* @throws {@link Webflow.InternalServerError}
|
|
774
1027
|
*
|
|
775
1028
|
* @example
|
|
776
|
-
* await
|
|
1029
|
+
* await client.collections.items.publishItem("collection_id", {
|
|
777
1030
|
* itemIds: ["itemIds"]
|
|
778
1031
|
* })
|
|
779
1032
|
*/
|
|
@@ -781,13 +1034,13 @@ class Items {
|
|
|
781
1034
|
var _a;
|
|
782
1035
|
return __awaiter(this, void 0, void 0, function* () {
|
|
783
1036
|
const _response = yield core.fetcher({
|
|
784
|
-
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`),
|
|
1037
|
+
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`),
|
|
785
1038
|
method: "POST",
|
|
786
1039
|
headers: {
|
|
787
1040
|
Authorization: yield this._getAuthorizationHeader(),
|
|
788
1041
|
"X-Fern-Language": "JavaScript",
|
|
789
1042
|
"X-Fern-SDK-Name": "webflow-api",
|
|
790
|
-
"X-Fern-SDK-Version": "2.3.
|
|
1043
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
791
1044
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
792
1045
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
793
1046
|
},
|
|
@@ -797,6 +1050,7 @@ class Items {
|
|
|
797
1050
|
}),
|
|
798
1051
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
799
1052
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
1053
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
800
1054
|
});
|
|
801
1055
|
if (_response.ok) {
|
|
802
1056
|
return;
|