@51eat/sdk 0.0.61 → 0.0.63
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 +13 -15
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +9 -0
- package/dist/cjs/Client.js +35 -20
- package/dist/cjs/api/resources/business/resources/bulletins/client/Client.d.ts +7 -0
- package/dist/cjs/api/resources/business/resources/bulletins/client/Client.js +21 -0
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/StoreBusinessRequest.d.ts +0 -12
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/UpdateBusinessRequest.d.ts +0 -12
- package/dist/cjs/api/resources/business/resources/events/client/Client.d.ts +8 -0
- package/dist/cjs/api/resources/business/resources/events/client/Client.js +24 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/StoreEventRequest.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/events/client/requests/UpdateEventRequest.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/events/resources/checkIn/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/events/resources/checkIn/client/Client.js +6 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/client/Client.js +6 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/Client.js +6 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/StoreTicketTypeRequest.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/menus/client/Client.d.ts +5 -0
- package/dist/cjs/api/resources/business/resources/menus/client/Client.js +15 -0
- package/dist/cjs/api/resources/business/resources/menus/resources/groups/client/Client.d.ts +5 -2
- package/dist/cjs/api/resources/business/resources/menus/resources/groups/client/Client.js +10 -1
- package/dist/cjs/api/resources/business/resources/menus/resources/groups/client/requests/{ReorderGroupsRequest.d.ts → ReorderMenuGroupsRequest.d.ts} +3 -3
- package/dist/cjs/api/resources/business/resources/menus/resources/groups/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/business/resources/menus/resources/items/client/Client.d.ts +7 -4
- package/dist/cjs/api/resources/business/resources/menus/resources/items/client/Client.js +11 -2
- package/dist/{esm/api/resources/business/resources/menus/resources/items/client/requests/MoveItemsRequest.d.mts → cjs/api/resources/business/resources/menus/resources/items/client/requests/MoveMenuItemRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/business/resources/menus/resources/items/client/requests/{ReorderItemsRequest.d.ts → ReorderMenuItemsRequest.d.ts} +3 -3
- package/dist/cjs/api/resources/business/resources/menus/resources/items/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/business/resources/menus/resources/items/resources/modifiers/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/menus/resources/items/resources/modifiers/client/Client.js +6 -0
- package/dist/cjs/api/resources/business/resources/menus/resources/items/resources/variations/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/menus/resources/items/resources/variations/client/Client.js +6 -0
- package/dist/cjs/api/resources/business/resources/productCategories/client/Client.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/productCategories/client/Client.js +12 -0
- package/dist/cjs/api/resources/business/resources/products/client/Client.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/products/client/Client.js +12 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.js +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.js +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/images/client/Client.js +3 -0
- package/dist/cjs/api/resources/business/resources/profile/client/requests/UpdateBusinessProfileRequest.d.ts +0 -13
- package/dist/cjs/api/resources/businessHours/client/Client.d.ts +91 -0
- package/dist/cjs/api/resources/businessHours/client/Client.js +361 -0
- package/dist/cjs/api/resources/businessHours/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/businessHours/client/index.js +17 -0
- package/dist/cjs/api/resources/businessHours/client/requests/DeleteBusinessHourExceptionRequest.d.ts +10 -0
- package/dist/cjs/api/resources/businessHours/client/requests/DeleteBusinessHourExceptionRequest.js +3 -0
- package/dist/cjs/api/resources/businessHours/client/requests/StoreBusinessHourExceptionRequest.d.ts +16 -0
- package/dist/cjs/api/resources/businessHours/client/requests/StoreBusinessHourExceptionRequest.js +3 -0
- package/dist/cjs/api/resources/businessHours/client/requests/UpdateBusinessHourExceptionRequest.d.ts +19 -0
- package/dist/cjs/api/resources/businessHours/client/requests/UpdateBusinessHourExceptionRequest.js +3 -0
- package/dist/cjs/api/resources/businessHours/client/requests/UpdateBusinessHoursRequest.d.ts +25 -0
- package/dist/cjs/api/resources/businessHours/client/requests/UpdateBusinessHoursRequest.js +3 -0
- package/dist/cjs/api/resources/businessHours/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/businessHours/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/businessHours/exports.d.ts +2 -0
- package/dist/cjs/api/resources/businessHours/exports.js +21 -0
- package/dist/cjs/api/resources/businessHours/index.d.ts +2 -0
- package/dist/cjs/api/resources/businessHours/index.js +18 -0
- package/dist/cjs/api/resources/businessHours/types/CreateBusinessHourExceptionResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessHours/types/CreateBusinessHourExceptionResponse.js +3 -0
- package/dist/cjs/api/resources/businessHours/types/GetBusinessHoursResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessHours/types/GetBusinessHoursResponse.js +3 -0
- package/dist/cjs/api/resources/businessHours/types/UpdateBusinessHourExceptionResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessHours/types/UpdateBusinessHourExceptionResponse.js +3 -0
- package/dist/cjs/api/resources/businessHours/types/UpdateBusinessHoursResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessHours/types/UpdateBusinessHoursResponse.js +3 -0
- package/dist/cjs/api/resources/businessHours/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/businessHours/types/index.js +20 -0
- package/dist/cjs/api/resources/businessProducts/client/Client.d.ts +2 -0
- package/dist/cjs/api/resources/businessProducts/client/Client.js +6 -0
- package/dist/cjs/api/resources/businessStands/client/Client.d.ts +106 -0
- package/dist/cjs/api/resources/businessStands/client/Client.js +421 -0
- package/dist/cjs/api/resources/businessStands/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/businessStands/client/index.js +17 -0
- package/dist/cjs/api/resources/businessStands/client/requests/DeleteBusinessStandRequest.d.ts +10 -0
- package/dist/cjs/api/resources/businessStands/client/requests/DeleteBusinessStandRequest.js +3 -0
- package/dist/cjs/api/resources/businessStands/client/requests/GetBusinessStandRequest.d.ts +10 -0
- package/dist/cjs/api/resources/businessStands/client/requests/GetBusinessStandRequest.js +3 -0
- package/dist/cjs/api/resources/businessStands/client/requests/StoreStandRequest.d.ts +18 -0
- package/dist/cjs/api/resources/businessStands/client/requests/StoreStandRequest.js +3 -0
- package/dist/cjs/api/resources/businessStands/client/requests/SyncStandProductsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/businessStands/client/requests/SyncStandProductsRequest.js +3 -0
- package/dist/cjs/api/resources/businessStands/client/requests/UpdateStandRequest.d.ts +20 -0
- package/dist/cjs/api/resources/businessStands/client/requests/UpdateStandRequest.js +3 -0
- package/dist/cjs/api/resources/businessStands/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/businessStands/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/businessStands/exports.d.ts +2 -0
- package/dist/cjs/api/resources/businessStands/exports.js +21 -0
- package/dist/cjs/api/resources/businessStands/index.d.ts +2 -0
- package/dist/cjs/api/resources/businessStands/index.js +18 -0
- package/dist/cjs/api/resources/businessStands/types/CreateBusinessStandResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessStands/types/CreateBusinessStandResponse.js +3 -0
- package/dist/cjs/api/resources/businessStands/types/GetBusinessStandResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessStands/types/GetBusinessStandResponse.js +3 -0
- package/dist/cjs/api/resources/businessStands/types/ListBusinessStandsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessStands/types/ListBusinessStandsResponse.js +3 -0
- package/dist/cjs/api/resources/businessStands/types/UpdateBusinessStandResponse.d.ts +4 -0
- package/dist/cjs/api/resources/businessStands/types/UpdateBusinessStandResponse.js +3 -0
- package/dist/cjs/api/resources/businessStands/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/businessStands/types/index.js +20 -0
- package/dist/cjs/api/resources/customerStands/client/Client.d.ts +63 -0
- package/dist/cjs/api/resources/customerStands/client/Client.js +245 -0
- 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/CreateStandPaymentIntentRequest.d.ts +11 -0
- package/dist/cjs/api/resources/customerStands/client/requests/CreateStandPaymentIntentRequest.js +3 -0
- package/dist/cjs/api/resources/customerStands/client/requests/ScanStandRequest.d.ts +10 -0
- package/dist/cjs/api/resources/customerStands/client/requests/ScanStandRequest.js +3 -0
- package/dist/cjs/api/resources/customerStands/client/requests/SelfCheckoutRequest.d.ts +12 -0
- package/dist/cjs/api/resources/customerStands/client/requests/SelfCheckoutRequest.js +3 -0
- package/dist/cjs/api/resources/customerStands/client/requests/index.d.ts +3 -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/CreateStandPaymentIntentResponse.d.ts +6 -0
- package/dist/cjs/api/resources/customerStands/types/CreateStandPaymentIntentResponse.js +3 -0
- package/dist/cjs/api/resources/customerStands/types/ScanStandResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerStands/types/ScanStandResponse.js +3 -0
- package/dist/cjs/api/resources/customerStands/types/StandCheckoutResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customerStands/types/StandCheckoutResponse.js +3 -0
- package/dist/cjs/api/resources/customerStands/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/customerStands/types/index.js +19 -0
- package/dist/cjs/api/resources/index.d.ts +9 -0
- package/dist/cjs/api/resources/index.js +10 -1
- package/dist/cjs/api/types/BusinessEvent.d.ts +3 -0
- package/dist/cjs/api/types/BusinessHourExceptionResource.d.ts +10 -0
- package/dist/cjs/api/types/BusinessHourExceptionResource.js +3 -0
- package/dist/cjs/api/types/BusinessHourSlotResource.d.ts +6 -0
- package/dist/cjs/api/types/BusinessHourSlotResource.js +3 -0
- package/dist/cjs/api/types/BusinessHoursResource.d.ts +7 -0
- package/dist/cjs/api/types/BusinessHoursResource.js +3 -0
- package/dist/cjs/api/types/BusinessInventoryLog.d.ts +2 -2
- package/dist/cjs/api/types/BusinessMenu.d.ts +1 -0
- package/dist/cjs/api/types/BusinessMenuItem.d.ts +5 -1
- package/dist/cjs/api/types/BusinessProduct.d.ts +14 -0
- package/dist/cjs/api/types/BusinessProductCategory.d.ts +1 -0
- package/dist/cjs/api/types/BusinessProfile.d.ts +6 -9
- package/dist/cjs/api/types/BusinessScheduleDayResource.d.ts +5 -0
- package/dist/cjs/api/types/BusinessScheduleDayResource.js +3 -0
- package/dist/cjs/api/types/BusinessStand.d.ts +16 -0
- package/dist/cjs/api/types/BusinessStand.js +3 -0
- package/dist/cjs/api/types/CustomerBusinessProfile.d.ts +6 -10
- package/dist/cjs/api/types/CustomerCartItem.d.ts +1 -1
- package/dist/cjs/api/types/CustomerEventDetail.d.ts +1 -1
- package/dist/cjs/api/types/EventFeedItem.d.ts +1 -1
- package/dist/cjs/api/types/ExploreEvent.d.ts +2 -1
- package/dist/cjs/api/types/ExploreTemporaryLocation.d.ts +2 -1
- package/dist/cjs/api/types/StandShop.d.ts +24 -0
- package/dist/cjs/api/types/StandShop.js +3 -0
- package/dist/cjs/api/types/index.d.ts +6 -0
- package/dist/cjs/api/types/index.js +6 -0
- 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 +9 -0
- package/dist/esm/Client.mjs +15 -0
- package/dist/esm/api/resources/business/resources/bulletins/client/Client.d.mts +7 -0
- package/dist/esm/api/resources/business/resources/bulletins/client/Client.mjs +21 -0
- package/dist/esm/api/resources/business/resources/businesses/client/requests/StoreBusinessRequest.d.mts +0 -12
- package/dist/esm/api/resources/business/resources/businesses/client/requests/UpdateBusinessRequest.d.mts +0 -12
- package/dist/esm/api/resources/business/resources/events/client/Client.d.mts +8 -0
- package/dist/esm/api/resources/business/resources/events/client/Client.mjs +24 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/StoreEventRequest.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/events/client/requests/UpdateEventRequest.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/checkIn/client/Client.mjs +6 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/client/Client.mjs +6 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/Client.mjs +6 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/StoreTicketTypeRequest.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/menus/client/Client.d.mts +5 -0
- package/dist/esm/api/resources/business/resources/menus/client/Client.mjs +15 -0
- package/dist/esm/api/resources/business/resources/menus/resources/groups/client/Client.d.mts +5 -2
- package/dist/esm/api/resources/business/resources/menus/resources/groups/client/Client.mjs +10 -1
- package/dist/esm/api/resources/business/resources/menus/resources/groups/client/requests/{ReorderGroupsRequest.d.mts → ReorderMenuGroupsRequest.d.mts} +3 -3
- package/dist/esm/api/resources/business/resources/menus/resources/groups/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/business/resources/menus/resources/items/client/Client.d.mts +7 -4
- package/dist/esm/api/resources/business/resources/menus/resources/items/client/Client.mjs +11 -2
- package/dist/{cjs/api/resources/business/resources/menus/resources/items/client/requests/MoveItemsRequest.d.ts → esm/api/resources/business/resources/menus/resources/items/client/requests/MoveMenuItemRequest.d.mts} +1 -1
- package/dist/esm/api/resources/business/resources/menus/resources/items/client/requests/{ReorderItemsRequest.d.mts → ReorderMenuItemsRequest.d.mts} +3 -3
- package/dist/esm/api/resources/business/resources/menus/resources/items/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/business/resources/menus/resources/items/resources/modifiers/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/menus/resources/items/resources/modifiers/client/Client.mjs +6 -0
- package/dist/esm/api/resources/business/resources/menus/resources/items/resources/variations/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/menus/resources/items/resources/variations/client/Client.mjs +6 -0
- package/dist/esm/api/resources/business/resources/productCategories/client/Client.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/productCategories/client/Client.mjs +12 -0
- package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/products/client/Client.mjs +12 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/images/client/Client.mjs +3 -0
- package/dist/esm/api/resources/business/resources/profile/client/requests/UpdateBusinessProfileRequest.d.mts +0 -13
- package/dist/esm/api/resources/businessHours/client/Client.d.mts +91 -0
- package/dist/esm/api/resources/businessHours/client/Client.mjs +324 -0
- package/dist/esm/api/resources/businessHours/client/index.d.mts +1 -0
- package/dist/esm/api/resources/businessHours/client/index.mjs +1 -0
- package/dist/esm/api/resources/businessHours/client/requests/DeleteBusinessHourExceptionRequest.d.mts +10 -0
- package/dist/esm/api/resources/businessHours/client/requests/DeleteBusinessHourExceptionRequest.mjs +2 -0
- package/dist/esm/api/resources/businessHours/client/requests/StoreBusinessHourExceptionRequest.d.mts +16 -0
- package/dist/esm/api/resources/businessHours/client/requests/StoreBusinessHourExceptionRequest.mjs +2 -0
- package/dist/esm/api/resources/businessHours/client/requests/UpdateBusinessHourExceptionRequest.d.mts +19 -0
- package/dist/esm/api/resources/businessHours/client/requests/UpdateBusinessHourExceptionRequest.mjs +2 -0
- package/dist/esm/api/resources/businessHours/client/requests/UpdateBusinessHoursRequest.d.mts +25 -0
- package/dist/esm/api/resources/businessHours/client/requests/UpdateBusinessHoursRequest.mjs +2 -0
- package/dist/esm/api/resources/businessHours/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/businessHours/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/businessHours/exports.d.mts +2 -0
- package/dist/esm/api/resources/businessHours/exports.mjs +3 -0
- package/dist/esm/api/resources/businessHours/index.d.mts +2 -0
- package/dist/esm/api/resources/businessHours/index.mjs +2 -0
- package/dist/esm/api/resources/businessHours/types/CreateBusinessHourExceptionResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessHours/types/CreateBusinessHourExceptionResponse.mjs +2 -0
- package/dist/esm/api/resources/businessHours/types/GetBusinessHoursResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessHours/types/GetBusinessHoursResponse.mjs +2 -0
- package/dist/esm/api/resources/businessHours/types/UpdateBusinessHourExceptionResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessHours/types/UpdateBusinessHourExceptionResponse.mjs +2 -0
- package/dist/esm/api/resources/businessHours/types/UpdateBusinessHoursResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessHours/types/UpdateBusinessHoursResponse.mjs +2 -0
- package/dist/esm/api/resources/businessHours/types/index.d.mts +4 -0
- package/dist/esm/api/resources/businessHours/types/index.mjs +4 -0
- package/dist/esm/api/resources/businessProducts/client/Client.d.mts +2 -0
- package/dist/esm/api/resources/businessProducts/client/Client.mjs +6 -0
- package/dist/esm/api/resources/businessStands/client/Client.d.mts +106 -0
- package/dist/esm/api/resources/businessStands/client/Client.mjs +384 -0
- package/dist/esm/api/resources/businessStands/client/index.d.mts +1 -0
- package/dist/esm/api/resources/businessStands/client/index.mjs +1 -0
- package/dist/esm/api/resources/businessStands/client/requests/DeleteBusinessStandRequest.d.mts +10 -0
- package/dist/esm/api/resources/businessStands/client/requests/DeleteBusinessStandRequest.mjs +2 -0
- package/dist/esm/api/resources/businessStands/client/requests/GetBusinessStandRequest.d.mts +10 -0
- package/dist/esm/api/resources/businessStands/client/requests/GetBusinessStandRequest.mjs +2 -0
- package/dist/esm/api/resources/businessStands/client/requests/StoreStandRequest.d.mts +18 -0
- package/dist/esm/api/resources/businessStands/client/requests/StoreStandRequest.mjs +2 -0
- package/dist/esm/api/resources/businessStands/client/requests/SyncStandProductsRequest.d.mts +12 -0
- package/dist/esm/api/resources/businessStands/client/requests/SyncStandProductsRequest.mjs +2 -0
- package/dist/esm/api/resources/businessStands/client/requests/UpdateStandRequest.d.mts +20 -0
- package/dist/esm/api/resources/businessStands/client/requests/UpdateStandRequest.mjs +2 -0
- package/dist/esm/api/resources/businessStands/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/businessStands/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/businessStands/exports.d.mts +2 -0
- package/dist/esm/api/resources/businessStands/exports.mjs +3 -0
- package/dist/esm/api/resources/businessStands/index.d.mts +2 -0
- package/dist/esm/api/resources/businessStands/index.mjs +2 -0
- package/dist/esm/api/resources/businessStands/types/CreateBusinessStandResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessStands/types/CreateBusinessStandResponse.mjs +2 -0
- package/dist/esm/api/resources/businessStands/types/GetBusinessStandResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessStands/types/GetBusinessStandResponse.mjs +2 -0
- package/dist/esm/api/resources/businessStands/types/ListBusinessStandsResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessStands/types/ListBusinessStandsResponse.mjs +2 -0
- package/dist/esm/api/resources/businessStands/types/UpdateBusinessStandResponse.d.mts +4 -0
- package/dist/esm/api/resources/businessStands/types/UpdateBusinessStandResponse.mjs +2 -0
- package/dist/esm/api/resources/businessStands/types/index.d.mts +4 -0
- package/dist/esm/api/resources/businessStands/types/index.mjs +4 -0
- package/dist/esm/api/resources/customerStands/client/Client.d.mts +63 -0
- package/dist/esm/api/resources/customerStands/client/Client.mjs +208 -0
- 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/CreateStandPaymentIntentRequest.d.mts +11 -0
- package/dist/esm/api/resources/customerStands/client/requests/CreateStandPaymentIntentRequest.mjs +2 -0
- package/dist/esm/api/resources/customerStands/client/requests/ScanStandRequest.d.mts +10 -0
- package/dist/esm/api/resources/customerStands/client/requests/ScanStandRequest.mjs +2 -0
- package/dist/esm/api/resources/customerStands/client/requests/SelfCheckoutRequest.d.mts +12 -0
- package/dist/esm/api/resources/customerStands/client/requests/SelfCheckoutRequest.mjs +2 -0
- package/dist/esm/api/resources/customerStands/client/requests/index.d.mts +3 -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/CreateStandPaymentIntentResponse.d.mts +6 -0
- package/dist/esm/api/resources/customerStands/types/CreateStandPaymentIntentResponse.mjs +2 -0
- package/dist/esm/api/resources/customerStands/types/ScanStandResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerStands/types/ScanStandResponse.mjs +2 -0
- package/dist/esm/api/resources/customerStands/types/StandCheckoutResponse.d.mts +4 -0
- package/dist/esm/api/resources/customerStands/types/StandCheckoutResponse.mjs +2 -0
- package/dist/esm/api/resources/customerStands/types/index.d.mts +3 -0
- package/dist/esm/api/resources/customerStands/types/index.mjs +3 -0
- package/dist/esm/api/resources/index.d.mts +9 -0
- package/dist/esm/api/resources/index.mjs +9 -0
- package/dist/esm/api/types/BusinessEvent.d.mts +3 -0
- package/dist/esm/api/types/BusinessHourExceptionResource.d.mts +10 -0
- package/dist/esm/api/types/BusinessHourExceptionResource.mjs +2 -0
- package/dist/esm/api/types/BusinessHourSlotResource.d.mts +6 -0
- package/dist/esm/api/types/BusinessHourSlotResource.mjs +2 -0
- package/dist/esm/api/types/BusinessHoursResource.d.mts +7 -0
- package/dist/esm/api/types/BusinessHoursResource.mjs +2 -0
- package/dist/esm/api/types/BusinessInventoryLog.d.mts +2 -2
- package/dist/esm/api/types/BusinessMenu.d.mts +1 -0
- package/dist/esm/api/types/BusinessMenuItem.d.mts +5 -1
- package/dist/esm/api/types/BusinessProduct.d.mts +14 -0
- package/dist/esm/api/types/BusinessProductCategory.d.mts +1 -0
- package/dist/esm/api/types/BusinessProfile.d.mts +6 -9
- package/dist/esm/api/types/BusinessScheduleDayResource.d.mts +5 -0
- package/dist/esm/api/types/BusinessScheduleDayResource.mjs +2 -0
- package/dist/esm/api/types/BusinessStand.d.mts +16 -0
- package/dist/esm/api/types/BusinessStand.mjs +2 -0
- package/dist/esm/api/types/CustomerBusinessProfile.d.mts +6 -10
- package/dist/esm/api/types/CustomerCartItem.d.mts +1 -1
- package/dist/esm/api/types/CustomerEventDetail.d.mts +1 -1
- package/dist/esm/api/types/EventFeedItem.d.mts +1 -1
- package/dist/esm/api/types/ExploreEvent.d.mts +2 -1
- package/dist/esm/api/types/ExploreTemporaryLocation.d.mts +2 -1
- package/dist/esm/api/types/StandShop.d.mts +24 -0
- package/dist/esm/api/types/StandShop.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +6 -0
- package/dist/esm/api/types/index.mjs +6 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +34 -1
- package/reference.md +809 -57
- /package/dist/cjs/api/resources/business/resources/menus/resources/groups/client/requests/{ReorderGroupsRequest.js → ReorderMenuGroupsRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/menus/resources/items/client/requests/{MoveItemsRequest.js → MoveMenuItemRequest.js} +0 -0
- /package/dist/cjs/api/resources/business/resources/menus/resources/items/client/requests/{ReorderItemsRequest.js → ReorderMenuItemsRequest.js} +0 -0
- /package/dist/esm/api/resources/business/resources/menus/resources/groups/client/requests/{ReorderGroupsRequest.mjs → ReorderMenuGroupsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/menus/resources/items/client/requests/{MoveItemsRequest.mjs → MoveMenuItemRequest.mjs} +0 -0
- /package/dist/esm/api/resources/business/resources/menus/resources/items/client/requests/{ReorderItemsRequest.mjs → ReorderMenuItemsRequest.mjs} +0 -0
|
@@ -46,6 +46,8 @@ export class MenusClient {
|
|
|
46
46
|
* @param {MenusClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
47
47
|
*
|
|
48
48
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
49
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
50
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
49
51
|
*
|
|
50
52
|
* @example
|
|
51
53
|
* await client.business.menus.list()
|
|
@@ -79,6 +81,10 @@ export class MenusClient {
|
|
|
79
81
|
switch (_response.error.statusCode) {
|
|
80
82
|
case 401:
|
|
81
83
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
84
|
+
case 403:
|
|
85
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
86
|
+
case 422:
|
|
87
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
82
88
|
default:
|
|
83
89
|
throw new errors.FiveOneEatError({
|
|
84
90
|
statusCode: _response.error.statusCode,
|
|
@@ -95,6 +101,7 @@ export class MenusClient {
|
|
|
95
101
|
* @param {MenusClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
96
102
|
*
|
|
97
103
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
104
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
98
105
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
99
106
|
*
|
|
100
107
|
* @example
|
|
@@ -134,6 +141,8 @@ export class MenusClient {
|
|
|
134
141
|
switch (_response.error.statusCode) {
|
|
135
142
|
case 401:
|
|
136
143
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
144
|
+
case 403:
|
|
145
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
137
146
|
case 422:
|
|
138
147
|
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
139
148
|
default:
|
|
@@ -154,6 +163,7 @@ export class MenusClient {
|
|
|
154
163
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
155
164
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
156
165
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
166
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
157
167
|
*
|
|
158
168
|
* @example
|
|
159
169
|
* await client.business.menus.get({
|
|
@@ -191,6 +201,8 @@ export class MenusClient {
|
|
|
191
201
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
192
202
|
case 404:
|
|
193
203
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
204
|
+
case 422:
|
|
205
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
194
206
|
default:
|
|
195
207
|
throw new errors.FiveOneEatError({
|
|
196
208
|
statusCode: _response.error.statusCode,
|
|
@@ -274,6 +286,7 @@ export class MenusClient {
|
|
|
274
286
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
275
287
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
276
288
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
289
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
277
290
|
*
|
|
278
291
|
* @example
|
|
279
292
|
* await client.business.menus.delete({
|
|
@@ -314,6 +327,8 @@ export class MenusClient {
|
|
|
314
327
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
315
328
|
case 404:
|
|
316
329
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
330
|
+
case 422:
|
|
331
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
317
332
|
default:
|
|
318
333
|
throw new errors.FiveOneEatError({
|
|
319
334
|
statusCode: _response.error.statusCode,
|
package/dist/esm/api/resources/business/resources/menus/resources/groups/client/Client.d.mts
CHANGED
|
@@ -17,6 +17,7 @@ export declare class GroupsClient {
|
|
|
17
17
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
18
18
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
19
19
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
20
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
20
21
|
*
|
|
21
22
|
* @example
|
|
22
23
|
* await client.business.menus.groups.list({
|
|
@@ -49,6 +50,7 @@ export declare class GroupsClient {
|
|
|
49
50
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
50
51
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
51
52
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
53
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
52
54
|
*
|
|
53
55
|
* @example
|
|
54
56
|
* await client.business.menus.groups.get({
|
|
@@ -83,6 +85,7 @@ export declare class GroupsClient {
|
|
|
83
85
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
84
86
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
85
87
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
88
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
86
89
|
*
|
|
87
90
|
* @example
|
|
88
91
|
* await client.business.menus.groups.delete({
|
|
@@ -95,7 +98,7 @@ export declare class GroupsClient {
|
|
|
95
98
|
/**
|
|
96
99
|
* Batch-update sort_order for groups. Groups not belonging to this menu are silently skipped.
|
|
97
100
|
*
|
|
98
|
-
* @param {FiveOneEat.business.menus.
|
|
101
|
+
* @param {FiveOneEat.business.menus.ReorderMenuGroupsRequest} request
|
|
99
102
|
* @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
100
103
|
*
|
|
101
104
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
@@ -112,6 +115,6 @@ export declare class GroupsClient {
|
|
|
112
115
|
* }]
|
|
113
116
|
* })
|
|
114
117
|
*/
|
|
115
|
-
reorder(request: FiveOneEat.business.menus.
|
|
118
|
+
reorder(request: FiveOneEat.business.menus.ReorderMenuGroupsRequest, requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.menus.ReorderGroupsResponse>;
|
|
116
119
|
private __reorder;
|
|
117
120
|
}
|
|
@@ -37,6 +37,7 @@ export class GroupsClient {
|
|
|
37
37
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
38
38
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
39
39
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
40
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
40
41
|
*
|
|
41
42
|
* @example
|
|
42
43
|
* await client.business.menus.groups.list({
|
|
@@ -77,6 +78,8 @@ export class GroupsClient {
|
|
|
77
78
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
78
79
|
case 404:
|
|
79
80
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
81
|
+
case 422:
|
|
82
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
80
83
|
default:
|
|
81
84
|
throw new errors.FiveOneEatError({
|
|
82
85
|
statusCode: _response.error.statusCode,
|
|
@@ -160,6 +163,7 @@ export class GroupsClient {
|
|
|
160
163
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
161
164
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
162
165
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
166
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
163
167
|
*
|
|
164
168
|
* @example
|
|
165
169
|
* await client.business.menus.groups.get({
|
|
@@ -201,6 +205,8 @@ export class GroupsClient {
|
|
|
201
205
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
202
206
|
case 404:
|
|
203
207
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
208
|
+
case 422:
|
|
209
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
204
210
|
default:
|
|
205
211
|
throw new errors.FiveOneEatError({
|
|
206
212
|
statusCode: _response.error.statusCode,
|
|
@@ -285,6 +291,7 @@ export class GroupsClient {
|
|
|
285
291
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
286
292
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
287
293
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
294
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
288
295
|
*
|
|
289
296
|
* @example
|
|
290
297
|
* await client.business.menus.groups.delete({
|
|
@@ -326,6 +333,8 @@ export class GroupsClient {
|
|
|
326
333
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
327
334
|
case 404:
|
|
328
335
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
336
|
+
case 422:
|
|
337
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
329
338
|
default:
|
|
330
339
|
throw new errors.FiveOneEatError({
|
|
331
340
|
statusCode: _response.error.statusCode,
|
|
@@ -340,7 +349,7 @@ export class GroupsClient {
|
|
|
340
349
|
/**
|
|
341
350
|
* Batch-update sort_order for groups. Groups not belonging to this menu are silently skipped.
|
|
342
351
|
*
|
|
343
|
-
* @param {FiveOneEat.business.menus.
|
|
352
|
+
* @param {FiveOneEat.business.menus.ReorderMenuGroupsRequest} request
|
|
344
353
|
* @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
345
354
|
*
|
|
346
355
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
* }]
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface ReorderMenuGroupsRequest {
|
|
12
12
|
/** The menu ID */
|
|
13
13
|
menu: string;
|
|
14
|
-
groups:
|
|
14
|
+
groups: ReorderMenuGroupsRequest.Groups.Item[];
|
|
15
15
|
}
|
|
16
|
-
export declare namespace
|
|
16
|
+
export declare namespace ReorderMenuGroupsRequest {
|
|
17
17
|
type Groups = Groups.Item[];
|
|
18
18
|
namespace Groups {
|
|
19
19
|
interface Item {
|
package/dist/esm/api/resources/business/resources/menus/resources/groups/client/requests/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { DeleteGroupsRequest } from "./DeleteGroupsRequest.mjs";
|
|
2
2
|
export type { GetGroupsRequest } from "./GetGroupsRequest.mjs";
|
|
3
3
|
export type { ListGroupsRequest } from "./ListGroupsRequest.mjs";
|
|
4
|
-
export type {
|
|
4
|
+
export type { ReorderMenuGroupsRequest } from "./ReorderMenuGroupsRequest.mjs";
|
|
5
5
|
export type { StoreMenuGroupRequest } from "./StoreMenuGroupRequest.mjs";
|
|
6
6
|
export type { UpdateMenuGroupRequest } from "./UpdateMenuGroupRequest.mjs";
|
|
@@ -23,6 +23,7 @@ export declare class ItemsClient {
|
|
|
23
23
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
24
24
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
25
25
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
26
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
26
27
|
*
|
|
27
28
|
* @example
|
|
28
29
|
* await client.business.menus.items.list({
|
|
@@ -57,6 +58,7 @@ export declare class ItemsClient {
|
|
|
57
58
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
58
59
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
59
60
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
61
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
60
62
|
*
|
|
61
63
|
* @example
|
|
62
64
|
* await client.business.menus.items.get({
|
|
@@ -92,6 +94,7 @@ export declare class ItemsClient {
|
|
|
92
94
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
93
95
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
94
96
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
97
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
95
98
|
*
|
|
96
99
|
* @example
|
|
97
100
|
* await client.business.menus.items.delete({
|
|
@@ -104,7 +107,7 @@ export declare class ItemsClient {
|
|
|
104
107
|
/**
|
|
105
108
|
* Batch-update sort_order for items. Items not belonging to this group are silently skipped.
|
|
106
109
|
*
|
|
107
|
-
* @param {FiveOneEat.business.menus.
|
|
110
|
+
* @param {FiveOneEat.business.menus.ReorderMenuItemsRequest} request
|
|
108
111
|
* @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
109
112
|
*
|
|
110
113
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
@@ -121,12 +124,12 @@ export declare class ItemsClient {
|
|
|
121
124
|
* }]
|
|
122
125
|
* })
|
|
123
126
|
*/
|
|
124
|
-
reorder(request: FiveOneEat.business.menus.
|
|
127
|
+
reorder(request: FiveOneEat.business.menus.ReorderMenuItemsRequest, requestOptions?: ItemsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.menus.ReorderItemsResponse>;
|
|
125
128
|
private __reorder;
|
|
126
129
|
/**
|
|
127
130
|
* Moves the item to the target group at the specified sort order, shifting existing items to make room.
|
|
128
131
|
*
|
|
129
|
-
* @param {FiveOneEat.business.menus.
|
|
132
|
+
* @param {FiveOneEat.business.menus.MoveMenuItemRequest} request
|
|
130
133
|
* @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
131
134
|
*
|
|
132
135
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
@@ -141,6 +144,6 @@ export declare class ItemsClient {
|
|
|
141
144
|
* new_sort_order: 1
|
|
142
145
|
* })
|
|
143
146
|
*/
|
|
144
|
-
move(request: FiveOneEat.business.menus.
|
|
147
|
+
move(request: FiveOneEat.business.menus.MoveMenuItemRequest, requestOptions?: ItemsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.menus.MoveItemsResponse>;
|
|
145
148
|
private __move;
|
|
146
149
|
}
|
|
@@ -47,6 +47,7 @@ export class ItemsClient {
|
|
|
47
47
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
48
48
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
49
49
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
50
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
50
51
|
*
|
|
51
52
|
* @example
|
|
52
53
|
* await client.business.menus.items.list({
|
|
@@ -87,6 +88,8 @@ export class ItemsClient {
|
|
|
87
88
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
88
89
|
case 404:
|
|
89
90
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
91
|
+
case 422:
|
|
92
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
90
93
|
default:
|
|
91
94
|
throw new errors.FiveOneEatError({
|
|
92
95
|
statusCode: _response.error.statusCode,
|
|
@@ -172,6 +175,7 @@ export class ItemsClient {
|
|
|
172
175
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
173
176
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
174
177
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
178
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
175
179
|
*
|
|
176
180
|
* @example
|
|
177
181
|
* await client.business.menus.items.get({
|
|
@@ -213,6 +217,8 @@ export class ItemsClient {
|
|
|
213
217
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
214
218
|
case 404:
|
|
215
219
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
220
|
+
case 422:
|
|
221
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
216
222
|
default:
|
|
217
223
|
throw new errors.FiveOneEatError({
|
|
218
224
|
statusCode: _response.error.statusCode,
|
|
@@ -298,6 +304,7 @@ export class ItemsClient {
|
|
|
298
304
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
299
305
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
300
306
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
307
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
301
308
|
*
|
|
302
309
|
* @example
|
|
303
310
|
* await client.business.menus.items.delete({
|
|
@@ -339,6 +346,8 @@ export class ItemsClient {
|
|
|
339
346
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
340
347
|
case 404:
|
|
341
348
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
349
|
+
case 422:
|
|
350
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
342
351
|
default:
|
|
343
352
|
throw new errors.FiveOneEatError({
|
|
344
353
|
statusCode: _response.error.statusCode,
|
|
@@ -353,7 +362,7 @@ export class ItemsClient {
|
|
|
353
362
|
/**
|
|
354
363
|
* Batch-update sort_order for items. Items not belonging to this group are silently skipped.
|
|
355
364
|
*
|
|
356
|
-
* @param {FiveOneEat.business.menus.
|
|
365
|
+
* @param {FiveOneEat.business.menus.ReorderMenuItemsRequest} request
|
|
357
366
|
* @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
358
367
|
*
|
|
359
368
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
@@ -423,7 +432,7 @@ export class ItemsClient {
|
|
|
423
432
|
/**
|
|
424
433
|
* Moves the item to the target group at the specified sort order, shifting existing items to make room.
|
|
425
434
|
*
|
|
426
|
-
* @param {FiveOneEat.business.menus.
|
|
435
|
+
* @param {FiveOneEat.business.menus.MoveMenuItemRequest} request
|
|
427
436
|
* @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
428
437
|
*
|
|
429
438
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
* }]
|
|
9
9
|
* }
|
|
10
10
|
*/
|
|
11
|
-
export interface
|
|
11
|
+
export interface ReorderMenuItemsRequest {
|
|
12
12
|
/** The group ID */
|
|
13
13
|
group: string;
|
|
14
|
-
items:
|
|
14
|
+
items: ReorderMenuItemsRequest.Items.Item[];
|
|
15
15
|
}
|
|
16
|
-
export declare namespace
|
|
16
|
+
export declare namespace ReorderMenuItemsRequest {
|
|
17
17
|
type Items = Items.Item[];
|
|
18
18
|
namespace Items {
|
|
19
19
|
interface Item {
|
package/dist/esm/api/resources/business/resources/menus/resources/items/client/requests/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { DeleteItemsRequest } from "./DeleteItemsRequest.mjs";
|
|
2
2
|
export type { GetItemsRequest } from "./GetItemsRequest.mjs";
|
|
3
3
|
export type { ListItemsRequest } from "./ListItemsRequest.mjs";
|
|
4
|
-
export type {
|
|
5
|
-
export type {
|
|
4
|
+
export type { MoveMenuItemRequest } from "./MoveMenuItemRequest.mjs";
|
|
5
|
+
export type { ReorderMenuItemsRequest } from "./ReorderMenuItemsRequest.mjs";
|
|
6
6
|
export type { StoreMenuItemRequest } from "./StoreMenuItemRequest.mjs";
|
|
7
7
|
export type { UpdateMenuItemRequest } from "./UpdateMenuItemRequest.mjs";
|
|
@@ -17,6 +17,7 @@ export declare class ModifiersClient {
|
|
|
17
17
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
18
18
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
19
19
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
20
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
20
21
|
*
|
|
21
22
|
* @example
|
|
22
23
|
* await client.business.menus.items.modifiers.list({
|
|
@@ -54,6 +55,7 @@ export declare class ModifiersClient {
|
|
|
54
55
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
55
56
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
56
57
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
58
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
57
59
|
*
|
|
58
60
|
* @example
|
|
59
61
|
* await client.business.menus.items.modifiers.detach({
|
|
@@ -37,6 +37,7 @@ export class ModifiersClient {
|
|
|
37
37
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
38
38
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
39
39
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
40
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
40
41
|
*
|
|
41
42
|
* @example
|
|
42
43
|
* await client.business.menus.items.modifiers.list({
|
|
@@ -77,6 +78,8 @@ export class ModifiersClient {
|
|
|
77
78
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
78
79
|
case 404:
|
|
79
80
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
81
|
+
case 422:
|
|
82
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
80
83
|
default:
|
|
81
84
|
throw new errors.FiveOneEatError({
|
|
82
85
|
statusCode: _response.error.statusCode,
|
|
@@ -165,6 +168,7 @@ export class ModifiersClient {
|
|
|
165
168
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
166
169
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
167
170
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
171
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
168
172
|
*
|
|
169
173
|
* @example
|
|
170
174
|
* await client.business.menus.items.modifiers.detach({
|
|
@@ -206,6 +210,8 @@ export class ModifiersClient {
|
|
|
206
210
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
207
211
|
case 404:
|
|
208
212
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
213
|
+
case 422:
|
|
214
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
209
215
|
default:
|
|
210
216
|
throw new errors.FiveOneEatError({
|
|
211
217
|
statusCode: _response.error.statusCode,
|
|
@@ -17,6 +17,7 @@ export declare class VariationsClient {
|
|
|
17
17
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
18
18
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
19
19
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
20
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
20
21
|
*
|
|
21
22
|
* @example
|
|
22
23
|
* await client.business.menus.items.variations.list({
|
|
@@ -68,6 +69,7 @@ export declare class VariationsClient {
|
|
|
68
69
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
69
70
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
70
71
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
72
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
71
73
|
*
|
|
72
74
|
* @example
|
|
73
75
|
* await client.business.menus.items.variations.delete({
|
|
@@ -37,6 +37,7 @@ export class VariationsClient {
|
|
|
37
37
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
38
38
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
39
39
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
40
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
40
41
|
*
|
|
41
42
|
* @example
|
|
42
43
|
* await client.business.menus.items.variations.list({
|
|
@@ -77,6 +78,8 @@ export class VariationsClient {
|
|
|
77
78
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
78
79
|
case 404:
|
|
79
80
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
81
|
+
case 422:
|
|
82
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
80
83
|
default:
|
|
81
84
|
throw new errors.FiveOneEatError({
|
|
82
85
|
statusCode: _response.error.statusCode,
|
|
@@ -227,6 +230,7 @@ export class VariationsClient {
|
|
|
227
230
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
228
231
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
229
232
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
233
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
230
234
|
*
|
|
231
235
|
* @example
|
|
232
236
|
* await client.business.menus.items.variations.delete({
|
|
@@ -267,6 +271,8 @@ export class VariationsClient {
|
|
|
267
271
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
268
272
|
case 404:
|
|
269
273
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
274
|
+
case 422:
|
|
275
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
270
276
|
default:
|
|
271
277
|
throw new errors.FiveOneEatError({
|
|
272
278
|
statusCode: _response.error.statusCode,
|
|
@@ -14,6 +14,8 @@ export declare class ProductCategoriesClient {
|
|
|
14
14
|
* @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
15
15
|
*
|
|
16
16
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
17
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
18
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
17
19
|
*
|
|
18
20
|
* @example
|
|
19
21
|
* await client.business.productCategories.list()
|
|
@@ -25,6 +27,7 @@ export declare class ProductCategoriesClient {
|
|
|
25
27
|
* @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
28
|
*
|
|
27
29
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
30
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
28
31
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
29
32
|
*
|
|
30
33
|
* @example
|
|
@@ -57,6 +60,7 @@ export declare class ProductCategoriesClient {
|
|
|
57
60
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
58
61
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
59
62
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
63
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
60
64
|
*
|
|
61
65
|
* @example
|
|
62
66
|
* await client.business.productCategories.delete({
|
|
@@ -34,6 +34,8 @@ export class ProductCategoriesClient {
|
|
|
34
34
|
* @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
35
|
*
|
|
36
36
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
37
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
38
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
37
39
|
*
|
|
38
40
|
* @example
|
|
39
41
|
* await client.business.productCategories.list()
|
|
@@ -67,6 +69,10 @@ export class ProductCategoriesClient {
|
|
|
67
69
|
switch (_response.error.statusCode) {
|
|
68
70
|
case 401:
|
|
69
71
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
72
|
+
case 403:
|
|
73
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
74
|
+
case 422:
|
|
75
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
70
76
|
default:
|
|
71
77
|
throw new errors.FiveOneEatError({
|
|
72
78
|
statusCode: _response.error.statusCode,
|
|
@@ -83,6 +89,7 @@ export class ProductCategoriesClient {
|
|
|
83
89
|
* @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
84
90
|
*
|
|
85
91
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
92
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
86
93
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
87
94
|
*
|
|
88
95
|
* @example
|
|
@@ -122,6 +129,8 @@ export class ProductCategoriesClient {
|
|
|
122
129
|
switch (_response.error.statusCode) {
|
|
123
130
|
case 401:
|
|
124
131
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
132
|
+
case 403:
|
|
133
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
125
134
|
case 422:
|
|
126
135
|
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
127
136
|
default:
|
|
@@ -206,6 +215,7 @@ export class ProductCategoriesClient {
|
|
|
206
215
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
207
216
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
208
217
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
218
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
209
219
|
*
|
|
210
220
|
* @example
|
|
211
221
|
* await client.business.productCategories.delete({
|
|
@@ -246,6 +256,8 @@ export class ProductCategoriesClient {
|
|
|
246
256
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
247
257
|
case 404:
|
|
248
258
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
259
|
+
case 422:
|
|
260
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
249
261
|
default:
|
|
250
262
|
throw new errors.FiveOneEatError({
|
|
251
263
|
statusCode: _response.error.statusCode,
|
|
@@ -20,6 +20,8 @@ export declare class ProductsClient {
|
|
|
20
20
|
* @param {ProductsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
21
21
|
*
|
|
22
22
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
23
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
24
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
23
25
|
*
|
|
24
26
|
* @example
|
|
25
27
|
* await client.business.products.list()
|
|
@@ -50,6 +52,7 @@ export declare class ProductsClient {
|
|
|
50
52
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
51
53
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
52
54
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
55
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
53
56
|
*
|
|
54
57
|
* @example
|
|
55
58
|
* await client.business.products.get({
|
|
@@ -81,6 +84,7 @@ export declare class ProductsClient {
|
|
|
81
84
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
82
85
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
83
86
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
87
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
84
88
|
*
|
|
85
89
|
* @example
|
|
86
90
|
* await client.business.products.delete({
|
|
@@ -44,6 +44,8 @@ export class ProductsClient {
|
|
|
44
44
|
* @param {ProductsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
45
|
*
|
|
46
46
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
47
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
48
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
47
49
|
*
|
|
48
50
|
* @example
|
|
49
51
|
* await client.business.products.list()
|
|
@@ -77,6 +79,10 @@ export class ProductsClient {
|
|
|
77
79
|
switch (_response.error.statusCode) {
|
|
78
80
|
case 401:
|
|
79
81
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
82
|
+
case 403:
|
|
83
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
84
|
+
case 422:
|
|
85
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
80
86
|
default:
|
|
81
87
|
throw new errors.FiveOneEatError({
|
|
82
88
|
statusCode: _response.error.statusCode,
|
|
@@ -157,6 +163,7 @@ export class ProductsClient {
|
|
|
157
163
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
158
164
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
159
165
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
166
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
160
167
|
*
|
|
161
168
|
* @example
|
|
162
169
|
* await client.business.products.get({
|
|
@@ -197,6 +204,8 @@ export class ProductsClient {
|
|
|
197
204
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
198
205
|
case 404:
|
|
199
206
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
207
|
+
case 422:
|
|
208
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
200
209
|
default:
|
|
201
210
|
throw new errors.FiveOneEatError({
|
|
202
211
|
statusCode: _response.error.statusCode,
|
|
@@ -279,6 +288,7 @@ export class ProductsClient {
|
|
|
279
288
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
280
289
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
281
290
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
291
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
282
292
|
*
|
|
283
293
|
* @example
|
|
284
294
|
* await client.business.products.delete({
|
|
@@ -319,6 +329,8 @@ export class ProductsClient {
|
|
|
319
329
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
320
330
|
case 404:
|
|
321
331
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
332
|
+
case 422:
|
|
333
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
322
334
|
default:
|
|
323
335
|
throw new errors.FiveOneEatError({
|
|
324
336
|
statusCode: _response.error.statusCode,
|
package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.d.mts
CHANGED
|
@@ -57,6 +57,7 @@ export declare class ImagesClient {
|
|
|
57
57
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
58
58
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
59
59
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
60
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
60
61
|
*
|
|
61
62
|
* @example
|
|
62
63
|
* await client.business.products.images.delete({
|
package/dist/esm/api/resources/business/resources/products/resources/images/client/Client.mjs
CHANGED
|
@@ -167,6 +167,7 @@ export class ImagesClient {
|
|
|
167
167
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
168
168
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
169
169
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
170
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
170
171
|
*
|
|
171
172
|
* @example
|
|
172
173
|
* await client.business.products.images.delete({
|
|
@@ -208,6 +209,8 @@ export class ImagesClient {
|
|
|
208
209
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
209
210
|
case 404:
|
|
210
211
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
212
|
+
case 422:
|
|
213
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
211
214
|
default:
|
|
212
215
|
throw new errors.FiveOneEatError({
|
|
213
216
|
statusCode: _response.error.statusCode,
|
package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.d.mts
CHANGED
|
@@ -54,6 +54,7 @@ export declare class VariantsClient {
|
|
|
54
54
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
55
55
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
56
56
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
57
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
57
58
|
*
|
|
58
59
|
* @example
|
|
59
60
|
* await client.business.products.variants.delete({
|