@openbox/shared-types 0.2.78 → 0.2.80

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.
@@ -13,101 +13,131 @@ type InvoicesDocumentsLayoutHeader = {
13
13
  authorization: InvoicesDocumentsLayoutHelpers & {
14
14
  type: 'text';
15
15
  value: 'Nº Authorizacion';
16
- order: 1;
17
16
  };
18
17
  sequence: InvoicesDocumentsLayoutHelpers & {
19
18
  type: 'text';
20
19
  value: 'Correlativo';
21
- order: 2;
22
20
  };
23
21
  date: InvoicesDocumentsLayoutHelpers & {
24
- type: 'text';
22
+ type: 'date';
25
23
  value: 'Fecha';
26
- order: 3;
27
24
  };
28
25
  customer: InvoicesDocumentsLayoutHelpers & {
29
26
  type: 'text';
30
27
  value: 'Cliente';
31
- order: 4;
32
28
  };
33
29
  address1: InvoicesDocumentsLayoutHelpers & {
34
30
  type: 'text';
35
31
  value: 'Direccion 1';
36
- order: 5;
37
32
  };
38
33
  address2: InvoicesDocumentsLayoutHelpers & {
39
34
  type: 'text';
40
35
  value: 'Direccion 2';
41
- order: 6;
42
36
  };
43
37
  nrc: InvoicesDocumentsLayoutHelpers & {
44
38
  type: 'text';
45
39
  value: 'NRC';
46
- order: 7;
47
40
  };
48
41
  nit: InvoicesDocumentsLayoutHelpers & {
49
42
  type: 'text';
50
43
  value: 'NIT';
51
- order: 8;
52
44
  };
53
45
  dui: InvoicesDocumentsLayoutHelpers & {
54
46
  type: 'text';
55
47
  value: 'DUI';
56
- order: 9;
57
48
  };
58
49
  country: InvoicesDocumentsLayoutHelpers & {
59
50
  type: 'text';
60
51
  value: 'Pais';
61
- order: 10;
62
52
  };
63
53
  state: InvoicesDocumentsLayoutHelpers & {
64
54
  type: 'text';
65
55
  value: 'Estado';
66
- order: 11;
67
56
  };
68
57
  city: InvoicesDocumentsLayoutHelpers & {
69
58
  type: 'text';
70
- value: 'Ciusad';
71
- order: 12;
59
+ value: 'Ciudad';
72
60
  };
73
61
  giro: InvoicesDocumentsLayoutHelpers & {
74
62
  type: 'text';
75
63
  value: 'Giro';
76
- order: 13;
77
64
  };
78
65
  seller: InvoicesDocumentsLayoutHelpers & {
79
66
  type: 'text';
80
67
  value: 'Venta a cuenta de';
81
- order: 4;
82
68
  };
83
69
  paymentCondition: InvoicesDocumentsLayoutHelpers & {
84
70
  type: 'text';
85
71
  value: 'Condicion de pago';
86
- order: 5;
87
72
  };
88
73
  };
89
74
  type InvoicesDocumentsLayoutDetails = {
90
75
  fontSize: number;
91
76
  height: number;
92
77
  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'>;
78
+ quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
79
+ type: 'text';
80
+ value: 'Cantidad';
81
+ };
82
+ description: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
83
+ type: 'text';
84
+ value: 'Descripción';
85
+ };
86
+ price: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
87
+ type: 'money';
88
+ value: 'Precio unitario';
89
+ };
90
+ vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
91
+ type: 'money';
92
+ value: 'Venta no sujeta';
93
+ };
94
+ vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
95
+ type: 'money';
96
+ value: 'Venta exenta';
97
+ };
98
+ vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
99
+ type: 'money';
100
+ value: 'Venta gravada';
101
+ };
99
102
  };
