@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.
@@ -2192,17 +2192,25 @@ var zGoogleAdsConversionConsent = z__namespace.object({
2192
2192
  ad_personalization: z__namespace.enum(["CONSENT_GRANTED", "CONSENT_DENIED"]).optional()
2193
2193
  });
2194
2194
  var zGoogleAdsConversionUserIdentifier = z__namespace.object({
2195
- email_address: z__namespace.string().min(1).optional(),
2196
- phone_number: z__namespace.string().min(1).optional(),
2195
+ email_address: z__namespace.email().optional(),
2196
+ phone_number: z__namespace.string().min(1).regex(/\d/).optional(),
2197
2197
  address: z__namespace.object({
2198
- given_name: z__namespace.string().min(1).optional(),
2199
- family_name: z__namespace.string().min(1).optional(),
2200
- region_code: z__namespace.string().min(1).optional(),
2201
- postal_code: z__namespace.string().min(1).optional()
2198
+ given_name: z__namespace.string().min(1),
2199
+ family_name: z__namespace.string().min(1),
2200
+ region_code: z__namespace.string().regex(/^[A-Za-z]{2}$/),
2201
+ postal_code: z__namespace.string().min(1)
2202
2202
  }).optional()
2203
2203
  });
2204
2204
  var zGoogleAdsConversionEvent = z__namespace.object({
2205
2205
  event_timestamp: z__namespace.iso.datetime(),
2206
+ event_source: z__namespace.enum([
2207
+ "WEB",
2208
+ "APP",
2209
+ "IN_STORE",
2210
+ "PHONE",
2211
+ "MESSAGE",
2212
+ "OTHER"
2213
+ ]),
2206
2214
  order_id: z__namespace.string().optional(),
2207
2215
  gclid: z__namespace.string().optional(),
2208
2216
  gbraid: z__namespace.string().optional(),