notionary 0.4.1__py3-none-any.whl → 0.4.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.
@@ -152,9 +152,7 @@ class PagePropertyHttpClient(NotionHttpClient):
152
152
  select_option = SelectOption(name=str(value))
153
153
  return PageSelectProperty(id=property_id, select=select_option)
154
154
  elif property_type == PageMultiSelectProperty:
155
- multi_select_options = [
156
- SelectOption(id="", name=str(item)) for item in value
157
- ]
155
+ multi_select_options = [SelectOption(name=str(item)) for item in value]
158
156
  return PageMultiSelectProperty(
159
157
  id=property_id, multi_select=multi_select_options
160
158
  )
@@ -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.3
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>
@@ -194,7 +194,7 @@ notionary/page/content/syntax/definition/registry.py,sha256=RDmy4qbHBn4dhQ-lm9zJ
194
194
  notionary/page/content/syntax/prompts/__init__.py,sha256=HwKOnjRf3u8-zBUpKXSwrd1f1o5_wb0tNXdrYnFWUr8,140
195
195
  notionary/page/content/syntax/prompts/models.py,sha256=it51evqp8b6zuz04Yz8bb7g0-6O_1ZwB5EXyQ2ItGx8,247
196
196
  notionary/page/content/syntax/prompts/registry.py,sha256=kRAQWpu9LfahMza4bLv4sGY6Lbp5KqeuthG9Av1FPR4,33556
197
- notionary/page/properties/client.py,sha256=WiFY-60QzxDg3jtwlDECBwDbOEncPLkwi5uQNsj2Ou8,7046
197
+ notionary/page/properties/client.py,sha256=CE1PGkpPRzWUjGIiUUEDzJvuZEYuggf0LtwOTXhA53I,7007
198
198
  notionary/page/properties/factory.py,sha256=HKrRsWUTqhyQGsxt1W1z3rCjpU7VYqtV6MWJcvvgQU8,1296
199
199
  notionary/page/properties/schemas.py,sha256=0QOgbtJYsAI8oVnp6ZNgHhiJqRHWRRDpD8B8oYPCUKo,8548
200
200
  notionary/page/properties/service.py,sha256=e46oFlnVkYXRIlGqRwhndnWNXXgwAZY9wroTXAH9d9w,13978
@@ -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=jYM-uJFLZnxMzHaRna1lyu9P_B7OFmfTIOichY5MZUE,471
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.3.dist-info/METADATA,sha256=wzUUA2dZbkBN_Buc5BYz3leBze8VT2xf2HbmopUM7R4,6493
234
+ notionary-0.4.3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
235
+ notionary-0.4.3.dist-info/licenses/LICENSE,sha256=FLNy3l12swSnCggq3zOW_3gh4uaZ12DGZL1tR6Bc5Sk,1102
236
+ notionary-0.4.3.dist-info/RECORD,,