@openbox/shared-types 0.4.0 → 0.4.1

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,9 +1,8 @@
1
- import { SystemDirectoryCreateSingleRequest } from '../../system';
1
+ import { SystemDirectoryCreateSingleRequest, SystemSvFields } from '../../system';
2
2
  import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types';
3
3
  import { SystemNaturalTypesGetSingleResponse } from '../../system/NaturalTypes/GetSingle/Response';
4
4
  import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetSingle/Response';
5
5
  import { SystemSellingTypeGetSingleResponse } from '../../system/SellingTypes/GetSingle/Response';
6
- import { SystemTaxerTypesGetSingleResponse } from '../../system/TaxerTypes/GetSingle/Response';
7
6
  import { CustomersBranchesCreateSingleRequest } from '../Branches';
8
7
  export type Customers = {
9
8
  id: string;
@@ -15,11 +14,7 @@ export type Customers = {
15
14
  lastname2?: string;
16
15
  lastname3?: string;
17
16
  shortName: string;
18
- dui?: string;
19
17
  passport?: string;
20
- nrc?: string;
21
- nit?: string;
22
- giro?: string;
23
18
  active?: boolean;
24
19
  passportIssuedDate?: Date;
25
20
  passportExpirationDate?: Date;
@@ -30,15 +25,19 @@ export type Customers = {
30
25
  type: SystemSellingTypeGetSingleResponse;
31
26
  personType: SystemPersonTypeGetSingleResponse;
32
27
  personTypeNatural: SystemNaturalTypesGetSingleResponse;
33
- taxerType: SystemTaxerTypesGetSingleResponse;
34
28
  directory: SystemDirectoryResponse[];
29
+ svFields: SystemSvFields;
35
30
  };
36
31
  export type CustomersRequest = Omit<Customers, 'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'directory'> & {
37
32
  type: number;
38
33
  personType: number;
39
34
  personTypeNatural?: number;
40
- taxerType?: number;
41
35
  branch: CustomersBranchesCreateSingleRequest;
42
36
  directory?: Omit<SystemDirectoryCreateSingleRequest, 'entityType' | 'entityId'>[];
37
+ svFields: Required<Omit<SystemSvFields, 'id' | 'taxerType' | 'economicActivity' | 'dui'>> & {
38
+ dui?: string;
39
+ taxerType: number;
40
+ economicActivity: string;
41
+ };
43
42
  };
44
43
  export type CustomersResponse = Customers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.4.00",
3
+ "version": "0.4.01",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,9 +1,8 @@
1
- import { SystemDirectoryCreateSingleRequest } from '../../system'
1
+ import { SystemDirectoryCreateSingleRequest, SystemSvFields } from '../../system'
2
2
  import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types'
3
3
  import { SystemNaturalTypesGetSingleResponse } from '../../system/NaturalTypes/GetSingle/Response'
4
4
  import { SystemPersonTypeGetSingleResponse } from '../../system/PersonTypes/GetSingle/Response'
5
5
  import { SystemSellingTypeGetSingleResponse } from '../../system/SellingTypes/GetSingle/Response'
6
- import { SystemTaxerTypesGetSingleResponse } from '../../system/TaxerTypes/GetSingle/Response'
7
6
  import { CustomersBranchesCreateSingleRequest } from '../Branches'
8
7
 
9
8
  export type Customers = {
@@ -16,11 +15,7 @@ export type Customers = {
16
15
  lastname2?: string
17
16
  lastname3?: string
18
17
  shortName: string
19
- dui?: string
20
18
  passport?: string
21
- nrc?: string
22
- nit?: string
23
- giro?: string
24
19
  active?: boolean
25
20
  passportIssuedDate?: Date
26
21
  passportExpirationDate?: Date
@@ -31,8 +26,8 @@ export type Customers = {
31
26
  type: SystemSellingTypeGetSingleResponse
32
27
  personType: SystemPersonTypeGetSingleResponse
33
28
  personTypeNatural: SystemNaturalTypesGetSingleResponse
34
- taxerType: SystemTaxerTypesGetSingleResponse
35
29
  directory: SystemDirectoryResponse[]
30
+ svFields: SystemSvFields
36
31
  }
37
32
  export type CustomersRequest = Omit<
38
33
  Customers,
@@ -41,8 +36,12 @@ export type CustomersRequest = Omit<
41
36
  type: number
42
37
  personType: number
43
38
  personTypeNatural?: number
44
- taxerType?: number
45
39
  branch: CustomersBranchesCreateSingleRequest
46
40
  directory?: Omit<SystemDirectoryCreateSingleRequest, 'entityType' | 'entityId'>[]
41
+ svFields: Required<Omit<SystemSvFields, 'id' | 'taxerType' | 'economicActivity' | 'dui'>> & {
42
+ dui?: string
43
+ taxerType: number
44
+ economicActivity: string
45
+ }
47
46
  }
48
47
  export type CustomersResponse = Customers