@postrun/js 2.23.0 → 2.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/dist/index.cjs CHANGED
@@ -2972,17 +2972,25 @@ var zGoogleAdsConversionConsent = z__namespace.object({
2972
2972
  ad_personalization: z__namespace.enum(["CONSENT_GRANTED", "CONSENT_DENIED"]).optional()
2973
2973
  });
2974
2974
  var zGoogleAdsConversionUserIdentifier = z__namespace.object({
2975
- email_address: z__namespace.string().min(1).optional(),
2976
- phone_number: z__namespace.string().min(1).optional(),
2975
+ email_address: z__namespace.email().optional(),
2976
+ phone_number: z__namespace.string().min(1).regex(/\d/).optional(),
2977
2977
  address: z__namespace.object({
2978
- given_name: z__namespace.string().min(1).optional(),
2979
- family_name: z__namespace.string().min(1).optional(),
2980
- region_code: z__namespace.string().min(1).optional(),
2981
- postal_code: z__namespace.string().min(1).optional()
2978
+ given_name: z__namespace.string().min(1),
2979
+ family_name: z__namespace.string().min(1),
2980
+ region_code: z__namespace.string().regex(/^[A-Za-z]{2}$/),
2981
+ postal_code: z__namespace.string().min(1)
2982
2982
  }).optional()
2983
2983
  });
2984
2984
  var zGoogleAdsConversionEvent = z__namespace.object({
2985
2985
  event_timestamp: z__namespace.iso.datetime(),
2986
+ event_source: z__namespace.enum([
2987
+ "WEB",
2988
+ "APP",
2989
+ "IN_STORE",
2990
+ "PHONE",
2991
+ "MESSAGE",
2992
+ "OTHER"
2993
+ ]),
2986
2994
  order_id: z__namespace.string().optional(),
2987
2995
  gclid: z__namespace.string().optional(),
2988
2996
  gbraid: z__namespace.string().optional(),