dmart 1.4.41.post34__py3-none-any.whl → 1.4.41.post36__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 (287) hide show
  1. dmart/config.env.sample +22 -5
  2. dmart/cxb/assets/@codemirror-Rn7_6DkE.js +10 -0
  3. dmart/cxb/assets/@edraj-CS4NwVbD.js +1 -0
  4. dmart/cxb/assets/@jsonquerylang-laKNoFFq.js +12 -0
  5. dmart/cxb/assets/@lezer-za4Q-8Ew.js +1 -0
  6. dmart/cxb/assets/{@replit-27NbNvJz.js → @replit--ERk53eB.js} +1 -1
  7. dmart/cxb/assets/{@roxi-Bw7qXphd.js → @roxi-CGMFK4i8.js} +1 -1
  8. dmart/cxb/assets/{@zerodevx-z992vLW9.js → @zerodevx-BlBZjKxu.js} +1 -1
  9. dmart/cxb/assets/{BreadCrumbLite-28-Sst8b.js → BreadCrumbLite-ClLCZ5eT.js} +1 -1
  10. dmart/cxb/assets/{EntryRenderer-gOGY0M8V.js → EntryRenderer-cjUJdYfu.js} +1 -1
  11. dmart/cxb/assets/{ListView-Ctq2bVYW.js → ListView-dXTYjhLu.js} +4 -4
  12. dmart/cxb/assets/{Prism-DbpuKlij.js → Prism--hMplq-p.js} +1 -1
  13. dmart/cxb/assets/Table2Cols-BsbwicQm.js +1 -0
  14. dmart/cxb/assets/{_...404_-lSd1jtj4.js → _...404_-fuLH_rX9.js} +1 -1
  15. dmart/cxb/assets/_...fallback_-Ba_NLmAE.js +1 -0
  16. dmart/cxb/assets/{_module-ziANIEpM.js → _module-BGlhRcxL.js} +1 -1
  17. dmart/cxb/assets/{_module-CPGJEbyo.js → _module-NBNtg-cx.js} +1 -1
  18. dmart/cxb/assets/{_module-CRNnKJ_Y.js → _module-qB4OB11N.js} +3 -3
  19. dmart/cxb/assets/{codemirror-wrapped-line-indent-CCR8a-tt.js → codemirror-wrapped-line-indent-DPhKvljI.js} +1 -1
  20. dmart/cxb/assets/{compare-C3mJz3fJ.js → compare-C3AjiGFR.js} +1 -1
  21. dmart/cxb/assets/dmart_services-BN8RAjGS.js +1 -0
  22. dmart/cxb/assets/export-CA8vNv-Q.js +1 -0
  23. dmart/cxb/assets/flowbite-svelte-BLvjb-sa.js +1 -0
  24. dmart/cxb/assets/{flowbite-svelte-icons-DXemwXNH.js → flowbite-svelte-icons-D8uFOOjS.js} +1 -1
  25. dmart/cxb/assets/{global-CF7LWRdS.js → global-igKv-1g9.js} +1 -1
  26. dmart/cxb/assets/import-BiJTp7Zs.js +1 -0
  27. dmart/cxb/assets/{index-DVbd0rhr.js → index-BDmMag0G.js} +1 -1
  28. dmart/cxb/assets/index-BPA7gxzC.js +1 -0
  29. dmart/cxb/assets/{index-BUIZc0eo.js → index-BcNgjLcu.js} +1 -1
  30. dmart/cxb/assets/{index-C_qmKy7R.js → index-BdeNM69f.js} +1 -1
  31. dmart/cxb/assets/{index-C2qX9HoV.js → index-Be7t7GWv.js} +1 -1
  32. dmart/cxb/assets/{index-Ba1QyM6b.js → index-BejgdGl7.js} +1 -1
  33. dmart/cxb/assets/{index-BhRFcH0w.js → index-Bll8i6-y.js} +1 -1
  34. dmart/cxb/assets/{index-BBCAZYiv.js → index-CC-A1ipE.js} +1 -1
  35. dmart/cxb/assets/{index-BJ8k452_.js → index-CIe9TrOS.js} +4 -4
  36. dmart/cxb/assets/{index-CsFEfUT6.js → index-CcwoDlcb.js} +1 -1
  37. dmart/cxb/assets/{index-Eaqb7YHm.js → index-DQmwVe-X.js} +1 -1
  38. dmart/cxb/assets/{index-CDaVHY1H.js → index-DTfhnhwd.js} +1 -1
  39. dmart/cxb/assets/{index-BAsZYsRz.js → index-DtiCmB4o.js} +1 -1
  40. dmart/cxb/assets/index-NBrXBlLA.css +2 -0
  41. dmart/cxb/assets/{info-B3CPbnSo.js → info-Dd-l-jS9.js} +1 -1
  42. dmart/cxb/assets/{jsonrepair-DJT3kRBj.js → jsonrepair-B30Dx381.js} +6 -6
  43. dmart/cxb/assets/{pagination-svelte-D8AVMXcz.js → pagination-svelte-D5CyoiE_.js} +1 -1
  44. dmart/cxb/assets/{profile-uY5zsYbu.js → profile-BmzTjjNg.js} +1 -1
  45. dmart/cxb/assets/{query-Ck7rjPsV.js → query-DXMjDhll.js} +1 -1
  46. dmart/cxb/assets/spaces-0oyGvpii.js +1 -0
  47. dmart/cxb/assets/svelte-B2XmcTi_.js +4 -0
  48. dmart/cxb/assets/{svelte-awesome-DpV9QpGy.js → svelte-awesome-DhnMA6Q_.js} +1 -1
  49. dmart/cxb/assets/{svelte-datatables-net-PrmrsOQE.js → svelte-datatables-net-CY7LBj6I.js} +1 -1
  50. dmart/cxb/assets/{svelte-floating-ui-BWukrOq5.js → svelte-floating-ui-BlS3sOAQ.js} +1 -1
  51. dmart/cxb/assets/{svelte-i18n-CZ4cFDVx.js → svelte-i18n-CT2KkQaN.js} +1 -1
  52. dmart/cxb/assets/{svelte-jsoneditor-6jH6h6zi.css → svelte-jsoneditor-BzfX6Usi.css} +1 -1
  53. dmart/cxb/assets/{svelte-jsoneditor-BdDDhQGI.js → svelte-jsoneditor-CUGSvWId.js} +1 -1
  54. dmart/cxb/assets/{svelte-select-BDtNxMKN.js → svelte-select-CjHAt_85.js} +2 -2
  55. dmart/cxb/assets/toast-B9WDyfyI.js +1 -0
  56. dmart/cxb/assets/{typewriter-editor-Do-KAaNp.js → typewriter-editor-DkTVIJdm.js} +1 -1
  57. dmart/cxb/assets/{user-BQpJ6b6h.js → user-DeK_NB5v.js} +1 -1
  58. dmart/cxb/config.json +2 -1
  59. dmart/cxb/index.html +6 -6
  60. dmart/dmart.py +9 -2
  61. dmart/info.json +1 -1
  62. dmart/sample/spaces/applications/.dm/meta.space.json +29 -24
  63. dmart/sample/spaces/applications/api/.dm/meta.folder.json +1 -18
  64. dmart/sample/spaces/applications/api/.dm/query_all_applications/meta.content.json +1 -17
  65. dmart/sample/spaces/applications/api/.dm/test_by_saad/attachments.media/meta.warframe.json +1 -16
  66. dmart/sample/spaces/applications/api/.dm/test_by_saad/meta.content.json +1 -16
  67. dmart/sample/spaces/applications/api/.dm/user_profile/meta.content.json +1 -17
  68. dmart/sample/spaces/applications/api/applications/.dm/create_log/meta.content.json +1 -15
  69. dmart/sample/spaces/applications/api/applications/.dm/create_public_logs/meta.content.json +1 -15
  70. dmart/sample/spaces/applications/api/applications/.dm/meta.folder.json +1 -15
  71. dmart/sample/spaces/applications/api/applications/.dm/query_all_translated_data/meta.content.json +1 -15
  72. dmart/sample/spaces/applications/api/applications/.dm/query_logs/meta.content.json +1 -15
  73. dmart/sample/spaces/applications/api/applications/.dm/query_translated_enums/meta.content.json +1 -15
  74. dmart/sample/spaces/applications/api/applications/.dm/query_translated_others/meta.content.json +1 -15
  75. dmart/sample/spaces/applications/api/applications/.dm/query_translated_resolution/meta.content.json +1 -15
  76. dmart/sample/spaces/applications/api/applications/create_log.json +1 -46
  77. dmart/sample/spaces/applications/api/applications/create_public_logs.json +1 -22
  78. dmart/sample/spaces/applications/api/applications/query_all_translated_data.json +1 -14
  79. dmart/sample/spaces/applications/api/applications/query_logs.json +1 -11
  80. dmart/sample/spaces/applications/api/applications/query_translated_enums.json +1 -14
  81. dmart/sample/spaces/applications/api/applications/query_translated_others.json +1 -14
  82. dmart/sample/spaces/applications/api/applications/query_translated_resolution.json +1 -13
  83. dmart/sample/spaces/applications/api/applications.json +1 -16
  84. dmart/sample/spaces/applications/api/management/.dm/create_subaccount/meta.content.json +1 -15
  85. dmart/sample/spaces/applications/api/management/.dm/meta.folder.json +1 -15
  86. dmart/sample/spaces/applications/api/management/.dm/update_password/meta.content.json +1 -15
  87. dmart/sample/spaces/applications/api/management/create_subaccount.json +29 -29
  88. dmart/sample/spaces/applications/api/management/update_password.json +1 -19
  89. dmart/sample/spaces/applications/api/management.json +1 -16
  90. dmart/sample/spaces/applications/api/query_all_applications.json +6 -5
  91. dmart/sample/spaces/applications/api/test_by_saad.json +1 -4
  92. dmart/sample/spaces/applications/api/user/.dm/meta.folder.json +1 -9
  93. dmart/sample/spaces/applications/api/user/.dm/test_by_saad/meta.content.json +1 -16
  94. dmart/sample/spaces/applications/api/user/.dm/user_profile/meta.content.json +1 -17
  95. dmart/sample/spaces/applications/api/user/test_by_saad.json +1 -4
  96. dmart/sample/spaces/applications/api/user/user_profile.json +1 -4
  97. dmart/sample/spaces/applications/api/user_profile.json +1 -4
  98. dmart/sample/spaces/applications/api.json +1 -33
  99. dmart/sample/spaces/applications/collections/.dm/meta.folder.json +10 -11
  100. dmart/sample/spaces/applications/collections.json +1 -20
  101. dmart/sample/spaces/applications/configurations/.dm/meta.folder.json +1 -17
  102. dmart/sample/spaces/applications/configurations.json +8 -8
  103. dmart/sample/spaces/applications/logs/.dm/meta.folder.json +1 -12
  104. dmart/sample/spaces/applications/queries/.dm/meta.folder.json +1 -15
  105. dmart/sample/spaces/applications/queries/.dm/order/meta.content.json +1 -17
  106. dmart/sample/spaces/applications/queries/order.json +1 -15
  107. dmart/sample/spaces/applications/queries.json +1 -16
  108. dmart/sample/spaces/applications/schema/.dm/api/meta.schema.json +1 -17
  109. dmart/sample/spaces/applications/schema/.dm/configuration/meta.schema.json +1 -14
  110. dmart/sample/spaces/applications/schema/.dm/error/meta.schema.json +1 -14
  111. dmart/sample/spaces/applications/schema/.dm/log/meta.schema.json +1 -15
  112. dmart/sample/spaces/applications/schema/.dm/meta.folder.json +1 -15
  113. dmart/sample/spaces/applications/schema/.dm/query/meta.schema.json +14 -15
  114. dmart/sample/spaces/applications/schema/.dm/translation/meta.schema.json +1 -14
  115. dmart/sample/spaces/applications/schema/api.json +18 -24
  116. dmart/sample/spaces/applications/schema/configuration.json +1 -26
  117. dmart/sample/spaces/applications/schema/error.json +22 -22
  118. dmart/sample/spaces/applications/schema/log.json +1 -57
  119. dmart/sample/spaces/applications/schema/query.json +58 -56
  120. dmart/sample/spaces/applications/schema/translation.json +4 -4
  121. dmart/sample/spaces/applications/schema.json +1 -16
  122. dmart/sample/spaces/applications/translations/.dm/meta.folder.json +1 -15
  123. dmart/sample/spaces/applications/translations.json +1 -22
  124. dmart/sample/spaces/archive/.dm/meta.space.json +26 -19
  125. dmart/sample/spaces/custom_plugins/dummy/__pycache__/plugin.cpython-314.pyc +0 -0
  126. dmart/sample/spaces/custom_plugins/own_changed_notification/__pycache__/plugin.cpython-314.pyc +0 -0
  127. dmart/sample/spaces/management/.dm/events.jsonl +32 -0
  128. dmart/sample/spaces/management/.dm/meta.space.json +27 -24
  129. dmart/sample/spaces/management/.dm/notifications/attachments.view.json/admin.json +32 -31
  130. dmart/sample/spaces/management/.dm/notifications/attachments.view.json/meta.admin.json +1 -15
  131. dmart/sample/spaces/management/.dm/notifications/attachments.view.json/meta.system.json +1 -15
  132. dmart/sample/spaces/management/.dm/notifications/attachments.view.json/system.json +28 -27
  133. dmart/sample/spaces/management/collections/.dm/meta.folder.json +1 -15
  134. dmart/sample/spaces/management/collections.json +1 -26
  135. dmart/sample/spaces/management/groups/.dm/meta.folder.json +1 -15
  136. dmart/sample/spaces/management/groups.json +1 -14
  137. dmart/sample/spaces/management/health_check/.dm/meta.folder.json +1 -15
  138. dmart/sample/spaces/management/health_check.json +1 -13
  139. dmart/sample/spaces/management/notifications/.dm/meta.folder.json +1 -15
  140. dmart/sample/spaces/management/notifications/admin/.dm/meta.folder.json +6 -6
  141. dmart/sample/spaces/management/notifications/system/.dm/meta.folder.json +6 -6
  142. dmart/sample/spaces/management/notifications.json +1 -46
  143. dmart/sample/spaces/management/permissions/.dm/access_applications/meta.permission.json +5 -4
  144. dmart/sample/spaces/management/permissions/.dm/access_applications_world/meta.permission.json +24 -23
  145. dmart/sample/spaces/management/permissions/.dm/access_messages/meta.permission.json +8 -14
  146. dmart/sample/spaces/management/permissions/.dm/access_personal/meta.permission.json +7 -12
  147. dmart/sample/spaces/management/permissions/.dm/access_protected/meta.permission.json +8 -12
  148. dmart/sample/spaces/management/permissions/.dm/access_public/meta.permission.json +8 -12
  149. dmart/sample/spaces/management/permissions/.dm/browse_all_folders/meta.permission.json +6 -5
  150. dmart/sample/spaces/management/permissions/.dm/create_log/meta.permission.json +8 -9
  151. dmart/sample/spaces/management/permissions/.dm/interviewer/meta.permission.json +1 -34
  152. dmart/sample/spaces/management/permissions/.dm/manage_applications/meta.permission.json +1 -35
  153. dmart/sample/spaces/management/permissions/.dm/manage_debug/meta.permission.json +7 -9
  154. dmart/sample/spaces/management/permissions/.dm/manage_spaces/meta.permission.json +6 -5
  155. dmart/sample/spaces/management/permissions/.dm/meta.folder.json +1 -15
  156. dmart/sample/spaces/management/permissions/.dm/rules_management_default/meta.permission.json +7 -10
  157. dmart/sample/spaces/management/permissions/.dm/super_manager/meta.permission.json +7 -4
  158. dmart/sample/spaces/management/permissions/.dm/view_activity_log/meta.permission.json +7 -10
  159. dmart/sample/spaces/management/permissions/.dm/view_collections/meta.permission.json +6 -6
  160. dmart/sample/spaces/management/permissions/.dm/view_logs/meta.permission.json +8 -9
  161. dmart/sample/spaces/management/permissions/.dm/view_roles/meta.permission.json +11 -10
  162. dmart/sample/spaces/management/permissions/.dm/view_users/meta.permission.json +7 -10
  163. dmart/sample/spaces/management/permissions/.dm/view_world/meta.permission.json +12 -10
  164. dmart/sample/spaces/management/permissions/.dm/world/meta.permission.json +10 -15
  165. dmart/sample/spaces/management/permissions.json +1 -10
  166. dmart/sample/spaces/management/roles/.dm/dummy/meta.role.json +6 -6
  167. dmart/sample/spaces/management/roles/.dm/logged_in/meta.role.json +7 -7
  168. dmart/sample/spaces/management/roles/.dm/manager/meta.role.json +7 -7
  169. dmart/sample/spaces/management/roles/.dm/meta.folder.json +1 -15
  170. dmart/sample/spaces/management/roles/.dm/moderator/meta.role.json +7 -7
  171. dmart/sample/spaces/management/roles/.dm/super_admin/meta.role.json +7 -7
  172. dmart/sample/spaces/management/roles/.dm/test_role/meta.role.json +7 -7
  173. dmart/sample/spaces/management/roles/.dm/world/meta.role.json +7 -7
  174. dmart/sample/spaces/management/roles.json +1 -11
  175. dmart/sample/spaces/management/schema/.dm/admin_notification_request/attachments.media/meta.ui_schema.json +9 -15
  176. dmart/sample/spaces/management/schema/.dm/admin_notification_request/attachments.media/ui_schema.json +4 -4
  177. dmart/sample/spaces/management/schema/.dm/admin_notification_request/meta.schema.json +1 -17
  178. dmart/sample/spaces/management/schema/.dm/api/meta.schema.json +1 -15
  179. dmart/sample/spaces/management/schema/.dm/folder_rendering/meta.schema.json +1 -17
  180. dmart/sample/spaces/management/schema/.dm/health_check/meta.schema.json +8 -8
  181. dmart/sample/spaces/management/schema/.dm/meta.folder.json +1 -15
  182. dmart/sample/spaces/management/schema/.dm/meta_schema/meta.schema.json +1 -14
  183. dmart/sample/spaces/management/schema/.dm/metafile/meta.schema.json +13 -14
  184. dmart/sample/spaces/management/schema/.dm/notification/meta.schema.json +1 -17
  185. dmart/sample/spaces/management/schema/.dm/system_notification_request/attachments.media/meta.ui_schema.json +9 -15
  186. dmart/sample/spaces/management/schema/.dm/system_notification_request/attachments.media/ui_schema.json +1 -1
  187. dmart/sample/spaces/management/schema/.dm/system_notification_request/meta.schema.json +1 -17
  188. dmart/sample/spaces/management/schema/.dm/view/meta.schema.json +1 -17
  189. dmart/sample/spaces/management/schema/.dm/workflow/meta.schema.json +1 -17
  190. dmart/sample/spaces/management/schema/admin_notification_request.json +88 -85
  191. dmart/sample/spaces/management/schema/api.json +1 -35
  192. dmart/sample/spaces/management/schema/folder_rendering.json +174 -166
  193. dmart/sample/spaces/management/schema/health_check.json +4 -1
  194. dmart/sample/spaces/management/schema/meta_schema.json +48 -48
  195. dmart/sample/spaces/management/schema/metafile.json +76 -73
  196. dmart/sample/spaces/management/schema/notification.json +10 -15
  197. dmart/sample/spaces/management/schema/system_notification_request.json +38 -49
  198. dmart/sample/spaces/management/schema/view.json +11 -11
  199. dmart/sample/spaces/management/schema/workflow.json +53 -51
  200. dmart/sample/spaces/management/schema.json +1 -16
  201. dmart/sample/spaces/management/users/.dm/alibaba/meta.user.json +15 -14
  202. dmart/sample/spaces/management/users/.dm/anonymous/meta.user.json +17 -17
  203. dmart/sample/spaces/management/users/.dm/dmart/meta.user.json +18 -30
  204. dmart/sample/spaces/management/users/.dm/meta.folder.json +7 -7
  205. dmart/sample/spaces/management/workflows/.dm/channel/meta.content.json +1 -16
  206. dmart/sample/spaces/management/workflows/.dm/meta.folder.json +1 -17
  207. dmart/sample/spaces/management/workflows/channel.json +40 -40
  208. dmart/sample/spaces/management/workflows.json +1 -13
  209. dmart/sample/spaces/maqola/.dm/meta.space.json +23 -19
  210. dmart/sample/spaces/personal/.dm/meta.space.json +18 -24
  211. dmart/sample/spaces/personal/people/.dm/meta.folder.json +1 -9
  212. dmart/sample/spaces/personal/people/dmart/.dm/meta.folder.json +1 -9
  213. dmart/sample/spaces/personal/people/dmart/messages/.dm/0b5f7e7f/meta.content.json +1 -14
  214. dmart/sample/spaces/personal/people/dmart/messages/.dm/meta.folder.json +1 -9
  215. dmart/sample/spaces/personal/people/dmart/messages/.dm/mytest/meta.content.json +1 -14
  216. dmart/sample/spaces/personal/people/dmart/messages/0b5f7e7f.json +1 -3
  217. dmart/sample/spaces/personal/people/dmart/messages/mytest.json +1 -4
  218. dmart/sample/spaces/personal/people/dmart/notifications/.dm/meta.folder.json +1 -9
  219. dmart/sample/spaces/personal/people/dmart/private/.dm/inner/meta.content.json +1 -14
  220. dmart/sample/spaces/personal/people/dmart/private/.dm/meta.folder.json +1 -9
  221. dmart/sample/spaces/personal/people/dmart/private/inner.json +1 -3
  222. dmart/sample/spaces/personal/people/dmart/protected/.dm/avatar/meta.content.json +1 -14
  223. dmart/sample/spaces/personal/people/dmart/protected/.dm/meta.folder.json +1 -9
  224. dmart/sample/spaces/personal/people/dmart/public/.dm/meta.folder.json +1 -9
  225. dmart/sample/test/.gitignore +1 -0
  226. {dmart-1.4.41.post34.dist-info → dmart-1.4.41.post36.dist-info}/METADATA +1 -1
  227. {dmart-1.4.41.post34.dist-info → dmart-1.4.41.post36.dist-info}/RECORD +230 -271
  228. dmart/alembic/__pycache__/__init__.cpython-314.pyc +0 -0
  229. dmart/alembic/__pycache__/env.cpython-314.pyc +0 -0
  230. dmart/alembic/versions/__pycache__/0f3d2b1a7c21_add_authz_materialized_views.cpython-314.pyc +0 -0
  231. dmart/alembic/versions/__pycache__/10d2041b94d4_last_checksum_history.cpython-314.pyc +0 -0
  232. dmart/alembic/versions/__pycache__/1cf4e1ee3cb8_ext_permission_with_filter_fields_values.cpython-314.pyc +0 -0
  233. dmart/alembic/versions/__pycache__/26bfe19b49d4_rm_failedloginattempts.cpython-314.pyc +0 -0
  234. dmart/alembic/versions/__pycache__/3c8bca2219cc_add_otp_table.cpython-314.pyc +0 -0
  235. dmart/alembic/versions/__pycache__/6675fd9dfe42_remove_unique_from_sessions_table.cpython-314.pyc +0 -0
  236. dmart/alembic/versions/__pycache__/71bc1df82e6a_adding_user_last_login_at.cpython-314.pyc +0 -0
  237. dmart/alembic/versions/__pycache__/74288ccbd3b5_initial.cpython-314.pyc +0 -0
  238. dmart/alembic/versions/__pycache__/7520a89a8467_rm_activesession_table.cpython-314.pyc +0 -0
  239. dmart/alembic/versions/__pycache__/848b623755a4_make_created_nd_updated_at_required.cpython-314.pyc +0 -0
  240. dmart/alembic/versions/__pycache__/8640dcbebf85_add_notes_to_users.cpython-314.pyc +0 -0
  241. dmart/alembic/versions/__pycache__/91c94250232a_adding_fk_on_owner_shortname.cpython-314.pyc +0 -0
  242. dmart/alembic/versions/__pycache__/98ecd6f56f9a_ext_meta_with_owner_group_shortname.cpython-314.pyc +0 -0
  243. dmart/alembic/versions/__pycache__/9aae9138c4ef_indexing_created_at_updated_at.cpython-314.pyc +0 -0
  244. dmart/alembic/versions/__pycache__/b53f916b3f6d_json_to_jsonb.cpython-314.pyc +0 -0
  245. dmart/alembic/versions/__pycache__/eb5f1ec65156_adding_user_locked_to_device.cpython-314.pyc +0 -0
  246. dmart/alembic/versions/__pycache__/f7a4949eed19_adding_query_policies_to_meta.cpython-314.pyc +0 -0
  247. dmart/cxb/assets/@codemirror-prKQ1WbH.js +0 -10
  248. dmart/cxb/assets/@edraj-D-9hi9vU.js +0 -1
  249. dmart/cxb/assets/@jsonquerylang-CFfSvstT.js +0 -12
  250. dmart/cxb/assets/@lezer-Bz8YN7GE.js +0 -1
  251. dmart/cxb/assets/Table2Cols-IRZ18UvF.js +0 -1
  252. dmart/cxb/assets/_...fallback_-De94gS6U.js +0 -1
  253. dmart/cxb/assets/dmart_services-BTWOtb9Z.js +0 -1
  254. dmart/cxb/assets/export-C-4WE2nV.js +0 -1
  255. dmart/cxb/assets/flowbite-svelte-Caf58qKG.js +0 -1
  256. dmart/cxb/assets/import-BMOPDoXp.js +0 -1
  257. dmart/cxb/assets/index-CbbMUQaM.css +0 -2
  258. dmart/cxb/assets/index-DtR8jRRM.js +0 -1
  259. dmart/cxb/assets/spaces-5QYuv6aM.js +0 -1
  260. dmart/cxb/assets/svelte-B9Ye91X-.js +0 -4
  261. dmart/cxb/assets/toast-nP_bUL2P.js +0 -1
  262. dmart/fast.py +0 -6
  263. dmart/my.py +0 -11
  264. dmart/sample/spaces/dummy/.dm/myfolder/history.jsonl +0 -3
  265. dmart/sample/spaces/dummy/.dm/posts/history.jsonl +0 -3
  266. dmart/sample/spaces/dummy/.dm/workflows/history.jsonl +0 -3
  267. dmart/sample/spaces/dummy/myfolder/.dm/an_example/history.jsonl +0 -4
  268. dmart/sample/spaces/dummy/myfolder/.dm/buyer_123/history.jsonl +0 -2
  269. dmart/sample/spaces/dummy/posts/.dm/97326c47/history.jsonl +0 -3
  270. dmart/sample/spaces/dummymyfolder/.dm/an_example/history.jsonl +0 -2
  271. dmart/sample/spaces/dummymyfolder/.dm/buyer_123/history.jsonl +0 -2
  272. dmart/sample/spaces/dummymyfolder/buyer_123/.dm/receipt/history.jsonl +0 -2
  273. dmart/sample/spaces/dummyschema/.dm/test_schema/history.jsonl +0 -2
  274. dmart/sample/spaces/dummyschema/.dm/ticket_workflows/history.jsonl +0 -2
  275. dmart/sample/spaces/dummyworkflows/.dm/myworkflow/history.jsonl +0 -2
  276. dmart/sample/spaces/management/users/.dm/distributor/history.jsonl +0 -6
  277. dmart/sample/spaces/managementusers/.dm/distributor/history.jsonl +0 -3
  278. dmart/sample/spaces/managementusers/.dm/dmart/history.jsonl +0 -11
  279. dmart/sample/spaces/personal/people/distributor/.dm/meta.folder.json +0 -9
  280. dmart/sample/spaces/personal/people/distributor/inbox/.dm/meta.folder.json +0 -9
  281. dmart/sample/spaces/personal/people/distributor/notifications/.dm/meta.folder.json +0 -9
  282. dmart/sample/spaces/personal/people/distributor/private/.dm/meta.folder.json +0 -9
  283. dmart/sample/spaces/personal/people/distributor/protected/.dm/meta.folder.json +0 -9
  284. dmart/sample/spaces/personal/people/distributor/public/.dm/meta.folder.json +0 -9
  285. {dmart-1.4.41.post34.dist-info → dmart-1.4.41.post36.dist-info}/WHEEL +0 -0
  286. {dmart-1.4.41.post34.dist-info → dmart-1.4.41.post36.dist-info}/entry_points.txt +0 -0
  287. {dmart-1.4.41.post34.dist-info → dmart-1.4.41.post36.dist-info}/top_level.txt +0 -0
