@itm-studio/partner-sdk 0.1.4 → 0.1.5
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/README.md +12 -0
- package/dist/index.d.mts +28 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +62 -48
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +62 -48
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/schema/partner.graphql +13 -0
package/README.md
CHANGED
|
@@ -35,6 +35,10 @@ const { getPartnerMomentsForBrand } = await itm.query({
|
|
|
35
35
|
status: true,
|
|
36
36
|
timezone: true,
|
|
37
37
|
externalUrl: true,
|
|
38
|
+
coverImage: {
|
|
39
|
+
url: true,
|
|
40
|
+
mimeType: true,
|
|
41
|
+
},
|
|
38
42
|
venue: {
|
|
39
43
|
name: true,
|
|
40
44
|
city: true,
|
|
@@ -97,6 +101,10 @@ const { getPartnerMoment } = await itm.query({
|
|
|
97
101
|
endDate: true,
|
|
98
102
|
timezone: true,
|
|
99
103
|
externalUrl: true,
|
|
104
|
+
coverImage: {
|
|
105
|
+
url: true,
|
|
106
|
+
mimeType: true,
|
|
107
|
+
},
|
|
100
108
|
ticketTiers: {
|
|
101
109
|
name: true,
|
|
102
110
|
price: true,
|
|
@@ -175,6 +183,10 @@ const { getPartnerMomentCollection } = await itm.query({
|
|
|
175
183
|
status: true,
|
|
176
184
|
timezone: true,
|
|
177
185
|
externalUrl: true,
|
|
186
|
+
coverImage: {
|
|
187
|
+
url: true,
|
|
188
|
+
mimeType: true,
|
|
189
|
+
},
|
|
178
190
|
venue: { name: true, city: true },
|
|
179
191
|
ticketTiers: {
|
|
180
192
|
name: true,
|
package/dist/index.d.mts
CHANGED
|
@@ -35,6 +35,17 @@ interface Venue {
|
|
|
35
35
|
updatedAt: Scalars['DateTime'];
|
|
36
36
|
__typename: 'Venue';
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* A slim projection of the cover image media asset.
|
|
40
|
+
* Only the publicly useful fields (URL and MIME type) are exposed.
|
|
41
|
+
*/
|
|
42
|
+
interface MomentCoverImage {
|
|
43
|
+
/** CloudFront URL of the cover image. */
|
|
44
|
+
url: Scalars['String'];
|
|
45
|
+
/** MIME type of the image (e.g. image/jpeg, image/png, image/webp). */
|
|
46
|
+
mimeType: Scalars['String'];
|
|
47
|
+
__typename: 'MomentCoverImage';
|
|
48
|
+
}
|
|
38
49
|
interface Moment {
|
|
39
50
|
uid: Scalars['ID'];
|
|
40
51
|
name: Scalars['String'];
|
|
@@ -52,6 +63,8 @@ interface Moment {
|
|
|
52
63
|
timezone: Scalars['String'];
|
|
53
64
|
minimumAge: Scalars['Int'];
|
|
54
65
|
externalUrl: (Scalars['String'] | null);
|
|
66
|
+
/** Cover image for the moment. Null if no cover image is set. */
|
|
67
|
+
coverImage: (MomentCoverImage | null);
|
|
55
68
|
venue: (Venue | null);
|
|
56
69
|
ticketTiers: TicketTier[];
|
|
57
70
|
createdAt: Scalars['DateTime'];
|
|
@@ -231,6 +244,18 @@ interface VenueGenqlSelection {
|
|
|
231
244
|
__typename?: boolean | number;
|
|
232
245
|
__scalar?: boolean | number;
|
|
233
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* A slim projection of the cover image media asset.
|
|
249
|
+
* Only the publicly useful fields (URL and MIME type) are exposed.
|
|
250
|
+
*/
|
|
251
|
+
interface MomentCoverImageGenqlSelection {
|
|
252
|
+
/** CloudFront URL of the cover image. */
|
|
253
|
+
url?: boolean | number;
|
|
254
|
+
/** MIME type of the image (e.g. image/jpeg, image/png, image/webp). */
|
|
255
|
+
mimeType?: boolean | number;
|
|
256
|
+
__typename?: boolean | number;
|
|
257
|
+
__scalar?: boolean | number;
|
|
258
|
+
}
|
|
234
259
|
interface MomentGenqlSelection {
|
|
235
260
|
uid?: boolean | number;
|
|
236
261
|
name?: boolean | number;
|
|
@@ -248,6 +273,8 @@ interface MomentGenqlSelection {
|
|
|
248
273
|
timezone?: boolean | number;
|
|
249
274
|
minimumAge?: boolean | number;
|
|
250
275
|
externalUrl?: boolean | number;
|
|
276
|
+
/** Cover image for the moment. Null if no cover image is set. */
|
|
277
|
+
coverImage?: MomentCoverImageGenqlSelection;
|
|
251
278
|
venue?: VenueGenqlSelection;
|
|
252
279
|
ticketTiers?: TicketTierGenqlSelection;
|
|
253
280
|
createdAt?: boolean | number;
|
|
@@ -532,6 +559,7 @@ type ITMPartnerClient = Client;
|
|
|
532
559
|
* uid: true,
|
|
533
560
|
* name: true,
|
|
534
561
|
* startDate: true,
|
|
562
|
+
* coverImage: { url: true, mimeType: true },
|
|
535
563
|
* venue: { name: true, city: true },
|
|
536
564
|
* },
|
|
537
565
|
* totalCount: true,
|
package/dist/index.d.ts
CHANGED
|
@@ -35,6 +35,17 @@ interface Venue {
|
|
|
35
35
|
updatedAt: Scalars['DateTime'];
|
|
36
36
|
__typename: 'Venue';
|
|
37
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* A slim projection of the cover image media asset.
|
|
40
|
+
* Only the publicly useful fields (URL and MIME type) are exposed.
|
|
41
|
+
*/
|
|
42
|
+
interface MomentCoverImage {
|
|
43
|
+
/** CloudFront URL of the cover image. */
|
|
44
|
+
url: Scalars['String'];
|
|
45
|
+
/** MIME type of the image (e.g. image/jpeg, image/png, image/webp). */
|
|
46
|
+
mimeType: Scalars['String'];
|
|
47
|
+
__typename: 'MomentCoverImage';
|
|
48
|
+
}
|
|
38
49
|
interface Moment {
|
|
39
50
|
uid: Scalars['ID'];
|
|
40
51
|
name: Scalars['String'];
|
|
@@ -52,6 +63,8 @@ interface Moment {
|
|
|
52
63
|
timezone: Scalars['String'];
|
|
53
64
|
minimumAge: Scalars['Int'];
|
|
54
65
|
externalUrl: (Scalars['String'] | null);
|
|
66
|
+
/** Cover image for the moment. Null if no cover image is set. */
|
|
67
|
+
coverImage: (MomentCoverImage | null);
|
|
55
68
|
venue: (Venue | null);
|
|
56
69
|
ticketTiers: TicketTier[];
|
|
57
70
|
createdAt: Scalars['DateTime'];
|
|
@@ -231,6 +244,18 @@ interface VenueGenqlSelection {
|
|
|
231
244
|
__typename?: boolean | number;
|
|
232
245
|
__scalar?: boolean | number;
|
|
233
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* A slim projection of the cover image media asset.
|
|
249
|
+
* Only the publicly useful fields (URL and MIME type) are exposed.
|
|
250
|
+
*/
|
|
251
|
+
interface MomentCoverImageGenqlSelection {
|
|
252
|
+
/** CloudFront URL of the cover image. */
|
|
253
|
+
url?: boolean | number;
|
|
254
|
+
/** MIME type of the image (e.g. image/jpeg, image/png, image/webp). */
|
|
255
|
+
mimeType?: boolean | number;
|
|
256
|
+
__typename?: boolean | number;
|
|
257
|
+
__scalar?: boolean | number;
|
|
258
|
+
}
|
|
234
259
|
interface MomentGenqlSelection {
|
|
235
260
|
uid?: boolean | number;
|
|
236
261
|
name?: boolean | number;
|
|
@@ -248,6 +273,8 @@ interface MomentGenqlSelection {
|
|
|
248
273
|
timezone?: boolean | number;
|
|
249
274
|
minimumAge?: boolean | number;
|
|
250
275
|
externalUrl?: boolean | number;
|
|
276
|
+
/** Cover image for the moment. Null if no cover image is set. */
|
|
277
|
+
coverImage?: MomentCoverImageGenqlSelection;
|
|
251
278
|
venue?: VenueGenqlSelection;
|
|
252
279
|
ticketTiers?: TicketTierGenqlSelection;
|
|
253
280
|
createdAt?: boolean | number;
|
|
@@ -532,6 +559,7 @@ type ITMPartnerClient = Client;
|
|
|
532
559
|
* uid: true,
|
|
533
560
|
* name: true,
|
|
534
561
|
* startDate: true,
|
|
562
|
+
* coverImage: { url: true, mimeType: true },
|
|
535
563
|
* venue: { name: true, city: true },
|
|
536
564
|
* },
|
|
537
565
|
* totalCount: true,
|
package/dist/index.js
CHANGED
|
@@ -561,9 +561,9 @@ var types_default = {
|
|
|
561
561
|
7,
|
|
562
562
|
9,
|
|
563
563
|
10,
|
|
564
|
-
13,
|
|
565
564
|
14,
|
|
566
|
-
|
|
565
|
+
15,
|
|
566
|
+
17
|
|
567
567
|
],
|
|
568
568
|
"types": {
|
|
569
569
|
"DateTime": {},
|
|
@@ -634,6 +634,17 @@ var types_default = {
|
|
|
634
634
|
10
|
|
635
635
|
]
|
|
636
636
|
},
|
|
637
|
+
"MomentCoverImage": {
|
|
638
|
+
"url": [
|
|
639
|
+
10
|
|
640
|
+
],
|
|
641
|
+
"mimeType": [
|
|
642
|
+
10
|
|
643
|
+
],
|
|
644
|
+
"__typename": [
|
|
645
|
+
10
|
|
646
|
+
]
|
|
647
|
+
},
|
|
637
648
|
"Moment": {
|
|
638
649
|
"uid": [
|
|
639
650
|
9
|
|
@@ -657,7 +668,7 @@ var types_default = {
|
|
|
657
668
|
0
|
|
658
669
|
],
|
|
659
670
|
"isPrivate": [
|
|
660
|
-
|
|
671
|
+
14
|
|
661
672
|
],
|
|
662
673
|
"type": [
|
|
663
674
|
3
|
|
@@ -672,22 +683,25 @@ var types_default = {
|
|
|
672
683
|
1
|
|
673
684
|
],
|
|
674
685
|
"soldOut": [
|
|
675
|
-
|
|
686
|
+
14
|
|
676
687
|
],
|
|
677
688
|
"timezone": [
|
|
678
689
|
10
|
|
679
690
|
],
|
|
680
691
|
"minimumAge": [
|
|
681
|
-
|
|
692
|
+
15
|
|
682
693
|
],
|
|
683
694
|
"externalUrl": [
|
|
684
695
|
10
|
|
685
696
|
],
|
|
697
|
+
"coverImage": [
|
|
698
|
+
12
|
|
699
|
+
],
|
|
686
700
|
"venue": [
|
|
687
701
|
11
|
|
688
702
|
],
|
|
689
703
|
"ticketTiers": [
|
|
690
|
-
|
|
704
|
+
16
|
|
691
705
|
],
|
|
692
706
|
"createdAt": [
|
|
693
707
|
0
|
|
@@ -712,25 +726,25 @@ var types_default = {
|
|
|
712
726
|
10
|
|
713
727
|
],
|
|
714
728
|
"price": [
|
|
715
|
-
|
|
729
|
+
17
|
|
716
730
|
],
|
|
717
731
|
"currency": [
|
|
718
732
|
8
|
|
719
733
|
],
|
|
720
734
|
"isActive": [
|
|
721
|
-
|
|
735
|
+
14
|
|
722
736
|
],
|
|
723
737
|
"isPrivate": [
|
|
724
|
-
|
|
738
|
+
14
|
|
725
739
|
],
|
|
726
740
|
"maxPerUser": [
|
|
727
|
-
|
|
741
|
+
15
|
|
728
742
|
],
|
|
729
743
|
"minPerUser": [
|
|
730
|
-
|
|
744
|
+
15
|
|
731
745
|
],
|
|
732
746
|
"soldOut": [
|
|
733
|
-
|
|
747
|
+
14
|
|
734
748
|
],
|
|
735
749
|
"startDateOverride": [
|
|
736
750
|
0
|
|
@@ -789,7 +803,7 @@ var types_default = {
|
|
|
789
803
|
9
|
|
790
804
|
],
|
|
791
805
|
"price": [
|
|
792
|
-
|
|
806
|
+
17
|
|
793
807
|
],
|
|
794
808
|
"redeemedAt": [
|
|
795
809
|
0
|
|
@@ -804,25 +818,25 @@ var types_default = {
|
|
|
804
818
|
10
|
|
805
819
|
],
|
|
806
820
|
"hasExpired": [
|
|
807
|
-
|
|
821
|
+
14
|
|
808
822
|
],
|
|
809
823
|
"ticketTier": [
|
|
810
|
-
|
|
824
|
+
16
|
|
811
825
|
],
|
|
812
826
|
"user": [
|
|
813
|
-
|
|
827
|
+
18
|
|
814
828
|
],
|
|
815
829
|
"moment": [
|
|
816
|
-
|
|
830
|
+
13
|
|
817
831
|
],
|
|
818
832
|
"payment": [
|
|
819
|
-
|
|
833
|
+
22
|
|
820
834
|
],
|
|
821
835
|
"extensions": [
|
|
822
|
-
|
|
836
|
+
20
|
|
823
837
|
],
|
|
824
838
|
"discountCodeUsages": [
|
|
825
|
-
|
|
839
|
+
21
|
|
826
840
|
],
|
|
827
841
|
"createdAt": [
|
|
828
842
|
0
|
|
@@ -839,19 +853,19 @@ var types_default = {
|
|
|
839
853
|
9
|
|
840
854
|
],
|
|
841
855
|
"hours": [
|
|
842
|
-
|
|
856
|
+
15
|
|
843
857
|
],
|
|
844
858
|
"previousTotalHours": [
|
|
845
|
-
|
|
859
|
+
15
|
|
846
860
|
],
|
|
847
861
|
"newTotalHours": [
|
|
848
|
-
|
|
862
|
+
15
|
|
849
863
|
],
|
|
850
864
|
"pricePerHourCents": [
|
|
851
|
-
|
|
865
|
+
15
|
|
852
866
|
],
|
|
853
867
|
"totalPriceCents": [
|
|
854
|
-
|
|
868
|
+
15
|
|
855
869
|
],
|
|
856
870
|
"status": [
|
|
857
871
|
7
|
|
@@ -888,7 +902,7 @@ var types_default = {
|
|
|
888
902
|
9
|
|
889
903
|
],
|
|
890
904
|
"amount": [
|
|
891
|
-
|
|
905
|
+
17
|
|
892
906
|
],
|
|
893
907
|
"status": [
|
|
894
908
|
6
|
|
@@ -925,10 +939,10 @@ var types_default = {
|
|
|
925
939
|
},
|
|
926
940
|
"PartnerCustomer": {
|
|
927
941
|
"user": [
|
|
928
|
-
|
|
942
|
+
18
|
|
929
943
|
],
|
|
930
944
|
"tickets": [
|
|
931
|
-
|
|
945
|
+
19
|
|
932
946
|
],
|
|
933
947
|
"__typename": [
|
|
934
948
|
10
|
|
@@ -974,7 +988,7 @@ var types_default = {
|
|
|
974
988
|
10
|
|
975
989
|
],
|
|
976
990
|
"moments": [
|
|
977
|
-
|
|
991
|
+
13,
|
|
978
992
|
{
|
|
979
993
|
"queryFilters": [
|
|
980
994
|
10,
|
|
@@ -983,7 +997,7 @@ var types_default = {
|
|
|
983
997
|
}
|
|
984
998
|
],
|
|
985
999
|
"links": [
|
|
986
|
-
|
|
1000
|
+
25
|
|
987
1001
|
],
|
|
988
1002
|
"createdAt": [
|
|
989
1003
|
0
|
|
@@ -997,13 +1011,13 @@ var types_default = {
|
|
|
997
1011
|
},
|
|
998
1012
|
"GetPublicMomentsResponse": {
|
|
999
1013
|
"moments": [
|
|
1000
|
-
|
|
1014
|
+
13
|
|
1001
1015
|
],
|
|
1002
1016
|
"totalCount": [
|
|
1003
|
-
|
|
1017
|
+
15
|
|
1004
1018
|
],
|
|
1005
1019
|
"hasNextPage": [
|
|
1006
|
-
|
|
1020
|
+
14
|
|
1007
1021
|
],
|
|
1008
1022
|
"nextCursor": [
|
|
1009
1023
|
10
|
|
@@ -1014,13 +1028,13 @@ var types_default = {
|
|
|
1014
1028
|
},
|
|
1015
1029
|
"GetTicketsResponse": {
|
|
1016
1030
|
"tickets": [
|
|
1017
|
-
|
|
1031
|
+
19
|
|
1018
1032
|
],
|
|
1019
1033
|
"totalCount": [
|
|
1020
|
-
|
|
1034
|
+
15
|
|
1021
1035
|
],
|
|
1022
1036
|
"hasNextPage": [
|
|
1023
|
-
|
|
1037
|
+
14
|
|
1024
1038
|
],
|
|
1025
1039
|
"nextCursor": [
|
|
1026
1040
|
10
|
|
@@ -1031,13 +1045,13 @@ var types_default = {
|
|
|
1031
1045
|
},
|
|
1032
1046
|
"GetPartnerCustomersResponse": {
|
|
1033
1047
|
"customers": [
|
|
1034
|
-
|
|
1048
|
+
24
|
|
1035
1049
|
],
|
|
1036
1050
|
"totalCount": [
|
|
1037
|
-
|
|
1051
|
+
15
|
|
1038
1052
|
],
|
|
1039
1053
|
"hasNextPage": [
|
|
1040
|
-
|
|
1054
|
+
14
|
|
1041
1055
|
],
|
|
1042
1056
|
"nextCursor": [
|
|
1043
1057
|
10
|
|
@@ -1048,13 +1062,13 @@ var types_default = {
|
|
|
1048
1062
|
},
|
|
1049
1063
|
"Query": {
|
|
1050
1064
|
"getPartnerMomentsForBrand": [
|
|
1051
|
-
|
|
1065
|
+
27,
|
|
1052
1066
|
{
|
|
1053
1067
|
"cursor": [
|
|
1054
1068
|
10
|
|
1055
1069
|
],
|
|
1056
1070
|
"take": [
|
|
1057
|
-
|
|
1071
|
+
15
|
|
1058
1072
|
],
|
|
1059
1073
|
"status": [
|
|
1060
1074
|
1
|
|
@@ -1065,7 +1079,7 @@ var types_default = {
|
|
|
1065
1079
|
}
|
|
1066
1080
|
],
|
|
1067
1081
|
"getPartnerMoment": [
|
|
1068
|
-
|
|
1082
|
+
13,
|
|
1069
1083
|
{
|
|
1070
1084
|
"slug": [
|
|
1071
1085
|
10,
|
|
@@ -1074,7 +1088,7 @@ var types_default = {
|
|
|
1074
1088
|
}
|
|
1075
1089
|
],
|
|
1076
1090
|
"getPartnerTicketsForMoment": [
|
|
1077
|
-
|
|
1091
|
+
28,
|
|
1078
1092
|
{
|
|
1079
1093
|
"momentSlug": [
|
|
1080
1094
|
10,
|
|
@@ -1084,15 +1098,15 @@ var types_default = {
|
|
|
1084
1098
|
10
|
|
1085
1099
|
],
|
|
1086
1100
|
"take": [
|
|
1087
|
-
|
|
1101
|
+
15
|
|
1088
1102
|
],
|
|
1089
1103
|
"checkedIn": [
|
|
1090
|
-
|
|
1104
|
+
14
|
|
1091
1105
|
]
|
|
1092
1106
|
}
|
|
1093
1107
|
],
|
|
1094
1108
|
"getPartnerCustomersForMoment": [
|
|
1095
|
-
|
|
1109
|
+
29,
|
|
1096
1110
|
{
|
|
1097
1111
|
"momentSlug": [
|
|
1098
1112
|
10,
|
|
@@ -1102,12 +1116,12 @@ var types_default = {
|
|
|
1102
1116
|
10
|
|
1103
1117
|
],
|
|
1104
1118
|
"take": [
|
|
1105
|
-
|
|
1119
|
+
15
|
|
1106
1120
|
]
|
|
1107
1121
|
}
|
|
1108
1122
|
],
|
|
1109
1123
|
"getPartnerMomentCollection": [
|
|
1110
|
-
|
|
1124
|
+
26,
|
|
1111
1125
|
{
|
|
1112
1126
|
"slug": [
|
|
1113
1127
|
10,
|