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.

Files changed (71) hide show
  1. {UncountablePythonSDK-0.0.5.dist-info → UncountablePythonSDK-0.0.7.dist-info}/METADATA +1 -1
  2. UncountablePythonSDK-0.0.7.dist-info/RECORD +119 -0
  3. {UncountablePythonSDK-0.0.5.dist-info → UncountablePythonSDK-0.0.7.dist-info}/WHEEL +1 -1
  4. pkgs/type_spec/builder.py +0 -61
  5. pkgs/type_spec/config.py +3 -0
  6. pkgs/type_spec/emit_open_api.py +33 -22
  7. pkgs/type_spec/emit_open_api_util.py +6 -2
  8. pkgs/type_spec/emit_python.py +3 -2
  9. type_spec/external/api/entity/create_entities.yaml +33 -0
  10. type_spec/external/api/entity/{external_create_entity.yaml → create_entity.yaml} +4 -14
  11. type_spec/external/api/entity/{external_get_entities_data.yaml → get_entities_data.yaml} +6 -6
  12. type_spec/external/api/entity/{external_list_entities.yaml → list_entities.yaml} +6 -6
  13. type_spec/external/api/entity/{external_resolve_entity_ids.yaml → resolve_entity_ids.yaml} +2 -2
  14. type_spec/external/api/entity/{external_set_values.yaml → set_values.yaml} +4 -4
  15. type_spec/external/api/input_groups/{external_get_input_group_names.yaml → get_input_group_names.yaml} +2 -2
  16. type_spec/external/api/inputs/{external_create_inputs.yaml → create_inputs.yaml} +4 -4
  17. type_spec/external/api/inputs/{external_get_input_data.yaml → get_input_data.yaml} +10 -10
  18. type_spec/external/api/inputs/{external_get_input_names.yaml → get_input_names.yaml} +2 -2
  19. type_spec/external/api/inputs/{external_get_inputs_data.yaml → get_inputs_data.yaml} +10 -10
  20. type_spec/external/api/inputs/{external_set_input_attribute_values.yaml → set_input_attribute_values.yaml} +2 -2
  21. type_spec/external/api/outputs/{external_get_output_data.yaml → get_output_data.yaml} +10 -10
  22. type_spec/external/api/outputs/{external_get_output_names.yaml → get_output_names.yaml} +2 -2
  23. type_spec/external/api/project/{external_get_projects.yaml → get_projects.yaml} +4 -4
  24. type_spec/external/api/project/{external_get_projects_data.yaml → get_projects_data.yaml} +8 -8
  25. type_spec/external/api/recipe_metadata/{external_get_recipe_metadata_data.yaml → get_recipe_metadata_data.yaml} +2 -2
  26. type_spec/external/api/recipes/{external_create_recipes.yaml → create_recipes.yaml} +6 -6
  27. type_spec/external/api/recipes/{external_get_curve.yaml → get_curve.yaml} +5 -5
  28. type_spec/external/api/recipes/{external_get_recipe_calculations.yaml → get_recipe_calculations.yaml} +4 -4
  29. type_spec/external/api/recipes/get_recipe_links.yaml +26 -0
  30. type_spec/external/api/recipes/{external_get_recipe_names.yaml → get_recipe_names.yaml} +2 -2
  31. type_spec/external/api/recipes/{external_get_recipe_output_metadata.yaml → get_recipe_output_metadata.yaml} +4 -4
  32. type_spec/external/api/recipes/{external_get_recipes_data.yaml → get_recipes_data.yaml} +38 -38
  33. uncountable/types/__init__.py +60 -54
  34. uncountable/types/api/entity/{external_create_entities.py → create_entities.py} +5 -25
  35. uncountable/types/api/entity/{external_create_entity.py → create_entity.py} +7 -13
  36. uncountable/types/api/entity/{external_get_entities_data.py → get_entities_data.py} +9 -9
  37. uncountable/types/api/entity/{external_list_entities.py → list_entities.py} +9 -9
  38. uncountable/types/api/entity/{external_resolve_entity_ids.py → resolve_entity_ids.py} +3 -3
  39. uncountable/types/api/entity/{external_set_values.py → set_values.py} +6 -6
  40. uncountable/types/api/input_groups/{external_get_input_group_names.py → get_input_group_names.py} +3 -3
  41. uncountable/types/api/inputs/{external_create_inputs.py → create_inputs.py} +6 -6
  42. uncountable/types/api/inputs/{external_get_input_data.py → get_input_data.py} +15 -15
  43. uncountable/types/api/inputs/{external_get_input_names.py → get_input_names.py} +3 -3
  44. uncountable/types/api/inputs/{external_get_inputs_data.py → get_inputs_data.py} +15 -15
  45. uncountable/types/api/inputs/{external_set_input_attribute_values.py → set_input_attribute_values.py} +3 -3
  46. uncountable/types/api/outputs/{external_get_output_data.py → get_output_data.py} +15 -15
  47. uncountable/types/api/outputs/{external_get_output_names.py → get_output_names.py} +3 -3
  48. uncountable/types/api/project/{external_get_projects.py → get_projects.py} +6 -6
  49. uncountable/types/api/project/{external_get_projects_data.py → get_projects_data.py} +12 -12
  50. uncountable/types/api/recipe_metadata/{external_get_recipe_metadata_data.py → get_recipe_metadata_data.py} +3 -3
  51. uncountable/types/api/recipes/{external_create_recipes.py → create_recipes.py} +9 -9
  52. uncountable/types/api/recipes/{external_get_curve.py → get_curve.py} +7 -7
  53. uncountable/types/api/recipes/{external_get_recipe_calculations.py → get_recipe_calculations.py} +6 -6
  54. uncountable/types/api/recipes/get_recipe_links.py +36 -0
  55. uncountable/types/api/recipes/{external_get_recipe_names.py → get_recipe_names.py} +3 -3
  56. uncountable/types/api/recipes/{external_get_recipe_output_metadata.py → get_recipe_output_metadata.py} +6 -6
  57. uncountable/types/api/recipes/{external_get_recipes_data.py → get_recipes_data.py} +57 -57
  58. uncountable/types/client_base.py +220 -217
  59. uncountable/types/entity.py +271 -0
  60. uncountable/types/field_values.py +28 -0
  61. uncountable/types/{api/recipes/external_get_recipe_links.py → recipe_links.py} +4 -25
  62. UncountablePythonSDK-0.0.5.dist-info/RECORD +0 -116
  63. type_spec/external/api/entity/external_create_entities.yaml +0 -55
  64. type_spec/external/api/recipes/external_get_recipe_links.yaml +0 -61
  65. {UncountablePythonSDK-0.0.5.dist-info → UncountablePythonSDK-0.0.7.dist-info}/top_level.txt +0 -0
  66. /type_spec/external/api/outputs/{external_resolve_output_conditions.yaml → resolve_output_conditions.yaml} +0 -0
  67. /type_spec/external/api/recipes/{external_set_recipe_inputs.yaml → set_recipe_inputs.yaml} +0 -0
  68. /type_spec/external/api/recipes/{external_set_recipe_outputs.yaml → set_recipe_outputs.yaml} +0 -0
  69. /uncountable/types/api/outputs/{external_resolve_output_conditions.py → resolve_output_conditions.py} +0 -0
  70. /uncountable/types/api/recipes/{external_set_recipe_inputs.py → set_recipe_inputs.py} +0 -0
  71. /uncountable/types/api/recipes/{external_set_recipe_outputs.py → set_recipe_outputs.py} +0 -0
