@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
package/dist/cjs/api/resources/business/resources/events/client/requests/UpdateEventRequest.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ export interface UpdateEventRequest {
|
|
|
9
9
|
event: string;
|
|
10
10
|
title?: string;
|
|
11
11
|
description?: string | null;
|
|
12
|
+
location?: string | null;
|
|
12
13
|
starts_at?: string;
|
|
13
14
|
ends_at?: string;
|
|
14
|
-
location?: string | null;
|
|
15
15
|
is_all_day?: boolean;
|
|
16
16
|
is_featured?: boolean;
|
|
17
17
|
ticket_sales_enabled?: boolean;
|
package/dist/cjs/api/resources/business/resources/events/resources/checkIn/client/Client.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export declare class CheckInClient {
|
|
|
62
62
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
63
63
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
64
64
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
65
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
65
66
|
*
|
|
66
67
|
* @example
|
|
67
68
|
* await client.business.events.checkIn.stats({
|
|
@@ -80,6 +81,7 @@ export declare class CheckInClient {
|
|
|
80
81
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
81
82
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
82
83
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
84
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
83
85
|
*
|
|
84
86
|
* @example
|
|
85
87
|
* await client.business.events.checkIn.recent({
|
|
@@ -214,6 +214,7 @@ class CheckInClient {
|
|
|
214
214
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
215
215
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
216
216
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
217
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
217
218
|
*
|
|
218
219
|
* @example
|
|
219
220
|
* await client.business.events.checkIn.stats({
|
|
@@ -254,6 +255,8 @@ class CheckInClient {
|
|
|
254
255
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
255
256
|
case 404:
|
|
256
257
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
258
|
+
case 422:
|
|
259
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
257
260
|
default:
|
|
258
261
|
throw new errors.FiveOneEatError({
|
|
259
262
|
statusCode: _response.error.statusCode,
|
|
@@ -275,6 +278,7 @@ class CheckInClient {
|
|
|
275
278
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
276
279
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
277
280
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
281
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
278
282
|
*
|
|
279
283
|
* @example
|
|
280
284
|
* await client.business.events.checkIn.recent({
|
|
@@ -315,6 +319,8 @@ class CheckInClient {
|
|
|
315
319
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
316
320
|
case 404:
|
|
317
321
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
322
|
+
case 422:
|
|
323
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
318
324
|
default:
|
|
319
325
|
throw new errors.FiveOneEatError({
|
|
320
326
|
statusCode: _response.error.statusCode,
|
package/dist/cjs/api/resources/business/resources/events/resources/orders/client/Client.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare class OrdersClient {
|
|
|
19
19
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
20
20
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
21
21
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
22
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
24
25
|
* await client.business.events.orders.list({
|
|
@@ -34,6 +35,7 @@ export declare class OrdersClient {
|
|
|
34
35
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
35
36
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
36
37
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
38
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
37
39
|
*
|
|
38
40
|
* @example
|
|
39
41
|
* await client.business.events.orders.get({
|
|
@@ -64,6 +64,7 @@ class OrdersClient {
|
|
|
64
64
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
65
65
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
66
66
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
67
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
67
68
|
*
|
|
68
69
|
* @example
|
|
69
70
|
* await client.business.events.orders.list({
|
|
@@ -104,6 +105,8 @@ class OrdersClient {
|
|
|
104
105
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
105
106
|
case 404:
|
|
106
107
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
108
|
+
case 422:
|
|
109
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
107
110
|
default:
|
|
108
111
|
throw new errors.FiveOneEatError({
|
|
109
112
|
statusCode: _response.error.statusCode,
|
|
@@ -122,6 +125,7 @@ class OrdersClient {
|
|
|
122
125
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
123
126
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
124
127
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
128
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
125
129
|
*
|
|
126
130
|
* @example
|
|
127
131
|
* await client.business.events.orders.get({
|
|
@@ -163,6 +167,8 @@ class OrdersClient {
|
|
|
163
167
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
164
168
|
case 404:
|
|
165
169
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
170
|
+
case 422:
|
|
171
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
166
172
|
default:
|
|
167
173
|
throw new errors.FiveOneEatError({
|
|
168
174
|
statusCode: _response.error.statusCode,
|
package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/Client.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare class TicketTypesClient {
|
|
|
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.events.ticketTypes.list({
|
|
@@ -51,6 +52,7 @@ export declare class TicketTypesClient {
|
|
|
51
52
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
52
53
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
53
54
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
55
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
54
56
|
*
|
|
55
57
|
* @example
|
|
56
58
|
* await client.business.events.ticketTypes.get({
|
package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/Client.js
CHANGED
|
@@ -73,6 +73,7 @@ class TicketTypesClient {
|
|
|
73
73
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
74
74
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
75
75
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
76
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
76
77
|
*
|
|
77
78
|
* @example
|
|
78
79
|
* await client.business.events.ticketTypes.list({
|
|
@@ -113,6 +114,8 @@ class TicketTypesClient {
|
|
|
113
114
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
114
115
|
case 404:
|
|
115
116
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
117
|
+
case 422:
|
|
118
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
116
119
|
default:
|
|
117
120
|
throw new errors.FiveOneEatError({
|
|
118
121
|
statusCode: _response.error.statusCode,
|
|
@@ -198,6 +201,7 @@ class TicketTypesClient {
|
|
|
198
201
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
199
202
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
200
203
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
204
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
201
205
|
*
|
|
202
206
|
* @example
|
|
203
207
|
* await client.business.events.ticketTypes.get({
|
|
@@ -238,6 +242,8 @@ class TicketTypesClient {
|
|
|
238
242
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
239
243
|
case 404:
|
|
240
244
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
245
|
+
case 422:
|
|
246
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
241
247
|
default:
|
|
242
248
|
throw new errors.FiveOneEatError({
|
|
243
249
|
statusCode: _response.error.statusCode,
|
|
@@ -22,6 +22,8 @@ export declare class MenusClient {
|
|
|
22
22
|
* @param {MenusClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
23
|
*
|
|
24
24
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
25
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
26
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
25
27
|
*
|
|
26
28
|
* @example
|
|
27
29
|
* await client.business.menus.list()
|
|
@@ -33,6 +35,7 @@ export declare class MenusClient {
|
|
|
33
35
|
* @param {MenusClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
34
36
|
*
|
|
35
37
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
38
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
36
39
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
37
40
|
*
|
|
38
41
|
* @example
|
|
@@ -49,6 +52,7 @@ export declare class MenusClient {
|
|
|
49
52
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
50
53
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
51
54
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
55
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
52
56
|
*
|
|
53
57
|
* @example
|
|
54
58
|
* await client.business.menus.get({
|
|
@@ -81,6 +85,7 @@ export declare class MenusClient {
|
|
|
81
85
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
82
86
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
83
87
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
88
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
84
89
|
*
|
|
85
90
|
* @example
|
|
86
91
|
* await client.business.menus.delete({
|
|
@@ -82,6 +82,8 @@ class MenusClient {
|
|
|
82
82
|
* @param {MenusClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
83
83
|
*
|
|
84
84
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
85
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
86
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
85
87
|
*
|
|
86
88
|
* @example
|
|
87
89
|
* await client.business.menus.list()
|
|
@@ -115,6 +117,10 @@ class MenusClient {
|
|
|
115
117
|
switch (_response.error.statusCode) {
|
|
116
118
|
case 401:
|
|
117
119
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
120
|
+
case 403:
|
|
121
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
122
|
+
case 422:
|
|
123
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
118
124
|
default:
|
|
119
125
|
throw new errors.FiveOneEatError({
|
|
120
126
|
statusCode: _response.error.statusCode,
|
|
@@ -131,6 +137,7 @@ class MenusClient {
|
|
|
131
137
|
* @param {MenusClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
132
138
|
*
|
|
133
139
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
140
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
134
141
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
135
142
|
*
|
|
136
143
|
* @example
|
|
@@ -170,6 +177,8 @@ class MenusClient {
|
|
|
170
177
|
switch (_response.error.statusCode) {
|
|
171
178
|
case 401:
|
|
172
179
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
180
|
+
case 403:
|
|
181
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
173
182
|
case 422:
|
|
174
183
|
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
175
184
|
default:
|
|
@@ -190,6 +199,7 @@ class MenusClient {
|
|
|
190
199
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
191
200
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
192
201
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
202
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
193
203
|
*
|
|
194
204
|
* @example
|
|
195
205
|
* await client.business.menus.get({
|
|
@@ -227,6 +237,8 @@ class MenusClient {
|
|
|
227
237
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
228
238
|
case 404:
|
|
229
239
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
240
|
+
case 422:
|
|
241
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
230
242
|
default:
|
|
231
243
|
throw new errors.FiveOneEatError({
|
|
232
244
|
statusCode: _response.error.statusCode,
|
|
@@ -310,6 +322,7 @@ class MenusClient {
|
|
|
310
322
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
311
323
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
312
324
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
325
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
313
326
|
*
|
|
314
327
|
* @example
|
|
315
328
|
* await client.business.menus.delete({
|
|
@@ -350,6 +363,8 @@ class MenusClient {
|
|
|
350
363
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
351
364
|
case 404:
|
|
352
365
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
366
|
+
case 422:
|
|
367
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
353
368
|
default:
|
|
354
369
|
throw new errors.FiveOneEatError({
|
|
355
370
|
statusCode: _response.error.statusCode,
|
|
@@ -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
|
}
|
|
@@ -73,6 +73,7 @@ class GroupsClient {
|
|
|
73
73
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
74
74
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
75
75
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
76
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
76
77
|
*
|
|
77
78
|
* @example
|
|
78
79
|
* await client.business.menus.groups.list({
|
|
@@ -113,6 +114,8 @@ class GroupsClient {
|
|
|
113
114
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
114
115
|
case 404:
|
|
115
116
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
117
|
+
case 422:
|
|
118
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
116
119
|
default:
|
|
117
120
|
throw new errors.FiveOneEatError({
|
|
118
121
|
statusCode: _response.error.statusCode,
|
|
@@ -196,6 +199,7 @@ class GroupsClient {
|
|
|
196
199
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
197
200
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
198
201
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
202
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
199
203
|
*
|
|
200
204
|
* @example
|
|
201
205
|
* await client.business.menus.groups.get({
|
|
@@ -237,6 +241,8 @@ class GroupsClient {
|
|
|
237
241
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
238
242
|
case 404:
|
|
239
243
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
244
|
+
case 422:
|
|
245
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
240
246
|
default:
|
|
241
247
|
throw new errors.FiveOneEatError({
|
|
242
248
|
statusCode: _response.error.statusCode,
|
|
@@ -321,6 +327,7 @@ class GroupsClient {
|
|
|
321
327
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
322
328
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
323
329
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
330
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
324
331
|
*
|
|
325
332
|
* @example
|
|
326
333
|
* await client.business.menus.groups.delete({
|
|
@@ -362,6 +369,8 @@ class GroupsClient {
|
|
|
362
369
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
363
370
|
case 404:
|
|
364
371
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
372
|
+
case 422:
|
|
373
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
365
374
|
default:
|
|
366
375
|
throw new errors.FiveOneEatError({
|
|
367
376
|
statusCode: _response.error.statusCode,
|
|
@@ -376,7 +385,7 @@ class GroupsClient {
|
|
|
376
385
|
/**
|
|
377
386
|
* Batch-update sort_order for groups. Groups not belonging to this menu are silently skipped.
|
|
378
387
|
*
|
|
379
|
-
* @param {FiveOneEat.business.menus.
|
|
388
|
+
* @param {FiveOneEat.business.menus.ReorderMenuGroupsRequest} request
|
|
380
389
|
* @param {GroupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
381
390
|
*
|
|
382
391
|
* @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/cjs/api/resources/business/resources/menus/resources/groups/client/requests/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { DeleteGroupsRequest } from "./DeleteGroupsRequest.js";
|
|
2
2
|
export type { GetGroupsRequest } from "./GetGroupsRequest.js";
|
|
3
3
|
export type { ListGroupsRequest } from "./ListGroupsRequest.js";
|
|
4
|
-
export type {
|
|
4
|
+
export type { ReorderMenuGroupsRequest } from "./ReorderMenuGroupsRequest.js";
|
|
5
5
|
export type { StoreMenuGroupRequest } from "./StoreMenuGroupRequest.js";
|
|
6
6
|
export type { UpdateMenuGroupRequest } from "./UpdateMenuGroupRequest.js";
|
|
@@ -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
|
}
|
|
@@ -83,6 +83,7 @@ class ItemsClient {
|
|
|
83
83
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
84
84
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
85
85
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
86
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
86
87
|
*
|
|
87
88
|
* @example
|
|
88
89
|
* await client.business.menus.items.list({
|
|
@@ -123,6 +124,8 @@ class ItemsClient {
|
|
|
123
124
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
124
125
|
case 404:
|
|
125
126
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
127
|
+
case 422:
|
|
128
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
126
129
|
default:
|
|
127
130
|
throw new errors.FiveOneEatError({
|
|
128
131
|
statusCode: _response.error.statusCode,
|
|
@@ -208,6 +211,7 @@ class ItemsClient {
|
|
|
208
211
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
209
212
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
210
213
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
214
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
211
215
|
*
|
|
212
216
|
* @example
|
|
213
217
|
* await client.business.menus.items.get({
|
|
@@ -249,6 +253,8 @@ class ItemsClient {
|
|
|
249
253
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
250
254
|
case 404:
|
|
251
255
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
256
|
+
case 422:
|
|
257
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
252
258
|
default:
|
|
253
259
|
throw new errors.FiveOneEatError({
|
|
254
260
|
statusCode: _response.error.statusCode,
|
|
@@ -334,6 +340,7 @@ class ItemsClient {
|
|
|
334
340
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
335
341
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
336
342
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
343
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
337
344
|
*
|
|
338
345
|
* @example
|
|
339
346
|
* await client.business.menus.items.delete({
|
|
@@ -375,6 +382,8 @@ class ItemsClient {
|
|
|
375
382
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
376
383
|
case 404:
|
|
377
384
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
385
|
+
case 422:
|
|
386
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
378
387
|
default:
|
|
379
388
|
throw new errors.FiveOneEatError({
|
|
380
389
|
statusCode: _response.error.statusCode,
|
|
@@ -389,7 +398,7 @@ class ItemsClient {
|
|
|
389
398
|
/**
|
|
390
399
|
* Batch-update sort_order for items. Items not belonging to this group are silently skipped.
|
|
391
400
|
*
|
|
392
|
-
* @param {FiveOneEat.business.menus.
|
|
401
|
+
* @param {FiveOneEat.business.menus.ReorderMenuItemsRequest} request
|
|
393
402
|
* @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
394
403
|
*
|
|
395
404
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
@@ -459,7 +468,7 @@ class ItemsClient {
|
|
|
459
468
|
/**
|
|
460
469
|
* Moves the item to the target group at the specified sort order, shifting existing items to make room.
|
|
461
470
|
*
|
|
462
|
-
* @param {FiveOneEat.business.menus.
|
|
471
|
+
* @param {FiveOneEat.business.menus.MoveMenuItemRequest} request
|
|
463
472
|
* @param {ItemsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
464
473
|
*
|
|
465
474
|
* @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/cjs/api/resources/business/resources/menus/resources/items/client/requests/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { DeleteItemsRequest } from "./DeleteItemsRequest.js";
|
|
2
2
|
export type { GetItemsRequest } from "./GetItemsRequest.js";
|
|
3
3
|
export type { ListItemsRequest } from "./ListItemsRequest.js";
|
|
4
|
-
export type {
|
|
5
|
-
export type {
|
|
4
|
+
export type { MoveMenuItemRequest } from "./MoveMenuItemRequest.js";
|
|
5
|
+
export type { ReorderMenuItemsRequest } from "./ReorderMenuItemsRequest.js";
|
|
6
6
|
export type { StoreMenuItemRequest } from "./StoreMenuItemRequest.js";
|
|
7
7
|
export type { UpdateMenuItemRequest } from "./UpdateMenuItemRequest.js";
|
|
@@ -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({
|
|
@@ -73,6 +73,7 @@ class ModifiersClient {
|
|
|
73
73
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
74
74
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
75
75
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
76
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
76
77
|
*
|
|
77
78
|
* @example
|
|
78
79
|
* await client.business.menus.items.modifiers.list({
|
|
@@ -113,6 +114,8 @@ class ModifiersClient {
|
|
|
113
114
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
114
115
|
case 404:
|
|
115
116
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
117
|
+
case 422:
|
|
118
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
116
119
|
default:
|
|
117
120
|
throw new errors.FiveOneEatError({
|
|
118
121
|
statusCode: _response.error.statusCode,
|
|
@@ -201,6 +204,7 @@ class ModifiersClient {
|
|
|
201
204
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
202
205
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
203
206
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
207
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
204
208
|
*
|
|
205
209
|
* @example
|
|
206
210
|
* await client.business.menus.items.modifiers.detach({
|
|
@@ -242,6 +246,8 @@ class ModifiersClient {
|
|
|
242
246
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
243
247
|
case 404:
|
|
244
248
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
249
|
+
case 422:
|
|
250
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
245
251
|
default:
|
|
246
252
|
throw new errors.FiveOneEatError({
|
|
247
253
|
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({
|