@openbox/shared-types 0.5.20 → 0.5.22
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.
- package/lib/invoices/Invoices/CreateSingle/Request.d.ts +3 -3
- package/lib/invoices/Sellers/CreateSingle/Request.d.ts +2 -4
- package/lib/invoices/Sellers/invoices.sellers.type.d.ts +7 -0
- package/package.json +1 -1
- package/src/invoices/Invoices/CreateSingle/Request.ts +3 -3
- package/src/invoices/Sellers/CreateSingle/Request.ts +2 -7
- package/src/invoices/Sellers/invoices.sellers.type.ts +12 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type InvoicesCreateSingleHeader = {
|
|
2
|
-
document
|
|
2
|
+
document?: string;
|
|
3
3
|
documentType: number;
|
|
4
|
-
authorization
|
|
5
|
-
sequence
|
|
4
|
+
authorization?: string;
|
|
5
|
+
sequence?: number;
|
|
6
6
|
invoiceDate: string;
|
|
7
7
|
customer: string;
|
|
8
8
|
customerBranch: string;
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type InvoicesSellersCreateSingleRequest =
|
|
3
|
-
invoicesZone: string;
|
|
4
|
-
};
|
|
1
|
+
import { InvoicesSellersRequest } from '../invoices.sellers.type';
|
|
2
|
+
export type InvoicesSellersCreateSingleRequest = InvoicesSellersRequest;
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
import { SystemSvFields, SystemSvFieldsRequest } from '../../system';
|
|
1
2
|
import { InvoicesZones } from '../Zones/invoices.zones.type';
|
|
2
3
|
export interface InvoicesSellers {
|
|
3
4
|
id: string;
|
|
4
5
|
name: string;
|
|
5
6
|
active: boolean;
|
|
6
7
|
invoicesZone: Pick<InvoicesZones, 'id' | 'name'>;
|
|
8
|
+
svFields: SystemSvFields;
|
|
7
9
|
}
|
|
10
|
+
export type InvoicesSellersRequest = Omit<InvoicesSellers, 'id' | 'active' | 'invoicesZone' | 'svFields'> & {
|
|
11
|
+
invoicesZone: string;
|
|
12
|
+
svFields: SystemSvFieldsRequest;
|
|
13
|
+
};
|
|
14
|
+
export type InvoicesSellersResponse = InvoicesSellers;
|
package/package.json
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InvoicesSellersRequest } from '../invoices.sellers.type'
|
|
2
2
|
|
|
3
|
-
export type InvoicesSellersCreateSingleRequest =
|
|
4
|
-
InvoicesSellers,
|
|
5
|
-
'id' | 'active' | 'invoicesZone'
|
|
6
|
-
> & {
|
|
7
|
-
invoicesZone: string
|
|
8
|
-
}
|
|
3
|
+
export type InvoicesSellersCreateSingleRequest = InvoicesSellersRequest
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SystemSvFields, SystemSvFieldsRequest } from '../../system'
|
|
1
2
|
import { InvoicesZones } from '../Zones/invoices.zones.type'
|
|
2
3
|
|
|
3
4
|
export interface InvoicesSellers {
|
|
@@ -5,4 +6,15 @@ export interface InvoicesSellers {
|
|
|
5
6
|
name: string
|
|
6
7
|
active: boolean
|
|
7
8
|
invoicesZone: Pick<InvoicesZones, 'id' | 'name'>
|
|
9
|
+
svFields: SystemSvFields
|
|
8
10
|
}
|
|
11
|
+
|
|
12
|
+
export type InvoicesSellersRequest = Omit<
|
|
13
|
+
InvoicesSellers,
|
|
14
|
+
'id' | 'active' | 'invoicesZone' | 'svFields'
|
|
15
|
+
> & {
|
|
16
|
+
invoicesZone: string
|
|
17
|
+
svFields: SystemSvFieldsRequest
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type InvoicesSellersResponse = InvoicesSellers
|