@openbox/shared-types 0.3.0 → 0.3.2

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,3 +1,4 @@
1
+ import { SystemDirectoryCreateSingleRequest } from '../../system';
1
2
  import { SystemCitiesResponse } from '../../system/Cities/system.cities.types';
2
3
  import { SystemCountriesResponse } from '../../system/Countries/system.countries.types';
3
4
  import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types';
@@ -21,8 +22,6 @@ export type CustomersBranchesRequest = Omit<CustomersBranches, 'id' | 'city' | '
21
22
  city: number;
22
23
  country: number;
23
24
  state: number;
24
- phone?: string;
25
- email?: string;
26
- cellphone?: string;
25
+ directory?: SystemDirectoryCreateSingleRequest[];
27
26
  };
28
27
  export type CustomersBranchesResponse = Omit<CustomersBranches, 'customer'>;
@@ -1,7 +1,7 @@
1
1
  import { CustomersBranchesUpdateSingleRequest } from '../../Branches';
2
2
  import { CustomersRequest } from '../customers.types';
3
3
  export type CustomersUpdateSingleRequest = Omit<Partial<CustomersRequest>, 'branch'> & {
4
- branch: CustomersBranchesUpdateSingleRequest & {
5
- id: string;
4
+ branch?: CustomersBranchesUpdateSingleRequest & {
5
+ id?: string;
6
6
  };
7
7
  };
@@ -1,3 +1,4 @@
1
+ import { SystemDirectoryCreateSingleRequest } from '../../system';
1
2
  import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types';
2
3
  import { SystemNaturalTypesGetSingleResponse } from '../../system/NaturalTypes/GetSingle/Response';
3
4
  import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetSingle/Response';
@@ -38,5 +39,6 @@ export type CustomersRequest = Omit<Customers, 'id' | 'taxerType' | 'personType'
38
39
  personTypeNatural?: number;
39
40
  taxerType?: number;
40
41
  branch: CustomersBranchesCreateSingleRequest;
42
+ directory?: SystemDirectoryCreateSingleRequest[];
41
43
  };
42
44
  export type CustomersResponse = Customers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.3.00",
3
+ "version": "0.3.02",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,3 +1,4 @@
1
+ import { SystemDirectoryCreateSingleRequest } from '../../system'
1
2
  import { SystemCitiesResponse } from '../../system/Cities/system.cities.types'
2
3
  import { SystemCountriesResponse } from '../../system/Countries/system.countries.types'
3
4
  import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types'
@@ -26,8 +27,6 @@ export type CustomersBranchesRequest = Omit<
26
27
  city: number
27
28
  country: number
28
29
  state: number
29
- phone?: string
30
- email?: string
31
- cellphone?: string
30
+ directory?: SystemDirectoryCreateSingleRequest[]
32
31
  }
33
32
  export type CustomersBranchesResponse = Omit<CustomersBranches, 'customer'>
@@ -2,7 +2,7 @@ import { CustomersBranchesUpdateSingleRequest } from '../../Branches'
2
2
  import { CustomersRequest } from '../customers.types'
3
3
 
4
4
  export type CustomersUpdateSingleRequest = Omit<Partial<CustomersRequest>, 'branch'> & {
5
- branch: CustomersBranchesUpdateSingleRequest & {
6
- id: string
5
+ branch?: CustomersBranchesUpdateSingleRequest & {
6
+ id?: string
7
7
  }
8
8
  }
@@ -1,3 +1,4 @@
1
+ import { SystemDirectoryCreateSingleRequest } from '../../system'
1
2
  import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types'
2
3
  import { SystemNaturalTypesGetSingleResponse } from '../../system/NaturalTypes/GetSingle/Response'
3
4
  import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetSingle/Response'
@@ -42,5 +43,6 @@ export type CustomersRequest = Omit<
42
43
  personTypeNatural?: number
43
44
  taxerType?: number
44
45
  branch: CustomersBranchesCreateSingleRequest
46
+ directory?: SystemDirectoryCreateSingleRequest[]
45
47
  }
46
48
  export type CustomersResponse = Customers