cs-models 0.0.667__py3-none-any.whl → 0.0.668__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.

Potentially problematic release.


This version of cs-models might be problematic. Click here for more details.

@@ -3,6 +3,9 @@ from marshmallow import (
3
3
  fields,
4
4
  validate,
5
5
  )
6
+ from ..WorkbookBlock.schemas import (
7
+ WorkbookBlockResourceSchema,
8
+ )
6
9
 
7
10
 
8
11
  class WorkbookResourceSchema(Schema):
@@ -11,6 +14,11 @@ class WorkbookResourceSchema(Schema):
11
14
  id = fields.Integer(dump_only=True)
12
15
  user_id = fields.String(required=True, validate=not_blank)
13
16
  workbook_name = fields.String(required=True)
17
+ blocks = fields.Nested(
18
+ WorkbookBlockResourceSchema(exclude=("workbook_id",)),
19
+ many=True,
20
+ dump_only=True,
21
+ )
14
22
  is_deleted = fields.Boolean(allow_none=True)
15
23
  created_at = fields.DateTime(required=True)
16
24
  updated_at = fields.DateTime(dump_only=True)
@@ -1,5 +1,8 @@
1
1
  """Marshmallow Schema for AssistantCommand."""
2
2
  from marshmallow import Schema, fields
3
+ from ..WorkbookBlockComment.schemas import (
4
+ WorkbookBlockCommentResourceSchema,
5
+ )
3
6
 
4
7
 
5
8
  class WorkbookBlockResourceSchema(Schema):
@@ -10,6 +13,11 @@ class WorkbookBlockResourceSchema(Schema):
10
13
  sequence_number = fields.Integer(required=True)
11
14
  block_type = fields.String(required=True)
12
15
  block_data = fields.String(allow_none=True)
16
+ comments = fields.Nested(
17
+ WorkbookBlockCommentResourceSchema(exclude=("block_id",)),
18
+ many=True,
19
+ dump_only=True,
20
+ )
13
21
  is_deleted = fields.Boolean(allow_none=True)
14
22
  created_at = fields.DateTime(dump_only=True)
15
23
  updated_at = fields.DateTime(dump_only=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: cs-models
3
- Version: 0.0.667
3
+ Version: 0.0.668
4
4
  Summary: MySQL db models
5
5
  Home-page: https://github.com/mindgram/cs-models
6
6
  Author: Shrey Verma
@@ -1052,10 +1052,10 @@ cs_models/resources/Watchlist/models.py,sha256=YpuJCjfZvgtK_uHJieJGAyIeC-B1Zxb-w
1052
1052
  cs_models/resources/Watchlist/schemas.py,sha256=2VLCMjiOA73pp_mtjo9kmWpgpOuXOCmlSQNwe39s8qw,1818
1053
1053
  cs_models/resources/Workbook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1054
1054
  cs_models/resources/Workbook/models.py,sha256=6sj9VhKTCnBL32_pkwUqfE9ESBRu1oCL2cpQn7bxlv8,822
1055
- cs_models/resources/Workbook/schemas.py,sha256=4gqGGN5KthKoqAYmL6QnRKMX-gGH-x61-XInNZQyTzM,475
1055
+ cs_models/resources/Workbook/schemas.py,sha256=xcNoPzHK6ER06XA3fAvX3x7VtX47aBP0vrIqiJvUVKw,688
1056
1056
  cs_models/resources/WorkbookBlock/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1057
1057
  cs_models/resources/WorkbookBlock/models.py,sha256=tYxYRt6210QdvgUldtmy3p3-srlVuEBZU2yCT01Xnag,1467
1058
- cs_models/resources/WorkbookBlock/schemas.py,sha256=ETbgr7qkpVlX-A0r6aTnDoRLyfoveYMvoQ1KrO3aRAc,565
1058
+ cs_models/resources/WorkbookBlock/schemas.py,sha256=vL5zIVn8qafa99hrDfQj7FT2mca53L80C_hWiDbQhLo,798
1059
1059
  cs_models/resources/WorkbookBlockComment/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1060
1060
  cs_models/resources/WorkbookBlockComment/models.py,sha256=t1dLdweoPOzld1uBqrGJ3rrr66UkMwdiplNZEA1WtPU,1251
1061
1061
  cs_models/resources/WorkbookBlockComment/schemas.py,sha256=9UI_mTuPBYBk5qKUC2u0oR_clHA9XZ-bh5hhr24E-vs,563
@@ -1105,7 +1105,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
1105
1105
  cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
1106
1106
  cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
1107
1107
  cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
1108
- cs_models-0.0.667.dist-info/METADATA,sha256=O4BFF74Z3IJGYVtVAh0uqsndPymWSiNuN32o4pUCKd8,792
1109
- cs_models-0.0.667.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1110
- cs_models-0.0.667.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1111
- cs_models-0.0.667.dist-info/RECORD,,
1108
+ cs_models-0.0.668.dist-info/METADATA,sha256=spbQxLNJpPnoyIUshWz9AkYm-6r-K3ddEFDDKSCVwZg,792
1109
+ cs_models-0.0.668.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
1110
+ cs_models-0.0.668.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
1111
+ cs_models-0.0.668.dist-info/RECORD,,