@aranova/tracking-react 0.22.2 → 0.22.4

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/sales.mjs CHANGED
@@ -554,7 +554,12 @@ var saleCreateSchema = z2.object({
554
554
  customer_email: customerEmailSchema.nullable().optional(),
555
555
  // CASL consent attestation: the customer agreed to receive SMS. Recorded
556
556
  // with a timestamp server-side; every SMS send path gates on it.
557
- sms_consent: z2.boolean().default(false)
557
+ //
558
+ // Tri-state: omit it (or send null) to let the server apply the business's
559
+ // configured default-opt-in policy, honouring a returning customer's
560
+ // remembered preference. Send an explicit boolean to assert consent state
561
+ // yourself — `false` records a deliberate opt-out.
562
+ sms_consent: z2.boolean().nullable().optional()
558
563
  }).strict().superRefine((val, ctx) => refineServiceXor(val, ctx, { requireAmount: true }));
559
564
  var saleUpdateSchema = z2.object({
560
565
  description: z2.string().nullable().optional(),