chz-telegram-bot 0.0.38 → 0.0.39

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
@@ -6,4 +6,5 @@ export { IStorageClient } from './types/storage';
6
6
  export * from './types/actionState';
7
7
  export * from './entities/states/actionStateBase';
8
8
  export { Hours, Milliseconds, Seconds } from './types/timeValues';
9
+ export { MessageType } from './types/messageTypes';
9
10
  //# 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,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"}
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;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC"}
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ 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.CommandActionBuilderWithState = exports.CommandActionBuilder = exports.stopBots = exports.startBot = void 0;
17
+ exports.MessageType = exports.CommandActionBuilderWithState = exports.CommandActionBuilder = exports.stopBots = exports.startBot = void 0;
18
18
  var main_1 = require("./main");
19
19
  Object.defineProperty(exports, "startBot", { enumerable: true, get: function () { return main_1.startBot; } });
20
20
  Object.defineProperty(exports, "stopBots", { enumerable: true, get: function () { return main_1.stopBots; } });
@@ -25,3 +25,5 @@ Object.defineProperty(exports, "CommandActionBuilderWithState", { enumerable: tr
25
25
  __exportStar(require("./helpers/builders/scheduledActionBuilder"), exports);
26
26
  __exportStar(require("./types/actionState"), exports);
27
27
  __exportStar(require("./entities/states/actionStateBase"), exports);
28
+ var messageTypes_1 = require("./types/messageTypes");
29
+ Object.defineProperty(exports, "MessageType", { enumerable: true, get: function () { return messageTypes_1.MessageType; } });
@@ -1,2 +1,3 @@
1
- export type CommandTrigger = string | RegExp;
1
+ import { MessageType } from './messageTypes';
2
+ export type CommandTrigger = (typeof MessageType)[keyof typeof MessageType] | string | RegExp;
2
3
  //# sourceMappingURL=commandTrigger.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"commandTrigger.d.ts","sourceRoot":"","sources":["../../types/commandTrigger.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC"}
1
+ {"version":3,"file":"commandTrigger.d.ts","sourceRoot":"","sources":["../../types/commandTrigger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,MAAM,cAAc,GACpB,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,GAC9C,MAAM,GACN,MAAM,CAAC"}
package/index.ts CHANGED
@@ -6,3 +6,4 @@ export { IStorageClient } from './types/storage';
6
6
  export * from './types/actionState';
7
7
  export * from './entities/states/actionStateBase';
8
8
  export { Hours, Milliseconds, Seconds } from './types/timeValues';
9
+ export { MessageType } from './types/messageTypes';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chz-telegram-bot",
3
- "version": "0.0.38",
3
+ "version": "0.0.39",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "async-sema": "^3.1.1",
@@ -1 +1,6 @@
1
- export type CommandTrigger = string | RegExp;
1
+ import { MessageType } from './messageTypes';
2
+
3
+ export type CommandTrigger =
4
+ | (typeof MessageType)[keyof typeof MessageType]
5
+ | string
6
+ | RegExp;