Skip to content

Commit

Permalink
codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipndev committed Feb 8, 2024
1 parent c1f05f3 commit 3f1122e
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 9 deletions.
12 changes: 4 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ commands:
- add_ssh_keys:
fingerprints:
- "19:7e:f3:6c:be:a7:17:01:7d:09:ca:39:c3:98:86:90"
- run: brew update
- ruby/install-bundler
- restore_cache:
key: 1-gem-{{ checksum "ios/Gemfile.lock" }}
Expand Down Expand Up @@ -164,10 +163,7 @@ jobs:
- checkout:
path: ~/galoy-mobile
- run: |
brew tap wix/brew
brew install applesimutils
- install_yarn_deps
- nix-with-flake
node -v
- local_backend
- rn/ios_simulator_start:
device: iPhone SE (3rd generation)
Expand Down Expand Up @@ -367,6 +363,6 @@ workflows:
requires:
- e2e_build_android
- e2e_build_ios
- e2e_run_ios:
requires:
- e2e_build_ios
- e2e_run_ios
# requires:
# - e2e_build_ios
57 changes: 57 additions & 0 deletions app/graphql/generated.ts
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,32 @@ export type MapMarker = {
readonly username: Scalars['Username']['output'];
};

export type Merchant = {
readonly __typename: 'Merchant';
/** GPS coordinates for the merchant that can be used to place the related business on a map */
readonly coordinates: Coordinates;
readonly createdAt: Scalars['Timestamp']['output'];
readonly id: Scalars['ID']['output'];
readonly title: Scalars['String']['output'];
/** The username of the merchant */
readonly username: Scalars['Username']['output'];
/** Whether the merchant has been validated */
readonly validated: Scalars['Boolean']['output'];
};

export type MerchantMapSuggestInput = {
readonly latitude: Scalars['Float']['input'];
readonly longitude: Scalars['Float']['input'];
readonly title: Scalars['String']['input'];
readonly username: Scalars['Username']['input'];
};

export type MerchantPayload = {
readonly __typename: 'MerchantPayload';
readonly errors: ReadonlyArray<Error>;
readonly merchant?: Maybe<Merchant>;
};