@@ -1,4 +1,4 @@
1
- var bt=Object.defineProperty;var Et=(e,n,t)=>n in e?bt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var b=(e,n,t)=>Et(e,typeof n!="symbol"?n+"":n,t);import{T as I,D as x,i as R,n as C,a as P,L as ye,A as fe,h as Lt}from"./@typewriter-cCzskkIv.js";import{d as J}from"./fast-diff-C-IidNf4.js";import"./easy-signal-BiPFIK3O.js";import"./svelte-B9Ye91X-.js";const be=new WeakMap,wt=new WeakMap;class Nt{on(n,t,s){this.addEventListener(n,t,s)}off(n,t,s){this.removeEventListener(n,t,s)}addEventListener(n,t,s){s!=null&&s.once&&(t=Te(this,n,t,!0)),V(this,n,!0).add(t)}removeEventListener(n,t,s){if(s!=null&&s.once&&(t=Te(this,n,t)),!t)return;const r=V(this,n);r&&r.delete(t)}dispatchEvent(n,t){let s=!1;n.bubbles&&(n.stopImmediatePropagation=n.stopPropagation=()=>s=!0);const r=V(this,n.type);if(r)for(let o of r){if(t)try{o.call(this,n)}catch(i){try{this.dispatchEvent(new ErrorEvent("error",{error:i}))}catch{}}else o.call(this,n);if(s)break}}}function V(e,n,t=!1){let s=be.get(e);return!s&&t&&be.set(e,s=Object.create(null)),s&&s[n]||t&&(s[n]=new Set)}function Te(e,n,t,s=!1){let r=wt.get(e);!r&&s&&be.set(e,r=Object.create(null));const o=r&&r[n]||s&&(r[n]=new Map);if(!o.has(t)&&s){const i=a=>{const c=V(e,n);c&&c.delete(t),t.call(e,a)};o.set(t,i)}return o&&o.get(t)}var D;(function(e){e.api="api",e.user="user",e.history="history",e.input="input",e.paste="paste"})(D||(D={}));const vt="http://www.w3.org/2000/svg",At=new Set(["value","selected","checked","contentEditable"]),k=e=>e==null?e:e.key,Ze=(e,n)=>{n&&n!==e.key&&(e.key=n),!n&&e.key&&delete e.key},De=e=>{e.currentTarget.events[e.type](e)},Ge=(e,n,t,s,r)=>{n==="key"||(n[0]==="o"&&n[1]==="n"?((e.events||(e.events={}))[n=n.slice(2)]=s)?t||e.addEventListener(n,De):e.removeEventListener(n,De):s==null?e.removeAttribute(n):!r&&n!=="list"&&n!=="form"&&n in e?e[n]=s??"":e.setAttribute(n,s))},ne=(e,n)=>{if(typeof e=="string")return document.createTextNode(e);var t=e.props,s=(n=n||e.type==="svg")?document.createElementNS(vt,e.type,{is:t.is}):document.createElement(e.type,{is:t.is});for(var r in t)Ge(s,r,null,t[r],n);return Ze(s,k(e)),e.children.forEach(o=>s.appendChild(ne(W(o),n))),s},Ft=(e,n)=>{const t={};for(let s=0;s<e.attributes.length;s++){const{name:r,value:o}=e.attributes[s];r in e&&r!=="list"&&!n?t[r]=e[r]:t[r]=o===""?!0:o}return t},B=(e,n,t,s,r)=>{if(typeof s=="string")t!=null&&t.nodeType===Node.TEXT_NODE?t.nodeValue!==s&&(n.nodeValue=s):(n=e.insertBefore(ne(s,r),n),t!=null&&e.removeChild(t));else if(t==null||t.nodeName.toLowerCase()!==s.type)n=e.insertBefore(ne(W(s),r),n),t!=null&&e.removeChild(t);else{var o=Ft(t,r),i=s.props;r=r||s.type==="svg";for(var a in{...o,...i})(At.has(a)?n[a]:o[a])!==i[a]&&Ge(n,a,o[a],i[a],r);Ze(n,s.key),Qe(n,s.children,r)}return n},Qe=(e,n,t,s=Array.from(e.childNodes))=>{for(var r,o,i,a,c=0,h=0,l=s.length-1,d=n.length-1;h<=d&&c<=l&&!((i=k(s[c]))==null||i!==k(n[h]));)B(e,s[c],s[c++],n[h]=W(n[h++]),t);for(;h<=d&&c<=l&&!((i=k(s[l]))==null||i!==k(n[d]));)s[l]=B(e,s[l],s[l--],n[d]=W(n[d--]),t);if(c>l){const f=s[c]||s[c-1]&&s[c-1].nextSibling||null;for(;h<=d;)e.insertBefore(ne(n[h]=W(n[h++]),t),f)}else if(h>d)for(;c<=l;)e.removeChild(s[c++]);else{const f=new Map,m=new Set;for(let u=c;u<=l;u++)(i=k(s[u]))!=null&&f.set(i,s[u]);for(;h<=d;){if(i=k(o=s[c]),a=k(n[h]=W(n[h])),m.has(i)||a!=null&&a===k(s[c+1])){i==null&&e.removeChild(o),c++;continue}a==null?(i==null&&(B(e,o,o,n[h],t),h++),c++):(i===a?(B(e,o,o,n[h],t),m.add(a),c++):(r=f.get(a))!=null?(B(e,e.insertBefore(r,o),r,n[h],t),m.add(a)):B(e,o,null,n[h],t),h++)}for(;c<=l;)k(o=s[c++])==null&&e.removeChild(o);for(const[u,g]of f)m.has(u)||e.removeChild(g)}return e},W=e=>e!==!0&&e!==!1&&e?e:"",Tt=(e,n,t,s)=>({type:e,props:n,children:t,key:s}),A=(e,n,t)=>typeof e=="function"?e(n||{},t):Tt(e,n||{},Array.isArray(t)?t:t==null?[]:[t],n==null?void 0:n.key),le=(e,n,t)=>(Array.isArray(n)?e=Qe(e,n,e instanceof window.SVGElement,t):e=B(e.parentNode,e,e,n),e),Dt=/;\s*$/,xt={name:"decoration",selector:"span.format.decoration",fromDom:!1,render:(e,n)=>we(A("span",{},n),e,["format","decoration"])},kt={name:"decoration",selector:".embed.decoration",fromDom:!1,noFill:!0,render:(e,n)=>{const t="embed decoration",{name:s,...r}=e.decoration;return r.class=r.class?t+" "+r.class:t,A(s||"span",r,n)}};class Ct extends Event{constructor(t,s){super(t,s);b(this,"old");b(this,"doc");b(this,"change");b(this,"changedLines");this.old=s.old,this.doc=s.doc,this.change=s.change,this.changedLines=s.changedLines}}function St(e){e.typeset.formats.add(xt),e.typeset.embeds.add(kt);const n=new Map;let t=e.doc,s=t,r=t,o=!1;e.on("change",l),e.on("render",f);function i(m){if(!m)throw new TypeError("A decoration name is required");const u=n.get(m);return new Mt(m,e.doc,u,h,a)}function a(m){var p,y;if(!m)throw new TypeError("A decoration name is required");const u=n.get(m);if(!u)return!1;const g=Ke(m,u,t);return n.delete(m),n.size?r=r.apply(g):r=t,o||((p=e.modules.rendering)==null||p.render({old:s,doc:r}),(y=e.modules.selection)==null||y.renderSelection()),!0}function c(){n.size&&n.clear(),r=t}function h(m,u){var y,L;const g=n.get(m),p=g?g.compose(u,!0):u;R(p,g)||!g&&!p.ops.length||(p.ops.length?n.set(m,p):n.delete(m),r=n.size?r.apply(u,null):t,o||((y=e.modules.rendering)==null||y.render({old:s,doc:r}),(L=e.modules.selection)==null||L.renderSelection()))}function l(m){const{change:u,changedLines:g}=m;if(t=m.doc,u){if(u.contentChanged){for(let[p,y]of n)y=u.delta.transform(y,!0),y.ops.length?n.set(p,y):n.delete(p);r=n.size?r.apply(u.delta,null):t,n.size&&r.lines.forEach((p,y)=>{const L=t.lines[y];p!==L&&p.id!==L.id&&(p.id=L.id)})}}else c();d(u,g)}function d(m,u){const g={old:s,doc:t,change:m,changedLines:u};o=!0,e.dispatchEvent(new Ct("decorate",g)),o=!1}function f(){s=r}return{get old(){return s},get doc(){return r},getDecorator:i,removeDecorations:a,clearDecorations:c,gatherDecorations:d,init(){d()},destroy(){e.off("change",l),e.off("render",f)}}}class Mt{constructor(n,t,s,r,o){b(this,"change");b(this,"_name");b(this,"_doc");b(this,"_decoration");b(this,"_apply");b(this,"_remove");this._name=n,this._doc=t,this.change=new I(t),this._decoration=s,this._apply=r,this._remove=o}hasDecorations(){return!!this._decoration&&this._decoration.ops.length>0||this.change.delta.ops.length>0}getDecoration(){return this._decoration?this._decoration.compose(this.change.delta):this.change.delta}apply(){return this._apply(this._name,this.change.delta)}remove(){return this._remove(this._name)}clear(n){return this.hasDecorations()?(n?this.change.setDelta(this.change.delta.compose(this.invert(n))):this.change.setDelta(this.invert()),this):this}clearLines(n){if(!n.length)return this;const t=this._doc,s=[t.getLineRange(n[0])[0],t.getLineRange(n[n.length-1])[1]];if(n.length===1||n.every((c,h)=>!h||t.getLineRange(n[h-1])[1]===t.getLineRange(c)[0]))return this.clear(s);const o=this.invert(s),i=new x;let a=0;return n.forEach(c=>{const[h,l]=t.getLineRange(c);i.retain(h-a).concat(o.slice(h,l)),a=l}),this.change.setDelta(this.change.delta.compose(i)),this}clearLine(n){const t=this._doc,s=typeof n=="number"?t.getLineAt(n):typeof n=="string"?t.getLineBy(n):n;return this.clearLines([s])}invert(n){return this._decoration?Ke(this._name,this._decoration,this._doc,n):new x}decorateText(n,t={class:this._name}){return this.change.formatText(n,{decoration:{[this._name]:t}}),this}decorateLine(n,t={class:this._name}){return this.change.formatLine(n,{decoration:{[this._name]:t}},!0),this}insertDecoration(n,t={class:this._name}){if(typeof t=="string")throw new Error("You may only insert embed decorations");return this.change.insert(n,{decoration:t}),this}}function we(e,n,t){if(!n||!n.decoration)return e;const s=new Set(t);let r="",o=e.props;Object.values(n.decoration).forEach(a=>{const{class:c,style:h,...l}=a;c&&s.add(c.trim()),h&&(r+=h.trim()),r&&!Dt.test(r)&&(r+=";"),o={...l,...o}});const i=Array.from(s).join(" ").trim();return i&&(o.class=o.class?o.class+" "+i:i),r&&(o.style=o.style?o.style+";"+r:r),e.props=o,e}function Ke(e,n,t,s){let r=t.toDelta();return s&&(r=r.slice(s[0],s[1]),n=n.slice(s[0],s[1])),n=n.invert(r),n.ops.forEach(o=>{var i;((i=o.attributes)==null?void 0:i.decoration)===null&&(o.attributes.decoration={[e]:null})}),s&&(n=new x().retain(s[0]).concat(n)),n}const _t=[],xe=A("br",{}),ee=new WeakMap,ke=new WeakMap,Ce=new WeakMap,Se=new WeakMap,Ne=new WeakMap;function S(e,n){var t,s;return(s=(t=Ne.get(e))==null?void 0:t.get(n))==null?void 0:s[0]}function se(e,n){var t,s;return(s=(t=Ne.get(e))==null?void 0:t.get(n))==null?void 0:s[1]}function Ve(e){const{root:n,doc:t}=e,s=re(e,t.lines),r=new WeakMap;for(let i=0;i<n.children.length;i++){const a=n.children[i];if(!a.key)continue;const c=s.byKey[a.key];if(c)if(Array.isArray(c)){r.set(a,[t.getLineRange(c[0])[0],t.getLineRange(c[c.length-1])[1]]);const h=a.querySelectorAll(e.typeset.lines.selector);for(let l=0;l<h.length;l++){const d=h[l],f=t.getLineBy(d.key);f&&r.set(d,t.getLineRange(f))}}else r.set(a,t.getLineRange(c))}const o=n.querySelectorAll(e.typeset.lines.selector);for(let i=0;i<o.length;i++){const a=o[i];if(r.has(a)||!a.key)continue;const c=t.getLineBy(a.key);r.set(a,t.getLineRange(c))}Ne.set(n,r)}function Ee(e,n){const{root:t}=e;e.dispatchEvent(new Event("rendering")),le(t,et(e,n)),Ve(e),e.dispatchEvent(new Event("render")),e.dispatchEvent(new Event("rendered"))}function Me(e,n,t){const{root:s}=e,r=re(e,n.lines).combined,o=re(e,t.lines).combined,[i,a]=Pt(r,o);R(i,a)||(i[0]=Math.max(0,i[0]-1),a[0]=Math.max(0,a[0]-1),i[1]=Math.min(r.length,i[1]+1),a[1]=Math.min(o.length,a[1]+1),s.childNodes.length!==r.length&&(i[1]+=s.childNodes.length-r.length));const c=Array.from(s.childNodes).slice(i[0],i[1]),h=o.slice(a[0],a[1]);if(!c.length&&!h.length)return Ee(e,t);e.dispatchEvent(new Event("rendering")),le(s,tt(e,h),c),Ve(e),e.dispatchEvent(new Event("render")),e.dispatchEvent(new Event("rendered"))}function et(e,n,t){return tt(e,re(e,n.lines).combined,t)}function tt(e,n,t){return n.map(s=>Rt(e,s,t)).filter(Boolean)}function Rt(e,n,t){return Array.isArray(n)?Bt(e,n,t):Ot(e,n,t)}function Ot(e,n,t){const s=oe(e,n);if(!s.render)throw new Error("No render method defined for line");const r=s.render(n.attributes,ve(e,n),n,e,t);return we(r,n.attributes),r.key=n.id,r}function Bt(e,n,t){const s=oe(e,n[0]);if(!s.renderMultiple)throw new Error("No render method defined for line");const r=s.renderMultiple(n.map(o=>[o.attributes,ve(e,o),o.id]),e,t);return r.key=n[0].id,r}function re(e,n){const t=Se.get(n);if(t)return t;const s=[],r={};let o=[];n.forEach((a,c)=>{const h=oe(e,a);if(h.shouldCombine){o.push(a);const l=n[c+1];if(!l||oe(e,l)!==h||!h.shouldCombine(o[0].attributes,l.attributes)){const d=Ce.get(o[0]);d&&d.length===o.length&&o.every((f,m)=>d[m]===f)?o=d:Ce.set(o[0],o),s.push(o),r[o[0].id]=o,o=[]}}else h.render&&(s.push(a),r[a.id]=a)});const i={combined:s,byKey:r};return Se.set(n,i),i}function Pt(e,n){const t=e.length,s=n.length,r=Math.min(t,s);let o=0,i=0,a=0,c=0;for(let h=0;h<r;h++)if(!_e(e[h],n[h])){o=a=h;break}for(let h=0;h<r;h++)if(!_e(e[t-h-1],n[s-h-1])){i=t-h,c=s-h;break}return[[o,i],[a,c]]}function ve(e,n,t){const{lines:s,formats:r,embeds:o}=e.typeset;let i=[],a=[],c=!0,h;return n.content.ops.forEach((l,d,f)=>{let m=[];if(l.insert===" "&&l.attributes&&(h=s.findByAttributes(l.attributes))&&h.child){h.render&&(i=ie(i),c&&i.push(xe),a.push(h.render(l.attributes,i,n,e,t)),i=[]);return}if(typeof l.insert=="string"){const u=f[d-1],g=f[d+1];let p=l.insert.replace(/ /g,"  ").replace(/ /g,"  ");(!u||typeof u.insert=="object")&&(p=p.replace(/^ /," ")),(!g||typeof g.insert=="object"||Wt(g))&&(p=p.replace(/ $/," ")),c=!1,m.push(p)}else if(l.insert){const u=o.findByAttributes(l.insert);u!=null&&u.render&&(m.push(u.render(l.insert,_t,n,e,t)),u.name==="br"?c=!0:u.noFill||(c=!1))}l.attributes&&Object.keys(l.attributes).sort((u,g)=>r.priority(g)-r.priority(u)).forEach(u=>{const g=r.get(u);if(g!=null&&g.render){const p=g.render(l.attributes,m,n,e,t);p&&(ee.set(p,g),m=[p])}}),i.push.apply(i,m)}),i=ie(i),c&&i.push(xe),a.length?a:i}function _e(e,n){return e===n?!0:Array.isArray(e)&&Array.isArray(n)&&e.length===n.length&&e.every((t,s)=>t===n[s])}function oe(e,n){let t=ke.get(n.attributes);return t||(t=e.typeset.lines.findByAttributes(n.attributes,!0),ke.set(n.attributes,t)),t}function ie(e){const n=[];if(e.forEach((t,s)=>{const r=n.length-1,o=n[r];o&&typeof o!="string"&&typeof t!="string"&&ee.has(o)&&ee.get(o)===ee.get(t)&&It(o.props,t.props)?o.children=o.children.concat(t.children):o&&typeof o=="string"&&typeof t=="string"?n[r]+=t:(n.push(t),o&&typeof o!="string"&&o.children&&(o.children=ie(o.children)))}),n.length){const t=n[n.length-1];t&&typeof t!="string"&&t.children&&(t.children=ie(t.children))}return n}function It(e,n){return Object.keys({...e,...n}).every(t=>t.slice(0,2)==="on"||e[t]===n[t])}function Wt(e){return typeof e.insert=="string"&&e.insert[0]===" "}function zt(e){e.on("change",t);function n(s){if(s){const{doc:r,old:o}=s;o&&r?Me(e,o,r):r&&Ee(e,r)}else{const{doc:r}=e.modules.decorations||e;Ee(e,r)}}function t(s){const{doc:r,old:o}=e.modules.decorations||s;o.lines!==r.lines&&Me(e,o,r)}return{render:n,destroy(){e.off("change",t)}}}const he=[],nt={},st={},rt={},Ht=(e,n)=>!0;class te{constructor(n){b(this,"lines");b(this,"formats");b(this,"embeds");var o,i,a;const t=(o=n.lines)==null?void 0:o.map(c=>typeof c=="string"?nt[c]:c).filter(Boolean),s=(i=n.formats)==null?void 0:i.map(c=>typeof c=="string"?st[c]:c).filter(Boolean),r=(a=n.embeds)==null?void 0:a.map(c=>typeof c=="string"?rt[c]:c).filter(Boolean);this.lines=new de(t||he),this.formats=new de(s||he),this.embeds=new de(r||he)}}b(te,"line",O),b(te,"format",Y),b(te,"embed",Ae);function O(e){return e.renderMultiple&&!e.shouldCombine&&(e.shouldCombine=Ht),nt[e.name]=e}function Y(e){return st[e.name]=e}function Ae(e){return rt[e.name]=e}class de{constructor(n){b(this,"list");b(this,"selector");b(this,"types");b(this,"priorities");this.list=n,this.init()}get default(){return this.list[0]}init(){this.selector=this.list.map(n=>n.selector||"").filter(Boolean).join(", "),this.types=this.list.reduce((n,t)=>(n[t.name]=t,n),{}),this.priorities=this.list.reduce((n,t,s)=>(n[t.name]=s,n),{})}add(n){this.list.push(n),this.init()}remove(n){const t=typeof n=="string"?n:n.name;this.list=this.list.filter(s=>s.name!==t),this.init()}get(n){return this.types[n]}priority(n){const t=this.priorities[n];return t!==void 0?t:-1}matches(n){if(!n)return!1;if(!n.nodeType)throw new Error("Cannot match against "+n);if(n.nodeType===Node.ELEMENT_NODE)return this.selector?n.matches(this.selector):!1}findByNode(n,t=!1){if(n.nodeType!==Node.ELEMENT_NODE)return;let s=this.list.length;for(;s--;){let r=this.list[s];if(n.matches(r.selector))return r}if(t)return this.default}findByAttributes(n,t=!1){const s=n&&Object.keys(n);let r;return s&&s.every(o=>!(r=this.get(o))),r||(t?this.default:void 0)}}Ae({name:"image",selector:"img",commands:e=>(n,t)=>e.insert({image:n,...t}),fromDom:e=>{const n={};return["src","alt","width","height"].forEach(t=>{if(!e.hasAttribute(t))return;const s=e.getAttribute(t);t==="src"&&(t="image"),n[t]=s}),n},render:e=>{const{image:n,...t}=e;return t.src=n,A("img",t)}});Ae({name:"br",selector:"br",commands:e=>()=>e.insert({br:!0}),render:()=>A("br")});Y({name:"bold",selector:"strong, b",styleSelector:'[style*="font-weight:bold"], [style*="font-weight: bold"]',commands:e=>()=>e.toggleTextFormat({bold:!0}),shortcuts:"Mod+B",render:(e,n)=>A("strong",null,n)});Y({name:"italic",selector:"em, i",styleSelector:'[style*="font-style:italic"], [style*="font-style: italic"]',commands:e=>()=>e.toggleTextFormat({italic:!0}),shortcuts:"Mod+I",render:(e,n)=>A("em",null,n)});Y({name:"code",selector:"code",commands:e=>()=>e.toggleTextFormat({code:!0}),render:(e,n)=>A("code",null,n)});Y({name:"link",selector:"a[href]",greedy:!1,commands:e=>n=>e.toggleTextFormat({link:typeof n=="string"?n:!!n}),fromDom:e=>e.href,render:(e,n)=>A("a",{href:e.link,target:"_blank"},n)});O({name:"paragraph",selector:"p",commands:e=>()=>e.formatLine({}),shortcuts:"Mod+0",render:(e,n)=>A("p",null,n)});O({name:"header",selector:"h1, h2, h3, h4, h5, h6",defaultFollows:!0,commands:e=>({header:n=>e.toggleLineFormat({header:n}),header1:()=>e.toggleLineFormat({header:1}),header2:()=>e.toggleLineFormat({header:2}),header3:()=>e.toggleLineFormat({header:3}),header4:()=>e.toggleLineFormat({header:4}),header5:()=>e.toggleLineFormat({header:5}),header6:()=>e.toggleLineFormat({header:6})}),shortcuts:{"Mod+1":"header1","Mod+2":"header2","Mod+3":"header3","Mod+4":"header4","Mod+5":"header5","Mod+6":"header6"},fromDom:e=>({header:parseInt(e.nodeName.replace("H",""))}),render:(e,n)=>A(`h${e.header}`,null,n)});O({name:"list",selector:"ul > li, ol > li",indentable:!0,commands:e=>({bulletList:()=>e.toggleLineFormat({list:"bullet"}),orderedList:()=>e.toggleLineFormat({list:"ordered"}),checkList:()=>e.toggleLineFormat({list:"check"}),indent:()=>e.indent(),outdent:()=>e.outdent(),toggleCheck:n=>{const t=typeof n=="string"?e.doc.getLineBy(n):e.doc.selection?e.doc.getLineAt(e.doc.selection[0]):null;if(!t)return!1;const[s]=e.doc.getLineRange(t),r={list:"check"};t.attributes.checked||(r.checked=!0),e.formatLine(r,s)}}),shortcuts:{"Mod+Space":"toggleCheck"},fromDom(e){let n=-1,t=e.parentNode,s=t&&t.getAttribute("type");const r=e.hasAttribute("data-checked")?"check":t&&t.nodeName==="OL"?"ordered":"bullet";for(;t;){if(/^UL|OL$/.test(t.nodeName))n++;else if(t.nodeName!=="LI")break;t=t.parentNode}!n&&e.className.startsWith("ql-indent-")&&(n=parseInt(e.className.replace("ql-indent-","")));const o={list:r};return n&&(o.indent=n),s&&(o.type=s),e.getAttribute("data-checked")==="true"&&(o.checked=!0),o},nextLineAttributes(e){const{start:n,...t}=e;return t},shouldCombine:(e,n)=>e.list===n.list&&!n.start&&e.type===n.type||n.indent,renderMultiple:(e,n,t)=>{const s=[],r=[];e.forEach(([i,a,c])=>{const h=i.list==="ordered"?"ol":"ul",l=i.indent||0;let d={key:c};if(i.list==="check"){let m=function(g){n.enabled&&(g.preventDefault(),n.commands.toggleCheck(c))};const u=A("button",{class:"check-list-check",onmousedown:m,ontouchstart:m});a.length===1&&a[0].type==="br"?a.push(u):a.unshift(u),d={...d,class:"check-list-item","data-checked":""+(i.checked||!1)}}const f=we(A("li",d,a),i);for(;l>=r.length;){const m=A(h,{start:i.start,type:i.type,key:`${c}-outer`}),u=r.length?r[r.length-1].children:s,g=u[u.length-1];typeof g=="object"&&g.type==="li"&&t?g.children.push(m):u.push(m),r.push(m)}if(!o(r[l],h,i)){const m=A(h,{start:i.start,type:i.type});(l?r[l-1].children:s).push(m),r[l]=m}r[l].children.push(f),r.length=l+1});function o(i,a,c){return i.type===a&&(i.props.start===c.start||i.props.start&&!c.start)&&i.props.type===c.type}return s[0]}});O({name:"blockquote",selector:"blockquote p",commands:e=>(n=!0)=>{typeof n!="string"&&(n=!0),e.toggleLineFormat({blockquote:n})},fromDom(e){const{className:n}=e.parentNode,t=n.match(/quote-(\S+)/);return{blockquote:t&&t[1]!=="true"&&t[1]||!0}},shouldCombine:(e,n)=>e.blockquote===n.blockquote,renderMultiple:e=>{const n=e[0][0].blockquote,t=typeof n=="string"?{className:`quote-${n}`}:null,s=e.map(([r,o,i])=>A("p",{key:i},o));return A("blockquote",t,s)}});O({name:"code-block",selector:"pre code",contained:!0,commands:e=>()=>e.toggleLineFormat({"code-block":!0}),renderMultiple:e=>{const n=[];return e.forEach(([t,s,r])=>{s.length&&s[s.length-1].type==="br"&&s.pop(),n.push(A("code",{key:r},s)),n.push(`
1
+ var bt=Object.defineProperty;var Et=(e,n,t)=>n in e?bt(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t;var b=(e,n,t)=>Et(e,typeof n!="symbol"?n+"":n,t);import{T as I,D as x,i as R,n as C,a as P,L as ye,A as fe,h as Lt}from"./@typewriter-cCzskkIv.js";import{d as J}from"./fast-diff-C-IidNf4.js";import"./easy-signal-BiPFIK3O.js";import"./svelte-B2XmcTi_.js";const be=new WeakMap,wt=new WeakMap;class Nt{on(n,t,s){this.addEventListener(n,t,s)}off(n,t,s){this.removeEventListener(n,t,s)}addEventListener(n,t,s){s!=null&&s.once&&(t=Te(this,n,t,!0)),V(this,n,!0).add(t)}removeEventListener(n,t,s){if(s!=null&&s.once&&(t=Te(this,n,t)),!t)return;const r=V(this,n);r&&r.delete(t)}dispatchEvent(n,t){let s=!1;n.bubbles&&(n.stopImmediatePropagation=n.stopPropagation=()=>s=!0);const r=V(this,n.type);if(r)for(let o of r){if(t)try{o.call(this,n)}catch(i){try{this.dispatchEvent(new ErrorEvent("error",{error:i}))}catch{}}else o.call(this,n);if(s)break}}}function V(e,n,t=!1){let s=be.get(e);return!s&&t&&be.set(e,s=Object.create(null)),s&&s[n]||t&&(s[n]=new Set)}function Te(e,n,t,s=!1){let r=wt.get(e);!r&&s&&be.set(e,r=Object.create(null));const o=r&&r[n]||s&&(r[n]=new Map);if(!o.has(t)&&s){const i=a=>{const c=V(e,n);c&&c.delete(t),t.call(e,a)};o.set(t,i)}return o&&o.get(t)}var D;(function(e){e.api="api",e.user="user",e.history="history",e.input="input",e.paste="paste"})(D||(D={}));const vt="http://www.w3.org/2000/svg",At=new Set(["value","selected","checked","contentEditable"]),k=e=>e==null?e:e.key,Ze=(e,n)=>{n&&n!==e.key&&(e.key=n),!n&&e.key&&delete e.key},De=e=>{e.currentTarget.events[e.type](e)},Ge=(e,n,t,s,r)=>{n==="key"||(n[0]==="o"&&n[1]==="n"?((e.events||(e.events={}))[n=n.slice(2)]=s)?t||e.addEventListener(n,De):e.removeEventListener(n,De):s==null?e.removeAttribute(n):!r&&n!=="list"&&n!=="form"&&n in e?e[n]=s??"":e.setAttribute(n,s))},ne=(e,n)=>{if(typeof e=="string")return document.createTextNode(e);var t=e.props,s=(n=n||e.type==="svg")?document.createElementNS(vt,e.type,{is:t.is}):document.createElement(e.type,{is:t.is});for(var r in t)Ge(s,r,null,t[r],n);return Ze(s,k(e)),e.children.forEach(o=>s.appendChild(ne(W(o),n))),s},Ft=(e,n)=>{const t={};for(let s=0;s<e.attributes.length;s++){const{name:r,value:o}=e.attributes[s];r in e&&r!=="list"&&!n?t[r]=e[r]:t[r]=o===""?!0:o}return t},B=(e,n,t,s,r)=>{if(typeof s=="string")t!=null&&t.nodeType===Node.TEXT_NODE?t.nodeValue!==s&&(n.nodeValue=s):(n=e.insertBefore(ne(s,r),n),t!=null&&e.removeChild(t));else if(t==null||t.nodeName.toLowerCase()!==s.type)n=e.insertBefore(ne(W(s),r),n),t!=null&&e.removeChild(t);else{var o=Ft(t,r),i=s.props;r=r||s.type==="svg";for(var a in{...o,...i})(At.has(a)?n[a]:o[a])!==i[a]&&Ge(n,a,o[a],i[a],r);Ze(n,s.key),Qe(n,s.children,r)}return n},Qe=(e,n,t,s=Array.from(e.childNodes))=>{for(var r,o,i,a,c=0,h=0,l=s.length-1,d=n.length-1;h<=d&&c<=l&&!((i=k(s[c]))==null||i!==k(n[h]));)B(e,s[c],s[c++],n[h]=W(n[h++]),t);for(;h<=d&&c<=l&&!((i=k(s[l]))==null||i!==k(n[d]));)s[l]=B(e,s[l],s[l--],n[d]=W(n[d--]),t);if(c>l){const f=s[c]||s[c-1]&&s[c-1].nextSibling||null;for(;h<=d;)e.insertBefore(ne(n[h]=W(n[h++]),t),f)}else if(h>d)for(;c<=l;)e.removeChild(s[c++]);else{const f=new Map,m=new Set;for(let u=c;u<=l;u++)(i=k(s[u]))!=null&&f.set(i,s[u]);for(;h<=d;){if(i=k(o=s[c]),a=k(n[h]=W(n[h])),m.has(i)||a!=null&&a===k(s[c+1])){i==null&&e.removeChild(o),c++;continue}a==null?(i==null&&(B(e,o,o,n[h],t),h++),c++):(i===a?(B(e,o,o,n[h],t),m.add(a),c++):(r=f.get(a))!=null?(B(e,e.insertBefore(r,o),r,n[h],t),m.add(a)):B(e,o,null,n[h],t),h++)}for(;c<=l;)k(o=s[c++])==null&&e.removeChild(o);for(const[u,g]of f)m.has(u)||e.removeChild(g)}return e},W=e=>e!==!0&&e!==!1&&e?e:"",Tt=(e,n,t,s)=>({type:e,props:n,children:t,key:s}),A=(e,n,t)=>typeof e=="function"?e(n||{},t):Tt(e,n||{},Array.isArray(t)?t:t==null?[]:[t],n==null?void 0:n.key),le=(e,n,t)=>(Array.isArray(n)?e=Qe(e,n,e instanceof window.SVGElement,t):e=B(e.parentNode,e,e,n),e),Dt=/;\s*$/,xt={name:"decoration",selector:"span.format.decoration",fromDom:!1,render:(e,n)=>we(A("span",{},n),e,["format","decoration"])},kt={name:"decoration",selector:".embed.decoration",fromDom:!1,noFill:!0,render:(e,n)=>{const t="embed decoration",{name:s,...r}=e.decoration;return r.class=r.class?t+" "+r.class:t,A(s||"span",r,n)}};class Ct extends Event{constructor(t,s){super(t,s);b(this,"old");b(this,"doc");b(this,"change");b(this,"changedLines");this.old=s.old,this.doc=s.doc,this.change=s.change,this.changedLines=s.changedLines}}function St(e){e.typeset.formats.add(xt),e.typeset.embeds.add(kt);const n=new Map;let t=e.doc,s=t,r=t,o=!1;e.on("change",l),e.on("render",f);function i(m){if(!m)throw new TypeError("A decoration name is required");const u=n.get(m);return new Mt(m,e.doc,u,h,a)}function a(m){var p,y;if(!m)throw new TypeError("A decoration name is required");const u=n.get(m);if(!u)return!1;const g=Ke(m,u,t);return n.delete(m),n.size?r=r.apply(g):r=t,o||((p=e.modules.rendering)==null||p.render({old:s,doc:r}),(y=e.modules.selection)==null||y.renderSelection()),!0}function c(){n.size&&n.clear(),r=t}function h(m,u){var y,L;const g=n.get(m),p=g?g.compose(u,!0):u;R(p,g)||!g&&!p.ops.length||(p.ops.length?n.set(m,p):n.delete(m),r=n.size?r.apply(u,null):t,o||((y=e.modules.rendering)==null||y.render({old:s,doc:r}),(L=e.modules.selection)==null||L.renderSelection()))}function l(m){const{change:u,changedLines:g}=m;if(t=m.doc,u){if(u.contentChanged){for(let[p,y]of n)y=u.delta.transform(y,!0),y.ops.length?n.set(p,y):n.delete(p);r=n.size?r.apply(u.delta,null):t,n.size&&r.lines.forEach((p,y)=>{const L=t.lines[y];p!==L&&p.id!==L.id&&(p.id=L.id)})}}else c();d(u,g)}function d(m,u){const g={old:s,doc:t,change:m,changedLines:u};o=!0,e.dispatchEvent(new Ct("decorate",g)),o=!1}function f(){s=r}return{get old(){return s},get doc(){return r},getDecorator:i,removeDecorations:a,clearDecorations:c,gatherDecorations:d,init(){d()},destroy(){e.off("change",l),e.off("render",f)}}}class Mt{constructor(n,t,s,r,o){b(this,"change");b(this,"_name");b(this,"_doc");b(this,"_decoration");b(this,"_apply");b(this,"_remove");this._name=n,this._doc=t,this.change=new I(t),this._decoration=s,this._apply=r,this._remove=o}hasDecorations(){return!!this._decoration&&this._decoration.ops.length>0||this.change.delta.ops.length>0}getDecoration(){return this._decoration?this._decoration.compose(this.change.delta):this.change.delta}apply(){return this._apply(this._name,this.change.delta)}remove(){return this._remove(this._name)}clear(n){return this.hasDecorations()?(n?this.change.setDelta(this.change.delta.compose(this.invert(n))):this.change.setDelta(this.invert()),this):this}clearLines(n){if(!n.length)return this;const t=this._doc,s=[t.getLineRange(n[0])[0],t.getLineRange(n[n.length-1])[1]];if(n.length===1||n.every((c,h)=>!h||t.getLineRange(n[h-1])[1]===t.getLineRange(c)[0]))return this.clear(s);const o=this.invert(s),i=new x;let a=0;return n.forEach(c=>{const[h,l]=t.getLineRange(c);i.retain(h-a).concat(o.slice(h,l)),a=l}),this.change.setDelta(this.change.delta.compose(i)),this}clearLine(n){const t=this._doc,s=typeof n=="number"?t.getLineAt(n):typeof n=="string"?t.getLineBy(n):n;return this.clearLines([s])}invert(n){return this._decoration?Ke(this._name,this._decoration,this._doc,n):new x}decorateText(n,t={class:this._name}){return this.change.formatText(n,{decoration:{[this._name]:t}}),this}decorateLine(n,t={class:this._name}){return this.change.formatLine(n,{decoration:{[this._name]:t}},!0),this}insertDecoration(n,t={class:this._name}){if(typeof t=="string")throw new Error("You may only insert embed decorations");return this.change.insert(n,{decoration:t}),this}}function we(e,n,t){if(!n||!n.decoration)return e;const s=new Set(t);let r="",o=e.props;Object.values(n.decoration).forEach(a=>{const{class:c,style:h,...l}=a;c&&s.add(c.trim()),h&&(r+=h.trim()),r&&!Dt.test(r)&&(r+=";"),o={...l,...o}});const i=Array.from(s).join(" ").trim();return i&&(o.class=o.class?o.class+" "+i:i),r&&(o.style=o.style?o.style+";"+r:r),e.props=o,e}function Ke(e,n,t,s){let r=t.toDelta();return s&&(r=r.slice(s[0],s[1]),n=n.slice(s[0],s[1])),n=n.invert(r),n.ops.forEach(o=>{var i;((i=o.attributes)==null?void 0:i.decoration)===null&&(o.attributes.decoration={[e]:null})}),s&&(n=new x().retain(s[0]).concat(n)),n}const _t=[],xe=A("br",{}),ee=new WeakMap,ke=new WeakMap,Ce=new WeakMap,Se=new WeakMap,Ne=new WeakMap;function S(e,n){var t,s;return(s=(t=Ne.get(e))==null?void 0:t.get(n))==null?void 0:s[0]}function se(e,n){var t,s;return(s=(t=Ne.get(e))==null?void 0:t.get(n))==null?void 0:s[1]}function Ve(e){const{root:n,doc:t}=e,s=re(e,t.lines),r=new WeakMap;for(let i=0;i<n.children.length;i++){const a=n.children[i];if(!a.key)continue;const c=s.byKey[a.key];if(c)if(Array.isArray(c)){r.set(a,[t.getLineRange(c[0])[0],t.getLineRange(c[c.length-1])[1]]);const h=a.querySelectorAll(e.typeset.lines.selector);for(let l=0;l<h.length;l++){const d=h[l],f=t.getLineBy(d.key);f&&r.set(d,t.getLineRange(f))}}else r.set(a,t.getLineRange(c))}const o=n.querySelectorAll(e.typeset.lines.selector);for(let i=0;i<o.length;i++){const a=o[i];if(r.has(a)||!a.key)continue;const c=t.getLineBy(a.key);r.set(a,t.getLineRange(c))}Ne.set(n,r)}function Ee(e,n){const{root:t}=e;e.dispatchEvent(new Event("rendering")),le(t,et(e,n)),Ve(e),e.dispatchEvent(new Event("render")),e.dispatchEvent(new Event("rendered"))}function Me(e,n,t){const{root:s}=e,r=re(e,n.lines).combined,o=re(e,t.lines).combined,[i,a]=Pt(r,o);R(i,a)||(i[0]=Math.max(0,i[0]-1),a[0]=Math.max(0,a[0]-1),i[1]=Math.min(r.length,i[1]+1),a[1]=Math.min(o.length,a[1]+1),s.childNodes.length!==r.length&&(i[1]+=s.childNodes.length-r.length));const c=Array.from(s.childNodes).slice(i[0],i[1]),h=o.slice(a[0],a[1]);if(!c.length&&!h.length)return Ee(e,t);e.dispatchEvent(new Event("rendering")),le(s,tt(e,h),c),Ve(e),e.dispatchEvent(new Event("render")),e.dispatchEvent(new Event("rendered"))}function et(e,n,t){return tt(e,re(e,n.lines).combined,t)}function tt(e,n,t){return n.map(s=>Rt(e,s,t)).filter(Boolean)}function Rt(e,n,t){return Array.isArray(n)?Bt(e,n,t):Ot(e,n,t)}function Ot(e,n,t){const s=oe(e,n);if(!s.render)throw new Error("No render method defined for line");const r=s.render(n.attributes,ve(e,n),n,e,t);return we(r,n.attributes),r.key=n.id,r}function Bt(e,n,t){const s=oe(e,n[0]);if(!s.renderMultiple)throw new Error("No render method defined for line");const r=s.renderMultiple(n.map(o=>[o.attributes,ve(e,o),o.id]),e,t);return r.key=n[0].id,r}function re(e,n){const t=Se.get(n);if(t)return t;const s=[],r={};let o=[];n.forEach((a,c)=>{const h=oe(e,a);if(h.shouldCombine){o.push(a);const l=n[c+1];if(!l||oe(e,l)!==h||!h.shouldCombine(o[0].attributes,l.attributes)){const d=Ce.get(o[0]);d&&d.length===o.length&&o.every((f,m)=>d[m]===f)?o=d:Ce.set(o[0],o),s.push(o),r[o[0].id]=o,o=[]}}else h.render&&(s.push(a),r[a.id]=a)});const i={combined:s,byKey:r};return Se.set(n,i),i}function Pt(e,n){const t=e.length,s=n.length,r=Math.min(t,s);let o=0,i=0,a=0,c=0;for(let h=0;h<r;h++)if(!_e(e[h],n[h])){o=a=h;break}for(let h=0;h<r;h++)if(!_e(e[t-h-1],n[s-h-1])){i=t-h,c=s-h;break}return[[o,i],[a,c]]}function ve(e,n,t){const{lines:s,formats:r,embeds:o}=e.typeset;let i=[],a=[],c=!0,h;return n.content.ops.forEach((l,d,f)=>{let m=[];if(l.insert===" "&&l.attributes&&(h=s.findByAttributes(l.attributes))&&h.child){h.render&&(i=ie(i),c&&i.push(xe),a.push(h.render(l.attributes,i,n,e,t)),i=[]);return}if(typeof l.insert=="string"){const u=f[d-1],g=f[d+1];let p=l.insert.replace(/ /g,"  ").replace(/ /g,"  ");(!u||typeof u.insert=="object")&&(p=p.replace(/^ /," ")),(!g||typeof g.insert=="object"||Wt(g))&&(p=p.replace(/ $/," ")),c=!1,m.push(p)}else if(l.insert){const u=o.findByAttributes(l.insert);u!=null&&u.render&&(m.push(u.render(l.insert,_t,n,e,t)),u.name==="br"?c=!0:u.noFill||(c=!1))}l.attributes&&Object.keys(l.attributes).sort((u,g)=>r.priority(g)-r.priority(u)).forEach(u=>{const g=r.get(u);if(g!=null&&g.render){const p=g.render(l.attributes,m,n,e,t);p&&(ee.set(p,g),m=[p])}}),i.push.apply(i,m)}),i=ie(i),c&&i.push(xe),a.length?a:i}function _e(e,n){return e===n?!0:Array.isArray(e)&&Array.isArray(n)&&e.length===n.length&&e.every((t,s)=>t===n[s])}function oe(e,n){let t=ke.get(n.attributes);return t||(t=e.typeset.lines.findByAttributes(n.attributes,!0),ke.set(n.attributes,t)),t}function ie(e){const n=[];if(e.forEach((t,s)=>{const r=n.length-1,o=n[r];o&&typeof o!="string"&&typeof t!="string"&&ee.has(o)&&ee.get(o)===ee.get(t)&&It(o.props,t.props)?o.children=o.children.concat(t.children):o&&typeof o=="string"&&typeof t=="string"?n[r]+=t:(n.push(t),o&&typeof o!="string"&&o.children&&(o.children=ie(o.children)))}),n.length){const t=n[n.length-1];t&&typeof t!="string"&&t.children&&(t.children=ie(t.children))}return n}function It(e,n){return Object.keys({...e,...n}).every(t=>t.slice(0,2)==="on"||e[t]===n[t])}function Wt(e){return typeof e.insert=="string"&&e.insert[0]===" "}function zt(e){e.on("change",t);function n(s){if(s){const{doc:r,old:o}=s;o&&r?Me(e,o,r):r&&Ee(e,r)}else{const{doc:r}=e.modules.decorations||e;Ee(e,r)}}function t(s){const{doc:r,old:o}=e.modules.decorations||s;o.lines!==r.lines&&Me(e,o,r)}return{render:n,destroy(){e.off("change",t)}}}const he=[],nt={},st={},rt={},Ht=(e,n)=>!0;class te{constructor(n){b(this,"lines");b(this,"formats");b(this,"embeds");var o,i,a;const t=(o=n.lines)==null?void 0:o.map(c=>typeof c=="string"?nt[c]:c).filter(Boolean),s=(i=n.formats)==null?void 0:i.map(c=>typeof c=="string"?st[c]:c).filter(Boolean),r=(a=n.embeds)==null?void 0:a.map(c=>typeof c=="string"?rt[c]:c).filter(Boolean);this.lines=new de(t||he),this.formats=new de(s||he),this.embeds=new de(r||he)}}b(te,"line",O),b(te,"format",Y),b(te,"embed",Ae);function O(e){return e.renderMultiple&&!e.shouldCombine&&(e.shouldCombine=Ht),nt[e.name]=e}function Y(e){return st[e.name]=e}function Ae(e){return rt[e.name]=e}class de{constructor(n){b(this,"list");b(this,"selector");b(this,"types");b(this,"priorities");this.list=n,this.init()}get default(){return this.list[0]}init(){this.selector=this.list.map(n=>n.selector||"").filter(Boolean).join(", "),this.types=this.list.reduce((n,t)=>(n[t.name]=t,n),{}),this.priorities=this.list.reduce((n,t,s)=>(n[t.name]=s,n),{})}add(n){this.list.push(n),this.init()}remove(n){const t=typeof n=="string"?n:n.name;this.list=this.list.filter(s=>s.name!==t),this.init()}get(n){return this.types[n]}priority(n){const t=this.priorities[n];return t!==void 0?t:-1}matches(n){if(!n)return!1;if(!n.nodeType)throw new Error("Cannot match against "+n);if(n.nodeType===Node.ELEMENT_NODE)return this.selector?n.matches(this.selector):!1}findByNode(n,t=!1){if(n.nodeType!==Node.ELEMENT_NODE)return;let s=this.list.length;for(;s--;){let r=this.list[s];if(n.matches(r.selector))return r}if(t)return this.default}findByAttributes(n,t=!1){const s=n&&Object.keys(n);let r;return s&&s.every(o=>!(r=this.get(o))),r||(t?this.default:void 0)}}Ae({name:"image",selector:"img",commands:e=>(n,t)=>e.insert({image:n,...t}),fromDom:e=>{const n={};return["src","alt","width","height"].forEach(t=>{if(!e.hasAttribute(t))return;const s=e.getAttribute(t);t==="src"&&(t="image"),n[t]=s}),n},render:e=>{const{image:n,...t}=e;return t.src=n,A("img",t)}});Ae({name:"br",selector:"br",commands:e=>()=>e.insert({br:!0}),render:()=>A("br")});Y({name:"bold",selector:"strong, b",styleSelector:'[style*="font-weight:bold"], [style*="font-weight: bold"]',commands:e=>()=>e.toggleTextFormat({bold:!0}),shortcuts:"Mod+B",render:(e,n)=>A("strong",null,n)});Y({name:"italic",selector:"em, i",styleSelector:'[style*="font-style:italic"], [style*="font-style: italic"]',commands:e=>()=>e.toggleTextFormat({italic:!0}),shortcuts:"Mod+I",render:(e,n)=>A("em",null,n)});Y({name:"code",selector:"code",commands:e=>()=>e.toggleTextFormat({code:!0}),render:(e,n)=>A("code",null,n)});Y({name:"link",selector:"a[href]",greedy:!1,commands:e=>n=>e.toggleTextFormat({link:typeof n=="string"?n:!!n}),fromDom:e=>e.href,render:(e,n)=>A("a",{href:e.link,target:"_blank"},n)});O({name:"paragraph",selector:"p",commands:e=>()=>e.formatLine({}),shortcuts:"Mod+0",render:(e,n)=>A("p",null,n)});O({name:"header",selector:"h1, h2, h3, h4, h5, h6",defaultFollows:!0,commands:e=>({header:n=>e.toggleLineFormat({header:n}),header1:()=>e.toggleLineFormat({header:1}),header2:()=>e.toggleLineFormat({header:2}),header3:()=>e.toggleLineFormat({header:3}),header4:()=>e.toggleLineFormat({header:4}),header5:()=>e.toggleLineFormat({header:5}),header6:()=>e.toggleLineFormat({header:6})}),shortcuts:{"Mod+1":"header1","Mod+2":"header2","Mod+3":"header3","Mod+4":"header4","Mod+5":"header5","Mod+6":"header6"},fromDom:e=>({header:parseInt(e.nodeName.replace("H",""))}),render:(e,n)=>A(`h${e.header}`,null,n)});O({name:"list",selector:"ul > li, ol > li",indentable:!0,commands:e=>({bulletList:()=>e.toggleLineFormat({list:"bullet"}),orderedList:()=>e.toggleLineFormat({list:"ordered"}),checkList:()=>e.toggleLineFormat({list:"check"}),indent:()=>e.indent(),outdent:()=>e.outdent(),toggleCheck:n=>{const t=typeof n=="string"?e.doc.getLineBy(n):e.doc.selection?e.doc.getLineAt(e.doc.selection[0]):null;if(!t)return!1;const[s]=e.doc.getLineRange(t),r={list:"check"};t.attributes.checked||(r.checked=!0),e.formatLine(r,s)}}),shortcuts:{"Mod+Space":"toggleCheck"},fromDom(e){let n=-1,t=e.parentNode,s=t&&t.getAttribute("type");const r=e.hasAttribute("data-checked")?"check":t&&t.nodeName==="OL"?"ordered":"bullet";for(;t;){if(/^UL|OL$/.test(t.nodeName))n++;else if(t.nodeName!=="LI")break;t=t.parentNode}!n&&e.className.startsWith("ql-indent-")&&(n=parseInt(e.className.replace("ql-indent-","")));const o={list:r};return n&&(o.indent=n),s&&(o.type=s),e.getAttribute("data-checked")==="true"&&(o.checked=!0),o},nextLineAttributes(e){const{start:n,...t}=e;return t},shouldCombine:(e,n)=>e.list===n.list&&!n.start&&e.type===n.type||n.indent,renderMultiple:(e,n,t)=>{const s=[],r=[];e.forEach(([i,a,c])=>{const h=i.list==="ordered"?"ol":"ul",l=i.indent||0;let d={key:c};if(i.list==="check"){let m=function(g){n.enabled&&(g.preventDefault(),n.commands.toggleCheck(c))};const u=A("button",{class:"check-list-check",onmousedown:m,ontouchstart:m});a.length===1&&a[0].type==="br"?a.push(u):a.unshift(u),d={...d,class:"check-list-item","data-checked":""+(i.checked||!1)}}const f=we(A("li",d,a),i);for(;l>=r.length;){const m=A(h,{start:i.start,type:i.type,key:`${c}-outer`}),u=r.length?r[r.length-1].children:s,g=u[u.length-1];typeof g=="object"&&g.type==="li"&&t?g.children.push(m):u.push(m),r.push(m)}if(!o(r[l],h,i)){const m=A(h,{start:i.start,type:i.type});(l?r[l-1].children:s).push(m),r[l]=m}r[l].children.push(f),r.length=l+1});function o(i,a,c){return i.type===a&&(i.props.start===c.start||i.props.start&&!c.start)&&i.props.type===c.type}return s[0]}});O({name:"blockquote",selector:"blockquote p",commands:e=>(n=!0)=>{typeof n!="string"&&(n=!0),e.toggleLineFormat({blockquote:n})},fromDom(e){const{className:n}=e.parentNode,t=n.match(/quote-(\S+)/);return{blockquote:t&&t[1]!=="true"&&t[1]||!0}},shouldCombine:(e,n)=>e.blockquote===n.blockquote,renderMultiple:e=>{const n=e[0][0].blockquote,t=typeof n=="string"?{className:`quote-${n}`}:null,s=e.map(([r,o,i])=>A("p",{key:i},o));return A("blockquote",t,s)}});O({name:"code-block",selector:"pre code",contained:!0,commands:e=>()=>e.toggleLineFormat({"code-block":!0}),renderMultiple:e=>{const n=[];return e.forEach(([t,s,r])=>{s.length&&s[s.length-1].type==="br"&&s.pop(),n.push(A("code",{key:r},s)),n.push(`
2
2
  `)}),A("pre",{spellcheck:!1},n)}});O({name:"hr",selector:"hr",frozen:!0,commands:e=>()=>{const{doc:n}=e,{selection:t}=n;if(!t)return;const s=C(t),r=e.change.delete(s);if(s[0]===s[1]&&n.getLineAt(s[0]).length===1)r.insert(s[0],`
3
3
  `,{...n.getLineFormat(s[0])}).formatLine(s[0],{hr:!0});else{const o=new x().insert(`
4
4
  `,n.getLineAt(s[0]).attributes).insert(`
@@ -1 +1 @@
1
- import{w as f}from"./svelte-B9Ye91X-.js";import{D as u}from"./@edraj-D-9hi9vU.js";import{g as d}from"./svelte-i18n-CZ4cFDVx.js";const S=f(typeof localStorage<"u"&&localStorage.getItem("authToken")||"");var s=(e=>(e.ar="ar",e.en="en",e))(s||{});const a="user",p="ar";function y(){const e=d();return e&&e in s?s[e]:p}let t={signedin:!1,locale:y()},n;const I=typeof localStorage<"u"&&localStorage.getItem(a)||JSON.stringify(t);n=f(JSON.parse(I)||t);async function J(e,m){var l,i;const r=await u.login(e,m);if(r.status=="success"&&r.records.length>0){const o=r.records[0],c=o.attributes.access_token;S.set(c),typeof localStorage<"u"&&localStorage.setItem("authToken",c);const g={signedin:!0,locale:"ar",shortname:o.shortname,localized_displayname:(i=(l=o.attributes)==null?void 0:l.displayname)==null?void 0:i.en,account:o};n.set(g),typeof localStorage<"u"&&(localStorage.setItem(a,JSON.stringify(g)),localStorage.setItem("rowPerPage","15"))}else n.set(t),typeof localStorage<"u"&&localStorage.setItem(a,JSON.stringify(t))}async function O(){var e;typeof localStorage<"u"&&((e=JSON.parse(localStorage.getItem(a)))!=null&&e.signedin)&&(localStorage.removeItem("rowPerPage"),n.set(t),localStorage.removeItem(a),await u.logout())}export{J as a,O as s,n as u};
1
+ import{w as f}from"./svelte-B2XmcTi_.js";import{D as u}from"./@edraj-CS4NwVbD.js";import{g as d}from"./svelte-i18n-CT2KkQaN.js";const S=f(typeof localStorage<"u"&&localStorage.getItem("authToken")||"");var s=(e=>(e.ar="ar",e.en="en",e))(s||{});const a="user",p="ar";function y(){const e=d();return e&&e in s?s[e]:p}let t={signedin:!1,locale:y()},n;const I=typeof localStorage<"u"&&localStorage.getItem(a)||JSON.stringify(t);n=f(JSON.parse(I)||t);async function J(e,m){var l,i;const r=await u.login(e,m);if(r.status=="success"&&r.records.length>0){const o=r.records[0],c=o.attributes.access_token;S.set(c),typeof localStorage<"u"&&localStorage.setItem("authToken",c);const g={signedin:!0,locale:"ar",shortname:o.shortname,localized_displayname:(i=(l=o.attributes)==null?void 0:l.displayname)==null?void 0:i.en,account:o};n.set(g),typeof localStorage<"u"&&(localStorage.setItem(a,JSON.stringify(g)),localStorage.setItem("rowPerPage","15"))}else n.set(t),typeof localStorage<"u"&&localStorage.setItem(a,JSON.stringify(t))}async function O(){var e;typeof localStorage<"u"&&((e=JSON.parse(localStorage.getItem(a)))!=null&&e.signedin)&&(localStorage.removeItem("rowPerPage"),n.set(t),localStorage.removeItem(a),await u.logout())}export{J as a,O as s,n as u};
dmart/cxb/config.json CHANGED
@@ -6,5 +6,6 @@
6
6
  "description": "dmart unified data platform",
7
7
  "default_language": "en",
8
8
  "languages": { "ar": "العربية", "en": "English" },
9
- "backend": "https://api.dmart.cc"
9
+ "backend": "http://localhost:8282",
10
+ "websocket": "ws://0.0.0.0:8484/ws"
10
11
  }
dmart/cxb/index.html CHANGED
@@ -5,22 +5,22 @@
5
5
  <link rel="icon" type="image/svg+xml" href="/cxb/favicon.png" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <title>CXB</title>
8
- <script type="module" crossorigin src="/cxb/assets/index-BJ8k452_.js"></script>
8
+ <script type="module" crossorigin src="/cxb/assets/index-CIe9TrOS.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/cxb/assets/clsx-B-dksMZM.js">
10
10
  <link rel="modulepreload" crossorigin href="/cxb/assets/esm-env-rsSWfq8L.js">
11
- <link rel="modulepreload" crossorigin href="/cxb/assets/svelte-B9Ye91X-.js">
11
+ <link rel="modulepreload" crossorigin href="/cxb/assets/svelte-B2XmcTi_.js">
12
12
  <link rel="modulepreload" crossorigin href="/cxb/assets/hookar-BMRD9G9H.js">
13
13
  <link rel="modulepreload" crossorigin href="/cxb/assets/consolite-DlCuI0F9.js">
14
- <link rel="modulepreload" crossorigin href="/cxb/assets/@roxi-Bw7qXphd.js">
15
- <link rel="modulepreload" crossorigin href="/cxb/assets/@zerodevx-z992vLW9.js">
14
+ <link rel="modulepreload" crossorigin href="/cxb/assets/@roxi-CGMFK4i8.js">
15
+ <link rel="modulepreload" crossorigin href="/cxb/assets/@zerodevx-BlBZjKxu.js">
16
16
  <link rel="modulepreload" crossorigin href="/cxb/assets/ajv-Cpj98o6Y.js">
17
17
  <link rel="modulepreload" crossorigin href="/cxb/assets/deepmerge-rn4rBaHU.js">
18
18
  <link rel="modulepreload" crossorigin href="/cxb/assets/tslib-pJfR_DrR.js">
19
19
  <link rel="modulepreload" crossorigin href="/cxb/assets/@formatjs-yKEsAtjs.js">
20
20
  <link rel="modulepreload" crossorigin href="/cxb/assets/intl-messageformat-Dc5UU-HB.js">
21
- <link rel="modulepreload" crossorigin href="/cxb/assets/svelte-i18n-CZ4cFDVx.js">
21
+ <link rel="modulepreload" crossorigin href="/cxb/assets/svelte-i18n-CT2KkQaN.js">
22
22
  <link rel="stylesheet" crossorigin href="/cxb/assets/@zerodevx-CVEpe6WZ.css">
23
- <link rel="stylesheet" crossorigin href="/cxb/assets/index-CbbMUQaM.css">
23
+ <link rel="stylesheet" crossorigin href="/cxb/assets/index-NBrXBlLA.css">
24
24
  </head>
25
25
  <body>
26
26
  <div id="app"></div>
dmart/dmart.py CHANGED
@@ -12,7 +12,7 @@ import os
12
12
  import secrets
13
13
  sys.path.append(os.path.dirname(__file__))
14
14
 
15
- from utils.settings import settings
15
+ from utils.settings import settings, get_env_file
16
16
  import time
17
17
  import warnings
18
18
  import webbrowser
@@ -444,6 +444,10 @@ def hypercorn_main() -> int:
444
444
  if args.cxb_config is not sentinel:
445
445
  os.environ["DMART_CXB_CONFIG"] = args.cxb_config
446
446
 
447
+ env_file = get_env_file()
448
+ if env_file and os.path.exists(env_file):
449
+ config.bind = [f"{settings.listening_host}:{settings.listening_port}"]
450
+
447
451
  if len(args.binds) > 0:
448
452
  config.bind = args.binds
449
453
  if len(args.insecure_binds) > 0:
@@ -452,7 +456,7 @@ def hypercorn_main() -> int:
452
456
  config.quic_bind = args.quic_binds
453
457
  if len(args.server_names) > 0:
454
458
  config.server_names = args.server_names
455
-
459
+
456
460
  if args.open_cxb:
457
461
  port = 8282
458
462
  host = "127.0.0.1"
@@ -729,6 +733,9 @@ def main():
729
733
  case "db_to_json":
730
734
  from data_adapters.sql.db_to_json_migration import main as db_to_json_migration
731
735
  db_to_json_migration()
736
+ case "update_query_policies":
737
+ from data_adapters.sql.update_query_policies import main as update_query_policies
738
+ update_query_policies()
732
739
  case "help":
733
740
  print("Available commands:")
734
741
  print(commands)
dmart/info.json CHANGED
@@ -1 +1 @@
1
- {"branch": "master", "version": "b7904d7d", "tag": "v1.4.0-125-gb7904d7d", "version_date": "'Sun Feb 1 14:11:35 2026 +0300'"}
1
+ {"branch": "pypi", "version": "9d571004", "tag": "v1.4.0-128-g9d571004", "version_date": "'Sun Feb 1 11:39:30 2026 +0000'"}
@@ -1,25 +1,30 @@
1
1
  {
2
- "is_active": true,
3
- "active_plugins": [
4
- "action_log",
5
- "redis_db_update",
6
- "system_notification_sender"
7
- ],
8
- "ordinal": 1,
9
- "displayname": {
10
- "en": "Applications"
11
- },
12
- "languages": [
13
- "english"
14
- ],
15
- "shortname": "applications",
16
- "tags": [],
17
- "mirrors": [],
18
- "created_at": "2023-04-09T12:55:00.899747",
19
- "subpath": "/",
20
- "updated_at": "2023-04-09T12:55:00.906988",
21
- "uuid": "1ef1131f-53f7-45d8-9565-4c884b1eac71",
22
- "owner_shortname": "dmart",
23
- "indexing_enabled": true,
24
- "hide_space": true
25
- }
2
+ "uuid": "1ef1131f-53f7-45d8-9565-4c884b1eac71",
3
+ "shortname": "applications",
4
+ "is_active": true,
5
+ "displayname": {
6
+ "en": "Applications"
7
+ },
8
+ "tags": [],
9
+ "created_at": "2023-04-09T12:55:00.899747",
10
+ "updated_at": "2023-04-09T12:55:00.906988",
11
+ "owner_shortname": "dmart",
12
+ "root_registration_signature": "",
13
+ "primary_website": "",
14
+ "indexing_enabled": true,
15
+ "capture_misses": false,
16
+ "check_health": false,
17
+ "languages": [
18
+ "english"
19
+ ],
20
+ "icon": "",
21
+ "mirrors": [],
22
+ "hide_folders": [],
23
+ "hide_space": true,
24
+ "active_plugins": [
25
+ "action_log",
26
+ "redis_db_update",
27
+ "system_notification_sender"
28
+ ],
29
+ "ordinal": 1
30
+ }
@@ -1,18 +1 @@
1
- {
2
- "created_at": "2022-11-17T13:35:52.537017",
3
- "updated_at": "2023-04-09T14:14:31.976150",
4
- "uuid": "aacdb0b5-6828-4704-b324-277c7d55ee2d",
5
- "owner_shortname": "dmart",
6
- "is_active": true,
7
- "shortname": "api",
8
- "displayname": {
9
- "en": "Api"
10
- },
11
- "payload": {
12
- "body": "api.json",
13
- "checksum": "c083fddbe393655fba8e627b712774dea49f04f3",
14
- "content_type": "json",
15
- "schema_shortname": "folder_rendering"
16
- },
17
- "tags": []
18
- }
1
+ {"uuid": "aacdb0b5-6828-4704-b324-277c7d55ee2d", "shortname": "api", "is_active": true, "displayname": {"en": "Api"}, "tags": [], "created_at": "2022-11-17T13:35:52.537017", "updated_at": "2023-04-09T14:14:31.976150", "owner_shortname": "dmart", "payload": {"content_type": "json", "schema_shortname": "folder_rendering", "body": "api.json"}}
@@ -1,17 +1 @@
1
- {
2
- "created_at": "2023-03-19T14:13:40.738590",
3
- "updated_at": "2023-03-19T14:13:40.738605",
4
- "uuid": "2a9ce86e-704b-4921-9cc9-9217b02813e8",
5
- "owner_shortname": "dmart",
6
- "is_active": true,
7
- "shortname": "query_all_applications",
8
- "payload": {
9
- "body": "query_all_applications.json",
10
- "checksum": "81541104657647d9a9eaa6aef58997a5fe8cdb67",
11
- "content_type": "json",
12
- "last_validated": "2023-05-04T22:55:48.508212",
13
- "schema_shortname": "api",
14
- "validation_status": "valid"
15
- },
16
- "tags": []
17
- }
1
+ {"uuid": "2a9ce86e-704b-4921-9cc9-9217b02813e8", "shortname": "query_all_applications", "is_active": true, "tags": [], "created_at": "2023-03-19T14:13:40.738590", "updated_at": "2023-03-19T14:13:40.738605", "owner_shortname": "dmart", "payload": {"content_type": "json", "schema_shortname": "api", "body": "query_all_applications.json", "last_validated": "2023-05-04T22:55:48.508212", "validation_status": "valid"}}
@@ -1,16 +1 @@
1
- {
2
- "payload": {
3
- "body": "warframe.png",
4
- "checksum": "0b804f29add4fa90f4aeabf4a6110bbd806540d4",
5
- "content_type": "image"
6
- },
7
- "space_name": "applications",
8
- "tags": [],
9
- "shortname": "warframe",
10
- "created_at": "2023-03-19T19:44:31.224511",
11
- "subpath": "/api/test_by_saad",
12
- "updated_at": "2023-03-19T19:44:31.224514",
13
- "uuid": "c8b9bfc9-bd59-49a3-99ee-adb7734c1f1e",
14
- "owner_shortname": "dmart",
15
- "is_active": true
16
- }
1
+ {"uuid": "c8b9bfc9-bd59-49a3-99ee-adb7734c1f1e", "shortname": "warframe", "is_active": true, "tags": [], "created_at": "2023-03-19T19:44:31.224511", "updated_at": "2023-03-19T19:44:31.224514", "owner_shortname": "dmart", "payload": {"content_type": "image", "checksum": "0b804f29add4fa90f4aeabf4a6110bbd806540d4", "body": "warframe.png"}}
@@ -1,16 +1 @@
1
- {
2
- "created_at": "2023-01-15T11:03:05.649580",
3
- "updated_at": "2023-01-15T11:03:05.649630",
4
- "uuid": "43e753d4-b366-40c7-ae1b-cef61e74df2c",
5
- "owner_shortname": "dmart",
6
- "shortname": "test_by_saad",
7
- "payload": {
8
- "body": "test_by_saad.json",
9
- "checksum": "d02cd20fd4d4d3940c29c9567d7616d0f4788f4c",
10
- "content_type": "json",
11
- "last_validated": "2023-05-04T22:55:48.511531",
12
- "schema_shortname": "api",
13
- "validation_status": "valid"
14
- },
15
- "tags": []
16
- }
1
+ {"uuid": "43e753d4-b366-40c7-ae1b-cef61e74df2c", "shortname": "test_by_saad", "is_active": false, "tags": [], "created_at": "2023-01-15T11:03:05.649580", "updated_at": "2023-01-15T11:03:05.649630", "owner_shortname": "dmart", "payload": {"content_type": "json", "schema_shortname": "api", "body": "test_by_saad.json", "last_validated": "2023-05-04T22:55:48.511531", "validation_status": "valid"}}
@@ -1,17 +1 @@
1
- {
2
- "created_at": "2022-11-25T12:04:01.147266",
3
- "updated_at": "2022-11-25T15:00:18.533086",
4
- "uuid": "96462d90-9539-4836-9e6b-cd725577c490",
5
- "owner_shortname": "dmart",
6
- "is_active": true,
7
- "shortname": "user_profile",
8
- "payload": {
9
- "body": "user_profile.json",
10
- "checksum": "d02cd20fd4d4d3940c29c9567d7616d0f4788f4c",
11
- "content_type": "json",
12
- "last_validated": "2023-05-04T22:55:48.504602",
13
- "schema_shortname": "api",
14
- "validation_status": "valid"
15
- },
16
- "tags": []
17
- }
1
+ {"uuid": "96462d90-9539-4836-9e6b-cd725577c490", "shortname": "user_profile", "is_active": true, "tags": [], "created_at": "2022-11-25T12:04:01.147266", "updated_at": "2022-11-25T15:00:18.533086", "owner_shortname": "dmart", "payload": {"content_type": "json", "schema_shortname": "api", "body": "user_profile.json", "last_validated": "2023-05-04T22:55:48.504602", "validation_status": "valid"}}
@@ -1,15 +1 @@
1
- {
2
- "created_at": "2023-03-20T08:46:26.282663",
3
- "updated_at": "2023-03-20T08:46:26.282678",
4
- "uuid": "9e2496b3-968d-4e94-a06e-3a200baa3371",
5
- "owner_shortname": "dmart",
6
- "is_active": true,
7
- "shortname": "create_log",
8
- "payload": {
9
- "body": "create_log.json",
10
- "checksum": "76b080eec4d7ad9a6c47a02924d52af45fb72ae5",
11
- "content_type": "json",
12
- "schema_shortname": "api"
13
- },
14
- "tags": []
15
- }
1
+ {"uuid": "9e2496b3-968d-4e94-a06e-3a200baa3371", "shortname": "create_log", "is_active": true, "tags": [], "created_at": "2023-03-20T08:46:26.282663", "updated_at": "2023-03-20T08:46:26.282678", "owner_shortname": "dmart", "payload": {"content_type": "json", "schema_shortname": "api", "body": "create_log.json"}}
@@ -1,15 +1 @@
1
- {
2
- "created_at": "2023-03-20T08:52:04.943089",
3
- "updated_at": "2023-03-20T08:52:04.943105",
4
- "uuid": "981a6cdc-d11b-4084-978e-c328376d41bf",
5
- "owner_shortname": "dmart",
6
- "is_active": true,
7
- "shortname": "create_public_logs",
8
- "payload": {
9
- "body": "create_public_logs.json",
10
- "checksum": "c5a8b7dcd2ba20af28ec313377c78e4f19293fc7",
11
- "content_type": "json",
12
- "schema_shortname": "api"
13
- },
14
- "tags": []
15
- }
1
+ {"uuid": "981a6cdc-d11b-4084-978e-c328376d41bf", "shortname": "create_public_logs", "is_active": true, "tags": [], "created_at": "2023-03-20T08:52:04.943089", "updated_at": "2023-03-20T08:52:04.943105", "owner_shortname": "dmart", "payload": {"content_type": "json", "schema_shortname": "api", "body": "create_public_logs.json"}}
@@ -1,15 +1 @@
1
- {
2
- "created_at": "2023-03-19T13:57:48.713045",
3
- "updated_at": "2023-03-19T13:57:48.713063",
4
- "uuid": "e6833aa1-5b45-4a61-839f-6803dd6992c4",
5
- "owner_shortname": "dmart",
6
- "is_active": true,
7
- "shortname": "applications",
8
- "payload": {
9
- "body": "applications.json",
10
- "checksum": "078e27fdcb156355726e7ac2464e8fad7dacc1ba",
11
- "content_type": "json",
12
- "schema_shortname": "folder_rendering"
13
- },
14
- "tags": []
15
- }
1
+ {"uuid": "e6833aa1-5b45-4a61-839f-6803dd6992c4", "shortname": "applications", "is_active": true, "tags": [], "created_at": "2023-03-19T13:57:48.713045", "updated_at": "2023-03-19T13:57:48.713063", "owner_shortname": "dmart", "payload": {"content_type": "json", "schema_shortname": "folder_rendering", "body": "applications.json"}}
@@ -1,15 +1 @@
1
- {
2
- "created_at": "2023-03-19T14:13:40.738590",
3
- "updated_at": "2023-03-19T14:13:40.738605",
4
- "uuid": "2a9ce86e-704b-4921-9cc9-9217b02813e9",
5
- "owner_shortname": "dmart",
6
- "is_active": true,
7
- "shortname": "query_all_translated_data",
8
- "payload": {
9
- "body": "query_all_translated_data.json",
10
- "checksum": "c887c0dde9f5f6faf129bad2214b23acaaa3709c",
11
- "content_type": "json",
12
- "schema_shortname": "api"
13
- },
14
- "tags": []
15
- }
1
+ {"uuid": "2a9ce86e-704b-4921-9cc9-9217b02813e9", "shortname": "query_all_translated_data", "is_active": true, "tags": [], "created_at": "2023-03-19T14:13:40.738590", "updated_at": "2023-03-19T14:13:40.738605", "owner_shortname": "dmart", "payload": {"content_type": "json", "schema_shortname": "api", "body": "query_all_translated_data.json"}}
@@ -1,15 +1 @@
1
- {
2
- "created_at": "2023-03-20T08:50:54.826428",
3
- "updated_at": "2023-03-20T08:50:54.826444",
4
- "uuid": "5eac4337-90d2-46e0-926e-50a776e0dedc",
5
- "owner_shortname": "dmart",
6
- "is_active": true,
7
- "shortname": "query_logs",
8
- "payload": {
9
- "body": "query_logs.json",
10
- "checksum": "aed10909a1fb263010b9fe0d2b297039da92a343",
11
- "content_type": "json",
12
- "schema_shortname": "api"
13
- },
14
- "tags": []
15
- }
1
+ {"uuid": "5eac4337-90d2-46e0-926e-50a776e0dedc", "shortname": "query_logs", "is_active": true, "tags": [], "created_at": "2023-03-20T08:50:54.826428", "updated_at": "2023-03-20T08:50:54.826444", "owner_shortname": "dmart", "payload": {"content_type": "json", "schema_shortname": "api", "body": "query_logs.json"}}
@@ -1,15 +1 @@
1
- {
2
- "created_at": "2023-03-19T14:14:04.081672",
3
- "updated_at": "2023-03-19T14:14:04.081686",
4
- "uuid": "f110f6be-0ab6-4ae5-bf0c-bc6137ea9927",
5
- "owner_shortname": "dmart",
6
- "is_active": true,
7
- "shortname": "query_translated_enums",
8
- "payload": {
9
- "body": "query_translated_enums.json",
10
- "checksum": "6acafb9564404ec77f0a40bcff91971ec6448ff2",
11
- "content_type": "json",
12
- "schema_shortname": "api"
13
- },
14
- "tags": []
15
- }
1
+ {"uuid": "f110f6be-0ab6-4ae5-bf0c-bc6137ea9927", "shortname": "query_translated_enums", "is_active": true, "tags": [], "created_at": "2023-03-19T14:14:04.081672", "updated_at": "2023-03-19T14:14:04.081686", "owner_shortname": "dmart", "payload": {"content_type": "json", "schema_shortname": "api", "body": "query_translated_enums.json"}}
@@ -1,15 +1 @@
1
- {
2
- "created_at": "2023-03-19T14:14:14.262534",
3
- "updated_at": "2023-03-19T14:14:14.262548",
4
- "uuid": "0fd8e28b-ef1b-4692-936a-011c74a1eb97",
5
- "owner_shortname": "dmart",
6
- "is_active": true,
7
- "shortname": "query_translated_others",
8
- "payload": {
9
- "body": "query_translated_others.json",
10
- "checksum": "e9c1624a5c90b963e8fe4ba71044f9e4939e8bce",
11
- "content_type": "json",
12
- "schema_shortname": "api"
13
- },
14
- "tags": []
15
- }
1
+ {"uuid": "0fd8e28b-ef1b-4692-936a-011c74a1eb97", "shortname": "query_translated_others", "is_active": true, "tags": [], "created_at": "2023-03-19T14:14:14.262534", "updated_at": "2023-03-19T14:14:14.262548", "owner_shortname": "dmart", "payload": {"content_type": "json", "schema_shortname": "api", "body": "query_translated_others.json"}}
@@ -1,15 +1 @@
1
- {
2
- "created_at": "2023-03-19T14:15:25.457660",
3
- "updated_at": "2023-03-19T14:15:25.457675",
4
- "uuid": "ea3a2f29-7f2e-4ab9-882e-a7e7424aa4af",
5
- "owner_shortname": "dmart",
6
- "is_active": true,
7
- "shortname": "query_translated_resolution",
8
- "payload": {
9
- "body": "query_translated_resolution.json",
10
- "checksum": "ad12418120e994c15d45493da5c1467e6cdf09fe",
11
- "content_type": "json",
12
- "schema_shortname": "api"
13
- },
14
- "tags": []
15
- }
1
+ {"uuid": "ea3a2f29-7f2e-4ab9-882e-a7e7424aa4af", "shortname": "query_translated_resolution", "is_active": true, "tags": [], "created_at": "2023-03-19T14:15:25.457660", "updated_at": "2023-03-19T14:15:25.457675", "owner_shortname": "dmart", "payload": {"content_type": "json", "schema_shortname": "api", "body": "query_translated_resolution.json"}}
@@ -1,46 +1 @@
1
- {
2
- "verb": "post",
3
- "end_point": "/managed/request",
4
- "request_body": {
5
- "records": [
6
- {
7
- "subpath": "logs",
8
- "shortname": "auto",
9
- "attributes": {
10
- "payload": {
11
- "body": {
12
- "error": {
13
- "error": "test"
14
- },
15
- "context": {
16
- "error": "test"
17
- },
18
- "request": {
19
- "body": {},
20
- "headers": {}
21
- },
22
- "version": "11.1.1",
23
- "language": "arabic",
24
- "response": {
25
- "body": {},
26
- "headers": {}
27
- },
28
- "attributes": {
29
- "test": "test"
30
- },
31
- "ip_address": "12.272.27542",
32
- "user_agent": "7869202744",
33
- "environment": "android"
34
- },
35
- "content_type": "json",
36
- "schema_shortname": "log"
37
- },
38
- "is_active": true
39
- },
40
- "resource_type": "content"
41
- }
42
- ],
43
- "space_name": "applications",
44
- "request_type": "create"
45
- }
46
- }
1
+ {"end_point": "/managed/request", "verb": "post", "request_body": {"space_name": "applications", "request_type": "create", "records": [{"resource_type": "content", "subpath": "logs", "shortname": "auto", "attributes": {"is_active": true, "payload": {"schema_shortname": "log", "content_type": "json", "body": {"version": "11.1.1", "language": "arabic", "environment": "android", "attributes": {"test": "test"}, "error": {"error": "test"}, "context": {"error": "test"}, "user_agent": "7869202744", "ip_address": "12.272.27542", "request": {"headers": {}, "body": {}}, "response": {"headers": {}, "body": {}}}}}}]}}
@@ -1,22 +1 @@
1
- {
2
- "verb": "post",
3
- "end_point": "https://pos.iq.zain.com/dmart/public/submit/applications/log/logs",
4
- "request_body": {
5
- "error": {
6
- "error": "test"
7
- },
8
- "context": {
9
- "error": "test"
10
- },
11
- "request": {},
12
- "version": "11.1.1",
13
- "language": "arabic",
14
- "response": {},
15
- "attributes": {
16
- "test": "test"
17
- },
18
- "ip_address": "12.272.27542",
19
- "user_agent": "7869202744",
20
- "environment": "ios"
21
- }
22
- }
1
+ {"end_point": "https://pos.iq.zain.com/dmart/public/submit/applications/log/logs", "verb": "post", "request_body": {"version": "11.1.1", "language": "arabic", "environment": "ios", "attributes": {"test": "test"}, "error": {"error": "test"}, "context": {"error": "test"}, "user_agent": "7869202744", "ip_address": "12.272.27542", "request": {"headers": {}, "body": {}}, "response": {"headers": {}, "body": {}}}}
@@ -1,14 +1 @@
1
- {
2
- "verb": "post",
3
- "end_point": "/managed/query",
4
- "request_body": {
5
- "type": "search",
6
- "limit": 100,
7
- "subpath": "/translations",
8
- "space_name": "applications",
9
- "filter_types": [
10
- "content"
11
- ],
12
- "retrieve_json_payload": true
13
- }
14
- }
1
+ {"end_point": "/managed/query", "verb": "post", "request_body": {"type": "search", "space_name": "applications", "subpath": "/translations", "filter_types": ["content"], "retrieve_json_payload": true, "search": "", "limit": 100}}
@@ -1,11 +1 @@
1
- {
2
- "verb": "post",
3
- "end_point": "/managed/query",
4
- "request_body": {
5
- "type": "search",
6
- "subpath": "/logs",
7
- "space_name": "applications",
8
- "resource_type": "content",
9
- "retrieve_json_payload": true
10
- }
11
- }
1
+ {"end_point": "/managed/query", "verb": "post", "request_body": {"retrieve_json_payload": true, "search": "", "space_name": "applications", "type": "search", "resource_type": "content", "subpath": "/logs"}}