@edgenets/utils 0.1.5 → 0.1.7
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 +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/types/notification.d.ts +44 -0
- package/dist/types/notification.d.ts.map +1 -0
- package/dist/types/notification.js +10 -0
- package/dist/types/notification.js.map +1 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -2,6 +2,7 @@ export * from "./types/user.js";
|
|
2
2
|
export * from "./types/product.js";
|
3
3
|
export * from "./types/logger.js";
|
4
4
|
export * from "./types/order.js";
|
5
|
+
export * from "./types/notification.js";
|
5
6
|
export { StringUtils } from "./utils/string.util.js";
|
6
7
|
export { SimpleStateMachine, OrderStateMachine, } from "./utils/statemachine.util.js";
|
7
8
|
export { SignatureUtils } from "./utils/signature.util.js";
|
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AAGxC,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGrD,OAAO,EACL,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AAGtC,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AAGvC,cAAc,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
@@ -3,6 +3,7 @@ export * from "./types/user.js";
|
|
3
3
|
export * from "./types/product.js";
|
4
4
|
export * from "./types/logger.js";
|
5
5
|
export * from "./types/order.js";
|
6
|
+
export * from "./types/notification.js";
|
6
7
|
// 导出字符串处理函数
|
7
8
|
export { StringUtils } from "./utils/string.util.js";
|
8
9
|
// 导出状态机函数
|
package/dist/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,SAAS;AACT,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,SAAS;AACT,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AAExC,YAAY;AACZ,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD,UAAU;AACV,OAAO,EACL,kBAAkB,EAClB,iBAAiB,GAClB,MAAM,8BAA8B,CAAC;AAEtC,WAAW;AACX,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,cAAc;AACd,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AAEvC,YAAY;AACZ,cAAc,0BAA0B,CAAC"}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
export declare enum BotId {
|
2
|
+
edgenets = 7001972098,
|
3
|
+
ariagame = 6725302634,
|
4
|
+
zoomania = 7076105558,
|
5
|
+
playaria = 7075595472,
|
6
|
+
playgam = 7171779056
|
7
|
+
}
|
8
|
+
/** 样例说明
|
9
|
+
{
|
10
|
+
"chatId": "123456789",
|
11
|
+
"sendStatus": false,
|
12
|
+
"messageText": "Hello, this is your scheduled message!",
|
13
|
+
"mediaUrl": "https://example.com/media.mp4",
|
14
|
+
"keyboard": [
|
15
|
+
{
|
16
|
+
"text": "Visit Website",
|
17
|
+
"url": "https://example.com"
|
18
|
+
}
|
19
|
+
],
|
20
|
+
"messageFormat": "markdown",
|
21
|
+
"botId": 7171779056
|
22
|
+
}
|
23
|
+
*/
|
24
|
+
export interface Notification {
|
25
|
+
id: string;
|
26
|
+
jobId: string;
|
27
|
+
botId: BotId;
|
28
|
+
chatId: string;
|
29
|
+
sendStatus: boolean;
|
30
|
+
messageText: string;
|
31
|
+
messageFormat: "HTML" | "Markdown" | "MarkdownV2";
|
32
|
+
mediaUrl?: string;
|
33
|
+
mediaType: "Image" | "Video" | undefined;
|
34
|
+
keyboard?: {
|
35
|
+
text: string;
|
36
|
+
callback_data?: string;
|
37
|
+
url?: string;
|
38
|
+
}[];
|
39
|
+
errCount: number;
|
40
|
+
createdAt: Date;
|
41
|
+
alertedAt: Date;
|
42
|
+
updatedAt?: Date;
|
43
|
+
}
|
44
|
+
//# sourceMappingURL=notification.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../src/types/notification.ts"],"names":[],"mappings":"AACA,oBAAY,KAAK;IACf,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,OAAO,aAAa;CACrB;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,CAAC;IAClD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;IACzC,QAAQ,CAAC,EAAE;QACT,IAAI,EAAE,MAAM,CAAC;QACb,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,EAAE,CAAC;IAEJ,QAAQ,EAAE,MAAM,CAAC;IAEjB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
// ## Notification
|
2
|
+
export var BotId;
|
3
|
+
(function (BotId) {
|
4
|
+
BotId[BotId["edgenets"] = 7001972098] = "edgenets";
|
5
|
+
BotId[BotId["ariagame"] = 6725302634] = "ariagame";
|
6
|
+
BotId[BotId["zoomania"] = 7076105558] = "zoomania";
|
7
|
+
BotId[BotId["playaria"] = 7075595472] = "playaria";
|
8
|
+
BotId[BotId["playgam"] = 7171779056] = "playgam";
|
9
|
+
})(BotId || (BotId = {}));
|
10
|
+
//# sourceMappingURL=notification.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../src/types/notification.ts"],"names":[],"mappings":"AAAA,kBAAkB;AAClB,MAAM,CAAN,IAAY,KAMX;AAND,WAAY,KAAK;IACf,kDAAqB,CAAA;IACrB,kDAAqB,CAAA;IACrB,kDAAqB,CAAA;IACrB,kDAAqB,CAAA;IACrB,gDAAoB,CAAA;AACtB,CAAC,EANW,KAAK,KAAL,KAAK,QAMhB"}
|