@openbox/shared-types 0.4.28 → 0.4.30

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 (72) hide show
  1. package/lib/customers/Customers/customers.types.d.ts +8 -4
  2. package/lib/index.d.ts +1 -0
  3. package/lib/index.js +1 -0
  4. package/lib/index.js.map +1 -1
  5. package/lib/inventories/Categories/CreateSingle/Request.d.ts +4 -0
  6. package/lib/{system/FOREIGNER/Fields/system.foreigner.fields.types.js → inventories/Categories/CreateSingle/Request.js} +1 -1
  7. package/lib/inventories/Categories/CreateSingle/Request.js.map +1 -0
  8. package/lib/inventories/Categories/CreateSingle/Response.d.ts +2 -0
  9. package/lib/inventories/Categories/CreateSingle/Response.js +3 -0
  10. package/lib/inventories/Categories/CreateSingle/Response.js.map +1 -0
  11. package/lib/inventories/Categories/DeleteSingle/Response.d.ts +2 -0
  12. package/lib/inventories/Categories/DeleteSingle/Response.js +3 -0
  13. package/lib/inventories/Categories/DeleteSingle/Response.js.map +1 -0
  14. package/lib/inventories/Categories/GetMany/Request.d.ts +2 -0
  15. package/lib/inventories/Categories/GetMany/Request.js +3 -0
  16. package/lib/inventories/Categories/GetMany/Request.js.map +1 -0
  17. package/lib/inventories/Categories/GetMany/Response.d.ts +7 -0
  18. package/lib/inventories/Categories/GetMany/Response.js +3 -0
  19. package/lib/inventories/Categories/GetMany/Response.js.map +1 -0
  20. package/lib/inventories/Categories/GetSingle/Response.d.ts +2 -0
  21. package/lib/inventories/Categories/GetSingle/Response.js +3 -0
  22. package/lib/inventories/Categories/GetSingle/Response.js.map +1 -0
  23. package/lib/inventories/Categories/UpdateSingle/Request.d.ts +2 -0
  24. package/lib/inventories/Categories/UpdateSingle/Request.js +3 -0
  25. package/lib/inventories/Categories/UpdateSingle/Request.js.map +1 -0
  26. package/lib/inventories/Categories/UpdateSingle/Response.d.ts +2 -0
  27. package/lib/inventories/Categories/UpdateSingle/Response.js +3 -0
  28. package/lib/inventories/Categories/UpdateSingle/Response.js.map +1 -0
  29. package/lib/inventories/Categories/index.d.ts +9 -0
  30. package/lib/{system/FOREIGNER/Fields → inventories/Categories}/index.js +9 -1
  31. package/lib/inventories/Categories/index.js.map +1 -0
  32. package/lib/inventories/Categories/inventories.categories.type.d.ts +7 -0
  33. package/lib/inventories/Categories/inventories.categories.type.js +3 -0
  34. package/lib/inventories/Categories/inventories.categories.type.js.map +1 -0
  35. package/lib/inventories/index.d.ts +1 -0
  36. package/lib/{system/FOREIGNER → inventories}/index.js +1 -1
  37. package/lib/inventories/index.js.map +1 -0
  38. package/lib/management/Company/UpdateCurrent/Request.d.ts +1 -1
  39. package/lib/system/SV/Fields/system.sv.fields.types.d.ts +0 -3
  40. package/lib/system/index.d.ts +0 -1
  41. package/lib/system/index.js +0 -1
  42. package/lib/system/index.js.map +1 -1
  43. package/lib/system/system.enums.d.ts +4 -0
  44. package/lib/system/system.enums.js +4 -0
  45. package/lib/system/system.enums.js.map +1 -1
  46. package/package.json +1 -1
  47. package/src/System/SV/Fields/system.sv.fields.types.ts +0 -3
  48. package/src/System/index.ts +0 -1
  49. package/src/System/system.enums.ts +4 -0
  50. package/src/customers/Customers/customers.types.ts +7 -12
  51. package/src/index.ts +1 -0
  52. package/src/inventories/Categories/CreateSingle/Request.ts +8 -0
  53. package/src/inventories/Categories/CreateSingle/Response.ts +3 -0
  54. package/src/inventories/Categories/DeleteSingle/Response.ts +3 -0
  55. package/src/inventories/Categories/GetMany/Request.ts +3 -0
  56. package/src/inventories/Categories/GetMany/Response.ts +6 -0
  57. package/src/inventories/Categories/GetSingle/Response.ts +3 -0
  58. package/src/inventories/Categories/UpdateSingle/Request.ts +4 -0
  59. package/src/inventories/Categories/UpdateSingle/Response.ts +3 -0
  60. package/src/inventories/Categories/index.ts +9 -0
  61. package/src/inventories/Categories/inventories.categories.type.ts +7 -0
  62. package/src/inventories/index.ts +1 -0
  63. package/src/management/Company/UpdateCurrent/Request.ts +1 -3
  64. package/lib/system/FOREIGNER/Fields/index.d.ts +0 -1
  65. package/lib/system/FOREIGNER/Fields/index.js.map +0 -1
  66. package/lib/system/FOREIGNER/Fields/system.foreigner.fields.types.d.ts +0 -8
  67. package/lib/system/FOREIGNER/Fields/system.foreigner.fields.types.js.map +0 -1
  68. package/lib/system/FOREIGNER/index.d.ts +0 -1
  69. package/lib/system/FOREIGNER/index.js.map +0 -1
  70. package/src/System/FOREIGNER/Fields/index.ts +0 -1
  71. package/src/System/FOREIGNER/Fields/system.foreigner.fields.types.ts +0 -8
  72. 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;
