@openbox/shared-types 0.3.50 → 0.3.52

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 (27) hide show
  1. package/lib/accounting/Catalogs/GetMany/Request.d.ts +2 -0
  2. package/lib/accounting/Catalogs/GetMany/Request.js +3 -0
  3. package/lib/accounting/Catalogs/GetMany/Request.js.map +1 -0
  4. package/lib/accounting/Catalogs/GetMany/Response.d.ts +3 -2
  5. package/lib/accounting/Catalogs/GetMany/Response.js +0 -4
  6. package/lib/accounting/Catalogs/GetMany/Response.js.map +1 -1
  7. package/lib/accounting/Catalogs/accounting.catalogs.types.d.ts +0 -2
  8. package/lib/accounting/Catalogs/index.d.ts +1 -0
  9. package/lib/accounting/Catalogs/index.js +1 -0
  10. package/lib/accounting/Catalogs/index.js.map +1 -1
  11. package/lib/accounting/Entries/CreateSingle/Request.d.ts +2 -4
  12. package/lib/accounting/Entries/UpdateSingle/Request.d.ts +4 -6
  13. package/lib/accounting/EntriesDetails/UpdateSingle/Request.d.ts +4 -0
  14. package/lib/accounting/EntriesDetails/UpdateSingle/Request.js +3 -0
  15. package/lib/accounting/EntriesDetails/UpdateSingle/Request.js.map +1 -0
  16. package/lib/accounting/EntriesDetails/index.d.ts +1 -0
  17. package/lib/accounting/EntriesDetails/index.js +1 -0
  18. package/lib/accounting/EntriesDetails/index.js.map +1 -1
  19. package/package.json +1 -1
  20. package/src/accounting/Catalogs/GetMany/Request.ts +3 -0
  21. package/src/accounting/Catalogs/GetMany/Response.ts +2 -1
  22. package/src/accounting/Catalogs/accounting.catalogs.types.ts +2 -2
  23. package/src/accounting/Catalogs/index.ts +1 -0
  24. package/src/accounting/Entries/CreateSingle/Request.ts +2 -4
  25. package/src/accounting/Entries/UpdateSingle/Request.ts +8 -11
  26. package/src/accounting/EntriesDetails/UpdateSingle/Request.ts +8 -0
  27. package/src/accounting/EntriesDetails/index.ts +1 -0
@@ -0,0 +1,2 @@
1
+ import { GetManyRequest } from '../../../interfaces';
2
+ export type AccountingCatalogsGetManyRequest = 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/accounting/Catalogs/GetMany/Request.ts"],"names":[],"mappings":""}
@@ -1,4 +1,5 @@
1
+ import { GetManyResponse } from '../../../interfaces';
1
2
  import { AccountingCatalogsGetSingleResponse } from '../GetSingle/Response';
2
- export declare class AccountingCatalogsGetManyResponse {
3
+ export type AccountingCatalogsGetManyResponse = GetManyResponse & {
3
4
  data: Array<AccountingCatalogsGetSingleResponse>;
4
- }
5
+ };
@@ -1,7 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AccountingCatalogsGetManyResponse = void 0;
4
- class AccountingCatalogsGetManyResponse {
5
- }
6
- exports.AccountingCatalogsGetManyResponse = AccountingCatalogsGetManyResponse;
7
3
  //# sourceMappingURL=Response.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/accounting/Catalogs/GetMany/Response.ts"],"names":[],"mappings":";;;AAEA,MAAa,iCAAiC;CAE7C;AAFD,8EAEC"}
1
+ {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../src/accounting/Catalogs/GetMany/Response.ts"],"names":[],"mappings":""}
@@ -3,9 +3,7 @@ export type AccountingCatalogs = {
3
3
  code: string;
4
4
  name: string;
5
5
  description: string;
6
- level: number;
7
6
  isParent: boolean;
8
7
  isAcreedora: boolean;
9
8
  isBalance: boolean;
10
- parentCatalog: AccountingCatalogs;
11
9
  };
@@ -1,3 +1,4 @@
1
+ export * from './GetMany/Request';
1
2
  export * from './GetMany/Response';
2
3
  export * from './GetSingle/Response';
3
4
  export * from './accounting.catalogs.types';
@@ -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("./GetMany/Request"), exports);
17
18
  __exportStar(require("./GetMany/Response"), exports);
18
19
  __exportStar(require("./GetSingle/Response"), exports);
