@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: number;
4
- l: number;
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: 'text';
15
- value: 'Nº Authorizacion';
14
+ type: string;
15
+ value: string;
16
16
  };
17
17
  sequence: InvoicesDocumentsLayoutHelpers & {
18
- type: 'text';
19
- value: 'Correlativo';
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: 'text';
27
- value: 'Cliente';
26
+ type: string;
27
+ value: string;
28
28
  };
29
29
  address1: InvoicesDocumentsLayoutHelpers & {
30
- type: 'text';
31
- value: 'Direccion 1';
30
+ type: string;
31
+ value: string;
32
32
  };
33
33
  address2: InvoicesDocumentsLayoutHelpers & {
34
- type: 'text';
35
- value: 'Direccion 2';
34
+ type: string;
35
+ value: string;
36
36
  };
37
37
  nrc: InvoicesDocumentsLayoutHelpers & {
38
- type: 'text';
39
- value: 'NRC';
38
+ type: string;
39
+ value: string;
40
40
  };
41
41
  nit: InvoicesDocumentsLayoutHelpers & {
42
- type: 'text';
43
- value: 'NIT';
42
+ type: string;
43
+ value: string;
44
44
  };
45
45
  dui: InvoicesDocumentsLayoutHelpers & {
46
- type: 'text';
47
- value: 'DUI';
46
+ type: string;
47
+ value: string;
48
48
  };
49
49
  country: InvoicesDocumentsLayoutHelpers & {
50
- type: 'text';
51
- value: 'Pais';
50
+ type: string;
51
+ value: string;
52
52
  };
53
53
  state: InvoicesDocumentsLayoutHelpers & {
54
- type: 'text';
55
- value: 'Estado';
54
+ type: string;
55
+ value: string;
56
56
  };
57
57
  city: InvoicesDocumentsLayoutHelpers & {
58
- type: 'text';
59
- value: 'Ciudad';
58
+ type: string;
59
+ value: string;
60
60
  };
61
61
  giro: InvoicesDocumentsLayoutHelpers & {
62
- type: 'text';
63
- value: 'Giro';
62
+ type: string;
63
+ value: string;
64
64
  };
65
65
  seller: InvoicesDocumentsLayoutHelpers & {
66
- type: 'text';
67
- value: 'Venta a cuenta de';
66
+ type: string;
67
+ value: string;
68
68
  };
69
69
  paymentCondition: InvoicesDocumentsLayoutHelpers & {
70
- type: 'text';
71
- value: 'Condicion de pago';
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: 'text';
80
- value: 'Cantidad';
79
+ type: string;
80
+ value: string;
81
81
  };
82
82
  description: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
83
- type: 'text';
84
- value: 'Descripción';
83
+ type: string;
84
+ value: string;
85
85
  };
86
86
  price: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
87
- type: 'money';
88
- value: 'Precio unitario';
87
+ type: string;
88
+ value: string;
89
89
  };
90
90
  vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
91
- type: 'money';
92
- value: 'Venta no sujeta';
91
+ type: string;
92
+ value: string;
93
93
  };
94
94
  vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
95
- type: 'money';
96
- value: 'Venta exenta';
95
+ type: string;
96
+ value: string;
97
97
  };
98
98
  vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
99
- type: 'money';
100
- value: 'Venta gravada';
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: 'money';
107
- value: 'Sumas';
106
+ type: string;
107
+ value: string;
108
108
  };
109
109
  taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
110
- type: 'money';
111
- value: '13% Iva';
110
+ type: string;
111
+ value: string;
112
112
  };
113
113
  subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
114
- type: 'money';
115
- value: 'Subtotal';
114
+ type: string;
115
+ value: string;
116
116
  };
117
117
  retenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
118
- type: 'money';
119
- value: 'IVA Retenido';
118
+ type: string;
119
+ value: string;
120
120
  };
121
121
  percibido: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
122
- type: 'money';
123
- value: 'IVA Percibido';
122
+ type: string;
123
+ value: string;
124
124
  };
125
125
  vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
126
- type: 'money';
127
- value: 'Venta no sujeta';
126
+ type: string;
127
+ value: string;
128
128
  };
129
129
  vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
130
- type: 'money';
131
- value: 'Venta exenta';
130
+ type: string;
131
+ value: string;
132
132
  };
133
133
  vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
134
- type: 'money';
135
- value: 'Venta gravada';
134
+ type: string;
135
+ value: string;
136
136
  };
137
137
  vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
138
- type: 'text';
139
- value: 'Venta total (texto)';
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.80",
3
+ "version": "0.2.81",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,7 +1,7 @@
1
1
  type InvoicesDocumentsLayoutHelpers = {
2
2
  x: number
3
- y: number
4
- l: number
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: 'text'
17
- value: 'Nº Authorizacion'
16
+ type: string
17
+ value: string
18
18
  }
19
- sequence: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Correlativo' }
19
+ sequence: InvoicesDocumentsLayoutHelpers & { type: string; value: string }
20
20
  date: InvoicesDocumentsLayoutHelpers & { type: 'date'; value: 'Fecha' }
21
- customer: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Cliente' }
22
- address1: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Direccion 1' }
23
- address2: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Direccion 2' }
24
- nrc: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'NRC' }
25
- nit: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'NIT' }
26
- dui: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'DUI' }
27
- country: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Pais' }
28
- state: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Estado' }
29
- city: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Ciudad' }
30
- giro: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Giro' }
31
- seller: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Venta a cuenta de' }
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: 'text'
34
- value: 'Condicion de pago'
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: 'text'
44
- value: 'Cantidad'
43
+ type: string
44
+ value: string
45
45
  }
46
46
  description: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
47
- type: 'text'
48
- value: 'Descripción'
47
+ type: string
48
+ value: string
49
49
  }
50
50
  price: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
51
- type: 'money'
52
- value: 'Precio unitario'
51
+ type: string
52
+ value: string
53
53
  }
54
54
  vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
55
- type: 'money'
56
- value: 'Venta no sujeta'
55
+ type: string
56
+ value: string
57
57
  }
58
58
  vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
59
- type: 'money'
60
- value: 'Venta exenta'
59
+ type: string
60
+ value: string
61
61
  }
62
62
  vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
63
- type: 'money'
64
- value: 'Venta gravada'
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: 'money'
72
- value: 'Sumas'
71
+ type: string
72
+ value: string
73
73
  }
74
74
  taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
75
- type: 'money'
76
- value: '13% Iva'
75
+ type: string
76
+ value: string
77
77
  }
78
78
  subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
79
- type: 'money'
80
- value: 'Subtotal'
79
+ type: string
80
+ value: string
81
81
  }
82
82
  retenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
83
- type: 'money'
84
- value: 'IVA Retenido'
83
+ type: string
84
+ value: string
85
85
  }
86
86
  percibido: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
87
- type: 'money'
88
- value: 'IVA Percibido'
87
+ type: string
88
+ value: string
89
89
  }
90
90
  vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
91
- type: 'money'
92
- value: 'Venta no sujeta'
91
+ type: string
92
+ value: string
93
93
  }
94
94
  vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
95
- type: 'money'
96
- value: 'Venta exenta'
95
+ type: string
96
+ value: string
97
97
  }
98
98
  vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
99
- type: 'money'
100
- value: 'Venta gravada'
99
+ type: string
100
+ value: string
101
101
  }
102
102
  vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
103
- type: 'text'
104
- value: 'Venta total (texto)'
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
  }