Comparing version 10.0.1 to 10.0.3
import { EndpointDescription } from "./types"; | ||
export declare enum FilterType { | ||
AND = "and", | ||
AND_NOT = "andNot", | ||
OR = "or", | ||
@@ -5,0 +6,0 @@ TEXT = "text", |
@@ -7,2 +7,3 @@ "use strict"; | ||
FilterType["AND"] = "and"; | ||
FilterType["AND_NOT"] = "andNot"; | ||
FilterType["OR"] = "or"; | ||
@@ -9,0 +10,0 @@ FilterType["TEXT"] = "text"; |
@@ -41,2 +41,3 @@ import { FilterAction, FilterType } from "./enums"; | ||
export declare const And: (...queries: Filter[]) => Filter; | ||
export declare const AndNot: (...queries: Filter[]) => Filter; | ||
export declare const Or: (...queries: Filter[]) => Filter; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Or = exports.And = exports.Sources = exports.CategoryCodes = exports.Ciks = exports.Tickers = exports.Text = void 0; | ||
exports.Or = exports.AndNot = exports.And = exports.Sources = exports.CategoryCodes = exports.Ciks = exports.Tickers = exports.Text = void 0; | ||
const enums_1 = require("./enums"); | ||
@@ -114,2 +114,9 @@ class Text { | ||
exports.And = And; | ||
const AndNot = (...queries) => { | ||
return { | ||
type: enums_1.FilterType.AND_NOT, | ||
value: queries | ||
}; | ||
}; | ||
exports.AndNot = AndNot; | ||
const Or = (...queries) => { | ||
@@ -116,0 +123,0 @@ return { |
@@ -42,3 +42,3 @@ /// <reference types="ws" /> | ||
export interface FilterCondition { | ||
type: FilterType.AND | FilterType.OR; | ||
type: FilterType.AND | FilterType.OR | FilterType.AND_NOT; | ||
value: Filter[]; | ||
@@ -45,0 +45,0 @@ } |
{ | ||
"name": "newsware", | ||
"version": "10.0.1", | ||
"version": "10.0.3", | ||
"description": "Typescript client for interacting with the Newsware API", | ||
@@ -5,0 +5,0 @@ "main": "lib/src/index.js", |
@@ -5,2 +5,3 @@ import { EndpointDescription } from "./types"; | ||
AND = "and", | ||
AND_NOT = "andNot", | ||
OR = "or", | ||
@@ -7,0 +8,0 @@ TEXT = "text", |
@@ -142,2 +142,9 @@ import { FilterAction, FilterType } from "./enums"; | ||
export const AndNot = (...queries: Filter[]): Filter => { | ||
return { | ||
type: FilterType.AND_NOT, | ||
value: queries | ||
} | ||
} | ||
export const Or = (...queries: Filter[]): Filter => { | ||
@@ -144,0 +151,0 @@ return { |
@@ -48,3 +48,3 @@ import { CloseEvent } from "isomorphic-ws" | ||
export interface FilterCondition { | ||
type: FilterType.AND | FilterType.OR | ||
type: FilterType.AND | FilterType.OR | FilterType.AND_NOT | ||
value: Filter[] | ||
@@ -51,0 +51,0 @@ } |
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
103206
2019