gd-sprest 7.0.9 → 7.1.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,4 +1,4 @@
1
- import * as SP from "../intellisense/graph";
1
+ import { IGraph as IGraphCore, IGraphToken } from "../intellisense/graph";
2
2
  import { ITargetInfo } from "../utils";
3
3
 
4
4
  /**
@@ -17,10 +17,10 @@ export interface IGraph {
17
17
  * @param accessToken - The access token for the graph api request.
18
18
  * @param version - The version of the graph to target.
19
19
  */
20
- (accessToken: string, version?: string): SP.IGraph;
20
+ (accessToken: string, version?: string): IGraphCore;
21
21
 
22
22
  /**
23
23
  * Method to get the access token from a classic page.
24
24
  */
25
- getAccessToken(): Promise<SP.IGraphToken>;
25
+ getAccessToken(): Promise<IGraphToken>;
26
26
  }
@@ -1,4 +1,4 @@
1
- import * as SP from "gd-sprest-def/lib/Microsoft/SharePoint/Portal/entitytypes";
1
+ import { IGroupService as IGroupServiceCore } from "gd-sprest-def/lib/Microsoft/SharePoint/Portal/entitytypes";
2
2
  import { ITargetInfoProps } from "../utils";
3
3
 
4
4
  /**
@@ -16,5 +16,5 @@ export interface IGroupService {
16
16
  * Creates an instance of the user profile library.
17
17
  * @param targetInfo - (Optional) The target information.
18
18
  */
19
- (targetInfo?: ITargetInfoProps): SP.IGroupService;
19
+ (targetInfo?: ITargetInfoProps): IGroupServiceCore;
20
20
  }
@@ -1,4 +1,4 @@
1
- import * as SP from "gd-sprest-def/lib/Microsoft/SharePoint/Portal/entitytypes";
1
+ import { IGroupSiteManager as IGroupSiteManagerCore } from "gd-sprest-def/lib/Microsoft/SharePoint/Portal/entitytypes";
2
2
  import { ITargetInfoProps } from "../utils";
3
3
 
4
4
  /**
@@ -16,5 +16,5 @@ export interface IGroupSiteManager {
16
16
  * Creates an instance of the user profile library.
17
17
  * @param targetInfo - (Optional) The target information.
18
18
  */
19
- (targetInfo?: ITargetInfoProps): SP.IGroupSiteManager;
19
+ (targetInfo?: ITargetInfoProps): IGroupSiteManagerCore;
20
20
  }
@@ -1,4 +1,4 @@
1
- import * as SP from "gd-sprest-def/lib/Microsoft/SharePoint/Portal/entitytypes";
1
+ import { ISPHubSitesUtility as ISPHubSitesUtilityCore } from "gd-sprest-def/lib/Microsoft/SharePoint/Portal/entitytypes";
2
2
  import { ITargetInfoProps } from "../utils";
3
3
 
4
4
  /**
@@ -16,5 +16,5 @@ export interface IHubSitesUtility {
16
16
  * Creates an instance of the user profile library.
17
17
  * @param targetInfo - (Optional) The target information.
18
18
  */
19
- (targetInfo?: ITargetInfoProps): SP.ISPHubSitesUtility;
19
+ (targetInfo?: ITargetInfoProps): ISPHubSitesUtilityCore;
20
20
  }
@@ -1,6 +1,6 @@
1
1
  import { IBaseExecution } from "gd-sprest-def/lib/base";
2
2
  import { RenderListDataParameters } from "gd-sprest-def/lib/SP/complextypes";
3
- import * as SP from "gd-sprest-def/lib/SP/entitytypes";
3
+ import { IList as IListCore, ListItem } from "gd-sprest-def/lib/SP/entitytypes";
4
4
  import { ITargetInfoProps } from "../utils";
5
5
 
6
6
  /**
@@ -41,14 +41,14 @@ export interface IList {
41
41
  * @param listName - The name of the list.
42
42
  * @param targetInfo - (Optional) The target information.
43
43
  */
44
- (listName: string, targetInfo?: ITargetInfoProps): SP.IList;
44
+ (listName: string, targetInfo?: ITargetInfoProps): IListCore;
45
45
 
