Skip to content
This repository has been archived by the owner on Jun 17, 2024. It is now read-only.

Commit

Permalink
Merge pull request #32 from MicrosoftDX/vNext
Browse files Browse the repository at this point in the history
calendarView fix
  • Loading branch information
billba authored Jun 9, 2016
2 parents 89f079f + f8e7d24 commit efca6c8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dist/kurve.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ declare namespace Kurve {
class CalendarView extends CollectionNode {
constructor(graph: Graph, path?: string);
private $;
dateRange: (startDate: Date, endDate: Date) => string;
static dateRange: (startDate: Date, endDate: Date) => string;
GetEvents: (odataQuery?: OData | string) => Promise<GraphCollection<EventDataModel, CalendarView, Event>, Error>;
}
class MailFolder extends Node {
Expand Down
2 changes: 1 addition & 1 deletion dist/kurve.js
Original file line number Diff line number Diff line change
Expand Up @@ -1247,9 +1247,9 @@ var Kurve;
if (path === void 0) { path = ""; }
_super.call(this, graph, path + "/calendarView");
this.$ = function (eventId) { return new Event(_this.graph, _this.path, eventId); };
this.dateRange = function (startDate, endDate) { return ("startDateTime=" + startDate.toISOString() + "&endDateTime=" + endDate.toISOString()); };
this.GetEvents = function (odataQuery) { return _this.getCollection(_this.pathWithQuery(odataQuery), _this, _this.$, _this.scopesForV2([Scopes.Calendars.Read])); };
}
CalendarView.dateRange = function (startDate, endDate) { return ("startDateTime=" + startDate.toISOString() + "&endDateTime=" + endDate.toISOString()); };
return CalendarView;
}(CollectionNode));
Kurve.CalendarView = CalendarView;
Expand Down
2 changes: 1 addition & 1 deletion dist/kurve.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kurvejs",
"version": "0.5.1",
"version": "0.5.2",
"description": "Kurve JS library",
"license": "MIT",
"main": "./dist/kurve.js",
Expand Down
2 changes: 1 addition & 1 deletion querybuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ namespace Kurve {

private $ = (eventId:string) => new Event(this.graph, this.path, eventId); // need to adjust this path

dateRange = (startDate:Date, endDate:Date) => `startDateTime=${startDate.toISOString()}&endDateTime=${endDate.toISOString()}`
static dateRange = (startDate:Date, endDate:Date) => `startDateTime=${startDate.toISOString()}&endDateTime=${endDate.toISOString()}`

GetEvents = (odataQuery?:ODataQuery) => this.getCollection<EventDataModel, CalendarView, Event>(this.pathWithQuery(odataQuery), this, this.$, this.scopesForV2([Scopes.Calendars.Read]));
}
Expand Down

0 comments on commit efca6c8

Please sign in to comment.