@openbox/shared-types 0.3.49 → 0.3.51

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.
@@ -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
  };
@@ -0,0 +1,7 @@
1
+ import { AccountingEntriesDetailsUpdateSingleRequest } from '../../EntriesDetails/UpdateSingle/Request';
2
+ import { AccountingEntries } from '../accounting.entries.types';
3
+ export type AccountingEntriesUpdateSingleRequest = Partial<Omit<AccountingEntries, 'id' | 'origin' | 'type' | 'status' | 'details'> & {
4
+ type: number;
5
+ status: number;
6
+ details: AccountingEntriesDetailsUpdateSingleRequest[];
7
+ }>;
@@ -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/Entries/UpdateSingle/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type AccountingEntriesUpdateSingleResponse = 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/accounting/Entries/UpdateSingle/Response.ts"],"names":[],"mappings":""}
@@ -5,4 +5,6 @@ export * from './GetMany/Request';
5
5
  export * from './GetMany/Response';
6
6
  export * from './GetNextSequence/Response';
7
7
  export * from './GetSingle/Response';
8
+ export * from './UpdateSingle/Request';
9
+ export * from './UpdateSingle/Response';
8
10
  export * from './accounting.entries.types';
@@ -21,5 +21,7 @@ __exportStar(require("./GetMany/Request"), exports);
21
21
  __exportStar(require("./GetMany/Response"), exports);
22
22
  __exportStar(require("./GetNextSequence/Response"), exports);
23
23
  __exportStar(require("./GetSingle/Response"), exports);
24
+ __exportStar(require("./UpdateSingle/Request"), exports);
25
+ __exportStar(require("./UpdateSingle/Response"), exports);
24
26
  __exportStar(require("./accounting.entries.types"), exports);
25
27
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Entries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC;AACvC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,6DAA0C;AAC1C,uDAAoC;AACpC,6DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Entries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC;AACvC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,6DAA0C;AAC1C,uDAAoC;AACpC,yDAAsC;AACtC,0DAAuC;AACvC,6DAA0C"}
@@ -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.49",
3
+ "version": "0.3.51",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -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
  }
@@ -0,0 +1,10 @@
1
+ import { AccountingEntriesDetailsUpdateSingleRequest } from '../../EntriesDetails/UpdateSingle/Request'
2
+ import { AccountingEntries } from '../accounting.entries.types'
3
+
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,3 @@
1
+ import { SingleResponse } from '../../../interfaces'
2
+
3
+ export type AccountingEntriesUpdateSingleResponse = SingleResponse
@@ -5,4 +5,6 @@ export * from './GetMany/Request'
5
5
  export * from './GetMany/Response'
6
6
  export * from './GetNextSequence/Response'
7
7
  export * from './GetSingle/Response'
8
+ export * from './UpdateSingle/Request'
9
+ export * from './UpdateSingle/Response'
8
10
  export * from './accounting.entries.types'
@@ -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'