From 8df0ed506786819543ac82c22bc226de8d184f84 Mon Sep 17 00:00:00 2001 From: vindard <17693119+vindard@users.noreply.github.com> Date: Tue, 13 Feb 2024 21:49:55 -0400 Subject: [PATCH] chore(core): update schemas --- .../dev/apollo-federation/supergraph.graphql | 41 ++++++++++++++++++- 1 file changed, 39 insertions(+), 2 deletions(-) diff --git a/core/api/dev/apollo-federation/supergraph.graphql b/core/api/dev/apollo-federation/supergraph.graphql index 5a4f87225e..0560477573 100644 --- a/core/api/dev/apollo-federation/supergraph.graphql +++ b/core/api/dev/apollo-federation/supergraph.graphql @@ -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) @@ -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) @@ -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) @@ -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