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,2689 @@
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.AuthApiResponseProcessor = exports.AuthApiRequestFactory = 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 AuthApiRequestFactory = (function (_super) {
61
+ __extends(AuthApiRequestFactory, _super);
62
+ function AuthApiRequestFactory() {
63
+ return _super !== null && _super.apply(this, arguments) || this;
64
+ }
65
+ AuthApiRequestFactory.prototype.authControllerAccountDeletion = function (_options) {
66
+ return __awaiter(this, void 0, void 0, function () {
67
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
68
+ var _a;
69
+ return __generator(this, function (_b) {
70
+ switch (_b.label) {
71
+ case 0:
72
+ _config = _options || this.configuration;
73
+ localVarPath = '/v1/auth/delete';
74
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
75
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
76
+ authMethod = _config.authMethods["bearer"];
77
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
78
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
79
+ case 1:
80
+ _b.sent();
81
+ _b.label = 2;
82
+ case 2:
83
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
84
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
85
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
86
+ case 3:
87
+ _b.sent();
88
+ _b.label = 4;
89
+ case 4: return [2, requestContext];
90
+ }
91
+ });
92
+ });
93
+ };
94
+ AuthApiRequestFactory.prototype.authControllerAddFeedback = function (feedbackPayloadDto, _options) {
95
+ return __awaiter(this, void 0, void 0, function () {
96
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
97
+ var _a;
98
+ return __generator(this, function (_b) {
99
+ switch (_b.label) {
100
+ case 0:
101
+ _config = _options || this.configuration;
102
+ if (feedbackPayloadDto === null || feedbackPayloadDto === undefined) {
103
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerAddFeedback", "feedbackPayloadDto");
104
+ }
105
+ localVarPath = '/v1/auth/feedback';
106
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
107
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
108
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
109
+ "application/json"
110
+ ]);
111
+ requestContext.setHeaderParam("Content-Type", contentType);
112
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(feedbackPayloadDto, "FeedbackPayloadDto", ""), contentType);
113
+ requestContext.setBody(serializedBody);
114
+ authMethod = _config.authMethods["bearer"];
115
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
116
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
117
+ case 1:
118
+ _b.sent();
119
+ _b.label = 2;
120
+ case 2:
121
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
122
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
123
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
124
+ case 3:
125
+ _b.sent();
126
+ _b.label = 4;
127
+ case 4: return [2, requestContext];
128
+ }
129
+ });
130
+ });
131
+ };
132
+ AuthApiRequestFactory.prototype.authControllerAppfeepercentageUpdate = function (appfeepercentageUpdatePayloadDto, _options) {
133
+ return __awaiter(this, void 0, void 0, function () {
134
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
135
+ var _a;
136
+ return __generator(this, function (_b) {
137
+ switch (_b.label) {
138
+ case 0:
139
+ _config = _options || this.configuration;
140
+ if (appfeepercentageUpdatePayloadDto === null || appfeepercentageUpdatePayloadDto === undefined) {
141
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerAppfeepercentageUpdate", "appfeepercentageUpdatePayloadDto");
142
+ }
143
+ localVarPath = '/v1/auth/appfee_percentage';
144
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
145
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
146
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
147
+ "application/json"
148
+ ]);
149
+ requestContext.setHeaderParam("Content-Type", contentType);
150
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(appfeepercentageUpdatePayloadDto, "AppfeepercentageUpdatePayloadDto", ""), contentType);
151
+ requestContext.setBody(serializedBody);
152
+ authMethod = _config.authMethods["bearer"];
153
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
154
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
155
+ case 1:
156
+ _b.sent();
157
+ _b.label = 2;
158
+ case 2:
159
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
160
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
161
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
162
+ case 3:
163
+ _b.sent();
164
+ _b.label = 4;
165
+ case 4: return [2, requestContext];
166
+ }
167
+ });
168
+ });
169
+ };
170
+ AuthApiRequestFactory.prototype.authControllerChangePassword = function (changePayloadDto, _options) {
171
+ return __awaiter(this, void 0, void 0, function () {
172
+ var _config, localVarPath, requestContext, contentType, serializedBody, defaultAuth;
173
+ var _a;
174
+ return __generator(this, function (_b) {
175
+ switch (_b.label) {
176
+ case 0:
177
+ _config = _options || this.configuration;
178
+ if (changePayloadDto === null || changePayloadDto === undefined) {
179
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerChangePassword", "changePayloadDto");
180
+ }
181
+ localVarPath = '/v1/auth/change-password';
182
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
183
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
184
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
185
+ "application/json"
186
+ ]);
187
+ requestContext.setHeaderParam("Content-Type", contentType);
188
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(changePayloadDto, "ChangePayloadDto", ""), contentType);
189
+ requestContext.setBody(serializedBody);
190
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
191
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 2];
192
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
193
+ case 1:
194
+ _b.sent();
195
+ _b.label = 2;
196
+ case 2: return [2, requestContext];
197
+ }
198
+ });
199
+ });
200
+ };
201
+ AuthApiRequestFactory.prototype.authControllerCreateBusinessUser = function (signupPayloadDto, _options) {
202
+ return __awaiter(this, void 0, void 0, function () {
203
+ var _config, localVarPath, requestContext, contentType, serializedBody, defaultAuth;
204
+ var _a;
205
+ return __generator(this, function (_b) {
206
+ switch (_b.label) {
207
+ case 0:
208
+ _config = _options || this.configuration;
209
+ if (signupPayloadDto === null || signupPayloadDto === undefined) {
210
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerCreateBusinessUser", "signupPayloadDto");
211
+ }
212
+ localVarPath = '/v1/auth/register-business';
213
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
214
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
215
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
216
+ "application/json"
217
+ ]);
218
+ requestContext.setHeaderParam("Content-Type", contentType);
219
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(signupPayloadDto, "SignupPayloadDto", ""), contentType);
220
+ requestContext.setBody(serializedBody);
221
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
222
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 2];
223
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
224
+ case 1:
225
+ _b.sent();
226
+ _b.label = 2;
227
+ case 2: return [2, requestContext];
228
+ }
229
+ });
230
+ });
231
+ };
232
+ AuthApiRequestFactory.prototype.authControllerCreateRoles = function (createRoleDto, _options) {
233
+ return __awaiter(this, void 0, void 0, function () {
234
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
235
+ var _a;
236
+ return __generator(this, function (_b) {
237
+ switch (_b.label) {
238
+ case 0:
239
+ _config = _options || this.configuration;
240
+ if (createRoleDto === null || createRoleDto === undefined) {
241
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerCreateRoles", "createRoleDto");
242
+ }
243
+ localVarPath = '/v1/auth/role';
244
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
245
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
246
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
247
+ "application/json"
248
+ ]);
249
+ requestContext.setHeaderParam("Content-Type", contentType);
250
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(createRoleDto, "CreateRoleDto", ""), contentType);
251
+ requestContext.setBody(serializedBody);
252
+ authMethod = _config.authMethods["bearer"];
253
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
254
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
255
+ case 1:
256
+ _b.sent();
257
+ _b.label = 2;
258
+ case 2:
259
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
260
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
261
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
262
+ case 3:
263
+ _b.sent();
264
+ _b.label = 4;
265
+ case 4: return [2, requestContext];
266
+ }
267
+ });
268
+ });
269
+ };
270
+ AuthApiRequestFactory.prototype.authControllerCreateStaff = function (createStaffDto, _options) {
271
+ return __awaiter(this, void 0, void 0, function () {
272
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
273
+ var _a;
274
+ return __generator(this, function (_b) {
275
+ switch (_b.label) {
276
+ case 0:
277
+ _config = _options || this.configuration;
278
+ if (createStaffDto === null || createStaffDto === undefined) {
279
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerCreateStaff", "createStaffDto");
280
+ }
281
+ localVarPath = '/v1/auth/staff';
282
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
283
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
284
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
285
+ "application/json"
286
+ ]);
287
+ requestContext.setHeaderParam("Content-Type", contentType);
288
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(createStaffDto, "CreateStaffDto", ""), contentType);
289
+ requestContext.setBody(serializedBody);
290
+ authMethod = _config.authMethods["bearer"];
291
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
292
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
293
+ case 1:
294
+ _b.sent();
295
+ _b.label = 2;
296
+ case 2:
297
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
298
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
299
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
300
+ case 3:
301
+ _b.sent();
302
+ _b.label = 4;
303
+ case 4: return [2, requestContext];
304
+ }
305
+ });
306
+ });
307
+ };
308
+ AuthApiRequestFactory.prototype.authControllerCreateStaffRole = function (createStaffRoleDto, _options) {
309
+ return __awaiter(this, void 0, void 0, function () {
310
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
311
+ var _a;
312
+ return __generator(this, function (_b) {
313
+ switch (_b.label) {
314
+ case 0:
315
+ _config = _options || this.configuration;
316
+ if (createStaffRoleDto === null || createStaffRoleDto === undefined) {
317
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerCreateStaffRole", "createStaffRoleDto");
318
+ }
319
+ localVarPath = '/v1/auth/staff-role';
320
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
321
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
322
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
323
+ "application/json"
324
+ ]);
325
+ requestContext.setHeaderParam("Content-Type", contentType);
326
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(createStaffRoleDto, "CreateStaffRoleDto", ""), contentType);
327
+ requestContext.setBody(serializedBody);
328
+ authMethod = _config.authMethods["bearer"];
329
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
330
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
331
+ case 1:
332
+ _b.sent();
333
+ _b.label = 2;
334
+ case 2:
335
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
336
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
337
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
338
+ case 3:
339
+ _b.sent();
340
+ _b.label = 4;
341
+ case 4: return [2, requestContext];
342
+ }
343
+ });
344
+ });
345
+ };
346
+ AuthApiRequestFactory.prototype.authControllerCreateUser = function (signupPayloadDto, _options) {
347
+ return __awaiter(this, void 0, void 0, function () {
348
+ var _config, localVarPath, requestContext, contentType, serializedBody, defaultAuth;
349
+ var _a;
350
+ return __generator(this, function (_b) {
351
+ switch (_b.label) {
352
+ case 0:
353
+ _config = _options || this.configuration;
354
+ if (signupPayloadDto === null || signupPayloadDto === undefined) {
355
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerCreateUser", "signupPayloadDto");
356
+ }
357
+ localVarPath = '/v1/auth/signup';
358
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
359
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
360
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
361
+ "application/json"
362
+ ]);
363
+ requestContext.setHeaderParam("Content-Type", contentType);
364
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(signupPayloadDto, "SignupPayloadDto", ""), contentType);
365
+ requestContext.setBody(serializedBody);
366
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
367
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 2];
368
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
369
+ case 1:
370
+ _b.sent();
371
+ _b.label = 2;
372
+ case 2: return [2, requestContext];
373
+ }
374
+ });
375
+ });
376
+ };
377
+ AuthApiRequestFactory.prototype.authControllerDeleteRole = function (id, _options) {
378
+ return __awaiter(this, void 0, void 0, function () {
379
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
380
+ var _a;
381
+ return __generator(this, function (_b) {
382
+ switch (_b.label) {
383
+ case 0:
384
+ _config = _options || this.configuration;
385
+ if (id === null || id === undefined) {
386
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerDeleteRole", "id");
387
+ }
388
+ localVarPath = '/v1/auth/role/{id}'
389
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
390
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
391
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
392
+ authMethod = _config.authMethods["bearer"];
393
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
394
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
395
+ case 1:
396
+ _b.sent();
397
+ _b.label = 2;
398
+ case 2:
399
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
400
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
401
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
402
+ case 3:
403
+ _b.sent();
404
+ _b.label = 4;
405
+ case 4: return [2, requestContext];
406
+ }
407
+ });
408
+ });
409
+ };
410
+ AuthApiRequestFactory.prototype.authControllerDeleteStaff = function (id, _options) {
411
+ return __awaiter(this, void 0, void 0, function () {
412
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
413
+ var _a;
414
+ return __generator(this, function (_b) {
415
+ switch (_b.label) {
416
+ case 0:
417
+ _config = _options || this.configuration;
418
+ if (id === null || id === undefined) {
419
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerDeleteStaff", "id");
420
+ }
421
+ localVarPath = '/v1/auth/staff/{id}'
422
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
423
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
424
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
425
+ authMethod = _config.authMethods["bearer"];
426
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
427
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
428
+ case 1:
429
+ _b.sent();
430
+ _b.label = 2;
431
+ case 2:
432
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
433
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
434
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
435
+ case 3:
436
+ _b.sent();
437
+ _b.label = 4;
438
+ case 4: return [2, requestContext];
439
+ }
440
+ });
441
+ });
442
+ };
443
+ AuthApiRequestFactory.prototype.authControllerDeleteStaffRole = function (id, _options) {
444
+ return __awaiter(this, void 0, void 0, function () {
445
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
446
+ var _a;
447
+ return __generator(this, function (_b) {
448
+ switch (_b.label) {
449
+ case 0:
450
+ _config = _options || this.configuration;
451
+ if (id === null || id === undefined) {
452
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerDeleteStaffRole", "id");
453
+ }
454
+ localVarPath = '/v1/auth/staff-role/{id}'
455
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
456
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.DELETE);
457
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
458
+ authMethod = _config.authMethods["bearer"];
459
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
460
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
461
+ case 1:
462
+ _b.sent();
463
+ _b.label = 2;
464
+ case 2:
465
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
466
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
467
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
468
+ case 3:
469
+ _b.sent();
470
+ _b.label = 4;
471
+ case 4: return [2, requestContext];
472
+ }
473
+ });
474
+ });
475
+ };
476
+ AuthApiRequestFactory.prototype.authControllerForgetPassword = function (forgetPasswordPayloadDto, _options) {
477
+ return __awaiter(this, void 0, void 0, function () {
478
+ var _config, localVarPath, requestContext, contentType, serializedBody, defaultAuth;
479
+ var _a;
480
+ return __generator(this, function (_b) {
481
+ switch (_b.label) {
482
+ case 0:
483
+ _config = _options || this.configuration;
484
+ if (forgetPasswordPayloadDto === null || forgetPasswordPayloadDto === undefined) {
485
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerForgetPassword", "forgetPasswordPayloadDto");
486
+ }
487
+ localVarPath = '/v1/auth/forget-password';
488
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
489
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
490
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
491
+ "application/json"
492
+ ]);
493
+ requestContext.setHeaderParam("Content-Type", contentType);
494
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(forgetPasswordPayloadDto, "ForgetPasswordPayloadDto", ""), contentType);
495
+ requestContext.setBody(serializedBody);
496
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
497
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 2];
498
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
499
+ case 1:
500
+ _b.sent();
501
+ _b.label = 2;
502
+ case 2: return [2, requestContext];
503
+ }
504
+ });
505
+ });
506
+ };
507
+ AuthApiRequestFactory.prototype.authControllerGetAchievement = function (user, _options) {
508
+ return __awaiter(this, void 0, void 0, function () {
509
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
510
+ var _a;
511
+ return __generator(this, function (_b) {
512
+ switch (_b.label) {
513
+ case 0:
514
+ _config = _options || this.configuration;
515
+ if (user === null || user === undefined) {
516
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerGetAchievement", "user");
517
+ }
518
+ localVarPath = '/v1/auth/achievement';
519
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
520
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
521
+ if (user !== undefined) {
522
+ requestContext.setQueryParam("user", ObjectSerializer_1.ObjectSerializer.serialize(user, "string", ""));
523
+ }
524
+ authMethod = _config.authMethods["bearer"];
525
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
526
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
527
+ case 1:
528
+ _b.sent();
529
+ _b.label = 2;
530
+ case 2:
531
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
532
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
533
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
534
+ case 3:
535
+ _b.sent();
536
+ _b.label = 4;
537
+ case 4: return [2, requestContext];
538
+ }
539
+ });
540
+ });
541
+ };
542
+ AuthApiRequestFactory.prototype.authControllerGetActivity = function (page, limit, longitude, latitude, global, search, _options) {
543
+ return __awaiter(this, void 0, void 0, function () {
544
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
545
+ var _a;
546
+ return __generator(this, function (_b) {
547
+ switch (_b.label) {
548
+ case 0:
549
+ _config = _options || this.configuration;
550
+ if (page === null || page === undefined) {
551
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerGetActivity", "page");
552
+ }
553
+ if (limit === null || limit === undefined) {
554
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerGetActivity", "limit");
555
+ }
556
+ localVarPath = '/v1/auth/activities';
557
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
558
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
559
+ if (page !== undefined) {
560
+ requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", ""));
561
+ }
562
+ if (limit !== undefined) {
563
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
564
+ }
565
+ if (longitude !== undefined) {
566
+ requestContext.setQueryParam("longitude", ObjectSerializer_1.ObjectSerializer.serialize(longitude, "number", ""));
567
+ }
568
+ if (latitude !== undefined) {
569
+ requestContext.setQueryParam("latitude", ObjectSerializer_1.ObjectSerializer.serialize(latitude, "number", ""));
570
+ }
571
+ if (global !== undefined) {
572
+ requestContext.setQueryParam("global", ObjectSerializer_1.ObjectSerializer.serialize(global, "boolean", ""));
573
+ }
574
+ if (search !== undefined) {
575
+ requestContext.setQueryParam("search", ObjectSerializer_1.ObjectSerializer.serialize(search, "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
+ AuthApiRequestFactory.prototype.authControllerGetAllStaff = function (page, ownerId, limit, search, _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 (page === null || page === undefined) {
604
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerGetAllStaff", "page");
605
+ }
606
+ if (ownerId === null || ownerId === undefined) {
607
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerGetAllStaff", "ownerId");
608
+ }
609
+ if (limit === null || limit === undefined) {
610
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerGetAllStaff", "limit");
611
+ }
612
+ localVarPath = '/v1/auth/staff';
613
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
614
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
615
+ if (page !== undefined) {
616
+ requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", ""));
617
+ }
618
+ if (search !== undefined) {
619
+ requestContext.setQueryParam("search", ObjectSerializer_1.ObjectSerializer.serialize(search, "string", ""));
620
+ }
621
+ if (ownerId !== undefined) {
622
+ requestContext.setQueryParam("ownerId", ObjectSerializer_1.ObjectSerializer.serialize(ownerId, "string", ""));
623
+ }
624
+ if (limit !== undefined) {
625
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
626
+ }
627
+ authMethod = _config.authMethods["bearer"];
628
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
629
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
630
+ case 1:
631
+ _b.sent();
632
+ _b.label = 2;
633
+ case 2:
634
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
635
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
636
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
637
+ case 3:
638
+ _b.sent();
639
+ _b.label = 4;
640
+ case 4: return [2, requestContext];
641
+ }
642
+ });
643
+ });
644
+ };
645
+ AuthApiRequestFactory.prototype.authControllerGetAllusers = function (page, limit, _options) {
646
+ return __awaiter(this, void 0, void 0, function () {
647
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
648
+ var _a;
649
+ return __generator(this, function (_b) {
650
+ switch (_b.label) {
651
+ case 0:
652
+ _config = _options || this.configuration;
653
+ if (page === null || page === undefined) {
654
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerGetAllusers", "page");
655
+ }
656
+ if (limit === null || limit === undefined) {
657
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerGetAllusers", "limit");
658
+ }
659
+ localVarPath = '/v1/auth/all_users';
660
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
661
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
662
+ if (page !== undefined) {
663
+ requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", ""));
664
+ }
665
+ if (limit !== undefined) {
666
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
667
+ }
668
+ authMethod = _config.authMethods["bearer"];
669
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
670
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
671
+ case 1:
672
+ _b.sent();
673
+ _b.label = 2;
674
+ case 2:
675
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
676
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
677
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
678
+ case 3:
679
+ _b.sent();
680
+ _b.label = 4;
681
+ case 4: return [2, requestContext];
682
+ }
683
+ });
684
+ });
685
+ };
686
+ AuthApiRequestFactory.prototype.authControllerGetEventsActivity = function (page, limit, longitude, latitude, global, search, _options) {
687
+ return __awaiter(this, void 0, void 0, function () {
688
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
689
+ var _a;
690
+ return __generator(this, function (_b) {
691
+ switch (_b.label) {
692
+ case 0:
693
+ _config = _options || this.configuration;
694
+ if (page === null || page === undefined) {
695
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerGetEventsActivity", "page");
696
+ }
697
+ if (limit === null || limit === undefined) {
698
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerGetEventsActivity", "limit");
699
+ }
700
+ localVarPath = '/v1/auth/events/activities';
701
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
702
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
703
+ if (page !== undefined) {
704
+ requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", ""));
705
+ }
706
+ if (limit !== undefined) {
707
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
708
+ }
709
+ if (longitude !== undefined) {
710
+ requestContext.setQueryParam("longitude", ObjectSerializer_1.ObjectSerializer.serialize(longitude, "number", ""));
711
+ }
712
+ if (latitude !== undefined) {
713
+ requestContext.setQueryParam("latitude", ObjectSerializer_1.ObjectSerializer.serialize(latitude, "number", ""));
714
+ }
715
+ if (global !== undefined) {
716
+ requestContext.setQueryParam("global", ObjectSerializer_1.ObjectSerializer.serialize(global, "boolean", ""));
717
+ }
718
+ if (search !== undefined) {
719
+ requestContext.setQueryParam("search", ObjectSerializer_1.ObjectSerializer.serialize(search, "string", ""));
720
+ }
721
+ authMethod = _config.authMethods["bearer"];
722
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
723
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
724
+ case 1:
725
+ _b.sent();
726
+ _b.label = 2;
727
+ case 2:
728
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
729
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
730
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
731
+ case 3:
732
+ _b.sent();
733
+ _b.label = 4;
734
+ case 4: return [2, requestContext];
735
+ }
736
+ });
737
+ });
738
+ };
739
+ AuthApiRequestFactory.prototype.authControllerGetEventsActivityByType = function (page, limit, type, userId, search, _options) {
740
+ return __awaiter(this, void 0, void 0, function () {
741
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
742
+ var _a;
743
+ return __generator(this, function (_b) {
744
+ switch (_b.label) {
745
+ case 0:
746
+ _config = _options || this.configuration;
747
+ if (page === null || page === undefined) {
748
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerGetEventsActivityByType", "page");
749
+ }
750
+ if (limit === null || limit === undefined) {
751
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerGetEventsActivityByType", "limit");
752
+ }
753
+ if (type === null || type === undefined) {
754
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerGetEventsActivityByType", "type");
755
+ }
756
+ localVarPath = '/v1/auth/type-activities';
757
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
758
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
759
+ if (page !== undefined) {
760
+ requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", ""));
761
+ }
762
+ if (limit !== undefined) {
763
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
764
+ }
765
+ if (type !== undefined) {
766
+ requestContext.setQueryParam("type", ObjectSerializer_1.ObjectSerializer.serialize(type, "string", ""));
767
+ }
768
+ if (userId !== undefined) {
769
+ requestContext.setQueryParam("userId", ObjectSerializer_1.ObjectSerializer.serialize(userId, "string", ""));
770
+ }
771
+ if (search !== undefined) {
772
+ requestContext.setQueryParam("search", ObjectSerializer_1.ObjectSerializer.serialize(search, "string", ""));
773
+ }
774
+ authMethod = _config.authMethods["bearer"];
775
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
776
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
777
+ case 1:
778
+ _b.sent();
779
+ _b.label = 2;
780
+ case 2:
781
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
782
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
783
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
784
+ case 3:
785
+ _b.sent();
786
+ _b.label = 4;
787
+ case 4: return [2, requestContext];
788
+ }
789
+ });
790
+ });
791
+ };
792
+ AuthApiRequestFactory.prototype.authControllerGetInterests = function (_options) {
793
+ return __awaiter(this, void 0, void 0, function () {
794
+ var _config, localVarPath, requestContext, defaultAuth;
795
+ var _a;
796
+ return __generator(this, function (_b) {
797
+ switch (_b.label) {
798
+ case 0:
799
+ _config = _options || this.configuration;
800
+ localVarPath = '/v1/auth/interests';
801
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
802
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
803
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
804
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 2];
805
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
806
+ case 1:
807
+ _b.sent();
808
+ _b.label = 2;
809
+ case 2: return [2, requestContext];
810
+ }
811
+ });
812
+ });
813
+ };
814
+ AuthApiRequestFactory.prototype.authControllerGetPermission = function (_options) {
815
+ return __awaiter(this, void 0, void 0, function () {
816
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
817
+ var _a;
818
+ return __generator(this, function (_b) {
819
+ switch (_b.label) {
820
+ case 0:
821
+ _config = _options || this.configuration;
822
+ localVarPath = '/v1/auth/permissions';
823
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
824
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
825
+ authMethod = _config.authMethods["bearer"];
826
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
827
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
828
+ case 1:
829
+ _b.sent();
830
+ _b.label = 2;
831
+ case 2:
832
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
833
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
834
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
835
+ case 3:
836
+ _b.sent();
837
+ _b.label = 4;
838
+ case 4: return [2, requestContext];
839
+ }
840
+ });
841
+ });
842
+ };
843
+ AuthApiRequestFactory.prototype.authControllerGetStaff = function (email, _options) {
844
+ return __awaiter(this, void 0, void 0, function () {
845
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
846
+ var _a;
847
+ return __generator(this, function (_b) {
848
+ switch (_b.label) {
849
+ case 0:
850
+ _config = _options || this.configuration;
851
+ if (email === null || email === undefined) {
852
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerGetStaff", "email");
853
+ }
854
+ localVarPath = '/v1/auth/staff/{email}'
855
+ .replace('{' + 'email' + '}', encodeURIComponent(String(email)));
856
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
857
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
858
+ authMethod = _config.authMethods["bearer"];
859
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
860
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
861
+ case 1:
862
+ _b.sent();
863
+ _b.label = 2;
864
+ case 2:
865
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
866
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
867
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
868
+ case 3:
869
+ _b.sent();
870
+ _b.label = 4;
871
+ case 4: return [2, requestContext];
872
+ }
873
+ });
874
+ });
875
+ };
876
+ AuthApiRequestFactory.prototype.authControllerGetStaffRole = function (id, _options) {
877
+ return __awaiter(this, void 0, void 0, function () {
878
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
879
+ var _a;
880
+ return __generator(this, function (_b) {
881
+ switch (_b.label) {
882
+ case 0:
883
+ _config = _options || this.configuration;
884
+ if (id === null || id === undefined) {
885
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerGetStaffRole", "id");
886
+ }
887
+ localVarPath = '/v1/auth/staff-role/{id}'
888
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
889
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
890
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
891
+ authMethod = _config.authMethods["bearer"];
892
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
893
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
894
+ case 1:
895
+ _b.sent();
896
+ _b.label = 2;
897
+ case 2:
898
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
899
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
900
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
901
+ case 3:
902
+ _b.sent();
903
+ _b.label = 4;
904
+ case 4: return [2, requestContext];
905
+ }
906
+ });
907
+ });
908
+ };
909
+ AuthApiRequestFactory.prototype.authControllerLogin = function (loginPayloadDto, _options) {
910
+ return __awaiter(this, void 0, void 0, function () {
911
+ var _config, localVarPath, requestContext, contentType, serializedBody, defaultAuth;
912
+ var _a;
913
+ return __generator(this, function (_b) {
914
+ switch (_b.label) {
915
+ case 0:
916
+ _config = _options || this.configuration;
917
+ if (loginPayloadDto === null || loginPayloadDto === undefined) {
918
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerLogin", "loginPayloadDto");
919
+ }
920
+ localVarPath = '/v1/auth/login';
921
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
922
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
923
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
924
+ "application/json"
925
+ ]);
926
+ requestContext.setHeaderParam("Content-Type", contentType);
927
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(loginPayloadDto, "LoginPayloadDto", ""), contentType);
928
+ requestContext.setBody(serializedBody);
929
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
930
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 2];
931
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
932
+ case 1:
933
+ _b.sent();
934
+ _b.label = 2;
935
+ case 2: return [2, requestContext];
936
+ }
937
+ });
938
+ });
939
+ };
940
+ AuthApiRequestFactory.prototype.authControllerSignOut = function (loggedOutPayloadDTO, _options) {
941
+ return __awaiter(this, void 0, void 0, function () {
942
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
943
+ var _a;
944
+ return __generator(this, function (_b) {
945
+ switch (_b.label) {
946
+ case 0:
947
+ _config = _options || this.configuration;
948
+ if (loggedOutPayloadDTO === null || loggedOutPayloadDTO === undefined) {
949
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerSignOut", "loggedOutPayloadDTO");
950
+ }
951
+ localVarPath = '/v1/auth/user-logout';
952
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
953
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
954
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
955
+ "application/json"
956
+ ]);
957
+ requestContext.setHeaderParam("Content-Type", contentType);
958
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(loggedOutPayloadDTO, "LoggedOutPayloadDTO", ""), contentType);
959
+ requestContext.setBody(serializedBody);
960
+ authMethod = _config.authMethods["bearer"];
961
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
962
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
963
+ case 1:
964
+ _b.sent();
965
+ _b.label = 2;
966
+ case 2:
967
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
968
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
969
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
970
+ case 3:
971
+ _b.sent();
972
+ _b.label = 4;
973
+ case 4: return [2, requestContext];
974
+ }
975
+ });
976
+ });
977
+ };
978
+ AuthApiRequestFactory.prototype.authControllerStaffRoles = function (page, limit, allRoles, ownerId, search, _options) {
979
+ return __awaiter(this, void 0, void 0, function () {
980
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
981
+ var _a;
982
+ return __generator(this, function (_b) {
983
+ switch (_b.label) {
984
+ case 0:
985
+ _config = _options || this.configuration;
986
+ if (page === null || page === undefined) {
987
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerStaffRoles", "page");
988
+ }
989
+ if (limit === null || limit === undefined) {
990
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerStaffRoles", "limit");
991
+ }
992
+ localVarPath = '/v1/auth/staff-roles';
993
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
994
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
995
+ if (allRoles !== undefined) {
996
+ requestContext.setQueryParam("allRoles", ObjectSerializer_1.ObjectSerializer.serialize(allRoles, "boolean", ""));
997
+ }
998
+ if (ownerId !== undefined) {
999
+ requestContext.setQueryParam("ownerId", ObjectSerializer_1.ObjectSerializer.serialize(ownerId, "string", ""));
1000
+ }
1001
+ if (search !== undefined) {
1002
+ requestContext.setQueryParam("search", ObjectSerializer_1.ObjectSerializer.serialize(search, "string", ""));
1003
+ }
1004
+ if (page !== undefined) {
1005
+ requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", ""));
1006
+ }
1007
+ if (limit !== undefined) {
1008
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
1009
+ }
1010
+ authMethod = _config.authMethods["bearer"];
1011
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1012
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1013
+ case 1:
1014
+ _b.sent();
1015
+ _b.label = 2;
1016
+ case 2:
1017
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1018
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1019
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1020
+ case 3:
1021
+ _b.sent();
1022
+ _b.label = 4;
1023
+ case 4: return [2, requestContext];
1024
+ }
1025
+ });
1026
+ });
1027
+ };
1028
+ AuthApiRequestFactory.prototype.authControllerSuperAdminLoginlogin = function (superAdminLoginPayloadDto, _options) {
1029
+ return __awaiter(this, void 0, void 0, function () {
1030
+ var _config, localVarPath, requestContext, contentType, serializedBody, defaultAuth;
1031
+ var _a;
1032
+ return __generator(this, function (_b) {
1033
+ switch (_b.label) {
1034
+ case 0:
1035
+ _config = _options || this.configuration;
1036
+ if (superAdminLoginPayloadDto === null || superAdminLoginPayloadDto === undefined) {
1037
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerSuperAdminLoginlogin", "superAdminLoginPayloadDto");
1038
+ }
1039
+ localVarPath = '/v1/auth/super_admin_login';
1040
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
1041
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1042
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1043
+ "application/json"
1044
+ ]);
1045
+ requestContext.setHeaderParam("Content-Type", contentType);
1046
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(superAdminLoginPayloadDto, "SuperAdminLoginPayloadDto", ""), contentType);
1047
+ requestContext.setBody(serializedBody);
1048
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1049
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 2];
1050
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1051
+ case 1:
1052
+ _b.sent();
1053
+ _b.label = 2;
1054
+ case 2: return [2, requestContext];
1055
+ }
1056
+ });
1057
+ });
1058
+ };
1059
+ AuthApiRequestFactory.prototype.authControllerSyncUserInfo = function (userSyncDTO, _options) {
1060
+ return __awaiter(this, void 0, void 0, function () {
1061
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1062
+ var _a;
1063
+ return __generator(this, function (_b) {
1064
+ switch (_b.label) {
1065
+ case 0:
1066
+ _config = _options || this.configuration;
1067
+ if (userSyncDTO === null || userSyncDTO === undefined) {
1068
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerSyncUserInfo", "userSyncDTO");
1069
+ }
1070
+ localVarPath = '/v1/auth/sync-info';
1071
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.POST);
1072
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1073
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1074
+ "application/json"
1075
+ ]);
1076
+ requestContext.setHeaderParam("Content-Type", contentType);
1077
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userSyncDTO, "UserSyncDTO", ""), contentType);
1078
+ requestContext.setBody(serializedBody);
1079
+ authMethod = _config.authMethods["bearer"];
1080
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1081
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1082
+ case 1:
1083
+ _b.sent();
1084
+ _b.label = 2;
1085
+ case 2:
1086
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1087
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1088
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1089
+ case 3:
1090
+ _b.sent();
1091
+ _b.label = 4;
1092
+ case 4: return [2, requestContext];
1093
+ }
1094
+ });
1095
+ });
1096
+ };
1097
+ AuthApiRequestFactory.prototype.authControllerUpdate = function (storeDetailsPayloadDto, _options) {
1098
+ return __awaiter(this, void 0, void 0, function () {
1099
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1100
+ var _a;
1101
+ return __generator(this, function (_b) {
1102
+ switch (_b.label) {
1103
+ case 0:
1104
+ _config = _options || this.configuration;
1105
+ if (storeDetailsPayloadDto === null || storeDetailsPayloadDto === undefined) {
1106
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerUpdate", "storeDetailsPayloadDto");
1107
+ }
1108
+ localVarPath = '/v1/auth/store';
1109
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1110
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1111
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1112
+ "application/json"
1113
+ ]);
1114
+ requestContext.setHeaderParam("Content-Type", contentType);
1115
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(storeDetailsPayloadDto, "StoreDetailsPayloadDto", ""), contentType);
1116
+ requestContext.setBody(serializedBody);
1117
+ authMethod = _config.authMethods["bearer"];
1118
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1119
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1120
+ case 1:
1121
+ _b.sent();
1122
+ _b.label = 2;
1123
+ case 2:
1124
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1125
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1126
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1127
+ case 3:
1128
+ _b.sent();
1129
+ _b.label = 4;
1130
+ case 4: return [2, requestContext];
1131
+ }
1132
+ });
1133
+ });
1134
+ };
1135
+ AuthApiRequestFactory.prototype.authControllerUpdateRoles = function (id, updateRoleDto, _options) {
1136
+ return __awaiter(this, void 0, void 0, function () {
1137
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1138
+ var _a;
1139
+ return __generator(this, function (_b) {
1140
+ switch (_b.label) {
1141
+ case 0:
1142
+ _config = _options || this.configuration;
1143
+ if (id === null || id === undefined) {
1144
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerUpdateRoles", "id");
1145
+ }
1146
+ if (updateRoleDto === null || updateRoleDto === undefined) {
1147
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerUpdateRoles", "updateRoleDto");
1148
+ }
1149
+ localVarPath = '/v1/auth/update/role/{id}'
1150
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
1151
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1152
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1153
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1154
+ "application/json"
1155
+ ]);
1156
+ requestContext.setHeaderParam("Content-Type", contentType);
1157
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateRoleDto, "UpdateRoleDto", ""), contentType);
1158
+ requestContext.setBody(serializedBody);
1159
+ authMethod = _config.authMethods["bearer"];
1160
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1161
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1162
+ case 1:
1163
+ _b.sent();
1164
+ _b.label = 2;
1165
+ case 2:
1166
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1167
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1168
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1169
+ case 3:
1170
+ _b.sent();
1171
+ _b.label = 4;
1172
+ case 4: return [2, requestContext];
1173
+ }
1174
+ });
1175
+ });
1176
+ };
1177
+ AuthApiRequestFactory.prototype.authControllerUpdateStaff = function (id, updateStaffDto, _options) {
1178
+ return __awaiter(this, void 0, void 0, function () {
1179
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1180
+ var _a;
1181
+ return __generator(this, function (_b) {
1182
+ switch (_b.label) {
1183
+ case 0:
1184
+ _config = _options || this.configuration;
1185
+ if (id === null || id === undefined) {
1186
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerUpdateStaff", "id");
1187
+ }
1188
+ if (updateStaffDto === null || updateStaffDto === undefined) {
1189
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerUpdateStaff", "updateStaffDto");
1190
+ }
1191
+ localVarPath = '/v1/auth/staff/{id}'
1192
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
1193
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1194
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1195
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1196
+ "application/json"
1197
+ ]);
1198
+ requestContext.setHeaderParam("Content-Type", contentType);
1199
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateStaffDto, "UpdateStaffDto", ""), contentType);
1200
+ requestContext.setBody(serializedBody);
1201
+ authMethod = _config.authMethods["bearer"];
1202
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1203
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1204
+ case 1:
1205
+ _b.sent();
1206
+ _b.label = 2;
1207
+ case 2:
1208
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1209
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1210
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1211
+ case 3:
1212
+ _b.sent();
1213
+ _b.label = 4;
1214
+ case 4: return [2, requestContext];
1215
+ }
1216
+ });
1217
+ });
1218
+ };
1219
+ AuthApiRequestFactory.prototype.authControllerUpdateStaffRoles = function (id, updateStaffRoleDto, _options) {
1220
+ return __awaiter(this, void 0, void 0, function () {
1221
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1222
+ var _a;
1223
+ return __generator(this, function (_b) {
1224
+ switch (_b.label) {
1225
+ case 0:
1226
+ _config = _options || this.configuration;
1227
+ if (id === null || id === undefined) {
1228
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerUpdateStaffRoles", "id");
1229
+ }
1230
+ if (updateStaffRoleDto === null || updateStaffRoleDto === undefined) {
1231
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerUpdateStaffRoles", "updateStaffRoleDto");
1232
+ }
1233
+ localVarPath = '/v1/auth/staff-role/{id}'
1234
+ .replace('{' + 'id' + '}', encodeURIComponent(String(id)));
1235
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1236
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1237
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1238
+ "application/json"
1239
+ ]);
1240
+ requestContext.setHeaderParam("Content-Type", contentType);
1241
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(updateStaffRoleDto, "UpdateStaffRoleDto", ""), contentType);
1242
+ requestContext.setBody(serializedBody);
1243
+ authMethod = _config.authMethods["bearer"];
1244
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1245
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1246
+ case 1:
1247
+ _b.sent();
1248
+ _b.label = 2;
1249
+ case 2:
1250
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1251
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1252
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1253
+ case 3:
1254
+ _b.sent();
1255
+ _b.label = 4;
1256
+ case 4: return [2, requestContext];
1257
+ }
1258
+ });
1259
+ });
1260
+ };
1261
+ AuthApiRequestFactory.prototype.authControllerUser = function (page, limit, allRoles, search, _options) {
1262
+ return __awaiter(this, void 0, void 0, function () {
1263
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
1264
+ var _a;
1265
+ return __generator(this, function (_b) {
1266
+ switch (_b.label) {
1267
+ case 0:
1268
+ _config = _options || this.configuration;
1269
+ if (page === null || page === undefined) {
1270
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerUser", "page");
1271
+ }
1272
+ if (limit === null || limit === undefined) {
1273
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerUser", "limit");
1274
+ }
1275
+ localVarPath = '/v1/auth/roles';
1276
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1277
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1278
+ if (allRoles !== undefined) {
1279
+ requestContext.setQueryParam("allRoles", ObjectSerializer_1.ObjectSerializer.serialize(allRoles, "boolean", ""));
1280
+ }
1281
+ if (search !== undefined) {
1282
+ requestContext.setQueryParam("search", ObjectSerializer_1.ObjectSerializer.serialize(search, "string", ""));
1283
+ }
1284
+ if (page !== undefined) {
1285
+ requestContext.setQueryParam("page", ObjectSerializer_1.ObjectSerializer.serialize(page, "number", ""));
1286
+ }
1287
+ if (limit !== undefined) {
1288
+ requestContext.setQueryParam("limit", ObjectSerializer_1.ObjectSerializer.serialize(limit, "number", ""));
1289
+ }
1290
+ authMethod = _config.authMethods["bearer"];
1291
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1292
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1293
+ case 1:
1294
+ _b.sent();
1295
+ _b.label = 2;
1296
+ case 2:
1297
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1298
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1299
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1300
+ case 3:
1301
+ _b.sent();
1302
+ _b.label = 4;
1303
+ case 4: return [2, requestContext];
1304
+ }
1305
+ });
1306
+ });
1307
+ };
1308
+ AuthApiRequestFactory.prototype.authControllerUserById = function (id, _options) {
1309
+ return __awaiter(this, void 0, void 0, function () {
1310
+ var _config, localVarPath, requestContext, defaultAuth;
1311
+ var _a;
1312
+ return __generator(this, function (_b) {
1313
+ switch (_b.label) {
1314
+ case 0:
1315
+ _config = _options || this.configuration;
1316
+ if (id === null || id === undefined) {
1317
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerUserById", "id");
1318
+ }
1319
+ localVarPath = '/v1/auth/user';
1320
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1321
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1322
+ if (id !== undefined) {
1323
+ requestContext.setQueryParam("id", ObjectSerializer_1.ObjectSerializer.serialize(id, "string", ""));
1324
+ }
1325
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1326
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 2];
1327
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1328
+ case 1:
1329
+ _b.sent();
1330
+ _b.label = 2;
1331
+ case 2: return [2, requestContext];
1332
+ }
1333
+ });
1334
+ });
1335
+ };
1336
+ AuthApiRequestFactory.prototype.authControllerUserFollowers = function (id, _options) {
1337
+ return __awaiter(this, void 0, void 0, function () {
1338
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
1339
+ var _a;
1340
+ return __generator(this, function (_b) {
1341
+ switch (_b.label) {
1342
+ case 0:
1343
+ _config = _options || this.configuration;
1344
+ if (id === null || id === undefined) {
1345
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerUserFollowers", "id");
1346
+ }
1347
+ localVarPath = '/v1/auth/follower';
1348
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1349
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1350
+ if (id !== undefined) {
1351
+ requestContext.setQueryParam("id", ObjectSerializer_1.ObjectSerializer.serialize(id, "string", ""));
1352
+ }
1353
+ authMethod = _config.authMethods["bearer"];
1354
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1355
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1356
+ case 1:
1357
+ _b.sent();
1358
+ _b.label = 2;
1359
+ case 2:
1360
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1361
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1362
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1363
+ case 3:
1364
+ _b.sent();
1365
+ _b.label = 4;
1366
+ case 4: return [2, requestContext];
1367
+ }
1368
+ });
1369
+ });
1370
+ };
1371
+ AuthApiRequestFactory.prototype.authControllerUserMe = function (_options) {
1372
+ return __awaiter(this, void 0, void 0, function () {
1373
+ var _config, localVarPath, requestContext, authMethod, defaultAuth;
1374
+ var _a;
1375
+ return __generator(this, function (_b) {
1376
+ switch (_b.label) {
1377
+ case 0:
1378
+ _config = _options || this.configuration;
1379
+ localVarPath = '/v1/auth/user/me';
1380
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.GET);
1381
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1382
+ authMethod = _config.authMethods["bearer"];
1383
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1384
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1385
+ case 1:
1386
+ _b.sent();
1387
+ _b.label = 2;
1388
+ case 2:
1389
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1390
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1391
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1392
+ case 3:
1393
+ _b.sent();
1394
+ _b.label = 4;
1395
+ case 4: return [2, requestContext];
1396
+ }
1397
+ });
1398
+ });
1399
+ };
1400
+ AuthApiRequestFactory.prototype.authControllerUserRoleUpdate = function (userRolePayloadDto, _options) {
1401
+ return __awaiter(this, void 0, void 0, function () {
1402
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1403
+ var _a;
1404
+ return __generator(this, function (_b) {
1405
+ switch (_b.label) {
1406
+ case 0:
1407
+ _config = _options || this.configuration;
1408
+ if (userRolePayloadDto === null || userRolePayloadDto === undefined) {
1409
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerUserRoleUpdate", "userRolePayloadDto");
1410
+ }
1411
+ localVarPath = '/v1/auth/role';
1412
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1413
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1414
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1415
+ "application/json"
1416
+ ]);
1417
+ requestContext.setHeaderParam("Content-Type", contentType);
1418
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userRolePayloadDto, "UserRolePayloadDto", ""), contentType);
1419
+ requestContext.setBody(serializedBody);
1420
+ authMethod = _config.authMethods["bearer"];
1421
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1422
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1423
+ case 1:
1424
+ _b.sent();
1425
+ _b.label = 2;
1426
+ case 2:
1427
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1428
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1429
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1430
+ case 3:
1431
+ _b.sent();
1432
+ _b.label = 4;
1433
+ case 4: return [2, requestContext];
1434
+ }
1435
+ });
1436
+ });
1437
+ };
1438
+ AuthApiRequestFactory.prototype.authControllerUserUpdate = function (userUpdatePayloadDto, _options) {
1439
+ return __awaiter(this, void 0, void 0, function () {
1440
+ var _config, localVarPath, requestContext, contentType, serializedBody, authMethod, defaultAuth;
1441
+ var _a;
1442
+ return __generator(this, function (_b) {
1443
+ switch (_b.label) {
1444
+ case 0:
1445
+ _config = _options || this.configuration;
1446
+ if (userUpdatePayloadDto === null || userUpdatePayloadDto === undefined) {
1447
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerUserUpdate", "userUpdatePayloadDto");
1448
+ }
1449
+ localVarPath = '/v1/auth/user';
1450
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1451
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1452
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1453
+ "application/json"
1454
+ ]);
1455
+ requestContext.setHeaderParam("Content-Type", contentType);
1456
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(userUpdatePayloadDto, "UserUpdatePayloadDto", ""), contentType);
1457
+ requestContext.setBody(serializedBody);
1458
+ authMethod = _config.authMethods["bearer"];
1459
+ if (!(authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication)) return [3, 2];
1460
+ return [4, (authMethod === null || authMethod === void 0 ? void 0 : authMethod.applySecurityAuthentication(requestContext))];
1461
+ case 1:
1462
+ _b.sent();
1463
+ _b.label = 2;
1464
+ case 2:
1465
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1466
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 4];
1467
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1468
+ case 3:
1469
+ _b.sent();
1470
+ _b.label = 4;
1471
+ case 4: return [2, requestContext];
1472
+ }
1473
+ });
1474
+ });
1475
+ };
1476
+ AuthApiRequestFactory.prototype.authControllerVerifyOtp = function (otpEntityPayloadDto, _options) {
1477
+ return __awaiter(this, void 0, void 0, function () {
1478
+ var _config, localVarPath, requestContext, contentType, serializedBody, defaultAuth;
1479
+ var _a;
1480
+ return __generator(this, function (_b) {
1481
+ switch (_b.label) {
1482
+ case 0:
1483
+ _config = _options || this.configuration;
1484
+ if (otpEntityPayloadDto === null || otpEntityPayloadDto === undefined) {
1485
+ throw new baseapi_1.RequiredError("AuthApi", "authControllerVerifyOtp", "otpEntityPayloadDto");
1486
+ }
1487
+ localVarPath = '/v1/auth/verify-otp';
1488
+ requestContext = _config.baseServer.makeRequestContext(localVarPath, http_1.HttpMethod.PUT);
1489
+ requestContext.setHeaderParam("Accept", "application/json, */*;q=0.8");
1490
+ contentType = ObjectSerializer_1.ObjectSerializer.getPreferredMediaType([
1491
+ "application/json"
1492
+ ]);
1493
+ requestContext.setHeaderParam("Content-Type", contentType);
1494
+ serializedBody = ObjectSerializer_1.ObjectSerializer.stringify(ObjectSerializer_1.ObjectSerializer.serialize(otpEntityPayloadDto, "OtpEntityPayloadDto", ""), contentType);
1495
+ requestContext.setBody(serializedBody);
1496
+ defaultAuth = (_a = _config === null || _config === void 0 ? void 0 : _config.authMethods) === null || _a === void 0 ? void 0 : _a.default;
1497
+ if (!(defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication)) return [3, 2];
1498
+ return [4, (defaultAuth === null || defaultAuth === void 0 ? void 0 : defaultAuth.applySecurityAuthentication(requestContext))];
1499
+ case 1:
1500
+ _b.sent();
1501
+ _b.label = 2;
1502
+ case 2: return [2, requestContext];
1503
+ }
1504
+ });
1505
+ });
1506
+ };
1507
+ return AuthApiRequestFactory;
1508
+ }(baseapi_1.BaseAPIRequestFactory));
1509
+ exports.AuthApiRequestFactory = AuthApiRequestFactory;
1510
+ var AuthApiResponseProcessor = (function () {
1511
+ function AuthApiResponseProcessor() {
1512
+ }
1513
+ AuthApiResponseProcessor.prototype.authControllerAccountDeletionWithHttpInfo = function (response) {
1514
+ return __awaiter(this, void 0, void 0, function () {
1515
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1516
+ return __generator(this, function (_l) {
1517
+ switch (_l.label) {
1518
+ case 0:
1519
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1520
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1521
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1522
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1523
+ return [4, response.body.text()];
1524
+ case 1:
1525
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1526
+ "UserDeleteResponseDto", ""]);
1527
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1528
+ case 2:
1529
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1530
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1531
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1532
+ return [4, response.body.text()];
1533
+ case 3:
1534
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1535
+ "UserDeleteResponseDto", ""]);
1536
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1537
+ case 4:
1538
+ _j = exception_1.ApiException.bind;
1539
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1540
+ return [4, response.getBodyAsAny()];
1541
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1542
+ }
1543
+ });
1544
+ });
1545
+ };
1546
+ AuthApiResponseProcessor.prototype.authControllerAddFeedbackWithHttpInfo = function (response) {
1547
+ return __awaiter(this, void 0, void 0, function () {
1548
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1549
+ return __generator(this, function (_l) {
1550
+ switch (_l.label) {
1551
+ case 0:
1552
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1553
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1554
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1555
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1556
+ return [4, response.body.text()];
1557
+ case 1:
1558
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1559
+ "FeedbackCreateResponseDto", ""]);
1560
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1561
+ case 2:
1562
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1563
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1564
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1565
+ return [4, response.body.text()];
1566
+ case 3:
1567
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1568
+ "FeedbackCreateResponseDto", ""]);
1569
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1570
+ case 4:
1571
+ _j = exception_1.ApiException.bind;
1572
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1573
+ return [4, response.getBodyAsAny()];
1574
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1575
+ }
1576
+ });
1577
+ });
1578
+ };
1579
+ AuthApiResponseProcessor.prototype.authControllerAppfeepercentageUpdateWithHttpInfo = function (response) {
1580
+ return __awaiter(this, void 0, void 0, function () {
1581
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1582
+ return __generator(this, function (_l) {
1583
+ switch (_l.label) {
1584
+ case 0:
1585
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1586
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1587
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1588
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1589
+ return [4, response.body.text()];
1590
+ case 1:
1591
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1592
+ "AppfeepercentageResponseDto", ""]);
1593
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1594
+ case 2:
1595
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1596
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1597
+ }
1598
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1599
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1600
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1601
+ return [4, response.body.text()];
1602
+ case 3:
1603
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1604
+ "AppfeepercentageResponseDto", ""]);
1605
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1606
+ case 4:
1607
+ _j = exception_1.ApiException.bind;
1608
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1609
+ return [4, response.getBodyAsAny()];
1610
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1611
+ }
1612
+ });
1613
+ });
1614
+ };
1615
+ AuthApiResponseProcessor.prototype.authControllerChangePasswordWithHttpInfo = function (response) {
1616
+ return __awaiter(this, void 0, void 0, function () {
1617
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1618
+ return __generator(this, function (_l) {
1619
+ switch (_l.label) {
1620
+ case 0:
1621
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1622
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1623
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1624
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1625
+ return [4, response.body.text()];
1626
+ case 1:
1627
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1628
+ "PasswordChangeResponseDto", ""]);
1629
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1630
+ case 2:
1631
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1632
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1633
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1634
+ return [4, response.body.text()];
1635
+ case 3:
1636
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1637
+ "PasswordChangeResponseDto", ""]);
1638
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1639
+ case 4:
1640
+ _j = exception_1.ApiException.bind;
1641
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1642
+ return [4, response.getBodyAsAny()];
1643
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1644
+ }
1645
+ });
1646
+ });
1647
+ };
1648
+ AuthApiResponseProcessor.prototype.authControllerCreateBusinessUserWithHttpInfo = function (response) {
1649
+ return __awaiter(this, void 0, void 0, function () {
1650
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1651
+ return __generator(this, function (_l) {
1652
+ switch (_l.label) {
1653
+ case 0:
1654
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1655
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1656
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1657
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1658
+ return [4, response.body.text()];
1659
+ case 1:
1660
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1661
+ "UserResponseDto", ""]);
1662
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1663
+ case 2:
1664
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1665
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1666
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1667
+ return [4, response.body.text()];
1668
+ case 3:
1669
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1670
+ "UserResponseDto", ""]);
1671
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1672
+ case 4:
1673
+ _j = exception_1.ApiException.bind;
1674
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1675
+ return [4, response.getBodyAsAny()];
1676
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1677
+ }
1678
+ });
1679
+ });
1680
+ };
1681
+ AuthApiResponseProcessor.prototype.authControllerCreateRolesWithHttpInfo = function (response) {
1682
+ return __awaiter(this, void 0, void 0, function () {
1683
+ var contentType, _a, _b;
1684
+ return __generator(this, function (_c) {
1685
+ switch (_c.label) {
1686
+ case 0:
1687
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1688
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1689
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1690
+ }
1691
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1692
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined)];
1693
+ }
1694
+ _a = exception_1.ApiException.bind;
1695
+ _b = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1696
+ return [4, response.getBodyAsAny()];
1697
+ case 1: throw new (_a.apply(exception_1.ApiException, _b.concat([_c.sent(), response.headers])))();
1698
+ }
1699
+ });
1700
+ });
1701
+ };
1702
+ AuthApiResponseProcessor.prototype.authControllerCreateStaffWithHttpInfo = function (response) {
1703
+ return __awaiter(this, void 0, void 0, function () {
1704
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1705
+ return __generator(this, function (_l) {
1706
+ switch (_l.label) {
1707
+ case 0:
1708
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1709
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1710
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1711
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1712
+ return [4, response.body.text()];
1713
+ case 1:
1714
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1715
+ "CreateStaffDto", ""]);
1716
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1717
+ case 2:
1718
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1719
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1720
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1721
+ return [4, response.body.text()];
1722
+ case 3:
1723
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1724
+ "CreateStaffDto", ""]);
1725
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1726
+ case 4:
1727
+ _j = exception_1.ApiException.bind;
1728
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1729
+ return [4, response.getBodyAsAny()];
1730
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1731
+ }
1732
+ });
1733
+ });
1734
+ };
1735
+ AuthApiResponseProcessor.prototype.authControllerCreateStaffRoleWithHttpInfo = function (response) {
1736
+ return __awaiter(this, void 0, void 0, function () {
1737
+ var contentType, _a, _b;
1738
+ return __generator(this, function (_c) {
1739
+ switch (_c.label) {
1740
+ case 0:
1741
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1742
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1743
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1744
+ }
1745
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1746
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined)];
1747
+ }
1748
+ _a = exception_1.ApiException.bind;
1749
+ _b = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1750
+ return [4, response.getBodyAsAny()];
1751
+ case 1: throw new (_a.apply(exception_1.ApiException, _b.concat([_c.sent(), response.headers])))();
1752
+ }
1753
+ });
1754
+ });
1755
+ };
1756
+ AuthApiResponseProcessor.prototype.authControllerCreateUserWithHttpInfo = function (response) {
1757
+ return __awaiter(this, void 0, void 0, function () {
1758
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1759
+ return __generator(this, function (_l) {
1760
+ switch (_l.label) {
1761
+ case 0:
1762
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1763
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1764
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1765
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1766
+ return [4, response.body.text()];
1767
+ case 1:
1768
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1769
+ "UserResponseDto", ""]);
1770
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1771
+ case 2:
1772
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1773
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1774
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1775
+ return [4, response.body.text()];
1776
+ case 3:
1777
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1778
+ "UserResponseDto", ""]);
1779
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1780
+ case 4:
1781
+ _j = exception_1.ApiException.bind;
1782
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1783
+ return [4, response.getBodyAsAny()];
1784
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1785
+ }
1786
+ });
1787
+ });
1788
+ };
1789
+ AuthApiResponseProcessor.prototype.authControllerDeleteRoleWithHttpInfo = function (response) {
1790
+ return __awaiter(this, void 0, void 0, function () {
1791
+ var contentType, _a, _b;
1792
+ return __generator(this, function (_c) {
1793
+ switch (_c.label) {
1794
+ case 0:
1795
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1796
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1797
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1798
+ }
1799
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1800
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined)];
1801
+ }
1802
+ _a = exception_1.ApiException.bind;
1803
+ _b = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1804
+ return [4, response.getBodyAsAny()];
1805
+ case 1: throw new (_a.apply(exception_1.ApiException, _b.concat([_c.sent(), response.headers])))();
1806
+ }
1807
+ });
1808
+ });
1809
+ };
1810
+ AuthApiResponseProcessor.prototype.authControllerDeleteStaffWithHttpInfo = function (response) {
1811
+ return __awaiter(this, void 0, void 0, function () {
1812
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1813
+ return __generator(this, function (_l) {
1814
+ switch (_l.label) {
1815
+ case 0:
1816
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1817
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1818
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1819
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1820
+ return [4, response.body.text()];
1821
+ case 1:
1822
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1823
+ "UserDeleteResponseDto", ""]);
1824
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1825
+ case 2:
1826
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1827
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1828
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1829
+ return [4, response.body.text()];
1830
+ case 3:
1831
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1832
+ "UserDeleteResponseDto", ""]);
1833
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1834
+ case 4:
1835
+ _j = exception_1.ApiException.bind;
1836
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1837
+ return [4, response.getBodyAsAny()];
1838
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1839
+ }
1840
+ });
1841
+ });
1842
+ };
1843
+ AuthApiResponseProcessor.prototype.authControllerDeleteStaffRoleWithHttpInfo = function (response) {
1844
+ return __awaiter(this, void 0, void 0, function () {
1845
+ var contentType, _a, _b;
1846
+ return __generator(this, function (_c) {
1847
+ switch (_c.label) {
1848
+ case 0:
1849
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1850
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1851
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1852
+ }
1853
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1854
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined)];
1855
+ }
1856
+ _a = exception_1.ApiException.bind;
1857
+ _b = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1858
+ return [4, response.getBodyAsAny()];
1859
+ case 1: throw new (_a.apply(exception_1.ApiException, _b.concat([_c.sent(), response.headers])))();
1860
+ }
1861
+ });
1862
+ });
1863
+ };
1864
+ AuthApiResponseProcessor.prototype.authControllerForgetPasswordWithHttpInfo = function (response) {
1865
+ return __awaiter(this, void 0, void 0, function () {
1866
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1867
+ return __generator(this, function (_l) {
1868
+ switch (_l.label) {
1869
+ case 0:
1870
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1871
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1872
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1873
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1874
+ return [4, response.body.text()];
1875
+ case 1:
1876
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1877
+ "ForgetPasswordEntityResponseDto", ""]);
1878
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1879
+ case 2:
1880
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1881
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1882
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1883
+ return [4, response.body.text()];
1884
+ case 3:
1885
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1886
+ "ForgetPasswordEntityResponseDto", ""]);
1887
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1888
+ case 4:
1889
+ _j = exception_1.ApiException.bind;
1890
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1891
+ return [4, response.getBodyAsAny()];
1892
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1893
+ }
1894
+ });
1895
+ });
1896
+ };
1897
+ AuthApiResponseProcessor.prototype.authControllerGetAchievementWithHttpInfo = function (response) {
1898
+ return __awaiter(this, void 0, void 0, function () {
1899
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1900
+ return __generator(this, function (_l) {
1901
+ switch (_l.label) {
1902
+ case 0:
1903
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1904
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1905
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1906
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1907
+ return [4, response.body.text()];
1908
+ case 1:
1909
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1910
+ "UserAchievementResponseDTO", ""]);
1911
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1912
+ case 2:
1913
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1914
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1915
+ }
1916
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1917
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1918
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1919
+ return [4, response.body.text()];
1920
+ case 3:
1921
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1922
+ "UserAchievementResponseDTO", ""]);
1923
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1924
+ case 4:
1925
+ _j = exception_1.ApiException.bind;
1926
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1927
+ return [4, response.getBodyAsAny()];
1928
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1929
+ }
1930
+ });
1931
+ });
1932
+ };
1933
+ AuthApiResponseProcessor.prototype.authControllerGetActivityWithHttpInfo = function (response) {
1934
+ return __awaiter(this, void 0, void 0, function () {
1935
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
1936
+ return __generator(this, function (_l) {
1937
+ switch (_l.label) {
1938
+ case 0:
1939
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1940
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
1941
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1942
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1943
+ return [4, response.body.text()];
1944
+ case 1:
1945
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
1946
+ "ActivityResponseDto", ""]);
1947
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1948
+ case 2:
1949
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
1950
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
1951
+ }
1952
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
1953
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
1954
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
1955
+ return [4, response.body.text()];
1956
+ case 3:
1957
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
1958
+ "ActivityResponseDto", ""]);
1959
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1960
+ case 4:
1961
+ _j = exception_1.ApiException.bind;
1962
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1963
+ return [4, response.getBodyAsAny()];
1964
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
1965
+ }
1966
+ });
1967
+ });
1968
+ };
1969
+ AuthApiResponseProcessor.prototype.authControllerGetAllStaffWithHttpInfo = function (response) {
1970
+ return __awaiter(this, void 0, void 0, function () {
1971
+ var contentType, body, _a, _b, _c, _d, _e, _f;
1972
+ return __generator(this, function (_g) {
1973
+ switch (_g.label) {
1974
+ case 0:
1975
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
1976
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
1977
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined)];
1978
+ }
1979
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
1980
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
1981
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
1982
+ return [4, response.body.text()];
1983
+ case 1:
1984
+ body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
1985
+ "void", ""]);
1986
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
1987
+ case 2:
1988
+ _e = exception_1.ApiException.bind;
1989
+ _f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
1990
+ return [4, response.getBodyAsAny()];
1991
+ case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
1992
+ }
1993
+ });
1994
+ });
1995
+ };
1996
+ AuthApiResponseProcessor.prototype.authControllerGetAllusersWithHttpInfo = function (response) {
1997
+ return __awaiter(this, void 0, void 0, function () {
1998
+ var contentType, body, _a, _b, _c, _d, _e, _f;
1999
+ return __generator(this, function (_g) {
2000
+ switch (_g.label) {
2001
+ case 0:
2002
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2003
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
2004
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined)];
2005
+ }
2006
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
2007
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2008
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2009
+ return [4, response.body.text()];
2010
+ case 1:
2011
+ body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
2012
+ "void", ""]);
2013
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2014
+ case 2:
2015
+ _e = exception_1.ApiException.bind;
2016
+ _f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2017
+ return [4, response.getBodyAsAny()];
2018
+ case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
2019
+ }
2020
+ });
2021
+ });
2022
+ };
2023
+ AuthApiResponseProcessor.prototype.authControllerGetEventsActivityWithHttpInfo = function (response) {
2024
+ return __awaiter(this, void 0, void 0, function () {
2025
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2026
+ return __generator(this, function (_l) {
2027
+ switch (_l.label) {
2028
+ case 0:
2029
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2030
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2031
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2032
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2033
+ return [4, response.body.text()];
2034
+ case 1:
2035
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2036
+ "ActivityResponseDto", ""]);
2037
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2038
+ case 2:
2039
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
2040
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
2041
+ }
2042
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2043
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2044
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2045
+ return [4, response.body.text()];
2046
+ case 3:
2047
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2048
+ "ActivityResponseDto", ""]);
2049
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2050
+ case 4:
2051
+ _j = exception_1.ApiException.bind;
2052
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2053
+ return [4, response.getBodyAsAny()];
2054
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2055
+ }
2056
+ });
2057
+ });
2058
+ };
2059
+ AuthApiResponseProcessor.prototype.authControllerGetEventsActivityByTypeWithHttpInfo = function (response) {
2060
+ return __awaiter(this, void 0, void 0, function () {
2061
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2062
+ return __generator(this, function (_l) {
2063
+ switch (_l.label) {
2064
+ case 0:
2065
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2066
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2067
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2068
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2069
+ return [4, response.body.text()];
2070
+ case 1:
2071
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2072
+ "ActivityResponseDto", ""]);
2073
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2074
+ case 2:
2075
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
2076
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
2077
+ }
2078
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2079
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2080
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2081
+ return [4, response.body.text()];
2082
+ case 3:
2083
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2084
+ "ActivityResponseDto", ""]);
2085
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2086
+ case 4:
2087
+ _j = exception_1.ApiException.bind;
2088
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2089
+ return [4, response.getBodyAsAny()];
2090
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2091
+ }
2092
+ });
2093
+ });
2094
+ };
2095
+ AuthApiResponseProcessor.prototype.authControllerGetInterestsWithHttpInfo = function (response) {
2096
+ return __awaiter(this, void 0, void 0, function () {
2097
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2098
+ return __generator(this, function (_l) {
2099
+ switch (_l.label) {
2100
+ case 0:
2101
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2102
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2103
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2104
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2105
+ return [4, response.body.text()];
2106
+ case 1:
2107
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2108
+ "InterestsResponseDto", ""]);
2109
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2110
+ case 2:
2111
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2112
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2113
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2114
+ return [4, response.body.text()];
2115
+ case 3:
2116
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2117
+ "InterestsResponseDto", ""]);
2118
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2119
+ case 4:
2120
+ _j = exception_1.ApiException.bind;
2121
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2122
+ return [4, response.getBodyAsAny()];
2123
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2124
+ }
2125
+ });
2126
+ });
2127
+ };
2128
+ AuthApiResponseProcessor.prototype.authControllerGetPermissionWithHttpInfo = function (response) {
2129
+ return __awaiter(this, void 0, void 0, function () {
2130
+ var contentType, _a, _b;
2131
+ return __generator(this, function (_c) {
2132
+ switch (_c.label) {
2133
+ case 0:
2134
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2135
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
2136
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
2137
+ }
2138
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2139
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined)];
2140
+ }
2141
+ _a = exception_1.ApiException.bind;
2142
+ _b = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2143
+ return [4, response.getBodyAsAny()];
2144
+ case 1: throw new (_a.apply(exception_1.ApiException, _b.concat([_c.sent(), response.headers])))();
2145
+ }
2146
+ });
2147
+ });
2148
+ };
2149
+ AuthApiResponseProcessor.prototype.authControllerGetStaffWithHttpInfo = function (response) {
2150
+ return __awaiter(this, void 0, void 0, function () {
2151
+ var contentType, body, _a, _b, _c, _d, _e, _f;
2152
+ return __generator(this, function (_g) {
2153
+ switch (_g.label) {
2154
+ case 0:
2155
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2156
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
2157
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined)];
2158
+ }
2159
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
2160
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2161
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2162
+ return [4, response.body.text()];
2163
+ case 1:
2164
+ body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
2165
+ "void", ""]);
2166
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2167
+ case 2:
2168
+ _e = exception_1.ApiException.bind;
2169
+ _f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2170
+ return [4, response.getBodyAsAny()];
2171
+ case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
2172
+ }
2173
+ });
2174
+ });
2175
+ };
2176
+ AuthApiResponseProcessor.prototype.authControllerGetStaffRoleWithHttpInfo = function (response) {
2177
+ return __awaiter(this, void 0, void 0, function () {
2178
+ var contentType, _a, _b;
2179
+ return __generator(this, function (_c) {
2180
+ switch (_c.label) {
2181
+ case 0:
2182
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2183
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
2184
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
2185
+ }
2186
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2187
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined)];
2188
+ }
2189
+ _a = exception_1.ApiException.bind;
2190
+ _b = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2191
+ return [4, response.getBodyAsAny()];
2192
+ case 1: throw new (_a.apply(exception_1.ApiException, _b.concat([_c.sent(), response.headers])))();
2193
+ }
2194
+ });
2195
+ });
2196
+ };
2197
+ AuthApiResponseProcessor.prototype.authControllerLoginWithHttpInfo = function (response) {
2198
+ return __awaiter(this, void 0, void 0, function () {
2199
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2200
+ return __generator(this, function (_l) {
2201
+ switch (_l.label) {
2202
+ case 0:
2203
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2204
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2205
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2206
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2207
+ return [4, response.body.text()];
2208
+ case 1:
2209
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2210
+ "UserResponseDto", ""]);
2211
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2212
+ case 2:
2213
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2214
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2215
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2216
+ return [4, response.body.text()];
2217
+ case 3:
2218
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2219
+ "UserResponseDto", ""]);
2220
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2221
+ case 4:
2222
+ _j = exception_1.ApiException.bind;
2223
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2224
+ return [4, response.getBodyAsAny()];
2225
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2226
+ }
2227
+ });
2228
+ });
2229
+ };
2230
+ AuthApiResponseProcessor.prototype.authControllerSignOutWithHttpInfo = function (response) {
2231
+ return __awaiter(this, void 0, void 0, function () {
2232
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2233
+ return __generator(this, function (_l) {
2234
+ switch (_l.label) {
2235
+ case 0:
2236
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2237
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2238
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2239
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2240
+ return [4, response.body.text()];
2241
+ case 1:
2242
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2243
+ "LoggedOutResponse", ""]);
2244
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2245
+ case 2:
2246
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2247
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2248
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2249
+ return [4, response.body.text()];
2250
+ case 3:
2251
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2252
+ "LoggedOutResponse", ""]);
2253
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2254
+ case 4:
2255
+ _j = exception_1.ApiException.bind;
2256
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2257
+ return [4, response.getBodyAsAny()];
2258
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2259
+ }
2260
+ });
2261
+ });
2262
+ };
2263
+ AuthApiResponseProcessor.prototype.authControllerStaffRolesWithHttpInfo = function (response) {
2264
+ return __awaiter(this, void 0, void 0, function () {
2265
+ var contentType, _a, _b;
2266
+ return __generator(this, function (_c) {
2267
+ switch (_c.label) {
2268
+ case 0:
2269
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2270
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
2271
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
2272
+ }
2273
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2274
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined)];
2275
+ }
2276
+ _a = exception_1.ApiException.bind;
2277
+ _b = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2278
+ return [4, response.getBodyAsAny()];
2279
+ case 1: throw new (_a.apply(exception_1.ApiException, _b.concat([_c.sent(), response.headers])))();
2280
+ }
2281
+ });
2282
+ });
2283
+ };
2284
+ AuthApiResponseProcessor.prototype.authControllerSuperAdminLoginloginWithHttpInfo = function (response) {
2285
+ return __awaiter(this, void 0, void 0, function () {
2286
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2287
+ return __generator(this, function (_l) {
2288
+ switch (_l.label) {
2289
+ case 0:
2290
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2291
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2292
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2293
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2294
+ return [4, response.body.text()];
2295
+ case 1:
2296
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2297
+ "UserResponseDto", ""]);
2298
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2299
+ case 2:
2300
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2301
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2302
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2303
+ return [4, response.body.text()];
2304
+ case 3:
2305
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2306
+ "UserResponseDto", ""]);
2307
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2308
+ case 4:
2309
+ _j = exception_1.ApiException.bind;
2310
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2311
+ return [4, response.getBodyAsAny()];
2312
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2313
+ }
2314
+ });
2315
+ });
2316
+ };
2317
+ AuthApiResponseProcessor.prototype.authControllerSyncUserInfoWithHttpInfo = function (response) {
2318
+ return __awaiter(this, void 0, void 0, function () {
2319
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2320
+ return __generator(this, function (_l) {
2321
+ switch (_l.label) {
2322
+ case 0:
2323
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2324
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2325
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2326
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2327
+ return [4, response.body.text()];
2328
+ case 1:
2329
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2330
+ "UserSyncResponseDto", ""]);
2331
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2332
+ case 2:
2333
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2334
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2335
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2336
+ return [4, response.body.text()];
2337
+ case 3:
2338
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2339
+ "UserSyncResponseDto", ""]);
2340
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2341
+ case 4:
2342
+ _j = exception_1.ApiException.bind;
2343
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2344
+ return [4, response.getBodyAsAny()];
2345
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2346
+ }
2347
+ });
2348
+ });
2349
+ };
2350
+ AuthApiResponseProcessor.prototype.authControllerUpdateWithHttpInfo = function (response) {
2351
+ return __awaiter(this, void 0, void 0, function () {
2352
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2353
+ return __generator(this, function (_l) {
2354
+ switch (_l.label) {
2355
+ case 0:
2356
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2357
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2358
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2359
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2360
+ return [4, response.body.text()];
2361
+ case 1:
2362
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2363
+ "UserResponseDto", ""]);
2364
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2365
+ case 2:
2366
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
2367
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
2368
+ }
2369
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2370
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2371
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2372
+ return [4, response.body.text()];
2373
+ case 3:
2374
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2375
+ "UserResponseDto", ""]);
2376
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2377
+ case 4:
2378
+ _j = exception_1.ApiException.bind;
2379
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2380
+ return [4, response.getBodyAsAny()];
2381
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2382
+ }
2383
+ });
2384
+ });
2385
+ };
2386
+ AuthApiResponseProcessor.prototype.authControllerUpdateRolesWithHttpInfo = function (response) {
2387
+ return __awaiter(this, void 0, void 0, function () {
2388
+ var contentType, _a, _b;
2389
+ return __generator(this, function (_c) {
2390
+ switch (_c.label) {
2391
+ case 0:
2392
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2393
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
2394
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
2395
+ }
2396
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2397
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined)];
2398
+ }
2399
+ _a = exception_1.ApiException.bind;
2400
+ _b = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2401
+ return [4, response.getBodyAsAny()];
2402
+ case 1: throw new (_a.apply(exception_1.ApiException, _b.concat([_c.sent(), response.headers])))();
2403
+ }
2404
+ });
2405
+ });
2406
+ };
2407
+ AuthApiResponseProcessor.prototype.authControllerUpdateStaffWithHttpInfo = function (response) {
2408
+ return __awaiter(this, void 0, void 0, function () {
2409
+ var contentType, body, _a, _b, _c, _d, _e, _f;
2410
+ return __generator(this, function (_g) {
2411
+ switch (_g.label) {
2412
+ case 0:
2413
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2414
+ if ((0, util_1.isCodeInRange)("200", response.httpStatusCode)) {
2415
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined)];
2416
+ }
2417
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 2];
2418
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2419
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2420
+ return [4, response.body.text()];
2421
+ case 1:
2422
+ body = _b.apply(_a, [_d.apply(_c, [_g.sent(), contentType]),
2423
+ "void", ""]);
2424
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2425
+ case 2:
2426
+ _e = exception_1.ApiException.bind;
2427
+ _f = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2428
+ return [4, response.getBodyAsAny()];
2429
+ case 3: throw new (_e.apply(exception_1.ApiException, _f.concat([_g.sent(), response.headers])))();
2430
+ }
2431
+ });
2432
+ });
2433
+ };
2434
+ AuthApiResponseProcessor.prototype.authControllerUpdateStaffRolesWithHttpInfo = function (response) {
2435
+ return __awaiter(this, void 0, void 0, function () {
2436
+ var contentType, _a, _b;
2437
+ return __generator(this, function (_c) {
2438
+ switch (_c.label) {
2439
+ case 0:
2440
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2441
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
2442
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
2443
+ }
2444
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2445
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined)];
2446
+ }
2447
+ _a = exception_1.ApiException.bind;
2448
+ _b = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2449
+ return [4, response.getBodyAsAny()];
2450
+ case 1: throw new (_a.apply(exception_1.ApiException, _b.concat([_c.sent(), response.headers])))();
2451
+ }
2452
+ });
2453
+ });
2454
+ };
2455
+ AuthApiResponseProcessor.prototype.authControllerUserWithHttpInfo = function (response) {
2456
+ return __awaiter(this, void 0, void 0, function () {
2457
+ var contentType, _a, _b;
2458
+ return __generator(this, function (_c) {
2459
+ switch (_c.label) {
2460
+ case 0:
2461
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2462
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
2463
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
2464
+ }
2465
+ if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
2466
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, undefined)];
2467
+ }
2468
+ _a = exception_1.ApiException.bind;
2469
+ _b = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2470
+ return [4, response.getBodyAsAny()];
2471
+ case 1: throw new (_a.apply(exception_1.ApiException, _b.concat([_c.sent(), response.headers])))();
2472
+ }
2473
+ });
2474
+ });
2475
+ };
2476
+ AuthApiResponseProcessor.prototype.authControllerUserByIdWithHttpInfo = function (response) {
2477
+ return __awaiter(this, void 0, void 0, function () {
2478
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2479
+ return __generator(this, function (_l) {
2480
+ switch (_l.label) {
2481
+ case 0:
2482
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2483
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2484
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2485
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2486
+ return [4, response.body.text()];
2487
+ case 1:
2488
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2489
+ "UserResponseDto", ""]);
2490
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2491
+ case 2:
2492
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2493
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2494
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2495
+ return [4, response.body.text()];
2496
+ case 3:
2497
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2498
+ "UserResponseDto", ""]);
2499
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2500
+ case 4:
2501
+ _j = exception_1.ApiException.bind;
2502
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2503
+ return [4, response.getBodyAsAny()];
2504
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2505
+ }
2506
+ });
2507
+ });
2508
+ };
2509
+ AuthApiResponseProcessor.prototype.authControllerUserFollowersWithHttpInfo = function (response) {
2510
+ return __awaiter(this, void 0, void 0, function () {
2511
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2512
+ return __generator(this, function (_l) {
2513
+ switch (_l.label) {
2514
+ case 0:
2515
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2516
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2517
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2518
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2519
+ return [4, response.body.text()];
2520
+ case 1:
2521
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2522
+ "UserFollowerResponseDto", ""]);
2523
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2524
+ case 2:
2525
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
2526
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
2527
+ }
2528
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2529
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2530
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2531
+ return [4, response.body.text()];
2532
+ case 3:
2533
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2534
+ "UserFollowerResponseDto", ""]);
2535
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2536
+ case 4:
2537
+ _j = exception_1.ApiException.bind;
2538
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2539
+ return [4, response.getBodyAsAny()];
2540
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2541
+ }
2542
+ });
2543
+ });
2544
+ };
2545
+ AuthApiResponseProcessor.prototype.authControllerUserMeWithHttpInfo = function (response) {
2546
+ return __awaiter(this, void 0, void 0, function () {
2547
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2548
+ return __generator(this, function (_l) {
2549
+ switch (_l.label) {
2550
+ case 0:
2551
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2552
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2553
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2554
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2555
+ return [4, response.body.text()];
2556
+ case 1:
2557
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2558
+ "UserResponseDto", ""]);
2559
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2560
+ case 2:
2561
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
2562
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
2563
+ }
2564
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2565
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2566
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2567
+ return [4, response.body.text()];
2568
+ case 3:
2569
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2570
+ "UserResponseDto", ""]);
2571
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2572
+ case 4:
2573
+ _j = exception_1.ApiException.bind;
2574
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2575
+ return [4, response.getBodyAsAny()];
2576
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2577
+ }
2578
+ });
2579
+ });
2580
+ };
2581
+ AuthApiResponseProcessor.prototype.authControllerUserRoleUpdateWithHttpInfo = function (response) {
2582
+ return __awaiter(this, void 0, void 0, function () {
2583
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2584
+ return __generator(this, function (_l) {
2585
+ switch (_l.label) {
2586
+ case 0:
2587
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2588
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2589
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2590
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2591
+ return [4, response.body.text()];
2592
+ case 1:
2593
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2594
+ "UserResponseDto", ""]);
2595
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2596
+ case 2:
2597
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
2598
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
2599
+ }
2600
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2601
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2602
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2603
+ return [4, response.body.text()];
2604
+ case 3:
2605
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2606
+ "UserResponseDto", ""]);
2607
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2608
+ case 4:
2609
+ _j = exception_1.ApiException.bind;
2610
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2611
+ return [4, response.getBodyAsAny()];
2612
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2613
+ }
2614
+ });
2615
+ });
2616
+ };
2617
+ AuthApiResponseProcessor.prototype.authControllerUserUpdateWithHttpInfo = function (response) {
2618
+ return __awaiter(this, void 0, void 0, function () {
2619
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2620
+ return __generator(this, function (_l) {
2621
+ switch (_l.label) {
2622
+ case 0:
2623
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2624
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2625
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2626
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2627
+ return [4, response.body.text()];
2628
+ case 1:
2629
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2630
+ "UserResponseDto", ""]);
2631
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2632
+ case 2:
2633
+ if ((0, util_1.isCodeInRange)("401", response.httpStatusCode)) {
2634
+ throw new exception_1.ApiException(response.httpStatusCode, "Unauthorized", undefined, response.headers);
2635
+ }
2636
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2637
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2638
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2639
+ return [4, response.body.text()];
2640
+ case 3:
2641
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2642
+ "UserResponseDto", ""]);
2643
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2644
+ case 4:
2645
+ _j = exception_1.ApiException.bind;
2646
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2647
+ return [4, response.getBodyAsAny()];
2648
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2649
+ }
2650
+ });
2651
+ });
2652
+ };
2653
+ AuthApiResponseProcessor.prototype.authControllerVerifyOtpWithHttpInfo = function (response) {
2654
+ return __awaiter(this, void 0, void 0, function () {
2655
+ var contentType, body, _a, _b, _c, _d, body, _e, _f, _g, _h, _j, _k;
2656
+ return __generator(this, function (_l) {
2657
+ switch (_l.label) {
2658
+ case 0:
2659
+ contentType = ObjectSerializer_1.ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
2660
+ if (!(0, util_1.isCodeInRange)("200", response.httpStatusCode)) return [3, 2];
2661
+ _b = (_a = ObjectSerializer_1.ObjectSerializer).deserialize;
2662
+ _d = (_c = ObjectSerializer_1.ObjectSerializer).parse;
2663
+ return [4, response.body.text()];
2664
+ case 1:
2665
+ body = _b.apply(_a, [_d.apply(_c, [_l.sent(), contentType]),
2666
+ "ForgetPasswordEntityResponseDto", ""]);
2667
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2668
+ case 2:
2669
+ if (!(response.httpStatusCode >= 200 && response.httpStatusCode <= 299)) return [3, 4];
2670
+ _f = (_e = ObjectSerializer_1.ObjectSerializer).deserialize;
2671
+ _h = (_g = ObjectSerializer_1.ObjectSerializer).parse;
2672
+ return [4, response.body.text()];
2673
+ case 3:
2674
+ body = _f.apply(_e, [_h.apply(_g, [_l.sent(), contentType]),
2675
+ "ForgetPasswordEntityResponseDto", ""]);
2676
+ return [2, new http_1.HttpInfo(response.httpStatusCode, response.headers, response.body, body)];
2677
+ case 4:
2678
+ _j = exception_1.ApiException.bind;
2679
+ _k = [void 0, response.httpStatusCode, "Unknown API Status Code!"];
2680
+ return [4, response.getBodyAsAny()];
2681
+ case 5: throw new (_j.apply(exception_1.ApiException, _k.concat([_l.sent(), response.headers])))();
2682
+ }
2683
+ });
2684
+ });
2685
+ };
2686
+ return AuthApiResponseProcessor;
2687
+ }());
2688
+ exports.AuthApiResponseProcessor = AuthApiResponseProcessor;
2689
+ //# sourceMappingURL=AuthApi.js.map