superb-ai-onprem 0.5.3__py3-none-any.whl → 0.5.4__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.
- spb_onprem/_version.py +2 -2
- spb_onprem/contents/params/__init__.py +8 -0
- spb_onprem/contents/params/create.py +18 -0
- spb_onprem/contents/params/get_download_url.py +8 -0
- spb_onprem/contents/queries.py +3 -29
- {superb_ai_onprem-0.5.3.dist-info → superb_ai_onprem-0.5.4.dist-info}/METADATA +1 -1
- {superb_ai_onprem-0.5.3.dist-info → superb_ai_onprem-0.5.4.dist-info}/RECORD +10 -7
- {superb_ai_onprem-0.5.3.dist-info → superb_ai_onprem-0.5.4.dist-info}/WHEEL +0 -0
- {superb_ai_onprem-0.5.3.dist-info → superb_ai_onprem-0.5.4.dist-info}/licenses/LICENSE +0 -0
- {superb_ai_onprem-0.5.3.dist-info → superb_ai_onprem-0.5.4.dist-info}/top_level.txt +0 -0
spb_onprem/_version.py
CHANGED
|
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
|
|
|
28
28
|
commit_id: COMMIT_ID
|
|
29
29
|
__commit_id__: COMMIT_ID
|
|
30
30
|
|
|
31
|
-
__version__ = version = '0.5.
|
|
32
|
-
__version_tuple__ = version_tuple = (0, 5,
|
|
31
|
+
__version__ = version = '0.5.4'
|
|
32
|
+
__version_tuple__ = version_tuple = (0, 5, 4)
|
|
33
33
|
|
|
34
34
|
__commit_id__ = commit_id = None
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from typing import Union
|
|
2
|
+
from spb_onprem.base_types import (
|
|
3
|
+
Undefined,
|
|
4
|
+
UndefinedType,
|
|
5
|
+
)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def create_variables(
|
|
9
|
+
key: Union[str, UndefinedType] = Undefined,
|
|
10
|
+
content_type: Union[str, UndefinedType] = Undefined,
|
|
11
|
+
):
|
|
12
|
+
params = {}
|
|
13
|
+
|
|
14
|
+
if key is not Undefined:
|
|
15
|
+
params["key"] = key
|
|
16
|
+
if content_type is not Undefined:
|
|
17
|
+
params["content_type"] = content_type
|
|
18
|
+
return params
|
spb_onprem/contents/queries.py
CHANGED
|
@@ -1,28 +1,9 @@
|
|
|
1
|
-
from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
from spb_onprem.base_types import (
|
|
6
|
-
Undefined,
|
|
7
|
-
UndefinedType,
|
|
1
|
+
from .params import (
|
|
2
|
+
create_variables,
|
|
3
|
+
get_download_url_params,
|
|
8
4
|
)
|
|
9
5
|
|
|
10
6
|
class Queries:
|
|
11
|
-
""" Content Queries """
|
|
12
|
-
|
|
13
|
-
@staticmethod
|
|
14
|
-
def create_variables(
|
|
15
|
-
key: Union[str, UndefinedType] = Undefined,
|
|
16
|
-
content_type: Union[str, UndefinedType] = Undefined,
|
|
17
|
-
):
|
|
18
|
-
params = {}
|
|
19
|
-
|
|
20
|
-
if key is not Undefined:
|
|
21
|
-
params["key"] = key
|
|
22
|
-
if content_type is not Undefined:
|
|
23
|
-
params["content_type"] = content_type
|
|
24
|
-
return params
|
|
25
|
-
|
|
26
7
|
CREATE = {
|
|
27
8
|
"name": "createContent",
|
|
28
9
|
"query": '''
|
|
@@ -42,13 +23,6 @@ class Queries:
|
|
|
42
23
|
"variables": create_variables
|
|
43
24
|
}
|
|
44
25
|
|
|
45
|
-
@staticmethod
|
|
46
|
-
def get_download_url_params(
|
|
47
|
-
content_id: str,
|
|
48
|
-
):
|
|
49
|
-
return {
|
|
50
|
-
"id": content_id
|
|
51
|
-
}
|
|
52
26
|
|
|
53
27
|
GET_DOWNLOAD_URL = {
|
|
54
28
|
"name": "generateContentDownloadURL",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
spb_onprem/__init__.py,sha256=lGZRdgpRdBFM97SawPJIC-a5uRzrd5jdb9i5yHDeveQ,2649
|
|
2
|
-
spb_onprem/_version.py,sha256=
|
|
2
|
+
spb_onprem/_version.py,sha256=OrfVZdCDQ-QC6dUnxdROooJjwvLfeDMedTBstpAdSBU,704
|
|
3
3
|
spb_onprem/base_model.py,sha256=XLtyoxRBs68LrvbFH8V4EvQGPc2W17koC310MnS37jc,442
|
|
4
4
|
spb_onprem/base_service.py,sha256=dPfr3mGXYlqadOXycu6RBFX1HcZ1qzEsskLoOxERLOU,5737
|
|
5
5
|
spb_onprem/base_types.py,sha256=5HO6uy6qf08b4KSElwIaGy7UkoQG2KqVO6gcHbsqqSo,269
|
|
@@ -22,11 +22,14 @@ spb_onprem/activities/params/start_activity.py,sha256=uBf78FYkjGkM5g8shIoMgz8qoC
|
|
|
22
22
|
spb_onprem/activities/params/update_activity.py,sha256=QU3h2YkPFkqHEHXv6078V2PWEa272h60ST6FYPPZLWU,2615
|
|
23
23
|
spb_onprem/activities/params/update_activity_history.py,sha256=ScWxOG7pZ-7WcTzvJleZIm-TsZVTRkwNrTCyNDyyVSc,1620
|
|
24
24
|
spb_onprem/contents/__init__.py,sha256=9EfIMQxbJuUZVUqsTa3Ji-yDidFPQQB5gnJI4R01YWI,74
|
|
25
|
-
spb_onprem/contents/queries.py,sha256=
|
|
25
|
+
spb_onprem/contents/queries.py,sha256=hk7JHfUBinIDp4xswYxmTMQwxsRbKWTxFeZQtUVl9K4,925
|
|
26
26
|
spb_onprem/contents/service.py,sha256=a_Y_l18sULozh14obwAsEJG9x2BLSAgerqCNCf5TH2Q,5024
|
|
27
27
|
spb_onprem/contents/entities/__init__.py,sha256=HsQ9J8UDxCx4xYTdMKQto7HCVUQilNozQCkIsceWezk,117
|
|
28
28
|
spb_onprem/contents/entities/base_content.py,sha256=nM7NALpeRjtUKPv7eU0-hlqT1rPtD2mwB6Bvv_2Zc1E,346
|
|
29
29
|
spb_onprem/contents/entities/content.py,sha256=YhTGHE9ykiOgFjvxbnLzSLg2665jPYrDATteB9PbGPE,534
|
|
30
|
+
spb_onprem/contents/params/__init__.py,sha256=TYVs27fn47eTjnXGL6SQvkbWQqWaGwY6hJjnDLiLl-U,161
|
|
31
|
+
spb_onprem/contents/params/create.py,sha256=JLMbNiIecOsVvVSYY6DfUpWjZxZKuO9-NSpuRlSIxS0,408
|
|
32
|
+
spb_onprem/contents/params/get_download_url.py,sha256=3oaiqmjJRxw0U59SoTxoih1pcU-cuQvcU-g89lCcqtQ,98
|
|
30
33
|
spb_onprem/data/__init__.py,sha256=5XKxNm2BlKufrX5uRQreUEzJ-nerTrozKpG1RJL5wt8,68
|
|
31
34
|
spb_onprem/data/queries.py,sha256=tGMRRBJQ0Un8jWoDesjYq_jLF1pn_Mliq7rjyVRx23w,15606
|
|
32
35
|
spb_onprem/data/service.py,sha256=zVtcWJqzSBKuuY_ZbRHVsy3_F-_FmTxsiTGYuSO_Ato,24799
|
|
@@ -105,7 +108,7 @@ spb_onprem/slices/params/update_slice.py,sha256=kryOmCnRTQ_OU0qDKgugppLrpeUpuLwm
|
|
|
105
108
|
spb_onprem/users/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
106
109
|
spb_onprem/users/entities/__init__.py,sha256=X8HZsCTlQnuPszok3AwI-i7bsQi0Ehul5L_2jZaol5E,57
|
|
107
110
|
spb_onprem/users/entities/auth.py,sha256=_KP-7yUErBxhJMm-dE3ObprPEG6e0JI2qNg6g8aK1qM,3371
|
|
108
|
-
superb_ai_onprem-0.5.
|
|
111
|
+
superb_ai_onprem-0.5.4.dist-info/licenses/LICENSE,sha256=CdinbFiHKGkGl6cPde6WgXhMuzyUXEG6tzy2-7udZ8o,1066
|
|
109
112
|
tests/__init__.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
|
|
110
113
|
tests/activities/__init__.py,sha256=Nqnn8clbgv-5l0PgxcTOldg8mkMKrFn4TvPL-rYUUGg,1
|
|
111
114
|
tests/activities/real_test.py,sha256=0gQHg7rIEuZndGZyNHMWSD5nUZPMsUGigfCjWFxMthQ,1786
|
|
@@ -118,7 +121,7 @@ tests/exports/test_entities.py,sha256=hG7G4kVkyHKT3mv4lvrzUqOW8ILeHiYj87QZjQcmg9
|
|
|
118
121
|
tests/exports/test_integration.py,sha256=cCcEgwIIHyQRlc04EAXSKz7RcblQvhI2GBR3uVaOOq8,6201
|
|
119
122
|
tests/exports/test_params.py,sha256=oRRa6nEru_FImlB3TrmFiBidz6ZstCx4rVaCK-EMGfQ,11070
|
|
120
123
|
tests/exports/test_service.py,sha256=IDcKxrmByh00jk9142P2ThuGureMoijTHNdU0rERGG8,14628
|
|
121
|
-
superb_ai_onprem-0.5.
|
|
122
|
-
superb_ai_onprem-0.5.
|
|
123
|
-
superb_ai_onprem-0.5.
|
|
124
|
-
superb_ai_onprem-0.5.
|
|
124
|
+
superb_ai_onprem-0.5.4.dist-info/METADATA,sha256=-Gfn_a4L9Ds8ilLUxNdXq5QHI00GYfdH30CI0NObv7Y,5817
|
|
125
|
+
superb_ai_onprem-0.5.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
126
|
+
superb_ai_onprem-0.5.4.dist-info/top_level.txt,sha256=LbqU6FjWKaxO7FPS5-71e3OIS8VgBi5VrtQMWFOW25Q,17
|
|
127
|
+
superb_ai_onprem-0.5.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|