@purpleschool/gptbot 0.11.7 → 0.11.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.
@@ -24,6 +24,5 @@ export const TEAM_ACCOUNT_ROUTES = {
24
24
  ADMIN_FIND_BY_NAME: 'admin/find',
25
25
  ADMIN_GET_CURRENT_SUBSCRIPTIONS: (teamAccountId: string) =>
26
26
  `admin/subscriptions/current/${teamAccountId}`,
27
- ADMIN_GET_PAYMENT_HISTORY: (teamAccountId: string) =>
28
- `admin/payments/history/${teamAccountId}`,
27
+ ADMIN_GET_PAYMENT_HISTORY: (teamAccountId: string) => `admin/payments/history/${teamAccountId}`,
29
28
  } as const;
@@ -11,7 +11,6 @@ var CreatePresentationCommand;
11
11
  slideCount: zod_1.z.number().min(1).max(20),
12
12
  templateId: zod_1.z.string().uuid(),
13
13
  languageId: zod_1.z.string().uuid(),
14
- titlePage: presentation_1.PresentationTitlePageSchema.optional().nullable(),
15
14
  targetAudience: zod_1.z.nativeEnum(constants_1.PRESENTATION_TARGET_AUDIENCE).optional(),
16
15
  });
17
16
  CreatePresentationCommand.ResponseSchema = zod_1.z.object({
@@ -8,6 +8,9 @@ var GeneratePresentationSlidesCommand;
8
8
  GeneratePresentationSlidesCommand.RequestParamsSchema = zod_1.z.object({
9
9
  uuid: zod_1.z.string().uuid(),
10
10
  });
11
+ GeneratePresentationSlidesCommand.RequestSchema = zod_1.z.object({
12
+ titlePage: presentation_1.PresentationTitlePageSchema.optional().nullable(),
13
+ });
11
14
  GeneratePresentationSlidesCommand.ResponseSchema = zod_1.z.object({
12
15
  data: presentation_1.PresentationSchema,
13
16
  });
@@ -1,8 +1,5 @@
1
1
  import { z } from 'zod';
2
- import {
3
- PresentationSchema,
4
- PresentationTitlePageSchema,
5
- } from '../../../models/tools/presentation';
2
+ import { PresentationSchema } from '../../../models/tools/presentation';
6
3
  import { PRESENTATION_TARGET_AUDIENCE } from '../../../constants';
7
4
 
8
5
  export namespace CreatePresentationCommand {
@@ -11,7 +8,6 @@ export namespace CreatePresentationCommand {
11
8
  slideCount: z.number().min(1).max(20),
12
9
  templateId: z.string().uuid(),
13
10
  languageId: z.string().uuid(),
14
- titlePage: PresentationTitlePageSchema.optional().nullable(),
15
11
  targetAudience: z.nativeEnum(PRESENTATION_TARGET_AUDIENCE).optional(),
16
12
  });
17
13
 
@@ -1,11 +1,20 @@
1
1
  import { z } from 'zod';
2
- import { PresentationSchema } from '../../../models/tools/presentation';
2
+ import {
3
+ PresentationSchema,
4
+ PresentationTitlePageSchema,
5
+ } from '../../../models/tools/presentation';
3
6
 
4
7
  export namespace GeneratePresentationSlidesCommand {
5
8
  export const RequestParamsSchema = z.object({
6
9
  uuid: z.string().uuid(),
7
10
  });
8
11
 
12
+ export type Request = z.infer<typeof RequestParamsSchema>;
13
+
14
+ export const RequestSchema = z.object({
15
+ titlePage: PresentationTitlePageSchema.optional().nullable(),
16
+ });
17
+
9
18
  export type RequestParams = z.infer<typeof RequestParamsSchema>;
10
19
 
11
20
  export const ResponseSchema = z.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.11.7",
3
+ "version": "0.11.8",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",