@purpleschool/gptbot 0.18.0-stage-2 → 0.18.1

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,8 @@ export declare namespace CreatePhotoSessionStyleCommand {
24
24
  code: z.ZodString;
25
25
  title: z.ZodString;
26
26
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ createdAt: z.ZodCoercedDate<unknown>;
28
+ updatedAt: z.ZodCoercedDate<unknown>;
27
29
  references: z.ZodArray<z.ZodObject<{
28
30
  uuid: z.ZodUUID;
29
31
  styleId: z.ZodUUID;
@@ -32,9 +34,8 @@ export declare namespace CreatePhotoSessionStyleCommand {
32
34
  order: z.ZodNumber;
33
35
  createdAt: z.ZodCoercedDate<unknown>;
34
36
  updatedAt: z.ZodCoercedDate<unknown>;
37
+ systemPrompt: z.ZodString;
35
38
  }, z.core.$strip>>;
36
- createdAt: z.ZodCoercedDate<unknown>;
37
- updatedAt: z.ZodCoercedDate<unknown>;
38
39
  }, z.core.$strip>;
39
40
  }, z.core.$strip>;
40
41
  type Response = z.infer<typeof ResponseSchema>;
@@ -19,6 +19,6 @@ var CreatePhotoSessionStyleCommand;
19
19
  references: zod_1.z.array(exports.CreatePhotoSessionStyleReferenceSchema).max(6),
20
20
  });
21
21
  CreatePhotoSessionStyleCommand.ResponseSchema = zod_1.z.object({
22
- data: models_1.PhotoSessionStyleSchema,
22
+ data: models_1.AdminPhotoSessionStyleSchema,
23
23
  });
24
24
  })(CreatePhotoSessionStyleCommand || (exports.CreatePhotoSessionStyleCommand = CreatePhotoSessionStyleCommand = {}));
@@ -7,4 +7,28 @@ export declare namespace ListPhotoSessionStylesCommand {
7
7
  locale: z.ZodOptional<z.ZodEnum<typeof LOCALE>>;
8
8
  }, z.core.$strip>;
9
9
  type RequestQuery = z.infer<typeof RequestQuerySchema>;
10
+ const ResponseSchema: z.ZodObject<{
11
+ data: z.ZodArray<z.ZodObject<{
12
+ uuid: z.ZodUUID;
13
+ code: z.ZodString;
14
+ title: z.ZodString;
15
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ createdAt: z.ZodCoercedDate<unknown>;
17
+ updatedAt: z.ZodCoercedDate<unknown>;
18
+ references: z.ZodArray<z.ZodObject<{
19
+ uuid: z.ZodUUID;
20
+ styleId: z.ZodUUID;
21
+ photoUrl: z.ZodString;
22
+ thumbnailUrl: z.ZodString;
23
+ order: z.ZodNumber;
24
+ createdAt: z.ZodCoercedDate<unknown>;
25
+ updatedAt: z.ZodCoercedDate<unknown>;
26
+ systemPrompt: z.ZodString;
27
+ }, z.core.$strip>>;
28
+ }, z.core.$strip>>;
29
+ page: z.ZodNumber;
30
+ totalPages: z.ZodNumber;
31
+ total: z.ZodNumber;
32
+ }, z.core.$strip>;
33
+ type Response = z.infer<typeof ResponseSchema>;
10
34
  }
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ListPhotoSessionStylesCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
6
+ const models_1 = require("../../../../models");
6
7
  var ListPhotoSessionStylesCommand;
7
8
  (function (ListPhotoSessionStylesCommand) {
8
9
  ListPhotoSessionStylesCommand.RequestQuerySchema = zod_1.z.object({
@@ -10,4 +11,10 @@ var ListPhotoSessionStylesCommand;
10
11
  offset: zod_1.z.coerce.number().int().min(0).optional(),
11
12
  locale: zod_1.z.enum(rugpt_lib_common_1.LOCALE).optional(),
12
13
  });
14
+ ListPhotoSessionStylesCommand.ResponseSchema = zod_1.z.object({
15
+ data: zod_1.z.array(models_1.AdminPhotoSessionStyleSchema),
16
+ page: zod_1.z.number(),
17
+ totalPages: zod_1.z.number(),
18
+ total: zod_1.z.number(),
19
+ });
13
20
  })(ListPhotoSessionStylesCommand || (exports.ListPhotoSessionStylesCommand = ListPhotoSessionStylesCommand = {}));