@@ -14,7 +14,7 @@ __all__: list[str] = [
14
14
  "Data",
15
15
  "ENDPOINT_METHOD",
16
16
  "ENDPOINT_PATH",
17
- "ExternalSimpleInputGroup",
17
+ "SimpleInputGroup",
18
18
  ]
19
19
 
20
20
  ENDPOINT_METHOD = "GET"
@@ -29,7 +29,7 @@ class Arguments:
29
29
 
30
30
  # DO NOT MODIFY -- This file is generated by type_spec
31
31
  @dataclass(kw_only=True)
32
- class ExternalSimpleInputGroup:
32
+ class SimpleInputGroup:
33
33
  input_group_id: int
34
34
  name: str
35
35
 
@@ -37,5 +37,5 @@ class ExternalSimpleInputGroup:
37
37
  # DO NOT MODIFY -- This file is generated by type_spec
38
38
  @dataclass(kw_only=True)
39
39
  class Data:
40
- input_groups: list[ExternalSimpleInputGroup]
40
+ input_groups: list[SimpleInputGroup]
41
41
  # 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
- "ExternalInputAttributeValue",
20
- "ExternalInputSimple",
19
+ "InputAttributeValue",
20
+ "InputSimple",
21
21
  "InputToCreate",
22
22
  ]
