cjapy 0.2.2.post3__tar.gz → 0.2.2.post4__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 (32) hide show
  1. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/PKG-INFO +1 -1
  2. cjapy-0.2.2.post4/cjapy/__version__.py +1 -0
  3. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/requestCreator.py +29 -7
  4. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy.egg-info/PKG-INFO +1 -1
  5. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/releases.md +1 -0
  6. cjapy-0.2.2.post3/cjapy/__version__.py +0 -1
  7. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/LICENSE +0 -0
  8. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/README.md +0 -0
  9. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/__init__.py +0 -0
  10. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/cjapy.py +0 -0
  11. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/config.py +0 -0
  12. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/configs.py +0 -0
  13. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/connector.py +0 -0
  14. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/projects.py +0 -0
  15. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/token_provider.py +0 -0
  16. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy/workspace.py +0 -0
  17. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy.egg-info/SOURCES.txt +0 -0
  18. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy.egg-info/dependency_links.txt +0 -0
  19. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy.egg-info/requires.txt +0 -0
  20. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/cjapy.egg-info/top_level.txt +0 -0
  21. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/authenticating_without_config_json.md +0 -0
  22. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/cja.md +0 -0
  23. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/getting_started.md +0 -0
  24. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/logging.md +0 -0
  25. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/main.md +0 -0
  26. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/projects.md +0 -0
  27. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/requestCreator.md +0 -0
  28. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/docs/workspace.md +0 -0
  29. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/pyproject.toml +0 -0
  30. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/requirements.txt +0 -0
  31. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/setup.cfg +0 -0
  32. {cjapy-0.2.2.post3 → cjapy-0.2.2.post4}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cjapy
3
- Version: 0.2.2.post3
3
+ Version: 0.2.2.post4
4
4
  Summary: Adobe Customer Journey Analytics (CJA) wrapper
5
5
  Home-page: https://github.com/pitchmuc/cjapy
6
6
  Author: Julien Piccini
@@ -0,0 +1 @@
1
+ __version__ = "0.2.2-4"
@@ -212,17 +212,39 @@ class RequestCreator:
212
212
  """
213
213
  self.__request["settings"]["limit"] = limit
214
214
 
215
- def setSearch(self,itemIds:list=None)-> None:
215
+ def setSearch(self,itemIds:list=None,clause:str=None,reset:bool=True)-> None:
216
216
  """
217
217
  Set the items ID search in the specified dimension
218
218
  Arguments :
219
- itemIds : REQUIRED : The list of itemId to be searched in the dimension
220
- """
221
- if type(itemIds) != list:
222
- raise TypeError("itemIds should be a list of values")
223
- self.__request["search"]["itemIds"] = itemIds
219
+ itemIds : OPTIONAL : The list of itemId to be searched in the dimension
220
+ clause : OPTIONAL : If you want to set a specific clause such as:
221
+ "( CONTAINS 'Python' ) AND ( CONTAINS 'Platform' )"
222
+ "( CONTAINS 'Python' ) OR ( CONTAINS 'Platform' )"
223
+ "( MATCH 'Python' )" : Equals
224
+ "( BEGINS-WITH 'Python' )"
225
+ "( NOT CONTAINS 'Python' )"
226
+ reset : OPTIONAL : automatically reset the search from your request
227
+ """
228
+ if reset:
229
+ self.__request['search']={}
230
+ if itemIds is not None:
231
+ self.__request["search"]["itemIds"] = itemIds
232
+ elif clause is not None:
233
+ self.__request["search"]["clause"] = clause
224
234
  self.search = True
225
-
235
+
236
+ # def addDimensions(self,dimensionIds:list=None)->None:
237
+ # """
238
+ # In case you want to pass a list of dimensions to the report API.
239
+ # Arguments:
240
+ # dimensionIds : REQUIRED : The list of dimensions IDs you want to use
241
+ # """
242
+ # if dimensionIds is None:
243
+ # raise ValueError("dimensionIds parameters should be used")
244
+ # if type(dimensionIds) != list:
245
+ # raise TypeError("dimensionIds should be a list")
246
+ # self.__request["dimension"] = dimensionIds
247
+
226
248
  def removeSearch(self)->None:
227
249
  """
228
250
  Remove the search capability in the request.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cjapy
3
- Version: 0.2.2.post3
3
+ Version: 0.2.2.post4
4
4
  Summary: Adobe Customer Journey Analytics (CJA) wrapper
5
5
  Home-page: https://github.com/pitchmuc/cjapy
6
6
  Author: Julien Piccini
@@ -13,6 +13,7 @@ Patch:
13
13
  * Fixing some edge cases of `findComponentUsage`
14
14
  * Adding more parameters for `createDataView` methods
15
15
  * Fixing `updateCalculatedMetric`
16
+ * Fixing the `setSearch`
16
17
 
17
18
  ## 0.2.1
18
19
 
@@ -1 +0,0 @@
1
- __version__ = "0.2.2-3"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes