shop_system_models 0.0.1.dev26576__py3-none-any.whl → 0.0.1.dev26587__py3-none-any.whl

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.
@@ -29,8 +29,8 @@ class ShopDetailsModel(BaseModel):
29
29
  nocodb_orders_table: str
30
30
  nocodb_status_table: str
31
31
  nocodb_bot_commands_table: str
32
- nocodb_options_table: Optional[str] = ""
33
- nocodb_options_category_table: Optional[str] = ""
32
+ nocodb_options_table: Optional[str] = None
33
+ nocodb_options_category_table: Optional[str] = None
34
34
  topic_chat_id: Optional[int] = None
35
35
  premium_expiration_date: Optional[datetime] = None
36
36
  web_app_url: str = ""
@@ -13,7 +13,7 @@ class ExtraFieldPayload(MetaBaseModel):
13
13
  value: str
14
14
 
15
15
 
16
- class OrderDeliveryTypeModel(MetaBaseModel):
16
+ class OrderDeliveryTypeModel(BaseModel):
17
17
  """Model for order delivery details."""
18
18
  name: str
19
19
  address: Optional[str] = ""
@@ -5,7 +5,7 @@ from shop_system_models.shop_api.shop.response.orders import (
5
5
  OrderListResponseModel,
6
6
  DeliveryTypeResponseModel,
7
7
  )