23
23
 
@@ -38,7 +38,7 @@ class InputToCreate:
38
38
  material_family_ids: list[int]
39
39
  quantity_type: typing.Union[typing.Literal["numeric"], typing.Literal["text"]]
40
40
  type: typing.Union[typing.Literal["ingredient"], typing.Literal["process_parameter"]]
41
- attributes: typing.Optional[list[ExternalInputAttributeValue]] = None
41
+ attributes: typing.Optional[list[InputAttributeValue]] = None
42
42
  category_id: typing.Optional[int] = None
43
43
 
44
44
 
@@ -48,7 +48,7 @@ class InputToCreate:
48
48
  to_string_values={"quantity_dec"},
49
49
  )
50
50
  @dataclass(kw_only=True)
51
- class ExternalInputAttributeValue:
51
+ class InputAttributeValue:
52
52
  attribute_id: int
53
53
  quantity_dec: typing.Optional[Decimal] = None
54
54
  quantity_json: typing.Optional[base_t.JsonValue] = None
@@ -56,12 +56,12 @@ class ExternalInputAttributeValue:
56
56
 
57
57
  # DO NOT MODIFY -- This file is generated by type_spec
58
58
  @dataclass(kw_only=True)
59
- class ExternalInputSimple:
59
+ class InputSimple:
60
60
  input_id: int
61
61
 
62
62
 
63
63
  # DO NOT MODIFY -- This file is generated by type_spec
64
64
  @dataclass(kw_only=True)
65
65
  class Data:
66
- inputs: list[ExternalInputSimple]
66
+ inputs: list[InputSimple]
67
67
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -16,11 +16,11 @@ __all__: list[str] = [
16
16
  "Data",
17
17
  "ENDPOINT_METHOD",
18
18
  "ENDPOINT_PATH",
19
- "ExternalFullInput",
20
- "ExternalInputAttrVal",
21
- "ExternalSimpleInputAttr",
22
- "ExternalSimpleInputGlobalCategory",
23
- "ExternalSimpleInputSubcategory",
19
+ "FullInput",
20
+ "InputAttrVal",
21
+ "SimpleInputAttr",
22
+ "SimpleInputGlobalCategory",
23
+ "SimpleInputSubcategory",
24
24
  ]
25
25
 
26
26
  ENDPOINT_METHOD = "GET"
@@ -43,7 +43,7 @@ class Arguments:
43
43
  to_string_values={"quantity_dec"},
44
44
  )
45
45
  @dataclass(kw_only=True)
46
- class ExternalInputAttrVal:
46
+ class InputAttrVal:
47
47
  attribute_id: int
48
48
  quantity_dec: Decimal
49
49
  quantity_json: base_t.JsonValue
@@ -51,7 +51,7 @@ class ExternalInputAttrVal:
51
51
 
52
52
  # DO NOT MODIFY -- This file is generated by type_spec
53
53
  @dataclass(kw_only=True)
54
- class ExternalSimpleInputAttr:
54
+ class SimpleInputAttr:
55
55
  attribute_id: int
56
56
  name: str
57
57
  quantity_type: str
@@ -59,26 +59,26 @@ class ExternalSimpleInputAttr:
59
59
 
60
60
  # DO NOT MODIFY -- This file is generated by type_spec
61
61
  @dataclass(kw_only=True)
62
- class ExternalSimpleInputGlobalCategory:
62
+ class SimpleInputGlobalCategory:
63
63
  category_id: int
64
64
  name: str
65
65
 
66
66
 
67
67
  # DO NOT MODIFY -- This file is generated by type_spec
68
68
  @dataclass(kw_only=True)
69
- class ExternalSimpleInputSubcategory:
69
+ class SimpleInputSubcategory:
70
70
  subcategory_id: int
71
71
  name: str
72
72
 
73
73
 
74
74
  # DO NOT MODIFY -- This file is generated by type_spec
75
75
  @dataclass(kw_only=True)
