@alpaca-travel/graph-methods
Advanced tools
Comparing version 0.0.14-alpha.0 to 0.0.15-alpha.0
@@ -0,1 +1,18 @@ | ||
interface Query { | ||
query: string; | ||
variables?: Variables; | ||
} | ||
interface Variables { | ||
[key: string]: any; | ||
} | ||
interface Network { | ||
query(query: Query): Promise<any[]>; | ||
} | ||
interface Container { | ||
get(key: string): Promise<any>; | ||
getParam(key: string): any; | ||
} | ||
interface Client { | ||
query(query: Query): Promise<any[]>; | ||
} | ||
export interface QueryOptions { | ||
@@ -5,5 +22,5 @@ variables: Variables; | ||
interface ApiOptions { | ||
network: Network; | ||
container: Container; | ||
client: Client; | ||
network?: Network; | ||
container?: Container; | ||
client?: Client; | ||
} | ||
@@ -15,3 +32,3 @@ export default class Api { | ||
static get(operationKey: string): string; | ||
constructor(options: ApiOptions); | ||
constructor(options?: ApiOptions); | ||
query(operationKey: string, options: QueryOptions): Promise<any>; | ||
@@ -18,0 +35,0 @@ createAnonymousItinerary(options: QueryOptions): Promise<any[]>; |
{ | ||
"name": "@alpaca-travel/graph-methods", | ||
"version": "0.0.14-alpha.0", | ||
"version": "0.0.15-alpha.0", | ||
"description": "Simple GraphQL queries and mutations exposed as JS API", | ||
"homepage": "https://github.com/AlpacaTravel/graph-methods", | ||
"homepage": "https://github.com/AlpacaTravel/graph-sdk", | ||
"repository": { | ||
@@ -59,3 +59,3 @@ "type": "git", | ||
}, | ||
"gitHead": "80ac4551d99e87abfea0d92e7f4224dc11fd8d59" | ||
"gitHead": "ac2ddfd642fbdadd314599ece7e161caa3547c59" | ||
} |
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1
6
16125
8
275