@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.
@@ -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(),
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./group-by.enum"), exports);
18
+ __exportStar(require("./statistics-metric-type.enum"), exports);
@@ -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>;
@@ -1 +1,2 @@
1
1
  export * from './group-by.enum';
2
+ export * from './statistics-metric-type.enum';
@@ -0,0 +1,4 @@
1
+ export enum STATISTICS_METRIC_TYPE {
2
+ REQUESTS = 'requests',
3
+ TOKENS = 'tokens',
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.9.17",
3
+ "version": "0.9.18",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",