Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(core): update schemas #3995

Merged
merged 1 commit into from
Feb 14, 2024
Merged
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
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
Loading