@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.
Files changed (33) hide show
  1. package/lib/invoices/Invoices/CreateMany/Request.d.ts +2 -2
  2. package/lib/invoices/Invoices/CreateMany/Response.d.ts +1 -1
  3. package/lib/invoices/Invoices/CreateReserved/Request.d.ts +1 -1
  4. package/lib/invoices/Invoices/CreateReserved/Response.d.ts +1 -1
  5. package/lib/invoices/Invoices/CreateSingle/Request.d.ts +1 -1
  6. package/lib/invoices/Invoices/CreateSingle/Response.d.ts +1 -1
  7. package/lib/invoices/Invoices/DeleteMany/Response.d.ts +1 -1
  8. package/lib/invoices/Invoices/DeleteSingle/Response.d.ts +1 -1
  9. package/lib/invoices/Invoices/GetDocumentTypes/Response.d.ts +1 -1
  10. package/lib/invoices/Invoices/GetMany/Request.d.ts +1 -1
  11. package/lib/invoices/Invoices/GetMany/Response.d.ts +3 -4
  12. package/lib/invoices/Invoices/GetSingle/Response.d.ts +1 -1
  13. package/lib/invoices/Invoices/UpdateMany/Request.d.ts +2 -2
  14. package/lib/invoices/Invoices/UpdateMany/Response.d.ts +1 -1
  15. package/lib/invoices/Invoices/UpdateSingle/Request.d.ts +2 -2
  16. package/lib/invoices/Invoices/UpdateSingle/Response.d.ts +1 -1
  17. package/package.json +1 -1
  18. package/src/invoices/Invoices/CreateMany/Request.ts +2 -2
  19. package/src/invoices/Invoices/CreateMany/Response.ts +1 -1
  20. package/src/invoices/Invoices/CreateReserved/Request.ts +1 -1
  21. package/src/invoices/Invoices/CreateReserved/Response.ts +1 -1
  22. package/src/invoices/Invoices/CreateSingle/Request.ts +1 -1
  23. package/src/invoices/Invoices/CreateSingle/Response.ts +1 -1
  24. package/src/invoices/Invoices/DeleteMany/Response.ts +1 -1
  25. package/src/invoices/Invoices/DeleteSingle/Response.ts +1 -1
  26. package/src/invoices/Invoices/GetDocumentTypes/Response.ts +1 -1
  27. package/src/invoices/Invoices/GetMany/Request.ts +1 -1
  28. package/src/invoices/Invoices/GetMany/Response.ts +3 -4
  29. package/src/invoices/Invoices/GetSingle/Response.ts +1 -1
  30. package/src/invoices/Invoices/UpdateMany/Request.ts +2 -2
  31. package/src/invoices/Invoices/UpdateMany/Response.ts +1 -1
  32. package/src/invoices/Invoices/UpdateSingle/Request.ts +2 -3
  33. package/src/invoices/Invoices/UpdateSingle/Response.ts +1 -1
@@ -1,2 +1,2 @@
1
- import { InvoicesInvoicesCreateSingleRequest } from '../CreateSingle/Request';
2
- export type InvoicesInvoicesCreateManyRequest = InvoicesInvoicesCreateSingleRequest[];
1
+ import { InvoicesCreateSingleRequest } from '../CreateSingle/Request';
2
+ export type InvoicesCreateManyRequest = InvoicesCreateSingleRequest[];
@@ -1,2 +1,2 @@
1
1
  import { ManyResponse } from '../../../interfaces';
2
- export type InvoicesInvoicesCreateManyResponse = ManyResponse;
2
+ export type InvoicesCreateManyResponse = ManyResponse;
@@ -1,5 +1,5 @@
1
1
  import { InvoiceHeader } from '../CreateSingle/Request';
