@swishapp/sdk 0.136.0 → 0.136.1-unstable.20260610194443

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.
@@ -62,15 +62,11 @@ export declare const DrawerSectionSchema: v.VariantSchema<"type", [v.ObjectSchem
62
62
  readonly enabled: true;
63
63
  readonly intent: "view:profile";
64
64
  }]>;
65
- }, undefined>, v.Default<v.ObjectSchema<{
66
- readonly displayType: v.OptionalSchema<v.PicklistSchema<["floating", "docked"], undefined>, "docked">;
67
- readonly showIcons: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
68
- readonly showText: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
69
- readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
70
- readonly id: v.StringSchema<undefined>;
71
- readonly enabled: v.BooleanSchema<undefined>;
72
- readonly intent: v.StringSchema<undefined>;
73
- }, undefined>, undefined>, readonly [{
65
+ }, undefined>, {
66
+ readonly displayType: "docked";
67
+ readonly showIcons: false;
68
+ readonly showText: true;
69
+ readonly items: readonly [{
74
70
  readonly id: "home";
75
71
  readonly enabled: true;
76
72
  readonly intent: "view:home";
@@ -94,8 +90,8 @@ export declare const DrawerSectionSchema: v.VariantSchema<"type", [v.ObjectSchem
94
90
  readonly id: "profile";
95
91
  readonly enabled: true;
96
92
  readonly intent: "view:profile";
97
- }]>;
98
- }, undefined>, undefined>>;
93
+ }];
94
+ }>;
99
95
  }, undefined>], undefined>;
