@openbox/shared-types 0.3.97 → 0.4.0

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 (35) hide show
  1. package/lib/index.d.ts +0 -1
  2. package/lib/index.js +0 -1
  3. package/lib/index.js.map +1 -1
  4. package/lib/management/Company/UpdateCurrent/Request.d.ts +8 -5
  5. package/lib/management/Company/UpdateCurrent/Response.d.ts +3 -2
  6. package/lib/management/Company/management.company.type.d.ts +2 -2
  7. package/lib/system/Directory/UpdateSingle/Response.d.ts +2 -3
  8. package/lib/system/SV/Fields/index.d.ts +1 -0
  9. package/lib/{companies → system/SV/Fields}/index.js +1 -1
  10. package/lib/system/SV/Fields/index.js.map +1 -0
  11. package/lib/system/SV/Fields/system.sv.fields.types.d.ts +10 -0
  12. package/lib/{companies/CompaniesSVFields/companies.sv-fields.type.js → system/SV/Fields/system.sv.fields.types.js} +1 -1
  13. package/lib/system/SV/Fields/system.sv.fields.types.js.map +1 -0
  14. package/lib/system/SV/index.d.ts +1 -0
  15. package/lib/system/SV/index.js +1 -0
  16. package/lib/system/SV/index.js.map +1 -1
  17. package/package.json +1 -1
  18. package/src/System/Directory/UpdateSingle/Response.ts +3 -3
  19. package/src/System/SV/Fields/index.ts +1 -0
  20. package/src/System/SV/Fields/system.sv.fields.types.ts +11 -0
  21. package/src/System/SV/index.ts +1 -0
  22. package/src/index.ts +0 -1
  23. package/src/management/Company/UpdateCurrent/Request.ts +8 -5
  24. package/src/management/Company/UpdateCurrent/Response.ts +3 -3
  25. package/src/management/Company/management.company.type.ts +2 -2
  26. package/lib/companies/CompaniesSVFields/companies.sv-fields.type.d.ts +0 -10
  27. package/lib/companies/CompaniesSVFields/companies.sv-fields.type.js.map +0 -1
  28. package/lib/companies/CompaniesSVFields/index.d.ts +0 -1
  29. package/lib/companies/CompaniesSVFields/index.js +0 -18
  30. package/lib/companies/CompaniesSVFields/index.js.map +0 -1
  31. package/lib/companies/index.d.ts +0 -1
  32. package/lib/companies/index.js.map +0 -1
  33. package/src/companies/CompaniesSVFields/companies.sv-fields.type.ts +0 -11
  34. package/src/companies/CompaniesSVFields/index.ts +0 -1
  35. package/src/companies/index.ts +0 -1
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,10 +1,13 @@
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'>>;
4
+ companyType: number;
5
+ naturalType?: number;
6
+ svFields: Required<Omit<SystemSvFields, 'id' | 'taxerType' | 'economicActivity' | 'dui'>> & {
7
+ dui?: string;
8
+ taxerType: number;
9
+ economicActivity: string;
10
+ };
8
11
  contacts: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> & {
9
12
  id?: string;
10
13
  }[];
@@ -1,2 +1,3 @@
1
- import { SingleResponse } from '../../../interfaces';
2
- export type ManagementCompanyUpdateCurrentResponse = SingleResponse;
1
+ export type ManagementCompanyUpdateCurrentResponse = {
2
+ message: string;
3
+ };
@@ -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
  };
@@ -1,3 +1,2 @@
1
- export type SystemDirectoryUpdateSingleResponse = {
2
- message: string;
3
- };
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type SystemDirectoryUpdateSingleResponse = SingleResponse;
@@ -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.97",
3
+ "version": "0.4.00",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,3 +1,3 @@
1
- export type SystemDirectoryUpdateSingleResponse = {
2
- message: string
3
- }
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type SystemDirectoryUpdateSingleResponse = SingleResponse
@@ -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'
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,13 +1,16 @@
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'>>
8
+ companyType: number
9
+ naturalType?: number
10
+ svFields: Required<Omit<SystemSvFields, 'id' | 'taxerType' | 'economicActivity' | 'dui'>> & {
11
+ dui?: string
12
+ taxerType: number
13
+ economicActivity: string
14
+ }
12
15
  contacts: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> & { id?: string }[]
13
16
  }
@@ -1,3 +1,3 @@
1
- import { SingleResponse } from '../../../interfaces'
2
-
3
- export type ManagementCompanyUpdateCurrentResponse = SingleResponse
1
+ export type ManagementCompanyUpdateCurrentResponse = {
2
+ message: string
3
+ }
@@ -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'