@backtomyfuture/exchange-cli-darwin-arm64 0.1.9 → 0.1.10
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/bin/_internal/Python +0 -0
- package/bin/_internal/Python.framework/Python +0 -0
- package/bin/_internal/Python.framework/Resources/Info.plist +3 -3
- package/bin/_internal/Python.framework/Versions/3.12/Python +0 -0
- package/bin/_internal/Python.framework/Versions/{3.14 → 3.12}/Resources/Info.plist +3 -3
- package/bin/_internal/Python.framework/Versions/Current/Python +0 -0
- package/bin/_internal/Python.framework/Versions/Current/Resources/Info.plist +3 -3
- package/bin/_internal/_cffi_backend.cpython-312-darwin.so +0 -0
- package/bin/_internal/ada92cb5d92a588d1b93__mypyc.cpython-312-darwin.so +0 -0
- package/bin/_internal/base_library.zip +0 -0
- package/bin/_internal/certifi/cacert.pem +0 -631
- package/bin/_internal/charset_normalizer/{md.cpython-314-darwin.so → cd.cpython-312-darwin.so} +0 -0
- package/bin/_internal/charset_normalizer/{cd.cpython-314-darwin.so → md.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{click-8.3.2.dist-info → click-8.4.2.dist-info}/METADATA +1 -1
- package/bin/_internal/click-8.4.2.dist-info/RECORD +40 -0
- package/bin/_internal/cryptography/hazmat/bindings/_rust.abi3.so +0 -0
- package/bin/_internal/{cryptography-46.0.7.dist-info → cryptography-48.0.1.dist-info}/METADATA +7 -36
- package/bin/_internal/{cryptography-46.0.7.dist-info → cryptography-48.0.1.dist-info}/RECORD +137 -122
- package/bin/_internal/{cryptography-46.0.7.dist-info → cryptography-48.0.1.dist-info}/WHEEL +1 -1
- package/bin/_internal/cryptography-48.0.1.dist-info/sboms/cryptography-rust.cyclonedx.json +1362 -0
- package/bin/_internal/cryptography-48.0.1.dist-info/sboms/sbom.json +43 -0
- package/bin/_internal/exchangelib/__init__.py +120 -0
- package/bin/_internal/exchangelib/account.py +896 -0
- package/bin/_internal/exchangelib/attachments.py +268 -0
- package/bin/_internal/exchangelib/autodiscover/__init__.py +24 -0
- package/bin/_internal/exchangelib/autodiscover/cache.py +150 -0
- package/bin/_internal/exchangelib/autodiscover/discovery.py +491 -0
- package/bin/_internal/exchangelib/autodiscover/protocol.py +58 -0
- package/bin/_internal/exchangelib/configuration.py +106 -0
- package/bin/_internal/exchangelib/credentials.py +319 -0
- package/bin/_internal/exchangelib/errors.py +1710 -0
- package/bin/_internal/exchangelib/ewsdatetime.py +309 -0
- package/bin/_internal/exchangelib/extended_properties.py +311 -0
- package/bin/_internal/exchangelib/fields.py +1842 -0
- package/bin/_internal/exchangelib/folders/__init__.py +249 -0
- package/bin/_internal/exchangelib/folders/base.py +954 -0
- package/bin/_internal/exchangelib/folders/collections.py +576 -0
- package/bin/_internal/exchangelib/folders/known_folders.py +856 -0
- package/bin/_internal/exchangelib/folders/queryset.py +187 -0
- package/bin/_internal/exchangelib/folders/roots.py +390 -0
- package/bin/_internal/exchangelib/indexed_properties.py +96 -0
- package/bin/_internal/exchangelib/items/__init__.py +147 -0
- package/bin/_internal/exchangelib/items/base.py +241 -0
- package/bin/_internal/exchangelib/items/calendar_item.py +466 -0
- package/bin/_internal/exchangelib/items/contact.py +263 -0
- package/bin/_internal/exchangelib/items/item.py +413 -0
- package/bin/_internal/exchangelib/items/message.py +201 -0
- package/bin/_internal/exchangelib/items/post.py +38 -0
- package/bin/_internal/exchangelib/items/task.py +139 -0
- package/bin/_internal/exchangelib/properties.py +2364 -0
- package/bin/_internal/exchangelib/protocol.py +823 -0
- package/bin/_internal/exchangelib/queryset.py +691 -0
- package/bin/_internal/exchangelib/recurrence.py +349 -0
- package/bin/_internal/exchangelib/restriction.py +568 -0
- package/bin/_internal/exchangelib/services/__init__.py +117 -0
- package/bin/_internal/exchangelib/services/archive_item.py +33 -0
- package/bin/_internal/exchangelib/services/common.py +983 -0
- package/bin/_internal/exchangelib/services/convert_id.py +45 -0
- package/bin/_internal/exchangelib/services/copy_item.py +7 -0
- package/bin/_internal/exchangelib/services/create_attachment.py +34 -0
- package/bin/_internal/exchangelib/services/create_folder.py +45 -0
- package/bin/_internal/exchangelib/services/create_item.py +97 -0
- package/bin/_internal/exchangelib/services/create_user_configuration.py +19 -0
- package/bin/_internal/exchangelib/services/delete_attachment.py +28 -0
- package/bin/_internal/exchangelib/services/delete_folder.py +21 -0
- package/bin/_internal/exchangelib/services/delete_item.py +51 -0
- package/bin/_internal/exchangelib/services/delete_user_configuration.py +19 -0
- package/bin/_internal/exchangelib/services/empty_folder.py +25 -0
- package/bin/_internal/exchangelib/services/expand_dl.py +21 -0
- package/bin/_internal/exchangelib/services/export_items.py +27 -0
- package/bin/_internal/exchangelib/services/find_folder.py +80 -0
- package/bin/_internal/exchangelib/services/find_item.py +112 -0
- package/bin/_internal/exchangelib/services/find_people.py +106 -0
- package/bin/_internal/exchangelib/services/get_attachment.py +117 -0
- package/bin/_internal/exchangelib/services/get_delegate.py +45 -0
- package/bin/_internal/exchangelib/services/get_events.py +39 -0
- package/bin/_internal/exchangelib/services/get_folder.py +65 -0
- package/bin/_internal/exchangelib/services/get_item.py +41 -0
- package/bin/_internal/exchangelib/services/get_mail_tips.py +43 -0
- package/bin/_internal/exchangelib/services/get_persona.py +31 -0
- package/bin/_internal/exchangelib/services/get_room_lists.py +21 -0
- package/bin/_internal/exchangelib/services/get_rooms.py +21 -0
- package/bin/_internal/exchangelib/services/get_searchable_mailboxes.py +48 -0
- package/bin/_internal/exchangelib/services/get_server_time_zones.py +39 -0
- package/bin/_internal/exchangelib/services/get_streaming_events.py +102 -0
- package/bin/_internal/exchangelib/services/get_user_availability.py +67 -0
- package/bin/_internal/exchangelib/services/get_user_configuration.py +43 -0
- package/bin/_internal/exchangelib/services/get_user_oof_settings.py +40 -0
- package/bin/_internal/exchangelib/services/get_user_settings.py +87 -0
- package/bin/_internal/exchangelib/services/inbox_rules.py +104 -0
- package/bin/_internal/exchangelib/services/mark_as_junk.py +27 -0
- package/bin/_internal/exchangelib/services/move_folder.py +27 -0
- package/bin/_internal/exchangelib/services/move_item.py +28 -0
- package/bin/_internal/exchangelib/services/resolve_names.py +104 -0
- package/bin/_internal/exchangelib/services/send_item.py +26 -0
- package/bin/_internal/exchangelib/services/send_notification.py +43 -0
- package/bin/_internal/exchangelib/services/set_user_oof_settings.py +34 -0
- package/bin/_internal/exchangelib/services/subscribe.py +125 -0
- package/bin/_internal/exchangelib/services/sync_folder_hierarchy.py +95 -0
- package/bin/_internal/exchangelib/services/sync_folder_items.py +77 -0
- package/bin/_internal/exchangelib/services/unsubscribe.py +21 -0
- package/bin/_internal/exchangelib/services/update_folder.py +158 -0
- package/bin/_internal/exchangelib/services/update_item.py +113 -0
- package/bin/_internal/exchangelib/services/update_user_configuration.py +17 -0
- package/bin/_internal/exchangelib/services/upload_items.py +47 -0
- package/bin/_internal/exchangelib/settings.py +88 -0
- package/bin/_internal/exchangelib/transport.py +214 -0
- package/bin/_internal/exchangelib/util.py +894 -0
- package/bin/_internal/exchangelib/version.py +320 -0
- package/bin/_internal/exchangelib/winzone.py +662 -0
- package/bin/_internal/exchangelib-5.6.0.dist-info/INSTALLER +1 -0
- package/bin/_internal/exchangelib-5.6.0.dist-info/METADATA +77 -0
- package/bin/_internal/exchangelib-5.6.0.dist-info/RECORD +184 -0
- package/bin/_internal/exchangelib-5.6.0.dist-info/licenses/LICENSE +21 -0
- package/bin/_internal/exchangelib-5.6.0.dist-info/top_level.txt +1 -0
- package/bin/_internal/libcrypto.3.dylib +0 -0
- package/bin/_internal/libssl.3.dylib +0 -0
- package/bin/_internal/lxml/_elementpath.cpython-312-darwin.so +0 -0
- package/bin/_internal/lxml/builder.cpython-312-darwin.so +0 -0
- package/bin/_internal/lxml/{etree.cpython-314-darwin.so → etree.cpython-312-darwin.so} +0 -0
- package/bin/_internal/lxml/html/_difflib.cpython-312-darwin.so +0 -0
- package/bin/_internal/lxml/html/diff.cpython-312-darwin.so +0 -0
- package/bin/_internal/lxml/{objectify.cpython-314-darwin.so → objectify.cpython-312-darwin.so} +0 -0
- package/bin/_internal/lxml/sax.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_asyncio.cpython-312-darwin.so +0 -0
- package/bin/_internal/{python3.14/lib-dynload/termios.cpython-314-darwin.so → python3.12/lib-dynload/_bisect.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_sha2.cpython-314-darwin.so → python3.12/lib-dynload/_blake2.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_bz2.cpython-314-darwin.so → python3.12/lib-dynload/_bz2.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_codecs_cn.cpython-314-darwin.so → python3.12/lib-dynload/_codecs_cn.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_codecs_hk.cpython-314-darwin.so → python3.12/lib-dynload/_codecs_hk.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_interpqueues.cpython-314-darwin.so → python3.12/lib-dynload/_codecs_iso2022.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_codecs_jp.cpython-314-darwin.so → python3.12/lib-dynload/_codecs_jp.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_codecs_kr.cpython-314-darwin.so → python3.12/lib-dynload/_codecs_kr.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_codecs_tw.cpython-314-darwin.so → python3.12/lib-dynload/_codecs_tw.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_statistics.cpython-314-darwin.so → python3.12/lib-dynload/_contextvars.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_csv.cpython-314-darwin.so → python3.12/lib-dynload/_csv.cpython-312-darwin.so} +0 -0
- package/bin/_internal/python3.12/lib-dynload/_ctypes.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_datetime.cpython-312-darwin.so +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_dbm.cpython-314-darwin.so → python3.12/lib-dynload/_dbm.cpython-312-darwin.so} +0 -0
- package/bin/_internal/python3.12/lib-dynload/_decimal.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_elementtree.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_hashlib.cpython-312-darwin.so +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_heapq.cpython-314-darwin.so → python3.12/lib-dynload/_heapq.cpython-312-darwin.so} +0 -0
- package/bin/_internal/python3.12/lib-dynload/_json.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_lzma.cpython-312-darwin.so +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_md5.cpython-314-darwin.so → python3.12/lib-dynload/_md5.cpython-312-darwin.so} +0 -0
- package/bin/_internal/python3.12/lib-dynload/_multibytecodec.cpython-312-darwin.so +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_multiprocessing.cpython-314-darwin.so → python3.12/lib-dynload/_multiprocessing.cpython-312-darwin.so} +0 -0
- package/bin/_internal/python3.12/lib-dynload/_opcode.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_pickle.cpython-312-darwin.so +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_bisect.cpython-314-darwin.so → python3.12/lib-dynload/_posixshmem.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_posixsubprocess.cpython-314-darwin.so → python3.12/lib-dynload/_posixsubprocess.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_queue.cpython-314-darwin.so → python3.12/lib-dynload/_queue.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_random.cpython-314-darwin.so → python3.12/lib-dynload/_random.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_scproxy.cpython-314-darwin.so → python3.12/lib-dynload/_scproxy.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_sha1.cpython-314-darwin.so → python3.12/lib-dynload/_sha1.cpython-312-darwin.so} +0 -0
- package/bin/_internal/python3.12/lib-dynload/_sha2.cpython-312-darwin.so +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_blake2.cpython-314-darwin.so → python3.12/lib-dynload/_sha3.cpython-312-darwin.so} +0 -0
- package/bin/_internal/python3.12/lib-dynload/_socket.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/_ssl.cpython-312-darwin.so +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_posixshmem.cpython-314-darwin.so → python3.12/lib-dynload/_statistics.cpython-312-darwin.so} +0 -0
- package/bin/_internal/python3.12/lib-dynload/_struct.cpython-312-darwin.so +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_uuid.cpython-314-darwin.so → python3.12/lib-dynload/_uuid.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_zoneinfo.cpython-314-darwin.so → python3.12/lib-dynload/_zoneinfo.cpython-312-darwin.so} +0 -0
- package/bin/_internal/python3.12/lib-dynload/array.cpython-312-darwin.so +0 -0
- package/bin/_internal/{python3.14/lib-dynload/binascii.cpython-314-darwin.so → python3.12/lib-dynload/binascii.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/fcntl.cpython-314-darwin.so → python3.12/lib-dynload/fcntl.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/grp.cpython-314-darwin.so → python3.12/lib-dynload/grp.cpython-312-darwin.so} +0 -0
- package/bin/_internal/python3.12/lib-dynload/math.cpython-312-darwin.so +0 -0
- package/bin/_internal/{python3.14/lib-dynload/_sha3.cpython-314-darwin.so → python3.12/lib-dynload/mmap.cpython-312-darwin.so} +0 -0
- package/bin/_internal/python3.12/lib-dynload/pyexpat.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/readline.cpython-312-darwin.so +0 -0
- package/bin/_internal/{python3.14/lib-dynload/resource.cpython-314-darwin.so → python3.12/lib-dynload/resource.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/select.cpython-314-darwin.so → python3.12/lib-dynload/select.cpython-312-darwin.so} +0 -0
- package/bin/_internal/{python3.14/lib-dynload/syslog.cpython-314-darwin.so → python3.12/lib-dynload/syslog.cpython-312-darwin.so} +0 -0
- package/bin/_internal/python3.12/lib-dynload/termios.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/unicodedata.cpython-312-darwin.so +0 -0
- package/bin/_internal/python3.12/lib-dynload/zlib.cpython-312-darwin.so +0 -0
- package/bin/_internal/tzdata/zoneinfo/Africa/Casablanca +0 -0
- package/bin/_internal/tzdata/zoneinfo/Africa/El_Aaiun +0 -0
- package/bin/_internal/tzdata/zoneinfo/America/Edmonton +0 -0
- package/bin/_internal/tzdata/zoneinfo/America/Vancouver +0 -0
- package/bin/_internal/tzdata/zoneinfo/America/Yellowknife +0 -0
- package/bin/_internal/tzdata/zoneinfo/Asia/Ho_Chi_Minh +0 -0
- package/bin/_internal/tzdata/zoneinfo/Asia/Saigon +0 -0
- package/bin/_internal/tzdata/zoneinfo/Canada/Mountain +0 -0
- package/bin/_internal/tzdata/zoneinfo/Canada/Pacific +0 -0
- package/bin/_internal/tzdata/zoneinfo/leapseconds +4 -4
- package/bin/_internal/tzdata/zoneinfo/tzdata.zi +11 -131
- package/bin/_internal/tzdata/zoneinfo/zone.tab +2 -2
- package/bin/_internal/tzdata/zoneinfo/zone1970.tab +2 -2
- package/bin/_internal/tzdata/zoneinfo/zonenow.tab +8 -2
- package/bin/exchange-cli +0 -0
- package/package.json +10 -7
- package/bin/_internal/81d243bd2c585b0f4821__mypyc.cpython-314-darwin.so +0 -0
- package/bin/_internal/Python.framework/Versions/3.14/Python +0 -0
- package/bin/_internal/_cffi_backend.cpython-314-darwin.so +0 -0
- package/bin/_internal/click-8.3.2.dist-info/RECORD +0 -40
- package/bin/_internal/liblzma.5.dylib +0 -0
- package/bin/_internal/libmpdec.4.dylib +0 -0
- package/bin/_internal/libzstd.1.dylib +0 -0
- package/bin/_internal/lxml/_elementpath.cpython-314-darwin.so +0 -0
- package/bin/_internal/lxml/builder.cpython-314-darwin.so +0 -0
- package/bin/_internal/lxml/html/_difflib.cpython-314-darwin.so +0 -0
- package/bin/_internal/lxml/html/diff.cpython-314-darwin.so +0 -0
- package/bin/_internal/lxml/sax.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/_asyncio.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/_codecs_iso2022.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/_ctypes.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/_decimal.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/_elementtree.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/_hashlib.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/_hmac.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/_interpreters.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/_json.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/_lzma.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/_multibytecodec.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/_pickle.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/_socket.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/_ssl.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/_struct.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/_zstd.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/array.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/math.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/mmap.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/pyexpat.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/readline.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/unicodedata.cpython-314-darwin.so +0 -0
- package/bin/_internal/python3.14/lib-dynload/zlib.cpython-314-darwin.so +0 -0
- package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/INSTALLER +0 -1
- package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/METADATA +0 -133
- package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/RECORD +0 -21
- package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/REQUESTED +0 -0
- package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/licenses/LICENSE +0 -73
- package/bin/_internal/setuptools/_vendor/importlib_metadata-8.7.1.dist-info/top_level.txt +0 -1
- /package/bin/_internal/{click-8.3.2.dist-info → click-8.4.2.dist-info}/INSTALLER +0 -0
- /package/bin/_internal/{click-8.3.2.dist-info → click-8.4.2.dist-info}/WHEEL +0 -0
- /package/bin/_internal/{click-8.3.2.dist-info → click-8.4.2.dist-info}/licenses/LICENSE.txt +0 -0
- /package/bin/_internal/{cryptography-46.0.7.dist-info → cryptography-48.0.1.dist-info}/INSTALLER +0 -0
- /package/bin/_internal/{cryptography-46.0.7.dist-info → cryptography-48.0.1.dist-info}/licenses/LICENSE +0 -0
- /package/bin/_internal/{cryptography-46.0.7.dist-info → cryptography-48.0.1.dist-info}/licenses/LICENSE.APACHE +0 -0
- /package/bin/_internal/{cryptography-46.0.7.dist-info → cryptography-48.0.1.dist-info}/licenses/LICENSE.BSD +0 -0
- /package/bin/_internal/{setuptools/_vendor/importlib_metadata-8.7.1.dist-info → exchangelib-5.6.0.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,466 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
import logging
|
|
3
|
+
|
|
4
|
+
from ..ewsdatetime import EWSDate, EWSDateTime
|
|
5
|
+
from ..fields import (
|
|
6
|
+
AppointmentStateField,
|
|
7
|
+
AssociatedCalendarItemIdField,
|
|
8
|
+
AttachmentField,
|
|
9
|
+
AttendeesField,
|
|
10
|
+
BodyField,
|
|
11
|
+
BooleanField,
|
|
12
|
+
CharField,
|
|
13
|
+
Choice,
|
|
14
|
+
ChoiceField,
|
|
15
|
+
DateOrDateTimeField,
|
|
16
|
+
DateTimeField,
|
|
17
|
+
EnumAsIntField,
|
|
18
|
+
EWSElementListField,
|
|
19
|
+
FreeBusyStatusField,
|
|
20
|
+
IntegerField,
|
|
21
|
+
MailboxField,
|
|
22
|
+
MessageHeaderField,
|
|
23
|
+
OccurrenceField,
|
|
24
|
+
OccurrenceListField,
|
|
25
|
+
RecurrenceField,
|
|
26
|
+
ReferenceItemIdField,
|
|
27
|
+
TextField,
|
|
28
|
+
TimeZoneField,
|
|
29
|
+
URIField,
|
|
30
|
+
)
|
|
31
|
+
from ..properties import Attendee, EWSMeta, OccurrenceItemId, RecurringMasterItemId, ReferenceItemId
|
|
32
|
+
from ..recurrence import DeletedOccurrence, FirstOccurrence, LastOccurrence, Occurrence
|
|
33
|
+
from ..util import require_account, set_xml_value
|
|
34
|
+
from ..version import EXCHANGE_2010, EXCHANGE_2013
|
|
35
|
+
from .base import SEND_AND_SAVE_COPY, SEND_TO_NONE, BaseItem, BaseReplyItem
|
|
36
|
+
from .item import Item
|
|
37
|
+
from .message import Message
|
|
38
|
+
|
|
39
|
+
log = logging.getLogger(__name__)
|
|
40
|
+
|
|
41
|
+
# Conference Type values. See
|
|
42
|
+
# https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/conferencetype
|
|
43
|
+
CONFERENCE_TYPES = ("NetMeeting", "NetShow", "Chat")
|
|
44
|
+
|
|
45
|
+
# CalendarItemType enums
|
|
46
|
+
SINGLE = "Single"
|
|
47
|
+
OCCURRENCE = "Occurrence"
|
|
48
|
+
EXCEPTION = "Exception"
|
|
49
|
+
RECURRING_MASTER = "RecurringMaster"
|
|
50
|
+
CALENDAR_ITEM_CHOICES = (SINGLE, OCCURRENCE, EXCEPTION, RECURRING_MASTER)
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
class AcceptDeclineMixIn:
|
|
54
|
+
"""A mixin for items that can be declined or accepted."""
|
|
55
|
+
|
|
56
|
+
def accept(self, message_disposition=SEND_AND_SAVE_COPY, **kwargs):
|
|
57
|
+
return AcceptItem(
|
|
58
|
+
account=self.account, reference_item_id=ReferenceItemId(id=self.id, changekey=self.changekey), **kwargs
|
|
59
|
+
).send(message_disposition)
|
|
60
|
+
|
|
61
|
+
def decline(self, message_disposition=SEND_AND_SAVE_COPY, **kwargs):
|
|
62
|
+
return DeclineItem(
|
|
63
|
+
account=self.account, reference_item_id=ReferenceItemId(id=self.id, changekey=self.changekey), **kwargs
|
|
64
|
+
).send(message_disposition)
|
|
65
|
+
|
|
66
|
+
def tentatively_accept(self, message_disposition=SEND_AND_SAVE_COPY, **kwargs):
|
|
67
|
+
return TentativelyAcceptItem(
|
|
68
|
+
account=self.account, reference_item_id=ReferenceItemId(id=self.id, changekey=self.changekey), **kwargs
|
|
69
|
+
).send(message_disposition)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
class CalendarItem(Item, AcceptDeclineMixIn):
|
|
73
|
+
"""MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/calendaritem"""
|
|
74
|
+
|
|
75
|
+
ELEMENT_NAME = "CalendarItem"
|
|
76
|
+
|
|
77
|
+
uid = TextField(field_uri="calendar:UID", is_required_after_save=True, is_searchable=False)
|
|
78
|
+
recurrence_id = DateTimeField(field_uri="calendar:RecurrenceId", is_read_only=True)
|
|
79
|
+
start = DateOrDateTimeField(field_uri="calendar:Start", is_required=True)
|
|
80
|
+
end = DateOrDateTimeField(field_uri="calendar:End", is_required=True)
|
|
81
|
+
original_start = DateTimeField(field_uri="calendar:OriginalStart", is_read_only=True)
|
|
82
|
+
is_all_day = BooleanField(field_uri="calendar:IsAllDayEvent", is_required=True, default=False)
|
|
83
|
+
legacy_free_busy_status = FreeBusyStatusField(
|
|
84
|
+
field_uri="calendar:LegacyFreeBusyStatus", is_required=True, default="Busy"
|
|
85
|
+
)
|
|
86
|
+
location = TextField(field_uri="calendar:Location")
|
|
87
|
+
when = TextField(field_uri="calendar:When")
|
|
88
|
+
is_meeting = BooleanField(field_uri="calendar:IsMeeting", is_read_only=True)
|
|
89
|
+
is_cancelled = BooleanField(field_uri="calendar:IsCancelled", is_read_only=True)
|
|
90
|
+
is_recurring = BooleanField(field_uri="calendar:IsRecurring", is_read_only=True)
|
|
91
|
+
meeting_request_was_sent = BooleanField(field_uri="calendar:MeetingRequestWasSent", is_read_only=True)
|
|
92
|
+
is_response_requested = BooleanField(
|
|
93
|
+
field_uri="calendar:IsResponseRequested", default=None, is_required_after_save=True, is_searchable=False
|
|
94
|
+
)
|
|
95
|
+
type = ChoiceField(
|
|
96
|
+
field_uri="calendar:CalendarItemType", choices={Choice(c) for c in CALENDAR_ITEM_CHOICES}, is_read_only=True
|
|
97
|
+
)
|
|
98
|
+
my_response_type = ChoiceField(
|
|
99
|
+
field_uri="calendar:MyResponseType", choices={Choice(c) for c in Attendee.RESPONSE_TYPES}, is_read_only=True
|
|
100
|
+
)
|
|
101
|
+
organizer = MailboxField(field_uri="calendar:Organizer", is_read_only=True)
|
|
102
|
+
required_attendees = AttendeesField(field_uri="calendar:RequiredAttendees", is_searchable=False)
|
|
103
|
+
optional_attendees = AttendeesField(field_uri="calendar:OptionalAttendees", is_searchable=False)
|
|
104
|
+
resources = AttendeesField(field_uri="calendar:Resources", is_searchable=False)
|
|
105
|
+
conflicting_meeting_count = IntegerField(field_uri="calendar:ConflictingMeetingCount", is_read_only=True)
|
|
106
|
+
adjacent_meeting_count = IntegerField(field_uri="calendar:AdjacentMeetingCount", is_read_only=True)
|
|
107
|
+
conflicting_meetings = EWSElementListField(
|
|
108
|
+
field_uri="calendar:ConflictingMeetings", value_cls="CalendarItem", namespace=Item.NAMESPACE, is_read_only=True
|
|
109
|
+
)
|
|
110
|
+
adjacent_meetings = EWSElementListField(
|
|
111
|
+
field_uri="calendar:AdjacentMeetings", value_cls="CalendarItem", namespace=Item.NAMESPACE, is_read_only=True
|
|
112
|
+
)
|
|
113
|
+
duration = CharField(field_uri="calendar:Duration", is_read_only=True)
|
|
114
|
+
appointment_reply_time = DateTimeField(field_uri="calendar:AppointmentReplyTime", is_read_only=True)
|
|
115
|
+
appointment_sequence_number = IntegerField(field_uri="calendar:AppointmentSequenceNumber", is_read_only=True)
|
|
116
|
+
appointment_state = AppointmentStateField(field_uri="calendar:AppointmentState", is_read_only=True)
|
|
117
|
+
recurrence = RecurrenceField(field_uri="calendar:Recurrence", is_searchable=False)
|
|
118
|
+
first_occurrence = OccurrenceField(
|
|
119
|
+
field_uri="calendar:FirstOccurrence", value_cls=FirstOccurrence, is_read_only=True
|
|
120
|
+
)
|
|
121
|
+
last_occurrence = OccurrenceField(field_uri="calendar:LastOccurrence", value_cls=LastOccurrence, is_read_only=True)
|
|
122
|
+
modified_occurrences = OccurrenceListField(
|
|
123
|
+
field_uri="calendar:ModifiedOccurrences", value_cls=Occurrence, is_read_only=True
|
|
124
|
+
)
|
|
125
|
+
deleted_occurrences = OccurrenceListField(
|
|
126
|
+
field_uri="calendar:DeletedOccurrences", value_cls=DeletedOccurrence, is_read_only=True
|
|
127
|
+
)
|
|
128
|
+
_meeting_timezone = TimeZoneField(
|
|
129
|
+
field_uri="calendar:MeetingTimeZone", deprecated_from=EXCHANGE_2010, is_searchable=False
|
|
130
|
+
)
|
|
131
|
+
_start_timezone = TimeZoneField(
|
|
132
|
+
field_uri="calendar:StartTimeZone", supported_from=EXCHANGE_2010, is_searchable=False
|
|
133
|
+
)
|
|
134
|
+
_end_timezone = TimeZoneField(field_uri="calendar:EndTimeZone", supported_from=EXCHANGE_2010, is_searchable=False)
|
|
135
|
+
conference_type = EnumAsIntField(
|
|
136
|
+
field_uri="calendar:ConferenceType", enum=CONFERENCE_TYPES, min=0, default=None, is_required_after_save=True
|
|
137
|
+
)
|
|
138
|
+
allow_new_time_proposal = BooleanField(
|
|
139
|
+
field_uri="calendar:AllowNewTimeProposal", default=None, is_required_after_save=True, is_searchable=False
|
|
140
|
+
)
|
|
141
|
+
is_online_meeting = BooleanField(field_uri="calendar:IsOnlineMeeting", default=None, is_read_only=True)
|
|
142
|
+
meeting_workspace_url = URIField(field_uri="calendar:MeetingWorkspaceUrl")
|
|
143
|
+
net_show_url = URIField(field_uri="calendar:NetShowUrl")
|
|
144
|
+
|
|
145
|
+
def occurrence(self, index):
|
|
146
|
+
"""Get an occurrence of a recurring master by index. No query is sent to the server to actually fetch the item.
|
|
147
|
+
Call refresh() on the item to do so.
|
|
148
|
+
|
|
149
|
+
Only call this method on a recurring master.
|
|
150
|
+
|
|
151
|
+
:param index: The index, which is 1-based
|
|
152
|
+
|
|
153
|
+
:return The occurrence
|
|
154
|
+
"""
|
|
155
|
+
return self.__class__(
|
|
156
|
+
account=self.account,
|
|
157
|
+
folder=self.folder,
|
|
158
|
+
_id=OccurrenceItemId(id=self.id, changekey=self.changekey, instance_index=index),
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
def recurring_master(self):
|
|
162
|
+
"""Get the recurring master of an occurrence. No query is sent to the server to actually fetch the item.
|
|
163
|
+
Call refresh() on the item to do so.
|
|
164
|
+
|
|
165
|
+
Only call this method on an occurrence of a recurring master.
|
|
166
|
+
|
|
167
|
+
:return: The master occurrence
|
|
168
|
+
"""
|
|
169
|
+
return self.__class__(
|
|
170
|
+
account=self.account,
|
|
171
|
+
folder=self.folder,
|
|
172
|
+
_id=RecurringMasterItemId(id=self.id, changekey=self.changekey),
|
|
173
|
+
)
|
|
174
|
+
|
|
175
|
+
@classmethod
|
|
176
|
+
def timezone_fields(cls):
|
|
177
|
+
return tuple(f for f in cls.FIELDS if isinstance(f, TimeZoneField))
|
|
178
|
+
|
|
179
|
+
def clean_timezone_fields(self, version):
|
|
180
|
+
# Sets proper values on the timezone fields if they are not already set
|
|
181
|
+
if self.start is None:
|
|
182
|
+
start_tz = None
|
|
183
|
+
elif type(self.start) in (EWSDate, datetime.date):
|
|
184
|
+
start_tz = self.account.default_timezone
|
|
185
|
+
else:
|
|
186
|
+
start_tz = self.start.tzinfo
|
|
187
|
+
if self.end is None:
|
|
188
|
+
end_tz = None
|
|
189
|
+
elif type(self.end) in (EWSDate, datetime.date):
|
|
190
|
+
end_tz = self.account.default_timezone
|
|
191
|
+
else:
|
|
192
|
+
end_tz = self.end.tzinfo
|
|
193
|
+
if version.build < EXCHANGE_2010:
|
|
194
|
+
if self._meeting_timezone is None:
|
|
195
|
+
self._meeting_timezone = start_tz
|
|
196
|
+
self._start_timezone = None
|
|
197
|
+
self._end_timezone = None
|
|
198
|
+
else:
|
|
199
|
+
self._meeting_timezone = None
|
|
200
|
+
if self._start_timezone is None:
|
|
201
|
+
self._start_timezone = start_tz
|
|
202
|
+
if self._end_timezone is None:
|
|
203
|
+
self._end_timezone = end_tz
|
|
204
|
+
|
|
205
|
+
def clean(self, version=None):
|
|
206
|
+
super().clean(version=version)
|
|
207
|
+
if self.start and self.end and self.end < self.start:
|
|
208
|
+
raise ValueError(f"'end' must be greater than 'start' ({self.start} -> {self.end})")
|
|
209
|
+
if version:
|
|
210
|
+
self.clean_timezone_fields(version=version)
|
|
211
|
+
|
|
212
|
+
def cancel(self, **kwargs):
|
|
213
|
+
return CancelCalendarItem(
|
|
214
|
+
account=self.account, reference_item_id=ReferenceItemId(id=self.id, changekey=self.changekey), **kwargs
|
|
215
|
+
).send()
|
|
216
|
+
|
|
217
|
+
def _update_fieldnames(self):
|
|
218
|
+
update_fields = super()._update_fieldnames()
|
|
219
|
+
if self.type == OCCURRENCE:
|
|
220
|
+
# Some CalendarItem fields cannot be updated when the item is an occurrence. The values are empty when we
|
|
221
|
+
# receive them so would have been updated because they are set to None.
|
|
222
|
+
update_fields.remove("recurrence")
|
|
223
|
+
update_fields.remove("uid")
|
|
224
|
+
return update_fields
|
|
225
|
+
|
|
226
|
+
@classmethod
|
|
227
|
+
def from_xml(cls, elem, account):
|
|
228
|
+
item = super().from_xml(elem=elem, account=account)
|
|
229
|
+
# EWS returns the start and end values as a datetime regardless of the is_all_day status. Convert to date if
|
|
230
|
+
# applicable.
|
|
231
|
+
if not item.is_all_day:
|
|
232
|
+
return item
|
|
233
|
+
for field_name in ("start", "end"):
|
|
234
|
+
val = getattr(item, field_name)
|
|
235
|
+
if val is None:
|
|
236
|
+
continue
|
|
237
|
+
# Return just the date part of the value. Subtract 1 day from the date if this is the end field. This is
|
|
238
|
+
# the inverse of what we do in .to_xml(). Convert to the local timezone before getting the date.
|
|
239
|
+
if field_name == "end":
|
|
240
|
+
val -= datetime.timedelta(days=1)
|
|
241
|
+
tz = getattr(item, f"_{field_name}_timezone")
|
|
242
|
+
setattr(item, field_name, val.astimezone(tz).date())
|
|
243
|
+
return item
|
|
244
|
+
|
|
245
|
+
def tz_field_for_field_name(self, field_name):
|
|
246
|
+
meeting_tz_field, start_tz_field, end_tz_field = CalendarItem.timezone_fields()
|
|
247
|
+
if self.account.version.build < EXCHANGE_2010:
|
|
248
|
+
return meeting_tz_field
|
|
249
|
+
if field_name == "start":
|
|
250
|
+
return start_tz_field
|
|
251
|
+
if field_name == "end":
|
|
252
|
+
return end_tz_field
|
|
253
|
+
raise ValueError("Unsupported field_name")
|
|
254
|
+
|
|
255
|
+
def date_to_datetime(self, field_name):
|
|
256
|
+
# EWS always expects a datetime. If we have a date value, then convert it to datetime in the local
|
|
257
|
+
# timezone. Additionally, if this the end field, add 1 day to the date. We could add 12 hours to both
|
|
258
|
+
# start and end values and let EWS apply its logic, but that seems hacky.
|
|
259
|
+
value = getattr(self, field_name)
|
|
260
|
+
tz = getattr(self, self.tz_field_for_field_name(field_name).name)
|
|
261
|
+
value = EWSDateTime.combine(value, datetime.time(0, 0)).replace(tzinfo=tz)
|
|
262
|
+
if field_name == "end":
|
|
263
|
+
value += datetime.timedelta(days=1)
|
|
264
|
+
return value
|
|
265
|
+
|
|
266
|
+
def to_xml(self, version):
|
|
267
|
+
# EWS has some special logic related to all-day start and end values. Non-midnight start values are pushed to
|
|
268
|
+
# the previous midnight. Non-midnight end values are pushed to the following midnight. Midnight in this context
|
|
269
|
+
# refers to midnight in the local timezone. See
|
|
270
|
+
#
|
|
271
|
+
# https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/how-to-create-all-day-events-by-using-ews-in-exchange
|
|
272
|
+
#
|
|
273
|
+
elem = super().to_xml(version=version)
|
|
274
|
+
if not self.is_all_day:
|
|
275
|
+
return elem
|
|
276
|
+
for field_name in ("start", "end"):
|
|
277
|
+
value = getattr(self, field_name)
|
|
278
|
+
if value is None:
|
|
279
|
+
continue
|
|
280
|
+
if type(value) in (EWSDate, datetime.date):
|
|
281
|
+
# EWS always expects a datetime
|
|
282
|
+
value = self.date_to_datetime(field_name=field_name)
|
|
283
|
+
# We already generated an XML element for this field, but it contains a plain date at this point, which
|
|
284
|
+
# is invalid. Replace the value.
|
|
285
|
+
field = self.get_field_by_fieldname(field_name)
|
|
286
|
+
set_xml_value(elem.find(field.response_tag()), value)
|
|
287
|
+
return elem
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
class BaseMeetingItem(Item, metaclass=EWSMeta):
|
|
291
|
+
"""Base class for meeting requests that share the same fields (Message, Request, Response, Cancellation)
|
|
292
|
+
|
|
293
|
+
MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/responsecode
|
|
294
|
+
Certain types are created as a side effect of doing something else. Meeting messages, for example, are created
|
|
295
|
+
when you send a calendar item to attendees; they are not explicitly created.
|
|
296
|
+
|
|
297
|
+
Therefore, BaseMeetingItem inherits from EWSElement has no save() or send() method
|
|
298
|
+
"""
|
|
299
|
+
|
|
300
|
+
associated_calendar_item_id = AssociatedCalendarItemIdField(field_uri="meeting:AssociatedCalendarItemId")
|
|
301
|
+
is_delegated = BooleanField(field_uri="meeting:IsDelegated", is_read_only=True, default=False)
|
|
302
|
+
is_out_of_date = BooleanField(field_uri="meeting:IsOutOfDate", is_read_only=True, default=False)
|
|
303
|
+
has_been_processed = BooleanField(field_uri="meeting:HasBeenProcessed", is_read_only=True, default=False)
|
|
304
|
+
response_type = ChoiceField(
|
|
305
|
+
field_uri="meeting:ResponseType",
|
|
306
|
+
choices={
|
|
307
|
+
Choice("Unknown"),
|
|
308
|
+
Choice("Organizer"),
|
|
309
|
+
Choice("Tentative"),
|
|
310
|
+
Choice("Accept"),
|
|
311
|
+
Choice("Decline"),
|
|
312
|
+
Choice("NoResponseReceived"),
|
|
313
|
+
},
|
|
314
|
+
is_required=True,
|
|
315
|
+
default="Unknown",
|
|
316
|
+
)
|
|
317
|
+
|
|
318
|
+
effective_rights_idx = Item.FIELDS.index_by_name("effective_rights")
|
|
319
|
+
sender_idx = Message.FIELDS.index_by_name("sender")
|
|
320
|
+
received_representing_idx = Message.FIELDS.index_by_name("received_representing")
|
|
321
|
+
FIELDS = (
|
|
322
|
+
Item.FIELDS[:effective_rights_idx]
|
|
323
|
+
+ Message.FIELDS[sender_idx : received_representing_idx + 1]
|
|
324
|
+
+ Item.FIELDS[effective_rights_idx:]
|
|
325
|
+
)
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
class MeetingRequest(BaseMeetingItem, AcceptDeclineMixIn):
|
|
329
|
+
"""MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/meetingrequest"""
|
|
330
|
+
|
|
331
|
+
ELEMENT_NAME = "MeetingRequest"
|
|
332
|
+
|
|
333
|
+
meeting_request_type = ChoiceField(
|
|
334
|
+
field_uri="meetingRequest:MeetingRequestType",
|
|
335
|
+
choices={
|
|
336
|
+
Choice("FullUpdate"),
|
|
337
|
+
Choice("InformationalUpdate"),
|
|
338
|
+
Choice("NewMeetingRequest"),
|
|
339
|
+
Choice("None"),
|
|
340
|
+
Choice("Outdated"),
|
|
341
|
+
Choice("PrincipalWantsCopy"),
|
|
342
|
+
Choice("SilentUpdate"),
|
|
343
|
+
},
|
|
344
|
+
default="None",
|
|
345
|
+
)
|
|
346
|
+
intended_free_busy_status = ChoiceField(
|
|
347
|
+
field_uri="meetingRequest:IntendedFreeBusyStatus",
|
|
348
|
+
choices={Choice("Free"), Choice("Tentative"), Choice("Busy"), Choice("OOF"), Choice("NoData")},
|
|
349
|
+
is_required=True,
|
|
350
|
+
default="Busy",
|
|
351
|
+
)
|
|
352
|
+
|
|
353
|
+
# This element also has some fields from CalendarItem
|
|
354
|
+
start_idx = CalendarItem.FIELDS.index_by_name("start")
|
|
355
|
+
is_response_requested_idx = CalendarItem.FIELDS.index_by_name("is_response_requested")
|
|
356
|
+
FIELDS = (
|
|
357
|
+
BaseMeetingItem.FIELDS
|
|
358
|
+
+ CalendarItem.FIELDS[start_idx:is_response_requested_idx]
|
|
359
|
+
+ CalendarItem.FIELDS[is_response_requested_idx + 1 :]
|
|
360
|
+
)
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
class MeetingMessage(BaseMeetingItem):
|
|
364
|
+
"""MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/meetingmessage"""
|
|
365
|
+
|
|
366
|
+
ELEMENT_NAME = "MeetingMessage"
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
class MeetingResponse(BaseMeetingItem):
|
|
370
|
+
"""MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/meetingresponse"""
|
|
371
|
+
|
|
372
|
+
ELEMENT_NAME = "MeetingResponse"
|
|
373
|
+
|
|
374
|
+
proposed_start = DateTimeField(field_uri="meeting:ProposedStart", supported_from=EXCHANGE_2013)
|
|
375
|
+
proposed_end = DateTimeField(field_uri="meeting:ProposedEnd", supported_from=EXCHANGE_2013)
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
class MeetingCancellation(BaseMeetingItem):
|
|
379
|
+
"""MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/meetingcancellation"""
|
|
380
|
+
|
|
381
|
+
ELEMENT_NAME = "MeetingCancellation"
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
class BaseMeetingReplyItem(BaseItem, metaclass=EWSMeta):
|
|
385
|
+
"""Base class for meeting request reply items that share the same fields (Accept, TentativelyAccept, Decline)."""
|
|
386
|
+
|
|
387
|
+
item_class = CharField(field_uri="item:ItemClass", is_read_only=True)
|
|
388
|
+
sensitivity = ChoiceField(
|
|
389
|
+
field_uri="item:Sensitivity",
|
|
390
|
+
choices={Choice("Normal"), Choice("Personal"), Choice("Private"), Choice("Confidential")},
|
|
391
|
+
is_required=True,
|
|
392
|
+
default="Normal",
|
|
393
|
+
)
|
|
394
|
+
body = BodyField(field_uri="item:Body") # Accepts and returns Body or HTMLBody instances
|
|
395
|
+
attachments = AttachmentField(field_uri="item:Attachments") # ItemAttachment or FileAttachment
|
|
396
|
+
headers = MessageHeaderField(field_uri="item:InternetMessageHeaders", is_read_only=True)
|
|
397
|
+
|
|
398
|
+
sender = Message.FIELDS["sender"]
|
|
399
|
+
to_recipients = Message.FIELDS["to_recipients"]
|
|
400
|
+
cc_recipients = Message.FIELDS["cc_recipients"]
|
|
401
|
+
bcc_recipients = Message.FIELDS["bcc_recipients"]
|
|
402
|
+
is_read_receipt_requested = Message.FIELDS["is_read_receipt_requested"]
|
|
403
|
+
is_delivery_receipt_requested = Message.FIELDS["is_delivery_receipt_requested"]
|
|
404
|
+
|
|
405
|
+
reference_item_id = ReferenceItemIdField(field_uri="item:ReferenceItemId")
|
|
406
|
+
received_by = MailboxField(field_uri="message:ReceivedBy", is_read_only=True)
|
|
407
|
+
received_representing = MailboxField(field_uri="message:ReceivedRepresenting", is_read_only=True)
|
|
408
|
+
proposed_start = DateTimeField(field_uri="meeting:ProposedStart", supported_from=EXCHANGE_2013)
|
|
409
|
+
proposed_end = DateTimeField(field_uri="meeting:ProposedEnd", supported_from=EXCHANGE_2013)
|
|
410
|
+
|
|
411
|
+
@require_account
|
|
412
|
+
def send(self, message_disposition=SEND_AND_SAVE_COPY):
|
|
413
|
+
from ..services import CreateItem
|
|
414
|
+
|
|
415
|
+
res = list(
|
|
416
|
+
CreateItem(account=self.account).call(
|
|
417
|
+
items=[self],
|
|
418
|
+
folder=self.folder,
|
|
419
|
+
message_disposition=message_disposition,
|
|
420
|
+
send_meeting_invitations=SEND_TO_NONE,
|
|
421
|
+
)
|
|
422
|
+
)
|
|
423
|
+
for r in res:
|
|
424
|
+
if isinstance(r, Exception):
|
|
425
|
+
raise r
|
|
426
|
+
# CreateItem may return multiple item IDs when given a meeting reply item. See issue#886. In lack of a better
|
|
427
|
+
# idea, return either the single ID or the list of IDs here.
|
|
428
|
+
if len(res) == 1:
|
|
429
|
+
return res[0]
|
|
430
|
+
return res
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
class AcceptItem(BaseMeetingReplyItem):
|
|
434
|
+
"""MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/acceptitem"""
|
|
435
|
+
|
|
436
|
+
ELEMENT_NAME = "AcceptItem"
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
class TentativelyAcceptItem(BaseMeetingReplyItem):
|
|
440
|
+
"""MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/tentativelyacceptitem"""
|
|
441
|
+
|
|
442
|
+
ELEMENT_NAME = "TentativelyAcceptItem"
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
class DeclineItem(BaseMeetingReplyItem):
|
|
446
|
+
"""MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/declineitem"""
|
|
447
|
+
|
|
448
|
+
ELEMENT_NAME = "DeclineItem"
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
class CancelCalendarItem(BaseReplyItem):
|
|
452
|
+
"""MSDN: https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/cancelcalendaritem"""
|
|
453
|
+
|
|
454
|
+
ELEMENT_NAME = "CancelCalendarItem"
|
|
455
|
+
author_idx = BaseReplyItem.FIELDS.index_by_name("author")
|
|
456
|
+
FIELDS = BaseReplyItem.FIELDS[:author_idx] + BaseReplyItem.FIELDS[author_idx + 1 :]
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
class _Booking(Item):
|
|
460
|
+
"""Not mentioned anywhere in MSDN docs, but it's common enough that we want to at least not crash when we encounter
|
|
461
|
+
an item of this type in a folder. For more information, see https://github.com/ecederstrand/exchangelib/issues/877
|
|
462
|
+
|
|
463
|
+
Not supported in any way except to not crash on calendar folder reads
|
|
464
|
+
"""
|
|
465
|
+
|
|
466
|
+
ELEMENT_NAME = "Booking"
|