notionary 0.4.1__py3-none-any.whl → 0.4.2__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.
- notionary/shared/entity/schemas.py +1 -1
- notionary/shared/models/icon.py +6 -4
- {notionary-0.4.1.dist-info → notionary-0.4.2.dist-info}/METADATA +1 -1
- {notionary-0.4.1.dist-info → notionary-0.4.2.dist-info}/RECORD +6 -6
- {notionary-0.4.1.dist-info → notionary-0.4.2.dist-info}/WHEEL +0 -0
- {notionary-0.4.1.dist-info → notionary-0.4.2.dist-info}/licenses/LICENSE +0 -0
notionary/shared/models/icon.py
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
from enum import StrEnum
|
|
2
|
-
from typing import Literal
|
|
2
|
+
from typing import Annotated, Literal
|
|
3
3
|
|
|
4
|
-
from pydantic import BaseModel
|
|
4
|
+
from pydantic import BaseModel, Field
|
|
5
5
|
|
|
6
|
-
from notionary.shared.models.file import
|
|
6
|
+
from notionary.shared.models.file import (
|
|
7
|
+
File,
|
|
8
|
+
)
|
|
7
9
|
|
|
8
10
|
|
|
9
11
|
class IconType(StrEnum):
|
|
@@ -18,4 +20,4 @@ class EmojiIcon(BaseModel):
|
|
|
18
20
|
emoji: str
|
|
19
21
|
|
|
20
22
|
|
|
21
|
-
type Icon = EmojiIcon | File
|
|
23
|
+
type Icon = Annotated[EmojiIcon | File, Field(discriminator="type")]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: notionary
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: Python library for programmatic Notion workspace management - databases, pages, and content with advanced Markdown support
|
|
5
5
|
Project-URL: Homepage, https://github.com/mathisarends/notionary
|
|
6
6
|
Author-email: Mathis Arends <mathisarends27@gmail.com>
|
|
@@ -202,10 +202,10 @@ notionary/shared/typings.py,sha256=LKg_NJvqi0ZuyB6I995zg4XCyijGKY0T_bW90YiI5_g,5
|
|
|
202
202
|
notionary/shared/entity/client.py,sha256=tM2jUnYaEUfn0XDA0fZeKYww3bhNviCx6zmjYOzJjzs,1216
|
|
203
203
|
notionary/shared/entity/dto_parsers.py,sha256=xTrxdpecslDdt10bJYjQrHH3eP6YkuMYWcI8lxSMwXA,612
|
|
204
204
|
notionary/shared/entity/entity_metadata_update_client.py,sha256=aDRq1jEJ2WrJZ9f2CJiJ8GSaGftFiftMM2ZHjs7xynY,2456
|
|
205
|
-
notionary/shared/entity/schemas.py,sha256=
|
|
205
|
+
notionary/shared/entity/schemas.py,sha256=0p5ONgWX2Lg-bQlZ4Smp8k9OnwBUphIPv2TovzZrxao,1072
|
|
206
206
|
notionary/shared/entity/service.py,sha256=W7MkZmrjDVbeohmDE_DP0YUYwOkhFkeH2u7XbmrgKj4,10145
|
|
207
207
|
notionary/shared/models/file.py,sha256=chZzEWC-3yhEabYuF4xoRSy8-CJ3bX9NBupCqpsTmqQ,1154
|
|
208
|
-
notionary/shared/models/icon.py,sha256=
|
|
208
|
+
notionary/shared/models/icon.py,sha256=cnkd0_eQqOhfuFkusqubehrupABJtuZC-xYrRBIs0JE,469
|
|
209
209
|
notionary/shared/models/parent.py,sha256=fptJhWHot35jN9IH9BhsXNMZfNClc8av1G2TR6SqRmY,888
|
|
210
210
|
notionary/shared/properties/type.py,sha256=04KNeWGzphJ2hN6AbVhfDfF89XxtSGzcmnatcPHkEQI,780
|
|
211
211
|
notionary/user/__init__.py,sha256=O1sa9EPnJKZgpEAARJhzgh0ULqmwB-JNIgoPUCwDGMo,111
|
|
@@ -230,7 +230,7 @@ notionary/workspace/query/__init__.py,sha256=qK-D7DVUpAeil6hQBJ0Cyi2m-nCcz5TA5qs
|
|
|
230
230
|
notionary/workspace/query/builder.py,sha256=0QV0OHAWIU0O5tXOeTQFKKNNmwaC81nLk_ecHrxdokE,2887
|
|
231
231
|
notionary/workspace/query/models.py,sha256=isebZ9wyvj75C65nhw3VsuJygyZmgZBNX8D5VOf3TAM,1851
|
|
232
232
|
notionary/workspace/query/service.py,sha256=hDxuOfKtyWwrDI3Pip0Sip9VNFyxsbc3Ur9VsC25wrY,5265
|
|
233
|
-
notionary-0.4.
|
|
234
|
-
notionary-0.4.
|
|
235
|
-
notionary-0.4.
|
|
236
|
-
notionary-0.4.
|
|
233
|
+
notionary-0.4.2.dist-info/METADATA,sha256=bW3TV-QgeHBJlcVDuvcaFOLVLZ0V4kpQXc2-rj0_gXA,6493
|
|
234
|
+
notionary-0.4.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
235
|
+
notionary-0.4.2.dist-info/licenses/LICENSE,sha256=FLNy3l12swSnCggq3zOW_3gh4uaZ12DGZL1tR6Bc5Sk,1102
|
|
236
|
+
notionary-0.4.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|