gd-sprest 8.9.6 → 8.9.8
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/@types/utils/targetInfo.d.ts +3 -0
- package/FUNDING.yml +2 -0
- package/build/rest.js +1 -1
- package/build/utils/request.js +26 -14
- package/dist/gd-sprest.d.ts +3 -0
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +1 -1
|
@@ -54,6 +54,9 @@ export interface ITargetInfoProps {
|
|
|
54
54
|
/** Sets the Cache-Control header to no-cache */
|
|
55
55
|
disableCache?: boolean;
|
|
56
56
|
|
|
57
|
+
/** True to not process the response, when dealing with querying large lists. */
|
|
58
|
+
disableProcessing?: boolean;
|
|
59
|
+
|
|
57
60
|
/** The endpoint of the request. */
|
|
58
61
|
endpoint?: string;
|
|
59
62
|
|
package/FUNDING.yml
ADDED
package/build/rest.js
CHANGED
package/build/utils/request.js
CHANGED
|
@@ -560,10 +560,13 @@ exports.Request = {
|
|
|
560
560
|
exports.Request.addProperties(obj, objData);
|
|
561
561
|
// Add the methods
|
|
562
562
|
exports.Request.addMethods(obj, objData, objData["@odata.context"]);
|
|
563
|
-
//
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
563
|
+
// See if we are not bypassing the processing of the response
|
|
564
|
+
if (base.targetInfo.disableProcessing != true) {
|
|
565
|
+
// Update the data collection
|
|
566
|
+
helper_1.Helper.updateDataCollection(obj, objData["results"]);
|
|
567
|
+
// Update the expanded properties
|
|
568
|
+
helper_1.Helper.updateExpandedProperties(obj);
|
|
569
|
+
}
|
|
567
570
|
// Update the search results
|
|
568
571
|
helper_1.Helper.updateSearchResults(obj);
|
|
569
572
|
}
|
|
@@ -584,10 +587,13 @@ exports.Request = {
|
|
|
584
587
|
exports.Request.addProperties(obj, data.d);
|
|
585
588
|
// Add the methods
|
|
586
589
|
exports.Request.addMethods(obj, data.d, data["@odata.context"]);
|
|
587
|
-
//
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
590
|
+
// See if we are not bypassing the processing of the response
|
|
591
|
+
if (base.targetInfo.disableProcessing != true) {
|
|
592
|
+
// Update the data collection
|
|
593
|
+
helper_1.Helper.updateDataCollection(obj, data.d.results);
|
|
594
|
+
// Update the expanded properties
|
|
595
|
+
helper_1.Helper.updateExpandedProperties(obj);
|
|
596
|
+
}
|
|
591
597
|
// Update the search results
|
|
592
598
|
helper_1.Helper.updateSearchResults(obj);
|
|
593
599
|
}
|
|
@@ -599,8 +605,11 @@ exports.Request = {
|
|
|
599
605
|
exports.Request.addProperties(obj, data);
|
|
600
606
|
// Add the methods
|
|
601
607
|
exports.Request.addMethods(obj, data, data["@odata.context"]);
|
|
602
|
-
//
|
|
603
|
-
|
|
608
|
+
// See if we are not bypassing the processing of the response
|
|
609
|
+
if (base.targetInfo.disableProcessing != true) {
|
|
610
|
+
// Update the data collection
|
|
611
|
+
helper_1.Helper.updateDataCollection(obj, data.value);
|
|
612
|
+
}
|
|
604
613
|
}
|
|
605
614
|
else {
|
|
606
615
|
// Update the base object's properties
|
|
@@ -673,10 +682,13 @@ exports.Request = {
|
|
|
673
682
|
// Convert the response and see if values were returned
|
|
674
683
|
var data = JSON.parse(xhr.response);
|
|
675
684
|
if (data.d || data.value) {
|
|
676
|
-
//
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
685
|
+
// See if we are not bypassing the processing of the response
|
|
686
|
+
if (base.targetInfo.disableProcessing != true) {
|
|
687
|
+
// Update the data collection
|
|
688
|
+
helper_1.Helper.updateDataCollection(base, ((_a = data.d) === null || _a === void 0 ? void 0 : _a.results) || data.value);
|
|
689
|
+
// Update the expanded properties
|
|
690
|
+
helper_1.Helper.updateExpandedProperties(base);
|
|
691
|
+
}
|
|
680
692
|
// Append the raw data results
|
|
681
693
|
if ((_b = base["d"]) === null || _b === void 0 ? void 0 : _b.results) {
|
|
682
694
|
base["d"].results = base["d"].results.concat((_c = data.d) === null || _c === void 0 ? void 0 : _c.results);
|
package/dist/gd-sprest.d.ts
CHANGED
|
@@ -7380,6 +7380,9 @@ declare module 'gd-sprest/utils/targetInfo' {
|
|
|
7380
7380
|
/** Sets the Cache-Control header to no-cache */
|
|
7381
7381
|
disableCache?: boolean;
|
|
7382
7382
|
|
|
7383
|
+
/** True to not process the response, when dealing with querying large lists. */
|
|
7384
|
+
disableProcessing?: boolean;
|
|
7385
|
+
|
|
7383
7386
|
/** The endpoint of the request. */
|
|
7384
7387
|
endpoint?: string;
|
|
7385
7388
|
|