store() #
Deprecated since 2.14.0
Stores filters, normalized with the Koncorde.normalize function.
Arguments #
store(normalized: NormalizedFilterV3): Promise<{ id: string, diff: NormalizedFilterV3 | false }>;| Arguments | Type | Description |
|---|---|---|
normalized | NormalizedFilterV3 | Normalized filters, as returned by normalize |
Return #
The store function returns a promise resolving to an object with the following attributes:
| Field | Type | Description |
|---|---|---|
id | string | The filter unique identifier |
diff | NormalizedFilterV3 | false | If the filter didn't already exist, contains the normalized version of the provided filters. false if the filter was already stored |