gd-sprest 8.6.5 → 8.6.7

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/rest.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { IBaseExecution } from "gd-sprest-def/lib/base";
2
+ import * as GraphTypes from "gd-sprest-def/lib/Microsoft/Graph/enumTypes";
2
3
  import { RenderListDataParameters } from "gd-sprest-def/lib/SP/complextypes";
3
4
  import { IList, RemoteWeb } from "gd-sprest-def/lib/SP/entitytypes";
4
5
  import { IHelper } from "./helper";
@@ -60,6 +61,9 @@ export interface IREST {
60
61
  */
61
62
  Graph: LibTypes.IGraph;
62
63
 
64
+ /** The graph enum types. */
65
+ GraphTypes,
66
+
63
67
  /**
64
68
  * A reference to the _api/groupservice endpoint.
65
69
  */
@@ -12,6 +12,12 @@ export interface IXHRRequest {
12
12
  // Flag indicating the request has completed
13
13
  completedFl: boolean;
14
14
 
15
+ // Flag indicating if this is a batch request
16
+ isBatch: boolean;
17
+
18
+ // Flag indicating if this is a graph request
19
+ isGraph: boolean;
20
+
15
21
  // The response
16
22
  response: string;
17
23
 
@@ -31,5 +31,5 @@ export interface Idrives {
31
31
  * @param siteUrl - (Optional) The site url to target, current by default.
32
32
  * @param targetInfo - (Optional) The target information.
33
33
  */
34
- (props?: { driveId?: string, siteId?: string, siteUrl?: string, targetInfo?: ITargetInfoProps }): IBaseExecution<driveCollection>;
34
+ (props?: { driveId?: string, siteId?: string, siteUrl?: string, targetInfo?: ITargetInfoProps }): driveCollection;
35
35
  }
@@ -58,10 +58,7 @@ export interface Isites {
58
58
  (props?: { siteId?: string, webId?: string, targetInfo?: ITargetInfoProps }): IBaseQuery<site> & siteMethods;
59
59
 
60
60
  /** Returns the current site. */
61
- static getCurrentSite(): IBaseQuery<site> & siteMethods;
62
-
63
- /** Returns the current web. */
64
- static getCurrentWeb(): IBaseQuery<site> & siteMethods;
61
+ static getCurrent(): IBaseQuery<site> & siteMethods;
65
62
 
66
63
  /** Returns a drive for a site. */
67
64
  static getDrive(props: IsiteGetDriveProps): PromiseLike<IBaseQuery<drive> & driveMethods>;
@@ -74,4 +71,7 @@ export interface Isites {
74
71
 
75
72
  /** Returns the url to the site, web, list or file. */
76
73
  static getIdByUrl(url: string): PromiseLike<IsiteIdResult>;
74
+
75
+ /** Returns the root site of the current site. */
76
+ static getRoot(): IBaseQuery<site> & siteMethods;
77
77
  }