shopware-api-client 1.0.101__py3-none-any.whl → 1.1.1__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.
Files changed (292) hide show
  1. shopware_api_client/base.py +490 -202
  2. shopware_api_client/cache.py +157 -0
  3. shopware_api_client/client.py +2 -2
  4. shopware_api_client/config.py +4 -3
  5. shopware_api_client/endpoints/admin/__init__.py +20 -4
  6. shopware_api_client/endpoints/admin/commercial/b2b_components_role.py +5 -20
  7. shopware_api_client/endpoints/admin/commercial/b2b_components_shopping_list.py +22 -0
  8. shopware_api_client/endpoints/admin/commercial/b2b_components_shopping_list_line_item.py +20 -0
  9. shopware_api_client/endpoints/admin/commercial/b2b_employee.py +5 -27
  10. shopware_api_client/endpoints/admin/commercial/dynamic_access.py +9 -19
  11. shopware_api_client/endpoints/admin/core/acl_role.py +5 -19
  12. shopware_api_client/endpoints/admin/core/api_info.py +11 -12
  13. shopware_api_client/endpoints/admin/core/app.py +5 -42
  14. shopware_api_client/endpoints/admin/core/app_script_condition.py +5 -24
  15. shopware_api_client/endpoints/admin/core/category.py +5 -56
  16. shopware_api_client/endpoints/admin/core/cms_block.py +5 -34
  17. shopware_api_client/endpoints/admin/core/cms_page.py +5 -26
  18. shopware_api_client/endpoints/admin/core/cms_section.py +5 -35
  19. shopware_api_client/endpoints/admin/core/cms_slot.py +5 -31
  20. shopware_api_client/endpoints/admin/core/country.py +5 -37
  21. shopware_api_client/endpoints/admin/core/country_state.py +5 -23
  22. shopware_api_client/endpoints/admin/core/currency.py +5 -33
  23. shopware_api_client/endpoints/admin/core/currency_country_rounding.py +5 -20
  24. shopware_api_client/endpoints/admin/core/custom_entity.py +4 -26
  25. shopware_api_client/endpoints/admin/core/custom_field.py +4 -14
  26. shopware_api_client/endpoints/admin/core/customer.py +5 -57
  27. shopware_api_client/endpoints/admin/core/customer_address.py +6 -33
  28. shopware_api_client/endpoints/admin/core/customer_group.py +5 -24
  29. shopware_api_client/endpoints/admin/core/customer_recovery.py +5 -16
  30. shopware_api_client/endpoints/admin/core/customer_wishlist.py +5 -19
  31. shopware_api_client/endpoints/admin/core/customer_wishlist_product.py +5 -19
  32. shopware_api_client/endpoints/admin/core/delivery_time.py +5 -21
  33. shopware_api_client/endpoints/admin/core/document.py +5 -28
  34. shopware_api_client/endpoints/admin/core/document_base_config.py +5 -27
  35. shopware_api_client/endpoints/admin/core/document_base_config_sales_channel.py +7 -20
  36. shopware_api_client/endpoints/admin/core/document_type.py +5 -19
  37. shopware_api_client/endpoints/admin/core/integration.py +5 -25
  38. shopware_api_client/endpoints/admin/core/landing_page.py +5 -28
  39. shopware_api_client/endpoints/admin/core/language.py +5 -21
  40. shopware_api_client/endpoints/admin/core/locale.py +5 -20
  41. shopware_api_client/endpoints/admin/core/main_category.py +5 -19
  42. shopware_api_client/endpoints/admin/core/media.py +25 -37
  43. shopware_api_client/endpoints/admin/core/media_default_folder.py +4 -17
  44. shopware_api_client/endpoints/admin/core/media_folder.py +5 -26
  45. shopware_api_client/endpoints/admin/core/media_folder_configuration.py +5 -21
  46. shopware_api_client/endpoints/admin/core/media_thumbnail.py +5 -24
  47. shopware_api_client/endpoints/admin/core/media_thumbnail_size.py +7 -18
  48. shopware_api_client/endpoints/admin/core/order.py +12 -48
  49. shopware_api_client/endpoints/admin/core/order_address.py +6 -34
  50. shopware_api_client/endpoints/admin/core/order_customer.py +6 -29
  51. shopware_api_client/endpoints/admin/core/order_delivery.py +5 -30
  52. shopware_api_client/endpoints/admin/core/order_delivery_position.py +5 -26
  53. shopware_api_client/endpoints/admin/core/order_line_item.py +7 -44
  54. shopware_api_client/endpoints/admin/core/order_line_item_download.py +5 -23
  55. shopware_api_client/endpoints/admin/core/order_transaction.py +5 -25
  56. shopware_api_client/endpoints/admin/core/order_transaction_capture.py +5 -27
  57. shopware_api_client/endpoints/admin/core/order_transaction_capture_refund.py +7 -28
  58. shopware_api_client/endpoints/admin/core/order_transaction_capture_refund_position.py +8 -29
  59. shopware_api_client/endpoints/admin/core/payment_method.py +5 -52
  60. shopware_api_client/endpoints/admin/core/product.py +24 -90
  61. shopware_api_client/endpoints/admin/core/product_configurator_setting.py +5 -26
  62. shopware_api_client/endpoints/admin/core/product_cross_selling.py +5 -27
  63. shopware_api_client/endpoints/admin/core/product_cross_selling_assigned_products.py +7 -21
  64. shopware_api_client/endpoints/admin/core/product_download.py +5 -22
  65. shopware_api_client/endpoints/admin/core/product_export.py +5 -34
  66. shopware_api_client/endpoints/admin/core/product_feature_set.py +5 -19
  67. shopware_api_client/endpoints/admin/core/product_manufacturer.py +5 -23
  68. shopware_api_client/endpoints/admin/core/product_media.py +5 -22
  69. shopware_api_client/endpoints/admin/core/product_price.py +5 -24
  70. shopware_api_client/endpoints/admin/core/product_review.py +5 -29
  71. shopware_api_client/endpoints/admin/core/product_search_keyword.py +5 -20
  72. shopware_api_client/endpoints/admin/core/product_stream.py +5 -23
  73. shopware_api_client/endpoints/admin/core/product_visibility.py +5 -18
  74. shopware_api_client/endpoints/admin/core/product_warehouse.py +5 -17
  75. shopware_api_client/endpoints/admin/core/promotion.py +5 -38
  76. shopware_api_client/endpoints/admin/core/promotion_discount.py +5 -24
  77. shopware_api_client/endpoints/admin/core/promotion_discount_prices.py +5 -19
  78. shopware_api_client/endpoints/admin/core/property_group.py +5 -24
  79. shopware_api_client/endpoints/admin/core/property_group_option.py +5 -23
  80. shopware_api_client/endpoints/admin/core/rule.py +5 -24
  81. shopware_api_client/endpoints/admin/core/rule_condition.py +5 -23
  82. shopware_api_client/endpoints/admin/core/sales_channel.py +6 -53
  83. shopware_api_client/endpoints/admin/core/sales_channel_domain.py +5 -23
  84. shopware_api_client/endpoints/admin/core/salutation.py +5 -20
  85. shopware_api_client/endpoints/admin/core/seo_url.py +5 -30
  86. shopware_api_client/endpoints/admin/core/shipping_method.py +8 -30
  87. shopware_api_client/endpoints/admin/core/shipping_method_price.py +20 -0
  88. shopware_api_client/endpoints/admin/core/state_machine.py +5 -21
  89. shopware_api_client/endpoints/admin/core/state_machine_history.py +5 -25
  90. shopware_api_client/endpoints/admin/core/state_machine_state.py +6 -20
  91. shopware_api_client/endpoints/admin/core/state_machine_transition.py +5 -23
  92. shopware_api_client/endpoints/admin/core/system_config.py +5 -19
  93. shopware_api_client/endpoints/admin/core/tag.py +5 -14
  94. shopware_api_client/endpoints/admin/core/tax.py +5 -21
  95. shopware_api_client/endpoints/admin/core/tax_rule.py +5 -22
  96. shopware_api_client/endpoints/admin/core/tax_rule_type.py +5 -21
  97. shopware_api_client/endpoints/admin/core/unit.py +5 -19
  98. shopware_api_client/endpoints/admin/core/user.py +5 -31
  99. shopware_api_client/endpoints/admin/core/warehouse.py +5 -15
  100. shopware_api_client/endpoints/admin/core/warehouse_group.py +6 -18
  101. shopware_api_client/endpoints/admin/core/warehouse_group_warehouse.py +6 -18
  102. shopware_api_client/endpoints/base_fields.py +13 -22
  103. shopware_api_client/endpoints/relations.py +36 -24
  104. shopware_api_client/endpoints/store/__init__.py +37 -4
  105. shopware_api_client/endpoints/store/core/address.py +51 -68
  106. shopware_api_client/endpoints/store/core/cart.py +39 -85
  107. shopware_api_client/endpoints/store/core/category.py +16 -0
  108. shopware_api_client/endpoints/store/core/cms_block.py +10 -0
  109. shopware_api_client/endpoints/store/core/cms_page.py +12 -0
  110. shopware_api_client/endpoints/store/core/cms_section.py +12 -0
  111. shopware_api_client/endpoints/store/core/cms_slot.py +8 -0
  112. shopware_api_client/endpoints/store/core/context.py +58 -0
  113. shopware_api_client/endpoints/store/core/country.py +15 -0
  114. shopware_api_client/endpoints/store/core/country_state.py +19 -0
  115. shopware_api_client/endpoints/store/core/currency.py +12 -0
  116. shopware_api_client/endpoints/store/core/customer.py +34 -0
  117. shopware_api_client/endpoints/store/core/customer_group.py +5 -0
  118. shopware_api_client/endpoints/store/core/delivery_time.py +5 -0
  119. shopware_api_client/endpoints/store/core/document.py +15 -0
  120. shopware_api_client/endpoints/store/core/document_type.py +5 -0
  121. shopware_api_client/endpoints/store/core/landing_page.py +10 -0
  122. shopware_api_client/endpoints/store/core/language.py +18 -0
  123. shopware_api_client/endpoints/store/core/locale.py +5 -0
  124. shopware_api_client/endpoints/store/core/main_category.py +5 -0
  125. shopware_api_client/endpoints/store/core/media.py +8 -0
  126. shopware_api_client/endpoints/store/core/media_thumbnail.py +5 -0
  127. shopware_api_client/endpoints/store/core/order.py +67 -0
  128. shopware_api_client/endpoints/store/core/order_address.py +12 -0
  129. shopware_api_client/endpoints/store/core/order_customer.py +8 -0
  130. shopware_api_client/endpoints/store/core/order_delivery.py +14 -0
  131. shopware_api_client/endpoints/store/core/order_delivery_position.py +5 -0
  132. shopware_api_client/endpoints/store/core/order_line_item.py +14 -0
  133. shopware_api_client/endpoints/store/core/order_transaction.py +12 -0
  134. shopware_api_client/endpoints/store/core/order_transaction_capture.py +12 -0
  135. shopware_api_client/endpoints/store/core/order_transaction_capture_refund.py +12 -0
  136. shopware_api_client/endpoints/store/core/order_transaction_capture_refund_position.py +11 -0
  137. shopware_api_client/endpoints/store/core/payment_method.py +8 -0
  138. shopware_api_client/endpoints/store/core/product.py +60 -0
  139. shopware_api_client/endpoints/store/core/product_configurator_setting.py +10 -0
  140. shopware_api_client/endpoints/store/core/product_cross_selling.py +5 -0
  141. shopware_api_client/endpoints/store/core/product_download.py +10 -0
  142. shopware_api_client/endpoints/store/core/product_manufacturer.py +8 -0
  143. shopware_api_client/endpoints/store/core/product_media.py +10 -0
  144. shopware_api_client/endpoints/store/core/product_review.py +5 -0
  145. shopware_api_client/endpoints/store/core/product_stream.py +5 -0
  146. shopware_api_client/endpoints/store/core/property_group.py +8 -0
  147. shopware_api_client/endpoints/store/core/property_group_option.py +10 -0
  148. shopware_api_client/endpoints/store/core/rule.py +5 -0
  149. shopware_api_client/endpoints/store/core/sales_channel.py +23 -0
  150. shopware_api_client/endpoints/store/core/sales_channel_domain.py +12 -0
  151. shopware_api_client/endpoints/store/core/salutation.py +12 -0
  152. shopware_api_client/endpoints/store/core/seo_url.py +5 -0
  153. shopware_api_client/endpoints/store/core/shipping_method.py +18 -0
  154. shopware_api_client/endpoints/store/core/shipping_method_price.py +5 -0
  155. shopware_api_client/endpoints/store/core/state_machine_state.py +5 -0
  156. shopware_api_client/endpoints/store/core/tag.py +5 -0
  157. shopware_api_client/endpoints/store/core/tax.py +5 -0
  158. shopware_api_client/endpoints/store/core/unit.py +5 -0
  159. shopware_api_client/exceptions.py +21 -1
  160. shopware_api_client/fieldsets.py +12 -0
  161. shopware_api_client/models/__init__.py +0 -0
  162. shopware_api_client/models/acl_role.py +11 -0
  163. shopware_api_client/models/app.py +33 -0
  164. shopware_api_client/models/app_script_condition.py +16 -0
  165. shopware_api_client/models/b2b_components_role.py +12 -0
  166. shopware_api_client/models/b2b_components_shopping_list.py +13 -0
  167. shopware_api_client/models/b2b_components_shopping_list_line_item.py +14 -0
  168. shopware_api_client/models/b2b_employee.py +17 -0
  169. shopware_api_client/models/category.py +44 -0
  170. shopware_api_client/models/cms_block.py +23 -0
  171. shopware_api_client/models/cms_page.py +15 -0
  172. shopware_api_client/models/cms_section.py +20 -0
  173. shopware_api_client/models/cms_slot.py +17 -0
  174. shopware_api_client/models/country.py +27 -0
  175. shopware_api_client/models/country_state.py +12 -0
  176. shopware_api_client/models/currency.py +20 -0
  177. shopware_api_client/models/currency_country_rounding.py +11 -0
  178. shopware_api_client/models/custom_entity.py +19 -0
  179. shopware_api_client/models/custom_field.py +8 -0
  180. shopware_api_client/models/customer.py +47 -0
  181. shopware_api_client/models/customer_address.py +22 -0
  182. shopware_api_client/models/customer_group.py +13 -0
  183. shopware_api_client/models/customer_recovery.py +9 -0
  184. shopware_api_client/models/customer_wishlist.py +9 -0
  185. shopware_api_client/models/customer_wishlist_product.py +10 -0
  186. shopware_api_client/models/delivery_time.py +12 -0
  187. shopware_api_client/models/document.py +20 -0
  188. shopware_api_client/models/document_base_config.py +19 -0
  189. shopware_api_client/models/document_base_config_sales_channel.py +10 -0
  190. shopware_api_client/models/document_type.py +8 -0
  191. shopware_api_client/models/dynamic_access.py +9 -0
  192. shopware_api_client/models/integration.py +15 -0
  193. shopware_api_client/models/landing_page.py +15 -0
  194. shopware_api_client/models/language.py +11 -0
  195. shopware_api_client/models/locale.py +9 -0
  196. shopware_api_client/models/main_category.py +12 -0
  197. shopware_api_client/models/media.py +26 -0
  198. shopware_api_client/models/media_default_folder.py +7 -0
  199. shopware_api_client/models/media_folder.py +16 -0
  200. shopware_api_client/models/media_folder_configuration.py +11 -0
  201. shopware_api_client/models/media_thumbnail.py +15 -0
  202. shopware_api_client/models/media_thumbnail_size.py +8 -0
  203. shopware_api_client/models/order.py +36 -0
  204. shopware_api_client/models/order_address.py +23 -0
  205. shopware_api_client/models/order_customer.py +18 -0
  206. shopware_api_client/models/order_delivery.py +19 -0
  207. shopware_api_client/models/order_delivery_position.py +15 -0
  208. shopware_api_client/models/order_line_item.py +34 -0
  209. shopware_api_client/models/order_line_item_download.py +12 -0
  210. shopware_api_client/models/order_transaction.py +15 -0
  211. shopware_api_client/models/order_transaction_capture.py +15 -0
  212. shopware_api_client/models/order_transaction_capture_refund.py +16 -0
  213. shopware_api_client/models/order_transaction_capture_refund_position.py +15 -0
  214. shopware_api_client/models/payment_method.py +29 -0
  215. shopware_api_client/models/product.py +72 -0
  216. shopware_api_client/models/product_configurator_setting.py +14 -0
  217. shopware_api_client/models/product_cross_selling.py +17 -0
  218. shopware_api_client/models/product_cross_selling_assigned_products.py +11 -0
  219. shopware_api_client/models/product_download.py +11 -0
  220. shopware_api_client/models/product_export.py +27 -0
  221. shopware_api_client/models/product_feature_set.py +11 -0
  222. shopware_api_client/models/product_manufacturer.py +11 -0
  223. shopware_api_client/models/product_media.py +11 -0
  224. shopware_api_client/models/product_price.py +15 -0
  225. shopware_api_client/models/product_review.py +19 -0
  226. shopware_api_client/models/product_search_keyword.py +13 -0
  227. shopware_api_client/models/product_stream.py +14 -0
  228. shopware_api_client/models/product_visibility.py +11 -0
  229. shopware_api_client/models/product_warehouse.py +10 -0
  230. shopware_api_client/models/promotion.py +29 -0
  231. shopware_api_client/models/promotion_discount.py +17 -0
  232. shopware_api_client/models/promotion_discount_prices.py +10 -0
  233. shopware_api_client/models/property_group.py +13 -0
  234. shopware_api_client/models/property_group_option.py +12 -0
  235. shopware_api_client/models/rule.py +16 -0
  236. shopware_api_client/models/rule_condition.py +15 -0
  237. shopware_api_client/models/sales_channel.py +44 -0
  238. shopware_api_client/models/sales_channel_domain.py +13 -0
  239. shopware_api_client/models/salutation.py +9 -0
  240. shopware_api_client/models/seo_url.py +19 -0
  241. shopware_api_client/models/shipping_method.py +18 -0
  242. shopware_api_client/models/shipping_method_price.py +15 -0
  243. shopware_api_client/models/state_machine.py +10 -0
  244. shopware_api_client/models/state_machine_history.py +18 -0
  245. shopware_api_client/models/state_machine_state.py +8 -0
  246. shopware_api_client/models/state_machine_transition.py +11 -0
  247. shopware_api_client/models/system_config.py +12 -0
  248. shopware_api_client/models/tag.py +7 -0
  249. shopware_api_client/models/tax.py +9 -0
  250. shopware_api_client/models/tax_rule.py +15 -0
  251. shopware_api_client/models/tax_rule_type.py +11 -0
  252. shopware_api_client/models/unit.py +8 -0
  253. shopware_api_client/models/user.py +21 -0
  254. shopware_api_client/models/warehouse.py +8 -0
  255. shopware_api_client/models/warehouse_group.py +11 -0
  256. shopware_api_client/models/warehouse_group_warehouse.py +11 -0
  257. shopware_api_client/structs/__init__.py +0 -0
  258. shopware_api_client/structs/absolute_price_definition.py +6 -0
  259. shopware_api_client/structs/calculated_cheapest_price.py +6 -0
  260. shopware_api_client/structs/calculated_price.py +17 -0
  261. shopware_api_client/structs/calculated_tax.py +8 -0
  262. shopware_api_client/structs/cart.py +21 -0
  263. shopware_api_client/structs/cart_price.py +15 -0
  264. shopware_api_client/structs/cash_rounding_config.py +7 -0
  265. shopware_api_client/structs/context.py +15 -0
  266. shopware_api_client/structs/delivery.py +16 -0
  267. shopware_api_client/structs/delivery_date.py +8 -0
  268. shopware_api_client/structs/delivery_information.py +13 -0
  269. shopware_api_client/structs/delivery_position.py +12 -0
  270. shopware_api_client/structs/delivery_time.py +8 -0
  271. shopware_api_client/structs/language_info.py +6 -0
  272. shopware_api_client/structs/line_item.py +39 -0
  273. shopware_api_client/structs/list_price.py +7 -0
  274. shopware_api_client/structs/measurement_units.py +8 -0
  275. shopware_api_client/structs/percentage_price_definition.py +6 -0
  276. shopware_api_client/structs/price.py +14 -0
  277. shopware_api_client/structs/quantity_information.py +7 -0
  278. shopware_api_client/structs/quantity_price_definition.py +14 -0
  279. shopware_api_client/structs/reference_price.py +5 -0
  280. shopware_api_client/structs/reference_price_definition.py +7 -0
  281. shopware_api_client/structs/regulation_price.py +5 -0
  282. shopware_api_client/structs/sales_channel_context.py +33 -0
  283. shopware_api_client/structs/shipping_location.py +12 -0
  284. shopware_api_client/structs/tax_free_config.py +8 -0
  285. shopware_api_client/structs/tax_rule.py +6 -0
  286. shopware_api_client/structs/transaction.py +8 -0
  287. shopware_api_client/structs/variant_listing_config.py +8 -0
  288. {shopware_api_client-1.0.101.dist-info → shopware_api_client-1.1.1.dist-info}/METADATA +89 -275
  289. shopware_api_client-1.1.1.dist-info/RECORD +298 -0
  290. {shopware_api_client-1.0.101.dist-info → shopware_api_client-1.1.1.dist-info}/WHEEL +1 -1
  291. shopware_api_client-1.0.101.dist-info/RECORD +0 -114
  292. {shopware_api_client-1.0.101.dist-info → shopware_api_client-1.1.1.dist-info/licenses}/LICENSE +0 -0
