@51eat/sdk 0.0.67 → 0.0.69
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/README.md +11 -13
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +5 -0
- package/dist/cjs/api/errors/InternalServerError.d.ts +2 -1
- package/dist/cjs/api/errors/index.d.ts +0 -1
- package/dist/cjs/api/errors/index.js +0 -1
- package/dist/cjs/api/resources/business/client/Client.d.ts +9 -9
- package/dist/cjs/api/resources/business/client/Client.js +25 -25
- package/dist/cjs/api/resources/business/resources/index.d.ts +3 -4
- package/dist/cjs/api/resources/business/resources/index.js +4 -5
- package/dist/cjs/api/resources/business/resources/priceLists/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/business/resources/priceLists/client/Client.js +222 -0
- package/dist/cjs/api/resources/business/resources/priceLists/client/requests/DeletePriceListsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/priceLists/client/requests/StorePriceListRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/priceLists/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/priceLists/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/priceLists/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/{discounts/types/index.js → priceLists/exports.js} +5 -5
- package/dist/cjs/api/resources/business/resources/priceLists/types/CreatePriceListsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/priceLists/types/ListPriceListsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/priceLists/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/{shipping/resources/rates → priceLists}/types/index.js +2 -3
- package/dist/cjs/api/resources/business/resources/productCategories/client/Client.d.ts +7 -28
- package/dist/cjs/api/resources/business/resources/productCategories/client/Client.js +30 -121
- package/dist/cjs/api/resources/business/resources/productCategories/client/requests/DeleteProductCategoriesRequest.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoriesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/productCategories/client/requests/index.d.ts +1 -2
- package/dist/cjs/api/resources/business/resources/productCategories/index.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/productCategories/index.js +0 -1
- package/dist/cjs/api/resources/business/resources/productOrders/client/Client.d.ts +10 -23
- package/dist/cjs/api/resources/business/resources/productOrders/client/Client.js +21 -38
- package/dist/{esm/api/resources/business/resources/productOrders/client/requests/StoreTrackingRequest.d.mts → cjs/api/resources/business/resources/productOrders/client/requests/AddTrackingProductOrdersRequest.d.ts} +4 -5
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/FulfillProductOrdersRequest.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/GetProductOrdersRequest.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/ListProductOrdersRequest.d.ts +8 -0
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/MarkPickedUpProductOrdersRequest.d.ts +0 -1
- package/dist/{esm/api/resources/business/resources/productOrders/client/requests/PurchaseLabelRequest.d.mts → cjs/api/resources/business/resources/productOrders/client/requests/PurchaseLabelProductOrdersRequest.d.ts} +1 -2
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/{RefundOrderRequest.d.ts → RefundProductOrdersRequest.d.ts} +1 -2
- package/dist/cjs/api/resources/business/resources/productOrders/client/requests/index.d.ts +4 -3
- package/dist/cjs/api/resources/business/resources/productOrders/types/AddTrackingProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productOrders/types/FulfillProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productOrders/types/GetLabelRatesProductOrdersResponseItem.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productOrders/types/GetProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productOrders/types/ListProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productOrders/types/MarkPickedUpProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productOrders/types/PurchaseLabelProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/productOrders/types/RefundProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/client/Client.d.ts +6 -11
- package/dist/cjs/api/resources/business/resources/products/client/Client.js +8 -24
- package/dist/cjs/api/resources/business/resources/products/client/requests/StoreProductRequest.d.ts +4 -56
- package/dist/cjs/api/resources/business/resources/products/client/requests/StoreProductRequest.js +0 -27
- package/dist/cjs/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.ts +6 -56
- package/dist/cjs/api/resources/business/resources/products/client/requests/UpdateProductRequest.js +0 -27
- package/dist/cjs/api/resources/business/resources/products/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/business/resources/products/client/requests/index.js +0 -5
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.d.ts +5 -28
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.js +23 -100
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.ts +0 -2
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.ts +1 -10
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.ts +0 -5
- package/dist/cjs/api/resources/business/resources/products/resources/images/index.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/products/resources/images/index.js +0 -1
- package/dist/cjs/api/resources/business/resources/products/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/products/resources/index.js +0 -1
- package/dist/cjs/api/resources/business/resources/products/resources/inventory/client/Client.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/products/resources/inventory/client/Client.js +0 -3
- package/dist/cjs/api/resources/business/resources/products/resources/inventory/types/SummaryInventoryResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.d.ts +13 -10
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.js +13 -11
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/StoreVariantRequest.d.ts +33 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/StoreVariantRequest.js +17 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/UpdateVariantRequest.d.ts +33 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/UpdateVariantRequest.js +17 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/index.js +5 -5
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.ts +5 -28
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.js +23 -100
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.ts +0 -2
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.ts +1 -10
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.ts +0 -5
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/index.js +0 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.d.ts +3 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.js +4 -2
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/Client.d.ts +17 -5
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/Client.js +59 -21
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/AdjustInventoryRequest.d.ts +4 -16
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/AdjustInventoryRequest.js +0 -9
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/HistoryInventoryRequest.d.ts +0 -2
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/UpdateTrackingInventoryRequest.d.ts +15 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/index.d.ts +2 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/index.js +0 -3
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/AdjustInventoryResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/UpdateTrackingInventoryResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/index.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/index.js +1 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/Client.d.ts +32 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/Client.js +137 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/{images/types → variants/resources/prices/client}/index.js +1 -3
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/SetPriceRequest.d.ts +21 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/{discounts → products/resources/variants/resources/prices}/exports.js +2 -2
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/types/SetPricesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/prices/types/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/types/CreateVariantsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/types/UpdateVariantsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/types/index.js +0 -1
- package/dist/cjs/api/resources/business/resources/products/types/CreateProductsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/types/GetProductsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/types/ListProductsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/types/UpdateProductsResponse.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/products/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/products/types/index.js +0 -1
- package/dist/cjs/api/resources/business/resources/shipping/resources/index.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/shipping/resources/index.js +0 -1
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/Client.d.ts +7 -28
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/Client.js +30 -112
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/DeleteRatesRequest.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateRatesRequest.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/index.d.ts +1 -2
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/index.js +0 -5
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/index.d.ts +0 -1
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/index.js +0 -1
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.d.ts +49 -67
- package/dist/cjs/api/resources/customer/resources/cart/client/Client.js +87 -99
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddItemCartRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutCartRequest.d.ts +15 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetShippingOptionsCartRequest.d.ts +26 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingOptionCartRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/{UpdateCartItemRequest.d.ts → UpdateItemCartRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.d.ts +6 -6
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/index.js +0 -5
- package/dist/cjs/api/resources/customer/resources/cart/types/AddItemCartResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/types/CheckoutCartResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.ts +6 -13
- package/dist/cjs/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.js +7 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/GetCartResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.ts +14 -0
- package/dist/cjs/api/resources/customer/resources/cart/types/RemoveItemCartResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.d.ts +2 -4
- package/dist/cjs/api/resources/customer/resources/cart/types/UpdateItemCartResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/cart/types/index.d.ts +1 -2
- package/dist/cjs/api/resources/customer/resources/cart/types/index.js +1 -2
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.js +1 -1
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/{AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.d.ts → CreatePaymentIntentRequest.d.ts} +3 -3
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/productOrders/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/productOrders/client/Client.js +3 -3
- package/dist/cjs/api/resources/customer/resources/productOrders/client/requests/GetProductOrdersRequest.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/productOrders/types/GetProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/productOrders/types/ListProductOrdersResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/shop/client/Client.d.ts +6 -3
- package/dist/cjs/api/resources/customer/resources/shop/client/Client.js +14 -6
- package/dist/cjs/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.ts +3 -6
- package/dist/cjs/api/resources/customer/resources/shop/types/GetProductShopResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.ts +12 -2
- package/dist/cjs/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/stands/client/Client.d.ts +9 -21
- package/dist/cjs/api/resources/customer/resources/stands/client/Client.js +28 -78
- package/dist/cjs/api/resources/customer/resources/stands/client/requests/CheckoutStandsRequest.d.ts +9 -0
- package/dist/cjs/api/resources/customer/resources/stands/client/requests/CreatePaymentIntentStandsRequest.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/stands/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/customer/resources/stands/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/customer/resources/stands/types/index.js +0 -2
- package/dist/cjs/api/resources/customerStands/client/Client.d.ts +90 -0
- package/dist/cjs/api/resources/{business/resources/discounts → customerStands}/client/Client.js +83 -85
- package/dist/cjs/api/resources/customerStands/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/customerStands/client/index.js +17 -0
- package/dist/cjs/api/resources/customerStands/client/requests/CustomerAddStandCartItemRequest.d.ts +14 -0
- package/dist/cjs/api/resources/customerStands/client/requests/CustomerClearStandCartRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerStands/client/requests/CustomerGetStandCartRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerStands/client/requests/CustomerStandCheckoutRequest.d.ts +15 -0
- package/dist/cjs/api/resources/customerStands/client/requests/CustomerStandPaymentIntentRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerStands/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/customerStands/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/customerStands/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customerStands/exports.js +21 -0
- package/dist/cjs/api/resources/customerStands/index.d.ts +2 -0
- package/dist/cjs/api/resources/customerStands/index.js +18 -0
- package/dist/cjs/api/resources/customerStands/types/CustomerAddStandCartItemResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerStands/types/CustomerGetStandCartResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerStands/types/CustomerStandCheckoutResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.d.ts +12 -0
- package/dist/cjs/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.js +10 -0
- package/dist/cjs/api/resources/customerStands/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/{business/resources/productCategories → customerStands}/types/index.js +4 -4
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/types/AppHttpResourcesApiV1BusinessCommerceProductResource.d.ts +13 -0
- package/dist/cjs/api/types/BusinessHoursResource.d.ts +2 -3
- package/dist/cjs/api/types/BusinessMenu.d.ts +1 -2
- package/dist/cjs/api/types/BusinessMenuGroup.d.ts +1 -2
- package/dist/cjs/api/types/BusinessMenuItem.d.ts +2 -3
- package/dist/cjs/api/types/BusinessStand.d.ts +1 -0
- package/dist/cjs/api/types/CartResource.d.ts +21 -0
- package/dist/cjs/api/types/CheckoutRequest.d.ts +5 -0
- package/dist/cjs/api/types/ImageResource.d.ts +6 -0
- package/dist/cjs/api/types/InternalServerErrorBody.d.ts +1 -1
- package/dist/cjs/api/types/InternalServerErrorBody.js +1 -1
- package/dist/cjs/api/types/InventoryLevelResource.d.ts +7 -0
- package/dist/cjs/api/types/OrderResource.d.ts +27 -0
- package/dist/cjs/api/types/PriceListResource.d.ts +8 -0
- package/dist/cjs/api/types/PriceResource.d.ts +10 -0
- package/dist/cjs/api/types/ProductCategoryResource.d.ts +8 -0
- package/dist/cjs/api/types/ProductResource.d.ts +17 -0
- package/dist/cjs/api/types/StandShop.d.ts +1 -1
- package/dist/cjs/api/types/VariantResource.d.ts +14 -0
- package/dist/cjs/api/types/index.d.ts +11 -20
- package/dist/cjs/api/types/index.js +11 -20
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/errors/InternalServerError.d.mts +2 -1
- package/dist/esm/api/errors/index.d.mts +0 -1
- package/dist/esm/api/errors/index.mjs +0 -1
- package/dist/esm/api/resources/business/client/Client.d.mts +9 -9
- package/dist/esm/api/resources/business/client/Client.mjs +15 -15
- package/dist/esm/api/resources/business/resources/index.d.mts +3 -4
- package/dist/esm/api/resources/business/resources/index.mjs +3 -4
- package/dist/esm/api/resources/business/resources/priceLists/client/Client.d.mts +53 -0
- package/dist/esm/api/resources/business/resources/priceLists/client/Client.mjs +185 -0
- package/dist/esm/api/resources/business/resources/priceLists/client/requests/DeletePriceListsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/priceLists/client/requests/StorePriceListRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/priceLists/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/priceLists/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/priceLists/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/priceLists/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/priceLists/types/CreatePriceListsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/priceLists/types/ListPriceListsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/priceLists/types/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/priceLists/types/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/productCategories/client/Client.d.mts +7 -28
- package/dist/esm/api/resources/business/resources/productCategories/client/Client.mjs +30 -121
- package/dist/esm/api/resources/business/resources/productCategories/client/requests/DeleteProductCategoriesRequest.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoriesRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/productCategories/client/requests/index.d.mts +1 -2
- package/dist/esm/api/resources/business/resources/productCategories/index.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/productCategories/index.mjs +0 -1
- package/dist/esm/api/resources/business/resources/productOrders/client/Client.d.mts +10 -23
- package/dist/esm/api/resources/business/resources/productOrders/client/Client.mjs +21 -38
- package/dist/{cjs/api/resources/business/resources/productOrders/client/requests/StoreTrackingRequest.d.ts → esm/api/resources/business/resources/productOrders/client/requests/AddTrackingProductOrdersRequest.d.mts} +4 -5
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/FulfillProductOrdersRequest.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetLabelRatesProductOrdersRequest.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/GetProductOrdersRequest.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/ListProductOrdersRequest.d.mts +8 -0
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/MarkPickedUpProductOrdersRequest.d.mts +0 -1
- package/dist/{cjs/api/resources/business/resources/productOrders/client/requests/PurchaseLabelRequest.d.ts → esm/api/resources/business/resources/productOrders/client/requests/PurchaseLabelProductOrdersRequest.d.mts} +1 -2
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/{RefundOrderRequest.d.mts → RefundProductOrdersRequest.d.mts} +1 -2
- package/dist/esm/api/resources/business/resources/productOrders/client/requests/index.d.mts +4 -3
- package/dist/esm/api/resources/business/resources/productOrders/types/AddTrackingProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productOrders/types/FulfillProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productOrders/types/GetLabelRatesProductOrdersResponseItem.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productOrders/types/GetProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productOrders/types/ListProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productOrders/types/MarkPickedUpProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productOrders/types/PurchaseLabelProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/productOrders/types/RefundProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +6 -11
- package/dist/esm/api/resources/business/resources/products/client/Client.mjs +8 -24
- package/dist/esm/api/resources/business/resources/products/client/requests/StoreProductRequest.d.mts +4 -56
- package/dist/esm/api/resources/business/resources/products/client/requests/StoreProductRequest.mjs +1 -26
- package/dist/esm/api/resources/business/resources/products/client/requests/UpdateProductRequest.d.mts +6 -56
- package/dist/esm/api/resources/business/resources/products/client/requests/UpdateProductRequest.mjs +1 -26
- package/dist/esm/api/resources/business/resources/products/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/business/resources/products/client/requests/index.mjs +1 -2
- package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.d.mts +5 -28
- package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.mjs +24 -101
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/DeleteImagesRequest.d.mts +0 -2
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/ReorderImagesRequest.d.mts +1 -10
- package/dist/esm/api/resources/business/resources/products/resources/images/client/requests/UploadImagesRequest.d.mts +0 -5
- package/dist/esm/api/resources/business/resources/products/resources/images/index.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/products/resources/images/index.mjs +0 -1
- package/dist/esm/api/resources/business/resources/products/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/products/resources/index.mjs +0 -1
- package/dist/esm/api/resources/business/resources/products/resources/inventory/client/Client.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/products/resources/inventory/client/Client.mjs +0 -3
- package/dist/esm/api/resources/business/resources/products/resources/inventory/types/SummaryInventoryResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.d.mts +13 -10
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.mjs +13 -11
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/StoreVariantRequest.d.mts +33 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/StoreVariantRequest.mjs +14 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/UpdateVariantRequest.d.mts +33 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/UpdateVariantRequest.mjs +14 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/index.mjs +2 -2
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.mts +5 -28
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.mjs +24 -101
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/DeleteImagesRequest.d.mts +0 -2
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/ReorderImagesRequest.d.mts +1 -10
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/requests/UploadImagesRequest.d.mts +0 -5
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/index.mjs +0 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.d.mts +3 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.mjs +3 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/Client.d.mts +17 -5
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/Client.mjs +59 -21
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/AdjustInventoryRequest.d.mts +4 -16
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/AdjustInventoryRequest.mjs +1 -8
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/HistoryInventoryRequest.d.mts +0 -2
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/UpdateTrackingInventoryRequest.d.mts +15 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/index.d.mts +2 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/AdjustInventoryResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/UpdateTrackingInventoryResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/index.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/index.mjs +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/Client.d.mts +32 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/Client.mjs +100 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/SetPriceRequest.d.mts +21 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/{discounts → products/resources/variants/resources/prices}/exports.mjs +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/types/SetPricesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/types/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/prices/types/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/types/CreateVariantsResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/types/UpdateVariantsResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/types/index.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/types/index.mjs +0 -1
- package/dist/esm/api/resources/business/resources/products/types/CreateProductsResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/types/GetProductsResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/types/ListProductsResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/types/UpdateProductsResponse.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/products/types/index.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/products/types/index.mjs +0 -1
- package/dist/esm/api/resources/business/resources/shipping/resources/index.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/shipping/resources/index.mjs +0 -1
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/Client.d.mts +7 -28
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/Client.mjs +30 -112
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/DeleteRatesRequest.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateRatesRequest.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/index.d.mts +1 -2
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/index.mjs +1 -2
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/index.d.mts +0 -1
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/index.mjs +0 -1
- package/dist/esm/api/resources/customer/resources/cart/client/Client.d.mts +49 -67
- package/dist/esm/api/resources/customer/resources/cart/client/Client.mjs +87 -99
- package/dist/esm/api/resources/customer/resources/cart/client/requests/AddItemCartRequest.d.mts +14 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutCartRequest.d.mts +15 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/ClearCartRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/GetCartRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/cart/client/requests/GetShippingOptionsCartRequest.d.mts +26 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingOptionCartRequest.d.mts +14 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/{UpdateCartItemRequest.d.mts → UpdateItemCartRequest.d.mts} +1 -1
- package/dist/esm/api/resources/customer/resources/cart/client/requests/index.d.mts +6 -6
- package/dist/esm/api/resources/customer/resources/cart/client/requests/index.mjs +1 -2
- package/dist/esm/api/resources/customer/resources/cart/types/AddItemCartResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/cart/types/CheckoutCartResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.d.mts +6 -13
- package/dist/esm/api/resources/customer/resources/cart/types/CreatePaymentIntentCartResponse.mjs +6 -1
- package/dist/esm/api/resources/customer/resources/cart/types/GetCartResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponse.d.mts +14 -0
- package/dist/esm/api/resources/customer/resources/cart/types/RemoveItemCartResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/cart/types/SelectShippingOptionCartResponse.d.mts +2 -4
- package/dist/esm/api/resources/customer/resources/cart/types/UpdateItemCartResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/cart/types/index.d.mts +1 -2
- package/dist/esm/api/resources/customer/resources/cart/types/index.mjs +1 -2
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs +1 -1
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/{AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.d.mts → CreatePaymentIntentRequest.d.mts} +3 -3
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/productOrders/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/productOrders/client/Client.mjs +3 -3
- package/dist/esm/api/resources/customer/resources/productOrders/client/requests/GetProductOrdersRequest.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/productOrders/types/GetProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/productOrders/types/ListProductOrdersResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/shop/client/Client.d.mts +6 -3
- package/dist/esm/api/resources/customer/resources/shop/client/Client.mjs +14 -6
- package/dist/esm/api/resources/customer/resources/shop/client/requests/GetProductShopRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/shop/client/requests/ListCategoriesShopRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/shop/client/requests/ListProductsShopRequest.d.mts +3 -6
- package/dist/esm/api/resources/customer/resources/shop/types/GetProductShopResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/shop/types/ListCategoriesShopResponse.d.mts +12 -2
- package/dist/esm/api/resources/customer/resources/shop/types/ListProductsShopResponse.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/stands/client/Client.d.mts +9 -21
- package/dist/esm/api/resources/customer/resources/stands/client/Client.mjs +28 -78
- package/dist/esm/api/resources/customer/resources/stands/client/requests/CheckoutStandsRequest.d.mts +9 -0
- package/dist/esm/api/resources/customer/resources/stands/client/requests/CreatePaymentIntentStandsRequest.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/stands/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/customer/resources/stands/types/index.d.mts +0 -2
- package/dist/esm/api/resources/customer/resources/stands/types/index.mjs +0 -2
- package/dist/esm/api/resources/customerStands/client/Client.d.mts +90 -0
- package/dist/esm/api/resources/{business/resources/discounts → customerStands}/client/Client.mjs +81 -83
- package/dist/esm/api/resources/customerStands/client/index.d.mts +1 -0
- package/dist/esm/api/resources/customerStands/client/index.mjs +1 -0
- package/dist/esm/api/resources/customerStands/client/requests/CustomerAddStandCartItemRequest.d.mts +14 -0
- package/dist/esm/api/resources/customerStands/client/requests/CustomerClearStandCartRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerStands/client/requests/CustomerGetStandCartRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerStands/client/requests/CustomerStandCheckoutRequest.d.mts +15 -0
- package/dist/esm/api/resources/customerStands/client/requests/CustomerStandPaymentIntentRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerStands/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/customerStands/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/customerStands/exports.d.mts +2 -0
- package/dist/esm/api/resources/customerStands/exports.mjs +3 -0
- package/dist/esm/api/resources/customerStands/index.d.mts +2 -0
- package/dist/esm/api/resources/customerStands/index.mjs +2 -0
- package/dist/esm/api/resources/customerStands/types/CustomerAddStandCartItemResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerStands/types/CustomerGetStandCartResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerStands/types/CustomerStandCheckoutResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.d.mts +12 -0
- package/dist/esm/api/resources/customerStands/types/CustomerStandPaymentIntentResponse.mjs +7 -0
- package/dist/esm/api/resources/customerStands/types/index.d.mts +4 -0
- package/dist/esm/api/resources/customerStands/types/index.mjs +4 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/types/AppHttpResourcesApiV1BusinessCommerceProductResource.d.mts +13 -0
- package/dist/esm/api/types/BusinessHoursResource.d.mts +2 -3
- package/dist/esm/api/types/BusinessMenu.d.mts +1 -2
- package/dist/esm/api/types/BusinessMenuGroup.d.mts +1 -2
- package/dist/esm/api/types/BusinessMenuItem.d.mts +2 -3
- package/dist/esm/api/types/BusinessStand.d.mts +1 -0
- package/dist/esm/api/types/CartResource.d.mts +21 -0
- package/dist/esm/api/types/CheckoutRequest.d.mts +5 -0
- package/dist/esm/api/types/ImageResource.d.mts +6 -0
- package/dist/esm/api/types/InternalServerErrorBody.d.mts +1 -1
- package/dist/esm/api/types/InternalServerErrorBody.mjs +1 -1
- package/dist/esm/api/types/InventoryLevelResource.d.mts +7 -0
- package/dist/esm/api/types/OrderResource.d.mts +27 -0
- package/dist/esm/api/types/PriceListResource.d.mts +8 -0
- package/dist/esm/api/types/PriceResource.d.mts +10 -0
- package/dist/esm/api/types/ProductCategoryResource.d.mts +8 -0
- package/dist/esm/api/types/ProductResource.d.mts +17 -0
- package/dist/esm/api/types/StandShop.d.mts +1 -1
- package/dist/esm/api/types/VariantResource.d.mts +14 -0
- package/dist/esm/api/types/index.d.mts +11 -20
- package/dist/esm/api/types/index.mjs +11 -20
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +79 -57
- package/reference.md +1038 -936
- package/dist/cjs/api/errors/ServiceUnavailableError.d.ts +0 -6
- package/dist/cjs/api/errors/ServiceUnavailableError.js +0 -54
- package/dist/cjs/api/resources/business/resources/discounts/client/Client.d.ts +0 -87
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/DeleteDiscountsRequest.d.ts +0 -10
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/GetDiscountsRequest.d.ts +0 -10
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.d.ts +0 -39
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.js +0 -18
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.d.ts +0 -38
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.js +0 -18
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/index.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/discounts/client/requests/index.js +0 -7
- package/dist/cjs/api/resources/business/resources/discounts/exports.d.ts +0 -2
- package/dist/cjs/api/resources/business/resources/discounts/types/CreateDiscountsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/discounts/types/DeleteDiscountsResponse.d.ts +0 -9
- package/dist/cjs/api/resources/business/resources/discounts/types/DeleteDiscountsResponse.js +0 -10
- package/dist/cjs/api/resources/business/resources/discounts/types/GetDiscountsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/discounts/types/ListDiscountsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/discounts/types/UpdateDiscountsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/discounts/types/index.d.ts +0 -5
- package/dist/cjs/api/resources/business/resources/productCategories/client/requests/StoreProductCategoryRequest.d.ts +0 -12
- package/dist/cjs/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoryRequest.d.ts +0 -14
- package/dist/cjs/api/resources/business/resources/productCategories/types/CreateProductCategoriesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/productCategories/types/DeleteProductCategoriesResponse.d.ts +0 -9
- package/dist/cjs/api/resources/business/resources/productCategories/types/DeleteProductCategoriesResponse.js +0 -10
- package/dist/cjs/api/resources/business/resources/productCategories/types/ListProductCategoriesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/productCategories/types/UpdateProductCategoriesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/productCategories/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.ts +0 -9
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.js +0 -10
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.ts +0 -9
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.js +0 -10
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/products/resources/images/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/StoreProductVariantRequest.d.ts +0 -34
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/StoreProductVariantRequest.js +0 -13
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/UpdateProductVariantRequest.d.ts +0 -32
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/requests/UpdateProductVariantRequest.js +0 -13
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.ts +0 -9
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.js +0 -10
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.ts +0 -9
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.js +0 -10
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/types/index.js +0 -19
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/HistoryInventoryResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/products/resources/variants/types/DeleteVariantsResponse.d.ts +0 -9
- package/dist/cjs/api/resources/business/resources/products/resources/variants/types/DeleteVariantsResponse.js +0 -10
- package/dist/cjs/api/resources/business/resources/products/types/DeleteProductsResponse.d.ts +0 -9
- package/dist/cjs/api/resources/business/resources/products/types/DeleteProductsResponse.js +0 -10
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/StoreShippingRateRequest.d.ts +0 -23
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/StoreShippingRateRequest.js +0 -11
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateShippingRateRequest.d.ts +0 -26
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateShippingRateRequest.js +0 -11
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/CreateRatesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/ListRatesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/UpdateRatesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.ts +0 -15
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.ts +0 -45
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CheckoutRequest.js +0 -11
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.ts +0 -43
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.js +0 -11
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/GetShippingOptionsRequest.d.ts +0 -28
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/SelectShippingOptionRequest.d.ts +0 -12
- package/dist/cjs/api/resources/customer/resources/cart/types/ClearCartResponse.d.ts +0 -9
- package/dist/cjs/api/resources/customer/resources/cart/types/ClearCartResponse.js +0 -10
- package/dist/cjs/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponseItem.d.ts +0 -19
- package/dist/cjs/api/resources/customer/resources/stands/client/requests/SelfCheckoutRequest.d.ts +0 -12
- package/dist/cjs/api/resources/customer/resources/stands/types/CheckoutStandsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customer/resources/stands/types/CreatePaymentIntentStandsResponse.d.ts +0 -9
- package/dist/cjs/api/types/BusinessDiscount.d.ts +0 -19
- package/dist/cjs/api/types/BusinessInventoryLog.d.ts +0 -15
- package/dist/cjs/api/types/BusinessProduct.d.ts +0 -46
- package/dist/cjs/api/types/BusinessProductCategory.d.ts +0 -13
- package/dist/cjs/api/types/BusinessProductInventorySummary.d.ts +0 -7
- package/dist/cjs/api/types/BusinessProductOrder.d.ts +0 -40
- package/dist/cjs/api/types/BusinessProductOrderItem.d.ts +0 -24
- package/dist/cjs/api/types/BusinessProductVariant.d.ts +0 -22
- package/dist/cjs/api/types/CustomerCart.d.ts +0 -9
- package/dist/cjs/api/types/CustomerCartItem.d.ts +0 -24
- package/dist/cjs/api/types/CustomerProductOrder.d.ts +0 -25
- package/dist/cjs/api/types/CustomerProductOrderItem.d.ts +0 -32
- package/dist/cjs/api/types/CustomerShopProduct.d.ts +0 -21
- package/dist/cjs/api/types/CustomerShopProductCategory.d.ts +0 -8
- package/dist/cjs/api/types/CustomerShopProductCategory.js +0 -3
- package/dist/cjs/api/types/CustomerShopProductVariant.d.ts +0 -13
- package/dist/cjs/api/types/CustomerShopProductVariant.js +0 -3
- package/dist/cjs/api/types/InventoryChangeType.d.ts +0 -9
- package/dist/cjs/api/types/InventoryChangeType.js +0 -12
- package/dist/cjs/api/types/ReorderProductImagesRequest.d.ts +0 -12
- package/dist/cjs/api/types/ReorderProductImagesRequest.js +0 -3
- package/dist/cjs/api/types/ServiceUnavailableErrorBody.d.ts +0 -3
- package/dist/cjs/api/types/ServiceUnavailableErrorBody.js +0 -3
- package/dist/cjs/api/types/ShippingRateResource.d.ts +0 -12
- package/dist/cjs/api/types/ShippingRateResource.js +0 -3
- package/dist/cjs/api/types/StoreProductImageRequest.d.ts +0 -4
- package/dist/cjs/api/types/StoreProductImageRequest.js +0 -3
- package/dist/esm/api/errors/ServiceUnavailableError.d.mts +0 -6
- package/dist/esm/api/errors/ServiceUnavailableError.mjs +0 -17
- package/dist/esm/api/resources/business/resources/discounts/client/Client.d.mts +0 -87
- package/dist/esm/api/resources/business/resources/discounts/client/requests/DeleteDiscountsRequest.d.mts +0 -10
- package/dist/esm/api/resources/business/resources/discounts/client/requests/GetDiscountsRequest.d.mts +0 -10
- package/dist/esm/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.d.mts +0 -39
- package/dist/esm/api/resources/business/resources/discounts/client/requests/StoreDiscountRequest.mjs +0 -15
- package/dist/esm/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.d.mts +0 -38
- package/dist/esm/api/resources/business/resources/discounts/client/requests/UpdateDiscountRequest.mjs +0 -15
- package/dist/esm/api/resources/business/resources/discounts/client/requests/index.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/discounts/client/requests/index.mjs +0 -2
- package/dist/esm/api/resources/business/resources/discounts/exports.d.mts +0 -2
- package/dist/esm/api/resources/business/resources/discounts/types/CreateDiscountsResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/discounts/types/DeleteDiscountsResponse.d.mts +0 -9
- package/dist/esm/api/resources/business/resources/discounts/types/DeleteDiscountsResponse.mjs +0 -7
- package/dist/esm/api/resources/business/resources/discounts/types/GetDiscountsResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/discounts/types/ListDiscountsResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/discounts/types/UpdateDiscountsResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/discounts/types/index.d.mts +0 -5
- package/dist/esm/api/resources/business/resources/discounts/types/index.mjs +0 -5
- package/dist/esm/api/resources/business/resources/productCategories/client/requests/StoreProductCategoryRequest.d.mts +0 -12
- package/dist/esm/api/resources/business/resources/productCategories/client/requests/UpdateProductCategoryRequest.d.mts +0 -14
- package/dist/esm/api/resources/business/resources/productCategories/types/CreateProductCategoriesResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/productCategories/types/DeleteProductCategoriesResponse.d.mts +0 -9
- package/dist/esm/api/resources/business/resources/productCategories/types/DeleteProductCategoriesResponse.mjs +0 -7
- package/dist/esm/api/resources/business/resources/productCategories/types/ListProductCategoriesResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/productCategories/types/UpdateProductCategoriesResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/productCategories/types/index.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/productCategories/types/index.mjs +0 -4
- package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.d.mts +0 -9
- package/dist/esm/api/resources/business/resources/products/resources/images/types/DeleteImagesResponse.mjs +0 -7
- package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.d.mts +0 -9
- package/dist/esm/api/resources/business/resources/products/resources/images/types/ReorderImagesResponse.mjs +0 -7
- package/dist/esm/api/resources/business/resources/products/resources/images/types/UploadImagesResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/products/resources/images/types/index.d.mts +0 -3
- package/dist/esm/api/resources/business/resources/products/resources/images/types/index.mjs +0 -3
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/StoreProductVariantRequest.d.mts +0 -34
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/StoreProductVariantRequest.mjs +0 -10
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/UpdateProductVariantRequest.d.mts +0 -32
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/requests/UpdateProductVariantRequest.mjs +0 -10
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.d.mts +0 -9
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/DeleteImagesResponse.mjs +0 -7
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.d.mts +0 -9
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/ReorderImagesResponse.mjs +0 -7
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.d.mts +0 -3
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/types/index.mjs +0 -3
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/HistoryInventoryResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/products/resources/variants/types/DeleteVariantsResponse.d.mts +0 -9
- package/dist/esm/api/resources/business/resources/products/resources/variants/types/DeleteVariantsResponse.mjs +0 -7
- package/dist/esm/api/resources/business/resources/products/types/DeleteProductsResponse.d.mts +0 -9
- package/dist/esm/api/resources/business/resources/products/types/DeleteProductsResponse.mjs +0 -7
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/StoreShippingRateRequest.d.mts +0 -23
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/StoreShippingRateRequest.mjs +0 -8
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateShippingRateRequest.d.mts +0 -26
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/UpdateShippingRateRequest.mjs +0 -8
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/CreateRatesResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/ListRatesResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/UpdateRatesResponse.d.mts +0 -4
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/index.d.mts +0 -3
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/index.mjs +0 -3
- package/dist/esm/api/resources/customer/resources/cart/client/requests/AddToCartRequest.d.mts +0 -15
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutRequest.d.mts +0 -45
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CheckoutRequest.mjs +0 -8
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.mts +0 -43
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.mjs +0 -8
- package/dist/esm/api/resources/customer/resources/cart/client/requests/GetShippingOptionsRequest.d.mts +0 -28
- package/dist/esm/api/resources/customer/resources/cart/client/requests/SelectShippingOptionRequest.d.mts +0 -12
- package/dist/esm/api/resources/customer/resources/cart/types/ClearCartResponse.d.mts +0 -9
- package/dist/esm/api/resources/customer/resources/cart/types/ClearCartResponse.mjs +0 -7
- package/dist/esm/api/resources/customer/resources/cart/types/GetShippingOptionsCartResponseItem.d.mts +0 -19
- package/dist/esm/api/resources/customer/resources/stands/client/requests/SelfCheckoutRequest.d.mts +0 -12
- package/dist/esm/api/resources/customer/resources/stands/types/CheckoutStandsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customer/resources/stands/types/CreatePaymentIntentStandsResponse.d.mts +0 -9
- package/dist/esm/api/types/BusinessDiscount.d.mts +0 -19
- package/dist/esm/api/types/BusinessInventoryLog.d.mts +0 -15
- package/dist/esm/api/types/BusinessProduct.d.mts +0 -46
- package/dist/esm/api/types/BusinessProductCategory.d.mts +0 -13
- package/dist/esm/api/types/BusinessProductInventorySummary.d.mts +0 -7
- package/dist/esm/api/types/BusinessProductOrder.d.mts +0 -40
- package/dist/esm/api/types/BusinessProductOrderItem.d.mts +0 -24
- package/dist/esm/api/types/BusinessProductVariant.d.mts +0 -22
- package/dist/esm/api/types/CustomerCart.d.mts +0 -9
- package/dist/esm/api/types/CustomerCartItem.d.mts +0 -24
- package/dist/esm/api/types/CustomerProductOrder.d.mts +0 -25
- package/dist/esm/api/types/CustomerProductOrderItem.d.mts +0 -32
- package/dist/esm/api/types/CustomerShopProduct.d.mts +0 -21
- package/dist/esm/api/types/CustomerShopProductCategory.d.mts +0 -8
- package/dist/esm/api/types/CustomerShopProductCategory.mjs +0 -2
- package/dist/esm/api/types/CustomerShopProductVariant.d.mts +0 -13
- package/dist/esm/api/types/CustomerShopProductVariant.mjs +0 -2
- package/dist/esm/api/types/InventoryChangeType.d.mts +0 -9
- package/dist/esm/api/types/InventoryChangeType.mjs +0 -9
- package/dist/esm/api/types/ReorderProductImagesRequest.d.mts +0 -12
- package/dist/esm/api/types/ReorderProductImagesRequest.mjs +0 -2
- package/dist/esm/api/types/ServiceUnavailableErrorBody.d.mts +0 -3
- package/dist/esm/api/types/ServiceUnavailableErrorBody.mjs +0 -2
- package/dist/esm/api/types/ShippingRateResource.d.mts +0 -12
- package/dist/esm/api/types/ShippingRateResource.mjs +0 -2
- package/dist/esm/api/types/StoreProductImageRequest.d.mts +0 -4
- package/dist/esm/api/types/StoreProductImageRequest.mjs +0 -2
- /package/dist/cjs/api/resources/business/resources/{discounts → priceLists}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts → priceLists}/client/index.js +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts/client/requests/DeleteDiscountsRequest.js → priceLists/client/requests/DeletePriceListsRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts/client/requests/GetDiscountsRequest.js → priceLists/client/requests/StorePriceListRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts → priceLists}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts → priceLists}/index.js +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts/types/CreateDiscountsResponse.js → priceLists/types/CreatePriceListsResponse.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts/types/GetDiscountsResponse.js → priceLists/types/ListPriceListsResponse.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts/types/ListDiscountsResponse.js → productCategories/client/requests/UpdateProductCategoriesRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{discounts/types/UpdateDiscountsResponse.js → productOrders/client/requests/AddTrackingProductOrdersRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{productCategories/client/requests/StoreProductCategoryRequest.js → productOrders/client/requests/ListProductOrdersRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{productCategories/client/requests/UpdateProductCategoryRequest.js → productOrders/client/requests/PurchaseLabelProductOrdersRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{productCategories/types/CreateProductCategoriesResponse.js → productOrders/client/requests/RefundProductOrdersRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{productCategories/types/ListProductCategoriesResponse.js → products/resources/variants/resources/inventory/client/requests/UpdateTrackingInventoryRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{productCategories/types/UpdateProductCategoriesResponse.js → products/resources/variants/resources/inventory/types/UpdateTrackingInventoryResponse.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{productOrders/client/requests/PurchaseLabelRequest.js → products/resources/variants/resources/prices/client/requests/SetPriceRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{productOrders/client/requests/RefundOrderRequest.js → products/resources/variants/resources/prices/types/SetPricesResponse.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/{productOrders/client/requests/StoreTrackingRequest.js → shipping/resources/rates/client/requests/UpdateRatesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{business/resources/products/resources/images/types/UploadImagesResponse.js → customer/resources/cart/client/requests/AddItemCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/{business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.js → customer/resources/cart/client/requests/CheckoutCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/{business/resources/products/resources/variants/resources/inventory/types/HistoryInventoryResponse.js → customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/{business/resources/shipping/resources/rates/types/CreateRatesResponse.js → customer/resources/cart/client/requests/GetShippingOptionsCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/{business/resources/shipping/resources/rates/types/ListRatesResponse.js → customer/resources/cart/client/requests/SelectShippingOptionCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/{business/resources/shipping/resources/rates/types/UpdateRatesResponse.js → customer/resources/cart/client/requests/UpdateItemCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/cart/{client/requests/AddToCartRequest.js → types/GetShippingOptionsCartResponse.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/{cart/client/requests/GetShippingOptionsRequest.js → events/resources/ticketing/client/requests/CreatePaymentIntentRequest.js} +0 -0
- /package/dist/cjs/api/resources/customer/resources/{cart/client/requests/SelectShippingOptionRequest.js → stands/client/requests/CheckoutStandsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/cart/client/requests/UpdateCartItemRequest.js → customerStands/client/requests/CustomerAddStandCartItemRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/cart/types/GetShippingOptionsCartResponseItem.js → customerStands/client/requests/CustomerClearStandCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/events/resources/ticketing/client/requests/AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.js → customerStands/client/requests/CustomerGetStandCartRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/stands/client/requests/SelfCheckoutRequest.js → customerStands/client/requests/CustomerStandCheckoutRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/stands/types/CheckoutStandsResponse.js → customerStands/client/requests/CustomerStandPaymentIntentRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customer/resources/stands/types/CreatePaymentIntentStandsResponse.js → customerStands/types/CustomerAddStandCartItemResponse.js} +0 -0
- /package/dist/cjs/api/{types/BusinessDiscount.js → resources/customerStands/types/CustomerGetStandCartResponse.js} +0 -0
- /package/dist/cjs/api/{types/BusinessInventoryLog.js → resources/customerStands/types/CustomerStandCheckoutResponse.js} +0 -0
- /package/dist/cjs/api/types/{BusinessProduct.js → AppHttpResourcesApiV1BusinessCommerceProductResource.js} +0 -0
- /package/dist/cjs/api/types/{BusinessProductCategory.js → CartResource.js} +0 -0
- /package/dist/cjs/api/types/{BusinessProductInventorySummary.js → CheckoutRequest.js} +0 -0
- /package/dist/cjs/api/types/{BusinessProductOrder.js → ImageResource.js} +0 -0
- /package/dist/cjs/api/types/{BusinessProductOrderItem.js → InventoryLevelResource.js} +0 -0
- /package/dist/cjs/api/types/{BusinessProductVariant.js → OrderResource.js} +0 -0
- /package/dist/cjs/api/types/{CustomerCart.js → PriceListResource.js} +0 -0
- /package/dist/cjs/api/types/{CustomerCartItem.js → PriceResource.js} +0 -0
- /package/dist/cjs/api/types/{CustomerProductOrder.js → ProductCategoryResource.js} +0 -0
- /package/dist/cjs/api/types/{CustomerProductOrderItem.js → ProductResource.js} +0 -0
- /package/dist/cjs/api/types/{CustomerShopProduct.js → VariantResource.js} +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts → priceLists}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts → priceLists}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts/client/requests/DeleteDiscountsRequest.mjs → priceLists/client/requests/DeletePriceListsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts/client/requests/GetDiscountsRequest.mjs → priceLists/client/requests/StorePriceListRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts → priceLists}/index.d.mts +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts → priceLists}/index.mjs +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts/types/CreateDiscountsResponse.mjs → priceLists/types/CreatePriceListsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts/types/GetDiscountsResponse.mjs → priceLists/types/ListPriceListsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts/types/ListDiscountsResponse.mjs → productCategories/client/requests/UpdateProductCategoriesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{discounts/types/UpdateDiscountsResponse.mjs → productOrders/client/requests/AddTrackingProductOrdersRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{productCategories/client/requests/StoreProductCategoryRequest.mjs → productOrders/client/requests/ListProductOrdersRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{productCategories/client/requests/UpdateProductCategoryRequest.mjs → productOrders/client/requests/PurchaseLabelProductOrdersRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{productCategories/types/CreateProductCategoriesResponse.mjs → productOrders/client/requests/RefundProductOrdersRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{productCategories/types/ListProductCategoriesResponse.mjs → products/resources/variants/resources/inventory/client/requests/UpdateTrackingInventoryRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{productCategories/types/UpdateProductCategoriesResponse.mjs → products/resources/variants/resources/inventory/types/UpdateTrackingInventoryResponse.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{productOrders/client/requests/PurchaseLabelRequest.mjs → products/resources/variants/resources/prices/client/requests/SetPriceRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{productOrders/client/requests/RefundOrderRequest.mjs → products/resources/variants/resources/prices/types/SetPricesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/{productOrders/client/requests/StoreTrackingRequest.mjs → shipping/resources/rates/client/requests/UpdateRatesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{business/resources/products/resources/images/types/UploadImagesResponse.mjs → customer/resources/cart/client/requests/AddItemCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{business/resources/products/resources/variants/resources/images/types/UploadImagesResponse.mjs → customer/resources/cart/client/requests/CheckoutCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{business/resources/products/resources/variants/resources/inventory/types/HistoryInventoryResponse.mjs → customer/resources/cart/client/requests/CreatePaymentIntentCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{business/resources/shipping/resources/rates/types/CreateRatesResponse.mjs → customer/resources/cart/client/requests/GetShippingOptionsCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{business/resources/shipping/resources/rates/types/ListRatesResponse.mjs → customer/resources/cart/client/requests/SelectShippingOptionCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{business/resources/shipping/resources/rates/types/UpdateRatesResponse.mjs → customer/resources/cart/client/requests/UpdateItemCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/cart/{client/requests/AddToCartRequest.mjs → types/GetShippingOptionsCartResponse.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/{cart/client/requests/GetShippingOptionsRequest.mjs → events/resources/ticketing/client/requests/CreatePaymentIntentRequest.mjs} +0 -0
- /package/dist/esm/api/resources/customer/resources/{cart/client/requests/SelectShippingOptionRequest.mjs → stands/client/requests/CheckoutStandsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/cart/client/requests/UpdateCartItemRequest.mjs → customerStands/client/requests/CustomerAddStandCartItemRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/cart/types/GetShippingOptionsCartResponseItem.mjs → customerStands/client/requests/CustomerClearStandCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/events/resources/ticketing/client/requests/AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.mjs → customerStands/client/requests/CustomerGetStandCartRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/stands/client/requests/SelfCheckoutRequest.mjs → customerStands/client/requests/CustomerStandCheckoutRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/stands/types/CheckoutStandsResponse.mjs → customerStands/client/requests/CustomerStandPaymentIntentRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customer/resources/stands/types/CreatePaymentIntentStandsResponse.mjs → customerStands/types/CustomerAddStandCartItemResponse.mjs} +0 -0
- /package/dist/esm/api/{types/BusinessDiscount.mjs → resources/customerStands/types/CustomerGetStandCartResponse.mjs} +0 -0
- /package/dist/esm/api/{types/BusinessInventoryLog.mjs → resources/customerStands/types/CustomerStandCheckoutResponse.mjs} +0 -0
- /package/dist/esm/api/types/{BusinessProduct.mjs → AppHttpResourcesApiV1BusinessCommerceProductResource.mjs} +0 -0
- /package/dist/esm/api/types/{BusinessProductCategory.mjs → CartResource.mjs} +0 -0
- /package/dist/esm/api/types/{BusinessProductInventorySummary.mjs → CheckoutRequest.mjs} +0 -0
- /package/dist/esm/api/types/{BusinessProductOrder.mjs → ImageResource.mjs} +0 -0
- /package/dist/esm/api/types/{BusinessProductOrderItem.mjs → InventoryLevelResource.mjs} +0 -0
- /package/dist/esm/api/types/{BusinessProductVariant.mjs → OrderResource.mjs} +0 -0
- /package/dist/esm/api/types/{CustomerCart.mjs → PriceListResource.mjs} +0 -0
- /package/dist/esm/api/types/{CustomerCartItem.mjs → PriceResource.mjs} +0 -0
- /package/dist/esm/api/types/{CustomerProductOrder.mjs → ProductCategoryResource.mjs} +0 -0
- /package/dist/esm/api/types/{CustomerProductOrderItem.mjs → ProductResource.mjs} +0 -0
- /package/dist/esm/api/types/{CustomerShopProduct.mjs → VariantResource.mjs} +0 -0
package/README.md
CHANGED
|
@@ -45,12 +45,10 @@ Instantiate and use the client with the following:
|
|
|
45
45
|
import { FiveOneEatClient } from "@51eat/sdk";
|
|
46
46
|
|
|
47
47
|
const client = new FiveOneEatClient({ token: "YOUR_TOKEN" });
|
|
48
|
-
await client.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
device_name: "device_name",
|
|
53
|
-
password_confirmation: "password_confirmation"
|
|
48
|
+
await client.customerStands.customerAddStandCartItem({
|
|
49
|
+
stand: "stand",
|
|
50
|
+
variant_id: "variant_id",
|
|
51
|
+
quantity: 1
|
|
54
52
|
});
|
|
55
53
|
```
|
|
56
54
|
|
|
@@ -88,7 +86,7 @@ will be thrown.
|
|
|
88
86
|
import { FiveOneEatError } from "@51eat/sdk";
|
|
89
87
|
|
|
90
88
|
try {
|
|
91
|
-
await client.
|
|
89
|
+
await client.customerStands.customerAddStandCartItem(...);
|
|
92
90
|
} catch (err) {
|
|
93
91
|
if (err instanceof FiveOneEatError) {
|
|
94
92
|
console.log(err.statusCode);
|
|
@@ -170,7 +168,7 @@ const client = new FiveOneEatClient({
|
|
|
170
168
|
}
|
|
171
169
|
});
|
|
172
170
|
|
|
173
|
-
const response = await client.
|
|
171
|
+
const response = await client.customerStands.customerAddStandCartItem(..., {
|
|
174
172
|
headers: {
|
|
175
173
|
'X-Custom-Header': 'custom value'
|
|
176
174
|
}
|
|
@@ -182,7 +180,7 @@ const response = await client.business.auth.register(..., {
|
|
|
182
180
|
If you would like to send additional query string parameters as part of the request, use the `queryParams` request option.
|
|
183
181
|
|
|
184
182
|
```typescript
|
|
185
|
-
const response = await client.
|
|
183
|
+
const response = await client.customerStands.customerAddStandCartItem(..., {
|
|
186
184
|
queryParams: {
|
|
187
185
|
'customQueryParamKey': 'custom query param value'
|
|
188
186
|
}
|
|
@@ -204,7 +202,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
|
|
|
204
202
|
Use the `maxRetries` request option to configure this behavior.
|
|
205
203
|
|
|
206
204
|
```typescript
|
|
207
|
-
const response = await client.
|
|
205
|
+
const response = await client.customerStands.customerAddStandCartItem(..., {
|
|
208
206
|
maxRetries: 0 // override maxRetries at the request level
|
|
209
207
|
});
|
|
210
208
|
```
|
|
@@ -214,7 +212,7 @@ const response = await client.business.auth.register(..., {
|
|
|
214
212
|
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
215
213
|
|
|
216
214
|
```typescript
|
|
217
|
-
const response = await client.
|
|
215
|
+
const response = await client.customerStands.customerAddStandCartItem(..., {
|
|
218
216
|
timeoutInSeconds: 30 // override timeout to 30s
|
|
219
217
|
});
|
|
220
218
|
```
|
|
@@ -225,7 +223,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
|
|
|
225
223
|
|
|
226
224
|
```typescript
|
|
227
225
|
const controller = new AbortController();
|
|
228
|
-
const response = await client.
|
|
226
|
+
const response = await client.customerStands.customerAddStandCartItem(..., {
|
|
229
227
|
abortSignal: controller.signal
|
|
230
228
|
});
|
|
231
229
|
controller.abort(); // aborts the request
|
|
@@ -237,7 +235,7 @@ The SDK provides access to raw response data, including headers, through the `.w
|
|
|
237
235
|
The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
|
|
238
236
|
|
|
239
237
|
```typescript
|
|
240
|
-
const { data, rawResponse } = await client.
|
|
238
|
+
const { data, rawResponse } = await client.customerStands.customerAddStandCartItem(...).withRawResponse();
|
|
241
239
|
|
|
242
240
|
console.log(data);
|
|
243
241
|
console.log(rawResponse.headers['X-My-Header']);
|
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@51eat/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "0.0.
|
|
47
|
-
"User-Agent": "@51eat/sdk/0.0.
|
|
46
|
+
"X-Fern-SDK-Version": "0.0.69",
|
|
47
|
+
"User-Agent": "@51eat/sdk/0.0.69",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BusinessClient } from "./api/resources/business/client/Client.js";
|
|
2
2
|
import { CustomerClient } from "./api/resources/customer/client/Client.js";
|
|
3
|
+
import { CustomerStandsClient } from "./api/resources/customerStands/client/Client.js";
|
|
3
4
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
4
5
|
import { type NormalizedClientOptionsWithAuth } from "./BaseClient.js";
|
|
5
6
|
import * as core from "./core/index.js";
|
|
@@ -11,9 +12,11 @@ export declare namespace FiveOneEatClient {
|
|
|
11
12
|
export declare class FiveOneEatClient {
|
|
12
13
|
protected readonly _options: NormalizedClientOptionsWithAuth<FiveOneEatClient.Options>;
|
|
13
14
|
protected _customer: CustomerClient | undefined;
|
|
15
|
+
protected _customerStands: CustomerStandsClient | undefined;
|
|
14
16
|
protected _business: BusinessClient | undefined;
|
|
15
17
|
constructor(options?: FiveOneEatClient.Options);
|
|
16
18
|
get customer(): CustomerClient;
|
|
19
|
+
get customerStands(): CustomerStandsClient;
|
|
17
20
|
get business(): BusinessClient;
|
|
18
21
|
/**
|
|
19
22
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
package/dist/cjs/Client.js
CHANGED
|
@@ -46,6 +46,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
46
46
|
exports.FiveOneEatClient = void 0;
|
|
47
47
|
const Client_js_1 = require("./api/resources/business/client/Client.js");
|
|
48
48
|
const Client_js_2 = require("./api/resources/customer/client/Client.js");
|
|
49
|
+
const Client_js_3 = require("./api/resources/customerStands/client/Client.js");
|
|
49
50
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
50
51
|
const core = __importStar(require("./core/index.js"));
|
|
51
52
|
class FiveOneEatClient {
|
|
@@ -56,6 +57,10 @@ class FiveOneEatClient {
|
|
|
56
57
|
var _a;
|
|
57
58
|
return ((_a = this._customer) !== null && _a !== void 0 ? _a : (this._customer = new Client_js_2.CustomerClient(this._options)));
|
|
58
59
|
}
|
|
60
|
+
get customerStands() {
|
|
61
|
+
var _a;
|
|
62
|
+
return ((_a = this._customerStands) !== null && _a !== void 0 ? _a : (this._customerStands = new Client_js_3.CustomerStandsClient(this._options)));
|
|
63
|
+
}
|
|
59
64
|
get business() {
|
|
60
65
|
var _a;
|
|
61
66
|
return ((_a = this._business) !== null && _a !== void 0 ? _a : (this._business = new Client_js_1.BusinessClient(this._options)));
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type * as core from "../../core/index.js";
|
|
2
2
|
import * as errors from "../../errors/index.js";
|
|
3
|
+
import type * as FiveOneEat from "../index.js";
|
|
3
4
|
export declare class InternalServerError extends errors.FiveOneEatError {
|
|
4
|
-
constructor(body
|
|
5
|
+
constructor(body: FiveOneEat.InternalServerErrorBody, rawResponse?: core.RawResponse);
|
|
5
6
|
}
|
|
@@ -2,6 +2,5 @@ export * from "./ConflictError.js";
|
|
|
2
2
|
export * from "./ForbiddenError.js";
|
|
3
3
|
export * from "./InternalServerError.js";
|
|
4
4
|
export * from "./NotFoundError.js";
|
|
5
|
-
export * from "./ServiceUnavailableError.js";
|
|
6
5
|
export * from "./UnauthorizedError.js";
|
|
7
6
|
export * from "./UnprocessableEntityError.js";
|
|
@@ -18,6 +18,5 @@ __exportStar(require("./ConflictError.js"), exports);
|
|
|
18
18
|
__exportStar(require("./ForbiddenError.js"), exports);
|
|
19
19
|
__exportStar(require("./InternalServerError.js"), exports);
|
|
20
20
|
__exportStar(require("./NotFoundError.js"), exports);
|
|
21
|
-
__exportStar(require("./ServiceUnavailableError.js"), exports);
|
|
22
21
|
__exportStar(require("./UnauthorizedError.js"), exports);
|
|
23
22
|
__exportStar(require("./UnprocessableEntityError.js"), exports);
|
|
@@ -8,12 +8,12 @@ import { CategoriesClient } from "../resources/categories/client/Client.js";
|
|
|
8
8
|
import { CertificationsClient } from "../resources/certifications/client/Client.js";
|
|
9
9
|
import { ClaimsClient } from "../resources/claims/client/Client.js";
|
|
10
10
|
import { CuisinesClient } from "../resources/cuisines/client/Client.js";
|
|
11
|
-
import { DiscountsClient } from "../resources/discounts/client/Client.js";
|
|
12
11
|
import { EventsClient } from "../resources/events/client/Client.js";
|
|
13
12
|
import { GalleryClient } from "../resources/gallery/client/Client.js";
|
|
14
13
|
import { HoursClient } from "../resources/hours/client/Client.js";
|
|
15
14
|
import { MenusClient } from "../resources/menus/client/Client.js";
|
|
16
15
|
import { MessagingClient } from "../resources/messaging/client/Client.js";
|
|
16
|
+
import { PriceListsClient } from "../resources/priceLists/client/Client.js";
|
|
17
17
|
import { ProductCategoriesClient } from "../resources/productCategories/client/Client.js";
|
|
18
18
|
import { ProductOrdersClient } from "../resources/productOrders/client/Client.js";
|
|
19
19
|
import { ProductsClient } from "../resources/products/client/Client.js";
|
|
@@ -32,15 +32,14 @@ export declare class BusinessClient {
|
|
|
32
32
|
protected _bulletins: BulletinsClient | undefined;
|
|
33
33
|
protected _businesses: BusinessesClient | undefined;
|
|
34
34
|
protected _claims: ClaimsClient | undefined;
|
|
35
|
-
protected
|
|
35
|
+
protected _productOrders: ProductOrdersClient | undefined;
|
|
36
|
+
protected _priceLists: PriceListsClient | undefined;
|
|
37
|
+
protected _products: ProductsClient | undefined;
|
|
36
38
|
protected _events: EventsClient | undefined;
|
|
37
39
|
protected _gallery: GalleryClient | undefined;
|
|
38
40
|
protected _hours: HoursClient | undefined;
|
|
39
41
|
protected _menus: MenusClient | undefined;
|
|
40
42
|
protected _messaging: MessagingClient | undefined;
|
|
41
|
-
protected _productOrders: ProductOrdersClient | undefined;
|
|
42
|
-
protected _products: ProductsClient | undefined;
|
|
43
|
-
protected _productCategories: ProductCategoriesClient | undefined;
|
|
44
43
|
protected _profile: ProfileClient | undefined;
|
|
45
44
|
protected _pushNotifications: PushNotificationsClient | undefined;
|
|
46
45
|
protected _stands: StandsClient | undefined;
|
|
@@ -50,21 +49,21 @@ export declare class BusinessClient {
|
|
|
50
49
|
protected _categories: CategoriesClient | undefined;
|
|
51
50
|
protected _allergens: AllergensClient | undefined;
|
|
52
51
|
protected _temporaryLocations: TemporaryLocationsClient | undefined;
|
|
52
|
+
protected _productCategories: ProductCategoriesClient | undefined;
|
|
53
53
|
protected _shipping: ShippingClient | undefined;
|
|
54
54
|
constructor(options?: BusinessClient.Options);
|
|
55
55
|
get auth(): AuthClient;
|
|
56
56
|
get bulletins(): BulletinsClient;
|
|
57
57
|
get businesses(): BusinessesClient;
|
|
58
58
|
get claims(): ClaimsClient;
|
|
59
|
-
get
|
|
59
|
+
get productOrders(): ProductOrdersClient;
|
|
60
|
+
get priceLists(): PriceListsClient;
|
|
61
|
+
get products(): ProductsClient;
|
|
60
62
|
get events(): EventsClient;
|
|
61
63
|
get gallery(): GalleryClient;
|
|
62
64
|
get hours(): HoursClient;
|
|
63
65
|
get menus(): MenusClient;
|
|
64
66
|
get messaging(): MessagingClient;
|
|
65
|
-
get productOrders(): ProductOrdersClient;
|
|
66
|
-
get products(): ProductsClient;
|
|
67
|
-
get productCategories(): ProductCategoriesClient;
|
|
68
67
|
get profile(): ProfileClient;
|
|
69
68
|
get pushNotifications(): PushNotificationsClient;
|
|
70
69
|
get stands(): StandsClient;
|
|
@@ -74,5 +73,6 @@ export declare class BusinessClient {
|
|
|
74
73
|
get categories(): CategoriesClient;
|
|
75
74
|
get allergens(): AllergensClient;
|
|
76
75
|
get temporaryLocations(): TemporaryLocationsClient;
|
|
76
|
+
get productCategories(): ProductCategoriesClient;
|
|
77
77
|
get shipping(): ShippingClient;
|
|
78
78
|
}
|
|
@@ -11,12 +11,12 @@ const Client_js_5 = require("../resources/categories/client/Client.js");
|
|
|
11
11
|
const Client_js_6 = require("../resources/certifications/client/Client.js");
|
|
12
12
|
const Client_js_7 = require("../resources/claims/client/Client.js");
|
|
13
13
|
const Client_js_8 = require("../resources/cuisines/client/Client.js");
|
|
14
|
-
const Client_js_9 = require("../resources/
|
|
15
|
-
const Client_js_10 = require("../resources/
|
|
16
|
-
const Client_js_11 = require("../resources/
|
|
17
|
-
const Client_js_12 = require("../resources/
|
|
18
|
-
const Client_js_13 = require("../resources/
|
|
19
|
-
const Client_js_14 = require("../resources/
|
|
14
|
+
const Client_js_9 = require("../resources/events/client/Client.js");
|
|
15
|
+
const Client_js_10 = require("../resources/gallery/client/Client.js");
|
|
16
|
+
const Client_js_11 = require("../resources/hours/client/Client.js");
|
|
17
|
+
const Client_js_12 = require("../resources/menus/client/Client.js");
|
|
18
|
+
const Client_js_13 = require("../resources/messaging/client/Client.js");
|
|
19
|
+
const Client_js_14 = require("../resources/priceLists/client/Client.js");
|
|
20
20
|
const Client_js_15 = require("../resources/productCategories/client/Client.js");
|
|
21
21
|
const Client_js_16 = require("../resources/productOrders/client/Client.js");
|
|
22
22
|
const Client_js_17 = require("../resources/products/client/Client.js");
|
|
@@ -46,41 +46,37 @@ class BusinessClient {
|
|
|
46
46
|
var _a;
|
|
47
47
|
return ((_a = this._claims) !== null && _a !== void 0 ? _a : (this._claims = new Client_js_7.ClaimsClient(this._options)));
|
|
48
48
|
}
|
|
49
|
-
get
|
|
49
|
+
get productOrders() {
|
|
50
|
+
var _a;
|
|
51
|
+
return ((_a = this._productOrders) !== null && _a !== void 0 ? _a : (this._productOrders = new Client_js_16.ProductOrdersClient(this._options)));
|
|
52
|
+
}
|
|
53
|
+
get priceLists() {
|
|
54
|
+
var _a;
|
|
55
|
+
return ((_a = this._priceLists) !== null && _a !== void 0 ? _a : (this._priceLists = new Client_js_14.PriceListsClient(this._options)));
|
|
56
|
+
}
|
|
57
|
+
get products() {
|
|
50
58
|
var _a;
|
|
51
|
-
return ((_a = this.
|
|
59
|
+
return ((_a = this._products) !== null && _a !== void 0 ? _a : (this._products = new Client_js_17.ProductsClient(this._options)));
|
|
52
60
|
}
|
|
53
61
|
get events() {
|
|
54
62
|
var _a;
|
|
55
|
-
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new
|
|
63
|
+
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_js_9.EventsClient(this._options)));
|
|
56
64
|
}
|
|
57
65
|
get gallery() {
|
|
58
66
|
var _a;
|
|
59
|
-
return ((_a = this._gallery) !== null && _a !== void 0 ? _a : (this._gallery = new
|
|
67
|
+
return ((_a = this._gallery) !== null && _a !== void 0 ? _a : (this._gallery = new Client_js_10.GalleryClient(this._options)));
|
|
60
68
|
}
|
|
61
69
|
get hours() {
|
|
62
70
|
var _a;
|
|
63
|
-
return ((_a = this._hours) !== null && _a !== void 0 ? _a : (this._hours = new
|
|
71
|
+
return ((_a = this._hours) !== null && _a !== void 0 ? _a : (this._hours = new Client_js_11.HoursClient(this._options)));
|
|
64
72
|
}
|
|
65
73
|
get menus() {
|
|
66
74
|
var _a;
|
|
67
|
-
return ((_a = this._menus) !== null && _a !== void 0 ? _a : (this._menus = new
|
|
75
|
+
return ((_a = this._menus) !== null && _a !== void 0 ? _a : (this._menus = new Client_js_12.MenusClient(this._options)));
|
|
68
76
|
}
|
|
69
77
|
get messaging() {
|
|
70
78
|
var _a;
|
|
71
|
-
return ((_a = this._messaging) !== null && _a !== void 0 ? _a : (this._messaging = new
|
|
72
|
-
}
|
|
73
|
-
get productOrders() {
|
|
74
|
-
var _a;
|
|
75
|
-
return ((_a = this._productOrders) !== null && _a !== void 0 ? _a : (this._productOrders = new Client_js_16.ProductOrdersClient(this._options)));
|
|
76
|
-
}
|
|
77
|
-
get products() {
|
|
78
|
-
var _a;
|
|
79
|
-
return ((_a = this._products) !== null && _a !== void 0 ? _a : (this._products = new Client_js_17.ProductsClient(this._options)));
|
|
80
|
-
}
|
|
81
|
-
get productCategories() {
|
|
82
|
-
var _a;
|
|
83
|
-
return ((_a = this._productCategories) !== null && _a !== void 0 ? _a : (this._productCategories = new Client_js_15.ProductCategoriesClient(this._options)));
|
|
79
|
+
return ((_a = this._messaging) !== null && _a !== void 0 ? _a : (this._messaging = new Client_js_13.MessagingClient(this._options)));
|
|
84
80
|
}
|
|
85
81
|
get profile() {
|
|
86
82
|
var _a;
|
|
@@ -118,6 +114,10 @@ class BusinessClient {
|
|
|
118
114
|
var _a;
|
|
119
115
|
return ((_a = this._temporaryLocations) !== null && _a !== void 0 ? _a : (this._temporaryLocations = new Client_js_23.TemporaryLocationsClient(this._options)));
|
|
120
116
|
}
|
|
117
|
+
get productCategories() {
|
|
118
|
+
var _a;
|
|
119
|
+
return ((_a = this._productCategories) !== null && _a !== void 0 ? _a : (this._productCategories = new Client_js_15.ProductCategoriesClient(this._options)));
|
|
120
|
+
}
|
|
121
121
|
get shipping() {
|
|
122
122
|
var _a;
|
|
123
123
|
return ((_a = this._shipping) !== null && _a !== void 0 ? _a : (this._shipping = new Client_js_20.ShippingClient(this._options)));
|
|
@@ -18,9 +18,6 @@ export * as claims from "./claims/index.js";
|
|
|
18
18
|
export * from "./claims/types/index.js";
|
|
19
19
|
export * as cuisines from "./cuisines/index.js";
|
|
20
20
|
export * from "./cuisines/types/index.js";
|
|
21
|
-
export * from "./discounts/client/requests/index.js";
|
|
22
|
-
export * as discounts from "./discounts/index.js";
|
|
23
|
-
export * from "./discounts/types/index.js";
|
|
24
21
|
export * from "./events/client/requests/index.js";
|
|
25
22
|
export * as events from "./events/index.js";
|
|
26
23
|
export * from "./events/types/index.js";
|
|
@@ -35,9 +32,11 @@ export * as menus from "./menus/index.js";
|
|
|
35
32
|
export * from "./menus/types/index.js";
|
|
36
33
|
export * from "./messaging/client/requests/index.js";
|
|
37
34
|
export * as messaging from "./messaging/index.js";
|
|
35
|
+
export * from "./priceLists/client/requests/index.js";
|
|
36
|
+
export * as priceLists from "./priceLists/index.js";
|
|
37
|
+
export * from "./priceLists/types/index.js";
|
|
38
38
|
export * from "./productCategories/client/requests/index.js";
|
|
39
39
|
export * as productCategories from "./productCategories/index.js";
|
|
40
|
-
export * from "./productCategories/types/index.js";
|
|
41
40
|
export * from "./productOrders/client/requests/index.js";
|
|
42
41
|
export * as productOrders from "./productOrders/index.js";
|
|
43
42
|
export * from "./productOrders/types/index.js";
|
|
@@ -36,7 +36,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.temporaryLocations = exports.stripeConnect = exports.stands = exports.shipping = exports.pushNotifications = exports.profile = exports.products = exports.productOrders = exports.productCategories = exports.messaging = exports.menus = exports.hours = exports.gallery = exports.events = exports.
|
|
39
|
+
exports.temporaryLocations = exports.stripeConnect = exports.stands = exports.shipping = exports.pushNotifications = exports.profile = exports.products = exports.productOrders = exports.productCategories = exports.priceLists = exports.messaging = exports.menus = exports.hours = exports.gallery = exports.events = exports.cuisines = exports.claims = exports.certifications = exports.categories = exports.businesses = exports.bulletins = exports.auth = exports.allergens = void 0;
|
|
40
40
|
exports.allergens = __importStar(require("./allergens/index.js"));
|
|
41
41
|
__exportStar(require("./allergens/types/index.js"), exports);
|
|
42
42
|
__exportStar(require("./auth/client/requests/index.js"), exports);
|
|
@@ -57,9 +57,6 @@ exports.claims = __importStar(require("./claims/index.js"));
|
|
|
57
57
|
__exportStar(require("./claims/types/index.js"), exports);
|
|
58
58
|
exports.cuisines = __importStar(require("./cuisines/index.js"));
|
|
59
59
|
__exportStar(require("./cuisines/types/index.js"), exports);
|
|
60
|
-
__exportStar(require("./discounts/client/requests/index.js"), exports);
|
|
61
|
-
exports.discounts = __importStar(require("./discounts/index.js"));
|
|
62
|
-
__exportStar(require("./discounts/types/index.js"), exports);
|
|
63
60
|
__exportStar(require("./events/client/requests/index.js"), exports);
|
|
64
61
|
exports.events = __importStar(require("./events/index.js"));
|
|
65
62
|
__exportStar(require("./events/types/index.js"), exports);
|
|
@@ -74,9 +71,11 @@ exports.menus = __importStar(require("./menus/index.js"));
|
|
|
74
71
|
__exportStar(require("./menus/types/index.js"), exports);
|
|
75
72
|
__exportStar(require("./messaging/client/requests/index.js"), exports);
|
|
76
73
|
exports.messaging = __importStar(require("./messaging/index.js"));
|
|
74
|
+
__exportStar(require("./priceLists/client/requests/index.js"), exports);
|
|
75
|
+
exports.priceLists = __importStar(require("./priceLists/index.js"));
|
|
76
|
+
__exportStar(require("./priceLists/types/index.js"), exports);
|
|
77
77
|
__exportStar(require("./productCategories/client/requests/index.js"), exports);
|
|
78
78
|
exports.productCategories = __importStar(require("./productCategories/index.js"));
|
|
79
|
-
__exportStar(require("./productCategories/types/index.js"), exports);
|
|
80
79
|
__exportStar(require("./productOrders/client/requests/index.js"), exports);
|
|
81
80
|
exports.productOrders = __importStar(require("./productOrders/index.js"));
|
|
82
81
|
__exportStar(require("./productOrders/types/index.js"), exports);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../../../core/index.js";
|
|
4
|
+
import * as FiveOneEat from "../../../../../index.js";
|
|
5
|
+
export declare namespace PriceListsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class PriceListsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<PriceListsClient.Options>;
|
|
12
|
+
constructor(options?: PriceListsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {PriceListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
15
|
+
*
|
|
16
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* await client.business.priceLists.list()
|
|
20
|
+
*/
|
|
21
|
+
list(requestOptions?: PriceListsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.ListPriceListsResponse>;
|
|
22
|
+
private __list;
|
|
23
|
+
/**
|
|
24
|
+
* @param {FiveOneEat.business.StorePriceListRequest} request
|
|
25
|
+
* @param {PriceListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
|
+
*
|
|
27
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
28
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* await client.business.priceLists.create({
|
|
32
|
+
* name: "name"
|
|
33
|
+
* })
|
|
34
|
+
*/
|
|
35
|
+
create(request: FiveOneEat.business.StorePriceListRequest, requestOptions?: PriceListsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.CreatePriceListsResponse>;
|
|
36
|
+
private __create;
|
|
37
|
+
/**
|
|
38
|
+
* @param {FiveOneEat.business.DeletePriceListsRequest} request
|
|
39
|
+
* @param {PriceListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
|
+
*
|
|
41
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
42
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
43
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
44
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* await client.business.priceLists.delete({
|
|
48
|
+
* priceList: "priceList"
|
|
49
|
+
* })
|
|
50
|
+
*/
|
|
51
|
+
delete(request: FiveOneEat.business.DeletePriceListsRequest, requestOptions?: PriceListsClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
52
|
+
private __delete;
|
|
53
|
+
}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.PriceListsClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../../../BaseClient.js");
|
|
48
|
+
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
49
|
+
const core = __importStar(require("../../../../../../core/index.js"));
|
|
50
|
+
const environments = __importStar(require("../../../../../../environments.js"));
|
|
51
|
+
const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
|
|
52
|
+
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
53
|
+
const FiveOneEat = __importStar(require("../../../../../index.js"));
|
|
54
|
+
class PriceListsClient {
|
|
55
|
+
constructor(options = {}) {
|
|
56
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* @param {PriceListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
|
+
*
|
|
61
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* await client.business.priceLists.list()
|
|
65
|
+
*/
|
|
66
|
+
list(requestOptions) {
|
|
67
|
+
return core.HttpResponsePromise.fromPromise(this.__list(requestOptions));
|
|
68
|
+
}
|
|
69
|
+
__list(requestOptions) {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
72
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
73
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
74
|
+
const _response = yield core.fetcher({
|
|
75
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, "business/price-lists"),
|
|
76
|
+
method: "GET",
|
|
77
|
+
headers: _headers,
|
|
78
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
79
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
80
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
81
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
82
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
83
|
+
logging: this._options.logging,
|
|
84
|
+
});
|
|
85
|
+
if (_response.ok) {
|
|
86
|
+
return {
|
|
87
|
+
data: _response.body,
|
|
88
|
+
rawResponse: _response.rawResponse,
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
if (_response.error.reason === "status-code") {
|
|
92
|
+
switch (_response.error.statusCode) {
|
|
93
|
+
case 401:
|
|
94
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
95
|
+
default:
|
|
96
|
+
throw new errors.FiveOneEatError({
|
|
97
|
+
statusCode: _response.error.statusCode,
|
|
98
|
+
body: _response.error.body,
|
|
99
|
+
rawResponse: _response.rawResponse,
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/business/price-lists");
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* @param {FiveOneEat.business.StorePriceListRequest} request
|
|
108
|
+
* @param {PriceListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
111
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* await client.business.priceLists.create({
|
|
115
|
+
* name: "name"
|
|
116
|
+
* })
|
|
117
|
+
*/
|
|
118
|
+
create(request, requestOptions) {
|
|
119
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
120
|
+
}
|
|
121
|
+
__create(request, requestOptions) {
|
|
122
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
124
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
125
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
126
|
+
const _response = yield core.fetcher({
|
|
127
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, "business/price-lists"),
|
|
128
|
+
method: "POST",
|
|
129
|
+
headers: _headers,
|
|
130
|
+
contentType: "application/json",
|
|
131
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
132
|
+
requestType: "json",
|
|
133
|
+
body: request,
|
|
134
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
135
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
136
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
137
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
138
|
+
logging: this._options.logging,
|
|
139
|
+
});
|
|
140
|
+
if (_response.ok) {
|
|
141
|
+
return {
|
|
142
|
+
data: _response.body,
|
|
143
|
+
rawResponse: _response.rawResponse,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
if (_response.error.reason === "status-code") {
|
|
147
|
+
switch (_response.error.statusCode) {
|
|
148
|
+
case 401:
|
|
149
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
150
|
+
case 422:
|
|
151
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
152
|
+
default:
|
|
153
|
+
throw new errors.FiveOneEatError({
|
|
154
|
+
statusCode: _response.error.statusCode,
|
|
155
|
+
body: _response.error.body,
|
|
156
|
+
rawResponse: _response.rawResponse,
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/business/price-lists");
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* @param {FiveOneEat.business.DeletePriceListsRequest} request
|
|
165
|
+
* @param {PriceListsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
166
|
+
*
|
|
167
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
168
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
169
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
170
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
171
|
+
*
|
|
172
|
+
* @example
|
|
173
|
+
* await client.business.priceLists.delete({
|
|
174
|
+
* priceList: "priceList"
|
|
175
|
+
* })
|
|
176
|
+
*/
|
|
177
|
+
delete(request, requestOptions) {
|
|
178
|
+
return core.HttpResponsePromise.fromPromise(this.__delete(request, requestOptions));
|
|
179
|
+
}
|
|
180
|
+
__delete(request, requestOptions) {
|
|
181
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
182
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
183
|
+
const { priceList } = request;
|
|
184
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
185
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
186
|
+
const _response = yield core.fetcher({
|
|
187
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, `business/price-lists/${core.url.encodePathParam(priceList)}`),
|
|
188
|
+
method: "DELETE",
|
|
189
|
+
headers: _headers,
|
|
190
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
191
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
192
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
193
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
194
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
195
|
+
logging: this._options.logging,
|
|
196
|
+
});
|
|
197
|
+
if (_response.ok) {
|
|
198
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
199
|
+
}
|
|
200
|
+
if (_response.error.reason === "status-code") {
|
|
201
|
+
switch (_response.error.statusCode) {
|
|
202
|
+
case 401:
|
|
203
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
204
|
+
case 403:
|
|
205
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
206
|
+
case 404:
|
|
207
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
208
|
+
case 422:
|
|
209
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
210
|
+
default:
|
|
211
|
+
throw new errors.FiveOneEatError({
|
|
212
|
+
statusCode: _response.error.statusCode,
|
|
213
|
+
body: _response.error.body,
|
|
214
|
+
rawResponse: _response.rawResponse,
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/business/price-lists/{priceList}");
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
exports.PriceListsClient = PriceListsClient;
|