brynq-sdk-monday 2.0.0__tar.gz → 2.1.0__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: brynq_sdk_monday
3
- Version: 2.0.0
3
+ Version: 2.1.0
4
4
  Summary: Monday.com wrapper from BrynQ
5
5
  Home-page: UNKNOWN
6
6
  Author: BrynQ
@@ -27,7 +27,7 @@ class ExtractTracket(BrynQ):
27
27
  Return the headers with the access_token.
28
28
  """
29
29
  # Get credentials from BrynQ
30
- credentials = self.interfaces.credentials.get(system="tracket", system_type=system_type)
30
+ credentials = self.interfaces.credentials.get(system="monday", system_type=system_type)
31
31
  credentials = credentials.get('data')
32
32
 
33
33
  # With those credentials, get the access_token from Tracket
@@ -97,10 +97,9 @@ class ExtractTracket(BrynQ):
97
97
  """
98
98
  Get all the hour categories from Tracket.
99
99
  """
100
- endpoint = f'{self.base_url}categories'
100
+ endpoint = f'{self.base_url}templates/timeEntry/fields/category/options'
101
101
  response = requests.request("GET", endpoint, headers=self.headers, timeout=self.timeout)
102
102
  response.raise_for_status()
103
- data = response.json()['categories']
103
+ data = response.json()['items']
104
104
  df = pd.DataFrame(data)
105
105
  return df
106
-
@@ -29,7 +29,7 @@ class UploadTracket(BrynQ):
29
29
  Return the headers with the access_token.
30
30
  """
31
31
  # Get credentials from BrynQ
32
- credentials = self.interfaces.credentials.get(system="tracket", system_type=system_type)
32
+ credentials = self.interfaces.credentials.get(system="monday", system_type=system_type)
33
33
  credentials = credentials.get('data')
34
34
 
35
35
  # With those credentials, get the access_token from Tracket
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.0
2
2
  Name: brynq-sdk-monday
3
- Version: 2.0.0
3
+ Version: 2.1.0
4
4
  Summary: Monday.com wrapper from BrynQ
5
5
  Home-page: UNKNOWN
6
6
  Author: BrynQ
@@ -2,7 +2,7 @@ from setuptools import setup, find_namespace_packages
2
2
 
3
3
  setup(
4
4
  name='brynq_sdk_monday',
5
- version='2.0.0',
5
+ version='2.1.0',
6
6
  description='Monday.com wrapper from BrynQ',
7
7
  long_description='Monday.com wrapper from BrynQ',
8
8
  author='BrynQ',