@@ -1,24 +1,13 @@
1
- from ....base import ApiModelBase, EndpointBase, EndpointClass
2
- from ...base_fields import IdField
3
- from ...relations import ForeignRelation
1
+ from shopware_api_client.base import AdminModel, AdminEndpoint
2
+ from shopware_api_client.endpoints.relations import ForeignRelation
3
+ from shopware_api_client.models.customer_recovery import CustomerRecoveryBase
4
4
 
5
5
 
6
- class CustomerRecoveryBase(ApiModelBase[EndpointClass]):
7
- _identifier: str = "customer_recovery"
8
-
9
- hash: str
10
- customer_id: IdField
11
-
12
-
13
- class CustomerRecoveryRelations:
6
+ class CustomerRecovery(CustomerRecoveryBase, AdminModel["CustomerRecoveryEndpoint"]):
14
7
  customer: ForeignRelation["Customer"]
15
8
 
16
9
 
17
- class CustomerRecovery(CustomerRecoveryBase["CustomerRecoveryEndpoint"], CustomerRecoveryRelations):
18
- pass
19
-
20
-
21
- class CustomerRecoveryEndpoint(EndpointBase[CustomerRecovery]):
10
+ class CustomerRecoveryEndpoint(AdminEndpoint[CustomerRecovery]):
22
11
  name = "customer_recovery"