46
46
  /**
47
47
  * @category List
48
48
  * A static method to get the list by the entity name.
49
49
  * @param props - The list entity request properties.
50
50
  */
51
- getByEntityName(props: IListEntityProps): SP.IList;
51
+ getByEntityName(props: IListEntityProps): IListCore;
52
52
 
53
53
  /**
54
54
  * A static method to get the list data from the SP.List.GetListAsDataStream endpoint.
@@ -63,7 +63,7 @@ export interface IList {
63
63
  * List Data Stream
64
64
  * @category List
65
65
  */
66
- export interface IListDataStream<RowProps = SP.ListItem> {
66
+ export interface IListDataStream<RowProps = ListItem> {
67
67
  FilterFields?: string;
68
68
  FilterLink: string;
69
69
  FirstRow: number;
@@ -81,7 +81,7 @@ export interface IListDataStream<RowProps = SP.ListItem> {
81
81
  */
82
82
  export interface IListEntityProps {
83
83
  /** The callback method. */
84
- callback?: (list: SP.IList) => void;
84
+ callback?: (list: IListCore) => void;
85
85
 
86
86
  /** The list entity name. */
87
87
  name: string;
@@ -1,4 +1,4 @@
1
- import * as SP from "gd-sprest-def/lib/SP/UserProfiles/entitytypes";
1
+ import { IPeopleManager as IPeopleManagerCore } from "gd-sprest-def/lib/SP/UserProfiles/entitytypes";
2
2
  import { ITargetInfoProps } from "../utils";
3
3
 
4
4
  /**
@@ -16,5 +16,5 @@ export interface IPeopleManager {
16
16
  * Creates an instance of the people manager library.
17
17
  * @param targetInfo - (Optional) The target information.
18
18
  */
19
- (targetInfo?: ITargetInfoProps): SP.IPeopleManager;
19
+ (targetInfo?: ITargetInfoProps): IPeopleManagerCore;
20
20
  }
@@ -1,4 +1,4 @@
1
- import * as SP from "../intellisense/peoplePicker";
1
+ import { IPeoplePicker as IPeoplePickerCore } from "../intellisense/peoplePicker";
2
2
  import { ITargetInfoProps } from "../utils";
3
3
 
4
4
  /**
@@ -16,5 +16,5 @@ export interface IPeoplePicker {
16
16
  * Creates an instance of the people picker library.
17
17
  * @param targetInfo - (Optional) The target information.
18
18
  */
19
- (targetInfo?: ITargetInfoProps): SP.IPeoplePicker;
19
+ (targetInfo?: ITargetInfoProps): IPeoplePickerCore;
20
20
  }
@@ -1,4 +1,4 @@
1
- import * as SP from "gd-sprest-def/lib/SP/UserProfiles/entitytypes";
1
+ import { IProfileLoader as IProfileLoaderCore } from "gd-sprest-def/lib/SP/UserProfiles/entitytypes";
2
2
  import { ITargetInfoProps } from "../utils";
3
3
 
4
4
  /**
@@ -16,5 +16,5 @@ export interface IProfileLoader {
16
16
  * Creates an instance of the profile loader library.
17
17
  * @param targetInfo - (Optional) The target information.
18
18
  */
19
- (targetInfo?: ITargetInfoProps): SP.IProfileLoader;
19
+ (targetInfo?: ITargetInfoProps): IProfileLoaderCore;
20
20
  }
@@ -1,5 +1,5 @@
1
1
  import { IBaseExecution } from "gd-sprest-def/lib/base";
2
- import * as SP from "gd-sprest-def/lib/SP/entitytypes";
2
+ import { ISite as ISiteCore } from "gd-sprest-def/lib/SP/entitytypes";
3
3
  import { ITargetInfoProps } from "../utils";
4
4
 
5
5
  /**
@@ -41,7 +41,7 @@ export interface ISite {
41
41
  * @param url - (Optional) The site url.
42
42
  * @param targetInfo - (Optional) The target information.
43
43
  */
44
- (url?: string, targetInfo?: ITargetInfoProps): SP.ISite;
44
+ (url?: string, targetInfo?: ITargetInfoProps): ISiteCore;
45
45
 
46
46
  /**
47
47
  * Method to check if a site collection exists.
@@ -1,5 +1,5 @@
1
1
  import { IBaseExecution } from "gd-sprest-def/lib/base";
2
- import * as Portal from "gd-sprest-def/lib/Microsoft/SharePoint/Portal/entitytypes";
2
+ import { ISPSiteManager as ISPSiteManagerCore } from "gd-sprest-def/lib/Microsoft/SharePoint/Portal/entitytypes";
3
3
  import { ITargetInfoProps } from "../utils";
4
4
 
5
5
  /**
@@ -41,5 +41,5 @@ export interface ISiteManager {
41
41
  * @param url - (Optional) The site url.
42
42
  * @param targetInfo - (Optional) The target information.
43
43
  */
44
- (url?: string, targetInfo?: ITargetInfoProps): Portal.ISPSiteManager;
44
+ (url?: string, targetInfo?: ITargetInfoProps): ISPSiteManagerCore;
45
45
  }
