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
|
@@ -3,15 +3,19 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
import * as Webflow from "
|
|
6
|
+
import * as Webflow from "../../../index";
|
|
7
7
|
export declare namespace Products {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.WebflowEnvironment | string>;
|
|
10
10
|
accessToken: core.Supplier<core.BearerToken>;
|
|
11
11
|
}
|
|
12
12
|
interface RequestOptions {
|
|
13
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
14
|
timeoutInSeconds?: number;
|
|
15
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
14
16
|
maxRetries?: number;
|
|
17
|
+
/** A hook to abort the request. */
|
|
18
|
+
abortSignal?: AbortSignal;
|
|
15
19
|
}
|
|
16
20
|
}
|
|
17
21
|
export declare class Products {
|
|
@@ -21,6 +25,11 @@ export declare class Products {
|
|
|
21
25
|
* Retrieve all products for a site. Use `limit` and `offset` to page through all products with subsequent requests. All SKUs for each product will also be fetched and returned. The `limit`, `offset` and `total` values represent Products only and do not include any SKUs.
|
|
22
26
|
*
|
|
23
27
|
* Required scope | `ecommerce:read`
|
|
28
|
+
*
|
|
29
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
30
|
+
* @param {Webflow.ProductsListRequest} request
|
|
31
|
+
* @param {Products.RequestOptions} requestOptions - Request-specific configuration.
|
|
32
|
+
*
|
|
24
33
|
* @throws {@link Webflow.BadRequestError}
|
|
25
34
|
* @throws {@link Webflow.UnauthorizedError}
|
|
26
35
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -30,7 +39,7 @@ export declare class Products {
|
|
|
30
39
|
* @throws {@link Webflow.InternalServerError}
|
|
31
40
|
*
|
|
32
41
|
* @example
|
|
33
|
-
* await
|
|
42
|
+
* await client.products.list("site_id")
|
|
34
43
|
*/
|
|
35
44
|
list(siteId: string, request?: Webflow.ProductsListRequest, requestOptions?: Products.RequestOptions): Promise<Webflow.ProductAndSkUsList>;
|
|
36
45
|
/**
|
|
@@ -43,6 +52,11 @@ export declare class Products {
|
|
|
43
52
|
* Upon creation, the default product type will be `Advanced`. The product type is used to determine which Product and SKU fields are shown to users in the `Designer` and the `Editor`. Setting it to `Advanced` ensures that all Product and SKU fields will be shown.
|
|
44
53
|
*
|
|
45
54
|
* Required scope | `ecommerce:write`
|
|
55
|
+
*
|
|
56
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
57
|
+
* @param {Webflow.ProductSkuCreate} request
|
|
58
|
+
* @param {Products.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
|
+
*
|
|
46
60
|
* @throws {@link Webflow.BadRequestError}
|
|
47
61
|
* @throws {@link Webflow.UnauthorizedError}
|
|
48
62
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -52,38 +66,18 @@ export declare class Products {
|
|
|
52
66
|
* @throws {@link Webflow.InternalServerError}
|
|
53
67
|
*
|
|
54
68
|
* @example
|
|
55
|
-
* await
|
|
56
|
-
* product: {
|
|
57
|
-
* id: "660eb7a486d1d6e0412292d7",
|
|
58
|
-
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
59
|
-
* lastPublished: new Date("2024-04-04T14:24:19.000Z"),
|
|
60
|
-
* lastUpdated: new Date("2024-04-04T14:30:19.000Z"),
|
|
61
|
-
* createdOn: new Date("2024-04-04T14:22:28.000Z"),
|
|
62
|
-
* isArchived: false,
|
|
63
|
-
* isDraft: false,
|
|
64
|
-
* fieldData: {
|
|
65
|
-
* name: "T-Shirt",
|
|
66
|
-
* slug: "t-shirt",
|
|
67
|
-
* description: "A plain cotton t-shirt.",
|
|
68
|
-
* shippable: true,
|
|
69
|
-
* skuProperties: [{
|
|
70
|
-
* id: "Color",
|
|
71
|
-
* name: "Color",
|
|
72
|
-
* enum: [{
|
|
73
|
-
* id: "id",
|
|
74
|
-
* name: "name",
|
|
75
|
-
* slug: "slug"
|
|
76
|
-
* }]
|
|
77
|
-
* }]
|
|
78
|
-
* }
|
|
79
|
-
* }
|
|
80
|
-
* })
|
|
69
|
+
* await client.products.create("site_id")
|
|
81
70
|
*/
|
|
82
71
|
create(siteId: string, request?: Webflow.ProductSkuCreate, requestOptions?: Products.RequestOptions): Promise<Webflow.ProductAndSkUs>;
|
|
83
72
|
/**
|
|
84
73
|
* Retrieve a single product by its id. All of its SKUs will also be retrieved.
|
|
85
74
|
*
|
|
86
75
|
* Required scope | `ecommerce:read`
|
|
76
|
+
*
|
|
77
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
78
|
+
* @param {string} productId - Unique identifier for a Product
|
|
79
|
+
* @param {Products.RequestOptions} requestOptions - Request-specific configuration.
|
|
80
|
+
*
|
|
87
81
|
* @throws {@link Webflow.BadRequestError}
|
|
88
82
|
* @throws {@link Webflow.UnauthorizedError}
|
|
89
83
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -93,13 +87,19 @@ export declare class Products {
|
|
|
93
87
|
* @throws {@link Webflow.InternalServerError}
|
|
94
88
|
*
|
|
95
89
|
* @example
|
|
96
|
-
* await
|
|
90
|
+
* await client.products.get("site_id", "product_id")
|
|
97
91
|
*/
|
|
98
92
|
get(siteId: string, productId: string, requestOptions?: Products.RequestOptions): Promise<Webflow.ProductAndSkUs>;
|
|
99
93
|
/**
|
|
100
94
|
* Updating an existing Product will set the product type to `Advanced`. The product type is used to determine which Product and SKU fields are shown to users in the `Designer` and the `Editor`. Setting it to `Advanced` ensures that all Product and SKU fields will be shown. The product type can be edited in the `Designer` or the `Editor`.
|
|
101
95
|
*
|
|
102
96
|
* Required scope | `ecommerce:write`
|
|
97
|
+
*
|
|
98
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
99
|
+
* @param {string} productId - Unique identifier for a Product
|
|
100
|
+
* @param {Webflow.ProductSkuUpdate} request
|
|
101
|
+
* @param {Products.RequestOptions} requestOptions - Request-specific configuration.
|
|
102
|
+
*
|
|
103
103
|
* @throws {@link Webflow.BadRequestError}
|
|
104
104
|
* @throws {@link Webflow.UnauthorizedError}
|
|
105
105
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -109,32 +109,7 @@ export declare class Products {
|
|
|
109
109
|
* @throws {@link Webflow.InternalServerError}
|
|
110
110
|
*
|
|
111
111
|
* @example
|
|
112
|
-
* await
|
|
113
|
-
* product: {
|
|
114
|
-
* id: "660eb7a486d1d6e0412292d7",
|
|
115
|
-
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
116
|
-
* lastPublished: new Date("2024-04-04T14:24:19.000Z"),
|
|
117
|
-
* lastUpdated: new Date("2024-04-04T14:30:19.000Z"),
|
|
118
|
-
* createdOn: new Date("2024-04-04T14:22:28.000Z"),
|
|
119
|
-
* isArchived: false,
|
|
120
|
-
* isDraft: false,
|
|
121
|
-
* fieldData: {
|
|
122
|
-
* name: "T-Shirt",
|
|
123
|
-
* slug: "t-shirt",
|
|
124
|
-
* description: "A plain cotton t-shirt.",
|
|
125
|
-
* shippable: true,
|
|
126
|
-
* skuProperties: [{
|
|
127
|
-
* id: "Color",
|
|
128
|
-
* name: "Color",
|
|
129
|
-
* enum: [{
|
|
130
|
-
* id: "id",
|
|
131
|
-
* name: "name",
|
|
132
|
-
* slug: "slug"
|
|
133
|
-
* }]
|
|
134
|
-
* }]
|
|
135
|
-
* }
|
|
136
|
-
* }
|
|
137
|
-
* })
|
|
112
|
+
* await client.products.update("site_id", "product_id")
|
|
138
113
|
*/
|
|
139
114
|
update(siteId: string, productId: string, request?: Webflow.ProductSkuUpdate, requestOptions?: Products.RequestOptions): Promise<Webflow.Product>;
|
|
140
115
|
/**
|
|
@@ -143,6 +118,12 @@ export declare class Products {
|
|
|
143
118
|
* Creating additional SKUs will set the product type to `Advanced` for the product associated with the SKUs. The product type is used to determine which Product and SKU fields are shown to users in the `Designer` and the `Editor`. Setting it to `Advanced` ensures that all Product and SKU fields will be shown. The product type can be edited in the `Designer` or the `Editor`.
|
|
144
119
|
*
|
|
145
120
|
* Required scope | `ecommerce:write`
|
|
121
|
+
*
|
|
122
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
123
|
+
* @param {string} productId - Unique identifier for a Product
|
|
124
|
+
* @param {Webflow.ProductsCreateSkuRequest} request
|
|
125
|
+
* @param {Products.RequestOptions} requestOptions - Request-specific configuration.
|
|
126
|
+
*
|
|
146
127
|
* @throws {@link Webflow.BadRequestError}
|
|
147
128
|
* @throws {@link Webflow.UnauthorizedError}
|
|
148
129
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -152,23 +133,8 @@ export declare class Products {
|
|
|
152
133
|
* @throws {@link Webflow.InternalServerError}
|
|
153
134
|
*
|
|
154
135
|
* @example
|
|
155
|
-
* await
|
|
156
|
-
* skus: [{
|
|
157
|
-
* id: "580e63fc8c9a982ac9b8b745",
|
|
158
|
-
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
159
|
-
* lastPublished: new Date("2023-03-17T18:47:35.000Z"),
|
|
160
|
-
* lastUpdated: new Date("2023-03-17T18:47:35.000Z"),
|
|
161
|
-
* createdOn: new Date("2023-03-17T18:47:35.000Z"),
|
|
162
|
-
* fieldData: {
|
|
163
|
-
* name: "Blue T-shirt",
|
|
164
|
-
* slug: "t-shirt-blue",
|
|
165
|
-
* price: {
|
|
166
|
-
* value: 100,
|
|
167
|
-
* unit: "USD"
|
|
168
|
-
* },
|
|
169
|
-
* quantity: 10
|
|
170
|
-
* }
|
|
171
|
-
* }]
|
|
136
|
+
* await client.products.createSku("site_id", "product_id", {
|
|
137
|
+
* skus: [{}]
|
|
172
138
|
* })
|
|
173
139
|
*/
|
|
174
140
|
createSku(siteId: string, productId: string, request: Webflow.ProductsCreateSkuRequest, requestOptions?: Products.RequestOptions): Promise<Webflow.ProductsCreateSkuResponse>;
|
|
@@ -176,6 +142,13 @@ export declare class Products {
|
|
|
176
142
|
* Updating an existing SKU will set the product type to `Advanced` for the product associated with the SKU. The product type is used to determine which Product and SKU fields are shown to users in the `Designer` and the `Editor`. Setting it to `Advanced` ensures that all Product and SKU fields will be shown. The product type can be edited in the `Designer` or the `Editor`.
|
|
177
143
|
*
|
|
178
144
|
* Required scope | `ecommerce:write`
|
|
145
|
+
*
|
|
146
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
147
|
+
* @param {string} productId - Unique identifier for a Product
|
|
148
|
+
* @param {string} skuId - Unique identifier for a SKU
|
|
149
|
+
* @param {Webflow.ProductsUpdateSkuRequest} request
|
|
150
|
+
* @param {Products.RequestOptions} requestOptions - Request-specific configuration.
|
|
151
|
+
*
|
|
179
152
|
* @throws {@link Webflow.BadRequestError}
|
|
180
153
|
* @throws {@link Webflow.UnauthorizedError}
|
|
181
154
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -185,23 +158,8 @@ export declare class Products {
|
|
|
185
158
|
* @throws {@link Webflow.InternalServerError}
|
|
186
159
|
*
|
|
187
160
|
* @example
|
|
188
|
-
* await
|
|
189
|
-
* sku: {
|
|
190
|
-
* id: "580e63fc8c9a982ac9b8b745",
|
|
191
|
-
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
192
|
-
* lastPublished: new Date("2023-03-17T18:47:35.000Z"),
|
|
193
|
-
* lastUpdated: new Date("2023-03-17T18:47:35.000Z"),
|
|
194
|
-
* createdOn: new Date("2023-03-17T18:47:35.000Z"),
|
|
195
|
-
* fieldData: {
|
|
196
|
-
* name: "Blue T-shirt",
|
|
197
|
-
* slug: "t-shirt-blue",
|
|
198
|
-
* price: {
|
|
199
|
-
* value: 100,
|
|
200
|
-
* unit: "USD"
|
|
201
|
-
* },
|
|
202
|
-
* quantity: 10
|
|
203
|
-
* }
|
|
204
|
-
* }
|
|
161
|
+
* await client.products.updateSku("site_id", "product_id", "sku_id", {
|
|
162
|
+
* sku: {}
|
|
205
163
|
* })
|
|
206
164
|
*/
|
|
207
165
|
updateSku(siteId: string, productId: string, skuId: string, request: Webflow.ProductsUpdateSkuRequest, requestOptions?: Products.RequestOptions): Promise<Webflow.Sku>;
|
|
@@ -41,10 +41,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41
41
|
exports.Products = 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 Products {
|
|
49
49
|
constructor(_options) {
|
|
50
50
|
this._options = _options;
|
|
@@ -53,6 +53,11 @@ class Products {
|
|
|
53
53
|
* Retrieve all products for a site. Use `limit` and `offset` to page through all products with subsequent requests. All SKUs for each product will also be fetched and returned. The `limit`, `offset` and `total` values represent Products only and do not include any SKUs.
|
|
54
54
|
*
|
|
55
55
|
* Required scope | `ecommerce:read`
|
|
56
|
+
*
|
|
57
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
58
|
+
* @param {Webflow.ProductsListRequest} request
|
|
59
|
+
* @param {Products.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
|
+
*
|
|
56
61
|
* @throws {@link Webflow.BadRequestError}
|
|
57
62
|
* @throws {@link Webflow.UnauthorizedError}
|
|
58
63
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -62,7 +67,7 @@ class Products {
|
|
|
62
67
|
* @throws {@link Webflow.InternalServerError}
|
|
63
68
|
*
|
|
64
69
|
* @example
|
|
65
|
-
* await
|
|
70
|
+
* await client.products.list("site_id")
|
|
66
71
|
*/
|
|
67
72
|
list(siteId, request = {}, requestOptions) {
|
|
68
73
|
var _a;
|
|
@@ -76,13 +81,13 @@ class Products {
|
|
|
76
81
|
_queryParams["limit"] = limit.toString();
|
|
77
82
|
}
|
|
78
83
|
const _response = yield core.fetcher({
|
|
79
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/products`),
|
|
84
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/products`),
|
|
80
85
|
method: "GET",
|
|
81
86
|
headers: {
|
|
82
87
|
Authorization: yield this._getAuthorizationHeader(),
|
|
83
88
|
"X-Fern-Language": "JavaScript",
|
|
84
89
|
"X-Fern-SDK-Name": "webflow-api",
|
|
85
|
-
"X-Fern-SDK-Version": "2.3.
|
|
90
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
86
91
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
92
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
93
|
},
|
|
@@ -90,6 +95,7 @@ class Products {
|
|
|
90
95
|
queryParameters: _queryParams,
|
|
91
96
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
92
97
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
98
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
93
99
|
});
|
|
94
100
|
if (_response.ok) {
|
|
95
101
|
return yield serializers.ProductAndSkUsList.parseOrThrow(_response.body, {
|
|
@@ -148,6 +154,11 @@ class Products {
|
|
|
148
154
|
* Upon creation, the default product type will be `Advanced`. The product type is used to determine which Product and SKU fields are shown to users in the `Designer` and the `Editor`. Setting it to `Advanced` ensures that all Product and SKU fields will be shown.
|
|
149
155
|
*
|
|
150
156
|
* Required scope | `ecommerce:write`
|
|
157
|
+
*
|
|
158
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
159
|
+
* @param {Webflow.ProductSkuCreate} request
|
|
160
|
+
* @param {Products.RequestOptions} requestOptions - Request-specific configuration.
|
|
161
|
+
*
|
|
151
162
|
* @throws {@link Webflow.BadRequestError}
|
|
152
163
|
* @throws {@link Webflow.UnauthorizedError}
|
|
153
164
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -157,44 +168,19 @@ class Products {
|
|
|
157
168
|
* @throws {@link Webflow.InternalServerError}
|
|
158
169
|
*
|
|
159
170
|
* @example
|
|
160
|
-
* await
|
|
161
|
-
* product: {
|
|
162
|
-
* id: "660eb7a486d1d6e0412292d7",
|
|
163
|
-
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
164
|
-
* lastPublished: new Date("2024-04-04T14:24:19.000Z"),
|
|
165
|
-
* lastUpdated: new Date("2024-04-04T14:30:19.000Z"),
|
|
166
|
-
* createdOn: new Date("2024-04-04T14:22:28.000Z"),
|
|
167
|
-
* isArchived: false,
|
|
168
|
-
* isDraft: false,
|
|
169
|
-
* fieldData: {
|
|
170
|
-
* name: "T-Shirt",
|
|
171
|
-
* slug: "t-shirt",
|
|
172
|
-
* description: "A plain cotton t-shirt.",
|
|
173
|
-
* shippable: true,
|
|
174
|
-
* skuProperties: [{
|
|
175
|
-
* id: "Color",
|
|
176
|
-
* name: "Color",
|
|
177
|
-
* enum: [{
|
|
178
|
-
* id: "id",
|
|
179
|
-
* name: "name",
|
|
180
|
-
* slug: "slug"
|
|
181
|
-
* }]
|
|
182
|
-
* }]
|
|
183
|
-
* }
|
|
184
|
-
* }
|
|
185
|
-
* })
|
|
171
|
+
* await client.products.create("site_id")
|
|
186
172
|
*/
|
|
187
173
|
create(siteId, request = {}, requestOptions) {
|
|
188
174
|
var _a;
|
|
189
175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
190
176
|
const _response = yield core.fetcher({
|
|
191
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/products`),
|
|
177
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/products`),
|
|
192
178
|
method: "POST",
|
|
193
179
|
headers: {
|
|
194
180
|
Authorization: yield this._getAuthorizationHeader(),
|
|
195
181
|
"X-Fern-Language": "JavaScript",
|
|
196
182
|
"X-Fern-SDK-Name": "webflow-api",
|
|
197
|
-
"X-Fern-SDK-Version": "2.3.
|
|
183
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
198
184
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
199
185
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
200
186
|
},
|
|
@@ -202,6 +188,7 @@ class Products {
|
|
|
202
188
|
body: yield serializers.ProductSkuCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
203
189
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
204
190
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
191
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
205
192
|
});
|
|
206
193
|
if (_response.ok) {
|
|
207
194
|
return yield serializers.ProductAndSkUs.parseOrThrow(_response.body, {
|
|
@@ -254,6 +241,11 @@ class Products {
|
|
|
254
241
|
* Retrieve a single product by its id. All of its SKUs will also be retrieved.
|
|
255
242
|
*
|
|
256
243
|
* Required scope | `ecommerce:read`
|
|
244
|
+
*
|
|
245
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
246
|
+
* @param {string} productId - Unique identifier for a Product
|
|
247
|
+
* @param {Products.RequestOptions} requestOptions - Request-specific configuration.
|
|
248
|
+
*
|
|
257
249
|
* @throws {@link Webflow.BadRequestError}
|
|
258
250
|
* @throws {@link Webflow.UnauthorizedError}
|
|
259
251
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -263,25 +255,26 @@ class Products {
|
|
|
263
255
|
* @throws {@link Webflow.InternalServerError}
|
|
264
256
|
*
|
|
265
257
|
* @example
|
|
266
|
-
* await
|
|
258
|
+
* await client.products.get("site_id", "product_id")
|
|
267
259
|
*/
|
|
268
260
|
get(siteId, productId, requestOptions) {
|
|
269
261
|
var _a;
|
|
270
262
|
return __awaiter(this, void 0, void 0, function* () {
|
|
271
263
|
const _response = yield core.fetcher({
|
|
272
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/products/${productId}`),
|
|
264
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/products/${encodeURIComponent(productId)}`),
|
|
273
265
|
method: "GET",
|
|
274
266
|
headers: {
|
|
275
267
|
Authorization: yield this._getAuthorizationHeader(),
|
|
276
268
|
"X-Fern-Language": "JavaScript",
|
|
277
269
|
"X-Fern-SDK-Name": "webflow-api",
|
|
278
|
-
"X-Fern-SDK-Version": "2.3.
|
|
270
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
279
271
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
280
272
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
281
273
|
},
|
|
282
274
|
contentType: "application/json",
|
|
283
275
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
284
276
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
277
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
285
278
|
});
|
|
286
279
|
if (_response.ok) {
|
|
287
280
|
return yield serializers.ProductAndSkUs.parseOrThrow(_response.body, {
|
|
@@ -334,6 +327,12 @@ class Products {
|
|
|
334
327
|
* Updating an existing Product will set the product type to `Advanced`. The product type is used to determine which Product and SKU fields are shown to users in the `Designer` and the `Editor`. Setting it to `Advanced` ensures that all Product and SKU fields will be shown. The product type can be edited in the `Designer` or the `Editor`.
|
|
335
328
|
*
|
|
336
329
|
* Required scope | `ecommerce:write`
|
|
330
|
+
*
|
|
331
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
332
|
+
* @param {string} productId - Unique identifier for a Product
|
|
333
|
+
* @param {Webflow.ProductSkuUpdate} request
|
|
334
|
+
* @param {Products.RequestOptions} requestOptions - Request-specific configuration.
|
|
335
|
+
*
|
|
337
336
|
* @throws {@link Webflow.BadRequestError}
|
|
338
337
|
* @throws {@link Webflow.UnauthorizedError}
|
|
339
338
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -343,44 +342,19 @@ class Products {
|
|
|
343
342
|
* @throws {@link Webflow.InternalServerError}
|
|
344
343
|
*
|
|
345
344
|
* @example
|
|
346
|
-
* await
|
|
347
|
-
* product: {
|
|
348
|
-
* id: "660eb7a486d1d6e0412292d7",
|
|
349
|
-
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
350
|
-
* lastPublished: new Date("2024-04-04T14:24:19.000Z"),
|
|
351
|
-
* lastUpdated: new Date("2024-04-04T14:30:19.000Z"),
|
|
352
|
-
* createdOn: new Date("2024-04-04T14:22:28.000Z"),
|
|
353
|
-
* isArchived: false,
|
|
354
|
-
* isDraft: false,
|
|
355
|
-
* fieldData: {
|
|
356
|
-
* name: "T-Shirt",
|
|
357
|
-
* slug: "t-shirt",
|
|
358
|
-
* description: "A plain cotton t-shirt.",
|
|
359
|
-
* shippable: true,
|
|
360
|
-
* skuProperties: [{
|
|
361
|
-
* id: "Color",
|
|
362
|
-
* name: "Color",
|
|
363
|
-
* enum: [{
|
|
364
|
-
* id: "id",
|
|
365
|
-
* name: "name",
|
|
366
|
-
* slug: "slug"
|
|
367
|
-
* }]
|
|
368
|
-
* }]
|
|
369
|
-
* }
|
|
370
|
-
* }
|
|
371
|
-
* })
|
|
345
|
+
* await client.products.update("site_id", "product_id")
|
|
372
346
|
*/
|
|
373
347
|
update(siteId, productId, request = {}, requestOptions) {
|
|
374
348
|
var _a;
|
|
375
349
|
return __awaiter(this, void 0, void 0, function* () {
|
|
376
350
|
const _response = yield core.fetcher({
|
|
377
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/products/${productId}`),
|
|
351
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/products/${encodeURIComponent(productId)}`),
|
|
378
352
|
method: "PATCH",
|
|
379
353
|
headers: {
|
|
380
354
|
Authorization: yield this._getAuthorizationHeader(),
|
|
381
355
|
"X-Fern-Language": "JavaScript",
|
|
382
356
|
"X-Fern-SDK-Name": "webflow-api",
|
|
383
|
-
"X-Fern-SDK-Version": "2.3.
|
|
357
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
384
358
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
385
359
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
386
360
|
},
|
|
@@ -388,6 +362,7 @@ class Products {
|
|
|
388
362
|
body: yield serializers.ProductSkuUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
389
363
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
390
364
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
365
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
391
366
|
});
|
|
392
367
|
if (_response.ok) {
|
|
393
368
|
return yield serializers.Product.parseOrThrow(_response.body, {
|
|
@@ -442,6 +417,12 @@ class Products {
|
|
|
442
417
|
* Creating additional SKUs will set the product type to `Advanced` for the product associated with the SKUs. The product type is used to determine which Product and SKU fields are shown to users in the `Designer` and the `Editor`. Setting it to `Advanced` ensures that all Product and SKU fields will be shown. The product type can be edited in the `Designer` or the `Editor`.
|
|
443
418
|
*
|
|
444
419
|
* Required scope | `ecommerce:write`
|
|
420
|
+
*
|
|
421
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
422
|
+
* @param {string} productId - Unique identifier for a Product
|
|
423
|
+
* @param {Webflow.ProductsCreateSkuRequest} request
|
|
424
|
+
* @param {Products.RequestOptions} requestOptions - Request-specific configuration.
|
|
425
|
+
*
|
|
445
426
|
* @throws {@link Webflow.BadRequestError}
|
|
446
427
|
* @throws {@link Webflow.UnauthorizedError}
|
|
447
428
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -451,36 +432,21 @@ class Products {
|
|
|
451
432
|
* @throws {@link Webflow.InternalServerError}
|
|
452
433
|
*
|
|
453
434
|
* @example
|
|
454
|
-
* await
|
|
455
|
-
* skus: [{
|
|
456
|
-
* id: "580e63fc8c9a982ac9b8b745",
|
|
457
|
-
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
458
|
-
* lastPublished: new Date("2023-03-17T18:47:35.000Z"),
|
|
459
|
-
* lastUpdated: new Date("2023-03-17T18:47:35.000Z"),
|
|
460
|
-
* createdOn: new Date("2023-03-17T18:47:35.000Z"),
|
|
461
|
-
* fieldData: {
|
|
462
|
-
* name: "Blue T-shirt",
|
|
463
|
-
* slug: "t-shirt-blue",
|
|
464
|
-
* price: {
|
|
465
|
-
* value: 100,
|
|
466
|
-
* unit: "USD"
|
|
467
|
-
* },
|
|
468
|
-
* quantity: 10
|
|
469
|
-
* }
|
|
470
|
-
* }]
|
|
435
|
+
* await client.products.createSku("site_id", "product_id", {
|
|
436
|
+
* skus: [{}]
|
|
471
437
|
* })
|
|
472
438
|
*/
|
|
473
439
|
createSku(siteId, productId, request, requestOptions) {
|
|
474
440
|
var _a;
|
|
475
441
|
return __awaiter(this, void 0, void 0, function* () {
|
|
476
442
|
const _response = yield core.fetcher({
|
|
477
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/products/${productId}/skus`),
|
|
443
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/products/${encodeURIComponent(productId)}/skus`),
|
|
478
444
|
method: "POST",
|
|
479
445
|
headers: {
|
|
480
446
|
Authorization: yield this._getAuthorizationHeader(),
|
|
481
447
|
"X-Fern-Language": "JavaScript",
|
|
482
448
|
"X-Fern-SDK-Name": "webflow-api",
|
|
483
|
-
"X-Fern-SDK-Version": "2.3.
|
|
449
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
484
450
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
485
451
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
486
452
|
},
|
|
@@ -488,6 +454,7 @@ class Products {
|
|
|
488
454
|
body: yield serializers.ProductsCreateSkuRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
489
455
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
490
456
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
457
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
491
458
|
});
|
|
492
459
|
if (_response.ok) {
|
|
493
460
|
return yield serializers.ProductsCreateSkuResponse.parseOrThrow(_response.body, {
|
|
@@ -540,6 +507,13 @@ class Products {
|
|
|
540
507
|
* Updating an existing SKU will set the product type to `Advanced` for the product associated with the SKU. The product type is used to determine which Product and SKU fields are shown to users in the `Designer` and the `Editor`. Setting it to `Advanced` ensures that all Product and SKU fields will be shown. The product type can be edited in the `Designer` or the `Editor`.
|
|
541
508
|
*
|
|
542
509
|
* Required scope | `ecommerce:write`
|
|
510
|
+
*
|
|
511
|
+
* @param {string} siteId - Unique identifier for a Site
|
|
512
|
+
* @param {string} productId - Unique identifier for a Product
|
|
513
|
+
* @param {string} skuId - Unique identifier for a SKU
|
|
514
|
+
* @param {Webflow.ProductsUpdateSkuRequest} request
|
|
515
|
+
* @param {Products.RequestOptions} requestOptions - Request-specific configuration.
|
|
516
|
+
*
|
|
543
517
|
* @throws {@link Webflow.BadRequestError}
|
|
544
518
|
* @throws {@link Webflow.UnauthorizedError}
|
|
545
519
|
* @throws {@link Webflow.ForbiddenError}
|
|
@@ -549,36 +523,21 @@ class Products {
|
|
|
549
523
|
* @throws {@link Webflow.InternalServerError}
|
|
550
524
|
*
|
|
551
525
|
* @example
|
|
552
|
-
* await
|
|
553
|
-
* sku: {
|
|
554
|
-
* id: "580e63fc8c9a982ac9b8b745",
|
|
555
|
-
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
556
|
-
* lastPublished: new Date("2023-03-17T18:47:35.000Z"),
|
|
557
|
-
* lastUpdated: new Date("2023-03-17T18:47:35.000Z"),
|
|
558
|
-
* createdOn: new Date("2023-03-17T18:47:35.000Z"),
|
|
559
|
-
* fieldData: {
|
|
560
|
-
* name: "Blue T-shirt",
|
|
561
|
-
* slug: "t-shirt-blue",
|
|
562
|
-
* price: {
|
|
563
|
-
* value: 100,
|
|
564
|
-
* unit: "USD"
|
|
565
|
-
* },
|
|
566
|
-
* quantity: 10
|
|
567
|
-
* }
|
|
568
|
-
* }
|
|
526
|
+
* await client.products.updateSku("site_id", "product_id", "sku_id", {
|
|
527
|
+
* sku: {}
|
|
569
528
|
* })
|
|
570
529
|
*/
|
|
571
530
|
updateSku(siteId, productId, skuId, request, requestOptions) {
|
|
572
531
|
var _a;
|
|
573
532
|
return __awaiter(this, void 0, void 0, function* () {
|
|
574
533
|
const _response = yield core.fetcher({
|
|
575
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/products/${productId}/skus/${skuId}`),
|
|
534
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/products/${encodeURIComponent(productId)}/skus/${encodeURIComponent(skuId)}`),
|
|
576
535
|
method: "PATCH",
|
|
577
536
|
headers: {
|
|
578
537
|
Authorization: yield this._getAuthorizationHeader(),
|
|
579
538
|
"X-Fern-Language": "JavaScript",
|
|
580
539
|
"X-Fern-SDK-Name": "webflow-api",
|
|
581
|
-
"X-Fern-SDK-Version": "2.3.
|
|
540
|
+
"X-Fern-SDK-Version": "2.3.5",
|
|
582
541
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
583
542
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
584
543
|
},
|
|
@@ -586,6 +545,7 @@ class Products {
|
|
|
586
545
|
body: yield serializers.ProductsUpdateSkuRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
587
546
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
588
547
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
548
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
589
549
|
});
|
|
590
550
|
if (_response.ok) {
|
|
591
551
|
return yield serializers.Sku.parseOrThrow(_response.body, {
|
|
@@ -1,35 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Webflow from "
|
|
4
|
+
import * as Webflow from "../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
8
|
-
* product: {
|
|
9
|
-
* id: "660eb7a486d1d6e0412292d7",
|
|
10
|
-
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
11
|
-
* lastPublished: new Date("2024-04-04T14:24:19.000Z"),
|
|
12
|
-
* lastUpdated: new Date("2024-04-04T14:30:19.000Z"),
|
|
13
|
-
* createdOn: new Date("2024-04-04T14:22:28.000Z"),
|
|
14
|
-
* isArchived: false,
|
|
15
|
-
* isDraft: false,
|
|
16
|
-
* fieldData: {
|
|
17
|
-
* name: "T-Shirt",
|
|
18
|
-
* slug: "t-shirt",
|
|
19
|
-
* description: "A plain cotton t-shirt.",
|
|
20
|
-
* shippable: true,
|
|
21
|
-
* skuProperties: [{
|
|
22
|
-
* id: "Color",
|
|
23
|
-
* name: "Color",
|
|
24
|
-
* enum: [{
|
|
25
|
-
* id: "id",
|
|
26
|
-
* name: "name",
|
|
27
|
-
* slug: "slug"
|
|
28
|
-
* }]
|
|
29
|
-
* }]
|
|
30
|
-
* }
|
|
31
|
-
* }
|
|
32
|
-
* }
|
|
7
|
+
* {}
|
|
33
8
|
*/
|
|
34
9
|
export interface ProductSkuCreate {
|
|
35
10
|
publishStatus?: Webflow.PublishStatus;
|
|
@@ -1,35 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Webflow from "
|
|
4
|
+
import * as Webflow from "../../../../index";
|
|
5
5
|
/**
|
|
6
6
|
* @example
|
|
7
|
-
* {
|
|
8
|
-
* product: {
|
|
9
|
-
* id: "660eb7a486d1d6e0412292d7",
|
|
10
|
-
* cmsLocaleId: "653ad57de882f528b32e810e",
|
|
11
|
-
* lastPublished: new Date("2024-04-04T14:24:19.000Z"),
|
|
12
|
-
* lastUpdated: new Date("2024-04-04T14:30:19.000Z"),
|
|
13
|
-
* createdOn: new Date("2024-04-04T14:22:28.000Z"),
|
|
14
|
-
* isArchived: false,
|
|
15
|
-
* isDraft: false,
|
|
16
|
-
* fieldData: {
|
|
17
|
-
* name: "T-Shirt",
|
|
18
|
-
* slug: "t-shirt",
|
|
19
|
-
* description: "A plain cotton t-shirt.",
|
|
20
|
-
* shippable: true,
|
|
21
|
-
* skuProperties: [{
|
|
22
|
-
* id: "Color",
|
|
23
|
-
* name: "Color",
|
|
24
|
-
* enum: [{
|
|
25
|
-
* id: "id",
|
|
26
|
-
* name: "name",
|
|
27
|
-
* slug: "slug"
|
|
28
|
-
* }]
|
|
29
|
-
* }]
|
|
30
|
-
* }
|
|
31
|
-
* }
|
|
32
|
-
* }
|
|
7
|
+
* {}
|
|
33
8
|
*/
|
|
34
9
|
export interface ProductSkuUpdate {
|
|
35
10
|
publishStatus?: Webflow.PublishStatus;
|