8
- from shop_system_models.shop_api.shop.response.pagination import (
8
+ from shop_system_models.shop_api.shop.response.products import (
9
9
  PaginationResponseModel,
10
10
  PartialPaginationResponseModel,
11
11
  )
@@ -1,9 +1,10 @@
1
1
  from typing import List, Optional
2
2
  from pydantic import Field
3
+ from pydantic import BaseModel
3
4
 
4
5
  from shop_system_models.shop_api import MetaBaseModel
5
6
  from shop_system_models.shop_api.shop.request.orders import OrderModel, DeliveryTypeModel
6
- from shop_system_models.shop_api.shop.response.pagination import PaginationResponseModel
7
+ from shop_system_models.shop_api.shop.response.products import PaginationResponseModel
7
8
 
8
9
 
9
10
  class OrderResponseModel(OrderModel):
@@ -11,7 +12,7 @@ class OrderResponseModel(OrderModel):
11
12
  id: str
12
13
 
13
14
 
14
- class OrderListResponseModel(MetaBaseModel):
15
+ class OrderListResponseModel(BaseModel):
15
16
  """Response model for a list of orders."""
16
17
  orders: List[OrderResponseModel]
17
18
  page_info: PaginationResponseModel
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: shop_system_models
3
- Version: 0.0.1.dev26576
3
+ Version: 0.0.1.dev26587
4
4
  Summary: Shared model definitions for shop system services
5
5
  Author: Pavel Mulin
6
6
  Author-email: pavel@tg-shops.com
@@ -39,25 +39,24 @@ shop_system_models/shop_api/shop/request/__init__.py,sha256=kFEy1H52PuduvkyKZtFe
39
39
  shop_system_models/shop_api/shop/request/baskets.py,sha256=pQsnXoekis2_5aZYmktUa5YAp3vCAv5MNpD1wBTtDsM,1123
40
40
  shop_system_models/shop_api/shop/request/categories.py,sha256=Z5BTycKC3rQfBP5GI2s3VpxaGxJ3DstfwmJpgF8EVXw,626
41
41
  shop_system_models/shop_api/shop/request/coupons.py,sha256=9TigEAUKie8Rdg38llkQ6oSRl3aWzppJd1FvWEllolI,1537
42
- shop_system_models/shop_api/shop/request/details.py,sha256=feEXf54mdeNtcQS2YSI6fv3W3cCYXaEA5PT-dLgOmL0,1043
43
- shop_system_models/shop_api/shop/request/orders.py,sha256=2rOZrngpxT-p1M0BBbGszR7IRuRiG7wNe-ig65GwjBI,4530
42
+ shop_system_models/shop_api/shop/request/details.py,sha256=6cWi5jKpLP9gKQkNryCOkuuB_MU6dZTwXnKgTQ6QOkw,1047
43
+ shop_system_models/shop_api/shop/request/orders.py,sha256=7zG7SSSN0auhSGSkrru6uoNtxCRg7HzMBMhvTDPNnvI,4526
44
44
  shop_system_models/shop_api/shop/request/payment_methods.py,sha256=KnHM0nz9lp3J8vQ36QIra_jEiaF2uEipNnKKYKsFD6g,388
45
45
  shop_system_models/shop_api/shop/request/products.py,sha256=LKIxg0OcmD-uGK9DkuCVJzOgqOv3LWmCa2W5c-uX0os,1076
46
46
  shop_system_models/shop_api/shop/request/review.py,sha256=jZOaKx2cPymXnd2RjWKnKZZvSHljYDG3VdyPSWAi54o,270
47
47
  shop_system_models/shop_api/shop/request/shop.py,sha256=oGr1Fn68Nx7JqNVKKYjNNGB0vfdPMkIl1rCrar9M-Ps,767
48
- shop_system_models/shop_api/shop/response/__init__.py,sha256=5iSrs2IyHDlQtVnZHxn1FUXkJE82Zg80ECXGPvOUuwE,333
48
+ shop_system_models/shop_api/shop/response/__init__.py,sha256=nHqHsalzue_XbOHRcGu6G9lOcj0047MS030pbzCzjx8,331
49
49
  shop_system_models/shop_api/shop/response/basic.py,sha256=-RzTETvhIaOBR9TGRXGMHznlDtUKqvpBsm5JOtZ_9Nw,87
50
50
  shop_system_models/shop_api/shop/response/baskets.py,sha256=Yg2Etwxu-91mpzojO_zI16A2agBD7Bm2mOay1BAH0Bw,860
51
51
  shop_system_models/shop_api/shop/response/categories.py,sha256=TCOTNOkFczVjsnUQ_gdTM1JjQVlkav7xce6ZTWWqVOA,851
52
52
  shop_system_models/shop_api/shop/response/coupons.py,sha256=bNh4okw0kWBBEPBUyd4h5ZqfXXcdaIUv3ZSYRdsuuYI,433
53
53
  shop_system_models/shop_api/shop/response/extra_product_options.py,sha256=YaH4o7fPNwDnkyXABdFXySdx4C3udyFizzqCrvJ4t4c,599
54
54
  shop_system_models/shop_api/shop/response/initialization_data.py,sha256=F29pCrajXIA-6xdYzqWudnygLGBIrk4wUUHPqbahWpE,884
55
- shop_system_models/shop_api/shop/response/orders.py,sha256=FuBRBWTWYhFsYsMbS-PQ-DbssaMSJEzR7jmMHuTF9k4,674
56
- shop_system_models/shop_api/shop/response/pagination.py,sha256=UrjcwPSoesZpZETori6MlNRNEupbn0OIH3NlfSK4CNE,453
55
+ shop_system_models/shop_api/shop/response/orders.py,sha256=4Mprkcq_Q8fK2cv4HvMpAkGRimPh3Jf85aZKXfI4Mf8,699
57
56
  shop_system_models/shop_api/shop/response/payment_methods.py,sha256=gSb5zU_8LX4x4gtqfC_it1jFxJ7i-XxNNd15ho54VhQ,371
58
57
  shop_system_models/shop_api/shop/response/products.py,sha256=_r5ZZwJJe4iYht4yIu266xsm1U_zQeSFkj5P3P6Y9Oo,1275
59
58
  shop_system_models/shop_api/shop/response/review.py,sha256=k5jzgS1HinyjbGfR6gnJENB5WufAedsMS77-vZm6fdw,486
60
59
  shop_system_models/shop_api/shop/response/users.py,sha256=DdZOTxGxQdxEg1yZi4v4mm8V8O0pV6K7zc6DWylLrMY,141
61
- shop_system_models-0.0.1.dev26576.dist-info/METADATA,sha256=pDICq8YEAaZbCCsqbxgzuP2B-lWaVGHDKQFDGQ3LaOo,978
62
- shop_system_models-0.0.1.dev26576.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
63
- shop_system_models-0.0.1.dev26576.dist-info/RECORD,,
60
+ shop_system_models-0.0.1.dev26587.dist-info/METADATA,sha256=0FvdkCqAKz8wZHUOHgoFlY9ZB5yjt_UKPRySrvZ3eu8,978
61
+ shop_system_models-0.0.1.dev26587.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
62
+ shop_system_models-0.0.1.dev26587.dist-info/RECORD,,
@@ -1,17 +0,0 @@
1
- from typing import Optional, List, Dict, Any
2
- from pydantic import Field
3
-
4
- from shop_system_models.shop_api import MetaBaseModel
5
-
6
-
7
- class PartialPaginationResponseModel(MetaBaseModel):
8
- """Base pagination information."""
9
- total_rows: int
10
- is_first_page: bool
11
- is_last_page: bool
12
-
13
-
14
- class PaginationResponseModel(PartialPaginationResponseModel):
15
- """Complete pagination information with page and page size."""
16
- page: int
17
- page_size: int