@purpleschool/gptbot 0.12.13 → 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.
- package/build/commands/tools/interior-design/interior-design.command.js +2 -0
- package/build/constants/index.js +1 -0
- package/build/constants/subscription/enums/subscription-feature-type.enum.js +1 -0
- package/build/constants/tool-interior-design/enums/index.js +17 -0
- package/build/constants/tool-interior-design/enums/interior-design-job-source.enum.js +8 -0
- package/build/constants/tool-interior-design/index.js +17 -0
- package/build/models/subscription-feature.schema.js +7 -1
- package/build/models/tools/interior-design/interior-design-job.schema.js +1 -0
- package/commands/tools/interior-design/interior-design.command.ts +2 -0
- package/constants/index.ts +1 -0
- package/constants/subscription/enums/subscription-feature-type.enum.ts +1 -0
- package/constants/tool-interior-design/enums/index.ts +1 -0
- package/constants/tool-interior-design/enums/interior-design-job-source.enum.ts +4 -0
- package/constants/tool-interior-design/index.ts +1 -0
- package/models/subscription-feature.schema.ts +8 -0
- package/models/tools/interior-design/interior-design-job.schema.ts +2 -1
- package/package.json +1 -1
|
@@ -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,
|
package/build/constants/index.js
CHANGED
|
@@ -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);
|
|
@@ -37,6 +37,7 @@ var SUBSCRIPTION_FEATURE_TYPE;
|
|
|
37
37
|
SUBSCRIPTION_FEATURE_TYPE["EDU_TASK_MODEL_ACCESS"] = "edu_task_model_access";
|
|
38
38
|
SUBSCRIPTION_FEATURE_TYPE["EDU_TASK_QUOTA"] = "edu_task_quota";
|
|
39
39
|
SUBSCRIPTION_FEATURE_TYPE["VIDEO_EDITOR_MODEL_ACCESS"] = "video_editor_model_access";
|
|
40
|
+
SUBSCRIPTION_FEATURE_TYPE["VIDEO_EDITOR_QUOTA"] = "video_editor_quota";
|
|
40
41
|
})(SUBSCRIPTION_FEATURE_TYPE || (exports.SUBSCRIPTION_FEATURE_TYPE = SUBSCRIPTION_FEATURE_TYPE = {}));
|
|
41
42
|
var SUBSCRIPTION_FEATURE_KIND;
|
|
42
43
|
(function (SUBSCRIPTION_FEATURE_KIND) {
|
|
@@ -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);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubscriptionFeatureSchema = exports.VideoEditorModelAccessFeatureSchema = exports.EduTaskQuotaFeatureSchema = exports.EduTaskModelAccessFeatureSchema = exports.MarketplaceCardQuotaFeatureSchema = exports.MarketplaceCardModelAccessFeatureSchema = exports.ParaphraseTypeAccessFeatureSchema = exports.SpellCorrectorModelAccessFeatureSchema = exports.SpellCorrectorQuotaFeatureSchema = exports.InteriorDesignModelAccessFeatureSchema = exports.InteriorDesignQuotaFeatureSchema = exports.ImageEditorModelAccessFeatureSchema = exports.ImageEditorQuotaFeatureSchema = exports.WriterModelAccessFeatureSchema = exports.WriterQuotaFeatureSchema = exports.MusicModelAccessFeatureSchema = exports.MusicQuotaFeatureSchema = exports.PresentationQuotaFeatureSchema = exports.VideoModelAccessFeatureSchema = exports.VideoQuotaFeatureSchema = exports.STTQuotaFeatureSchema = exports.STTModelAccessFeatureSchema = exports.TTSQuotaFeatureSchema = exports.ImageGenerationQuotaFeatureSchema = exports.TtsModelAccessFeatureSchema = exports.AdvancedToolsAccessFeatureSchema = exports.WebSearchFeatureSchema = exports.ExtendedContextFeatureSchema = exports.MaxInputLengthFeatureSchema = exports.RequestsQuotaFeatureSchema = exports.ImageGenerationAccessFeatureSchema = exports.AiModelAccessFeatureSchema = exports.CarryoverBalanceFeatureSchema = exports.TokensFeatureSchema = exports.SubscriptionFeatureBaseSchema = void 0;
|
|
3
|
+
exports.SubscriptionFeatureSchema = exports.VideoEditorQuotaFeatureSchema = exports.VideoEditorModelAccessFeatureSchema = exports.EduTaskQuotaFeatureSchema = exports.EduTaskModelAccessFeatureSchema = exports.MarketplaceCardQuotaFeatureSchema = exports.MarketplaceCardModelAccessFeatureSchema = exports.ParaphraseTypeAccessFeatureSchema = exports.SpellCorrectorModelAccessFeatureSchema = exports.SpellCorrectorQuotaFeatureSchema = exports.InteriorDesignModelAccessFeatureSchema = exports.InteriorDesignQuotaFeatureSchema = exports.ImageEditorModelAccessFeatureSchema = exports.ImageEditorQuotaFeatureSchema = exports.WriterModelAccessFeatureSchema = exports.WriterQuotaFeatureSchema = exports.MusicModelAccessFeatureSchema = exports.MusicQuotaFeatureSchema = exports.PresentationQuotaFeatureSchema = exports.VideoModelAccessFeatureSchema = exports.VideoQuotaFeatureSchema = exports.STTQuotaFeatureSchema = exports.STTModelAccessFeatureSchema = exports.TTSQuotaFeatureSchema = exports.ImageGenerationQuotaFeatureSchema = exports.TtsModelAccessFeatureSchema = exports.AdvancedToolsAccessFeatureSchema = exports.WebSearchFeatureSchema = exports.ExtendedContextFeatureSchema = exports.MaxInputLengthFeatureSchema = exports.RequestsQuotaFeatureSchema = exports.ImageGenerationAccessFeatureSchema = exports.AiModelAccessFeatureSchema = exports.CarryoverBalanceFeatureSchema = exports.TokensFeatureSchema = exports.SubscriptionFeatureBaseSchema = void 0;
|
|
4
4
|
const constants_1 = require("../constants");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.SubscriptionFeatureBaseSchema = zod_1.z.object({
|
|
@@ -205,6 +205,11 @@ exports.VideoEditorModelAccessFeatureSchema = exports.SubscriptionFeatureBaseSch
|
|
|
205
205
|
isAvailable: zod_1.z.boolean(),
|
|
206
206
|
modelId: zod_1.z.string(),
|
|
207
207
|
});
|
|
208
|
+
exports.VideoEditorQuotaFeatureSchema = exports.SubscriptionFeatureBaseSchema.extend({
|
|
209
|
+
kind: zod_1.z.literal(constants_1.SUBSCRIPTION_FEATURE_KIND.VIDEO_EDITOR),
|
|
210
|
+
type: zod_1.z.literal(constants_1.SUBSCRIPTION_FEATURE_TYPE.VIDEO_EDITOR_QUOTA),
|
|
211
|
+
value: zod_1.z.number(),
|
|
212
|
+
});
|
|
208
213
|
exports.SubscriptionFeatureSchema = zod_1.z.union([
|
|
209
214
|
exports.AiModelAccessFeatureSchema,
|
|
210
215
|
exports.RequestsQuotaFeatureSchema,
|
|
@@ -238,5 +243,6 @@ exports.SubscriptionFeatureSchema = zod_1.z.union([
|
|
|
238
243
|
exports.MarketplaceCardModelAccessFeatureSchema,
|
|
239
244
|
exports.EduTaskQuotaFeatureSchema,
|
|
240
245
|
exports.EduTaskModelAccessFeatureSchema,
|
|
246
|
+
exports.VideoEditorQuotaFeatureSchema,
|
|
241
247
|
exports.VideoEditorModelAccessFeatureSchema,
|
|
242
248
|
]);
|
|
@@ -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
|
|
package/constants/index.ts
CHANGED
|
@@ -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';
|
|
@@ -33,6 +33,7 @@ export enum SUBSCRIPTION_FEATURE_TYPE {
|
|
|
33
33
|
EDU_TASK_MODEL_ACCESS = 'edu_task_model_access',
|
|
34
34
|
EDU_TASK_QUOTA = 'edu_task_quota',
|
|
35
35
|
VIDEO_EDITOR_MODEL_ACCESS = 'video_editor_model_access',
|
|
36
|
+
VIDEO_EDITOR_QUOTA = 'video_editor_quota',
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
export enum SUBSCRIPTION_FEATURE_KIND {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './interior-design-job-source.enum';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './enums';
|
|
@@ -278,6 +278,13 @@ export const VideoEditorModelAccessFeatureSchema = SubscriptionFeatureBaseSchema
|
|
|
278
278
|
});
|
|
279
279
|
export type VideoEditorModelAccessFeature = z.infer<typeof VideoEditorModelAccessFeatureSchema>;
|
|
280
280
|
|
|
281
|
+
export const VideoEditorQuotaFeatureSchema = SubscriptionFeatureBaseSchema.extend({
|
|
282
|
+
kind: z.literal(SUBSCRIPTION_FEATURE_KIND.VIDEO_EDITOR),
|
|
283
|
+
type: z.literal(SUBSCRIPTION_FEATURE_TYPE.VIDEO_EDITOR_QUOTA),
|
|
284
|
+
value: z.number(),
|
|
285
|
+
});
|
|
286
|
+
export type VideoEditorQuotaFeature = z.infer<typeof VideoEditorQuotaFeatureSchema>;
|
|
287
|
+
|
|
281
288
|
export const SubscriptionFeatureSchema = z.union([
|
|
282
289
|
AiModelAccessFeatureSchema,
|
|
283
290
|
RequestsQuotaFeatureSchema,
|
|
@@ -311,6 +318,7 @@ export const SubscriptionFeatureSchema = z.union([
|
|
|
311
318
|
MarketplaceCardModelAccessFeatureSchema,
|
|
312
319
|
EduTaskQuotaFeatureSchema,
|
|
313
320
|
EduTaskModelAccessFeatureSchema,
|
|
321
|
+
VideoEditorQuotaFeatureSchema,
|
|
314
322
|
VideoEditorModelAccessFeatureSchema,
|
|
315
323
|
]);
|
|
316
324
|
|
|
@@ -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({
|