Skip to content

Commit

Permalink
Merge pull request #84 from gunjandatta/gdatta
Browse files Browse the repository at this point in the history
Updated the EntityData Interface
  • Loading branch information
gunjandatta authored Dec 8, 2017
2 parents 2793246 + bbef154 commit 0bbec3e
Show file tree
Hide file tree
Showing 27 changed files with 445 additions and 497 deletions.
2 changes: 1 addition & 1 deletion build/gd-sprest.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions build/lib/helper/dependencies.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import { Promise } from "../../utils";
/**
* Dependencies
*/
export interface IDependencies {
/**
* Constructor
* @param callback - The method to execute after the dependencies are loaded.
*/
constructor(callback: (...args) => void): any;
/** The maximum amount of time to wait for the scripts to be loaded. */
MAX_WAIT: number;
/** Flag to determine if the page context information exists */
pageContextExistsFl: boolean;
/** The promise. */
promise: Promise;
/** The script file names to load. */
SCRIPTS: Array<string>;
/**
* Method to ensure the SP classes are loaded
*/
loadDependencies(): any;
/**
* Method to wait for the page context to be loaded
*/
waitForPageContext(): any;
}
/**
* Dependencies
* This class will ensure the core SP scripts are loaded on the page.
*/
export declare class Dependencies {
MAX_WAIT: number;
promise: Promise;
readonly pageContextExistsFl: boolean;
SCRIPTS: Array<string>;
/**
* Constructor
* @param callback - The method to execute after the scripts have been loaded.
*/
constructor(callback: (...args) => void);
/**
* Method to ensure the SP classes are loaded
*/
loadDependencies(): void;
/**
* Method to wait for the page context to be loaded
*/
waitForPageContext(): void;
}
72 changes: 72 additions & 0 deletions build/lib/helper/dependencies.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build/lib/helper/dependencies.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions build/lib/helper/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { IHelperApp } from "./app";
import { IDependencies } from "./dependencies";
import { IHelperJSLink } from "./jslink";
import { ILoader } from "./loader";
import { ISPConfig } from "./spCfg";
Expand All @@ -10,6 +11,10 @@ export interface IHelper {
* App-Model helper methods
*/
App: IHelperApp;
/**
* Dependencies
*/
Dependencies: IDependencies;
/**
* JSLink helper methods
*/
Expand Down
2 changes: 2 additions & 0 deletions build/lib/helper/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/lib/helper/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

52 changes: 2 additions & 50 deletions build/lib/helper/spCfg.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,31 +152,7 @@ export interface ISPConfig {
* @param callback - An optional function called after the execution completes.
* @param targetName - The target configuration type to install.
*/
installByType(cfgType: ISPConfigTypes, callback?: any, targetName?: string): any;
/**
* Method to install a specific content type
* @param ctName - The content type to install.
* @param callback - An optional function called after the execution completes.
*/
installContentType(ctName: string, callback?: any): any;
/**
* Method to install a specific list
* @param listName - The list to install.
* @param callback - An optional function called after the execution completes.
*/
installList(listName: string, callback?: any): any;
/**
* Method to install a specific site custom action
* @param caName - The site user custom action to install.
* @param callback - An optional function called after the execution completes.
*/
installSiteCustomAction(caName: string, callback?: any): any;
/**
* Method to install a specific web custom action
* @param caName - The web user custom action to install.
* @param callback - An optional function called after the execution completes.
*/
installWebCustomAction(caName: string, callback?: any): any;
installByType(cfgType: number, callback?: any, targetName?: string): any;
/**
* Method to install the configuration
* @param callback - An optional function called after the execution completes.
Expand All @@ -188,31 +164,7 @@ export interface ISPConfig {
* @param callback - An optional function called after the execution completes.
* @param targetName - The target configuration type to uninstall.
*/
uninstallByType(cfgType: ISPConfigTypes, callback?: any, targetName?: string): any;
/**
* Method to uninstall a specific content type
* @param ctName - The content type to uninstall.
* @param callback - An optional function called after the execution completes.
*/
uninstallContentType(ctName: string, callback?: any): any;
/**
* Method to uninstall a specific list
* @param listName - The list to uninstall.
* @param callback - An optional function called after the execution completes.
*/
uninstallList(listName: string, callback?: any): any;
/**
* Method to uninstall a specific site custom action
* @param caName - The site user custom action to uninstall.
* @param callback - An optional function called after the execution completes.
*/
uninstallSiteCustomAction(caName: string, callback?: any): any;
/**
* Method to uninstall a specific web custom action
* @param caName - The web user custom action to uninstall.
* @param callback - An optional function called after the execution completes.
*/
uninstallWebCustomAction(caName: string, callback?: any): any;
uninstallByType(cfgType: number, callback?: any, targetName?: string): any;
}
/**
* SharePoint Configuration - Properties
Expand Down
2 changes: 1 addition & 1 deletion build/lib/helper/spCfg.js.map

Large diffs are not rendered by default.

20 changes: 11 additions & 9 deletions build/mapper/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,25 @@ export interface IContextInfo {
*/
export interface IEntityData {
/** Account Name */
AccountName: string;
AccountName?: string;
/** Department. */
Department: string;
Department?: string;
/** EMail */
Email: string;
Email?: string;
/** */
IsAltSecIdPresent: boolean;
IsAltSecIdPresent?: boolean;
/** Mobile Phone */
MobilePhone: string;
MobilePhone?: string;
/** Object ID */
ObjectId: string;
ObjectId?: string;
/** Principal Type */
PrincipalType: string;
PrincipalType?: string;
/** SharePoint Group ID */
SPGroupID?: string;
/** SharePoint User ID */
SPUserID: string;
SPUserID?: string;
/** Title */
Title: string;
Title?: string;
}
/**
* Feature
Expand Down
20 changes: 0 additions & 20 deletions build/utils/dependencies.d.ts

This file was deleted.

81 changes: 0 additions & 81 deletions build/utils/dependencies.js

This file was deleted.

1 change: 0 additions & 1 deletion build/utils/dependencies.js.map

This file was deleted.

1 change: 0 additions & 1 deletion build/utils/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ export * from "./baseRequest";
export * from "./baseExecution";
export * from "./base";
export * from "./batch";
export * from "./dependencies";
export * from "./methodInfo";
export * from "./oData";
export * from "./promise";
Expand Down
1 change: 0 additions & 1 deletion build/utils/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0bbec3e

Please sign in to comment.