21 lines
763 B
TypeScript
21 lines
763 B
TypeScript
export type CountryRow = {
|
|
code: string;
|
|
name: string;
|
|
registration_allowed: boolean;
|
|
synced_at: Date;
|
|
updated_at: Date;
|
|
};
|
|
export declare function count(): Promise<number>;
|
|
export declare function upsertMany(items: Array<{
|
|
code: string;
|
|
name: string;
|
|
}>): Promise<number>;
|
|
export declare function listForRegistration(): Promise<Array<{
|
|
code: string;
|
|
name: string;
|
|
}>>;
|
|
export declare function listAll(): Promise<CountryRow[]>;
|
|
export declare function findByCode(code: string): Promise<CountryRow | null>;
|
|
export declare function setRegistrationAllowed(code: string, allowed: boolean): Promise<void>;
|
|
export declare function isRegistrationAllowed(code: string): Promise<boolean>;
|
|
//# sourceMappingURL=countryRepository.d.ts.map
|