@openbox/shared-types 0.3.39 → 0.3.41

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,2 @@
1
+ import { SingleResponse } from '../../../interfaces';
2
+ export type AccountingEntriesDeleteSingleResponse = 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/DeleteSingle/Response.ts"],"names":[],"mappings":""}
@@ -1,6 +1,6 @@
1
1
  import { GetManyRequest } from '../../../interfaces';
2
2
  export type AccountingEntriesGetManyRequest = GetManyRequest & {
3
- accountingEntryType?: number;
3
+ type?: number;
4
4
  status?: number;
5
5
  startDate?: Date;
6
6
  endDate?: Date;
@@ -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<Omit<AccountingEntriesGetSingleResponse, 'accountingEntryDetails'> & {
4
+ data: Array<Omit<AccountingEntriesGetSingleResponse, 'details'> & {
5
5
  index: number;
6
6
  }>;
7
7
  };
@@ -9,5 +9,5 @@ export type AccountingEntries = {
9
9
  origin: string;
10
10
  type: AccountingEntriesTypes;
11
11
  status: AccountingEntriesStatuses;
12
- details: AccountingEntriesDetails[];
12
+ details?: AccountingEntriesDetails[];
13
13
  };
@@ -1,3 +1,4 @@
1
+ export * from './DeleteSingle/Response';
1
2
  export * from './GetMany/Request';
2
3
  export * from './GetMany/Response';
3
4
  export * from './GetSingle/Response';
@@ -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("./DeleteSingle/Response"), exports);
17
18
  __exportStar(require("./GetMany/Request"), exports);
18
19
  __exportStar(require("./GetMany/Response"), exports);
19
20
  __exportStar(require("./GetSingle/Response"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Entries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,6DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Entries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,6DAA0C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.3.39",
3
+ "version": "0.3.41",
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 { SingleResponse } from '../../../interfaces'
2
+
3
+ export type AccountingEntriesDeleteSingleResponse = SingleResponse
@@ -1,7 +1,7 @@
1
1
  import { GetManyRequest } from '../../../interfaces'
2
2
 
3
3
  export type AccountingEntriesGetManyRequest = GetManyRequest & {
4
- accountingEntryType?: number
4
+ type?: number
5
5
  status?: number
6
6
  startDate?: Date
7
7
  endDate?: Date
@@ -2,7 +2,5 @@ import { GetManyResponse } from '../../../interfaces'
2
2
  import { AccountingEntriesGetSingleResponse } from '../GetSingle/Response'
3
3
 
4
4
  export type AccountingEntriesGetManyResponse = GetManyResponse & {
5
- data: Array<
6
- Omit<AccountingEntriesGetSingleResponse, 'accountingEntryDetails'> & { index: number }
7
- >
5
+ data: Array<Omit<AccountingEntriesGetSingleResponse, 'details'> & { index: number }>
8
6
  }
@@ -10,5 +10,5 @@ export type AccountingEntries = {
10
10
  origin: string
11
11
  type: AccountingEntriesTypes
12
12
  status: AccountingEntriesStatuses
13
- details: AccountingEntriesDetails[]
13
+ details?: AccountingEntriesDetails[]
14
14
  }
@@ -1,3 +1,4 @@
1
+ export * from './DeleteSingle/Response'
1
2
  export * from './GetMany/Request'
2
3
  export * from './GetMany/Response'
3
4
  export * from './GetSingle/Response'