wbintegrator_office365 1.51.0__tar.gz → 1.51.2__tar.gz

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.
Files changed (43) hide show
  1. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/.gitignore +0 -1
  2. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/PKG-INFO +1 -1
  3. wbintegrator_office365-1.51.2/wbintegrator_office365/viewsets/endpoints.py +78 -0
  4. wbintegrator_office365-1.51.0/wbintegrator_office365/viewsets/endpoints.py +0 -52
  5. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/pyproject.toml +0 -0
  6. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/__init__.py +0 -0
  7. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/admin.py +0 -0
  8. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/apps.py +0 -0
  9. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/configurations/__init__.py +0 -0
  10. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/configurations/configurations/__init__.py +0 -0
  11. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/dynamic_preferences_registry.py +0 -0
  12. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/factories.py +0 -0
  13. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/filters.py +0 -0
  14. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/importer/__init__.py +0 -0
  15. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/importer/api.py +0 -0
  16. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/importer/disable_signals.py +0 -0
  17. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/importer/parser.py +0 -0
  18. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/kpi_handlers/__init__.py +0 -0
  19. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/kpi_handlers/calls.py +0 -0
  20. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/migrations/0001_initial_squashed_squashed_0003_alter_calendar_owner_alter_calendarevent_organizer_and_more.py +0 -0
  21. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/migrations/0002_remove_calendar_owner_remove_calendarevent_activity_and_more.py +0 -0
  22. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/migrations/0003_alter_event_options.py +0 -0
  23. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/migrations/__init__.py +0 -0
  24. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/models/__init__.py +0 -0
  25. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/models/event.py +0 -0
  26. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/models/subscription.py +0 -0
  27. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/models/tenant.py +0 -0
  28. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/serializers.py +0 -0
  29. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/tasks.py +0 -0
  30. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/templates/admin/tenant_change_list.html +0 -0
  31. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/tests/__init__.py +0 -0
  32. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/tests/conftest.py +0 -0
  33. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/tests/test_admin.py +0 -0
  34. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/tests/test_models.py +0 -0
  35. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/tests/test_tasks.py +0 -0
  36. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/tests/test_views.py +0 -0
  37. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/tests/tests.py +0 -0
  38. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/urls.py +0 -0
  39. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/viewsets/__init__.py +0 -0
  40. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/viewsets/display.py +0 -0
  41. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/viewsets/menu.py +0 -0
  42. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/viewsets/titles.py +0 -0
  43. {wbintegrator_office365-1.51.0 → wbintegrator_office365-1.51.2}/wbintegrator_office365/viewsets/viewsets.py +0 -0
@@ -71,7 +71,6 @@ report.xml
71
71
  */report.xml
72
72
 
73
73
  # Translations
74
- *.mo
75
74
  *.pot
76
75
 
77
76
  # Django stuff:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: wbintegrator_office365
3
- Version: 1.51.0
3
+ Version: 1.51.2
4
4
  Author-email: Christopher Wittlinger <c.wittlinger@stainly.com>
5
5
  Requires-Dist: bs4==0.0.*
6
6
  Requires-Dist: oauthlib==3.1.*
@@ -0,0 +1,78 @@
1
+ from rest_framework.reverse import reverse
2
+ from wbcore.metadata.configs.endpoints import EndpointViewConfig
3
+
4
+
5
+ class TenantUserEndpointConfig(EndpointViewConfig):
6
+ def get_update_endpoint(self, **kwargs):
7
+ return None
8
+
9
+ def get_delete_endpoint(self, **kwargs):
10
+ return None
11
+
12
+ def get_create_endpoint(self, **kwargs):
13
+ return None
14
+
15
+
16
+ class EventEndpointConfig(EndpointViewConfig):
17
+ def get_update_endpoint(self, **kwargs):
18
+ return None
19
+
20
+ def get_delete_endpoint(self, **kwargs):
21
+ return None
22
+
23
+ def get_create_endpoint(self, **kwargs):
24
+ return None
25
+
26
+
27
+ class CallUserEndpointConfig(EndpointViewConfig):
28
+ def get_update_endpoint(self, **kwargs):
29
+ return None
30
+
31
+ def get_delete_endpoint(self, **kwargs):
32
+ return None
33
+
34
+ def get_create_endpoint(self, **kwargs):
35
+ return None
36
+
37
+
38
+ class CallEventEndpointConfig(EndpointViewConfig):
39
+ def get_update_endpoint(self, **kwargs):
40
+ return None
41
+
42
+ def get_delete_endpoint(self, **kwargs):
43
+ return None
44
+
45
+ def get_create_endpoint(self, **kwargs):
46
+ return None
47
+
48
+
49
+ class SubscriptionEndpointConfig(EndpointViewConfig):
50
+ def get_update_endpoint(self, **kwargs):
51
+ return None
52
+
53
+ def get_delete_endpoint(self, **kwargs):
54
+ return None
55
+
56
+ def get_create_endpoint(self, **kwargs):
57
+ return None
58
+
59
+
60
+ class EventLogEndpointConfig(EndpointViewConfig):
61
+ def get_update_endpoint(self, **kwargs):
62
+ return None
63
+
64
+ def get_delete_endpoint(self, **kwargs):
65
+ return None
66
+
67
+ def get_create_endpoint(self, **kwargs):
68
+ return None
69
+
70
+
71
+ class EventLogEventEndpointConfig(EndpointViewConfig):
72
+ def get_endpoint(self, **kwargs):
73
+ return None
74
+
75
+ def get_instance_endpoint(self, **kwargs):
76
+ if event_id := self.view.kwargs.get("last_event_id", None):
77
+ return reverse("wbintegrator_office365:event-eventlog-list", args=[event_id], request=self.request)
78
+ return None
@@ -1,52 +0,0 @@
1
- from rest_framework.reverse import reverse
2
- from wbcore.metadata.configs.endpoints import EndpointViewConfig
3
-
4
-
5
- class MixinEndpointConfig(EndpointViewConfig):
6
- def get_endpoint(self):
7
- return super().get_endpoint()
8
-
9
- def get_list_endpoint(self):
10
- return reverse(f"{self.view.get_model().get_endpoint_basename()}-list", request=self.request)
11
-
12
- def get_instance_endpoint(self):
13
- if self.instance:
14
- return None
15
- return super().get_instance_endpoint()
16
-
17
- def get_create_endpoint(self):
18
- return None
19
-
20
- def get_delete_endpoint(self):
21
- return None
22
-
23
-
24
- class TenantUserEndpointConfig(MixinEndpointConfig):
25
- pass
26
-
27
-
28
- class EventEndpointConfig(MixinEndpointConfig):
29
- pass
30
-
31
-
32
- class CallUserEndpointConfig(MixinEndpointConfig):
33
- pass
34
-
35
-
36
- class CallEventEndpointConfig(MixinEndpointConfig):
37
- pass
38
-
39
-
40
- class SubscriptionEndpointConfig(MixinEndpointConfig):
41
- pass
42
-
43
-
44
- class EventLogEndpointConfig(MixinEndpointConfig):
45
- pass
46
-
47
-
48
- class EventLogEventEndpointConfig(MixinEndpointConfig):
49
- def get_endpoint(self, **kwargs):
50
- if event_id := self.view.kwargs.get("last_event_id", None):
51
- return reverse("wbintegrator_office365:event-eventlog-list", args=[event_id], request=self.request)
52
- return None