@purpleschool/gptbot 0.5.61 → 0.5.64

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.
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CATEGORY_MARK = void 0;
4
+ var CATEGORY_MARK;
5
+ (function (CATEGORY_MARK) {
6
+ CATEGORY_MARK["HIDDEN"] = "hidden";
7
+ })(CATEGORY_MARK || (exports.CATEGORY_MARK = CATEGORY_MARK = {}));
@@ -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("./category-content-type.enum"), exports);
18
+ __exportStar(require("./category-mark.enum"), exports);
18
19
  __exportStar(require("./category-type.enum"), exports);
@@ -6,4 +6,5 @@ var PageType;
6
6
  PageType["CATEGORY"] = "category";
7
7
  PageType["AI_MODEL"] = "ai_model";
8
8
  PageType["OTHER"] = "other";
9
+ PageType["BOT"] = "bot";
9
10
  })(PageType || (exports.PageType = PageType = {}));
@@ -11,10 +11,13 @@ exports.AiModelSchema = zod_1.z.object({
11
11
  tokenMultiplicator: zod_1.z.number(),
12
12
  order: zod_1.z.number(),
13
13
  canUse: zod_1.z.optional(zod_1.z.boolean()),
14
- icon: zod_1.z.nullable(zod_1.z.string()),
15
14
  status: zod_1.z.nativeEnum(constants_1.AI_MODEL_STATUS),
16
15
  contentType: zod_1.z.enum(Object.values(constants_1.AI_MODEL_CONTENT_TYPE)),
17
16
  features: zod_1.z.array(zod_1.z.nativeEnum(constants_1.AI_MODEL_FEATURE)),
17
+ iconVariants: zod_1.z.object({
18
+ svg: zod_1.z.string(),
19
+ png: zod_1.z.string(),
20
+ }),
18
21
  maxInputLength: zod_1.z.number(),
19
22
  createdAt: zod_1.z.date(),
20
23
  updatedAt: zod_1.z.date(),
@@ -13,6 +13,7 @@ exports.CategorySchema = zod_1.z.object({
13
13
  placeholder: zod_1.z.nullable(zod_1.z.string()),
14
14
  seoName: zod_1.z.string().min(3).max(16384),
15
15
  contentType: zod_1.z.enum(Object.values(constants_1.CATEGORY_CONTENT_TYPE)),
16
+ marks: zod_1.z.array(zod_1.z.nativeEnum(constants_1.CATEGORY_MARK)),
16
17
  createdAt: zod_1.z.date(),
17
18
  updatedAt: zod_1.z.date(),
18
19
  });
@@ -5,7 +5,10 @@ const constants_1 = require("../constants");
5
5
  const zod_1 = require("zod");
6
6
  exports.SubscriptionFeatureBaseSchema = zod_1.z.object({
7
7
  title: zod_1.z.string(),
8
- icon: zod_1.z.string(),
8
+ iconVariants: zod_1.z.object({
9
+ svg: zod_1.z.string(),
10
+ png: zod_1.z.string(),
11
+ }),
9
12
  type: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_FEATURE_TYPE),
10
13
  });
11
14
  exports.AiModelAccessFeatureSchema = exports.SubscriptionFeatureBaseSchema.extend({
@@ -0,0 +1,3 @@
1
+ export enum CATEGORY_MARK {
2
+ HIDDEN = 'hidden',
3
+ }
@@ -1,2 +1,3 @@
1
1
  export * from './category-content-type.enum';
2
+ export * from './category-mark.enum';
2
3
  export * from './category-type.enum';
@@ -2,4 +2,5 @@ export enum PageType {
2
2
  CATEGORY = 'category',
3
3
  AI_MODEL = 'ai_model',
4
4
  OTHER = 'other',
5
+ BOT = 'bot',
5
6
  }
@@ -14,10 +14,13 @@ export const AiModelSchema = z.object({
14
14
  tokenMultiplicator: z.number(),
15
15
  order: z.number(),
16
16
  canUse: z.optional(z.boolean()),
17
- icon: z.nullable(z.string()),
18
17
  status: z.nativeEnum(AI_MODEL_STATUS),
19
18
  contentType: z.enum(Object.values(AI_MODEL_CONTENT_TYPE) as [TAIModelContentTypeEnum]),
20
19
  features: z.array(z.nativeEnum(AI_MODEL_FEATURE)),
20
+ iconVariants: z.object({
21
+ svg: z.string(),
22
+ png: z.string(),
23
+ }),
21
24
  maxInputLength: z.number(),
22
25
  createdAt: z.date(),
23
26
  updatedAt: z.date(),
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { CATEGORY_CONTENT_TYPE, TCategoryContentTypeEnum } from '../constants';
2
+ import { CATEGORY_CONTENT_TYPE, CATEGORY_MARK, TCategoryContentTypeEnum } from '../constants';
3
3
 
4
4
  export const CategorySchema = z.object({
5
5
  uuid: z.string().uuid(),
@@ -11,7 +11,7 @@ export const CategorySchema = z.object({
11
11
  placeholder: z.nullable(z.string()),
12
12
  seoName: z.string().min(3).max(16384),
13
13
  contentType: z.enum(Object.values(CATEGORY_CONTENT_TYPE) as [TCategoryContentTypeEnum]),
14
-
14
+ marks: z.array(z.nativeEnum(CATEGORY_MARK)),
15
15
  createdAt: z.date(),
16
16
  updatedAt: z.date(),
17
17
  });
@@ -3,7 +3,10 @@ import { z } from 'zod';
3
3
 
4
4
  export const SubscriptionFeatureBaseSchema = z.object({
5
5
  title: z.string(),
6
- icon: z.string(),
6
+ iconVariants: z.object({
7
+ svg: z.string(),
8
+ png: z.string(),
9
+ }),
7
10
  type: z.nativeEnum(SUBSCRIPTION_FEATURE_TYPE),
8
11
  });
9
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.5.61",
3
+ "version": "0.5.64",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",