node-calendly
Advanced tools
Comparing version 1.0.9 to 1.0.10
@@ -6,2 +6,3 @@ /****************************************** | ||
import ActivityLog from './endpoints/ActivityLog'; | ||
import { Options } from './endpoints/CalendlyApiEndpoint'; | ||
import DataCompliance from './endpoints/DataCompliance'; | ||
@@ -70,3 +71,3 @@ import EventTypes from './endpoints/EventTypes'; | ||
*/ | ||
constructor(ACCESS_TOKEN: string); | ||
constructor(ACCESS_TOKEN: string, params?: Options); | ||
/** | ||
@@ -73,0 +74,0 @@ * Get the current user. |
@@ -38,9 +38,9 @@ "use strict"; | ||
*/ | ||
constructor(ACCESS_TOKEN) { | ||
constructor(ACCESS_TOKEN, params) { | ||
this.ACCESS_TOKEN = ACCESS_TOKEN; | ||
this.users = new Users_1.default(this.ACCESS_TOKEN); | ||
this.activityLog = new ActivityLog_1.default(this.ACCESS_TOKEN, this); | ||
this.dataCompliance = new DataCompliance_1.default(this.ACCESS_TOKEN); | ||
this.eventTypes = new EventTypes_1.default(this.ACCESS_TOKEN, this, this); | ||
this.scheduledEvents = new ScheduledEvents_1.default(this.ACCESS_TOKEN); | ||
this.users = new Users_1.default(this.ACCESS_TOKEN, params); | ||
this.activityLog = new ActivityLog_1.default(this.ACCESS_TOKEN, this, params); | ||
this.dataCompliance = new DataCompliance_1.default(this.ACCESS_TOKEN, params); | ||
this.eventTypes = new EventTypes_1.default(this.ACCESS_TOKEN, this, this, params); | ||
this.scheduledEvents = new ScheduledEvents_1.default(this.ACCESS_TOKEN, params); | ||
} | ||
@@ -47,0 +47,0 @@ /** |
@@ -6,8 +6,8 @@ /****************************************** | ||
*******************************************/ | ||
import CalendlyApiEndpoint from './CalendlyApiEndpoint'; | ||
import CalendlyApiEndpoint, { Options } from './CalendlyApiEndpoint'; | ||
import { OrganizationProvider } from './Provider'; | ||
export default class CalendlyApiEndpointWithOrganization extends CalendlyApiEndpoint { | ||
protected organizationProvider: OrganizationProvider; | ||
constructor(ACCESS_TOKEN: string, organizationProvider: OrganizationProvider); | ||
constructor(ACCESS_TOKEN: string, organizationProvider: OrganizationProvider, params?: Options); | ||
} | ||
//# sourceMappingURL=CalendlyApiEndpointWithOrganization.d.ts.map |
@@ -13,9 +13,4 @@ "use strict"; | ||
class CalendlyApiEndpointWithOrganization extends CalendlyApiEndpoint_1.default { | ||
constructor(ACCESS_TOKEN, organizationProvider) { | ||
super(ACCESS_TOKEN, { | ||
timeout: 60000, | ||
limit: 2, | ||
interval: 1000, | ||
bucketSize: 35 | ||
}); | ||
constructor(ACCESS_TOKEN, organizationProvider, params) { | ||
super(ACCESS_TOKEN, params); | ||
this.organizationProvider = organizationProvider; | ||
@@ -22,0 +17,0 @@ } |
@@ -6,7 +6,8 @@ /****************************************** | ||
*******************************************/ | ||
import EventType from './types/EventType'; | ||
import { EventTypeAvailableTime } from './types/EventTypeAvailableTime'; | ||
import { Options } from './CalendlyApiEndpoint'; | ||
import CalendlyApiEndpointWithOrganization from './CalendlyApiEndpointWithOrganization'; | ||
import { PaginationResponse } from './PaginationResponse'; | ||
import { MeProvider, OrganizationProvider } from './Provider'; | ||
import EventType from './types/EventType'; | ||
import { EventTypeAvailableTime } from './types/EventTypeAvailableTime'; | ||
/** | ||
@@ -21,3 +22,3 @@ * The event types endpoint. | ||
meProvider: MeProvider; | ||
constructor(ACCESS_TOKEN: string, organizationProvider: OrganizationProvider, meProvider: MeProvider); | ||
constructor(ACCESS_TOKEN: string, organizationProvider: OrganizationProvider, meProvider: MeProvider, params?: Options); | ||
/** | ||
@@ -24,0 +25,0 @@ * Returns all Event Types associated with a specified User. If user is not specified, the current user is used. |
@@ -20,4 +20,4 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const CalendlyApiEndpointWithOrganization_1 = __importDefault(require("./CalendlyApiEndpointWithOrganization")); | ||
const EventType_1 = __importDefault(require("./types/EventType")); | ||
const CalendlyApiEndpointWithOrganization_1 = __importDefault(require("./CalendlyApiEndpointWithOrganization")); | ||
/** | ||
@@ -31,4 +31,4 @@ * The event types endpoint. | ||
class EventTypes extends CalendlyApiEndpointWithOrganization_1.default { | ||
constructor(ACCESS_TOKEN, organizationProvider, meProvider) { | ||
super(ACCESS_TOKEN, organizationProvider); | ||
constructor(ACCESS_TOKEN, organizationProvider, meProvider, params) { | ||
super(ACCESS_TOKEN, organizationProvider, params); | ||
this.meProvider = meProvider; | ||
@@ -35,0 +35,0 @@ } |
{ | ||
"name": "node-calendly", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Node module to access calendly api.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/Calendly.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
141078
1797