nexushub-commands 1.1.4 → 1.2.0

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.
@@ -2,10 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SendChequeCommand = void 0;
4
4
  const tslib_1 = require("tslib");
5
+ const axios_1 = tslib_1.__importDefault(require("axios"));
5
6
  const evogram_1 = require("evogram");
6
7
  const migrated_1 = require("evogram/lib/migrated");
7
8
  const Client_1 = require("../../Client");
8
- const axios_1 = tslib_1.__importDefault(require("axios"));
9
9
  const qs = require('qs');
10
10
  let SendChequeCommand = class SendChequeCommand extends migrated_1.Command {
11
11
  execute(context, orderId) {
@@ -54,6 +54,9 @@ let SendChequeCommand = class SendChequeCommand extends migrated_1.Command {
54
54
  yield config.API.put(`/orders/${orderId}`, {
55
55
  cheque: photoURL,
56
56
  });
57
+ yield context.user.log(0, `Отправлен чек на оплату счета`, {
58
+ photo: photoURL,
59
+ });
57
60
  return context.sendFormatted({
58
61
  photo: photoURL,
59
62
  header: '<blockquote><b>🧾 Подтверждение оплаты счета</b></blockquote>',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexushub-commands",
3
- "version": "1.1.4",
3
+ "version": "1.2.0",
4
4
  "main": "./lib/index.js",
5
5
  "license": "MIT",
6
6
  "dependencies": {
@@ -1,7 +1,7 @@
1
+ import axios from 'axios';
1
2
  import { CommandArgument, CommandD } from 'evogram';
2
3
  import { Command, CommandContext } from 'evogram/lib/migrated';
3
4
  import { Client } from '../../Client';
4
- import axios from 'axios';
5
5
  const qs = require('qs');
6
6
 
7
7
  @CommandD({ name: 'sendCheque' })
@@ -59,6 +59,10 @@ export class SendChequeCommand extends Command {
59
59
  cheque: photoURL,
60
60
  });
61
61
 
62
+ await context.user.log(0, `Отправлен чек на оплату счета`, {
63
+ photo: photoURL,
64
+ });
65
+
62
66
  return context.sendFormatted(
63
67
  {
64
68
  photo: photoURL,