@openbox/shared-types 0.2.54 → 0.2.55
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,5 +1,6 @@
|
|
|
1
1
|
import { SystemCitiesResponse } from '../../system/Cities/system.cities.types';
|
|
2
2
|
import { SystemCountriesResponse } from '../../system/Countries/system.countries.types';
|
|
3
|
+
import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types';
|
|
3
4
|
import { SystemStatesResponse } from '../../system/States/system.states.types';
|
|
4
5
|
import { CustomersResponse } from '../Customers/customers.types';
|
|
5
6
|
export type CustomersBranches = {
|
|
@@ -13,11 +14,15 @@ export type CustomersBranches = {
|
|
|
13
14
|
city: SystemCitiesResponse;
|
|
14
15
|
country: SystemCountriesResponse;
|
|
15
16
|
state: SystemStatesResponse;
|
|
17
|
+
directory: SystemDirectoryResponse[];
|
|
16
18
|
};
|
|
17
|
-
export type CustomersBranchesRequest = Omit<CustomersBranches, 'id' | 'city' | 'country' | 'state' | 'customer'> & {
|
|
19
|
+
export type CustomersBranchesRequest = Omit<CustomersBranches, 'id' | 'city' | 'country' | 'state' | 'customer' | 'directory'> & {
|
|
18
20
|
customer: string;
|
|
19
21
|
city: number;
|
|
20
22
|
country: number;
|
|
21
23
|
state: number;
|
|
24
|
+
phone: string;
|
|
25
|
+
email: string;
|
|
26
|
+
cellphone: string;
|
|
22
27
|
};
|
|
23
28
|
export type CustomersBranchesResponse = CustomersBranches;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types';
|
|
1
2
|
import { SystemNaturalTypesGetSingleResponse } from '../../system/NaturalTypes/GetSingle/Response';
|
|
2
3
|
import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetSingle/Response';
|
|
3
4
|
import { SystemSellingTypeGetSingleResponse } from '../../system/SellingTypes/GetSingle/Response';
|
|
@@ -31,8 +32,9 @@ export type Customers = {
|
|
|
31
32
|
personTypeNatural: SystemNaturalTypesGetSingleResponse;
|
|
32
33
|
taxerType: SystemTaxerTypesGetSingleResponse;
|
|
33
34
|
branch?: CustomersBranchesResponse;
|
|
35
|
+
directory: SystemDirectoryResponse[];
|
|
34
36
|
};
|
|
35
|
-
export type CustomersRequest = Omit<Customers, 'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'branch'> & {
|
|
37
|
+
export type CustomersRequest = Omit<Customers, 'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'branch' | 'directory'> & {
|
|
36
38
|
type: number;
|
|
37
39
|
personType: number;
|
|
38
40
|
taxerType?: number;
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SystemCitiesResponse } from '../../system/Cities/system.cities.types'
|
|
2
2
|
import { SystemCountriesResponse } from '../../system/Countries/system.countries.types'
|
|
3
|
+
import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types'
|
|
3
4
|
import { SystemStatesResponse } from '../../system/States/system.states.types'
|
|
4
5
|
import { CustomersResponse } from '../Customers/customers.types'
|
|
5
6
|
|
|
@@ -11,8 +12,6 @@ import { CustomersResponse } from '../Customers/customers.types'
|
|
|
11
12
|
export type CustomersBranches = {
|
|
12
13
|
id: string
|
|
13
14
|
name: string
|
|
14
|
-
// contactName: string
|
|
15
|
-
// contactInfo: CustomerBranchesContactInfo
|
|
16
15
|
address1: string
|
|
17
16
|
address2?: string
|
|
18
17
|
zipcode?: string
|
|
@@ -21,15 +20,19 @@ export type CustomersBranches = {
|
|
|
21
20
|
city: SystemCitiesResponse
|
|
22
21
|
country: SystemCountriesResponse
|
|
23
22
|
state: SystemStatesResponse
|
|
23
|
+
directory: SystemDirectoryResponse[]
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export type CustomersBranchesRequest = Omit<
|
|
27
27
|
CustomersBranches,
|
|
28
|
-
'id' | 'city' | 'country' | 'state' | 'customer'
|
|
28
|
+
'id' | 'city' | 'country' | 'state' | 'customer' | 'directory'
|
|
29
29
|
> & {
|
|
30
30
|
customer: string
|
|
31
31
|
city: number
|
|
32
32
|
country: number
|
|
33
33
|
state: number
|
|
34
|
+
phone: string
|
|
35
|
+
email: string
|
|
36
|
+
cellphone: string
|
|
34
37
|
}
|
|
35
38
|
export type CustomersBranchesResponse = CustomersBranches
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types'
|
|
1
2
|
import { SystemNaturalTypesGetSingleResponse } from '../../system/NaturalTypes/GetSingle/Response'
|
|
2
3
|
import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetSingle/Response'
|
|
3
4
|
import { SystemSellingTypeGetSingleResponse } from '../../system/SellingTypes/GetSingle/Response'
|
|
@@ -32,10 +33,11 @@ export type Customers = {
|
|
|
32
33
|
personTypeNatural: SystemNaturalTypesGetSingleResponse
|
|
33
34
|
taxerType: SystemTaxerTypesGetSingleResponse
|
|
34
35
|
branch?: CustomersBranchesResponse
|
|
36
|
+
directory: SystemDirectoryResponse[]
|
|
35
37
|
}
|
|
36
38
|
export type CustomersRequest = Omit<
|
|
37
39
|
Customers,
|
|
38
|
-
'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'branch'
|
|
40
|
+
'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'branch' | 'directory'
|
|
39
41
|
> & {
|
|
40
42
|
type: number
|
|
41
43
|
personType: number
|