@purpleschool/gptbot 0.20.18-stage-2 → 0.20.19-stage-2

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.
@@ -40,7 +40,7 @@ export declare namespace CreatePhotoSessionV2StyleCommand {
40
40
  participants: z.ZodArray<z.ZodObject<{
41
41
  participantId: z.ZodUUID;
42
42
  order: z.ZodNumber;
43
- displayName: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof LOCALE>, z.ZodString>]>;
43
+ displayName: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>, z.ZodString>]>;
44
44
  gender: z.ZodEnum<{
45
45
  female: "female";
46
46
  male: "male";
@@ -56,7 +56,7 @@ export declare namespace CreatePhotoSessionV2StyleCommand {
56
56
  shots: z.ZodArray<z.ZodObject<{
57
57
  shotId: z.ZodUUID;
58
58
  order: z.ZodNumber;
59
- title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof LOCALE>, z.ZodString>]>;
59
+ title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>, z.ZodString>]>;
60
60
  preview: z.ZodObject<{
61
61
  assetId: z.ZodUUID;
62
62
  url: z.ZodURL;
@@ -151,7 +151,7 @@ export declare namespace CreatePhotoSessionV2StyleCommand {
151
151
  participants: z.ZodArray<z.ZodObject<{
152
152
  participantId: z.ZodUUID;
153
153
  order: z.ZodNumber;
154
- displayName: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof LOCALE>, z.ZodString>]>;
154
+ displayName: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>, z.ZodString>]>;
155
155
  gender: z.ZodEnum<{
156
156
  female: "female";
157
157
  male: "male";
@@ -167,7 +167,7 @@ export declare namespace CreatePhotoSessionV2StyleCommand {
167
167
  shots: z.ZodArray<z.ZodObject<{
168
168
  shotId: z.ZodUUID;
169
169
  order: z.ZodNumber;
170
- title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof LOCALE>, z.ZodString>]>;
170
+ title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>, z.ZodString>]>;
171
171
  preview: z.ZodObject<{
172
172
  assetId: z.ZodUUID;
173
173
  url: z.ZodURL;
@@ -66,7 +66,7 @@ export declare namespace ListPhotoSessionV2StylesCommand {
66
66
  participants: z.ZodArray<z.ZodObject<{
67
67
  participantId: z.ZodUUID;
68
68
  order: z.ZodNumber;
69
- displayName: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof LOCALE>, z.ZodString>]>;
69
+ displayName: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>, z.ZodString>]>;
70
70
  gender: z.ZodEnum<{
71
71
  female: "female";
72
72
  male: "male";
@@ -82,7 +82,7 @@ export declare namespace ListPhotoSessionV2StylesCommand {
82
82
  shots: z.ZodArray<z.ZodObject<{
83
83
  shotId: z.ZodUUID;
84
84
  order: z.ZodNumber;
85
- title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof LOCALE>, z.ZodString>]>;
85
+ title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>, z.ZodString>]>;
86
86
  preview: z.ZodObject<{
87
87
  assetId: z.ZodUUID;
88
88
  url: z.ZodURL;
@@ -39,7 +39,7 @@ export declare namespace UpdatePhotoSessionV2StyleCommand {
39
39
  participants: z.ZodArray<z.ZodObject<{
40
40
  participantId: z.ZodUUID;
41
41
  order: z.ZodNumber;
42
- displayName: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof LOCALE>, z.ZodString>]>;
42
+ displayName: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>, z.ZodString>]>;
43
43
  gender: z.ZodEnum<{
44
44
  female: "female";
45
45
  male: "male";
@@ -55,7 +55,7 @@ export declare namespace UpdatePhotoSessionV2StyleCommand {
55
55
  shots: z.ZodArray<z.ZodObject<{
56
56
  shotId: z.ZodUUID;
57
57
  order: z.ZodNumber;
58
- title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof LOCALE>, z.ZodString>]>;
58
+ title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>, z.ZodString>]>;
59
59
  preview: z.ZodObject<{
60
60
  assetId: z.ZodUUID;
61
61
  url: z.ZodURL;
@@ -150,7 +150,7 @@ export declare namespace UpdatePhotoSessionV2StyleCommand {
150
150
  participants: z.ZodArray<z.ZodObject<{
151
151
  participantId: z.ZodUUID;
152
152
  order: z.ZodNumber;
153
- displayName: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof LOCALE>, z.ZodString>]>;
153
+ displayName: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>, z.ZodString>]>;
154
154
  gender: z.ZodEnum<{
155
155
  female: "female";
156
156
  male: "male";
@@ -166,7 +166,7 @@ export declare namespace UpdatePhotoSessionV2StyleCommand {
166
166
  shots: z.ZodArray<z.ZodObject<{
167
167
  shotId: z.ZodUUID;
168
168
  order: z.ZodNumber;
169
- title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof LOCALE>, z.ZodString>]>;
169
+ title: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodEnum<typeof import("@purpleschool/rugpt-lib-common").LOCALE>, z.ZodString>]>;
170
170
  preview: z.ZodObject<{
171
171
  assetId: z.ZodUUID;
172
172
  url: z.ZodURL;
@@ -96,6 +96,11 @@ export declare namespace FindActiveUiNotificationsByPageAndUserCommand {
96
96
  serverTime: z.ZodOptional<z.ZodDate>;
97
97
  type: z.ZodLiteral<import("../..").UI_NOTIFICATION_TYPE.GENERIC>;
98
98
  dynamicUiContent: z.ZodObject<{
99
+ renewalReminder: z.ZodOptional<z.ZodObject<{
100
+ currency: z.ZodOptional<z.ZodString>;
101
+ renewalDate: z.ZodISODateTime;
102
+ price: z.ZodNumber;
103
+ }, z.core.$strip>>;
99
104
  title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
100
105
  message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
101
106
  }, z.core.$strip>;
@@ -97,6 +97,11 @@ export declare namespace FindUiNotificationsCommand {
97
97
  serverTime: z.ZodOptional<z.ZodDate>;
98
98
  type: z.ZodLiteral<import("../..").UI_NOTIFICATION_TYPE.GENERIC>;
99
99
  dynamicUiContent: z.ZodObject<{
100
+ renewalReminder: z.ZodOptional<z.ZodObject<{
101
+ currency: z.ZodOptional<z.ZodString>;
102
+ renewalDate: z.ZodISODateTime;
103
+ price: z.ZodNumber;
104
+ }, z.core.$strip>>;
100
105
  title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
101
106
  message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
102
107
  }, z.core.$strip>;
@@ -38,7 +38,17 @@ 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
+ currency: z.ZodOptional<z.ZodString>;
43
+ renewalDate: z.ZodISODateTime;
44
+ price: z.ZodNumber;
45
+ }, z.core.$strip>;
41
46
  export declare const GenericUiContentSchema: z.ZodObject<{
47
+ renewalReminder: z.ZodOptional<z.ZodObject<{
48
+ currency: z.ZodOptional<z.ZodString>;
49
+ renewalDate: z.ZodISODateTime;
50
+ price: z.ZodNumber;
51
+ }, z.core.$strip>>;
42
52
  title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
43
53
  message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
44
54
  }, z.core.$strip>;
@@ -155,6 +165,11 @@ export declare const UiNotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
155
165
  serverTime: z.ZodOptional<z.ZodDate>;
156
166
  type: z.ZodLiteral<UI_NOTIFICATION_TYPE.GENERIC>;
157
167
  dynamicUiContent: z.ZodObject<{
168
+ renewalReminder: z.ZodOptional<z.ZodObject<{
169
+ currency: z.ZodOptional<z.ZodString>;
170
+ renewalDate: z.ZodISODateTime;
171
+ price: z.ZodNumber;
172
+ }, z.core.$strip>>;
158
173
  title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
159
174
  message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
160
175
  }, 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.PromocodeOfferUiContentSchema = exports.FraudDetectedUiContentSchema = exports.SubscriptionPastDueUiContentSchema = exports.ConnectTelegramBonusUiContentSchema = exports.LocalizedUiNotificationTextSchema = exports.UiNotificationBaseSchema = void 0;
3
+ exports.UiNotificationSchema = exports.LoyaltyLevelUpUiContentSchema = exports.BlogUpdateUiContentSchema = exports.EmailNotVerifiedUiContentSchema = exports.GenericUiContentSchema = exports.SubscriptionRenewalReminderUiContentSchema = 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,7 +36,16 @@ 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
+ currency: zod_1.z
41
+ .string()
42
+ .regex(/^[A-Z]{3}$/)
43
+ .optional(),
44
+ renewalDate: zod_1.z.iso.datetime(),
45
+ price: zod_1.z.number().finite().nonnegative(),
46
+ });
39
47
  exports.GenericUiContentSchema = zod_1.z.object({
48
+ renewalReminder: exports.SubscriptionRenewalReminderUiContentSchema.optional(),
40
49
  title: exports.LocalizedUiNotificationTextSchema,
41
50
  message: exports.LocalizedUiNotificationTextSchema,
42
51
  });
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
- "name": "@purpleschool/gptbot",
3
- "version": "0.20.18-stage-2",
4
- "description": "",
5
- "main": "build/index.js",
6
- "types": "build/index.d.ts",
7
- "files": [
8
- "build"
9
- ],
10
- "scripts": {
11
- "prepublish": "rm -rf build && tsc",
12
- "build": "tsc"
13
- },
14
- "keywords": [],
15
- "author": "",
16
- "license": "ISC",
17
- "dependencies": {
18
- "@purpleschool/gptbot-tools": "0.4.38-stage-2",
19
- "@purpleschool/rugpt-lib-common": "0.0.120",
20
- "zod": "4.6.5"
21
- }
22
- }
2
+ "name": "@purpleschool/gptbot",
3
+ "version": "0.20.19-stage-2",
4
+ "description": "",
5
+ "main": "build/index.js",
6
+ "types": "build/index.d.ts",
7
+ "files": [
8
+ "build"
9
+ ],
10
+ "scripts": {
11
+ "prepublish": "rm -rf build && tsc",
12
+ "build": "tsc"
13
+ },
14
+ "keywords": [],
15
+ "author": "",
16
+ "license": "ISC",
17
+ "dependencies": {
18
+ "@purpleschool/gptbot-tools": "0.4.39-stage-2",
19
+ "@purpleschool/rugpt-lib-common": "^0.0.123",
20
+ "zod": "4.6.5"
21
+ }
22
+ }