@bolta-io/cli 0.0.13 → 0.0.15

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 (69) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/CLAUDE.md +17 -13
  3. package/README.md +25 -15
  4. package/dist/bin/bolta.js +28 -4
  5. package/dist/bin/bolta.js.map +1 -1
  6. package/dist/src/client/bolta-client.d.ts +18 -13
  7. package/dist/src/client/bolta-client.d.ts.map +1 -1
  8. package/dist/src/client/bolta-client.js +43 -22
  9. package/dist/src/client/bolta-client.js.map +1 -1
  10. package/dist/src/commands/certificate/index.d.ts.map +1 -1
  11. package/dist/src/commands/certificate/index.js +24 -15
  12. package/dist/src/commands/certificate/index.js.map +1 -1
  13. package/dist/src/commands/config/index.d.ts.map +1 -1
  14. package/dist/src/commands/config/index.js +32 -11
  15. package/dist/src/commands/config/index.js.map +1 -1
  16. package/dist/src/commands/examples/index.d.ts.map +1 -1
  17. package/dist/src/commands/examples/index.js +58 -5
  18. package/dist/src/commands/examples/index.js.map +1 -1
  19. package/dist/src/commands/guide/index.d.ts.map +1 -1
  20. package/dist/src/commands/guide/index.js +22 -20
  21. package/dist/src/commands/guide/index.js.map +1 -1
  22. package/dist/src/commands/invoice/amend.js +10 -10
  23. package/dist/src/commands/invoice/amend.js.map +1 -1
  24. package/dist/src/commands/invoice/index.d.ts.map +1 -1
  25. package/dist/src/commands/invoice/index.js +8 -1
  26. package/dist/src/commands/invoice/index.js.map +1 -1
  27. package/dist/src/commands/invoice/issue-request.js +6 -6
  28. package/dist/src/commands/invoice/issue-request.js.map +1 -1
  29. package/dist/src/commands/invoice/issue.js +4 -4
  30. package/dist/src/commands/invoice/issue.js.map +1 -1
  31. package/dist/src/commands/schema/index.d.ts.map +1 -1
  32. package/dist/src/commands/schema/index.js +4 -2
  33. package/dist/src/commands/schema/index.js.map +1 -1
  34. package/dist/src/commands/{customer → supplier}/create.d.ts +1 -1
  35. package/dist/src/commands/{customer → supplier}/create.d.ts.map +1 -1
  36. package/dist/src/commands/{customer → supplier}/create.js +6 -6
  37. package/dist/src/commands/{customer → supplier}/create.js.map +1 -1
  38. package/dist/src/commands/{customer → supplier}/get.d.ts +1 -1
  39. package/dist/src/commands/{customer → supplier}/get.d.ts.map +1 -1
  40. package/dist/src/commands/{customer → supplier}/get.js +2 -2
  41. package/dist/src/commands/{customer → supplier}/get.js.map +1 -1
  42. package/dist/src/commands/supplier/index.d.ts +3 -0
  43. package/dist/src/commands/supplier/index.d.ts.map +1 -0
  44. package/dist/src/commands/supplier/index.js +56 -0
  45. package/dist/src/commands/supplier/index.js.map +1 -0
  46. package/dist/src/commands/supplier/legacy-customer.d.ts +5 -0
  47. package/dist/src/commands/supplier/legacy-customer.d.ts.map +1 -0
  48. package/dist/src/commands/supplier/legacy-customer.js +56 -0
  49. package/dist/src/commands/supplier/legacy-customer.js.map +1 -0
  50. package/dist/src/config/config-manager.d.ts +1 -1
  51. package/dist/src/config/config-manager.d.ts.map +1 -1
  52. package/dist/src/config/config-manager.js +23 -2
  53. package/dist/src/config/config-manager.js.map +1 -1
  54. package/dist/src/types/api.d.ts +38 -20
  55. package/dist/src/types/api.d.ts.map +1 -1
  56. package/dist/src/utils/output.d.ts +10 -0
  57. package/dist/src/utils/output.d.ts.map +1 -1
  58. package/dist/src/utils/output.js +23 -0
  59. package/dist/src/utils/output.js.map +1 -1
  60. package/dist/src/validators/schemas.d.ts +560 -179
  61. package/dist/src/validators/schemas.d.ts.map +1 -1
  62. package/dist/src/validators/schemas.js +156 -53
  63. package/dist/src/validators/schemas.js.map +1 -1
  64. package/llms.txt +33 -27
  65. package/package.json +6 -1
  66. package/dist/src/commands/customer/index.d.ts +0 -3
  67. package/dist/src/commands/customer/index.d.ts.map +0 -1
  68. package/dist/src/commands/customer/index.js +0 -29
  69. package/dist/src/commands/customer/index.js.map +0 -1
@@ -1,37 +1,37 @@
1
1
  import { z } from 'zod';
2
2
  export declare const managerSchema: z.ZodObject<{
3
3
  email: z.ZodString;
4
- name: z.ZodOptional<z.ZodString>;
5
- telephone: z.ZodOptional<z.ZodString>;
4
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
+ telephone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
6
  }, "strip", z.ZodTypeAny, {
7
7
  email: string;
8
- name?: string | undefined;
9
- telephone?: string | undefined;
8
+ name?: string | null | undefined;
9
+ telephone?: string | null | undefined;
10
10
  }, {
11
11
  email: string;
12
- name?: string | undefined;
13
- telephone?: string | undefined;
12
+ name?: string | null | undefined;
13
+ telephone?: string | null | undefined;
14
14
  }>;
