disable relay futureProofEnums
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
|
|
||||||
import { ConcreteRequest } from "relay-runtime";
|
import { ConcreteRequest } from "relay-runtime";
|
||||||
export type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING" | "%future added value";
|
export type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING";
|
||||||
export type VaultCardQueryVariables = {
|
export type VaultCardQueryVariables = {
|
||||||
status: ProcessStatus;
|
status: ProcessStatus;
|
||||||
poolName: string;
|
poolName: string;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
import { ReaderFragment } from "relay-runtime";
|
import { ReaderFragment } from "relay-runtime";
|
||||||
import { FragmentRefs } from "relay-runtime";
|
import { FragmentRefs } from "relay-runtime";
|
||||||
export type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING" | "%future added value";
|
export type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING";
|
||||||
export type History_depositOrders = {
|
export type History_depositOrders = {
|
||||||
readonly edges: ReadonlyArray<{
|
readonly edges: ReadonlyArray<{
|
||||||
readonly node: {
|
readonly node: {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
import { ReaderFragment } from "relay-runtime";
|
import { ReaderFragment } from "relay-runtime";
|
||||||
import { FragmentRefs } from "relay-runtime";
|
import { FragmentRefs } from "relay-runtime";
|
||||||
export type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING" | "%future added value";
|
export type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING";
|
||||||
export type Show_deposit_order = {
|
export type Show_deposit_order = {
|
||||||
readonly id: string;
|
readonly id: string;
|
||||||
readonly transactionId: string;
|
readonly transactionId: string;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
import { ReaderFragment } from "relay-runtime";
|
import { ReaderFragment } from "relay-runtime";
|
||||||
import { FragmentRefs } from "relay-runtime";
|
import { FragmentRefs } from "relay-runtime";
|
||||||
export type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING" | "%future added value";
|
export type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING";
|
||||||
export type ExchangeHistory_buyCryptoOrders = {
|
export type ExchangeHistory_buyCryptoOrders = {
|
||||||
readonly edges: ReadonlyArray<{
|
readonly edges: ReadonlyArray<{
|
||||||
readonly node: {
|
readonly node: {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
import { ReaderFragment } from "relay-runtime";
|
import { ReaderFragment } from "relay-runtime";
|
||||||
import { FragmentRefs } from "relay-runtime";
|
import { FragmentRefs } from "relay-runtime";
|
||||||
export type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING" | "%future added value";
|
export type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING";
|
||||||
export type ExchangeHistory_sellCryptoOrders = {
|
export type ExchangeHistory_sellCryptoOrders = {
|
||||||
readonly edges: ReadonlyArray<{
|
readonly edges: ReadonlyArray<{
|
||||||
readonly node: {
|
readonly node: {
|
||||||
|
|||||||
@@ -1,78 +0,0 @@
|
|||||||
/* tslint:disable */
|
|
||||||
/* eslint-disable */
|
|
||||||
// @ts-nocheck
|
|
||||||
|
|
||||||
import { ReaderFragment } from "relay-runtime";
|
|
||||||
import { FragmentRefs } from "relay-runtime";
|
|
||||||
export type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING" | "%future added value";
|
|
||||||
export type SellOrder_order = {
|
|
||||||
readonly id: string;
|
|
||||||
readonly status: ProcessStatus;
|
|
||||||
readonly paidAmount: string;
|
|
||||||
readonly receivedAmountCents: number | null;
|
|
||||||
readonly createdAt: unknown;
|
|
||||||
readonly __typename: "SellCryptoOrder";
|
|
||||||
readonly " $refType": "SellOrder_order";
|
|
||||||
};
|
|
||||||
export type SellOrder_order$data = SellOrder_order;
|
|
||||||
export type SellOrder_order$key = {
|
|
||||||
readonly " $data"?: SellOrder_order$data;
|
|
||||||
readonly " $fragmentRefs": FragmentRefs<"SellOrder_order">;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const node: ReaderFragment = {
|
|
||||||
"argumentDefinitions": [],
|
|
||||||
"kind": "Fragment",
|
|
||||||
"metadata": null,
|
|
||||||
"name": "SellOrder_order",
|
|
||||||
"selections": [
|
|
||||||
{
|
|
||||||
"alias": null,
|
|
||||||
"args": null,
|
|
||||||
"kind": "ScalarField",
|
|
||||||
"name": "id",
|
|
||||||
"storageKey": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"alias": null,
|
|
||||||
"args": null,
|
|
||||||
"kind": "ScalarField",
|
|
||||||
"name": "status",
|
|
||||||
"storageKey": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"alias": null,
|
|
||||||
"args": null,
|
|
||||||
"kind": "ScalarField",
|
|
||||||
"name": "paidAmount",
|
|
||||||
"storageKey": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"alias": null,
|
|
||||||
"args": null,
|
|
||||||
"kind": "ScalarField",
|
|
||||||
"name": "receivedAmountCents",
|
|
||||||
"storageKey": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"alias": null,
|
|
||||||
"args": null,
|
|
||||||
"kind": "ScalarField",
|
|
||||||
"name": "createdAt",
|
|
||||||
"storageKey": null
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"alias": null,
|
|
||||||
"args": null,
|
|
||||||
"kind": "ScalarField",
|
|
||||||
"name": "__typename",
|
|
||||||
"storageKey": null
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"type": "SellCryptoOrder",
|
|
||||||
"abstractKey": null
|
|
||||||
};
|
|
||||||
(node as any).hash = 'f621be85ef9b711e1c720d4fc07187c7';
|
|
||||||
export default node;
|
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
// @ts-nocheck
|
// @ts-nocheck
|
||||||
|
|
||||||
import { ConcreteRequest } from "relay-runtime";
|
import { ConcreteRequest } from "relay-runtime";
|
||||||
export type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING" | "%future added value";
|
export type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING";
|
||||||
export type StakeQueryVariables = {};
|
export type StakeQueryVariables = {};
|
||||||
export type StakeQueryResponse = {
|
export type StakeQueryResponse = {
|
||||||
readonly stakeOrders: {
|
readonly stakeOrders: {
|
||||||
|
|||||||
@@ -1,9 +1,4 @@
|
|||||||
type ProcessStatus =
|
type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING";
|
||||||
| "CANCELED"
|
|
||||||
| "COMPLETED"
|
|
||||||
| "PROCESSING"
|
|
||||||
// eslint-disable-next-line relay/no-future-added-value
|
|
||||||
| "%future added value";
|
|
||||||
|
|
||||||
export const getStatusTextAndColors = (status: ProcessStatus) => {
|
export const getStatusTextAndColors = (status: ProcessStatus) => {
|
||||||
if (status === "PROCESSING") {
|
if (status === "PROCESSING") {
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
|
/**
|
||||||
|
* @type import('relay-compiler/lib/bin/RelayCompilerMain').Config
|
||||||
|
*/
|
||||||
module.exports = {
|
module.exports = {
|
||||||
src: "app/javascript/src",
|
src: "app/javascript/src",
|
||||||
schema: "app/javascript/__generated__/schema.graphql",
|
schema: "app/javascript/__generated__/schema.graphql",
|
||||||
language: "typescript",
|
language: "typescript",
|
||||||
exclude: ["**/__generated__/**"],
|
exclude: ["**/__generated__/**"],
|
||||||
|
noFutureProofEnums: true,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user