Skip to content

Commit 3eacc5b

Browse files
authored
feat: support for IN, IN_NUMERIC, NOT_IN, and NOT_IN_NUMERIC (#153)
1 parent 1bd4255 commit 3eacc5b

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

src/common/client/oauth-client-credentials-api-client/oauth-client-credentials-api-client.e2e.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ describe('OAuthClientCredentialsClient', () => {
2828

2929
describe('error', () => {
3030
it('should throw error for incorrect email and password', async () => {
31-
const client = new OAuthClientCredentialsClient('BugSplat', 'rocks', host);
31+
const client = new OAuthClientCredentialsClient(clientId, 'rocks', host);
3232

3333
await expectAsync(client.login()).toBeRejectedWithError(
3434
Error,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
export type QueryFilterCondition = 'EQUAL' | 'NOT_EQUAL' | 'CONTAINS' | 'DOES_NOT_CONTAIN' | 'EMPTY' | 'NOT_EMPTY' | 'STARTS_WITH' | 'ENDS_WITH' | 'LESS_THAN' | 'GREATER_THAN';
2+
export type QueryFilterCondition = 'EQUAL' | 'NOT_EQUAL' | 'CONTAINS' | 'DOES_NOT_CONTAIN' | 'EMPTY' | 'NOT_EMPTY' | 'STARTS_WITH' | 'ENDS_WITH' | 'LESS_THAN' | 'GREATER_THAN' | 'IN' | 'IN_NUMERIC' | 'NOT_IN' | 'NOT_IN_NUMERIC';

src/common/data/search/filter/query-filter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { QueryFilterCondition } from '../filter-condition/filter-condition';
22

33
export class QueryFilter {
44
constructor(
5-
public readonly filterValue: string | number,
5+
public readonly filterValue: string | number | Array<string | number>,
66
public readonly filterCondition: QueryFilterCondition,
77
public readonly filterDataField: string
88
) {

src/common/data/table-data/table-data-form-data-builder/table-data-form-data-builder.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ export class TableDataFormDataBuilder {
3434
this._formParts[`filteroperator${filtersCount}`] = firstFilter ? group.groupOperator?.value : group.filterOperator?.value;
3535
this._formParts[`filterdatafield${filtersCount}`] = filter.filterDataField;
3636
this._formParts[`filtercondition${filtersCount}`] = filter.filterCondition;
37-
this._formParts[`filtervalue${filtersCount}`] = filter.filterValue.toString();
37+
this._formParts[`filtervalue${filtersCount}`] = Array.isArray(filter.filterValue)
38+
? filter.filterValue.join(',')
39+
: filter.filterValue.toString();
3840
this._formParts[`filtergroupclose${filtersCount}`] = lastFilter ? '1' : '0';
3941
filtersCount++;
4042
});

0 commit comments

Comments
 (0)