@openbox/shared-types 0.3.36 → 0.3.38

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/accounting/Catalogs/accounting.catalogs.types.d.ts +11 -0
  2. package/lib/accounting/Catalogs/accounting.catalogs.types.js +3 -0
  3. package/lib/accounting/Catalogs/accounting.catalogs.types.js.map +1 -0
  4. package/lib/accounting/Catalogs/index.d.ts +1 -0
  5. package/lib/accounting/Catalogs/index.js +18 -0
  6. package/lib/accounting/Catalogs/index.js.map +1 -0
  7. package/lib/accounting/Entries/GetMany/Response.d.ts +1 -1
  8. package/lib/accounting/Entries/accounting.entries.types.d.ts +2 -0
  9. package/lib/accounting/Entries/index.d.ts +1 -0
  10. package/lib/accounting/Entries/index.js +1 -0
  11. package/lib/accounting/Entries/index.js.map +1 -1
  12. package/lib/accounting/EntriesDetails/accounting.entries-details.types.d.ts +9 -0
  13. package/lib/accounting/EntriesDetails/accounting.entries-details.types.js +3 -0
  14. package/lib/accounting/EntriesDetails/accounting.entries-details.types.js.map +1 -0
  15. package/lib/accounting/EntriesDetails/index.d.ts +1 -0
  16. package/lib/accounting/EntriesDetails/index.js +18 -0
  17. package/lib/accounting/EntriesDetails/index.js.map +1 -0
  18. package/lib/accounting/index.d.ts +2 -0
  19. package/lib/accounting/index.js +2 -0
  20. package/lib/accounting/index.js.map +1 -1
  21. package/package.json +1 -1
  22. package/src/accounting/Catalogs/accounting.catalogs.types.ts +11 -0
  23. package/src/accounting/Catalogs/index.ts +1 -0
  24. package/src/accounting/Entries/GetMany/Response.ts +3 -1
  25. package/src/accounting/Entries/accounting.entries.types.ts +2 -0
  26. package/src/accounting/Entries/index.ts +1 -0
  27. package/src/accounting/EntriesDetails/accounting.entries-details.types.ts +10 -0
  28. package/src/accounting/EntriesDetails/index.ts +1 -0
  29. package/src/accounting/index.ts +2 -0
