@openbox/shared-types 0.4.61 → 0.4.62

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 (39) hide show
  1. package/lib/customers/Customers/customers.types.d.ts +8 -4
  2. package/lib/management/Branch/GetCurrent/index.d.ts +2 -0
  3. package/lib/{system/FOREIGNER/Fields/system.foreigner.fields.types.js → management/Branch/GetCurrent/index.js} +1 -1
  4. package/lib/management/Branch/GetCurrent/index.js.map +1 -0
  5. package/lib/management/Branch/index.d.ts +2 -0
  6. package/lib/{system/FOREIGNER → management/Branch}/index.js +2 -1
  7. package/lib/management/Branch/index.js.map +1 -0
  8. package/lib/management/Branch/management.branch.type.d.ts +6 -0
  9. package/lib/management/Branch/management.branch.type.js +3 -0
  10. package/lib/management/Branch/management.branch.type.js.map +1 -0
  11. package/lib/management/Company/UpdateCurrent/Request.d.ts +1 -1
  12. package/lib/management/Company/management.company.type.d.ts +2 -2
  13. package/lib/management/index.d.ts +1 -0
  14. package/lib/management/index.js +1 -0
  15. package/lib/management/index.js.map +1 -1
  16. package/lib/system/SV/Fields/system.sv.fields.types.d.ts +0 -3
  17. package/lib/system/index.d.ts +0 -1
  18. package/lib/system/index.js +0 -1
  19. package/lib/system/index.js.map +1 -1
  20. package/package.json +1 -1
  21. package/src/System/SV/Fields/system.sv.fields.types.ts +0 -3
  22. package/src/System/index.ts +0 -1
  23. package/src/customers/Customers/customers.types.ts +7 -12
  24. package/src/management/Branch/GetCurrent/index.ts +3 -0
  25. package/src/management/Branch/index.ts +2 -0
  26. package/src/management/Branch/management.branch.type.ts +7 -0
  27. package/src/management/Company/UpdateCurrent/Request.ts +1 -3
  28. package/src/management/Company/management.company.type.ts +2 -2
  29. package/src/management/index.ts +1 -0
  30. package/lib/system/FOREIGNER/Fields/index.d.ts +0 -1
  31. package/lib/system/FOREIGNER/Fields/index.js +0 -18
  32. package/lib/system/FOREIGNER/Fields/index.js.map +0 -1
  33. package/lib/system/FOREIGNER/Fields/system.foreigner.fields.types.d.ts +0 -8
  34. package/lib/system/FOREIGNER/Fields/system.foreigner.fields.types.js.map +0 -1
  35. package/lib/system/FOREIGNER/index.d.ts +0 -1
  36. package/lib/system/FOREIGNER/index.js.map +0 -1
  37. package/src/System/FOREIGNER/Fields/index.ts +0 -1
  38. package/src/System/FOREIGNER/Fields/system.foreigner.fields.types.ts +0 -8
  39. package/src/System/FOREIGNER/index.ts +0 -1
@@ -1,4 +1,4 @@
1
- import { SystemDirectoryCreateSingleRequest, SystemForeignerFields, SystemForeignerFieldsRequest, SystemSvFields, SystemSvFieldsRequest } from '../../system';
1
+ import { SystemDirectoryCreateSingleRequest, 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,22 +14,26 @@ export type Customers = {
14
14
  lastname2?: string;
15
15
  lastname3?: string;
16
16
  shortName: string;
17
+ passport?: string;
17
18
  active?: boolean;
19
+ passportIssuedDate?: Date;
20
+ passportExpirationDate?: Date;
18
21
  profession?: string;
22
+ duiIssuedDate?: Date;
23
+ duiExpirationDate?: Date;
24
+ nitIssuedDate?: Date;
19
25
  type: SystemSellingTypeGetSingleResponse;
20
26
  personType: SystemPersonTypeGetSingleResponse;
21
27
  personTypeNatural: SystemNaturalTypesGetSingleResponse;
22
28
  directory: SystemDirectoryResponse[];
23
29
  svFields: SystemSvFields;
24
- foreignerFields: SystemForeignerFields;
25
30
  };
26
- export type CustomersRequest = Omit<Customers, 'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'directory' | 'svFields' | 'foreignerFields'> & {
31
+ export type CustomersRequest = Omit<Customers, 'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'directory' | 'svFields'> & {
27
32
  type: number;
28
33
  personType: number;
29
34
  personTypeNatural?: number;
30
35
  branch: CustomersBranchesCreateSingleRequest;
31
36
  directory?: Omit<SystemDirectoryCreateSingleRequest, 'entityType' | 'entityId'>[];
32
37
  svFields: SystemSvFieldsRequest;
33
- foreignerFields: SystemForeignerFieldsRequest;
34
38
  };
35
39
  export type CustomersResponse = Customers;
