@openbox/shared-types 0.5.21 → 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.
@@ -1,4 +1,2 @@
1
- import { InvoicesSellers } from '../invoices.sellers.type';
2
- export type InvoicesSellersCreateSingleRequest = Omit<InvoicesSellers, 'id' | 'active' | 'invoicesZone'> & {
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.5.21",
3
+ "version": "0.5.22",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,8 +1,3 @@
1
- import { InvoicesSellers } from '../invoices.sellers.type'
1
+ import { InvoicesSellersRequest } from '../invoices.sellers.type'
2
2
 
3
- export type InvoicesSellersCreateSingleRequest = Omit<
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