bookish-api-client 0.0.1
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 +81 -0
- package/dist/apis/AnalyticsApi.d.ts +10 -0
- package/dist/apis/AnalyticsApi.js +145 -0
- package/dist/apis/AnalyticsApi.js.map +1 -0
- package/dist/apis/AuthApi.d.ts +116 -0
- package/dist/apis/AuthApi.js +2689 -0
- package/dist/apis/AuthApi.js.map +1 -0
- package/dist/apis/BooksApi.d.ts +63 -0
- package/dist/apis/BooksApi.js +1517 -0
- package/dist/apis/BooksApi.js.map +1 -0
- package/dist/apis/ContactApi.d.ts +11 -0
- package/dist/apis/ContactApi.js +145 -0
- package/dist/apis/ContactApi.js.map +1 -0
- package/dist/apis/DefaultApi.d.ts +9 -0
- package/dist/apis/DefaultApi.js +123 -0
- package/dist/apis/DefaultApi.js.map +1 -0
- package/dist/apis/DeviceApi.d.ts +11 -0
- package/dist/apis/DeviceApi.js +145 -0
- package/dist/apis/DeviceApi.js.map +1 -0
- package/dist/apis/EventsApi.d.ts +50 -0
- package/dist/apis/EventsApi.js +1118 -0
- package/dist/apis/EventsApi.js.map +1 -0
- package/dist/apis/FollowerApi.d.ts +23 -0
- package/dist/apis/FollowerApi.js +435 -0
- package/dist/apis/FollowerApi.js.map +1 -0
- package/dist/apis/FriendsApi.d.ts +10 -0
- package/dist/apis/FriendsApi.js +154 -0
- package/dist/apis/FriendsApi.js.map +1 -0
- package/dist/apis/NielsenBooksApi.d.ts +13 -0
- package/dist/apis/NielsenBooksApi.js +240 -0
- package/dist/apis/NielsenBooksApi.js.map +1 -0
- package/dist/apis/PaymentApi.d.ts +29 -0
- package/dist/apis/PaymentApi.js +547 -0
- package/dist/apis/PaymentApi.js.map +1 -0
- package/dist/apis/StorageApi.d.ts +11 -0
- package/dist/apis/StorageApi.js +138 -0
- package/dist/apis/StorageApi.js.map +1 -0
- package/dist/apis/baseapi.d.ts +18 -0
- package/dist/apis/baseapi.js +46 -0
- package/dist/apis/baseapi.js.map +1 -0
- package/dist/apis/exception.d.ts +10 -0
- package/dist/apis/exception.js +32 -0
- package/dist/apis/exception.js.map +1 -0
- package/dist/auth/auth.d.ts +35 -0
- package/dist/auth/auth.js +79 -0
- package/dist/auth/auth.js.map +1 -0
- package/dist/configuration.d.ts +26 -0
- package/dist/configuration.js +63 -0
- package/dist/configuration.js.map +1 -0
- package/dist/http/http.d.ts +71 -0
- package/dist/http/http.js +274 -0
- package/dist/http/http.js.map +1 -0
- package/dist/http/isomorphic-fetch.d.ts +6 -0
- package/dist/http/isomorphic-fetch.js +35 -0
- package/dist/http/isomorphic-fetch.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +42 -0
- package/dist/index.js.map +1 -0
- package/dist/middleware.d.ts +16 -0
- package/dist/middleware.js +18 -0
- package/dist/middleware.js.map +1 -0
- package/dist/models/AcceptFollowerPayloadDto.d.ts +20 -0
- package/dist/models/AcceptFollowerPayloadDto.js +23 -0
- package/dist/models/AcceptFollowerPayloadDto.js.map +1 -0
- package/dist/models/Activity.d.ts +29 -0
- package/dist/models/Activity.js +65 -0
- package/dist/models/Activity.js.map +1 -0
- package/dist/models/ActivityResponse.d.ts +22 -0
- package/dist/models/ActivityResponse.js +29 -0
- package/dist/models/ActivityResponse.js.map +1 -0
- package/dist/models/ActivityResponseDto.d.ts +22 -0
- package/dist/models/ActivityResponseDto.js +29 -0
- package/dist/models/ActivityResponseDto.js.map +1 -0
- package/dist/models/AddDevicePayload.d.ts +24 -0
- package/dist/models/AddDevicePayload.js +47 -0
- package/dist/models/AddDevicePayload.js.map +1 -0
- package/dist/models/Address.d.ts +25 -0
- package/dist/models/Address.js +53 -0
- package/dist/models/Address.js.map +1 -0
- package/dist/models/AnalyticsResponseDTO.d.ts +23 -0
- package/dist/models/AnalyticsResponseDTO.js +35 -0
- package/dist/models/AnalyticsResponseDTO.js.map +1 -0
- package/dist/models/AppfeepercentageResponseDto.d.ts +21 -0
- package/dist/models/AppfeepercentageResponseDto.js +29 -0
- package/dist/models/AppfeepercentageResponseDto.js.map +1 -0
- package/dist/models/AppfeepercentageUpdatePayloadDto.d.ts +21 -0
- package/dist/models/AppfeepercentageUpdatePayloadDto.js +29 -0
- package/dist/models/AppfeepercentageUpdatePayloadDto.js.map +1 -0
- package/dist/models/AttendeeDTO.d.ts +25 -0
- package/dist/models/AttendeeDTO.js +53 -0
- package/dist/models/AttendeeDTO.js.map +1 -0
- package/dist/models/AuthorResponseDto.d.ts +23 -0
- package/dist/models/AuthorResponseDto.js +41 -0
- package/dist/models/AuthorResponseDto.js.map +1 -0
- package/dist/models/BillingDetails.d.ts +24 -0
- package/dist/models/BillingDetails.js +41 -0
- package/dist/models/BillingDetails.js.map +1 -0
- package/dist/models/Book.d.ts +34 -0
- package/dist/models/Book.js +101 -0
- package/dist/models/Book.js.map +1 -0
- package/dist/models/BookByStatusDto.d.ts +24 -0
- package/dist/models/BookByStatusDto.js +47 -0
- package/dist/models/BookByStatusDto.js.map +1 -0
- package/dist/models/BookMarkEventDTO.d.ts +21 -0
- package/dist/models/BookMarkEventDTO.js +29 -0
- package/dist/models/BookMarkEventDTO.js.map +1 -0
- package/dist/models/BookMarkEventListDTO.d.ts +24 -0
- package/dist/models/BookMarkEventListDTO.js +35 -0
- package/dist/models/BookMarkEventListDTO.js.map +1 -0
- package/dist/models/BookMarkEventListResponseDto.d.ts +22 -0
- package/dist/models/BookMarkEventListResponseDto.js +29 -0
- package/dist/models/BookMarkEventListResponseDto.js.map +1 -0
- package/dist/models/BookMarkEventPayloadDto.d.ts +20 -0
- package/dist/models/BookMarkEventPayloadDto.js +23 -0
- package/dist/models/BookMarkEventPayloadDto.js.map +1 -0
- package/dist/models/BookMarkEventStatusResponseDto.d.ts +21 -0
- package/dist/models/BookMarkEventStatusResponseDto.js +29 -0
- package/dist/models/BookMarkEventStatusResponseDto.js.map +1 -0
- package/dist/models/BookPayloadDto.d.ts +26 -0
- package/dist/models/BookPayloadDto.js +59 -0
- package/dist/models/BookPayloadDto.js.map +1 -0
- package/dist/models/BookPositionDto.d.ts +20 -0
- package/dist/models/BookPositionDto.js +23 -0
- package/dist/models/BookPositionDto.js.map +1 -0
- package/dist/models/BookResponseDto.d.ts +22 -0
- package/dist/models/BookResponseDto.js +29 -0
- package/dist/models/BookResponseDto.js.map +1 -0
- package/dist/models/BookReviewCountResponseDto.d.ts +22 -0
- package/dist/models/BookReviewCountResponseDto.js +29 -0
- package/dist/models/BookReviewCountResponseDto.js.map +1 -0
- package/dist/models/Books.d.ts +22 -0
- package/dist/models/Books.js +29 -0
- package/dist/models/Books.js.map +1 -0
- package/dist/models/BooksResponseDto.d.ts +22 -0
- package/dist/models/BooksResponseDto.js +29 -0
- package/dist/models/BooksResponseDto.js.map +1 -0
- package/dist/models/BooksReviewResponseDto.d.ts +22 -0
- package/dist/models/BooksReviewResponseDto.js +29 -0
- package/dist/models/BooksReviewResponseDto.js.map +1 -0
- package/dist/models/BooksStatusResponseDto.d.ts +21 -0
- package/dist/models/BooksStatusResponseDto.js +29 -0
- package/dist/models/BooksStatusResponseDto.js.map +1 -0
- package/dist/models/BusinessConnectedAccount.d.ts +26 -0
- package/dist/models/BusinessConnectedAccount.js +35 -0
- package/dist/models/BusinessConnectedAccount.js.map +1 -0
- package/dist/models/Card.d.ts +35 -0
- package/dist/models/Card.js +95 -0
- package/dist/models/Card.js.map +1 -0
- package/dist/models/CardChecks.d.ts +22 -0
- package/dist/models/CardChecks.js +35 -0
- package/dist/models/CardChecks.js.map +1 -0
- package/dist/models/CardList.d.ts +31 -0
- package/dist/models/CardList.js +77 -0
- package/dist/models/CardList.js.map +1 -0
- package/dist/models/CardListResponseDto.d.ts +22 -0
- package/dist/models/CardListResponseDto.js +29 -0
- package/dist/models/CardListResponseDto.js.map +1 -0
- package/dist/models/CardNetwork.d.ts +21 -0
- package/dist/models/CardNetwork.js +29 -0
- package/dist/models/CardNetwork.js.map +1 -0
- package/dist/models/CardSecure.d.ts +20 -0
- package/dist/models/CardSecure.js +23 -0
- package/dist/models/CardSecure.js.map +1 -0
- package/dist/models/ChangePayloadDto.d.ts +22 -0
- package/dist/models/ChangePayloadDto.js +35 -0
- package/dist/models/ChangePayloadDto.js.map +1 -0
- package/dist/models/ContactDetails.d.ts +24 -0
- package/dist/models/ContactDetails.js +47 -0
- package/dist/models/ContactDetails.js.map +1 -0
- package/dist/models/ContactDetailsDto.d.ts +22 -0
- package/dist/models/ContactDetailsDto.js +29 -0
- package/dist/models/ContactDetailsDto.js.map +1 -0
- package/dist/models/ContactDetailsResponse.d.ts +20 -0
- package/dist/models/ContactDetailsResponse.js +23 -0
- package/dist/models/ContactDetailsResponse.js.map +1 -0
- package/dist/models/CreateBookMarkEventResponseDto.d.ts +22 -0
- package/dist/models/CreateBookMarkEventResponseDto.js +29 -0
- package/dist/models/CreateBookMarkEventResponseDto.js.map +1 -0
- package/dist/models/CreateRoleDto.d.ts +22 -0
- package/dist/models/CreateRoleDto.js +35 -0
- package/dist/models/CreateRoleDto.js.map +1 -0
- package/dist/models/CreateStaffDto.d.ts +24 -0
- package/dist/models/CreateStaffDto.js +47 -0
- package/dist/models/CreateStaffDto.js.map +1 -0
- package/dist/models/CreateStaffRoleDto.d.ts +23 -0
- package/dist/models/CreateStaffRoleDto.js +41 -0
- package/dist/models/CreateStaffRoleDto.js.map +1 -0
- package/dist/models/DeleteBookMarkEventResponseDto.d.ts +21 -0
- package/dist/models/DeleteBookMarkEventResponseDto.js +29 -0
- package/dist/models/DeleteBookMarkEventResponseDto.js.map +1 -0
- package/dist/models/DeviceAddResponse.d.ts +22 -0
- package/dist/models/DeviceAddResponse.js +29 -0
- package/dist/models/DeviceAddResponse.js.map +1 -0
- package/dist/models/DeviceEntity.d.ts +24 -0
- package/dist/models/DeviceEntity.js +47 -0
- package/dist/models/DeviceEntity.js.map +1 -0
- package/dist/models/EventCustomer.d.ts +24 -0
- package/dist/models/EventCustomer.js +47 -0
- package/dist/models/EventCustomer.js.map +1 -0
- package/dist/models/EventCustomerResponseDto.d.ts +22 -0
- package/dist/models/EventCustomerResponseDto.js +29 -0
- package/dist/models/EventCustomerResponseDto.js.map +1 -0
- package/dist/models/EventDeleteResponseDto.d.ts +21 -0
- package/dist/models/EventDeleteResponseDto.js +29 -0
- package/dist/models/EventDeleteResponseDto.js.map +1 -0
- package/dist/models/EventPayloadDto.d.ts +33 -0
- package/dist/models/EventPayloadDto.js +95 -0
- package/dist/models/EventPayloadDto.js.map +1 -0
- package/dist/models/EventResponseDto.d.ts +22 -0
- package/dist/models/EventResponseDto.js +29 -0
- package/dist/models/EventResponseDto.js.map +1 -0
- package/dist/models/Events.d.ts +38 -0
- package/dist/models/Events.js +107 -0
- package/dist/models/Events.js.map +1 -0
- package/dist/models/EventsList.d.ts +22 -0
- package/dist/models/EventsList.js +29 -0
- package/dist/models/EventsList.js.map +1 -0
- package/dist/models/EventsResponseDto.d.ts +22 -0
- package/dist/models/EventsResponseDto.js +29 -0
- package/dist/models/EventsResponseDto.js.map +1 -0
- package/dist/models/FeedbackCreateResponseDto.d.ts +21 -0
- package/dist/models/FeedbackCreateResponseDto.js +29 -0
- package/dist/models/FeedbackCreateResponseDto.js.map +1 -0
- package/dist/models/FeedbackPayloadDto.d.ts +23 -0
- package/dist/models/FeedbackPayloadDto.js +41 -0
- package/dist/models/FeedbackPayloadDto.js.map +1 -0
- package/dist/models/FileUploadDto.d.ts +20 -0
- package/dist/models/FileUploadDto.js +23 -0
- package/dist/models/FileUploadDto.js.map +1 -0
- package/dist/models/FileUrl.d.ts +20 -0
- package/dist/models/FileUrl.js +23 -0
- package/dist/models/FileUrl.js.map +1 -0
- package/dist/models/Follower.d.ts +21 -0
- package/dist/models/Follower.js +29 -0
- package/dist/models/Follower.js.map +1 -0
- package/dist/models/FollowerPayloadDto.d.ts +20 -0
- package/dist/models/FollowerPayloadDto.js +23 -0
- package/dist/models/FollowerPayloadDto.js.map +1 -0
- package/dist/models/FollowerResponseDto.d.ts +22 -0
- package/dist/models/FollowerResponseDto.js +29 -0
- package/dist/models/FollowerResponseDto.js.map +1 -0
- package/dist/models/ForgetPasswordEntityResponse.d.ts +20 -0
- package/dist/models/ForgetPasswordEntityResponse.js +23 -0
- package/dist/models/ForgetPasswordEntityResponse.js.map +1 -0
- package/dist/models/ForgetPasswordEntityResponseDto.d.ts +22 -0
- package/dist/models/ForgetPasswordEntityResponseDto.js +29 -0
- package/dist/models/ForgetPasswordEntityResponseDto.js.map +1 -0
- package/dist/models/ForgetPasswordPayloadDto.d.ts +20 -0
- package/dist/models/ForgetPasswordPayloadDto.js +23 -0
- package/dist/models/ForgetPasswordPayloadDto.js.map +1 -0
- package/dist/models/FriendRequestItem.d.ts +37 -0
- package/dist/models/FriendRequestItem.js +125 -0
- package/dist/models/FriendRequestItem.js.map +1 -0
- package/dist/models/FriendRequestItemEntityDto.d.ts +22 -0
- package/dist/models/FriendRequestItemEntityDto.js +29 -0
- package/dist/models/FriendRequestItemEntityDto.js.map +1 -0
- package/dist/models/FriendsResponse.d.ts +22 -0
- package/dist/models/FriendsResponse.js +29 -0
- package/dist/models/FriendsResponse.js.map +1 -0
- package/dist/models/FriendsResponseDto.d.ts +22 -0
- package/dist/models/FriendsResponseDto.js +29 -0
- package/dist/models/FriendsResponseDto.js.map +1 -0
- package/dist/models/GoodReadsBookPayloadDto.d.ts +21 -0
- package/dist/models/GoodReadsBookPayloadDto.js +29 -0
- package/dist/models/GoodReadsBookPayloadDto.js.map +1 -0
- package/dist/models/InterestsPayloadDto.d.ts +23 -0
- package/dist/models/InterestsPayloadDto.js +41 -0
- package/dist/models/InterestsPayloadDto.js.map +1 -0
- package/dist/models/InterestsResponseDto.d.ts +22 -0
- package/dist/models/InterestsResponseDto.js +29 -0
- package/dist/models/InterestsResponseDto.js.map +1 -0
- package/dist/models/Location.d.ts +21 -0
- package/dist/models/Location.js +29 -0
- package/dist/models/Location.js.map +1 -0
- package/dist/models/LocationPayloadDto.d.ts +20 -0
- package/dist/models/LocationPayloadDto.js +23 -0
- package/dist/models/LocationPayloadDto.js.map +1 -0
- package/dist/models/LocationPlacesResponseDto.d.ts +22 -0
- package/dist/models/LocationPlacesResponseDto.js +29 -0
- package/dist/models/LocationPlacesResponseDto.js.map +1 -0
- package/dist/models/LoggedOutPayloadDTO.d.ts +20 -0
- package/dist/models/LoggedOutPayloadDTO.js +23 -0
- package/dist/models/LoggedOutPayloadDTO.js.map +1 -0
- package/dist/models/LoggedOutResponse.d.ts +21 -0
- package/dist/models/LoggedOutResponse.js +29 -0
- package/dist/models/LoggedOutResponse.js.map +1 -0
- package/dist/models/LoginPayloadDto.d.ts +22 -0
- package/dist/models/LoginPayloadDto.js +35 -0
- package/dist/models/LoginPayloadDto.js.map +1 -0
- package/dist/models/MetaResponse.d.ts +30 -0
- package/dist/models/MetaResponse.js +53 -0
- package/dist/models/MetaResponse.js.map +1 -0
- package/dist/models/MyAllFriendsResponseDto.d.ts +22 -0
- package/dist/models/MyAllFriendsResponseDto.js +29 -0
- package/dist/models/MyAllFriendsResponseDto.js.map +1 -0
- package/dist/models/MyEventResponseDto.d.ts +22 -0
- package/dist/models/MyEventResponseDto.js +29 -0
- package/dist/models/MyEventResponseDto.js.map +1 -0
- package/dist/models/MyEvents.d.ts +22 -0
- package/dist/models/MyEvents.js +29 -0
- package/dist/models/MyEvents.js.map +1 -0
- package/dist/models/MyEventsPayloadDTO.d.ts +20 -0
- package/dist/models/MyEventsPayloadDTO.js +23 -0
- package/dist/models/MyEventsPayloadDTO.js.map +1 -0
- package/dist/models/MyEventsResponse.d.ts +24 -0
- package/dist/models/MyEventsResponse.js +41 -0
- package/dist/models/MyEventsResponse.js.map +1 -0
- package/dist/models/MyEventsResponseDto.d.ts +22 -0
- package/dist/models/MyEventsResponseDto.js +29 -0
- package/dist/models/MyEventsResponseDto.js.map +1 -0
- package/dist/models/MyFriendPayloadDto.d.ts +23 -0
- package/dist/models/MyFriendPayloadDto.js +41 -0
- package/dist/models/MyFriendPayloadDto.js.map +1 -0
- package/dist/models/MyFriendsResponse.d.ts +22 -0
- package/dist/models/MyFriendsResponse.js +29 -0
- package/dist/models/MyFriendsResponse.js.map +1 -0
- package/dist/models/ObjectSerializer.d.ts +142 -0
- package/dist/models/ObjectSerializer.js +676 -0
- package/dist/models/ObjectSerializer.js.map +1 -0
- package/dist/models/OtpEntityPayloadDto.d.ts +21 -0
- package/dist/models/OtpEntityPayloadDto.js +29 -0
- package/dist/models/OtpEntityPayloadDto.js.map +1 -0
- package/dist/models/PasswordChangeResponse.d.ts +21 -0
- package/dist/models/PasswordChangeResponse.js +23 -0
- package/dist/models/PasswordChangeResponse.js.map +1 -0
- package/dist/models/PasswordChangeResponseDto.d.ts +22 -0
- package/dist/models/PasswordChangeResponseDto.js +29 -0
- package/dist/models/PasswordChangeResponseDto.js.map +1 -0
- package/dist/models/PaymentPayloadDto.d.ts +20 -0
- package/dist/models/PaymentPayloadDto.js +23 -0
- package/dist/models/PaymentPayloadDto.js.map +1 -0
- package/dist/models/PaymentResponse.d.ts +23 -0
- package/dist/models/PaymentResponse.js +35 -0
- package/dist/models/PaymentResponse.js.map +1 -0
- package/dist/models/PaymentResponseDto.d.ts +22 -0
- package/dist/models/PaymentResponseDto.js +29 -0
- package/dist/models/PaymentResponseDto.js.map +1 -0
- package/dist/models/PermissionResponseDto.d.ts +21 -0
- package/dist/models/PermissionResponseDto.js +29 -0
- package/dist/models/PermissionResponseDto.js.map +1 -0
- package/dist/models/Places.d.ts +21 -0
- package/dist/models/Places.js +29 -0
- package/dist/models/Places.js.map +1 -0
- package/dist/models/Rating.d.ts +22 -0
- package/dist/models/Rating.js +35 -0
- package/dist/models/Rating.js.map +1 -0
- package/dist/models/ReadingGoalPayload.d.ts +21 -0
- package/dist/models/ReadingGoalPayload.js +29 -0
- package/dist/models/ReadingGoalPayload.js.map +1 -0
- package/dist/models/ReadingGoalResponse.d.ts +25 -0
- package/dist/models/ReadingGoalResponse.js +47 -0
- package/dist/models/ReadingGoalResponse.js.map +1 -0
- package/dist/models/ReadingGoalResponseDTO.d.ts +22 -0
- package/dist/models/ReadingGoalResponseDTO.js +29 -0
- package/dist/models/ReadingGoalResponseDTO.js.map +1 -0
- package/dist/models/Review.d.ts +25 -0
- package/dist/models/Review.js +47 -0
- package/dist/models/Review.js.map +1 -0
- package/dist/models/RoleResponseDto.d.ts +24 -0
- package/dist/models/RoleResponseDto.js +41 -0
- package/dist/models/RoleResponseDto.js.map +1 -0
- package/dist/models/SignupPayloadDto.d.ts +24 -0
- package/dist/models/SignupPayloadDto.js +47 -0
- package/dist/models/SignupPayloadDto.js.map +1 -0
- package/dist/models/StorageResponseDto.d.ts +22 -0
- package/dist/models/StorageResponseDto.js +29 -0
- package/dist/models/StorageResponseDto.js.map +1 -0
- package/dist/models/StoreDetailsPayloadDto.d.ts +21 -0
- package/dist/models/StoreDetailsPayloadDto.js +29 -0
- package/dist/models/StoreDetailsPayloadDto.js.map +1 -0
- package/dist/models/StripePayloadDto.d.ts +21 -0
- package/dist/models/StripePayloadDto.js +29 -0
- package/dist/models/StripePayloadDto.js.map +1 -0
- package/dist/models/StripePaymentPayloadDto.d.ts +21 -0
- package/dist/models/StripePaymentPayloadDto.js +29 -0
- package/dist/models/StripePaymentPayloadDto.js.map +1 -0
- package/dist/models/StripeResponse.d.ts +23 -0
- package/dist/models/StripeResponse.js +41 -0
- package/dist/models/StripeResponse.js.map +1 -0
- package/dist/models/StripeResponseDto.d.ts +22 -0
- package/dist/models/StripeResponseDto.js +29 -0
- package/dist/models/StripeResponseDto.js.map +1 -0
- package/dist/models/SuperAdminLoginPayloadDto.d.ts +20 -0
- package/dist/models/SuperAdminLoginPayloadDto.js +23 -0
- package/dist/models/SuperAdminLoginPayloadDto.js.map +1 -0
- package/dist/models/TopBookPayload.d.ts +21 -0
- package/dist/models/TopBookPayload.js +29 -0
- package/dist/models/TopBookPayload.js.map +1 -0
- package/dist/models/TopBooksResponse.d.ts +22 -0
- package/dist/models/TopBooksResponse.js +29 -0
- package/dist/models/TopBooksResponse.js.map +1 -0
- package/dist/models/TopBooksResponseDTO.d.ts +22 -0
- package/dist/models/TopBooksResponseDTO.js +29 -0
- package/dist/models/TopBooksResponseDTO.js.map +1 -0
- package/dist/models/UpdateRoleDto.d.ts +22 -0
- package/dist/models/UpdateRoleDto.js +35 -0
- package/dist/models/UpdateRoleDto.js.map +1 -0
- package/dist/models/UpdateStaffDto.d.ts +23 -0
- package/dist/models/UpdateStaffDto.js +41 -0
- package/dist/models/UpdateStaffDto.js.map +1 -0
- package/dist/models/UpdateStaffRoleDto.d.ts +23 -0
- package/dist/models/UpdateStaffRoleDto.js +41 -0
- package/dist/models/UpdateStaffRoleDto.js.map +1 -0
- package/dist/models/UserAchievementResponse.d.ts +23 -0
- package/dist/models/UserAchievementResponse.js +41 -0
- package/dist/models/UserAchievementResponse.js.map +1 -0
- package/dist/models/UserAchievementResponseDTO.d.ts +22 -0
- package/dist/models/UserAchievementResponseDTO.js +29 -0
- package/dist/models/UserAchievementResponseDTO.js.map +1 -0
- package/dist/models/UserBookDeleteResponseDto.d.ts +21 -0
- package/dist/models/UserBookDeleteResponseDto.js +29 -0
- package/dist/models/UserBookDeleteResponseDto.js.map +1 -0
- package/dist/models/UserBookPayloadDto.d.ts +23 -0
- package/dist/models/UserBookPayloadDto.js +41 -0
- package/dist/models/UserBookPayloadDto.js.map +1 -0
- package/dist/models/UserBookReviewResponseDto.d.ts +22 -0
- package/dist/models/UserBookReviewResponseDto.js +29 -0
- package/dist/models/UserBookReviewResponseDto.js.map +1 -0
- package/dist/models/UserBookStatusQueryDto.d.ts +25 -0
- package/dist/models/UserBookStatusQueryDto.js +53 -0
- package/dist/models/UserBookStatusQueryDto.js.map +1 -0
- package/dist/models/UserBooks.d.ts +27 -0
- package/dist/models/UserBooks.js +53 -0
- package/dist/models/UserBooks.js.map +1 -0
- package/dist/models/UserBooksResponse.d.ts +22 -0
- package/dist/models/UserBooksResponse.js +29 -0
- package/dist/models/UserBooksResponse.js.map +1 -0
- package/dist/models/UserBooksResponseDto.d.ts +22 -0
- package/dist/models/UserBooksResponseDto.js +29 -0
- package/dist/models/UserBooksResponseDto.js.map +1 -0
- package/dist/models/UserDeleteResponseDto.d.ts +21 -0
- package/dist/models/UserDeleteResponseDto.js +29 -0
- package/dist/models/UserDeleteResponseDto.js.map +1 -0
- package/dist/models/UserDetails.d.ts +43 -0
- package/dist/models/UserDetails.js +149 -0
- package/dist/models/UserDetails.js.map +1 -0
- package/dist/models/UserFollowerResponseDto.d.ts +22 -0
- package/dist/models/UserFollowerResponseDto.js +29 -0
- package/dist/models/UserFollowerResponseDto.js.map +1 -0
- package/dist/models/UserFollowers.d.ts +21 -0
- package/dist/models/UserFollowers.js +29 -0
- package/dist/models/UserFollowers.js.map +1 -0
- package/dist/models/UserResponse.d.ts +22 -0
- package/dist/models/UserResponse.js +29 -0
- package/dist/models/UserResponse.js.map +1 -0
- package/dist/models/UserResponseDto.d.ts +22 -0
- package/dist/models/UserResponseDto.js +29 -0
- package/dist/models/UserResponseDto.js.map +1 -0
- package/dist/models/UserRolePayloadDto.d.ts +20 -0
- package/dist/models/UserRolePayloadDto.js +23 -0
- package/dist/models/UserRolePayloadDto.js.map +1 -0
- package/dist/models/UserSyncDTO.d.ts +20 -0
- package/dist/models/UserSyncDTO.js +23 -0
- package/dist/models/UserSyncDTO.js.map +1 -0
- package/dist/models/UserSyncResponseDto.d.ts +21 -0
- package/dist/models/UserSyncResponseDto.js +29 -0
- package/dist/models/UserSyncResponseDto.js.map +1 -0
- package/dist/models/UserUpdatePayloadDto.d.ts +28 -0
- package/dist/models/UserUpdatePayloadDto.js +71 -0
- package/dist/models/UserUpdatePayloadDto.js.map +1 -0
- package/dist/models/VerificationLinkResponseDTO.d.ts +21 -0
- package/dist/models/VerificationLinkResponseDTO.js +29 -0
- package/dist/models/VerificationLinkResponseDTO.js.map +1 -0
- package/dist/models/all.d.ts +133 -0
- package/dist/models/all.js +150 -0
- package/dist/models/all.js.map +1 -0
- package/dist/rxjsStub.d.ts +10 -0
- package/dist/rxjsStub.js +33 -0
- package/dist/rxjsStub.js.map +1 -0
- package/dist/servers.d.ts +23 -0
- package/dist/servers.js +32 -0
- package/dist/servers.js.map +1 -0
- package/dist/types/ObjectParamAPI.d.ts +663 -0
- package/dist/types/ObjectParamAPI.js +682 -0
- package/dist/types/ObjectParamAPI.js.map +1 -0
- package/dist/types/ObservableAPI.d.ts +359 -0
- package/dist/types/ObservableAPI.js +2731 -0
- package/dist/types/ObservableAPI.js.map +1 -0
- package/dist/types/PromiseAPI.d.ts +334 -0
- package/dist/types/PromiseAPI.js +1031 -0
- package/dist/types/PromiseAPI.js.map +1 -0
- package/dist/util.d.ts +2 -0
- package/dist/util.js +28 -0
- package/dist/util.js.map +1 -0
- package/package.json +41 -0
|
@@ -0,0 +1,1118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
28
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
+
function step(op) {
|
|
31
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
33
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
+
switch (op[0]) {
|
|
36
|
+
case 0: case 1: t = op; break;
|
|
37
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
+
default:
|
|
41
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
+
if (t[2]) _.ops.pop();
|
|
46
|
+
_.trys.pop(); continue;
|
|
47
|
+
}
|
|
48
|
+
op = body.call(thisArg, _);
|
|
49
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
+
exports.EventsApiResponseProcessor = exports.EventsApiRequestFactory = void 0;
|
|
55
|
+
var baseapi_1 = require("./baseapi");
|
|
56
|
+
var http_1 = require("../http/http");
|
|
57
|
+
var ObjectSerializer_1 = require("../models/ObjectSerializer");
|
|
58
|
+
var exception_1 = require("./exception");
|
|
59
|
+
var util_1 = require("../util");
|
|
60
|
+
var EventsApiRequestFactory = (function (_super) {
|
|
61
|
+
__extends(EventsApiRequestFactory, _super);
|
|
62
|
+
function EventsApiRequestFactory() {
|
|
63
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
64
|
+
}
|
|
65
|
+
EventsApiRequestFactory.prototype.eventControllerBookMarkEvent = function (bookMarkEventPayloadDto, _options) {
|
|
66
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
67
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
68
|
+
var _a;
|
|
69
|
+
return __generator(this, function (_b) {
|
|
70
|
+
switch (_b.label) {
|
|
71
|
+
case 0:
|
|
72
|
+
_config = _options || this.configuration;
|
|
73
|
+
if (bookMarkEventPayloadDto === null || bookMarkEventPayloadDto === undefined) {
|
|
74
|
+
throw new baseapi_1.RequiredError("EventsApi", "eventControllerBookMarkEvent", "bookMarkEventPayloadDto");
|
|
75
|
+
}
|
|
76
|
+
localVarPath = '/v1/bookmark-event';
|
|
77
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
78
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
79
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
80
|
+
"application/json"
|
|
81
|
+
]);
|
|
82
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
83
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(bookMarkEventPayloadDto, "BookMarkEventPayloadDto", ""), contentType);
|
|
84
|
+
requestContext.setBody(serializedBody);
|
|
85
|
+
authMethod = _config.authMethods["bearer"];
|
|
86
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
87
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
88
|
+
case 1:
|
|
89
|
+
_b.sent();
|
|
90
|
+
_b.label = 2;
|
|
91
|
+
case 2:
|
|
92
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
93
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
94
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
95
|
+
case 3:
|
|
96
|
+
_b.sent();
|
|
97
|
+
_b.label = 4;
|
|
98
|
+
case 4: return [2, requestContext];
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
};
|
|
103
|
+
EventsApiRequestFactory.prototype.eventControllerBookMarkEventList = function (page, limit, userId, _options) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
105
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
106
|
+
var _a;
|
|
107
|
+
return __generator(this, function (_b) {
|
|
108
|
+
switch (_b.label) {
|
|
109
|
+
case 0:
|
|
110
|
+
_config = _options || this.configuration;
|
|
111
|
+
if (page === null || page === undefined) {
|
|
112
|
+
throw new baseapi_1.RequiredError("EventsApi", "eventControllerBookMarkEventList", "page");
|
|
113
|
+
}
|
|
114
|
+
localVarPath = '/v1/bookmark-event-list';
|
|
115
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
116
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
117
|
+
if (page !== undefined) {
|
|
118
|
+
requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", ""));
|
|
119
|
+
}
|
|
120
|
+
if (limit !== undefined) {
|
|
121
|
+
requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
|
|
122
|
+
}
|
|
123
|
+
if (userId !== undefined) {
|
|
124
|
+
requestContext.setQueryParam("userId", ObjectSerializer_1.ObjectSerializer.serialize(userId, "string", ""));
|
|
125
|
+
}
|
|
126
|
+
authMethod = _config.authMethods["bearer"];
|
|
127
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
128
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
129
|
+
case 1:
|
|
130
|
+
_b.sent();
|
|
131
|
+
_b.label = 2;
|
|
132
|
+
case 2:
|
|
133
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
134
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
135
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
136
|
+
case 3:
|
|
137
|
+
_b.sent();
|
|
138
|
+
_b.label = 4;
|
|
139
|
+
case 4: return [2, requestContext];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
};
|
|
144
|
+
EventsApiRequestFactory.prototype.eventControllerCreateEvent = function (eventPayloadDto, _options) {
|
|
145
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
146
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
147
|
+
var _a;
|
|
148
|
+
return __generator(this, function (_b) {
|
|
149
|
+
switch (_b.label) {
|
|
150
|
+
case 0:
|
|
151
|
+
_config = _options || this.configuration;
|
|
152
|
+
if (eventPayloadDto === null || eventPayloadDto === undefined) {
|
|
153
|
+
throw new baseapi_1.RequiredError("EventsApi", "eventControllerCreateEvent", "eventPayloadDto");
|
|
154
|
+
}
|
|
155
|
+
localVarPath = '/v1/event';
|
|
156
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
157
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
158
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
159
|
+
"application/json"
|
|
160
|
+
]);
|
|
161
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
162
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(eventPayloadDto, "EventPayloadDto", ""), contentType);
|
|
163
|
+
requestContext.setBody(serializedBody);
|
|
164
|
+
authMethod = _config.authMethods["bearer"];
|
|
165
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
166
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
167
|
+
case 1:
|
|
168
|
+
_b.sent();
|
|
169
|
+
_b.label = 2;
|
|
170
|
+
case 2:
|
|
171
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
172
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
173
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
174
|
+
case 3:
|
|
175
|
+
_b.sent();
|
|
176
|
+
_b.label = 4;
|
|
177
|
+
case 4: return [2, requestContext];
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
};
|
|
182
|
+
EventsApiRequestFactory.prototype.eventControllerCreateMyEvents = function (myEventsPayloadDTO, _options) {
|
|
183
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
184
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
185
|
+
var _a;
|
|
186
|
+
return __generator(this, function (_b) {
|
|
187
|
+
switch (_b.label) {
|
|
188
|
+
case 0:
|
|
189
|
+
_config = _options || this.configuration;
|
|
190
|
+
if (myEventsPayloadDTO === null || myEventsPayloadDTO === undefined) {
|
|
191
|
+
throw new baseapi_1.RequiredError("EventsApi", "eventControllerCreateMyEvents", "myEventsPayloadDTO");
|
|
192
|
+
}
|
|
193
|
+
localVarPath = '/v1/free-event-book';
|
|
194
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
195
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
196
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
197
|
+
"application/json"
|
|
198
|
+
]);
|
|
199
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
200
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(myEventsPayloadDTO, "MyEventsPayloadDTO", ""), contentType);
|
|
201
|
+
requestContext.setBody(serializedBody);
|
|
202
|
+
authMethod = _config.authMethods["bearer"];
|
|
203
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
204
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
205
|
+
case 1:
|
|
206
|
+
_b.sent();
|
|
207
|
+
_b.label = 2;
|
|
208
|
+
case 2:
|
|
209
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
210
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
211
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
212
|
+
case 3:
|
|
213
|
+
_b.sent();
|
|
214
|
+
_b.label = 4;
|
|
215
|
+
case 4: return [2, requestContext];
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
};
|
|
220
|
+
EventsApiRequestFactory.prototype.eventControllerDeleteBookMarkEvent = function (eventId, _options) {
|
|
221
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
222
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
223
|
+
var _a;
|
|
224
|
+
return __generator(this, function (_b) {
|
|
225
|
+
switch (_b.label) {
|
|
226
|
+
case 0:
|
|
227
|
+
_config = _options || this.configuration;
|
|
228
|
+
if (eventId === null || eventId === undefined) {
|
|
229
|
+
throw new baseapi_1.RequiredError("EventsApi", "eventControllerDeleteBookMarkEvent", "eventId");
|
|
230
|
+
}
|
|
231
|
+
localVarPath = '/v1/bookmark-event/{eventId}'
|
|
232
|
+
.replace('{' + 'eventId' + '}', encodeURIComponent(String(eventId)));
|
|
233
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
234
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
235
|
+
authMethod = _config.authMethods["bearer"];
|
|
236
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
237
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
238
|
+
case 1:
|
|
239
|
+
_b.sent();
|
|
240
|
+
_b.label = 2;
|
|
241
|
+
case 2:
|
|
242
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
243
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
244
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
245
|
+
case 3:
|
|
246
|
+
_b.sent();
|
|
247
|
+
_b.label = 4;
|
|
248
|
+
case 4: return [2, requestContext];
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
};
|
|
253
|
+
EventsApiRequestFactory.prototype.eventControllerDeleteEvent = function (id, withBookedEvent, _options) {
|
|
254
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
255
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
256
|
+
var _a;
|
|
257
|
+
return __generator(this, function (_b) {
|
|
258
|
+
switch (_b.label) {
|
|
259
|
+
case 0:
|
|
260
|
+
_config = _options || this.configuration;
|
|
261
|
+
if (id === null || id === undefined) {
|
|
262
|
+
throw new baseapi_1.RequiredError("EventsApi", "eventControllerDeleteEvent", "id");
|
|
263
|
+
}
|
|
264
|
+
localVarPath = '/v1/event';
|
|
265
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
|
|
266
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
267
|
+
if (id !== undefined) {
|
|
268
|
+
requestContext.setQueryParam("id", ObjectSerializer_1.ObjectSerializer.serialize(id, "string", ""));
|
|
269
|
+
}
|
|
270
|
+
if (withBookedEvent !== undefined) {
|
|
271
|
+
requestContext.setQueryParam("withBookedEvent", ObjectSerializer_1.ObjectSerializer.serialize(withBookedEvent, "boolean", ""));
|
|
272
|
+
}
|
|
273
|
+
authMethod = _config.authMethods["bearer"];
|
|
274
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
275
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
276
|
+
case 1:
|
|
277
|
+
_b.sent();
|
|
278
|
+
_b.label = 2;
|
|
279
|
+
case 2:
|
|
280
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
281
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
282
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
283
|
+
case 3:
|
|
284
|
+
_b.sent();
|
|
285
|
+
_b.label = 4;
|
|
286
|
+
case 4: return [2, requestContext];
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
});
|
|
290
|
+
};
|
|
291
|
+
EventsApiRequestFactory.prototype.eventControllerFindCustomerOfEvents = function (userId, _options) {
|
|
292
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
293
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
294
|
+
var _a;
|
|
295
|
+
return __generator(this, function (_b) {
|
|
296
|
+
switch (_b.label) {
|
|
297
|
+
case 0:
|
|
298
|
+
_config = _options || this.configuration;
|
|
299
|
+
if (userId === null || userId === undefined) {
|
|
300
|
+
throw new baseapi_1.RequiredError("EventsApi", "eventControllerFindCustomerOfEvents", "userId");
|
|
301
|
+
}
|
|
302
|
+
localVarPath = '/v1/event-customers';
|
|
303
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
304
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
305
|
+
if (userId !== undefined) {
|
|
306
|
+
requestContext.setQueryParam("userId", ObjectSerializer_1.ObjectSerializer.serialize(userId, "string", ""));
|
|
307
|
+
}
|
|
308
|
+
authMethod = _config.authMethods["bearer"];
|
|
309
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
310
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
311
|
+
case 1:
|
|
312
|
+
_b.sent();
|
|
313
|
+
_b.label = 2;
|
|
314
|
+
case 2:
|
|
315
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
316
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
317
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
318
|
+
case 3:
|
|
319
|
+
_b.sent();
|
|
320
|
+
_b.label = 4;
|
|
321
|
+
case 4: return [2, requestContext];
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
});
|
|
325
|
+
};
|
|
326
|
+
EventsApiRequestFactory.prototype.eventControllerFindEventById = function (id, withBookedEvent, _options) {
|
|
327
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
328
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
329
|
+
var _a;
|
|
330
|
+
return __generator(this, function (_b) {
|
|
331
|
+
switch (_b.label) {
|
|
332
|
+
case 0:
|
|
333
|
+
_config = _options || this.configuration;
|
|
334
|
+
if (id === null || id === undefined) {
|
|
335
|
+
throw new baseapi_1.RequiredError("EventsApi", "eventControllerFindEventById", "id");
|
|
336
|
+
}
|
|
337
|
+
localVarPath = '/v1/event';
|
|
338
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
339
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
340
|
+
if (id !== undefined) {
|
|
341
|
+
requestContext.setQueryParam("id", ObjectSerializer_1.ObjectSerializer.serialize(id, "string", ""));
|
|
342
|
+
}
|
|
343
|
+
if (withBookedEvent !== undefined) {
|
|
344
|
+
requestContext.setQueryParam("withBookedEvent", ObjectSerializer_1.ObjectSerializer.serialize(withBookedEvent, "boolean", ""));
|
|
345
|
+
}
|
|
346
|
+
authMethod = _config.authMethods["bearer"];
|
|
347
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
348
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
349
|
+
case 1:
|
|
350
|
+
_b.sent();
|
|
351
|
+
_b.label = 2;
|
|
352
|
+
case 2:
|
|
353
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
354
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
355
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
356
|
+
case 3:
|
|
357
|
+
_b.sent();
|
|
358
|
+
_b.label = 4;
|
|
359
|
+
case 4: return [2, requestContext];
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
});
|
|
363
|
+
};
|
|
364
|
+
EventsApiRequestFactory.prototype.eventControllerFindEvents = function (page, limit, longitude, latitude, userId, search, _options) {
|
|
365
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
366
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
367
|
+
var _a;
|
|
368
|
+
return __generator(this, function (_b) {
|
|
369
|
+
switch (_b.label) {
|
|
370
|
+
case 0:
|
|
371
|
+
_config = _options || this.configuration;
|
|
372
|
+
if (page === null || page === undefined) {
|
|
373
|
+
throw new baseapi_1.RequiredError("EventsApi", "eventControllerFindEvents", "page");
|
|
374
|
+
}
|
|
375
|
+
localVarPath = '/v1/events';
|
|
376
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
377
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
378
|
+
if (page !== undefined) {
|
|
379
|
+
requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", ""));
|
|
380
|
+
}
|
|
381
|
+
if (limit !== undefined) {
|
|
382
|
+
requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
|
|
383
|
+
}
|
|
384
|
+
if (longitude !== undefined) {
|
|
385
|
+
requestContext.setQueryParam("longitude", ObjectSerializer_1.ObjectSerializer.serialize(longitude, "number", ""));
|
|
386
|
+
}
|
|
387
|
+
if (latitude !== undefined) {
|
|
388
|
+
requestContext.setQueryParam("latitude", ObjectSerializer_1.ObjectSerializer.serialize(latitude, "number", ""));
|
|
389
|
+
}
|
|
390
|
+
if (userId !== undefined) {
|
|
391
|
+
requestContext.setQueryParam("userId", ObjectSerializer_1.ObjectSerializer.serialize(userId, "string", ""));
|
|
392
|
+
}
|
|
393
|
+
if (search !== undefined) {
|
|
394
|
+
requestContext.setQueryParam("search", ObjectSerializer_1.ObjectSerializer.serialize(search, "string", ""));
|
|
395
|
+
}
|
|
396
|
+
authMethod = _config.authMethods["bearer"];
|
|
397
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
398
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
399
|
+
case 1:
|
|
400
|
+
_b.sent();
|
|
401
|
+
_b.label = 2;
|
|
402
|
+
case 2:
|
|
403
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
404
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
405
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
406
|
+
case 3:
|
|
407
|
+
_b.sent();
|
|
408
|
+
_b.label = 4;
|
|
409
|
+
case 4: return [2, requestContext];
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
});
|
|
413
|
+
};
|
|
414
|
+
EventsApiRequestFactory.prototype.eventControllerFindMyEvent = function (eventId, _options) {
|
|
415
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
416
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
417
|
+
var _a;
|
|
418
|
+
return __generator(this, function (_b) {
|
|
419
|
+
switch (_b.label) {
|
|
420
|
+
case 0:
|
|
421
|
+
_config = _options || this.configuration;
|
|
422
|
+
if (eventId === null || eventId === undefined) {
|
|
423
|
+
throw new baseapi_1.RequiredError("EventsApi", "eventControllerFindMyEvent", "eventId");
|
|
424
|
+
}
|
|
425
|
+
localVarPath = '/v1/my-event';
|
|
426
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
427
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
428
|
+
if (eventId !== undefined) {
|
|
429
|
+
requestContext.setQueryParam("eventId", ObjectSerializer_1.ObjectSerializer.serialize(eventId, "string", ""));
|
|
430
|
+
}
|
|
431
|
+
authMethod = _config.authMethods["bearer"];
|
|
432
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
433
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
434
|
+
case 1:
|
|
435
|
+
_b.sent();
|
|
436
|
+
_b.label = 2;
|
|
437
|
+
case 2:
|
|
438
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
439
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
440
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
441
|
+
case 3:
|
|
442
|
+
_b.sent();
|
|
443
|
+
_b.label = 4;
|
|
444
|
+
case 4: return [2, requestContext];
|
|
445
|
+
}
|
|
446
|
+
});
|
|
447
|
+
});
|
|
448
|
+
};
|
|
449
|
+
EventsApiRequestFactory.prototype.eventControllerFindMyUpcomingEvents = function (page, limit, type, _options) {
|
|
450
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
451
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
452
|
+
var _a;
|
|
453
|
+
return __generator(this, function (_b) {
|
|
454
|
+
switch (_b.label) {
|
|
455
|
+
case 0:
|
|
456
|
+
_config = _options || this.configuration;
|
|
457
|
+
if (page === null || page === undefined) {
|
|
458
|
+
throw new baseapi_1.RequiredError("EventsApi", "eventControllerFindMyUpcomingEvents", "page");
|
|
459
|
+
}
|
|
460
|
+
if (limit === null || limit === undefined) {
|
|
461
|
+
throw new baseapi_1.RequiredError("EventsApi", "eventControllerFindMyUpcomingEvents", "limit");
|
|
462
|
+
}
|
|
463
|
+
if (type === null || type === undefined) {
|
|
464
|
+
throw new baseapi_1.RequiredError("EventsApi", "eventControllerFindMyUpcomingEvents", "type");
|
|
465
|
+
}
|
|
466
|
+
localVarPath = '/v1/upcoming/events';
|
|
467
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
468
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
469
|
+
if (page !== undefined) {
|
|
470
|
+
requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", ""));
|
|
471
|
+
}
|
|
472
|
+
if (limit !== undefined) {
|
|
473
|
+
requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
|
|
474
|
+
}
|
|
475
|
+
if (type !== undefined) {
|
|
476
|
+
requestContext.setQueryParam("type", ObjectSerializer_1.ObjectSerializer.serialize(type, "'UPCOMING' | 'VISITED'", ""));
|
|
477
|
+
}
|
|
478
|
+
authMethod = _config.authMethods["bearer"];
|
|
479
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
480
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
481
|
+
case 1:
|
|
482
|
+
_b.sent();
|
|
483
|
+
_b.label = 2;
|
|
484
|
+
case 2:
|
|
485
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
486
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
487
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
488
|
+
case 3:
|
|
489
|
+
_b.sent();
|
|
490
|
+
_b.label = 4;
|
|
491
|
+
case 4: return [2, requestContext];
|
|
492
|
+
}
|
|
493
|
+
});
|
|
494
|
+
});
|
|
495
|
+
};
|
|
496
|
+
EventsApiRequestFactory.prototype.eventControllerFindSearchPlaces = function (locationPayloadDto, _options) {
|
|
497
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
498
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
499
|
+
var _a;
|
|
500
|
+
return __generator(this, function (_b) {
|
|
501
|
+
switch (_b.label) {
|
|
502
|
+
case 0:
|
|
503
|
+
_config = _options || this.configuration;
|
|
504
|
+
if (locationPayloadDto === null || locationPayloadDto === undefined) {
|
|
505
|
+
throw new baseapi_1.RequiredError("EventsApi", "eventControllerFindSearchPlaces", "locationPayloadDto");
|
|
506
|
+
}
|
|
507
|
+
localVarPath = '/v1/search-places';
|
|
508
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
|
|
509
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
510
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
511
|
+
"application/json"
|
|
512
|
+
]);
|
|
513
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
514
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(locationPayloadDto, "LocationPayloadDto", ""), contentType);
|
|
515
|
+
requestContext.setBody(serializedBody);
|
|
516
|
+
authMethod = _config.authMethods["bearer"];
|
|
517
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
518
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
519
|
+
case 1:
|
|
520
|
+
_b.sent();
|
|
521
|
+
_b.label = 2;
|
|
522
|
+
case 2:
|
|
523
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
524
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
525
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
526
|
+
case 3:
|
|
527
|
+
_b.sent();
|
|
528
|
+
_b.label = 4;
|
|
529
|
+
case 4: return [2, requestContext];
|
|
530
|
+
}
|
|
531
|
+
});
|
|
532
|
+
});
|
|
533
|
+
};
|
|
534
|
+
EventsApiRequestFactory.prototype.eventControllerGetBookMarkEventStatus = function (eventId, _options) {
|
|
535
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
536
|
+
var _config, localVarPath, requestContext, authMethod, defaultAuth;
|
|
537
|
+
var _a;
|
|
538
|
+
return __generator(this, function (_b) {
|
|
539
|
+
switch (_b.label) {
|
|
540
|
+
case 0:
|
|
541
|
+
_config = _options || this.configuration;
|
|
542
|
+
if (eventId === null || eventId === undefined) {
|
|
543
|
+
throw new baseapi_1.RequiredError("EventsApi", "eventControllerGetBookMarkEventStatus", "eventId");
|
|
544
|
+
}
|
|
545
|
+
localVarPath = '/v1/bookmark-event-status/{eventId}'
|
|
546
|
+
.replace('{' + 'eventId' + '}', encodeURIComponent(String(eventId)));
|
|
547
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
|
|
548
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
549
|
+
authMethod = _config.authMethods["bearer"];
|
|
550
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
551
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
552
|
+
case 1:
|
|
553
|
+
_b.sent();
|
|
554
|
+
_b.label = 2;
|
|
555
|
+
case 2:
|
|
556
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
557
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
558
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
559
|
+
case 3:
|
|
560
|
+
_b.sent();
|
|
561
|
+
_b.label = 4;
|
|
562
|
+
case 4: return [2, requestContext];
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
});
|
|
566
|
+
};
|
|
567
|
+
EventsApiRequestFactory.prototype.eventControllerUpdateEvent = function (eventPayloadDto, _options) {
|
|
568
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
569
|
+
var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
|
|
570
|
+
var _a;
|
|
571
|
+
return __generator(this, function (_b) {
|
|
572
|
+
switch (_b.label) {
|
|
573
|
+
case 0:
|
|
574
|
+
_config = _options || this.configuration;
|
|
575
|
+
if (eventPayloadDto === null || eventPayloadDto === undefined) {
|
|
576
|
+
throw new baseapi_1.RequiredError("EventsApi", "eventControllerUpdateEvent", "eventPayloadDto");
|
|
577
|
+
}
|
|
578
|
+
localVarPath = '/v1/event';
|
|
579
|
+
requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
|
|
580
|
+
requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
|
|
581
|
+
contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
|
|
582
|
+
"application/json"
|
|
583
|
+
]);
|
|
584
|
+
requestContext.setHeaderParam("Content-Type", contentType);
|
|
585
|
+
serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(eventPayloadDto, "EventPayloadDto", ""), contentType);
|
|
586
|
+
requestContext.setBody(serializedBody);
|
|
587
|
+
authMethod = _config.authMethods["bearer"];
|
|
588
|
+
if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
|
|
589
|
+
return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
|
|
590
|
+
case 1:
|
|
591
|
+
_b.sent();
|
|
592
|
+
_b.label = 2;
|
|
593
|
+
case 2:
|
|
594
|
+
defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
|
|
595
|
+
if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
|
|
596
|
+
return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
|
|
597
|
+
case 3:
|
|
598
|
+
_b.sent();
|
|
599
|
+
_b.label = 4;
|
|
600
|
+
case 4: return [2, requestContext];
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
});
|
|
604
|
+
};
|
|
605
|
+
return EventsApiRequestFactory;
|
|
606
|
+
}(baseapi_1.BaseAPIRequestFactory));
|
|
607
|
+
exports.EventsApiRequestFactory = EventsApiRequestFactory;
|
|
608
|
+
var EventsApiResponseProcessor = (function () {
|
|
609
|
+
function EventsApiResponseProcessor() {
|
|
610
|
+
}
|
|
611
|
+
EventsApiResponseProcessor.prototype.eventControllerBookMarkEventWithHttpInfo = function (response) {
|
|
612
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
613
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
614
|
+
return __generator(this, function (_l) {
|
|
615
|
+
switch (_l.label) {
|
|
616
|
+
case 0:
|
|
617
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
618
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
619
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
620
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
621
|
+
return [4, response.body.text()];
|
|
622
|
+
case 1:
|
|
623
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
624
|
+
"CreateBookMarkEventResponseDto", ""]);
|
|
625
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
626
|
+
case 2:
|
|
627
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
628
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
629
|
+
}
|
|
630
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
631
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
632
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
633
|
+
return [4, response.body.text()];
|
|
634
|
+
case 3:
|
|
635
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
636
|
+
"CreateBookMarkEventResponseDto", ""]);
|
|
637
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
638
|
+
case 4:
|
|
639
|
+
_j = exception_1.ApiException.bind;
|
|
640
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
641
|
+
return [4, response.getBodyAsAny()];
|
|
642
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
643
|
+
}
|
|
644
|
+
});
|
|
645
|
+
});
|
|
646
|
+
};
|
|
647
|
+
EventsApiResponseProcessor.prototype.eventControllerBookMarkEventListWithHttpInfo = function (response) {
|
|
648
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
649
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
650
|
+
return __generator(this, function (_l) {
|
|
651
|
+
switch (_l.label) {
|
|
652
|
+
case 0:
|
|
653
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
654
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
655
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
656
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
657
|
+
return [4, response.body.text()];
|
|
658
|
+
case 1:
|
|
659
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
660
|
+
"BookMarkEventListResponseDto", ""]);
|
|
661
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
662
|
+
case 2:
|
|
663
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
664
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
665
|
+
}
|
|
666
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
667
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
668
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
669
|
+
return [4, response.body.text()];
|
|
670
|
+
case 3:
|
|
671
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
672
|
+
"BookMarkEventListResponseDto", ""]);
|
|
673
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
674
|
+
case 4:
|
|
675
|
+
_j = exception_1.ApiException.bind;
|
|
676
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
677
|
+
return [4, response.getBodyAsAny()];
|
|
678
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
679
|
+
}
|
|
680
|
+
});
|
|
681
|
+
});
|
|
682
|
+
};
|
|
683
|
+
EventsApiResponseProcessor.prototype.eventControllerCreateEventWithHttpInfo = function (response) {
|
|
684
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
685
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
686
|
+
return __generator(this, function (_l) {
|
|
687
|
+
switch (_l.label) {
|
|
688
|
+
case 0:
|
|
689
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
690
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
691
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
692
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
693
|
+
return [4, response.body.text()];
|
|
694
|
+
case 1:
|
|
695
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
696
|
+
"EventResponseDto", ""]);
|
|
697
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
698
|
+
case 2:
|
|
699
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
700
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
701
|
+
}
|
|
702
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
703
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
704
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
705
|
+
return [4, response.body.text()];
|
|
706
|
+
case 3:
|
|
707
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
708
|
+
"EventResponseDto", ""]);
|
|
709
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
710
|
+
case 4:
|
|
711
|
+
_j = exception_1.ApiException.bind;
|
|
712
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
713
|
+
return [4, response.getBodyAsAny()];
|
|
714
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
715
|
+
}
|
|
716
|
+
});
|
|
717
|
+
});
|
|
718
|
+
};
|
|
719
|
+
EventsApiResponseProcessor.prototype.eventControllerCreateMyEventsWithHttpInfo = function (response) {
|
|
720
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
721
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
722
|
+
return __generator(this, function (_l) {
|
|
723
|
+
switch (_l.label) {
|
|
724
|
+
case 0:
|
|
725
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
726
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
727
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
728
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
729
|
+
return [4, response.body.text()];
|
|
730
|
+
case 1:
|
|
731
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
732
|
+
"MyEventResponseDto", ""]);
|
|
733
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
734
|
+
case 2:
|
|
735
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
736
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
737
|
+
}
|
|
738
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
739
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
740
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
741
|
+
return [4, response.body.text()];
|
|
742
|
+
case 3:
|
|
743
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
744
|
+
"MyEventResponseDto", ""]);
|
|
745
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
746
|
+
case 4:
|
|
747
|
+
_j = exception_1.ApiException.bind;
|
|
748
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
749
|
+
return [4, response.getBodyAsAny()];
|
|
750
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
751
|
+
}
|
|
752
|
+
});
|
|
753
|
+
});
|
|
754
|
+
};
|
|
755
|
+
EventsApiResponseProcessor.prototype.eventControllerDeleteBookMarkEventWithHttpInfo = function (response) {
|
|
756
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
757
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
758
|
+
return __generator(this, function (_l) {
|
|
759
|
+
switch (_l.label) {
|
|
760
|
+
case 0:
|
|
761
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
762
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
763
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
764
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
765
|
+
return [4, response.body.text()];
|
|
766
|
+
case 1:
|
|
767
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
768
|
+
"DeleteBookMarkEventResponseDto", ""]);
|
|
769
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
770
|
+
case 2:
|
|
771
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
772
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
773
|
+
}
|
|
774
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
775
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
776
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
777
|
+
return [4, response.body.text()];
|
|
778
|
+
case 3:
|
|
779
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
780
|
+
"DeleteBookMarkEventResponseDto", ""]);
|
|
781
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
782
|
+
case 4:
|
|
783
|
+
_j = exception_1.ApiException.bind;
|
|
784
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
785
|
+
return [4, response.getBodyAsAny()];
|
|
786
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
787
|
+
}
|
|
788
|
+
});
|
|
789
|
+
});
|
|
790
|
+
};
|
|
791
|
+
EventsApiResponseProcessor.prototype.eventControllerDeleteEventWithHttpInfo = function (response) {
|
|
792
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
793
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
794
|
+
return __generator(this, function (_l) {
|
|
795
|
+
switch (_l.label) {
|
|
796
|
+
case 0:
|
|
797
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
798
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
799
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
800
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
801
|
+
return [4, response.body.text()];
|
|
802
|
+
case 1:
|
|
803
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
804
|
+
"EventDeleteResponseDto", ""]);
|
|
805
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
806
|
+
case 2:
|
|
807
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
808
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
809
|
+
}
|
|
810
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
811
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
812
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
813
|
+
return [4, response.body.text()];
|
|
814
|
+
case 3:
|
|
815
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
816
|
+
"EventDeleteResponseDto", ""]);
|
|
817
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
818
|
+
case 4:
|
|
819
|
+
_j = exception_1.ApiException.bind;
|
|
820
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
821
|
+
return [4, response.getBodyAsAny()];
|
|
822
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
823
|
+
}
|
|
824
|
+
});
|
|
825
|
+
});
|
|
826
|
+
};
|
|
827
|
+
EventsApiResponseProcessor.prototype.eventControllerFindCustomerOfEventsWithHttpInfo = function (response) {
|
|
828
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
829
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
830
|
+
return __generator(this, function (_l) {
|
|
831
|
+
switch (_l.label) {
|
|
832
|
+
case 0:
|
|
833
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
834
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
835
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
836
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
837
|
+
return [4, response.body.text()];
|
|
838
|
+
case 1:
|
|
839
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
840
|
+
"EventCustomerResponseDto", ""]);
|
|
841
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
842
|
+
case 2:
|
|
843
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
844
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
845
|
+
}
|
|
846
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
847
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
848
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
849
|
+
return [4, response.body.text()];
|
|
850
|
+
case 3:
|
|
851
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
852
|
+
"EventCustomerResponseDto", ""]);
|
|
853
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
854
|
+
case 4:
|
|
855
|
+
_j = exception_1.ApiException.bind;
|
|
856
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
857
|
+
return [4, response.getBodyAsAny()];
|
|
858
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
859
|
+
}
|
|
860
|
+
});
|
|
861
|
+
});
|
|
862
|
+
};
|
|
863
|
+
EventsApiResponseProcessor.prototype.eventControllerFindEventByIdWithHttpInfo = function (response) {
|
|
864
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
865
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
866
|
+
return __generator(this, function (_l) {
|
|
867
|
+
switch (_l.label) {
|
|
868
|
+
case 0:
|
|
869
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
870
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
871
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
872
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
873
|
+
return [4, response.body.text()];
|
|
874
|
+
case 1:
|
|
875
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
876
|
+
"EventResponseDto", ""]);
|
|
877
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
878
|
+
case 2:
|
|
879
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
880
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
881
|
+
}
|
|
882
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
883
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
884
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
885
|
+
return [4, response.body.text()];
|
|
886
|
+
case 3:
|
|
887
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
888
|
+
"EventResponseDto", ""]);
|
|
889
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
890
|
+
case 4:
|
|
891
|
+
_j = exception_1.ApiException.bind;
|
|
892
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
893
|
+
return [4, response.getBodyAsAny()];
|
|
894
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
895
|
+
}
|
|
896
|
+
});
|
|
897
|
+
});
|
|
898
|
+
};
|
|
899
|
+
EventsApiResponseProcessor.prototype.eventControllerFindEventsWithHttpInfo = function (response) {
|
|
900
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
901
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
902
|
+
return __generator(this, function (_l) {
|
|
903
|
+
switch (_l.label) {
|
|
904
|
+
case 0:
|
|
905
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
906
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
907
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
908
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
909
|
+
return [4, response.body.text()];
|
|
910
|
+
case 1:
|
|
911
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
912
|
+
"EventsResponseDto", ""]);
|
|
913
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
914
|
+
case 2:
|
|
915
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
916
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
917
|
+
}
|
|
918
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
919
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
920
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
921
|
+
return [4, response.body.text()];
|
|
922
|
+
case 3:
|
|
923
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
924
|
+
"EventsResponseDto", ""]);
|
|
925
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
926
|
+
case 4:
|
|
927
|
+
_j = exception_1.ApiException.bind;
|
|
928
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
929
|
+
return [4, response.getBodyAsAny()];
|
|
930
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
931
|
+
}
|
|
932
|
+
});
|
|
933
|
+
});
|
|
934
|
+
};
|
|
935
|
+
EventsApiResponseProcessor.prototype.eventControllerFindMyEventWithHttpInfo = function (response) {
|
|
936
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
937
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
938
|
+
return __generator(this, function (_l) {
|
|
939
|
+
switch (_l.label) {
|
|
940
|
+
case 0:
|
|
941
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
942
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
943
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
944
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
945
|
+
return [4, response.body.text()];
|
|
946
|
+
case 1:
|
|
947
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
948
|
+
"MyEventResponseDto", ""]);
|
|
949
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
950
|
+
case 2:
|
|
951
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
952
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
953
|
+
}
|
|
954
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
955
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
956
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
957
|
+
return [4, response.body.text()];
|
|
958
|
+
case 3:
|
|
959
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
960
|
+
"MyEventResponseDto", ""]);
|
|
961
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
962
|
+
case 4:
|
|
963
|
+
_j = exception_1.ApiException.bind;
|
|
964
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
965
|
+
return [4, response.getBodyAsAny()];
|
|
966
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
967
|
+
}
|
|
968
|
+
});
|
|
969
|
+
});
|
|
970
|
+
};
|
|
971
|
+
EventsApiResponseProcessor.prototype.eventControllerFindMyUpcomingEventsWithHttpInfo = function (response) {
|
|
972
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
973
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
974
|
+
return __generator(this, function (_l) {
|
|
975
|
+
switch (_l.label) {
|
|
976
|
+
case 0:
|
|
977
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
978
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
979
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
980
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
981
|
+
return [4, response.body.text()];
|
|
982
|
+
case 1:
|
|
983
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
984
|
+
"MyEventsResponseDto", ""]);
|
|
985
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
986
|
+
case 2:
|
|
987
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
988
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
989
|
+
}
|
|
990
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
991
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
992
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
993
|
+
return [4, response.body.text()];
|
|
994
|
+
case 3:
|
|
995
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
996
|
+
"MyEventsResponseDto", ""]);
|
|
997
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
998
|
+
case 4:
|
|
999
|
+
_j = exception_1.ApiException.bind;
|
|
1000
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1001
|
+
return [4, response.getBodyAsAny()];
|
|
1002
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
1003
|
+
}
|
|
1004
|
+
});
|
|
1005
|
+
});
|
|
1006
|
+
};
|
|
1007
|
+
EventsApiResponseProcessor.prototype.eventControllerFindSearchPlacesWithHttpInfo = function (response) {
|
|
1008
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1009
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1010
|
+
return __generator(this, function (_l) {
|
|
1011
|
+
switch (_l.label) {
|
|
1012
|
+
case 0:
|
|
1013
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1014
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1015
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1016
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1017
|
+
return [4, response.body.text()];
|
|
1018
|
+
case 1:
|
|
1019
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1020
|
+
"LocationPlacesResponseDto", ""]);
|
|
1021
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1022
|
+
case 2:
|
|
1023
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
1024
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
1025
|
+
}
|
|
1026
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
1027
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1028
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1029
|
+
return [4, response.body.text()];
|
|
1030
|
+
case 3:
|
|
1031
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
1032
|
+
"LocationPlacesResponseDto", ""]);
|
|
1033
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1034
|
+
case 4:
|
|
1035
|
+
_j = exception_1.ApiException.bind;
|
|
1036
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1037
|
+
return [4, response.getBodyAsAny()];
|
|
1038
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
1039
|
+
}
|
|
1040
|
+
});
|
|
1041
|
+
});
|
|
1042
|
+
};
|
|
1043
|
+
EventsApiResponseProcessor.prototype.eventControllerGetBookMarkEventStatusWithHttpInfo = function (response) {
|
|
1044
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1045
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1046
|
+
return __generator(this, function (_l) {
|
|
1047
|
+
switch (_l.label) {
|
|
1048
|
+
case 0:
|
|
1049
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1050
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1051
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1052
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1053
|
+
return [4, response.body.text()];
|
|
1054
|
+
case 1:
|
|
1055
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1056
|
+
"BookMarkEventStatusResponseDto", ""]);
|
|
1057
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1058
|
+
case 2:
|
|
1059
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
1060
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
1061
|
+
}
|
|
1062
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
1063
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1064
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1065
|
+
return [4, response.body.text()];
|
|
1066
|
+
case 3:
|
|
1067
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
1068
|
+
"BookMarkEventStatusResponseDto", ""]);
|
|
1069
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1070
|
+
case 4:
|
|
1071
|
+
_j = exception_1.ApiException.bind;
|
|
1072
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1073
|
+
return [4, response.getBodyAsAny()];
|
|
1074
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
1075
|
+
}
|
|
1076
|
+
});
|
|
1077
|
+
});
|
|
1078
|
+
};
|
|
1079
|
+
EventsApiResponseProcessor.prototype.eventControllerUpdateEventWithHttpInfo = function (response) {
|
|
1080
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1081
|
+
var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
|
|
1082
|
+
return __generator(this, function (_l) {
|
|
1083
|
+
switch (_l.label) {
|
|
1084
|
+
case 0:
|
|
1085
|
+
contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
|
|
1086
|
+
if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
|
|
1087
|
+
_b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1088
|
+
_d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1089
|
+
return [4, response.body.text()];
|
|
1090
|
+
case 1:
|
|
1091
|
+
body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
|
|
1092
|
+
"EventResponseDto", ""]);
|
|
1093
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1094
|
+
case 2:
|
|
1095
|
+
if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
|
|
1096
|
+
throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
|
|
1097
|
+
}
|
|
1098
|
+
if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
|
|
1099
|
+
_f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
|
|
1100
|
+
_h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
|
|
1101
|
+
return [4, response.body.text()];
|
|
1102
|
+
case 3:
|
|
1103
|
+
body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
|
|
1104
|
+
"EventResponseDto", ""]);
|
|
1105
|
+
return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
|
|
1106
|
+
case 4:
|
|
1107
|
+
_j = exception_1.ApiException.bind;
|
|
1108
|
+
_k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
|
|
1109
|
+
return [4, response.getBodyAsAny()];
|
|
1110
|
+
case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
|
|
1111
|
+
}
|
|
1112
|
+
});
|
|
1113
|
+
});
|
|
1114
|
+
};
|
|
1115
|
+
return EventsApiResponseProcessor;
|
|
1116
|
+
}());
|
|
1117
|
+
exports.EventsApiResponseProcessor = EventsApiResponseProcessor;
|
|
1118
|
+
//# sourceMappingURL=EventsApi.js.map
|