@dodoex/api 3.0.0-taiko.4 → 3.0.0-taiko.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/gql/gql.d.ts +1 -1
- package/dist/cjs/gql/graphql.d.ts +2 -0
- package/dist/cjs/helper/GraphQLRequests.d.ts +4 -0
- package/dist/cjs/index.cjs +1 -1
- package/dist/gql/gql.d.ts +1 -1
- package/dist/gql/graphql.d.ts +2 -0
- package/dist/helper/GraphQLRequests.d.ts +4 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cjs/gql/gql.d.ts
CHANGED
|
@@ -45,4 +45,4 @@ export declare function graphql(source: '\n query FetchUserSwapOrderHistories
|
|
|
45
45
|
/**
|
|
46
46
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
47
47
|
*/
|
|
48
|
-
export declare function graphql(source: '\n query FetchNoticeCenterTransactionList(\n $where: Notice_centertransactionListFilter\n ) {\n notice_center_transactionList(where: $where) {\n list {\n chainId\n createTime\n extend\n from\n id\n key\n type\n }\n count\n }\n }\n '): typeof import('./graphql').FetchNoticeCenterTransactionListDocument;
|
|
48
|
+
export declare function graphql(source: '\n query FetchNoticeCenterTransactionList(\n $where: Notice_centertransactionListFilter\n ) {\n notice_center_transactionList(where: $where) {\n list {\n chainId\n createTime\n extend\n from\n id\n key\n type\n }\n count\n limit\n page\n }\n }\n '): typeof import('./graphql').FetchNoticeCenterTransactionListDocument;
|
|
@@ -20688,6 +20688,8 @@ export declare type FetchNoticeCenterTransactionListQueryVariables = Exact<{
|
|
|
20688
20688
|
export declare type FetchNoticeCenterTransactionListQuery = {
|
|
20689
20689
|
notice_center_transactionList?: {
|
|
20690
20690
|
count?: number | null;
|
|
20691
|
+
limit?: number | null;
|
|
20692
|
+
page?: number | null;
|
|
20691
20693
|
list?: Array<{
|
|
20692
20694
|
chainId?: number | null;
|
|
20693
20695
|
createTime?: string | null;
|
|
@@ -2,15 +2,19 @@ import crossFetch from 'cross-fetch';
|
|
|
2
2
|
import { RequestDocument, Variables } from 'graphql-request';
|
|
3
3
|
import type { TypedDocumentNode } from '@graphql-typed-document-node/core';
|
|
4
4
|
import { TypedDocumentString } from '../gql/graphql';
|
|
5
|
+
import { GraphQLClientRequestHeaders } from 'graphql-request/build/esm/types';
|
|
5
6
|
declare type Fetch = typeof crossFetch;
|
|
6
7
|
export interface GraphQLRequestsConfig {
|
|
7
8
|
url?: string;
|
|
8
9
|
fetch?: Fetch;
|
|
10
|
+
getHeaders?: (headers?: GraphQLClientRequestHeaders) => void;
|
|
9
11
|
}
|
|
10
12
|
export default class GraphQLRequests {
|
|
11
13
|
private url;
|
|
12
14
|
private client;
|
|
15
|
+
private getHeaders?;
|
|
13
16
|
constructor(configProps?: GraphQLRequestsConfig);
|
|
17
|
+
setHeaders(): void;
|
|
14
18
|
getData<T, V extends Variables = Variables>(document: RequestDocument | TypedDocumentNode<T, V>, variables?: V): Promise<T>;
|
|
15
19
|
getQuery<TResult, TVariables>(document: TypedDocumentString<TResult, TVariables>, ...[variables]: TVariables extends Record<string, never> ? [] : [TVariables]): {
|
|
16
20
|
queryKey: readonly [TypedDocumentString<TResult, TVariables>, TVariables | undefined];
|