nexushub-commands 1.6.2 → 1.6.4
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.
|
@@ -5,7 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const evogram_1 = require("evogram");
|
|
6
6
|
const contexts_1 = require("evogram/lib/contexts");
|
|
7
7
|
const Client_1 = require("../../Client");
|
|
8
|
-
class DepositByPromocodeCommand extends evogram_1.Command {
|
|
8
|
+
let DepositByPromocodeCommand = class DepositByPromocodeCommand extends evogram_1.Command {
|
|
9
9
|
execute(context, promocode) {
|
|
10
10
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
11
|
const config = Client_1.Client.config(context);
|
|
@@ -23,7 +23,7 @@ class DepositByPromocodeCommand extends evogram_1.Command {
|
|
|
23
23
|
});
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
}
|
|
26
|
+
};
|
|
27
27
|
exports.DepositByPromocodeCommand = DepositByPromocodeCommand;
|
|
28
28
|
tslib_1.__decorate([
|
|
29
29
|
tslib_1.__param(1, (0, evogram_1.CommandArgument)({
|
|
@@ -45,3 +45,6 @@ tslib_1.__decorate([
|
|
|
45
45
|
tslib_1.__metadata("design:paramtypes", [contexts_1.CommandContext, Object]),
|
|
46
46
|
tslib_1.__metadata("design:returntype", Promise)
|
|
47
47
|
], DepositByPromocodeCommand.prototype, "execute", null);
|
|
48
|
+
exports.DepositByPromocodeCommand = DepositByPromocodeCommand = tslib_1.__decorate([
|
|
49
|
+
(0, evogram_1.CommandD)('promocode')
|
|
50
|
+
], DepositByPromocodeCommand);
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Command, CommandArgument, stringValidator } from 'evogram';
|
|
1
|
+
import { Command, CommandArgument, CommandD, stringValidator } from 'evogram';
|
|
2
2
|
import { CommandContext } from 'evogram/lib/contexts';
|
|
3
3
|
import { Client } from '../../Client';
|
|
4
4
|
|
|
5
|
+
@CommandD('promocode')
|
|
5
6
|
export class DepositByPromocodeCommand extends Command {
|
|
6
7
|
public async execute(
|
|
7
8
|
context: CommandContext,
|