23
12
  path = "/customer-recovery"
24
13
  model_class = CustomerRecovery
@@ -1,29 +1,15 @@
1
- from typing import Any
1
+ from shopware_api_client.base import AdminModel, AdminEndpoint
2
+ from shopware_api_client.endpoints.relations import ForeignRelation, ManyRelation
3
+ from shopware_api_client.models.customer_wishlist import CustomerWishlistBase
2
4
 
3
- from ....base import ApiModelBase, EndpointBase, EndpointClass
4
- from ...base_fields import IdField
5
- from ...relations import ForeignRelation, ManyRelation
6
5
 
7
-
8
- class CustomerWishlistBase(ApiModelBase[EndpointClass]):
9
- _identifier: str = "customer_wishlist"
10
-
11
- customer_id: IdField
12
- sales_channel_id: IdField
13
- custom_fields: dict[str, Any] | None = None
14
-
15
-
16
- class CustomerWishlistRelations:
6
+ class CustomerWishlist(CustomerWishlistBase, AdminModel["CustomerWishlistEndpoint"]):
17
7
  products: ManyRelation["CustomerWishlistProduct"]
18
8
  customer: ForeignRelation["Customer"]
19
9
  sales_channel: ForeignRelation["SalesChannel"]
20
10
 
21
11
 