package/lib/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './accounting';
2
2
  export * from './auth';
3
3
  export * from './customers';
4
+ export * from './inventories';
4
5
  export * from './invoices';
5
6
  export * from './legal';
6
7
  export * from './management';
package/lib/index.js CHANGED
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./accounting"), exports);
18
18
  __exportStar(require("./auth"), exports);
19
19
  __exportStar(require("./customers"), exports);
20
+ __exportStar(require("./inventories"), exports);
20
21
  __exportStar(require("./invoices"), exports);
21
22
  __exportStar(require("./legal"), exports);
22
23
  __exportStar(require("./management"), 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,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,gDAA6B;AAC7B,6CAA0B;AAC1B,0CAAuB;AACvB,+CAA4B;AAC5B,6CAA0B;AAC1B,2CAAwB"}
@@ -0,0 +1,4 @@
1
+ import { InventoriesCategories } from '../inventories.categories.type';
2
+ export type InventoriesCategoriesCreateSingleRequest = Pick<InventoriesCategories, 'name' | 'description'> & {
3
+ parent?: string;
4
+ };
@@ -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=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/inventories/Categories/CreateSingle/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type InventoriesCategoriesCreateSingleResponse = 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/inventories/Categories/CreateSingle/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type InventoriesCategoriesDeleteSingleResponse = 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/inventories/Categories/DeleteSingle/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { GetManyRequest } from '../../../interfaces';
2
+ export type InventoriesCategoriesGetManyRequest = GetManyRequest;
@@ -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/inventories/Categories/GetMany/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { GetManyResponse } from '../../../interfaces';
2
+ import { InventoriesCategories } from '../inventories.categories.type';
3
+ export type InventoriesCategoriesGetManyResponse = GetManyResponse & {
4
+ data: Array<InventoriesCategories & {
5
+ index: number;
6
+ }>;
7
+ };
@@ -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/inventories/Categories/GetMany/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { InventoriesCategories } from '../inventories.categories.type';
2
+ export type InventoriesCategoriesGetSingleResponse = InventoriesCategories;
@@ -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/inventories/Categories/GetSingle/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { InventoriesCategoriesCreateSingleRequest } from '../CreateSingle/Request';
2
+ export type InventoriesCategoriesUpdateSingleRequest = Partial<InventoriesCategoriesCreateSingleRequest>;
@@ -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/inventories/Categories/UpdateSingle/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type InventoriesCategoriesUpdateSingleResponse = 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/inventories/Categories/UpdateSingle/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,9 @@
1
+ export * from './CreateSingle/Request';
2
+ export * from './CreateSingle/Response';
3
+ export * from './DeleteSingle/Response';
4
+ export * from './GetMany/Request';
5
+ export * from './GetMany/Response';
6
+ export * from './GetSingle/Response';
7
+ export * from './UpdateSingle/Request';
8
+ export * from './UpdateSingle/Response';
9
+ export * from './inventories.categories.type';
@@ -14,5 +14,13 @@ 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("./system.foreigner.fields.types"), exports);
17
+ __exportStar(require("./CreateSingle/Request"), exports);
18
+ __exportStar(require("./CreateSingle/Response"), exports);
19
+ __exportStar(require("./DeleteSingle/Response"), exports);
20
+ __exportStar(require("./GetMany/Request"), exports);
21
+ __exportStar(require("./GetMany/Response"), exports);
22
+ __exportStar(require("./GetSingle/Response"), exports);
23
+ __exportStar(require("./UpdateSingle/Request"), exports);
24
+ __exportStar(require("./UpdateSingle/Response"), exports);
25
+ __exportStar(require("./inventories.categories.type"), exports);
18
26
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/inventories/Categories/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC;AACvC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,yDAAsC;AACtC,0DAAuC;AACvC,gEAA6C"}
@@ -0,0 +1,7 @@
1
+ export type InventoriesCategories = {
2
+ id: string;
3
+ name: string;
4
+ description: string;
5
+ children: InventoriesCategories[];
6
+ parent: InventoriesCategories;
7
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=inventories.categories.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inventories.categories.type.js","sourceRoot":"","sources":["../../../src/inventories/Categories/inventories.categories.type.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './Categories';
@@ -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("./Fields"), exports);
17
+ __exportStar(require("./Categories"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/inventories/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B"}
@@ -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'> & {
@@ -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"}
@@ -39,6 +39,10 @@ export declare const SystemModules: {
39
39
  id: string;
40
40
  name: string;
41
41
  };
42
+ Inventories: {
43
+ id: string;
44
+ name: string;
45
+ };
42
46
  };
43
47
  export declare enum SystemTaxerTypesEnum {
44
48
  Small = 1,
@@ -42,6 +42,10 @@ exports.SystemModules = {
42
42
  id: '53a36e54-bab2-4824-9e43-b40efab8bab9',
43
43
  name: 'Taxes',
44
44
  },
45
+ Inventories: {
46
+ id: '1ef033ba-0947-445a-aa0d-696fceec175c',
47
+ name: 'Inventories',
48
+ },
45
49
  };
46
50
  var SystemTaxerTypesEnum;
47
51
  (function (SystemTaxerTypesEnum) {
@@ -1 +1 @@
1
- {"version":3,"file":"system.enums.js","sourceRoot":"","sources":["../../src/system/system.enums.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE;QACT,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,WAAW;KAClB;IACD,SAAS,EAAE;QACT,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,WAAW;KAClB;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,UAAU;KACjB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,OAAO;KACd;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,UAAU;KACjB;IACD,SAAS,EAAE;QACT,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,WAAW;KAClB;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,UAAU;KACjB;IACD,UAAU,EAAE;QACV,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,YAAY;KACnB;IACD,UAAU,EAAE;QACV,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,YAAY;KACnB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,OAAO;KACd;CACF,CAAA;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,iEAAS,CAAA;IACT,mEAAU,CAAA;IACV,iEAAS,CAAA;AACX,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,yEAAY,CAAA;IACZ,uEAAW,CAAA;IACX,6EAAc,CAAA;AAChB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,mFAAgB,CAAA;IAChB,+EAAc,CAAA;AAChB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAChC,2EAAY,CAAA;IACZ,uEAAU,CAAA;IACV,yEAAW,CAAA;AACb,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
1
+ {"version":3,"file":"system.enums.js","sourceRoot":"","sources":["../../src/system/system.enums.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE;QACT,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,WAAW;KAClB;IACD,SAAS,EAAE;QACT,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,WAAW;KAClB;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,UAAU;KACjB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,OAAO;KACd;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,UAAU;KACjB;IACD,SAAS,EAAE;QACT,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,WAAW;KAClB;IACD,QAAQ,EAAE;QACR,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,UAAU;KACjB;IACD,UAAU,EAAE;QACV,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,YAAY;KACnB;IACD,UAAU,EAAE;QACV,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,YAAY;KACnB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,OAAO;KACd;IACD,WAAW,EAAE;QACX,EAAE,EAAE,sCAAsC;QAC1C,IAAI,EAAE,aAAa;KACpB;CACF,CAAA;AAED,IAAY,oBAIX;AAJD,WAAY,oBAAoB;IAC9B,iEAAS,CAAA;IACT,mEAAU,CAAA;IACV,iEAAS,CAAA;AACX,CAAC,EAJW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAI/B;AAED,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,yEAAY,CAAA;IACZ,uEAAW,CAAA;IACX,6EAAc,CAAA;AAChB,CAAC,EAJW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAIhC;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,mFAAgB,CAAA;IAChB,+EAAc,CAAA;AAChB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC;AAED,IAAY,sBAIX;AAJD,WAAY,sBAAsB;IAChC,2EAAY,CAAA;IACZ,uEAAU,CAAA;IACV,yEAAW,CAAA;AACb,CAAC,EAJW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAIjC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.4.28",
3
+ "version": "0.4.30",
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/'
@@ -39,6 +39,10 @@ export const SystemModules = {
39
39
  id: '53a36e54-bab2-4824-9e43-b40efab8bab9',
40
40
  name: 'Taxes',
41
41
  },
42
+ Inventories: {
43
+ id: '1ef033ba-0947-445a-aa0d-696fceec175c',
44
+ name: 'Inventories',
45
+ },
42
46
  }
43
47
 
44
48
  export enum SystemTaxerTypesEnum {
@@ -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
package/src/index.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './accounting'
2
2
  export * from './auth'
3
3
  export * from './customers'
4
+ export * from './inventories'
4
5
  export * from './invoices'
5
6
  export * from './legal'
6
7
  export * from './management'
@@ -0,0 +1,8 @@
1
+ import { InventoriesCategories } from '../inventories.categories.type'
2
+
3
+ export type InventoriesCategoriesCreateSingleRequest = Pick<
4
+ InventoriesCategories,
5
+ 'name' | 'description'
6
+ > & {
7
+ parent?: string
8
+ }
@@ -0,0 +1,3 @@
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type InventoriesCategoriesCreateSingleResponse = SingleResponse
@@ -0,0 +1,3 @@
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type InventoriesCategoriesDeleteSingleResponse = SingleResponse
@@ -0,0 +1,3 @@
1
+ import { GetManyRequest } from '../../../interfaces'
2
+
3
+ export type InventoriesCategoriesGetManyRequest = GetManyRequest
@@ -0,0 +1,6 @@
1
+ import { GetManyResponse } from '../../../interfaces'
2
+ import { InventoriesCategories } from '../inventories.categories.type'
3
+
4
+ export type InventoriesCategoriesGetManyResponse = GetManyResponse & {
5
+ data: Array<InventoriesCategories & { index: number }>
6
+ }
@@ -0,0 +1,3 @@
1
+ import { InventoriesCategories } from '../inventories.categories.type'
2
+
3
+ export type InventoriesCategoriesGetSingleResponse = InventoriesCategories
@@ -0,0 +1,4 @@
1
+ import { InventoriesCategoriesCreateSingleRequest } from '../CreateSingle/Request'
2
+
3
+ export type InventoriesCategoriesUpdateSingleRequest =
4
+ Partial<InventoriesCategoriesCreateSingleRequest>
@@ -0,0 +1,3 @@
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type InventoriesCategoriesUpdateSingleResponse = SingleResponse
@@ -0,0 +1,9 @@
1
+ export * from './CreateSingle/Request'
2
+ export * from './CreateSingle/Response'
3
+ export * from './DeleteSingle/Response'
4
+ export * from './GetMany/Request'
5
+ export * from './GetMany/Response'
6
+ export * from './GetSingle/Response'
7
+ export * from './UpdateSingle/Request'
8
+ export * from './UpdateSingle/Response'
9
+ export * from './inventories.categories.type'
@@ -0,0 +1,7 @@
1
+ export type InventoriesCategories = {
2
+ id: string
3
+ name: string
4
+ description: string
5
+ children: InventoriesCategories[]
6
+ parent: InventoriesCategories
7
+ }
@@ -0,0 +1 @@
1
+ export * from './Categories'
@@ -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 +0,0 @@
1
- export * from './system.foreigner.fields.types';
@@ -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'