pangea-server 3.3.26 → 3.3.28

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,4 @@
1
- export { Op as Ops } from 'sequelize';
1
+ export { Op as Ops, fn, col, where, literal } from 'sequelize';
2
2
  export * from './decorators';
3
3
  export * from './models';
4
4
  export * from './base-service.class';
@@ -14,9 +14,13 @@ 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
- exports.Ops = void 0;
17
+ exports.literal = exports.where = exports.col = exports.fn = exports.Ops = void 0;
18
18
  var sequelize_1 = require("sequelize");
19
19
  Object.defineProperty(exports, "Ops", { enumerable: true, get: function () { return sequelize_1.Op; } });
20
+ Object.defineProperty(exports, "fn", { enumerable: true, get: function () { return sequelize_1.fn; } });
21
+ Object.defineProperty(exports, "col", { enumerable: true, get: function () { return sequelize_1.col; } });
22
+ Object.defineProperty(exports, "where", { enumerable: true, get: function () { return sequelize_1.where; } });
23
+ Object.defineProperty(exports, "literal", { enumerable: true, get: function () { return sequelize_1.literal; } });
20
24
  __exportStar(require("./decorators"), exports);
21
25
  __exportStar(require("./models"), exports);
22
26
  __exportStar(require("./base-service.class"), exports);
@@ -124,13 +124,16 @@ class Arca {
124
124
  const res = await this.__afip.ElectronicBilling.createVoucher(params);
125
125
  const finalRes = { voucherNumber, cae: res.CAE, caeExpirationDate: res.CAEFchVto };
126
126
  (0, helpers_1.printSuccess)('arca', 'Voucher created successfully');
127
- console.log(`params: ${params}`);
128
- console.log(`res: ${finalRes}`);
127
+ console.log('params:');
128
+ console.log(params);
129
+ console.log('res:');
130
+ console.log(finalRes);
129
131
  return finalRes;
130
132
  }
131
133
  catch (err) {
132
134
  (0, helpers_1.printDanger)('arca', 'Error creating voucher');
133
- console.log(`params: ${params}`);
135
+ console.log('params:');
136
+ console.log(params);
134
137
  console.log(err);
135
138
  helpers_1.AppError.Throw({ statusCodeName: 'INTERNAL_SERVER_ERROR', errorCode: 'VOUCHER_CREATION_FAILED' });
136
139
  }
@@ -21,13 +21,16 @@ class Mailer {
21
21
  try {
22
22
  const res = await this.__transporter.sendMail(finalOptions);
23
23
  (0, helpers_1.printSuccess)('mailer', 'Mail sent successfully');
24
- console.log(`options: ${finalOptions}`);
25
- console.log(`res: ${res}`);
24
+ console.log('options:');
25
+ console.log(finalOptions);
26
+ console.log('res:');
27
+ console.log(res);
26
28
  return res;
27
29
  }
28
30
  catch (err) {
29
31
  (0, helpers_1.printDanger)('mailer', 'Error sending mail');
30
- console.log(`options: ${finalOptions}`);
32
+ console.log('options:');
33
+ console.log(finalOptions);
31
34
  console.log(err);
32
35
  if (config?.throwError)
33
36
  throw err;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pangea-server",
3
3
  "description": "",
4
- "version": "3.3.26",
4
+ "version": "3.3.28",
5
5
  "files": [
6
6
  "dist"
7
7
  ],