add apollo target nx script and run
This commit is contained in:
parent
4bb61ad74c
commit
7d5ee75610
@ -64,6 +64,16 @@
|
||||
"jestConfig": "apps/explorer/jest.config.js",
|
||||
"passWithNoTests": true
|
||||
}
|
||||
},
|
||||
"generate": {
|
||||
"builder": "@nrwl/workspace:run-commands",
|
||||
"options": {
|
||||
"commands": [
|
||||
{
|
||||
"command": "npx apollo codegen:generate --config=apps/explorer/apollo.config.js --target=typescript --globalTypesFile=apps/explorer/src/__generated__/globalTypes.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": []
|
||||
|
126
apps/explorer/src/__generated__/globalTypes.ts
generated
Normal file
126
apps/explorer/src/__generated__/globalTypes.ts
generated
Normal file
@ -0,0 +1,126 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
//==============================================================
|
||||
// START Enums and Input Objects
|
||||
//==============================================================
|
||||
|
||||
/**
|
||||
* The various account types we have (used by collateral)
|
||||
*/
|
||||
export enum AccountType {
|
||||
Bond = 'Bond',
|
||||
FeeInfrastructure = 'FeeInfrastructure',
|
||||
FeeLiquidity = 'FeeLiquidity',
|
||||
General = 'General',
|
||||
GlobalInsurance = 'GlobalInsurance',
|
||||
Insurance = 'Insurance',
|
||||
LockWithdraw = 'LockWithdraw',
|
||||
Margin = 'Margin',
|
||||
Settlement = 'Settlement',
|
||||
}
|
||||
|
||||
export enum AuctionTrigger {
|
||||
Batch = 'Batch',
|
||||
Liquidity = 'Liquidity',
|
||||
Opening = 'Opening',
|
||||
Price = 'Price',
|
||||
Unspecified = 'Unspecified',
|
||||
}
|
||||
|
||||
/**
|
||||
* The current state of a market
|
||||
*/
|
||||
export enum MarketState {
|
||||
Active = 'Active',
|
||||
Cancelled = 'Cancelled',
|
||||
Closed = 'Closed',
|
||||
Pending = 'Pending',
|
||||
Proposed = 'Proposed',
|
||||
Rejected = 'Rejected',
|
||||
Settled = 'Settled',
|
||||
Suspended = 'Suspended',
|
||||
TradingTerminated = 'TradingTerminated',
|
||||
}
|
||||
|
||||
/**
|
||||
* What market trading mode are we in
|
||||
*/
|
||||
export enum MarketTradingMode {
|
||||
BatchAuction = 'BatchAuction',
|
||||
Continuous = 'Continuous',
|
||||
MonitoringAuction = 'MonitoringAuction',
|
||||
OpeningAuction = 'OpeningAuction',
|
||||
}
|
||||
|
||||
export enum NodeStatus {
|
||||
NonValidator = 'NonValidator',
|
||||
Validator = 'Validator',
|
||||
}
|
||||
|
||||
/**
|
||||
* Reason for the proposal being rejected by the core node
|
||||
*/
|
||||
export enum ProposalRejectionReason {
|
||||
CloseTimeTooLate = 'CloseTimeTooLate',
|
||||
CloseTimeTooSoon = 'CloseTimeTooSoon',
|
||||
CouldNotInstantiateMarket = 'CouldNotInstantiateMarket',
|
||||
EnactTimeTooLate = 'EnactTimeTooLate',
|
||||
EnactTimeTooSoon = 'EnactTimeTooSoon',
|
||||
IncompatibleTimestamps = 'IncompatibleTimestamps',
|
||||
InsufficientTokens = 'InsufficientTokens',
|
||||
InvalidAsset = 'InvalidAsset',
|
||||
InvalidAssetDetails = 'InvalidAssetDetails',
|
||||
InvalidFeeAmount = 'InvalidFeeAmount',
|
||||
InvalidFutureMaturityTimestamp = 'InvalidFutureMaturityTimestamp',
|
||||
InvalidFutureProduct = 'InvalidFutureProduct',
|
||||
InvalidInstrumentSecurity = 'InvalidInstrumentSecurity',
|
||||
InvalidRiskParameter = 'InvalidRiskParameter',
|
||||
InvalidShape = 'InvalidShape',
|
||||
MajorityThresholdNotReached = 'MajorityThresholdNotReached',
|
||||
MarketMissingLiquidityCommitment = 'MarketMissingLiquidityCommitment',
|
||||
MissingBuiltinAssetField = 'MissingBuiltinAssetField',
|
||||
MissingCommitmentAmount = 'MissingCommitmentAmount',
|
||||
MissingERC20ContractAddress = 'MissingERC20ContractAddress',
|
||||
NetworkParameterInvalidKey = 'NetworkParameterInvalidKey',
|
||||
NetworkParameterInvalidValue = 'NetworkParameterInvalidValue',
|
||||
NetworkParameterValidationFailed = 'NetworkParameterValidationFailed',
|
||||
NoProduct = 'NoProduct',
|
||||
NoRiskParameters = 'NoRiskParameters',
|
||||
NoTradingMode = 'NoTradingMode',
|
||||
NodeValidationFailed = 'NodeValidationFailed',
|
||||
OpeningAuctionDurationTooLarge = 'OpeningAuctionDurationTooLarge',
|
||||
OpeningAuctionDurationTooSmall = 'OpeningAuctionDurationTooSmall',
|
||||
ParticipationThresholdNotReached = 'ParticipationThresholdNotReached',
|
||||
ProductMaturityIsPassed = 'ProductMaturityIsPassed',
|
||||
UnsupportedProduct = 'UnsupportedProduct',
|
||||
UnsupportedTradingMode = 'UnsupportedTradingMode',
|
||||
}
|
||||
|
||||
/**
|
||||
* Various states a proposal can transition through:
|
||||
* Open ->
|
||||
* - Passed -> Enacted.
|
||||
* - Rejected.
|
||||
* Proposal can enter Failed state from any other state.
|
||||
*/
|
||||
export enum ProposalState {
|
||||
Declined = 'Declined',
|
||||
Enacted = 'Enacted',
|
||||
Failed = 'Failed',
|
||||
Open = 'Open',
|
||||
Passed = 'Passed',
|
||||
Rejected = 'Rejected',
|
||||
WaitingForNodeVote = 'WaitingForNodeVote',
|
||||
}
|
||||
|
||||
export enum VoteValue {
|
||||
No = 'No',
|
||||
Yes = 'Yes',
|
||||
}
|
||||
|
||||
//==============================================================
|
||||
// END Enums and Input Objects
|
||||
//==============================================================
|
@ -3,7 +3,7 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import { AccountType } from '../../../__generated__/globalTypes';
|
||||
import { AccountType } from './../../../../__generated__/globalTypes';
|
||||
|
||||
// ====================================================
|
||||
// GraphQL query operation: AssetsQuery
|
||||
|
@ -7,7 +7,7 @@ import {
|
||||
ProposalState,
|
||||
ProposalRejectionReason,
|
||||
VoteValue,
|
||||
} from '../../../__generated__/globalTypes';
|
||||
} from './../../../../__generated__/globalTypes';
|
||||
|
||||
// ====================================================
|
||||
// GraphQL query operation: ProposalsQuery
|
||||
|
@ -8,7 +8,7 @@ import {
|
||||
MarketState,
|
||||
AccountType,
|
||||
AuctionTrigger,
|
||||
} from '../../../__generated__/globalTypes';
|
||||
} from './../../../../__generated__/globalTypes';
|
||||
|
||||
// ====================================================
|
||||
// GraphQL query operation: MarketsQuery
|
||||
|
@ -3,7 +3,7 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import { AccountType } from '../../../../__generated__/globalTypes';
|
||||
import { AccountType } from './../../../../../__generated__/globalTypes';
|
||||
|
||||
// ====================================================
|
||||
// GraphQL query operation: PartyAssetsQuery
|
||||
|
@ -3,7 +3,7 @@
|
||||
// @generated
|
||||
// This file was automatically generated and should not be edited.
|
||||
|
||||
import { NodeStatus } from '../../../__generated__/globalTypes';
|
||||
import { NodeStatus } from './../../../../__generated__/globalTypes';
|
||||
|
||||
// ====================================================
|
||||
// GraphQL query operation: NodesQuery
|
||||
|
@ -6,8 +6,7 @@
|
||||
"start": "nx serve",
|
||||
"build": "nx build",
|
||||
"test": "nx test",
|
||||
"postinstall": "husky install",
|
||||
"generate": "env-cmd yarn apollo codegen:generate --config=apps/explorer/apollo.config.js --target=typescript --globalTypesFile=src/__generated__/globalTypes.ts"
|
||||
"postinstall": "husky install"
|
||||
},
|
||||
"engines": {
|
||||
"node": "16.14.0"
|
||||
|
Loading…
Reference in New Issue
Block a user