payload-plugin-newsletter 0.20.7 → 0.21.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/types.d.cts CHANGED
@@ -681,7 +681,6 @@ interface NewsletterPluginConfig {
681
681
  afterSubscribe?: (args: AfterSubscribeArgs) => void | Promise<void>;
682
682
  beforeUnsubscribe?: (args: BeforeUnsubscribeArgs) => void | Promise<void>;
683
683
  afterUnsubscribe?: (args: AfterUnsubscribeArgs) => void | Promise<void>;
684
- afterUnsubscribeSync?: (args: AfterUnsubscribeSyncArgs) => void | Promise<void>;
685
684
  };
686
685
  /**
687
686
  * UI component overrides
@@ -747,26 +746,6 @@ interface NewsletterPluginConfig {
747
746
  createMarkdownField?: boolean;
748
747
  };
749
748
  };
750
- /**
751
- * Unsubscribe sync configuration
752
- */
753
- unsubscribeSync?: {
754
- /**
755
- * Enable sync of unsubscribes from email service to Payload
756
- * @default false
757
- */
758
- enabled?: boolean;
759
- /**
760
- * Cron schedule for sync job (e.g., '0 * * * *' for hourly)
761
- * If not provided, job must be triggered manually
762
- */
763
- schedule?: string;
764
- /**
765
- * Queue name for the sync job
766
- * @default 'newsletter-sync'
767
- */
768
- queue?: string;
769
- };
770
749
  /**
771
750
  * Newsletter management configuration
772
751
  */
@@ -989,10 +968,6 @@ interface AfterUnsubscribeArgs {
989
968
  doc: Subscriber;
990
969
  req: any;
991
970
  }
992
- interface AfterUnsubscribeSyncArgs {
993
- req: any;
994
- syncedCount: number;
995
- }
996
971
  interface SurveyQuestion {
997
972
  id: string;
998
973
  question: string;
@@ -1046,4 +1021,4 @@ interface ExtendedPayloadRequest extends Request {
1046
1021
  };
1047
1022
  }
1048
1023
 
1049
- export { type AfterSubscribeArgs, type AfterUnsubscribeArgs, type AfterUnsubscribeSyncArgs, BaseBroadcastProvider, BaseNewsletterProvider, type BeforeSubscribeArgs, type BeforeUnsubscribeArgs, type Broadcast, type BroadcastAnalytics, type BroadcastCustomizations, BroadcastErrorCode, type BroadcastProvider, type BroadcastProviderCapabilities, type BroadcastProviderConfig, BroadcastProviderError, BroadcastStatus, type BroadcastTemplate, type BroadcastTemplateVariable, type CreateBroadcastInput, type CreateNewsletterInput, type CustomEmailWrapper, type EmailProvider, type EmailWrapperOptions, type ExtendedPayloadRequest, type ListBroadcastOptions, type ListBroadcastResponse, type ListNewsletterOptions, type ListNewsletterResponse, type MagicLinkEmailProps, type Newsletter, type NewsletterAnalytics, NewsletterErrorCode, type NewsletterPluginConfig, type NewsletterProvider, type NewsletterProviderCapabilities, NewsletterProviderError, NewsletterStatus, type NewsletterTemplate, type NewsletterTemplateVariable, type PreferencesFormProps, type ResendProviderConfig, type SendBroadcastOptions, type SendEmailParams, type SendNewsletterOptions, type SigninRequestData, type SignupFormProps, type SubscribeRequestData, type Subscriber, type SurveyQuestion, type UnsubscribeRequestData, type UpdateBroadcastInput, type UpdateNewsletterInput, type UpdatePreferencesRequestData, type VerifyMagicLinkRequestData, type WelcomeEmailProps };
1024
+ export { type AfterSubscribeArgs, type AfterUnsubscribeArgs, BaseBroadcastProvider, BaseNewsletterProvider, type BeforeSubscribeArgs, type BeforeUnsubscribeArgs, type Broadcast, type BroadcastAnalytics, type BroadcastCustomizations, BroadcastErrorCode, type BroadcastProvider, type BroadcastProviderCapabilities, type BroadcastProviderConfig, BroadcastProviderError, BroadcastStatus, type BroadcastTemplate, type BroadcastTemplateVariable, type CreateBroadcastInput, type CreateNewsletterInput, type CustomEmailWrapper, type EmailProvider, type EmailWrapperOptions, type ExtendedPayloadRequest, type ListBroadcastOptions, type ListBroadcastResponse, type ListNewsletterOptions, type ListNewsletterResponse, type MagicLinkEmailProps, type Newsletter, type NewsletterAnalytics, NewsletterErrorCode, type NewsletterPluginConfig, type NewsletterProvider, type NewsletterProviderCapabilities, NewsletterProviderError, NewsletterStatus, type NewsletterTemplate, type NewsletterTemplateVariable, type PreferencesFormProps, type ResendProviderConfig, type SendBroadcastOptions, type SendEmailParams, type SendNewsletterOptions, type SigninRequestData, type SignupFormProps, type SubscribeRequestData, type Subscriber, type SurveyQuestion, type UnsubscribeRequestData, type UpdateBroadcastInput, type UpdateNewsletterInput, type UpdatePreferencesRequestData, type VerifyMagicLinkRequestData, type WelcomeEmailProps };
package/dist/types.d.ts CHANGED
@@ -681,7 +681,6 @@ interface NewsletterPluginConfig {
681
681
  afterSubscribe?: (args: AfterSubscribeArgs) => void | Promise<void>;
682
682
  beforeUnsubscribe?: (args: BeforeUnsubscribeArgs) => void | Promise<void>;
683
683
  afterUnsubscribe?: (args: AfterUnsubscribeArgs) => void | Promise<void>;
684
- afterUnsubscribeSync?: (args: AfterUnsubscribeSyncArgs) => void | Promise<void>;
685
684
  };
