tgshops-integrations 1.1__tar.gz → 1.4__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.
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/PKG-INFO +1 -1
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/setup.py +1 -1
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/middlewares/gateway.py +0 -33
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations.egg-info/PKG-INFO +1 -1
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/README.md +0 -0
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/setup.cfg +0 -0
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/__init__.py +0 -0
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/middlewares/__init__.py +0 -0
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/models/__init__.py +0 -0
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/models/categories.py +0 -0
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/models/products.py +0 -0
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/nocodb_connector/__init__.py +0 -0
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/nocodb_connector/categories.py +0 -0
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/nocodb_connector/client.py +0 -0
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/nocodb_connector/model_mapping.py +0 -0
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/nocodb_connector/products.py +0 -0
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/nocodb_connector/tables.py +0 -0
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations.egg-info/SOURCES.txt +0 -0
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations.egg-info/dependency_links.txt +0 -0
- {tgshops_integrations-1.1 → tgshops_integrations-1.4}/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.
|
3
|
+
Version: 1.4
|
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
|
{tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/middlewares/gateway.py
RENAMED
@@ -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]
|
{tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations.egg-info/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tgshops-integrations
|
3
|
-
Version: 1.
|
3
|
+
Version: 1.4
|
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
|
File without changes
|
File without changes
|
File without changes
|
{tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/middlewares/__init__.py
RENAMED
File without changes
|
{tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/models/__init__.py
RENAMED
File without changes
|
{tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/models/categories.py
RENAMED
File without changes
|
{tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations/models/products.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{tgshops_integrations-1.1 → tgshops_integrations-1.4}/tgshops_integrations.egg-info/top_level.txt
RENAMED
File without changes
|