amsdal 0.0.40__cp311-cp311-macosx_10_9_universal2.whl → 0.1.0__cp311-cp311-macosx_10_9_universal2.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 amsdal might be problematic. Click here for more details.

Files changed (121) hide show
  1. amsdal/__about__.py +1 -1
  2. amsdal/cloud/__init__.cpython-311-darwin.so +0 -0
  3. amsdal/cloud/client.cpython-311-darwin.so +0 -0
  4. amsdal/cloud/constants.cpython-311-darwin.so +0 -0
  5. amsdal/cloud/enums.cpython-311-darwin.so +0 -0
  6. amsdal/cloud/models/__init__.cpython-311-darwin.so +0 -0
  7. amsdal/cloud/models/base.cpython-311-darwin.so +0 -0
  8. amsdal/cloud/services/__init__.cpython-311-darwin.so +0 -0
  9. amsdal/cloud/services/actions/__init__.cpython-311-darwin.so +0 -0
  10. amsdal/cloud/services/actions/add_dependency.cpython-311-darwin.so +0 -0
  11. amsdal/cloud/services/actions/add_secret.cpython-311-darwin.so +0 -0
  12. amsdal/cloud/services/actions/base.cpython-311-darwin.so +0 -0
  13. amsdal/cloud/services/actions/create_deploy.cpython-311-darwin.so +0 -0
  14. amsdal/cloud/services/actions/create_session.cpython-311-darwin.so +0 -0
  15. amsdal/cloud/services/actions/delete_dependency.cpython-311-darwin.so +0 -0
  16. amsdal/cloud/services/actions/delete_secret.cpython-311-darwin.so +0 -0
  17. amsdal/cloud/services/actions/destroy_deploy.cpython-311-darwin.so +0 -0
  18. amsdal/cloud/services/actions/expose_db.cpython-311-darwin.so +0 -0
  19. amsdal/cloud/services/actions/list_dependencies.cpython-311-darwin.so +0 -0
  20. amsdal/cloud/services/actions/list_deploys.cpython-311-darwin.so +0 -0
  21. amsdal/cloud/services/actions/list_secrets.cpython-311-darwin.so +0 -0
  22. amsdal/cloud/services/actions/manager.cpython-311-darwin.so +0 -0
  23. amsdal/cloud/services/actions/signup_action.cpython-311-darwin.so +0 -0
  24. amsdal/cloud/services/actions/update_deploy.cpython-311-darwin.so +0 -0
  25. amsdal/cloud/services/auth/__init__.cpython-311-darwin.so +0 -0
  26. amsdal/cloud/services/auth/base.cpython-311-darwin.so +0 -0
  27. amsdal/cloud/services/auth/credentials.cpython-311-darwin.so +0 -0
  28. amsdal/cloud/services/auth/manager.cpython-311-darwin.so +0 -0
  29. amsdal/cloud/services/auth/signup_service.cpython-311-darwin.so +0 -0
  30. amsdal/cloud/services/auth/token.cpython-311-darwin.so +0 -0
  31. amsdal/configs/constants.py +2 -0
  32. amsdal/configs/constants.pyi +1 -0
  33. amsdal/configs/main.py +6 -0
  34. amsdal/configs/main.pyi +3 -0
  35. amsdal/contrib/__init__.cpython-311-darwin.so +0 -0
  36. amsdal/contrib/frontend_configs/conversion/convert.py +19 -9
  37. amsdal/contrib/frontend_configs/conversion/convert.pyi +2 -2
  38. amsdal/fixtures/__init__.cpython-311-darwin.so +0 -0
  39. amsdal/fixtures/manager.cpython-311-darwin.so +0 -0
  40. amsdal/manager.cpython-311-darwin.so +0 -0
  41. amsdal/manager.pyi +9 -3
  42. amsdal/migration/__init__.cpython-311-darwin.so +0 -0
  43. amsdal/migration/base_migration_schemas.cpython-311-darwin.so +0 -0
  44. amsdal/migration/base_migration_schemas.pyi +44 -0
  45. amsdal/migration/data_classes.cpython-311-darwin.so +0 -0
  46. amsdal/migration/data_classes.pyi +78 -0
  47. amsdal/migration/executors/__init__.cpython-311-darwin.so +0 -0
  48. amsdal/migration/executors/base.cpython-311-darwin.so +0 -0
  49. amsdal/migration/executors/base.pyi +21 -0
  50. amsdal/migration/executors/default_executor.cpython-311-darwin.so +0 -0
  51. amsdal/migration/executors/default_executor.pyi +20 -0
  52. amsdal/migration/executors/state_executor.cpython-311-darwin.so +0 -0
  53. amsdal/migration/executors/state_executor.pyi +14 -0
  54. amsdal/migration/file_migration_executor.cpython-311-darwin.so +0 -0
  55. amsdal/migration/file_migration_executor.pyi +35 -0
  56. amsdal/migration/file_migration_generator.cpython-311-darwin.so +0 -0
  57. amsdal/migration/file_migration_generator.pyi +49 -0
  58. amsdal/migration/file_migration_store.cpython-311-darwin.so +0 -0
  59. amsdal/migration/file_migration_store.pyi +33 -0
  60. amsdal/migration/file_migration_writer.cpython-311-darwin.so +0 -0
  61. amsdal/migration/file_migration_writer.pyi +18 -0
  62. amsdal/migration/migrations.cpython-311-darwin.so +0 -0
  63. amsdal/migration/migrations.pyi +57 -0
  64. amsdal/migration/migrations_loader.cpython-311-darwin.so +0 -0
  65. amsdal/migration/migrations_loader.pyi +17 -0
  66. amsdal/migration/schemas_loaders.cpython-311-darwin.so +0 -0
  67. amsdal/migration/schemas_loaders.pyi +24 -0
  68. amsdal/migration/utils.cpython-311-darwin.so +0 -0
  69. amsdal/migration/utils.pyi +5 -0
  70. amsdal/mixins/__init__.cpython-311-darwin.so +0 -0
  71. amsdal/mixins/build_mixin.cpython-311-darwin.so +0 -0
  72. amsdal/mixins/build_mixin.pyi +2 -0
  73. amsdal/mixins/class_versions_mixin.cpython-311-darwin.so +0 -0
  74. amsdal/mixins/class_versions_mixin.pyi +1 -1
  75. amsdal/operations/__init__.cpython-311-darwin.so +0 -0
  76. amsdal/operations/manager.cpython-311-darwin.so +0 -0
  77. amsdal/operations/manager.pyi +3 -1
  78. amsdal/schemas/core/class_object/model.json +5 -58
  79. amsdal/schemas/core/class_object_meta/model.json +55 -0
  80. amsdal/schemas/core/class_property/model.json +0 -19
  81. amsdal/schemas/core/class_property_meta/model.json +23 -0
  82. amsdal/schemas/manager.cpython-311-darwin.so +0 -0
  83. amsdal/schemas/manager.py +15 -4
  84. amsdal/schemas/manager.pyi +2 -0
  85. amsdal/schemas/types/object/model.json +12 -2
  86. amsdal/services/__init__.cpython-311-darwin.so +0 -0
  87. amsdal/services/transaction_execution.cpython-311-darwin.so +0 -0
  88. {amsdal-0.0.40.dist-info → amsdal-0.1.0.dist-info}/METADATA +14 -14
  89. {amsdal-0.0.40.dist-info → amsdal-0.1.0.dist-info}/RECORD +93 -94
  90. amsdal/contrib/auth/models/__init__.py +0 -0
  91. amsdal/contrib/auth/models/login_session/hooks/pre_init.py +0 -51
  92. amsdal/contrib/auth/models/login_session/model.json +0 -23
  93. amsdal/contrib/auth/models/login_session/modifiers/display_name.py +0 -3
  94. amsdal/contrib/auth/models/permission/fixtures/basic_permissions.json +0 -62
  95. amsdal/contrib/auth/models/permission/model.json +0 -18
  96. amsdal/contrib/auth/models/permission/modifiers/display_name.py +0 -3
  97. amsdal/contrib/auth/models/user/hooks/pre_create.py +0 -2
  98. amsdal/contrib/auth/models/user/hooks/pre_init.py +0 -25
  99. amsdal/contrib/auth/models/user/model.json +0 -25
  100. amsdal/contrib/auth/models/user/modifiers/display_name.py +0 -3
  101. amsdal/contrib/frontend_configs/models/__init__.py +0 -0
  102. amsdal/contrib/frontend_configs/models/__init__.pyi +0 -0
  103. amsdal/contrib/frontend_configs/models/frontend_activator_config/model.json +0 -11
  104. amsdal/contrib/frontend_configs/models/frontend_config_async_validator/model.json +0 -11
  105. amsdal/contrib/frontend_configs/models/frontend_config_group_validator/model.json +0 -52
  106. amsdal/contrib/frontend_configs/models/frontend_config_option/model.json +0 -15
  107. amsdal/contrib/frontend_configs/models/frontend_config_skip_none_base/model.json +0 -6
  108. amsdal/contrib/frontend_configs/models/frontend_config_skip_none_base/properties/model_dump.py +0 -13
  109. amsdal/contrib/frontend_configs/models/frontend_config_slider_option/model.json +0 -19
  110. amsdal/contrib/frontend_configs/models/frontend_config_text_mask/model.json +0 -26
  111. amsdal/contrib/frontend_configs/models/frontend_config_validator/model.json +0 -41
  112. amsdal/contrib/frontend_configs/models/frontend_control_config/model.json +0 -250
  113. amsdal/contrib/frontend_configs/models/frontend_model_config/model.json +0 -17
  114. amsdal/contrib/frontend_configs/models/frontent_config_control_action/model.json +0 -54
  115. amsdal/contrib/frontend_configs/models/frontent_config_control_action/properties/action_validate.py +0 -17
  116. amsdal/migration/manager.cpython-311-darwin.so +0 -0
  117. amsdal/migration/manager.pyi +0 -20
  118. /amsdal/{contrib/auth/models → migration/executors}/__init__.pyi +0 -0
  119. {amsdal-0.0.40.dist-info → amsdal-0.1.0.dist-info}/LICENSE.txt +0 -0
  120. {amsdal-0.0.40.dist-info → amsdal-0.1.0.dist-info}/WHEEL +0 -0
  121. {amsdal-0.0.40.dist-info → amsdal-0.1.0.dist-info}/top_level.txt +0 -0