@@ -0,0 +1,2 @@
1
+ import { ManagementBranch } from '../management.branch.type';
2
+ export type ManagementBranchGetCurrent = ManagementBranch;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=system.foreigner.fields.types.js.map
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/management/Branch/GetCurrent/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export * from './GetCurrent';
2
+ export * from './management.branch.type';
@@ -14,5 +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("./Fields"), exports);
17
+ __exportStar(require("./GetCurrent"), exports);
18
+ __exportStar(require("./management.branch.type"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/management/Branch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,2DAAwC"}
@@ -0,0 +1,6 @@
1
+ import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types';
2
+ export type ManagementBranch = {
3
+ id: string;
4
+ name: string;
5
+ contacts: Array<SystemDirectoryResponse>;
6
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=management.branch.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"management.branch.type.js","sourceRoot":"","sources":["../../../src/management/Branch/management.branch.type.ts"],"names":[],"mappings":""}
@@ -3,7 +3,7 @@ import { ManagementCompany } from '../management.company.type';
3
3
  export type ManagementCompanyUpdateCurrentRequest = Omit<ManagementCompany, 'id' | 'contacts' | 'companyType' | 'naturalType' | 'svFields'> & {
4
4
  companyType: number;
5
5
  naturalType?: number;
6
- svFields: Required<Omit<SystemSvFieldsRequest, 'dui' | 'nitIssuedDate' | 'duiIssuedDate' | 'duiExpirationDate'>> & {
6
+ svFields: Required<Omit<SystemSvFieldsRequest, 'dui'>> & {
7
7
  dui?: string;
8
8
  };
9
9
  contacts: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> & {
@@ -1,7 +1,7 @@
1
1
  import { SystemSvFields } from '../../system';
2
- import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types';
3
2
  import { SystemNaturalTypes } from '../../system/NaturalTypes/system.natural-types.types';
4
3
  import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.types';
4
+ import { ManagementBranch } from '../Branch/management.branch.type';
5
5
  export type ManagementCompany = {
6
6
  id: string;
7
7
  name: string;
@@ -9,5 +9,5 @@ export type ManagementCompany = {
9
9
  companyType: SystemPersonTypes;
10
10
  naturalType: SystemNaturalTypes;
11
11
  svFields: SystemSvFields;
12
- contacts: Array<SystemDirectoryResponse>;
12
+ branch: ManagementBranch;
13
13
  };
@@ -1,3 +1,4 @@
1
+ export * from './Branch';
1
2
  export * from './Company';
2
3
  export * from './Profiles';
3
4
  export * from './Users';
@@ -14,6 +14,7 @@ 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("./Branch"), exports);
17
18
  __exportStar(require("./Company"), exports);
18
19
  __exportStar(require("./Profiles"), exports);
19
20
  __exportStar(require("./Users"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/management/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,6CAA0B;AAC1B,0CAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/management/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,4CAAyB;AACzB,6CAA0B;AAC1B,0CAAuB"}
@@ -4,10 +4,7 @@ export type SystemSvFields = {
4
4
  id: string;
5
5
  nrc?: string;
6
6
  nit?: string;
7
- nitIssuedDate?: Date;
8
7
  dui?: string;
9
- duiIssuedDate?: Date;
10
- duiExpirationDate?: Date;
11
8
  taxerType?: SystemTaxerTypes;
12
9
  economicActivity?: SystemSvEconomicActivities;
13
10
  };
@@ -1,7 +1,6 @@
1
1
  export * from './Cities/';
2
2
  export * from './Countries/';
3
3
  export * from './Directory/';
4
- export * from './FOREIGNER/';
5
4
  export * from './Logs/';
6
5
  export * from './NaturalTypes';
7
6
  export * from './PersonTypes/';
@@ -17,7 +17,6 @@ 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);
21
20
  __exportStar(require("./Logs/"), exports);
22
21
  __exportStar(require("./NaturalTypes"), exports);
23
22
  __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,+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,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.61",
3
+ "version": "0.4.62",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -5,10 +5,7 @@ export type SystemSvFields = {
5
5
  id: string
6
6
  nrc?: string
7
7
  nit?: string
8
- nitIssuedDate?: Date
9
8
  dui?: string
10
- duiIssuedDate?: Date
11
- duiExpirationDate?: Date
12
9
  taxerType?: SystemTaxerTypes
13
10
  economicActivity?: SystemSvEconomicActivities
14
11
  }
@@ -1,7 +1,6 @@
1
1
  export * from './Cities/'
2
2
  export * from './Countries/'
3
3
  export * from './Directory/'
4
- export * from './FOREIGNER/'
5
4
  export * from './Logs/'
6
5
  export * from './NaturalTypes'
7
6
  export * from './PersonTypes/'
@@ -1,7 +1,5 @@
1
1
  import {
2
2
  SystemDirectoryCreateSingleRequest,
3
- SystemForeignerFields,
4
- SystemForeignerFieldsRequest,
5
3
  SystemSvFields,
6
4
  SystemSvFieldsRequest,
7
5
  } from '../../system'
@@ -21,25 +19,23 @@ export type Customers = {
21
19
  lastname2?: string
22
20
  lastname3?: string
23
21
  shortName: string
22
+ passport?: string
24
23
  active?: boolean
24
+ passportIssuedDate?: Date
25
+ passportExpirationDate?: Date
25
26
  profession?: string
27
+ duiIssuedDate?: Date
28
+ duiExpirationDate?: Date
29
+ nitIssuedDate?: Date
26
30
  type: SystemSellingTypeGetSingleResponse
27
31
  personType: SystemPersonTypeGetSingleResponse
28
32
  personTypeNatural: SystemNaturalTypesGetSingleResponse
29
33
  directory: SystemDirectoryResponse[]
30
34
  svFields: SystemSvFields
31
- foreignerFields: SystemForeignerFields
32
35
  }
33
36
  export type CustomersRequest = Omit<
34
37
  Customers,
35
- | 'id'
36
- | 'taxerType'
37
- | 'personType'
38
- | 'type'
39
- | 'personTypeNatural'
40
- | 'directory'
41
- | 'svFields'
42
- | 'foreignerFields'
38
+ 'id' | 'taxerType' | 'personType' | 'type' | 'personTypeNatural' | 'directory' | 'svFields'
43
39
  > & {
44
40
  type: number
45
41
  personType: number
@@ -47,6 +43,5 @@ export type CustomersRequest = Omit<
47
43
  branch: CustomersBranchesCreateSingleRequest
48
44
  directory?: Omit<SystemDirectoryCreateSingleRequest, 'entityType' | 'entityId'>[]
49
45
  svFields: SystemSvFieldsRequest
50
- foreignerFields: SystemForeignerFieldsRequest
51
46
  }
52
47
  export type CustomersResponse = Customers
@@ -0,0 +1,3 @@
1
+ import { ManagementBranch } from '../management.branch.type'
2
+
3
+ export type ManagementBranchGetCurrent = ManagementBranch
@@ -0,0 +1,2 @@
1
+ export * from './GetCurrent'
2
+ export * from './management.branch.type'
@@ -0,0 +1,7 @@
1
+ import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types'
2
+
3
+ export type ManagementBranch = {
4
+ id: string
5
+ name: string
6
+ contacts: Array<SystemDirectoryResponse>
7
+ }
@@ -7,9 +7,7 @@ export type ManagementCompanyUpdateCurrentRequest = Omit<
7
7
  > & {
8
8
  companyType: number
9
9
  naturalType?: number
10
- svFields: Required<
11
- Omit<SystemSvFieldsRequest, 'dui' | 'nitIssuedDate' | 'duiIssuedDate' | 'duiExpirationDate'>
12
- > & {
10
+ svFields: Required<Omit<SystemSvFieldsRequest, 'dui'>> & {
13
11
  dui?: string
14
12
  }
15
13
  contacts: Omit<SystemDirectoryUpdateSingleRequest, 'entityType' | 'entityId'> &
@@ -1,7 +1,7 @@
1
1
  import { SystemSvFields } from '../../system'
2
- import { SystemDirectoryResponse } from '../../system/Directory/system.directory.types'
3
2
  import { SystemNaturalTypes } from '../../system/NaturalTypes/system.natural-types.types'
4
3
  import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.types'
4
+ import { ManagementBranch } from '../Branch/management.branch.type'
5
5
 
6
6
  export type ManagementCompany = {
7
7
  id: string
@@ -10,5 +10,5 @@ export type ManagementCompany = {
10
10
  companyType: SystemPersonTypes
11
11
  naturalType: SystemNaturalTypes
12
12
  svFields: SystemSvFields
13
- contacts: Array<SystemDirectoryResponse>
13
+ branch: ManagementBranch
14
14
  }
@@ -1,3 +1,4 @@
1
+ export * from './Branch'
1
2
  export * from './Company'
2
3
  export * from './Profiles'
3
4
  export * from './Users'
@@ -1 +0,0 @@
1
- export * from './system.foreigner.fields.types';
@@ -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("./system.foreigner.fields.types"), exports);
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/system/FOREIGNER/Fields/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAA+C"}
@@ -1,8 +0,0 @@
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'>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"system.foreigner.fields.types.js","sourceRoot":"","sources":["../../../../src/system/FOREIGNER/Fields/system.foreigner.fields.types.ts"],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export * from './Fields';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/system/FOREIGNER/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB"}
@@ -1 +0,0 @@
1
- export * from './system.foreigner.fields.types'
@@ -1,8 +0,0 @@
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'>
@@ -1 +0,0 @@
1
- export * from './Fields'