@openbox/shared-types 0.3.15 → 0.3.16

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.
@@ -21,6 +21,7 @@ export type InvoicesCreateSingleTotals = {
21
21
  ventaTotal: number;
22
22
  };
23
23
  export type InvoicesCreateSingleDetail = {
24
+ id?: string;
24
25
  service: string;
25
26
  quantity: number;
26
27
  chargeDescription: string;
@@ -1,10 +1,7 @@
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 & {
5
- id: string;
6
- action: 'create' | 'update' | 'delete';
7
- };
4
+ export type InvoicesUpdateSingleDetail = InvoicesCreateSingleDetail;
8
5
  export type InvoicesUpdateSingleRequest = {
9
6
  header: InvoicesUpdateSingleHeader;
10
7
  totals: InvoicesUpdateSingleTotals;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.3.15",
3
+ "version": "0.3.16",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -24,6 +24,7 @@ export type InvoicesCreateSingleTotals = {
24
24
 
25
25
  export type InvoicesCreateSingleDetail = {
26
26
  // Basic values
27
+ id?: string
27
28
  service: string
28
29
  quantity: number
29
30
  chargeDescription: string
@@ -11,10 +11,7 @@ export type InvoicesUpdateSingleHeader = Omit<
11
11
 
12
12
  export type InvoicesUpdateSingleTotals = InvoicesCreateSingleTotals
13
13
 
14
- export type InvoicesUpdateSingleDetail = InvoicesCreateSingleDetail & {
15
- id: string
16
- action: 'create' | 'update' | 'delete'
17
- }
14
+ export type InvoicesUpdateSingleDetail = InvoicesCreateSingleDetail
18
15
 
19
16
  export type InvoicesUpdateSingleRequest = {
20
17
  header: InvoicesUpdateSingleHeader