@51eat/sdk 0.0.62 → 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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +6 -0
- package/dist/cjs/Client.js +24 -14
- 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 -3
- package/dist/cjs/api/resources/business/resources/businesses/client/requests/UpdateBusinessRequest.d.ts +0 -3
- 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 -2
- 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 +6 -0
- package/dist/cjs/api/resources/index.js +7 -1
- package/dist/cjs/api/types/BusinessEvent.d.ts +3 -0
- 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 +0 -2
- 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 +0 -3
- 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 +2 -0
- package/dist/cjs/api/types/index.js +2 -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 +6 -0
- package/dist/esm/Client.mjs +10 -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 -3
- package/dist/esm/api/resources/business/resources/businesses/client/requests/UpdateBusinessRequest.d.mts +0 -3
- 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 -2
- 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 +6 -0
- package/dist/esm/api/resources/index.mjs +6 -0
- package/dist/esm/api/types/BusinessEvent.d.mts +3 -0
- 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 +0 -2
- 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 +0 -3
- 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 +2 -0
- package/dist/esm/api/types/index.mjs +2 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +23 -1
- package/reference.md +502 -3
- /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
|
@@ -19,14 +19,28 @@ export interface BusinessProduct {
|
|
|
19
19
|
weight: number | null;
|
|
20
20
|
weight_unit: string | null;
|
|
21
21
|
is_pre_order: boolean;
|
|
22
|
+
pre_order_release_date: string | null;
|
|
23
|
+
digital_download_limit: number | null;
|
|
24
|
+
digital_link_expiry_hours: number | null;
|
|
22
25
|
taxable: boolean;
|
|
23
26
|
tax_code: string | null;
|
|
24
27
|
is_active: boolean;
|
|
25
28
|
is_featured: boolean;
|
|
26
29
|
sort_order: number;
|
|
30
|
+
published_at: string | null;
|
|
27
31
|
variants?: FiveOneEat.BusinessProductVariant[] | undefined;
|
|
28
32
|
images?: FiveOneEat.BusinessPhoto[] | undefined;
|
|
29
33
|
categories?: FiveOneEat.BusinessProductCategory[] | undefined;
|
|
34
|
+
digital_files?: BusinessProduct.DigitalFiles.Item[] | undefined;
|
|
30
35
|
created_at: string | null;
|
|
31
36
|
updated_at: string | null;
|
|
32
37
|
}
|
|
38
|
+
export declare namespace BusinessProduct {
|
|
39
|
+
type DigitalFiles = DigitalFiles.Item[];
|
|
40
|
+
namespace DigitalFiles {
|
|
41
|
+
interface Item {
|
|
42
|
+
id: string;
|
|
43
|
+
file_name: string;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -6,6 +6,7 @@ export interface BusinessProductCategory {
|
|
|
6
6
|
description: string | null;
|
|
7
7
|
parent_id: string | null;
|
|
8
8
|
sort_order: number;
|
|
9
|
+
is_active: boolean;
|
|
9
10
|
children?: FiveOneEat.BusinessProductCategory[] | undefined;
|
|
10
11
|
created_at: string | null;
|
|
11
12
|
updated_at: string | null;
|
|
@@ -31,8 +31,6 @@ export interface BusinessProfile {
|
|
|
31
31
|
pickup_hours: Record<string, unknown>;
|
|
32
32
|
same_day_cutoff: string | null;
|
|
33
33
|
pickup_instructions: string | null;
|
|
34
|
-
ownership: string[];
|
|
35
|
-
badges: string[];
|
|
36
34
|
founding_partner: boolean;
|
|
37
35
|
staff_pick: boolean;
|
|
38
36
|
favorites_count: number;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface BusinessStand {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
slug: string;
|
|
5
|
+
address: string | null;
|
|
6
|
+
city: string | null;
|
|
7
|
+
state: string | null;
|
|
8
|
+
zipcode: string | null;
|
|
9
|
+
country: string | null;
|
|
10
|
+
latitude: number | null;
|
|
11
|
+
longitude: number | null;
|
|
12
|
+
notes: string | null;
|
|
13
|
+
is_active: boolean;
|
|
14
|
+
created_at: string | null;
|
|
15
|
+
updated_at: string | null;
|
|
16
|
+
}
|
|
@@ -27,9 +27,6 @@ export interface CustomerBusinessProfile {
|
|
|
27
27
|
hours: CustomerBusinessProfile.Hours;
|
|
28
28
|
seasonal: boolean;
|
|
29
29
|
operating_months: string[];
|
|
30
|
-
ownership: string[];
|
|
31
|
-
badges: string[];
|
|
32
|
-
metadata: Record<string, unknown>;
|
|
33
30
|
founding_partner: boolean;
|
|
34
31
|
staff_pick: boolean;
|
|
35
32
|
favorites_count: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../index.js";
|
|
1
2
|
export interface ExploreEvent {
|
|
2
3
|
id: string;
|
|
3
4
|
title: string;
|
|
@@ -16,6 +17,6 @@ export declare namespace ExploreEvent {
|
|
|
16
17
|
name: string;
|
|
17
18
|
handle: string;
|
|
18
19
|
logo: string;
|
|
19
|
-
|
|
20
|
+
categories: FiveOneEat.BusinessCategory[];
|
|
20
21
|
}
|
|
21
22
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../index.js";
|
|
1
2
|
export interface ExploreTemporaryLocation {
|
|
2
3
|
id: string;
|
|
3
4
|
title: string;
|
|
@@ -28,6 +29,6 @@ export declare namespace ExploreTemporaryLocation {
|
|
|
28
29
|
name: string;
|
|
29
30
|
handle: string;
|
|
30
31
|
logo: string;
|
|
31
|
-
|
|
32
|
+
categories: FiveOneEat.BusinessCategory[];
|
|
32
33
|
}
|
|
33
34
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as FiveOneEat from "../index.js";
|
|
2
|
+
export interface StandShop {
|
|
3
|
+
stand: StandShop.Stand;
|
|
4
|
+
business: StandShop.Business;
|
|
5
|
+
products: FiveOneEat.CustomerShopProduct[];
|
|
6
|
+
}
|
|
7
|
+
export declare namespace StandShop {
|
|
8
|
+
interface Stand {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
address: string;
|
|
12
|
+
city: string;
|
|
13
|
+
state: string;
|
|
14
|
+
latitude: string;
|
|
15
|
+
longitude: string;
|
|
16
|
+
notes: string;
|
|
17
|
+
}
|
|
18
|
+
interface Business {
|
|
19
|
+
id: string;
|
|
20
|
+
handle: string;
|
|
21
|
+
name: string;
|
|
22
|
+
accepts_payments: boolean;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -69,6 +69,7 @@ export * from "./BusinessProductVariant.js";
|
|
|
69
69
|
export * from "./BusinessProfile.js";
|
|
70
70
|
export * from "./BusinessScheduleDayResource.js";
|
|
71
71
|
export * from "./BusinessSearchResult.js";
|
|
72
|
+
export * from "./BusinessStand.js";
|
|
72
73
|
export * from "./BusinessStripeConnection.js";
|
|
73
74
|
export * from "./BusinessSummary.js";
|
|
74
75
|
export * from "./BusinessTemporaryLocation.js";
|
|
@@ -145,6 +146,7 @@ export * from "./SearchResults.js";
|
|
|
145
146
|
export * from "./ServiceUnavailableErrorBody.js";
|
|
146
147
|
export * from "./ShippingAccountResource.js";
|
|
147
148
|
export * from "./ShippingRateResource.js";
|
|
149
|
+
export * from "./StandShop.js";
|
|
148
150
|
export * from "./StoreAddressRequest.js";
|
|
149
151
|
export * from "./StoreProductImageRequest.js";
|
|
150
152
|
export * from "./Ticket.js";
|
|
@@ -85,6 +85,7 @@ __exportStar(require("./BusinessProductVariant.js"), exports);
|
|
|
85
85
|
__exportStar(require("./BusinessProfile.js"), exports);
|
|
86
86
|
__exportStar(require("./BusinessScheduleDayResource.js"), exports);
|
|
87
87
|
__exportStar(require("./BusinessSearchResult.js"), exports);
|
|
88
|
+
__exportStar(require("./BusinessStand.js"), exports);
|
|
88
89
|
__exportStar(require("./BusinessStripeConnection.js"), exports);
|
|
89
90
|
__exportStar(require("./BusinessSummary.js"), exports);
|
|
90
91
|
__exportStar(require("./BusinessTemporaryLocation.js"), exports);
|
|
@@ -161,6 +162,7 @@ __exportStar(require("./SearchResults.js"), exports);
|
|
|
161
162
|
__exportStar(require("./ServiceUnavailableErrorBody.js"), exports);
|
|
162
163
|
__exportStar(require("./ShippingAccountResource.js"), exports);
|
|
163
164
|
__exportStar(require("./ShippingRateResource.js"), exports);
|
|
165
|
+
__exportStar(require("./StandShop.js"), exports);
|
|
164
166
|
__exportStar(require("./StoreAddressRequest.js"), exports);
|
|
165
167
|
__exportStar(require("./StoreProductImageRequest.js"), exports);
|
|
166
168
|
__exportStar(require("./Ticket.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.63";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@51eat/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "0.0.
|
|
10
|
-
"User-Agent": "@51eat/sdk/0.0.
|
|
9
|
+
"X-Fern-SDK-Version": "0.0.63",
|
|
10
|
+
"User-Agent": "@51eat/sdk/0.0.63",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -3,11 +3,13 @@ import { BusinessHoursClient } from "./api/resources/businessHours/client/Client
|
|
|
3
3
|
import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.mjs";
|
|
4
4
|
import { BusinessProductsClient } from "./api/resources/businessProducts/client/Client.mjs";
|
|
5
5
|
import { BusinessShippingClient } from "./api/resources/businessShipping/client/Client.mjs";
|
|
6
|
+
import { BusinessStandsClient } from "./api/resources/businessStands/client/Client.mjs";
|
|
6
7
|
import { CustomerClient } from "./api/resources/customer/client/Client.mjs";
|
|
7
8
|
import { CustomerBusinessesClient } from "./api/resources/customerBusinesses/client/Client.mjs";
|
|
8
9
|
import { CustomerEventsClient } from "./api/resources/customerEvents/client/Client.mjs";
|
|
9
10
|
import { CustomerMessagingClient } from "./api/resources/customerMessaging/client/Client.mjs";
|
|
10
11
|
import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.mjs";
|
|
12
|
+
import { CustomerStandsClient } from "./api/resources/customerStands/client/Client.mjs";
|
|
11
13
|
import { RecordClickClient } from "./api/resources/recordClick/client/Client.mjs";
|
|
12
14
|
import { ServeAdClient } from "./api/resources/serveAd/client/Client.mjs";
|
|
13
15
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
@@ -24,11 +26,13 @@ export declare class FiveOneEatClient {
|
|
|
24
26
|
protected _businessMessaging: BusinessMessagingClient | undefined;
|
|
25
27
|
protected _businessProducts: BusinessProductsClient | undefined;
|
|
26
28
|
protected _businessShipping: BusinessShippingClient | undefined;
|
|
29
|
+
protected _businessStands: BusinessStandsClient | undefined;
|
|
27
30
|
protected _customerBusinesses: CustomerBusinessesClient | undefined;
|
|
28
31
|
protected _customerEvents: CustomerEventsClient | undefined;
|
|
29
32
|
protected _customerMessaging: CustomerMessagingClient | undefined;
|
|
30
33
|
protected _customerMyAccount: CustomerMyAccountClient | undefined;
|
|
31
34
|
protected _customer: CustomerClient | undefined;
|
|
35
|
+
protected _customerStands: CustomerStandsClient | undefined;
|
|
32
36
|
protected _recordClick: RecordClickClient | undefined;
|
|
33
37
|
protected _serveAd: ServeAdClient | undefined;
|
|
34
38
|
protected _business: BusinessClient | undefined;
|
|
@@ -37,11 +41,13 @@ export declare class FiveOneEatClient {
|
|
|
37
41
|
get businessMessaging(): BusinessMessagingClient;
|
|
38
42
|
get businessProducts(): BusinessProductsClient;
|
|
39
43
|
get businessShipping(): BusinessShippingClient;
|
|
44
|
+
get businessStands(): BusinessStandsClient;
|
|
40
45
|
get customerBusinesses(): CustomerBusinessesClient;
|
|
41
46
|
get customerEvents(): CustomerEventsClient;
|
|
42
47
|
get customerMessaging(): CustomerMessagingClient;
|
|
43
48
|
get customerMyAccount(): CustomerMyAccountClient;
|
|
44
49
|
get customer(): CustomerClient;
|
|
50
|
+
get customerStands(): CustomerStandsClient;
|
|
45
51
|
get recordClick(): RecordClickClient;
|
|
46
52
|
get serveAd(): ServeAdClient;
|
|
47
53
|
get business(): BusinessClient;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -13,11 +13,13 @@ import { BusinessHoursClient } from "./api/resources/businessHours/client/Client
|
|
|
13
13
|
import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.mjs";
|
|
14
14
|
import { BusinessProductsClient } from "./api/resources/businessProducts/client/Client.mjs";
|
|
15
15
|
import { BusinessShippingClient } from "./api/resources/businessShipping/client/Client.mjs";
|
|
16
|
+
import { BusinessStandsClient } from "./api/resources/businessStands/client/Client.mjs";
|
|
16
17
|
import { CustomerClient } from "./api/resources/customer/client/Client.mjs";
|
|
17
18
|
import { CustomerBusinessesClient } from "./api/resources/customerBusinesses/client/Client.mjs";
|
|
18
19
|
import { CustomerEventsClient } from "./api/resources/customerEvents/client/Client.mjs";
|
|
19
20
|
import { CustomerMessagingClient } from "./api/resources/customerMessaging/client/Client.mjs";
|
|
20
21
|
import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.mjs";
|
|
22
|
+
import { CustomerStandsClient } from "./api/resources/customerStands/client/Client.mjs";
|
|
21
23
|
import { RecordClickClient } from "./api/resources/recordClick/client/Client.mjs";
|
|
22
24
|
import { ServeAdClient } from "./api/resources/serveAd/client/Client.mjs";
|
|
23
25
|
import { normalizeClientOptionsWithAuth } from "./BaseClient.mjs";
|
|
@@ -42,6 +44,10 @@ export class FiveOneEatClient {
|
|
|
42
44
|
var _a;
|
|
43
45
|
return ((_a = this._businessShipping) !== null && _a !== void 0 ? _a : (this._businessShipping = new BusinessShippingClient(this._options)));
|
|
44
46
|
}
|
|
47
|
+
get businessStands() {
|
|
48
|
+
var _a;
|
|
49
|
+
return ((_a = this._businessStands) !== null && _a !== void 0 ? _a : (this._businessStands = new BusinessStandsClient(this._options)));
|
|
50
|
+
}
|
|
45
51
|
get customerBusinesses() {
|
|
46
52
|
var _a;
|
|
47
53
|
return ((_a = this._customerBusinesses) !== null && _a !== void 0 ? _a : (this._customerBusinesses = new CustomerBusinessesClient(this._options)));
|
|
@@ -62,6 +68,10 @@ export class FiveOneEatClient {
|
|
|
62
68
|
var _a;
|
|
63
69
|
return ((_a = this._customer) !== null && _a !== void 0 ? _a : (this._customer = new CustomerClient(this._options)));
|
|
64
70
|
}
|
|
71
|
+
get customerStands() {
|
|
72
|
+
var _a;
|
|
73
|
+
return ((_a = this._customerStands) !== null && _a !== void 0 ? _a : (this._customerStands = new CustomerStandsClient(this._options)));
|
|
74
|
+
}
|
|
65
75
|
get recordClick() {
|
|
66
76
|
var _a;
|
|
67
77
|
return ((_a = this._recordClick) !== null && _a !== void 0 ? _a : (this._recordClick = new RecordClickClient(this._options)));
|
|
@@ -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({
|
|
@@ -39,6 +39,8 @@ export class BulletinsClient {
|
|
|
39
39
|
* @param {BulletinsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
40
|
*
|
|
41
41
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
42
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
43
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
42
44
|
*
|
|
43
45
|
* @example
|
|
44
46
|
* await client.business.bulletins.list()
|
|
@@ -72,6 +74,10 @@ export class BulletinsClient {
|
|
|
72
74
|
switch (_response.error.statusCode) {
|
|
73
75
|
case 401:
|
|
74
76
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
77
|
+
case 403:
|
|
78
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
79
|
+
case 422:
|
|
80
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
75
81
|
default:
|
|
76
82
|
throw new errors.FiveOneEatError({
|
|
77
83
|
statusCode: _response.error.statusCode,
|
|
@@ -88,6 +94,7 @@ export class BulletinsClient {
|
|
|
88
94
|
* @param {BulletinsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
89
95
|
*
|
|
90
96
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
97
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
91
98
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
92
99
|
*
|
|
93
100
|
* @example
|
|
@@ -129,6 +136,8 @@ export class BulletinsClient {
|
|
|
129
136
|
switch (_response.error.statusCode) {
|
|
130
137
|
case 401:
|
|
131
138
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
139
|
+
case 403:
|
|
140
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
132
141
|
case 422:
|
|
133
142
|
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
134
143
|
default:
|
|
@@ -149,6 +158,7 @@ export class BulletinsClient {
|
|
|
149
158
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
150
159
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
151
160
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
161
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
152
162
|
*
|
|
153
163
|
* @example
|
|
154
164
|
* await client.business.bulletins.get({
|
|
@@ -189,6 +199,8 @@ export class BulletinsClient {
|
|
|
189
199
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
190
200
|
case 404:
|
|
191
201
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
202
|
+
case 422:
|
|
203
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
192
204
|
default:
|
|
193
205
|
throw new errors.FiveOneEatError({
|
|
194
206
|
statusCode: _response.error.statusCode,
|
|
@@ -274,6 +286,7 @@ export class BulletinsClient {
|
|
|
274
286
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
275
287
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
276
288
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
289
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
277
290
|
*
|
|
278
291
|
* @example
|
|
279
292
|
* await client.business.bulletins.delete({
|
|
@@ -314,6 +327,8 @@ export class BulletinsClient {
|
|
|
314
327
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
315
328
|
case 404:
|
|
316
329
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
330
|
+
case 422:
|
|
331
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
317
332
|
default:
|
|
318
333
|
throw new errors.FiveOneEatError({
|
|
319
334
|
statusCode: _response.error.statusCode,
|
|
@@ -332,6 +347,7 @@ export class BulletinsClient {
|
|
|
332
347
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
333
348
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
334
349
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
350
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
335
351
|
*
|
|
336
352
|
* @example
|
|
337
353
|
* await client.business.bulletins.togglePinned({
|
|
@@ -372,6 +388,8 @@ export class BulletinsClient {
|
|
|
372
388
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
373
389
|
case 404:
|
|
374
390
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
391
|
+
case 422:
|
|
392
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
375
393
|
default:
|
|
376
394
|
throw new errors.FiveOneEatError({
|
|
377
395
|
statusCode: _response.error.statusCode,
|
|
@@ -390,6 +408,7 @@ export class BulletinsClient {
|
|
|
390
408
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
391
409
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
392
410
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
411
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
393
412
|
*
|
|
394
413
|
* @example
|
|
395
414
|
* await client.business.bulletins.togglePublished({
|
|
@@ -430,6 +449,8 @@ export class BulletinsClient {
|
|
|
430
449
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
431
450
|
case 404:
|
|
432
451
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
452
|
+
case 422:
|
|
453
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
433
454
|
default:
|
|
434
455
|
throw new errors.FiveOneEatError({
|
|
435
456
|
statusCode: _response.error.statusCode,
|
|
@@ -21,10 +21,7 @@ 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
26
|
operating_months?: StoreBusinessRequest.OperatingMonths.Item[] | null;
|
|
30
27
|
}
|
|
@@ -31,10 +31,7 @@ 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
36
|
operating_months?: UpdateBusinessRequest.OperatingMonths.Item[] | null;
|
|
40
37
|
certification_ids?: number[] | null;
|
|
@@ -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({
|
|
@@ -52,6 +52,7 @@ export class EventsClient {
|
|
|
52
52
|
*
|
|
53
53
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
54
54
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
55
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
55
56
|
*
|
|
56
57
|
* @example
|
|
57
58
|
* await client.business.events.list()
|
|
@@ -87,6 +88,8 @@ export class EventsClient {
|
|
|
87
88
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
88
89
|
case 403:
|
|
89
90
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
91
|
+
case 422:
|
|
92
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
90
93
|
default:
|
|
91
94
|
throw new errors.FiveOneEatError({
|
|
92
95
|
statusCode: _response.error.statusCode,
|
|
@@ -167,6 +170,7 @@ export class EventsClient {
|
|
|
167
170
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
168
171
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
169
172
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
173
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
170
174
|
*
|
|
171
175
|
* @example
|
|
172
176
|
* await client.business.events.get({
|
|
@@ -207,6 +211,8 @@ export class EventsClient {
|
|
|
207
211
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
208
212
|
case 404:
|
|
209
213
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
214
|
+
case 422:
|
|
215
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
210
216
|
default:
|
|
211
217
|
throw new errors.FiveOneEatError({
|
|
212
218
|
statusCode: _response.error.statusCode,
|
|
@@ -289,6 +295,7 @@ export class EventsClient {
|
|
|
289
295
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
290
296
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
291
297
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
298
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
292
299
|
*
|
|
293
300
|
* @example
|
|
294
301
|
* await client.business.events.delete({
|
|
@@ -329,6 +336,8 @@ export class EventsClient {
|
|
|
329
336
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
330
337
|
case 404:
|
|
331
338
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
339
|
+
case 422:
|
|
340
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
332
341
|
default:
|
|
333
342
|
throw new errors.FiveOneEatError({
|
|
334
343
|
statusCode: _response.error.statusCode,
|
|
@@ -347,6 +356,7 @@ export class EventsClient {
|
|
|
347
356
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
348
357
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
349
358
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
359
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
350
360
|
*
|
|
351
361
|
* @example
|
|
352
362
|
* await client.business.events.togglePublished({
|
|
@@ -387,6 +397,8 @@ export class EventsClient {
|
|
|
387
397
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
388
398
|
case 404:
|
|
389
399
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
400
|
+
case 422:
|
|
401
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
390
402
|
default:
|
|
391
403
|
throw new errors.FiveOneEatError({
|
|
392
404
|
statusCode: _response.error.statusCode,
|
|
@@ -478,6 +490,7 @@ export class EventsClient {
|
|
|
478
490
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
479
491
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
480
492
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
493
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
481
494
|
*
|
|
482
495
|
* @example
|
|
483
496
|
* await client.business.events.deleteImage({
|
|
@@ -518,6 +531,8 @@ export class EventsClient {
|
|
|
518
531
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
519
532
|
case 404:
|
|
520
533
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
534
|
+
case 422:
|
|
535
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
521
536
|
default:
|
|
522
537
|
throw new errors.FiveOneEatError({
|
|
523
538
|
statusCode: _response.error.statusCode,
|
|
@@ -538,6 +553,7 @@ export class EventsClient {
|
|
|
538
553
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
539
554
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
540
555
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
556
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
541
557
|
*
|
|
542
558
|
* @example
|
|
543
559
|
* await client.business.events.listRsvps({
|
|
@@ -578,6 +594,8 @@ export class EventsClient {
|
|
|
578
594
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
579
595
|
case 404:
|
|
580
596
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
597
|
+
case 422:
|
|
598
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
581
599
|
default:
|
|
582
600
|
throw new errors.FiveOneEatError({
|
|
583
601
|
statusCode: _response.error.statusCode,
|
|
@@ -599,6 +617,7 @@ export class EventsClient {
|
|
|
599
617
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
600
618
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
601
619
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
620
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
602
621
|
*
|
|
603
622
|
* @example
|
|
604
623
|
* await client.business.events.listAttendees({
|
|
@@ -639,6 +658,8 @@ export class EventsClient {
|
|
|
639
658
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
640
659
|
case 404:
|
|
641
660
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
661
|
+
case 422:
|
|
662
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
642
663
|
default:
|
|
643
664
|
throw new errors.FiveOneEatError({
|
|
644
665
|
statusCode: _response.error.statusCode,
|
|
@@ -660,6 +681,7 @@ export class EventsClient {
|
|
|
660
681
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
661
682
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
662
683
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
684
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
663
685
|
*
|
|
664
686
|
* @example
|
|
665
687
|
* await client.business.events.salesSummary({
|
|
@@ -700,6 +722,8 @@ export class EventsClient {
|
|
|
700
722
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
701
723
|
case 404:
|
|
702
724
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
725
|
+
case 422:
|
|
726
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
703
727
|
default:
|
|
704
728
|
throw new errors.FiveOneEatError({
|
|
705
729
|
statusCode: _response.error.statusCode,
|
package/dist/esm/api/resources/business/resources/events/client/requests/StoreEventRequest.d.mts
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;
|