gd-sprest 8.7.0 → 8.7.2

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,7 +1,7 @@
1
1
  import { IBaseExecution, IBaseQuery } from "gd-sprest-def/lib/base";
2
2
  import {
3
- drive, driveMethods, list, listMethods,
4
- listItem, listItemMethods, site, siteMethods
3
+ drive, driveMethods, driveItem, driveItemMethods, list,
4
+ listMethods, listItem, listItemMethods, site, siteMethods
5
5
  } from "gd-sprest-def/lib/Microsoft/Graph/entityTypes";
6
6
  import { ITargetInfoProps } from "../utils";
7
7
 
@@ -58,23 +58,23 @@ 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 getCurrent(): IBaseQuery<site> & siteMethods;
61
+ getCurrent(): IBaseQuery<site> & siteMethods;
62
62
 
63
63
  /** Returns a drive for a site. */
64
- static getDrive(props: IsiteGetDriveProps): PromiseLike<IBaseQuery<drive> & driveMethods>;
64
+ getDrive(props: IsiteGetDriveProps): PromiseLike<IBaseQuery<drive> & driveMethods>;
65
65
 
66
66
  /** Returns a drive for a site. */
67
- static getFile(props: IsiteProps & { fileUrl: string }): PromiseLike<IBaseQuery<driveItem> & driveItemMethods>;
67
+ getFile(props: IsiteProps & { fileUrl: string }): PromiseLike<IBaseQuery<driveItem> & driveItemMethods>;
68
68
 
69
69
  /** Returns a list for a site. */
70
- static getList(props: IsiteProps & { listId?: string }): PromiseLike<IBaseQuery<list> & listMethods>;
70
+ getList(props: IsiteProps & { listId?: string }): PromiseLike<IBaseQuery<list> & listMethods>;
71
71
 
72
72
  /** Returns the url to the site, web, list or file. */
73
- static getIdByUrl(url: string): PromiseLike<IsiteIdResult>;
73
+ getIdByUrl(url: string): PromiseLike<IsiteIdResult>;
74
74
 
75
75
  /** Returns the root site of the current site. */
76
- static getRoot(): IBaseQuery<site> & siteMethods;
76
+ getRoot(): IBaseQuery<site> & siteMethods;
77
77
 
78
78
  /** Returns a site by url. */
79
- static getSite(url: string): PromiseLike<IBaseQuery<site> & siteMethods>;
79
+ getSite(url: string): PromiseLike<IBaseQuery<site> & siteMethods>;
80
80
  }
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.70,
12
+ __ver: 8.72,
13
13
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
14
14
  Apps: Lib.Apps,
15
15
  ContextInfo: Lib.ContextInfo,
package/build/v2/sites.js CHANGED
@@ -63,7 +63,7 @@ exports.sites.getDrive = function (props) {
63
63
  for (var i = 0; i < drives.results.length; i++) {
64
64
  var drive = drives.results[i];
65
65
  // See if this is the target library
66
- if (drive["name"] == libName) {
66
+ if (drive["name"].toLowerCase() == libName.toLowerCase()) {
67
67
  // Resolve the request
68
68
  resolve(drive.id);
69
69
  return;
@@ -4518,8 +4518,8 @@ declare module 'gd-sprest/v2/drives' {
4518
4518
  declare module 'gd-sprest/v2/sites' {
4519
4519
  import { IBaseExecution, IBaseQuery } from "gd-sprest-def/lib/base";
4520
4520
  import {
4521
- drive, driveMethods, list, listMethods,
4522
- listItem, listItemMethods, site, siteMethods
4521
+ drive, driveMethods, driveItem, driveItemMethods, list,
4522
+ listMethods, listItem, listItemMethods, site, siteMethods
4523
4523
  } from "gd-sprest-def/lib/Microsoft/Graph/entityTypes";
4524
4524
  import { ITargetInfoProps } from "gd-sprest/utils";
4525
4525
 
@@ -4576,25 +4576,25 @@ declare module 'gd-sprest/v2/sites' {
4576
4576
  (props?: { siteId?: string, webId?: string, targetInfo?: ITargetInfoProps }): IBaseQuery<site> & siteMethods;
4577
4577
 
4578
4578
  /** Returns the current site. */
4579
- static getCurrent(): IBaseQuery<site> & siteMethods;
4579
+ getCurrent(): IBaseQuery<site> & siteMethods;
4580
4580
 
4581
4581
  /** Returns a drive for a site. */
4582
- static getDrive(props: IsiteGetDriveProps): PromiseLike<IBaseQuery<drive> & driveMethods>;
4582
+ getDrive(props: IsiteGetDriveProps): PromiseLike<IBaseQuery<drive> & driveMethods>;
4583
4583
 
4584
4584
  /** Returns a drive for a site. */
4585
- static getFile(props: IsiteProps & { fileUrl: string }): PromiseLike<IBaseQuery<driveItem> & driveItemMethods>;
4585
+ getFile(props: IsiteProps & { fileUrl: string }): PromiseLike<IBaseQuery<driveItem> & driveItemMethods>;
4586
4586
 
4587
4587
  /** Returns a list for a site. */
4588
- static getList(props: IsiteProps & { listId?: string }): PromiseLike<IBaseQuery<list> & listMethods>;
4588
+ getList(props: IsiteProps & { listId?: string }): PromiseLike<IBaseQuery<list> & listMethods>;
4589
4589
 
4590
4590
  /** Returns the url to the site, web, list or file. */
4591
- static getIdByUrl(url: string): PromiseLike<IsiteIdResult>;
4591
+ getIdByUrl(url: string): PromiseLike<IsiteIdResult>;
4592
4592
 
4593
4593
  /** Returns the root site of the current site. */
4594
- static getRoot(): IBaseQuery<site> & siteMethods;
4594
+ getRoot(): IBaseQuery<site> & siteMethods;
4595
4595
 
4596
4596
  /** Returns a site by url. */
4597
- static getSite(url: string): PromiseLike<IBaseQuery<site> & siteMethods>;
4597
+ getSite(url: string): PromiseLike<IBaseQuery<site> & siteMethods>;
4598
4598
  }
4599
4599
  }
4600
4600