@progress/sitefinity-webservices-sdk 1.1.7 → 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 +7 -5
- 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 +48 -32
- 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 +2 -2
- package/src/QueryBuilder.ts +12 -3
- package/src/Requests/request.spec.ts +29 -5
- 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">
|
|
@@ -125,16 +125,18 @@
|
|
|
125
125
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private"><a id="checkType" class="tsd-anchor"></a>
|
|
126
126
|
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>check<wbr/>Type</span><a href="#checkType" 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>
|
|
127
127
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
128
|
-
<li class="tsd-signature tsd-anchor-link" id="checkType.checkType-1">check<wbr/>Type<span class="tsd-signature-symbol">(</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><span class="tsd-signature-type">string</span><a href="#checkType.checkType-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>
|
|
128
|
+
<li class="tsd-signature tsd-anchor-link" id="checkType.checkType-1">check<wbr/>Type<span class="tsd-signature-symbol">(</span>constant<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, treatAsString<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><span class="tsd-signature-type">string</span><a href="#checkType.checkType-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>
|
|
129
129
|
<li class="tsd-description">
|
|
130
130
|
<div class="tsd-parameters">
|
|
131
131
|
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
132
132
|
<ul class="tsd-parameter-list">
|
|
133
133
|
<li>
|
|
134
|
-
<h5>constant: <span class="tsd-signature-type">any</span></h5></li
|
|
134
|
+
<h5>constant: <span class="tsd-signature-type">any</span></h5></li>
|
|
135
|
+
<li>
|
|
136
|
+
<h5>treatAsString: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></h5></li></ul></div>
|
|
135
137
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
136
138
|
<ul>
|
|
137
|
-
<li>Defined in QueryBuilder.ts:
|
|
139
|
+
<li>Defined in QueryBuilder.ts:160</li></ul></aside></li></ul></section>
|
|
138
140
|
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private"><a id="isGuid" class="tsd-anchor"></a>
|
|
139
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>
|
|
140
142
|
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
|
|
@@ -147,7 +149,7 @@
|
|
|
147
149
|
<h5>constant: <span class="tsd-signature-type">string</span></h5></li></ul></div>
|
|
148
150
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4><aside class="tsd-sources">
|
|
149
151
|
<ul>
|
|
150
|
-
<li>Defined in QueryBuilder.ts:
|
|
152
|
+
<li>Defined in QueryBuilder.ts:177</li></ul></aside></li></ul></section></section></div>
|
|
151
153
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
152
154
|
<div class="tsd-navigation settings">
|
|
153
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">
|
|
@@ -823,11 +823,19 @@ var QueryBuilder = /** @class */ (function () {
|
|
|
823
823
|
case constants_1.EXPRESSION_TYPE.startsWith:
|
|
824
824
|
case constants_1.EXPRESSION_TYPE.endsWith: {
|
|
825
825
|
var expressionParameter = this.applyCaseSensitiveSettings(expression, expression.getParameter());
|
|
826
|
-
var expressionConstant = this.checkType(expression.getConstant());
|
|
826
|
+
var expressionConstant = this.checkType(expression.getConstant(), true);
|
|
827
827
|
var expressionValue = this.applyCaseSensitiveSettings(expression, expressionConstant);
|
|
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);
|
|
@@ -841,8 +849,9 @@ var QueryBuilder = /** @class */ (function () {
|
|
|
841
849
|
}
|
|
842
850
|
return "tolower(".concat(value, ")");
|
|
843
851
|
};
|
|
844
|
-
QueryBuilder.prototype.checkType = function (constant) {
|
|
845
|
-
if (
|
|
852
|
+
QueryBuilder.prototype.checkType = function (constant, treatAsString) {
|
|
853
|
+
if (treatAsString === void 0) { treatAsString = false; }
|
|
854
|
+
if (this.isGuid(constant) && !treatAsString)
|
|
846
855
|
return constant;
|
|
847
856
|
if (constant == null)
|
|
848
857
|
return null;
|
|
@@ -2233,6 +2242,12 @@ var WhereQuery = /** @class */ (function () {
|
|
|
2233
2242
|
if (caseSensitive === void 0) { caseSensitive = true; }
|
|
2234
2243
|
return this.simple(constants_1.EXPRESSION_TYPE.endsWith, parameter, constant, caseSensitive);
|
|
2235
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
|
+
};
|
|
2236
2251
|
/**
|
|
2237
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.
|
|
2238
2253
|
*/
|
|
@@ -2532,6 +2547,7 @@ exports.EXPRESSION_TYPE = {
|
|
|
2532
2547
|
gt: "gt",
|
|
2533
2548
|
ge: "ge",
|
|
2534
2549
|
any: "any",
|
|
2550
|
+
in: "in",
|
|
2535
2551
|
contains: "contains",
|
|
2536
2552
|
startsWith: "startsWith",
|
|
2537
2553
|
endsWith: "endsWith"
|
|
@@ -2711,35 +2727,35 @@ exports.utils = utils;
|
|
|
2711
2727
|
|
|
2712
2728
|
__webpack_require__.r(__webpack_exports__);
|
|
2713
2729
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2714
|
-
/* harmony export */
|
|
2715
|
-
/* harmony export */
|
|
2716
|
-
/* harmony export */
|
|
2717
|
-
/* harmony export */
|
|
2718
|
-
/* harmony export */
|
|
2719
|
-
/* harmony export */
|
|
2720
|
-
/* harmony export */
|
|
2721
|
-
/* harmony export */
|
|
2722
|
-
/* harmony export */
|
|
2723
|
-
/* harmony export */
|
|
2724
|
-
/* harmony export */
|
|
2725
|
-
/* harmony export */
|
|
2726
|
-
/* harmony export */
|
|
2727
|
-
/* harmony export */
|
|
2728
|
-
/* harmony export */
|
|
2729
|
-
/* harmony export */
|
|
2730
|
-
/* harmony export */
|
|
2731
|
-
/* harmony export */
|
|
2732
|
-
/* harmony export */
|
|
2733
|
-
/* harmony export */
|
|
2734
|
-
/* harmony export */
|
|
2735
|
-
/* harmony export */
|
|
2736
|
-
/* harmony export */
|
|
2737
|
-
/* harmony export */
|
|
2738
|
-
/* harmony export */
|
|
2739
|
-
/* harmony export */
|
|
2740
|
-
/* harmony export */
|
|
2741
|
-
/* harmony export */
|
|
2742
|
-
/* harmony export */
|
|
2730
|
+
/* harmony export */ __assign: () => (/* binding */ __assign),
|
|
2731
|
+
/* harmony export */ __asyncDelegator: () => (/* binding */ __asyncDelegator),
|
|
2732
|
+
/* harmony export */ __asyncGenerator: () => (/* binding */ __asyncGenerator),
|
|
2733
|
+
/* harmony export */ __asyncValues: () => (/* binding */ __asyncValues),
|
|
2734
|
+
/* harmony export */ __await: () => (/* binding */ __await),
|
|
2735
|
+
/* harmony export */ __awaiter: () => (/* binding */ __awaiter),
|
|
2736
|
+
/* harmony export */ __classPrivateFieldGet: () => (/* binding */ __classPrivateFieldGet),
|
|
2737
|
+
/* harmony export */ __classPrivateFieldIn: () => (/* binding */ __classPrivateFieldIn),
|
|
2738
|
+
/* harmony export */ __classPrivateFieldSet: () => (/* binding */ __classPrivateFieldSet),
|
|
2739
|
+
/* harmony export */ __createBinding: () => (/* binding */ __createBinding),
|
|
2740
|
+
/* harmony export */ __decorate: () => (/* binding */ __decorate),
|
|
2741
|
+
/* harmony export */ __esDecorate: () => (/* binding */ __esDecorate),
|
|
2742
|
+
/* harmony export */ __exportStar: () => (/* binding */ __exportStar),
|
|
2743
|
+
/* harmony export */ __extends: () => (/* binding */ __extends),
|
|
2744
|
+
/* harmony export */ __generator: () => (/* binding */ __generator),
|
|
2745
|
+
/* harmony export */ __importDefault: () => (/* binding */ __importDefault),
|
|
2746
|
+
/* harmony export */ __importStar: () => (/* binding */ __importStar),
|
|
2747
|
+
/* harmony export */ __makeTemplateObject: () => (/* binding */ __makeTemplateObject),
|
|
2748
|
+
/* harmony export */ __metadata: () => (/* binding */ __metadata),
|
|
2749
|
+
/* harmony export */ __param: () => (/* binding */ __param),
|
|
2750
|
+
/* harmony export */ __propKey: () => (/* binding */ __propKey),
|
|
2751
|
+
/* harmony export */ __read: () => (/* binding */ __read),
|
|
2752
|
+
/* harmony export */ __rest: () => (/* binding */ __rest),
|
|
2753
|
+
/* harmony export */ __runInitializers: () => (/* binding */ __runInitializers),
|
|
2754
|
+
/* harmony export */ __setFunctionName: () => (/* binding */ __setFunctionName),
|
|
2755
|
+
/* harmony export */ __spread: () => (/* binding */ __spread),
|
|
2756
|
+
/* harmony export */ __spreadArray: () => (/* binding */ __spreadArray),
|
|
2757
|
+
/* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays),
|
|
2758
|
+
/* harmony export */ __values: () => (/* binding */ __values)
|
|
2743
2759
|
/* harmony export */ });
|
|
2744
2760
|
/******************************************************************************
|
|
2745
2761
|
Copyright (c) Microsoft Corporation.
|