@openbox/shared-types 0.3.14 → 0.3.15

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,2 +1,12 @@
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
+ id: string;
6
+ action: 'create' | 'update' | 'delete';
7
+ };
8
+ export type InvoicesUpdateSingleRequest = {
9
+ header: InvoicesUpdateSingleHeader;
10
+ totals: InvoicesUpdateSingleTotals;
11
+ details: InvoicesUpdateSingleDetail[];
12
+ };
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.15",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,3 +1,23 @@
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
+ id: string
16
+ action: 'create' | 'update' | 'delete'
17
+ }
18
+
19
+ export type InvoicesUpdateSingleRequest = {
20
+ header: InvoicesUpdateSingleHeader
21
+ totals: InvoicesUpdateSingleTotals
22
+ details: InvoicesUpdateSingleDetail[]
23
+ }