@purpleschool/gptbot 0.14.51 → 0.14.52

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.
@@ -99,6 +99,25 @@ export declare namespace FindActiveUiNotificationsByPageAndUserCommand {
99
99
  title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
100
100
  message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
101
101
  }, z.core.$strip>;
102
+ }, z.core.$strip>, z.ZodObject<{
103
+ uuid: z.ZodString;
104
+ userId: z.ZodNullable<z.ZodString>;
105
+ priority: z.ZodNumber;
106
+ isRead: z.ZodBoolean;
107
+ readAt: z.ZodNullable<z.ZodDate>;
108
+ status: z.ZodEnum<typeof import("../..").UI_NOTIFICATION_STATUS>;
109
+ conditionOfExecution: z.ZodEnum<typeof import("../..").UI_NOTIFICATION_CONDITION_OF_EXECUTION>;
110
+ endDate: z.ZodNullable<z.ZodDate>;
111
+ serverTime: z.ZodOptional<z.ZodDate>;
112
+ type: z.ZodLiteral<import("../..").UI_NOTIFICATION_TYPE.BLOG_UPDATE>;
113
+ dynamicUiContent: z.ZodObject<{
114
+ title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
115
+ preview: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
116
+ action: z.ZodObject<{
117
+ label: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
118
+ url: z.ZodString;
119
+ }, z.core.$strip>;
120
+ }, z.core.$strip>;
102
121
  }, z.core.$strip>], "type">>;
103
122
  }, z.core.$strip>;
104
123
  type Response = z.infer<typeof ResponseSchema>;
@@ -100,6 +100,25 @@ export declare namespace FindUiNotificationsCommand {
100
100
  title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
101
101
  message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
102
102
  }, z.core.$strip>;
103
+ }, z.core.$strip>, z.ZodObject<{
104
+ uuid: z.ZodString;
105
+ userId: z.ZodNullable<z.ZodString>;
106
+ priority: z.ZodNumber;
107
+ isRead: z.ZodBoolean;
108
+ readAt: z.ZodNullable<z.ZodDate>;
109
+ status: z.ZodEnum<typeof import("../..").UI_NOTIFICATION_STATUS>;
110
+ conditionOfExecution: z.ZodEnum<typeof import("../..").UI_NOTIFICATION_CONDITION_OF_EXECUTION>;
111
+ endDate: z.ZodNullable<z.ZodDate>;
112
+ serverTime: z.ZodOptional<z.ZodDate>;
113
+ type: z.ZodLiteral<import("../..").UI_NOTIFICATION_TYPE.BLOG_UPDATE>;
114
+ dynamicUiContent: z.ZodObject<{
115
+ title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
116
+ preview: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
117
+ action: z.ZodObject<{
118
+ label: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
119
+ url: z.ZodString;
120
+ }, z.core.$strip>;
121
+ }, z.core.$strip>;
103
122
  }, z.core.$strip>], "type">>;
104
123
  }, z.core.$strip>;
105
124
  type Response = z.infer<typeof ResponseSchema>;
@@ -4,5 +4,6 @@ export declare enum UI_NOTIFICATION_TYPE {
4
4
  FRAUD_DETECTED = "FRAUD_DETECTED",
5
5
  PROMOCODE_OFFER = "PROMOCODE_OFFER",
6
6
  EMAIL_NOT_VERIFIED = "EMAIL_NOT_VERIFIED",
7
- GENERIC = "GENERIC"
7
+ GENERIC = "GENERIC",
8
+ BLOG_UPDATE = "BLOG_UPDATE"
8
9
  }
@@ -9,4 +9,5 @@ var UI_NOTIFICATION_TYPE;
9
9
  UI_NOTIFICATION_TYPE["PROMOCODE_OFFER"] = "PROMOCODE_OFFER";
10
10
  UI_NOTIFICATION_TYPE["EMAIL_NOT_VERIFIED"] = "EMAIL_NOT_VERIFIED";
11
11
  UI_NOTIFICATION_TYPE["GENERIC"] = "GENERIC";
12
+ UI_NOTIFICATION_TYPE["BLOG_UPDATE"] = "BLOG_UPDATE";
12
13
  })(UI_NOTIFICATION_TYPE || (exports.UI_NOTIFICATION_TYPE = UI_NOTIFICATION_TYPE = {}));
@@ -48,6 +48,15 @@ export declare const EmailNotVerifiedUiContentSchema: z.ZodObject<{
48
48
  message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
49
49
  }, z.core.$strip>;
