Comparing version 6.7.0 to 6.8.0
@@ -0,1 +1,2 @@ | ||
import { WebhookTriggers } from './models/webhook'; | ||
export declare let apiServer: string | null; | ||
@@ -23,1 +24,23 @@ export declare function setApiServer(newApiServer: string | null): void; | ||
}; | ||
export declare enum Region { | ||
Us = "us", | ||
Ireland = "ireland" | ||
} | ||
export declare const DEFAULT_REGION = Region.Us; | ||
export declare const regionConfig: { | ||
us: { | ||
nylasAPIUrl: string; | ||
dashboardApiUrl: string; | ||
callbackDomain: string; | ||
websocketDomain: string; | ||
telemetryApiUrl: string; | ||
}; | ||
ireland: { | ||
nylasAPIUrl: string; | ||
dashboardApiUrl: string; | ||
callbackDomain: string; | ||
websocketDomain: string; | ||
telemetryApiUrl: string; | ||
}; | ||
}; | ||
export declare const DEFAULT_WEBHOOK_TRIGGERS: WebhookTriggers[]; |
"use strict"; | ||
var _a; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var webhook_1 = require("./models/webhook"); | ||
exports.apiServer = null; | ||
@@ -18,1 +20,24 @@ function setApiServer(newApiServer) { | ||
})(ResponseType = exports.ResponseType || (exports.ResponseType = {})); | ||
var Region; | ||
(function (Region) { | ||
Region["Us"] = "us"; | ||
Region["Ireland"] = "ireland"; | ||
})(Region = exports.Region || (exports.Region = {})); | ||
exports.DEFAULT_REGION = Region.Us; | ||
exports.regionConfig = (_a = {}, | ||
_a[Region.Us] = { | ||
nylasAPIUrl: 'https://api.nylas.com', | ||
dashboardApiUrl: 'https://dashboard-api.nylas.com', | ||
callbackDomain: 'cb.nylas.com', | ||
websocketDomain: 'tunnel.nylas.com', | ||
telemetryApiUrl: 'https://cli.nylas.com', | ||
}, | ||
_a[Region.Ireland] = { | ||
nylasAPIUrl: 'https://ireland.api.nylas.com', | ||
dashboardApiUrl: 'https://ireland.dashboard.nylas.com', | ||
callbackDomain: 'cb.nylas.com', | ||
websocketDomain: 'tunnel.nylas.com', | ||
telemetryApiUrl: 'https://cli.nylas.com', | ||
}, | ||
_a); | ||
exports.DEFAULT_WEBHOOK_TRIGGERS = Object.values(webhook_1.WebhookTriggers); |
@@ -50,2 +50,3 @@ import RestfulModel, { SaveCallback } from './restful-model'; | ||
organizerName?: string; | ||
hideParticipants?: boolean; | ||
visibility?: string; | ||
@@ -88,2 +89,3 @@ customerEventId?: string; | ||
organizerName?: string; | ||
hideParticipants?: boolean; | ||
visibility?: string; | ||
@@ -90,0 +92,0 @@ customerEventId?: string; |
@@ -297,2 +297,5 @@ "use strict"; | ||
readOnly: true, | ||
}), hideParticipants: attributes_1.default.Boolean({ | ||
modelKey: 'hideParticipants', | ||
jsonKey: 'hide_participants', | ||
}), visibility: attributes_1.default.String({ | ||
@@ -299,0 +302,0 @@ modelKey: 'visibility', |
@@ -11,2 +11,3 @@ import ManagementModel from './management-model'; | ||
AccountSyncError = "account.sync_error", | ||
MessageBounced = "message.bounced", | ||
MessageCreated = "message.created", | ||
@@ -13,0 +14,0 @@ MessageOpened = "message.opened", |
@@ -28,2 +28,3 @@ "use strict"; | ||
WebhookTriggers["AccountSyncError"] = "account.sync_error"; | ||
WebhookTriggers["MessageBounced"] = "message.bounced"; | ||
WebhookTriggers["MessageCreated"] = "message.created"; | ||
@@ -30,0 +31,0 @@ WebhookTriggers["MessageOpened"] = "message.opened"; |
{ | ||
"name": "nylas", | ||
"version": "6.7.0", | ||
"version": "6.8.0", | ||
"description": "A NodeJS wrapper for the Nylas REST API for email, contacts, and calendar.", | ||
@@ -50,3 +50,5 @@ "main": "lib/nylas.js", | ||
"JSONStream": "^1.3.5", | ||
"node-fetch": "^2.6.1" | ||
"node-fetch": "^2.6.1", | ||
"uuid": "^8.3.2", | ||
"websocket": "^1.0.34" | ||
}, | ||
@@ -61,2 +63,4 @@ "devDependencies": { | ||
"@types/node-fetch": "^2.5.8", | ||
"@types/uuid": "^8.3.4", | ||
"@types/websocket": "^1.0.5", | ||
"@typescript-eslint/eslint-plugin": "^2.25.0", | ||
@@ -63,0 +67,0 @@ "@typescript-eslint/parser": "^2.25.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
393128
129
9980
7
21
+ Addeduuid@^8.3.2
+ Addedwebsocket@^1.0.34
+ Addedbufferutil@4.0.8(transitive)
+ Addedd@1.0.2(transitive)
+ Addeddebug@2.6.9(transitive)
+ Addedes5-ext@0.10.64(transitive)
+ Addedes6-iterator@2.0.3(transitive)
+ Addedes6-symbol@3.1.4(transitive)
+ Addedesniff@2.0.1(transitive)
+ Addedevent-emitter@0.3.5(transitive)
+ Addedext@1.7.0(transitive)
+ Addedis-typedarray@1.0.0(transitive)
+ Addedms@2.0.0(transitive)
+ Addednext-tick@1.1.0(transitive)
+ Addednode-gyp-build@4.8.3(transitive)
+ Addedtype@2.7.3(transitive)
+ Addedtypedarray-to-buffer@3.1.5(transitive)
+ Addedutf-8-validate@5.0.10(transitive)
+ Addeduuid@8.3.2(transitive)
+ Addedwebsocket@1.0.35(transitive)
+ Addedyaeti@0.0.6(transitive)