22
- class CustomerWishlist(CustomerWishlistBase["CustomerWishlistEndpoint"], CustomerWishlistRelations):
23
- pass
24
-
25
-
26
- class CustomerWishlistEndpoint(EndpointBase[CustomerWishlist]):
12
+ class CustomerWishlistEndpoint(AdminEndpoint[CustomerWishlist]):
27
13
  name = "customer_wishlist"
28
14
  path = "/customer-wishlist"
29
15
  model_class = CustomerWishlist
@@ -1,28 +1,14 @@
1
- from ....base import ApiModelBase, EndpointBase, EndpointClass
2
- from ...base_fields import IdField
3
- from ...relations import ForeignRelation
1
+ from shopware_api_client.base import AdminModel, AdminEndpoint
2
+ from shopware_api_client.endpoints.relations import ForeignRelation
3
+ from shopware_api_client.models.customer_wishlist_product import CustomerWishlistProductBase
4
4
 
5
5
 
6
- class CustomerWishlistProductBase(ApiModelBase[EndpointClass]):
7
- _identifier: str = "customer_wishlist_product"
8
-
9
- product_id: IdField
10
- product_version_id: IdField | None = None
11
- wishlist_id: IdField
12
-
13
-
14
- class CustomerWishlistProductRelations:
6
+ class CustomerWishlistProduct(CustomerWishlistProductBase, AdminModel["CustomerWishlistProductEndpoint"]):
15
7
  wishlist: ForeignRelation["CustomerWishlist"]
