cs-models 0.0.722__py3-none-any.whl → 0.0.724__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.
- cs_models/resources/BoxDrive/models.py +1 -1
- cs_models/resources/BoxDrive/schemas.py +1 -1
- cs_models/resources/VAParameter/models.py +36 -0
- cs_models/resources/VAParameter/schemas.py +22 -0
- cs_models/resources/VAParameterCondition/__init__.py +0 -0
- cs_models/resources/VAParameterIntervention/__init__.py +0 -0
- {cs_models-0.0.722.dist-info → cs_models-0.0.724.dist-info}/METADATA +1 -1
- {cs_models-0.0.722.dist-info → cs_models-0.0.724.dist-info}/RECORD +11 -9
- cs_models/resources/BoxWebhook/models.py +0 -25
- cs_models/resources/BoxWebhook/schemas.py +0 -11
- /cs_models/resources/{BoxWebhook → VAParameter}/__init__.py +0 -0
- {cs_models-0.0.722.dist-info → cs_models-0.0.724.dist-info}/WHEEL +0 -0
- {cs_models-0.0.722.dist-info → cs_models-0.0.724.dist-info}/top_level.txt +0 -0
|
@@ -16,7 +16,7 @@ class BoxDriveModel(Base):
|
|
|
16
16
|
id = Column(Integer, primary_key=True)
|
|
17
17
|
user_id = Column(String(128), nullable=False)
|
|
18
18
|
org_id = Column(String(128), nullable=True)
|
|
19
|
-
|
|
19
|
+
webhook_id = Column(String(128), nullable=False)
|
|
20
20
|
updated_at = Column(
|
|
21
21
|
DateTime,
|
|
22
22
|
nullable=False,
|
|
@@ -8,5 +8,5 @@ class BoxDriveResourceSchema(Schema):
|
|
|
8
8
|
id = fields.Integer(dump_only=True)
|
|
9
9
|
user_id = fields.String(required=True)
|
|
10
10
|
org_id = fields.String(allow_none=True)
|
|
11
|
-
|
|
11
|
+
webhook_id = fields.String(required=True)
|
|
12
12
|
updated_at = fields.DateTime(dump_only=True)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
from sqlalchemy import (
|
|
2
|
+
Column,
|
|
3
|
+
Integer,
|
|
4
|
+
String,
|
|
5
|
+
DateTime,
|
|
6
|
+
ForeignKey,
|
|
7
|
+
)
|
|
8
|
+
from datetime import datetime
|
|
9
|
+
|
|
10
|
+
from ...database import Base
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class VAParameterModel(Base):
|
|
14
|
+
__tablename__ = 'va_parameters'
|
|
15
|
+
|
|
16
|
+
pid = Column(Integer, primary_key=True)
|
|
17
|
+
cid = Column(Integer, nullable=False, index=True)
|
|
18
|
+
pname = Column(String(191), nullable=False)
|
|
19
|
+
ciso = Column(String(20), nullable=True)
|
|
20
|
+
u = Column(Integer, nullable=True)
|
|
21
|
+
sign = Column(String(10), nullable=True)
|
|
22
|
+
ppid = Column(
|
|
23
|
+
Integer,
|
|
24
|
+
ForeignKey('va_parameters.id'),
|
|
25
|
+
nullable=True
|
|
26
|
+
)
|
|
27
|
+
ftid = Column(Integer, nullable=True)
|
|
28
|
+
dpname = Column(String(191), nullable=True)
|
|
29
|
+
scid = Column(Integer, nullable=True)
|
|
30
|
+
so = Column(Integer, nullable=True)
|
|
31
|
+
updated_at = Column(
|
|
32
|
+
DateTime,
|
|
33
|
+
nullable=False,
|
|
34
|
+
default=datetime.utcnow,
|
|
35
|
+
onupdate=datetime.utcnow,
|
|
36
|
+
)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from marshmallow import (
|
|
2
|
+
Schema,
|
|
3
|
+
fields,
|
|
4
|
+
validate,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class VAParameterResourceSchema(Schema):
|
|
9
|
+
not_blank = validate.Length(min=1, error='Field cannot be blank')
|
|
10
|
+
|
|
11
|
+
pid = fields.Integer(required=True)
|
|
12
|
+
cid = fields.Integer(required=True)
|
|
13
|
+
pname = fields.String(required=True)
|
|
14
|
+
ciso = fields.String(allow_none=True)
|
|
15
|
+
u = fields.Integer(allow_none=True)
|
|
16
|
+
sign = fields.String(allow_none=True)
|
|
17
|
+
ppid = fields.Integer(allow_none=True)
|
|
18
|
+
ftid = fields.Integer(allow_none=True)
|
|
19
|
+
dpname = fields.String(allow_none=True)
|
|
20
|
+
scid = fields.Integer(allow_none=True)
|
|
21
|
+
so = fields.Integer(allow_none=True)
|
|
22
|
+
updated_at = fields.DateTime(dump_only=True)
|
|
File without changes
|
|
File without changes
|
|
@@ -77,11 +77,8 @@ cs_models/resources/BiomarkerSyn/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRk
|
|
|
77
77
|
cs_models/resources/BiomarkerSyn/models.py,sha256=tYYr76n8CbiC4jaBiJ4krE4FwfPADfkncl_0tnlEsEY,745
|
|
78
78
|
cs_models/resources/BiomarkerSyn/schemas.py,sha256=YTv8CY6hcJcVRpQKlSdZdyD2jwF1Vx0QyhIdKQYUpZg,347
|
|
79
79
|
cs_models/resources/BoxDrive/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
80
|
-
cs_models/resources/BoxDrive/models.py,sha256=
|
|
81
|
-
cs_models/resources/BoxDrive/schemas.py,sha256=
|
|
82
|
-
cs_models/resources/BoxWebhook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
83
|
-
cs_models/resources/BoxWebhook/models.py,sha256=WgB6g3r9pLEGA6wyzySRvqry2HfcStTUaaTYVyLUf5E,630
|
|
84
|
-
cs_models/resources/BoxWebhook/schemas.py,sha256=vNbianEIXTZP-eXv_R0oPIbHCeJKZZEeHW2I5eolP1k,276
|
|
80
|
+
cs_models/resources/BoxDrive/models.py,sha256=z_5GuMIekqzxIcUK7Mp5ZxbdakXEgl1x-rJcmp-x-3o,668
|
|
81
|
+
cs_models/resources/BoxDrive/schemas.py,sha256=fzcqZLogk9kEoH2qwAWjRqeBok9MqHAJ2smUo95Bkk4,314
|
|
85
82
|
cs_models/resources/CTProductsView/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
86
83
|
cs_models/resources/CTProductsView/models.py,sha256=MhnIRsYjgkkuSSUF6JkqrHzFMqzbbSsIU-CkEjSEEDI,1042
|
|
87
84
|
cs_models/resources/CTProductsView/schemas.py,sha256=7lU2GfAVYxVek1TG-w5qdFA8Th2KZvfOtkLfMl5lDo4,1254
|
|
@@ -1044,6 +1041,11 @@ cs_models/resources/UserWatchlistAccess/schemas.py,sha256=YLC99AAtHJBltD_1vuzIPY
|
|
|
1044
1041
|
cs_models/resources/UserWorkbook/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1045
1042
|
cs_models/resources/UserWorkbook/models.py,sha256=1f5V5o4AcHElMY31bME4S1wm06bm3SbLucYJrzk0ONk,759
|
|
1046
1043
|
cs_models/resources/UserWorkbook/schemas.py,sha256=0roXytt6Rv8RS6Um9WPZbWz2eYptmxacc7SEp0c2vHQ,427
|
|
1044
|
+
cs_models/resources/VAParameter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1045
|
+
cs_models/resources/VAParameter/models.py,sha256=xdcq4zz5qyDJGftTKlGTygZYJH_BpHs8xZXRDym9bs8,914
|
|
1046
|
+
cs_models/resources/VAParameter/schemas.py,sha256=0pS2OEvPOEZexMp2e1X2vHryNZGRWChalToi5Lb5LS0,688
|
|
1047
|
+
cs_models/resources/VAParameterCondition/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1048
|
+
cs_models/resources/VAParameterIntervention/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1047
1049
|
cs_models/resources/ViewConditionByTA/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
1048
1050
|
cs_models/resources/ViewConditionByTA/models.py,sha256=CieIW5mvmvok4dbglxd-ijMVI7gx-6C057CViSjuWoQ,764
|
|
1049
1051
|
cs_models/resources/ViewConditionByTA/schemas.py,sha256=Y0hoMeysHulflnPUchmDP0NDsSTKtIZH-UXRvp2fIRw,441
|
|
@@ -1186,7 +1188,7 @@ cs_models/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
1186
1188
|
cs_models/utils/alchemy.py,sha256=fhINGFn41owJ2DLXQKXAAtLqeZ1BRzD_qU0wPK_bsGQ,1598
|
|
1187
1189
|
cs_models/utils/utils.py,sha256=bY623DuzycfPQiaOQT2AxfANeWfwr5w76dBuQ813-ns,3664
|
|
1188
1190
|
cs_models/utils/profiling/__init__.py,sha256=N-73vb0M92C975fxgXyBCBjCPELl8Oh21ZY_-tzDnns,569
|
|
1189
|
-
cs_models-0.0.
|
|
1190
|
-
cs_models-0.0.
|
|
1191
|
-
cs_models-0.0.
|
|
1192
|
-
cs_models-0.0.
|
|
1191
|
+
cs_models-0.0.724.dist-info/METADATA,sha256=ZtI3U15hnsh9eRRrq5-LiuGGgkQCeEfc4IuNmxV05Dk,792
|
|
1192
|
+
cs_models-0.0.724.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
1193
|
+
cs_models-0.0.724.dist-info/top_level.txt,sha256=M7CA8Nh5t0vRManQ9gHfphhO16uhMqIbfaxr1jPDg18,10
|
|
1194
|
+
cs_models-0.0.724.dist-info/RECORD,,
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
from datetime import datetime
|
|
2
|
-
|
|
3
|
-
from sqlalchemy import (
|
|
4
|
-
Column,
|
|
5
|
-
Integer,
|
|
6
|
-
DateTime,
|
|
7
|
-
String,
|
|
8
|
-
)
|
|
9
|
-
|
|
10
|
-
from ...database import Base
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
class BoxWebhookModel(Base):
|
|
14
|
-
__tablename__ = "box_webhooks"
|
|
15
|
-
|
|
16
|
-
id = Column(Integer, primary_key=True)
|
|
17
|
-
webhook_id = Column(String(128), nullable=False)
|
|
18
|
-
enterprise_id = Column(String(128), nullable=False)
|
|
19
|
-
updated_at = Column(
|
|
20
|
-
DateTime,
|
|
21
|
-
nullable=False,
|
|
22
|
-
# https://stackoverflow.com/questions/58776476/why-doesnt-freezegun-work-with-sqlalchemy-default-values
|
|
23
|
-
default=lambda: datetime.utcnow(),
|
|
24
|
-
onupdate=lambda: datetime.utcnow(),
|
|
25
|
-
)
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
from marshmallow import (
|
|
2
|
-
Schema,
|
|
3
|
-
fields,
|
|
4
|
-
)
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
class BoxDriveResourceSchema(Schema):
|
|
8
|
-
id = fields.Integer(dump_only=True)
|
|
9
|
-
webhook_id = fields.String(required=True)
|
|
10
|
-
enterprise_id = fields.String(required=True)
|
|
11
|
-
updated_at = fields.DateTime(dump_only=True)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|