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.
Files changed (485) hide show
  1. package/README.md +81 -0
  2. package/dist/apis/AnalyticsApi.d.ts +10 -0
  3. package/dist/apis/AnalyticsApi.js +145 -0
  4. package/dist/apis/AnalyticsApi.js.map +1 -0
  5. package/dist/apis/AuthApi.d.ts +116 -0
  6. package/dist/apis/AuthApi.js +2689 -0
  7. package/dist/apis/AuthApi.js.map +1 -0
  8. package/dist/apis/BooksApi.d.ts +63 -0
  9. package/dist/apis/BooksApi.js +1517 -0
  10. package/dist/apis/BooksApi.js.map +1 -0
  11. package/dist/apis/ContactApi.d.ts +11 -0
  12. package/dist/apis/ContactApi.js +145 -0
  13. package/dist/apis/ContactApi.js.map +1 -0
  14. package/dist/apis/DefaultApi.d.ts +9 -0
  15. package/dist/apis/DefaultApi.js +123 -0
  16. package/dist/apis/DefaultApi.js.map +1 -0
  17. package/dist/apis/DeviceApi.d.ts +11 -0
  18. package/dist/apis/DeviceApi.js +145 -0
  19. package/dist/apis/DeviceApi.js.map +1 -0
  20. package/dist/apis/EventsApi.d.ts +50 -0
  21. package/dist/apis/EventsApi.js +1118 -0
  22. package/dist/apis/EventsApi.js.map +1 -0
  23. package/dist/apis/FollowerApi.d.ts +23 -0
  24. package/dist/apis/FollowerApi.js +435 -0
  25. package/dist/apis/FollowerApi.js.map +1 -0
  26. package/dist/apis/FriendsApi.d.ts +10 -0
  27. package/dist/apis/FriendsApi.js +154 -0
  28. package/dist/apis/FriendsApi.js.map +1 -0
  29. package/dist/apis/NielsenBooksApi.d.ts +13 -0
  30. package/dist/apis/NielsenBooksApi.js +240 -0
  31. package/dist/apis/NielsenBooksApi.js.map +1 -0
  32. package/dist/apis/PaymentApi.d.ts +29 -0
  33. package/dist/apis/PaymentApi.js +547 -0
  34. package/dist/apis/PaymentApi.js.map +1 -0
  35. package/dist/apis/StorageApi.d.ts +11 -0
  36. package/dist/apis/StorageApi.js +138 -0
  37. package/dist/apis/StorageApi.js.map +1 -0
  38. package/dist/apis/baseapi.d.ts +18 -0
  39. package/dist/apis/baseapi.js +46 -0
  40. package/dist/apis/baseapi.js.map +1 -0
  41. package/dist/apis/exception.d.ts +10 -0
  42. package/dist/apis/exception.js +32 -0
  43. package/dist/apis/exception.js.map +1 -0
  44. package/dist/auth/auth.d.ts +35 -0
  45. package/dist/auth/auth.js +79 -0
  46. package/dist/auth/auth.js.map +1 -0
  47. package/dist/configuration.d.ts +26 -0
  48. package/dist/configuration.js +63 -0
  49. package/dist/configuration.js.map +1 -0
  50. package/dist/http/http.d.ts +71 -0
  51. package/dist/http/http.js +274 -0
  52. package/dist/http/http.js.map +1 -0
  53. package/dist/http/isomorphic-fetch.d.ts +6 -0
  54. package/dist/http/isomorphic-fetch.js +35 -0
  55. package/dist/http/isomorphic-fetch.js.map +1 -0
  56. package/dist/index.d.ts +11 -0
  57. package/dist/index.js +42 -0
  58. package/dist/index.js.map +1 -0
  59. package/dist/middleware.d.ts +16 -0
  60. package/dist/middleware.js +18 -0
  61. package/dist/middleware.js.map +1 -0
  62. package/dist/models/AcceptFollowerPayloadDto.d.ts +20 -0
  63. package/dist/models/AcceptFollowerPayloadDto.js +23 -0
  64. package/dist/models/AcceptFollowerPayloadDto.js.map +1 -0
  65. package/dist/models/Activity.d.ts +29 -0
  66. package/dist/models/Activity.js +65 -0
  67. package/dist/models/Activity.js.map +1 -0
  68. package/dist/models/ActivityResponse.d.ts +22 -0
  69. package/dist/models/ActivityResponse.js +29 -0
  70. package/dist/models/ActivityResponse.js.map +1 -0
  71. package/dist/models/ActivityResponseDto.d.ts +22 -0
  72. package/dist/models/ActivityResponseDto.js +29 -0
  73. package/dist/models/ActivityResponseDto.js.map +1 -0
  74. package/dist/models/AddDevicePayload.d.ts +24 -0
  75. package/dist/models/AddDevicePayload.js +47 -0
  76. package/dist/models/AddDevicePayload.js.map +1 -0
  77. package/dist/models/Address.d.ts +25 -0
  78. package/dist/models/Address.js +53 -0
  79. package/dist/models/Address.js.map +1 -0
  80. package/dist/models/AnalyticsResponseDTO.d.ts +23 -0
  81. package/dist/models/AnalyticsResponseDTO.js +35 -0
  82. package/dist/models/AnalyticsResponseDTO.js.map +1 -0
  83. package/dist/models/AppfeepercentageResponseDto.d.ts +21 -0
  84. package/dist/models/AppfeepercentageResponseDto.js +29 -0
  85. package/dist/models/AppfeepercentageResponseDto.js.map +1 -0
  86. package/dist/models/AppfeepercentageUpdatePayloadDto.d.ts +21 -0
  87. package/dist/models/AppfeepercentageUpdatePayloadDto.js +29 -0
  88. package/dist/models/AppfeepercentageUpdatePayloadDto.js.map +1 -0
  89. package/dist/models/AttendeeDTO.d.ts +25 -0
  90. package/dist/models/AttendeeDTO.js +53 -0
  91. package/dist/models/AttendeeDTO.js.map +1 -0
  92. package/dist/models/AuthorResponseDto.d.ts +23 -0
  93. package/dist/models/AuthorResponseDto.js +41 -0
  94. package/dist/models/AuthorResponseDto.js.map +1 -0
  95. package/dist/models/BillingDetails.d.ts +24 -0
  96. package/dist/models/BillingDetails.js +41 -0
  97. package/dist/models/BillingDetails.js.map +1 -0
  98. package/dist/models/Book.d.ts +34 -0
  99. package/dist/models/Book.js +101 -0
  100. package/dist/models/Book.js.map +1 -0
  101. package/dist/models/BookByStatusDto.d.ts +24 -0
  102. package/dist/models/BookByStatusDto.js +47 -0
  103. package/dist/models/BookByStatusDto.js.map +1 -0
  104. package/dist/models/BookMarkEventDTO.d.ts +21 -0
  105. package/dist/models/BookMarkEventDTO.js +29 -0
  106. package/dist/models/BookMarkEventDTO.js.map +1 -0
  107. package/dist/models/BookMarkEventListDTO.d.ts +24 -0
  108. package/dist/models/BookMarkEventListDTO.js +35 -0
  109. package/dist/models/BookMarkEventListDTO.js.map +1 -0
  110. package/dist/models/BookMarkEventListResponseDto.d.ts +22 -0
  111. package/dist/models/BookMarkEventListResponseDto.js +29 -0
  112. package/dist/models/BookMarkEventListResponseDto.js.map +1 -0
  113. package/dist/models/BookMarkEventPayloadDto.d.ts +20 -0
  114. package/dist/models/BookMarkEventPayloadDto.js +23 -0
  115. package/dist/models/BookMarkEventPayloadDto.js.map +1 -0
  116. package/dist/models/BookMarkEventStatusResponseDto.d.ts +21 -0
  117. package/dist/models/BookMarkEventStatusResponseDto.js +29 -0
  118. package/dist/models/BookMarkEventStatusResponseDto.js.map +1 -0
  119. package/dist/models/BookPayloadDto.d.ts +26 -0
  120. package/dist/models/BookPayloadDto.js +59 -0
  121. package/dist/models/BookPayloadDto.js.map +1 -0
  122. package/dist/models/BookPositionDto.d.ts +20 -0
  123. package/dist/models/BookPositionDto.js +23 -0
  124. package/dist/models/BookPositionDto.js.map +1 -0
  125. package/dist/models/BookResponseDto.d.ts +22 -0
  126. package/dist/models/BookResponseDto.js +29 -0
  127. package/dist/models/BookResponseDto.js.map +1 -0
  128. package/dist/models/BookReviewCountResponseDto.d.ts +22 -0
  129. package/dist/models/BookReviewCountResponseDto.js +29 -0
  130. package/dist/models/BookReviewCountResponseDto.js.map +1 -0
  131. package/dist/models/Books.d.ts +22 -0
  132. package/dist/models/Books.js +29 -0
  133. package/dist/models/Books.js.map +1 -0
  134. package/dist/models/BooksResponseDto.d.ts +22 -0
  135. package/dist/models/BooksResponseDto.js +29 -0
  136. package/dist/models/BooksResponseDto.js.map +1 -0
  137. package/dist/models/BooksReviewResponseDto.d.ts +22 -0
  138. package/dist/models/BooksReviewResponseDto.js +29 -0
  139. package/dist/models/BooksReviewResponseDto.js.map +1 -0
  140. package/dist/models/BooksStatusResponseDto.d.ts +21 -0
  141. package/dist/models/BooksStatusResponseDto.js +29 -0
  142. package/dist/models/BooksStatusResponseDto.js.map +1 -0
  143. package/dist/models/BusinessConnectedAccount.d.ts +26 -0
  144. package/dist/models/BusinessConnectedAccount.js +35 -0
  145. package/dist/models/BusinessConnectedAccount.js.map +1 -0
  146. package/dist/models/Card.d.ts +35 -0
  147. package/dist/models/Card.js +95 -0
  148. package/dist/models/Card.js.map +1 -0
  149. package/dist/models/CardChecks.d.ts +22 -0
  150. package/dist/models/CardChecks.js +35 -0
  151. package/dist/models/CardChecks.js.map +1 -0
  152. package/dist/models/CardList.d.ts +31 -0
  153. package/dist/models/CardList.js +77 -0
  154. package/dist/models/CardList.js.map +1 -0
  155. package/dist/models/CardListResponseDto.d.ts +22 -0
  156. package/dist/models/CardListResponseDto.js +29 -0
  157. package/dist/models/CardListResponseDto.js.map +1 -0
  158. package/dist/models/CardNetwork.d.ts +21 -0
  159. package/dist/models/CardNetwork.js +29 -0
  160. package/dist/models/CardNetwork.js.map +1 -0
  161. package/dist/models/CardSecure.d.ts +20 -0
  162. package/dist/models/CardSecure.js +23 -0
  163. package/dist/models/CardSecure.js.map +1 -0
  164. package/dist/models/ChangePayloadDto.d.ts +22 -0
  165. package/dist/models/ChangePayloadDto.js +35 -0
  166. package/dist/models/ChangePayloadDto.js.map +1 -0
  167. package/dist/models/ContactDetails.d.ts +24 -0
  168. package/dist/models/ContactDetails.js +47 -0
  169. package/dist/models/ContactDetails.js.map +1 -0
  170. package/dist/models/ContactDetailsDto.d.ts +22 -0
  171. package/dist/models/ContactDetailsDto.js +29 -0
  172. package/dist/models/ContactDetailsDto.js.map +1 -0
  173. package/dist/models/ContactDetailsResponse.d.ts +20 -0
  174. package/dist/models/ContactDetailsResponse.js +23 -0
  175. package/dist/models/ContactDetailsResponse.js.map +1 -0
  176. package/dist/models/CreateBookMarkEventResponseDto.d.ts +22 -0
  177. package/dist/models/CreateBookMarkEventResponseDto.js +29 -0
  178. package/dist/models/CreateBookMarkEventResponseDto.js.map +1 -0
  179. package/dist/models/CreateRoleDto.d.ts +22 -0
  180. package/dist/models/CreateRoleDto.js +35 -0
  181. package/dist/models/CreateRoleDto.js.map +1 -0
  182. package/dist/models/CreateStaffDto.d.ts +24 -0
  183. package/dist/models/CreateStaffDto.js +47 -0
  184. package/dist/models/CreateStaffDto.js.map +1 -0
  185. package/dist/models/CreateStaffRoleDto.d.ts +23 -0
  186. package/dist/models/CreateStaffRoleDto.js +41 -0
  187. package/dist/models/CreateStaffRoleDto.js.map +1 -0
  188. package/dist/models/DeleteBookMarkEventResponseDto.d.ts +21 -0
  189. package/dist/models/DeleteBookMarkEventResponseDto.js +29 -0
  190. package/dist/models/DeleteBookMarkEventResponseDto.js.map +1 -0
  191. package/dist/models/DeviceAddResponse.d.ts +22 -0
  192. package/dist/models/DeviceAddResponse.js +29 -0
  193. package/dist/models/DeviceAddResponse.js.map +1 -0
  194. package/dist/models/DeviceEntity.d.ts +24 -0
  195. package/dist/models/DeviceEntity.js +47 -0
  196. package/dist/models/DeviceEntity.js.map +1 -0
  197. package/dist/models/EventCustomer.d.ts +24 -0
  198. package/dist/models/EventCustomer.js +47 -0
  199. package/dist/models/EventCustomer.js.map +1 -0
  200. package/dist/models/EventCustomerResponseDto.d.ts +22 -0
  201. package/dist/models/EventCustomerResponseDto.js +29 -0
  202. package/dist/models/EventCustomerResponseDto.js.map +1 -0
  203. package/dist/models/EventDeleteResponseDto.d.ts +21 -0
  204. package/dist/models/EventDeleteResponseDto.js +29 -0
  205. package/dist/models/EventDeleteResponseDto.js.map +1 -0
  206. package/dist/models/EventPayloadDto.d.ts +33 -0
  207. package/dist/models/EventPayloadDto.js +95 -0
  208. package/dist/models/EventPayloadDto.js.map +1 -0
  209. package/dist/models/EventResponseDto.d.ts +22 -0
  210. package/dist/models/EventResponseDto.js +29 -0
  211. package/dist/models/EventResponseDto.js.map +1 -0
  212. package/dist/models/Events.d.ts +38 -0
  213. package/dist/models/Events.js +107 -0
  214. package/dist/models/Events.js.map +1 -0
  215. package/dist/models/EventsList.d.ts +22 -0
  216. package/dist/models/EventsList.js +29 -0
  217. package/dist/models/EventsList.js.map +1 -0
  218. package/dist/models/EventsResponseDto.d.ts +22 -0
  219. package/dist/models/EventsResponseDto.js +29 -0
  220. package/dist/models/EventsResponseDto.js.map +1 -0
  221. package/dist/models/FeedbackCreateResponseDto.d.ts +21 -0
  222. package/dist/models/FeedbackCreateResponseDto.js +29 -0
  223. package/dist/models/FeedbackCreateResponseDto.js.map +1 -0
  224. package/dist/models/FeedbackPayloadDto.d.ts +23 -0
  225. package/dist/models/FeedbackPayloadDto.js +41 -0
  226. package/dist/models/FeedbackPayloadDto.js.map +1 -0
  227. package/dist/models/FileUploadDto.d.ts +20 -0
  228. package/dist/models/FileUploadDto.js +23 -0
  229. package/dist/models/FileUploadDto.js.map +1 -0
  230. package/dist/models/FileUrl.d.ts +20 -0
  231. package/dist/models/FileUrl.js +23 -0
  232. package/dist/models/FileUrl.js.map +1 -0
  233. package/dist/models/Follower.d.ts +21 -0
  234. package/dist/models/Follower.js +29 -0
  235. package/dist/models/Follower.js.map +1 -0
  236. package/dist/models/FollowerPayloadDto.d.ts +20 -0
  237. package/dist/models/FollowerPayloadDto.js +23 -0
  238. package/dist/models/FollowerPayloadDto.js.map +1 -0
  239. package/dist/models/FollowerResponseDto.d.ts +22 -0
  240. package/dist/models/FollowerResponseDto.js +29 -0
  241. package/dist/models/FollowerResponseDto.js.map +1 -0
  242. package/dist/models/ForgetPasswordEntityResponse.d.ts +20 -0
  243. package/dist/models/ForgetPasswordEntityResponse.js +23 -0
  244. package/dist/models/ForgetPasswordEntityResponse.js.map +1 -0
  245. package/dist/models/ForgetPasswordEntityResponseDto.d.ts +22 -0
  246. package/dist/models/ForgetPasswordEntityResponseDto.js +29 -0
  247. package/dist/models/ForgetPasswordEntityResponseDto.js.map +1 -0
  248. package/dist/models/ForgetPasswordPayloadDto.d.ts +20 -0
  249. package/dist/models/ForgetPasswordPayloadDto.js +23 -0
  250. package/dist/models/ForgetPasswordPayloadDto.js.map +1 -0
  251. package/dist/models/FriendRequestItem.d.ts +37 -0
  252. package/dist/models/FriendRequestItem.js +125 -0
  253. package/dist/models/FriendRequestItem.js.map +1 -0
  254. package/dist/models/FriendRequestItemEntityDto.d.ts +22 -0
  255. package/dist/models/FriendRequestItemEntityDto.js +29 -0
  256. package/dist/models/FriendRequestItemEntityDto.js.map +1 -0
  257. package/dist/models/FriendsResponse.d.ts +22 -0
  258. package/dist/models/FriendsResponse.js +29 -0
  259. package/dist/models/FriendsResponse.js.map +1 -0
  260. package/dist/models/FriendsResponseDto.d.ts +22 -0
  261. package/dist/models/FriendsResponseDto.js +29 -0
  262. package/dist/models/FriendsResponseDto.js.map +1 -0
  263. package/dist/models/GoodReadsBookPayloadDto.d.ts +21 -0
  264. package/dist/models/GoodReadsBookPayloadDto.js +29 -0
  265. package/dist/models/GoodReadsBookPayloadDto.js.map +1 -0
  266. package/dist/models/InterestsPayloadDto.d.ts +23 -0
  267. package/dist/models/InterestsPayloadDto.js +41 -0
  268. package/dist/models/InterestsPayloadDto.js.map +1 -0
  269. package/dist/models/InterestsResponseDto.d.ts +22 -0
  270. package/dist/models/InterestsResponseDto.js +29 -0
  271. package/dist/models/InterestsResponseDto.js.map +1 -0
  272. package/dist/models/Location.d.ts +21 -0
  273. package/dist/models/Location.js +29 -0
  274. package/dist/models/Location.js.map +1 -0
  275. package/dist/models/LocationPayloadDto.d.ts +20 -0
  276. package/dist/models/LocationPayloadDto.js +23 -0
  277. package/dist/models/LocationPayloadDto.js.map +1 -0
  278. package/dist/models/LocationPlacesResponseDto.d.ts +22 -0
  279. package/dist/models/LocationPlacesResponseDto.js +29 -0
  280. package/dist/models/LocationPlacesResponseDto.js.map +1 -0
  281. package/dist/models/LoggedOutPayloadDTO.d.ts +20 -0
  282. package/dist/models/LoggedOutPayloadDTO.js +23 -0
  283. package/dist/models/LoggedOutPayloadDTO.js.map +1 -0
  284. package/dist/models/LoggedOutResponse.d.ts +21 -0
  285. package/dist/models/LoggedOutResponse.js +29 -0
  286. package/dist/models/LoggedOutResponse.js.map +1 -0
  287. package/dist/models/LoginPayloadDto.d.ts +22 -0
  288. package/dist/models/LoginPayloadDto.js +35 -0
  289. package/dist/models/LoginPayloadDto.js.map +1 -0
  290. package/dist/models/MetaResponse.d.ts +30 -0
  291. package/dist/models/MetaResponse.js +53 -0
  292. package/dist/models/MetaResponse.js.map +1 -0
  293. package/dist/models/MyAllFriendsResponseDto.d.ts +22 -0
  294. package/dist/models/MyAllFriendsResponseDto.js +29 -0
  295. package/dist/models/MyAllFriendsResponseDto.js.map +1 -0
  296. package/dist/models/MyEventResponseDto.d.ts +22 -0
  297. package/dist/models/MyEventResponseDto.js +29 -0
  298. package/dist/models/MyEventResponseDto.js.map +1 -0
  299. package/dist/models/MyEvents.d.ts +22 -0
  300. package/dist/models/MyEvents.js +29 -0
  301. package/dist/models/MyEvents.js.map +1 -0
  302. package/dist/models/MyEventsPayloadDTO.d.ts +20 -0
  303. package/dist/models/MyEventsPayloadDTO.js +23 -0
  304. package/dist/models/MyEventsPayloadDTO.js.map +1 -0
  305. package/dist/models/MyEventsResponse.d.ts +24 -0
  306. package/dist/models/MyEventsResponse.js +41 -0
  307. package/dist/models/MyEventsResponse.js.map +1 -0
  308. package/dist/models/MyEventsResponseDto.d.ts +22 -0
  309. package/dist/models/MyEventsResponseDto.js +29 -0
  310. package/dist/models/MyEventsResponseDto.js.map +1 -0
  311. package/dist/models/MyFriendPayloadDto.d.ts +23 -0
  312. package/dist/models/MyFriendPayloadDto.js +41 -0
  313. package/dist/models/MyFriendPayloadDto.js.map +1 -0
  314. package/dist/models/MyFriendsResponse.d.ts +22 -0
  315. package/dist/models/MyFriendsResponse.js +29 -0
  316. package/dist/models/MyFriendsResponse.js.map +1 -0
  317. package/dist/models/ObjectSerializer.d.ts +142 -0
  318. package/dist/models/ObjectSerializer.js +676 -0
  319. package/dist/models/ObjectSerializer.js.map +1 -0
  320. package/dist/models/OtpEntityPayloadDto.d.ts +21 -0
  321. package/dist/models/OtpEntityPayloadDto.js +29 -0
  322. package/dist/models/OtpEntityPayloadDto.js.map +1 -0
  323. package/dist/models/PasswordChangeResponse.d.ts +21 -0
  324. package/dist/models/PasswordChangeResponse.js +23 -0
  325. package/dist/models/PasswordChangeResponse.js.map +1 -0
  326. package/dist/models/PasswordChangeResponseDto.d.ts +22 -0
  327. package/dist/models/PasswordChangeResponseDto.js +29 -0
  328. package/dist/models/PasswordChangeResponseDto.js.map +1 -0
  329. package/dist/models/PaymentPayloadDto.d.ts +20 -0
  330. package/dist/models/PaymentPayloadDto.js +23 -0
  331. package/dist/models/PaymentPayloadDto.js.map +1 -0
  332. package/dist/models/PaymentResponse.d.ts +23 -0
  333. package/dist/models/PaymentResponse.js +35 -0
  334. package/dist/models/PaymentResponse.js.map +1 -0
  335. package/dist/models/PaymentResponseDto.d.ts +22 -0
  336. package/dist/models/PaymentResponseDto.js +29 -0
  337. package/dist/models/PaymentResponseDto.js.map +1 -0
  338. package/dist/models/PermissionResponseDto.d.ts +21 -0
  339. package/dist/models/PermissionResponseDto.js +29 -0
  340. package/dist/models/PermissionResponseDto.js.map +1 -0
  341. package/dist/models/Places.d.ts +21 -0
  342. package/dist/models/Places.js +29 -0
  343. package/dist/models/Places.js.map +1 -0
  344. package/dist/models/Rating.d.ts +22 -0
  345. package/dist/models/Rating.js +35 -0
  346. package/dist/models/Rating.js.map +1 -0
  347. package/dist/models/ReadingGoalPayload.d.ts +21 -0
  348. package/dist/models/ReadingGoalPayload.js +29 -0
  349. package/dist/models/ReadingGoalPayload.js.map +1 -0
  350. package/dist/models/ReadingGoalResponse.d.ts +25 -0
  351. package/dist/models/ReadingGoalResponse.js +47 -0
  352. package/dist/models/ReadingGoalResponse.js.map +1 -0
  353. package/dist/models/ReadingGoalResponseDTO.d.ts +22 -0
  354. package/dist/models/ReadingGoalResponseDTO.js +29 -0
  355. package/dist/models/ReadingGoalResponseDTO.js.map +1 -0
  356. package/dist/models/Review.d.ts +25 -0
  357. package/dist/models/Review.js +47 -0
  358. package/dist/models/Review.js.map +1 -0
  359. package/dist/models/RoleResponseDto.d.ts +24 -0
  360. package/dist/models/RoleResponseDto.js +41 -0
  361. package/dist/models/RoleResponseDto.js.map +1 -0
  362. package/dist/models/SignupPayloadDto.d.ts +24 -0
  363. package/dist/models/SignupPayloadDto.js +47 -0
  364. package/dist/models/SignupPayloadDto.js.map +1 -0
  365. package/dist/models/StorageResponseDto.d.ts +22 -0
  366. package/dist/models/StorageResponseDto.js +29 -0
  367. package/dist/models/StorageResponseDto.js.map +1 -0
  368. package/dist/models/StoreDetailsPayloadDto.d.ts +21 -0
  369. package/dist/models/StoreDetailsPayloadDto.js +29 -0
  370. package/dist/models/StoreDetailsPayloadDto.js.map +1 -0
  371. package/dist/models/StripePayloadDto.d.ts +21 -0
  372. package/dist/models/StripePayloadDto.js +29 -0
  373. package/dist/models/StripePayloadDto.js.map +1 -0
  374. package/dist/models/StripePaymentPayloadDto.d.ts +21 -0
  375. package/dist/models/StripePaymentPayloadDto.js +29 -0
  376. package/dist/models/StripePaymentPayloadDto.js.map +1 -0
  377. package/dist/models/StripeResponse.d.ts +23 -0
  378. package/dist/models/StripeResponse.js +41 -0
  379. package/dist/models/StripeResponse.js.map +1 -0
  380. package/dist/models/StripeResponseDto.d.ts +22 -0
  381. package/dist/models/StripeResponseDto.js +29 -0
  382. package/dist/models/StripeResponseDto.js.map +1 -0
  383. package/dist/models/SuperAdminLoginPayloadDto.d.ts +20 -0
  384. package/dist/models/SuperAdminLoginPayloadDto.js +23 -0
  385. package/dist/models/SuperAdminLoginPayloadDto.js.map +1 -0
  386. package/dist/models/TopBookPayload.d.ts +21 -0
  387. package/dist/models/TopBookPayload.js +29 -0
  388. package/dist/models/TopBookPayload.js.map +1 -0
  389. package/dist/models/TopBooksResponse.d.ts +22 -0
  390. package/dist/models/TopBooksResponse.js +29 -0
  391. package/dist/models/TopBooksResponse.js.map +1 -0
  392. package/dist/models/TopBooksResponseDTO.d.ts +22 -0
  393. package/dist/models/TopBooksResponseDTO.js +29 -0
  394. package/dist/models/TopBooksResponseDTO.js.map +1 -0
  395. package/dist/models/UpdateRoleDto.d.ts +22 -0
  396. package/dist/models/UpdateRoleDto.js +35 -0
  397. package/dist/models/UpdateRoleDto.js.map +1 -0
  398. package/dist/models/UpdateStaffDto.d.ts +23 -0
  399. package/dist/models/UpdateStaffDto.js +41 -0
  400. package/dist/models/UpdateStaffDto.js.map +1 -0
  401. package/dist/models/UpdateStaffRoleDto.d.ts +23 -0
  402. package/dist/models/UpdateStaffRoleDto.js +41 -0
  403. package/dist/models/UpdateStaffRoleDto.js.map +1 -0
  404. package/dist/models/UserAchievementResponse.d.ts +23 -0
  405. package/dist/models/UserAchievementResponse.js +41 -0
  406. package/dist/models/UserAchievementResponse.js.map +1 -0
  407. package/dist/models/UserAchievementResponseDTO.d.ts +22 -0
  408. package/dist/models/UserAchievementResponseDTO.js +29 -0
  409. package/dist/models/UserAchievementResponseDTO.js.map +1 -0
  410. package/dist/models/UserBookDeleteResponseDto.d.ts +21 -0
  411. package/dist/models/UserBookDeleteResponseDto.js +29 -0
  412. package/dist/models/UserBookDeleteResponseDto.js.map +1 -0
  413. package/dist/models/UserBookPayloadDto.d.ts +23 -0
  414. package/dist/models/UserBookPayloadDto.js +41 -0
  415. package/dist/models/UserBookPayloadDto.js.map +1 -0
  416. package/dist/models/UserBookReviewResponseDto.d.ts +22 -0
  417. package/dist/models/UserBookReviewResponseDto.js +29 -0
  418. package/dist/models/UserBookReviewResponseDto.js.map +1 -0
  419. package/dist/models/UserBookStatusQueryDto.d.ts +25 -0
  420. package/dist/models/UserBookStatusQueryDto.js +53 -0
  421. package/dist/models/UserBookStatusQueryDto.js.map +1 -0
  422. package/dist/models/UserBooks.d.ts +27 -0
  423. package/dist/models/UserBooks.js +53 -0
  424. package/dist/models/UserBooks.js.map +1 -0
  425. package/dist/models/UserBooksResponse.d.ts +22 -0
  426. package/dist/models/UserBooksResponse.js +29 -0
  427. package/dist/models/UserBooksResponse.js.map +1 -0
  428. package/dist/models/UserBooksResponseDto.d.ts +22 -0
  429. package/dist/models/UserBooksResponseDto.js +29 -0
  430. package/dist/models/UserBooksResponseDto.js.map +1 -0
  431. package/dist/models/UserDeleteResponseDto.d.ts +21 -0
  432. package/dist/models/UserDeleteResponseDto.js +29 -0
  433. package/dist/models/UserDeleteResponseDto.js.map +1 -0
  434. package/dist/models/UserDetails.d.ts +43 -0
  435. package/dist/models/UserDetails.js +149 -0
  436. package/dist/models/UserDetails.js.map +1 -0
  437. package/dist/models/UserFollowerResponseDto.d.ts +22 -0
  438. package/dist/models/UserFollowerResponseDto.js +29 -0
  439. package/dist/models/UserFollowerResponseDto.js.map +1 -0
  440. package/dist/models/UserFollowers.d.ts +21 -0
  441. package/dist/models/UserFollowers.js +29 -0
  442. package/dist/models/UserFollowers.js.map +1 -0
  443. package/dist/models/UserResponse.d.ts +22 -0
  444. package/dist/models/UserResponse.js +29 -0
  445. package/dist/models/UserResponse.js.map +1 -0
  446. package/dist/models/UserResponseDto.d.ts +22 -0
  447. package/dist/models/UserResponseDto.js +29 -0
  448. package/dist/models/UserResponseDto.js.map +1 -0
  449. package/dist/models/UserRolePayloadDto.d.ts +20 -0
  450. package/dist/models/UserRolePayloadDto.js +23 -0
  451. package/dist/models/UserRolePayloadDto.js.map +1 -0
  452. package/dist/models/UserSyncDTO.d.ts +20 -0
  453. package/dist/models/UserSyncDTO.js +23 -0
  454. package/dist/models/UserSyncDTO.js.map +1 -0
  455. package/dist/models/UserSyncResponseDto.d.ts +21 -0
  456. package/dist/models/UserSyncResponseDto.js +29 -0
  457. package/dist/models/UserSyncResponseDto.js.map +1 -0
  458. package/dist/models/UserUpdatePayloadDto.d.ts +28 -0
  459. package/dist/models/UserUpdatePayloadDto.js +71 -0
  460. package/dist/models/UserUpdatePayloadDto.js.map +1 -0
  461. package/dist/models/VerificationLinkResponseDTO.d.ts +21 -0
  462. package/dist/models/VerificationLinkResponseDTO.js +29 -0
  463. package/dist/models/VerificationLinkResponseDTO.js.map +1 -0
  464. package/dist/models/all.d.ts +133 -0
  465. package/dist/models/all.js +150 -0
  466. package/dist/models/all.js.map +1 -0
  467. package/dist/rxjsStub.d.ts +10 -0
  468. package/dist/rxjsStub.js +33 -0
  469. package/dist/rxjsStub.js.map +1 -0
  470. package/dist/servers.d.ts +23 -0
  471. package/dist/servers.js +32 -0
  472. package/dist/servers.js.map +1 -0
  473. package/dist/types/ObjectParamAPI.d.ts +663 -0
  474. package/dist/types/ObjectParamAPI.js +682 -0
  475. package/dist/types/ObjectParamAPI.js.map +1 -0
  476. package/dist/types/ObservableAPI.d.ts +359 -0
  477. package/dist/types/ObservableAPI.js +2731 -0
  478. package/dist/types/ObservableAPI.js.map +1 -0
  479. package/dist/types/PromiseAPI.d.ts +334 -0
  480. package/dist/types/PromiseAPI.js +1031 -0
  481. package/dist/types/PromiseAPI.js.map +1 -0
  482. package/dist/util.d.ts +2 -0
  483. package/dist/util.js +28 -0
  484. package/dist/util.js.map +1 -0
  485. package/package.json +41 -0
