UncountablePythonSDK 0.0.5__py3-none-any.whl → 0.0.7__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 UncountablePythonSDK might be problematic. Click here for more details.
- {UncountablePythonSDK-0.0.5.dist-info → UncountablePythonSDK-0.0.7.dist-info}/METADATA +1 -1
- UncountablePythonSDK-0.0.7.dist-info/RECORD +119 -0
- {UncountablePythonSDK-0.0.5.dist-info → UncountablePythonSDK-0.0.7.dist-info}/WHEEL +1 -1
- pkgs/type_spec/builder.py +0 -61
- pkgs/type_spec/config.py +3 -0
- pkgs/type_spec/emit_open_api.py +33 -22
- pkgs/type_spec/emit_open_api_util.py +6 -2
- pkgs/type_spec/emit_python.py +3 -2
- type_spec/external/api/entity/create_entities.yaml +33 -0
- type_spec/external/api/entity/{external_create_entity.yaml → create_entity.yaml} +4 -14
- type_spec/external/api/entity/{external_get_entities_data.yaml → get_entities_data.yaml} +6 -6
- type_spec/external/api/entity/{external_list_entities.yaml → list_entities.yaml} +6 -6
- type_spec/external/api/entity/{external_resolve_entity_ids.yaml → resolve_entity_ids.yaml} +2 -2
- type_spec/external/api/entity/{external_set_values.yaml → set_values.yaml} +4 -4
- type_spec/external/api/input_groups/{external_get_input_group_names.yaml → get_input_group_names.yaml} +2 -2
- type_spec/external/api/inputs/{external_create_inputs.yaml → create_inputs.yaml} +4 -4
- type_spec/external/api/inputs/{external_get_input_data.yaml → get_input_data.yaml} +10 -10
- type_spec/external/api/inputs/{external_get_input_names.yaml → get_input_names.yaml} +2 -2
- type_spec/external/api/inputs/{external_get_inputs_data.yaml → get_inputs_data.yaml} +10 -10
- type_spec/external/api/inputs/{external_set_input_attribute_values.yaml → set_input_attribute_values.yaml} +2 -2
- type_spec/external/api/outputs/{external_get_output_data.yaml → get_output_data.yaml} +10 -10
- type_spec/external/api/outputs/{external_get_output_names.yaml → get_output_names.yaml} +2 -2
- type_spec/external/api/project/{external_get_projects.yaml → get_projects.yaml} +4 -4
- type_spec/external/api/project/{external_get_projects_data.yaml → get_projects_data.yaml} +8 -8
- type_spec/external/api/recipe_metadata/{external_get_recipe_metadata_data.yaml → get_recipe_metadata_data.yaml} +2 -2
- type_spec/external/api/recipes/{external_create_recipes.yaml → create_recipes.yaml} +6 -6
- type_spec/external/api/recipes/{external_get_curve.yaml → get_curve.yaml} +5 -5
- type_spec/external/api/recipes/{external_get_recipe_calculations.yaml → get_recipe_calculations.yaml} +4 -4
- type_spec/external/api/recipes/get_recipe_links.yaml +26 -0
- type_spec/external/api/recipes/{external_get_recipe_names.yaml → get_recipe_names.yaml} +2 -2
- type_spec/external/api/recipes/{external_get_recipe_output_metadata.yaml → get_recipe_output_metadata.yaml} +4 -4
- type_spec/external/api/recipes/{external_get_recipes_data.yaml → get_recipes_data.yaml} +38 -38
- uncountable/types/__init__.py +60 -54
- uncountable/types/api/entity/{external_create_entities.py → create_entities.py} +5 -25
- uncountable/types/api/entity/{external_create_entity.py → create_entity.py} +7 -13
- uncountable/types/api/entity/{external_get_entities_data.py → get_entities_data.py} +9 -9
- uncountable/types/api/entity/{external_list_entities.py → list_entities.py} +9 -9
- uncountable/types/api/entity/{external_resolve_entity_ids.py → resolve_entity_ids.py} +3 -3
- uncountable/types/api/entity/{external_set_values.py → set_values.py} +6 -6
- uncountable/types/api/input_groups/{external_get_input_group_names.py → get_input_group_names.py} +3 -3
- uncountable/types/api/inputs/{external_create_inputs.py → create_inputs.py} +6 -6
- uncountable/types/api/inputs/{external_get_input_data.py → get_input_data.py} +15 -15
- uncountable/types/api/inputs/{external_get_input_names.py → get_input_names.py} +3 -3
- uncountable/types/api/inputs/{external_get_inputs_data.py → get_inputs_data.py} +15 -15
- uncountable/types/api/inputs/{external_set_input_attribute_values.py → set_input_attribute_values.py} +3 -3
- uncountable/types/api/outputs/{external_get_output_data.py → get_output_data.py} +15 -15
- uncountable/types/api/outputs/{external_get_output_names.py → get_output_names.py} +3 -3
- uncountable/types/api/project/{external_get_projects.py → get_projects.py} +6 -6
- uncountable/types/api/project/{external_get_projects_data.py → get_projects_data.py} +12 -12
- uncountable/types/api/recipe_metadata/{external_get_recipe_metadata_data.py → get_recipe_metadata_data.py} +3 -3
- uncountable/types/api/recipes/{external_create_recipes.py → create_recipes.py} +9 -9
- uncountable/types/api/recipes/{external_get_curve.py → get_curve.py} +7 -7
- uncountable/types/api/recipes/{external_get_recipe_calculations.py → get_recipe_calculations.py} +6 -6
- uncountable/types/api/recipes/get_recipe_links.py +36 -0
- uncountable/types/api/recipes/{external_get_recipe_names.py → get_recipe_names.py} +3 -3
- uncountable/types/api/recipes/{external_get_recipe_output_metadata.py → get_recipe_output_metadata.py} +6 -6
- uncountable/types/api/recipes/{external_get_recipes_data.py → get_recipes_data.py} +57 -57
- uncountable/types/client_base.py +220 -217
- uncountable/types/entity.py +271 -0
- uncountable/types/field_values.py +28 -0
- uncountable/types/{api/recipes/external_get_recipe_links.py → recipe_links.py} +4 -25
- UncountablePythonSDK-0.0.5.dist-info/RECORD +0 -116
- type_spec/external/api/entity/external_create_entities.yaml +0 -55
- type_spec/external/api/recipes/external_get_recipe_links.yaml +0 -61
- {UncountablePythonSDK-0.0.5.dist-info → UncountablePythonSDK-0.0.7.dist-info}/top_level.txt +0 -0
- /type_spec/external/api/outputs/{external_resolve_output_conditions.yaml → resolve_output_conditions.yaml} +0 -0
- /type_spec/external/api/recipes/{external_set_recipe_inputs.yaml → set_recipe_inputs.yaml} +0 -0
- /type_spec/external/api/recipes/{external_set_recipe_outputs.yaml → set_recipe_outputs.yaml} +0 -0
- /uncountable/types/api/outputs/{external_resolve_output_conditions.py → resolve_output_conditions.py} +0 -0
- /uncountable/types/api/recipes/{external_set_recipe_inputs.py → set_recipe_inputs.py} +0 -0
- /uncountable/types/api/recipes/{external_set_recipe_outputs.py → set_recipe_outputs.py} +0 -0
|
@@ -20,7 +20,7 @@ Arguments:
|
|
|
20
20
|
type: Optional<Integer>
|
|
21
21
|
desc: "The number of data points to return. If not filled in, it will be set to 100, and cannot be set higher than 100"
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
SimpleRecipeMetadataField:
|
|
24
24
|
type: Object
|
|
25
25
|
desc: "A descriptor of metadata. Metadata includes values that are neither ingredients nor process parameters, such as a location of an experiment"
|
|
26
26
|
properties:
|
|
@@ -34,7 +34,7 @@ ExternalSimpleRecipeMetadataField:
|
|
|
34
34
|
type: String
|
|
35
35
|
desc: "The quantity type of the metadata, such as numeric or text"
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
RecipeMetadata:
|
|
38
38
|
type: Object
|
|
39
39
|
desc: "The specific value of a metadata for a recipe. Recipe may only have 1 instance of each metadata"
|
|
40
40
|
properties:
|
|
@@ -48,7 +48,7 @@ ExternalRecipeMetadata:
|
|
|
48
48
|
type: JsonValue
|
|
49
49
|
desc: "The value for the metadata, if it is not of numeric type"
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
SimpleRecipeTag:
|
|
52
52
|
type: Object
|
|
53
53
|
desc: "A representation of recipe tags within Uncountable system"
|
|
54
54
|
properties:
|
|
@@ -59,7 +59,7 @@ ExternalSimpleRecipeTag:
|
|
|
59
59
|
type: String
|
|
60
60
|
desc: "The name of the tag"
|
|
61
61
|
|
|
62
|
-
|
|
62
|
+
SimpleExperimentGroup:
|
|
63
63
|
type: Object
|
|
64
64
|
desc: "A representation of experiment groups within Uncountable system"
|
|
65
65
|
properties:
|
|
@@ -70,7 +70,7 @@ ExternalSimpleExperimentGroup:
|
|
|
70
70
|
type: String
|
|
71
71
|
desc: "The name of the group"
|
|
72
72
|
|
|
73
|
-
|
|
73
|
+
SimpleUnit:
|
|
74
74
|
type: Object
|
|
75
75
|
desc: "A representation of units within Uncountable system"
|
|
76
76
|
properties:
|
|
@@ -81,7 +81,7 @@ ExternalSimpleUnit:
|
|
|
81
81
|
type: String
|
|
82
82
|
desc: "The name of the unit"
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
RecipeOutput:
|
|
85
85
|
type: Object
|
|
86
86
|
desc: "A representation of a single measurement associated with a recipe / experiment within Uncountable system"
|
|
87
87
|
properties:
|
|
@@ -107,7 +107,7 @@ ExternalRecipeOutput:
|
|
|
107
107
|
type: Integer
|
|
108
108
|
desc: "A reference to the condition ID for the output (null if there are no conditions). Used to encode complicated test settings such as test standard, aging time, etc."
|
|
109
109
|
|
|
110
|
-
|
|
110
|
+
SimpleOutput:
|
|
111
111
|
type: Object
|
|
112
112
|
desc: "A condensed object representing an output / measurement within Uncountables system"
|
|
113
113
|
properties:
|
|
@@ -118,13 +118,13 @@ ExternalSimpleOutput:
|
|
|
118
118
|
type: String
|
|
119
119
|
desc: "The name of the output"
|
|
120
120
|
unit:
|
|
121
|
-
type: Optional<
|
|
121
|
+
type: Optional<SimpleUnit>
|
|
122
122
|
desc: "The units for the output, if filled in"
|
|
123
123
|
quantity_type:
|
|
124
124
|
type: String
|
|
125
125
|
desc: "The quantity type of the output, with common types including numeric, text, categorical, curve"
|
|
126
126
|
|
|
127
|
-
|
|
127
|
+
ConditionParameterValue:
|
|
128
128
|
type: Object
|
|
129
129
|
desc: "A condition parameter value represents a single association of value with a parameter. For instance, Test Method: ISO 23"
|
|
130
130
|
properties:
|
|
@@ -141,7 +141,7 @@ ExternalConditionParameterValue:
|
|
|
141
141
|
type: JsonValue
|
|
142
142
|
desc: "The quantity associated with the parameter if the parameter is not of numeric type. If this is filled in, quantity_json will not be null"
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
SimpleOutputCondition:
|
|
145
145
|
type: Object
|
|
146
146
|
desc: "Within Uncountable, Output conditions represent how an output is measured. Common use cases include the test temperature, test standard, aging time, etc. An outputcondition is the full description of these parameters"
|
|
147
147
|
properties:
|
|
@@ -149,9 +149,9 @@ ExternalSimpleOutputCondition:
|
|
|
149
149
|
type: Integer
|
|
150
150
|
desc: "The globally unique ID for the Output Condition, used for cross reference elsewhere"
|
|
151
151
|
condition_parameter_values:
|
|
152
|
-
type: List<
|
|
152
|
+
type: List<ConditionParameterValue>
|
|
153
153
|
desc: "The list of parameters and values that comprise this condition"
|
|
154
|
-
|
|
154
|
+
SimpleWorkflowStep:
|
|
155
155
|
type: Object
|
|
156
156
|
desc: "A step associated with a workflow, representing where inputs are placed in the context of a recipe / experiment."
|
|
157
157
|
properties:
|
|
@@ -162,7 +162,7 @@ ExternalSimpleWorkflowStep:
|
|
|
162
162
|
type: String
|
|
163
163
|
desc: "The name of the workflow step"
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
SimpleWorkflow:
|
|
166
166
|
type: Object
|
|
167
167
|
desc: "A workflow object. Workflows represent broad flowcharts for how experimental creation is done, including a graph of steps that lead into each other."
|
|
168
168
|
properties:
|
|
@@ -173,10 +173,10 @@ ExternalSimpleWorkflow:
|
|
|
173
173
|
type: String
|
|
174
174
|
desc: "The name of the workflow"
|
|
175
175
|
workflow_steps:
|
|
176
|
-
type: List<
|
|
176
|
+
type: List<SimpleWorkflowStep>
|
|
177
177
|
desc: "The steps associated with the workflow, representing where inputs are placed in the context of a recipe / experiment."
|
|
178
178
|
|
|
179
|
-
|
|
179
|
+
RecipeInput:
|
|
180
180
|
type: Object
|
|
181
181
|
properties:
|
|
182
182
|
input_id:
|
|
@@ -207,7 +207,7 @@ ExternalRecipeInput:
|
|
|
207
207
|
type: String
|
|
208
208
|
desc: "The behavior of the input relative to the experiment. For example 'inclusion' or 'use quantity'."
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
SimpleInput:
|
|
211
211
|
type: Object
|
|
212
212
|
properties:
|
|
213
213
|
input_id:
|
|
@@ -226,7 +226,7 @@ ExternalSimpleInput:
|
|
|
226
226
|
type: Optional<Integer>
|
|
227
227
|
desc: "The recipe ID of the input if the input is a a recipe (intermediate)."
|
|
228
228
|
|
|
229
|
-
|
|
229
|
+
RecipeStep:
|
|
230
230
|
type: Object
|
|
231
231
|
properties:
|
|
232
232
|
name:
|
|
@@ -242,17 +242,17 @@ ExternalRecipeStep:
|
|
|
242
242
|
type: String
|
|
243
243
|
desc: "Instructions associated with the recipe step"
|
|
244
244
|
|
|
245
|
-
|
|
245
|
+
RecipeStepGroup:
|
|
246
246
|
type: Object
|
|
247
247
|
properties:
|
|
248
248
|
name:
|
|
249
249
|
type: Optional<String>
|
|
250
250
|
desc: "An optional name for the recipe step group. These names are on a per recipe basis, allowing users to individually name sub-components of recipes / experiments"
|
|
251
251
|
recipe_steps:
|
|
252
|
-
type: List<
|
|
252
|
+
type: List<RecipeStep>
|
|
253
253
|
desc: "A listing of recipe steps. Recipe Steps are the base component in Uncountables recipe structure, where inputs are directly placed"
|
|
254
254
|
|
|
255
|
-
|
|
255
|
+
RecipeWorkflowStep:
|
|
256
256
|
type: Object
|
|
257
257
|
desc: "A workflow step associated with a recipe / experiment. Workflow steps are comprised of recipe step groups, in turn comprised of recipe steps, where inputs are located. These groupings exists to give customers the ability to flexibly place inputs into the correct process ordering"
|
|
258
258
|
properties:
|
|
@@ -263,10 +263,10 @@ ExternalRecipeWorkflowStep:
|
|
|
263
263
|
type: Integer
|
|
264
264
|
desc: "A reference to the workflow_step_id for the workflow. This will be shared across recipes / experiments, and can be used to do analysis about what part of a generic process inputs are located in."
|
|
265
265
|
recipe_step_groups:
|
|
266
|
-
type: List<
|
|
266
|
+
type: List<RecipeStepGroup>
|
|
267
267
|
desc: "A listing of recipe step groups within the recipe / experiment"
|
|
268
268
|
|
|
269
|
-
|
|
269
|
+
SimpleUser:
|
|
270
270
|
type: Object
|
|
271
271
|
properties:
|
|
272
272
|
user_id:
|
|
@@ -279,7 +279,7 @@ ExternalSimpleUser:
|
|
|
279
279
|
type: String
|
|
280
280
|
desc: "The email address of the user in Uncountable's system."
|
|
281
281
|
|
|
282
|
-
|
|
282
|
+
RecipeStepRelationship:
|
|
283
283
|
type: Object
|
|
284
284
|
properties:
|
|
285
285
|
step_relationship_id:
|
|
@@ -301,7 +301,7 @@ ExternalRecipeStepRelationship:
|
|
|
301
301
|
type: ObjectId
|
|
302
302
|
desc: "The ID of the recipe step used as the target of this preceding step."
|
|
303
303
|
|
|
304
|
-
|
|
304
|
+
Recipe:
|
|
305
305
|
type: Object
|
|
306
306
|
properties:
|
|
307
307
|
recipe_id:
|
|
@@ -329,16 +329,16 @@ ExternalRecipe:
|
|
|
329
329
|
type: Integer
|
|
330
330
|
desc: "The workflow ID associated with the recipe / experiment. Workflows correspond to a set of experimental steps performed, and are referenced in the workflows return object"
|
|
331
331
|
metadata:
|
|
332
|
-
type: List<
|
|
332
|
+
type: List<RecipeMetadata>
|
|
333
333
|
desc: "Metadata associated with a recipe / experimen. Metadata includes values that are neither ingredients nor process parameters, such as a location of an experiment"
|
|
334
334
|
inputs:
|
|
335
|
-
type: List<
|
|
335
|
+
type: List<RecipeInput>
|
|
336
336
|
desc: "Inputs and quantities of those inputs associated with a recipe / experimen. Uncountable refers to inputs as either ingredients or process parameters."
|
|
337
337
|
outputs:
|
|
338
|
-
type: List<
|
|
338
|
+
type: List<RecipeOutput>
|
|
339
339
|
desc: "Outputs and quantities of those outputs associated with a recipe / experimen. These can be of any form referred to in the Uncountable system."
|
|
340
340
|
workflow_steps:
|
|
341
|
-
type: List<
|
|
341
|
+
type: List<RecipeWorkflowStep>
|
|
342
342
|
desc: "A reference of workflow steps in the recipe / experimen. This is used to reference input values to where they occurred in the experimental process."
|
|
343
343
|
tag_ids:
|
|
344
344
|
type: List<Integer>
|
|
@@ -347,26 +347,26 @@ ExternalRecipe:
|
|
|
347
347
|
type: List<Integer>
|
|
348
348
|
desc: A list of experiment group IDs associated with the recipe / experiment
|
|
349
349
|
step_relationships:
|
|
350
|
-
type: List<
|
|
350
|
+
type: List<RecipeStepRelationship>
|
|
351
351
|
|
|
352
352
|
Data:
|
|
353
353
|
type: Object
|
|
354
354
|
properties:
|
|
355
355
|
recipes:
|
|
356
|
-
type: List<
|
|
356
|
+
type: List<Recipe>
|
|
357
357
|
workflows:
|
|
358
|
-
type: List<
|
|
358
|
+
type: List<SimpleWorkflow>
|
|
359
359
|
metadata:
|
|
360
|
-
type: List<
|
|
360
|
+
type: List<SimpleRecipeMetadataField>
|
|
361
361
|
inputs:
|
|
362
|
-
type: List<
|
|
362
|
+
type: List<SimpleInput>
|
|
363
363
|
outputs:
|
|
364
|
-
type: List<
|
|
364
|
+
type: List<SimpleOutput>
|
|
365
365
|
output_conditions:
|
|
366
|
-
type: List<
|
|
366
|
+
type: List<SimpleOutputCondition>
|
|
367
367
|
users:
|
|
368
|
-
type: List<
|
|
368
|
+
type: List<SimpleUser>
|
|
369
369
|
recipe_tags:
|
|
370
|
-
type: List<
|
|
370
|
+
type: List<SimpleRecipeTag>
|
|
371
371
|
experiment_groups:
|
|
372
|
-
type: List<
|
|
372
|
+
type: List<SimpleExperimentGroup>
|
uncountable/types/__init__.py
CHANGED
|
@@ -4,64 +4,70 @@
|
|
|
4
4
|
# fmt: off
|
|
5
5
|
# isort: skip_file
|
|
6
6
|
from . import base as base_t
|
|
7
|
+
from .api.entity import create_entities as create_entities_t
|
|
8
|
+
from .api.entity import create_entity as create_entity_t
|
|
9
|
+
from .api.inputs import create_inputs as create_inputs_t
|
|
10
|
+
from .api.recipes import create_recipes as create_recipes_t
|
|
11
|
+
from . import entity as entity_t
|
|
7
12
|
from .api.batch import execute_batch as execute_batch_t
|
|
8
|
-
from .
|
|
9
|
-
from .api.
|
|
10
|
-
from .api.
|
|
11
|
-
from .api.
|
|
12
|
-
from .api.
|
|
13
|
-
from .api.
|
|
14
|
-
from .api.inputs import
|
|
15
|
-
from .api.
|
|
16
|
-
from .api.
|
|
17
|
-
from .api.
|
|
18
|
-
from .api.
|
|
19
|
-
from .api.
|
|
20
|
-
from .api.
|
|
21
|
-
from .api.
|
|
22
|
-
from .api.recipes import
|
|
23
|
-
from .api.recipes import
|
|
24
|
-
from .api.
|
|
25
|
-
from .api.
|
|
26
|
-
from .
|
|
27
|
-
from .api.
|
|
28
|
-
from .api.
|
|
29
|
-
from .api.
|
|
30
|
-
from .api.
|
|
31
|
-
from .api.
|
|
32
|
-
from .api.
|
|
33
|
-
from .api.recipes import external_set_recipe_outputs as external_set_recipe_outputs_t
|
|
34
|
-
from .api.entity import external_set_values as external_set_values_t
|
|
13
|
+
from . import field_values as field_values_t
|
|
14
|
+
from .api.recipes import get_curve as get_curve_t
|
|
15
|
+
from .api.entity import get_entities_data as get_entities_data_t
|
|
16
|
+
from .api.inputs import get_input_data as get_input_data_t
|
|
17
|
+
from .api.input_groups import get_input_group_names as get_input_group_names_t
|
|
18
|
+
from .api.inputs import get_input_names as get_input_names_t
|
|
19
|
+
from .api.inputs import get_inputs_data as get_inputs_data_t
|
|
20
|
+
from .api.outputs import get_output_data as get_output_data_t
|
|
21
|
+
from .api.outputs import get_output_names as get_output_names_t
|
|
22
|
+
from .api.project import get_projects as get_projects_t
|
|
23
|
+
from .api.project import get_projects_data as get_projects_data_t
|
|
24
|
+
from .api.recipes import get_recipe_calculations as get_recipe_calculations_t
|
|
25
|
+
from .api.recipes import get_recipe_links as get_recipe_links_t
|
|
26
|
+
from .api.recipe_metadata import get_recipe_metadata_data as get_recipe_metadata_data_t
|
|
27
|
+
from .api.recipes import get_recipe_names as get_recipe_names_t
|
|
28
|
+
from .api.recipes import get_recipe_output_metadata as get_recipe_output_metadata_t
|
|
29
|
+
from .api.recipes import get_recipes_data as get_recipes_data_t
|
|
30
|
+
from .api.entity import list_entities as list_entities_t
|
|
31
|
+
from . import recipe_links as recipe_links_t
|
|
32
|
+
from .api.entity import resolve_entity_ids as resolve_entity_ids_t
|
|
33
|
+
from .api.outputs import resolve_output_conditions as resolve_output_conditions_t
|
|
34
|
+
from .api.inputs import set_input_attribute_values as set_input_attribute_values_t
|
|
35
|
+
from .api.recipes import set_recipe_inputs as set_recipe_inputs_t
|
|
36
|
+
from .api.recipes import set_recipe_outputs as set_recipe_outputs_t
|
|
37
|
+
from .api.entity import set_values as set_values_t
|
|
35
38
|
|
|
36
39
|
|
|
37
40
|
__all__: list[str] = [
|
|
38
41
|
"base_t",
|
|
42
|
+
"create_entities_t",
|
|
43
|
+
"create_entity_t",
|
|
44
|
+
"create_inputs_t",
|
|
45
|
+
"create_recipes_t",
|
|
46
|
+
"entity_t",
|
|
39
47
|
"execute_batch_t",
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"external_set_recipe_outputs_t",
|
|
66
|
-
"external_set_values_t",
|
|
48
|
+
"field_values_t",
|
|
49
|
+
"get_curve_t",
|
|
50
|
+
"get_entities_data_t",
|
|
51
|
+
"get_input_data_t",
|
|
52
|
+
"get_input_group_names_t",
|
|
53
|
+
"get_input_names_t",
|
|
54
|
+
"get_inputs_data_t",
|
|
55
|
+
"get_output_data_t",
|
|
56
|
+
"get_output_names_t",
|
|
57
|
+
"get_projects_t",
|
|
58
|
+
"get_projects_data_t",
|
|
59
|
+
"get_recipe_calculations_t",
|
|
60
|
+
"get_recipe_links_t",
|
|
61
|
+
"get_recipe_metadata_data_t",
|
|
62
|
+
"get_recipe_names_t",
|
|
63
|
+
"get_recipe_output_metadata_t",
|
|
64
|
+
"get_recipes_data_t",
|
|
65
|
+
"list_entities_t",
|
|
66
|
+
"recipe_links_t",
|
|
67
|
+
"resolve_entity_ids_t",
|
|
68
|
+
"resolve_output_conditions_t",
|
|
69
|
+
"set_input_attribute_values_t",
|
|
70
|
+
"set_recipe_inputs_t",
|
|
71
|
+
"set_recipe_outputs_t",
|
|
72
|
+
"set_values_t",
|
|
67
73
|
]
|
|
@@ -8,8 +8,8 @@ import typing # noqa: F401
|
|
|
8
8
|
import datetime # noqa: F401
|
|
9
9
|
from decimal import Decimal # noqa: F401
|
|
10
10
|
from dataclasses import dataclass
|
|
11
|
-
from
|
|
12
|
-
from ... import
|
|
11
|
+
from ... import entity as entity_t
|
|
12
|
+
from ... import field_values as field_values_t
|
|
13
13
|
|
|
14
14
|
__all__: list[str] = [
|
|
15
15
|
"Arguments",
|
|
@@ -17,48 +17,28 @@ __all__: list[str] = [
|
|
|
17
17
|
"ENDPOINT_METHOD",
|
|
18
18
|
"ENDPOINT_PATH",
|
|
19
19
|
"EntityToCreate",
|
|
20
|
-
"ExternalEntity",
|
|
21
|
-
"ExternalEntityFieldInitialValue",
|
|
22
20
|
]
|
|
23
21
|
|
|
24
22
|
ENDPOINT_METHOD = "POST"
|
|
25
23
|
ENDPOINT_PATH = "api/external/entity/external_create_entities"
|
|
26
24
|
|
|
27
25
|
|
|
28
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
29
|
-
@serial_class(
|
|
30
|
-
unconverted_values={"value"},
|
|
31
|
-
)
|
|
32
|
-
@dataclass(kw_only=True)
|
|
33
|
-
class ExternalEntityFieldInitialValue:
|
|
34
|
-
field_ref_name: str
|
|
35
|
-
value: base_t.JsonValue
|
|
36
|
-
row_index: typing.Optional[typing.Optional[int]] = None
|
|
37
|
-
|
|
38
|
-
|
|
39
26
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
40
27
|
@dataclass(kw_only=True)
|
|
41
28
|
class EntityToCreate:
|
|
42
|
-
field_values: typing.Optional[typing.Optional[list[
|
|
29
|
+
field_values: typing.Optional[typing.Optional[list[field_values_t.FieldRefNameValue]]] = None
|
|
43
30
|
|
|
44
31
|
|
|
45
32
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
46
33
|
@dataclass(kw_only=True)
|
|
47
34
|
class Arguments:
|
|
48
35
|
definition_id: int
|
|
49
|
-
entity_type: typing.Union[typing.Literal[
|
|
36
|
+
entity_type: typing.Union[typing.Literal[entity_t.EntityType.LAB_REQUEST], typing.Literal[entity_t.EntityType.APPROVAL], typing.Literal[entity_t.EntityType.CUSTOM_ENTITY], typing.Literal[entity_t.EntityType.TASK], typing.Literal[entity_t.EntityType.PROJECT]]
|
|
50
37
|
entities_to_create: list[EntityToCreate]
|
|
51
38
|
|
|
52
39
|
|
|
53
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
54
|
-
@dataclass(kw_only=True)
|
|
55
|
-
class ExternalEntity:
|
|
56
|
-
id: int
|
|
57
|
-
type: str
|
|
58
|
-
|
|
59
|
-
|
|
60
40
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
61
41
|
@dataclass(kw_only=True)
|
|
62
42
|
class Data:
|
|
63
|
-
entities: list[
|
|
43
|
+
entities: list[entity_t.Entity]
|
|
64
44
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -10,14 +10,15 @@ from decimal import Decimal # noqa: F401
|
|
|
10
10
|
from dataclasses import dataclass
|
|
11
11
|
from pkgs.serialization import serial_class
|
|
12
12
|
from ... import base as base_t
|
|
13
|
+
from ... import entity as entity_t
|
|
14
|
+
from ... import field_values as field_values_t
|
|
13
15
|
|
|
14
16
|
__all__: list[str] = [
|
|
15
17
|
"Arguments",
|
|
16
18
|
"Data",
|
|
17
19
|
"ENDPOINT_METHOD",
|
|
18
20
|
"ENDPOINT_PATH",
|
|
19
|
-
"
|
|
20
|
-
"ExternalEntityFieldInitialValue",
|
|
21
|
+
"EntityFieldInitialValue",
|
|
21
22
|
]
|
|
22
23
|
|
|
23
24
|
ENDPOINT_METHOD = "POST"
|
|
@@ -29,7 +30,7 @@ ENDPOINT_PATH = "api/external/entity/external_create_entity"
|
|
|
29
30
|
unconverted_values={"value"},
|
|
30
31
|
)
|
|
31
32
|
@dataclass(kw_only=True)
|
|
32
|
-
class
|
|
33
|
+
class EntityFieldInitialValue:
|
|
33
34
|
field_ref_name: str
|
|
34
35
|
value: base_t.JsonValue
|
|
35
36
|
row_index: typing.Optional[typing.Optional[int]] = None
|
|
@@ -39,19 +40,12 @@ class ExternalEntityFieldInitialValue:
|
|
|
39
40
|
@dataclass(kw_only=True)
|
|
40
41
|
class Arguments:
|
|
41
42
|
definition_id: int
|
|
42
|
-
entity_type: typing.Union[typing.Literal[
|
|
43
|
-
field_values: typing.Optional[typing.Optional[list[
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
# DO NOT MODIFY -- This file is generated by type_spec
|
|
47
|
-
@dataclass(kw_only=True)
|
|
48
|
-
class ExternalEntity:
|
|
49
|
-
id: int
|
|
50
|
-
type: str
|
|
43
|
+
entity_type: typing.Union[typing.Literal[entity_t.EntityType.LAB_REQUEST], typing.Literal[entity_t.EntityType.APPROVAL], typing.Literal[entity_t.EntityType.CUSTOM_ENTITY], typing.Literal[entity_t.EntityType.TASK], typing.Literal[entity_t.EntityType.PROJECT]]
|
|
44
|
+
field_values: typing.Optional[typing.Optional[list[field_values_t.FieldRefNameValue]]] = None
|
|
51
45
|
|
|
52
46
|
|
|
53
47
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
54
48
|
@dataclass(kw_only=True)
|
|
55
49
|
class Data:
|
|
56
|
-
entity:
|
|
50
|
+
entity: entity_t.Entity
|
|
57
51
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -16,9 +16,9 @@ __all__: list[str] = [
|
|
|
16
16
|
"Data",
|
|
17
17
|
"ENDPOINT_METHOD",
|
|
18
18
|
"ENDPOINT_PATH",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
19
|
+
"Entity",
|
|
20
|
+
"EntityDetails",
|
|
21
|
+
"EntityFieldValue",
|
|
22
22
|
]
|
|
23
23
|
|
|
24
24
|
ENDPOINT_METHOD = "GET"
|
|
@@ -37,7 +37,7 @@ class Arguments:
|
|
|
37
37
|
unconverted_values={"value"},
|
|
38
38
|
)
|
|
39
39
|
@dataclass(kw_only=True)
|
|
40
|
-
class
|
|
40
|
+
class EntityFieldValue:
|
|
41
41
|
field_id: int
|
|
42
42
|
field_ref_name: str
|
|
43
43
|
row_index: typing.Optional[int]
|
|
@@ -46,20 +46,20 @@ class ExternalEntityFieldValue:
|
|
|
46
46
|
|
|
47
47
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
48
48
|
@dataclass(kw_only=True)
|
|
49
|
-
class
|
|
49
|
+
class Entity:
|
|
50
50
|
id: int
|
|
51
51
|
type: str
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
55
55
|
@dataclass(kw_only=True)
|
|
56
|
-
class
|
|
57
|
-
entity:
|
|
58
|
-
field_values: list[
|
|
56
|
+
class EntityDetails:
|
|
57
|
+
entity: Entity
|
|
58
|
+
field_values: list[EntityFieldValue]
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
62
62
|
@dataclass(kw_only=True)
|
|
63
63
|
class Data:
|
|
64
|
-
entity_details: list[
|
|
64
|
+
entity_details: list[EntityDetails]
|
|
65
65
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -13,12 +13,12 @@ from ... import base as base_t
|
|
|
13
13
|
|
|
14
14
|
__all__: list[str] = [
|
|
15
15
|
"Arguments",
|
|
16
|
+
"ColumnAccess",
|
|
16
17
|
"Data",
|
|
17
18
|
"ENDPOINT_METHOD",
|
|
18
19
|
"ENDPOINT_PATH",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"ExternalEntityResult",
|
|
20
|
+
"Entity",
|
|
21
|
+
"EntityResult",
|
|
22
22
|
]
|
|
23
23
|
|
|
24
24
|
ENDPOINT_METHOD = "GET"
|
|
@@ -37,21 +37,21 @@ class Arguments:
|
|
|
37
37
|
|
|
38
38
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
39
39
|
@dataclass(kw_only=True)
|
|
40
|
-
class
|
|
40
|
+
class Entity:
|
|
41
41
|
id: int
|
|
42
42
|
type: str
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
46
46
|
@dataclass(kw_only=True)
|
|
47
|
-
class
|
|
48
|
-
entity:
|
|
47
|
+
class EntityResult:
|
|
48
|
+
entity: Entity
|
|
49
49
|
column_values: list[base_t.JsonValue]
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
53
53
|
@dataclass(kw_only=True)
|
|
54
|
-
class
|
|
54
|
+
class ColumnAccess:
|
|
55
55
|
name: str
|
|
56
56
|
table_label: typing.Optional[str]
|
|
57
57
|
|
|
@@ -59,6 +59,6 @@ class ExternalColumnAccess:
|
|
|
59
59
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
60
60
|
@dataclass(kw_only=True)
|
|
61
61
|
class Data:
|
|
62
|
-
columns: list[
|
|
63
|
-
results: list[
|
|
62
|
+
columns: list[ColumnAccess]
|
|
63
|
+
results: list[EntityResult]
|
|
64
64
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -14,7 +14,7 @@ __all__: list[str] = [
|
|
|
14
14
|
"Data",
|
|
15
15
|
"ENDPOINT_METHOD",
|
|
16
16
|
"ENDPOINT_PATH",
|
|
17
|
-
"
|
|
17
|
+
"EntityNames",
|
|
18
18
|
]
|
|
19
19
|
|
|
20
20
|
ENDPOINT_METHOD = "GET"
|
|
@@ -30,7 +30,7 @@ class Arguments:
|
|
|
30
30
|
|
|
31
31
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
32
32
|
@dataclass(kw_only=True)
|
|
33
|
-
class
|
|
33
|
+
class EntityNames:
|
|
34
34
|
id: typing.Union[str, int]
|
|
35
35
|
name: str
|
|
36
36
|
|
|
@@ -38,5 +38,5 @@ class ExternalEntityNames:
|
|
|
38
38
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
39
39
|
@dataclass(kw_only=True)
|
|
40
40
|
class Data:
|
|
41
|
-
items: list[
|
|
41
|
+
items: list[EntityNames]
|
|
42
42
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
@@ -16,8 +16,8 @@ __all__: list[str] = [
|
|
|
16
16
|
"Data",
|
|
17
17
|
"ENDPOINT_METHOD",
|
|
18
18
|
"ENDPOINT_PATH",
|
|
19
|
-
"
|
|
20
|
-
"
|
|
19
|
+
"Entity",
|
|
20
|
+
"EntityFieldValues",
|
|
21
21
|
]
|
|
22
22
|
|
|
23
23
|
ENDPOINT_METHOD = "POST"
|
|
@@ -29,7 +29,7 @@ ENDPOINT_PATH = "api/external/entity/external_set_values"
|
|
|
29
29
|
unconverted_values={"value"},
|
|
30
30
|
)
|
|
31
31
|
@dataclass(kw_only=True)
|
|
32
|
-
class
|
|
32
|
+
class EntityFieldValues:
|
|
33
33
|
field_ref_name: str
|
|
34
34
|
value: base_t.JsonValue
|
|
35
35
|
row_index: typing.Optional[typing.Optional[int]] = None
|
|
@@ -37,7 +37,7 @@ class ExternalEntityFieldValues:
|
|
|
37
37
|
|
|
38
38
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
39
39
|
@dataclass(kw_only=True)
|
|
40
|
-
class
|
|
40
|
+
class Entity:
|
|
41
41
|
id: int
|
|
42
42
|
type: str
|
|
43
43
|
|
|
@@ -45,8 +45,8 @@ class ExternalEntity:
|
|
|
45
45
|
# DO NOT MODIFY -- This file is generated by type_spec
|
|
46
46
|
@dataclass(kw_only=True)
|
|
47
47
|
class Arguments:
|
|
48
|
-
entity:
|
|
49
|
-
values: list[
|
|
48
|
+
entity: Entity
|
|
49
|
+
values: list[EntityFieldValues]
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
# DO NOT MODIFY -- This file is generated by type_spec
|