@@ -1,3 +1,4 @@
1
+ import { File, ListItem } from "gd-sprest-def/lib/SP/entitytypes";
1
2
  import { SitePage, ISitePageService } from "gd-sprest-def/lib/SP/Publishing/entitytypes";
2
3
  import { ITargetInfoProps } from "../utils";
3
4
 
@@ -35,10 +36,11 @@ export interface ISitePages {
35
36
  * @param title - The title of the page.
36
37
  * @param template - The type of page to create.
37
38
  * @param url - The url of the web to create the page in.
39
+ * @param targetInfo - The target information properties.
38
40
  */
39
- createPage(fileName: string, title: string, template: string, url?:string): PromiseLike<{
40
- file: SP.File;
41
- item: SP.ListItem;
42
- page: SP.Publishing.SitePage;
41
+ createPage(fileName: string, title: string, template: string, url?: string, targetInfo?: ITargetInfoProps): PromiseLike<{
42
+ file: File;
43
+ item: ListItem;
44
+ page: SitePage;
43
45
  }>;
44
46
  }
@@ -1,4 +1,4 @@
1
- import * as SP from "gd-sprest-def/lib/SP/Utilities/entitytypes";
1
+ import { IThemeManager as IThemeManagerCore } from "gd-sprest-def/lib/SP/Utilities/entitytypes";
2
2
  import { ITargetInfoProps } from "../utils";
3
3
 
4
4
  /**
@@ -16,5 +16,5 @@ export interface IThemeManager {
16
16
  * Creates an instance of the user profile library.
17
17
  * @param targetInfo - (Optional) The target information.
18
18
  */
19
- (targetInfo?: ITargetInfoProps): SP.IThemeManager;
19
+ (targetInfo?: ITargetInfoProps): IThemeManagerCore;
20
20
  }
@@ -1,4 +1,4 @@
1
- import * as SP from "../intellisense/utility";
1
+ import { IUtility as IUtilityCore } from "../intellisense/utility";
2
2
  import { ITargetInfoProps } from "../utils";
3
3
 
4
4
  /**
@@ -17,5 +17,5 @@ export interface IUtility {
17
17
  * @param url - (Optional) The web url.
18
18
  * @param targetInfo - (Optional) The target information.
19
19
  */
20
- (url?: string, targetInfo?: ITargetInfoProps): SP.IUtility;
20
+ (url?: string, targetInfo?: ITargetInfoProps): IUtilityCore;
21
21
  }
@@ -11,6 +11,7 @@ function Executor(methodParams, method, onExecuted) {
11
11
  var _this = this;
12
12
  if (methodParams === void 0) { methodParams = []; }
13
13
  var _resolve = null;
14
+ var _reject = null;
14
15
  // Method to execute the methods
15
16
  var executeMethods = function (idx) {
16
17
  if (idx === void 0) { idx = 0; }
@@ -43,7 +44,7 @@ function Executor(methodParams, method, onExecuted) {
43
44
  // Execute the next method
44
45
  executeMethods(idx + 1);
45
46
  }
46
- });
47
+ }, _reject);
47
48
  }
48
49
  // Else, see if additional methods need to be executed
