@openbox/shared-types 0.2.49 → 0.2.51

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,6 +1,8 @@
1
1
  export type SystemCountries = {
2
2
  id: number;
3
3
  name: string;
4
+ phoneFormat: string;
5
+ countryPhoneNumber: 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.49",
3
+ "version": "0.2.51",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,6 +1,8 @@
1
1
  export type SystemCountries = {
2
2
  id: number
3
3
  name: string
4
+ phoneFormat: string
5
+ countryPhoneNumber: 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