76
- class ExternalFullInput:
76
+ class FullInput:
77
77
  input_id: int
78
78
  name: str
79
79
  quantity_type: str
80
80
  is_parameter: bool
81
- attributes: list[ExternalInputAttrVal]
81
+ attributes: list[InputAttrVal]
82
82
  global_category_id: int
83
83
  subcategory_ids: list[int]
84
84
 
@@ -86,8 +86,8 @@ class ExternalFullInput:
86
86
  # DO NOT MODIFY -- This file is generated by type_spec
87
87
  @dataclass(kw_only=True)
88
88
  class Data:
89
- inputs: list[ExternalFullInput]
90
- attrs: list[ExternalSimpleInputAttr]
91
- global_categories: list[ExternalSimpleInputGlobalCategory]
92
- subcategories: list[ExternalSimpleInputSubcategory]
89
+ inputs: list[FullInput]
90
+ attrs: list[SimpleInputAttr]
91
+ global_categories: list[SimpleInputGlobalCategory]
92
+ subcategories: list[SimpleInputSubcategory]
93
93
  # 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
- "ExternalInputWithName",
17
+ "InputWithName",
18
18
  ]
19
19
 
20
20
  ENDPOINT_METHOD = "GET"
@@ -32,7 +32,7 @@ class Arguments:
32
32
 
33
33
  # DO NOT MODIFY -- This file is generated by type_spec
34
34
  @dataclass(kw_only=True)
35
- class ExternalInputWithName:
35
+ class InputWithName:
36
36
  input_id: int
37
37
  name: str
38
38
 
@@ -40,5 +40,5 @@ class ExternalInputWithName:
40
40
  # DO NOT MODIFY -- This file is generated by type_spec
41
41
  @dataclass(kw_only=True)
42
42
  class Data:
43
- inputs: list[ExternalInputWithName]
43
+ inputs: list[InputWithName]
44
44
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -13,14 +13,14 @@ from ... import base as base_t
13
13
 
14
14
  __all__: list[str] = [
15
15
  "Arguments",
16
+ "AttributeDetails",
16
17
  "Data",
17
18
  "ENDPOINT_METHOD",
18
19
  "ENDPOINT_PATH",
19
- "ExternalAttributeDetails",
20
- "ExternalInputAttributeValue",
21
- "ExternalInputCategory",
22
- "ExternalInputDetails",
23
- "ExternalInputTag",
20
+ "InputAttributeValue",
21
+ "InputCategory",
22
+ "InputDetails",
23
+ "InputTag",
24
24
  ]
25
25
 
26
26
  ENDPOINT_METHOD = "GET"
@@ -35,7 +35,7 @@ class Arguments:
35
35
 
36
36
  # DO NOT MODIFY -- This file is generated by type_spec
37
37
  @dataclass(kw_only=True)
38
- class ExternalAttributeDetails:
38
+ class AttributeDetails:
39
39
  attribute_id: int
40
40
  name: str
41
41
  quantity_type: str
@@ -47,7 +47,7 @@ class ExternalAttributeDetails:
47
47
  to_string_values={"quantity_dec"},
48
48
  )
49
49
  @dataclass(kw_only=True)
50
- class ExternalInputAttributeValue:
50
+ class InputAttributeValue:
51
51
  attribute_id: int
52
52
  quantity_dec: Decimal
53
53
  quantity_json: base_t.JsonValue
@@ -55,14 +55,14 @@ class ExternalInputAttributeValue:
55
55
 
56
56
  # DO NOT MODIFY -- This file is generated by type_spec
57
57
  @dataclass(kw_only=True)
58
- class ExternalInputTag:
58
+ class InputTag:
59
59
  tag_id: int
60
60
  tag_name: str
61
61
 
62
62
 
63
63
  # DO NOT MODIFY -- This file is generated by type_spec
64
64
  @dataclass(kw_only=True)
65
- class ExternalInputCategory:
65
+ class InputCategory:
66
66
  material_family_id: int
67
67
  category_id: int
68
68
  category_name: str
@@ -70,19 +70,19 @@ class ExternalInputCategory:
70
70
 
71
71
  # DO NOT MODIFY -- This file is generated by type_spec
72
72
  @dataclass(kw_only=True)