100
96
  export declare const HomeSectionSchema: v.VariantSchema<"type", [v.ObjectSchema<{
101
97
  readonly type: v.PicklistSchema<["sign-in", "notifications", "recently-viewed", "saved-from-cart", "saved-items", "lists"], undefined>;
@@ -372,15 +368,11 @@ export declare const DrawerViewSchema: v.ObjectSchema<{
372
368
  readonly enabled: true;
373
369
  readonly intent: "view:profile";
374
370
  }]>;
375
- }, undefined>, v.Default<v.ObjectSchema<{
376
- readonly displayType: v.OptionalSchema<v.PicklistSchema<["floating", "docked"], undefined>, "docked">;
377
- readonly showIcons: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
378
- readonly showText: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
379
- readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
380
- readonly id: v.StringSchema<undefined>;
381
- readonly enabled: v.BooleanSchema<undefined>;
382
- readonly intent: v.StringSchema<undefined>;
383
- }, undefined>, undefined>, readonly [{
371
+ }, undefined>, {
372
+ readonly displayType: "docked";
373
+ readonly showIcons: false;
374
+ readonly showText: true;
375
+ readonly items: readonly [{
384
376
  readonly id: "home";
385
377
  readonly enabled: true;
386
378
  readonly intent: "view:home";
@@ -404,25 +396,11 @@ export declare const DrawerViewSchema: v.ObjectSchema<{
404
396
  readonly id: "profile";
405
397
  readonly enabled: true;
406
398
  readonly intent: "view:profile";
407
- }]>;
408
- }, undefined>, undefined>>;
409
- }, undefined>], undefined>, undefined>, v.Default<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
410
- readonly type: v.LiteralSchema<"drawer-header", undefined>;
411
- readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
412
- readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
413
- readonly options: v.OptionalSchema<v.ObjectSchema<{
414
- readonly title: v.OptionalSchema<v.StringSchema<undefined>, "">;
415
- readonly logo: v.OptionalSchema<v.ObjectSchema<{
416
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, "">;
417
- readonly altText: v.OptionalSchema<v.StringSchema<undefined>, "">;
418
- }, undefined>, {
419
- readonly url: "";
420
- readonly altText: "";
421
- }>;
422
- readonly useCloseButton: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
423
- readonly accountButton: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
424
- readonly notificationButton: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
425
- }, undefined>, {
399
+ }];
400
+ }>;
401
+ }, undefined>], undefined>, undefined>, readonly [{
402
+ readonly type: "drawer-header";
403
+ readonly options: {
426
404
  readonly title: "";
427
405
  readonly logo: {
428
406
  readonly url: "";
@@ -431,53 +409,14 @@ export declare const DrawerViewSchema: v.ObjectSchema<{
431
409
  readonly useCloseButton: false;
432
410
  readonly accountButton: true;
433
411
  readonly notificationButton: true;
434
- }>;
435
- }, undefined>, v.ObjectSchema<{
436
- readonly type: v.LiteralSchema<"drawer-footer", undefined>;
437
- readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
438
- readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
439
- readonly options: v.OptionalSchema<v.ObjectSchema<{
440
- readonly displayType: v.OptionalSchema<v.PicklistSchema<["floating", "docked"], undefined>, "docked">;
441
- readonly showIcons: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
442
- readonly showText: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
443
- readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
444
- readonly id: v.StringSchema<undefined>;
445
- readonly enabled: v.BooleanSchema<undefined>;
446
- readonly intent: v.StringSchema<undefined>;
447
- }, undefined>, undefined>, readonly [{
448
- readonly id: "home";
449
- readonly enabled: true;
450
- readonly intent: "view:home";
451
- }, {
452
- readonly id: "saves";
453
- readonly enabled: true;
454
- readonly intent: "view:saves";
455
- }, {
456
- readonly id: "lists";
457
- readonly enabled: false;
458
- readonly intent: "view:lists";
459
- }, {
460
- readonly id: "notifications";
461
- readonly enabled: true;
462
- readonly intent: "view:notifications";
463
- }, {
464
- readonly id: "orders";
465
- readonly enabled: true;
466
- readonly intent: "view:orders";
467
- }, {
468
- readonly id: "profile";
469
- readonly enabled: true;
470
- readonly intent: "view:profile";
471
- }]>;
472
- }, undefined>, v.Default<v.ObjectSchema<{
473
- readonly displayType: v.OptionalSchema<v.PicklistSchema<["floating", "docked"], undefined>, "docked">;
474
- readonly showIcons: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
475
- readonly showText: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
476
- readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
477
- readonly id: v.StringSchema<undefined>;
478
- readonly enabled: v.BooleanSchema<undefined>;
479
- readonly intent: v.StringSchema<undefined>;
480
- }, undefined>, undefined>, readonly [{
412
+ };
413
+ }, {
414
+ readonly type: "drawer-footer";
415
+ readonly options: {
416
+ readonly displayType: "docked";
417
+ readonly showIcons: false;
418
+ readonly showText: true;
419
+ readonly items: readonly [{
481
420
  readonly id: "home";
482
421
  readonly enabled: true;
483
422
  readonly intent: "view:home";
@@ -501,9 +440,9 @@ export declare const DrawerViewSchema: v.ObjectSchema<{
501
440
  readonly id: "profile";
502
441
  readonly enabled: true;
503
442
  readonly intent: "view:profile";
504
- }]>;
505
- }, undefined>, undefined>>;
506
- }, undefined>], undefined>, undefined>, undefined>>;
443
+ }];
444
+ };
445
+ }]>;
507
446
  }, undefined>;