19
20
  __exportStar(require("./accounting.catalogs.types"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Catalogs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,uDAAoC;AACpC,8DAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Catalogs/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,8DAA2C"}
@@ -1,9 +1,7 @@
1
- import { AccountingEntriesDetails } from '../../EntriesDetails';
1
+ import { AccountingEntriesDetailsCreateSingleRequest } from '../../EntriesDetails';
2
2
  import { AccountingEntries } from '../accounting.entries.types';
3
3
  export type AccountingEntriesCreateSingleRequest = Omit<AccountingEntries, 'id' | 'origin' | 'type' | 'status' | 'details'> & {
4
4
  type: number;
5
5
  status: number;
6
- details: (Omit<AccountingEntriesDetails, 'id' | 'accountingCatalog'> & {
7
- accountingCatalog: string;
8
- })[];
6
+ details: AccountingEntriesDetailsCreateSingleRequest[];
9
7
  };
@@ -1,9 +1,7 @@
1
- import { AccountingEntriesDetails } from '../../EntriesDetails';
1
+ import { AccountingEntriesDetailsUpdateSingleRequest } from '../../EntriesDetails/UpdateSingle/Request';
2
2
  import { AccountingEntries } from '../accounting.entries.types';
3
- export type AccountingEntriesUpdateSingleRequest = Omit<AccountingEntries, 'id' | 'origin' | 'type' | 'status' | 'details'> & {
3
+ export type AccountingEntriesUpdateSingleRequest = Partial<Omit<AccountingEntries, 'id' | 'origin' | 'type' | 'status' | 'details'> & {
4
4
  type: number;
5
5
  status: number;
6
- details: (Omit<AccountingEntriesDetails, 'accountingCatalog'> & {
7
- accountingCatalog: string;
8
- })[];
9
- };
6
+ details: AccountingEntriesDetailsUpdateSingleRequest[];
7
+ }>;
@@ -0,0 +1,4 @@
1
+ import { AccountingEntriesDetails } from '..';
2
+ export type AccountingEntriesDetailsUpdateSingleRequest = Omit<AccountingEntriesDetails, 'accountingCatalog'> & {
3
+ accountingCatalog: string;
4
+ };
@@ -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/accounting/EntriesDetails/UpdateSingle/Request.ts"],"names":[],"mappings":""}
@@ -1,2 +1,3 @@
1
1
  export * from './CreateSingle/Request';
2
+ export * from './UpdateSingle/Request';
2
3
  export * from './accounting.entries-details.types';
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CreateSingle/Request"), exports);
18
+ __exportStar(require("./UpdateSingle/Request"), exports);
18
19
  __exportStar(require("./accounting.entries-details.types"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/EntriesDetails/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,qEAAkD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/EntriesDetails/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,yDAAsC;AACtC,qEAAkD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.3.50",
3
+ "version": "0.3.52",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -0,0 +1,3 @@
1
+ import { GetManyRequest } from '../../../interfaces'
2
+
3
+ export type AccountingCatalogsGetManyRequest = GetManyRequest
@@ -1,5 +1,6 @@
1
+ import { GetManyResponse } from '../../../interfaces'
1
2
  import { AccountingCatalogsGetSingleResponse } from '../GetSingle/Response'
2
3
 
3
- export class AccountingCatalogsGetManyResponse {
4
+ export type AccountingCatalogsGetManyResponse = GetManyResponse & {
4
5
  data: Array<AccountingCatalogsGetSingleResponse>
5
6
  }
@@ -3,9 +3,9 @@ export type AccountingCatalogs = {
3
3
  code: string
4
4
  name: string
5
5
  description: string
6
- level: number
6
+ // level: number
7
7
  isParent: boolean
8
8
  isAcreedora: boolean
9
9
  isBalance: boolean
10
- parentCatalog: AccountingCatalogs
10
+ // parentCatalog: AccountingCatalogs
11
11
  }
@@ -1,3 +1,4 @@
1
+ export * from './GetMany/Request'
1
2
  export * from './GetMany/Response'
2
3
  export * from './GetSingle/Response'
3
4
  export * from './accounting.catalogs.types'
@@ -1,4 +1,4 @@
1
- import { AccountingEntriesDetails } from '../../EntriesDetails'
1
+ import { AccountingEntriesDetailsCreateSingleRequest } from '../../EntriesDetails'
2
2
  import { AccountingEntries } from '../accounting.entries.types'
3
3
 
4
4
  export type AccountingEntriesCreateSingleRequest = Omit<
@@ -7,7 +7,5 @@ export type AccountingEntriesCreateSingleRequest = Omit<
7
7
  > & {
8
8
  type: number
9
9
  status: number
10
- details: (Omit<AccountingEntriesDetails, 'id' | 'accountingCatalog'> & {
11
- accountingCatalog: string
12
- })[]
10
+ details: AccountingEntriesDetailsCreateSingleRequest[]
13
11
  }
@@ -1,13 +1,10 @@
1
- import { AccountingEntriesDetails } from '../../EntriesDetails'
1
+ import { AccountingEntriesDetailsUpdateSingleRequest } from '../../EntriesDetails/UpdateSingle/Request'
2
2
  import { AccountingEntries } from '../accounting.entries.types'
3
3
 
4
- export type AccountingEntriesUpdateSingleRequest = Omit<
5
- AccountingEntries,
6
- 'id' | 'origin' | 'type' | 'status' | 'details'
7
- > & {
8
- type: number
9
- status: number
10
- details: (Omit<AccountingEntriesDetails, 'accountingCatalog'> & {
11
- accountingCatalog: string
12
- })[]
13
- }
4
+ export type AccountingEntriesUpdateSingleRequest = Partial<
5
+ Omit<AccountingEntries, 'id' | 'origin' | 'type' | 'status' | 'details'> & {
6
+ type: number
7
+ status: number
8
+ details: AccountingEntriesDetailsUpdateSingleRequest[]
9
+ }
10
+ >
@@ -0,0 +1,8 @@
1
+ import { AccountingEntriesDetails } from '..'
2
+
3
+ export type AccountingEntriesDetailsUpdateSingleRequest = Omit<
4
+ AccountingEntriesDetails,
5
+ 'accountingCatalog'
6
+ > & {
7
+ accountingCatalog: string
8
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './CreateSingle/Request'
2
+ export * from './UpdateSingle/Request'
2
3
  export * from './accounting.entries-details.types'