payload-plugin-newsletter 0.22.0 → 0.24.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/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## [0.24.0] - 2025-08-08
2
+
3
+ ### Added
4
+ - **Skip welcome email for webhook imports**: Added `importedFromProvider` field to subscribers
5
+ - Set to `true` for all subscribers created via webhook events
6
+ - Allows projects to skip welcome emails for bulk imports from Broadcast
7
+ - Field is read-only in admin UI to prevent accidental changes
8
+
9
+ ## [0.23.0] - 2025-08-07
10
+
11
+ ### Added
12
+ - **Complete webhook sync for Broadcast subscribers**: Added support for three new webhook events
13
+ - `subscriber.created`: Syncs new subscribers created in Broadcast interface to Payload
14
+ - `subscriber.updated`: Syncs subscriber updates from Broadcast to Payload
15
+ - `subscriber.deleted`: Removes subscribers from Payload when deleted in Broadcast
16
+ - **Bidirectional sync**: Now provides complete two-way synchronization between Broadcast and Payload
17
+
18
+ ### Changed
19
+ - Enhanced webhook event handling to support all subscriber lifecycle events
20
+ - Improved logging for better webhook debugging
21
+
1
22
  ## [0.22.0] - 2025-08-07
2
23
 
3
24
  ### Changed
package/dist/client.d.ts CHANGED
@@ -12,6 +12,7 @@ interface Subscriber {
12
12
  [key: string]: boolean | undefined;
13
13
  };
14
14
  source?: string;
15
+ importedFromProvider?: boolean;
15
16
  utmParameters?: {
16
17
  source?: string;
17
18
  medium?: string;
@@ -2967,6 +2967,17 @@ var createSubscribersCollection = (pluginConfig) => {
2967
2967
  admin: {
2968
2968
  description: "Where the subscriber signed up from"
2969
2969
  }
2970
+ },
2971
+ // Import tracking
2972
+ {
2973
+ name: "importedFromProvider",
2974
+ type: "checkbox",
2975
+ defaultValue: false,
2976
+ admin: {
2977
+ description: "Indicates this subscriber was imported from an external provider via webhook",
2978
+ position: "sidebar",
2979
+ readOnly: true
2980
+ }
2970
2981
  }
2971
2982
  ];
2972
2983
  if (pluginConfig.features?.utmTracking?.enabled) {