@openbox/shared-types 0.3.99 → 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.
Files changed (33) hide show
  1. package/lib/customers/Customers/customers.types.d.ts +7 -8
  2. package/lib/index.d.ts +0 -1
  3. package/lib/index.js +0 -1
  4. package/lib/index.js.map +1 -1
  5. package/lib/management/Company/UpdateCurrent/Request.d.ts +6 -6
  6. package/lib/management/Company/management.company.type.d.ts +2 -2
  7. package/lib/system/SV/Fields/index.d.ts +1 -0
  8. package/lib/{companies → system/SV/Fields}/index.js +1 -1
  9. package/lib/system/SV/Fields/index.js.map +1 -0
  10. package/lib/system/SV/Fields/system.sv.fields.types.d.ts +10 -0
  11. package/lib/{companies/CompaniesSVFields/companies.sv-fields.type.js → system/SV/Fields/system.sv.fields.types.js} +1 -1
  12. package/lib/system/SV/Fields/system.sv.fields.types.js.map +1 -0
  13. package/lib/system/SV/index.d.ts +1 -0
  14. package/lib/system/SV/index.js +1 -0
  15. package/lib/system/SV/index.js.map +1 -1
  16. package/package.json +1 -1
  17. package/src/System/SV/Fields/index.ts +1 -0
  18. package/src/System/SV/Fields/system.sv.fields.types.ts +11 -0
  19. package/src/System/SV/index.ts +1 -0
  20. package/src/customers/Customers/customers.types.ts +7 -8
  21. package/src/index.ts +0 -1
  22. package/src/management/Company/UpdateCurrent/Request.ts +6 -6
  23. package/src/management/Company/management.company.type.ts +2 -2
  24. package/lib/companies/CompaniesSVFields/companies.sv-fields.type.d.ts +0 -10
  25. package/lib/companies/CompaniesSVFields/companies.sv-fields.type.js.map +0 -1
  26. package/lib/companies/CompaniesSVFields/index.d.ts +0 -1
  27. package/lib/companies/CompaniesSVFields/index.js +0 -18
  28. package/lib/companies/CompaniesSVFields/index.js.map +0 -1
  29. package/lib/companies/index.d.ts +0 -1
  30. package/lib/companies/index.js.map +0 -1
  31. package/src/companies/CompaniesSVFields/companies.sv-fields.type.ts +0 -11
  32. package/src/companies/CompaniesSVFields/index.ts +0 -1
  33. package/src/companies/index.ts +0 -1
@@ -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/lib/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export * from './accounting';
2
2
  export * from './auth';
3
- export * from './companies';
4
3
  export * from './customers';
5
4
  export * from './invoices';
6
5
  export * from './legal';
package/lib/index.js CHANGED
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./accounting"), exports);
18
18
  __exportStar(require("./auth"), exports);
19
- __exportStar(require("./companies"), exports);
20
19
  __exportStar(require("./customers"), exports);
21
20
  __exportStar(require("./invoices"), exports);
22
21
  __exportStar(require("./legal"), exports);
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,yCAAsB;AACtB,8CAA2B;AAC3B,8CAA2B;AAC3B,6CAA0B;AAC1B,0CAAuB;AACvB,+CAA4B;AAC5B,6CAA0B;AAC1B,2CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,yCAAsB;AACtB,8CAA2B;AAC3B,6CAA0B;AAC1B,0CAAuB;AACvB,+CAA4B;AAC5B,6CAA0B;AAC1B,2CAAwB"}
@@ -1,11 +1,11 @@
1
- import { CompaniesSvFields } from '../../../companies';
2
- import { SystemDirectoryUpdateSingleRequest } from '../../../system';
1
+ import { SystemDirectoryUpdateSingleRequest, SystemSvFields } from '../../../system';
3
2
  import { ManagementCompany } from '../management.company.type';
