Skip to content

Commit

Permalink
Merge pull request #80 from gunjandatta/gdatta
Browse files Browse the repository at this point in the history
Code Reorganization
  • Loading branch information
gunjandatta authored Dec 2, 2017
2 parents 7760875 + 1a38d45 commit 3d0d1a7
Show file tree
Hide file tree
Showing 30 changed files with 1,661 additions and 2,420 deletions.
3 changes: 3 additions & 0 deletions build/gd-sprest.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ import { Types } from "./mapper";
import { RequestType, SPTypes } from "./types";
import { ContextInfo, Email, Helper, JSLink, List, PeopleManager, PeoplePicker, ProfileLoader, Search, Site, SocialFeed, UserProfile, Web } from "./lib";
export { ContextInfo, Email, Helper, JSLink, List, PeopleManager, PeoplePicker, ProfileLoader, RequestType, Search, Site, SocialFeed, SPTypes, Types, UserProfile, Web };
/**
* SharePoint REST Library
*/
export declare const $REST: Types.IREST;
14 changes: 5 additions & 9 deletions build/gd-sprest.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/gd-sprest.js.map

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

40 changes: 14 additions & 26 deletions build/lib/jslink.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,41 +22,29 @@ export interface ITemplates {
OnPreRender?: any;
}
/**
* JS Link Template
* JS Link Configuration
*/
export interface IJSLink {
export interface IJSLinkCfg {
/** The base view id. */
BaseViewID?: number | string;
/** The list template type. */
ListTemplateType?: number;
/** The post render event. */
OnPostRender?: any;
/** The pre render event. */
OnPreRender?: any;
/** The JSLink template overrides. */
Templates?: ITemplates;
}
/**
* JS Link
*/
export declare class JSLink {
/**
* Template Properties
*/
private _baseViewID;
BaseViewID: number | string;
private _listTemplateType;
ListTemplateType: number;
private _onPostRender;
OnPostRender: any;
private _onPreRender;
OnPreRender: any;
private _templates;
Templates: ITemplates;
/**
* Methods
*/
/**
* Returns the CSR template.
*/
getTemplate(): IJSLink;
/**
* Method to register the CSR override.
*/
export interface IJSLink extends IJSLinkCfg {
/** Constructor */
new (cfg?: IJSLinkCfg): IJSLink;
/** Method to get the template configuration. */
getTemplate(): IJSLinkCfg;
/** Method to register the JSLink template override. */
register(): void;
}
export declare const JSLink: IJSLink;
34 changes: 23 additions & 11 deletions build/lib/jslink.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/jslink.js.map

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

4 changes: 2 additions & 2 deletions build/mapper/propertyValues.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IBase, ODataQuery } from "../utils";
import { IBase } from "../utils";
import { Types } from ".";
/**
* Property Values
Expand All @@ -8,5 +8,5 @@ export interface IPropertyValues extends IBase, Types.ComplexTypes.KeyValue {
* Queries the collection.
* @param oData - The OData information.
*/
query(query: ODataQuery): IPropertyValues;
query(query: Types.ODataQuery): IPropertyValues;
}
10 changes: 9 additions & 1 deletion build/mapper/rest.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import { IContextInformation, IEmail, IHelper } from "../lib";
import { IContextInformation, IEmail, IHelper, IJSLink } from "../lib";
import { ITargetInfo } from "../utils";
import { Types } from ".";
/**
* SharePoint REST Library
*/
export interface IREST {
/**
* The version number of the library.
*/
__ver: number;
/**
* A reference to the _spPageContextInfo global variable.
*/
Expand All @@ -21,6 +25,10 @@ export interface IREST {
* Helper methods.
*/
Helper: IHelper;
/**
* Use this helper library for implementing JSLink solutions.
*/
JSLink: IJSLink;
/**
* Use this api to interact with SharePoint lists and libraries.
* @param listName - The name of the list.
Expand Down
Loading

0 comments on commit 3d0d1a7

Please sign in to comment.