@arcasdk/core 0.1.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 (334) 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 +114 -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 +77 -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/index.d.ts +7 -0
  32. package/lib/application/ports/index.js +24 -0
  33. package/lib/application/ports/index.js.map +1 -0
  34. package/lib/application/ports/register/index.d.ts +5 -0
  35. package/lib/application/ports/register/index.js +22 -0
  36. package/lib/application/ports/register/index.js.map +1 -0
  37. package/lib/application/ports/register/register-repository.port.d.ts +42 -0
  38. package/lib/application/ports/register/register-repository.port.js +12 -0
  39. package/lib/application/ports/register/register-repository.port.js.map +1 -0
  40. package/lib/application/services/electronic-billing.service.d.ts +129 -0
  41. package/lib/application/services/electronic-billing.service.js +217 -0
  42. package/lib/application/services/electronic-billing.service.js.map +1 -0
  43. package/lib/application/services/index.d.ts +10 -0
  44. package/lib/application/services/index.js +27 -0
  45. package/lib/application/services/index.js.map +1 -0
  46. package/lib/application/services/register-inscription-proof.service.d.ts +35 -0
  47. package/lib/application/services/register-inscription-proof.service.js +101 -0
  48. package/lib/application/services/register-inscription-proof.service.js.map +1 -0
  49. package/lib/application/services/register-scope-five.service.d.ts +35 -0
  50. package/lib/application/services/register-scope-five.service.js +101 -0
  51. package/lib/application/services/register-scope-five.service.js.map +1 -0
  52. package/lib/application/services/register-scope-four.service.d.ts +28 -0
  53. package/lib/application/services/register-scope-four.service.js +72 -0
  54. package/lib/application/services/register-scope-four.service.js.map +1 -0
  55. package/lib/application/services/register-scope-ten.service.d.ts +28 -0
  56. package/lib/application/services/register-scope-ten.service.js +72 -0
  57. package/lib/application/services/register-scope-ten.service.js.map +1 -0
  58. package/lib/application/services/register-scope-thirteen.service.d.ts +36 -0
  59. package/lib/application/services/register-scope-thirteen.service.js +96 -0
  60. package/lib/application/services/register-scope-thirteen.service.js.map +1 -0
  61. package/lib/application/types/auth.types.d.ts +19 -0
  62. package/lib/application/types/auth.types.js +7 -0
  63. package/lib/application/types/auth.types.js.map +1 -0
  64. package/lib/application/types/context.types.d.ts +46 -0
  65. package/lib/application/types/context.types.js +3 -0
  66. package/lib/application/types/context.types.js.map +1 -0
  67. package/lib/application/types/index.d.ts +8 -0
  68. package/lib/application/types/index.js +25 -0
  69. package/lib/application/types/index.js.map +1 -0
  70. package/lib/application/types/result.types.d.ts +10 -0
  71. package/lib/application/types/result.types.js +3 -0
  72. package/lib/application/types/result.types.js.map +1 -0
  73. package/lib/application/types/use-case-inputs.types.d.ts +42 -0
  74. package/lib/application/types/use-case-inputs.types.js +3 -0
  75. package/lib/application/types/use-case-inputs.types.js.map +1 -0
  76. package/lib/application/use-cases/authentication/get-auth-params.use-case.d.ts +16 -0
  77. package/lib/application/use-cases/authentication/get-auth-params.use-case.js +29 -0
  78. package/lib/application/use-cases/authentication/get-auth-params.use-case.js.map +1 -0
  79. package/lib/application/use-cases/authentication/index.d.ts +7 -0
  80. package/lib/application/use-cases/authentication/index.js +24 -0
  81. package/lib/application/use-cases/authentication/index.js.map +1 -0
  82. package/lib/application/use-cases/authentication/login.use-case.d.ts +17 -0
  83. package/lib/application/use-cases/authentication/login.use-case.js +29 -0
  84. package/lib/application/use-cases/authentication/login.use-case.js.map +1 -0
  85. package/lib/application/use-cases/authentication/request-login.use-case.d.ts +16 -0
  86. package/lib/application/use-cases/authentication/request-login.use-case.js +29 -0
  87. package/lib/application/use-cases/authentication/request-login.use-case.js.map +1 -0
  88. package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.d.ts +17 -0
  89. package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js +39 -0
  90. package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js.map +1 -0
  91. package/lib/application/use-cases/electronic-billing/create-voucher.use-case.d.ts +17 -0
  92. package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js +33 -0
  93. package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js.map +1 -0
  94. package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.d.ts +15 -0
  95. package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.js +28 -0
  96. package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.js.map +1 -0
  97. package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.d.ts +15 -0
  98. package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.js +28 -0
  99. package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.js.map +1 -0
  100. package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.d.ts +15 -0
  101. package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.js +28 -0
  102. package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.js.map +1 -0
  103. package/lib/application/use-cases/electronic-billing/get-document-types.use-case.d.ts +15 -0
  104. package/lib/application/use-cases/electronic-billing/get-document-types.use-case.js +28 -0
  105. package/lib/application/use-cases/electronic-billing/get-document-types.use-case.js.map +1 -0
  106. package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.d.ts +17 -0
  107. package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.js +29 -0
  108. package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.js.map +1 -0
  109. package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.d.ts +15 -0
  110. package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.js +28 -0
  111. package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.js.map +1 -0
  112. package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.d.ts +40 -0
  113. package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.js +73 -0
  114. package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.js.map +1 -0
  115. package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.d.ts +15 -0
  116. package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.js +28 -0
  117. package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.js.map +1 -0
  118. package/lib/application/use-cases/electronic-billing/get-server-status.use-case.d.ts +15 -0
  119. package/lib/application/use-cases/electronic-billing/get-server-status.use-case.js +28 -0
  120. package/lib/application/use-cases/electronic-billing/get-server-status.use-case.js.map +1 -0
  121. package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.d.ts +15 -0
  122. package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.js +28 -0
  123. package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.js.map +1 -0
  124. package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.d.ts +17 -0
  125. package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.js +29 -0
  126. package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.js.map +1 -0
  127. package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.d.ts +15 -0
  128. package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.js +28 -0
  129. package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.js.map +1 -0
  130. package/lib/application/use-cases/electronic-billing/index.d.ts +18 -0
  131. package/lib/application/use-cases/electronic-billing/index.js +36 -0
  132. package/lib/application/use-cases/electronic-billing/index.js.map +1 -0
  133. package/lib/application/use-cases/index.d.ts +7 -0
  134. package/lib/application/use-cases/index.js +24 -0
  135. package/lib/application/use-cases/index.js.map +1 -0
  136. package/lib/application/use-cases/register/get-server-status.use-case.d.ts +17 -0
  137. package/lib/application/use-cases/register/get-server-status.use-case.js +29 -0
  138. package/lib/application/use-cases/register/get-server-status.use-case.js.map +1 -0
  139. package/lib/application/use-cases/register/get-tax-id-by-document.use-case.d.ts +18 -0
  140. package/lib/application/use-cases/register/get-tax-id-by-document.use-case.js +29 -0
  141. package/lib/application/use-cases/register/get-tax-id-by-document.use-case.js.map +1 -0
  142. package/lib/application/use-cases/register/get-taxpayer-details.use-case.d.ts +17 -0
  143. package/lib/application/use-cases/register/get-taxpayer-details.use-case.js +29 -0
  144. package/lib/application/use-cases/register/get-taxpayer-details.use-case.js.map +1 -0
  145. package/lib/application/use-cases/register/get-taxpayers-details.use-case.d.ts +18 -0
  146. package/lib/application/use-cases/register/get-taxpayers-details.use-case.js +29 -0
  147. package/lib/application/use-cases/register/get-taxpayers-details.use-case.js.map +1 -0
  148. package/lib/application/use-cases/register/index.d.ts +8 -0
  149. package/lib/application/use-cases/register/index.js +25 -0
  150. package/lib/application/use-cases/register/index.js.map +1 -0
  151. package/lib/arca.d.ts +23 -0
  152. package/lib/arca.js +83 -0
  153. package/lib/arca.js.map +1 -0
  154. package/lib/domain/entities/access-ticket.entity.d.ts +73 -0
  155. package/lib/domain/entities/access-ticket.entity.js +144 -0
  156. package/lib/domain/entities/access-ticket.entity.js.map +1 -0
  157. package/lib/domain/entities/index.d.ts +6 -0
  158. package/lib/domain/entities/index.js +23 -0
  159. package/lib/domain/entities/index.js.map +1 -0
  160. package/lib/domain/entities/voucher.entity.d.ts +113 -0
  161. package/lib/domain/entities/voucher.entity.js +216 -0
  162. package/lib/domain/entities/voucher.entity.js.map +1 -0
  163. package/lib/domain/index.d.ts +6 -0
  164. package/lib/domain/index.js +23 -0
  165. package/lib/domain/index.js.map +1 -0
  166. package/lib/domain/types/electronic-billing.types.d.ts +120 -0
  167. package/lib/domain/types/electronic-billing.types.js +8 -0
  168. package/lib/domain/types/electronic-billing.types.js.map +1 -0
  169. package/lib/domain/types/index.d.ts +6 -0
  170. package/lib/domain/types/index.js +23 -0
  171. package/lib/domain/types/index.js.map +1 -0
  172. package/lib/domain/types/voucher.types.d.ts +65 -0
  173. package/lib/domain/types/voucher.types.js +3 -0
  174. package/lib/domain/types/voucher.types.js.map +1 -0
  175. package/lib/domain/value-objects/cae.vo.d.ts +47 -0
  176. package/lib/domain/value-objects/cae.vo.js +80 -0
  177. package/lib/domain/value-objects/cae.vo.js.map +1 -0
  178. package/lib/domain/value-objects/cuit.vo.d.ts +49 -0
  179. package/lib/domain/value-objects/cuit.vo.js +98 -0
  180. package/lib/domain/value-objects/cuit.vo.js.map +1 -0
  181. package/lib/domain/value-objects/index.d.ts +7 -0
  182. package/lib/domain/value-objects/index.js +24 -0
  183. package/lib/domain/value-objects/index.js.map +1 -0
  184. package/lib/domain/value-objects/voucher-number.vo.d.ts +66 -0
  185. package/lib/domain/value-objects/voucher-number.vo.js +106 -0
  186. package/lib/domain/value-objects/voucher-number.vo.js.map +1 -0
  187. package/lib/index.d.ts +8 -0
  188. package/lib/index.js +27 -0
  189. package/lib/index.js.map +1 -0
  190. package/lib/infrastructure/constants/index.d.ts +5 -0
  191. package/lib/infrastructure/constants/index.js +22 -0
  192. package/lib/infrastructure/constants/index.js.map +1 -0
  193. package/lib/infrastructure/constants/ssl.constants.d.ts +16 -0
  194. package/lib/infrastructure/constants/ssl.constants.js +20 -0
  195. package/lib/infrastructure/constants/ssl.constants.js.map +1 -0
  196. package/lib/infrastructure/index.d.ts +5 -0
  197. package/lib/infrastructure/index.js +22 -0
  198. package/lib/infrastructure/index.js.map +1 -0
  199. package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.d.ts +68 -0
  200. package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js +128 -0
  201. package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js.map +1 -0
  202. package/lib/infrastructure/outbound/adapters/auth/auth.repository.d.ts +59 -0
  203. package/lib/infrastructure/outbound/adapters/auth/auth.repository.js +134 -0
  204. package/lib/infrastructure/outbound/adapters/auth/auth.repository.js.map +1 -0
  205. package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.d.ts +31 -0
  206. package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js +299 -0
  207. package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js.map +1 -0
  208. package/lib/infrastructure/outbound/adapters/electronic-billing/index.d.ts +5 -0
  209. package/lib/infrastructure/outbound/adapters/electronic-billing/index.js +22 -0
  210. package/lib/infrastructure/outbound/adapters/electronic-billing/index.js.map +1 -0
  211. package/lib/infrastructure/outbound/adapters/enums.d.ts +43 -0
  212. package/lib/infrastructure/outbound/adapters/enums.js +49 -0
  213. package/lib/infrastructure/outbound/adapters/enums.js.map +1 -0
  214. package/lib/infrastructure/outbound/adapters/index.d.ts +10 -0
  215. package/lib/infrastructure/outbound/adapters/index.js +27 -0
  216. package/lib/infrastructure/outbound/adapters/index.js.map +1 -0
  217. package/lib/infrastructure/outbound/adapters/logger/winston-logger.d.ts +14 -0
  218. package/lib/infrastructure/outbound/adapters/logger/winston-logger.js +24 -0
  219. package/lib/infrastructure/outbound/adapters/logger/winston-logger.js.map +1 -0
  220. package/lib/infrastructure/outbound/adapters/register/index.d.ts +5 -0
  221. package/lib/infrastructure/outbound/adapters/register/index.js +22 -0
  222. package/lib/infrastructure/outbound/adapters/register/index.js.map +1 -0
  223. package/lib/infrastructure/outbound/adapters/register/register-repository.d.ts +32 -0
  224. package/lib/infrastructure/outbound/adapters/register/register-repository.js +288 -0
  225. package/lib/infrastructure/outbound/adapters/register/register-repository.js.map +1 -0
  226. package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.d.ts +30 -0
  227. package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js +63 -0
  228. package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js.map +1 -0
  229. package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.d.ts +20 -0
  230. package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js +54 -0
  231. package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js.map +1 -0
  232. package/lib/infrastructure/outbound/adapters/soap/soap-client.d.ts +11 -0
  233. package/lib/infrastructure/outbound/adapters/soap/soap-client.js +89 -0
  234. package/lib/infrastructure/outbound/adapters/soap/soap-client.js.map +1 -0
  235. package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.d.ts +10 -0
  236. package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js +5804 -0
  237. package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js.map +1 -0
  238. package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.d.ts +24 -0
  239. package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js +98 -0
  240. package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js.map +1 -0
  241. package/lib/infrastructure/outbound/index.d.ts +9 -0
  242. package/lib/infrastructure/outbound/index.js +26 -0
  243. package/lib/infrastructure/outbound/index.js.map +1 -0
  244. package/lib/infrastructure/outbound/ports/auth/auth-repository.types.d.ts +17 -0
  245. package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js +3 -0
  246. package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js.map +1 -0
  247. package/lib/infrastructure/outbound/ports/index.d.ts +11 -0
  248. package/lib/infrastructure/outbound/ports/index.js +28 -0
  249. package/lib/infrastructure/outbound/ports/index.js.map +1 -0
  250. package/lib/infrastructure/outbound/ports/logger/logger.port.d.ts +31 -0
  251. package/lib/infrastructure/outbound/ports/logger/logger.port.js +3 -0
  252. package/lib/infrastructure/outbound/ports/logger/logger.port.js.map +1 -0
  253. package/lib/infrastructure/outbound/ports/logger/logger.types.d.ts +7 -0
  254. package/lib/infrastructure/outbound/ports/logger/logger.types.js +3 -0
  255. package/lib/infrastructure/outbound/ports/logger/logger.types.js.map +1 -0
  256. package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.d.ts +51 -0
  257. package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js +57 -0
  258. package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js.map +1 -0
  259. package/lib/infrastructure/outbound/ports/soap/enums/index.d.ts +7 -0
  260. package/lib/infrastructure/outbound/ports/soap/enums/index.js +24 -0
  261. package/lib/infrastructure/outbound/ports/soap/enums/index.js.map +1 -0
  262. package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.d.ts +9 -0
  263. package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js +14 -0
  264. package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js.map +1 -0
  265. package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.d.ts +15 -0
  266. package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js +20 -0
  267. package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js.map +1 -0
  268. package/lib/infrastructure/outbound/ports/soap/index.d.ts +7 -0
  269. package/lib/infrastructure/outbound/ports/soap/index.js +24 -0
  270. package/lib/infrastructure/outbound/ports/soap/index.js.map +1 -0
  271. package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.d.ts +42 -0
  272. package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.js +3 -0
  273. package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.js.map +1 -0
  274. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.d.ts +102 -0
  275. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.js +3 -0
  276. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.js.map +1 -0
  277. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.d.ts +145 -0
  278. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.js +3 -0
  279. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.js.map +1 -0
  280. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.d.ts +227 -0
  281. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.js +3 -0
  282. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.js.map +1 -0
  283. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.d.ts +300 -0
  284. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.js +3 -0
  285. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.js.map +1 -0
  286. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.d.ts +301 -0
  287. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.js +3 -0
  288. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.js.map +1 -0
  289. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.d.ts +835 -0
  290. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.js +3 -0
  291. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.js.map +1 -0
  292. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.d.ts +876 -0
  293. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.js +3 -0
  294. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.js.map +1 -0
  295. package/lib/infrastructure/outbound/ports/soap/interfaces/index.d.ts +15 -0
  296. package/lib/infrastructure/outbound/ports/soap/interfaces/index.js +53 -0
  297. package/lib/infrastructure/outbound/ports/soap/interfaces/index.js.map +1 -0
  298. package/lib/infrastructure/outbound/ports/soap/soap-client.port.d.ts +28 -0
  299. package/lib/infrastructure/outbound/ports/soap/soap-client.port.js +3 -0
  300. package/lib/infrastructure/outbound/ports/soap/soap-client.port.js.map +1 -0
  301. package/lib/infrastructure/outbound/ports/soap/soap-repository.types.d.ts +37 -0
  302. package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js +3 -0
  303. package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js.map +1 -0
  304. package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.d.ts +24 -0
  305. package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.js +3 -0
  306. package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.js.map +1 -0
  307. package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.d.ts +9 -0
  308. package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js +3 -0
  309. package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js.map +1 -0
  310. package/lib/infrastructure/types/index.d.ts +5 -0
  311. package/lib/infrastructure/types/index.js +22 -0
  312. package/lib/infrastructure/types/index.js.map +1 -0
  313. package/lib/infrastructure/types/soap.types.d.ts +29 -0
  314. package/lib/infrastructure/types/soap.types.js +3 -0
  315. package/lib/infrastructure/types/soap.types.js.map +1 -0
  316. package/lib/infrastructure/utils/crypt-data.d.ts +6 -0
  317. package/lib/infrastructure/utils/crypt-data.js +46 -0
  318. package/lib/infrastructure/utils/crypt-data.js.map +1 -0
  319. package/lib/infrastructure/utils/env.d.ts +10 -0
  320. package/lib/infrastructure/utils/env.js +32 -0
  321. package/lib/infrastructure/utils/env.js.map +1 -0
  322. package/lib/infrastructure/utils/index.d.ts +8 -0
  323. package/lib/infrastructure/utils/index.js +25 -0
  324. package/lib/infrastructure/utils/index.js.map +1 -0
  325. package/lib/infrastructure/utils/logger.d.ts +4 -0
  326. package/lib/infrastructure/utils/logger.js +21 -0
  327. package/lib/infrastructure/utils/logger.js.map +1 -0
  328. package/lib/infrastructure/utils/parser.d.ts +14 -0
  329. package/lib/infrastructure/utils/parser.js +36 -0
  330. package/lib/infrastructure/utils/parser.js.map +1 -0
  331. package/lib/infrastructure/utils/soap-to-dto.mapper.d.ts +104 -0
  332. package/lib/infrastructure/utils/soap-to-dto.mapper.js +111 -0
  333. package/lib/infrastructure/utils/soap-to-dto.mapper.js.map +1 -0
  334. package/package.json +73 -0
