@purpleschool/gptbot 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.
@@ -12,6 +12,9 @@ var FindPageCommand;
12
12
  data: zod_1.z.array(models_1.PageSchema),
13
13
  });
14
14
  FindPageCommand.ResponseByUUIDSchema = zod_1.z.object({
15
- data: models_1.PageSchema,
15
+ data: models_1.PageSchema.extend({
16
+ category: models_1.CategorySchema,
17
+ questions: zod_1.z.array(models_1.QuestionSchema),
18
+ }),
16
19
  });
17
20
  })(FindPageCommand || (exports.FindPageCommand = FindPageCommand = {}));
package/build/index.js CHANGED
@@ -15,3 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./constants"), exports);
18
+ __exportStar(require("./commands"), exports);
19
+ __exportStar(require("./api"), exports);
20
+ __exportStar(require("./models"), exports);
@@ -1,4 +1,4 @@
1
- import { PageSchema } from '../../models';
1
+ import { CategorySchema, PageSchema, QuestionSchema } from '../../models';
2
2
  import { z } from 'zod';
3
3
 
4
4
  export namespace FindPageCommand {
@@ -15,7 +15,10 @@ export namespace FindPageCommand {
15
15
  export type Response = z.infer<typeof ResponseSchema>;
16
16
 
17
17
  export const ResponseByUUIDSchema = z.object({
18
- data: PageSchema,
18
+ data: PageSchema.extend({
19
+ category: CategorySchema,
20
+ questions: z.array(QuestionSchema),
21
+ }),
19
22
  });
20
23
 
21
24
  export type ResponseByUUID = z.infer<typeof ResponseByUUIDSchema>;
package/index.ts CHANGED
@@ -1 +1,4 @@
1
1
  export * from './constants';
2
+ export * from './commands';
3
+ export * from './api';
4
+ export * from './models';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {