rtc4js 1.0.0 → 1.0.2
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/index.d.ts +7 -0
- package/dist/index.js +15 -1
- package/dist/index.js.map +1 -1
- package/dist/resource/path-config.d.ts +2 -0
- package/dist/resource/path-config.js +2 -0
- package/dist/resource/path-config.js.map +1 -1
- package/dist/resource/project/schema-field-type.d.ts +78 -0
- package/dist/resource/project/schema-field-type.js +95 -0
- package/dist/resource/project/schema-field-type.js.map +1 -0
- package/dist/resource/project/schema-field.d.ts +14 -0
- package/dist/resource/project/schema-field.js +27 -0
- package/dist/resource/project/schema-field.js.map +1 -0
- package/dist/resource/project/schema-get-request.d.ts +24 -0
- package/dist/resource/project/schema-get-request.js +55 -0
- package/dist/resource/project/schema-get-request.js.map +1 -0
- package/dist/resource/report/aggregate-value-response.d.ts +9 -0
- package/dist/resource/report/aggregate-value-response.js +29 -0
- package/dist/resource/report/aggregate-value-response.js.map +1 -0
- package/dist/resource/report/report-aggregate-value-request.d.ts +32 -0
- package/dist/resource/report/report-aggregate-value-request.js +80 -0
- package/dist/resource/report/report-aggregate-value-request.js.map +1 -0
- package/dist/resource/report/report-bulk-count-request.d.ts +104 -0
- package/dist/resource/report/report-bulk-count-request.js +217 -0
- package/dist/resource/report/report-bulk-count-request.js.map +1 -0
- package/dist/resource/report/report-bulk-search-request.d.ts +132 -0
- package/dist/resource/report/report-bulk-search-request.js +269 -0
- package/dist/resource/report/report-bulk-search-request.js.map +1 -0
- package/dist/resource/report/report-response.d.ts +3 -2
- package/dist/resource/report/report-response.js +4 -3
- package/dist/resource/report/report-response.js.map +1 -1
- package/package.json +1 -1
- package/.env +0 -7
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { IRequest } from '../request.interface';
|
|
2
|
+
export declare class ReportBulkCountRequest implements IRequest {
|
|
3
|
+
private path;
|
|
4
|
+
private query;
|
|
5
|
+
constructor(path: string, query: {
|
|
6
|
+
[key: string]: string | number;
|
|
7
|
+
});
|
|
8
|
+
getPath(): string;
|
|
9
|
+
getQuery(): {
|
|
10
|
+
[key: string]: string | number;
|
|
11
|
+
};
|
|
12
|
+
getBody(): string | null;
|
|
13
|
+
static builder(): Builder;
|
|
14
|
+
}
|
|
15
|
+
declare class Builder {
|
|
16
|
+
private _workspaceId;
|
|
17
|
+
private _projectIds;
|
|
18
|
+
private _query;
|
|
19
|
+
private _emp;
|
|
20
|
+
private _noemp;
|
|
21
|
+
private _includes;
|
|
22
|
+
private _eq;
|
|
23
|
+
private _neq;
|
|
24
|
+
private _lt;
|
|
25
|
+
private _lte;
|
|
26
|
+
private _gt;
|
|
27
|
+
private _gte;
|
|
28
|
+
private _term;
|
|
29
|
+
build(): ReportBulkCountRequest;
|
|
30
|
+
workspaceId(workspaceId: string): Builder;
|
|
31
|
+
/**
|
|
32
|
+
* Write the project IDs separated by commas.
|
|
33
|
+
* projectIds=project-id1,project-id2,project-id3
|
|
34
|
+
*/
|
|
35
|
+
projectIds(...ids: string[]): Builder;
|
|
36
|
+
/**
|
|
37
|
+
* Search string.
|
|
38
|
+
* query=searchText
|
|
39
|
+
*/
|
|
40
|
+
query(query: string | null): Builder;
|
|
41
|
+
/**
|
|
42
|
+
* Word search (blank fields only).
|
|
43
|
+
* emp=fieldId
|
|
44
|
+
*/
|
|
45
|
+
emp(fieldId: string): Builder;
|
|
46
|
+
/**
|
|
47
|
+
* Word search (non-blank fields only).
|
|
48
|
+
* noemp=fieldId
|
|
49
|
+
*/
|
|
50
|
+
noemp(fieldId: string): Builder;
|
|
51
|
+
/**
|
|
52
|
+
* Word search (specific keyword).
|
|
53
|
+
* includes=fieldId1:searchText1;fieldId2:searchText2
|
|
54
|
+
* - For example, the arguments are as follows
|
|
55
|
+
* 'fieldId1:searchText1', 'fieldId2:searchText2',...
|
|
56
|
+
*/
|
|
57
|
+
includes(...includes: string[]): Builder;
|
|
58
|
+
/**
|
|
59
|
+
* Numeric value (equals).
|
|
60
|
+
* eq=fieldId:123
|
|
61
|
+
*/
|
|
62
|
+
eq(fieldId: string, value: string): Builder;
|
|
63
|
+
/**
|
|
64
|
+
* Numeric value (not equal).
|
|
65
|
+
* eq=fieldId:123
|
|
66
|
+
*/
|
|
67
|
+
neq(fieldId: string, value: string): Builder;
|
|
68
|
+
/**
|
|
69
|
+
* Numeric value (less than).
|
|
70
|
+
* eq=fieldId:123
|
|
71
|
+
*/
|
|
72
|
+
lt(fieldId: string, value: string): Builder;
|
|
73
|
+
/**
|
|
74
|
+
* Numeric value (less than or equal to).
|
|
75
|
+
* eq=fieldId:123
|
|
76
|
+
*/
|
|
77
|
+
lte(fieldId: string, value: string): Builder;
|
|
78
|
+
/**
|
|
79
|
+
* Numeric value (greater than).
|
|
80
|
+
* eq=fieldId:123
|
|
81
|
+
*/
|
|
82
|
+
gt(fieldId: string, value: string): Builder;
|
|
83
|
+
/**
|
|
84
|
+
* Numeric value (grater than or equal to).
|
|
85
|
+
* eq=fieldId:123
|
|
86
|
+
*/
|
|
87
|
+
gte(fieldId: string, value: string): Builder;
|
|
88
|
+
/**
|
|
89
|
+
* Date type period search (range).
|
|
90
|
+
* yyyy-MM-dd
|
|
91
|
+
*/
|
|
92
|
+
term(fieldId: string, from: string, to: string): Builder;
|
|
93
|
+
/**
|
|
94
|
+
* Date type period search (from).
|
|
95
|
+
* yyyy-MM-dd
|
|
96
|
+
*/
|
|
97
|
+
termFrom(fieldId: string, from: string): Builder;
|
|
98
|
+
/**
|
|
99
|
+
* Date type period search (to).
|
|
100
|
+
* yyyy-MM-dd
|
|
101
|
+
*/
|
|
102
|
+
termTo(fieldId: string, to: string): Builder;
|
|
103
|
+
}
|
|
104
|
+
export {};
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright Rapid Table, Inc. or its affiliates. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the 'License').
|
|
6
|
+
* You may not use this file except in compliance with the License. A copy of the License is located at
|
|
7
|
+
*
|
|
8
|
+
* https://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* or in the 'license' file accompanying this file. This file is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR
|
|
11
|
+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
|
|
12
|
+
* and limitations under the License.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ReportBulkCountRequest = void 0;
|
|
16
|
+
const path_config_1 = require("../path-config");
|
|
17
|
+
class ReportBulkCountRequest {
|
|
18
|
+
constructor(path, query) {
|
|
19
|
+
this.path = path;
|
|
20
|
+
this.query = query;
|
|
21
|
+
}
|
|
22
|
+
getPath() {
|
|
23
|
+
return this.path;
|
|
24
|
+
}
|
|
25
|
+
getQuery() {
|
|
26
|
+
return this.query;
|
|
27
|
+
}
|
|
28
|
+
getBody() {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
static builder() {
|
|
32
|
+
return new Builder();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.ReportBulkCountRequest = ReportBulkCountRequest;
|
|
36
|
+
class Builder {
|
|
37
|
+
constructor() {
|
|
38
|
+
this._workspaceId = null;
|
|
39
|
+
this._projectIds = [];
|
|
40
|
+
this._query = null;
|
|
41
|
+
this._emp = null;
|
|
42
|
+
this._noemp = null;
|
|
43
|
+
this._includes = [];
|
|
44
|
+
this._eq = null;
|
|
45
|
+
this._neq = null;
|
|
46
|
+
this._lt = null;
|
|
47
|
+
this._lte = null;
|
|
48
|
+
this._gt = null;
|
|
49
|
+
this._gte = null;
|
|
50
|
+
this._term = null;
|
|
51
|
+
}
|
|
52
|
+
build() {
|
|
53
|
+
const path = path_config_1.PathConfig.ROOT + path_config_1.PathConfig.WORKSPACE + `/${this._workspaceId}` +
|
|
54
|
+
path_config_1.PathConfig.PROJECTS + path_config_1.PathConfig.REPORTS + path_config_1.PathConfig.COUNT;
|
|
55
|
+
const params = {};
|
|
56
|
+
if (!Array.isArray(this._projectIds) || this._projectIds.length === 0) {
|
|
57
|
+
throw new Error('IllegalArgumentException');
|
|
58
|
+
}
|
|
59
|
+
if (this._projectIds.length > 300) {
|
|
60
|
+
throw new Error('IllegalArgumentException');
|
|
61
|
+
}
|
|
62
|
+
params['projectIds'] = this._projectIds.join(',');
|
|
63
|
+
if (this._query) {
|
|
64
|
+
params['query'] = this._query;
|
|
65
|
+
}
|
|
66
|
+
if (this._emp) {
|
|
67
|
+
params['emp'] = this._emp;
|
|
68
|
+
}
|
|
69
|
+
if (this._noemp) {
|
|
70
|
+
params['noemp'] = this._noemp;
|
|
71
|
+
}
|
|
72
|
+
if (this._includes && this._includes.length > 0) {
|
|
73
|
+
params['includes'] = this._includes.join(';');
|
|
74
|
+
}
|
|
75
|
+
if (this._eq) {
|
|
76
|
+
params['eq'] = this._eq;
|
|
77
|
+
}
|
|
78
|
+
if (this._neq) {
|
|
79
|
+
params['neq'] = this._neq;
|
|
80
|
+
}
|
|
81
|
+
if (this._lt) {
|
|
82
|
+
params['lt'] = this._lt;
|
|
83
|
+
}
|
|
84
|
+
if (this._lte) {
|
|
85
|
+
params['lte'] = this._lte;
|
|
86
|
+
}
|
|
87
|
+
if (this._gt) {
|
|
88
|
+
params['gt'] = this._gt;
|
|
89
|
+
}
|
|
90
|
+
if (this._gte) {
|
|
91
|
+
params['gte'] = this._gte;
|
|
92
|
+
}
|
|
93
|
+
if (this._term) {
|
|
94
|
+
params['term'] = this._term;
|
|
95
|
+
}
|
|
96
|
+
return new ReportBulkCountRequest(path, params);
|
|
97
|
+
}
|
|
98
|
+
workspaceId(workspaceId) {
|
|
99
|
+
this._workspaceId = workspaceId;
|
|
100
|
+
return this;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Write the project IDs separated by commas.
|
|
104
|
+
* projectIds=project-id1,project-id2,project-id3
|
|
105
|
+
*/
|
|
106
|
+
projectIds(...ids) {
|
|
107
|
+
this._projectIds = ids;
|
|
108
|
+
return this;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Search string.
|
|
112
|
+
* query=searchText
|
|
113
|
+
*/
|
|
114
|
+
query(query) {
|
|
115
|
+
this._query = query;
|
|
116
|
+
return this;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Word search (blank fields only).
|
|
120
|
+
* emp=fieldId
|
|
121
|
+
*/
|
|
122
|
+
emp(fieldId) {
|
|
123
|
+
this._emp = fieldId;
|
|
124
|
+
return this;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Word search (non-blank fields only).
|
|
128
|
+
* noemp=fieldId
|
|
129
|
+
*/
|
|
130
|
+
noemp(fieldId) {
|
|
131
|
+
this._noemp = fieldId;
|
|
132
|
+
return this;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Word search (specific keyword).
|
|
136
|
+
* includes=fieldId1:searchText1;fieldId2:searchText2
|
|
137
|
+
* - For example, the arguments are as follows
|
|
138
|
+
* 'fieldId1:searchText1', 'fieldId2:searchText2',...
|
|
139
|
+
*/
|
|
140
|
+
includes(...includes) {
|
|
141
|
+
this._includes = includes;
|
|
142
|
+
return this;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Numeric value (equals).
|
|
146
|
+
* eq=fieldId:123
|
|
147
|
+
*/
|
|
148
|
+
eq(fieldId, value) {
|
|
149
|
+
this._eq = `${fieldId}:${value}`;
|
|
150
|
+
return this;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Numeric value (not equal).
|
|
154
|
+
* eq=fieldId:123
|
|
155
|
+
*/
|
|
156
|
+
neq(fieldId, value) {
|
|
157
|
+
this._neq = `${fieldId}:${value}`;
|
|
158
|
+
return this;
|
|
159
|
+
}
|
|
160
|
+
/**
|
|
161
|
+
* Numeric value (less than).
|
|
162
|
+
* eq=fieldId:123
|
|
163
|
+
*/
|
|
164
|
+
lt(fieldId, value) {
|
|
165
|
+
this._lt = `${fieldId}:${value}`;
|
|
166
|
+
return this;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Numeric value (less than or equal to).
|
|
170
|
+
* eq=fieldId:123
|
|
171
|
+
*/
|
|
172
|
+
lte(fieldId, value) {
|
|
173
|
+
this._lte = `${fieldId}:${value}`;
|
|
174
|
+
return this;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Numeric value (greater than).
|
|
178
|
+
* eq=fieldId:123
|
|
179
|
+
*/
|
|
180
|
+
gt(fieldId, value) {
|
|
181
|
+
this._gt = `${fieldId}:${value}`;
|
|
182
|
+
return this;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Numeric value (grater than or equal to).
|
|
186
|
+
* eq=fieldId:123
|
|
187
|
+
*/
|
|
188
|
+
gte(fieldId, value) {
|
|
189
|
+
this._gte = `${fieldId}:${value}`;
|
|
190
|
+
return this;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Date type period search (range).
|
|
194
|
+
* yyyy-MM-dd
|
|
195
|
+
*/
|
|
196
|
+
term(fieldId, from, to) {
|
|
197
|
+
this._term = `${fieldId}:${from},${to}`;
|
|
198
|
+
return this;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Date type period search (from).
|
|
202
|
+
* yyyy-MM-dd
|
|
203
|
+
*/
|
|
204
|
+
termFrom(fieldId, from) {
|
|
205
|
+
this._term = `${fieldId}:${from},`;
|
|
206
|
+
return this;
|
|
207
|
+
}
|
|
208
|
+
/**
|
|
209
|
+
* Date type period search (to).
|
|
210
|
+
* yyyy-MM-dd
|
|
211
|
+
*/
|
|
212
|
+
termTo(fieldId, to) {
|
|
213
|
+
this._term = `${fieldId}:,${to}`;
|
|
214
|
+
return this;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
//# sourceMappingURL=report-bulk-count-request.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-bulk-count-request.js","sourceRoot":"","sources":["../../../src/resource/report/report-bulk-count-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AAEH,gDAA4C;AAG5C,MAAa,sBAAsB;IAE/B,YAAoB,IAAY,EAAU,KAAyC;QAA/D,SAAI,GAAJ,IAAI,CAAQ;QAAU,UAAK,GAAL,KAAK,CAAoC;IACnF,CAAC;IAEM,OAAO;QACV,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,QAAQ;QACX,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAEM,OAAO;QACV,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,MAAM,CAAC,OAAO;QACjB,OAAO,IAAI,OAAO,EAAE,CAAC;IACzB,CAAC;CAEJ;AArBD,wDAqBC;AAED,MAAM,OAAO;IAAb;QACY,iBAAY,GAAkB,IAAI,CAAC;QACnC,gBAAW,GAAa,EAAE,CAAC;QAC3B,WAAM,GAAkB,IAAI,CAAC;QAC7B,SAAI,GAAkB,IAAI,CAAC;QAC3B,WAAM,GAAkB,IAAI,CAAC;QAC7B,cAAS,GAAa,EAAE,CAAC;QACzB,QAAG,GAAkB,IAAI,CAAC;QAC1B,SAAI,GAAkB,IAAI,CAAC;QAC3B,QAAG,GAAkB,IAAI,CAAC;QAC1B,SAAI,GAAkB,IAAI,CAAC;QAC3B,QAAG,GAAkB,IAAI,CAAC;QAC1B,SAAI,GAAkB,IAAI,CAAC;QAC3B,UAAK,GAAkB,IAAI,CAAC;IA0LxC,CAAC;IAxLU,KAAK;QACR,MAAM,IAAI,GAAG,wBAAU,CAAC,IAAI,GAAG,wBAAU,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,YAAY,EAAE;YACzE,wBAAU,CAAC,QAAQ,GAAG,wBAAU,CAAC,OAAO,GAAG,wBAAU,CAAC,KAAK,CAAC;QAEhE,MAAM,MAAM,GAAu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AE,CAAC;QACjC,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { IRequest } from '../request.interface';
|
|
2
|
+
export declare class ReportBulkSearchRequest implements IRequest {
|
|
3
|
+
path: string;
|
|
4
|
+
query: {
|
|
5
|
+
[key: string]: string | number;
|
|
6
|
+
};
|
|
7
|
+
constructor(path: string, query: {
|
|
8
|
+
[key: string]: string | number;
|
|
9
|
+
});
|
|
10
|
+
getPath(): string;
|
|
11
|
+
getQuery(): {
|
|
12
|
+
[key: string]: string | number;
|
|
13
|
+
};
|
|
14
|
+
getBody(): string | null;
|
|
15
|
+
static builder(): Builder;
|
|
16
|
+
}
|
|
17
|
+
declare class Builder {
|
|
18
|
+
private _workspaceId;
|
|
19
|
+
private _projectIds;
|
|
20
|
+
private _page;
|
|
21
|
+
private _size;
|
|
22
|
+
private _asc;
|
|
23
|
+
private _desc;
|
|
24
|
+
private _query;
|
|
25
|
+
private _emp;
|
|
26
|
+
private _noemp;
|
|
27
|
+
private _includes;
|
|
28
|
+
private _eq;
|
|
29
|
+
private _neq;
|
|
30
|
+
private _lt;
|
|
31
|
+
private _lte;
|
|
32
|
+
private _gt;
|
|
33
|
+
private _gte;
|
|
34
|
+
private _term;
|
|
35
|
+
build(): ReportBulkSearchRequest;
|
|
36
|
+
workspaceId(workspaceId: string): Builder;
|
|
37
|
+
/**
|
|
38
|
+
* Write the project IDs separated by commas.
|
|
39
|
+
* projectIds=project-id1,project-id2,project-id3
|
|
40
|
+
*/
|
|
41
|
+
projectIds(...ids: string[]): Builder;
|
|
42
|
+
page(page: number): Builder;
|
|
43
|
+
size(size: number): Builder;
|
|
44
|
+
/**
|
|
45
|
+
* Ascending sort field.
|
|
46
|
+
* - Any
|
|
47
|
+
* asc=fieldId
|
|
48
|
+
* - Creation date
|
|
49
|
+
* asc=cdt
|
|
50
|
+
* - Update Date
|
|
51
|
+
* asc=udt
|
|
52
|
+
*/
|
|
53
|
+
asc(fieldId: string): Builder;
|
|
54
|
+
/**
|
|
55
|
+
* Descending sort field.
|
|
56
|
+
* - Any
|
|
57
|
+
* desc=fieldId
|
|
58
|
+
* - Creation date
|
|
59
|
+
* desc=cdt
|
|
60
|
+
* - Update Date
|
|
61
|
+
* desc=udt
|
|
62
|
+
*/
|
|
63
|
+
desc(fieldId: string): Builder;
|
|
64
|
+
/**
|
|
65
|
+
* Search string.
|
|
66
|
+
* query=searchText
|
|
67
|
+
*/
|
|
68
|
+
query(query: string): Builder;
|
|
69
|
+
/**
|
|
70
|
+
* Word search (blank fields only).
|
|
71
|
+
* emp=fieldId
|
|
72
|
+
*/
|
|
73
|
+
emp(fieldId: string): Builder;
|
|
74
|
+
/**
|
|
75
|
+
* Word search (non-blank fields only).
|
|
76
|
+
* noemp=fieldId
|
|
77
|
+
*/
|
|
78
|
+
noemp(fieldId: string): Builder;
|
|
79
|
+
/**
|
|
80
|
+
* Word search (specific keyword).
|
|
81
|
+
* includes=fieldId1:searchText1;fieldId2:searchText2
|
|
82
|
+
* - For example, the arguments are as follows
|
|
83
|
+
* 'fieldId1:searchText1', 'fieldId2:searchText2',...
|
|
84
|
+
*/
|
|
85
|
+
includes(...includes: string[]): Builder;
|
|
86
|
+
/**
|
|
87
|
+
* Numeric value (equals).
|
|
88
|
+
* eq=fieldId:123
|
|
89
|
+
*/
|
|
90
|
+
eq(fieldId: string, value: string): Builder;
|
|
91
|
+
/**
|
|
92
|
+
* Numeric value (not equal).
|
|
93
|
+
* eq=fieldId:123
|
|
94
|
+
*/
|
|
95
|
+
neq(fieldId: string, value: string): Builder;
|
|
96
|
+
/**
|
|
97
|
+
* Numeric value (less than).
|
|
98
|
+
* eq=fieldId:123
|
|
99
|
+
*/
|
|
100
|
+
lt(fieldId: string, value: string): Builder;
|
|
101
|
+
/**
|
|
102
|
+
* Numeric value (less than or equal to).
|
|
103
|
+
* eq=fieldId:123
|
|
104
|
+
*/
|
|
105
|
+
lte(fieldId: string, value: string): Builder;
|
|
106
|
+
/**
|
|
107
|
+
* Numeric value (greater than).
|
|
108
|
+
* eq=fieldId:123
|
|
109
|
+
*/
|
|
110
|
+
gt(fieldId: string, value: string): Builder;
|
|
111
|
+
/**
|
|
112
|
+
* Numeric value (grater than or equal to).
|
|
113
|
+
* eq=fieldId:123
|
|
114
|
+
*/
|
|
115
|
+
gte(fieldId: string, value: string): Builder;
|
|
116
|
+
/**
|
|
117
|
+
* Date type period search (range).
|
|
118
|
+
* yyyy-MM-dd
|
|
119
|
+
*/
|
|
120
|
+
term(fieldId: string, from: string, to: string): Builder;
|
|
121
|
+
/**
|
|
122
|
+
* Date type period search (from).
|
|
123
|
+
* yyyy-MM-dd
|
|
124
|
+
*/
|
|
125
|
+
termFrom(fieldId: string, from: string): Builder;
|
|
126
|
+
/**
|
|
127
|
+
* Date type period search (to).
|
|
128
|
+
* yyyy-MM-dd
|
|
129
|
+
*/
|
|
130
|
+
termTo(fieldId: string, to: string): Builder;
|
|
131
|
+
}
|
|
132
|
+
export {};
|