@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
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
|
@@ -3,11 +3,13 @@ import { BusinessHoursClient } from "./api/resources/businessHours/client/Client
|
|
|
3
3
|
import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.js";
|
|
4
4
|
import { BusinessProductsClient } from "./api/resources/businessProducts/client/Client.js";
|
|
5
5
|
import { BusinessShippingClient } from "./api/resources/businessShipping/client/Client.js";
|
|
6
|
+
import { BusinessStandsClient } from "./api/resources/businessStands/client/Client.js";
|
|
6
7
|
import { CustomerClient } from "./api/resources/customer/client/Client.js";
|
|
7
8
|
import { CustomerBusinessesClient } from "./api/resources/customerBusinesses/client/Client.js";
|
|
8
9
|
import { CustomerEventsClient } from "./api/resources/customerEvents/client/Client.js";
|
|
9
10
|
import { CustomerMessagingClient } from "./api/resources/customerMessaging/client/Client.js";
|
|
10
11
|
import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.js";
|
|
12
|
+
import { CustomerStandsClient } from "./api/resources/customerStands/client/Client.js";
|
|
11
13
|
import { RecordClickClient } from "./api/resources/recordClick/client/Client.js";
|
|
12
14
|
import { ServeAdClient } from "./api/resources/serveAd/client/Client.js";
|
|
13
15
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
@@ -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/cjs/Client.js
CHANGED
|
@@ -49,13 +49,15 @@ const Client_js_2 = require("./api/resources/businessHours/client/Client.js");
|
|
|
49
49
|
const Client_js_3 = require("./api/resources/businessMessaging/client/Client.js");
|
|
50
50
|
const Client_js_4 = require("./api/resources/businessProducts/client/Client.js");
|
|
51
51
|
const Client_js_5 = require("./api/resources/businessShipping/client/Client.js");
|
|
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/
|
|
58
|
-
const Client_js_12 = require("./api/resources/
|
|
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");
|
|
59
61
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
60
62
|
const core = __importStar(require("./core/index.js"));
|
|
61
63
|
class FiveOneEatClient {
|
|
@@ -78,33 +80,41 @@ class FiveOneEatClient {
|
|
|
78
80
|
var _a;
|
|
79
81
|
return ((_a = this._businessShipping) !== null && _a !== void 0 ? _a : (this._businessShipping = new Client_js_5.BusinessShippingClient(this._options)));
|
|
80
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)));
|
|
86
|
+
}
|
|
81
87
|
get customerBusinesses() {
|
|
82
88
|
var _a;
|
|
83
|
-
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)));
|
|
84
90
|
}
|
|
85
91
|
get customerEvents() {
|
|
86
92
|
var _a;
|
|
87
|
-
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)));
|
|
88
94
|
}
|
|
89
95
|
get customerMessaging() {
|
|
90
96
|
var _a;
|
|
91
|
-
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)));
|
|
92
98
|
}
|
|
93
99
|
get customerMyAccount() {
|
|
94
100
|
var _a;
|
|
95
|
-
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)));
|
|
96
102
|
}
|
|
97
103
|
get customer() {
|
|
98
104
|
var _a;
|
|
99
|
-
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)));
|
|
100
110
|
}
|
|
101
111
|
get recordClick() {
|
|
102
112
|
var _a;
|
|
103
|
-
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)));
|
|
104
114
|
}
|
|
105
115
|
get serveAd() {
|
|
106
116
|
var _a;
|
|
107
|
-
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)));
|
|
108
118
|
}
|
|
109
119
|
get business() {
|
|
110
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,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({
|
|
@@ -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;
|
package/dist/cjs/api/resources/business/resources/events/client/requests/UpdateEventRequest.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ export interface UpdateEventRequest {
|
|
|
9
9
|
event: string;
|
|
10
10
|
title?: string;
|
|
11
11
|
description?: string | null;
|
|
12
|
+
location?: string | null;
|
|
12
13
|
starts_at?: string;
|
|
13
14
|
ends_at?: string;
|
|
14
|
-
location?: string | null;
|
|
15
15
|
is_all_day?: boolean;
|
|
16
16
|
is_featured?: boolean;
|
|
17
17
|
ticket_sales_enabled?: boolean;
|
package/dist/cjs/api/resources/business/resources/events/resources/checkIn/client/Client.d.ts
CHANGED
|
@@ -62,6 +62,7 @@ export declare class CheckInClient {
|
|
|
62
62
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
63
63
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
64
64
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
65
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
65
66
|
*
|
|
66
67
|
* @example
|
|
67
68
|
* await client.business.events.checkIn.stats({
|
|
@@ -80,6 +81,7 @@ export declare class CheckInClient {
|
|
|
80
81
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
81
82
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
82
83
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
84
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
83
85
|
*
|
|
84
86
|
* @example
|
|
85
87
|
* await client.business.events.checkIn.recent({
|
|
@@ -214,6 +214,7 @@ class CheckInClient {
|
|
|
214
214
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
215
215
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
216
216
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
217
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
217
218
|
*
|
|
218
219
|
* @example
|
|
219
220
|
* await client.business.events.checkIn.stats({
|
|
@@ -254,6 +255,8 @@ class CheckInClient {
|
|
|
254
255
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
255
256
|
case 404:
|
|
256
257
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
258
|
+
case 422:
|
|
259
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
257
260
|
default:
|
|
258
261
|
throw new errors.FiveOneEatError({
|
|
259
262
|
statusCode: _response.error.statusCode,
|
|
@@ -275,6 +278,7 @@ class CheckInClient {
|
|
|
275
278
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
276
279
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
277
280
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
281
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
278
282
|
*
|
|
279
283
|
* @example
|
|
280
284
|
* await client.business.events.checkIn.recent({
|
|
@@ -315,6 +319,8 @@ class CheckInClient {
|
|
|
315
319
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
316
320
|
case 404:
|
|
317
321
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
322
|
+
case 422:
|
|
323
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
318
324
|
default:
|
|
319
325
|
throw new errors.FiveOneEatError({
|
|
320
326
|
statusCode: _response.error.statusCode,
|
package/dist/cjs/api/resources/business/resources/events/resources/orders/client/Client.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export declare class OrdersClient {
|
|
|
19
19
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
20
20
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
21
21
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
22
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
22
23
|
*
|
|
23
24
|
* @example
|
|
24
25
|
* await client.business.events.orders.list({
|
|
@@ -34,6 +35,7 @@ export declare class OrdersClient {
|
|
|
34
35
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
35
36
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
36
37
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
38
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
37
39
|
*
|
|
38
40
|
* @example
|
|
39
41
|
* await client.business.events.orders.get({
|
|
@@ -64,6 +64,7 @@ class OrdersClient {
|
|
|
64
64
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
65
65
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
66
66
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
67
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
67
68
|
*
|
|
68
69
|
* @example
|
|
69
70
|
* await client.business.events.orders.list({
|
|
@@ -104,6 +105,8 @@ class OrdersClient {
|
|
|
104
105
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
105
106
|
case 404:
|
|
106
107
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
108
|
+
case 422:
|
|
109
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
107
110
|
default:
|
|
108
111
|
throw new errors.FiveOneEatError({
|
|
109
112
|
statusCode: _response.error.statusCode,
|
|
@@ -122,6 +125,7 @@ class OrdersClient {
|
|
|
122
125
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
123
126
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
124
127
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
128
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
125
129
|
*
|
|
126
130
|
* @example
|
|
127
131
|
* await client.business.events.orders.get({
|
|
@@ -163,6 +167,8 @@ class OrdersClient {
|
|
|
163
167
|
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
164
168
|
case 404:
|
|
165
169
|
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
170
|
+
case 422:
|
|
171
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
166
172
|
default:
|
|
167
173
|
throw new errors.FiveOneEatError({
|
|
168
174
|
statusCode: _response.error.statusCode,
|
package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/Client.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ export declare class TicketTypesClient {
|
|
|
17
17
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
18
18
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
19
19
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
20
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
20
21
|
*
|
|
21
22
|
* @example
|
|
22
23
|
* await client.business.events.ticketTypes.list({
|
|
@@ -51,6 +52,7 @@ export declare class TicketTypesClient {
|
|
|
51
52
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
52
53
|
* @throws {@link FiveOneEat.ForbiddenError}
|
|
53
54
|
* @throws {@link FiveOneEat.NotFoundError}
|
|
55
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
54
56
|
*
|
|
55
57
|
* @example
|
|
56
58
|
* await client.business.events.ticketTypes.get({
|