Skip to content

Commit 1cfea14

Browse files
authored
fix(auth): remove deprecated slot billing functionality (#187)
Removed slot billing command and related GraphQL mutation fields as they are no longer supported. This simplifies the auth logic.
1 parent e694227 commit 1cfea14

File tree

4 files changed

+0
-35
lines changed

4 files changed

+0
-35
lines changed

cli/src/command/auth/billing.rs

-25
This file was deleted.

cli/src/command/auth/email.rs

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ impl EmailArgs {
1818

1919
let request_body = UpdateMe::build_query(Variables {
2020
email: Some(self.email.clone()),
21-
slot_billing: None,
2221
});
2322
let res: ResponseData = client.query(&request_body).await?;
2423
print!("{:?}", res);

cli/src/command/auth/mod.rs

-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
use self::{email::EmailArgs, info::InfoArgs, login::LoginArgs};
2-
use crate::command::auth::billing::BillingArgs;
32
use crate::command::auth::fund::FundArgs;
43
use crate::command::auth::transfer::TransferArgs;
54
use anyhow::Result;
65
use clap::Subcommand;
76

8-
mod billing;
97
mod email;
108
mod fund;
119
mod info;
@@ -24,9 +22,6 @@ pub enum Auth {
2422
#[command(about = "Set the email address for the authenticated user.")]
2523
SetEmail(EmailArgs),
2624

27-
#[command(about = "Manage slot billing for the authenticated user.")]
28-
EnableSlotBilling(BillingArgs),
29-
3025
#[command(about = "Fund the authenticated user's account.")]
3126
Fund(FundArgs),
3227

@@ -45,7 +40,6 @@ impl Auth {
4540
Auth::Info(args) => args.run().await,
4641
Auth::CreateSession(args) => args.run().await,
4742
Auth::SetEmail(args) => args.run().await,
48-
Auth::EnableSlotBilling(args) => args.run().await,
4943
Auth::Fund(args) => args.run().await,
5044
Auth::Transfer(args) => args.run().await,
5145
}
-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
mutation UpdateMe(
22
$email: String
3-
$slotBilling: Boolean
43
) {
54
updateMe(data: {
6-
slotBilling: $slotBilling
75
email: $email
86
}) {
97
username
10-
slotBilling
118
email
129
}
1310
}

0 commit comments

Comments
 (0)