-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Log provider received in header * fix: Tests * chore: Enhance tests * chore: Update api * chore: Add tests
- Loading branch information
Showing
5 changed files
with
158 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,65 @@ | ||
## API Report File for "@well-known-components/thegraph-component" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
import { IConfigComponent } from '@well-known-components/interfaces'; | ||
import { IFetchComponent } from '@well-known-components/interfaces'; | ||
import { ILoggerComponent } from '@well-known-components/interfaces'; | ||
import { IMetricsComponent } from '@well-known-components/interfaces'; | ||
|
||
// @public | ||
export function createSubgraphComponent(components: createSubgraphComponent.NeededComponents, url: string): Promise<ISubgraphComponent>; | ||
|
||
// @public (undocumented) | ||
export namespace createSubgraphComponent { | ||
// (undocumented) | ||
export type NeededComponents = { | ||
logs: ILoggerComponent; | ||
config: IConfigComponent; | ||
fetch: IFetchComponent; | ||
metrics: IMetricsComponent<keyof typeof metricDeclarations>; | ||
}; | ||
} | ||
|
||
// @public (undocumented) | ||
type Error_2 = { | ||
message: string; | ||
}; | ||
export { Error_2 as Error } | ||
|
||
// @public (undocumented) | ||
export interface ISubgraphComponent { | ||
query: <T>(query: string, variables?: Variables, remainingAttempts?: number) => Promise<T>; | ||
} | ||
|
||
// @public (undocumented) | ||
export namespace ISubgraphComponent { | ||
// (undocumented) | ||
export type Composable = { | ||
subgraph: ISubgraphComponent; | ||
}; | ||
} | ||
|
||
// @public | ||
export const metricDeclarations: IMetricsComponent.MetricsRecordDefinition<string>; | ||
|
||
// @public (undocumented) | ||
export type SubgraphResponse<T> = { | ||
data: T; | ||
errors?: Error_2[] | Error_2; | ||
}; | ||
|
||
// @public (undocumented) | ||
export type Variables = Record<string, string[] | string | number | boolean | undefined>; | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` | ||
## API Report File for "@well-known-components/thegraph-component" | ||
|
||
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). | ||
```ts | ||
|
||
import { IConfigComponent } from '@well-known-components/interfaces'; | ||
import { IFetchComponent } from '@well-known-components/interfaces'; | ||
import { ILoggerComponent } from '@well-known-components/interfaces'; | ||
import { IMetricsComponent } from '@well-known-components/interfaces'; | ||
|
||
// @public | ||
export function createSubgraphComponent(components: createSubgraphComponent.NeededComponents, url: string): Promise<ISubgraphComponent>; | ||
|
||
// @public (undocumented) | ||
export namespace createSubgraphComponent { | ||
// (undocumented) | ||
export type NeededComponents = { | ||
logs: ILoggerComponent; | ||
config: IConfigComponent; | ||
fetch: IFetchComponent; | ||
metrics: IMetricsComponent<keyof typeof metricDeclarations>; | ||
}; | ||
} | ||
|
||
// @public (undocumented) | ||
type Error_2 = { | ||
message: string; | ||
}; | ||
export { Error_2 as Error } | ||
|
||
// @public (undocumented) | ||
export interface ISubgraphComponent { | ||
query: <T>(query: string, variables?: Variables, remainingAttempts?: number) => Promise<T>; | ||
} | ||
|
||
// @public (undocumented) | ||
export namespace ISubgraphComponent { | ||
// (undocumented) | ||
export type Composable = { | ||
subgraph: ISubgraphComponent; | ||
}; | ||
} | ||
|
||
// @public | ||
export const metricDeclarations: IMetricsComponent.MetricsRecordDefinition<string>; | ||
|
||
// @public (undocumented) | ||
export type PostQueryResponse<T> = [SubgraphProvider, SubgraphResponse<T>]; | ||
|
||
// @public (undocumented) | ||
export type SubgraphProvider = string; | ||
|
||
// @public (undocumented) | ||
export type SubgraphResponse<T> = { | ||
data: T; | ||
errors?: Error_2[] | Error_2; | ||
}; | ||
|
||
// @public (undocumented) | ||
export type Variables = Record<string, string[] | string | number | boolean | undefined>; | ||
|
||
// (No @packageDocumentation comment for this package) | ||
|
||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters