@openbox/shared-types 0.4.91 → 0.4.93

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,4 +1,3 @@
1
- import { InvoicesDiscountsTypesKeys } from '../../invoices.enums';
2
1
  export type InvoicesCalculationsDetailsRequest = {
3
2
  id?: string;
4
3
  service: string;
@@ -10,15 +9,8 @@ export type InvoicesCalculationsDetailsRequest = {
10
9
  incRenta10: boolean;
11
10
  chargeDescription: string;
12
11
  };
13
- export type InvoicesCalculationsDiscountsRequest = {
14
- id?: string;
15
- type: InvoicesDiscountsTypesKeys;
16
- quantity: number;
17
- description: string;
18
- };
19
12
  export type InvoicesCalculationsCalculateSingleRequest = {
20
13
  documentType: number;
21
14
  customer: string;
22
15
  details: InvoicesCalculationsDetailsRequest[];
23
- discounts: InvoicesCalculationsDiscountsRequest[] | null;
24
16
  };
@@ -1,4 +1,3 @@
1
- import { InvoicesDiscountsTypesKeys } from '../../invoices.enums';
2
1
  export type InvoicesCalculationsDetailsResponse = {
3
2
  id?: string;
4
3
  service: string;
@@ -23,12 +22,6 @@ export type InvoicesCalculationsDetailsResponse = {
23
22
  vNoSujetaToShow: number;
24
23
  vGravadaToShow: number;
25
24
  };
26
- export type InvoicesCalculationsDiscountsResponse = {
27
- id?: string;
28
- type: InvoicesDiscountsTypesKeys;
29
- quantity: number;
30
- description: string;
31
- };
32
25
  export type InvoicesCalculationsTotalsItem = {
33
26
  id: string;
34
27
  name: string;
@@ -36,27 +29,20 @@ export type InvoicesCalculationsTotalsItem = {
36
29
  amount: number;
37
30
  style?: string[];
38
31
  show: true | false;
39
- type?: 'currency' | 'percentage';
40
32
  };
41
- export interface InvoicesCalculationsTotalsResponse {
42
- totalNoSuj: InvoicesCalculationsTotalsItem;
43
- totalExenta: InvoicesCalculationsTotalsItem;
44
- totalGravada: InvoicesCalculationsTotalsItem;
45
- subTotalVentas: InvoicesCalculationsTotalsItem;
46
- descuNoSuj: InvoicesCalculationsTotalsItem;
47
- descuExenta: InvoicesCalculationsTotalsItem;
48
- descuGravada: InvoicesCalculationsTotalsItem;
49
- porcentajeDescuento: InvoicesCalculationsTotalsItem;
50
- totalDescu: InvoicesCalculationsTotalsItem;
51
- subTotal: InvoicesCalculationsTotalsItem;
52
- ivaRete1: InvoicesCalculationsTotalsItem;
53
- reteRenta: InvoicesCalculationsTotalsItem;
54
- montoTotalOperacion: InvoicesCalculationsTotalsItem;
55
- totalIva: InvoicesCalculationsTotalsItem;
56
- totalPagar: InvoicesCalculationsTotalsItem;
57
- }
33
+ export type InvoicesCalculationsTotalsResponse = {
34
+ sum: InvoicesCalculationsTotalsItem;
35
+ iva: InvoicesCalculationsTotalsItem;
36
+ subtotal: InvoicesCalculationsTotalsItem;
37
+ ivaRetenido: InvoicesCalculationsTotalsItem;
38
+ ivaPercibido: InvoicesCalculationsTotalsItem;
39
+ renta5: InvoicesCalculationsTotalsItem;
40
+ renta10: InvoicesCalculationsTotalsItem;
41
+ ventasExentas: InvoicesCalculationsTotalsItem;
42
+ ventasNoSujetas: InvoicesCalculationsTotalsItem;
43
+ ventaTotal: InvoicesCalculationsTotalsItem;
44
+ };
58
45
  export type InvoicesCalculationsCalculateSingleResponse = {
59
46
  details: InvoicesCalculationsDetailsResponse[];
60
- discounts: InvoicesCalculationsDiscountsResponse[];
61
47
  totals: InvoicesCalculationsTotalsResponse;
62
48
  };
@@ -1,4 +1,3 @@
1
- import { InvoicesDiscountsTypesKeys } from '../../invoices.enums';
2
1
  export type InvoicesCreateSingleHeader = {
3
2
  document: string;
4
3
  documentType: number;
@@ -10,6 +9,7 @@ export type InvoicesCreateSingleHeader = {
10
9
  paymentCondition: string;
11
10
  invoicesSeller: string;
12
11
  copyFrom?: string;
12
+ creditFor?: string;
13
13
  };
14
14
  export type InvoicesCreateSingleTotals = {
15
15
  sum: number;
@@ -42,14 +42,8 @@ export type InvoicesCreateSingleDetail = {
42
42
  rentaPrice10?: number;
43
43
  sellingType: number;
44
44
  };
45
- export type InvoicesCreateSingleDiscount = {
46
- type: InvoicesDiscountsTypesKeys;
47
- quantity: number;
48
- description: string;
49
- };
50
45
  export type InvoicesCreateSingleRequest = {
51
46
  header: InvoicesCreateSingleHeader;
52
47
  totals: InvoicesCreateSingleTotals;
53
48
  details: InvoicesCreateSingleDetail[];
54
- discounts: InvoicesCreateSingleDiscount[];
55
49
  };
@@ -15,7 +15,3 @@ export declare enum InvoicesStatusesTypesEnum {
15
15
  Presentada = 6,
16
16
  Contingencia = 7
17
17
  }
18
- export declare enum InvoicesDiscountsTypesKeys {
19
- AMOUNT_DISCOUNT = "AMOUNT_DISCOUNT",
20
- PERCENTAGE_DISCOUNT = "PERCENTAGE_DISCOUNT"
21
- }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InvoicesDiscountsTypesKeys = exports.InvoicesStatusesTypesEnum = exports.InvoicesDocumentTypesEnum = void 0;
3
+ exports.InvoicesStatusesTypesEnum = exports.InvoicesDocumentTypesEnum = void 0;
4
4
  var InvoicesDocumentTypesEnum;
5
5
  (function (InvoicesDocumentTypesEnum) {
6
6
  InvoicesDocumentTypesEnum[InvoicesDocumentTypesEnum["FCF"] = 1] = "FCF";
@@ -20,9 +20,4 @@ var InvoicesStatusesTypesEnum;
20
20
  InvoicesStatusesTypesEnum[InvoicesStatusesTypesEnum["Presentada"] = 6] = "Presentada";
21
21
  InvoicesStatusesTypesEnum[InvoicesStatusesTypesEnum["Contingencia"] = 7] = "Contingencia";
22
22
  })(InvoicesStatusesTypesEnum = exports.InvoicesStatusesTypesEnum || (exports.InvoicesStatusesTypesEnum = {}));
23
- var InvoicesDiscountsTypesKeys;
24
- (function (InvoicesDiscountsTypesKeys) {
25
- InvoicesDiscountsTypesKeys["AMOUNT_DISCOUNT"] = "AMOUNT_DISCOUNT";
26
- InvoicesDiscountsTypesKeys["PERCENTAGE_DISCOUNT"] = "PERCENTAGE_DISCOUNT";
27
- })(InvoicesDiscountsTypesKeys = exports.InvoicesDiscountsTypesKeys || (exports.InvoicesDiscountsTypesKeys = {}));
28
23
  //# sourceMappingURL=invoices.enums.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoices.enums.js","sourceRoot":"","sources":["../../src/invoices/invoices.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACnC,uEAAO,CAAA;IACP,uEAAO,CAAA;IACP,uEAAO,CAAA;IACP,qEAAM,CAAA;IACN,qEAAM,CAAA;IACN,qEAAM,CAAA;AACR,CAAC,EAPW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAOpC;AAED,IAAY,yBAQX;AARD,WAAY,yBAAyB;IACnC,+EAAW,CAAA;IACX,+EAAW,CAAA;IACX,+EAAW,CAAA;IACX,mFAAa,CAAA;IACb,6EAAU,CAAA;IACV,qFAAc,CAAA;IACd,yFAAgB,CAAA;AAClB,CAAC,EARW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAQpC;AAED,IAAY,0BAGX;AAHD,WAAY,0BAA0B;IACpC,iEAAmC,CAAA;IACnC,yEAA2C,CAAA;AAC7C,CAAC,EAHW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAGrC"}
1
+ {"version":3,"file":"invoices.enums.js","sourceRoot":"","sources":["../../src/invoices/invoices.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACnC,uEAAO,CAAA;IACP,uEAAO,CAAA;IACP,uEAAO,CAAA;IACP,qEAAM,CAAA;IACN,qEAAM,CAAA;IACN,qEAAM,CAAA;AACR,CAAC,EAPW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAOpC;AAED,IAAY,yBAQX;AARD,WAAY,yBAAyB;IACnC,+EAAW,CAAA;IACX,+EAAW,CAAA;IACX,+EAAW,CAAA;IACX,mFAAa,CAAA;IACb,6EAAU,CAAA;IACV,qFAAc,CAAA;IACd,yFAAgB,CAAA;AAClB,CAAC,EARW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAQpC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.4.91",
3
+ "version": "0.4.93",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,5 +1,3 @@
1
- import { InvoicesDiscountsTypesKeys } from '../../invoices.enums'
2
-
3
1
  export type InvoicesCalculationsDetailsRequest = {
4
2
  id?: string
5
3
  service: string
@@ -12,16 +10,8 @@ export type InvoicesCalculationsDetailsRequest = {
12
10
  chargeDescription: string
13
11
  }
14
12
 
15
- export type InvoicesCalculationsDiscountsRequest = {
16
- id?: string
17
- type: InvoicesDiscountsTypesKeys
18
- quantity: number
19
- description: string
20
- }
21
-
22
13
  export type InvoicesCalculationsCalculateSingleRequest = {
23
14
  documentType: number
24
15
  customer: string
25
16
  details: InvoicesCalculationsDetailsRequest[]
26
- discounts: InvoicesCalculationsDiscountsRequest[] | null
27
17
  }
@@ -1,5 +1,3 @@
1
- import { InvoicesDiscountsTypesKeys } from '../../invoices.enums'
2
-
3
1
  export type InvoicesCalculationsDetailsResponse = {
4
2
  // Returns the same information received
5
3
  id?: string
@@ -30,14 +28,6 @@ export type InvoicesCalculationsDetailsResponse = {
30
28
  vGravadaToShow: number
31
29
  }
32
30
 
33
- export type InvoicesCalculationsDiscountsResponse = {
34
- // Returns the same information received
35
- id?: string
36
- type: InvoicesDiscountsTypesKeys
37
- quantity: number
38
- description: string
39
- }
40
-
41
31
  export type InvoicesCalculationsTotalsItem = {
42
32
  id: string
43
33
  name: string
@@ -45,47 +35,22 @@ export type InvoicesCalculationsTotalsItem = {
45
35
  amount: number
46
36
  style?: string[]
47
37
  show: true | false
48
- type?: 'currency' | 'percentage'
49
38
  }
50
39
 
51
- // export type InvoicesCalculationsTotalsResponse = {
52
- // sum: InvoicesCalculationsTotalsItem
53
- // iva: InvoicesCalculationsTotalsItem
54
- // subtotal: InvoicesCalculationsTotalsItem
55
- // ivaRetenido: InvoicesCalculationsTotalsItem
56
- // ivaPercibido: InvoicesCalculationsTotalsItem
57
- // renta5: InvoicesCalculationsTotalsItem
58
- // renta10: InvoicesCalculationsTotalsItem
59
- // ventasExentas: InvoicesCalculationsTotalsItem
60
- // ventasNoSujetas: InvoicesCalculationsTotalsItem
61
- // ventaTotal: InvoicesCalculationsTotalsItem
62
- // }
63
-
64
- export interface InvoicesCalculationsTotalsResponse {
65
- // Totales antes de impuestos
66
- totalNoSuj: InvoicesCalculationsTotalsItem // ventasNoSujetas
67
- totalExenta: InvoicesCalculationsTotalsItem // ventasExentas
68
- totalGravada: InvoicesCalculationsTotalsItem
69
- subTotalVentas: InvoicesCalculationsTotalsItem // sum
70
-
71
- // Descuentos
72
- descuNoSuj: InvoicesCalculationsTotalsItem
73
- descuExenta: InvoicesCalculationsTotalsItem
74
- descuGravada: InvoicesCalculationsTotalsItem
75
- porcentajeDescuento: InvoicesCalculationsTotalsItem
76
- totalDescu: InvoicesCalculationsTotalsItem
77
-
78
- // Totales con impuestos
79
- subTotal: InvoicesCalculationsTotalsItem // subtotal
80
- ivaRete1: InvoicesCalculationsTotalsItem // ivaRetenido
81
- reteRenta: InvoicesCalculationsTotalsItem
82
- montoTotalOperacion: InvoicesCalculationsTotalsItem
83
- totalIva: InvoicesCalculationsTotalsItem // iva
84
- totalPagar: InvoicesCalculationsTotalsItem // ventaTotal
40
+ export type InvoicesCalculationsTotalsResponse = {
41
+ sum: InvoicesCalculationsTotalsItem
42
+ iva: InvoicesCalculationsTotalsItem
43
+ subtotal: InvoicesCalculationsTotalsItem
44
+ ivaRetenido: InvoicesCalculationsTotalsItem
45
+ ivaPercibido: InvoicesCalculationsTotalsItem
46
+ renta5: InvoicesCalculationsTotalsItem
47
+ renta10: InvoicesCalculationsTotalsItem
48
+ ventasExentas: InvoicesCalculationsTotalsItem
49
+ ventasNoSujetas: InvoicesCalculationsTotalsItem
50
+ ventaTotal: InvoicesCalculationsTotalsItem
85
51
  }
86
52
 
87
53
  export type InvoicesCalculationsCalculateSingleResponse = {
88
54
  details: InvoicesCalculationsDetailsResponse[]
89
- discounts: InvoicesCalculationsDiscountsResponse[]
90
55
  totals: InvoicesCalculationsTotalsResponse
91
56
  }
@@ -1,5 +1,3 @@
1
- import { InvoicesDiscountsTypesKeys } from '../../invoices.enums'
2
-
3
1
  export type InvoicesCreateSingleHeader = {
4
2
  document: string
5
3
  documentType: number
@@ -11,6 +9,7 @@ export type InvoicesCreateSingleHeader = {
11
9
  paymentCondition: string
12
10
  invoicesSeller: string
13
11
  copyFrom?: string
12
+ creditFor?: string
14
13
  }
15
14
 
16
15
  export type InvoicesCreateSingleTotals = {
@@ -49,15 +48,8 @@ export type InvoicesCreateSingleDetail = {
49
48
  sellingType: number
50
49
  }
51
50
 
52
- export type InvoicesCreateSingleDiscount = {
53
- type: InvoicesDiscountsTypesKeys
54
- quantity: number
55
- description: string
56
- }
57
-
58
51
  export type InvoicesCreateSingleRequest = {
59
52
  header: InvoicesCreateSingleHeader
60
53
  totals: InvoicesCreateSingleTotals
61
54
  details: InvoicesCreateSingleDetail[]
62
- discounts: InvoicesCreateSingleDiscount[]
63
55
  }
@@ -16,8 +16,3 @@ export enum InvoicesStatusesTypesEnum {
16
16
  Presentada = 6,
17
17
  Contingencia = 7,
18
18
  }
19
-
20
- export enum InvoicesDiscountsTypesKeys {
21
- AMOUNT_DISCOUNT = 'AMOUNT_DISCOUNT',
22
- PERCENTAGE_DISCOUNT = 'PERCENTAGE_DISCOUNT',
23
- }