@authup/core-http-kit
Version:
Package containing global constants, types & interfaces.
13 lines • 813 B
TypeScript
import type { BuildInput } from 'rapiq';
import type { Scope } from '@authup/core-kit';
import { BaseAPI } from '../../base';
import type { EntityAPI, EntityCollectionResponse, EntityRecordResponse } from '../../types-base';
export declare class ScopeAPI extends BaseAPI implements EntityAPI<Scope> {
getMany(data?: BuildInput<Scope>): Promise<EntityCollectionResponse<Scope>>;
getOne(id: Scope['id']): Promise<EntityRecordResponse<Scope>>;
delete(id: Scope['id']): Promise<EntityRecordResponse<Scope>>;
create(data: Partial<Scope>): Promise<EntityRecordResponse<Scope>>;
update(id: Scope['id'], data: Partial<Scope>): Promise<EntityRecordResponse<Scope>>;
createOrUpdate(idOrName: string, data: Partial<Scope>): Promise<EntityRecordResponse<Scope>>;
}
//# sourceMappingURL=module.d.ts.map