@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
- type: string;
15
- value: string;
16
- };
17
- sequence: InvoicesDocumentsLayoutHelpers & {
18
- type: string;
19
- value: string;
20
- };
21
- date: InvoicesDocumentsLayoutHelpers & {
22
- type: 'date';
23
- value: 'Fecha';
24
- };
25
- customer: InvoicesDocumentsLayoutHelpers & {
26
- type: string;
27
- value: string;
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
- type: string;
80
- value: string;
81
- };
82
- description: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
83
- type: string;
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
- 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
- };
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.81",
3
+ "version": "0.2.83",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -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
- 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 }
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
- type: string
44
- value: string
45
- }
46
- description: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
47
- type: string
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
- 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
- }
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 = {