@@ -0,0 +1,1517 @@
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.BooksApiResponseProcessor = exports.BooksApiRequestFactory = 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 BooksApiRequestFactory = (function (_super) {
61
+ __extends(BooksApiRequestFactory, _super);
62
+ function BooksApiRequestFactory() {
63
+ return _super !== null && _super.apply(this, arguments) || this;
64
+ }
65
+ BooksApiRequestFactory.prototype.bookControllerAddBook = function (bookPayloadDto, _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 (bookPayloadDto === null || bookPayloadDto === undefined) {
74
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerAddBook", "bookPayloadDto");
75
+ }
76
+ localVarPath = '/v1/book';
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(bookPayloadDto, "BookPayloadDto", ""), 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
+ BooksApiRequestFactory.prototype.bookControllerAddMyGoodReadsBooks = function (requestBody, _options) {
104
+ return __awaiter(this, void 0, void 0, function () {
105
+ var _config, localVarPath, requestContext, contentType, serializedBody, 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 (requestBody === null || requestBody === undefined) {
112
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerAddMyGoodReadsBooks", "requestBody");
113
+ }
114
+ localVarPath = '/v1/books/add-goodreads';
115
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
116
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
117
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
118
+ "application/json"
119
+ ]);
120
+ requestContext.setHeaderParam("Content-Type", contentType);
121
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(requestBody, "Array<string>", ""), contentType);
122
+ requestContext.setBody(serializedBody);
123
+ authMethod = _config.authMethods["bearer"];
124
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
125
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
126
+ case 1:
127
+ _b.sent();
128
+ _b.label = 2;
129
+ case 2:
130
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
131
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
132
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
133
+ case 3:
134
+ _b.sent();
135
+ _b.label = 4;
136
+ case 4: return [2, requestContext];
137
+ }
138
+ });
139
+ });
140
+ };
141
+ BooksApiRequestFactory.prototype.bookControllerAddReadingGoal = function (readingGoalPayload, _options) {
142
+ return __awaiter(this, void 0, void 0, function () {
143
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
144
+ var _a;
145
+ return __generator(this, function (_b) {
146
+ switch (_b.label) {
147
+ case 0:
148
+ _config = _options || this.configuration;
149
+ if (readingGoalPayload === null || readingGoalPayload === undefined) {
150
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerAddReadingGoal", "readingGoalPayload");
151
+ }
152
+ localVarPath = '/v1/add/reading/books/goal';
153
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
154
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
155
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
156
+ "application/json"
157
+ ]);
158
+ requestContext.setHeaderParam("Content-Type", contentType);
159
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(readingGoalPayload, "ReadingGoalPayload", ""), contentType);
160
+ requestContext.setBody(serializedBody);
161
+ authMethod = _config.authMethods["bearer"];
162
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
163
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
164
+ case 1:
165
+ _b.sent();
166
+ _b.label = 2;
167
+ case 2:
168
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
169
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
170
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
171
+ case 3:
172
+ _b.sent();
173
+ _b.label = 4;
174
+ case 4: return [2, requestContext];
175
+ }
176
+ });
177
+ });
178
+ };
179
+ BooksApiRequestFactory.prototype.bookControllerAddTopBook = function (topBookPayload, _options) {
180
+ return __awaiter(this, void 0, void 0, function () {
181
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
182
+ var _a;
183
+ return __generator(this, function (_b) {
184
+ switch (_b.label) {
185
+ case 0:
186
+ _config = _options || this.configuration;
187
+ if (topBookPayload === null || topBookPayload === undefined) {
188
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerAddTopBook", "topBookPayload");
189
+ }
190
+ localVarPath = '/v1/add/top/books';
191
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
192
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
193
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
194
+ "application/json"
195
+ ]);
196
+ requestContext.setHeaderParam("Content-Type", contentType);
197
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(topBookPayload, "TopBookPayload", ""), contentType);
198
+ requestContext.setBody(serializedBody);
199
+ authMethod = _config.authMethods["bearer"];
200
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
201
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
202
+ case 1:
203
+ _b.sent();
204
+ _b.label = 2;
205
+ case 2:
206
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
207
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
208
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
209
+ case 3:
210
+ _b.sent();
211
+ _b.label = 4;
212
+ case 4: return [2, requestContext];
213
+ }
214
+ });
215
+ });
216
+ };
217
+ BooksApiRequestFactory.prototype.bookControllerDeleteReview = function (userBookPayloadDto, _options) {
218
+ return __awaiter(this, void 0, void 0, function () {
219
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
220
+ var _a;
221
+ return __generator(this, function (_b) {
222
+ switch (_b.label) {
223
+ case 0:
224
+ _config = _options || this.configuration;
225
+ if (userBookPayloadDto === null || userBookPayloadDto === undefined) {
226
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerDeleteReview", "userBookPayloadDto");
227
+ }
228
+ localVarPath = '/v1/user/book/delete/review';
229
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
230
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
231
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
232
+ "application/json"
233
+ ]);
234
+ requestContext.setHeaderParam("Content-Type", contentType);
235
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userBookPayloadDto, "UserBookPayloadDto", ""), contentType);
236
+ requestContext.setBody(serializedBody);
237
+ authMethod = _config.authMethods["bearer"];
238
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
239
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
240
+ case 1:
241
+ _b.sent();
242
+ _b.label = 2;
243
+ case 2:
244
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
245
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
246
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
247
+ case 3:
248
+ _b.sent();
249
+ _b.label = 4;
250
+ case 4: return [2, requestContext];
251
+ }
252
+ });
253
+ });
254
+ };
255
+ BooksApiRequestFactory.prototype.bookControllerFindBookById = function (id, _options) {
256
+ return __awaiter(this, void 0, void 0, function () {
257
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
258
+ var _a;
259
+ return __generator(this, function (_b) {
260
+ switch (_b.label) {
261
+ case 0:
262
+ _config = _options || this.configuration;
263
+ if (id === null || id === undefined) {
264
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerFindBookById", "id");
265
+ }
266
+ localVarPath = '/v1/book';
267
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
268
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
269
+ if (id !== undefined) {
270
+ requestContext.setQueryParam("id", ObjectSerializer_1.ObjectSerializer.serialize(id, "string", ""));
271
+ }
272
+ authMethod = _config.authMethods["bearer"];
273
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
274
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
275
+ case 1:
276
+ _b.sent();
277
+ _b.label = 2;
278
+ case 2:
279
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
280
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
281
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
282
+ case 3:
283
+ _b.sent();
284
+ _b.label = 4;
285
+ case 4: return [2, requestContext];
286
+ }
287
+ });
288
+ });
289
+ };
290
+ BooksApiRequestFactory.prototype.bookControllerFindBookByStatus = function (bookByStatusDto, _options) {
291
+ return __awaiter(this, void 0, void 0, function () {
292
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
293
+ var _a;
294
+ return __generator(this, function (_b) {
295
+ switch (_b.label) {
296
+ case 0:
297
+ _config = _options || this.configuration;
298
+ if (bookByStatusDto === null || bookByStatusDto === undefined) {
299
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerFindBookByStatus", "bookByStatusDto");
300
+ }
301
+ localVarPath = '/v1/books/by-status';
302
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
303
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
304
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
305
+ "application/json"
306
+ ]);
307
+ requestContext.setHeaderParam("Content-Type", contentType);
308
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(bookByStatusDto, "BookByStatusDto", ""), contentType);
309
+ requestContext.setBody(serializedBody);
310
+ authMethod = _config.authMethods["bearer"];
311
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
312
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
313
+ case 1:
314
+ _b.sent();
315
+ _b.label = 2;
316
+ case 2:
317
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
318
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
319
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
320
+ case 3:
321
+ _b.sent();
322
+ _b.label = 4;
323
+ case 4: return [2, requestContext];
324
+ }
325
+ });
326
+ });
327
+ };
328
+ BooksApiRequestFactory.prototype.bookControllerFindBookReviewBase = function (userBookStatusQueryDto, _options) {
329
+ return __awaiter(this, void 0, void 0, function () {
330
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
331
+ var _a;
332
+ return __generator(this, function (_b) {
333
+ switch (_b.label) {
334
+ case 0:
335
+ _config = _options || this.configuration;
336
+ if (userBookStatusQueryDto === null || userBookStatusQueryDto === undefined) {
337
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerFindBookReviewBase", "userBookStatusQueryDto");
338
+ }
339
+ localVarPath = '/v1/books/type';
340
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
341
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
342
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
343
+ "application/json"
344
+ ]);
345
+ requestContext.setHeaderParam("Content-Type", contentType);
346
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userBookStatusQueryDto, "UserBookStatusQueryDto", ""), contentType);
347
+ requestContext.setBody(serializedBody);
348
+ authMethod = _config.authMethods["bearer"];
349
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
350
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
351
+ case 1:
352
+ _b.sent();
353
+ _b.label = 2;
354
+ case 2:
355
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
356
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
357
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
358
+ case 3:
359
+ _b.sent();
360
+ _b.label = 4;
361
+ case 4: return [2, requestContext];
362
+ }
363
+ });
364
+ });
365
+ };
366
+ BooksApiRequestFactory.prototype.bookControllerFindBooks = function (rate, page, limit, search, isPrompt, user, _options) {
367
+ return __awaiter(this, void 0, void 0, function () {
368
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
369
+ var _a;
370
+ return __generator(this, function (_b) {
371
+ switch (_b.label) {
372
+ case 0:
373
+ _config = _options || this.configuration;
374
+ if (rate === null || rate === undefined) {
375
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerFindBooks", "rate");
376
+ }
377
+ if (page === null || page === undefined) {
378
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerFindBooks", "page");
379
+ }
380
+ if (limit === null || limit === undefined) {
381
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerFindBooks", "limit");
382
+ }
383
+ localVarPath = '/v1/books';
384
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
385
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
386
+ if (search !== undefined) {
387
+ requestContext.setQueryParam("search", ObjectSerializer_1.ObjectSerializer.serialize(search, "string", ""));
388
+ }
389
+ if (rate !== undefined) {
390
+ requestContext.setQueryParam("rate", ObjectSerializer_1.ObjectSerializer.serialize(rate, "number", ""));
391
+ }
392
+ if (page !== undefined) {
393
+ requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", ""));
394
+ }
395
+ if (limit !== undefined) {
396
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
397
+ }
398
+ if (isPrompt !== undefined) {
399
+ requestContext.setQueryParam("isPrompt", ObjectSerializer_1.ObjectSerializer.serialize(isPrompt, "boolean", ""));
400
+ }
401
+ if (user !== undefined) {
402
+ requestContext.setQueryParam("user", ObjectSerializer_1.ObjectSerializer.serialize(user, "string", ""));
403
+ }
404
+ authMethod = _config.authMethods["bearer"];
405
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
406
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
407
+ case 1:
408
+ _b.sent();
409
+ _b.label = 2;
410
+ case 2:
411
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
412
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
413
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
414
+ case 3:
415
+ _b.sent();
416
+ _b.label = 4;
417
+ case 4: return [2, requestContext];
418
+ }
419
+ });
420
+ });
421
+ };
422
+ BooksApiRequestFactory.prototype.bookControllerFindGoodReads = function (goodReadsBookPayloadDto, _options) {
423
+ return __awaiter(this, void 0, void 0, function () {
424
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
425
+ var _a;
426
+ return __generator(this, function (_b) {
427
+ switch (_b.label) {
428
+ case 0:
429
+ _config = _options || this.configuration;
430
+ if (goodReadsBookPayloadDto === null || goodReadsBookPayloadDto === undefined) {
431
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerFindGoodReads", "goodReadsBookPayloadDto");
432
+ }
433
+ localVarPath = '/v1/books/goodreads';
434
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
435
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
436
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
437
+ "application/json"
438
+ ]);
439
+ requestContext.setHeaderParam("Content-Type", contentType);
440
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(goodReadsBookPayloadDto, "GoodReadsBookPayloadDto", ""), contentType);
441
+ requestContext.setBody(serializedBody);
442
+ authMethod = _config.authMethods["bearer"];
443
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
444
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
445
+ case 1:
446
+ _b.sent();
447
+ _b.label = 2;
448
+ case 2:
449
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
450
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
451
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
452
+ case 3:
453
+ _b.sent();
454
+ _b.label = 4;
455
+ case 4: return [2, requestContext];
456
+ }
457
+ });
458
+ });
459
+ };
460
+ BooksApiRequestFactory.prototype.bookControllerFindReadingGoal = function (user, _options) {
461
+ return __awaiter(this, void 0, void 0, function () {
462
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
463
+ var _a;
464
+ return __generator(this, function (_b) {
465
+ switch (_b.label) {
466
+ case 0:
467
+ _config = _options || this.configuration;
468
+ if (user === null || user === undefined) {
469
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerFindReadingGoal", "user");
470
+ }
471
+ localVarPath = '/v1/reading/goal';
472
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
473
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
474
+ if (user !== undefined) {
475
+ requestContext.setQueryParam("user", ObjectSerializer_1.ObjectSerializer.serialize(user, "string", ""));
476
+ }
477
+ authMethod = _config.authMethods["bearer"];
478
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
479
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
480
+ case 1:
481
+ _b.sent();
482
+ _b.label = 2;
483
+ case 2:
484
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
485
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
486
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
487
+ case 3:
488
+ _b.sent();
489
+ _b.label = 4;
490
+ case 4: return [2, requestContext];
491
+ }
492
+ });
493
+ });
494
+ };
495
+ BooksApiRequestFactory.prototype.bookControllerFindTopBooks = function (rate, page, limit, search, isPrompt, user, _options) {
496
+ return __awaiter(this, void 0, void 0, function () {
497
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
498
+ var _a;
499
+ return __generator(this, function (_b) {
500
+ switch (_b.label) {
501
+ case 0:
502
+ _config = _options || this.configuration;
503
+ if (rate === null || rate === undefined) {
504
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerFindTopBooks", "rate");
505
+ }
506
+ if (page === null || page === undefined) {
507
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerFindTopBooks", "page");
508
+ }
509
+ if (limit === null || limit === undefined) {
510
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerFindTopBooks", "limit");
511
+ }
512
+ localVarPath = '/v1/top/books';
513
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
514
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
515
+ if (search !== undefined) {
516
+ requestContext.setQueryParam("search", ObjectSerializer_1.ObjectSerializer.serialize(search, "string", ""));
517
+ }
518
+ if (rate !== undefined) {
519
+ requestContext.setQueryParam("rate", ObjectSerializer_1.ObjectSerializer.serialize(rate, "number", ""));
520
+ }
521
+ if (page !== undefined) {
522
+ requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", ""));
523
+ }
524
+ if (limit !== undefined) {
525
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
526
+ }
527
+ if (isPrompt !== undefined) {
528
+ requestContext.setQueryParam("isPrompt", ObjectSerializer_1.ObjectSerializer.serialize(isPrompt, "boolean", ""));
529
+ }
530
+ if (user !== undefined) {
531
+ requestContext.setQueryParam("user", ObjectSerializer_1.ObjectSerializer.serialize(user, "string", ""));
532
+ }
533
+ authMethod = _config.authMethods["bearer"];
534
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
535
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
536
+ case 1:
537
+ _b.sent();
538
+ _b.label = 2;
539
+ case 2:
540
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
541
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
542
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
543
+ case 3:
544
+ _b.sent();
545
+ _b.label = 4;
546
+ case 4: return [2, requestContext];
547
+ }
548
+ });
549
+ });
550
+ };
551
+ BooksApiRequestFactory.prototype.bookControllerFindUserBookReview = function (bookId, status, rate, review, _options) {
552
+ return __awaiter(this, void 0, void 0, function () {
553
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
554
+ var _a;
555
+ return __generator(this, function (_b) {
556
+ switch (_b.label) {
557
+ case 0:
558
+ _config = _options || this.configuration;
559
+ if (bookId === null || bookId === undefined) {
560
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerFindUserBookReview", "bookId");
561
+ }
562
+ localVarPath = '/v1/user/book/review';
563
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
564
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
565
+ if (bookId !== undefined) {
566
+ requestContext.setQueryParam("bookId", ObjectSerializer_1.ObjectSerializer.serialize(bookId, "string", ""));
567
+ }
568
+ if (status !== undefined) {
569
+ requestContext.setQueryParam("status", ObjectSerializer_1.ObjectSerializer.serialize(status, "string", ""));
570
+ }
571
+ if (rate !== undefined) {
572
+ requestContext.setQueryParam("rate", ObjectSerializer_1.ObjectSerializer.serialize(rate, "number", ""));
573
+ }
574
+ if (review !== undefined) {
575
+ requestContext.setQueryParam("review", ObjectSerializer_1.ObjectSerializer.serialize(review, "string", ""));
576
+ }
577
+ authMethod = _config.authMethods["bearer"];
578
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
579
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
580
+ case 1:
581
+ _b.sent();
582
+ _b.label = 2;
583
+ case 2:
584
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
585
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
586
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
587
+ case 3:
588
+ _b.sent();
589
+ _b.label = 4;
590
+ case 4: return [2, requestContext];
591
+ }
592
+ });
593
+ });
594
+ };
595
+ BooksApiRequestFactory.prototype.bookControllerFindUserBookReviewCount = function (bookId, status, rate, review, _options) {
596
+ return __awaiter(this, void 0, void 0, function () {
597
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
598
+ var _a;
599
+ return __generator(this, function (_b) {
600
+ switch (_b.label) {
601
+ case 0:
602
+ _config = _options || this.configuration;
603
+ if (bookId === null || bookId === undefined) {
604
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerFindUserBookReviewCount", "bookId");
605
+ }
606
+ localVarPath = '/v1/book/review/count';
607
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
608
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
609
+ if (bookId !== undefined) {
610
+ requestContext.setQueryParam("bookId", ObjectSerializer_1.ObjectSerializer.serialize(bookId, "string", ""));
611
+ }
612
+ if (status !== undefined) {
613
+ requestContext.setQueryParam("status", ObjectSerializer_1.ObjectSerializer.serialize(status, "string", ""));
614
+ }
615
+ if (rate !== undefined) {
616
+ requestContext.setQueryParam("rate", ObjectSerializer_1.ObjectSerializer.serialize(rate, "number", ""));
617
+ }
618
+ if (review !== undefined) {
619
+ requestContext.setQueryParam("review", ObjectSerializer_1.ObjectSerializer.serialize(review, "string", ""));
620
+ }
621
+ authMethod = _config.authMethods["bearer"];
622
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
623
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
624
+ case 1:
625
+ _b.sent();
626
+ _b.label = 2;
627
+ case 2:
628
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
629
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
630
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
631
+ case 3:
632
+ _b.sent();
633
+ _b.label = 4;
634
+ case 4: return [2, requestContext];
635
+ }
636
+ });
637
+ });
638
+ };
639
+ BooksApiRequestFactory.prototype.bookControllerFindUserBookReviews = function (bookId, page, limit, userId, rate, _options) {
640
+ return __awaiter(this, void 0, void 0, function () {
641
+ var _config, localVarPath, requestContext, serializedParams, _i, serializedParams_1, serializedParam, authMethod, defaultAuth;
642
+ var _a;
643
+ return __generator(this, function (_b) {
644
+ switch (_b.label) {
645
+ case 0:
646
+ _config = _options || this.configuration;
647
+ if (bookId === null || bookId === undefined) {
648
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerFindUserBookReviews", "bookId");
649
+ }
650
+ if (page === null || page === undefined) {
651
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerFindUserBookReviews", "page");
652
+ }
653
+ if (limit === null || limit === undefined) {
654
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerFindUserBookReviews", "limit");
655
+ }
656
+ localVarPath = '/v1/book/review';
657
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
658
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
659
+ if (bookId !== undefined) {
660
+ requestContext.setQueryParam("bookId", ObjectSerializer_1.ObjectSerializer.serialize(bookId, "string", ""));
661
+ }
662
+ if (userId !== undefined) {
663
+ requestContext.setQueryParam("userId", ObjectSerializer_1.ObjectSerializer.serialize(userId, "string", ""));
664
+ }
665
+ if (page !== undefined) {
666
+ requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", ""));
667
+ }
668
+ if (limit !== undefined) {
669
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
670
+ }
671
+ if (rate !== undefined) {
672
+ serializedParams = ObjectSerializer_1.ObjectSerializer.serialize(rate, "Array<number>", "");
673
+ for (_i = 0, serializedParams_1 = serializedParams; _i < serializedParams_1.length; _i++) {
674
+ serializedParam = serializedParams_1[_i];
675
+ requestContext.appendQueryParam("rate", serializedParam);
676
+ }
677
+ }
678
+ authMethod = _config.authMethods["bearer"];
679
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
680
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
681
+ case 1:
682
+ _b.sent();
683
+ _b.label = 2;
684
+ case 2:
685
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
686
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
687
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
688
+ case 3:
689
+ _b.sent();
690
+ _b.label = 4;
691
+ case 4: return [2, requestContext];
692
+ }
693
+ });
694
+ });
695
+ };
696
+ BooksApiRequestFactory.prototype.bookControllerFindUserWhichReadBook = function (_options) {
697
+ return __awaiter(this, void 0, void 0, function () {
698
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
699
+ var _a;
700
+ return __generator(this, function (_b) {
701
+ switch (_b.label) {
702
+ case 0:
703
+ _config = _options || this.configuration;
704
+ localVarPath = '/v1/book/reader';
705
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
706
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
707
+ authMethod = _config.authMethods["bearer"];
708
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
709
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
710
+ case 1:
711
+ _b.sent();
712
+ _b.label = 2;
713
+ case 2:
714
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
715
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
716
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
717
+ case 3:
718
+ _b.sent();
719
+ _b.label = 4;
720
+ case 4: return [2, requestContext];
721
+ }
722
+ });
723
+ });
724
+ };
725
+ BooksApiRequestFactory.prototype.bookControllerRemoveTopBook = function (topBookPayload, _options) {
726
+ return __awaiter(this, void 0, void 0, function () {
727
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
728
+ var _a;
729
+ return __generator(this, function (_b) {
730
+ switch (_b.label) {
731
+ case 0:
732
+ _config = _options || this.configuration;
733
+ if (topBookPayload === null || topBookPayload === undefined) {
734
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerRemoveTopBook", "topBookPayload");
735
+ }
736
+ localVarPath = '/v1/remove/top/books';
737
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
738
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
739
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
740
+ "application/json"
741
+ ]);
742
+ requestContext.setHeaderParam("Content-Type", contentType);
743
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(topBookPayload, "TopBookPayload", ""), contentType);
744
+ requestContext.setBody(serializedBody);
745
+ authMethod = _config.authMethods["bearer"];
746
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
747
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
748
+ case 1:
749
+ _b.sent();
750
+ _b.label = 2;
751
+ case 2:
752
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
753
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
754
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
755
+ case 3:
756
+ _b.sent();
757
+ _b.label = 4;
758
+ case 4: return [2, requestContext];
759
+ }
760
+ });
761
+ });
762
+ };
763
+ BooksApiRequestFactory.prototype.bookControllerUpdateBookPosition = function (bookPositionDto, _options) {
764
+ return __awaiter(this, void 0, void 0, function () {
765
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
766
+ var _a;
767
+ return __generator(this, function (_b) {
768
+ switch (_b.label) {
769
+ case 0:
770
+ _config = _options || this.configuration;
771
+ if (bookPositionDto === null || bookPositionDto === undefined) {
772
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerUpdateBookPosition", "bookPositionDto");
773
+ }
774
+ localVarPath = '/v1/book/position';
775
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
776
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
777
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
778
+ "application/json"
779
+ ]);
780
+ requestContext.setHeaderParam("Content-Type", contentType);
781
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(bookPositionDto, "BookPositionDto", ""), contentType);
782
+ requestContext.setBody(serializedBody);
783
+ authMethod = _config.authMethods["bearer"];
784
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
785
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
786
+ case 1:
787
+ _b.sent();
788
+ _b.label = 2;
789
+ case 2:
790
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
791
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
792
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
793
+ case 3:
794
+ _b.sent();
795
+ _b.label = 4;
796
+ case 4: return [2, requestContext];
797
+ }
798
+ });
799
+ });
800
+ };
801
+ BooksApiRequestFactory.prototype.bookControllerUserBookMark = function (userBookPayloadDto, _options) {
802
+ return __awaiter(this, void 0, void 0, function () {
803
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
804
+ var _a;
805
+ return __generator(this, function (_b) {
806
+ switch (_b.label) {
807
+ case 0:
808
+ _config = _options || this.configuration;
809
+ if (userBookPayloadDto === null || userBookPayloadDto === undefined) {
810
+ throw new baseapi_1.RequiredError("BooksApi", "bookControllerUserBookMark", "userBookPayloadDto");
811
+ }
812
+ localVarPath = '/v1/user/book';
813
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
814
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
815
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
816
+ "application/json"
817
+ ]);
818
+ requestContext.setHeaderParam("Content-Type", contentType);
819
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userBookPayloadDto, "UserBookPayloadDto", ""), contentType);
820
+ requestContext.setBody(serializedBody);
821
+ authMethod = _config.authMethods["bearer"];
822
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
823
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
824
+ case 1:
825
+ _b.sent();
826
+ _b.label = 2;
827
+ case 2:
828
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
829
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
830
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
831
+ case 3:
832
+ _b.sent();
833
+ _b.label = 4;
834
+ case 4: return [2, requestContext];
835
+ }
836
+ });
837
+ });
838
+ };
839
+ return BooksApiRequestFactory;
840
+ }(baseapi_1.BaseAPIRequestFactory));
841
+ exports.BooksApiRequestFactory = BooksApiRequestFactory;
842
+ var BooksApiResponseProcessor = (function () {
843
+ function BooksApiResponseProcessor() {
844
+ }
845
+ BooksApiResponseProcessor.prototype.bookControllerAddBookWithHttpInfo = function (response) {
846
+ return __awaiter(this, void 0, void 0, function () {
847
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
848
+ return __generator(this, function (_l) {
849
+ switch (_l.label) {
850
+ case 0:
851
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
852
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
853
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
854
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
855
+ return [4, response.body.text()];
856
+ case 1:
857
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
858
+ "BookResponseDto", ""]);
859
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
860
+ case 2:
861
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
862
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
863
+ }
864
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
865
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
866
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
867
+ return [4, response.body.text()];
868
+ case 3:
869
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
870
+ "BookResponseDto", ""]);
871
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
872
+ case 4:
873
+ _j = exception_1.ApiException.bind;
874
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
875
+ return [4, response.getBodyAsAny()];
876
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
877
+ }
878
+ });
879
+ });
880
+ };
881
+ BooksApiResponseProcessor.prototype.bookControllerAddMyGoodReadsBooksWithHttpInfo = function (response) {
882
+ return __awaiter(this, void 0, void 0, function () {
883
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
884
+ return __generator(this, function (_l) {
885
+ switch (_l.label) {
886
+ case 0:
887
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
888
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
889
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
890
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
891
+ return [4, response.body.text()];
892
+ case 1:
893
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
894
+ "BooksStatusResponseDto", ""]);
895
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
896
+ case 2:
897
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
898
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
899
+ }
900
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
901
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
902
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
903
+ return [4, response.body.text()];
904
+ case 3:
905
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
906
+ "BooksStatusResponseDto", ""]);
907
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
908
+ case 4:
909
+ _j = exception_1.ApiException.bind;
910
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
911
+ return [4, response.getBodyAsAny()];
912
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
913
+ }
914
+ });
915
+ });
916
+ };
917
+ BooksApiResponseProcessor.prototype.bookControllerAddReadingGoalWithHttpInfo = function (response) {
918
+ return __awaiter(this, void 0, void 0, function () {
919
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
920
+ return __generator(this, function (_l) {
921
+ switch (_l.label) {
922
+ case 0:
923
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
924
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
925
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
926
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
927
+ return [4, response.body.text()];
928
+ case 1:
929
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
930
+ "ReadingGoalResponseDTO", ""]);
931
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
932
+ case 2:
933
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
934
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
935
+ }
936
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
937
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
938
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
939
+ return [4, response.body.text()];
940
+ case 3:
941
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
942
+ "ReadingGoalResponseDTO", ""]);
943
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
944
+ case 4:
945
+ _j = exception_1.ApiException.bind;
946
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
947
+ return [4, response.getBodyAsAny()];
948
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
949
+ }
950
+ });
951
+ });
952
+ };
953
+ BooksApiResponseProcessor.prototype.bookControllerAddTopBookWithHttpInfo = function (response) {
954
+ return __awaiter(this, void 0, void 0, function () {
955
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
956
+ return __generator(this, function (_l) {
957
+ switch (_l.label) {
958
+ case 0:
959
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
960
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
961
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
962
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
963
+ return [4, response.body.text()];
964
+ case 1:
965
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
966
+ "TopBooksResponseDTO", ""]);
967
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
968
+ case 2:
969
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
970
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
971
+ }
972
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
973
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
974
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
975
+ return [4, response.body.text()];
976
+ case 3:
977
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
978
+ "TopBooksResponseDTO", ""]);
979
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
980
+ case 4:
981
+ _j = exception_1.ApiException.bind;
982
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
983
+ return [4, response.getBodyAsAny()];
984
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
985
+ }
986
+ });
987
+ });
988
+ };
989
+ BooksApiResponseProcessor.prototype.bookControllerDeleteReviewWithHttpInfo = function (response) {
990
+ return __awaiter(this, void 0, void 0, function () {
991
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
992
+ return __generator(this, function (_l) {
993
+ switch (_l.label) {
994
+ case 0:
995
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
996
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
997
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
998
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
999
+ return [4, response.body.text()];
1000
+ case 1:
1001
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1002
+ "UserBookDeleteResponseDto", ""]);
1003
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1004
+ case 2:
1005
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1006
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1007
+ }
1008
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1009
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1010
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1011
+ return [4, response.body.text()];
1012
+ case 3:
1013
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1014
+ "UserBookDeleteResponseDto", ""]);
1015
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1016
+ case 4:
1017
+ _j = exception_1.ApiException.bind;
1018
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1019
+ return [4, response.getBodyAsAny()];
1020
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1021
+ }
1022
+ });
1023
+ });
1024
+ };
1025
+ BooksApiResponseProcessor.prototype.bookControllerFindBookByIdWithHttpInfo = function (response) {
1026
+ return __awaiter(this, void 0, void 0, function () {
1027
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1028
+ return __generator(this, function (_l) {
1029
+ switch (_l.label) {
1030
+ case 0:
1031
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1032
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1033
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1034
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1035
+ return [4, response.body.text()];
1036
+ case 1:
1037
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1038
+ "BookResponseDto", ""]);
1039
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1040
+ case 2:
1041
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1042
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1043
+ }
1044
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1045
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1046
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1047
+ return [4, response.body.text()];
1048
+ case 3:
1049
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1050
+ "BookResponseDto", ""]);
1051
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1052
+ case 4:
1053
+ _j = exception_1.ApiException.bind;
1054
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1055
+ return [4, response.getBodyAsAny()];
1056
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1057
+ }
1058
+ });
1059
+ });
1060
+ };
1061
+ BooksApiResponseProcessor.prototype.bookControllerFindBookByStatusWithHttpInfo = function (response) {
1062
+ return __awaiter(this, void 0, void 0, function () {
1063
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1064
+ return __generator(this, function (_l) {
1065
+ switch (_l.label) {
1066
+ case 0:
1067
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1068
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1069
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1070
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1071
+ return [4, response.body.text()];
1072
+ case 1:
1073
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1074
+ "BooksReviewResponseDto", ""]);
1075
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1076
+ case 2:
1077
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1078
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1079
+ }
1080
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1081
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1082
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1083
+ return [4, response.body.text()];
1084
+ case 3:
1085
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1086
+ "BooksReviewResponseDto", ""]);
1087
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1088
+ case 4:
1089
+ _j = exception_1.ApiException.bind;
1090
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1091
+ return [4, response.getBodyAsAny()];
1092
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1093
+ }
1094
+ });
1095
+ });
1096
+ };
1097
+ BooksApiResponseProcessor.prototype.bookControllerFindBookReviewBaseWithHttpInfo = function (response) {
1098
+ return __awaiter(this, void 0, void 0, function () {
1099
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1100
+ return __generator(this, function (_l) {
1101
+ switch (_l.label) {
1102
+ case 0:
1103
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1104
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1105
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1106
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1107
+ return [4, response.body.text()];
1108
+ case 1:
1109
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1110
+ "BooksReviewResponseDto", ""]);
1111
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1112
+ case 2:
1113
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1114
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1115
+ }
1116
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1117
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1118
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1119
+ return [4, response.body.text()];
1120
+ case 3:
1121
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1122
+ "BooksReviewResponseDto", ""]);
1123
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1124
+ case 4:
1125
+ _j = exception_1.ApiException.bind;
1126
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1127
+ return [4, response.getBodyAsAny()];
1128
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1129
+ }
1130
+ });
1131
+ });
1132
+ };
1133
+ BooksApiResponseProcessor.prototype.bookControllerFindBooksWithHttpInfo = function (response) {
1134
+ return __awaiter(this, void 0, void 0, function () {
1135
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1136
+ return __generator(this, function (_l) {
1137
+ switch (_l.label) {
1138
+ case 0:
1139
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1140
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1141
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1142
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1143
+ return [4, response.body.text()];
1144
+ case 1:
1145
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1146
+ "BooksResponseDto", ""]);
1147
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1148
+ case 2:
1149
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1150
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1151
+ }
1152
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1153
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1154
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1155
+ return [4, response.body.text()];
1156
+ case 3:
1157
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1158
+ "BooksResponseDto", ""]);
1159
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1160
+ case 4:
1161
+ _j = exception_1.ApiException.bind;
1162
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1163
+ return [4, response.getBodyAsAny()];
1164
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1165
+ }
1166
+ });
1167
+ });
1168
+ };
1169
+ BooksApiResponseProcessor.prototype.bookControllerFindGoodReadsWithHttpInfo = function (response) {
1170
+ return __awaiter(this, void 0, void 0, function () {
1171
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1172
+ return __generator(this, function (_l) {
1173
+ switch (_l.label) {
1174
+ case 0:
1175
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1176
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1177
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1178
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1179
+ return [4, response.body.text()];
1180
+ case 1:
1181
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1182
+ "BooksReviewResponseDto", ""]);
1183
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1184
+ case 2:
1185
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1186
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1187
+ }
1188
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1189
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1190
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1191
+ return [4, response.body.text()];
1192
+ case 3:
1193
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1194
+ "BooksReviewResponseDto", ""]);
1195
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1196
+ case 4:
1197
+ _j = exception_1.ApiException.bind;
1198
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1199
+ return [4, response.getBodyAsAny()];
1200
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1201
+ }
1202
+ });
1203
+ });
1204
+ };
1205
+ BooksApiResponseProcessor.prototype.bookControllerFindReadingGoalWithHttpInfo = function (response) {
1206
+ return __awaiter(this, void 0, void 0, function () {
1207
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1208
+ return __generator(this, function (_l) {
1209
+ switch (_l.label) {
1210
+ case 0:
1211
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1212
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1213
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1214
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1215
+ return [4, response.body.text()];
1216
+ case 1:
1217
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1218
+ "ReadingGoalResponseDTO", ""]);
1219
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1220
+ case 2:
1221
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1222
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1223
+ }
1224
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1225
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1226
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1227
+ return [4, response.body.text()];
1228
+ case 3:
1229
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1230
+ "ReadingGoalResponseDTO", ""]);
1231
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1232
+ case 4:
1233
+ _j = exception_1.ApiException.bind;
1234
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1235
+ return [4, response.getBodyAsAny()];
1236
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1237
+ }
1238
+ });
1239
+ });
1240
+ };
1241
+ BooksApiResponseProcessor.prototype.bookControllerFindTopBooksWithHttpInfo = function (response) {
1242
+ return __awaiter(this, void 0, void 0, function () {
1243
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1244
+ return __generator(this, function (_l) {
1245
+ switch (_l.label) {
1246
+ case 0:
1247
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1248
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1249
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1250
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1251
+ return [4, response.body.text()];
1252
+ case 1:
1253
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1254
+ "BooksReviewResponseDto", ""]);
1255
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1256
+ case 2:
1257
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1258
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1259
+ }
1260
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1261
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1262
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1263
+ return [4, response.body.text()];
1264
+ case 3:
1265
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1266
+ "BooksReviewResponseDto", ""]);
1267
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1268
+ case 4:
1269
+ _j = exception_1.ApiException.bind;
1270
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1271
+ return [4, response.getBodyAsAny()];
1272
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1273
+ }
1274
+ });
1275
+ });
1276
+ };
1277
+ BooksApiResponseProcessor.prototype.bookControllerFindUserBookReviewWithHttpInfo = function (response) {
1278
+ return __awaiter(this, void 0, void 0, function () {
1279
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1280
+ return __generator(this, function (_l) {
1281
+ switch (_l.label) {
1282
+ case 0:
1283
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1284
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1285
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1286
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1287
+ return [4, response.body.text()];
1288
+ case 1:
1289
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1290
+ "UserBookReviewResponseDto", ""]);
1291
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1292
+ case 2:
1293
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1294
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1295
+ }
1296
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1297
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1298
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1299
+ return [4, response.body.text()];
1300
+ case 3:
1301
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1302
+ "UserBookReviewResponseDto", ""]);
1303
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1304
+ case 4:
1305
+ _j = exception_1.ApiException.bind;
1306
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1307
+ return [4, response.getBodyAsAny()];
1308
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1309
+ }
1310
+ });
1311
+ });
1312
+ };
1313
+ BooksApiResponseProcessor.prototype.bookControllerFindUserBookReviewCountWithHttpInfo = function (response) {
1314
+ return __awaiter(this, void 0, void 0, function () {
1315
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1316
+ return __generator(this, function (_l) {
1317
+ switch (_l.label) {
1318
+ case 0:
1319
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1320
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1321
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1322
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1323
+ return [4, response.body.text()];
1324
+ case 1:
1325
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1326
+ "BookReviewCountResponseDto", ""]);
1327
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1328
+ case 2:
1329
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1330
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1331
+ }
1332
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1333
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1334
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1335
+ return [4, response.body.text()];
1336
+ case 3:
1337
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1338
+ "BookReviewCountResponseDto", ""]);
1339
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1340
+ case 4:
1341
+ _j = exception_1.ApiException.bind;
1342
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1343
+ return [4, response.getBodyAsAny()];
1344
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1345
+ }
1346
+ });
1347
+ });
1348
+ };
1349
+ BooksApiResponseProcessor.prototype.bookControllerFindUserBookReviewsWithHttpInfo = function (response) {
1350
+ return __awaiter(this, void 0, void 0, function () {
1351
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1352
+ return __generator(this, function (_l) {
1353
+ switch (_l.label) {
1354
+ case 0:
1355
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1356
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1357
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1358
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1359
+ return [4, response.body.text()];
1360
+ case 1:
1361
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1362
+ "UserBooksResponseDto", ""]);
1363
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1364
+ case 2:
1365
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1366
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1367
+ }
1368
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1369
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1370
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1371
+ return [4, response.body.text()];
1372
+ case 3:
1373
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1374
+ "UserBooksResponseDto", ""]);
1375
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1376
+ case 4:
1377
+ _j = exception_1.ApiException.bind;
1378
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1379
+ return [4, response.getBodyAsAny()];
1380
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1381
+ }
1382
+ });
1383
+ });
1384
+ };
1385
+ BooksApiResponseProcessor.prototype.bookControllerFindUserWhichReadBookWithHttpInfo = function (response) {
1386
+ return __awaiter(this, void 0, void 0, function () {
1387
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1388
+ return __generator(this, function (_l) {
1389
+ switch (_l.label) {
1390
+ case 0:
1391
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1392
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1393
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1394
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1395
+ return [4, response.body.text()];
1396
+ case 1:
1397
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1398
+ "UserBooksResponseDto", ""]);
1399
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1400
+ case 2:
1401
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1402
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1403
+ }
1404
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1405
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1406
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1407
+ return [4, response.body.text()];
1408
+ case 3:
1409
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1410
+ "UserBooksResponseDto", ""]);
1411
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1412
+ case 4:
1413
+ _j = exception_1.ApiException.bind;
1414
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1415
+ return [4, response.getBodyAsAny()];
1416
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1417
+ }
1418
+ });
1419
+ });
1420
+ };
1421
+ BooksApiResponseProcessor.prototype.bookControllerRemoveTopBookWithHttpInfo = function (response) {
1422
+ return __awaiter(this, void 0, void 0, function () {
1423
+ var contentType, _a, _b;
1424
+ return __generator(this, function (_c) {
1425
+ switch (_c.label) {
1426
+ case 0:
1427
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1428
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1429
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1430
+ }
1431
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1432
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined)];
1433
+ }
1434
+ _a = exception_1.ApiException.bind;
1435
+ _b = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1436
+ return [4, response.getBodyAsAny()];
1437
+ case 1: throw new (_a.apply(exception_1.ApiException, _b.concat([_c.sent(), response.headers])))();
1438
+ }
1439
+ });
1440
+ });
1441
+ };
1442
+ BooksApiResponseProcessor.prototype.bookControllerUpdateBookPositionWithHttpInfo = function (response) {
1443
+ return __awaiter(this, void 0, void 0, function () {
1444
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1445
+ return __generator(this, function (_l) {
1446
+ switch (_l.label) {
1447
+ case 0:
1448
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1449
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1450
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1451
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1452
+ return [4, response.body.text()];
1453
+ case 1:
1454
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1455
+ "BookResponseDto", ""]);
1456
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1457
+ case 2:
1458
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1459
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1460
+ }
1461
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1462
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1463
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1464
+ return [4, response.body.text()];
1465
+ case 3:
1466
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1467
+ "BookResponseDto", ""]);
1468
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1469
+ case 4:
1470
+ _j = exception_1.ApiException.bind;
1471
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1472
+ return [4, response.getBodyAsAny()];
1473
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1474
+ }
1475
+ });
1476
+ });
1477
+ };
1478
+ BooksApiResponseProcessor.prototype.bookControllerUserBookMarkWithHttpInfo = function (response) {
1479
+ return __awaiter(this, void 0, void 0, function () {
1480
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1481
+ return __generator(this, function (_l) {
1482
+ switch (_l.label) {
1483
+ case 0:
1484
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1485
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1486
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1487
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1488
+ return [4, response.body.text()];
1489
+ case 1:
1490
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1491
+ "UserBookReviewResponseDto", ""]);
1492
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1493
+ case 2:
1494
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1495
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1496
+ }
1497
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1498
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1499
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1500
+ return [4, response.body.text()];
1501
+ case 3:
1502
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1503
+ "UserBookReviewResponseDto", ""]);
1504
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1505
+ case 4:
1506
+ _j = exception_1.ApiException.bind;
1507
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1508
+ return [4, response.getBodyAsAny()];
1509
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1510
+ }
1511
+ });
1512
+ });
1513
+ };
1514
+ return BooksApiResponseProcessor;
1515
+ }());
1516
+ exports.BooksApiResponseProcessor = BooksApiResponseProcessor;
1517
+ //# sourceMappingURL=BooksApi.js.map