@edgenets/utils 0.1.5 → 0.1.6
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.
@@ -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"}
|