UncountablePythonSDK 0.0.7__py3-none-any.whl → 0.0.9__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.7.dist-info → UncountablePythonSDK-0.0.9.dist-info}/METADATA +4 -2
- UncountablePythonSDK-0.0.9.dist-info/RECORD +145 -0
- pkgs/argument_parser/argument_parser.py +2 -2
- pkgs/serialization/missing_sentry.py +1 -1
- pkgs/serialization_util/serialization_helpers.py +3 -0
- pkgs/type_spec/emit_open_api.py +34 -17
- pkgs/type_spec/emit_open_api_util.py +4 -9
- pkgs/type_spec/emit_python.py +8 -5
- pkgs/type_spec/open_api_util.py +13 -12
- type_spec/external/api/entity/create_entities.yaml +1 -1
- type_spec/external/api/entity/create_entity.yaml +1 -1
- type_spec/external/api/entity/get_entities_data.yaml +4 -30
- type_spec/external/api/entity/list_entities.yaml +4 -14
- type_spec/external/api/entity/resolve_entity_ids.yaml +2 -2
- type_spec/external/api/entity/set_values.yaml +3 -30
- type_spec/external/api/input_groups/get_input_group_names.yaml +2 -2
- type_spec/external/api/inputs/create_inputs.yaml +6 -19
- type_spec/external/api/inputs/get_input_data.yaml +11 -24
- type_spec/external/api/inputs/get_input_names.yaml +4 -4
- type_spec/external/api/inputs/get_inputs_data.yaml +7 -20
- type_spec/external/api/inputs/set_input_attribute_values.yaml +3 -7
- type_spec/external/api/outputs/get_output_data.yaml +9 -20
- type_spec/external/api/outputs/get_output_names.yaml +2 -2
- type_spec/external/api/project/get_projects.yaml +6 -16
- type_spec/external/api/project/get_projects_data.yaml +10 -46
- type_spec/external/api/recipe_metadata/get_recipe_metadata_data.yaml +5 -5
- type_spec/external/api/recipes/create_recipes.yaml +5 -18
- type_spec/external/api/recipes/get_curve.yaml +2 -34
- type_spec/external/api/recipes/get_recipe_calculations.yaml +7 -17
- type_spec/external/api/recipes/get_recipe_links.yaml +1 -1
- type_spec/external/api/recipes/get_recipe_names.yaml +2 -2
- type_spec/external/api/recipes/get_recipe_output_metadata.yaml +4 -17
- type_spec/external/api/recipes/get_recipes_data.yaml +31 -165
- type_spec/external/api/recipes/set_recipe_inputs.yaml +3 -3
- type_spec/external/api/recipes/set_recipe_outputs.yaml +4 -8
- uncountable/integration/__init__.py +0 -0
- uncountable/integration/construct_client.py +30 -0
- uncountable/integration/cron.py +29 -0
- uncountable/integration/db/__init__.py +0 -0
- uncountable/integration/db/connect.py +8 -0
- uncountable/integration/entrypoint.py +41 -0
- uncountable/integration/executors/__init__.py +0 -0
- uncountable/integration/executors/script_executor.py +18 -0
- uncountable/integration/job.py +39 -0
- uncountable/integration/server.py +86 -0
- uncountable/integration/types.py +89 -0
- uncountable/types/__init__.py +30 -0
- uncountable/types/api/entity/create_entities.py +2 -1
- uncountable/types/api/entity/create_entity.py +1 -1
- uncountable/types/api/entity/get_entities_data.py +6 -26
- uncountable/types/api/entity/list_entities.py +5 -12
- uncountable/types/api/entity/resolve_entity_ids.py +4 -2
- uncountable/types/api/entity/set_values.py +7 -29
- uncountable/types/api/input_groups/get_input_group_names.py +3 -2
- uncountable/types/api/inputs/create_inputs.py +8 -20
- uncountable/types/api/inputs/get_input_data.py +12 -25
- uncountable/types/api/inputs/get_input_names.py +5 -4
- uncountable/types/api/inputs/get_inputs_data.py +8 -21
- uncountable/types/api/inputs/set_input_attribute_values.py +5 -7
- uncountable/types/api/outputs/get_output_data.py +10 -17
- uncountable/types/api/outputs/get_output_names.py +3 -2
- uncountable/types/api/project/get_projects.py +8 -14
- uncountable/types/api/project/get_projects_data.py +13 -40
- uncountable/types/api/recipe_metadata/get_recipe_metadata_data.py +6 -5
- uncountable/types/api/recipes/create_recipes.py +6 -18
- uncountable/types/api/recipes/get_curve.py +4 -26
- uncountable/types/api/recipes/get_recipe_calculations.py +8 -15
- uncountable/types/api/recipes/get_recipe_links.py +2 -1
- uncountable/types/api/recipes/get_recipe_names.py +3 -2
- uncountable/types/api/recipes/get_recipe_output_metadata.py +5 -13
- uncountable/types/api/recipes/get_recipes_data.py +36 -122
- uncountable/types/api/recipes/set_recipe_inputs.py +4 -3
- uncountable/types/api/recipes/set_recipe_outputs.py +7 -8
- uncountable/types/calculations.py +23 -0
- uncountable/types/client_base.py +43 -43
- uncountable/types/curves.py +47 -0
- uncountable/types/entity.py +4 -1
- uncountable/types/experiment_groups.py +23 -0
- uncountable/types/field_values.py +37 -0
- uncountable/types/fields.py +24 -0
- uncountable/types/input_attributes.py +29 -0
- uncountable/types/inputs.py +61 -0
- uncountable/types/outputs.py +26 -0
- uncountable/types/phases.py +23 -0
- uncountable/types/recipe_links.py +3 -2
- uncountable/types/recipe_metadata.py +50 -0
- uncountable/types/recipe_output_metadata.py +24 -0
- uncountable/types/recipe_tags.py +23 -0
- uncountable/types/response.py +25 -0
- uncountable/types/units.py +23 -0
- uncountable/types/users.py +24 -0
- uncountable/types/workflows.py +32 -0
- UncountablePythonSDK-0.0.7.dist-info/RECORD +0 -119
- {UncountablePythonSDK-0.0.7.dist-info → UncountablePythonSDK-0.0.9.dist-info}/WHEEL +0 -0
- {UncountablePythonSDK-0.0.7.dist-info → UncountablePythonSDK-0.0.9.dist-info}/top_level.txt +0 -0
|
@@ -9,39 +9,26 @@ Arguments:
|
|
|
9
9
|
type: Object
|
|
10
10
|
properties:
|
|
11
11
|
material_family_id:
|
|
12
|
-
type:
|
|
12
|
+
type: ObjectId
|
|
13
13
|
desc: "The material family ID to get the input values from."
|
|
14
14
|
input_ids:
|
|
15
|
-
type: Optional<List<
|
|
15
|
+
type: Optional<List<ObjectId>>
|
|
16
16
|
desc: "The input IDs to get the data from. If this is not filled in, all inputs from a material family will be returned (in paginated form)."
|
|
17
|
-
offset
|
|
17
|
+
offset?:
|
|
18
18
|
type: Optional<Integer>
|
|
19
19
|
desc: "Used for pagination, where the number of results returned exceeds the limit. Results are always ordered by the input ID"
|
|
20
20
|
is_parameter:
|
|
21
21
|
type: Optional<Boolean>
|
|
22
22
|
desc: "Whether to get parameters or ingredients. By default both are returned. When set to true, only parameters are returned, and when set to false, only ingredients are returned"
|
|
23
|
-
limit
|
|
23
|
+
limit?:
|
|
24
24
|
type: Optional<Integer>
|
|
25
25
|
desc: "The maximum number of results to return. By default this is set to 1,000 and it cannot be set higher than 1,000"
|
|
26
26
|
|
|
27
|
-
InputAttrVal:
|
|
28
|
-
type: Object
|
|
29
|
-
properties:
|
|
30
|
-
attribute_id:
|
|
31
|
-
type: Integer
|
|
32
|
-
desc: "The unique integer ID for the input attribute value. Used for joining and identification elsewhere."
|
|
33
|
-
quantity_dec:
|
|
34
|
-
type: Decimal
|
|
35
|
-
desc: "The value for the attribute, if it is of numeric type"
|
|
36
|
-
quantity_json:
|
|
37
|
-
type: JsonValue
|
|
38
|
-
desc: "The value for the attribute, if it is not of numeric type"
|
|
39
|
-
|
|
40
27
|
SimpleInputAttr:
|
|
41
28
|
type: Object
|
|
42
29
|
properties:
|
|
43
30
|
attribute_id:
|
|
44
|
-
type:
|
|
31
|
+
type: ObjectId
|
|
45
32
|
desc: "The unique integer ID for the input attribute value. Used for joining and identification elsewhere."
|
|
46
33
|
name:
|
|
47
34
|
type: String
|
|
@@ -54,7 +41,7 @@ SimpleInputGlobalCategory:
|
|
|
54
41
|
type: Object
|
|
55
42
|
properties:
|
|
56
43
|
category_id:
|
|
57
|
-
type:
|
|
44
|
+
type: ObjectId
|
|
58
45
|
desc: "The unique integer ID for the global category. Used for joining and identification elsewhere."
|
|
59
46
|
name:
|
|
60
47
|
type: String
|
|
@@ -64,7 +51,7 @@ SimpleInputSubcategory:
|
|
|
64
51
|
type: Object
|
|
65
52
|
properties:
|
|
66
53
|
subcategory_id:
|
|
67
|
-
type:
|
|
54
|
+
type: ObjectId
|
|
68
55
|
desc: "The unique integer ID for the subcategory. Used for joining and identification elsewhere."
|
|
69
56
|
name:
|
|
70
57
|
type: String
|
|
@@ -74,7 +61,7 @@ FullInput:
|
|
|
74
61
|
type: Object
|
|
75
62
|
properties:
|
|
76
63
|
input_id:
|
|
77
|
-
type:
|
|
64
|
+
type: ObjectId
|
|
78
65
|
desc: "The unique integer ID of the input value. Used for joining and identification elsewhere"
|
|
79
66
|
name:
|
|
80
67
|
type: String
|
|
@@ -86,13 +73,13 @@ FullInput:
|
|
|
86
73
|
type: Boolean
|
|
87
74
|
desc: "Whether the input is a process parameter (true) or an ingredient (false)"
|
|
88
75
|
attributes:
|
|
89
|
-
type: List<
|
|
76
|
+
type: List<input_attributes.InputAttributeValue>
|
|
90
77
|
desc: "Attributes associated with an input, such as CAS number, density, etc."
|
|
91
78
|
global_category_id:
|
|
92
|
-
type:
|
|
79
|
+
type: Optional<ObjectId>
|
|
93
80
|
desc: "The global category ID associated with the input"
|
|
94
81
|
subcategory_ids:
|
|
95
|
-
type: List<
|
|
82
|
+
type: List<ObjectId>
|
|
96
83
|
desc: "The subcategory IDs associated with an input. Inputs can be placed into an unlimited number of subcategories"
|
|
97
84
|
|
|
98
85
|
Data:
|
|
@@ -9,15 +9,15 @@ Arguments:
|
|
|
9
9
|
type: Object
|
|
10
10
|
properties:
|
|
11
11
|
material_family_id:
|
|
12
|
-
type:
|
|
12
|
+
type: ObjectId
|
|
13
13
|
desc: "The material family ID to get the input values from"
|
|
14
|
-
offset
|
|
14
|
+
offset?:
|
|
15
15
|
type: Optional<Integer>
|
|
16
16
|
desc: "Used for pagination, where the number of results returned exceeds the limit. Results are always ordered by the input ID"
|
|
17
17
|
is_parameter:
|
|
18
18
|
type: Optional<Boolean>
|
|
19
19
|
desc: "Whether to get parameters or ingredients. By default both are returned. When set to true, only parameters are returned, and when set to false, only ingredients are returned"
|
|
20
|
-
limit
|
|
20
|
+
limit?:
|
|
21
21
|
type: Optional<Integer>
|
|
22
22
|
desc: "The maximum number of results to return. By default this is set to 20,000 and it cannot be set higher than 20,000"
|
|
23
23
|
|
|
@@ -25,7 +25,7 @@ InputWithName:
|
|
|
25
25
|
type: Object
|
|
26
26
|
properties:
|
|
27
27
|
input_id:
|
|
28
|
-
type:
|
|
28
|
+
type: ObjectId
|
|
29
29
|
desc: "The unique integer ID of the input value. Used for joining and identification elsewhere"
|
|
30
30
|
name:
|
|
31
31
|
type: String
|
|
@@ -9,14 +9,14 @@ Arguments:
|
|
|
9
9
|
type: Object
|
|
10
10
|
properties:
|
|
11
11
|
input_ids:
|
|
12
|
-
type: List<
|
|
12
|
+
type: List<ObjectId>
|
|
13
13
|
desc: "Ids of the inputs to retrieve"
|
|
14
14
|
|
|
15
15
|
AttributeDetails:
|
|
16
16
|
type: Object
|
|
17
17
|
properties:
|
|
18
18
|
attribute_id:
|
|
19
|
-
type:
|
|
19
|
+
type: ObjectId
|
|
20
20
|
desc: "A unique identifier for the attribute."
|
|
21
21
|
name:
|
|
22
22
|
type: String
|
|
@@ -25,24 +25,11 @@ AttributeDetails:
|
|
|
25
25
|
type: String
|
|
26
26
|
desc: "The value type of the attribute"
|
|
27
27
|
|
|
28
|
-
InputAttributeValue:
|
|
29
|
-
type: Object
|
|
30
|
-
properties:
|
|
31
|
-
attribute_id:
|
|
32
|
-
type: Integer
|
|
33
|
-
desc: "A unique identifier for the attribute."
|
|
34
|
-
quantity_dec:
|
|
35
|
-
type: Decimal
|
|
36
|
-
desc: "The value for the metadata, if it is of numeric type"
|
|
37
|
-
quantity_json:
|
|
38
|
-
type: JsonValue
|
|
39
|
-
desc: "The value for the metadata, if it is not of numeric type"
|
|
40
|
-
|
|
41
28
|
InputTag:
|
|
42
29
|
type: Object
|
|
43
30
|
properties:
|
|
44
31
|
tag_id:
|
|
45
|
-
type:
|
|
32
|
+
type: ObjectId
|
|
46
33
|
desc: "A unique identifier for the tag."
|
|
47
34
|
tag_name:
|
|
48
35
|
type: String
|
|
@@ -52,10 +39,10 @@ InputCategory:
|
|
|
52
39
|
type: Object
|
|
53
40
|
properties:
|
|
54
41
|
material_family_id:
|
|
55
|
-
type:
|
|
42
|
+
type: ObjectId
|
|
56
43
|
desc: "A unique identifier for the material family id where the category assignment is made."
|
|
57
44
|
category_id:
|
|
58
|
-
type:
|
|
45
|
+
type: ObjectId
|
|
59
46
|
desc: "A unique identifer for the category"
|
|
60
47
|
category_name:
|
|
61
48
|
type: String
|
|
@@ -65,7 +52,7 @@ InputDetails:
|
|
|
65
52
|
type: Object
|
|
66
53
|
properties:
|
|
67
54
|
input_id:
|
|
68
|
-
type:
|
|
55
|
+
type: ObjectId
|
|
69
56
|
desc: "A unique identifier for the input."
|
|
70
57
|
name:
|
|
71
58
|
type: String
|
|
@@ -77,7 +64,7 @@ InputDetails:
|
|
|
77
64
|
type: String
|
|
78
65
|
desc: "The type of the input. E.g. input, process parameter, equipment"
|
|
79
66
|
attributes:
|
|
80
|
-
type: List<InputAttributeValue>
|
|
67
|
+
type: List<input_attributes.InputAttributeValue>
|
|
81
68
|
desc: "The attributes of the input"
|
|
82
69
|
categories:
|
|
83
70
|
type: List<InputCategory>
|
|
@@ -16,10 +16,10 @@ InputAttributeValue:
|
|
|
16
16
|
type: Object
|
|
17
17
|
properties:
|
|
18
18
|
input_id:
|
|
19
|
-
type:
|
|
19
|
+
type: ObjectId
|
|
20
20
|
desc: "A unique identifier for the input to set the attribute value on"
|
|
21
21
|
attribute_id:
|
|
22
|
-
type:
|
|
22
|
+
type: ObjectId
|
|
23
23
|
desc: "A unique identifier for the attribute."
|
|
24
24
|
quantity_dec?:
|
|
25
25
|
type: Decimal
|
|
@@ -29,9 +29,5 @@ InputAttributeValue:
|
|
|
29
29
|
desc: "The value for the attribute, if it is not of numeric type"
|
|
30
30
|
|
|
31
31
|
Data:
|
|
32
|
-
type:
|
|
32
|
+
type: response.Response
|
|
33
33
|
properties:
|
|
34
|
-
status:
|
|
35
|
-
type: Literal<'ok'>
|
|
36
|
-
default: "ok"
|
|
37
|
-
desc: "'ok' indicates the post request was successful"
|
|
@@ -9,10 +9,10 @@ Arguments:
|
|
|
9
9
|
type: Object
|
|
10
10
|
properties:
|
|
11
11
|
material_family_id:
|
|
12
|
-
type:
|
|
12
|
+
type: ObjectId
|
|
13
13
|
desc: "The material family ID to get the output values from."
|
|
14
14
|
output_ids?:
|
|
15
|
-
type: List<
|
|
15
|
+
type: List<ObjectId>
|
|
16
16
|
desc: "The output IDs to get the data from. If this is not filled in, all outputs from a material family will be returned (in paginated form)."
|
|
17
17
|
offset?:
|
|
18
18
|
type: Integer
|
|
@@ -25,7 +25,7 @@ OutputAttrVal:
|
|
|
25
25
|
type: Object
|
|
26
26
|
properties:
|
|
27
27
|
attribute_id:
|
|
28
|
-
type:
|
|
28
|
+
type: ObjectId
|
|
29
29
|
desc: "The unique integer ID for the output attribute value. Used for joining and identification elsewhere."
|
|
30
30
|
quantity_dec:
|
|
31
31
|
type: Decimal
|
|
@@ -38,7 +38,7 @@ SimpleOutputAttr:
|
|
|
38
38
|
type: Object
|
|
39
39
|
properties:
|
|
40
40
|
attribute_id:
|
|
41
|
-
type:
|
|
41
|
+
type: ObjectId
|
|
42
42
|
desc: "The unique integer ID for the output attribute value. Used for joining and identification elsewhere."
|
|
43
43
|
name:
|
|
44
44
|
type: String
|
|
@@ -51,28 +51,17 @@ SimpleOutputGlobalCategory:
|
|
|
51
51
|
type: Object
|
|
52
52
|
properties:
|
|
53
53
|
category_id:
|
|
54
|
-
type:
|
|
54
|
+
type: ObjectId
|
|
55
55
|
desc: "The unique integer ID for the global category. Used for joining and identification elsewhere."
|
|
56
56
|
name:
|
|
57
57
|
type: String
|
|
58
58
|
desc: "The name of the output global category"
|
|
59
59
|
|
|
60
|
-
SimpleUnit:
|
|
61
|
-
type: Object
|
|
62
|
-
desc: "A representation of units within Uncountable system"
|
|
63
|
-
properties:
|
|
64
|
-
unit_id:
|
|
65
|
-
type: Integer
|
|
66
|
-
desc: "A unique ID for the unit, referenceable elsewhere"
|
|
67
|
-
name:
|
|
68
|
-
type: String
|
|
69
|
-
desc: "The name of the unit"
|
|
70
|
-
|
|
71
60
|
FullOutput:
|
|
72
61
|
type: Object
|
|
73
62
|
properties:
|
|
74
63
|
output_id:
|
|
75
|
-
type:
|
|
64
|
+
type: ObjectId
|
|
76
65
|
desc: "The unique integer ID of the output value. Used for joining and identification elsewhere"
|
|
77
66
|
name:
|
|
78
67
|
type: String
|
|
@@ -84,10 +73,10 @@ FullOutput:
|
|
|
84
73
|
type: List<OutputAttrVal>
|
|
85
74
|
desc: "Attributes associated with an output, such as a test documentation"
|
|
86
75
|
global_category_id:
|
|
87
|
-
type:
|
|
76
|
+
type: Optional<ObjectId>
|
|
88
77
|
desc: "The global category ID associated with the output"
|
|
89
78
|
unit_id:
|
|
90
|
-
type:
|
|
79
|
+
type: Optional<ObjectId>
|
|
91
80
|
desc: "The unit for the output, which all data is stored in. This may be different than the users default displayed information for the output"
|
|
92
81
|
|
|
93
82
|
Data:
|
|
@@ -100,4 +89,4 @@ Data:
|
|
|
100
89
|
global_categories:
|
|
101
90
|
type: List<SimpleOutputGlobalCategory>
|
|
102
91
|
units:
|
|
103
|
-
type: List<SimpleUnit>
|
|
92
|
+
type: List<units.SimpleUnit>
|
|
@@ -9,7 +9,7 @@ Arguments:
|
|
|
9
9
|
type: Object
|
|
10
10
|
properties:
|
|
11
11
|
material_family_id:
|
|
12
|
-
type:
|
|
12
|
+
type: ObjectId
|
|
13
13
|
desc: "The material family ID to get the output values from"
|
|
14
14
|
offset?:
|
|
15
15
|
type: Integer
|
|
@@ -22,7 +22,7 @@ OutputWithName:
|
|
|
22
22
|
type: Object
|
|
23
23
|
properties:
|
|
24
24
|
output_id:
|
|
25
|
-
type:
|
|
25
|
+
type: ObjectId
|
|
26
26
|
desc: "The unique integer ID of the output value. Used for joining and identification elsewhere"
|
|
27
27
|
name:
|
|
28
28
|
type: String
|
|
@@ -11,42 +11,32 @@ Arguments:
|
|
|
11
11
|
type: Boolean
|
|
12
12
|
desc: "Whether to get projects from all material families. Material families are high level groupings of data, usually separated by functional area"
|
|
13
13
|
material_family_id:
|
|
14
|
-
type: Optional<
|
|
14
|
+
type: Optional<ObjectId>
|
|
15
15
|
desc: "The specific material family ID to get projects from. Only fill this in if all_material_families is set to false"
|
|
16
16
|
|
|
17
17
|
Project:
|
|
18
18
|
type: Object
|
|
19
19
|
properties:
|
|
20
20
|
id:
|
|
21
|
-
type:
|
|
21
|
+
type: ObjectId
|
|
22
22
|
desc: "A unique identifier for the project. Used as foreign key to reference elsewhere."
|
|
23
23
|
name:
|
|
24
24
|
type: String
|
|
25
25
|
desc: "The name of the project"
|
|
26
26
|
material_family_id:
|
|
27
|
-
type:
|
|
27
|
+
type: ObjectId
|
|
28
28
|
desc: "A unique identifier for the material family. Used as foreign key to reference elsewhere."
|
|
29
29
|
project_owner_id:
|
|
30
|
-
type: Optional<
|
|
30
|
+
type: Optional<ObjectId>
|
|
31
31
|
desc: "The projects owner, as a user ID within the platform"
|
|
32
32
|
phase_id:
|
|
33
|
-
type: Optional<
|
|
33
|
+
type: Optional<ObjectId>
|
|
34
34
|
desc: "The phase id corresponding to a phase workflow"
|
|
35
35
|
|
|
36
|
-
Phase:
|
|
37
|
-
type: Object
|
|
38
|
-
properties:
|
|
39
|
-
id:
|
|
40
|
-
type: Integer
|
|
41
|
-
desc: "A unique identifier for the phase. Used as foreign key to reference elsewhere."
|
|
42
|
-
name:
|
|
43
|
-
type: String
|
|
44
|
-
desc: "The name of the phase"
|
|
45
|
-
|
|
46
36
|
Data:
|
|
47
37
|
type: Object
|
|
48
38
|
properties:
|
|
49
39
|
projects:
|
|
50
40
|
type: List<Project>
|
|
51
41
|
phases:
|
|
52
|
-
type: List<Phase>
|
|
42
|
+
type: List<phases.Phase>
|
|
@@ -8,79 +8,43 @@ Arguments:
|
|
|
8
8
|
type: Object
|
|
9
9
|
properties:
|
|
10
10
|
project_ids:
|
|
11
|
-
type: List<
|
|
11
|
+
type: List<ObjectId>
|
|
12
12
|
desc: "The projects to get the data from"
|
|
13
|
-
offset
|
|
13
|
+
offset?:
|
|
14
14
|
type: Optional<Integer>
|
|
15
15
|
desc: "Used for pagination. All pagination is done in order of Project ID"
|
|
16
|
-
limit
|
|
16
|
+
limit?:
|
|
17
17
|
type: Optional<Integer>
|
|
18
18
|
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"
|
|
19
19
|
|
|
20
|
-
Field:
|
|
21
|
-
type: Object
|
|
22
|
-
properties:
|
|
23
|
-
id:
|
|
24
|
-
type: Integer
|
|
25
|
-
desc: "A unique identifier for the field"
|
|
26
|
-
name:
|
|
27
|
-
type: String
|
|
28
|
-
desc: "The name of the field"
|
|
29
|
-
value_type:
|
|
30
|
-
type: String
|
|
31
|
-
desc: "The type of the field for instance whether it is numeric, text, categorical"
|
|
32
|
-
|
|
33
|
-
FieldValue:
|
|
34
|
-
type: Object
|
|
35
|
-
properties:
|
|
36
|
-
field_id:
|
|
37
|
-
type: Integer
|
|
38
|
-
desc: "The unique ID for the field"
|
|
39
|
-
row_index:
|
|
40
|
-
type: Optional<Integer>
|
|
41
|
-
desc: "For table fields, which row of the table is the value on"
|
|
42
|
-
value:
|
|
43
|
-
type: JsonValue
|
|
44
|
-
desc: "The value for the field"
|
|
45
|
-
|
|
46
20
|
ProjectDetailed:
|
|
47
21
|
type: Object
|
|
48
22
|
properties:
|
|
49
23
|
id:
|
|
50
|
-
type:
|
|
24
|
+
type: ObjectId
|
|
51
25
|
desc: "A unique identifier for the project. Used as foreign key to reference elsewhere."
|
|
52
26
|
name:
|
|
53
27
|
type: String
|
|
54
28
|
desc: "The name of the project"
|
|
55
29
|
material_family_id:
|
|
56
|
-
type:
|
|
30
|
+
type: ObjectId
|
|
57
31
|
desc: "A unique identifier for the material family. Used as foreign key to reference elsewhere."
|
|
58
32
|
project_owner_id:
|
|
59
|
-
type: Optional<
|
|
33
|
+
type: Optional<ObjectId>
|
|
60
34
|
desc: "The projects owner, as a user ID within the platform"
|
|
61
35
|
phase_id:
|
|
62
|
-
type: Optional<
|
|
36
|
+
type: Optional<ObjectId>
|
|
63
37
|
desc: "The phase id corresponding to a phase workflow"
|
|
64
38
|
values:
|
|
65
|
-
type: List<
|
|
39
|
+
type: List<field_values.ArgumentValueId>
|
|
66
40
|
desc: "List of fields and values associated with the project"
|
|
67
41
|
|
|
68
|
-
Phase:
|
|
69
|
-
type: Object
|
|
70
|
-
properties:
|
|
71
|
-
id:
|
|
72
|
-
type: Integer
|
|
73
|
-
desc: "A unique identifier for the phase. Used as foreign key to reference elsewhere."
|
|
74
|
-
name:
|
|
75
|
-
type: String
|
|
76
|
-
desc: "The name of the phase"
|
|
77
|
-
|
|
78
42
|
Data:
|
|
79
43
|
type: Object
|
|
80
44
|
properties:
|
|
81
45
|
projects:
|
|
82
46
|
type: List<ProjectDetailed>
|
|
83
47
|
phases:
|
|
84
|
-
type: List<Phase>
|
|
48
|
+
type: List<phases.Phase>
|
|
85
49
|
fields:
|
|
86
|
-
type: List<Field>
|
|
50
|
+
type: List<fields.Field>
|
|
@@ -9,15 +9,15 @@ Arguments:
|
|
|
9
9
|
type: Object
|
|
10
10
|
properties:
|
|
11
11
|
material_family_id:
|
|
12
|
-
type:
|
|
12
|
+
type: ObjectId
|
|
13
13
|
desc: "The material family ID to get the recipe metadata values from."
|
|
14
14
|
recipe_metadata_ids:
|
|
15
|
-
type: Optional<List<
|
|
15
|
+
type: Optional<List<ObjectId>>
|
|
16
16
|
desc: "The recipe metadata IDs to get the data from. If this is not filled in, all metadata from a material family will be returned (in paginated form)."
|
|
17
|
-
offset
|
|
17
|
+
offset?:
|
|
18
18
|
type: Optional<Integer>
|
|
19
19
|
desc: "Used for pagination, where the number of results returned exceeds the limit. Results are always ordered by the metadata ID"
|
|
20
|
-
limit
|
|
20
|
+
limit?:
|
|
21
21
|
type: Optional<Integer>
|
|
22
22
|
desc: "The maximum number of results to return. By default this is set to 1,000 and it cannot be set higher than 1,000"
|
|
23
23
|
|
|
@@ -25,7 +25,7 @@ FullRecipeMetadataField:
|
|
|
25
25
|
type: Object
|
|
26
26
|
properties:
|
|
27
27
|
recipe_metadata_id:
|
|
28
|
-
type:
|
|
28
|
+
type: ObjectId
|
|
29
29
|
desc: "The unique integer ID of the recipe metadata value. Used for joining and identification elsewhere"
|
|
30
30
|
name:
|
|
31
31
|
type: String
|
|
@@ -5,19 +5,6 @@ $endpoint:
|
|
|
5
5
|
function: main.site.app.external.recipes.create_recipes.create_recipes
|
|
6
6
|
desc: "Sets inputs values for an experiment. Values set can be numeric, text or categorical types in the Uncountable system"
|
|
7
7
|
|
|
8
|
-
MetadataValue:
|
|
9
|
-
type: Object
|
|
10
|
-
properties:
|
|
11
|
-
metadata_id:
|
|
12
|
-
type: Integer
|
|
13
|
-
desc: The id of the metadata field to populate
|
|
14
|
-
value_numeric?:
|
|
15
|
-
type: Decimal
|
|
16
|
-
desc: "The numeric value for the metadata. Should be none if output is not of type numeric."
|
|
17
|
-
value_str?:
|
|
18
|
-
type: String
|
|
19
|
-
desc: "The string value for the metadata if applicable for this metadata field"
|
|
20
|
-
|
|
21
8
|
CreateRecipeDefinition:
|
|
22
9
|
type: Object
|
|
23
10
|
properties:
|
|
@@ -25,23 +12,23 @@ CreateRecipeDefinition:
|
|
|
25
12
|
type: String
|
|
26
13
|
desc: "The name for the recipe"
|
|
27
14
|
workflow_id:
|
|
28
|
-
type:
|
|
15
|
+
type: ObjectId
|
|
29
16
|
desc: "The identifier of the workflow to create the recipe with"
|
|
30
17
|
workflow_variant_id?:
|
|
31
18
|
type: Optional<ObjectId>
|
|
32
19
|
desc: "The identifier of the workflow variant to create the recipe with"
|
|
33
20
|
recipe_metadata?:
|
|
34
|
-
type: List<MetadataValue>
|
|
21
|
+
type: List<recipe_metadata.MetadataValue>
|
|
35
22
|
desc: "Metadata values to populate the recipe with"
|
|
36
23
|
|
|
37
24
|
Arguments:
|
|
38
25
|
type: Object
|
|
39
26
|
properties:
|
|
40
27
|
material_family_id:
|
|
41
|
-
type:
|
|
28
|
+
type: ObjectId
|
|
42
29
|
desc: "The identifier of the material family to create the recipes in"
|
|
43
30
|
project_id?:
|
|
44
|
-
type:
|
|
31
|
+
type: ObjectId
|
|
45
32
|
desc: "The identifier of the project to create the recipes in"
|
|
46
33
|
recipe_definitions:
|
|
47
34
|
type: List<CreateRecipeDefinition>
|
|
@@ -50,7 +37,7 @@ CreateRecipeResult:
|
|
|
50
37
|
type: Object
|
|
51
38
|
properties:
|
|
52
39
|
recipe_id:
|
|
53
|
-
type:
|
|
40
|
+
type: ObjectId
|
|
54
41
|
desc: The identifier for the created recipe
|
|
55
42
|
|
|
56
43
|
Data:
|
|
@@ -8,43 +8,11 @@ Arguments:
|
|
|
8
8
|
type: Object
|
|
9
9
|
properties:
|
|
10
10
|
recipe_output_id:
|
|
11
|
-
type:
|
|
11
|
+
type: ObjectId
|
|
12
12
|
desc: "The recipe output ID to fetch the curve for. This must be a curve recipe output. Recipe Outputs can be found from external_get_recipes_data"
|
|
13
13
|
|
|
14
|
-
CurveValue:
|
|
15
|
-
type: Object
|
|
16
|
-
properties:
|
|
17
|
-
index:
|
|
18
|
-
type: Integer
|
|
19
|
-
desc: "The index of the value in the curve"
|
|
20
|
-
quantity?:
|
|
21
|
-
type: Decimal
|
|
22
|
-
desc: "The value for the curve if the curve is a numeric curve"
|
|
23
|
-
quantity_timestamp?:
|
|
24
|
-
type: DateTime
|
|
25
|
-
desc: "The timestamp value if the curve is a timestamp curve in UTC"
|
|
26
|
-
|
|
27
|
-
Curve:
|
|
28
|
-
type: Object
|
|
29
|
-
properties:
|
|
30
|
-
id:
|
|
31
|
-
type: Integer
|
|
32
|
-
desc: "The unique integer ID of the curve. Used for joining and identification elsewhere"
|
|
33
|
-
x_type:
|
|
34
|
-
type: String
|
|
35
|
-
desc: "The type of axis for the x-axis. Options include numeric and timestamp"
|
|
36
|
-
x_values:
|
|
37
|
-
type: List<CurveValue>
|
|
38
|
-
desc: "The values for the x-axis"
|
|
39
|
-
y_type:
|
|
40
|
-
type: String
|
|
41
|
-
desc: "The type of axis for the y-axis. Options include numeric"
|
|
42
|
-
y_values:
|
|
43
|
-
type: List<CurveValue>
|
|
44
|
-
desc: "The values for the y-axis"
|
|
45
|
-
|
|
46
14
|
Data:
|
|
47
15
|
type: Object
|
|
48
16
|
properties:
|
|
49
17
|
curve:
|
|
50
|
-
type: Curve
|
|
18
|
+
type: curves.Curve
|
|
@@ -8,42 +8,32 @@ Arguments:
|
|
|
8
8
|
type: Object
|
|
9
9
|
properties:
|
|
10
10
|
recipe_ids:
|
|
11
|
-
type: List<
|
|
11
|
+
type: List<ObjectId>
|
|
12
12
|
desc: "Ids of the Recipes to retrieve calculations for"
|
|
13
13
|
calculation_ids?:
|
|
14
|
-
type: List<
|
|
14
|
+
type: List<ObjectId>
|
|
15
15
|
desc: "Optionally a list of ids of calculations to retrieve"
|
|
16
16
|
|
|
17
17
|
RecipeCalculation:
|
|
18
18
|
type: Object
|
|
19
19
|
properties:
|
|
20
20
|
recipe_id:
|
|
21
|
-
type:
|
|
21
|
+
type: ObjectId
|
|
22
22
|
desc: "Identifier for the recipe"
|
|
23
23
|
calculation_id:
|
|
24
|
-
type:
|
|
24
|
+
type: ObjectId
|
|
25
25
|
desc: "Identifier for the calculation"
|
|
26
|
-
quantity_dec
|
|
26
|
+
quantity_dec?:
|
|
27
27
|
type: Decimal
|
|
28
28
|
desc: "The value for the calculation, if it is of numeric type"
|
|
29
|
-
quantity_json
|
|
29
|
+
quantity_json?:
|
|
30
30
|
type: JsonValue
|
|
31
31
|
desc: "The value for the calculation, if it is not of numeric type"
|
|
32
32
|
|
|
33
|
-
Calculation:
|
|
34
|
-
type: Object
|
|
35
|
-
properties:
|
|
36
|
-
id:
|
|
37
|
-
type: Integer
|
|
38
|
-
desc: "Identifier for the calculation"
|
|
39
|
-
name:
|
|
40
|
-
type: String
|
|
41
|
-
desc: "Name of the calculation"
|
|
42
|
-
|
|
43
33
|
Data:
|
|
44
34
|
type: Object
|
|
45
35
|
properties:
|
|
46
36
|
recipe_calculations:
|
|
47
37
|
type: List<RecipeCalculation>
|
|
48
38
|
calculations:
|
|
49
|
-
type: List<Calculation>
|
|
39
|
+
type: List<calculations.Calculation>
|
|
@@ -9,14 +9,14 @@ Arguments:
|
|
|
9
9
|
type: Object
|
|
10
10
|
properties:
|
|
11
11
|
project_id:
|
|
12
|
-
type:
|
|
12
|
+
type: ObjectId
|
|
13
13
|
desc: "Required: The project ID to get the recipes/experiments from."
|
|
14
14
|
|
|
15
15
|
SimpleRecipe:
|
|
16
16
|
type: Object
|
|
17
17
|
properties:
|
|
18
18
|
id:
|
|
19
|
-
type:
|
|
19
|
+
type: ObjectId
|
|
20
20
|
desc: "The unique integer ID of the recipe/experiment. Used for joining and identification elsewhere"
|
|
21
21
|
name:
|
|
22
22
|
type: String
|