nylas 5.9.1 → 5.9.2
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.
- checksums.yaml +4 -4
- data/lib/nylas/calendar_collection.rb +27 -4
- data/lib/nylas/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6eb43d4c1633ea80b1fb094c41339f36a164bafa47ee840865c14a93dfcd3aa1
|
4
|
+
data.tar.gz: 159cc82b30a79b827586ce6502ad6eee7fdc9054306c20b81f7b57c4e068cbc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 285d94938a1914d46852c98b898428a99a7ab62270e4516bc17ba53cedb93e7f270da82d7468cae4bf0b6ec177ce29cacb9af2ab5a98d9400ad1ea28f85081b8
|
7
|
+
data.tar.gz: 2ef74619299884087395ee7cfadcbaf329b57f5d3e0aa9d5819bf2f03a3031879febe2a77d0d8657d8b8aeecb780e1a22922e2701a9284417d03c0328277f156
|
@@ -4,6 +4,18 @@ module Nylas
|
|
4
4
|
# Additional methods for some of Calendar's other functionality
|
5
5
|
# @see https://developer.nylas.com/docs/connectivity/calendar
|
6
6
|
class CalendarCollection < Collection
|
7
|
+
# Check multiple calendars to find available time slots for a single meeting
|
8
|
+
# @param duration_minutes [Integer] The total number of minutes the event should last
|
9
|
+
# @param interval_minutes [Integer] How many minutes it should check for availability
|
10
|
+
# @param start_time [Integer] The timestamp for the beginning of the event
|
11
|
+
# @param end_time [Integer] The timestamp for the end of the event
|
12
|
+
# @param emails [Array<String>] Emails on the same domain to check
|
13
|
+
# @param buffer [Integer] The amount of buffer time in minutes that you want around existing meetings
|
14
|
+
# @param round_robin [String] Finds available meeting times in a round-robin style
|
15
|
+
# @param free_busy [Array<Nylas::FreeBusy>] A list of free-busy data for users not in your organization
|
16
|
+
# @param open_hours [Array<Nylas::OpenHours>] Additional times email accounts are available
|
17
|
+
# @param calendars [Array] Check account and calendar IDs for free/busy status
|
18
|
+
# @return [Hash] The availability information; a list of time slots where all participants are available
|
7
19
|
def availability(duration_minutes:,
|
8
20
|
interval_minutes:,
|
9
21
|
start_time:,
|
@@ -25,11 +37,22 @@ module Nylas
|
|
25
37
|
emails: emails,
|
26
38
|
buffer: buffer,
|
27
39
|
round_robin: round_robin,
|
28
|
-
free_busy: free_busy,
|
29
|
-
open_hours: open_hours,
|
40
|
+
free_busy: free_busy.map(&:to_h),
|
41
|
+
open_hours: open_hours.map(&:to_h),
|
30
42
|
calendars: calendars)
|
31
43
|
end
|
32
44
|
|
45
|
+
# Check multiple calendars to find availability for multiple meetings with several participants
|
46
|
+
# @param duration_minutes [Integer] The total number of minutes the event should last
|
47
|
+
# @param interval_minutes [Integer] How many minutes it should check for availability
|
48
|
+
# @param start_time [Integer] The timestamp for the beginning of the event
|
49
|
+
# @param end_time [Integer] The timestamp for the end of the event
|
50
|
+
# @param emails [Array<Array<String>>] Emails on the same domain to check
|
51
|
+
# @param buffer [Integer] The amount of buffer time in minutes that you want around existing meetings
|
52
|
+
# @param free_busy [Array<Nylas::FreeBusy>] A list of free-busy data for users not in your organization
|
53
|
+
# @param open_hours [Array<Nylas::OpenHours>] Additional times email accounts are available
|
54
|
+
# @param calendars [Array] Check account and calendar IDs for free/busy status
|
55
|
+
# @return [Hash] The availability information; a list of all possible groupings that share time slots
|
33
56
|
def consecutive_availability(duration_minutes:,
|
34
57
|
interval_minutes:,
|
35
58
|
start_time:,
|
@@ -49,8 +72,8 @@ module Nylas
|
|
49
72
|
end_time: end_time,
|
50
73
|
emails: emails,
|
51
74
|
buffer: buffer,
|
52
|
-
free_busy: free_busy,
|
53
|
-
open_hours: open_hours,
|
75
|
+
free_busy: free_busy.map(&:to_h),
|
76
|
+
open_hours: open_hours.map(&:to_h),
|
54
77
|
calendars: calendars)
|
55
78
|
end
|
56
79
|
|
data/lib/nylas/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nylas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.9.
|
4
|
+
version: 5.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nylas, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04
|
11
|
+
date: 2022-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|