@sankira-dev/event-types 1.0.2 → 1.2.0

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/dist/index.d.ts CHANGED
@@ -9,6 +9,26 @@ export declare const NotificationEventTypeSchema: z.ZodEnum<["comment_replied",
9
9
  export type NotificationEventType = z.infer<typeof NotificationEventTypeSchema>;
10
10
  export declare const BanTypeSchema: z.ZodEnum<["permanent", "temporary"]>;
11
11
  export type BanType = z.infer<typeof BanTypeSchema>;
12
+ export declare const CustomEmailRequestedSchema: z.ZodObject<{
13
+ email_subject: z.ZodString;
14
+ message: z.ZodString;
15
+ recipient_email: z.ZodString;
16
+ reply_to: z.ZodOptional<z.ZodString>;
17
+ requested_at: z.ZodDate;
18
+ }, "strip", z.ZodTypeAny, {
19
+ message: string;
20
+ email_subject: string;
21
+ recipient_email: string;
22
+ requested_at: Date;
23
+ reply_to?: string | undefined;
24
+ }, {
25
+ message: string;
26
+ email_subject: string;
27
+ recipient_email: string;
28
+ requested_at: Date;
29
+ reply_to?: string | undefined;
30
+ }>;
31
+ export type CustomEmailRequested = z.infer<typeof CustomEmailRequestedSchema>;
12
32
  export declare const UserSchema: z.ZodObject<{
13
33
  email: z.ZodString;
14
34
  first_name: z.ZodString;
@@ -628,10 +648,10 @@ export declare const FeedbackSubmittedSchema: z.ZodObject<{
628
648
  last_name: string;
629
649
  user_id: number;
630
650
  };
651
+ recipient_email: string;
631
652
  submitted_at: Date;
632
653
  contact_me: boolean;
633
654
  feedback_category: "other" | "bug" | "feature_request" | "general";
634
- recipient_email: string;
635
655
  user_profile_url: string;
636
656
  page_url?: string | undefined;
637
657
  }, {
@@ -643,10 +663,10 @@ export declare const FeedbackSubmittedSchema: z.ZodObject<{
643
663
  last_name: string;
644
664
  user_id: number;
645
665
  };
666
+ recipient_email: string;
646
667
  submitted_at: Date;
647
668
  contact_me: boolean;
648
669
  feedback_category: "other" | "bug" | "feature_request" | "general";
649
- recipient_email: string;
650
670
  user_profile_url: string;
651
671
  page_url?: string | undefined;
652
672
  }>;
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.EmailDigestSchema = exports.DigestItemSchema = exports.FeedbackSubmittedSchema = exports.WriterApplicationSubmittedSchema = exports.WriterApplicationRejectedSchema = exports.WriterApplicationAcceptedSchema = exports.UserUnbannedSchema = exports.UserBannedSchema = exports.TwoFactorOtpRequestedSchema = exports.StaffPostSubmittedSchema = exports.StaffPostRejectedSchema = exports.StaffPostApprovedSchema = exports.SignupLinkRequestedSchema = exports.PasswordResetSchema = exports.NotificationActorSchema = exports.ModerationReportResolvedSchema = exports.UserSchema = exports.BanTypeSchema = exports.NotificationEventTypeSchema = exports.NotificationEntityTypeSchema = exports.EntityTypeSchema = exports.FeedbackCategorySchema = void 0;
36
+ exports.EmailDigestSchema = exports.DigestItemSchema = exports.FeedbackSubmittedSchema = exports.WriterApplicationSubmittedSchema = exports.WriterApplicationRejectedSchema = exports.WriterApplicationAcceptedSchema = exports.UserUnbannedSchema = exports.UserBannedSchema = exports.TwoFactorOtpRequestedSchema = exports.StaffPostSubmittedSchema = exports.StaffPostRejectedSchema = exports.StaffPostApprovedSchema = exports.SignupLinkRequestedSchema = exports.PasswordResetSchema = exports.NotificationActorSchema = exports.ModerationReportResolvedSchema = exports.UserSchema = exports.CustomEmailRequestedSchema = exports.BanTypeSchema = exports.NotificationEventTypeSchema = exports.NotificationEntityTypeSchema = exports.EntityTypeSchema = exports.FeedbackCategorySchema = void 0;
37
37
  const z = __importStar(require("zod"));
38
38
  exports.FeedbackCategorySchema = z.enum([
39
39
  "bug",
@@ -64,6 +64,13 @@ exports.BanTypeSchema = z.enum([
64
64
  "permanent",
65
65
  "temporary",
66
66
  ]);
67
+ exports.CustomEmailRequestedSchema = z.object({
68
+ "email_subject": z.string(),
69
+ "message": z.string(),
70
+ "recipient_email": z.string(),
71
+ "reply_to": z.string().optional(),
72
+ "requested_at": z.coerce.date(),
73
+ });
67
74
  exports.UserSchema = z.object({
68
75
  "email": z.string(),
69
76
  "first_name": z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sankira-dev/event-types",
3
- "version": "1.0.2",
3
+ "version": "1.2.0",
4
4
  "description": "Event Types for Sankira",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,5 +20,5 @@
20
20
  "dependencies": {
21
21
  "zod": "^3.25.7"
22
22
  },
23
- "backendVersion": "v1.0.2"
23
+ "backendVersion": "v1.2.0"
24
24
  }