@51eat/sdk 0.0.27 → 0.0.29
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 +3 -2
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/business/client/Client.d.ts +6 -0
- package/dist/cjs/api/resources/business/client/Client.js +20 -10
- package/dist/cjs/api/resources/business/resources/bulletins/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/bulletins/client/Client.js +5 -0
- package/dist/cjs/api/resources/business/resources/bulletins/exports.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/bulletins/exports.js +1 -0
- package/dist/cjs/api/resources/business/resources/bulletins/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/bulletins/index.js +1 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/Client.d.ts +49 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/Client.js +208 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/CreateCommentsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/CreateCommentsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/ListCommentsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/ListCommentsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/types/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/bulletins/resources/index.js +42 -0
- package/dist/cjs/api/resources/business/resources/events/client/Client.d.ts +198 -0
- package/dist/cjs/api/resources/business/resources/events/client/Client.js +746 -0
- package/dist/cjs/api/resources/business/resources/events/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/events/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/DeleteEventsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/DeleteEventsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/DeleteImageEventsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/DeleteImageEventsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/GetEventsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/GetEventsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/ListAttendeesEventsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/ListAttendeesEventsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/ListRsvpsEventsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/ListRsvpsEventsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/SalesSummaryEventsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/SalesSummaryEventsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/StoreEventRequest.d.ts +20 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/StoreEventRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/TogglePublishedEventsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/TogglePublishedEventsRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/UpdateEventRequest.d.ts +20 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/UpdateEventRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/UploadEventImageRequest.d.ts +14 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/UploadEventImageRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/index.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/events/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/events/exports.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/events/exports.js +22 -0
- package/dist/cjs/api/resources/business/resources/events/index.d.ts +3 -0
- package/dist/cjs/api/resources/business/resources/events/index.js +19 -0
- package/dist/cjs/api/resources/business/resources/events/resources/index.d.ts +6 -0
- package/dist/cjs/api/resources/business/resources/events/resources/index.js +45 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/client/Client.d.ts +46 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/client/Client.js +178 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/client/requests/GetOrdersRequest.d.ts +13 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/client/requests/GetOrdersRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/client/requests/ListOrdersRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/client/requests/ListOrdersRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/types/GetOrdersResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/types/GetOrdersResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/types/ListOrdersResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/types/ListOrdersResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/events/resources/orders/types/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/Client.d.ts +94 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/Client.js +378 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/DeleteTicketTypesRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/DeleteTicketTypesRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/GetTicketTypesRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/GetTicketTypesRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/ListTicketTypesRequest.d.ts +10 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/ListTicketTypesRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/StoreTicketTypeRequest.d.ts +21 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/StoreTicketTypeRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.d.ts +18 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/types/CreateTicketTypesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/types/CreateTicketTypesResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/types/DeleteTicketTypesResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/types/DeleteTicketTypesResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/types/GetTicketTypesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/types/GetTicketTypesResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/types/ListTicketTypesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/types/ListTicketTypesResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/types/UpdateTicketTypesResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/types/UpdateTicketTypesResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/types/index.d.ts +5 -0
- package/dist/cjs/api/resources/business/resources/events/resources/ticketTypes/types/index.js +21 -0
- package/dist/cjs/api/resources/business/resources/events/types/CreateEventsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/events/types/CreateEventsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/types/DeleteEventsResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/events/types/DeleteEventsResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/events/types/DeleteImageEventsResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/events/types/DeleteImageEventsResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/events/types/GetEventsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/events/types/GetEventsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/types/ListAttendeesEventsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/events/types/ListAttendeesEventsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/types/ListEventsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/events/types/ListEventsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/types/ListRsvpsEventsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/events/types/ListRsvpsEventsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/types/SalesSummaryEventsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/events/types/SalesSummaryEventsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/types/TogglePublishedEventsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/events/types/TogglePublishedEventsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/types/UpdateEventsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/events/types/UpdateEventsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/types/UploadImageEventsResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/events/types/UploadImageEventsResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/events/types/index.d.ts +11 -0
- package/dist/cjs/api/resources/business/resources/events/types/index.js +27 -0
- package/dist/cjs/api/resources/business/resources/index.d.ts +6 -0
- package/dist/cjs/api/resources/business/resources/index.js +7 -1
- package/dist/cjs/api/resources/business/resources/stripeConnect/client/Client.d.ts +84 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/client/Client.js +295 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/client/index.js +17 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/client/requests/CreateAccountSessionRequest.d.ts +21 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/client/requests/CreateAccountSessionRequest.js +3 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/exports.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/exports.js +21 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/index.d.ts +2 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/index.js +18 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/types/CreateAccountSessionStripeConnectResponse.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/types/CreateAccountSessionStripeConnectResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/types/DisconnectStripeConnectResponse.d.ts +9 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/types/DisconnectStripeConnectResponse.js +10 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/types/RefreshStripeConnectResponse.d.ts +12 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/types/RefreshStripeConnectResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/types/StatusStripeConnectResponse.d.ts +12 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/types/StatusStripeConnectResponse.js +3 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/types/index.d.ts +4 -0
- package/dist/cjs/api/resources/business/resources/stripeConnect/types/index.js +20 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.js +1 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/{StoreBulletinCommentRequest.d.ts → AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.ts} +2 -1
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.js +3 -0
- package/dist/cjs/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/types/BusinessBulletinComment.d.ts +15 -0
- package/dist/cjs/api/types/BusinessBulletinComment.js +3 -0
- package/dist/cjs/api/types/BusinessBulletinCommentReply.d.ts +13 -0
- package/dist/cjs/api/types/BusinessBulletinCommentReply.js +3 -0
- package/dist/cjs/api/types/BusinessBulletinCommentResponse.d.ts +5 -0
- package/dist/cjs/api/types/BusinessBulletinCommentResponse.js +3 -0
- package/dist/cjs/api/types/BusinessEvent.d.ts +20 -0
- package/dist/cjs/api/types/BusinessEvent.js +3 -0
- package/dist/cjs/api/types/BusinessEventAttendee.d.ts +22 -0
- package/dist/cjs/api/types/BusinessEventAttendee.js +3 -0
- package/dist/cjs/api/types/BusinessEventOrder.d.ts +26 -0
- package/dist/cjs/api/types/BusinessEventOrder.js +3 -0
- package/dist/cjs/api/types/BusinessEventOrderDetail.d.ts +28 -0
- package/dist/cjs/api/types/BusinessEventOrderDetail.js +3 -0
- package/dist/cjs/api/types/BusinessEventRsvp.d.ts +16 -0
- package/dist/cjs/api/types/BusinessEventRsvp.js +3 -0
- package/dist/cjs/api/types/BusinessEventSalesSummary.d.ts +1 -0
- package/dist/cjs/api/types/BusinessEventSalesSummary.js +3 -0
- package/dist/cjs/api/types/BusinessEventTicketType.d.ts +17 -0
- package/dist/cjs/api/types/BusinessEventTicketType.js +3 -0
- package/dist/cjs/api/types/BusinessStripeConnection.d.ts +18 -0
- package/dist/cjs/api/types/BusinessStripeConnection.js +3 -0
- package/dist/cjs/api/types/CustomerBulletinCommentReply.d.ts +13 -0
- package/dist/cjs/api/types/CustomerBulletinCommentReply.js +3 -0
- package/dist/cjs/api/types/CustomerComment.d.ts +3 -0
- package/dist/cjs/api/types/index.d.ts +12 -0
- package/dist/cjs/api/types/index.js +12 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/business/client/Client.d.mts +6 -0
- package/dist/esm/api/resources/business/client/Client.mjs +10 -0
- package/dist/esm/api/resources/business/resources/bulletins/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/bulletins/client/Client.mjs +5 -0
- package/dist/esm/api/resources/business/resources/bulletins/exports.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/bulletins/exports.mjs +1 -0
- package/dist/esm/api/resources/business/resources/bulletins/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/bulletins/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/Client.d.mts +49 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/Client.mjs +171 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.d.mts +12 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/CreateCommentsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/CreateCommentsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/ListCommentsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/ListCommentsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/comments/types/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/bulletins/resources/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/events/client/Client.d.mts +198 -0
- package/dist/esm/api/resources/business/resources/events/client/Client.mjs +709 -0
- package/dist/esm/api/resources/business/resources/events/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/events/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/DeleteEventsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/DeleteEventsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/DeleteImageEventsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/DeleteImageEventsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/GetEventsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/GetEventsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/ListAttendeesEventsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/ListAttendeesEventsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/ListRsvpsEventsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/ListRsvpsEventsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/SalesSummaryEventsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/SalesSummaryEventsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/StoreEventRequest.d.mts +20 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/StoreEventRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/TogglePublishedEventsRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/TogglePublishedEventsRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/UpdateEventRequest.d.mts +20 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/UpdateEventRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/UploadEventImageRequest.d.mts +14 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/UploadEventImageRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/index.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/events/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/events/exports.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/events/exports.mjs +4 -0
- package/dist/esm/api/resources/business/resources/events/index.d.mts +3 -0
- package/dist/esm/api/resources/business/resources/events/index.mjs +3 -0
- package/dist/esm/api/resources/business/resources/events/resources/index.d.mts +6 -0
- package/dist/esm/api/resources/business/resources/events/resources/index.mjs +6 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/client/Client.d.mts +46 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/client/Client.mjs +141 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/client/requests/GetOrdersRequest.d.mts +13 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/client/requests/GetOrdersRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/client/requests/ListOrdersRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/client/requests/ListOrdersRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/types/GetOrdersResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/types/GetOrdersResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/types/ListOrdersResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/types/ListOrdersResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/types/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/orders/types/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/Client.d.mts +94 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/Client.mjs +341 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/DeleteTicketTypesRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/DeleteTicketTypesRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/GetTicketTypesRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/GetTicketTypesRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/ListTicketTypesRequest.d.mts +10 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/ListTicketTypesRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/StoreTicketTypeRequest.d.mts +21 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/StoreTicketTypeRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.d.mts +18 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/UpdateTicketTypeRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/types/CreateTicketTypesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/types/CreateTicketTypesResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/types/DeleteTicketTypesResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/types/DeleteTicketTypesResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/types/GetTicketTypesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/types/GetTicketTypesResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/types/ListTicketTypesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/types/ListTicketTypesResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/types/UpdateTicketTypesResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/types/UpdateTicketTypesResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/types/index.d.mts +5 -0
- package/dist/esm/api/resources/business/resources/events/resources/ticketTypes/types/index.mjs +5 -0
- package/dist/esm/api/resources/business/resources/events/types/CreateEventsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/events/types/CreateEventsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/types/DeleteEventsResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/events/types/DeleteEventsResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/events/types/DeleteImageEventsResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/events/types/DeleteImageEventsResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/events/types/GetEventsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/events/types/GetEventsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/types/ListAttendeesEventsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/events/types/ListAttendeesEventsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/types/ListEventsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/events/types/ListEventsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/types/ListRsvpsEventsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/events/types/ListRsvpsEventsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/types/SalesSummaryEventsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/events/types/SalesSummaryEventsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/types/TogglePublishedEventsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/events/types/TogglePublishedEventsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/types/UpdateEventsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/events/types/UpdateEventsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/types/UploadImageEventsResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/events/types/UploadImageEventsResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/events/types/index.d.mts +11 -0
- package/dist/esm/api/resources/business/resources/events/types/index.mjs +11 -0
- package/dist/esm/api/resources/business/resources/index.d.mts +6 -0
- package/dist/esm/api/resources/business/resources/index.mjs +6 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/client/Client.d.mts +84 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/client/Client.mjs +258 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/client/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/client/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/client/requests/CreateAccountSessionRequest.d.mts +21 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/client/requests/CreateAccountSessionRequest.mjs +2 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/exports.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/exports.mjs +3 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/index.d.mts +2 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/index.mjs +2 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/types/CreateAccountSessionStripeConnectResponse.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/types/CreateAccountSessionStripeConnectResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/types/DisconnectStripeConnectResponse.d.mts +9 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/types/DisconnectStripeConnectResponse.mjs +7 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/types/RefreshStripeConnectResponse.d.mts +12 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/types/RefreshStripeConnectResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/types/StatusStripeConnectResponse.d.mts +12 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/types/StatusStripeConnectResponse.mjs +2 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/types/index.d.mts +4 -0
- package/dist/esm/api/resources/business/resources/stripeConnect/types/index.mjs +4 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/Client.mjs +1 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/{StoreBulletinCommentRequest.d.mts → AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.d.mts} +2 -1
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/AppHttpRequestsApiV1CustomerBusinessesStoreBulletinCommentRequest.mjs +2 -0
- package/dist/esm/api/resources/customer/resources/businesses/resources/bulletins/resources/comments/client/requests/index.d.mts +1 -1
- package/dist/esm/api/types/BusinessBulletinComment.d.mts +15 -0
- package/dist/esm/api/types/BusinessBulletinComment.mjs +2 -0
- package/dist/esm/api/types/BusinessBulletinCommentReply.d.mts +13 -0
- package/dist/esm/api/types/BusinessBulletinCommentReply.mjs +2 -0
- package/dist/esm/api/types/BusinessBulletinCommentResponse.d.mts +5 -0
- package/dist/esm/api/types/BusinessBulletinCommentResponse.mjs +2 -0
- package/dist/esm/api/types/BusinessEvent.d.mts +20 -0
- package/dist/esm/api/types/BusinessEvent.mjs +2 -0
- package/dist/esm/api/types/BusinessEventAttendee.d.mts +22 -0
- package/dist/esm/api/types/BusinessEventAttendee.mjs +2 -0
- package/dist/esm/api/types/BusinessEventOrder.d.mts +26 -0
- package/dist/esm/api/types/BusinessEventOrder.mjs +2 -0
- package/dist/esm/api/types/BusinessEventOrderDetail.d.mts +28 -0
- package/dist/esm/api/types/BusinessEventOrderDetail.mjs +2 -0
- package/dist/esm/api/types/BusinessEventRsvp.d.mts +16 -0
- package/dist/esm/api/types/BusinessEventRsvp.mjs +2 -0
- package/dist/esm/api/types/BusinessEventSalesSummary.d.mts +1 -0
- package/dist/esm/api/types/BusinessEventSalesSummary.mjs +2 -0
- package/dist/esm/api/types/BusinessEventTicketType.d.mts +17 -0
- package/dist/esm/api/types/BusinessEventTicketType.mjs +2 -0
- package/dist/esm/api/types/BusinessStripeConnection.d.mts +18 -0
- package/dist/esm/api/types/BusinessStripeConnection.mjs +2 -0
- package/dist/esm/api/types/CustomerBulletinCommentReply.d.mts +13 -0
- package/dist/esm/api/types/CustomerBulletinCommentReply.mjs +2 -0
- package/dist/esm/api/types/CustomerComment.d.mts +3 -0
- package/dist/esm/api/types/index.d.mts +12 -0
- package/dist/esm/api/types/index.mjs +12 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +56 -1
- package/reference.md +1572 -203
- /package/dist/cjs/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.js → business/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.js} +0 -0
- /package/dist/esm/api/resources/{customer/resources/businesses/resources/bulletins/resources/comments/client/requests/StoreBulletinCommentRequest.mjs → business/resources/bulletins/resources/comments/client/requests/ListCommentsRequest.mjs} +0 -0
package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/Client.mjs
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
+
var t = {};
|
|
13
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
+
t[p] = s[p];
|
|
15
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
+
t[p[i]] = s[p[i]];
|
|
19
|
+
}
|
|
20
|
+
return t;
|
|
21
|
+
};
|
|
22
|
+
import { normalizeClientOptionsWithAuth, } from "../../../../../../../../BaseClient.mjs";
|
|
23
|
+
import { mergeHeaders } from "../../../../../../../../core/headers.mjs";
|
|
24
|
+
import * as core from "../../../../../../../../core/index.mjs";
|
|
25
|
+
import * as environments from "../../../../../../../../environments.mjs";
|
|
26
|
+
import { handleNonStatusCodeError } from "../../../../../../../../errors/handleNonStatusCodeError.mjs";
|
|
27
|
+
import * as errors from "../../../../../../../../errors/index.mjs";
|
|
28
|
+
import * as FiveOneEat from "../../../../../../../index.mjs";
|
|
29
|
+
export class CommentsClient {
|
|
30
|
+
constructor(options = {}) {
|
|
31
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @param {FiveOneEat.business.bulletins.ListCommentsRequest} request
|
|
35
|
+
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
38
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
39
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
40
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* await client.business.bulletins.comments.list({
|
|
44
|
+
* bulletin: "bulletin"
|
|
45
|
+
* })
|
|
46
|
+
*/
|
|
47
|
+
list(request, requestOptions) {
|
|
48
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
49
|
+
}
|
|
50
|
+
__list(request, requestOptions) {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
53
|
+
const { bulletin, page, per_page: perPage } = request;
|
|
54
|
+
const _queryParams = {
|
|
55
|
+
page,
|
|
56
|
+
per_page: perPage,
|
|
57
|
+
};
|
|
58
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
59
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
60
|
+
const _response = yield core.fetcher({
|
|
61
|
+
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/bulletins/${core.url.encodePathParam(bulletin)}/comments`),
|
|
62
|
+
method: "GET",
|
|
63
|
+
headers: _headers,
|
|
64
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
65
|
+
queryString: core.url
|
|
66
|
+
.queryBuilder()
|
|
67
|
+
.addMany(_queryParams)
|
|
68
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
69
|
+
.build(),
|
|
70
|
+
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,
|
|
71
|
+
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,
|
|
72
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
73
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
74
|
+
logging: this._options.logging,
|
|
75
|
+
});
|
|
76
|
+
if (_response.ok) {
|
|
77
|
+
return {
|
|
78
|
+
data: _response.body,
|
|
79
|
+
rawResponse: _response.rawResponse,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
if (_response.error.reason === "status-code") {
|
|
83
|
+
switch (_response.error.statusCode) {
|
|
84
|
+
case 401:
|
|
85
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
86
|
+
case 403:
|
|
87
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
88
|
+
case 404:
|
|
89
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
90
|
+
case 422:
|
|
91
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
92
|
+
default:
|
|
93
|
+
throw new errors.FiveOneEatError({
|
|
94
|
+
statusCode: _response.error.statusCode,
|
|
95
|
+
body: _response.error.body,
|
|
96
|
+
rawResponse: _response.rawResponse,
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/business/bulletins/{bulletin}/comments");
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Omit `parent_id` for a top-level comment. Set `parent_id` to a top-level
|
|
105
|
+
* comment's id to post a one-level reply (replies to replies are not allowed).
|
|
106
|
+
*
|
|
107
|
+
* @param {FiveOneEat.business.bulletins.StoreBulletinCommentRequest} request
|
|
108
|
+
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
111
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
112
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
113
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* await client.business.bulletins.comments.create({
|
|
117
|
+
* bulletin: "bulletin",
|
|
118
|
+
* body: "body"
|
|
119
|
+
* })
|
|
120
|
+
*/
|
|
121
|
+
create(request, requestOptions) {
|
|
122
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
123
|
+
}
|
|
124
|
+
__create(request, requestOptions) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
127
|
+
const { bulletin } = request, _body = __rest(request, ["bulletin"]);
|
|
128
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
129
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
130
|
+
const _response = yield core.fetcher({
|
|
131
|
+
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/bulletins/${core.url.encodePathParam(bulletin)}/comments`),
|
|
132
|
+
method: "POST",
|
|
133
|
+
headers: _headers,
|
|
134
|
+
contentType: "application/json",
|
|
135
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
136
|
+
requestType: "json",
|
|
137
|
+
body: _body,
|
|
138
|
+
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,
|
|
139
|
+
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,
|
|
140
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
141
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
142
|
+
logging: this._options.logging,
|
|
143
|
+
});
|
|
144
|
+
if (_response.ok) {
|
|
145
|
+
return {
|
|
146
|
+
data: _response.body,
|
|
147
|
+
rawResponse: _response.rawResponse,
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
if (_response.error.reason === "status-code") {
|
|
151
|
+
switch (_response.error.statusCode) {
|
|
152
|
+
case 401:
|
|
153
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
154
|
+
case 403:
|
|
155
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
156
|
+
case 404:
|
|
157
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
158
|
+
case 422:
|
|
159
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
160
|
+
default:
|
|
161
|
+
throw new errors.FiveOneEatError({
|
|
162
|
+
statusCode: _response.error.statusCode,
|
|
163
|
+
body: _response.error.body,
|
|
164
|
+
rawResponse: _response.rawResponse,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/business/bulletins/{bulletin}/comments");
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
}
|
package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/index.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
package/dist/esm/api/resources/business/resources/bulletins/resources/comments/client/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
4
|
+
import * as FiveOneEat from "../../../../../index.mjs";
|
|
5
|
+
import { OrdersClient } from "../resources/orders/client/Client.mjs";
|
|
6
|
+
import { TicketTypesClient } from "../resources/ticketTypes/client/Client.mjs";
|
|
7
|
+
export declare namespace EventsClient {
|
|
8
|
+
type Options = BaseClientOptions;
|
|
9
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare class EventsClient {
|
|
13
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<EventsClient.Options>;
|
|
14
|
+
protected _ticketTypes: TicketTypesClient | undefined;
|
|
15
|
+
protected _orders: OrdersClient | undefined;
|
|
16
|
+
constructor(options?: EventsClient.Options);
|
|
17
|
+
get ticketTypes(): TicketTypesClient;
|
|
18
|
+
get orders(): OrdersClient;
|
|
19
|
+
/**
|
|
20
|
+
* Accepts an optional `filter` query param: `upcoming`, `past`, or `all` (default `all`).
|
|
21
|
+
*
|
|
22
|
+
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
|
+
*
|
|
24
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
25
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* await client.business.events.list()
|
|
29
|
+
*/
|
|
30
|
+
list(requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.ListEventsResponse>;
|
|
31
|
+
private __list;
|
|
32
|
+
/**
|
|
33
|
+
* @param {FiveOneEat.business.StoreEventRequest} request
|
|
34
|
+
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
37
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
38
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* await client.business.events.create({
|
|
42
|
+
* title: "title",
|
|
43
|
+
* starts_at: "2024-01-15T09:30:00Z",
|
|
44
|
+
* ends_at: "2024-01-15T09:30:00Z"
|
|
45
|
+
* })
|
|
46
|
+
*/
|
|
47
|
+
create(request: FiveOneEat.business.StoreEventRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.CreateEventsResponse>;
|
|
48
|
+
private __create;
|
|
49
|
+
/**
|
|
50
|
+
* @param {FiveOneEat.business.GetEventsRequest} request
|
|
51
|
+
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
|
+
*
|
|
53
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
54
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
55
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* await client.business.events.get({
|
|
59
|
+
* event: "event"
|
|
60
|
+
* })
|
|
61
|
+
*/
|
|
62
|
+
get(request: FiveOneEat.business.GetEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.GetEventsResponse>;
|
|
63
|
+
private __get;
|
|
64
|
+
/**
|
|
65
|
+
* @param {FiveOneEat.business.UpdateEventRequest} request
|
|
66
|
+
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
+
*
|
|
68
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
69
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
70
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
71
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* await client.business.events.update({
|
|
75
|
+
* event: "event"
|
|
76
|
+
* })
|
|
77
|
+
*/
|
|
78
|
+
update(request: FiveOneEat.business.UpdateEventRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.UpdateEventsResponse>;
|
|
79
|
+
private __update;
|
|
80
|
+
/**
|
|
81
|
+
* @param {FiveOneEat.business.DeleteEventsRequest} request
|
|
82
|
+
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
83
|
+
*
|
|
84
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
85
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
86
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* await client.business.events.delete({
|
|
90
|
+
* event: "event"
|
|
91
|
+
* })
|
|
92
|
+
*/
|
|
93
|
+
delete(request: FiveOneEat.business.DeleteEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.DeleteEventsResponse>;
|
|
94
|
+
private __delete;
|
|
95
|
+
/**
|
|
96
|
+
* @param {FiveOneEat.business.TogglePublishedEventsRequest} request
|
|
97
|
+
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
98
|
+
*
|
|
99
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
100
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
101
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* await client.business.events.togglePublished({
|
|
105
|
+
* event: "event"
|
|
106
|
+
* })
|
|
107
|
+
*/
|
|
108
|
+
togglePublished(request: FiveOneEat.business.TogglePublishedEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.TogglePublishedEventsResponse>;
|
|
109
|
+
private __togglePublished;
|
|
110
|
+
/**
|
|
111
|
+
* Upload and replace the image for the given event. Any existing image will be deleted.
|
|
112
|
+
*
|
|
113
|
+
* @param {FiveOneEat.business.UploadEventImageRequest} request
|
|
114
|
+
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
117
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
118
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
119
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
120
|
+
*
|
|
121
|
+
* @example
|
|
122
|
+
* import { createReadStream } from "fs";
|
|
123
|
+
* await client.business.events.uploadImage({
|
|
124
|
+
* image: fs.createReadStream("/path/to/your/file"),
|
|
125
|
+
* event: "event"
|
|
126
|
+
* })
|
|
127
|
+
*/
|
|
128
|
+
uploadImage(request: FiveOneEat.business.UploadEventImageRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.UploadImageEventsResponse>;
|
|
129
|
+
private __uploadImage;
|
|
130
|
+
/**
|
|
131
|
+
* @param {FiveOneEat.business.DeleteImageEventsRequest} request
|
|
132
|
+
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
133
|
+
*
|
|
134
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
135
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
136
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* await client.business.events.deleteImage({
|
|
140
|
+
* event: "event"
|
|
141
|
+
* })
|
|
142
|
+
*/
|
|
143
|
+
deleteImage(request: FiveOneEat.business.DeleteImageEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.DeleteImageEventsResponse>;
|
|
144
|
+
private __deleteImage;
|
|
145
|
+
/**
|
|
146
|
+
* Accepts an optional `status` query param: `attending`, `not_attending`, or `maybe`.
|
|
147
|
+
*
|
|
148
|
+
* @param {FiveOneEat.business.ListRsvpsEventsRequest} request
|
|
149
|
+
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
150
|
+
*
|
|
151
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
152
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
153
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* await client.business.events.listRsvps({
|
|
157
|
+
* event: "event"
|
|
158
|
+
* })
|
|
159
|
+
*/
|
|
160
|
+
listRsvps(request: FiveOneEat.business.ListRsvpsEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.ListRsvpsEventsResponse>;
|
|
161
|
+
private __listRsvps;
|
|
162
|
+
/**
|
|
163
|
+
* Accepts an optional `status` query param matching the ticket status
|
|
164
|
+
* (`valid`, `used`, `cancelled`, `refunded`).
|
|
165
|
+
*
|
|
166
|
+
* @param {FiveOneEat.business.ListAttendeesEventsRequest} request
|
|
167
|
+
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
168
|
+
*
|
|
169
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
170
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
171
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* await client.business.events.listAttendees({
|
|
175
|
+
* event: "event"
|
|
176
|
+
* })
|
|
177
|
+
*/
|
|
178
|
+
listAttendees(request: FiveOneEat.business.ListAttendeesEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.ListAttendeesEventsResponse>;
|
|
179
|
+
private __listAttendees;
|
|
180
|
+
/**
|
|
181
|
+
* Returns aggregated sales totals: gross revenue, refunds, tickets sold,
|
|
182
|
+
* and a per-ticket-type breakdown.
|
|
183
|
+
*
|
|
184
|
+
* @param {FiveOneEat.business.SalesSummaryEventsRequest} request
|
|
185
|
+
* @param {EventsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
186
|
+
*
|
|
187
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
188
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
189
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* await client.business.events.salesSummary({
|
|
193
|
+
* event: "event"
|
|
194
|
+
* })
|
|
195
|
+
*/
|
|
196
|
+
salesSummary(request: FiveOneEat.business.SalesSummaryEventsRequest, requestOptions?: EventsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.SalesSummaryEventsResponse>;
|
|
197
|
+
private __salesSummary;
|
|
198
|
+
}
|