gd-sprest 8.9.5 → 8.9.6

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/build/rest.js CHANGED
@@ -9,7 +9,7 @@ var sptypes_1 = require("./sptypes");
9
9
  * SharePoint REST Library
10
10
  */
11
11
  exports.$REST = {
12
- __ver: 8.95,
12
+ __ver: 8.96,
13
13
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
14
14
  Apps: Lib.Apps,
15
15
  ContextInfo: Lib.ContextInfo,
@@ -19,6 +19,7 @@ var OData = /** @class */ (function () {
19
19
  this._search = oData && oData.Search ? oData.Search : null;
20
20
  this._select = oData && oData.Select ? oData.Select : [];
21
21
  this._skip = oData && oData.Skip ? oData.Skip : null;
22
+ this._skipToken = oData && oData.SkipToken ? oData.SkipToken : null;
22
23
  this._top = oData && oData.Top ? oData.Top : null;
23
24
  }
24
25
  Object.defineProperty(OData.prototype, "Custom", {
@@ -69,6 +70,7 @@ var OData = /** @class */ (function () {
69
70
  values.push(this.getQSValue("$orderby", this._orderBy));
70
71
  this._top ? values.push("$top=" + this._top) : null;
71
72
  this._skip ? values.push("$skip=" + this._skip) : null;
73
+ this._skipToken ? values.push("$skipToken=" + encodeURIComponent("Paged=TRUE&p_ID=" + this._skipToken)) : null;
72
74
  this._filter ? values.push("$filter=" + this._filter) : null;
73
75
  this._search ? values.push("$search=" + this._search) : null;
74
76
  values.push(this.getQSValue("$expand", this._expand));
@@ -109,6 +111,13 @@ var OData = /** @class */ (function () {
109
111
  enumerable: false,
110
112
  configurable: true
111
113
  });
114
+ Object.defineProperty(OData.prototype, "SkipToken", {
115
+ // Skip Token
116
+ get: function () { return this._skipToken; },
117
+ set: function (value) { this._skipToken = value; },
118
+ enumerable: false,
119
+ configurable: true
120
+ });
112
121
  Object.defineProperty(OData.prototype, "Top", {
113
122
  // Top
114
123
  get: function () { return this._top; },