508
447
  export declare const HomeViewSchema: v.ObjectSchema<{
509
448
  readonly sections: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
@@ -543,44 +482,32 @@ export declare const HomeViewSchema: v.ObjectSchema<{
543
482
  readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
544
483
  readonly options: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, {}>;
545
484
  readonly handle: v.StringSchema<undefined>;
546
- }, undefined>], undefined>, undefined>, v.Default<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
547
- readonly type: v.PicklistSchema<["sign-in", "notifications", "recently-viewed", "saved-from-cart", "saved-items", "lists"], undefined>;
548
- readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
549
- readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
550
- readonly options: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, {}>;
551
- }, undefined>, v.ObjectSchema<{
552
- readonly type: v.LiteralSchema<"mini-menu", undefined>;
553
- readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
554
- readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
555
- readonly options: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, {}>;
556
- readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
557
- readonly title: v.StringSchema<undefined>;
558
- readonly url: v.StringSchema<undefined>;
559
- readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
560
- }, undefined>, undefined>, readonly []>;
561
- }, undefined>, v.ObjectSchema<{
562
- readonly type: v.LiteralSchema<"content-block", undefined>;
563
- readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
564
- readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
565
- readonly options: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, {}>;
566
- readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
567
- readonly body: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
568
- readonly image: v.OptionalSchema<v.ObjectSchema<{
569
- readonly url: v.StringSchema<undefined>;
570
- readonly width: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
571
- readonly height: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
572
- }, undefined>, undefined>;
573
- readonly link: v.OptionalSchema<v.ObjectSchema<{
574
- readonly url: v.StringSchema<undefined>;
575
- readonly target: v.OptionalSchema<v.PicklistSchema<["_self", "_blank"], undefined>, undefined>;
576
- }, undefined>, undefined>;
577
- }, undefined>, v.ObjectSchema<{
578
- readonly type: v.LiteralSchema<"featured-collection", undefined>;
579
- readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
580
- readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
581
- readonly options: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, {}>;
582
- readonly handle: v.StringSchema<undefined>;
583
- }, undefined>], undefined>, undefined>, undefined>>;
485
+ }, undefined>], undefined>, undefined>, readonly [{
486
+ readonly type: "sign-in";
487
+ }, {
488
+ readonly type: "notifications";
489
+ }, {
490
+ readonly type: "recently-viewed";
491
+ }, {
492
+ readonly type: "saved-from-cart";
493
+ }, {
494
+ readonly type: "saved-items";
495
+ }, {
496
+ readonly type: "lists";
497
+ }, {
498
+ readonly type: "mini-menu";
499
+ readonly hidden: true;
500
+ readonly items: readonly [{
501
+ readonly title: "Shipping";
502
+ readonly url: "/policies/shipping-policy";
503
+ }, {
504
+ readonly title: "Returns";
505
+ readonly url: "/policies/refund-policy";
506
+ }, {
507
+ readonly title: "Contact Us";
508
+ readonly url: "/pages/contact";
509
+ }];
510
+ }]>;
584
511
  }, undefined>;
585
512
  export declare const SavesViewSchema: v.ObjectSchema<{
586
513
  readonly sections: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
@@ -894,15 +821,11 @@ export declare const UiSchema: v.ObjectSchema<{
894
821
  readonly enabled: true;
895
822
  readonly intent: "view:profile";
896
823
  }]>;
