Skip to content

Commit

Permalink
chore(core): update schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
vindard committed Feb 14, 2024
1 parent cffc397 commit 8df0ed5
Showing 1 changed file with 39 additions and 2 deletions.
41 changes: 39 additions & 2 deletions core/api/dev/apollo-federation/supergraph.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -1028,13 +1028,47 @@ type MapMarker
@join__type(graph: PUBLIC)
{
mapInfo: MapInfo!
username: Username
username: Username!
}

"""Text field in a lightning payment transaction"""
scalar Memo
@join__type(graph: PUBLIC)

type Merchant
@join__type(graph: PUBLIC)
{
"""
GPS coordinates for the merchant that can be used to place the related business on a map
"""
coordinates: Coordinates!
createdAt: Timestamp!
id: ID!
title: String!

"""The username of the merchant"""
username: Username!

"""Whether the merchant has been validated"""
validated: Boolean!
}

input MerchantMapSuggestInput
@join__type(graph: PUBLIC)
{
latitude: Float!
longitude: Float!
title: String!
username: Username!
}

type MerchantPayload
@join__type(graph: PUBLIC)
{
errors: [Error!]!
merchant: Merchant
}

"""(Positive) amount of minutes"""
scalar Minutes
@join__type(graph: PUBLIC)
Expand Down Expand Up @@ -1168,6 +1202,7 @@ type Mutation

"""Sends a payment to a lightning address."""
lnurlPaymentSend(input: LnurlPaymentSendInput!): PaymentSendPayload! @join__field(graph: PUBLIC)
merchantMapSuggest(input: MerchantMapSuggestInput!): MerchantPayload! @join__field(graph: PUBLIC)
onChainAddressCreate(input: OnChainAddressCreateInput!): OnChainAddressPayload! @join__field(graph: PUBLIC)
onChainAddressCurrent(input: OnChainAddressCurrentInput!): OnChainAddressPayload! @join__field(graph: PUBLIC)
onChainPaymentSend(input: OnChainPaymentSendInput!): PaymentSendPayload! @join__field(graph: PUBLIC)
Expand Down Expand Up @@ -1507,7 +1542,7 @@ type Query
{
accountDefaultWallet(username: Username!, walletCurrency: WalletCurrency): PublicWallet! @join__field(graph: PUBLIC)
btcPriceList(range: PriceGraphRange!): [PricePoint] @join__field(graph: PUBLIC)
businessMapMarkers: [MapMarker] @join__field(graph: PUBLIC)
businessMapMarkers: [MapMarker!]! @join__field(graph: PUBLIC)
currencyList: [Currency!]! @join__field(graph: PUBLIC)
globals: Globals @join__field(graph: PUBLIC)
lnInvoicePaymentStatus(input: LnInvoicePaymentStatusInput!): LnInvoicePaymentStatusPayload! @join__field(graph: PUBLIC)
Expand Down Expand Up @@ -2023,6 +2058,8 @@ enum UserNotificationCategory
{
CIRCLES @join__enumValue(graph: NOTIFICATIONS)
PAYMENTS @join__enumValue(graph: NOTIFICATIONS)
BALANCE @join__enumValue(graph: NOTIFICATIONS)
ADMIN_NOTIFICATION @join__enumValue(graph: NOTIFICATIONS)
}

enum UserNotificationChannel
Expand Down

0 comments on commit 8df0ed5

Please sign in to comment.