@quicknode/sdk 0.5.2 → 1.0.0-beta.0
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/README.md +642 -148
- package/cjs/index.js +765 -0
- package/cjs/package.json +3 -0
- package/esm/index.js +753 -0
- package/esm/package.json +3 -0
- package/index.d.ts +826 -0
- package/package.json +25 -13
- package/src/client/client.d.ts +0 -13
- package/src/client/customApolloClient.d.ts +0 -14
- package/src/client/index.d.ts +0 -1
- package/src/graphql/fragmentMatcher.d.ts +0 -7
- package/src/graphql/types.d.ts +0 -1305
- package/src/index.d.ts +0 -4
- package/src/index.esm.js +0 -8605
- package/src/index.js +0 -8624
- package/src/queries/index.d.ts +0 -1
- package/src/queries/nft/getCollectionDetails/getCollectionDetails.d.ts +0 -4
- package/src/queries/nft/getContractEventLogs/getContractEventLogs.d.ts +0 -7
- package/src/queries/nft/getNFTDetails/getNFTDetails.d.ts +0 -5
- package/src/queries/nft/getNFTEventLogs/getNFTEventLogs.d.ts +0 -7
- package/src/queries/nft/getNFTsByContractAddress/getNFTsByContractAddress.d.ts +0 -5
- package/src/queries/nft/getNFTsByWalletAndContracts/getNFTsByWalletAndContracts.d.ts +0 -5
- package/src/queries/nft/getNFTsByWalletENS/getNFTsByWalletENS.d.ts +0 -5
- package/src/queries/nft/getTrendingNFTCollections/getTrendingNFTCollections.d.ts +0 -5
- package/src/queries/nft/index.d.ts +0 -2
- package/src/queries/nft/nftQueries.d.ts +0 -90
- package/src/queries/nft/sharedTypes.d.ts +0 -151
- package/src/utils/removeNodesAndEdges.d.ts +0 -19
package/package.json
CHANGED
|
@@ -3,32 +3,44 @@
|
|
|
3
3
|
"repository": {
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/quiknode-labs/qn-oss.git",
|
|
6
|
-
"directory": "packages/libs/
|
|
6
|
+
"directory": "packages/libs/sdk"
|
|
7
7
|
},
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"version": "0.
|
|
10
|
-
"main": "./
|
|
11
|
-
"module": "./
|
|
12
|
-
"types": "./
|
|
9
|
+
"version": "1.0.0-beta.0",
|
|
10
|
+
"main": "./cjs/index.js",
|
|
11
|
+
"module": "./esm/index.js",
|
|
12
|
+
"types": "./index.d.ts",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@
|
|
15
|
-
"
|
|
16
|
-
"
|
|
14
|
+
"@urql/core": "^4.0.7",
|
|
15
|
+
"@urql/exchange-graphcache": "^6.0.4",
|
|
16
|
+
"cross-fetch": "^3.1.6"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@graphql-codegen/cli": "
|
|
19
|
+
"@graphql-codegen/cli": "4.0.1",
|
|
20
20
|
"@graphql-codegen/fragment-matcher": "^3.3.1",
|
|
21
|
+
"@graphql-codegen/introspection": "^3.0.1",
|
|
22
|
+
"@graphql-codegen/typed-document-node": "^4.0.1",
|
|
21
23
|
"@graphql-codegen/typescript": "2.8.0",
|
|
22
|
-
"@graphql-codegen/typescript-document-nodes": "^2.3.6",
|
|
23
24
|
"@graphql-codegen/typescript-operations": "^2.5.5",
|
|
24
25
|
"@pollyjs/adapter-node-http": "^6.0.5",
|
|
25
26
|
"@pollyjs/core": "^6.0.5",
|
|
26
27
|
"@pollyjs/persister-fs": "^6.0.5",
|
|
27
|
-
"@types/
|
|
28
|
+
"@types/jest": "^29.5.1",
|
|
29
|
+
"@types/mocha": "^10.0.1",
|
|
30
|
+
"@types/node": "^18.13.0",
|
|
28
31
|
"@types/supertest": "^2.0.12",
|
|
29
|
-
"
|
|
32
|
+
"dotenv": "^16.0.3",
|
|
33
|
+
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
34
|
+
"graphql": "^16.6.0",
|
|
35
|
+
"supertest": "^6.3.3"
|
|
30
36
|
},
|
|
31
37
|
"scripts": {
|
|
32
|
-
"codegen": "graphql-codegen --config
|
|
38
|
+
"codegen": "npx graphql-codegen --require dotenv/config"
|
|
39
|
+
},
|
|
40
|
+
"exports": {
|
|
41
|
+
".": {
|
|
42
|
+
"import": "./esm/index.js",
|
|
43
|
+
"require": "./cjs/index.js"
|
|
44
|
+
}
|
|
33
45
|
}
|
|
34
46
|
}
|
package/src/client/client.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
|
|
2
|
-
import { NFTQueries } from '../queries/nft/nftQueries';
|
|
3
|
-
export interface QuickNodeSDKArguments {
|
|
4
|
-
icyApiKey?: string;
|
|
5
|
-
}
|
|
6
|
-
export declare class QuickNodeSDK {
|
|
7
|
-
readonly apolloClient: ApolloClient<NormalizedCacheObject>;
|
|
8
|
-
private customApolloClient;
|
|
9
|
-
readonly icyApiKey?: string;
|
|
10
|
-
readonly nft: NFTQueries;
|
|
11
|
-
constructor({ icyApiKey }?: QuickNodeSDKArguments);
|
|
12
|
-
private createApolloClient;
|
|
13
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ApolloClient, NormalizedCacheObject, OperationVariables, QueryOptions } from '@apollo/client';
|
|
2
|
-
import { ResultOutput } from '../utils/removeNodesAndEdges';
|
|
3
|
-
export declare class CustomApolloClient {
|
|
4
|
-
apolloClient: ApolloClient<NormalizedCacheObject>;
|
|
5
|
-
constructor(apolloClient: ApolloClient<NormalizedCacheObject>);
|
|
6
|
-
query<TVariables extends OperationVariables, KResults extends Record<string, any>, KResultsOutput extends ResultOutput>(options: QueryOptions<TVariables, KResults>): Promise<{
|
|
7
|
-
data: KResultsOutput;
|
|
8
|
-
errors?: readonly import("graphql").GraphQLError[] | undefined;
|
|
9
|
-
error?: import("@apollo/client").ApolloError | undefined;
|
|
10
|
-
loading: boolean;
|
|
11
|
-
networkStatus: import("@apollo/client").NetworkStatus;
|
|
12
|
-
partial?: boolean | undefined;
|
|
13
|
-
}>;
|
|
14
|
-
}
|
package/src/client/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './client';
|