@@ -0,0 +1,111 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.mapSoapErrors = mapSoapErrors;
4
+ exports.mapServerStatus = mapServerStatus;
5
+ exports.mapSalesPoints = mapSalesPoints;
6
+ exports.mapLastVoucher = mapLastVoucher;
7
+ exports.mapVoucherInfo = mapVoucherInfo;
8
+ exports.mapParameterTypes = mapParameterTypes;
9
+ exports.mapAliquotTypes = mapAliquotTypes;
10
+ /**
11
+ * Map SOAP errors to Domain ErrorInfo
12
+ */
13
+ function mapSoapErrors(errors) {
14
+ if (!(errors === null || errors === void 0 ? void 0 : errors.Err))
15
+ return undefined;
16
+ return errors.Err.map((e) => ({
17
+ code: e.Code,
18
+ msg: e.Msg,
19
+ }));
20
+ }
21
+ /**
22
+ * Map SOAP server status to Domain ServerStatus
23
+ */
24
+ function mapServerStatus(soapResult) {
25
+ return {
26
+ appServer: soapResult.AppServer,
27
+ dbServer: soapResult.DbServer,
28
+ authServer: soapResult.AuthServer,
29
+ };
30
+ }
31
+ /**
32
+ * Map SOAP sales points to Domain SalesPoint array
33
+ */
34
+ function mapSalesPoints(soapResult) {
35
+ var _a, _b;
36
+ return (((_b = (_a = soapResult.ResultGet) === null || _a === void 0 ? void 0 : _a.PtoVenta) === null || _b === void 0 ? void 0 : _b.map((p) => ({
37
+ nro: p.Nro,
38
+ emisionTipo: p.EmisionTipo,
39
+ bloqueado: p.Bloqueado,
40
+ fechaBaja: p.FchBaja,
41
+ }))) || []);
42
+ }
43
+ /**
44
+ * Map SOAP last voucher to Domain LastVoucher
45
+ */
46
+ function mapLastVoucher(soapResult) {
47
+ return {
48
+ cbteNro: soapResult.CbteNro,
49
+ cbteTipo: soapResult.CbteTipo,
50
+ ptoVta: soapResult.PtoVta,
51
+ };
52
+ }
53
+ /**
54
+ * Map SOAP voucher info to Domain VoucherInfo
55
+ * Handles special case: Observaciones?.Obs?.[0]?.Msg -> observaciones (flattened)
56
+ */
57
+ function mapVoucherInfo(soapResult) {
58
+ var _a, _b, _c;
59
+ if (!soapResult.ResultGet) {
60
+ return null;
61
+ }
62
+ const result = soapResult.ResultGet;
63
+ return {
64
+ codAutorizacion: result.CodAutorizacion,
65
+ emisionTipo: result.EmisionTipo,
66
+ fchVto: result.FchVto,
67
+ fchProceso: result.FchProceso,
68
+ resultado: result.Resultado,
69
+ observaciones: (_c = (_b = (_a = result.Observaciones) === null || _a === void 0 ? void 0 : _a.Obs) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.Msg,
70
+ concepto: result.Concepto,
71
+ docTipo: result.DocTipo,
72
+ docNro: result.DocNro,
73
+ cbteDesde: result.CbteDesde,
74
+ cbteHasta: result.CbteHasta,
75
+ cbteFch: result.CbteFch,
76
+ impTotal: result.ImpTotal,
77
+ impTotConc: result.ImpTotConc,
78
+ impNeto: result.ImpNeto,
79
+ impOpEx: result.ImpOpEx,
80
+ impIVA: result.ImpIVA,
81
+ impTrib: result.ImpTrib,
82
+ monId: result.MonId,
83
+ monCotiz: result.MonCotiz,
84
+ };
85
+ }
86
+ /**
87
+ * Map SOAP parameter types to Domain ParameterType array (generic for all parameter types)
88
+ */
89
+ function mapParameterTypes(soapResult, resultKey) {
90
+ var _a, _b;
91
+ return (((_b = (_a = soapResult.ResultGet) === null || _a === void 0 ? void 0 : _a[resultKey]) === null || _b === void 0 ? void 0 : _b.map((t) => ({
92
+ id: t.Id,
93
+ desc: t.Desc,
94
+ fchDesde: t.FchDesde,
95
+ fchHasta: t.FchHasta,
96
+ }))) || []);
97
+ }
98
+ /**
99
+ * Map SOAP aliquot types to Domain AliquotType array
100
+ * Handles special case: Id is string, needs parseInt
101
+ */
102
+ function mapAliquotTypes(soapResult) {
103
+ var _a, _b;
104
+ return (((_b = (_a = soapResult.ResultGet) === null || _a === void 0 ? void 0 : _a.IvaTipo) === null || _b === void 0 ? void 0 : _b.map((t) => ({
105
+ id: parseInt(t.Id, 10),
106
+ desc: t.Desc,
107
+ fchDesde: t.FchDesde,
108
+ fchHasta: t.FchHasta,
109
+ }))) || []);
110
+ }
111
+ //# sourceMappingURL=soap-to-dto.mapper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"soap-to-dto.mapper.js","sourceRoot":"","sources":["../../../src/infrastructure/utils/soap-to-dto.mapper.ts"],"names":[],"mappings":";;AAmBA,sCAQC;AAKD,0CAUC;AAKD,wCAoBC;AAKD,wCAUC;AAMD,wCAmDC;AAKD,8CAuBC;AAMD,0CAoBC;AAjLD;;GAEG;AACH,SAAgB,aAAa,CAAC,MAE7B;IACC,IAAI,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,GAAG,CAAA;QAAE,OAAO,SAAS,CAAC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ChC,CAAC,CAAC,EAAe,EAAE,CAAC,CAAC;QACnB,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC;QACtB,IAAI,EAAE,CAAC,CAAC,IAAI;QACZ,QAAQ,EAAE,CAAC,CAAC,QAAQ;QACpB,QAAQ,EAAE,CAAC,CAAC,QAAQ;KACrB,CAAC,CACH,KAAI,EAAE,CACR,CAAC;AACJ,CAAC"}
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@arcasdk/core",
3
+ "version": "0.1.0",
4
+ "description": "Arca TypeScript SDK - Core package for AFIP/ARCA integration",
5
+ "source": "src/index.ts",
6
+ "main": "lib/index.js",
7
+ "types": "lib/index.d.ts",
8
+ "scripts": {
9
+ "build": "npx tsc",
10
+ "test": "jest",
11
+ "test:unit": "jest ./tests/unit",
12
+ "test:integration": "jest ./tests/integration",
13
+ "test:integration:watch": "jest ./tests/integration --watch",
14
+ "test:integration:manual": "jest ./tests/integration/electronic-billing-manual-tokens.integration.test.ts",
15
+ "test:integration:auto": "jest ./tests/integration/electronic-billing.integration.test.ts"
16
+ },
17
+ "dependencies": {
18
+ "dotenv": "^16.3.1",
19
+ "moment": "^2.29.4",
20
+ "node-forge": "^1.3.1",
21
+ "soap": "^1.0.0",
22
+ "winston": "^3.10.0",
23
+ "xml2js": "^0.6.2"
24
+ },
25
+ "devDependencies": {
26
+ "@jest/globals": "^29.6.2",
27
+ "@types/jest": "^29.5.1",
28
+ "@types/node": "^24.10.1",
29
+ "@types/node-forge": "^1.3.2",
30
+ "@types/soap": "^0.18.0",
31
+ "@types/underscore": "^1.11.5",
32
+ "@types/xml2js": "^0.4.11",
33
+ "copyfiles": "^2.4.1",
34
+ "jest": "^28.1.3",
35
+ "rimraf": "^5.0.7",
36
+ "ts-jest": "^28.0.8",
37
+ "ts-node": "^10.9.1",
38
+ "tsconfig-paths": "^4.2.0",
39
+ "typescript": "^5.0.4"
40
+ },
41
+ "author": "valiuLab",
42
+ "license": "ISC",
43
+ "publishConfig": {
44
+ "access": "public"
45
+ },
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "git+https://github.com/ralcorta/arcasdk.git",
49
+ "directory": "packages/core"
50
+ },
51
+ "bugs": {
52
+ "url": "https://github.com/ralcorta/arcasdk/issues"
53
+ },
54
+ "homepage": "https://github.com/ralcorta/arcasdk#readme",
55
+ "files": [
56
+ "lib/**/*"
57
+ ],
58
+ "keywords": [
59
+ "web-service",
60
+ "factura-electronica",
61
+ "padron",
62
+ "arca",
63
+ "afip",
64
+ "arca",
65
+ "sdk",
66
+ "package",
67
+ "api",
68
+ "soap",
69
+ "rest",
70
+ "endpoint",
71
+ "wsaa"
72
+ ]
73
+ }