arcli 1.2.0 → 1.4.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.
- package/CHANGELOG.md +79 -1
- package/README.md +4 -3
- package/dist/cli/commands/billing.command.batch.d.ts +22 -0
- package/dist/cli/commands/billing.command.batch.js +51 -0
- package/dist/cli/commands/billing.command.batch.js.map +1 -0
- package/dist/cli/commands/billing.command.options.js +1 -1
- package/dist/cli/commands/billing.command.options.js.map +1 -1
- package/dist/cli/commands/billing.command.parser.d.ts +7 -0
- package/dist/cli/commands/billing.command.parser.js +82 -11
- package/dist/cli/commands/billing.command.parser.js.map +1 -1
- package/dist/cli/commands/billing.command.shared.js +16 -13
- package/dist/cli/commands/billing.command.shared.js.map +1 -1
- package/dist/cli/commands/config.command.d.ts +5 -0
- package/dist/cli/commands/config.command.js +3 -3
- package/dist/cli/commands/config.command.js.map +1 -1
- package/dist/cli/commands/fce-obligation.command.js +2 -2
- package/dist/cli/commands/fce-obligation.command.js.map +1 -1
- package/dist/cli/commands/interactive.command.d.ts +3 -0
- package/dist/cli/commands/interactive.command.js +22 -0
- package/dist/cli/commands/interactive.command.js.map +1 -0
- package/dist/cli/commands/storybook.command.js +3 -2
- package/dist/cli/commands/storybook.command.js.map +1 -1
- package/dist/cli/commands/vouchers.command.d.ts +2 -0
- package/dist/cli/commands/vouchers.command.js +96 -0
- package/dist/cli/commands/vouchers.command.js.map +1 -0
- package/dist/cli/help.d.ts +1 -0
- package/dist/cli/help.js +23 -1
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/index.js +3 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/interactive/advanced-options.d.ts +14 -0
- package/dist/cli/interactive/advanced-options.js +126 -0
- package/dist/cli/interactive/advanced-options.js.map +1 -0
- package/dist/cli/interactive/history.flow.d.ts +2 -0
- package/dist/cli/interactive/history.flow.js +22 -0
- package/dist/cli/interactive/history.flow.js.map +1 -0
- package/dist/cli/interactive/interactive-mode.d.ts +3 -0
- package/dist/cli/interactive/interactive-mode.js +93 -0
- package/dist/cli/interactive/interactive-mode.js.map +1 -0
- package/dist/cli/interactive/invoice.flow.d.ts +22 -0
- package/dist/cli/interactive/invoice.flow.js +132 -0
- package/dist/cli/interactive/invoice.flow.js.map +1 -0
- package/dist/cli/interactive/note.flow.d.ts +26 -0
- package/dist/cli/interactive/note.flow.js +236 -0
- package/dist/cli/interactive/note.flow.js.map +1 -0
- package/dist/cli/interactive/prompts.d.ts +21 -0
- package/dist/cli/interactive/prompts.js +46 -0
- package/dist/cli/interactive/prompts.js.map +1 -0
- package/dist/cli/interactive/session.d.ts +22 -0
- package/dist/cli/interactive/session.js +88 -0
- package/dist/cli/interactive/session.js.map +1 -0
- package/dist/cli/interactive/validators.d.ts +9 -0
- package/dist/cli/interactive/validators.js +35 -0
- package/dist/cli/interactive/validators.js.map +1 -0
- package/dist/cli/program.js +4 -0
- package/dist/cli/program.js.map +1 -1
- package/dist/cli/spinner.d.ts +8 -0
- package/dist/cli/spinner.js +14 -0
- package/dist/cli/spinner.js.map +1 -0
- package/dist/cli/version.d.ts +1 -1
- package/dist/cli/version.js +1 -1
- package/dist/modules/billing/billing.amounts.d.ts +1 -1
- package/dist/modules/billing/billing.amounts.js +34 -13
- package/dist/modules/billing/billing.amounts.js.map +1 -1
- package/dist/modules/billing/billing.batch.d.ts +23 -0
- package/dist/modules/billing/billing.batch.js +43 -0
- package/dist/modules/billing/billing.batch.js.map +1 -0
- package/dist/modules/billing/billing.display.js +16 -7
- package/dist/modules/billing/billing.display.js.map +1 -1
- package/dist/modules/billing/billing.iva-receptor.d.ts +1 -0
- package/dist/modules/billing/billing.iva-receptor.js +3 -0
- package/dist/modules/billing/billing.iva-receptor.js.map +1 -1
- package/dist/modules/billing/billing.schemas.d.ts +35 -4
- package/dist/modules/billing/billing.schemas.js +26 -6
- package/dist/modules/billing/billing.schemas.js.map +1 -1
- package/dist/modules/billing/billing.text.js +10 -6
- package/dist/modules/billing/billing.text.js.map +1 -1
- package/dist/modules/config/config-value-parser.js +2 -1
- package/dist/modules/config/config-value-parser.js.map +1 -1
- package/dist/modules/config/config.presenter.js +2 -2
- package/dist/modules/config/config.presenter.js.map +1 -1
- package/dist/modules/config/config.schemas.d.ts +2 -2
- package/dist/modules/examples/examples.js +2 -13
- package/dist/modules/examples/examples.js.map +1 -1
- package/dist/modules/fce/fce-obligation.presenter.js +1 -1
- package/dist/modules/fce/fce-obligation.presenter.js.map +1 -1
- package/dist/modules/interactive/amount-input.d.ts +6 -0
- package/dist/modules/interactive/amount-input.js +29 -0
- package/dist/modules/interactive/amount-input.js.map +1 -0
- package/dist/modules/interactive/choices.d.ts +13 -0
- package/dist/modules/interactive/choices.js +56 -0
- package/dist/modules/interactive/choices.js.map +1 -0
- package/dist/modules/interactive/equivalent-command.d.ts +8 -0
- package/dist/modules/interactive/equivalent-command.js +98 -0
- package/dist/modules/interactive/equivalent-command.js.map +1 -0
- package/dist/modules/interactive/wizard.d.ts +16 -0
- package/dist/modules/interactive/wizard.js +33 -0
- package/dist/modules/interactive/wizard.js.map +1 -0
- package/dist/modules/storybook/showcase.d.ts +1 -1
- package/dist/modules/storybook/showcase.js +50 -6
- package/dist/modules/storybook/showcase.js.map +1 -1
- package/dist/modules/update-check/update-check.presenter.js +1 -1
- package/dist/modules/update-check/update-check.presenter.js.map +1 -1
- package/dist/modules/vouchers/voucher-history.d.ts +34 -0
- package/dist/modules/vouchers/voucher-history.js +43 -0
- package/dist/modules/vouchers/voucher-history.js.map +1 -0
- package/dist/modules/vouchers/voucher-history.presenter.d.ts +22 -0
- package/dist/modules/vouchers/voucher-history.presenter.js +108 -0
- package/dist/modules/vouchers/voucher-history.presenter.js.map +1 -0
- package/dist/services/arca/arca-voucher-history.gateway.d.ts +8 -0
- package/dist/services/arca/arca-voucher-history.gateway.js +36 -0
- package/dist/services/arca/arca-voucher-history.gateway.js.map +1 -0
- package/dist/ui/components/contentPanel.d.ts +2 -2
- package/dist/ui/components/contentPanel.js +2 -1
- package/dist/ui/components/contentPanel.js.map +1 -1
- package/dist/ui/components/errorPanel.js +3 -3
- package/dist/ui/components/errorPanel.js.map +1 -1
- package/dist/ui/components/index.d.ts +3 -0
- package/dist/ui/components/index.js +3 -0
- package/dist/ui/components/index.js.map +1 -1
- package/dist/ui/components/keyValuePanel.d.ts +2 -2
- package/dist/ui/components/keyValuePanel.js +2 -1
- package/dist/ui/components/keyValuePanel.js.map +1 -1
- package/dist/ui/components/rawPanel.js +1 -1
- package/dist/ui/components/rawPanel.js.map +1 -1
- package/dist/ui/components/sectionHeading.d.ts +3 -0
- package/dist/ui/components/sectionHeading.js +13 -0
- package/dist/ui/components/sectionHeading.js.map +1 -0
- package/dist/ui/components/statusBar.d.ts +6 -0
- package/dist/ui/components/statusBar.js +24 -0
- package/dist/ui/components/statusBar.js.map +1 -0
- package/dist/ui/components/statusPanel.d.ts +2 -2
- package/dist/ui/components/statusPanel.js +2 -1
- package/dist/ui/components/statusPanel.js.map +1 -1
- package/dist/ui/components/testingBanner.d.ts +2 -0
- package/dist/ui/components/testingBanner.js +6 -0
- package/dist/ui/components/testingBanner.js.map +1 -0
- package/dist/ui/presenters/errors.presenter.js +11 -1
- package/dist/ui/presenters/errors.presenter.js.map +1 -1
- package/dist/ui/presenters/errors.zod-presenter.d.ts +2 -0
- package/dist/ui/presenters/errors.zod-presenter.js +4 -0
- package/dist/ui/presenters/errors.zod-presenter.js.map +1 -1
- package/dist/ui/presenters/index.d.ts +1 -0
- package/dist/ui/presenters/index.js +1 -0
- package/dist/ui/presenters/index.js.map +1 -1
- package/dist/ui/primitives/renderLogo.js +5 -0
- package/dist/ui/primitives/renderLogo.js.map +1 -1
- package/dist/ui/primitives/renderPanel.d.ts +3 -1
- package/dist/ui/primitives/renderPanel.js +68 -21
- package/dist/ui/primitives/renderPanel.js.map +1 -1
- package/dist/ui/primitives/terminalWidth.d.ts +4 -0
- package/dist/ui/primitives/terminalWidth.js +11 -0
- package/dist/ui/primitives/terminalWidth.js.map +1 -0
- package/dist/ui/primitives/text.d.ts +10 -0
- package/dist/ui/primitives/text.js +101 -30
- package/dist/ui/primitives/text.js.map +1 -1
- package/dist/ui/theme/theme.d.ts +45 -4
- package/dist/ui/theme/theme.js +183 -5
- package/dist/ui/theme/theme.js.map +1 -1
- package/llms.txt +15 -2
- package/package.json +15 -13
package/dist/ui/theme/theme.js
CHANGED
|
@@ -1,17 +1,195 @@
|
|
|
1
1
|
export const UI_THEME = {
|
|
2
2
|
badgeBrackets: ['[', ']'],
|
|
3
|
+
asciiBorderStyle: {
|
|
4
|
+
box: {
|
|
5
|
+
bottom: '-',
|
|
6
|
+
bottomLeft: '+',
|
|
7
|
+
bottomRight: '+',
|
|
8
|
+
left: '|',
|
|
9
|
+
right: '|',
|
|
10
|
+
top: '-',
|
|
11
|
+
topLeft: '+',
|
|
12
|
+
topRight: '+',
|
|
13
|
+
},
|
|
14
|
+
junction: ['+', '-', '+'],
|
|
15
|
+
},
|
|
3
16
|
borderStyles: {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
17
|
+
attention: {
|
|
18
|
+
box: {
|
|
19
|
+
bottom: '─',
|
|
20
|
+
bottomLeft: '╰',
|
|
21
|
+
bottomRight: '╯',
|
|
22
|
+
left: '╏',
|
|
23
|
+
right: '│',
|
|
24
|
+
top: '─',
|
|
25
|
+
topLeft: '╭',
|
|
26
|
+
topRight: '╮',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
checklist: {
|
|
30
|
+
box: {
|
|
31
|
+
bottom: '─',
|
|
32
|
+
bottomLeft: '╙',
|
|
33
|
+
bottomRight: '╜',
|
|
34
|
+
left: '║',
|
|
35
|
+
right: '║',
|
|
36
|
+
top: '─',
|
|
37
|
+
topLeft: '╓',
|
|
38
|
+
topRight: '╖',
|
|
39
|
+
},
|
|
40
|
+
junction: ['╟', '─', '╢'],
|
|
41
|
+
},
|
|
42
|
+
common: {
|
|
43
|
+
box: {
|
|
44
|
+
bottom: '═',
|
|
45
|
+
bottomLeft: '╘',
|
|
46
|
+
bottomRight: '╛',
|
|
47
|
+
left: '│',
|
|
48
|
+
right: '│',
|
|
49
|
+
top: '═',
|
|
50
|
+
topLeft: '╒',
|
|
51
|
+
topRight: '╕',
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
data: {
|
|
55
|
+
box: {
|
|
56
|
+
bottom: '┈',
|
|
57
|
+
bottomLeft: '└',
|
|
58
|
+
bottomRight: '┘',
|
|
59
|
+
left: '┊',
|
|
60
|
+
right: '┊',
|
|
61
|
+
top: '┈',
|
|
62
|
+
topLeft: '┌',
|
|
63
|
+
topRight: '┐',
|
|
64
|
+
},
|
|
65
|
+
junction: ['├', '┈', '┤'],
|
|
66
|
+
},
|
|
67
|
+
debug: {
|
|
68
|
+
box: {
|
|
69
|
+
bottom: '─',
|
|
70
|
+
bottomLeft: '└',
|
|
71
|
+
bottomRight: '┘',
|
|
72
|
+
left: '│',
|
|
73
|
+
right: '│',
|
|
74
|
+
top: '─',
|
|
75
|
+
topLeft: '┌',
|
|
76
|
+
topRight: '┐',
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
error: {
|
|
80
|
+
box: {
|
|
81
|
+
bottom: '─',
|
|
82
|
+
bottomLeft: '╰',
|
|
83
|
+
bottomRight: '╯',
|
|
84
|
+
left: '┃',
|
|
85
|
+
right: '│',
|
|
86
|
+
top: '─',
|
|
87
|
+
topLeft: '╭',
|
|
88
|
+
topRight: '╮',
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
info: {
|
|
92
|
+
box: {
|
|
93
|
+
bottom: '─',
|
|
94
|
+
bottomLeft: '╰',
|
|
95
|
+
bottomRight: '╯',
|
|
96
|
+
left: '│',
|
|
97
|
+
right: '│',
|
|
98
|
+
top: '─',
|
|
99
|
+
topLeft: '╭',
|
|
100
|
+
topRight: '╮',
|
|
101
|
+
},
|
|
102
|
+
junction: ['├', '─', '┤'],
|
|
103
|
+
},
|
|
104
|
+
listing: {
|
|
105
|
+
box: {
|
|
106
|
+
bottom: '═',
|
|
107
|
+
bottomLeft: '═',
|
|
108
|
+
bottomRight: '═',
|
|
109
|
+
left: ' ',
|
|
110
|
+
right: ' ',
|
|
111
|
+
top: '═',
|
|
112
|
+
topLeft: '═',
|
|
113
|
+
topRight: '═',
|
|
114
|
+
},
|
|
115
|
+
titleAlignment: 'left',
|
|
116
|
+
},
|
|
117
|
+
note: {
|
|
118
|
+
box: {
|
|
119
|
+
bottom: ' ',
|
|
120
|
+
bottomLeft: '└',
|
|
121
|
+
bottomRight: '┘',
|
|
122
|
+
left: ' ',
|
|
123
|
+
right: ' ',
|
|
124
|
+
top: ' ',
|
|
125
|
+
topLeft: '┌',
|
|
126
|
+
topRight: '┐',
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
sheet: {
|
|
130
|
+
box: {
|
|
131
|
+
bottom: '─',
|
|
132
|
+
bottomLeft: '└',
|
|
133
|
+
bottomRight: '┘',
|
|
134
|
+
left: '│',
|
|
135
|
+
right: '│',
|
|
136
|
+
top: '─',
|
|
137
|
+
topLeft: '┌',
|
|
138
|
+
topRight: '┐',
|
|
139
|
+
},
|
|
140
|
+
junction: ['├', '─', '┤'],
|
|
141
|
+
titleAlignment: 'left',
|
|
142
|
+
},
|
|
143
|
+
ticket: {
|
|
144
|
+
box: {
|
|
145
|
+
bottom: '═',
|
|
146
|
+
bottomLeft: '╘',
|
|
147
|
+
bottomRight: '╛',
|
|
148
|
+
left: '│',
|
|
149
|
+
right: '│',
|
|
150
|
+
top: '═',
|
|
151
|
+
topLeft: '╒',
|
|
152
|
+
topRight: '╕',
|
|
153
|
+
},
|
|
154
|
+
junction: ['├', '┄', '┤'],
|
|
155
|
+
},
|
|
156
|
+
tip: {
|
|
157
|
+
box: {
|
|
158
|
+
bottom: '─',
|
|
159
|
+
bottomLeft: '╰',
|
|
160
|
+
bottomRight: '╯',
|
|
161
|
+
left: '┆',
|
|
162
|
+
right: '│',
|
|
163
|
+
top: '─',
|
|
164
|
+
topLeft: '╭',
|
|
165
|
+
topRight: '╮',
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
warning: {
|
|
169
|
+
box: {
|
|
170
|
+
bottom: '╌',
|
|
171
|
+
bottomLeft: '└',
|
|
172
|
+
bottomRight: '┘',
|
|
173
|
+
left: '╎',
|
|
174
|
+
right: '╎',
|
|
175
|
+
top: '╌',
|
|
176
|
+
topLeft: '┌',
|
|
177
|
+
topRight: '┐',
|
|
178
|
+
},
|
|
179
|
+
junction: ['├', '╌', '┤'],
|
|
180
|
+
},
|
|
8
181
|
},
|
|
182
|
+
commandBar: { ascii: '| ', unicode: '▎ ' },
|
|
9
183
|
colors: {
|
|
10
184
|
danger: '\u001B[31m',
|
|
11
185
|
debug: '\u001B[95m',
|
|
12
186
|
info: '\u001B[36m',
|
|
13
187
|
muted: '\u001B[2m',
|
|
14
|
-
|
|
188
|
+
// Color por defecto de la terminal: claro en fondos oscuros y oscuro en fondos claros.
|
|
189
|
+
// Un blanco fijo (\u001B[37m) casi no se leia en terminales con fondo claro.
|
|
190
|
+
neutral: '\u001B[39m',
|
|
191
|
+
// Gris (bright black): para titulos de datos crudos, que tienen que verse pero sin competir.
|
|
192
|
+
subtle: '\u001B[90m',
|
|
15
193
|
success: '\u001B[32m',
|
|
16
194
|
warning: '\u001B[33m',
|
|
17
195
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/ui/theme/theme.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/ui/theme/theme.ts"],"names":[],"mappings":"AAmFA,MAAM,CAAC,MAAM,QAAQ,GAAY;IAC/B,aAAa,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;IACzB,gBAAgB,EAAE;QAChB,GAAG,EAAE;YACH,MAAM,EAAE,GAAG;YACX,UAAU,EAAE,GAAG;YACf,WAAW,EAAE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,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;SAC1B;KACF;IACD,UAAU,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE;IAC1C,MAAM,EAAE;QACN,MAAM,EAAE,YAAY;QACpB,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,YAAY;QAClB,KAAK,EAAE,WAAW;QAClB,uFAAuF;QACvF,6EAA6E;QAC7E,OAAO,EAAE,YAAY;QACrB,6FAA6F;QAC7F,MAAM,EAAE,YAAY;QACpB,OAAO,EAAE,YAAY;QACrB,OAAO,EAAE,YAAY;KACtB;IACD,mBAAmB,EAAE,EAAE;IACvB,OAAO,EAAE;QACP,IAAI,EAAE;YACJ,KAAK,EAAE,CAAC;YACR,OAAO,EAAE,CAAC;SACX;QACD,YAAY,EAAE;YACZ,GAAG,EAAE,CAAC;YACN,KAAK,EAAE,CAAC;YACR,MAAM,EAAE,CAAC;YACT,IAAI,EAAE,CAAC;SACR;KACF;IACD,KAAK,EAAE;QACL,GAAG,EAAE,CAAC;QACN,UAAU,EAAE,EAAE;KACf;IACD,MAAM,EAAE;QACN,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;QAC7B,QAAQ,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE;QAC/B,IAAI,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE;KAC5B;CACF,CAAC"}
|
package/llms.txt
CHANGED
|
@@ -23,6 +23,14 @@ Sin `cuit`, `cert.<entorno>`, `key.<entorno>` y `puntoVenta` configurados (o pas
|
|
|
23
23
|
flag), cualquier comando de facturación falla con `ConfigurationError` antes de contactar
|
|
24
24
|
ARCA. `--testing` es el entorno por defecto; `--produccion` cambia a real.
|
|
25
25
|
|
|
26
|
+
## Salida humana
|
|
27
|
+
|
|
28
|
+
Con la salida redirigida (pipe o archivo) no hay colores, así que `--json` se puede pasar directo a `jq`. `NO_COLOR` desactiva los colores, `FORCE_COLOR=1` los fuerza y `ARCLI_ASCII=1` dibuja los paneles en ASCII puro. Ninguna cambia el contenido de `--json`; para parsear, usar siempre `--json`.
|
|
29
|
+
|
|
30
|
+
## Modo interactivo (no usar desde un agente)
|
|
31
|
+
|
|
32
|
+
`arcli` sin argumentos en una TTY abre un asistente con prompts (`arcli interactivo` lo abre explícito). Sin TTY o con `--json`, `arcli` sin argumentos muestra la ayuda y `arcli interactivo` falla. Un agente siempre tiene que usar los comandos con flags de abajo.
|
|
33
|
+
|
|
26
34
|
## Comandos de facturación (shortcut de 2-4 letras)
|
|
27
35
|
|
|
28
36
|
```
|
|
@@ -47,7 +55,7 @@ Shortcuts (`family` = comando alternativo `arcli <family> <letra>`, ej. `arcli f
|
|
|
47
55
|
- IVA receptor: `--iva-receptor <tipo>` / `--ir <tipo>` (alias) o un atajo `--ir-ce|--ir-cf|--ir-il|--ir-ina|--ir-ms|--ir-mtip|--ir-pe|--ir-ri|--ir-rm|--ir-se|--ir-snc`. Usar exactamente una forma.
|
|
48
56
|
Valores válidos: `cliente-del-exterior`, `consumidor-final`, `iva-liberado`, `iva-no-alcanzado`, `monotributista-social`, `monotributo-trabajador-independiente-promovido`, `proveedor-del-exterior`, `responsable-inscripto`, `responsable-monotributo`, `sujeto-exento`, `sujeto-no-categorizado`.
|
|
49
57
|
El IVA receptor tiene que ser válido para la letra: `A` solo admite `responsable-inscripto`, `responsable-monotributo`, `monotributista-social` y `monotributo-trabajador-independiente-promovido`; `B` admite el resto; `C` admite todos. Letras `A` y `B` siempre discriminan IVA al 21%.
|
|
50
|
-
- IVA (solo letras A y B): `--alicuota 0|2.5|5|10.5|21|27` (default `config.alicuota` o 21; la config no aplica a C), `--exento <monto>` y `--nogravado <monto>` (sin guion). `--monto` es siempre el total; exento y no gravado se descuentan y el IVA se calcula sobre el resto. En letra C esos flags dan error.
|
|
58
|
+
- IVA (solo letras A y B): `--alicuota general|reducida|incrementada|cero` o el número `0|2.5|5|10.5|21|27` (default `config.alicuota` o 21; la config no aplica a C). Varias alícuotas: repetir `--alicuota TASA:MONTO` con el monto IVA incluido de cada una (`--alicuota general:1210 --alicuota reducida:552.50`); `--monto` pasa a ser opcional y, si se pasa, tiene que coincidir con la suma. En JSON: `alicuotas: [{tasa, monto}]`. Además, `--exento <monto>` y `--nogravado <monto>` (sin guion). `--monto` es siempre el total; exento y no gravado se descuentan y el IVA se calcula sobre el resto. En letra C esos flags dan error.
|
|
51
59
|
- Identidad del receptor: `--cuit <n>` / `--cuil <n>` / `--dni <n>` / `--consumidor-final` (alias `--cfinal`, documento 0). Usar como máximo una. Desde $10.000.000 (total × cotización) no se puede usar `--consumidor-final`: identificar con `--dni`/`--cuit`/`--cuil` y `--ir-cf`.
|
|
52
60
|
- Punto de venta: `--punto-venta <n>` (alias `--pv`). Si no se pasa, usa el default de config.
|
|
53
61
|
- Moneda: `--moneda <codigo>` (alias `--mda`, ej. `ARS`/`USD`; `USD` se envía como `DOL`) y `--cotizacion-moneda <n>` (alias `--cm`). En moneda extranjera la cotización es obligatoria y no puede ser 1; si el pago es en la misma moneda extranjera, usar `--misma-moneda` en lugar de `--cm` (consulta la cotización oficial a ARCA). En pesos no pasar cotización distinta de 1.
|
|
@@ -124,7 +132,10 @@ JSON, nunca alcanza con chequear el exit code.
|
|
|
124
132
|
Sin `--json`: panel de texto en stderr. Con `--json`: JSON en stderr con la forma
|
|
125
133
|
`{"codigo": "...", "detalles": {...} | null, "error": "mensaje", "sugerencia": "..." | null}`.
|
|
126
134
|
`codigo` es `CONFIGURATION_ERROR`, `INPUT_VALIDATION_ERROR`, `TRANSIENT_ERROR` (reintentar,
|
|
127
|
-
suele ser "transacción activa" de ARCA)
|
|
135
|
+
suele ser "transacción activa" de ARCA), `UNEXPECTED_ERROR`, `VOUCHER_NOT_FOUND` (`consultar`), o en un lote
|
|
136
|
+
(`--cargar` con un array) `BATCH_VALIDATION_ERROR` (no se emitió ninguno; `detalles.comprobantes` lista cada
|
|
137
|
+
`{indice, error}`) y `BATCH_EMISSION_ERROR` (se cortó a mitad: los resultados ya procesados salen antes por
|
|
138
|
+
stdout; reintentar solo `detalles.sinProcesar`, nunca los ya emitidos). El proceso termina con
|
|
128
139
|
exit code `1` en cualquier error.
|
|
129
140
|
|
|
130
141
|
## Comando `config`
|
|
@@ -147,6 +158,8 @@ ticket WSAA; por defecto una carpeta junto al archivo de config).
|
|
|
147
158
|
|
|
148
159
|
## Otros comandos
|
|
149
160
|
|
|
161
|
+
- `arcli ultimos <tipo> [--cantidad N] [--pv N] [--json]`: últimos comprobantes emitidos (de 1 a 50, por defecto 10), del más nuevo al más viejo. `tipo` es el atajo (`fb`, `nca`…).
|
|
162
|
+
- `arcli consultar <tipo> <numero> [--pv N] [--json]`: detalle de un comprobante emitido (CAE, vencimiento, importes, receptor). Si no existe, el error es `VOUCHER_NOT_FOUND`. Sirve para verificar después de emitir.
|
|
150
163
|
- `arcli ejemplos`: comandos listos para copiar por cada tipo de comprobante.
|
|
151
164
|
- `arcli storybook [escena]`: demos visuales de la UI (sin llamar a ARCA).
|
|
152
165
|
- `arcli <cualquier comando> ayuda` o `--ayuda`: ayuda contextual con ejemplos (nota: el flag
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "arcli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "CLI para previsualizar y emitir comprobantes ARCA desde terminal, con validaciones claras y salida lista para automatizar",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arca",
|
|
@@ -72,34 +72,36 @@
|
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
74
|
"@arcasdk/core": "2.0.2",
|
|
75
|
-
"@inquirer/
|
|
75
|
+
"@inquirer/input": "5.1.6",
|
|
76
|
+
"@inquirer/select": "5.2.5",
|
|
76
77
|
"big.js": "7.0.1",
|
|
77
|
-
"boxen": "
|
|
78
|
+
"boxen": "9.0.0",
|
|
78
79
|
"commander": "15.0.0",
|
|
79
80
|
"conf": "15.1.0",
|
|
80
81
|
"ora": "9.4.1",
|
|
81
|
-
"zod": "4.
|
|
82
|
+
"zod": "4.6.5"
|
|
82
83
|
},
|
|
83
84
|
"devDependencies": {
|
|
84
85
|
"@eslint/js": "10.0.1",
|
|
85
|
-
"@eslint/json": "2.0
|
|
86
|
+
"@eslint/json": "2.1.0",
|
|
86
87
|
"@types/big.js": "7.0.0",
|
|
87
88
|
"@types/node": "22.20.1",
|
|
88
|
-
"@typescript-eslint/parser": "8.
|
|
89
|
-
"@vitest/coverage-v8": "
|
|
90
|
-
"eslint": "10.
|
|
89
|
+
"@typescript-eslint/parser": "8.71.0",
|
|
90
|
+
"@vitest/coverage-v8": "5.0.3",
|
|
91
|
+
"eslint": "10.11.0",
|
|
91
92
|
"eslint-config-prettier": "10.1.8",
|
|
92
93
|
"eslint-plugin-jsonc": "3.4.2",
|
|
93
94
|
"eslint-plugin-prettier": "5.5.6",
|
|
94
95
|
"eslint-plugin-simple-import-sort": "14.0.0",
|
|
95
96
|
"husky": "9.1.7",
|
|
96
|
-
"lint-staged": "17.
|
|
97
|
-
"prettier": "3.9.
|
|
97
|
+
"lint-staged": "17.6.0",
|
|
98
|
+
"prettier": "3.9.9",
|
|
98
99
|
"tsc-files": "1.1.4",
|
|
99
|
-
"tsx": "4.23.
|
|
100
|
+
"tsx": "4.23.15",
|
|
100
101
|
"typescript": "6.0.3",
|
|
101
|
-
"typescript-eslint": "8.
|
|
102
|
-
"
|
|
102
|
+
"typescript-eslint": "8.71.0",
|
|
103
|
+
"vite": "8.3.2",
|
|
104
|
+
"vitest": "5.0.3"
|
|
103
105
|
},
|
|
104
106
|
"engines": {
|
|
105
107
|
"node": ">=22.22.1"
|