@progress/sitefinity-webservices-sdk 0.2.72 → 0.3.0
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/docs/assets/js/search.js +1 -1
- package/dist/docs/classes/_expression_.binaryexpression.html +39 -1
- package/dist/docs/classes/_expression_.complexexpression.html +3 -3
- package/dist/docs/classes/_querybuilder_.querybuilder.html +29 -2
- package/dist/docs/classes/_wherequery_.wherequery.html +31 -10
- package/dist/sitefinity-webservices-sdk.js +29 -10
- package/dist/sitefinity-webservices-sdk.js.map +1 -1
- package/dist/sitefinity-webservices-sdk.min.js +2 -2
- package/package.json +1 -1
- package/src/Expression.ts +6 -2
- package/src/QueryBuilder.ts +14 -5
- package/src/WhereQuery.ts +18 -15
- package/type.txt +1 -1
- package/version.txt +1 -1
|
@@ -93,6 +93,7 @@
|
|
|
93
93
|
<section class="tsd-index-section ">
|
|
94
94
|
<h3>Properties</h3>
|
|
95
95
|
<ul class="tsd-index-list">
|
|
96
|
+
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_expression_.binaryexpression.html#casesensitive" class="tsd-kind-icon">case<wbr>Sensitive</a></li>
|
|
96
97
|
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_expression_.binaryexpression.html#constant" class="tsd-kind-icon">constant</a></li>
|
|
97
98
|
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_expression_.binaryexpression.html#parameter" class="tsd-kind-icon">parameter</a></li>
|
|
98
99
|
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-inherited"><a href="_expression_.binaryexpression.html#type" class="tsd-kind-icon">type</a></li>
|
|
@@ -104,6 +105,7 @@
|
|
|
104
105
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_expression_.binaryexpression.html#getconstant" class="tsd-kind-icon">get<wbr>Constant</a></li>
|
|
105
106
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_expression_.binaryexpression.html#getparameter" class="tsd-kind-icon">get<wbr>Parameter</a></li>
|
|
106
107
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-inherited"><a href="_expression_.binaryexpression.html#gettype" class="tsd-kind-icon">get<wbr>Type</a></li>
|
|
108
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_expression_.binaryexpression.html#iscasesensitive" class="tsd-kind-icon">is<wbr>Case<wbr>Sensitive</a></li>
|
|
107
109
|
</ul>
|
|
108
110
|
</section>
|
|
109
111
|
</div>
|
|
@@ -115,7 +117,7 @@
|
|
|
115
117
|
<a name="constructor" class="tsd-anchor"></a>
|
|
116
118
|
<h3>constructor</h3>
|
|
117
119
|
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
|
|
118
|
-
<li class="tsd-signature tsd-kind-icon">new <wbr>Binary<wbr>Expression<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, parameter<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, constant<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_expression_.binaryexpression.html" class="tsd-signature-type">BinaryExpression</a></li>
|
|
120
|
+
<li class="tsd-signature tsd-kind-icon">new <wbr>Binary<wbr>Expression<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, parameter<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, constant<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, caseSensitive<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_expression_.binaryexpression.html" class="tsd-signature-type">BinaryExpression</a></li>
|
|
119
121
|
</ul>
|
|
120
122
|
<ul class="tsd-descriptions">
|
|
121
123
|
<li class="tsd-description">
|
|
@@ -136,6 +138,9 @@
|
|
|
136
138
|
<li>
|
|
137
139
|
<h5>constant: <span class="tsd-signature-type">any</span></h5>
|
|
138
140
|
</li>
|
|
141
|
+
<li>
|
|
142
|
+
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> caseSensitive: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></h5>
|
|
143
|
+
</li>
|
|
139
144
|
</ul>
|
|
140
145
|
<h4 class="tsd-returns-title">Returns <a href="_expression_.binaryexpression.html" class="tsd-signature-type">BinaryExpression</a></h4>
|
|
141
146
|
</li>
|
|
@@ -144,6 +149,16 @@
|
|
|
144
149
|
</section>
|
|
145
150
|
<section class="tsd-panel-group tsd-member-group ">
|
|
146
151
|
<h2>Properties</h2>
|
|
152
|
+
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
153
|
+
<a name="casesensitive" class="tsd-anchor"></a>
|
|
154
|
+
<h3>case<wbr>Sensitive</h3>
|
|
155
|
+
<div class="tsd-signature tsd-kind-icon">case<wbr>Sensitive<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span></div>
|
|
156
|
+
<aside class="tsd-sources">
|
|
157
|
+
<ul>
|
|
158
|
+
<li>Defined in Expression.ts:12</li>
|
|
159
|
+
</ul>
|
|
160
|
+
</aside>
|
|
161
|
+
</section>
|
|
147
162
|
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class">
|
|
148
163
|
<a name="constant" class="tsd-anchor"></a>
|
|
149
164
|
<h3>constant</h3>
|
|
@@ -230,6 +245,23 @@
|
|
|
230
245
|
</li>
|
|
231
246
|
</ul>
|
|
232
247
|
</section>
|
|
248
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
|
|
249
|
+
<a name="iscasesensitive" class="tsd-anchor"></a>
|
|
250
|
+
<h3>is<wbr>Case<wbr>Sensitive</h3>
|
|
251
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
252
|
+
<li class="tsd-signature tsd-kind-icon">is<wbr>Case<wbr>Sensitive<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
|
|
253
|
+
</ul>
|
|
254
|
+
<ul class="tsd-descriptions">
|
|
255
|
+
<li class="tsd-description">
|
|
256
|
+
<aside class="tsd-sources">
|
|
257
|
+
<ul>
|
|
258
|
+
<li>Defined in Expression.ts:24</li>
|
|
259
|
+
</ul>
|
|
260
|
+
</aside>
|
|
261
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
|
|
262
|
+
</li>
|
|
263
|
+
</ul>
|
|
264
|
+
</section>
|
|
233
265
|
</section>
|
|
234
266
|
</div>
|
|
235
267
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
@@ -310,6 +342,9 @@
|
|
|
310
342
|
<li class=" tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite">
|
|
311
343
|
<a href="_expression_.binaryexpression.html#constructor" class="tsd-kind-icon">constructor</a>
|
|
312
344
|
</li>
|
|
345
|
+
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
346
|
+
<a href="_expression_.binaryexpression.html#casesensitive" class="tsd-kind-icon">case<wbr>Sensitive</a>
|
|
347
|
+
</li>
|
|
313
348
|
<li class=" tsd-kind-property tsd-parent-kind-class">
|
|
314
349
|
<a href="_expression_.binaryexpression.html#constant" class="tsd-kind-icon">constant</a>
|
|
315
350
|
</li>
|
|
@@ -328,6 +363,9 @@
|
|
|
328
363
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-inherited">
|
|
329
364
|
<a href="_expression_.binaryexpression.html#gettype" class="tsd-kind-icon">get<wbr>Type</a>
|
|
330
365
|
</li>
|
|
366
|
+
<li class=" tsd-kind-method tsd-parent-kind-class">
|
|
367
|
+
<a href="_expression_.binaryexpression.html#iscasesensitive" class="tsd-kind-icon">is<wbr>Case<wbr>Sensitive</a>
|
|
368
|
+
</li>
|
|
331
369
|
</ul>
|
|
332
370
|
</li>
|
|
333
371
|
</ul>
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
<aside class="tsd-sources">
|
|
121
121
|
<p>Overrides <a href="_expression_.expressionbase.html">ExpressionBase</a>.<a href="_expression_.expressionbase.html#constructor">constructor</a></p>
|
|
122
122
|
<ul>
|
|
123
|
-
<li>Defined in Expression.ts:
|
|
123
|
+
<li>Defined in Expression.ts:29</li>
|
|
124
124
|
</ul>
|
|
125
125
|
</aside>
|
|
126
126
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
<div class="tsd-signature tsd-kind-icon">expressions<span class="tsd-signature-symbol">:</span> <a href="_expression_.expressionbase.html" class="tsd-signature-type">ExpressionBase</a><span class="tsd-signature-symbol">[]</span></div>
|
|
146
146
|
<aside class="tsd-sources">
|
|
147
147
|
<ul>
|
|
148
|
-
<li>Defined in Expression.ts:
|
|
148
|
+
<li>Defined in Expression.ts:30</li>
|
|
149
149
|
</ul>
|
|
150
150
|
</aside>
|
|
151
151
|
</section>
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
<li class="tsd-description">
|
|
174
174
|
<aside class="tsd-sources">
|
|
175
175
|
<ul>
|
|
176
|
-
<li>Defined in Expression.ts:
|
|
176
|
+
<li>Defined in Expression.ts:34</li>
|
|
177
177
|
</ul>
|
|
178
178
|
</aside>
|
|
179
179
|
<h4 class="tsd-returns-title">Returns <a href="_expression_.expressionbase.html" class="tsd-signature-type">ExpressionBase</a><span class="tsd-signature-symbol">[]</span></h4>
|
|
@@ -96,6 +96,7 @@
|
|
|
96
96
|
<ul class="tsd-index-list">
|
|
97
97
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_querybuilder_.querybuilder.html#_buildbinaryexpression" class="tsd-kind-icon">_build<wbr>Binary<wbr>Expression</a></li>
|
|
98
98
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_querybuilder_.querybuilder.html#_buildcomplexexpression" class="tsd-kind-icon">_build<wbr>Complex<wbr>Expression</a></li>
|
|
99
|
+
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_querybuilder_.querybuilder.html#_buildexpressionparameter" class="tsd-kind-icon">_build<wbr>Expression<wbr>Parameter</a></li>
|
|
99
100
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_querybuilder_.querybuilder.html#_buildodataqueryparams" class="tsd-kind-icon">_buildOData<wbr>Query<wbr>Params</a></li>
|
|
100
101
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_querybuilder_.querybuilder.html#_checktype" class="tsd-kind-icon">_check<wbr>Type</a></li>
|
|
101
102
|
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_querybuilder_.querybuilder.html#_isguid" class="tsd-kind-icon">_is<wbr>Guid</a></li>
|
|
@@ -195,6 +196,29 @@
|
|
|
195
196
|
</li>
|
|
196
197
|
</ul>
|
|
197
198
|
</section>
|
|
199
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
200
|
+
<a name="_buildexpressionparameter" class="tsd-anchor"></a>
|
|
201
|
+
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _build<wbr>Expression<wbr>Parameter</h3>
|
|
202
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
203
|
+
<li class="tsd-signature tsd-kind-icon">_build<wbr>Expression<wbr>Parameter<span class="tsd-signature-symbol">(</span>expression<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
|
|
204
|
+
</ul>
|
|
205
|
+
<ul class="tsd-descriptions">
|
|
206
|
+
<li class="tsd-description">
|
|
207
|
+
<aside class="tsd-sources">
|
|
208
|
+
<ul>
|
|
209
|
+
<li>Defined in QueryBuilder.ts:158</li>
|
|
210
|
+
</ul>
|
|
211
|
+
</aside>
|
|
212
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
213
|
+
<ul class="tsd-parameters">
|
|
214
|
+
<li>
|
|
215
|
+
<h5>expression: <span class="tsd-signature-type">any</span></h5>
|
|
216
|
+
</li>
|
|
217
|
+
</ul>
|
|
218
|
+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
|
|
219
|
+
</li>
|
|
220
|
+
</ul>
|
|
221
|
+
</section>
|
|
198
222
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
199
223
|
<a name="_buildodataqueryparams" class="tsd-anchor"></a>
|
|
200
224
|
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _buildOData<wbr>Query<wbr>Params</h3>
|
|
@@ -231,7 +255,7 @@
|
|
|
231
255
|
<li class="tsd-description">
|
|
232
256
|
<aside class="tsd-sources">
|
|
233
257
|
<ul>
|
|
234
|
-
<li>Defined in QueryBuilder.ts:
|
|
258
|
+
<li>Defined in QueryBuilder.ts:166</li>
|
|
235
259
|
</ul>
|
|
236
260
|
</aside>
|
|
237
261
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
@@ -254,7 +278,7 @@
|
|
|
254
278
|
<li class="tsd-description">
|
|
255
279
|
<aside class="tsd-sources">
|
|
256
280
|
<ul>
|
|
257
|
-
<li>Defined in QueryBuilder.ts:
|
|
281
|
+
<li>Defined in QueryBuilder.ts:183</li>
|
|
258
282
|
</ul>
|
|
259
283
|
</aside>
|
|
260
284
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
@@ -373,6 +397,9 @@
|
|
|
373
397
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
374
398
|
<a href="_querybuilder_.querybuilder.html#_buildcomplexexpression" class="tsd-kind-icon">_build<wbr>Complex<wbr>Expression</a>
|
|
375
399
|
</li>
|
|
400
|
+
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
401
|
+
<a href="_querybuilder_.querybuilder.html#_buildexpressionparameter" class="tsd-kind-icon">_build<wbr>Expression<wbr>Parameter</a>
|
|
402
|
+
</li>
|
|
376
403
|
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
377
404
|
<a href="_querybuilder_.querybuilder.html#_buildodataqueryparams" class="tsd-kind-icon">_buildOData<wbr>Query<wbr>Params</a>
|
|
378
405
|
</li>
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
<li class="tsd-description">
|
|
194
194
|
<aside class="tsd-sources">
|
|
195
195
|
<ul>
|
|
196
|
-
<li>Defined in WhereQuery.ts:
|
|
196
|
+
<li>Defined in WhereQuery.ts:194</li>
|
|
197
197
|
</ul>
|
|
198
198
|
</aside>
|
|
199
199
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
@@ -216,7 +216,7 @@
|
|
|
216
216
|
<li class="tsd-description">
|
|
217
217
|
<aside class="tsd-sources">
|
|
218
218
|
<ul>
|
|
219
|
-
<li>Defined in WhereQuery.ts:
|
|
219
|
+
<li>Defined in WhereQuery.ts:190</li>
|
|
220
220
|
</ul>
|
|
221
221
|
</aside>
|
|
222
222
|
<h4 class="tsd-returns-title">Returns <a href="_expression_.complexexpression.html" class="tsd-signature-type">ComplexExpression</a></h4>
|
|
@@ -227,7 +227,7 @@
|
|
|
227
227
|
<a name="_simple" class="tsd-anchor"></a>
|
|
228
228
|
<h3><span class="tsd-flag ts-flagPrivate">Private</span> _simple</h3>
|
|
229
229
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
230
|
-
<li class="tsd-signature tsd-kind-icon">_simple<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, parameter<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, constant<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_wherequery_.wherequery.html" class="tsd-signature-type">WhereQuery</a></li>
|
|
230
|
+
<li class="tsd-signature tsd-kind-icon">_simple<span class="tsd-signature-symbol">(</span>type<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, parameter<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, constant<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, caseSensitive<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_wherequery_.wherequery.html" class="tsd-signature-type">WhereQuery</a></li>
|
|
231
231
|
</ul>
|
|
232
232
|
<ul class="tsd-descriptions">
|
|
233
233
|
<li class="tsd-description">
|
|
@@ -247,6 +247,9 @@
|
|
|
247
247
|
<li>
|
|
248
248
|
<h5>constant: <span class="tsd-signature-type">any</span></h5>
|
|
249
249
|
</li>
|
|
250
|
+
<li>
|
|
251
|
+
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> caseSensitive: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></h5>
|
|
252
|
+
</li>
|
|
250
253
|
</ul>
|
|
251
254
|
<h4 class="tsd-returns-title">Returns <a href="_wherequery_.wherequery.html" class="tsd-signature-type">WhereQuery</a></h4>
|
|
252
255
|
</li>
|
|
@@ -316,13 +319,13 @@
|
|
|
316
319
|
<a name="contains" class="tsd-anchor"></a>
|
|
317
320
|
<h3>contains</h3>
|
|
318
321
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
319
|
-
<li class="tsd-signature tsd-kind-icon">contains<span class="tsd-signature-symbol">(</span>parameter<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, constant<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_wherequery_.wherequery.html" class="tsd-signature-type">WhereQuery</a></li>
|
|
322
|
+
<li class="tsd-signature tsd-kind-icon">contains<span class="tsd-signature-symbol">(</span>parameter<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, constant<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, caseSensitive<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_wherequery_.wherequery.html" class="tsd-signature-type">WhereQuery</a></li>
|
|
320
323
|
</ul>
|
|
321
324
|
<ul class="tsd-descriptions">
|
|
322
325
|
<li class="tsd-description">
|
|
323
326
|
<aside class="tsd-sources">
|
|
324
327
|
<ul>
|
|
325
|
-
<li>Defined in WhereQuery.ts:
|
|
328
|
+
<li>Defined in WhereQuery.ts:155</li>
|
|
326
329
|
</ul>
|
|
327
330
|
</aside>
|
|
328
331
|
<div class="tsd-comment tsd-typography">
|
|
@@ -346,6 +349,12 @@
|
|
|
346
349
|
<li>
|
|
347
350
|
<h5>constant: <span class="tsd-signature-type">any</span></h5>
|
|
348
351
|
</li>
|
|
352
|
+
<li>
|
|
353
|
+
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> caseSensitive: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></h5>
|
|
354
|
+
<div class="tsd-comment tsd-typography">
|
|
355
|
+
<p>A flag indicating if tolower should be applied to the parameter</p>
|
|
356
|
+
</div>
|
|
357
|
+
</li>
|
|
349
358
|
</ul>
|
|
350
359
|
<h4 class="tsd-returns-title">Returns <a href="_wherequery_.wherequery.html" class="tsd-signature-type">WhereQuery</a></h4>
|
|
351
360
|
</li>
|
|
@@ -361,7 +370,7 @@
|
|
|
361
370
|
<li class="tsd-description">
|
|
362
371
|
<aside class="tsd-sources">
|
|
363
372
|
<ul>
|
|
364
|
-
<li>Defined in WhereQuery.ts:
|
|
373
|
+
<li>Defined in WhereQuery.ts:179</li>
|
|
365
374
|
</ul>
|
|
366
375
|
</aside>
|
|
367
376
|
<div class="tsd-comment tsd-typography">
|
|
@@ -385,13 +394,13 @@
|
|
|
385
394
|
<a name="endswith" class="tsd-anchor"></a>
|
|
386
395
|
<h3>ends<wbr>With</h3>
|
|
387
396
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
388
|
-
<li class="tsd-signature tsd-kind-icon">ends<wbr>With<span class="tsd-signature-symbol">(</span>parameter<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, constant<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_wherequery_.wherequery.html" class="tsd-signature-type">WhereQuery</a></li>
|
|
397
|
+
<li class="tsd-signature tsd-kind-icon">ends<wbr>With<span class="tsd-signature-symbol">(</span>parameter<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, constant<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, caseSensitive<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_wherequery_.wherequery.html" class="tsd-signature-type">WhereQuery</a></li>
|
|
389
398
|
</ul>
|
|
390
399
|
<ul class="tsd-descriptions">
|
|
391
400
|
<li class="tsd-description">
|
|
392
401
|
<aside class="tsd-sources">
|
|
393
402
|
<ul>
|
|
394
|
-
<li>Defined in WhereQuery.ts:
|
|
403
|
+
<li>Defined in WhereQuery.ts:169</li>
|
|
395
404
|
</ul>
|
|
396
405
|
</aside>
|
|
397
406
|
<div class="tsd-comment tsd-typography">
|
|
@@ -415,6 +424,12 @@
|
|
|
415
424
|
<li>
|
|
416
425
|
<h5>constant: <span class="tsd-signature-type">any</span></h5>
|
|
417
426
|
</li>
|
|
427
|
+
<li>
|
|
428
|
+
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> caseSensitive: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></h5>
|
|
429
|
+
<div class="tsd-comment tsd-typography">
|
|
430
|
+
<p>A flag indicating if tolower should be applied to the parameter</p>
|
|
431
|
+
</div>
|
|
432
|
+
</li>
|
|
418
433
|
</ul>
|
|
419
434
|
<h4 class="tsd-returns-title">Returns <a href="_wherequery_.wherequery.html" class="tsd-signature-type">WhereQuery</a></h4>
|
|
420
435
|
</li>
|
|
@@ -718,13 +733,13 @@
|
|
|
718
733
|
<a name="startswith" class="tsd-anchor"></a>
|
|
719
734
|
<h3>starts<wbr>With</h3>
|
|
720
735
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
721
|
-
<li class="tsd-signature tsd-kind-icon">starts<wbr>With<span class="tsd-signature-symbol">(</span>parameter<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, constant<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_wherequery_.wherequery.html" class="tsd-signature-type">WhereQuery</a></li>
|
|
736
|
+
<li class="tsd-signature tsd-kind-icon">starts<wbr>With<span class="tsd-signature-symbol">(</span>parameter<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, constant<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, caseSensitive<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_wherequery_.wherequery.html" class="tsd-signature-type">WhereQuery</a></li>
|
|
722
737
|
</ul>
|
|
723
738
|
<ul class="tsd-descriptions">
|
|
724
739
|
<li class="tsd-description">
|
|
725
740
|
<aside class="tsd-sources">
|
|
726
741
|
<ul>
|
|
727
|
-
<li>Defined in WhereQuery.ts:
|
|
742
|
+
<li>Defined in WhereQuery.ts:141</li>
|
|
728
743
|
</ul>
|
|
729
744
|
</aside>
|
|
730
745
|
<div class="tsd-comment tsd-typography">
|
|
@@ -748,6 +763,12 @@
|
|
|
748
763
|
<li>
|
|
749
764
|
<h5>constant: <span class="tsd-signature-type">any</span></h5>
|
|
750
765
|
</li>
|
|
766
|
+
<li>
|
|
767
|
+
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> caseSensitive: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></h5>
|
|
768
|
+
<div class="tsd-comment tsd-typography">
|
|
769
|
+
<p>A flag indicating if tolower should be applied to the parameter</p>
|
|
770
|
+
</div>
|
|
771
|
+
</li>
|
|
751
772
|
</ul>
|
|
752
773
|
<h4 class="tsd-returns-title">Returns <a href="_wherequery_.wherequery.html" class="tsd-signature-type">WhereQuery</a></h4>
|
|
753
774
|
</li>
|
|
@@ -972,10 +972,12 @@ var ExpressionBase = /** @class */ (function () {
|
|
|
972
972
|
exports.ExpressionBase = ExpressionBase;
|
|
973
973
|
var BinaryExpression = /** @class */ (function (_super) {
|
|
974
974
|
tslib_1.__extends(BinaryExpression, _super);
|
|
975
|
-
function BinaryExpression(type, parameter, constant) {
|
|
975
|
+
function BinaryExpression(type, parameter, constant, caseSensitive) {
|
|
976
|
+
if (caseSensitive === void 0) { caseSensitive = true; }
|
|
976
977
|
var _this = _super.call(this, type) || this;
|
|
977
978
|
_this.parameter = parameter;
|
|
978
979
|
_this.constant = constant;
|
|
980
|
+
_this.caseSensitive = caseSensitive;
|
|
979
981
|
return _this;
|
|
980
982
|
}
|
|
981
983
|
BinaryExpression.prototype.getParameter = function () {
|
|
@@ -984,6 +986,9 @@ var BinaryExpression = /** @class */ (function (_super) {
|
|
|
984
986
|
BinaryExpression.prototype.getConstant = function () {
|
|
985
987
|
return this.constant;
|
|
986
988
|
};
|
|
989
|
+
BinaryExpression.prototype.isCaseSensitive = function () {
|
|
990
|
+
return this.caseSensitive;
|
|
991
|
+
};
|
|
987
992
|
return BinaryExpression;
|
|
988
993
|
}(ExpressionBase));
|
|
989
994
|
exports.BinaryExpression = BinaryExpression;
|
|
@@ -1457,7 +1462,8 @@ var QueryBuilder = /** @class */ (function () {
|
|
|
1457
1462
|
case ExpressionType.contains:
|
|
1458
1463
|
case ExpressionType.startsWith:
|
|
1459
1464
|
case ExpressionType.endsWith:
|
|
1460
|
-
|
|
1465
|
+
var expressionParameter = this._buildExpressionParameter(expression);
|
|
1466
|
+
result = type.toLowerCase() + "(" + expressionParameter + ", " + this._checkType(expression.getConstant()) + ")";
|
|
1461
1467
|
break;
|
|
1462
1468
|
default:
|
|
1463
1469
|
var msg = "Unsupported operator " + type;
|
|
@@ -1465,6 +1471,12 @@ var QueryBuilder = /** @class */ (function () {
|
|
|
1465
1471
|
}
|
|
1466
1472
|
return result;
|
|
1467
1473
|
};
|
|
1474
|
+
QueryBuilder.prototype._buildExpressionParameter = function (expression) {
|
|
1475
|
+
if (expression.isCaseSensitive()) {
|
|
1476
|
+
return "" + expression.getParameter();
|
|
1477
|
+
}
|
|
1478
|
+
return "tolower(" + expression.getParameter() + ")";
|
|
1479
|
+
};
|
|
1468
1480
|
QueryBuilder.prototype._checkType = function (constant) {
|
|
1469
1481
|
if (this._isGuid(constant))
|
|
1470
1482
|
return constant;
|
|
@@ -2936,8 +2948,9 @@ var WhereQuery = /** @class */ (function () {
|
|
|
2936
2948
|
WhereQuery.prototype.not = function () {
|
|
2937
2949
|
return new WhereQuery(this, OperatorType.not);
|
|
2938
2950
|
};
|
|
2939
|
-
WhereQuery.prototype._simple = function (type, parameter, constant) {
|
|
2940
|
-
|
|
2951
|
+
WhereQuery.prototype._simple = function (type, parameter, constant, caseSensitive) {
|
|
2952
|
+
if (caseSensitive === void 0) { caseSensitive = true; }
|
|
2953
|
+
var currentExpr = new Expression_1.BinaryExpression(type, parameter, constant, caseSensitive);
|
|
2941
2954
|
var subExpressions = this.expression.getExpressions();
|
|
2942
2955
|
subExpressions.push(currentExpr);
|
|
2943
2956
|
if (this.expression.getType() === OperatorType.not && subExpressions.length > 1)
|
|
@@ -3016,11 +3029,13 @@ var WhereQuery = /** @class */ (function () {
|
|
|
3016
3029
|
* @memberOf WhereQuery.prototype
|
|
3017
3030
|
* @param {string} field Field name.
|
|
3018
3031
|
* @param {string} value The string that the field should start with.
|
|
3032
|
+
* @param {boolean} caseSensitive A flag indicating if tolower should be applied to the parameter
|
|
3019
3033
|
* @param {string} [options] A string of regex options to use. See [specs](http://docs.mongodb.org/manual/reference/operator/query/regex/#op._S_options) for a description of available options.
|
|
3020
3034
|
* @returns {WhereQuery}
|
|
3021
3035
|
*/
|
|
3022
|
-
WhereQuery.prototype.startsWith = function (parameter, constant) {
|
|
3023
|
-
|
|
3036
|
+
WhereQuery.prototype.startsWith = function (parameter, constant, caseSensitive) {
|
|
3037
|
+
if (caseSensitive === void 0) { caseSensitive = true; }
|
|
3038
|
+
return this._simple(OperatorType.startsWith, parameter, constant, caseSensitive);
|
|
3024
3039
|
};
|
|
3025
3040
|
/**
|
|
3026
3041
|
* Adds a condition that a field value must *contain* a specified string.
|
|
@@ -3028,11 +3043,13 @@ var WhereQuery = /** @class */ (function () {
|
|
|
3028
3043
|
* @memberOf WhereQuery.prototype
|
|
3029
3044
|
* @param {string} field Field name.
|
|
3030
3045
|
* @param {string} value The string that the field should start with.
|
|
3046
|
+
* @param {boolean} caseSensitive A flag indicating if tolower should be applied to the parameter
|
|
3031
3047
|
* @param {string} [options] A string of regex options to use. See [specs](http://docs.mongodb.org/manual/reference/operator/query/regex/#op._S_options) for a description of available options.
|
|
3032
3048
|
* @returns {WhereQuery}
|
|
3033
3049
|
*/
|
|
3034
|
-
WhereQuery.prototype.contains = function (parameter, constant) {
|
|
3035
|
-
|
|
3050
|
+
WhereQuery.prototype.contains = function (parameter, constant, caseSensitive) {
|
|
3051
|
+
if (caseSensitive === void 0) { caseSensitive = true; }
|
|
3052
|
+
return this._simple(OperatorType.contains, parameter, constant, caseSensitive);
|
|
3036
3053
|
};
|
|
3037
3054
|
/**
|
|
3038
3055
|
* Adds a condition that a field value must *end* with a specified string.
|
|
@@ -3040,11 +3057,13 @@ var WhereQuery = /** @class */ (function () {
|
|
|
3040
3057
|
* @memberOf WhereQuery.prototype
|
|
3041
3058
|
* @param {string} field Field name.
|
|
3042
3059
|
* @param {string} value The string that the field should end with.
|
|
3060
|
+
* @param {boolean} caseSensitive A flag indicating if tolower should be applied to the parameter
|
|
3043
3061
|
* @param {string} [options] A string of regex options to use. See [specs](http://docs.mongodb.org/manual/reference/operator/query/regex/#op._S_options) for a description of available options.
|
|
3044
3062
|
* @returns {WhereQuery}
|
|
3045
3063
|
*/
|
|
3046
|
-
WhereQuery.prototype.endsWith = function (parameter, constant) {
|
|
3047
|
-
|
|
3064
|
+
WhereQuery.prototype.endsWith = function (parameter, constant, caseSensitive) {
|
|
3065
|
+
if (caseSensitive === void 0) { caseSensitive = true; }
|
|
3066
|
+
return this._simple(OperatorType.endsWith, parameter, constant, caseSensitive);
|
|
3048
3067
|
};
|
|
3049
3068
|
/**
|
|
3050
3069
|
* Ends the definition of the current WhereQuery. You need to call this method in order to continue with the definition of the parent {@link QueryBase}. All other `WhereQuery` methods return the current instance of `WhereQuery` to allow chaining.
|