@purpleschool/gptbot-tools 0.2.80-stage-2 → 0.2.80

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.
Files changed (39) hide show
  1. package/build/image-generation/commands/execute-image-generation.command.d.ts +38 -131
  2. package/build/image-generation/commands/execute-image-generation.command.js +1 -2
  3. package/build/image-generation/commands/forward-image-generation-job.command.d.ts +2 -15
  4. package/build/image-generation/commands/forward-image-generation-job.command.js +0 -1
  5. package/build/image-generation/commands/retry-image-generation-job.command.d.ts +2 -14
  6. package/build/image-generation/commands/save-image-generation-job.command.d.ts +2 -14
  7. package/build/image-generation/commands/set-reaction-to-image-generation-job.command.d.ts +2 -14
  8. package/build/image-generation/commands/update-image-generation-job-favorite.command.d.ts +2 -14
  9. package/build/image-generation/commands/update-image-generation-job-title.command.d.ts +2 -14
  10. package/build/image-generation/commands/update-published-status-image-generation-jobs.command.d.ts +2 -14
  11. package/build/image-generation/enums/index.d.ts +0 -1
  12. package/build/image-generation/enums/index.js +0 -1
  13. package/build/image-generation/models/image-generation-job.schema.d.ts +3 -9
  14. package/build/image-generation/models/image-generation-job.schema.js +3 -9
  15. package/build/image-generation/models/index.d.ts +0 -1
  16. package/build/image-generation/models/index.js +0 -1
  17. package/build/image-generation/queries/find-image-generation-job-by-id.query.d.ts +38 -130
  18. package/build/image-generation/queries/find-image-generation-job-by-id.query.js +1 -1
  19. package/build/image-generation/queries/find-image-generation-jobs.query.d.ts +40 -133
  20. package/build/image-generation/queries/find-image-generation-jobs.query.js +2 -3
  21. package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +0 -4
  22. package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +0 -1
  23. package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +0 -3
  24. package/build/photo-sessions/enums/photo-session-strategy.enum.d.ts +1 -1
  25. package/build/photo-sessions/enums/photo-session-strategy.enum.js +1 -1
  26. package/build/photo-sessions/models/photo-session-config.schema.d.ts +2 -2
  27. package/build/photo-sessions/models/photo-session-config.schema.js +1 -1
  28. package/build/photo-sessions/models/photo-session-style.schema.d.ts +0 -30
  29. package/build/photo-sessions/models/photo-session-style.schema.js +1 -10
  30. package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +0 -2
  31. package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +0 -2
  32. package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +4 -4
  33. package/build/tools/models/global-tools-config.schema.d.ts +2 -2
  34. package/build/tools/queries/get-global-tools-config.query.d.ts +4 -4
  35. package/package.json +1 -1
  36. package/build/image-generation/enums/image-generation-group-status.enum.d.ts +0 -6
  37. package/build/image-generation/enums/image-generation-group-status.enum.js +0 -10
  38. package/build/image-generation/models/image-generation-group.schema.d.ts +0 -95
  39. package/build/image-generation/models/image-generation-group.schema.js +0 -33