897
- }, undefined>, v.Default<v.ObjectSchema<{
898
- readonly displayType: v.OptionalSchema<v.PicklistSchema<["floating", "docked"], undefined>, "docked">;
899
- readonly showIcons: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
900
- readonly showText: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
901
- readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
902
- readonly id: v.StringSchema<undefined>;
903
- readonly enabled: v.BooleanSchema<undefined>;
904
- readonly intent: v.StringSchema<undefined>;
905
- }, undefined>, undefined>, readonly [{
824
+ }, undefined>, {
825
+ readonly displayType: "docked";
826
+ readonly showIcons: false;
827
+ readonly showText: true;
828
+ readonly items: readonly [{
906
829
  readonly id: "home";
907
830
  readonly enabled: true;
908
831
  readonly intent: "view:home";
@@ -926,25 +849,11 @@ export declare const UiSchema: v.ObjectSchema<{
926
849
  readonly id: "profile";
927
850
  readonly enabled: true;
928
851
  readonly intent: "view:profile";
929
- }]>;
930
- }, undefined>, undefined>>;
931
- }, undefined>], undefined>, undefined>, v.Default<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
932
- readonly type: v.LiteralSchema<"drawer-header", undefined>;
933
- readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
934
- readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
935
- readonly options: v.OptionalSchema<v.ObjectSchema<{
936
- readonly title: v.OptionalSchema<v.StringSchema<undefined>, "">;
937
- readonly logo: v.OptionalSchema<v.ObjectSchema<{
938
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, "">;
939
- readonly altText: v.OptionalSchema<v.StringSchema<undefined>, "">;
940
- }, undefined>, {
941
- readonly url: "";
942
- readonly altText: "";
943
- }>;
944
- readonly useCloseButton: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
945
- readonly accountButton: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
946
- readonly notificationButton: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
947
- }, undefined>, {
852
+ }];
853
+ }>;
854
+ }, undefined>], undefined>, undefined>, readonly [{
855
+ readonly type: "drawer-header";
856
+ readonly options: {
948
857
  readonly title: "";
949
858
  readonly logo: {
950
859
  readonly url: "";
@@ -953,53 +862,14 @@ export declare const UiSchema: v.ObjectSchema<{
953
862
  readonly useCloseButton: false;
954
863
  readonly accountButton: true;
955
864
  readonly notificationButton: true;
956
- }>;
957
- }, undefined>, v.ObjectSchema<{
958
- readonly type: v.LiteralSchema<"drawer-footer", undefined>;
959
- readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
960
- readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
961
- readonly options: v.OptionalSchema<v.ObjectSchema<{
962
- readonly displayType: v.OptionalSchema<v.PicklistSchema<["floating", "docked"], undefined>, "docked">;
963
- readonly showIcons: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
964
- readonly showText: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
965
- readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
966
- readonly id: v.StringSchema<undefined>;
967
- readonly enabled: v.BooleanSchema<undefined>;
968
- readonly intent: v.StringSchema<undefined>;
969
- }, undefined>, undefined>, readonly [{
970
- readonly id: "home";
971
- readonly enabled: true;
972
- readonly intent: "view:home";
973
- }, {
974
- readonly id: "saves";
975
- readonly enabled: true;
976
- readonly intent: "view:saves";
977
- }, {
978
- readonly id: "lists";
979
- readonly enabled: false;
980
- readonly intent: "view:lists";
981
- }, {
982
- readonly id: "notifications";
983
- readonly enabled: true;
984
- readonly intent: "view:notifications";
985
- }, {
986
- readonly id: "orders";
987
- readonly enabled: true;
988
- readonly intent: "view:orders";
989
- }, {
990
- readonly id: "profile";
991
- readonly enabled: true;
992
- readonly intent: "view:profile";
993
- }]>;
994
- }, undefined>, v.Default<v.ObjectSchema<{
995
- readonly displayType: v.OptionalSchema<v.PicklistSchema<["floating", "docked"], undefined>, "docked">;
996
- readonly showIcons: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
997
- readonly showText: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
998
- readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
999
- readonly id: v.StringSchema<undefined>;
1000
- readonly enabled: v.BooleanSchema<undefined>;
1001
- readonly intent: v.StringSchema<undefined>;
1002
- }, undefined>, undefined>, readonly [{
865
+ };
866
+ }, {
867
+ readonly type: "drawer-footer";
868
+ readonly options: {
869
+ readonly displayType: "docked";
870
+ readonly showIcons: false;
871
+ readonly showText: true;
872
+ readonly items: readonly [{
1003
873
  readonly id: "home";
1004
874
  readonly enabled: true;
1005
875
  readonly intent: "view:home";
@@ -1023,9 +893,9 @@ export declare const UiSchema: v.ObjectSchema<{
1023
893
  readonly id: "profile";
1024
894
  readonly enabled: true;
1025
895
  readonly intent: "view:profile";
1026
- }]>;
1027
- }, undefined>, undefined>>;
1028
- }, undefined>], undefined>, undefined>, undefined>>;
896
+ }];
897
+ };
898
+ }]>;
1029
899
  }, undefined>, {}>;
