-
Notifications
You must be signed in to change notification settings - Fork 11
Updating SDKs with internal change of delete_login_factors mutation #58
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ | |
|
|
||
| @dataclass | ||
| class AccountToApiTokensConnection(Connection): | ||
|
|
||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove extra blank line after class declaration to match Black formatting Spotted by Graphite Reviewer (based on CI logs) |
||
| requester: Requester | ||
|
|
||
| count: int | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ | |
|
|
||
| @dataclass | ||
| class AccountToChannelsConnection(Connection): | ||
|
|
||
| requester: Requester | ||
|
|
||
| count: int | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ | |
|
|
||
| @dataclass | ||
| class AccountToPaymentRequestsConnection(Connection): | ||
|
|
||
| requester: Requester | ||
|
|
||
| count: int | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,7 @@ | |
|
|
||
| @dataclass | ||
| class AccountToTransactionsConnection(Connection): | ||
|
|
||
| requester: Requester | ||
|
|
||
| count: int | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,6 +14,7 @@ | |
|
|
||
| @dataclass | ||
| class AccountToWalletsConnection(Connection): | ||
|
|
||
| requester: Requester | ||
|
|
||
| count: int | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,7 @@ | |
|
|
||
| @dataclass | ||
| class ChannelSnapshot(Entity): | ||
|
|
||
| requester: Requester | ||
|
|
||
| id: str | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ | |
|
|
||
| @dataclass | ||
| class ChannelToTransactionsConnection: | ||
|
|
||
| requester: Requester | ||
|
|
||
| count: int | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
|
|
||
| @dataclass | ||
| class ClaimUmaInvitationOutput: | ||
|
|
||
| requester: Requester | ||
|
|
||
| invitation_id: str | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
|
|
||
| @dataclass | ||
| class ClaimUmaInvitationWithIncentivesOutput: | ||
|
|
||
| requester: Requester | ||
|
|
||
| invitation_id: str | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,6 +9,7 @@ | |
|
|
||
| @dataclass | ||
| class Connection: | ||
|
|
||
| requester: Requester | ||
|
|
||
| count: int | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,6 +11,7 @@ | |
|
|
||
| @dataclass | ||
| class CreateApiTokenOutput: | ||
|
|
||
| requester: Requester | ||
|
|
||
| api_token: ApiToken | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
|
|
||
| @dataclass | ||
| class CreateInvitationWithIncentivesOutput: | ||
|
|
||
| requester: Requester | ||
|
|
||
| invitation_id: str | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
|
|
||
| @dataclass | ||
| class CreateInvoiceOutput: | ||
|
|
||
| requester: Requester | ||
|
|
||
| invoice_id: str | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
|
|
||
| @dataclass | ||
| class CreateNodeWalletAddressInput: | ||
|
|
||
| node_id: str | ||
|
|
||
| def to_json(self) -> Mapping[str, Any]: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,7 @@ | |
|
|
||
| @dataclass | ||
| class CreateNodeWalletAddressOutput: | ||
|
|
||
| requester: Requester | ||
|
|
||
| node_id: str | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
|
|
||
| @dataclass | ||
| class CreateTestModeInvoiceOutput: | ||
|
|
||
| requester: Requester | ||
|
|
||
| encoded_payment_request: str | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,6 +8,7 @@ | |
|
|
||
| @dataclass | ||
| class CreateUmaInvitationOutput: | ||
|
|
||
| requester: Requester | ||
|
|
||
| invitation_id: str | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,6 +6,7 @@ | |
|
|
||
| @dataclass | ||
| class CreateUmaInvoiceInput: | ||
|
|
||
| node_id: str | ||
| """The node from which to create the invoice.""" | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| # Copyright ©, 2022-present, Lightspark Group, Inc. - All Rights Reserved | ||
|
|
||
| from dataclasses import dataclass | ||
| from typing import Any, Mapping | ||
|
|
||
| from lightspark.utils.enums import parse_enum | ||
|
|
||
| from .CurrencyUnit import CurrencyUnit | ||
|
|
||
|
|
||
| @dataclass | ||
| class CurrencyAmountInput: | ||
|
|
||
|
Comment on lines
+12
to
+13
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove extra blank line between class declaration and first attribute to match Black formatting style Spotted by Graphite Reviewer (based on CI logs) |
||
| value: int | ||
|
|
||
| unit: CurrencyUnit | ||
|
|
||
| def to_json(self) -> Mapping[str, Any]: | ||
| return { | ||
| "currency_amount_input_value": self.value, | ||
| "currency_amount_input_unit": self.unit.value, | ||
| } | ||
|
|
||
|
|
||
| def from_json(obj: Mapping[str, Any]) -> CurrencyAmountInput: | ||
| return CurrencyAmountInput( | ||
| value=obj["currency_amount_input_value"], | ||
| unit=parse_enum(CurrencyUnit, obj["currency_amount_input_unit"]), | ||
| ) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There appears to be a stray comma after
transactions(in the GraphQL query. This syntax error should be fixed by removing the comma:Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.