interface IBaseServiceTokensResolverHost<ST extends BaseServiceToken> {
    createServiceToken(
        input: CreateServiceTokenInput,
        ctx: IBaseActionContext,
    ): Promise<ICreateServiceTokenPayload<ST>>;
    deleteServiceToken(
        input: DeleteServiceTokenInput,
        ctx: IBaseActionContext,
    ): Promise<DeleteServiceTokenPayload>;
    regenerateServiceToken(
        id: string,
        ctx: IBaseActionContext,
    ): Promise<IRegenerateServiceTokenPayload<ST>>;
    serviceToken(
        input: FetchServiceTokenInput,
        ctx: IBaseActionContext,
    ): Promise<ST>;
    serviceTokens(
        input: FetchServiceTokensInput,
        info: GraphQLResolveInfo,
    ): Promise<IOffsetPaginated<ST>>;
    syncServiceToken(
        input: SyncServiceTokenInput,
        ctx: IBaseActionContext,
    ): Promise<ST>;
    updateServiceToken(
        input: UpdateServiceTokenInput,
        ctx: IBaseActionContext,
    ): Promise<ST>;
}

Type Parameters

Methods