Skip to content

Commit

Permalink
fix: rwa state name
Browse files Browse the repository at this point in the history
  • Loading branch information
froid1911 committed Mar 15, 2024
1 parent 36ecf2b commit afa461b
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 43 deletions.
54 changes: 27 additions & 27 deletions api/src/graphql/generated/drive/nexus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ export interface NexusGenObjects {
title?: string | null; // String
}
Query: {};
RealWorldAssetsState: { // root type
RealWorldAssets: { // root type
accounts: NexusGenRootTypes['Account'][]; // [Account!]!
fixedIncomeTypes: NexusGenRootTypes['FixedIncomeType'][]; // [FixedIncomeType!]!
portfolio: NexusGenRootTypes['Asset'][]; // [Asset!]!
Expand All @@ -395,7 +395,7 @@ export interface NexusGenObjects {
spvs: NexusGenRootTypes['Spv'][]; // [Spv!]!
transactions: NexusGenRootTypes['GroupTransaction'][]; // [GroupTransaction!]!
}
RealWorldAssetsStateWithId: { // root type
RealWorldAssetsWithId: { // root type
accounts: NexusGenRootTypes['Account'][]; // [Account!]!
fixedIncomeTypes: NexusGenRootTypes['FixedIncomeType'][]; // [FixedIncomeType!]!
id: string; // ID!
Expand Down Expand Up @@ -551,8 +551,8 @@ export interface NexusGenObjects {

export interface NexusGenInterfaces {
Document: NexusGenRootTypes['AccountSnapshot'] | NexusGenRootTypes['BudgetStatement'] | NexusGenRootTypes['DefaultDocument'] | NexusGenRootTypes['ScopeFramework'];
IRealWorldAssets: NexusGenRootTypes['RealWorldAssets'] | NexusGenRootTypes['RealWorldAssetsWithId'];
Operation: any;
RealWorldAssetsStateInterface: NexusGenRootTypes['RealWorldAssetsState'] | NexusGenRootTypes['RealWorldAssetsStateWithId'];
System: NexusGenRootTypes['SwitchboardDrive'] | NexusGenRootTypes['SwitchboardHost'];
}

Expand Down Expand Up @@ -845,10 +845,10 @@ export interface NexusGenFieldTypes {
coreUnits: Array<NexusGenRootTypes['CoreUnit'] | null> | null; // [CoreUnit]
document: NexusGenRootTypes['Document'] | null; // Document
drive: NexusGenRootTypes['DocumentDriveState'] | null; // DocumentDriveState
rwaPortfolios: Array<NexusGenRootTypes['RealWorldAssetsStateWithId'] | null> | null; // [RealWorldAssetsStateWithId]
rwaPortfolios: Array<NexusGenRootTypes['RealWorldAssetsWithId'] | null> | null; // [RealWorldAssetsWithId]
system: NexusGenRootTypes['SwitchboardDrive'] | null; // SwitchboardDrive
}
RealWorldAssetsState: { // field return type
RealWorldAssets: { // field return type
accounts: NexusGenRootTypes['Account'][]; // [Account!]!
fixedIncomeTypes: NexusGenRootTypes['FixedIncomeType'][]; // [FixedIncomeType!]!
portfolio: NexusGenRootTypes['Asset'][]; // [Asset!]!
Expand All @@ -857,7 +857,7 @@ export interface NexusGenFieldTypes {
spvs: NexusGenRootTypes['Spv'][]; // [Spv!]!
transactions: NexusGenRootTypes['GroupTransaction'][]; // [GroupTransaction!]!
}
RealWorldAssetsStateWithId: { // field return type
RealWorldAssetsWithId: { // field return type
accounts: NexusGenRootTypes['Account'][]; // [Account!]!
fixedIncomeTypes: NexusGenRootTypes['FixedIncomeType'][]; // [FixedIncomeType!]!
id: string; // ID!
Expand Down Expand Up @@ -1025,13 +1025,7 @@ export interface NexusGenFieldTypes {
operations: NexusGenRootTypes['Operation'][]; // [Operation!]!
revision: number; // Int!
}
Operation: { // field return type
hash: string; // String!
index: number; // Int!
timestamp: NexusGenScalars['Date']; // Date!
type: string; // String!
}
RealWorldAssetsStateInterface: { // field return type
IRealWorldAssets: { // field return type
accounts: NexusGenRootTypes['Account'][]; // [Account!]!
fixedIncomeTypes: NexusGenRootTypes['FixedIncomeType'][]; // [FixedIncomeType!]!
portfolio: NexusGenRootTypes['Asset'][]; // [Asset!]!
Expand All @@ -1040,6 +1034,12 @@ export interface NexusGenFieldTypes {
spvs: NexusGenRootTypes['Spv'][]; // [Spv!]!
transactions: NexusGenRootTypes['GroupTransaction'][]; // [GroupTransaction!]!
}
Operation: { // field return type
hash: string; // String!
index: number; // Int!
timestamp: NexusGenScalars['Date']; // Date!
type: string; // String!
}
System: { // field return type
auth: NexusGenRootTypes['Auth'] | null; // Auth
}
Expand Down Expand Up @@ -1325,10 +1325,10 @@ export interface NexusGenFieldTypeNames {
coreUnits: 'CoreUnit'
document: 'Document'
drive: 'DocumentDriveState'
rwaPortfolios: 'RealWorldAssetsStateWithId'
rwaPortfolios: 'RealWorldAssetsWithId'
system: 'SwitchboardDrive'
}
RealWorldAssetsState: { // field return type name
RealWorldAssets: { // field return type name
accounts: 'Account'
fixedIncomeTypes: 'FixedIncomeType'
portfolio: 'Asset'
Expand All @@ -1337,7 +1337,7 @@ export interface NexusGenFieldTypeNames {
spvs: 'Spv'
transactions: 'GroupTransaction'
}
RealWorldAssetsStateWithId: { // field return type name
RealWorldAssetsWithId: { // field return type name
accounts: 'Account'
fixedIncomeTypes: 'FixedIncomeType'
id: 'ID'
Expand Down Expand Up @@ -1505,13 +1505,7 @@ export interface NexusGenFieldTypeNames {
operations: 'Operation'
revision: 'Int'
}
Operation: { // field return type name
hash: 'String'
index: 'Int'
timestamp: 'Date'
type: 'String'
}
RealWorldAssetsStateInterface: { // field return type name
IRealWorldAssets: { // field return type name
accounts: 'Account'
fixedIncomeTypes: 'FixedIncomeType'
portfolio: 'Asset'
Expand All @@ -1520,6 +1514,12 @@ export interface NexusGenFieldTypeNames {
spvs: 'Spv'
transactions: 'GroupTransaction'
}
Operation: { // field return type name
hash: 'String'
index: 'Int'
timestamp: 'Date'
type: 'String'
}
System: { // field return type name
auth: 'Auth'
}
Expand Down Expand Up @@ -1574,16 +1574,16 @@ export interface NexusGenAbstractTypeMembers {
Asset: "Cash" | "FixedIncome"
ElementComponents: "ArticleComponent" | "CoreComponent" | "ScopeComponent" | "SectionComponent" | "TypeSpecificationComponent"
Document: "AccountSnapshot" | "BudgetStatement" | "DefaultDocument" | "ScopeFramework"
RealWorldAssetsStateInterface: "RealWorldAssetsState" | "RealWorldAssetsStateWithId"
IRealWorldAssets: "RealWorldAssets" | "RealWorldAssetsWithId"
System: "SwitchboardDrive" | "SwitchboardHost"
}

export interface NexusGenTypeInterfaces {
AccountSnapshot: "Document"
BudgetStatement: "Document"
DefaultDocument: "Document"
RealWorldAssetsState: "RealWorldAssetsStateInterface"
RealWorldAssetsStateWithId: "RealWorldAssetsStateInterface"
RealWorldAssets: "IRealWorldAssets"
RealWorldAssetsWithId: "IRealWorldAssets"
ScopeFramework: "Document"
SwitchboardDrive: "System"
SwitchboardHost: "System"
Expand All @@ -1603,7 +1603,7 @@ export type NexusGenUnionNames = keyof NexusGenUnions;

export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = never;

export type NexusGenAbstractsUsingStrategyResolveType = "Asset" | "Document" | "ElementComponents" | "Operation" | "RealWorldAssetsStateInterface" | "System";
export type NexusGenAbstractsUsingStrategyResolveType = "Asset" | "Document" | "ElementComponents" | "IRealWorldAssets" | "Operation" | "System";

export type NexusGenFeaturesConfig = {
abstractTypeStrategies: {
Expand Down
26 changes: 13 additions & 13 deletions api/src/graphql/generated/drive/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,16 @@ enum GroupTransactionType {
PrincipalReturn
}

interface IRealWorldAssets {
accounts: [Account!]!
fixedIncomeTypes: [FixedIncomeType!]!
portfolio: [Asset!]!
principalLenderAccountId: ID!
serviceProviderFeeTypes: [ServiceProviderFeeType!]!
spvs: [Spv!]!
transactions: [GroupTransaction!]!
}

input InputListenerFilter {
branch: [String]
documentId: [String]
Expand Down Expand Up @@ -405,21 +415,11 @@ type Query {
coreUnits: [CoreUnit]
document(id: String!): Document
drive: DocumentDriveState
rwaPortfolios: [RealWorldAssetsStateWithId]
rwaPortfolios: [RealWorldAssetsWithId]
system: SwitchboardDrive
}

type RealWorldAssetsState implements RealWorldAssetsStateInterface {
accounts: [Account!]!
fixedIncomeTypes: [FixedIncomeType!]!
portfolio: [Asset!]!
principalLenderAccountId: ID!
serviceProviderFeeTypes: [ServiceProviderFeeType!]!
spvs: [Spv!]!
transactions: [GroupTransaction!]!
}

interface RealWorldAssetsStateInterface {
type RealWorldAssets implements IRealWorldAssets {
accounts: [Account!]!
fixedIncomeTypes: [FixedIncomeType!]!
portfolio: [Asset!]!
Expand All @@ -429,7 +429,7 @@ interface RealWorldAssetsStateInterface {
transactions: [GroupTransaction!]!
}

type RealWorldAssetsStateWithId implements RealWorldAssetsStateInterface {
type RealWorldAssetsWithId implements IRealWorldAssets {
accounts: [Account!]!
fixedIncomeTypes: [FixedIncomeType!]!
id: ID!
Expand Down
6 changes: 3 additions & 3 deletions api/src/modules/real-world-assets/resolvers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const GroupTransaction = objectType({
}
})
export const RealWorldAssetsStateInterface = interfaceType({
name: "RealWorldAssetsStateInterface",
name: "IRealWorldAssets",
definition(t) {
t.nonNull.list.nonNull.field("accounts", { type: Account })
t.nonNull.id("principalLenderAccountId")
Expand All @@ -87,7 +87,7 @@ export const RealWorldAssetsStateInterface = interfaceType({
})

export const RealWorldAssetsState = objectType({
name: "RealWorldAssetsState",
name: "RealWorldAssets",
definition(t) {
t.implements(RealWorldAssetsStateInterface)
}
Expand Down Expand Up @@ -138,7 +138,7 @@ export const GroupTransactionType = enumType({
});

export const RealWorldAssetsStateWithId = objectType({
name: "RealWorldAssetsStateWithId",
name: "RealWorldAssetsWithId",
definition(t) {
t.nonNull.id("id")
t.implements(RealWorldAssetsStateInterface)
Expand Down

0 comments on commit afa461b

Please sign in to comment.