@purpleschool/gptbot-tools 0.0.1 → 0.0.3

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.
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./errors"), exports);
18
+ __exportStar(require("./models"), exports);
package/build/index.js ADDED
@@ -0,0 +1,19 @@
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("./common"), exports);
18
+ __exportStar(require("./paraphrase"), exports);
19
+ __exportStar(require("./tools"), exports);
@@ -18,3 +18,5 @@ __exportStar(require("./commands"), exports);
18
18
  __exportStar(require("./enums"), exports);
19
19
  __exportStar(require("./models"), exports);
20
20
  __exportStar(require("./queries"), exports);
21
+ __exportStar(require("./routes/paraphrase.amqp.routes"), exports);
22
+ __exportStar(require("./routes"), exports);
@@ -17,4 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./paraphrase-model.schema"), exports);
18
18
  __exportStar(require("./paraphrase-style.schema"), exports);
19
19
  __exportStar(require("./paraphrase-job.schema"), exports);
20
- __exportStar(require("./paraphrase-tool.schema"), exports);
20
+ __exportStar(require("./paraphrase-tool-config.schema"), exports);
@@ -6,6 +6,7 @@ exports.ParaphraseModelSchema = zod_1.z.object({
6
6
  uuid: zod_1.z.string(),
7
7
  name: zod_1.z.string(),
8
8
  icon: zod_1.z.string(),
9
+ price: zod_1.z.number(),
9
10
  aiModel: zod_1.z.string(),
10
11
  createdAt: zod_1.z.date(),
11
12
  updatedAt: zod_1.z.date(),
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ParaphraseToolSchema = void 0;
3
+ exports.ParaphraseToolConfigSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const paraphrase_style_schema_1 = require("./paraphrase-style.schema");
6
6
  const paraphrase_model_schema_1 = require("./paraphrase-model.schema");
7
- exports.ParaphraseToolSchema = zod_1.z.object({
7
+ exports.ParaphraseToolConfigSchema = zod_1.z.object({
8
8
  styles: zod_1.z.array(paraphrase_style_schema_1.ParaphraseStyleSchema),
9
9
  models: zod_1.z.array(paraphrase_model_schema_1.ParaphraseModelSchema),
10
+ maxSymbols: zod_1.z.number(),
10
11
  });
@@ -5,5 +5,5 @@ const command_response_schema_1 = require("../../common/models/command-response.
5
5
  const models_1 = require("../models");
6
6
  var GetParaphraseToolQuery;
7
7
  (function (GetParaphraseToolQuery) {
8
- GetParaphraseToolQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ParaphraseToolSchema);
8
+ GetParaphraseToolQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ParaphraseToolConfigSchema);
9
9
  })(GetParaphraseToolQuery || (exports.GetParaphraseToolQuery = GetParaphraseToolQuery = {}));
@@ -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("./paraphrase.amqp.routes"), exports);
@@ -15,4 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./enums"), exports);
18
- __exportStar(require("./tools.aqmp.routes"), exports);
18
+ __exportStar(require("./routes"), 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("./tools.aqmp.routes"), exports);
package/common/index.ts CHANGED
@@ -1 +1,2 @@
1
1
  export * from './errors';
2
+ export * from './models';
package/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from './common';
2
+ export * from './paraphrase';
3
+ export * from './tools';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {
@@ -2,3 +2,5 @@ export * from './commands';
2
2
  export * from './enums';
3
3
  export * from './models';
4
4
  export * from './queries';
5
+ export * from './routes/paraphrase.amqp.routes';
6
+ export * from './routes';
@@ -1,4 +1,4 @@
1
1
  export * from './paraphrase-model.schema';
2
2
  export * from './paraphrase-style.schema';
3
3
  export * from './paraphrase-job.schema';
4
- export * from './paraphrase-tool.schema';
4
+ export * from './paraphrase-tool-config.schema';
@@ -15,3 +15,5 @@ export const ParaphraseJobSchema = z.object({
15
15
  updatedAt: z.date(),
16
16
  completedAt: z.date().nullable(),
17
17
  });
18
+
19
+ export type ParaphraseJob = z.infer<typeof ParaphraseJobSchema>;
@@ -4,7 +4,10 @@ export const ParaphraseModelSchema = z.object({
4
4
  uuid: z.string(),
5
5
  name: z.string(),
6
6
  icon: z.string(),
7
+ price: z.number(),
7
8
  aiModel: z.string(),
8
9
  createdAt: z.date(),
9
10
  updatedAt: z.date(),
10
11
  });
12
+
13
+ export type ParaphraseModel = z.infer<typeof ParaphraseModelSchema>;
@@ -8,3 +8,5 @@ export const ParaphraseStyleSchema = z.object({
8
8
  createdAt: z.date(),
9
9
  updatedAt: z.date(),
10
10
  });
11
+
12
+ export type ParaphraseStyle = z.infer<typeof ParaphraseStyleSchema>;
@@ -2,7 +2,10 @@ import { z } from 'zod';
2
2
  import { ParaphraseStyleSchema } from './paraphrase-style.schema';
3
3
  import { ParaphraseModelSchema } from './paraphrase-model.schema';
4
4
 
5
- export const ParaphraseToolSchema = z.object({
5
+ export const ParaphraseToolConfigSchema = z.object({
6
6
  styles: z.array(ParaphraseStyleSchema),
7
7
  models: z.array(ParaphraseModelSchema),
8
+ maxSymbols: z.number(),
8
9
  });
10
+
11
+ export type ParaphraseTool = z.infer<typeof ParaphraseToolConfigSchema>;
@@ -1,8 +1,8 @@
1
1
  import { z } from 'zod';
2
2
  import { ICommandResponseSchema } from '../../common/models/command-response.schema';
3
- import { ParaphraseToolSchema } from '../models';
3
+ import { ParaphraseToolConfigSchema } from '../models';
4
4
 
5
5
  export namespace GetParaphraseToolQuery {
6
- export const ResponseSchema = ICommandResponseSchema(ParaphraseToolSchema);
6
+ export const ResponseSchema = ICommandResponseSchema(ParaphraseToolConfigSchema);
7
7
  export type Response = z.infer<typeof ResponseSchema>;
8
8
  }
@@ -0,0 +1 @@
1
+ export * from './paraphrase.amqp.routes';
package/tools/index.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  export * from './enums';
2
- export * from './tools.aqmp.routes';
2
+ export * from './routes';
@@ -0,0 +1 @@
1
+ export * from './tools.aqmp.routes';