@accounter/server
Version:
Accounter GraphQL server
57 lines (56 loc) • 1.75 kB
TypeScript
import { InjectionToken } from 'graphql-modules';
import type { AdminContext } from '../plugins/admin-context-plugin.js';
import type { RawAuth } from '../plugins/auth-plugin-v2.js';
import type { AuthContext } from './types/auth.js';
export declare const ENVIRONMENT: InjectionToken<{
readonly postgres: {
readonly host: string;
readonly port: number;
readonly db: string;
readonly user: string;
readonly password: string;
readonly ssl: boolean;
readonly max: number;
};
readonly cloudinary: {
name: string;
apiKey: string;
apiSecret: string;
} | undefined;
readonly greenInvoice: {
id: string;
secret: string;
} | undefined;
readonly authorization: {
readonly users: string | void;
readonly adminBusinessId: string;
readonly useAuth0: boolean;
};
readonly hive: {
hiveToken: string;
} | undefined;
readonly googleDrive: {
driveApiKey: string;
} | undefined;
readonly deel: {
apiToken: string;
} | undefined;
readonly gmail: {
clientId: string;
clientSecret: string;
refreshToken: string;
labelPath: string;
cloudProjectId: string;
appCredentials: string;
topicName: string;
subscriptionName: string;
} | undefined;
readonly auth0: {
domain: string;
audience: string;
} | undefined;
}>;
export declare const AUTH_CONTEXT: InjectionToken<AuthContext>;
export declare const AUTH_CONTEXT_V2: InjectionToken<AuthContext | null>;
export declare const ADMIN_CONTEXT: InjectionToken<AdminContext | null>;
export declare const RAW_AUTH: InjectionToken<RawAuth>;