@guardian/support-dotcom-components 7.1.0 → 7.2.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.
@@ -263,6 +263,462 @@ export declare const bannerVariantFromToolSchema: z.ZodObject<{
263
263
  copy?: string | undefined;
264
264
  countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
265
265
  }>>;
266
+ choiceCardsSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
267
+ choiceCards: z.ZodArray<z.ZodObject<{
268
+ product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
269
+ supportTier: z.ZodLiteral<"Contribution">;
270
+ ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ supportTier: "Contribution";
273
+ ratePlan: "Monthly" | "Annual";
274
+ }, {
275
+ supportTier: "Contribution";
276
+ ratePlan: "Monthly" | "Annual";
277
+ }>, z.ZodObject<{
278
+ supportTier: z.ZodLiteral<"SupporterPlus">;
279
+ ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
280
+ }, "strip", z.ZodTypeAny, {
281
+ supportTier: "SupporterPlus";
282
+ ratePlan: "Monthly" | "Annual";
283
+ }, {
284
+ supportTier: "SupporterPlus";
285
+ ratePlan: "Monthly" | "Annual";
286
+ }>, z.ZodObject<{
287
+ supportTier: z.ZodLiteral<"OneOff">;
288
+ }, "strip", z.ZodTypeAny, {
289
+ supportTier: "OneOff";
290
+ }, {
291
+ supportTier: "OneOff";
292
+ }>]>;
293
+ label: z.ZodString;
294
+ isDefault: z.ZodBoolean;
295
+ benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
296
+ benefits: z.ZodArray<z.ZodObject<{
297
+ copy: z.ZodString;
298
+ }, "strip", z.ZodTypeAny, {
299
+ copy: string;
300
+ }, {
301
+ copy: string;
302
+ }>, "many">;
303
+ pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
304
+ copy: z.ZodString;
305
+ textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
306
+ r: z.ZodEffects<z.ZodString, string, string>;
307
+ g: z.ZodEffects<z.ZodString, string, string>;
308
+ b: z.ZodEffects<z.ZodString, string, string>;
309
+ kind: z.ZodLiteral<"hex">;
310
+ }, "strip", z.ZodTypeAny, {
311
+ r: string;
312
+ b: string;
313
+ g: string;
314
+ kind: "hex";
315
+ }, {
316
+ r: string;
317
+ b: string;
318
+ g: string;
319
+ kind: "hex";
320
+ }>>>;
321
+ backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
322
+ r: z.ZodEffects<z.ZodString, string, string>;
323
+ g: z.ZodEffects<z.ZodString, string, string>;
324
+ b: z.ZodEffects<z.ZodString, string, string>;
325
+ kind: z.ZodLiteral<"hex">;
326
+ }, "strip", z.ZodTypeAny, {
327
+ r: string;
328
+ b: string;
329
+ g: string;
330
+ kind: "hex";
331
+ }, {
332
+ r: string;
333
+ b: string;
334
+ g: string;
335
+ kind: "hex";
336
+ }>>>;
337
+ }, "strip", z.ZodTypeAny, {
338
+ copy: string;
339
+ textColour?: {
340
+ r: string;
341
+ b: string;
342
+ g: string;
343
+ kind: "hex";
344
+ } | null | undefined;
345
+ backgroundColour?: {
346
+ r: string;
347
+ b: string;
348
+ g: string;
349
+ kind: "hex";
350
+ } | null | undefined;
351
+ }, {
352
+ copy: string;
353
+ textColour?: {
354
+ r: string;
355
+ b: string;
356
+ g: string;
357
+ kind: "hex";
358
+ } | null | undefined;
359
+ backgroundColour?: {
360
+ r: string;
361
+ b: string;
362
+ g: string;
363
+ kind: "hex";
364
+ } | null | undefined;
365
+ }>>>;
366
+ }, "strip", z.ZodTypeAny, {
367
+ product: {
368
+ supportTier: "Contribution";
369
+ ratePlan: "Monthly" | "Annual";
370
+ } | {
371
+ supportTier: "SupporterPlus";
372
+ ratePlan: "Monthly" | "Annual";
373
+ } | {
374
+ supportTier: "OneOff";
375
+ };
376
+ label: string;
377
+ isDefault: boolean;
378
+ benefits: {
379
+ copy: string;
380
+ }[];
381
+ benefitsLabel?: string | null | undefined;
382
+ pill?: {
383
+ copy: string;
384
+ textColour?: {
385
+ r: string;
386
+ b: string;
387
+ g: string;
388
+ kind: "hex";
389
+ } | null | undefined;
390
+ backgroundColour?: {
391
+ r: string;
392
+ b: string;
393
+ g: string;
394
+ kind: "hex";
395
+ } | null | undefined;
396
+ } | null | undefined;
397
+ }, {
398
+ product: {
399
+ supportTier: "Contribution";
400
+ ratePlan: "Monthly" | "Annual";
401
+ } | {
402
+ supportTier: "SupporterPlus";
403
+ ratePlan: "Monthly" | "Annual";
404
+ } | {
405
+ supportTier: "OneOff";
406
+ };
407
+ label: string;
408
+ isDefault: boolean;
409
+ benefits: {
410
+ copy: string;
411
+ }[];
412
+ benefitsLabel?: string | null | undefined;
413
+ pill?: {
414
+ copy: string;
415
+ textColour?: {
416
+ r: string;
417
+ b: string;
418
+ g: string;
419
+ kind: "hex";
420
+ } | null | undefined;
421
+ backgroundColour?: {
422
+ r: string;
423
+ b: string;
424
+ g: string;
425
+ kind: "hex";
426
+ } | null | undefined;
427
+ } | null | undefined;
428
+ }>, "many">;
429
+ mobileChoiceCards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
430
+ product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
431
+ supportTier: z.ZodLiteral<"Contribution">;
432
+ ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
433
+ }, "strip", z.ZodTypeAny, {
434
+ supportTier: "Contribution";
435
+ ratePlan: "Monthly" | "Annual";
436
+ }, {
437
+ supportTier: "Contribution";
438
+ ratePlan: "Monthly" | "Annual";
439
+ }>, z.ZodObject<{
440
+ supportTier: z.ZodLiteral<"SupporterPlus">;
441
+ ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
442
+ }, "strip", z.ZodTypeAny, {
443
+ supportTier: "SupporterPlus";
444
+ ratePlan: "Monthly" | "Annual";
445
+ }, {
446
+ supportTier: "SupporterPlus";
447
+ ratePlan: "Monthly" | "Annual";
448
+ }>, z.ZodObject<{
449
+ supportTier: z.ZodLiteral<"OneOff">;
450
+ }, "strip", z.ZodTypeAny, {
451
+ supportTier: "OneOff";
452
+ }, {
453
+ supportTier: "OneOff";
454
+ }>]>;
455
+ label: z.ZodString;
456
+ isDefault: z.ZodBoolean;
457
+ benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
+ benefits: z.ZodArray<z.ZodObject<{
459
+ copy: z.ZodString;
460
+ }, "strip", z.ZodTypeAny, {
461
+ copy: string;
462
+ }, {
463
+ copy: string;
464
+ }>, "many">;
465
+ pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
466
+ copy: z.ZodString;
467
+ textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
468
+ r: z.ZodEffects<z.ZodString, string, string>;
469
+ g: z.ZodEffects<z.ZodString, string, string>;
470
+ b: z.ZodEffects<z.ZodString, string, string>;
471
+ kind: z.ZodLiteral<"hex">;
472
+ }, "strip", z.ZodTypeAny, {
473
+ r: string;
474
+ b: string;
475
+ g: string;
476
+ kind: "hex";
477
+ }, {
478
+ r: string;
479
+ b: string;
480
+ g: string;
481
+ kind: "hex";
482
+ }>>>;
483
+ backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
484
+ r: z.ZodEffects<z.ZodString, string, string>;
485
+ g: z.ZodEffects<z.ZodString, string, string>;
486
+ b: z.ZodEffects<z.ZodString, string, string>;
487
+ kind: z.ZodLiteral<"hex">;
488
+ }, "strip", z.ZodTypeAny, {
489
+ r: string;
490
+ b: string;
491
+ g: string;
492
+ kind: "hex";
493
+ }, {
494
+ r: string;
495
+ b: string;
496
+ g: string;
497
+ kind: "hex";
498
+ }>>>;
499
+ }, "strip", z.ZodTypeAny, {
500
+ copy: string;
501
+ textColour?: {
502
+ r: string;
503
+ b: string;
504
+ g: string;
505
+ kind: "hex";
506
+ } | null | undefined;
507
+ backgroundColour?: {
508
+ r: string;
509
+ b: string;
510
+ g: string;
511
+ kind: "hex";
512
+ } | null | undefined;
513
+ }, {
514
+ copy: string;
515
+ textColour?: {
516
+ r: string;
517
+ b: string;
518
+ g: string;
519
+ kind: "hex";
520
+ } | null | undefined;
521
+ backgroundColour?: {
522
+ r: string;
523
+ b: string;
524
+ g: string;
525
+ kind: "hex";
526
+ } | null | undefined;
527
+ }>>>;
528
+ }, "strip", z.ZodTypeAny, {
529
+ product: {
530
+ supportTier: "Contribution";
531
+ ratePlan: "Monthly" | "Annual";
532
+ } | {
533
+ supportTier: "SupporterPlus";
534
+ ratePlan: "Monthly" | "Annual";
535
+ } | {
536
+ supportTier: "OneOff";
537
+ };
538
+ label: string;
539
+ isDefault: boolean;
540
+ benefits: {
541
+ copy: string;
542
+ }[];
543
+ benefitsLabel?: string | null | undefined;
544
+ pill?: {
545
+ copy: string;
546
+ textColour?: {
547
+ r: string;
548
+ b: string;
549
+ g: string;
550
+ kind: "hex";
551
+ } | null | undefined;
552
+ backgroundColour?: {
553
+ r: string;
554
+ b: string;
555
+ g: string;
556
+ kind: "hex";
557
+ } | null | undefined;
558
+ } | null | undefined;
559
+ }, {
560
+ product: {
561
+ supportTier: "Contribution";
562
+ ratePlan: "Monthly" | "Annual";
563
+ } | {
564
+ supportTier: "SupporterPlus";
565
+ ratePlan: "Monthly" | "Annual";
566
+ } | {
567
+ supportTier: "OneOff";
568
+ };
569
+ label: string;
570
+ isDefault: boolean;
571
+ benefits: {
572
+ copy: string;
573
+ }[];
574
+ benefitsLabel?: string | null | undefined;
575
+ pill?: {
576
+ copy: string;
577
+ textColour?: {
578
+ r: string;
579
+ b: string;
580
+ g: string;
581
+ kind: "hex";
582
+ } | null | undefined;
583
+ backgroundColour?: {
584
+ r: string;
585
+ b: string;
586
+ g: string;
587
+ kind: "hex";
588
+ } | null | undefined;
589
+ } | null | undefined;
590
+ }>, "many">>>;
591
+ }, "strip", z.ZodTypeAny, {
592
+ choiceCards: {
593
+ product: {
594
+ supportTier: "Contribution";
595
+ ratePlan: "Monthly" | "Annual";
596
+ } | {
597
+ supportTier: "SupporterPlus";
598
+ ratePlan: "Monthly" | "Annual";
599
+ } | {
600
+ supportTier: "OneOff";
601
+ };
602
+ label: string;
603
+ isDefault: boolean;
604
+ benefits: {
605
+ copy: string;
606
+ }[];
607
+ benefitsLabel?: string | null | undefined;
608
+ pill?: {
609
+ copy: string;
610
+ textColour?: {
611
+ r: string;
612
+ b: string;
613
+ g: string;
614
+ kind: "hex";
615
+ } | null | undefined;
616
+ backgroundColour?: {
617
+ r: string;
618
+ b: string;
619
+ g: string;
620
+ kind: "hex";
621
+ } | null | undefined;
622
+ } | null | undefined;
623
+ }[];
624
+ mobileChoiceCards?: {
625
+ product: {
626
+ supportTier: "Contribution";
627
+ ratePlan: "Monthly" | "Annual";
628
+ } | {
629
+ supportTier: "SupporterPlus";
630
+ ratePlan: "Monthly" | "Annual";
631
+ } | {
632
+ supportTier: "OneOff";
633
+ };
634
+ label: string;
635
+ isDefault: boolean;
636
+ benefits: {
637
+ copy: string;
638
+ }[];
639
+ benefitsLabel?: string | null | undefined;
640
+ pill?: {
641
+ copy: string;
642
+ textColour?: {
643
+ r: string;
644
+ b: string;
645
+ g: string;
646
+ kind: "hex";
647
+ } | null | undefined;
648
+ backgroundColour?: {
649
+ r: string;
650
+ b: string;
651
+ g: string;
652
+ kind: "hex";
653
+ } | null | undefined;
654
+ } | null | undefined;
655
+ }[] | null | undefined;
656
+ }, {
657
+ choiceCards: {
658
+ product: {
659
+ supportTier: "Contribution";
660
+ ratePlan: "Monthly" | "Annual";
661
+ } | {
662
+ supportTier: "SupporterPlus";
663
+ ratePlan: "Monthly" | "Annual";
664
+ } | {
665
+ supportTier: "OneOff";
666
+ };
667
+ label: string;
668
+ isDefault: boolean;
669
+ benefits: {
670
+ copy: string;
671
+ }[];
672
+ benefitsLabel?: string | null | undefined;
673
+ pill?: {
674
+ copy: string;
675
+ textColour?: {
676
+ r: string;
677
+ b: string;
678
+ g: string;
679
+ kind: "hex";
680
+ } | null | undefined;
681
+ backgroundColour?: {
682
+ r: string;
683
+ b: string;
684
+ g: string;
685
+ kind: "hex";
686
+ } | null | undefined;
687
+ } | null | undefined;
688
+ }[];
689
+ mobileChoiceCards?: {
690
+ product: {
691
+ supportTier: "Contribution";
692
+ ratePlan: "Monthly" | "Annual";
693
+ } | {
694
+ supportTier: "SupporterPlus";
695
+ ratePlan: "Monthly" | "Annual";
696
+ } | {
697
+ supportTier: "OneOff";
698
+ };
699
+ label: string;
700
+ isDefault: boolean;
701
+ benefits: {
702
+ copy: string;
703
+ }[];
704
+ benefitsLabel?: string | null | undefined;
705
+ pill?: {
706
+ copy: string;
707
+ textColour?: {
708
+ r: string;
709
+ b: string;
710
+ g: string;
711
+ kind: "hex";
712
+ } | null | undefined;
713
+ backgroundColour?: {
714
+ r: string;
715
+ b: string;
716
+ g: string;
717
+ kind: "hex";
718
+ } | null | undefined;
719
+ } | null | undefined;
720
+ }[] | null | undefined;
721
+ }>>>;
266
722
  }, "strip", z.ZodTypeAny, {
267
723
  name: string;
268
724
  template: (BannerTemplate | {
@@ -328,6 +784,72 @@ export declare const bannerVariantFromToolSchema: z.ZodObject<{
328
784
  copy?: string | undefined;
329
785
  countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
330
786
  } | undefined;
787
+ choiceCardsSettings?: {
788
+ choiceCards: {
789
+ product: {
790
+ supportTier: "Contribution";
791
+ ratePlan: "Monthly" | "Annual";
792
+ } | {
793
+ supportTier: "SupporterPlus";
794
+ ratePlan: "Monthly" | "Annual";
795
+ } | {
796
+ supportTier: "OneOff";
797
+ };
798
+ label: string;
799
+ isDefault: boolean;
800
+ benefits: {
801
+ copy: string;
802
+ }[];
803
+ benefitsLabel?: string | null | undefined;
804
+ pill?: {
805
+ copy: string;
806
+ textColour?: {
807
+ r: string;
808
+ b: string;
809
+ g: string;
810
+ kind: "hex";
811
+ } | null | undefined;
812
+ backgroundColour?: {
813
+ r: string;
814
+ b: string;
815
+ g: string;
816
+ kind: "hex";
817
+ } | null | undefined;
818
+ } | null | undefined;
819
+ }[];
820
+ mobileChoiceCards?: {
821
+ product: {
822
+ supportTier: "Contribution";
823
+ ratePlan: "Monthly" | "Annual";
824
+ } | {
825
+ supportTier: "SupporterPlus";
826
+ ratePlan: "Monthly" | "Annual";
827
+ } | {
828
+ supportTier: "OneOff";
829
+ };
830
+ label: string;
831
+ isDefault: boolean;
832
+ benefits: {
833
+ copy: string;
834
+ }[];
835
+ benefitsLabel?: string | null | undefined;
836
+ pill?: {
837
+ copy: string;
838
+ textColour?: {
839
+ r: string;
840
+ b: string;
841
+ g: string;
842
+ kind: "hex";
843
+ } | null | undefined;
844
+ backgroundColour?: {
845
+ r: string;
846
+ b: string;
847
+ g: string;
848
+ kind: "hex";
849
+ } | null | undefined;
850
+ } | null | undefined;
851
+ }[] | null | undefined;
852
+ } | null | undefined;
331
853
  }, {
332
854
  name: string;
333
855
  template: (BannerTemplate | {
@@ -393,6 +915,72 @@ export declare const bannerVariantFromToolSchema: z.ZodObject<{
393
915
  copy?: string | undefined;
394
916
  countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
395
917
  } | undefined;
918
+ choiceCardsSettings?: {
919
+ choiceCards: {
920
+ product: {
921
+ supportTier: "Contribution";
922
+ ratePlan: "Monthly" | "Annual";
923
+ } | {
924
+ supportTier: "SupporterPlus";
925
+ ratePlan: "Monthly" | "Annual";
926
+ } | {
927
+ supportTier: "OneOff";
928
+ };
929
+ label: string;
930
+ isDefault: boolean;
931
+ benefits: {
932
+ copy: string;
933
+ }[];
934
+ benefitsLabel?: string | null | undefined;
935
+ pill?: {
936
+ copy: string;
937
+ textColour?: {
938
+ r: string;
939
+ b: string;
940
+ g: string;
941
+ kind: "hex";
942
+ } | null | undefined;
943
+ backgroundColour?: {
944
+ r: string;
945
+ b: string;
946
+ g: string;
947
+ kind: "hex";
948
+ } | null | undefined;
949
+ } | null | undefined;
950
+ }[];
951
+ mobileChoiceCards?: {
952
+ product: {
953
+ supportTier: "Contribution";
954
+ ratePlan: "Monthly" | "Annual";
955
+ } | {
956
+ supportTier: "SupporterPlus";
957
+ ratePlan: "Monthly" | "Annual";
958
+ } | {
959
+ supportTier: "OneOff";
960
+ };
961
+ label: string;
962
+ isDefault: boolean;
963
+ benefits: {
964
+ copy: string;
965
+ }[];
966
+ benefitsLabel?: string | null | undefined;
967
+ pill?: {
968
+ copy: string;
969
+ textColour?: {
970
+ r: string;
971
+ b: string;
972
+ g: string;
973
+ kind: "hex";
974
+ } | null | undefined;
975
+ backgroundColour?: {
976
+ r: string;
977
+ b: string;
978
+ g: string;
979
+ kind: "hex";
980
+ } | null | undefined;
981
+ } | null | undefined;
982
+ }[] | null | undefined;
983
+ } | null | undefined;
396
984
  }>;
397
985
  export type BannerVariantFromTool = z.infer<typeof bannerVariantFromToolSchema>;
398
986
  export interface BannerVariant extends BannerVariantFromTool {
@@ -735,6 +1323,462 @@ export declare const bannerTestFromToolSchema: z.ZodObject<{
735
1323
  copy?: string | undefined;
736
1324
  countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
737
1325
  }>>;
1326
+ choiceCardsSettings: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1327
+ choiceCards: z.ZodArray<z.ZodObject<{
1328
+ product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
1329
+ supportTier: z.ZodLiteral<"Contribution">;
1330
+ ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
1331
+ }, "strip", z.ZodTypeAny, {
1332
+ supportTier: "Contribution";
1333
+ ratePlan: "Monthly" | "Annual";
1334
+ }, {
1335
+ supportTier: "Contribution";
1336
+ ratePlan: "Monthly" | "Annual";
1337
+ }>, z.ZodObject<{
1338
+ supportTier: z.ZodLiteral<"SupporterPlus">;
1339
+ ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
1340
+ }, "strip", z.ZodTypeAny, {
1341
+ supportTier: "SupporterPlus";
1342
+ ratePlan: "Monthly" | "Annual";
1343
+ }, {
1344
+ supportTier: "SupporterPlus";
1345
+ ratePlan: "Monthly" | "Annual";
1346
+ }>, z.ZodObject<{
1347
+ supportTier: z.ZodLiteral<"OneOff">;
1348
+ }, "strip", z.ZodTypeAny, {
1349
+ supportTier: "OneOff";
1350
+ }, {
1351
+ supportTier: "OneOff";
1352
+ }>]>;
1353
+ label: z.ZodString;
1354
+ isDefault: z.ZodBoolean;
1355
+ benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1356
+ benefits: z.ZodArray<z.ZodObject<{
1357
+ copy: z.ZodString;
1358
+ }, "strip", z.ZodTypeAny, {
1359
+ copy: string;
1360
+ }, {
1361
+ copy: string;
1362
+ }>, "many">;
1363
+ pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1364
+ copy: z.ZodString;
1365
+ textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1366
+ r: z.ZodEffects<z.ZodString, string, string>;
1367
+ g: z.ZodEffects<z.ZodString, string, string>;
1368
+ b: z.ZodEffects<z.ZodString, string, string>;
1369
+ kind: z.ZodLiteral<"hex">;
1370
+ }, "strip", z.ZodTypeAny, {
1371
+ r: string;
1372
+ b: string;
1373
+ g: string;
1374
+ kind: "hex";
1375
+ }, {
1376
+ r: string;
1377
+ b: string;
1378
+ g: string;
1379
+ kind: "hex";
1380
+ }>>>;
1381
+ backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1382
+ r: z.ZodEffects<z.ZodString, string, string>;
1383
+ g: z.ZodEffects<z.ZodString, string, string>;
1384
+ b: z.ZodEffects<z.ZodString, string, string>;
1385
+ kind: z.ZodLiteral<"hex">;
1386
+ }, "strip", z.ZodTypeAny, {
1387
+ r: string;
1388
+ b: string;
1389
+ g: string;
1390
+ kind: "hex";
1391
+ }, {
1392
+ r: string;
1393
+ b: string;
1394
+ g: string;
1395
+ kind: "hex";
1396
+ }>>>;
1397
+ }, "strip", z.ZodTypeAny, {
1398
+ copy: string;
1399
+ textColour?: {
1400
+ r: string;
1401
+ b: string;
1402
+ g: string;
1403
+ kind: "hex";
1404
+ } | null | undefined;
1405
+ backgroundColour?: {
1406
+ r: string;
1407
+ b: string;
1408
+ g: string;
1409
+ kind: "hex";
1410
+ } | null | undefined;
1411
+ }, {
1412
+ copy: string;
1413
+ textColour?: {
1414
+ r: string;
1415
+ b: string;
1416
+ g: string;
1417
+ kind: "hex";
1418
+ } | null | undefined;
1419
+ backgroundColour?: {
1420
+ r: string;
1421
+ b: string;
1422
+ g: string;
1423
+ kind: "hex";
1424
+ } | null | undefined;
1425
+ }>>>;
1426
+ }, "strip", z.ZodTypeAny, {
1427
+ product: {
1428
+ supportTier: "Contribution";
1429
+ ratePlan: "Monthly" | "Annual";
1430
+ } | {
1431
+ supportTier: "SupporterPlus";
1432
+ ratePlan: "Monthly" | "Annual";
1433
+ } | {
1434
+ supportTier: "OneOff";
1435
+ };
1436
+ label: string;
1437
+ isDefault: boolean;
1438
+ benefits: {
1439
+ copy: string;
1440
+ }[];
1441
+ benefitsLabel?: string | null | undefined;
1442
+ pill?: {
1443
+ copy: string;
1444
+ textColour?: {
1445
+ r: string;
1446
+ b: string;
1447
+ g: string;
1448
+ kind: "hex";
1449
+ } | null | undefined;
1450
+ backgroundColour?: {
1451
+ r: string;
1452
+ b: string;
1453
+ g: string;
1454
+ kind: "hex";
1455
+ } | null | undefined;
1456
+ } | null | undefined;
1457
+ }, {
1458
+ product: {
1459
+ supportTier: "Contribution";
1460
+ ratePlan: "Monthly" | "Annual";
1461
+ } | {
1462
+ supportTier: "SupporterPlus";
1463
+ ratePlan: "Monthly" | "Annual";
1464
+ } | {
1465
+ supportTier: "OneOff";
1466
+ };
1467
+ label: string;
1468
+ isDefault: boolean;
1469
+ benefits: {
1470
+ copy: string;
1471
+ }[];
1472
+ benefitsLabel?: string | null | undefined;
1473
+ pill?: {
1474
+ copy: string;
1475
+ textColour?: {
1476
+ r: string;
1477
+ b: string;
1478
+ g: string;
1479
+ kind: "hex";
1480
+ } | null | undefined;
1481
+ backgroundColour?: {
1482
+ r: string;
1483
+ b: string;
1484
+ g: string;
1485
+ kind: "hex";
1486
+ } | null | undefined;
1487
+ } | null | undefined;
1488
+ }>, "many">;
1489
+ mobileChoiceCards: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1490
+ product: z.ZodDiscriminatedUnion<"supportTier", [z.ZodObject<{
1491
+ supportTier: z.ZodLiteral<"Contribution">;
1492
+ ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
1493
+ }, "strip", z.ZodTypeAny, {
1494
+ supportTier: "Contribution";
1495
+ ratePlan: "Monthly" | "Annual";
1496
+ }, {
1497
+ supportTier: "Contribution";
1498
+ ratePlan: "Monthly" | "Annual";
1499
+ }>, z.ZodObject<{
1500
+ supportTier: z.ZodLiteral<"SupporterPlus">;
1501
+ ratePlan: z.ZodUnion<[z.ZodLiteral<"Monthly">, z.ZodLiteral<"Annual">]>;
1502
+ }, "strip", z.ZodTypeAny, {
1503
+ supportTier: "SupporterPlus";
1504
+ ratePlan: "Monthly" | "Annual";
1505
+ }, {
1506
+ supportTier: "SupporterPlus";
1507
+ ratePlan: "Monthly" | "Annual";
1508
+ }>, z.ZodObject<{
1509
+ supportTier: z.ZodLiteral<"OneOff">;
1510
+ }, "strip", z.ZodTypeAny, {
1511
+ supportTier: "OneOff";
1512
+ }, {
1513
+ supportTier: "OneOff";
1514
+ }>]>;
1515
+ label: z.ZodString;
1516
+ isDefault: z.ZodBoolean;
1517
+ benefitsLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1518
+ benefits: z.ZodArray<z.ZodObject<{
1519
+ copy: z.ZodString;
1520
+ }, "strip", z.ZodTypeAny, {
1521
+ copy: string;
1522
+ }, {
1523
+ copy: string;
1524
+ }>, "many">;
1525
+ pill: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1526
+ copy: z.ZodString;
1527
+ textColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1528
+ r: z.ZodEffects<z.ZodString, string, string>;
1529
+ g: z.ZodEffects<z.ZodString, string, string>;
1530
+ b: z.ZodEffects<z.ZodString, string, string>;
1531
+ kind: z.ZodLiteral<"hex">;
1532
+ }, "strip", z.ZodTypeAny, {
1533
+ r: string;
1534
+ b: string;
1535
+ g: string;
1536
+ kind: "hex";
1537
+ }, {
1538
+ r: string;
1539
+ b: string;
1540
+ g: string;
1541
+ kind: "hex";
1542
+ }>>>;
1543
+ backgroundColour: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1544
+ r: z.ZodEffects<z.ZodString, string, string>;
1545
+ g: z.ZodEffects<z.ZodString, string, string>;
1546
+ b: z.ZodEffects<z.ZodString, string, string>;
1547
+ kind: z.ZodLiteral<"hex">;
1548
+ }, "strip", z.ZodTypeAny, {
1549
+ r: string;
1550
+ b: string;
1551
+ g: string;
1552
+ kind: "hex";
1553
+ }, {
1554
+ r: string;
1555
+ b: string;
1556
+ g: string;
1557
+ kind: "hex";
1558
+ }>>>;
1559
+ }, "strip", z.ZodTypeAny, {
1560
+ copy: string;
1561
+ textColour?: {
1562
+ r: string;
1563
+ b: string;
1564
+ g: string;
1565
+ kind: "hex";
1566
+ } | null | undefined;
1567
+ backgroundColour?: {
1568
+ r: string;
1569
+ b: string;
1570
+ g: string;
1571
+ kind: "hex";
1572
+ } | null | undefined;
1573
+ }, {
1574
+ copy: string;
1575
+ textColour?: {
1576
+ r: string;
1577
+ b: string;
1578
+ g: string;
1579
+ kind: "hex";
1580
+ } | null | undefined;
1581
+ backgroundColour?: {
1582
+ r: string;
1583
+ b: string;
1584
+ g: string;
1585
+ kind: "hex";
1586
+ } | null | undefined;
1587
+ }>>>;
1588
+ }, "strip", z.ZodTypeAny, {
1589
+ product: {
1590
+ supportTier: "Contribution";
1591
+ ratePlan: "Monthly" | "Annual";
1592
+ } | {
1593
+ supportTier: "SupporterPlus";
1594
+ ratePlan: "Monthly" | "Annual";
1595
+ } | {
1596
+ supportTier: "OneOff";
1597
+ };
1598
+ label: string;
1599
+ isDefault: boolean;
1600
+ benefits: {
1601
+ copy: string;
1602
+ }[];
1603
+ benefitsLabel?: string | null | undefined;
1604
+ pill?: {
1605
+ copy: string;
1606
+ textColour?: {
1607
+ r: string;
1608
+ b: string;
1609
+ g: string;
1610
+ kind: "hex";
1611
+ } | null | undefined;
1612
+ backgroundColour?: {
1613
+ r: string;
1614
+ b: string;
1615
+ g: string;
1616
+ kind: "hex";
1617
+ } | null | undefined;
1618
+ } | null | undefined;
1619
+ }, {
1620
+ product: {
1621
+ supportTier: "Contribution";
1622
+ ratePlan: "Monthly" | "Annual";
1623
+ } | {
1624
+ supportTier: "SupporterPlus";
1625
+ ratePlan: "Monthly" | "Annual";
1626
+ } | {
1627
+ supportTier: "OneOff";
1628
+ };
1629
+ label: string;
1630
+ isDefault: boolean;
1631
+ benefits: {
1632
+ copy: string;
1633
+ }[];
1634
+ benefitsLabel?: string | null | undefined;
1635
+ pill?: {
1636
+ copy: string;
1637
+ textColour?: {
1638
+ r: string;
1639
+ b: string;
1640
+ g: string;
1641
+ kind: "hex";
1642
+ } | null | undefined;
1643
+ backgroundColour?: {
1644
+ r: string;
1645
+ b: string;
1646
+ g: string;
1647
+ kind: "hex";
1648
+ } | null | undefined;
1649
+ } | null | undefined;
1650
+ }>, "many">>>;
1651
+ }, "strip", z.ZodTypeAny, {
1652
+ choiceCards: {
1653
+ product: {
1654
+ supportTier: "Contribution";
1655
+ ratePlan: "Monthly" | "Annual";
1656
+ } | {
1657
+ supportTier: "SupporterPlus";
1658
+ ratePlan: "Monthly" | "Annual";
1659
+ } | {
1660
+ supportTier: "OneOff";
1661
+ };
1662
+ label: string;
1663
+ isDefault: boolean;
1664
+ benefits: {
1665
+ copy: string;
1666
+ }[];
1667
+ benefitsLabel?: string | null | undefined;
1668
+ pill?: {
1669
+ copy: string;
1670
+ textColour?: {
1671
+ r: string;
1672
+ b: string;
1673
+ g: string;
1674
+ kind: "hex";
1675
+ } | null | undefined;
1676
+ backgroundColour?: {
1677
+ r: string;
1678
+ b: string;
1679
+ g: string;
1680
+ kind: "hex";
1681
+ } | null | undefined;
1682
+ } | null | undefined;
1683
+ }[];
1684
+ mobileChoiceCards?: {
1685
+ product: {
1686
+ supportTier: "Contribution";
1687
+ ratePlan: "Monthly" | "Annual";
1688
+ } | {
1689
+ supportTier: "SupporterPlus";
1690
+ ratePlan: "Monthly" | "Annual";
1691
+ } | {
1692
+ supportTier: "OneOff";
1693
+ };
1694
+ label: string;
1695
+ isDefault: boolean;
1696
+ benefits: {
1697
+ copy: string;
1698
+ }[];
1699
+ benefitsLabel?: string | null | undefined;
1700
+ pill?: {
1701
+ copy: string;
1702
+ textColour?: {
1703
+ r: string;
1704
+ b: string;
1705
+ g: string;
1706
+ kind: "hex";
1707
+ } | null | undefined;
1708
+ backgroundColour?: {
1709
+ r: string;
1710
+ b: string;
1711
+ g: string;
1712
+ kind: "hex";
1713
+ } | null | undefined;
1714
+ } | null | undefined;
1715
+ }[] | null | undefined;
1716
+ }, {
1717
+ choiceCards: {
1718
+ product: {
1719
+ supportTier: "Contribution";
1720
+ ratePlan: "Monthly" | "Annual";
1721
+ } | {
1722
+ supportTier: "SupporterPlus";
1723
+ ratePlan: "Monthly" | "Annual";
1724
+ } | {
1725
+ supportTier: "OneOff";
1726
+ };
1727
+ label: string;
1728
+ isDefault: boolean;
1729
+ benefits: {
1730
+ copy: string;
1731
+ }[];
1732
+ benefitsLabel?: string | null | undefined;
1733
+ pill?: {
1734
+ copy: string;
1735
+ textColour?: {
1736
+ r: string;
1737
+ b: string;
1738
+ g: string;
1739
+ kind: "hex";
1740
+ } | null | undefined;
1741
+ backgroundColour?: {
1742
+ r: string;
1743
+ b: string;
1744
+ g: string;
1745
+ kind: "hex";
1746
+ } | null | undefined;
1747
+ } | null | undefined;
1748
+ }[];
1749
+ mobileChoiceCards?: {
1750
+ product: {
1751
+ supportTier: "Contribution";
1752
+ ratePlan: "Monthly" | "Annual";
1753
+ } | {
1754
+ supportTier: "SupporterPlus";
1755
+ ratePlan: "Monthly" | "Annual";
1756
+ } | {
1757
+ supportTier: "OneOff";
1758
+ };
1759
+ label: string;
1760
+ isDefault: boolean;
1761
+ benefits: {
1762
+ copy: string;
1763
+ }[];
1764
+ benefitsLabel?: string | null | undefined;
1765
+ pill?: {
1766
+ copy: string;
1767
+ textColour?: {
1768
+ r: string;
1769
+ b: string;
1770
+ g: string;
1771
+ kind: "hex";
1772
+ } | null | undefined;
1773
+ backgroundColour?: {
1774
+ r: string;
1775
+ b: string;
1776
+ g: string;
1777
+ kind: "hex";
1778
+ } | null | undefined;
1779
+ } | null | undefined;
1780
+ }[] | null | undefined;
1781
+ }>>>;
738
1782
  }, "strip", z.ZodTypeAny, {
739
1783
  name: string;
740
1784
  template: (BannerTemplate | {
@@ -800,6 +1844,72 @@ export declare const bannerTestFromToolSchema: z.ZodObject<{
800
1844
  copy?: string | undefined;
801
1845
  countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
802
1846
  } | undefined;
1847
+ choiceCardsSettings?: {
1848
+ choiceCards: {
1849
+ product: {
1850
+ supportTier: "Contribution";
1851
+ ratePlan: "Monthly" | "Annual";
1852
+ } | {
1853
+ supportTier: "SupporterPlus";
1854
+ ratePlan: "Monthly" | "Annual";
1855
+ } | {
1856
+ supportTier: "OneOff";
1857
+ };
1858
+ label: string;
1859
+ isDefault: boolean;
1860
+ benefits: {
1861
+ copy: string;
1862
+ }[];
1863
+ benefitsLabel?: string | null | undefined;
1864
+ pill?: {
1865
+ copy: string;
1866
+ textColour?: {
1867
+ r: string;
1868
+ b: string;
1869
+ g: string;
1870
+ kind: "hex";
1871
+ } | null | undefined;
1872
+ backgroundColour?: {
1873
+ r: string;
1874
+ b: string;
1875
+ g: string;
1876
+ kind: "hex";
1877
+ } | null | undefined;
1878
+ } | null | undefined;
1879
+ }[];
1880
+ mobileChoiceCards?: {
1881
+ product: {
1882
+ supportTier: "Contribution";
1883
+ ratePlan: "Monthly" | "Annual";
1884
+ } | {
1885
+ supportTier: "SupporterPlus";
1886
+ ratePlan: "Monthly" | "Annual";
1887
+ } | {
1888
+ supportTier: "OneOff";
1889
+ };
1890
+ label: string;
1891
+ isDefault: boolean;
1892
+ benefits: {
1893
+ copy: string;
1894
+ }[];
1895
+ benefitsLabel?: string | null | undefined;
1896
+ pill?: {
1897
+ copy: string;
1898
+ textColour?: {
1899
+ r: string;
1900
+ b: string;
1901
+ g: string;
1902
+ kind: "hex";
1903
+ } | null | undefined;
1904
+ backgroundColour?: {
1905
+ r: string;
1906
+ b: string;
1907
+ g: string;
1908
+ kind: "hex";
1909
+ } | null | undefined;
1910
+ } | null | undefined;
1911
+ }[] | null | undefined;
1912
+ } | null | undefined;
803
1913
  }, {
804
1914
  name: string;
805
1915
  template: (BannerTemplate | {
@@ -865,6 +1975,72 @@ export declare const bannerTestFromToolSchema: z.ZodObject<{
865
1975
  copy?: string | undefined;
866
1976
  countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
867
1977
  } | undefined;
1978
+ choiceCardsSettings?: {
1979
+ choiceCards: {
1980
+ product: {
1981
+ supportTier: "Contribution";
1982
+ ratePlan: "Monthly" | "Annual";
1983
+ } | {
1984
+ supportTier: "SupporterPlus";
1985
+ ratePlan: "Monthly" | "Annual";
1986
+ } | {
1987
+ supportTier: "OneOff";
1988
+ };
1989
+ label: string;
1990
+ isDefault: boolean;
1991
+ benefits: {
1992
+ copy: string;
1993
+ }[];
1994
+ benefitsLabel?: string | null | undefined;
1995
+ pill?: {
1996
+ copy: string;
1997
+ textColour?: {
1998
+ r: string;
1999
+ b: string;
2000
+ g: string;
2001
+ kind: "hex";
2002
+ } | null | undefined;
2003
+ backgroundColour?: {
2004
+ r: string;
2005
+ b: string;
2006
+ g: string;
2007
+ kind: "hex";
2008
+ } | null | undefined;
2009
+ } | null | undefined;
2010
+ }[];
2011
+ mobileChoiceCards?: {
2012
+ product: {
2013
+ supportTier: "Contribution";
2014
+ ratePlan: "Monthly" | "Annual";
2015
+ } | {
2016
+ supportTier: "SupporterPlus";
2017
+ ratePlan: "Monthly" | "Annual";
2018
+ } | {
2019
+ supportTier: "OneOff";
2020
+ };
2021
+ label: string;
2022
+ isDefault: boolean;
2023
+ benefits: {
2024
+ copy: string;
2025
+ }[];
2026
+ benefitsLabel?: string | null | undefined;
2027
+ pill?: {
2028
+ copy: string;
2029
+ textColour?: {
2030
+ r: string;
2031
+ b: string;
2032
+ g: string;
2033
+ kind: "hex";
2034
+ } | null | undefined;
2035
+ backgroundColour?: {
2036
+ r: string;
2037
+ b: string;
2038
+ g: string;
2039
+ kind: "hex";
2040
+ } | null | undefined;
2041
+ } | null | undefined;
2042
+ }[] | null | undefined;
2043
+ } | null | undefined;
868
2044
  }>, "many">;
869
2045
  articlesViewedSettings: z.ZodOptional<z.ZodObject<{
870
2046
  minViews: z.ZodNumber;
@@ -960,6 +2136,72 @@ export declare const bannerTestFromToolSchema: z.ZodObject<{
960
2136
  copy?: string | undefined;
961
2137
  countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
962
2138
  } | undefined;
2139
+ choiceCardsSettings?: {
2140
+ choiceCards: {
2141
+ product: {
2142
+ supportTier: "Contribution";
2143
+ ratePlan: "Monthly" | "Annual";
2144
+ } | {
2145
+ supportTier: "SupporterPlus";
2146
+ ratePlan: "Monthly" | "Annual";
2147
+ } | {
2148
+ supportTier: "OneOff";
2149
+ };
2150
+ label: string;
2151
+ isDefault: boolean;
2152
+ benefits: {
2153
+ copy: string;
2154
+ }[];
2155
+ benefitsLabel?: string | null | undefined;
2156
+ pill?: {
2157
+ copy: string;
2158
+ textColour?: {
2159
+ r: string;
2160
+ b: string;
2161
+ g: string;
2162
+ kind: "hex";
2163
+ } | null | undefined;
2164
+ backgroundColour?: {
2165
+ r: string;
2166
+ b: string;
2167
+ g: string;
2168
+ kind: "hex";
2169
+ } | null | undefined;
2170
+ } | null | undefined;
2171
+ }[];
2172
+ mobileChoiceCards?: {
2173
+ product: {
2174
+ supportTier: "Contribution";
2175
+ ratePlan: "Monthly" | "Annual";
2176
+ } | {
2177
+ supportTier: "SupporterPlus";
2178
+ ratePlan: "Monthly" | "Annual";
2179
+ } | {
2180
+ supportTier: "OneOff";
2181
+ };
2182
+ label: string;
2183
+ isDefault: boolean;
2184
+ benefits: {
2185
+ copy: string;
2186
+ }[];
2187
+ benefitsLabel?: string | null | undefined;
2188
+ pill?: {
2189
+ copy: string;
2190
+ textColour?: {
2191
+ r: string;
2192
+ b: string;
2193
+ g: string;
2194
+ kind: "hex";
2195
+ } | null | undefined;
2196
+ backgroundColour?: {
2197
+ r: string;
2198
+ b: string;
2199
+ g: string;
2200
+ kind: "hex";
2201
+ } | null | undefined;
2202
+ } | null | undefined;
2203
+ }[] | null | undefined;
2204
+ } | null | undefined;
963
2205
  }[];
964
2206
  contextTargeting: {
965
2207
  tagIds: string[];
@@ -1071,6 +2313,72 @@ export declare const bannerTestFromToolSchema: z.ZodObject<{
1071
2313
  copy?: string | undefined;
1072
2314
  countType?: "for52Weeks" | "forTargetedWeeks" | undefined;
1073
2315
  } | undefined;
2316
+ choiceCardsSettings?: {
2317
+ choiceCards: {
2318
+ product: {
2319
+ supportTier: "Contribution";
2320
+ ratePlan: "Monthly" | "Annual";
2321
+ } | {
2322
+ supportTier: "SupporterPlus";
2323
+ ratePlan: "Monthly" | "Annual";
2324
+ } | {
2325
+ supportTier: "OneOff";
2326
+ };
2327
+ label: string;
2328
+ isDefault: boolean;
2329
+ benefits: {
2330
+ copy: string;
2331
+ }[];
2332
+ benefitsLabel?: string | null | undefined;
2333
+ pill?: {
2334
+ copy: string;
2335
+ textColour?: {
2336
+ r: string;
2337
+ b: string;
2338
+ g: string;
2339
+ kind: "hex";
2340
+ } | null | undefined;
2341
+ backgroundColour?: {
2342
+ r: string;
2343
+ b: string;
2344
+ g: string;
2345
+ kind: "hex";
2346
+ } | null | undefined;
2347
+ } | null | undefined;
2348
+ }[];
2349
+ mobileChoiceCards?: {
2350
+ product: {
2351
+ supportTier: "Contribution";
2352
+ ratePlan: "Monthly" | "Annual";
2353
+ } | {
2354
+ supportTier: "SupporterPlus";
2355
+ ratePlan: "Monthly" | "Annual";
2356
+ } | {
2357
+ supportTier: "OneOff";
2358
+ };
2359
+ label: string;
2360
+ isDefault: boolean;
2361
+ benefits: {
2362
+ copy: string;
2363
+ }[];
2364
+ benefitsLabel?: string | null | undefined;
2365
+ pill?: {
2366
+ copy: string;
2367
+ textColour?: {
2368
+ r: string;
2369
+ b: string;
2370
+ g: string;
2371
+ kind: "hex";
2372
+ } | null | undefined;
2373
+ backgroundColour?: {
2374
+ r: string;
2375
+ b: string;
2376
+ g: string;
2377
+ kind: "hex";
2378
+ } | null | undefined;
2379
+ } | null | undefined;
2380
+ }[] | null | undefined;
2381
+ } | null | undefined;
1074
2382
  }[];
1075
2383
  contextTargeting: {
1076
2384
  tagIds: string[];