nylas 6.3.0 → 6.3.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.
|
@@ -64,10 +64,12 @@ export declare class CalendarConsecutiveAvailability extends Model implements Ca
|
|
|
64
64
|
}
|
|
65
65
|
export declare type CalendarAvailabilityProperties = {
|
|
66
66
|
timeSlots: TimeSlotProperties[];
|
|
67
|
+
order?: string[];
|
|
67
68
|
};
|
|
68
69
|
export default class CalendarAvailability extends Model implements CalendarAvailabilityProperties {
|
|
69
70
|
object: string;
|
|
70
71
|
timeSlots: TimeSlot[];
|
|
72
|
+
order?: string[];
|
|
71
73
|
static attributes: Record<string, Attribute>;
|
|
72
74
|
constructor(props?: CalendarAvailabilityProperties);
|
|
73
75
|
}
|
|
@@ -112,6 +112,9 @@ var CalendarAvailability = /** @class */ (function (_super) {
|
|
|
112
112
|
jsonKey: 'time_slots',
|
|
113
113
|
itemClass: free_busy_1.TimeSlot,
|
|
114
114
|
}),
|
|
115
|
+
order: attributes_1.default.StringList({
|
|
116
|
+
modelKey: 'order',
|
|
117
|
+
}),
|
|
115
118
|
};
|
|
116
119
|
return CalendarAvailability;
|
|
117
120
|
}(model_1.default));
|
|
@@ -20,12 +20,14 @@ export declare type TimeSlotProperties = {
|
|
|
20
20
|
status: string;
|
|
21
21
|
startTime: number;
|
|
22
22
|
endTime: number;
|
|
23
|
+
emails?: string[];
|
|
23
24
|
};
|
|
24
25
|
export declare class TimeSlot extends Model implements TimeSlotProperties {
|
|
25
26
|
object: string;
|
|
26
27
|
status: string;
|
|
27
28
|
startTime: number;
|
|
28
29
|
endTime: number;
|
|
30
|
+
emails?: string[];
|
|
29
31
|
static attributes: Record<string, Attribute>;
|
|
30
32
|
constructor(props?: TimeSlotProperties);
|
|
31
33
|
}
|
package/lib/models/free-busy.js
CHANGED
|
@@ -51,6 +51,12 @@ var MessageRestfulModelCollection = /** @class */ (function (_super) {
|
|
|
51
51
|
};
|
|
52
52
|
delete options.view;
|
|
53
53
|
}
|
|
54
|
+
// If only one message ID was passed in, use the normal find function
|
|
55
|
+
if (messageIds.length == 1) {
|
|
56
|
+
return this.find(messageIds[0], options).then(function (message) {
|
|
57
|
+
return [message];
|
|
58
|
+
});
|
|
59
|
+
}
|
|
54
60
|
return this.range(__assign({ path: this.path() + "/" + messageIds.join() }, options));
|
|
55
61
|
};
|
|
56
62
|
/**
|