@purpleschool/gptbot 0.15.73 → 0.15.74
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/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +3 -3
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.js +2 -1
- package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.d.ts +2 -0
- package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.js +2 -0
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +3 -2
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.js +2 -0
- package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +1 -1
- package/build/commands/tools/photo-session/get-photo-session-styles.command.d.ts +1 -1
- package/build/models/tools/photo-session/photo-session-config.schema.d.ts +2 -2
- package/build/models/tools/photo-session/photo-session-style.schema.d.ts +2 -2
- package/build/models/tools/photo-session/photo-session-style.schema.js +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
2
3
|
export declare const CreatePhotoSessionStyleReferenceSchema: z.ZodObject<{
|
|
3
4
|
photoUrl: z.ZodString;
|
|
4
|
-
description: z.ZodOptional<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.ZodLiteral<LOCALE.RU>;
|
|
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
|
-
description: z.ZodOptional<z.ZodString>;
|
|
15
15
|
order: z.ZodNumber;
|
|
16
16
|
}, z.core.$strip>>;
|
|
17
17
|
}, z.core.$strip>;
|
|
@@ -26,7 +26,7 @@ export declare namespace CreatePhotoSessionStyleCommand {
|
|
|
26
26
|
uuid: z.ZodString;
|
|
27
27
|
styleId: z.ZodString;
|
|
28
28
|
photoUrl: z.ZodString;
|
|
29
|
-
|
|
29
|
+
thumbnailUrl: z.ZodString;
|
|
30
30
|
order: z.ZodNumber;
|
|
31
31
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
32
32
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreatePhotoSessionStyleCommand = exports.CreatePhotoSessionStyleReferenceSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
5
6
|
const models_1 = require("../../../../models");
|
|
6
7
|
exports.CreatePhotoSessionStyleReferenceSchema = zod_1.z.object({
|
|
7
8
|
photoUrl: zod_1.z.string(),
|
|
8
|
-
description: zod_1.z.string().optional(),
|
|
9
9
|
order: zod_1.z.number().int().min(0).max(5),
|
|
10
10
|
});
|
|
11
11
|
var CreatePhotoSessionStyleCommand;
|
|
12
12
|
(function (CreatePhotoSessionStyleCommand) {
|
|
13
13
|
CreatePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
locale: zod_1.z.literal(rugpt_lib_common_1.LOCALE.RU),
|
|
14
15
|
code: zod_1.z.string(),
|
|
15
16
|
title: zod_1.z.string(),
|
|
16
17
|
description: zod_1.z.string().optional(),
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
2
3
|
export declare namespace ListPhotoSessionStylesCommand {
|
|
3
4
|
const RequestQuerySchema: z.ZodObject<{
|
|
4
5
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
5
6
|
offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
7
|
+
locale: z.ZodOptional<z.ZodEnum<typeof LOCALE>>;
|
|
6
8
|
}, z.core.$strip>;
|
|
7
9
|
type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
8
10
|
}
|
|
@@ -2,10 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ListPhotoSessionStylesCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
5
6
|
var ListPhotoSessionStylesCommand;
|
|
6
7
|
(function (ListPhotoSessionStylesCommand) {
|
|
7
8
|
ListPhotoSessionStylesCommand.RequestQuerySchema = zod_1.z.object({
|
|
8
9
|
limit: zod_1.z.coerce.number().int().min(1).max(50).optional(),
|
|
9
10
|
offset: zod_1.z.coerce.number().int().min(0).optional(),
|
|
11
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE).optional(),
|
|
10
12
|
});
|
|
11
13
|
})(ListPhotoSessionStylesCommand || (exports.ListPhotoSessionStylesCommand = ListPhotoSessionStylesCommand = {}));
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { LOCALE } from '@purpleschool/rugpt-lib-common';
|
|
2
3
|
export declare namespace UpdatePhotoSessionStyleCommand {
|
|
3
4
|
const RequestParamsSchema: z.ZodObject<{
|
|
4
5
|
uuid: z.ZodString;
|
|
5
6
|
}, z.core.$strip>;
|
|
6
7
|
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
7
8
|
const RequestSchema: z.ZodObject<{
|
|
9
|
+
locale: z.ZodEnum<typeof LOCALE>;
|
|
8
10
|
code: z.ZodOptional<z.ZodString>;
|
|
9
11
|
title: z.ZodOptional<z.ZodString>;
|
|
10
12
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
13
|
references: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
12
14
|
photoUrl: z.ZodString;
|
|
13
|
-
description: z.ZodOptional<z.ZodString>;
|
|
14
15
|
order: z.ZodNumber;
|
|
15
16
|
}, z.core.$strip>>>;
|
|
16
17
|
}, z.core.$strip>;
|
|
@@ -25,7 +26,7 @@ export declare namespace UpdatePhotoSessionStyleCommand {
|
|
|
25
26
|
uuid: z.ZodString;
|
|
26
27
|
styleId: z.ZodString;
|
|
27
28
|
photoUrl: z.ZodString;
|
|
28
|
-
|
|
29
|
+
thumbnailUrl: z.ZodString;
|
|
29
30
|
order: z.ZodNumber;
|
|
30
31
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
31
32
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdatePhotoSessionStyleCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
5
6
|
const models_1 = require("../../../../models");
|
|
6
7
|
const create_photo_session_style_command_1 = require("./create-photo-session-style.command");
|
|
7
8
|
var UpdatePhotoSessionStyleCommand;
|
|
@@ -10,6 +11,7 @@ var UpdatePhotoSessionStyleCommand;
|
|
|
10
11
|
uuid: zod_1.z.string().uuid(),
|
|
11
12
|
});
|
|
12
13
|
UpdatePhotoSessionStyleCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
13
15
|
code: zod_1.z.string().optional(),
|
|
14
16
|
title: zod_1.z.string().optional(),
|
|
15
17
|
description: zod_1.z.string().nullable().optional(),
|
|
@@ -57,7 +57,7 @@ export declare namespace GetPhotoSessionConfigCommand {
|
|
|
57
57
|
uuid: z.ZodString;
|
|
58
58
|
styleId: z.ZodString;
|
|
59
59
|
photoUrl: z.ZodString;
|
|
60
|
-
|
|
60
|
+
thumbnailUrl: z.ZodString;
|
|
61
61
|
order: z.ZodNumber;
|
|
62
62
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
63
63
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -10,7 +10,7 @@ export declare namespace GetPhotoSessionStylesCommand {
|
|
|
10
10
|
uuid: z.ZodString;
|
|
11
11
|
styleId: z.ZodString;
|
|
12
12
|
photoUrl: z.ZodString;
|
|
13
|
-
|
|
13
|
+
thumbnailUrl: z.ZodString;
|
|
14
14
|
order: z.ZodNumber;
|
|
15
15
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
16
16
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -60,7 +60,7 @@ export declare const PhotoSessionConfigSchema: z.ZodObject<{
|
|
|
60
60
|
uuid: z.ZodString;
|
|
61
61
|
styleId: z.ZodString;
|
|
62
62
|
photoUrl: z.ZodString;
|
|
63
|
-
|
|
63
|
+
thumbnailUrl: z.ZodString;
|
|
64
64
|
order: z.ZodNumber;
|
|
65
65
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
66
66
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
@@ -125,7 +125,7 @@ export declare const RawPhotoSessionConfigSchema: z.ZodObject<{
|
|
|
125
125
|
uuid: z.ZodString;
|
|
126
126
|
styleId: z.ZodString;
|
|
127
127
|
photoUrl: z.ZodString;
|
|
128
|
-
|
|
128
|
+
thumbnailUrl: z.ZodString;
|
|
129
129
|
order: z.ZodNumber;
|
|
130
130
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
131
131
|
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(),
|