mergepythonclient 3.0.1__py3-none-any.whl → 3.1.0__py3-none-any.whl
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.
- merge/__init__.py +3 -1
- merge/client.py +19 -0
- merge/core/client_wrapper.py +2 -2
- merge/resources/__init__.py +3 -2
- merge/resources/accounting/types/account.py +5 -0
- merge/resources/accounting/types/account_details.py +3 -0
- merge/resources/accounting/types/account_request.py +5 -0
- merge/resources/accounting/types/accounting_period.py +5 -0
- merge/resources/accounting/types/bank_feed_account.py +5 -0
- merge/resources/accounting/types/bank_feed_account_request.py +5 -0
- merge/resources/accounting/types/bank_feed_transaction.py +5 -0
- merge/resources/accounting/types/company_info.py +5 -0
- merge/resources/accounting/types/contact.py +5 -0
- merge/resources/accounting/types/contact_request.py +5 -0
- merge/resources/accounting/types/credit_note.py +5 -0
- merge/resources/accounting/types/employee.py +5 -0
- merge/resources/accounting/types/expense_report.py +5 -0
- merge/resources/accounting/types/expense_report_request.py +5 -0
- merge/resources/accounting/types/invoice.py +5 -0
- merge/resources/accounting/types/item.py +5 -0
- merge/resources/accounting/types/item_fulfillment.py +5 -0
- merge/resources/accounting/types/journal_entry.py +5 -0
- merge/resources/accounting/types/patched_contact_request.py +5 -0
- merge/resources/accounting/types/patched_payment_request.py +5 -0
- merge/resources/accounting/types/patched_vendor_credit_request.py +4 -0
- merge/resources/accounting/types/payment.py +5 -0
- merge/resources/accounting/types/payment_method.py +5 -0
- merge/resources/accounting/types/payment_request.py +5 -0
- merge/resources/accounting/types/payment_term.py +5 -0
- merge/resources/accounting/types/project.py +5 -0
- merge/resources/accounting/types/purchase_order.py +5 -0
- merge/resources/accounting/types/sales_order.py +5 -0
- merge/resources/accounting/types/tracking_category.py +4 -0
- merge/resources/accounting/types/transaction.py +4 -0
- merge/resources/accounting/types/vendor_credit.py +4 -0
- merge/resources/accounting/types/vendor_credit_request.py +4 -0
- merge/resources/ats/types/account_details.py +3 -0
- merge/resources/calendar/__init__.py +475 -0
- merge/resources/calendar/client.py +480 -0
- merge/resources/calendar/raw_client.py +13 -0
- merge/resources/calendar/resources/__init__.py +134 -0
- merge/resources/calendar/resources/account_details/__init__.py +4 -0
- merge/resources/calendar/resources/account_details/client.py +102 -0
- merge/resources/calendar/resources/account_details/raw_client.py +91 -0
- merge/resources/calendar/resources/account_token/__init__.py +4 -0
- merge/resources/calendar/resources/account_token/client.py +177 -0
- merge/resources/calendar/resources/account_token/raw_client.py +171 -0
- merge/resources/calendar/resources/async_passthrough/__init__.py +32 -0
- merge/resources/calendar/resources/async_passthrough/client.py +201 -0
- merge/resources/calendar/resources/async_passthrough/raw_client.py +189 -0
- merge/resources/calendar/resources/async_passthrough/types/__init__.py +32 -0
- merge/resources/calendar/resources/async_passthrough/types/async_passthrough_retrieve_response.py +7 -0
- merge/resources/calendar/resources/audit_trail/__init__.py +4 -0
- merge/resources/calendar/resources/audit_trail/client.py +188 -0
- merge/resources/calendar/resources/audit_trail/raw_client.py +161 -0
- merge/resources/calendar/resources/available_actions/__init__.py +4 -0
- merge/resources/calendar/resources/available_actions/client.py +102 -0
- merge/resources/calendar/resources/available_actions/raw_client.py +91 -0
- merge/resources/calendar/resources/calendars/__init__.py +32 -0
- merge/resources/calendar/resources/calendars/client.py +438 -0
- merge/resources/calendar/resources/calendars/raw_client.py +370 -0
- merge/resources/calendar/resources/calendars/types/__init__.py +32 -0
- merge/resources/calendar/resources/calendars/types/calendars_list_request_type.py +25 -0
- merge/resources/calendar/resources/delete_account/__init__.py +4 -0
- merge/resources/calendar/resources/delete_account/client.py +99 -0
- merge/resources/calendar/resources/delete_account/raw_client.py +71 -0
- merge/resources/calendar/resources/events/__init__.py +36 -0
- merge/resources/calendar/resources/events/client.py +820 -0
- merge/resources/calendar/resources/events/raw_client.py +720 -0
- merge/resources/calendar/resources/events/types/__init__.py +38 -0
- merge/resources/calendar/resources/events/types/events_invitees_list_request_expand_item.py +25 -0
- merge/resources/calendar/resources/events/types/events_list_request_expand_item.py +29 -0
- merge/resources/calendar/resources/events/types/events_retrieve_request_expand_item.py +29 -0
- merge/resources/calendar/resources/field_mapping/__init__.py +4 -0
- merge/resources/calendar/resources/field_mapping/client.py +828 -0
- merge/resources/calendar/resources/field_mapping/raw_client.py +854 -0
- merge/resources/calendar/resources/force_resync/__init__.py +4 -0
- merge/resources/calendar/resources/force_resync/client.py +106 -0
- merge/resources/calendar/resources/force_resync/raw_client.py +93 -0
- merge/resources/calendar/resources/generate_key/__init__.py +4 -0
- merge/resources/calendar/resources/generate_key/client.py +115 -0
- merge/resources/calendar/resources/generate_key/raw_client.py +114 -0
- merge/resources/calendar/resources/groups/__init__.py +35 -0
- merge/resources/calendar/resources/groups/client.py +445 -0
- merge/resources/calendar/resources/groups/raw_client.py +381 -0
- merge/resources/calendar/resources/groups/types/__init__.py +36 -0
- merge/resources/calendar/resources/groups/types/groups_list_request_expand_item.py +17 -0
- merge/resources/calendar/resources/groups/types/groups_retrieve_request_expand_item.py +17 -0
- merge/resources/calendar/resources/issues/__init__.py +32 -0
- merge/resources/calendar/resources/issues/client.py +372 -0
- merge/resources/calendar/resources/issues/raw_client.py +330 -0
- merge/resources/calendar/resources/issues/types/__init__.py +32 -0
- merge/resources/calendar/resources/issues/types/issues_list_request_status.py +17 -0
- merge/resources/calendar/resources/link_token/__init__.py +35 -0
- merge/resources/calendar/resources/link_token/client.py +310 -0
- merge/resources/calendar/resources/link_token/raw_client.py +293 -0
- merge/resources/calendar/resources/link_token/types/__init__.py +38 -0
- merge/resources/calendar/resources/link_token/types/end_user_details_request_completed_account_initial_screen.py +7 -0
- merge/resources/calendar/resources/link_token/types/end_user_details_request_language.py +7 -0
- merge/resources/calendar/resources/linked_accounts/__init__.py +32 -0
- merge/resources/calendar/resources/linked_accounts/client.py +371 -0
- merge/resources/calendar/resources/linked_accounts/raw_client.py +337 -0
- merge/resources/calendar/resources/linked_accounts/types/__init__.py +34 -0
- merge/resources/calendar/resources/linked_accounts/types/linked_accounts_list_request_category.py +49 -0
- merge/resources/calendar/resources/passthrough/__init__.py +4 -0
- merge/resources/calendar/resources/passthrough/client.py +126 -0
- merge/resources/calendar/resources/passthrough/raw_client.py +111 -0
- merge/resources/calendar/resources/regenerate_key/__init__.py +4 -0
- merge/resources/calendar/resources/regenerate_key/client.py +115 -0
- merge/resources/calendar/resources/regenerate_key/raw_client.py +114 -0
- merge/resources/calendar/resources/scopes/__init__.py +4 -0
- merge/resources/calendar/resources/scopes/client.py +320 -0
- merge/resources/calendar/resources/scopes/raw_client.py +267 -0
- merge/resources/calendar/resources/series/__init__.py +4 -0
- merge/resources/calendar/resources/series/client.py +451 -0
- merge/resources/calendar/resources/series/raw_client.py +379 -0
- merge/resources/calendar/resources/sync_status/__init__.py +4 -0
- merge/resources/calendar/resources/sync_status/client.py +132 -0
- merge/resources/calendar/resources/sync_status/raw_client.py +121 -0
- merge/resources/calendar/resources/users/__init__.py +4 -0
- merge/resources/calendar/resources/users/client.py +419 -0
- merge/resources/calendar/resources/users/raw_client.py +359 -0
- merge/resources/calendar/resources/webhook_receivers/__init__.py +4 -0
- merge/resources/calendar/resources/webhook_receivers/client.py +201 -0
- merge/resources/calendar/resources/webhook_receivers/raw_client.py +208 -0
- merge/resources/calendar/types/__init__.py +374 -0
- merge/resources/calendar/types/account_details.py +43 -0
- merge/resources/calendar/types/account_details_and_actions.py +54 -0
- merge/resources/calendar/types/account_details_and_actions_category.py +7 -0
- merge/resources/calendar/types/account_details_and_actions_integration.py +29 -0
- merge/resources/calendar/types/account_details_and_actions_status.py +7 -0
- merge/resources/calendar/types/account_details_and_actions_status_enum.py +29 -0
- merge/resources/calendar/types/account_details_category.py +7 -0
- merge/resources/calendar/types/account_integration.py +67 -0
- merge/resources/calendar/types/account_token.py +23 -0
- merge/resources/calendar/types/advanced_metadata.py +25 -0
- merge/resources/calendar/types/async_passthrough_reciept.py +20 -0
- merge/resources/calendar/types/audit_log_event.py +46 -0
- merge/resources/calendar/types/audit_log_event_event_type.py +7 -0
- merge/resources/calendar/types/audit_log_event_role.py +7 -0
- merge/resources/calendar/types/availability_status_enum.py +33 -0
- merge/resources/calendar/types/available_actions.py +33 -0
- merge/resources/calendar/types/calendar.py +91 -0
- merge/resources/calendar/types/calendar_field_mappings.py +21 -0
- merge/resources/calendar/types/calendar_type.py +7 -0
- merge/resources/calendar/types/calendar_type_enum.py +17 -0
- merge/resources/calendar/types/categories_enum.py +45 -0
- merge/resources/calendar/types/category_enum.py +45 -0
- merge/resources/calendar/types/common_model_scope_api.py +24 -0
- merge/resources/calendar/types/common_model_scopes_body_request.py +23 -0
- merge/resources/calendar/types/completed_account_initial_screen_enum.py +5 -0
- merge/resources/calendar/types/data_passthrough_request.py +62 -0
- merge/resources/calendar/types/data_passthrough_request_method.py +7 -0
- merge/resources/calendar/types/data_passthrough_request_request_format.py +7 -0
- merge/resources/calendar/types/debug_mode_log.py +23 -0
- merge/resources/calendar/types/debug_model_log_summary.py +22 -0
- merge/resources/calendar/types/effective_role_enum.py +41 -0
- merge/resources/calendar/types/enabled_actions_enum.py +17 -0
- merge/resources/calendar/types/encoding_enum.py +25 -0
- merge/resources/calendar/types/error_validation_problem.py +27 -0
- merge/resources/calendar/types/event.py +120 -0
- merge/resources/calendar/types/event_field_mappings.py +21 -0
- merge/resources/calendar/types/event_type_enum.py +185 -0
- merge/resources/calendar/types/external_target_field_api.py +22 -0
- merge/resources/calendar/types/external_target_field_api_response.py +25 -0
- merge/resources/calendar/types/field_mapping_api_instance.py +27 -0
- merge/resources/calendar/types/field_mapping_api_instance_remote_field.py +27 -0
- merge/resources/calendar/types/field_mapping_api_instance_remote_field_remote_endpoint_info.py +22 -0
- merge/resources/calendar/types/field_mapping_api_instance_response.py +25 -0
- merge/resources/calendar/types/field_mapping_api_instance_target_field.py +22 -0
- merge/resources/calendar/types/field_mapping_instance_response.py +27 -0
- merge/resources/calendar/types/field_permission_deserializer.py +21 -0
- merge/resources/calendar/types/field_permission_deserializer_request.py +21 -0
- merge/resources/calendar/types/group.py +75 -0
- merge/resources/calendar/types/group_field_mappings.py +21 -0
- merge/resources/calendar/types/individual_common_model_scope_deserializer.py +24 -0
- merge/resources/calendar/types/individual_common_model_scope_deserializer_request.py +24 -0
- merge/resources/calendar/types/invitee.py +88 -0
- merge/resources/calendar/types/invitee_availability_status.py +7 -0
- merge/resources/calendar/types/invitee_rsvp.py +7 -0
- merge/resources/calendar/types/issue.py +33 -0
- merge/resources/calendar/types/issue_status.py +7 -0
- merge/resources/calendar/types/issue_status_enum.py +17 -0
- merge/resources/calendar/types/language_enum.py +17 -0
- merge/resources/calendar/types/last_sync_result_enum.py +37 -0
- merge/resources/calendar/types/link_token.py +22 -0
- merge/resources/calendar/types/linked_account_patch_response.py +21 -0
- merge/resources/calendar/types/location.py +72 -0
- merge/resources/calendar/types/location_location_type.py +7 -0
- merge/resources/calendar/types/location_type_enum.py +25 -0
- merge/resources/calendar/types/method_enum.py +41 -0
- merge/resources/calendar/types/model_operation.py +32 -0
- merge/resources/calendar/types/model_permission_deserializer.py +20 -0
- merge/resources/calendar/types/model_permission_deserializer_request.py +20 -0
- merge/resources/calendar/types/multipart_form_field_request.py +53 -0
- merge/resources/calendar/types/multipart_form_field_request_encoding.py +7 -0
- merge/resources/calendar/types/paginated_account_details_and_actions_list.py +23 -0
- merge/resources/calendar/types/paginated_audit_log_event_list.py +23 -0
- merge/resources/calendar/types/paginated_calendar_list.py +23 -0
- merge/resources/calendar/types/paginated_event_list.py +23 -0
- merge/resources/calendar/types/paginated_group_list.py +23 -0
- merge/resources/calendar/types/paginated_invitee_list.py +23 -0
- merge/resources/calendar/types/paginated_issue_list.py +23 -0
- merge/resources/calendar/types/paginated_location_list.py +23 -0
- merge/resources/calendar/types/paginated_series_list.py +23 -0
- merge/resources/calendar/types/paginated_sync_status_list.py +23 -0
- merge/resources/calendar/types/paginated_user_list.py +23 -0
- merge/resources/calendar/types/permission.py +73 -0
- merge/resources/calendar/types/permission_effective_role.py +7 -0
- merge/resources/calendar/types/permission_field_mappings.py +21 -0
- merge/resources/calendar/types/permission_type.py +7 -0
- merge/resources/calendar/types/permission_type_enum.py +25 -0
- merge/resources/calendar/types/regenerate_account_token.py +30 -0
- merge/resources/calendar/types/remote_data.py +37 -0
- merge/resources/calendar/types/remote_endpoint_info.py +22 -0
- merge/resources/calendar/types/remote_field_api.py +28 -0
- merge/resources/calendar/types/remote_field_api_advanced_metadata.py +7 -0
- merge/resources/calendar/types/remote_field_api_coverage.py +5 -0
- merge/resources/calendar/types/remote_field_api_response.py +25 -0
- merge/resources/calendar/types/remote_key.py +30 -0
- merge/resources/calendar/types/remote_response.py +36 -0
- merge/resources/calendar/types/remote_response_response_type.py +7 -0
- merge/resources/calendar/types/request_format_enum.py +25 -0
- merge/resources/calendar/types/response_type_enum.py +17 -0
- merge/resources/calendar/types/role_enum.py +41 -0
- merge/resources/calendar/types/roles_enum.py +41 -0
- merge/resources/calendar/types/rsvp_enum.py +29 -0
- merge/resources/calendar/types/selective_sync_configurations_usage_enum.py +19 -0
- merge/resources/calendar/types/series.py +98 -0
- merge/resources/calendar/types/series_field_mappings.py +21 -0
- merge/resources/calendar/types/status_fd_5_enum.py +37 -0
- merge/resources/calendar/types/sync_status.py +41 -0
- merge/resources/calendar/types/sync_status_last_sync_result.py +7 -0
- merge/resources/calendar/types/sync_status_status.py +7 -0
- merge/resources/calendar/types/user.py +74 -0
- merge/resources/calendar/types/user_field_mappings.py +21 -0
- merge/resources/calendar/types/validation_problem_source.py +20 -0
- merge/resources/calendar/types/warning_validation_problem.py +27 -0
- merge/resources/calendar/types/webhook_receiver.py +22 -0
- merge/resources/chat/resources/link_token/client.py +0 -10
- merge/resources/chat/resources/link_token/raw_client.py +0 -10
- merge/resources/crm/types/account_details.py +3 -0
- merge/resources/email/resources/link_token/client.py +0 -10
- merge/resources/email/resources/link_token/raw_client.py +0 -10
- merge/resources/filestorage/types/account_details.py +3 -0
- merge/resources/hris/types/account_details.py +3 -0
- merge/resources/hris/types/employee.py +5 -0
- merge/resources/hris/types/employee_request.py +5 -0
- merge/resources/hris/types/group.py +5 -0
- merge/resources/knowledgebase/resources/link_token/client.py +0 -10
- merge/resources/knowledgebase/resources/link_token/raw_client.py +0 -10
- merge/resources/ticketing/types/account_details.py +3 -0
- {mergepythonclient-3.0.1.dist-info → mergepythonclient-3.1.0.dist-info}/METADATA +4 -1
- {mergepythonclient-3.0.1.dist-info → mergepythonclient-3.1.0.dist-info}/RECORD +256 -54
- {mergepythonclient-3.0.1.dist-info → mergepythonclient-3.1.0.dist-info}/LICENSE.md +0 -0
- {mergepythonclient-3.0.1.dist-info → mergepythonclient-3.1.0.dist-info}/WHEEL +0 -0
merge/__init__.py
CHANGED
|
@@ -6,7 +6,7 @@ import typing
|
|
|
6
6
|
from importlib import import_module
|
|
7
7
|
|
|
8
8
|
if typing.TYPE_CHECKING:
|
|
9
|
-
from .resources import accounting, ats, chat, crm, email, filestorage, hris, knowledgebase, ticketing
|
|
9
|
+
from .resources import accounting, ats, calendar, chat, crm, email, filestorage, hris, knowledgebase, ticketing
|
|
10
10
|
from .client import AsyncMerge, Merge
|
|
11
11
|
from .environment import MergeEnvironment
|
|
12
12
|
from .version import __version__
|
|
@@ -17,6 +17,7 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
17
17
|
"__version__": ".version",
|
|
18
18
|
"accounting": ".resources",
|
|
19
19
|
"ats": ".resources",
|
|
20
|
+
"calendar": ".resources",
|
|
20
21
|
"chat": ".resources",
|
|
21
22
|
"crm": ".resources",
|
|
22
23
|
"email": ".resources",
|
|
@@ -53,6 +54,7 @@ __all__ = [
|
|
|
53
54
|
"__version__",
|
|
54
55
|
"accounting",
|
|
55
56
|
"ats",
|
|
57
|
+
"calendar",
|
|
56
58
|
"chat",
|
|
57
59
|
"crm",
|
|
58
60
|
"email",
|
merge/client.py
CHANGED
|
@@ -11,6 +11,7 @@ from .environment import MergeEnvironment
|
|
|
11
11
|
if typing.TYPE_CHECKING:
|
|
12
12
|
from .resources.accounting.client import AccountingClient, AsyncAccountingClient
|
|
13
13
|
from .resources.ats.client import AsyncAtsClient, AtsClient
|
|
14
|
+
from .resources.calendar.client import AsyncCalendarClient, CalendarClient
|
|
14
15
|
from .resources.chat.client import AsyncChatClient, ChatClient
|
|
15
16
|
from .resources.crm.client import AsyncCrmClient, CrmClient
|
|
16
17
|
from .resources.email.client import AsyncEmailClient, EmailClient
|
|
@@ -94,6 +95,7 @@ class Merge:
|
|
|
94
95
|
self._crm: typing.Optional[CrmClient] = None
|
|
95
96
|
self._hris: typing.Optional[HrisClient] = None
|
|
96
97
|
self._ticketing: typing.Optional[TicketingClient] = None
|
|
98
|
+
self._calendar: typing.Optional[CalendarClient] = None
|
|
97
99
|
self._chat: typing.Optional[ChatClient] = None
|
|
98
100
|
self._email: typing.Optional[EmailClient] = None
|
|
99
101
|
self._filestorage: typing.Optional[FilestorageClient] = None
|
|
@@ -139,6 +141,14 @@ class Merge:
|
|
|
139
141
|
self._ticketing = TicketingClient(client_wrapper=self._client_wrapper)
|
|
140
142
|
return self._ticketing
|
|
141
143
|
|
|
144
|
+
@property
|
|
145
|
+
def calendar(self):
|
|
146
|
+
if self._calendar is None:
|
|
147
|
+
from .resources.calendar.client import CalendarClient # noqa: E402
|
|
148
|
+
|
|
149
|
+
self._calendar = CalendarClient(client_wrapper=self._client_wrapper)
|
|
150
|
+
return self._calendar
|
|
151
|
+
|
|
142
152
|
@property
|
|
143
153
|
def chat(self):
|
|
144
154
|
if self._chat is None:
|
|
@@ -246,6 +256,7 @@ class AsyncMerge:
|
|
|
246
256
|
self._crm: typing.Optional[AsyncCrmClient] = None
|
|
247
257
|
self._hris: typing.Optional[AsyncHrisClient] = None
|
|
248
258
|
self._ticketing: typing.Optional[AsyncTicketingClient] = None
|
|
259
|
+
self._calendar: typing.Optional[AsyncCalendarClient] = None
|
|
249
260
|
self._chat: typing.Optional[AsyncChatClient] = None
|
|
250
261
|
self._email: typing.Optional[AsyncEmailClient] = None
|
|
251
262
|
self._filestorage: typing.Optional[AsyncFilestorageClient] = None
|
|
@@ -291,6 +302,14 @@ class AsyncMerge:
|
|
|
291
302
|
self._ticketing = AsyncTicketingClient(client_wrapper=self._client_wrapper)
|
|
292
303
|
return self._ticketing
|
|
293
304
|
|
|
305
|
+
@property
|
|
306
|
+
def calendar(self):
|
|
307
|
+
if self._calendar is None:
|
|
308
|
+
from .resources.calendar.client import AsyncCalendarClient # noqa: E402
|
|
309
|
+
|
|
310
|
+
self._calendar = AsyncCalendarClient(client_wrapper=self._client_wrapper)
|
|
311
|
+
return self._calendar
|
|
312
|
+
|
|
294
313
|
@property
|
|
295
314
|
def chat(self):
|
|
296
315
|
if self._chat is None:
|
merge/core/client_wrapper.py
CHANGED
|
@@ -24,10 +24,10 @@ class BaseClientWrapper:
|
|
|
24
24
|
|
|
25
25
|
def get_headers(self) -> typing.Dict[str, str]:
|
|
26
26
|
headers: typing.Dict[str, str] = {
|
|
27
|
-
"User-Agent": "MergePythonClient/3.0
|
|
27
|
+
"User-Agent": "MergePythonClient/3.1.0",
|
|
28
28
|
"X-Fern-Language": "Python",
|
|
29
29
|
"X-Fern-SDK-Name": "MergePythonClient",
|
|
30
|
-
"X-Fern-SDK-Version": "3.0
|
|
30
|
+
"X-Fern-SDK-Version": "3.1.0",
|
|
31
31
|
**(self.get_custom_headers() or {}),
|
|
32
32
|
}
|
|
33
33
|
if self._account_token is not None:
|
merge/resources/__init__.py
CHANGED
|
@@ -6,10 +6,11 @@ import typing
|
|
|
6
6
|
from importlib import import_module
|
|
7
7
|
|
|
8
8
|
if typing.TYPE_CHECKING:
|
|
9
|
-
from . import accounting, ats, chat, crm, email, filestorage, hris, knowledgebase, ticketing
|
|
9
|
+
from . import accounting, ats, calendar, chat, crm, email, filestorage, hris, knowledgebase, ticketing
|
|
10
10
|
_dynamic_imports: typing.Dict[str, str] = {
|
|
11
11
|
"accounting": ".",
|
|
12
12
|
"ats": ".",
|
|
13
|
+
"calendar": ".",
|
|
13
14
|
"chat": ".",
|
|
14
15
|
"crm": ".",
|
|
15
16
|
"email": ".",
|
|
@@ -39,4 +40,4 @@ def __dir__():
|
|
|
39
40
|
return sorted(lazy_attrs)
|
|
40
41
|
|
|
41
42
|
|
|
42
|
-
__all__ = ["accounting", "ats", "chat", "crm", "email", "filestorage", "hris", "knowledgebase", "ticketing"]
|
|
43
|
+
__all__ = ["accounting", "ats", "calendar", "chat", "crm", "email", "filestorage", "hris", "knowledgebase", "ticketing"]
|
|
@@ -31,6 +31,11 @@ class Account(UncheckedBaseModel):
|
|
|
31
31
|
Fetch from the `LIST Accounts` endpoint and view a company's accounts.
|
|
32
32
|
"""
|
|
33
33
|
|
|
34
|
+
account_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
35
|
+
"""
|
|
36
|
+
The 3rd party URL of the account.
|
|
37
|
+
"""
|
|
38
|
+
|
|
34
39
|
id: typing.Optional[str] = None
|
|
35
40
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
36
41
|
"""
|
|
@@ -30,6 +30,9 @@ class AccountDetails(UncheckedBaseModel):
|
|
|
30
30
|
The time at which account completes the linking flow.
|
|
31
31
|
"""
|
|
32
32
|
|
|
33
|
+
instance_id: typing.Optional[str] = None
|
|
34
|
+
instance_display_value: typing.Optional[str] = None
|
|
35
|
+
|
|
33
36
|
if IS_PYDANTIC_V2:
|
|
34
37
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
35
38
|
else:
|
|
@@ -29,6 +29,11 @@ class AccountRequest(UncheckedBaseModel):
|
|
|
29
29
|
Fetch from the `LIST Accounts` endpoint and view a company's accounts.
|
|
30
30
|
"""
|
|
31
31
|
|
|
32
|
+
account_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
33
|
+
"""
|
|
34
|
+
The 3rd party URL of the account.
|
|
35
|
+
"""
|
|
36
|
+
|
|
32
37
|
name: typing.Optional[str] = pydantic.Field(default=None)
|
|
33
38
|
"""
|
|
34
39
|
The account's name.
|
|
@@ -20,6 +20,11 @@ class AccountingPeriod(UncheckedBaseModel):
|
|
|
20
20
|
Common models like `Invoice` and `Transaction` will have `AccountingPeriod` objects which will denote when they occurred.
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
|
+
accounting_period_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
24
|
+
"""
|
|
25
|
+
The 3rd party URL of the accounting period.
|
|
26
|
+
"""
|
|
27
|
+
|
|
23
28
|
id: typing.Optional[str] = None
|
|
24
29
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
25
30
|
"""
|
|
@@ -22,6 +22,11 @@ class BankFeedAccount(UncheckedBaseModel):
|
|
|
22
22
|
Fetch from the `GET BankFeedAccount` endpoint to view details of a bank feed account.
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
|
+
bank_feed_account_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
26
|
+
"""
|
|
27
|
+
The 3rd party URL of the bank feed account.
|
|
28
|
+
"""
|
|
29
|
+
|
|
25
30
|
id: typing.Optional[str] = None
|
|
26
31
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
27
32
|
"""
|
|
@@ -21,6 +21,11 @@ class BankFeedAccountRequest(UncheckedBaseModel):
|
|
|
21
21
|
Fetch from the `GET BankFeedAccount` endpoint to view details of a bank feed account.
|
|
22
22
|
"""
|
|
23
23
|
|
|
24
|
+
bank_feed_account_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
25
|
+
"""
|
|
26
|
+
The 3rd party URL of the bank feed account.
|
|
27
|
+
"""
|
|
28
|
+
|
|
24
29
|
source_account_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
25
30
|
"""
|
|
26
31
|
The unique identifier of the source account from our customer’s platform.
|
|
@@ -20,6 +20,11 @@ class BankFeedTransaction(UncheckedBaseModel):
|
|
|
20
20
|
Fetch from the `GET BankFeedTransaction` endpoint to view details of a transaction associated with a bank feed account.
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
|
+
bank_feed_transaction_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
24
|
+
"""
|
|
25
|
+
The 3rd party URL of the bank feed transaction.
|
|
26
|
+
"""
|
|
27
|
+
|
|
23
28
|
id: typing.Optional[str] = None
|
|
24
29
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
25
30
|
"""
|
|
@@ -22,6 +22,11 @@ class CompanyInfo(UncheckedBaseModel):
|
|
|
22
22
|
Fetch from the `GET CompanyInfo` endpoint and view a company's information.
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
|
+
company_info_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
26
|
+
"""
|
|
27
|
+
The 3rd party URL of the company info.
|
|
28
|
+
"""
|
|
29
|
+
|
|
25
30
|
id: typing.Optional[str] = None
|
|
26
31
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
27
32
|
"""
|
|
@@ -26,6 +26,11 @@ class Contact(UncheckedBaseModel):
|
|
|
26
26
|
Fetch from the `LIST Contacts` endpoint and view a company's contacts.
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
|
+
contact_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
30
|
+
"""
|
|
31
|
+
The 3rd party URL of the contact.
|
|
32
|
+
"""
|
|
33
|
+
|
|
29
34
|
id: typing.Optional[str] = None
|
|
30
35
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
31
36
|
"""
|
|
@@ -24,6 +24,11 @@ class ContactRequest(UncheckedBaseModel):
|
|
|
24
24
|
Fetch from the `LIST Contacts` endpoint and view a company's contacts.
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
|
+
contact_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
28
|
+
"""
|
|
29
|
+
The 3rd party URL of the contact.
|
|
30
|
+
"""
|
|
31
|
+
|
|
27
32
|
name: typing.Optional[str] = pydantic.Field(default=None)
|
|
28
33
|
"""
|
|
29
34
|
The contact's name.
|
|
@@ -30,6 +30,11 @@ class CreditNote(UncheckedBaseModel):
|
|
|
30
30
|
Fetch from the `LIST CreditNotes` endpoint and view a company's credit notes.
|
|
31
31
|
"""
|
|
32
32
|
|
|
33
|
+
credit_note_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
34
|
+
"""
|
|
35
|
+
The 3rd party URL of the credit note.
|
|
36
|
+
"""
|
|
37
|
+
|
|
33
38
|
id: typing.Optional[str] = None
|
|
34
39
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
35
40
|
"""
|
|
@@ -23,6 +23,11 @@ class Employee(UncheckedBaseModel):
|
|
|
23
23
|
Fetch from the `LIST Employees` endpoint and view a company's employees.
|
|
24
24
|
"""
|
|
25
25
|
|
|
26
|
+
employee_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
27
|
+
"""
|
|
28
|
+
The 3rd party URL of the employee.
|
|
29
|
+
"""
|
|
30
|
+
|
|
26
31
|
id: typing.Optional[str] = None
|
|
27
32
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
28
33
|
"""
|
|
@@ -27,6 +27,11 @@ class ExpenseReport(UncheckedBaseModel):
|
|
|
27
27
|
Fetch from the `GET ExpenseReport` endpoint to view details of expense reports and their line items.
|
|
28
28
|
"""
|
|
29
29
|
|
|
30
|
+
expense_report_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
31
|
+
"""
|
|
32
|
+
The 3rd party URL of the expense report.
|
|
33
|
+
"""
|
|
34
|
+
|
|
30
35
|
id: typing.Optional[str] = None
|
|
31
36
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
32
37
|
"""
|
|
@@ -25,6 +25,11 @@ class ExpenseReportRequest(UncheckedBaseModel):
|
|
|
25
25
|
Fetch from the `GET ExpenseReport` endpoint to view details of expense reports and their line items.
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
|
+
expense_report_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
29
|
+
"""
|
|
30
|
+
The 3rd party URL of the expense report.
|
|
31
|
+
"""
|
|
32
|
+
|
|
28
33
|
report_date: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
29
34
|
"""
|
|
30
35
|
The date of the expense report.
|
|
@@ -40,6 +40,11 @@ class Invoice(UncheckedBaseModel):
|
|
|
40
40
|
"""
|
|
41
41
|
|
|
42
42
|
id: typing.Optional[str] = None
|
|
43
|
+
invoice_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
44
|
+
"""
|
|
45
|
+
The 3rd party URL of the invoice.
|
|
46
|
+
"""
|
|
47
|
+
|
|
43
48
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
44
49
|
"""
|
|
45
50
|
The third-party API ID of the matching object.
|
|
@@ -27,6 +27,11 @@ class Item(UncheckedBaseModel):
|
|
|
27
27
|
"""
|
|
28
28
|
|
|
29
29
|
id: typing.Optional[str] = None
|
|
30
|
+
item_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
31
|
+
"""
|
|
32
|
+
The 3rd party URL of the item.
|
|
33
|
+
"""
|
|
34
|
+
|
|
30
35
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
31
36
|
"""
|
|
32
37
|
The third-party API ID of the matching object.
|
|
@@ -26,6 +26,11 @@ class ItemFulfillment(UncheckedBaseModel):
|
|
|
26
26
|
"""
|
|
27
27
|
|
|
28
28
|
id: typing.Optional[str] = None
|
|
29
|
+
item_fulfillment_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
30
|
+
"""
|
|
31
|
+
The 3rd party URL of the item fulfillment.
|
|
32
|
+
"""
|
|
33
|
+
|
|
29
34
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
30
35
|
"""
|
|
31
36
|
The third-party API ID of the matching object.
|
|
@@ -33,6 +33,11 @@ class JournalEntry(UncheckedBaseModel):
|
|
|
33
33
|
"""
|
|
34
34
|
|
|
35
35
|
id: typing.Optional[str] = None
|
|
36
|
+
journal_entry_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
37
|
+
"""
|
|
38
|
+
The 3rd party URL of the journal entry.
|
|
39
|
+
"""
|
|
40
|
+
|
|
36
41
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
37
42
|
"""
|
|
38
43
|
The third-party API ID of the matching object.
|
|
@@ -24,6 +24,11 @@ class PatchedContactRequest(UncheckedBaseModel):
|
|
|
24
24
|
Fetch from the `LIST Contacts` endpoint and view a company's contacts.
|
|
25
25
|
"""
|
|
26
26
|
|
|
27
|
+
contact_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
28
|
+
"""
|
|
29
|
+
The 3rd party URL of the contact.
|
|
30
|
+
"""
|
|
31
|
+
|
|
27
32
|
name: typing.Optional[str] = pydantic.Field(default=None)
|
|
28
33
|
"""
|
|
29
34
|
The contact's name.
|
|
@@ -28,6 +28,11 @@ class PatchedPaymentRequest(UncheckedBaseModel):
|
|
|
28
28
|
Fetch from the `GET Payment` endpoint and view an invoice's payment.
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
|
+
payment_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
32
|
+
"""
|
|
33
|
+
The 3rd party URL of the payment.
|
|
34
|
+
"""
|
|
35
|
+
|
|
31
36
|
transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
32
37
|
"""
|
|
33
38
|
The payment's transaction date.
|
|
@@ -367,6 +367,10 @@ class PatchedVendorCreditRequest(UncheckedBaseModel):
|
|
|
367
367
|
tracking_categories: typing.Optional[typing.List[PatchedVendorCreditRequestTrackingCategoriesItem]] = None
|
|
368
368
|
integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
369
369
|
linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
370
|
+
vendor_credit_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
371
|
+
"""
|
|
372
|
+
The 3rd party URL of the vendor credit.
|
|
373
|
+
"""
|
|
370
374
|
|
|
371
375
|
if IS_PYDANTIC_V2:
|
|
372
376
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -30,6 +30,11 @@ class Payment(UncheckedBaseModel):
|
|
|
30
30
|
"""
|
|
31
31
|
|
|
32
32
|
id: typing.Optional[str] = None
|
|
33
|
+
payment_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
34
|
+
"""
|
|
35
|
+
The 3rd party URL of the payment.
|
|
36
|
+
"""
|
|
37
|
+
|
|
33
38
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
34
39
|
"""
|
|
35
40
|
The third-party API ID of the matching object.
|
|
@@ -21,6 +21,11 @@ class PaymentMethod(UncheckedBaseModel):
|
|
|
21
21
|
"""
|
|
22
22
|
|
|
23
23
|
id: typing.Optional[str] = None
|
|
24
|
+
payment_method_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
25
|
+
"""
|
|
26
|
+
The 3rd party URL of the payment method.
|
|
27
|
+
"""
|
|
28
|
+
|
|
24
29
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
25
30
|
"""
|
|
26
31
|
The third-party API ID of the matching object.
|
|
@@ -28,6 +28,11 @@ class PaymentRequest(UncheckedBaseModel):
|
|
|
28
28
|
Fetch from the `GET Payment` endpoint and view an invoice's payment.
|
|
29
29
|
"""
|
|
30
30
|
|
|
31
|
+
payment_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
32
|
+
"""
|
|
33
|
+
The 3rd party URL of the payment.
|
|
34
|
+
"""
|
|
35
|
+
|
|
31
36
|
transaction_date: typing.Optional[dt.datetime] = pydantic.Field(default=None)
|
|
32
37
|
"""
|
|
33
38
|
The payment's transaction date.
|
|
@@ -22,6 +22,11 @@ class PaymentTerm(UncheckedBaseModel):
|
|
|
22
22
|
"""
|
|
23
23
|
|
|
24
24
|
id: typing.Optional[str] = None
|
|
25
|
+
payment_term_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
26
|
+
"""
|
|
27
|
+
The 3rd party URL of the payment term.
|
|
28
|
+
"""
|
|
29
|
+
|
|
25
30
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
26
31
|
"""
|
|
27
32
|
The third-party API ID of the matching object.
|
|
@@ -23,6 +23,11 @@ class Project(UncheckedBaseModel):
|
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
25
|
id: typing.Optional[str] = None
|
|
26
|
+
project_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
27
|
+
"""
|
|
28
|
+
The 3rd party URL of the project.
|
|
29
|
+
"""
|
|
30
|
+
|
|
26
31
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
27
32
|
"""
|
|
28
33
|
The third-party API ID of the matching object.
|
|
@@ -32,6 +32,11 @@ class PurchaseOrder(UncheckedBaseModel):
|
|
|
32
32
|
"""
|
|
33
33
|
|
|
34
34
|
id: typing.Optional[str] = None
|
|
35
|
+
purchase_order_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
36
|
+
"""
|
|
37
|
+
The 3rd party URL of the purchase order.
|
|
38
|
+
"""
|
|
39
|
+
|
|
35
40
|
remote_id: typing.Optional[str] = pydantic.Field(default=None)
|
|
36
41
|
"""
|
|
37
42
|
The third-party API ID of the matching object.
|
|
@@ -371,6 +371,11 @@ class SalesOrder(UncheckedBaseModel):
|
|
|
371
371
|
The subsidiary associated with the order.
|
|
372
372
|
"""
|
|
373
373
|
|
|
374
|
+
sales_order_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
375
|
+
"""
|
|
376
|
+
The 3rd party URL of the sales order.
|
|
377
|
+
"""
|
|
378
|
+
|
|
374
379
|
status: typing.Optional[SalesOrderStatus] = pydantic.Field(default=None)
|
|
375
380
|
"""
|
|
376
381
|
The status of the sales order.
|
|
@@ -70,6 +70,10 @@ class TrackingCategory(UncheckedBaseModel):
|
|
|
70
70
|
"""
|
|
71
71
|
|
|
72
72
|
field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
73
|
+
tracking_category_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
74
|
+
"""
|
|
75
|
+
The 3rd party URL of the tracking category.
|
|
76
|
+
"""
|
|
73
77
|
|
|
74
78
|
if IS_PYDANTIC_V2:
|
|
75
79
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -420,6 +420,10 @@ class Transaction(UncheckedBaseModel):
|
|
|
420
420
|
|
|
421
421
|
field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
422
422
|
remote_data: typing.Optional[typing.List[RemoteData]] = None
|
|
423
|
+
transaction_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
424
|
+
"""
|
|
425
|
+
The 3rd party URL of the transaction.
|
|
426
|
+
"""
|
|
423
427
|
|
|
424
428
|
if IS_PYDANTIC_V2:
|
|
425
429
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -411,6 +411,10 @@ class VendorCredit(UncheckedBaseModel):
|
|
|
411
411
|
|
|
412
412
|
field_mappings: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
413
413
|
remote_data: typing.Optional[typing.List[RemoteData]] = None
|
|
414
|
+
vendor_credit_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
415
|
+
"""
|
|
416
|
+
The 3rd party URL of the vendor credit.
|
|
417
|
+
"""
|
|
414
418
|
|
|
415
419
|
if IS_PYDANTIC_V2:
|
|
416
420
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -388,6 +388,10 @@ class VendorCreditRequest(UncheckedBaseModel):
|
|
|
388
388
|
|
|
389
389
|
integration_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
390
390
|
linked_account_params: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
391
|
+
vendor_credit_url: typing.Optional[str] = pydantic.Field(default=None)
|
|
392
|
+
"""
|
|
393
|
+
The 3rd party URL of the vendor credit.
|
|
394
|
+
"""
|
|
391
395
|
|
|
392
396
|
if IS_PYDANTIC_V2:
|
|
393
397
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -30,6 +30,9 @@ class AccountDetails(UncheckedBaseModel):
|
|
|
30
30
|
The time at which account completes the linking flow.
|
|
31
31
|
"""
|
|
32
32
|
|
|
33
|
+
instance_id: typing.Optional[str] = None
|
|
34
|
+
instance_display_value: typing.Optional[str] = None
|
|
35
|
+
|
|
33
36
|
if IS_PYDANTIC_V2:
|
|
34
37
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
35
38
|
else:
|