@openbox/shared-types 0.2.75 → 0.2.77

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.
@@ -0,0 +1,60 @@
1
+ type InvoicesDocumentsLayoutHelpers = {
2
+ type: 'text' | 'date' | 'money';
3
+ value: string;
4
+ x: number;
5
+ y: number;
6
+ l: number;
7
+ show: true | false;
8
+ };
9
+ type InvoicesDocumentsLayoutResolution = {
10
+ width: number;
11
+ height: number;
12
+ };
13
+ type InvoicesDocumentsLayoutHeader = {
14
+ 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;
30
+ };
31
+ type InvoicesDocumentsLayoutDetails = {
32
+ fontSize: number;
33
+ height: number;
34
+ 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'>;
41
+ };
42
+ type InvoicesDocumentsLayoutTotals = {
43
+ fontSize: number;
44
+ sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
45
+ taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
46
+ subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
47
+ tax: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
48
+ taxRetenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
49
+ vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
50
+ vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
51
+ vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
52
+ vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
53
+ };
54
+ export type InvoicesDocumentsLayout = {
55
+ resolution: InvoicesDocumentsLayoutResolution;
56
+ header: InvoicesDocumentsLayoutHeader;
57
+ details: InvoicesDocumentsLayoutDetails;
58
+ totals: InvoicesDocumentsLayoutTotals;
59
+ };
60
+ export {};
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=Response.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/Layout/index.ts"],"names":[],"mappings":""}
@@ -5,7 +5,7 @@ export * from './CreateSingle/Response';
5
5
  export * from './GetMany/Request';
6
6
  export * from './GetMany/Response';
7
7
  export * from './GetSingle/Response';
8
- export * from './GetSingleLayout/Response';
8
+ export * from './Layout';
9
9
  export * from './UpdateMany/Request';
10
10
  export * from './UpdateMany/Response';
11
11
  export * from './UpdateManyStatuses/Request';
@@ -21,7 +21,7 @@ __exportStar(require("./CreateSingle/Response"), exports);
21
21
  __exportStar(require("./GetMany/Request"), exports);
22
22
  __exportStar(require("./GetMany/Response"), exports);
23
23
  __exportStar(require("./GetSingle/Response"), exports);
24
- __exportStar(require("./GetSingleLayout/Response"), exports);
24
+ __exportStar(require("./Layout"), exports);
25
25
  __exportStar(require("./UpdateMany/Request"), exports);
26
26
  __exportStar(require("./UpdateMany/Response"), exports);
27
27
  __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,6DAA0C;AAC1C,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,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.75",
3
+ "version": "0.2.77",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -0,0 +1,64 @@
1
+ type InvoicesDocumentsLayoutHelpers = {
2
+ type: 'text' | 'date' | 'money'
3
+ value: string
4
+ x: number
5
+ y: number
6
+ l: number
7
+ show: true | false
8
+ }
9
+
10
+ type InvoicesDocumentsLayoutResolution = {
11
+ width: number
12
+ height: number
13
+ }
14
+
15
+ type InvoicesDocumentsLayoutHeader = {
16
+ 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
32
+ }
33
+
34
+ type InvoicesDocumentsLayoutDetails = {
35
+ fontSize: number
36
+ height: number
37
+ 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
+ }
45
+
46
+ type InvoicesDocumentsLayoutTotals = {
47
+ fontSize: number
48
+ sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
49
+ taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
50
+ subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
51
+ tax: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
52
+ taxRetenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
53
+ vNoSujeta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
54
+ vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
55
+ vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
56
+ vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
57
+ }
58
+
59
+ export type InvoicesDocumentsLayout = {
60
+ resolution: InvoicesDocumentsLayoutResolution
61
+ header: InvoicesDocumentsLayoutHeader
62
+ details: InvoicesDocumentsLayoutDetails
63
+ totals: InvoicesDocumentsLayoutTotals
64
+ }
@@ -5,7 +5,7 @@ export * from './CreateSingle/Response'
5
5
  export * from './GetMany/Request'
6
6
  export * from './GetMany/Response'
7
7
  export * from './GetSingle/Response'
8
- export * from './GetSingleLayout/Response'
8
+ export * from './Layout'
9
9
  export * from './UpdateMany/Request'
10
10
  export * from './UpdateMany/Response'
11
11
  export * from './UpdateManyStatuses/Request'
@@ -1,28 +0,0 @@
1
- export type InvoicesDocumentsLayoutHelpers = {
2
- length: number;
3
- value: string;
4
- type: string;
5
- x: number;
6
- y: number;
7
- };
8
- export type InvoicesDocumentsShortPositionsLayout = Omit<InvoicesDocumentsLayoutHelpers, 'y'>;
9
- export type InvoicesDocumentsDetailsPositionsLayout = {
10
- position_y: number;
11
- height: number;
12
- quantity: InvoicesDocumentsShortPositionsLayout;
13
- description: InvoicesDocumentsShortPositionsLayout;
14
- price: InvoicesDocumentsShortPositionsLayout;
15
- sujeto: InvoicesDocumentsShortPositionsLayout;
16
- exento: InvoicesDocumentsShortPositionsLayout;
17
- afecto: InvoicesDocumentsShortPositionsLayout;
18
- };
19
- export type InvoicesDocumentsLayoutSingleResponse = {
20
- configuration: string;
21
- resolution: number[];
22
- header: InvoicesDocumentsLayoutHelpers[];
23
- details: InvoicesDocumentsDetailsPositionsLayout;
24
- totals: Omit<InvoicesDocumentsLayoutHelpers, 'length'>[];
25
- fontSizeDetails: number;
26
- fontSizeHeader: number;
27
- fontSizeTotals: number;
28
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/invoices/Documents/GetSingleLayout/Response.ts"],"names":[],"mappings":""}
@@ -1,31 +0,0 @@
1
- export type InvoicesDocumentsLayoutHelpers = {
2
- length: number
3
- value: string
4
- type: string
5
- x: number
6
- y: number
7
- }
8
-
9
- export type InvoicesDocumentsShortPositionsLayout = Omit<InvoicesDocumentsLayoutHelpers, 'y'>
10
-
11
- export type InvoicesDocumentsDetailsPositionsLayout = {
12
- position_y: number
13
- height: number
14
- quantity: InvoicesDocumentsShortPositionsLayout
15
- description: InvoicesDocumentsShortPositionsLayout
16
- price: InvoicesDocumentsShortPositionsLayout
17
- sujeto: InvoicesDocumentsShortPositionsLayout
18
- exento: InvoicesDocumentsShortPositionsLayout
19
- afecto: InvoicesDocumentsShortPositionsLayout
20
- }
21
-
22
- export type InvoicesDocumentsLayoutSingleResponse = {
23
- configuration: string
24
- resolution: number[]
25
- header: InvoicesDocumentsLayoutHelpers[]
26
- details: InvoicesDocumentsDetailsPositionsLayout
27
- totals: Omit<InvoicesDocumentsLayoutHelpers, 'length'>[]
28
- fontSizeDetails: number
29
- fontSizeHeader: number
30
- fontSizeTotals: number
31
- }