shop_system_models 1.1.0.dev30198__py3-none-any.whl → 1.1.0.dev30200__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.
- shop_system_models/deployment_api/__init__.pyi +0 -0
- shop_system_models/deployment_api/scrapping_jobs.pyi +26 -0
- shop_system_models/deployment_api/shared.pyi +34 -0
- shop_system_models/deployment_api/users.pyi +37 -0
- {shop_system_models-1.1.0.dev30198.dist-info → shop_system_models-1.1.0.dev30200.dist-info}/METADATA +1 -1
- {shop_system_models-1.1.0.dev30198.dist-info → shop_system_models-1.1.0.dev30200.dist-info}/RECORD +7 -3
- {shop_system_models-1.1.0.dev30198.dist-info → shop_system_models-1.1.0.dev30200.dist-info}/WHEEL +0 -0
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
from datetime import datetime
|
2
|
+
from enum import Enum
|
3
|
+
from pydantic import BaseModel
|
4
|
+
from shop_system_models.shared import ListResponseModel as ListResponseModel
|
5
|
+
|
6
|
+
class ScrappingPayload(BaseModel):
|
7
|
+
website_url: str
|
8
|
+
business_description: str | None
|
9
|
+
|
10
|
+
class ScrappingJobStatus(str, Enum):
|
11
|
+
started = 'started'
|
12
|
+
completed = 'completed'
|
13
|
+
failed = 'failed'
|
14
|
+
|
15
|
+
class ScrappingJob(ScrappingPayload):
|
16
|
+
workflow_id: str
|
17
|
+
research_url: str | None
|
18
|
+
status: ScrappingJobStatus
|
19
|
+
created_at: datetime
|
20
|
+
updated_at: datetime
|
21
|
+
|
22
|
+
class ScrappingJobResponse(ScrappingJob):
|
23
|
+
id: str
|
24
|
+
|
25
|
+
class JobListResponseModel(ListResponseModel):
|
26
|
+
jobs: list[ScrappingJobResponse]
|
@@ -0,0 +1,34 @@
|
|
1
|
+
from datetime import datetime
|
2
|
+
from pydantic import BaseModel
|
3
|
+
|
4
|
+
class NocoDBConfig(BaseModel):
|
5
|
+
nocodb_project_id: str
|
6
|
+
nocodb_categories_table: str
|
7
|
+
nocodb_products_table: str
|
8
|
+
nocodb_orders_table: str
|
9
|
+
nocodb_status_table: str
|
10
|
+
nocodb_bot_commands_table: str
|
11
|
+
nocodb_options_table: str | None
|
12
|
+
nocodb_options_category_table: str | None
|
13
|
+
|
14
|
+
class ShopDetailsModel(BaseModel):
|
15
|
+
shop_id: str
|
16
|
+
shop_name: str
|
17
|
+
friendly_name: str
|
18
|
+
shop_language: str
|
19
|
+
shop_api_url: str
|
20
|
+
contact_phone: str | None
|
21
|
+
contact_email: str
|
22
|
+
orders_chat_id: int
|
23
|
+
orders_history_chat_id: int | None
|
24
|
+
search_enabled: bool | None
|
25
|
+
warehouse_accounting: bool
|
26
|
+
bot_url: str | None
|
27
|
+
bot_token: str
|
28
|
+
payment_token: str | None
|
29
|
+
placeholder: str
|
30
|
+
order_process: str
|
31
|
+
nocodb_config: NocoDBConfig | None
|
32
|
+
topic_chat_id: int | None
|
33
|
+
premium_expiration_date: datetime | None
|
34
|
+
web_app_url: str
|
@@ -0,0 +1,37 @@
|
|
1
|
+
from pydantic import BaseModel
|
2
|
+
|
3
|
+
class UserHeadersUpdatingModel(BaseModel):
|
4
|
+
tg_id: int
|
5
|
+
first_name: str | None
|
6
|
+
last_name: str | None
|
7
|
+
tg_language: str | None
|
8
|
+
username: str | None
|
9
|
+
|
10
|
+
class UserModel(UserHeadersUpdatingModel):
|
11
|
+
password: str | None
|
12
|
+
preview_url: str | None
|
13
|
+
rights: str
|
14
|
+
delivery_addresses: list[str] | None
|
15
|
+
|
16
|
+
class ReferralUser(BaseModel):
|
17
|
+
tg_id: int
|
18
|
+
first_name: str
|
19
|
+
last_name: str | None
|
20
|
+
username: str | None
|
21
|
+
|
22
|
+
class InvitedUser(ReferralUser):
|
23
|
+
tg_language: str | None
|
24
|
+
language: str | None
|
25
|
+
|
26
|
+
class UserDeploymentModel(BaseModel):
|
27
|
+
id: str
|
28
|
+
first_name: str
|
29
|
+
last_name: str | None
|
30
|
+
username: str | None
|
31
|
+
tg_id: int
|
32
|
+
tg_language: str
|
33
|
+
invited_by_id: str | None
|
34
|
+
invited_by_user: ReferralUser | None
|
35
|
+
roles: list[str] | None
|
36
|
+
shops_available: int
|
37
|
+
invited_users: list[InvitedUser] | None
|
{shop_system_models-1.1.0.dev30198.dist-info → shop_system_models-1.1.0.dev30200.dist-info}/RECORD
RENAMED
@@ -11,6 +11,7 @@ shop_system_models/consts/messages/locales/en.json,sha256=kKA3Q1raL4aojC-m484H22
|
|
11
11
|
shop_system_models/consts/messages/locales/ru.json,sha256=2WUpor_Rui6xPXTspYXNDijoVltCgl0re2mUiWtz-o8,7049
|
12
12
|
shop_system_models/consts/messages/mapping.py,sha256=ud_qJCfWYGUNyztSWj7jjR1ZVqn4AFdO_pQzjeskv_k,952
|
13
13
|
shop_system_models/deployment_api/__init__.py,sha256=hkfYuImAeOVE7d3y9VbuMY9AY9GCaz4a5GhAig-sqBc,22
|
14
|
+
shop_system_models/deployment_api/__init__.pyi,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
14
15
|
shop_system_models/deployment_api/request/authorization.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
15
16
|
shop_system_models/deployment_api/request/bot.py,sha256=URJzYawioh0zxEw2lpF0XprpPi2hLFoIoA3MXMadlAo,232
|
16
17
|
shop_system_models/deployment_api/request/nocodb.py,sha256=_2ri01vBKcNlSqhYZXdchmPclhNZXp1czEMuXauIQ3w,478
|
@@ -19,8 +20,11 @@ shop_system_models/deployment_api/request/processes.py,sha256=gaY1PL7kFbE6E_iDOJ
|
|
19
20
|
shop_system_models/deployment_api/request/servers.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
20
21
|
shop_system_models/deployment_api/request/services.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
22
|
shop_system_models/deployment_api/scrapping_jobs.py,sha256=1718io1nPj0RHSgeV8ImVpexc-AXhh9y8gCZvLIz_mc,713
|
23
|
+
shop_system_models/deployment_api/scrapping_jobs.pyi,sha256=Wij947akIApSH95MCK6fttrYBMRPd69HPQJcHI2JxW0,676
|
22
24
|
shop_system_models/deployment_api/shared.py,sha256=8xweJ8Wqe72oZTEVdClZkfXdlGRbKhCOBKXuQOqM-dk,1070
|
25
|
+
shop_system_models/deployment_api/shared.pyi,sha256=PWxbMaUwi6-rB2vLT9M-scLTGfAKvnOnibxXSDoniuM,931
|
23
26
|
shop_system_models/deployment_api/users.py,sha256=R35Xi201PWwKUovqOC-D0GiXmB7xF6Q8eF4I41H97pM,1022
|
27
|
+
shop_system_models/deployment_api/users.pyi,sha256=Vv15K7-ICPzf-hT-k0hltG3nu6Wr7oIymk85ETv9tiM,881
|
24
28
|
shop_system_models/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
25
29
|
shop_system_models/shared.py,sha256=9zVthC2-wCjtWDy9bJGQXhT-dENxpBOg6SekfIMGL-4,221
|
26
30
|
shop_system_models/shared.pyi,sha256=iHDx1O7R_0L3ou1hgFRBFVSS0iAiRmguJy07_bDGCg0,220
|
@@ -60,6 +64,6 @@ shop_system_models/shop_api/shop/response/payment_methods.py,sha256=gSb5zU_8LX4x
|
|
60
64
|
shop_system_models/shop_api/shop/response/products.py,sha256=_r5ZZwJJe4iYht4yIu266xsm1U_zQeSFkj5P3P6Y9Oo,1275
|
61
65
|
shop_system_models/shop_api/shop/response/review.py,sha256=k5jzgS1HinyjbGfR6gnJENB5WufAedsMS77-vZm6fdw,486
|
62
66
|
shop_system_models/shop_api/shop/response/users.py,sha256=gdvgkEHPS__8llns1rIyPzC5lEulnedv9C2EPXxH9MI,241
|
63
|
-
shop_system_models-1.1.0.
|
64
|
-
shop_system_models-1.1.0.
|
65
|
-
shop_system_models-1.1.0.
|
67
|
+
shop_system_models-1.1.0.dev30200.dist-info/METADATA,sha256=dgrzgX8vuTCfrPlko4eHfMX2xfAlw91jtXXOxjKI4OQ,978
|
68
|
+
shop_system_models-1.1.0.dev30200.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
69
|
+
shop_system_models-1.1.0.dev30200.dist-info/RECORD,,
|
{shop_system_models-1.1.0.dev30198.dist-info → shop_system_models-1.1.0.dev30200.dist-info}/WHEEL
RENAMED
File without changes
|