Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 54 additions & 1 deletion apps/consent/app/graphql/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1580,6 +1580,11 @@ export type Query = {
readonly payoutSpeeds: ReadonlyArray<PayoutSpeeds>;
/** Returns 1 Sat and 1 Usd Cent price for the given currency in minor unit */
readonly realtimePrice: RealtimePrice;
/**
* Get a StableSats quote for buying or selling USD.
* Returns a quote with pricing and expiration information.
*/
readonly stableSatsGetQuote: StableSatsQuotePayload;
/** @deprecated will be migrated to AccountDefaultWalletId */
readonly userDefaultWalletId: Scalars['WalletId']['output'];
readonly usernameAvailable?: Maybe<Scalars['Boolean']['output']>;
Expand Down Expand Up @@ -1647,6 +1652,11 @@ export type QueryRealtimePriceArgs = {
};


export type QueryStableSatsGetQuoteArgs = {
input: StableSatsGetQuoteInput;
};


export type QueryUserDefaultWalletIdArgs = {
username: Scalars['Username']['input'];
};
Expand Down Expand Up @@ -1676,6 +1686,14 @@ export type QuizClaimPayload = {
readonly quizzes: ReadonlyArray<Quiz>;
};

export const QuoteType = {
BuyUsdWithCents: 'BUY_USD_WITH_CENTS',
BuyUsdWithSats: 'BUY_USD_WITH_SATS',
SellUsdForCents: 'SELL_USD_FOR_CENTS',
SellUsdForSats: 'SELL_USD_FOR_SATS'
} as const;

export type QuoteType = typeof QuoteType[keyof typeof QuoteType];
export type RealtimePrice = {
readonly __typename: 'RealtimePrice';
readonly btcSatPrice: PriceOfOneSatInMinorUnit;
Expand Down Expand Up @@ -1735,6 +1753,41 @@ export type SettlementViaOnChain = {
readonly vout?: Maybe<Scalars['Int']['output']>;
};

export type StableSatsGetQuoteInput = {
/** Amount in cents (for cent-based quotes) */
readonly centAmount?: InputMaybe<Scalars['CentAmount']['input']>;
/** Type of quote to request */
readonly quoteType: QuoteType;
/** Amount in satoshis (for sat-based quotes) */
readonly satAmount?: InputMaybe<Scalars['SatAmount']['input']>;
/** Wallet id of the requesting wallet */
readonly walletId: Scalars['WalletId']['input'];
};

export type StableSatsQuote = {
readonly __typename: 'StableSatsQuote';
/** Amount to buy in cents (for buy USD quotes) */
readonly amountToBuyInCents?: Maybe<Scalars['Int']['output']>;
/** Amount to buy in satoshis (for sell USD quotes) */
readonly amountToBuyInSats?: Maybe<Scalars['Int']['output']>;
/** Amount to sell in cents (for sell USD quotes) */
readonly amountToSellInCents?: Maybe<Scalars['Int']['output']>;
/** Amount to sell in satoshis (for buy USD quotes) */
readonly amountToSellInSats?: Maybe<Scalars['Int']['output']>;
/** Whether the quote has been executed */
readonly executed: Scalars['Boolean']['output'];
/** Quote expiration timestamp */
readonly expiresAt: Scalars['Int']['output'];
/** Unique identifier for the quote */
readonly quoteId: Scalars['String']['output'];
};

export type StableSatsQuotePayload = {
readonly __typename: 'StableSatsQuotePayload';
readonly errors: ReadonlyArray<Error>;
readonly quote?: Maybe<StableSatsQuote>;
};

export type Subscription = {
readonly __typename: 'Subscription';
/** @deprecated Deprecated in favor of lnInvoicePaymentStatusByPaymentRequest */
Expand Down Expand Up @@ -2346,4 +2399,4 @@ export function useGetUserIdSuspenseQuery(baseOptions?: Apollo.SkipToken | Apoll
export type GetUserIdQueryHookResult = ReturnType<typeof useGetUserIdQuery>;
export type GetUserIdLazyQueryHookResult = ReturnType<typeof useGetUserIdLazyQuery>;
export type GetUserIdSuspenseQueryHookResult = ReturnType<typeof useGetUserIdSuspenseQuery>;
export type GetUserIdQueryResult = Apollo.QueryResult<GetUserIdQuery, GetUserIdQueryVariables>;
export type GetUserIdQueryResult = Apollo.QueryResult<GetUserIdQuery, GetUserIdQueryVariables>;
80 changes: 80 additions & 0 deletions apps/dashboard/services/graphql/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1705,6 +1705,11 @@ export type Query = {
readonly payoutSpeeds: ReadonlyArray<PayoutSpeeds>;
/** Returns 1 Sat and 1 Usd Cent price for the given currency in minor unit */
readonly realtimePrice: RealtimePrice;
/**
* Get a StableSats quote for buying or selling USD.
* Returns a quote with pricing and expiration information.
*/
readonly stableSatsGetQuote: StableSatsQuotePayload;
/** @deprecated will be migrated to AccountDefaultWalletId */
readonly userDefaultWalletId: Scalars['WalletId']['output'];
readonly usernameAvailable?: Maybe<Scalars['Boolean']['output']>;
Expand Down Expand Up @@ -1772,6 +1777,11 @@ export type QueryRealtimePriceArgs = {
};


export type QueryStableSatsGetQuoteArgs = {
input: StableSatsGetQuoteInput;
};


export type QueryUserDefaultWalletIdArgs = {
username: Scalars['Username']['input'];
};
Expand Down Expand Up @@ -1801,6 +1811,14 @@ export type QuizClaimPayload = {
readonly quizzes: ReadonlyArray<Quiz>;
};

export const QuoteType = {
BuyUsdWithCents: 'BUY_USD_WITH_CENTS',
BuyUsdWithSats: 'BUY_USD_WITH_SATS',
SellUsdForCents: 'SELL_USD_FOR_CENTS',
SellUsdForSats: 'SELL_USD_FOR_SATS'
} as const;

export type QuoteType = typeof QuoteType[keyof typeof QuoteType];
export type RealtimePrice = {
readonly __typename: 'RealtimePrice';
readonly btcSatPrice: PriceOfOneSatInMinorUnit;
Expand Down Expand Up @@ -1860,6 +1878,41 @@ export type SettlementViaOnChain = {
readonly vout?: Maybe<Scalars['Int']['output']>;
};

export type StableSatsGetQuoteInput = {
/** Amount in cents (for cent-based quotes) */
readonly centAmount?: InputMaybe<Scalars['CentAmount']['input']>;
/** Type of quote to request */
readonly quoteType: QuoteType;
/** Amount in satoshis (for sat-based quotes) */
readonly satAmount?: InputMaybe<Scalars['SatAmount']['input']>;
/** Wallet id of the requesting wallet */
readonly walletId: Scalars['WalletId']['input'];
};

export type StableSatsQuote = {
readonly __typename: 'StableSatsQuote';
/** Amount to buy in cents (for buy USD quotes) */
readonly amountToBuyInCents?: Maybe<Scalars['Int']['output']>;
/** Amount to buy in satoshis (for sell USD quotes) */
readonly amountToBuyInSats?: Maybe<Scalars['Int']['output']>;
/** Amount to sell in cents (for sell USD quotes) */
readonly amountToSellInCents?: Maybe<Scalars['Int']['output']>;
/** Amount to sell in satoshis (for buy USD quotes) */
readonly amountToSellInSats?: Maybe<Scalars['Int']['output']>;
/** Whether the quote has been executed */
readonly executed: Scalars['Boolean']['output'];
/** Quote expiration timestamp */
readonly expiresAt: Scalars['Int']['output'];
/** Unique identifier for the quote */
readonly quoteId: Scalars['String']['output'];
};

export type StableSatsQuotePayload = {
readonly __typename: 'StableSatsQuotePayload';
readonly errors: ReadonlyArray<Error>;
readonly quote?: Maybe<StableSatsQuote>;
};

export type StatefulNotification = {
readonly __typename: 'StatefulNotification';
readonly acknowledgedAt?: Maybe<Scalars['Timestamp']['output']>;
Expand Down Expand Up @@ -3736,6 +3789,7 @@ export type ResolversTypes = {
Quiz: ResolverTypeWrapper<Quiz>;
QuizClaimInput: QuizClaimInput;
QuizClaimPayload: ResolverTypeWrapper<Omit<QuizClaimPayload, 'errors'> & { errors: ReadonlyArray<ResolversTypes['Error']> }>;
QuoteType: QuoteType;
RealtimePrice: ResolverTypeWrapper<RealtimePrice>;
RealtimePriceInput: RealtimePriceInput;
RealtimePricePayload: ResolverTypeWrapper<Omit<RealtimePricePayload, 'errors'> & { errors: ReadonlyArray<ResolversTypes['Error']> }>;
Expand All @@ -3750,6 +3804,9 @@ export type ResolversTypes = {
SettlementViaOnChain: ResolverTypeWrapper<SettlementViaOnChain>;
SignedAmount: ResolverTypeWrapper<Scalars['SignedAmount']['output']>;
SignedDisplayMajorAmount: ResolverTypeWrapper<Scalars['SignedDisplayMajorAmount']['output']>;
StableSatsGetQuoteInput: StableSatsGetQuoteInput;
StableSatsQuote: ResolverTypeWrapper<StableSatsQuote>;
StableSatsQuotePayload: ResolverTypeWrapper<Omit<StableSatsQuotePayload, 'errors'> & { errors: ReadonlyArray<ResolversTypes['Error']> }>;
StatefulNotification: ResolverTypeWrapper<Omit<StatefulNotification, 'action'> & { action?: Maybe<ResolversTypes['NotificationAction']> }>;
StatefulNotificationAcknowledgeInput: StatefulNotificationAcknowledgeInput;
StatefulNotificationAcknowledgePayload: ResolverTypeWrapper<Omit<StatefulNotificationAcknowledgePayload, 'notification'> & { notification: ResolversTypes['StatefulNotification'] }>;
Expand Down Expand Up @@ -3978,6 +4035,9 @@ export type ResolversParentTypes = {
SettlementViaOnChain: SettlementViaOnChain;
SignedAmount: Scalars['SignedAmount']['output'];
SignedDisplayMajorAmount: Scalars['SignedDisplayMajorAmount']['output'];
StableSatsGetQuoteInput: StableSatsGetQuoteInput;
StableSatsQuote: StableSatsQuote;
StableSatsQuotePayload: Omit<StableSatsQuotePayload, 'errors'> & { errors: ReadonlyArray<ResolversParentTypes['Error']> };
StatefulNotification: Omit<StatefulNotification, 'action'> & { action?: Maybe<ResolversParentTypes['NotificationAction']> };
StatefulNotificationAcknowledgeInput: StatefulNotificationAcknowledgeInput;
StatefulNotificationAcknowledgePayload: Omit<StatefulNotificationAcknowledgePayload, 'notification'> & { notification: ResolversParentTypes['StatefulNotification'] };
Expand Down Expand Up @@ -4823,6 +4883,7 @@ export type QueryResolvers<ContextType = any, ParentType extends ResolversParent
onChainUsdTxFeeAsBtcDenominated?: Resolver<ResolversTypes['OnChainUsdTxFee'], ParentType, ContextType, RequireFields<QueryOnChainUsdTxFeeAsBtcDenominatedArgs, 'address' | 'amount' | 'speed' | 'walletId'>>;
payoutSpeeds?: Resolver<ReadonlyArray<ResolversTypes['PayoutSpeeds']>, ParentType, ContextType>;
realtimePrice?: Resolver<ResolversTypes['RealtimePrice'], ParentType, ContextType, RequireFields<QueryRealtimePriceArgs, 'currency'>>;
stableSatsGetQuote?: Resolver<ResolversTypes['StableSatsQuotePayload'], ParentType, ContextType, RequireFields<QueryStableSatsGetQuoteArgs, 'input'>>;
userDefaultWalletId?: Resolver<ResolversTypes['WalletId'], ParentType, ContextType, RequireFields<QueryUserDefaultWalletIdArgs, 'username'>>;
usernameAvailable?: Resolver<Maybe<ResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<QueryUsernameAvailableArgs, 'username'>>;
};
Expand Down Expand Up @@ -4907,6 +4968,23 @@ export interface SignedDisplayMajorAmountScalarConfig extends GraphQLScalarTypeC
name: 'SignedDisplayMajorAmount';
}

export type StableSatsQuoteResolvers<ContextType = any, ParentType extends ResolversParentTypes['StableSatsQuote'] = ResolversParentTypes['StableSatsQuote']> = {
amountToBuyInCents?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
amountToBuyInSats?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
amountToSellInCents?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
amountToSellInSats?: Resolver<Maybe<ResolversTypes['Int']>, ParentType, ContextType>;
executed?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
expiresAt?: Resolver<ResolversTypes['Int'], ParentType, ContextType>;
quoteId?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};

export type StableSatsQuotePayloadResolvers<ContextType = any, ParentType extends ResolversParentTypes['StableSatsQuotePayload'] = ResolversParentTypes['StableSatsQuotePayload']> = {
errors?: Resolver<ReadonlyArray<ResolversTypes['Error']>, ParentType, ContextType>;
quote?: Resolver<Maybe<ResolversTypes['StableSatsQuote']>, ParentType, ContextType>;
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};

export type StatefulNotificationResolvers<ContextType = any, ParentType extends ResolversParentTypes['StatefulNotification'] = ResolversParentTypes['StatefulNotification']> = {
acknowledgedAt?: Resolver<Maybe<ResolversTypes['Timestamp']>, ParentType, ContextType>;
action?: Resolver<Maybe<ResolversTypes['NotificationAction']>, ParentType, ContextType>;
Expand Down Expand Up @@ -5296,6 +5374,8 @@ export type Resolvers<ContextType = any> = {
SettlementViaOnChain?: SettlementViaOnChainResolvers<ContextType>;
SignedAmount?: GraphQLScalarType;
SignedDisplayMajorAmount?: GraphQLScalarType;
StableSatsQuote?: StableSatsQuoteResolvers<ContextType>;
StableSatsQuotePayload?: StableSatsQuotePayloadResolvers<ContextType>;
StatefulNotification?: StatefulNotificationResolvers<ContextType>;
StatefulNotificationAcknowledgePayload?: StatefulNotificationAcknowledgePayloadResolvers<ContextType>;
StatefulNotificationConnection?: StatefulNotificationConnectionResolvers<ContextType>;
Expand Down
55 changes: 54 additions & 1 deletion apps/map/services/galoy/graphql/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1580,6 +1580,11 @@ export type Query = {
readonly payoutSpeeds: ReadonlyArray<PayoutSpeeds>;
/** Returns 1 Sat and 1 Usd Cent price for the given currency in minor unit */
readonly realtimePrice: RealtimePrice;
/**
* Get a StableSats quote for buying or selling USD.
* Returns a quote with pricing and expiration information.
*/
readonly stableSatsGetQuote: StableSatsQuotePayload;
/** @deprecated will be migrated to AccountDefaultWalletId */
readonly userDefaultWalletId: Scalars['WalletId']['output'];
readonly usernameAvailable?: Maybe<Scalars['Boolean']['output']>;
Expand Down Expand Up @@ -1647,6 +1652,11 @@ export type QueryRealtimePriceArgs = {
};


export type QueryStableSatsGetQuoteArgs = {
input: StableSatsGetQuoteInput;
};


export type QueryUserDefaultWalletIdArgs = {
username: Scalars['Username']['input'];
};
Expand Down Expand Up @@ -1676,6 +1686,14 @@ export type QuizClaimPayload = {
readonly quizzes: ReadonlyArray<Quiz>;
};

export const QuoteType = {
BuyUsdWithCents: 'BUY_USD_WITH_CENTS',
BuyUsdWithSats: 'BUY_USD_WITH_SATS',
SellUsdForCents: 'SELL_USD_FOR_CENTS',
SellUsdForSats: 'SELL_USD_FOR_SATS'
} as const;

export type QuoteType = typeof QuoteType[keyof typeof QuoteType];
export type RealtimePrice = {
readonly __typename: 'RealtimePrice';
readonly btcSatPrice: PriceOfOneSatInMinorUnit;
Expand Down Expand Up @@ -1735,6 +1753,41 @@ export type SettlementViaOnChain = {
readonly vout?: Maybe<Scalars['Int']['output']>;
};

export type StableSatsGetQuoteInput = {
/** Amount in cents (for cent-based quotes) */
readonly centAmount?: InputMaybe<Scalars['CentAmount']['input']>;
/** Type of quote to request */
readonly quoteType: QuoteType;
/** Amount in satoshis (for sat-based quotes) */
readonly satAmount?: InputMaybe<Scalars['SatAmount']['input']>;
/** Wallet id of the requesting wallet */
readonly walletId: Scalars['WalletId']['input'];
};

export type StableSatsQuote = {
readonly __typename: 'StableSatsQuote';
/** Amount to buy in cents (for buy USD quotes) */
readonly amountToBuyInCents?: Maybe<Scalars['Int']['output']>;
/** Amount to buy in satoshis (for sell USD quotes) */
readonly amountToBuyInSats?: Maybe<Scalars['Int']['output']>;
/** Amount to sell in cents (for sell USD quotes) */
readonly amountToSellInCents?: Maybe<Scalars['Int']['output']>;
/** Amount to sell in satoshis (for buy USD quotes) */
readonly amountToSellInSats?: Maybe<Scalars['Int']['output']>;
/** Whether the quote has been executed */
readonly executed: Scalars['Boolean']['output'];
/** Quote expiration timestamp */
readonly expiresAt: Scalars['Int']['output'];
/** Unique identifier for the quote */
readonly quoteId: Scalars['String']['output'];
};

export type StableSatsQuotePayload = {
readonly __typename: 'StableSatsQuotePayload';
readonly errors: ReadonlyArray<Error>;
readonly quote?: Maybe<StableSatsQuote>;
};

export type Subscription = {
readonly __typename: 'Subscription';
/** @deprecated Deprecated in favor of lnInvoicePaymentStatusByPaymentRequest */
Expand Down Expand Up @@ -2360,4 +2413,4 @@ export function useBusinessMapMarkersSuspenseQuery(baseOptions?: Apollo.SkipToke
export type BusinessMapMarkersQueryHookResult = ReturnType<typeof useBusinessMapMarkersQuery>;
export type BusinessMapMarkersLazyQueryHookResult = ReturnType<typeof useBusinessMapMarkersLazyQuery>;
export type BusinessMapMarkersSuspenseQueryHookResult = ReturnType<typeof useBusinessMapMarkersSuspenseQuery>;
export type BusinessMapMarkersQueryResult = Apollo.QueryResult<BusinessMapMarkersQuery, BusinessMapMarkersQueryVariables>;
export type BusinessMapMarkersQueryResult = Apollo.QueryResult<BusinessMapMarkersQuery, BusinessMapMarkersQueryVariables>;
Loading
Loading