mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 13:35:42 +09:00
chore(repo): prune dead code and duplicate abstractions (#3413)
This commit is contained in:
1 parent
c17091768c
commit
c9fdf8fead
2937 files changed
+42233
-176793
No files matched your search
@@ -71,26 +71,17 @@ import {
|
||||
type WebAuthnCredentialRow,
|
||||
} from '@app/api/database/types/AuthTypes';
|
||||
import {
|
||||
BILLING_ACTION_INTENT_COLUMNS,
|
||||
BILLING_CHARGE_BY_CUSTOMER_COLUMNS,
|
||||
BILLING_CHARGE_COLUMNS,
|
||||
BILLING_CHECKOUT_SESSION_BY_CUSTOMER_COLUMNS,
|
||||
BILLING_CHECKOUT_SESSION_COLUMNS,
|
||||
BILLING_CUSTOMER_BY_USER_ID_COLUMNS,
|
||||
BILLING_CUSTOMER_COLUMNS,
|
||||
BILLING_DISPUTE_BY_CHARGE_COLUMNS,
|
||||
BILLING_DISPUTE_COLUMNS,
|
||||
BILLING_INVOICE_BY_CUSTOMER_COLUMNS,
|
||||
BILLING_INVOICE_BY_SUBSCRIPTION_COLUMNS,
|
||||
BILLING_INVOICE_COLUMNS,
|
||||
BILLING_PAYMENT_BY_INVOICE_COLUMNS,
|
||||
BILLING_PAYMENT_COLUMNS,
|
||||
BILLING_PAYMENT_INTENT_BY_CUSTOMER_COLUMNS,
|
||||
BILLING_PAYMENT_INTENT_COLUMNS,
|
||||
BILLING_PAYMENT_METHOD_BY_CUSTOMER_COLUMNS,
|
||||
BILLING_PAYMENT_METHOD_COLUMNS,
|
||||
BILLING_PRICE_COLUMNS,
|
||||
BILLING_PRODUCT_COLUMNS,
|
||||
BILLING_REFUND_BY_CHARGE_COLUMNS,
|
||||
BILLING_REFUND_BY_INVOICE_COLUMNS,
|
||||
BILLING_REFUND_BY_PAYMENT_INTENT_COLUMNS,
|
||||
@@ -98,26 +89,17 @@ import {
|
||||
BILLING_SUBSCRIPTION_BY_CUSTOMER_COLUMNS,
|
||||
BILLING_SUBSCRIPTION_BY_USER_COLUMNS,
|
||||
BILLING_SUBSCRIPTION_COLUMNS,
|
||||
type BillingActionIntentRow,
|
||||
type BillingChargeByCustomerRow,
|
||||
type BillingChargeRow,
|
||||
type BillingCheckoutSessionByCustomerRow,
|
||||
type BillingCheckoutSessionRow,
|
||||
type BillingCustomerByUserIdRow,
|
||||
type BillingCustomerRow,
|
||||
type BillingDisputeByChargeRow,
|
||||
type BillingDisputeRow,
|
||||
type BillingInvoiceByCustomerRow,
|
||||
type BillingInvoiceBySubscriptionRow,
|
||||
type BillingInvoiceRow,
|
||||
type BillingPaymentByInvoiceRow,
|
||||
type BillingPaymentIntentByCustomerRow,
|
||||
type BillingPaymentIntentRow,
|
||||
type BillingPaymentMethodByCustomerRow,
|
||||
type BillingPaymentMethodRow,
|
||||
type BillingPaymentRow,
|
||||
type BillingPriceRow,
|
||||
type BillingProductRow,
|
||||
type BillingRefundByChargeRow,
|
||||
type BillingRefundByInvoiceRow,
|
||||
type BillingRefundByPaymentIntentRow,
|
||||
@@ -320,7 +302,6 @@ import {
|
||||
USER_GUILD_SETTINGS_COLUMNS,
|
||||
USER_HARVEST_COLUMNS,
|
||||
USER_SETTINGS_COLUMNS,
|
||||
USERS_PENDING_DELETION_COLUMNS,
|
||||
type UserByEmailRow,
|
||||
type UserByLastActiveIpRow,
|
||||
type UserByLastActiveIpTrustKeyRow,
|
||||
@@ -336,7 +317,6 @@ import {
|
||||
type UserHarvestRow,
|
||||
type UserRow,
|
||||
type UserSettingsRow,
|
||||
type UsersPendingDeletionRow,
|
||||
} from '@app/api/database/types/UserTypes';
|
||||
import {
|
||||
VOICE_P2P_CONNECTION_REPORT_COLUMNS,
|
||||
@@ -350,14 +330,7 @@ export const Users = defineTable<UserRow, 'user_id'>({
|
||||
columns: USER_COLUMNS,
|
||||
primaryKey: ['user_id'],
|
||||
});
|
||||
export const UsersPendingDeletion = defineTable<
|
||||
UsersPendingDeletionRow,
|
||||
'deletion_date' | 'pending_deletion_at' | 'user_id'
|
||||
>({
|
||||
name: 'users_pending_deletion',
|
||||
columns: USERS_PENDING_DELETION_COLUMNS,
|
||||
primaryKey: ['deletion_date', 'pending_deletion_at', 'user_id'],
|
||||
});
|
||||
|
||||
export const UserDmHistory = defineTable<UserDmHistoryRow, 'user_id' | 'channel_id'>({
|
||||
name: 'user_dm_history',
|
||||
columns: USER_DM_HISTORY_COLUMNS,
|
||||
@@ -1302,11 +1275,6 @@ export const BillingCustomersByUserId = defineTable<BillingCustomerByUserIdRow,
|
||||
columns: BILLING_CUSTOMER_BY_USER_ID_COLUMNS,
|
||||
primaryKey: ['user_id', 'provider_id'],
|
||||
});
|
||||
export const BillingProducts = defineTable<BillingProductRow, 'provider_id'>({
|
||||
name: 'billing_products',
|
||||
columns: BILLING_PRODUCT_COLUMNS,
|
||||
primaryKey: ['provider_id'],
|
||||
});
|
||||
export const BillingPrices = defineTable<BillingPriceRow, 'provider_id'>({
|
||||
name: 'billing_prices',
|
||||
columns: BILLING_PRICE_COLUMNS,
|
||||
@@ -1358,46 +1326,16 @@ export const BillingInvoicesByCustomer = defineTable<
|
||||
primaryKey: ['customer_id', 'stripe_created_at', 'provider_id'],
|
||||
partitionKey: ['customer_id'],
|
||||
});
|
||||
export const BillingInvoicesBySubscription = defineTable<
|
||||
BillingInvoiceBySubscriptionRow,
|
||||
'subscription_id' | 'stripe_created_at' | 'provider_id',
|
||||
'subscription_id'
|
||||
>({
|
||||
name: 'billing_invoices_by_subscription',
|
||||
columns: BILLING_INVOICE_BY_SUBSCRIPTION_COLUMNS,
|
||||
primaryKey: ['subscription_id', 'stripe_created_at', 'provider_id'],
|
||||
partitionKey: ['subscription_id'],
|
||||
});
|
||||
export const BillingPaymentIntents = defineTable<BillingPaymentIntentRow, 'provider_id'>({
|
||||
name: 'billing_payment_intents',
|
||||
columns: BILLING_PAYMENT_INTENT_COLUMNS,
|
||||
primaryKey: ['provider_id'],
|
||||
});
|
||||
export const BillingPaymentIntentsByCustomer = defineTable<
|
||||
BillingPaymentIntentByCustomerRow,
|
||||
'customer_id' | 'stripe_created_at' | 'provider_id',
|
||||
'customer_id'
|
||||
>({
|
||||
name: 'billing_payment_intents_by_customer',
|
||||
columns: BILLING_PAYMENT_INTENT_BY_CUSTOMER_COLUMNS,
|
||||
primaryKey: ['customer_id', 'stripe_created_at', 'provider_id'],
|
||||
partitionKey: ['customer_id'],
|
||||
});
|
||||
export const BillingCharges = defineTable<BillingChargeRow, 'provider_id'>({
|
||||
name: 'billing_charges',
|
||||
columns: BILLING_CHARGE_COLUMNS,
|
||||
primaryKey: ['provider_id'],
|
||||
});
|
||||
export const BillingChargesByCustomer = defineTable<
|
||||
BillingChargeByCustomerRow,
|
||||
'customer_id' | 'stripe_created_at' | 'provider_id',
|
||||
'customer_id'
|
||||
>({
|
||||
name: 'billing_charges_by_customer',
|
||||
columns: BILLING_CHARGE_BY_CUSTOMER_COLUMNS,
|
||||
primaryKey: ['customer_id', 'stripe_created_at', 'provider_id'],
|
||||
partitionKey: ['customer_id'],
|
||||
});
|
||||
export const BillingPayments = defineTable<BillingPaymentRow, 'provider_id'>({
|
||||
name: 'billing_payments',
|
||||
columns: BILLING_PAYMENT_COLUMNS,
|
||||
@@ -1448,36 +1386,6 @@ export const BillingRefundsByInvoice = defineTable<
|
||||
primaryKey: ['invoice_id', 'stripe_created_at', 'provider_id'],
|
||||
partitionKey: ['invoice_id'],
|
||||
});
|
||||
export const BillingCheckoutSessions = defineTable<BillingCheckoutSessionRow, 'provider_id'>({
|
||||
name: 'billing_checkout_sessions',
|
||||
columns: BILLING_CHECKOUT_SESSION_COLUMNS,
|
||||
primaryKey: ['provider_id'],
|
||||
});
|
||||
export const BillingCheckoutSessionsByCustomer = defineTable<
|
||||
BillingCheckoutSessionByCustomerRow,
|
||||
'customer_id' | 'stripe_created_at' | 'provider_id',
|
||||
'customer_id'
|
||||
>({
|
||||
name: 'billing_checkout_sessions_by_customer',
|
||||
columns: BILLING_CHECKOUT_SESSION_BY_CUSTOMER_COLUMNS,
|
||||
primaryKey: ['customer_id', 'stripe_created_at', 'provider_id'],
|
||||
partitionKey: ['customer_id'],
|
||||
});
|
||||
export const BillingDisputes = defineTable<BillingDisputeRow, 'provider_id'>({
|
||||
name: 'billing_disputes',
|
||||
columns: BILLING_DISPUTE_COLUMNS,
|
||||
primaryKey: ['provider_id'],
|
||||
});
|
||||
export const BillingDisputesByCharge = defineTable<BillingDisputeByChargeRow, 'charge_id' | 'provider_id'>({
|
||||
name: 'billing_disputes_by_charge',
|
||||
columns: BILLING_DISPUTE_BY_CHARGE_COLUMNS,
|
||||
primaryKey: ['charge_id', 'provider_id'],
|
||||
});
|
||||
export const BillingActionIntents = defineTable<BillingActionIntentRow, 'intent_id'>({
|
||||
name: 'billing_action_intents',
|
||||
columns: BILLING_ACTION_INTENT_COLUMNS,
|
||||
primaryKey: ['intent_id'],
|
||||
});
|
||||
export const VoiceP2pConnectionReports = defineTable<VoiceP2pConnectionReportRow, 'user_id' | 'report_id'>({
|
||||
name: 'voice_p2p_connection_reports',
|
||||
columns: VOICE_P2P_CONNECTION_REPORT_COLUMNS,
|
||||
|
||||
Reference in new issue
Block a user