luminesce-sdk 2.2.37__py3-none-any.whl → 2.3.1__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.
- luminesce/api/binary_downloading_api.py +2 -4
- luminesce/api/certificate_management_api.py +2 -5
- luminesce/api/current_table_field_catalog_api.py +1 -3
- luminesce/api/health_checking_endpoint_api.py +1 -3
- luminesce/api/historically_executed_queries_api.py +2 -5
- luminesce/api/multi_query_execution_api.py +1 -4
- luminesce/api/sql_background_execution_api.py +2 -5
- luminesce/api/sql_design_api.py +34 -36
- luminesce/api/sql_execution_api.py +2 -4
- luminesce/api_client.py +1 -1
- luminesce/configuration.py +1 -1
- luminesce/exceptions.py +58 -25
- luminesce/extensions/api_client.py +1 -1
- luminesce/models/access_controlled_action.py +7 -3
- luminesce/models/access_controlled_resource.py +8 -4
- luminesce/models/access_controlled_resource_identifier_part_schema_attribute.py +7 -3
- luminesce/models/action_id.py +6 -2
- luminesce/models/aggregate_function.py +4 -2
- luminesce/models/aggregation.py +7 -3
- luminesce/models/auto_detect_type.py +4 -2
- luminesce/models/available_field.py +10 -6
- luminesce/models/available_parameter.py +7 -3
- luminesce/models/background_multi_query_progress_response.py +8 -4
- luminesce/models/background_multi_query_response.py +15 -11
- luminesce/models/background_query_cancel_response.py +9 -5
- luminesce/models/background_query_progress_response.py +10 -6
- luminesce/models/background_query_response.py +14 -10
- luminesce/models/background_query_state.py +4 -2
- luminesce/models/case_statement_design.py +7 -3
- luminesce/models/case_statement_item.py +7 -3
- luminesce/models/certificate_action.py +4 -2
- luminesce/models/certificate_file_type.py +4 -2
- luminesce/models/certificate_state.py +15 -11
- luminesce/models/certificate_status.py +4 -2
- luminesce/models/certificate_type.py +4 -2
- luminesce/models/column.py +10 -6
- luminesce/models/column_info.py +7 -3
- luminesce/models/column_state_type.py +8 -4
- luminesce/models/condition_attributes.py +4 -2
- luminesce/models/convert_to_view_data.py +8 -4
- luminesce/models/cursor_position.py +8 -4
- luminesce/models/dashboard_type.py +4 -2
- luminesce/models/data_type.py +4 -2
- luminesce/models/date_parameters.py +10 -6
- luminesce/models/design_join_type.py +4 -2
- luminesce/models/error_highlight_item.py +10 -6
- luminesce/models/error_highlight_request.py +8 -4
- luminesce/models/error_highlight_response.py +7 -3
- luminesce/models/expression_with_alias.py +6 -2
- luminesce/models/feedback_event_args.py +8 -4
- luminesce/models/feedback_level.py +4 -2
- luminesce/models/field_design.py +11 -7
- luminesce/models/field_type.py +4 -2
- luminesce/models/file_reader_builder_def.py +12 -8
- luminesce/models/file_reader_builder_response.py +8 -4
- luminesce/models/filter_model.py +9 -5
- luminesce/models/filter_term_design.py +7 -3
- luminesce/models/filter_type.py +4 -2
- luminesce/models/id_selector_definition.py +8 -4
- luminesce/models/inlined_property_design.py +7 -3
- luminesce/models/inlined_property_item.py +7 -3
- luminesce/models/intellisense_item.py +7 -3
- luminesce/models/intellisense_request.py +8 -4
- luminesce/models/intellisense_response.py +10 -6
- luminesce/models/intellisense_type.py +4 -2
- luminesce/models/joined_table_design.py +9 -5
- luminesce/models/link.py +6 -2
- luminesce/models/luminesce_binary_type.py +4 -2
- luminesce/models/lusid_grid_data.py +10 -6
- luminesce/models/lusid_problem_details.py +8 -4
- luminesce/models/mappable_field.py +6 -2
- luminesce/models/mapping_flags.py +4 -2
- luminesce/models/multi_query_definition_type.py +4 -2
- luminesce/models/on_clause_term_design.py +8 -4
- luminesce/models/options_csv.py +11 -7
- luminesce/models/options_excel.py +11 -7
- luminesce/models/options_parquet.py +6 -2
- luminesce/models/options_sq_lite.py +6 -2
- luminesce/models/options_xml.py +7 -3
- luminesce/models/order_by_direction.py +4 -2
- luminesce/models/order_by_term_design.py +8 -4
- luminesce/models/query_design.py +13 -9
- luminesce/models/query_designer_binary_operator.py +4 -2
- luminesce/models/query_designer_version.py +4 -2
- luminesce/models/resource_id.py +6 -2
- luminesce/models/resource_list_of_access_controlled_resource.py +8 -4
- luminesce/models/scalar_parameter.py +10 -6
- luminesce/models/source.py +6 -2
- luminesce/models/source_type.py +4 -2
- luminesce/models/table_meta.py +6 -2
- luminesce/models/table_view.py +10 -6
- luminesce/models/task_status.py +4 -2
- luminesce/models/type.py +4 -2
- luminesce/models/view_parameter.py +8 -4
- luminesce/models/writer_design.py +8 -4
- {luminesce_sdk-2.2.37.dist-info → luminesce_sdk-2.3.1.dist-info}/METADATA +1 -1
- luminesce_sdk-2.3.1.dist-info/RECORD +117 -0
- luminesce_sdk-2.2.37.dist-info/RECORD +0 -117
- {luminesce_sdk-2.2.37.dist-info → luminesce_sdk-2.3.1.dist-info}/WHEEL +0 -0
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.view_parameter import ViewParameter
|
|
24
26
|
|
|
25
27
|
class ConvertToViewData(BaseModel):
|
|
@@ -30,8 +32,8 @@ class ConvertToViewData(BaseModel):
|
|
|
30
32
|
name: StrictStr = Field(...,alias="name", description="Name of view")
|
|
31
33
|
description: Optional[StrictStr] = Field(None,alias="description", description="Description of view")
|
|
32
34
|
documentation_link: Optional[StrictStr] = Field(None,alias="documentationLink", description="Documentation link")
|
|
33
|
-
view_parameters: Optional[
|
|
34
|
-
other_parameters: Optional[Dict[str, StrictStr]] = Field(None,
|
|
35
|
+
view_parameters: Optional[List[ViewParameter]] = Field(default=None, description="View parameters", alias="viewParameters")
|
|
36
|
+
other_parameters: Optional[Dict[str, Optional[StrictStr]]] = Field(default=None, description="Other parameters not explicitly handled by the ConvertToView generation. These will be populated by the \"From SQL\" and should simply be returned by the web GUI should the user edit / update / regenerate", alias="otherParameters")
|
|
35
37
|
starting_variable_name: Optional[StrictStr] = Field(None,alias="startingVariableName", description="Which variable the this start with, null if not started from a full Create View Sql Statement.")
|
|
36
38
|
__properties = ["query", "name", "description", "documentationLink", "viewParameters", "otherParameters", "startingVariableName"]
|
|
37
39
|
|
|
@@ -120,3 +122,5 @@ class ConvertToViewData(BaseModel):
|
|
|
120
122
|
"starting_variable_name": obj.get("startingVariableName")
|
|
121
123
|
})
|
|
122
124
|
return _obj
|
|
125
|
+
|
|
126
|
+
ConvertToViewData.update_forward_refs()
|
|
@@ -18,15 +18,17 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import Any,
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
|
|
24
26
|
class CursorPosition(BaseModel):
|
|
25
27
|
"""
|
|
26
28
|
Represents a cursor location # noqa: E501
|
|
27
29
|
"""
|
|
28
|
-
row: StrictInt = Field(
|
|
29
|
-
column: StrictInt = Field(
|
|
30
|
+
row: StrictInt = Field(description="Row (0 based) of the user's cursor position")
|
|
31
|
+
column: StrictInt = Field(description="Column (0 based) of the user's cursor position")
|
|
30
32
|
__properties = ["row", "column"]
|
|
31
33
|
|
|
32
34
|
class Config:
|
|
@@ -77,3 +79,5 @@ class CursorPosition(BaseModel):
|
|
|
77
79
|
"column": obj.get("column")
|
|
78
80
|
})
|
|
79
81
|
return _obj
|
|
82
|
+
|
|
83
|
+
CursorPosition.update_forward_refs()
|
|
@@ -17,8 +17,10 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
from aenum import Enum, no_arg
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
23
|
+
from datetime import datetime
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
class DashboardType(str, Enum):
|
luminesce/models/data_type.py
CHANGED
|
@@ -17,8 +17,10 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
from aenum import Enum, no_arg
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
23
|
+
from datetime import datetime
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
class DataType(str, Enum):
|
|
@@ -17,18 +17,20 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
+
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
20
24
|
from datetime import datetime
|
|
21
|
-
from typing import Any, Dict, Optional
|
|
22
|
-
from pydantic.v1 import StrictStr, Field, BaseModel, Field
|
|
23
25
|
|
|
24
26
|
class DateParameters(BaseModel):
|
|
25
27
|
"""
|
|
26
28
|
Collection of date parameters used in dashboards # noqa: E501
|
|
27
29
|
"""
|
|
28
|
-
date_from: Optional[datetime] = Field(None,
|
|
29
|
-
date_to: Optional[datetime] = Field(None,
|
|
30
|
-
effective_at: Optional[datetime] = Field(None,
|
|
31
|
-
as_at: datetime = Field(
|
|
30
|
+
date_from: Optional[datetime] = Field(default=None, description="Parameter to determine the lower bound in a date range", alias="dateFrom")
|
|
31
|
+
date_to: Optional[datetime] = Field(default=None, description="Parameter to determine the upper bound in a date range", alias="dateTo")
|
|
32
|
+
effective_at: Optional[datetime] = Field(default=None, description="EffectiveAt of the dashboard", alias="effectiveAt")
|
|
33
|
+
as_at: datetime = Field(description="AsAt of the dashboard", alias="asAt")
|
|
32
34
|
__properties = ["dateFrom", "dateTo", "effectiveAt", "asAt"]
|
|
33
35
|
|
|
34
36
|
class Config:
|
|
@@ -96,3 +98,5 @@ class DateParameters(BaseModel):
|
|
|
96
98
|
"as_at": obj.get("asAt")
|
|
97
99
|
})
|
|
98
100
|
return _obj
|
|
101
|
+
|
|
102
|
+
DateParameters.update_forward_refs()
|
|
@@ -17,8 +17,10 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
from aenum import Enum, no_arg
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
23
|
+
from datetime import datetime
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
class DesignJoinType(str, Enum):
|
|
@@ -18,18 +18,20 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.cursor_position import CursorPosition
|
|
24
26
|
|
|
25
27
|
class ErrorHighlightItem(BaseModel):
|
|
26
28
|
"""
|
|
27
29
|
Representation of a sql error # noqa: E501
|
|
28
30
|
"""
|
|
29
|
-
start: CursorPosition
|
|
30
|
-
stop: CursorPosition
|
|
31
|
-
no_viable_alternative_start: Optional[CursorPosition] = Field(None, alias="noViableAlternativeStart")
|
|
32
|
-
length: StrictInt = Field(
|
|
31
|
+
start: CursorPosition
|
|
32
|
+
stop: CursorPosition
|
|
33
|
+
no_viable_alternative_start: Optional[CursorPosition] = Field(default=None, alias="noViableAlternativeStart")
|
|
34
|
+
length: StrictInt = Field(description="The length of the error token counting line breaks if any")
|
|
33
35
|
message: StrictStr = Field(...,alias="message", description="The error message")
|
|
34
36
|
__properties = ["start", "stop", "noViableAlternativeStart", "length", "message"]
|
|
35
37
|
|
|
@@ -93,3 +95,5 @@ class ErrorHighlightItem(BaseModel):
|
|
|
93
95
|
"message": obj.get("message")
|
|
94
96
|
})
|
|
95
97
|
return _obj
|
|
98
|
+
|
|
99
|
+
ErrorHighlightItem.update_forward_refs()
|
|
@@ -18,15 +18,17 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
|
|
24
26
|
class ErrorHighlightRequest(BaseModel):
|
|
25
27
|
"""
|
|
26
28
|
Request for Error highlighting # noqa: E501
|
|
27
29
|
"""
|
|
28
|
-
lines:
|
|
29
|
-
ensure_some_text_is_selected: Optional[StrictBool] = Field(None,
|
|
30
|
+
lines: List[StrictStr] = Field(description="The lines of text the user currently has in the editor")
|
|
31
|
+
ensure_some_text_is_selected: Optional[StrictBool] = Field(default=None, description="If an editor requires some selection of non-whitespace this can be set to true to force at least one visible character to be selected.", alias="ensureSomeTextIsSelected")
|
|
30
32
|
__properties = ["lines", "ensureSomeTextIsSelected"]
|
|
31
33
|
|
|
32
34
|
class Config:
|
|
@@ -77,3 +79,5 @@ class ErrorHighlightRequest(BaseModel):
|
|
|
77
79
|
"ensure_some_text_is_selected": obj.get("ensureSomeTextIsSelected")
|
|
78
80
|
})
|
|
79
81
|
return _obj
|
|
82
|
+
|
|
83
|
+
ErrorHighlightRequest.update_forward_refs()
|
|
@@ -18,15 +18,17 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.error_highlight_item import ErrorHighlightItem
|
|
24
26
|
|
|
25
27
|
class ErrorHighlightResponse(BaseModel):
|
|
26
28
|
"""
|
|
27
29
|
Response for error highlighting # noqa: E501
|
|
28
30
|
"""
|
|
29
|
-
errors:
|
|
31
|
+
errors: List[ErrorHighlightItem] = Field(description="The errors within the Sql")
|
|
30
32
|
sql_with_marker: StrictStr = Field(...,alias="sqlWithMarker", description="The SQL this is for, with characters indicating the error locations")
|
|
31
33
|
__properties = ["errors", "sqlWithMarker"]
|
|
32
34
|
|
|
@@ -85,3 +87,5 @@ class ErrorHighlightResponse(BaseModel):
|
|
|
85
87
|
"sql_with_marker": obj.get("sqlWithMarker")
|
|
86
88
|
})
|
|
87
89
|
return _obj
|
|
90
|
+
|
|
91
|
+
ErrorHighlightResponse.update_forward_refs()
|
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.mapping_flags import MappingFlags
|
|
24
26
|
|
|
25
27
|
class ExpressionWithAlias(BaseModel):
|
|
@@ -85,3 +87,5 @@ class ExpressionWithAlias(BaseModel):
|
|
|
85
87
|
"flags": obj.get("flags")
|
|
86
88
|
})
|
|
87
89
|
return _obj
|
|
90
|
+
|
|
91
|
+
ExpressionWithAlias.update_forward_refs()
|
|
@@ -17,9 +17,11 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
|
+
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
20
24
|
from datetime import datetime
|
|
21
|
-
from typing import Any, Dict, List, Optional
|
|
22
|
-
from pydantic.v1 import StrictStr, Field, BaseModel, Field, StrictInt, StrictStr, conlist
|
|
23
25
|
from luminesce.models.feedback_level import FeedbackLevel
|
|
24
26
|
|
|
25
27
|
class FeedbackEventArgs(BaseModel):
|
|
@@ -31,9 +33,9 @@ class FeedbackEventArgs(BaseModel):
|
|
|
31
33
|
execution_id: Optional[StrictStr] = Field(None,alias="executionId")
|
|
32
34
|
level: Optional[FeedbackLevel] = None
|
|
33
35
|
sender: Optional[StrictStr] = Field(None,alias="sender")
|
|
34
|
-
state_id: Optional[StrictInt] = Field(None, alias="stateId")
|
|
36
|
+
state_id: Optional[StrictInt] = Field(default=None, alias="stateId")
|
|
35
37
|
message_template: Optional[StrictStr] = Field(None,alias="messageTemplate")
|
|
36
|
-
property_values: Optional[
|
|
38
|
+
property_values: Optional[List[Any]] = Field(default=None, alias="propertyValues")
|
|
37
39
|
message: Optional[StrictStr] = Field(None,alias="message")
|
|
38
40
|
__properties = ["when", "sessionId", "executionId", "level", "sender", "stateId", "messageTemplate", "propertyValues", "message"]
|
|
39
41
|
|
|
@@ -118,3 +120,5 @@ class FeedbackEventArgs(BaseModel):
|
|
|
118
120
|
"message": obj.get("message")
|
|
119
121
|
})
|
|
120
122
|
return _obj
|
|
123
|
+
|
|
124
|
+
FeedbackEventArgs.update_forward_refs()
|
|
@@ -17,8 +17,10 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
from aenum import Enum, no_arg
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
23
|
+
from datetime import datetime
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
class FeedbackLevel(str, Enum):
|
luminesce/models/field_design.py
CHANGED
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.aggregation import Aggregation
|
|
24
26
|
from luminesce.models.data_type import DataType
|
|
25
27
|
from luminesce.models.filter_term_design import FilterTermDesign
|
|
@@ -31,11 +33,11 @@ class FieldDesign(BaseModel):
|
|
|
31
33
|
name: StrictStr = Field(...,alias="name", description="Name of the Field (column name, constant, complex expression, etc.)")
|
|
32
34
|
table_alias: Optional[StrictStr] = Field(None,alias="tableAlias", description="Alias of the Table the field belongs to")
|
|
33
35
|
alias: Optional[StrictStr] = Field(None,alias="alias", description="Alias if any (if none the Name is used)")
|
|
34
|
-
data_type: Optional[DataType] = Field(None, alias="dataType")
|
|
35
|
-
should_select: Optional[StrictBool] = Field(None,
|
|
36
|
-
filters: Optional[
|
|
37
|
-
aggregations: Optional[
|
|
38
|
-
is_expression: Optional[StrictBool] = Field(None,
|
|
36
|
+
data_type: Optional[DataType] = Field(default=None, alias="dataType")
|
|
37
|
+
should_select: Optional[StrictBool] = Field(default=None, description="Should this be selected? False would imply it is only being filtered on. Ignored when Aggregations are present", alias="shouldSelect")
|
|
38
|
+
filters: Optional[List[FilterTermDesign]] = Field(default=None, description="Filter clauses to apply to this field (And'ed together)")
|
|
39
|
+
aggregations: Optional[List[Aggregation]] = Field(default=None, description="Aggregations to apply (as opposed to simply selecting)")
|
|
40
|
+
is_expression: Optional[StrictBool] = Field(default=None, description="Is this field an expression", alias="isExpression")
|
|
39
41
|
__properties = ["name", "tableAlias", "alias", "dataType", "shouldSelect", "filters", "aggregations", "isExpression"]
|
|
40
42
|
|
|
41
43
|
class Config:
|
|
@@ -126,3 +128,5 @@ class FieldDesign(BaseModel):
|
|
|
126
128
|
"is_expression": obj.get("isExpression")
|
|
127
129
|
})
|
|
128
130
|
return _obj
|
|
131
|
+
|
|
132
|
+
FieldDesign.update_forward_refs()
|
luminesce/models/field_type.py
CHANGED
|
@@ -17,8 +17,10 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
from aenum import Enum, no_arg
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
23
|
+
from datetime import datetime
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
class FieldType(str, Enum):
|
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.auto_detect_type import AutoDetectType
|
|
24
26
|
from luminesce.models.column_info import ColumnInfo
|
|
25
27
|
from luminesce.models.options_csv import OptionsCsv
|
|
@@ -33,19 +35,19 @@ class FileReaderBuilderDef(BaseModel):
|
|
|
33
35
|
"""
|
|
34
36
|
Information on how to construct a file-read sql query # noqa: E501
|
|
35
37
|
"""
|
|
36
|
-
auto_detect: Optional[AutoDetectType] = Field(None, alias="autoDetect")
|
|
37
|
-
columns: Optional[
|
|
38
|
-
limit: Optional[StrictInt] = Field(None, description="What limit be added to the load query? Less than or equal to zero means none")
|
|
38
|
+
auto_detect: Optional[AutoDetectType] = Field(default=None, alias="autoDetect")
|
|
39
|
+
columns: Optional[List[ColumnInfo]] = Field(default=None, description="Column information for the results")
|
|
40
|
+
limit: Optional[StrictInt] = Field(default=None, description="What limit be added to the load query? Less than or equal to zero means none")
|
|
39
41
|
source: Optional[Source] = None
|
|
40
|
-
available_sources: Optional[
|
|
42
|
+
available_sources: Optional[List[Source]] = Field(default=None, description="The source locations the user has access to. The provider in essence.", alias="availableSources")
|
|
41
43
|
variable_name: Optional[StrictStr] = Field(None,alias="variableName", description="The name of the variable for the `use` statement")
|
|
42
44
|
file_path: Optional[StrictStr] = Field(None,alias="filePath", description="The file (or folder) path")
|
|
43
45
|
folder_filter: Optional[StrictStr] = Field(None,alias="folderFilter", description="The filter to apply to a folder (all matching files then being read) a RegExp")
|
|
44
46
|
zip_filter: Optional[StrictStr] = Field(None,alias="zipFilter", description="The filter to apply to folder structures with zip archives (all matching files then being read) a RegExp")
|
|
45
|
-
add_file_name: Optional[StrictBool] = Field(None,
|
|
47
|
+
add_file_name: Optional[StrictBool] = Field(default=None, description="Should a file name column be added to the output?", alias="addFileName")
|
|
46
48
|
csv: Optional[OptionsCsv] = None
|
|
47
49
|
excel: Optional[OptionsExcel] = None
|
|
48
|
-
sq_lite: Optional[OptionsSqLite] = Field(None, alias="sqLite")
|
|
50
|
+
sq_lite: Optional[OptionsSqLite] = Field(default=None, alias="sqLite")
|
|
49
51
|
xml: Optional[OptionsXml] = None
|
|
50
52
|
parquet: Optional[OptionsParquet] = None
|
|
51
53
|
__properties = ["autoDetect", "columns", "limit", "source", "availableSources", "variableName", "filePath", "folderFilter", "zipFilter", "addFileName", "csv", "excel", "sqLite", "xml", "parquet"]
|
|
@@ -173,3 +175,5 @@ class FileReaderBuilderDef(BaseModel):
|
|
|
173
175
|
"parquet": OptionsParquet.from_dict(obj.get("parquet")) if obj.get("parquet") is not None else None
|
|
174
176
|
})
|
|
175
177
|
return _obj
|
|
178
|
+
|
|
179
|
+
FileReaderBuilderDef.update_forward_refs()
|
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.column_info import ColumnInfo
|
|
24
26
|
|
|
25
27
|
class FileReaderBuilderResponse(BaseModel):
|
|
@@ -28,8 +30,8 @@ class FileReaderBuilderResponse(BaseModel):
|
|
|
28
30
|
"""
|
|
29
31
|
query: Optional[StrictStr] = Field(None,alias="query", description="The generated SQL")
|
|
30
32
|
error: Optional[StrictStr] = Field(None,alias="error", description="The error from running generated SQL Query, if any")
|
|
31
|
-
columns: Optional[
|
|
32
|
-
data: Optional[Any] = Field(None, description="The resulting data from running the Query")
|
|
33
|
+
columns: Optional[List[ColumnInfo]] = Field(default=None, description="Column information for the results")
|
|
34
|
+
data: Optional[Any] = Field(default=None, description="The resulting data from running the Query")
|
|
33
35
|
__properties = ["query", "error", "columns", "data"]
|
|
34
36
|
|
|
35
37
|
class Config:
|
|
@@ -109,3 +111,5 @@ class FileReaderBuilderResponse(BaseModel):
|
|
|
109
111
|
"data": obj.get("data")
|
|
110
112
|
})
|
|
111
113
|
return _obj
|
|
114
|
+
|
|
115
|
+
FileReaderBuilderResponse.update_forward_refs()
|
luminesce/models/filter_model.py
CHANGED
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.filter_type import FilterType
|
|
24
26
|
from luminesce.models.type import Type
|
|
25
27
|
|
|
@@ -27,11 +29,11 @@ class FilterModel(BaseModel):
|
|
|
27
29
|
"""
|
|
28
30
|
Representation of the data used in a filter for the where clause # noqa: E501
|
|
29
31
|
"""
|
|
30
|
-
filter_type: FilterType = Field(
|
|
32
|
+
filter_type: FilterType = Field(alias="filterType")
|
|
31
33
|
type: Optional[Type] = None
|
|
32
34
|
filter: Optional[StrictStr] = Field(None,alias="filter", description="The filter value")
|
|
33
|
-
filter_to: Optional[Union[StrictFloat, StrictInt]] = Field(None,
|
|
34
|
-
values: Optional[
|
|
35
|
+
filter_to: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The upper bound filter value for the number filter type", alias="filterTo")
|
|
36
|
+
values: Optional[List[StrictStr]] = Field(default=None, description="An array of possible values for the set filter type")
|
|
35
37
|
date_from: Optional[StrictStr] = Field(None,alias="dateFrom", description="A lower bound date for the date filter type")
|
|
36
38
|
date_to: Optional[StrictStr] = Field(None,alias="dateTo", description="An upper bound date for the date filter type")
|
|
37
39
|
__properties = ["filterType", "type", "filter", "filterTo", "values", "dateFrom", "dateTo"]
|
|
@@ -114,3 +116,5 @@ class FilterModel(BaseModel):
|
|
|
114
116
|
"date_to": obj.get("dateTo")
|
|
115
117
|
})
|
|
116
118
|
return _obj
|
|
119
|
+
|
|
120
|
+
FilterModel.update_forward_refs()
|
|
@@ -18,15 +18,17 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import Any,
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.query_designer_binary_operator import QueryDesignerBinaryOperator
|
|
24
26
|
|
|
25
27
|
class FilterTermDesign(BaseModel):
|
|
26
28
|
"""
|
|
27
29
|
A single filter clause # noqa: E501
|
|
28
30
|
"""
|
|
29
|
-
operator: QueryDesignerBinaryOperator
|
|
31
|
+
operator: QueryDesignerBinaryOperator
|
|
30
32
|
value: StrictStr = Field(...,alias="value", description="The value to compare against (always as a string, but will be formatted to the correct type)")
|
|
31
33
|
__properties = ["operator", "value"]
|
|
32
34
|
|
|
@@ -78,3 +80,5 @@ class FilterTermDesign(BaseModel):
|
|
|
78
80
|
"value": obj.get("value")
|
|
79
81
|
})
|
|
80
82
|
return _obj
|
|
83
|
+
|
|
84
|
+
FilterTermDesign.update_forward_refs()
|
luminesce/models/filter_type.py
CHANGED
|
@@ -17,8 +17,10 @@ import pprint
|
|
|
17
17
|
import re # noqa: F401
|
|
18
18
|
from aenum import Enum, no_arg
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
23
|
+
from datetime import datetime
|
|
22
24
|
|
|
23
25
|
|
|
24
26
|
class FilterType(str, Enum):
|
|
@@ -18,16 +18,18 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.action_id import ActionId
|
|
24
26
|
|
|
25
27
|
class IdSelectorDefinition(BaseModel):
|
|
26
28
|
"""
|
|
27
29
|
IdSelectorDefinition
|
|
28
30
|
"""
|
|
29
|
-
identifier: Dict[str, StrictStr]
|
|
30
|
-
actions:
|
|
31
|
+
identifier: Dict[str, Optional[StrictStr]]
|
|
32
|
+
actions: List[ActionId]
|
|
31
33
|
name: Optional[StrictStr] = Field(None,alias="name")
|
|
32
34
|
description: Optional[StrictStr] = Field(None,alias="description")
|
|
33
35
|
__properties = ["identifier", "actions", "name", "description"]
|
|
@@ -99,3 +101,5 @@ class IdSelectorDefinition(BaseModel):
|
|
|
99
101
|
"description": obj.get("description")
|
|
100
102
|
})
|
|
101
103
|
return _obj
|
|
104
|
+
|
|
105
|
+
IdSelectorDefinition.update_forward_refs()
|
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.inlined_property_item import InlinedPropertyItem
|
|
24
26
|
|
|
25
27
|
class InlinedPropertyDesign(BaseModel):
|
|
@@ -28,7 +30,7 @@ class InlinedPropertyDesign(BaseModel):
|
|
|
28
30
|
"""
|
|
29
31
|
provider_name: Optional[StrictStr] = Field(None,alias="providerName", description="The provider name for which these properties are to be inlined")
|
|
30
32
|
provider_name_extension: Optional[StrictStr] = Field(None,alias="providerNameExtension", description="The provider extension name for extended providers")
|
|
31
|
-
inlined_property_items: Optional[
|
|
33
|
+
inlined_property_items: Optional[List[InlinedPropertyItem]] = Field(default=None, description="Collection of Inlined properties", alias="inlinedPropertyItems")
|
|
32
34
|
__properties = ["providerName", "providerNameExtension", "inlinedPropertyItems"]
|
|
33
35
|
|
|
34
36
|
class Config:
|
|
@@ -102,3 +104,5 @@ class InlinedPropertyDesign(BaseModel):
|
|
|
102
104
|
"inlined_property_items": [InlinedPropertyItem.from_dict(_item) for _item in obj.get("inlinedPropertyItems")] if obj.get("inlinedPropertyItems") is not None else None
|
|
103
105
|
})
|
|
104
106
|
return _obj
|
|
107
|
+
|
|
108
|
+
InlinedPropertyDesign.update_forward_refs()
|
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
|
|
24
26
|
class InlinedPropertyItem(BaseModel):
|
|
25
27
|
"""
|
|
@@ -27,7 +29,7 @@ class InlinedPropertyItem(BaseModel):
|
|
|
27
29
|
"""
|
|
28
30
|
key: StrictStr = Field(...,alias="key", description="Key of the property")
|
|
29
31
|
name: Optional[StrictStr] = Field(None,alias="name", description="Name of the property")
|
|
30
|
-
is_main: Optional[StrictBool] = Field(None,
|
|
32
|
+
is_main: Optional[StrictBool] = Field(default=None, description="Is Main indicator for the property", alias="isMain")
|
|
31
33
|
description: Optional[StrictStr] = Field(None,alias="description", description="Description of the property")
|
|
32
34
|
data_type: Optional[StrictStr] = Field(None,alias="dataType", description="Data type of the property")
|
|
33
35
|
__properties = ["key", "name", "isMain", "description", "dataType"]
|
|
@@ -98,3 +100,5 @@ class InlinedPropertyItem(BaseModel):
|
|
|
98
100
|
"data_type": obj.get("dataType")
|
|
99
101
|
})
|
|
100
102
|
return _obj
|
|
103
|
+
|
|
104
|
+
InlinedPropertyItem.update_forward_refs()
|
|
@@ -18,8 +18,10 @@ import re # noqa: F401
|
|
|
18
18
|
import json
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
from typing import
|
|
22
|
-
from
|
|
21
|
+
from typing import List, Dict, Optional, Any, Union, TYPE_CHECKING
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from pydantic.v1 import BaseModel, StrictStr, StrictInt, StrictBool, StrictFloat, StrictBytes, Field, validator, ValidationError, conlist, constr
|
|
24
|
+
from datetime import datetime
|
|
23
25
|
from luminesce.models.intellisense_type import IntellisenseType
|
|
24
26
|
|
|
25
27
|
class IntellisenseItem(BaseModel):
|
|
@@ -29,7 +31,7 @@ class IntellisenseItem(BaseModel):
|
|
|
29
31
|
caption: StrictStr = Field(...,alias="caption", description="The value to show the user in the popup")
|
|
30
32
|
value: StrictStr = Field(...,alias="value", description="The value to substitute in")
|
|
31
33
|
meta: Optional[StrictStr] = Field(None,alias="meta", description="The light-grey text shown to the right of the Caption in the popup")
|
|
32
|
-
score: Optional[StrictInt] = Field(None, description="How important is this. Bigger is more important.")
|
|
34
|
+
score: Optional[StrictInt] = Field(default=None, description="How important is this. Bigger is more important.")
|
|
33
35
|
doc_html: Optional[StrictStr] = Field(None,alias="docHTML", description="Popup further info (as in a whole documentation article!)")
|
|
34
36
|
type: Optional[IntellisenseType] = None
|
|
35
37
|
__properties = ["caption", "value", "meta", "score", "docHTML", "type"]
|
|
@@ -96,3 +98,5 @@ class IntellisenseItem(BaseModel):
|
|
|
96
98
|
"type": obj.get("type")
|
|
97
99
|
})
|
|
98
100
|
return _obj
|
|
101
|
+
|
|
102
|
+
IntellisenseItem.update_forward_refs()
|