From d723d0b156008dd54f25fd85c1d1d198239da76b Mon Sep 17 00:00:00 2001 From: Nicolas Burtey Date: Mon, 15 Apr 2024 13:06:47 -0600 Subject: [PATCH] fix: codegen1 --- app/graphql/generated.ts | 18 ++++++++++++++++++ codegen.yml | 1 + 2 files changed, 19 insertions(+) diff --git a/app/graphql/generated.ts b/app/graphql/generated.ts index 9a08da967d..c96b21e85f 100644 --- a/app/graphql/generated.ts +++ b/app/graphql/generated.ts @@ -78,6 +78,8 @@ export type Scalars = { TotpRegistrationId: { input: string; output: string; } /** A secret to generate time-based one-time password */ TotpSecret: { input: string; output: string; } + /** An external reference id that can be optionally added for transactions. */ + TxExternalId: { input: string; output: string; } /** Unique identifier of a user */ Username: { input: string; output: string; } /** Unique identifier of a wallet */ @@ -620,6 +622,8 @@ export type IntraLedgerUsdPaymentSendInput = { /** A lightning invoice. */ export type Invoice = { readonly createdAt: Scalars['Timestamp']['output']; + /** The unique external id set for the invoice. */ + readonly externalId: Scalars['TxExternalId']['output']; /** The payment hash of the lightning invoice. */ readonly paymentHash: Scalars['PaymentHash']['output']; /** The bolt11 invoice to be paid. */ @@ -680,6 +684,7 @@ export type LnAddressPaymentSendInput = { export type LnInvoice = Invoice & { readonly __typename: 'LnInvoice'; readonly createdAt: Scalars['Timestamp']['output']; + readonly externalId: Scalars['TxExternalId']['output']; readonly paymentHash: Scalars['PaymentHash']['output']; readonly paymentRequest: Scalars['LnPaymentRequest']['output']; readonly paymentSecret: Scalars['LnPaymentSecret']['output']; @@ -766,6 +771,7 @@ export type LnInvoicePaymentStatusPayload = { export type LnNoAmountInvoice = Invoice & { readonly __typename: 'LnNoAmountInvoice'; readonly createdAt: Scalars['Timestamp']['output']; + readonly externalId: Scalars['TxExternalId']['output']; readonly paymentHash: Scalars['PaymentHash']['output']; readonly paymentRequest: Scalars['LnPaymentRequest']['output']; readonly paymentSecret: Scalars['LnPaymentSecret']['output']; @@ -1868,6 +1874,7 @@ export type Transaction = { readonly __typename: 'Transaction'; readonly createdAt: Scalars['Timestamp']['output']; readonly direction: TxDirection; + readonly externalId?: Maybe; readonly id: Scalars['ID']['output']; /** From which protocol the payment has been initiated. */ readonly initiationVia: InitiationVia; @@ -7510,6 +7517,7 @@ export type ResolversTypes = { TransactionConnection: ResolverTypeWrapper; TransactionEdge: ResolverTypeWrapper; TxDirection: TxDirection; + TxExternalId: ResolverTypeWrapper; TxNotificationType: TxNotificationType; TxStatus: TxStatus; UpgradePayload: ResolverTypeWrapper; @@ -7726,6 +7734,7 @@ export type ResolversParentTypes = { Transaction: Omit & { initiationVia: ResolversParentTypes['InitiationVia'], settlementVia: ResolversParentTypes['SettlementVia'] }; TransactionConnection: TransactionConnection; TransactionEdge: TransactionEdge; + TxExternalId: Scalars['TxExternalId']['output']; UpgradePayload: UpgradePayload; UsdWallet: UsdWallet; User: User; @@ -8099,6 +8108,7 @@ export type IntraLedgerUpdateResolvers = { __resolveType: TypeResolveFn<'LnInvoice' | 'LnNoAmountInvoice', ParentType, ContextType>; createdAt?: Resolver; + externalId?: Resolver; paymentHash?: Resolver; paymentRequest?: Resolver; paymentSecret?: Resolver; @@ -8140,6 +8150,7 @@ export interface LeaderboardNameScalarConfig extends GraphQLScalarTypeConfig = { createdAt?: Resolver; + externalId?: Resolver; paymentHash?: Resolver; paymentRequest?: Resolver; paymentSecret?: Resolver; @@ -8171,6 +8182,7 @@ export type LnInvoicePaymentStatusPayloadResolvers = { createdAt?: Resolver; + externalId?: Resolver; paymentHash?: Resolver; paymentRequest?: Resolver; paymentSecret?: Resolver; @@ -8633,6 +8645,7 @@ export interface TotpSecretScalarConfig extends GraphQLScalarTypeConfig = { createdAt?: Resolver; direction?: Resolver; + externalId?: Resolver, ParentType, ContextType>; id?: Resolver; initiationVia?: Resolver; memo?: Resolver, ParentType, ContextType>; @@ -8660,6 +8673,10 @@ export type TransactionEdgeResolvers; }; +export interface TxExternalIdScalarConfig extends GraphQLScalarTypeConfig { + name: 'TxExternalId'; +} + export type UpgradePayloadResolvers = { authToken?: Resolver, ParentType, ContextType>; errors?: Resolver, ParentType, ContextType>; @@ -8946,6 +8963,7 @@ export type Resolvers = { Transaction?: TransactionResolvers; TransactionConnection?: TransactionConnectionResolvers; TransactionEdge?: TransactionEdgeResolvers; + TxExternalId?: GraphQLScalarType; UpgradePayload?: UpgradePayloadResolvers; UsdWallet?: UsdWalletResolvers; User?: UserResolvers; diff --git a/codegen.yml b/codegen.yml index b419a42a85..9061597b00 100644 --- a/codegen.yml +++ b/codegen.yml @@ -66,3 +66,4 @@ generates: EndpointUrl: "string" NotificationCategory: "string" DateTime: "string" + TxExternalId: "string"