@purpleschool/gptbot 0.12.14 → 0.12.15

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.InteriorDesignCommand = void 0;
4
4
  const zod_1 = require("zod");
5
+ const constants_1 = require("../../../constants");
5
6
  const models_1 = require("../../../models");
6
7
  var InteriorDesignCommand;
7
8
  (function (InteriorDesignCommand) {
@@ -13,6 +14,7 @@ var InteriorDesignCommand;
13
14
  styleId: zod_1.z.string().optional(),
14
15
  roomTypeId: zod_1.z.string().optional(),
15
16
  }),
17
+ jobSource: zod_1.z.nativeEnum(constants_1.INTERIOR_DESIGN_JOB_SOURCE),
16
18
  });
17
19
  InteriorDesignCommand.ResponseSchema = zod_1.z.object({
18
20
  data: models_1.ToolJobSchema,
@@ -51,6 +51,7 @@ __exportStar(require("./tool-video-editor"), exports);
51
51
  __exportStar(require("./writer"), exports);
52
52
  __exportStar(require("./tool-image-editor"), exports);
53
53
  __exportStar(require("./tool-image-generation"), exports);
54
+ __exportStar(require("./tool-interior-design"), exports);
54
55
  __exportStar(require("./feedback"), exports);
55
56
  __exportStar(require("./daily-streak"), exports);
56
57
  __exportStar(require("./cabinet"), exports);
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./interior-design-job-source.enum"), exports);
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.INTERIOR_DESIGN_JOB_SOURCE = void 0;
4
+ var INTERIOR_DESIGN_JOB_SOURCE;
5
+ (function (INTERIOR_DESIGN_JOB_SOURCE) {
6
+ INTERIOR_DESIGN_JOB_SOURCE["CREATED"] = "created";
7
+ INTERIOR_DESIGN_JOB_SOURCE["UPDATED"] = "updated";
8
+ })(INTERIOR_DESIGN_JOB_SOURCE || (exports.INTERIOR_DESIGN_JOB_SOURCE = INTERIOR_DESIGN_JOB_SOURCE = {}));
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./enums"), exports);
@@ -16,6 +16,7 @@ exports.InteriorDesignJobSchema = tool_job_schema_1.ToolJobSchema.extend({
16
16
  prompt: zod_1.z.string(),
17
17
  reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
18
18
  imageUrls: zod_1.z.string().array(),
19
+ jobSource: zod_1.z.nativeEnum(constants_1.INTERIOR_DESIGN_JOB_SOURCE),
19
20
  images: zod_1.z
20
21
  .array(file_schema_1.FileSchema.pick({
21
22
  uuid: true,
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { INTERIOR_DESIGN_JOB_SOURCE } from '../../../constants';
2
3
  import { ToolJobSchema } from '../../../models';
3
4
 
4
5
  export namespace InteriorDesignCommand {
@@ -10,6 +11,7 @@ export namespace InteriorDesignCommand {
10
11
  styleId: z.string().optional(),
11
12
  roomTypeId: z.string().optional(),
12
13
  }),
14
+ jobSource: z.nativeEnum(INTERIOR_DESIGN_JOB_SOURCE),
13
15
  });
14
16
  export type Request = z.infer<typeof RequestSchema>;
15
17
 
@@ -35,6 +35,7 @@ export * from './tool-video-editor';
35
35
  export * from './writer';
36
36
  export * from './tool-image-editor';
37
37
  export * from './tool-image-generation';
38
+ export * from './tool-interior-design';
38
39
  export * from './feedback';
39
40
  export * from './daily-streak';
40
41
  export * from './cabinet';
@@ -0,0 +1 @@
1
+ export * from './interior-design-job-source.enum';
@@ -0,0 +1,4 @@
1
+ export enum INTERIOR_DESIGN_JOB_SOURCE {
2
+ CREATED = 'created',
3
+ UPDATED = 'updated',
4
+ }
@@ -0,0 +1 @@
1
+ export * from './enums';
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { USER_REACTION } from '../../../constants';
2
+ import { INTERIOR_DESIGN_JOB_SOURCE, USER_REACTION } from '../../../constants';
3
3
  import { ToolJobSchema } from '../../tool-job.schema';
4
4
  import { FileSchema } from '../../file.schema';
5
5
  import { AttachedToolFileSchema } from '../common';
@@ -17,6 +17,7 @@ export const InteriorDesignJobSchema = ToolJobSchema.extend({
17
17
  prompt: z.string(),
18
18
  reaction: z.nativeEnum(USER_REACTION).nullable(),
19
19
  imageUrls: z.string().array(),
20
+ jobSource: z.nativeEnum(INTERIOR_DESIGN_JOB_SOURCE),
20
21
  images: z
21
22
  .array(
22
23
  FileSchema.pick({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.12.14",
3
+ "version": "0.12.15",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",