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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c62ff2cfcd6e73840a14c281b0d46da494dcea2d49f42da51eb94a30080307e8
4
- data.tar.gz: 957a04e0146a2cea58a2fe064d11814462a7aae36c88fee38d2c4b71ad5c3d97
3
+ metadata.gz: 6eb43d4c1633ea80b1fb094c41339f36a164bafa47ee840865c14a93dfcd3aa1
4
+ data.tar.gz: 159cc82b30a79b827586ce6502ad6eee7fdc9054306c20b81f7b57c4e068cbc7
5
5
  SHA512:
6
- metadata.gz: 8316f1b5ebb2470a0154c1a8c33bfcd23ede0318555546e8fcf3f23b19fb5a84f052621d1150b38d10893db07c98c71a6ba997487b8bae9a1562d58dd95f1f25
7
- data.tar.gz: da299c0110d2755b5514dc6e604b6ad3ecf3fecffca0998fc61ab417ffb096f52c775a360728724487688cada34c3bef4f7285cc1d9e09633b278a2dc91ab4dc
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nylas
4
- VERSION = "5.9.1"
4
+ VERSION = "5.9.2"
5
5
  end
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.1
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-20 00:00:00.000000000 Z
11
+ date: 2022-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler