@feedmepos/mf-e-invoice 0.0.56 → 0.0.57
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/dist/{EInvoice-DR6nHAET.js → EInvoice-BVgYTLlt.js} +904 -908
- package/dist/app.js +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/type/vietnam/e-invoice-profile.do.d.ts +1 -1
- package/dist/type/vietnam/e-invoice.do.d.ts +289 -73
- package/dist/type/vietnam/e-invoice.dto.d.ts +172 -44
- package/dist/views/manager/manager.d.ts +2 -5
- package/dist/views/manager/vietnam/submission.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { z } from
|
|
2
|
-
export declare const FdoVnEInvoiceSubmissionCustomer: z.ZodObject<{
|
|
3
|
-
_id: z.
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FdoVnEInvoiceSubmissionCustomer: z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<Omit<z.extendShape<z.extendShape<{
|
|
3
|
+
_id: z.ZodEffects<z.ZodString, string, string>;
|
|
4
|
+
type: z.ZodEnum<["individual", "company"]>;
|
|
5
|
+
nickname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
phoneNumber: z.ZodString;
|
|
8
|
+
address: z.ZodObject<{
|
|
6
9
|
line1: z.ZodString;
|
|
7
10
|
line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
8
11
|
state: z.ZodString;
|
|
@@ -26,19 +29,26 @@ export declare const FdoVnEInvoiceSubmissionCustomer: z.ZodObject<{
|
|
|
26
29
|
line1: string;
|
|
27
30
|
city: string;
|
|
28
31
|
postcode: string;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
email: z.
|
|
32
|
+
}>;
|
|
33
|
+
userId: z.ZodString;
|
|
34
|
+
}, {
|
|
35
|
+
email: z.ZodString;
|
|
36
|
+
legalName: z.ZodString;
|
|
37
|
+
}>, {
|
|
38
|
+
type: z.ZodLiteral<"individual">;
|
|
39
|
+
identityNo: z.ZodString;
|
|
33
40
|
taxCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
}>, "_id" | "userId">, {
|
|
42
|
+
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
43
|
+
}>, "strip", z.ZodTypeAny, {
|
|
44
|
+
nickname?: string | null | undefined;
|
|
45
|
+
userId?: string | null | undefined;
|
|
46
|
+
taxCode?: string | null | undefined;
|
|
47
|
+
email: string;
|
|
48
|
+
type: "individual";
|
|
49
|
+
name: string;
|
|
50
|
+
phoneNumber: string;
|
|
51
|
+
address: {
|
|
42
52
|
coordinates?: number[] | null | undefined;
|
|
43
53
|
line2?: string | null | undefined;
|
|
44
54
|
state: string;
|
|
@@ -46,17 +56,78 @@ export declare const FdoVnEInvoiceSubmissionCustomer: z.ZodObject<{
|
|
|
46
56
|
line1: string;
|
|
47
57
|
city: string;
|
|
48
58
|
postcode: string;
|
|
49
|
-
}
|
|
59
|
+
};
|
|
60
|
+
legalName: string;
|
|
61
|
+
identityNo: string;
|
|
62
|
+
}, {
|
|
63
|
+
nickname?: string | null | undefined;
|
|
50
64
|
userId?: string | null | undefined;
|
|
51
|
-
legalName?: string | null | undefined;
|
|
52
|
-
identityNo?: string | null | undefined;
|
|
53
65
|
taxCode?: string | null | undefined;
|
|
66
|
+
email: string;
|
|
67
|
+
type: "individual";
|
|
68
|
+
name: string;
|
|
69
|
+
phoneNumber: string;
|
|
70
|
+
address: {
|
|
71
|
+
coordinates?: number[] | null | undefined;
|
|
72
|
+
line2?: string | null | undefined;
|
|
73
|
+
state: string;
|
|
74
|
+
country: string;
|
|
75
|
+
line1: string;
|
|
76
|
+
city: string;
|
|
77
|
+
postcode: string;
|
|
78
|
+
};
|
|
79
|
+
legalName: string;
|
|
80
|
+
identityNo: string;
|
|
81
|
+
}> | z.ZodObject<z.extendShape<Omit<z.extendShape<z.extendShape<{
|
|
82
|
+
_id: z.ZodEffects<z.ZodString, string, string>;
|
|
83
|
+
type: z.ZodEnum<["individual", "company"]>;
|
|
84
|
+
nickname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
85
|
+
name: z.ZodString;
|
|
86
|
+
phoneNumber: z.ZodString;
|
|
87
|
+
address: z.ZodObject<{
|
|
88
|
+
line1: z.ZodString;
|
|
89
|
+
line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
90
|
+
state: z.ZodString;
|
|
91
|
+
city: z.ZodString;
|
|
92
|
+
postcode: z.ZodString;
|
|
93
|
+
country: z.ZodString;
|
|
94
|
+
coordinates: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
95
|
+
}, "strip", z.ZodTypeAny, {
|
|
96
|
+
coordinates?: number[] | null | undefined;
|
|
97
|
+
line2?: string | null | undefined;
|
|
98
|
+
state: string;
|
|
99
|
+
country: string;
|
|
100
|
+
line1: string;
|
|
101
|
+
city: string;
|
|
102
|
+
postcode: string;
|
|
103
|
+
}, {
|
|
104
|
+
coordinates?: number[] | null | undefined;
|
|
105
|
+
line2?: string | null | undefined;
|
|
106
|
+
state: string;
|
|
107
|
+
country: string;
|
|
108
|
+
line1: string;
|
|
109
|
+
city: string;
|
|
110
|
+
postcode: string;
|
|
111
|
+
}>;
|
|
112
|
+
userId: z.ZodString;
|
|
54
113
|
}, {
|
|
55
|
-
email
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
114
|
+
email: z.ZodString;
|
|
115
|
+
legalName: z.ZodString;
|
|
116
|
+
}>, {
|
|
117
|
+
type: z.ZodLiteral<"company">;
|
|
118
|
+
taxCode: z.ZodString;
|
|
119
|
+
identityNo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
120
|
+
}>, "_id" | "userId">, {
|
|
121
|
+
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
122
|
+
}>, "strip", z.ZodTypeAny, {
|
|
123
|
+
nickname?: string | null | undefined;
|
|
124
|
+
userId?: string | null | undefined;
|
|
125
|
+
identityNo?: string | null | undefined;
|
|
126
|
+
email: string;
|
|
127
|
+
type: "company";
|
|
128
|
+
name: string;
|
|
129
|
+
phoneNumber: string;
|
|
130
|
+
address: {
|
|
60
131
|
coordinates?: number[] | null | undefined;
|
|
61
132
|
line2?: string | null | undefined;
|
|
62
133
|
state: string;
|
|
@@ -64,12 +135,29 @@ export declare const FdoVnEInvoiceSubmissionCustomer: z.ZodObject<{
|
|
|
64
135
|
line1: string;
|
|
65
136
|
city: string;
|
|
66
137
|
postcode: string;
|
|
67
|
-
}
|
|
138
|
+
};
|
|
139
|
+
legalName: string;
|
|
140
|
+
taxCode: string;
|
|
141
|
+
}, {
|
|
142
|
+
nickname?: string | null | undefined;
|
|
68
143
|
userId?: string | null | undefined;
|
|
69
|
-
legalName?: string | null | undefined;
|
|
70
144
|
identityNo?: string | null | undefined;
|
|
71
|
-
|
|
72
|
-
|
|
145
|
+
email: string;
|
|
146
|
+
type: "company";
|
|
147
|
+
name: string;
|
|
148
|
+
phoneNumber: string;
|
|
149
|
+
address: {
|
|
150
|
+
coordinates?: number[] | null | undefined;
|
|
151
|
+
line2?: string | null | undefined;
|
|
152
|
+
state: string;
|
|
153
|
+
country: string;
|
|
154
|
+
line1: string;
|
|
155
|
+
city: string;
|
|
156
|
+
postcode: string;
|
|
157
|
+
};
|
|
158
|
+
legalName: string;
|
|
159
|
+
taxCode: string;
|
|
160
|
+
}>>;
|
|
73
161
|
export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
74
162
|
_id: z.ZodEffects<z.ZodString, string, string>;
|
|
75
163
|
ref: z.ZodString;
|
|
@@ -306,10 +394,13 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
306
394
|
businessId: string;
|
|
307
395
|
regNo: string;
|
|
308
396
|
}>>;
|
|
309
|
-
customer: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
310
|
-
_id: z.
|
|
311
|
-
|
|
312
|
-
|
|
397
|
+
customer: z.ZodNullable<z.ZodOptional<z.ZodDiscriminatedUnion<"type", z.Primitive, z.ZodObject<z.extendShape<Omit<z.extendShape<z.extendShape<{
|
|
398
|
+
_id: z.ZodEffects<z.ZodString, string, string>;
|
|
399
|
+
type: z.ZodEnum<["individual", "company"]>;
|
|
400
|
+
nickname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
401
|
+
name: z.ZodString;
|
|
402
|
+
phoneNumber: z.ZodString;
|
|
403
|
+
address: z.ZodObject<{
|
|
313
404
|
line1: z.ZodString;
|
|
314
405
|
line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
315
406
|
state: z.ZodString;
|
|
@@ -333,19 +424,26 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
333
424
|
line1: string;
|
|
334
425
|
city: string;
|
|
335
426
|
postcode: string;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
email: z.
|
|
427
|
+
}>;
|
|
428
|
+
userId: z.ZodString;
|
|
429
|
+
}, {
|
|
430
|
+
email: z.ZodString;
|
|
431
|
+
legalName: z.ZodString;
|
|
432
|
+
}>, {
|
|
433
|
+
type: z.ZodLiteral<"individual">;
|
|
434
|
+
identityNo: z.ZodString;
|
|
340
435
|
taxCode: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
436
|
+
}>, "_id" | "userId">, {
|
|
437
|
+
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
438
|
+
}>, "strip", z.ZodTypeAny, {
|
|
439
|
+
nickname?: string | null | undefined;
|
|
440
|
+
userId?: string | null | undefined;
|
|
441
|
+
taxCode?: string | null | undefined;
|
|
442
|
+
email: string;
|
|
443
|
+
type: "individual";
|
|
444
|
+
name: string;
|
|
445
|
+
phoneNumber: string;
|
|
446
|
+
address: {
|
|
349
447
|
coordinates?: number[] | null | undefined;
|
|
350
448
|
line2?: string | null | undefined;
|
|
351
449
|
state: string;
|
|
@@ -353,17 +451,78 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
353
451
|
line1: string;
|
|
354
452
|
city: string;
|
|
355
453
|
postcode: string;
|
|
356
|
-
}
|
|
454
|
+
};
|
|
455
|
+
legalName: string;
|
|
456
|
+
identityNo: string;
|
|
457
|
+
}, {
|
|
458
|
+
nickname?: string | null | undefined;
|
|
357
459
|
userId?: string | null | undefined;
|
|
358
|
-
legalName?: string | null | undefined;
|
|
359
|
-
identityNo?: string | null | undefined;
|
|
360
460
|
taxCode?: string | null | undefined;
|
|
461
|
+
email: string;
|
|
462
|
+
type: "individual";
|
|
463
|
+
name: string;
|
|
464
|
+
phoneNumber: string;
|
|
465
|
+
address: {
|
|
466
|
+
coordinates?: number[] | null | undefined;
|
|
467
|
+
line2?: string | null | undefined;
|
|
468
|
+
state: string;
|
|
469
|
+
country: string;
|
|
470
|
+
line1: string;
|
|
471
|
+
city: string;
|
|
472
|
+
postcode: string;
|
|
473
|
+
};
|
|
474
|
+
legalName: string;
|
|
475
|
+
identityNo: string;
|
|
476
|
+
}> | z.ZodObject<z.extendShape<Omit<z.extendShape<z.extendShape<{
|
|
477
|
+
_id: z.ZodEffects<z.ZodString, string, string>;
|
|
478
|
+
type: z.ZodEnum<["individual", "company"]>;
|
|
479
|
+
nickname: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
480
|
+
name: z.ZodString;
|
|
481
|
+
phoneNumber: z.ZodString;
|
|
482
|
+
address: z.ZodObject<{
|
|
483
|
+
line1: z.ZodString;
|
|
484
|
+
line2: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
485
|
+
state: z.ZodString;
|
|
486
|
+
city: z.ZodString;
|
|
487
|
+
postcode: z.ZodString;
|
|
488
|
+
country: z.ZodString;
|
|
489
|
+
coordinates: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>>;
|
|
490
|
+
}, "strip", z.ZodTypeAny, {
|
|
491
|
+
coordinates?: number[] | null | undefined;
|
|
492
|
+
line2?: string | null | undefined;
|
|
493
|
+
state: string;
|
|
494
|
+
country: string;
|
|
495
|
+
line1: string;
|
|
496
|
+
city: string;
|
|
497
|
+
postcode: string;
|
|
498
|
+
}, {
|
|
499
|
+
coordinates?: number[] | null | undefined;
|
|
500
|
+
line2?: string | null | undefined;
|
|
501
|
+
state: string;
|
|
502
|
+
country: string;
|
|
503
|
+
line1: string;
|
|
504
|
+
city: string;
|
|
505
|
+
postcode: string;
|
|
506
|
+
}>;
|
|
507
|
+
userId: z.ZodString;
|
|
361
508
|
}, {
|
|
362
|
-
email
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
509
|
+
email: z.ZodString;
|
|
510
|
+
legalName: z.ZodString;
|
|
511
|
+
}>, {
|
|
512
|
+
type: z.ZodLiteral<"company">;
|
|
513
|
+
taxCode: z.ZodString;
|
|
514
|
+
identityNo: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
515
|
+
}>, "_id" | "userId">, {
|
|
516
|
+
userId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
517
|
+
}>, "strip", z.ZodTypeAny, {
|
|
518
|
+
nickname?: string | null | undefined;
|
|
519
|
+
userId?: string | null | undefined;
|
|
520
|
+
identityNo?: string | null | undefined;
|
|
521
|
+
email: string;
|
|
522
|
+
type: "company";
|
|
523
|
+
name: string;
|
|
524
|
+
phoneNumber: string;
|
|
525
|
+
address: {
|
|
367
526
|
coordinates?: number[] | null | undefined;
|
|
368
527
|
line2?: string | null | undefined;
|
|
369
528
|
state: string;
|
|
@@ -371,21 +530,41 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
371
530
|
line1: string;
|
|
372
531
|
city: string;
|
|
373
532
|
postcode: string;
|
|
374
|
-
}
|
|
533
|
+
};
|
|
534
|
+
legalName: string;
|
|
535
|
+
taxCode: string;
|
|
536
|
+
}, {
|
|
537
|
+
nickname?: string | null | undefined;
|
|
375
538
|
userId?: string | null | undefined;
|
|
376
|
-
legalName?: string | null | undefined;
|
|
377
539
|
identityNo?: string | null | undefined;
|
|
378
|
-
|
|
379
|
-
|
|
540
|
+
email: string;
|
|
541
|
+
type: "company";
|
|
542
|
+
name: string;
|
|
543
|
+
phoneNumber: string;
|
|
544
|
+
address: {
|
|
545
|
+
coordinates?: number[] | null | undefined;
|
|
546
|
+
line2?: string | null | undefined;
|
|
547
|
+
state: string;
|
|
548
|
+
country: string;
|
|
549
|
+
line1: string;
|
|
550
|
+
city: string;
|
|
551
|
+
postcode: string;
|
|
552
|
+
};
|
|
553
|
+
legalName: string;
|
|
554
|
+
taxCode: string;
|
|
555
|
+
}>>>>;
|
|
380
556
|
req: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
381
557
|
res: z.ZodNullable<z.ZodOptional<z.ZodAny>>;
|
|
382
558
|
}, "strip", z.ZodTypeAny, {
|
|
383
559
|
customer?: {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
560
|
+
nickname?: string | null | undefined;
|
|
561
|
+
userId?: string | null | undefined;
|
|
562
|
+
taxCode?: string | null | undefined;
|
|
563
|
+
email: string;
|
|
564
|
+
type: "individual";
|
|
565
|
+
name: string;
|
|
566
|
+
phoneNumber: string;
|
|
567
|
+
address: {
|
|
389
568
|
coordinates?: number[] | null | undefined;
|
|
390
569
|
line2?: string | null | undefined;
|
|
391
570
|
state: string;
|
|
@@ -393,11 +572,28 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
393
572
|
line1: string;
|
|
394
573
|
city: string;
|
|
395
574
|
postcode: string;
|
|
396
|
-
}
|
|
575
|
+
};
|
|
576
|
+
legalName: string;
|
|
577
|
+
identityNo: string;
|
|
578
|
+
} | {
|
|
579
|
+
nickname?: string | null | undefined;
|
|
397
580
|
userId?: string | null | undefined;
|
|
398
|
-
legalName?: string | null | undefined;
|
|
399
581
|
identityNo?: string | null | undefined;
|
|
400
|
-
|
|
582
|
+
email: string;
|
|
583
|
+
type: "company";
|
|
584
|
+
name: string;
|
|
585
|
+
phoneNumber: string;
|
|
586
|
+
address: {
|
|
587
|
+
coordinates?: number[] | null | undefined;
|
|
588
|
+
line2?: string | null | undefined;
|
|
589
|
+
state: string;
|
|
590
|
+
country: string;
|
|
591
|
+
line1: string;
|
|
592
|
+
city: string;
|
|
593
|
+
postcode: string;
|
|
594
|
+
};
|
|
595
|
+
legalName: string;
|
|
596
|
+
taxCode: string;
|
|
401
597
|
} | null | undefined;
|
|
402
598
|
invoice?: any;
|
|
403
599
|
req?: any;
|
|
@@ -470,11 +666,14 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
470
666
|
readyToSubmitDate: string;
|
|
471
667
|
}, {
|
|
472
668
|
customer?: {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
669
|
+
nickname?: string | null | undefined;
|
|
670
|
+
userId?: string | null | undefined;
|
|
671
|
+
taxCode?: string | null | undefined;
|
|
672
|
+
email: string;
|
|
673
|
+
type: "individual";
|
|
674
|
+
name: string;
|
|
675
|
+
phoneNumber: string;
|
|
676
|
+
address: {
|
|
478
677
|
coordinates?: number[] | null | undefined;
|
|
479
678
|
line2?: string | null | undefined;
|
|
480
679
|
state: string;
|
|
@@ -482,11 +681,28 @@ export declare const FdoVnEInvoiceSubmission: z.ZodObject<{
|
|
|
482
681
|
line1: string;
|
|
483
682
|
city: string;
|
|
484
683
|
postcode: string;
|
|
485
|
-
}
|
|
684
|
+
};
|
|
685
|
+
legalName: string;
|
|
686
|
+
identityNo: string;
|
|
687
|
+
} | {
|
|
688
|
+
nickname?: string | null | undefined;
|
|
486
689
|
userId?: string | null | undefined;
|
|
487
|
-
legalName?: string | null | undefined;
|
|
488
690
|
identityNo?: string | null | undefined;
|
|
489
|
-
|
|
691
|
+
email: string;
|
|
692
|
+
type: "company";
|
|
693
|
+
name: string;
|
|
694
|
+
phoneNumber: string;
|
|
695
|
+
address: {
|
|
696
|
+
coordinates?: number[] | null | undefined;
|
|
697
|
+
line2?: string | null | undefined;
|
|
698
|
+
state: string;
|
|
699
|
+
country: string;
|
|
700
|
+
line1: string;
|
|
701
|
+
city: string;
|
|
702
|
+
postcode: string;
|
|
703
|
+
};
|
|
704
|
+
legalName: string;
|
|
705
|
+
taxCode: string;
|
|
490
706
|
} | null | undefined;
|
|
491
707
|
invoice?: any;
|
|
492
708
|
req?: any;
|