73
- class ExternalInputDetails:
73
+ class InputDetails:
74
74
  input_id: int
75
75
  name: str
76
76
  quantity_type: str
77
77
  type: str
78
- attributes: list[ExternalInputAttributeValue]
79
- categories: list[ExternalInputCategory]
80
- tags: list[ExternalInputTag]
78
+ attributes: list[InputAttributeValue]
79
+ categories: list[InputCategory]
80
+ tags: list[InputTag]
81
81
 
82
82
 
83
83
  # DO NOT MODIFY -- This file is generated by type_spec
84
84
  @dataclass(kw_only=True)
85
85
  class Data:
86
- input_details: list[ExternalInputDetails]
87
- input_attributes: list[ExternalAttributeDetails]
86
+ input_details: list[InputDetails]
87
+ input_attributes: list[AttributeDetails]
88
88
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -16,7 +16,7 @@ __all__: list[str] = [
16
16
  "Data",
17
17
  "ENDPOINT_METHOD",
18
18
  "ENDPOINT_PATH",
19
- "ExternalInputAttributeValue",
19
+ "InputAttributeValue",
20
20
  ]
21
21
 
22
22
  ENDPOINT_METHOD = "POST"
@@ -26,7 +26,7 @@ ENDPOINT_PATH = "api/external/inputs/external_set_input_attribute_values"
26
26
  # DO NOT MODIFY -- This file is generated by type_spec
27
27
  @dataclass(kw_only=True)
28
28
  class Arguments:
29
- attribute_values: list[ExternalInputAttributeValue]
29
+ attribute_values: list[InputAttributeValue]
30
30
 
31
31
 
32
32
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -35,7 +35,7 @@ class Arguments:
35
35
  to_string_values={"quantity_dec"},
36
36
  )
37
37
  @dataclass(kw_only=True)
38
- class ExternalInputAttributeValue:
38
+ class InputAttributeValue:
39
39
  input_id: int
40
40
  attribute_id: int
41
41
  quantity_dec: typing.Optional[Decimal] = None
@@ -16,11 +16,11 @@ __all__: list[str] = [
16
16
  "Data",
17
17
  "ENDPOINT_METHOD",
18
18
  "ENDPOINT_PATH",
19
- "ExternalFullOutput",
20
- "ExternalOutputAttrVal",
21
- "ExternalSimpleOutputAttr",
22
- "ExternalSimpleOutputGlobalCategory",
23
- "ExternalSimpleUnit",
19
+ "FullOutput",
20
+ "OutputAttrVal",
21
+ "SimpleOutputAttr",
22
+ "SimpleOutputGlobalCategory",
23
+ "SimpleUnit",
24
24
  ]
25
25
 
26
26
  ENDPOINT_METHOD = "GET"
@@ -42,7 +42,7 @@ class Arguments:
42
42
  to_string_values={"quantity_dec"},
43
43
  )
44
44
  @dataclass(kw_only=True)
45
- class ExternalOutputAttrVal:
45
+ class OutputAttrVal:
46
46
  attribute_id: int
47
47
  quantity_dec: Decimal
48
48
  quantity_json: base_t.JsonValue
@@ -50,7 +50,7 @@ class ExternalOutputAttrVal:
50
50
 
51
51
  # DO NOT MODIFY -- This file is generated by type_spec
52
52
  @dataclass(kw_only=True)
53
- class ExternalSimpleOutputAttr:
53
+ class SimpleOutputAttr:
54
54
  attribute_id: int
55
55
  name: str
56
56
  quantity_type: str
@@ -58,25 +58,25 @@ class ExternalSimpleOutputAttr:
58
58
 
59
59
  # DO NOT MODIFY -- This file is generated by type_spec
60
60
  @dataclass(kw_only=True)
61
- class ExternalSimpleOutputGlobalCategory:
61
+ class SimpleOutputGlobalCategory:
62
62
  category_id: int
63
63
  name: str
64
64
 
65
65
 
66
66
  # DO NOT MODIFY -- This file is generated by type_spec
67
67
  @dataclass(kw_only=True)
68
- class ExternalSimpleUnit:
68
+ class SimpleUnit:
69
69
  unit_id: int
70
70
  name: str
71
71
 
72
72
 
73
73
  # DO NOT MODIFY -- This file is generated by type_spec
