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.
- package/@types/v2/sites.d.ts +9 -9
- package/build/rest.js +1 -1
- package/build/v2/sites.js +1 -1
- package/dist/gd-sprest.d.ts +9 -9
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +1 -1
package/@types/v2/sites.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IBaseExecution, IBaseQuery } from "gd-sprest-def/lib/base";
|
|
2
2
|
import {
|
|
3
|
-
drive, driveMethods,
|
|
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
|
-
|
|
61
|
+
getCurrent(): IBaseQuery<site> & siteMethods;
|
|
62
62
|
|
|
63
63
|
/** Returns a drive for a site. */
|
|
64
|
-
|
|
64
|
+
getDrive(props: IsiteGetDriveProps): PromiseLike<IBaseQuery<drive> & driveMethods>;
|
|
65
65
|
|
|
66
66
|
/** Returns a drive for a site. */
|
|
67
|
-
|
|
67
|
+
getFile(props: IsiteProps & { fileUrl: string }): PromiseLike<IBaseQuery<driveItem> & driveItemMethods>;
|
|
68
68
|
|
|
69
69
|
/** Returns a list for a site. */
|
|
70
|
-
|
|
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
|
-
|
|
73
|
+
getIdByUrl(url: string): PromiseLike<IsiteIdResult>;
|
|
74
74
|
|
|
75
75
|
/** Returns the root site of the current site. */
|
|
76
|
-
|
|
76
|
+
getRoot(): IBaseQuery<site> & siteMethods;
|
|
77
77
|
|
|
78
78
|
/** Returns a site by url. */
|
|
79
|
-
|
|
79
|
+
getSite(url: string): PromiseLike<IBaseQuery<site> & siteMethods>;
|
|
80
80
|
}
|
package/build/rest.js
CHANGED
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;
|
package/dist/gd-sprest.d.ts
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
4579
|
+
getCurrent(): IBaseQuery<site> & siteMethods;
|
|
4580
4580
|
|
|
4581
4581
|
/** Returns a drive for a site. */
|
|
4582
|
-
|
|
4582
|
+
getDrive(props: IsiteGetDriveProps): PromiseLike<IBaseQuery<drive> & driveMethods>;
|
|
4583
4583
|
|
|
4584
4584
|
/** Returns a drive for a site. */
|
|
4585
|
-
|
|
4585
|
+
getFile(props: IsiteProps & { fileUrl: string }): PromiseLike<IBaseQuery<driveItem> & driveItemMethods>;
|
|
4586
4586
|
|
|
4587
4587
|
/** Returns a list for a site. */
|
|
4588
|
-
|
|
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
|
-
|
|
4591
|
+
getIdByUrl(url: string): PromiseLike<IsiteIdResult>;
|
|
4592
4592
|
|
|
4593
4593
|
/** Returns the root site of the current site. */
|
|
4594
|
-
|
|
4594
|
+
getRoot(): IBaseQuery<site> & siteMethods;
|
|
4595
4595
|
|
|
4596
4596
|
/** Returns a site by url. */
|
|
4597
|
-
|
|
4597
|
+
getSite(url: string): PromiseLike<IBaseQuery<site> & siteMethods>;
|
|
4598
4598
|
}
|
|
4599
4599
|
}
|
|
4600
4600
|
|