@openbox/shared-types 0.2.79 → 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.
- package/lib/invoices/Documents/Layout/index.d.ts +79 -73
- package/lib/invoices/Documents/UpdateLayout/Request.d.ts +2 -0
- package/lib/invoices/Documents/UpdateLayout/Request.js +3 -0
- package/lib/invoices/Documents/UpdateLayout/Request.js.map +1 -0
- package/lib/invoices/Documents/UpdateLayout/Response.d.ts +2 -0
- package/lib/invoices/Documents/UpdateLayout/Response.js +3 -0
- package/lib/invoices/Documents/UpdateLayout/Response.js.map +1 -0
- package/lib/invoices/Documents/index.d.ts +2 -0
- package/lib/invoices/Documents/index.js +2 -0
- package/lib/invoices/Documents/index.js.map +1 -1
- package/lib/invoices/Documents/invoices.documents.type.d.ts +2 -0
- package/package.json +1 -1
- package/src/invoices/Documents/Layout/index.ts +68 -49
- package/src/invoices/Documents/UpdateLayout/Request.ts +3 -0
- package/src/invoices/Documents/UpdateLayout/Response.ts +3 -0
- package/src/invoices/Documents/index.ts +2 -0
- package/src/invoices/Documents/invoices.documents.type.ts +2 -0
|
@@ -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,79 +11,64 @@ type InvoicesDocumentsLayoutResolution = {
|
|
|
11
11
|
type InvoicesDocumentsLayoutHeader = {
|
|
12
12
|
fontSize: number;
|
|
13
13
|
authorization: InvoicesDocumentsLayoutHelpers & {
|
|
14
|
-
type:
|
|
15
|
-
value:
|
|
16
|
-
order: 1;
|
|
14
|
+
type: string;
|
|
15
|
+
value: string;
|
|
17
16
|
};
|
|
18
17
|
sequence: InvoicesDocumentsLayoutHelpers & {
|
|
19
|
-
type:
|
|
20
|
-
value:
|
|
21
|
-
order: 2;
|
|
18
|
+
type: string;
|
|
19
|
+
value: string;
|
|
22
20
|
};
|
|
23
21
|
date: InvoicesDocumentsLayoutHelpers & {
|
|
24
|
-
type: '
|
|
22
|
+
type: 'date';
|
|
25
23
|
value: 'Fecha';
|
|
26
|
-
order: 3;
|
|
27
24
|
};
|
|
28
25
|
customer: InvoicesDocumentsLayoutHelpers & {
|
|
29
|
-
type:
|
|
30
|
-
value:
|
|
31
|
-
order: 4;
|
|
26
|
+
type: string;
|
|
27
|
+
value: string;
|
|
32
28
|
};
|
|
33
29
|
address1: InvoicesDocumentsLayoutHelpers & {
|
|
34
|
-
type:
|
|
35
|
-
value:
|
|
36
|
-
order: 5;
|
|
30
|
+
type: string;
|
|
31
|
+
value: string;
|
|
37
32
|
};
|
|
38
33
|
address2: InvoicesDocumentsLayoutHelpers & {
|
|
39
|
-
type:
|
|
40
|
-
value:
|
|
41
|
-
order: 6;
|
|
34
|
+
type: string;
|
|
35
|
+
value: string;
|
|
42
36
|
};
|
|
43
37
|
nrc: InvoicesDocumentsLayoutHelpers & {
|
|
44
|
-
type:
|
|
45
|
-
value:
|
|
46
|
-
order: 7;
|
|
38
|
+
type: string;
|
|
39
|
+
value: string;
|
|
47
40
|
};
|
|
48
41
|
nit: InvoicesDocumentsLayoutHelpers & {
|
|
49
|
-
type:
|
|
50
|
-
value:
|
|
51
|
-
order: 8;
|
|
42
|
+
type: string;
|
|
43
|
+
value: string;
|
|
52
44
|
};
|
|
53
45
|
dui: InvoicesDocumentsLayoutHelpers & {
|
|
54
|
-
type:
|
|
55
|
-
value:
|
|
56
|
-
order: 9;
|
|
46
|
+
type: string;
|
|
47
|
+
value: string;
|
|
57
48
|
};
|
|
58
49
|
country: InvoicesDocumentsLayoutHelpers & {
|
|
59
|
-
type:
|
|
60
|
-
value:
|
|
61
|
-
order: 10;
|
|
50
|
+
type: string;
|
|
51
|
+
value: string;
|
|
62
52
|
};
|
|
63
53
|
state: InvoicesDocumentsLayoutHelpers & {
|
|
64
|
-
type:
|
|
65
|
-
value:
|
|
66
|
-
order: 11;
|
|
54
|
+
type: string;
|
|
55
|
+
value: string;
|
|
67
56
|
};
|
|
68
57
|
city: InvoicesDocumentsLayoutHelpers & {
|
|
69
|
-
type:
|
|
70
|
-
value:
|
|
71
|
-
order: 12;
|
|
58
|
+
type: string;
|
|
59
|
+
value: string;
|
|
72
60
|
};
|
|
73
61
|
giro: InvoicesDocumentsLayoutHelpers & {
|
|
74
|
-
type:
|
|
75
|
-
value:
|
|
76
|
-
order: 13;
|
|
62
|
+
type: string;
|
|
63
|
+
value: string;
|
|
77
64
|
};
|
|
78
65
|
seller: InvoicesDocumentsLayoutHelpers & {
|
|
79
|
-
type:
|
|
80
|
-
value:
|
|
81
|
-
order: 4;
|
|
66
|
+
type: string;
|
|
67
|
+
value: string;
|
|
82
68
|
};
|
|
83
69
|
paymentCondition: InvoicesDocumentsLayoutHelpers & {
|
|
84
|
-
type:
|
|
85
|
-
value:
|
|
86
|
-
order: 5;
|
|
70
|
+
type: string;
|
|
71
|
+
value: string;
|
|
87
72
|
};
|
|
88
73
|
};
|
|
89
74
|
type InvoicesDocumentsLayoutDetails = {
|
|
@@ -91,47 +76,68 @@ type InvoicesDocumentsLayoutDetails = {
|
|
|
91
76
|
height: number;
|
|
92
77
|
y: number;
|
|
93
78
|
quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
94
|
-
type:
|
|
95
|
-
value:
|
|
96
|
-
order: 1;
|
|
79
|
+
type: string;
|
|
80
|
+
value: string;
|
|
97
81
|
};
|
|
98
82
|
description: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
99
|
-
type:
|
|
100
|
-
value:
|
|
101
|
-
order: 2;
|
|
83
|
+
type: string;
|
|
84
|
+
value: string;
|
|
102
85
|
};
|
|
103
86
|
price: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
104
|
-
type:
|
|
105
|
-
value:
|
|
106
|
-
order: 3;
|
|
87
|
+
type: string;
|
|
88
|
+
value: string;
|
|
107
89
|
};
|
|
108
90
|
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
109
|
-
type:
|
|
110
|
-
value:
|
|
111
|
-
order: 4;
|
|
91
|
+
type: string;
|
|
92
|
+
value: string;
|
|
112
93
|
};
|
|
113
94
|
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
114
|
-
type:
|
|
115
|
-
value:
|
|
116
|
-
order: 5;
|
|
95
|
+
type: string;
|
|
96
|
+
value: string;
|
|
117
97
|
};
|
|
118
98
|
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
119
|
-
type:
|
|
120
|
-
value:
|
|
121
|
-
order: 6;
|
|
99
|
+
type: string;
|
|
100
|
+
value: string;
|
|
122
101
|
};
|
|
123
102
|
};
|
|
124
103
|
type InvoicesDocumentsLayoutTotals = {
|
|
125
104
|
fontSize: number;
|
|
126
|
-
sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
105
|
+
sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
106
|
+
type: string;
|
|
107
|
+
value: string;
|
|
108
|
+
};
|
|
109
|
+
taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
110
|
+
type: string;
|
|
111
|
+
value: string;
|
|
112
|
+
};
|
|
113
|
+
subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
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
|
+
};
|
|
135
141
|
};
|
|
136
142
|
export type InvoicesDocumentsLayout = {
|
|
137
143
|
resolution: InvoicesDocumentsLayoutResolution;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/UpdateLayout/Request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/UpdateLayout/Response.ts"],"names":[],"mappings":""}
|
|
@@ -6,6 +6,8 @@ export * from './GetMany/Request';
|
|
|
6
6
|
export * from './GetMany/Response';
|
|
7
7
|
export * from './GetSingle/Response';
|
|
8
8
|
export * from './Layout';
|
|
9
|
+
export * from './UpdateLayout/Request';
|
|
10
|
+
export * from './UpdateLayout/Response';
|
|
9
11
|
export * from './UpdateMany/Request';
|
|
10
12
|
export * from './UpdateMany/Response';
|
|
11
13
|
export * from './UpdateManyStatuses/Request';
|
|
@@ -22,6 +22,8 @@ __exportStar(require("./GetMany/Request"), exports);
|
|
|
22
22
|
__exportStar(require("./GetMany/Response"), exports);
|
|
23
23
|
__exportStar(require("./GetSingle/Response"), exports);
|
|
24
24
|
__exportStar(require("./Layout"), exports);
|
|
25
|
+
__exportStar(require("./UpdateLayout/Request"), exports);
|
|
26
|
+
__exportStar(require("./UpdateLayout/Response"), exports);
|
|
25
27
|
__exportStar(require("./UpdateMany/Request"), exports);
|
|
26
28
|
__exportStar(require("./UpdateMany/Response"), exports);
|
|
27
29
|
__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,2CAAwB;AACxB,uDAAoC;AACpC,wDAAqC;AACrC,+DAA4C;AAC5C,gEAA6C;AAC7C,yDAAsC;AACtC,0DAAuC;AACvC,+DAA4C;AAC5C,gEAA6C;AAC7C,4DAAyC"}
|
|
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,yDAAsC;AACtC,0DAAuC;AACvC,uDAAoC;AACpC,wDAAqC;AACrC,+DAA4C;AAC5C,gEAA6C;AAC7C,yDAAsC;AACtC,0DAAuC;AACvC,+DAA4C;AAC5C,gEAA6C;AAC7C,4DAAyC"}
|
|
@@ -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,27 +13,25 @@ type InvoicesDocumentsLayoutResolution = {
|
|
|
13
13
|
type InvoicesDocumentsLayoutHeader = {
|
|
14
14
|
fontSize: number
|
|
15
15
|
authorization: InvoicesDocumentsLayoutHelpers & {
|
|
16
|
-
type:
|
|
17
|
-
value:
|
|
18
|
-
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
seller: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Venta a cuenta de'; order: 4 }
|
|
16
|
+
type: string
|
|
17
|
+
value: string
|
|
18
|
+
}
|
|
19
|
+
sequence: InvoicesDocumentsLayoutHelpers & { type: string; value: string }
|
|
20
|
+
date: InvoicesDocumentsLayoutHelpers & { type: 'date'; value: 'Fecha' }
|
|
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 }
|
|
33
32
|
paymentCondition: InvoicesDocumentsLayoutHelpers & {
|
|
34
|
-
type:
|
|
35
|
-
value:
|
|
36
|
-
order: 5
|
|
33
|
+
type: string
|
|
34
|
+
value: string
|
|
37
35
|
}
|
|
38
36
|
}
|
|
39
37
|
|
|
@@ -42,48 +40,69 @@ type InvoicesDocumentsLayoutDetails = {
|
|
|
42
40
|
height: number
|
|
43
41
|
y: number
|
|
44
42
|
quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
45
|
-
type:
|
|
46
|
-
value:
|
|
47
|
-
order: 1
|
|
43
|
+
type: string
|
|
44
|
+
value: string
|
|
48
45
|
}
|
|
49
46
|
description: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
50
|
-
type:
|
|
51
|
-
value:
|
|
52
|
-
order: 2
|
|
47
|
+
type: string
|
|
48
|
+
value: string
|
|
53
49
|
}
|
|
54
50
|
price: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
55
|
-
type:
|
|
56
|
-
value:
|
|
57
|
-
order: 3
|
|
51
|
+
type: string
|
|
52
|
+
value: string
|
|
58
53
|
}
|
|
59
54
|
vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
60
|
-
type:
|
|
61
|
-
value:
|
|
62
|
-
order: 4
|
|
55
|
+
type: string
|
|
56
|
+
value: string
|
|
63
57
|
}
|
|
64
58
|
vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
65
|
-
type:
|
|
66
|
-
value:
|
|
67
|
-
order: 5
|
|
59
|
+
type: string
|
|
60
|
+
value: string
|
|
68
61
|
}
|
|
69
62
|
vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
|
|
70
|
-
type:
|
|
71
|
-
value:
|
|
72
|
-
order: 6
|
|
63
|
+
type: string
|
|
64
|
+
value: string
|
|
73
65
|
}
|
|
74
66
|
}
|
|
75
67
|
|
|
76
68
|
type InvoicesDocumentsLayoutTotals = {
|
|
77
69
|
fontSize: number
|
|
78
|
-
sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
70
|
+
sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
71
|
+
type: string
|
|
72
|
+
value: string
|
|
73
|
+
}
|
|
74
|
+
taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
75
|
+
type: string
|
|
76
|
+
value: string
|
|
77
|
+
}
|
|
78
|
+
subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
|
|
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
|
+
}
|
|
87
106
|
}
|
|
88
107
|
|
|
89
108
|
export type InvoicesDocumentsLayout = {
|
|
@@ -6,6 +6,8 @@ export * from './GetMany/Request'
|
|
|
6
6
|
export * from './GetMany/Response'
|
|
7
7
|
export * from './GetSingle/Response'
|
|
8
8
|
export * from './Layout'
|
|
9
|
+
export * from './UpdateLayout/Request'
|
|
10
|
+
export * from './UpdateLayout/Response'
|
|
9
11
|
export * from './UpdateMany/Request'
|
|
10
12
|
export * from './UpdateMany/Response'
|
|
11
13
|
export * from './UpdateManyStatuses/Request'
|
|
@@ -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
|
}
|