74
74
  @dataclass(kw_only=True)
75
- class ExternalFullOutput:
75
+ class FullOutput:
76
76
  output_id: int
77
77
  name: str
78
78
  quantity_type: str
79
- attributes: list[ExternalOutputAttrVal]
79
+ attributes: list[OutputAttrVal]
80
80
  global_category_id: int
81
81
  unit_id: int
82
82
 
@@ -84,8 +84,8 @@ class ExternalFullOutput:
84
84
  # DO NOT MODIFY -- This file is generated by type_spec
85
85
  @dataclass(kw_only=True)
86
86
  class Data:
87
- outputs: list[ExternalFullOutput]
88
- attrs: list[ExternalSimpleOutputAttr]
89
- global_categories: list[ExternalSimpleOutputGlobalCategory]
90
- units: list[ExternalSimpleUnit]
87
+ outputs: list[FullOutput]
88
+ attrs: list[SimpleOutputAttr]
89
+ global_categories: list[SimpleOutputGlobalCategory]
90
+ units: list[SimpleUnit]
91
91
  # 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
- "ExternalOutputWithName",
17
+ "OutputWithName",
18
18
  ]
19
19
 
20
20
  ENDPOINT_METHOD = "GET"
@@ -31,7 +31,7 @@ class Arguments:
31
31
 
32
32
  # DO NOT MODIFY -- This file is generated by type_spec
33
33
  @dataclass(kw_only=True)
34
- class ExternalOutputWithName:
34
+ class OutputWithName:
35
35
  output_id: int
36
36
  name: str
37
37
 
@@ -39,5 +39,5 @@ class ExternalOutputWithName:
39
39
  # DO NOT MODIFY -- This file is generated by type_spec
40
40
  @dataclass(kw_only=True)
41
41
  class Data:
42
- outputs: list[ExternalOutputWithName]
42
+ outputs: list[OutputWithName]
43
43
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -14,8 +14,8 @@ __all__: list[str] = [
14
14
  "Data",
15
15
  "ENDPOINT_METHOD",
16
16
  "ENDPOINT_PATH",
17
- "ExternalPhase",
18
- "ExternalProject",
17
+ "Phase",
18
+ "Project",
19
19
  ]
20
20
 
21
21
  ENDPOINT_METHOD = "GET"
@@ -31,7 +31,7 @@ class Arguments:
31
31
 
32
32
  # DO NOT MODIFY -- This file is generated by type_spec
33
33
  @dataclass(kw_only=True)
34
- class ExternalProject:
34
+ class Project:
35
35
  id: int
36
36
  name: str
37
37
  material_family_id: int
@@ -41,7 +41,7 @@ class ExternalProject:
41
41
 
42
42
  # DO NOT MODIFY -- This file is generated by type_spec
43
43
  @dataclass(kw_only=True)
44
- class ExternalPhase:
44
+ class Phase:
45
45
  id: int
46
46
  name: str
47
47
 
@@ -49,6 +49,6 @@ class ExternalPhase:
49
49
  # DO NOT MODIFY -- This file is generated by type_spec
50
50
  @dataclass(kw_only=True)
51
51
  class Data:
52
- projects: list[ExternalProject]
53
- phases: list[ExternalPhase]
52
+ projects: list[Project]
53
+ phases: list[Phase]
54
54
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -16,10 +16,10 @@ __all__: list[str] = [
16
16
  "Data",
17
17
  "ENDPOINT_METHOD",
18
18
  "ENDPOINT_PATH",
19
- "ExternalField",
20
- "ExternalFieldValue",
21
- "ExternalPhase",
22
- "ExternalProjectDetailed",
19
+ "Field",
20
+ "FieldValue",
21
+ "Phase",
22
+ "ProjectDetailed",
23
23
  ]
24
24
 
25
25
  ENDPOINT_METHOD = "GET"
@@ -36,7 +36,7 @@ class Arguments:
36
36
 
37
37
  # DO NOT MODIFY -- This file is generated by type_spec
38
38
  @dataclass(kw_only=True)
39
- class ExternalField:
39
+ class Field:
40
40
  id: int
41
41
  name: str
42
42
  value_type: str
@@ -47,7 +47,7 @@ class ExternalField:
47
47
  unconverted_values={"value"},
48
48
  )
