@arcasdk/core 0.1.0 → 0.2.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 (335) hide show
  1. package/README.md +20 -0
  2. package/package.json +2 -2
  3. package/lib/application/config/env.d.ts +0 -6
  4. package/lib/application/config/env.js +0 -14
  5. package/lib/application/config/env.js.map +0 -1
  6. package/lib/application/config/index.d.ts +0 -6
  7. package/lib/application/config/index.js +0 -15
  8. package/lib/application/config/index.js.map +0 -1
  9. package/lib/application/dto/electronic-billing.dto.d.ts +0 -114
  10. package/lib/application/dto/electronic-billing.dto.js +0 -3
  11. package/lib/application/dto/electronic-billing.dto.js.map +0 -1
  12. package/lib/application/dto/index.d.ts +0 -6
  13. package/lib/application/dto/index.js +0 -23
  14. package/lib/application/dto/index.js.map +0 -1
  15. package/lib/application/dto/register.dto.d.ts +0 -116
  16. package/lib/application/dto/register.dto.js +0 -8
  17. package/lib/application/dto/register.dto.js.map +0 -1
  18. package/lib/application/index.d.ts +0 -10
  19. package/lib/application/index.js +0 -27
  20. package/lib/application/index.js.map +0 -1
  21. package/lib/application/ports/authentication/authentication-repository.port.d.ts +0 -29
  22. package/lib/application/ports/authentication/authentication-repository.port.js +0 -3
  23. package/lib/application/ports/authentication/authentication-repository.port.js.map +0 -1
  24. package/lib/application/ports/authentication/index.d.ts +0 -5
  25. package/lib/application/ports/authentication/index.js +0 -22
  26. package/lib/application/ports/authentication/index.js.map +0 -1
  27. package/lib/application/ports/electronic-billing/electronic-billing-repository.port.d.ts +0 -77
  28. package/lib/application/ports/electronic-billing/electronic-billing-repository.port.js +0 -3
  29. package/lib/application/ports/electronic-billing/electronic-billing-repository.port.js.map +0 -1
  30. package/lib/application/ports/electronic-billing/index.d.ts +0 -5
  31. package/lib/application/ports/electronic-billing/index.js +0 -22
  32. package/lib/application/ports/electronic-billing/index.js.map +0 -1
  33. package/lib/application/ports/index.d.ts +0 -7
  34. package/lib/application/ports/index.js +0 -24
  35. package/lib/application/ports/index.js.map +0 -1
  36. package/lib/application/ports/register/index.d.ts +0 -5
  37. package/lib/application/ports/register/index.js +0 -22
  38. package/lib/application/ports/register/index.js.map +0 -1
  39. package/lib/application/ports/register/register-repository.port.d.ts +0 -42
  40. package/lib/application/ports/register/register-repository.port.js +0 -12
  41. package/lib/application/ports/register/register-repository.port.js.map +0 -1
  42. package/lib/application/services/electronic-billing.service.d.ts +0 -129
  43. package/lib/application/services/electronic-billing.service.js +0 -217
  44. package/lib/application/services/electronic-billing.service.js.map +0 -1
  45. package/lib/application/services/index.d.ts +0 -10
  46. package/lib/application/services/index.js +0 -27
  47. package/lib/application/services/index.js.map +0 -1
  48. package/lib/application/services/register-inscription-proof.service.d.ts +0 -35
  49. package/lib/application/services/register-inscription-proof.service.js +0 -101
  50. package/lib/application/services/register-inscription-proof.service.js.map +0 -1
  51. package/lib/application/services/register-scope-five.service.d.ts +0 -35
  52. package/lib/application/services/register-scope-five.service.js +0 -101
  53. package/lib/application/services/register-scope-five.service.js.map +0 -1
  54. package/lib/application/services/register-scope-four.service.d.ts +0 -28
  55. package/lib/application/services/register-scope-four.service.js +0 -72
  56. package/lib/application/services/register-scope-four.service.js.map +0 -1
  57. package/lib/application/services/register-scope-ten.service.d.ts +0 -28
  58. package/lib/application/services/register-scope-ten.service.js +0 -72
  59. package/lib/application/services/register-scope-ten.service.js.map +0 -1
  60. package/lib/application/services/register-scope-thirteen.service.d.ts +0 -36
  61. package/lib/application/services/register-scope-thirteen.service.js +0 -96
  62. package/lib/application/services/register-scope-thirteen.service.js.map +0 -1
  63. package/lib/application/types/auth.types.d.ts +0 -19
  64. package/lib/application/types/auth.types.js +0 -7
  65. package/lib/application/types/auth.types.js.map +0 -1
  66. package/lib/application/types/context.types.d.ts +0 -46
  67. package/lib/application/types/context.types.js +0 -3
  68. package/lib/application/types/context.types.js.map +0 -1
  69. package/lib/application/types/index.d.ts +0 -8
  70. package/lib/application/types/index.js +0 -25
  71. package/lib/application/types/index.js.map +0 -1
  72. package/lib/application/types/result.types.d.ts +0 -10
  73. package/lib/application/types/result.types.js +0 -3
  74. package/lib/application/types/result.types.js.map +0 -1
  75. package/lib/application/types/use-case-inputs.types.d.ts +0 -42
  76. package/lib/application/types/use-case-inputs.types.js +0 -3
  77. package/lib/application/types/use-case-inputs.types.js.map +0 -1
  78. package/lib/application/use-cases/authentication/get-auth-params.use-case.d.ts +0 -16
  79. package/lib/application/use-cases/authentication/get-auth-params.use-case.js +0 -29
  80. package/lib/application/use-cases/authentication/get-auth-params.use-case.js.map +0 -1
  81. package/lib/application/use-cases/authentication/index.d.ts +0 -7
  82. package/lib/application/use-cases/authentication/index.js +0 -24
  83. package/lib/application/use-cases/authentication/index.js.map +0 -1
  84. package/lib/application/use-cases/authentication/login.use-case.d.ts +0 -17
  85. package/lib/application/use-cases/authentication/login.use-case.js +0 -29
  86. package/lib/application/use-cases/authentication/login.use-case.js.map +0 -1
  87. package/lib/application/use-cases/authentication/request-login.use-case.d.ts +0 -16
  88. package/lib/application/use-cases/authentication/request-login.use-case.js +0 -29
  89. package/lib/application/use-cases/authentication/request-login.use-case.js.map +0 -1
  90. package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.d.ts +0 -17
  91. package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js +0 -39
  92. package/lib/application/use-cases/electronic-billing/create-next-voucher.use-case.js.map +0 -1
  93. package/lib/application/use-cases/electronic-billing/create-voucher.use-case.d.ts +0 -17
  94. package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js +0 -33
  95. package/lib/application/use-cases/electronic-billing/create-voucher.use-case.js.map +0 -1
  96. package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.d.ts +0 -15
  97. package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.js +0 -28
  98. package/lib/application/use-cases/electronic-billing/get-aliquot-types.use-case.js.map +0 -1
  99. package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.d.ts +0 -15
  100. package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.js +0 -28
  101. package/lib/application/use-cases/electronic-billing/get-concept-types.use-case.js.map +0 -1
  102. package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.d.ts +0 -15
  103. package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.js +0 -28
  104. package/lib/application/use-cases/electronic-billing/get-currency-types.use-case.js.map +0 -1
  105. package/lib/application/use-cases/electronic-billing/get-document-types.use-case.d.ts +0 -15
  106. package/lib/application/use-cases/electronic-billing/get-document-types.use-case.js +0 -28
  107. package/lib/application/use-cases/electronic-billing/get-document-types.use-case.js.map +0 -1
  108. package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.d.ts +0 -17
  109. package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.js +0 -29
  110. package/lib/application/use-cases/electronic-billing/get-last-voucher.use-case.js.map +0 -1
  111. package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.d.ts +0 -15
  112. package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.js +0 -28
  113. package/lib/application/use-cases/electronic-billing/get-optional-types.use-case.js.map +0 -1
  114. package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.d.ts +0 -40
  115. package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.js +0 -73
  116. package/lib/application/use-cases/electronic-billing/get-parameter-types.use-case.js.map +0 -1
  117. package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.d.ts +0 -15
  118. package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.js +0 -28
  119. package/lib/application/use-cases/electronic-billing/get-sales-points.use-case.js.map +0 -1
  120. package/lib/application/use-cases/electronic-billing/get-server-status.use-case.d.ts +0 -15
  121. package/lib/application/use-cases/electronic-billing/get-server-status.use-case.js +0 -28
  122. package/lib/application/use-cases/electronic-billing/get-server-status.use-case.js.map +0 -1
  123. package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.d.ts +0 -15
  124. package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.js +0 -28
  125. package/lib/application/use-cases/electronic-billing/get-tax-types.use-case.js.map +0 -1
  126. package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.d.ts +0 -17
  127. package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.js +0 -29
  128. package/lib/application/use-cases/electronic-billing/get-voucher-info.use-case.js.map +0 -1
  129. package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.d.ts +0 -15
  130. package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.js +0 -28
  131. package/lib/application/use-cases/electronic-billing/get-voucher-types.use-case.js.map +0 -1
  132. package/lib/application/use-cases/electronic-billing/index.d.ts +0 -18
  133. package/lib/application/use-cases/electronic-billing/index.js +0 -36
  134. package/lib/application/use-cases/electronic-billing/index.js.map +0 -1
  135. package/lib/application/use-cases/index.d.ts +0 -7
  136. package/lib/application/use-cases/index.js +0 -24
  137. package/lib/application/use-cases/index.js.map +0 -1
  138. package/lib/application/use-cases/register/get-server-status.use-case.d.ts +0 -17
  139. package/lib/application/use-cases/register/get-server-status.use-case.js +0 -29
  140. package/lib/application/use-cases/register/get-server-status.use-case.js.map +0 -1
  141. package/lib/application/use-cases/register/get-tax-id-by-document.use-case.d.ts +0 -18
  142. package/lib/application/use-cases/register/get-tax-id-by-document.use-case.js +0 -29
  143. package/lib/application/use-cases/register/get-tax-id-by-document.use-case.js.map +0 -1
  144. package/lib/application/use-cases/register/get-taxpayer-details.use-case.d.ts +0 -17
  145. package/lib/application/use-cases/register/get-taxpayer-details.use-case.js +0 -29
  146. package/lib/application/use-cases/register/get-taxpayer-details.use-case.js.map +0 -1
  147. package/lib/application/use-cases/register/get-taxpayers-details.use-case.d.ts +0 -18
  148. package/lib/application/use-cases/register/get-taxpayers-details.use-case.js +0 -29
  149. package/lib/application/use-cases/register/get-taxpayers-details.use-case.js.map +0 -1
  150. package/lib/application/use-cases/register/index.d.ts +0 -8
  151. package/lib/application/use-cases/register/index.js +0 -25
  152. package/lib/application/use-cases/register/index.js.map +0 -1
  153. package/lib/arca.d.ts +0 -23
  154. package/lib/arca.js +0 -83
  155. package/lib/arca.js.map +0 -1
  156. package/lib/domain/entities/access-ticket.entity.d.ts +0 -73
  157. package/lib/domain/entities/access-ticket.entity.js +0 -144
  158. package/lib/domain/entities/access-ticket.entity.js.map +0 -1
  159. package/lib/domain/entities/index.d.ts +0 -6
  160. package/lib/domain/entities/index.js +0 -23
  161. package/lib/domain/entities/index.js.map +0 -1
  162. package/lib/domain/entities/voucher.entity.d.ts +0 -113
  163. package/lib/domain/entities/voucher.entity.js +0 -216
  164. package/lib/domain/entities/voucher.entity.js.map +0 -1
  165. package/lib/domain/index.d.ts +0 -6
  166. package/lib/domain/index.js +0 -23
  167. package/lib/domain/index.js.map +0 -1
  168. package/lib/domain/types/electronic-billing.types.d.ts +0 -120
  169. package/lib/domain/types/electronic-billing.types.js +0 -8
  170. package/lib/domain/types/electronic-billing.types.js.map +0 -1
  171. package/lib/domain/types/index.d.ts +0 -6
  172. package/lib/domain/types/index.js +0 -23
  173. package/lib/domain/types/index.js.map +0 -1
  174. package/lib/domain/types/voucher.types.d.ts +0 -65
  175. package/lib/domain/types/voucher.types.js +0 -3
  176. package/lib/domain/types/voucher.types.js.map +0 -1
  177. package/lib/domain/value-objects/cae.vo.d.ts +0 -47
  178. package/lib/domain/value-objects/cae.vo.js +0 -80
  179. package/lib/domain/value-objects/cae.vo.js.map +0 -1
  180. package/lib/domain/value-objects/cuit.vo.d.ts +0 -49
  181. package/lib/domain/value-objects/cuit.vo.js +0 -98
  182. package/lib/domain/value-objects/cuit.vo.js.map +0 -1
  183. package/lib/domain/value-objects/index.d.ts +0 -7
  184. package/lib/domain/value-objects/index.js +0 -24
  185. package/lib/domain/value-objects/index.js.map +0 -1
  186. package/lib/domain/value-objects/voucher-number.vo.d.ts +0 -66
  187. package/lib/domain/value-objects/voucher-number.vo.js +0 -106
  188. package/lib/domain/value-objects/voucher-number.vo.js.map +0 -1
  189. package/lib/index.d.ts +0 -8
  190. package/lib/index.js +0 -27
  191. package/lib/index.js.map +0 -1
  192. package/lib/infrastructure/constants/index.d.ts +0 -5
  193. package/lib/infrastructure/constants/index.js +0 -22
  194. package/lib/infrastructure/constants/index.js.map +0 -1
  195. package/lib/infrastructure/constants/ssl.constants.d.ts +0 -16
  196. package/lib/infrastructure/constants/ssl.constants.js +0 -20
  197. package/lib/infrastructure/constants/ssl.constants.js.map +0 -1
  198. package/lib/infrastructure/index.d.ts +0 -5
  199. package/lib/infrastructure/index.js +0 -22
  200. package/lib/infrastructure/index.js.map +0 -1
  201. package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.d.ts +0 -68
  202. package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js +0 -128
  203. package/lib/infrastructure/outbound/adapters/auth/afip-auth.repository.js.map +0 -1
  204. package/lib/infrastructure/outbound/adapters/auth/auth.repository.d.ts +0 -59
  205. package/lib/infrastructure/outbound/adapters/auth/auth.repository.js +0 -134
  206. package/lib/infrastructure/outbound/adapters/auth/auth.repository.js.map +0 -1
  207. package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.d.ts +0 -31
  208. package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js +0 -299
  209. package/lib/infrastructure/outbound/adapters/electronic-billing/electronic-billing-repository.js.map +0 -1
  210. package/lib/infrastructure/outbound/adapters/electronic-billing/index.d.ts +0 -5
  211. package/lib/infrastructure/outbound/adapters/electronic-billing/index.js +0 -22
  212. package/lib/infrastructure/outbound/adapters/electronic-billing/index.js.map +0 -1
  213. package/lib/infrastructure/outbound/adapters/enums.d.ts +0 -43
  214. package/lib/infrastructure/outbound/adapters/enums.js +0 -49
  215. package/lib/infrastructure/outbound/adapters/enums.js.map +0 -1
  216. package/lib/infrastructure/outbound/adapters/index.d.ts +0 -10
  217. package/lib/infrastructure/outbound/adapters/index.js +0 -27
  218. package/lib/infrastructure/outbound/adapters/index.js.map +0 -1
  219. package/lib/infrastructure/outbound/adapters/logger/winston-logger.d.ts +0 -14
  220. package/lib/infrastructure/outbound/adapters/logger/winston-logger.js +0 -24
  221. package/lib/infrastructure/outbound/adapters/logger/winston-logger.js.map +0 -1
  222. package/lib/infrastructure/outbound/adapters/register/index.d.ts +0 -5
  223. package/lib/infrastructure/outbound/adapters/register/index.js +0 -22
  224. package/lib/infrastructure/outbound/adapters/register/index.js.map +0 -1
  225. package/lib/infrastructure/outbound/adapters/register/register-repository.d.ts +0 -32
  226. package/lib/infrastructure/outbound/adapters/register/register-repository.js +0 -288
  227. package/lib/infrastructure/outbound/adapters/register/register-repository.js.map +0 -1
  228. package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.d.ts +0 -30
  229. package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js +0 -63
  230. package/lib/infrastructure/outbound/adapters/soap/base-soap-repository.js.map +0 -1
  231. package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.d.ts +0 -20
  232. package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js +0 -54
  233. package/lib/infrastructure/outbound/adapters/soap/soap-client-facade.js.map +0 -1
  234. package/lib/infrastructure/outbound/adapters/soap/soap-client.d.ts +0 -11
  235. package/lib/infrastructure/outbound/adapters/soap/soap-client.js +0 -89
  236. package/lib/infrastructure/outbound/adapters/soap/soap-client.js.map +0 -1
  237. package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.d.ts +0 -10
  238. package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js +0 -5804
  239. package/lib/infrastructure/outbound/adapters/soap/wsdl-strings.js.map +0 -1
  240. package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.d.ts +0 -24
  241. package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js +0 -98
  242. package/lib/infrastructure/outbound/adapters/storage/file-system-ticket-storage.js.map +0 -1
  243. package/lib/infrastructure/outbound/index.d.ts +0 -9
  244. package/lib/infrastructure/outbound/index.js +0 -26
  245. package/lib/infrastructure/outbound/index.js.map +0 -1
  246. package/lib/infrastructure/outbound/ports/auth/auth-repository.types.d.ts +0 -17
  247. package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js +0 -3
  248. package/lib/infrastructure/outbound/ports/auth/auth-repository.types.js.map +0 -1
  249. package/lib/infrastructure/outbound/ports/index.d.ts +0 -11
  250. package/lib/infrastructure/outbound/ports/index.js +0 -28
  251. package/lib/infrastructure/outbound/ports/index.js.map +0 -1
  252. package/lib/infrastructure/outbound/ports/logger/logger.port.d.ts +0 -31
  253. package/lib/infrastructure/outbound/ports/logger/logger.port.js +0 -3
  254. package/lib/infrastructure/outbound/ports/logger/logger.port.js.map +0 -1
  255. package/lib/infrastructure/outbound/ports/logger/logger.types.d.ts +0 -7
  256. package/lib/infrastructure/outbound/ports/logger/logger.types.js +0 -3
  257. package/lib/infrastructure/outbound/ports/logger/logger.types.js.map +0 -1
  258. package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.d.ts +0 -51
  259. package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js +0 -57
  260. package/lib/infrastructure/outbound/ports/soap/enums/endpoints.enum.js.map +0 -1
  261. package/lib/infrastructure/outbound/ports/soap/enums/index.d.ts +0 -7
  262. package/lib/infrastructure/outbound/ports/soap/enums/index.js +0 -24
  263. package/lib/infrastructure/outbound/ports/soap/enums/index.js.map +0 -1
  264. package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.d.ts +0 -9
  265. package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js +0 -14
  266. package/lib/infrastructure/outbound/ports/soap/enums/service-names.enum.js.map +0 -1
  267. package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.d.ts +0 -15
  268. package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js +0 -20
  269. package/lib/infrastructure/outbound/ports/soap/enums/wsdl-path.enum.js.map +0 -1
  270. package/lib/infrastructure/outbound/ports/soap/index.d.ts +0 -7
  271. package/lib/infrastructure/outbound/ports/soap/index.js +0 -24
  272. package/lib/infrastructure/outbound/ports/soap/index.js.map +0 -1
  273. package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.d.ts +0 -42
  274. package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.js +0 -3
  275. package/lib/infrastructure/outbound/ports/soap/interfaces/LoginCMSService/LoginCms.js.map +0 -1
  276. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.d.ts +0 -102
  277. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.js +0 -3
  278. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA10/PersonaServiceA10Port.js.map +0 -1
  279. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.d.ts +0 -145
  280. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.js +0 -3
  281. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA13/PersonaServiceA13Port.js.map +0 -1
  282. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.d.ts +0 -227
  283. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.js +0 -3
  284. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA4/PersonaServiceA4Port.js.map +0 -1
  285. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.d.ts +0 -300
  286. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.js +0 -3
  287. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceA5/PersonaServiceA5Port.js.map +0 -1
  288. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.d.ts +0 -301
  289. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.js +0 -3
  290. package/lib/infrastructure/outbound/ports/soap/interfaces/PersonaServiceInscriptionProof/PersonaServiceInscriptionProofPort.js.map +0 -1
  291. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.d.ts +0 -835
  292. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.js +0 -3
  293. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap.js.map +0 -1
  294. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.d.ts +0 -876
  295. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.js +0 -3
  296. package/lib/infrastructure/outbound/ports/soap/interfaces/Service/ServiceSoap12.js.map +0 -1
  297. package/lib/infrastructure/outbound/ports/soap/interfaces/index.d.ts +0 -15
  298. package/lib/infrastructure/outbound/ports/soap/interfaces/index.js +0 -53
  299. package/lib/infrastructure/outbound/ports/soap/interfaces/index.js.map +0 -1
  300. package/lib/infrastructure/outbound/ports/soap/soap-client.port.d.ts +0 -28
  301. package/lib/infrastructure/outbound/ports/soap/soap-client.port.js +0 -3
  302. package/lib/infrastructure/outbound/ports/soap/soap-client.port.js.map +0 -1
  303. package/lib/infrastructure/outbound/ports/soap/soap-repository.types.d.ts +0 -37
  304. package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js +0 -3
  305. package/lib/infrastructure/outbound/ports/soap/soap-repository.types.js.map +0 -1
  306. package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.d.ts +0 -24
  307. package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.js +0 -3
  308. package/lib/infrastructure/outbound/ports/storage/ticket-storage.port.js.map +0 -1
  309. package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.d.ts +0 -9
  310. package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js +0 -3
  311. package/lib/infrastructure/outbound/ports/storage/ticket-storage.types.js.map +0 -1
  312. package/lib/infrastructure/types/index.d.ts +0 -5
  313. package/lib/infrastructure/types/index.js +0 -22
  314. package/lib/infrastructure/types/index.js.map +0 -1
  315. package/lib/infrastructure/types/soap.types.d.ts +0 -29
  316. package/lib/infrastructure/types/soap.types.js +0 -3
  317. package/lib/infrastructure/types/soap.types.js.map +0 -1
  318. package/lib/infrastructure/utils/crypt-data.d.ts +0 -6
  319. package/lib/infrastructure/utils/crypt-data.js +0 -46
  320. package/lib/infrastructure/utils/crypt-data.js.map +0 -1
  321. package/lib/infrastructure/utils/env.d.ts +0 -10
  322. package/lib/infrastructure/utils/env.js +0 -32
  323. package/lib/infrastructure/utils/env.js.map +0 -1
  324. package/lib/infrastructure/utils/index.d.ts +0 -8
  325. package/lib/infrastructure/utils/index.js +0 -25
  326. package/lib/infrastructure/utils/index.js.map +0 -1
  327. package/lib/infrastructure/utils/logger.d.ts +0 -4
  328. package/lib/infrastructure/utils/logger.js +0 -21
  329. package/lib/infrastructure/utils/logger.js.map +0 -1
  330. package/lib/infrastructure/utils/parser.d.ts +0 -14
  331. package/lib/infrastructure/utils/parser.js +0 -36
  332. package/lib/infrastructure/utils/parser.js.map +0 -1
  333. package/lib/infrastructure/utils/soap-to-dto.mapper.d.ts +0 -104
  334. package/lib/infrastructure/utils/soap-to-dto.mapper.js +0 -111
  335. package/lib/infrastructure/utils/soap-to-dto.mapper.js.map +0 -1