16
8
  product: ForeignRelation["Product"]
17
9
 
18
10
 
19
- class CustomerWishlistProduct(
20
- CustomerWishlistProductBase["CustomerWishlistProductEndpoint"], CustomerWishlistProductRelations
21
- ):
22
- pass
23
-
24
-
25
- class CustomerWishlistProductEndpoint(EndpointBase[CustomerWishlistProduct]):
11
+ class CustomerWishlistProductEndpoint(AdminEndpoint[CustomerWishlistProduct]):
26
12
  name = "customer_wishlist_product"
27
13
  path = "/customer-wishlist-product"
28
14
  model_class = CustomerWishlistProduct
@@ -1,30 +1,14 @@
1
- from typing import Any
1
+ from shopware_api_client.base import AdminModel, AdminEndpoint
2
+ from shopware_api_client.endpoints.relations import ManyRelation
3
+ from shopware_api_client.models.delivery_time import DeliveryTimeBase
2
4
 
3
- from ....base import ApiModelBase, EndpointBase, EndpointClass
4
- from ...relations import ManyRelation
5
5
 
6
-
7
- class DeliveryTimeBase(ApiModelBase[EndpointClass]):
8
- _identifier: str = "delivery_time"
9
-
10
- name: str
11
- min: int
12
- max: int
13
- unit: str
14
- custom_fields: dict[str, Any] | None = None
15
- translated: dict[str, Any] | None = None
16
-
17
-
18
- class DeliveryTimeRelations:
6
+ class DeliveryTime(DeliveryTimeBase, AdminModel["DeliveryTimeEndpoint"]):
19
7
  shipping_methods: ManyRelation["ShippingMethod"]
20
8
  products: ManyRelation["Product"]
21
9
 
22
10
 
23
- class DeliveryTime(DeliveryTimeBase["DeliveryTimeEndpoint"], DeliveryTimeRelations):
24
- pass
25
-
26
-
27
- class DeliveryTimeEndpoint(EndpointBase[DeliveryTime]):
11
+ class DeliveryTimeEndpoint(AdminEndpoint[DeliveryTime]):
28
12
  name = "delivery_time"
29
13
  path = "/delivery-time"
30
14
  model_class = DeliveryTime
@@ -1,28 +1,9 @@
1
- from typing import Any
1
+ from shopware_api_client.base import AdminModel, AdminEndpoint
2
+ from shopware_api_client.endpoints.relations import ForeignRelation, ManyRelation
3
+ from shopware_api_client.models.document import DocumentBase
2
4
 
3
- from ....base import ApiModelBase, EndpointBase, EndpointClass
4
- from ...base_fields import IdField
5
- from ...relations import ForeignRelation, ManyRelation
6
5
 
7
-
8
- class DocumentBase(ApiModelBase[EndpointClass]):
9
- _identifier: str = "document"
10
-
11
- document_type_id: IdField
12
- file_type: str
13
- referenced_document_id: IdField | None = None
14
- order_id: IdField
15
- document_media_file_id: IdField | None = None
16
- order_version_id: IdField | None = None
17
- config: dict[str, Any]
18
- sent: bool | None = None
19
- static: bool | None = None
20
- deep_link_code: str
21
- document_number: str | None = None
22
- custom_fields: dict[str, Any] | None = None
23
-
24
-
25
- class DocumentRelations:
6
+ class Document(DocumentBase, AdminModel["DocumentEndpoint"]):
26
7
  document_type: ForeignRelation["DocumentType"]
27
8
  order: ForeignRelation["Order"]
28
9
  referenced_document: ForeignRelation["Document"]
@@ -30,11 +11,7 @@ class DocumentRelations:
30
11
  document_media_file: ForeignRelation["Media"]
31
12
 
32
13
 
33
- class Document(DocumentBase["DocumentEndpoint"], DocumentRelations):
34
- pass
35
-
36
-
37
- class DocumentEndpoint(EndpointBase[Document]):
14
+ class DocumentEndpoint(AdminEndpoint[Document]):
38
15
  name = "document"
39
16
  path = "/document"
40
17
  model_class = Document
@@ -1,37 +1,15 @@
1
- from typing import Any
1
+ from shopware_api_client.base import AdminModel, AdminEndpoint
2
+ from shopware_api_client.endpoints.relations import ForeignRelation, ManyRelation
3
+ from shopware_api_client.models.document_base_config import DocumentBaseConfigBase
2
4
 
3
- from pydantic import AliasChoices, Field
4
5
 
5
- from ....base import ApiModelBase, EndpointBase, EndpointClass
6
- from ...base_fields import IdField
7
- from ...relations import ForeignRelation, ManyRelation
8
-
9
-
10
- class DocumentBaseConfigBase(ApiModelBase[EndpointClass]):
11
- _identifier: str = "document_base_config"
12
-
13
- document_type_id: IdField
14
- logo_id: IdField | None = None
15
- name: str
16
- filename_prefix: str | None = None
17
- filename_suffix: str | None = None
18
- global_: bool = Field(..., serialization_alias="global", validation_alias=AliasChoices("global_", "global"))
19
- document_number: str | None = None
20
- config: dict[str, Any] | None = None
21
- custom_fields: dict[str, Any] | None = None
22
-
23
-
24
- class DocumentBaseConfigRelations:
6
+ class DocumentBaseConfig(DocumentBaseConfigBase, AdminModel["DocumentBaseConfigEndpoint"]):
25
7
  document_type: ForeignRelation["DocumentType"]
26
8
  logo: ForeignRelation["Media"]
27
9
  sales_channels: ManyRelation["DocumentBaseConfigSalesChannel"]
28
10
 
29
11
 
