Skip to content

Commit

Permalink
chore: update codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
dolcalmi committed Feb 12, 2024
1 parent 1d374db commit 7a1ed68
Show file tree
Hide file tree
Showing 3 changed files with 1,697 additions and 1,779 deletions.
42 changes: 40 additions & 2 deletions apps/dashboard/services/graphql/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,10 +679,21 @@ export type LnInvoicePaymentInput = {
readonly walletId: Scalars['WalletId']['input'];
};

export type LnInvoicePaymentStatus = {
readonly __typename: 'LnInvoicePaymentStatus';
readonly paymentHash?: Maybe<Scalars['PaymentHash']['output']>;
readonly paymentRequest?: Maybe<Scalars['LnPaymentRequest']['output']>;
readonly status?: Maybe<InvoicePaymentStatus>;
};

export type LnInvoicePaymentStatusByHashInput = {
readonly paymentHash: Scalars['PaymentHash']['input'];
};

export type LnInvoicePaymentStatusByRequestInput = {
readonly paymentRequest: Scalars['LnPaymentRequest']['input'];
};

export type LnInvoicePaymentStatusInput = {
readonly paymentRequest: Scalars['LnPaymentRequest']['input'];
};
Expand Down Expand Up @@ -1515,8 +1526,10 @@ export type Query = {
readonly businessMapMarkers: ReadonlyArray<MapMarker>;
readonly currencyList: ReadonlyArray<Currency>;
readonly globals?: Maybe<Globals>;
/** @deprecated Deprecated in favor of lnInvoicePaymentStatusByRequest */
readonly lnInvoicePaymentStatus: LnInvoicePaymentStatusPayload;
readonly lnInvoicePaymentStatusByHash: LnInvoicePaymentStatusPayload;
readonly lnInvoicePaymentStatusByHash: LnInvoicePaymentStatus;
readonly lnInvoicePaymentStatusByRequest: LnInvoicePaymentStatus;
readonly me?: Maybe<User>;
readonly mobileVersions?: Maybe<ReadonlyArray<Maybe<MobileVersions>>>;
readonly onChainTxFee: OnChainTxFee;
Expand Down Expand Up @@ -1551,6 +1564,11 @@ export type QueryLnInvoicePaymentStatusByHashArgs = {
};


export type QueryLnInvoicePaymentStatusByRequestArgs = {
input: LnInvoicePaymentStatusByRequestInput;
};


export type QueryOnChainTxFeeArgs = {
address: Scalars['OnChainAddress']['input'];
amount: Scalars['SatAmount']['input'];
Expand Down Expand Up @@ -1672,6 +1690,7 @@ export type Subscription = {
readonly __typename: 'Subscription';
readonly lnInvoicePaymentStatus: LnInvoicePaymentStatusPayload;
readonly lnInvoicePaymentStatusByHash: LnInvoicePaymentStatusPayload;
readonly lnInvoicePaymentStatusByRequest: LnInvoicePaymentStatusPayload;
readonly myUpdates: MyUpdatesPayload;
readonly price: PricePayload;
/** Returns the price of 1 satoshi */
Expand All @@ -1689,6 +1708,11 @@ export type SubscriptionLnInvoicePaymentStatusByHashArgs = {
};


export type SubscriptionLnInvoicePaymentStatusByRequestArgs = {
input: LnInvoicePaymentStatusByRequestInput;
};


export type SubscriptionPriceArgs = {
input: PriceInput;
};
Expand Down Expand Up @@ -3367,7 +3391,9 @@ export type ResolversTypes = {
LnInvoiceFeeProbeInput: LnInvoiceFeeProbeInput;
LnInvoicePayload: ResolverTypeWrapper<LnInvoicePayload>;
LnInvoicePaymentInput: LnInvoicePaymentInput;
LnInvoicePaymentStatus: ResolverTypeWrapper<LnInvoicePaymentStatus>;
LnInvoicePaymentStatusByHashInput: LnInvoicePaymentStatusByHashInput;
LnInvoicePaymentStatusByRequestInput: LnInvoicePaymentStatusByRequestInput;
LnInvoicePaymentStatusInput: LnInvoicePaymentStatusInput;
LnInvoicePaymentStatusPayload: ResolverTypeWrapper<LnInvoicePaymentStatusPayload>;
LnNoAmountInvoice: ResolverTypeWrapper<LnNoAmountInvoice>;
Expand Down Expand Up @@ -3583,7 +3609,9 @@ export type ResolversParentTypes = {
LnInvoiceFeeProbeInput: LnInvoiceFeeProbeInput;
LnInvoicePayload: LnInvoicePayload;
LnInvoicePaymentInput: LnInvoicePaymentInput;
LnInvoicePaymentStatus: LnInvoicePaymentStatus;
LnInvoicePaymentStatusByHashInput: LnInvoicePaymentStatusByHashInput;
LnInvoicePaymentStatusByRequestInput: LnInvoicePaymentStatusByRequestInput;
LnInvoicePaymentStatusInput: LnInvoicePaymentStatusInput;
LnInvoicePaymentStatusPayload: LnInvoicePaymentStatusPayload;
LnNoAmountInvoice: LnNoAmountInvoice;
Expand Down Expand Up @@ -4059,6 +4087,13 @@ export type LnInvoicePayloadResolvers<ContextType = any, ParentType extends Reso
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};

export type LnInvoicePaymentStatusResolvers<ContextType = any, ParentType extends ResolversParentTypes['LnInvoicePaymentStatus'] = ResolversParentTypes['LnInvoicePaymentStatus']> = {
paymentHash?: Resolver<Maybe<ResolversTypes['PaymentHash']>, ParentType, ContextType>;
paymentRequest?: Resolver<Maybe<ResolversTypes['LnPaymentRequest']>, ParentType, ContextType>;
status?: Resolver<Maybe<ResolversTypes['InvoicePaymentStatus']>, ParentType, ContextType>;
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};

export type LnInvoicePaymentStatusPayloadResolvers<ContextType = any, ParentType extends ResolversParentTypes['LnInvoicePaymentStatusPayload'] = ResolversParentTypes['LnInvoicePaymentStatusPayload']> = {
errors?: Resolver<ReadonlyArray<ResolversTypes['Error']>, ParentType, ContextType>;
paymentHash?: Resolver<Maybe<ResolversTypes['PaymentHash']>, ParentType, ContextType>;
Expand Down Expand Up @@ -4363,7 +4398,8 @@ export type QueryResolvers<ContextType = any, ParentType extends ResolversParent
currencyList?: Resolver<ReadonlyArray<ResolversTypes['Currency']>, ParentType, ContextType>;
globals?: Resolver<Maybe<ResolversTypes['Globals']>, ParentType, ContextType>;
lnInvoicePaymentStatus?: Resolver<ResolversTypes['LnInvoicePaymentStatusPayload'], ParentType, ContextType, RequireFields<QueryLnInvoicePaymentStatusArgs, 'input'>>;
lnInvoicePaymentStatusByHash?: Resolver<ResolversTypes['LnInvoicePaymentStatusPayload'], ParentType, ContextType, RequireFields<QueryLnInvoicePaymentStatusByHashArgs, 'input'>>;
lnInvoicePaymentStatusByHash?: Resolver<ResolversTypes['LnInvoicePaymentStatus'], ParentType, ContextType, RequireFields<QueryLnInvoicePaymentStatusByHashArgs, 'input'>>;
lnInvoicePaymentStatusByRequest?: Resolver<ResolversTypes['LnInvoicePaymentStatus'], ParentType, ContextType, RequireFields<QueryLnInvoicePaymentStatusByRequestArgs, 'input'>>;
me?: Resolver<Maybe<ResolversTypes['User']>, ParentType, ContextType>;
mobileVersions?: Resolver<Maybe<ReadonlyArray<Maybe<ResolversTypes['MobileVersions']>>>, ParentType, ContextType>;
onChainTxFee?: Resolver<ResolversTypes['OnChainTxFee'], ParentType, ContextType, RequireFields<QueryOnChainTxFeeArgs, 'address' | 'amount' | 'speed' | 'walletId'>>;
Expand Down Expand Up @@ -4462,6 +4498,7 @@ export interface SignedDisplayMajorAmountScalarConfig extends GraphQLScalarTypeC
export type SubscriptionResolvers<ContextType = any, ParentType extends ResolversParentTypes['Subscription'] = ResolversParentTypes['Subscription']> = {
lnInvoicePaymentStatus?: SubscriptionResolver<ResolversTypes['LnInvoicePaymentStatusPayload'], "lnInvoicePaymentStatus", ParentType, ContextType, RequireFields<SubscriptionLnInvoicePaymentStatusArgs, 'input'>>;
lnInvoicePaymentStatusByHash?: SubscriptionResolver<ResolversTypes['LnInvoicePaymentStatusPayload'], "lnInvoicePaymentStatusByHash", ParentType, ContextType, RequireFields<SubscriptionLnInvoicePaymentStatusByHashArgs, 'input'>>;
lnInvoicePaymentStatusByRequest?: SubscriptionResolver<ResolversTypes['LnInvoicePaymentStatusPayload'], "lnInvoicePaymentStatusByRequest", ParentType, ContextType, RequireFields<SubscriptionLnInvoicePaymentStatusByRequestArgs, 'input'>>;
myUpdates?: SubscriptionResolver<ResolversTypes['MyUpdatesPayload'], "myUpdates", ParentType, ContextType>;
price?: SubscriptionResolver<ResolversTypes['PricePayload'], "price", ParentType, ContextType, RequireFields<SubscriptionPriceArgs, 'input'>>;
realtimePrice?: SubscriptionResolver<ResolversTypes['RealtimePricePayload'], "realtimePrice", ParentType, ContextType, RequireFields<SubscriptionRealtimePriceArgs, 'input'>>;
Expand Down Expand Up @@ -4732,6 +4769,7 @@ export type Resolvers<ContextType = any> = {
Language?: GraphQLScalarType;
LnInvoice?: LnInvoiceResolvers<ContextType>;
LnInvoicePayload?: LnInvoicePayloadResolvers<ContextType>;
LnInvoicePaymentStatus?: LnInvoicePaymentStatusResolvers<ContextType>;
LnInvoicePaymentStatusPayload?: LnInvoicePaymentStatusPayloadResolvers<ContextType>;
LnNoAmountInvoice?: LnNoAmountInvoiceResolvers<ContextType>;
LnNoAmountInvoicePayload?: LnNoAmountInvoicePayloadResolvers<ContextType>;
Expand Down
7 changes: 6 additions & 1 deletion apps/pay/codegen.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
overwrite: true
schema: "https://raw.githubusercontent.com/GaloyMoney/galoy/main/src/graphql/public/schema.graphql"
schema: "https://raw.githubusercontent.com/GaloyMoney/galoy/main/core/api/src/graphql/public/schema.graphql"
documents:
- "components/**/*.ts"
- "components/**/*.tsx"
Expand Down Expand Up @@ -64,3 +64,8 @@ generates:
join__FieldSet: "string"
link__Import: "string"
_FieldSet: "string"
LnPubkey: "string"
EndpointId: "string"
EndpointUrl: "string"
Object: "string"
NotificationCategory: "string"
Loading

0 comments on commit 7a1ed68

Please sign in to comment.