49
49
  @dataclass(kw_only=True)
50
- class ExternalFieldValue:
50
+ class FieldValue:
51
51
  field_id: int
52
52
  row_index: typing.Optional[int]
53
53
  value: base_t.JsonValue
@@ -55,18 +55,18 @@ class ExternalFieldValue:
55
55
 
56
56
  # DO NOT MODIFY -- This file is generated by type_spec
57
57
  @dataclass(kw_only=True)
58
- class ExternalProjectDetailed:
58
+ class ProjectDetailed:
59
59
  id: int
60
60
  name: str
61
61
  material_family_id: int
62
62
  project_owner_id: typing.Optional[int]
63
63
  phase_id: typing.Optional[int]
64
- values: list[ExternalFieldValue]
64
+ values: list[FieldValue]
65
65
 
66
66
 
67
67
  # DO NOT MODIFY -- This file is generated by type_spec
68
68
  @dataclass(kw_only=True)
69
- class ExternalPhase:
69
+ class Phase:
70
70
  id: int
71
71
  name: str
72
72
 
@@ -74,7 +74,7 @@ class ExternalPhase:
74
74
  # DO NOT MODIFY -- This file is generated by type_spec
75
75
  @dataclass(kw_only=True)
76
76
  class Data:
77
- projects: list[ExternalProjectDetailed]
78
- phases: list[ExternalPhase]
79
- fields: list[ExternalField]
77
+ projects: list[ProjectDetailed]
78
+ phases: list[Phase]
79
+ fields: list[Field]
80
80
  # 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
- "ExternalFullRecipeMetadataField",
17
+ "FullRecipeMetadataField",
18
18
  ]
19
19
 
20
20
  ENDPOINT_METHOD = "GET"
@@ -32,7 +32,7 @@ class Arguments:
32
32
 
33
33
  # DO NOT MODIFY -- This file is generated by type_spec
34
34
  @dataclass(kw_only=True)
35
- class ExternalFullRecipeMetadataField:
35
+ class FullRecipeMetadataField:
36
36
  recipe_metadata_id: int
37
37
  name: str
38
38
  quantity_type: str
@@ -41,5 +41,5 @@ class ExternalFullRecipeMetadataField:
41
41
  # DO NOT MODIFY -- This file is generated by type_spec
42
42
  @dataclass(kw_only=True)
43
43
  class Data:
44
- recipe_metadata: list[ExternalFullRecipeMetadataField]
44
+ recipe_metadata: list[FullRecipeMetadataField]
45
45
  # 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
+ "CreateRecipeDefinition",
17
+ "CreateRecipeResult",
16
18
  "Data",
17
19
  "ENDPOINT_METHOD",
18
20
  "ENDPOINT_PATH",
19
- "ExternalCreateRecipeDefinition",
20
- "ExternalCreateRecipeResult",
21
- "ExternalMetadataValue",
21
+ "MetadataValue",
22
22
  ]
23
23
 
24
24
  ENDPOINT_METHOD = "POST"
@@ -30,7 +30,7 @@ ENDPOINT_PATH = "api/external/recipes/external_create_recipes"
30
30
  to_string_values={"value_numeric"},
31
31
  )
32
32
  @dataclass(kw_only=True)
33
- class ExternalMetadataValue:
33
+ class MetadataValue:
34
34
  metadata_id: int
35
35
  value_numeric: typing.Optional[Decimal] = None
36
36
  value_str: typing.Optional[str] = None
@@ -38,29 +38,29 @@ class ExternalMetadataValue:
38
38
 
39
39
  # DO NOT MODIFY -- This file is generated by type_spec
40
40
  @dataclass(kw_only=True)
41
- class ExternalCreateRecipeDefinition:
41
+ class CreateRecipeDefinition:
42
42
  workflow_id: int
43
43
  name: typing.Optional[str] = None
44
44
  workflow_variant_id: typing.Optional[typing.Optional[base_t.ObjectId]] = None
45
- recipe_metadata: typing.Optional[list[ExternalMetadataValue]] = None
45
+ recipe_metadata: typing.Optional[list[MetadataValue]] = None
46
46
 
47
47
 
48
48
  # DO NOT MODIFY -- This file is generated by type_spec
49
49
  @dataclass(kw_only=True)
50
50
  class Arguments:
