@openbox/shared-types 0.2.74 → 0.2.76
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.
- package/lib/invoices/Documents/GetMany/Response.d.ts +4 -2
- package/lib/invoices/Documents/Layout/Index.d.ts +60 -0
- package/lib/invoices/Documents/{GetSingleLayout/Response.js → Layout/Index.js} +1 -1
- package/lib/invoices/Documents/Layout/Index.js.map +1 -0
- package/lib/invoices/Documents/index.d.ts +1 -1
- package/lib/invoices/Documents/index.js +1 -1
- package/lib/invoices/Documents/index.js.map +1 -1
- package/package.json +1 -1
- package/src/invoices/Documents/GetMany/Response.ts +2 -2
- package/src/invoices/Documents/Layout/index.ts +64 -0
- package/src/invoices/Documents/index.ts +1 -1
- package/lib/invoices/Documents/GetSingleLayout/Response.d.ts +0 -28
- package/lib/invoices/Documents/GetSingleLayout/Response.js.map +0 -1
- package/src/invoices/Documents/GetSingleLayout/Response.ts +0 -31
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { GetManyResponse } from '../../../interfaces';
|
|
2
|
-
import {
|
|
2
|
+
import { InvoicesDocumentsGetSingleResponse } from '../GetSingle/Response';
|
|
3
3
|
export type InvoicesDocumentsGetManyResponse = GetManyResponse & {
|
|
4
|
-
data: Array<
|
|
4
|
+
data: Array<InvoicesDocumentsGetSingleResponse & {
|
|
5
|
+
index: number;
|
|
6
|
+
}>;
|
|
5
7
|
};
|
|
@@ -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 {};
|
|
@@ -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 './
|
|
8
|
+
export * from './Layout/Index';
|
|
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("./
|
|
24
|
+
__exportStar(require("./Layout/Index"), 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,
|
|
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,iDAA8B;AAC9B,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
|
import { GetManyResponse } from '../../../interfaces'
|
|
2
|
-
import {
|
|
2
|
+
import { InvoicesDocumentsGetSingleResponse } from '../GetSingle/Response'
|
|
3
3
|
|
|
4
4
|
export type InvoicesDocumentsGetManyResponse = GetManyResponse & {
|
|
5
|
-
data: Array<
|
|
5
|
+
data: Array<InvoicesDocumentsGetSingleResponse & { index: number }>
|
|
6
6
|
}
|
|
@@ -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 './
|
|
8
|
+
export * from './Layout/Index'
|
|
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
|
-
}
|