15
15
  export declare const taxInvoiceSupplierSchema: z.ZodObject<{
16
16
  identificationNumber: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>;
17
17
  organizationName: z.ZodString;
18
18
  representativeName: z.ZodString;
19
- address: z.ZodOptional<z.ZodString>;
20
- businessType: z.ZodOptional<z.ZodString>;
21
- businessItem: z.ZodOptional<z.ZodString>;
22
- taxRegistrationId: z.ZodOptional<z.ZodString>;
19
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ businessType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ businessItem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ taxRegistrationId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
23
23
  manager: z.ZodObject<{
24
24
  email: z.ZodString;
25
- name: z.ZodOptional<z.ZodString>;
26
- telephone: z.ZodOptional<z.ZodString>;
25
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ telephone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  email: string;
29
- name?: string | undefined;
30
- telephone?: string | undefined;
29
+ name?: string | null | undefined;
30
+ telephone?: string | null | undefined;
31
31
  }, {
32
32
  email: string;
33
- name?: string | undefined;
34
- telephone?: string | undefined;
33
+ name?: string | null | undefined;
34
+ telephone?: string | null | undefined;
35
35
  }>;
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  identificationNumber: string;
@@ -39,47 +39,47 @@ export declare const taxInvoiceSupplierSchema: z.ZodObject<{
39
39
  representativeName: string;
40
40
  manager: {
41
41
  email: string;
42
- name?: string | undefined;
43
- telephone?: string | undefined;
42
+ name?: string | null | undefined;
43
+ telephone?: string | null | undefined;
44
44
  };
45
- address?: string | undefined;
46
- businessType?: string | undefined;
47
- businessItem?: string | undefined;
48
- taxRegistrationId?: string | undefined;
45
+ address?: string | null | undefined;
46
+ businessType?: string | null | undefined;
47
+ businessItem?: string | null | undefined;
48
+ taxRegistrationId?: string | null | undefined;
49
49
  }, {
50
50
  identificationNumber: string;
51
51
  organizationName: string;
52
52
  representativeName: string;
53
53
  manager: {
54
54
  email: string;
55
- name?: string | undefined;
56
- telephone?: string | undefined;
55
+ name?: string | null | undefined;
56
+ telephone?: string | null | undefined;
57
57
  };
58
- address?: string | undefined;
59
- businessType?: string | undefined;
60
- businessItem?: string | undefined;
61
- taxRegistrationId?: string | undefined;
58
+ address?: string | null | undefined;
59
+ businessType?: string | null | undefined;
60
+ businessItem?: string | null | undefined;
61
+ taxRegistrationId?: string | null | undefined;
62
62
  }>;
63
63
  export declare const taxInvoiceSuppliedSchema: z.ZodObject<{
64
- identificationNumber: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>;
64
+ identificationNumber: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>;
65
65
  organizationName: z.ZodString;
66
66
  representativeName: z.ZodString;
67
- address: z.ZodOptional<z.ZodString>;
68
- businessType: z.ZodOptional<z.ZodString>;
69
- businessItem: z.ZodOptional<z.ZodString>;
70
- taxRegistrationId: z.ZodOptional<z.ZodString>;
67
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ businessType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ businessItem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
+ taxRegistrationId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
71
71
  managers: z.ZodArray<z.ZodObject<{
72
72
  email: z.ZodString;
73
- name: z.ZodOptional<z.ZodString>;
74
- telephone: z.ZodOptional<z.ZodString>;
73
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
74
+ telephone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
75
75
  }, "strip", z.ZodTypeAny, {
76
76
  email: string;
77
- name?: string | undefined;
78
- telephone?: string | undefined;
77
+ name?: string | null | undefined;
78
+ telephone?: string | null | undefined;
79
79
  }, {
80
80
  email: string;
81
- name?: string | undefined;
82
- telephone?: string | undefined;
81
+ name?: string | null | undefined;
82
+ telephone?: string | null | undefined;
83
83
  }>, "many">;
84
84
  }, "strip", z.ZodTypeAny, {
85
85
  identificationNumber: string;
@@ -87,78 +87,78 @@ export declare const taxInvoiceSuppliedSchema: z.ZodObject<{
87
87
  representativeName: string;
88
88
  managers: {
89
89
  email: string;
90
- name?: string | undefined;
91
- telephone?: string | undefined;
90
+ name?: string | null | undefined;
91
+ telephone?: string | null | undefined;
92
92
  }[];
93
- address?: string | undefined;
94
- businessType?: string | undefined;
95
- businessItem?: string | undefined;
96
- taxRegistrationId?: string | undefined;
93
+ address?: string | null | undefined;
94
+ businessType?: string | null | undefined;
95
+ businessItem?: string | null | undefined;
96
+ taxRegistrationId?: string | null | undefined;
97
97
  }, {
98
98
  identificationNumber: string;
99
99
  organizationName: string;
100
100
  representativeName: string;
101
101
  managers: {
102
102
  email: string;
103
- name?: string | undefined;
104
- telephone?: string | undefined;
103
+ name?: string | null | undefined;
104
+ telephone?: string | null | undefined;
105
105
  }[];
106
- address?: string | undefined;
107
- businessType?: string | undefined;
108
- businessItem?: string | undefined;
109
- taxRegistrationId?: string | undefined;
106
+ address?: string | null | undefined;
107
+ businessType?: string | null | undefined;
108
+ businessItem?: string | null | undefined;
109
+ taxRegistrationId?: string | null | undefined;
110
110
  }>;
111
111
  export declare const taxInvoiceItemSchema: z.ZodObject<{
112
112
  date: z.ZodString;
113
113
  name: z.ZodString;
114
114
  supplyCost: z.ZodNumber;
115
- unitPrice: z.ZodOptional<z.ZodNumber>;
116
- quantity: z.ZodOptional<z.ZodNumber>;
115
+ unitPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
116
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
117
117
  tax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
118
- specification: z.ZodOptional<z.ZodString>;
119
- description: z.ZodOptional<z.ZodString>;
118
+ specification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
120
120
  }, "strip", z.ZodTypeAny, {
121
121
  date: string;
122
122
  name: string;
123
123
  supplyCost: number;
124
- unitPrice?: number | undefined;
125
- quantity?: number | undefined;
124
+ unitPrice?: number | null | undefined;
125
+ quantity?: number | null | undefined;
126
126
  tax?: number | null | undefined;
127
- specification?: string | undefined;
128
- description?: string | undefined;
127
+ specification?: string | null | undefined;
128
+ description?: string | null | undefined;
129
129
  }, {
130
130
  date: string;
131
131
  name: string;
132
132
  supplyCost: number;
133
- unitPrice?: number | undefined;
134
- quantity?: number | undefined;
133
+ unitPrice?: number | null | undefined;
134
+ quantity?: number | null | undefined;
135
135
  tax?: number | null | undefined;
136
- specification?: string | undefined;
137
- description?: string | undefined;
136
+ specification?: string | null | undefined;
137
+ description?: string | null | undefined;
138
138
  }>;
139
- export declare const createTaxInvoiceSchema: z.ZodObject<{
139
+ export declare const createTaxInvoiceSchema: z.ZodEffects<z.ZodObject<{
140
140
  date: z.ZodString;
141
141
  purpose: z.ZodEnum<["CLAIM", "RECEIPT"]>;
142
142
  supplier: z.ZodObject<{
143
143
  identificationNumber: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>;
144
144
  organizationName: z.ZodString;
145
145
  representativeName: z.ZodString;
146
- address: z.ZodOptional<z.ZodString>;
147
- businessType: z.ZodOptional<z.ZodString>;
148
- businessItem: z.ZodOptional<z.ZodString>;
149
- taxRegistrationId: z.ZodOptional<z.ZodString>;
146
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
147
+ businessType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
+ businessItem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
+ taxRegistrationId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
150
150
  manager: z.ZodObject<{
151
151
  email: z.ZodString;
152
- name: z.ZodOptional<z.ZodString>;
153
- telephone: z.ZodOptional<z.ZodString>;
152
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
+ telephone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
154
  }, "strip", z.ZodTypeAny, {
155
155
  email: string;
156
- name?: string | undefined;
157
- telephone?: string | undefined;
156
+ name?: string | null | undefined;
157
+ telephone?: string | null | undefined;
158
158
  }, {
159
159
  email: string;
160
- name?: string | undefined;
161
- telephone?: string | undefined;
160
+ name?: string | null | undefined;
161
+ telephone?: string | null | undefined;
162
162
  }>;
163
163
  }, "strip", z.ZodTypeAny, {
164
164
  identificationNumber: string;
@@ -166,47 +166,344 @@ export declare const createTaxInvoiceSchema: z.ZodObject<{
166
166
  representativeName: string;
167
167
  manager: {
168
168
  email: string;
169
- name?: string | undefined;
170
- telephone?: string | undefined;
169
+ name?: string | null | undefined;
170
+ telephone?: string | null | undefined;
171
171
  };
172
- address?: string | undefined;
173
- businessType?: string | undefined;
174
- businessItem?: string | undefined;
175
- taxRegistrationId?: string | undefined;
172
+ address?: string | null | undefined;
173
+ businessType?: string | null | undefined;
174
+ businessItem?: string | null | undefined;
175
+ taxRegistrationId?: string | null | undefined;
176
176
  }, {
177
177
  identificationNumber: string;
178
178
  organizationName: string;
179
179
  representativeName: string;
180
180
  manager: {
181
181
  email: string;
182
- name?: string | undefined;
183
- telephone?: string | undefined;
182
+ name?: string | null | undefined;
183
+ telephone?: string | null | undefined;
184
184
  };
185
- address?: string | undefined;
186
- businessType?: string | undefined;
187
- businessItem?: string | undefined;
188
- taxRegistrationId?: string | undefined;
185
+ address?: string | null | undefined;
186
+ businessType?: string | null | undefined;
187
+ businessItem?: string | null | undefined;
188
+ taxRegistrationId?: string | null | undefined;
189
189
  }>;
190
190
  supplied: z.ZodObject<{
191
+ identificationNumber: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>;
192
+ organizationName: z.ZodString;
193
+ representativeName: z.ZodString;
194
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
+ businessType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
+ businessItem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
+ taxRegistrationId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
198
+ managers: z.ZodArray<z.ZodObject<{
199
+ email: z.ZodString;
200
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
201
+ telephone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ email: string;
204
+ name?: string | null | undefined;
205
+ telephone?: string | null | undefined;
206
+ }, {
207
+ email: string;
208
+ name?: string | null | undefined;
209
+ telephone?: string | null | undefined;
210
+ }>, "many">;
211
+ }, "strip", z.ZodTypeAny, {
212
+ identificationNumber: string;
213
+ organizationName: string;
214
+ representativeName: string;
215
+ managers: {
216
+ email: string;
217
+ name?: string | null | undefined;
218
+ telephone?: string | null | undefined;
219
+ }[];
220
+ address?: string | null | undefined;
221
+ businessType?: string | null | undefined;
222
+ businessItem?: string | null | undefined;
223
+ taxRegistrationId?: string | null | undefined;
224
+ }, {
225
+ identificationNumber: string;
226
+ organizationName: string;
227
+ representativeName: string;
228
+ managers: {
229
+ email: string;
230
+ name?: string | null | undefined;
231
+ telephone?: string | null | undefined;
232
+ }[];
233
+ address?: string | null | undefined;
234
+ businessType?: string | null | undefined;
235
+ businessItem?: string | null | undefined;
236
+ taxRegistrationId?: string | null | undefined;
237
+ }>;
238
+ items: z.ZodArray<z.ZodObject<{
239
+ date: z.ZodString;
240
+ name: z.ZodString;
241
+ supplyCost: z.ZodNumber;
242
+ unitPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
243
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
244
+ tax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
245
+ specification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
246
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ date: string;
249
+ name: string;
250
+ supplyCost: number;
251
+ unitPrice?: number | null | undefined;
252
+ quantity?: number | null | undefined;
253
+ tax?: number | null | undefined;
254
+ specification?: string | null | undefined;
255
+ description?: string | null | undefined;
256
+ }, {
257
+ date: string;
258
+ name: string;
259
+ supplyCost: number;
260
+ unitPrice?: number | null | undefined;
261
+ quantity?: number | null | undefined;
262
+ tax?: number | null | undefined;
263
+ specification?: string | null | undefined;
264
+ description?: string | null | undefined;
265
+ }>, "many">;
266
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
267
+ }, "strip", z.ZodTypeAny, {
268
+ date: string;
269
+ purpose: "CLAIM" | "RECEIPT";
270
+ supplier: {
271
+ identificationNumber: string;
272
+ organizationName: string;
273
+ representativeName: string;
274
+ manager: {
275
+ email: string;
276
+ name?: string | null | undefined;
277
+ telephone?: string | null | undefined;
278
+ };
279
+ address?: string | null | undefined;
280
+ businessType?: string | null | undefined;
281
+ businessItem?: string | null | undefined;
282
+ taxRegistrationId?: string | null | undefined;
283
+ };
284
+ supplied: {
285
+ identificationNumber: string;
286
+ organizationName: string;
287
+ representativeName: string;
288
+ managers: {
289
+ email: string;
290
+ name?: string | null | undefined;
291
+ telephone?: string | null | undefined;
292
+ }[];
293
+ address?: string | null | undefined;
294
+ businessType?: string | null | undefined;
295
+ businessItem?: string | null | undefined;
296
+ taxRegistrationId?: string | null | undefined;
297
+ };
298
+ items: {
299
+ date: string;
300
+ name: string;
301
+ supplyCost: number;
302
+ unitPrice?: number | null | undefined;
303
+ quantity?: number | null | undefined;
304
+ tax?: number | null | undefined;
305
+ specification?: string | null | undefined;
306
+ description?: string | null | undefined;
307
+ }[];
308
+ description?: string | null | undefined;
309
+ }, {
310
+ date: string;
311
+ purpose: "CLAIM" | "RECEIPT";
312
+ supplier: {
313
+ identificationNumber: string;
314
+ organizationName: string;
315
+ representativeName: string;
316
+ manager: {
317
+ email: string;
318
+ name?: string | null | undefined;
319
+ telephone?: string | null | undefined;
320
+ };
321
+ address?: string | null | undefined;
322
+ businessType?: string | null | undefined;
323
+ businessItem?: string | null | undefined;
324
+ taxRegistrationId?: string | null | undefined;
325
+ };
326
+ supplied: {
327
+ identificationNumber: string;
328
+ organizationName: string;
329
+ representativeName: string;
330
+ managers: {
331
+ email: string;
332
+ name?: string | null | undefined;
333
+ telephone?: string | null | undefined;
334
+ }[];
335
+ address?: string | null | undefined;
336
+ businessType?: string | null | undefined;
337
+ businessItem?: string | null | undefined;
338
+ taxRegistrationId?: string | null | undefined;
339
+ };
340
+ items: {
341
+ date: string;
342
+ name: string;
343
+ supplyCost: number;
344
+ unitPrice?: number | null | undefined;
345
+ quantity?: number | null | undefined;
346
+ tax?: number | null | undefined;
347
+ specification?: string | null | undefined;
348
+ description?: string | null | undefined;
349
+ }[];
350
+ description?: string | null | undefined;
351
+ }>, {
352
+ date: string;
353
+ purpose: "CLAIM" | "RECEIPT";
354
+ supplier: {
355
+ identificationNumber: string;
356
+ organizationName: string;
357
+ representativeName: string;
358
+ manager: {
359
+ email: string;
360
+ name?: string | null | undefined;
361
+ telephone?: string | null | undefined;
362
+ };
363
+ address?: string | null | undefined;
364
+ businessType?: string | null | undefined;
365
+ businessItem?: string | null | undefined;
366
+ taxRegistrationId?: string | null | undefined;
367
+ };
368
+ supplied: {
369
+ identificationNumber: string;
370
+ organizationName: string;
371
+ representativeName: string;
372
+ managers: {
373
+ email: string;
374
+ name?: string | null | undefined;
375
+ telephone?: string | null | undefined;
376
+ }[];
377
+ address?: string | null | undefined;
378
+ businessType?: string | null | undefined;
379
+ businessItem?: string | null | undefined;
380
+ taxRegistrationId?: string | null | undefined;
381
+ };
382
+ items: {
383
+ date: string;
384
+ name: string;
385
+ supplyCost: number;
386
+ unitPrice?: number | null | undefined;
387
+ quantity?: number | null | undefined;
388
+ tax?: number | null | undefined;
389
+ specification?: string | null | undefined;
390
+ description?: string | null | undefined;
391
+ }[];
392
+ description?: string | null | undefined;
393
+ }, {
394
+ date: string;
395
+ purpose: "CLAIM" | "RECEIPT";
396
+ supplier: {
397
+ identificationNumber: string;
398
+ organizationName: string;
399
+ representativeName: string;
400
+ manager: {
401
+ email: string;
402
+ name?: string | null | undefined;
403
+ telephone?: string | null | undefined;
404
+ };
405
+ address?: string | null | undefined;
406
+ businessType?: string | null | undefined;
407
+ businessItem?: string | null | undefined;
408
+ taxRegistrationId?: string | null | undefined;
409
+ };
410
+ supplied: {
411
+ identificationNumber: string;
412
+ organizationName: string;
413
+ representativeName: string;
414
+ managers: {
415
+ email: string;
416
+ name?: string | null | undefined;
417
+ telephone?: string | null | undefined;
418
+ }[];
419
+ address?: string | null | undefined;
420
+ businessType?: string | null | undefined;
421
+ businessItem?: string | null | undefined;
422
+ taxRegistrationId?: string | null | undefined;
423
+ };
424
+ items: {
425
+ date: string;
426
+ name: string;
427
+ supplyCost: number;
428
+ unitPrice?: number | null | undefined;
429
+ quantity?: number | null | undefined;
430
+ tax?: number | null | undefined;
431
+ specification?: string | null | undefined;
432
+ description?: string | null | undefined;
433
+ }[];
434
+ description?: string | null | undefined;
435
+ }>;
436
+ export declare const createTaxInvoiceIssueRequestSchema: z.ZodEffects<z.ZodObject<{
437
+ date: z.ZodString;
438
+ purpose: z.ZodEnum<["CLAIM", "RECEIPT"]>;
439
+ supplier: z.ZodObject<{
191
440
  identificationNumber: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>;
192
441
  organizationName: z.ZodString;
193
442
  representativeName: z.ZodString;
194
- address: z.ZodOptional<z.ZodString>;
195
- businessType: z.ZodOptional<z.ZodString>;
196
- businessItem: z.ZodOptional<z.ZodString>;
197
- taxRegistrationId: z.ZodOptional<z.ZodString>;
443
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
444
+ businessType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
+ businessItem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
446
+ taxRegistrationId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
447
+ manager: z.ZodObject<{
448
+ email: z.ZodString;
449
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
450
+ telephone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ email: string;
453
+ name?: string | null | undefined;
454
+ telephone?: string | null | undefined;
455
+ }, {
456
+ email: string;
457
+ name?: string | null | undefined;
458
+ telephone?: string | null | undefined;
459
+ }>;
460
+ }, "strip", z.ZodTypeAny, {
461
+ identificationNumber: string;
462
+ organizationName: string;
463
+ representativeName: string;
464
+ manager: {
465
+ email: string;
466
+ name?: string | null | undefined;
467
+ telephone?: string | null | undefined;
468
+ };
469
+ address?: string | null | undefined;
470
+ businessType?: string | null | undefined;
471
+ businessItem?: string | null | undefined;
472
+ taxRegistrationId?: string | null | undefined;
473
+ }, {
474
+ identificationNumber: string;
475
+ organizationName: string;
476
+ representativeName: string;
477
+ manager: {
478
+ email: string;
479
+ name?: string | null | undefined;
480
+ telephone?: string | null | undefined;
481
+ };
482
+ address?: string | null | undefined;
483
+ businessType?: string | null | undefined;
484
+ businessItem?: string | null | undefined;
485
+ taxRegistrationId?: string | null | undefined;
486
+ }>;
487
+ supplied: z.ZodObject<{
488
+ identificationNumber: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodEffects<z.ZodString, string, string>>;
489
+ organizationName: z.ZodString;
490
+ representativeName: z.ZodString;
491
+ address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
492
+ businessType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
493
+ businessItem: z.ZodOptional<z.ZodNullable<z.ZodString>>;
494
+ taxRegistrationId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
198
495
  managers: z.ZodArray<z.ZodObject<{
199
496
  email: z.ZodString;
200
- name: z.ZodOptional<z.ZodString>;
201
- telephone: z.ZodOptional<z.ZodString>;
497
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
498
+ telephone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
202
499
  }, "strip", z.ZodTypeAny, {
203
500
  email: string;
204
- name?: string | undefined;
205
- telephone?: string | undefined;
501
+ name?: string | null | undefined;
502
+ telephone?: string | null | undefined;
206
503
  }, {
207
504
  email: string;
208
- name?: string | undefined;
209
- telephone?: string | undefined;
505
+ name?: string | null | undefined;
506
+ telephone?: string | null | undefined;
210
507
  }>, "many">;
211
508
  }, "strip", z.ZodTypeAny, {
212
509
  identificationNumber: string;
@@ -214,56 +511,56 @@ export declare const createTaxInvoiceSchema: z.ZodObject<{
214
511
  representativeName: string;
215
512
  managers: {
216
513
  email: string;
217
- name?: string | undefined;
218
- telephone?: string | undefined;
514
+ name?: string | null | undefined;
515
+ telephone?: string | null | undefined;
219
516
  }[];
220
- address?: string | undefined;
221
- businessType?: string | undefined;
222
- businessItem?: string | undefined;
223
- taxRegistrationId?: string | undefined;
517
+ address?: string | null | undefined;
518
+ businessType?: string | null | undefined;
519
+ businessItem?: string | null | undefined;
520
+ taxRegistrationId?: string | null | undefined;
224
521
  }, {
225
522
  identificationNumber: string;
226
523
  organizationName: string;
227
524
  representativeName: string;
228
525
  managers: {
229
526
  email: string;
230
- name?: string | undefined;
231
- telephone?: string | undefined;
527
+ name?: string | null | undefined;
528
+ telephone?: string | null | undefined;
232
529
  }[];
233
- address?: string | undefined;
234
- businessType?: string | undefined;
235
- businessItem?: string | undefined;
236
- taxRegistrationId?: string | undefined;
530
+ address?: string | null | undefined;
531
+ businessType?: string | null | undefined;
532
+ businessItem?: string | null | undefined;
533
+ taxRegistrationId?: string | null | undefined;
237
534
  }>;
238
535
  items: z.ZodArray<z.ZodObject<{
239
536
  date: z.ZodString;
240
537
  name: z.ZodString;
241
538
  supplyCost: z.ZodNumber;
242
- unitPrice: z.ZodOptional<z.ZodNumber>;
243
- quantity: z.ZodOptional<z.ZodNumber>;
539
+ unitPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
540
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
244
541
  tax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
245
- specification: z.ZodOptional<z.ZodString>;
246
- description: z.ZodOptional<z.ZodString>;
542
+ specification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
543
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
544
  }, "strip", z.ZodTypeAny, {
248
545
  date: string;
249
546
  name: string;
250
547
  supplyCost: number;
251
- unitPrice?: number | undefined;
252
- quantity?: number | undefined;
548
+ unitPrice?: number | null | undefined;
549
+ quantity?: number | null | undefined;
253
550
  tax?: number | null | undefined;
254
- specification?: string | undefined;
255
- description?: string | undefined;
551
+ specification?: string | null | undefined;
552
+ description?: string | null | undefined;
256
553
  }, {
257
554
  date: string;
258
555
  name: string;
259
556
  supplyCost: number;
260
- unitPrice?: number | undefined;
261
- quantity?: number | undefined;
557
+ unitPrice?: number | null | undefined;
558
+ quantity?: number | null | undefined;
262
559
  tax?: number | null | undefined;
263
- specification?: string | undefined;
264
- description?: string | undefined;
560
+ specification?: string | null | undefined;
561
+ description?: string | null | undefined;
265
562
  }>, "many">;
266
- description: z.ZodOptional<z.ZodString>;
563
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
267
564
  }, "strip", z.ZodTypeAny, {
268
565
  date: string;
269
566
  purpose: "CLAIM" | "RECEIPT";
@@ -273,13 +570,97 @@ export declare const createTaxInvoiceSchema: z.ZodObject<{
273
570
  representativeName: string;
274
571
  manager: {
275
572
  email: string;
276
- name?: string | undefined;
277
- telephone?: string | undefined;
573
+ name?: string | null | undefined;
574
+ telephone?: string | null | undefined;
575
+ };
576
+ address?: string | null | undefined;
577
+ businessType?: string | null | undefined;
578
+ businessItem?: string | null | undefined;
579
+ taxRegistrationId?: string | null | undefined;
580
+ };
581
+ supplied: {
582
+ identificationNumber: string;
583
+ organizationName: string;
584
+ representativeName: string;
585
+ managers: {
586
+ email: string;
587
+ name?: string | null | undefined;
588
+ telephone?: string | null | undefined;
589
+ }[];
590
+ address?: string | null | undefined;
591
+ businessType?: string | null | undefined;
592
+ businessItem?: string | null | undefined;
593
+ taxRegistrationId?: string | null | undefined;
594
+ };
595
+ items: {
596
+ date: string;
597
+ name: string;
598
+ supplyCost: number;
599
+ unitPrice?: number | null | undefined;
600
+ quantity?: number | null | undefined;
601
+ tax?: number | null | undefined;
602
+ specification?: string | null | undefined;
603
+ description?: string | null | undefined;
604
+ }[];
605
+ description?: string | null | undefined;
606
+ }, {
607
+ date: string;
608
+ purpose: "CLAIM" | "RECEIPT";
609
+ supplier: {
610
+ identificationNumber: string;
611
+ organizationName: string;
612
+ representativeName: string;
613
+ manager: {
614
+ email: string;
615
+ name?: string | null | undefined;
616
+ telephone?: string | null | undefined;
617
+ };
618
+ address?: string | null | undefined;
619
+ businessType?: string | null | undefined;
620
+ businessItem?: string | null | undefined;
621
+ taxRegistrationId?: string | null | undefined;
622
+ };
623
+ supplied: {
624
+ identificationNumber: string;
625
+ organizationName: string;
626
+ representativeName: string;
627
+ managers: {
628
+ email: string;
629
+ name?: string | null | undefined;
630
+ telephone?: string | null | undefined;
631
+ }[];
632
+ address?: string | null | undefined;
633
+ businessType?: string | null | undefined;
634
+ businessItem?: string | null | undefined;
635
+ taxRegistrationId?: string | null | undefined;
636
+ };
637
+ items: {
638
+ date: string;
639
+ name: string;
640
+ supplyCost: number;
641
+ unitPrice?: number | null | undefined;
642
+ quantity?: number | null | undefined;
643
+ tax?: number | null | undefined;
644
+ specification?: string | null | undefined;
645
+ description?: string | null | undefined;
646
+ }[];
647
+ description?: string | null | undefined;
648
+ }>, {
649
+ date: string;
650
+ purpose: "CLAIM" | "RECEIPT";
651
+ supplier: {
652
+ identificationNumber: string;
653
+ organizationName: string;
654
+ representativeName: string;
655
+ manager: {
656
+ email: string;
657
+ name?: string | null | undefined;
658
+ telephone?: string | null | undefined;
278
659
  };
279
- address?: string | undefined;
280
- businessType?: string | undefined;
281
- businessItem?: string | undefined;
282
- taxRegistrationId?: string | undefined;
660
+ address?: string | null | undefined;
661
+ businessType?: string | null | undefined;
662
+ businessItem?: string | null | undefined;
663
+ taxRegistrationId?: string | null | undefined;
283
664
  };
284
665
  supplied: {
285
666
  identificationNumber: string;
@@ -287,25 +668,25 @@ export declare const createTaxInvoiceSchema: z.ZodObject<{
287
668
  representativeName: string;
288
669
  managers: {
289
670
  email: string;
290
- name?: string | undefined;
291
- telephone?: string | undefined;
671
+ name?: string | null | undefined;
672
+ telephone?: string | null | undefined;
292
673
  }[];
293
- address?: string | undefined;
294
- businessType?: string | undefined;
295
- businessItem?: string | undefined;
296
- taxRegistrationId?: string | undefined;
674
+ address?: string | null | undefined;
675
+ businessType?: string | null | undefined;
676
+ businessItem?: string | null | undefined;
677
+ taxRegistrationId?: string | null | undefined;
297
678
  };
298
679
  items: {
299
680
  date: string;
300
681
  name: string;
301
682
  supplyCost: number;
302
- unitPrice?: number | undefined;
303
- quantity?: number | undefined;
683
+ unitPrice?: number | null | undefined;
684
+ quantity?: number | null | undefined;
304
685
  tax?: number | null | undefined;
305
- specification?: string | undefined;
306
- description?: string | undefined;
686
+ specification?: string | null | undefined;
687
+ description?: string | null | undefined;
307
688
  }[];
308
- description?: string | undefined;
689
+ description?: string | null | undefined;
309
690
  }, {
310
691
  date: string;
311
692
  purpose: "CLAIM" | "RECEIPT";
@@ -315,13 +696,13 @@ export declare const createTaxInvoiceSchema: z.ZodObject<{
315
696
  representativeName: string;
316
697
  manager: {
317
698
  email: string;
318
- name?: string | undefined;
319
- telephone?: string | undefined;
699
+ name?: string | null | undefined;
700
+ telephone?: string | null | undefined;
320
701
  };
321
- address?: string | undefined;
322
- businessType?: string | undefined;
323
- businessItem?: string | undefined;
324
- taxRegistrationId?: string | undefined;
702
+ address?: string | null | undefined;
703
+ businessType?: string | null | undefined;
704
+ businessItem?: string | null | undefined;
705
+ taxRegistrationId?: string | null | undefined;
325
706
  };
326
707
  supplied: {
327
708
  identificationNumber: string;
@@ -329,41 +710,41 @@ export declare const createTaxInvoiceSchema: z.ZodObject<{
329
710
  representativeName: string;
330
711
  managers: {
331
712
  email: string;
332
- name?: string | undefined;
333
- telephone?: string | undefined;
713
+ name?: string | null | undefined;
714
+ telephone?: string | null | undefined;
334
715
  }[];
335
- address?: string | undefined;
336
- businessType?: string | undefined;
337
- businessItem?: string | undefined;
338
- taxRegistrationId?: string | undefined;
716
+ address?: string | null | undefined;
717
+ businessType?: string | null | undefined;
718
+ businessItem?: string | null | undefined;
719
+ taxRegistrationId?: string | null | undefined;
339
720
  };
340
721
  items: {
341
722
  date: string;
342
723
  name: string;
343
724
  supplyCost: number;
344
- unitPrice?: number | undefined;
345
- quantity?: number | undefined;
725
+ unitPrice?: number | null | undefined;
726
+ quantity?: number | null | undefined;
346
727
  tax?: number | null | undefined;
347
- specification?: string | undefined;
348
- description?: string | undefined;
728
+ specification?: string | null | undefined;
729
+ description?: string | null | undefined;
349
730
  }[];
350
- description?: string | undefined;
731
+ description?: string | null | undefined;
351
732
  }>;
352
- export declare const createCustomerSchema: z.ZodObject<{
733
+ export declare const createSupplierSchema: z.ZodObject<{
353
734
  identificationNumber: z.ZodPipeline<z.ZodEffects<z.ZodString, string, string>, z.ZodString>;
354
735
  organizationName: z.ZodString;
355
736
  representativeName: z.ZodString;
356
- taxRegistrationId: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
737
+ taxRegistrationId: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>>;
357
738
  }, "strip", z.ZodTypeAny, {
358
739
  identificationNumber: string;
359
740
  organizationName: string;
360
741
  representativeName: string;
361
- taxRegistrationId?: string | undefined;
742
+ taxRegistrationId?: string | null | undefined;
362
743
  }, {
363
744
  identificationNumber: string;
364
745
  organizationName: string;
365
746
  representativeName: string;
366
- taxRegistrationId?: string | undefined;
747
+ taxRegistrationId?: string | null | undefined;
367
748
  }>;
368
749
  export declare const amendTerminationSchema: z.ZodObject<{
369
750
  date: z.ZodString;
@@ -377,10 +758,10 @@ export declare const amendChangeSupplyCostSchema: z.ZodObject<{
377
758
  items: z.ZodArray<z.ZodObject<{
378
759
  date: z.ZodString;
379
760
  name: z.ZodString;
380
- unitPrice: z.ZodOptional<z.ZodNumber>;
381
- quantity: z.ZodOptional<z.ZodNumber>;
382
- specification: z.ZodOptional<z.ZodString>;
383
- description: z.ZodOptional<z.ZodString>;
761
+ unitPrice: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
762
+ quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
763
+ specification: z.ZodOptional<z.ZodNullable<z.ZodString>>;
764
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
384
765
  } & {
385
766
  supplyCost: z.ZodNumber;
386
767
  tax: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -388,20 +769,20 @@ export declare const amendChangeSupplyCostSchema: z.ZodObject<{
388
769
  date: string;
389
770
  name: string;
390
771
  supplyCost: number;
391
- unitPrice?: number | undefined;
392
- quantity?: number | undefined;
772
+ unitPrice?: number | null | undefined;
773
+ quantity?: number | null | undefined;
393
774
  tax?: number | null | undefined;
394
- specification?: string | undefined;
395
- description?: string | undefined;
775
+ specification?: string | null | undefined;
776
+ description?: string | null | undefined;
396
777
  }, {
397
778
  date: string;
398
779
  name: string;
399
780
  supplyCost: number;
400
- unitPrice?: number | undefined;
401
- quantity?: number | undefined;
781
+ unitPrice?: number | null | undefined;
782
+ quantity?: number | null | undefined;
402
783
  tax?: number | null | undefined;
403
- specification?: string | undefined;
404
- description?: string | undefined;
784
+ specification?: string | null | undefined;
785
+ description?: string | null | undefined;
405
786
  }>, "many">;
406
787
  }, "strip", z.ZodTypeAny, {
407
788
  date: string;
@@ -409,11 +790,11 @@ export declare const amendChangeSupplyCostSchema: z.ZodObject<{
409
790
  date: string;
410
791
  name: string;
411
792
  supplyCost: number;
412
- unitPrice?: number | undefined;
413
- quantity?: number | undefined;
793
+ unitPrice?: number | null | undefined;
794
+ quantity?: number | null | undefined;
414
795
  tax?: number | null | undefined;
415
- specification?: string | undefined;
416
- description?: string | undefined;
796
+ specification?: string | null | undefined;
797
+ description?: string | null | undefined;
417
798
  }[];
418
799
  }, {
419
800
  date: string;
@@ -421,11 +802,11 @@ export declare const amendChangeSupplyCostSchema: z.ZodObject<{
421
802
  date: string;
422
803
  name: string;
423
804
  supplyCost: number;
424
- unitPrice?: number | undefined;
425
- quantity?: number | undefined;
805
+ unitPrice?: number | null | undefined;
806
+ quantity?: number | null | undefined;
426
807
  tax?: number | null | undefined;
427
- specification?: string | undefined;
428
- description?: string | undefined;
808
+ specification?: string | null | undefined;
809
+ description?: string | null | undefined;
429
810
  }[];
430
811
  }>;
431
812
  export declare const jsonSchemas: Record<string, object>;