@djangocfg/ext-newsletter 1.0.14 → 1.0.19

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/config.cjs CHANGED
@@ -27,7 +27,7 @@ var import_ext_base = require("@djangocfg/ext-base");
27
27
  // package.json
28
28
  var package_default = {
29
29
  name: "@djangocfg/ext-newsletter",
30
- version: "1.0.14",
30
+ version: "1.0.19",
31
31
  description: "Newsletter and subscription management extension for DjangoCFG",
32
32
  keywords: [
33
33
  "django",
@@ -96,7 +96,7 @@ var package_default = {
96
96
  react: "^19",
97
97
  "react-dom": "^19",
98
98
  swr: "^2.3.7",
99
- zod: "^4.1.13"
99
+ zod: "^4.3.4"
100
100
  },
101
101
  devDependencies: {
102
102
  "@djangocfg/api": "workspace:*",
package/dist/config.js CHANGED
@@ -4,7 +4,7 @@ import { createExtensionConfig } from "@djangocfg/ext-base";
4
4
  // package.json
5
5
  var package_default = {
6
6
  name: "@djangocfg/ext-newsletter",
7
- version: "1.0.14",
7
+ version: "1.0.19",
8
8
  description: "Newsletter and subscription management extension for DjangoCFG",
9
9
  keywords: [
10
10
  "django",
@@ -73,7 +73,7 @@ var package_default = {
73
73
  react: "^19",
74
74
  "react-dom": "^19",
75
75
  swr: "^2.3.7",
76
- zod: "^4.1.13"
76
+ zod: "^4.3.4"
77
77
  },
78
78
  devDependencies: {
79
79
  "@djangocfg/api": "workspace:*",
package/dist/hooks.cjs CHANGED
@@ -1028,8 +1028,8 @@ var EmailLogSchema = zod.z.object({
1028
1028
  subject: zod.z.string(),
1029
1029
  body: zod.z.string(),
1030
1030
  status: zod.z.nativeEnum(EmailLogStatus),
1031
- created_at: zod.z.iso.datetime(),
1032
- sent_at: zod.z.iso.datetime().nullable(),
1031
+ created_at: zod.z.string().datetime({ offset: true }),
1032
+ sent_at: zod.z.string().datetime({ offset: true }).nullable(),
1033
1033
  error_message: zod.z.string().nullable()
1034
1034
  });
1035
1035
  var ErrorResponseSchema = zod.z.object({
@@ -1042,8 +1042,8 @@ var NewsletterSchema = zod.z.object({
1042
1042
  description: zod.z.string().optional(),
1043
1043
  is_active: zod.z.boolean().optional(),
1044
1044
  auto_subscribe: zod.z.boolean().optional(),
1045
- created_at: zod.z.iso.datetime(),
1046
- updated_at: zod.z.iso.datetime(),
1045
+ created_at: zod.z.string().datetime({ offset: true }),
1046
+ updated_at: zod.z.string().datetime({ offset: true }),
1047
1047
  subscribers_count: zod.z.int()
1048
1048
  });
1049
1049
  var NewsletterCampaignSchema = zod.z.object({
@@ -1058,8 +1058,8 @@ var NewsletterCampaignSchema = zod.z.object({
1058
1058
  button_url: zod.z.union([zod.z.url(), zod.z.literal("")]).optional(),
1059
1059
  secondary_text: zod.z.string().optional(),
1060
1060
  status: zod.z.nativeEnum(NewsletterCampaignStatus),
1061
- created_at: zod.z.iso.datetime(),
1062
- sent_at: zod.z.iso.datetime().nullable(),
1061
+ created_at: zod.z.string().datetime({ offset: true }),
1062
+ sent_at: zod.z.string().datetime({ offset: true }).nullable(),
1063
1063
  recipient_count: zod.z.int()
1064
1064
  });
1065
1065
  var NewsletterCampaignRequestSchema = zod.z.object({
@@ -1080,8 +1080,8 @@ var NewsletterSubscriptionSchema = zod.z.object({
1080
1080
  user_email: zod.z.string(),
1081
1081
  email: zod.z.email(),
1082
1082
  is_active: zod.z.boolean().optional(),
1083
- subscribed_at: zod.z.iso.datetime(),
1084
- unsubscribed_at: zod.z.iso.datetime().nullable()
1083
+ subscribed_at: zod.z.string().datetime({ offset: true }),
1084
+ unsubscribed_at: zod.z.string().datetime({ offset: true }).nullable()
1085
1085
  });
1086
1086
  var PaginatedEmailLogListSchema = zod.z.object({
1087
1087
  count: zod.z.int(),
@@ -2124,7 +2124,7 @@ var apiNewsletter = api.createExtensionAPI(API);
2124
2124
  // package.json
2125
2125
  var package_default = {
2126
2126
  name: "@djangocfg/ext-newsletter",
2127
- version: "1.0.14",
2127
+ version: "1.0.19",
2128
2128
  description: "Newsletter and subscription management extension for DjangoCFG",
2129
2129
  keywords: [
2130
2130
  "django",
@@ -2193,7 +2193,7 @@ var package_default = {
2193
2193
  react: "^19",
2194
2194
  "react-dom": "^19",
2195
2195
  swr: "^2.3.7",
2196
- zod: "^4.1.13"
2196
+ zod: "^4.3.4"
2197
2197
  },
2198
2198
  devDependencies: {
2199
2199
  "@djangocfg/api": "workspace:*",
package/dist/hooks.js CHANGED
@@ -1021,8 +1021,8 @@ var EmailLogSchema = z.object({
1021
1021
  subject: z.string(),
1022
1022
  body: z.string(),
1023
1023
  status: z.nativeEnum(EmailLogStatus),
1024
- created_at: z.iso.datetime(),
1025
- sent_at: z.iso.datetime().nullable(),
1024
+ created_at: z.string().datetime({ offset: true }),
1025
+ sent_at: z.string().datetime({ offset: true }).nullable(),
1026
1026
  error_message: z.string().nullable()
1027
1027
  });
1028
1028
  var ErrorResponseSchema = z.object({
@@ -1035,8 +1035,8 @@ var NewsletterSchema = z.object({
1035
1035
  description: z.string().optional(),
1036
1036
  is_active: z.boolean().optional(),
1037
1037
  auto_subscribe: z.boolean().optional(),
1038
- created_at: z.iso.datetime(),
1039
- updated_at: z.iso.datetime(),
1038
+ created_at: z.string().datetime({ offset: true }),
1039
+ updated_at: z.string().datetime({ offset: true }),
1040
1040
  subscribers_count: z.int()
1041
1041
  });
1042
1042
  var NewsletterCampaignSchema = z.object({
@@ -1051,8 +1051,8 @@ var NewsletterCampaignSchema = z.object({
1051
1051
  button_url: z.union([z.url(), z.literal("")]).optional(),
1052
1052
  secondary_text: z.string().optional(),
1053
1053
  status: z.nativeEnum(NewsletterCampaignStatus),
1054
- created_at: z.iso.datetime(),
1055
- sent_at: z.iso.datetime().nullable(),
1054
+ created_at: z.string().datetime({ offset: true }),
1055
+ sent_at: z.string().datetime({ offset: true }).nullable(),
1056
1056
  recipient_count: z.int()
1057
1057
  });
1058
1058
  var NewsletterCampaignRequestSchema = z.object({
@@ -1073,8 +1073,8 @@ var NewsletterSubscriptionSchema = z.object({
1073
1073
  user_email: z.string(),
1074
1074
  email: z.email(),
1075
1075
  is_active: z.boolean().optional(),
1076
- subscribed_at: z.iso.datetime(),
1077
- unsubscribed_at: z.iso.datetime().nullable()
1076
+ subscribed_at: z.string().datetime({ offset: true }),
1077
+ unsubscribed_at: z.string().datetime({ offset: true }).nullable()
1078
1078
  });
1079
1079
  var PaginatedEmailLogListSchema = z.object({
1080
1080
  count: z.int(),
@@ -2117,7 +2117,7 @@ var apiNewsletter = createExtensionAPI(API);
2117
2117
  // package.json
2118
2118
  var package_default = {
2119
2119
  name: "@djangocfg/ext-newsletter",
2120
- version: "1.0.14",
2120
+ version: "1.0.19",
2121
2121
  description: "Newsletter and subscription management extension for DjangoCFG",
2122
2122
  keywords: [
2123
2123
  "django",
@@ -2186,7 +2186,7 @@ var package_default = {
2186
2186
  react: "^19",
2187
2187
  "react-dom": "^19",
2188
2188
  swr: "^2.3.7",
2189
- zod: "^4.1.13"
2189
+ zod: "^4.3.4"
2190
2190
  },
2191
2191
  devDependencies: {
2192
2192
  "@djangocfg/api": "workspace:*",
package/dist/index.cjs CHANGED
@@ -1021,8 +1021,8 @@ var EmailLogSchema = zod.z.object({
1021
1021
  subject: zod.z.string(),
1022
1022
  body: zod.z.string(),
1023
1023
  status: zod.z.nativeEnum(EmailLogStatus),
1024
- created_at: zod.z.iso.datetime(),
1025
- sent_at: zod.z.iso.datetime().nullable(),
1024
+ created_at: zod.z.string().datetime({ offset: true }),
1025
+ sent_at: zod.z.string().datetime({ offset: true }).nullable(),
1026
1026
  error_message: zod.z.string().nullable()
1027
1027
  });
1028
1028
  var ErrorResponseSchema = zod.z.object({
@@ -1035,8 +1035,8 @@ var NewsletterSchema = zod.z.object({
1035
1035
  description: zod.z.string().optional(),
1036
1036
  is_active: zod.z.boolean().optional(),
1037
1037
  auto_subscribe: zod.z.boolean().optional(),
1038
- created_at: zod.z.iso.datetime(),
1039
- updated_at: zod.z.iso.datetime(),
1038
+ created_at: zod.z.string().datetime({ offset: true }),
1039
+ updated_at: zod.z.string().datetime({ offset: true }),
1040
1040
  subscribers_count: zod.z.int()
1041
1041
  });
1042
1042
  var NewsletterCampaignSchema = zod.z.object({
@@ -1051,8 +1051,8 @@ var NewsletterCampaignSchema = zod.z.object({
1051
1051
  button_url: zod.z.union([zod.z.url(), zod.z.literal("")]).optional(),
1052
1052
  secondary_text: zod.z.string().optional(),
1053
1053
  status: zod.z.nativeEnum(NewsletterCampaignStatus),
1054
- created_at: zod.z.iso.datetime(),
1055
- sent_at: zod.z.iso.datetime().nullable(),
1054
+ created_at: zod.z.string().datetime({ offset: true }),
1055
+ sent_at: zod.z.string().datetime({ offset: true }).nullable(),
1056
1056
  recipient_count: zod.z.int()
1057
1057
  });
1058
1058
  var NewsletterCampaignRequestSchema = zod.z.object({
@@ -1073,8 +1073,8 @@ var NewsletterSubscriptionSchema = zod.z.object({
1073
1073
  user_email: zod.z.string(),
1074
1074
  email: zod.z.email(),
1075
1075
  is_active: zod.z.boolean().optional(),
1076
- subscribed_at: zod.z.iso.datetime(),
1077
- unsubscribed_at: zod.z.iso.datetime().nullable()
1076
+ subscribed_at: zod.z.string().datetime({ offset: true }),
1077
+ unsubscribed_at: zod.z.string().datetime({ offset: true }).nullable()
1078
1078
  });
1079
1079
  var PaginatedEmailLogListSchema = zod.z.object({
1080
1080
  count: zod.z.int(),
@@ -2117,7 +2117,7 @@ var apiNewsletter = api.createExtensionAPI(API);
2117
2117
  // package.json
2118
2118
  var package_default = {
2119
2119
  name: "@djangocfg/ext-newsletter",
2120
- version: "1.0.14",
2120
+ version: "1.0.19",
2121
2121
  description: "Newsletter and subscription management extension for DjangoCFG",
2122
2122
  keywords: [
2123
2123
  "django",
@@ -2186,7 +2186,7 @@ var package_default = {
2186
2186
  react: "^19",
2187
2187
  "react-dom": "^19",
2188
2188
  swr: "^2.3.7",
2189
- zod: "^4.1.13"
2189
+ zod: "^4.3.4"
2190
2190
  },
2191
2191
  devDependencies: {
2192
2192
  "@djangocfg/api": "workspace:*",
package/dist/index.d.cts CHANGED
@@ -1030,8 +1030,8 @@ declare const EmailLogSchema: z.ZodObject<{
1030
1030
  subject: z.ZodString;
1031
1031
  body: z.ZodString;
1032
1032
  status: z.ZodEnum<typeof EmailLogStatus>;
1033
- created_at: z.ZodISODateTime;
1034
- sent_at: z.ZodNullable<z.ZodISODateTime>;
1033
+ created_at: z.ZodString;
1034
+ sent_at: z.ZodNullable<z.ZodString>;
1035
1035
  error_message: z.ZodNullable<z.ZodString>;
1036
1036
  }, z.core.$strip>;
1037
1037
  /**
@@ -1074,8 +1074,8 @@ declare const NewsletterSchema: z.ZodObject<{
1074
1074
  description: z.ZodOptional<z.ZodString>;
1075
1075
  is_active: z.ZodOptional<z.ZodBoolean>;
1076
1076
  auto_subscribe: z.ZodOptional<z.ZodBoolean>;
1077
- created_at: z.ZodISODateTime;
1078
- updated_at: z.ZodISODateTime;
1077
+ created_at: z.ZodString;
1078
+ updated_at: z.ZodString;
1079
1079
  subscribers_count: z.ZodInt;
1080
1080
  }, z.core.$strip>;
1081
1081
  /**
@@ -1105,8 +1105,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
1105
1105
  button_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1106
1106
  secondary_text: z.ZodOptional<z.ZodString>;
1107
1107
  status: z.ZodEnum<typeof NewsletterCampaignStatus>;
1108
- created_at: z.ZodISODateTime;
1109
- sent_at: z.ZodNullable<z.ZodISODateTime>;
1108
+ created_at: z.ZodString;
1109
+ sent_at: z.ZodNullable<z.ZodString>;
1110
1110
  recipient_count: z.ZodInt;
1111
1111
  }, z.core.$strip>;
1112
1112
  /**
@@ -1157,8 +1157,8 @@ declare const NewsletterSubscriptionSchema: z.ZodObject<{
1157
1157
  user_email: z.ZodString;
1158
1158
  email: z.ZodEmail;
1159
1159
  is_active: z.ZodOptional<z.ZodBoolean>;
1160
- subscribed_at: z.ZodISODateTime;
1161
- unsubscribed_at: z.ZodNullable<z.ZodISODateTime>;
1160
+ subscribed_at: z.ZodString;
1161
+ unsubscribed_at: z.ZodNullable<z.ZodString>;
1162
1162
  }, z.core.$strip>;
1163
1163
  /**
1164
1164
  * Infer TypeScript type from Zod schema
@@ -1184,8 +1184,8 @@ declare const PaginatedEmailLogListSchema: z.ZodObject<{
1184
1184
  subject: z.ZodString;
1185
1185
  body: z.ZodString;
1186
1186
  status: z.ZodEnum<typeof EmailLogStatus>;
1187
- created_at: z.ZodISODateTime;
1188
- sent_at: z.ZodNullable<z.ZodISODateTime>;
1187
+ created_at: z.ZodString;
1188
+ sent_at: z.ZodNullable<z.ZodString>;
1189
1189
  error_message: z.ZodNullable<z.ZodString>;
1190
1190
  }, z.core.$strip>>;
1191
1191
  }, z.core.$strip>;
@@ -1215,8 +1215,8 @@ declare const PaginatedNewsletterCampaignListSchema: z.ZodObject<{
1215
1215
  button_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1216
1216
  secondary_text: z.ZodOptional<z.ZodString>;
1217
1217
  status: z.ZodEnum<typeof NewsletterCampaignStatus>;
1218
- created_at: z.ZodISODateTime;
1219
- sent_at: z.ZodNullable<z.ZodISODateTime>;
1218
+ created_at: z.ZodString;
1219
+ sent_at: z.ZodNullable<z.ZodString>;
1220
1220
  recipient_count: z.ZodInt;
1221
1221
  }, z.core.$strip>>;
1222
1222
  }, z.core.$strip>;
@@ -1246,8 +1246,8 @@ declare const PaginatedNewsletterListSchema: z.ZodObject<{
1246
1246
  description: z.ZodOptional<z.ZodString>;
1247
1247
  is_active: z.ZodOptional<z.ZodBoolean>;
1248
1248
  auto_subscribe: z.ZodOptional<z.ZodBoolean>;
1249
- created_at: z.ZodISODateTime;
1250
- updated_at: z.ZodISODateTime;
1249
+ created_at: z.ZodString;
1250
+ updated_at: z.ZodString;
1251
1251
  subscribers_count: z.ZodInt;
1252
1252
  }, z.core.$strip>>;
1253
1253
  }, z.core.$strip>;
@@ -1279,8 +1279,8 @@ declare const PaginatedNewsletterSubscriptionListSchema: z.ZodObject<{
1279
1279
  user_email: z.ZodString;
1280
1280
  email: z.ZodEmail;
1281
1281
  is_active: z.ZodOptional<z.ZodBoolean>;
1282
- subscribed_at: z.ZodISODateTime;
1283
- unsubscribed_at: z.ZodNullable<z.ZodISODateTime>;
1282
+ subscribed_at: z.ZodString;
1283
+ unsubscribed_at: z.ZodNullable<z.ZodString>;
1284
1284
  }, z.core.$strip>>;
1285
1285
  }, z.core.$strip>;
1286
1286
  /**
package/dist/index.d.ts CHANGED
@@ -1030,8 +1030,8 @@ declare const EmailLogSchema: z.ZodObject<{
1030
1030
  subject: z.ZodString;
1031
1031
  body: z.ZodString;
1032
1032
  status: z.ZodEnum<typeof EmailLogStatus>;
1033
- created_at: z.ZodISODateTime;
1034
- sent_at: z.ZodNullable<z.ZodISODateTime>;
1033
+ created_at: z.ZodString;
1034
+ sent_at: z.ZodNullable<z.ZodString>;
1035
1035
  error_message: z.ZodNullable<z.ZodString>;
1036
1036
  }, z.core.$strip>;
1037
1037
  /**
@@ -1074,8 +1074,8 @@ declare const NewsletterSchema: z.ZodObject<{
1074
1074
  description: z.ZodOptional<z.ZodString>;
1075
1075
  is_active: z.ZodOptional<z.ZodBoolean>;
1076
1076
  auto_subscribe: z.ZodOptional<z.ZodBoolean>;
1077
- created_at: z.ZodISODateTime;
1078
- updated_at: z.ZodISODateTime;
1077
+ created_at: z.ZodString;
1078
+ updated_at: z.ZodString;
1079
1079
  subscribers_count: z.ZodInt;
1080
1080
  }, z.core.$strip>;
1081
1081
  /**
@@ -1105,8 +1105,8 @@ declare const NewsletterCampaignSchema: z.ZodObject<{
1105
1105
  button_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1106
1106
  secondary_text: z.ZodOptional<z.ZodString>;
1107
1107
  status: z.ZodEnum<typeof NewsletterCampaignStatus>;
1108
- created_at: z.ZodISODateTime;
1109
- sent_at: z.ZodNullable<z.ZodISODateTime>;
1108
+ created_at: z.ZodString;
1109
+ sent_at: z.ZodNullable<z.ZodString>;
1110
1110
  recipient_count: z.ZodInt;
1111
1111
  }, z.core.$strip>;
1112
1112
  /**
@@ -1157,8 +1157,8 @@ declare const NewsletterSubscriptionSchema: z.ZodObject<{
1157
1157
  user_email: z.ZodString;
1158
1158
  email: z.ZodEmail;
1159
1159
  is_active: z.ZodOptional<z.ZodBoolean>;
1160
- subscribed_at: z.ZodISODateTime;
1161
- unsubscribed_at: z.ZodNullable<z.ZodISODateTime>;
1160
+ subscribed_at: z.ZodString;
1161
+ unsubscribed_at: z.ZodNullable<z.ZodString>;
1162
1162
  }, z.core.$strip>;
1163
1163
  /**
1164
1164
  * Infer TypeScript type from Zod schema
@@ -1184,8 +1184,8 @@ declare const PaginatedEmailLogListSchema: z.ZodObject<{
1184
1184
  subject: z.ZodString;
1185
1185
  body: z.ZodString;
1186
1186
  status: z.ZodEnum<typeof EmailLogStatus>;
1187
- created_at: z.ZodISODateTime;
1188
- sent_at: z.ZodNullable<z.ZodISODateTime>;
1187
+ created_at: z.ZodString;
1188
+ sent_at: z.ZodNullable<z.ZodString>;
1189
1189
  error_message: z.ZodNullable<z.ZodString>;
1190
1190
  }, z.core.$strip>>;
1191
1191
  }, z.core.$strip>;
@@ -1215,8 +1215,8 @@ declare const PaginatedNewsletterCampaignListSchema: z.ZodObject<{
1215
1215
  button_url: z.ZodOptional<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">]>>;
1216
1216
  secondary_text: z.ZodOptional<z.ZodString>;
1217
1217
  status: z.ZodEnum<typeof NewsletterCampaignStatus>;
1218
- created_at: z.ZodISODateTime;
1219
- sent_at: z.ZodNullable<z.ZodISODateTime>;
1218
+ created_at: z.ZodString;
1219
+ sent_at: z.ZodNullable<z.ZodString>;
1220
1220
  recipient_count: z.ZodInt;
1221
1221
  }, z.core.$strip>>;
1222
1222
  }, z.core.$strip>;
@@ -1246,8 +1246,8 @@ declare const PaginatedNewsletterListSchema: z.ZodObject<{
1246
1246
  description: z.ZodOptional<z.ZodString>;
1247
1247
  is_active: z.ZodOptional<z.ZodBoolean>;
1248
1248
  auto_subscribe: z.ZodOptional<z.ZodBoolean>;
1249
- created_at: z.ZodISODateTime;
1250
- updated_at: z.ZodISODateTime;
1249
+ created_at: z.ZodString;
1250
+ updated_at: z.ZodString;
1251
1251
  subscribers_count: z.ZodInt;
1252
1252
  }, z.core.$strip>>;
1253
1253
  }, z.core.$strip>;
@@ -1279,8 +1279,8 @@ declare const PaginatedNewsletterSubscriptionListSchema: z.ZodObject<{
1279
1279
  user_email: z.ZodString;
1280
1280
  email: z.ZodEmail;
1281
1281
  is_active: z.ZodOptional<z.ZodBoolean>;
1282
- subscribed_at: z.ZodISODateTime;
1283
- unsubscribed_at: z.ZodNullable<z.ZodISODateTime>;
1282
+ subscribed_at: z.ZodString;
1283
+ unsubscribed_at: z.ZodNullable<z.ZodString>;
1284
1284
  }, z.core.$strip>>;
1285
1285
  }, z.core.$strip>;
1286
1286
  /**
package/dist/index.js CHANGED
@@ -1015,8 +1015,8 @@ var EmailLogSchema = z.object({
1015
1015
  subject: z.string(),
1016
1016
  body: z.string(),
1017
1017
  status: z.nativeEnum(EmailLogStatus),
1018
- created_at: z.iso.datetime(),
1019
- sent_at: z.iso.datetime().nullable(),
1018
+ created_at: z.string().datetime({ offset: true }),
1019
+ sent_at: z.string().datetime({ offset: true }).nullable(),
1020
1020
  error_message: z.string().nullable()
1021
1021
  });
1022
1022
  var ErrorResponseSchema = z.object({
@@ -1029,8 +1029,8 @@ var NewsletterSchema = z.object({
1029
1029
  description: z.string().optional(),
1030
1030
  is_active: z.boolean().optional(),
1031
1031
  auto_subscribe: z.boolean().optional(),
1032
- created_at: z.iso.datetime(),
1033
- updated_at: z.iso.datetime(),
1032
+ created_at: z.string().datetime({ offset: true }),
1033
+ updated_at: z.string().datetime({ offset: true }),
1034
1034
  subscribers_count: z.int()
1035
1035
  });
1036
1036
  var NewsletterCampaignSchema = z.object({
@@ -1045,8 +1045,8 @@ var NewsletterCampaignSchema = z.object({
1045
1045
  button_url: z.union([z.url(), z.literal("")]).optional(),
1046
1046
  secondary_text: z.string().optional(),
1047
1047
  status: z.nativeEnum(NewsletterCampaignStatus),
1048
- created_at: z.iso.datetime(),
1049
- sent_at: z.iso.datetime().nullable(),
1048
+ created_at: z.string().datetime({ offset: true }),
1049
+ sent_at: z.string().datetime({ offset: true }).nullable(),
1050
1050
  recipient_count: z.int()
1051
1051
  });
1052
1052
  var NewsletterCampaignRequestSchema = z.object({
@@ -1067,8 +1067,8 @@ var NewsletterSubscriptionSchema = z.object({
1067
1067
  user_email: z.string(),
1068
1068
  email: z.email(),
1069
1069
  is_active: z.boolean().optional(),
1070
- subscribed_at: z.iso.datetime(),
1071
- unsubscribed_at: z.iso.datetime().nullable()
1070
+ subscribed_at: z.string().datetime({ offset: true }),
1071
+ unsubscribed_at: z.string().datetime({ offset: true }).nullable()
1072
1072
  });
1073
1073
  var PaginatedEmailLogListSchema = z.object({
1074
1074
  count: z.int(),
@@ -2111,7 +2111,7 @@ var apiNewsletter = createExtensionAPI(API);
2111
2111
  // package.json
2112
2112
  var package_default = {
2113
2113
  name: "@djangocfg/ext-newsletter",
2114
- version: "1.0.14",
2114
+ version: "1.0.19",
2115
2115
  description: "Newsletter and subscription management extension for DjangoCFG",
2116
2116
  keywords: [
2117
2117
  "django",
@@ -2180,7 +2180,7 @@ var package_default = {
2180
2180
  react: "^19",
2181
2181
  "react-dom": "^19",
2182
2182
  swr: "^2.3.7",
2183
- zod: "^4.1.13"
2183
+ zod: "^4.3.4"
2184
2184
  },
2185
2185
  devDependencies: {
2186
2186
  "@djangocfg/api": "workspace:*",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/ext-newsletter",
3
- "version": "1.0.14",
3
+ "version": "1.0.19",
4
4
  "description": "Newsletter and subscription management extension for DjangoCFG",
5
5
  "keywords": [
6
6
  "django",
@@ -59,9 +59,9 @@
59
59
  "check": "tsc --noEmit"
60
60
  },
61
61
  "peerDependencies": {
62
- "@djangocfg/api": "^2.1.107",
63
- "@djangocfg/ext-base": "^1.0.9",
64
- "@djangocfg/ui-core": "^2.1.107",
62
+ "@djangocfg/api": "^2.1.109",
63
+ "@djangocfg/ext-base": "^1.0.14",
64
+ "@djangocfg/ui-core": "^2.1.109",
65
65
  "consola": "^3.4.2",
66
66
  "lucide-react": "^0.545.0",
67
67
  "next": "^16",
@@ -69,12 +69,12 @@
69
69
  "react": "^19",
70
70
  "react-dom": "^19",
71
71
  "swr": "^2.3.7",
72
- "zod": "^4.1.13"
72
+ "zod": "^4.3.4"
73
73
  },
74
74
  "devDependencies": {
75
- "@djangocfg/api": "^2.1.107",
76
- "@djangocfg/ext-base": "^1.0.9",
77
- "@djangocfg/typescript-config": "^2.1.107",
75
+ "@djangocfg/api": "^2.1.109",
76
+ "@djangocfg/ext-base": "^1.0.14",
77
+ "@djangocfg/typescript-config": "^2.1.109",
78
78
  "@types/node": "^24.7.2",
79
79
  "@types/react": "^19.0.0",
80
80
  "consola": "^3.4.2",
@@ -20,8 +20,8 @@ export const EmailLogSchema = z.object({
20
20
  subject: z.string(),
21
21
  body: z.string(),
22
22
  status: z.nativeEnum(Enums.EmailLogStatus),
23
- created_at: z.iso.datetime(),
24
- sent_at: z.iso.datetime().nullable(),
23
+ created_at: z.string().datetime({ offset: true }),
24
+ sent_at: z.string().datetime({ offset: true }).nullable(),
25
25
  error_message: z.string().nullable(),
26
26
  })
27
27
 
@@ -15,8 +15,8 @@ export const NewsletterSchema = z.object({
15
15
  description: z.string().optional(),
16
16
  is_active: z.boolean().optional(),
17
17
  auto_subscribe: z.boolean().optional(),
18
- created_at: z.iso.datetime(),
19
- updated_at: z.iso.datetime(),
18
+ created_at: z.string().datetime({ offset: true }),
19
+ updated_at: z.string().datetime({ offset: true }),
20
20
  subscribers_count: z.int(),
21
21
  })
22
22
 
@@ -22,8 +22,8 @@ export const NewsletterCampaignSchema = z.object({
22
22
  button_url: z.union([z.url(), z.literal('')]).optional(),
23
23
  secondary_text: z.string().optional(),
24
24
  status: z.nativeEnum(Enums.NewsletterCampaignStatus),
25
- created_at: z.iso.datetime(),
26
- sent_at: z.iso.datetime().nullable(),
25
+ created_at: z.string().datetime({ offset: true }),
26
+ sent_at: z.string().datetime({ offset: true }).nullable(),
27
27
  recipient_count: z.int(),
28
28
  })
29
29
 
@@ -17,8 +17,8 @@ export const NewsletterSubscriptionSchema = z.object({
17
17
  user_email: z.string(),
18
18
  email: z.email(),
19
19
  is_active: z.boolean().optional(),
20
- subscribed_at: z.iso.datetime(),
21
- unsubscribed_at: z.iso.datetime().nullable(),
20
+ subscribed_at: z.string().datetime({ offset: true }),
21
+ unsubscribed_at: z.string().datetime({ offset: true }).nullable(),
22
22
  })
23
23
 
24
24
  /**
package/src/config.ts CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  import { createExtensionConfig } from '@djangocfg/ext-base';
6
6
 
7
+ // @ts-ignore - package.json is not typed
7
8
  import packageJson from '../package.json';
8
9
 
9
10
  export const extensionConfig = createExtensionConfig(packageJson, {