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 CHANGED
@@ -1,16 +1,9 @@
1
1
  export { startBot, stopBots } from './main';
2
- import { CommandActionBuilder } from './helpers/builders/commandActionBuilder';
3
- import { CommandActionBuilderWithState } from './helpers/builders/commandActionBuilder';
4
- import ScheduledActionBuilder from './helpers/builders/scheduledActionBuilder';
5
- import { hoursToMilliseconds, hoursToSeconds, secondsToMilliseconds } from './helpers/timeConvertions';
6
- import { IStorageClient } from './types/storage';
7
- import IActionState from './types/actionState';
8
- import ActionStateBase from './entities/states/actionStateBase';
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
@@ -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,OAAO,sBAAsB,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EACH,mBAAmB,EACnB,cAAc,EACd,qBAAqB,EACxB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,eAAe,MAAM,mCAAmC,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElE,eAAO,MAAM,OAAO;;;;CAInB,CAAC;AAEF,OAAO,EACH,oBAAoB,EACpB,6BAA6B,EAC7B,sBAAsB,EACtB,cAAc,EACd,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,OAAO,EACP,KAAK,EACR,CAAC"}
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 __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
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.ActionStateBase = exports.ScheduledActionBuilder = exports.CommandActionBuilderWithState = exports.CommandActionBuilder = exports.helpers = exports.stopBots = exports.startBot = void 0;
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
- const commandActionBuilder_1 = require("./helpers/builders/commandActionBuilder");
21
+ var commandActionBuilder_1 = require("./helpers/builders/commandActionBuilder");
11
22
  Object.defineProperty(exports, "CommandActionBuilder", { enumerable: true, get: function () { return commandActionBuilder_1.CommandActionBuilder; } });
12
- const commandActionBuilder_2 = require("./helpers/builders/commandActionBuilder");
23
+ var commandActionBuilder_2 = require("./helpers/builders/commandActionBuilder");
13
24
  Object.defineProperty(exports, "CommandActionBuilderWithState", { enumerable: true, get: function () { return commandActionBuilder_2.CommandActionBuilderWithState; } });
14
- const scheduledActionBuilder_1 = __importDefault(require("./helpers/builders/scheduledActionBuilder"));
15
- exports.ScheduledActionBuilder = scheduledActionBuilder_1.default;
16
- const timeConvertions_1 = require("./helpers/timeConvertions");
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("..").IActionState>;
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
- import { CommandActionBuilder } from './helpers/builders/commandActionBuilder';
3
- import { CommandActionBuilderWithState } from './helpers/builders/commandActionBuilder';
4
- import ScheduledActionBuilder from './helpers/builders/scheduledActionBuilder';
5
- import {
6
- hoursToMilliseconds,
7
- hoursToSeconds,
8
- secondsToMilliseconds
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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chz-telegram-bot",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "async-sema": "^3.1.1",