@openbox/shared-types 0.2.79 → 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,79 +11,64 @@ type InvoicesDocumentsLayoutResolution = {
11
11
  type InvoicesDocumentsLayoutHeader = {
12
12
  fontSize: number;
13
13
  authorization: InvoicesDocumentsLayoutHelpers & {
14
- type: 'text';
15
- value: 'Nº Authorizacion';
16
- order: 1;
14
+ type: string;
15
+ value: string;
17
16
  };
18
17
  sequence: InvoicesDocumentsLayoutHelpers & {
19
- type: 'text';
20
- value: 'Correlativo';
21
- order: 2;
18
+ type: string;
19
+ value: string;
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
- type: 'text';
30
- value: 'Cliente';
31
- order: 4;
26
+ type: string;
27
+ value: string;
32
28
  };
33
29
  address1: InvoicesDocumentsLayoutHelpers & {
34
- type: 'text';
35
- value: 'Direccion 1';
36
- order: 5;
30
+ type: string;
31
+ value: string;
37
32
  };
38
33
  address2: InvoicesDocumentsLayoutHelpers & {
39
- type: 'text';
40
- value: 'Direccion 2';
41
- order: 6;
34
+ type: string;
35
+ value: string;
42
36
  };
43
37
  nrc: InvoicesDocumentsLayoutHelpers & {
44
- type: 'text';
45
- value: 'NRC';
46
- order: 7;
38
+ type: string;
39
+ value: string;
47
40
  };
48
41
  nit: InvoicesDocumentsLayoutHelpers & {
49
- type: 'text';
50
- value: 'NIT';
51
- order: 8;
42
+ type: string;
43
+ value: string;
52
44
  };
53
45
  dui: InvoicesDocumentsLayoutHelpers & {
54
- type: 'text';
55
- value: 'DUI';
56
- order: 9;
46
+ type: string;
47
+ value: string;
57
48
  };
58
49
  country: InvoicesDocumentsLayoutHelpers & {
59
- type: 'text';
60
- value: 'Pais';
61
- order: 10;
50
+ type: string;
51
+ value: string;
62
52
  };
63
53
  state: InvoicesDocumentsLayoutHelpers & {
64
- type: 'text';
65
- value: 'Estado';
66
- order: 11;
54
+ type: string;
55
+ value: string;
67
56
  };
68
57
  city: InvoicesDocumentsLayoutHelpers & {
69
- type: 'text';
70
- value: 'Ciusad';
71
- order: 12;
58
+ type: string;
59
+ value: string;
72
60
  };
73
61
  giro: InvoicesDocumentsLayoutHelpers & {
74
- type: 'text';
75
- value: 'Giro';
76
- order: 13;
62
+ type: string;
63
+ value: string;
77
64
  };
78
65
  seller: InvoicesDocumentsLayoutHelpers & {
79
- type: 'text';
80
- value: 'Venta a cuenta de';
81
- order: 4;
66
+ type: string;
67
+ value: string;
82
68
  };
83
69
  paymentCondition: InvoicesDocumentsLayoutHelpers & {
84
- type: 'text';
85
- value: 'Condicion de pago';
86
- order: 5;
70
+ type: string;
71
+ value: string;
87
72
  };
88
73
  };
89
74
  type InvoicesDocumentsLayoutDetails = {
@@ -91,47 +76,68 @@ type InvoicesDocumentsLayoutDetails = {
91
76
  height: number;
92
77
  y: number;
93
78
  quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
94
- type: 'text';
95
- value: 'Cantidad';
96
- order: 1;
79
+ type: string;
80
+ value: string;
97
81
  };
98
82
  description: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
99
- type: 'text';
100
- value: 'Descripción';
101
- order: 2;
83
+ type: string;
84
+ value: string;
102
85
  };
103
86
  price: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
104
- type: 'text';
105
- value: 'Precio unitario';
106
- order: 3;
87
+ type: string;
88
+ value: string;
107
89
  };
108
90
  vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
109
- type: 'text';
110
- value: 'Venta no sujeta';
111
- order: 4;
91
+ type: string;
92
+ value: string;
112
93
  };
113
94
  vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
114
- type: 'text';
115
- value: 'Venta exenta';
116
- order: 5;
95
+ type: string;
96
+ value: string;
117
97
  };
118
98
  vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
119
- type: 'text';
120
- value: 'Venta gravada';
121
- order: 6;
99
+ type: string;
100
+ value: string;
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: 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
+ };
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"}
@@ -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.79",
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,27 +13,25 @@ type InvoicesDocumentsLayoutResolution = {
13
13
  type InvoicesDocumentsLayoutHeader = {
14
14
  fontSize: number
15
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 }
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 }
33
32
  paymentCondition: InvoicesDocumentsLayoutHelpers & {
34
- type: 'text'
35
- value: 'Condicion de pago'
36
- order: 5
33
+ type: string
34
+ value: string
37
35
  }
38
36
  }
39
37
 
@@ -42,48 +40,69 @@ type InvoicesDocumentsLayoutDetails = {
42
40
  height: number
43
41
  y: number
44
42
  quantity: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
45
- type: 'text'
46
- value: 'Cantidad'
47
- order: 1
43
+ type: string
44
+ value: string
48
45
  }
49
46
  description: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
50
- type: 'text'
51
- value: 'Descripción'
52
- order: 2
47
+ type: string
48
+ value: string
53
49
  }
54
50
  price: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
55
- type: 'text'
56
- value: 'Precio unitario'
57
- order: 3
51
+ type: string
52
+ value: string
58
53
  }
59
54
  vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
60
- type: 'text'
61
- value: 'Venta no sujeta'
62
- order: 4
55
+ type: string
56
+ value: string
63
57
  }
64
58
  vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
65
- type: 'text'
66
- value: 'Venta exenta'
67
- order: 5
59
+ type: string
60
+ value: string
68
61
  }
69
62
  vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'> & {
70
- type: 'text'
71
- value: 'Venta gravada'
72
- order: 6
63
+ type: string
64
+ value: string
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: 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
+ }
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'
@@ -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
  }