@purpleschool/gptbot 0.9.17 → 0.9.18
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 -0
- package/build/constants/cabinet/enums/index.js +1 -0
- package/build/constants/cabinet/enums/statistics-metric-type.enum.js +8 -0
- package/commands/cabinet/get-user-statistics-by-month.command.ts +3 -1
- package/constants/cabinet/enums/index.ts +1 -0
- package/constants/cabinet/enums/statistics-metric-type.enum.ts +4 -0
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ var GetUserStatisticsByMonthCommand;
|
|
|
7
7
|
(function (GetUserStatisticsByMonthCommand) {
|
|
8
8
|
GetUserStatisticsByMonthCommand.RequestSchema = zod_1.z.object({
|
|
9
9
|
origin: zod_1.z.nativeEnum(constants_1.JOB_REQUEST_ORIGIN).default(constants_1.JOB_REQUEST_ORIGIN.API).optional(),
|
|
10
|
+
metric: zod_1.z.nativeEnum(constants_1.STATISTICS_METRIC_TYPE).default(constants_1.STATISTICS_METRIC_TYPE.REQUESTS).optional(),
|
|
10
11
|
});
|
|
11
12
|
GetUserStatisticsByMonthCommand.UserStatisticsByMonthResponseSchema = zod_1.z.object({
|
|
12
13
|
month: zod_1.z.string(),
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.STATISTICS_METRIC_TYPE = void 0;
|
|
4
|
+
var STATISTICS_METRIC_TYPE;
|
|
5
|
+
(function (STATISTICS_METRIC_TYPE) {
|
|
6
|
+
STATISTICS_METRIC_TYPE["REQUESTS"] = "requests";
|
|
7
|
+
STATISTICS_METRIC_TYPE["TOKENS"] = "tokens";
|
|
8
|
+
})(STATISTICS_METRIC_TYPE || (exports.STATISTICS_METRIC_TYPE = STATISTICS_METRIC_TYPE = {}));
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { JOB_REQUEST_ORIGIN } from '../../constants';
|
|
2
|
+
import { JOB_REQUEST_ORIGIN, STATISTICS_METRIC_TYPE } from '../../constants';
|
|
3
3
|
|
|
4
4
|
export namespace GetUserStatisticsByMonthCommand {
|
|
5
|
+
|
|
5
6
|
export const RequestSchema = z.object({
|
|
6
7
|
origin: z.nativeEnum(JOB_REQUEST_ORIGIN).default(JOB_REQUEST_ORIGIN.API).optional(),
|
|
8
|
+
metric: z.nativeEnum(STATISTICS_METRIC_TYPE).default(STATISTICS_METRIC_TYPE.REQUESTS).optional(),
|
|
7
9
|
});
|
|
8
10
|
|
|
9
11
|
export type Request = z.infer<typeof RequestSchema>;
|