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 +4 -0
- package/@types/utils/xhrRequest.d.ts +6 -0
- package/@types/v2/drives.d.ts +1 -1
- package/@types/v2/sites.d.ts +4 -4
- package/build/mapper/v2.js +8491 -235
- package/build/rest.js +2 -1
- package/build/sptypes/graphtypes.js +6874 -0
- package/build/sptypes/index.js +3 -1
- package/build/utils/helper.js +2 -2
- package/build/utils/methodInfo.js +0 -6
- package/build/utils/request.js +14 -8
- package/build/utils/targetInfo.js +3 -3
- package/build/utils/xhrRequest.js +17 -4
- package/build/v2/sites.js +53 -12
- package/dist/gd-sprest.d.ts +16 -5
- package/dist/gd-sprest.js +1 -1
- package/dist/gd-sprest.js.LICENSE.txt +4 -0
- package/dist/gd-sprest.min.js +1 -1
- package/package.json +2 -2
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
|
|
package/@types/v2/drives.d.ts
CHANGED
|
@@ -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 }):
|
|
34
|
+
(props?: { driveId?: string, siteId?: string, siteUrl?: string, targetInfo?: ITargetInfoProps }): driveCollection;
|
|
35
35
|
}
|
package/@types/v2/sites.d.ts
CHANGED
|
@@ -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
|
|
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
|
}
|