Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
chore: update schema to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
bradens committed Oct 26, 2023
1 parent 4d909ea commit 0287c6a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 77 deletions.
11 changes: 5 additions & 6 deletions codegen.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

import type { CodegenConfig } from '@graphql-codegen/cli';
import type { CodegenConfig } from "@graphql-codegen/cli";

const config: CodegenConfig = {
overwrite: true,
Expand All @@ -10,12 +9,12 @@ const config: CodegenConfig = {
documents: "src/sdk/**/*",
},
"src/resources/graphql.ts": {
plugins: ["typescript"]
plugins: ["typescript"],
},
"src/resources/graphql.schema.json": {
plugins: ["introspection"]
}
}
plugins: ["introspection"],
},
},
};

export default config;
63 changes: 12 additions & 51 deletions src/resources/graphql.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -34152,6 +34152,18 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "statsType",
"description": "docs: hide",
"type": {
"kind": "ENUM",
"name": "TokenPairStatisticsType",
"ofType": null
},
"defaultValue": null,
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "timestamp",
"description": "The unix timestamp for the stats. Defaults to current.",
Expand Down Expand Up @@ -37741,57 +37753,6 @@
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "SimulateTokenContractResult",
"description": null,
"fields": [
{
"name": "error",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "result",
"description": null,
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Boolean",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "simulationId",
"description": null,
"args": [],
"type": {
"kind": "SCALAR",
"name": "String",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
"interfaces": [],
"enumValues": null,
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "SocialLinks",
Expand Down
8 changes: 1 addition & 7 deletions src/resources/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5631,6 +5631,7 @@ export type QueryGetDetailedPairsStatsArgs = {
export type QueryGetDetailedStatsArgs = {
bucketCount?: InputMaybe<Scalars['Int']['input']>;
pairId: Scalars['String']['input'];
statsType?: InputMaybe<TokenPairStatisticsType>;
timestamp?: InputMaybe<Scalars['Int']['input']>;
tokenOfInterest?: InputMaybe<TokenOfInterest>;
windowSizes?: InputMaybe<Array<InputMaybe<DetailedStatsWindowSize>>>;
Expand Down Expand Up @@ -6075,13 +6076,6 @@ export type SandwichedLabelData = {
token1DrainedAmount?: Maybe<Scalars['String']['output']>;
};

export type SimulateTokenContractResult = {
__typename?: 'SimulateTokenContractResult';
error?: Maybe<Scalars['String']['output']>;
result: Scalars['Boolean']['output'];
simulationId?: Maybe<Scalars['String']['output']>;
};

/** Community gathered social links of tokens/NFTs. */
export type SocialLinks = {
__typename?: 'SocialLinks';
Expand Down
9 changes: 3 additions & 6 deletions src/resources/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7555,6 +7555,9 @@ type Query {
The number of aggregated values to receive. Note: Each duration has predetermined bucket sizes.<br> The first n-1 buckets are historical. The last bucket is a snapshot of current data.<br> duration `day1`: 6 buckets (4 hours each) plus 1 partial bucket<br> duration `hour12`: 12 buckets (1 hour each) plus 1 partial bucket<br> duration `hour4`: 8 buckets (30 min each) plus 1 partial bucket<br> duration `hour1`: 12 buckets (5 min each) plus 1 partial bucket<br> duration `min5`: 5 buckets (1 min each) plus 1 partial bucket<br> For example, requesting 11 buckets for a `min5` duration will return the last 10 minutes worth of data plus a snapshot for the current minute.
"""
bucketCount: Int

"""docs: hide"""
statsType: TokenPairStatisticsType
): DetailedStats @deprecated(reason: "Use `getDetailedPairStats` instead, it has more resolutions and better support")

"""Returns bucketed stats for a given token within a pair."""
Expand Down Expand Up @@ -7994,12 +7997,6 @@ enum SandwichLabelForEventType {
backrun
}

type SimulateTokenContractResult {
result: Boolean!
simulationId: String
error: String
}

"""Community gathered social links of tokens/NFTs."""
type SocialLinks {
bitcointalk: String
Expand Down
8 changes: 1 addition & 7 deletions src/sdk/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5633,6 +5633,7 @@ export type QueryGetDetailedPairsStatsArgs = {
export type QueryGetDetailedStatsArgs = {
bucketCount?: InputMaybe<Scalars['Int']['input']>;
pairId: Scalars['String']['input'];
statsType?: InputMaybe<TokenPairStatisticsType>;
timestamp?: InputMaybe<Scalars['Int']['input']>;
tokenOfInterest?: InputMaybe<TokenOfInterest>;
windowSizes?: InputMaybe<Array<InputMaybe<DetailedStatsWindowSize>>>;
Expand Down Expand Up @@ -6077,13 +6078,6 @@ export type SandwichedLabelData = {
token1DrainedAmount?: Maybe<Scalars['String']['output']>;
};

export type SimulateTokenContractResult = {
__typename?: 'SimulateTokenContractResult';
error?: Maybe<Scalars['String']['output']>;
result: Scalars['Boolean']['output'];
simulationId?: Maybe<Scalars['String']['output']>;
};

/** Community gathered social links of tokens/NFTs. */
export type SocialLinks = {
__typename?: 'SocialLinks';
Expand Down

0 comments on commit 0287c6a

Please sign in to comment.