@openbox/shared-types 0.2.61 → 0.2.62
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,8 +1,7 @@
|
|
|
1
1
|
import { GetManyResponse } from '../../../interfaces';
|
|
2
|
-
import {
|
|
2
|
+
import { InvoicesResponse } from '../invoices.interfaces';
|
|
3
3
|
export type InvoicesGetManyResponse = GetManyResponse & {
|
|
4
|
-
data:
|
|
5
|
-
isLastInvoice: boolean;
|
|
4
|
+
data: Array<InvoicesResponse & {
|
|
6
5
|
index: number;
|
|
7
|
-
}
|
|
6
|
+
}>;
|
|
8
7
|
};
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.types';
|
|
2
2
|
import { CustomersResponse } from '../../customers/Customers/customers.types';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.interface';
|
|
7
|
-
import { InvoicesDocumentsResponse } from '../Documents/invoices.documents.interfaces';
|
|
3
|
+
import { SystemNaturalTypesResponse } from '../../system/NaturalTypes/system.natural-types.types';
|
|
4
|
+
import { SystemPersonTypesResponse } from '../../system/PersonTypes/system.person-types.types';
|
|
5
|
+
import { InvoicesDocumentTypesResponse } from '../DocumentTypes/invoices.document-types.interface';
|
|
8
6
|
import { InvoicesPaymentConditionsResponse } from '../PaymentConditions/invoices.payment-conditions.interface';
|
|
9
7
|
import { InvoicesSellersResponse } from '../Sellers/invoices.sellers.interface';
|
|
10
|
-
import {
|
|
11
|
-
import { InvoicesZones } from '../Zones/invoices.zones.interfaces';
|
|
12
|
-
export type InvoicesDetails = InvoicesCalculationsDetailsResponse;
|
|
13
|
-
export type InvoicesTotals = InvoicesCalculationsTotalsResponse;
|
|
8
|
+
import { InvoicesZonesResponse } from '../Zones/invoices.zones.interfaces';
|
|
14
9
|
export type Invoices = {
|
|
15
10
|
id: string;
|
|
16
11
|
authorization: string;
|
|
17
12
|
sequence: string;
|
|
13
|
+
customerName: string;
|
|
14
|
+
customerAddress1: string;
|
|
15
|
+
customerAddress2: string;
|
|
16
|
+
customerCountry: string;
|
|
17
|
+
customerState: string;
|
|
18
|
+
customerCity: string;
|
|
19
|
+
customerDui: string;
|
|
20
|
+
customerNit: string;
|
|
21
|
+
customerNrc: string;
|
|
22
|
+
customerGiro: string;
|
|
18
23
|
sum: number;
|
|
19
24
|
iva: number;
|
|
20
25
|
ivaPercibido: number;
|
|
@@ -26,32 +31,20 @@ export type Invoices = {
|
|
|
26
31
|
ventasNoSujetas: number;
|
|
27
32
|
ventaTotal: number;
|
|
28
33
|
ventaTotalText: string;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
customerAddress2: string;
|
|
32
|
-
customerCountry: string;
|
|
33
|
-
customerState: string;
|
|
34
|
-
customerCity: string;
|
|
35
|
-
customerDui: string;
|
|
36
|
-
customerNit: string;
|
|
37
|
-
customerNrc: string;
|
|
38
|
-
customerGiro: string;
|
|
34
|
+
origin: string;
|
|
35
|
+
invoiceDate: string;
|
|
39
36
|
paymentConditionName: string;
|
|
40
37
|
sellerName: string;
|
|
41
38
|
zoneName: string;
|
|
42
39
|
createEntry: boolean;
|
|
43
|
-
|
|
44
|
-
invoiceDate: string;
|
|
40
|
+
NCDTotal: boolean;
|
|
45
41
|
customerBranch: CustomersBranchesResponse;
|
|
46
42
|
customer: CustomersResponse;
|
|
47
43
|
invoicesPaymentsCondition: InvoicesPaymentConditionsResponse;
|
|
48
44
|
invoicesSeller: InvoicesSellersResponse;
|
|
49
|
-
invoicesZone:
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
documentType: InvoicesDocumentTypes;
|
|
54
|
-
document: InvoicesDocumentsResponse;
|
|
55
|
-
details: InvoicesDetails[];
|
|
56
|
-
totals: InvoicesTotals[];
|
|
45
|
+
invoicesZone: InvoicesZonesResponse;
|
|
46
|
+
personType: SystemPersonTypesResponse;
|
|
47
|
+
customerTypeNatural: SystemNaturalTypesResponse;
|
|
48
|
+
documentType: InvoicesDocumentTypesResponse;
|
|
57
49
|
};
|
|
50
|
+
export type InvoicesResponse = Invoices;
|
package/package.json
CHANGED
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { GetManyResponse } from '../../../interfaces'
|
|
2
|
-
import {
|
|
2
|
+
import { InvoicesResponse } from '../invoices.interfaces'
|
|
3
3
|
|
|
4
4
|
export type InvoicesGetManyResponse = GetManyResponse & {
|
|
5
|
-
data:
|
|
6
|
-
Invoices,
|
|
7
|
-
'id' | 'authorization' | 'sequence' | 'invoiceDate' | 'customerName' | 'ventaTotal'
|
|
8
|
-
> &
|
|
9
|
-
{
|
|
10
|
-
isLastInvoice: boolean
|
|
11
|
-
index: number
|
|
12
|
-
}[]
|
|
5
|
+
data: Array<InvoicesResponse & { index: number }>
|
|
13
6
|
}
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.types'
|
|
2
2
|
import { CustomersResponse } from '../../customers/Customers/customers.types'
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
InvoicesCalculationsDetailsResponse,
|
|
7
|
-
InvoicesCalculationsTotalsResponse,
|
|
8
|
-
} from '../Calculation'
|
|
9
|
-
import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.interface'
|
|
10
|
-
import { InvoicesDocumentsResponse } from '../Documents/invoices.documents.interfaces'
|
|
3
|
+
import { SystemNaturalTypesResponse } from '../../system/NaturalTypes/system.natural-types.types'
|
|
4
|
+
import { SystemPersonTypesResponse } from '../../system/PersonTypes/system.person-types.types'
|
|
5
|
+
import { InvoicesDocumentTypesResponse } from '../DocumentTypes/invoices.document-types.interface'
|
|
11
6
|
import { InvoicesPaymentConditionsResponse } from '../PaymentConditions/invoices.payment-conditions.interface'
|
|
12
7
|
import { InvoicesSellersResponse } from '../Sellers/invoices.sellers.interface'
|
|
13
|
-
import {
|
|
14
|
-
import { InvoicesZones } from '../Zones/invoices.zones.interfaces'
|
|
15
|
-
|
|
16
|
-
export type InvoicesDetails = InvoicesCalculationsDetailsResponse
|
|
17
|
-
export type InvoicesTotals = InvoicesCalculationsTotalsResponse
|
|
8
|
+
import { InvoicesZonesResponse } from '../Zones/invoices.zones.interfaces'
|
|
18
9
|
|
|
19
10
|
export type Invoices = {
|
|
20
11
|
id: string
|
|
21
12
|
authorization: string
|
|
22
13
|
sequence: string
|
|
14
|
+
customerName: string
|
|
15
|
+
customerAddress1: string
|
|
16
|
+
customerAddress2: string
|
|
17
|
+
customerCountry: string
|
|
18
|
+
customerState: string
|
|
19
|
+
customerCity: string
|
|
20
|
+
customerDui: string
|
|
21
|
+
customerNit: string
|
|
22
|
+
customerNrc: string
|
|
23
|
+
customerGiro: string
|
|
23
24
|
sum: number
|
|
24
25
|
iva: number
|
|
25
26
|
ivaPercibido: number
|
|
@@ -31,32 +32,28 @@ export type Invoices = {
|
|
|
31
32
|
ventasNoSujetas: number
|
|
32
33
|
ventaTotal: number
|
|
33
34
|
ventaTotalText: string
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
customerAddress2: string
|
|
37
|
-
customerCountry: string
|
|
38
|
-
customerState: string
|
|
39
|
-
customerCity: string
|
|
40
|
-
customerDui: string
|
|
41
|
-
customerNit: string
|
|
42
|
-
customerNrc: string
|
|
43
|
-
customerGiro: string
|
|
35
|
+
origin: string
|
|
36
|
+
invoiceDate: string
|
|
44
37
|
paymentConditionName: string
|
|
45
38
|
sellerName: string
|
|
46
39
|
zoneName: string
|
|
47
40
|
createEntry: boolean
|
|
48
|
-
|
|
49
|
-
invoiceDate: string
|
|
41
|
+
NCDTotal: boolean
|
|
50
42
|
customerBranch: CustomersBranchesResponse
|
|
51
43
|
customer: CustomersResponse
|
|
52
44
|
invoicesPaymentsCondition: InvoicesPaymentConditionsResponse
|
|
53
45
|
invoicesSeller: InvoicesSellersResponse
|
|
54
|
-
invoicesZone:
|
|
55
|
-
status:
|
|
56
|
-
personType:
|
|
57
|
-
customerTypeNatural:
|
|
58
|
-
documentType:
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
46
|
+
invoicesZone: InvoicesZonesResponse
|
|
47
|
+
// status: InvoicesStatusesEntity
|
|
48
|
+
personType: SystemPersonTypesResponse
|
|
49
|
+
customerTypeNatural: SystemNaturalTypesResponse
|
|
50
|
+
documentType: InvoicesDocumentTypesResponse
|
|
51
|
+
// invoiceDetails: InvoicesDetailsEntity[]
|
|
52
|
+
// echarges: Echarges
|
|
53
|
+
// accountingEntry: AccountingEntriesEntity
|
|
54
|
+
// relatedDocument: InvoicesEntity
|
|
55
|
+
// invoices: InvoicesEntity[]
|
|
56
|
+
// legalInstallments: LegalInstallmentsEntity[]
|
|
62
57
|
}
|
|
58
|
+
|
|
59
|
+
export type InvoicesResponse = Invoices
|