@purpleschool/gptbot 0.8.83 → 0.8.84
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 +1 -1
- package/build/commands/cabinet/get-user-statistics-overview.command.js +1 -1
- package/commands/cabinet/get-user-statistics-by-month.command.ts +1 -1
- package/commands/cabinet/get-user-statistics-overview.command.ts +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ const constants_1 = require("../../constants");
|
|
|
6
6
|
var GetUserStatisticsByMonthCommand;
|
|
7
7
|
(function (GetUserStatisticsByMonthCommand) {
|
|
8
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),
|
|
9
|
+
origin: zod_1.z.nativeEnum(constants_1.JOB_REQUEST_ORIGIN).default(constants_1.JOB_REQUEST_ORIGIN.API).optional(),
|
|
10
10
|
});
|
|
11
11
|
GetUserStatisticsByMonthCommand.UserStatisticsByMonthResponseSchema = zod_1.z.object({
|
|
12
12
|
month: zod_1.z.string(),
|
|
@@ -13,7 +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
|
+
origin: zod_1.z.nativeEnum(constants_1.JOB_REQUEST_ORIGIN).default(constants_1.JOB_REQUEST_ORIGIN.API).optional(),
|
|
17
17
|
});
|
|
18
18
|
GetUserStatisticsOverviewCommand.UserStatisticsOverviewResponseSchema = zod_1.z.object({
|
|
19
19
|
startDate: zod_1.z.string(),
|
|
@@ -3,7 +3,7 @@ import { JOB_REQUEST_ORIGIN } from '../../constants';
|
|
|
3
3
|
|
|
4
4
|
export namespace GetUserStatisticsByMonthCommand {
|
|
5
5
|
export const RequestSchema = z.object({
|
|
6
|
-
origin: z.nativeEnum(JOB_REQUEST_ORIGIN).default(JOB_REQUEST_ORIGIN.API),
|
|
6
|
+
origin: z.nativeEnum(JOB_REQUEST_ORIGIN).default(JOB_REQUEST_ORIGIN.API).optional(),
|
|
7
7
|
});
|
|
8
8
|
|
|
9
9
|
export type Request = z.infer<typeof RequestSchema>;
|
|
@@ -10,7 +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
|
+
origin: z.nativeEnum(JOB_REQUEST_ORIGIN).default(JOB_REQUEST_ORIGIN.API).optional(),
|
|
14
14
|
});
|
|
15
15
|
|
|
16
16
|
export type Request = z.infer<typeof RequestSchema>;
|