@bscotch/blork-shared
Advanced tools
Comparing version 0.11.0 to 0.11.1
@@ -103,7 +103,7 @@ import { BaseError } from './errors.js'; | ||
updateTemplate(templateId: string, patch: TaskTemplatePatch): Promise<{ | ||
creator: string; | ||
createdAt: Date; | ||
updatedAt: Date; | ||
creator: string; | ||
name: string; | ||
description: string; | ||
name: string; | ||
template: string; | ||
@@ -110,0 +110,0 @@ templateId: string; |
import { BlorkQuery } from './search.types.js'; | ||
import { TaskCache } from './tasks.js'; | ||
import { TaskData } from './types.tasks.js'; | ||
import { UserData } from './types.users.js'; | ||
import { UserOrGroupData } from './types.users.js'; | ||
export * from './search.parse.js'; | ||
export type * from './search.types.js'; | ||
export declare function searchTasks(query: string, taskCache: TaskCache, users: UserData[], currentUserId: string): { | ||
export interface SearchTasksResults { | ||
query: string; | ||
parsedQuery: BlorkQuery; | ||
matches: Set<TaskData>; | ||
}; | ||
} | ||
export declare function searchTasks(query: string, taskCache: TaskCache, users: UserOrGroupData[], currentUserId: string): SearchTasksResults; | ||
//# sourceMappingURL=search.d.ts.map |
@@ -21,3 +21,3 @@ import uFuzzy from '@leeoniya/ufuzzy'; | ||
if (!lastStage) | ||
return { parsedQuery, matches: results }; | ||
return { query, parsedQuery, matches: results }; | ||
const _matchCache = new Map(); | ||
@@ -65,3 +65,3 @@ const matches = (task, filters) => { | ||
} | ||
return { parsedQuery, matches: results }; | ||
return { query, parsedQuery, matches: results }; | ||
} | ||
@@ -68,0 +68,0 @@ function matchesFilters(taskCache, task, filters, users, currentUserId) { |
{ | ||
"name": "@bscotch/blork-shared", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"description": "Client and shared utilities for Blork projects.", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
450698
7256