@purpleschool/gptbot 0.5.56 → 0.5.58

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,17 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FindActiveUiNotificationsByPageAndUserCommand = void 0;
4
4
  const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
5
6
  var FindActiveUiNotificationsByPageAndUserCommand;
6
7
  (function (FindActiveUiNotificationsByPageAndUserCommand) {
7
8
  FindActiveUiNotificationsByPageAndUserCommand.RequestQuerySchema = zod_1.z.object({
8
9
  page: zod_1.z.string(),
9
10
  });
10
11
  FindActiveUiNotificationsByPageAndUserCommand.ResponseSchema = zod_1.z.object({
11
- data: zod_1.z.array(zod_1.z.object({
12
- uuid: zod_1.z.string().uuid(),
13
- dynamicUiContent: zod_1.z.record(zod_1.z.unknown()),
14
- endDate: zod_1.z.date().nullable(),
15
- serverTime: zod_1.z.date().optional(),
16
- })),
12
+ data: zod_1.z.array(models_1.uiNotificationSchema),
17
13
  });
18
14
  })(FindActiveUiNotificationsByPageAndUserCommand || (exports.FindActiveUiNotificationsByPageAndUserCommand = FindActiveUiNotificationsByPageAndUserCommand = {}));
@@ -8,4 +8,6 @@ var AI_MODEL_STRATEGY;
8
8
  AI_MODEL_STRATEGY["MIDJOURNEY_IMAGE_GENERATION"] = "midjourney_image_generation";
9
9
  AI_MODEL_STRATEGY["DEEPSEEK_TEXT_GENERATION"] = "deepseek_text_generation";
10
10
  AI_MODEL_STRATEGY["GROK_TEXT_GENERATION"] = "grok_text_generation";
11
+ AI_MODEL_STRATEGY["CLAUDE_TEXT_GENERATION"] = "claude_text_generation";
12
+ AI_MODEL_STRATEGY["FLUX_IMAGE_GENERATION"] = "flux_image_generation";
11
13
  })(AI_MODEL_STRATEGY || (exports.AI_MODEL_STRATEGY = AI_MODEL_STRATEGY = {}));
@@ -3,8 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.uiNotificationSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.uiNotificationSchema = zod_1.z.object({
6
- promocode: zod_1.z.string(),
7
- text: zod_1.z.string().optional(),
6
+ uuid: zod_1.z.string().uuid(),
7
+ type: zod_1.z.string(),
8
+ dynamicUiContent: zod_1.z.record(zod_1.z.unknown()),
9
+ userId: zod_1.z.string().nullable(),
10
+ status: zod_1.z.string(),
11
+ conditionOfExecution: zod_1.z.string(),
8
12
  endDate: zod_1.z.date().nullable(),
9
13
  serverTime: zod_1.z.date().optional(),
10
14
  });
@@ -1,4 +1,5 @@
1
1
  import { z } from 'zod';
2
+ import { uiNotificationSchema } from '../../models';
2
3
 
3
4
  export namespace FindActiveUiNotificationsByPageAndUserCommand {
4
5
  export const RequestQuerySchema = z.object({
@@ -8,14 +9,7 @@ export namespace FindActiveUiNotificationsByPageAndUserCommand {
8
9
  export type Request = z.infer<typeof RequestQuerySchema>;
9
10
 
10
11
  export const ResponseSchema = z.object({
11
- data: z.array(
12
- z.object({
13
- uuid: z.string().uuid(),
14
- dynamicUiContent: z.record(z.unknown()),
15
- endDate: z.date().nullable(),
16
- serverTime: z.date().optional(),
17
- }),
18
- ),
12
+ data: z.array(uiNotificationSchema),
19
13
  });
20
14
  export type Response = z.infer<typeof ResponseSchema>;
21
15
  }
@@ -4,4 +4,6 @@ export enum AI_MODEL_STRATEGY {
4
4
  MIDJOURNEY_IMAGE_GENERATION = 'midjourney_image_generation',
5
5
  DEEPSEEK_TEXT_GENERATION = 'deepseek_text_generation',
6
6
  GROK_TEXT_GENERATION = 'grok_text_generation',
7
+ CLAUDE_TEXT_GENERATION = 'claude_text_generation',
8
+ FLUX_IMAGE_GENERATION = 'flux_image_generation',
7
9
  }
@@ -1,8 +1,12 @@
1
1
  import { z } from 'zod';
2
2
 
3
3
  export const uiNotificationSchema = z.object({
4
- promocode: z.string(),
5
- text: z.string().optional(),
4
+ uuid: z.string().uuid(),
5
+ type: z.string(),
6
+ dynamicUiContent: z.record(z.unknown()),
7
+ userId: z.string().nullable(),
8
+ status: z.string(),
9
+ conditionOfExecution: z.string(),
6
10
  endDate: z.date().nullable(),
7
11
  serverTime: z.date().optional(),
8
12
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.5.56",
3
+ "version": "0.5.58",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",