1030
900
  readonly home: v.OptionalSchema<v.ObjectSchema<{
1031
901
  readonly sections: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
@@ -1065,44 +935,32 @@ export declare const UiSchema: v.ObjectSchema<{
1065
935
  readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
1066
936
  readonly options: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, {}>;
1067
937
  readonly handle: v.StringSchema<undefined>;
1068
- }, undefined>], undefined>, undefined>, v.Default<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
1069
- readonly type: v.PicklistSchema<["sign-in", "notifications", "recently-viewed", "saved-from-cart", "saved-items", "lists"], undefined>;
1070
- readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
1071
- readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
1072
- readonly options: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, {}>;
1073
- }, undefined>, v.ObjectSchema<{
1074
- readonly type: v.LiteralSchema<"mini-menu", undefined>;
1075
- readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
1076
- readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
1077
- readonly options: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, {}>;
1078
- readonly items: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1079
- readonly title: v.StringSchema<undefined>;
1080
- readonly url: v.StringSchema<undefined>;
1081
- readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
1082
- }, undefined>, undefined>, readonly []>;
1083
- }, undefined>, v.ObjectSchema<{
1084
- readonly type: v.LiteralSchema<"content-block", undefined>;
1085
- readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
1086
- readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
1087
- readonly options: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, {}>;
1088
- readonly title: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1089
- readonly body: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1090
- readonly image: v.OptionalSchema<v.ObjectSchema<{
1091
- readonly url: v.StringSchema<undefined>;
1092
- readonly width: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1093
- readonly height: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1094
- }, undefined>, undefined>;
1095
- readonly link: v.OptionalSchema<v.ObjectSchema<{
1096
- readonly url: v.StringSchema<undefined>;
1097
- readonly target: v.OptionalSchema<v.PicklistSchema<["_self", "_blank"], undefined>, undefined>;
1098
- }, undefined>, undefined>;
1099
- }, undefined>, v.ObjectSchema<{
1100
- readonly type: v.LiteralSchema<"featured-collection", undefined>;
1101
- readonly hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
1102
- readonly design: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, undefined>, {}>;
1103
- readonly options: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, {}>;
1104
- readonly handle: v.StringSchema<undefined>;
1105
- }, undefined>], undefined>, undefined>, undefined>>;
938
+ }, undefined>], undefined>, undefined>, readonly [{
939
+ readonly type: "sign-in";
940
+ }, {
941
+ readonly type: "notifications";
942
+ }, {
943
+ readonly type: "recently-viewed";
944
+ }, {
945
+ readonly type: "saved-from-cart";
946
+ }, {
947
+ readonly type: "saved-items";
948
+ }, {
949
+ readonly type: "lists";
950
+ }, {
951
+ readonly type: "mini-menu";
952
+ readonly hidden: true;
953
+ readonly items: readonly [{
954
+ readonly title: "Shipping";
955
+ readonly url: "/policies/shipping-policy";
956
+ }, {
957
+ readonly title: "Returns";
958
+ readonly url: "/policies/refund-policy";
959
+ }, {
960
+ readonly title: "Contact Us";
961
+ readonly url: "/pages/contact";
962
+ }];
963
+ }]>;
1106
964
  }, undefined>, {}>;
1107
965
  readonly saves: v.OptionalSchema<v.ObjectSchema<{
1108
966
  readonly sections: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.ObjectSchema<{
package/dist/swish.d.ts CHANGED
@@ -57,7 +57,7 @@ declare class SwishApp {
57
57
  baseTint: boolean;
58
58
  };
59
59
  drawer: {
60
- sections?: ({
60
+ sections: ({
61
61
  type: "drawer-header";
62
62
  hidden: boolean;
63
63
  design: {
@@ -79,7 +79,7 @@ declare class SwishApp {
79
79
  design: {
80
80
  [x: string]: string | number;
81
81
  };
82
- options?: {
82
+ options: {
83
83
  displayType: "floating" | "docked";
84
84
  showIcons: boolean;
85
85
  showText: boolean;
@@ -88,11 +88,11 @@ declare class SwishApp {
88
88
  enabled: boolean;
89
89
  intent: string;
90
90
  }[];
91
- } | undefined;
92
- })[] | undefined;
91
+ };
92
+ })[];
93
93
  };
94
94
  home: {
95
- sections?: ({
95
+ sections: ({
96
96
  type: "lists" | "notifications" | "sign-in" | "recently-viewed" | "saved-from-cart" | "saved-items";
97
97
  hidden: boolean;
98
98
  design: {
@@ -145,7 +145,7 @@ declare class SwishApp {
145
145
  [x: string]: unknown;
146
146
  };
147
147
  handle: string;
148
- })[] | undefined;
148
+ })[];
149
149
  };
150
150
  saves: {
151
151
  sections: ({