30
- class DocumentBaseConfig(DocumentBaseConfigBase["DocumentBaseConfigEndpoint"], DocumentBaseConfigRelations):
31
- pass
32
-
33
-
34
- class DocumentBaseConfigEndpoint(EndpointBase[DocumentBaseConfig]):
12
+ class DocumentBaseConfigEndpoint(AdminEndpoint[DocumentBaseConfig]):
35
13
  name = "document_base_config"
36
14
  path = "/document-base-config"
37
15
  model_class = DocumentBaseConfig
@@ -1,30 +1,17 @@
1
- from ....base import ApiModelBase, EndpointBase, EndpointClass
2
- from ...base_fields import IdField
3
- from ...relations import ForeignRelation
1
+ from shopware_api_client.base import AdminModel, AdminEndpoint
2
+ from shopware_api_client.endpoints.relations import ForeignRelation
3
+ from shopware_api_client.models.document_base_config_sales_channel import DocumentBaseConfigSalesChannelBase
4
4
 
5
5
 
6
- class DocumentBaseConfigSalesChannelBase(ApiModelBase[EndpointClass]):
7
- _identifier: str = "document_base_config_sales_channel"
8
-
9
- document_base_config_id: IdField
10
- sales_channel_id: IdField | None = None
11
- document_type_id: IdField | None = None
12
-
13
-
14
- class DocumentBaseConfigSalesChannelRelations:
6
+ class DocumentBaseConfigSalesChannel(
7
+ DocumentBaseConfigSalesChannelBase, AdminModel["DocumentBaseConfigSalesChannelEndpoint"]
8
+ ):
15
9
  document_type: ForeignRelation["DocumentType"]
16
10
  document_base_config: ForeignRelation["DocumentBaseConfig"]
17
11
  sales_channel: ForeignRelation["SalesChannel"]
18
12
 
19
13
 
20
- class DocumentBaseConfigSalesChannel(
21
- DocumentBaseConfigSalesChannelBase["DocumentBaseConfigSalesChannelEndpoint"],
22
- DocumentBaseConfigSalesChannelRelations,
23
- ):
24
- pass
25
-
26
-
27
- class DocumentBaseConfigSalesChannelEndpoint(EndpointBase[DocumentBaseConfigSalesChannel]):
14
+ class DocumentBaseConfigSalesChannelEndpoint(AdminEndpoint[DocumentBaseConfigSalesChannel]):
28
15
  name = "document_base_config_sales_channel"
29
16
  path = "/document-base-config-sales-channel"
30
17
  model_class = DocumentBaseConfigSalesChannel
@@ -1,29 +1,15 @@
1
- from typing import Any
1
+ from shopware_api_client.base import AdminModel, AdminEndpoint
2
+ from shopware_api_client.endpoints.relations import ManyRelation
3
+ from shopware_api_client.models.document_type import DocumentTypeBase
2
4
 
3
- from ....base import ApiModelBase, EndpointBase, EndpointClass
4
- from ...relations import ManyRelation
5
5
 
6
-
7
- class DocumentTypeBase(ApiModelBase[EndpointClass]):
8
- _identifier: str = "document_type"
9
-
10
- name: str
11
- technical_name: str
12
- custom_fields: dict[str, Any] | None = None
13
- translated: dict[str, Any] | None = None
14
-
15
-
16
- class DocumentTypeRelations:
6
+ class DocumentType(DocumentTypeBase, AdminModel["DocumentTypeEndpoint"]):
17
7
  documents: ManyRelation["Document"]
18
8
  document_base_configs: ManyRelation["DocumentBaseConfig"]
19
9
  document_base_config_sales_channels: ManyRelation["DocumentBaseConfigSalesChannel"]
20
10
 
21
11
 
22
- class DocumentType(DocumentTypeBase["DocumentTypeEndpoint"], DocumentTypeRelations):
23
- pass
24
-
25
-
26
- class DocumentTypeEndpoint(EndpointBase[DocumentType]):
12
+ class DocumentTypeEndpoint(AdminEndpoint[DocumentType]):
27
13
  name = "document_type"
28
14
  path = "/document-type"
29
15
  model_class = DocumentType
@@ -1,34 +1,14 @@
1
- from typing import Any
1
+ from shopware_api_client.base import AdminModel, AdminEndpoint
2
+ from shopware_api_client.endpoints.relations import ForeignRelation, ManyRelation
3
+ from shopware_api_client.models.integration import IntegrationBase
2
4
 
3
- from pydantic import AwareDatetime
4
5
 
5
- from ....base import ApiModelBase, EndpointBase, EndpointClass
6
- from ...relations import ForeignRelation, ManyRelation
7
-
8
-
9
- class IntegrationBase(ApiModelBase[EndpointClass]):
10
- _identifier = "integration"
11
-
12
- label: str
13
- access_key: str
14
- secret_access_key: str
15
- last_usage_at: AwareDatetime | None = None
16
- admin: bool | None = None
17
- custom_fields: dict[str, Any] | None = None
18
- deleted_at: AwareDatetime | None = None
19
- write_access: bool | None = None
20
-
21
-
22
- class IntegrationRelations:
6
+ class Integration(IntegrationBase, AdminModel["IntegrationEndpoint"]):
23
7
  app: ForeignRelation["App"]
24
8
  acl_roles: ManyRelation["AclRole"]
25
9
 
26
10
 
27
- class Integration(IntegrationBase["IntegrationEndpoint"], IntegrationRelations):
28
- pass
29
-
30
-
31
- class IntegrationEndpoint(EndpointBase[Integration]):
11
+ class IntegrationEndpoint(AdminEndpoint[Integration]):
32
12
  name = "integration"
33
13
  path = "/integration"
34
14
  model_class = Integration
@@ -1,39 +1,16 @@
1
- from typing import Any
1
+ from shopware_api_client.base import AdminModel, AdminEndpoint
2
+ from shopware_api_client.endpoints.relations import ForeignRelation, ManyRelation
3
+ from shopware_api_client.models.landing_page import LandingPageBase
2
4
 
3
- from ....base import ApiModelBase, EndpointBase, EndpointClass
4
- from ...base_fields import IdField
5
- from ...relations import ForeignRelation, ManyRelation
6
5
 
