@openbox/shared-types 0.3.37 → 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.
@@ -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
  };
@@ -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.37",
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
  }
@@ -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'