@openbox/shared-types 0.3.17 → 0.3.19

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,5 +1,5 @@
1
1
  export type InvoicesCalculationsDetailsRequest = {
2
- id: string;
2
+ id?: string;
3
3
  service: string;
4
4
  quantity: number;
5
5
  unitPrice: number;
@@ -1,5 +1,5 @@
1
1
  export type InvoicesCalculationsDetailsResponse = {
2
- id: string;
2
+ id?: string;
3
3
  service: string;
4
4
  quantity: number;
5
5
  chargeDescription: string;
@@ -3,8 +3,8 @@ export type InvoicesDocumentsLayoutHelpers = {
3
3
  y?: number;
4
4
  l?: number;
5
5
  show: true | false;
6
- type: string;
7
- value: string;
6
+ type: 'text' | 'date' | 'money';
7
+ name: string;
8
8
  };
9
9
  type InvoicesDocumentsLayoutResolution = {
10
10
  width: number;
@@ -16,17 +16,20 @@ type InvoicesDocumentsLayoutHeader = {
16
16
  sequence: InvoicesDocumentsLayoutHelpers;
17
17
  date: InvoicesDocumentsLayoutHelpers;
18
18
  customer: InvoicesDocumentsLayoutHelpers;
19
+ shortName: InvoicesDocumentsLayoutHelpers;
20
+ customerBranch: InvoicesDocumentsLayoutHelpers;
19
21
  address1: InvoicesDocumentsLayoutHelpers;
20
22
  address2: InvoicesDocumentsLayoutHelpers;
23
+ seller: InvoicesDocumentsLayoutHelpers;
24
+ paymentCondition: InvoicesDocumentsLayoutHelpers;
25
+ giro: InvoicesDocumentsLayoutHelpers;
21
26
  nrc: InvoicesDocumentsLayoutHelpers;
22
27
  nit: InvoicesDocumentsLayoutHelpers;
23
28
  dui: InvoicesDocumentsLayoutHelpers;
29
+ passport: InvoicesDocumentsLayoutHelpers;
24
30
  country: InvoicesDocumentsLayoutHelpers;
25
31
  state: InvoicesDocumentsLayoutHelpers;
26
32
  city: InvoicesDocumentsLayoutHelpers;
27
- giro: InvoicesDocumentsLayoutHelpers;
28
- seller: InvoicesDocumentsLayoutHelpers;
29
- paymentCondition: InvoicesDocumentsLayoutHelpers;
30
33
  };
31
34
  type InvoicesDocumentsLayoutDetails = {
32
35
  fontSize: number;
@@ -43,6 +46,8 @@ type InvoicesDocumentsLayoutTotals = {
43
46
  fontSize: number;
44
47
  sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
45
48
  taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
49
+ renta5: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
50
+ renta10: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
46
51
  subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
47
52
  retenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
48
53
  percibido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.3.17",
3
+ "version": "0.3.19",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,5 +1,5 @@
1
1
  export type InvoicesCalculationsDetailsRequest = {
2
- id: string
2
+ id?: string
3
3
  service: string
4
4
  quantity: number
5
5
  unitPrice: number
@@ -1,6 +1,6 @@
1
1
  export type InvoicesCalculationsDetailsResponse = {
2
2
  // Returns the same information received
3
- id: string
3
+ id?: string
4
4
  service: string
5
5
  quantity: number
6
6
  chargeDescription: string
@@ -3,34 +3,34 @@ export type InvoicesDocumentsLayoutHelpers = {
3
3
  y?: number
4
4
  l?: number
5
5
  show: true | false
6
- type: string
7
- value: string
6
+ type: 'text' | 'date' | 'money'
7
+ name: string
8
8
  }
9
-
10
9
  type InvoicesDocumentsLayoutResolution = {
11
10
  width: number
12
11
  height: number
13
12
  }
14
-
15
13
  type InvoicesDocumentsLayoutHeader = {
16
14
  fontSize: number
17
15
  authorization: InvoicesDocumentsLayoutHelpers
18
16
  sequence: InvoicesDocumentsLayoutHelpers
19
17
  date: InvoicesDocumentsLayoutHelpers
20
18
  customer: InvoicesDocumentsLayoutHelpers
19
+ shortName: InvoicesDocumentsLayoutHelpers
20
+ customerBranch: InvoicesDocumentsLayoutHelpers
21
21
  address1: InvoicesDocumentsLayoutHelpers
22
22
  address2: InvoicesDocumentsLayoutHelpers
23
+ seller: InvoicesDocumentsLayoutHelpers
24
+ paymentCondition: InvoicesDocumentsLayoutHelpers
25
+ giro: InvoicesDocumentsLayoutHelpers
23
26
  nrc: InvoicesDocumentsLayoutHelpers
24
27
  nit: InvoicesDocumentsLayoutHelpers
25
28
  dui: InvoicesDocumentsLayoutHelpers
29
+ passport: InvoicesDocumentsLayoutHelpers
26
30
  country: InvoicesDocumentsLayoutHelpers
27
31
  state: InvoicesDocumentsLayoutHelpers
28
32
  city: InvoicesDocumentsLayoutHelpers
29
- giro: InvoicesDocumentsLayoutHelpers
30
- seller: InvoicesDocumentsLayoutHelpers
31
- paymentCondition: InvoicesDocumentsLayoutHelpers
32
33
  }
33
-
34
34
  type InvoicesDocumentsLayoutDetails = {
35
35
  fontSize: number
36
36
  height: number
@@ -42,11 +42,12 @@ type InvoicesDocumentsLayoutDetails = {
42
42
  vExenta: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
43
43
  vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'y'>
44
44
  }
45
-
46
45
  type InvoicesDocumentsLayoutTotals = {
47
46
  fontSize: number
48
47
  sum: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
49
48
  taxes: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
49
+ renta5: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
50
+ renta10: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
50
51
  subtotal: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
51
52
  retenido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
52
53
  percibido: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
@@ -55,10 +56,10 @@ type InvoicesDocumentsLayoutTotals = {
55
56
  vGravada: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
56
57
  vText: Omit<InvoicesDocumentsLayoutHelpers, 'l'>
57
58
  }
58
-
59
59
  export type InvoicesDocumentsLayout = {
60
60
  resolution: InvoicesDocumentsLayoutResolution
61
61
  header: InvoicesDocumentsLayoutHeader
62
62
  details: InvoicesDocumentsLayoutDetails
63
63
  totals: InvoicesDocumentsLayoutTotals
64
64
  }
65
+ export {}