@openbox/shared-types 0.2.60 → 0.2.61
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.
- package/lib/invoices/Invoices/CreateMany/Request.d.ts +2 -2
- package/lib/invoices/Invoices/CreateMany/Response.d.ts +1 -1
- package/lib/invoices/Invoices/CreateReserved/Request.d.ts +1 -1
- package/lib/invoices/Invoices/CreateReserved/Response.d.ts +1 -1
- package/lib/invoices/Invoices/CreateSingle/Request.d.ts +1 -1
- package/lib/invoices/Invoices/CreateSingle/Response.d.ts +1 -1
- package/lib/invoices/Invoices/DeleteMany/Response.d.ts +1 -1
- package/lib/invoices/Invoices/DeleteSingle/Response.d.ts +1 -1
- package/lib/invoices/Invoices/GetDocumentTypes/Response.d.ts +1 -1
- package/lib/invoices/Invoices/GetMany/Request.d.ts +1 -1
- package/lib/invoices/Invoices/GetMany/Response.d.ts +3 -4
- package/lib/invoices/Invoices/GetSingle/Response.d.ts +1 -1
- package/lib/invoices/Invoices/UpdateMany/Request.d.ts +2 -2
- package/lib/invoices/Invoices/UpdateMany/Response.d.ts +1 -1
- package/lib/invoices/Invoices/UpdateSingle/Request.d.ts +2 -2
- package/lib/invoices/Invoices/UpdateSingle/Response.d.ts +1 -1
- package/package.json +1 -1
- package/src/invoices/Invoices/CreateMany/Request.ts +2 -2
- package/src/invoices/Invoices/CreateMany/Response.ts +1 -1
- package/src/invoices/Invoices/CreateReserved/Request.ts +1 -1
- package/src/invoices/Invoices/CreateReserved/Response.ts +1 -1
- package/src/invoices/Invoices/CreateSingle/Request.ts +1 -1
- package/src/invoices/Invoices/CreateSingle/Response.ts +1 -1
- package/src/invoices/Invoices/DeleteMany/Response.ts +1 -1
- package/src/invoices/Invoices/DeleteSingle/Response.ts +1 -1
- package/src/invoices/Invoices/GetDocumentTypes/Response.ts +1 -1
- package/src/invoices/Invoices/GetMany/Request.ts +1 -1
- package/src/invoices/Invoices/GetMany/Response.ts +3 -4
- package/src/invoices/Invoices/GetSingle/Response.ts +1 -1
- package/src/invoices/Invoices/UpdateMany/Request.ts +2 -2
- package/src/invoices/Invoices/UpdateMany/Response.ts +1 -1
- package/src/invoices/Invoices/UpdateSingle/Request.ts +2 -3
- package/src/invoices/Invoices/UpdateSingle/Response.ts +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
1
|
+
import { InvoicesCreateSingleRequest } from '../CreateSingle/Request';
|
|
2
|
+
export type InvoicesCreateManyRequest = InvoicesCreateSingleRequest[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ManyResponse } from '../../../interfaces';
|
|
2
|
-
export type
|
|
2
|
+
export type InvoicesCreateManyResponse = ManyResponse;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InvoiceHeader } from '../CreateSingle/Request';
|
|
2
|
-
export type
|
|
2
|
+
export type InvoicesCreateSingleReservedRequest = Pick<InvoiceHeader, 'document' | 'authorization'> & {
|
|
3
3
|
sequenceFrom: number;
|
|
4
4
|
sequenceTo: number;
|
|
5
5
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SingleResponse } from '../../../interfaces';
|
|
2
|
-
export type
|
|
2
|
+
export type InvoicesCreateSingleReservedResponse = SingleResponse;
|
|
@@ -37,7 +37,7 @@ export type InvoiceDetails = {
|
|
|
37
37
|
vGravada: number;
|
|
38
38
|
service: string;
|
|
39
39
|
};
|
|
40
|
-
export type
|
|
40
|
+
export type InvoicesCreateSingleRequest = {
|
|
41
41
|
header: InvoiceHeader;
|
|
42
42
|
totals: InvoiceTotals;
|
|
43
43
|
details: InvoiceDetails[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SingleResponse } from '../../../interfaces';
|
|
2
|
-
export type
|
|
2
|
+
export type InvoicesCreateSingleResponse = SingleResponse;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ManyResponse } from '../../../interfaces';
|
|
2
|
-
export type
|
|
2
|
+
export type InvoicesDeleteManyResponse = ManyResponse;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SingleResponse } from '../../../interfaces';
|
|
2
|
-
export type
|
|
2
|
+
export type InvoicesDeleteSingleResponse = SingleResponse;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { InvoicesDocumentTypes } from '../../DocumentTypes/invoices.document-types.interface';
|
|
2
|
-
export type
|
|
2
|
+
export type InvoicesGetManyDocumentTypesResponse = InvoicesDocumentTypes[];
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { GetManyResponse } from '../../../interfaces';
|
|
2
2
|
import { Invoices } from '../invoices.interfaces';
|
|
3
|
-
export type
|
|
4
|
-
data: Pick<Invoices, 'id' | 'authorization' | 'sequence' | 'invoiceDate' | 'customerName' | 'ventaTotal'
|
|
3
|
+
export type InvoicesGetManyResponse = GetManyResponse & {
|
|
4
|
+
data: Pick<Invoices, 'id' | 'authorization' | 'sequence' | 'invoiceDate' | 'customerName' | 'ventaTotal'> & {
|
|
5
5
|
isLastInvoice: boolean;
|
|
6
|
-
|
|
7
|
-
createdAt: string;
|
|
6
|
+
index: number;
|
|
8
7
|
}[];
|
|
9
8
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Invoices } from '../invoices.interfaces';
|
|
2
|
-
export type
|
|
2
|
+
export type InvoicesGetSingleRequest = Invoices;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
1
|
+
import { InvoicesUpdateSingleRequest } from '../UpdateSingle/Request';
|
|
2
|
+
export type InvoicesUpdateManyRequest = InvoicesUpdateSingleRequest[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ManyResponse } from '../../../interfaces';
|
|
2
|
-
export type
|
|
2
|
+
export type InvoicesUpdateManyResponse = ManyResponse;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type
|
|
1
|
+
import { InvoicesCreateSingleReservedRequest } from '../CreateReserved/Request';
|
|
2
|
+
export type InvoicesUpdateSingleRequest = Partial<InvoicesCreateSingleReservedRequest>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SingleResponse } from '../../../interfaces';
|
|
2
|
-
export type
|
|
2
|
+
export type InvoicesUpdateSingleResponse = SingleResponse;
|
package/package.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InvoicesCreateSingleRequest } from '../CreateSingle/Request'
|
|
2
2
|
|
|
3
|
-
export type
|
|
3
|
+
export type InvoicesCreateManyRequest = InvoicesCreateSingleRequest[]
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { GetManyResponse } from '../../../interfaces'
|
|
2
2
|
import { Invoices } from '../invoices.interfaces'
|
|
3
3
|
|
|
4
|
-
export type
|
|
4
|
+
export type InvoicesGetManyResponse = GetManyResponse & {
|
|
5
5
|
data: Pick<
|
|
6
6
|
Invoices,
|
|
7
|
-
'id' | 'authorization' | 'sequence' | 'invoiceDate' | 'customerName' | 'ventaTotal'
|
|
7
|
+
'id' | 'authorization' | 'sequence' | 'invoiceDate' | 'customerName' | 'ventaTotal'
|
|
8
8
|
> &
|
|
9
9
|
{
|
|
10
10
|
isLastInvoice: boolean
|
|
11
|
-
|
|
12
|
-
createdAt: string
|
|
11
|
+
index: number
|
|
13
12
|
}[]
|
|
14
13
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InvoicesUpdateSingleRequest } from '../UpdateSingle/Request'
|
|
2
2
|
|
|
3
|
-
export type
|
|
3
|
+
export type InvoicesUpdateManyRequest = InvoicesUpdateSingleRequest[]
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InvoicesCreateSingleReservedRequest } from '../CreateReserved/Request'
|
|
2
2
|
|
|
3
|
-
export type
|
|
4
|
-
Partial<InvoicesInvoicesCreateSingleReservedRequest>
|
|
3
|
+
export type InvoicesUpdateSingleRequest = Partial<InvoicesCreateSingleReservedRequest>
|