@purpleschool/gptbot-tools 0.1.6 → 0.1.8
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/account-merge/commands/index.ts +1 -0
- package/account-merge/commands/transfer-user-jobs.command.ts +13 -0
- package/account-merge/index.ts +2 -0
- package/account-merge/routes/account-merge.amqp.routes.ts +3 -0
- package/account-merge/routes/index.ts +1 -0
- package/build/account-merge/commands/index.js +17 -0
- package/build/account-merge/commands/transfer-user-jobs.command.js +13 -0
- package/build/account-merge/index.js +18 -0
- package/build/account-merge/routes/account-merge.amqp.routes.js +6 -0
- package/build/account-merge/routes/index.js +17 -0
- package/build/index.js +3 -0
- package/build/spell-corrector/models/spell-corrector-model.schema.js +2 -0
- package/index.ts +3 -0
- package/package.json +1 -1
- package/spell-corrector/models/spell-corrector-model.schema.ts +3 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './transfer-user-jobs.command';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ICommandResponseSchema } from '../../common/models/command-response.schema';
|
|
3
|
+
|
|
4
|
+
export namespace TransferUserJobsCommand {
|
|
5
|
+
export const RequestSchema = z.object({
|
|
6
|
+
sourceUserId: z.string().uuid(),
|
|
7
|
+
targetUserId: z.string().uuid(),
|
|
8
|
+
});
|
|
9
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
10
|
+
|
|
11
|
+
export const ResponseSchema = ICommandResponseSchema(z.boolean());
|
|
12
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './account-merge.amqp.routes';
|
|
@@ -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("./transfer-user-jobs.command"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransferUserJobsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
var TransferUserJobsCommand;
|
|
7
|
+
(function (TransferUserJobsCommand) {
|
|
8
|
+
TransferUserJobsCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
sourceUserId: zod_1.z.string().uuid(),
|
|
10
|
+
targetUserId: zod_1.z.string().uuid(),
|
|
11
|
+
});
|
|
12
|
+
TransferUserJobsCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.boolean());
|
|
13
|
+
})(TransferUserJobsCommand || (exports.TransferUserJobsCommand = TransferUserJobsCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
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("./routes"), exports);
|
|
18
|
+
__exportStar(require("./commands"), exports);
|
|
@@ -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("./account-merge.amqp.routes"), exports);
|
package/build/index.js
CHANGED
|
@@ -38,6 +38,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.ToolService = void 0;
|
|
40
40
|
__exportStar(require("./common"), exports);
|
|
41
|
+
__exportStar(require("./account-merge"), exports);
|
|
41
42
|
__exportStar(require("./paraphrase"), exports);
|
|
42
43
|
__exportStar(require("./tools"), exports);
|
|
43
44
|
__exportStar(require("./stt"), exports);
|
|
@@ -75,6 +76,7 @@ const marketplaceCard = __importStar(require("./marketplace-card"));
|
|
|
75
76
|
const analytics = __importStar(require("./analytics"));
|
|
76
77
|
const solvingEduTask = __importStar(require("./solving-edu-task"));
|
|
77
78
|
const spellCorrector = __importStar(require("./spell-corrector"));
|
|
79
|
+
const accountMerge = __importStar(require("./account-merge"));
|
|
78
80
|
var ToolService;
|
|
79
81
|
(function (ToolService) {
|
|
80
82
|
ToolService.Common = common;
|
|
@@ -96,4 +98,5 @@ var ToolService;
|
|
|
96
98
|
ToolService.Analytics = analytics;
|
|
97
99
|
ToolService.SolvingEduTask = solvingEduTask;
|
|
98
100
|
ToolService.SpellCorrector = spellCorrector;
|
|
101
|
+
ToolService.AccountMerge = accountMerge;
|
|
99
102
|
})(ToolService || (exports.ToolService = ToolService = {}));
|
|
@@ -6,7 +6,9 @@ const common_1 = require("../../common");
|
|
|
6
6
|
exports.SpellCorrectorModelSchema = zod_1.z.object({
|
|
7
7
|
uuid: zod_1.z.string(),
|
|
8
8
|
title: zod_1.z.string(),
|
|
9
|
+
description: zod_1.z.string(),
|
|
9
10
|
icon: zod_1.z.string(),
|
|
11
|
+
icons: common_1.IconVariantsSchema,
|
|
10
12
|
price: zod_1.z.number(),
|
|
11
13
|
aiModel: zod_1.z.string(),
|
|
12
14
|
reasoningEffort: zod_1.z.nativeEnum(common_1.REASONING_EFFORT).nullable().optional(),
|
package/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './common';
|
|
2
|
+
export * from './account-merge';
|
|
2
3
|
export * from './paraphrase';
|
|
3
4
|
export * from './tools';
|
|
4
5
|
export * from './stt';
|
|
@@ -37,6 +38,7 @@ import * as marketplaceCard from './marketplace-card';
|
|
|
37
38
|
import * as analytics from './analytics';
|
|
38
39
|
import * as solvingEduTask from './solving-edu-task';
|
|
39
40
|
import * as spellCorrector from './spell-corrector';
|
|
41
|
+
import * as accountMerge from './account-merge';
|
|
40
42
|
|
|
41
43
|
export namespace ToolService {
|
|
42
44
|
export import Common = common;
|
|
@@ -58,4 +60,5 @@ export namespace ToolService {
|
|
|
58
60
|
export import Analytics = analytics;
|
|
59
61
|
export import SolvingEduTask = solvingEduTask;
|
|
60
62
|
export import SpellCorrector = spellCorrector;
|
|
63
|
+
export import AccountMerge = accountMerge;
|
|
61
64
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { REASONING_EFFORT } from '../../common';
|
|
2
|
+
import { IconVariantsSchema, REASONING_EFFORT } from '../../common';
|
|
3
3
|
|
|
4
4
|
export const SpellCorrectorModelSchema = z.object({
|
|
5
5
|
uuid: z.string(),
|
|
6
6
|
title: z.string(),
|
|
7
|
+
description: z.string(),
|
|
7
8
|
icon: z.string(),
|
|
9
|
+
icons: IconVariantsSchema,
|
|
8
10
|
price: z.number(),
|
|
9
11
|
aiModel: z.string(),
|
|
10
12
|
reasoningEffort: z.nativeEnum(REASONING_EFFORT).nullable().optional(),
|