gd-sprest-def 2.1.1 → 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.
- package/base.d.ts +19 -4
- package/lib/base.d.ts +19 -4
- 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
|
|
|
@@ -156,7 +161,6 @@ export interface IMethodInfo {
|
|
|
156
161
|
argValues?: Array<any>;
|
|
157
162
|
data?: any;
|
|
158
163
|
getAllItemsFl?: boolean;
|
|
159
|
-
getAllItemsWaitTime?: number;
|
|
160
164
|
inheritMetadataType?: boolean;
|
|
161
165
|
metadataType?: string;
|
|
162
166
|
name?: string;
|
|
@@ -186,9 +190,6 @@ export interface IODataQuery {
|
|
|
186
190
|
*/
|
|
187
191
|
GetAllItems?: boolean;
|
|
188
192
|
|
|
189
|
-
/** Time in ms to wait between calls to avoid throttling. */
|
|
190
|
-
GetAllItemsWaitTime?: number;
|
|
191
|
-
|
|
192
193
|
/** The order by fields. */
|
|
193
194
|
OrderBy?: Array<string>;
|
|
194
195
|
|
|
@@ -208,6 +209,20 @@ export interface IODataQuery {
|
|
|
208
209
|
Top?: number;
|
|
209
210
|
}
|
|
210
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
|
+
|
|
211
226
|
/**
|
|
212
227
|
* Request Information
|
|
213
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
|
|
|
@@ -156,7 +161,6 @@ export interface IMethodInfo {
|
|
|
156
161
|
argValues?: Array<any>;
|
|
157
162
|
data?: any;
|
|
158
163
|
getAllItemsFl?: boolean;
|
|
159
|
-
getAllItemsWaitTime?: number;
|
|
160
164
|
inheritMetadataType?: boolean;
|
|
161
165
|
metadataType?: string;
|
|
162
166
|
name?: string;
|
|
@@ -186,9 +190,6 @@ export interface IODataQuery {
|
|
|
186
190
|
*/
|
|
187
191
|
GetAllItems?: boolean;
|
|
188
192
|
|
|
189
|
-
/** Time in ms to wait between calls to avoid throttling. */
|
|
190
|
-
GetAllItemsWaitTime?: number;
|
|
191
|
-
|
|
192
193
|
/** The order by fields. */
|
|
193
194
|
OrderBy?: Array<string>;
|
|
194
195
|
|
|
@@ -208,6 +209,20 @@ export interface IODataQuery {
|
|
|
208
209
|
Top?: number;
|
|
209
210
|
}
|
|
210
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
|
+
|
|
211
226
|
/**
|
|
212
227
|
* Request Information
|
|
213
228
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gd-sprest-def",
|
|
3
|
-
"version": "2.1.
|
|
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",
|