@openbox/shared-types 0.2.85 → 0.2.87

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 @@
1
+ export * from './invoices.details.type';
@@ -1,2 +1,18 @@
1
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("./invoices.details.type"), exports);
2
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/Details/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/invoices/Details/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAuC"}
@@ -1,5 +1,5 @@
1
- import { InvoiceHeader } from '../CreateSingle/Request';
2
- export type InvoicesCreateSingleReservedRequest = Pick<InvoiceHeader, 'document' | 'authorization'> & {
1
+ import { InvoiceHeaderSection } from '../CreateSingle/Request';
2
+ export type InvoicesCreateSingleReservedRequest = Pick<InvoiceHeaderSection, 'document' | 'authorization'> & {
3
3
  sequenceFrom: number;
4
4
  sequenceTo: number;
5
5
  };
@@ -1,4 +1,4 @@
1
- export type InvoiceHeader = {
1
+ export type InvoiceHeaderSection = {
2
2
  customer: string;
3
3
  customerBranch: string;
4
4
  invoicesSeller: string;
@@ -8,7 +8,7 @@ export type InvoiceHeader = {
8
8
  document: string;
9
9
  authorization: string;
10
10
  };
11
- export type InvoiceTotals = {
11
+ export type InvoiceTotalsSection = {
12
12
  sum: number;
13
13
  iva: number;
14
14
  subtotal: number;
@@ -21,7 +21,7 @@ export type InvoiceTotals = {
21
21
  ventaTotal: number;
22
22
  ventaTotalText: string;
23
23
  };
24
- export type InvoiceDetails = {
24
+ export type InvoiceDetailsSection = {
25
25
  quantity: number;
26
26
  unitPrice: number;
27
27
  chargeDescription: string;
@@ -38,7 +38,7 @@ export type InvoiceDetails = {
38
38
  service: string;
39
39
  };
40
40
  export type InvoicesCreateSingleRequest = {
41
- header: InvoiceHeader;
42
- totals: InvoiceTotals;
43
- details: InvoiceDetails[];
41
+ header: InvoiceHeaderSection;
42
+ totals: InvoiceTotalsSection;
43
+ details: InvoiceDetailsSection[];
44
44
  };
@@ -1,4 +1,5 @@
1
1
  export * from './Calculation/';
2
+ export * from './Details';
2
3
  export * from './DocumentTypes/';
3
4
  export * from './Documents/';
4
5
  export * from './Invoices/';
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Calculation/"), exports);
18
+ __exportStar(require("./Details"), exports);
18
19
  __exportStar(require("./DocumentTypes/"), exports);
19
20
  __exportStar(require("./Documents/"), exports);
20
21
  __exportStar(require("./Invoices/"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/invoices/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,mDAAgC;AAChC,+CAA4B;AAC5B,8CAA2B;AAC3B,sDAAmC;AACnC,6CAA0B;AAC1B,8CAA2B;AAC3B,2CAAwB;AACxB,mDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/invoices/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,4CAAyB;AACzB,mDAAgC;AAChC,+CAA4B;AAC5B,8CAA2B;AAC3B,sDAAmC;AACnC,6CAA0B;AAC1B,8CAA2B;AAC3B,2CAAwB;AACxB,mDAAgC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.85",
3
+ "version": "0.2.87",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -0,0 +1 @@
1
+ export * from './invoices.details.type'
@@ -1,7 +1,7 @@
1
- import { InvoiceHeader } from '../CreateSingle/Request'
1
+ import { InvoiceHeaderSection } from '../CreateSingle/Request'
2
2
 
3
3
  export type InvoicesCreateSingleReservedRequest = Pick<
4
- InvoiceHeader,
4
+ InvoiceHeaderSection,
5
5
  'document' | 'authorization'
6
6
  > & {
7
7
  sequenceFrom: number
@@ -1,4 +1,4 @@
1
- export type InvoiceHeader = {
1
+ export type InvoiceHeaderSection = {
2
2
  customer: string
3
3
  customerBranch: string
4
4
  invoicesSeller: string
@@ -9,7 +9,7 @@ export type InvoiceHeader = {
9
9
  authorization: string
10
10
  }
11
11
 
12
- export type InvoiceTotals = {
12
+ export type InvoiceTotalsSection = {
13
13
  sum: number
14
14
  iva: number
15
15
  subtotal: number
@@ -23,7 +23,7 @@ export type InvoiceTotals = {
23
23
  ventaTotalText: string
24
24
  }
25
25
 
26
- export type InvoiceDetails = {
26
+ export type InvoiceDetailsSection = {
27
27
  quantity: number
28
28
  unitPrice: number
29
29
  chargeDescription: string
@@ -41,7 +41,7 @@ export type InvoiceDetails = {
41
41
  }
42
42
 
43
43
  export type InvoicesCreateSingleRequest = {
44
- header: InvoiceHeader
45
- totals: InvoiceTotals
46
- details: InvoiceDetails[]
44
+ header: InvoiceHeaderSection
45
+ totals: InvoiceTotalsSection
46
+ details: InvoiceDetailsSection[]
47
47
  }
@@ -1,4 +1,5 @@
1
1
  export * from './Calculation/'
2
+ export * from './Details'
2
3
  export * from './DocumentTypes/'
3
4
  export * from './Documents/'
4
5
  export * from './Invoices/'