@openbox/shared-types 0.6.0 → 0.6.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.
Files changed (29) hide show
  1. package/lib/companies/Branches/CreateSingle/Request.d.ts +2 -0
  2. package/lib/companies/Branches/CreateSingle/Request.js +3 -0
  3. package/lib/companies/Branches/CreateSingle/Request.js.map +1 -0
  4. package/lib/companies/Branches/CreateSingle/Response.d.ts +2 -0
  5. package/lib/companies/Branches/CreateSingle/Response.js +3 -0
  6. package/lib/companies/Branches/CreateSingle/Response.js.map +1 -0
  7. package/lib/companies/Branches/companies.branches.types.d.ts +21 -0
  8. package/lib/companies/Branches/companies.branches.types.js +3 -0
  9. package/lib/companies/Branches/companies.branches.types.js.map +1 -0
  10. package/lib/companies/Branches/index.d.ts +3 -0
  11. package/lib/companies/Branches/index.js +20 -0
  12. package/lib/companies/Branches/index.js.map +1 -0
  13. package/lib/companies/Companies/CreateSingle/Request.d.ts +2 -0
  14. package/lib/companies/Companies/CreateSingle/Request.js +3 -0
  15. package/lib/companies/Companies/CreateSingle/Request.js.map +1 -0
  16. package/lib/companies/Companies/CreateSingle/Response.d.ts +2 -0
  17. package/lib/companies/Companies/CreateSingle/Response.js +3 -0
  18. package/lib/companies/Companies/CreateSingle/Response.js.map +1 -0
  19. package/lib/companies/Companies/companies.types.d.ts +18 -0
  20. package/lib/companies/Companies/companies.types.js +3 -0
  21. package/lib/companies/Companies/companies.types.js.map +1 -0
  22. package/lib/companies/Companies/index.d.ts +3 -0
  23. package/lib/companies/Companies/index.js +20 -0
  24. package/lib/companies/Companies/index.js.map +1 -0
  25. package/lib/companies/index.d.ts +2 -0
  26. package/lib/companies/index.js +19 -0
  27. package/lib/companies/index.js.map +1 -0
  28. package/lib/system/SV/Fields/system.sv.fields.types.d.ts +7 -0
  29. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ import { CompaniesBranchesRequest } from '../companies.branches.types';
2
+ export type CompaniesBranchesCreateSingleRequest = CompaniesBranchesRequest;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/companies/Branches/CreateSingle/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type CompaniesBranchesCreateSingleResponse = SingleResponse;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/companies/Branches/CreateSingle/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ import { SystemCitiesResponse } from '../../system/Cities/system.cities.types';
2
+ import { SystemCountriesResponse } from '../../system/Countries/system.countries.types';
3
+ import { SystemStatesResponse } from '../../system/States/system.states.types';
4
+ import { CompaniesResponse } from '../Companies/companies.types';
5
+ export type CompaniesBranches = {
6
+ id: string;
7
+ name: string;
8
+ address1: string;
9
+ address2?: string;
10
+ country: SystemCountriesResponse;
11
+ state: SystemStatesResponse;
12
+ city: SystemCitiesResponse;
13
+ company: CompaniesResponse;
14
+ };
15
+ export type CompaniesBranchesRequest = Omit<CompaniesBranches, 'id' | 'city' | 'country' | 'state' | 'company'> & {
16
+ company: string;
17
+ city: number;
18
+ country: number;
19
+ state: number;
20
+ };
21
+ export type CompaniesBranchesResponse = Omit<CompaniesBranches, 'company'>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=companies.branches.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companies.branches.types.js","sourceRoot":"","sources":["../../../src/companies/Branches/companies.branches.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from './CreateSingle/Request';
2
+ export * from './CreateSingle/Response';
3
+ export * from './companies.branches.types';
@@ -0,0 +1,20 @@
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("./CreateSingle/Request"), exports);
18
+ __exportStar(require("./CreateSingle/Response"), exports);
19
+ __exportStar(require("./companies.branches.types"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/companies/Branches/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC;AACvC,6DAA0C"}
@@ -0,0 +1,2 @@
1
+ import { CompaniesRequest } from '../companies.types';
2
+ export type CompaniesCreateSingleRequest = CompaniesRequest;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/companies/Companies/CreateSingle/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type CompaniesCreateSingleResponse = SingleResponse;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/companies/Companies/CreateSingle/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import { SystemSvFields } from '../../system';
2
+ import { SystemPersonTypeNaturalsResponse } from '../../system/PersonTypeNaturals/system.person-types-naturals.types';
3
+ import { SystemPersonTypesResponse } from '../../system/PersonTypes/system.person-types.types';
4
+ export type Companies = {
5
+ id: string;
6
+ name: string;
7
+ shortName: string;
8
+ enableElectronicInvoicing?: boolean;
9
+ naturalType: SystemPersonTypeNaturalsResponse;
10
+ companyType: SystemPersonTypesResponse;
11
+ svFields: SystemSvFields;
12
+ };
13
+ export type CompaniesRequest = Omit<Companies, 'id' | 'naturalType' | 'companyType' | 'svFields'> & {
14
+ naturalType: number;
15
+ companyType: number;
16
+ svFieldsId: string;
17
+ };
18
+ export type CompaniesResponse = Companies;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=companies.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"companies.types.js","sourceRoot":"","sources":["../../../src/companies/Companies/companies.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export * from './CreateSingle/Request';
2
+ export * from './CreateSingle/Response';
3
+ export * from './companies.types';
@@ -0,0 +1,20 @@
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("./CreateSingle/Request"), exports);
18
+ __exportStar(require("./CreateSingle/Response"), exports);
19
+ __exportStar(require("./companies.types"), exports);
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/companies/Companies/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC;AACvC,oDAAiC"}
@@ -0,0 +1,2 @@
1
+ export * from './Branches';
2
+ export * from './Companies';
@@ -0,0 +1,19 @@
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("./Branches"), exports);
18
+ __exportStar(require("./Companies"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/companies/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,8CAA2B"}
@@ -5,6 +5,13 @@ export type SystemSvFields = {
5
5
  nrc?: string;
6
6
  nit?: string;
7
7
  dui?: string;
8
+ /**
9
+ * Indicates if the NIT is homologated for electronic invoicing.
10
+ * When true, the system will send the DUI as identifier instead of NIT for juridical persons.
11
+ * When false or undefined, the system maintains current behavior (send NIT if available, otherwise DUI).
12
+ * @default false
13
+ */
14
+ nitIsHomologated?: boolean;
8
15
  taxerType?: SystemTaxerTypes;
9
16
  economicActivity?: SystemSvEconomicActivities;
10
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.6.00",
3
+ "version": "0.6.02",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",