@@ -1,216 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Voucher = void 0;
4
- /**
5
- * Voucher Entity
6
- * Represents an electronic voucher with business logic and validations
7
- */
8
- class Voucher {
9
- constructor(data) {
10
- this.data = data;
11
- this.validate();
12
- }
13
- /**
14
- * Factory method to create a Voucher
15
- * @param data Voucher data
16
- * @returns Voucher instance
17
- */
18
- static create(data) {
19
- return new Voucher(data);
20
- }
21
- /**
22
- * Validates the voucher according to business rules
23
- * @throws Error if validation fails
24
- */
25
- validate() {
26
- // Validate Punto de Venta
27
- if (!this.data.PtoVta || this.data.PtoVta <= 0) {
28
- throw new Error("Punto de venta inválido. Debe ser mayor a cero.");
29
- }
30
- // Validate Tipo de Comprobante
31
- if (!this.data.CbteTipo || this.data.CbteTipo <= 0) {
32
- throw new Error("Tipo de comprobante inválido. Debe ser mayor a cero.");
33
- }
34
- // Validate Números de Comprobante
35
- if (!this.data.CbteDesde || !this.data.CbteHasta) {
36
- throw new Error("Números de comprobante inválidos. CbteDesde y CbteHasta son requeridos.");
37
- }
38
- if (this.data.CbteDesde > this.data.CbteHasta) {
39
- throw new Error("CbteDesde no puede ser mayor que CbteHasta.");
40
- }
41
- if (this.data.CbteDesde < 0 || this.data.CbteHasta < 0) {
42
- throw new Error("Los números de comprobante no pueden ser negativos.");
43
- }
44
- // Validate CantReg
45
- const expectedCantReg = this.data.CbteHasta - this.data.CbteDesde + 1;
46
- if (this.data.CantReg !== expectedCantReg) {
47
- throw new Error(`CantReg (${this.data.CantReg}) debe ser igual a la cantidad de comprobantes (${expectedCantReg})`);
48
- }
49
- // Validate Factura C (type 11) - No debe tener IVA
50
- if (this.isFacturaC()) {
51
- if (this.data.ImpIVA !== 0) {
52
- throw new Error("El campo ImpIVA (Importe de IVA) para comprobantes tipo C debe ser igual a cero (0).");
53
- }
54
- if (this.data.Iva && this.data.Iva.length > 0) {
55
- throw new Error("Para comprobantes tipo C el objeto IVA no debe informarse.");
56
- }
57
- }
58
- // Validate Total Calculation
59
- const calculatedTotal = this.data.ImpNeto + this.data.ImpTrib + this.data.ImpIVA;
60
- if (Math.abs(this.data.ImpTotal - calculatedTotal) > 0.01) {
61
- throw new Error(`El campo 'Importe Total' ImpTotal (${this.data.ImpTotal}), debe ser igual a la suma de ImpNeto (${this.data.ImpNeto}) + ImpTrib (${this.data.ImpTrib}) + ImpIVA (${this.data.ImpIVA}) = ${calculatedTotal}.`);
62
- }
63
- // Validate Concepto
64
- if (!this.data.Concepto ||
65
- this.data.Concepto < 1 ||
66
- this.data.Concepto > 3) {
67
- throw new Error("Concepto inválido. Debe ser 1 (Productos), 2 (Servicios) o 3 (Productos y Servicios).");
68
- }
69
- // Validate Document Type
70
- if (!this.data.DocTipo || this.data.DocTipo <= 0) {
71
- throw new Error("Tipo de documento inválido.");
72
- }
73
- // Validate Currency
74
- if (!this.data.MonId || this.data.MonId.length === 0) {
75
- throw new Error("Moneda (MonId) es requerida.");
76
- }
77
- if (!this.data.MonCotiz || this.data.MonCotiz <= 0) {
78
- throw new Error("Cotización de moneda (MonCotiz) debe ser mayor a cero.");
79
- }
80
- }
81
- /**
82
- * Gets the Punto de Venta
83
- */
84
- getPtoVta() {
85
- return this.data.PtoVta;
86
- }
87
- /**
88
- * Gets the Tipo de Comprobante
89
- */
90
- getCbteTipo() {
91
- return this.data.CbteTipo;
92
- }
93
- /**
94
- * Gets the CbteDesde
95
- */
96
- getCbteDesde() {
97
- return this.data.CbteDesde;
98
- }
99
- /**
100
- * Gets the CbteHasta
101
- */
102
- getCbteHasta() {
103
- return this.data.CbteHasta;
104
- }
105
- /**
106
- * Gets the total amount
107
- */
108
- getImpTotal() {
109
- return this.data.ImpTotal;
110
- }
111
- /**
112
- * Gets the IVA amount
113
- */
114
- getImpIVA() {
115
- return this.data.ImpIVA;
116
- }
117
- /**
118
- * Gets the net amount
119
- */
120
- getImpNeto() {
121
- return this.data.ImpNeto;
122
- }
123
- /**
124
- * Gets the taxes amount
125
- */
126
- getImpTrib() {
127
- return this.data.ImpTrib;
128
- }
129
- /**
130
- * Checks if this is a Factura C (type 11)
131
- */
132
- isFacturaC() {
133
- return this.data.CbteTipo === 11;
134
- }
135
- /**
136
- * Checks if this is a Factura A (type 1)
137
- */
138
- isFacturaA() {
139
- return this.data.CbteTipo === 1;
140
- }
141
- /**
142
- * Checks if this is a Factura B (type 6)
143
- */
144
- isFacturaB() {
145
- return this.data.CbteTipo === 6;
146
- }
147
- /**
148
- * Gets the voucher date
149
- */
150
- getCbteFch() {
151
- return this.data.CbteFch;
152
- }
153
- /**
154
- * Gets the concept type
155
- */
156
- getConcepto() {
157
- return this.data.Concepto;
158
- }
159
- /**
160
- * Gets the document type
161
- */
162
- getDocTipo() {
163
- return this.data.DocTipo;
164
- }
165
- /**
166
- * Gets the document number
167
- */
168
- getDocNro() {
169
- return this.data.DocNro;
170
- }
171
- /**
172
- * Gets the currency ID
173
- */
174
- getMonId() {
175
- return this.data.MonId;
176
- }
177
- /**
178
- * Gets the currency exchange rate
179
- */
180
- getMonCotiz() {
181
- return this.data.MonCotiz;
182
- }
183
- /**
184
- * Gets the IVA array (if any)
185
- */
186
- getIva() {
187
- return this.data.Iva;
188
- }
189
- /**
190
- * Gets the Tributos array (if any)
191
- */
192
- getTributos() {
193
- return this.data.Tributos;
194
- }
195
- /**
196
- * Gets the associated vouchers (if any)
197
- */
198
- getCbtesAsoc() {
199
- return this.data.CbtesAsoc;
200
- }
201
- /**
202
- * Converts the entity to DTO for external use
203
- * @returns IVoucherData DTO
204
- */
205
- toDTO() {
206
- return Object.assign({}, this.data);
207
- }
208
- /**
209
- * Gets the number of vouchers in this range
210
- */
211
- getCantReg() {
212
- return this.data.CantReg;
213
- }
214
- }
215
- exports.Voucher = Voucher;
216
- //# sourceMappingURL=voucher.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"voucher.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/voucher.entity.ts"],"names":[],"mappings":";;;AAaA;;;GAGG;AACH,MAAa,OAAO;IAClB,YAAqC,IAAkB;QAAlB,SAAI,GAAJ,IAAI,CAAc;QACrD,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,MAAM,CAAC,IAAkB;QAC9B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IAED;;;OAGG;IACK,QAAQ;QACd,0BAA0B;QAC1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;YAC/C,MAAM,IAAI,KAAK,CAAC,iDA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O,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;IAC3B,CAAC;IAED;;OAEG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;IAC1B,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,WAAW;QACT,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,YAAY;QACV,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC;IAC7B,CAAC;IAED;;;OAGG;IACH,KAAK;QACH,yBAAY,IAAI,CAAC,IAAI,EAAG;IAC1B,CAAC;IAED;;OAEG;IACH,UAAU;QACR,OAAO,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC;IAC3B,CAAC;CACF;AAhQD,0BAgQC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Domain Layer
3
- * Exports all domain entities and value objects
4
- */
5
- export * from "./entities";
6
- export * from "./value-objects";
@@ -1,23 +0,0 @@
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
- * Domain Layer
19
- * Exports all domain entities and value objects
20
- */
21
- __exportStar(require("./entities"), exports);
22
- __exportStar(require("./value-objects"), exports);
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/domain/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,6CAA2B;AAC3B,kDAAgC"}
@@ -1,120 +0,0 @@
1
- /**
2
- * Domain Types - Electronic Billing
3
- * Types representing electronic billing domain concepts
4
- * These are business concepts, independent of infrastructure (SOAP, REST, etc.)
5
- */
6
- /**
7
- * Sales Point (Punto de Venta)
8
- */
9
- export interface SalesPoint {
10
- nro: number;
11
- emisionTipo: string;
12
- bloqueado: string;
13
- fechaBaja?: string;
14
- }
15
- /**
16
- * Server Status
17
- */
18
- export interface ServerStatus {
19
- appServer: string;
20
- dbServer: string;
21
- authServer: string;
22
- }
23
- /**
24
- * Last Voucher Information
25
- */
26
- export interface LastVoucher {
27
- cbteNro: number;
28
- cbteTipo: number;
29
- ptoVta: number;
30
- }
31
- /**
32
- * Voucher Information
33
- */
34
- export interface VoucherInfo {
35
- codAutorizacion?: string;
36
- emisionTipo?: string;
37
- fchVto?: string;
38
- fchProceso?: string;
39
- resultado?: string;
40
- observaciones?: string;
41
- concepto?: number;
42
- docTipo?: number;
43
- docNro?: number;
44
- cbteDesde?: number;
45
- cbteHasta?: number;
46
- cbteFch?: string;
47
- impTotal?: number;
48
- impTotConc?: number;
49
- impNeto?: number;
50
- impOpEx?: number;
51
- impIVA?: number;
52
- impTrib?: number;
53
- monId?: string;
54
- monCotiz?: number;
55
- }
56
- /**
57
- * Parameter Type (base for all parameter types)
58
- */
59
- export interface ParameterType {
60
- id: number | string;
61
- desc: string;
62
- fchDesde: string;
63
- fchHasta: string;
64
- }
65
- /**
66
- * Voucher Type
67
- */
68
- export interface VoucherType extends ParameterType {
69
- id: number;
70
- }
71
- /**
72
- * Concept Type
73
- */
74
- export interface ConceptType extends ParameterType {
75
- id: number;
76
- }
77
- /**
78
- * Document Type
79
- */
80
- export interface DocumentType extends ParameterType {
81
- id: number;
82
- }
83
- /**
84
- * Aliquot Type (IVA)
85
- */
86
- export interface AliquotType extends ParameterType {
87
- id: number;
88
- }
89
- /**
90
- * Currency Type
91
- */
92
- export interface CurrencyType extends ParameterType {
93
- id: string;
94
- }
95
- /**
96
- * Optional Type
97
- */
98
- export interface OptionalType extends ParameterType {
99
- id: string;
100
- }
101
- /**
102
- * Tax Type
103
- */
104
- export interface TaxType extends ParameterType {
105
- id: number;
106
- }
107
- /**
108
- * Error Information
109
- */
110
- export interface ErrorInfo {
111
- code: number;
112
- msg: string;
113
- }
114
- /**
115
- * Result with optional errors
116
- */
117
- export interface ResultWithErrors<T> {
118
- result?: T;
119
- errors?: ErrorInfo[];
120
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- /**
3
- * Domain Types - Electronic Billing
4
- * Types representing electronic billing domain concepts
5
- * These are business concepts, independent of infrastructure (SOAP, REST, etc.)
6
- */
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- //# sourceMappingURL=electronic-billing.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"electronic-billing.types.js","sourceRoot":"","sources":["../../../src/domain/types/electronic-billing.types.ts"],"names":[],"mappings":";AAAA;;;;GAIG"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Domain Types
3
- * Exports all domain-related types
4
- */
5
- export * from "./voucher.types";
6
- export * from "./electronic-billing.types";
@@ -1,23 +0,0 @@
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
- * Domain Types
19
- * Exports all domain-related types
20
- */
21
- __exportStar(require("./voucher.types"), exports);
22
- __exportStar(require("./electronic-billing.types"), exports);
23
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,kDAAgC;AAChC,6DAA2C"}
@@ -1,65 +0,0 @@
1
- /**
2
- * Domain Types - Voucher
3
- * Types related to voucher domain entity
4
- */
5
- export interface IVoucher {
6
- CantReg: number;
7
- PtoVta: number;
8
- CbteTipo: number;
9
- Concepto: number;
10
- DocTipo: number;
11
- DocNro: number;
12
- CbteDesde: number;
13
- CbteHasta: number;
14
- CbteFch: string;
15
- ImpTotal: number;
16
- ImpTotConc: number;
17
- ImpNeto: number;
18
- ImpOpEx: number;
19
- ImpIVA: number;
20
- ImpTrib: number;
21
- FchServDesde?: string;
22
- FchServHasta?: string;
23
- FchVtoPago?: string;
24
- MonId: string;
25
- MonCotiz: number;
26
- CanMisMonExt?: string;
27
- CondicionIVAReceptorId: number;
28
- CbtesAsoc?: ICbtesAsoc[];
29
- Tributos?: ITributo[];
30
- Iva?: IIva[];
31
- Opcionales?: IOpcional[];
32
- Compradores?: IComprador[];
33
- }
34
- export interface INextVoucher extends Omit<IVoucher, "CbteDesde" | "CbteHasta"> {
35
- CbteDesde?: number;
36
- CbteHasta?: number;
37
- }
38
- export interface ICbtesAsoc {
39
- Tipo: number;
40
- PtoVta: number;
41
- Nro: number;
42
- Cuit: string;
43
- CbteFch?: string;
44
- }
45
- export interface IComprador {
46
- DocTipo: number;
47
- DocNro: number;
48
- Porcentaje: number;
49
- }
50
- export interface IIva {
51
- Id: number;
52
- BaseImp: number;
53
- Importe: number;
54
- }
55
- export interface IOpcional {
56
- Id: string;
57
- Valor: string;
58
- }
59
- export interface ITributo {
60
- Id: number;
61
- Desc: string;
62
- BaseImp: number;
63
- Alic: number;
64
- Importe: number;
65
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=voucher.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"voucher.types.js","sourceRoot":"","sources":["../../../src/domain/types/voucher.types.ts"],"names":[],"mappings":""}
@@ -1,47 +0,0 @@
1
- /**
2
- * CAE Value Object
3
- * Represents a CAE (Código de Autorización Electrónico)
4
- * Immutable value object with validation
5
- */
6
- export declare class CAE {
7
- private readonly value;
8
- private constructor();
9
- /**
10
- * Factory method to create a CAE
11
- * @param value CAE as string
12
- * @returns CAE instance
13
- * @throws Error if CAE is invalid
14
- */
15
- static create(value: string): CAE;
16
- /**
17
- * Validates the CAE format
18
- * @throws Error if CAE is invalid
19
- */
20
- private validate;
21
- /**
22
- * Gets the CAE value as string
23
- */
24
- getValue(): string;
25
- /**
26
- * Gets the CAE value as string (alias for getValue)
27
- */
28
- toString(): string;
29
- /**
30
- * Formats CAE with dashes (XXXX-XXXX-XXXX-XX)
31
- */
32
- toFormattedString(): string;
33
- /**
34
- * Compares two CAEs for equality
35
- * @param other Other CAE to compare
36
- * @returns true if equal
37
- */
38
- equals(other: CAE): boolean;
39
- /**
40
- * Creates a copy of this CAE
41
- */
42
- clone(): CAE;
43
- /**
44
- * Checks if CAE is valid (not empty and has correct format)
45
- */
46
- isValid(): boolean;
47
- }
@@ -1,80 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CAE = void 0;
4
- /**
5
- * CAE Value Object
6
- * Represents a CAE (Código de Autorización Electrónico)
7
- * Immutable value object with validation
8
- */
9
- class CAE {
10
- constructor(value) {
11
- this.value = value;
12
- this.validate();
13
- }
14
- /**
15
- * Factory method to create a CAE
16
- * @param value CAE as string
17
- * @returns CAE instance
18
- * @throws Error if CAE is invalid
19
- */
20
- static create(value) {
21
- return new CAE(value);
22
- }
23
- /**
24
- * Validates the CAE format
25
- * @throws Error if CAE is invalid
26
- */
27
- validate() {
28
- if (!this.value || typeof this.value !== "string") {
29
- throw new Error("CAE debe ser una cadena de texto");
30
- }
31
- // CAE debe tener exactamente 14 dígitos
32
- if (!/^\d{14}$/.test(this.value)) {
33
- throw new Error(`CAE inválido: debe tener 14 dígitos, tiene "${this.value}"`);
34
- }
35
- // Validar que no sea todo ceros
36
- if (this.value === "00000000000000") {
37
- throw new Error("CAE inválido: no puede ser todo ceros");
38
- }
39
- }
40
- /**
41
- * Gets the CAE value as string
42
- */
43
- getValue() {
44
- return this.value;
45
- }
46
- /**
47
- * Gets the CAE value as string (alias for getValue)
48
- */
49
- toString() {
50
- return this.value;
51
- }
52
- /**
53
- * Formats CAE with dashes (XXXX-XXXX-XXXX-XX)
54
- */
55
- toFormattedString() {
56
- return `${this.value.substring(0, 4)}-${this.value.substring(4, 8)}-${this.value.substring(8, 12)}-${this.value.substring(12)}`;
57
- }
58
- /**
59
- * Compares two CAEs for equality
60
- * @param other Other CAE to compare
61
- * @returns true if equal
62
- */
63
- equals(other) {
64
- return this.value === other.value;
65
- }
66
- /**
67
- * Creates a copy of this CAE
68
- */
69
- clone() {
70
- return new CAE(this.value);
71
- }
72
- /**
73
- * Checks if CAE is valid (not empty and has correct format)
74
- */
75
- isValid() {
76
- return this.value.length === 14 && /^\d{14}$/.test(this.value);
77
- }
78
- }
79
- exports.CAE = CAE;
80
- //# sourceMappingURL=cae.vo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cae.vo.js","sourceRoot":"","sources":["../../../src/domain/value-objects/cae.vo.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,MAAa,GAAG;IACd,YAAqC,KAAa;QAAb,UAAK,GAAL,KAAK,CAAQ;QAChD,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,MAAM,CAAC,KAAa;QACzB,OAAO,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED;;;OAGG;IACK,QAAQ;QACd,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YAClD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;QACtD,CAAC;QAED,wCAAwC;QACxC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CACb,+CAA+C,IAAI,CAAC,KAAK,GAAG,CAC7D,CAAC;QACJ,CAAC;QAED,gCAAgC;QAChC,IAAI,IAAI,CAAC,KAAK,KAAK,gBAAgB,EAAE,CAAC;YACpC,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;QAC3D,CAAC;IACH,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;OAEG;IACH,QAAQ;QACN,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;OAEG;IACH,iBAAiB;QACf,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAC1D,CAAC,EACD,CAAC,CACF,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC,EAAE,CAAC;IACjE,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,KAAU;QACf,OAAO,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,KAAK,CAAC;IACpC,CAAC;IAED;;OAEG;IACH,KAAK;QACH,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAC7B,CAAC;IAED;;OAEG;IACH,OAAO;QACL,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,EAAE,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjE,CAAC;CACF;AAnFD,kBAmFC"}
@@ -1,49 +0,0 @@
1
- /**
2
- * CUIT Value Object
3
- * Represents a valid CUIT (Clave Única de Identificación Tributaria)
4
- * Immutable value object with validation
5
- */
6
- export declare class CUIT {
7
- private readonly value;
8
- private constructor();
9
- /**
10
- * Factory method to create a CUIT
11
- * @param value CUIT as number or string
12
- * @returns CUIT instance
13
- * @throws Error if CUIT is invalid
14
- */
15
- static create(value: number | string): CUIT;
16
- /**
17
- * Validates the CUIT format
18
- * @throws Error if CUIT is invalid
19
- */
20
- private validate;
21
- /**
22
- * Validates CUIT checksum (dígito verificador)
23
- * @param cuitStr CUIT as string
24
- * @returns true if checksum is valid
25
- */
26
- private isValidChecksum;
27
- /**
28
- * Gets the CUIT value as number
29
- */
30
- getValue(): number;
31
- /**
32
- * Gets the CUIT value as string
33
- */
34
- toString(): string;
35
- /**
36
- * Formats CUIT with dashes (XX-XXXXXXXX-X)
37
- */
38
- toFormattedString(): string;
39
- /**
40
- * Compares two CUITs for equality
41
- * @param other Other CUIT to compare
42
- * @returns true if equal
43
- */
44
- equals(other: CUIT): boolean;
45
- /**
46
- * Creates a copy of this CUIT
47
- */
48
- clone(): CUIT;
49
- }