@coast/core-api-types 1.2.136 → 1.2.138
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/models/workflow-template/entities/filters/AnyComponentFilter.d.ts +3 -1
- package/dist/models/workflow-template/entities/filters/AnySingleComponentFilter.d.ts +1 -3
- package/dist/models/workflow-template/entities/filters/ContainsCurrentUser.d.ts +4 -1
- package/dist/models/workflow-template/entities/filters/ContainsNestedString.d.ts +4 -1
- package/dist/models/workflow-template/entities/filters/ContainsNumber.d.ts +5 -1
- package/dist/models/workflow-template/entities/filters/ContainsString.d.ts +5 -1
- package/dist/models/workflow-template/entities/filters/DateIs.d.ts +4 -1
- package/dist/models/workflow-template/entities/filters/DateRange.d.ts +4 -1
- package/dist/models/workflow-template/entities/filters/DateTokenIs.d.ts +4 -1
- package/dist/models/workflow-template/entities/filters/FilterBase.d.ts +4 -0
- package/dist/models/workflow-template/entities/filters/FilterBase.js +3 -0
- package/dist/models/workflow-template/entities/filters/FilterBase.js.map +1 -0
- package/dist/models/workflow-template/entities/filters/FilterType.d.ts +16 -0
- package/dist/models/workflow-template/entities/filters/FilterType.js +21 -0
- package/dist/models/workflow-template/entities/filters/FilterType.js.map +1 -0
- package/dist/models/workflow-template/entities/filters/IsEmpty.d.ts +4 -1
- package/dist/models/workflow-template/entities/filters/IsNestedEmpty.d.ts +4 -1
- package/dist/models/workflow-template/entities/filters/MatchesScript.d.ts +4 -1
- package/dist/models/workflow-template/entities/filters/MultiMatchNumber.d.ts +4 -1
- package/dist/models/workflow-template/entities/filters/MultiMatchString.d.ts +4 -1
- package/dist/models/workflow-template/entities/filters/Negatable.d.ts +3 -0
- package/dist/models/workflow-template/entities/filters/Negatable.js +3 -0
- package/dist/models/workflow-template/entities/filters/Negatable.js.map +1 -0
- package/dist/models/workflow-template/entities/filters/NumberIs.d.ts +4 -1
- package/dist/models/workflow-template/entities/filters/StringWildcard.d.ts +4 -1
- package/dist/models/workflow-template/entities/search/MultiKeySearchFilter.d.ts +9 -2
- package/dist/models/workflow-template/entities/search/ScriptFilter.d.ts +5 -2
- package/dist/models/workflow-template/entities/search/SearchFilter.d.ts +4 -4
- package/dist/models/workflow-template/entities/search/SingleKeySearchFilter.d.ts +15 -2
- package/package.json +1 -1
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { ContainsCurrentUser } from './ContainsCurrentUser';
|
|
2
|
+
import { ContainsNestedString } from './ContainsNestedString';
|
|
2
3
|
import { ContainsNumber } from './ContainsNumber';
|
|
3
4
|
import { ContainsString } from './ContainsString';
|
|
4
5
|
import { DateIs } from './DateIs';
|
|
5
6
|
import { DateRange } from './DateRange';
|
|
6
7
|
import { DateTokenIs } from './DateTokenIs';
|
|
7
8
|
import { IsEmpty } from './IsEmpty';
|
|
9
|
+
import { IsNestedEmpty } from './IsNestedEmpty';
|
|
8
10
|
import { MatchesScript } from './MatchesScript';
|
|
9
11
|
import { MultiMatchNumber } from './MultiMatchNumber';
|
|
10
12
|
import { MultiMatchString } from './MultiMatchString';
|
|
11
13
|
import { NumberIs } from './NumberIs';
|
|
12
14
|
import { StringWildcard } from './StringWildcard';
|
|
13
|
-
export type AnyComponentFilter = ContainsCurrentUser | ContainsNumber | ContainsString | DateIs | DateRange | DateTokenIs | IsEmpty | MatchesScript | MultiMatchNumber | MultiMatchString | NumberIs | StringWildcard;
|
|
15
|
+
export type AnyComponentFilter = ContainsCurrentUser | ContainsNestedString | ContainsNumber | ContainsString | DateIs | DateRange | DateTokenIs | IsEmpty | IsNestedEmpty | MatchesScript | MultiMatchNumber | MultiMatchString | NumberIs | StringWildcard;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { ContainsCurrentUser } from './ContainsCurrentUser';
|
|
2
1
|
import { ContainsNestedString } from './ContainsNestedString';
|
|
3
2
|
import { ContainsNumber } from './ContainsNumber';
|
|
4
3
|
import { ContainsString } from './ContainsString';
|
|
5
4
|
import { DateIs } from './DateIs';
|
|
6
5
|
import { DateRange } from './DateRange';
|
|
7
|
-
import { DateTokenIs } from './DateTokenIs';
|
|
8
6
|
import { IsEmpty } from './IsEmpty';
|
|
9
7
|
import { IsNestedEmpty } from './IsNestedEmpty';
|
|
10
8
|
import { NumberIs } from './NumberIs';
|
|
11
9
|
import { StringWildcard } from './StringWildcard';
|
|
12
|
-
export type AnySingleComponentFilter =
|
|
10
|
+
export type AnySingleComponentFilter = ContainsNestedString | ContainsNumber | ContainsString | DateIs | DateRange | IsEmpty | IsNestedEmpty | NumberIs | StringWildcard;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { FilterBase } from './FilterBase';
|
|
2
|
+
import { FilterType } from './FilterType';
|
|
3
|
+
export interface ContainsNestedString extends FilterBase {
|
|
2
4
|
key: string;
|
|
3
5
|
values: string[];
|
|
6
|
+
type: FilterType.CONTAINS_NESTED_STRING;
|
|
4
7
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { FilterBase } from './FilterBase';
|
|
2
|
+
import { FilterType } from './FilterType';
|
|
3
|
+
import { Negatable } from './Negatable';
|
|
4
|
+
export interface ContainsNumber extends FilterBase, Negatable {
|
|
2
5
|
values: number[];
|
|
6
|
+
type: FilterType.CONTAINS_NUMBER;
|
|
3
7
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { FilterBase } from './FilterBase';
|
|
2
|
+
import { FilterType } from './FilterType';
|
|
3
|
+
import { Negatable } from './Negatable';
|
|
4
|
+
export interface ContainsString extends FilterBase, Negatable {
|
|
2
5
|
values: string[];
|
|
6
|
+
type: FilterType.CONTAINS_STRING;
|
|
3
7
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { AbsoluteDate } from './AbsoluteDate';
|
|
2
2
|
import { ComparisonOperator } from './ComparisonOperator';
|
|
3
|
+
import { FilterBase } from './FilterBase';
|
|
4
|
+
import { FilterType } from './FilterType';
|
|
3
5
|
import { RelativeDate } from './RelativeDate';
|
|
4
|
-
export interface DateIs {
|
|
6
|
+
export interface DateIs extends FilterBase {
|
|
5
7
|
absoluteDate?: AbsoluteDate;
|
|
6
8
|
operator: ComparisonOperator;
|
|
7
9
|
relativeDate?: RelativeDate;
|
|
10
|
+
type: FilterType.DATE_IS;
|
|
8
11
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { DateToken } from './DateToken';
|
|
2
|
-
|
|
2
|
+
import { FilterBase } from './FilterBase';
|
|
3
|
+
import { FilterType } from './FilterType';
|
|
4
|
+
export interface DateTokenIs extends FilterBase {
|
|
3
5
|
value: DateToken;
|
|
6
|
+
type: FilterType.DATE_TOKEN_IS;
|
|
4
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterBase.js","sourceRoot":"","sources":["../../../../../src/models/workflow-template/entities/filters/FilterBase.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum FilterType {
|
|
2
|
+
CONTAINS_CURRENT_USER = "CONTAINS_CURRENT_USER",
|
|
3
|
+
CONTAINS_NESTED_STRING = "CONTAINS_NESTED_STRING",
|
|
4
|
+
CONTAINS_NUMBER = "CONTAINS_NUMBER",
|
|
5
|
+
CONTAINS_STRING = "CONTAINS_STRING",
|
|
6
|
+
DATE_IS = "DATE_IS",
|
|
7
|
+
DATE_RANGE = "DATE_RANGE",
|
|
8
|
+
DATE_TOKEN_IS = "DATE_TOKEN_IS",
|
|
9
|
+
IS_EMPTY = "IS_EMPTY",
|
|
10
|
+
IS_NESTED_EMPTY = "IS_NESTED_EMPTY",
|
|
11
|
+
MATCHES_SCRIPT = "MATCHES_SCRIPT",
|
|
12
|
+
MULTI_MATCH_NUMBER = "MULTI_MATCH_NUMBER",
|
|
13
|
+
MULTI_MATCH_STRING = "MULTI_MATCH_STRING",
|
|
14
|
+
NUMBER_IS = "NUMBER_IS",
|
|
15
|
+
STRING_WILDCARD = "STRING_WILDCARD"
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FilterType = void 0;
|
|
4
|
+
var FilterType;
|
|
5
|
+
(function (FilterType) {
|
|
6
|
+
FilterType["CONTAINS_CURRENT_USER"] = "CONTAINS_CURRENT_USER";
|
|
7
|
+
FilterType["CONTAINS_NESTED_STRING"] = "CONTAINS_NESTED_STRING";
|
|
8
|
+
FilterType["CONTAINS_NUMBER"] = "CONTAINS_NUMBER";
|
|
9
|
+
FilterType["CONTAINS_STRING"] = "CONTAINS_STRING";
|
|
10
|
+
FilterType["DATE_IS"] = "DATE_IS";
|
|
11
|
+
FilterType["DATE_RANGE"] = "DATE_RANGE";
|
|
12
|
+
FilterType["DATE_TOKEN_IS"] = "DATE_TOKEN_IS";
|
|
13
|
+
FilterType["IS_EMPTY"] = "IS_EMPTY";
|
|
14
|
+
FilterType["IS_NESTED_EMPTY"] = "IS_NESTED_EMPTY";
|
|
15
|
+
FilterType["MATCHES_SCRIPT"] = "MATCHES_SCRIPT";
|
|
16
|
+
FilterType["MULTI_MATCH_NUMBER"] = "MULTI_MATCH_NUMBER";
|
|
17
|
+
FilterType["MULTI_MATCH_STRING"] = "MULTI_MATCH_STRING";
|
|
18
|
+
FilterType["NUMBER_IS"] = "NUMBER_IS";
|
|
19
|
+
FilterType["STRING_WILDCARD"] = "STRING_WILDCARD";
|
|
20
|
+
})(FilterType || (exports.FilterType = FilterType = {}));
|
|
21
|
+
//# sourceMappingURL=FilterType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterType.js","sourceRoot":"","sources":["../../../../../src/models/workflow-template/entities/filters/FilterType.ts"],"names":[],"mappings":";;;AACA,IAAY,UAeX;AAfD,WAAY,UAAU;IAClB,6DAA+C,CAAA;IAC/C,+DAAiD,CAAA;IACjD,iDAAmC,CAAA;IACnC,iDAAmC,CAAA;IACnC,iCAAmB,CAAA;IACnB,uCAAyB,CAAA;IACzB,6CAA+B,CAAA;IAC/B,mCAAqB,CAAA;IACrB,iDAAmC,CAAA;IACnC,+CAAiC,CAAA;IACjC,uDAAyC,CAAA;IACzC,uDAAyC,CAAA;IACzC,qCAAuB,CAAA;IACvB,iDAAmC,CAAA;AACvC,CAAC,EAfW,UAAU,0BAAV,UAAU,QAerB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Negatable.js","sourceRoot":"","sources":["../../../../../src/models/workflow-template/entities/filters/Negatable.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { ComparisonOperator } from './ComparisonOperator';
|
|
2
|
-
|
|
2
|
+
import { FilterBase } from './FilterBase';
|
|
3
|
+
import { FilterType } from './FilterType';
|
|
4
|
+
export interface NumberIs extends FilterBase {
|
|
3
5
|
operator: ComparisonOperator;
|
|
4
6
|
value: number;
|
|
7
|
+
type: FilterType.NUMBER_IS;
|
|
5
8
|
}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { AnyMultiComponentFilter } from '../filters/AnyMultiComponentFilter';
|
|
2
|
+
import { MultiMatchNumber } from '../filters/MultiMatchNumber';
|
|
3
|
+
import { MultiMatchString } from '../filters/MultiMatchString';
|
|
4
|
+
interface MultiKeySearchFilterBase<T extends AnyMultiComponentFilter> {
|
|
5
|
+
searchKeys: string[];
|
|
6
|
+
type: T['type'];
|
|
7
|
+
filter: T;
|
|
3
8
|
}
|
|
9
|
+
export type MultiKeySearchFilter = MultiKeySearchFilterBase<MultiMatchNumber> | MultiKeySearchFilterBase<MultiMatchString>;
|
|
10
|
+
export {};
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { FilterType } from '../filters/FilterType';
|
|
2
|
+
import { MatchesScript } from '../filters/MatchesScript';
|
|
3
|
+
export interface ScriptFilter {
|
|
4
|
+
filter: MatchesScript;
|
|
5
|
+
type: FilterType.MATCHES_SCRIPT;
|
|
3
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { MultiKeySearchFilter } from './MultiKeySearchFilter';
|
|
2
|
+
import { ScriptFilter } from './ScriptFilter';
|
|
3
|
+
import { SingleKeySearchFilter } from './SingleKeySearchFilter';
|
|
4
|
+
export type SearchFilter = MultiKeySearchFilter | ScriptFilter | SingleKeySearchFilter;
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { AnySingleComponentFilter } from '../filters/AnySingleComponentFilter';
|
|
2
|
+
import { ContainsNestedString } from '../filters/ContainsNestedString';
|
|
3
|
+
import { ContainsNumber } from '../filters/ContainsNumber';
|
|
4
|
+
import { ContainsString } from '../filters/ContainsString';
|
|
5
|
+
import { DateIs } from '../filters/DateIs';
|
|
6
|
+
import { DateRange } from '../filters/DateRange';
|
|
7
|
+
import { IsEmpty } from '../filters/IsEmpty';
|
|
8
|
+
import { IsNestedEmpty } from '../filters/IsNestedEmpty';
|
|
9
|
+
import { NumberIs } from '../filters/NumberIs';
|
|
10
|
+
import { StringWildcard } from '../filters/StringWildcard';
|
|
11
|
+
export interface SingleKeySearchFilterBase<T extends AnySingleComponentFilter> {
|
|
12
|
+
searchKey: string;
|
|
13
|
+
type: T['type'];
|
|
14
|
+
filter: T;
|
|
3
15
|
}
|
|
16
|
+
export type SingleKeySearchFilter = SingleKeySearchFilterBase<ContainsNestedString> | SingleKeySearchFilterBase<ContainsNumber> | SingleKeySearchFilterBase<ContainsString> | SingleKeySearchFilterBase<DateIs> | SingleKeySearchFilterBase<DateRange> | SingleKeySearchFilterBase<IsEmpty> | SingleKeySearchFilterBase<IsNestedEmpty> | SingleKeySearchFilterBase<NumberIs> | SingleKeySearchFilterBase<StringWildcard>;
|