50
50
  export type EmailNotVerifiedUiContent = z.infer<typeof EmailNotVerifiedUiContentSchema>;
51
+ export declare const BlogUpdateUiContentSchema: z.ZodObject<{
52
+ title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
53
+ preview: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
54
+ action: z.ZodObject<{
55
+ label: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
56
+ url: z.ZodString;
57
+ }, z.core.$strip>;
58
+ }, z.core.$strip>;
59
+ export type BlogUpdateUiContent = z.infer<typeof BlogUpdateUiContentSchema>;
51
60
  export declare const UiNotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
52
61
  uuid: z.ZodString;
53
62
  userId: z.ZodNullable<z.ZodString>;
@@ -142,5 +151,24 @@ export declare const UiNotificationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
142
151
  title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
143
152
  message: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
144
153
  }, z.core.$strip>;
154
+ }, z.core.$strip>, z.ZodObject<{
155
+ uuid: z.ZodString;
156
+ userId: z.ZodNullable<z.ZodString>;
157
+ priority: z.ZodNumber;
158
+ isRead: z.ZodBoolean;
159
+ readAt: z.ZodNullable<z.ZodDate>;
160
+ status: z.ZodEnum<typeof UI_NOTIFICATION_STATUS>;
161
+ conditionOfExecution: z.ZodEnum<typeof UI_NOTIFICATION_CONDITION_OF_EXECUTION>;
162
+ endDate: z.ZodNullable<z.ZodDate>;
163
+ serverTime: z.ZodOptional<z.ZodDate>;
164
+ type: z.ZodLiteral<UI_NOTIFICATION_TYPE.BLOG_UPDATE>;
165
+ dynamicUiContent: z.ZodObject<{
166
+ title: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
167
+ preview: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
168
+ action: z.ZodObject<{
169
+ label: z.ZodObject<Record<import("@purpleschool/rugpt-lib-common").LOCALE, z.ZodString>, z.core.$strip>;
170
+ url: z.ZodString;
171
+ }, z.core.$strip>;
172
+ }, z.core.$strip>;
145
173
  }, z.core.$strip>], "type">;
146
174
  export type UiNotification = z.infer<typeof UiNotificationSchema>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UiNotificationSchema = exports.EmailNotVerifiedUiContentSchema = exports.GenericUiContentSchema = exports.PromocodeOfferUiContentSchema = exports.FraudDetectedUiContentSchema = exports.SubscriptionPastDueUiContentSchema = exports.ConnectTelegramBonusUiContentSchema = exports.LocalizedUiNotificationTextSchema = exports.UiNotificationBaseSchema = void 0;
3
+ exports.UiNotificationSchema = 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");
@@ -44,6 +44,14 @@ exports.EmailNotVerifiedUiContentSchema = zod_1.z.object({
44
44
  title: exports.LocalizedUiNotificationTextSchema,
45
45
  message: exports.LocalizedUiNotificationTextSchema,
46
46
  });
47
+ exports.BlogUpdateUiContentSchema = zod_1.z.object({
48
+ title: exports.LocalizedUiNotificationTextSchema,
49
+ preview: exports.LocalizedUiNotificationTextSchema,
50
+ action: zod_1.z.object({
51
+ label: exports.LocalizedUiNotificationTextSchema,
52
+ url: zod_1.z.string(),
53
+ }),
54
+ });
47
55
  exports.UiNotificationSchema = zod_1.z.discriminatedUnion('type', [
48
56
  exports.UiNotificationBaseSchema.extend({
49
57
  type: zod_1.z.literal(constants_1.UI_NOTIFICATION_TYPE.CONNECT_TELEGRAM_BONUS),
@@ -69,4 +77,8 @@ exports.UiNotificationSchema = zod_1.z.discriminatedUnion('type', [
69
77
  type: zod_1.z.literal(constants_1.UI_NOTIFICATION_TYPE.GENERIC),
70
78
  dynamicUiContent: exports.GenericUiContentSchema,
71
79
  }),
80
+ exports.UiNotificationBaseSchema.extend({
81
+ type: zod_1.z.literal(constants_1.UI_NOTIFICATION_TYPE.BLOG_UPDATE),
82
+ dynamicUiContent: exports.BlogUpdateUiContentSchema,
83
+ }),
72
84
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.14.51",
3
+ "version": "0.14.52",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",