@@ -1,13 +0,0 @@
1
- from typing import Any
2
-
3
-
4
- def model_dump(self, **kwargs: Any) -> dict[str, Any]: # type: ignore[no-untyped-def] # noqa: ARG001
5
- kwargs['exclude_none'] = True
6
-
7
- return super().model_dump(**kwargs) # type: ignore[misc]
8
-
9
-
10
- def model_dump_json(self, **kwargs: Any) -> str: # type: ignore[no-untyped-def] # noqa: ARG001
11
- kwargs['exclude_none'] = True
12
-
13
- return super().model_dump_json(**kwargs) # type: ignore[misc]
@@ -1,19 +0,0 @@
1
- {
2
- "title": "FrontendConfigSliderOption",
3
- "type": "FrontendConfigSkipNoneBase",
4
- "properties": {
5
- "min": {
6
- "title": "Minimum",
7
- "type": "number"
8
- },
9
- "max": {
10
- "title": "Maximum",
11
- "type": "number"
12
- },
13
- "range": {
14
- "title": "Range",
15
- "type": "boolean"
16
- }
17
- },
18
- "meta_class": "TypeMeta"
19
- }
@@ -1,26 +0,0 @@
1
- {
2
- "title": "FrontendConfigTextMask",
3
- "type": "FrontendConfigSkipNoneBase",
4
- "properties": {
5
- "mask_string": {
6
- "title": "Mask String",
7
- "type": "string"
8
- },
9
- "prefix": {
10
- "title": "Prefix",
11
- "type": "string"
12
- },
13
- "suffix": {
14
- "title": "Suffix",
15
- "type": "string"
16
- },
17
- "thousands_separator": {
18
- "title": "Thousands Separator",
19
- "type": "string"
20
- }
21
- },
22
- "required": [
23
- "mask_string"
24
- ],
25
- "meta_class": "TypeMeta"
26
- }
@@ -1,41 +0,0 @@
1
- {
2
- "title": "FrontendConfigValidator",
3
- "type": "FrontendConfigGroupValidator",
4
- "properties": {
5
- "function": {
6
- "title": "Function",
7
- "type": "string",
8
- "options": [
9
- {
10
- "key": "Minimum",
11
- "value": "min"
12
- },
13
- {
14
- "key": "Maximum",
15
- "value": "max"
16
- },
17
- {
18
- "key": "Minimum Length",
19
- "value": "minLength"
20
- },
21
- {
22
- "key": "Maximum Length",
23
- "value": "maxLength"
24
- },
25
- {
26
- "key": "Required",
27
- "value": "required"
28
- },
29
- {
30
- "key": "Pattern",
31
- "value": "pattern"
32
- }
33
- ]
34
- },
35
- "value": {
36
- "title": "Value",
37
- "type": "string"
38
- }
39
- },
40
- "meta_class": "TypeMeta"
41
- }
@@ -1,250 +0,0 @@
1
- {
2
- "title": "FrontendControlConfig",
3
- "type": "FrontendConfigSkipNoneBase",
4
- "properties": {
5
- "type": {
6
- "title": "Type",
7
- "type": "string",
8
- "options": [
9
- {
10
- "key": "Infoscreen",
11
- "value": "infoscreen"
12
- },
13
- {
14
- "key": "Info Group",
15
- "value": "info-group"
16
- },
17
- {
18
- "key": "Text",
19
- "value": "text"
20
- },
21
- {
22
- "key": "Number",
23
- "value": "number"
24
- },
25
- {
26
- "key": "Select",
27
- "value": "select"
28
- },
29
- {
30
- "key": "Object Group",
31
- "value": "object_group"
32
- },
33
- {
34
- "key": "Group",
35
- "value": "group"
36
- },
37
- {
38
- "key": "Group Toggle",
39
- "value": "group_toggle"
40
- },
41
- {
42
- "key": "Group Switch",
43
- "value": "group_switch"
44
- },
45
- {
46
- "key": "Password",
47
- "value": "password"
48
- },
49
- {
50
- "key": "Email",
51
- "value": "email"
52
- },
53
- {
54
- "key": "Phone",
55
- "value": "phone"
56
- },
57
- {
58
- "key": "textarea",
59
- "value": "textarea"
60
- },
61
- {
62
- "key": "Multiselect",
63
- "value": "multiselect"
64
- },
65
- {
66
- "key": "number_initial",
67
- "value": "number_initial"
68
- },
69
- {
70
- "key": "number_plus",
71
- "value": "number_plus"
72
- },
73
- {
74
- "key": "number_minus",
75
- "value": "number_minus"
76
- },
77
- {
78
- "key": "number_equals",
79
- "value": "number_equals"
80
- },
81
- {
82
- "key": "toggle",
83
- "value": "toggle"
84
- },
85
- {
86
- "key": "radio",
87
- "value": "radio"
88
- },
89
- {
90
- "key": "checkbox",
91
- "value": "checkbox"
92
- },
93
- {
94
- "key": "number-slider",
95
- "value": "number-slider"
96
- },
97
- {
98
- "key": "number-operations",
99
- "value": "number-operations"
100
- },
101
- {
102
- "key": "date",
103
- "value": "date"
104
- },
105
- {
106
- "key": "dateTriplet",
107
- "value": "dateTriplet"
108
- },
109
- {
110
- "key": "array",
111
- "value": "array"
112
- },
113
- {
114
- "key": "object",
115
- "value": "object"
116
- },
117
- {
118
- "key": "file",
119
- "value": "file"
120
- },
121
- {
122
- "key": "dropzone",
123
- "value": "dropzone"
124
- },
125
- {
126
- "key": "object_latest",
127
- "value": "object_latest"
128
- },
129
- {
130
- "key": "Dictionary",
131
- "value": "dict"
132
- },
133
- {
134
- "key": "Time",
135
- "value": "time"
136
- },
137
- {
138
- "key": "Datetime",
139
- "value": "datetime"
140
- },
141
- {
142
- "key": "Bytes",
143
- "value": "Bytes"
144
- }
145
- ]
146
- },
147
- "name": {
148
- "title": "Name",
149
- "type": "string"
150
- },
151
- "label": {
152
- "title": "Label",
153
- "type": "string"
154
- },
155
- "required": {
156
- "title": "Required",
157
- "type": "boolean"
158
- },
159
- "hideLabel": {
160
- "title": "Hide Label",
161
- "type": "boolean"
162
- },
163
- "actions": {
164
- "title": "Actions",
165
- "type": "array",
166
- "items": {
167
- "type": "FrontendConfigControlAction"
168
- }
169
- },
170
- "validators": {
171
- "title": "Validators",
172
- "type": "array",
173
- "items": {
174
- "type": "FrontendConfigValidator"
175
- }
176
- },
177
- "asyncValidators": {
178
- "title": "Async Validators",
179
- "type": "array",
180
- "items": {
181
- "type": "FrontendConfigAsyncValidator"
182
- }
183
- },
184
- "activators": {
185
- "title": "Activators",
186
- "type": "array",
187
- "items": {
188
- "type": "FrontendActivatorConfig"
189
- }
190
- },
191
- "additionalText": {
192
- "title": "Additional Text",
193
- "type": "string"
194
- },
195
- "value": {
196
- "title": "Value",
197
- "type": "anything"
198
- },
199
- "placeholder": {
200
- "title": "Placeholder",
201
- "type": "string"
202
- },
203
- "options": {
204
- "title": "Options",
205
- "type": "array",
206
- "items": {
207
- "type": "FrontendConfigOption"
208
- }
209
- },
210
- "mask": {
211
- "title": "Mask",
212
- "type": "FrontendConfigTextMask"
213
- },
214
- "controls": {
215
- "title": "Controls",
216
- "type": "array",
217
- "items": {
218
- "type": "FrontendControlConfig"
219
- }
220
- },
221
- "showSearch": {
222
- "title": "Show Search",
223
- "type": "boolean"
224
- },
225
- "sliderOptions": {
226
- "title": "Slider Option",
227
- "type": "FrontendConfigSliderOption"
228
- },
229
- "customLabel": {
230
- "title": "Custom Label",
231
- "type": "array",
232
- "items": {
233
- "type": "string"
234
- }
235
- },
236
- "control": {
237
- "title": "Control",
238
- "type": "FrontendControlConfig"
239
- },
240
- "entityType": {
241
- "title": "Entity Type",
242
- "type": "string"
243
- }
244
- },
245
- "required": [
246
- "type",
247
- "name"
248
- ],
249
- "meta_class": "TypeMeta"
250
- }
@@ -1,17 +0,0 @@
1
- {
2
- "title": "FrontendModelConfig",
3
- "type": "object",
4
- "properties": {
5
- "class_name": {
6
- "title": "Class Name",
7
- "type": "string"
8
- },
9
- "control": {
10
- "title": "Control",
11
- "type": "FrontendControlConfig"
12
- }
13
- },
14
- "required": [
15
- "class_name"
16
- ]
17
- }
@@ -1,54 +0,0 @@
1
- {
2
- "title": "FrontendConfigControlAction",
3
- "type": "FrontendConfigSkipNoneBase",
4
- "properties": {
5
- "action": {
6
- "title": "Action",
7
- "type": "string"
8
- },
9
- "text": {
10
- "title": "Text",
11
- "type": "string"
12
- },
13
- "type": {
14
- "title": "Type",
15
- "type": "string",
16
- "options": [
17
- {
18
- "key": "Arrow Next",
19
- "value": "arrow-next"
20
- },
21
- {
22
- "key": "Arrow Prev",
23
- "value": "arrow-prev"
24
- },
25
- {
26
- "key": "Action Button",
27
- "value": "action-button"
28
- },
29
- {
30
- "key": "Text Next",
31
- "value": "text-next"
32
- },
33
- {
34
- "key": "Text Prev",
35
- "value": "text-prev"
36
- }
37
- ]
38
- },
39
- "dataLayerEvent": {
40
- "title": "Data Layer Event",
41
- "type": "string"
42
- },
43
- "activator": {
44
- "title": "Activator",
45
- "type": "string"
46
- },
47
- "icon": {
48
- "title": "Icon",
49
- "type": "string"
50
- }
51
- },
52
- "required": ["action", "text", "type"],
53
- "meta_class": "TypeMeta"
54
- }
@@ -1,17 +0,0 @@
1
- from pydantic import field_validator
2
-
3
-
4
- @field_validator('action', mode='after') # type: ignore[misc]
5
- @classmethod
6
- def validate_action(cls, v: str) -> str: # type: ignore[no-untyped-def] # noqa: ARG001
7
- if not v.startswith('navigate::') and v not in [
8
- 'goPrev',
9
- 'goNext',
10
- 'goNextWithSubmit',
11
- 'submit',
12
- 'submitWithDataLayer',
13
- ]:
14
- msg = 'Action must be one of: goPrev, goNext, goNextWithSubmit, submit, submitWithDataLayer, navigate::{string}'
15
- raise ValueError(msg)
16
-
17
- return v
@@ -1,20 +0,0 @@
1
- from _typeshed import Incomplete
2
- from amsdal.migration.utils import object_schema_to_table_schema as object_schema_to_table_schema
3
- from amsdal.schemas.manager import SchemaManager as SchemaManager
4
- from amsdal_data.table_schemas.manager import TableSchemasManager
5
- from amsdal_models.classes.manager import ClassManager
6
- from amsdal_models.classes.model import Model
7
- from amsdal_models.schemas.data_models.schema import ObjectSchema
8
- from amsdal_utils.models.enums import SchemaTypes
9
-
10
- class MigrationManager:
11
- _schema_manager: Incomplete
12
- _table_schemas_manager: Incomplete
13
- _class_manager: Incomplete
14
- def __init__(self, schema_manager: SchemaManager, table_schema_manager: TableSchemasManager, class_manager: ClassManager) -> None: ...
15
- def run_migrations(self) -> None: ...
16
- def refresh_state_db(self) -> None: ...
17
- def _refresh_state_db(self, base_model: type[Model]) -> None: ...
18
- def migrate_class(self, object_schema: ObjectSchema, base_class: type[Model], schema_type: SchemaTypes, *, skip_data_migrations: bool = False) -> tuple[Model, bool]: ...
19
- def _register_class_version(self, object_schema: ObjectSchema, class_version: str = '', *, create_table: bool = False) -> None: ...
20
- def _migrate_class_objects(self, class_name: str, prior_version: str, new_version: str, schema_type: SchemaTypes) -> None: ...