@@ -0,0 +1,11 @@
1
+ export type AccountingCatalogs = {
2
+ id: string;
3
+ code: string;
4
+ name: string;
5
+ description: string;
6
+ level: number;
7
+ isParent: boolean;
8
+ isAcreedora: boolean;
9
+ isBalance: boolean;
10
+ parentCatalog: AccountingCatalogs;
11
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=accounting.catalogs.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounting.catalogs.types.js","sourceRoot":"","sources":["../../../src/accounting/Catalogs/accounting.catalogs.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './accounting.catalogs.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("./accounting.catalogs.types"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Catalogs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA2C"}
@@ -1,7 +1,7 @@
1
1
  import { GetManyResponse } from '../../../interfaces';
2
2
  import { AccountingEntriesGetSingleResponse } from '../GetSingle/Response';
3
3
  export type AccountingEntriesGetManyResponse = GetManyResponse & {
4
- data: Array<AccountingEntriesGetSingleResponse & {
4
+ data: Array<Omit<AccountingEntriesGetSingleResponse, 'accountingEntryDetails'> & {
5
5
  index: number;
6
6
  }>;
7
7
  };
@@ -1,3 +1,4 @@
1
+ import { AccountingEntriesDetails } from '../EntriesDetails';
1
2
  import { AccountingEntriesStatuses } from '../EntriesStatuses';
2
3
  import { AccountingEntriesTypes } from '../EntriesTypes';
3
4
  export type AccountingEntries = {
@@ -8,4 +9,5 @@ export type AccountingEntries = {
8
9
  origin: string;
9
10
  accountingEntryType: AccountingEntriesTypes;
10
11
  status: AccountingEntriesStatuses;
12
+ accountingEntryDetails: AccountingEntriesDetails[];
11
13
  };
@@ -1,3 +1,4 @@
1
1
  export * from './GetMany/Request';
2
2
  export * from './GetMany/Response';
3
+ export * from './GetSingle/Response';
3
4
  export * from './accounting.entries.types';
@@ -16,5 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./GetMany/Request"), exports);
18
18
  __exportStar(require("./GetMany/Response"), exports);
19
+ __exportStar(require("./GetSingle/Response"), exports);
19
20
  __exportStar(require("./accounting.entries.types"), exports);
20
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Entries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,qDAAkC;AAClC,6DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Entries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,6DAA0C"}
@@ -0,0 +1,9 @@
1
+ import { AccountingCatalogs } from '../Catalogs';
2
+ export type AccountingEntriesDetails = {
3
+ id: string;
4
+ catalogName: string;
5
+ concept: string;
6
+ cargo: number;
7
+ abono: number;
8
+ accountingCatalog: AccountingCatalogs;
9
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=accounting.entries-details.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounting.entries-details.types.js","sourceRoot":"","sources":["../../../src/accounting/EntriesDetails/accounting.entries-details.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './accounting.entries-details.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("./accounting.entries-details.types"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/EntriesDetails/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qEAAkD"}
@@ -1,4 +1,6 @@
1
+ export * from './Catalogs';
1
2
  export * from './Entries';
3
+ export * from './EntriesDetails';
2
4
  export * from './EntriesStatuses';
3
5
  export * from './EntriesTypes';
4
6
  export * from './accounting.enums';
@@ -14,7 +14,9 @@ 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("./Catalogs"), exports);
17
18
  __exportStar(require("./Entries"), exports);
19
+ __exportStar(require("./EntriesDetails"), exports);
18
20
  __exportStar(require("./EntriesStatuses"), exports);
19
21
  __exportStar(require("./EntriesTypes"), exports);
20
22
  __exportStar(require("./accounting.enums"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/accounting/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAAyB;AACzB,oDAAiC;AACjC,iDAA8B;AAC9B,qDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/accounting/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B;AAC1B,4CAAyB;AACzB,mDAAgC;AAChC,oDAAiC;AACjC,iDAA8B;AAC9B,qDAAkC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.3.36",
3
+ "version": "0.3.38",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -0,0 +1,11 @@
1
+ export type AccountingCatalogs = {
2
+ id: string
3
+ code: string
4
+ name: string
5
+ description: string
6
+ level: number
7
+ isParent: boolean
8
+ isAcreedora: boolean
9
+ isBalance: boolean
10
+ parentCatalog: AccountingCatalogs
11
+ }
@@ -0,0 +1 @@
1
+ export * from './accounting.catalogs.types'
@@ -2,5 +2,7 @@ import { GetManyResponse } from '../../../interfaces'
2
2
  import { AccountingEntriesGetSingleResponse } from '../GetSingle/Response'
3
3
 
4
4
  export type AccountingEntriesGetManyResponse = GetManyResponse & {
5
- data: Array<AccountingEntriesGetSingleResponse & { index: number }>
5
+ data: Array<
6
+ Omit<AccountingEntriesGetSingleResponse, 'accountingEntryDetails'> & { index: number }
7
+ >
6
8
  }
@@ -1,3 +1,4 @@
1
+ import { AccountingEntriesDetails } from '../EntriesDetails'
1
2
  import { AccountingEntriesStatuses } from '../EntriesStatuses'
2
3
  import { AccountingEntriesTypes } from '../EntriesTypes'
3
4
 
@@ -9,4 +10,5 @@ export type AccountingEntries = {
9
10
  origin: string
10
11
  accountingEntryType: AccountingEntriesTypes
11
12
  status: AccountingEntriesStatuses
13
+ accountingEntryDetails: AccountingEntriesDetails[]
12
14
  }
@@ -1,3 +1,4 @@
1
1
  export * from './GetMany/Request'
2
2
  export * from './GetMany/Response'
3
+ export * from './GetSingle/Response'
3
4
  export * from './accounting.entries.types'
@@ -0,0 +1,10 @@
1
+ import { AccountingCatalogs } from '../Catalogs'
2
+
3
+ export type AccountingEntriesDetails = {
4
+ id: string
5
+ catalogName: string
6
+ concept: string
7
+ cargo: number
8
+ abono: number
9
+ accountingCatalog: AccountingCatalogs
10
+ }
@@ -0,0 +1 @@
1
+ export * from './accounting.entries-details.types'
@@ -1,4 +1,6 @@
1
+ export * from './Catalogs'
1
2
  export * from './Entries'
3
+ export * from './EntriesDetails'
2
4
  export * from './EntriesStatuses'
3
5
  export * from './EntriesTypes'
4
6
  export * from './accounting.enums'