@progress/sitefinity-webservices-sdk 1.1.10 → 1.1.11
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/search.js +1 -1
- package/dist/docs/classes/QueryBuilder.QueryBuilder.html +3 -3
- package/dist/docs/classes/WhereQuery.WhereQuery.html +23 -4
- package/dist/docs/variables/constants.CONTENT_TYPES.html +1 -1
- package/dist/docs/variables/constants.EXPRESSION_TYPE.html +3 -1
- package/dist/docs/variables/constants.HEADER_NAMES.html +1 -1
- package/dist/docs/variables/constants.HTTP_METHODS.html +1 -1
- package/dist/docs/variables/constants.ODATA_PARAMS.html +1 -1
- package/dist/docs/variables/constants.SF_PARAMS.html +1 -1
- package/dist/sitefinity-webservices-sdk.js +15 -0
- package/dist/sitefinity-webservices-sdk.js.map +1 -1
- package/dist/sitefinity-webservices-sdk.min.js +1 -1
- package/dist/src/WhereQuery.d.ts +4 -0
- package/dist/src/constants.d.ts +1 -0
- package/package.json +1 -1
- package/src/QueryBuilder.ts +9 -0
- package/src/Requests/request.spec.ts +13 -0
- package/src/WhereQuery.ts +7 -0
- package/src/constants.ts +1 -0
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
<h5>value: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
83
83
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
84
84
|
<ul>
|
|
85
|
-
<li>Defined in QueryBuilder.ts:
|
|
85
|
+
<li>Defined in QueryBuilder.ts:152</li></ul></aside></li></ul></section>
|
|
86
86
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="build" class="tsd-anchor"></a>
|
|
87
87
|
<h3 class="tsd-anchor-link"><span>build</span><a href="#build" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
88
88
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
<h5>treatAsString: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5></li></ul></div>
|
|
137
137
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
138
138
|
<ul>
|
|
139
|
-
<li>Defined in QueryBuilder.ts:
|
|
139
|
+
<li>Defined in QueryBuilder.ts:160</li></ul></aside></li></ul></section>
|
|
140
140
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private"><a id="isGuid" class="tsd-anchor"></a>
|
|
141
141
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>is<wbr/>Guid</span><a href="#isGuid" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
142
142
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
<h5>constant: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
150
150
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources">
|
|
151
151
|
<ul>
|
|
152
|
-
<li>Defined in QueryBuilder.ts:
|
|
152
|
+
<li>Defined in QueryBuilder.ts:177</li></ul></aside></li></ul></section></section></div>
|
|
153
153
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
154
154
|
<div class="tsd-navigation settings">
|
|
155
155
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
<a href="WhereQuery.WhereQuery.html#getExpression" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>get<wbr/>Expression</span></a>
|
|
57
57
|
<a href="WhereQuery.WhereQuery.html#gt" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>gt</span></a>
|
|
58
58
|
<a href="WhereQuery.WhereQuery.html#gte" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>gte</span></a>
|
|
59
|
+
<a href="WhereQuery.WhereQuery.html#in" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>in</span></a>
|
|
59
60
|
<a href="WhereQuery.WhereQuery.html#lt" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>lt</span></a>
|
|
60
61
|
<a href="WhereQuery.WhereQuery.html#lte" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>lte</span></a>
|
|
61
62
|
<a href="WhereQuery.WhereQuery.html#ne" class="tsd-index-link tsd-kind-method tsd-parent-kind-class"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg><span>ne</span></a>
|
|
@@ -112,7 +113,7 @@
|
|
|
112
113
|
<h5>subQuery: <a href="WhereQuery.WhereQuery.html" class="tsd-signature-type" data-tsd-kind="Class">WhereQuery</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">QueryType</span><span class="tsd-signature-symbol">></span></h5></li></ul></div>
|
|
113
114
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
|
|
114
115
|
<ul>
|
|
115
|
-
<li>Defined in WhereQuery.ts:
|
|
116
|
+
<li>Defined in WhereQuery.ts:141</li></ul></aside></li></ul></section>
|
|
116
117
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="and" class="tsd-anchor"></a>
|
|
117
118
|
<h3 class="tsd-anchor-link"><span>and</span><a href="#and" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
118
119
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -161,7 +162,7 @@
|
|
|
161
162
|
</div>
|
|
162
163
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type" data-tsd-kind="Type parameter">QueryType</span></h4><aside class="tsd-sources">
|
|
163
164
|
<ul>
|
|
164
|
-
<li>Defined in WhereQuery.ts:
|
|
165
|
+
<li>Defined in WhereQuery.ts:115</li></ul></aside></li></ul></section>
|
|
165
166
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="endsWith" class="tsd-anchor"></a>
|
|
166
167
|
<h3 class="tsd-anchor-link"><span>ends<wbr/>With</span><a href="#endsWith" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
167
168
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -205,7 +206,7 @@
|
|
|
205
206
|
<li class="tsd-description">
|
|
206
207
|
<h4 class="tsd-returns-title">Returns <a href="Expression.ComplexExpression.html" class="tsd-signature-type" data-tsd-kind="Class">ComplexExpression</a></h4><aside class="tsd-sources">
|
|
207
208
|
<ul>
|
|
208
|
-
<li>Defined in WhereQuery.ts:
|
|
209
|
+
<li>Defined in WhereQuery.ts:126</li></ul></aside></li></ul></section>
|
|
209
210
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="gt" class="tsd-anchor"></a>
|
|
210
211
|
<h3 class="tsd-anchor-link"><span>gt</span><a href="#gt" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
211
212
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -240,6 +241,23 @@
|
|
|
240
241
|
<h4 class="tsd-returns-title">Returns <a href="WhereQuery.WhereQuery.html" class="tsd-signature-type" data-tsd-kind="Class">WhereQuery</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">QueryType</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
241
242
|
<ul>
|
|
242
243
|
<li>Defined in WhereQuery.ts:66</li></ul></aside></li></ul></section>
|
|
244
|
+
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="in" class="tsd-anchor"></a>
|
|
245
|
+
<h3 class="tsd-anchor-link"><span>in</span><a href="#in" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
246
|
+
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
247
|
+
<li class="tsd-signature tsd-anchor-link" id="in.in-1">in<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" data-tsd-kind="Class">WhereQuery</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">QueryType</span><span class="tsd-signature-symbol">></span><a href="#in.in-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
248
|
+
<li class="tsd-description">
|
|
249
|
+
<div class="tsd-comment tsd-typography"><p>Adds a condition that specific values should be found in that field e.g. Id in (id1, id2, id3).</p>
|
|
250
|
+
</div>
|
|
251
|
+
<div class="tsd-parameters">
|
|
252
|
+
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
253
|
+
<ul class="tsd-parameter-list">
|
|
254
|
+
<li>
|
|
255
|
+
<h5>parameter: <span class="tsd-signature-type">string</span></h5></li>
|
|
256
|
+
<li>
|
|
257
|
+
<h5>constant: <span class="tsd-signature-type">any</span></h5></li></ul></div>
|
|
258
|
+
<h4 class="tsd-returns-title">Returns <a href="WhereQuery.WhereQuery.html" class="tsd-signature-type" data-tsd-kind="Class">WhereQuery</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">QueryType</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
259
|
+
<ul>
|
|
260
|
+
<li>Defined in WhereQuery.ts:108</li></ul></aside></li></ul></section>
|
|
243
261
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="lt" class="tsd-anchor"></a>
|
|
244
262
|
<h3 class="tsd-anchor-link"><span>lt</span><a href="#lt" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
245
263
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -329,7 +347,7 @@
|
|
|
329
347
|
<h5>caseSensitive: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></h5></li></ul></div>
|
|
330
348
|
<h4 class="tsd-returns-title">Returns <a href="WhereQuery.WhereQuery.html" class="tsd-signature-type" data-tsd-kind="Class">WhereQuery</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">QueryType</span><span class="tsd-signature-symbol">></span></h4><aside class="tsd-sources">
|
|
331
349
|
<ul>
|
|
332
|
-
<li>Defined in WhereQuery.ts:
|
|
350
|
+
<li>Defined in WhereQuery.ts:130</li></ul></aside></li></ul></section>
|
|
333
351
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="startsWith" class="tsd-anchor"></a>
|
|
334
352
|
<h3 class="tsd-anchor-link"><span>starts<wbr/>With</span><a href="#startsWith" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
|
|
335
353
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
|
|
@@ -405,6 +423,7 @@
|
|
|
405
423
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="WhereQuery.WhereQuery.html#getExpression" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>get<wbr/>Expression</a></li>
|
|
406
424
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="WhereQuery.WhereQuery.html#gt" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>gt</a></li>
|
|
407
425
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="WhereQuery.WhereQuery.html#gte" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>gte</a></li>
|
|
426
|
+
<li class="tsd-kind-method tsd-parent-kind-class"><a href="WhereQuery.WhereQuery.html#in" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>in</a></li>
|
|
408
427
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="WhereQuery.WhereQuery.html#lt" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>lt</a></li>
|
|
409
428
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="WhereQuery.WhereQuery.html#lte" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>lte</a></li>
|
|
410
429
|
<li class="tsd-kind-method tsd-parent-kind-class"><a href="WhereQuery.WhereQuery.html#ne" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-2048-path"></use><use href="#icon-2048-text"></use></svg>ne</a></li>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
<li class="tsd-parameter">
|
|
24
24
|
<h5>json<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li></ul></div><aside class="tsd-sources">
|
|
25
25
|
<ul>
|
|
26
|
-
<li>Defined in constants.ts:
|
|
26
|
+
<li>Defined in constants.ts:64</li></ul></aside></div>
|
|
27
27
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
28
28
|
<div class="tsd-navigation settings">
|
|
29
29
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
<li><a href="../modules/constants.html">constants</a></li>
|
|
17
17
|
<li><a href="constants.EXPRESSION_TYPE.html">EXPRESSION_TYPE</a></li></ul>
|
|
18
18
|
<h1>Variable EXPRESSION_TYPE<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
19
|
-
<div class="tsd-signature">EXPRESSION_<wbr/>TYPE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span> </span>and<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>any<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>contains<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>endsWith<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>eq<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>ge<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>gt<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>le<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>lt<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>ne<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>not<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>or<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>query<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span> </span>startsWith<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>where<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
19
|
+
<div class="tsd-signature">EXPRESSION_<wbr/>TYPE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span> </span>and<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>any<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>contains<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>endsWith<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>eq<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>ge<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>gt<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>in<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>le<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>lt<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>ne<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>not<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>or<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>query<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span> </span>startsWith<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span> </span>where<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = ...</span></div>
|
|
20
20
|
<div class="tsd-type-declaration">
|
|
21
21
|
<h4>Type declaration</h4>
|
|
22
22
|
<ul class="tsd-parameters">
|
|
@@ -35,6 +35,8 @@
|
|
|
35
35
|
<li class="tsd-parameter">
|
|
36
36
|
<h5>gt<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li>
|
|
37
37
|
<li class="tsd-parameter">
|
|
38
|
+
<h5>in<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li>
|
|
39
|
+
<li class="tsd-parameter">
|
|
38
40
|
<h5>le<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li>
|
|
39
41
|
<li class="tsd-parameter">
|
|
40
42
|
<h5>lt<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<li class="tsd-parameter">
|
|
50
50
|
<h5>service<wbr/>Request<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li></ul></div><aside class="tsd-sources">
|
|
51
51
|
<ul>
|
|
52
|
-
<li>Defined in constants.ts:
|
|
52
|
+
<li>Defined in constants.ts:39</li></ul></aside></div>
|
|
53
53
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
54
54
|
<div class="tsd-navigation settings">
|
|
55
55
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<li class="tsd-parameter">
|
|
32
32
|
<h5>put<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li></ul></div><aside class="tsd-sources">
|
|
33
33
|
<ul>
|
|
34
|
-
<li>Defined in constants.ts:
|
|
34
|
+
<li>Defined in constants.ts:56</li></ul></aside></div>
|
|
35
35
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
36
36
|
<div class="tsd-navigation settings">
|
|
37
37
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
<li class="tsd-parameter">
|
|
38
38
|
<h5>$top<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li></ul></div><aside class="tsd-sources">
|
|
39
39
|
<ul>
|
|
40
|
-
<li>Defined in constants.ts:
|
|
40
|
+
<li>Defined in constants.ts:20</li></ul></aside></div>
|
|
41
41
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
42
42
|
<div class="tsd-navigation settings">
|
|
43
43
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
<li class="tsd-parameter">
|
|
32
32
|
<h5>site<wbr/>Id<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5></li></ul></div><aside class="tsd-sources">
|
|
33
33
|
<ul>
|
|
34
|
-
<li>Defined in constants.ts:
|
|
34
|
+
<li>Defined in constants.ts:31</li></ul></aside></div>
|
|
35
35
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
36
36
|
<div class="tsd-navigation settings">
|
|
37
37
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -828,6 +828,14 @@ var QueryBuilder = /** @class */ (function () {
|
|
|
828
828
|
result = "".concat(type.toLowerCase(), "(").concat(expressionParameter, ", ").concat(expressionValue, ")");
|
|
829
829
|
break;
|
|
830
830
|
}
|
|
831
|
+
case constants_1.EXPRESSION_TYPE.in: {
|
|
832
|
+
var valueArray = expression.getConstant();
|
|
833
|
+
if (!Array.isArray(valueArray)) {
|
|
834
|
+
throw new Error("Parameter is not an array!");
|
|
835
|
+
}
|
|
836
|
+
result = "".concat(expression.getParameter(), " in (").concat(valueArray.join(", "), ")");
|
|
837
|
+
break;
|
|
838
|
+
}
|
|
831
839
|
default: {
|
|
832
840
|
var msg = "Unsupported operator ".concat(type);
|
|
833
841
|
throw new Error(msg);
|
|
@@ -2234,6 +2242,12 @@ var WhereQuery = /** @class */ (function () {
|
|
|
2234
2242
|
if (caseSensitive === void 0) { caseSensitive = true; }
|
|
2235
2243
|
return this.simple(constants_1.EXPRESSION_TYPE.endsWith, parameter, constant, caseSensitive);
|
|
2236
2244
|
};
|
|
2245
|
+
/**
|
|
2246
|
+
* Adds a condition that specific values should be found in that field e.g. Id in (id1, id2, id3).
|
|
2247
|
+
*/
|
|
2248
|
+
WhereQuery.prototype.in = function (parameter, constant) {
|
|
2249
|
+
return this.simple(constants_1.EXPRESSION_TYPE.in, parameter, constant);
|
|
2250
|
+
};
|
|
2237
2251
|
/**
|
|
2238
2252
|
* Ends the definition of the current WhereQuery. You need to call this method in order to continue with the definition of the parent {@link Query}. All other `WhereQuery` methods return the current instance of `WhereQuery` to allow chaining.
|
|
2239
2253
|
*/
|
|
@@ -2533,6 +2547,7 @@ exports.EXPRESSION_TYPE = {
|
|
|
2533
2547
|
gt: "gt",
|
|
2534
2548
|
ge: "ge",
|
|
2535
2549
|
any: "any",
|
|
2550
|
+
in: "in",
|
|
2536
2551
|
contains: "contains",
|
|
2537
2552
|
startsWith: "startsWith",
|
|
2538
2553
|
endsWith: "endsWith"
|