amsdal 0.0.40__cp310-cp310-win_amd64.whl → 0.1.0__cp310-cp310-win_amd64.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.
- amsdal/__about__.py +1 -1
- amsdal/cloud/__init__.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/client.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/constants.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/enums.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/models/__init__.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/models/base.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/__init__.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/actions/__init__.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/actions/add_dependency.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/actions/add_secret.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/actions/base.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/actions/create_deploy.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/actions/create_session.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/actions/delete_dependency.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/actions/delete_secret.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/actions/destroy_deploy.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/actions/expose_db.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/actions/list_dependencies.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/actions/list_deploys.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/actions/list_secrets.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/actions/manager.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/actions/signup_action.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/actions/update_deploy.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/auth/__init__.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/auth/base.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/auth/credentials.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/auth/manager.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/auth/signup_service.cp310-win_amd64.pyd +0 -0
- amsdal/cloud/services/auth/token.cp310-win_amd64.pyd +0 -0
- amsdal/configs/constants.py +2 -0
- amsdal/configs/constants.pyi +1 -0
- amsdal/configs/main.py +6 -0
- amsdal/configs/main.pyi +3 -0
- amsdal/contrib/__init__.cp310-win_amd64.pyd +0 -0
- amsdal/contrib/frontend_configs/conversion/convert.py +19 -9
- amsdal/contrib/frontend_configs/conversion/convert.pyi +2 -2
- amsdal/fixtures/__init__.cp310-win_amd64.pyd +0 -0
- amsdal/fixtures/manager.cp310-win_amd64.pyd +0 -0
- amsdal/manager.cp310-win_amd64.pyd +0 -0
- amsdal/manager.pyi +9 -3
- amsdal/migration/__init__.cp310-win_amd64.pyd +0 -0
- amsdal/migration/base_migration_schemas.cp310-win_amd64.pyd +0 -0
- amsdal/migration/base_migration_schemas.pyi +44 -0
- amsdal/migration/data_classes.cp310-win_amd64.pyd +0 -0
- amsdal/migration/data_classes.pyi +78 -0
- amsdal/migration/executors/__init__.cp310-win_amd64.pyd +0 -0
- amsdal/migration/executors/base.cp310-win_amd64.pyd +0 -0
- amsdal/migration/executors/base.pyi +21 -0
- amsdal/migration/executors/default_executor.cp310-win_amd64.pyd +0 -0
- amsdal/migration/executors/default_executor.pyi +20 -0
- amsdal/migration/executors/state_executor.cp310-win_amd64.pyd +0 -0
- amsdal/migration/executors/state_executor.pyi +14 -0
- amsdal/migration/file_migration_executor.cp310-win_amd64.pyd +0 -0
- amsdal/migration/file_migration_executor.pyi +35 -0
- amsdal/migration/file_migration_generator.cp310-win_amd64.pyd +0 -0
- amsdal/migration/file_migration_generator.pyi +49 -0
- amsdal/migration/file_migration_store.cp310-win_amd64.pyd +0 -0
- amsdal/migration/file_migration_store.pyi +33 -0
- amsdal/migration/file_migration_writer.cp310-win_amd64.pyd +0 -0
- amsdal/migration/file_migration_writer.pyi +18 -0
- amsdal/migration/migrations.cp310-win_amd64.pyd +0 -0
- amsdal/migration/migrations.pyi +57 -0
- amsdal/migration/migrations_loader.cp310-win_amd64.pyd +0 -0
- amsdal/migration/migrations_loader.pyi +17 -0
- amsdal/migration/schemas_loaders.cp310-win_amd64.pyd +0 -0
- amsdal/migration/schemas_loaders.pyi +24 -0
- amsdal/migration/utils.cp310-win_amd64.pyd +0 -0
- amsdal/migration/utils.pyi +5 -0
- amsdal/mixins/__init__.cp310-win_amd64.pyd +0 -0
- amsdal/mixins/build_mixin.cp310-win_amd64.pyd +0 -0
- amsdal/mixins/build_mixin.pyi +2 -0
- amsdal/mixins/class_versions_mixin.cp310-win_amd64.pyd +0 -0
- amsdal/mixins/class_versions_mixin.pyi +1 -1
- amsdal/operations/__init__.cp310-win_amd64.pyd +0 -0
- amsdal/operations/manager.cp310-win_amd64.pyd +0 -0
- amsdal/operations/manager.pyi +3 -1
- amsdal/schemas/core/class_object/model.json +5 -58
- amsdal/schemas/core/class_object_meta/model.json +55 -0
- amsdal/schemas/core/class_property/model.json +0 -19
- amsdal/schemas/core/class_property_meta/model.json +23 -0
- amsdal/schemas/manager.cp310-win_amd64.pyd +0 -0
- amsdal/schemas/manager.py +15 -4
- amsdal/schemas/manager.pyi +2 -0
- amsdal/schemas/types/object/model.json +12 -2
- amsdal/services/__init__.cp310-win_amd64.pyd +0 -0
- amsdal/services/transaction_execution.cp310-win_amd64.pyd +0 -0
- {amsdal-0.0.40.dist-info → amsdal-0.1.0.dist-info}/METADATA +14 -14
- {amsdal-0.0.40.dist-info → amsdal-0.1.0.dist-info}/RECORD +93 -94
- amsdal/contrib/auth/models/__init__.py +0 -0
- amsdal/contrib/auth/models/login_session/hooks/pre_init.py +0 -51
- amsdal/contrib/auth/models/login_session/model.json +0 -23
- amsdal/contrib/auth/models/login_session/modifiers/display_name.py +0 -3
- amsdal/contrib/auth/models/permission/fixtures/basic_permissions.json +0 -62
- amsdal/contrib/auth/models/permission/model.json +0 -18
- amsdal/contrib/auth/models/permission/modifiers/display_name.py +0 -3
- amsdal/contrib/auth/models/user/hooks/pre_create.py +0 -2
- amsdal/contrib/auth/models/user/hooks/pre_init.py +0 -25
- amsdal/contrib/auth/models/user/model.json +0 -25
- amsdal/contrib/auth/models/user/modifiers/display_name.py +0 -3
- amsdal/contrib/frontend_configs/models/__init__.py +0 -0
- amsdal/contrib/frontend_configs/models/__init__.pyi +0 -0
- amsdal/contrib/frontend_configs/models/frontend_activator_config/model.json +0 -11
- amsdal/contrib/frontend_configs/models/frontend_config_async_validator/model.json +0 -11
- amsdal/contrib/frontend_configs/models/frontend_config_group_validator/model.json +0 -52
- amsdal/contrib/frontend_configs/models/frontend_config_option/model.json +0 -15
- amsdal/contrib/frontend_configs/models/frontend_config_skip_none_base/model.json +0 -6
- amsdal/contrib/frontend_configs/models/frontend_config_skip_none_base/properties/model_dump.py +0 -13
- amsdal/contrib/frontend_configs/models/frontend_config_slider_option/model.json +0 -19
- amsdal/contrib/frontend_configs/models/frontend_config_text_mask/model.json +0 -26
- amsdal/contrib/frontend_configs/models/frontend_config_validator/model.json +0 -41
- amsdal/contrib/frontend_configs/models/frontend_control_config/model.json +0 -250
- amsdal/contrib/frontend_configs/models/frontend_model_config/model.json +0 -17
- amsdal/contrib/frontend_configs/models/frontent_config_control_action/model.json +0 -54
- amsdal/contrib/frontend_configs/models/frontent_config_control_action/properties/action_validate.py +0 -17
- amsdal/migration/manager.cp310-win_amd64.pyd +0 -0
- amsdal/migration/manager.pyi +0 -20
- /amsdal/{contrib/auth/models → migration/executors}/__init__.pyi +0 -0
- {amsdal-0.0.40.dist-info → amsdal-0.1.0.dist-info}/LICENSE.txt +0 -0
- {amsdal-0.0.40.dist-info → amsdal-0.1.0.dist-info}/WHEEL +0 -0
- {amsdal-0.0.40.dist-info → amsdal-0.1.0.dist-info}/top_level.txt +0 -0
amsdal/contrib/frontend_configs/models/frontend_config_skip_none_base/properties/model_dump.py
DELETED
|
@@ -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
|
-
}
|
amsdal/contrib/frontend_configs/models/frontent_config_control_action/properties/action_validate.py
DELETED
|
@@ -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
|
|
Binary file
|
amsdal/migration/manager.pyi
DELETED
|
@@ -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: ...
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|