@openbox/shared-types 0.4.71 → 0.4.72

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 +4 -8
  2. package/lib/invoices/Calculation/CalculateSingle/Request.d.ts +1 -1
  3. package/lib/invoices/DocumentTypes/GetMany/Request.d.ts +8 -2
  4. package/lib/invoices/DocumentTypes/index.d.ts +0 -1
  5. package/lib/invoices/DocumentTypes/index.js +0 -1
  6. package/lib/invoices/DocumentTypes/index.js.map +1 -1
  7. package/lib/invoices/Invoices/CreateSingle/Request.d.ts +0 -1
  8. package/lib/management/Company/UpdateCurrent/Request.d.ts +1 -1
  9. package/lib/system/FOREIGNER/Fields/index.d.ts +1 -0
  10. package/lib/system/FOREIGNER/Fields/index.js +18 -0
  11. package/lib/system/FOREIGNER/Fields/index.js.map +1 -0
  12. package/lib/system/FOREIGNER/Fields/system.foreigner.fields.types.d.ts +8 -0
  13. package/lib/system/FOREIGNER/Fields/system.foreigner.fields.types.js +3 -0
  14. package/lib/system/FOREIGNER/Fields/system.foreigner.fields.types.js.map +1 -0
  15. package/lib/system/FOREIGNER/index.d.ts +1 -0
  16. package/lib/system/FOREIGNER/index.js +18 -0
  17. package/lib/system/FOREIGNER/index.js.map +1 -0
  18. package/lib/system/SV/Fields/system.sv.fields.types.d.ts +3 -0
  19. package/lib/system/index.d.ts +1 -0
  20. package/lib/system/index.js +1 -0
  21. package/lib/system/index.js.map +1 -1
  22. package/package.json +1 -1
  23. package/src/System/FOREIGNER/Fields/index.ts +1 -0
  24. package/src/System/FOREIGNER/Fields/system.foreigner.fields.types.ts +8 -0
  25. package/src/System/FOREIGNER/index.ts +1 -0
  26. package/src/System/SV/Fields/system.sv.fields.types.ts +3 -0
  27. package/src/System/index.ts +1 -0
  28. package/src/customers/Customers/customers.types.ts +12 -7
  29. package/src/invoices/Calculation/CalculateSingle/Request.ts +1 -1
  30. package/src/invoices/DocumentTypes/GetMany/Request.ts +8 -2
  31. package/src/invoices/DocumentTypes/index.ts +0 -1
  32. package/src/invoices/Invoices/CreateSingle/Request.ts +0 -1
  33. package/src/management/Company/UpdateCurrent/Request.ts +3 -1
@@ -1,4 +1,4 @@
1
- import { SystemDirectoryCreateSingleRequest, SystemSvFields, SystemSvFieldsRequest } from '../../system';
1
+ import { SystemDirectoryCreateSingleRequest, SystemForeignerFields, SystemForeignerFieldsRequest, SystemSvFields, SystemSvFieldsRequest } 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';
@@ -14,26 +14,22 @@ export type Customers = {
14
14
  lastname2?: string;
15
15
  lastname3?: string;
16
16
  shortName: string;
17
- passport?: string;
18
17
  active?: boolean;
19
- passportIssuedDate?: Date;
20
- passportExpirationDate?: Date;
21
18
  profession?: string;
22
- duiIssuedDate?: Date;
23
- duiExpirationDate?: Date;
24
- nitIssuedDate?: Date;
25
19
  type: SystemSellingTypeGetSingleResponse;
26
20
  personType: SystemPersonTypeGetSingleResponse;
27
21
  personTypeNatural: SystemNaturalTypesGetSingleResponse;
28
22
  directory: SystemDirectoryResponse[];
29
23
  svFields: SystemSvFields;
24
+ foreignerFields: SystemForeignerFields;
30
25
  };
31
- export type CustomersRequest = Omit<Customers, 'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'directory' | 'svFields'> & {
26
+ export type CustomersRequest = Omit<Customers, 'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'directory' | 'svFields' | 'foreignerFields'> & {
32
27
  type: number;
33
28
  personType: number;
34
29
  personTypeNatural?: number;
35
30
  branch: CustomersBranchesCreateSingleRequest;
36
31
  directory?: Omit<SystemDirectoryCreateSingleRequest, 'entityType' | 'entityId'>[];
37
32
  svFields: SystemSvFieldsRequest;
33
+ foreignerFields: SystemForeignerFieldsRequest;
38
34
  };
39
35
  export type CustomersResponse = Customers;
@@ -10,7 +10,7 @@ export type InvoicesCalculationsDetailsRequest = {
10
10
  chargeDescription: string;
11
11
  };
12
12
  export type InvoicesCalculationsCalculateSingleRequest = {
13
- documentType: number;
13
+ document: string;
14
14
  customer: string;
15
15
  details: InvoicesCalculationsDetailsRequest[];
16
16
  };
@@ -1,5 +1,11 @@
1
1
  import { GetManyRequest } from '../../../interfaces';
