nest-wrapper-kiwoom 0.81.0 → 0.83.0

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 (412) hide show
  1. package/README.md +4 -4
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/interfaces/index.d.ts +1 -0
  5. package/dist/interfaces/index.d.ts.map +1 -0
  6. package/dist/interfaces/kiwoom-async-options.interface.d.ts +1 -0
  7. package/dist/interfaces/kiwoom-async-options.interface.d.ts.map +1 -0
  8. package/dist/interfaces/kiwoom-options.interface.d.ts +1 -0
  9. package/dist/interfaces/kiwoom-options.interface.d.ts.map +1 -0
  10. package/dist/kiwoom.constants.d.ts +1 -0
  11. package/dist/kiwoom.constants.d.ts.map +1 -0
  12. package/dist/kiwoom.module.d.ts +1 -0
  13. package/dist/kiwoom.module.d.ts.map +1 -0
  14. package/dist/kiwoom.module.js +16 -20
  15. package/dist/kiwoom.module.js.map +1 -1
  16. package/dist/services/account.service.d.ts +1 -0
  17. package/dist/services/account.service.d.ts.map +1 -0
  18. package/dist/services/account.service.js +121 -308
  19. package/dist/services/account.service.js.map +1 -1
  20. package/dist/services/credit-order.service.d.ts +17 -0
  21. package/dist/services/credit-order.service.d.ts.map +1 -0
  22. package/dist/services/credit-order.service.js +61 -0
  23. package/dist/services/credit-order.service.js.map +1 -0
  24. package/dist/services/etf.service.d.ts +1 -0
  25. package/dist/services/etf.service.d.ts.map +1 -0
  26. package/dist/services/etf.service.js +120 -294
  27. package/dist/services/etf.service.js.map +1 -1
  28. package/dist/services/foreign-institutional.service.d.ts +1 -0
  29. package/dist/services/foreign-institutional.service.d.ts.map +1 -0
  30. package/dist/services/foreign-institutional.service.js +37 -112
  31. package/dist/services/foreign-institutional.service.js.map +1 -1
  32. package/dist/services/index.d.ts +4 -0
  33. package/dist/services/index.d.ts.map +1 -0
  34. package/dist/services/index.js +3 -0
  35. package/dist/services/index.js.map +1 -1
  36. package/dist/services/market-condition.service.d.ts +16 -1
  37. package/dist/services/market-condition.service.d.ts.map +1 -0
  38. package/dist/services/market-condition.service.js +100 -161
  39. package/dist/services/market-condition.service.js.map +1 -1
  40. package/dist/services/oauth2.service.d.ts +1 -0
  41. package/dist/services/oauth2.service.d.ts.map +1 -0
  42. package/dist/services/oauth2.service.js +49 -110
  43. package/dist/services/oauth2.service.js.map +1 -1
  44. package/dist/services/order.service.d.ts +1 -0
  45. package/dist/services/order.service.d.ts.map +1 -0
  46. package/dist/services/order.service.js +25 -96
  47. package/dist/services/order.service.js.map +1 -1
  48. package/dist/services/rank-info.service.d.ts +1 -0
  49. package/dist/services/rank-info.service.d.ts.map +1 -0
  50. package/dist/services/rank-info.service.js +94 -245
  51. package/dist/services/rank-info.service.js.map +1 -1
  52. package/dist/services/sector.service.d.ts +19 -0
  53. package/dist/services/sector.service.d.ts.map +1 -0
  54. package/dist/services/sector.service.js +67 -0
  55. package/dist/services/sector.service.js.map +1 -0
  56. package/dist/services/securities-lending-borrowing.service.d.ts +1 -0
  57. package/dist/services/securities-lending-borrowing.service.d.ts.map +1 -0
  58. package/dist/services/securities-lending-borrowing.service.js +37 -112
  59. package/dist/services/securities-lending-borrowing.service.js.map +1 -1
  60. package/dist/services/shortSale.service.d.ts +1 -0
  61. package/dist/services/shortSale.service.d.ts.map +1 -0
  62. package/dist/services/shortSale.service.js +28 -91
  63. package/dist/services/shortSale.service.js.map +1 -1
  64. package/dist/services/stock-info.service.d.ts +23 -0
  65. package/dist/services/stock-info.service.d.ts.map +1 -0
  66. package/dist/services/stock-info.service.js +79 -0
  67. package/dist/services/stock-info.service.js.map +1 -0
  68. package/dist/types/account/index.d.ts +1 -0
  69. package/dist/types/account/index.d.ts.map +1 -0
  70. package/dist/types/account/ka01690.d.ts +1 -0
  71. package/dist/types/account/ka01690.d.ts.map +1 -0
  72. package/dist/types/account/ka10072.d.ts +1 -0
  73. package/dist/types/account/ka10072.d.ts.map +1 -0
  74. package/dist/types/account/ka10073.d.ts +1 -0
  75. package/dist/types/account/ka10073.d.ts.map +1 -0
  76. package/dist/types/account/ka10074.d.ts +1 -0
  77. package/dist/types/account/ka10074.d.ts.map +1 -0
  78. package/dist/types/account/ka10075.d.ts +1 -0
  79. package/dist/types/account/ka10075.d.ts.map +1 -0
  80. package/dist/types/account/ka10076.d.ts +1 -0
  81. package/dist/types/account/ka10076.d.ts.map +1 -0
  82. package/dist/types/account/ka10077.d.ts +1 -0
  83. package/dist/types/account/ka10077.d.ts.map +1 -0
  84. package/dist/types/account/ka10085.d.ts +1 -0
  85. package/dist/types/account/ka10085.d.ts.map +1 -0
  86. package/dist/types/account/ka10088.d.ts +1 -0
  87. package/dist/types/account/ka10088.d.ts.map +1 -0
  88. package/dist/types/account/ka10170.d.ts +1 -0
  89. package/dist/types/account/ka10170.d.ts.map +1 -0
  90. package/dist/types/account/kt00001.d.ts +1 -0
  91. package/dist/types/account/kt00001.d.ts.map +1 -0
  92. package/dist/types/account/kt00002.d.ts +1 -0
  93. package/dist/types/account/kt00002.d.ts.map +1 -0
  94. package/dist/types/account/kt00003.d.ts +1 -0
  95. package/dist/types/account/kt00003.d.ts.map +1 -0
  96. package/dist/types/account/kt00004.d.ts +1 -0
  97. package/dist/types/account/kt00004.d.ts.map +1 -0
  98. package/dist/types/account/kt00005.d.ts +1 -0
  99. package/dist/types/account/kt00005.d.ts.map +1 -0
  100. package/dist/types/account/kt00007.d.ts +1 -0
  101. package/dist/types/account/kt00007.d.ts.map +1 -0
  102. package/dist/types/account/kt00008.d.ts +1 -0
  103. package/dist/types/account/kt00008.d.ts.map +1 -0
  104. package/dist/types/account/kt00009.d.ts +1 -0
  105. package/dist/types/account/kt00009.d.ts.map +1 -0
  106. package/dist/types/account/kt00010.d.ts +1 -0
  107. package/dist/types/account/kt00010.d.ts.map +1 -0
  108. package/dist/types/account/kt00011.d.ts +1 -0
  109. package/dist/types/account/kt00011.d.ts.map +1 -0
  110. package/dist/types/account/kt00012.d.ts +1 -0
  111. package/dist/types/account/kt00012.d.ts.map +1 -0
  112. package/dist/types/account/kt00013.d.ts +1 -0
  113. package/dist/types/account/kt00013.d.ts.map +1 -0
  114. package/dist/types/account/kt00015.d.ts +1 -0
  115. package/dist/types/account/kt00015.d.ts.map +1 -0
  116. package/dist/types/account/kt00016.d.ts +1 -0
  117. package/dist/types/account/kt00016.d.ts.map +1 -0
  118. package/dist/types/account/kt00017.d.ts +1 -0
  119. package/dist/types/account/kt00017.d.ts.map +1 -0
  120. package/dist/types/account/kt00018.d.ts +1 -0
  121. package/dist/types/account/kt00018.d.ts.map +1 -0
  122. package/dist/types/account/kt50020.d.ts +1 -0
  123. package/dist/types/account/kt50020.d.ts.map +1 -0
  124. package/dist/types/account/kt50021.d.ts +1 -0
  125. package/dist/types/account/kt50021.d.ts.map +1 -0
  126. package/dist/types/account/kt50030.d.ts +1 -0
  127. package/dist/types/account/kt50030.d.ts.map +1 -0
  128. package/dist/types/account/kt50031.d.ts +1 -0
  129. package/dist/types/account/kt50031.d.ts.map +1 -0
  130. package/dist/types/account/kt50032.d.ts +1 -0
  131. package/dist/types/account/kt50032.d.ts.map +1 -0
  132. package/dist/types/account/kt50075.d.ts +1 -0
  133. package/dist/types/account/kt50075.d.ts.map +1 -0
  134. package/dist/types/credit-order/index.d.ts +5 -0
  135. package/dist/types/credit-order/index.d.ts.map +1 -0
  136. package/dist/types/credit-order/index.js +21 -0
  137. package/dist/types/credit-order/index.js.map +1 -0
  138. package/dist/types/credit-order/kt10006.d.ts +15 -0
  139. package/dist/types/credit-order/kt10006.d.ts.map +1 -0
  140. package/dist/types/credit-order/kt10006.js +3 -0
  141. package/dist/types/credit-order/kt10006.js.map +1 -0
  142. package/dist/types/credit-order/kt10007.d.ts +17 -0
  143. package/dist/types/credit-order/kt10007.d.ts.map +1 -0
  144. package/dist/types/credit-order/kt10007.js +3 -0
  145. package/dist/types/credit-order/kt10007.js.map +1 -0
  146. package/dist/types/credit-order/kt10008.d.ts +17 -0
  147. package/dist/types/credit-order/kt10008.d.ts.map +1 -0
  148. package/dist/types/credit-order/kt10008.js +3 -0
  149. package/dist/types/credit-order/kt10008.js.map +1 -0
  150. package/dist/types/credit-order/kt10009.d.ts +14 -0
  151. package/dist/types/credit-order/kt10009.d.ts.map +1 -0
  152. package/dist/types/credit-order/kt10009.js +3 -0
  153. package/dist/types/credit-order/kt10009.js.map +1 -0
  154. package/dist/types/etf/index.d.ts +1 -0
  155. package/dist/types/etf/index.d.ts.map +1 -0
  156. package/dist/types/etf/ka40001.d.ts +1 -0
  157. package/dist/types/etf/ka40001.d.ts.map +1 -0
  158. package/dist/types/etf/ka40002.d.ts +1 -0
  159. package/dist/types/etf/ka40002.d.ts.map +1 -0
  160. package/dist/types/etf/ka40003.d.ts +1 -0
  161. package/dist/types/etf/ka40003.d.ts.map +1 -0
  162. package/dist/types/etf/ka40004.d.ts +1 -0
  163. package/dist/types/etf/ka40004.d.ts.map +1 -0
  164. package/dist/types/etf/ka40006.d.ts +1 -0
  165. package/dist/types/etf/ka40006.d.ts.map +1 -0
  166. package/dist/types/etf/ka40007.d.ts +1 -0
  167. package/dist/types/etf/ka40007.d.ts.map +1 -0
  168. package/dist/types/etf/ka40008.d.ts +1 -0
  169. package/dist/types/etf/ka40008.d.ts.map +1 -0
  170. package/dist/types/etf/ka40009.d.ts +1 -0
  171. package/dist/types/etf/ka40009.d.ts.map +1 -0
  172. package/dist/types/etf/ka40010.d.ts +1 -0
  173. package/dist/types/etf/ka40010.d.ts.map +1 -0
  174. package/dist/types/foreign-institutional/index.d.ts +1 -0
  175. package/dist/types/foreign-institutional/index.d.ts.map +1 -0
  176. package/dist/types/foreign-institutional/ka10008.d.ts +1 -0
  177. package/dist/types/foreign-institutional/ka10008.d.ts.map +1 -0
  178. package/dist/types/foreign-institutional/ka10009.d.ts +1 -0
  179. package/dist/types/foreign-institutional/ka10009.d.ts.map +1 -0
  180. package/dist/types/foreign-institutional/ka10131.d.ts +1 -0
  181. package/dist/types/foreign-institutional/ka10131.d.ts.map +1 -0
  182. package/dist/types/foreign-institutional/ka52301.d.ts +1 -0
  183. package/dist/types/foreign-institutional/ka52301.d.ts.map +1 -0
  184. package/dist/types/index.d.ts +4 -0
  185. package/dist/types/index.d.ts.map +1 -0
  186. package/dist/types/index.js +3 -0
  187. package/dist/types/index.js.map +1 -1
  188. package/dist/types/market-condition/index.d.ts +15 -0
  189. package/dist/types/market-condition/index.d.ts.map +1 -0
  190. package/dist/types/market-condition/index.js +14 -0
  191. package/dist/types/market-condition/index.js.map +1 -1
  192. package/dist/types/market-condition/ka10004.d.ts +1 -0
  193. package/dist/types/market-condition/ka10004.d.ts.map +1 -0
  194. package/dist/types/market-condition/ka10005.d.ts +1 -0
  195. package/dist/types/market-condition/ka10005.d.ts.map +1 -0
  196. package/dist/types/market-condition/ka10006.d.ts +1 -0
  197. package/dist/types/market-condition/ka10006.d.ts.map +1 -0
  198. package/dist/types/market-condition/ka10007.d.ts +1 -0
  199. package/dist/types/market-condition/ka10007.d.ts.map +1 -0
  200. package/dist/types/market-condition/ka10011.d.ts +1 -0
  201. package/dist/types/market-condition/ka10011.d.ts.map +1 -0
  202. package/dist/types/market-condition/ka10044.d.ts +1 -0
  203. package/dist/types/market-condition/ka10044.d.ts.map +1 -0
  204. package/dist/types/market-condition/ka10045.d.ts +1 -0
  205. package/dist/types/market-condition/ka10045.d.ts.map +1 -0
  206. package/dist/types/market-condition/ka10046.d.ts +1 -0
  207. package/dist/types/market-condition/ka10046.d.ts.map +1 -0
  208. package/dist/types/market-condition/ka10047.d.ts +1 -0
  209. package/dist/types/market-condition/ka10047.d.ts.map +1 -0
  210. package/dist/types/market-condition/ka10063.d.ts +1 -0
  211. package/dist/types/market-condition/ka10063.d.ts.map +1 -0
  212. package/dist/types/market-condition/ka10066.d.ts +1 -0
  213. package/dist/types/market-condition/ka10066.d.ts.map +1 -0
  214. package/dist/types/market-condition/ka10078.d.ts +24 -0
  215. package/dist/types/market-condition/ka10078.d.ts.map +1 -0
  216. package/dist/types/market-condition/ka10078.js +3 -0
  217. package/dist/types/market-condition/ka10078.js.map +1 -0
  218. package/dist/types/market-condition/ka10086.d.ts +36 -0
  219. package/dist/types/market-condition/ka10086.d.ts.map +1 -0
  220. package/dist/types/market-condition/ka10086.js +3 -0
  221. package/dist/types/market-condition/ka10086.js.map +1 -0
  222. package/dist/types/market-condition/ka10087.d.ts +54 -0
  223. package/dist/types/market-condition/ka10087.d.ts.map +1 -0
  224. package/dist/types/market-condition/ka10087.js +3 -0
  225. package/dist/types/market-condition/ka10087.js.map +1 -0
  226. package/dist/types/market-condition/ka50010.d.ts +25 -0
  227. package/dist/types/market-condition/ka50010.d.ts.map +1 -0
  228. package/dist/types/market-condition/ka50010.js +3 -0
  229. package/dist/types/market-condition/ka50010.js.map +1 -0
  230. package/dist/types/market-condition/ka50012.d.ts +26 -0
  231. package/dist/types/market-condition/ka50012.d.ts.map +1 -0
  232. package/dist/types/market-condition/ka50012.js +3 -0
  233. package/dist/types/market-condition/ka50012.js.map +1 -0
  234. package/dist/types/market-condition/ka50087.d.ts +20 -0
  235. package/dist/types/market-condition/ka50087.d.ts.map +1 -0
  236. package/dist/types/market-condition/ka50087.js +3 -0
  237. package/dist/types/market-condition/ka50087.js.map +1 -0
  238. package/dist/types/market-condition/ka50100.d.ts +19 -0
  239. package/dist/types/market-condition/ka50100.d.ts.map +1 -0
  240. package/dist/types/market-condition/ka50100.js +3 -0
  241. package/dist/types/market-condition/ka50100.js.map +1 -0
  242. package/dist/types/market-condition/ka50101.d.ts +28 -0
  243. package/dist/types/market-condition/ka50101.d.ts.map +1 -0
  244. package/dist/types/market-condition/ka50101.js +3 -0
  245. package/dist/types/market-condition/ka50101.js.map +1 -0
  246. package/dist/types/market-condition/ka90005.d.ts +34 -0
  247. package/dist/types/market-condition/ka90005.d.ts.map +1 -0
  248. package/dist/types/market-condition/ka90005.js +3 -0
  249. package/dist/types/market-condition/ka90005.js.map +1 -0
  250. package/dist/types/market-condition/ka90006.d.ts +20 -0
  251. package/dist/types/market-condition/ka90006.d.ts.map +1 -0
  252. package/dist/types/market-condition/ka90006.js +3 -0
  253. package/dist/types/market-condition/ka90006.js.map +1 -0
  254. package/dist/types/market-condition/ka90007.d.ts +24 -0
  255. package/dist/types/market-condition/ka90007.d.ts.map +1 -0
  256. package/dist/types/market-condition/ka90007.js +3 -0
  257. package/dist/types/market-condition/ka90007.js.map +1 -0
  258. package/dist/types/market-condition/ka90008.d.ts +32 -0
  259. package/dist/types/market-condition/ka90008.d.ts.map +1 -0
  260. package/dist/types/market-condition/ka90008.js +3 -0
  261. package/dist/types/market-condition/ka90008.js.map +1 -0
  262. package/dist/types/market-condition/ka90010.d.ts +34 -0
  263. package/dist/types/market-condition/ka90010.d.ts.map +1 -0
  264. package/dist/types/market-condition/ka90010.js +3 -0
  265. package/dist/types/market-condition/ka90010.js.map +1 -0
  266. package/dist/types/market-condition/ka90013.d.ts +32 -0
  267. package/dist/types/market-condition/ka90013.d.ts.map +1 -0
  268. package/dist/types/market-condition/ka90013.js +3 -0
  269. package/dist/types/market-condition/ka90013.js.map +1 -0
  270. package/dist/types/oauth2/au10001.d.ts +1 -0
  271. package/dist/types/oauth2/au10001.d.ts.map +1 -0
  272. package/dist/types/oauth2/index.d.ts +1 -0
  273. package/dist/types/oauth2/index.d.ts.map +1 -0
  274. package/dist/types/order/index.d.ts +1 -0
  275. package/dist/types/order/index.d.ts.map +1 -0
  276. package/dist/types/order/kt10000.d.ts +1 -0
  277. package/dist/types/order/kt10000.d.ts.map +1 -0
  278. package/dist/types/rank-info/index.d.ts +1 -0
  279. package/dist/types/rank-info/index.d.ts.map +1 -0
  280. package/dist/types/rank-info/ka10020.d.ts +1 -0
  281. package/dist/types/rank-info/ka10020.d.ts.map +1 -0
  282. package/dist/types/rank-info/ka10021.d.ts +1 -0
  283. package/dist/types/rank-info/ka10021.d.ts.map +1 -0
  284. package/dist/types/rank-info/ka10022.d.ts +1 -0
  285. package/dist/types/rank-info/ka10022.d.ts.map +1 -0
  286. package/dist/types/rank-info/ka10023.d.ts +1 -0
  287. package/dist/types/rank-info/ka10023.d.ts.map +1 -0
  288. package/dist/types/rank-info/ka10027.d.ts +1 -0
  289. package/dist/types/rank-info/ka10027.d.ts.map +1 -0
  290. package/dist/types/rank-info/ka10029.d.ts +1 -0
  291. package/dist/types/rank-info/ka10029.d.ts.map +1 -0
  292. package/dist/types/rank-info/ka10030.d.ts +1 -0
  293. package/dist/types/rank-info/ka10030.d.ts.map +1 -0
  294. package/dist/types/rank-info/ka10031.d.ts +1 -0
  295. package/dist/types/rank-info/ka10031.d.ts.map +1 -0
  296. package/dist/types/rank-info/ka10032.d.ts +1 -0
  297. package/dist/types/rank-info/ka10032.d.ts.map +1 -0
  298. package/dist/types/rank-info/ka10033.d.ts +1 -0
  299. package/dist/types/rank-info/ka10033.d.ts.map +1 -0
  300. package/dist/types/rank-info/ka10034.d.ts +1 -0
  301. package/dist/types/rank-info/ka10034.d.ts.map +1 -0
  302. package/dist/types/rank-info/ka10035.d.ts +1 -0
  303. package/dist/types/rank-info/ka10035.d.ts.map +1 -0
  304. package/dist/types/rank-info/ka10036.d.ts +1 -0
  305. package/dist/types/rank-info/ka10036.d.ts.map +1 -0
  306. package/dist/types/rank-info/ka10037.d.ts +1 -0
  307. package/dist/types/rank-info/ka10037.d.ts.map +1 -0
  308. package/dist/types/rank-info/ka10038.d.ts +1 -0
  309. package/dist/types/rank-info/ka10038.d.ts.map +1 -0
  310. package/dist/types/rank-info/ka10039.d.ts +1 -0
  311. package/dist/types/rank-info/ka10039.d.ts.map +1 -0
  312. package/dist/types/rank-info/ka10040.d.ts +1 -0
  313. package/dist/types/rank-info/ka10040.d.ts.map +1 -0
  314. package/dist/types/rank-info/ka10042.d.ts +1 -0
  315. package/dist/types/rank-info/ka10042.d.ts.map +1 -0
  316. package/dist/types/rank-info/ka10053.d.ts +1 -0
  317. package/dist/types/rank-info/ka10053.d.ts.map +1 -0
  318. package/dist/types/rank-info/ka10062.d.ts +1 -0
  319. package/dist/types/rank-info/ka10062.d.ts.map +1 -0
  320. package/dist/types/rank-info/ka10065.d.ts +1 -0
  321. package/dist/types/rank-info/ka10065.d.ts.map +1 -0
  322. package/dist/types/rank-info/ka10098.d.ts +1 -0
  323. package/dist/types/rank-info/ka10098.d.ts.map +1 -0
  324. package/dist/types/rank-info/ka90009.d.ts +1 -0
  325. package/dist/types/rank-info/ka90009.d.ts.map +1 -0
  326. package/dist/types/sector/index.d.ts +7 -0
  327. package/dist/types/sector/index.d.ts.map +1 -0
  328. package/dist/types/sector/index.js +23 -0
  329. package/dist/types/sector/index.js.map +1 -0
  330. package/dist/types/sector/ka10010.d.ts +26 -0
  331. package/dist/types/sector/ka10010.d.ts.map +1 -0
  332. package/dist/types/sector/ka10010.js +3 -0
  333. package/dist/types/sector/ka10010.js.map +1 -0
  334. package/dist/types/sector/ka10051.d.ts +35 -0
  335. package/dist/types/sector/ka10051.d.ts.map +1 -0
  336. package/dist/types/sector/ka10051.js +3 -0
  337. package/dist/types/sector/ka10051.js.map +1 -0
  338. package/dist/types/sector/ka20001.d.ts +43 -0
  339. package/dist/types/sector/ka20001.d.ts.map +1 -0
  340. package/dist/types/sector/ka20001.js +3 -0
  341. package/dist/types/sector/ka20001.js.map +1 -0
  342. package/dist/types/sector/ka20002.d.ts +26 -0
  343. package/dist/types/sector/ka20002.d.ts.map +1 -0
  344. package/dist/types/sector/ka20002.js +3 -0
  345. package/dist/types/sector/ka20002.js.map +1 -0
  346. package/dist/types/sector/ka20003.d.ts +27 -0
  347. package/dist/types/sector/ka20003.d.ts.map +1 -0
  348. package/dist/types/sector/ka20003.js +3 -0
  349. package/dist/types/sector/ka20003.js.map +1 -0
  350. package/dist/types/sector/ka20009.d.ts +41 -0
  351. package/dist/types/sector/ka20009.d.ts.map +1 -0
  352. package/dist/types/sector/ka20009.js +3 -0
  353. package/dist/types/sector/ka20009.js.map +1 -0
  354. package/dist/types/securities-lending-borrowing/index.d.ts +1 -0
  355. package/dist/types/securities-lending-borrowing/index.d.ts.map +1 -0
  356. package/dist/types/securities-lending-borrowing/ka10068.d.ts +1 -0
  357. package/dist/types/securities-lending-borrowing/ka10068.d.ts.map +1 -0
  358. package/dist/types/securities-lending-borrowing/ka10069.d.ts +1 -0
  359. package/dist/types/securities-lending-borrowing/ka10069.d.ts.map +1 -0
  360. package/dist/types/securities-lending-borrowing/ka20068.d.ts +1 -0
  361. package/dist/types/securities-lending-borrowing/ka20068.d.ts.map +1 -0
  362. package/dist/types/securities-lending-borrowing/ka90012.d.ts +1 -0
  363. package/dist/types/securities-lending-borrowing/ka90012.d.ts.map +1 -0
  364. package/dist/types/shortSale/index.d.ts +1 -0
  365. package/dist/types/shortSale/index.d.ts.map +1 -0
  366. package/dist/types/shortSale/ka10014.d.ts +1 -0
  367. package/dist/types/shortSale/ka10014.d.ts.map +1 -0
  368. package/dist/types/stock-info/index.d.ts +11 -0
  369. package/dist/types/stock-info/index.d.ts.map +1 -0
  370. package/dist/types/stock-info/index.js +27 -0
  371. package/dist/types/stock-info/index.js.map +1 -0
  372. package/dist/types/stock-info/ka00198.d.ts +24 -0
  373. package/dist/types/stock-info/ka00198.d.ts.map +1 -0
  374. package/dist/types/stock-info/ka00198.js +3 -0
  375. package/dist/types/stock-info/ka00198.js.map +1 -0
  376. package/dist/types/stock-info/ka10001.d.ts +53 -0
  377. package/dist/types/stock-info/ka10001.d.ts.map +1 -0
  378. package/dist/types/stock-info/ka10001.js +3 -0
  379. package/dist/types/stock-info/ka10001.js.map +1 -0
  380. package/dist/types/stock-info/ka10002.d.ts +45 -0
  381. package/dist/types/stock-info/ka10002.d.ts.map +1 -0
  382. package/dist/types/stock-info/ka10002.js +3 -0
  383. package/dist/types/stock-info/ka10002.js.map +1 -0
  384. package/dist/types/stock-info/ka10003.d.ts +24 -0
  385. package/dist/types/stock-info/ka10003.d.ts.map +1 -0
  386. package/dist/types/stock-info/ka10003.js +3 -0
  387. package/dist/types/stock-info/ka10003.js.map +1 -0
  388. package/dist/types/stock-info/ka10013.d.ts +26 -0
  389. package/dist/types/stock-info/ka10013.d.ts.map +1 -0
  390. package/dist/types/stock-info/ka10013.js +3 -0
  391. package/dist/types/stock-info/ka10013.js.map +1 -0
  392. package/dist/types/stock-info/ka10015.d.ts +43 -0
  393. package/dist/types/stock-info/ka10015.d.ts.map +1 -0
  394. package/dist/types/stock-info/ka10015.js +3 -0
  395. package/dist/types/stock-info/ka10015.js.map +1 -0
  396. package/dist/types/stock-info/ka10016.d.ts +32 -0
  397. package/dist/types/stock-info/ka10016.d.ts.map +1 -0
  398. package/dist/types/stock-info/ka10016.js +3 -0
  399. package/dist/types/stock-info/ka10016.js.map +1 -0
  400. package/dist/types/stock-info/ka10017.d.ts +33 -0
  401. package/dist/types/stock-info/ka10017.d.ts.map +1 -0
  402. package/dist/types/stock-info/ka10017.js +3 -0
  403. package/dist/types/stock-info/ka10017.js.map +1 -0
  404. package/dist/types/stock-info/ka10018.d.ts +29 -0
  405. package/dist/types/stock-info/ka10018.d.ts.map +1 -0
  406. package/dist/types/stock-info/ka10018.js +3 -0
  407. package/dist/types/stock-info/ka10018.js.map +1 -0
  408. package/dist/types/stock-info/ka10019.d.ts +32 -0
  409. package/dist/types/stock-info/ka10019.d.ts.map +1 -0
  410. package/dist/types/stock-info/ka10019.js +3 -0
  411. package/dist/types/stock-info/ka10019.js.map +1 -0
  412. package/package.json +4 -2
