@purpleschool/gptbot 0.7.61 → 0.7.63
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/build/commands/cabinet/get-user-statistics-by-month.command.js +4 -1
- package/build/commands/telegram-profile/bot-was-blocked-by-user.command.js +11 -0
- package/build/commands/telegram-profile/index.js +2 -0
- package/build/commands/telegram-profile/user-joined-telegram.command.js +11 -0
- package/commands/cabinet/get-user-statistics-by-month.command.ts +4 -1
- package/commands/telegram-profile/bot-was-blocked-by-user.command.ts +13 -0
- package/commands/telegram-profile/index.ts +2 -0
- package/commands/telegram-profile/user-joined-telegram.command.ts +13 -0
- package/package.json +1 -1
|
@@ -12,7 +12,10 @@ var GetUserStatisticsByMonthCommand;
|
|
|
12
12
|
total_videos: zod_1.z.number(),
|
|
13
13
|
total_presentations: zod_1.z.number(),
|
|
14
14
|
total_paraphrases: zod_1.z.number(),
|
|
15
|
-
|
|
15
|
+
writers: zod_1.z.object({
|
|
16
|
+
total_writers: zod_1.z.number(),
|
|
17
|
+
total_writer_actions: zod_1.z.number(),
|
|
18
|
+
}),
|
|
16
19
|
});
|
|
17
20
|
GetUserStatisticsByMonthCommand.ResponseSchema = zod_1.z.object({
|
|
18
21
|
data: zod_1.z.array(GetUserStatisticsByMonthCommand.UserStatisticsByMonthResponseSchema),
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BotWasBlockedByUserCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var BotWasBlockedByUserCommand;
|
|
6
|
+
(function (BotWasBlockedByUserCommand) {
|
|
7
|
+
BotWasBlockedByUserCommand.RequestBodySchema = zod_1.z.object({
|
|
8
|
+
telegramId: zod_1.z.number(),
|
|
9
|
+
});
|
|
10
|
+
BotWasBlockedByUserCommand.ResponseSchema = zod_1.z.void();
|
|
11
|
+
})(BotWasBlockedByUserCommand || (exports.BotWasBlockedByUserCommand = BotWasBlockedByUserCommand = {}));
|
|
@@ -17,3 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./auth-with-telegram-web-app.command"), exports);
|
|
18
18
|
__exportStar(require("./check-telegram-profile-exists.command"), exports);
|
|
19
19
|
__exportStar(require("./create-telegram-profile-connection-link.command"), exports);
|
|
20
|
+
__exportStar(require("./bot-was-blocked-by-user.command"), exports);
|
|
21
|
+
__exportStar(require("./user-joined-telegram.command"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserJoinedTelegramCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
var UserJoinedTelegramCommand;
|
|
6
|
+
(function (UserJoinedTelegramCommand) {
|
|
7
|
+
UserJoinedTelegramCommand.RequestBodySchema = zod_1.z.object({
|
|
8
|
+
telegramId: zod_1.z.number(),
|
|
9
|
+
});
|
|
10
|
+
UserJoinedTelegramCommand.ResponseSchema = zod_1.z.void();
|
|
11
|
+
})(UserJoinedTelegramCommand || (exports.UserJoinedTelegramCommand = UserJoinedTelegramCommand = {}));
|
|
@@ -9,7 +9,10 @@ export namespace GetUserStatisticsByMonthCommand {
|
|
|
9
9
|
total_videos: z.number(),
|
|
10
10
|
total_presentations: z.number(),
|
|
11
11
|
total_paraphrases: z.number(),
|
|
12
|
-
|
|
12
|
+
writers: z.object({
|
|
13
|
+
total_writers: z.number(),
|
|
14
|
+
total_writer_actions: z.number(),
|
|
15
|
+
}),
|
|
13
16
|
});
|
|
14
17
|
|
|
15
18
|
export const ResponseSchema = z.object({
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export namespace BotWasBlockedByUserCommand {
|
|
4
|
+
export const RequestBodySchema = z.object({
|
|
5
|
+
telegramId: z.number(),
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
9
|
+
|
|
10
|
+
export const ResponseSchema = z.void();
|
|
11
|
+
|
|
12
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
13
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
export * from './auth-with-telegram-web-app.command';
|
|
2
2
|
export * from './check-telegram-profile-exists.command';
|
|
3
3
|
export * from './create-telegram-profile-connection-link.command';
|
|
4
|
+
export * from './bot-was-blocked-by-user.command';
|
|
5
|
+
export * from './user-joined-telegram.command';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
export namespace UserJoinedTelegramCommand {
|
|
4
|
+
export const RequestBodySchema = z.object({
|
|
5
|
+
telegramId: z.number(),
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
export type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
9
|
+
|
|
10
|
+
export const ResponseSchema = z.void();
|
|
11
|
+
|
|
12
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
13
|
+
}
|