2
2
  export type InvoicesDocumentTypesGetManyRequest = GetManyRequest & {
3
- includeInRegularSV?: boolean;
4
- includeInElectronicSV?: boolean;
3
+ documentType?: number;
4
+ customer?: string;
5
+ seller?: string;
6
+ zone?: string;
7
+ service?: string;
8
+ status?: number;
9
+ startDate?: Date;
10
+ endDate?: Date;
5
11
  };
@@ -1,4 +1,3 @@
1
- export * from './GetMany/Request';
2
1
  export * from './GetMany/Response';
3
2
  export * from './GetSingle/Response';
4
3
  export * from './invoices.document-types.type';
@@ -14,7 +14,6 @@ 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("./GetMany/Request"), exports);
18
17
  __exportStar(require("./GetMany/Response"), exports);
19
18
  __exportStar(require("./GetSingle/Response"), exports);
20
19
  __exportStar(require("./invoices.document-types.type"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/DocumentTypes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,iEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/DocumentTypes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,uDAAoC;AACpC,iEAA8C"}
@@ -1,6 +1,5 @@
1
1
  export type InvoicesCreateSingleHeader = {
2
2
  document: string;
3
- documentType: number;
4
3
  authorization: string;
5
4
  sequence: number;
6
5
  invoiceDate: string;
@@ -3,7 +3,7 @@ import { ManagementCompany } from '../management.company.type';
3
3
  export type ManagementCompanyUpdateCurrentRequest = Omit<ManagementCompany, 'id' | 'contacts' | 'branch' | 'companyType' | 'naturalType' | 'svFields'> & {
4
4
  companyType: number;
5
5
  naturalType?: number;
6
- svFields: Required<Omit<SystemSvFieldsRequest, 'dui'>> & {
6
+ svFields: Required<Omit<SystemSvFieldsRequest, 'dui' | 'nitIssuedDate' | 'duiIssuedDate' | 'duiExpirationDate'>> & {
7
7
  dui?: string;
8
8
  };
9
9
  contacts: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> & {
@@ -0,0 +1 @@
1
+ export * from './system.foreigner.fields.types';
@@ -0,0 +1,18 @@
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("./system.foreigner.fields.types"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/FOREIGNER/Fields/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAA+C"}
@@ -0,0 +1,8 @@
1
+ export type SystemForeignerFields = {
2
+ id: string;
3
+ passport?: string;
4
+ passportIssuedDate?: Date;
5
+ passportExpirationDate?: Date;
6
+ economicAcivity?: string;
7
+ };
8
+ export type SystemForeignerFieldsRequest = Omit<SystemForeignerFields, 'id'>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=system.foreigner.fields.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"system.foreigner.fields.types.js","sourceRoot":"","sources":["../../../../src/system/FOREIGNER/Fields/system.foreigner.fields.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './Fields';
@@ -0,0 +1,18 @@
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("./Fields"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/FOREIGNER/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB"}
@@ -4,7 +4,10 @@ export type SystemSvFields = {
4
4
  id: string;
5
5
  nrc?: string;
6
6
  nit?: string;
7
+ nitIssuedDate?: Date;
7
8
  dui?: string;
9
+ duiIssuedDate?: Date;
10
+ duiExpirationDate?: Date;
8
11
  taxerType?: SystemTaxerTypes;
9
12
  economicActivity?: SystemSvEconomicActivities;
10
13
  };
@@ -1,6 +1,7 @@
1
1
  export * from './Cities/';
2
2
  export * from './Countries/';
3
3
  export * from './Directory/';
4
+ export * from './FOREIGNER/';
4
5
  export * from './Logs/';
5
6
  export * from './NaturalTypes';
6
7
  export * from './PersonTypes/';
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Cities/"), exports);
18
18
  __exportStar(require("./Countries/"), exports);
19
19
  __exportStar(require("./Directory/"), exports);
20
+ __exportStar(require("./FOREIGNER/"), exports);
20
21
  __exportStar(require("./Logs/"), exports);
21
22
  __exportStar(require("./NaturalTypes"), exports);
22
23
  __exportStar(require("./PersonTypes/"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,+CAA4B;AAC5B,+CAA4B;AAC5B,0CAAuB;AACvB,iDAA8B;AAC9B,iDAA8B;AAC9B,wCAAqB;AACrB,kDAA+B;AAC/B,4CAAyB;AACzB,gDAA6B;AAC7B,iDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,+CAA4B;AAC5B,+CAA4B;AAC5B,+CAA4B;AAC5B,0CAAuB;AACvB,iDAA8B;AAC9B,iDAA8B;AAC9B,wCAAqB;AACrB,kDAA+B;AAC/B,4CAAyB;AACzB,gDAA6B;AAC7B,iDAA8B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.4.71",
3
+ "version": "0.4.72",
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.foreigner.fields.types'
@@ -0,0 +1,8 @@
1
+ export type SystemForeignerFields = {
2
+ id: string
3
+ passport?: string
4
+ passportIssuedDate?: Date
5
+ passportExpirationDate?: Date
6
+ economicAcivity?: string
7
+ }
8
+ export type SystemForeignerFieldsRequest = Omit<SystemForeignerFields, 'id'>
@@ -0,0 +1 @@
1
+ export * from './Fields'
@@ -5,7 +5,10 @@ export type SystemSvFields = {
5
5
  id: string
6
6
  nrc?: string
7
7
  nit?: string
8
+ nitIssuedDate?: Date
8
9
  dui?: string
10
+ duiIssuedDate?: Date
11
+ duiExpirationDate?: Date
9
12
  taxerType?: SystemTaxerTypes
10
13
  economicActivity?: SystemSvEconomicActivities
11
14
  }
@@ -1,6 +1,7 @@
1
1
  export * from './Cities/'
2
2
  export * from './Countries/'
3
3
  export * from './Directory/'
4
+ export * from './FOREIGNER/'
4
5
  export * from './Logs/'
5
6
  export * from './NaturalTypes'
6
7
  export * from './PersonTypes/'
@@ -1,5 +1,7 @@
1
1
  import {
2
2
  SystemDirectoryCreateSingleRequest,
3
+ SystemForeignerFields,
4
+ SystemForeignerFieldsRequest,
3
5
  SystemSvFields,
4
6
  SystemSvFieldsRequest,
5
7
  } from '../../system'
@@ -19,23 +21,25 @@ export type Customers = {
19
21
  lastname2?: string
20
22
  lastname3?: string
21
23
  shortName: string
22
- passport?: string
23
24
  active?: boolean
24
- passportIssuedDate?: Date
25
- passportExpirationDate?: Date
26
25
  profession?: string
27
- duiIssuedDate?: Date
28
- duiExpirationDate?: Date
29
- nitIssuedDate?: Date
30
26
  type: SystemSellingTypeGetSingleResponse
31
27
  personType: SystemPersonTypeGetSingleResponse
32
28
  personTypeNatural: SystemNaturalTypesGetSingleResponse
33
29
  directory: SystemDirectoryResponse[]
34
30
  svFields: SystemSvFields
31
+ foreignerFields: SystemForeignerFields
35
32
  }
36
33
  export type CustomersRequest = Omit<
37
34
  Customers,
38
- 'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'directory' | 'svFields'
35
+ | 'id'
36
+ | 'taxerType'
37
+ | 'personType'
38
+ | 'type'
39
+ | 'personTypeNatural'
40
+ | 'directory'
41
+ | 'svFields'
42
+ | 'foreignerFields'
39
43
  > & {
40
44
  type: number
41
45
  personType: number
@@ -43,5 +47,6 @@ export type CustomersRequest = Omit<
43
47
  branch: CustomersBranchesCreateSingleRequest
44
48
  directory?: Omit<SystemDirectoryCreateSingleRequest, 'entityType' | 'entityId'>[]
45
49
  svFields: SystemSvFieldsRequest
50
+ foreignerFields: SystemForeignerFieldsRequest
46
51
  }
47
52
  export type CustomersResponse = Customers
@@ -11,7 +11,7 @@ export type InvoicesCalculationsDetailsRequest = {
11
11
  }
12
12
 
13
13
  export type InvoicesCalculationsCalculateSingleRequest = {
14
- documentType: number
14
+ document: string
15
15
  customer: string
16
16
  details: InvoicesCalculationsDetailsRequest[]
17
17
  }
@@ -1,6 +1,12 @@
1
1
  import { GetManyRequest } from '../../../interfaces'
2
2
 
3
3
  export type InvoicesDocumentTypesGetManyRequest = GetManyRequest & {
4
- includeInRegularSV?: boolean
5
- includeInElectronicSV?: boolean
4
+ documentType?: number
5
+ customer?: string
6
+ seller?: string
7
+ zone?: string
8
+ service?: string
9
+ status?: number
10
+ startDate?: Date
11
+ endDate?: Date
6
12
  }
@@ -1,4 +1,3 @@
1
- export * from './GetMany/Request'
2
1
  export * from './GetMany/Response'
3
2
  export * from './GetSingle/Response'
4
3
  export * from './invoices.document-types.type'
@@ -1,6 +1,5 @@
1
1
  export type InvoicesCreateSingleHeader = {
2
2
  document: string
3
- documentType: number
4
3
  authorization: string
5
4
  sequence: number
6
5
  invoiceDate: string
@@ -7,7 +7,9 @@ export type ManagementCompanyUpdateCurrentRequest = Omit<
7
7
  > & {
8
8
  companyType: number
9
9
  naturalType?: number
10
- svFields: Required<Omit<SystemSvFieldsRequest, 'dui'>> & {
10
+ svFields: Required<
11
+ Omit<SystemSvFieldsRequest, 'dui' | 'nitIssuedDate' | 'duiIssuedDate' | 'duiExpirationDate'>
12
+ > & {
11
13
  dui?: string
12
14
  }
13
15
  contacts: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> &