@openbox/shared-types 0.2.81 → 0.2.83
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.
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
type InvoicesDocumentsLayoutHelpers = {
|
|
1
|
+
export type InvoicesDocumentsLayoutHelpers = {
|
|
2
2
|
x: number;
|
|
3
3
|
y?: number;
|
|
4
4
|
l?: number;
|
|
5
5
|
show: true | false;
|
|
6
|
+
type: string;
|
|
7
|
+
value: string;
|
|
6
8
|
};
|
|
7
9
|
type InvoicesDocumentsLayoutResolution = {
|
|
8
10
|
width: number;
|
|
@@ -10,134 +12,44 @@ type InvoicesDocumentsLayoutResolution = {
|
|
|
10
12
|
};
|
|
11
13
|
type InvoicesDocumentsLayoutHeader = {
|
|
12
14
|
fontSize: number;
|
|
13
|
-
authorization: InvoicesDocumentsLayoutHelpers
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
address1: InvoicesDocumentsLayoutHelpers & {
|
|
30
|
-
type: string;
|
|
31
|
-
value: string;
|
|
32
|
-
};
|
|
33
|
-
address2: InvoicesDocumentsLayoutHelpers & {
|
|
34
|
-
type: string;
|
|
35
|
-
value: string;
|
|
36
|
-
};
|
|
37
|
-
nrc: InvoicesDocumentsLayoutHelpers & {
|
|
38
|
-
type: string;
|
|
39
|
-
value: string;
|
|
40
|
-
};
|
|
41
|
-
nit: InvoicesDocumentsLayoutHelpers & {
|
|
42
|
-
type: string;
|
|
43
|
-
value: string;
|
|
44
|
-
};
|
|
45
|
-
dui: InvoicesDocumentsLayoutHelpers & {
|
|
46
|
-
type: string;
|
|
47
|
-
value: string;
|
|
48
|
-
};
|
|
49
|
-
country: InvoicesDocumentsLayoutHelpers & {
|
|
50
|
-
type: string;
|
|
51
|
-
value: string;
|
|
52
|
-
};
|
|
53
|
-
state: InvoicesDocumentsLayoutHelpers & {
|
|
54
|
-
type: string;
|
|
55
|
-
value: string;
|
|
56
|
-
};
|
|
57
|
-
city: InvoicesDocumentsLayoutHelpers & {
|
|
58
|
-
type: string;
|
|
59
|
-
value: string;
|
|
60
|
-
};
|
|
61
|
-
giro: InvoicesDocumentsLayoutHelpers & {
|
|
62
|
-
type: string;
|
|
63
|
-
value: string;
|
|
64
|
-
};
|
|
65
|
-
seller: InvoicesDocumentsLayoutHelpers & {
|
|
66
|
-
type: string;
|
|
67
|
-
value: string;
|
|
68
|
-
};
|
|
69
|
-
paymentCondition: InvoicesDocumentsLayoutHelpers & {
|
|
70
|
-
type: string;
|
|
71
|
-
value: string;
|
|
72
|
-
};
|
|
15
|
+
authorization: InvoicesDocumentsLayoutHelpers;
|
|
16
|
+
sequence: InvoicesDocumentsLayoutHelpers;
|
|
17
|
+
date: InvoicesDocumentsLayoutHelpers;
|
|
18
|
+
customer: InvoicesDocumentsLayoutHelpers;
|
|
19
|
+
address1: InvoicesDocumentsLayoutHelpers;
|
|
20
|
+
address2: InvoicesDocumentsLayoutHelpers;
|
|
21
|
+
nrc: InvoicesDocumentsLayoutHelpers;
|
|
22
|
+
nit: InvoicesDocumentsLayoutHelpers;
|
|
23
|
+
dui: InvoicesDocumentsLayoutHelpers;
|
|
24
|
+
country: InvoicesDocumentsLayoutHelpers;
|
|
25
|
+
state: InvoicesDocumentsLayoutHelpers;
|
|
26
|
+
city: InvoicesDocumentsLayoutHelpers;
|
|
27
|
+
giro: InvoicesDocumentsLayoutHelpers;
|
|
28
|
+
seller: InvoicesDocumentsLayoutHelpers;
|
|
29
|
+
paymentCondition: InvoicesDocumentsLayoutHelpers;
|
|
73
30
|
};
|
|
74
31
|
type InvoicesDocumentsLayoutDetails = {
|
|
75
32
|
fontSize: number;
|
|
76
33
|
height: number;
|
|
77
34
|
y: number;
|
|
78
|
-
quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
value: string;
|
|
85
|
-
};
|
|
86
|
-
price: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
87
|
-
type: string;
|
|
88
|
-
value: string;
|
|
89
|
-
};
|
|
90
|
-
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
91
|
-
type: string;
|
|
92
|
-
value: string;
|
|
93
|
-
};
|
|
94
|
-
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
95
|
-
type: string;
|
|
96
|
-
value: string;
|
|
97
|
-
};
|
|
98
|
-
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
99
|
-
type: string;
|
|
100
|
-
value: string;
|
|
101
|
-
};
|
|
35
|
+
quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
36
|
+
description: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
37
|
+
price: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
38
|
+
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
39
|
+
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
40
|
+
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
102
41
|
};
|
|
103
42
|
type InvoicesDocumentsLayoutTotals = {
|
|
104
43
|
fontSize: number;
|
|
105
|
-
sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
type: string;
|
|
115
|
-
value: string;
|
|
116
|
-
};
|
|
117
|
-
retenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
118
|
-
type: string;
|
|
119
|
-
value: string;
|
|
120
|
-
};
|
|
121
|
-
percibido: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
122
|
-
type: string;
|
|
123
|
-
value: string;
|
|
124
|
-
};
|
|
125
|
-
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
126
|
-
type: string;
|
|
127
|
-
value: string;
|
|
128
|
-
};
|
|
129
|
-
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
130
|
-
type: string;
|
|
131
|
-
value: string;
|
|
132
|
-
};
|
|
133
|
-
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
134
|
-
type: string;
|
|
135
|
-
value: string;
|
|
136
|
-
};
|
|
137
|
-
vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
138
|
-
type: string;
|
|
139
|
-
value: string;
|
|
140
|
-
};
|
|
44
|
+
sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
45
|
+
taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
46
|
+
subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
47
|
+
retenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
48
|
+
percibido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
49
|
+
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
50
|
+
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
51
|
+
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
52
|
+
vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
141
53
|
};
|
|
142
54
|
export type InvoicesDocumentsLayout = {
|
|
143
55
|
resolution: InvoicesDocumentsLayoutResolution;
|
package/package.json
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
type InvoicesDocumentsLayoutHelpers = {
|
|
1
|
+
export type InvoicesDocumentsLayoutHelpers = {
|
|
2
2
|
x: number
|
|
3
3
|
y?: number
|
|
4
4
|
l?: number
|
|
5
5
|
show: true | false
|
|
6
|
+
type: string
|
|
7
|
+
value: string
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
type InvoicesDocumentsLayoutResolution = {
|
|
@@ -12,97 +14,46 @@ type InvoicesDocumentsLayoutResolution = {
|
|
|
12
14
|
|
|
13
15
|
type InvoicesDocumentsLayoutHeader = {
|
|
14
16
|
fontSize: number
|
|
15
|
-
authorization: InvoicesDocumentsLayoutHelpers
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
giro: InvoicesDocumentsLayoutHelpers & { type: string; value: string }
|
|
31
|
-
seller: InvoicesDocumentsLayoutHelpers & { type: string; value: string }
|
|
32
|
-
paymentCondition: InvoicesDocumentsLayoutHelpers & {
|
|
33
|
-
type: string
|
|
34
|
-
value: string
|
|
35
|
-
}
|
|
17
|
+
authorization: InvoicesDocumentsLayoutHelpers
|
|
18
|
+
sequence: InvoicesDocumentsLayoutHelpers
|
|
19
|
+
date: InvoicesDocumentsLayoutHelpers
|
|
20
|
+
customer: InvoicesDocumentsLayoutHelpers
|
|
21
|
+
address1: InvoicesDocumentsLayoutHelpers
|
|
22
|
+
address2: InvoicesDocumentsLayoutHelpers
|
|
23
|
+
nrc: InvoicesDocumentsLayoutHelpers
|
|
24
|
+
nit: InvoicesDocumentsLayoutHelpers
|
|
25
|
+
dui: InvoicesDocumentsLayoutHelpers
|
|
26
|
+
country: InvoicesDocumentsLayoutHelpers
|
|
27
|
+
state: InvoicesDocumentsLayoutHelpers
|
|
28
|
+
city: InvoicesDocumentsLayoutHelpers
|
|
29
|
+
giro: InvoicesDocumentsLayoutHelpers
|
|
30
|
+
seller: InvoicesDocumentsLayoutHelpers
|
|
31
|
+
paymentCondition: InvoicesDocumentsLayoutHelpers
|
|
36
32
|
}
|
|
37
33
|
|
|
38
34
|
type InvoicesDocumentsLayoutDetails = {
|
|
39
35
|
fontSize: number
|
|
40
36
|
height: number
|
|
41
37
|
y: number
|
|
42
|
-
quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
value: string
|
|
49
|
-
}
|
|
50
|
-
price: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
51
|
-
type: string
|
|
52
|
-
value: string
|
|
53
|
-
}
|
|
54
|
-
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
55
|
-
type: string
|
|
56
|
-
value: string
|
|
57
|
-
}
|
|
58
|
-
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
59
|
-
type: string
|
|
60
|
-
value: string
|
|
61
|
-
}
|
|
62
|
-
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
63
|
-
type: string
|
|
64
|
-
value: string
|
|
65
|
-
}
|
|
38
|
+
quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
|
|
39
|
+
description: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
|
|
40
|
+
price: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
|
|
41
|
+
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
|
|
42
|
+
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
|
|
43
|
+
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
|
|
66
44
|
}
|
|
67
45
|
|
|
68
46
|
type InvoicesDocumentsLayoutTotals = {
|
|
69
47
|
fontSize: number
|
|
70
|
-
sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
type: string
|
|
80
|
-
value: string
|
|
81
|
-
}
|
|
82
|
-
retenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
83
|
-
type: string
|
|
84
|
-
value: string
|
|
85
|
-
}
|
|
86
|
-
percibido: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
87
|
-
type: string
|
|
88
|
-
value: string
|
|
89
|
-
}
|
|
90
|
-
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
91
|
-
type: string
|
|
92
|
-
value: string
|
|
93
|
-
}
|
|
94
|
-
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
95
|
-
type: string
|
|
96
|
-
value: string
|
|
97
|
-
}
|
|
98
|
-
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
99
|
-
type: string
|
|
100
|
-
value: string
|
|
101
|
-
}
|
|
102
|
-
vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
103
|
-
type: string
|
|
104
|
-
value: string
|
|
105
|
-
}
|
|
48
|
+
sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
49
|
+
taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
50
|
+
subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
51
|
+
retenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
52
|
+
percibido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
53
|
+
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
54
|
+
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
55
|
+
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
56
|
+
vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
106
57
|
}
|
|
107
58
|
|
|
108
59
|
export type InvoicesDocumentsLayout = {
|