@purpleschool/gptbot 0.20.13-stage-2 → 0.20.14
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/api/controllers/http/index.d.ts +1 -0
- package/build/api/controllers/http/index.js +1 -0
- package/build/api/controllers/http/photo-session.d.ts +2 -0
- package/build/api/controllers/http/photo-session.js +3 -1
- package/build/api/controllers/http/support-widget.d.ts +5 -0
- package/build/api/controllers/http/support-widget.js +8 -0
- package/build/api/routes.d.ts +42 -0
- package/build/api/routes.js +42 -0
- package/build/commands/index.d.ts +1 -0
- package/build/commands/index.js +1 -0
- package/build/commands/support-widget/get-support-widget-identity.command.d.ts +10 -0
- package/build/commands/support-widget/get-support-widget-identity.command.js +15 -0
- package/build/commands/support-widget/index.d.ts +1 -0
- package/build/commands/support-widget/index.js +17 -0
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.d.ts +1 -228
- package/build/commands/tools/photo-session/admin/create-photo-session-style.command.js +3 -24
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.d.ts +1 -9
- package/build/commands/tools/photo-session/admin/delete-photo-session-style.command.js +2 -8
- package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.d.ts +1 -146
- package/build/commands/tools/photo-session/admin/list-photo-session-styles.command.js +2 -16
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.d.ts +1 -227
- package/build/commands/tools/photo-session/admin/update-photo-session-style.command.js +2 -22
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.d.ts +9 -0
- package/build/commands/tools/photo-session/delete-all-photo-session-jobs.command.js +9 -0
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.d.ts +9 -0
- package/build/commands/tools/photo-session/delete-photo-session-job-by-uuid.command.js +9 -0
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.d.ts +52 -84
- package/build/commands/tools/photo-session/find-photo-session-job-by-uuid.command.js +9 -0
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.d.ts +52 -84
- package/build/commands/tools/photo-session/find-photo-session-jobs.command.js +9 -0
- package/build/commands/tools/photo-session/get-photo-session-config.command.d.ts +36 -60
- package/build/commands/tools/photo-session/get-photo-session-config.command.js +9 -0
- package/build/commands/tools/photo-session/get-photo-session-styles.command.d.ts +17 -60
- package/build/commands/tools/photo-session/get-photo-session-styles.command.js +9 -8
- package/build/commands/tools/photo-session/index.d.ts +1 -1
- package/build/commands/tools/photo-session/index.js +2 -1
- package/build/commands/tools/photo-session/photo-session.command.d.ts +65 -197
- package/build/commands/tools/photo-session/photo-session.command.js +15 -13
- package/build/commands/tools/photo-session/retry-photo-session-job.command.d.ts +13 -2
- package/build/commands/tools/photo-session/retry-photo-session-job.command.js +10 -2
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.d.ts +13 -1
- package/build/commands/tools/photo-session/set-reaction-to-photo-session-job.command.js +9 -0
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.d.ts +13 -1
- package/build/commands/tools/photo-session/update-photo-session-job-favorite.command.js +9 -0
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.d.ts +52 -84
- package/build/commands/tools/photo-session/update-photo-session-job-title.command.js +9 -0
- package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.d.ts +13 -1
- package/build/commands/tools/photo-session/update-published-status-photo-session-job.command.js +9 -0
- package/build/commands/tools/photo-session/v2/admin/create-photo-session-style.command.d.ts +228 -0
- package/build/commands/tools/photo-session/v2/admin/create-photo-session-style.command.js +26 -0
- package/build/commands/tools/photo-session/v2/admin/delete-photo-session-style.command.d.ts +9 -0
- package/build/commands/tools/photo-session/v2/admin/delete-photo-session-style.command.js +11 -0
- package/build/commands/tools/photo-session/v2/admin/index.d.ts +4 -0
- package/build/commands/tools/photo-session/v2/admin/index.js +20 -0
- package/build/commands/tools/photo-session/v2/admin/list-photo-session-styles.command.d.ts +146 -0
- package/build/commands/tools/photo-session/v2/admin/list-photo-session-styles.command.js +19 -0
- package/build/commands/tools/photo-session/v2/admin/update-photo-session-style.command.d.ts +227 -0
- package/build/commands/tools/photo-session/v2/admin/update-photo-session-style.command.js +25 -0
- package/build/commands/tools/photo-session/v2/delete-all-photo-session-jobs.command.d.ts +5 -0
- package/build/commands/tools/photo-session/v2/delete-all-photo-session-jobs.command.js +8 -0
- package/build/commands/tools/photo-session/v2/delete-photo-session-job-by-uuid.command.d.ts +9 -0
- package/build/commands/tools/photo-session/v2/delete-photo-session-job-by-uuid.command.js +11 -0
- package/build/commands/tools/photo-session/v2/find-photo-session-job-by-uuid.command.d.ts +158 -0
- package/build/commands/tools/photo-session/v2/find-photo-session-job-by-uuid.command.js +14 -0
- package/build/commands/tools/photo-session/v2/find-photo-session-jobs.command.d.ts +167 -0
- package/build/commands/tools/photo-session/v2/find-photo-session-jobs.command.js +24 -0
- package/build/commands/tools/photo-session/v2/get-photo-session-config.command.d.ts +107 -0
- package/build/commands/tools/photo-session/v2/get-photo-session-config.command.js +11 -0
- package/build/commands/tools/photo-session/v2/get-photo-session-styles.command.d.ts +75 -0
- package/build/commands/tools/photo-session/v2/get-photo-session-styles.command.js +19 -0
- package/build/commands/tools/photo-session/v2/index.d.ts +14 -0
- package/build/commands/tools/photo-session/v2/index.js +30 -0
- package/build/commands/tools/photo-session/{photo-session-recovery.command.d.ts → v2/photo-session-recovery.command.d.ts} +6 -6
- package/build/commands/tools/photo-session/v2/photo-session-recovery.command.js +17 -0
- package/build/commands/tools/photo-session/v2/photo-session.command.d.ts +278 -0
- package/build/commands/tools/photo-session/v2/photo-session.command.js +33 -0
- package/build/commands/tools/photo-session/v2/retry-photo-session-job.command.d.ts +66 -0
- package/build/commands/tools/photo-session/v2/retry-photo-session-job.command.js +15 -0
- package/build/commands/tools/photo-session/v2/set-reaction-to-photo-session-job.command.d.ts +71 -0
- package/build/commands/tools/photo-session/v2/set-reaction-to-photo-session-job.command.js +28 -0
- package/build/commands/tools/photo-session/v2/update-photo-session-job-favorite.command.d.ts +69 -0
- package/build/commands/tools/photo-session/v2/update-photo-session-job-favorite.command.js +17 -0
- package/build/commands/tools/photo-session/v2/update-photo-session-job-title.command.d.ts +162 -0
- package/build/commands/tools/photo-session/v2/update-photo-session-job-title.command.js +17 -0
- package/build/commands/tools/photo-session/v2/update-published-status-photo-session-job.command.d.ts +70 -0
- package/build/commands/tools/photo-session/v2/update-published-status-photo-session-job.command.js +23 -0
- package/build/commands/ui-notification/find-active-ui-notifications-by-page-and-user.command.d.ts +0 -4
- package/build/commands/ui-notification/find-ui-notifications.command.d.ts +0 -4
- package/build/helpers/photo-session/calculate-photo-session-price.helper.d.ts +2 -2
- package/build/models/tools/photo-session/identity.schema.d.ts +2 -4
- package/build/models/tools/photo-session/identity.schema.js +16 -12
- package/build/models/tools/photo-session/index.d.ts +1 -1
- package/build/models/tools/photo-session/index.js +2 -1
- package/build/models/tools/photo-session/photo-session-config.schema.d.ts +46 -200
- package/build/models/tools/photo-session/photo-session-config.schema.js +18 -51
- package/build/models/tools/photo-session/photo-session-group.schema.d.ts +9 -176
- package/build/models/tools/photo-session/photo-session-group.schema.js +9 -2
- package/build/models/tools/photo-session/photo-session-job.schema.d.ts +9 -11
- package/build/models/tools/photo-session/photo-session-job.schema.js +14 -8
- package/build/models/tools/photo-session/photo-session-model.schema.d.ts +1 -16
- package/build/models/tools/photo-session/photo-session-model.schema.js +22 -6
- package/build/models/tools/photo-session/photo-session-public.schema.d.ts +57 -169
- package/build/models/tools/photo-session/photo-session-public.schema.js +18 -39
- package/build/models/tools/photo-session/photo-session-style.schema.d.ts +18 -201
- package/build/models/tools/photo-session/photo-session-style.schema.js +17 -40
- package/build/models/tools/photo-session/v2/identity.schema.d.ts +4 -0
- package/build/models/tools/photo-session/v2/identity.schema.js +14 -0
- package/build/models/tools/photo-session/v2/index.d.ts +7 -0
- package/build/models/tools/photo-session/v2/index.js +23 -0
- package/build/models/tools/photo-session/v2/photo-session-config.schema.d.ts +303 -0
- package/build/models/tools/photo-session/v2/photo-session-config.schema.js +63 -0
- package/build/models/tools/photo-session/v2/photo-session-group.schema.d.ts +288 -0
- package/build/models/tools/photo-session/v2/photo-session-group.schema.js +28 -0
- package/build/models/tools/photo-session/v2/photo-session-job.schema.d.ts +169 -0
- package/build/models/tools/photo-session/v2/photo-session-job.schema.js +58 -0
- package/build/models/tools/photo-session/v2/photo-session-model.schema.d.ts +128 -0
- package/build/models/tools/photo-session/v2/photo-session-model.schema.js +39 -0
- package/build/models/tools/photo-session/v2/photo-session-public.schema.d.ts +326 -0
- package/build/models/tools/photo-session/v2/photo-session-public.schema.js +87 -0
- package/build/models/tools/photo-session/v2/photo-session-style.schema.d.ts +250 -0
- package/build/models/tools/photo-session/v2/photo-session-style.schema.js +60 -0
- package/build/models/ui-notification.schema.d.ts +0 -12
- package/build/models/ui-notification.schema.js +1 -6
- package/package.json +3 -3
- package/build/commands/tools/photo-session/photo-session-recovery.command.js +0 -17
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminPhotoSessionV2StyleSchema = exports.AdminPhotoSessionV2StyleReferenceSchema = exports.RawPhotoSessionV2StyleSchema = exports.PhotoSessionV2StyleSchema = exports.PhotoSessionV2StyleReferenceSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const identity_schema_1 = require("./identity.schema");
|
|
6
|
+
// HTTP catalogue images keep the original for enlargement and a separate thumbnail.
|
|
7
|
+
const PhotoSessionStyleIdentitySchema = identity_schema_1.PhotoSessionPublicCatalogSchema.omit({
|
|
8
|
+
aspectRatio: true,
|
|
9
|
+
}).extend({
|
|
10
|
+
participants: zod_1.z
|
|
11
|
+
.array(identity_schema_1.PhotoSessionPublicCatalogSchema.shape.participants.element.omit({
|
|
12
|
+
gender: true,
|
|
13
|
+
order: true,
|
|
14
|
+
}))
|
|
15
|
+
.min(1)
|
|
16
|
+
.max(3),
|
|
17
|
+
shots: zod_1.z
|
|
18
|
+
.array(identity_schema_1.PhotoSessionPublicCatalogSchema.shape.shots.element
|
|
19
|
+
.omit({ participants: true, aspectRatio: true })
|
|
20
|
+
.extend({
|
|
21
|
+
thumbnailUrl: zod_1.z.string().optional(),
|
|
22
|
+
preview: identity_schema_1.PhotoSessionPublicCatalogSchema.shape.shots.element.shape.preview
|
|
23
|
+
.omit({ assetId: true })
|
|
24
|
+
.strip(),
|
|
25
|
+
}))
|
|
26
|
+
.min(1),
|
|
27
|
+
});
|
|
28
|
+
exports.PhotoSessionV2StyleReferenceSchema = zod_1.z.object({
|
|
29
|
+
uuid: zod_1.z.uuid(),
|
|
30
|
+
photoUrl: zod_1.z.string(),
|
|
31
|
+
thumbnailUrl: zod_1.z.string(),
|
|
32
|
+
order: zod_1.z.number().int().min(0).max(5),
|
|
33
|
+
});
|
|
34
|
+
exports.PhotoSessionV2StyleSchema = zod_1.z.object({
|
|
35
|
+
identity: PhotoSessionStyleIdentitySchema.optional(),
|
|
36
|
+
uuid: zod_1.z.uuid(),
|
|
37
|
+
title: zod_1.z.string(),
|
|
38
|
+
description: zod_1.z.string().nullable().optional(),
|
|
39
|
+
// Legacy styles without identity still need their reference images.
|
|
40
|
+
references: zod_1.z.array(exports.PhotoSessionV2StyleReferenceSchema).optional(),
|
|
41
|
+
});
|
|
42
|
+
// Internal config and admin retain their original metadata and reference images.
|
|
43
|
+
exports.RawPhotoSessionV2StyleSchema = exports.PhotoSessionV2StyleSchema.extend({
|
|
44
|
+
identity: identity_schema_1.PhotoSessionPublicCatalogSchema.optional(),
|
|
45
|
+
code: zod_1.z.string(),
|
|
46
|
+
references: zod_1.z.array(exports.PhotoSessionV2StyleReferenceSchema.extend({
|
|
47
|
+
styleId: zod_1.z.uuid(),
|
|
48
|
+
createdAt: zod_1.z.coerce.date(),
|
|
49
|
+
updatedAt: zod_1.z.coerce.date(),
|
|
50
|
+
})),
|
|
51
|
+
createdAt: zod_1.z.coerce.date(),
|
|
52
|
+
updatedAt: zod_1.z.coerce.date(),
|
|
53
|
+
});
|
|
54
|
+
exports.AdminPhotoSessionV2StyleReferenceSchema = exports.RawPhotoSessionV2StyleSchema.shape.references.element.extend({
|
|
55
|
+
systemPrompt: zod_1.z.string(),
|
|
56
|
+
});
|
|
57
|
+
exports.AdminPhotoSessionV2StyleSchema = exports.RawPhotoSessionV2StyleSchema.extend({
|
|
58
|
+
identity: identity_schema_1.PhotoSessionCatalogSchema.optional(),
|
|
59
|
+
references: zod_1.z.array(exports.AdminPhotoSessionV2StyleReferenceSchema),
|
|
60
|
+
});
|
|
@@ -38,15 +38,7 @@ export declare const PromocodeOfferUiContentSchema: z.ZodObject<{
|
|
|
38
38
|
validTill: z.ZodNullable<z.ZodISODateTime>;
|
|
39
39
|
}, z.core.$strip>;
|
|
40
40
|
export type PromocodeOfferUiContent = z.infer<typeof PromocodeOfferUiContentSchema>;
|
|
41
|
-
export declare const SubscriptionRenewalReminderUiContentSchema: z.ZodObject<{
|
|
42
|
-
renewalDate: z.ZodISODateTime;
|
|
43
|
-
price: z.ZodNumber;
|
|
44
|
-
}, z.core.$strip>;
|
|
45
41
|
export declare const GenericUiContentSchema: z.ZodObject<{
|
|
46
|
-
renewalReminder: z.ZodOptional<z.ZodObject<{
|
|
47
|
-
renewalDate: z.ZodISODateTime;
|
|
48
|
-
price: z.ZodNumber;
|
|
49
|
-
}, z.core.$strip>>;
|
|
50
42
|
title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
51
43
|
message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
52
44
|
}, z.core.$strip>;
|
|
@@ -163,10 +155,6 @@ export declare const UiNotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
163
155
|
serverTime: z.ZodOptional<z.ZodDate>;
|
|
164
156
|
type: z.ZodLiteral<UI_NOTIFICATION_TYPE.GENERIC>;
|
|
165
157
|
dynamicUiContent: z.ZodObject<{
|
|
166
|
-
renewalReminder: z.ZodOptional<z.ZodObject<{
|
|
167
|
-
renewalDate: z.ZodISODateTime;
|
|
168
|
-
price: z.ZodNumber;
|
|
169
|
-
}, z.core.$strip>>;
|
|
170
158
|
title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
171
159
|
message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
|
|
172
160
|
}, z.core.$strip>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UiNotificationSchema = exports.LoyaltyLevelUpUiContentSchema = exports.BlogUpdateUiContentSchema = exports.EmailNotVerifiedUiContentSchema = exports.GenericUiContentSchema = exports.
|
|
3
|
+
exports.UiNotificationSchema = exports.LoyaltyLevelUpUiContentSchema = exports.BlogUpdateUiContentSchema = exports.EmailNotVerifiedUiContentSchema = exports.GenericUiContentSchema = exports.PromocodeOfferUiContentSchema = exports.FraudDetectedUiContentSchema = exports.SubscriptionPastDueUiContentSchema = exports.ConnectTelegramBonusUiContentSchema = exports.LocalizedUiNotificationTextSchema = exports.UiNotificationBaseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const localized_text_schema_1 = require("../helpers/localized-text.schema");
|
|
6
6
|
const constants_1 = require("../constants");
|
|
@@ -36,12 +36,7 @@ exports.PromocodeOfferUiContentSchema = zod_1.z.object({
|
|
|
36
36
|
bonusPercent: zod_1.z.number(),
|
|
37
37
|
validTill: zod_1.z.iso.datetime().nullable(),
|
|
38
38
|
});
|
|
39
|
-
exports.SubscriptionRenewalReminderUiContentSchema = zod_1.z.object({
|
|
40
|
-
renewalDate: zod_1.z.iso.datetime(),
|
|
41
|
-
price: zod_1.z.number().finite().nonnegative(),
|
|
42
|
-
});
|
|
43
39
|
exports.GenericUiContentSchema = zod_1.z.object({
|
|
44
|
-
renewalReminder: exports.SubscriptionRenewalReminderUiContentSchema.optional(),
|
|
45
40
|
title: exports.LocalizedUiNotificationTextSchema,
|
|
46
41
|
message: exports.LocalizedUiNotificationTextSchema,
|
|
47
42
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purpleschool/gptbot",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"author": "",
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@purpleschool/gptbot-tools": "0.4.
|
|
19
|
-
"@purpleschool/rugpt-lib-common": "0.0.
|
|
18
|
+
"@purpleschool/gptbot-tools": "0.4.36",
|
|
19
|
+
"@purpleschool/rugpt-lib-common": "0.0.120",
|
|
20
20
|
"zod": "4.6.5"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PhotoSessionRecoveryCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const gptbot_tools_1 = require("@purpleschool/gptbot-tools");
|
|
6
|
-
const models_1 = require("../../../models");
|
|
7
|
-
var PhotoSessionRecoveryCommand;
|
|
8
|
-
(function (PhotoSessionRecoveryCommand) {
|
|
9
|
-
PhotoSessionRecoveryCommand.QuoteRequestQuerySchema = zod_1.z.strictObject({
|
|
10
|
-
kind: gptbot_tools_1.ToolService.PhotoSessions.PhotoSessionRecovery.RequestSchema.shape.kind,
|
|
11
|
-
});
|
|
12
|
-
PhotoSessionRecoveryCommand.RequestBodySchema = zod_1.z.strictObject({});
|
|
13
|
-
PhotoSessionRecoveryCommand.QuoteResponseSchema = zod_1.z.object({
|
|
14
|
-
data: gptbot_tools_1.ToolService.PhotoSessions.PhotoSessionRecovery.QuoteSchema,
|
|
15
|
-
});
|
|
16
|
-
PhotoSessionRecoveryCommand.ResponseSchema = zod_1.z.object({ data: models_1.PhotoSessionPublicGroupSchema });
|
|
17
|
-
})(PhotoSessionRecoveryCommand || (exports.PhotoSessionRecoveryCommand = PhotoSessionRecoveryCommand = {}));
|