@purpleschool/gptbot 0.8.79 → 0.8.80
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 -0
- package/build/commands/cabinet/get-user-statistics-overview.command.js +1 -0
- package/build/models/tools/video/video-model.schema.js +13 -0
- package/commands/cabinet/get-user-statistics-by-month.command.ts +7 -0
- package/commands/cabinet/get-user-statistics-overview.command.ts +2 -1
- package/models/tools/video/video-model.schema.ts +13 -0
- package/package.json +1 -1
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetUserStatisticsByMonthCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
5
6
|
var GetUserStatisticsByMonthCommand;
|
|
6
7
|
(function (GetUserStatisticsByMonthCommand) {
|
|
8
|
+
GetUserStatisticsByMonthCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
origin: zod_1.z.nativeEnum(constants_1.JOB_REQUEST_ORIGIN).default(constants_1.JOB_REQUEST_ORIGIN.API),
|
|
10
|
+
});
|
|
7
11
|
GetUserStatisticsByMonthCommand.UserStatisticsByMonthResponseSchema = zod_1.z.object({
|
|
8
12
|
month: zod_1.z.string(),
|
|
9
13
|
total_texts: zod_1.z.number(),
|
|
@@ -13,6 +13,7 @@ var GetUserStatisticsOverviewCommand;
|
|
|
13
13
|
message: 'to must be a valid date string',
|
|
14
14
|
}),
|
|
15
15
|
groupBy: zod_1.z.nativeEnum(constants_1.GROUP_BY).default(constants_1.GROUP_BY.DAY),
|
|
16
|
+
origin: zod_1.z.nativeEnum(constants_1.JOB_REQUEST_ORIGIN).default(constants_1.JOB_REQUEST_ORIGIN.API),
|
|
16
17
|
});
|
|
17
18
|
GetUserStatisticsOverviewCommand.UserStatisticsOverviewResponseSchema = zod_1.z.object({
|
|
18
19
|
startDate: zod_1.z.string(),
|
|
@@ -25,6 +25,16 @@ exports.VideoModelParamsSchema = zod_1.z.object({
|
|
|
25
25
|
options: zod_1.z.array(zod_1.z.string()),
|
|
26
26
|
})
|
|
27
27
|
.optional(),
|
|
28
|
+
sound: zod_1.z
|
|
29
|
+
.object({
|
|
30
|
+
options: zod_1.z.array(zod_1.z.boolean()),
|
|
31
|
+
})
|
|
32
|
+
.optional(),
|
|
33
|
+
multiShots: zod_1.z
|
|
34
|
+
.object({
|
|
35
|
+
options: zod_1.z.array(zod_1.z.boolean()),
|
|
36
|
+
})
|
|
37
|
+
.optional(),
|
|
28
38
|
});
|
|
29
39
|
exports.VideoGenerationRequestParamsSchema = zod_1.z.object({
|
|
30
40
|
imageUrls: zod_1.z.string().array().optional(),
|
|
@@ -32,10 +42,13 @@ exports.VideoGenerationRequestParamsSchema = zod_1.z.object({
|
|
|
32
42
|
aspectRatio: zod_1.z.string().optional(),
|
|
33
43
|
quality: zod_1.z.string().optional(),
|
|
34
44
|
resolution: zod_1.z.string().optional(),
|
|
45
|
+
sound: zod_1.z.boolean().optional(),
|
|
46
|
+
multiShots: zod_1.z.boolean().optional(),
|
|
35
47
|
});
|
|
36
48
|
exports.VideoModelPricingRuleConditionSchema = zod_1.z.object({
|
|
37
49
|
aspectRatio: zod_1.z.string().optional(),
|
|
38
50
|
resolution: zod_1.z.string().optional(),
|
|
51
|
+
sound: zod_1.z.boolean().optional(),
|
|
39
52
|
});
|
|
40
53
|
exports.VideoModelPricingRulesSchema = zod_1.z.array(zod_1.z.object({
|
|
41
54
|
type: zod_1.z.nativeEnum(constants_1.VIDEO_PRICING_RULE_TYPE),
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { JOB_REQUEST_ORIGIN } from '../../constants';
|
|
2
3
|
|
|
3
4
|
export namespace GetUserStatisticsByMonthCommand {
|
|
5
|
+
export const RequestSchema = z.object({
|
|
6
|
+
origin: z.nativeEnum(JOB_REQUEST_ORIGIN).default(JOB_REQUEST_ORIGIN.API),
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
10
|
+
|
|
4
11
|
export const UserStatisticsByMonthResponseSchema = z.object({
|
|
5
12
|
month: z.string(),
|
|
6
13
|
total_texts: z.number(),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { GROUP_BY } from '../../constants';
|
|
2
|
+
import { GROUP_BY, JOB_REQUEST_ORIGIN } from '../../constants';
|
|
3
3
|
|
|
4
4
|
export namespace GetUserStatisticsOverviewCommand {
|
|
5
5
|
export const RequestSchema = z.object({
|
|
@@ -10,6 +10,7 @@ export namespace GetUserStatisticsOverviewCommand {
|
|
|
10
10
|
message: 'to must be a valid date string',
|
|
11
11
|
}),
|
|
12
12
|
groupBy: z.nativeEnum(GROUP_BY).default(GROUP_BY.DAY),
|
|
13
|
+
origin: z.nativeEnum(JOB_REQUEST_ORIGIN).default(JOB_REQUEST_ORIGIN.API),
|
|
13
14
|
});
|
|
14
15
|
|
|
15
16
|
export type Request = z.infer<typeof RequestSchema>;
|
|
@@ -23,6 +23,16 @@ export const VideoModelParamsSchema = z.object({
|
|
|
23
23
|
options: z.array(z.string()),
|
|
24
24
|
})
|
|
25
25
|
.optional(),
|
|
26
|
+
sound: z
|
|
27
|
+
.object({
|
|
28
|
+
options: z.array(z.boolean()),
|
|
29
|
+
})
|
|
30
|
+
.optional(),
|
|
31
|
+
multiShots: z
|
|
32
|
+
.object({
|
|
33
|
+
options: z.array(z.boolean()),
|
|
34
|
+
})
|
|
35
|
+
.optional(),
|
|
26
36
|
});
|
|
27
37
|
|
|
28
38
|
export const VideoGenerationRequestParamsSchema = z.object({
|
|
@@ -31,12 +41,15 @@ export const VideoGenerationRequestParamsSchema = z.object({
|
|
|
31
41
|
aspectRatio: z.string().optional(),
|
|
32
42
|
quality: z.string().optional(),
|
|
33
43
|
resolution: z.string().optional(),
|
|
44
|
+
sound: z.boolean().optional(),
|
|
45
|
+
multiShots: z.boolean().optional(),
|
|
34
46
|
});
|
|
35
47
|
export type VideoGenerationRequestParams = z.infer<typeof VideoGenerationRequestParamsSchema>;
|
|
36
48
|
|
|
37
49
|
export const VideoModelPricingRuleConditionSchema = z.object({
|
|
38
50
|
aspectRatio: z.string().optional(),
|
|
39
51
|
resolution: z.string().optional(),
|
|
52
|
+
sound: z.boolean().optional(),
|
|
40
53
|
});
|
|
41
54
|
export type VideoModelPricingRuleCondition = z.infer<typeof VideoModelPricingRuleConditionSchema>;
|
|
42
55
|
|