@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
|
@@ -73,6 +73,7 @@ class VariationsClient {
|
|
|
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.variations.list({
|
|
@@ -113,6 +114,8 @@ class VariationsClient {
|
|
|
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,
|
|
@@ -263,6 +266,7 @@ class VariationsClient {
|
|
|
263
266
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
264
267
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
265
268
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
269
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
266
270
|
*
|
|
267
271
|
* @example
|
|
268
272
|
* await client.business.menus.items.variations.delete({
|
|
@@ -303,6 +307,8 @@ class VariationsClient {
|
|
|
303
307
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
304
308
|
case 404:
|
|
305
309
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
310
|
+
case 422:
|
|
311
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
306
312
|
default:
|
|
307
313
|
throw new errors.FiveOneEatError({
|
|
308
314
|
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({
|
|
@@ -70,6 +70,8 @@ class ProductCategoriesClient {
|
|
|
70
70
|
* @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
71
|
*
|
|
72
72
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
73
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
74
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
73
75
|
*
|
|
74
76
|
* @example
|
|
75
77
|
* await client.business.productCategories.list()
|
|
@@ -103,6 +105,10 @@ class ProductCategoriesClient {
|
|
|
103
105
|
switch (_response.error.statusCode) {
|
|
104
106
|
case 401:
|
|
105
107
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
108
|
+
case 403:
|
|
109
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
110
|
+
case 422:
|
|
111
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
106
112
|
default:
|
|
107
113
|
throw new errors.FiveOneEatError({
|
|
108
114
|
statusCode: _response.error.statusCode,
|
|
@@ -119,6 +125,7 @@ class ProductCategoriesClient {
|
|
|
119
125
|
* @param {ProductCategoriesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
120
126
|
*
|
|
121
127
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
128
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
122
129
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
123
130
|
*
|
|
124
131
|
* @example
|
|
@@ -158,6 +165,8 @@ class ProductCategoriesClient {
|
|
|
158
165
|
switch (_response.error.statusCode) {
|
|
159
166
|
case 401:
|
|
160
167
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
168
|
+
case 403:
|
|
169
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
161
170
|
case 422:
|
|
162
171
|
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
163
172
|
default:
|
|
@@ -242,6 +251,7 @@ class ProductCategoriesClient {
|
|
|
242
251
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
243
252
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
244
253
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
254
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
245
255
|
*
|
|
246
256
|
* @example
|
|
247
257
|
* await client.business.productCategories.delete({
|
|
@@ -282,6 +292,8 @@ class ProductCategoriesClient {
|
|
|
282
292
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
283
293
|
case 404:
|
|
284
294
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
295
|
+
case 422:
|
|
296
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
285
297
|
default:
|
|
286
298
|
throw new errors.FiveOneEatError({
|
|
287
299
|
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({
|
|
@@ -80,6 +80,8 @@ class ProductsClient {
|
|
|
80
80
|
* @param {ProductsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
81
81
|
*
|
|
82
82
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
83
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
84
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
83
85
|
*
|
|
84
86
|
* @example
|
|
85
87
|
* await client.business.products.list()
|
|
@@ -113,6 +115,10 @@ class ProductsClient {
|
|
|
113
115
|
switch (_response.error.statusCode) {
|
|
114
116
|
case 401:
|
|
115
117
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
118
|
+
case 403:
|
|
119
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
120
|
+
case 422:
|
|
121
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
116
122
|
default:
|
|
117
123
|
throw new errors.FiveOneEatError({
|
|
118
124
|
statusCode: _response.error.statusCode,
|
|
@@ -193,6 +199,7 @@ class ProductsClient {
|
|
|
193
199
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
194
200
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
195
201
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
202
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
196
203
|
*
|
|
197
204
|
* @example
|
|
198
205
|
* await client.business.products.get({
|
|
@@ -233,6 +240,8 @@ class ProductsClient {
|
|
|
233
240
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
234
241
|
case 404:
|
|
235
242
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
243
|
+
case 422:
|
|
244
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
236
245
|
default:
|
|
237
246
|
throw new errors.FiveOneEatError({
|
|
238
247
|
statusCode: _response.error.statusCode,
|
|
@@ -315,6 +324,7 @@ class ProductsClient {
|
|
|
315
324
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
316
325
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
317
326
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
327
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
318
328
|
*
|
|
319
329
|
* @example
|
|
320
330
|
* await client.business.products.delete({
|
|
@@ -355,6 +365,8 @@ class ProductsClient {
|
|
|
355
365
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
356
366
|
case 404:
|
|
357
367
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
368
|
+
case 422:
|
|
369
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
358
370
|
default:
|
|
359
371
|
throw new errors.FiveOneEatError({
|
|
360
372
|
statusCode: _response.error.statusCode,
|
package/dist/cjs/api/resources/business/resources/products/resources/images/client/Client.d.ts
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/cjs/api/resources/business/resources/products/resources/images/client/Client.js
CHANGED
|
@@ -203,6 +203,7 @@ class ImagesClient {
|
|
|
203
203
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
204
204
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
205
205
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
206
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
206
207
|
*
|
|
207
208
|
* @example
|
|
208
209
|
* await client.business.products.images.delete({
|
|
@@ -244,6 +245,8 @@ class ImagesClient {
|
|
|
244
245
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
245
246
|
case 404:
|
|
246
247
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
248
|
+
case 422:
|
|
249
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
247
250
|
default:
|
|
248
251
|
throw new errors.FiveOneEatError({
|
|
249
252
|
statusCode: _response.error.statusCode,
|
package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.d.ts
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({
|
package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.js
CHANGED
|
@@ -208,6 +208,7 @@ class VariantsClient {
|
|
|
208
208
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
209
209
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
210
210
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
211
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
211
212
|
*
|
|
212
213
|
* @example
|
|
213
214
|
* await client.business.products.variants.delete({
|
|
@@ -248,6 +249,8 @@ class VariantsClient {
|
|
|
248
249
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
249
250
|
case 404:
|
|
250
251
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
252
|
+
case 422:
|
|
253
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
251
254
|
default:
|
|
252
255
|
throw new errors.FiveOneEatError({
|
|
253
256
|
statusCode: _response.error.statusCode,
|
|
@@ -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.variants.images.delete({
|
|
@@ -203,6 +203,7 @@ class ImagesClient {
|
|
|
203
203
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
204
204
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
205
205
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
206
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
206
207
|
*
|
|
207
208
|
* @example
|
|
208
209
|
* await client.business.products.variants.images.delete({
|
|
@@ -244,6 +245,8 @@ class ImagesClient {
|
|
|
244
245
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
245
246
|
case 404:
|
|
246
247
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
248
|
+
case 422:
|
|
249
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
247
250
|
default:
|
|
248
251
|
throw new errors.FiveOneEatError({
|
|
249
252
|
statusCode: _response.error.statusCode,
|
|
@@ -29,19 +29,6 @@ export interface UpdateBusinessProfileRequest {
|
|
|
29
29
|
pickup_hours?: string[] | null;
|
|
30
30
|
same_day_cutoff?: string | null;
|
|
31
31
|
pickup_instructions?: string | null;
|
|
32
|
-
ownership?: string[] | null;
|
|
33
|
-
badges?: string[] | null;
|
|
34
32
|
category_ids?: number[];
|
|
35
|
-
hours?: UpdateBusinessProfileRequest.Hours.Item[] | null;
|
|
36
33
|
operating_months?: number[] | null;
|
|
37
34
|
}
|
|
38
|
-
export declare namespace UpdateBusinessProfileRequest {
|
|
39
|
-
type Hours = Hours.Item[];
|
|
40
|
-
namespace Hours {
|
|
41
|
-
interface Item {
|
|
42
|
-
isOpen?: boolean | undefined;
|
|
43
|
-
openTime?: (string | null) | undefined;
|
|
44
|
-
closeTime?: (string | null) | undefined;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as FiveOneEat from "../../../index.js";
|
|
5
|
+
export declare namespace BusinessHoursClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class BusinessHoursClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<BusinessHoursClient.Options>;
|
|
12
|
+
constructor(options?: BusinessHoursClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {BusinessHoursClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
15
|
+
*
|
|
16
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* await client.businessHours.getBusinessHours()
|
|
20
|
+
*/
|
|
21
|
+
getBusinessHours(requestOptions?: BusinessHoursClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.GetBusinessHoursResponse>;
|
|
22
|
+
private __getBusinessHours;
|
|
23
|
+
/**
|
|
24
|
+
* @param {FiveOneEat.UpdateBusinessHoursRequest} request
|
|
25
|
+
* @param {BusinessHoursClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
|
+
*
|
|
27
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
28
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
29
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.businessHours.updateBusinessHours({
|
|
33
|
+
* slots: [{
|
|
34
|
+
* day_of_week: 1,
|
|
35
|
+
* opens_at: "opens_at",
|
|
36
|
+
* closes_at: "closes_at"
|
|
37
|
+
* }]
|
|
38
|
+
* })
|
|
39
|
+
*/
|
|
40
|
+
updateBusinessHours(request: FiveOneEat.UpdateBusinessHoursRequest, requestOptions?: BusinessHoursClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.UpdateBusinessHoursResponse>;
|
|
41
|
+
private __updateBusinessHours;
|
|
42
|
+
/**
|
|
43
|
+
* @param {FiveOneEat.StoreBusinessHourExceptionRequest} request
|
|
44
|
+
* @param {BusinessHoursClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
45
|
+
*
|
|
46
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
47
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
48
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* await client.businessHours.createBusinessHourException({
|
|
52
|
+
* starts_on: "2024-01-15T09:30:00Z",
|
|
53
|
+
* is_closed: true
|
|
54
|
+
* })
|
|
55
|
+
*/
|
|
56
|
+
createBusinessHourException(request: FiveOneEat.StoreBusinessHourExceptionRequest, requestOptions?: BusinessHoursClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.CreateBusinessHourExceptionResponse>;
|
|
57
|
+
private __createBusinessHourException;
|
|
58
|
+
/**
|
|
59
|
+
* @param {FiveOneEat.DeleteBusinessHourExceptionRequest} request
|
|
60
|
+
* @param {BusinessHoursClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
61
|
+
*
|
|
62
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
63
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
64
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.businessHours.deleteBusinessHourException({
|
|
68
|
+
* exception: "exception"
|
|
69
|
+
* })
|
|
70
|
+
*/
|
|
71
|
+
deleteBusinessHourException(request: FiveOneEat.DeleteBusinessHourExceptionRequest, requestOptions?: BusinessHoursClient.RequestOptions): core.HttpResponsePromise<void>;
|
|
72
|
+
private __deleteBusinessHourException;
|
|
73
|
+
/**
|
|
74
|
+
* @param {FiveOneEat.UpdateBusinessHourExceptionRequest} request
|
|
75
|
+
* @param {BusinessHoursClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
78
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
79
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
80
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* await client.businessHours.updateBusinessHourException({
|
|
84
|
+
* exception: "exception",
|
|
85
|
+
* starts_on: "2024-01-15T09:30:00Z",
|
|
86
|
+
* is_closed: true
|
|
87
|
+
* })
|
|
88
|
+
*/
|
|
89
|
+
updateBusinessHourException(request: FiveOneEat.UpdateBusinessHourExceptionRequest, requestOptions?: BusinessHoursClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.UpdateBusinessHourExceptionResponse>;
|
|
90
|
+
private __updateBusinessHourException;
|
|
91
|
+
}
|