@openbox/shared-types 0.3.14 → 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,2 +1,9 @@
1
- import { InvoicesCreateSingleReservedRequest } from '../CreateReserved/Request';
2
- export type InvoicesUpdateSingleRequest = Partial<InvoicesCreateSingleReservedRequest>;
1
+ import { InvoicesCreateSingleDetail, InvoicesCreateSingleHeader, InvoicesCreateSingleTotals } from '../CreateSingle/Request';
2
+ export type InvoicesUpdateSingleHeader = Omit<InvoicesCreateSingleHeader, 'document' | 'authorization' | 'sequence'>;
3
+ export type InvoicesUpdateSingleTotals = InvoicesCreateSingleTotals;
4
+ export type InvoicesUpdateSingleDetail = InvoicesCreateSingleDetail;
5
+ export type InvoicesUpdateSingleRequest = {
6
+ header: InvoicesUpdateSingleHeader;
7
+ totals: InvoicesUpdateSingleTotals;
8
+ details: InvoicesUpdateSingleDetail[];
9
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.3.14",
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
@@ -1,3 +1,20 @@
1
- import { InvoicesCreateSingleReservedRequest } from '../CreateReserved/Request'
1
+ import {
2
+ InvoicesCreateSingleDetail,
3
+ InvoicesCreateSingleHeader,
4
+ InvoicesCreateSingleTotals,
5
+ } from '../CreateSingle/Request'
2
6
 
3
- export type InvoicesUpdateSingleRequest = Partial<InvoicesCreateSingleReservedRequest>
7
+ export type InvoicesUpdateSingleHeader = Omit<
8
+ InvoicesCreateSingleHeader,
9
+ 'document' | 'authorization' | 'sequence'
10
+ >
11
+
12
+ export type InvoicesUpdateSingleTotals = InvoicesCreateSingleTotals
13
+
14
+ export type InvoicesUpdateSingleDetail = InvoicesCreateSingleDetail
15
+
16
+ export type InvoicesUpdateSingleRequest = {
17
+ header: InvoicesUpdateSingleHeader
18
+ totals: InvoicesUpdateSingleTotals
19
+ details: InvoicesUpdateSingleDetail[]
20
+ }