4
3
  export type ManagementCompanyUpdateCurrentRequest = Omit<ManagementCompany, 'id' | 'contacts' | 'companyType' | 'naturalType' | 'svFields'> & {
5
- companyType: string;
6
- naturalType: string;
7
- svFields: Required<Omit<CompaniesSvFields, 'id' | 'taxerType' | 'economicActivity'>> & {
8
- taxerType: string;
4
+ companyType: number;
5
+ naturalType?: number;
6
+ svFields: Required<Omit<SystemSvFields, 'id' | 'taxerType' | 'economicActivity' | 'dui'>> & {
7
+ dui?: string;
8
+ taxerType: number;
9
9
  economicActivity: string;
10
10
  };
11
11
  contacts: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> & {
@@ -1,4 +1,4 @@
1
- import { CompaniesSvFields } from '../../companies/CompaniesSVFields/companies.sv-fields.type';
1
+ import { SystemSvFields } from '../../system';
2
2
  import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types';
3
3
  import { SystemNaturalTypes } from '../../system/NaturalTypes/system.natural-types.types';
4
4
  import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.types';
@@ -7,6 +7,6 @@ export type ManagementCompany = {
7
7
  name: string;
8
8
  companyType: SystemPersonTypes;
9
9
  naturalType: SystemNaturalTypes;
10
- svFields: CompaniesSvFields;
10
+ svFields: SystemSvFields;
11
11
  contacts: Array<SystemDirectoryResponse>;
12
12
  };
@@ -0,0 +1 @@
1
+ export * from './system.sv.fields.types';
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./CompaniesSVFields"), exports);
17
+ __exportStar(require("./system.sv.fields.types"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/SV/Fields/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAwC"}
@@ -0,0 +1,10 @@
1
+ import { SystemTaxerTypes } from '../../TaxerTypes/system.taxer-types.types';
2
+ import { SystemSvEconomicActivities } from '../EconomicActivities';
3
+ export type SystemSvFields = {
4
+ id: string;
5
+ nrc?: string;
6
+ nit?: string;
7
+ dui?: string;
8
+ taxerType?: SystemTaxerTypes;
9
+ economicActivity?: SystemSvEconomicActivities;
10
+ };
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=companies.sv-fields.type.js.map
3
+ //# sourceMappingURL=system.sv.fields.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.sv.fields.types.js","sourceRoot":"","sources":["../../../../src/system/SV/Fields/system.sv.fields.types.ts"],"names":[],"mappings":""}
@@ -1 +1,2 @@
1
1
  export * from './EconomicActivities';
2
+ export * from './Fields';
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./EconomicActivities"), exports);
18
+ __exportStar(require("./Fields"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/SV/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/SV/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,2CAAwB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.3.99",
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",
@@ -0,0 +1 @@
1
+ export * from './system.sv.fields.types'
@@ -0,0 +1,11 @@
1
+ import { SystemTaxerTypes } from '../../TaxerTypes/system.taxer-types.types'
2
+ import { SystemSvEconomicActivities } from '../EconomicActivities'
3
+
4
+ export type SystemSvFields = {
5
+ id: string
6
+ nrc?: string
7
+ nit?: string
8
+ dui?: string
9
+ taxerType?: SystemTaxerTypes
10
+ economicActivity?: SystemSvEconomicActivities
11
+ }
@@ -1 +1,2 @@
1
1
  export * from './EconomicActivities'
2
+ export * from './Fields'
@@ -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
package/src/index.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export * from './accounting'
2
2
  export * from './auth'
3
- export * from './companies'
4
3
  export * from './customers'
5
4
  export * from './invoices'
6
5
  export * from './legal'
@@ -1,15 +1,15 @@
1
- import { CompaniesSvFields } from '../../../companies'
2
- import { SystemDirectoryUpdateSingleRequest } from '../../../system'
1
+ import { SystemDirectoryUpdateSingleRequest, SystemSvFields } from '../../../system'
3
2
  import { ManagementCompany } from '../management.company.type'
4
3
 
5
4
  export type ManagementCompanyUpdateCurrentRequest = Omit<
6
5
  ManagementCompany,
7
6
  'id' | 'contacts' | 'companyType' | 'naturalType' | 'svFields'
8
7
  > & {
9
- companyType: string
10
- naturalType: string
11
- svFields: Required<Omit<CompaniesSvFields, 'id' | 'taxerType' | 'economicActivity'>> & {
12
- taxerType: string
8
+ companyType: number
9
+ naturalType?: number
10
+ svFields: Required<Omit<SystemSvFields, 'id' | 'taxerType' | 'economicActivity' | 'dui'>> & {
11
+ dui?: string
12
+ taxerType: number
13
13
  economicActivity: string
14
14
  }
15
15
  contacts: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> & { id?: string }[]
@@ -1,4 +1,4 @@
1
- import { CompaniesSvFields } from '../../companies/CompaniesSVFields/companies.sv-fields.type'
1
+ import { SystemSvFields } from '../../system'
2
2
  import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types'
3
3
  import { SystemNaturalTypes } from '../../system/NaturalTypes/system.natural-types.types'
4
4
  import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.types'
@@ -8,6 +8,6 @@ export type ManagementCompany = {
8
8
  name: string
9
9
  companyType: SystemPersonTypes
10
10
  naturalType: SystemNaturalTypes
11
- svFields: CompaniesSvFields
11
+ svFields: SystemSvFields
12
12
  contacts: Array<SystemDirectoryResponse>
13
13
  }
@@ -1,10 +0,0 @@
1
- import { SystemSvEconomicActivities } from '../../system';
2
- import { SystemTaxerTypes } from '../../system/TaxerTypes/system.taxer-types.types';
3
- export type CompaniesSvFields = {
4
- id: string;
5
- nrc?: string;
6
- nit?: string;
7
- dui?: string;
8
- taxerType?: SystemTaxerTypes;
9
- economicActivity?: SystemSvEconomicActivities;
10
- };
@@ -1 +0,0 @@
1
- {"version":3,"file":"companies.sv-fields.type.js","sourceRoot":"","sources":["../../../src/companies/CompaniesSVFields/companies.sv-fields.type.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export * from './companies.sv-fields.type';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./companies.sv-fields.type"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/companies/CompaniesSVFields/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA0C"}
@@ -1 +0,0 @@
1
- export * from './CompaniesSVFields';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/companies/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAmC"}
@@ -1,11 +0,0 @@
1
- import { SystemSvEconomicActivities } from '../../system'
2
- import { SystemTaxerTypes } from '../../system/TaxerTypes/system.taxer-types.types'
3
-
4
- export type CompaniesSvFields = {
5
- id: string
6
- nrc?: string
7
- nit?: string
8
- dui?: string
9
- taxerType?: SystemTaxerTypes
10
- economicActivity?: SystemSvEconomicActivities
11
- }
@@ -1 +0,0 @@
1
- export * from './companies.sv-fields.type'
@@ -1 +0,0 @@
1
- export * from './CompaniesSVFields'