gd-sprest 8.5.8 → 8.5.9

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.
@@ -1,8 +1,7 @@
1
1
  import { IBaseExecution, IBaseQuery } from "gd-sprest-def/lib/base";
2
- import { sites } from "gd-sprest-def/lib/Microsoft/Graph/api";
3
2
  import {
4
- drive, driveMethods, listItem, listItemMethods,
5
- list, listMethods, siteMethods
3
+ drive, driveMethods, list, listMethods,
4
+ listItem, listItemMethods, site, siteMethods
6
5
  } from "gd-sprest-def/lib/Microsoft/Graph/entityTypes";
7
6
  import { ITargetInfoProps } from "../utils";
8
7
 
@@ -56,7 +55,7 @@ export interface Isites {
56
55
  * @param webId - (Optional) The sub-site id to target.
57
56
  * @param targetInfo - (Optional) The target information.
58
57
  */
59
- (props?: { siteId?: string, webId?: string, targetInfo?: ITargetInfoProps }): siteMethods & sites;
58
+ (props?: { siteId?: string, webId?: string, targetInfo?: ITargetInfoProps }): IBaseQuery<site> & siteMethods;
60
59
 
61
60
  /** Returns the current web. */
62
61
  static getCurrentWeb(): IBaseQuery<site> & siteMethods;
@@ -65,7 +64,7 @@ export interface Isites {
65
64
  static getDrive(props: IsiteGetDriveProps): PromiseLike<IBaseQuery<drive> & driveMethods>;
66
65
 
67
66
  /** Returns a drive for a site. */
68
- static getFile(props: IsiteProps & { fileUrl: string }): PromiseLike<IBaseQuery<item> & itemMethods>;
67
+ static getFile(props: IsiteProps & { fileUrl: string }): PromiseLike<IBaseQuery<driveItem> & driveItemMethods>;
69
68
 
70
69
  /** Returns a list for a site. */
71
70
  static getList(props: IsiteProps & { listId?: string }): PromiseLike<IBaseQuery<list> & listMethods>;
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.58,
12
+ __ver: 8.59,
13
13
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
14
14
  Apps: Lib.Apps,
15
15
  ContextInfo: Lib.ContextInfo,
@@ -19,7 +19,6 @@
19
19
  // ../gd-sprest-def/base
20
20
  // ../gd-sprest-def/lib/SP/Taxonomy/entitytypes
21
21
  // ../gd-sprest-def/lib/Microsoft/Graph/entityTypes
22
- // ../gd-sprest-def/lib/Microsoft/Graph/api
23
22
  // ../gd-sprest-def/lib/SP/UI/ApplicationPages/complextypes
24
23
  // ../gd-sprest-def/lib/Microsoft/SharePoint/Utilities
25
24
  // ../gd-sprest-def/lib/SP
@@ -4513,10 +4512,9 @@ declare module 'gd-sprest/v2/drives' {
4513
4512
 
4514
4513
  declare module 'gd-sprest/v2/sites' {
4515
4514
  import { IBaseExecution, IBaseQuery } from "gd-sprest-def/lib/base";
4516
- import { sites } from "gd-sprest-def/lib/Microsoft/Graph/api";
4517
4515
  import {
4518
- drive, driveMethods, listItem, listItemMethods,
4519
- list, listMethods, siteMethods
4516
+ drive, driveMethods, list, listMethods,
4517
+ listItem, listItemMethods, site, siteMethods
4520
4518
  } from "gd-sprest-def/lib/Microsoft/Graph/entityTypes";
4521
4519
  import { ITargetInfoProps } from "gd-sprest/utils";
4522
4520
 
@@ -4570,7 +4568,7 @@ declare module 'gd-sprest/v2/sites' {
4570
4568
  * @param webId - (Optional) The sub-site id to target.
4571
4569
  * @param targetInfo - (Optional) The target information.
4572
4570
  */
4573
- (props?: { siteId?: string, webId?: string, targetInfo?: ITargetInfoProps }): siteMethods & sites;
4571
+ (props?: { siteId?: string, webId?: string, targetInfo?: ITargetInfoProps }): IBaseQuery<site> & siteMethods;
4574
4572
 
4575
4573
  /** Returns the current web. */
4576
4574
  static getCurrentWeb(): IBaseQuery<site> & siteMethods;
@@ -4579,7 +4577,7 @@ declare module 'gd-sprest/v2/sites' {
4579
4577
  static getDrive(props: IsiteGetDriveProps): PromiseLike<IBaseQuery<drive> & driveMethods>;
4580
4578
 
4581
4579
  /** Returns a drive for a site. */
4582
- static getFile(props: IsiteProps & { fileUrl: string }): PromiseLike<IBaseQuery<item> & itemMethods>;
4580
+ static getFile(props: IsiteProps & { fileUrl: string }): PromiseLike<IBaseQuery<driveItem> & driveItemMethods>;
4583
4581
 
4584
4582
  /** Returns a list for a site. */
4585
4583
  static getList(props: IsiteProps & { listId?: string }): PromiseLike<IBaseQuery<list> & listMethods>;