mirror of
https://github.com/PretendoNetwork/miiverse-api.git
synced 2026-10-26 23:09:44 -05:00
Removed account server DB, now uses gRPC
This commit is contained in:
@@ -10,10 +10,6 @@ export interface Config {
|
||||
connection_string: string;
|
||||
options: mongoose.ConnectOptions;
|
||||
};
|
||||
account_db: {
|
||||
connection_string: string;
|
||||
options: mongoose.ConnectOptions;
|
||||
};
|
||||
s3: {
|
||||
endpoint: string;
|
||||
key: string;
|
||||
@@ -25,5 +21,10 @@ export interface Config {
|
||||
port: number;
|
||||
api_key: string;
|
||||
};
|
||||
account: {
|
||||
ip: string;
|
||||
port: number;
|
||||
api_key: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,42 +0,0 @@
|
||||
import { Model, HydratedDocument } from 'mongoose';
|
||||
|
||||
enum ACCESS_LEVEL {
|
||||
Banned = -1,
|
||||
Standard = 0,
|
||||
Tester = 1,
|
||||
Mod = 2,
|
||||
Developer = 3
|
||||
}
|
||||
|
||||
type SERVER_ACCESS_LEVEL = 'prod' | 'test' | 'dev';
|
||||
|
||||
export interface IPNID {
|
||||
access_level: ACCESS_LEVEL;
|
||||
server_access_level: SERVER_ACCESS_LEVEL;
|
||||
pid: number;
|
||||
username: string;
|
||||
birthdate: string;
|
||||
country: string;
|
||||
mii: {
|
||||
name: string;
|
||||
data: string;
|
||||
};
|
||||
connections: {
|
||||
stripe: {
|
||||
customer_id: string;
|
||||
subscription_id: string;
|
||||
price_id: string;
|
||||
tier_level: number;
|
||||
tier_name: string;
|
||||
latest_webhook_timestamp: number;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
export interface IPNIDMethods {}
|
||||
|
||||
interface IPNIDQueryHelpers {}
|
||||
|
||||
export interface PNIDModel extends Model<IPNID, IPNIDQueryHelpers, IPNIDMethods> {}
|
||||
|
||||
export type HydratedPNIDDocument = HydratedDocument<IPNID, IPNIDMethods>
|
||||
Reference in New Issue
Block a user