snap-python 0.1.2__py3-none-any.whl → 0.1.3__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.
- snap_python/schemas/store/refresh.py +13 -0
- snap_python/scrape.py +0 -1
- {snap_python-0.1.2.dist-info → snap_python-0.1.3.dist-info}/METADATA +1 -1
- {snap_python-0.1.2.dist-info → snap_python-0.1.3.dist-info}/RECORD +6 -6
- {snap_python-0.1.2.dist-info → snap_python-0.1.3.dist-info}/LICENSE +0 -0
- {snap_python-0.1.2.dist-info → snap_python-0.1.3.dist-info}/WHEEL +0 -0
|
@@ -72,6 +72,12 @@ class StoreRefreshSnap(Snap, SnapRefreshFields):
|
|
|
72
72
|
pass
|
|
73
73
|
|
|
74
74
|
|
|
75
|
+
class RefreshResultError(BaseModel):
|
|
76
|
+
code: str
|
|
77
|
+
message: str
|
|
78
|
+
extra: Optional[dict] = None
|
|
79
|
+
|
|
80
|
+
|
|
75
81
|
class RefreshResultData(BaseModel):
|
|
76
82
|
model_config = ConfigDict(extra="forbid", exclude_unset=True)
|
|
77
83
|
|
|
@@ -98,6 +104,13 @@ class RefreshResultData(BaseModel):
|
|
|
98
104
|
snap_id: str = Field(
|
|
99
105
|
..., alias=AliasChoices("snap-id", "snap_id"), serialization_alias="snap-id"
|
|
100
106
|
)
|
|
107
|
+
error: RefreshResultError | None = None
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def is_error(self) -> bool:
|
|
111
|
+
if self.error:
|
|
112
|
+
return True
|
|
113
|
+
return False
|
|
101
114
|
|
|
102
115
|
|
|
103
116
|
class RefreshRevisionResponse(BaseModel):
|
snap_python/scrape.py
CHANGED
|
@@ -15,11 +15,11 @@ snap_python/schemas/store/json/category_by_name_schema.json,sha256=3-95m6V2WXaPC
|
|
|
15
15
|
snap_python/schemas/store/json/category_schema.json,sha256=c4h_eyyBbChOiNby3hYfjAh9i_1MDbPJnHHU4rGOGss,1898
|
|
16
16
|
snap_python/schemas/store/json/snaps_find_schema.json,sha256=TfKpnievs5QOc7ah97ATMCQTOEfKspONTZnwSwq_0fI,8866
|
|
17
17
|
snap_python/schemas/store/json/snaps_info_schema.json,sha256=udoOovb6Ea7EnE_R9RuZ1CpY1wOJ3-K8xP4-8zKHgrQ,15888
|
|
18
|
-
snap_python/schemas/store/refresh.py,sha256=
|
|
18
|
+
snap_python/schemas/store/refresh.py,sha256=HAlt-rKfy7vmZSCujMXtW9HHXlVYbHGFwy_BKfD1uCU,3190
|
|
19
19
|
snap_python/schemas/store/search.py,sha256=-Fd1G821-V6JVxvbcgfnzXy8VQoWnS9MR1oLdRurqu0,3743
|
|
20
|
-
snap_python/scrape.py,sha256=
|
|
20
|
+
snap_python/scrape.py,sha256=ZDJAROp8jwossaAA78gBFTKQzrfnO11RgyyOZqevNd0,4576
|
|
21
21
|
snap_python/utils.py,sha256=cmUooPg5DzNL197Xxvu7LGD4Gwk3xxsT68wbVytRtV0,1240
|
|
22
|
-
snap_python-0.1.
|
|
23
|
-
snap_python-0.1.
|
|
24
|
-
snap_python-0.1.
|
|
25
|
-
snap_python-0.1.
|
|
22
|
+
snap_python-0.1.3.dist-info/LICENSE,sha256=lYXNZszxC_l2rlBvrHYs-esDegxWh8MKtjrdxA24uOk,1072
|
|
23
|
+
snap_python-0.1.3.dist-info/METADATA,sha256=rnVfkQFtCUJNz5018Yh4_VOwZTTeo1SveVswcZka7bI,1883
|
|
24
|
+
snap_python-0.1.3.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
|
25
|
+
snap_python-0.1.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|