7
-
8
- class LandingPageBase(ApiModelBase[EndpointClass]):
9
- _identifier: str = "landing_page"
10
-
11
- version_id: IdField | None = None
12
- active: bool | None = None
13
- name: str
14
- custom_fields: dict[str, Any] | None = None
15
- slot_config: dict[str, Any] | None = None
16
- meta_title: str | None = None
17
- meta_description: str | None = None
18
- keywords: str | None = None
19
- url: str
20
- cms_page_id: IdField | None = None
21
- cms_page_version_id: IdField | None = None
22
- translated: dict[str, Any] | None = None
23
-
24
-
25
- class LandingPageRelations:
6
+ class LandingPage(LandingPageBase, AdminModel["LandingPageEndpoint"]):
26
7
  tags: ManyRelation["Tag"]
27
8
  cms_page: ForeignRelation["CmsPage"]
28
9
  sales_channels: ManyRelation["SalesChannel"]
29
10
  seo_urls: ManyRelation["SeoUrl"]
30
11
 
31
12
 
32
- class LandingPage(LandingPageBase["LandingPageEndpoint"], LandingPageRelations):
33
- pass
34
-
35
-
36
- class LandingPageEndpoint(EndpointBase[LandingPage]):
13
+ class LandingPageEndpoint(AdminEndpoint[LandingPage]):
37
14
  name = "landing_page"
38
15
  path = "/landing-page"
39
16
  model_class = LandingPage
@@ -1,21 +1,9 @@
1
- from typing import Any
1
+ from shopware_api_client.base import AdminModel, AdminEndpoint
2
+ from shopware_api_client.endpoints.relations import ForeignRelation, ManyRelation
3
+ from shopware_api_client.models.language import LanguageBase
2
4
 
3
- from ....base import ApiModelBase, EndpointBase, EndpointClass
4
- from ...base_fields import IdField
5
- from ...relations import ForeignRelation, ManyRelation
6
5
 
7
-
8
- class LanguageBase(ApiModelBase[EndpointClass]):
9
- _identifier: str = "language"
10
-
11
- parent_id: IdField | None = None
12
- locale_id: IdField
13
- translation_code_id: IdField | None = None
14
- name: str
15
- custom_fields: dict[str, Any] | None = None
16
-
17
-
18
- class LanguageRelations:
6
+ class Language(LanguageBase, AdminModel["LanguageEndpoint"]):
19
7
  parent: ForeignRelation["Language"]
20
8
  locale: ForeignRelation["Locale"]
21
9
  translation_code: ForeignRelation["Locale"]
@@ -35,11 +23,7 @@ class LanguageRelations:
35
23
  """
36
24
 
37
25
 
38
- class Language(LanguageBase["LanguageEndpoint"], LanguageRelations):
39
- pass
40
-
41
-
42
- class LanguageEndpoint(EndpointBase[Language]):
26
+ class LanguageEndpoint(AdminEndpoint[Language]):
43
27
  name = "language"
44
28
  path = "/language"
45
29
  model_class = Language
@@ -1,29 +1,14 @@
1
- from typing import Any
1
+ from shopware_api_client.base import AdminModel, AdminEndpoint
2
+ from shopware_api_client.endpoints.relations import ManyRelation
3
+ from shopware_api_client.models.locale import LocaleBase
2
4
 
3
- from ....base import ApiModelBase, EndpointBase, EndpointClass
4
- from ...relations import ManyRelation
5
5
 
6
-
7
- class LocaleBase(ApiModelBase[EndpointClass]):
8
- _identifier: str = "locale"
9
-
10
- code: str
11
- name: str
12
- territory: str
13
- custom_fields: dict[str, Any] | None = None
14
- translated: dict[str, Any] | None = None
15
-
16
-
17
- class LocaleRelations:
6
+ class Locale(LocaleBase, AdminModel["LocaleEndpoint"]):
18
7
  languages: ManyRelation["Language"]
19
8
  users: ManyRelation["User"]
20
9
 
21
10
 
22
- class Locale(LocaleBase["LocaleEndpoint"], LocaleRelations):
23
- pass
24
-
25
-
26
- class LocaleEndpoint(EndpointBase[Locale]):
11
+ class LocaleEndpoint(AdminEndpoint[Locale]):
27
12
  name = "locale"
28
13
  path = "/locale"
29
14
  model_class = Locale
@@ -1,29 +1,15 @@
1
- from ....base import ApiModelBase, EndpointBase, EndpointClass
2
- from ...base_fields import IdField
3
- from ...relations import ForeignRelation
1
+ from shopware_api_client.base import AdminModel, AdminEndpoint
2
+ from shopware_api_client.endpoints.relations import ForeignRelation
3
+ from shopware_api_client.models.main_category import MainCategoryBase
4
4
 
5
5
 
6
- class MainCategoryBase(ApiModelBase[EndpointClass]):
7
- _identifier: str = "main_category"
8
-
9
- product_id: IdField
10
- product_version_id: IdField | None = None
11
- category_id: IdField
12
- category_version_id: IdField | None = None
13
- sales_channel_id: IdField
14
-
15
-
16
- class MainCategoryRelations:
6
+ class MainCategory(MainCategoryBase, AdminModel["MainCategoryEndpoint"]):
17
7
  product: ForeignRelation["Product"]
18
8
  category: ForeignRelation["Category"]
19
9
  sales_channel: ForeignRelation["SalesChannel"]
20
10
 
21
11
 
22
- class MainCategory(MainCategoryBase["MainCategoryEndpoint"], MainCategoryRelations):
23
- pass
24
-
25
-
26
- class MainCategoryEndpoint(EndpointBase[MainCategory]):
12
+ class MainCategoryEndpoint(AdminEndpoint[MainCategory]):
27
13
  name = "main_category"
28
14
  path = "/main-category"
29
15
  model_class = MainCategory
@@ -1,36 +1,11 @@
1
1
  from typing import Any
2
2
 
3
- from pydantic import AwareDatetime, Field
3
+ from shopware_api_client.base import AdminModel, AdminEndpoint
4
+ from shopware_api_client.endpoints.relations import ForeignRelation, ManyRelation
5
+ from shopware_api_client.models.media import MediaBase
4
6
 
5
- from ....base import ApiModelBase, EndpointBase, EndpointClass
6
- from ...base_fields import IdField
7
- from ...relations import ForeignRelation, ManyRelation
8
7
 
9
-
10
- class MediaBase(ApiModelBase[EndpointClass]):
11
- _identifier: str = "media"
12
-
13
- user_id: IdField | None = None
14
- media_folder_id: IdField | None = Field(default=None)
15
- mime_type: str | None = Field(default=None)
16
- file_extension: str | None = Field(default=None, exclude=True)
17
- uploaded_at: AwareDatetime | None = Field(default=None, exclude=True)
18
- file_name: str | None = Field(default=None)
19
- file_size: int | None = Field(default=None, exclude=True)
20
- meta_data: dict[str, Any] | None = Field(default=None, exclude=True)
21
- media_type: dict[str, Any] | None = Field(default=None, exclude=True)
22
- config: dict[str, Any] | None = Field(default=None, exclude=True)
23
- alt: str | None = None
24
- title: str | None = None
25
- url: str | None = Field(default=None, description="Runtime field, cannot be used as part of the criteria.")
26
- path: str | None = Field(default=None)
27
- has_file: bool | None = Field(default=None, description="Runtime field, cannot be used as part of the criteria.")
28
- private: bool | None = False
29
- custom_fields: dict[str, Any] | None = None
30
- translated: dict[str, Any] | None = None
31
-
32
-
33
- class MediaRelations:
8
+ class Media(MediaBase, AdminModel["MediaEndpoint"]):
34
9
  tags: ManyRelation["Tag"]
35
10
  thumbnails: ManyRelation["MediaThumbnail"]
36
11
  user: ForeignRelation["User"]
@@ -58,20 +33,33 @@ class MediaRelations:
58
33
  app_shipping_methods[AppShippingMethod]
59
34
  """
