@purpleschool/gptbot-tools 0.2.0-stage → 0.2.1-stage

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.
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
5
5
  const command_response_schema_1 = require("../../common/models/command-response.schema");
6
6
  const models_1 = require("../models");
7
7
  const common_1 = require("../../common");
8
+ const enums_1 = require("../enums");
8
9
  var InteriorDesignCommand;
9
10
  (function (InteriorDesignCommand) {
10
11
  InteriorDesignCommand.RequestSchema = zod_1.z.object({
@@ -20,6 +21,7 @@ var InteriorDesignCommand;
20
21
  tokenReservationId: zod_1.z.string().uuid(),
21
22
  precalculatedPrice: zod_1.z.number(),
22
23
  userHasActiveSubscriptionOrProduct: zod_1.z.boolean(),
24
+ jobSource: zod_1.z.nativeEnum(enums_1.INTERIOR_DESIGN_JOB_SOURCE),
23
25
  });
24
26
  InteriorDesignCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.InteriorDesignJobSchema);
25
27
  })(InteriorDesignCommand || (exports.InteriorDesignCommand = InteriorDesignCommand = {}));
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./interior-design-model-type.enum"), exports);
18
18
  __exportStar(require("./interior-design-strategy.enum"), exports);
19
+ __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 = {}));
@@ -4,6 +4,7 @@ exports.InteriorDesignJobSchema = exports.InteriorDesignJobParamsSchema = void 0
4
4
  const zod_1 = require("zod");
5
5
  const tools_1 = require("../../tools");
6
6
  const common_1 = require("../../common");
7
+ const enums_1 = require("../enums");
7
8
  exports.InteriorDesignJobParamsSchema = zod_1.z.object({
8
9
  attachedFiles: zod_1.z.array(common_1.AttachedFileSchema).optional(),
9
10
  styleId: zod_1.z.string().optional(),
@@ -27,6 +28,7 @@ exports.InteriorDesignJobSchema = zod_1.z.object({
27
28
  userId: zod_1.z.string().nullable().optional(),
28
29
  unregisteredUserId: zod_1.z.string().nullable().optional(),
29
30
  tokenReservationId: zod_1.z.string().nullable().optional(),
31
+ jobSource: zod_1.z.nativeEnum(enums_1.INTERIOR_DESIGN_JOB_SOURCE),
30
32
  isDeleted: zod_1.z.boolean(),
31
33
  createdAt: zod_1.z.date(),
32
34
  completedAt: zod_1.z.date().nullable().optional(),
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  import { ICommandResponseSchema } from '../../common/models/command-response.schema';
3
3
  import { InteriorDesignJobSchema } from '../models';
4
4
  import { AttachedFileSchema } from '../../common';
5
+ import { INTERIOR_DESIGN_JOB_SOURCE } from '../enums';
5
6
 
6
7
  export namespace InteriorDesignCommand {
7
8
  export const RequestSchema = z.object({
@@ -17,6 +18,7 @@ export namespace InteriorDesignCommand {
17
18
  tokenReservationId: z.string().uuid(),
18
19
  precalculatedPrice: z.number(),
19
20
  userHasActiveSubscriptionOrProduct: z.boolean(),
21
+ jobSource: z.nativeEnum(INTERIOR_DESIGN_JOB_SOURCE),
20
22
  });
21
23
  export type Request = z.infer<typeof RequestSchema>;
22
24
 
@@ -1,2 +1,3 @@
1
1
  export * from './interior-design-model-type.enum';
2
2
  export * from './interior-design-strategy.enum';
3
+ 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
+ }
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { JOB_STATUS } from '../../tools';
3
3
  import { AttachedFileSchema, USER_REACTION } from '../../common';
4
+ import { INTERIOR_DESIGN_JOB_SOURCE } from '../enums';
4
5
 
5
6
  export const InteriorDesignJobParamsSchema = z.object({
6
7
  attachedFiles: z.array(AttachedFileSchema).optional(),
@@ -28,6 +29,7 @@ export const InteriorDesignJobSchema = z.object({
28
29
  userId: z.string().nullable().optional(),
29
30
  unregisteredUserId: z.string().nullable().optional(),
30
31
  tokenReservationId: z.string().nullable().optional(),
32
+ jobSource: z.nativeEnum(INTERIOR_DESIGN_JOB_SOURCE),
31
33
  isDeleted: z.boolean(),
32
34
  createdAt: z.date(),
33
35
  completedAt: z.date().nullable().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.2.0-stage",
3
+ "version": "0.2.1-stage",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {