gd-sprest-def 2.1.2 → 2.1.3

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.
Files changed (3) hide show
  1. package/base.d.ts +19 -0
  2. package/lib/base.d.ts +19 -0
  3. package/package.json +1 -1
package/base.d.ts CHANGED
@@ -97,6 +97,11 @@ export interface IBaseResult {
97
97
  /** Gets the request digest value. */
98
98
  getRequestDigest(): string;
99
99
 
100
+ /**
101
+ * If present, the rate limit information to prevent throttling
102
+ */
103
+ rateLimit?: IRateLimit;
104
+
100
105
  /** The response */
101
106
  response: string;
102
107
 
@@ -204,6 +209,20 @@ export interface IODataQuery {
204
209
  Top?: number;
205
210
  }
206
211
 
212
+ /**
213
+ * Rate Limit
214
+ */
215
+ export interface IRateLimit {
216
+ // The rate limit policy information
217
+ limit: string;
218
+
219
+ // The total resource units left before you get throttled
220
+ remaining: number;
221
+
222
+ // The number of seconds to wait before making the next request
223
+ reset: number;
224
+ }
225
+
207
226
  /**
208
227
  * Request Information
209
228
  */
package/lib/base.d.ts CHANGED
@@ -97,6 +97,11 @@ export interface IBaseResult {
97
97
  /** Gets the request digest value. */
98
98
  getRequestDigest(): string;
99
99
 
100
+ /**
101
+ * If present, the rate limit information to prevent throttling
102
+ */
103
+ rateLimit?: IRateLimit;
104
+
100
105
  /** The response */
101
106
  response: string;
102
107
 
@@ -204,6 +209,20 @@ export interface IODataQuery {
204
209
  Top?: number;
205
210
  }
206
211
 
212
+ /**
213
+ * Rate Limit
214
+ */
215
+ export interface IRateLimit {
216
+ // The rate limit policy information
217
+ limit: string;
218
+
219
+ // The total resource units left before you get throttled
220
+ remaining: number;
221
+
222
+ // The number of seconds to wait before making the next request
223
+ reset: number;
224
+ }
225
+
207
226
  /**
208
227
  * Request Information
209
228
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-sprest-def",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
4
4
  "description": "TypeScript definition files generated from the $metadata REST endpoint in SharePoint.",
5
5
  "author": "Gunjan Datta <me@dattabase.com> (https://gunjandatta.github.io)",
6
6
  "license": "MIT",