@@ -23,6 +23,8 @@ export declare namespace UpdatePhotoSessionStyleCommand {
23
23
  code: z.ZodString;
24
24
  title: z.ZodString;
25
25
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ createdAt: z.ZodCoercedDate<unknown>;
27
+ updatedAt: z.ZodCoercedDate<unknown>;
26
28
  references: z.ZodArray<z.ZodObject<{
27
29
  uuid: z.ZodUUID;
28
30
  styleId: z.ZodUUID;
@@ -31,9 +33,8 @@ export declare namespace UpdatePhotoSessionStyleCommand {
31
33
  order: z.ZodNumber;
32
34
  createdAt: z.ZodCoercedDate<unknown>;
33
35
  updatedAt: z.ZodCoercedDate<unknown>;
36
+ systemPrompt: z.ZodString;
34
37
  }, z.core.$strip>>;
35
- createdAt: z.ZodCoercedDate<unknown>;
36
- updatedAt: z.ZodCoercedDate<unknown>;
37
38
  }, z.core.$strip>;
38
39
  }, z.core.$strip>;
39
40
  type Response = z.infer<typeof ResponseSchema>;
@@ -18,6 +18,6 @@ var UpdatePhotoSessionStyleCommand;
18
18
  references: zod_1.z.array(create_photo_session_style_command_1.CreatePhotoSessionStyleReferenceSchema).max(6).optional(),
19
19
  });
20
20
  UpdatePhotoSessionStyleCommand.ResponseSchema = zod_1.z.object({
21
- data: models_1.PhotoSessionStyleSchema,
21
+ data: models_1.AdminPhotoSessionStyleSchema,
22
22
  });
23
23
  })(UpdatePhotoSessionStyleCommand || (exports.UpdatePhotoSessionStyleCommand = UpdatePhotoSessionStyleCommand = {}));
@@ -27,3 +27,32 @@ export declare const PhotoSessionStyleSchema: z.ZodObject<{
27
27
  updatedAt: z.ZodCoercedDate<unknown>;
28
28
  }, z.core.$strip>;
29
29
  export type PhotoSessionStyle = z.infer<typeof PhotoSessionStyleSchema>;
30
+ export declare const AdminPhotoSessionStyleReferenceSchema: z.ZodObject<{
31
+ uuid: z.ZodUUID;
32
+ styleId: z.ZodUUID;
33
+ photoUrl: z.ZodString;
34
+ thumbnailUrl: z.ZodString;
35
+ order: z.ZodNumber;
36
+ createdAt: z.ZodCoercedDate<unknown>;
37
+ updatedAt: z.ZodCoercedDate<unknown>;
38
+ systemPrompt: z.ZodString;
39
+ }, z.core.$strip>;
40
+ export declare const AdminPhotoSessionStyleSchema: z.ZodObject<{
41
+ uuid: z.ZodUUID;
42
+ code: z.ZodString;
43
+ title: z.ZodString;
44
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
45
+ createdAt: z.ZodCoercedDate<unknown>;
46
+ updatedAt: z.ZodCoercedDate<unknown>;
47
+ references: z.ZodArray<z.ZodObject<{
48
+ uuid: z.ZodUUID;
49
+ styleId: z.ZodUUID;
50
+ photoUrl: z.ZodString;
51
+ thumbnailUrl: z.ZodString;
52
+ order: z.ZodNumber;
53
+ createdAt: z.ZodCoercedDate<unknown>;
54
+ updatedAt: z.ZodCoercedDate<unknown>;
55
+ systemPrompt: z.ZodString;
56
+ }, z.core.$strip>>;
57
+ }, z.core.$strip>;
58
+ export type AdminPhotoSessionStyle = z.infer<typeof AdminPhotoSessionStyleSchema>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PhotoSessionStyleSchema = exports.PhotoSessionStyleReferenceSchema = void 0;
3
+ exports.AdminPhotoSessionStyleSchema = exports.AdminPhotoSessionStyleReferenceSchema = exports.PhotoSessionStyleSchema = exports.PhotoSessionStyleReferenceSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  exports.PhotoSessionStyleReferenceSchema = zod_1.z.object({
6
6
  uuid: zod_1.z.uuid(),
@@ -20,3 +20,9 @@ exports.PhotoSessionStyleSchema = zod_1.z.object({
20
20
  createdAt: zod_1.z.coerce.date(),
21
21
  updatedAt: zod_1.z.coerce.date(),
22
22
  });
23
+ exports.AdminPhotoSessionStyleReferenceSchema = exports.PhotoSessionStyleReferenceSchema.extend({
24
+ systemPrompt: zod_1.z.string(),
25
+ });
26
+ exports.AdminPhotoSessionStyleSchema = exports.PhotoSessionStyleSchema.extend({
27
+ references: zod_1.z.array(exports.AdminPhotoSessionStyleReferenceSchema),
28
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.18.0-stage-2",
3
+ "version": "0.18.1",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",