@openbox/shared-types 0.4.11 → 0.4.13

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,5 @@
1
+ import { GetManyRequest } from '../../../interfaces';
2
+ export type AccountingEntriesDetailsGetManyRequest = GetManyRequest & {
3
+ startDate?: Date;
4
+ endDate?: Date;
5
+ };
@@ -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/GetMany/Request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { GetManyResponse } from '../../../interfaces';
2
+ import { AccountingEntriesDetailsGetSingleResponse } from '../GetSingle/Response';
3
+ export type AccountingEntriesDetailsGetManyResponse = GetManyResponse & {
4
+ data: Array<AccountingEntriesDetailsGetSingleResponse & {
5
+ index: number;
6
+ }>;
7
+ };
@@ -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/EntriesDetails/GetMany/Response.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import { AccountingEntriesDetails } from '../accounting.entries-details.types';
2
+ export type AccountingEntriesDetailsGetSingleResponse = AccountingEntriesDetails;
@@ -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/EntriesDetails/GetSingle/Response.ts"],"names":[],"mappings":""}
@@ -1,3 +1,6 @@
1
1
  export * from './CreateSingle/Request';
2
+ export * from './GetMany/Request';
3
+ export * from './GetMany/Response';
4
+ export * from './GetSingle/Response';
2
5
  export * from './UpdateSingle/Request';
3
6
  export * from './accounting.entries-details.types';
@@ -15,6 +15,9 @@ 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("./GetMany/Request"), exports);
19
+ __exportStar(require("./GetMany/Response"), exports);
20
+ __exportStar(require("./GetSingle/Response"), exports);
18
21
  __exportStar(require("./UpdateSingle/Request"), exports);
19
22
  __exportStar(require("./accounting.entries-details.types"), exports);
20
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/EntriesDetails/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,yDAAsC;AACtC,qEAAkD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/EntriesDetails/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,oDAAiC;AACjC,qDAAkC;AAClC,uDAAoC;AACpC,yDAAsC;AACtC,qEAAkD"}
@@ -5,7 +5,7 @@ export type InvoicesCreateSingleHeader = {
5
5
  invoiceDate: string;
6
6
  customer: string;
7
7
  customerBranch: string;
8
- invoicesPaymentsCondition: string;
8
+ paymentCondition: string;
9
9
  invoicesSeller: string;
10
10
  copyFrom?: string;
11
11
  };
@@ -43,7 +43,7 @@ export type Invoices = {
43
43
  NCDTotal: boolean;
44
44
  customerBranch: Omit<CustomersBranches, 'customer'>;
45
45
  customer: Customers;
46
- invoicesPaymentsCondition: Pick<InvoicesPaymentConditions, 'id' | 'name'>;
46
+ paymentCondition: Pick<InvoicesPaymentConditions, 'id' | 'name'>;
47
47
  invoicesSeller: Pick<InvoicesSellers, 'id' | 'name'>;
48
48
  invoicesZone: Pick<InvoicesZones, 'id' | 'name'>;
49
49
  status: Pick<InvoicesStatuses, 'id' | 'name'>;
@@ -5,6 +5,7 @@ export type InvoicesReportsSalesDetailsRequest = {
5
5
  customer?: string;
6
6
  service?: string;
7
7
  documentType?: number;
8
+ paymentCondition?: string;
8
9
  status?: number;
9
10
  seller?: string;
10
11
  zone?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.4.11",
3
+ "version": "0.4.13",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -0,0 +1,6 @@
1
+ import { GetManyRequest } from '../../../interfaces'
2
+
3
+ export type AccountingEntriesDetailsGetManyRequest = GetManyRequest & {
4
+ startDate?: Date
5
+ endDate?: Date
6
+ }
@@ -0,0 +1,6 @@
1
+ import { GetManyResponse } from '../../../interfaces'
2
+ import { AccountingEntriesDetailsGetSingleResponse } from '../GetSingle/Response'
3
+
4
+ export type AccountingEntriesDetailsGetManyResponse = GetManyResponse & {
5
+ data: Array<AccountingEntriesDetailsGetSingleResponse & { index: number }>
6
+ }
@@ -0,0 +1,3 @@
1
+ import { AccountingEntriesDetails } from '../accounting.entries-details.types'
2
+
3
+ export type AccountingEntriesDetailsGetSingleResponse = AccountingEntriesDetails
@@ -1,3 +1,6 @@
1
1
  export * from './CreateSingle/Request'
2
+ export * from './GetMany/Request'
3
+ export * from './GetMany/Response'
4
+ export * from './GetSingle/Response'
2
5
  export * from './UpdateSingle/Request'
3
6
  export * from './accounting.entries-details.types'
@@ -5,7 +5,7 @@ export type InvoicesCreateSingleHeader = {
5
5
  invoiceDate: string
6
6
  customer: string
7
7
  customerBranch: string
8
- invoicesPaymentsCondition: string
8
+ paymentCondition: string
9
9
  invoicesSeller: string
10
10
  copyFrom?: string
11
11
  }
@@ -44,7 +44,7 @@ export type Invoices = {
44
44
  NCDTotal: boolean
45
45
  customerBranch: Omit<CustomersBranches, 'customer'>
46
46
  customer: Customers
47
- invoicesPaymentsCondition: Pick<InvoicesPaymentConditions, 'id' | 'name'>
47
+ paymentCondition: Pick<InvoicesPaymentConditions, 'id' | 'name'>
48
48
  invoicesSeller: Pick<InvoicesSellers, 'id' | 'name'>
49
49
  invoicesZone: Pick<InvoicesZones, 'id' | 'name'>
50
50
  status: Pick<InvoicesStatuses, 'id' | 'name'>
@@ -5,6 +5,7 @@ export type InvoicesReportsSalesDetailsRequest = {
5
5
  customer?: string
6
6
  service?: string
7
7
  documentType?: number
8
+ paymentCondition?: string
8
9
  status?: number
9
10
  seller?: string
10
11
  zone?: string