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