Skip to content

Commit 8ef60ac

Browse files
authored
Merge pull request #434 from piotrsapiejewskismartbear/master
SDCB-9664 add isnotnull operand to FilterBuilder
2 parents ae0c3fb + 76ee7f2 commit 8ef60ac

9 files changed

+24
-8
lines changed

dist/FilterBuilder.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export declare class FilterBuilder {
1414
like(name: string, value: string): this;
1515
notlike(name: string, value: string): this;
1616
isnull(name: string): this;
17+
isnotnull(name: string): this;
1718
in(name: string, value: Array<any>): this;
1819
notin(name: string, value: Array<any>): this;
1920
raw(filter: Filter | string | Filter[] | string[]): void;

dist/bitbar-cloud-api-client.js

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bitbar-cloud-api-client.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bitbar-cloud-api-client.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/bitbar-cloud-api-client.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@bitbar/cloud-api-client",
3-
"version": "1.0.18",
3+
"version": "1.0.19",
44
"description": "Bitbar Cloud API Client for JavaScript",
55
"main": "dist/bitbar-cloud-api-client.min.js",
66
"types": "dist/index.d.ts",

src/FilterBuilder.spec.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,14 @@ describe('FilterBuilder', () => {
192192
});
193193
});
194194

195+
describe('@isnotnull', () => {
196+
it('should generate proper string', () => {
197+
const f = new FilterBuilder();
198+
f.isnotnull('test');
199+
expect(f.toString()).toEqual('test_isnotnull');
200+
});
201+
});
202+
195203
describe('@in', () => {
196204
it('should generate proper string for list of booleans', () => {
197205
const test = [true, false];

src/FilterBuilder.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ export class FilterBuilder {
5959
return this.add(name, undefined, 'isnull');
6060
}
6161

62+
isnotnull(name: string): this {
63+
return this.add(name, undefined, 'isnotnull');
64+
}
65+
6266
in(name: string, value: Array<any>): this {
6367
return this.add(name, value, 'in', true);
6468
}

0 commit comments

Comments
 (0)