gd-sprest-def 2.1.2 → 2.1.4

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 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/customV2.js CHANGED
@@ -30,6 +30,9 @@ module.exports = {
30
30
  }
31
31
  ],
32
32
  driveItem: [
33
+ {
34
+ name: "content"
35
+ },
33
36
  {
34
37
  name: "delete"
35
38
  },
@@ -6298,6 +6298,7 @@ export interface driveItemMethods extends baseItemMethods {
6298
6298
  thumbnails(id: string | number): IBaseQuery<thumbnailSet> & thumbnailSetMethods;
6299
6299
  versions(): driveItemVersionCollection;
6300
6300
  versions(id: string | number): IBaseQuery<driveItemVersion> & driveItemVersionMethods;
6301
+ content(): IBaseExecution<void>;
6301
6302
  delete(): IBaseExecution<void>;
6302
6303
  setSensitivityLabel(actionSource: string, assignmentMethod: string, id: string, justificationText: string): IBaseExecution<void>;
6303
6304
  restore(parentReference, name): IBaseExecution<driveItem>;
@@ -6330,6 +6331,7 @@ export interface driveItemOData extends baseItemOData {
6330
6331
  subscriptions: IBaseResults<subscription>;
6331
6332
  thumbnails: IBaseResults<thumbnailSet>;
6332
6333
  versions: IBaseResults<driveItemVersion>;
6334
+ content: void;
6333
6335
  delete: void;
6334
6336
  setSensitivityLabel(actionSource: string, assignmentMethod: string, id: string, justificationText: string): IBaseExecution<void>;
6335
6337
  restore(parentReference, name): IBaseExecution<driveItem>;
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/lib/mapperv2.d.ts CHANGED
@@ -2504,6 +2504,7 @@ export interface IMapper {
2504
2504
  subscriptions: IMapperMethod;
2505
2505
  thumbnails: IMapperMethod;
2506
2506
  versions: IMapperMethod;
2507
+ content: IMapperMethod;
2507
2508
  delete: IMapperMethod;
2508
2509
  setSensitivityLabel: IMapperMethod & {
2509
2510
  argNames: ["actionSource", "assignmentMethod", "id", "justificationText"]
package/lib/mapperv2.ts CHANGED
@@ -4099,6 +4099,8 @@ export const Mapper: IMapper = {
4099
4099
  requestType: RequestType.Get,
4100
4100
  returnType: "driveItemVersions"
4101
4101
  },
4102
+ content: {
4103
+ },
4102
4104
  delete: {
4103
4105
  },
4104
4106
  setSensitivityLabel: {
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.4",
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",