@progress/sitefinity-webservices-sdk 1.1.7 → 1.1.10
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/classes/QueryBuilder.QueryBuilder.html +4 -2
- package/dist/sitefinity-webservices-sdk.js +33 -32
- package/dist/sitefinity-webservices-sdk.js.map +1 -1
- package/dist/sitefinity-webservices-sdk.min.js +1 -1
- package/package.json +2 -2
- package/src/QueryBuilder.ts +3 -3
- package/src/Requests/request.spec.ts +16 -5
|
@@ -125,13 +125,15 @@
|
|
|
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
139
|
<li>Defined in QueryBuilder.ts:151</li></ul></aside></li></ul></section>
|
|
@@ -823,7 +823,7 @@ 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;
|
|
@@ -841,8 +841,9 @@ var QueryBuilder = /** @class */ (function () {
|
|
|
841
841
|
}
|
|
842
842
|
return "tolower(".concat(value, ")");
|
|
843
843
|
};
|
|
844
|
-
QueryBuilder.prototype.checkType = function (constant) {
|
|
845
|
-
if (
|
|
844
|
+
QueryBuilder.prototype.checkType = function (constant, treatAsString) {
|
|
845
|
+
if (treatAsString === void 0) { treatAsString = false; }
|
|
846
|
+
if (this.isGuid(constant) && !treatAsString)
|
|
846
847
|
return constant;
|
|
847
848
|
if (constant == null)
|
|
848
849
|
return null;
|
|
@@ -2711,35 +2712,35 @@ exports.utils = utils;
|
|
|
2711
2712
|
|
|
2712
2713
|
__webpack_require__.r(__webpack_exports__);
|
|
2713
2714
|
/* 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 */
|
|
2715
|
+
/* harmony export */ __assign: () => (/* binding */ __assign),
|
|
2716
|
+
/* harmony export */ __asyncDelegator: () => (/* binding */ __asyncDelegator),
|
|
2717
|
+
/* harmony export */ __asyncGenerator: () => (/* binding */ __asyncGenerator),
|
|
2718
|
+
/* harmony export */ __asyncValues: () => (/* binding */ __asyncValues),
|
|
2719
|
+
/* harmony export */ __await: () => (/* binding */ __await),
|
|
2720
|
+
/* harmony export */ __awaiter: () => (/* binding */ __awaiter),
|
|
2721
|
+
/* harmony export */ __classPrivateFieldGet: () => (/* binding */ __classPrivateFieldGet),
|
|
2722
|
+
/* harmony export */ __classPrivateFieldIn: () => (/* binding */ __classPrivateFieldIn),
|
|
2723
|
+
/* harmony export */ __classPrivateFieldSet: () => (/* binding */ __classPrivateFieldSet),
|
|
2724
|
+
/* harmony export */ __createBinding: () => (/* binding */ __createBinding),
|
|
2725
|
+
/* harmony export */ __decorate: () => (/* binding */ __decorate),
|
|
2726
|
+
/* harmony export */ __esDecorate: () => (/* binding */ __esDecorate),
|
|
2727
|
+
/* harmony export */ __exportStar: () => (/* binding */ __exportStar),
|
|
2728
|
+
/* harmony export */ __extends: () => (/* binding */ __extends),
|
|
2729
|
+
/* harmony export */ __generator: () => (/* binding */ __generator),
|
|
2730
|
+
/* harmony export */ __importDefault: () => (/* binding */ __importDefault),
|
|
2731
|
+
/* harmony export */ __importStar: () => (/* binding */ __importStar),
|
|
2732
|
+
/* harmony export */ __makeTemplateObject: () => (/* binding */ __makeTemplateObject),
|
|
2733
|
+
/* harmony export */ __metadata: () => (/* binding */ __metadata),
|
|
2734
|
+
/* harmony export */ __param: () => (/* binding */ __param),
|
|
2735
|
+
/* harmony export */ __propKey: () => (/* binding */ __propKey),
|
|
2736
|
+
/* harmony export */ __read: () => (/* binding */ __read),
|
|
2737
|
+
/* harmony export */ __rest: () => (/* binding */ __rest),
|
|
2738
|
+
/* harmony export */ __runInitializers: () => (/* binding */ __runInitializers),
|
|
2739
|
+
/* harmony export */ __setFunctionName: () => (/* binding */ __setFunctionName),
|
|
2740
|
+
/* harmony export */ __spread: () => (/* binding */ __spread),
|
|
2741
|
+
/* harmony export */ __spreadArray: () => (/* binding */ __spreadArray),
|
|
2742
|
+
/* harmony export */ __spreadArrays: () => (/* binding */ __spreadArrays),
|
|
2743
|
+
/* harmony export */ __values: () => (/* binding */ __values)
|
|
2743
2744
|
/* harmony export */ });
|
|
2744
2745
|
/******************************************************************************
|
|
2745
2746
|
Copyright (c) Microsoft Corporation.
|