686
685
  /**
687
686
  * UI component overrides
@@ -747,26 +746,6 @@ interface NewsletterPluginConfig {
747
746
  createMarkdownField?: boolean;
748
747
  };
749
748
  };
750
- /**
751
- * Unsubscribe sync configuration
752
- */
753
- unsubscribeSync?: {
754
- /**
755
- * Enable sync of unsubscribes from email service to Payload
756
- * @default false
757
- */
758
- enabled?: boolean;
759
- /**
760
- * Cron schedule for sync job (e.g., '0 * * * *' for hourly)
761
- * If not provided, job must be triggered manually
762
- */
763
- schedule?: string;
764
- /**
765
- * Queue name for the sync job
766
- * @default 'newsletter-sync'
767
- */
768
- queue?: string;
769
- };
770
749
  /**
771
750
  * Newsletter management configuration
772
751
  */
@@ -989,10 +968,6 @@ interface AfterUnsubscribeArgs {
989
968
  doc: Subscriber;
990
969
  req: any;
991
970
  }
992
- interface AfterUnsubscribeSyncArgs {
993
- req: any;
994
- syncedCount: number;
995
- }
996
971
  interface SurveyQuestion {
997
972
  id: string;
998
973
  question: string;
@@ -1046,4 +1021,4 @@ interface ExtendedPayloadRequest extends Request {
1046
1021
  };
1047
1022
  }
1048
1023
 
1049
- export { type AfterSubscribeArgs, type AfterUnsubscribeArgs, type AfterUnsubscribeSyncArgs, BaseBroadcastProvider, BaseNewsletterProvider, type BeforeSubscribeArgs, type BeforeUnsubscribeArgs, type Broadcast, type BroadcastAnalytics, type BroadcastCustomizations, BroadcastErrorCode, type BroadcastProvider, type BroadcastProviderCapabilities, type BroadcastProviderConfig, BroadcastProviderError, BroadcastStatus, type BroadcastTemplate, type BroadcastTemplateVariable, type CreateBroadcastInput, type CreateNewsletterInput, type CustomEmailWrapper, type EmailProvider, type EmailWrapperOptions, type ExtendedPayloadRequest, type ListBroadcastOptions, type ListBroadcastResponse, type ListNewsletterOptions, type ListNewsletterResponse, type MagicLinkEmailProps, type Newsletter, type NewsletterAnalytics, NewsletterErrorCode, type NewsletterPluginConfig, type NewsletterProvider, type NewsletterProviderCapabilities, NewsletterProviderError, NewsletterStatus, type NewsletterTemplate, type NewsletterTemplateVariable, type PreferencesFormProps, type ResendProviderConfig, type SendBroadcastOptions, type SendEmailParams, type SendNewsletterOptions, type SigninRequestData, type SignupFormProps, type SubscribeRequestData, type Subscriber, type SurveyQuestion, type UnsubscribeRequestData, type UpdateBroadcastInput, type UpdateNewsletterInput, type UpdatePreferencesRequestData, type VerifyMagicLinkRequestData, type WelcomeEmailProps };
1024
+ export { type AfterSubscribeArgs, type AfterUnsubscribeArgs, BaseBroadcastProvider, BaseNewsletterProvider, type BeforeSubscribeArgs, type BeforeUnsubscribeArgs, type Broadcast, type BroadcastAnalytics, type BroadcastCustomizations, BroadcastErrorCode, type BroadcastProvider, type BroadcastProviderCapabilities, type BroadcastProviderConfig, BroadcastProviderError, BroadcastStatus, type BroadcastTemplate, type BroadcastTemplateVariable, type CreateBroadcastInput, type CreateNewsletterInput, type CustomEmailWrapper, type EmailProvider, type EmailWrapperOptions, type ExtendedPayloadRequest, type ListBroadcastOptions, type ListBroadcastResponse, type ListNewsletterOptions, type ListNewsletterResponse, type MagicLinkEmailProps, type Newsletter, type NewsletterAnalytics, NewsletterErrorCode, type NewsletterPluginConfig, type NewsletterProvider, type NewsletterProviderCapabilities, NewsletterProviderError, NewsletterStatus, type NewsletterTemplate, type NewsletterTemplateVariable, type PreferencesFormProps, type ResendProviderConfig, type SendBroadcastOptions, type SendEmailParams, type SendNewsletterOptions, type SigninRequestData, type SignupFormProps, type SubscribeRequestData, type Subscriber, type SurveyQuestion, type UnsubscribeRequestData, type UpdateBroadcastInput, type UpdateNewsletterInput, type UpdatePreferencesRequestData, type VerifyMagicLinkRequestData, type WelcomeEmailProps };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "payload-plugin-newsletter",
3
- "version": "0.20.7",
3
+ "version": "0.21.0",
4
4
  "description": "Complete newsletter management plugin for Payload CMS with subscriber management, magic link authentication, and email service integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",