@openbox/shared-types 0.3.9 → 0.3.11

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,4 +1,4 @@
1
- export type InvoicesCalculationsDetailsRequest = {
1
+ export type InvoicesCalculationsCalculateSingleRequest = {
2
2
  service: string;
3
3
  quantity: number;
4
4
  unitPrice: number;
@@ -11,5 +11,5 @@ export type InvoicesCalculationsDetailsRequest = {
11
11
  export type InvoicesCalculationSingleRequest = {
12
12
  document: string;
13
13
  customer: string;
14
- details: InvoicesCalculationsDetailsRequest[];
14
+ details: InvoicesCalculationsCalculateSingleRequest[];
15
15
  };
@@ -14,7 +14,7 @@ export type InvoicesCalculationsDetailsResponse = {
14
14
  vGravada: number;
15
15
  totalIvaPrice: number;
16
16
  rentaPrice5: number;
17
- rentaPrice10: number;
17
+ rentaPrice10?: number;
18
18
  sellingType: number;
19
19
  unitPriceToShow: number;
20
20
  vExentaToShow: number;
@@ -22,13 +22,13 @@ export type InvoicesCalculationsDetailsResponse = {
22
22
  vGravadaToShow: number;
23
23
  };
24
24
  export type InvoicesCalculationsTotalsResponse = {
25
+ id: string;
25
26
  name: string;
27
+ value: number;
26
28
  amount: number;
27
- id: string;
28
- show: boolean;
29
- style: string[];
29
+ style?: string[];
30
30
  };
31
- export type InvoicesCalculationSingleResponse = {
31
+ export type InvoicesCalculationCalculateSingleResponse = {
32
32
  details: InvoicesCalculationsDetailsResponse[];
33
33
  totals: InvoicesCalculationsTotalsResponse[];
34
34
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.3.09",
3
+ "version": "0.3.11",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,4 +1,4 @@
1
- export type InvoicesCalculationsDetailsRequest = {
1
+ export type InvoicesCalculationsCalculateSingleRequest = {
2
2
  service: string
3
3
  quantity: number
4
4
  unitPrice: number
@@ -12,5 +12,5 @@ export type InvoicesCalculationsDetailsRequest = {
12
12
  export type InvoicesCalculationSingleRequest = {
13
13
  document: string
14
14
  customer: string
15
- details: InvoicesCalculationsDetailsRequest[]
15
+ details: InvoicesCalculationsCalculateSingleRequest[]
16
16
  }
@@ -17,7 +17,7 @@ export type InvoicesCalculationsDetailsResponse = {
17
17
  vGravada: number
18
18
  totalIvaPrice: number
19
19
  rentaPrice5: number
20
- rentaPrice10: number
20
+ rentaPrice10?: number
21
21
  sellingType: number
22
22
 
23
23
  // Returns values to show in details table
@@ -28,14 +28,14 @@ export type InvoicesCalculationsDetailsResponse = {
28
28
  }
29
29
 
30
30
  export type InvoicesCalculationsTotalsResponse = {
31
+ id: string
31
32
  name: string
33
+ value: number
32
34
  amount: number
33
- id: string
34
- show: boolean
35
- style: string[]
35
+ style?: string[]
36
36
  }
37
37
 
38
- export type InvoicesCalculationSingleResponse = {
38
+ export type InvoicesCalculationCalculateSingleResponse = {
39
39
  details: InvoicesCalculationsDetailsResponse[]
40
40
  totals: InvoicesCalculationsTotalsResponse[]
41
41
  }