100
103
  type InvoicesDocumentsLayoutTotals = {
101
104
  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'>;
105
+ sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
106
+ type: 'money';
107
+ value: 'Sumas';
108
+ };
109
+ taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
110
+ type: 'money';
111
+ value: '13% Iva';
112
+ };
113
+ subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
114
+ type: 'money';
115
+ value: 'Subtotal';
116
+ };
117
+ retenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
118
+ type: 'money';
119
+ value: 'IVA Retenido';
120
+ };
121
+ percibido: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
122
+ type: 'money';
123
+ value: 'IVA Percibido';
124
+ };
125
+ vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
126
+ type: 'money';
127
+ value: 'Venta no sujeta';
128
+ };
129
+ vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
130
+ type: 'money';
131
+ value: 'Venta exenta';
132
+ };
133
+ vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
134
+ type: 'money';
135
+ value: 'Venta gravada';
136
+ };
137
+ vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
138
+ type: 'text';
139
+ value: 'Venta total (texto)';
140
+ };
111
141
  };
112
142
  export type InvoicesDocumentsLayout = {
113
143
  resolution: InvoicesDocumentsLayoutResolution;
@@ -0,0 +1,2 @@
1
+ import { InvoicesDocumentsLayout } from '../Layout';
2
+ export type InvoicesDocumentsUpdateLayoutRequest = InvoicesDocumentsLayout;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/UpdateLayout/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type InvoicesDocumentsUpdateLayoutResponse = SingleResponse;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Response.js.map
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.78",
3
+ "version": "0.2.80",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -15,25 +15,23 @@ type InvoicesDocumentsLayoutHeader = {
15
15
  authorization: InvoicesDocumentsLayoutHelpers & {
16
16
  type: 'text'
17
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 }
18
+ }
19
+ sequence: InvoicesDocumentsLayoutHelpers & { type: 'text'; value: 'Correlativo' }
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' }
33
32
  paymentCondition: InvoicesDocumentsLayoutHelpers & {
34
33
  type: 'text'
35
34
  value: 'Condicion de pago'
36
- order: 5
37
35
  }
38
36
  }
39
37
 
@@ -41,25 +39,70 @@ type InvoicesDocumentsLayoutDetails = {
41
39
  fontSize: number
42
40
  height: number
43
41
  y: number
44
- quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
45
- description: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
46
- price: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
47
- vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
48
- vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
49
- vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
42
+ quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
43
+ type: 'text'
44
+ value: 'Cantidad'
45
+ }
46
+ description: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
47
+ type: 'text'
48
+ value: 'Descripción'
49
+ }
50
+ price: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
51
+ type: 'money'
52
+ value: 'Precio unitario'
53
+ }
54
+ vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
55
+ type: 'money'
56
+ value: 'Venta no sujeta'
57
+ }
58
+ vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
59
+ type: 'money'
60
+ value: 'Venta exenta'
61
+ }
62
+ vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
63
+ type: 'money'
64
+ value: 'Venta gravada'
65
+ }
50
66
  }
51
67
 
52
68
  type InvoicesDocumentsLayoutTotals = {
53
69
  fontSize: number
54
- sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
55
- taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
56
- subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
57
- tax: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
58
- taxRetenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
59
- vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
60
- vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
61
- vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
62
- vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
70
+ sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
71
+ type: 'money'
72
+ value: 'Sumas'
73
+ }
74
+ taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
75
+ type: 'money'
76
+ value: '13% Iva'
77
+ }
78
+ subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
79
+ type: 'money'
80
+ value: 'Subtotal'
81
+ }
82
+ retenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
83
+ type: 'money'
84
+ value: 'IVA Retenido'
85
+ }
86
+ percibido: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
87
+ type: 'money'
88
+ value: 'IVA Percibido'
89
+ }
90
+ vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
91
+ type: 'money'
92
+ value: 'Venta no sujeta'
93
+ }
94
+ vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
95
+ type: 'money'
96
+ value: 'Venta exenta'
97
+ }
98
+ vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
99
+ type: 'money'
100
+ value: 'Venta gravada'
101
+ }
102
+ vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'> & {
103
+ type: 'text'
104
+ value: 'Venta total (texto)'
105
+ }
63
106
  }
64
107
 
65
108
  export type InvoicesDocumentsLayout = {
@@ -0,0 +1,3 @@
1
+ import { InvoicesDocumentsLayout } from '../Layout'
2
+
3
+ export type InvoicesDocumentsUpdateLayoutRequest = InvoicesDocumentsLayout
@@ -0,0 +1,3 @@
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type InvoicesDocumentsUpdateLayoutResponse = SingleResponse
@@ -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'