@openbox/shared-types 0.2.76 → 0.2.78
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/lib/invoices/Documents/Layout/index.d.ts +118 -0
- package/lib/invoices/Documents/Layout/{Index.js → index.js} +1 -1
- package/lib/invoices/Documents/Layout/index.js.map +1 -0
- package/lib/invoices/Documents/index.d.ts +1 -1
- package/lib/invoices/Documents/index.js +1 -1
- package/lib/invoices/Documents/index.js.map +1 -1
- package/package.json +1 -1
- package/src/invoices/Documents/Layout/index.ts +23 -17
- package/src/invoices/Documents/index.ts +1 -1
- package/lib/invoices/Documents/Layout/Index.d.ts +0 -60
- package/lib/invoices/Documents/Layout/Index.js.map +0 -1
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
type InvoicesDocumentsLayoutHelpers = {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
l: number;
|
|
5
|
+
show: true | false;
|
|
6
|
+
};
|
|
7
|
+
type InvoicesDocumentsLayoutResolution = {
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
};
|
|
11
|
+
type InvoicesDocumentsLayoutHeader = {
|
|
12
|
+
fontSize: number;
|
|
13
|
+
authorization: InvoicesDocumentsLayoutHelpers & {
|
|
14
|
+
type: 'text';
|
|
15
|
+
value: 'Nº Authorizacion';
|
|
16
|
+
order: 1;
|
|
17
|
+
};
|
|
18
|
+
sequence: InvoicesDocumentsLayoutHelpers & {
|
|
19
|
+
type: 'text';
|
|
20
|
+
value: 'Correlativo';
|
|
21
|
+
order: 2;
|
|
22
|
+
};
|
|
23
|
+
date: InvoicesDocumentsLayoutHelpers & {
|
|
24
|
+
type: 'text';
|
|
25
|
+
value: 'Fecha';
|
|
26
|
+
order: 3;
|
|
27
|
+
};
|
|
28
|
+
customer: InvoicesDocumentsLayoutHelpers & {
|
|
29
|
+
type: 'text';
|
|
30
|
+
value: 'Cliente';
|
|
31
|
+
order: 4;
|
|
32
|
+
};
|
|
33
|
+
address1: InvoicesDocumentsLayoutHelpers & {
|
|
34
|
+
type: 'text';
|
|
35
|
+
value: 'Direccion 1';
|
|
36
|
+
order: 5;
|
|
37
|
+
};
|
|
38
|
+
address2: InvoicesDocumentsLayoutHelpers & {
|
|
39
|
+
type: 'text';
|
|
40
|
+
value: 'Direccion 2';
|
|
41
|
+
order: 6;
|
|
42
|
+
};
|
|
43
|
+
nrc: InvoicesDocumentsLayoutHelpers & {
|
|
44
|
+
type: 'text';
|
|
45
|
+
value: 'NRC';
|
|
46
|
+
order: 7;
|
|
47
|
+
};
|
|
48
|
+
nit: InvoicesDocumentsLayoutHelpers & {
|
|
49
|
+
type: 'text';
|
|
50
|
+
value: 'NIT';
|
|
51
|
+
order: 8;
|
|
52
|
+
};
|
|
53
|
+
dui: InvoicesDocumentsLayoutHelpers & {
|
|
54
|
+
type: 'text';
|
|
55
|
+
value: 'DUI';
|
|
56
|
+
order: 9;
|
|
57
|
+
};
|
|
58
|
+
country: InvoicesDocumentsLayoutHelpers & {
|
|
59
|
+
type: 'text';
|
|
60
|
+
value: 'Pais';
|
|
61
|
+
order: 10;
|
|
62
|
+
};
|
|
63
|
+
state: InvoicesDocumentsLayoutHelpers & {
|
|
64
|
+
type: 'text';
|
|
65
|
+
value: 'Estado';
|
|
66
|
+
order: 11;
|
|
67
|
+
};
|
|
68
|
+
city: InvoicesDocumentsLayoutHelpers & {
|
|
69
|
+
type: 'text';
|
|
70
|
+
value: 'Ciusad';
|
|
71
|
+
order: 12;
|
|
72
|
+
};
|
|
73
|
+
giro: InvoicesDocumentsLayoutHelpers & {
|
|
74
|
+
type: 'text';
|
|
75
|
+
value: 'Giro';
|
|
76
|
+
order: 13;
|
|
77
|
+
};
|
|
78
|
+
seller: InvoicesDocumentsLayoutHelpers & {
|
|
79
|
+
type: 'text';
|
|
80
|
+
value: 'Venta a cuenta de';
|
|
81
|
+
order: 4;
|
|
82
|
+
};
|
|
83
|
+
paymentCondition: InvoicesDocumentsLayoutHelpers & {
|
|
84
|
+
type: 'text';
|
|
85
|
+
value: 'Condicion de pago';
|
|
86
|
+
order: 5;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
type InvoicesDocumentsLayoutDetails = {
|
|
90
|
+
fontSize: number;
|
|
91
|
+
height: number;
|
|
92
|
+
y: number;
|
|
93
|
+
quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
94
|
+
description: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
95
|
+
price: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
96
|
+
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
97
|
+
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
98
|
+
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
|
|
99
|
+
};
|
|
100
|
+
type InvoicesDocumentsLayoutTotals = {
|
|
101
|
+
fontSize: number;
|
|
102
|
+
sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
103
|
+
taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
104
|
+
subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
105
|
+
tax: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
106
|
+
taxRetenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
107
|
+
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
108
|
+
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
109
|
+
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
110
|
+
vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
111
|
+
};
|
|
112
|
+
export type InvoicesDocumentsLayout = {
|
|
113
|
+
resolution: InvoicesDocumentsLayoutResolution;
|
|
114
|
+
header: InvoicesDocumentsLayoutHeader;
|
|
115
|
+
details: InvoicesDocumentsLayoutDetails;
|
|
116
|
+
totals: InvoicesDocumentsLayoutTotals;
|
|
117
|
+
};
|
|
118
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/Layout/index.ts"],"names":[],"mappings":""}
|
|
@@ -5,7 +5,7 @@ export * from './CreateSingle/Response';
|
|
|
5
5
|
export * from './GetMany/Request';
|
|
6
6
|
export * from './GetMany/Response';
|
|
7
7
|
export * from './GetSingle/Response';
|
|
8
|
-
export * from './Layout
|
|
8
|
+
export * from './Layout';
|
|
9
9
|
export * from './UpdateMany/Request';
|
|
10
10
|
export * from './UpdateMany/Response';
|
|
11
11
|
export * from './UpdateManyStatuses/Request';
|
|
@@ -21,7 +21,7 @@ __exportStar(require("./CreateSingle/Response"), exports);
|
|
|
21
21
|
__exportStar(require("./GetMany/Request"), exports);
|
|
22
22
|
__exportStar(require("./GetMany/Response"), exports);
|
|
23
23
|
__exportStar(require("./GetSingle/Response"), exports);
|
|
24
|
-
__exportStar(require("./Layout
|
|
24
|
+
__exportStar(require("./Layout"), exports);
|
|
25
25
|
__exportStar(require("./UpdateMany/Request"), exports);
|
|
26
26
|
__exportStar(require("./UpdateMany/Response"), exports);
|
|
27
27
|
__exportStar(require("./UpdateManyStatuses/Request"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/Documents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/Documents/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,wDAAqC;AACrC,yDAAsC;AACtC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,2CAAwB;AACxB,uDAAoC;AACpC,wDAAqC;AACrC,+DAA4C;AAC5C,gEAA6C;AAC7C,yDAAsC;AACtC,0DAAuC;AACvC,+DAA4C;AAC5C,gEAA6C;AAC7C,4DAAyC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
type InvoicesDocumentsLayoutHelpers = {
|
|
2
|
-
type: 'text' | 'date' | 'money'
|
|
3
|
-
value: string
|
|
4
2
|
x: number
|
|
5
3
|
y: number
|
|
6
4
|
l: number
|
|
@@ -14,21 +12,29 @@ type InvoicesDocumentsLayoutResolution = {
|
|
|
14
12
|
|
|
15
13
|
type InvoicesDocumentsLayoutHeader = {
|
|
16
14
|
fontSize: number
|
|
17
|
-
authorization: InvoicesDocumentsLayoutHelpers
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
15
|
+
authorization: InvoicesDocumentsLayoutHelpers & {
|
|
16
|
+
type: 'text'
|
|
17
|
+
value: 'Nº Authorizacion'
|
|
18
|
+
order: 1
|
|
19
|
+
}
|
|
20
|
+
sequence: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Correlativo'; order: 2 }
|
|
21
|
+
date: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Fecha'; order: 3 }
|
|
22
|
+
customer: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Cliente'; order: 4 }
|
|
23
|
+
address1: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Direccion 1'; order: 5 }
|
|
24
|
+
address2: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Direccion 2'; order: 6 }
|
|
25
|
+
nrc: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'NRC'; order: 7 }
|
|
26
|
+
nit: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'NIT'; order: 8 }
|
|
27
|
+
dui: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'DUI'; order: 9 }
|
|
28
|
+
country: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Pais'; order: 10 }
|
|
29
|
+
state: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Estado'; order: 11 }
|
|
30
|
+
city: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Ciusad'; order: 12 }
|
|
31
|
+
giro: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Giro'; order: 13 }
|
|
32
|
+
seller: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Venta a cuenta de'; order: 4 }
|
|
33
|
+
paymentCondition: InvoicesDocumentsLayoutHelpers & {
|
|
34
|
+
type: 'text'
|
|
35
|
+
value: 'Condicion de pago'
|
|
36
|
+
order: 5
|
|
37
|
+
}
|
|
32
38
|
}
|
|
33
39
|
|
|
34
40
|
type InvoicesDocumentsLayoutDetails = {
|
|
@@ -5,7 +5,7 @@ export * from './CreateSingle/Response'
|
|
|
5
5
|
export * from './GetMany/Request'
|
|
6
6
|
export * from './GetMany/Response'
|
|
7
7
|
export * from './GetSingle/Response'
|
|
8
|
-
export * from './Layout
|
|
8
|
+
export * from './Layout'
|
|
9
9
|
export * from './UpdateMany/Request'
|
|
10
10
|
export * from './UpdateMany/Response'
|
|
11
11
|
export * from './UpdateManyStatuses/Request'
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
type InvoicesDocumentsLayoutHelpers = {
|
|
2
|
-
type: 'text' | 'date' | 'money';
|
|
3
|
-
value: string;
|
|
4
|
-
x: number;
|
|
5
|
-
y: number;
|
|
6
|
-
l: number;
|
|
7
|
-
show: true | false;
|
|
8
|
-
};
|
|
9
|
-
type InvoicesDocumentsLayoutResolution = {
|
|
10
|
-
width: number;
|
|
11
|
-
height: number;
|
|
12
|
-
};
|
|
13
|
-
type InvoicesDocumentsLayoutHeader = {
|
|
14
|
-
fontSize: number;
|
|
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;
|
|
30
|
-
};
|
|
31
|
-
type InvoicesDocumentsLayoutDetails = {
|
|
32
|
-
fontSize: number;
|
|
33
|
-
height: number;
|
|
34
|
-
y: number;
|
|
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'>;
|
|
41
|
-
};
|
|
42
|
-
type InvoicesDocumentsLayoutTotals = {
|
|
43
|
-
fontSize: number;
|
|
44
|
-
sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
45
|
-
taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
46
|
-
subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
47
|
-
tax: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
48
|
-
taxRetenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
49
|
-
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
50
|
-
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
51
|
-
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
52
|
-
vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
|
|
53
|
-
};
|
|
54
|
-
export type InvoicesDocumentsLayout = {
|
|
55
|
-
resolution: InvoicesDocumentsLayoutResolution;
|
|
56
|
-
header: InvoicesDocumentsLayoutHeader;
|
|
57
|
-
details: InvoicesDocumentsLayoutDetails;
|
|
58
|
-
totals: InvoicesDocumentsLayoutTotals;
|
|
59
|
-
};
|
|
60
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Index.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/Layout/Index.ts"],"names":[],"mappings":""}
|