amplifyquery
Version:
34 lines (33 loc) • 1.24 kB
TypeScript
/**
* Global configuration for AmplifyQuery library
*/
/**
* Set the global model owner query mapping
* @param queryMap Mapping of model names to their owner query names
*/
export declare function setModelOwnerQueryMap(queryMap: Record<string, string>): void;
/**
* Get the global model owner query mapping
* @returns The global model owner query mapping or undefined if not set
*/
export declare function getModelOwnerQueryMap(): Record<string, string> | undefined;
/**
* Get owner query name for a specific model
* @param modelName The model name
* @returns The owner query name or default format if not found
*/
export declare function getOwnerQueryName(modelName: string): string;
/**
* Set the default auth mode
* @param authMode Default authentication mode
*/
export declare function setDefaultAuthMode(authMode: "apiKey" | "iam" | "identityPool" | "oidc" | "userPool" | "lambda" | "none"): void;
/**
* Get the default auth mode
* @returns The default auth mode or 'userPool' if not set
*/
export declare function getDefaultAuthMode(): "apiKey" | "iam" | "identityPool" | "oidc" | "userPool" | "lambda" | "none";
/**
* Reset global configuration (mainly for testing)
*/
export declare function resetConfig(): void;