@basehub/7lu6d6ukhp
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -27,3 +27,3 @@ "use strict"; | ||
const createClient = function (options) { | ||
return (0, runtime_1.createClient)(Object.assign(Object.assign({ url: 'https://basehub.com/julianbenegas/tweets/graphql?ref=i2htj6asyffpvn32zpksc6h4' }, options), { queryRoot: typeMap.Query, mutationRoot: typeMap.Mutation, subscriptionRoot: typeMap.Subscription })); | ||
return (0, runtime_1.createClient)(Object.assign(Object.assign({ url: 'https://basehub.com/julianbenegas/tweets/graphql?ref=qg784z0oirb6b9asfds0s6jk' }, options), { queryRoot: typeMap.Query, mutationRoot: typeMap.Mutation, subscriptionRoot: typeMap.Subscription })); | ||
}; | ||
@@ -30,0 +30,0 @@ exports.createClient = createClient; |
@@ -39,3 +39,3 @@ export type Scalars = { | ||
} | ||
export type BlockDocument = (Adsf | AdsfItem | FeaturedSpeakers | FeaturedSpeakersItem | Home | Speakers | SpeakersItem | Tweets | TweetsItem) & { | ||
export type BlockDocument = (Adsf | AdsfItem | FeaturedSpeakers | FeaturedSpeakersItem | Home2 | Speakers | SpeakersItem | Tweets | TweetsItem) & { | ||
__isUnion?: true; | ||
@@ -122,3 +122,3 @@ }; | ||
export type FeaturedSpeakersItemOrderByEnum = '_sys_createdAt__ASC' | '_sys_createdAt__DESC' | '_sys_hash__ASC' | '_sys_hash__DESC' | '_sys_id__ASC' | '_sys_id__DESC' | '_sys_lastModifiedAt__ASC' | '_sys_lastModifiedAt__DESC' | '_sys_title__ASC' | '_sys_title__DESC' | 'speaker__ASC' | 'speaker__DESC'; | ||
export interface Home { | ||
export interface Home2 { | ||
_sys: BlockDocumentSys; | ||
@@ -128,3 +128,3 @@ _title: Scalars['String']; | ||
speakers: Speakers; | ||
__typename: 'Home'; | ||
__typename: 'Home2'; | ||
} | ||
@@ -138,3 +138,3 @@ export interface ListMeta { | ||
adsf: Adsf; | ||
home: Home; | ||
home2: Home2; | ||
tweets: Tweets; | ||
@@ -227,3 +227,3 @@ __typename: 'Query'; | ||
on_FeaturedSpeakersItem?: FeaturedSpeakersItemGenqlSelection; | ||
on_Home?: HomeGenqlSelection; | ||
on_Home2?: Home2GenqlSelection; | ||
on_Speakers?: SpeakersGenqlSelection; | ||
@@ -362,3 +362,3 @@ on_SpeakersItem?: SpeakersItemGenqlSelection; | ||
} | ||
export interface HomeGenqlSelection { | ||
export interface Home2GenqlSelection { | ||
_sys?: BlockDocumentSysGenqlSelection; | ||
@@ -420,3 +420,3 @@ _title?: boolean | number; | ||
}); | ||
home?: HomeGenqlSelection; | ||
home2?: Home2GenqlSelection; | ||
tweets?: (TweetsGenqlSelection & { | ||
@@ -546,5 +546,5 @@ __args?: { | ||
} | null) => obj is FeaturedSpeakersItem; | ||
export declare const isHome: (obj?: { | ||
export declare const isHome2: (obj?: { | ||
__typename?: any; | ||
} | null) => obj is Home; | ||
} | null) => obj is Home2; | ||
export declare const isListMeta: (obj?: { | ||
@@ -551,0 +551,0 @@ __typename?: any; |
@@ -7,3 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.enumTweetsItemOrderByEnum = exports.enumSpeakersItemOrderByEnum = exports.enumFeaturedSpeakersItemOrderByEnum = exports.enumAdsfItemOrderByEnum = exports.isTweetsItem = exports.isTweets = exports.isSpeakersItem = exports.isSpeakers = exports.isRepoSys = exports.isQuery = exports.isListMeta = exports.isHome = exports.isFeaturedSpeakersItem = exports.isFeaturedSpeakers = exports.isBlockVideo = exports.isBlockRichText = exports.isBlockList = exports.isBlockImageUnoptimized = exports.isBlockImageOptimized = exports.isBlockImage = exports.isBlockFile = exports.isBlockDocumentSys = exports.isBlockDocument = exports.isBlockCodeSnippet = exports.isBlockAudio = exports.isAdsfItem = exports.isAdsf = void 0; | ||
exports.enumTweetsItemOrderByEnum = exports.enumSpeakersItemOrderByEnum = exports.enumFeaturedSpeakersItemOrderByEnum = exports.enumAdsfItemOrderByEnum = exports.isTweetsItem = exports.isTweets = exports.isSpeakersItem = exports.isSpeakers = exports.isRepoSys = exports.isQuery = exports.isListMeta = exports.isHome2 = exports.isFeaturedSpeakersItem = exports.isFeaturedSpeakers = exports.isBlockVideo = exports.isBlockRichText = exports.isBlockList = exports.isBlockImageUnoptimized = exports.isBlockImageOptimized = exports.isBlockImage = exports.isBlockFile = exports.isBlockDocumentSys = exports.isBlockDocument = exports.isBlockCodeSnippet = exports.isBlockAudio = exports.isAdsfItem = exports.isAdsf = void 0; | ||
const Adsf_possibleTypes = ['Adsf']; | ||
@@ -37,3 +37,3 @@ const isAdsf = (obj) => { | ||
exports.isBlockCodeSnippet = isBlockCodeSnippet; | ||
const BlockDocument_possibleTypes = ['Adsf', 'AdsfItem', 'FeaturedSpeakers', 'FeaturedSpeakersItem', 'Home', 'Speakers', 'SpeakersItem', 'Tweets', 'TweetsItem']; | ||
const BlockDocument_possibleTypes = ['Adsf', 'AdsfItem', 'FeaturedSpeakers', 'FeaturedSpeakersItem', 'Home2', 'Speakers', 'SpeakersItem', 'Tweets', 'TweetsItem']; | ||
const isBlockDocument = (obj) => { | ||
@@ -115,9 +115,9 @@ if (!(obj === null || obj === void 0 ? void 0 : obj.__typename)) | ||
exports.isFeaturedSpeakersItem = isFeaturedSpeakersItem; | ||
const Home_possibleTypes = ['Home']; | ||
const isHome = (obj) => { | ||
const Home2_possibleTypes = ['Home2']; | ||
const isHome2 = (obj) => { | ||
if (!(obj === null || obj === void 0 ? void 0 : obj.__typename)) | ||
throw new Error('__typename is missing in "isHome"'); | ||
return Home_possibleTypes.includes(obj.__typename); | ||
throw new Error('__typename is missing in "isHome2"'); | ||
return Home2_possibleTypes.includes(obj.__typename); | ||
}; | ||
exports.isHome = isHome; | ||
exports.isHome2 = isHome2; | ||
const ListMeta_possibleTypes = ['ListMeta']; | ||
@@ -124,0 +124,0 @@ const isListMeta = (obj) => { |
@@ -51,3 +51,3 @@ declare const _default: { | ||
on_FeaturedSpeakersItem: number[]; | ||
on_Home: number[]; | ||
on_Home2: number[]; | ||
on_Speakers: number[]; | ||
@@ -179,3 +179,3 @@ on_SpeakersItem: number[]; | ||
Float: {}; | ||
Home: { | ||
Home2: { | ||
_sys: number[]; | ||
@@ -221,3 +221,3 @@ _title: number[]; | ||
})[]; | ||
home: number[]; | ||
home2: number[]; | ||
tweets: (number | { | ||
@@ -224,0 +224,0 @@ filter: number[]; |
@@ -135,3 +135,3 @@ "use strict"; | ||
], | ||
"on_Home": [ | ||
"on_Home2": [ | ||
23 | ||
@@ -458,3 +458,3 @@ ], | ||
"Float": {}, | ||
"Home": { | ||
"Home2": { | ||
"_sys": [ | ||
@@ -559,3 +559,3 @@ 7 | ||
], | ||
"home": [ | ||
"home2": [ | ||
23 | ||
@@ -562,0 +562,0 @@ ], |
@@ -36,3 +36,3 @@ "use strict"; | ||
} | ||
const resolvedUrl = new URL('https://basehub.com/julianbenegas/tweets/graphql?ref=i2htj6asyffpvn32zpksc6h4'); | ||
const resolvedUrl = new URL('https://basehub.com/julianbenegas/tweets/graphql?ref=qg784z0oirb6b9asfds0s6jk'); | ||
if (!freeze) { | ||
@@ -39,0 +39,0 @@ resolvedUrl.searchParams.delete('ref'); |
{ | ||
"name": "@basehub/7lu6d6ukhp", | ||
"description": "SDK client for basehub.com GraphQL API", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"main": "./dist/index.js", | ||
@@ -6,0 +6,0 @@ "types": "./dist/index.d.ts", |
@@ -27,3 +27,3 @@ // @ts-nocheck | ||
return createClientOriginal({ | ||
url: 'https://basehub.com/julianbenegas/tweets/graphql?ref=i2htj6asyffpvn32zpksc6h4', | ||
url: 'https://basehub.com/julianbenegas/tweets/graphql?ref=qg784z0oirb6b9asfds0s6jk', | ||
@@ -30,0 +30,0 @@ ...options, |
@@ -50,3 +50,3 @@ // @ts-nocheck | ||
export type BlockDocument = (Adsf | AdsfItem | FeaturedSpeakers | FeaturedSpeakersItem | Home | Speakers | SpeakersItem | Tweets | TweetsItem) & { __isUnion?: true } | ||
export type BlockDocument = (Adsf | AdsfItem | FeaturedSpeakers | FeaturedSpeakersItem | Home2 | Speakers | SpeakersItem | Tweets | TweetsItem) & { __isUnion?: true } | ||
@@ -140,3 +140,3 @@ export interface BlockDocumentSys { | ||
export interface Home { | ||
export interface Home2 { | ||
_sys: BlockDocumentSys | ||
@@ -146,3 +146,3 @@ _title: Scalars['String'] | ||
speakers: Speakers | ||
__typename: 'Home' | ||
__typename: 'Home2' | ||
} | ||
@@ -158,3 +158,3 @@ | ||
adsf: Adsf | ||
home: Home | ||
home2: Home2 | ||
tweets: Tweets | ||
@@ -251,3 +251,3 @@ __typename: 'Query' | ||
on_FeaturedSpeakersItem?: FeaturedSpeakersItemGenqlSelection | ||
on_Home?: HomeGenqlSelection | ||
on_Home2?: Home2GenqlSelection | ||
on_Speakers?: SpeakersGenqlSelection | ||
@@ -372,3 +372,3 @@ on_SpeakersItem?: SpeakersItemGenqlSelection | ||
export interface HomeGenqlSelection{ | ||
export interface Home2GenqlSelection{ | ||
_sys?: BlockDocumentSysGenqlSelection | ||
@@ -417,3 +417,3 @@ _title?: boolean | number | ||
skip?: (Scalars['Int'] | null)} }) | ||
home?: HomeGenqlSelection | ||
home2?: Home2GenqlSelection | ||
tweets?: (TweetsGenqlSelection & { __args?: { | ||
@@ -516,3 +516,3 @@ /** Filter by a field. */ | ||
const BlockDocument_possibleTypes: string[] = ['Adsf','AdsfItem','FeaturedSpeakers','FeaturedSpeakersItem','Home','Speakers','SpeakersItem','Tweets','TweetsItem'] | ||
const BlockDocument_possibleTypes: string[] = ['Adsf','AdsfItem','FeaturedSpeakers','FeaturedSpeakersItem','Home2','Speakers','SpeakersItem','Tweets','TweetsItem'] | ||
export const isBlockDocument = (obj?: { __typename?: any } | null): obj is BlockDocument => { | ||
@@ -605,6 +605,6 @@ if (!obj?.__typename) throw new Error('__typename is missing in "isBlockDocument"') | ||
const Home_possibleTypes: string[] = ['Home'] | ||
export const isHome = (obj?: { __typename?: any } | null): obj is Home => { | ||
if (!obj?.__typename) throw new Error('__typename is missing in "isHome"') | ||
return Home_possibleTypes.includes(obj.__typename) | ||
const Home2_possibleTypes: string[] = ['Home2'] | ||
export const isHome2 = (obj?: { __typename?: any } | null): obj is Home2 => { | ||
if (!obj?.__typename) throw new Error('__typename is missing in "isHome2"') | ||
return Home2_possibleTypes.includes(obj.__typename) | ||
} | ||
@@ -611,0 +611,0 @@ |
@@ -133,3 +133,3 @@ export default { | ||
], | ||
"on_Home": [ | ||
"on_Home2": [ | ||
23 | ||
@@ -456,3 +456,3 @@ ], | ||
"Float": {}, | ||
"Home": { | ||
"Home2": { | ||
"_sys": [ | ||
@@ -557,3 +557,3 @@ 7 | ||
], | ||
"home": [ | ||
"home2": [ | ||
23 | ||
@@ -560,0 +560,0 @@ ], |
@@ -42,3 +42,3 @@ | ||
} | ||
const resolvedUrl = new URL('https://basehub.com/julianbenegas/tweets/graphql?ref=i2htj6asyffpvn32zpksc6h4') | ||
const resolvedUrl = new URL('https://basehub.com/julianbenegas/tweets/graphql?ref=qg784z0oirb6b9asfds0s6jk') | ||
if (!freeze) { | ||
@@ -45,0 +45,0 @@ resolvedUrl.searchParams.delete('ref') |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
214771