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.
@@ -32,7 +32,7 @@ class EntityResponseDto(BaseModel):
32
32
 
33
33
 
34
34
  class NotionEntityUpdateDto(BaseModel):
35
- icon: File | None = None
35
+ icon: Icon | None = None
36
36
  cover: File | None = None
37
37
  in_trash: bool | None = None
38
38
 
@@ -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 File
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.1
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=SpcpWnNYmhjsVhR66bRCst68YU7IJk52f9x66L_V0Ic,1072
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=XGkNmMA13iDkLeMo0cpz2t7JwxEnXfxEeSvJs3OisJo,402
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.1.dist-info/METADATA,sha256=x90BZ_8tVBFl3h_MIIsLGlgIVMB4goibglGxA91nxUs,6493
234
- notionary-0.4.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
235
- notionary-0.4.1.dist-info/licenses/LICENSE,sha256=FLNy3l12swSnCggq3zOW_3gh4uaZ12DGZL1tR6Bc5Sk,1102
236
- notionary-0.4.1.dist-info/RECORD,,
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,,