@openbox/shared-types 0.2.47 → 0.2.49

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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.47",
3
+ "version": "0.2.49",
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