@purpleschool/gptbot-tools 0.2.7-stage-2 → 0.2.8-stage-2

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.
@@ -8,6 +8,7 @@ const enums_1 = require("../enums");
8
8
  var CreatePresentationCommand;
9
9
  (function (CreatePresentationCommand) {
10
10
  CreatePresentationCommand.RequestSchema = zod_1.z.object({
11
+ locale: common_1.LocaleSchema,
11
12
  userId: zod_1.z.string().uuid().nullable().optional(),
12
13
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
13
14
  templateId: zod_1.z.string().uuid(),
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetTTSConfigQuery = void 0;
4
- const command_response_schema_1 = require("../../common/models/command-response.schema");
4
+ const common_1 = require("../../common");
5
5
  const models_1 = require("../models");
6
6
  var GetTTSConfigQuery;
7
7
  (function (GetTTSConfigQuery) {
8
- GetTTSConfigQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.TTSConfigSchema);
8
+ GetTTSConfigQuery.RequestSchema = common_1.LocaleRequestSchema;
9
+ GetTTSConfigQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.TTSConfigSchema);
9
10
  })(GetTTSConfigQuery || (exports.GetTTSConfigQuery = GetTTSConfigQuery = {}));
@@ -7,6 +7,7 @@ const models_1 = require("../models");
7
7
  var CreateWriterDocumentCommand;
8
8
  (function (CreateWriterDocumentCommand) {
9
9
  CreateWriterDocumentCommand.RequestSchema = zod_1.z.object({
10
+ locale: common_1.LocaleSchema,
10
11
  userId: zod_1.z.string().uuid().nullable().optional(),
11
12
  unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
12
13
  prompt: zod_1.z.string(),
@@ -3,11 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GenerateWriterDocumentOutlineCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const command_response_schema_1 = require("../../common/models/command-response.schema");
6
+ const locale_schema_1 = require("../../common/models/locale.schema");
6
7
  const models_1 = require("../models");
7
8
  var GenerateWriterDocumentOutlineCommand;
8
9
  (function (GenerateWriterDocumentOutlineCommand) {
9
10
  GenerateWriterDocumentOutlineCommand.RequestSchema = zod_1.z.object({
10
11
  uuid: zod_1.z.string().uuid(),
12
+ locale: locale_schema_1.LocaleSchema,
11
13
  numPages: zod_1.z.number(),
12
14
  description: zod_1.z.string().nullable().optional(),
13
15
  userId: zod_1.z.string().uuid().nullable().optional(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.2.7-stage-2",
3
+ "version": "0.2.8-stage-2",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {
@@ -1,10 +1,11 @@
1
1
  import { z } from 'zod';
2
- import { ICommandResponseSchema } from '../../common';
2
+ import { ICommandResponseSchema, LocaleSchema } from '../../common';
3
3
  import { PresentationSchema } from '../models';
4
4
  import { PRESENTATION_TARGET_AUDIENCE } from '../enums';
5
5
 
6
6
  export namespace CreatePresentationCommand {
7
7
  export const RequestSchema = z.object({
8
+ locale: LocaleSchema,
8
9
  userId: z.string().uuid().nullable().optional(),
9
10
  unregisteredUserId: z.string().uuid().nullable().optional(),
10
11
  templateId: z.string().uuid(),
@@ -1,8 +1,11 @@
1
1
  import { z } from 'zod';
2
- import { ICommandResponseSchema } from '../../common/models/command-response.schema';
2
+ import { ICommandResponseSchema, LocaleRequestSchema } from '../../common';
3
3
  import { TTSConfigSchema } from '../models';
4
4
 
5
5
  export namespace GetTTSConfigQuery {
6
+ export const RequestSchema = LocaleRequestSchema;
7
+ export type Request = z.infer<typeof RequestSchema>;
8
+
6
9
  export const ResponseSchema = ICommandResponseSchema(TTSConfigSchema);
7
10
  export type Response = z.infer<typeof ResponseSchema>;
8
11
  }
@@ -1,9 +1,10 @@
1
1
  import { z } from 'zod';
2
- import { ICommandResponseSchema } from '../../common';
2
+ import { ICommandResponseSchema, LocaleSchema } from '../../common';
3
3
  import { WriterDocumentSchema } from '../models';
4
4
 
5
5
  export namespace CreateWriterDocumentCommand {
6
6
  export const RequestSchema = z.object({
7
+ locale: LocaleSchema,
7
8
  userId: z.string().uuid().nullable().optional(),
8
9
  unregisteredUserId: z.string().uuid().nullable().optional(),
9
10
  prompt: z.string(),
@@ -1,10 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  import { ICommandResponseSchema } from '../../common/models/command-response.schema';
3
+ import { LocaleSchema } from '../../common/models/locale.schema';
3
4
  import { WriterDocumentSchema } from '../models';
4
5
 
5
6
  export namespace GenerateWriterDocumentOutlineCommand {
6
7
  export const RequestSchema = z.object({
7
8
  uuid: z.string().uuid(),
9
+ locale: LocaleSchema,
8
10
  numPages: z.number(),
9
11
  description: z.string().nullable().optional(),
10
12
  userId: z.string().uuid().nullable().optional(),