@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/README.md
CHANGED
|
@@ -109,8 +109,9 @@ import * as fs from "fs";
|
|
|
109
109
|
import { FiveOneEatClient } from "@51eat/sdk";
|
|
110
110
|
|
|
111
111
|
const client = new FiveOneEatClient({ token: "YOUR_TOKEN" });
|
|
112
|
-
await client.business.
|
|
113
|
-
|
|
112
|
+
await client.business.events.uploadImage({
|
|
113
|
+
image: fs.createReadStream("/path/to/your/file"),
|
|
114
|
+
event: "event"
|
|
114
115
|
});
|
|
115
116
|
```
|
|
116
117
|
The client accepts a variety of types for file upload parameters:
|
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.29",
|
|
47
|
+
"User-Agent": "@51eat/sdk/0.0.29",
|
|
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);
|
|
@@ -6,11 +6,13 @@ import { BusinessesClient } from "../resources/businesses/client/Client.js";
|
|
|
6
6
|
import { CategoriesClient } from "../resources/categories/client/Client.js";
|
|
7
7
|
import { CertificationsClient } from "../resources/certifications/client/Client.js";
|
|
8
8
|
import { CuisinesClient } from "../resources/cuisines/client/Client.js";
|
|
9
|
+
import { EventsClient } from "../resources/events/client/Client.js";
|
|
9
10
|
import { GalleryClient } from "../resources/gallery/client/Client.js";
|
|
10
11
|
import { MenusClient } from "../resources/menus/client/Client.js";
|
|
11
12
|
import { MessagingClient } from "../resources/messaging/client/Client.js";
|
|
12
13
|
import { ProfileClient } from "../resources/profile/client/Client.js";
|
|
13
14
|
import { PushNotificationsClient } from "../resources/pushNotifications/client/Client.js";
|
|
15
|
+
import { StripeConnectClient } from "../resources/stripeConnect/client/Client.js";
|
|
14
16
|
export declare namespace BusinessClient {
|
|
15
17
|
type Options = BaseClientOptions;
|
|
16
18
|
}
|
|
@@ -19,11 +21,13 @@ export declare class BusinessClient {
|
|
|
19
21
|
protected _auth: AuthClient | undefined;
|
|
20
22
|
protected _bulletins: BulletinsClient | undefined;
|
|
21
23
|
protected _businesses: BusinessesClient | undefined;
|
|
24
|
+
protected _events: EventsClient | undefined;
|
|
22
25
|
protected _gallery: GalleryClient | undefined;
|
|
23
26
|
protected _menus: MenusClient | undefined;
|
|
24
27
|
protected _messaging: MessagingClient | undefined;
|
|
25
28
|
protected _profile: ProfileClient | undefined;
|
|
26
29
|
protected _pushNotifications: PushNotificationsClient | undefined;
|
|
30
|
+
protected _stripeConnect: StripeConnectClient | undefined;
|
|
27
31
|
protected _cuisines: CuisinesClient | undefined;
|
|
28
32
|
protected _certifications: CertificationsClient | undefined;
|
|
29
33
|
protected _categories: CategoriesClient | undefined;
|
|
@@ -31,11 +35,13 @@ export declare class BusinessClient {
|
|
|
31
35
|
get auth(): AuthClient;
|
|
32
36
|
get bulletins(): BulletinsClient;
|
|
33
37
|
get businesses(): BusinessesClient;
|
|
38
|
+
get events(): EventsClient;
|
|
34
39
|
get gallery(): GalleryClient;
|
|
35
40
|
get menus(): MenusClient;
|
|
36
41
|
get messaging(): MessagingClient;
|
|
37
42
|
get profile(): ProfileClient;
|
|
38
43
|
get pushNotifications(): PushNotificationsClient;
|
|
44
|
+
get stripeConnect(): StripeConnectClient;
|
|
39
45
|
get cuisines(): CuisinesClient;
|
|
40
46
|
get certifications(): CertificationsClient;
|
|
41
47
|
get categories(): CategoriesClient;
|
|
@@ -9,11 +9,13 @@ const Client_js_3 = require("../resources/businesses/client/Client.js");
|
|
|
9
9
|
const Client_js_4 = require("../resources/categories/client/Client.js");
|
|
10
10
|
const Client_js_5 = require("../resources/certifications/client/Client.js");
|
|
11
11
|
const Client_js_6 = require("../resources/cuisines/client/Client.js");
|
|
12
|
-
const Client_js_7 = require("../resources/
|
|
13
|
-
const Client_js_8 = require("../resources/
|
|
14
|
-
const Client_js_9 = require("../resources/
|
|
15
|
-
const Client_js_10 = require("../resources/
|
|
16
|
-
const Client_js_11 = require("../resources/
|
|
12
|
+
const Client_js_7 = require("../resources/events/client/Client.js");
|
|
13
|
+
const Client_js_8 = require("../resources/gallery/client/Client.js");
|
|
14
|
+
const Client_js_9 = require("../resources/menus/client/Client.js");
|
|
15
|
+
const Client_js_10 = require("../resources/messaging/client/Client.js");
|
|
16
|
+
const Client_js_11 = require("../resources/profile/client/Client.js");
|
|
17
|
+
const Client_js_12 = require("../resources/pushNotifications/client/Client.js");
|
|
18
|
+
const Client_js_13 = require("../resources/stripeConnect/client/Client.js");
|
|
17
19
|
class BusinessClient {
|
|
18
20
|
constructor(options = {}) {
|
|
19
21
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
@@ -30,25 +32,33 @@ class BusinessClient {
|
|
|
30
32
|
var _a;
|
|
31
33
|
return ((_a = this._businesses) !== null && _a !== void 0 ? _a : (this._businesses = new Client_js_3.BusinessesClient(this._options)));
|
|
32
34
|
}
|
|
35
|
+
get events() {
|
|
36
|
+
var _a;
|
|
37
|
+
return ((_a = this._events) !== null && _a !== void 0 ? _a : (this._events = new Client_js_7.EventsClient(this._options)));
|
|
38
|
+
}
|
|
33
39
|
get gallery() {
|
|
34
40
|
var _a;
|
|
35
|
-
return ((_a = this._gallery) !== null && _a !== void 0 ? _a : (this._gallery = new
|
|
41
|
+
return ((_a = this._gallery) !== null && _a !== void 0 ? _a : (this._gallery = new Client_js_8.GalleryClient(this._options)));
|
|
36
42
|
}
|
|
37
43
|
get menus() {
|
|
38
44
|
var _a;
|
|
39
|
-
return ((_a = this._menus) !== null && _a !== void 0 ? _a : (this._menus = new
|
|
45
|
+
return ((_a = this._menus) !== null && _a !== void 0 ? _a : (this._menus = new Client_js_9.MenusClient(this._options)));
|
|
40
46
|
}
|
|
41
47
|
get messaging() {
|
|
42
48
|
var _a;
|
|
43
|
-
return ((_a = this._messaging) !== null && _a !== void 0 ? _a : (this._messaging = new
|
|
49
|
+
return ((_a = this._messaging) !== null && _a !== void 0 ? _a : (this._messaging = new Client_js_10.MessagingClient(this._options)));
|
|
44
50
|
}
|
|
45
51
|
get profile() {
|
|
46
52
|
var _a;
|
|
47
|
-
return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new
|
|
53
|
+
return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new Client_js_11.ProfileClient(this._options)));
|
|
48
54
|
}
|
|
49
55
|
get pushNotifications() {
|
|
50
56
|
var _a;
|
|
51
|
-
return ((_a = this._pushNotifications) !== null && _a !== void 0 ? _a : (this._pushNotifications = new
|
|
57
|
+
return ((_a = this._pushNotifications) !== null && _a !== void 0 ? _a : (this._pushNotifications = new Client_js_12.PushNotificationsClient(this._options)));
|
|
58
|
+
}
|
|
59
|
+
get stripeConnect() {
|
|
60
|
+
var _a;
|
|
61
|
+
return ((_a = this._stripeConnect) !== null && _a !== void 0 ? _a : (this._stripeConnect = new Client_js_13.StripeConnectClient(this._options)));
|
|
52
62
|
}
|
|
53
63
|
get cuisines() {
|
|
54
64
|
var _a;
|
|
@@ -2,6 +2,7 @@ import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../Ba
|
|
|
2
2
|
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../../../core/index.js";
|
|
4
4
|
import * as FiveOneEat from "../../../../../index.js";
|
|
5
|
+
import { CommentsClient } from "../resources/comments/client/Client.js";
|
|
5
6
|
export declare namespace BulletinsClient {
|
|
6
7
|
type Options = BaseClientOptions;
|
|
7
8
|
interface RequestOptions extends BaseRequestOptions {
|
|
@@ -9,7 +10,9 @@ export declare namespace BulletinsClient {
|
|
|
9
10
|
}
|
|
10
11
|
export declare class BulletinsClient {
|
|
11
12
|
protected readonly _options: NormalizedClientOptionsWithAuth<BulletinsClient.Options>;
|
|
13
|
+
protected _comments: CommentsClient | undefined;
|
|
12
14
|
constructor(options?: BulletinsClient.Options);
|
|
15
|
+
get comments(): CommentsClient;
|
|
13
16
|
/**
|
|
14
17
|
* @param {BulletinsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
15
18
|
*
|
|
@@ -62,10 +62,15 @@ const environments = __importStar(require("../../../../../../environments.js"));
|
|
|
62
62
|
const handleNonStatusCodeError_js_1 = require("../../../../../../errors/handleNonStatusCodeError.js");
|
|
63
63
|
const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
64
64
|
const FiveOneEat = __importStar(require("../../../../../index.js"));
|
|
65
|
+
const Client_js_1 = require("../resources/comments/client/Client.js");
|
|
65
66
|
class BulletinsClient {
|
|
66
67
|
constructor(options = {}) {
|
|
67
68
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
68
69
|
}
|
|
70
|
+
get comments() {
|
|
71
|
+
var _a;
|
|
72
|
+
return ((_a = this._comments) !== null && _a !== void 0 ? _a : (this._comments = new Client_js_1.CommentsClient(this._options)));
|
|
73
|
+
}
|
|
69
74
|
/**
|
|
70
75
|
* @param {BulletinsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
71
76
|
*
|
|
@@ -19,3 +19,4 @@ exports.BulletinsClient = void 0;
|
|
|
19
19
|
var Client_js_1 = require("./client/Client.js");
|
|
20
20
|
Object.defineProperty(exports, "BulletinsClient", { enumerable: true, get: function () { return Client_js_1.BulletinsClient; } });
|
|
21
21
|
__exportStar(require("./client/index.js"), exports);
|
|
22
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./resources/index.js"), exports);
|
|
18
19
|
__exportStar(require("./types/index.js"), exports);
|
package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/Client.d.ts
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
export declare namespace CommentsClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class CommentsClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<CommentsClient.Options>;
|
|
12
|
+
constructor(options?: CommentsClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {FiveOneEat.business.bulletins.ListCommentsRequest} request
|
|
15
|
+
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
+
*
|
|
17
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
18
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
19
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
20
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* await client.business.bulletins.comments.list({
|
|
24
|
+
* bulletin: "bulletin"
|
|
25
|
+
* })
|
|
26
|
+
*/
|
|
27
|
+
list(request: FiveOneEat.business.bulletins.ListCommentsRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.bulletins.ListCommentsResponse>;
|
|
28
|
+
private __list;
|
|
29
|
+
/**
|
|
30
|
+
* Omit `parent_id` for a top-level comment. Set `parent_id` to a top-level
|
|
31
|
+
* comment's id to post a one-level reply (replies to replies are not allowed).
|
|
32
|
+
*
|
|
33
|
+
* @param {FiveOneEat.business.bulletins.StoreBulletinCommentRequest} request
|
|
34
|
+
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
+
*
|
|
36
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
37
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
38
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
39
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* await client.business.bulletins.comments.create({
|
|
43
|
+
* bulletin: "bulletin",
|
|
44
|
+
* body: "body"
|
|
45
|
+
* })
|
|
46
|
+
*/
|
|
47
|
+
create(request: FiveOneEat.business.bulletins.StoreBulletinCommentRequest, requestOptions?: CommentsClient.RequestOptions): core.HttpResponsePromise<FiveOneEat.business.bulletins.CreateCommentsResponse>;
|
|
48
|
+
private __create;
|
|
49
|
+
}
|
package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/Client.js
ADDED
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
+
var t = {};
|
|
47
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
+
t[p] = s[p];
|
|
49
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
+
t[p[i]] = s[p[i]];
|
|
53
|
+
}
|
|
54
|
+
return t;
|
|
55
|
+
};
|
|
56
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
|
+
exports.CommentsClient = void 0;
|
|
58
|
+
const BaseClient_js_1 = require("../../../../../../../../BaseClient.js");
|
|
59
|
+
const headers_js_1 = require("../../../../../../../../core/headers.js");
|
|
60
|
+
const core = __importStar(require("../../../../../../../../core/index.js"));
|
|
61
|
+
const environments = __importStar(require("../../../../../../../../environments.js"));
|
|
62
|
+
const handleNonStatusCodeError_js_1 = require("../../../../../../../../errors/handleNonStatusCodeError.js");
|
|
63
|
+
const errors = __importStar(require("../../../../../../../../errors/index.js"));
|
|
64
|
+
const FiveOneEat = __importStar(require("../../../../../../../index.js"));
|
|
65
|
+
class CommentsClient {
|
|
66
|
+
constructor(options = {}) {
|
|
67
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* @param {FiveOneEat.business.bulletins.ListCommentsRequest} request
|
|
71
|
+
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
74
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
75
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
76
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
77
|
+
*
|
|
78
|
+
* @example
|
|
79
|
+
* await client.business.bulletins.comments.list({
|
|
80
|
+
* bulletin: "bulletin"
|
|
81
|
+
* })
|
|
82
|
+
*/
|
|
83
|
+
list(request, requestOptions) {
|
|
84
|
+
return core.HttpResponsePromise.fromPromise(this.__list(request, requestOptions));
|
|
85
|
+
}
|
|
86
|
+
__list(request, requestOptions) {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
89
|
+
const { bulletin, page, per_page: perPage } = request;
|
|
90
|
+
const _queryParams = {
|
|
91
|
+
page,
|
|
92
|
+
per_page: perPage,
|
|
93
|
+
};
|
|
94
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
95
|
+
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);
|
|
96
|
+
const _response = yield core.fetcher({
|
|
97
|
+
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`),
|
|
98
|
+
method: "GET",
|
|
99
|
+
headers: _headers,
|
|
100
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
101
|
+
queryString: core.url
|
|
102
|
+
.queryBuilder()
|
|
103
|
+
.addMany(_queryParams)
|
|
104
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
105
|
+
.build(),
|
|
106
|
+
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,
|
|
107
|
+
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,
|
|
108
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
109
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
110
|
+
logging: this._options.logging,
|
|
111
|
+
});
|
|
112
|
+
if (_response.ok) {
|
|
113
|
+
return {
|
|
114
|
+
data: _response.body,
|
|
115
|
+
rawResponse: _response.rawResponse,
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
if (_response.error.reason === "status-code") {
|
|
119
|
+
switch (_response.error.statusCode) {
|
|
120
|
+
case 401:
|
|
121
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
122
|
+
case 403:
|
|
123
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
124
|
+
case 404:
|
|
125
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
126
|
+
case 422:
|
|
127
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
128
|
+
default:
|
|
129
|
+
throw new errors.FiveOneEatError({
|
|
130
|
+
statusCode: _response.error.statusCode,
|
|
131
|
+
body: _response.error.body,
|
|
132
|
+
rawResponse: _response.rawResponse,
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/business/bulletins/{bulletin}/comments");
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Omit `parent_id` for a top-level comment. Set `parent_id` to a top-level
|
|
141
|
+
* comment's id to post a one-level reply (replies to replies are not allowed).
|
|
142
|
+
*
|
|
143
|
+
* @param {FiveOneEat.business.bulletins.StoreBulletinCommentRequest} request
|
|
144
|
+
* @param {CommentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
145
|
+
*
|
|
146
|
+
* @throws {@link FiveOneEat.UnauthorizedError}
|
|
147
|
+
* @throws {@link FiveOneEat.ForbiddenError}
|
|
148
|
+
* @throws {@link FiveOneEat.NotFoundError}
|
|
149
|
+
* @throws {@link FiveOneEat.UnprocessableEntityError}
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* await client.business.bulletins.comments.create({
|
|
153
|
+
* bulletin: "bulletin",
|
|
154
|
+
* body: "body"
|
|
155
|
+
* })
|
|
156
|
+
*/
|
|
157
|
+
create(request, requestOptions) {
|
|
158
|
+
return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
|
|
159
|
+
}
|
|
160
|
+
__create(request, requestOptions) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
163
|
+
const { bulletin } = request, _body = __rest(request, ["bulletin"]);
|
|
164
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
165
|
+
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);
|
|
166
|
+
const _response = yield core.fetcher({
|
|
167
|
+
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`),
|
|
168
|
+
method: "POST",
|
|
169
|
+
headers: _headers,
|
|
170
|
+
contentType: "application/json",
|
|
171
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
172
|
+
requestType: "json",
|
|
173
|
+
body: _body,
|
|
174
|
+
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,
|
|
175
|
+
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,
|
|
176
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
177
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
178
|
+
logging: this._options.logging,
|
|
179
|
+
});
|
|
180
|
+
if (_response.ok) {
|
|
181
|
+
return {
|
|
182
|
+
data: _response.body,
|
|
183
|
+
rawResponse: _response.rawResponse,
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
if (_response.error.reason === "status-code") {
|
|
187
|
+
switch (_response.error.statusCode) {
|
|
188
|
+
case 401:
|
|
189
|
+
throw new FiveOneEat.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
190
|
+
case 403:
|
|
191
|
+
throw new FiveOneEat.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
192
|
+
case 404:
|
|
193
|
+
throw new FiveOneEat.NotFoundError(_response.error.body, _response.rawResponse);
|
|
194
|
+
case 422:
|
|
195
|
+
throw new FiveOneEat.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
196
|
+
default:
|
|
197
|
+
throw new errors.FiveOneEatError({
|
|
198
|
+
statusCode: _response.error.statusCode,
|
|
199
|
+
body: _response.error.body,
|
|
200
|
+
rawResponse: _response.rawResponse,
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/business/bulletins/{bulletin}/comments");
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
exports.CommentsClient = CommentsClient;
|
package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.js";
|
package/dist/cjs/api/resources/business/resources/bulletins/resources/comments/client/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.CommentsClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "CommentsClient", { enumerable: true, get: function () { return Client_js_1.CommentsClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
18
|
+
__exportStar(require("./types/index.js"), exports);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CreateCommentsResponse.js"), exports);
|
|
18
|
+
__exportStar(require("./ListCommentsResponse.js"), exports);
|