@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/README.md
CHANGED
|
@@ -45,11 +45,9 @@ Instantiate and use the client with the following:
|
|
|
45
45
|
import { FiveOneEatClient } from "@51eat/sdk";
|
|
46
46
|
|
|
47
47
|
const client = new FiveOneEatClient({ token: "YOUR_TOKEN" });
|
|
48
|
-
await client.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
quantity: 1,
|
|
52
|
-
reason: "restock"
|
|
48
|
+
await client.businessHours.createBusinessHourException({
|
|
49
|
+
starts_on: "2024-01-15T09:30:00Z",
|
|
50
|
+
is_closed: true
|
|
53
51
|
});
|
|
54
52
|
```
|
|
55
53
|
|
|
@@ -73,7 +71,7 @@ following namespace:
|
|
|
73
71
|
```typescript
|
|
74
72
|
import { FiveOneEat } from "@51eat/sdk";
|
|
75
73
|
|
|
76
|
-
const request: FiveOneEat.
|
|
74
|
+
const request: FiveOneEat.UpdateBusinessHoursRequest = {
|
|
77
75
|
...
|
|
78
76
|
};
|
|
79
77
|
```
|
|
@@ -87,7 +85,7 @@ will be thrown.
|
|
|
87
85
|
import { FiveOneEatError } from "@51eat/sdk";
|
|
88
86
|
|
|
89
87
|
try {
|
|
90
|
-
await client.
|
|
88
|
+
await client.businessHours.createBusinessHourException(...);
|
|
91
89
|
} catch (err) {
|
|
92
90
|
if (err instanceof FiveOneEatError) {
|
|
93
91
|
console.log(err.statusCode);
|
|
@@ -150,9 +148,9 @@ For example, `fs.ReadStream` has a `path` property which the SDK uses to retriev
|
|
|
150
148
|
This SDK supports direct imports of subpackage clients, which allows JavaScript bundlers to tree-shake and include only the imported subpackage code. This results in much smaller bundle sizes.
|
|
151
149
|
|
|
152
150
|
```typescript
|
|
153
|
-
import {
|
|
151
|
+
import { BusinessHoursClient } from '@51eat/sdk/businessHours';
|
|
154
152
|
|
|
155
|
-
const client = new
|
|
153
|
+
const client = new BusinessHoursClient({...});
|
|
156
154
|
```
|
|
157
155
|
|
|
158
156
|
### Additional Headers
|
|
@@ -169,7 +167,7 @@ const client = new FiveOneEatClient({
|
|
|
169
167
|
}
|
|
170
168
|
});
|
|
171
169
|
|
|
172
|
-
const response = await client.
|
|
170
|
+
const response = await client.businessHours.createBusinessHourException(..., {
|
|
173
171
|
headers: {
|
|
174
172
|
'X-Custom-Header': 'custom value'
|
|
175
173
|
}
|
|
@@ -181,7 +179,7 @@ const response = await client.businessProducts.adjustVariantInventory(..., {
|
|
|
181
179
|
If you would like to send additional query string parameters as part of the request, use the `queryParams` request option.
|
|
182
180
|
|
|
183
181
|
```typescript
|
|
184
|
-
const response = await client.
|
|
182
|
+
const response = await client.businessHours.createBusinessHourException(..., {
|
|
185
183
|
queryParams: {
|
|
186
184
|
'customQueryParamKey': 'custom query param value'
|
|
187
185
|
}
|
|
@@ -203,7 +201,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
|
|
|
203
201
|
Use the `maxRetries` request option to configure this behavior.
|
|
204
202
|
|
|
205
203
|
```typescript
|
|
206
|
-
const response = await client.
|
|
204
|
+
const response = await client.businessHours.createBusinessHourException(..., {
|
|
207
205
|
maxRetries: 0 // override maxRetries at the request level
|
|
208
206
|
});
|
|
209
207
|
```
|
|
@@ -213,7 +211,7 @@ const response = await client.businessProducts.adjustVariantInventory(..., {
|
|
|
213
211
|
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
214
212
|
|
|
215
213
|
```typescript
|
|
216
|
-
const response = await client.
|
|
214
|
+
const response = await client.businessHours.createBusinessHourException(..., {
|
|
217
215
|
timeoutInSeconds: 30 // override timeout to 30s
|
|
218
216
|
});
|
|
219
217
|
```
|
|
@@ -224,7 +222,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
|
|
|
224
222
|
|
|
225
223
|
```typescript
|
|
226
224
|
const controller = new AbortController();
|
|
227
|
-
const response = await client.
|
|
225
|
+
const response = await client.businessHours.createBusinessHourException(..., {
|
|
228
226
|
abortSignal: controller.signal
|
|
229
227
|
});
|
|
230
228
|
controller.abort(); // aborts the request
|
|
@@ -236,7 +234,7 @@ The SDK provides access to raw response data, including headers, through the `.w
|
|
|
236
234
|
The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
|
|
237
235
|
|
|
238
236
|
```typescript
|
|
239
|
-
const { data, rawResponse } = await client.
|
|
237
|
+
const { data, rawResponse } = await client.businessHours.createBusinessHourException(...).withRawResponse();
|
|
240
238
|
|
|
241
239
|
console.log(data);
|
|
242
240
|
console.log(rawResponse.headers['X-My-Header']);
|
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@51eat/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "0.0.
|
|
47
|
-
"User-Agent": "@51eat/sdk/0.0.
|
|
46
|
+
"X-Fern-SDK-Version": "0.0.63",
|
|
47
|
+
"User-Agent": "@51eat/sdk/0.0.63",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { BusinessClient } from "./api/resources/business/client/Client.js";
|
|
2
|
+
import { BusinessHoursClient } from "./api/resources/businessHours/client/Client.js";
|
|
2
3
|
import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.js";
|
|
3
4
|
import { BusinessProductsClient } from "./api/resources/businessProducts/client/Client.js";
|
|
4
5
|
import { BusinessShippingClient } from "./api/resources/businessShipping/client/Client.js";
|
|
6
|
+
import { BusinessStandsClient } from "./api/resources/businessStands/client/Client.js";
|
|
5
7
|
import { CustomerClient } from "./api/resources/customer/client/Client.js";
|
|
6
8
|
import { CustomerBusinessesClient } from "./api/resources/customerBusinesses/client/Client.js";
|
|
7
9
|
import { CustomerEventsClient } from "./api/resources/customerEvents/client/Client.js";
|
|
8
10
|
import { CustomerMessagingClient } from "./api/resources/customerMessaging/client/Client.js";
|
|
9
11
|
import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.js";
|
|
12
|
+
import { CustomerStandsClient } from "./api/resources/customerStands/client/Client.js";
|
|
10
13
|
import { RecordClickClient } from "./api/resources/recordClick/client/Client.js";
|
|
11
14
|
import { ServeAdClient } from "./api/resources/serveAd/client/Client.js";
|
|
12
15
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
@@ -19,26 +22,32 @@ export declare namespace FiveOneEatClient {
|
|
|
19
22
|
}
|
|
20
23
|
export declare class FiveOneEatClient {
|
|
21
24
|
protected readonly _options: NormalizedClientOptionsWithAuth<FiveOneEatClient.Options>;
|
|
25
|
+
protected _businessHours: BusinessHoursClient | undefined;
|
|
22
26
|
protected _businessMessaging: BusinessMessagingClient | undefined;
|
|
23
27
|
protected _businessProducts: BusinessProductsClient | undefined;
|
|
24
28
|
protected _businessShipping: BusinessShippingClient | undefined;
|
|
29
|
+
protected _businessStands: BusinessStandsClient | undefined;
|
|
25
30
|
protected _customerBusinesses: CustomerBusinessesClient | undefined;
|
|
26
31
|
protected _customerEvents: CustomerEventsClient | undefined;
|
|
27
32
|
protected _customerMessaging: CustomerMessagingClient | undefined;
|
|
28
33
|
protected _customerMyAccount: CustomerMyAccountClient | undefined;
|
|
29
34
|
protected _customer: CustomerClient | undefined;
|
|
35
|
+
protected _customerStands: CustomerStandsClient | undefined;
|
|
30
36
|
protected _recordClick: RecordClickClient | undefined;
|
|
31
37
|
protected _serveAd: ServeAdClient | undefined;
|
|
32
38
|
protected _business: BusinessClient | undefined;
|
|
33
39
|
constructor(options?: FiveOneEatClient.Options);
|
|
40
|
+
get businessHours(): BusinessHoursClient;
|
|
34
41
|
get businessMessaging(): BusinessMessagingClient;
|
|
35
42
|
get businessProducts(): BusinessProductsClient;
|
|
36
43
|
get businessShipping(): BusinessShippingClient;
|
|
44
|
+
get businessStands(): BusinessStandsClient;
|
|
37
45
|
get customerBusinesses(): CustomerBusinessesClient;
|
|
38
46
|
get customerEvents(): CustomerEventsClient;
|
|
39
47
|
get customerMessaging(): CustomerMessagingClient;
|
|
40
48
|
get customerMyAccount(): CustomerMyAccountClient;
|
|
41
49
|
get customer(): CustomerClient;
|
|
50
|
+
get customerStands(): CustomerStandsClient;
|
|
42
51
|
get recordClick(): RecordClickClient;
|
|
43
52
|
get serveAd(): ServeAdClient;
|
|
44
53
|
get business(): BusinessClient;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -45,61 +45,76 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
46
|
exports.FiveOneEatClient = void 0;
|
|
47
47
|
const Client_js_1 = require("./api/resources/business/client/Client.js");
|
|
48
|
-
const Client_js_2 = require("./api/resources/
|
|
49
|
-
const Client_js_3 = require("./api/resources/
|
|
50
|
-
const Client_js_4 = require("./api/resources/
|
|
51
|
-
const Client_js_5 = require("./api/resources/
|
|
52
|
-
const Client_js_6 = require("./api/resources/
|
|
53
|
-
const Client_js_7 = require("./api/resources/
|
|
54
|
-
const Client_js_8 = require("./api/resources/
|
|
55
|
-
const Client_js_9 = require("./api/resources/
|
|
56
|
-
const Client_js_10 = require("./api/resources/
|
|
57
|
-
const Client_js_11 = require("./api/resources/
|
|
48
|
+
const Client_js_2 = require("./api/resources/businessHours/client/Client.js");
|
|
49
|
+
const Client_js_3 = require("./api/resources/businessMessaging/client/Client.js");
|
|
50
|
+
const Client_js_4 = require("./api/resources/businessProducts/client/Client.js");
|
|
51
|
+
const Client_js_5 = require("./api/resources/businessShipping/client/Client.js");
|
|
52
|
+
const Client_js_6 = require("./api/resources/businessStands/client/Client.js");
|
|
53
|
+
const Client_js_7 = require("./api/resources/customer/client/Client.js");
|
|
54
|
+
const Client_js_8 = require("./api/resources/customerBusinesses/client/Client.js");
|
|
55
|
+
const Client_js_9 = require("./api/resources/customerEvents/client/Client.js");
|
|
56
|
+
const Client_js_10 = require("./api/resources/customerMessaging/client/Client.js");
|
|
57
|
+
const Client_js_11 = require("./api/resources/customerMyAccount/client/Client.js");
|
|
58
|
+
const Client_js_12 = require("./api/resources/customerStands/client/Client.js");
|
|
59
|
+
const Client_js_13 = require("./api/resources/recordClick/client/Client.js");
|
|
60
|
+
const Client_js_14 = require("./api/resources/serveAd/client/Client.js");
|
|
58
61
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
59
62
|
const core = __importStar(require("./core/index.js"));
|
|
60
63
|
class FiveOneEatClient {
|
|
61
64
|
constructor(options = {}) {
|
|
62
65
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
63
66
|
}
|
|
67
|
+
get businessHours() {
|
|
68
|
+
var _a;
|
|
69
|
+
return ((_a = this._businessHours) !== null && _a !== void 0 ? _a : (this._businessHours = new Client_js_2.BusinessHoursClient(this._options)));
|
|
70
|
+
}
|
|
64
71
|
get businessMessaging() {
|
|
65
72
|
var _a;
|
|
66
|
-
return ((_a = this._businessMessaging) !== null && _a !== void 0 ? _a : (this._businessMessaging = new
|
|
73
|
+
return ((_a = this._businessMessaging) !== null && _a !== void 0 ? _a : (this._businessMessaging = new Client_js_3.BusinessMessagingClient(this._options)));
|
|
67
74
|
}
|
|
68
75
|
get businessProducts() {
|
|
69
76
|
var _a;
|
|
70
|
-
return ((_a = this._businessProducts) !== null && _a !== void 0 ? _a : (this._businessProducts = new
|
|
77
|
+
return ((_a = this._businessProducts) !== null && _a !== void 0 ? _a : (this._businessProducts = new Client_js_4.BusinessProductsClient(this._options)));
|
|
71
78
|
}
|
|
72
79
|
get businessShipping() {
|
|
73
80
|
var _a;
|
|
74
|
-
return ((_a = this._businessShipping) !== null && _a !== void 0 ? _a : (this._businessShipping = new
|
|
81
|
+
return ((_a = this._businessShipping) !== null && _a !== void 0 ? _a : (this._businessShipping = new Client_js_5.BusinessShippingClient(this._options)));
|
|
82
|
+
}
|
|
83
|
+
get businessStands() {
|
|
84
|
+
var _a;
|
|
85
|
+
return ((_a = this._businessStands) !== null && _a !== void 0 ? _a : (this._businessStands = new Client_js_6.BusinessStandsClient(this._options)));
|
|
75
86
|
}
|
|
76
87
|
get customerBusinesses() {
|
|
77
88
|
var _a;
|
|
78
|
-
return ((_a = this._customerBusinesses) !== null && _a !== void 0 ? _a : (this._customerBusinesses = new
|
|
89
|
+
return ((_a = this._customerBusinesses) !== null && _a !== void 0 ? _a : (this._customerBusinesses = new Client_js_8.CustomerBusinessesClient(this._options)));
|
|
79
90
|
}
|
|
80
91
|
get customerEvents() {
|
|
81
92
|
var _a;
|
|
82
|
-
return ((_a = this._customerEvents) !== null && _a !== void 0 ? _a : (this._customerEvents = new
|
|
93
|
+
return ((_a = this._customerEvents) !== null && _a !== void 0 ? _a : (this._customerEvents = new Client_js_9.CustomerEventsClient(this._options)));
|
|
83
94
|
}
|
|
84
95
|
get customerMessaging() {
|
|
85
96
|
var _a;
|
|
86
|
-
return ((_a = this._customerMessaging) !== null && _a !== void 0 ? _a : (this._customerMessaging = new
|
|
97
|
+
return ((_a = this._customerMessaging) !== null && _a !== void 0 ? _a : (this._customerMessaging = new Client_js_10.CustomerMessagingClient(this._options)));
|
|
87
98
|
}
|
|
88
99
|
get customerMyAccount() {
|
|
89
100
|
var _a;
|
|
90
|
-
return ((_a = this._customerMyAccount) !== null && _a !== void 0 ? _a : (this._customerMyAccount = new
|
|
101
|
+
return ((_a = this._customerMyAccount) !== null && _a !== void 0 ? _a : (this._customerMyAccount = new Client_js_11.CustomerMyAccountClient(this._options)));
|
|
91
102
|
}
|
|
92
103
|
get customer() {
|
|
93
104
|
var _a;
|
|
94
|
-
return ((_a = this._customer) !== null && _a !== void 0 ? _a : (this._customer = new
|
|
105
|
+
return ((_a = this._customer) !== null && _a !== void 0 ? _a : (this._customer = new Client_js_7.CustomerClient(this._options)));
|
|
106
|
+
}
|
|
107
|
+
get customerStands() {
|
|
108
|
+
var _a;
|
|
109
|
+
return ((_a = this._customerStands) !== null && _a !== void 0 ? _a : (this._customerStands = new Client_js_12.CustomerStandsClient(this._options)));
|
|
95
110
|
}
|
|
96
111
|
get recordClick() {
|
|
97
112
|
var _a;
|
|
98
|
-
return ((_a = this._recordClick) !== null && _a !== void 0 ? _a : (this._recordClick = new
|
|
113
|
+
return ((_a = this._recordClick) !== null && _a !== void 0 ? _a : (this._recordClick = new Client_js_13.RecordClickClient(this._options)));
|
|
99
114
|
}
|
|
100
115
|
get serveAd() {
|
|
101
116
|
var _a;
|
|
102
|
-
return ((_a = this._serveAd) !== null && _a !== void 0 ? _a : (this._serveAd = new
|
|
117
|
+
return ((_a = this._serveAd) !== null && _a !== void 0 ? _a : (this._serveAd = new Client_js_14.ServeAdClient(this._options)));
|
|
103
118
|
}
|
|
104
119
|
get business() {
|
|
105
120
|
var _a;
|
|
@@ -17,6 +17,8 @@ export declare class BulletinsClient {
|
|
|
17
17
|
* @param {BulletinsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
18
|
*
|
|
19
19
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
20
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
21
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
20
22
|
*
|
|
21
23
|
* @example
|
|
22
24
|
* await client.business.bulletins.list()
|
|
@@ -28,6 +30,7 @@ export declare class BulletinsClient {
|
|
|
28
30
|
* @param {BulletinsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
31
|
*
|
|
30
32
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
33
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
31
34
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
32
35
|
*
|
|
33
36
|
* @example
|
|
@@ -46,6 +49,7 @@ export declare class BulletinsClient {
|
|
|
46
49
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
47
50
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
48
51
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
52
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
49
53
|
*
|
|
50
54
|
* @example
|
|
51
55
|
* await client.business.bulletins.get({
|
|
@@ -80,6 +84,7 @@ export declare class BulletinsClient {
|
|
|
80
84
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
81
85
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
82
86
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
87
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
83
88
|
*
|
|
84
89
|
* @example
|
|
85
90
|
* await client.business.bulletins.delete({
|
|
@@ -95,6 +100,7 @@ export declare class BulletinsClient {
|
|
|
95
100
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
96
101
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
97
102
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
103
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
98
104
|
*
|
|
99
105
|
* @example
|
|
100
106
|
* await client.business.bulletins.togglePinned({
|
|
@@ -110,6 +116,7 @@ export declare class BulletinsClient {
|
|
|
110
116
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
111
117
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
112
118
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
119
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
113
120
|
*
|
|
114
121
|
* @example
|
|
115
122
|
* await client.business.bulletins.togglePublished({
|
|
@@ -75,6 +75,8 @@ class BulletinsClient {
|
|
|
75
75
|
* @param {BulletinsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
76
76
|
*
|
|
77
77
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
78
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
79
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
78
80
|
*
|
|
79
81
|
* @example
|
|
80
82
|
* await client.business.bulletins.list()
|
|
@@ -108,6 +110,10 @@ class BulletinsClient {
|
|
|
108
110
|
switch (_response.error.statusCode) {
|
|
109
111
|
case 401:
|
|
110
112
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
113
|
+
case 403:
|
|
114
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
115
|
+
case 422:
|
|
116
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
111
117
|
default:
|
|
112
118
|
throw new errors.FiveOneEatError({
|
|
113
119
|
statusCode: _response.error.statusCode,
|
|
@@ -124,6 +130,7 @@ class BulletinsClient {
|
|
|
124
130
|
* @param {BulletinsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
125
131
|
*
|
|
126
132
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
133
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
127
134
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
128
135
|
*
|
|
129
136
|
* @example
|
|
@@ -165,6 +172,8 @@ class BulletinsClient {
|
|
|
165
172
|
switch (_response.error.statusCode) {
|
|
166
173
|
case 401:
|
|
167
174
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
175
|
+
case 403:
|
|
176
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
168
177
|
case 422:
|
|
169
178
|
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
170
179
|
default:
|
|
@@ -185,6 +194,7 @@ class BulletinsClient {
|
|
|
185
194
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
186
195
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
187
196
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
197
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
188
198
|
*
|
|
189
199
|
* @example
|
|
190
200
|
* await client.business.bulletins.get({
|
|
@@ -225,6 +235,8 @@ class BulletinsClient {
|
|
|
225
235
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
226
236
|
case 404:
|
|
227
237
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
238
|
+
case 422:
|
|
239
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
228
240
|
default:
|
|
229
241
|
throw new errors.FiveOneEatError({
|
|
230
242
|
statusCode: _response.error.statusCode,
|
|
@@ -310,6 +322,7 @@ class BulletinsClient {
|
|
|
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.bulletins.delete({
|
|
@@ -350,6 +363,8 @@ class BulletinsClient {
|
|
|
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,
|
|
@@ -368,6 +383,7 @@ class BulletinsClient {
|
|
|
368
383
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
369
384
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
370
385
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
386
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
371
387
|
*
|
|
372
388
|
* @example
|
|
373
389
|
* await client.business.bulletins.togglePinned({
|
|
@@ -408,6 +424,8 @@ class BulletinsClient {
|
|
|
408
424
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
409
425
|
case 404:
|
|
410
426
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
427
|
+
case 422:
|
|
428
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
411
429
|
default:
|
|
412
430
|
throw new errors.FiveOneEatError({
|
|
413
431
|
statusCode: _response.error.statusCode,
|
|
@@ -426,6 +444,7 @@ class BulletinsClient {
|
|
|
426
444
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
427
445
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
428
446
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
447
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
429
448
|
*
|
|
430
449
|
* @example
|
|
431
450
|
* await client.business.bulletins.togglePublished({
|
|
@@ -466,6 +485,8 @@ class BulletinsClient {
|
|
|
466
485
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
467
486
|
case 404:
|
|
468
487
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
488
|
+
case 422:
|
|
489
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
469
490
|
default:
|
|
470
491
|
throw new errors.FiveOneEatError({
|
|
471
492
|
statusCode: _response.error.statusCode,
|
|
@@ -21,23 +21,11 @@ export interface StoreBusinessRequest {
|
|
|
21
21
|
latitude?: number | null;
|
|
22
22
|
longitude?: number | null;
|
|
23
23
|
has_location?: boolean;
|
|
24
|
-
metadata?: string[] | null;
|
|
25
|
-
badges?: string[] | null;
|
|
26
24
|
seasonal?: boolean;
|
|
27
|
-
ownership?: string[] | null;
|
|
28
25
|
category_ids: number[];
|
|
29
|
-
hours?: StoreBusinessRequest.Hours.Item[] | null;
|
|
30
26
|
operating_months?: StoreBusinessRequest.OperatingMonths.Item[] | null;
|
|
31
27
|
}
|
|
32
28
|
export declare namespace StoreBusinessRequest {
|
|
33
|
-
type Hours = Hours.Item[];
|
|
34
|
-
namespace Hours {
|
|
35
|
-
interface Item {
|
|
36
|
-
isOpen?: boolean | undefined;
|
|
37
|
-
openTime?: (string | null) | undefined;
|
|
38
|
-
closeTime?: (string | null) | undefined;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
29
|
type OperatingMonths = OperatingMonths.Item[];
|
|
42
30
|
namespace OperatingMonths {
|
|
43
31
|
const Item: {
|
|
@@ -31,25 +31,13 @@ export interface UpdateBusinessRequest {
|
|
|
31
31
|
latitude?: number | null;
|
|
32
32
|
longitude?: number | null;
|
|
33
33
|
has_location?: boolean;
|
|
34
|
-
metadata?: string[] | null;
|
|
35
|
-
badges?: string[] | null;
|
|
36
34
|
seasonal?: boolean;
|
|
37
|
-
ownership?: string[] | null;
|
|
38
35
|
category_ids: number[];
|
|
39
|
-
hours?: UpdateBusinessRequest.Hours.Item[] | null;
|
|
40
36
|
operating_months?: UpdateBusinessRequest.OperatingMonths.Item[] | null;
|
|
41
37
|
certification_ids?: number[] | null;
|
|
42
38
|
cuisine_ids?: number[] | null;
|
|
43
39
|
}
|
|
44
40
|
export declare namespace UpdateBusinessRequest {
|
|
45
|
-
type Hours = Hours.Item[];
|
|
46
|
-
namespace Hours {
|
|
47
|
-
interface Item {
|
|
48
|
-
isOpen?: boolean | undefined;
|
|
49
|
-
openTime?: (string | null) | undefined;
|
|
50
|
-
closeTime?: (string | null) | undefined;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
41
|
type OperatingMonths = OperatingMonths.Item[];
|
|
54
42
|
namespace OperatingMonths {
|
|
55
43
|
const Item: {
|
|
@@ -26,6 +26,7 @@ export declare class EventsClient {
|
|
|
26
26
|
*
|
|
27
27
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
28
28
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
29
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
29
30
|
*
|
|
30
31
|
* @example
|
|
31
32
|
* await client.business.events.list()
|
|
@@ -56,6 +57,7 @@ export declare class EventsClient {
|
|
|
56
57
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
57
58
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
58
59
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
60
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
59
61
|
*
|
|
60
62
|
* @example
|
|
61
63
|
* await client.business.events.get({
|
|
@@ -87,6 +89,7 @@ export declare class EventsClient {
|
|
|
87
89
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
88
90
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
89
91
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
92
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
90
93
|
*
|
|
91
94
|
* @example
|
|
92
95
|
* await client.business.events.delete({
|
|
@@ -102,6 +105,7 @@ export declare class EventsClient {
|
|
|
102
105
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
103
106
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
104
107
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
108
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
105
109
|
*
|
|
106
110
|
* @example
|
|
107
111
|
* await client.business.events.togglePublished({
|
|
@@ -137,6 +141,7 @@ export declare class EventsClient {
|
|
|
137
141
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
138
142
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
139
143
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
144
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
140
145
|
*
|
|
141
146
|
* @example
|
|
142
147
|
* await client.business.events.deleteImage({
|
|
@@ -154,6 +159,7 @@ export declare class EventsClient {
|
|
|
154
159
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
155
160
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
156
161
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
162
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
157
163
|
*
|
|
158
164
|
* @example
|
|
159
165
|
* await client.business.events.listRsvps({
|
|
@@ -172,6 +178,7 @@ export declare class EventsClient {
|
|
|
172
178
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
173
179
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
174
180
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
181
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
175
182
|
*
|
|
176
183
|
* @example
|
|
177
184
|
* await client.business.events.listAttendees({
|
|
@@ -190,6 +197,7 @@ export declare class EventsClient {
|
|
|
190
197
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
191
198
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
192
199
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
200
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
193
201
|
*
|
|
194
202
|
* @example
|
|
195
203
|
* await client.business.events.salesSummary({
|
|
@@ -88,6 +88,7 @@ class EventsClient {
|
|
|
88
88
|
*
|
|
89
89
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
90
90
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
91
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
91
92
|
*
|
|
92
93
|
* @example
|
|
93
94
|
* await client.business.events.list()
|
|
@@ -123,6 +124,8 @@ class EventsClient {
|
|
|
123
124
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
124
125
|
case 403:
|
|
125
126
|
throw new FiveOneEat.ForbiddenError(_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,
|
|
@@ -203,6 +206,7 @@ class EventsClient {
|
|
|
203
206
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
204
207
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
205
208
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
209
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
206
210
|
*
|
|
207
211
|
* @example
|
|
208
212
|
* await client.business.events.get({
|
|
@@ -243,6 +247,8 @@ class EventsClient {
|
|
|
243
247
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
244
248
|
case 404:
|
|
245
249
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
250
|
+
case 422:
|
|
251
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
246
252
|
default:
|
|
247
253
|
throw new errors.FiveOneEatError({
|
|
248
254
|
statusCode: _response.error.statusCode,
|
|
@@ -325,6 +331,7 @@ class EventsClient {
|
|
|
325
331
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
326
332
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
327
333
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
334
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
328
335
|
*
|
|
329
336
|
* @example
|
|
330
337
|
* await client.business.events.delete({
|
|
@@ -365,6 +372,8 @@ class EventsClient {
|
|
|
365
372
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
366
373
|
case 404:
|
|
367
374
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
375
|
+
case 422:
|
|
376
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
368
377
|
default:
|
|
369
378
|
throw new errors.FiveOneEatError({
|
|
370
379
|
statusCode: _response.error.statusCode,
|
|
@@ -383,6 +392,7 @@ class EventsClient {
|
|
|
383
392
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
384
393
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
385
394
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
395
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
386
396
|
*
|
|
387
397
|
* @example
|
|
388
398
|
* await client.business.events.togglePublished({
|
|
@@ -423,6 +433,8 @@ class EventsClient {
|
|
|
423
433
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
424
434
|
case 404:
|
|
425
435
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
436
|
+
case 422:
|
|
437
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
426
438
|
default:
|
|
427
439
|
throw new errors.FiveOneEatError({
|
|
428
440
|
statusCode: _response.error.statusCode,
|
|
@@ -514,6 +526,7 @@ class EventsClient {
|
|
|
514
526
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
515
527
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
516
528
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
529
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
517
530
|
*
|
|
518
531
|
* @example
|
|
519
532
|
* await client.business.events.deleteImage({
|
|
@@ -554,6 +567,8 @@ class EventsClient {
|
|
|
554
567
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
555
568
|
case 404:
|
|
556
569
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
570
|
+
case 422:
|
|
571
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
557
572
|
default:
|
|
558
573
|
throw new errors.FiveOneEatError({
|
|
559
574
|
statusCode: _response.error.statusCode,
|
|
@@ -574,6 +589,7 @@ class EventsClient {
|
|
|
574
589
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
575
590
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
576
591
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
592
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
577
593
|
*
|
|
578
594
|
* @example
|
|
579
595
|
* await client.business.events.listRsvps({
|
|
@@ -614,6 +630,8 @@ class EventsClient {
|
|
|
614
630
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
615
631
|
case 404:
|
|
616
632
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
633
|
+
case 422:
|
|
634
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
617
635
|
default:
|
|
618
636
|
throw new errors.FiveOneEatError({
|
|
619
637
|
statusCode: _response.error.statusCode,
|
|
@@ -635,6 +653,7 @@ class EventsClient {
|
|
|
635
653
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
636
654
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
637
655
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
656
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
638
657
|
*
|
|
639
658
|
* @example
|
|
640
659
|
* await client.business.events.listAttendees({
|
|
@@ -675,6 +694,8 @@ class EventsClient {
|
|
|
675
694
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
676
695
|
case 404:
|
|
677
696
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
697
|
+
case 422:
|
|
698
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
678
699
|
default:
|
|
679
700
|
throw new errors.FiveOneEatError({
|
|
680
701
|
statusCode: _response.error.statusCode,
|
|
@@ -696,6 +717,7 @@ class EventsClient {
|
|
|
696
717
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
697
718
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
698
719
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
720
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
699
721
|
*
|
|
700
722
|
* @example
|
|
701
723
|
* await client.business.events.salesSummary({
|
|
@@ -736,6 +758,8 @@ class EventsClient {
|
|
|
736
758
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
737
759
|
case 404:
|
|
738
760
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
761
|
+
case 422:
|
|
762
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
739
763
|
default:
|
|
740
764
|
throw new errors.FiveOneEatError({
|
|
741
765
|
statusCode: _response.error.statusCode,
|
package/dist/cjs/api/resources/business/resources/events/client/requests/StoreEventRequest.d.ts
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
export interface StoreEventRequest {
|
|
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;
|