@openbox/shared-types 0.4.38 → 0.4.39

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,12 @@
1
+ type InvoicesElectronicSVDataResponse = {
2
+ estado: 'PROCESADO' | 'RECHAZADO';
3
+ codigoGeneracion: string;
4
+ selloRecibido: string | null;
5
+ };
6
+ export type InvoicesElectronicSVData = {
7
+ id: string;
8
+ response: InvoicesElectronicSVDataResponse;
9
+ isProduction: boolean;
10
+ success: boolean;
11
+ };
12
+ export {};
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/invoices/Electronic/SVData/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from './SVData';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./SVData"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/Electronic/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB"}
@@ -4,6 +4,7 @@ import { SystemNaturalTypes } from '../../system/NaturalTypes/system.natural-typ
4
4
  import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.types';
5
5
  import { InvoicesDetails } from '../Details/invoices.details.type';
6
6
  import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.type';
7
+ import { InvoicesElectronicSVData } from '../Electronic';
7
8
  import { InvoicesPaymentConditions } from '../PaymentConditions/invoices.payment-conditions.type';
8
9
  import { InvoicesSellers } from '../Sellers/invoices.sellers.type';
9
10
  import { InvoicesStatusesTypes } from '../StatusesTypes';
@@ -52,4 +53,5 @@ export type Invoices = {
52
53
  customerTypeNatural: Pick<SystemNaturalTypes, 'id' | 'name'>;
53
54
  documentType: Pick<InvoicesDocumentTypes, 'id' | 'name' | 'code'>;
54
55
  invoiceDetails: InvoicesDetails[];
56
+ electronicSvData: InvoicesElectronicSVData[];
55
57
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.4.38",
3
+ "version": "0.4.39",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -0,0 +1,12 @@
1
+ type InvoicesElectronicSVDataResponse = {
2
+ estado: 'PROCESADO' | 'RECHAZADO'
3
+ codigoGeneracion: string
4
+ selloRecibido: string | null
5
+ }
6
+
7
+ export type InvoicesElectronicSVData = {
8
+ id: string
9
+ response: InvoicesElectronicSVDataResponse
10
+ isProduction: boolean
11
+ success: boolean
12
+ }
@@ -0,0 +1 @@
1
+ export * from './SVData'
@@ -4,6 +4,7 @@ import { SystemNaturalTypes } from '../../system/NaturalTypes/system.natural-typ
4
4
  import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.types'
5
5
  import { InvoicesDetails } from '../Details/invoices.details.type'
6
6
  import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.type'
7
+ import { InvoicesElectronicSVData } from '../Electronic'
7
8
  import { InvoicesPaymentConditions } from '../PaymentConditions/invoices.payment-conditions.type'
8
9
  import { InvoicesSellers } from '../Sellers/invoices.sellers.type'
9
10
  import { InvoicesStatusesTypes } from '../StatusesTypes'
@@ -53,6 +54,7 @@ export type Invoices = {
53
54
  customerTypeNatural: Pick<SystemNaturalTypes, 'id' | 'name'>
54
55
  documentType: Pick<InvoicesDocumentTypes, 'id' | 'name' | 'code'>
55
56
  invoiceDetails: InvoicesDetails[]
57
+ electronicSvData: InvoicesElectronicSVData[]
56
58
  // echarges: Echarges
57
59
  // accountingEntry: AccountingEntriesEntity
58
60
  // relatedDocument: InvoicesEntity