Skip to content

Commit 8bcd717

Browse files
author
Joel Weinberger
committed
Updating SDKs with internal change of delete_login_factors mutation
1 parent ca226e4 commit 8bcd717

File tree

104 files changed

+221
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+221
-10
lines changed

lightspark/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
from lightspark.objects.CreateUmaInvitationOutput import CreateUmaInvitationOutput
6666
from lightspark.objects.CreateUmaInvoiceInput import CreateUmaInvoiceInput
6767
from lightspark.objects.CurrencyAmount import CurrencyAmount
68+
from lightspark.objects.CurrencyAmountInput import CurrencyAmountInput
6869
from lightspark.objects.CurrencyUnit import CurrencyUnit
6970
from lightspark.objects.DailyLiquidityForecast import DailyLiquidityForecast
7071
from lightspark.objects.DeclineToSignMessagesInput import DeclineToSignMessagesInput
@@ -175,6 +176,7 @@
175176
from lightspark.objects.PaymentRequest import PaymentRequest
176177
from lightspark.objects.PaymentRequestData import PaymentRequestData
177178
from lightspark.objects.PaymentRequestStatus import PaymentRequestStatus
179+
from lightspark.objects.PayTestModeInvoiceInput import PayTestModeInvoiceInput
178180
from lightspark.objects.PayUmaInvoiceInput import PayUmaInvoiceInput
179181
from lightspark.objects.Permission import Permission
180182
from lightspark.objects.PostTransactionData import PostTransactionData

