nylas 6.5.1 → 6.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/models/calendar.d.ts +2 -0
- package/lib/models/calendar.js +4 -0
- package/lib/models/event-reminder-method.d.ts +18 -0
- package/lib/models/event-reminder-method.js +47 -0
- package/lib/models/event.d.ts +6 -0
- package/lib/models/event.js +9 -0
- package/lib/models/scheduler.js +1 -1
- package/lib/models/webhook-notification.d.ts +13 -0
- package/lib/models/webhook-notification.js +29 -0
- package/package.json +1 -1
package/lib/models/calendar.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare type CalendarProperties = {
|
|
|
12
12
|
isPrimary?: boolean;
|
|
13
13
|
jobStatusId?: string;
|
|
14
14
|
metadata?: object;
|
|
15
|
+
hexColor?: string;
|
|
15
16
|
};
|
|
16
17
|
export default class Calendar extends RestfulModel implements CalendarProperties {
|
|
17
18
|
name: string;
|
|
@@ -22,6 +23,7 @@ export default class Calendar extends RestfulModel implements CalendarProperties
|
|
|
22
23
|
isPrimary?: boolean;
|
|
23
24
|
jobStatusId?: string;
|
|
24
25
|
metadata?: object;
|
|
26
|
+
hexColor?: string;
|
|
25
27
|
static collectionName: string;
|
|
26
28
|
static attributes: Record<string, Attribute>;
|
|
27
29
|
constructor(connection: NylasConnection, props?: CalendarProperties);
|
package/lib/models/calendar.js
CHANGED
|
@@ -87,6 +87,10 @@ var Calendar = /** @class */ (function (_super) {
|
|
|
87
87
|
readOnly: true,
|
|
88
88
|
}), metadata: attributes_1.default.Object({
|
|
89
89
|
modelKey: 'metadata',
|
|
90
|
+
}), hexColor: attributes_1.default.String({
|
|
91
|
+
modelKey: 'hexColor',
|
|
92
|
+
jsonKey: 'hex_color',
|
|
93
|
+
readOnly: true,
|
|
90
94
|
}) });
|
|
91
95
|
return Calendar;
|
|
92
96
|
}(restful_model_1.default));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Attribute } from './attributes';
|
|
2
|
+
import Model from './model';
|
|
3
|
+
export declare enum EventReminderMethod {
|
|
4
|
+
Email = "email",
|
|
5
|
+
Popup = "popup",
|
|
6
|
+
Display = "display",
|
|
7
|
+
Sound = "sound"
|
|
8
|
+
}
|
|
9
|
+
export declare type EventReminderProperties = {
|
|
10
|
+
reminderMinutes?: string;
|
|
11
|
+
reminderMethod?: EventReminderMethod;
|
|
12
|
+
};
|
|
13
|
+
export declare class EventReminder extends Model implements EventReminderProperties {
|
|
14
|
+
reminderMinutes?: string;
|
|
15
|
+
reminderMethod?: EventReminderMethod;
|
|
16
|
+
static attributes: Record<string, Attribute>;
|
|
17
|
+
constructor(props?: EventReminderProperties);
|
|
18
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
extendStatics(d, b);
|
|
11
|
+
function __() { this.constructor = d; }
|
|
12
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
|
+
};
|
|
14
|
+
})();
|
|
15
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
var attributes_1 = __importDefault(require("./attributes"));
|
|
20
|
+
var model_1 = __importDefault(require("./model"));
|
|
21
|
+
var EventReminderMethod;
|
|
22
|
+
(function (EventReminderMethod) {
|
|
23
|
+
EventReminderMethod["Email"] = "email";
|
|
24
|
+
EventReminderMethod["Popup"] = "popup";
|
|
25
|
+
EventReminderMethod["Display"] = "display";
|
|
26
|
+
EventReminderMethod["Sound"] = "sound";
|
|
27
|
+
})(EventReminderMethod = exports.EventReminderMethod || (exports.EventReminderMethod = {}));
|
|
28
|
+
var EventReminder = /** @class */ (function (_super) {
|
|
29
|
+
__extends(EventReminder, _super);
|
|
30
|
+
function EventReminder(props) {
|
|
31
|
+
var _this = _super.call(this) || this;
|
|
32
|
+
_this.initAttributes(props);
|
|
33
|
+
return _this;
|
|
34
|
+
}
|
|
35
|
+
EventReminder.attributes = {
|
|
36
|
+
reminderMinutes: attributes_1.default.String({
|
|
37
|
+
modelKey: 'reminderMinutes',
|
|
38
|
+
jsonKey: 'reminder_minutes',
|
|
39
|
+
}),
|
|
40
|
+
reminderMethod: attributes_1.default.String({
|
|
41
|
+
modelKey: 'reminderMethod',
|
|
42
|
+
jsonKey: 'reminder_method',
|
|
43
|
+
}),
|
|
44
|
+
};
|
|
45
|
+
return EventReminder;
|
|
46
|
+
}(model_1.default));
|
|
47
|
+
exports.EventReminder = EventReminder;
|
package/lib/models/event.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import EventConferencing, { EventConferencingProperties } from './event-conferen
|
|
|
5
5
|
import When, { WhenProperties } from './when';
|
|
6
6
|
import NylasConnection from '../nylas-connection';
|
|
7
7
|
import EventNotification, { EventNotificationProperties } from './event-notification';
|
|
8
|
+
import { EventReminder, EventReminderMethod, EventReminderProperties } from './event-reminder-method';
|
|
8
9
|
export declare enum ICSMethod {
|
|
9
10
|
Request = "request",
|
|
10
11
|
Publish = "publish",
|
|
@@ -48,6 +49,9 @@ export declare type EventProperties = {
|
|
|
48
49
|
organizerName?: string;
|
|
49
50
|
visibility?: string;
|
|
50
51
|
customerEventId?: string;
|
|
52
|
+
reminderMinutes?: string;
|
|
53
|
+
reminderMethod?: EventReminderMethod;
|
|
54
|
+
reminders?: EventReminderProperties;
|
|
51
55
|
};
|
|
52
56
|
export default class Event extends RestfulModel {
|
|
53
57
|
calendarId: string;
|
|
@@ -71,7 +75,9 @@ export default class Event extends RestfulModel {
|
|
|
71
75
|
originalStartTime?: Date;
|
|
72
76
|
capacity?: number;
|
|
73
77
|
conferencing?: EventConferencing;
|
|
78
|
+
readonly reminders?: EventReminder;
|
|
74
79
|
reminderMinutes?: string;
|
|
80
|
+
reminderMethod?: EventReminderMethod;
|
|
75
81
|
notifications?: EventNotification[];
|
|
76
82
|
roundRobinOrder?: string[];
|
|
77
83
|
metadata?: object;
|
package/lib/models/event.js
CHANGED
|
@@ -33,6 +33,7 @@ var event_participant_1 = __importDefault(require("./event-participant"));
|
|
|
33
33
|
var event_conferencing_1 = __importDefault(require("./event-conferencing"));
|
|
34
34
|
var when_1 = __importDefault(require("./when"));
|
|
35
35
|
var event_notification_1 = __importDefault(require("./event-notification"));
|
|
36
|
+
var event_reminder_method_1 = require("./event-reminder-method");
|
|
36
37
|
var ICSMethod;
|
|
37
38
|
(function (ICSMethod) {
|
|
38
39
|
ICSMethod["Request"] = "request";
|
|
@@ -265,6 +266,14 @@ var Event = /** @class */ (function (_super) {
|
|
|
265
266
|
}), reminderMinutes: attributes_1.default.String({
|
|
266
267
|
modelKey: 'reminderMinutes',
|
|
267
268
|
jsonKey: 'reminder_minutes',
|
|
269
|
+
}), reminderMethod: attributes_1.default.String({
|
|
270
|
+
modelKey: 'reminderMethod',
|
|
271
|
+
jsonKey: 'reminder_method',
|
|
272
|
+
}), reminders: attributes_1.default.Object({
|
|
273
|
+
modelKey: 'reminders',
|
|
274
|
+
jsonKey: 'reminders',
|
|
275
|
+
itemClass: event_reminder_method_1.EventReminder,
|
|
276
|
+
readOnly: true,
|
|
268
277
|
}), notifications: attributes_1.default.Collection({
|
|
269
278
|
modelKey: 'notifications',
|
|
270
279
|
itemClass: event_notification_1.default,
|
package/lib/models/scheduler.js
CHANGED
|
@@ -218,7 +218,7 @@ var SchedulerBooking = /** @class */ (function (_super) {
|
|
|
218
218
|
}),
|
|
219
219
|
calendarInviteToGuests: attributes_1.default.Boolean({
|
|
220
220
|
modelKey: 'calendarInviteToGuests',
|
|
221
|
-
jsonKey: '
|
|
221
|
+
jsonKey: 'calendar_invite_to_guests',
|
|
222
222
|
}),
|
|
223
223
|
cancellationPolicy: attributes_1.default.String({
|
|
224
224
|
modelKey: 'cancellationPolicy',
|
|
@@ -52,6 +52,17 @@ export declare class MessageTrackingData extends Model implements MessageTrackin
|
|
|
52
52
|
static attributes: Record<string, Attribute>;
|
|
53
53
|
constructor(props?: MessageTrackingDataProperties);
|
|
54
54
|
}
|
|
55
|
+
export declare type WebhookObjectExtrasProperties = {
|
|
56
|
+
reason?: string;
|
|
57
|
+
sendAt?: Date;
|
|
58
|
+
originalSendAt?: Date;
|
|
59
|
+
};
|
|
60
|
+
export declare class WebhookObjectExtras extends Model implements WebhookObjectExtrasProperties {
|
|
61
|
+
reason?: string;
|
|
62
|
+
sendAt?: Date;
|
|
63
|
+
originalSendAt?: Date;
|
|
64
|
+
static attributes: Record<string, Attribute>;
|
|
65
|
+
}
|
|
55
66
|
export declare type WebhookObjectAttributesProperties = {
|
|
56
67
|
action?: string;
|
|
57
68
|
jobStatusId?: string;
|
|
@@ -61,6 +72,8 @@ export declare type WebhookObjectAttributesProperties = {
|
|
|
61
72
|
export declare class WebhookObjectAttributes extends Model implements WebhookObjectAttributesProperties {
|
|
62
73
|
action?: string;
|
|
63
74
|
jobStatusId?: string;
|
|
75
|
+
messageId?: string;
|
|
76
|
+
extras?: WebhookObjectExtrasProperties;
|
|
64
77
|
threadId?: string;
|
|
65
78
|
receivedDate?: Date;
|
|
66
79
|
static attributes: Record<string, Attribute>;
|
|
@@ -124,6 +124,27 @@ var MessageTrackingData = /** @class */ (function (_super) {
|
|
|
124
124
|
return MessageTrackingData;
|
|
125
125
|
}(model_1.default));
|
|
126
126
|
exports.MessageTrackingData = MessageTrackingData;
|
|
127
|
+
var WebhookObjectExtras = /** @class */ (function (_super) {
|
|
128
|
+
__extends(WebhookObjectExtras, _super);
|
|
129
|
+
function WebhookObjectExtras() {
|
|
130
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
131
|
+
}
|
|
132
|
+
WebhookObjectExtras.attributes = {
|
|
133
|
+
reason: attributes_1.default.String({
|
|
134
|
+
modelKey: 'reason',
|
|
135
|
+
}),
|
|
136
|
+
sendAt: attributes_1.default.DateTime({
|
|
137
|
+
modelKey: 'sendAt',
|
|
138
|
+
jsonKey: 'send_at',
|
|
139
|
+
}),
|
|
140
|
+
originalSendAt: attributes_1.default.DateTime({
|
|
141
|
+
modelKey: 'originalSendAt',
|
|
142
|
+
jsonKey: 'original_send_at',
|
|
143
|
+
}),
|
|
144
|
+
};
|
|
145
|
+
return WebhookObjectExtras;
|
|
146
|
+
}(model_1.default));
|
|
147
|
+
exports.WebhookObjectExtras = WebhookObjectExtras;
|
|
127
148
|
var WebhookObjectAttributes = /** @class */ (function (_super) {
|
|
128
149
|
__extends(WebhookObjectAttributes, _super);
|
|
129
150
|
function WebhookObjectAttributes(props) {
|
|
@@ -139,6 +160,10 @@ var WebhookObjectAttributes = /** @class */ (function (_super) {
|
|
|
139
160
|
modelKey: 'jobStatusId',
|
|
140
161
|
jsonKey: 'job_status_id',
|
|
141
162
|
}),
|
|
163
|
+
messageId: attributes_1.default.String({
|
|
164
|
+
modelKey: 'messageId',
|
|
165
|
+
jsonKey: 'message_id',
|
|
166
|
+
}),
|
|
142
167
|
threadId: attributes_1.default.String({
|
|
143
168
|
modelKey: 'threadId',
|
|
144
169
|
jsonKey: 'thread_id',
|
|
@@ -147,6 +172,10 @@ var WebhookObjectAttributes = /** @class */ (function (_super) {
|
|
|
147
172
|
modelKey: 'receivedDate',
|
|
148
173
|
jsonKey: 'received_date',
|
|
149
174
|
}),
|
|
175
|
+
extras: attributes_1.default.Object({
|
|
176
|
+
modelKey: 'extras',
|
|
177
|
+
itemClass: WebhookObjectExtras,
|
|
178
|
+
}),
|
|
150
179
|
};
|
|
151
180
|
return WebhookObjectAttributes;
|
|
152
181
|
}(model_1.default));
|