@openbox/shared-types 0.4.92 → 0.4.94

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,4 @@
1
+ export type AccountingEntriesGetNextSequenceRequest = {
2
+ entryType: number;
3
+ entryDate: string;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=Request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../src/accounting/Entries/GetNextSequence/Request.ts"],"names":[],"mappings":""}
@@ -1,10 +1,11 @@
1
+ export * from './accounting.entries.types';
1
2
  export * from './CreateSingle/Request';
2
3
  export * from './CreateSingle/Response';
3
4
  export * from './DeleteSingle/Response';
4
5
  export * from './GetMany/Request';
5
6
  export * from './GetMany/Response';
7
+ export * from './GetNextSequence/Request';
6
8
  export * from './GetNextSequence/Response';
7
9
  export * from './GetSingle/Response';
8
10
  export * from './UpdateSingle/Request';
9
11
  export * from './UpdateSingle/Response';
10
- export * from './accounting.entries.types';
@@ -14,14 +14,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./accounting.entries.types"), exports);
17
18
  __exportStar(require("./CreateSingle/Request"), exports);
18
19
  __exportStar(require("./CreateSingle/Response"), exports);
19
20
  __exportStar(require("./DeleteSingle/Response"), exports);
20
21
  __exportStar(require("./GetMany/Request"), exports);
21
22
  __exportStar(require("./GetMany/Response"), exports);
23
+ __exportStar(require("./GetNextSequence/Request"), exports);
22
24
  __exportStar(require("./GetNextSequence/Response"), exports);
23
25
  __exportStar(require("./GetSingle/Response"), exports);
24
26
  __exportStar(require("./UpdateSingle/Request"), exports);
25
27
  __exportStar(require("./UpdateSingle/Response"), exports);
26
- __exportStar(require("./accounting.entries.types"), exports);
27
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Entries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAsC;AACtC,0DAAuC;AACvC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,6DAA0C;AAC1C,uDAAoC;AACpC,yDAAsC;AACtC,0DAAuC;AACvC,6DAA0C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/accounting/Entries/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA0C;AAC1C,yDAAsC;AACtC,0DAAuC;AACvC,0DAAuC;AACvC,oDAAiC;AACjC,qDAAkC;AAClC,4DAAyC;AACzC,6DAA0C;AAC1C,uDAAoC;AACpC,yDAAsC;AACtC,0DAAuC"}
@@ -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,18 +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
- descuNoSuj: number;
32
- descuExenta: number;
33
- descuGravada: number;
34
- descuNoSujToShow: number;
35
- descuExentaToShow: number;
36
- descuGravadaToShow: number;
37
- };
38
25
  export type InvoicesCalculationsTotalsItem = {
39
26
  id: string;
40
27
  name: string;
@@ -42,27 +29,20 @@ export type InvoicesCalculationsTotalsItem = {
42
29
  amount: number;
43
30
  style?: string[];
44
31
  show: true | false;
45
- type?: 'currency' | 'percentage';
46
32
  };
47
- export interface InvoicesCalculationsTotalsResponse {
48
- totalNoSuj: InvoicesCalculationsTotalsItem;
49
- totalExenta: InvoicesCalculationsTotalsItem;
50
- totalGravada: InvoicesCalculationsTotalsItem;
51
- subTotalVentas: InvoicesCalculationsTotalsItem;
52
- descuNoSuj: InvoicesCalculationsTotalsItem;
53
- descuExenta: InvoicesCalculationsTotalsItem;
54
- descuGravada: InvoicesCalculationsTotalsItem;
55
- porcentajeDescuento: InvoicesCalculationsTotalsItem;
56
- totalDescu: InvoicesCalculationsTotalsItem;
57
- subTotal: InvoicesCalculationsTotalsItem;
58
- ivaRete1: InvoicesCalculationsTotalsItem;
59
- reteRenta: InvoicesCalculationsTotalsItem;
60
- montoTotalOperacion: InvoicesCalculationsTotalsItem;
61
- totalIva: InvoicesCalculationsTotalsItem;
62
- totalPagar: InvoicesCalculationsTotalsItem;
63
- }
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
+ };
64
45
  export type InvoicesCalculationsCalculateSingleResponse = {
65
46
  details: InvoicesCalculationsDetailsResponse[];
66
- discounts: InvoicesCalculationsDiscountsResponse[];
67
47
  totals: InvoicesCalculationsTotalsResponse;
68
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.92",
3
+ "version": "0.4.94",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -0,0 +1,4 @@
1
+ export type AccountingEntriesGetNextSequenceRequest = {
2
+ entryType: number
3
+ entryDate: string
4
+ }
@@ -1,10 +1,11 @@
1
+ export * from './accounting.entries.types'
1
2
  export * from './CreateSingle/Request'
2
3
  export * from './CreateSingle/Response'
3
4
  export * from './DeleteSingle/Response'
4
5
  export * from './GetMany/Request'
5
6
  export * from './GetMany/Response'
7
+ export * from './GetNextSequence/Request'
6
8
  export * from './GetNextSequence/Response'
7
9
  export * from './GetSingle/Response'
8
10
  export * from './UpdateSingle/Request'
9
11
  export * from './UpdateSingle/Response'
10
- export * from './accounting.entries.types'
@@ -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,24 +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
- // returns the calculated information
41
- descuNoSuj: number
42
- descuExenta: number
43
- descuGravada: number
44
-
45
- // Returns values to show in discounts table
46
- descuNoSujToShow: number
47
- descuExentaToShow: number
48
- descuGravadaToShow: number
49
- }
50
-
51
31
  export type InvoicesCalculationsTotalsItem = {
52
32
  id: string
53
33
  name: string
@@ -55,47 +35,22 @@ export type InvoicesCalculationsTotalsItem = {
55
35
  amount: number
56
36
  style?: string[]
57
37
  show: true | false
58
- type?: 'currency' | 'percentage'
59
38
  }
60
39
 
61
- // export type InvoicesCalculationsTotalsResponse = {
62
- // sum: InvoicesCalculationsTotalsItem
63
- // iva: InvoicesCalculationsTotalsItem
64
- // subtotal: InvoicesCalculationsTotalsItem
65
- // ivaRetenido: InvoicesCalculationsTotalsItem
66
- // ivaPercibido: InvoicesCalculationsTotalsItem
67
- // renta5: InvoicesCalculationsTotalsItem
68
- // renta10: InvoicesCalculationsTotalsItem
69
- // ventasExentas: InvoicesCalculationsTotalsItem
70
- // ventasNoSujetas: InvoicesCalculationsTotalsItem
71
- // ventaTotal: InvoicesCalculationsTotalsItem
72
- // }
73
-
74
- export interface InvoicesCalculationsTotalsResponse {
75
- // Totales antes de impuestos
76
- totalNoSuj: InvoicesCalculationsTotalsItem // ventasNoSujetas
77
- totalExenta: InvoicesCalculationsTotalsItem // ventasExentas
78
- totalGravada: InvoicesCalculationsTotalsItem
79
- subTotalVentas: InvoicesCalculationsTotalsItem // sum
80
-
81
- // Descuentos
82
- descuNoSuj: InvoicesCalculationsTotalsItem
83
- descuExenta: InvoicesCalculationsTotalsItem
84
- descuGravada: InvoicesCalculationsTotalsItem
85
- porcentajeDescuento: InvoicesCalculationsTotalsItem
86
- totalDescu: InvoicesCalculationsTotalsItem
87
-
88
- // Totales con impuestos
89
- subTotal: InvoicesCalculationsTotalsItem // subtotal
90
- ivaRete1: InvoicesCalculationsTotalsItem // ivaRetenido
91
- reteRenta: InvoicesCalculationsTotalsItem
92
- montoTotalOperacion: InvoicesCalculationsTotalsItem
93
- totalIva: InvoicesCalculationsTotalsItem // iva
94
- 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
95
51
  }
96
52
 
97
53
  export type InvoicesCalculationsCalculateSingleResponse = {
98
54
  details: InvoicesCalculationsDetailsResponse[]
99
- discounts: InvoicesCalculationsDiscountsResponse[]
100
55
  totals: InvoicesCalculationsTotalsResponse
101
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
- }