tgshops-integrations 1.1__tar.gz → 1.3__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 (20) hide show
  1. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/PKG-INFO +1 -1
  2. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/setup.py +1 -1
  3. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/tgshops_integrations/middlewares/gateway.py +0 -33
  4. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/tgshops_integrations.egg-info/PKG-INFO +1 -1
  5. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/README.md +0 -0
  6. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/setup.cfg +0 -0
  7. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/tgshops_integrations/__init__.py +0 -0
  8. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/tgshops_integrations/middlewares/__init__.py +0 -0
  9. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/tgshops_integrations/models/__init__.py +0 -0
  10. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/tgshops_integrations/models/categories.py +0 -0
  11. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/tgshops_integrations/models/products.py +0 -0
  12. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/tgshops_integrations/nocodb_connector/__init__.py +0 -0
  13. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/tgshops_integrations/nocodb_connector/categories.py +0 -0
  14. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/tgshops_integrations/nocodb_connector/client.py +0 -0
  15. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/tgshops_integrations/nocodb_connector/model_mapping.py +0 -0
  16. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/tgshops_integrations/nocodb_connector/products.py +0 -0
  17. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/tgshops_integrations/nocodb_connector/tables.py +0 -0
  18. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/tgshops_integrations.egg-info/SOURCES.txt +0 -0
  19. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/tgshops_integrations.egg-info/dependency_links.txt +0 -0
  20. {tgshops_integrations-1.1 → tgshops_integrations-1.3}/tgshops_integrations.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tgshops_integrations
3
- Version: 1.1
3
+ Version: 1.3
4
4
  Summary: Library is intended to provide the integration of the external service or CRM system with the TelegramShops/It allows to configure the relationship between NocoDB list of the products used further to display in the shop/As a resultss the products can be synchronized and updated uppon the request.
5
5
  Home-page: https://git.the-devs.com/virtual-shops/shop-system/shop-backend-integrations/integration-library/integration-library
6
6
  Author: Dimi Latoff
@@ -2,7 +2,7 @@ from setuptools import setup,find_packages
2
2
 
3
3
  setup(
4
4
  name='tgshops_integrations',
5
- version='1.1',
5
+ version='1.3',
6
6
  packages=find_packages(),
7
7
  install_requires=[
8
8
  # List your library's dependencies here
@@ -110,39 +110,6 @@ class Gateway(NocodbClient):
110
110
  return product.id
111
111
  return None # Return None if no product is found with the given name
112
112
 
113
- async def create_table_column(self, name: str, table_id: Optional[str] = None):
114
-
115
- #TODO needs to be deleted
116
- BEARER_TOKEN = "jpdxJtyfDXdjbvxKAcIij1HA8HGalgalLLXZ46DV"
117
-
118
- headers = {
119
- "Authorization": f"Bearer {BEARER_TOKEN}"
120
- }
121
- if not table_id:
122
- table_id = self.tables_list[self.config.NOCODB_PRODUCTS]
123
-
124
- response = await self.httpx_client.post(
125
- f"{self.NOCODB_HOST.replace('/api/v2', '/api/v1')}/db/meta/tables/{table_id}/columns",
126
- json={
127
- "column_name": name,
128
- "dt": "character varying",
129
- "dtx": "specificType",
130
- "ct": "varchar(45)",
131
- "clen": 45,
132
- "dtxp": "45",
133
- "dtxs": "",
134
- "altered": 1,
135
- "uidt": "SingleLineText",
136
- "uip": "",
137
- "uicn": "",
138
- "title": name
139
- },
140
- headers=headers
141
- )
142
- logger.info(response.text())
143
-
144
- return response.json()
145
-
146
113
  async def delete_all_products(self):
147
114
  items = await self.product_manager.get_products_v2(offset=0,limit=200)
148
115
  products_table = self.tables_list[self.config.NOCODB_PRODUCTS]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tgshops-integrations
3
- Version: 1.1
3
+ Version: 1.3
4
4
  Summary: Library is intended to provide the integration of the external service or CRM system with the TelegramShops/It allows to configure the relationship between NocoDB list of the products used further to display in the shop/As a resultss the products can be synchronized and updated uppon the request.
5
5
  Home-page: https://git.the-devs.com/virtual-shops/shop-system/shop-backend-integrations/integration-library/integration-library
6
6
  Author: Dimi Latoff