@rxdi/ui-components
Version:
UI Components for building graphql-server website
59 lines (45 loc) • 1.42 kB
text/typescript
// tslint:disable
// graphql typescript definitions
export interface IGraphQLResponseRoot {
data?: IQuery | IMutation | ISubscription;
errors?: Array<IGraphQLResponseError>;
}
export interface IGraphQLResponseError {
message: string; // Required for all errors
locations?: Array<IGraphQLResponseErrorLocation>;
[propName: string]: any; // 7.2.2 says 'GraphQL servers may provide additional entries to error'
}
export interface IGraphQLResponseErrorLocation {
line: number;
column: number;
}
/**
description: Query type for all get requests which will not change persistent data
*/
export interface IQuery {
__typename?: "Query";
status: IStatusQueryType | null;
}
export interface IStatusQueryType {
__typename?: "StatusQueryType";
status: string | null;
}
/**
description: Mutation type for all requests which will change persistent data
*/
export interface IMutation {
__typename?: "Mutation";
clickHamburgerButton: IHamburgerStatisticsType | null;
}
export interface IHamburgerStatisticsType {
__typename?: "HamburgerStatisticsType";
clicks: number | null;
}
/**
description: Subscription type for all subscriptions via pub sub
*/
export interface ISubscription {
__typename?: "Subscription";
subscribeToStatistics: IHamburgerStatisticsType | null;
}
// tslint:enable