chz-telegram-bot 0.0.14 → 0.0.15
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.
- package/dist/index.d.ts +7 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -15
- package/dist/services/telegramApi.d.ts +1 -1
- package/index.ts +7 -30
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
export { startBot, stopBots } from './main';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { Hours, Milliseconds, Seconds } from './types/timeValues';
|
|
10
|
-
export declare const helpers: {
|
|
11
|
-
hoursToMilliseconds: typeof hoursToMilliseconds;
|
|
12
|
-
hoursToSeconds: typeof hoursToSeconds;
|
|
13
|
-
secondsToMilliseconds: typeof secondsToMilliseconds;
|
|
14
|
-
};
|
|
15
|
-
export { CommandActionBuilder, CommandActionBuilderWithState, ScheduledActionBuilder, IStorageClient, IActionState, ActionStateBase, Milliseconds, Seconds, Hours };
|
|
2
|
+
export { CommandActionBuilder } from './helpers/builders/commandActionBuilder';
|
|
3
|
+
export { CommandActionBuilderWithState } from './helpers/builders/commandActionBuilder';
|
|
4
|
+
export * from './helpers/builders/scheduledActionBuilder';
|
|
5
|
+
export { IStorageClient } from './types/storage';
|
|
6
|
+
export * from './types/actionState';
|
|
7
|
+
export * from './entities/states/actionStateBase';
|
|
8
|
+
export { Hours, Milliseconds, Seconds } from './types/timeValues';
|
|
16
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AACxF,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AACxF,cAAc,2CAA2C,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,23 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
4
15
|
};
|
|
5
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
17
|
+
exports.CommandActionBuilderWithState = exports.CommandActionBuilder = exports.stopBots = exports.startBot = void 0;
|
|
7
18
|
var main_1 = require("./main");
|
|
8
19
|
Object.defineProperty(exports, "startBot", { enumerable: true, get: function () { return main_1.startBot; } });
|
|
9
20
|
Object.defineProperty(exports, "stopBots", { enumerable: true, get: function () { return main_1.stopBots; } });
|
|
10
|
-
|
|
21
|
+
var commandActionBuilder_1 = require("./helpers/builders/commandActionBuilder");
|
|
11
22
|
Object.defineProperty(exports, "CommandActionBuilder", { enumerable: true, get: function () { return commandActionBuilder_1.CommandActionBuilder; } });
|
|
12
|
-
|
|
23
|
+
var commandActionBuilder_2 = require("./helpers/builders/commandActionBuilder");
|
|
13
24
|
Object.defineProperty(exports, "CommandActionBuilderWithState", { enumerable: true, get: function () { return commandActionBuilder_2.CommandActionBuilderWithState; } });
|
|
14
|
-
|
|
15
|
-
exports
|
|
16
|
-
|
|
17
|
-
const actionStateBase_1 = __importDefault(require("./entities/states/actionStateBase"));
|
|
18
|
-
exports.ActionStateBase = actionStateBase_1.default;
|
|
19
|
-
exports.helpers = {
|
|
20
|
-
hoursToMilliseconds: timeConvertions_1.hoursToMilliseconds,
|
|
21
|
-
hoursToSeconds: timeConvertions_1.hoursToSeconds,
|
|
22
|
-
secondsToMilliseconds: timeConvertions_1.secondsToMilliseconds
|
|
23
|
-
};
|
|
25
|
+
__exportStar(require("./helpers/builders/scheduledActionBuilder"), exports);
|
|
26
|
+
__exportStar(require("./types/actionState"), exports);
|
|
27
|
+
__exportStar(require("./entities/states/actionStateBase"), exports);
|
|
@@ -17,7 +17,7 @@ export default class TelegramApiService {
|
|
|
17
17
|
private enqueueResponse;
|
|
18
18
|
private enqueueReaction;
|
|
19
19
|
private getInteractions;
|
|
20
|
-
createContextForMessage(incomingMessage: IncomingMessage): MessageContext<import("
|
|
20
|
+
createContextForMessage(incomingMessage: IncomingMessage): MessageContext<import("../types/actionState").default>;
|
|
21
21
|
createContextForChat(chatId: number, scheduledName: string): ChatContext;
|
|
22
22
|
}
|
|
23
23
|
export interface IBotApiInteractions {
|
package/index.ts
CHANGED
|
@@ -1,31 +1,8 @@
|
|
|
1
1
|
export { startBot, stopBots } from './main';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from './helpers/timeConvertions';
|
|
10
|
-
import { IStorageClient } from './types/storage';
|
|
11
|
-
import IActionState from './types/actionState';
|
|
12
|
-
import ActionStateBase from './entities/states/actionStateBase';
|
|
13
|
-
import { Hours, Milliseconds, Seconds } from './types/timeValues';
|
|
14
|
-
|
|
15
|
-
export const helpers = {
|
|
16
|
-
hoursToMilliseconds,
|
|
17
|
-
hoursToSeconds,
|
|
18
|
-
secondsToMilliseconds
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export {
|
|
22
|
-
CommandActionBuilder,
|
|
23
|
-
CommandActionBuilderWithState,
|
|
24
|
-
ScheduledActionBuilder,
|
|
25
|
-
IStorageClient,
|
|
26
|
-
IActionState,
|
|
27
|
-
ActionStateBase,
|
|
28
|
-
Milliseconds,
|
|
29
|
-
Seconds,
|
|
30
|
-
Hours
|
|
31
|
-
};
|
|
2
|
+
export { CommandActionBuilder } from './helpers/builders/commandActionBuilder';
|
|
3
|
+
export { CommandActionBuilderWithState } from './helpers/builders/commandActionBuilder';
|
|
4
|
+
export * from './helpers/builders/scheduledActionBuilder';
|
|
5
|
+
export { IStorageClient } from './types/storage';
|
|
6
|
+
export * from './types/actionState';
|
|
7
|
+
export * from './entities/states/actionStateBase';
|
|
8
|
+
export { Hours, Milliseconds, Seconds } from './types/timeValues';
|