@51eat/sdk 0.0.65 → 0.0.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -13
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +0 -36
- package/dist/cjs/Client.js +2 -62
- package/dist/cjs/api/resources/business/client/Client.d.ts +9 -0
- package/dist/cjs/api/resources/business/client/Client.js +33 -18
- package/dist/cjs/api/resources/business/resources/hours/client/Client.d.ts +45 -0
- package/dist/cjs/api/resources/{customerBusinesses → business/resources/hours}/client/Client.js +80 -32
- package/dist/cjs/api/resources/business/resources/hours/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/hours/exports.d.ts +3 -0
- package/dist/cjs/api/resources/{businessProducts → business/resources/hours}/exports.js +3 -2
- package/dist/cjs/api/resources/business/resources/hours/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/hours/index.js +19 -0
- package/dist/cjs/api/resources/business/resources/hours/resources/exceptions/client/Client.d.ts +62 -0
- package/dist/cjs/api/resources/{businessProducts → business/resources/hours/resources/exceptions}/client/Client.js +50 -65
- package/dist/cjs/api/resources/{businessHours/client/requests/DeleteBusinessHourExceptionRequest.d.ts → business/resources/hours/resources/exceptions/client/requests/DeleteExceptionsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/{businessHours → business/resources/hours/resources/exceptions}/client/requests/index.d.ts +1 -2
- package/dist/cjs/api/resources/business/resources/hours/resources/exceptions/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{recordClick → business/resources/hours/resources/exceptions}/exports.js +2 -2
- package/dist/cjs/api/resources/business/resources/hours/resources/exceptions/types/CreateExceptionsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/hours/resources/exceptions/types/UpdateExceptionsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/hours/resources/exceptions/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/hours/resources/exceptions/types/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/hours/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/hours/resources/index.js +42 -0
- package/dist/cjs/api/resources/business/resources/hours/types/GetHoursResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/hours/types/UpdateHoursResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/hours/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/hours/types/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/index.d.ts +7 -0
- package/dist/cjs/api/resources/business/resources/index.js +8 -1
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/Client.d.ts +14 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/Client.js +65 -0
- package/dist/{esm/api/resources/businessMessaging/client/requests/SearchBusinessConversationsRequest.d.mts → cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/SearchConversationsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/SearchConversationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/messaging/resources/conversations/types/index.js +1 -0
- package/dist/cjs/api/resources/business/resources/products/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/client/Client.js +7 -2
- package/dist/cjs/api/resources/business/resources/products/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/index.js +4 -1
- package/dist/cjs/api/resources/business/resources/products/resources/inventory/client/Client.d.ts +29 -0
- package/dist/cjs/api/resources/{serveAd → business/resources/products/resources/inventory}/client/Client.js +26 -20
- package/dist/{esm/api/resources/businessProducts/client/requests/GetProductInventorySummaryRequest.d.mts → cjs/api/resources/business/resources/products/resources/inventory/client/requests/SummaryInventoryRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/business/resources/products/resources/inventory/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/inventory/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{businessHours → business/resources/products/resources/inventory}/exports.js +2 -2
- package/dist/cjs/api/resources/business/resources/products/resources/inventory/types/SummaryInventoryResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/products/resources/inventory/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/products/resources/inventory/types/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/client/Client.js +5 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/index.js +4 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/Client.d.ts +48 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/Client.js +206 -0
- package/dist/cjs/api/resources/{businessProducts → business/resources/products/resources/variants/resources/inventory}/client/requests/AdjustInventoryRequest.d.ts +1 -1
- package/dist/{esm/api/resources/businessProducts/client/requests/ListVariantInventoryHistoryRequest.d.mts → cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/HistoryInventoryRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{businessStands → business/resources/products/resources/variants/resources/inventory}/exports.js +2 -2
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/AdjustInventoryResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/HistoryInventoryResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/products/resources/variants/resources/inventory/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/{customerMyAccount → business/resources/products/resources/variants/resources/inventory}/types/index.js +2 -2
- package/dist/cjs/api/resources/business/resources/shipping/client/Client.d.ts +15 -0
- package/dist/cjs/api/resources/business/resources/shipping/client/Client.js +21 -0
- package/dist/cjs/api/resources/business/resources/shipping/exports.d.ts +3 -0
- package/dist/cjs/api/resources/{businessShipping → business/resources/shipping}/exports.js +3 -2
- package/dist/cjs/api/resources/business/resources/shipping/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/shipping/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/account/client/Client.d.ts +79 -0
- package/dist/cjs/api/resources/{businessHours → business/resources/shipping/resources/account}/client/Client.js +75 -111
- package/dist/cjs/api/resources/business/resources/shipping/resources/account/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/account/exports.d.ts +2 -0
- package/dist/cjs/api/resources/{serveAd → business/resources/shipping/resources/account}/exports.js +2 -2
- package/dist/cjs/api/resources/business/resources/shipping/resources/account/types/GetAccountResponse.d.ts +6 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/account/types/SetupIntentAccountResponse.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/account/types/UpdateAccountResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/account/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/account/types/index.js +19 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/index.d.ts +6 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/index.js +45 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/Client.d.ts +72 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/Client.js +300 -0
- package/dist/{esm/api/resources/businessShipping/client/requests/DeleteBusinessShippingRateRequest.d.mts → cjs/api/resources/business/resources/shipping/resources/rates/client/requests/DeleteRatesRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/CreateRatesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/ListRatesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/UpdateRatesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/shipping/resources/rates/types/index.js +19 -0
- package/dist/cjs/api/resources/business/resources/stands/client/Client.d.ts +106 -0
- package/dist/cjs/api/resources/{businessStands → business/resources/stands}/client/Client.js +49 -46
- package/dist/{esm/api/resources/businessStands/client/requests/GetBusinessStandRequest.d.mts → cjs/api/resources/business/resources/stands/client/requests/DeleteStandsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/{customerStands/client/requests/ScanStandRequest.d.ts → business/resources/stands/client/requests/GetStandsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/{businessStands → business/resources/stands}/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/business/resources/stands/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/stands/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/stands/types/CreateStandsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/stands/types/GetStandsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/stands/types/ListStandsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/stands/types/UpdateStandsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/stands/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/stands/types/index.js +20 -0
- package/dist/cjs/api/resources/customer/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/customer/client/Client.js +36 -26
- package/dist/cjs/api/resources/customer/resources/ads/client/Client.d.ts +45 -0
- package/dist/cjs/api/resources/{customerMyAccount → customer/resources/ads}/client/Client.js +36 -84
- package/dist/cjs/api/resources/{recordClick/client/requests/AdsRecordClickRequest.d.ts → customer/resources/ads/client/requests/RecordClickAdsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/{serveAd/client/requests/AdsServeAdRequest.d.ts → customer/resources/ads/client/requests/ServeAdsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/customer/resources/ads/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/ads/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/ads/exports.js +21 -0
- package/dist/cjs/api/resources/customer/resources/ads/types/ServeAdsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/ads/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/ads/types/index.js +17 -0
- package/dist/cjs/api/resources/customer/resources/businesses/client/Client.d.ts +8 -2
- package/dist/cjs/api/resources/customer/resources/businesses/client/Client.js +35 -11
- package/dist/cjs/api/resources/customer/resources/businesses/client/requests/GetPickupTimeslotsBusinessesRequest.d.ts +5 -2
- package/dist/cjs/api/resources/{customerBusinesses/types/GetBusinessPickupTimeslotsResponse.d.ts → customer/resources/businesses/types/GetPickupTimeslotsBusinessesResponse.d.ts} +1 -1
- package/dist/cjs/api/resources/customer/resources/businesses/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/businesses/types/index.js +1 -0
- package/dist/cjs/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.d.ts +16 -12
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/Client.js +52 -43
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.d.ts +0 -1
- package/dist/cjs/api/resources/customer/resources/events/resources/ticketing/client/requests/ReleaseHoldTicketingRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/index.d.ts +6 -0
- package/dist/cjs/api/resources/customer/resources/index.js +7 -1
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/Client.d.ts +14 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/client/Client.js +52 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/EphemeralKeyPaymentMethodsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/paymentMethods/types/index.js +1 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/ticketOrders/client/Client.d.ts +6 -2
- package/dist/cjs/api/resources/customer/resources/me/resources/ticketOrders/client/Client.js +22 -10
- package/dist/cjs/api/resources/customer/resources/me/resources/ticketOrders/client/requests/GetTicketOrdersRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/me/resources/ticketOrders/types/GetTicketOrdersResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/ticketOrders/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/ticketOrders/types/index.js +1 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/tickets/client/Client.d.ts +22 -2
- package/dist/cjs/api/resources/customer/resources/me/resources/tickets/client/Client.js +76 -10
- package/dist/cjs/api/resources/{customerMyAccount/client/requests/GetMyTicketRequest.d.ts → customer/resources/me/resources/tickets/client/requests/AppleWalletPassTicketsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/customer/resources/me/resources/tickets/client/requests/GetTicketsRequest.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/me/resources/tickets/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/tickets/types/GetTicketsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/tickets/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/me/resources/tickets/types/index.js +1 -0
- package/dist/cjs/api/resources/customer/resources/messaging/resources/conversations/client/Client.d.ts +14 -0
- package/dist/cjs/api/resources/customer/resources/messaging/resources/conversations/client/Client.js +65 -0
- package/dist/cjs/api/resources/{customerMessaging/client/requests/SearchCustomerConversationsRequest.d.ts → customer/resources/messaging/resources/conversations/client/requests/SearchConversationsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/customer/resources/messaging/resources/conversations/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/messaging/resources/conversations/types/SearchConversationsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/messaging/resources/conversations/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/customer/resources/messaging/resources/conversations/types/index.js +1 -0
- package/dist/cjs/api/resources/customer/resources/stands/client/Client.d.ts +63 -0
- package/dist/cjs/api/resources/{customerStands → customer/resources/stands}/client/Client.js +37 -34
- package/dist/{esm/api/resources/businessStands/client/requests/DeleteBusinessStandRequest.d.mts → cjs/api/resources/customer/resources/stands/client/requests/CreatePaymentIntentStandsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/{businessStands/client/requests/GetBusinessStandRequest.d.ts → customer/resources/stands/client/requests/ScanStandsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/customer/resources/stands/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/stands/exports.d.ts +2 -0
- package/dist/cjs/api/resources/customer/resources/stands/exports.js +21 -0
- package/dist/cjs/api/resources/customer/resources/stands/types/CheckoutStandsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/{customerStands/types/CreateStandPaymentIntentResponse.d.ts → customer/resources/stands/types/CreatePaymentIntentStandsResponse.d.ts} +2 -1
- package/dist/cjs/api/resources/customer/resources/stands/types/ScanStandsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/customer/resources/stands/types/index.d.ts +3 -0
- package/dist/cjs/api/resources/customer/resources/stands/types/index.js +19 -0
- package/dist/cjs/api/resources/index.d.ts +0 -34
- package/dist/cjs/api/resources/index.js +1 -35
- 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 +0 -36
- package/dist/esm/Client.mjs +0 -60
- package/dist/esm/api/resources/business/client/Client.d.mts +9 -0
- package/dist/esm/api/resources/business/client/Client.mjs +15 -0
- package/dist/esm/api/resources/business/resources/hours/client/Client.d.mts +45 -0
- package/dist/esm/api/resources/business/resources/hours/client/Client.mjs +136 -0
- package/dist/esm/api/resources/business/resources/hours/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/hours/exports.d.mts +3 -0
- package/dist/esm/api/resources/{businessMessaging → business/resources/hours}/exports.mjs +2 -1
- package/dist/esm/api/resources/business/resources/hours/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/hours/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/hours/resources/exceptions/client/Client.d.mts +62 -0
- package/dist/esm/api/resources/{businessProducts → business/resources/hours/resources/exceptions}/client/Client.mjs +48 -63
- package/dist/esm/api/resources/{businessHours/client/requests/DeleteBusinessHourExceptionRequest.d.mts → business/resources/hours/resources/exceptions/client/requests/DeleteExceptionsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/{businessHours → business/resources/hours/resources/exceptions}/client/requests/index.d.mts +1 -2
- package/dist/esm/api/resources/business/resources/hours/resources/exceptions/exports.d.mts +2 -0
- package/dist/esm/api/resources/{recordClick → business/resources/hours/resources/exceptions}/exports.mjs +1 -1
- package/dist/esm/api/resources/business/resources/hours/resources/exceptions/types/CreateExceptionsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/hours/resources/exceptions/types/UpdateExceptionsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/hours/resources/exceptions/types/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/hours/resources/exceptions/types/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/hours/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/hours/resources/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/hours/types/GetHoursResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/hours/types/UpdateHoursResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/hours/types/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/hours/types/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/index.d.mts +7 -0
- package/dist/esm/api/resources/business/resources/index.mjs +7 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/Client.d.mts +14 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/Client.mjs +65 -0
- package/dist/{cjs/api/resources/businessMessaging/client/requests/SearchBusinessConversationsRequest.d.ts → esm/api/resources/business/resources/messaging/resources/conversations/client/requests/SearchConversationsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/SearchConversationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/messaging/resources/conversations/types/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/client/Client.mjs +5 -0
- package/dist/esm/api/resources/business/resources/products/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/inventory/client/Client.d.mts +29 -0
- package/dist/esm/api/resources/{serveAd → business/resources/products/resources/inventory}/client/Client.mjs +24 -18
- package/dist/{cjs/api/resources/businessProducts/client/requests/GetProductInventorySummaryRequest.d.ts → esm/api/resources/business/resources/products/resources/inventory/client/requests/SummaryInventoryRequest.d.mts} +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/inventory/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/inventory/exports.d.mts +2 -0
- package/dist/esm/api/resources/{businessHours → business/resources/products/resources/inventory}/exports.mjs +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/inventory/types/SummaryInventoryResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/products/resources/inventory/types/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/inventory/types/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/client/Client.mjs +5 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/Client.d.mts +48 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/Client.mjs +169 -0
- package/dist/esm/api/resources/{businessProducts → business/resources/products/resources/variants/resources/inventory}/client/requests/AdjustInventoryRequest.d.mts +1 -1
- package/dist/{cjs/api/resources/businessProducts/client/requests/ListVariantInventoryHistoryRequest.d.ts → esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/HistoryInventoryRequest.d.mts} +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/exports.d.mts +2 -0
- package/dist/esm/api/resources/{customerStands → business/resources/products/resources/variants/resources/inventory}/exports.mjs +1 -1
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/AdjustInventoryResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/HistoryInventoryResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/products/resources/variants/resources/inventory/types/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/shipping/client/Client.d.mts +15 -0
- package/dist/esm/api/resources/business/resources/shipping/client/Client.mjs +17 -0
- package/dist/esm/api/resources/business/resources/shipping/exports.d.mts +3 -0
- package/dist/esm/api/resources/{businessProducts → business/resources/shipping}/exports.mjs +2 -1
- package/dist/esm/api/resources/business/resources/shipping/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/shipping/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/account/client/Client.d.mts +79 -0
- package/dist/esm/api/resources/{businessHours → business/resources/shipping/resources/account}/client/Client.mjs +73 -109
- package/dist/esm/api/resources/business/resources/shipping/resources/account/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/account/exports.d.mts +2 -0
- package/dist/esm/api/resources/{serveAd → business/resources/shipping/resources/account}/exports.mjs +1 -1
- package/dist/esm/api/resources/business/resources/shipping/resources/account/types/GetAccountResponse.d.mts +6 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/account/types/SetupIntentAccountResponse.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/account/types/UpdateAccountResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/account/types/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/account/types/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/index.d.mts +6 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/index.mjs +6 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/Client.d.mts +72 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/Client.mjs +263 -0
- package/dist/{cjs/api/resources/businessShipping/client/requests/DeleteBusinessShippingRateRequest.d.ts → esm/api/resources/business/resources/shipping/resources/rates/client/requests/DeleteRatesRequest.d.mts} +1 -1
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/CreateRatesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/ListRatesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/UpdateRatesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/shipping/resources/rates/types/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/stands/client/Client.d.mts +106 -0
- package/dist/esm/api/resources/{businessStands → business/resources/stands}/client/Client.mjs +47 -44
- package/dist/esm/api/resources/business/resources/stands/client/requests/DeleteStandsRequest.d.mts +10 -0
- package/dist/esm/api/resources/{customerStands/client/requests/ScanStandRequest.d.mts → business/resources/stands/client/requests/GetStandsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/{businessStands → business/resources/stands}/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/business/resources/stands/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/stands/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/stands/types/CreateStandsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/stands/types/GetStandsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/stands/types/ListStandsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/stands/types/UpdateStandsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/stands/types/index.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/stands/types/index.mjs +4 -0
- package/dist/esm/api/resources/customer/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/customer/client/Client.mjs +10 -0
- package/dist/esm/api/resources/customer/resources/ads/client/Client.d.mts +45 -0
- package/dist/esm/api/resources/{customerMyAccount → customer/resources/ads}/client/Client.mjs +34 -82
- package/dist/esm/api/resources/{recordClick/client/requests/AdsRecordClickRequest.d.mts → customer/resources/ads/client/requests/RecordClickAdsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/{serveAd/client/requests/AdsServeAdRequest.d.mts → customer/resources/ads/client/requests/ServeAdsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/customer/resources/ads/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/ads/exports.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/ads/exports.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/ads/types/ServeAdsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/ads/types/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/ads/types/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/businesses/client/Client.d.mts +8 -2
- package/dist/esm/api/resources/customer/resources/businesses/client/Client.mjs +35 -11
- package/dist/esm/api/resources/customer/resources/businesses/client/requests/GetPickupTimeslotsBusinessesRequest.d.mts +5 -2
- package/dist/esm/api/resources/{customerBusinesses/types/GetBusinessPickupTimeslotsResponse.d.mts → customer/resources/businesses/types/GetPickupTimeslotsBusinessesResponse.d.mts} +1 -1
- package/dist/esm/api/resources/customer/resources/businesses/types/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/businesses/types/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/cart/client/requests/CreatePaymentIntentRequest.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.d.mts +16 -12
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/Client.mjs +52 -43
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/AppHttpRequestsApiV1CustomerEventsCreatePaymentIntentRequest.d.mts +0 -1
- package/dist/esm/api/resources/customer/resources/events/resources/ticketing/client/requests/ReleaseHoldTicketingRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/index.d.mts +6 -0
- package/dist/esm/api/resources/customer/resources/index.mjs +6 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/Client.d.mts +14 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/client/Client.mjs +52 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/EphemeralKeyPaymentMethodsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/paymentMethods/types/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/ticketOrders/client/Client.d.mts +6 -2
- package/dist/esm/api/resources/customer/resources/me/resources/ticketOrders/client/Client.mjs +22 -10
- package/dist/esm/api/resources/customer/resources/me/resources/ticketOrders/client/requests/GetTicketOrdersRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/me/resources/ticketOrders/types/GetTicketOrdersResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/me/resources/ticketOrders/types/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/ticketOrders/types/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/tickets/client/Client.d.mts +22 -2
- package/dist/esm/api/resources/customer/resources/me/resources/tickets/client/Client.mjs +76 -10
- package/dist/esm/api/resources/{customerMyAccount/client/requests/GetMyTicketRequest.d.mts → customer/resources/me/resources/tickets/client/requests/AppleWalletPassTicketsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/customer/resources/me/resources/tickets/client/requests/GetTicketsRequest.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/me/resources/tickets/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/tickets/types/GetTicketsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/me/resources/tickets/types/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/me/resources/tickets/types/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/messaging/resources/conversations/client/Client.d.mts +14 -0
- package/dist/esm/api/resources/customer/resources/messaging/resources/conversations/client/Client.mjs +65 -0
- package/dist/esm/api/resources/{customerMessaging/client/requests/SearchCustomerConversationsRequest.d.mts → customer/resources/messaging/resources/conversations/client/requests/SearchConversationsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/customer/resources/messaging/resources/conversations/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/messaging/resources/conversations/types/SearchConversationsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/messaging/resources/conversations/types/index.d.mts +1 -0
- package/dist/esm/api/resources/customer/resources/messaging/resources/conversations/types/index.mjs +1 -0
- package/dist/esm/api/resources/customer/resources/stands/client/Client.d.mts +63 -0
- package/dist/esm/api/resources/{customerStands → customer/resources/stands}/client/Client.mjs +35 -32
- package/dist/{cjs/api/resources/businessStands/client/requests/DeleteBusinessStandRequest.d.ts → esm/api/resources/customer/resources/stands/client/requests/CreatePaymentIntentStandsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/customer/resources/stands/client/requests/ScanStandsRequest.d.mts +10 -0
- package/dist/esm/api/resources/customer/resources/stands/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/stands/exports.d.mts +2 -0
- package/dist/esm/api/resources/customer/resources/stands/exports.mjs +3 -0
- package/dist/esm/api/resources/customer/resources/stands/types/CheckoutStandsResponse.d.mts +4 -0
- package/dist/esm/api/resources/{customerStands/types/CreateStandPaymentIntentResponse.d.mts → customer/resources/stands/types/CreatePaymentIntentStandsResponse.d.mts} +2 -1
- package/dist/esm/api/resources/customer/resources/stands/types/ScanStandsResponse.d.mts +4 -0
- package/dist/esm/api/resources/customer/resources/stands/types/index.d.mts +3 -0
- package/dist/esm/api/resources/customer/resources/stands/types/index.mjs +3 -0
- package/dist/esm/api/resources/index.d.mts +0 -34
- package/dist/esm/api/resources/index.mjs +0 -34
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +111 -133
- package/reference.md +2115 -2238
- package/dist/cjs/api/resources/businessHours/client/Client.d.ts +0 -91
- package/dist/cjs/api/resources/businessHours/exports.d.ts +0 -2
- package/dist/cjs/api/resources/businessHours/types/CreateBusinessHourExceptionResponse.d.ts +0 -4
- package/dist/cjs/api/resources/businessHours/types/GetBusinessHoursResponse.d.ts +0 -4
- package/dist/cjs/api/resources/businessHours/types/UpdateBusinessHourExceptionResponse.d.ts +0 -4
- package/dist/cjs/api/resources/businessHours/types/UpdateBusinessHoursResponse.d.ts +0 -4
- package/dist/cjs/api/resources/businessHours/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/businessHours/types/index.js +0 -20
- package/dist/cjs/api/resources/businessMessaging/client/Client.d.ts +0 -27
- package/dist/cjs/api/resources/businessMessaging/client/Client.js +0 -124
- package/dist/cjs/api/resources/businessMessaging/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/businessMessaging/exports.d.ts +0 -2
- package/dist/cjs/api/resources/businessMessaging/exports.js +0 -21
- package/dist/cjs/api/resources/businessMessaging/types/SearchBusinessConversationsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/businessMessaging/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/businessMessaging/types/index.js +0 -17
- package/dist/cjs/api/resources/businessProducts/client/Client.d.ts +0 -64
- package/dist/cjs/api/resources/businessProducts/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/businessProducts/exports.d.ts +0 -2
- package/dist/cjs/api/resources/businessProducts/types/AdjustVariantInventoryResponse.d.ts +0 -4
- package/dist/cjs/api/resources/businessProducts/types/GetProductInventorySummaryResponse.d.ts +0 -4
- package/dist/cjs/api/resources/businessProducts/types/ListVariantInventoryHistoryResponse.d.ts +0 -4
- package/dist/cjs/api/resources/businessProducts/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/businessProducts/types/index.js +0 -19
- package/dist/cjs/api/resources/businessShipping/client/Client.d.ts +0 -138
- package/dist/cjs/api/resources/businessShipping/client/Client.js +0 -566
- package/dist/cjs/api/resources/businessShipping/client/requests/index.d.ts +0 -5
- package/dist/cjs/api/resources/businessShipping/exports.d.ts +0 -2
- package/dist/cjs/api/resources/businessShipping/types/CreateBusinessShippingRateResponse.d.ts +0 -4
- package/dist/cjs/api/resources/businessShipping/types/GetBusinessShippingAccountResponse.d.ts +0 -6
- package/dist/cjs/api/resources/businessShipping/types/GetBusinessShippingSetupIntentResponse.d.ts +0 -3
- package/dist/cjs/api/resources/businessShipping/types/ListBusinessShippingRatesResponse.d.ts +0 -4
- package/dist/cjs/api/resources/businessShipping/types/UpdateBusinessShippingAccountResponse.d.ts +0 -4
- package/dist/cjs/api/resources/businessShipping/types/UpdateBusinessShippingRateResponse.d.ts +0 -4
- package/dist/cjs/api/resources/businessShipping/types/index.d.ts +0 -6
- package/dist/cjs/api/resources/businessShipping/types/index.js +0 -22
- package/dist/cjs/api/resources/businessStands/client/Client.d.ts +0 -106
- package/dist/cjs/api/resources/businessStands/exports.d.ts +0 -2
- package/dist/cjs/api/resources/businessStands/types/CreateBusinessStandResponse.d.ts +0 -4
- package/dist/cjs/api/resources/businessStands/types/GetBusinessStandResponse.d.ts +0 -4
- package/dist/cjs/api/resources/businessStands/types/ListBusinessStandsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/businessStands/types/UpdateBusinessStandResponse.d.ts +0 -4
- package/dist/cjs/api/resources/businessStands/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/businessStands/types/index.js +0 -20
- package/dist/cjs/api/resources/customerBusinesses/client/Client.d.ts +0 -30
- package/dist/cjs/api/resources/customerBusinesses/client/requests/GetBusinessPickupTimeslotsRequest.d.ts +0 -12
- package/dist/cjs/api/resources/customerBusinesses/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/customerBusinesses/exports.d.ts +0 -2
- package/dist/cjs/api/resources/customerBusinesses/exports.js +0 -21
- package/dist/cjs/api/resources/customerBusinesses/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/customerBusinesses/types/index.js +0 -17
- package/dist/cjs/api/resources/customerEvents/client/Client.d.ts +0 -29
- package/dist/cjs/api/resources/customerEvents/client/Client.js +0 -111
- package/dist/cjs/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.d.ts +0 -11
- package/dist/cjs/api/resources/customerEvents/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/customerEvents/exports.d.ts +0 -2
- package/dist/cjs/api/resources/customerEvents/exports.js +0 -21
- package/dist/cjs/api/resources/customerEvents/index.d.ts +0 -1
- package/dist/cjs/api/resources/customerEvents/index.js +0 -17
- package/dist/cjs/api/resources/customerMessaging/client/Client.d.ts +0 -27
- package/dist/cjs/api/resources/customerMessaging/client/Client.js +0 -124
- package/dist/cjs/api/resources/customerMessaging/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/customerMessaging/exports.d.ts +0 -2
- package/dist/cjs/api/resources/customerMessaging/exports.js +0 -21
- package/dist/cjs/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customerMessaging/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/customerMessaging/types/index.js +0 -17
- package/dist/cjs/api/resources/customerMyAccount/client/Client.d.ts +0 -59
- package/dist/cjs/api/resources/customerMyAccount/client/requests/DownloadAppleWalletPassRequest.d.ts +0 -9
- package/dist/cjs/api/resources/customerMyAccount/client/requests/GetMyTicketOrderRequest.d.ts +0 -9
- package/dist/cjs/api/resources/customerMyAccount/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/customerMyAccount/exports.d.ts +0 -2
- package/dist/cjs/api/resources/customerMyAccount/exports.js +0 -21
- package/dist/cjs/api/resources/customerMyAccount/types/GetMyTicketOrderResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customerMyAccount/types/GetMyTicketResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customerMyAccount/types/index.d.ts +0 -2
- package/dist/cjs/api/resources/customerStands/client/Client.d.ts +0 -63
- package/dist/cjs/api/resources/customerStands/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/customerStands/client/index.js +0 -17
- package/dist/cjs/api/resources/customerStands/client/requests/CreateStandPaymentIntentRequest.d.ts +0 -11
- package/dist/cjs/api/resources/customerStands/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/customerStands/exports.d.ts +0 -2
- package/dist/cjs/api/resources/customerStands/exports.js +0 -21
- package/dist/cjs/api/resources/customerStands/index.d.ts +0 -2
- package/dist/cjs/api/resources/customerStands/index.js +0 -18
- package/dist/cjs/api/resources/customerStands/types/ScanStandResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customerStands/types/StandCheckoutResponse.d.ts +0 -4
- package/dist/cjs/api/resources/customerStands/types/index.d.ts +0 -3
- package/dist/cjs/api/resources/customerStands/types/index.js +0 -19
- package/dist/cjs/api/resources/recordClick/client/Client.d.ts +0 -27
- package/dist/cjs/api/resources/recordClick/client/Client.js +0 -111
- package/dist/cjs/api/resources/recordClick/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/recordClick/client/index.js +0 -17
- package/dist/cjs/api/resources/recordClick/client/requests/AdsRecordClickRequest.js +0 -3
- package/dist/cjs/api/resources/recordClick/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/recordClick/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/recordClick/exports.d.ts +0 -2
- package/dist/cjs/api/resources/recordClick/index.d.ts +0 -1
- package/dist/cjs/api/resources/recordClick/index.js +0 -17
- package/dist/cjs/api/resources/serveAd/client/Client.d.ts +0 -27
- package/dist/cjs/api/resources/serveAd/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/serveAd/client/index.js +0 -17
- package/dist/cjs/api/resources/serveAd/client/requests/AdsServeAdRequest.js +0 -3
- package/dist/cjs/api/resources/serveAd/client/requests/index.d.ts +0 -1
- package/dist/cjs/api/resources/serveAd/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/serveAd/exports.d.ts +0 -2
- package/dist/cjs/api/resources/serveAd/index.d.ts +0 -2
- package/dist/cjs/api/resources/serveAd/index.js +0 -18
- package/dist/cjs/api/resources/serveAd/types/AdsServeAdResponse.d.ts +0 -4
- package/dist/cjs/api/resources/serveAd/types/AdsServeAdResponse.js +0 -3
- package/dist/cjs/api/resources/serveAd/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/serveAd/types/index.js +0 -17
- package/dist/esm/api/resources/businessHours/client/Client.d.mts +0 -91
- package/dist/esm/api/resources/businessHours/exports.d.mts +0 -2
- package/dist/esm/api/resources/businessHours/types/CreateBusinessHourExceptionResponse.d.mts +0 -4
- package/dist/esm/api/resources/businessHours/types/GetBusinessHoursResponse.d.mts +0 -4
- package/dist/esm/api/resources/businessHours/types/UpdateBusinessHourExceptionResponse.d.mts +0 -4
- package/dist/esm/api/resources/businessHours/types/UpdateBusinessHoursResponse.d.mts +0 -4
- package/dist/esm/api/resources/businessHours/types/index.d.mts +0 -4
- package/dist/esm/api/resources/businessHours/types/index.mjs +0 -4
- package/dist/esm/api/resources/businessMessaging/client/Client.d.mts +0 -27
- package/dist/esm/api/resources/businessMessaging/client/Client.mjs +0 -87
- package/dist/esm/api/resources/businessMessaging/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/businessMessaging/exports.d.mts +0 -2
- package/dist/esm/api/resources/businessMessaging/types/SearchBusinessConversationsResponse.d.mts +0 -4
- package/dist/esm/api/resources/businessMessaging/types/index.d.mts +0 -1
- package/dist/esm/api/resources/businessMessaging/types/index.mjs +0 -1
- package/dist/esm/api/resources/businessProducts/client/Client.d.mts +0 -64
- package/dist/esm/api/resources/businessProducts/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/businessProducts/exports.d.mts +0 -2
- package/dist/esm/api/resources/businessProducts/types/AdjustVariantInventoryResponse.d.mts +0 -4
- package/dist/esm/api/resources/businessProducts/types/GetProductInventorySummaryResponse.d.mts +0 -4
- package/dist/esm/api/resources/businessProducts/types/ListVariantInventoryHistoryResponse.d.mts +0 -4
- package/dist/esm/api/resources/businessProducts/types/index.d.mts +0 -3
- package/dist/esm/api/resources/businessProducts/types/index.mjs +0 -3
- package/dist/esm/api/resources/businessShipping/client/Client.d.mts +0 -138
- package/dist/esm/api/resources/businessShipping/client/Client.mjs +0 -529
- package/dist/esm/api/resources/businessShipping/client/requests/index.d.mts +0 -5
- package/dist/esm/api/resources/businessShipping/exports.d.mts +0 -2
- package/dist/esm/api/resources/businessShipping/exports.mjs +0 -3
- package/dist/esm/api/resources/businessShipping/types/CreateBusinessShippingRateResponse.d.mts +0 -4
- package/dist/esm/api/resources/businessShipping/types/GetBusinessShippingAccountResponse.d.mts +0 -6
- package/dist/esm/api/resources/businessShipping/types/GetBusinessShippingSetupIntentResponse.d.mts +0 -3
- package/dist/esm/api/resources/businessShipping/types/ListBusinessShippingRatesResponse.d.mts +0 -4
- package/dist/esm/api/resources/businessShipping/types/UpdateBusinessShippingAccountResponse.d.mts +0 -4
- package/dist/esm/api/resources/businessShipping/types/UpdateBusinessShippingRateResponse.d.mts +0 -4
- package/dist/esm/api/resources/businessShipping/types/index.d.mts +0 -6
- package/dist/esm/api/resources/businessShipping/types/index.mjs +0 -6
- package/dist/esm/api/resources/businessStands/client/Client.d.mts +0 -106
- package/dist/esm/api/resources/businessStands/exports.d.mts +0 -2
- package/dist/esm/api/resources/businessStands/exports.mjs +0 -3
- package/dist/esm/api/resources/businessStands/types/CreateBusinessStandResponse.d.mts +0 -4
- package/dist/esm/api/resources/businessStands/types/GetBusinessStandResponse.d.mts +0 -4
- package/dist/esm/api/resources/businessStands/types/ListBusinessStandsResponse.d.mts +0 -4
- package/dist/esm/api/resources/businessStands/types/UpdateBusinessStandResponse.d.mts +0 -4
- package/dist/esm/api/resources/businessStands/types/index.d.mts +0 -4
- package/dist/esm/api/resources/businessStands/types/index.mjs +0 -4
- package/dist/esm/api/resources/customerBusinesses/client/Client.d.mts +0 -30
- package/dist/esm/api/resources/customerBusinesses/client/Client.mjs +0 -88
- package/dist/esm/api/resources/customerBusinesses/client/requests/GetBusinessPickupTimeslotsRequest.d.mts +0 -12
- package/dist/esm/api/resources/customerBusinesses/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/customerBusinesses/exports.d.mts +0 -2
- package/dist/esm/api/resources/customerBusinesses/exports.mjs +0 -3
- package/dist/esm/api/resources/customerBusinesses/types/index.d.mts +0 -1
- package/dist/esm/api/resources/customerBusinesses/types/index.mjs +0 -1
- package/dist/esm/api/resources/customerEvents/client/Client.d.mts +0 -29
- package/dist/esm/api/resources/customerEvents/client/Client.mjs +0 -74
- package/dist/esm/api/resources/customerEvents/client/requests/ReleaseTicketHoldRequest.d.mts +0 -11
- package/dist/esm/api/resources/customerEvents/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/customerEvents/exports.d.mts +0 -2
- package/dist/esm/api/resources/customerEvents/exports.mjs +0 -3
- package/dist/esm/api/resources/customerEvents/index.d.mts +0 -1
- package/dist/esm/api/resources/customerEvents/index.mjs +0 -1
- package/dist/esm/api/resources/customerMessaging/client/Client.d.mts +0 -27
- package/dist/esm/api/resources/customerMessaging/client/Client.mjs +0 -87
- package/dist/esm/api/resources/customerMessaging/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/customerMessaging/exports.d.mts +0 -2
- package/dist/esm/api/resources/customerMessaging/exports.mjs +0 -3
- package/dist/esm/api/resources/customerMessaging/types/SearchCustomerConversationsResponse.d.mts +0 -4
- package/dist/esm/api/resources/customerMessaging/types/index.d.mts +0 -1
- package/dist/esm/api/resources/customerMessaging/types/index.mjs +0 -1
- package/dist/esm/api/resources/customerMyAccount/client/Client.d.mts +0 -59
- package/dist/esm/api/resources/customerMyAccount/client/requests/DownloadAppleWalletPassRequest.d.mts +0 -9
- package/dist/esm/api/resources/customerMyAccount/client/requests/GetMyTicketOrderRequest.d.mts +0 -9
- package/dist/esm/api/resources/customerMyAccount/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/customerMyAccount/exports.d.mts +0 -2
- package/dist/esm/api/resources/customerMyAccount/exports.mjs +0 -3
- package/dist/esm/api/resources/customerMyAccount/types/GetMyTicketOrderResponse.d.mts +0 -4
- package/dist/esm/api/resources/customerMyAccount/types/GetMyTicketResponse.d.mts +0 -4
- package/dist/esm/api/resources/customerMyAccount/types/index.d.mts +0 -2
- package/dist/esm/api/resources/customerMyAccount/types/index.mjs +0 -2
- package/dist/esm/api/resources/customerStands/client/Client.d.mts +0 -63
- package/dist/esm/api/resources/customerStands/client/index.d.mts +0 -1
- package/dist/esm/api/resources/customerStands/client/index.mjs +0 -1
- package/dist/esm/api/resources/customerStands/client/requests/CreateStandPaymentIntentRequest.d.mts +0 -11
- package/dist/esm/api/resources/customerStands/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/customerStands/exports.d.mts +0 -2
- package/dist/esm/api/resources/customerStands/index.d.mts +0 -2
- package/dist/esm/api/resources/customerStands/index.mjs +0 -2
- package/dist/esm/api/resources/customerStands/types/ScanStandResponse.d.mts +0 -4
- package/dist/esm/api/resources/customerStands/types/StandCheckoutResponse.d.mts +0 -4
- package/dist/esm/api/resources/customerStands/types/index.d.mts +0 -3
- package/dist/esm/api/resources/customerStands/types/index.mjs +0 -3
- package/dist/esm/api/resources/recordClick/client/Client.d.mts +0 -27
- package/dist/esm/api/resources/recordClick/client/Client.mjs +0 -74
- package/dist/esm/api/resources/recordClick/client/index.d.mts +0 -1
- package/dist/esm/api/resources/recordClick/client/index.mjs +0 -1
- package/dist/esm/api/resources/recordClick/client/requests/AdsRecordClickRequest.mjs +0 -2
- package/dist/esm/api/resources/recordClick/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/recordClick/exports.d.mts +0 -2
- package/dist/esm/api/resources/recordClick/index.d.mts +0 -1
- package/dist/esm/api/resources/recordClick/index.mjs +0 -1
- package/dist/esm/api/resources/serveAd/client/Client.d.mts +0 -27
- package/dist/esm/api/resources/serveAd/client/index.d.mts +0 -1
- package/dist/esm/api/resources/serveAd/client/index.mjs +0 -1
- package/dist/esm/api/resources/serveAd/client/requests/AdsServeAdRequest.mjs +0 -2
- package/dist/esm/api/resources/serveAd/client/requests/index.d.mts +0 -1
- package/dist/esm/api/resources/serveAd/exports.d.mts +0 -2
- package/dist/esm/api/resources/serveAd/index.d.mts +0 -2
- package/dist/esm/api/resources/serveAd/index.mjs +0 -2
- package/dist/esm/api/resources/serveAd/types/AdsServeAdResponse.d.mts +0 -4
- package/dist/esm/api/resources/serveAd/types/AdsServeAdResponse.mjs +0 -2
- package/dist/esm/api/resources/serveAd/types/index.d.mts +0 -1
- package/dist/esm/api/resources/serveAd/types/index.mjs +0 -1
- /package/dist/cjs/api/resources/{businessHours → business/resources/hours}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessHours → business/resources/hours}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{businessHours → business/resources/hours}/client/requests/UpdateBusinessHoursRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessHours → business/resources/hours}/client/requests/UpdateBusinessHoursRequest.js +0 -0
- /package/dist/cjs/api/resources/{businessHours → business/resources/hours}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{businessMessaging → business/resources/hours/resources/exceptions}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessMessaging → business/resources/hours/resources/exceptions}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{businessHours/client/requests/DeleteBusinessHourExceptionRequest.js → business/resources/hours/resources/exceptions/client/requests/DeleteExceptionsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{businessHours → business/resources/hours/resources/exceptions}/client/requests/StoreBusinessHourExceptionRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessHours → business/resources/hours/resources/exceptions}/client/requests/StoreBusinessHourExceptionRequest.js +0 -0
- /package/dist/cjs/api/resources/{businessHours → business/resources/hours/resources/exceptions}/client/requests/UpdateBusinessHourExceptionRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessHours → business/resources/hours/resources/exceptions}/client/requests/UpdateBusinessHourExceptionRequest.js +0 -0
- /package/dist/cjs/api/resources/{businessMessaging → business/resources/hours/resources/exceptions}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{businessHours → business/resources/hours/resources/exceptions}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessHours → business/resources/hours/resources/exceptions}/index.js +0 -0
- /package/dist/cjs/api/resources/{businessHours/types/CreateBusinessHourExceptionResponse.js → business/resources/hours/resources/exceptions/types/CreateExceptionsResponse.js} +0 -0
- /package/dist/cjs/api/resources/{businessHours/types/GetBusinessHoursResponse.js → business/resources/hours/resources/exceptions/types/UpdateExceptionsResponse.js} +0 -0
- /package/dist/cjs/api/resources/{businessHours/types/UpdateBusinessHourExceptionResponse.js → business/resources/hours/types/GetHoursResponse.js} +0 -0
- /package/dist/cjs/api/resources/{businessHours/types/UpdateBusinessHoursResponse.js → business/resources/hours/types/UpdateHoursResponse.js} +0 -0
- /package/dist/cjs/api/resources/{businessMessaging/client/requests/SearchBusinessConversationsRequest.js → business/resources/messaging/resources/conversations/client/requests/SearchConversationsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{businessMessaging/types/SearchBusinessConversationsResponse.js → business/resources/messaging/resources/conversations/types/SearchConversationsResponse.js} +0 -0
- /package/dist/cjs/api/resources/{businessProducts → business/resources/products/resources/inventory}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessProducts → business/resources/products/resources/inventory}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{businessProducts/client/requests/GetProductInventorySummaryRequest.js → business/resources/products/resources/inventory/client/requests/SummaryInventoryRequest.js} +0 -0
- /package/dist/cjs/api/resources/{businessStands → business/resources/products/resources/inventory}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{businessMessaging → business/resources/products/resources/inventory}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessMessaging → business/resources/products/resources/inventory}/index.js +0 -0
- /package/dist/cjs/api/resources/{businessProducts/client/requests/ListVariantInventoryHistoryRequest.js → business/resources/products/resources/inventory/types/SummaryInventoryResponse.js} +0 -0
- /package/dist/cjs/api/resources/{businessShipping → business/resources/products/resources/variants/resources/inventory}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessShipping → business/resources/products/resources/variants/resources/inventory}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{businessProducts → business/resources/products/resources/variants/resources/inventory}/client/requests/AdjustInventoryRequest.js +0 -0
- /package/dist/cjs/api/resources/{businessProducts/types/AdjustVariantInventoryResponse.js → business/resources/products/resources/variants/resources/inventory/client/requests/HistoryInventoryRequest.js} +0 -0
- /package/dist/cjs/api/resources/{businessProducts → business/resources/products/resources/variants/resources/inventory}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{businessProducts → business/resources/products/resources/variants/resources/inventory}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessProducts → business/resources/products/resources/variants/resources/inventory}/index.js +0 -0
- /package/dist/cjs/api/resources/{businessProducts/types/GetProductInventorySummaryResponse.js → business/resources/products/resources/variants/resources/inventory/types/AdjustInventoryResponse.js} +0 -0
- /package/dist/cjs/api/resources/{businessProducts/types/ListVariantInventoryHistoryResponse.js → business/resources/products/resources/variants/resources/inventory/types/HistoryInventoryResponse.js} +0 -0
- /package/dist/{esm/api/resources/businessHours/client/requests/index.mjs → cjs/api/resources/business/resources/shipping/client/index.d.ts} +0 -0
- /package/dist/cjs/api/resources/{customerBusinesses/client/requests → business/resources/shipping/client}/index.js +0 -0
- /package/dist/cjs/api/resources/{businessStands → business/resources/shipping/resources/account}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessStands → business/resources/shipping/resources/account}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{businessShipping → business/resources/shipping/resources/account}/client/requests/SetupShippingAccountRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessShipping → business/resources/shipping/resources/account}/client/requests/SetupShippingAccountRequest.js +0 -0
- /package/dist/cjs/api/resources/{businessShipping → business/resources/shipping/resources/account}/client/requests/UpdateShippingAccountRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessShipping → business/resources/shipping/resources/account}/client/requests/UpdateShippingAccountRequest.js +0 -0
- /package/dist/cjs/api/resources/{customerEvents → business/resources/shipping/resources/account}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{businessShipping → business/resources/shipping/resources/account}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessShipping → business/resources/shipping/resources/account}/index.js +0 -0
- /package/dist/cjs/api/resources/{businessShipping/client/requests/DeleteBusinessShippingRateRequest.js → business/resources/shipping/resources/account/types/GetAccountResponse.js} +0 -0
- /package/dist/cjs/api/resources/{businessShipping/types/CreateBusinessShippingRateResponse.js → business/resources/shipping/resources/account/types/SetupIntentAccountResponse.js} +0 -0
- /package/dist/cjs/api/resources/{businessShipping/types/GetBusinessShippingAccountResponse.js → business/resources/shipping/resources/account/types/UpdateAccountResponse.js} +0 -0
- /package/dist/cjs/api/resources/{customerBusinesses → business/resources/shipping/resources/rates}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{customerBusinesses → business/resources/shipping/resources/rates}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{businessShipping/types/GetBusinessShippingSetupIntentResponse.js → business/resources/shipping/resources/rates/client/requests/DeleteRatesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{businessShipping → business/resources/shipping/resources/rates}/client/requests/StoreShippingRateRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessShipping → business/resources/shipping/resources/rates}/client/requests/StoreShippingRateRequest.js +0 -0
- /package/dist/cjs/api/resources/{businessShipping → business/resources/shipping/resources/rates}/client/requests/UpdateShippingRateRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessShipping → business/resources/shipping/resources/rates}/client/requests/UpdateShippingRateRequest.js +0 -0
- /package/dist/cjs/api/resources/{businessShipping → business/resources/shipping/resources/rates}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{businessStands → business/resources/shipping/resources/rates}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessStands → business/resources/shipping/resources/rates}/index.js +0 -0
- /package/dist/cjs/api/resources/{businessShipping/types/ListBusinessShippingRatesResponse.js → business/resources/shipping/resources/rates/types/CreateRatesResponse.js} +0 -0
- /package/dist/cjs/api/resources/{businessShipping/types/UpdateBusinessShippingAccountResponse.js → business/resources/shipping/resources/rates/types/ListRatesResponse.js} +0 -0
- /package/dist/cjs/api/resources/{businessShipping/types/UpdateBusinessShippingRateResponse.js → business/resources/shipping/resources/rates/types/UpdateRatesResponse.js} +0 -0
- /package/dist/cjs/api/resources/{customerEvents → business/resources/stands}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{customerEvents → business/resources/stands}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{businessStands/client/requests/DeleteBusinessStandRequest.js → business/resources/stands/client/requests/DeleteStandsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{businessStands/client/requests/GetBusinessStandRequest.js → business/resources/stands/client/requests/GetStandsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{businessStands → business/resources/stands}/client/requests/StoreStandRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessStands → business/resources/stands}/client/requests/StoreStandRequest.js +0 -0
- /package/dist/cjs/api/resources/{businessStands → business/resources/stands}/client/requests/SyncStandProductsRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessStands → business/resources/stands}/client/requests/SyncStandProductsRequest.js +0 -0
- /package/dist/cjs/api/resources/{businessStands → business/resources/stands}/client/requests/UpdateStandRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{businessStands → business/resources/stands}/client/requests/UpdateStandRequest.js +0 -0
- /package/dist/cjs/api/resources/{customerMessaging → business/resources/stands}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{customerBusinesses → business/resources/stands}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{customerBusinesses → business/resources/stands}/index.js +0 -0
- /package/dist/cjs/api/resources/{businessStands/types/CreateBusinessStandResponse.js → business/resources/stands/types/CreateStandsResponse.js} +0 -0
- /package/dist/cjs/api/resources/{businessStands/types/GetBusinessStandResponse.js → business/resources/stands/types/GetStandsResponse.js} +0 -0
- /package/dist/cjs/api/resources/{businessStands/types/ListBusinessStandsResponse.js → business/resources/stands/types/ListStandsResponse.js} +0 -0
- /package/dist/cjs/api/resources/{businessStands/types/UpdateBusinessStandResponse.js → business/resources/stands/types/UpdateStandsResponse.js} +0 -0
- /package/dist/cjs/api/resources/{customerMessaging → customer/resources/ads}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{customerMessaging → customer/resources/ads}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{customerBusinesses/client/requests/GetBusinessPickupTimeslotsRequest.js → customer/resources/ads/client/requests/RecordClickAdsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerBusinesses/types/GetBusinessPickupTimeslotsResponse.js → customer/resources/ads/client/requests/ServeAdsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerMyAccount → customer/resources/ads}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{customerMessaging → customer/resources/ads}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{customerMessaging → customer/resources/ads}/index.js +0 -0
- /package/dist/cjs/api/resources/{customerEvents/client/requests/ReleaseTicketHoldRequest.js → customer/resources/ads/types/ServeAdsResponse.js} +0 -0
- /package/dist/cjs/api/resources/{customerMessaging/client/requests/SearchCustomerConversationsRequest.js → customer/resources/businesses/types/GetPickupTimeslotsBusinessesResponse.js} +0 -0
- /package/dist/cjs/api/resources/{customerMessaging/types/SearchCustomerConversationsResponse.js → customer/resources/me/resources/paymentMethods/types/EphemeralKeyPaymentMethodsResponse.js} +0 -0
- /package/dist/cjs/api/resources/{customerMyAccount/client/requests/DownloadAppleWalletPassRequest.js → customer/resources/me/resources/ticketOrders/types/GetTicketOrdersResponse.js} +0 -0
- /package/dist/cjs/api/resources/{customerMyAccount/client/requests/GetMyTicketOrderRequest.js → customer/resources/me/resources/tickets/client/requests/AppleWalletPassTicketsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerMyAccount/client/requests/GetMyTicketRequest.js → customer/resources/me/resources/tickets/types/GetTicketsResponse.js} +0 -0
- /package/dist/cjs/api/resources/{customerMyAccount/types/GetMyTicketOrderResponse.js → customer/resources/messaging/resources/conversations/client/requests/SearchConversationsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerMyAccount/types/GetMyTicketResponse.js → customer/resources/messaging/resources/conversations/types/SearchConversationsResponse.js} +0 -0
- /package/dist/cjs/api/resources/{customerMyAccount → customer/resources/stands}/client/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{customerMyAccount → customer/resources/stands}/client/index.js +0 -0
- /package/dist/cjs/api/resources/{customerStands/client/requests/CreateStandPaymentIntentRequest.js → customer/resources/stands/client/requests/CreatePaymentIntentStandsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerStands/client/requests/ScanStandRequest.js → customer/resources/stands/client/requests/ScanStandsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{customerStands → customer/resources/stands}/client/requests/SelfCheckoutRequest.d.ts +0 -0
- /package/dist/cjs/api/resources/{customerStands → customer/resources/stands}/client/requests/SelfCheckoutRequest.js +0 -0
- /package/dist/cjs/api/resources/{customerStands → customer/resources/stands}/client/requests/index.js +0 -0
- /package/dist/cjs/api/resources/{customerMyAccount → customer/resources/stands}/index.d.ts +0 -0
- /package/dist/cjs/api/resources/{customerMyAccount → customer/resources/stands}/index.js +0 -0
- /package/dist/cjs/api/resources/{customerStands/types/CreateStandPaymentIntentResponse.js → customer/resources/stands/types/CheckoutStandsResponse.js} +0 -0
- /package/dist/cjs/api/resources/{customerStands/types/ScanStandResponse.js → customer/resources/stands/types/CreatePaymentIntentStandsResponse.js} +0 -0
- /package/dist/cjs/api/resources/{customerStands/types/StandCheckoutResponse.js → customer/resources/stands/types/ScanStandsResponse.js} +0 -0
- /package/dist/esm/api/resources/{businessHours → business/resources/hours}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{businessHours → business/resources/hours}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessHours → business/resources/hours}/client/requests/UpdateBusinessHoursRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{businessHours → business/resources/hours}/client/requests/UpdateBusinessHoursRequest.mjs +0 -0
- /package/dist/esm/api/resources/{businessMessaging → business/resources/hours}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessMessaging → business/resources/hours/resources/exceptions}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{businessMessaging → business/resources/hours/resources/exceptions}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessHours/client/requests/DeleteBusinessHourExceptionRequest.mjs → business/resources/hours/resources/exceptions/client/requests/DeleteExceptionsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{businessHours → business/resources/hours/resources/exceptions}/client/requests/StoreBusinessHourExceptionRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{businessHours → business/resources/hours/resources/exceptions}/client/requests/StoreBusinessHourExceptionRequest.mjs +0 -0
- /package/dist/esm/api/resources/{businessHours → business/resources/hours/resources/exceptions}/client/requests/UpdateBusinessHourExceptionRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{businessHours → business/resources/hours/resources/exceptions}/client/requests/UpdateBusinessHourExceptionRequest.mjs +0 -0
- /package/dist/esm/api/resources/{businessStands → business/resources/hours/resources/exceptions}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessHours → business/resources/hours/resources/exceptions}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{businessHours → business/resources/hours/resources/exceptions}/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessHours/types/CreateBusinessHourExceptionResponse.mjs → business/resources/hours/resources/exceptions/types/CreateExceptionsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{businessHours/types/GetBusinessHoursResponse.mjs → business/resources/hours/resources/exceptions/types/UpdateExceptionsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{businessHours/types/UpdateBusinessHourExceptionResponse.mjs → business/resources/hours/types/GetHoursResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{businessHours/types/UpdateBusinessHoursResponse.mjs → business/resources/hours/types/UpdateHoursResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{businessMessaging/client/requests/SearchBusinessConversationsRequest.mjs → business/resources/messaging/resources/conversations/client/requests/SearchConversationsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{businessMessaging/types/SearchBusinessConversationsResponse.mjs → business/resources/messaging/resources/conversations/types/SearchConversationsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{businessProducts → business/resources/products/resources/inventory}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{businessProducts → business/resources/products/resources/inventory}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessProducts/client/requests/GetProductInventorySummaryRequest.mjs → business/resources/products/resources/inventory/client/requests/SummaryInventoryRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerBusinesses → business/resources/products/resources/inventory}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessMessaging → business/resources/products/resources/inventory}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{businessMessaging → business/resources/products/resources/inventory}/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessProducts/client/requests/ListVariantInventoryHistoryRequest.mjs → business/resources/products/resources/inventory/types/SummaryInventoryResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{businessShipping → business/resources/products/resources/variants/resources/inventory}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{businessShipping → business/resources/products/resources/variants/resources/inventory}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessProducts → business/resources/products/resources/variants/resources/inventory}/client/requests/AdjustInventoryRequest.mjs +0 -0
- /package/dist/esm/api/resources/{businessProducts/types/AdjustVariantInventoryResponse.mjs → business/resources/products/resources/variants/resources/inventory/client/requests/HistoryInventoryRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{businessProducts → business/resources/products/resources/variants/resources/inventory}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessProducts → business/resources/products/resources/variants/resources/inventory}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{businessProducts → business/resources/products/resources/variants/resources/inventory}/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessProducts/types/GetProductInventorySummaryResponse.mjs → business/resources/products/resources/variants/resources/inventory/types/AdjustInventoryResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{businessProducts/types/ListVariantInventoryHistoryResponse.mjs → business/resources/products/resources/variants/resources/inventory/types/HistoryInventoryResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{customerEvents/client/requests/index.mjs → business/resources/shipping/client/index.d.mts} +0 -0
- /package/dist/esm/api/resources/{customerMessaging/client/requests → business/resources/shipping/client}/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessStands → business/resources/shipping/resources/account}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{businessStands → business/resources/shipping/resources/account}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessShipping → business/resources/shipping/resources/account}/client/requests/SetupShippingAccountRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{businessShipping → business/resources/shipping/resources/account}/client/requests/SetupShippingAccountRequest.mjs +0 -0
- /package/dist/esm/api/resources/{businessShipping → business/resources/shipping/resources/account}/client/requests/UpdateShippingAccountRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{businessShipping → business/resources/shipping/resources/account}/client/requests/UpdateShippingAccountRequest.mjs +0 -0
- /package/dist/esm/api/resources/{customerMyAccount → business/resources/shipping/resources/account}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessShipping → business/resources/shipping/resources/account}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{businessShipping → business/resources/shipping/resources/account}/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessShipping/client/requests/DeleteBusinessShippingRateRequest.mjs → business/resources/shipping/resources/account/types/GetAccountResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{businessShipping/types/CreateBusinessShippingRateResponse.mjs → business/resources/shipping/resources/account/types/SetupIntentAccountResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{businessShipping/types/GetBusinessShippingAccountResponse.mjs → business/resources/shipping/resources/account/types/UpdateAccountResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{customerBusinesses → business/resources/shipping/resources/rates}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{customerBusinesses → business/resources/shipping/resources/rates}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessShipping/types/GetBusinessShippingSetupIntentResponse.mjs → business/resources/shipping/resources/rates/client/requests/DeleteRatesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{businessShipping → business/resources/shipping/resources/rates}/client/requests/StoreShippingRateRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{businessShipping → business/resources/shipping/resources/rates}/client/requests/StoreShippingRateRequest.mjs +0 -0
- /package/dist/esm/api/resources/{businessShipping → business/resources/shipping/resources/rates}/client/requests/UpdateShippingRateRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{businessShipping → business/resources/shipping/resources/rates}/client/requests/UpdateShippingRateRequest.mjs +0 -0
- /package/dist/esm/api/resources/{businessShipping → business/resources/shipping/resources/rates}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessStands → business/resources/shipping/resources/rates}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{businessStands → business/resources/shipping/resources/rates}/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessShipping/types/ListBusinessShippingRatesResponse.mjs → business/resources/shipping/resources/rates/types/CreateRatesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{businessShipping/types/UpdateBusinessShippingAccountResponse.mjs → business/resources/shipping/resources/rates/types/ListRatesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{businessShipping/types/UpdateBusinessShippingRateResponse.mjs → business/resources/shipping/resources/rates/types/UpdateRatesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{customerEvents → business/resources/stands}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{customerEvents → business/resources/stands}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessStands/client/requests/DeleteBusinessStandRequest.mjs → business/resources/stands/client/requests/DeleteStandsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{businessStands/client/requests/GetBusinessStandRequest.mjs → business/resources/stands/client/requests/GetStandsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{businessStands → business/resources/stands}/client/requests/StoreStandRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{businessStands → business/resources/stands}/client/requests/StoreStandRequest.mjs +0 -0
- /package/dist/esm/api/resources/{businessStands → business/resources/stands}/client/requests/SyncStandProductsRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{businessStands → business/resources/stands}/client/requests/SyncStandProductsRequest.mjs +0 -0
- /package/dist/esm/api/resources/{businessStands → business/resources/stands}/client/requests/UpdateStandRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{businessStands → business/resources/stands}/client/requests/UpdateStandRequest.mjs +0 -0
- /package/dist/esm/api/resources/{customerStands → business/resources/stands}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{customerBusinesses → business/resources/stands}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{customerBusinesses → business/resources/stands}/index.mjs +0 -0
- /package/dist/esm/api/resources/{businessStands/types/CreateBusinessStandResponse.mjs → business/resources/stands/types/CreateStandsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{businessStands/types/GetBusinessStandResponse.mjs → business/resources/stands/types/GetStandsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{businessStands/types/ListBusinessStandsResponse.mjs → business/resources/stands/types/ListStandsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{businessStands/types/UpdateBusinessStandResponse.mjs → business/resources/stands/types/UpdateStandsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{customerMessaging → customer/resources/ads}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{customerMessaging → customer/resources/ads}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{customerBusinesses/client/requests/GetBusinessPickupTimeslotsRequest.mjs → customer/resources/ads/client/requests/RecordClickAdsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerBusinesses/types/GetBusinessPickupTimeslotsResponse.mjs → customer/resources/ads/client/requests/ServeAdsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{recordClick → customer/resources/ads}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{customerMessaging → customer/resources/ads}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{customerMessaging → customer/resources/ads}/index.mjs +0 -0
- /package/dist/esm/api/resources/{customerEvents/client/requests/ReleaseTicketHoldRequest.mjs → customer/resources/ads/types/ServeAdsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{customerMessaging/client/requests/SearchCustomerConversationsRequest.mjs → customer/resources/businesses/types/GetPickupTimeslotsBusinessesResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{customerMessaging/types/SearchCustomerConversationsResponse.mjs → customer/resources/me/resources/paymentMethods/types/EphemeralKeyPaymentMethodsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{customerMyAccount/client/requests/DownloadAppleWalletPassRequest.mjs → customer/resources/me/resources/ticketOrders/types/GetTicketOrdersResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{customerMyAccount/client/requests/GetMyTicketOrderRequest.mjs → customer/resources/me/resources/tickets/client/requests/AppleWalletPassTicketsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerMyAccount/client/requests/GetMyTicketRequest.mjs → customer/resources/me/resources/tickets/types/GetTicketsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{customerMyAccount/types/GetMyTicketOrderResponse.mjs → customer/resources/messaging/resources/conversations/client/requests/SearchConversationsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerMyAccount/types/GetMyTicketResponse.mjs → customer/resources/messaging/resources/conversations/types/SearchConversationsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{customerMyAccount → customer/resources/stands}/client/index.d.mts +0 -0
- /package/dist/esm/api/resources/{customerMyAccount → customer/resources/stands}/client/index.mjs +0 -0
- /package/dist/esm/api/resources/{customerStands/client/requests/CreateStandPaymentIntentRequest.mjs → customer/resources/stands/client/requests/CreatePaymentIntentStandsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerStands/client/requests/ScanStandRequest.mjs → customer/resources/stands/client/requests/ScanStandsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{customerStands → customer/resources/stands}/client/requests/SelfCheckoutRequest.d.mts +0 -0
- /package/dist/esm/api/resources/{customerStands → customer/resources/stands}/client/requests/SelfCheckoutRequest.mjs +0 -0
- /package/dist/esm/api/resources/{serveAd → customer/resources/stands}/client/requests/index.mjs +0 -0
- /package/dist/esm/api/resources/{customerMyAccount → customer/resources/stands}/index.d.mts +0 -0
- /package/dist/esm/api/resources/{customerMyAccount → customer/resources/stands}/index.mjs +0 -0
- /package/dist/esm/api/resources/{customerStands/types/CreateStandPaymentIntentResponse.mjs → customer/resources/stands/types/CheckoutStandsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{customerStands/types/ScanStandResponse.mjs → customer/resources/stands/types/CreatePaymentIntentStandsResponse.mjs} +0 -0
- /package/dist/esm/api/resources/{customerStands/types/StandCheckoutResponse.mjs → customer/resources/stands/types/ScanStandsResponse.mjs} +0 -0
package/README.md
CHANGED
|
@@ -45,9 +45,12 @@ Instantiate and use the client with the following:
|
|
|
45
45
|
import { FiveOneEatClient } from "@51eat/sdk";
|
|
46
46
|
|
|
47
47
|
const client = new FiveOneEatClient({ token: "YOUR_TOKEN" });
|
|
48
|
-
await client.
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
await client.business.auth.register({
|
|
49
|
+
name: "name",
|
|
50
|
+
email: "email",
|
|
51
|
+
password: "password",
|
|
52
|
+
device_name: "device_name",
|
|
53
|
+
password_confirmation: "password_confirmation"
|
|
51
54
|
});
|
|
52
55
|
```
|
|
53
56
|
|
|
@@ -71,7 +74,7 @@ following namespace:
|
|
|
71
74
|
```typescript
|
|
72
75
|
import { FiveOneEat } from "@51eat/sdk";
|
|
73
76
|
|
|
74
|
-
const request: FiveOneEat.
|
|
77
|
+
const request: FiveOneEat.SearchCustomerRequest = {
|
|
75
78
|
...
|
|
76
79
|
};
|
|
77
80
|
```
|
|
@@ -85,7 +88,7 @@ will be thrown.
|
|
|
85
88
|
import { FiveOneEatError } from "@51eat/sdk";
|
|
86
89
|
|
|
87
90
|
try {
|
|
88
|
-
await client.
|
|
91
|
+
await client.business.auth.register(...);
|
|
89
92
|
} catch (err) {
|
|
90
93
|
if (err instanceof FiveOneEatError) {
|
|
91
94
|
console.log(err.statusCode);
|
|
@@ -148,9 +151,9 @@ For example, `fs.ReadStream` has a `path` property which the SDK uses to retriev
|
|
|
148
151
|
This SDK supports direct imports of subpackage clients, which allows JavaScript bundlers to tree-shake and include only the imported subpackage code. This results in much smaller bundle sizes.
|
|
149
152
|
|
|
150
153
|
```typescript
|
|
151
|
-
import {
|
|
154
|
+
import { CustomerClient } from '@51eat/sdk/customer';
|
|
152
155
|
|
|
153
|
-
const client = new
|
|
156
|
+
const client = new CustomerClient({...});
|
|
154
157
|
```
|
|
155
158
|
|
|
156
159
|
### Additional Headers
|
|
@@ -167,7 +170,7 @@ const client = new FiveOneEatClient({
|
|
|
167
170
|
}
|
|
168
171
|
});
|
|
169
172
|
|
|
170
|
-
const response = await client.
|
|
173
|
+
const response = await client.business.auth.register(..., {
|
|
171
174
|
headers: {
|
|
172
175
|
'X-Custom-Header': 'custom value'
|
|
173
176
|
}
|
|
@@ -179,7 +182,7 @@ const response = await client.businessHours.createBusinessHourException(..., {
|
|
|
179
182
|
If you would like to send additional query string parameters as part of the request, use the `queryParams` request option.
|
|
180
183
|
|
|
181
184
|
```typescript
|
|
182
|
-
const response = await client.
|
|
185
|
+
const response = await client.business.auth.register(..., {
|
|
183
186
|
queryParams: {
|
|
184
187
|
'customQueryParamKey': 'custom query param value'
|
|
185
188
|
}
|
|
@@ -201,7 +204,7 @@ A request is deemed retryable when any of the following HTTP status codes is ret
|
|
|
201
204
|
Use the `maxRetries` request option to configure this behavior.
|
|
202
205
|
|
|
203
206
|
```typescript
|
|
204
|
-
const response = await client.
|
|
207
|
+
const response = await client.business.auth.register(..., {
|
|
205
208
|
maxRetries: 0 // override maxRetries at the request level
|
|
206
209
|
});
|
|
207
210
|
```
|
|
@@ -211,7 +214,7 @@ const response = await client.businessHours.createBusinessHourException(..., {
|
|
|
211
214
|
The SDK defaults to a 60 second timeout. Use the `timeoutInSeconds` option to configure this behavior.
|
|
212
215
|
|
|
213
216
|
```typescript
|
|
214
|
-
const response = await client.
|
|
217
|
+
const response = await client.business.auth.register(..., {
|
|
215
218
|
timeoutInSeconds: 30 // override timeout to 30s
|
|
216
219
|
});
|
|
217
220
|
```
|
|
@@ -222,7 +225,7 @@ The SDK allows users to abort requests at any point by passing in an abort signa
|
|
|
222
225
|
|
|
223
226
|
```typescript
|
|
224
227
|
const controller = new AbortController();
|
|
225
|
-
const response = await client.
|
|
228
|
+
const response = await client.business.auth.register(..., {
|
|
226
229
|
abortSignal: controller.signal
|
|
227
230
|
});
|
|
228
231
|
controller.abort(); // aborts the request
|
|
@@ -234,7 +237,7 @@ The SDK provides access to raw response data, including headers, through the `.w
|
|
|
234
237
|
The `.withRawResponse()` method returns a promise that results to an object with a `data` and a `rawResponse` property.
|
|
235
238
|
|
|
236
239
|
```typescript
|
|
237
|
-
const { data, rawResponse } = await client.
|
|
240
|
+
const { data, rawResponse } = await client.business.auth.register(...).withRawResponse();
|
|
238
241
|
|
|
239
242
|
console.log(data);
|
|
240
243
|
console.log(rawResponse.headers['X-My-Header']);
|
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@51eat/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "0.0.
|
|
47
|
-
"User-Agent": "@51eat/sdk/0.0.
|
|
46
|
+
"X-Fern-SDK-Version": "0.0.67",
|
|
47
|
+
"User-Agent": "@51eat/sdk/0.0.67",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import { BusinessClient } from "./api/resources/business/client/Client.js";
|
|
2
|
-
import { BusinessHoursClient } from "./api/resources/businessHours/client/Client.js";
|
|
3
|
-
import { BusinessMessagingClient } from "./api/resources/businessMessaging/client/Client.js";
|
|
4
|
-
import { BusinessProductsClient } from "./api/resources/businessProducts/client/Client.js";
|
|
5
|
-
import { BusinessShippingClient } from "./api/resources/businessShipping/client/Client.js";
|
|
6
|
-
import { BusinessStandsClient } from "./api/resources/businessStands/client/Client.js";
|
|
7
2
|
import { CustomerClient } from "./api/resources/customer/client/Client.js";
|
|
8
|
-
import { CustomerBusinessesClient } from "./api/resources/customerBusinesses/client/Client.js";
|
|
9
|
-
import { CustomerEventsClient } from "./api/resources/customerEvents/client/Client.js";
|
|
10
|
-
import { CustomerMessagingClient } from "./api/resources/customerMessaging/client/Client.js";
|
|
11
|
-
import { CustomerMyAccountClient } from "./api/resources/customerMyAccount/client/Client.js";
|
|
12
|
-
import { CustomerStandsClient } from "./api/resources/customerStands/client/Client.js";
|
|
13
|
-
import { RecordClickClient } from "./api/resources/recordClick/client/Client.js";
|
|
14
|
-
import { ServeAdClient } from "./api/resources/serveAd/client/Client.js";
|
|
15
3
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
16
4
|
import { type NormalizedClientOptionsWithAuth } from "./BaseClient.js";
|
|
17
5
|
import * as core from "./core/index.js";
|
|
@@ -22,34 +10,10 @@ export declare namespace FiveOneEatClient {
|
|
|
22
10
|
}
|
|
23
11
|
export declare class FiveOneEatClient {
|
|
24
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<FiveOneEatClient.Options>;
|
|
25
|
-
protected _businessHours: BusinessHoursClient | undefined;
|
|
26
|
-
protected _businessMessaging: BusinessMessagingClient | undefined;
|
|
27
|
-
protected _businessProducts: BusinessProductsClient | undefined;
|
|
28
|
-
protected _businessShipping: BusinessShippingClient | undefined;
|
|
29
|
-
protected _businessStands: BusinessStandsClient | undefined;
|
|
30
|
-
protected _customerBusinesses: CustomerBusinessesClient | undefined;
|
|
31
|
-
protected _customerEvents: CustomerEventsClient | undefined;
|
|
32
|
-
protected _customerMessaging: CustomerMessagingClient | undefined;
|
|
33
|
-
protected _customerMyAccount: CustomerMyAccountClient | undefined;
|
|
34
13
|
protected _customer: CustomerClient | undefined;
|
|
35
|
-
protected _customerStands: CustomerStandsClient | undefined;
|
|
36
|
-
protected _recordClick: RecordClickClient | undefined;
|
|
37
|
-
protected _serveAd: ServeAdClient | undefined;
|
|
38
14
|
protected _business: BusinessClient | undefined;
|
|
39
15
|
constructor(options?: FiveOneEatClient.Options);
|
|
40
|
-
get businessHours(): BusinessHoursClient;
|
|
41
|
-
get businessMessaging(): BusinessMessagingClient;
|
|
42
|
-
get businessProducts(): BusinessProductsClient;
|
|
43
|
-
get businessShipping(): BusinessShippingClient;
|
|
44
|
-
get businessStands(): BusinessStandsClient;
|
|
45
|
-
get customerBusinesses(): CustomerBusinessesClient;
|
|
46
|
-
get customerEvents(): CustomerEventsClient;
|
|
47
|
-
get customerMessaging(): CustomerMessagingClient;
|
|
48
|
-
get customerMyAccount(): CustomerMyAccountClient;
|
|
49
16
|
get customer(): CustomerClient;
|
|
50
|
-
get customerStands(): CustomerStandsClient;
|
|
51
|
-
get recordClick(): RecordClickClient;
|
|
52
|
-
get serveAd(): ServeAdClient;
|
|
53
17
|
get business(): BusinessClient;
|
|
54
18
|
/**
|
|
55
19
|
* Make a passthrough request using the SDK's configured auth, retry, logging, etc.
|
package/dist/cjs/Client.js
CHANGED
|
@@ -45,76 +45,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
46
|
exports.FiveOneEatClient = void 0;
|
|
47
47
|
const Client_js_1 = require("./api/resources/business/client/Client.js");
|
|
48
|
-
const Client_js_2 = require("./api/resources/
|
|
49
|
-
const Client_js_3 = require("./api/resources/businessMessaging/client/Client.js");
|
|
50
|
-
const Client_js_4 = require("./api/resources/businessProducts/client/Client.js");
|
|
51
|
-
const Client_js_5 = require("./api/resources/businessShipping/client/Client.js");
|
|
52
|
-
const Client_js_6 = require("./api/resources/businessStands/client/Client.js");
|
|
53
|
-
const Client_js_7 = require("./api/resources/customer/client/Client.js");
|
|
54
|
-
const Client_js_8 = require("./api/resources/customerBusinesses/client/Client.js");
|
|
55
|
-
const Client_js_9 = require("./api/resources/customerEvents/client/Client.js");
|
|
56
|
-
const Client_js_10 = require("./api/resources/customerMessaging/client/Client.js");
|
|
57
|
-
const Client_js_11 = require("./api/resources/customerMyAccount/client/Client.js");
|
|
58
|
-
const Client_js_12 = require("./api/resources/customerStands/client/Client.js");
|
|
59
|
-
const Client_js_13 = require("./api/resources/recordClick/client/Client.js");
|
|
60
|
-
const Client_js_14 = require("./api/resources/serveAd/client/Client.js");
|
|
48
|
+
const Client_js_2 = require("./api/resources/customer/client/Client.js");
|
|
61
49
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
62
50
|
const core = __importStar(require("./core/index.js"));
|
|
63
51
|
class FiveOneEatClient {
|
|
64
52
|
constructor(options = {}) {
|
|
65
53
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
66
54
|
}
|
|
67
|
-
get businessHours() {
|
|
68
|
-
var _a;
|
|
69
|
-
return ((_a = this._businessHours) !== null && _a !== void 0 ? _a : (this._businessHours = new Client_js_2.BusinessHoursClient(this._options)));
|
|
70
|
-
}
|
|
71
|
-
get businessMessaging() {
|
|
72
|
-
var _a;
|
|
73
|
-
return ((_a = this._businessMessaging) !== null && _a !== void 0 ? _a : (this._businessMessaging = new Client_js_3.BusinessMessagingClient(this._options)));
|
|
74
|
-
}
|
|
75
|
-
get businessProducts() {
|
|
76
|
-
var _a;
|
|
77
|
-
return ((_a = this._businessProducts) !== null && _a !== void 0 ? _a : (this._businessProducts = new Client_js_4.BusinessProductsClient(this._options)));
|
|
78
|
-
}
|
|
79
|
-
get businessShipping() {
|
|
80
|
-
var _a;
|
|
81
|
-
return ((_a = this._businessShipping) !== null && _a !== void 0 ? _a : (this._businessShipping = new Client_js_5.BusinessShippingClient(this._options)));
|
|
82
|
-
}
|
|
83
|
-
get businessStands() {
|
|
84
|
-
var _a;
|
|
85
|
-
return ((_a = this._businessStands) !== null && _a !== void 0 ? _a : (this._businessStands = new Client_js_6.BusinessStandsClient(this._options)));
|
|
86
|
-
}
|
|
87
|
-
get customerBusinesses() {
|
|
88
|
-
var _a;
|
|
89
|
-
return ((_a = this._customerBusinesses) !== null && _a !== void 0 ? _a : (this._customerBusinesses = new Client_js_8.CustomerBusinessesClient(this._options)));
|
|
90
|
-
}
|
|
91
|
-
get customerEvents() {
|
|
92
|
-
var _a;
|
|
93
|
-
return ((_a = this._customerEvents) !== null && _a !== void 0 ? _a : (this._customerEvents = new Client_js_9.CustomerEventsClient(this._options)));
|
|
94
|
-
}
|
|
95
|
-
get customerMessaging() {
|
|
96
|
-
var _a;
|
|
97
|
-
return ((_a = this._customerMessaging) !== null && _a !== void 0 ? _a : (this._customerMessaging = new Client_js_10.CustomerMessagingClient(this._options)));
|
|
98
|
-
}
|
|
99
|
-
get customerMyAccount() {
|
|
100
|
-
var _a;
|
|
101
|
-
return ((_a = this._customerMyAccount) !== null && _a !== void 0 ? _a : (this._customerMyAccount = new Client_js_11.CustomerMyAccountClient(this._options)));
|
|
102
|
-
}
|
|
103
55
|
get customer() {
|
|
104
56
|
var _a;
|
|
105
|
-
return ((_a = this._customer) !== null && _a !== void 0 ? _a : (this._customer = new
|
|
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)));
|
|
110
|
-
}
|
|
111
|
-
get recordClick() {
|
|
112
|
-
var _a;
|
|
113
|
-
return ((_a = this._recordClick) !== null && _a !== void 0 ? _a : (this._recordClick = new Client_js_13.RecordClickClient(this._options)));
|
|
114
|
-
}
|
|
115
|
-
get serveAd() {
|
|
116
|
-
var _a;
|
|
117
|
-
return ((_a = this._serveAd) !== null && _a !== void 0 ? _a : (this._serveAd = new Client_js_14.ServeAdClient(this._options)));
|
|
57
|
+
return ((_a = this._customer) !== null && _a !== void 0 ? _a : (this._customer = new Client_js_2.CustomerClient(this._options)));
|
|
118
58
|
}
|
|
119
59
|
get business() {
|
|
120
60
|
var _a;
|
|
@@ -11,6 +11,7 @@ import { CuisinesClient } from "../resources/cuisines/client/Client.js";
|
|
|
11
11
|
import { DiscountsClient } from "../resources/discounts/client/Client.js";
|
|
12
12
|
import { EventsClient } from "../resources/events/client/Client.js";
|
|
13
13
|
import { GalleryClient } from "../resources/gallery/client/Client.js";
|
|
14
|
+
import { HoursClient } from "../resources/hours/client/Client.js";
|
|
14
15
|
import { MenusClient } from "../resources/menus/client/Client.js";
|
|
15
16
|
import { MessagingClient } from "../resources/messaging/client/Client.js";
|
|
16
17
|
import { ProductCategoriesClient } from "../resources/productCategories/client/Client.js";
|
|
@@ -18,6 +19,8 @@ import { ProductOrdersClient } from "../resources/productOrders/client/Client.js
|
|
|
18
19
|
import { ProductsClient } from "../resources/products/client/Client.js";
|
|
19
20
|
import { ProfileClient } from "../resources/profile/client/Client.js";
|
|
20
21
|
import { PushNotificationsClient } from "../resources/pushNotifications/client/Client.js";
|
|
22
|
+
import { ShippingClient } from "../resources/shipping/client/Client.js";
|
|
23
|
+
import { StandsClient } from "../resources/stands/client/Client.js";
|
|
21
24
|
import { StripeConnectClient } from "../resources/stripeConnect/client/Client.js";
|
|
22
25
|
import { TemporaryLocationsClient } from "../resources/temporaryLocations/client/Client.js";
|
|
23
26
|
export declare namespace BusinessClient {
|
|
@@ -32,6 +35,7 @@ export declare class BusinessClient {
|
|
|
32
35
|
protected _discounts: DiscountsClient | undefined;
|
|
33
36
|
protected _events: EventsClient | undefined;
|
|
34
37
|
protected _gallery: GalleryClient | undefined;
|
|
38
|
+
protected _hours: HoursClient | undefined;
|
|
35
39
|
protected _menus: MenusClient | undefined;
|
|
36
40
|
protected _messaging: MessagingClient | undefined;
|
|
37
41
|
protected _productOrders: ProductOrdersClient | undefined;
|
|
@@ -39,12 +43,14 @@ export declare class BusinessClient {
|
|
|
39
43
|
protected _productCategories: ProductCategoriesClient | undefined;
|
|
40
44
|
protected _profile: ProfileClient | undefined;
|
|
41
45
|
protected _pushNotifications: PushNotificationsClient | undefined;
|
|
46
|
+
protected _stands: StandsClient | undefined;
|
|
42
47
|
protected _stripeConnect: StripeConnectClient | undefined;
|
|
43
48
|
protected _cuisines: CuisinesClient | undefined;
|
|
44
49
|
protected _certifications: CertificationsClient | undefined;
|
|
45
50
|
protected _categories: CategoriesClient | undefined;
|
|
46
51
|
protected _allergens: AllergensClient | undefined;
|
|
47
52
|
protected _temporaryLocations: TemporaryLocationsClient | undefined;
|
|
53
|
+
protected _shipping: ShippingClient | undefined;
|
|
48
54
|
constructor(options?: BusinessClient.Options);
|
|
49
55
|
get auth(): AuthClient;
|
|
50
56
|
get bulletins(): BulletinsClient;
|
|
@@ -53,6 +59,7 @@ export declare class BusinessClient {
|
|
|
53
59
|
get discounts(): DiscountsClient;
|
|
54
60
|
get events(): EventsClient;
|
|
55
61
|
get gallery(): GalleryClient;
|
|
62
|
+
get hours(): HoursClient;
|
|
56
63
|
get menus(): MenusClient;
|
|
57
64
|
get messaging(): MessagingClient;
|
|
58
65
|
get productOrders(): ProductOrdersClient;
|
|
@@ -60,10 +67,12 @@ export declare class BusinessClient {
|
|
|
60
67
|
get productCategories(): ProductCategoriesClient;
|
|
61
68
|
get profile(): ProfileClient;
|
|
62
69
|
get pushNotifications(): PushNotificationsClient;
|
|
70
|
+
get stands(): StandsClient;
|
|
63
71
|
get stripeConnect(): StripeConnectClient;
|
|
64
72
|
get cuisines(): CuisinesClient;
|
|
65
73
|
get certifications(): CertificationsClient;
|
|
66
74
|
get categories(): CategoriesClient;
|
|
67
75
|
get allergens(): AllergensClient;
|
|
68
76
|
get temporaryLocations(): TemporaryLocationsClient;
|
|
77
|
+
get shipping(): ShippingClient;
|
|
69
78
|
}
|
|
@@ -14,15 +14,18 @@ const Client_js_8 = require("../resources/cuisines/client/Client.js");
|
|
|
14
14
|
const Client_js_9 = require("../resources/discounts/client/Client.js");
|
|
15
15
|
const Client_js_10 = require("../resources/events/client/Client.js");
|
|
16
16
|
const Client_js_11 = require("../resources/gallery/client/Client.js");
|
|
17
|
-
const Client_js_12 = require("../resources/
|
|
18
|
-
const Client_js_13 = require("../resources/
|
|
19
|
-
const Client_js_14 = require("../resources/
|
|
20
|
-
const Client_js_15 = require("../resources/
|
|
21
|
-
const Client_js_16 = require("../resources/
|
|
22
|
-
const Client_js_17 = require("../resources/
|
|
23
|
-
const Client_js_18 = require("../resources/
|
|
24
|
-
const Client_js_19 = require("../resources/
|
|
25
|
-
const Client_js_20 = require("../resources/
|
|
17
|
+
const Client_js_12 = require("../resources/hours/client/Client.js");
|
|
18
|
+
const Client_js_13 = require("../resources/menus/client/Client.js");
|
|
19
|
+
const Client_js_14 = require("../resources/messaging/client/Client.js");
|
|
20
|
+
const Client_js_15 = require("../resources/productCategories/client/Client.js");
|
|
21
|
+
const Client_js_16 = require("../resources/productOrders/client/Client.js");
|
|
22
|
+
const Client_js_17 = require("../resources/products/client/Client.js");
|
|
23
|
+
const Client_js_18 = require("../resources/profile/client/Client.js");
|
|
24
|
+
const Client_js_19 = require("../resources/pushNotifications/client/Client.js");
|
|
25
|
+
const Client_js_20 = require("../resources/shipping/client/Client.js");
|
|
26
|
+
const Client_js_21 = require("../resources/stands/client/Client.js");
|
|
27
|
+
const Client_js_22 = require("../resources/stripeConnect/client/Client.js");
|
|
28
|
+
const Client_js_23 = require("../resources/temporaryLocations/client/Client.js");
|
|
26
29
|
class BusinessClient {
|
|
27
30
|
constructor(options = {}) {
|
|
28
31
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
@@ -55,37 +58,45 @@ class BusinessClient {
|
|
|
55
58
|
var _a;
|
|
56
59
|
return ((_a = this._gallery) !== null && _a !== void 0 ? _a : (this._gallery = new Client_js_11.GalleryClient(this._options)));
|
|
57
60
|
}
|
|
61
|
+
get hours() {
|
|
62
|
+
var _a;
|
|
63
|
+
return ((_a = this._hours) !== null && _a !== void 0 ? _a : (this._hours = new Client_js_12.HoursClient(this._options)));
|
|
64
|
+
}
|
|
58
65
|
get menus() {
|
|
59
66
|
var _a;
|
|
60
|
-
return ((_a = this._menus) !== null && _a !== void 0 ? _a : (this._menus = new
|
|
67
|
+
return ((_a = this._menus) !== null && _a !== void 0 ? _a : (this._menus = new Client_js_13.MenusClient(this._options)));
|
|
61
68
|
}
|
|
62
69
|
get messaging() {
|
|
63
70
|
var _a;
|
|
64
|
-
return ((_a = this._messaging) !== null && _a !== void 0 ? _a : (this._messaging = new
|
|
71
|
+
return ((_a = this._messaging) !== null && _a !== void 0 ? _a : (this._messaging = new Client_js_14.MessagingClient(this._options)));
|
|
65
72
|
}
|
|
66
73
|
get productOrders() {
|
|
67
74
|
var _a;
|
|
68
|
-
return ((_a = this._productOrders) !== null && _a !== void 0 ? _a : (this._productOrders = new
|
|
75
|
+
return ((_a = this._productOrders) !== null && _a !== void 0 ? _a : (this._productOrders = new Client_js_16.ProductOrdersClient(this._options)));
|
|
69
76
|
}
|
|
70
77
|
get products() {
|
|
71
78
|
var _a;
|
|
72
|
-
return ((_a = this._products) !== null && _a !== void 0 ? _a : (this._products = new
|
|
79
|
+
return ((_a = this._products) !== null && _a !== void 0 ? _a : (this._products = new Client_js_17.ProductsClient(this._options)));
|
|
73
80
|
}
|
|
74
81
|
get productCategories() {
|
|
75
82
|
var _a;
|
|
76
|
-
return ((_a = this._productCategories) !== null && _a !== void 0 ? _a : (this._productCategories = new
|
|
83
|
+
return ((_a = this._productCategories) !== null && _a !== void 0 ? _a : (this._productCategories = new Client_js_15.ProductCategoriesClient(this._options)));
|
|
77
84
|
}
|
|
78
85
|
get profile() {
|
|
79
86
|
var _a;
|
|
80
|
-
return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new
|
|
87
|
+
return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new Client_js_18.ProfileClient(this._options)));
|
|
81
88
|
}
|
|
82
89
|
get pushNotifications() {
|
|
83
90
|
var _a;
|
|
84
|
-
return ((_a = this._pushNotifications) !== null && _a !== void 0 ? _a : (this._pushNotifications = new
|
|
91
|
+
return ((_a = this._pushNotifications) !== null && _a !== void 0 ? _a : (this._pushNotifications = new Client_js_19.PushNotificationsClient(this._options)));
|
|
92
|
+
}
|
|
93
|
+
get stands() {
|
|
94
|
+
var _a;
|
|
95
|
+
return ((_a = this._stands) !== null && _a !== void 0 ? _a : (this._stands = new Client_js_21.StandsClient(this._options)));
|
|
85
96
|
}
|
|
86
97
|
get stripeConnect() {
|
|
87
98
|
var _a;
|
|
88
|
-
return ((_a = this._stripeConnect) !== null && _a !== void 0 ? _a : (this._stripeConnect = new
|
|
99
|
+
return ((_a = this._stripeConnect) !== null && _a !== void 0 ? _a : (this._stripeConnect = new Client_js_22.StripeConnectClient(this._options)));
|
|
89
100
|
}
|
|
90
101
|
get cuisines() {
|
|
91
102
|
var _a;
|
|
@@ -105,7 +116,11 @@ class BusinessClient {
|
|
|
105
116
|
}
|
|
106
117
|
get temporaryLocations() {
|
|
107
118
|
var _a;
|
|
108
|
-
return ((_a = this._temporaryLocations) !== null && _a !== void 0 ? _a : (this._temporaryLocations = new
|
|
119
|
+
return ((_a = this._temporaryLocations) !== null && _a !== void 0 ? _a : (this._temporaryLocations = new Client_js_23.TemporaryLocationsClient(this._options)));
|
|
120
|
+
}
|
|
121
|
+
get shipping() {
|
|
122
|
+
var _a;
|
|
123
|
+
return ((_a = this._shipping) !== null && _a !== void 0 ? _a : (this._shipping = new Client_js_20.ShippingClient(this._options)));
|
|
109
124
|
}
|
|
110
125
|
}
|
|
111
126
|
exports.BusinessClient = BusinessClient;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../../../core/index.js";
|
|
4
|
+
import * as FiveOneEat from "../../../../../index.js";
|
|
5
|
+
import { ExceptionsClient } from "../resources/exceptions/client/Client.js";
|
|
6
|
+
export declare namespace HoursClient {
|
|
7
|
+
type Options = BaseClientOptions;
|
|
8
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare class HoursClient {
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<HoursClient.Options>;
|
|
13
|
+
protected _exceptions: ExceptionsClient | undefined;
|
|
14
|
+
constructor(options?: HoursClient.Options);
|
|
15
|
+
get exceptions(): ExceptionsClient;
|
|
16
|
+
/**
|
|
17
|
+
* @param {HoursClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
18
|
+
*
|
|
19
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* await client.business.hours.get()
|
|
23
|
+
*/
|
|
24
|
+
get(requestOptions?: HoursClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.GetHoursResponse>;
|
|
25
|
+
private __get;
|
|
26
|
+
/**
|
|
27
|
+
* @param {FiveOneEat.business.UpdateBusinessHoursRequest} request
|
|
28
|
+
* @param {HoursClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
|
+
*
|
|
30
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
31
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
32
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* await client.business.hours.update({
|
|
36
|
+
* slots: [{
|
|
37
|
+
* day_of_week: 1,
|
|
38
|
+
* opens_at: "opens_at",
|
|
39
|
+
* closes_at: "closes_at"
|
|
40
|
+
* }]
|
|
41
|
+
* })
|
|
42
|
+
*/
|
|
43
|
+
update(request: FiveOneEat.business.UpdateBusinessHoursRequest, requestOptions?: HoursClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.UpdateHoursResponse>;
|
|
44
|
+
private __update;
|
|
45
|
+
}
|
package/dist/cjs/api/resources/{customerBusinesses → business/resources/hours}/client/Client.js
RENAMED
|
@@ -43,55 +43,101 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
-
exports.
|
|
47
|
-
const BaseClient_js_1 = require("
|
|
48
|
-
const headers_js_1 = require("
|
|
49
|
-
const core = __importStar(require("
|
|
50
|
-
const environments = __importStar(require("
|
|
51
|
-
const handleNonStatusCodeError_js_1 = require("
|
|
52
|
-
const errors = __importStar(require("
|
|
53
|
-
const FiveOneEat = __importStar(require("
|
|
54
|
-
|
|
46
|
+
exports.HoursClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../../../BaseClient.js");
|
|
48
|
+
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
49
|
+
const core = __importStar(require("../../../../../../core/index.js"));
|
|
50
|
+
const environments = __importStar(require("../../../../../../environments.js"));
|
|
51
|
+
const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
|
|
52
|
+
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
53
|
+
const FiveOneEat = __importStar(require("../../../../../index.js"));
|
|
54
|
+
const Client_js_1 = require("../resources/exceptions/client/Client.js");
|
|
55
|
+
class HoursClient {
|
|
55
56
|
constructor(options = {}) {
|
|
56
57
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
58
|
}
|
|
59
|
+
get exceptions() {
|
|
60
|
+
var _a;
|
|
61
|
+
return ((_a = this._exceptions) !== null && _a !== void 0 ? _a : (this._exceptions = new Client_js_1.ExceptionsClient(this._options)));
|
|
62
|
+
}
|
|
58
63
|
/**
|
|
59
|
-
*
|
|
64
|
+
* @param {HoursClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
60
65
|
*
|
|
61
|
-
* @
|
|
62
|
-
*
|
|
66
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
67
|
+
*
|
|
68
|
+
* @example
|
|
69
|
+
* await client.business.hours.get()
|
|
70
|
+
*/
|
|
71
|
+
get(requestOptions) {
|
|
72
|
+
return core.HttpResponsePromise.fromPromise(this.__get(requestOptions));
|
|
73
|
+
}
|
|
74
|
+
__get(requestOptions) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
77
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
78
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
79
|
+
const _response = yield core.fetcher({
|
|
80
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, "business/hours"),
|
|
81
|
+
method: "GET",
|
|
82
|
+
headers: _headers,
|
|
83
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
84
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
85
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
86
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
87
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
88
|
+
logging: this._options.logging,
|
|
89
|
+
});
|
|
90
|
+
if (_response.ok) {
|
|
91
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
92
|
+
}
|
|
93
|
+
if (_response.error.reason === "status-code") {
|
|
94
|
+
switch (_response.error.statusCode) {
|
|
95
|
+
case 401:
|
|
96
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
97
|
+
default:
|
|
98
|
+
throw new errors.FiveOneEatError({
|
|
99
|
+
statusCode: _response.error.statusCode,
|
|
100
|
+
body: _response.error.body,
|
|
101
|
+
rawResponse: _response.rawResponse,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/business/hours");
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* @param {FiveOneEat.business.UpdateBusinessHoursRequest} request
|
|
110
|
+
* @param {HoursClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
111
|
*
|
|
64
112
|
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
113
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
65
114
|
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
66
115
|
*
|
|
67
116
|
* @example
|
|
68
|
-
* await client.
|
|
69
|
-
*
|
|
70
|
-
*
|
|
117
|
+
* await client.business.hours.update({
|
|
118
|
+
* slots: [{
|
|
119
|
+
* day_of_week: 1,
|
|
120
|
+
* opens_at: "opens_at",
|
|
121
|
+
* closes_at: "closes_at"
|
|
122
|
+
* }]
|
|
71
123
|
* })
|
|
72
124
|
*/
|
|
73
|
-
|
|
74
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
125
|
+
update(request, requestOptions) {
|
|
126
|
+
return core.HttpResponsePromise.fromPromise(this.__update(request, requestOptions));
|
|
75
127
|
}
|
|
76
|
-
|
|
128
|
+
__update(request, requestOptions) {
|
|
77
129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
78
130
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
79
|
-
const { handle, date } = request;
|
|
80
|
-
const _queryParams = {
|
|
81
|
-
date,
|
|
82
|
-
};
|
|
83
131
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
84
132
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
85
133
|
const _response = yield core.fetcher({
|
|
86
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production,
|
|
87
|
-
method: "
|
|
134
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.FiveOneEatEnvironment.Production, "business/hours"),
|
|
135
|
+
method: "PUT",
|
|
88
136
|
headers: _headers,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
94
|
-
.build(),
|
|
137
|
+
contentType: "application/json",
|
|
138
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
139
|
+
requestType: "json",
|
|
140
|
+
body: request,
|
|
95
141
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
96
142
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
97
143
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -108,6 +154,8 @@ class CustomerBusinessesClient {
|
|
|
108
154
|
switch (_response.error.statusCode) {
|
|
109
155
|
case 401:
|
|
110
156
|
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
157
|
+
case 403:
|
|
158
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
111
159
|
case 422:
|
|
112
160
|
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
113
161
|
default:
|
|
@@ -118,8 +166,8 @@ class CustomerBusinessesClient {
|
|
|
118
166
|
});
|
|
119
167
|
}
|
|
120
168
|
}
|
|
121
|
-
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "
|
|
169
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PUT", "/business/hours");
|
|
122
170
|
});
|
|
123
171
|
}
|
|
124
172
|
}
|
|
125
|
-
exports.
|
|
173
|
+
exports.HoursClient = HoursClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { UpdateBusinessHoursRequest } from "./UpdateBusinessHoursRequest.js";
|
|
@@ -15,7 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.
|
|
18
|
+
exports.HoursClient = void 0;
|
|
19
19
|
var Client_js_1 = require("./client/Client.js");
|
|
20
|
-
Object.defineProperty(exports, "
|
|
20
|
+
Object.defineProperty(exports, "HoursClient", { enumerable: true, get: function () { return Client_js_1.HoursClient; } });
|
|
21
21
|
__exportStar(require("./client/index.js"), exports);
|
|
22
|
+
__exportStar(require("./resources/index.js"), exports);
|