shop_system_models 1.1.0.dev29836__py3-none-any.whl → 1.1.0.dev30197__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.
@@ -0,0 +1,36 @@
1
+ from enum import Enum
2
+ from typing import Optional, List
3
+ from datetime import datetime
4
+ from pydantic import BaseModel
5
+
6
+ from shop_system_models.shared import ListResponseModel
7
+
8
+
9
+ class ScrappingPayload(BaseModel):
10
+ website_url: str
11
+ business_description: Optional[str] = None
12
+
13
+
14
+ class ScrappingJobStatus(str, Enum):
15
+ parsing_started = 'parsing_started'
16
+ parsing_completed = 'parsing_completed'
17
+ parsing_failed = 'parsing_failed'
18
+
19
+ import_started = 'import_started'
20
+ import_completed = 'import_completed'
21
+ import_failed = 'import_failed'
22
+
23
+ class ScrappingJob(ScrappingPayload):
24
+ workflow_id: str
25
+ research_url: Optional[str] = None
26
+ status: ScrappingJobStatus
27
+ created_at: datetime
28
+ updated_at: datetime
29
+
30
+
31
+ class ScrappingJobResponse(ScrappingJob):
32
+ id: str
33
+
34
+
35
+ class JobListResponseModel(ListResponseModel):
36
+ jobs: List[ScrappingJobResponse]
@@ -37,6 +37,4 @@ class ShopDetailsModel(BaseModel):
37
37
 
38
38
  topic_chat_id: Optional[int] = None
39
39
  premium_expiration_date: Optional[datetime] = None
40
- web_app_url: str
41
-
42
- weekly_reports: Optional[bool] = True
40
+ web_app_url: str
@@ -0,0 +1,13 @@
1
+ from pydantic import BaseModel
2
+
3
+
4
+ class PageInfo(BaseModel):
5
+ total_rows: int
6
+ page: int
7
+ page_size: int
8
+ is_first_page: bool
9
+ is_last_page: bool
10
+
11
+
12
+ class ListResponseModel(BaseModel):
13
+ page_info: PageInfo
@@ -0,0 +1,11 @@
1
+ from pydantic import BaseModel
2
+
3
+ class PageInfo(BaseModel):
4
+ total_rows: int
5
+ page: int
6
+ page_size: int
7
+ is_first_page: bool
8
+ is_last_page: bool
9
+
10
+ class ListResponseModel(BaseModel):
11
+ page_info: PageInfo
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: shop_system_models
3
- Version: 1.1.0.dev29836
3
+ Version: 1.1.0.dev30197
4
4
  Summary: Shared model definitions for shop system services
5
5
  Author: Pavel Mulin
6
6
  Author-email: pavel@tg-shops.com
@@ -18,9 +18,12 @@ shop_system_models/deployment_api/request/premium.py,sha256=PrK_WBDgeBKyG-E3c71Y
18
18
  shop_system_models/deployment_api/request/processes.py,sha256=gaY1PL7kFbE6E_iDOJgEqIUXAFY01wuNBV3mbe6hVrA,316
19
19
  shop_system_models/deployment_api/request/servers.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  shop_system_models/deployment_api/request/services.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
- shop_system_models/deployment_api/shared.py,sha256=xWrS26YHIJJ1q5J7rbd-j3f07mOWGNI1kMddKkV3_aA,1113
21
+ shop_system_models/deployment_api/scrapping_jobs.py,sha256=nhdLj_9g4i58CVAxkuZ1Qz1T7gkdTDM7Tu9dpZ-ePZY,878
22
+ shop_system_models/deployment_api/shared.py,sha256=8xweJ8Wqe72oZTEVdClZkfXdlGRbKhCOBKXuQOqM-dk,1070
22
23
  shop_system_models/deployment_api/users.py,sha256=R35Xi201PWwKUovqOC-D0GiXmB7xF6Q8eF4I41H97pM,1022
23
24
  shop_system_models/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
+ shop_system_models/shared.py,sha256=9zVthC2-wCjtWDy9bJGQXhT-dENxpBOg6SekfIMGL-4,221
26
+ shop_system_models/shared.pyi,sha256=iHDx1O7R_0L3ou1hgFRBFVSS0iAiRmguJy07_bDGCg0,220
24
27
  shop_system_models/shop_api/__init__.py,sha256=jzSxNJuK5ODw451Jx1BhDt_Dyh1fC1jnstICZ5dOrLo,206
25
28
  shop_system_models/shop_api/__init__.pyi,sha256=iKEzD4j101gPfFRfbkx1s9Yi46pNMbWzgfJE32BuW0g,83
26
29
  shop_system_models/shop_api/bot/__init__.py,sha256=q8Pjc0PxPPMoRl9yQJWUs4egyEGsdqUC8iaLHn6LA7U,46
@@ -57,6 +60,6 @@ shop_system_models/shop_api/shop/response/payment_methods.py,sha256=gSb5zU_8LX4x
57
60
  shop_system_models/shop_api/shop/response/products.py,sha256=_r5ZZwJJe4iYht4yIu266xsm1U_zQeSFkj5P3P6Y9Oo,1275
58
61
  shop_system_models/shop_api/shop/response/review.py,sha256=k5jzgS1HinyjbGfR6gnJENB5WufAedsMS77-vZm6fdw,486
59
62
  shop_system_models/shop_api/shop/response/users.py,sha256=gdvgkEHPS__8llns1rIyPzC5lEulnedv9C2EPXxH9MI,241
60
- shop_system_models-1.1.0.dev29836.dist-info/METADATA,sha256=0qQMe2gRWBI0I_uTl8521vrb2U4IV5Y6mws9Xn4v0p8,978
61
- shop_system_models-1.1.0.dev29836.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
62
- shop_system_models-1.1.0.dev29836.dist-info/RECORD,,
63
+ shop_system_models-1.1.0.dev30197.dist-info/METADATA,sha256=SKvOAIzW8_oGdqetD6M1PQj-kvbebscbcXrx29Va19E,978
64
+ shop_system_models-1.1.0.dev30197.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
65
+ shop_system_models-1.1.0.dev30197.dist-info/RECORD,,