@purpleschool/gptbot-tools 0.0.8 → 0.0.9
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.
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.ParaphraseJobSchema = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
+
const tools_1 = require("../../tools");
|
5
6
|
exports.ParaphraseJobSchema = zod_1.z.object({
|
6
7
|
uuid: zod_1.z.string(),
|
7
8
|
userId: zod_1.z.string().nullable(),
|
@@ -10,7 +11,7 @@ exports.ParaphraseJobSchema = zod_1.z.object({
|
|
10
11
|
aiOutput: zod_1.z.string().nullable(),
|
11
12
|
aiTokenUsage: zod_1.z.number().nullable(),
|
12
13
|
price: zod_1.z.number(),
|
13
|
-
status: zod_1.z.
|
14
|
+
status: zod_1.z.nativeEnum(tools_1.JOB_STATUS),
|
14
15
|
typeId: zod_1.z.string(),
|
15
16
|
styleId: zod_1.z.string(),
|
16
17
|
createdAt: zod_1.z.date(),
|
package/package.json
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
+
import { JOB_STATUS } from '../../tools';
|
2
3
|
|
3
4
|
export const ParaphraseJobSchema = z.object({
|
4
5
|
uuid: z.string(),
|
@@ -8,7 +9,7 @@ export const ParaphraseJobSchema = z.object({
|
|
8
9
|
aiOutput: z.string().nullable(),
|
9
10
|
aiTokenUsage: z.number().nullable(),
|
10
11
|
price: z.number(),
|
11
|
-
status: z.
|
12
|
+
status: z.nativeEnum(JOB_STATUS),
|
12
13
|
typeId: z.string(),
|
13
14
|
styleId: z.string(),
|
14
15
|
createdAt: z.date(),
|