51
51
  material_family_id: int
52
- recipe_definitions: list[ExternalCreateRecipeDefinition]
52
+ recipe_definitions: list[CreateRecipeDefinition]
53
53
  project_id: typing.Optional[int] = None
54
54
 
55
55
 
56
56
  # DO NOT MODIFY -- This file is generated by type_spec
57
57
  @dataclass(kw_only=True)
58
- class ExternalCreateRecipeResult:
58
+ class CreateRecipeResult:
59
59
  recipe_id: int
60
60
 
61
61
 
62
62
  # DO NOT MODIFY -- This file is generated by type_spec
63
63
  @dataclass(kw_only=True)
64
64
  class Data:
65
- recipes: list[ExternalCreateRecipeResult]
65
+ recipes: list[CreateRecipeResult]
66
66
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -12,11 +12,11 @@ from pkgs.serialization import serial_class
12
12
 
13
13
  __all__: list[str] = [
14
14
  "Arguments",
15
+ "Curve",
16
+ "CurveValue",
15
17
  "Data",
16
18
  "ENDPOINT_METHOD",
17
19
  "ENDPOINT_PATH",
18
- "ExternalCurve",
19
- "ExternalCurveValue",
20
20
  ]
21
21
 
22
22
  ENDPOINT_METHOD = "GET"
@@ -34,7 +34,7 @@ class Arguments:
34
34
  to_string_values={"quantity"},
35
35
  )
36
36
  @dataclass(kw_only=True)
37
- class ExternalCurveValue:
37
+ class CurveValue:
38
38
  index: int
39
39
  quantity: typing.Optional[Decimal] = None
40
40
  quantity_timestamp: typing.Optional[datetime.datetime] = None
@@ -42,16 +42,16 @@ class ExternalCurveValue:
42
42
 
43
43
  # DO NOT MODIFY -- This file is generated by type_spec
44
44
  @dataclass(kw_only=True)
45
- class ExternalCurve:
45
+ class Curve:
46
46
  id: int
47
47
  x_type: str
48
- x_values: list[ExternalCurveValue]
48
+ x_values: list[CurveValue]
49
49
  y_type: str
50
- y_values: list[ExternalCurveValue]
50
+ y_values: list[CurveValue]
51
51
 
52
52
 
53
53
  # DO NOT MODIFY -- This file is generated by type_spec
54
54
  @dataclass(kw_only=True)
55
55
  class Data:
56
- curve: ExternalCurve
56
+ curve: Curve
57
57
  # DO NOT MODIFY -- This file is generated by type_spec
@@ -13,11 +13,11 @@ from ... import base as base_t
13
13
 
14
14
  __all__: list[str] = [
15
15
  "Arguments",
16
+ "Calculation",
16
17
  "Data",
17
18
  "ENDPOINT_METHOD",
18
19
  "ENDPOINT_PATH",
19
- "ExternalCalculation",
20
- "ExternalRecipeCalculation",
20
+ "RecipeCalculation",
21
21
  ]
22
22
 
23
23
  ENDPOINT_METHOD = "GET"
@@ -37,7 +37,7 @@ class Arguments:
37
37
  to_string_values={"quantity_dec"},
38
38
  )
39
39
  @dataclass(kw_only=True)
40
- class ExternalRecipeCalculation:
40
+ class RecipeCalculation:
41
41
  recipe_id: int
42
42
  calculation_id: int
43
43
  quantity_dec: Decimal
@@ -46,7 +46,7 @@ class ExternalRecipeCalculation:
46
46
 
47
47
  # DO NOT MODIFY -- This file is generated by type_spec
48
48
  @dataclass(kw_only=True)
49
- class ExternalCalculation:
49
+ class Calculation:
50
50
  id: int
51
51
  name: str
52
52
 
@@ -54,6 +54,6 @@ class ExternalCalculation:
54
54
  # DO NOT MODIFY -- This file is generated by type_spec
55
55
  @dataclass(kw_only=True)
56
56
  class Data:
57
- recipe_calculations: list[ExternalRecipeCalculation]
58
- calculations: list[ExternalCalculation]
57
+ recipe_calculations: list[RecipeCalculation]
58
+ calculations: list[Calculation]
59
59
  # DO NOT MODIFY -- This file is generated by type_spec