@openbox/shared-types 0.2.77 → 0.2.79

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,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;
@@ -12,32 +10,116 @@ type InvoicesDocumentsLayoutResolution = {
12
10
  };
13
11
  type InvoicesDocumentsLayoutHeader = {
14
12
  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;
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
+ };
30
88
  };
31
89
  type InvoicesDocumentsLayoutDetails = {
32
90
  fontSize: number;
33
91
  height: number;
34
92
  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'>;
93
+ quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
94
+ type: 'text';
95
+ value: 'Cantidad';
96
+ order: 1;
97
+ };
98
+ description: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
99
+ type: 'text';
100
+ value: 'Descripción';
101
+ order: 2;
102
+ };
103
+ price: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
104
+ type: 'text';
105
+ value: 'Precio unitario';
106
+ order: 3;
107
+ };
108
+ vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
109
+ type: 'text';
110
+ value: 'Venta no sujeta';
111
+ order: 4;
112
+ };
113
+ vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
114
+ type: 'text';
115
+ value: 'Venta exenta';
116
+ order: 5;
117
+ };
118
+ vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
119
+ type: 'text';
120
+ value: 'Venta gravada';
121
+ order: 6;
122
+ };
41
123
  };
42
124
  type InvoicesDocumentsLayoutTotals = {
43
125
  fontSize: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.77",
3
+ "version": "0.2.79",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -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,33 +12,65 @@ type InvoicesDocumentsLayoutResolution = {
14
12
 
15
13
  type InvoicesDocumentsLayoutHeader = {
16
14
  fontSize: number
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
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 = {
35
41
  fontSize: number
36
42
  height: number
37
43
  y: number
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'>
44
+ quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
45
+ type: 'text'
46
+ value: 'Cantidad'
47
+ order: 1
48
+ }
49
+ description: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
50
+ type: 'text'
51
+ value: 'Descripción'
52
+ order: 2
53
+ }
54
+ price: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
55
+ type: 'text'
56
+ value: 'Precio unitario'
57
+ order: 3
58
+ }
59
+ vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
60
+ type: 'text'
61
+ value: 'Venta no sujeta'
62
+ order: 4
63
+ }
64
+ vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
65
+ type: 'text'
66
+ value: 'Venta exenta'
67
+ order: 5
68
+ }
69
+ vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
70
+ type: 'text'
71
+ value: 'Venta gravada'
72
+ order: 6
73
+ }
44
74
  }
45
75
 
46
76
  type InvoicesDocumentsLayoutTotals = {