49
50
  else if (idx < methodParams.length) {
@@ -52,7 +53,6 @@ function Executor(methodParams, method, onExecuted) {
52
53
  }
53
54
  // Else, resolve the promise
54
55
  else {
55
- // Resolve the promise
56
56
  _resolve();
57
57
  }
58
58
  };
@@ -60,6 +60,7 @@ function Executor(methodParams, method, onExecuted) {
60
60
  return new Promise(function (resolve, reject) {
61
61
  // Set the resolve reference
62
62
  _resolve = resolve;
63
+ _reject = reject;
63
64
  // See if params exist
64
65
  if (methodParams.length > 0) {
65
66
  // Execute the methods
@@ -233,11 +233,11 @@ exports.SPConfig = function (cfg, webUrl) {
233
233
  }
234
234
  }, reject);
235
235
  });
236
- }).then(resolve);
236
+ }).then(resolve, reject);
237
237
  }, reject);
238
238
  });
239
239
  };
240
- // Method to create the fields`
240
+ // Method to create the fields
241
241
  var createFields = function (fields, cfgFields, list) {
242
242
  // Return a promise
243
243
  return new Promise(function (resolve, reject) {
@@ -381,7 +381,7 @@ exports.SPConfig = function (cfg, webUrl) {
381
381
  updateLists(cfgLists).then(function () {
382
382
  // Resolve the promise
383
383
  resolve();
384
- });
384
+ }, reject);
385
385
  });
386
386
  });
387
387
  };
package/build/rest.js CHANGED
@@ -8,7 +8,7 @@ var sptypes_1 = require("./sptypes");
8
8
  * SharePoint REST Library
9
9
  */
10
10
  exports.$REST = {
11
- __ver: 7.09,
11
+ __ver: 7.12,
12
12
  AppContext: function (siteUrl) { return Lib.Site.getAppContext(siteUrl); },
13
13
  Apps: Lib.Apps,
14
14
  ContextInfo: Lib.ContextInfo,
@@ -925,7 +925,7 @@ declare module 'gd-sprest/lib/contextInfo' {
925
925
  }
926
926
 
927
927
  declare module 'gd-sprest/lib/graph' {
928
- import * as SP from "gd-sprest/intellisense/graph";
928
+ import { IGraph as IGraphCore, IGraphToken } from "gd-sprest/intellisense/graph";
929
929
  import { ITargetInfo } from "gd-sprest/utils";
930
930
 
931
931
  /**
@@ -944,17 +944,17 @@ declare module 'gd-sprest/lib/graph' {
944
944
  * @param accessToken - The access token for the graph api request.
945
945
  * @param version - The version of the graph to target.
946
946
  */
947
- (accessToken: string, version?: string): SP.IGraph;
947
+ (accessToken: string, version?: string): IGraphCore;
948
948
 
949
949
  /**
950
950
  * Method to get the access token from a classic page.
951
951
  */
952
- getAccessToken(): Promise<SP.IGraphToken>;
952
+ getAccessToken(): Promise<IGraphToken>;
953
953
  }
954
954
  }
955
955
 
956
956
  declare module 'gd-sprest/lib/groupService' {
957
- import * as SP from "gd-sprest-def/lib/Microsoft/SharePoint/Portal/entitytypes";
957
+ import { IGroupService as IGroupServiceCore } from "gd-sprest-def/lib/Microsoft/SharePoint/Portal/entitytypes";
958
958
  import { ITargetInfoProps } from "gd-sprest/utils";
959
959
 
960
960
  /**
@@ -972,12 +972,12 @@ declare module 'gd-sprest/lib/groupService' {
972
972
  * Creates an instance of the user profile library.
973
973
  * @param targetInfo - (Optional) The target information.
974
974
  */
975
- (targetInfo?: ITargetInfoProps): SP.IGroupService;
975
+ (targetInfo?: ITargetInfoProps): IGroupServiceCore;
976
976
  }
977
977
  }
978
978
 
