@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.
@@ -19,7 +19,7 @@ export type Customers = {
19
19
  nrc?: string;
20
20
  nit?: string;
21
21
  giro?: string;
22
- active: boolean;
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
- personTypeNatural: number;
37
+ personType: number;
38
+ taxerType?: number;
39
+ personTypeNatural?: number;
40
40
  branch: CustomersBranchesCreateSingleRequest;
41
41
  };
42
42
  export type CustomersResponse = Customers;
@@ -1,6 +1,8 @@
1
1
  export type SystemCountries = {
2
2
  id: number;
3
3
  name: string;
4
+ phoneFormat: string;
5
+ countryPhoneFormat: string;
4
6
  };
5
7
  export type SystemCountriesRequest = Omit<SystemCountries, 'id'>;
6
8
  export type SystemCountriesResponse = SystemCountries;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.48",
3
+ "version": "0.2.50",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -20,7 +20,7 @@ export type Customers = {
20
20
  nrc?: string
21
21
  nit?: string
22
22
  giro?: string
23
- active: boolean
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
- personTypeNatural: number
41
+ personType: number
42
+ taxerType?: number
43
+ personTypeNatural?: number
44
44
  branch: CustomersBranchesCreateSingleRequest
45
45
  }
46
46
  export type CustomersResponse = Customers
@@ -1,6 +1,8 @@
1
1
  export type SystemCountries = {
2
2
  id: number
3
3
  name: string
4
+ phoneFormat: string
5
+ countryPhoneFormat: string
4
6
  }
5
7
 
6
8
  export type SystemCountriesRequest = Omit<SystemCountries, 'id'>
@@ -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
- // customer: CustomersResponse
23
- // customerBranch: CustomersBranchesResponse
25
+ customer: CustomersResponse
26
+ customerBranch: CustomersBranchesResponse
24
27
  // invoicesSellers: InvoicesSellersResponse
25
28
  }
26
29