60
35
 
61
-
62
- class Media(MediaBase["MediaEndpoint"], MediaRelations):
63
- async def upload_file(self, file_extension: str = "jpg", file_name: str | None = None, url: str | None = None, file: bytes | None = None) -> bool:
36
+ async def upload_file(
37
+ self,
38
+ file_extension: str = "jpg",
39
+ file_name: str | None = None,
40
+ url: str | None = None,
41
+ file: bytes | None = None,
42
+ ) -> bool:
64
43
  assert self.id is not None
65
- return await self._get_endpoint().upload(self.id, file_extension=file_extension, file_name=file_name, url=url, file=file)
66
-
44
+ return await self._get_endpoint().upload(
45
+ self.id, file_extension=file_extension, file_name=file_name, url=url, file=file
46
+ )
47
+
67
48
 
68
- class MediaEndpoint(EndpointBase[Media]):
49
+ class MediaEndpoint(AdminEndpoint[Media]):
69
50
  name = "media"
70
51
  path = "/media"
71
52
  model_class = Media
72
53
 
73
- async def upload(self, pk: str, file_extension: str = "jpg", file_name: str | None = None,
74
- url: str | None = None, file: bytes | None = None, **request_kwargs: Any) -> bool:
54
+ async def upload(
55
+ self,
56
+ pk: str,
57
+ file_extension: str = "jpg",
58
+ file_name: str | None = None,
59
+ url: str | None = None,
60
+ file: bytes | None = None,
61
+ **request_kwargs: Any,
62
+ ) -> bool:
75
63
  api_url = f"/_action/media/{pk}/upload?extension={file_extension}"
76
64
 
77
65
  if file_name is not None:
@@ -1,25 +1,12 @@
1
- from typing import Any
1
+ from shopware_api_client.base import AdminModel, AdminEndpoint
2
+ from shopware_api_client.models.media_default_folder import MediaDefaultFolderBase
2
3
 
3
- from ....base import ApiModelBase, EndpointBase, EndpointClass
4
4
 
5
-
6
- class MediaDefaultFolderBase(ApiModelBase[EndpointClass]):
7
- _identifier: str = "media_default_folder"
8
-
9
- entity: str
10
- custom_fields: dict[str, Any] | None = None
5
+ class MediaDefaultFolder(MediaDefaultFolderBase, AdminModel["MediaDefaultFolderEndpoint"]):
11
6
  folder: "MediaFolder | None" = None
12
7
 
13
8
 
14
- class MediaDefaultFolderRelations:
15
- pass
16
-
17
-
18
- class MediaDefaultFolder(MediaDefaultFolderBase["MediaDefaultFolderEndpoint"], MediaDefaultFolderRelations):
19
- pass
20
-
21
-
22
- class MediaDefaultFolderEndpoint(EndpointBase[MediaDefaultFolder]):
9
+ class MediaDefaultFolderEndpoint(AdminEndpoint[MediaDefaultFolder]):
23
10
  name = "media_default_folder"
24
11
  path = "/media-default-folder"
25
12
  model_class = MediaDefaultFolder
@@ -1,38 +1,17 @@
1
- from typing import Any
1
+ from shopware_api_client.base import AdminModel, AdminEndpoint
2
+ from shopware_api_client.endpoints.relations import ForeignRelation, ManyRelation
3
+ from shopware_api_client.models.media_folder import MediaFolderBase
2
4
 
3
- from pydantic import Field
4
5
 
5
- from ....base import ApiModelBase, EndpointBase, EndpointClass
6
- from ...base_fields import IdField
7
- from ...relations import ForeignRelation, ManyRelation
8
-
9
-
10
- class MediaFolderBase(ApiModelBase[EndpointClass]):
11
- _identifier: str = "media_folder"
12
-
13
- use_parent_configuration: bool | None = None
14
- configuration_id: IdField
15
- default_folder_id: IdField | None = None
16
- parent_id: IdField | None = None
17
- child_count: int | None = Field(default=None, exclude=True)
18
- path: str | None = Field(default=None, exclude=True)
19
- name: str
20
- custom_fields: dict[str, Any] | None = None
21
-
22
-
23
- class MediaFolderRelations:
6
+ class MediaFolder(MediaFolderBase, AdminModel["MediaFolderEndpoint"]):
24
7
  parent: ForeignRelation["MediaFolder"]
25
8
  children: ManyRelation["MediaFolder"]
26
9
  media: ManyRelation["Media"]
27
10
  default_folder: ForeignRelation["MediaDefaultFolder"]
28
11
  configuration: ForeignRelation["MediaFolderConfiguration"]
29
-
30
-
31
- class MediaFolder(MediaFolderBase["MediaFolderEndpoint"], MediaFolderRelations):
32
- pass
33
12
 
34
13
 
35
- class MediaFolderEndpoint(EndpointBase[MediaFolder]):
14
+ class MediaFolderEndpoint(AdminEndpoint[MediaFolder]):
36
15
  name = "media_folder"
37
16
  path = "/media-folder"
38
17
  model_class = MediaFolder