disable relay futureProofEnums

This commit is contained in:
João Geonizeli
2021-09-10 22:26:20 -03:00
parent bad52f3a18
commit 1f7e8d4a33
9 changed files with 11 additions and 90 deletions

View File

@@ -3,7 +3,7 @@
// @ts-nocheck
import { ConcreteRequest } from "relay-runtime";
export type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING" | "%future added value";
export type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING";
export type VaultCardQueryVariables = {
status: ProcessStatus;
poolName: string;

View File

@@ -4,7 +4,7 @@
import { ReaderFragment } 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 = {
readonly edges: ReadonlyArray<{
readonly node: {

View File

@@ -4,7 +4,7 @@
import { ReaderFragment } 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 = {
readonly id: string;
readonly transactionId: string;

View File

@@ -4,7 +4,7 @@
import { ReaderFragment } 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 = {
readonly edges: ReadonlyArray<{
readonly node: {

View File

@@ -4,7 +4,7 @@
import { ReaderFragment } 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 = {
readonly edges: ReadonlyArray<{
readonly node: {

View File

@@ -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;

View File

@@ -3,7 +3,7 @@
// @ts-nocheck
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 StakeQueryResponse = {
readonly stakeOrders: {

View File

@@ -1,9 +1,4 @@
type ProcessStatus =
| "CANCELED"
| "COMPLETED"
| "PROCESSING"
// eslint-disable-next-line relay/no-future-added-value
| "%future added value";
type ProcessStatus = "CANCELED" | "COMPLETED" | "PROCESSING";
export const getStatusTextAndColors = (status: ProcessStatus) => {
if (status === "PROCESSING") {

View File

@@ -1,6 +1,10 @@
/**
* @type import('relay-compiler/lib/bin/RelayCompilerMain').Config
*/
module.exports = {
src: "app/javascript/src",
schema: "app/javascript/__generated__/schema.graphql",
language: "typescript",
exclude: ["**/__generated__/**"],
noFutureProofEnums: true,
};