lightspark/objects/Account.py

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
from .BlockchainBalance import from_json as BlockchainBalance_from_json
3838
from .CurrencyAmount import CurrencyAmount
3939
from .CurrencyAmount import from_json as CurrencyAmount_from_json
40+
from .CurrencyAmountInput import CurrencyAmountInput
4041
from .Entity import Entity
4142
from .LightsparkNodeOwner import LightsparkNodeOwner
4243
from .TransactionFailures import TransactionFailures
@@ -745,13 +746,15 @@ def get_transactions(
745746
lightning_node_id: Optional[str] = None,
746747
statuses: Optional[List[TransactionStatus]] = None,
747748
exclude_failures: Optional[TransactionFailures] = None,
749+
max_amount: Optional[CurrencyAmountInput] = None,
750+
min_amount: Optional[CurrencyAmountInput] = None,
748751
) -> AccountToTransactionsConnection:
749752
json = self.requester.execute_graphql(
750753
"""
751-
query FetchAccountToTransactionsConnection($entity_id: ID!, $first: Int, $after: String, $types: [TransactionType!], $after_date: DateTime, $before_date: DateTime, $bitcoin_network: BitcoinNetwork, $lightning_node_id: ID, $statuses: [TransactionStatus!], $exclude_failures: TransactionFailures) {
754+
query FetchAccountToTransactionsConnection($entity_id: ID!, $first: Int, $after: String, $types: [TransactionType!], $after_date: DateTime, $before_date: DateTime, $bitcoin_network: BitcoinNetwork, $lightning_node_id: ID, $statuses: [TransactionStatus!], $exclude_failures: TransactionFailures, $max_amount: CurrencyAmountInput, $min_amount: CurrencyAmountInput) {
752755
entity(id: $entity_id) {
753756
... on Account {
754-
transactions(, first: $first, after: $after, types: $types, after_date: $after_date, before_date: $before_date, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, statuses: $statuses, exclude_failures: $exclude_failures) {
757+
transactions(, first: $first, after: $after, types: $types, after_date: $after_date, before_date: $before_date, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, statuses: $statuses, exclude_failures: $exclude_failures, max_amount: $max_amount, min_amount: $min_amount) {
755758
__typename
756759
account_to_transactions_connection_count: count
757760
account_to_transactions_connection_page_info: page_info {
@@ -1351,6 +1354,8 @@ def get_transactions(
13511354
"lightning_node_id": lightning_node_id,
13521355
"statuses": statuses,
13531356
"exclude_failures": exclude_failures,
1357+
"max_amount": max_amount,
1358+
"min_amount": min_amount,
13541359
},
13551360
)
13561361
connection = json["entity"]["transactions"]
@@ -1364,13 +1369,15 @@ def get_payment_requests(
13641369
before_date: Optional[datetime] = None,
13651370
bitcoin_network: Optional[BitcoinNetwork] = None,
13661371
lightning_node_id: Optional[str] = None,
1372+
max_amount: Optional[CurrencyAmountInput] = None,
1373+
min_amount: Optional[CurrencyAmountInput] = None,
13671374
) -> AccountToPaymentRequestsConnection:
13681375
json = self.requester.execute_graphql(
13691376
"""
1370-
query FetchAccountToPaymentRequestsConnection($entity_id: ID!, $first: Int, $after: String, $after_date: DateTime, $before_date: DateTime, $bitcoin_network: BitcoinNetwork, $lightning_node_id: ID) {
1377+
query FetchAccountToPaymentRequestsConnection($entity_id: ID!, $first: Int, $after: String, $after_date: DateTime, $before_date: DateTime, $bitcoin_network: BitcoinNetwork, $lightning_node_id: ID, $max_amount: CurrencyAmountInput, $min_amount: CurrencyAmountInput) {
13711378
entity(id: $entity_id) {
13721379
... on Account {
1373-
payment_requests(, first: $first, after: $after, after_date: $after_date, before_date: $before_date, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id) {
1380+
payment_requests(, first: $first, after: $after, after_date: $after_date, before_date: $before_date, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, max_amount: $max_amount, min_amount: $min_amount) {
13741381
__typename
13751382
account_to_payment_requests_connection_count: count
13761383
account_to_payment_requests_connection_page_info: page_info {
@@ -1704,6 +1711,8 @@ def get_payment_requests(
17041711
"before_date": before_date,
17051712
"bitcoin_network": bitcoin_network,
17061713
"lightning_node_id": lightning_node_id,
1714+
"max_amount": max_amount,
1715+
"min_amount": min_amount,
17071716
},
17081717
)
17091718
connection = json["entity"]["payment_requests"]
@@ -1719,13 +1728,15 @@ def get_withdrawal_requests(
17191728
idempotency_keys: Optional[List[str]] = None,
17201729
after_date: Optional[datetime] = None,
17211730
before_date: Optional[datetime] = None,
1731+
max_amount: Optional[CurrencyAmountInput] = None,
1732+
min_amount: Optional[CurrencyAmountInput] = None,
17221733
) -> AccountToWithdrawalRequestsConnection:
17231734
json = self.requester.execute_graphql(
17241735
"""
1725-
query FetchAccountToWithdrawalRequestsConnection($entity_id: ID!, $first: Int, $after: String, $bitcoin_networks: [BitcoinNetwork!], $statuses: [WithdrawalRequestStatus!], $node_ids: [ID!], $idempotency_keys: [String!], $after_date: DateTime, $before_date: DateTime) {
1736+
query FetchAccountToWithdrawalRequestsConnection($entity_id: ID!, $first: Int, $after: String, $bitcoin_networks: [BitcoinNetwork!], $statuses: [WithdrawalRequestStatus!], $node_ids: [ID!], $idempotency_keys: [String!], $after_date: DateTime, $before_date: DateTime, $max_amount: CurrencyAmountInput, $min_amount: CurrencyAmountInput) {
17261737
entity(id: $entity_id) {
17271738
... on Account {
1728-
withdrawal_requests(, first: $first, after: $after, bitcoin_networks: $bitcoin_networks, statuses: $statuses, node_ids: $node_ids, idempotency_keys: $idempotency_keys, after_date: $after_date, before_date: $before_date) {
1739+
withdrawal_requests(, first: $first, after: $after, bitcoin_networks: $bitcoin_networks, statuses: $statuses, node_ids: $node_ids, idempotency_keys: $idempotency_keys, after_date: $after_date, before_date: $before_date, max_amount: $max_amount, min_amount: $min_amount) {
17291740
__typename
17301741
account_to_withdrawal_requests_connection_count: count
17311742
account_to_withdrawal_requests_connection_page_info: page_info {
@@ -1805,6 +1816,8 @@ def get_withdrawal_requests(
18051816
"idempotency_keys": idempotency_keys,
18061817
"after_date": after_date,
18071818
"before_date": before_date,
1819+
"max_amount": max_amount,
1820+
"min_amount": min_amount,
18081821
},
18091822
)
18101823
connection = json["entity"]["withdrawal_requests"]

lightspark/objects/AccountToApiTokensConnection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
@dataclass
1616
class AccountToApiTokensConnection(Connection):
17+
1718
requester: Requester
1819

1920
count: int

lightspark/objects/AccountToChannelsConnection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
@dataclass
1616
class AccountToChannelsConnection(Connection):
17+
1718
requester: Requester
1819

1920
count: int

lightspark/objects/AccountToPaymentRequestsConnection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
@dataclass
1616
class AccountToPaymentRequestsConnection(Connection):
17+
1718
requester: Requester
1819

1920
count: int

lightspark/objects/AccountToTransactionsConnection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
@dataclass
1818
class AccountToTransactionsConnection(Connection):
19+
1920
requester: Requester
2021

2122
count: int

lightspark/objects/AccountToWalletsConnection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
@dataclass
1616
class AccountToWalletsConnection(Connection):
17+
1718
requester: Requester
1819

1920
count: int

lightspark/objects/ChannelSnapshot.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
@dataclass
1515
class ChannelSnapshot(Entity):
16+
1617
requester: Requester
1718

1819
id: str

lightspark/objects/ChannelToTransactionsConnection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
@dataclass
1313
class ChannelToTransactionsConnection:
14+
1415
requester: Requester
1516

1617
count: int

lightspark/objects/ClaimUmaInvitationInput.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
@dataclass
88
class ClaimUmaInvitationInput:
9+
910
invitation_code: str
1011
"""The unique code that identifies this invitation and was shared by the inviter."""
1112

0 commit comments

Comments
 (0)