@arcasdk/core 0.3.1 → 0.3.3

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 (385) hide show
  1. package/lib/application/config/env.d.ts +6 -0
  2. package/lib/application/config/env.js +14 -0
  3. package/lib/application/config/env.js.map +1 -0
  4. package/lib/application/config/index.d.ts +6 -0
  5. package/lib/application/config/index.js +15 -0
  6. package/lib/application/config/index.js.map +1 -0
  7. package/lib/application/dto/electronic-billing.dto.d.ts +192 -0
  8. package/lib/application/dto/electronic-billing.dto.js +3 -0
  9. package/lib/application/dto/electronic-billing.dto.js.map +1 -0
  10. package/lib/application/dto/index.d.ts +6 -0
  11. package/lib/application/dto/index.js +23 -0
  12. package/lib/application/dto/index.js.map +1 -0
  13. package/lib/application/dto/register.dto.d.ts +116 -0
  14. package/lib/application/dto/register.dto.js +8 -0
  15. package/lib/application/dto/register.dto.js.map +1 -0
  16. package/lib/application/index.d.ts +10 -0
  17. package/lib/application/index.js +27 -0
  18. package/lib/application/index.js.map +1 -0
  19. package/lib/application/ports/authentication/authentication-repository.port.d.ts +29 -0
  20. package/lib/application/ports/authentication/authentication-repository.port.js +3 -0
  21. package/lib/application/ports/authentication/authentication-repository.port.js.map +1 -0
  22. package/lib/application/ports/authentication/index.d.ts +5 -0
  23. package/lib/application/ports/authentication/index.js +22 -0
  24. package/lib/application/ports/authentication/index.js.map +1 -0
  25. package/lib/application/ports/electronic-billing/electronic-billing-repository.port.d.ts +139 -0
  26. package/lib/application/ports/electronic-billing/electronic-billing-repository.port.js +3 -0
  27. package/lib/application/ports/electronic-billing/electronic-billing-repository.port.js.map +1 -0
  28. package/lib/application/ports/electronic-billing/index.d.ts +5 -0
  29. package/lib/application/ports/electronic-billing/index.js +22 -0
  30. package/lib/application/ports/electronic-billing/index.js.map +1 -0
  31. package/lib/application/ports/generic/generic-repository.port.d.ts +16 -0
  32. package/lib/application/ports/generic/generic-repository.port.js +3 -0
  33. package/lib/application/ports/generic/generic-repository.port.js.map +1 -0
  34. package/lib/application/ports/index.d.ts +7 -0
  35. package/lib/application/ports/index.js +24 -0
  36. package/lib/application/ports/index.js.map +1 -0
  37. package/lib/application/ports/register/index.d.ts +5 -0
  38. package/lib/application/ports/register/index.js +22 -0
  39. package/lib/application/ports/register/index.js.map +1 -0
  40. package/lib/application/ports/register/register-repository.ports.d.ts +23 -0
  41. package/lib/application/ports/register/register-repository.ports.js +3 -0
  42. package/lib/application/ports/register/register-repository.ports.js.map +1 -0
  43. package/lib/application/services/electronic-billing.service.d.ts +202 -0
  44. package/lib/application/services/electronic-billing.service.js +340 -0
  45. package/lib/application/services/electronic-billing.service.js.map +1 -0
  46. package/lib/application/services/generic.service.d.ts +19 -0
  47. package/lib/application/services/generic.service.js +31 -0
  48. package/lib/application/services/generic.service.js.map +1 -0
  49. package/lib/application/services/index.d.ts +10 -0
  50. package/lib/application/services/index.js +27 -0
  51. package/lib/application/services/index.js.map +1 -0
  52. package/lib/application/services/register-inscription-proof.service.d.ts +26 -0
  53. package/lib/application/services/register-inscription-proof.service.js +49 -0
  54. package/lib/application/services/register-inscription-proof.service.js.map +1 -0
  55. package/lib/application/services/register-scope-five.service.d.ts +26 -0
  56. package/lib/application/services/register-scope-five.service.js +49 -0
  57. package/lib/application/services/register-scope-five.service.js.map +1 -0
  58. package/lib/application/services/register-scope-four.service.d.ts +28 -0
  59. package/lib/application/services/register-scope-four.service.js +51 -0
  60. package/lib/application/services/register-scope-four.service.js.map +1 -0
  61. package/lib/application/services/register-scope-ten.service.d.ts +21 -0
  62. package/lib/application/services/register-scope-ten.service.js +39 -0
  63. package/lib/application/services/register-scope-ten.service.js.map +1 -0
  64. package/lib/application/services/register-scope-thirteen.service.d.ts +26 -0
  65. package/lib/application/services/register-scope-thirteen.service.js +49 -0
  66. package/lib/application/services/register-scope-thirteen.service.js.map +1 -0
  67. package/lib/application/types/auth.types.d.ts +19 -0
  68. package/lib/application/types/auth.types.js +7 -0
  69. package/lib/application/types/auth.types.js.map +1 -0
  70. package/lib/application/types/context.types.d.ts +46 -0
  71. package/lib/application/types/context.types.js +3 -0
  72. package/lib/application/types/context.types.js.map +1 -0
  73. package/lib/application/types/index.d.ts +8 -0
  74. package/lib/application/types/index.js +25 -0
  75. package/lib/application/types/index.js.map +1 -0
  76. package/lib/application/types/result.types.d.ts +10 -0
  77. package/lib/application/types/result.types.js +3 -0
  78. package/lib/application/types/result.types.js.map +1 -0
  79. package/lib/application/types/use-case-inputs.types.d.ts +23 -0
  80. package/lib/application/types/use-case-inputs.types.js +7 -0
  81. package/lib/application/types/use-case-inputs.types.js.map +1 -0
  82. package/lib/application/use-cases/authentication/get-auth-params.use-case.d.ts +16 -0
  83. package/lib/application/use-cases/authentication/get-auth-params.use-case.js +29 -0
  84. package/lib/application/use-cases/authentication/get-auth-params.use-case.js.map +1 -0
  85. package/lib/application/use-cases/authentication/index.d.ts +7 -0
  86. package/lib/application/use-cases/authentication/index.js +24 -0
  87. package/lib/application/use-cases/authentication/index.js.map +1 -0
  88. package/lib/application/use-cases/authentication/login.use-case.d.ts +17 -0
  89. package/lib/application/use-cases/authentication/login.use-case.js +29 -0
  90. package/lib/application/use-cases/authentication/login.use-case.js.map +1 -0
  91. package/lib/application/use-cases/authentication/request-login.use-case.d.ts +16 -0
  92. package/lib/application/use-cases/authentication/request-login.use-case.js +29 -0
  93. package/lib/application/use-cases/authentication/request-login.use-case.js.map +1 -0
  94. package/lib/application/use-cases/electronic-billing/consult-caea-no-movement.use-case.d.ts +17 -0
  95. package/lib/application/use-cases/electronic-billing/consult-caea-no-movement.use-case.js +30 -0
  96. package/lib/application/use-cases/electronic-billing/consult-caea-no-movement.use-case.js.map +1 -0
  97. package/lib/application/use-cases/electronic-billing/consult-caea.use-case.d.ts +17 -0
  98. package/lib/application/use-cases/electronic-billing/consult-caea.use-case.js +30 -0
  99. package/lib/application/use-cases/electronic-billing/consult-caea.use-case.js.map +1 -0
  100. package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.d.ts +17 -0
  101. package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js +39 -0
  102. package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js.map +1 -0
  103. package/lib/application/use-cases/electronic-billing/create-voucher.use-case.d.ts +17 -0
  104. package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js +33 -0
  105. package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js.map +1 -0
  106. package/lib/application/use-cases/electronic-billing/get-activities.use-case.d.ts +15 -0
  107. package/lib/application/use-cases/electronic-billing/get-activities.use-case.js +28 -0
  108. package/lib/application/use-cases/electronic-billing/get-activities.use-case.js.map +1 -0
  109. package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.d.ts +15 -0
  110. package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.js +28 -0
  111. package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.js.map +1 -0
  112. package/lib/application/use-cases/electronic-billing/get-caea.use-case.d.ts +17 -0
  113. package/lib/application/use-cases/electronic-billing/get-caea.use-case.js +30 -0
  114. package/lib/application/use-cases/electronic-billing/get-caea.use-case.js.map +1 -0
  115. package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.d.ts +15 -0
  116. package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.js +28 -0
  117. package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.js.map +1 -0
  118. package/lib/application/use-cases/electronic-billing/get-countries.use-case.d.ts +15 -0
  119. package/lib/application/use-cases/electronic-billing/get-countries.use-case.js +28 -0
  120. package/lib/application/use-cases/electronic-billing/get-countries.use-case.js.map +1 -0
  121. package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.d.ts +15 -0
  122. package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.js +28 -0
  123. package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.js.map +1 -0
  124. package/lib/application/use-cases/electronic-billing/get-document-types.use-case.d.ts +15 -0
  125. package/lib/application/use-cases/electronic-billing/get-document-types.use-case.js +28 -0
  126. package/lib/application/use-cases/electronic-billing/get-document-types.use-case.js.map +1 -0
  127. package/lib/application/use-cases/electronic-billing/get-iva-receptor-types.use-case.d.ts +16 -0
  128. package/lib/application/use-cases/electronic-billing/get-iva-receptor-types.use-case.js +29 -0
  129. package/lib/application/use-cases/electronic-billing/get-iva-receptor-types.use-case.js.map +1 -0
  130. package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.d.ts +17 -0
  131. package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.js +29 -0
  132. package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.js.map +1 -0
  133. package/lib/application/use-cases/electronic-billing/get-max-records.use-case.d.ts +15 -0
  134. package/lib/application/use-cases/electronic-billing/get-max-records.use-case.js +28 -0
  135. package/lib/application/use-cases/electronic-billing/get-max-records.use-case.js.map +1 -0
  136. package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.d.ts +15 -0
  137. package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.js +28 -0
  138. package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.js.map +1 -0
  139. package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.d.ts +40 -0
  140. package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.js +73 -0
  141. package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.js.map +1 -0
  142. package/lib/application/use-cases/electronic-billing/get-quotation.use-case.d.ts +16 -0
  143. package/lib/application/use-cases/electronic-billing/get-quotation.use-case.js +29 -0
  144. package/lib/application/use-cases/electronic-billing/get-quotation.use-case.js.map +1 -0
  145. package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.d.ts +15 -0
  146. package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.js +28 -0
  147. package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.js.map +1 -0
  148. package/lib/application/use-cases/electronic-billing/get-server-status.use-case.d.ts +15 -0
  149. package/lib/application/use-cases/electronic-billing/get-server-status.use-case.js +28 -0
  150. package/lib/application/use-cases/electronic-billing/get-server-status.use-case.js.map +1 -0
  151. package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.d.ts +15 -0
  152. package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.js +28 -0
  153. package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.js.map +1 -0
  154. package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.d.ts +17 -0
  155. package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.js +29 -0
  156. package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.js.map +1 -0
  157. package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.d.ts +15 -0
  158. package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.js +28 -0
  159. package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.js.map +1 -0
  160. package/lib/application/use-cases/electronic-billing/index.d.ts +18 -0
  161. package/lib/application/use-cases/electronic-billing/index.js +36 -0
  162. package/lib/application/use-cases/electronic-billing/index.js.map +1 -0
  163. package/lib/application/use-cases/electronic-billing/inform-caea-no-movement.use-case.d.ts +17 -0
  164. package/lib/application/use-cases/electronic-billing/inform-caea-no-movement.use-case.js +30 -0
  165. package/lib/application/use-cases/electronic-billing/inform-caea-no-movement.use-case.js.map +1 -0
  166. package/lib/application/use-cases/electronic-billing/inform-caea-usage.use-case.d.ts +14 -0
  167. package/lib/application/use-cases/electronic-billing/inform-caea-usage.use-case.js +32 -0
  168. package/lib/application/use-cases/electronic-billing/inform-caea-usage.use-case.js.map +1 -0
  169. package/lib/application/use-cases/index.d.ts +7 -0
  170. package/lib/application/use-cases/index.js +24 -0
  171. package/lib/application/use-cases/index.js.map +1 -0
  172. package/lib/application/use-cases/register/get-register-server-status.use-case.d.ts +15 -0
  173. package/lib/application/use-cases/register/get-register-server-status.use-case.js +28 -0
  174. package/lib/application/use-cases/register/get-register-server-status.use-case.js.map +1 -0
  175. package/lib/application/use-cases/register/get-tax-id-by-document.use-case.d.ts +16 -0
  176. package/lib/application/use-cases/register/get-tax-id-by-document.use-case.js +29 -0
  177. package/lib/application/use-cases/register/get-tax-id-by-document.use-case.js.map +1 -0
  178. package/lib/application/use-cases/register/get-taxpayer-details.use-case.d.ts +16 -0
  179. package/lib/application/use-cases/register/get-taxpayer-details.use-case.js +29 -0
  180. package/lib/application/use-cases/register/get-taxpayer-details.use-case.js.map +1 -0
  181. package/lib/application/use-cases/register/get-taxpayers-details.use-case.d.ts +16 -0
  182. package/lib/application/use-cases/register/get-taxpayers-details.use-case.js +29 -0
  183. package/lib/application/use-cases/register/get-taxpayers-details.use-case.js.map +1 -0
  184. package/lib/application/use-cases/register/index.d.ts +4 -0
  185. package/lib/application/use-cases/register/index.js +21 -0
  186. package/lib/application/use-cases/register/index.js.map +1 -0
  187. package/lib/arca.d.ts +26 -0
  188. package/lib/arca.js +124 -0
  189. package/lib/arca.js.map +1 -0
  190. package/lib/domain/entities/access-ticket.entity.d.ts +73 -0
  191. package/lib/domain/entities/access-ticket.entity.js +144 -0
  192. package/lib/domain/entities/access-ticket.entity.js.map +1 -0
  193. package/lib/domain/entities/index.d.ts +6 -0
  194. package/lib/domain/entities/index.js +23 -0
  195. package/lib/domain/entities/index.js.map +1 -0
  196. package/lib/domain/entities/voucher.entity.d.ts +113 -0
  197. package/lib/domain/entities/voucher.entity.js +216 -0
  198. package/lib/domain/entities/voucher.entity.js.map +1 -0
  199. package/lib/domain/index.d.ts +6 -0
  200. package/lib/domain/index.js +23 -0
  201. package/lib/domain/index.js.map +1 -0
  202. package/lib/domain/types/electronic-billing.types.d.ts +193 -0
  203. package/lib/domain/types/electronic-billing.types.js +8 -0
  204. package/lib/domain/types/electronic-billing.types.js.map +1 -0
  205. package/lib/domain/types/index.d.ts +6 -0
  206. package/lib/domain/types/index.js +23 -0
  207. package/lib/domain/types/index.js.map +1 -0
  208. package/lib/domain/types/voucher.types.d.ts +65 -0
  209. package/lib/domain/types/voucher.types.js +3 -0
  210. package/lib/domain/types/voucher.types.js.map +1 -0
  211. package/lib/domain/value-objects/cae.vo.d.ts +47 -0
  212. package/lib/domain/value-objects/cae.vo.js +80 -0
  213. package/lib/domain/value-objects/cae.vo.js.map +1 -0
  214. package/lib/domain/value-objects/cuit.vo.d.ts +49 -0
  215. package/lib/domain/value-objects/cuit.vo.js +98 -0
  216. package/lib/domain/value-objects/cuit.vo.js.map +1 -0
  217. package/lib/domain/value-objects/index.d.ts +7 -0
  218. package/lib/domain/value-objects/index.js +24 -0
  219. package/lib/domain/value-objects/index.js.map +1 -0
  220. package/lib/domain/value-objects/voucher-number.vo.d.ts +66 -0
  221. package/lib/domain/value-objects/voucher-number.vo.js +106 -0
  222. package/lib/domain/value-objects/voucher-number.vo.js.map +1 -0
  223. package/lib/index.d.ts +8 -0
  224. package/lib/index.js +27 -0
  225. package/lib/index.js.map +1 -0
  226. package/lib/infrastructure/constants/index.d.ts +5 -0
  227. package/lib/infrastructure/constants/index.js +22 -0
  228. package/lib/infrastructure/constants/index.js.map +1 -0
  229. package/lib/infrastructure/constants/ssl.constants.d.ts +16 -0
  230. package/lib/infrastructure/constants/ssl.constants.js +20 -0
  231. package/lib/infrastructure/constants/ssl.constants.js.map +1 -0
  232. package/lib/infrastructure/index.d.ts +5 -0
  233. package/lib/infrastructure/index.js +22 -0
  234. package/lib/infrastructure/index.js.map +1 -0
  235. package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.d.ts +68 -0
  236. package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js +128 -0
  237. package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js.map +1 -0
  238. package/lib/infrastructure/outbound/adapters/auth/auth.repository.d.ts +59 -0
  239. package/lib/infrastructure/outbound/adapters/auth/auth.repository.js +134 -0
  240. package/lib/infrastructure/outbound/adapters/auth/auth.repository.js.map +1 -0
  241. package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.d.ts +41 -0
  242. package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js +513 -0
  243. package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js.map +1 -0
  244. package/lib/infrastructure/outbound/adapters/electronic-billing/index.d.ts +5 -0
  245. package/lib/infrastructure/outbound/adapters/electronic-billing/index.js +22 -0
  246. package/lib/infrastructure/outbound/adapters/electronic-billing/index.js.map +1 -0
  247. package/lib/infrastructure/outbound/adapters/enums.d.ts +43 -0
  248. package/lib/infrastructure/outbound/adapters/enums.js +49 -0
  249. package/lib/infrastructure/outbound/adapters/enums.js.map +1 -0
  250. package/lib/infrastructure/outbound/adapters/generic/generic-repository.d.ts +13 -0
  251. package/lib/infrastructure/outbound/adapters/generic/generic-repository.js +53 -0
  252. package/lib/infrastructure/outbound/adapters/generic/generic-repository.js.map +1 -0
  253. package/lib/infrastructure/outbound/adapters/index.d.ts +10 -0
  254. package/lib/infrastructure/outbound/adapters/index.js +27 -0
  255. package/lib/infrastructure/outbound/adapters/index.js.map +1 -0
  256. package/lib/infrastructure/outbound/adapters/logger/winston-logger.d.ts +14 -0
  257. package/lib/infrastructure/outbound/adapters/logger/winston-logger.js +24 -0
  258. package/lib/infrastructure/outbound/adapters/logger/winston-logger.js.map +1 -0
  259. package/lib/infrastructure/outbound/adapters/register/index.d.ts +9 -0
  260. package/lib/infrastructure/outbound/adapters/register/index.js +26 -0
  261. package/lib/infrastructure/outbound/adapters/register/index.js.map +1 -0
  262. package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.d.ts +18 -0
  263. package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.js +143 -0
  264. package/lib/infrastructure/outbound/adapters/register/register-inscription-proof.repository.js.map +1 -0
  265. package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.d.ts +14 -0
  266. package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.js +136 -0
  267. package/lib/infrastructure/outbound/adapters/register/register-scope-five.repository.js.map +1 -0
  268. package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.d.ts +12 -0
  269. package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.js +103 -0
  270. package/lib/infrastructure/outbound/adapters/register/register-scope-four.repository.js.map +1 -0
  271. package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.d.ts +12 -0
  272. package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.js +112 -0
  273. package/lib/infrastructure/outbound/adapters/register/register-scope-ten.repository.js.map +1 -0
  274. package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.d.ts +13 -0
  275. package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.js +133 -0
  276. package/lib/infrastructure/outbound/adapters/register/register-scope-thirteen.repository.js.map +1 -0
  277. package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.d.ts +30 -0
  278. package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js +68 -0
  279. package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js.map +1 -0
  280. package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.d.ts +20 -0
  281. package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js +54 -0
  282. package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js.map +1 -0
  283. package/lib/infrastructure/outbound/adapters/soap/soap-client.d.ts +11 -0
  284. package/lib/infrastructure/outbound/adapters/soap/soap-client.js +95 -0
  285. package/lib/infrastructure/outbound/adapters/soap/soap-client.js.map +1 -0
  286. package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.d.ts +10 -0
  287. package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js +6144 -0
  288. package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js.map +1 -0
  289. package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.d.ts +24 -0
  290. package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js +98 -0
  291. package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js.map +1 -0
  292. package/lib/infrastructure/outbound/index.d.ts +9 -0
  293. package/lib/infrastructure/outbound/index.js +26 -0
  294. package/lib/infrastructure/outbound/index.js.map +1 -0
  295. package/lib/infrastructure/outbound/ports/auth/auth-repository.types.d.ts +17 -0
  296. package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js +3 -0
  297. package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js.map +1 -0
  298. package/lib/infrastructure/outbound/ports/index.d.ts +11 -0
  299. package/lib/infrastructure/outbound/ports/index.js +28 -0
  300. package/lib/infrastructure/outbound/ports/index.js.map +1 -0
  301. package/lib/infrastructure/outbound/ports/logger/logger.port.d.ts +31 -0
  302. package/lib/infrastructure/outbound/ports/logger/logger.port.js +3 -0
  303. package/lib/infrastructure/outbound/ports/logger/logger.port.js.map +1 -0
  304. package/lib/infrastructure/outbound/ports/logger/logger.types.d.ts +7 -0
  305. package/lib/infrastructure/outbound/ports/logger/logger.types.js +3 -0
  306. package/lib/infrastructure/outbound/ports/logger/logger.types.js.map +1 -0
  307. package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.d.ts +51 -0
  308. package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js +57 -0
  309. package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js.map +1 -0
  310. package/lib/infrastructure/outbound/ports/soap/enums/index.d.ts +7 -0
  311. package/lib/infrastructure/outbound/ports/soap/enums/index.js +24 -0
  312. package/lib/infrastructure/outbound/ports/soap/enums/index.js.map +1 -0
  313. package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.d.ts +9 -0
  314. package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js +14 -0
  315. package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js.map +1 -0
  316. package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.d.ts +15 -0
  317. package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js +20 -0
  318. package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js.map +1 -0
  319. package/lib/infrastructure/outbound/ports/soap/index.d.ts +7 -0
  320. package/lib/infrastructure/outbound/ports/soap/index.js +24 -0
  321. package/lib/infrastructure/outbound/ports/soap/index.js.map +1 -0
  322. package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.d.ts +42 -0
  323. package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.js +3 -0
  324. package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.js.map +1 -0
  325. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.d.ts +102 -0
  326. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.js +3 -0
  327. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.js.map +1 -0
  328. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.d.ts +145 -0
  329. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.js +3 -0
  330. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.js.map +1 -0
  331. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.d.ts +227 -0
  332. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.js +3 -0
  333. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.js.map +1 -0
  334. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.d.ts +300 -0
  335. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.js +3 -0
  336. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.js.map +1 -0
  337. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.d.ts +301 -0
  338. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.js +3 -0
  339. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.js.map +1 -0
  340. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.d.ts +835 -0
  341. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.js +3 -0
  342. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.js.map +1 -0
  343. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.d.ts +876 -0
  344. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.js +3 -0
  345. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.js.map +1 -0
  346. package/lib/infrastructure/outbound/ports/soap/interfaces/index.d.ts +15 -0
  347. package/lib/infrastructure/outbound/ports/soap/interfaces/index.js +53 -0
  348. package/lib/infrastructure/outbound/ports/soap/interfaces/index.js.map +1 -0
  349. package/lib/infrastructure/outbound/ports/soap/soap-client.port.d.ts +30 -0
  350. package/lib/infrastructure/outbound/ports/soap/soap-client.port.js +3 -0
  351. package/lib/infrastructure/outbound/ports/soap/soap-client.port.js.map +1 -0
  352. package/lib/infrastructure/outbound/ports/soap/soap-repository.types.d.ts +45 -0
  353. package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js +3 -0
  354. package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js.map +1 -0
  355. package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.d.ts +24 -0
  356. package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.js +3 -0
  357. package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.js.map +1 -0
  358. package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.d.ts +9 -0
  359. package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js +3 -0
  360. package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js.map +1 -0
  361. package/lib/infrastructure/types/index.d.ts +5 -0
  362. package/lib/infrastructure/types/index.js +22 -0
  363. package/lib/infrastructure/types/index.js.map +1 -0
  364. package/lib/infrastructure/types/soap.types.d.ts +29 -0
  365. package/lib/infrastructure/types/soap.types.js +3 -0
  366. package/lib/infrastructure/types/soap.types.js.map +1 -0
  367. package/lib/infrastructure/utils/crypt-data.d.ts +6 -0
  368. package/lib/infrastructure/utils/crypt-data.js +46 -0
  369. package/lib/infrastructure/utils/crypt-data.js.map +1 -0
  370. package/lib/infrastructure/utils/env.d.ts +10 -0
  371. package/lib/infrastructure/utils/env.js +32 -0
  372. package/lib/infrastructure/utils/env.js.map +1 -0
  373. package/lib/infrastructure/utils/index.d.ts +8 -0
  374. package/lib/infrastructure/utils/index.js +25 -0
  375. package/lib/infrastructure/utils/index.js.map +1 -0
  376. package/lib/infrastructure/utils/logger.d.ts +4 -0
  377. package/lib/infrastructure/utils/logger.js +21 -0
  378. package/lib/infrastructure/utils/logger.js.map +1 -0
  379. package/lib/infrastructure/utils/parser.d.ts +14 -0
  380. package/lib/infrastructure/utils/parser.js +36 -0
  381. package/lib/infrastructure/utils/parser.js.map +1 -0
  382. package/lib/infrastructure/utils/soap-to-dto.mapper.d.ts +200 -0
  383. package/lib/infrastructure/utils/soap-to-dto.mapper.js +213 -0
  384. package/lib/infrastructure/utils/soap-to-dto.mapper.js.map +1 -0
  385. package/package.json +3 -2
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /**
3
+ * Register Scope Four Service
4
+ * Application service for Register Scope Four (Padrón A4)
5
+ * Orchestrates register use cases for scope FOUR
6
+ */
7
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
8
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9
+ return new (P || (P = Promise))(function (resolve, reject) {
10
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
11
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
12
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
13
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
14
+ });
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.RegisterScopeFourService = void 0;
18
+ const get_register_server_status_use_case_1 = require("@application/use-cases/register/get-register-server-status.use-case");
19
+ const get_taxpayer_details_use_case_1 = require("@application/use-cases/register/get-taxpayer-details.use-case");
20
+ class RegisterScopeFourService {
21
+ constructor(repository) {
22
+ this.repository = repository;
23
+ this.getRegisterServerStatusUseCase = new get_register_server_status_use_case_1.GetRegisterServerStatusUseCase(this.repository);
24
+ this.getTaxpayerDetailsUseCase = new get_taxpayer_details_use_case_1.GetTaxpayerDetailsUseCase(this.repository);
25
+ }
26
+ /**
27
+ * Asks to web service for servers status
28
+ *
29
+ * @return object { appserver : Web Service status,
30
+ * dbserver : Database status, authserver : Autentication
31
+ * server status}
32
+ **/
33
+ getServerStatus() {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ return this.getRegisterServerStatusUseCase.execute();
36
+ });
37
+ }
38
+ /**
39
+ * Asks to web service for taxpayer details
40
+ *
41
+ * @return object|null if taxpayer does not exists, return null,
42
+ * if it exists, returns full response
43
+ **/
44
+ getTaxpayerDetails(identifier) {
45
+ return __awaiter(this, void 0, void 0, function* () {
46
+ return this.getTaxpayerDetailsUseCase.execute(identifier);
47
+ });
48
+ }
49
+ }
50
+ exports.RegisterScopeFourService = RegisterScopeFourService;
51
+ //# sourceMappingURL=register-scope-four.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-scope-four.service.js","sourceRoot":"","sources":["../../../src/application/services/register-scope-four.service.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;;;;;;;AAOH,6HAAqH;AACrH,iHAA0G;AAE1G,MAAa,wBAAwB;IAInC,YAA6B,UAA4C;QAA5C,eAAU,GAAV,UAAU,CAAkC;QACvE,IAAI,CAAC,8BAA8B,GAAG,IAAI,oEAA8B,CACtE,IAAI,CAAC,UAAU,CAChB,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,yDAAyB,CAC5D,IAAI,CAAC,UAAU,CAChB,CAAC;IACJ,CAAC;IAED;;;;;;QAMI;IACE,eAAe;;YACnB,OAAO,IAAI,CAAC,8BAA8B,CAAC,OAAO,EAAE,CAAC;QACvD,CAAC;KAAA;IAED;;;;;QAKI;IACE,kBAAkB,CACtB,UAAkB;;YAElB,OAAO,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC5D,CAAC;KAAA;CACF;AAnCD,4DAmCC"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Register Scope Ten Service
3
+ * Application service for Register Scope Ten (Padrón A10)
4
+ * Orchestrates register use cases for scope TEN
5
+ */
6
+ import { IRegisterScopeTenRepositoryPort } from "@application/ports/register/register-repository.ports";
7
+ import { RegisterServerStatusDto, TaxpayerDetailsDto } from "@application/dto/register.dto";
8
+ export declare class RegisterScopeTenService {
9
+ private readonly repository;
10
+ private readonly getRegisterServerStatusUseCase;
11
+ private readonly getTaxpayerDetailsUseCase;
12
+ constructor(repository: IRegisterScopeTenRepositoryPort);
13
+ /**
14
+ * Asks to web service for servers status
15
+ **/
16
+ getServerStatus(): Promise<RegisterServerStatusDto>;
17
+ /**
18
+ * Asks to web service for taxpayer details
19
+ **/
20
+ getTaxpayerDetails(identifier: number): Promise<TaxpayerDetailsDto | null>;
21
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.RegisterScopeTenService = void 0;
13
+ const get_register_server_status_use_case_1 = require("@application/use-cases/register/get-register-server-status.use-case");
14
+ const get_taxpayer_details_use_case_1 = require("@application/use-cases/register/get-taxpayer-details.use-case");
15
+ class RegisterScopeTenService {
16
+ constructor(repository) {
17
+ this.repository = repository;
18
+ this.getRegisterServerStatusUseCase = new get_register_server_status_use_case_1.GetRegisterServerStatusUseCase(this.repository);
19
+ this.getTaxpayerDetailsUseCase = new get_taxpayer_details_use_case_1.GetTaxpayerDetailsUseCase(this.repository);
20
+ }
21
+ /**
22
+ * Asks to web service for servers status
23
+ **/
24
+ getServerStatus() {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ return this.getRegisterServerStatusUseCase.execute();
27
+ });
28
+ }
29
+ /**
30
+ * Asks to web service for taxpayer details
31
+ **/
32
+ getTaxpayerDetails(identifier) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ return this.getTaxpayerDetailsUseCase.execute(identifier);
35
+ });
36
+ }
37
+ }
38
+ exports.RegisterScopeTenService = RegisterScopeTenService;
39
+ //# sourceMappingURL=register-scope-ten.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-scope-ten.service.js","sourceRoot":"","sources":["../../../src/application/services/register-scope-ten.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAUA,6HAAqH;AACrH,iHAA0G;AAE1G,MAAa,uBAAuB;IAIlC,YAA6B,UAA2C;QAA3C,eAAU,GAAV,UAAU,CAAiC;QACtE,IAAI,CAAC,8BAA8B,GAAG,IAAI,oEAA8B,CACtE,IAAI,CAAC,UAAU,CAChB,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,yDAAyB,CAC5D,IAAI,CAAC,UAAU,CAChB,CAAC;IACJ,CAAC;IAED;;QAEI;IACE,eAAe;;YACnB,OAAO,IAAI,CAAC,8BAA8B,CAAC,OAAO,EAAE,CAAC;QACvD,CAAC;KAAA;IAED;;QAEI;IACE,kBAAkB,CACtB,UAAkB;;YAElB,OAAO,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC5D,CAAC;KAAA;CACF;AA5BD,0DA4BC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Register Scope Thirteen Service
3
+ * Application service for Register Scope Thirteen (Padrón A13)
4
+ * Orchestrates register use cases for scope THIRTEEN
5
+ */
6
+ import { IRegisterScopeThirteenRepositoryPort } from "@application/ports/register/register-repository.ports";
7
+ import { RegisterServerStatusDto, TaxpayerDetailsDto, TaxIDByDocumentResultDto } from "@application/dto/register.dto";
8
+ export declare class RegisterScopeThirteenService {
9
+ private readonly repository;
10
+ private readonly getRegisterServerStatusUseCase;
11
+ private readonly getTaxpayerDetailsUseCase;
12
+ private readonly getTaxIDByDocumentUseCase;
13
+ constructor(repository: IRegisterScopeThirteenRepositoryPort);
14
+ /**
15
+ * Asks to web service for servers status
16
+ **/
17
+ getServerStatus(): Promise<RegisterServerStatusDto>;
18
+ /**
19
+ * Asks to web service for taxpayer details
20
+ **/
21
+ getTaxpayerDetails(identifier: number): Promise<TaxpayerDetailsDto | null>;
22
+ /**
23
+ * Asks to web service for tax id by document number
24
+ **/
25
+ getTaxIDByDocument(documentNumber: string): Promise<TaxIDByDocumentResultDto>;
26
+ }
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.RegisterScopeThirteenService = void 0;
13
+ const get_register_server_status_use_case_1 = require("@application/use-cases/register/get-register-server-status.use-case");
14
+ const get_taxpayer_details_use_case_1 = require("@application/use-cases/register/get-taxpayer-details.use-case");
15
+ const get_tax_id_by_document_use_case_1 = require("@application/use-cases/register/get-tax-id-by-document.use-case");
16
+ class RegisterScopeThirteenService {
17
+ constructor(repository) {
18
+ this.repository = repository;
19
+ this.getRegisterServerStatusUseCase = new get_register_server_status_use_case_1.GetRegisterServerStatusUseCase(this.repository);
20
+ this.getTaxpayerDetailsUseCase = new get_taxpayer_details_use_case_1.GetTaxpayerDetailsUseCase(this.repository);
21
+ this.getTaxIDByDocumentUseCase = new get_tax_id_by_document_use_case_1.GetTaxIDByDocumentUseCase(this.repository);
22
+ }
23
+ /**
24
+ * Asks to web service for servers status
25
+ **/
26
+ getServerStatus() {
27
+ return __awaiter(this, void 0, void 0, function* () {
28
+ return this.getRegisterServerStatusUseCase.execute();
29
+ });
30
+ }
31
+ /**
32
+ * Asks to web service for taxpayer details
33
+ **/
34
+ getTaxpayerDetails(identifier) {
35
+ return __awaiter(this, void 0, void 0, function* () {
36
+ return this.getTaxpayerDetailsUseCase.execute(identifier);
37
+ });
38
+ }
39
+ /**
40
+ * Asks to web service for tax id by document number
41
+ **/
42
+ getTaxIDByDocument(documentNumber) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ return this.getTaxIDByDocumentUseCase.execute(documentNumber);
45
+ });
46
+ }
47
+ }
48
+ exports.RegisterScopeThirteenService = RegisterScopeThirteenService;
49
+ //# sourceMappingURL=register-scope-thirteen.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register-scope-thirteen.service.js","sourceRoot":"","sources":["../../../src/application/services/register-scope-thirteen.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAWA,6HAAqH;AACrH,iHAA0G;AAC1G,qHAA4G;AAE5G,MAAa,4BAA4B;IAKvC,YACmB,UAAgD;QAAhD,eAAU,GAAV,UAAU,CAAsC;QAEjE,IAAI,CAAC,8BAA8B,GAAG,IAAI,oEAA8B,CACtE,IAAI,CAAC,UAAU,CAChB,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,yDAAyB,CAC5D,IAAI,CAAC,UAAU,CAChB,CAAC;QACF,IAAI,CAAC,yBAAyB,GAAG,IAAI,2DAAyB,CAC5D,IAAI,CAAC,UAAU,CAChB,CAAC;IACJ,CAAC;IAED;;QAEI;IACE,eAAe;;YACnB,OAAO,IAAI,CAAC,8BAA8B,CAAC,OAAO,EAAE,CAAC;QACvD,CAAC;KAAA;IAED;;QAEI;IACE,kBAAkB,CACtB,UAAkB;;YAElB,OAAO,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC5D,CAAC;KAAA;IAED;;QAEI;IACE,kBAAkB,CACtB,cAAsB;;YAEtB,OAAO,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;QAChE,CAAC;KAAA;CACF;AA3CD,oEA2CC"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Authentication Types
3
+ * Types for authentication operations in the application layer
4
+ */
5
+ /**
6
+ * Authentication parameters for SOAP requests
7
+ * This type is independent of infrastructure SOAP types
8
+ */
9
+ export interface AuthParams {
10
+ Token: string;
11
+ Sign: string;
12
+ Cuit: number;
13
+ }
14
+ /**
15
+ * WSAuthParam - Authentication wrapper for SOAP requests
16
+ */
17
+ export type WSAuthParam = {
18
+ Auth: AuthParams;
19
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * Authentication Types
4
+ * Types for authentication operations in the application layer
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=auth.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.types.js","sourceRoot":"","sources":["../../../src/application/types/auth.types.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Application Types - Context
3
+ * Configuration types for the application
4
+ */
5
+ import { ILoginCredentials } from "@domain/entities/access-ticket.entity";
6
+ export interface Context {
7
+ /**
8
+ * Flag for production or testing environment
9
+ */
10
+ production?: boolean;
11
+ /**
12
+ * Content file for the X.509 certificate in PEM format
13
+ */
14
+ cert: string;
15
+ /**
16
+ * Content file for the private key corresponding to CERT (PEM)
17
+ */
18
+ key: string;
19
+ /**
20
+ * The CUIT to use
21
+ */
22
+ cuit: number;
23
+ /**
24
+ * Tokens object if you have one created before
25
+ */
26
+ credentials?: ILoginCredentials;
27
+ /**
28
+ * Flag that if is true, the access tickets data is handled by the developer, otherwise is saved locally.
29
+ */
30
+ handleTicket?: boolean;
31
+ /**
32
+ * The path of the auth obj if the package is auto managed
33
+ */
34
+ ticketPath?: string;
35
+ /**
36
+ * Enable console logging
37
+ *
38
+ * @default false
39
+ */
40
+ enableLogging?: boolean;
41
+ /**
42
+ * Use SOAP 1.2 instead of SOAP 1.1 for Electronic Billing service
43
+ * @default true (uses SOAP 1.2 by default)
44
+ */
45
+ useSoap12?: boolean;
46
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=context.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.types.js","sourceRoot":"","sources":["../../../src/application/types/context.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Application Types
3
+ * Exports all application-related types
4
+ */
5
+ export * from "./context.types";
6
+ export * from "./result.types";
7
+ export * from "./auth.types";
8
+ export * from "./use-case-inputs.types";
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /**
18
+ * Application Types
19
+ * Exports all application-related types
20
+ */
21
+ __exportStar(require("./context.types"), exports);
22
+ __exportStar(require("./result.types"), exports);
23
+ __exportStar(require("./auth.types"), exports);
24
+ __exportStar(require("./use-case-inputs.types"), exports);
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/application/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,kDAAgC;AAChC,iDAA+B;AAC/B,+CAA6B;AAC7B,0DAAwC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Application Types - Results
3
+ * Types for application service results
4
+ */
5
+ import { ServiceSoap12Types } from "@infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12";
6
+ export interface ICreateVoucherResult {
7
+ response: ServiceSoap12Types.IFECAESolicitarResult;
8
+ cae: string;
9
+ caeFchVto: string;
10
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=result.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"result.types.js","sourceRoot":"","sources":["../../../src/application/types/result.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Use Case Input Types
3
+ * Input interfaces for all use cases in the application layer
4
+ */
5
+ /**
6
+ * Authentication Use Cases Inputs
7
+ */
8
+ export interface GetAuthParamsInput {
9
+ ticket: import("@domain/entities/access-ticket.entity").AccessTicket;
10
+ cuit: number;
11
+ }
12
+ /**
13
+ * Electronic Billing Use Cases Inputs
14
+ */
15
+ export interface GetLastVoucherInput {
16
+ salesPoint: number;
17
+ voucherType: number;
18
+ }
19
+ export interface GetVoucherInfoInput {
20
+ number: number;
21
+ salesPoint: number;
22
+ type: number;
23
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ /**
3
+ * Use Case Input Types
4
+ * Input interfaces for all use cases in the application layer
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ //# sourceMappingURL=use-case-inputs.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-case-inputs.types.js","sourceRoot":"","sources":["../../../src/application/types/use-case-inputs.types.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Get Auth Params Use Case
3
+ * Gets authentication parameters formatted for SOAP requests
4
+ */
5
+ import { IAuthenticationRepositoryPort } from "@application/ports/authentication/authentication-repository.port";
6
+ import { WSAuthParam, GetAuthParamsInput } from "@application/types";
7
+ export declare class GetAuthParamsUseCase {
8
+ private readonly authenticationRepository;
9
+ constructor(authenticationRepository: IAuthenticationRepositoryPort);
10
+ /**
11
+ * Execute the use case
12
+ * @param input Ticket and CUIT
13
+ * @returns WSAuthParam formatted for SOAP
14
+ */
15
+ execute(input: GetAuthParamsInput): Promise<WSAuthParam>;
16
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GetAuthParamsUseCase = void 0;
13
+ class GetAuthParamsUseCase {
14
+ constructor(authenticationRepository) {
15
+ this.authenticationRepository = authenticationRepository;
16
+ }
17
+ /**
18
+ * Execute the use case
19
+ * @param input Ticket and CUIT
20
+ * @returns WSAuthParam formatted for SOAP
21
+ */
22
+ execute(input) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ return this.authenticationRepository.getAuthParams(input.ticket, input.cuit);
25
+ });
26
+ }
27
+ }
28
+ exports.GetAuthParamsUseCase = GetAuthParamsUseCase;
29
+ //# sourceMappingURL=get-auth-params.use-case.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-auth-params.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/authentication/get-auth-params.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAa,oBAAoB;IAC/B,YACmB,wBAAuD;QAAvD,6BAAwB,GAAxB,wBAAwB,CAA+B;IACvE,CAAC;IAEJ;;;;OAIG;IACG,OAAO,CAAC,KAAyB;;YACrC,OAAO,IAAI,CAAC,wBAAwB,CAAC,aAAa,CAChD,KAAK,CAAC,MAAM,EACZ,KAAK,CAAC,IAAI,CACX,CAAC;QACJ,CAAC;KAAA;CACF;AAhBD,oDAgBC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Authentication Use Cases
3
+ * Exports all authentication-related use cases
4
+ */
5
+ export * from "./login.use-case";
6
+ export * from "./request-login.use-case";
7
+ export * from "./get-auth-params.use-case";
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /**
18
+ * Authentication Use Cases
19
+ * Exports all authentication-related use cases
20
+ */
21
+ __exportStar(require("./login.use-case"), exports);
22
+ __exportStar(require("./request-login.use-case"), exports);
23
+ __exportStar(require("./get-auth-params.use-case"), exports);
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/application/use-cases/authentication/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,mDAAiC;AACjC,2DAAyC;AACzC,6DAA2C"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Login Use Case
3
+ * Authenticates and obtains an access ticket for a service
4
+ * Handles automatic ticket management (checking existing, requesting new if needed)
5
+ */
6
+ import { IAuthenticationRepositoryPort } from "@application/ports/authentication/authentication-repository.port";
7
+ import { AccessTicket } from "@domain/entities/access-ticket.entity";
8
+ export declare class LoginUseCase {
9
+ private readonly authenticationRepository;
10
+ constructor(authenticationRepository: IAuthenticationRepositoryPort);
11
+ /**
12
+ * Execute the use case
13
+ * @param serviceName Service name to authenticate for
14
+ * @returns AccessTicket
15
+ */
16
+ execute(serviceName: string): Promise<AccessTicket>;
17
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.LoginUseCase = void 0;
13
+ class LoginUseCase {
14
+ constructor(authenticationRepository) {
15
+ this.authenticationRepository = authenticationRepository;
16
+ }
17
+ /**
18
+ * Execute the use case
19
+ * @param serviceName Service name to authenticate for
20
+ * @returns AccessTicket
21
+ */
22
+ execute(serviceName) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ return this.authenticationRepository.login(serviceName);
25
+ });
26
+ }
27
+ }
28
+ exports.LoginUseCase = LoginUseCase;
29
+ //# sourceMappingURL=login.use-case.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/authentication/login.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAQA,MAAa,YAAY;IACvB,YACmB,wBAAuD;QAAvD,6BAAwB,GAAxB,wBAAwB,CAA+B;IACvE,CAAC;IAEJ;;;;OAIG;IACG,OAAO,CAAC,WAAmB;;YAC/B,OAAO,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC1D,CAAC;KAAA;CACF;AAbD,oCAaC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Request Login Use Case
3
+ * Forces a new login request (ignores existing tickets)
4
+ */
5
+ import { IAuthenticationRepositoryPort } from "@application/ports/authentication/authentication-repository.port";
6
+ import { AccessTicket } from "@domain/entities/access-ticket.entity";
7
+ export declare class RequestLoginUseCase {
8
+ private readonly authenticationRepository;
9
+ constructor(authenticationRepository: IAuthenticationRepositoryPort);
10
+ /**
11
+ * Execute the use case
12
+ * @param serviceName Service name to authenticate for
13
+ * @returns AccessTicket (newly requested)
14
+ */
15
+ execute(serviceName: string): Promise<AccessTicket>;
16
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.RequestLoginUseCase = void 0;
13
+ class RequestLoginUseCase {
14
+ constructor(authenticationRepository) {
15
+ this.authenticationRepository = authenticationRepository;
16
+ }
17
+ /**
18
+ * Execute the use case
19
+ * @param serviceName Service name to authenticate for
20
+ * @returns AccessTicket (newly requested)
21
+ */
22
+ execute(serviceName) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ return this.authenticationRepository.requestLogin(serviceName);
25
+ });
26
+ }
27
+ }
28
+ exports.RequestLoginUseCase = RequestLoginUseCase;
29
+ //# sourceMappingURL=request-login.use-case.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request-login.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/authentication/request-login.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAa,mBAAmB;IAC9B,YACmB,wBAAuD;QAAvD,6BAAwB,GAAxB,wBAAwB,CAA+B;IACvE,CAAC;IAEJ;;;;OAIG;IACG,OAAO,CAAC,WAAmB;;YAC/B,OAAO,IAAI,CAAC,wBAAwB,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;QACjE,CAAC;KAAA;CACF;AAbD,kDAaC"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Consult CAEA No Movement Use Case
3
+ * Consults if a CAEA was informed as having no movements
4
+ */
5
+ import { IElectronicBillingRepositoryPort } from "@application/ports/electronic-billing/electronic-billing-repository.port";
6
+ import { CaeaNoMovementResultDto } from "@application/dto/electronic-billing.dto";
7
+ export declare class ConsultCaeaNoMovementUseCase {
8
+ private readonly electronicBillingRepository;
9
+ constructor(electronicBillingRepository: IElectronicBillingRepositoryPort);
10
+ /**
11
+ * Consult CAEA No Movement
12
+ * @param caea CAEA number
13
+ * @param salesPoint Sales point number
14
+ * @returns CAEA No Movement information
15
+ */
16
+ execute(caea: string, salesPoint: number): Promise<CaeaNoMovementResultDto>;
17
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.ConsultCaeaNoMovementUseCase = void 0;
13
+ class ConsultCaeaNoMovementUseCase {
14
+ constructor(electronicBillingRepository) {
15
+ this.electronicBillingRepository = electronicBillingRepository;
16
+ }
17
+ /**
18
+ * Consult CAEA No Movement
19
+ * @param caea CAEA number
20
+ * @param salesPoint Sales point number
21
+ * @returns CAEA No Movement information
22
+ */
23
+ execute(caea, salesPoint) {
24
+ return __awaiter(this, void 0, void 0, function* () {
25
+ return this.electronicBillingRepository.consultCaeaNoMovement(caea, salesPoint);
26
+ });
27
+ }
28
+ }
29
+ exports.ConsultCaeaNoMovementUseCase = ConsultCaeaNoMovementUseCase;
30
+ //# sourceMappingURL=consult-caea-no-movement.use-case.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"consult-caea-no-movement.use-case.js","sourceRoot":"","sources":["../../../../src/application/use-cases/electronic-billing/consult-caea-no-movement.use-case.ts"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAa,4BAA4B;IACvC,YACmB,2BAA6D;QAA7D,gCAA2B,GAA3B,2BAA2B,CAAkC;IAC7E,CAAC;IAEJ;;;;;OAKG;IACG,OAAO,CACX,IAAY,EACZ,UAAkB;;YAElB,OAAO,IAAI,CAAC,2BAA2B,CAAC,qBAAqB,CAC3D,IAAI,EACJ,UAAU,CACX,CAAC;QACJ,CAAC;KAAA;CACF;AApBD,oEAoBC"}