979
979
  declare module 'gd-sprest/lib/groupSiteManager' {
980
- import * as SP from "gd-sprest-def/lib/Microsoft/SharePoint/Portal/entitytypes";
980
+ import { IGroupSiteManager as IGroupSiteManagerCore } from "gd-sprest-def/lib/Microsoft/SharePoint/Portal/entitytypes";
981
981
  import { ITargetInfoProps } from "gd-sprest/utils";
982
982
 
983
983
  /**
@@ -995,7 +995,7 @@ declare module 'gd-sprest/lib/groupSiteManager' {
995
995
  * Creates an instance of the user profile library.
996
996
  * @param targetInfo - (Optional) The target information.
997
997
  */
998
- (targetInfo?: ITargetInfoProps): SP.IGroupSiteManager;
998
+ (targetInfo?: ITargetInfoProps): IGroupSiteManagerCore;
999
999
  }
1000
1000
  }
1001
1001
 
@@ -1029,7 +1029,7 @@ declare module 'gd-sprest/lib/hubSites' {
1029
1029
  }
1030
1030
 
1031
1031
  declare module 'gd-sprest/lib/hubSitesUtility' {
1032
- import * as SP from "gd-sprest-def/lib/Microsoft/SharePoint/Portal/entitytypes";
1032
+ import { ISPHubSitesUtility as ISPHubSitesUtilityCore } from "gd-sprest-def/lib/Microsoft/SharePoint/Portal/entitytypes";
1033
1033
  import { ITargetInfoProps } from "gd-sprest/utils";
1034
1034
 
1035
1035
  /**
@@ -1047,14 +1047,14 @@ declare module 'gd-sprest/lib/hubSitesUtility' {
1047
1047
  * Creates an instance of the user profile library.
1048
1048
  * @param targetInfo - (Optional) The target information.
1049
1049
  */
1050
- (targetInfo?: ITargetInfoProps): SP.ISPHubSitesUtility;
1050
+ (targetInfo?: ITargetInfoProps): ISPHubSitesUtilityCore;
1051
1051
  }
1052
1052
  }
1053
1053
 
