@purpleschool/gptbot-tools 0.2.72-stage2 → 0.2.72-stage2-ph
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.
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.d.ts +5 -4
- package/build/photo-sessions/commands/admin/create-photo-session-style.command.js +3 -1
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.d.ts +4 -3
- package/build/photo-sessions/commands/admin/update-photo-session-style.command.js +10 -7
- package/build/photo-sessions/models/photo-session-config.schema.d.ts +1 -1
- package/build/photo-sessions/models/photo-session-style.schema.d.ts +2 -2
- package/build/photo-sessions/models/photo-session-style.schema.js +1 -1
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.d.ts +3 -2
- package/build/photo-sessions/queries/find-photo-session-style-by-id.query.js +6 -1
- package/build/photo-sessions/queries/find-photo-session-styles.query.d.ts +3 -2
- package/build/photo-sessions/queries/find-photo-session-styles.query.js +2 -0
- package/build/photo-sessions/queries/get-photo-sessions-config.query.d.ts +2 -2
- package/build/tools/models/global-tools-config.schema.d.ts +1 -1
- package/build/tools/queries/get-global-tools-config.query.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const CreatePhotoSessionStyleReferenceSchema: z.ZodObject<{
|
|
3
3
|
photoUrl: z.ZodString;
|
|
4
|
-
|
|
4
|
+
thumbnailUrl: z.ZodString;
|
|
5
5
|
order: z.ZodNumber;
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
export declare namespace CreatePhotoSessionStyleCommand {
|
|
8
8
|
const RequestSchema: z.ZodObject<{
|
|
9
|
+
locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
|
|
9
10
|
code: z.ZodString;
|
|
10
11
|
title: z.ZodString;
|
|
11
12
|
description: z.ZodOptional<z.ZodString>;
|
|
12
13
|
references: z.ZodArray<z.ZodObject<{
|
|
13
14
|
photoUrl: z.ZodString;
|
|
14
|
-
|
|
15
|
+
thumbnailUrl: z.ZodString;
|
|
15
16
|
order: z.ZodNumber;
|
|
16
17
|
}, z.core.$strip>>;
|
|
17
18
|
}, z.core.$strip>;
|
|
@@ -27,7 +28,7 @@ export declare namespace CreatePhotoSessionStyleCommand {
|
|
|
27
28
|
uuid: string;
|
|
28
29
|
styleId: string;
|
|
29
30
|
photoUrl: string;
|
|
30
|
-
|
|
31
|
+
thumbnailUrl: string;
|
|
31
32
|
order: number;
|
|
32
33
|
createdAt: Date;
|
|
33
34
|
updatedAt: Date;
|
|
@@ -43,7 +44,7 @@ export declare namespace CreatePhotoSessionStyleCommand {
|
|
|
43
44
|
uuid: string;
|
|
44
45
|
styleId: string;
|
|
45
46
|
photoUrl: string;
|
|
46
|
-
|
|
47
|
+
thumbnailUrl: string;
|
|
47
48
|
order: number;
|
|
48
49
|
createdAt: Date;
|
|
49
50
|
updatedAt: Date;
|
|
@@ -3,15 +3,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CreatePhotoSessionStyleCommand = exports.CreatePhotoSessionStyleReferenceSchema = 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
|
exports.CreatePhotoSessionStyleReferenceSchema = zod_1.z.object({
|
|
8
9
|
photoUrl: zod_1.z.string(),
|
|
9
|
-
|
|
10
|
+
thumbnailUrl: zod_1.z.string(),
|
|
10
11
|
order: zod_1.z.number().int().min(0).max(5),
|
|
11
12
|
});
|
|
12
13
|
var CreatePhotoSessionStyleCommand;
|
|
13
14
|
(function (CreatePhotoSessionStyleCommand) {
|
|
14
15
|
CreatePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
|
|
16
|
+
locale: locale_schema_1.LocaleSchema,
|
|
15
17
|
code: zod_1.z.string(),
|
|
16
18
|
title: zod_1.z.string(),
|
|
17
19
|
description: zod_1.z.string().optional(),
|
|
@@ -2,12 +2,13 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare namespace UpdatePhotoSessionStyleCommand {
|
|
3
3
|
const RequestSchema: z.ZodObject<{
|
|
4
4
|
uuid: z.ZodString;
|
|
5
|
+
locale: z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>;
|
|
5
6
|
code: z.ZodOptional<z.ZodString>;
|
|
6
7
|
title: z.ZodOptional<z.ZodString>;
|
|
7
8
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
9
|
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
10
|
photoUrl: z.ZodString;
|
|
10
|
-
|
|
11
|
+
thumbnailUrl: z.ZodString;
|
|
11
12
|
order: z.ZodNumber;
|
|
12
13
|
}, z.core.$strip>>>;
|
|
13
14
|
}, z.core.$strip>;
|
|
@@ -23,7 +24,7 @@ export declare namespace UpdatePhotoSessionStyleCommand {
|
|
|
23
24
|
uuid: string;
|
|
24
25
|
styleId: string;
|
|
25
26
|
photoUrl: string;
|
|
26
|
-
|
|
27
|
+
thumbnailUrl: string;
|
|
27
28
|
order: number;
|
|
28
29
|
createdAt: Date;
|
|
29
30
|
updatedAt: Date;
|
|
@@ -39,7 +40,7 @@ export declare namespace UpdatePhotoSessionStyleCommand {
|
|
|
39
40
|
uuid: string;
|
|
40
41
|
styleId: string;
|
|
41
42
|
photoUrl: string;
|
|
42
|
-
|
|
43
|
+
thumbnailUrl: string;
|
|
43
44
|
order: number;
|
|
44
45
|
createdAt: Date;
|
|
45
46
|
updatedAt: Date;
|
|
@@ -3,16 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.UpdatePhotoSessionStyleCommand = 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
|
const create_photo_session_style_command_1 = require("./create-photo-session-style.command");
|
|
9
|
+
const UpdatePhotoSessionStyleRequestSchema = zod_1.z.object({
|
|
10
|
+
uuid: zod_1.z.string().uuid(),
|
|
11
|
+
locale: locale_schema_1.LocaleSchema,
|
|
12
|
+
code: zod_1.z.string().optional(),
|
|
13
|
+
title: zod_1.z.string().optional(),
|
|
14
|
+
description: zod_1.z.string().nullable().optional(),
|
|
15
|
+
references: zod_1.z.array(create_photo_session_style_command_1.CreatePhotoSessionStyleReferenceSchema).max(6).optional(),
|
|
16
|
+
});
|
|
8
17
|
var UpdatePhotoSessionStyleCommand;
|
|
9
18
|
(function (UpdatePhotoSessionStyleCommand) {
|
|
10
|
-
UpdatePhotoSessionStyleCommand.RequestSchema =
|
|
11
|
-
uuid: zod_1.z.string().uuid(),
|
|
12
|
-
code: zod_1.z.string().optional(),
|
|
13
|
-
title: zod_1.z.string().optional(),
|
|
14
|
-
description: zod_1.z.string().nullable().optional(),
|
|
15
|
-
references: zod_1.z.array(create_photo_session_style_command_1.CreatePhotoSessionStyleReferenceSchema).max(6).optional(),
|
|
16
|
-
});
|
|
19
|
+
UpdatePhotoSessionStyleCommand.RequestSchema = UpdatePhotoSessionStyleRequestSchema;
|
|
17
20
|
UpdatePhotoSessionStyleCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionStyleSchema);
|
|
18
21
|
})(UpdatePhotoSessionStyleCommand || (exports.UpdatePhotoSessionStyleCommand = UpdatePhotoSessionStyleCommand = {}));
|
|
@@ -56,7 +56,7 @@ export declare const PhotoSessionConfigSchema: z.ZodObject<{
|
|
|
56
56
|
uuid: z.ZodString;
|
|
57
57
|
styleId: z.ZodString;
|
|
58
58
|
photoUrl: z.ZodString;
|
|
59
|
-
|
|
59
|
+
thumbnailUrl: z.ZodString;
|
|
60
60
|
order: z.ZodNumber;
|
|
61
61
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
62
62
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -3,7 +3,7 @@ export declare const PhotoSessionStyleReferenceSchema: z.ZodObject<{
|
|
|
3
3
|
uuid: z.ZodString;
|
|
4
4
|
styleId: z.ZodString;
|
|
5
5
|
photoUrl: z.ZodString;
|
|
6
|
-
|
|
6
|
+
thumbnailUrl: z.ZodString;
|
|
7
7
|
order: z.ZodNumber;
|
|
8
8
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
9
9
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -18,7 +18,7 @@ export declare const PhotoSessionStyleSchema: z.ZodObject<{
|
|
|
18
18
|
uuid: z.ZodString;
|
|
19
19
|
styleId: z.ZodString;
|
|
20
20
|
photoUrl: z.ZodString;
|
|
21
|
-
|
|
21
|
+
thumbnailUrl: z.ZodString;
|
|
22
22
|
order: z.ZodNumber;
|
|
23
23
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
24
24
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -6,7 +6,7 @@ exports.PhotoSessionStyleReferenceSchema = zod_1.z.object({
|
|
|
6
6
|
uuid: zod_1.z.string().uuid(),
|
|
7
7
|
styleId: zod_1.z.string().uuid(),
|
|
8
8
|
photoUrl: zod_1.z.string(),
|
|
9
|
-
|
|
9
|
+
thumbnailUrl: zod_1.z.string(),
|
|
10
10
|
order: zod_1.z.number().int().min(0).max(5),
|
|
11
11
|
createdAt: zod_1.z.coerce.date(),
|
|
12
12
|
updatedAt: zod_1.z.coerce.date(),
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare namespace FindPhotoSessionStyleByIdQuery {
|
|
3
3
|
const RequestSchema: z.ZodObject<{
|
|
4
4
|
uuid: z.ZodString;
|
|
5
|
+
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
type Request = z.infer<typeof RequestSchema>;
|
|
7
8
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -15,7 +16,7 @@ export declare namespace FindPhotoSessionStyleByIdQuery {
|
|
|
15
16
|
uuid: string;
|
|
16
17
|
styleId: string;
|
|
17
18
|
photoUrl: string;
|
|
18
|
-
|
|
19
|
+
thumbnailUrl: string;
|
|
19
20
|
order: number;
|
|
20
21
|
createdAt: Date;
|
|
21
22
|
updatedAt: Date;
|
|
@@ -31,7 +32,7 @@ export declare namespace FindPhotoSessionStyleByIdQuery {
|
|
|
31
32
|
uuid: string;
|
|
32
33
|
styleId: string;
|
|
33
34
|
photoUrl: string;
|
|
34
|
-
|
|
35
|
+
thumbnailUrl: string;
|
|
35
36
|
order: number;
|
|
36
37
|
createdAt: Date;
|
|
37
38
|
updatedAt: Date;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FindPhotoSessionStyleByIdQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
4
5
|
const command_response_schema_1 = require("../../common/models/command-response.schema");
|
|
6
|
+
const locale_schema_1 = require("../../common/models/locale.schema");
|
|
5
7
|
const models_1 = require("../models");
|
|
6
8
|
var FindPhotoSessionStyleByIdQuery;
|
|
7
9
|
(function (FindPhotoSessionStyleByIdQuery) {
|
|
8
|
-
FindPhotoSessionStyleByIdQuery.RequestSchema =
|
|
10
|
+
FindPhotoSessionStyleByIdQuery.RequestSchema = zod_1.z.object({
|
|
11
|
+
uuid: zod_1.z.string().uuid(),
|
|
12
|
+
locale: locale_schema_1.LocaleSchema.optional(),
|
|
13
|
+
});
|
|
9
14
|
FindPhotoSessionStyleByIdQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.PhotoSessionStyleSchema);
|
|
10
15
|
})(FindPhotoSessionStyleByIdQuery || (exports.FindPhotoSessionStyleByIdQuery = FindPhotoSessionStyleByIdQuery = {}));
|
|
@@ -3,6 +3,7 @@ export declare namespace FindPhotoSessionStylesQuery {
|
|
|
3
3
|
const RequestSchema: z.ZodObject<{
|
|
4
4
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5
5
|
offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
6
|
+
locale: z.ZodOptional<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>>;
|
|
6
7
|
}, z.core.$strip>;
|
|
7
8
|
type Request = z.infer<typeof RequestSchema>;
|
|
8
9
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -17,7 +18,7 @@ export declare namespace FindPhotoSessionStylesQuery {
|
|
|
17
18
|
uuid: string;
|
|
18
19
|
styleId: string;
|
|
19
20
|
photoUrl: string;
|
|
20
|
-
|
|
21
|
+
thumbnailUrl: string;
|
|
21
22
|
order: number;
|
|
22
23
|
createdAt: Date;
|
|
23
24
|
updatedAt: Date;
|
|
@@ -38,7 +39,7 @@ export declare namespace FindPhotoSessionStylesQuery {
|
|
|
38
39
|
uuid: string;
|
|
39
40
|
styleId: string;
|
|
40
41
|
photoUrl: string;
|
|
41
|
-
|
|
42
|
+
thumbnailUrl: string;
|
|
42
43
|
order: number;
|
|
43
44
|
createdAt: Date;
|
|
44
45
|
updatedAt: Date;
|
|
@@ -3,12 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FindPhotoSessionStylesQuery = 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 FindPhotoSessionStylesQuery;
|
|
8
9
|
(function (FindPhotoSessionStylesQuery) {
|
|
9
10
|
FindPhotoSessionStylesQuery.RequestSchema = zod_1.z.object({
|
|
10
11
|
limit: zod_1.z.coerce.number().min(1).max(50).optional(),
|
|
11
12
|
offset: zod_1.z.coerce.number().min(0).optional(),
|
|
13
|
+
locale: locale_schema_1.LocaleSchema.optional(),
|
|
12
14
|
});
|
|
13
15
|
FindPhotoSessionStylesQuery.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(zod_1.z.object({
|
|
14
16
|
data: zod_1.z.array(models_1.PhotoSessionStyleSchema),
|
|
@@ -58,7 +58,7 @@ export declare namespace GetPhotoSessionsConfigQuery {
|
|
|
58
58
|
uuid: string;
|
|
59
59
|
styleId: string;
|
|
60
60
|
photoUrl: string;
|
|
61
|
-
|
|
61
|
+
thumbnailUrl: string;
|
|
62
62
|
order: number;
|
|
63
63
|
createdAt: Date;
|
|
64
64
|
updatedAt: Date;
|
|
@@ -122,7 +122,7 @@ export declare namespace GetPhotoSessionsConfigQuery {
|
|
|
122
122
|
uuid: string;
|
|
123
123
|
styleId: string;
|
|
124
124
|
photoUrl: string;
|
|
125
|
-
|
|
125
|
+
thumbnailUrl: string;
|
|
126
126
|
order: number;
|
|
127
127
|
createdAt: Date;
|
|
128
128
|
updatedAt: Date;
|
|
@@ -972,7 +972,7 @@ export declare const GlobalToolsConfigSchema: z.ZodObject<{
|
|
|
972
972
|
uuid: z.ZodString;
|
|
973
973
|
styleId: z.ZodString;
|
|
974
974
|
photoUrl: z.ZodString;
|
|
975
|
-
|
|
975
|
+
thumbnailUrl: z.ZodString;
|
|
976
976
|
order: z.ZodNumber;
|
|
977
977
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
978
978
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -979,7 +979,7 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
979
979
|
uuid: string;
|
|
980
980
|
styleId: string;
|
|
981
981
|
photoUrl: string;
|
|
982
|
-
|
|
982
|
+
thumbnailUrl: string;
|
|
983
983
|
order: number;
|
|
984
984
|
createdAt: Date;
|
|
985
985
|
updatedAt: Date;
|
|
@@ -2048,7 +2048,7 @@ export declare namespace GetGlobalToolsConfigQuery {
|
|
|
2048
2048
|
uuid: string;
|
|
2049
2049
|
styleId: string;
|
|
2050
2050
|
photoUrl: string;
|
|
2051
|
-
|
|
2051
|
+
thumbnailUrl: string;
|
|
2052
2052
|
order: number;
|
|
2053
2053
|
createdAt: Date;
|
|
2054
2054
|
updatedAt: Date;
|