@purpleschool/gptbot-tools 0.0.49-texteditor → 0.0.50

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.
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./job-status.enum"), exports);
18
+ __exportStar(require("./tool-type.enum"), exports);
18
19
  __exportStar(require("./content-type.enum"), exports);
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TOOL_TYPE = void 0;
4
+ var TOOL_TYPE;
5
+ (function (TOOL_TYPE) {
6
+ TOOL_TYPE["IMAGE"] = "IMAGE";
7
+ TOOL_TYPE["TEXT"] = "TEXT";
8
+ TOOL_TYPE["VIDEO"] = "VIDEO";
9
+ TOOL_TYPE["AUDIO"] = "AUDIO";
10
+ TOOL_TYPE["PRESENTATION"] = "PRESENTATION";
11
+ })(TOOL_TYPE || (exports.TOOL_TYPE = TOOL_TYPE = {}));
@@ -1,11 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ToolJobCompleteEvent = void 0;
4
+ const enums_1 = require("../enums");
4
5
  const models_1 = require("../models");
5
6
  const zod_1 = require("zod");
6
7
  var ToolJobCompleteEvent;
7
8
  (function (ToolJobCompleteEvent) {
8
9
  ToolJobCompleteEvent.PayloadSchema = zod_1.z.object({
9
- job: models_1.ToolJobSchema,
10
+ job: models_1.ToolJobSchema.extend({
11
+ toolType: zod_1.z.nativeEnum(enums_1.TOOL_TYPE),
12
+ }),
10
13
  });
11
14
  })(ToolJobCompleteEvent || (exports.ToolJobCompleteEvent = ToolJobCompleteEvent = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.0.49-texteditor",
3
+ "version": "0.0.50",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {
@@ -1,2 +1,3 @@
1
1
  export * from './job-status.enum';
2
+ export * from './tool-type.enum';
2
3
  export * from './content-type.enum';
@@ -0,0 +1,7 @@
1
+ export enum TOOL_TYPE {
2
+ IMAGE = 'IMAGE',
3
+ TEXT = 'TEXT',
4
+ VIDEO = 'VIDEO',
5
+ AUDIO = 'AUDIO',
6
+ PRESENTATION = 'PRESENTATION',
7
+ }
@@ -1,9 +1,12 @@
1
+ import { TOOL_TYPE } from '../enums';
1
2
  import { ToolJobSchema } from '../models';
2
3
  import { z } from 'zod';
3
4
 
4
5
  export namespace ToolJobCompleteEvent {
5
6
  export const PayloadSchema = z.object({
6
- job: ToolJobSchema,
7
+ job: ToolJobSchema.extend({
8
+ toolType: z.nativeEnum(TOOL_TYPE),
9
+ }),
7
10
  });
8
11
 
9
12
  export type Payload = z.infer<typeof PayloadSchema>;