@openbox/shared-types 0.2.48 → 0.2.50
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/customers/Customers/customers.types.d.ts +4 -4
- package/lib/system/Countries/system.countries.types.d.ts +2 -0
- package/lib/system/Directory/system.directory.types.d.ts +4 -0
- package/package.json +1 -1
- package/src/customers/Customers/customers.types.ts +4 -4
- package/src/system/Countries/system.countries.types.ts +2 -0
- package/src/system/Directory/system.directory.types.ts +5 -2
|
@@ -19,7 +19,7 @@ export type Customers = {
|
|
|
19
19
|
nrc?: string;
|
|
20
20
|
nit?: string;
|
|
21
21
|
giro?: string;
|
|
22
|
-
active
|
|
22
|
+
active?: boolean;
|
|
23
23
|
passportIssuedDate?: Date;
|
|
24
24
|
passportExpirationDate?: Date;
|
|
25
25
|
profession?: string;
|
|
@@ -33,10 +33,10 @@ export type Customers = {
|
|
|
33
33
|
branch?: CustomersBranchesResponse;
|
|
34
34
|
};
|
|
35
35
|
export type CustomersRequest = Omit<Customers, 'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'branch'> & {
|
|
36
|
-
taxerType: number;
|
|
37
|
-
personType: number;
|
|
38
36
|
type: number;
|
|
39
|
-
|
|
37
|
+
personType: number;
|
|
38
|
+
taxerType?: number;
|
|
39
|
+
personTypeNatural?: number;
|
|
40
40
|
branch: CustomersBranchesCreateSingleRequest;
|
|
41
41
|
};
|
|
42
42
|
export type CustomersResponse = Customers;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.types';
|
|
2
|
+
import { CustomersResponse } from '../../customers/Customers/customers.types';
|
|
1
3
|
export type SystemDirectoryType = 'phone' | 'cellphone' | 'email';
|
|
2
4
|
export type SystemDirectoryEntityType = 'warehouse' | 'company' | 'customer' | 'customerBranch' | 'invoicesSeller' | 'legalJurisdiction' | 'appointee' | 'assignee';
|
|
3
5
|
export type SystemDirectory = {
|
|
@@ -5,6 +7,8 @@ export type SystemDirectory = {
|
|
|
5
7
|
type: SystemDirectoryType;
|
|
6
8
|
value: string;
|
|
7
9
|
hasWhatsapp?: boolean;
|
|
10
|
+
customer: CustomersResponse;
|
|
11
|
+
customerBranch: CustomersBranchesResponse;
|
|
8
12
|
};
|
|
9
13
|
export type SystemDirectoryRequest = Omit<SystemDirectory, 'id' | 'customer' | 'customerBranch' | 'invoicesSellers'> & {
|
|
10
14
|
entityType: SystemDirectoryEntityType;
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@ export type Customers = {
|
|
|
20
20
|
nrc?: string
|
|
21
21
|
nit?: string
|
|
22
22
|
giro?: string
|
|
23
|
-
active
|
|
23
|
+
active?: boolean
|
|
24
24
|
passportIssuedDate?: Date
|
|
25
25
|
passportExpirationDate?: Date
|
|
26
26
|
profession?: string
|
|
@@ -37,10 +37,10 @@ export type CustomersRequest = Omit<
|
|
|
37
37
|
Customers,
|
|
38
38
|
'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'branch'
|
|
39
39
|
> & {
|
|
40
|
-
taxerType: number
|
|
41
|
-
personType: number
|
|
42
40
|
type: number
|
|
43
|
-
|
|
41
|
+
personType: number
|
|
42
|
+
taxerType?: number
|
|
43
|
+
personTypeNatural?: number
|
|
44
44
|
branch: CustomersBranchesCreateSingleRequest
|
|
45
45
|
}
|
|
46
46
|
export type CustomersResponse = Customers
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.types'
|
|
2
|
+
import { CustomersResponse } from '../../customers/Customers/customers.types'
|
|
3
|
+
|
|
1
4
|
export type SystemDirectoryType = 'phone' | 'cellphone' | 'email'
|
|
2
5
|
|
|
3
6
|
export type SystemDirectoryEntityType =
|
|
@@ -19,8 +22,8 @@ export type SystemDirectory = {
|
|
|
19
22
|
// appointee: LegalAppointeesEntity
|
|
20
23
|
// assignee: LegalAssigneesEntity
|
|
21
24
|
// legalJurisdiction: LegalJurisdictionsEntity
|
|
22
|
-
|
|
23
|
-
|
|
25
|
+
customer: CustomersResponse
|
|
26
|
+
customerBranch: CustomersBranchesResponse
|
|
24
27
|
// invoicesSellers: InvoicesSellersResponse
|
|
25
28
|
}
|
|
26
29
|
|