@plyaz/types 1.45.7 → 1.45.9

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.
@@ -581,7 +581,47 @@ var MAX_REFERENCE_TYPE_LENGTH = 50;
581
581
  var MAX_PROVIDER_LENGTH = 50;
582
582
  var PAGINATION_MAX_LIMIT = 100;
583
583
  var PAGINATION_DEFAULT_LIMIT = 20;
584
- var NotificationTypeSchema = z.enum(["CAMPAIGN_BACKED", "SYSTEM"]);
584
+ var NotificationTypeSchema = z.enum([
585
+ "CAMPAIGN_BACKED",
586
+ "NEW_FOLLOWER",
587
+ "POST_LIKED",
588
+ "POST_COMMENTED",
589
+ "COMMENT_REPLY",
590
+ "CAMPAIGN_UPDATE",
591
+ "PAYMENT_RECEIVED",
592
+ "PAYMENT_FAILED",
593
+ "ACHIEVEMENT_UNLOCKED",
594
+ "MILESTONE_REACHED",
595
+ "CAMPAIGN_FUNDED",
596
+ "SUBSCRIPTION_RENEWED",
597
+ "SUBSCRIPTION_CANCELED",
598
+ // Admin/moderation
599
+ "CAMPAIGN_APPROVED",
600
+ "CAMPAIGN_REJECTED",
601
+ "NEW_CONTRIBUTION",
602
+ "MILESTONE_SUBMITTED",
603
+ "MILESTONE_APPROVED",
604
+ "MILESTONE_REJECTED",
605
+ // Withdrawal
606
+ "WITHDRAWAL_REQUESTED",
607
+ "WITHDRAWAL_APPROVED",
608
+ "WITHDRAWAL_REJECTED",
609
+ "WITHDRAWAL_COMPLETED",
610
+ "WITHDRAWAL_FAILED",
611
+ // KYC
612
+ "KYC_REQUIRED",
613
+ "KYC_SUBMITTED",
614
+ "KYC_APPROVED",
615
+ "KYC_REJECTED",
616
+ "KYC_EXPIRING",
617
+ // Refund
618
+ "REFUND_REQUESTED",
619
+ "REFUND_APPROVED",
620
+ "REFUND_REJECTED",
621
+ "REFUND_COMPLETED",
622
+ // System (adding for general notifications)
623
+ "SYSTEM"
624
+ ]);
585
625
  var NotificationChannelSchema = z.enum(["IN_APP", "EMAIL", "SMS", "PUSH"]);
586
626
  var NotificationStatusSchema = z.enum([
587
627
  "queued",
@@ -649,20 +689,20 @@ var QueryNotificationsSchema = z.object({
649
689
  created_before: z.string().optional()
650
690
  });
651
691
  var CreateNotificationsSchema = z.object({
652
- user_id: z.string().uuid(),
692
+ userId: z.string().uuid(),
653
693
  type: NotificationTypeSchema,
654
694
  title: z.string().max(MAX_TITLE_LENGTH),
655
695
  message: z.string(),
656
- link_url: z.string().optional(),
657
- reference_id: z.string().uuid().optional(),
658
- reference_type: z.string().max(MAX_REFERENCE_TYPE_LENGTH).optional(),
659
- correlation_id: z.string().max(MAX_STRING_LENGTH).optional(),
660
- recipient_id: z.string().max(MAX_STRING_LENGTH),
661
- template_id: z.string().max(MAX_STRING_LENGTH).optional(),
696
+ linkUrl: z.string().optional(),
697
+ referenceId: z.string().uuid().optional(),
698
+ referenceType: z.string().max(MAX_REFERENCE_TYPE_LENGTH).optional(),
699
+ correlationId: z.string().max(MAX_STRING_LENGTH).optional(),
700
+ recipientId: z.string().max(MAX_STRING_LENGTH),
701
+ templateId: z.string().max(MAX_STRING_LENGTH).optional(),
662
702
  channel: NotificationChannelSchema.optional(),
663
703
  category: NotificationCategorySchema.optional(),
664
704
  provider: z.string().max(MAX_PROVIDER_LENGTH).optional(),
665
- provider_message_id: z.string().max(MAX_STRING_LENGTH).optional()
705
+ providerMessageId: z.string().max(MAX_STRING_LENGTH).optional()
666
706
  });
667
707
 
668
708
  // src/core/domain/notifications/streaming.ts