@@ -7,7 +7,7 @@ export const Location = t.type({
77 has_public_page : t . boolean ,
88 name : t . string ,
99 slug : t . string ,
10- address_json : t . union ( [ t . string , t . undefined ] ) ,
10+ address_json : t . union ( [ t . string , t . undefined , t . null ] ) ,
1111} ) ;
1212
1313export const PostNodeOwner = t . type ( {
@@ -73,6 +73,13 @@ export const EdgeMediaToComment = t.type({
7373 count : t . number ,
7474} ) ;
7575
76+ export const GatingInfo = t . type ( {
77+ buttons : t . array ( t . string ) ,
78+ description : t . string ,
79+ gating_type : t . string ,
80+ title : t . string ,
81+ } ) ;
82+
7683export const PostNode = t . type ( {
7784 __typename : t . union ( [ t . string , t . undefined ] ) ,
7885 comments_disabled : t . boolean ,
@@ -171,7 +178,7 @@ export const ShortcodeMedia = t.type({
171178 edge_media_to_comment : t . union ( [ EdgeMediaToComment , t . undefined ] ) ,
172179 thumbnail_src : t . union ( [ t . undefined , t . string ] ) ,
173180 dimensions : Dimensions ,
174- gating_info : t . union ( [ t . string , t . null ] ) ,
181+ gating_info : t . union ( [ GatingInfo , t . null , t . undefined ] ) ,
175182 media_preview : t . union ( [ t . string , t . null ] ) ,
176183 display_url : t . string ,
177184 display_resources : DisplayResources ,
0 commit comments