tgshops-integrations 1.8__tar.gz → 2.0__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/PKG-INFO +1 -1
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/setup.py +1 -1
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations/nocodb_connector/model_mapping.py +3 -2
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations.egg-info/PKG-INFO +1 -1
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/README.md +0 -0
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/setup.cfg +0 -0
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations/__init__.py +0 -0
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations/middlewares/__init__.py +0 -0
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations/middlewares/gateway.py +0 -0
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations/models/__init__.py +0 -0
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations/models/categories.py +0 -0
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations/models/products.py +0 -0
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations/nocodb_connector/__init__.py +0 -0
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations/nocodb_connector/categories.py +0 -0
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations/nocodb_connector/client.py +0 -0
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations/nocodb_connector/products.py +0 -0
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations/nocodb_connector/tables.py +0 -0
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations.egg-info/SOURCES.txt +0 -0
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations.egg-info/dependency_links.txt +0 -0
- {tgshops_integrations-1.8 → tgshops_integrations-2.0}/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:
|
3
|
+
Version: 2.0
|
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
|
@@ -28,7 +28,7 @@ def initialize_model_mapping(config_path):
|
|
28
28
|
global CATEGORY_IMAGE_FIELD, ID_FIELD, CATEGORY_NAME_FIELD, CATEGORY_PARENT_ID_FIELD, CATEGORY_PARENT_FIELD,CATEGORY_ID_OF_CATEGORY_FIELD
|
29
29
|
global PRODUCT_NAME_FIELD, PRODUCT_DESCRIPTION_FIELD, PRODUCT_PRICE_FIELD, PRODUCT_CURRENCY_FIELD, PRODUCT_STOCK_FIELD
|
30
30
|
global PRODUCT_CATEGORY_NAME_FIELD, PRODUCT_CATEGORY_ID_FIELD, PRODUCT_IMAGE_FIELD, PRODUCT_DISCOUNT_PRICE_FIELD
|
31
|
-
global PRODUCT_CATEGORY_ID_LOOKUP_FIELD, PRODUCT_REQUIRED_OPTIONS_FIELD, PRODUCT_CATEGORIES_EXTRA_OPTIONS_FIELD
|
31
|
+
global PRODUCT_CATEGORY_ID_LOOKUP_FIELD,PRODUCT_IMAGES_LOOKUP_FIELD, PRODUCT_REQUIRED_OPTIONS_FIELD, PRODUCT_CATEGORIES_EXTRA_OPTIONS_FIELD
|
32
32
|
global PRODUCT_CATEGORIES_EXTRA_OPTION_NAMES_FIELD, PRODUCT_EXTRA_CHOICE_REQUIRED_FIELD, PRODUCT_ID_FIELD
|
33
33
|
global PRODUCT_EXTERNAL_ID, PRODUCT_CHECKOUT_MODE, NEW_ID_FIELD, NOCODB_CHECKOUT_MODES
|
34
34
|
|
@@ -111,6 +111,7 @@ def dump_product_data(data: ProductModel) -> dict:
|
|
111
111
|
PRODUCT_CURRENCY_FIELD: data.currency,
|
112
112
|
PRODUCT_STOCK_FIELD: data.stock_qty,
|
113
113
|
PRODUCT_CATEGORY_NAME_FIELD:[data.category_name] if data.category_name else None,
|
114
|
+
#TODO category parameter is deprecated
|
114
115
|
PRODUCT_CATEGORY_ID_FIELD: [{'Id': data.category}] if data.category else None,
|
115
116
|
PRODUCT_IMAGE_FIELD: preview_url,
|
116
117
|
PRODUCT_DISCOUNT_PRICE_FIELD: data.final_price
|
@@ -136,7 +137,7 @@ def dump_product_data_with_check(data: ProductModel, data_check: dict) -> dict:
|
|
136
137
|
PRODUCT_CURRENCY_FIELD: data.currency,
|
137
138
|
PRODUCT_STOCK_FIELD: data.stock_qty,
|
138
139
|
PRODUCT_CATEGORY_NAME_FIELD:[data.category_name] if data.category_name else None,
|
139
|
-
PRODUCT_CATEGORY_ID_FIELD: [{'Id': data_check[item]} for item in data.category_name] if data.
|
140
|
+
PRODUCT_CATEGORY_ID_FIELD: [{'Id': data_check[item]} for item in data.category_name] if data.category_name else None,
|
140
141
|
PRODUCT_IMAGE_FIELD: preview_url,
|
141
142
|
PRODUCT_CHECKOUT_MODE: NOCODB_CHECKOUT_MODES,
|
142
143
|
PRODUCT_DISCOUNT_PRICE_FIELD: data.final_price,
|
{tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations.egg-info/PKG-INFO
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tgshops-integrations
|
3
|
-
Version:
|
3
|
+
Version: 2.0
|
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.8 → tgshops_integrations-2.0}/tgshops_integrations/middlewares/__init__.py
RENAMED
File without changes
|
{tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations/middlewares/gateway.py
RENAMED
File without changes
|
{tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations/models/__init__.py
RENAMED
File without changes
|
{tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations/models/categories.py
RENAMED
File without changes
|
{tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations/models/products.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations.egg-info/SOURCES.txt
RENAMED
File without changes
|
File without changes
|
{tgshops_integrations-1.8 → tgshops_integrations-2.0}/tgshops_integrations.egg-info/top_level.txt
RENAMED
File without changes
|