1054
1054
  declare module 'gd-sprest/lib/list' {
1055
1055
  import { IBaseExecution } from "gd-sprest-def/lib/base";
1056
1056
  import { RenderListDataParameters } from "gd-sprest-def/lib/SP/complextypes";
1057
- import * as SP from "gd-sprest-def/lib/SP/entitytypes";
1057
+ import { IList as IListCore, ListItem } from "gd-sprest-def/lib/SP/entitytypes";
1058
1058
  import { ITargetInfoProps } from "gd-sprest/utils";
1059
1059
 
1060
1060
  /**
@@ -1095,14 +1095,14 @@ declare module 'gd-sprest/lib/list' {
1095
1095
  * @param listName - The name of the list.
1096
1096
  * @param targetInfo - (Optional) The target information.
1097
1097
  */
1098
- (listName: string, targetInfo?: ITargetInfoProps): SP.IList;
1098
+ (listName: string, targetInfo?: ITargetInfoProps): IListCore;
1099
1099
 
1100
1100
  /**
1101
1101
  * @category List
1102
1102
  * A static method to get the list by the entity name.
1103
1103
  * @param props - The list entity request properties.
1104
1104
  */
1105
- getByEntityName(props: IListEntityProps): SP.IList;
1105
+ getByEntityName(props: IListEntityProps): IListCore;
1106
1106
 
1107
1107
  /**
1108
1108
  * A static method to get the list data from the SP.List.GetListAsDataStream endpoint.
@@ -1117,7 +1117,7 @@ declare module 'gd-sprest/lib/list' {
1117
1117
  * List Data Stream
1118
1118
  * @category List
1119
1119
  */
1120
- export interface IListDataStream<RowProps = SP.ListItem> {
1120
+ export interface IListDataStream<RowProps = ListItem> {
1121
1121
  FilterFields?: string;
1122
1122
  FilterLink: string;
1123
1123
  FirstRow: number;
@@ -1135,7 +1135,7 @@ declare module 'gd-sprest/lib/list' {
1135
1135
  */
1136
1136
  export interface IListEntityProps {
1137
1137
  /** The callback method. */
1138
- callback?: (list: SP.IList) => void;
1138
+ callback?: (list: IListCore) => void;
1139
1139
 
1140
1140
  /** The list entity name. */
1141
1141
  name: string;
@@ -1173,7 +1173,7 @@ declare module 'gd-sprest/lib/navigation' {
1173
1173
  }
1174
1174
 
1175
1175
  declare module 'gd-sprest/lib/peopleManager' {
1176
- import * as SP from "gd-sprest-def/lib/SP/UserProfiles/entitytypes";
1176
+ import { IPeopleManager as IPeopleManagerCore } from "gd-sprest-def/lib/SP/UserProfiles/entitytypes";
1177
1177
  import { ITargetInfoProps } from "gd-sprest/utils";
1178
1178
 
1179
1179
  /**
@@ -1191,12 +1191,12 @@ declare module 'gd-sprest/lib/peopleManager' {
1191
1191
  * Creates an instance of the people manager library.
1192
1192
  * @param targetInfo - (Optional) The target information.
1193
1193
  */
1194
- (targetInfo?: ITargetInfoProps): SP.IPeopleManager;
1194
+ (targetInfo?: ITargetInfoProps): IPeopleManagerCore;
1195
1195
  }
1196
1196
  }
1197
1197
 
1198
1198
  declare module 'gd-sprest/lib/peoplePicker' {
1199
- import * as SP from "gd-sprest/intellisense/peoplePicker";
1199
+ import { IPeoplePicker as IPeoplePickerCore } from "gd-sprest/intellisense/peoplePicker";
1200
1200
  import { ITargetInfoProps } from "gd-sprest/utils";
1201
1201
 
1202
1202
  /**
@@ -1214,12 +1214,12 @@ declare module 'gd-sprest/lib/peoplePicker' {
1214
1214
  * Creates an instance of the people picker library.
1215
1215
  * @param targetInfo - (Optional) The target information.
1216
1216
  */
1217
- (targetInfo?: ITargetInfoProps): SP.IPeoplePicker;
1217
+ (targetInfo?: ITargetInfoProps): IPeoplePickerCore;
1218
1218
  }
1219
1219
  }
1220
1220
 
1221
1221
  declare module 'gd-sprest/lib/profileLoader' {
1222
- import * as SP from "gd-sprest-def/lib/SP/UserProfiles/entitytypes";
1222
+ import { IProfileLoader as IProfileLoaderCore } from "gd-sprest-def/lib/SP/UserProfiles/entitytypes";
1223
1223
  import { ITargetInfoProps } from "gd-sprest/utils";
1224
1224
 
1225
1225
  /**
@@ -1237,7 +1237,7 @@ declare module 'gd-sprest/lib/profileLoader' {
1237
1237
  * Creates an instance of the profile loader library.
1238
1238
  * @param targetInfo - (Optional) The target information.
1239
1239
  */
1240
- (targetInfo?: ITargetInfoProps): SP.IProfileLoader;
1240
+ (targetInfo?: ITargetInfoProps): IProfileLoaderCore;
1241
1241
  }
1242
1242
  }
1243
1243
 
@@ -1287,7 +1287,7 @@ declare module 'gd-sprest/lib/search' {
1287
1287
 
1288
1288
  declare module 'gd-sprest/lib/site' {
1289
1289
  import { IBaseExecution } from "gd-sprest-def/lib/base";
1290
- import * as SP from "gd-sprest-def/lib/SP/entitytypes";
1290
+ import { ISite as ISiteCore } from "gd-sprest-def/lib/SP/entitytypes";
1291
1291
  import { ITargetInfoProps } from "gd-sprest/utils";
1292
1292
 
1293
1293
  /**
@@ -1329,7 +1329,7 @@ declare module 'gd-sprest/lib/site' {
1329
1329
  * @param url - (Optional) The site url.
1330
1330
  * @param targetInfo - (Optional) The target information.
1331
1331
  */
1332
- (url?: string, targetInfo?: ITargetInfoProps): SP.ISite;
1332
+ (url?: string, targetInfo?: ITargetInfoProps): ISiteCore;
1333
1333
 
1334
1334
  /**
1335
1335
  * Method to check if a site collection exists.
@@ -1369,7 +1369,7 @@ declare module 'gd-sprest/lib/site' {
1369
1369
 
1370
1370
  declare module 'gd-sprest/lib/siteManager' {
1371
1371
  import { IBaseExecution } from "gd-sprest-def/lib/base";
1372
- import * as Portal from "gd-sprest-def/lib/Microsoft/SharePoint/Portal/entitytypes";
1372
+ import { ISPSiteManager as ISPSiteManagerCore } from "gd-sprest-def/lib/Microsoft/SharePoint/Portal/entitytypes";
1373
1373
  import { ITargetInfoProps } from "gd-sprest/utils";
1374
1374
 
1375
1375
  /**
@@ -1411,11 +1411,12 @@ declare module 'gd-sprest/lib/siteManager' {
1411
1411
  * @param url - (Optional) The site url.
1412
1412
  * @param targetInfo - (Optional) The target information.
1413
1413
  */
1414
- (url?: string, targetInfo?: ITargetInfoProps): Portal.ISPSiteManager;
1414
+ (url?: string, targetInfo?: ITargetInfoProps): ISPSiteManagerCore;
1415
1415
  }
1416
1416
  }
1417
1417
 
1418
1418
  declare module 'gd-sprest/lib/sitePages' {
1419
+ import { File, ListItem } from "gd-sprest-def/lib/SP/entitytypes";
1419
1420
  import { SitePage, ISitePageService } from "gd-sprest-def/lib/SP/Publishing/entitytypes";
1420
1421
  import { ITargetInfoProps } from "gd-sprest/utils";
1421
1422
 
@@ -1453,11 +1454,12 @@ declare module 'gd-sprest/lib/sitePages' {
1453
1454
  * @param title - The title of the page.
1454
1455
  * @param template - The type of page to create.
1455
1456
  * @param url - The url of the web to create the page in.
1457
+ * @param targetInfo - The target information properties.
1456
1458
  */
1457
- createPage(fileName: string, title: string, template: string, url?:string): PromiseLike<{
1458
- file: SP.File;
1459
- item: SP.ListItem;
1460
- page: SP.Publishing.SitePage;
1459
+ createPage(fileName: string, title: string, template: string, url?: string, targetInfo?: ITargetInfoProps): PromiseLike<{
1460
+ file: File;
1461
+ item: ListItem;
1462
+ page: SitePage;
1461
1463
  }>;
1462
1464
  }
1463
1465
  }
@@ -1501,7 +1503,7 @@ declare module 'gd-sprest/lib/socialFeed' {
1501
1503
  }
1502
1504
 
1503
1505
  declare module 'gd-sprest/lib/themeManager' {
1504
- import * as SP from "gd-sprest-def/lib/SP/Utilities/entitytypes";
1506
+ import { IThemeManager as IThemeManagerCore } from "gd-sprest-def/lib/SP/Utilities/entitytypes";
1505
1507
  import { ITargetInfoProps } from "gd-sprest/utils";
1506
1508
 
1507
1509
  /**
@@ -1519,7 +1521,7 @@ declare module 'gd-sprest/lib/themeManager' {
1519
1521
  * Creates an instance of the user profile library.
1520
1522
  * @param targetInfo - (Optional) The target information.
1521
1523
  */
1522
- (targetInfo?: ITargetInfoProps): SP.IThemeManager;
1524
+ (targetInfo?: ITargetInfoProps): IThemeManagerCore;
1523
1525
  }
1524
1526
  }
1525
1527
 
@@ -1547,7 +1549,7 @@ declare module 'gd-sprest/lib/userProfile' {
1547
1549
  }
1548
1550
 
1549
1551
  declare module 'gd-sprest/lib/utility' {
1550
- import * as SP from "gd-sprest/intellisense/utility";
1552
+ import { IUtility as IUtilityCore } from "gd-sprest/intellisense/utility";
1551
1553
  import { ITargetInfoProps } from "gd-sprest/utils";
1552
1554
 
1553
1555
  /**
@@ -1566,7 +1568,7 @@ declare module 'gd-sprest/lib/utility' {
1566
1568
  * @param url - (Optional) The web url.
1567
1569
  * @param targetInfo - (Optional) The target information.
1568
1570
  */
1569
- (url?: string, targetInfo?: ITargetInfoProps): SP.IUtility;
1571
+ (url?: string, targetInfo?: ITargetInfoProps): IUtilityCore;
1570
1572
  }
1571
1573
  }
1572
1574