@@ -19,7 +19,6 @@ export declare namespace FindPhotoSessionStylesQuery {
19
19
  styleId: string;
20
20
  photoUrl: string;
21
21
  thumbnailUrl: string;
22
- systemPrompt: string;
23
22
  order: number;
24
23
  createdAt: Date;
25
24
  updatedAt: Date;
@@ -41,7 +40,6 @@ export declare namespace FindPhotoSessionStylesQuery {
41
40
  styleId: string;
42
41
  photoUrl: string;
43
42
  thumbnailUrl: string;
44
- systemPrompt: string;
45
43
  order: number;
46
44
  createdAt: Date;
47
45
  updatedAt: Date;
@@ -54,8 +54,6 @@ export declare namespace GetPhotoSessionsConfigQuery {
54
54
  code: string;
55
55
  title: string;
56
56
  description?: string | null | undefined;
57
- createdAt: Date;
58
- updatedAt: Date;
59
57
  references: {
60
58
  uuid: string;
61
59
  styleId: string;
@@ -65,6 +63,8 @@ export declare namespace GetPhotoSessionsConfigQuery {
65
63
  createdAt: Date;
66
64
  updatedAt: Date;
67
65
  }[];
66
+ createdAt: Date;
67
+ updatedAt: Date;
68
68
  }[];
69
69
  looks: {
70
70
  type: import("..").PHOTO_SESSION_LOOK_TYPE;
@@ -118,8 +118,6 @@ export declare namespace GetPhotoSessionsConfigQuery {
118
118
  code: string;
119
119
  title: string;
120
120
  description?: string | null | undefined;
121
- createdAt: Date;
122
- updatedAt: Date;
123
121
  references: {
124
122
  uuid: string;
125
123
  styleId: string;
@@ -129,6 +127,8 @@ export declare namespace GetPhotoSessionsConfigQuery {
129
127
  createdAt: Date;
130
128
  updatedAt: Date;
131
129
  }[];
130
+ createdAt: Date;
131
+ updatedAt: Date;
132
132
  }[];
133
133
  looks: {
134
134
  type: import("..").PHOTO_SESSION_LOOK_TYPE;
@@ -971,8 +971,6 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
971
971
  code: z.ZodString;
972
972
  title: z.ZodString;
973
973
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
974
- createdAt: z.ZodCoercedDate<unknown>;
975
- updatedAt: z.ZodCoercedDate<unknown>;
976
974
  references: z.ZodArray<z.ZodObject<{
977
975
  uuid: z.ZodUUID;
978
976
  styleId: z.ZodUUID;
@@ -982,6 +980,8 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
982
980
  createdAt: z.ZodCoercedDate<unknown>;
983
981
  updatedAt: z.ZodCoercedDate<unknown>;
984
982
  }, z.core.$strip>>;
983
+ createdAt: z.ZodCoercedDate<unknown>;
984
+ updatedAt: z.ZodCoercedDate<unknown>;
985
985
  }, z.core.$strip>>;
986
986
  looks: z.ZodArray<z.ZodObject<{
987
987
  type: z.ZodEnum<typeof import("../..").PHOTO_SESSION_LOOK_TYPE>;
@@ -978,8 +978,6 @@ export declare namespace GetGlobalToolsConfigQuery {
978
978
  code: string;
979
979
  title: string;
980
980
  description?: string | null | undefined;
981
- createdAt: Date;
982
- updatedAt: Date;
983
981
  references: {
984
982
  uuid: string;
985
983
  styleId: string;
@@ -989,6 +987,8 @@ export declare namespace GetGlobalToolsConfigQuery {
989
987
  createdAt: Date;
990
988
  updatedAt: Date;
991
989
  }[];
990
+ createdAt: Date;
991
+ updatedAt: Date;
992
992
  }[];
993
993
  looks: {
994
994
  type: import("../..").PHOTO_SESSION_LOOK_TYPE;
@@ -2050,8 +2050,6 @@ export declare namespace GetGlobalToolsConfigQuery {
2050
2050
  code: string;
2051
2051
  title: string;
2052
2052
  description?: string | null | undefined;
2053
- createdAt: Date;
2054
- updatedAt: Date;
2055
2053
  references: {
2056
2054
  uuid: string;
2057
2055
  styleId: string;
@@ -2061,6 +2059,8 @@ export declare namespace GetGlobalToolsConfigQuery {
2061
2059
  createdAt: Date;
2062
2060
  updatedAt: Date;
2063
2061
  }[];
2062
+ createdAt: Date;
2063
+ updatedAt: Date;
2064
2064
  }[];
2065
2065
  looks: {
2066
2066
  type: import("../..").PHOTO_SESSION_LOOK_TYPE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.2.80-stage-2",
3
+ "version": "0.2.80",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "files": [
@@ -1,6 +0,0 @@
1
- export declare enum IMAGE_GENERATION_GROUP_STATUS {
2
- PENDING = "pending",
3
- COMPLETED = "completed",
4
- AWAITING_RETRY = "awaiting_retry",
5
- FAILED = "failed"
6
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IMAGE_GENERATION_GROUP_STATUS = void 0;
4
- var IMAGE_GENERATION_GROUP_STATUS;
5
- (function (IMAGE_GENERATION_GROUP_STATUS) {
6
- IMAGE_GENERATION_GROUP_STATUS["PENDING"] = "pending";
7
- IMAGE_GENERATION_GROUP_STATUS["COMPLETED"] = "completed";
8
- IMAGE_GENERATION_GROUP_STATUS["AWAITING_RETRY"] = "awaiting_retry";
9
- IMAGE_GENERATION_GROUP_STATUS["FAILED"] = "failed";
10
- })(IMAGE_GENERATION_GROUP_STATUS || (exports.IMAGE_GENERATION_GROUP_STATUS = IMAGE_GENERATION_GROUP_STATUS = {}));
@@ -1,95 +0,0 @@
1
- import { z } from 'zod';
2
- import { JOB_SCOPE } from '../../common';
3
- import { IMAGE_GENERATION_GROUP_STATUS } from '../enums';
4
- export declare const ImageGenerationGroupSchema: z.ZodObject<{
5
- uuid: z.ZodString;
6
- title: z.ZodString;
7
- prompt: z.ZodString;
8
- status: z.ZodEnum<typeof IMAGE_GENERATION_GROUP_STATUS>;
9
- error: z.ZodNullable<z.ZodString>;
10
- modelId: z.ZodString;
11
- presetId: z.ZodNullable<z.ZodString>;
12
- price: z.ZodNumber;
13
- params: z.ZodObject<{
14
- aspectRatio: z.ZodString;
15
- attachedFiles: z.ZodArray<z.ZodObject<{
16
- uuid: z.ZodString;
17
- url: z.ZodString;
18
- name: z.ZodString;
19
- mimeType: z.ZodString;
20
- type: z.ZodString;
21
- size: z.ZodNumber;
22
- duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
23
- content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
24
- contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
25
- }, z.core.$strip>>;
26
- enhancePrompt: z.ZodBoolean;
27
- resolution: z.ZodOptional<z.ZodEnum<typeof import("..").IMAGE_GENERATION_RESOLUTION>>;
28
- batching: z.ZodOptional<z.ZodNumber>;
29
- }, z.core.$strip>;
30
- attempts: z.ZodArray<z.ZodObject<{
31
- order: z.ZodNumber;
32
- status: z.ZodString;
33
- error: z.ZodNullable<z.ZodString>;
34
- timestamp: z.ZodCoercedDate<unknown>;
35
- }, z.core.$strip>>;
36
- scope: z.ZodEnum<typeof JOB_SCOPE>;
37
- userId: z.ZodNullable<z.ZodString>;
38
- unregisteredUserId: z.ZodNullable<z.ZodString>;
39
- isDeleted: z.ZodBoolean;
40
- subJobs: z.ZodArray<z.ZodObject<{
41
- uuid: z.ZodString;
42
- prompt: z.ZodString;
43
- title: z.ZodString;
44
- status: z.ZodEnum<typeof import("../..").JOB_STATUS>;
45
- error: z.ZodNullable<z.ZodString>;
46
- price: z.ZodNumber;
47
- previewUrl: z.ZodNullable<z.ZodString>;
48
- reaction: z.ZodNullable<z.ZodEnum<typeof import("../..").USER_REACTION>>;
49
- dislikeReason: z.ZodNullable<z.ZodString>;
50
- externalId: z.ZodNullable<z.ZodString>;
51
- params: z.ZodObject<{
52
- aspectRatio: z.ZodString;
53
- attachedFiles: z.ZodArray<z.ZodObject<{
54
- uuid: z.ZodString;
55
- url: z.ZodString;
56
- name: z.ZodString;
57
- mimeType: z.ZodString;
58
- type: z.ZodString;
59
- size: z.ZodNumber;
60
- duration: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
61
- content: z.ZodNullable<z.ZodOptional<z.ZodString>>;
62
- contentLength: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
63
- }, z.core.$strip>>;
64
- enhancePrompt: z.ZodBoolean;
65
- resolution: z.ZodOptional<z.ZodEnum<typeof import("..").IMAGE_GENERATION_RESOLUTION>>;
66
- batching: z.ZodOptional<z.ZodNumber>;
67
- }, z.core.$strip>;
68
- output: z.ZodArray<z.ZodString>;
69
- presetId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
70
- modelId: z.ZodString;
71
- groupId: z.ZodNullable<z.ZodString>;
72
- attempts: z.ZodArray<z.ZodObject<{
73
- order: z.ZodNumber;
74
- status: z.ZodString;
75
- error: z.ZodNullable<z.ZodString>;
76
- timestamp: z.ZodCoercedDate<unknown>;
77
- }, z.core.$strip>>;
78
- userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
- unregisteredUserId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
80
- isPublished: z.ZodBoolean;
81
- origin: z.ZodString;
82
- callOrigin: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").STATISTICS_CALL_ORIGIN>;
83
- postId: z.ZodNullable<z.ZodString>;
84
- isDeleted: z.ZodBoolean;
85
- isFavorite: z.ZodBoolean;
86
- internalError: z.ZodNullable<z.ZodString>;
87
- tokenReservationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
- createdAt: z.ZodCoercedDate<unknown>;
89
- updatedAt: z.ZodCoercedDate<unknown>;
90
- }, z.core.$strip>>;
91
- createdAt: z.ZodCoercedDate<unknown>;
92
- completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
93
- updatedAt: z.ZodCoercedDate<unknown>;
94
- }, z.core.$strip>;
95
- export type ImageGenerationGroup = z.infer<typeof ImageGenerationGroupSchema>;
@@ -1,33 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ImageGenerationGroupSchema = void 0;
4
- const zod_1 = require("zod");
5
- const common_1 = require("../../common");
6
- const enums_1 = require("../enums");
7
- const image_generation_job_schema_1 = require("./image-generation-job.schema");
8
- const image_generation_job_schema_2 = require("./image-generation-job.schema");
9
- exports.ImageGenerationGroupSchema = zod_1.z.object({
10
- uuid: zod_1.z.string(),
11
- title: zod_1.z.string(),
12
- prompt: zod_1.z.string(),
13
- status: zod_1.z.enum(enums_1.IMAGE_GENERATION_GROUP_STATUS),
14
- error: zod_1.z.string().nullable(),
15
- modelId: zod_1.z.string(),
16
- presetId: zod_1.z.string().nullable(),
17
- price: zod_1.z.number(),
18
- params: image_generation_job_schema_2.ImageGenerationJobParamsSchema,
19
- attempts: zod_1.z.array(zod_1.z.object({
20
- order: zod_1.z.number(),
21
- status: zod_1.z.string(),
22
- error: zod_1.z.string().nullable(),
23
- timestamp: zod_1.z.coerce.date(),
24
- })),
25
- scope: zod_1.z.enum(common_1.JOB_SCOPE),
26
- userId: zod_1.z.string().nullable(),
27
- unregisteredUserId: zod_1.z.string().nullable(),
28
- isDeleted: zod_1.z.boolean(),
29
- subJobs: zod_1.z.array(image_generation_job_schema_1.ImageGenerationJobSchema),
30
- createdAt: zod_1.z.coerce.date(),
31
- completedAt: zod_1.z.coerce.date().nullable(),
32
- updatedAt: zod_1.z.coerce.date(),
33
- });