@openbox/shared-types 0.2.79 → 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,77 +13,62 @@ 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 = {
@@ -93,45 +78,66 @@ type InvoicesDocumentsLayoutDetails = {
93
78
  quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
94
79
  type: 'text';
95
80
  value: 'Cantidad';
96
- order: 1;
97
81
  };
98
82
  description: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
99
83
  type: 'text';
100
84
  value: 'Descripción';
101
- order: 2;
102
85
  };
103
86
  price: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
104
- type: 'text';
87
+ type: 'money';
105
88
  value: 'Precio unitario';
106
- order: 3;
107
89
  };
108
90
  vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
109
- type: 'text';
91
+ type: 'money';
110
92
  value: 'Venta no sujeta';
111
- order: 4;
112
93
  };
113
94
  vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
114
- type: 'text';
95
+ type: 'money';
115
96
  value: 'Venta exenta';
116
- order: 5;
117
97
  };
118
98
  vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
119
- type: 'text';
99
+ type: 'money';
120
100
  value: 'Venta gravada';
121
- order: 6;
122
101
  };
123
102
  };
124
103
  type InvoicesDocumentsLayoutTotals = {
125
104
  fontSize: number;
126
- sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
127
- taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
128
- subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
129
- tax: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
130
- taxRetenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
131
- vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
132
- vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
133
- vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
134
- 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
+ };
135
141
  };
136
142
  export type InvoicesDocumentsLayout = {
137
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.79",
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
 
@@ -44,46 +42,67 @@ type InvoicesDocumentsLayoutDetails = {
44
42
  quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
45
43
  type: 'text'
46
44
  value: 'Cantidad'
47
- order: 1
48
45
  }
49
46
  description: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
50
47
  type: 'text'
51
48
  value: 'Descripción'
52
- order: 2
53
49
  }
54
50
  price: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
55
- type: 'text'
51
+ type: 'money'
56
52
  value: 'Precio unitario'
57
- order: 3
58
53
  }
59
54
  vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
60
- type: 'text'
55
+ type: 'money'
61
56
  value: 'Venta no sujeta'
62
- order: 4
63
57
  }
64
58
  vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
65
- type: 'text'
59
+ type: 'money'
66
60
  value: 'Venta exenta'
67
- order: 5
68
61
  }
69
62
  vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
70
- type: 'text'
63
+ type: 'money'
71
64
  value: 'Venta gravada'
72
- order: 6
73
65
  }
74
66
  }
75
67
 
76
68
  type InvoicesDocumentsLayoutTotals = {
77
69
  fontSize: number
78
- sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
79
- taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
80
- subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
81
- tax: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
82
- taxRetenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
83
- vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
84
- vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
85
- vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
86
- 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
+ }
87
106
  }
88
107
 
89
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'