@nuclia/core
Advanced tools
Comparing version 1.11.7 to 1.11.8
@@ -0,1 +1,7 @@ | ||
# 1.11.8 (unreleased) | ||
### Improvements | ||
- Support `all`, `any`, `none` and `not_all` operators in `filters` parameter | ||
# 1.11.7 (2024-02-15) | ||
@@ -32,3 +38,3 @@ | ||
- Add `resource_title` to `BaseNotificationData` model | ||
- Add `resource_title` to `BaseNotificationData` model | ||
- Create an interface for `listenToProcessingNotifications` response (`ResourceProcessingNotification`) including the resource title and a timestamp | ||
@@ -35,0 +41,0 @@ - Improve `getStreamMessages`: reconnect if the connection is lost and there was no error for the last 10s |
@@ -16,5 +16,14 @@ import type { ExtractedDataTypes, FIELD_TYPE, FieldId, IFieldData, IResource, RelationEntityType, RelationType } from '../resource'; | ||
} | ||
export declare enum FilterOperator { | ||
all = "all", | ||
any = "any", | ||
none = "none", | ||
not_all = "not_all" | ||
} | ||
export type Filter = { | ||
[operator in FilterOperator]: string[]; | ||
}; | ||
export interface BaseSearchOptions { | ||
fields?: string[]; | ||
filters?: string[]; | ||
filters?: string[] | Filter[]; | ||
min_score?: number; | ||
@@ -21,0 +30,0 @@ range_creation_start?: string; |
{ | ||
"name": "@nuclia/core", | ||
"version": "1.11.7", | ||
"version": "1.11.8", | ||
"description": "SDK allowing to integrate Nuclia services in your frontend application", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -16,5 +16,14 @@ import type { ExtractedDataTypes, FIELD_TYPE, FieldId, IFieldData, IResource, RelationEntityType, RelationType } from '../resource'; | ||
} | ||
export declare enum FilterOperator { | ||
all = "all", | ||
any = "any", | ||
none = "none", | ||
not_all = "not_all" | ||
} | ||
export type Filter = { | ||
[operator in FilterOperator]: string[]; | ||
}; | ||
export interface BaseSearchOptions { | ||
fields?: string[]; | ||
filters?: string[]; | ||
filters?: string[] | Filter[]; | ||
min_score?: number; | ||
@@ -21,0 +30,0 @@ range_creation_start?: string; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
448607
8752