@wix/pro-gallery 1.0.50 → 1.0.52

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.
@@ -81,7 +81,7 @@ interface Link$1 {
81
81
  /** Target URL of the link. */
82
82
  url?: string | null;
83
83
  }
84
- declare enum LinkType {
84
+ declare enum LinkType$1 {
85
85
  UNDEFINED = "UNDEFINED",
86
86
  /** external link */
87
87
  EXTERNAL = "EXTERNAL",
@@ -93,7 +93,7 @@ declare enum LinkType {
93
93
  * Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
94
94
  * Following are the accepted 'rel' types by Wix applications.
95
95
  */
96
- declare enum LinkRel {
96
+ declare enum LinkRel$1 {
97
97
  /** default (not implemented) */
98
98
  unknown_link_rel = "unknown_link_rel",
99
99
  /** Indicates that the current document's original author or publisher does not endorse the referenced document. */
@@ -128,7 +128,7 @@ interface Image$1 {
128
128
  /** [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. */
129
129
  unsharpMasking?: UnsharpMasking$1;
130
130
  }
131
- declare enum ImageType {
131
+ declare enum ImageType$1 {
132
132
  UNDEFINED = "UNDEFINED",
133
133
  WIX_MEDIA = "WIX_MEDIA",
134
134
  EXTERNAL = "EXTERNAL"
@@ -390,990 +390,142 @@ interface DeleteGalleryItemResponse$1 {
390
390
  */
391
391
  itemId?: string;
392
392
  }
393
+ interface CommonImageNonNullableFields {
394
+ id: string;
395
+ url: string;
396
+ height: number;
397
+ width: number;
398
+ }
399
+ interface PointNonNullableFields$1 {
400
+ x: number;
401
+ y: number;
402
+ }
403
+ interface ImageNonNullableFields$1 {
404
+ type: ImageType$1;
405
+ imageInfo?: CommonImageNonNullableFields;
406
+ focalPoint?: PointNonNullableFields$1;
407
+ }
408
+ interface VideoResolutionNonNullableFields {
409
+ url: string;
410
+ height: number;
411
+ width: number;
412
+ poster?: CommonImageNonNullableFields;
413
+ format: string;
414
+ }
415
+ interface VideoV2NonNullableFields {
416
+ id: string;
417
+ url: string;
418
+ resolutions: VideoResolutionNonNullableFields[];
419
+ posters: CommonImageNonNullableFields[];
420
+ }
421
+ interface VideoNonNullableFields$1 {
422
+ type: VideoType$1;
423
+ videoInfo?: VideoV2NonNullableFields;
424
+ }
425
+ interface ExternalLinkNonNullableFields$1 {
426
+ url: string;
427
+ }
428
+ interface PageLinkNonNullableFields$1 {
429
+ pageId: string;
430
+ rel: LinkRel$1[];
431
+ }
432
+ interface AnchorLinkNonNullableFields$1 {
433
+ anchorName: string;
434
+ anchorDataId: string;
435
+ pageId: string;
436
+ rel: LinkRel$1[];
437
+ }
438
+ interface DynamicPageLinkNonNullableFields$1 {
439
+ routerId: string;
440
+ innerRoute: string;
441
+ rel: LinkRel$1[];
442
+ }
443
+ interface DocumentLinkNonNullableFields$1 {
444
+ docId: string;
445
+ indexable: boolean;
446
+ }
447
+ interface EmailLinkNonNullableFields$1 {
448
+ recipient: string;
449
+ }
450
+ interface PhoneLinkNonNullableFields$1 {
451
+ phoneNumber: string;
452
+ }
453
+ interface AddressLinkNonNullableFields$1 {
454
+ address: string;
455
+ }
456
+ interface WhatsAppLinkNonNullableFields$1 {
457
+ phoneNumber: string;
458
+ }
459
+ interface TpaPageLinkNonNullableFields$1 {
460
+ itemTypeIdentifier: string;
461
+ itemId: string;
462
+ pageId: string;
463
+ appDefinitionId: string;
464
+ path: string;
465
+ rel: LinkRel$1[];
466
+ }
467
+ interface WixLinkNonNullableFields$1 {
468
+ external?: ExternalLinkNonNullableFields$1;
469
+ page?: PageLinkNonNullableFields$1;
470
+ anchor?: AnchorLinkNonNullableFields$1;
471
+ dynamicPage?: DynamicPageLinkNonNullableFields$1;
472
+ document?: DocumentLinkNonNullableFields$1;
473
+ email?: EmailLinkNonNullableFields$1;
474
+ phone?: PhoneLinkNonNullableFields$1;
475
+ address?: AddressLinkNonNullableFields$1;
476
+ whatsApp?: WhatsAppLinkNonNullableFields$1;
477
+ tpaPage?: TpaPageLinkNonNullableFields$1;
478
+ }
479
+ interface LinkNonNullableFields$1 {
480
+ type: LinkType$1;
481
+ wixLinkData?: WixLinkNonNullableFields$1;
482
+ }
483
+ interface TagsNonNullableFields$1 {
484
+ values: string[];
485
+ }
486
+ interface SecondaryMediaNonNullableFields$1 {
487
+ image?: ImageNonNullableFields$1;
488
+ }
489
+ interface ItemNonNullableFields$1 {
490
+ image?: ImageNonNullableFields$1;
491
+ video?: VideoNonNullableFields$1;
492
+ link?: LinkNonNullableFields$1;
493
+ type: Type$1;
494
+ tags?: TagsNonNullableFields$1;
495
+ secondaryMedia?: SecondaryMediaNonNullableFields$1;
496
+ }
497
+ interface GalleryNonNullableFields$1 {
498
+ items: ItemNonNullableFields$1[];
499
+ }
393
500
  interface ListGalleriesResponseNonNullableFields$1 {
394
- galleries: {
395
- items: {
396
- image?: {
397
- type: ImageType;
398
- imageInfo?: {
399
- id: string;
400
- url: string;
401
- height: number;
402
- width: number;
403
- };
404
- focalPoint?: {
405
- x: number;
406
- y: number;
407
- };
408
- };
409
- video?: {
410
- type: VideoType$1;
411
- videoInfo?: {
412
- id: string;
413
- url: string;
414
- resolutions: {
415
- url: string;
416
- height: number;
417
- width: number;
418
- poster?: {
419
- id: string;
420
- url: string;
421
- height: number;
422
- width: number;
423
- };
424
- format: string;
425
- }[];
426
- posters: {
427
- id: string;
428
- url: string;
429
- height: number;
430
- width: number;
431
- }[];
432
- };
433
- };
434
- link?: {
435
- type: LinkType;
436
- wixLinkData?: {
437
- external?: {
438
- url: string;
439
- };
440
- page?: {
441
- pageId: string;
442
- rel: LinkRel[];
443
- };
444
- anchor?: {
445
- anchorName: string;
446
- anchorDataId: string;
447
- pageId: string;
448
- rel: LinkRel[];
449
- };
450
- dynamicPage?: {
451
- routerId: string;
452
- innerRoute: string;
453
- rel: LinkRel[];
454
- };
455
- document?: {
456
- docId: string;
457
- indexable: boolean;
458
- };
459
- email?: {
460
- recipient: string;
461
- };
462
- phone?: {
463
- phoneNumber: string;
464
- };
465
- address?: {
466
- address: string;
467
- };
468
- whatsApp?: {
469
- phoneNumber: string;
470
- };
471
- tpaPage?: {
472
- itemTypeIdentifier: string;
473
- itemId: string;
474
- pageId: string;
475
- appDefinitionId: string;
476
- path: string;
477
- rel: LinkRel[];
478
- };
479
- };
480
- };
481
- type: Type$1;
482
- tags?: {
483
- values: string[];
484
- };
485
- secondaryMedia?: {
486
- image?: {
487
- type: ImageType;
488
- imageInfo?: {
489
- id: string;
490
- url: string;
491
- height: number;
492
- width: number;
493
- };
494
- focalPoint?: {
495
- x: number;
496
- y: number;
497
- };
498
- };
499
- };
500
- }[];
501
- }[];
501
+ galleries: GalleryNonNullableFields$1[];
502
502
  }
503
503
  interface GetGalleryResponseNonNullableFields$1 {
504
- gallery?: {
505
- items: {
506
- image?: {
507
- type: ImageType;
508
- imageInfo?: {
509
- id: string;
510
- url: string;
511
- height: number;
512
- width: number;
513
- };
514
- focalPoint?: {
515
- x: number;
516
- y: number;
517
- };
518
- };
519
- video?: {
520
- type: VideoType$1;
521
- videoInfo?: {
522
- id: string;
523
- url: string;
524
- resolutions: {
525
- url: string;
526
- height: number;
527
- width: number;
528
- poster?: {
529
- id: string;
530
- url: string;
531
- height: number;
532
- width: number;
533
- };
534
- format: string;
535
- }[];
536
- posters: {
537
- id: string;
538
- url: string;
539
- height: number;
540
- width: number;
541
- }[];
542
- };
543
- };
544
- link?: {
545
- type: LinkType;
546
- wixLinkData?: {
547
- external?: {
548
- url: string;
549
- };
550
- page?: {
551
- pageId: string;
552
- rel: LinkRel[];
553
- };
554
- anchor?: {
555
- anchorName: string;
556
- anchorDataId: string;
557
- pageId: string;
558
- rel: LinkRel[];
559
- };
560
- dynamicPage?: {
561
- routerId: string;
562
- innerRoute: string;
563
- rel: LinkRel[];
564
- };
565
- document?: {
566
- docId: string;
567
- indexable: boolean;
568
- };
569
- email?: {
570
- recipient: string;
571
- };
572
- phone?: {
573
- phoneNumber: string;
574
- };
575
- address?: {
576
- address: string;
577
- };
578
- whatsApp?: {
579
- phoneNumber: string;
580
- };
581
- tpaPage?: {
582
- itemTypeIdentifier: string;
583
- itemId: string;
584
- pageId: string;
585
- appDefinitionId: string;
586
- path: string;
587
- rel: LinkRel[];
588
- };
589
- };
590
- };
591
- type: Type$1;
592
- tags?: {
593
- values: string[];
594
- };
595
- secondaryMedia?: {
596
- image?: {
597
- type: ImageType;
598
- imageInfo?: {
599
- id: string;
600
- url: string;
601
- height: number;
602
- width: number;
603
- };
604
- focalPoint?: {
605
- x: number;
606
- y: number;
607
- };
608
- };
609
- };
610
- }[];
611
- };
504
+ gallery?: GalleryNonNullableFields$1;
612
505
  }
613
506
  interface ListGalleryItemsResponseNonNullableFields$1 {
614
- items: {
615
- image?: {
616
- type: ImageType;
617
- imageInfo?: {
618
- id: string;
619
- url: string;
620
- height: number;
621
- width: number;
622
- };
623
- focalPoint?: {
624
- x: number;
625
- y: number;
626
- };
627
- };
628
- video?: {
629
- type: VideoType$1;
630
- videoInfo?: {
631
- id: string;
632
- url: string;
633
- resolutions: {
634
- url: string;
635
- height: number;
636
- width: number;
637
- poster?: {
638
- id: string;
639
- url: string;
640
- height: number;
641
- width: number;
642
- };
643
- format: string;
644
- }[];
645
- posters: {
646
- id: string;
647
- url: string;
648
- height: number;
649
- width: number;
650
- }[];
651
- };
652
- };
653
- link?: {
654
- type: LinkType;
655
- wixLinkData?: {
656
- external?: {
657
- url: string;
658
- };
659
- page?: {
660
- pageId: string;
661
- rel: LinkRel[];
662
- };
663
- anchor?: {
664
- anchorName: string;
665
- anchorDataId: string;
666
- pageId: string;
667
- rel: LinkRel[];
668
- };
669
- dynamicPage?: {
670
- routerId: string;
671
- innerRoute: string;
672
- rel: LinkRel[];
673
- };
674
- document?: {
675
- docId: string;
676
- indexable: boolean;
677
- };
678
- email?: {
679
- recipient: string;
680
- };
681
- phone?: {
682
- phoneNumber: string;
683
- };
684
- address?: {
685
- address: string;
686
- };
687
- whatsApp?: {
688
- phoneNumber: string;
689
- };
690
- tpaPage?: {
691
- itemTypeIdentifier: string;
692
- itemId: string;
693
- pageId: string;
694
- appDefinitionId: string;
695
- path: string;
696
- rel: LinkRel[];
697
- };
698
- };
699
- };
700
- type: Type$1;
701
- tags?: {
702
- values: string[];
703
- };
704
- secondaryMedia?: {
705
- image?: {
706
- type: ImageType;
707
- imageInfo?: {
708
- id: string;
709
- url: string;
710
- height: number;
711
- width: number;
712
- };
713
- focalPoint?: {
714
- x: number;
715
- y: number;
716
- };
717
- };
718
- };
719
- }[];
507
+ items: ItemNonNullableFields$1[];
720
508
  }
721
509
  interface GetGalleryItemResponseNonNullableFields$1 {
722
- item?: {
723
- image?: {
724
- type: ImageType;
725
- imageInfo?: {
726
- id: string;
727
- url: string;
728
- height: number;
729
- width: number;
730
- };
731
- focalPoint?: {
732
- x: number;
733
- y: number;
734
- };
735
- };
736
- video?: {
737
- type: VideoType$1;
738
- videoInfo?: {
739
- id: string;
740
- url: string;
741
- resolutions: {
742
- url: string;
743
- height: number;
744
- width: number;
745
- poster?: {
746
- id: string;
747
- url: string;
748
- height: number;
749
- width: number;
750
- };
751
- format: string;
752
- }[];
753
- posters: {
754
- id: string;
755
- url: string;
756
- height: number;
757
- width: number;
758
- }[];
759
- };
760
- };
761
- link?: {
762
- type: LinkType;
763
- wixLinkData?: {
764
- external?: {
765
- url: string;
766
- };
767
- page?: {
768
- pageId: string;
769
- rel: LinkRel[];
770
- };
771
- anchor?: {
772
- anchorName: string;
773
- anchorDataId: string;
774
- pageId: string;
775
- rel: LinkRel[];
776
- };
777
- dynamicPage?: {
778
- routerId: string;
779
- innerRoute: string;
780
- rel: LinkRel[];
781
- };
782
- document?: {
783
- docId: string;
784
- indexable: boolean;
785
- };
786
- email?: {
787
- recipient: string;
788
- };
789
- phone?: {
790
- phoneNumber: string;
791
- };
792
- address?: {
793
- address: string;
794
- };
795
- whatsApp?: {
796
- phoneNumber: string;
797
- };
798
- tpaPage?: {
799
- itemTypeIdentifier: string;
800
- itemId: string;
801
- pageId: string;
802
- appDefinitionId: string;
803
- path: string;
804
- rel: LinkRel[];
805
- };
806
- };
807
- };
808
- type: Type$1;
809
- tags?: {
810
- values: string[];
811
- };
812
- secondaryMedia?: {
813
- image?: {
814
- type: ImageType;
815
- imageInfo?: {
816
- id: string;
817
- url: string;
818
- height: number;
819
- width: number;
820
- };
821
- focalPoint?: {
822
- x: number;
823
- y: number;
824
- };
825
- };
826
- };
827
- };
510
+ item?: ItemNonNullableFields$1;
828
511
  }
829
512
  interface CreateGalleryResponseNonNullableFields$1 {
830
- gallery?: {
831
- items: {
832
- image?: {
833
- type: ImageType;
834
- imageInfo?: {
835
- id: string;
836
- url: string;
837
- height: number;
838
- width: number;
839
- };
840
- focalPoint?: {
841
- x: number;
842
- y: number;
843
- };
844
- };
845
- video?: {
846
- type: VideoType$1;
847
- videoInfo?: {
848
- id: string;
849
- url: string;
850
- resolutions: {
851
- url: string;
852
- height: number;
853
- width: number;
854
- poster?: {
855
- id: string;
856
- url: string;
857
- height: number;
858
- width: number;
859
- };
860
- format: string;
861
- }[];
862
- posters: {
863
- id: string;
864
- url: string;
865
- height: number;
866
- width: number;
867
- }[];
868
- };
869
- };
870
- link?: {
871
- type: LinkType;
872
- wixLinkData?: {
873
- external?: {
874
- url: string;
875
- };
876
- page?: {
877
- pageId: string;
878
- rel: LinkRel[];
879
- };
880
- anchor?: {
881
- anchorName: string;
882
- anchorDataId: string;
883
- pageId: string;
884
- rel: LinkRel[];
885
- };
886
- dynamicPage?: {
887
- routerId: string;
888
- innerRoute: string;
889
- rel: LinkRel[];
890
- };
891
- document?: {
892
- docId: string;
893
- indexable: boolean;
894
- };
895
- email?: {
896
- recipient: string;
897
- };
898
- phone?: {
899
- phoneNumber: string;
900
- };
901
- address?: {
902
- address: string;
903
- };
904
- whatsApp?: {
905
- phoneNumber: string;
906
- };
907
- tpaPage?: {
908
- itemTypeIdentifier: string;
909
- itemId: string;
910
- pageId: string;
911
- appDefinitionId: string;
912
- path: string;
913
- rel: LinkRel[];
914
- };
915
- };
916
- };
917
- type: Type$1;
918
- tags?: {
919
- values: string[];
920
- };
921
- secondaryMedia?: {
922
- image?: {
923
- type: ImageType;
924
- imageInfo?: {
925
- id: string;
926
- url: string;
927
- height: number;
928
- width: number;
929
- };
930
- focalPoint?: {
931
- x: number;
932
- y: number;
933
- };
934
- };
935
- };
936
- }[];
937
- };
513
+ gallery?: GalleryNonNullableFields$1;
938
514
  }
939
515
  interface UpdateGalleryResponseNonNullableFields$1 {
940
- gallery?: {
941
- items: {
942
- image?: {
943
- type: ImageType;
944
- imageInfo?: {
945
- id: string;
946
- url: string;
947
- height: number;
948
- width: number;
949
- };
950
- focalPoint?: {
951
- x: number;
952
- y: number;
953
- };
954
- };
955
- video?: {
956
- type: VideoType$1;
957
- videoInfo?: {
958
- id: string;
959
- url: string;
960
- resolutions: {
961
- url: string;
962
- height: number;
963
- width: number;
964
- poster?: {
965
- id: string;
966
- url: string;
967
- height: number;
968
- width: number;
969
- };
970
- format: string;
971
- }[];
972
- posters: {
973
- id: string;
974
- url: string;
975
- height: number;
976
- width: number;
977
- }[];
978
- };
979
- };
980
- link?: {
981
- type: LinkType;
982
- wixLinkData?: {
983
- external?: {
984
- url: string;
985
- };
986
- page?: {
987
- pageId: string;
988
- rel: LinkRel[];
989
- };
990
- anchor?: {
991
- anchorName: string;
992
- anchorDataId: string;
993
- pageId: string;
994
- rel: LinkRel[];
995
- };
996
- dynamicPage?: {
997
- routerId: string;
998
- innerRoute: string;
999
- rel: LinkRel[];
1000
- };
1001
- document?: {
1002
- docId: string;
1003
- indexable: boolean;
1004
- };
1005
- email?: {
1006
- recipient: string;
1007
- };
1008
- phone?: {
1009
- phoneNumber: string;
1010
- };
1011
- address?: {
1012
- address: string;
1013
- };
1014
- whatsApp?: {
1015
- phoneNumber: string;
1016
- };
1017
- tpaPage?: {
1018
- itemTypeIdentifier: string;
1019
- itemId: string;
1020
- pageId: string;
1021
- appDefinitionId: string;
1022
- path: string;
1023
- rel: LinkRel[];
1024
- };
1025
- };
1026
- };
1027
- type: Type$1;
1028
- tags?: {
1029
- values: string[];
1030
- };
1031
- secondaryMedia?: {
1032
- image?: {
1033
- type: ImageType;
1034
- imageInfo?: {
1035
- id: string;
1036
- url: string;
1037
- height: number;
1038
- width: number;
1039
- };
1040
- focalPoint?: {
1041
- x: number;
1042
- y: number;
1043
- };
1044
- };
1045
- };
1046
- }[];
1047
- };
516
+ gallery?: GalleryNonNullableFields$1;
1048
517
  }
1049
518
  interface DeleteGalleryResponseNonNullableFields$1 {
1050
519
  galleryId: string;
1051
520
  }
1052
521
  interface DeleteGalleryItemsResponseNonNullableFields$1 {
1053
- gallery?: {
1054
- items: {
1055
- image?: {
1056
- type: ImageType;
1057
- imageInfo?: {
1058
- id: string;
1059
- url: string;
1060
- height: number;
1061
- width: number;
1062
- };
1063
- focalPoint?: {
1064
- x: number;
1065
- y: number;
1066
- };
1067
- };
1068
- video?: {
1069
- type: VideoType$1;
1070
- videoInfo?: {
1071
- id: string;
1072
- url: string;
1073
- resolutions: {
1074
- url: string;
1075
- height: number;
1076
- width: number;
1077
- poster?: {
1078
- id: string;
1079
- url: string;
1080
- height: number;
1081
- width: number;
1082
- };
1083
- format: string;
1084
- }[];
1085
- posters: {
1086
- id: string;
1087
- url: string;
1088
- height: number;
1089
- width: number;
1090
- }[];
1091
- };
1092
- };
1093
- link?: {
1094
- type: LinkType;
1095
- wixLinkData?: {
1096
- external?: {
1097
- url: string;
1098
- };
1099
- page?: {
1100
- pageId: string;
1101
- rel: LinkRel[];
1102
- };
1103
- anchor?: {
1104
- anchorName: string;
1105
- anchorDataId: string;
1106
- pageId: string;
1107
- rel: LinkRel[];
1108
- };
1109
- dynamicPage?: {
1110
- routerId: string;
1111
- innerRoute: string;
1112
- rel: LinkRel[];
1113
- };
1114
- document?: {
1115
- docId: string;
1116
- indexable: boolean;
1117
- };
1118
- email?: {
1119
- recipient: string;
1120
- };
1121
- phone?: {
1122
- phoneNumber: string;
1123
- };
1124
- address?: {
1125
- address: string;
1126
- };
1127
- whatsApp?: {
1128
- phoneNumber: string;
1129
- };
1130
- tpaPage?: {
1131
- itemTypeIdentifier: string;
1132
- itemId: string;
1133
- pageId: string;
1134
- appDefinitionId: string;
1135
- path: string;
1136
- rel: LinkRel[];
1137
- };
1138
- };
1139
- };
1140
- type: Type$1;
1141
- tags?: {
1142
- values: string[];
1143
- };
1144
- secondaryMedia?: {
1145
- image?: {
1146
- type: ImageType;
1147
- imageInfo?: {
1148
- id: string;
1149
- url: string;
1150
- height: number;
1151
- width: number;
1152
- };
1153
- focalPoint?: {
1154
- x: number;
1155
- y: number;
1156
- };
1157
- };
1158
- };
1159
- }[];
1160
- };
522
+ gallery?: GalleryNonNullableFields$1;
1161
523
  }
1162
524
  interface CreateGalleryItemResponseNonNullableFields$1 {
1163
- item?: {
1164
- image?: {
1165
- type: ImageType;
1166
- imageInfo?: {
1167
- id: string;
1168
- url: string;
1169
- height: number;
1170
- width: number;
1171
- };
1172
- focalPoint?: {
1173
- x: number;
1174
- y: number;
1175
- };
1176
- };
1177
- video?: {
1178
- type: VideoType$1;
1179
- videoInfo?: {
1180
- id: string;
1181
- url: string;
1182
- resolutions: {
1183
- url: string;
1184
- height: number;
1185
- width: number;
1186
- poster?: {
1187
- id: string;
1188
- url: string;
1189
- height: number;
1190
- width: number;
1191
- };
1192
- format: string;
1193
- }[];
1194
- posters: {
1195
- id: string;
1196
- url: string;
1197
- height: number;
1198
- width: number;
1199
- }[];
1200
- };
1201
- };
1202
- link?: {
1203
- type: LinkType;
1204
- wixLinkData?: {
1205
- external?: {
1206
- url: string;
1207
- };
1208
- page?: {
1209
- pageId: string;
1210
- rel: LinkRel[];
1211
- };
1212
- anchor?: {
1213
- anchorName: string;
1214
- anchorDataId: string;
1215
- pageId: string;
1216
- rel: LinkRel[];
1217
- };
1218
- dynamicPage?: {
1219
- routerId: string;
1220
- innerRoute: string;
1221
- rel: LinkRel[];
1222
- };
1223
- document?: {
1224
- docId: string;
1225
- indexable: boolean;
1226
- };
1227
- email?: {
1228
- recipient: string;
1229
- };
1230
- phone?: {
1231
- phoneNumber: string;
1232
- };
1233
- address?: {
1234
- address: string;
1235
- };
1236
- whatsApp?: {
1237
- phoneNumber: string;
1238
- };
1239
- tpaPage?: {
1240
- itemTypeIdentifier: string;
1241
- itemId: string;
1242
- pageId: string;
1243
- appDefinitionId: string;
1244
- path: string;
1245
- rel: LinkRel[];
1246
- };
1247
- };
1248
- };
1249
- type: Type$1;
1250
- tags?: {
1251
- values: string[];
1252
- };
1253
- secondaryMedia?: {
1254
- image?: {
1255
- type: ImageType;
1256
- imageInfo?: {
1257
- id: string;
1258
- url: string;
1259
- height: number;
1260
- width: number;
1261
- };
1262
- focalPoint?: {
1263
- x: number;
1264
- y: number;
1265
- };
1266
- };
1267
- };
1268
- };
525
+ item?: ItemNonNullableFields$1;
1269
526
  }
1270
527
  interface UpdateGalleryItemResponseNonNullableFields$1 {
1271
- item?: {
1272
- image?: {
1273
- type: ImageType;
1274
- imageInfo?: {
1275
- id: string;
1276
- url: string;
1277
- height: number;
1278
- width: number;
1279
- };
1280
- focalPoint?: {
1281
- x: number;
1282
- y: number;
1283
- };
1284
- };
1285
- video?: {
1286
- type: VideoType$1;
1287
- videoInfo?: {
1288
- id: string;
1289
- url: string;
1290
- resolutions: {
1291
- url: string;
1292
- height: number;
1293
- width: number;
1294
- poster?: {
1295
- id: string;
1296
- url: string;
1297
- height: number;
1298
- width: number;
1299
- };
1300
- format: string;
1301
- }[];
1302
- posters: {
1303
- id: string;
1304
- url: string;
1305
- height: number;
1306
- width: number;
1307
- }[];
1308
- };
1309
- };
1310
- link?: {
1311
- type: LinkType;
1312
- wixLinkData?: {
1313
- external?: {
1314
- url: string;
1315
- };
1316
- page?: {
1317
- pageId: string;
1318
- rel: LinkRel[];
1319
- };
1320
- anchor?: {
1321
- anchorName: string;
1322
- anchorDataId: string;
1323
- pageId: string;
1324
- rel: LinkRel[];
1325
- };
1326
- dynamicPage?: {
1327
- routerId: string;
1328
- innerRoute: string;
1329
- rel: LinkRel[];
1330
- };
1331
- document?: {
1332
- docId: string;
1333
- indexable: boolean;
1334
- };
1335
- email?: {
1336
- recipient: string;
1337
- };
1338
- phone?: {
1339
- phoneNumber: string;
1340
- };
1341
- address?: {
1342
- address: string;
1343
- };
1344
- whatsApp?: {
1345
- phoneNumber: string;
1346
- };
1347
- tpaPage?: {
1348
- itemTypeIdentifier: string;
1349
- itemId: string;
1350
- pageId: string;
1351
- appDefinitionId: string;
1352
- path: string;
1353
- rel: LinkRel[];
1354
- };
1355
- };
1356
- };
1357
- type: Type$1;
1358
- tags?: {
1359
- values: string[];
1360
- };
1361
- secondaryMedia?: {
1362
- image?: {
1363
- type: ImageType;
1364
- imageInfo?: {
1365
- id: string;
1366
- url: string;
1367
- height: number;
1368
- width: number;
1369
- };
1370
- focalPoint?: {
1371
- x: number;
1372
- y: number;
1373
- };
1374
- };
1375
- };
1376
- };
528
+ item?: ItemNonNullableFields$1;
1377
529
  }
1378
530
  interface DeleteGalleryItemResponseNonNullableFields$1 {
1379
531
  itemId: string;
@@ -1462,6 +614,30 @@ interface Link {
1462
614
  /** Target URL of the link. */
1463
615
  url?: string | null;
1464
616
  }
617
+ declare enum LinkType {
618
+ UNDEFINED = "UNDEFINED",
619
+ /** external link */
620
+ EXTERNAL = "EXTERNAL",
621
+ /** for internal usage using wixLinkData */
622
+ INTERNAL = "INTERNAL"
623
+ }
624
+ /**
625
+ * The 'rel' attribute of the link. The rel attribute defines the relationship between a linked resource and the current document.
626
+ * Further reading (also about different possible rel types): https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
627
+ * Following are the accepted 'rel' types by Wix applications.
628
+ */
629
+ declare enum LinkRel {
630
+ /** default (not implemented) */
631
+ unknown_link_rel = "unknown_link_rel",
632
+ /** Indicates that the current document's original author or publisher does not endorse the referenced document. */
633
+ nofollow = "nofollow",
634
+ /** Instructs the browser to navigate to the target resource without granting the new browsing context access to the document that opened it. */
635
+ noopener = "noopener",
636
+ /** No Referer header will be included. Additionally, has the same effect as noopener. */
637
+ noreferrer = "noreferrer",
638
+ /** Indicates a link that resulted from advertisements or paid placements. */
639
+ sponsored = "sponsored"
640
+ }
1465
641
  declare enum Type {
1466
642
  UNDEFINED = "UNDEFINED",
1467
643
  IMAGE = "IMAGE",
@@ -1485,6 +661,11 @@ interface Image {
1485
661
  /** [Unsharp masking](https://en.wikipedia.org/wiki/Unsharp_masking) values of the image. */
1486
662
  unsharpMasking?: UnsharpMasking;
1487
663
  }
664
+ declare enum ImageType {
665
+ UNDEFINED = "UNDEFINED",
666
+ WIX_MEDIA = "WIX_MEDIA",
667
+ EXTERNAL = "EXTERNAL"
668
+ }
1488
669
  interface Point {
1489
670
  /** X-coordinate of the focal point. */
1490
671
  x?: number;
@@ -1683,189 +864,123 @@ interface DeleteGalleryItemResponse {
1683
864
  */
1684
865
  itemId?: string;
1685
866
  }
867
+ interface PointNonNullableFields {
868
+ x: number;
869
+ y: number;
870
+ }
871
+ interface ImageNonNullableFields {
872
+ type: ImageType;
873
+ imageInfo: string;
874
+ focalPoint?: PointNonNullableFields;
875
+ }
876
+ interface VideoNonNullableFields {
877
+ type: VideoType;
878
+ videoInfo: string;
879
+ }
880
+ interface ExternalLinkNonNullableFields {
881
+ url: string;
882
+ }
883
+ interface PageLinkNonNullableFields {
884
+ pageId: string;
885
+ rel: LinkRel[];
886
+ }
887
+ interface AnchorLinkNonNullableFields {
888
+ anchorName: string;
889
+ anchorDataId: string;
890
+ pageId: string;
891
+ rel: LinkRel[];
892
+ }
893
+ interface DynamicPageLinkNonNullableFields {
894
+ routerId: string;
895
+ innerRoute: string;
896
+ rel: LinkRel[];
897
+ }
898
+ interface DocumentLinkNonNullableFields {
899
+ docId: string;
900
+ indexable: boolean;
901
+ }
902
+ interface EmailLinkNonNullableFields {
903
+ recipient: string;
904
+ }
905
+ interface PhoneLinkNonNullableFields {
906
+ phoneNumber: string;
907
+ }
908
+ interface AddressLinkNonNullableFields {
909
+ address: string;
910
+ }
911
+ interface WhatsAppLinkNonNullableFields {
912
+ phoneNumber: string;
913
+ }
914
+ interface TpaPageLinkNonNullableFields {
915
+ itemTypeIdentifier: string;
916
+ itemId: string;
917
+ pageId: string;
918
+ appDefinitionId: string;
919
+ path: string;
920
+ rel: LinkRel[];
921
+ }
922
+ interface WixLinkNonNullableFields {
923
+ external?: ExternalLinkNonNullableFields;
924
+ page?: PageLinkNonNullableFields;
925
+ anchor?: AnchorLinkNonNullableFields;
926
+ dynamicPage?: DynamicPageLinkNonNullableFields;
927
+ document?: DocumentLinkNonNullableFields;
928
+ email?: EmailLinkNonNullableFields;
929
+ phone?: PhoneLinkNonNullableFields;
930
+ address?: AddressLinkNonNullableFields;
931
+ whatsApp?: WhatsAppLinkNonNullableFields;
932
+ tpaPage?: TpaPageLinkNonNullableFields;
933
+ }
934
+ interface LinkNonNullableFields {
935
+ type: LinkType;
936
+ wixLinkData?: WixLinkNonNullableFields;
937
+ }
938
+ interface TagsNonNullableFields {
939
+ values: string[];
940
+ }
941
+ interface SecondaryMediaNonNullableFields {
942
+ image?: ImageNonNullableFields;
943
+ }
944
+ interface ItemNonNullableFields {
945
+ image?: ImageNonNullableFields;
946
+ video?: VideoNonNullableFields;
947
+ link?: LinkNonNullableFields;
948
+ type: Type;
949
+ tags?: TagsNonNullableFields;
950
+ secondaryMedia?: SecondaryMediaNonNullableFields;
951
+ }
952
+ interface GalleryNonNullableFields {
953
+ items: ItemNonNullableFields[];
954
+ }
1686
955
  interface ListGalleriesResponseNonNullableFields {
1687
- galleries: {
1688
- items: {
1689
- image?: {
1690
- imageInfo: string;
1691
- focalPoint?: {
1692
- x: number;
1693
- y: number;
1694
- };
1695
- };
1696
- video?: {
1697
- type: VideoType;
1698
- videoInfo: string;
1699
- };
1700
- type: Type;
1701
- tags?: {
1702
- values: string[];
1703
- };
1704
- }[];
1705
- }[];
956
+ galleries: GalleryNonNullableFields[];
1706
957
  }
1707
958
  interface GetGalleryResponseNonNullableFields {
1708
- gallery?: {
1709
- items: {
1710
- image?: {
1711
- imageInfo: string;
1712
- focalPoint?: {
1713
- x: number;
1714
- y: number;
1715
- };
1716
- };
1717
- video?: {
1718
- type: VideoType;
1719
- videoInfo: string;
1720
- };
1721
- type: Type;
1722
- tags?: {
1723
- values: string[];
1724
- };
1725
- }[];
1726
- };
959
+ gallery?: GalleryNonNullableFields;
1727
960
  }
1728
961
  interface ListGalleryItemsResponseNonNullableFields {
1729
- items: {
1730
- image?: {
1731
- imageInfo: string;
1732
- focalPoint?: {
1733
- x: number;
1734
- y: number;
1735
- };
1736
- };
1737
- video?: {
1738
- type: VideoType;
1739
- videoInfo: string;
1740
- };
1741
- type: Type;
1742
- tags?: {
1743
- values: string[];
1744
- };
1745
- }[];
962
+ items: ItemNonNullableFields[];
1746
963
  }
1747
964
  interface GetGalleryItemResponseNonNullableFields {
1748
- item?: {
1749
- image?: {
1750
- imageInfo: string;
1751
- focalPoint?: {
1752
- x: number;
1753
- y: number;
1754
- };
1755
- };
1756
- video?: {
1757
- type: VideoType;
1758
- videoInfo: string;
1759
- };
1760
- type: Type;
1761
- tags?: {
1762
- values: string[];
1763
- };
1764
- };
965
+ item?: ItemNonNullableFields;
1765
966
  }
1766
967
  interface CreateGalleryResponseNonNullableFields {
1767
- gallery?: {
1768
- items: {
1769
- image?: {
1770
- imageInfo: string;
1771
- focalPoint?: {
1772
- x: number;
1773
- y: number;
1774
- };
1775
- };
1776
- video?: {
1777
- type: VideoType;
1778
- videoInfo: string;
1779
- };
1780
- type: Type;
1781
- tags?: {
1782
- values: string[];
1783
- };
1784
- }[];
1785
- };
968
+ gallery?: GalleryNonNullableFields;
1786
969
  }
1787
970
  interface UpdateGalleryResponseNonNullableFields {
1788
- gallery?: {
1789
- items: {
1790
- image?: {
1791
- imageInfo: string;
1792
- focalPoint?: {
1793
- x: number;
1794
- y: number;
1795
- };
1796
- };
1797
- video?: {
1798
- type: VideoType;
1799
- videoInfo: string;
1800
- };
1801
- type: Type;
1802
- tags?: {
1803
- values: string[];
1804
- };
1805
- }[];
1806
- };
971
+ gallery?: GalleryNonNullableFields;
1807
972
  }
1808
973
  interface DeleteGalleryResponseNonNullableFields {
1809
974
  galleryId: string;
1810
975
  }
1811
976
  interface DeleteGalleryItemsResponseNonNullableFields {
1812
- gallery?: {
1813
- items: {
1814
- image?: {
1815
- imageInfo: string;
1816
- focalPoint?: {
1817
- x: number;
1818
- y: number;
1819
- };
1820
- };
1821
- video?: {
1822
- type: VideoType;
1823
- videoInfo: string;
1824
- };
1825
- type: Type;
1826
- tags?: {
1827
- values: string[];
1828
- };
1829
- }[];
1830
- };
977
+ gallery?: GalleryNonNullableFields;
1831
978
  }
1832
979
  interface CreateGalleryItemResponseNonNullableFields {
1833
- item?: {
1834
- image?: {
1835
- imageInfo: string;
1836
- focalPoint?: {
1837
- x: number;
1838
- y: number;
1839
- };
1840
- };
1841
- video?: {
1842
- type: VideoType;
1843
- videoInfo: string;
1844
- };
1845
- type: Type;
1846
- tags?: {
1847
- values: string[];
1848
- };
1849
- };
980
+ item?: ItemNonNullableFields;
1850
981
  }
1851
982
  interface UpdateGalleryItemResponseNonNullableFields {
1852
- item?: {
1853
- image?: {
1854
- imageInfo: string;
1855
- focalPoint?: {
1856
- x: number;
1857
- y: number;
1858
- };
1859
- };
1860
- video?: {
1861
- type: VideoType;
1862
- videoInfo: string;
1863
- };
1864
- type: Type;
1865
- tags?: {
1866
- values: string[];
1867
- };
1868
- };
983
+ item?: ItemNonNullableFields;
1869
984
  }
1870
985
  interface DeleteGalleryItemResponseNonNullableFields {
1871
986
  itemId: string;