@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.
- package/build/constants/category/enums/category-mark.enum.js +7 -0
- package/build/constants/category/enums/index.js +1 -0
- package/build/constants/page/enums/page-type.enum.js +1 -0
- package/build/models/ai-model.schema.js +4 -1
- package/build/models/category.schema.js +1 -0
- package/build/models/subscription-feature.schema.js +4 -1
- package/constants/category/enums/category-mark.enum.ts +3 -0
- package/constants/category/enums/index.ts +1 -0
- package/constants/page/enums/page-type.enum.ts +1 -0
- package/models/ai-model.schema.ts +4 -1
- package/models/category.schema.ts +2 -2
- package/models/subscription-feature.schema.ts +4 -1
- package/package.json +1 -1
|
@@ -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);
|
|
@@ -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
|
-
|
|
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({
|
|
@@ -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
|
});
|