viewpoint 1.2.0 → 2.0.0
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/README.md +11 -6
- data/lib/ews/calendar_accessors.rb +37 -33
- data/lib/ews/connection.rb +152 -125
- data/lib/ews/connection_helper.rb +36 -33
- data/lib/ews/convert_accessors.rb +58 -54
- data/lib/ews/errors.rb +59 -53
- data/lib/ews/ews_client.rb +92 -79
- data/lib/ews/exceptions/exceptions.rb +61 -61
- data/lib/ews/folder_accessors.rb +235 -234
- data/lib/ews/impersonation.rb +29 -23
- data/lib/ews/item_accessors.rb +215 -213
- data/lib/ews/mailbox_accessors.rb +82 -79
- data/lib/ews/meeting_accessors.rb +38 -31
- data/lib/ews/message_accessors.rb +83 -81
- data/lib/ews/push_subscription_accessors.rb +29 -27
- data/lib/ews/room_accessors.rb +48 -46
- data/lib/ews/roomlist_accessors.rb +47 -45
- data/lib/ews/soap/builders/ews_builder.rb +1191 -1176
- data/lib/ews/soap/ews_response.rb +68 -73
- data/lib/ews/soap/ews_soap_availability_response.rb +57 -57
- data/lib/ews/soap/ews_soap_free_busy_response.rb +115 -117
- data/lib/ews/soap/ews_soap_response.rb +99 -101
- data/lib/ews/soap/ews_soap_room_response.rb +45 -45
- data/lib/ews/soap/ews_soap_roomlist_response.rb +45 -46
- data/lib/ews/soap/exchange_availability.rb +54 -52
- data/lib/ews/soap/exchange_data_services.rb +693 -711
- data/lib/ews/soap/exchange_notification.rb +123 -128
- data/lib/ews/soap/exchange_synchronization.rb +82 -82
- data/lib/ews/soap/exchange_time_zones.rb +41 -44
- data/lib/ews/soap/exchange_user_configuration.rb +30 -27
- data/lib/ews/soap/exchange_web_service.rb +237 -233
- data/lib/ews/soap/parsers/ews_parser.rb +46 -42
- data/lib/ews/soap/parsers/ews_sax_document.rb +63 -58
- data/lib/ews/soap/response_message.rb +69 -68
- data/lib/ews/soap/responses/create_attachment_response_message.rb +45 -45
- data/lib/ews/soap/responses/create_item_response_message.rb +26 -25
- data/lib/ews/soap/responses/find_item_response_message.rb +76 -78
- data/lib/ews/soap/responses/get_events_response_message.rb +52 -51
- data/lib/ews/soap/responses/send_notification_response_message.rb +53 -51
- data/lib/ews/soap/responses/subscribe_response_message.rb +37 -34
- data/lib/ews/soap/responses/sync_folder_hierarchy_response_message.rb +38 -35
- data/lib/ews/soap/responses/sync_folder_items_response_message.rb +38 -35
- data/lib/ews/soap.rb +27 -26
- data/lib/ews/templates/calendar_item.rb +64 -60
- data/lib/ews/templates/forward_item.rb +19 -17
- data/lib/ews/templates/message.rb +61 -58
- data/lib/ews/templates/reply_to_item.rb +20 -18
- data/lib/ews/templates/task.rb +55 -55
- data/lib/ews/types/attachment.rb +75 -74
- data/lib/ews/types/attendee.rb +27 -25
- data/lib/ews/types/calendar_folder.rb +58 -59
- data/lib/ews/types/calendar_item.rb +133 -131
- data/lib/ews/types/contact.rb +11 -5
- data/lib/ews/types/contacts_folder.rb +10 -5
- data/lib/ews/types/copied_event.rb +47 -48
- data/lib/ews/types/created_event.rb +22 -20
- data/lib/ews/types/deleted_event.rb +22 -20
- data/lib/ews/types/distribution_list.rb +11 -5
- data/lib/ews/types/event.rb +60 -59
- data/lib/ews/types/export_items_response_message.rb +54 -50
- data/lib/ews/types/file_attachment.rb +63 -61
- data/lib/ews/types/folder.rb +58 -57
- data/lib/ews/types/free_busy_changed_event.rb +22 -20
- data/lib/ews/types/generic_folder.rb +348 -372
- data/lib/ews/types/item.rb +401 -397
- data/lib/ews/types/item_attachment.rb +87 -80
- data/lib/ews/types/item_field_uri_map.rb +201 -200
- data/lib/ews/types/mailbox_user.rb +146 -154
- data/lib/ews/types/meeting_cancellation.rb +11 -5
- data/lib/ews/types/meeting_message.rb +11 -5
- data/lib/ews/types/meeting_request.rb +11 -5
- data/lib/ews/types/meeting_response.rb +11 -5
- data/lib/ews/types/message.rb +11 -5
- data/lib/ews/types/modified_event.rb +43 -45
- data/lib/ews/types/moved_event.rb +47 -48
- data/lib/ews/types/new_mail_event.rb +22 -20
- data/lib/ews/types/out_of_office.rb +145 -144
- data/lib/ews/types/post_item.rb +11 -5
- data/lib/ews/types/search_folder.rb +10 -5
- data/lib/ews/types/status_event.rb +37 -36
- data/lib/ews/types/task.rb +39 -33
- data/lib/ews/types/tasks_folder.rb +31 -25
- data/lib/ews/types.rb +134 -139
- data/lib/viewpoint/logging/config.rb +19 -19
- data/lib/viewpoint/logging.rb +23 -17
- data/lib/viewpoint/string_utils.rb +31 -32
- data/lib/viewpoint.rb +18 -18
- metadata +50 -25
- data/Changelog.txt +0 -1004
|
@@ -1,156 +1,148 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
module Viewpoint
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is part of Viewpoint; the Ruby library for Microsoft Exchange Web Services.
|
|
4
|
+
#
|
|
5
|
+
# Copyright © 2011 Dan Wanek <dan.wanek@gmail.com>
|
|
6
|
+
#
|
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
# you may not use this file except in compliance with the License.
|
|
9
|
+
# You may obtain a copy of the License at
|
|
10
|
+
#
|
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
#
|
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
# See the License for the specific language governing permissions and
|
|
17
|
+
# limitations under the License.
|
|
18
|
+
|
|
19
|
+
module Viewpoint
|
|
20
|
+
module EWS
|
|
21
|
+
module Types
|
|
22
|
+
# This represents a Mailbox object in the Exchange data store
|
|
23
|
+
# @see http://msdn.microsoft.com/en-us/library/aa565036.aspx MSDN docs
|
|
24
|
+
# @todo Design a Class method that resolves to an Array of MailboxUsers
|
|
25
|
+
class MailboxUser
|
|
26
|
+
include Viewpoint::EWS
|
|
27
|
+
include Viewpoint::EWS::Types
|
|
28
|
+
|
|
29
|
+
MAILBOX_KEY_PATHS = {
|
|
30
|
+
name: [:name],
|
|
31
|
+
email_address: [:email_address]
|
|
32
|
+
}.freeze
|
|
33
|
+
MAILBOX_KEY_TYPES = {}.freeze
|
|
34
|
+
MAILBOX_KEY_ALIAS = {
|
|
35
|
+
email: :email_address
|
|
36
|
+
}.freeze
|
|
37
|
+
|
|
38
|
+
def initialize(ews, mbox_user)
|
|
39
|
+
@ews = ews
|
|
40
|
+
@ews_item = mbox_user
|
|
41
|
+
simplify!
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def out_of_office_settings
|
|
45
|
+
mailbox = { address: email_address }
|
|
46
|
+
resp = @ews.get_user_oof_settings(mailbox)
|
|
47
|
+
ewsi = resp.response.clone
|
|
48
|
+
ewsi.delete(:response_message)
|
|
49
|
+
OutOfOffice.new(self, ewsi)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Get information about when the user with the given email address is available.
|
|
53
|
+
# @param [String] email_address The email address of the person to find availability for.
|
|
54
|
+
# @param [DateTime] start_time The start of the time range to check as an xs:dateTime.
|
|
55
|
+
# @param [DateTime] end_time The end of the time range to check as an xs:dateTime.
|
|
56
|
+
# @see http://msdn.microsoft.com/en-us/library/aa563800(v=exchg.140)
|
|
57
|
+
def get_user_availability(email_address, start_time, end_time)
|
|
58
|
+
opts = {
|
|
59
|
+
mailbox_data: [{ email: { address: email_address } }],
|
|
60
|
+
free_busy_view_options: {
|
|
61
|
+
time_window: { start_time: start_time, end_time: end_time }
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
resp = Viewpoint::EWS::EWS.instance.ews.get_user_availability(opts)
|
|
65
|
+
unless resp.status == 'Success'
|
|
66
|
+
raise EwsError, "GetUserAvailability produced an error: #{resp.code}: #{resp.message}"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
resp.items
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Adds one or more delegates to a principal's mailbox and sets specific access permissions
|
|
73
|
+
# @see http://msdn.microsoft.com/en-us/library/bb856527.aspx
|
|
74
|
+
#
|
|
75
|
+
# @param [String,MailboxUser] delegate_email The user you would like to give delegate access to.
|
|
76
|
+
# This can either be a simple String e-mail address or you can pass in a MailboxUser object.
|
|
77
|
+
# @param [Hash] permissions A hash of folder type keys and permission type values. An example
|
|
78
|
+
# would be {:calendar_folder_permission_level => 'Editor'}. Possible keys are:
|
|
79
|
+
# :calendar_folder_permission_level, :tasks_folder_permission_level, :inbox_folder_permission_level
|
|
80
|
+
# :contacts_folder_permission_level, :notes_folder_permission_level, :journal_folder_permission_level
|
|
81
|
+
# and possible values are: None/Editor/Reviewer/Author/Custom
|
|
82
|
+
# @return [true] This method either returns true or raises an error with the message
|
|
83
|
+
# as to why this operation did not succeed.
|
|
84
|
+
def add_delegate!(delegate_email, permissions)
|
|
85
|
+
# Use a new hash so the passed hash is not modified in case we are in a loop.
|
|
86
|
+
# Thanks to Markus Roberts for pointing this out.
|
|
87
|
+
formatted_perms = {}
|
|
88
|
+
# Modify permissions so we can pass it to the builders
|
|
89
|
+
permissions.each_pair do |k, v|
|
|
90
|
+
formatted_perms[k] = { text: v }
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
resp = Viewpoint::EWS::EWS.instance.ews.add_delegate(email_address, delegate_email, formatted_perms)
|
|
94
|
+
unless resp.status == 'Success'
|
|
95
|
+
raise EwsError, "Could not add delegate access for user #{delegate_email}: #{resp.code}, #{resp.message}"
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
true
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
def update_delegate!(delegate_email, permissions)
|
|
102
|
+
# Modify permissions so we can pass it to the builders
|
|
103
|
+
formatted_perms = {}
|
|
104
|
+
permissions.each_pair do |k, v|
|
|
105
|
+
formatted_perms[k] = { text: v }
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
resp = Viewpoint::EWS::EWS.instance.ews.update_delegate(email_address, delegate_email, formatted_perms)
|
|
109
|
+
unless resp.status == 'Success'
|
|
110
|
+
raise EwsError, "Could not update delegate access for user #{delegate_email}: #{resp.code}, #{resp.message}"
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
true
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
def get_delegate_info # rubocop:disable Naming/AccessorMethodName -- public API name
|
|
117
|
+
Viewpoint::EWS::EWS.instance.ews.get_delegate(email_address)
|
|
118
|
+
# if(resp.status == 'Success')
|
|
119
|
+
# return true
|
|
120
|
+
# else
|
|
121
|
+
# raise EwsError, "Could not update delegate access for user #{delegate_email}: " \
|
|
122
|
+
# "#{resp.code}, #{resp.message}"
|
|
123
|
+
# end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
private
|
|
127
|
+
|
|
128
|
+
def simplify!
|
|
129
|
+
@ews_item = @ews_item.each_with_object({}) { |o, m|
|
|
130
|
+
m[o.keys.first] = o.values.first[:text]
|
|
131
|
+
}
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
def key_paths
|
|
135
|
+
@key_paths ||= super.merge(MAILBOX_KEY_PATHS)
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
def key_types
|
|
139
|
+
@key_types ||= super.merge(MAILBOX_KEY_TYPES)
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
def key_alias
|
|
143
|
+
@key_alias ||= super.merge(MAILBOX_KEY_ALIAS)
|
|
144
|
+
end
|
|
120
145
|
end
|
|
121
146
|
end
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
resp = (Viewpoint::EWS::EWS.instance).ews.get_delegate(self.email_address)
|
|
125
|
-
# if(resp.status == 'Success')
|
|
126
|
-
# return true
|
|
127
|
-
# else
|
|
128
|
-
# raise EwsError, "Could not update delegate access for user #{delegate_email}: #{resp.code}, #{resp.message}"
|
|
129
|
-
# end
|
|
130
|
-
end
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
private
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
def simplify!
|
|
137
|
-
@ews_item = @ews_item.inject({}){|m,o|
|
|
138
|
-
m[o.keys.first] = o.values.first[:text];
|
|
139
|
-
m
|
|
140
|
-
}
|
|
141
|
-
end
|
|
142
|
-
|
|
143
|
-
def key_paths
|
|
144
|
-
@key_paths ||= super.merge(MAILBOX_KEY_PATHS)
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
def key_types
|
|
148
|
-
@key_types ||= super.merge(MAILBOX_KEY_TYPES)
|
|
149
|
-
end
|
|
150
|
-
|
|
151
|
-
def key_alias
|
|
152
|
-
@key_alias ||= super.merge(MAILBOX_KEY_ALIAS)
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
end # MailboxUser
|
|
156
|
-
end # Viewpoint::EWS::Types
|
|
147
|
+
end
|
|
148
|
+
end
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Viewpoint
|
|
4
|
+
module EWS
|
|
5
|
+
module Types
|
|
6
|
+
class MeetingCancellation
|
|
7
|
+
include Viewpoint::EWS
|
|
8
|
+
include Viewpoint::EWS::Types
|
|
9
|
+
include Viewpoint::EWS::Types::Item
|
|
10
|
+
end
|
|
11
|
+
end
|
|
6
12
|
end
|
|
7
13
|
end
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Viewpoint
|
|
4
|
+
module EWS
|
|
5
|
+
module Types
|
|
6
|
+
class MeetingMessage
|
|
7
|
+
include Viewpoint::EWS
|
|
8
|
+
include Viewpoint::EWS::Types
|
|
9
|
+
include Viewpoint::EWS::Types::Item
|
|
10
|
+
end
|
|
11
|
+
end
|
|
6
12
|
end
|
|
7
13
|
end
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Viewpoint
|
|
4
|
+
module EWS
|
|
5
|
+
module Types
|
|
6
|
+
class MeetingRequest
|
|
7
|
+
include Viewpoint::EWS
|
|
8
|
+
include Viewpoint::EWS::Types
|
|
9
|
+
include Viewpoint::EWS::Types::Item
|
|
10
|
+
end
|
|
11
|
+
end
|
|
6
12
|
end
|
|
7
13
|
end
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Viewpoint
|
|
4
|
+
module EWS
|
|
5
|
+
module Types
|
|
6
|
+
class MeetingResponse
|
|
7
|
+
include Viewpoint::EWS
|
|
8
|
+
include Viewpoint::EWS::Types
|
|
9
|
+
include Viewpoint::EWS::Types::Item
|
|
10
|
+
end
|
|
11
|
+
end
|
|
6
12
|
end
|
|
7
13
|
end
|
data/lib/ews/types/message.rb
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Viewpoint
|
|
4
|
+
module EWS
|
|
5
|
+
module Types
|
|
6
|
+
class Message
|
|
7
|
+
include Viewpoint::EWS
|
|
8
|
+
include Viewpoint::EWS::Types
|
|
9
|
+
include Viewpoint::EWS::Types::Item
|
|
10
|
+
end
|
|
11
|
+
end
|
|
6
12
|
end
|
|
7
13
|
end
|
|
@@ -1,48 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
module Viewpoint
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is part of Viewpoint; the Ruby library for Microsoft Exchange Web Services.
|
|
4
|
+
#
|
|
5
|
+
# Copyright © 2011 Dan Wanek <dan.wanek@gmail.com>
|
|
6
|
+
#
|
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
# you may not use this file except in compliance with the License.
|
|
9
|
+
# You may obtain a copy of the License at
|
|
10
|
+
#
|
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
#
|
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
# See the License for the specific language governing permissions and
|
|
17
|
+
# limitations under the License.
|
|
18
|
+
|
|
19
|
+
module Viewpoint
|
|
20
|
+
module EWS
|
|
21
|
+
module Types
|
|
22
|
+
# Modified Event EWS data type.
|
|
23
|
+
class ModifiedEvent < Event
|
|
24
|
+
MODIFIED_EVENT_KEY_PATHS = {}.freeze
|
|
25
|
+
|
|
26
|
+
MODIFIED_EVENT_KEY_TYPES = {}.freeze
|
|
27
|
+
|
|
28
|
+
MODIFIED_EVENT_KEY_ALIAS = {}.freeze
|
|
29
|
+
|
|
30
|
+
private
|
|
31
|
+
|
|
32
|
+
def key_paths
|
|
33
|
+
@key_paths ||= super.merge MODIFIED_EVENT_KEY_PATHS
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def key_types
|
|
37
|
+
@key_types ||= super.merge MODIFIED_EVENT_KEY_TYPES
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def key_alias
|
|
41
|
+
@key_alias ||= super.merge MODIFIED_EVENT_KEY_ALIAS
|
|
42
|
+
end
|
|
43
|
+
end
|
|
37
44
|
end
|
|
38
|
-
|
|
39
|
-
def key_types
|
|
40
|
-
@key_types ||= super.merge MODIFIED_EVENT_KEY_TYPES
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
def key_alias
|
|
44
|
-
@key_alias ||= super.merge MODIFIED_EVENT_KEY_ALIAS
|
|
45
|
-
end
|
|
46
|
-
|
|
47
45
|
end
|
|
48
46
|
end
|
|
@@ -1,51 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
module Viewpoint
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is part of Viewpoint; the Ruby library for Microsoft Exchange Web Services.
|
|
4
|
+
#
|
|
5
|
+
# Copyright © 2011 Dan Wanek <dan.wanek@gmail.com>
|
|
6
|
+
#
|
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
# you may not use this file except in compliance with the License.
|
|
9
|
+
# You may obtain a copy of the License at
|
|
10
|
+
#
|
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
#
|
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
# See the License for the specific language governing permissions and
|
|
17
|
+
# limitations under the License.
|
|
18
|
+
|
|
19
|
+
module Viewpoint
|
|
20
|
+
module EWS
|
|
21
|
+
module Types
|
|
22
|
+
# Moved Event EWS data type.
|
|
23
|
+
class MovedEvent < Event
|
|
24
|
+
MOVED_EVENT_KEY_PATHS = {
|
|
25
|
+
old_item_id: %i[old_item_id attribs],
|
|
26
|
+
old_folder_id: %i[old_folder_id attribs],
|
|
27
|
+
old_parent_folder_id: %i[old_parent_folder_id attribs]
|
|
28
|
+
}.freeze
|
|
29
|
+
|
|
30
|
+
MOVED_EVENT_KEY_TYPES = {}.freeze
|
|
31
|
+
|
|
32
|
+
MOVED_EVENT_KEY_ALIAS = {}.freeze
|
|
33
|
+
|
|
34
|
+
private
|
|
35
|
+
|
|
36
|
+
def key_paths
|
|
37
|
+
@key_paths ||= super.merge MOVED_EVENT_KEY_PATHS
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def key_types
|
|
41
|
+
@key_types ||= super.merge MOVED_EVENT_KEY_TYPES
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def key_alias
|
|
45
|
+
@key_alias ||= super.merge MOVED_EVENT_KEY_ALIAS
|
|
46
|
+
end
|
|
47
|
+
end
|
|
40
48
|
end
|
|
41
|
-
|
|
42
|
-
def key_types
|
|
43
|
-
@key_types ||= super.merge MOVED_EVENT_KEY_TYPES
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
def key_alias
|
|
47
|
-
@key_alias ||= super.merge MOVED_EVENT_KEY_ALIAS
|
|
48
|
-
end
|
|
49
|
-
|
|
50
49
|
end
|
|
51
50
|
end
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
This file is part of Viewpoint; the Ruby library for Microsoft Exchange Web Services.
|
|
1
|
+
# frozen_string_literal: true
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
module Viewpoint::EWS::Types
|
|
20
|
-
|
|
21
|
-
class NewMailEvent < Event
|
|
3
|
+
# This file is part of Viewpoint; the Ruby library for Microsoft Exchange Web Services.
|
|
4
|
+
#
|
|
5
|
+
# Copyright © 2011 Dan Wanek <dan.wanek@gmail.com>
|
|
6
|
+
#
|
|
7
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
8
|
+
# you may not use this file except in compliance with the License.
|
|
9
|
+
# You may obtain a copy of the License at
|
|
10
|
+
#
|
|
11
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
#
|
|
13
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
14
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
|
+
# See the License for the specific language governing permissions and
|
|
17
|
+
# limitations under the License.
|
|
22
18
|
|
|
19
|
+
module Viewpoint
|
|
20
|
+
module EWS
|
|
21
|
+
module Types
|
|
22
|
+
class NewMailEvent < Event
|
|
23
|
+
end
|
|
24
|
+
end
|
|
23
25
|
end
|
|
24
26
|
end
|