package/README.md CHANGED
@@ -20,11 +20,11 @@ npm install nest-wrapper-kiwoom
20
20
  - 대차거래
21
21
  - 순위정보
22
22
  - 시세
23
- - 신용주문 (추후 지원 예정)
23
+ - 신용주문
24
24
  - 실시간시세 (추후 지원 예정)
25
- - 업종 (추후 지원 예정)
25
+ - 업종
26
26
  - 조건검색 (추후 지원 예정)
27
- - 종목정보 (추후 지원 예정)
27
+ - 종목정보
28
28
  - 주문 (추후 지원 예정)
29
29
  - 차트 (추후 지원 예정)
30
30
  - 테마 (추후 지원 예정)
@@ -40,7 +40,7 @@ npm install nest-wrapper-kiwoom
40
40
 
41
41
  ## 참고 자료
42
42
 
43
- - [키움증권 REST API 공식 사이트](https://openapi.kiwoom.com)
43
+ - 키움 API 명세서 : ./키움 REST API 문서.xlsx
44
44
 
45
45
  ## 라이선스
46
46
 
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './kiwoom.module';
2
2
  export * from './services/oauth2.service';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './kiwoom-options.interface';
2
2
  export * from './kiwoom-async-options.interface';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC"}
@@ -1,3 +1,4 @@
1
1
  import { FactoryProvider, ModuleMetadata } from '@nestjs/common';
2
2
  import { KiwoomOptions } from '@interfaces/kiwoom-options.interface';
3
3
  export type KiwoomAsyncOptions = Pick<ModuleMetadata, 'imports'> & Pick<FactoryProvider<KiwoomOptions>, 'useFactory' | 'inject'>;
4
+ //# sourceMappingURL=kiwoom-async-options.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kiwoom-async-options.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/kiwoom-async-options.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AAErE,MAAM,MAAM,kBAAkB,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAC,CAAC"}
@@ -2,3 +2,4 @@ export interface KiwoomOptions {
2
2
  appKey: string;
3
3
  secretKey: string;
4
4
  }
5
+ //# sourceMappingURL=kiwoom-options.interface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kiwoom-options.interface.d.ts","sourceRoot":"","sources":["../../src/interfaces/kiwoom-options.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;CAClB"}
@@ -1 +1,2 @@
1
1
  export declare const KIWOOM_MODULE_OPTIONS: unique symbol;
2
+ //# sourceMappingURL=kiwoom.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kiwoom.constants.d.ts","sourceRoot":"","sources":["../src/kiwoom.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,eAAkC,CAAC"}
@@ -4,3 +4,4 @@ export declare class KiwoomModule {
4
4
  static register(options: KiwoomOptions): DynamicModule;
5
5
  static registerAsync(options: KiwoomAsyncOptions): DynamicModule;
6
6
  }
7
+ //# sourceMappingURL=kiwoom.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kiwoom.module.d.ts","sourceRoot":"","sources":["../src/kiwoom.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAKjE,qBAGa,YAAY;IACxB,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,aAAa,GAAG,aAAa;IAkBtD,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,kBAAkB,GAAG,aAAa;CAiBhE"}
@@ -5,17 +5,15 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
5
5
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
+ var KiwoomModule_1;
8
9
  Object.defineProperty(exports, "__esModule", { value: true });
9
10
  exports.KiwoomModule = void 0;
10
- var common_1 = require("@nestjs/common");
11
- var kiwoom_constants_1 = require("./kiwoom.constants");
12
- var axios_1 = require("@nestjs/axios");
13
- var services_1 = require("@src/services");
14
- var KiwoomModule = (function () {
15
- function KiwoomModule() {
16
- }
17
- KiwoomModule_1 = KiwoomModule;
18
- KiwoomModule.register = function (options) {
11
+ const common_1 = require("@nestjs/common");
12
+ const kiwoom_constants_1 = require("./kiwoom.constants");
13
+ const axios_1 = require("@nestjs/axios");
14
+ const services_1 = require("@src/services");
15
+ let KiwoomModule = KiwoomModule_1 = class KiwoomModule {
16
+ static register(options) {
19
17
  return {
20
18
  module: KiwoomModule_1,
21
19
  imports: [axios_1.HttpModule],
@@ -31,8 +29,8 @@ var KiwoomModule = (function () {
31
29
  ],
32
30
  exports: [services_1.ETFService, services_1.OrderService, services_1.AccountService, services_1.ShortSaleService, services_1.ForeignInstitutionalService, services_1.RankInfoService],
33
31
  };
34
- };
35
- KiwoomModule.registerAsync = function (options) {
32
+ }
33
+ static registerAsync(options) {
36
34
  return {
37
35
  module: KiwoomModule_1,
38
36
  imports: [axios_1.HttpModule],
@@ -48,14 +46,12 @@ var KiwoomModule = (function () {
48
46
  ],
49
47
  exports: [services_1.ETFService, services_1.OrderService, services_1.AccountService, services_1.ShortSaleService, services_1.ForeignInstitutionalService, services_1.RankInfoService],
50
48
  };
51
- };
52
- var KiwoomModule_1;
53
- KiwoomModule = KiwoomModule_1 = __decorate([
54
- (0, common_1.Module)({
55
- imports: [axios_1.HttpModule],
56
- })
57
- ], KiwoomModule);
58
- return KiwoomModule;
59
- }());
49
+ }
50
+ };
60
51
  exports.KiwoomModule = KiwoomModule;
52
+ exports.KiwoomModule = KiwoomModule = KiwoomModule_1 = __decorate([
53
+ (0, common_1.Module)({
54
+ imports: [axios_1.HttpModule],
55
+ })
56
+ ], KiwoomModule);
61
57
  //# sourceMappingURL=kiwoom.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"kiwoom.module.js","sourceRoot":"","sources":["../src/kiwoom.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAAuD;AAEvD,uDAA2D;AAC3D,uCAA2C;AAC3C,0CAAiJ;AAKjJ;IAAA;IAoCA,CAAC;qBApCY,YAAY;IACjB,qBAAQ,GAAf,UAAgB,OAAsB;QACrC,OAAO;YACN,MAAM,EAAE,cAAY;YACpB,OAAO,EAAE,CAAC,kBAAU,CAAC;YACrB,SAAS,EAAE;gBACV,EAAE,OAAO,EAAE,wCAAqB,EAAE,QAAQ,EAAE,OAAO,EAAE;gBACrD,iBAAM;gBACN,uBAAY;gBACZ,qBAAU;gBACV,yBAAc;gBACd,2BAAgB;gBAChB,sCAA2B;gBAC3B,0BAAe;aACf;YACD,OAAO,EAAE,CAAC,qBAAU,EAAE,uBAAY,EAAE,yBAAc,EAAE,2BAAgB,EAAE,sCAA2B,EAAE,0BAAe,CAAC;SACnH,CAAC;IACH,CAAC;IAEM,0BAAa,GAApB,UAAqB,OAA2B;QAC/C,OAAO;YACN,MAAM,EAAE,cAAY;YACpB,OAAO,EAAE,CAAC,kBAAU,CAAC;YACrB,SAAS,EAAE;gBACV,EAAE,OAAO,EAAE,wCAAqB,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE;gBAC1F,iBAAM;gBACN,uBAAY;gBACZ,qBAAU;gBACV,yBAAc;gBACd,2BAAgB;gBAChB,sCAA2B;gBAC3B,0BAAe;aACf;YACD,OAAO,EAAE,CAAC,qBAAU,EAAE,uBAAY,EAAE,yBAAc,EAAE,2BAAgB,EAAE,sCAA2B,EAAE,0BAAe,CAAC;SACnH,CAAC;IACH,CAAC;;IAnCW,YAAY;QAHxB,IAAA,eAAM,EAAC;YACP,OAAO,EAAE,CA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AA,eAAM,EAAC;QACP,OAAO,EAAE,CAAC,kBAAU,CAAC;KACrB,CAAC;GACW,YAAY,CAoCxB"}
@@ -42,3 +42,4 @@ export declare class AccountService {
42
42
  kt50032(kt50032Param: KT50032Param): Promise<KT50032Response>;
43
43
  kt50075(kt50075Param: KT50075Param): Promise<KT50075Response>;
44
44
  }
45
+ //# sourceMappingURL=account.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.service.d.ts","sourceRoot":"","sources":["../../src/services/account.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EACN,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,MAAM,YAAY,CAAC;AAEpB,qBACa,cAAc;IAMzB,OAAO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assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
2
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
14
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
15
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -19,49 +8,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
19
8
  var __metadata = (this && this.__metadata) || function (k, v) {
20
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
21
10
  };
22
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
23
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
24
- return new (P || (P = Promise))(function (resolve, reject) {
25
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
26
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
27
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
28
- step((generator = generator.apply(thisArg, _arguments || [])).next());
29
- });
30
- };
31
- var __generator = (this && this.__generator) || function (thisArg, body) {
32
- 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);
33
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
34
- function verb(n) { return function (v) { return step([n, v]); }; }
35
- function step(op) {
36
- if (f) throw new TypeError("Generator is already executing.");
37
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
38
- 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;
39
- if (y = 0, t) op = [op[0] & 2, t.value];
40
- switch (op[0]) {
41
- case 0: case 1: t = op; break;
42
- case 4: _.label++; return { value: op[1], done: false };
43
- case 5: _.label++; y = op[1]; op = [0]; continue;
44
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
45
- default:
46
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
47
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
48
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
49
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
50
- if (t[2]) _.ops.pop();
51
- _.trys.pop(); continue;
52
- }
53
- op = body.call(thisArg, _);
54
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
55
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
56
- }
57
- };
58
11
  Object.defineProperty(exports, "__esModule", { value: true });
59
12
  exports.AccountService = void 0;
60
- var common_1 = require("@nestjs/common");
61
- var axios_1 = require("@nestjs/axios");
62
- var oauth2_service_1 = require("@services/oauth2.service");
63
- var AccountService = (function () {
64
- function AccountService(httpService, oauth2) {
13
+ const common_1 = require("@nestjs/common");
14
+ const axios_1 = require("@nestjs/axios");
15
+ const oauth2_service_1 = require("@services/oauth2.service");
16
+ let AccountService = class AccountService {
17
+ constructor(httpService, oauth2) {
65
18
  this.httpService = httpService;
66
19
  this.oauth2 = oauth2;
67
20
  this.domain = 'https://api.kiwoom.com';
@@ -72,261 +25,121 @@ var AccountService = (function () {
72
25
  'next-key': 'N',
73
26
  };
74
27
  }
75
- AccountService.prototype.executeApiCall = function (apiId, params) {
76
- return __awaiter(this, void 0, void 0, function () {
77
- var headers, _a, response, e_1;
78
- var _b;
79
- return __generator(this, function (_c) {
80
- switch (_c.label) {
81
- case 0:
82
- _c.trys.push([0, 3, , 4]);
83
- _a = [__assign({}, this.baseHeaders)];
84
- _b = { 'api-id': apiId };
85
- return [4, this.oauth2.getBearerToken()];
86
- case 1:
87
- headers = __assign.apply(void 0, _a.concat([(_b.authorization = _c.sent(), _b)]));
88
- return [4, this.httpService.axiosRef.post("".concat(this.domain).concat(this.url), __assign({}, params), { headers: headers })];
89
- case 2:
90
- response = _c.sent();
91
- return [2, response.data];
92
- case 3:
93
- e_1 = _c.sent();
94
- throw new common_1.InternalServerErrorException(e_1.message);
95
- case 4: return [2];
96
- }
97
- });
98
- });
99
- };
100
- AccountService.prototype.ka01690 = function (ka01690Param) {
101
- return __awaiter(this, void 0, void 0, function () {
102
- return __generator(this, function (_a) {
103
- return [2, this.executeApiCall('ka01690', ka01690Param)];
104
- });
105
- });
106
- };
107
- AccountService.prototype.ka10072 = function (ka10072Param) {
108
- return __awaiter(this, void 0, void 0, function () {
109
- return __generator(this, function (_a) {
110
- return [2, this.executeApiCall('ka10072', ka10072Param)];
111
- });
112
- });
113
- };
114
- AccountService.prototype.ka10073 = function (ka10073Param) {
115
- return __awaiter(this, void 0, void 0, function () {
116
- return __generator(this, function (_a) {
117
- return [2, this.executeApiCall('ka10073', ka10073Param)];
118
- });
119
- });
120
- };
121
- AccountService.prototype.ka10074 = function (ka10074Param) {
122
- return __awaiter(this, void 0, void 0, function () {
123
- return __generator(this, function (_a) {
124
- return [2, this.executeApiCall('ka10074', ka10074Param)];
125
- });
126
- });
127
- };
128
- AccountService.prototype.ka10075 = function (ka10075Param) {
129
- return __awaiter(this, void 0, void 0, function () {
130
- return __generator(this, function (_a) {
131
- return [2, this.executeApiCall('ka10075', ka10075Param)];
132
- });
133
- });
134
- };
135
- AccountService.prototype.ka10076 = function (ka10076Param) {
136
- return __awaiter(this, void 0, void 0, function () {
137
- return __generator(this, function (_a) {
138
- return [2, this.executeApiCall('ka10076', ka10076Param)];
139
- });
140
- });
141
- };
142
- AccountService.prototype.ka10077 = function (ka10077Param) {
143
- return __awaiter(this, void 0, void 0, function () {
144
- return __generator(this, function (_a) {
145
- return [2, this.executeApiCall('ka10077', ka10077Param)];
146
- });
147
- });
148
- };
149
- AccountService.prototype.ka10085 = function (ka10085Param) {
150
- return __awaiter(this, void 0, void 0, function () {
151
- return __generator(this, function (_a) {
152
- return [2, this.executeApiCall('ka10085', ka10085Param)];
153
- });
154
- });
155
- };
156
- AccountService.prototype.ka10088 = function (ka10088Param) {
157
- return __awaiter(this, void 0, void 0, function () {
158
- return __generator(this, function (_a) {
159
- return [2, this.executeApiCall('ka10088', ka10088Param)];
160
- });
161
- });
162
- };
163
- AccountService.prototype.ka10170 = function (ka10170Param) {
164
- return __awaiter(this, void 0, void 0, function () {
165
- return __generator(this, function (_a) {
166
- return [2, this.executeApiCall('ka10170', ka10170Param)];
167
- });
168
- });
169
- };
170
- AccountService.prototype.kt00001 = function (kt00001Param) {
171
- return __awaiter(this, void 0, void 0, function () {
172
- return __generator(this, function (_a) {
173
- return [2, this.executeApiCall('kt00001', kt00001Param)];
174
- });
175
- });
176
- };
177
- AccountService.prototype.kt00002 = function (kt00002Param) {
178
- return __awaiter(this, void 0, void 0, function () {
179
- return __generator(this, function (_a) {
180
- return [2, this.executeApiCall('kt00002', kt00002Param)];
181
- });
182
- });
183
- };
184
- AccountService.prototype.kt00003 = function (kt00003Param) {
185
- return __awaiter(this, void 0, void 0, function () {
186
- return __generator(this, function (_a) {
187
- return [2, this.executeApiCall('kt00003', kt00003Param)];
188
- });
189
- });
190
- };
191
- AccountService.prototype.kt00004 = function (kt00004Param) {
192
- return __awaiter(this, void 0, void 0, function () {
193
- return __generator(this, function (_a) {
194
- return [2, this.executeApiCall('kt00004', kt00004Param)];
195
- });
196
- });
197
- };
198
- AccountService.prototype.kt00005 = function (kt00005Param) {
199
- return __awaiter(this, void 0, void 0, function () {
200
- return __generator(this, function (_a) {
201
- return [2, this.executeApiCall('kt00005', kt00005Param)];
202
- });
203
- });
204
- };
205
- AccountService.prototype.kt00007 = function (kt00007Param) {
206
- return __awaiter(this, void 0, void 0, function () {
207
- return __generator(this, function (_a) {
208
- return [2, this.executeApiCall('kt00007', kt00007Param)];
209
- });
210
- });
211
- };
212
- AccountService.prototype.kt00008 = function (kt00008Param) {
213
- return __awaiter(this, void 0, void 0, function () {
214
- return __generator(this, function (_a) {
215
- return [2, this.executeApiCall('kt00008', kt00008Param)];
216
- });
217
- });
218
- };
219
- AccountService.prototype.kt00009 = function (kt00009Param) {
220
- return __awaiter(this, void 0, void 0, function () {
221
- return __generator(this, function (_a) {
222
- return [2, this.executeApiCall('kt00009', kt00009Param)];
223
- });
224
- });
225
- };
226
- AccountService.prototype.kt00010 = function (kt00010Param) {
227
- return __awaiter(this, void 0, void 0, function () {
228
- return __generator(this, function (_a) {
229
- return [2, this.executeApiCall('kt00010', kt00010Param)];
230
- });
231
- });
232
- };
233
- AccountService.prototype.kt00011 = function (kt00011Param) {
234
- return __awaiter(this, void 0, void 0, function () {
235
- return __generator(this, function (_a) {
236
- return [2, this.executeApiCall('kt00011', kt00011Param)];
237
- });
238
- });
239
- };
240
- AccountService.prototype.kt00012 = function (kt00012Param) {
241
- return __awaiter(this, void 0, void 0, function () {
242
- return __generator(this, function (_a) {
243
- return [2, this.executeApiCall('kt00012', kt00012Param)];
244
- });
245
- });
246
- };
247
- AccountService.prototype.kt00013 = function (kt00013Param) {
248
- return __awaiter(this, void 0, void 0, function () {
249
- return __generator(this, function (_a) {
250
- return [2, this.executeApiCall('kt00013', kt00013Param)];
251
- });
252
- });
253
- };
254
- AccountService.prototype.kt00015 = function (kt00015Param) {
255
- return __awaiter(this, void 0, void 0, function () {
256
- return __generator(this, function (_a) {
257
- return [2, this.executeApiCall('kt00015', kt00015Param)];
258
- });
259
- });
260
- };
261
- AccountService.prototype.kt00016 = function (kt00016Param) {
262
- return __awaiter(this, void 0, void 0, function () {
263
- return __generator(this, function (_a) {
264
- return [2, this.executeApiCall('kt00016', kt00016Param)];
265
- });
266
- });
267
- };
268
- AccountService.prototype.kt00017 = function (kt00017Param) {
269
- return __awaiter(this, void 0, void 0, function () {
270
- return __generator(this, function (_a) {
271
- return [2, this.executeApiCall('kt00017', kt00017Param)];
272
- });
273
- });
274
- };
275
- AccountService.prototype.kt00018 = function (kt00018Param) {
276
- return __awaiter(this, void 0, void 0, function () {
277
- return __generator(this, function (_a) {
278
- return [2, this.executeApiCall('kt00018', kt00018Param)];
279
- });
280
- });
281
- };
282
- AccountService.prototype.kt50020 = function (kt50020Param) {
283
- return __awaiter(this, void 0, void 0, function () {
284
- return __generator(this, function (_a) {
285
- return [2, this.executeApiCall('kt50020', kt50020Param)];
286
- });
287
- });
288
- };
289
- AccountService.prototype.kt50021 = function (kt50021Param) {
290
- return __awaiter(this, void 0, void 0, function () {
291
- return __generator(this, function (_a) {
292
- return [2, this.executeApiCall('kt50021', kt50021Param)];
293
- });
294
- });
295
- };
296
- AccountService.prototype.kt50030 = function (kt50030Param) {
297
- return __awaiter(this, void 0, void 0, function () {
298
- return __generator(this, function (_a) {
299
- return [2, this.executeApiCall('kt50030', kt50030Param)];
300
- });
301
- });
302
- };
303
- AccountService.prototype.kt50031 = function (kt50031Param) {
304
- return __awaiter(this, void 0, void 0, function () {
305
- return __generator(this, function (_a) {
306
- return [2, this.executeApiCall('kt50031', kt50031Param)];
307
- });
308
- });
309
- };
310
- AccountService.prototype.kt50032 = function (kt50032Param) {
311
- return __awaiter(this, void 0, void 0, function () {
312
- return __generator(this, function (_a) {
313
- return [2, this.executeApiCall('kt50032', kt50032Param)];
314
- });
315
- });
316
- };
317
- AccountService.prototype.kt50075 = function (kt50075Param) {
318
- return __awaiter(this, void 0, void 0, function () {
319
- return __generator(this, function (_a) {
320
- return [2, this.executeApiCall('kt50075', kt50075Param)];
321
- });
322
- });
323
- };
324
- AccountService = __decorate([
325
- (0, common_1.Injectable)(),
326
- __metadata("design:paramtypes", [axios_1.HttpService,
327
- oauth2_service_1.Oauth2])
328
- ], AccountService);
329
- return AccountService;
330
- }());
28
+ async executeApiCall(apiId, params) {
29
+ try {
30
+ const headers = {
31
+ ...this.baseHeaders,
32
+ 'api-id': apiId,
33
+ authorization: await this.oauth2.getBearerToken(),
34
+ };
35
+ const response = await this.httpService.axiosRef.post(`${this.domain}${this.url}`, { ...params }, { headers });
36
+ return response.data;
37
+ }
38
+ catch (e) {
39
+ throw new common_1.InternalServerErrorException(e.message);
40
+ }
41
+ }
42
+ async ka01690(ka01690Param) {
43
+ return this.executeApiCall('ka01690', ka01690Param);
44
+ }
45
+ async ka10072(ka10072Param) {
46
+ return this.executeApiCall('ka10072', ka10072Param);
47
+ }
48
+ async ka10073(ka10073Param) {
49
+ return this.executeApiCall('ka10073', ka10073Param);
50
+ }
51
+ async ka10074(ka10074Param) {
52
+ return this.executeApiCall('ka10074', ka10074Param);
53
+ }
54
+ async ka10075(ka10075Param) {
55
+ return this.executeApiCall('ka10075', ka10075Param);
56
+ }
57
+ async ka10076(ka10076Param) {
58
+ return this.executeApiCall('ka10076', ka10076Param);
59
+ }
60
+ async ka10077(ka10077Param) {
61
+ return this.executeApiCall('ka10077', ka10077Param);
62
+ }
63
+ async ka10085(ka10085Param) {
64
+ return this.executeApiCall('ka10085', ka10085Param);
65
+ }
66
+ async ka10088(ka10088Param) {
67
+ return this.executeApiCall('ka10088', ka10088Param);
68
+ }
69
+ async ka10170(ka10170Param) {
70
+ return this.executeApiCall('ka10170', ka10170Param);
71
+ }
72
+ async kt00001(kt00001Param) {
73
+ return this.executeApiCall('kt00001', kt00001Param);
74
+ }
75
+ async kt00002(kt00002Param) {
76
+ return this.executeApiCall('kt00002', kt00002Param);
77
+ }
78
+ async kt00003(kt00003Param) {
79
+ return this.executeApiCall('kt00003', kt00003Param);
80
+ }
81
+ async kt00004(kt00004Param) {
82
+ return this.executeApiCall('kt00004', kt00004Param);
83
+ }
84
+ async kt00005(kt00005Param) {
85
+ return this.executeApiCall('kt00005', kt00005Param);
86
+ }
87
+ async kt00007(kt00007Param) {
88
+ return this.executeApiCall('kt00007', kt00007Param);
89
+ }
90
+ async kt00008(kt00008Param) {
91
+ return this.executeApiCall('kt00008', kt00008Param);
92
+ }
93
+ async kt00009(kt00009Param) {
94
+ return this.executeApiCall('kt00009', kt00009Param);
95
+ }
96
+ async kt00010(kt00010Param) {
97
+ return this.executeApiCall('kt00010', kt00010Param);
98
+ }
99
+ async kt00011(kt00011Param) {
100
+ return this.executeApiCall('kt00011', kt00011Param);
101
+ }
102
+ async kt00012(kt00012Param) {
103
+ return this.executeApiCall('kt00012', kt00012Param);
104
+ }
105
+ async kt00013(kt00013Param) {
106
+ return this.executeApiCall('kt00013', kt00013Param);
107
+ }
108
+ async kt00015(kt00015Param) {
109
+ return this.executeApiCall('kt00015', kt00015Param);
110
+ }
111
+ async kt00016(kt00016Param) {
112
+ return this.executeApiCall('kt00016', kt00016Param);
113
+ }
114
+ async kt00017(kt00017Param) {
115
+ return this.executeApiCall('kt00017', kt00017Param);
116
+ }
117
+ async kt00018(kt00018Param) {
118
+ return this.executeApiCall('kt00018', kt00018Param);
119
+ }
120
+ async kt50020(kt50020Param) {
121
+ return this.executeApiCall('kt50020', kt50020Param);
122
+ }
123
+ async kt50021(kt50021Param) {
124
+ return this.executeApiCall('kt50021', kt50021Param);
125
+ }
126
+ async kt50030(kt50030Param) {
127
+ return this.executeApiCall('kt50030', kt50030Param);
128
+ }
129
+ async kt50031(kt50031Param) {
130
+ return this.executeApiCall('kt50031', kt50031Param);
131
+ }
132
+ async kt50032(kt50032Param) {
133
+ return this.executeApiCall('kt50032', kt50032Param);
134
+ }
135
+ async kt50075(kt50075Param) {
136
+ return this.executeApiCall('kt50075', kt50075Param);
137
+ }
138
+ };
331
139
  exports.AccountService = AccountService;
140
+ exports.AccountService = AccountService = __decorate([
141
+ (0, common_1.Injectable)(),
142
+ __metadata("design:paramtypes", [axios_1.HttpService,
143
+ oauth2_service_1.Oauth2])
144
+ ], AccountService);
332
145
  //# sourceMappingURL=account.service.js.map