export type MobileVersions = {
readonly __typename: 'MobileVersions';
readonly currentSupported: Scalars['Int']['output'];
Expand Down Expand Up @@ -961,6 +987,7 @@ export type Mutation = {
readonly lnUsdInvoiceFeeProbe: SatAmountPayload;
/** Sends a payment to a lightning address. */
readonly lnurlPaymentSend: PaymentSendPayload;
readonly merchantMapSuggest: MerchantPayload;
readonly onChainAddressCreate: OnChainAddressPayload;
readonly onChainAddressCurrent: OnChainAddressPayload;
readonly onChainPaymentSend: PaymentSendPayload;
Expand Down Expand Up @@ -1146,6 +1173,11 @@ export type MutationLnurlPaymentSendArgs = {
};


export type MutationMerchantMapSuggestArgs = {
input: MerchantMapSuggestInput;
};


export type MutationOnChainAddressCreateArgs = {
input: OnChainAddressCreateInput;
};
Expand Down Expand Up @@ -7219,6 +7251,9 @@ export type ResolversTypes = {
MapInfo: ResolverTypeWrapper<MapInfo>;
MapMarker: ResolverTypeWrapper<MapMarker>;
Memo: ResolverTypeWrapper<Scalars['Memo']['output']>;
Merchant: ResolverTypeWrapper<Merchant>;
MerchantMapSuggestInput: MerchantMapSuggestInput;
MerchantPayload: ResolverTypeWrapper<MerchantPayload>;
Minutes: ResolverTypeWrapper<Scalars['Minutes']['output']>;
MobileVersions: ResolverTypeWrapper<MobileVersions>;
Mutation: ResolverTypeWrapper<{}>;
Expand Down Expand Up @@ -7433,6 +7468,9 @@ export type ResolversParentTypes = {
MapInfo: MapInfo;
MapMarker: MapMarker;
Memo: Scalars['Memo']['output'];
Merchant: Merchant;
MerchantMapSuggestInput: MerchantMapSuggestInput;
MerchantPayload: MerchantPayload;
Minutes: Scalars['Minutes']['output'];
MobileVersions: MobileVersions;
Mutation: {};
Expand Down Expand Up @@ -7968,6 +8006,22 @@ export interface MemoScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes
name: 'Memo';
}

export type MerchantResolvers<ContextType = any, ParentType extends ResolversParentTypes['Merchant'] = ResolversParentTypes['Merchant']> = {
coordinates?: Resolver<ResolversTypes['Coordinates'], ParentType, ContextType>;
createdAt?: Resolver<ResolversTypes['Timestamp'], ParentType, ContextType>;
id?: Resolver<ResolversTypes['ID'], ParentType, ContextType>;
title?: Resolver<ResolversTypes['String'], ParentType, ContextType>;
username?: Resolver<ResolversTypes['Username'], ParentType, ContextType>;
validated?: Resolver<ResolversTypes['Boolean'], ParentType, ContextType>;
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};

export type MerchantPayloadResolvers<ContextType = any, ParentType extends ResolversParentTypes['MerchantPayload'] = ResolversParentTypes['MerchantPayload']> = {
errors?: Resolver<ReadonlyArray<ResolversTypes['Error']>, ParentType, ContextType>;
merchant?: Resolver<Maybe<ResolversTypes['Merchant']>, ParentType, ContextType>;
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
};

export interface MinutesScalarConfig extends GraphQLScalarTypeConfig<ResolversTypes['Minutes'], any> {
name: 'Minutes';
}
Expand Down Expand Up @@ -8013,6 +8067,7 @@ export type MutationResolvers<ContextType = any, ParentType extends ResolversPar
lnUsdInvoiceCreateOnBehalfOfRecipient?: Resolver<ResolversTypes['LnInvoicePayload'], ParentType, ContextType, RequireFields<MutationLnUsdInvoiceCreateOnBehalfOfRecipientArgs, 'input'>>;
lnUsdInvoiceFeeProbe?: Resolver<ResolversTypes['SatAmountPayload'], ParentType, ContextType, RequireFields<MutationLnUsdInvoiceFeeProbeArgs, 'input'>>;
lnurlPaymentSend?: Resolver<ResolversTypes['PaymentSendPayload'], ParentType, ContextType, RequireFields<MutationLnurlPaymentSendArgs, 'input'>>;
merchantMapSuggest?: Resolver<ResolversTypes['MerchantPayload'], ParentType, ContextType, RequireFields<MutationMerchantMapSuggestArgs, 'input'>>;
onChainAddressCreate?: Resolver<ResolversTypes['OnChainAddressPayload'], ParentType, ContextType, RequireFields<MutationOnChainAddressCreateArgs, 'input'>>;
onChainAddressCurrent?: Resolver<ResolversTypes['OnChainAddressPayload'], ParentType, ContextType, RequireFields<MutationOnChainAddressCurrentArgs, 'input'>>;
onChainPaymentSend?: Resolver<ResolversTypes['PaymentSendPayload'], ParentType, ContextType, RequireFields<MutationOnChainPaymentSendArgs, 'input'>>;
Expand Down Expand Up @@ -8598,6 +8653,8 @@ export type Resolvers<ContextType = any> = {
MapInfo?: MapInfoResolvers<ContextType>;
MapMarker?: MapMarkerResolvers<ContextType>;
Memo?: GraphQLScalarType;
Merchant?: MerchantResolvers<ContextType>;
MerchantPayload?: MerchantPayloadResolvers<ContextType>;
Minutes?: GraphQLScalarType;
MobileVersions?: MobileVersionsResolvers<ContextType>;
Mutation?: MutationResolvers<ContextType>;
Expand Down
2 changes: 1 addition & 1 deletion ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
AppCheckCore: 4687c03428947d5b26a6bf9bb5566b39f5473bf1
boost: 64032b9e9b938fda23325e68a3771f0fabf414dc
boost: 57d2868c099736d80fcd648bf211b4431e51a558
BVLinearGradient: 880f91a7854faff2df62518f0281afb1c60d49a3
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
FBLazyVector: 5fbbff1d7734827299274638deb8ba3024f6c597
Expand Down

0 comments on commit 3f1122e

Please sign in to comment.