2
- export type InvoicesInvoicesCreateSingleReservedRequest = Pick<InvoiceHeader, 'document' | 'authorization'> & {
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 InvoicesInvoicesCreateSingleReservedResponse = SingleResponse;
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 InvoicesInvoicesCreateSingleRequest = {
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 InvoicesInvoicesCreateSingleResponse = SingleResponse;
2
+ export type InvoicesCreateSingleResponse = SingleResponse;
@@ -1,2 +1,2 @@
1
1
  import { ManyResponse } from '../../../interfaces';
2
- export type InvoicesInvoicesDeleteManyResponse = ManyResponse;
2
+ export type InvoicesDeleteManyResponse = ManyResponse;
@@ -1,2 +1,2 @@
1
1
  import { SingleResponse } from '../../../interfaces';
2
- export type InvoicesInvoicesDeleteSingleResponse = SingleResponse;
2
+ export type InvoicesDeleteSingleResponse = SingleResponse;
@@ -1,2 +1,2 @@
1
1
  import { InvoicesDocumentTypes } from '../../DocumentTypes/invoices.document-types.interface';
2
- export type InvoicesInvoicesGetManyDocumentTypesResponse = InvoicesDocumentTypes[];
2
+ export type InvoicesGetManyDocumentTypesResponse = InvoicesDocumentTypes[];
@@ -1,5 +1,5 @@
1
1
  import { GetManyRequest } from '../../../interfaces';
2
- export type InvoicesInvoicesGetManyRequest = GetManyRequest & {
2
+ export type InvoicesGetManyRequest = GetManyRequest & {
3
3
  documentType?: number;
4
4
  customer?: string;
5
5
  seller?: string;
@@ -1,9 +1,8 @@
1
1
  import { GetManyResponse } from '../../../interfaces';
2
2
  import { Invoices } from '../invoices.interfaces';
3
- export type InvoicesInvoicesGetManyResponse = GetManyResponse & {
4
- data: Pick<Invoices, 'id' | 'authorization' | 'sequence' | 'invoiceDate' | 'customerName' | 'ventaTotal' | 'document'> & {
3
+ export type InvoicesGetManyResponse = GetManyResponse & {
4
+ data: Pick<Invoices, 'id' | 'authorization' | 'sequence' | 'invoiceDate' | 'customerName' | 'ventaTotal'> & {
5
5
  isLastInvoice: boolean;
6
- invoiceRawDate: string;
7
- createdAt: string;
6
+ index: number;
8
7
  }[];
9
8
  };
@@ -1,2 +1,2 @@
1
1
  import { Invoices } from '../invoices.interfaces';
2
- export type InvoicesInvoicesGetSingleRequest = Invoices;
2
+ export type InvoicesGetSingleRequest = Invoices;
@@ -1,2 +1,2 @@
1
- import { InvoicesInvoicesUpdateSingleRequest } from '../UpdateSingle/Request';
2
- export type InvoicesInvoicesUpdateManyRequest = InvoicesInvoicesUpdateSingleRequest[];
1
+ import { InvoicesUpdateSingleRequest } from '../UpdateSingle/Request';
2
+ export type InvoicesUpdateManyRequest = InvoicesUpdateSingleRequest[];
@@ -1,2 +1,2 @@
1
1
  import { ManyResponse } from '../../../interfaces';
2
- export type InvoicesInvoicesUpdateManyResponse = ManyResponse;
2
+ export type InvoicesUpdateManyResponse = ManyResponse;
@@ -1,2 +1,2 @@
1
- import { InvoicesInvoicesCreateSingleReservedRequest } from '../CreateReserved/Request';
2
- export type InvoicesInvoicesUpdateSingleRequest = Partial<InvoicesInvoicesCreateSingleReservedRequest>;
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 InvoicesInvoicesUpdateSingleResponse = SingleResponse;
2
+ export type InvoicesUpdateSingleResponse = SingleResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.60",
3
+ "version": "0.2.61",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,3 +1,3 @@
1
- import { InvoicesInvoicesCreateSingleRequest } from '../CreateSingle/Request'
1
+ import { InvoicesCreateSingleRequest } from '../CreateSingle/Request'
2
2
 
3
- export type InvoicesInvoicesCreateManyRequest = InvoicesInvoicesCreateSingleRequest[]
3
+ export type InvoicesCreateManyRequest = InvoicesCreateSingleRequest[]
@@ -1,3 +1,3 @@
1
1
  import { ManyResponse } from '../../../interfaces'
2
2
 
3
- export type InvoicesInvoicesCreateManyResponse = ManyResponse
3
+ export type InvoicesCreateManyResponse = ManyResponse
@@ -1,6 +1,6 @@
1
1
  import { InvoiceHeader } from '../CreateSingle/Request'
2
2
 
3
- export type InvoicesInvoicesCreateSingleReservedRequest = Pick<
3
+ export type InvoicesCreateSingleReservedRequest = Pick<
4
4
  InvoiceHeader,
5
5
  'document' | 'authorization'
6
6
  > & {
@@ -1,3 +1,3 @@
1
1
  import { SingleResponse } from '../../../interfaces'
2
2
 
3
- export type InvoicesInvoicesCreateSingleReservedResponse = SingleResponse
3
+ export type InvoicesCreateSingleReservedResponse = SingleResponse
@@ -40,7 +40,7 @@ export type InvoiceDetails = {
40
40
  service: string
41
41
  }
42
42
 
43
- export type InvoicesInvoicesCreateSingleRequest = {
43
+ export type InvoicesCreateSingleRequest = {
44
44
  header: InvoiceHeader
45
45
  totals: InvoiceTotals
46
46
  details: InvoiceDetails[]
@@ -1,3 +1,3 @@
1
1
  import { SingleResponse } from '../../../interfaces'
2
2
 
3
- export type InvoicesInvoicesCreateSingleResponse = SingleResponse
3
+ export type InvoicesCreateSingleResponse = SingleResponse
@@ -1,3 +1,3 @@
1
1
  import { ManyResponse } from '../../../interfaces'
2
2
 
3
- export type InvoicesInvoicesDeleteManyResponse = ManyResponse
3
+ export type InvoicesDeleteManyResponse = ManyResponse
@@ -1,3 +1,3 @@
1
1
  import { SingleResponse } from '../../../interfaces'
2
2
 
3
- export type InvoicesInvoicesDeleteSingleResponse = SingleResponse
3
+ export type InvoicesDeleteSingleResponse = SingleResponse
@@ -1,3 +1,3 @@
1
1
  import { InvoicesDocumentTypes } from '../../DocumentTypes/invoices.document-types.interface'
2
2
 
3
- export type InvoicesInvoicesGetManyDocumentTypesResponse = InvoicesDocumentTypes[]
3
+ export type InvoicesGetManyDocumentTypesResponse = InvoicesDocumentTypes[]
@@ -1,6 +1,6 @@
1
1
  import { GetManyRequest } from '../../../interfaces'
2
2
 
3
- export type InvoicesInvoicesGetManyRequest = GetManyRequest & {
3
+ export type InvoicesGetManyRequest = GetManyRequest & {
4
4
  documentType?: number
5
5
  customer?: string
6
6
  seller?: string
@@ -1,14 +1,13 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
2
  import { Invoices } from '../invoices.interfaces'
3
3
 
4
- export type InvoicesInvoicesGetManyResponse = GetManyResponse & {
4
+ export type InvoicesGetManyResponse = GetManyResponse & {
5
5
  data: Pick<
6
6
  Invoices,
7
- 'id' | 'authorization' | 'sequence' | 'invoiceDate' | 'customerName' | 'ventaTotal' | 'document'
7
+ 'id' | 'authorization' | 'sequence' | 'invoiceDate' | 'customerName' | 'ventaTotal'
8
8
  > &
9
9
  {
10
10
  isLastInvoice: boolean
11
- invoiceRawDate: string
12
- createdAt: string
11
+ index: number
13
12
  }[]
14
13
  }
@@ -1,3 +1,3 @@
1
1
  import { Invoices } from '../invoices.interfaces'
2
2
 
3
- export type InvoicesInvoicesGetSingleRequest = Invoices
3
+ export type InvoicesGetSingleRequest = Invoices
@@ -1,3 +1,3 @@
1
- import { InvoicesInvoicesUpdateSingleRequest } from '../UpdateSingle/Request'
1
+ import { InvoicesUpdateSingleRequest } from '../UpdateSingle/Request'
2
2
 
3
- export type InvoicesInvoicesUpdateManyRequest = InvoicesInvoicesUpdateSingleRequest[]
3
+ export type InvoicesUpdateManyRequest = InvoicesUpdateSingleRequest[]
@@ -1,3 +1,3 @@
1
1
  import { ManyResponse } from '../../../interfaces'
2
2
 
3
- export type InvoicesInvoicesUpdateManyResponse = ManyResponse
3
+ export type InvoicesUpdateManyResponse = ManyResponse
@@ -1,4 +1,3 @@
1
- import { InvoicesInvoicesCreateSingleReservedRequest } from '../CreateReserved/Request'
1
+ import { InvoicesCreateSingleReservedRequest } from '../CreateReserved/Request'
2
2
 
3
- export type InvoicesInvoicesUpdateSingleRequest =
4
- Partial<InvoicesInvoicesCreateSingleReservedRequest>
3
+ export type InvoicesUpdateSingleRequest = Partial<InvoicesCreateSingleReservedRequest>
@@ -1,3 +1,3 @@
1
1
  import { SingleResponse } from '../../../interfaces'
2
2
 
3
- export type InvoicesInvoicesUpdateSingleResponse = SingleResponse
3
+ export type InvoicesUpdateSingleResponse = SingleResponse