@aranova/tracking-react 0.22.0 → 0.22.3

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(),
@@ -566,6 +571,9 @@ var saleUpdateSchema = z2.object({
566
571
  items: z2.array(saleItemSchema).optional(),
567
572
  metadata: metadataSchema.nullable().optional(),
568
573
  customer_name: customerNameSchema.nullable().optional(),
574
+ // Re-attest when changing a filler-looking name; the server clears the
575
+ // prior attestation whenever `customer_name` changes.
576
+ customer_name_placeholder_confirmed: z2.boolean().optional(),
569
577
  customer_phone: customerPhoneSchema.nullable().optional(),
570
578
  customer_email: customerEmailSchema.nullable().optional(),
571
579
  // NOT NULL server-side: omit to leave unchanged (explicit null is rejected).