27 lines
875 B
TypeScript
27 lines
875 B
TypeScript
/**
|
|
|
|
* Country catalog: sync from REST Countries v5 (optional API key) or ISO 3166 fallback.
|
|
|
|
*/
|
|
export declare class CountryBlockedError extends Error {
|
|
constructor(message: string);
|
|
}
|
|
export declare function syncCountriesFromApi(): Promise<{
|
|
synced: number;
|
|
source: string;
|
|
}>;
|
|
export declare function ensureCountriesSeeded(): Promise<void>;
|
|
export declare function assertCountryAllowedForRegistration(code: string): Promise<void>;
|
|
export declare function listRegistrationCountries(): Promise<{
|
|
code: string;
|
|
name: string;
|
|
}[]>;
|
|
export declare function listAllCountriesAdmin(): Promise<{
|
|
code: string;
|
|
name: string;
|
|
registrationAllowed: boolean;
|
|
syncedAt: Date;
|
|
updatedAt: Date;
|
|
}[]>;
|
|
export declare function setCountryRegistrationAllowed(code: string, allowed: boolean): Promise<void>;
|
|
//# sourceMappingURL=countryService.d.ts.map
|