@openbox/shared-types 0.3.16 → 0.3.18

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,5 @@
1
1
  export type InvoicesCalculationsDetailsRequest = {
2
+ id?: string;
2
3
  service: string;
3
4
  quantity: number;
4
5
  unitPrice: number;
@@ -1,4 +1,5 @@
1
1
  export type InvoicesCalculationsDetailsResponse = {
2
+ id?: string;
2
3
  service: string;
3
4
  quantity: number;
4
5
  chargeDescription: string;
@@ -21,7 +21,6 @@ export type InvoicesCreateSingleTotals = {
21
21
  ventaTotal: number;
22
22
  };
23
23
  export type InvoicesCreateSingleDetail = {
24
- id?: string;
25
24
  service: string;
26
25
  quantity: number;
27
26
  chargeDescription: string;
@@ -1,7 +1,9 @@
1
1
  import { InvoicesCreateSingleDetail, InvoicesCreateSingleHeader, InvoicesCreateSingleTotals } from '../CreateSingle/Request';
2
2
  export type InvoicesUpdateSingleHeader = Omit<InvoicesCreateSingleHeader, 'document' | 'authorization' | 'sequence'>;
3
3
  export type InvoicesUpdateSingleTotals = InvoicesCreateSingleTotals;
4
- export type InvoicesUpdateSingleDetail = InvoicesCreateSingleDetail;
4
+ export type InvoicesUpdateSingleDetail = InvoicesCreateSingleDetail & {
5
+ id: string;
6
+ };
5
7
  export type InvoicesUpdateSingleRequest = {
6
8
  header: InvoicesUpdateSingleHeader;
7
9
  totals: InvoicesUpdateSingleTotals;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,4 +1,5 @@
1
1
  export type InvoicesCalculationsDetailsRequest = {
2
+ id?: string
2
3
  service: string
3
4
  quantity: number
4
5
  unitPrice: number
@@ -1,5 +1,6 @@
1
1
  export type InvoicesCalculationsDetailsResponse = {
2
2
  // Returns the same information received
3
+ id?: string
3
4
  service: string
4
5
  quantity: number
5
6
  chargeDescription: string
@@ -24,7 +24,6 @@ export type InvoicesCreateSingleTotals = {
24
24
 
25
25
  export type InvoicesCreateSingleDetail = {
26
26
  // Basic values
27
- id?: string
28
27
  service: string
29
28
  quantity: number
30
29
  chargeDescription: string
@@ -11,7 +11,9 @@ export type InvoicesUpdateSingleHeader = Omit<
11
11
 
12
12
  export type InvoicesUpdateSingleTotals = InvoicesCreateSingleTotals
13
13
 
14
- export type InvoicesUpdateSingleDetail = InvoicesCreateSingleDetail
14
+ export type InvoicesUpdateSingleDetail = InvoicesCreateSingleDetail & {
15
+ id: string
16
+ }
15
17
 
16
18
  export type InvoicesUpdateSingleRequest = {
17
19
  header: InvoicesUpdateSingleHeader